????JFIF??x?x????'403WebShell
403Webshell
Server IP : 104.21.64.1  /  Your IP : 216.73.216.18
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 :  /proc/././thread-self/cwd/wp-content/plugins/wordpress-seo/js/dist/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/././thread-self/cwd/wp-content/plugins/wordpress-seo/js/dist/ai-generator.js
(()=>{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 o=typeof s;if("string"===o||"number"===o)e.push(s);else if(Array.isArray(s)){if(s.length){var n=a.apply(null,s);n&&e.push(n)}}else if("object"===o){if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]")){e.push(s.toString());continue}for(var i in s)r.call(s,i)&&s[i]&&e.push(i)}}}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 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.React;var t=s.n(e);const r=window.wp.components,a=window.wp.data,o=window.wp.hooks,n=window.yoast.uiLibrary,i=window.lodash,l=window.yoast.reduxJsToolkit,c="adminUrl",d=(0,l.createSlice)({name:c,initialState:"",reducers:{setAdminUrl:(e,{payload:t})=>t}}),u=(d.getInitialState,{selectAdminUrl:e=>(0,i.get)(e,c,"")});u.selectAdminLink=(0,l.createSelector)([u.selectAdminUrl,(e,t)=>t],((e,t="")=>{try{return new URL(t,e).href}catch(t){return e}})),d.actions,d.reducer;const m=window.wp.apiFetch;var p=s.n(m);const y="hasConsent",g=`${y}/storeConsent`,h=(0,l.createSlice)({name:y,initialState:{hasConsent:!1,endpoint:"yoast/v1/ai_generator/consent"},reducers:{giveAiGeneratorConsent:(e,{payload:t})=>{e.hasConsent=t},setAiGeneratorConsentEndpoint:(e,{payload:t})=>{e.endpoint=t}}}),f=h.getInitialState,w={selectHasAiGeneratorConsent:e=>(0,i.get)(e,[y,"hasConsent"],h.getInitialState().hasConsent),selectAiGeneratorConsentEndpoint:e=>(0,i.get)(e,[y,"endpoint"],h.getInitialState().endpoint)},E={...h.actions,storeAiGeneratorConsent:function*(e,t){try{yield{type:g,payload:{consent:e,endpoint:t}}}catch(e){return!1}return yield{type:`${y}/giveAiGeneratorConsent`,payload:e},!0}},b={[g]:async({payload:e})=>await p()({path:e.endpoint,method:"POST",data:{consent:e.consent},parse:!1})},v=h.reducer,S=window.wp.url,x="linkParams",k=(0,l.createSlice)({name:x,initialState:{},reducers:{setLinkParams:(e,{payload:t})=>t}}),_=(k.getInitialState,{selectLinkParam:(e,t,s={})=>(0,i.get)(e,`${x}.${t}`,s),selectLinkParams:e=>(0,i.get)(e,x,{})});_.selectLink=(0,l.createSelector)([_.selectLinkParams,(e,t)=>t,(e,t,s={})=>s],((e,t,s)=>(0,S.addQueryArgs)(t,{...e,...s}))),k.actions,k.reducer;const C=(0,l.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,l.nanoid)(),variant:t,size:s,title:r||"",description:a}})},removeNotification:(e,{payload:t})=>(0,i.omit)(e,t)}}),L=(C.getInitialState,C.actions,C.reducer,"pluginUrl"),R=(0,l.createSlice)({name:L,initialState:"",reducers:{setPluginUrl:(e,{payload:t})=>t}}),I=(R.getInitialState,{selectPluginUrl:e=>(0,i.get)(e,L,"")});I.selectImageLink=(0,l.createSelector)([I.selectPluginUrl,(e,t,s="images")=>s,(e,t)=>t],((e,t,s)=>[(0,i.trimEnd)(e,"/"),(0,i.trim)(t,"/"),(0,i.trimStart)(s,"/")].join("/"))),R.actions,R.reducer;const N="request",P="success",T="error",A="idle",M="loading",$="success",O="error",F="showPlay",U="askPermission",q="isPlaying",W="wistiaEmbedPermission",B=(0,l.createSlice)({name:W,initialState:{value:!1,status:A,error:{}},reducers:{setWistiaEmbedPermissionValue:(e,{payload:t})=>{e.value=Boolean(t)}},extraReducers:e=>{e.addCase(`${W}/${N}`,(e=>{e.status=M})),e.addCase(`${W}/${P}`,((e,{payload:t})=>{e.status=$,e.value=Boolean(t&&t.value)})),e.addCase(`${W}/${T}`,((e,{payload:t})=>{e.status=O,e.value=Boolean(t&&t.value),e.error={code:(0,i.get)(t,"error.code",500),message:(0,i.get)(t,"error.message","Unknown")}}))}});var z;B.getInitialState,B.actions,B.reducer;const H=(0,l.createSlice)({name:"documentTitle",initialState:(0,i.defaultTo)(null===(z=document)||void 0===z?void 0:z.title,""),reducers:{setDocumentTitle:(e,{payload:t})=>t}});H.getInitialState,H.actions,H.reducer;const D=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:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-3a1 1 0 00-.867.5 1 1 0 11-1.731-1A3 3 0 0113 8a3.001 3.001 0 01-2 2.83V11a1 1 0 11-2 0v-1a1 1 0 011-1 1 1 0 100-2zm0 8a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"}))})),G=window.wp.element,j=window.wp.i18n,Y=window.yoast.aiFrontend,V=window.yoast.propTypes;var K=s.n(V);const Z="yoast-seo/ai-generator",X="yoast-seo/editor",Q="google",J="social",ee="twitter",te="title",se="description",re="post",ae="term",oe={post:"title",term:"term_title"},ne=(0,i.mapValues)(oe,(e=>`%%${e}%%`)),ie={mobile:"mobile",desktop:"desktop"},le={idle:"idle",loading:"loading",success:"success",error:"error"},ce="success",de="error",ue="abort",me=window.yoast.analysis,pe=(window.wp.sanitize,window.yoast.helpers),ye=(e,t)=>{try{return(0,G.createInterpolateElement)(e,t)}catch(t){return console.error("Error in translation for:",e,t),e}},{stripHTMLTags:ge}=pe.strings;let he,fe=!1;const we=["_formal","_informal","_ao90"],Ee=e=>{for(const t of we)if(e.endsWith(t))return e.slice(0,-t.length);return e},be="\\–\\-\\(\\)_\\[\\]’‘“”〝〞〟‟„\"'.?!:;,¿¡«»‹›—×+&۔؟،؛。。!‼?⁇⁉⁈‥…・ー、〃〄〆〇〈〉《》「」『』【】〒〓〔〕〖〗〘〙〚〛〜〝〞〟〠〶〼〽{}|~⦅⦆「」、[]・¥$%@&'()*/:;<>\\\<>";be.split(""),new RegExp("^["+be+"]+"),new RegExp("["+be+"]+$");const ve=new RegExp("["+be+"#$%&*+/=@^`{|}~ -¿–-⁊ -₠-⃀]","g"),Se=e=>0===e.replace(ve,"").trim().length,xe=e=>{const t={...e};return""!==e.value||["title","excerpt","excerpt_only"].includes(e.name)||(t.value="%%"+e.name+"%%"),t.badge=`<badge>${e.label}</badge>`,t},ke=()=>{const e=(0,a.useSelect)((e=>e(X).getReplaceVars()),[]),t=(0,G.useMemo)((()=>e.map(xe)),[e]);return(0,G.useCallback)(((e,{key:s="value",overrides:r={},applyPluggable:a=!0,editType:o=te,contentType:n=re}={})=>{for(const a of t)e=e.replace(new RegExp("%%"+(0,i.escapeRegExp)(a.name)+"%%","g"),(0,i.get)(r,a.name,a[s]));return n===ae&&(e=e.replace(" Archives","")),a?((e,t=te)=>{const s=function(e){const t=(0,i.get)(window,["YoastSEO","app","pluggable"],!1);if(!t||!(0,i.get)(window,["YoastSEO","app","pluggable","loaded"],!1))return function(e){const t=(0,i.get)(window,["YoastSEO","wp","replaceVarsPlugin","replaceVariables"],i.identity);return{url:e.url,title:ge(t(e.title)),description:ge(t(e.description)),filteredSEOTitle:e.filteredSEOTitle?ge(t(e.filteredSEOTitle)):""}}(e);const s=t._applyModifications.bind(t);return{url:e.url,title:ge(s("data_page_title",e.title)),description:ge(s("data_meta_desc",e.description)),filteredSEOTitle:e.filteredSEOTitle?ge(s("data_page_title",e.filteredSEOTitle)):""}}({title:"",description:"",[t]:me.languageProcessing.stripSpaces(e)});return(0,i.get)(s,t,e)})(e,o):e}),[t])},_e={editType:te,previewType:Q,postType:"post",contentType:re},Ce=(0,G.createContext)(_e),Le=Ce.Provider,Re=()=>(0,G.useContext)(Ce),Ie=window.yoast.externals.contexts,Ne=()=>(0,G.useContext)(Ie.LocationContext),Pe=e=>{const t=(0,G.useRef)(null);return(0,G.useCallback)((s=>{(0,i.attempt)((()=>t.current&&t.current.disconnect())),null!==s&&(t.current=new ResizeObserver((t=>{(0,i.forEach)(t,(t=>e(t)))})),t.current.observe(s))}),[e])},Te=(0,l.createSlice)({name:"suggestions",initialState:{status:le.loading,error:{code:200,message:""},entities:[],selected:""},reducers:{setLoading:e=>{e.status=le.loading},setSuccess:(e,{payload:t})=>{e.status=le.success,e.selected=t[0],e.entities.push(...t)},setError:(e,{payload:t})=>{e.status=le.error,e.error=t},setSelected:(e,{payload:t})=>{e.selected=t}}}),Ae=e=>{switch(e){case J:return"Facebook";case ee:return"Twitter";default:return"Google"}},Me=window.yoast.searchMetadataPreviews,$e="usageCount",Oe="fetchUsageCount",Fe=`${Oe}/${P}`,Ue=`${Oe}/${T}`,qe={errorCode:null,errorIdentifier:null,errorMessage:null},We=(0,l.createSlice)({name:$e,initialState:{status:A,count:0,limit:10,endpoint:"yoast/v1/ai_generator/get_usage",error:qe},reducers:{addUsageCount:(e,{payload:t=1})=>{e.count+=t},setUsageCount:(e,{payload:t})=>{e.count=t},setUsageCountEndpoint:(e,{payload:t})=>{e.endpoint=t},setUsageCountLimit:(e,{payload:t})=>{e.limit=t}},extraReducers:e=>{e.addCase(`${Oe}/${N}`,(e=>{e.status=M,e.error=qe})),e.addCase(Fe,((e,{payload:t})=>{e.status=$,e.count=t.count,e.limit=t.limit,e.error=qe})),e.addCase(`${Oe}/${T}`,((e,{payload:t})=>{e.status=O,e.error={errorCode:502,...t}}))}}),Be=We.getInitialState,ze={selectUsageCountStatus:e=>(0,i.get)(e,[$e,"status"],We.getInitialState()),selectUsageCount:e=>(0,i.get)(e,[$e,"count"],We.getInitialState().count),selectUsageCountLimit:e=>(0,i.get)(e,[$e,"limit"],We.getInitialState().limit),selectUsageCountEndpoint:e=>(0,i.get)(e,[$e,"endpoint"],We.getInitialState().endpoint),selectUsageCountError:e=>(0,i.get)(e,[$e,"error"],We.getInitialState().error)};ze.selectUsageCountRemaining=(0,l.createSelector)([ze.selectUsageCount,ze.selectUsageCountLimit],((e,t)=>Math.max(t-e,0))),ze.isUsageCountLimitReached=(0,l.createSelector)([ze.selectUsageCount,ze.selectUsageCountLimit,ze.selectUsageCountError],((e,t,s)=>429===s.errorCode||e>=t));const He={...We.actions,fetchUsageCount:function*({endpoint:e,isWooProductEntity:t}){yield{type:`${Oe}/${N}`};try{const s=(e=>{const t=(0,i.get)(e,"totalUsed.license",null),s=(0,i.get)(e,"totalUsed.limit",null);if(!(0,i.isNumber)(t)||t<0)throw new Error("Invalid usage count: must be a number of zero or higher.");if(!(0,i.isNumber)(s)||s<-1||0===s)throw new Error("Invalid usage count limit: must be a number of -1 or higher than 1");return{count:t,limit:s}})(yield{type:Oe,payload:{endpoint:e,isWooProductEntity:t}});return{type:`${Oe}/${P}`,payload:s}}catch(e){return{type:`${Oe}/${T}`,payload:e}}}},De={[Oe]:async({payload:e})=>p()({method:"POST",path:e.endpoint,data:{is_woo_product_entity:e.isWooProductEntity}})},Ge=We.reducer;K().string.isRequired;const je=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"}))})),Ye=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"}))})),Ve=({learnMoreLink:t,thumbnail:s,wistiaEmbedPermission:r,upsellLink:a,upsellLabel:o,newToText:i,ctbId:l})=>{const{onClose:c,initialFocus:d}=(0,n.useModalContext)(),u={a:(0,e.createElement)(ut,{href:t,className:"yst-inline-flex yst-items-center yst-gap-1 yst-no-underline yst-font-medium",variant:"primary"}),ArrowNarrowRightIcon:(0,e.createElement)(Ye,{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)(Mt,{videoId:"vun9z1dpfh",thumbnail:s,wistiaEmbedPermission:r}),(0,e.createElement)(n.Badge,{className:"yst-absolute yst-end-4 yst-text-center yst-justify-center",variant:"info",style:{top:"-8px"}},(0,j.__)("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,j.sprintf)(/* translators: %s: Expands to "Yoast AI" */
(0,j.__)("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"},ye((0,j.sprintf)(/* translators: %1$s is a break tag; %2$s and %3$s are anchor tags; %4$s is the arrow icon. */
(0,j.__)("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>"),u))),(0,e.createElement)("div",{className:"yst-w-full yst-flex yst-mt-6"},(0,e.createElement)(n.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":l},(0,e.createElement)(je,{className:"yst--ms-1 yst-me-2 yst-h-5 yst-w-5"}),o,(0,e.createElement)("span",{className:"yst-sr-only"},/* translators: Hidden accessibility text. */
(0,j.__)("(Opens in a new browser tab)","wordpress-seo")))),(0,e.createElement)(n.Button,{as:"a",className:"yst-mt-4",variant:"tertiary",onClick:c},(0,j.__)("Close","wordpress-seo"))))};Ve.propTypes={learnMoreLink:K().string.isRequired,upsellLink:K().string.isRequired,thumbnail:K().shape({src:K().string.isRequired,width:K().string,height:K().string}).isRequired,wistiaEmbedPermission:K().shape({value:K().bool.isRequired,status:K().string.isRequired,set:K().func.isRequired}).isRequired,upsellLabel:K().string,newToText:K().string,ctbId:K().string},Ve.defaultProps={upsellLabel:(0,j.sprintf)(/* translators: %1$s expands to Yoast SEO Premium. */
(0,j.__)("Unlock with %1$s","wordpress-seo"),"Yoast SEO Premium"),newToText:"Yoast SEO Premium",ctbId:"f6a84663-465f-4cb5-8ba5-f7a6d72224b2"};const Ke=({handleRefreshClick:t,supportLink:s})=>(0,e.createElement)("div",{className:"yst-flex yst-gap-2"},(0,e.createElement)(n.Button,{onClick:t},(0,j.__)("Refresh this page","wordpress-seo")),(0,e.createElement)(n.Button,{variant:"secondary",as:"a",href:s,target:"_blank",rel:"noopener"},(0,j.__)("Contact support","wordpress-seo")));Ke.propTypes={handleRefreshClick:K().func.isRequired,supportLink:K().string.isRequired};const Ze=({handleRefreshClick:t,supportLink:s})=>(0,e.createElement)("div",{className:"yst-grid yst-grid-cols-1 yst-gap-y-2"},(0,e.createElement)(n.Button,{className:"yst-order-last",onClick:t},(0,j.__)("Refresh this page","wordpress-seo")),(0,e.createElement)(n.Button,{variant:"secondary",as:"a",href:s,target:"_blank",rel:"noopener"},(0,j.__)("Contact support","wordpress-seo")));Ze.propTypes={handleRefreshClick:K().func.isRequired,supportLink:K().string.isRequired};const Xe=({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)(n.Title,null,(0,j.__)("Something went wrong. An unexpected error occurred.","wordpress-seo")),(0,e.createElement)("p",null,(0,j.__)("We're very sorry, but it seems like the following error has interrupted our application:","wordpress-seo")),(0,e.createElement)(n.Alert,{variant:"error"},(null==t?void 0:t.message)||(0,j.__)("Undefined error message.","wordpress-seo")),(0,e.createElement)("p",null,(0,j.__)("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);Xe.propTypes={error:K().object.isRequired,children:K().node},Xe.VerticalButtons=Ze,Xe.HorizontalButtons=Ke;var Qe;function Je(){return Je=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},Je.apply(this,arguments)}K().string,K().node.isRequired,K().node.isRequired,K().node,K().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 et=t=>e.createElement("svg",Je({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 1000 1000"},t),Qe||(Qe=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"}))),tt=window.ReactDOM;var st,rt,at;(rt=st||(st={})).Pop="POP",rt.Push="PUSH",rt.Replace="REPLACE",function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(at||(at={})),new Set(["lazy","caseSensitive","path","id","index","children"]),Error;const ot=["post","put","patch","delete"],nt=(new Set(ot),["get",...ot]);new Set(nt),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 it,lt,ct,dt;new Map,e.startTransition,tt.flushSync,e.useId,"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,(dt=it||(it={})).UseScrollRestoration="useScrollRestoration",dt.UseSubmit="useSubmit",dt.UseSubmitFetcher="useSubmitFetcher",dt.UseFetcher="useFetcher",dt.useViewTransitionState="useViewTransitionState",(ct=lt||(lt={})).UseFetcher="useFetcher",ct.UseFetchers="useFetchers",ct.UseScrollRestoration="useScrollRestoration",K().string.isRequired,K().string;const ut=({href:t,children:s,...r})=>(0,e.createElement)(n.Link,{target:"_blank",rel:"noopener noreferrer",...r,href:t},s,(0,e.createElement)("span",{className:"yst-sr-only"},/* translators: Hidden accessibility text. */
(0,j.__)("(Opens in a new browser tab)","wordpress-seo")));ut.propTypes={href:K().string.isRequired,children:K().node},ut.defaultProps={children:null};const mt=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"}))}));var pt,yt,gt;function ht(){return ht=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},ht.apply(this,arguments)}const ft=t=>e.createElement("svg",ht({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),pt||(pt=e.createElement("defs",null,e.createElement("style",null,".star-rating-half_svg__cls-1{fill:#fbbf24}"))),yt||(yt=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"})),gt||(gt=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 wt(){return wt=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},wt.apply(this,arguments)}const Et=t=>e.createElement("svg",wt({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 bt,vt,St,xt,kt,_t,Ct,Lt,Rt;function It(){return It=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},It.apply(this,arguments)}const Nt=t=>e.createElement("svg",It({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 500 500"},t),bt||(bt=e.createElement("path",{fill:"#a4286a",d:"M80 0h340a80 80 0 0 1 80 80v420H80a80 80 0 0 1-80-80V80A80 80 0 0 1 80 0z"})),vt||(vt=e.createElement("path",{fill:"#6c2548",d:"M437.61 2 155.89 500H500V80a80 80 0 0 0-62.39-78z"})),St||(St=e.createElement("path",{fill:"#fff",d:"M74.4 337.3v34.9c21.6-.9 38.5-8 52.8-22.5s27.4-38 39.9-72.9l92.6-248h-44.8L140.3 236l-37-116.2h-41l54.4 139.8a57.54 57.54 0 0 1 0 41.8c-5.5 14.2-15.4 30.9-42.3 35.9z"})),xt||(xt=e.createElement("circle",{cx:368.33,cy:124.68,r:97.34,fill:"#9fda4f",transform:"rotate(-45 368.335 124.68)"})),kt||(kt=e.createElement("path",{fill:"#77b227",d:"m416.2 39.93-95.74 169.51A97.34 97.34 0 1 0 416.2 39.93z"})),_t||(_t=e.createElement("path",{fill:"#fec228",d:"m294.78 254.75-.15-.08-.13-.07a63.6 63.6 0 0 0-62.56 110.76h.13a63.6 63.6 0 0 0 62.71-110.67z"})),Ct||(Ct=e.createElement("path",{fill:"#f49a00",d:"m294.5 254.59-62.56 110.76a63.6 63.6 0 1 0 62.56-110.76z"})),Lt||(Lt=e.createElement("path",{fill:"#ff4e47",d:"M222.31 450.07A38.16 38.16 0 0 0 203 416.83a38.18 38.18 0 1 0 19.41 33.27z"})),Rt||(Rt=e.createElement("path",{fill:"#ed261f",d:"m202.9 416.8-37.54 66.48a38.17 38.17 0 0 0 37.54-66.48z"}))),Pt=({link:t,linkProps:s,isPromotionActive:r})=>{let a=(0,G.useMemo)((()=>(0,j.__)("Use AI to generate titles and meta descriptions, automatically redirect deleted pages, get 24/7 support, and much, much more!","wordpress-seo")),[]),o=ye((0,j.sprintf)(/* translators: %1$s and %2$s expand to a span wrap to avoid linebreaks. %3$s expands to "Yoast SEO Premium". */
(0,j.__)("%1$sGet%2$s %3$s","wordpress-seo"),"<nowrap>","</nowrap>","Yoast SEO Premium"),{nowrap:(0,e.createElement)("span",{className:"yst-whitespace-nowrap"})});const i=r("black-friday-2024-promotion");return i&&(a=(0,G.useMemo)((()=>(0,j.__)("If you were thinking about upgrading, now's the time! 30% OFF ends 3rd Dec 11am (CET)","wordpress-seo")),[]),o=ye((0,j.sprintf)(/* translators: %1$s and %2$s expand to a span wrap to avoid linebreaks. %3$s expands to "Yoast SEO Premium". */
(0,j.__)("%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:"yst-p-6 yst-rounded-lg yst-text-white yst-bg-primary-500 yst-shadow"},(0,e.createElement)("figure",{className:"yst-logo-square yst-w-16 yst-h-16 yst-mx-auto yst-overflow-hidden yst-border yst-border-white yst-rounded-xl yst-rounded-br-none yst-relative yst-z-10 yst-mt-[-2.6rem]"},(0,e.createElement)(Nt,null)),i&&(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,j.__)("30% OFF - BLACK FRIDAY","wordpress-seo")))),(0,e.createElement)(n.Title,{as:"h2",className:"yst-mt-6 yst-text-base yst-font-extrabold yst-text-white"},o),(0,e.createElement)("p",{className:"yst-mt-2"},a),(0,e.createElement)(n.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,i?(0,j.__)("Buy now","wordpress-seo"):o),(0,e.createElement)(mt,{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,j.__)("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-font-medium yst-text-white hover:yst-underline"},(0,j.__)("Read reviews from real users","wordpress-seo")),(0,e.createElement)("span",{className:"yst-flex yst-gap-2 yst-mt-2 yst-items-center"},(0,e.createElement)(et,{className:"yst-w-5 yst-h-5"}),(0,e.createElement)("span",{className:"yst-flex yst-gap-1"},(0,e.createElement)(Et,{className:"yst-w-5 yst-h-5"}),(0,e.createElement)(Et,{className:"yst-w-5 yst-h-5"}),(0,e.createElement)(Et,{className:"yst-w-5 yst-h-5"}),(0,e.createElement)(Et,{className:"yst-w-5 yst-h-5"}),(0,e.createElement)(ft,{className:"yst-w-5 yst-h-5"})),(0,e.createElement)("span",{className:"yst-text-sm yst-font-semibold yst-text-white"},"4.6 / 5"))))};Pt.propTypes={link:K().string.isRequired,linkProps:K().object,isPromotionActive:K().func},Pt.defaultProps={linkProps:{},isPromotionActive:i.noop};const Tt=({premiumLink:t,premiumUpsellConfig:s,isPromotionActive:r})=>{const a=r("black-friday-2024-promotion");return(0,e.createElement)(n.Paper,{as:"div",className:"xl:yst-max-w-3xl"},a&&(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,j.__)("30% OFF","wordpress-seo")),(0,e.createElement)("div",null,(0,j.__)("BLACK FRIDAY","wordpress-seo"))),(0,e.createElement)("div",{className:"yst-p-6 yst-flex yst-flex-col"},(0,e.createElement)(n.Title,{as:"h2",size:"4",className:"yst-text-xl yst-text-primary-500"},(0,j.sprintf)(/* translators: %s expands to "Yoast SEO" Premium */
(0,j.__)("Upgrade to %s","wordpress-seo"),"Yoast SEO Premium")),(0,e.createElement)("ul",{className:"yst-grid yst-grid-cols-1 sm:yst-grid-cols-2 yst-gap-x-6 yst-list-disc yst-ps-[1em] yst-list-outside yst-text-slate-800 yst-mt-6"},[(0,j.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
(0,j.__)("%1$sAI%2$s: Better SEO titles and meta descriptions, faster.","wordpress-seo"),"<strong>","</strong>"),(0,j.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
(0,j.__)("%1$sMultiple keywords%2$s: Rank higher for more searches.","wordpress-seo"),"<strong>","</strong>"),(0,j.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
(0,j.__)("%1$sSuper fast%2$s internal linking suggestions.","wordpress-seo"),"<strong>","</strong>"),(0,j.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
(0,j.__)("%1$sNo more broken links%2$s: Automatic redirect manager.","wordpress-seo"),"<strong>","</strong>"),(0,j.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
(0,j.__)("%1$sAppealing social previews%2$s people actually want to click on.","wordpress-seo"),"<strong>","</strong>"),(0,j.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
(0,j.__)("%1$s24/7 support%2$s: Also on evenings and weekends.","wordpress-seo"),"<strong>","</strong>")].map(((t,s)=>(0,e.createElement)("li",{key:`upsell-benefit-${s}`},ye(t,{strong:(0,e.createElement)("span",{className:"yst-font-semibold"})}))))),(0,e.createElement)(n.Button,{as:"a",variant:"upsell",size:"extra-large",href:t,className:"yst-gap-2 yst-mt-4",target:"_blank",rel:"noopener",...s},a?(0,j.__)("Claim your 30% off now!","wordpress-seo"):(0,j.sprintf)(/* translators: %s expands to "Yoast SEO" Premium */
(0,j.__)("Explore %s now!","wordpress-seo"),"Yoast SEO Premium"),(0,e.createElement)(mt,{className:"yst-w-4 yst-h-4 yst-icon-rtl"}))))};Tt.propTypes={premiumLink:K().string.isRequired,premiumUpsellConfig:K().object,isPromotionActive:K().func},Tt.defaultProps={premiumUpsellConfig:{},isPromotionActive:i.noop},K().string.isRequired,K().object.isRequired,K().string.isRequired,K().func.isRequired,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"}))})),K().bool.isRequired,K().func,K().func,K().string.isRequired,K().string.isRequired,K().string.isRequired,K().string.isRequired;const At=window.yoast.reactHelmet,Mt=({videoId:t,thumbnail:s,wistiaEmbedPermission:r})=>{const[a,o]=(0,G.useState)(r.value?q:F),i=(0,G.useCallback)((()=>o(q)),[o]),l=(0,G.useCallback)((()=>{r.value?i():o(U)}),[r.value,i,o]),c=(0,G.useCallback)((()=>o(F)),[o]),d=(0,G.useCallback)((()=>{r.set(!0),i()}),[r.set,i]);return(0,e.createElement)(e.Fragment,null,r.value&&(0,e.createElement)(At.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===F&&(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:l},(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===M&&(0,e.createElement)(n.Spinner,null),r.status!==M&&(0,j.sprintf)(/* translators: %1$s expands to Yoast SEO. %2$s expands to Wistia. */
(0,j.__)("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)(n.Button,{type:"button",variant:"secondary",onClick:c,disabled:r.status===M},(0,j.__)("Deny","wordpress-seo")),(0,e.createElement)(n.Button,{type:"button",variant:"primary",onClick:d,disabled:r.status===M},(0,j.__)("Allow","wordpress-seo")))),r.value&&a===q&&(0,e.createElement)("div",{className:"yst-absolute yst-w-full yst-h-full yst-top-0 yst-right-0"},null===t&&(0,e.createElement)(n.Spinner,{className:"yst-h-full yst-mx-auto"}),null!==t&&(0,e.createElement)("div",{className:`wistia_embed wistia_async_${t} videoFoam=true`}))))};Mt.propTypes={videoId:K().string.isRequired,thumbnail:K().shape({src:K().string.isRequired,width:K().string,height:K().string}).isRequired,wistiaEmbedPermission:K().shape({value:K().bool.isRequired,status:K().string.isRequired,set:K().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"}))})),K().bool.isRequired,K().func.isRequired,K().func,K().string;var $t=s(4530),Ot=s.n($t);const Ft=({onGiveConsent:t,learnMoreLink:s,privacyPolicyLink:r,termsOfServiceLink:a,imageLink:o})=>{const{onClose:i,initialFocus:l}=(0,n.useModalContext)(),[c,d]=(0,n.useToggleState)(!1),u=(0,G.useMemo)((()=>({src:o,width:"432",height:"244"})),[o]),m=ye((0,j.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,j.__)("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)(ut,{href:a}),a2:(0,e.createElement)(ut,{href:r})}),[p,y]=(0,n.useToggleState)(!1),g=(0,G.useCallback)((async()=>{y(),await t(),y()}),[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",...u}))),(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,j.sprintf)(/* translators: %s expands to Yoast AI. */
(0,j.__)("Grant consent for %s","wordpress-seo"),"Yoast AI")),(0,e.createElement)("div",{className:"yst-mt-2 yst-text-slate-600 yst-text-sm"},ye((0,j.sprintf)(/* translators: %1$s is a break tag; %2$s and %3$s are anchor tag; %4$s is the arrow icon. */
(0,j.__)("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)(ut,{href:s,className:"yst-inline-flex yst-items-center yst-gap-1 yst-no-underline yst-font-medium",variant:"primary"}),ArrowNarrowRightIcon:(0,e.createElement)(Ye,{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:c,value:c?"true":"false",onChange:d,className:"yst-checkbox__input",ref:l}),(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"},m)),(0,e.createElement)("div",{className:"yst-w-full yst-flex yst-mt-4"},(0,e.createElement)(n.Button,{as:"button",className:"yst-grow",size:"large",disabled:!c,onClick:g},p&&(0,e.createElement)(n.Spinner,{className:"yst-me-2"}),(0,j.__)("Grant consent","wordpress-seo"))),(0,e.createElement)(n.Button,{as:"button",className:"yst-mt-4",variant:"tertiary",onClick:i},(0,j.__)("Close","wordpress-seo"))))};Ft.propTypes={onGiveConsent:K().func.isRequired,learnMoreLink:K().string.isRequired,privacyPolicyLink:K().string.isRequired,termsOfServiceLink:K().string.isRequired,imageLink:K().string.isRequired};const Ut=()=>{const t=(0,a.useSelect)((e=>e(X).selectLink("https://yoa.st/ai-common-errors")),[]),s=(0,a.useSelect)((e=>e(X).selectAdminLink("?page=wpseo_page_support")),[]);return(0,e.createElement)(n.Alert,{variant:"error"},(0,e.createElement)("span",{className:"yst-block yst-font-medium"},(0,j.__)("Something went wrong","wordpress-seo")),(0,e.createElement)("p",{className:"yst-mt-2"},ye((0,j.sprintf)(/* translators: %1$s and %3$s expand to an opening tag. %2$s and %4$s expand to a closing tag. */
(0,j.__)("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,e.createElement)(ut,{variant:"error",href:t}),a2:(0,e.createElement)(ut,{variant:"error",href:s})})))},qt=()=>{const t=(0,a.useSelect)((e=>e(X).selectLink("https://yoa.st/ai-common-errors")),[]),s=(0,a.useSelect)((e=>e(X).selectAdminLink("?page=wpseo_page_support")),[]);return(0,e.createElement)(n.Alert,{variant:"error"},(0,e.createElement)("span",{className:"yst-block yst-font-medium"},(0,j.__)("Not enough content","wordpress-seo")),(0,e.createElement)("p",{className:"yst-mt-2"},ye((0,j.sprintf)(/* translators: %1$s and %3$s expand to an opening tag. %2$s and %4$s expand to a closing tag. */
(0,j.__)("Please add more content to ensure a valuable AI suggestion. Learn more 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,e.createElement)(ut,{variant:"error",href:t}),a2:(0,e.createElement)(ut,{variant:"error",href:s})})))},Wt=()=>{const t=(0,a.useSelect)((e=>e(X).selectAdminLink("?page=wpseo_page_settings#/site-features#card-wpseo-keyword_analysis_active")),[]),s=(0,G.useCallback)((()=>{window.location.reload()}),[]),{onClose:r}=(0,n.useModalContext)();return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.Alert,{variant:"error"},(0,e.createElement)("span",{className:"yst-block yst-font-medium"},(0,j.__)("SEO analysis required","wordpress-seo")),(0,e.createElement)("p",{className:"yst-mt-2"},ye((0,j.sprintf)(
/**
   * translators:
   * %1$s expands to Yoast SEO.
   * %2$s and %3$s expand to an opening and closing anchor tag, respectively, that links to the settings page.
   * %4$s expands to Yoast AI.
   */
(0,j.__)("%4$s requires the SEO analysis to be enabled. To enable it, please navigate to %2$sSite features%3$s in %1$s, turn on the SEO analysis, and click 'Save changes'. If it's disabled in your WordPress user profile, access your profile and enable it there. Please contact your administrator if you don't have access to these settings.","wordpress-seo"),"Yoast SEO","<a>","</a>","Yoast AI"),{a:(0,e.createElement)(ut,{variant:"error",href:t})}))),(0,e.createElement)("div",{className:"yst-mt-6 yst-mb-1 yst-flex yst-space-x-3 rtl:yst-space-x-reverse yst-place-content-end"},(0,e.createElement)(n.Button,{variant:"secondary",onClick:r},(0,j.__)("Close","wordpress-seo")),(0,e.createElement)(n.Button,{className:"yst-revoke-button",variant:"primary",onClick:s},(0,j.__)("Refresh page","wordpress-seo"))))},Bt=()=>{const t=(0,a.useSelect)((e=>e(X).selectLink("https://yoa.st/ai-generator-rate-limit-help")),[]);return(0,e.createElement)(n.Alert,{variant:"error"},(0,e.createElement)("span",{className:"yst-block yst-font-medium"},(0,j.__)("You've reached the Yoast AI rate limit","wordpress-seo")),(0,e.createElement)("p",{className:"yst-mt-2"},ye((0,j.sprintf)(/* translators: %1$s expands to an opening tag. %2$s expands to a closing tag. */
(0,j.__)("You might have reached your Yoast AI rate limit for a specific time frame or your sparks limit for this month. If you have reached your rate limit, please reduce the frequency of your requests to continue using Yoast AI features. Our %1$shelp article%2$s provides guidance on effectively planning and pacing your requests for an optimized workflow.","wordpress-seo"),"<a>","</a>"),{a:(0,e.createElement)(ut,{variant:"error",href:t})})))},zt=({invalidSubscriptions:t=[]})=>{const{newYoastWooLink:s,activateYoastWooLink:r,newPremiumLink:o,activatePremiumLink:i}=(0,a.useSelect)((e=>{const t=e(X);return{newYoastWooLink:t.selectLink("https://yoa.st/ai-generator-new-yoast-woocommerce"),activateYoastWooLink:t.selectLink("https://yoa.st/ai-generator-activate-yoast-woocommerce"),newPremiumLink:t.selectLink("https://yoa.st/ai-generator-new-premium"),activatePremiumLink:t.selectLink("https://yoa.st/ai-generator-activate-premium")}}),[]),{onClose:l}=(0,n.useModalContext)(),c=(0,G.useCallback)((async()=>{try{await p()({path:"yoast/v1/ai_generator/bust_subscription_cache",method:"POST",parse:!1})}catch(e){console.error(e)}window.location.reload()}),[]);let d,u,m;return t.includes("Yoast WooCommerce SEO")?(d="Yoast WooCommerce SEO",u=r,m=s):t.includes("Yoast SEO Premium")&&(d="Yoast SEO Premium",u=i,m=o),(0,e.createElement)(G.Fragment,null,(0,e.createElement)(n.Alert,{variant:"error"},(0,e.createElement)("span",{className:"yst-block yst-font-medium"},(0,j.__)("Subscription required","wordpress-seo")),(0,e.createElement)("p",{className:"yst-mt-2"},ye((0,j.sprintf)(
/**
   * translators:
   * %1$s expands to Yoast SEO Premium or Yoast WooCommerce SEO.
   * %2$s expands to MyYoast.
   * %3$s and %4$s expand to an opening and closing anchor tag, respectively, to activate your subscription.
   * %5$s and %6$s expand to an opening and closing anchor tag, respectively, to get a new subscription.
   **/
(0,j.__)("To access this feature, you need an active %1$s subscription. Please %3$sactivate your subscription in %2$s%4$s or %5$sget a new %1$s subscription%6$s. Afterward, refresh this page. It may take up to 30 seconds for the feature to function correctly.","wordpress-seo"),d,"MyYoast","<Activate>","</Activate>","<New>","</New>"),{Activate:(0,e.createElement)(ut,{variant:"error",href:u}),New:(0,e.createElement)(ut,{variant:"error",href:m})}))),(0,e.createElement)("div",{className:"yst-mt-6 yst-mb-1 yst-flex yst-space-x-3 rtl:yst-space-x-reverse yst-place-content-end"},(0,e.createElement)(n.Button,{variant:"secondary",onClick:l},(0,j.__)("Close","wordpress-seo")),(0,e.createElement)(n.Button,{variant:"primary",onClick:c},(0,j.__)("Refresh page","wordpress-seo"))))};zt.propTypes={invalidSubscriptions:K().arrayOf(K().string)};const Ht=()=>{const t=(0,a.useSelect)((e=>e(X).selectLink("https://yoa.st/ai-common-errors")),[]),s=(0,a.useSelect)((e=>e(X).selectAdminLink("?page=wpseo_page_support")),[]);return(0,e.createElement)(n.Alert,{variant:"error"},(0,e.createElement)("span",{className:"yst-block yst-font-medium"},(0,j.__)("Connection timeout","wordpress-seo")),(0,e.createElement)("p",{className:"yst-mt-2"},ye((0,j.sprintf)(/* translators: %1$s and %3$s expand to an opening tag. %2$s and %4$s expand to a closing tag. */
(0,j.__)("It seems that a connection timeout has occurred. Please check your internet connection and try again later. Learn more 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,e.createElement)(ut,{variant:"error",href:t}),a2:(0,e.createElement)(ut,{variant:"error",href:s})})))},Dt=()=>{const t=(0,a.useSelect)((e=>e(X).selectAdminLink("?page=wpseo_page_support")),[]);return(0,e.createElement)(n.Alert,{variant:"error"},(0,e.createElement)("span",{className:"yst-block yst-font-medium"},(0,j.__)("Usage policy violation","wordpress-seo")),(0,e.createElement)("p",{className:"yst-mt-2"},ye((0,j.sprintf)(
/* translators: %1$s, %2$s, %3$s, %4$s are anchor tags.
   * %5$s expands to OpenAI.
   */
(0,j.__)("Due to %5$s's strict ethical guidelines and %1$susage policies%2$s, we cannot generate suggestions for the content on this page. If you intend to use AI, kindly avoid the use of explicit, violent, copyrighted, or sexually explicit content. In case you need further help, please %3$scontact our support team%4$s.","wordpress-seo"),"<a1>","</a1>","<a2>","</a2>","OpenAI"),{a1:(0,e.createElement)(ut,{variant:"error",href:"https://openai.com/policies/usage-policies"}),a2:(0,e.createElement)(ut,{variant:"error",href:t})})))},Gt=({errorMessage:t=""})=>{const s=(0,a.useSelect)((e=>e(X).selectAdminLink("?page=wpseo_page_support")),[]);return(0,e.createElement)(n.Alert,{variant:"error"},(0,e.createElement)("span",{className:"yst-block yst-font-medium"},(0,j.__)("Something went wrong","wordpress-seo")),(0,e.createElement)("p",{className:"yst-mt-2"},(0,j.sprintf)(/* translators: %s is the error response of the request. */
(0,j.__)("The request came back with the following error: '%s'.","wordpress-seo"),t)),(0,e.createElement)("p",{className:"yst-mt-2"},ye((0,j.sprintf)(/* translators: %1$s expands to an opening tag. %2$s expands to a closing tag. */
(0,j.__)("Please try again later. If the issue persists, please %1$scontact our support team%2$s.","wordpress-seo"),"<a>","</a>"),{a:(0,e.createElement)(ut,{variant:"error",href:s})})))};Gt.propTypes={errorMessage:K().string};const jt=()=>{const t=(0,a.useSelect)((e=>e(X).selectAdminLink("plugins.php")),[]);return(0,e.createElement)(n.Alert,{variant:"error"},(0,e.createElement)("span",{className:"yst-block yst-font-medium"},(0,j.__)("Something went wrong","wordpress-seo")),(0,e.createElement)("p",{className:"yst-mt-2"},ye((0,j.sprintf)(/* translators: %1$s expands to Yoast SEO Premium. %2$s expands to an opening link tag. %3$s expands to a closing link tag. */
(0,j.__)("The version of %1$s is outdated. Please upgrade %1$s %2$shere%3$s!","wordpress-seo"),"Yoast SEO Premium","<a>","</a>"),{a:(0,e.createElement)(ut,{variant:"error",href:t})})))},Yt=()=>{const t=(0,a.useSelect)((e=>e(X).selectLink("https://yoa.st/ai-common-errors")),[]),s=(0,a.useSelect)((e=>e(X).selectAdminLink("?page=wpseo_page_support")),[]);return(0,e.createElement)(n.Alert,{variant:"error"},(0,e.createElement)("span",{className:"yst-block yst-font-medium"},(0,j.__)("Yoast AI cannot reach your site","wordpress-seo")),(0,e.createElement)("p",{className:"yst-mt-2"},ye((0,j.sprintf)(/* translators: %1$s and %3$s expand to an opening tag. %2$s and %4$s expand to a closing tag. */
(0,j.__)("To use this feature, your site must be publicly accessible. This applies to both test sites and instances where your REST API is password-protected. Please ensure your site is accessible to the public and try again. Learn more 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,e.createElement)(ut,{variant:"error",href:t}),a2:(0,e.createElement)(ut,{variant:"error",href:s})})))},Vt=({errorCode:t,errorIdentifier:s="",errorMessage:r=""})=>{switch(t){case 400:switch(s){case"SITE_UNREACHABLE":return(0,e.createElement)(Yt,null);case"WP_HTTP_REQUEST_ERROR":return(0,e.createElement)(Gt,{errorMessage:r});default:return(0,e.createElement)(Ut,null)}case 429:return(0,e.createElement)(Bt,null);default:return(0,e.createElement)(Ut,null)}};Vt.propTypes={errorCode:K().number.isRequired,errorIdentifier:K().string,errorMessage:K().string};const Kt=({currentSubscriptions:t,isSeoAnalysisActive:s=!0})=>{const{isPremium:r,usageCountStatus:o,usageCountError:n,isWooProductEntity:i,isWooSeoActive:l}=(0,a.useSelect)((e=>{const t=e(X);return{isPremium:t.getIsPremium(),usageCountStatus:e(Z).selectUsageCountStatus(),usageCountError:e(Z).selectUsageCountError(),isWooProductEntity:t.getIsWooProductEntity(),isWooSeoActive:t.getIsWooSeoActive()}}),[]),c=(0,G.useMemo)((()=>!t.wooCommerceSubscription&&i),[t.wooCommerceSubscription]),d=(0,G.useMemo)((()=>{const e=[];return!r&&!i||t.premiumSubscription||e.push("Yoast SEO Premium"),c&&l&&e.push("Yoast WooCommerce SEO"),e}),[r,t.premiumSubscription,c,l,i]);return d.length>0?(0,e.createElement)(zt,{invalidSubscriptions:d}):s?o===le.error?(0,e.createElement)(Vt,{...n}):void 0:(0,e.createElement)(Wt,null)};Kt.propTypes={currentSubscriptions:K().object.isRequired,isSeoAnalysisActive:K().bool};const Zt=({onStartGenerating:t})=>{const{termsOfServiceLink:s,privacyPolicyLink:r,learnMoreLink:o,imageLink:n,consentEndpoint:i}=(0,a.useSelect)((e=>({termsOfServiceLink:e(X).selectLink("https://yoa.st/ai-generator-terms-of-service"),privacyPolicyLink:e(X).selectLink("https://yoa.st/ai-generator-privacy-policy"),learnMoreLink:e(X).selectLink("https://yoa.st/ai-generator-learn-more"),imageLink:e(X).selectImageLink("ai-consent.png"),consentEndpoint:e(Z).selectAiGeneratorConsentEndpoint()})),[]),{storeAiGeneratorConsent:l}=(0,a.useDispatch)(Z),c=(0,G.useCallback)((async()=>{await l(!0,i),t()}),[l,t,i]);return(0,e.createElement)(Ft,{termsOfServiceLink:s,privacyPolicyLink:r,learnMoreLink:o,imageLink:n,onGiveConsent:c})};Zt.propTypes={onStartGenerating:K().func.isRequired};const Xt=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:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"}))})),Qt=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:"M5 13l4 4L19 7"}))})),Jt=/(?<start><\/badge>|^(?!<badge>))(?<wrap>[\s\S]+?)(?<end><badge>|$)/g,es=({total:t,current:s,onNavigate:r,disabled:a=!1,...o})=>(0,e.createElement)("div",{className:"yst-flex yst-justify-between yst-gap-x-2 yst-items-start"},(0,e.createElement)("p",{className:"yst-text-slate-500 yst-text-xxs yst-mt-1"},(0,j.__)("Text generated by AI may be offensive or inaccurate.","wordpress-seo")),t>1&&(0,e.createElement)(n.Pagination,{className:"yst-shrink-0",current:s,total:t,onNavigate:r,disabled:a,variant:"text"
/* translators: Hidden accessibility text. */,screenReaderTextPrevious:(0,j.__)("Previous","wordpress-seo")
/* translators: Hidden accessibility text. */,screenReaderTextNext:(0,j.__)("Next","wordpress-seo"),...o})),ts=({height:t})=>{const[s,r]=(0,G.useState)(""),{onClose:o}=(0,n.useModalContext)(),{editType:l,previewType:c,contentType:d}=Re(),u=(()=>{const{editType:e,previewType:t}=Re();let s="SEO";switch(t){case J:s="social";break;case ee:s="X"}switch(e){case te:return(0,j.sprintf)(/* translators: %s is the type of title. */
(0,j.__)("Generated %s titles","wordpress-seo"),s);case se:return t===Q&&(s="meta"),(0,j.sprintf)(/* translators: %s is the type of description. */
(0,j.__)("Generated %s descriptions","wordpress-seo"),s)}})(),m=(()=>{const{editType:e,previewType:t}=Re();let s="SEO";switch(t){case J:s="social";break;case ee:s="X"}switch(e){case te:return(0,j.sprintf)(/* translators: %s is the type of title. */
(0,j.__)("Apply %s title","wordpress-seo"),s);case se:return t===Q&&(s="meta"),(0,j.sprintf)(/* translators: %s is the type of description. */
(0,j.__)("Apply %s description","wordpress-seo"),s)}})(),y=Ne(),{suggestions:g,fetchSuggestions:h,setSelectedSuggestion:f}=(()=>{const[e,t]=(0,G.useReducer)(Te.reducer,Te.getInitialState()),{editType:s,previewType:r,postType:o,contentType:n}=Re(),l=(0,a.useSelect)((e=>e(Z).selectPromptContent()),[]),{contentLocale:c,focusKeyphrase:d,isWooCommerceActive:u,isGutenberg:m,isElementor:y}=(0,a.useSelect)((e=>({contentLocale:e(X).getContentLocale(),focusKeyphrase:e(X).getFocusKeyphrase(),isWooCommerceActive:e(X).getIsWooCommerceActive(),isGutenberg:e(X).getIsBlockEditor(),isElementor:e(X).getIsElementorEditor()})),[]);let g,h=me.languageProcessing.helpers.processExactMatchRequest(d).keyphrase;h.length>191&&(h=h.slice(0,191)),g=y?"elementor":m?"gutenberg":"classic";const f=((e,t,s,r)=>{const a=e===se?"meta-description":"seo-title";let o=((e,t)=>{if(e)switch(t){case"product":return"product-";case"product_cat":case"product_tag":return"product-taxonomy-"}return""})(t,s);return o&&t||r!==ae||(o="taxonomy-"),`${o}${a}`})(s,u,o,n);return{suggestions:e,fetchSuggestions:(0,G.useCallback)((async(e=!0)=>{t(Te.actions.setLoading());const{status:s,payload:a}=await(async({endpoint:e,data:t})=>{let s;const r=1e3*(0,i.get)(window,"wpseoAiGenerator.requestTimeout",30);try{he&&he.abort(),he=new AbortController,fe=!1,s=setTimeout((()=>{fe=!0,he.abort()}),r);const a=await p()({path:e,method:"POST",data:t,parse:!1,signal:he.signal}),o=await a.json();return{status:ce,payload:o}}catch(e){if(e instanceof DOMException&&"AbortError"===e.name)return fe?{status:de,payload:{message:"timeout",code:408}}:{status:ue};const{message:t,missingLicenses:s,errorIdentifier:r}=await(async e=>{try{const t=e.body.getReader(),{value:s}=await t.read(),r=new TextDecoder("utf-8").decode(s);return console.error(r),JSON.parse(r)}catch(e){return{message:"Unknown"}}})(e);return{status:de,payload:{message:t,code:e.status||500,missingLicenses:s,errorIdentifier:r}}}finally{clearTimeout(s)}})({endpoint:"yoast/v1/ai_generator/get_suggestions/",canAbort:e,data:{type:f,prompt_content:l,focus_keyphrase:h,platform:Ae(r),language:Ee(c).replace("_","-"),editor:g}});switch(s){case ue:break;case de:t(Te.actions.setError(a));break;case ce:t(Te.actions.setSuccess(a))}return s}),[t]),setSelectedSuggestion:(0,G.useCallback)((e=>t(Te.actions.setSelected(e))),[t])}})(),w=(()=>{const{previewType:e}=Re();switch(e){case J:return ps;case ee:return vr;default:return is}})(),{addAppliedSuggestion:E,addUsageCount:b}=(0,a.useDispatch)(Z),{isUsageCountLimitReached:v,isWooProductEntity:S,hasValidPremiumSubscription:x,hasValidWooSubscription:k}=(0,a.useSelect)((e=>{const t=e(Z),s=e(X);return{isUsageCountLimitReached:t.isUsageCountLimitReached(),isPremium:s.getIsPremium(),isWooProductEntity:s.getIsWooProductEntity(),isWooSeoActive:s.getIsWooSeoActive(),hasValidPremiumSubscription:t.selectPremiumSubscription(),hasValidWooSubscription:t.selectWooCommerceSubscription()}}),[]),_=(0,G.useMemo)((()=>g.status===le.loading||!(k||!v||!S)||!(x||!v)),[x,v,g.status,S,k]),C=(0,n.usePrevious)(t),L=g.status===le.success?t:C,R=`calc(${0===L?"50%":L/2+"px"} - 40vh)`,[I,N]=(0,G.useState)(!1),P=(0,G.useCallback)((e=>{N(e.target.offsetHeight!==e.target.scrollHeight)}),[N]),T=Pe(P),A=(()=>{const{editType:e,previewType:t,contentType:s}=Re(),r=(()=>{const{previewType:e}=Re();return(0,G.useMemo)((()=>{switch(e){case Q:return()=>(0,a.select)(X).getSnippetEditorData().title;case J:return(0,a.select)(X).getFacebookTitleOrFallback;case ee:return(0,a.select)(X).getTwitterTitleOrFallback;default:return(0,i.constant)("")}}),[e])})(),o=(0,a.useSelect)((s=>s(Z).selectAppliedSuggestionFor({editType:e,previewType:t})),[e,t]);return(0,G.useMemo)((()=>{let t=r();return e===se?t:(o&&(t=t.replace(o,ne[s])),((e,t)=>e.includes(ne[t])?e:ne[t])(t,s))}),[e,r])})(),M=(()=>{const e=(()=>{const{previewType:e}=Re();return(0,G.useMemo)((()=>{switch(e){case Q:return()=>(0,a.select)(X).getSnippetEditorData().description;case J:return(0,a.select)(X).getFacebookDescriptionOrFallback;case ee:return(0,a.select)(X).getTwitterDescriptionOrFallback;default:return(0,i.constant)("")}}),[e])})();return(0,G.useMemo)(e,[e])})(),$=ke(),O=(0,G.useMemo)((()=>l===te?{[oe[d]]:g.selected}:{}),[l,d,g.selected]),F=(0,G.useMemo)((()=>$(A,{overrides:O,contentType:d})),[$,A,l,d,g.selected]),U=(0,G.useMemo)((()=>$(A,{overrides:{...O,sep:"",sitename:""},contentType:d})),[$,A,l,d,g.selected]),q=(0,G.useMemo)((()=>l===se?g.selected:$(M,{editType:se})),[$,M,l,g.selected]),W=(0,G.useCallback)((e=>$(A,{overrides:{[oe[d]]:e},key:"badge",applyPluggable:!1,contentType:d})),[$,A,d]),{currentPage:B,setCurrentPage:z,isOnLastPage:H,totalPages:D,getItemsOnCurrentPage:Y}=(({totalItems:e=0,perPage:t=5})=>{const[s,r]=(0,G.useState)(1),a=(0,G.useMemo)((()=>Math.ceil(e/t)),[e,t]),o=(0,G.useMemo)((()=>s*t),[s,t]),n=(0,G.useMemo)((()=>o-t),[o,t]),l=(0,G.useMemo)((()=>1===s),[s]),c=(0,G.useMemo)((()=>s===a),[s,a]),d=(0,G.useCallback)((()=>{s>1&&r(s-1)}),[s,r]),u=(0,G.useCallback)((()=>{s<a&&r(s+1)}),[s,r,a]),m=(0,G.useCallback)((e=>(0,i.slice)(e,n,o)),[n,o]);return{currentPage:s,setCurrentPage:r,totalPages:a,isOnFirstPage:l,isOnLastPage:c,previousPage:d,nextPage:u,firstOnPage:n,lastOnPage:o,getItemsOnCurrentPage:m}})({totalItems:g.status===le.loading||g.status===le.error?g.entities.length+5:g.entities.length,perPage:5}),V=(0,G.useMemo)((()=>(0,i.map)(Y(g.entities),(t=>{let s=t;return l===te&&(s=W(t),s=s.replace(Jt,((e,t,s,r,a,o,{start:n,wrap:i,end:l})=>{const c=i.trim();return 0===c.length?`${n}${i}${l}`:`${n}<span>${c}</span>${l}`})),s=ye(s,{badge:(0,e.createElement)(n.Badge,{className:"yst-me-2 last:yst-me-0",variant:"plain"}," "),span:(0,e.createElement)("span",{className:"yst-flex yst-items-center yst-me-2 last:yst-me-0"})})),{value:t,label:s}}))),[g.entities,Y,l,W]),K=(0,G.useMemo)((()=>g.status!==le.error||g.status===le.error&&!H),[g.status,H]),re=(0,G.useMemo)((()=>g.status===le.loading&&H),[g.status,H]),ie=(0,G.useMemo)((()=>g.status===le.error&&H),[g.status,H]),pe=(0,G.useCallback)((()=>{_||(z(g.status===le.error?D:D+1),h().then((e=>{e===ce&&b()})))}),[h,g.status,D,z,f,v]),ge=(0,G.useCallback)((()=>r("")),[r]),we=(()=>{const{editType:e}=Re();switch(e){case te:return(()=>{const{previewType:e}=Re(),{updateData:t,setFacebookPreviewTitle:s,setTwitterPreviewTitle:r}=(0,a.useDispatch)(X);return(0,G.useMemo)((()=>{switch(e){case Q:return e=>t({title:e});case J:return s;case ee:return r;default:return i.noop}}),[e,t,s,r])})();case se:return(()=>{const{previewType:e}=Re(),{updateData:t,setFacebookPreviewDescription:s,setTwitterPreviewDescription:r}=(0,a.useDispatch)(X);return(0,G.useMemo)((()=>{switch(e){case Q:return e=>t({description:e});case J:return s;case ee:return r;default:return i.noop}}),[e,t,s,r])})();default:return i.noop}})(),be=(0,G.useCallback)((()=>{const e=l===te?A.replace(new RegExp(ne[d]+"( Archives)?"),g.selected):g.selected;we(e),E({editType:l,previewType:c,suggestion:g.selected}),o()}),[we,l,c,g.selected,A,o,E]);return((e,t=[])=>{const s=(0,G.useRef)(!1);(0,G.useEffect)((()=>{s.current||(s.current=!0,e().finally((()=>{s.current=!1})))}),[e,t])})((()=>""===s?h().then((e=>{r(e),e===ce&&b()})):Promise.resolve()),[s,b,h]),s===de||g.status===le.error&&402===g.error.code?(0,e.createElement)("div",{className:"yst-flex yst-flex-col yst-space-y-6 yst-mt-6"},(0,e.createElement)(pr,{errorCode:g.error.code,errorIdentifier:g.error.errorIdentifier,invalidSubscriptions:g.error.missingLicenses,showActions:!0,onRetry:ge,errorMessage:g.error.message})):(0,e.createElement)(G.Fragment,null,(0,e.createElement)(n.Modal.Container.Content,{ref:T,className:"yst-flex yst-flex-col yst-py-6 yst-space-y-2"},(0,e.createElement)(w,{title:F,description:q,status:g.status,titleForLength:U,showPreviewSkeleton:""===s,showLengthProgress:!re}),K&&(re?(0,e.createElement)(wr,{idSuffix:y,suggestionClassNames:l===te?[["yst-h-3 yst-w-9/12"],["yst-h-3 yst-w-7/12"],["yst-h-3 yst-w-10/12"],["yst-h-3 yst-w-11/12"],["yst-h-3 yst-w-8/12"]]:void 0}):(0,e.createElement)(G.Fragment,null,(0,e.createElement)("div",{className:"yst-flex yst-space-y-4"},(0,e.createElement)(n.Label,{as:"span",className:"yst-flex-grow yst-cursor-default yst-mt-auto"},u),(0,e.createElement)(n.Button,{variant:"secondary",size:"small",onClick:g.status===le.loading?i.noop:pe,isLoading:g.status===le.loading,disabled:_},g.status!==le.loading&&(0,e.createElement)(Xt,{className:"yst--ms-1 yst-me-2 yst-h-4 yst-w-4 yst-text-gray-400"}),(0,j.__)("Generate 5 more","wordpress-seo"))),(0,e.createElement)(hr,{idSuffix:y,suggestions:V,selected:g.selected,onChange:f}),(0,e.createElement)(es,{current:B,total:D,onNavigate:z,disabled:g.status===le.loading||ie}))),g.status===le.error&&H&&(0,e.createElement)(G.Fragment,null,(0,e.createElement)("div",{className:"yst-mt-8"}),(0,e.createElement)(pr,{errorCode:g.error.code,errorIdentifier:g.error.errorIdentifier,invalidSubscriptions:g.error.missingLicenses,errorMessage:g.error.message}),(0,e.createElement)(es,{current:B,total:D,onNavigate:z,disabled:g.status===le.loading}))),(0,e.createElement)(n.Modal.Container.Footer,null,I&&(0,e.createElement)("div",{className:"yst-absolute yst-inset-x-0 yst--mt-10 yst-me-[calc(2.5rem-1px)] yst-h-10 yst-pointer-events-none yst-bg-gradient-to-t yst-from-slate-50"}),(0,e.createElement)("hr",{className:"yst-mb-6 yst--mx-6"}),(0,e.createElement)("div",{className:"sm:yst-flex sm:yst-justify-end sm:yst-space-x-2 sm:rtl:yst-space-x-reverse"},(0,e.createElement)("div",{className:"yst-hidden sm:yst-inline"},(0,e.createElement)(n.Button,{variant:"secondary",onClick:o},(0,j.__)("Close","wordpress-seo"))),(0,e.createElement)("div",{className:"yst-block sm:yst-inline"},(0,e.createElement)(n.Button,{className:"yst-w-full sm:yst-w-auto",variant:"primary",onClick:be,disabled:""===g.selected||g.status===le.loading||ie},(0,e.createElement)(Qt,{className:"yst--ms-1 yst-me-1 yst-h-4 yst-w-4 yst-text-white"}),m)),(0,e.createElement)("div",{className:"yst-mt-3 sm:yst-hidden"},(0,e.createElement)(n.Button,{variant:"secondary",onClick:o,className:"yst-w-full sm:yst-w-auto"},(0,j.__)("Close","wordpress-seo"))))),(0,e.createElement)(n.Notifications,{className:"yst-mx-[calc(50%-50vw)] yst-transition-all",style:{marginTop:R},position:"bottom-left"},g.status!==le.loading&&(0,e.createElement)(Rr,{className:"yst-mx-[calc(50%-50vw)] yst-transition-all"}),(g.status===le.success||g.status===le.loading)&&(0,e.createElement)(br,null)))};ts.propTypes={height:K().number.isRequired};const ss=({onActivateFreeSparks:t})=>{const{premiumUpsellLink:s,wooUpsellLink:r,isWooCommerceActive:o,isProductPost:i,learnMoreLink:l,imageLink:c,wistiaEmbedPermissionValue:d,wistiaEmbedPermissionStatus:u,isUsageCountLimitReached:m,activateFreeSparksEndpoint:p}=(0,a.useSelect)((e=>{const t=e(Z),s=e(X);return{premiumUpsellLink:s.selectLink("https://yoa.st/ai-generator-upsell"),wooUpsellLink:s.selectLink("https://yoa.st/ai-generator-upsell-woo-seo"),isWooCommerceActive:s.getIsWooCommerceActive(),isProductPost:s.getIsProduct(),learnMoreLink:s.selectLink("https://yoa.st/ai-generator-learn-more"),imageLink:s.selectImageLink("ai-generator-preview.png"),wistiaEmbedPermissionValue:s.selectWistiaEmbedPermissionValue(),wistiaEmbedPermissionStatus:s.selectWistiaEmbedPermissionStatus(),isUsageCountLimitReached:t.isUsageCountLimitReached(),activateFreeSparksEndpoint:t.selectFreeSparksActiveEndpoint()}}),[]),{onClose:y,initialFocus:g}=(0,n.useModalContext)(),{title:h,upsellLabel:f,upsellLink:w,ctbId:E,newToText:b}=(e=>{const{isWooProductEntity:t,isProductPost:s,hasValidWooSubscription:r}=(0,a.useSelect)((e=>{const t=e(X),s=e(Z);return{isWooProductEntity:t.getIsWooProductEntity(),isProductPost:t.getIsProduct(),hasValidWooSubscription:s.selectWooCommerceSubscription()}}),[]);return(0,G.useMemo)((()=>{const a={upsellLink:e.premium,upsellLabel:(0,j.sprintf)(/* translators: %1$s expands to Yoast SEO Premium. */
(0,j.__)("Unlock with %1$s","wordpress-seo"),"Yoast SEO Premium"),newToText:"Yoast SEO Premium",ctbId:"f6a84663-465f-4cb5-8ba5-f7a6d72224b2",title:(0,j.__)("Use AI to generate your titles & descriptions!","wordpress-seo")};return t&&(s&&(a.title=(0,j.__)("Generate product titles & descriptions with AI!","wordpress-seo")),r||(a.newToText="Yoast WooCommerce SEO",a.upsellLabel=(0,j.sprintf)(/* translators: %1$s expands to Yoast WooCommerce SEO. */
(0,j.__)("Unlock with %1$s","wordpress-seo"),"Yoast WooCommerce SEO"),a.upsellLink=e.woo,a.ctbId="5b32250e-e6f0-44ae-ad74-3cefc8e427f9")),a}),[t,s,e.premium,e.woo])})({premium:s,woo:r}),v=(0,G.useMemo)((()=>o&&i),[o,i]),S=(0,G.useMemo)((()=>({src:c,width:"432",height:"244"})),[c]),{setWistiaEmbedPermission:x}=(0,a.useDispatch)(X),{activateFreeSparks:k}=(0,a.useDispatch)(Z),_=(0,G.useMemo)((()=>({value:d,status:u,set:x})),[d,u,x]),C=(0,G.useCallback)((()=>{k({endpoint:p}),t()}),[k,p,y,t]),L={a:(0,e.createElement)(ut,{href:l,className:"yst-inline-flex yst-items-center yst-gap-1 yst-no-underline yst-font-medium",variant:"primary"}),ArrowNarrowRightIcon:(0,e.createElement)(Ye,{className:"yst-w-4 yst-h-4 rtl:yst-rotate-180"})};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)(Mt,{videoId:"vmrahpfjxp",thumbnail:S,wistiaEmbedPermission:_}),(0,e.createElement)(n.Badge,{className:"yst-absolute yst--top-2 yst-end-4",variant:"info"},"Beta")),(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"}),b))),(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"},h),(0,e.createElement)("div",{className:"yst-mt-2 yst-text-slate-600 yst-text-sm"},ye(v?(0,j.sprintf)(/* translators: %1$s and %2$s are anchor tags; %3$s is the arrow icon. */
(0,j.__)("Let AI do some of the thinking for you and help you save time. Get high-quality suggestions for product titles and meta descriptions to make your content rank high and look good on social media. %1$sLearn more%2$s%3$s","wordpress-seo"),"<a>","<ArrowNarrowRightIcon />","</a>"):(0,j.sprintf)(/* translators: %1$s and %2$s are anchor tags; %3$s is the arrow icon. */
(0,j.__)("Let AI do some of the thinking for you and help you save time. Get high-quality suggestions for titles and meta descriptions to make your content rank high and look good on social media. %1$sLearn more%2$s%3$s","wordpress-seo"),"<a>","<ArrowNarrowRightIcon />","</a>"),L))),m&&(0,e.createElement)(n.Alert,{className:"yst-my-4"},(0,j.sprintf)(/* translators: %s is for Yoast SEO Premium. */
(0,j.__)("Oh no! Its seems like you're out of free Sparks. Keep the momentum going, unlock unlimited sparks with %s!","wordpress-seo"),"Yoast SEO Premium")),(0,e.createElement)("div",{className:Ot()("yst-w-full yst-flex yst-flex-col",m?"yst-mt-0":"yst-mt-6")},(0,e.createElement)(n.Button,{as:"a",className:"yst-grow",size:"extra-large",variant:"upsell",href:w,target:"_blank",ref:g,"data-action":"load-nfd-ctb","data-ctb-id":E},(0,e.createElement)(je,{className:"yst--ms-1 yst-me-2 yst-h-5 yst-w-5"}),f,(0,e.createElement)("span",{className:"yst-sr-only"},/* translators: Hidden accessibility text. */
(0,j.__)("(Opens in a new browser tab)","wordpress-seo"))),!m&&(0,e.createElement)(Y.GradientButton,{onClick:C,className:"yst-mt-2 yst-w-full yst-text-base yst-text-slate-800 yst-font-medium yst-h-11 hover:yst-bg-gradient-to-l hover:yst-from-indigo-100 hover:yst-to-primary-100"},(0,j.__)("Try for free","wordpress-seo"))),(0,e.createElement)(n.Button,{as:"a",className:"yst-mt-4",variant:"tertiary",onClick:y},(0,j.__)("Close","wordpress-seo"))))},rs=({isOpen:t,onClose:s,closeButtonScreenReaderText:r,panelRef:a,title:o,aiModalHelperLink:i,children:l})=>{const c=(0,n.useSvgAria)();return(0,e.createElement)(n.Modal,{className:"yst-ai-modal",isOpen:t,onClose:s},(0,e.createElement)(n.Modal.Panel,{ref:a,className:"yst-max-w-3xl yst-relative",closeButtonScreenReaderText:r},(0,e.createElement)(n.Modal.Container,null,(0,e.createElement)(n.Modal.Container.Header,null,(0,e.createElement)("div",{className:"yst-flex yst-items-center"},(0,e.createElement)("span",{className:"yst-logo-icon yst-h-5 yst-w-5"}),(0,e.createElement)(n.Modal.Title,{className:"yst-ms-3 yst-me-1.5",as:"h1",size:"2"},o),(0,e.createElement)(n.Link,{id:"ai-modal-learn-more",href:i,variant:"primary",className:"yst-no-underline yst-me-2",target:"_blank",rel:"noopener"
/* translators: Hidden accessibility text. */,"aria-label":(0,j.__)("Learn more about AI (Opens in a new browser tab)","wordpress-seo")},(0,e.createElement)(D,{...c,className:"yst-w-4 yst-h-4 yst-text-slate-500 yst-shrink-0"})),(0,e.createElement)(n.Badge,{variant:"info"},(0,j.__)("Beta","wordpress-seo"))),(0,e.createElement)("hr",{className:"yst-mt-6 yst--mx-6"})),l)))},as=({isOpen:t,onClose:s,closeButtonScreenReaderText:r,children:a})=>(0,e.createElement)(n.Modal,{className:"yst-introduction-modal",isOpen:t,onClose:s},(0,e.createElement)(n.Modal.Panel,{className:"yst-max-w-lg yst-p-0 yst-rounded-3xl",closeButtonScreenReaderText:r},a)),os={inactive:"inactive",askConsent:"askConsent",upsell:"upsell",error:"error",generate:"generate"},ns=({onUseAi:t})=>{const[s,r]=(0,G.useState)(os.inactive),{editType:o}=Re(),i=Ne(),l=(()=>{const{editType:e,previewType:t}=Re();switch(t){case J:return e===se?(0,j.__)("AI social description generator","wordpress-seo"):(0,j.__)("AI social title generator","wordpress-seo");case ee:return e===se?(0,j.__)("AI X description generator","wordpress-seo"):(0,j.__)("AI X title generator","wordpress-seo");default:return e===se?(0,j.__)("AI description generator","wordpress-seo"):(0,j.__)("AI title generator","wordpress-seo")}})(),{hasConsent:c,promptContentInitialized:d,currentSubscriptions:u,usageCountStatus:m,usageCount:p,usageCountLimit:y,usageCountEndpoint:g,hasValidPremiumSubscription:h,hasValidWooSubscription:f,focusKeyphrase:w,isPremium:E,isSeoAnalysisActive:b,aiModalHelperLink:v,isWooProductEntity:S,isFreeSparksActive:x,isWooSeoActive:k}=(0,a.useSelect)((e=>{const t=e(Z),s=e(X);return{hasConsent:t.selectHasAiGeneratorConsent(),promptContentInitialized:t.selectPromptContentInitialized(),currentSubscriptions:t.selectProductSubscriptions(),usageCountStatus:t.selectUsageCountStatus(),usageCount:t.selectUsageCount(),usageCountLimit:t.selectUsageCountLimit(),usageCountEndpoint:t.selectUsageCountEndpoint(),hasValidPremiumSubscription:t.selectPremiumSubscription(),hasValidWooSubscription:t.selectWooCommerceSubscription(),focusKeyphrase:s.getFocusKeyphrase(),isPremium:s.getIsPremium(),isWooSeoActive:s.getIsWooSeoActive(),isSeoAnalysisActive:s.getPreference("isKeywordAnalysisActive",!0),aiModalHelperLink:s.selectLink("https://yoa.st/ai-generator-help-button-modal"),isWooProductEntity:s.getIsWooProductEntity(),isFreeSparksActive:e(Z).selectIsFreeSparksActive()}}),[]),{fetchUsageCount:_}=(0,a.useDispatch)(Z),{closeEditorModal:C}=(0,a.useDispatch)(X),L=(0,j.__)("Close modal","wordpress-seo"),[R,I]=(0,G.useState)(!1),[N,P]=(0,G.useState)(0),T=(0,G.useCallback)((e=>P(e.borderBoxSize[0].blockSize)),[P]),A=Pe(T),$={onClose:(0,G.useCallback)((()=>{r(os.inactive)}),[]),closeButtonScreenReaderText:L},O=(0,G.useCallback)((()=>!Se(w)),[w]),F=(0,G.useCallback)((()=>{C(),setTimeout((()=>(e=>{const t=`focus-keyword-input-${"modal"===e?"sidebar":e}`;if("metabox"===e){const e=document.getElementById("wpseo-meta-tab-content");e&&e.click()}const s=document.getElementById(t);s&&s.focus()})(i)),0)}),[C,i]),U=(0,G.useCallback)((()=>S?f&&h:h),[h,f,S]),q=(0,G.useCallback)((async()=>{if(t(),!b)return void r(os.error);if(!O())return r(os.inactive),void F();const e=U();if(!e&&E&&k&&S)return void r(os.error);if(!e&&E&&!S)return void r(os.error);if(!c&&(x||e))return void r(os.askConsent);I(!0);const{type:s,payload:a}=await _({endpoint:g,isWooProductEntity:S}),o=429===(null==a?void 0:a.errorCode)&&!(null!=a&&a.errorIdentifier)&&0===(null==a?void 0:a.missingLicenses.length),n=429===(null==a?void 0:a.errorCode)&&"USAGE_LIMIT_REACHED"===(null==a?void 0:a.errorIdentifier)||a.count>=a.limit;I(!1),o?r(os.error):403!==(null==a?void 0:a.errorCode)||!x&&!e?s!==Ue||429===(null==a?void 0:a.errorCode)||403===(null==a?void 0:a.errorCode)?s===Ue&&429===(null==a?void 0:a.errorCode)&&e?r(os.error):!e&&!x||!e&&n?r(os.upsell):(e&&c&&r(os.generate),!e&&x&&!n&&c&&r(os.generate)):r(os.error):r(os.askConsent)}),[t,E,x,c,b,O,F,g,_,k,S,R]),W=(0,G.useCallback)((async()=>{const{type:e,payload:t}=await _({endpoint:g,isWooProductEntity:S}),s=429===(null==t?void 0:t.errorCode)||t.count>=t.limit,a=U();r(!s||a?e!==Ue?os.generate:os.error:os.upsell)}),[r,g,_,U,S]),B=(0,G.useCallback)((()=>{r(c?os.generate:os.askConsent)}),[r,c]);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("button",{type:"button",id:`yst-replacevar__use-ai-button__${o}__${i}`,className:"yst-replacevar__use-ai-button",onClick:q,disabled:m===M||!d},R&&m===M&&(0,e.createElement)(n.Spinner,{className:"yst-me-2"}),(0,j.__)("Use AI","wordpress-seo")),(0,e.createElement)(as,{...$,isOpen:[os.askConsent,os.upsell].includes(s)},s===os.askConsent&&(0,e.createElement)(Zt,{onStartGenerating:W}),s===os.upsell&&(0,e.createElement)(ss,{onActivateFreeSparks:B})),(0,e.createElement)(rs,{...$,isOpen:[os.error,os.generate].includes(s),aiModalHelperLink:v,panelRef:A,title:l},s===os.error&&(0,e.createElement)(n.Modal.Container.Content,{className:"yst-pt-6"},(0,e.createElement)(Kt,{currentSubscriptions:u,isSeoAnalysisActive:b})),s===os.generate&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Y.UsageCounter,{limit:y,requests:p,isSkeleton:!1,className:"yst-absolute yst-top-[-11px] yst-end-12 sm:yst-end-16",mentionBetaInTooltip:E,mentionResetInTooltip:E}),(0,e.createElement)(ts,{height:N}))))};ns.propTypes={onUseAi:K().func.isRequired};const is=({title:t,description:s,status:r,titleForLength:o,showPreviewSkeleton:i,showLengthProgress:l})=>{const c=(0,a.useSelect)((e=>e(X).getSnippetEditorMode()),[]),[d,u]=(0,G.useState)(c),{editType:m}=Re(),p=Ne(),y=(({editType:e,title:t,description:s})=>{const r=(0,a.useSelect)((e=>e(X).getDateFromSettings()),[]),o=(0,a.useSelect)((e=>e(X).getContentLocale()),[]),n=(0,a.useSelect)((e=>e(X).isCornerstoneContent()),[]),i=(0,a.useSelect)((e=>e(X).getIsTerm()),[]);return(0,G.useMemo)((()=>e===se?(0,Me.getDescriptionProgress)(s,r,n,i,o):(0,Me.getTitleProgress)(t)),[e,t,s,r,n,i,o])})({editType:m,title:o,description:s});return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"yst-mb-2 lg:yst-flex"},(0,e.createElement)(n.Label,{as:"span",className:"yst-flex-grow yst-cursor-default"},(0,j.__)("Google preview","wordpress-seo")),(0,e.createElement)(ms,{mode:d,idSuffix:p,onChange:u,disabled:r===le.loading})),i?(0,e.createElement)(ds,null):(0,e.createElement)(cs,{mode:d,title:t,description:s}),(0,e.createElement)("div",{className:"yst-pt-4"},(0,e.createElement)(n.Label,{as:"span",className:"yst-flex-grow yst-cursor-default"},m===te?(0,j.__)("SEO title width","wordpress-seo"):(0,j.__)("Meta description length","wordpress-seo")),(0,e.createElement)(us,{className:"yst-mt-2",progress:l?y.actual:0,min:0,max:y.max,score:y.score})))};is.propTypes={title:K().string.isRequired,description:K().string.isRequired,status:K().oneOf(Object.keys(le)).isRequired,titleForLength:K().string.isRequired,showPreviewSkeleton:K().bool.isRequired,showLengthProgress:K().bool.isRequired};const ls=/mobi/i,cs=({mode:t,title:s,description:r})=>{var o,n;const l=(0,a.useSelect)((e=>e(X).getBaseUrlFromSettings()),[]),c=(0,a.useSelect)((e=>e(X).getSnippetEditorData().slug||""),[]),d=(0,a.useSelect)((e=>e(X).getDateFromSettings()),[]),u=(0,a.useSelect)((e=>e(X).getFocusKeyphrase()),[]),m=(0,a.useSelect)((e=>e(X).getSnippetEditorPreviewImageUrl()),[]),p=(0,a.useSelect)((e=>e(X).getSiteIconUrlFromSettings()),[]),y=(0,a.useSelect)((e=>e(X).getShoppingData()),[]),g=(0,a.useSelect)((e=>e(X).getSnippetEditorWordsToHighlight()),[]),h=(0,a.useSelect)((e=>e(X).getSiteName()),[]),f=(0,a.useSelect)((e=>e(X).getContentLocale()),[]),w=(0,G.useMemo)((()=>l+c),[l,c]),E=(0,G.useMemo)((()=>{var e,t;return ls.test(null===(e=window)||void 0===e||null===(t=e.navigator)||void 0===t?void 0:t.userAgent)}),[null===(o=window)||void 0===o||null===(n=o.navigator)||void 0===n?void 0:n.userAgent]);return(0,e.createElement)("div",{className:`yst-bg-slate-200 yst--mx-6 ${t}${E?" yst-user-agent__mobile":""}`},(0,e.createElement)(Me.SnippetPreview,{title:s,description:r,mode:t,url:w,keyword:u,date:d,faviconSrc:p,mobileImageSrc:m,wordsToHighlight:g,siteName:h,locale:f,shoppingData:y,onMouseUp:i.noop}))};cs.propTypes={mode:K().oneOf(Object.keys(ie)).isRequired,title:K().string.isRequired,description:K().string.isRequired};const ds=()=>(0,e.createElement)("div",{className:"yst-max-w-[400px] yst-py-4 yst-px-3 yst-border yst-rounded-lg yst-w-full yst-mx-auto"},(0,e.createElement)("div",{className:"yst-flex yst-gap-x-3"},(0,e.createElement)(n.SkeletonLoader,{className:"yst-flex-shrink-0 yst-h-7 yst-w-7 yst-rounded-full"}),(0,e.createElement)("div",{className:"yst-flex yst-flex-col yst-w-full yst-gap-y-1"},(0,e.createElement)(n.SkeletonLoader,{className:"yst-h-3 yst-w-1/3"}),(0,e.createElement)(n.SkeletonLoader,{className:"yst-h-2.5 yst-w-10/12"}))),(0,e.createElement)(n.SkeletonLoader,{className:"yst-h-4 yst-w-full yst-mt-6 yst-mb-4"}),(0,e.createElement)(n.SkeletonLoader,{className:"yst-h-3 yst-w-full"}),(0,e.createElement)(n.SkeletonLoader,{className:"yst-h-3 yst-w-10/12 yst-mt-2.5"})),us=({className:t="",progress:s,max:r,score:a})=>{const o=(0,G.useMemo)((()=>(e=>e>=7?"yst-score-good":e>=5?"yst-score-ok":"yst-score-bad")(a)),[a]);return(0,e.createElement)(n.ProgressBar,{className:Ot()("yst-length-progress-bar",o,t),progress:s,min:0,max:r})};us.propTypes={className:K().string,progress:K().number.isRequired,max:K().number.isRequired,score:K().number.isRequired};const ms=({idSuffix:t,mode:s,onChange:r,disabled:a})=>{const o=(0,G.useCallback)((({target:e})=>e.checked&&r(e.value)),[r]);return(0,e.createElement)(n.RadioGroup,{id:`yst-ai-mode__${t}`,className:"yst-ai-mode yst-pt-2 lg:yst-pt-0",disabled:a},(0,e.createElement)(n.RadioGroup.Radio,{id:`yst-ai-mode__mobile__${t}`,name:`yst-ai-mode__${t}`,label:(0,j.__)("Mobile result","wordpress-seo"),value:ie.mobile,checked:s===ie.mobile,onChange:o,disabled:a}),(0,e.createElement)(n.RadioGroup.Radio,{id:`yst-ai-mode__desktop__${t}`,name:`yst-ai-mode__${t}`,label:(0,j.__)("Desktop result","wordpress-seo"),value:ie.desktop,checked:s===ie.desktop,onChange:o,disabled:a}))};ms.propTypes={idSuffix:K().string.isRequired,mode:K().oneOf(Object.keys(ie)).isRequired,onChange:K().func.isRequired,disabled:K().bool.isRequired};const ps=({title:t,description:s,showPreviewSkeleton:r})=>(0,e.createElement)("div",null,(0,e.createElement)("div",{className:"yst-flex yst-mb-6"},(0,e.createElement)(n.Label,{as:"span",className:"yst-flex-grow yst-cursor-default"},(0,j.__)("Social preview","wordpress-seo"))),r?(0,e.createElement)(ur,null):(0,e.createElement)(dr,{title:t,description:s}));ps.propTypes={title:K().string.isRequired,description:K().string.isRequired,showPreviewSkeleton:K().bool.isRequired};const ys=window.yoast.styledComponents;var gs=s.n(ys);const hs=gs().p`
	color: #606770;
	flex-shrink: 0;
	font-size: 12px;
	line-height: 16px;
	overflow: hidden;
	padding: 0;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
	margin: 0;
	position: ${e=>"landscape"===e.mode?"relative":"static"};
`,fs=t=>{const{siteUrl:s}=t;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{className:"screen-reader-text"},s),(0,e.createElement)(hs,{"aria-hidden":"true"},(0,e.createElement)("span",null,s)))};fs.propTypes={siteUrl:K().string.isRequired};const ws=fs,Es=window.yoast.socialMetadataForms,bs=window.yoast.styleGuide,vs=gs().img`
	&& {
		max-width: ${e=>e.width}px;
		height: ${e=>e.height}px;
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		max-width: none;
	}
`,Ss=gs().img`
	&& {
		height: 100%;
		position: absolute;
		width: 100%;
		object-fit: cover;
	}
`,xs=gs().div`
	padding-bottom: ${e=>e.aspectRatio}%;
`,ks=({imageProps:t,width:s,height:r,imageMode:a="landscape"})=>"landscape"===a?(0,e.createElement)(xs,{aspectRatio:t.aspectRatio},(0,e.createElement)(Ss,{src:t.src,alt:t.alt})):(0,e.createElement)(vs,{src:t.src,alt:t.alt,width:s,height:r,imageProperties:t});function _s(e,t,s){return"landscape"===s?{widthRatio:t.width/e.landscapeWidth,heightRatio:t.height/e.landscapeHeight}:"portrait"===s?{widthRatio:t.width/e.portraitWidth,heightRatio:t.height/e.portraitHeight}:{widthRatio:t.width/e.squareWidth,heightRatio:t.height/e.squareHeight}}function Cs(e,t){return t.widthRatio<=t.heightRatio?{width:Math.round(e.width/t.widthRatio),height:Math.round(e.height/t.widthRatio)}:{width:Math.round(e.width/t.heightRatio),height:Math.round(e.height/t.heightRatio)}}async function Ls(e,t,s=!1){const r=await function(e){return new Promise(((t,s)=>{const r=new Image;r.onload=()=>{t({width:r.width,height:r.height})},r.onerror=s,r.src=e}))}(e);let a=s?"landscape":"square";"Facebook"===t&&(a=(0,Es.determineFacebookImageMode)(r));const o=function(e){return"Twitter"===e?Es.TWITTER_IMAGE_SIZES:Es.FACEBOOK_IMAGE_SIZES}(t),n=function(e,t,s){return"square"===s&&t.width===t.height?{width:e.squareWidth,height:e.squareHeight}:Cs(t,_s(e,t,s))}(o,r,a);return{mode:a,height:n.height,width:n.width}}async function Rs(e,t,s=!1){try{return{imageProperties:await Ls(e,t,s),status:"loaded"}}catch(e){return{imageProperties:null,status:"errored"}}}ks.propTypes={imageProps:K().shape({src:K().string.isRequired,alt:K().string.isRequired,aspectRatio:K().number.isRequired}).isRequired,width:K().number.isRequired,height:K().number.isRequired,imageMode:K().string};const Is=gs().div`
	position: relative;
	${e=>"landscape"===e.mode?`max-width: ${e.dimensions.width}`:`min-width: ${e.dimensions.width}; height: ${e.dimensions.height}`};
	overflow: hidden;
	background-color: ${bs.colors.$color_white};
`,Ns=gs().div`
	box-sizing: border-box;
	max-width: ${Es.FACEBOOK_IMAGE_SIZES.landscapeWidth}px;
	height: ${Es.FACEBOOK_IMAGE_SIZES.landscapeHeight}px;
	background-color: ${bs.colors.$color_grey};
	border-style: dashed;
	border-width: 1px;
	// We're not using standard colors to increase contrast for accessibility.
	color: #006DAC;
	// We're not using standard colors to increase contrast for accessibility.
	background-color: #f1f1f1;
	display: flex;
	justify-content: center;
	align-items: center;
	text-decoration: underline;
	font-size: 14px;
	cursor: pointer;
`;class Ps extends e.Component{constructor(e){super(e),this.state={imageProperties:null,status:"loading"},this.socialMedium="Facebook",this.handleFacebookImage=this.handleFacebookImage.bind(this),this.setState=this.setState.bind(this)}async handleFacebookImage(){try{const e=await Rs(this.props.src,this.socialMedium);this.setState(e),this.props.onImageLoaded(e.imageProperties.mode||"landscape")}catch(e){this.setState(e),this.props.onImageLoaded("landscape")}}componentDidUpdate(e){e.src!==this.props.src&&this.handleFacebookImage()}componentDidMount(){this.handleFacebookImage()}retrieveContainerDimensions(e){switch(e){case"square":return{height:Es.FACEBOOK_IMAGE_SIZES.squareHeight+"px",width:Es.FACEBOOK_IMAGE_SIZES.squareWidth+"px"};case"portrait":return{height:Es.FACEBOOK_IMAGE_SIZES.portraitHeight+"px",width:Es.FACEBOOK_IMAGE_SIZES.portraitWidth+"px"};case"landscape":return{height:Es.FACEBOOK_IMAGE_SIZES.landscapeHeight+"px",width:Es.FACEBOOK_IMAGE_SIZES.landscapeWidth+"px"}}}render(){const{imageProperties:t,status:s}=this.state;if("loading"===s||""===this.props.src||"errored"===s)return(0,e.createElement)(Ns,{onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},(0,j.__)("Select image","wordpress-seo"));const r=this.retrieveContainerDimensions(t.mode);return(0,e.createElement)(Is,{mode:t.mode,dimensions:r,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,onClick:this.props.onImageClick},(0,e.createElement)(ks,{imageProps:{src:this.props.src,alt:this.props.alt,aspectRatio:Es.FACEBOOK_IMAGE_SIZES.aspectRatio},width:t.width,height:t.height,imageMode:t.mode}))}}Ps.propTypes={src:K().string,alt:K().string,onImageLoaded:K().func,onImageClick:K().func,onMouseEnter:K().func,onMouseLeave:K().func},Ps.defaultProps={src:"",alt:"",onImageLoaded:i.noop,onImageClick:i.noop,onMouseEnter:i.noop,onMouseLeave:i.noop};const Ts=Ps,As=gs().span`
	line-height: ${20}px;
	min-height : ${20}px;
	color: #1d2129;
	font-weight: 600;
	overflow: hidden;
	font-size: 16px;
	margin: 3px 0 0;
	letter-spacing: normal;
	white-space: normal;
	flex-shrink: 0;
	cursor: pointer;
	display: -webkit-box;
	-webkit-line-clamp: ${e=>e.lineCount};
	-webkit-box-orient: vertical;
	overflow: hidden;
`,Ms=gs().p`
	line-height: ${16}px;
	min-height : ${16}px;
	color: #606770;
	font-size: 14px;
	padding: 0;
	text-overflow: ellipsis;
	margin: 3px 0 0 0;
	display: -webkit-box;
	cursor: pointer;
	-webkit-line-clamp: ${e=>e.lineCount};
	-webkit-box-orient: vertical;
	overflow: hidden;

	@media all and ( max-width: ${e=>e.maxWidth} ) {
		display: none;
	}
`,$s=e=>{switch(e){case"landscape":return"527px";case"square":case"portrait":return"369px";default:return"476px"}},Os=gs().div`
	box-sizing: border-box;
	display: flex;
	flex-direction: ${e=>"landscape"===e.mode?"column":"row"};
	background-color: #f2f3f5;
	max-width: 527px;
`,Fs=gs().div`
	box-sizing: border-box;
	background-color: #f2f3f5;
	margin: 0;
	padding: 10px 12px;
	position: relative;
	border-bottom: ${e=>"landscape"===e.mode?"":"1px solid #dddfe2"};
	border-top: ${e=>"landscape"===e.mode?"":"1px solid #dddfe2"};
	border-right: ${e=>"landscape"===e.mode?"":"1px solid #dddfe2"};
	border: ${e=>"landscape"===e.mode?"1px solid #dddfe2":""};
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	justify-content: ${e=>"landscape"===e.mode?"flex-start":"center"};
	font-size: 12px;
	overflow: hidden;
`;class Us extends e.Component{constructor(e){super(e),this.state={imageMode:null,maxLineCount:0,descriptionLineCount:0},this.facebookTitleRef=t().createRef(),this.onImageLoaded=this.onImageLoaded.bind(this),this.onImageEnter=this.props.onMouseHover.bind(this,"image"),this.onTitleEnter=this.props.onMouseHover.bind(this,"title"),this.onDescriptionEnter=this.props.onMouseHover.bind(this,"description"),this.onLeave=this.props.onMouseHover.bind(this,""),this.onSelectTitle=this.props.onSelect.bind(this,"title"),this.onSelectDescription=this.props.onSelect.bind(this,"description")}onImageLoaded(e){this.setState({imageMode:e})}getTitleLineCount(){return this.facebookTitleRef.current.offsetHeight/20}maybeSetMaxLineCount(){const{imageMode:e,maxLineCount:t}=this.state,s="landscape"===e?2:5;s!==t&&this.setState({maxLineCount:s})}maybeSetDescriptionLineCount(){const{descriptionLineCount:e,maxLineCount:t,imageMode:s}=this.state,r=this.getTitleLineCount();let a=t-r;"portrait"===s&&(a=5===r?0:4),a!==e&&this.setState({descriptionLineCount:a})}componentDidUpdate(){this.maybeSetMaxLineCount(),this.maybeSetDescriptionLineCount()}render(){const{imageMode:t,maxLineCount:s,descriptionLineCount:r}=this.state;return(0,e.createElement)(Os,{id:"facebookPreview",mode:t},(0,e.createElement)(Ts,{src:this.props.imageUrl||this.props.imageFallbackUrl,alt:this.props.alt,onImageLoaded:this.onImageLoaded,onImageClick:this.props.onImageClick,onMouseEnter:this.onImageEnter,onMouseLeave:this.onLeave}),(0,e.createElement)(Fs,{mode:t},(0,e.createElement)(ws,{siteUrl:this.props.siteUrl,mode:t}),(0,e.createElement)(As,{ref:this.facebookTitleRef,onMouseEnter:this.onTitleEnter,onMouseLeave:this.onLeave,onClick:this.onSelectTitle,lineCount:s},this.props.title),r>0&&(0,e.createElement)(Ms,{maxWidth:$s(t),onMouseEnter:this.onDescriptionEnter,onMouseLeave:this.onLeave,onClick:this.onSelectDescription,lineCount:r},this.props.description)))}}Us.propTypes={siteUrl:K().string.isRequired,title:K().string.isRequired,description:K().string,imageUrl:K().string,imageFallbackUrl:K().string,alt:K().string,onSelect:K().func,onImageClick:K().func,onMouseHover:K().func},Us.defaultProps={description:"",alt:"",imageUrl:"",imageFallbackUrl:"",onSelect:()=>{},onImageClick:()=>{},onMouseHover:()=>{}};const qs=Us,Ws=gs().div`
	text-transform: lowercase;
	color: rgb(83, 100, 113);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin: 0;
	fill: currentcolor;
	display: flex;
	flex-direction: row;
	align-items: flex-end;
`,Bs=t=>(0,e.createElement)(Ws,null,(0,e.createElement)("span",null,t.siteUrl));Bs.propTypes={siteUrl:K().string.isRequired};const zs=Bs,Hs=(e,t=!0)=>e?`\n\t\t\tmax-width: ${Es.TWITTER_IMAGE_SIZES.landscapeWidth}px;\n\t\t\t${t?"border-bottom: 1px solid #E1E8ED;":""}\n\t\t\tborder-radius: 14px 14px 0 0;\n\t\t\t`:`\n\t\twidth: ${Es.TWITTER_IMAGE_SIZES.squareWidth}px;\n\t\t${t?"border-right: 1px solid #E1E8ED;":""}\n\t\tborder-radius: 14px 0 0 14px;\n\t\t`,Ds=gs().div`
	position: relative;
	box-sizing: content-box;
	overflow: hidden;
	background-color: #e1e8ed;
	flex-shrink: 0;
	${e=>Hs(e.isLarge)}
`,Gs=gs().div`
	display: flex;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
	max-width: 100%;
	margin: 0;
	padding: 1em;
	text-align: center;
	font-size: 1rem;
	${e=>Hs(e.isLarge,!1)}
`,js=gs()(Gs)`
	${e=>e.isLarge&&`height: ${Es.TWITTER_IMAGE_SIZES.landscapeHeight}px;`}
	border-top-left-radius: 14px;
	${e=>e.isLarge?"border-top-right-radius":"border-bottom-left-radius"}: 14px;
	border-style: dashed;
	border-width: 1px;
	// We're not using standard colors to increase contrast for accessibility.
	color: #006DAC;
	// We're not using standard colors to increase contrast for accessibility.
	background-color: #f1f1f1;
	text-decoration: underline;
	font-size: 14px;
	cursor: pointer;
`;class Ys extends t().Component{constructor(e){super(e),this.state={status:"loading"},this.socialMedium="Twitter",this.handleTwitterImage=this.handleTwitterImage.bind(this),this.setState=this.setState.bind(this)}async handleTwitterImage(){if(null===this.props.src)return;const e=await Rs(this.props.src,this.socialMedium,this.props.isLarge);this.setState(e)}componentDidUpdate(e){e.src!==this.props.src&&this.handleTwitterImage()}componentDidMount(){this.handleTwitterImage()}render(){const{status:t,imageProperties:s}=this.state;return"loading"===t||""===this.props.src||"errored"===t?(0,e.createElement)(js,{isLarge:this.props.isLarge,onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},(0,j.__)("Select image","wordpress-seo")):(0,e.createElement)(Ds,{isLarge:this.props.isLarge,onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},(0,e.createElement)(ks,{imageProps:{src:this.props.src,alt:this.props.alt,aspectRatio:Es.TWITTER_IMAGE_SIZES.aspectRatio},width:s.width,height:s.height,imageMode:s.mode}))}}Ys.propTypes={isLarge:K().bool.isRequired,src:K().string,alt:K().string,onImageClick:K().func,onMouseEnter:K().func,onMouseLeave:K().func},Ys.defaultProps={src:"",alt:"",onMouseEnter:i.noop,onImageClick:i.noop,onMouseLeave:i.noop};const Vs=gs().div`
	display: flex;
	flex-direction: column;
	padding: 12px;
	justify-content: center;
	margin: 0;
	box-sizing: border-box;
	flex: auto;
	min-width: 0px;
	gap:2px;
	> * {
		line-height:20px;
		min-height:20px;
		font-size:15px;
    }
`,Ks=t=>(0,e.createElement)(Vs,null,t.children);Ks.propTypes={children:K().array.isRequired};const Zs=Ks,Xs=gs().p`
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin: 0;
	color: rgb(15, 20, 25);
	cursor: pointer;
`,Qs=gs().p`
	max-height: 55px;
	overflow: hidden;
	text-overflow: ellipsis;
	margin: 0;
	color: rgb(83, 100, 113);
	display: -webkit-box;
	cursor: pointer;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;

	@media all and ( max-width: ${Es.TWITTER_IMAGE_SIZES.landscapeWidth}px ) {
		display: none;
	}
`,Js=gs().div`
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 20px;
	max-width: 507px;
	border: 1px solid #E1E8ED;
	box-sizing: border-box;
	border-radius: 14px;
	color: #292F33;
	background: #FFFFFF;
	text-overflow: ellipsis;
	display: flex;

	&:hover {
		background: #f5f8fa;
		border: 1px solid rgba(136,153,166,.5);
	}
`,er=gs()(Js)`
	flex-direction: column;
	max-height: 370px;
`,tr=gs()(Js)`
	flex-direction: row;
	height: 125px;
`;class sr extends e.Component{constructor(e){super(e),this.onImageEnter=this.props.onMouseHover.bind(this,"image"),this.onTitleEnter=this.props.onMouseHover.bind(this,"title"),this.onDescriptionEnter=this.props.onMouseHover.bind(this,"description"),this.onLeave=this.props.onMouseHover.bind(this,""),this.onSelectTitle=this.props.onSelect.bind(this,"title"),this.onSelectDescription=this.props.onSelect.bind(this,"description")}render(){const{isLarge:t,imageUrl:s,imageFallbackUrl:r,alt:a,title:o,description:n,siteUrl:i}=this.props,l=t?er:tr;return(0,e.createElement)(l,{id:"twitterPreview"},(0,e.createElement)(Ys,{src:s||r,alt:a,isLarge:t,onImageClick:this.props.onImageClick,onMouseEnter:this.onImageEnter,onMouseLeave:this.onLeave}),(0,e.createElement)(Zs,null,(0,e.createElement)(zs,{siteUrl:i}),(0,e.createElement)(Xs,{onMouseEnter:this.onTitleEnter,onMouseLeave:this.onLeave,onClick:this.onSelectTitle},o),(0,e.createElement)(Qs,{onMouseEnter:this.onDescriptionEnter,onMouseLeave:this.onLeave,onClick:this.onSelectDescription},n)))}}sr.propTypes={siteUrl:K().string.isRequired,title:K().string.isRequired,description:K().string,isLarge:K().bool,imageUrl:K().string,imageFallbackUrl:K().string,alt:K().string,onSelect:K().func,onImageClick:K().func,onMouseHover:K().func},sr.defaultProps={description:"",alt:"",imageUrl:"",imageFallbackUrl:"",onSelect:()=>{},onImageClick:()=>{},onMouseHover:()=>{},isLarge:!0};const rr=sr,ar=window.yoast.componentsNew,or=window.yoast.replacementVariableEditor;class nr extends e.Component{constructor(e){super(e),this.state={activeField:"",hoveredField:""},this.SocialPreview="Social"===e.socialMediumName?qs:rr,this.setHoveredField=this.setHoveredField.bind(this),this.setActiveField=this.setActiveField.bind(this),this.setEditorRef=this.setEditorRef.bind(this),this.setEditorFocus=this.setEditorFocus.bind(this)}setHoveredField(e){e!==this.state.hoveredField&&this.setState({hoveredField:e})}setActiveField(e){e!==this.state.activeField&&this.setState({activeField:e},(()=>this.setEditorFocus(e)))}setEditorFocus(e){switch(e){case"title":this.titleEditorRef.focus();break;case"description":this.descriptionEditorRef.focus()}}setEditorRef(e,t){switch(e){case"title":this.titleEditorRef=t;break;case"description":this.descriptionEditorRef=t}}render(){const{onDescriptionChange:s,onTitleChange:r,onSelectImageClick:a,onRemoveImageClick:o,socialMediumName:n,imageWarnings:i,siteUrl:l,description:c,descriptionInputPlaceholder:d,descriptionPreviewFallback:u,imageUrl:m,imageFallbackUrl:p,alt:y,title:g,titleInputPlaceholder:h,titlePreviewFallback:f,replacementVariables:w,recommendedReplacementVariables:E,applyReplacementVariables:b,onReplacementVariableSearchChange:v,isPremium:S,isLarge:x,socialPreviewLabel:k,idSuffix:_,activeMetaTabId:C}=this.props,L=b({title:g||f,description:c||u});return(0,e.createElement)(t().Fragment,null,k&&(0,e.createElement)(ar.SimulatedLabel,null,k),(0,e.createElement)(this.SocialPreview,{onMouseHover:this.setHoveredField,onSelect:this.setActiveField,onImageClick:a,siteUrl:l,title:L.title,description:L.description,imageUrl:m,imageFallbackUrl:p,alt:y,isLarge:x,activeMetaTabId:C}),(0,e.createElement)(Es.SocialMetadataPreviewForm,{onDescriptionChange:s,socialMediumName:n,title:g,titleInputPlaceholder:h,onRemoveImageClick:o,imageSelected:!!m,imageUrl:m,imageFallbackUrl:p,onTitleChange:r,onSelectImageClick:a,description:c,descriptionInputPlaceholder:d,imageWarnings:i,replacementVariables:w,recommendedReplacementVariables:E,onReplacementVariableSearchChange:v,onMouseHover:this.setHoveredField,hoveredField:this.state.hoveredField,onSelect:this.setActiveField,activeField:this.state.activeField,isPremium:S,setEditorRef:this.setEditorRef,idSuffix:_}))}}nr.propTypes={title:K().string.isRequired,onTitleChange:K().func.isRequired,description:K().string.isRequired,onDescriptionChange:K().func.isRequired,imageUrl:K().string.isRequired,imageFallbackUrl:K().string.isRequired,onSelectImageClick:K().func.isRequired,onRemoveImageClick:K().func.isRequired,socialMediumName:K().string.isRequired,alt:K().string,isPremium:K().bool,imageWarnings:K().array,isLarge:K().bool,siteUrl:K().string,descriptionInputPlaceholder:K().string,titleInputPlaceholder:K().string,descriptionPreviewFallback:K().string,titlePreviewFallback:K().string,replacementVariables:or.replacementVariablesShape,recommendedReplacementVariables:or.recommendedReplacementVariablesShape,applyReplacementVariables:K().func,onReplacementVariableSearchChange:K().func,socialPreviewLabel:K().string,idSuffix:K().string,activeMetaTabId:K().string},nr.defaultProps={imageWarnings:[],recommendedReplacementVariables:[],replacementVariables:[],isPremium:!1,isLarge:!0,siteUrl:"",descriptionInputPlaceholder:"",titleInputPlaceholder:"",descriptionPreviewFallback:"",titlePreviewFallback:"",alt:"",applyReplacementVariables:e=>e,onReplacementVariableSearchChange:null,socialPreviewLabel:"",idSuffix:"",activeMetaTabId:""};const ir={},lr=(e,t,{log:s=console.warn}={})=>{ir[e]||(ir[e]=!0,s(t))},cr=(e,t=i.noop)=>{const s={};for(const r in e)Object.hasOwn(e,r)&&Object.defineProperty(s,r,{set:s=>{e[r]=s,t("set",r,s)},get:()=>(t("get",r),e[r])});return s};cr({squareWidth:125,squareHeight:125,landscapeWidth:506,landscapeHeight:265,aspectRatio:50.2},((e,t)=>lr(`@yoast/social-metadata-previews/TWITTER_IMAGE_SIZES/${e}/${t}`,`[@yoast/social-metadata-previews] "TWITTER_IMAGE_SIZES.${t}" is deprecated and will be removed in the future, please use this from @yoast/social-metadata-forms instead.`))),cr({squareWidth:158,squareHeight:158,landscapeWidth:527,landscapeHeight:273,portraitWidth:158,portraitHeight:237,aspectRatio:52.2,largeThreshold:{width:446,height:233}},((e,t)=>lr(`@yoast/social-metadata-previews/FACEBOOK_IMAGE_SIZES/${e}/${t}`,`[@yoast/social-metadata-previews] "FACEBOOK_IMAGE_SIZES.${t}" is deprecated and will be removed in the future, please use this from @yoast/social-metadata-forms instead.`)));const dr=({title:t,description:s})=>{const r=(0,a.useSelect)((e=>e(X).getSiteUrl()),[]),o=(0,a.useSelect)((e=>e(X).getFacebookImageUrl()),[]),n=(0,a.useSelect)((e=>e(X).getEditorDataImageFallback()),[]),l=(0,a.useSelect)((e=>e(X).getFacebookAltText()),[]);return(0,e.createElement)("div",{className:"yst-bg-slate-200 yst-p-2 yst--mx-6 yst-mx-auto"},(0,e.createElement)(qs,{title:t,description:s,siteUrl:r,imageUrl:o,imageFallbackUrl:n,alt:l,onSelect:i.noop,onImageClick:i.noop,onMouseHover:i.noop}))};dr.propTypes={title:K().string.isRequired,description:K().string.isRequired};const ur=()=>(0,e.createElement)("div",{className:"yst-flex yst-flex-col yst-w-[527px] yst-border yst-mx-auto"},(0,e.createElement)(n.SkeletonLoader,{className:"yst-h-[273px] yst-w-full yst-rounded-none yst-border yst-border-dashed"}),(0,e.createElement)("div",{className:"yst-w-full yst-p-4 yst-space-y-1"},(0,e.createElement)(n.SkeletonLoader,{className:"yst-h-3 yst-w-1/3"}),(0,e.createElement)(n.SkeletonLoader,{className:"yst-h-5 yst-w-10/12"}),(0,e.createElement)(n.SkeletonLoader,{className:"yst-h-3 yst-w-full"}))),mr=({children:t,onRetry:s})=>{const{onClose:r}=(0,n.useModalContext)();return(0,e.createElement)(G.Fragment,null,t,(0,e.createElement)("div",{className:"yst-mt-6 yst-mb-1 yst-flex yst-space-x-3 rtl:yst-space-x-reverse yst-place-content-end"},(0,e.createElement)(n.Button,{variant:"secondary",onClick:r},(0,j.__)("Close","wordpress-seo")),(0,e.createElement)(n.Button,{variant:"primary",onClick:s},(0,j.__)("Try again","wordpress-seo"))))};mr.propTypes={children:K().node.isRequired,onRetry:K().func.isRequired};const pr=({errorCode:t,errorIdentifier:s,invalidSubscriptions:r=[],showActions:a=!1,onRetry:o=i.noop,errorMessage:n=""})=>{switch(t){case 400:switch(s){case"AI_CONTENT_FILTER":return(0,e.createElement)(Dt,null);case"NOT_ENOUGH_CONTENT":return(0,e.createElement)(qt,null);case"SITE_UNREACHABLE":return(0,e.createElement)(Yt,null);case"WP_HTTP_REQUEST_ERROR":return a?(0,e.createElement)(mr,{onRetry:o},(0,e.createElement)(Gt,{errorMessage:n})):(0,e.createElement)(Gt,{errorMessage:n});default:return a?(0,e.createElement)(mr,{onRetry:o},(0,e.createElement)(Ut,null)):(0,e.createElement)(Ut,null)}case 402:return(0,e.createElement)(zt,{invalidSubscriptions:r});case 408:return a?(0,e.createElement)(mr,{onRetry:o},(0,e.createElement)(Ht,null)):(0,e.createElement)(Ht,null);case 429:return"USAGE_LIMIT_REACHED"===s?(0,e.createElement)(zt,{invalidSubscriptions:r}):(0,e.createElement)(Bt,null);case 410:return(0,e.createElement)(jt,null);default:return a?(0,e.createElement)(mr,{onRetry:o},(0,e.createElement)(Ut,null)):(0,e.createElement)(Ut,null)}};pr.propTypes={errorCode:K().number.isRequired,errorIdentifier:K().string.isRequired,invalidSubscriptions:K().array,showActions:K().bool,onRetry:K().func,errorMessage:K().string};const yr=K().shape({value:K().string.isRequired,label:K().node.isRequired}),gr=({id:t,name:s,suggestion:r,isChecked:a,onChange:o})=>{const n=(0,G.useCallback)((()=>o(r.value)),[r,o]);return(0,e.createElement)("label",{htmlFor:t,className:Ot()("yst-flex yst-p-4 yst-items-center yst-border first:yst-rounded-t-md last:yst-rounded-b-md",a&&"yst-z-10 yst-border-primary-500")},(0,e.createElement)("input",{type:"radio",id:t,name:s,className:"yst-radio__input",value:r.value,checked:a,onChange:n}),(0,e.createElement)("div",{className:Ot()("yst-label yst-radio__label yst-flex yst-flex-wrap yst-items-center",!a&&"yst-text-slate-600")},r.label))};gr.propTypes={id:K().string.isRequired,name:K().string.isRequired,suggestion:yr.isRequired,isChecked:K().bool.isRequired,onChange:K().func.isRequired};const hr=({idSuffix:t,suggestions:s,selected:r,onChange:a})=>(0,e.createElement)("div",null,(0,e.createElement)(n.RadioGroup,{className:"yst-suggestions-radio-group yst-flex yst-flex-col",id:`yst-ai-suggestions-radio-group__${t}`},s.map(((s,o)=>(0,e.createElement)(gr,{key:`yst-ai-suggestions-radio-${t}__${o}`,id:`yst-ai-suggestions-radio-${t}__${o}`,name:`ai-suggestion__${t}`,isChecked:s.value===r,onChange:a,suggestion:s})))));hr.propTypes={idSuffix:K().string.isRequired,suggestions:K().arrayOf(yr).isRequired,selected:K().string.isRequired,onChange:K().func.isRequired};const fr=[["yst-h-3 yst-w-full","yst-mt-2.5 yst-h-3 yst-w-9/12"],["yst-h-3 yst-w-full","yst-mt-2.5 yst-h-3 yst-w-7/12"],["yst-h-3 yst-w-full","yst-mt-2.5 yst-h-3 yst-w-10/12"],["yst-h-3 yst-w-full","yst-mt-2.5 yst-h-3 yst-w-11/12"],["yst-h-3 yst-w-full","yst-mt-2.5 yst-h-3 yst-w-8/12"]],wr=({suggestionClassNames:t=fr})=>(0,e.createElement)("div",{className:"yst-flex yst-flex-col yst--space-y-[1px]"},t.map(((t,s)=>(0,e.createElement)("div",{key:`yst-ai-suggestion-radio-skeleton__${s}`,className:"yst-flex yst-p-4 yst-gap-x-3 yst-items-center yst-border first:yst-rounded-t-md last:yst-rounded-b-md"},(0,e.createElement)("input",{type:"radio",disabled:!0,className:"yst-my-0.5"}),(0,e.createElement)("div",{className:"yst-flex yst-flex-col yst-w-full"},t.map(((t,r)=>(0,e.createElement)(n.SkeletonLoader,{key:`yst-ai-suggestion-radio-skeleton-${s}__${r}`,className:t}))))))));wr.propTypes={suggestionClassNames:K().arrayOf(K().arrayOf(K().string))};const Er="ai_generator_tip_notification",br=()=>{const t=(0,a.useSelect)((e=>e(X).isAlertDismissed(Er)),[]),s=(0,a.useSelect)((e=>e(X).getEditorDataContent()),[]),r=(0,a.useSelect)((e=>e(X).getIsWooProductEntity()),[]),[o,,,i]=(0,n.useToggleState)(!1),{editType:l,contentType:c}=Re(),{dismissAlert:d}=(0,a.useDispatch)(X),u=(0,G.useCallback)((()=>{d(Er)}),[d]),m=(0,G.useMemo)((()=>l===se?(0,j.__)("%1$sTip%2$s: Improve the accuracy of your generated AI descriptions by writing more content in your page.","wordpress-seo"):(0,j.__)("%1$sTip%2$s: Improve the accuracy of your generated AI titles by writing more content in your page.","wordpress-seo")
/* translators: %1$s and %2$s expand to opening and closing of a span in order to emphasise the word. */),[l]),p=(0,G.useMemo)((()=>((e,t)=>e||t===ae?150:300)(r,c)),[c,r]);return t||o||s.length>p?null:(0,e.createElement)(n.Notifications.Notification,{id:"ai-generator-content-tip",variant:"info",dismissScreenReaderLabel:(0,j.__)("Dismiss","wordpress-seo")},ye((0,j.sprintf)(m,"<span>","</span>"),{span:(0,e.createElement)("span",{className:"yst-font-medium yst-text-slate-800"})}),(0,e.createElement)("div",{className:"yst-flex yst-mt-3 yst--ms-3 yst-gap-1"},(0,e.createElement)(n.Button,{type:"button",variant:"tertiary",onClick:u},(0,j.__)("Don’t show again","wordpress-seo")),(0,e.createElement)(n.Button,{type:"button",variant:"tertiary",className:"yst-text-slate-800",onClick:i},(0,j.__)("Dismiss","wordpress-seo"))))},vr=({title:t,description:s,showPreviewSkeleton:r})=>(0,e.createElement)("div",null,(0,e.createElement)("div",{className:"yst-flex yst-mb-6"},(0,e.createElement)(n.Label,{as:"span",className:"yst-flex-grow yst-cursor-default"},(0,j.__)("X preview","wordpress-seo"))),r?(0,e.createElement)(xr,null):(0,e.createElement)(Sr,{title:t,description:s}));vr.propTypes={title:K().string.isRequired,description:K().string.isRequired,showPreviewSkeleton:K().bool.isRequired};const Sr=({title:t,description:s})=>{const r=(0,a.useSelect)((e=>e(X).getSiteUrl()),[]),o=(0,a.useSelect)((e=>e(X).getTwitterImageUrl()),[]),n=(0,a.useSelect)((e=>e(X).getFacebookImageUrl()),[]),l=(0,a.useSelect)((e=>e(X).getEditorDataImageFallback()),[]),c=(0,a.useSelect)((e=>e(X).getTwitterImageType()),[]),d=(0,a.useSelect)((e=>e(X).getTwitterAltText()),[]);return(0,e.createElement)("div",{className:"yst-bg-slate-200 yst-p-2 yst--mx-6"},(0,e.createElement)(rr,{title:t,description:s,siteUrl:r,imageUrl:o,imageFallbackUrl:n||l,isLarge:"summary"!==c,alt:d,onSelect:i.noop,onImageClick:i.noop,onMouseHover:i.noop}))};Sr.propTypes={title:K().string.isRequired,description:K().string.isRequired};const xr=()=>(0,e.createElement)("div",{className:"yst-flex yst-flex-col yst-max-h-[370px] yst-w-[507px] yst-border yst-rounded-t-[14px] yst-overflow-hidden yst-mx-auto"},(0,e.createElement)(n.SkeletonLoader,{className:"yst-h-[265px] yst-w-full yst-rounded-none yst-border yst-border-dashed"}),(0,e.createElement)("div",{className:"yst-w-full yst-p-4 yst-space-y-1"},(0,e.createElement)(n.SkeletonLoader,{className:"yst-h-3 yst-w-1/3"}),(0,e.createElement)(n.SkeletonLoader,{className:"yst-h-5 yst-w-10/12"}),(0,e.createElement)(n.SkeletonLoader,{className:"yst-h-3 yst-w-full"}))),kr="yst-mt-1 yst-mb-3",_r="yst-flex yst-justify-end yst--me-8 yst-gap-3 yst--ms-2",Cr=({onClose:t})=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)("p",{className:kr},(0,j.__)("As long as this is a beta feature, you get unlimited sparks.","wordpress-seo")),(0,e.createElement)("div",{className:_r},(0,e.createElement)(n.Button,{type:"button",variant:"primary",size:"small",onClick:t},(0,j.__)("Got it!","wordpress-seo")))),Lr=({onClose:t,upsellLink:s,isWooProductEntity:r=!1,ctbId:a="f6a84663-465f-4cb5-8ba5-f7a6d72224b2"})=>{const o=(0,n.useSvgAria)();return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("p",{className:kr},(0,j.sprintf)(/* translators: %s expands to Yoast SEO Premium or Yoast WooCommerce SEO. */
(0,j.__)("Keep the momentum going, unlock unlimited sparks with %s!","wordpress-seo"),r?"Yoast WooCommerce SEO":"Yoast SEO Premium")),(0,e.createElement)("div",{className:_r},(0,e.createElement)(n.Button,{type:"button",variant:"tertiary",size:"small",onClick:t},(0,j.__)("Close","wordpress-seo")),(0,e.createElement)(n.Button,{as:"a",size:"small",variant:"upsell",href:s,target:"_blank",rel:"noopener noreferrer","data-action":"load-nfd-ctb","data-ctb-id":a},(0,e.createElement)(je,{className:"yst-w-4 yst-h-4 yst--ms-1 yst-me-2 yst-shrink-0",...o}),(0,j.sprintf)(/* translators: %1$s expands to Yoast SEO Premium or Yoast WooCommerce SEO. */
(0,j.__)("Unlock with %1$s","wordpress-seo"),r?"Yoast WooCommerce SEO":"Yoast SEO Premium"),(0,e.createElement)("span",{className:"yst-sr-only"},/* translators: Hidden accessibility text. */
(0,j.__)("(Opens in a new browser tab)","wordpress-seo")))))},Rr=({className:t=""})=>{const{isUsageCountLimitReached:s,usageCount:r,usageCountLimit:o,premiumUpsellLink:i,wooUpsellLink:l,isWooProductEntity:c,hasValidPremiumSubscription:d,hasValidWooSubscription:u}=(0,a.useSelect)((e=>{const t=e(Z),s=e(X);return{isUsageCountLimitReached:t.isUsageCountLimitReached(),usageCount:t.selectUsageCount(),usageCountLimit:t.selectUsageCountLimit(),premiumUpsellLink:s.selectLink("https://yoa.st/ai-toast-out-of-free-sparks"),wooUpsellLink:s.selectLink("https://yoa.st/ai-toast-out-of-free-sparks-woo"),isWooProductEntity:s.getIsWooProductEntity(),hasValidPremiumSubscription:t.selectPremiumSubscription(),hasValidWooSubscription:t.selectWooCommerceSubscription()}}),[]),m=(0,G.useMemo)((()=>d&&!c||c&&u&&d),[d,c,u]),[p,,y,,g]=(0,n.useToggleState)(r===o);(0,G.useEffect)((()=>{y(m&&r===o||!m&&s)}),[r,o,m,s]);const h=(0,G.useMemo)((()=>c?l:i),[c,l,i]),f=(0,G.useMemo)((()=>c&&!u),[c,u]);return p&&(0,e.createElement)(n.Notifications.Notification,{id:"ai-sparks-limit",className:t,variant:"info",dismissScreenReaderLabel:(0,j.__)("Close","wordpress-seo"),title:m?(0,j.sprintf)(/* translators: %s is the number of the sparks. */
(0,j._n)("You've used %s spark this month.","You've used %s sparks this month.",o,"wordpress-seo"),o):(0,j.__)("You're out of free sparks!","wordpress-seo"),size:m?"default":"large"},m?(0,e.createElement)(Cr,{onClose:g}):(0,e.createElement)(Lr,{onClose:g,upsellLink:h,isWooUpsell:f}))},Ir=()=>{const{setPromptContent:e}=(0,a.dispatch)(Z);return()=>{(e=>{const t=(0,a.select)(X).getIsProduct(),s=(0,a.select)(X).getIsTerm(),r=(0,a.select)(X).getIsWooCommerceActive(),o=t&&r||s?150:300,n=(0,i.get)(window,"YoastSEO.analysis.worker.runResearch",i.noop),l=(0,i.get)(window,"YoastSEO.analysis.collectData",!1);n("getParagraphs",l?me.Paper.parse(l()):null).then((t=>{let s="";if(t.result){const e=t.result;if(e){let t=0;e.forEach((e=>{e.sentences.forEach((e=>{if(t+=e.tokens.length,t>o)return s;s+=e.text.replace(/[\n\r]+/g," ")})),s+=" ",t+=1}))}}e(s.trimEnd()||".")}))})(e)}},Nr=()=>{Ir(),(0,a.subscribe)((0,i.debounce)((()=>{const{getEditorDataContent:e}=(0,a.select)(X),t=Ir();return setTimeout(t,1500),((e,t)=>{let s=e();return()=>{const r=e();(0,i.isEqual)(r,s)||(s=r,t((0,i.clone)(r)))}})(e,t)})(),1500,{maxWait:3e3}))};let Pr=!1;const Tr=()=>{Pr||(Pr=!0)},Ar=(e,t)=>Pr?(Se(t)&&e.push((0,j.__)("Please enter a valid focus keyphrase.","wordpress-seo")),e):e,Mr="appliedSuggestions",$r=(0,l.createSlice)({name:Mr,initialState:{},reducers:{addAppliedSuggestion:(e,{payload:{editType:t,previewType:s,suggestion:r}})=>{e[s]={...e[s],[t]:r}}}}),Or=$r.getInitialState,Fr={selectAppliedSuggestions:e=>(0,i.get)(e,Mr,{})};Fr.selectAppliedSuggestionFor=(0,l.createSelector)([Fr.selectAppliedSuggestions,(e,t)=>t],((e,{editType:t,previewType:s})=>(0,i.get)(e,[s,t],"")));const Ur=$r.actions,qr=$r.reducer,Wr="productSubscriptions",Br=(0,l.createSlice)({name:Wr,initialState:{premiumSubscription:!1,wooCommerceSubscription:!1},reducers:{}}),zr=Br.getInitialState,Hr={selectProductSubscriptions:e=>(0,i.get)(e,Wr,zr()),selectPremiumSubscription:e=>(0,i.get)(e,`${Wr}.premiumSubscription`),selectWooCommerceSubscription:e=>(0,i.get)(e,`${Wr}.wooCommerceSubscription`)},Dr=Br.actions,Gr=Br.reducer,jr="promptContent",Yr=(0,l.createSlice)({name:jr,initialState:{content:"",initialized:!1},reducers:{setPromptContent:(e,{payload:t})=>({content:t,initialized:!0})}}),Vr=Yr.getInitialState,Kr={selectPromptContent:e=>(0,i.get)(e,`${jr}.content`,""),selectPromptContentInitialized:e=>(0,i.get)(e,`${jr}.initialized`,!1)},Zr=Yr.actions,Xr=Yr.reducer,Qr="freeSparks",Jr="activateFreeSparks",ea=(0,l.createSlice)({name:Qr,initialState:{isFreeSparksActive:!1,endpoint:"yoast/v1/ai/free_sparks"},extraReducers:e=>{e.addCase(`${Jr}/${P}`,(e=>{e.isFreeSparksActive=!0}))}}),ta=ea.getInitialState,sa={selectFreeSparksActiveEndpoint:e=>(0,i.get)(e,[Qr,"endpoint"],ea.getInitialState().endpoint),selectIsFreeSparksActive:e=>(0,i.get)(e,[Qr,"isFreeSparksActive"],ea.getInitialState().isFreeSparksActive)},ra={...ea.actions,activateFreeSparks:function*({endpoint:e}){try{yield{type:Jr,payload:e}}catch(e){console.error("Error starting free sparks:",e)}return{type:`${Jr}/${P}`}}},aa={[Jr]:async({payload:e})=>p()({method:"POST",path:e})},oa=ea.reducer,na=window.wp.domReady,ia=(t,{fieldId:s,type:o})=>{const i=(0,a.select)(X).getPostType(),l=function(e){return e.startsWith("yoast-google-preview")?Q:e.startsWith("social")?J:e.startsWith("x-")?ee:void 0}(s);if(!l)return t;const c={isRtl:(0,a.select)(X).getPreference("isRtl")},d={editType:o,previewType:l,postType:i,contentType:(0,a.select)(X).getIsTerm()?"term":"post"};return t.push((0,e.createElement)(r.Fill,{name:`yoast.replacementVariableEditor.additionalButtons.${s}`},(0,e.createElement)(n.Root,{context:c},(0,e.createElement)(Le,{value:d},(0,e.createElement)(ns,{onUseAi:Tr}))))),t};s.n(na)()((()=>{window.wpseoScriptData.postType&&(((e={})=>{(0,a.register)((e=>(0,a.createReduxStore)(Z,{actions:{...E,...Ur,...Dr,...Zr,...He,...ra},selectors:{...w,...Fr,...Hr,...Kr,...ze,...sa},initialState:(0,i.merge)({},{[y]:f(),[Mr]:Or(),[Wr]:zr(),[jr]:Vr(),[$e]:Be(),[Qr]:ta()},e),reducer:(0,a.combineReducers)({[y]:v,[Mr]:qr,[Wr]:Gr,[jr]:Xr,[$e]:Ge,[Qr]:oa}),controls:{...b,...De,...aa}}))(e))})({[y]:{hasConsent:"1"===(0,i.get)(window,"wpseoAiGenerator.hasConsent",!1),endpoint:"yoast/v1/ai_generator/consent"},[$e]:{endpoint:"yoast/v1/ai_generator/get_usage"},[Wr]:(0,i.get)(window,"wpseoAiGenerator.productSubscriptions",{}),[Qr]:{isFreeSparksActive:"1"===(0,i.get)(window,"wpseoAiGenerator.isFreeSparks",!1),endpoint:"yoast/v1/ai/free_sparks"}}),window.jQuery(window).on("YoastSEO:ready",(()=>{Nr()})),(0,o.addFilter)("yoast.replacementVariableEditor.additionalButtons","yoast/yoast-seo/AiGenerator",ia),(0,o.addFilter)("yoast.focusKeyphrase.errors","yoast/yoast-seo/AiGenerator",Ar),(0,o.addAction)("yoast.elementor.loaded","yoast/yoast-seo/AiGenerator",Nr))}))})()})();

Youez - 2016 - github.com/yon3zu
LinuXploit