403Webshell
Server IP : 167.235.67.158  /  Your IP : 216.73.217.36
Web Server : Apache
System : Linux ubuntu-8gb-nbg1-1 6.8.0-111-generic #111-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 11 23:16:02 UTC 2026 x86_64
User : upstairsbar.co.uk ( 982)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/pawsandpatience.co.uk/wp-content/plugins/wordpress-seo/js/dist/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/pawsandpatience.co.uk/wp-content/plugins/wordpress-seo/js/dist/ai-consent.js
(()=>{var e={818(e,s,t){const r=t(1609),n=r.forwardRef(function(e,s){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:s},e),r.createElement("path",{fillRule:"evenodd",d:"M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))});e.exports=n},1609(e){"use strict";e.exports=window.React},2485(e,s){var t;!function(){"use strict";var r={}.hasOwnProperty;function n(){for(var e=[],s=0;s<arguments.length;s++){var t=arguments[s];if(t){var o=typeof t;if("string"===o||"number"===o)e.push(t);else if(Array.isArray(t)){if(t.length){var i=n.apply(null,t);i&&e.push(i)}}else if("object"===o){if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]")){e.push(t.toString());continue}for(var a in t)r.call(t,a)&&t[a]&&e.push(a)}}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):void 0===(t=function(){return n}.apply(s,[]))||(e.exports=t)}()},2514(e,s,t){const r=t(1609),n=r.forwardRef(function(e,s){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z"}))});e.exports=n},3473(e,s,t){const r=t(1609),n=r.forwardRef(function(e,s){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))});e.exports=n},5074(e,s,t){const r=t(1609),n=r.forwardRef(function(e,s){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}))});e.exports=n},5687(e,s,t){const r=t(1609),n=r.forwardRef(function(e,s){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:s},e),r.createElement("path",{fillRule:"evenodd",d:"M10.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L12.586 11H5a1 1 0 110-2h7.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))});e.exports=n},6702(e,s,t){const r=t(1609),n=r.forwardRef(function(e,s){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"}))});e.exports=n},8738(e,s,t){const r=t(1609),n=r.forwardRef(function(e,s){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:s},e),r.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))});e.exports=n}},s={};function t(r){var n=s[r];if(void 0!==n)return n.exports;var o=s[r]={exports:{}};return e[r](o,o.exports,t),o.exports}t.n=e=>{var s=e&&e.__esModule?()=>e.default:()=>e;return t.d(s,{a:s}),s},t.d=(e,s)=>{for(var r in s)t.o(s,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:s[r]})},t.o=(e,s)=>Object.prototype.hasOwnProperty.call(e,s),(()=>{"use strict";const e=window.wp.data,s=window.wp.domReady;var r=t.n(s);const n=window.wp.element,o=window.wp.i18n,i=window.yoast.uiLibrary;var a=t(2485),l=t.n(a);const c=window.lodash,d=window.yoast.reduxJsToolkit,u="adminUrl",p=(0,d.createSlice)({name:u,initialState:"",reducers:{setAdminUrl:(e,{payload:s})=>s}}),y=p.getInitialState,m={selectAdminUrl:e=>(0,c.get)(e,u,"")};m.selectAdminLink=(0,d.createSelector)([m.selectAdminUrl,(e,s)=>s],(e,s="")=>{try{return new URL(s,e).href}catch(s){return e}});const g=p.actions,h=p.reducer,w=window.wp.apiFetch;var f=t.n(w);const v="hasConsent",x=`${v}/storeConsent`,k=(0,d.createSlice)({name:v,initialState:{hasConsent:!1,endpoint:""},reducers:{giveAiGeneratorConsent:(e,{payload:s})=>{e.hasConsent=s},setAiGeneratorConsentEndpoint:(e,{payload:s})=>{e.endpoint=s}}}),R=k.getInitialState,_={selectHasAiGeneratorConsent:e=>(0,c.get)(e,[v,"hasConsent"],k.getInitialState().hasConsent),selectAiGeneratorConsentEndpoint:e=>(0,c.get)(e,[v,"endpoint"],k.getInitialState().endpoint)},S={...k.actions,storeAiGeneratorConsent:function*(e,s){try{yield{type:x,payload:{consent:e,endpoint:s}}}catch(e){return!1}return yield{type:`${v}/giveAiGeneratorConsent`,payload:e},!0}},b={[x]:async({payload:e})=>await f()({path:e.endpoint,method:"POST",data:{consent:e.consent},parse:!1})},j=k.reducer,C=window.wp.url,q="linkParams",N=(0,d.createSlice)({name:q,initialState:{},reducers:{setLinkParams:(e,{payload:s})=>s}}),L=N.getInitialState,A={selectLinkParam:(e,s,t={})=>(0,c.get)(e,`${q}.${s}`,t),selectLinkParams:e=>(0,c.get)(e,q,{})};A.selectLink=(0,d.createSelector)([A.selectLinkParams,(e,s)=>s,(e,s,t={})=>t],(e,s,t)=>(0,C.addQueryArgs)(s,{...e,...t}));const O=N.actions,E=N.reducer,P=(0,d.createSlice)({name:"notifications",initialState:{},reducers:{addNotification:{reducer:(e,{payload:s})=>{e[s.id]={id:s.id,variant:s.variant,size:s.size,title:s.title,description:s.description}},prepare:({id:e,variant:s="info",size:t="default",title:r,description:n})=>({payload:{id:e||(0,d.nanoid)(),variant:s,size:t,title:r||"",description:n}})},removeNotification:(e,{payload:s})=>(0,c.omit)(e,s)}}),I=(P.getInitialState,P.actions,P.reducer,"pluginUrl"),T=(0,d.createSlice)({name:I,initialState:"",reducers:{setPluginUrl:(e,{payload:s})=>s}}),M=T.getInitialState,G={selectPluginUrl:e=>(0,c.get)(e,I,"")};G.selectImageLink=(0,d.createSelector)([G.selectPluginUrl,(e,s,t="images")=>t,(e,s)=>s],(e,s,t)=>[(0,c.trimEnd)(e,"/"),(0,c.trim)(s,"/"),(0,c.trimStart)(t,"/")].join("/"));const B=T.actions,U=T.reducer,z="loading",$="wistiaEmbedPermission",F=(0,d.createSlice)({name:$,initialState:{value:!1,status:"idle",error:{}},reducers:{setWistiaEmbedPermissionValue:(e,{payload:s})=>{e.value=Boolean(s)}},extraReducers:e=>{e.addCase(`${$}/request`,e=>{e.status=z}),e.addCase(`${$}/success`,(e,{payload:s})=>{e.status="success",e.value=Boolean(s&&s.value)}),e.addCase(`${$}/error`,(e,{payload:s})=>{e.status="error",e.value=Boolean(s&&s.value),e.error={code:(0,c.get)(s,"error.code",500),message:(0,c.get)(s,"error.message","Unknown")}})}});var H;F.getInitialState,F.actions,F.reducer;const Y=(0,d.createSlice)({name:"documentTitle",initialState:(0,c.defaultTo)(null===(H=document)||void 0===H?void 0:H.title,""),reducers:{setDocumentTitle:(e,{payload:s})=>s}}),V=(Y.getInitialState,Y.actions,Y.reducer,window.yoast.propTypes);var W=t.n(V);t(6702);const D=(e,s)=>{try{return(0,n.createInterpolateElement)(e,s)}catch(s){return console.error("Error in translation for:",e,s),e}},J=window.ReactJSXRuntime;W().string.isRequired,t(2514);var Q=t(818),X=t.n(Q);W().string.isRequired,W().string.isRequired,W().shape({src:W().string.isRequired,width:W().string,height:W().string}).isRequired,W().shape({value:W().bool.isRequired,status:W().string.isRequired,set:W().func.isRequired}).isRequired,W().string,W().string,W().string;const K=({handleRefreshClick:e,supportLink:s})=>(0,J.jsxs)("div",{className:"yst-flex yst-gap-2",children:[(0,J.jsx)(i.Button,{onClick:e,children:(0,o.__)("Refresh this page","wordpress-seo")}),(0,J.jsx)(i.Button,{variant:"secondary",as:"a",href:s,target:"_blank",rel:"noopener",children:(0,o.__)("Contact support","wordpress-seo")})]});K.propTypes={handleRefreshClick:W().func.isRequired,supportLink:W().string.isRequired};const Z=({handleRefreshClick:e,supportLink:s})=>(0,J.jsxs)("div",{className:"yst-grid yst-grid-cols-1 yst-gap-y-2",children:[(0,J.jsx)(i.Button,{className:"yst-order-last",onClick:e,children:(0,o.__)("Refresh this page","wordpress-seo")}),(0,J.jsx)(i.Button,{variant:"secondary",as:"a",href:s,target:"_blank",rel:"noopener",children:(0,o.__)("Contact support","wordpress-seo")})]});Z.propTypes={handleRefreshClick:W().func.isRequired,supportLink:W().string.isRequired};const ee=({error:e,children:s=null})=>(0,J.jsxs)("div",{role:"alert",className:"yst-max-w-screen-sm yst-p-8 yst-space-y-4",children:[(0,J.jsx)(i.Title,{children:(0,o.__)("Something went wrong. An unexpected error occurred.","wordpress-seo")}),(0,J.jsx)("p",{children:(0,o.__)("We're very sorry, but it seems like the following error has interrupted our application:","wordpress-seo")}),(0,J.jsx)(i.Alert,{variant:"error",children:(null==e?void 0:e.message)||(0,o.__)("Undefined error message.","wordpress-seo")}),(0,J.jsx)("p",{children:(0,o.__)("Unfortunately, this means that any unsaved changes in this section will be lost. You can try and refresh this page to resolve the problem. If this error still occurs, please get in touch with our support team, and we'll get you all the help you need!","wordpress-seo")}),s]});ee.propTypes={error:W().object.isRequired,children:W().node},ee.VerticalButtons=Z,ee.HorizontalButtons=K;W().string,W().node.isRequired,W().node.isRequired,W().node,W().oneOf(Object.keys({lg:{grid:"yst-grid lg:yst-grid-cols-3 lg:yst-gap-12",col1:"yst-col-span-1",col2:"lg:yst-mt-0 lg:yst-col-span-2"},xl:{grid:"yst-grid xl:yst-grid-cols-3 xl:yst-gap-12",col1:"yst-col-span-1",col2:"xl:yst-mt-0 xl:yst-col-span-2"},"2xl":{grid:"yst-grid 2xl:yst-grid-cols-3 2xl:yst-gap-12",col1:"yst-col-span-1",col2:"2xl:yst-mt-0 2xl:yst-col-span-2"}}));var se=t(1609);const te=window.ReactDOM;var re,ne,oe;(ne=re||(re={})).Pop="POP",ne.Push="PUSH",ne.Replace="REPLACE",function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(oe||(oe={})),new Set(["lazy","caseSensitive","path","id","index","children"]),Error;const ie=["post","put","patch","delete"],ae=(new Set(ie),["get",...ie]);new Set(ae),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred"),se.Component,se.startTransition,new Promise(()=>{}),se.Component,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(e){}var le,ce,de,ue;new Map,se.startTransition,te.flushSync,se.useId,"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,(ue=le||(le={})).UseScrollRestoration="useScrollRestoration",ue.UseSubmit="useSubmit",ue.UseSubmitFetcher="useSubmitFetcher",ue.UseFetcher="useFetcher",ue.useViewTransitionState="useViewTransitionState",(de=ce||(ce={})).UseFetcher="useFetcher",de.UseFetchers="useFetchers",de.UseScrollRestoration="useScrollRestoration",W().string.isRequired,W().string;const pe=({href:e,children:s=null,...t})=>(0,J.jsxs)(i.Link,{target:"_blank",rel:"noopener noreferrer",...t,href:e,children:[s,(0,J.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ /* translators: Hidden accessibility text. */
(0,o.__)("(Opens in a new browser tab)","wordpress-seo")})]});pe.propTypes={href:W().string.isRequired,children:W().node};t(8738);(0,o.__)("Create optimized SEO titles & meta descriptions in seconds","wordpress-seo"),(0,o.__)("Apply AI suggestions to improve content in 1 click","wordpress-seo"),(0,o.__)("Manage redirects with ease and without extra plugins","wordpress-seo"),(0,o.__)("Optimize pages for multiple keywords with guidance","wordpress-seo"),(0,o.__)("Add product details to help your listings stand out","wordpress-seo"),(0,o.__)("Make sure search engines show the right version of your product page","wordpress-seo"),(0,o.__)("Create optimized SEO titles & meta descriptions with AI","wordpress-seo"),(0,o.__)("Receive clear SEO and readability guidance to optimize your products","wordpress-seo"),(0,o.__)("Generate SEO optimized metadata in seconds with AI","wordpress-seo"),(0,o.__)("Make your articles visible, be seen in Google News","wordpress-seo"),(0,o.__)("Built to get found by search, AI, and real users","wordpress-seo"),(0,o.__)("Easy Local SEO. Show up in Google Maps results","wordpress-seo"),(0,o.__)("Internal links and redirect management, easy","wordpress-seo"),(0,o.__)("Access to friendly help when you need it, day or night","wordpress-seo");W().string.isRequired,W().object.isRequired,W().func.isRequired,W().bool.isRequired,t(3473),W().string.isRequired,W().object,W().func.isRequired,W().bool.isRequired,W().string.isRequired,W().object.isRequired,W().string.isRequired,W().func.isRequired,W().bool.isRequired;var ye=t(5074),me=t.n(ye);W().bool.isRequired,W().func,W().func,W().string.isRequired,W().string.isRequired,W().string.isRequired,W().string.isRequired;window.yoast.reactHelmet;W().string.isRequired,W().shape({src:W().string.isRequired,width:W().string,height:W().string}).isRequired,W().shape({value:W().bool.isRequired,status:W().string.isRequired,set:W().func.isRequired}).isRequired,W().bool,t(5687),W().bool.isRequired,W().func.isRequired,W().func,W().string;const ge="yoast-seo/editor",he=((0,c.mapValues)({post:"title",term:"term_title"},e=>`%%${e}%%`),({children:e})=>(0,J.jsx)("p",{className:"yst-mt-2",children:e}));he.propTypes={children:W().node.isRequired};const we=(0,o.__)("Something went wrong","wordpress-seo"),fe=({linkStoreName:s=ge})=>{const t=(0,e.useSelect)(e=>e(s).selectLink("https://yoa.st/ai-common-errors"),[s]),r=(0,e.useSelect)(e=>e(s).selectAdminLink("?page=wpseo_page_support"),[s]);return(0,J.jsx)(he,{children:D((0,o.sprintf)(/* translators: %1$s and %3$s expand to an opening tag. %2$s and %4$s expand to a closing tag. */ /* translators: %1$s and %3$s expand to an opening tag. %2$s and %4$s expand to a closing tag. */
(0,o.__)("Please try again later. If this issue persists, you can learn more about possible reasons for this error on our page about %1$scommon AI feature problems and errors%2$s. In case you need further help, please %3$scontact our support team%4$s.","wordpress-seo"),"<a1>","</a1>","<a2>","</a2>"),{a1:(0,J.jsx)(pe,{variant:"error",href:t}),a2:(0,J.jsx)(pe,{variant:"error",href:r})})})};fe.propTypes={linkStoreName:W().string};const ve=({linkStoreName:e=ge,className:s=""})=>(0,J.jsxs)(i.Alert,{variant:"error",className:s,children:[(0,J.jsx)("span",{className:"yst-block yst-font-medium",children:we}),(0,J.jsx)(fe,{linkStoreName:e})]});ve.propTypes={linkStoreName:W().string,className:W().string},(0,o.__)("Not enough content","wordpress-seo"),(0,o.__)("SEO analysis required","wordpress-seo"),(0,o.__)("You've reached the Yoast AI rate limit","wordpress-seo"),(0,o.__)("Subscription required","wordpress-seo");W().arrayOf(W().string),W().arrayOf(W().string),(0,o.__)("Connection timeout","wordpress-seo"),(0,o.__)("Usage policy violation","wordpress-seo"),(0,o.__)("Something went wrong","wordpress-seo");W().string,W().string,(0,o.__)("Something went wrong","wordpress-seo");W().node.isRequired;const xe=({children:e})=>(0,J.jsx)("div",{className:"yst-mt-6 yst-flex yst-flex-row yst-justify-end yst-gap-3",children:e});xe.propTypes={children:W().node.isRequired};const ke=({onClose:e})=>(0,J.jsx)(i.Button,{variant:"secondary",onClick:e,children:(0,o.__)("Close","wordpress-seo")});ke.propTypes={onClose:W().func.isRequired};W().bool,W().func.isRequired,W().func.isRequired;W().bool.isRequired,W().string.isRequired,W().func,W().node.isRequired,W().bool,W().bool,W().func,W().func,W().bool,W().bool,W().func,W().func,W().string,W().bool,W().bool,W().func,W().func,W().bool,W().func,W().bool,W().func,W().bool,W().func,W().bool,W().func,W().arrayOf(W().string),W().bool,W().func,W().bool,W().func,(0,o.__)("Yoast AI cannot reach your site","wordpress-seo");W().string,W().bool,W().func;const Re=({onGiveConsent:e,learnMoreLink:s,privacyPolicyLink:t,termsOfServiceLink:r,imageLink:a,linkStoreName:l})=>{const{onClose:c,initialFocus:d}=(0,i.useModalContext)(),[u,p]=(0,i.useToggleState)(!1),[y,m]=(0,n.useState)(!1),g=(0,n.useMemo)(()=>({src:a,width:"432",height:"244"}),[a]),h=D((0,o.sprintf)(/* translators: %1$s and %2$s are a set of anchor tags and %3$s and %4$s are a set of anchor tags. */ /* translators: %1$s and %2$s are a set of anchor tags and %3$s and %4$s are a set of anchor tags. */
(0,o.__)("I approve the %1$sTerms of Service%2$s & %3$sPrivacy Policy%4$s of the Yoast AI service. This includes consenting to the collection and use of data to improve user experience.","wordpress-seo"),"<a1>","</a1>","<a2>","</a2>"),{a1:(0,J.jsx)(pe,{href:r}),a2:(0,J.jsx)(pe,{href:t})}),[w,f]=(0,i.useToggleState)(!1),v=(0,n.useCallback)(async()=>{f();const s=await e();m(!1===s),f()},[e]);return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)("div",{className:"yst-px-10 yst-pt-10 yst-introduction-gradient yst-text-center",children:(0,J.jsx)("div",{className:"yst-relative yst-w-full",children:(0,J.jsx)("img",{className:"yst-w-full yst-h-auto yst-rounded-md yst-drop-shadow-md",alt:"",loading:"lazy",decoding:"async",...g})})}),(0,J.jsxs)("div",{className:"yst-px-10 yst-pb-4 yst-flex yst-flex-col yst-items-center",children:[(0,J.jsxs)("div",{className:"yst-mt-4 yst-mx-1.5 yst-text-center",children:[(0,J.jsx)("h3",{className:"yst-text-slate-900 yst-text-lg yst-font-medium",children:(0,o.sprintf)(/* translators: %s expands to Yoast AI. */ /* translators: %s expands to Yoast AI. */
(0,o.__)("Grant consent for %s","wordpress-seo"),"Yoast AI")}),(0,J.jsx)("div",{className:"yst-mt-2 yst-text-slate-600 yst-text-sm",children:D((0,o.sprintf)(/* translators: %1$s is a break tag; %2$s and %3$s are anchor tag; %4$s is the arrow icon. */ /* translators: %1$s is a break tag; %2$s and %3$s are anchor tag; %4$s is the arrow icon. */
(0,o.__)("Enable AI-powered SEO! Use all Yoast AI features to boost your efficiency. Just give us the green light. %1$s%2$sLearn more%3$s%4$s","wordpress-seo"),"<br/>","<a>","<ArrowNarrowRightIcon />","</a>"),{a:(0,J.jsx)(pe,{href:s,className:"yst-inline-flex yst-items-center yst-gap-1 yst-no-underline yst-font-medium",variant:"primary"}),ArrowNarrowRightIcon:(0,J.jsx)(X(),{className:"yst-w-4 yst-h-4 rtl:yst-rotate-180"}),br:(0,J.jsx)("br",{})})})]}),(0,J.jsx)("div",{className:"yst-flex yst-w-full yst-mt-6",children:(0,J.jsx)("hr",{className:"yst-w-full yst-text-gray-200"})}),(0,J.jsxs)("div",{className:"yst-flex yst-items-start yst-mt-4",children:[(0,J.jsx)("input",{type:"checkbox",id:"yst-ai-consent-checkbox",name:"yst-ai-consent-checkbox",checked:u,value:u?"true":"false",onChange:p,className:"yst-checkbox__input",ref:d}),(0,J.jsx)("label",{htmlFor:"yst-ai-consent-checkbox",className:"yst-label yst-checkbox__label yst-text-xs yst-font-normal yst-text-slate-500",children:h})]}),y&&(0,J.jsx)(ve,{className:"yst-mt-3",linkStoreName:l}),(0,J.jsx)("div",{className:"yst-w-full yst-flex yst-mt-4",children:(0,J.jsxs)(i.Button,{as:"button",className:"yst-grow",size:"large",disabled:!u||y,onClick:v,children:[w&&!y&&(0,J.jsx)(i.Spinner,{className:"yst-me-2"}),(0,o.__)("Grant consent","wordpress-seo")]})}),(0,J.jsx)(i.Button,{as:"button",className:"yst-mt-4",variant:"tertiary",onClick:c,children:(0,o.__)("Close","wordpress-seo")})]})]})};Re.propTypes={onGiveConsent:W().func.isRequired,learnMoreLink:W().string.isRequired,privacyPolicyLink:W().string.isRequired,termsOfServiceLink:W().string.isRequired,imageLink:W().string.isRequired,linkStoreName:W().string.isRequired};const _e={termsOfService:"https://yoa.st/ai-generator-terms-of-service",privacyPolicy:"https://yoa.st/ai-generator-privacy-policy",learnMore:"https://yoa.st/ai-generator-learn-more"},Se=({storeName:s,onConsentGranted:t,linkStoreName:r,links:o={}})=>{const i=(0,n.useMemo)(()=>({..._e,...o}),[o]),{termsOfServiceLink:a,privacyPolicyLink:l,learnMoreLink:c,imageLink:d,endpoint:u}=(0,e.useSelect)(e=>{const t=e(r),n=e(s);return{termsOfServiceLink:t.selectLink(i.termsOfService),privacyPolicyLink:t.selectLink(i.privacyPolicy),learnMoreLink:t.selectLink(i.learnMore),imageLink:t.selectImageLink("ai-consent.jpg"),endpoint:n.selectAiGeneratorConsentEndpoint()}},[r,s,i]),{storeAiGeneratorConsent:p}=(0,e.useDispatch)(s),y=(0,n.useCallback)(async()=>{const e=await p(!0,u);return!1!==e&&t(),e},[p,t,u]);return(0,J.jsx)(Re,{termsOfServiceLink:a,privacyPolicyLink:l,learnMoreLink:c,imageLink:d,onGiveConsent:y,linkStoreName:r})};Se.propTypes={storeName:W().string.isRequired,onConsentGranted:W().func.isRequired,linkStoreName:W().string.isRequired,links:W().shape({termsOfService:W().string,privacyPolicy:W().string,learnMore:W().string})};const be="yoast-seo/ai-consent",je={termsOfService:"https://yoa.st/ai-fix-assessments-terms-of-service",privacyPolicy:"https://yoa.st/ai-fix-assessments-privacy-policy",learnMore:"https://yoa.st/ai-fix-assessments-consent-learn-more"},Ce=({onStartGenerating:e})=>(0,J.jsx)(Se,{storeName:be,onConsentGranted:e,linkStoreName:be,links:je});Ce.propTypes={onStartGenerating:W().func.isRequired};const qe=({onClose:s})=>{const{storeAiGeneratorConsent:t,giveAiGeneratorConsent:r}=(0,e.useDispatch)(be),a=(0,e.useSelect)(e=>e(be).selectAiGeneratorConsentEndpoint(),[]),[l,c]=(0,n.useState)(!1),d=(0,n.useCallback)(async()=>{c(!0),await t(!1,a),r(!1),s(),c(!1)},[t,r,c,s,a]);return(0,J.jsxs)("div",{className:"yst-flex yst-flex-row",children:[(0,J.jsx)("span",{className:"yst-shrink-0 yst-h-12 yst-w-12 yst-rounded-full yst-flex yst-justify-center yst-items-center yst-mb-3 yst-me-5 yst-bg-red-100",children:(0,J.jsx)(me(),{className:"yst-w-6 yst-h-6 yst-align-center yst-text-red-600"})}),(0,J.jsxs)("div",{children:[(0,J.jsx)(i.Modal.Title,{className:"yst-font-semibold",as:"h3",size:"4",children:(0,o.__)("Revoke AI consent","wordpress-seo")}),(0,J.jsx)("p",{className:"yst-mt-2 yst-text-slate-600",children:(0,o.__)("By revoking your consent, you will no longer have access to Yoast AI features. Are you sure you want to revoke your consent?","wordpress-seo")}),(0,J.jsxs)("footer",{className:"yst-mt-6 sm:yst-flex sm:yst-flex-row-reverse",children:[(0,J.jsx)(i.Button,{variant:"error",isLoading:l,className:"yst-w-full sm:yst-w-auto yst-revoke-button",onClick:d,children:(0,o.__)("Yes, revoke consent","wordpress-seo")}),(0,J.jsx)(i.Button,{variant:"secondary",className:"yst-w-full sm:yst-w-auto yst-me-3",onClick:s,children:(0,o.__)("Close","wordpress-seo")})]})]})]})};r()(()=>{((s={})=>{(0,e.register)((s=>(0,e.createReduxStore)(be,{actions:{...S,...B,...O,...g},selectors:{..._,...G,...A,...m},initialState:(0,c.merge)({},{[v]:R(),[I]:M(),[q]:L(),[u]:y()},s),reducer:(0,e.combineReducers)({[v]:j,[I]:U,[q]:E,[u]:h}),controls:{...b}}))(s))})({[v]:{hasConsent:"1"===(0,c.get)(window,"wpseoAiConsent.hasConsent",!1),endpoint:(0,c.get)(window,"wpseoAiConsent.endpoints.consent","")},[I]:(0,c.get)(window,"wpseoAiConsent.pluginUrl",""),[q]:(0,c.get)(window,"wpseoAiConsent.linkParams",{}),[u]:(0,c.get)(window,"wpseoAiConsent.adminUrl","")});const s=()=>{const s=(0,e.useSelect)(e=>e(be).selectHasAiGeneratorConsent(),[]),[t,,,r,a]=(0,i.useToggleState)(!1),c=(0,n.useRef)(null),d=(0,n.useCallback)(e=>{if(e.isTrusted)return e.currentTarget===e.target&&void r()},[r]);return(0,J.jsxs)(n.Fragment,{children:[(0,J.jsx)(i.Modal,{className:"yst-introduction-modal",isOpen:t,onClose:a,initialFocus:c,children:(0,J.jsxs)(i.Modal.Panel,{className:l()(!s&&"yst-p-0 yst-max-w-lg yst-rounded-3xl",s&&"yst-max-w-xl yst-rounded-lg"),children:[!s&&(0,J.jsx)(Ce,{onStartGenerating:a,focusElementRef:c}),s&&(0,J.jsx)(qe,{onClose:a})]})}),(0,J.jsx)("button",{className:"button",id:"ai-generator-consent-button",type:"button",onClick:d,children:s?(0,o.__)("Revoke consent","wordpress-seo"):(0,o.__)("Grant consent","wordpress-seo")})]})},t=document.getElementById("ai-generator-consent");t&&(0,n.createRoot)(t).render((0,J.jsx)(s,{}))})})()})();

Youez - 2016 - github.com/yon3zu
LinuXploit