/
home
/
techb158
/
public_html
/
wp-content
/
plugins
/
wordpress-seo
/
js
/
dist
/
/home/techb158/public_html/wp-content/plugins/wordpress-seo/js/dist
mkdir
upload
Name
Size
Mode
Actions
externals/
-
0755
rm
languages/
-
0755
rm
academy.js
18703
0644
edit
dl
rm
addon-installation.js
4159
0644
edit
dl
rm
admin-global.js
6216
0644
edit
dl
rm
admin-modules.js
29826
0644
edit
dl
rm
ai-consent.js
24905
0644
edit
dl
rm
ai-content-planner.js
221499
0644
edit
dl
rm
ai-generator.js
117063
0644
edit
dl
rm
analysis-worker.js
617
0644
edit
dl
rm
api-client.js
579
0644
edit
dl
rm
block-editor.js
398256
0644
edit
dl
rm
bulk-editor-page.js
167719
0644
edit
dl
rm
classic-editor.js
150614
0644
edit
dl
rm
crawl-settings.js
571
0644
edit
dl
rm
dashboard-widget.js
2033
0644
edit
dl
rm
dynamic-blocks.js
1039
0644
edit
dl
rm
edit-page.js
545
0644
edit
dl
rm
editor-modules.js
156972
0644
edit
dl
rm
elementor-v4.js
5803
0644
edit
dl
rm
elementor.js
218215
0644
edit
dl
rm
externals-components.js
170805
0644
edit
dl
rm
externals-contexts.js
823
0644
edit
dl
rm
externals-redux.js
59922
0644
edit
dl
rm
faq-block.js
53655
0644
edit
dl
rm
filter-explanation.js
200
0644
edit
dl
rm
frontend-inspector-resources.js
3883
0644
edit
dl
rm
general-page.js
329351
0644
edit
dl
rm
help-scout-beacon.js
4942
0644
edit
dl
rm
how-to-block.js
64329
0644
edit
dl
rm
import.js
6024
0644
edit
dl
rm
indexation.js
7840
0644
edit
dl
rm
installation-success.js
6955
0644
edit
dl
rm
integrations-page.js
194708
0644
edit
dl
rm
introductions.js
32784
0644
edit
dl
rm
network-admin.js
2309
0644
edit
dl
rm
new-settings.js
509591
0644
edit
dl
rm
plans.js
42929
0644
edit
dl
rm
post-edit.js
109428
0644
edit
dl
rm
quick-edit-handler.js
949
0644
edit
dl
rm
redirect-old-features-tab.js
237
0644
edit
dl
rm
redirects.js
78337
0644
edit
dl
rm
reindex-links.js
2778
0644
edit
dl
rm
settings.js
10365
0644
edit
dl
rm
support.js
39934
0644
edit
dl
rm
term-edit.js
65362
0644
edit
dl
rm
used-keywords-assessment.js
782
0644
edit
dl
rm
wincher-dashboard-widget.js
20664
0644
edit
dl
rm
workouts.js
39124
0644
edit
dl
rm
Edit:
/home/techb158/public_html/wp-content/plugins/wordpress-seo/js/dist/ai-consent.js
(24905B)
(()=>{var e={818(e,t,s){const r=s(1609),n=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},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,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 o=typeof s;if("string"===o||"number"===o)e.push(s);else if(Array.isArray(s)){if(s.length){var i=n.apply(null,s);i&&e.push(i)}}else if("object"===o){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)}()},2514(e,t,s){const r=s(1609),n=r.forwardRef(function(e,t){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:t},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,t,s){const r=s(1609),n=r.forwardRef(function(e,t){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:t},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))});e.exports=n},5074(e,t,s){const r=s(1609),n=r.forwardRef(function(e,t){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:t},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,t,s){const r=s(1609),n=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},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,t,s){const r=s(1609),n=r.forwardRef(function(e,t){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:t},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,t,s){const r=s(1609),n=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},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}},t={};function s(r){var n=t[r];if(void 0!==n)return n.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,s),o.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,o=window.wp.i18n,i=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}}),m=p.getInitialState,y={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}});const g=p.actions,h=p.reducer,w="replacementVariables",f=(0,d.createSlice)({name:w,initialState:(v={},{recommended:(0,c.get)(v,"recommended",{}),shared:(0,c.get)(v,"shared",[]),specific:(0,c.get)(v,"specific",{}),variables:(0,c.get)(v,"variables",[])}),reducers:{}});var v;const x=(0,d.createSelector)([e=>(0,c.get)(e,[w,"shared"],[]),e=>(0,c.get)(e,[w,"specific"],{}),(e,t)=>t,(e,t,s)=>s],(e,t,s,r)=>[...e,...(0,c.get)(t,s,(0,c.get)(t,r,[]))]),S=((0,d.createSelector)([e=>(0,c.get)(e,[w,"variables"],[]),x],(e,t)=>(0,c.filter)(e,({name:e})=>(0,c.includes)(t,e))),(0,d.createSelector)([e=>(0,c.get)(e,[w,"recommended"],{}),(e,t)=>t,(e,t,s)=>s],(e,t,s)=>(0,c.get)(e,t,(0,c.get)(e,s,[]))),f.actions,f.reducer,window.wp.apiFetch);var k=s.n(S);const _="hasConsent",b=`${_}/storeConsent`,R=(0,d.createSlice)({name:_,initialState:{hasConsent:!1,endpoint:""},reducers:{giveAiGeneratorConsent:(e,{payload:t})=>{e.hasConsent=t},setAiGeneratorConsentEndpoint:(e,{payload:t})=>{e.endpoint=t}}}),j=R.getInitialState,C={selectHasAiGeneratorConsent:e=>(0,c.get)(e,[_,"hasConsent"],R.getInitialState().hasConsent),selectAiGeneratorConsentEndpoint:e=>(0,c.get)(e,[_,"endpoint"],R.getInitialState().endpoint)},N={...R.actions,storeAiGeneratorConsent:function*(e,t){try{yield{type:b,payload:{consent:e,endpoint:t}}}catch(e){return!1}return yield{type:`${_}/giveAiGeneratorConsent`,payload:e},!0}},q={[b]:async({payload:e})=>await k()({path:e.endpoint,method:"POST",data:{consent:e.consent},parse:!1})},L=R.reducer,A=window.wp.url,O="linkParams",E=(0,d.createSlice)({name:O,initialState:{},reducers:{setLinkParams:(e,{payload:t})=>t}}),I=E.getInitialState,P={selectLinkParam:(e,t,s={})=>(0,c.get)(e,`${O}.${t}`,s),selectLinkParams:e=>(0,c.get)(e,O,{})};P.selectLink=(0,d.createSelector)([P.selectLinkParams,(e,t)=>t,(e,t,s={})=>s],(e,t,s)=>(0,A.addQueryArgs)(t,{...e,...s}));const M=E.actions,T=E.reducer,G=(0,d.createSlice)({name:"myyoastConnection",initialState:{isAvailable:!1,canConnect:!1,connectUrl:null,learnMoreUrl:""},reducers:{}}),U=(G.getInitialState,G.actions,G.reducer,"notifications"),B=(0,d.createSlice)({name:U,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)}}),$=(B.getInitialState,B.actions,B.reducer,"request"),z="loading",F=(0,d.createSlice)({name:"optInNotification",initialState:{seen:{}},reducers:{hideOptInNotification(e,t){const s=t.payload;e.seen[s]=!0}}}),H=(F.getInitialState,F.actions,F.reducer,"pluginUrl"),Y=(0,d.createSlice)({name:H,initialState:"",reducers:{setPluginUrl:(e,{payload:t})=>t}}),V=Y.getInitialState,W={selectPluginUrl:e=>(0,c.get)(e,H,"")};W.selectImageLink=(0,d.createSelector)([W.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 D=Y.actions,J=Y.reducer,Q="wistiaEmbedPermission",X=(0,d.createSlice)({name:Q,initialState:{value:!1,status:"idle",error:{}},reducers:{setWistiaEmbedPermissionValue:(e,{payload:t})=>{e.value=Boolean(t)}},extraReducers:e=>{e.addCase(`${Q}/${$}`,e=>{e.status=z}),e.addCase(`${Q}/success`,(e,{payload:t})=>{e.status="success",e.value=Boolean(t&&t.value)}),e.addCase(`${Q}/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 K;X.getInitialState,X.actions,X.reducer;const Z=(0,d.createSlice)({name:"documentTitle",initialState:(0,c.defaultTo)(null===(K=document)||void 0===K?void 0:K.title,""),reducers:{setDocumentTitle:(e,{payload:t})=>t}}),ee=(Z.getInitialState,Z.actions,Z.reducer,window.yoast.propTypes);var te=s.n(ee);s(6702);const se=(e,t)=>{try{return(0,n.createInterpolateElement)(e,t)}catch(t){return console.error("Error in translation for:",e,t),e}},re=window.ReactJSXRuntime;te().string.isRequired,s(2514);var ne=s(818),oe=s.n(ne);te().string.isRequired,te().string.isRequired,te().shape({src:te().string.isRequired,width:te().string,height:te().string}).isRequired,te().shape({value:te().bool.isRequired,status:te().string.isRequired,set:te().func.isRequired}).isRequired,te().string,te().string,te().string;const ie=({handleRefreshClick:e,supportLink:t})=>(0,re.jsxs)("div",{className:"yst-flex yst-gap-2",children:[(0,re.jsx)(i.Button,{onClick:e,children:(0,o.__)("Refresh this page","wordpress-seo")}),(0,re.jsx)(i.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,o.__)("Contact support","wordpress-seo")})]});ie.propTypes={handleRefreshClick:te().func.isRequired,supportLink:te().string.isRequired};const ae=({handleRefreshClick:e,supportLink:t})=>(0,re.jsxs)("div",{className:"yst-grid yst-grid-cols-1 yst-gap-y-2",children:[(0,re.jsx)(i.Button,{className:"yst-order-last",onClick:e,children:(0,o.__)("Refresh this page","wordpress-seo")}),(0,re.jsx)(i.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,o.__)("Contact support","wordpress-seo")})]});ae.propTypes={handleRefreshClick:te().func.isRequired,supportLink:te().string.isRequired};const le=({error:e,children:t=null})=>(0,re.jsxs)("div",{role:"alert",className:"yst-max-w-screen-sm yst-p-8 yst-space-y-4",children:[(0,re.jsx)(i.Title,{children:(0,o.__)("Something went wrong. An unexpected error occurred.","wordpress-seo")}),(0,re.jsx)("p",{children:(0,o.__)("We're very sorry, but it seems like the following error has interrupted our application:","wordpress-seo")}),(0,re.jsx)(i.Alert,{variant:"error",children:(null==e?void 0:e.message)||(0,o.__)("Undefined error message.","wordpress-seo")}),(0,re.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")}),t]});le.propTypes={error:te().object.isRequired,children:te().node},le.VerticalButtons=ae,le.HorizontalButtons=ie;te().string,te().node.isRequired,te().node.isRequired,te().node,te().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 ce=s(1609);const de=window.ReactDOM;var ue,pe,me;(pe=ue||(ue={})).Pop="POP",pe.Push="PUSH",pe.Replace="REPLACE",function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(me||(me={})),new Set(["lazy","caseSensitive","path","id","index","children"]),Error;const ye=["post","put","patch","delete"],ge=(new Set(ye),["get",...ye]);new Set(ge),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred"),ce.Component,ce.startTransition,new Promise(()=>{}),ce.Component,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(e){}var he,we,fe,ve;new Map,ce.startTransition,de.flushSync,ce.useId,"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,(ve=he||(he={})).UseScrollRestoration="useScrollRestoration",ve.UseSubmit="useSubmit",ve.UseSubmitFetcher="useSubmitFetcher",ve.UseFetcher="useFetcher",ve.useViewTransitionState="useViewTransitionState",(fe=we||(we={})).UseFetcher="useFetcher",fe.UseFetchers="useFetchers",fe.UseScrollRestoration="useScrollRestoration",te().string.isRequired,te().string;const xe=({href:e,children:t=null,...s})=>(0,re.jsxs)(i.Link,{target:"_blank",rel:"noopener noreferrer",...s,href:e,children:[t,(0,re.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")})]});xe.propTypes={href:te().string.isRequired,children:te().node};s(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");te().string.isRequired,te().object.isRequired,te().func.isRequired,te().bool.isRequired,s(3473),te().string.isRequired,te().object,te().func.isRequired,te().bool.isRequired,te().string.isRequired,te().object.isRequired,te().string.isRequired,te().func.isRequired,te().bool.isRequired;var Se=s(5074),ke=s.n(Se);te().bool.isRequired,te().func,te().func,te().string.isRequired,te().string.isRequired,te().string.isRequired,te().string.isRequired;window.yoast.reactHelmet;te().string.isRequired,te().shape({src:te().string.isRequired,width:te().string,height:te().string}).isRequired,te().shape({value:te().bool.isRequired,status:te().string.isRequired,set:te().func.isRequired}).isRequired,te().bool,s(5687),te().bool.isRequired,te().func.isRequired,te().func,te().string;const _e="yoast-seo/editor",be=((0,c.mapValues)({post:"title",term:"term_title"},e=>`%%${e}%%`),({children:e})=>(0,re.jsx)("p",{className:"yst-mt-2",children:e}));be.propTypes={children:te().node.isRequired};const Re=(0,o.__)("Something went wrong","wordpress-seo"),je=({linkStoreName:t=_e})=>{const s=(0,e.useSelect)(e=>e(t).selectLink("https://yoa.st/ai-common-errors"),[t]),r=(0,e.useSelect)(e=>e(t).selectAdminLink("?page=wpseo_page_support"),[t]);return(0,re.jsx)(be,{children:se((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,re.jsx)(xe,{variant:"error",href:s}),a2:(0,re.jsx)(xe,{variant:"error",href:r})})})};je.propTypes={linkStoreName:te().string};const Ce=({linkStoreName:e=_e,className:t=""})=>(0,re.jsxs)(i.Alert,{variant:"error",className:t,children:[(0,re.jsx)("span",{className:"yst-block yst-font-medium",children:Re}),(0,re.jsx)(je,{linkStoreName:e})]});Ce.propTypes={linkStoreName:te().string,className:te().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");te().arrayOf(te().string),te().arrayOf(te().string),(0,o.__)("Connection timeout","wordpress-seo"),(0,o.__)("Usage policy violation","wordpress-seo"),(0,o.__)("Something went wrong","wordpress-seo");te().string,te().string,(0,o.__)("Something went wrong","wordpress-seo");te().bool,te().func.isRequired,te().func.isRequired,te().bool,te().bool,te().func,te().func,te().bool,te().bool,te().func,te().func,te().string,te().bool,te().bool,te().func,te().func,te().bool,te().func,te().bool,te().func,te().bool,te().func,te().bool,te().func,te().arrayOf(te().string),te().bool,te().func,te().bool,te().func,(0,o.__)("Yoast AI cannot reach your site","wordpress-seo");te().string,te().bool,te().func;const Ne=({onGiveConsent:e,learnMoreLink:t,privacyPolicyLink:s,termsOfServiceLink:r,imageLink:a,linkStoreName:l})=>{const{onClose:c,initialFocus:d}=(0,i.useModalContext)(),[u,p]=(0,i.useToggleState)(!1),[m,y]=(0,n.useState)(!1),g=(0,n.useMemo)(()=>({src:a,width:"432",height:"244"}),[a]),h=se((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,re.jsx)(xe,{href:r}),a2:(0,re.jsx)(xe,{href:s})}),[w,f]=(0,i.useToggleState)(!1),v=(0,n.useCallback)(async()=>{f();const t=await e();y(!1===t),f()},[e]);return(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)("div",{className:"yst-px-10 yst-pt-10 yst-introduction-gradient yst-text-center",children:(0,re.jsx)("div",{className:"yst-relative yst-w-full",children:(0,re.jsx)("img",{className:"yst-w-full yst-h-auto yst-rounded-md yst-drop-shadow-md",alt:"",loading:"lazy",decoding:"async",...g})})}),(0,re.jsxs)("div",{className:"yst-px-10 yst-pb-4 yst-flex yst-flex-col yst-items-center",children:[(0,re.jsxs)("div",{className:"yst-mt-4 yst-mx-1.5 yst-text-center",children:[(0,re.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,re.jsx)("div",{className:"yst-mt-2 yst-text-slate-600 yst-text-sm",children:se((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,re.jsx)(xe,{href:t,className:"yst-inline-flex yst-items-center yst-gap-1 yst-no-underline yst-font-medium",variant:"primary"}),ArrowNarrowRightIcon:(0,re.jsx)(oe(),{className:"yst-w-4 yst-h-4 rtl:yst-rotate-180"}),br:(0,re.jsx)("br",{})})})]}),(0,re.jsx)("div",{className:"yst-flex yst-w-full yst-mt-6",children:(0,re.jsx)("hr",{className:"yst-w-full yst-text-gray-200"})}),(0,re.jsxs)("div",{className:"yst-flex yst-items-start yst-mt-4",children:[(0,re.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,re.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})]}),m&&(0,re.jsx)(Ce,{className:"yst-mt-3",linkStoreName:l}),(0,re.jsx)("div",{className:"yst-w-full yst-flex yst-mt-4",children:(0,re.jsxs)(i.Button,{as:"button",className:"yst-grow",size:"large",disabled:!u||m,onClick:v,children:[w&&!m&&(0,re.jsx)(i.Spinner,{className:"yst-me-2"}),(0,o.__)("Grant consent","wordpress-seo")]})}),(0,re.jsx)(i.Button,{as:"button",className:"yst-mt-4",variant:"tertiary",onClick:c,children:(0,o.__)("Close","wordpress-seo")})]})]})};Ne.propTypes={onGiveConsent:te().func.isRequired,learnMoreLink:te().string.isRequired,privacyPolicyLink:te().string.isRequired,termsOfServiceLink:te().string.isRequired,imageLink:te().string.isRequired,linkStoreName:te().string.isRequired};const qe={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"},Le=({storeName:t,onConsentGranted:s,linkStoreName:r,links:o={}})=>{const i=(0,n.useMemo)(()=>({...qe,...o}),[o]),{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(i.termsOfService),privacyPolicyLink:s.selectLink(i.privacyPolicy),learnMoreLink:s.selectLink(i.learnMore),imageLink:s.selectImageLink("ai-consent.jpg"),endpoint:n.selectAiGeneratorConsentEndpoint()}},[r,t,i]),{storeAiGeneratorConsent:p}=(0,e.useDispatch)(t),m=(0,n.useCallback)(async()=>{const e=await p(!0,u);return!1!==e&&s(),e},[p,s,u]);return(0,re.jsx)(Ne,{termsOfServiceLink:a,privacyPolicyLink:l,learnMoreLink:c,imageLink:d,onGiveConsent:m,linkStoreName:r})};Le.propTypes={storeName:te().string.isRequired,onConsentGranted:te().func.isRequired,linkStoreName:te().string.isRequired,links:te().shape({termsOfService:te().string,privacyPolicy:te().string,learnMore:te().string})};const Ae="yoast-seo/ai-consent",Oe={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"},Ee=({onStartGenerating:e})=>(0,re.jsx)(Le,{storeName:Ae,onConsentGranted:e,linkStoreName:Ae,links:Oe});Ee.propTypes={onStartGenerating:te().func.isRequired};const Ie=({onClose:t})=>{const{storeAiGeneratorConsent:s,giveAiGeneratorConsent:r}=(0,e.useDispatch)(Ae),a=(0,e.useSelect)(e=>e(Ae).selectAiGeneratorConsentEndpoint(),[]),[l,c]=(0,n.useState)(!1),d=(0,n.useCallback)(async()=>{c(!0),await s(!1,a),r(!1),t(),c(!1)},[s,r,c,t,a]);return(0,re.jsxs)("div",{className:"yst-flex yst-flex-row",children:[(0,re.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,re.jsx)(ke(),{className:"yst-w-6 yst-h-6 yst-align-center yst-text-red-600"})}),(0,re.jsxs)("div",{children:[(0,re.jsx)(i.Modal.Title,{className:"yst-font-semibold",as:"h3",size:"4",children:(0,o.__)("Revoke AI consent","wordpress-seo")}),(0,re.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,re.jsxs)("footer",{className:"yst-mt-6 sm:yst-flex sm:yst-flex-row-reverse",children:[(0,re.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,re.jsx)(i.Button,{variant:"secondary",className:"yst-w-full sm:yst-w-auto yst-me-3",onClick:t,children:(0,o.__)("Close","wordpress-seo")})]})]})]})};r()(()=>{((t={})=>{(0,e.register)((t=>(0,e.createReduxStore)(Ae,{actions:{...N,...D,...M,...g},selectors:{...C,...W,...P,...y},initialState:(0,c.merge)({},{[_]:j(),[H]:V(),[O]:I(),[u]:m()},t),reducer:(0,e.combineReducers)({[_]:L,[H]:J,[O]:T,[u]:h}),controls:{...q}}))(t))})({[_]:{hasConsent:"1"===(0,c.get)(window,"wpseoAiConsent.hasConsent",!1),endpoint:(0,c.get)(window,"wpseoAiConsent.endpoints.consent","")},[H]:(0,c.get)(window,"wpseoAiConsent.pluginUrl",""),[O]:(0,c.get)(window,"wpseoAiConsent.linkParams",{}),[u]:(0,c.get)(window,"wpseoAiConsent.adminUrl","")});const t=()=>{const t=(0,e.useSelect)(e=>e(Ae).selectHasAiGeneratorConsent(),[]),[s,,,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,re.jsxs)(n.Fragment,{children:[(0,re.jsx)(i.Modal,{className:"yst-introduction-modal",isOpen:s,onClose:a,initialFocus:c,children:(0,re.jsxs)(i.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,re.jsx)(Ee,{onStartGenerating:a,focusElementRef:c}),t&&(0,re.jsx)(Ie,{onClose:a})]})}),(0,re.jsx)("button",{className:"button",id:"ai-generator-consent-button",type:"button",onClick:d,children:t?(0,o.__)("Revoke consent","wordpress-seo"):(0,o.__)("Grant consent","wordpress-seo")})]})},s=document.getElementById("ai-generator-consent");s&&(0,n.createRoot)(s).render((0,re.jsx)(t,{}))})})()})();
Save
cmd:
run