PHP 8.2.31
Preview: ai-consent.js Size: 20.35 KB
/home/nshryvcy/blissfulnepal.com/wp-content/plugins/wordpress-seo/js/dist/ai-consent.js

(()=>{var e={2485(e,t){var s;!function(){"use strict";var r={}.hasOwnProperty;function n(){for(var e=[],t=0;t<arguments.length;t++){var s=arguments[t];if(s){var i=typeof s;if("string"===i||"number"===i)e.push(s);else if(Array.isArray(s)){if(s.length){var o=n.apply(null,s);o&&e.push(o)}}else if("object"===i){if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]")){e.push(s.toString());continue}for(var a in s)r.call(s,a)&&s[a]&&e.push(a)}}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):void 0===(s=function(){return n}.apply(t,[]))||(e.exports=s)}()}},t={};function s(r){var n=t[r];if(void 0!==n)return n.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,s),i.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.wp.data,t=window.wp.domReady;var r=s.n(t);const n=window.wp.element,i=window.wp.i18n,o=window.yoast.uiLibrary;var a=s(2485),l=s.n(a);const c=window.lodash,d=window.yoast.reduxJsToolkit,u="adminUrl",p=(0,d.createSlice)({name:u,initialState:"",reducers:{setAdminUrl:(e,{payload:t})=>t}}),y=(p.getInitialState,{selectAdminUrl:e=>(0,c.get)(e,u,"")});y.selectAdminLink=(0,d.createSelector)([y.selectAdminUrl,(e,t)=>t],(e,t="")=>{try{return new URL(t,e).href}catch(t){return e}}),p.actions,p.reducer;const m=window.wp.apiFetch;var g=s.n(m);const h="hasConsent",w=`${h}/storeConsent`,f=(0,d.createSlice)({name:h,initialState:{hasConsent:!1,endpoint:""},reducers:{giveAiGeneratorConsent:(e,{payload:t})=>{e.hasConsent=t},setAiGeneratorConsentEndpoint:(e,{payload:t})=>{e.endpoint=t}}}),v=f.getInitialState,x={selectHasAiGeneratorConsent:e=>(0,c.get)(e,[h,"hasConsent"],f.getInitialState().hasConsent),selectAiGeneratorConsentEndpoint:e=>(0,c.get)(e,[h,"endpoint"],f.getInitialState().endpoint)},k={...f.actions,storeAiGeneratorConsent:function*(e,t){try{yield{type:w,payload:{consent:e,endpoint:t}}}catch(e){return!1}return yield{type:`${h}/giveAiGeneratorConsent`,payload:e},!0}},R={[w]:async({payload:e})=>await g()({path:e.endpoint,method:"POST",data:{consent:e.consent},parse:!1})},S=f.reducer,_=window.wp.url,j="linkParams",b=(0,d.createSlice)({name:j,initialState:{},reducers:{setLinkParams:(e,{payload:t})=>t}}),C=b.getInitialState,L={selectLinkParam:(e,t,s={})=>(0,c.get)(e,`${j}.${t}`,s),selectLinkParams:e=>(0,c.get)(e,j,{})};L.selectLink=(0,d.createSelector)([L.selectLinkParams,(e,t)=>t,(e,t,s={})=>s],(e,t,s)=>(0,_.addQueryArgs)(t,{...e,...s}));const q=b.actions,N=b.reducer,A=(0,d.createSlice)({name:"notifications",initialState:{},reducers:{addNotification:{reducer:(e,{payload:t})=>{e[t.id]={id:t.id,variant:t.variant,size:t.size,title:t.title,description:t.description}},prepare:({id:e,variant:t="info",size:s="default",title:r,description:n})=>({payload:{id:e||(0,d.nanoid)(),variant:t,size:s,title:r||"",description:n}})},removeNotification:(e,{payload:t})=>(0,c.omit)(e,t)}}),E=(A.getInitialState,A.actions,A.reducer,"pluginUrl"),O=(0,d.createSlice)({name:E,initialState:"",reducers:{setPluginUrl:(e,{payload:t})=>t}}),P=O.getInitialState,M={selectPluginUrl:e=>(0,c.get)(e,E,"")};M.selectImageLink=(0,d.createSelector)([M.selectPluginUrl,(e,t,s="images")=>s,(e,t)=>t],(e,t,s)=>[(0,c.trimEnd)(e,"/"),(0,c.trim)(t,"/"),(0,c.trimStart)(s,"/")].join("/"));const I=O.actions,G=O.reducer,T="loading",B="wistiaEmbedPermission",U=(0,d.createSlice)({name:B,initialState:{value:!1,status:"idle",error:{}},reducers:{setWistiaEmbedPermissionValue:(e,{payload:t})=>{e.value=Boolean(t)}},extraReducers:e=>{e.addCase(`${B}/request`,e=>{e.status=T}),e.addCase(`${B}/success`,(e,{payload:t})=>{e.status="success",e.value=Boolean(t&&t.value)}),e.addCase(`${B}/error`,(e,{payload:t})=>{e.status="error",e.value=Boolean(t&&t.value),e.error={code:(0,c.get)(t,"error.code",500),message:(0,c.get)(t,"error.message","Unknown")}})}});var z;U.getInitialState,U.actions,U.reducer;const $=(0,d.createSlice)({name:"documentTitle",initialState:(0,c.defaultTo)(null===(z=document)||void 0===z?void 0:z.title,""),reducers:{setDocumentTitle:(e,{payload:t})=>t}}),F=($.getInitialState,$.actions,$.reducer,window.yoast.propTypes);var H=s.n(F);const V=window.React,W=(V.forwardRef(function(e,t){return V.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:t},e),V.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,t)=>{try{return(0,n.createInterpolateElement)(e,t)}catch(t){return console.error("Error in translation for:",e,t),e}}),Y=window.ReactJSXRuntime;H().string.isRequired,V.forwardRef(function(e,t){return V.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:t},e),V.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"}))});const D=V.forwardRef(function(e,t){return V.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),V.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"}))});H().string.isRequired,H().string.isRequired,H().shape({src:H().string.isRequired,width:H().string,height:H().string}).isRequired,H().shape({value:H().bool.isRequired,status:H().string.isRequired,set:H().func.isRequired}).isRequired,H().string,H().string,H().string;const J=({handleRefreshClick:e,supportLink:t})=>(0,Y.jsxs)("div",{className:"yst-flex yst-gap-2",children:[(0,Y.jsx)(o.Button,{onClick:e,children:(0,i.__)("Refresh this page","wordpress-seo")}),(0,Y.jsx)(o.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,i.__)("Contact support","wordpress-seo")})]});J.propTypes={handleRefreshClick:H().func.isRequired,supportLink:H().string.isRequired};const Q=({handleRefreshClick:e,supportLink:t})=>(0,Y.jsxs)("div",{className:"yst-grid yst-grid-cols-1 yst-gap-y-2",children:[(0,Y.jsx)(o.Button,{className:"yst-order-last",onClick:e,children:(0,i.__)("Refresh this page","wordpress-seo")}),(0,Y.jsx)(o.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,i.__)("Contact support","wordpress-seo")})]});Q.propTypes={handleRefreshClick:H().func.isRequired,supportLink:H().string.isRequired};const X=({error:e,children:t=null})=>(0,Y.jsxs)("div",{role:"alert",className:"yst-max-w-screen-sm yst-p-8 yst-space-y-4",children:[(0,Y.jsx)(o.Title,{children:(0,i.__)("Something went wrong. An unexpected error occurred.","wordpress-seo")}),(0,Y.jsx)("p",{children:(0,i.__)("We're very sorry, but it seems like the following error has interrupted our application:","wordpress-seo")}),(0,Y.jsx)(o.Alert,{variant:"error",children:(null==e?void 0:e.message)||(0,i.__)("Undefined error message.","wordpress-seo")}),(0,Y.jsx)("p",{children:(0,i.__)("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")}),t]});X.propTypes={error:H().object.isRequired,children:H().node},X.VerticalButtons=Q,X.HorizontalButtons=J;H().string,H().node.isRequired,H().node.isRequired,H().node,H().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"}}));const K=window.ReactDOM;var Z,ee,te;(ee=Z||(Z={})).Pop="POP",ee.Push="PUSH",ee.Replace="REPLACE",function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(te||(te={})),new Set(["lazy","caseSensitive","path","id","index","children"]),Error;const se=["post","put","patch","delete"],re=(new Set(se),["get",...se]);new Set(re),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred"),V.Component,V.startTransition,new Promise(()=>{}),V.Component,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(e){}var ne,ie,oe,ae;new Map,V.startTransition,K.flushSync,V.useId,"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,(ae=ne||(ne={})).UseScrollRestoration="useScrollRestoration",ae.UseSubmit="useSubmit",ae.UseSubmitFetcher="useSubmitFetcher",ae.UseFetcher="useFetcher",ae.useViewTransitionState="useViewTransitionState",(oe=ie||(ie={})).UseFetcher="useFetcher",oe.UseFetchers="useFetchers",oe.UseScrollRestoration="useScrollRestoration",H().string.isRequired,H().string;const le=({href:e,children:t=null,...s})=>(0,Y.jsxs)(o.Link,{target:"_blank",rel:"noopener noreferrer",...s,href:e,children:[t,(0,Y.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ /* translators: Hidden accessibility text. */
(0,i.__)("(Opens in a new browser tab)","wordpress-seo")})]});le.propTypes={href:H().string.isRequired,children:H().node};V.forwardRef(function(e,t){return V.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),V.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"}))}),(0,i.__)("Create optimized SEO titles & meta descriptions in seconds","wordpress-seo"),(0,i.__)("Apply AI suggestions to improve content in 1 click","wordpress-seo"),(0,i.__)("Manage redirects with ease and without extra plugins","wordpress-seo"),(0,i.__)("Optimize pages for multiple keywords with guidance","wordpress-seo"),(0,i.__)("Add product details to help your listings stand out","wordpress-seo"),(0,i.__)("Make sure search engines show the right version of your product page","wordpress-seo"),(0,i.__)("Create optimized SEO titles & meta descriptions with AI","wordpress-seo"),(0,i.__)("Receive clear SEO and readability guidance to optimize your products","wordpress-seo"),(0,i.__)("Generate SEO optimized metadata in seconds with AI","wordpress-seo"),(0,i.__)("Make your articles visible, be seen in Google News","wordpress-seo"),(0,i.__)("Built to get found by search, AI, and real users","wordpress-seo"),(0,i.__)("Easy Local SEO. Show up in Google Maps results","wordpress-seo"),(0,i.__)("Internal links and redirect management, easy","wordpress-seo"),(0,i.__)("Access to friendly help when you need it, day or night","wordpress-seo");H().string.isRequired,H().object.isRequired,H().func.isRequired,V.forwardRef(function(e,t){return V.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:t},e),V.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))}),H().string.isRequired,H().object,H().func.isRequired,H().bool.isRequired,H().string.isRequired,H().object.isRequired,H().string.isRequired,H().func.isRequired,H().bool.isRequired;const ce=V.forwardRef(function(e,t){return V.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:t},e),V.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"}))});H().bool.isRequired,H().func,H().func,H().string.isRequired,H().string.isRequired,H().string.isRequired,H().string.isRequired;window.yoast.reactHelmet;H().string.isRequired,H().shape({src:H().string.isRequired,width:H().string,height:H().string}).isRequired,H().shape({value:H().bool.isRequired,status:H().string.isRequired,set:H().func.isRequired}).isRequired,H().bool,V.forwardRef(function(e,t){return V.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),V.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"}))}),H().bool.isRequired,H().func.isRequired,H().func,H().string;const de=({onGiveConsent:e,learnMoreLink:t,privacyPolicyLink:s,termsOfServiceLink:r,imageLink:a})=>{const{onClose:l,initialFocus:c}=(0,o.useModalContext)(),[d,u]=(0,o.useToggleState)(!1),p=(0,n.useMemo)(()=>({src:a,width:"432",height:"244"}),[a]),y=W((0,i.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,i.__)("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,Y.jsx)(le,{href:r}),a2:(0,Y.jsx)(le,{href:s})}),[m,g]=(0,o.useToggleState)(!1),h=(0,n.useCallback)(async()=>{g(),await e(),g()},[e]);return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)("div",{className:"yst-px-10 yst-pt-10 yst-introduction-gradient yst-text-center",children:(0,Y.jsx)("div",{className:"yst-relative yst-w-full",children:(0,Y.jsx)("img",{className:"yst-w-full yst-h-auto yst-rounded-md yst-drop-shadow-md",alt:"",loading:"lazy",decoding:"async",...p})})}),(0,Y.jsxs)("div",{className:"yst-px-10 yst-pb-4 yst-flex yst-flex-col yst-items-center",children:[(0,Y.jsxs)("div",{className:"yst-mt-4 yst-mx-1.5 yst-text-center",children:[(0,Y.jsx)("h3",{className:"yst-text-slate-900 yst-text-lg yst-font-medium",children:(0,i.sprintf)(/* translators: %s expands to Yoast AI. */ /* translators: %s expands to Yoast AI. */
(0,i.__)("Grant consent for %s","wordpress-seo"),"Yoast AI")}),(0,Y.jsx)("div",{className:"yst-mt-2 yst-text-slate-600 yst-text-sm",children:W((0,i.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,i.__)("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,Y.jsx)(le,{href:t,className:"yst-inline-flex yst-items-center yst-gap-1 yst-no-underline yst-font-medium",variant:"primary"}),ArrowNarrowRightIcon:(0,Y.jsx)(D,{className:"yst-w-4 yst-h-4 rtl:yst-rotate-180"}),br:(0,Y.jsx)("br",{})})})]}),(0,Y.jsx)("div",{className:"yst-flex yst-w-full yst-mt-6",children:(0,Y.jsx)("hr",{className:"yst-w-full yst-text-gray-200"})}),(0,Y.jsxs)("div",{className:"yst-flex yst-items-start yst-mt-4",children:[(0,Y.jsx)("input",{type:"checkbox",id:"yst-ai-consent-checkbox",name:"yst-ai-consent-checkbox",checked:d,value:d?"true":"false",onChange:u,className:"yst-checkbox__input",ref:c}),(0,Y.jsx)("label",{htmlFor:"yst-ai-consent-checkbox",className:"yst-label yst-checkbox__label yst-text-xs yst-font-normal yst-text-slate-500",children:y})]}),(0,Y.jsx)("div",{className:"yst-w-full yst-flex yst-mt-4",children:(0,Y.jsxs)(o.Button,{as:"button",className:"yst-grow",size:"large",disabled:!d,onClick:h,children:[m&&(0,Y.jsx)(o.Spinner,{className:"yst-me-2"}),(0,i.__)("Grant consent","wordpress-seo")]})}),(0,Y.jsx)(o.Button,{as:"button",className:"yst-mt-4",variant:"tertiary",onClick:l,children:(0,i.__)("Close","wordpress-seo")})]})]})};de.propTypes={onGiveConsent:H().func.isRequired,learnMoreLink:H().string.isRequired,privacyPolicyLink:H().string.isRequired,termsOfServiceLink:H().string.isRequired,imageLink:H().string.isRequired};const ue={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"},pe=({storeName:t,onConsentGranted:s,linkStoreName:r,links:i={}})=>{const o=(0,n.useMemo)(()=>({...ue,...i}),[i]),{termsOfServiceLink:a,privacyPolicyLink:l,learnMoreLink:c,imageLink:d,endpoint:u}=(0,e.useSelect)(e=>{const s=e(r),n=e(t);return{termsOfServiceLink:s.selectLink(o.termsOfService),privacyPolicyLink:s.selectLink(o.privacyPolicy),learnMoreLink:s.selectLink(o.learnMore),imageLink:s.selectImageLink("ai-consent.png"),endpoint:n.selectAiGeneratorConsentEndpoint()}},[r,t,o]),{storeAiGeneratorConsent:p}=(0,e.useDispatch)(t),y=(0,n.useCallback)(async()=>{await p(!0,u),s()},[p,s,u]);return(0,Y.jsx)(de,{termsOfServiceLink:a,privacyPolicyLink:l,learnMoreLink:c,imageLink:d,onGiveConsent:y})};pe.propTypes={storeName:H().string.isRequired,onConsentGranted:H().func.isRequired,linkStoreName:H().string.isRequired,links:H().shape({termsOfService:H().string,privacyPolicy:H().string,learnMore:H().string})};const ye="yoast-seo/ai-consent",me={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"},ge=({onStartGenerating:e})=>(0,Y.jsx)(pe,{storeName:ye,onConsentGranted:e,linkStoreName:ye,links:me});ge.propTypes={onStartGenerating:H().func.isRequired};const he=({onClose:t})=>{const{storeAiGeneratorConsent:s}=(0,e.useDispatch)(ye),r=(0,e.useSelect)(e=>e(ye).selectAiGeneratorConsentEndpoint(),[]),[a,l]=(0,n.useState)(!1),[c,d]=(0,n.useState)(!1),u=(0,n.useCallback)(async()=>{if(d(!1),l(!0),!1===(await s(!1,r)).consent)return d(!0),void l(!1);t(),l(!1)},[s,l,t,r]);return(0,Y.jsxs)("div",{className:"yst-flex yst-flex-row",children:[(0,Y.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,Y.jsx)(ce,{className:"yst-w-6 yst-h-6 yst-align-center yst-text-red-600"})}),(0,Y.jsxs)("div",{children:[(0,Y.jsx)(o.Modal.Title,{className:"yst-font-semibold",as:"h3",size:"4",children:(0,i.__)("Revoke AI consent","wordpress-seo")}),c&&(0,Y.jsx)(o.Alert,{className:"yst-mt-2",variant:"error",children:(0,i.__)("Something went wrong, please try again later.","wordpress-seo")}),(0,Y.jsx)("p",{className:"yst-mt-2 yst-text-slate-600",children:(0,i.__)("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,Y.jsxs)("footer",{className:"yst-mt-6 sm:yst-flex sm:yst-flex-row-reverse",children:[(0,Y.jsx)(o.Button,{variant:"error",isLoading:a,className:"yst-w-full sm:yst-w-auto yst-revoke-button",onClick:u,children:(0,i.__)("Yes, revoke consent","wordpress-seo")}),(0,Y.jsx)(o.Button,{variant:"secondary",className:"yst-w-full sm:yst-w-auto yst-me-3",onClick:t,children:(0,i.__)("Close","wordpress-seo")})]})]})]})};r()(()=>{((t={})=>{(0,e.register)((t=>(0,e.createReduxStore)(ye,{actions:{...k,...I,...q},selectors:{...x,...M,...L},initialState:(0,c.merge)({},{[h]:v(),[E]:P(),[j]:C()},t),reducer:(0,e.combineReducers)({[h]:S,[E]:G,[j]:N}),controls:{...R}}))(t))})({[h]:{hasConsent:"1"===(0,c.get)(window,"wpseoAiConsent.hasConsent",!1),endpoint:(0,c.get)(window,"wpseoAiConsent.endpoints.consent","")},[E]:(0,c.get)(window,"wpseoAiConsent.pluginUrl",""),[j]:(0,c.get)(window,"wpseoAiConsent.linkParams",{})});const t=()=>{const t=(0,e.useSelect)(e=>e(ye).selectHasAiGeneratorConsent(),[]),[s,,,r,a]=(0,o.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,Y.jsxs)(n.Fragment,{children:[(0,Y.jsx)(o.Modal,{className:"yst-introduction-modal",isOpen:s,onClose:a,initialFocus:c,children:(0,Y.jsxs)(o.Modal.Panel,{className:l()(!t&&"yst-p-0 yst-max-w-lg yst-rounded-3xl",t&&"yst-max-w-xl yst-rounded-lg"),children:[!t&&(0,Y.jsx)(ge,{onStartGenerating:a,focusElementRef:c}),t&&(0,Y.jsx)(he,{onClose:a})]})}),(0,Y.jsx)("button",{className:"button",id:"ai-generator-consent-button",type:"button",onClick:d,children:t?(0,i.__)("Revoke consent","wordpress-seo"):(0,i.__)("Grant consent","wordpress-seo")})]})},s=document.getElementById("ai-generator-consent");s&&(0,n.render)((0,Y.jsx)(t,{}),s)})})()})();

Directory Contents

Dirs: 2 × Files: 46

Name Size Perms Modified Actions
externals DIR
- drwxr-xr-x 2026-06-03 14:57:42
Edit Download
languages DIR
- drwxr-xr-x 2026-06-03 14:57:42
Edit Download
16.88 KB lrw-r--r-- 2026-06-03 14:57:42
Edit Download
4.06 KB lrw-r--r-- 2026-06-03 14:57:42
Edit Download
6.07 KB lrw-r--r-- 2026-06-03 14:57:42
Edit Download
29.13 KB lrw-r--r-- 2026-06-03 14:57:42
Edit Download
20.35 KB lrw-r--r-- 2026-06-03 14:57:42
Edit Download
188.64 KB lrw-r--r-- 2026-06-03 14:57:42
Edit Download
102.10 KB lrw-r--r-- 2026-06-03 14:57:42
Edit Download
617 B lrw-r--r-- 2026-06-03 14:57:42
Edit Download
579 B lrw-r--r-- 2026-06-03 14:57:42
Edit Download
360.19 KB lrw-r--r-- 2026-06-03 14:57:42
Edit Download
2.49 KB lrw-r--r-- 2026-06-03 14:57:42
Edit Download
144.28 KB lrw-r--r-- 2026-06-03 14:57:42
Edit Download
571 B lrw-r--r-- 2026-06-03 14:57:42
Edit Download
1.99 KB lrw-r--r-- 2026-06-03 14:57:42
Edit Download
1.01 KB lrw-r--r-- 2026-06-03 14:57:42
Edit Download
545 B lrw-r--r-- 2026-06-03 14:57:42
Edit Download
125.63 KB lrw-r--r-- 2026-06-03 14:57:42
Edit Download
203.12 KB lrw-r--r-- 2026-06-03 14:57:42
Edit Download
147.29 KB lrw-r--r-- 2026-06-03 14:57:42
Edit Download
823 B lrw-r--r-- 2026-06-03 14:57:42
Edit Download
56.34 KB lrw-r--r-- 2026-06-03 14:57:42
Edit Download
52.40 KB lrw-r--r-- 2026-06-03 14:57:42
Edit Download
200 B lrw-r--r-- 2026-06-03 14:57:42
Edit Download
3.79 KB lrw-r--r-- 2026-06-03 14:57:42
Edit Download
316.22 KB lrw-r--r-- 2026-06-03 14:57:42
Edit Download
4.83 KB lrw-r--r-- 2026-06-03 14:57:42
Edit Download
62.82 KB lrw-r--r-- 2026-06-03 14:57:42
Edit Download
5.76 KB lrw-r--r-- 2026-06-03 14:57:42
Edit Download
7.05 KB lrw-r--r-- 2026-06-03 14:57:42
Edit Download
6.43 KB lrw-r--r-- 2026-06-03 14:57:42
Edit Download
161.00 KB lrw-r--r-- 2026-06-03 14:57:42
Edit Download
35.33 KB lrw-r--r-- 2026-06-03 14:57:42
Edit Download
2.25 KB lrw-r--r-- 2026-06-03 14:57:42
Edit Download
498.93 KB lrw-r--r-- 2026-06-03 14:57:42
Edit Download
40.62 KB lrw-r--r-- 2026-06-03 14:57:42
Edit Download
101.83 KB lrw-r--r-- 2026-06-03 14:57:42
Edit Download
949 B lrw-r--r-- 2026-06-03 14:57:42
Edit Download
237 B lrw-r--r-- 2026-06-03 14:57:42
Edit Download
72.46 KB lrw-r--r-- 2026-06-03 14:57:42
Edit Download
2.71 KB lrw-r--r-- 2026-06-03 14:57:42
Edit Download
10.18 KB lrw-r--r-- 2026-06-03 14:57:42
Edit Download
35.67 KB lrw-r--r-- 2026-06-03 14:57:42
Edit Download
59.20 KB lrw-r--r-- 2026-06-03 14:57:42
Edit Download
782 B lrw-r--r-- 2026-06-03 14:57:42
Edit Download
20.18 KB lrw-r--r-- 2026-06-03 14:57:42
Edit Download
38.21 KB lrw-r--r-- 2026-06-03 14:57:42
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).