????JFIF??x?x????'
Server IP : 104.21.16.1 / Your IP : 216.73.216.111 Web Server : LiteSpeed System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : tempvsty ( 647) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/./tempvsty/././peekmysite.com/wp-content/plugins/wordpress-seo/js/dist/ |
Upload File : |
(()=>{var e={4530:(e,t)=>{var s;!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var s=arguments[t];if(s){var n=typeof s;if("string"===n||"number"===n)e.push(s);else if(Array.isArray(s)){if(s.length){var l=a.apply(null,s);l&&e.push(l)}}else if("object"===n){if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]")){e.push(s.toString());continue}for(var o in s)r.call(s,o)&&s[o]&&e.push(o)}}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(s=function(){return a}.apply(t,[]))||(e.exports=s)}()}},t={};function s(r){var a=t[r];if(void 0!==a)return a.exports;var n=t[r]={exports:{}};return e[r](n,n.exports,s),n.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.React,t=window.wp.data,r=window.wp.domReady;var a=s.n(r);const n=window.wp.element,l=window.wp.i18n,o=window.yoast.uiLibrary;var i=s(4530),c=s.n(i);const m=window.lodash,d=window.yoast.reduxJsToolkit,y="adminUrl",p=(0,d.createSlice)({name:y,initialState:"",reducers:{setAdminUrl:(e,{payload:t})=>t}}),u=(p.getInitialState,{selectAdminUrl:e=>(0,m.get)(e,y,"")});u.selectAdminLink=(0,d.createSelector)([u.selectAdminUrl,(e,t)=>t],((e,t="")=>{try{return new URL(t,e).href}catch(t){return e}})),p.actions,p.reducer;const f=window.wp.apiFetch;var w=s.n(f);const g="hasConsent",h=`${g}/storeConsent`,E=(0,d.createSlice)({name:g,initialState:{hasConsent:!1,endpoint:"yoast/v1/ai_generator/consent"},reducers:{giveAiGeneratorConsent:(e,{payload:t})=>{e.hasConsent=t},setAiGeneratorConsentEndpoint:(e,{payload:t})=>{e.endpoint=t}}}),v=E.getInitialState,b={selectHasAiGeneratorConsent:e=>(0,m.get)(e,[g,"hasConsent"],E.getInitialState().hasConsent),selectAiGeneratorConsentEndpoint:e=>(0,m.get)(e,[g,"endpoint"],E.getInitialState().endpoint)},x={...E.actions,storeAiGeneratorConsent:function*(e,t){try{yield{type:h,payload:{consent:e,endpoint:t}}}catch(e){return!1}return yield{type:`${g}/giveAiGeneratorConsent`,payload:e},!0}},_={[h]:async({payload:e})=>await w()({path:e.endpoint,method:"POST",data:{consent:e.consent},parse:!1})},k=E.reducer,N=window.wp.url,C="linkParams",S=(0,d.createSlice)({name:C,initialState:{},reducers:{setLinkParams:(e,{payload:t})=>t}}),L=S.getInitialState,R={selectLinkParam:(e,t,s={})=>(0,m.get)(e,`${C}.${t}`,s),selectLinkParams:e=>(0,m.get)(e,C,{})};R.selectLink=(0,d.createSelector)([R.selectLinkParams,(e,t)=>t,(e,t,s={})=>s],((e,t,s)=>(0,N.addQueryArgs)(t,{...e,...s})));const O=S.actions,A=S.reducer,P=(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:a})=>({payload:{id:e||(0,d.nanoid)(),variant:t,size:s,title:r||"",description:a}})},removeNotification:(e,{payload:t})=>(0,m.omit)(e,t)}}),M=(P.getInitialState,P.actions,P.reducer,"pluginUrl"),q=(0,d.createSlice)({name:M,initialState:"",reducers:{setPluginUrl:(e,{payload:t})=>t}}),j=q.getInitialState,B={selectPluginUrl:e=>(0,m.get)(e,M,"")};B.selectImageLink=(0,d.createSelector)([B.selectPluginUrl,(e,t,s="images")=>s,(e,t)=>t],((e,t,s)=>[(0,m.trimEnd)(e,"/"),(0,m.trim)(t,"/"),(0,m.trimStart)(s,"/")].join("/")));const F=q.actions,I=q.reducer,T="loading",$="showPlay",U="askPermission",z="isPlaying",Z="wistiaEmbedPermission",G=(0,d.createSlice)({name:Z,initialState:{value:!1,status:"idle",error:{}},reducers:{setWistiaEmbedPermissionValue:(e,{payload:t})=>{e.value=Boolean(t)}},extraReducers:e=>{e.addCase(`${Z}/request`,(e=>{e.status=T})),e.addCase(`${Z}/success`,((e,{payload:t})=>{e.status="success",e.value=Boolean(t&&t.value)})),e.addCase(`${Z}/error`,((e,{payload:t})=>{e.status="error",e.value=Boolean(t&&t.value),e.error={code:(0,m.get)(t,"error.code",500),message:(0,m.get)(t,"error.message","Unknown")}}))}});var H;G.getInitialState,G.actions,G.reducer;const Y=(0,d.createSlice)({name:"documentTitle",initialState:(0,m.defaultTo)(null===(H=document)||void 0===H?void 0:H.title,""),reducers:{setDocumentTitle:(e,{payload:t})=>t}});Y.getInitialState,Y.actions,Y.reducer;const D=(e,t)=>{try{return(0,n.createInterpolateElement)(e,t)}catch(t){return console.error("Error in translation for:",e,t),e}},V=window.yoast.propTypes;var W=s.n(V);W().string.isRequired;const J=e.forwardRef((function(t,s){return e.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},t),e.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"}))})),K=e.forwardRef((function(t,s){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:s},t),e.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"}))})),Q=({learnMoreLink:t,thumbnail:s,wistiaEmbedPermission:r,upsellLink:a,upsellLabel:n,newToText:i,ctbId:c})=>{const{onClose:m,initialFocus:d}=(0,o.useModalContext)(),y={a:(0,e.createElement)(fe,{href:t,className:"yst-inline-flex yst-items-center yst-gap-1 yst-no-underline yst-font-medium",variant:"primary"}),ArrowNarrowRightIcon:(0,e.createElement)(K,{className:"yst-w-4 yst-h-4 rtl:yst-rotate-180"}),br:(0,e.createElement)("br",null)};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"yst-px-10 yst-pt-10 yst-introduction-gradient yst-text-center"},(0,e.createElement)("div",{className:"yst-relative yst-w-full"},(0,e.createElement)(We,{videoId:"vun9z1dpfh",thumbnail:s,wistiaEmbedPermission:r}),(0,e.createElement)(o.Badge,{className:"yst-absolute yst-end-4 yst-text-center yst-justify-center",variant:"info",style:{top:"-8px"}},(0,l.__)("Beta","wordpress-seo"))),(0,e.createElement)("div",{className:"yst-mt-6 yst-text-xs yst-font-medium yst-flex yst-flex-col yst-items-center"},(0,e.createElement)("span",{className:"yst-introduction-modal-uppercase yst-flex yst-gap-2 yst-items-center"},(0,e.createElement)("span",{className:"yst-logo-icon"}),i))),(0,e.createElement)("div",{className:"yst-px-10 yst-pb-4 yst-flex yst-flex-col yst-items-center"},(0,e.createElement)("div",{className:"yst-mt-4 yst-mx-1.5 yst-text-center"},(0,e.createElement)("h3",{className:"yst-text-slate-900 yst-text-lg yst-font-medium"},(0,l.sprintf)(/* translators: %s: Expands to "Yoast AI" */ (0,l.__)("Optimize your SEO content with %s","wordpress-seo"),"Yoast AI")),(0,e.createElement)("div",{className:"yst-mt-2 yst-text-slate-600 yst-text-sm"},D((0,l.sprintf)(/* translators: %1$s is a break tag; %2$s and %3$s are anchor tags; %4$s is the arrow icon. */ (0,l.__)("Make content editing a breeze! Optimize your SEO content with quick, actionable suggestions at the click of a button.%1$s%2$sLearn more%3$s%4$s","wordpress-seo"),"<br/>","<a>","<ArrowNarrowRightIcon />","</a>"),y))),(0,e.createElement)("div",{className:"yst-w-full yst-flex yst-mt-6"},(0,e.createElement)(o.Button,{as:"a",className:"yst-grow",size:"extra-large",variant:"upsell",href:a,target:"_blank",ref:d,"data-action":"load-nfd-ctb","data-ctb-id":c},(0,e.createElement)(J,{className:"yst--ms-1 yst-me-2 yst-h-5 yst-w-5"}),n,(0,e.createElement)("span",{className:"yst-sr-only"},/* translators: Hidden accessibility text. */ (0,l.__)("(Opens in a new browser tab)","wordpress-seo")))),(0,e.createElement)(o.Button,{as:"a",className:"yst-mt-4",variant:"tertiary",onClick:m},(0,l.__)("Close","wordpress-seo"))))};Q.propTypes={learnMoreLink:W().string.isRequired,upsellLink:W().string.isRequired,thumbnail:W().shape({src:W().string.isRequired,width:W().string,height:W().string}).isRequired,wistiaEmbedPermission:W().shape({value:W().bool.isRequired,status:W().string.isRequired,set:W().func.isRequired}).isRequired,upsellLabel:W().string,newToText:W().string,ctbId:W().string},Q.defaultProps={upsellLabel:(0,l.sprintf)(/* translators: %1$s expands to Yoast SEO Premium. */ (0,l.__)("Unlock with %1$s","wordpress-seo"),"Yoast SEO Premium"),newToText:"Yoast SEO Premium",ctbId:"f6a84663-465f-4cb5-8ba5-f7a6d72224b2"};const X=({handleRefreshClick:t,supportLink:s})=>(0,e.createElement)("div",{className:"yst-flex yst-gap-2"},(0,e.createElement)(o.Button,{onClick:t},(0,l.__)("Refresh this page","wordpress-seo")),(0,e.createElement)(o.Button,{variant:"secondary",as:"a",href:s,target:"_blank",rel:"noopener"},(0,l.__)("Contact support","wordpress-seo")));X.propTypes={handleRefreshClick:W().func.isRequired,supportLink:W().string.isRequired};const ee=({handleRefreshClick:t,supportLink:s})=>(0,e.createElement)("div",{className:"yst-grid yst-grid-cols-1 yst-gap-y-2"},(0,e.createElement)(o.Button,{className:"yst-order-last",onClick:t},(0,l.__)("Refresh this page","wordpress-seo")),(0,e.createElement)(o.Button,{variant:"secondary",as:"a",href:s,target:"_blank",rel:"noopener"},(0,l.__)("Contact support","wordpress-seo")));ee.propTypes={handleRefreshClick:W().func.isRequired,supportLink:W().string.isRequired};const te=({error:t,children:s})=>(0,e.createElement)("div",{role:"alert",className:"yst-max-w-screen-sm yst-p-8 yst-space-y-4"},(0,e.createElement)(o.Title,null,(0,l.__)("Something went wrong. An unexpected error occurred.","wordpress-seo")),(0,e.createElement)("p",null,(0,l.__)("We're very sorry, but it seems like the following error has interrupted our application:","wordpress-seo")),(0,e.createElement)(o.Alert,{variant:"error"},(null==t?void 0:t.message)||(0,l.__)("Undefined error message.","wordpress-seo")),(0,e.createElement)("p",null,(0,l.__)("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);te.propTypes={error:W().object.isRequired,children:W().node},te.VerticalButtons=ee,te.HorizontalButtons=X;var se;function re(){return re=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},re.apply(this,arguments)}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"}}));const ae=t=>e.createElement("svg",re({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 1000 1000"},t),se||(se=e.createElement("path",{fill:"#fff",d:"M500 0C223.9 0 0 223.9 0 500s223.9 500 500 500 500-223.9 500-500S776.1 0 500 0Zm87.2 412.4c0-21.9 4.3-40.2 13.1-54.4s24-27.1 45.9-38.2l10.1-4.9c17.8-9 22.4-16.7 22.4-26 0-11.1-9.5-19.1-25-19.1-18.3 0-32.2 9.5-41.8 28.9l-24.7-24.8c5.4-11.6 14.1-20.9 25.8-28.1a70.8 70.8 0 0 1 38.9-11.1c17.8 0 33.3 4.6 45.9 14.2s19.4 22.7 19.4 39.4c0 26.6-15 42.9-43.1 57.3l-15.7 8c-16.8 8.5-25.1 16-27.4 29.4h85.4v35.4H587.2Zm-82.1 373.3c-157.8 0-285.7-127.9-285.7-285.7s127.9-285.7 285.7-285.7a286.4 286.4 0 0 1 55.9 5.5l-55.9 116.9c-90 0-163.3 73.3-163.3 163.3s73.3 163.3 163.3 163.3a162.8 162.8 0 0 0 106.4-39.6l61.8 107.2a283.9 283.9 0 0 1-168.2 54.8ZM705 704.1l-70.7-122.5H492.9l70.7-122.4H705l70.7 122.4Z"}))),ne=window.ReactDOM;var le,oe,ie;(oe=le||(le={})).Pop="POP",oe.Push="PUSH",oe.Replace="REPLACE",function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(ie||(ie={})),new Set(["lazy","caseSensitive","path","id","index","children"]),Error;const ce=["post","put","patch","delete"],me=(new Set(ce),["get",...ce]);new Set(me),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred"),e.Component,e.startTransition,new Promise((()=>{})),e.Component,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(e){}var de,ye,pe,ue;new Map,e.startTransition,ne.flushSync,e.useId,"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,(ue=de||(de={})).UseScrollRestoration="useScrollRestoration",ue.UseSubmit="useSubmit",ue.UseSubmitFetcher="useSubmitFetcher",ue.UseFetcher="useFetcher",ue.useViewTransitionState="useViewTransitionState",(pe=ye||(ye={})).UseFetcher="useFetcher",pe.UseFetchers="useFetchers",pe.UseScrollRestoration="useScrollRestoration",W().string.isRequired,W().string;const fe=({href:t,children:s,...r})=>(0,e.createElement)(o.Link,{target:"_blank",rel:"noopener noreferrer",...r,href:t},s,(0,e.createElement)("span",{className:"yst-sr-only"},/* translators: Hidden accessibility text. */ (0,l.__)("(Opens in a new browser tab)","wordpress-seo")));fe.propTypes={href:W().string.isRequired,children:W().node},fe.defaultProps={children:null};const we=e.forwardRef((function(t,s){return e.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},t),e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))})),ge=[(0,l.__)("AI tools included","wordpress-seo"),(0,l.sprintf)(/* translators: %1$s expands to "Yoast SEO academy". */ (0,l.__)("%1$s access","wordpress-seo"),"Yoast SEO academy"),(0,l.__)("24/7 support","wordpress-seo")],he=[(0,l.__)("Generate SEO optimized metadata in seconds with AI","wordpress-seo"),(0,l.__)("Make your articles visible, be seen in Google News","wordpress-seo"),(0,l.__)("Built to get found by search, AI, and real users","wordpress-seo"),(0,l.__)("Easy Local SEO. Show up in Google Maps results","wordpress-seo"),(0,l.__)("Internal links and redirect management, easy","wordpress-seo"),(0,l.__)("Access to friendly help when you need it, day or night","wordpress-seo")],Ee=(e=!1)=>e?ge:he,ve=(e=!1)=>{if(e)return ge;const t=[...he];return t[1]=(0,l.__)("Boost visibility for your products, from 10 or 10,000+","wordpress-seo"),t};var be,xe,_e;function ke(){return ke=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},ke.apply(this,arguments)}const Ne=t=>e.createElement("svg",ke({xmlns:"http://www.w3.org/2000/svg",id:"star-rating-half_svg__Layer_1","data-name":"Layer 1",viewBox:"0 0 500 475.53"},t),be||(be=e.createElement("defs",null,e.createElement("style",null,".star-rating-half_svg__cls-1{fill:#fbbf24}"))),xe||(xe=e.createElement("path",{d:"M250 392.04 98.15 471.87l29-169.09L4.3 183.03l169.77-24.67L250 4.52l75.93 153.84 169.77 24.67-122.85 119.75 29 169.09L250 392.04z",className:"star-rating-half_svg__cls-1"})),_e||(_e=e.createElement("path",{d:"m250 9.04 73.67 149.27.93 1.88 2.08.3 164.72 23.94-119.19 116.19-1.51 1.47.36 2.07 28.14 164.06-147.34-77.46-1.86-1-1.86 1-147.34 77.46 28.14-164.06.36-2.07-1.51-1.47L8.6 184.43l164.72-23.9 2.08-.3.93-1.88L250 9.04m0-9-77.25 156.49L0 181.64l125 121.89-29.51 172L250 394.3l154.51 81.23-29.51-172 125-121.89-172.75-25.11L250 0Z",className:"star-rating-half_svg__cls-1"})),e.createElement("path",{d:"m500 181.64-172.75-25.11L250 0v394.3l154.51 81.23L375 303.48l125-121.84z",style:{fill:"#f3f4f6"}}));function Ce(){return Ce=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},Ce.apply(this,arguments)}const Se=t=>e.createElement("svg",Ce({xmlns:"http://www.w3.org/2000/svg","data-name":"Layer 1",viewBox:"0 0 500 475.53"},t),e.createElement("path",{d:"m250 0 77.25 156.53L500 181.64 375 303.48l29.51 172.05L250 394.3 95.49 475.53 125 303.48 0 181.64l172.75-25.11L250 0z",style:{fill:"#fbbf24"}}));var Le,Re,Oe;function Ae(){return Ae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},Ae.apply(this,arguments)}const Pe=t=>e.createElement("svg",Ae({xmlns:"http://www.w3.org/2000/svg",width:64,height:64,fill:"none"},t),Le||(Le=e.createElement("g",{clipPath:"url(#yoast-premium-logo-new_svg__a)"},e.createElement("path",{fill:"url(#yoast-premium-logo-new_svg__b)",d:"M64 64H10.24C4.586 64 0 59.414 0 53.76V10.24C0 4.586 4.586 0 10.24 0h43.52C59.414 0 64 4.586 64 10.24V64Z"}),e.createElement("path",{fill:"#6C2548",d:"m56.016.125-36.06 63.75H64v-53.76c0-4.88-3.414-8.96-7.984-9.987",opacity:.35}),e.createElement("path",{fill:"#fff",d:"M9.523 43.174v4.468c2.765-.116 4.928-1.024 6.759-2.88 1.83-1.856 3.507-4.864 5.107-9.332L33.242 3.686h-5.735L17.96 30.208l-4.736-14.874H7.975l6.963 17.895a7.352 7.352 0 0 1 0 5.35c-.704 1.818-1.971 3.955-5.415 4.595Z"}),e.createElement("path",{fill:"#9FDA4F",d:"M53.274 5.11c-5.99-3.382-13.59-1.27-16.976 4.72-3.386 5.99-1.27 13.59 4.72 16.976 5.99 3.386 13.59 1.27 16.976-4.72 3.382-5.99 1.27-13.59-4.72-16.976Z"}),e.createElement("path",{fill:"#77B227",d:"M53.274 5.11 41.018 26.806c5.99 3.386 13.59 1.27 16.976-4.72 3.382-5.99 1.27-13.59-4.72-16.976Z"}),e.createElement("path",{fill:"#FEC228",d:"M37.731 32.608s-.012-.006-.019-.013c-.006 0-.01-.006-.016-.01a8.134 8.134 0 0 0-11.091 3.085 8.145 8.145 0 0 0 3.104 11.108 8.139 8.139 0 0 0 11.075-3.095 8.14 8.14 0 0 0-3.05-11.072"}),e.createElement("path",{fill:"#F49A00",d:"m37.696 32.586-8.01 14.179a8.145 8.145 0 0 0 11.095-3.085 8.144 8.144 0 0 0-3.085-11.094Z"}),e.createElement("path",{fill:"#FF4E47",d:"M28.454 57.61a4.89 4.89 0 0 0-2.477-4.256 4.863 4.863 0 0 0-2.4-.634c-2.69 0-4.892 2.18-4.892 4.883a4.882 4.882 0 0 0 4.883 4.893 4.882 4.882 0 0 0 4.893-4.883"}),e.createElement("path",{fill:"#ED261F",d:"m25.971 53.35-4.806 8.51a4.882 4.882 0 0 0 6.656-1.854 4.882 4.882 0 0 0-1.853-6.656"}),e.createElement("path",{fill:"#CD82AB",d:"M57.402 58.086H43.888v1.197h13.514v-1.197ZM53.75 53.366l-3.103-5.76v.004l-.004-.004-3.104 5.76-4.777-3.42 1.126 7.702h13.514l1.126-7.702-4.777 3.42Z"}))),Re||(Re=e.createElement("path",{stroke:"#fff",d:"M10 .5h44a9.5 9.5 0 0 1 9.5 9.5v53.5H10A9.5 9.5 0 0 1 .5 54V10A9.5 9.5 0 0 1 10 .5Z"})),Oe||(Oe=e.createElement("defs",null,e.createElement("linearGradient",{id:"yoast-premium-logo-new_svg__b",x1:-2.912,x2:68.509,y1:25.843,y2:38.438,gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#5D237A"}),e.createElement("stop",{offset:.08,stopColor:"#702175"}),e.createElement("stop",{offset:.22,stopColor:"#872070"}),e.createElement("stop",{offset:.36,stopColor:"#981E6C"}),e.createElement("stop",{offset:.51,stopColor:"#A21E69"}),e.createElement("stop",{offset:.7,stopColor:"#A61E69"})),e.createElement("clipPath",{id:"yoast-premium-logo-new_svg__a"},e.createElement("path",{fill:"#fff",d:"M0 10C0 4.477 4.477 0 10 0h44c5.523 0 10 4.477 10 10v54H10C4.477 64 0 59.523 0 54V10Z"})))));var Me,qe,je;function Be(){return Be=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},Be.apply(this,arguments)}const Fe=t=>e.createElement("svg",Be({xmlns:"http://www.w3.org/2000/svg",width:64,height:64,fill:"none"},t),Me||(Me=e.createElement("g",{clipPath:"url(#woo-seo-logo-new_svg__a)"},e.createElement("path",{fill:"#0E1E65",d:"M64 64H10.24C4.586 64 0 59.414 0 53.76V10.24C0 4.586 4.586 0 10.24 0h43.52C59.414 0 64 4.586 64 10.24V64Z"}),e.createElement("path",{fill:"#0075B3",d:"M56.016.253 19.956 64H64V10.24c0-4.88-3.414-8.96-7.984-9.987Z"}),e.createElement("path",{fill:"#fff",d:"M9.523 43.174v4.468c2.765-.116 4.928-1.024 6.759-2.88 1.83-1.856 3.507-4.864 5.107-9.332L33.242 3.686h-5.735L17.96 30.208l-4.736-14.874H7.975l6.963 17.895a7.352 7.352 0 0 1 0 5.35c-.704 1.818-1.971 3.955-5.415 4.595Z"}),e.createElement("path",{fill:"#9FDA4F",d:"M53.274 5.11c-5.99-3.382-13.59-1.27-16.976 4.72-3.386 5.99-1.27 13.59 4.72 16.976 5.99 3.386 13.59 1.27 16.976-4.72 3.382-5.99 1.27-13.59-4.72-16.976Z"}),e.createElement("path",{fill:"#FEC228",d:"M37.731 32.608s-.012-.006-.019-.013c-.006 0-.01-.006-.016-.01a8.134 8.134 0 0 0-11.091 3.085 8.145 8.145 0 0 0 3.104 11.108 8.139 8.139 0 0 0 11.075-3.095 8.14 8.14 0 0 0-3.05-11.072"}),e.createElement("path",{fill:"#FF4E47",d:"M28.454 57.61a4.89 4.89 0 0 0-2.477-4.256 4.863 4.863 0 0 0-2.4-.634c-2.69 0-4.892 2.18-4.892 4.883a4.882 4.882 0 0 0 4.883 4.893 4.882 4.882 0 0 0 4.893-4.883"}),e.createElement("path",{fill:"#77B227",d:"M53.274 5.11 41.018 26.806c5.99 3.386 13.59 1.27 16.976-4.72 3.382-5.99 1.27-13.59-4.72-16.976Z"}),e.createElement("path",{fill:"#F49A00",d:"m37.696 32.586-8.01 14.179a8.145 8.145 0 0 0 11.095-3.085 8.144 8.144 0 0 0-3.085-11.094Z"}),e.createElement("path",{fill:"#ED261F",d:"m25.971 53.35-4.806 8.51a4.882 4.882 0 0 0 6.656-1.854 4.882 4.882 0 0 0-1.853-6.656"}),e.createElement("path",{fill:"#A1CCE3",d:"M58.102 46.806a1.26 1.26 0 0 0-1.219.938l-.157.582a40.97 40.97 0 0 0-10.857 1.261c-.013 0-.023.007-.035.01a.503.503 0 0 0-.317.64 40.344 40.344 0 0 0 1.99 4.86c.083.173.26.282.455.282h7.542c.64 0 1.213.403 1.427 1.008h-10a.507.507 0 0 0 0 1.011h10.592a.507.507 0 0 0 .506-.505c0-1.149-.775-2.15-1.888-2.442L57.862 48a.25.25 0 0 1 .243-.186h.932a.507.507 0 0 0 0-1.01h-.931l-.004.002ZM57.018 59.92a1.008 1.008 0 1 1 0-2.016 1.008 1.008 0 0 1 0 2.016Zm-8.573 0a1.008 1.008 0 1 1 0-2.016 1.008 1.008 0 0 1 0 2.016Z"}))),qe||(qe=e.createElement("path",{stroke:"#fff",d:"M10 .5h44a9.5 9.5 0 0 1 9.5 9.5v53.5H10A9.5 9.5 0 0 1 .5 54V10A9.5 9.5 0 0 1 10 .5Z"})),je||(je=e.createElement("defs",null,e.createElement("clipPath",{id:"woo-seo-logo-new_svg__a"},e.createElement("path",{fill:"#fff",d:"M0 10C0 4.477 4.477 0 10 0h44c5.523 0 10 4.477 10 10v54H10C4.477 64 0 59.523 0 54V10Z"}))))),Ie=e.forwardRef((function(t,s){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:s},t),e.createElement("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"}))})),Te=({link:t,linkProps:s,isPromotionActive:r,isWooCommerceActive:a})=>{const i=a?ve:Ee;let m=(0,n.useMemo)((()=>(0,l.__)("Now with Local, News & Video SEO + 1 Google Docs seat!","wordpress-seo")),[]),d=D(a?(0,l.sprintf)(/* translators: %1$s and %2$s expand to a span wrap to avoid linebreaks. %3$s expands to "Yoast SEO Premium". */ (0,l.__)("%1$s%2$s %3$s","wordpress-seo"),"<nowrap>","</nowrap>","Yoast WooCommerce SEO"):(0,l.sprintf)(/* translators: %1$s and %2$s expand to a span wrap to avoid linebreaks. %3$s expands to "Yoast SEO Premium". */ (0,l.__)("%1$s%2$s %3$s","wordpress-seo"),"<nowrap>","</nowrap>","Yoast SEO Premium"),{nowrap:(0,e.createElement)("span",{className:"yst-whitespace-nowrap"})});const y=r("black-friday-2024-promotion");return y&&(m=(0,n.useMemo)((()=>(0,l.__)("If you were thinking about upgrading, now's the time! 30% OFF ends 3rd Dec 11am (CET)","wordpress-seo")),[]),d=D((0,l.sprintf)(/* translators: %1$s and %2$s expand to a span wrap to avoid linebreaks. %3$s expands to "Yoast SEO Premium". */ (0,l.__)("%1$sBuy%2$s %3$s","wordpress-seo"),"<nowrap>","</nowrap>","Yoast SEO Premium"),{nowrap:(0,e.createElement)("span",{className:"yst-whitespace-nowrap"})})),(0,e.createElement)("div",{className:c()("yst-p-6 yst-rounded-lg yst-text-white yst-shadow",a?"yst-bg-[#0e1e65]":"yst-bg-primary-500")},(0,e.createElement)("figure",{className:"yst-logo-square yst-w-16 yst-h-16 yst-mx-auto yst-overflow-hidden yst-relative yst-z-10 yst-mt-[-2.6rem]"},a?(0,e.createElement)(Fe,null):(0,e.createElement)(Pe,null)),y&&(0,e.createElement)("div",{className:"sidebar__sale_banner_container"},(0,e.createElement)("div",{className:"sidebar__sale_banner"},(0,e.createElement)("span",{className:"banner_text"},(0,l.__)("30% OFF - BLACK FRIDAY","wordpress-seo")))),(0,e.createElement)(o.Title,{as:"h2",className:"yst-mt-6 yst-text-base yst-font-extrabold yst-text-white"},d),(0,e.createElement)("p",{className:"yst-mt-2 yst-font-medium"},m),(0,e.createElement)("ul",{className:"yst-ps-[1em] yst-list-outside yst-text-white yst-mt-2"},i(!0).map(((t,s)=>(0,e.createElement)("li",{key:`upsell-benefit-${s}`,className:"yst-flex yst-items-center yst-gap-2"},(0,e.createElement)(Ie,{className:"yst-w-4 yst-h-4 yst-text-green-400"}),(0,e.createElement)("span",null,t))))),(0,e.createElement)(o.Button,{as:"a",variant:"upsell",href:t,target:"_blank",rel:"noopener",className:"yst-flex yst-justify-center yst-gap-2 yst-mt-4 focus:yst-ring-offset-primary-500",...s},(0,e.createElement)("span",null,(0,l.__)("Buy now","wordpress-seo")),(0,e.createElement)(we,{className:"yst-w-4 yst-h-4 yst-icon-rtl"})),(0,e.createElement)("p",{className:"yst-text-center yst-text-xs yst-mx-2 yst-font-light yst-leading-5 yst-mt-2"},(0,l.__)("30-day money back guarantee","wordpress-seo")),(0,e.createElement)("hr",{className:"yst-border-t yst-border-primary-300 yst-my-4"}),(0,e.createElement)("a",{className:"yst-block yst-mt-4 yst-no-underline",href:"https://www.g2.com/products/yoast-yoast/reviews",target:"_blank",rel:"noopener noreferrer"},(0,e.createElement)("span",{className:"yst-flex yst-gap-2 yst-mt-2 yst-items-center"},(0,e.createElement)(ae,{className:"yst-w-5 yst-h-5"}),(0,e.createElement)("span",{className:"yst-flex yst-gap-1"},(0,e.createElement)(Se,{className:"yst-w-5 yst-h-5"}),(0,e.createElement)(Se,{className:"yst-w-5 yst-h-5"}),(0,e.createElement)(Se,{className:"yst-w-5 yst-h-5"}),(0,e.createElement)(Se,{className:"yst-w-5 yst-h-5"}),(0,e.createElement)(Ne,{className:"yst-w-5 yst-h-5"})),(0,e.createElement)("span",{className:"yst-text-sm yst-font-semibold yst-text-white"},"4.6 / 5"))))};var $e;function Ue(){return Ue=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},Ue.apply(this,arguments)}Te.propTypes={link:W().string.isRequired,linkProps:W().object,isPromotionActive:W().func},Te.defaultProps={linkProps:{},isPromotionActive:m.noop};const ze=t=>e.createElement("svg",Ue({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 12"},t),$e||($e=e.createElement("path",{fill:"#CD82AB",d:"M10.989 6.74 7.885.98v.002L7.882.98 4.778 6.74 0 3.32l1.126 7.702H14.64l1.126-7.703L10.99 6.74Z"})));var Ze;function Ge(){return Ge=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},Ge.apply(this,arguments)}const He=t=>e.createElement("svg",Ge({xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none"},t),Ze||(Ze=e.createElement("path",{fill:"#0075B3",d:"M12.613.445a1.26 1.26 0 0 0-1.22.937l-.156.583A40.97 40.97 0 0 0 .379 3.225c-.013 0-.022.007-.035.01a.503.503 0 0 0-.317.64 40.344 40.344 0 0 0 1.99 4.861c.084.173.26.282.455.282h7.542c.64 0 1.213.403 1.427 1.008h-10a.507.507 0 0 0 0 1.01h10.592a.507.507 0 0 0 .506-.505c0-1.149-.774-2.15-1.888-2.441l1.722-6.452a.25.25 0 0 1 .243-.185h.931a.507.507 0 0 0 0-1.011h-.931l-.003.003Zm-1.085 13.114a1.008 1.008 0 1 1 0-2.016 1.008 1.008 0 0 1 0 2.016Zm-8.573 0a1.008 1.008 0 1 1 0-2.016 1.008 1.008 0 0 1 0 2.016Z"}))),Ye=({premiumLink:t,premiumUpsellConfig:s,isPromotionActive:r,isWooCommerceActive:a})=>{const n=r("black-friday-2024-promotion"),i=a?ve:Ee;return(0,e.createElement)(o.Paper,{as:"div",className:"xl:yst-max-w-3xl"},n&&(0,e.createElement)("div",{className:"yst-rounded-t-lg yst-h-9 yst-flex yst-justify-between yst-items-center yst-bg-black yst-text-amber-300 yst-px-4 yst-text-lg yst-border-b yst-border-amber-300 yst-border-solid yst-font-semibold"},(0,e.createElement)("div",null,(0,l.__)("30% OFF","wordpress-seo")),(0,e.createElement)("div",null,(0,l.__)("BLACK FRIDAY","wordpress-seo"))),(0,e.createElement)("div",{className:"yst-p-6 yst-flex yst-flex-col"},(0,e.createElement)("div",{className:"yst-flex yst-items-center"},a?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o.Title,{as:"h2",size:"4",className:"yst-text-xl yst-text-primary-500"},(0,l.sprintf)(/* translators: %s expands to "Yoast SEO" Premium */ (0,l.__)("Upgrade to %s","wordpress-seo"),"Yoast WooCommerce SEO")),(0,e.createElement)(He,{className:"yst-ml-2 yst-w-4 yst-h-3"})):(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o.Title,{as:"h2",size:"4",className:"yst-text-xl yst-text-primary-500"},(0,l.sprintf)(/* translators: %s expands to "Yoast SEO" Premium */ (0,l.__)("Upgrade to %s","wordpress-seo"),"Yoast SEO Premium")),(0,e.createElement)(ze,{className:"yst-ml-2 yst-w-4 yst-h-3"}))),(0,e.createElement)("span",{className:"yst-font-medium yst-text-slate-500 yst-text-xs yst-leading-5 yst-uppercase yst-mt-2"},(0,l.__)("Now includes Local, News & Video SEO + 1 Google Docs seat!","wordpress-seo")),(0,e.createElement)("ul",{className:"yst-grid yst-grid-cols-1 sm:yst-grid-cols-2 yst-gap-x-6 yst-list-none yst-list-outside yst-text-slate-600 yst-mt-6"},i().map(((t,s)=>(0,e.createElement)("li",{key:`upsell-benefit-${s}`},(0,e.createElement)("span",{className:"yst-mx-2"},"•"),t)))),(0,e.createElement)(o.Button,{as:"a",variant:"upsell",size:"extra-large",href:t,className:"yst-gap-2 yst-mt-4",target:"_blank",rel:"noopener",...s},a?(0,l.sprintf)(/* translators: %s expands to "Yoast WooCommerce SEO" */ (0,l.__)("Explore %s now!","wordpress-seo"),"Yoast WooCommerce SEO"):(0,l.sprintf)(/* translators: %s expands to "Yoast SEO" Premium */ (0,l.__)("Explore %s now!","wordpress-seo"),"Yoast SEO Premium"),(0,e.createElement)(we,{className:"yst-w-4 yst-h-4 yst-icon-rtl"}))))};Ye.propTypes={premiumLink:W().string.isRequired,premiumUpsellConfig:W().object,isPromotionActive:W().func,isWooCommerceActive:W().bool.isRequired},Ye.defaultProps={premiumUpsellConfig:{},isPromotionActive:m.noop},W().string.isRequired,W().object.isRequired,W().string.isRequired,W().func.isRequired,W().bool.isRequired;const De=e.forwardRef((function(t,s){return e.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},t),e.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"}))}));W().bool.isRequired,W().func,W().func,W().string.isRequired,W().string.isRequired,W().string.isRequired,W().string.isRequired;const Ve=window.yoast.reactHelmet,We=({videoId:t,thumbnail:s,wistiaEmbedPermission:r})=>{const[a,i]=(0,n.useState)(r.value?z:$),c=(0,n.useCallback)((()=>i(z)),[i]),m=(0,n.useCallback)((()=>{r.value?c():i(U)}),[r.value,c,i]),d=(0,n.useCallback)((()=>i($)),[i]),y=(0,n.useCallback)((()=>{r.set(!0),c()}),[r.set,c]);return(0,e.createElement)(e.Fragment,null,r.value&&(0,e.createElement)(Ve.Helmet,null,(0,e.createElement)("script",{src:"https://fast.wistia.com/assets/external/E-v1.js",async:!0})),(0,e.createElement)("div",{className:"yst-relative yst-w-full yst-h-0 yst-pt-[56.25%] yst-overflow-hidden yst-rounded-md yst-drop-shadow-md yst-bg-white"},a===$&&(0,e.createElement)("button",{type:"button",className:"yst-absolute yst-inset-0 yst-button yst-p-0 yst-border-none yst-bg-white yst-transition-opacity yst-duration-1000 yst-opacity-100",onClick:m},(0,e.createElement)("img",{className:"yst-w-full yst-h-auto",alt:"",loading:"lazy",decoding:"async",...s})),a===U&&(0,e.createElement)("div",{className:"yst-absolute yst-inset-0 yst-flex yst-flex-col yst-items-center yst-justify-center yst-bg-white"},(0,e.createElement)("p",{className:"yst-max-w-xs yst-mx-auto yst-text-center"},r.status===T&&(0,e.createElement)(o.Spinner,null),r.status!==T&&(0,l.sprintf)(/* translators: %1$s expands to Yoast SEO. %2$s expands to Wistia. */ (0,l.__)("To see this video, you need to allow %1$s to load embedded videos from %2$s.","wordpress-seo"),"Yoast SEO","Wistia")),(0,e.createElement)("div",{className:"yst-flex yst-mt-6 yst-gap-x-4"},(0,e.createElement)(o.Button,{type:"button",variant:"secondary",onClick:d,disabled:r.status===T},(0,l.__)("Deny","wordpress-seo")),(0,e.createElement)(o.Button,{type:"button",variant:"primary",onClick:y,disabled:r.status===T},(0,l.__)("Allow","wordpress-seo")))),r.value&&a===z&&(0,e.createElement)("div",{className:"yst-absolute yst-w-full yst-h-full yst-top-0 yst-right-0"},null===t&&(0,e.createElement)(o.Spinner,{className:"yst-h-full yst-mx-auto"}),null!==t&&(0,e.createElement)("div",{className:`wistia_embed wistia_async_${t} videoFoam=true`}))))};We.propTypes={videoId:W().string.isRequired,thumbnail:W().shape({src:W().string.isRequired,width:W().string,height:W().string}).isRequired,wistiaEmbedPermission:W().shape({value:W().bool.isRequired,status:W().string.isRequired,set:W().func.isRequired}).isRequired},e.forwardRef((function(t,s){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:s},t),e.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"}))})),W().bool.isRequired,W().func.isRequired,W().func,W().string;const Je=({onGiveConsent:t,learnMoreLink:s,privacyPolicyLink:r,termsOfServiceLink:a,imageLink:i})=>{const{onClose:c,initialFocus:m}=(0,o.useModalContext)(),[d,y]=(0,o.useToggleState)(!1),p=(0,n.useMemo)((()=>({src:i,width:"432",height:"244"})),[i]),u=D((0,l.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. */ (0,l.__)("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,e.createElement)(fe,{href:a}),a2:(0,e.createElement)(fe,{href:r})}),[f,w]=(0,o.useToggleState)(!1),g=(0,n.useCallback)((async()=>{w(),await t(),w()}),[t]);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"yst-px-10 yst-pt-10 yst-introduction-gradient yst-text-center"},(0,e.createElement)("div",{className:"yst-relative yst-w-full"},(0,e.createElement)("img",{className:"yst-w-full yst-h-auto yst-rounded-md yst-drop-shadow-md",alt:"",loading:"lazy",decoding:"async",...p}))),(0,e.createElement)("div",{className:"yst-px-10 yst-pb-4 yst-flex yst-flex-col yst-items-center"},(0,e.createElement)("div",{className:"yst-mt-4 yst-mx-1.5 yst-text-center"},(0,e.createElement)("h3",{className:"yst-text-slate-900 yst-text-lg yst-font-medium"},(0,l.sprintf)(/* translators: %s expands to Yoast AI. */ (0,l.__)("Grant consent for %s","wordpress-seo"),"Yoast AI")),(0,e.createElement)("div",{className:"yst-mt-2 yst-text-slate-600 yst-text-sm"},D((0,l.sprintf)(/* translators: %1$s is a break tag; %2$s and %3$s are anchor tag; %4$s is the arrow icon. */ (0,l.__)("Enable AI-powered SEO! Use all AI Generate and Optimize 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,e.createElement)(fe,{href:s,className:"yst-inline-flex yst-items-center yst-gap-1 yst-no-underline yst-font-medium",variant:"primary"}),ArrowNarrowRightIcon:(0,e.createElement)(K,{className:"yst-w-4 yst-h-4 rtl:yst-rotate-180"}),br:(0,e.createElement)("br",null)}))),(0,e.createElement)("div",{className:"yst-flex yst-w-full yst-mt-6"},(0,e.createElement)("hr",{className:"yst-w-full yst-text-gray-200"})),(0,e.createElement)("div",{className:"yst-flex yst-items-start yst-mt-4"},(0,e.createElement)("input",{type:"checkbox",id:"yst-ai-consent-checkbox",name:"yst-ai-consent-checkbox",checked:d,value:d?"true":"false",onChange:y,className:"yst-checkbox__input",ref:m}),(0,e.createElement)("label",{htmlFor:"yst-ai-consent-checkbox",className:"yst-label yst-checkbox__label yst-text-xs yst-font-normal yst-text-slate-500"},u)),(0,e.createElement)("div",{className:"yst-w-full yst-flex yst-mt-4"},(0,e.createElement)(o.Button,{as:"button",className:"yst-grow",size:"large",disabled:!d,onClick:g},f&&(0,e.createElement)(o.Spinner,{className:"yst-me-2"}),(0,l.__)("Grant consent","wordpress-seo"))),(0,e.createElement)(o.Button,{as:"button",className:"yst-mt-4",variant:"tertiary",onClick:c},(0,l.__)("Close","wordpress-seo"))))};Je.propTypes={onGiveConsent:W().func.isRequired,learnMoreLink:W().string.isRequired,privacyPolicyLink:W().string.isRequired,termsOfServiceLink:W().string.isRequired,imageLink:W().string.isRequired};const Ke="yoast-seo/ai-consent",Qe=({onStartGenerating:s})=>{const{termsOfServiceLink:r,privacyPolicyLink:a,learnMoreLink:l,imageLink:o,endpoint:i}=(0,t.useSelect)((e=>{const t=e(Ke);return{termsOfServiceLink:t.selectLink("https://yoa.st/ai-fix-assessments-terms-of-service"),privacyPolicyLink:t.selectLink("https://yoa.st/ai-fix-assessments-privacy-policy"),learnMoreLink:t.selectLink("https://yoa.st/ai-fix-assessments-consent-learn-more"),imageLink:t.selectImageLink("ai-consent.png"),endpoint:t.selectAiGeneratorConsentEndpoint()}}),[]),{storeAiGeneratorConsent:c}=(0,t.useDispatch)(Ke),m=(0,n.useCallback)((()=>{c(!0,i),s()}),[c,s]);return(0,e.createElement)(Je,{imageLink:o,onGiveConsent:m,learnMoreLink:l,termsOfServiceLink:r,privacyPolicyLink:a})},Xe=({onClose:s})=>{const{storeAiGeneratorConsent:r}=(0,t.useDispatch)(Ke),a=(0,t.useSelect)((e=>e(Ke).selectAiGeneratorConsentEndpoint()),[]),[i,c]=(0,n.useState)(!1),[m,d]=(0,n.useState)(!1),y=(0,n.useCallback)((async()=>{if(d(!1),c(!0),!1===(await r(!1,a)).consent)return d(!0),void c(!1);s(),c(!1)}),[r,c,s,a]);return(0,e.createElement)("div",{className:"yst-flex yst-flex-row"},(0,e.createElement)("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"},(0,e.createElement)(De,{className:"yst-w-6 yst-h-6 yst-align-center yst-text-red-600"})),(0,e.createElement)("div",null,(0,e.createElement)(o.Modal.Title,{className:"yst-font-semibold",as:"h3",size:"4"},(0,l.__)("Revoke AI consent","wordpress-seo")),m&&(0,e.createElement)(o.Alert,{className:"yst-mt-2",variant:"error"},(0,l.__)("Something went wrong, please try again later.","wordpress-seo")),(0,e.createElement)("p",{className:"yst-mt-2 yst-text-slate-600"},(0,l.__)("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,e.createElement)("footer",{className:"yst-mt-6 sm:yst-flex sm:yst-flex-row-reverse"},(0,e.createElement)(o.Button,{variant:"error",isLoading:i,className:"yst-w-full sm:yst-w-auto yst-revoke-button",onClick:y},(0,l.__)("Yes, revoke consent","wordpress-seo")),(0,e.createElement)(o.Button,{variant:"secondary",className:"yst-w-full sm:yst-w-auto yst-me-3",onClick:s},(0,l.__)("Close","wordpress-seo")))))};a()((()=>{((e={})=>{(0,t.register)((e=>(0,t.createReduxStore)(Ke,{actions:{...x,...F,...O},selectors:{...b,...B,...R},initialState:(0,m.merge)({},{[g]:v(),[M]:j(),[C]:L()},e),reducer:(0,t.combineReducers)({[g]:k,[M]:I,[C]:A}),controls:{..._}}))(e))})({[g]:{hasConsent:"1"===(0,m.get)(window,"wpseoAiConsent.hasConsent",!1)},[M]:(0,m.get)(window,"wpseoAiConsent.pluginUrl",""),[C]:(0,m.get)(window,"wpseoAiConsent.linkParams",{})});const s=document.getElementById("ai-generator-consent");s&&(0,n.render)((0,e.createElement)((()=>{const s=(0,t.useSelect)((e=>e(Ke).selectHasAiGeneratorConsent()),[]),[r,,,a,i]=(0,o.useToggleState)(!1),m=(0,n.useRef)(null),d=(0,n.useCallback)((e=>{e.preventDefault(),a()}),[a]);return(0,e.createElement)(n.Fragment,null,(0,e.createElement)(o.Modal,{className:"yst-introduction-modal",isOpen:r,onClose:i,initialFocus:m},(0,e.createElement)(o.Modal.Panel,{className:c()(!s&&"yst-p-0 yst-max-w-lg yst-rounded-3xl",s&&"yst-max-w-xl yst-rounded-lg")},!s&&(0,e.createElement)(Qe,{onStartGenerating:i,focusElementRef:m}),s&&(0,e.createElement)(Xe,{onClose:i}))),(0,e.createElement)("button",{className:"button",id:"ai-generator-consent-button",onClick:d},s?(0,l.__)("Revoke consent","wordpress-seo"):(0,l.__)("Grant consent","wordpress-seo")))}),null),s)}))})()})();