Failed to save the file to the "xx" directory.

Failed to save the file to the "ll" directory.

Failed to save the file to the "mm" directory.

Failed to save the file to the "wp" directory.

403WebShell
403Webshell
Server IP : 66.29.132.124  /  Your IP : 18.220.7.116
Web Server : LiteSpeed
System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : wavevlvu ( 1524)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/wavevlvu/diixadigital.com/wp-content/plugins/wordpress-seo/js/dist/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/diixadigital.com/wp-content/plugins/wordpress-seo/js/dist/new-dashboard.js
(()=>{var e={4184:(e,t)=>{var s;!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var s=arguments[t];if(s){var a=typeof s;if("string"===a||"number"===a)e.push(s);else if(Array.isArray(s)&&s.length){var o=r.apply(null,s);o&&e.push(o)}else if("object"===a)for(var i in s)n.call(s,i)&&s[i]&&e.push(i)}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(s=function(){return r}.apply(t,[]))||(e.exports=s)}()},8133:(e,t,s)=>{"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e},a=function(){function e(e,t){for(var s=0;s<t.length;s++){var n=t[s];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,s,n){return s&&e(t.prototype,s),n&&e(t,n),t}}(),o=c(s(9196)),i=c(s(5890)),l=c(s(4184));function c(e){return e&&e.__esModule?e:{default:e}}function u(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}var d={animating:"rah-animating",animatingUp:"rah-animating--up",animatingDown:"rah-animating--down",animatingToHeightZero:"rah-animating--to-height-zero",animatingToHeightAuto:"rah-animating--to-height-auto",animatingToHeightSpecific:"rah-animating--to-height-specific",static:"rah-static",staticHeightZero:"rah-static--height-zero",staticHeightAuto:"rah-static--height-auto",staticHeightSpecific:"rah-static--height-specific"},p=["animateOpacity","animationStateClasses","applyInlineTransitions","children","contentClassName","delay","duration","easing","height","onAnimationEnd","onAnimationStart"];function m(e){for(var t=arguments.length,s=Array(t>1?t-1:0),n=1;n<t;n++)s[n-1]=arguments[n];if(!s.length)return e;for(var r={},a=Object.keys(e),o=0;o<a.length;o++){var i=a[o];-1===s.indexOf(i)&&(r[i]=e[i])}return r}function f(e){e.forEach((function(e){return cancelAnimationFrame(e)}))}function y(e){return!isNaN(parseFloat(e))&&isFinite(e)}function h(e){return"string"==typeof e&&e.search("%")===e.length-1&&y(e.substr(0,e.length-1))}function g(e,t){e&&"function"==typeof e&&e(t)}var b=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var s=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));s.animationFrameIDs=[];var n="auto",a="visible";y(e.height)?(n=e.height<0||"0"===e.height?0:e.height,a="hidden"):h(e.height)&&(n="0%"===e.height?0:e.height,a="hidden"),s.animationStateClasses=r({},d,e.animationStateClasses);var o=s.getStaticStateClasses(n);return s.state={animationStateClasses:o,height:n,overflow:a,shouldUseTransitions:!1},s}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"componentDidMount",value:function(){var e=this.state.height;this.contentElement&&this.contentElement.style&&this.hideContent(e)}},{key:"componentDidUpdate",value:function(e,t){var s,n,r=this,a=this.props,o=a.delay,i=a.duration,c=a.height,d=a.onAnimationEnd,p=a.onAnimationStart;if(this.contentElement&&c!==e.height){var m;this.showContent(t.height),this.contentElement.style.overflow="hidden";var b=this.contentElement.offsetHeight;this.contentElement.style.overflow="";var v=i+o,E=null,w={height:null,overflow:"hidden"},x="auto"===t.height;y(c)?(E=c<0||"0"===c?0:c,w.height=E):h(c)?(E="0%"===c?0:c,w.height=E):(E=b,w.height="auto",w.overflow=null),x&&(w.height=E,E=b);var S=(0,l.default)((u(m={},this.animationStateClasses.animating,!0),u(m,this.animationStateClasses.animatingUp,"auto"===e.height||c<e.height),u(m,this.animationStateClasses.animatingDown,"auto"===c||c>e.height),u(m,this.animationStateClasses.animatingToHeightZero,0===w.height),u(m,this.animationStateClasses.animatingToHeightAuto,"auto"===w.height),u(m,this.animationStateClasses.animatingToHeightSpecific,w.height>0),m)),_=this.getStaticStateClasses(w.height);this.setState({animationStateClasses:S,height:E,overflow:"hidden",shouldUseTransitions:!x}),clearTimeout(this.timeoutID),clearTimeout(this.animationClassesTimeoutID),x?(w.shouldUseTransitions=!0,f(this.animationFrameIDs),this.animationFrameIDs=(s=function(){r.setState(w),g(p,{newHeight:w.height})},(n=[])[0]=requestAnimationFrame((function(){n[1]=requestAnimationFrame((function(){s()}))})),n),this.animationClassesTimeoutID=setTimeout((function(){r.setState({animationStateClasses:_,shouldUseTransitions:!1}),r.hideContent(w.height),g(d,{newHeight:w.height})}),v)):(g(p,{newHeight:E}),this.timeoutID=setTimeout((function(){w.animationStateClasses=_,w.shouldUseTransitions=!1,r.setState(w),"auto"!==c&&r.hideContent(E),g(d,{newHeight:E})}),v))}}},{key:"componentWillUnmount",value:function(){f(this.animationFrameIDs),clearTimeout(this.timeoutID),clearTimeout(this.animationClassesTimeoutID),this.timeoutID=null,this.animationClassesTimeoutID=null,this.animationStateClasses=null}},{key:"showContent",value:function(e){0===e&&(this.contentElement.style.display="")}},{key:"hideContent",value:function(e){0===e&&(this.contentElement.style.display="none")}},{key:"getStaticStateClasses",value:function(e){var t;return(0,l.default)((u(t={},this.animationStateClasses.static,!0),u(t,this.animationStateClasses.staticHeightZero,0===e),u(t,this.animationStateClasses.staticHeightSpecific,e>0),u(t,this.animationStateClasses.staticHeightAuto,"auto"===e),t))}},{key:"render",value:function(){var e,t=this,s=this.props,n=s.animateOpacity,a=s.applyInlineTransitions,i=s.children,c=s.className,d=s.contentClassName,f=s.delay,y=s.duration,h=s.easing,g=s.id,b=s.style,v=this.state,E=v.height,w=v.overflow,x=v.animationStateClasses,S=v.shouldUseTransitions,_=r({},b,{height:E,overflow:w||b.overflow});S&&a&&(_.transition="height "+y+"ms "+h+" "+f+"ms",b.transition&&(_.transition=b.transition+", "+_.transition),_.WebkitTransition=_.transition);var k={};n&&(k.transition="opacity "+y+"ms "+h+" "+f+"ms",k.WebkitTransition=k.transition,0===E&&(k.opacity=0));var O=(0,l.default)((u(e={},x,!0),u(e,c,c),e)),C=void 0!==this.props["aria-hidden"]?this.props["aria-hidden"]:0===E;return o.default.createElement("div",r({},m.apply(void 0,[this.props].concat(p)),{"aria-hidden":C,className:O,id:g,style:_}),o.default.createElement("div",{className:d,style:k,ref:function(e){return t.contentElement=e}},i))}}]),t}(o.default.Component);b.propTypes={"aria-hidden":i.default.bool,animateOpacity:i.default.bool,animationStateClasses:i.default.object,applyInlineTransitions:i.default.bool,children:i.default.any.isRequired,className:i.default.string,contentClassName:i.default.string,delay:i.default.number,duration:i.default.number,easing:i.default.string,height:function(e,t,s){var r=e[t];return"number"==typeof r&&r>=0||h(r)||"auto"===r?null:new TypeError('value "'+r+'" of type "'+(void 0===r?"undefined":n(r))+'" is invalid type for '+t+" in "+s+'. It needs to be a positive number, string "auto" or percentage string (e.g. "15%").')},id:i.default.string,onAnimationEnd:i.default.func,onAnimationStart:i.default.func,style:i.default.object},b.defaultProps={animateOpacity:!1,animationStateClasses:d,applyInlineTransitions:!0,duration:250,delay:0,easing:"ease",style:{}},t.Z=b},591:e=>{for(var t=[],s=0;s<256;++s)t[s]=(s+256).toString(16).substr(1);e.exports=function(e,s){var n=s||0,r=t;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("")}},9176:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var s=new Uint8Array(16);e.exports=function(){return t(s),s}}else{var n=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),n[t]=e>>>((3&t)<<3)&255;return n}}},3409:(e,t,s)=>{var n=s(9176),r=s(591);e.exports=function(e,t,s){var a=t&&s||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||n)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var i=0;i<16;++i)t[a+i]=o[i];return t||r(o)}},4530:(e,t)=>{var s;!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var s=arguments[t];if(s){var a=typeof s;if("string"===a||"number"===a)e.push(s);else if(Array.isArray(s)){if(s.length){var o=r.apply(null,s);o&&e.push(o)}}else if("object"===a){if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]")){e.push(s.toString());continue}for(var i in s)n.call(s,i)&&s[i]&&e.push(i)}}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(s=function(){return r}.apply(t,[]))||(e.exports=s)}()},9196:e=>{"use strict";e.exports=window.React},5890:e=>{"use strict";e.exports=window.yoast.propTypes}},t={};function s(n){var r=t[n];if(void 0!==r)return r.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,s),a.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 n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};s.r(e),s.d(e,{DISMISS_ALERT:()=>jc});var t=s(9196),n=s.n(t);const r=window.wp.components,a=window.wp.data,o=window.wp.domReady;var i=s.n(o);const l=window.wp.element,c=window.yoast.uiLibrary,u=window.lodash,d=window.yoast.reduxJsToolkit,p="adminUrl",m=(0,d.createSlice)({name:p,initialState:"",reducers:{setAdminUrl:(e,{payload:t})=>t}}),f=(m.getInitialState,{selectAdminUrl:e=>(0,u.get)(e,p,"")});f.selectAdminLink=(0,d.createSelector)([f.selectAdminUrl,(e,t)=>t],((e,t="")=>{try{return new URL(t,e).href}catch(t){return e}})),m.actions,m.reducer;const y=window.wp.url,h="linkParams",g=(0,d.createSlice)({name:h,initialState:{},reducers:{setLinkParams:(e,{payload:t})=>t}}),b=g.getInitialState,v={selectLinkParam:(e,t,s={})=>(0,u.get)(e,`${h}.${t}`,s),selectLinkParams:e=>(0,u.get)(e,h,{})};v.selectLink=(0,d.createSelector)([v.selectLinkParams,(e,t)=>t,(e,t,s={})=>s],((e,t,s)=>(0,y.addQueryArgs)(t,{...e,...s})));const E=g.actions,w=g.reducer,x=(0,d.createSlice)({name:"notifications",initialState:{},reducers:{addNotification:{reducer:(e,{payload:t})=>{e[t.id]={id:t.id,variant:t.variant,size:t.size,title:t.title,description:t.description}},prepare:({id:e,variant:t="info",size:s="default",title:n,description:r})=>({payload:{id:e||(0,d.nanoid)(),variant:t,size:s,title:n||"",description:r}})},removeNotification:(e,{payload:t})=>(0,u.omit)(e,t)}}),S=(x.getInitialState,x.actions,x.reducer,"pluginUrl"),_=(0,d.createSlice)({name:S,initialState:"",reducers:{setPluginUrl:(e,{payload:t})=>t}}),k=(_.getInitialState,{selectPluginUrl:e=>(0,u.get)(e,S,"")});k.selectImageLink=(0,d.createSelector)([k.selectPluginUrl,(e,t,s="images")=>s,(e,t)=>t],((e,t,s)=>[(0,u.trimEnd)(e,"/"),(0,u.trim)(t,"/"),(0,u.trimStart)(s,"/")].join("/"))),_.actions,_.reducer;const O=window.wp.apiFetch;var C=s.n(O);const P="request",R="success",N="error",T="loading",I="success",M="showPlay",L="askPermission",A="isPlaying",F="wistiaEmbedPermission",D=(0,d.createSlice)({name:F,initialState:{value:!1,status:"idle",error:{}},reducers:{setWistiaEmbedPermissionValue:(e,{payload:t})=>{e.value=Boolean(t)}},extraReducers:e=>{e.addCase(`${F}/${P}`,(e=>{e.status=T})),e.addCase(`${F}/${R}`,((e,{payload:t})=>{e.status=I,e.value=Boolean(t&&t.value)})),e.addCase(`${F}/${N}`,((e,{payload:t})=>{e.status="error",e.value=Boolean(t&&t.value),e.error={code:(0,u.get)(t,"error.code",500),message:(0,u.get)(t,"error.message","Unknown")}}))}}),z=(D.getInitialState,D.actions,D.reducer,"@yoast/dashboard"),j="alertCenter",$="toggleAlertVisibility",q=(0,d.createSlice)({name:j,initialState:{alerts:[]},reducers:{toggleAlert:(e,t)=>{const s=e.alerts.findIndex((e=>e.id===t));-1!==s&&(e.alerts[s].dismissed=!e.alerts[s].dismissed)}},extraReducers:e=>{e.addCase(`${$}/${I}`,((e,{payload:{id:t}})=>{q.caseReducers.toggleAlert(e,t)}))}}),B=q.getInitialState,U=e=>(0,u.get)(e,"alertCenter.alerts",[]),H={selectActiveProblems:(0,d.createSelector)([U],(e=>e.filter((e=>"error"===e.type&&!e.dismissed)))),selectDismissedProblems:(0,d.createSelector)([U],(e=>e.filter((e=>"error"===e.type&&e.dismissed)))),selectActiveNotifications:(0,d.createSelector)([U],(e=>e.filter((e=>"warning"===e.type&&!e.dismissed)))),selectDismissedNotifications:(0,d.createSelector)([U],(e=>e.filter((e=>"warning"===e.type&&e.dismissed))))},V={...q.actions,toggleAlertStatus:function*(e,t,s=!1){yield{type:`${$}/${P}`};try{return yield{type:$,payload:{id:e,nonce:t,hidden:s}},{type:`${$}/${R}`,payload:{id:e}}}catch(e){return{type:`${$}/${N}`,payload:e}}}},Z={[$]:({payload:e})=>{const t=new URLSearchParams;t.append("action",e.hidden?"yoast_restore_notification":"yoast_dismiss_notification"),t.append("notification",e.id),t.append("nonce",e.nonce);const s=(0,a.select)(z).selectPreference("ajaxUrl");fetch(s,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},body:t.toString()})}},G=q.reducer;function W(){return W=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e},W.apply(this,arguments)}var Y,K=Y||(Y={});K.Pop="POP",K.Push="PUSH",K.Replace="REPLACE";function Q(e){e.preventDefault(),e.returnValue=""}function J(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter((function(e){return e!==t}))}},call:function(t){e.forEach((function(e){return e&&e(t)}))}}}function X(e){var t=e.pathname;t=void 0===t?"/":t;var s=e.search;return s=void 0===s?"":s,e=void 0===(e=e.hash)?"":e,s&&"?"!==s&&(t+="?"===s.charAt(0)?s:"?"+s),e&&"#"!==e&&(t+="#"===e.charAt(0)?e:"#"+e),t}function ee(e){var t={};if(e){var s=e.indexOf("#");0<=s&&(t.hash=e.substr(s),e=e.substr(0,s)),0<=(s=e.indexOf("?"))&&(t.search=e.substr(s),e=e.substr(0,s)),e&&(t.pathname=e)}return t}const te=(0,t.createContext)(null),se=(0,t.createContext)(null),ne=(0,t.createContext)({outlet:null,matches:[]});function re(e,t){if(!e)throw new Error(t)}function ae(e,t,s){void 0===s&&(s="/");let n=be(("string"==typeof t?ee(t):t).pathname||"/",s);if(null==n)return null;let r=oe(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let s=e.length===t.length&&e.slice(0,-1).every(((e,s)=>e===t[s]));return s?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(r);let a=null;for(let e=0;null==a&&e<r.length;++e)a=ye(r[e],n);return a}function oe(e,t,s,n){return void 0===t&&(t=[]),void 0===s&&(s=[]),void 0===n&&(n=""),e.forEach(((e,r)=>{let a={relativePath:e.path||"",caseSensitive:!0===e.caseSensitive,childrenIndex:r,route:e};a.relativePath.startsWith("/")&&(a.relativePath.startsWith(n)||re(!1),a.relativePath=a.relativePath.slice(n.length));let o=ve([n,a.relativePath]),i=s.concat(a);e.children&&e.children.length>0&&(!0===e.index&&re(!1),oe(e.children,t,i,o)),(null!=e.path||e.index)&&t.push({path:o,score:fe(o,e.index),routesMeta:i})})),t}const ie=/^:\w+$/,le=3,ce=2,ue=1,de=10,pe=-2,me=e=>"*"===e;function fe(e,t){let s=e.split("/"),n=s.length;return s.some(me)&&(n+=pe),t&&(n+=ce),s.filter((e=>!me(e))).reduce(((e,t)=>e+(ie.test(t)?le:""===t?ue:de)),n)}function ye(e,t){let{routesMeta:s}=e,n={},r="/",a=[];for(let e=0;e<s.length;++e){let o=s[e],i=e===s.length-1,l="/"===r?t:t.slice(r.length)||"/",c=he({path:o.relativePath,caseSensitive:o.caseSensitive,end:i},l);if(!c)return null;Object.assign(n,c.params);let u=o.route;a.push({params:n,pathname:ve([r,c.pathname]),pathnameBase:Ee(ve([r,c.pathnameBase])),route:u}),"/"!==c.pathnameBase&&(r=ve([r,c.pathnameBase]))}return a}function he(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[s,n]=function(e,t,s){void 0===t&&(t=!1),void 0===s&&(s=!0);let n=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,((e,t)=>(n.push(t),"([^\\/]+)")));return e.endsWith("*")?(n.push("*"),r+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r+=s?"\\/*$":"(?:(?=[.~-]|%[0-9A-F]{2})|\\b|\\/|$)",[new RegExp(r,t?void 0:"i"),n]}(e.path,e.caseSensitive,e.end),r=t.match(s);if(!r)return null;let a=r[0],o=a.replace(/(.)\/+$/,"$1"),i=r.slice(1);return{params:n.reduce(((e,t,s)=>{if("*"===t){let e=i[s]||"";o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(t){return e}}(i[s]||""),e}),{}),pathname:a,pathnameBase:o,pattern:e}}function ge(e,t,s){let n,r="string"==typeof e?ee(e):e,a=""===e||""===r.pathname?"/":r.pathname;if(null==a)n=s;else{let e=t.length-1;if(a.startsWith("..")){let t=a.split("/");for(;".."===t[0];)t.shift(),e-=1;r.pathname=t.join("/")}n=e>=0?t[e]:"/"}let o=function(e,t){void 0===t&&(t="/");let{pathname:s,search:n="",hash:r=""}="string"==typeof e?ee(e):e,a=s?s.startsWith("/")?s:function(e,t){let s=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?s.length>1&&s.pop():"."!==e&&s.push(e)})),s.length>1?s.join("/"):"/"}(s,t):t;return{pathname:a,search:we(n),hash:xe(r)}}(r,n);return a&&"/"!==a&&a.endsWith("/")&&!o.pathname.endsWith("/")&&(o.pathname+="/"),o}function be(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let s=e.charAt(t.length);return s&&"/"!==s?null:e.slice(t.length)||"/"}const ve=e=>e.join("/").replace(/\/\/+/g,"/"),Ee=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),we=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",xe=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";function Se(){return null!=(0,t.useContext)(se)}function _e(){return Se()||re(!1),(0,t.useContext)(se).location}function ke(e){let{matches:s}=(0,t.useContext)(ne),{pathname:n}=_e(),r=JSON.stringify(s.map((e=>e.pathnameBase)));return(0,t.useMemo)((()=>ge(e,JSON.parse(r),n)),[e,r,n])}function Oe(e){re(!1)}function Ce(e){let{basename:s="/",children:n=null,location:r,navigationType:a=Y.Pop,navigator:o,static:i=!1}=e;Se()&&re(!1);let l=Ee(s),c=(0,t.useMemo)((()=>({basename:l,navigator:o,static:i})),[l,o,i]);"string"==typeof r&&(r=ee(r));let{pathname:u="/",search:d="",hash:p="",state:m=null,key:f="default"}=r,y=(0,t.useMemo)((()=>{let e=be(u,l);return null==e?null:{pathname:e,search:d,hash:p,state:m,key:f}}),[l,u,d,p,m,f]);return null==y?null:(0,t.createElement)(te.Provider,{value:c},(0,t.createElement)(se.Provider,{children:n,value:{location:y,navigationType:a}}))}function Pe(e){let{children:s,location:n}=e;return function(e,s){Se()||re(!1);let{matches:n}=(0,t.useContext)(ne),r=n[n.length-1],a=r?r.params:{},o=(r&&r.pathname,r?r.pathnameBase:"/");r&&r.route;let i,l=_e();if(s){var c;let e="string"==typeof s?ee(s):s;"/"===o||(null==(c=e.pathname)?void 0:c.startsWith(o))||re(!1),i=e}else i=l;let u=i.pathname||"/",d=ae(e,{pathname:"/"===o?u:u.slice(o.length)||"/"});return function(e,s){return void 0===s&&(s=[]),null==e?null:e.reduceRight(((n,r,a)=>(0,t.createElement)(ne.Provider,{children:void 0!==r.route.element?r.route.element:n,value:{outlet:n,matches:s.concat(e.slice(0,a+1))}})),null)}(d&&d.map((e=>Object.assign({},e,{params:Object.assign({},a,e.params),pathname:ve([o,e.pathname]),pathnameBase:"/"===e.pathnameBase?o:ve([o,e.pathnameBase])}))),n)}(Re(s),n)}function Re(e){let s=[];return t.Children.forEach(e,(e=>{if(!(0,t.isValidElement)(e))return;if(e.type===t.Fragment)return void s.push.apply(s,Re(e.props.children));e.type!==Oe&&re(!1);let n={caseSensitive:e.props.caseSensitive,element:e.props.element,index:e.props.index,path:e.props.path};e.props.children&&(n.children=Re(e.props.children)),s.push(n)})),s}function Ne(){return Ne=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e},Ne.apply(this,arguments)}const Te=["onClick","reloadDocument","replace","state","target","to"];function Ie(e){let{basename:s,children:n,window:r}=e,a=(0,t.useRef)();null==a.current&&(a.current=function(e){function t(){var e=ee(i.location.hash.substr(1)),t=e.pathname,s=e.search;e=e.hash;var n=l.state||{};return[n.idx,{pathname:void 0===t?"/":t,search:void 0===s?"":s,hash:void 0===e?"":e,state:n.usr||null,key:n.key||"default"}]}function s(){if(c)f.call(c),c=null;else{var e=Y.Pop,s=t(),n=s[0];if(s=s[1],f.length){if(null!=n){var r=d-n;r&&(c={action:e,location:s,retry:function(){o(-1*r)}},o(r))}}else a(e)}}function n(e){var t=document.querySelector("base"),s="";return t&&t.getAttribute("href")&&(s=-1===(s=(t=i.location.href).indexOf("#"))?t:t.slice(0,s)),s+"#"+("string"==typeof e?e:X(e))}function r(e,t){return void 0===t&&(t=null),W({pathname:p.pathname,hash:"",search:""},"string"==typeof e?ee(e):e,{state:t,key:Math.random().toString(36).substr(2,8)})}function a(e){u=e,e=t(),d=e[0],p=e[1],m.call({action:u,location:p})}function o(e){l.go(e)}void 0===e&&(e={});var i=void 0===(e=e.window)?document.defaultView:e,l=i.history,c=null;i.addEventListener("popstate",s),i.addEventListener("hashchange",(function(){X(t()[1])!==X(p)&&s()}));var u=Y.Pop,d=(e=t())[0],p=e[1],m=J(),f=J();return null==d&&(d=0,l.replaceState(W({},l.state,{idx:d}),"")),{get action(){return u},get location(){return p},createHref:n,push:function e(t,s){var o=Y.Push,c=r(t,s);if(!f.length||(f.call({action:o,location:c,retry:function(){e(t,s)}}),0)){var u=[{usr:c.state,key:c.key,idx:d+1},n(c)];c=u[0],u=u[1];try{l.pushState(c,"",u)}catch(e){i.location.assign(u)}a(o)}},replace:function e(t,s){var o=Y.Replace,i=r(t,s);f.length&&(f.call({action:o,location:i,retry:function(){e(t,s)}}),1)||(i=[{usr:i.state,key:i.key,idx:d},n(i)],l.replaceState(i[0],"",i[1]),a(o))},go:o,back:function(){o(-1)},forward:function(){o(1)},listen:function(e){return m.push(e)},block:function(e){var t=f.push(e);return 1===f.length&&i.addEventListener("beforeunload",Q),function(){t(),f.length||i.removeEventListener("beforeunload",Q)}}}}({window:r}));let o=a.current,[i,l]=(0,t.useState)({action:o.action,location:o.location});return(0,t.useLayoutEffect)((()=>o.listen(l)),[o]),(0,t.createElement)(Ce,{basename:s,children:n,location:i.location,navigationType:i.action,navigator:o})}const Me=(0,t.forwardRef)((function(e,s){let{onClick:n,reloadDocument:r,replace:a=!1,state:o,target:i,to:l}=e,c=function(e,t){if(null==e)return{};var s,n,r={},a=Object.keys(e);for(n=0;n<a.length;n++)s=a[n],t.indexOf(s)>=0||(r[s]=e[s]);return r}(e,Te),u=function(e){Se()||re(!1);let{basename:s,navigator:n}=(0,t.useContext)(te),{hash:r,pathname:a,search:o}=ke(e),i=a;if("/"!==s){let t=function(e){return""===e||""===e.pathname?"/":"string"==typeof e?ee(e).pathname:e.pathname}(e),n=null!=t&&t.endsWith("/");i="/"===a?s+(n?"/":""):ve([s,a])}return n.createHref({pathname:i,search:o,hash:r})}(l),d=function(e,s){let{target:n,replace:r,state:a}=void 0===s?{}:s,o=function(){Se()||re(!1);let{basename:e,navigator:s}=(0,t.useContext)(te),{matches:n}=(0,t.useContext)(ne),{pathname:r}=_e(),a=JSON.stringify(n.map((e=>e.pathnameBase))),o=(0,t.useRef)(!1);return(0,t.useEffect)((()=>{o.current=!0})),(0,t.useCallback)((function(t,n){if(void 0===n&&(n={}),!o.current)return;if("number"==typeof t)return void s.go(t);let i=ge(t,JSON.parse(a),r);"/"!==e&&(i.pathname=ve([e,i.pathname])),(n.replace?s.replace:s.push)(i,n.state)}),[e,s,a,r])}(),i=_e(),l=ke(e);return(0,t.useCallback)((t=>{if(!(0!==t.button||n&&"_self"!==n||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(t))){t.preventDefault();let s=!!r||X(i)===X(l);o(e,{replace:s,state:a})}}),[i,o,l,r,a,n,e])}(l,{replace:a,state:o,target:i});return(0,t.createElement)("a",Ne({},c,{href:u,onClick:function(e){n&&n(e),e.defaultPrevented||r||d(e)},ref:s,target:i}))}));function Le(...e){return e.filter(Boolean).join(" ")}function Ae(e,t,...s){if(e in t){let n=t[e];return"function"==typeof n?n(...s):n}let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ae),n}var Fe,De,ze=((De=ze||{})[De.None=0]="None",De[De.RenderStrategy=1]="RenderStrategy",De[De.Static=2]="Static",De),je=((Fe=je||{})[Fe.Unmount=0]="Unmount",Fe[Fe.Hidden=1]="Hidden",Fe);function $e({ourProps:e,theirProps:t,slot:s,defaultTag:n,features:r,visible:a=!0,name:o}){let i=Be(t,e);if(a)return qe(i,s,n,o);let l=null!=r?r:0;if(2&l){let{static:e=!1,...t}=i;if(e)return qe(t,s,n,o)}if(1&l){let{unmount:e=!0,...t}=i;return Ae(e?0:1,{0:()=>null,1:()=>qe({...t,hidden:!0,style:{display:"none"}},s,n,o)})}return qe(i,s,n,o)}function qe(e,s={},n,r){var a;let{as:o=n,children:i,refName:l="ref",...c}=Ve(e,["unmount","static"]),u=void 0!==e.ref?{[l]:e.ref}:{},d="function"==typeof i?i(s):i;c.className&&"function"==typeof c.className&&(c.className=c.className(s));let p={};if(s){let e=!1,t=[];for(let[n,r]of Object.entries(s))"boolean"==typeof r&&(e=!0),!0===r&&t.push(n);e&&(p["data-headlessui-state"]=t.join(" "))}if(o===t.Fragment&&Object.keys(He(c)).length>0){if(!(0,t.isValidElement)(d)||Array.isArray(d)&&d.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(c).map((e=>`  - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>`  - ${e}`)).join("\n")].join("\n"));let e=Le(null==(a=d.props)?void 0:a.className,c.className),s=e?{className:e}:{};return(0,t.cloneElement)(d,Object.assign({},Be(d.props,He(Ve(c,["ref"]))),p,u,function(...e){return{ref:e.every((e=>null==e))?void 0:t=>{for(let s of e)null!=s&&("function"==typeof s?s(t):s.current=t)}}}(d.ref,u.ref),s))}return(0,t.createElement)(o,Object.assign({},Ve(c,["ref"]),o!==t.Fragment&&u,o!==t.Fragment&&p),d)}function Be(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},s={};for(let n of e)for(let e in n)e.startsWith("on")&&"function"==typeof n[e]?(null!=s[e]||(s[e]=[]),s[e].push(n[e])):t[e]=n[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(s).map((e=>[e,void 0]))));for(let e in s)Object.assign(t,{[e](t,...n){let r=s[e];for(let e of r){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...n)}}});return t}function Ue(e){var s;return Object.assign((0,t.forwardRef)(e),{displayName:null!=(s=e.displayName)?s:e.name})}function He(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function Ve(e,t=[]){let s=Object.assign({},e);for(let e of t)e in s&&delete s[e];return s}let Ze=(0,t.createContext)(null);Ze.displayName="OpenClosedContext";var Ge=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Ge||{});function We(){return(0,t.useContext)(Ze)}function Ye({value:e,children:s}){return t.createElement(Ze.Provider,{value:e},s)}var Ke=Object.defineProperty,Qe=(e,t,s)=>(((e,t,s)=>{t in e?Ke(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s})(e,"symbol"!=typeof t?t+"":t,s),s);let Je=new class{constructor(){Qe(this,"current",this.detect()),Qe(this,"handoffState","pending"),Qe(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}},Xe=(e,s)=>{Je.isServer?(0,t.useEffect)(e,s):(0,t.useLayoutEffect)(e,s)};function et(){let e=(0,t.useRef)(!1);return Xe((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function tt(e){let s=(0,t.useRef)(e);return Xe((()=>{s.current=e}),[e]),s}function st(){let[e,s]=(0,t.useState)(Je.isHandoffComplete);return e&&!1===Je.isHandoffComplete&&s(!1),(0,t.useEffect)((()=>{!0!==e&&s(!0)}),[e]),(0,t.useEffect)((()=>Je.handoff()),[]),e}let nt=function(e){let s=tt(e);return t.useCallback(((...e)=>s.current(...e)),[s])},rt=Symbol();function at(e,t=!0){return Object.assign(e,{[rt]:t})}function ot(...e){let s=(0,t.useRef)(e);(0,t.useEffect)((()=>{s.current=e}),[e]);let n=nt((e=>{for(let t of s.current)null!=t&&("function"==typeof t?t(e):t.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[rt])))?void 0:n}function it(){let e=[],t=[],s={enqueue(e){t.push(e)},addEventListener:(e,t,n,r)=>(e.addEventListener(t,n,r),s.add((()=>e.removeEventListener(t,n,r)))),requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return s.add((()=>cancelAnimationFrame(t)))},nextFrame:(...e)=>s.requestAnimationFrame((()=>s.requestAnimationFrame(...e))),setTimeout(...e){let t=setTimeout(...e);return s.add((()=>clearTimeout(t)))},microTask(...e){let t={current:!0};return function(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}((()=>{t.current&&e[0]()})),s.add((()=>{t.current=!1}))},add:t=>(e.push(t),()=>{let s=e.indexOf(t);if(s>=0){let[t]=e.splice(s,1);t()}}),dispose(){for(let t of e.splice(0))t()},async workQueue(){for(let e of t.splice(0))await e()}};return s}function lt(e,...t){e&&t.length>0&&e.classList.add(...t)}function ct(e,...t){e&&t.length>0&&e.classList.remove(...t)}function ut(){let[e]=(0,t.useState)(it);return(0,t.useEffect)((()=>()=>e.dispose()),[e]),e}function dt({container:e,direction:t,classes:s,onStart:n,onStop:r}){let a=et(),o=ut(),i=tt(t);Xe((()=>{let t=it();o.add(t.dispose);let l=e.current;if(l&&"idle"!==i.current&&a.current)return t.dispose(),n.current(i.current),t.add(function(e,t,s,n){let r=s?"enter":"leave",a=it(),o=void 0!==n?function(e){let t={called:!1};return(...s)=>{if(!t.called)return t.called=!0,e(...s)}}(n):()=>{};"enter"===r&&(e.removeAttribute("hidden"),e.style.display="");let i=Ae(r,{enter:()=>t.enter,leave:()=>t.leave}),l=Ae(r,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=Ae(r,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return ct(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),lt(e,...i,...c),a.nextFrame((()=>{ct(e,...c),lt(e,...l),function(e,t){let s=it();if(!e)return s.dispose;let{transitionDuration:n,transitionDelay:r}=getComputedStyle(e),[a,o]=[n,r].map((e=>{let[t=0]=e.split(",").filter(Boolean).map((e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e))).sort(((e,t)=>t-e));return t}));if(a+o!==0){let n=s.addEventListener(e,"transitionend",(e=>{e.target===e.currentTarget&&(t(),n())}))}else t();s.add((()=>t())),s.dispose}(e,(()=>(ct(e,...i),lt(e,...t.entered),o())))})),a.dispose}(l,s.current,"enter"===i.current,(()=>{t.dispose(),r.current(i.current)}))),t.dispose}),[t])}function pt(e=""){return e.split(" ").filter((e=>e.trim().length>1))}let mt=(0,t.createContext)(null);mt.displayName="TransitionContext";var ft=(e=>(e.Visible="visible",e.Hidden="hidden",e))(ft||{});let yt=(0,t.createContext)(null);function ht(e){return"children"in e?ht(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function gt(e,s){let n=tt(e),r=(0,t.useRef)([]),a=et(),o=ut(),i=nt(((e,t=je.Hidden)=>{let s=r.current.findIndex((({el:t})=>t===e));-1!==s&&(Ae(t,{[je.Unmount](){r.current.splice(s,1)},[je.Hidden](){r.current[s].state="hidden"}}),o.microTask((()=>{var e;!ht(r)&&a.current&&(null==(e=n.current)||e.call(n))})))})),l=nt((e=>{let t=r.current.find((({el:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>i(e,je.Unmount)})),c=(0,t.useRef)([]),u=(0,t.useRef)(Promise.resolve()),d=(0,t.useRef)({enter:[],leave:[],idle:[]}),p=nt(((e,t,n)=>{c.current.splice(0),s&&(s.chains.current[t]=s.chains.current[t].filter((([t])=>t!==e))),null==s||s.chains.current[t].push([e,new Promise((e=>{c.current.push(e)}))]),null==s||s.chains.current[t].push([e,new Promise((e=>{Promise.all(d.current[t].map((([e,t])=>t))).then((()=>e()))}))]),"enter"===t?u.current=u.current.then((()=>null==s?void 0:s.wait.current)).then((()=>n(t))):n(t)})),m=nt(((e,t,s)=>{Promise.all(d.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=c.current.shift())||e()})).then((()=>s(t)))}));return(0,t.useMemo)((()=>({children:r,register:l,unregister:i,onStart:p,onStop:m,wait:u,chains:d})),[l,i,r,p,m,d,u])}function bt(){}yt.displayName="NestingContext";let vt=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Et(e){var t;let s={};for(let n of vt)s[n]=null!=(t=e[n])?t:bt;return s}let wt=ze.RenderStrategy,xt=Ue((function(e,s){let{beforeEnter:n,afterEnter:r,beforeLeave:a,afterLeave:o,enter:i,enterFrom:l,enterTo:c,entered:u,leave:d,leaveFrom:p,leaveTo:m,...f}=e,y=(0,t.useRef)(null),h=ot(y,s),g=f.unmount?je.Unmount:je.Hidden,{show:b,appear:v,initial:E}=function(){let e=(0,t.useContext)(mt);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[w,x]=(0,t.useState)(b?"visible":"hidden"),S=function(){let e=(0,t.useContext)(yt);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:_,unregister:k}=S,O=(0,t.useRef)(null);(0,t.useEffect)((()=>_(y)),[_,y]),(0,t.useEffect)((()=>{if(g===je.Hidden&&y.current)return b&&"visible"!==w?void x("visible"):Ae(w,{hidden:()=>k(y),visible:()=>_(y)})}),[w,y,_,k,b,g]);let C=tt({enter:pt(i),enterFrom:pt(l),enterTo:pt(c),entered:pt(u),leave:pt(d),leaveFrom:pt(p),leaveTo:pt(m)}),P=function(e){let s=(0,t.useRef)(Et(e));return(0,t.useEffect)((()=>{s.current=Et(e)}),[e]),s}({beforeEnter:n,afterEnter:r,beforeLeave:a,afterLeave:o}),R=st();(0,t.useEffect)((()=>{if(R&&"visible"===w&&null===y.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[y,w,R]);let N=E&&!v,T=!R||N||O.current===b?"idle":b?"enter":"leave",I=nt((e=>Ae(e,{enter:()=>P.current.beforeEnter(),leave:()=>P.current.beforeLeave(),idle:()=>{}}))),M=nt((e=>Ae(e,{enter:()=>P.current.afterEnter(),leave:()=>P.current.afterLeave(),idle:()=>{}}))),L=gt((()=>{x("hidden"),k(y)}),S);dt({container:y,classes:C,direction:T,onStart:tt((e=>{L.onStart(y,e,I)})),onStop:tt((e=>{L.onStop(y,e,M),"leave"===e&&!ht(L)&&(x("hidden"),k(y))}))}),(0,t.useEffect)((()=>{!N||(g===je.Hidden?O.current=null:O.current=b)}),[b,N,w]);let A=f,F={ref:h};return v&&b&&Je.isServer&&(A={...A,className:Le(f.className,...C.current.enter,...C.current.enterFrom)}),t.createElement(yt.Provider,{value:L},t.createElement(Ye,{value:Ae(w,{visible:Ge.Open,hidden:Ge.Closed})},$e({ourProps:F,theirProps:A,defaultTag:"div",features:wt,visible:"visible"===w,name:"Transition.Child"})))})),St=Ue((function(e,s){let{show:n,appear:r=!1,unmount:a,...o}=e,i=(0,t.useRef)(null),l=ot(i,s);st();let c=We();if(void 0===n&&null!==c&&(n=Ae(c,{[Ge.Open]:!0,[Ge.Closed]:!1})),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[u,d]=(0,t.useState)(n?"visible":"hidden"),p=gt((()=>{d("hidden")})),[m,f]=(0,t.useState)(!0),y=(0,t.useRef)([n]);Xe((()=>{!1!==m&&y.current[y.current.length-1]!==n&&(y.current.push(n),f(!1))}),[y,n]);let h=(0,t.useMemo)((()=>({show:n,appear:r,initial:m})),[n,r,m]);(0,t.useEffect)((()=>{if(n)d("visible");else if(ht(p)){let e=i.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&d("hidden")}else d("hidden")}),[n,p]);let g={unmount:a};return t.createElement(yt.Provider,{value:p},t.createElement(mt.Provider,{value:h},$e({ourProps:{...g,as:t.Fragment,children:t.createElement(xt,{ref:l,...g,...o})},theirProps:{},defaultTag:t.Fragment,features:wt,visible:"visible"===u,name:"Transition"})))})),_t=Ue((function(e,s){let n=null!==(0,t.useContext)(mt),r=null!==We();return t.createElement(t.Fragment,null,!n&&r?t.createElement(St,{ref:s,...e}):t.createElement(xt,{ref:s,...e}))})),kt=Object.assign(St,{Child:_t,Root:St});const Ot=t.forwardRef((function(e,s){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},e),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"}))})),Ct=t.forwardRef((function(e,s){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},e),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4"}))})),Pt=window.wp.i18n;var Rt=s(5890),Nt=s.n(Rt);const Tt=({link:e})=>{const s=(0,l.useMemo)((()=>(0,l.createInterpolateElement)((0,Pt.sprintf)(/* translators: %1$s expands to "Yoast SEO" academy, which is a clickable link. */
(0,Pt.__)("Want to learn SEO from Team Yoast? Check out our %1$s!","wordpress-seo"),"<link/>"),{link:(0,t.createElement)("a",{href:e,target:"_blank",rel:"noopener"},"Yoast SEO academy")})),[]);return(0,t.createElement)(c.Paper,{as:"div",className:"yst-p-6 yst-space-y-3"},(0,t.createElement)(c.Title,{as:"h2",size:"4",className:"yst-text-base yst-text-primary-500"},(0,Pt.__)("Learn SEO","wordpress-seo")),(0,t.createElement)("p",null,s,(0,t.createElement)("br",null),(0,Pt.__)("We have both free and premium online courses to learn everything you need to know about SEO.","wordpress-seo")),(0,t.createElement)(c.Link,{href:e,className:"yst-block",target:"_blank",rel:"noopener"},(0,Pt.sprintf)(/* translators: %1$s expands to "Yoast SEO academy". */
(0,Pt.__)("Check out %1$s","wordpress-seo"),"Yoast SEO academy")))};Tt.propTypes={link:Nt().string.isRequired};const It=t.forwardRef((function(e,s){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},e),t.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"}))})),Mt=t.forwardRef((function(e,s){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:s},e),t.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"}))})),Lt=({learnMoreLink:e,thumbnail:s,wistiaEmbedPermission:n,upsellLink:r,isProductCopy:a,title:o,upsellLabel:i,newToText:u,bundleNote:d})=>{const{onClose:p,initialFocus:m}=(0,c.useModalContext)(),f={a:(0,t.createElement)(jt,{href:e,className:"yst-inline-flex yst-items-center yst-gap-1 yst-no-underline yst-font-medium",variant:"primary"}),ArrowNarrowRightIcon:(0,t.createElement)(Mt,{className:"yst-w-4 yst-h-4 rtl:yst-rotate-180"})};return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"yst-px-10 yst-pt-10 yst-introduction-gradient yst-text-center"},(0,t.createElement)("div",{className:"yst-relative yst-w-full"},(0,t.createElement)(is,{videoId:"vmrahpfjxp",thumbnail:s,wistiaEmbedPermission:n}),(0,t.createElement)(c.Badge,{className:"yst-absolute yst-top-0 yst-right-2 yst-mt-2 yst-ml-2",variant:"info"},"Beta")),(0,t.createElement)("div",{className:"yst-mt-6 yst-text-xs yst-font-medium yst-flex yst-flex-col yst-items-center"},(0,t.createElement)("span",{className:"yst-introduction-modal-uppercase yst-flex yst-gap-2 yst-items-center"},(0,t.createElement)("span",{className:"yst-logo-icon"}),u))),(0,t.createElement)("div",{className:"yst-px-10 yst-pb-4 yst-flex yst-flex-col yst-items-center"},(0,t.createElement)("div",{className:"yst-mt-4 yst-mx-1.5 yst-text-center"},(0,t.createElement)("h3",{className:"yst-text-slate-900 yst-text-lg yst-font-medium"},o),(0,t.createElement)("div",{className:"yst-mt-2 yst-text-slate-600 yst-text-sm"},a?(0,l.createInterpolateElement)((0,Pt.sprintf)(/* translators: %1$s and %2$s are anchor tags; %3$s is the arrow icon. */
(0,Pt.__)("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>"),f):(0,l.createInterpolateElement)((0,Pt.sprintf)(/* translators: %1$s and %2$s are anchor tags; %3$s is the arrow icon. */
(0,Pt.__)("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>"),f))),(0,t.createElement)("div",{className:"yst-w-full yst-flex yst-mt-10"},(0,t.createElement)(c.Button,{as:"a",className:"yst-grow",size:"extra-large",variant:"upsell",href:r,target:"_blank",ref:m},(0,t.createElement)(It,{className:"yst--ml-1 yst-mr-2 yst-h-5 yst-w-5"}),i,(0,t.createElement)("span",{className:"yst-sr-only"},/* translators: Hidden accessibility text. */
(0,Pt.__)("(Opens in a new browser tab)","wordpress-seo")))),d,(0,t.createElement)(c.Button,{as:"a",className:"yst-mt-4",variant:"tertiary",onClick:p},(0,Pt.__)("Close","wordpress-seo"))))};Lt.propTypes={learnMoreLink:Nt().string.isRequired,upsellLink:Nt().string.isRequired,thumbnail:Nt().shape({src:Nt().string.isRequired,width:Nt().string,height:Nt().string}).isRequired,wistiaEmbedPermission:Nt().shape({value:Nt().bool.isRequired,status:Nt().string.isRequired,set:Nt().func.isRequired}).isRequired,title:Nt().string,upsellLabel:Nt().string,newToText:Nt().string,isProductCopy:Nt().bool,bundleNote:Nt().oneOfType([Nt().string,Nt().element])},Lt.defaultProps={title:(0,Pt.__)("Use AI to write your titles & meta descriptions!","wordpress-seo"),upsellLabel:(0,Pt.sprintf)(/* translators: %1$s expands to Yoast SEO Premium. */
(0,Pt.__)("Unlock with %1$s","wordpress-seo"),"Yoast SEO Premium"),newToText:"Yoast SEO Premium",isProductCopy:!1,bundleNote:""};var At;function Ft(){return Ft=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e},Ft.apply(this,arguments)}Nt().string,Nt().node.isRequired,Nt().node.isRequired,Nt().node,Nt().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 Dt=e=>t.createElement("svg",Ft({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 1000 1000"},e),At||(At=t.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"}))),zt=({to:e,idSuffix:s="",...n})=>{const r=(0,l.useMemo)((()=>(0,u.replace)((0,u.replace)(`link-${e}`,"/","-"),"--","-")),[e]);return(0,t.createElement)(c.SidebarNavigation.SubmenuItem,{as:Me,pathProp:"to",id:`${r}${s}`,to:e,...n})};zt.propTypes={to:Nt().string.isRequired,idSuffix:Nt().string};const jt=({href:e,children:s,...n})=>(0,t.createElement)(c.Link,{target:"_blank",rel:"noopener noreferrer",...n,href:e},s,(0,t.createElement)("span",{className:"yst-sr-only"},/* translators: Hidden accessibility text. */
(0,Pt.__)("(Opens in a new browser tab)","wordpress-seo")));jt.propTypes={href:Nt().string.isRequired,children:Nt().node},jt.defaultProps={children:null};const $t=t.forwardRef((function(e,s){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},e),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))}));var qt,Bt,Ut;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 n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e},Ht.apply(this,arguments)}const Vt=e=>t.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"},e),qt||(qt=t.createElement("defs",null,t.createElement("style",null,".star-rating-half_svg__cls-1{fill:#fbbf24}"))),Bt||(Bt=t.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"})),Ut||(Ut=t.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"})),t.createElement("path",{d:"m500 181.64-172.75-25.11L250 0v394.3l154.51 81.23L375 303.48l125-121.84z",style:{fill:"#f3f4f6"}}));function Zt(){return Zt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e},Zt.apply(this,arguments)}const Gt=e=>t.createElement("svg",Zt({xmlns:"http://www.w3.org/2000/svg","data-name":"Layer 1",viewBox:"0 0 500 475.53"},e),t.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 Wt,Yt,Kt,Qt,Jt,Xt,es,ts,ss;function ns(){return ns=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e},ns.apply(this,arguments)}const rs=e=>t.createElement("svg",ns({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 500 500"},e),Wt||(Wt=t.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"})),Yt||(Yt=t.createElement("path",{fill:"#6c2548",d:"M437.61 2 155.89 500H500V80a80 80 0 0 0-62.39-78z"})),Kt||(Kt=t.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"})),Qt||(Qt=t.createElement("circle",{cx:368.33,cy:124.68,r:97.34,fill:"#9fda4f",transform:"rotate(-45 368.335 124.68)"})),Jt||(Jt=t.createElement("path",{fill:"#77b227",d:"m416.2 39.93-95.74 169.51A97.34 97.34 0 1 0 416.2 39.93z"})),Xt||(Xt=t.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"})),es||(es=t.createElement("path",{fill:"#f49a00",d:"m294.5 254.59-62.56 110.76a63.6 63.6 0 1 0 62.56-110.76z"})),ts||(ts=t.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"})),ss||(ss=t.createElement("path",{fill:"#ed261f",d:"m202.9 416.8-37.54 66.48a38.17 38.17 0 0 0 37.54-66.48z"}))),as=({link:e,linkProps:s,promotions:n})=>{let r=(0,l.useMemo)((()=>(0,Pt.__)("Use AI to generate titles and meta descriptions, automatically redirect deleted pages, get 24/7 support, and much, much more!","wordpress-seo")),[]);const a=n.includes("black-friday-2024-promotion");let o=(0,l.createInterpolateElement)((0,Pt.sprintf)(/* translators: %1$s and %2$s expand to a span wrap to avoid linebreaks. %3$s expands to "Yoast SEO Premium". */
(0,Pt.__)("%1$sGet%2$s %3$s","wordpress-seo"),"<nowrap>","</nowrap>","Yoast SEO Premium"),{nowrap:(0,t.createElement)("span",{className:"yst-whitespace-nowrap"})});return a&&(r=(0,l.useMemo)((()=>(0,Pt.__)("If you were thinking about upgrading, now's the time! 30% OFF ends 3rd Dec 11am (CET)","wordpress-seo")),[]),o=(0,l.createInterpolateElement)((0,Pt.sprintf)(/* translators: %1$s and %2$s expand to a span wrap to avoid linebreaks. %3$s expands to "Yoast SEO Premium". */
(0,Pt.__)("%1$sBuy%2$s %3$s","wordpress-seo"),"<nowrap>","</nowrap>","Yoast SEO Premium"),{nowrap:(0,t.createElement)("span",{className:"yst-whitespace-nowrap"})})),(0,t.createElement)("div",{className:"yst-p-6 yst-rounded-lg yst-text-white yst-bg-primary-500 yst-shadow"},(0,t.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,t.createElement)(rs,null)),a&&(0,t.createElement)("div",{className:"sidebar__sale_banner_container"},(0,t.createElement)("div",{className:"sidebar__sale_banner"},(0,t.createElement)("span",{className:"banner_text"},(0,Pt.__)("30% OFF - BLACK FRIDAY","wordpress-seo")))),(0,t.createElement)(c.Title,{as:"h2",className:"yst-mt-6 yst-text-base yst-font-extrabold yst-text-white"},o),(0,t.createElement)("p",{className:"yst-mt-2"},r),(0,t.createElement)(c.Button,{as:"a",variant:"upsell",href:e,target:"_blank",rel:"noopener",className:"yst-flex yst-justify-center yst-gap-2 yst-mt-4 focus:yst-ring-offset-primary-500",...s},(0,t.createElement)("span",null,a?(0,Pt.__)("Buy now","wordpress-seo"):o),(0,t.createElement)($t,{className:"yst-w-4 yst-h-4 yst-icon-rtl"})),(0,t.createElement)("p",{className:"yst-text-center yst-text-xs yst-mx-2 yst-font-light yst-leading-5 yst-mt-2"},!a&&(0,t.createElement)(t.Fragment,null,(0,Pt.__)("Only $/€/£99 per year (ex VAT)","wordpress-seo"),(0,t.createElement)("br",null)),(0,Pt.__)("30-day money back guarantee.","wordpress-seo")),(0,t.createElement)("hr",{className:"yst-border-t yst-border-primary-300 yst-my-4"}),(0,t.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,t.createElement)("span",{className:"yst-font-medium yst-text-white hover:yst-underline"},(0,Pt.__)("Read reviews from real users","wordpress-seo")),(0,t.createElement)("span",{className:"yst-flex yst-gap-2 yst-mt-2 yst-items-center"},(0,t.createElement)(Dt,{className:"yst-w-5 yst-h-5"}),(0,t.createElement)("span",{className:"yst-flex yst-gap-1"},(0,t.createElement)(Gt,{className:"yst-w-5 yst-h-5"}),(0,t.createElement)(Gt,{className:"yst-w-5 yst-h-5"}),(0,t.createElement)(Gt,{className:"yst-w-5 yst-h-5"}),(0,t.createElement)(Gt,{className:"yst-w-5 yst-h-5"}),(0,t.createElement)(Vt,{className:"yst-w-5 yst-h-5"})),(0,t.createElement)("span",{className:"yst-text-sm yst-font-semibold yst-text-white"},"4.6 / 5"))))};as.propTypes={link:Nt().string.isRequired,linkProps:Nt().object,promotions:Nt().array},as.defaultProps={linkProps:{},promotions:[]},Nt().node.isRequired;const os=window.yoast.reactHelmet,is=({videoId:e,thumbnail:s,wistiaEmbedPermission:n})=>{const[r,a]=(0,l.useState)(n.value?A:M),o=(0,l.useCallback)((()=>a(A)),[a]),i=(0,l.useCallback)((()=>{n.value?o():a(L)}),[n.value,o,a]),u=(0,l.useCallback)((()=>a(M)),[a]),d=(0,l.useCallback)((()=>{n.set(!0),o()}),[n.set,o]);return(0,t.createElement)(t.Fragment,null,n.value&&(0,t.createElement)(os.Helmet,null,(0,t.createElement)("script",{src:"https://fast.wistia.com/assets/external/E-v1.js",async:!0})),(0,t.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"},r===M&&(0,t.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:i},(0,t.createElement)("img",{className:"yst-w-full yst-h-auto",alt:"",loading:"lazy",decoding:"async",...s})),r===L&&(0,t.createElement)("div",{className:"yst-absolute yst-inset-0 yst-flex yst-flex-col yst-items-center yst-justify-center yst-bg-white"},(0,t.createElement)("p",{className:"yst-max-w-xs yst-mx-auto yst-text-center"},n.status===T&&(0,t.createElement)(c.Spinner,null),n.status!==T&&(0,Pt.sprintf)(/* translators: %1$s expands to Yoast SEO. %2$s expands to Wistia. */
(0,Pt.__)("To see this video, you need to allow %1$s to load embedded videos from %2$s.","wordpress-seo"),"Yoast SEO","Wistia")),(0,t.createElement)("div",{className:"yst-flex yst-mt-6 yst-gap-x-4"},(0,t.createElement)(c.Button,{type:"button",variant:"secondary",onClick:u,disabled:n.status===T},(0,Pt.__)("Deny","wordpress-seo")),(0,t.createElement)(c.Button,{type:"button",variant:"primary",onClick:d,disabled:n.status===T},(0,Pt.__)("Allow","wordpress-seo")))),n.value&&r===A&&(0,t.createElement)("div",{className:"yst-absolute yst-w-full yst-h-full yst-top-0 yst-left-0"},null===e&&(0,t.createElement)(c.Spinner,{className:"yst-h-full yst-mx-auto"}),null!==e&&(0,t.createElement)("div",{className:`wistia_embed wistia_async_${e} videoFoam=true`}))))};is.propTypes={videoId:Nt().string.isRequired,thumbnail:Nt().shape({src:Nt().string.isRequired,width:Nt().string,height:Nt().string}).isRequired,wistiaEmbedPermission:Nt().shape({value:Nt().bool.isRequired,status:Nt().string.isRequired,set:Nt().func.isRequired}).isRequired};const ls=({learnMoreLink:e,thumbnail:s,wistiaEmbedPermission:n,upsellLink:r,upsellLabel:a})=>{const{onClose:o,initialFocus:i}=(0,c.useModalContext)(),u={a:(0,t.createElement)(jt,{href:e,className:"yst-inline-flex yst-items-center yst-gap-1 yst-no-underline yst-font-medium",variant:"primary"}),ArrowNarrowRightIcon:(0,t.createElement)(Mt,{className:"yst-w-4 yst-h-4 rtl:yst-rotate-180"}),br:(0,t.createElement)("br",null)};return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"yst-px-10 yst-pt-10 yst-introduction-gradient yst-text-center"},(0,t.createElement)("div",{className:"yst-relative yst-w-full"},(0,t.createElement)(is,{videoId:"vun9z1dpfh",thumbnail:s,wistiaEmbedPermission:n}),(0,t.createElement)(c.Badge,{className:"yst-absolute yst-right-0 yst-mr-4 yst-text-center yst-justify-center",variant:"info",style:{top:"-8px"}},(0,Pt.__)("Beta","wordpress-seo-premium"))),(0,t.createElement)("div",{className:"yst-mt-6 yst-text-xs yst-font-medium yst-flex yst-flex-col yst-items-center"},(0,t.createElement)("span",{className:"yst-introduction-modal-uppercase yst-flex yst-gap-2 yst-items-center"},(0,t.createElement)("span",{className:"yst-logo-icon"}),"Yoast SEO Premium"))),(0,t.createElement)("div",{className:"yst-px-10 yst-pb-4 yst-flex yst-flex-col yst-items-center"},(0,t.createElement)("div",{className:"yst-mt-4 yst-mx-1.5 yst-text-center"},(0,t.createElement)("h3",{className:"yst-text-slate-900 yst-text-lg yst-font-medium"},(0,Pt.sprintf)(/* translators: %s: Expands to "Yoast AI" */
(0,Pt.__)("Optimize your SEO content with %s","wordpress-seo"),"Yoast AI")),(0,t.createElement)("div",{className:"yst-mt-2 yst-text-slate-600 yst-text-sm"},(0,l.createInterpolateElement)((0,Pt.sprintf)(/* translators: %1$s is a break tag; %2$s and %3$s are anchor tags; %4$s is the arrow icon. */
(0,Pt.__)("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,t.createElement)("div",{className:"yst-w-full yst-flex yst-mt-6"},(0,t.createElement)(c.Button,{as:"a",className:"yst-grow",size:"extra-large",variant:"upsell",href:r,target:"_blank",ref:i},(0,t.createElement)(It,{className:"yst--ml-1 yst-mr-2 yst-h-5 yst-w-5"}),a,(0,t.createElement)("span",{className:"yst-sr-only"},/* translators: Hidden accessibility text. */
(0,Pt.__)("(Opens in a new browser tab)","wordpress-seo")))),(0,t.createElement)(c.Button,{as:"a",className:"yst-mt-4",variant:"tertiary",onClick:o},(0,Pt.__)("Close","wordpress-seo"))))};var cs,us;function ds(){return ds=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e},ds.apply(this,arguments)}ls.propTypes={learnMoreLink:Nt().string.isRequired,upsellLink:Nt().string.isRequired,thumbnail:Nt().shape({src:Nt().string.isRequired,width:Nt().string,height:Nt().string}).isRequired,wistiaEmbedPermission:Nt().shape({value:Nt().bool.isRequired,status:Nt().string.isRequired,set:Nt().func.isRequired}).isRequired,upsellLabel:Nt().string},ls.defaultProps={upsellLabel:(0,Pt.sprintf)(/* translators: %1$s expands to Yoast SEO Premium. */
(0,Pt.__)("Unlock with %1$s","wordpress-seo"),"Yoast SEO Premium")};const ps=e=>t.createElement("svg",ds({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:"yoast-logo_svg__w-40",viewBox:"0 0 842 224"},e),cs||(cs=t.createElement("path",{fill:"#a61e69",d:"M166.55 54.09c-38.69 0-54.17 25.97-54.17 54.88s15.25 56.02 54.17 56.02 54.07-27.19 54-54.26c-.09-32.97-16.77-56.65-54-56.65Zm-23.44 56.52c.94-38.69 30.66-38.65 40.59-24.79 9.05 12.63 10.9 55.81-17.14 55.5-12.92-.14-23.06-8.87-23.44-30.71Zm337.25 27.55V82.11h20.04V57.78h-20.04V28.39h-30.95v29.39h-15.7v24.33h15.7v52.87c0 30.05 20.95 47.91 43.06 51.61l9.24-24.88c-12.89-1.63-21.23-11.27-21.35-23.54Zm-156.15-8.87V87.16c0-1.54-.1-2.98-.25-4.39-2.68-34.04-51.02-33.97-88.46-20.9l10.82 21.78c24.38-11.58 38.97-8.59 44.07-2.89.13.15.26.29.38.45.01.02.03.04.04.06 2.6 3.51 1.98 9.05 1.98 13.41-31.86 0-65.77 4.23-65.77 39.17 0 26.56 33.28 43.65 68.06 18.33l5.16 12.45h29.81c-2.66-14.62-5.85-27.14-5.85-35.34Zm-31.18-.23c-24.51 27.43-46.96 1.61-23.97-9.65 6.77-2.31 15.95-2.41 23.97-2.41v12.06Zm78.75-44.17c0-10.38 16.61-15.23 42.82-3.27l9.06-22.01c-35.27-10.66-83.44-11.62-83.75 25.28-.15 17.68 11.19 27.19 27.52 33.26 11.31 4.2 27.64 6.38 27.59 15.39-.06 11.77-25.38 13.57-48.42-2.26l-9.31 23.87c31.43 15.64 89.87 16.08 89.56-23.12-.31-38.76-55.08-32.11-55.08-47.14ZM99.3 1 54.44 125.61 32.95 58.32H1l35.78 91.89a33.49 33.49 0 0 1 0 24.33c-4 10.25-10.65 19.03-26.87 21.21v27.24c31.58 0 48.65-19.41 63.88-61.96L133.48 1H99.3ZM598.64 139.05c0 8.17-2.96 14.58-8.87 19.23-5.91 4.65-14.07 6.98-24.47 6.98s-18.92-1.61-25.54-4.84v-14.2c4.19 1.97 8.65 3.52 13.37 4.65 4.72 1.13 9.11 1.7 13.18 1.7 5.95 0 10.35-1.13 13.18-3.39 2.83-2.26 4.25-5.3 4.25-9.11 0-3.43-1.3-6.35-3.9-8.74-2.6-2.39-7.97-5.22-16.1-8.48-8.39-3.39-14.3-7.27-17.74-11.63-3.44-4.36-5.16-9.59-5.16-15.71 0-7.67 2.72-13.7 8.18-18.1 5.45-4.4 12.77-6.6 21.95-6.6s17.57 1.93 26.29 5.78l-4.78 12.26c-8.18-3.43-15.47-5.15-21.89-5.15-4.87 0-8.55 1.06-11.07 3.17-2.52 2.12-3.77 4.91-3.77 8.39 0 2.39.5 4.43 1.51 6.13s2.66 3.3 4.97 4.81c2.3 1.51 6.46 3.5 12.45 5.97 6.75 2.81 11.7 5.43 14.85 7.86 3.15 2.43 5.45 5.18 6.92 8.23 1.46 3.06 2.2 6.66 2.2 10.81Zm68.53 24.96h-52.02V72.12h52.02v12.7h-36.99v25.01h34.66v12.57h-34.66v28.85h36.99v12.76Zm100.24-46.07c0 14.96-3.74 26.59-11.23 34.88-7.49 8.3-18.08 12.44-31.8 12.44s-24.54-4.12-31.99-12.35c-7.44-8.23-11.17-19.93-11.17-35.1s3.74-26.82 11.23-34.95c7.49-8.13 18.17-12.19 32.05-12.19s24.24 4.13 31.7 12.38c7.47 8.26 11.2 19.88 11.2 34.88Zm-70.2 0c0 11.31 2.29 19.89 6.86 25.74 4.57 5.85 11.35 8.77 20.32 8.77s15.67-2.89 20.22-8.67c4.55-5.78 6.82-14.39 6.82-25.83s-2.25-19.82-6.76-25.64-11.23-8.74-20.16-8.74-15.82 2.91-20.41 8.74c-4.59 5.82-6.89 14.37-6.89 25.64Z"})),us||(us=t.createElement("path",{fill:"#77b227",d:"m790.45 165.35 36.05-94.96H840l-36.02 94.96h-13.53z"}))),ms=(e,t=[],...s)=>(0,a.useSelect)((t=>{var n,r;return null===(n=(r=t(z))[e])||void 0===n?void 0:n.call(r,...s)}),t);var fs=s(4530),ys=s.n(fs);(0,Pt.__)("E.g. https://www.facebook.com/yoast","wordpress-seo"),(0,Pt.__)("E.g. https://www.instagram.com/yoast","wordpress-seo"),(0,Pt.__)("E.g. https://www.linkedin.com/yoast","wordpress-seo"),(0,Pt.__)("E.g. https://www.myspace.com/yoast","wordpress-seo"),(0,Pt.__)("E.g. https://www.pinterest.com/yoast","wordpress-seo"),(0,Pt.__)("E.g. https://www.soundcloud.com/yoast","wordpress-seo"),(0,Pt.__)("E.g. https://www.tumblr.com/yoast","wordpress-seo"),(0,Pt.__)("E.g. https://www.twitter.com/yoast","wordpress-seo"),(0,Pt.__)("E.g. https://www.youtube.com/yoast","wordpress-seo"),(0,Pt.__)("E.g. https://www.wikipedia.com/yoast","wordpress-seo");const hs=e=>`error-${e}`,gs=(e,{isVisible:t})=>t?{"aria-invalid":!0,"aria-describedby":hs(e)}:{};function bs({active:e,selected:t}){return ys()("yst-relative yst-cursor-default yst-select-none yst-py-2 yst-pl-3 yst-pr-9 yst-my-0",t&&"yst-bg-primary-500 yst-text-white",e&&!t&&"yst-bg-primary-200 yst-text-slate-700",!e&&!t&&"yst-text-slate-700")}function vs(e,t){const s=function(e,t){return e.includes(t)?[...e]:[...e,t]}(e.editedSteps,t);return{...e,editedSteps:s}}function Es(e,t){let s=(0,u.cloneDeep)(e);switch(t.type){case"SET_COMPANY_OR_PERSON":return s=vs(s,2),s.companyOrPerson=t.payload,s.companyOrPersonLabel=s.companyOrPersonOptions.filter((e=>e.value===t.payload)).pop().label,s;case"CHANGE_COMPANY_NAME":return s=vs(s,2),s.companyName=t.payload,s;case"SET_COMPANY_LOGO":return s=vs(s,2),s.companyLogo=t.payload.url,s.companyLogoId=t.payload.id,s;case"REMOVE_COMPANY_LOGO":return s=vs(s,2),s.companyLogo="",s.companyLogoId="",s;case"CHANGE_WEBSITE_NAME":return s=vs(s,2),s.websiteName=t.payload,s;case"SET_PERSON_LOGO":return s=vs(s,2),s.personLogo=t.payload.url,s.personLogoId=t.payload.id,s;case"REMOVE_PERSON_LOGO":return s=vs(s,2),s.personLogo="",s.personLogoId="",s;case"SET_PERSON":return s=vs(s,2),s.personId=t.payload.value,s.personName=t.payload.label,s;case"SET_CAN_EDIT_USER":return s=vs(s,2),s.canEditUser=!0===t.payload?1:0,s;case"CHANGE_SOCIAL_PROFILE":return s=vs(s,3),s.socialProfiles[t.payload.socialMedium]=t.payload.value,s.errorFields=s.errorFields.filter((e=>"facebookUrl"===t.payload.socialMedium?"facebook_site"!==e:"twitterUsername"!==t.payload.socialMedium||"twitter_site"!==e)),s;case"CHANGE_OTHERS_SOCIAL_PROFILE":return s=vs(s,3),s.socialProfiles.otherSocialUrls[t.payload.index]=t.payload.value,s.errorFields=s.errorFields.filter((e=>e!==`other_social_urls-${t.payload.index}`)),s;case"ADD_OTHERS_SOCIAL_PROFILE":return s=vs(s,3),s.socialProfiles.otherSocialUrls=[...s.socialProfiles.otherSocialUrls,t.payload.value],s;case"REMOVE_OTHERS_SOCIAL_PROFILE":return s=vs(s,3),s.socialProfiles.otherSocialUrls.splice(t.payload.index,1),s.errorFields=(n=s.errorFields,r=t.payload.index,n.map((e=>{const t=parseInt(e.replace("other_social_urls-",""),10);return t===r?"remove":t>r?"other_social_urls-"+(t-1):e})).filter((e=>"remove"!==e))),s;case"SET_ERROR_FIELDS":return s.errorFields=t.payload,s;case"SET_STEP_ERROR":return s.stepErrors[t.payload.step]=t.payload.message,s;case"REMOVE_STEP_ERROR":return s.stepErrors=(0,u.pickBy)(s.stepErrors,((e,s)=>s!==t.payload)),s;case"SET_TRACKING":return s=vs(s,4),s.tracking=t.payload,s;default:return s}var n,r}const ws=t.forwardRef((function(e,s){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},e),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"}))})),xs=t.forwardRef((function(e,s){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:s},e),t.createElement("path",{fillRule:"evenodd",d:"M10 3a1 1 0 011 1v5h5a1 1 0 110 2h-5v5a1 1 0 11-2 0v-5H4a1 1 0 110-2h5V4a1 1 0 011-1z",clipRule:"evenodd"}))})),Ss=({items:e,onAddProfile:s,onRemoveProfile:n,onChangeProfile:r,errorFields:a,fieldType:o,addButtonChildren:i})=>{const u=(0,l.useCallback)((e=>{n(parseInt(e.currentTarget.dataset.index,10))}),[n]);return(0,t.createElement)("div",null,e.map(((e,s)=>(0,t.createElement)("div",{key:`url-${s}`},(0,t.createElement)("div",{className:"yst-w-full yst-flex yst-items-start yst-mt-4"},(0,t.createElement)(o,{className:"yst-grow",label:(0,Pt.__)("Other social profile","wordpress-seo"),id:`social-input-other-url-${s}`,value:e,socialMedium:"other",index:s,onChange:r,placeholder:(0,Pt.__)("E.g. https://social-platform.com/yoast","wordpress-seo"),feedback:{type:"error",isVisible:a.includes("other_social_urls-"+s),message:[(0,Pt.__)("Could not save this value. Please check the URL.","wordpress-seo")]}}),(0,t.createElement)("button",{type:"button",className:"yst-mt-[27.5px] yst-ml-2 yst-p-3 yst-text-slate-500 yst-rounded-md hover:yst-text-primary-500 focus:yst-text-primary-500 focus:yst-outline-none focus:yst-ring-2 focus:yst-ring-primary-500 yst-no-underline;",id:`remove-profile-${s}`,"data-index":s,onClick:u},(0,t.createElement)("span",{className:"yst-sr-only"},/* translators: Hidden accessibility text. */
(0,Pt.__)("Delete item","wordpress-seo")),(0,t.createElement)(ws,{className:"yst-w-5 yst-h-5"})))))),(0,t.createElement)(c.Button,{id:"add-profile",variant:"secondary",className:"yst-items-center yst-mt-8",onClick:s,"data-hiive-event-name":"clicked_add_profile"},(0,t.createElement)(xs,{className:"yst-w-5 yst-h-5 yst-mr-1 yst-text-slate-400"}),i))};Ss.propTypes={fieldType:Nt().elementType.isRequired,items:Nt().array.isRequired,onAddProfile:Nt().func.isRequired,onRemoveProfile:Nt().func.isRequired,onChangeProfile:Nt().func.isRequired,errorFields:Nt().array,addButtonChildren:Nt().node},Ss.defaultProps={errorFields:[],addButtonChildren:(0,Pt.__)("Add another profile","wordpress-seo")};const _s=Ss,ks=t.forwardRef((function(e,s){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:s},e),t.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z",clipRule:"evenodd"}))})),Os=t.forwardRef((function(e,s){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:s},e),t.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))})),Cs=({texts:e,id:s,as:n,...r})=>{const a=(0,l.useMemo)((()=>(0,u.last)(e)),[e]);return(0,t.createElement)(n,{id:s,...r},e.map(((e,n)=>(0,t.createElement)(l.Fragment,{key:`${s}-text-${n}`},e,a!==e&&(0,t.createElement)("br",null)))))};Cs.defaultProps={as:"p"},Cs.propTypes={texts:Nt().arrayOf(Nt().string).isRequired,id:Nt().string.isRequired,as:Nt().oneOfType([Nt().string,Nt().elementType])};const Ps=Cs;function Rs({hasError:e,hasSuccess:s}){return e?(0,t.createElement)("div",{className:"yst-flex yst-items-center yst-absolute yst-inset-y-0 yst-right-0 yst-mr-3"},(0,t.createElement)(ks,{className:"yst-pointer-events-none yst-h-5 yst-w-5 yst-text-red-500"})):s?(0,t.createElement)("div",{className:"yst-flex yst-items-center yst-absolute yst-inset-y-0 yst-right-0 yst-mr-3"},(0,t.createElement)(Os,{className:"yst-pointer-events-none yst-h-5 yst-w-5 yst-text-emerald-600"})):null}function Ns({className:e,id:s,label:n,description:r,value:a,onChange:o,placeholder:i,feedback:c,type:u,...d}){const p=u||"text",m=(0,l.useMemo)((()=>c.isVisible&&"error"===c.type),[c.isVisible,c.type]),f=(0,l.useMemo)((()=>c.isVisible&&"success"===c.type),[c.isVisible,c.type]);return(0,t.createElement)("div",{className:e},n&&(0,t.createElement)("label",{className:"yst-block yst-mb-2 yst-font-medium yst-text-slate-700",htmlFor:s},n),(0,t.createElement)("div",{className:"yst-relative"},(0,t.createElement)("input",{id:s,type:p,value:a,className:ys()("yst-block yst-w-full yst-h-[45px] yst-input focus:yst-ring-1",{"yst-border-red-300 yst-text-red-900 focus:yst-ring-red-500 focus:yst-border-red-500":m,"yst-border-emerald-600 yst-text-slate-700 focus:yst-ring-emerald-600 focus:yst-border-emerald-600":f,"yst-text-slate-700 yst-border-slate-300 focus:yst-ring-primary-500 focus:yst-border-primary-500":!m&&!f}),onChange:o,placeholder:i,...gs(s,c),...d}),(0,t.createElement)(Rs,{hasError:m,hasSuccess:f})),c.isVisible&&(0,t.createElement)(Ps,{id:`${m?"error-":"success-"}${s}`,className:ys()("yst-mt-2 yst-text-sm",{"yst-text-red-600":m,"yst-text-emerald-600":f}),texts:c.message}),r)}function Ts({id:e,onChange:s,socialMedium:n,isDisabled:r,...a}){const o=(0,l.useCallback)((e=>{s(e.target.value,"other"===n?a.index:n)}),[n,a.index]);return(0,t.createElement)(Ns,{onChange:o,disabled:r,id:e,...a})}function Is({socialProfiles:e,errorFields:s,dispatch:n}){const r=(0,l.useCallback)(((e,t)=>{n({type:"CHANGE_SOCIAL_PROFILE",payload:{socialMedium:t,value:e}})}),[]),a=(0,l.useCallback)(((e,t)=>{n({type:"CHANGE_OTHERS_SOCIAL_PROFILE",payload:{index:t,value:e}})}),[]),o=(0,l.useCallback)((()=>{n({type:"ADD_OTHERS_SOCIAL_PROFILE",payload:{value:""}})}),[]),i=(0,l.useCallback)((e=>{n({type:"REMOVE_OTHERS_SOCIAL_PROFILE",payload:{index:e}})}),[]);return(0,t.createElement)(Ms,{socialProfiles:e,onChangeHandler:r,onChangeOthersHandler:a,onAddProfileHandler:o,onRemoveProfileHandler:i,errorFields:s})}function Ms({socialProfiles:e,onChangeHandler:s,onChangeOthersHandler:n,onAddProfileHandler:r,onRemoveProfileHandler:a,errorFields:o}){return(0,t.createElement)("div",{id:"social-input-section"},(0,t.createElement)(Ts,{className:"yst-mt-4",label:(0,Pt.__)("Facebook","wordpress-seo"),id:"social-input-facebook-url",value:e.facebookUrl,socialMedium:"facebookUrl",onChange:s,placeholder:(0,Pt.__)("E.g. https://facebook.com/yoast","wordpress-seo"),feedback:{message:[(0,Pt.__)("Could not save this value. Please check the URL.","wordpress-seo")],isVisible:o.includes("facebook_site"),type:"error"}}),(0,t.createElement)(Ts,{className:"yst-mt-4",label:(0,Pt.__)("X","wordpress-seo"),id:"social-input-twitter-url",value:e.twitterUsername,socialMedium:"twitterUsername",onChange:s,placeholder:(0,Pt.__)("E.g. https://x.com/yoast","wordpress-seo"),feedback:{message:[(0,Pt.__)("Could not save this value. Please check the URL or username.","wordpress-seo")],isVisible:o.includes("twitter_site"),type:"error"}}),(0,t.createElement)(_s,{items:e.otherSocialUrls,onAddProfile:r,onRemoveProfile:a,onChangeProfile:n,errorFields:o,fieldType:Ts}))}Rs.propTypes={hasError:Rt.PropTypes.bool,hasSuccess:Rt.PropTypes.bool},Rs.defaultProps={hasError:!1,hasSuccess:!1},Ns.propTypes={className:Rt.PropTypes.string,id:Rt.PropTypes.string.isRequired,label:Rt.PropTypes.string,description:Rt.PropTypes.node,value:Rt.PropTypes.string,onChange:Rt.PropTypes.func.isRequired,placeholder:Rt.PropTypes.string,feedback:Rt.PropTypes.shape({type:Rt.PropTypes.string,message:Rt.PropTypes.array,isVisible:Rt.PropTypes.bool}),type:Rt.PropTypes.string},Ns.defaultProps={value:"",className:"",label:"",description:null,placeholder:"",feedback:{message:[],isVisible:!1},type:"text"},Ts.propTypes={id:Nt().string.isRequired,onChange:Nt().func.isRequired,socialMedium:Nt().string,isDisabled:Nt().bool},Ts.defaultProps={socialMedium:"",isDisabled:!1},Is.propTypes={socialProfiles:Nt().object.isRequired,dispatch:Nt().func.isRequired,errorFields:Nt().array},Is.defaultProps={errorFields:[]},Ms.propTypes={socialProfiles:Nt().object.isRequired,onChangeHandler:Nt().func.isRequired,onChangeOthersHandler:Nt().func.isRequired,onAddProfileHandler:Nt().func.isRequired,onRemoveProfileHandler:Nt().func.isRequired,errorFields:Nt().array.isRequired};const Ls=t.forwardRef((function(e,s){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:s},e),t.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z",clipRule:"evenodd"}))})),As=t.forwardRef((function(e,s){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:s},e),t.createElement("path",{fillRule:"evenodd",d:"M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",clipRule:"evenodd"}))})),Fs=t.forwardRef((function(e,s){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:s},e),t.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"}))}));var Ds=s(8133);function zs({type:e,children:s,className:n}){let r,a;switch(e){case"info":r=(0,t.createElement)(Ls,{"aria-hidden":"true",className:"yst-flex-shrink-0 yst-w-5 yst-h-5 yst-text-blue-500"}),a="yst-bg-blue-100 yst-text-blue-800";break;case"warning":r=(0,t.createElement)(As,{"aria-hidden":"true",className:"yst-flex-shrink-0 yst-w-5 yst-h-5 yst-text-yellow-500"}),a="yst-bg-yellow-100 yst-text-yellow-800";break;case"error":r=(0,t.createElement)(Fs,{"aria-hidden":"true",className:"yst-flex-shrink-0 yst-w-5 yst-h-5 yst-text-red-500"}),a="yst-bg-red-100 yst-text-red-800";break;case"success":r=(0,t.createElement)(Os,{"aria-hidden":"true",className:"yst-flex-shrink-0 yst-w-5 yst-h-5 yst-text-emerald-600"}),a="yst-bg-green-100 yst-text-green-800"}return(0,t.createElement)("div",{className:ys()("yst-flex yst-p-4 yst-rounded-md",a,n)},r,(0,t.createElement)("div",{className:"yst-flex-1 yst-ml-3 yst-text-sm"},s))}function js({id:e,isVisible:s,expandDuration:n,type:r,children:a,className:o}){const[i,c]=(0,l.useState)(s?"yst-opacity-100":"yst-opacity-0"),u=(0,l.useCallback)((()=>{c("yst-opacity-100")}),[]);return(0,t.createElement)(Ds.Z,{id:e,height:s?"auto":0,easing:"linear",duration:n,onAnimationEnd:u},(0,t.createElement)(zs,{type:r,className:ys()("yst-transition-opacity yst-duration-300 yst-mt-4",i,o)},a))}function $s({state:e,dispatch:s,setErrorFields:n}){const r=(0,Pt.__)("If you select a Person to represent this site, we will use the social profiles from the selected user's profile page.","wordpress-seo"),a=(0,l.createInterpolateElement)((0,Pt.sprintf)(
// translators: %1$s is replaced by the selected person's username.
(0,Pt.__)("You have selected the user %1$s as the person this site represents.","wordpress-seo"),`<b>${e.personName}</b>`),{b:(0,t.createElement)("b",null)}),o=(0,l.createInterpolateElement)((0,Pt.sprintf)(
// translators: %1$s and %2$s is replaced by a link to the selected person's profile page.
(0,Pt.__)("You can %1$supdate or add social profiles to this user profile%2$s.","wordpress-seo"),"<a>","</a>"),{a:(0,t.createElement)("a",{id:"yoast-configuration-person-social-profiles-user-link",href:window.wpseoScriptData.userEditUrl.replace("{user_id}",e.personId),target:"_blank",rel:"noopener noreferrer","data-hiive-event-name":"clicked_update_or_add_profile | social profiles"})}),i=(0,Pt.__)("You're not allowed to edit the social profiles of this user. Please ask this user or an admin to do this.","wordpress-seo");return["company","emptyChoice"].includes(e.companyOrPerson)?(0,t.createElement)(l.Fragment,null,(0,t.createElement)("p",null,(0,Pt.__)("Fantastic work! Add your organization's social media accounts below. This allows us to fine-tune the metadata for these platforms.","wordpress-seo")),(0,t.createElement)(Is,{socialProfiles:e.socialProfiles,dispatch:s,errorFields:e.errorFields,setErrorFields:n})):0===e.personId?(0,t.createElement)(l.Fragment,null,(0,t.createElement)("p",null,r),(0,t.createElement)(zs,{type:"info",className:"yst-mt-5"},
// translators: please note that "Site representation" here refers to the name of a step in the first-time configuration, so this occurrence needs to be translated in the same manner as that step's heading.
(0,Pt.__)("Please select a user in the Site representation step.","wordpress-seo"))):(0,t.createElement)(l.Fragment,null,(0,t.createElement)("p",null,a," ",e.canEditUser?o:i))}zs.propTypes={type:Nt().oneOf(["info","warning","error","success"]),children:Nt().oneOfType([Nt().arrayOf(Nt().node),Nt().node]).isRequired,className:Nt().string},zs.defaultProps={type:"info",className:""},js.propTypes={id:Nt().string.isRequired,isVisible:Nt().bool.isRequired,type:Nt().oneOf(["info","warning","error","success"]),children:Nt().oneOfType([Nt().arrayOf(Nt().node),Nt().node]).isRequired,expandDuration:Nt().number,className:Nt().string},js.defaultProps={expandDuration:400,type:"info",className:""},$s.propTypes={state:Nt().object.isRequired,dispatch:Nt().func.isRequired,setErrorFields:Nt().func.isRequired};const qs={slideDuration:500,fadeDuration:200,delayBeforeOpening:900,delayBeforeFadingIn:1400,delayBeforeClosing:200},Bs={fadeDuration:"yst-duration-200",slideDuration:"yst-duration-500",delayBeforeOpening:"yst-delay-[900ms]",delayUntilStepFaded:"yst-delay-200"},Us=t.forwardRef((function(e,s){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:s},e),t.createElement("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"}))})),{slideDuration:Hs,delayUntilStepFaded:Vs}=Bs,Zs=`yst-transition-opacity ${Hs} yst-absolute yst-inset-0 yst-border-2 yst-flex yst-items-center yst-justify-center yst-rounded-full`;function Gs(e){return`${Zs} ${e?"yst-opacity-100":`${Vs} yst-opacity-0`}`}function Ws({isVisible:e}){return(0,t.createElement)("span",{className:`yst-bg-white yst-border-primary-500 ${Gs(e)}`},(0,t.createElement)("span",{className:"yst-h-2.5 yst-w-2.5 yst-rounded-full yst-bg-primary-500"}))}function Ys({isVisible:e}){return(0,t.createElement)("span",{className:`yst-bg-primary-500 yst-border-primary-500 ${Gs(e)}`},(0,t.createElement)(Us,{className:"yst-w-5 yst-h-5 yst-text-white","aria-hidden":"true"}))}function Ks({isVisible:e}){return(0,t.createElement)("span",{className:`yst-bg-white yst-border-slate-300 ${Gs(e)}`},(0,t.createElement)("span",{className:"yst-h-2.5 yst-w-2.5 yst-rounded-full yst-bg-transparent"}))}function Qs({activationDelay:e,deactivationDelay:s,isFinished:n}){const{activeStepIndex:r,stepIndex:a,lastStepIndex:o}=cn(),i=a===o,c=r===a,[u,d]=(0,l.useState)((()=>!!c&&!i));return(0,l.useEffect)((()=>{if(c){const t=setTimeout((()=>{d(!0)}),e);return()=>clearTimeout(t)}const t=setTimeout((()=>{d(!1)}),s);return()=>clearTimeout(t)}),[c,i,e,s]),(0,t.createElement)("span",{className:"yst-relative yst-z-10 yst-w-8 yst-h-8 yst-rounded-full"},(0,t.createElement)(Ks,{isVisible:!0}),(0,t.createElement)(Ys,{isVisible:n}),(0,t.createElement)(Ws,{isVisible:u&&!i}))}function Js(e,t,s){return t&&!s?"yst-text-primary-500":e?"yst-text-slate-900":"yst-text-slate-600"}function Xs({name:e,description:s,isFinished:n,children:r}){const{stepIndex:a,activeStepIndex:o,lastStepIndex:i}=cn(),c=o===a,u=i===a,[d,p]=(0,l.useState)(Js(n,c,u));return(0,l.useEffect)((()=>{if(c){const e=Js(n,c,u),t=setTimeout((()=>p(e)),qs.delayBeforeOpening);return()=>clearTimeout(t)}const e=Js(n,c,u);p(e)}),[o,n,u,Js]),(0,t.createElement)("div",{className:"yst-relative yst-flex yst-items-center yst-group","aria-current":c?"step":null},(0,t.createElement)("span",{className:"yst-flex yst-items-center","aria-hidden":c?"true":null},(0,t.createElement)(Qs,{activationDelay:qs.delayBeforeOpening,deactivationDelay:0,isFinished:n})),(0,t.createElement)("span",{className:"yst-ml-4 yst-min-w-0 yst-flex yst-flex-col"},(0,t.createElement)("span",{className:`yst-transition-colors yst-duration-500 yst-text-xs yst-font-[650] yst-tracking-wide yst-uppercase ${d}`},e),s&&(0,t.createElement)("span",{className:"yst-text-sm yst-text-slate-600"},s)),r)}Ws.propTypes={isVisible:Nt().bool},Ws.defaultProps={isVisible:!0},Ys.propTypes={isVisible:Nt().bool},Ys.defaultProps={isVisible:!0},Ks.propTypes={isVisible:Nt().bool},Ks.defaultProps={isVisible:!0},Qs.propTypes={isFinished:Nt().bool.isRequired,activationDelay:Nt().number,deactivationDelay:Nt().number},Qs.defaultProps={activationDelay:0,deactivationDelay:0},Xs.propTypes={name:Nt().string.isRequired,isFinished:Nt().bool.isRequired,description:Nt().string,children:Nt().node},Xs.defaultProps={description:"",children:[]};const{slideDuration:en,delayBeforeOpening:tn,delayBeforeFadingIn:sn,delayBeforeClosing:nn}=qs,{fadeDuration:rn,delayUntilStepFaded:an,slideDuration:on}=Bs,ln=(0,l.createContext)();function cn(){const e=(0,l.useContext)(ln);if(!e)throw new Error("Stepper compound components cannot be rendered outside the Stepper component");return e}function un({beforeGo:e,children:s,destination:n,...r}){const{stepIndex:a,setActiveStepIndex:o,lastStepIndex:i}=cn(),u=(0,l.useCallback)((()=>{o("string"==typeof n?"last"===n?i:0:a+n)}),[a,i,o,n]),d=(0,l.useCallback)((async()=>{let t=!0;e&&(t=!1,t=await e()),t&&u()}),[u,e]);return(0,t.createElement)(c.Button,{onClick:d,...r},s)}function dn({children:e,...s}){const{stepIndex:n,setActiveStepIndex:r}=cn(),a=(0,l.useCallback)((()=>{r(n)}),[r,n]);return(0,t.createElement)(c.Button,{onClick:a,variant:"secondary",size:"small",...s},e)}function pn({children:e}){const{lastStepIndex:s,stepIndex:n,activeStepIndex:r}=cn();return(0,t.createElement)(l.Fragment,null,n!==s&&(0,t.createElement)(l.Fragment,null,(0,t.createElement)("div",{className:"yst--ml-px yst-absolute yst-left-4 yst-w-0.5 yst-h-full yst-bg-slate-300 yst--bottom-6","aria-hidden":"true"}),(0,t.createElement)("div",{className:`yst-h-12 yst-transition-transform ${an} yst-ease-linear ${on} ${n<r?"yst-scale-y-1":"yst-scale-y-0"} yst-origin-top yst--ml-px yst-absolute yst-left-4 yst-w-0.5 yst-bg-primary-500 yst-top-8`,"aria-hidden":"true"})),e)}function mn({id:e,message:s,className:n}){return(0,t.createElement)(js,{id:e,type:"error",isVisible:!!s,className:n},(0,Pt.sprintf)(/* translators: %1$s expands to the error message returned by the server */
(0,Pt.__)("An error has occurred: %1$s","wordpress-seo"),s))}function fn({children:e}){const{activeStepIndex:s,stepIndex:n}=cn(),r=s===n,[a,o]=(0,l.useState)(r?"auto":0),[i,c]=(0,l.useState)(!r);return(0,l.useEffect)((()=>{r?(o("auto"),setTimeout((()=>c(!1)),sn)):(c(!0),o(0))}),[r]),(0,t.createElement)(l.Fragment,null,(0,t.createElement)(Ds.Z,{id:`content-${n}`,delay:0===a?nn:tn,height:a,easing:"ease-in-out",duration:en},(0,t.createElement)("div",{className:`yst-transition-opacity ${rn} yst-relative yst-ml-12 yst-mt-4 yst-pb-1 ${i?"yst-opacity-0 yst-pointer-events-none":"yst-opacity-100"}`},e)))}function yn({children:e,setActiveStepIndex:s,activeStepIndex:n,isStepperFinished:r}){return(0,t.createElement)("ol",null,e.map(((a,o)=>(0,t.createElement)("li",{key:`${a.props.name}-${o}`,className:(o===e.length-1?"":"yst-pb-8")+" yst-mb-0 yst-relative yst-max-w-none"},(0,t.createElement)(ln.Provider,{value:{stepIndex:o,activeStepIndex:n,setActiveStepIndex:s,lastStepIndex:e.length-1,isStepperFinished:r}},a)))))}un.propTypes={beforeGo:Nt().func,children:Nt().node,destination:Nt().oneOfType([Nt().number,Nt().oneOf(["first","last"])])},un.defaultProps={beforeGo:null,children:(0,t.createElement)(l.Fragment,null,(0,Pt.__)("Continue","wordpress-seo")),destination:1},dn.propTypes={children:Nt().node},dn.defaultProps={children:(0,t.createElement)(l.Fragment,null,(0,Pt.__)("Edit","wordpress-seo"))},pn.propTypes={children:Nt().node.isRequired},mn.propTypes={id:Nt().string.isRequired,message:Nt().string.isRequired,className:Nt().string},mn.defaultProps={className:""},fn.propTypes={children:Nt().node.isRequired},yn.propTypes={setActiveStepIndex:Nt().func.isRequired,activeStepIndex:Nt().number.isRequired,isStepperFinished:Nt().bool,children:Nt().node.isRequired},yn.defaultProps={isStepperFinished:!1},pn.Content=fn,pn.Error=mn,pn.Header=Xs,pn.GoButton=un,pn.EditButton=dn;const hn={optimizeSeoData:"optimizeSeoData",siteRepresentation:"siteRepresentation",socialProfiles:"socialProfiles",personalPreferences:"personalPreferences"},gn={[hn.optimizeSeoData]:"data optimization",[hn.siteRepresentation]:"site representation",[hn.socialProfiles]:"social profiles",[hn.personalPreferences]:"personal preferences"};function bn({stepId:e,beforeGo:s,children:n,additionalClasses:r,...a}){return(0,t.createElement)(pn.GoButton,{id:`button-${e}-continue`,variant:"primary",className:r,destination:1,beforeGo:s,"data-hiive-event-name":`clicked_continue | ${gn[e]}`,...a},n)}function vn({stepId:e,beforeGo:s,isVisible:n,children:r,additionalClasses:a,...o}){const i=`yst-transition-opacity ${Bs.slideDuration} yst-ease-out ${n?"yst-opacity-100":`${Bs.delayBeforeOpening} yst-opacity-0 yst-pointer-events-none yst-hidden`}`;return(0,t.createElement)(pn.GoButton,{id:`button-${e}-edit`,variant:"secondary",size:"small",className:ys()(i,a),destination:0,beforeGo:s,"data-hiive-event-name":`clicked_edit | ${gn[e]}`,...o},r)}function En({stepId:e,beforeGo:s,children:n,additionalClasses:r,...a}){return(0,t.createElement)(pn.GoButton,{id:`button-${e}-back`,variant:"secondary",className:r,destination:-1,beforeGo:s,"data-hiive-event-name":`clicked_go_back | ${gn[e]}`,...a},n)}function wn({stepId:e,beforeContinue:s,continueLabel:n,beforeBack:r,backLabel:a}){return(0,t.createElement)("div",{className:"yst-mt-12"},(0,t.createElement)(bn,{stepId:e,beforeGo:s},n),(0,t.createElement)(En,{stepId:e,additionalClasses:"yst-ml-3",beforeGo:r},a))}function xn({stepId:e,stepperFinishedOnce:s,saveFunction:n,setEditState:r}){const a=(0,l.useCallback)((async()=>{const e=await n();return r(!e),e}),[n]);return s?(0,t.createElement)(pn.GoButton,{id:`button-${e}-go`,variant:"primary",className:"yst-mt-12",destination:"last",beforeGo:a,"data-hiive-event-name":`clicked_save_changes | ${gn[e]}`},(0,Pt.__)("Save changes","wordpress-seo")):(0,t.createElement)(wn,{stepId:e,beforeContinue:n,continueLabel:(0,Pt.__)("Save and continue","wordpress-seo")})}var Sn,kn,On,Cn,Pn,Rn,Nn,Tn,In,Mn,Ln,An,Fn,Dn,zn,jn,$n,qn,Bn,Un,Hn,Vn,Zn,Gn,Wn,Yn,Kn,Qn,Jn,Xn,er,tr,sr,nr,rr,ar,or,ir,lr,cr,ur,dr,pr,mr,fr,yr,hr,gr,br,vr,Er;function wr(){return wr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e},wr.apply(this,arguments)}bn.propTypes={stepId:Nt().string.isRequired,additionalClasses:Nt().string,beforeGo:Nt().func,children:Nt().node},bn.defaultProps={additionalClasses:"",beforeGo:null,children:null},vn.propTypes={stepId:Nt().string.isRequired,additionalClasses:Nt().string,isVisible:Nt().bool,beforeGo:Nt().func,children:Nt().node},vn.defaultProps={additionalClasses:"",isVisible:!0,beforeGo:null,children:null},En.propTypes={stepId:Nt().string.isRequired,additionalClasses:Nt().string,beforeGo:Nt().func,children:Nt().node},En.defaultProps={additionalClasses:"",beforeGo:null,children:null},wn.propTypes={stepId:Nt().string.isRequired,beforeContinue:Nt().func,continueLabel:Nt().string,beforeBack:Nt().func,backLabel:Nt().string},wn.defaultProps={beforeContinue:null,continueLabel:(0,Pt.__)("Continue","wordpress-seo"),beforeBack:null,backLabel:(0,Pt.__)("Go back","wordpress-seo")},xn.propTypes={stepId:Nt().string.isRequired,stepperFinishedOnce:Nt().bool.isRequired,saveFunction:Nt().func.isRequired,setEditState:Nt().func.isRequired};const xr=e=>t.createElement("svg",wr({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 262.37 284.15"},e),Sn||(Sn=t.createElement("path",{fill:"#f0ecf0",d:"M262.37 153A131.19 131.19 0 1 0 54.71 259.56a28.08 28.08 0 0 1 1.91-7.37c2-4.92-12.06-11.1-7.52-26.48 3.49-11.81 30.9-25.16 37.1-41.56 2.4-6.32 12-30.34 29.69-35.66 9-2.7 48.29-13.29 60.25-11.07s37.48 11 31.66 41.46c-10.26 53.79-44.8 59.12-46.28 94.64a27.46 27.46 0 0 0 .65 6.94A131.23 131.23 0 0 0 262.37 153Z"})),kn||(kn=t.createElement("path",{fill:"#006531",d:"M161.52 273.52c1.44-35.53 36-40.85 46.28-94.64 5.82-30.51-19.7-39.25-31.66-41.46s-51.23 8.37-60.25 11.07c-17.72 5.32-27.29 29.34-29.69 35.66-6.2 16.4-33.61 29.75-37.1 41.56-4.54 15.38 9.53 21.56 7.52 26.48a28.08 28.08 0 0 0-1.91 7.37 131.71 131.71 0 0 0 12.68 8.05 184.18 184.18 0 0 1 7.18-34.05c-4.12-2.43-8.32-4-19.15-2.33 16.06-23.66 34.79-45.11 64.9-65.12 2.54 22.59 3.65 40.75 14.49 60-14.93-3.2-25.12 0-32 4.77a103.74 103.74 0 0 0-4.6 49.12 132 132 0 0 0 64 .49 27.23 27.23 0 0 1-.69-6.97Z"})),On||(On=t.createElement("path",{fill:"#89bc3b",d:"M102.8 230.9c6.89-4.73 17.08-8 32-4.77-10.84-19.27-12-37.43-14.49-60-30.11 20-48.84 41.46-64.9 65.12 10.83-1.66 15-.1 19.15 2.33a184.18 184.18 0 0 0-7.18 34A130.42 130.42 0 0 0 98.21 280a103.65 103.65 0 0 1 4.59-49.1Z"})),Cn||(Cn=t.createElement("path",{fill:"#093f22",d:"M61.29 184.66c-4.39 13.11-15 33.6-14.52 47.42 11.9-18 34.83-42.28 46.73-60.26 2.69-4.08 1.49-10.8-3.21-13.29-3.83-2-8.45-.15-11.7 1.92-8.3 5.28-14.21 14.98-17.3 24.21Zm72.61 58.65 18.32-60.92s.51 11.07 1.1 9.3 16.4-28.8 16.4-28.8l-28.14 81Z"})),Pn||(Pn=t.createElement("path",{fill:"#006531",d:"M169.31 113.64c.71 13.17 6.24 22.36 5.36 25.68-33.67 6.42-49.16 29.46-54 28.88-6.67-3.85-5.76-14.39-5.54-17.71 3.55-6.65-.12-17.65 1.77-23.89 1.4-4.6 9.38-12.6 18.1-14.53s33.93-5.54 34.31 1.57Z"})),Rn||(Rn=t.createElement("path",{fill:"#b498c6",d:"M122.32 166.11c6.09-9.75 11.1-30.31 14.62-33.9 3.33-3.39 22.1-12 26.12-13.51 1.56-1.22 2-2.55 2.09-6.65l.23-19.82-45.16 16.39 2.53 37.22c.67 5.09.35 10.08-.43 20.27Z"})),Nn||(Nn=t.createElement("path",{fill:"#8b6c9c",d:"m166.15 92.89-.64 7.17c-.94 12.77-25.4 31.3-38.1 30.12-4.6-.42-5.78-10.38-7.39-15.06l-2.61-9.52Z"})),Tn||(Tn=t.createElement("path",{fill:"#b498c6",d:"M157.71 192S128 247.74 126 254s-.23 13.67 4.49 15.24 16.51.6 24.27-7.47c5.9-6.14 28.74-39.14 29.45-39.85.06-13.3-7.49-22.14-26.5-29.92Z"})),In||(In=t.createElement("ellipse",{cx:106.71,cy:192.91,fill:"#fbb03b",stroke:"#fc3",strokeMiterlimit:10,rx:8.8,ry:5.58,transform:"rotate(-19.17 106.716 192.914)"})),Mn||(Mn=t.createElement("path",{fill:"#f19018",d:"M92.72 206.13c4.25-1.18 9.78-1.68 17-1.26-6.39 3.89-15.24 15.48-15.51 17.65a87.16 87.16 0 0 1 11-1.88c-16 10.81-23.79 31.12-22.85 30.75-1.24.41-3.63-21.77 6.06-31.06a32.05 32.05 0 0 0-7.73 1.1c1.68-4.03 6.97-11.62 12.03-15.3Z"})),Ln||(Ln=t.createElement("path",{fill:"#fbb03b",stroke:"#fc3",strokeMiterlimit:10,d:"M92.72 206.13c4.25-1.18 9.78-1.68 17-1.26-6.39 3.89-15.24 15.48-15.51 17.65a87.16 87.16 0 0 1 11-1.88c-16 10.81-23.79 31.12-22.85 30.75-1.24.41-3.63-21.77 6.06-31.06a32.05 32.05 0 0 0-7.73 1.1c1.68-4.03 6.97-11.62 12.03-15.3Z"})),An||(An=t.createElement("path",{fill:"#006531",d:"M183.45 223.15c-3.73-9.11-19.27-19.94-31.68-20.38 7.54-16.39 11.46-29.12 19.31-42.24 0 0-5.74-22.74-1-22.2 8.52 1 19-7.56 33.67-4.23 14.25 3.23 20.27 23.26 17 38-4.47 19.9-40.04 54.49-37.3 51.05Z"})),Fn||(Fn=t.createElement("path",{fill:"#8b6c9c",d:"M80 254.38C77.79 252.17 71.81 244 65.6 244s-33 6.87-33 6.87l-.45 9.3s16.69 1.77 19.94 2.22 16-3.55 16-3.55Z"})),Dn||(Dn=t.createElement("path",{fill:"#8b6c9c",d:"M72.14 260.36c-12.31-.11-23.45 6.28-26.55 5.39-4.1-1.33-4.21.82-6.64.59s-6.7-3.65-6.7-3.65l.12-12.3 39 7.09Z"})),zn||(zn=t.createElement("path",{fill:"#8b6c9c",d:"M50.63 262.9c-4.43-2.21-15.73 4.28-17.74 2.71-4.64-3.65-8.27-6.21-9.3-8.42s2.47-5.91 1.59-16.1c-.44-5.07 4.31-5.32 6.09-1.33.93 2.1 1.33 13.51 1.33 13.51l7.63 2.1Z"})),jn||(jn=t.createElement("path",{fill:"#b498c6",d:"M100.38 163.12c.89 4-22.61 60.35-31.91 76.3S40.9 257.36 40.9 257.36s-14.48-.79-9.17-22.05 24.47-27.82 31.55-37.42 20.27-29 20.27-33.45c0-3.1 15.95-5.31 16.83-1.32Z"})),$n||($n=t.createElement("path",{fill:"#8b6c9c",d:"M100.48 163.09a3.78 3.78 0 0 1 0 .95 9.1 9.1 0 0 1-.16.91c-.12.6-.29 1.19-.44 1.78-.33 1.17-.69 2.34-1.06 3.5-.76 2.32-1.56 4.62-2.38 6.92Q94 184 91.28 190.83q-5.4 13.59-11.26 27-2.92 6.71-6 13.34A63.91 63.91 0 0 1 66.55 244 35.8 35.8 0 0 1 55 253.26a38.85 38.85 0 0 1-14.07 4.2v-.2a41.07 41.07 0 0 0 6.94-2.09 39.27 39.27 0 0 0 6.44-3.17A35.56 35.56 0 0 0 65 242.71a26.19 26.19 0 0 0 2-2.9c.66-1 1.22-2.05 1.8-3.1q1.74-3.18 3.36-6.44c2.2-4.33 4.31-8.71 6.37-13.12q6.14-13.23 11.79-26.7 2.85-6.72 5.53-13.51c.88-2.27 1.74-4.55 2.56-6.84.4-1.14.79-2.29 1.15-3.46.17-.58.35-1.16.48-1.75a6.54 6.54 0 0 0 .18-.88 3.19 3.19 0 0 0 .06-.87Z"})),qn||(qn=t.createElement("path",{fill:"#8b6c9c",d:"M98.61 166.22s10.4-10 11.73-14c1.78-5.31-.21-15.41 2.56-22.17 1.13-2.77 5-12.4 5.3-13.28s-3.13-2.36-4.76-1.77a17.06 17.06 0 0 0-6.26 5.61c-1.33 2.22-.68 10.15-4.37 11.34s-18.23 10.61-18.38 17.4.44 11.85 14.18 16.87Z"})),Bn||(Bn=t.createElement("path",{fill:"#8b6c9c",d:"m100.38 163.12 8.42-13.74-13.74-19s4.35-12 5.09-16.39 3.84-11.14.56-18.17c-2.12-4.55-4.79-5-5.09-2.1s-1.16 13.72-2.62 17.12-8.08 14.62-8.08 14.62l-12.4 14.62Z"})),Un||(Un=t.createElement("path",{fill:"#b498c6",d:"M138.58 5.48c-20.7-.38-38 19.23-39.7 21.63-1.34 1.94-5.06 12-6.58 19.34.42-1.33.87-2.62 1.33-3.85 13.19-6.56 37.64-4.79 70.11 2.89 1.75 6.74 1.36 12.38 1.15 20.18 0 0-15.4 8.58-24.28 9.94-7.5 1.16-11.68-1.37-14.5-3.62-4-3.18-7.61-9.22-13.15-9.67-5.81-.47-7.83 9.3-10.72 9-1.73-.18-7.25.7-9.63 2.76a34.28 34.28 0 0 0-.24 9.16c1.25 5.91 5.63 11.61 8.16 14.52s4.19 11.43 8.45 15.76c9.81 9.93 47-6.94 55.48-17.25 3.75-4.53 8.8-28 8.8-28s10.52-10.21 10.46-16.87c-.21-22.82-17.07-45.4-45.14-45.92Z"})),Hn||(Hn=t.createElement("path",{fill:"#fcee21",d:"M92.41 51.14a78.25 78.25 0 0 1 .88-8.53C83.1 69 92.42 74.26 92.61 74.09a39.64 39.64 0 0 1 2.9-8.67s-3.36-7.58-3.1-14.28Z"})),Vn||(Vn=t.createElement("path",{fill:"#fbb03b",d:"M102.24 71.33c2.89.29 4.91-9.48 10.72-9 5.54.45 9.14 6.49 13.15 9.67 2.82 2.25 7 4.78 14.5 3.62 8.88-1.36 24.28-9.94 24.28-9.94.21-7.8.6-13.44-1.15-20.18-32.47-7.69-56.92-9.5-70.11-2.9-.89 2-1.63 13.3-1.63 13.3-.3 5 .89 6.64 3.47 9.52a42 42 0 0 0-2.82 8.67c2.35-2.09 7.86-2.94 9.59-2.76Z"})),Zn||(Zn=t.createElement("path",{fill:"#89bc3b",d:"M156 194.13c7.53-.89 21.71 6.87 26.81 12.62 14.42-12.32 25.39-37.37 27.91-45.19 6.64-20.6-11.52-28.35-11.52-28.35l2.44.66s18.38 5.76 14.84 31.9c-1.24 9.13-14.64 33.72-28.8 46.3.89 1.55 2.22 3.32 2.66 4.87l-6.65 6.43c-2.66-8.42-22.81-20.82-31.9-20.6Z"})),Gn||(Gn=t.createElement("path",{fill:"#b498c6",d:"M86.65 168.87c-.89-1.32-17.89-25.57-18.34-28.67s4.69-7.7 6.13-7c9.64 4.61 24.21 17.67 26 22.1s-.71 11.59-.71 11.59Zm-8.86-38.1s12.14-11.89 15.09-12 10.11 6 13.11 7.91c3.2 2 3.87 7.13 8.23 10.45.44 2.07-2.22 3.42-5.62 2.39s-7.34-6.81-7.34-6.81l-7.12-3.46-8.38 6.88Z"})),Wn||(Wn=t.createElement("path",{fill:"#b498c6",d:"M74.24 133s11.93-9 13.4-9 12.38 7.59 13.42 9.22 1.88 8.59 3.75 14.86c.65 2.17-3.28 5.17-6.53 1.33s-4.77-10.32-4.77-10.32l-7.33-4.61-5.29 3.85Z"})),Yn||(Yn=t.createElement("path",{fill:"#8b6c9c",d:"M84.58 124.87a4.75 4.75 0 0 1 3-1.15 7.83 7.83 0 0 1 3.22.82 21.82 21.82 0 0 1 2.69 1.76c.86.62 1.71 1.25 2.56 1.89a47.7 47.7 0 0 1 4.94 4.14 4.21 4.21 0 0 1 .55.71 5.87 5.87 0 0 1 .36.81c.18.53.33 1.05.46 1.57.26 1 .48 2.08.7 3.12.44 2.07.87 4.14 1.37 6.19.25 1 .53 2 .82 3a2.42 2.42 0 0 1 .12 1 2.36 2.36 0 0 1-.26.93 3.58 3.58 0 0 1-1.21 1.34 4 4 0 0 1-3.47.47 5.93 5.93 0 0 1-2.73-2.06 12.37 12.37 0 0 1-2.52-5.93 36.66 36.66 0 0 0 3.3 5.3 5 5 0 0 0 2.26 1.74 3 3 0 0 0 2.6-.35 1.93 1.93 0 0 0 1-2.16c-.3-1-.58-2.06-.83-3.09-.51-2.07-.94-4.15-1.38-6.22-.22-1-.44-2.07-.69-3.08-.13-.51-.27-1-.43-1.49a2.76 2.76 0 0 0-.7-1.17 49.75 49.75 0 0 0-4.81-4c-.84-.63-1.69-1.26-2.55-1.88s-1.75-1.16-2.57-1.8a6.81 6.81 0 0 0-2.78-1.11 4.77 4.77 0 0 0-3.02.7Z"})),Kn||(Kn=t.createElement("path",{fill:"#b498c6",d:"M72.62 133.87s5-4.31 6.43-4.66c2.52-.63 12.51 5.9 13.36 7.77 1.31 2.91 2.2 7.57 3.87 11.4.9 2.06-2.84 2.15-5.49.53s-3.57-6.71-3.57-6.71c-2.51-1.89-4.82-2.52-6.54-3.69-.3 2.47-2.6 5.07-7 8.07Z"})),Qn||(Qn=t.createElement("path",{fill:"#8b6c9c",d:"M79.05 129.21a5.63 5.63 0 0 1 2.7.27c.88.26 1.73.57 2.58.91a28.34 28.34 0 0 1 4.81 2.54c.77.48 1.53 1 2.27 1.52a12.53 12.53 0 0 1 2.14 1.84 2.76 2.76 0 0 1 .45.71c.09.21.17.44.24.66a12.73 12.73 0 0 1 .38 1.34c.21.9.37 1.8.52 2.68a38.28 38.28 0 0 0 1.15 5.2c.13.41.29.82.46 1.22a2.2 2.2 0 0 1 .2.84 1.33 1.33 0 0 1-.37 1 2.48 2.48 0 0 1-1.56.62 6 6 0 0 1-1.47-.08 8.62 8.62 0 0 1-2.69-.94 5.84 5.84 0 0 1-2.1-2 15.27 15.27 0 0 1-2-5.2l.19.31a9.76 9.76 0 0 0-2.57-1.41 12.13 12.13 0 0 1-3-1.25l.74-.19a14 14 0 0 1-2.58 2.75 8.41 8.41 0 0 0-2.18 2.84 8.13 8.13 0 0 1 1.78-3.21 14.17 14.17 0 0 0 2.08-2.85l.23-.52.5.33a5.89 5.89 0 0 0 1.27.66l1.46.5a10.54 10.54 0 0 1 2.83 1.55l.15.11v.2a14.16 14.16 0 0 0 1.83 4.84 4.89 4.89 0 0 0 1.75 1.69 7.75 7.75 0 0 0 2.38.83 5 5 0 0 0 1.22.06 1.54 1.54 0 0 0 .92-.31c.13-.13.14-.32 0-.72s-.35-.86-.49-1.3a36.1 36.1 0 0 1-1.18-5.34c-.15-.88-.31-1.76-.51-2.61a13 13 0 0 0-.35-1.26 3.72 3.72 0 0 0-.49-1 11.48 11.48 0 0 0-1.94-1.67c-.72-.52-1.46-1-2.22-1.48-1.5-1-3.1-1.75-4.62-2.68-.78-.44-1.57-.86-2.38-1.22a5.79 5.79 0 0 0-2.53-.78Z"})),Jn||(Jn=t.createElement("path",{fill:"#006531",d:"M167.62 84.35c22.06 1.45 35.92 5.68 36.5-3.92S197.69 6.63 141.9.54C89-5.24 83.2 37.33 82.73 45s7.68 8.3 7.68 8.3c.22-4 2.07-7.82 3.22-10.71 15.18-4.88 64.17 1.48 67.52 6.22s.8 13 1.47 16.45 9.68 6.8 9.68 6.8Z"})),Xn||(Xn=t.createElement("path",{fill:"#093f22",d:"M202.05 84.6c2.39-1.92-8.89-16.64-20.3-20.87l-6 7.31-.26 12.81c7.99 2.15 22.68 3.88 26.56.75Z"})),er||(er=t.createElement("path",{fill:"#b498c6",d:"M180.18 72.06c3.68 2.46 4 8.69 2.45 12.56s-10.89 10.8-13.28 11.15a26.88 26.88 0 0 1-5.15-.2L171 71.7s5.51-2.1 9.18.36Z"})),tr||(tr=t.createElement("path",{fill:"#191a1a",d:"M165.72 67.49s-13.58 37.88-20.45 41.87c1 1 7.06-1.52 9-3.51 3.55-2.44 16.85-34.8 16.85-34.8Z"})),sr||(sr=t.createElement("path",{fill:"#093f22",d:"M136.35 21.41c-1.17-2.11 21.15-11.14 32.7-11.14 2.66 0 10.64 6.2 11.52 9.74-15.29-.23-43.05 3.5-44.22 1.4Zm4.82 11.1c-.92-3 31.73-6.14 43.24-3.93 6.28 1.2 8.82 13.26 4.14 11.81-12.21-3.78-46.78-5.97-47.38-7.88ZM99.94 23c2.07-.89.29-4.14-1.48-10.93a19.93 19.93 0 0 0-7.35 7.62s6.76 4.16 8.83 3.31Zm-5.66 8.72c.18-1.29-5.85-5.57-6.48-4.62a17.56 17.56 0 0 0-2.94 8.78s9.23-2.88 9.42-4.16Z"})),nr||(nr=t.createElement("path",{fill:"#fcee21",d:"M95.9 65.56c4.07.42 7.79 1.24 12.23-1 0 0-4-8.79-8.72-8s-3.51 9-3.51 9Z"})),rr||(rr=t.createElement("path",{fill:"#f15a24",d:"M108.08 64.63c-5.34-9-13.34-9.9-12.12.92-.49.07-1.34-1.88-1.61-2.93-1.29-5.79 4.65-9.51 9.59-5.14 3.17 2.79 4.45 7.01 4.14 7.15Z"})),ar||(ar=t.createElement("path",{fill:"#f15a24",d:"M106.93 52c1.27.52 2.88 4 1.65 3.5A18.34 18.34 0 0 0 92 57.38c.7-5.91 13-6.22 14.93-5.38Z"})),or||(or=t.createElement("path",{fill:"#8b6c9c",d:"M121.12 71.07c.66 1.59 1.38 3.39-.41 4.53s-4.33-2-5.87-1.57-3.88 2.72-5.55 2.41c-3.52-.66-3.15-3.48-3.15-3.48s-1.61 5.55 4 5.62c3.81 0 4.23-2.58 7.44-2.27s3.46 2.53 4.89 1.61c2.88-1.82.31-6.69-1.35-6.85Z"})),ir||(ir=t.createElement("path",{fill:"#8b6c9c",d:"M106.73 75.68s-2.65.74-1.19 2.49c-3.18 0-3.08-4.59-1.32-6-.75 2.66 2.51 3.51 2.51 3.51Z"})),lr||(lr=t.createElement("ellipse",{cx:98.36,cy:62.94,fill:"#f15a24",rx:3.53,ry:3.42,transform:"rotate(-5.96 98.33 62.903)"})),cr||(cr=t.createElement("path",{fill:"#8b6c9c",d:"M138.73 83.69c-8.66 7.53-14.4 12.67-22.62 13-9.3.32-7.2-7.2-7.2-7.2s.85-2.54 5.63-2.77 20.66-2.78 24.19-3.03Z"})),ur||(ur=t.createElement("path",{fill:"#4b3f51",d:"M108.91 89.78c.34-.46 1.86-1.93 2.29-1 1.92 3.93 8.45 1.71 28.05-5.2-15 2.26-17.88.24-20.85.48s-3.62 1.67-4.72 1.45-3.43-1.68-4.73-1.1c-3.03 1.27-2.05 3.67-.04 5.37Z"})),dr||(dr=t.createElement("path",{fill:"#8b6c9c",d:"M132.64 76.68c1.08 1.47 9.51 5.88 9.51 5.88a60.71 60.71 0 0 1-2.89 6.3c.41 0 1.39-5-.85-6.64-1.72-1.22-4.64-2.58-5.77-5.54Z"})),pr||(pr=t.createElement("path",{fill:"#b498c6",d:"M65.82 248.62c-4.13-.44-11-7.38-15.72-6.64s-9.53 5.31-9.53 5.31-12.7-4.87-16.84-4-9.45 2.36-10.63 3.54-.59 5.91 2.22 5.76 6.05-1 9.3-.44 8.73 6.36 12.41 8c14.17 6.2 29.24.44 29.24.44s3.73-11.52-.45-11.97Z"})),mr||(mr=t.createElement("path",{fill:"#8b6c9c",d:"M64.15 248c-2.62.11-5-1.72-6.28-2.59-3.86-2.56-4.62-2.62-19.34 1.45-5.79-2.69-4.72-1.58-7.88-2.74a18.46 18.46 0 0 1 8.14 1.76c-.64 0 13-5.16 16.5-3.92s6.23 5.3 8.86 6.04Z"})),fr||(fr=t.createElement("path",{fill:"#093f22",d:"M90.49 53.46a87 87 0 0 1 3.14-10.86c19.79-3.78 64.81 2.3 67.52 6.22s1.23 13.54 1.18 16.09 8.72 6.72 8.72 6.72l4.57-.74s-8.51-2.28-8.66-6.71 1.56-16.78-3.22-18.69c-29.19-11.62-64.36-8.8-72.53-6.65-6.5 1.7-9.09 6.62-7.44 10.27s6.72 4.35 6.72 4.35Zm70 24.59 7.38 2.95-3.99 9.31-7.34-2.07 3.95-10.19z"})),yr||(yr=t.createElement("path",{fill:"#b498c6",d:"M153.33 236.52c-10.63-4-31.44 3.41-44.53 5.89-29.24 5.53-37.33 5.55-44.09 6-5 .33-3.44 8.5-2.43 12.17 34.11 6.21 41.2 8.42 72 8.92 22.36-5.62 29.72-28.99 19.05-32.98Z"})),hr||(hr=t.createElement("path",{fill:"#8b6c9c",d:"M131.58 242.4c.39-2 .09-3.41.48-5.52l2.21-.22a53.48 53.48 0 0 0-2.69 5.74Z"})),gr||(gr=t.createElement("path",{fill:"#fc3",d:"M148.89 45c2 6.65 5.32 17.43 2.44 27.4-2.29 1-10 3.61-12.33 3.39.66-5.76.44-23.11-3.77-32.64 2.31.14 8.22 1.03 13.66 1.85Z"})),br||(br=t.createElement("path",{fill:"#fcee21",d:"M145.22 62.31c-3.94 1.59-12.14 3.79-17.43 1.19 0 0-1.22-9.33 5.51-8.76s11.92 7.57 11.92 7.57Z"})),vr||(vr=t.createElement("path",{fill:"#f15a24",d:"M127.69 63.52c-1.85-4-.92-8.41 4.11-9.48 4.24-.75 11.08 1.85 13.5 8.21-.29.22-7.6-8.06-14-6.15-4.44 1.33-3.13 7.35-3.61 7.42Zm-4.81-17.78c-1.23.51.14 4 1.3 4.36s9.23-2.79 12.1-2.41 8.81 4.79 11.58 7c-.44-1.88-7.92-9.3-10.88-9.92s-12.87.45-14.1.97Z"})),Er||(Er=t.createElement("ellipse",{cx:131.8,cy:60.56,fill:"#f15a24",rx:3.76,ry:3.99,transform:"rotate(-5.96 131.772 60.6)"}))),Sr=window.yoast.helpers;class _r extends Error{constructor(e,t,s,n,r){super(e),this.name="RequestError",this.url=t,this.method=s,this.statusCode=n,this.stackTrace=r}}const{stripTagsFromHtmlString:kr}=Sr.strings,Or=["a","p"];function Cr({title:e,value:s}){return s?(0,t.createElement)("p",null,(0,t.createElement)("strong",null,e),(0,t.createElement)("br",null),s):null}function Pr({title:e,value:s}){return s?(0,t.createElement)("details",null,(0,t.createElement)("summary",null,e),(0,t.createElement)("pre",{className:"yst-overflow-x-scroll yst-max-w-[500px] yst-border-px yst-p-4"},s)):null}function Rr({message:e,error:s,className:n}){return(0,t.createElement)(zs,{type:"error",className:n},(0,t.createElement)("div",{dangerouslySetInnerHTML:{__html:kr(e,Or)}}),(0,t.createElement)("details",null,(0,t.createElement)("summary",null,(0,Pt.__)("Error details","wordpress-seo")),(0,t.createElement)("div",{className:"yst-mt-2"},(0,t.createElement)(Cr,{title:(0,Pt.__)("Request URL","wordpress-seo"),value:s.url}),(0,t.createElement)(Cr,{title:(0,Pt.__)("Request method","wordpress-seo"),value:s.method}),(0,t.createElement)(Cr,{title:(0,Pt.__)("Status code","wordpress-seo"),value:s.statusCode}),(0,t.createElement)(Cr,{title:(0,Pt.__)("Error message","wordpress-seo"),value:s.message}),(0,t.createElement)(Pr,{title:(0,Pt.__)("Response","wordpress-seo"),value:s.parseString}),(0,t.createElement)(Pr,{title:(0,Pt.__)("Error stack trace","wordpress-seo"),value:s.stackTrace}))))}Cr.propTypes={title:Nt().string.isRequired,value:Nt().any},Cr.defaultProps={value:""},Pr.propTypes={title:Nt().string.isRequired,value:Nt().string},Pr.defaultProps={value:""},Rr.propTypes={message:Nt().string.isRequired,error:Nt().oneOfType([Nt().instanceOf(Error),Nt().instanceOf(_r)]).isRequired,className:Nt().string},Rr.defaultProps={className:""};class Nr extends Error{constructor(e,t){super(e),this.name="ParseError",this.parseString=t}}const Tr="idle",Ir="in_progress",Mr="errored",Lr="completed";class Ar extends l.Component{constructor(e){super(e),this.settings=yoastIndexingData,this.state={state:Tr,processed:0,error:null,amount:parseInt(this.settings.amount,10),firstTime:"1"===this.settings.firstTime},this.startIndexing=this.startIndexing.bind(this),this.stopIndexing=this.stopIndexing.bind(this)}async doIndexingRequest(e,t){const s=await fetch(e,{method:"POST",headers:{"X-WP-Nonce":t}}),n=await s.text();let r;try{r=JSON.parse(n)}catch(e){throw new Nr("Error parsing the response to JSON.",n)}if(!s.ok){const t=r.data?r.data.stackTrace:"";throw new _r(r.message,e,"POST",s.status,t)}return r}async doPreIndexingAction(e){"function"==typeof this.props.preIndexingActions[e]&&await this.props.preIndexingActions[e](this.settings)}async doPostIndexingAction(e,t){"function"==typeof this.props.indexingActions[e]&&await this.props.indexingActions[e](t.objects,this.settings)}async doIndexing(e){let t=this.settings.restApi.root+this.settings.restApi.indexing_endpoints[e];for(;this.isState(Ir)&&!1!==t;)try{await this.doPreIndexingAction(e);const s=await this.doIndexingRequest(t,this.settings.restApi.nonce);await this.doPostIndexingAction(e,s),(0,l.flushSync)((()=>{this.setState((e=>({processed:e.processed+s.objects.length,firstTime:!1})))})),t=s.next_url}catch(e){(0,l.flushSync)((()=>{this.setState({state:Mr,error:e,firstTime:!1})}))}}async index(){for(const e of Object.keys(this.settings.restApi.indexing_endpoints))await this.doIndexing(e);this.isState(Mr)||this.isState(Tr)||this.completeIndexing()}async startIndexing(){this.setState({processed:0,state:Ir},this.index)}completeIndexing(){this.setState({state:Lr})}stopIndexing(){this.setState((e=>({state:Tr,processed:0,amount:e.amount-e.processed})))}componentDidMount(){var e,t;if(!this.settings.disabled&&(this.props.indexingStateCallback(0===this.state.amount?"already_done":this.state.state),"true"===new URLSearchParams(window.location.search).get("start-indexation"))){const s=function(e,t){const s=new URL(e);return s.searchParams.delete("start-indexation"),s.href}(window.location.href);null,e=document.title,t=s,window.history.pushState(null,e,t),this.startIndexing()}}componentDidUpdate(e,t){this.state.state!==t.state&&this.props.indexingStateCallback(this.state.state)}isState(e){return this.state.state===e}renderFirstIndexationNotice(){return(0,t.createElement)(zs,{type:"info",className:"yst-mt-6"},(0,Pt.__)("This feature includes and replaces the Text Link Counter and Internal Linking Analysis","wordpress-seo"))}renderStartButton(){return(0,t.createElement)(c.Button,{variant:"secondary",onClick:this.startIndexing,id:"indexation-data-optimization","data-hiive-event-name":"clicked_start_data_optimization"},(0,Pt.__)("Start SEO data optimization","wordpress-seo"))}renderStopButton(){return(0,t.createElement)(c.Button,{variant:"secondary",onClick:this.stopIndexing},(0,Pt.__)("Stop SEO data optimization","wordpress-seo"))}renderDisabledTool(){return(0,t.createElement)(l.Fragment,null,(0,t.createElement)("p",null,(0,t.createElement)(c.Button,{variant:"secondary",disabled:!0,id:"indexation-data-optimization"},(0,Pt.__)("Start SEO data optimization","wordpress-seo"))),(0,t.createElement)(zs,{type:"info",className:"yst-mt-6"},(0,Pt.__)("SEO data optimization is disabled for non-production environments.","wordpress-seo")))}renderProgressBar(){let e=0;return this.isState(Lr)&&(e=100),this.isState(Ir)&&(e=this.state.processed/parseInt(this.state.amount,10)*100),(0,t.createElement)("div",{className:"yst-w-full yst-bg-slate-200 yst-rounded-full yst-h-2.5 yst-mb-4"},(0,t.createElement)("div",{className:"yst-transition-[width] yst-ease-linear yst-bg-primary-500 yst-h-2.5 yst-rounded-full",style:{width:`${e}%`}}))}renderCaption(){return(0,t.createElement)(Ds.Z,{id:"optimization-in-progress-text",height:this.isState(Ir)?"auto":0,easing:"linear",duration:300},(0,t.createElement)("p",{className:"yst-text-sm yst-italic yst-mb-4 yst-mt-4"},(0,Pt.__)("SEO data optimization is running… You can safely move on to the next steps of this configuration.","wordpress-seo")))}renderErrorAlert(){return(0,t.createElement)(Rr,{message:yoastIndexingData.errorMessage,error:this.state.error,className:"yst-mb-4"})}render(){return this.settings.disabled?this.renderDisabledTool():(0,t.createElement)("div",{className:"yst-relative"},this.props.children,(0,t.createElement)(kt,{unmount:!1,show:this.isState(Mr)||this.isState(Ir)||this.isState(Tr)&&this.state.amount>0,leave:"yst-transition-opacity yst-duration-1000",leaveFrom:"yst-opacity-100",leaveTo:"yst-opacity-0"},this.renderProgressBar(),this.isState(Mr)&&this.renderErrorAlert(),this.isState(Ir)?this.renderStopButton():this.renderStartButton(),this.renderCaption(),this.isState(Tr)&&this.state.firstTime&&this.renderFirstIndexationNotice()))}}Ar.propTypes={indexingActions:Nt().object,preIndexingActions:Nt().object,indexingStateCallback:Nt().func,children:Nt().node},Ar.defaultProps={indexingActions:{},preIndexingActions:{},indexingStateCallback:()=>{},children:null};const Fr=Ar;function Dr({indexingStateCallback:e,indexingState:s,isStepperFinished:n}){return(0,t.createElement)(Fr,{preIndexingActions:window.yoast.indexing.preIndexingActions,indexingActions:window.yoast.indexing.indexingActions,indexingStateCallback:e},(0,t.createElement)(kt,{unmount:!1,show:["completed","already_done"].includes(s),enter:"yst-transition-opacity yst-duration-1000",enterFrom:"yst-opacity-0",enterTo:"yst-opacity-100"},(0,t.createElement)(zs,{type:"success"},"already_done"!==s||n?(0,Pt.__)("We've successfully analyzed your site & optimized your SEO data!","wordpress-seo"):(0,Pt.__)("We've already successfully analyzed your site. You can move on to the next step.","wordpress-seo"))))}function zr({indexingState:e,setIndexingState:s,showRunIndexationAlert:n,isStepperFinished:r}){return(0,t.createElement)(l.Fragment,null,(0,t.createElement)("div",{className:"yst-flex yst-flex-row yst-justify-between yst-flex-wrap yst-mb-8"},(0,t.createElement)("p",{className:"yst-text-sm yst-whitespace-pre-line yst-w-[463px]"},(0,Pt.__)("Let's start by running the SEO data optimization. That means we'll scan your site and create a database with optimized SEO data. It won't change any content or settings on your site and you don't need to do anything, just hit start!\n\nNote: If you have a lot of content, this optimization could take a moment. But trust us, it's worth it!","wordpress-seo")),(0,t.createElement)(xr,{className:"yst-h-28 yst-w-24 yst-mr-6"})),(0,t.createElement)("div",{id:"yoast-configuration-indexing-container",className:"indexation-container"},(0,t.createElement)(Dr,{indexingStateCallback:s,indexingState:e,isStepperFinished:r})),(0,t.createElement)(js,{id:"indexation-alert",isVisible:"idle"===e&&n,expandDuration:400,type:"info"},(0,Pt.__)("Be aware that you should run the SEO data optimization for this configuration to take maximum effect.","wordpress-seo")))}function jr(e,s,n=""){return(0,l.createInterpolateElement)(e,{a:(0,t.createElement)("a",{id:n,href:s,target:"_blank",rel:"noopener noreferrer"})})}var $r;Dr.propTypes={indexingStateCallback:Nt().func.isRequired,indexingState:Nt().string.isRequired,isStepperFinished:Nt().bool},Dr.defaultProps={isStepperFinished:!1},zr.propTypes={indexingState:Nt().string.isRequired,setIndexingState:Nt().func.isRequired,showRunIndexationAlert:Nt().bool,isStepperFinished:Nt().bool},zr.defaultProps={showRunIndexationAlert:!1,isStepperFinished:!1};let qr=null!=($r=t.useId)?$r:function(){let e=st(),[s,n]=t.useState(e?()=>Je.nextId():null);return Xe((()=>{null===s&&n(Je.nextId())}),[s]),null!=s?""+s:void 0};function Br(e,s){let[n,r]=(0,t.useState)(e),a=tt(e);return Xe((()=>r(a.current)),[a,r,...s]),n}var Ur=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Ur||{}),Hr=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(Hr||{});function Vr(e,t){let s=t.resolveItems();if(s.length<=0)return null;let n=t.resolveActiveIndex(),r=null!=n?n:-1,a=(()=>{switch(e.focus){case 0:return s.findIndex((e=>!t.resolveDisabled(e)));case 1:{let e=s.slice().reverse().findIndex(((e,s,n)=>!(-1!==r&&n.length-s-1>=r||t.resolveDisabled(e))));return-1===e?e:s.length-1-e}case 2:return s.findIndex(((e,s)=>!(s<=r||t.resolveDisabled(e))));case 3:{let e=s.slice().reverse().findIndex((e=>!t.resolveDisabled(e)));return-1===e?e:s.length-1-e}case 4:return s.findIndex((s=>t.resolveId(s)===e.id));case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}})();return-1===a?n:a}function Zr(e){let t=e.parentElement,s=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(s=t),t=t.parentElement;let n=""===(null==t?void 0:t.getAttribute("disabled"));return(!n||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(s))&&n}function Gr(e){return Je.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let Wr=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var Yr,Kr=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Kr||{}),Qr=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Qr||{}),Jr=((Yr=Jr||{})[Yr.Previous=-1]="Previous",Yr[Yr.Next=1]="Next",Yr),Xr=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Xr||{});function ea(e,t=0){var s;return e!==(null==(s=Gr(e))?void 0:s.body)&&Ae(t,{0:()=>e.matches(Wr),1(){let t=e;for(;null!==t;){if(t.matches(Wr))return!0;t=t.parentElement}return!1}})}function ta(e,t=(e=>e)){return e.slice().sort(((e,s)=>{let n=t(e),r=t(s);if(null===n||null===r)return 0;let a=n.compareDocumentPosition(r);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}function sa(e){var t;if(e.type)return e.type;let s=null!=(t=e.as)?t:"button";return"string"==typeof s&&"button"===s.toLowerCase()?"button":void 0}function na(e,s){let[n,r]=(0,t.useState)((()=>sa(e)));return Xe((()=>{r(sa(e))}),[e.type,e.as]),Xe((()=>{n||!s.current||s.current instanceof HTMLButtonElement&&!s.current.hasAttribute("type")&&r("button")}),[n,s]),n}function ra(e,s,n){let r=tt(s);(0,t.useEffect)((()=>{function t(e){r.current(e)}return document.addEventListener(e,t,n),()=>document.removeEventListener(e,t,n)}),[e,n])}function aa(e,s,n=!0){let r=(0,t.useRef)(!1);function a(t,n){if(!r.current||t.defaultPrevented)return;let a=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e),o=n(t);if(null!==o&&o.getRootNode().contains(o)){for(let e of a){if(null===e)continue;let s=e instanceof HTMLElement?e:e.current;if(null!=s&&s.contains(o)||t.composed&&t.composedPath().includes(s))return}return!ea(o,Xr.Loose)&&-1!==o.tabIndex&&t.preventDefault(),s(t,o)}}(0,t.useEffect)((()=>{requestAnimationFrame((()=>{r.current=n}))}),[n]);let o=(0,t.useRef)(null);ra("mousedown",(e=>{var t,s;r.current&&(o.current=(null==(s=null==(t=e.composedPath)?void 0:t.call(e))?void 0:s[0])||e.target)}),!0),ra("click",(e=>{!o.current||(a(e,(()=>o.current)),o.current=null)}),!0),ra("blur",(e=>a(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}["textarea","input"].join(",");var oa=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(oa||{});let ia=Ue((function(e,t){let{features:s=1,...n}=e;return $e({ourProps:{ref:t,"aria-hidden":2==(2&s)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...4==(4&s)&&2!=(2&s)&&{display:"none"}}},theirProps:n,slot:{},defaultTag:"div",name:"Hidden"})}));function la(e={},t=null,s=[]){for(let[n,r]of Object.entries(e))ua(s,ca(t,n),r);return s}function ca(e,t){return e?e+"["+t+"]":t}function ua(e,t,s){if(Array.isArray(s))for(let[n,r]of s.entries())ua(e,ca(t,n.toString()),r);else s instanceof Date?e.push([t,s.toISOString()]):"boolean"==typeof s?e.push([t,s?"1":"0"]):"string"==typeof s?e.push([t,s]):"number"==typeof s?e.push([t,`${s}`]):null==s?e.push([t,""]):la(s,t,e)}function da(e,s,n){let[r,a]=(0,t.useState)(n),o=void 0!==e,i=(0,t.useRef)(o),l=(0,t.useRef)(!1),c=(0,t.useRef)(!1);return!o||i.current||l.current?!o&&i.current&&!c.current&&(c.current=!0,i.current=o,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(l.current=!0,i.current=o,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[o?e:r,nt((e=>(o||a(e),null==s?void 0:s(e))))]}function pa(e){return[e.screenX,e.screenY]}function ma(){let e=(0,t.useRef)([-1,-1]);return{wasMoved(t){let s=pa(t);return(e.current[0]!==s[0]||e.current[1]!==s[1])&&(e.current=s,!0)},update(t){e.current=pa(t)}}}var fa=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(fa||{}),ya=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(ya||{}),ha=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(ha||{}),ga=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.RegisterLabel=7]="RegisterLabel",e))(ga||{});function ba(e,t=(e=>e)){let s=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,n=ta(t(e.options.slice()),(e=>e.dataRef.current.domRef.current)),r=s?n.indexOf(s):null;return-1===r&&(r=null),{options:n,activeOptionIndex:r}}let va={1:e=>e.dataRef.current.disabled||1===e.listboxState?e:{...e,activeOptionIndex:null,listboxState:1},0(e){if(e.dataRef.current.disabled||0===e.listboxState)return e;let t=e.activeOptionIndex,{isSelected:s}=e.dataRef.current,n=e.options.findIndex((e=>s(e.dataRef.current.value)));return-1!==n&&(t=n),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var s;if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=ba(e),r=Vr(t,{resolveItems:()=>n.options,resolveActiveIndex:()=>n.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...n,searchQuery:"",activeOptionIndex:r,activationTrigger:null!=(s=t.trigger)?s:1}},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let s=""!==e.searchQuery?0:1,n=e.searchQuery+t.value.toLowerCase(),r=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+s).concat(e.options.slice(0,e.activeOptionIndex+s)):e.options).find((e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(n))})),a=r?e.options.indexOf(r):-1;return-1===a||a===e.activeOptionIndex?{...e,searchQuery:n}:{...e,searchQuery:n,activeOptionIndex:a,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:(e,t)=>{let s={id:t.id,dataRef:t.dataRef},n=ba(e,(e=>[...e,s]));return null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(n.activeOptionIndex=n.options.indexOf(s)),{...e,...n}},6:(e,t)=>{let s=ba(e,(e=>{let s=e.findIndex((e=>e.id===t.id));return-1!==s&&e.splice(s,1),e}));return{...e,...s,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},Ea=(0,t.createContext)(null);function wa(e){let s=(0,t.useContext)(Ea);if(null===s){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,wa),t}return s}Ea.displayName="ListboxActionsContext";let xa=(0,t.createContext)(null);function Sa(e){let s=(0,t.useContext)(xa);if(null===s){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Sa),t}return s}function _a(e,t){return Ae(t.type,va,e,t)}xa.displayName="ListboxDataContext";let ka=t.Fragment,Oa=Ue((function(e,s){let{value:n,defaultValue:r,name:a,onChange:o,by:i=((e,t)=>e===t),disabled:l=!1,horizontal:c=!1,multiple:u=!1,...d}=e;const p=c?"horizontal":"vertical";let m=ot(s),[f=(u?[]:void 0),y]=da(n,o,r),[h,g]=(0,t.useReducer)(_a,{dataRef:(0,t.createRef)(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),b=(0,t.useRef)({static:!1,hold:!1}),v=(0,t.useRef)(null),E=(0,t.useRef)(null),w=(0,t.useRef)(null),x=nt("string"==typeof i?(e,t)=>{let s=i;return(null==e?void 0:e[s])===(null==t?void 0:t[s])}:i),S=(0,t.useCallback)((e=>Ae(_.mode,{1:()=>f.some((t=>x(t,e))),0:()=>x(f,e)})),[f]),_=(0,t.useMemo)((()=>({...h,value:f,disabled:l,mode:u?1:0,orientation:p,compare:x,isSelected:S,optionsPropsRef:b,labelRef:v,buttonRef:E,optionsRef:w})),[f,l,u,h]);Xe((()=>{h.dataRef.current=_}),[_]),aa([_.buttonRef,_.optionsRef],((e,t)=>{var s;g({type:1}),ea(t,Xr.Loose)||(e.preventDefault(),null==(s=_.buttonRef.current)||s.focus())}),0===_.listboxState);let k=(0,t.useMemo)((()=>({open:0===_.listboxState,disabled:l,value:f})),[_,l,f]),O=nt((e=>{let t=_.options.find((t=>t.id===e));!t||M(t.dataRef.current.value)})),C=nt((()=>{if(null!==_.activeOptionIndex){let{dataRef:e,id:t}=_.options[_.activeOptionIndex];M(e.current.value),g({type:2,focus:Hr.Specific,id:t})}})),P=nt((()=>g({type:0}))),R=nt((()=>g({type:1}))),N=nt(((e,t,s)=>e===Hr.Specific?g({type:2,focus:Hr.Specific,id:t,trigger:s}):g({type:2,focus:e,trigger:s}))),T=nt(((e,t)=>(g({type:5,id:e,dataRef:t}),()=>g({type:6,id:e})))),I=nt((e=>(g({type:7,id:e}),()=>g({type:7,id:null})))),M=nt((e=>Ae(_.mode,{0:()=>null==y?void 0:y(e),1(){let t=_.value.slice(),s=t.findIndex((t=>x(t,e)));return-1===s?t.push(e):t.splice(s,1),null==y?void 0:y(t)}}))),L=nt((e=>g({type:3,value:e}))),A=nt((()=>g({type:4}))),F=(0,t.useMemo)((()=>({onChange:M,registerOption:T,registerLabel:I,goToOption:N,closeListbox:R,openListbox:P,selectActiveOption:C,selectOption:O,search:L,clearSearch:A})),[]),D={ref:m},z=(0,t.useRef)(null),j=ut();return(0,t.useEffect)((()=>{!z.current||void 0!==r&&j.addEventListener(z.current,"reset",(()=>{M(r)}))}),[z,M]),t.createElement(Ea.Provider,{value:F},t.createElement(xa.Provider,{value:_},t.createElement(Ye,{value:Ae(_.listboxState,{0:Ge.Open,1:Ge.Closed})},null!=a&&null!=f&&la({[a]:f}).map((([e,s],n)=>t.createElement(ia,{features:oa.Hidden,ref:0===n?e=>{var t;z.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...He({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,name:e,value:s})}))),$e({ourProps:D,theirProps:d,slot:k,defaultTag:ka,name:"Listbox"}))))})),Ca=Ue((function(e,s){var n;let r=qr(),{id:a=`headlessui-listbox-button-${r}`,...o}=e,i=Sa("Listbox.Button"),l=wa("Listbox.Button"),c=ot(i.buttonRef,s),u=ut(),d=nt((e=>{switch(e.key){case Ur.Space:case Ur.Enter:case Ur.ArrowDown:e.preventDefault(),l.openListbox(),u.nextFrame((()=>{i.value||l.goToOption(Hr.First)}));break;case Ur.ArrowUp:e.preventDefault(),l.openListbox(),u.nextFrame((()=>{i.value||l.goToOption(Hr.Last)}))}})),p=nt((e=>{e.key===Ur.Space&&e.preventDefault()})),m=nt((e=>{if(Zr(e.currentTarget))return e.preventDefault();0===i.listboxState?(l.closeListbox(),u.nextFrame((()=>{var e;return null==(e=i.buttonRef.current)?void 0:e.focus({preventScroll:!0})}))):(e.preventDefault(),l.openListbox())})),f=Br((()=>{if(i.labelId)return[i.labelId,a].join(" ")}),[i.labelId,a]),y=(0,t.useMemo)((()=>({open:0===i.listboxState,disabled:i.disabled,value:i.value})),[i]);return $e({ourProps:{ref:c,id:a,type:na(e,i.buttonRef),"aria-haspopup":"listbox","aria-controls":null==(n=i.optionsRef.current)?void 0:n.id,"aria-expanded":i.disabled?void 0:0===i.listboxState,"aria-labelledby":f,disabled:i.disabled,onKeyDown:d,onKeyUp:p,onClick:m},theirProps:o,slot:y,defaultTag:"button",name:"Listbox.Button"})})),Pa=Ue((function(e,s){let n=qr(),{id:r=`headlessui-listbox-label-${n}`,...a}=e,o=Sa("Listbox.Label"),i=wa("Listbox.Label"),l=ot(o.labelRef,s);Xe((()=>i.registerLabel(r)),[r]);let c=nt((()=>{var e;return null==(e=o.buttonRef.current)?void 0:e.focus({preventScroll:!0})})),u=(0,t.useMemo)((()=>({open:0===o.listboxState,disabled:o.disabled})),[o]);return $e({ourProps:{ref:l,id:r,onClick:c},theirProps:a,slot:u,defaultTag:"label",name:"Listbox.Label"})})),Ra=ze.RenderStrategy|ze.Static,Na=Ue((function(e,s){var n;let r=qr(),{id:a=`headlessui-listbox-options-${r}`,...o}=e,i=Sa("Listbox.Options"),l=wa("Listbox.Options"),c=ot(i.optionsRef,s),u=ut(),d=ut(),p=We(),m=null!==p?p===Ge.Open:0===i.listboxState;(0,t.useEffect)((()=>{var e;let t=i.optionsRef.current;!t||0===i.listboxState&&t!==(null==(e=Gr(t))?void 0:e.activeElement)&&t.focus({preventScroll:!0})}),[i.listboxState,i.optionsRef]);let f=nt((e=>{switch(d.dispose(),e.key){case Ur.Space:if(""!==i.searchQuery)return e.preventDefault(),e.stopPropagation(),l.search(e.key);case Ur.Enter:if(e.preventDefault(),e.stopPropagation(),null!==i.activeOptionIndex){let{dataRef:e}=i.options[i.activeOptionIndex];l.onChange(e.current.value)}0===i.mode&&(l.closeListbox(),it().nextFrame((()=>{var e;return null==(e=i.buttonRef.current)?void 0:e.focus({preventScroll:!0})})));break;case Ae(i.orientation,{vertical:Ur.ArrowDown,horizontal:Ur.ArrowRight}):return e.preventDefault(),e.stopPropagation(),l.goToOption(Hr.Next);case Ae(i.orientation,{vertical:Ur.ArrowUp,horizontal:Ur.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),l.goToOption(Hr.Previous);case Ur.Home:case Ur.PageUp:return e.preventDefault(),e.stopPropagation(),l.goToOption(Hr.First);case Ur.End:case Ur.PageDown:return e.preventDefault(),e.stopPropagation(),l.goToOption(Hr.Last);case Ur.Escape:return e.preventDefault(),e.stopPropagation(),l.closeListbox(),u.nextFrame((()=>{var e;return null==(e=i.buttonRef.current)?void 0:e.focus({preventScroll:!0})}));case Ur.Tab:e.preventDefault(),e.stopPropagation();break;default:1===e.key.length&&(l.search(e.key),d.setTimeout((()=>l.clearSearch()),350))}})),y=Br((()=>{var e,t,s;return null!=(s=null==(e=i.labelRef.current)?void 0:e.id)?s:null==(t=i.buttonRef.current)?void 0:t.id}),[i.labelRef.current,i.buttonRef.current]),h=(0,t.useMemo)((()=>({open:0===i.listboxState})),[i]);return $e({ourProps:{"aria-activedescendant":null===i.activeOptionIndex||null==(n=i.options[i.activeOptionIndex])?void 0:n.id,"aria-multiselectable":1===i.mode||void 0,"aria-labelledby":y,"aria-orientation":i.orientation,id:a,onKeyDown:f,role:"listbox",tabIndex:0,ref:c},theirProps:o,slot:h,defaultTag:"ul",features:Ra,visible:m,name:"Listbox.Options"})})),Ta=Ue((function(e,s){let n=qr(),{id:r=`headlessui-listbox-option-${n}`,disabled:a=!1,value:o,...i}=e,l=Sa("Listbox.Option"),c=wa("Listbox.Option"),u=null!==l.activeOptionIndex&&l.options[l.activeOptionIndex].id===r,d=l.isSelected(o),p=(0,t.useRef)(null),m=tt({disabled:a,value:o,domRef:p,get textValue(){var e,t;return null==(t=null==(e=p.current)?void 0:e.textContent)?void 0:t.toLowerCase()}}),f=ot(s,p);Xe((()=>{if(0!==l.listboxState||!u||0===l.activationTrigger)return;let e=it();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=p.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[p,u,l.listboxState,l.activationTrigger,l.activeOptionIndex]),Xe((()=>c.registerOption(r,m)),[m,r]);let y=nt((e=>{if(a)return e.preventDefault();c.onChange(o),0===l.mode&&(c.closeListbox(),it().nextFrame((()=>{var e;return null==(e=l.buttonRef.current)?void 0:e.focus({preventScroll:!0})})))})),h=nt((()=>{if(a)return c.goToOption(Hr.Nothing);c.goToOption(Hr.Specific,r)})),g=ma(),b=nt((e=>g.update(e))),v=nt((e=>{!g.wasMoved(e)||a||u||c.goToOption(Hr.Specific,r,0)})),E=nt((e=>{!g.wasMoved(e)||a||!u||c.goToOption(Hr.Nothing)})),w=(0,t.useMemo)((()=>({active:u,selected:d,disabled:a})),[u,d,a]);return $e({ourProps:{id:r,ref:f,role:"option",tabIndex:!0===a?void 0:-1,"aria-disabled":!0===a||void 0,"aria-selected":d,disabled:void 0,onClick:y,onFocus:h,onPointerEnter:b,onMouseEnter:b,onPointerMove:v,onMouseMove:v,onPointerLeave:E,onMouseLeave:E},theirProps:i,slot:w,defaultTag:"li",name:"Listbox.Option"})})),Ia=Object.assign(Oa,{Button:Ca,Label:Pa,Options:Na,Option:Ta});const Ma=t.forwardRef((function(e,s){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:s},e),t.createElement("path",{fillRule:"evenodd",d:"M10 3a1 1 0 01.707.293l3 3a1 1 0 01-1.414 1.414L10 5.414 7.707 7.707a1 1 0 01-1.414-1.414l3-3A1 1 0 0110 3zm-3.707 9.293a1 1 0 011.414 0L10 14.586l2.293-2.293a1 1 0 011.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z",clipRule:"evenodd"}))}));function La({id:e,value:s,choices:n,label:r,onChange:a,error:o,disabled:i}){const c=(0,l.useMemo)((()=>{const e=n.find((e=>s===e.value));return e?e.label:(0,Pt.__)("Select an option","wordpress-seo")}),[n,s]);return(0,t.createElement)(Ia,{id:e,as:"div",value:s,onChange:a,disabled:i},(({open:a})=>(0,t.createElement)(l.Fragment,null,r&&(0,t.createElement)(Ia.Label,{className:"yst-block yst-max-w-sm yst-mb-1 yst-text-sm yst-font-medium yst-text-slate-700"},r),(0,t.createElement)("div",{className:"yst-max-w-sm"},(0,t.createElement)("div",{className:"yst-relative"},(0,t.createElement)(Ia.Button,{"data-id":`button-${e} `,className:ys()("yst-relative yst-h-[45px] yst-w-full yst-leading-6 yst-py-2 yst-pl-3 yst-pr-10 yst-text-left yst-bg-white yst-border yst-border-slate-300 yst-rounded-md yst-shadow-sm yst-cursor-default focus:yst-outline-none focus:yst-ring-1 focus:yst-ring-primary-500 focus:yst-border-primary-500 sm:yst-text-sm",{"yst-border-red-300":o.isVisible,"yst-opacity-50":i},"emptyChoice"===s?"yst-text-slate-400":"yst-text-slate-700"),...gs(e,o)},(0,t.createElement)("span",{className:"yst-block yst-truncate"},c),(0,t.createElement)("span",{className:"yst-absolute yst-inset-y-0 yst-right-0 yst-flex yst-items-center yst-pr-2 yst-pointer-events-none"},(0,t.createElement)(Ma,{className:"yst-w-5 yst-h-5 yst-text-slate-400","aria-hidden":"true"})),o.isVisible&&(0,t.createElement)("div",{className:"yst-flex yst-items-center yst-absolute yst-inset-y-0 yst-right-0 yst-mr-8"},(0,t.createElement)(ks,{className:"yst-pointer-events-none yst-h-5 yst-w-5 yst-text-red-500"}))),(0,t.createElement)(kt,{show:a,as:l.Fragment,leave:"yst-transition yst-ease-in yst-duration-100",leaveFrom:"yst-opacity-100",leaveTo:"yst-opacity-0"},(0,t.createElement)(Ia.Options,{static:!0,className:"yst-absolute yst-z-10 yst-w-full yst-mt-1 yst-overflow-auto yst-bg-white yst-rounded-md yst-shadow-lg yst-max-h-60 yst-ring-1 yst-ring-black yst-ring-opacity-5 focus:yst-outline-none sm:yst-text-sm"},n.map((e=>(0,t.createElement)(Ia.Option,{key:e.id,as:l.Fragment,value:e.value},(({selected:s,active:n})=>(0,t.createElement)("li",{className:bs({selected:s,active:n})},(0,t.createElement)("span",{className:ys()(s?"yst-font-semibold":"yst-font-normal","yst-block yst-truncate")},e.label),s?(0,t.createElement)("span",{className:ys()("yst-text-white yst-absolute yst-inset-y-0 yst-right-0 yst-flex yst-items-center yst-pr-4")},(0,t.createElement)(Us,{className:"yst-w-5 yst-h-5","aria-hidden":"true"})):null)))))))),o.isVisible&&(0,t.createElement)(Ps,{id:hs(e),className:"yst-mt-2 yst-text-sm yst-text-red-600",texts:o.message})))))}La.propTypes={value:Rt.PropTypes.string.isRequired,choices:Rt.PropTypes.arrayOf(Rt.PropTypes.shape({id:Rt.PropTypes.oneOfType([Rt.PropTypes.number,Rt.PropTypes.string]).isRequired,value:Rt.PropTypes.string.isRequired,label:Rt.PropTypes.string.isRequired})).isRequired,label:Rt.PropTypes.string.isRequired,onChange:Rt.PropTypes.func.isRequired,id:Rt.PropTypes.string.isRequired,error:Rt.PropTypes.shape({message:Rt.PropTypes.string,isVisible:Rt.PropTypes.bool}),disabled:Rt.PropTypes.bool},La.defaultProps={error:{message:"",isVisible:!1},disabled:!1};const Aa=t.forwardRef((function(e,s){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},e),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"}))})),Fa=({className:e})=>(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:ys()("yst-animate-spin",e)},(0,t.createElement)("circle",{className:"yst-opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,t.createElement)("path",{className:"yst-opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"}));Fa.propTypes={className:Nt().string},Fa.defaultProps={className:""};const Da=Fa;function za({id:e,imageAltText:s,url:n,fallbackUrl:r,label:a,onSelectImageClick:o,onRemoveImageClick:i,className:u,error:d,status:p}){const m=ys()("yst-relative yst-w-full yst-h-48 yst-mt-2 yst-flex yst-justify-center yst-items-center yst-rounded-md yst-mb-4 focus:yst-outline-none focus:yst-ring-2 focus:yst-ring-offset-2 focus:yst-ring-primary-500",d.isVisible?"yst-border-red-300":"yst-border-slate-300","yst-border-2 yst-border-dashed"),f=(0,l.useCallback)((()=>"loading"===p?(0,t.createElement)("div",{className:"yst-text-center"},(0,t.createElement)(Da,{size:"10",color:"gray-400",className:"yst-inline-block"}),(0,t.createElement)("p",{className:"yst-mt-3"},(0,Pt.__)("Uploading image...","wordpress-seo"))):n?(0,t.createElement)("img",{src:n,alt:s,className:"yst-w-full yst-h-full yst-object-contain"}):r?(0,t.createElement)("img",{src:r,alt:s,className:"yst-w-full yst-h-full yst-object-contain"}):(0,t.createElement)(Aa,{id:`${e}-no-image-svg`,className:"yst-w-14 yst-h-14 yst-text-slate-500"})),[p,e,n,s]);return(0,t.createElement)("div",{className:ys()("yst-max-w-sm",u),...gs(e,d)},(0,t.createElement)("label",{htmlFor:e,className:"yst-block yst-mb-2 yst-font-medium yst-text-slate-700"},a),(0,t.createElement)("button",{id:e,className:m,onClick:o,type:"button","data-hiive-event-name":"clicked_select_image"},f()),(0,t.createElement)("div",null,(0,t.createElement)(c.Button,{id:n?e+"__replace-image":e+"__select-image",variant:"secondary",className:"yst-mr-2",onClick:o,"data-hiive-event-name":n?"clicked_replace_image":"clicked_select_image"},n?(0,Pt.__)("Replace image","wordpress-seo"):(0,Pt.__)("Select image","wordpress-seo")),n&&(0,t.createElement)(c.Link,{id:`${e}__remove-image`,as:"button",type:"button",variant:"error",onClick:i,className:"yst-px-3 yst-py-2 yst-rounded-md","data-hiive-event-name":"clicked_remove_image"},(0,Pt.__)("Remove image","wordpress-seo"))),"error"===p&&(0,t.createElement)("p",{className:"yst-mt-2 yst-text-sm yst-text-red-600"},d),d.isVisible&&(0,t.createElement)(Ps,{id:hs(e),className:"yst-mt-2 yst-text-sm yst-text-red-600",texts:d.message}))}za.propTypes={label:Nt().string,id:Nt().string.isRequired,url:Nt().string,fallbackUrl:Nt().string,imageAltText:Nt().string,onRemoveImageClick:Nt().func,onSelectImageClick:Nt().func,className:Nt().string,error:Nt().shape({message:Nt().string,isVisible:Nt().bool}),status:Nt().string},za.defaultProps={label:"",url:"",fallbackUrl:"",imageAltText:"",onRemoveImageClick:u.noop,onSelectImageClick:u.noop,className:"",error:{message:"",isVisible:!1},status:"idle"},window.yoast.socialMetadataForms;const ja=e=>({type:e.subtype,width:e.width,height:e.height,url:e.url,id:e.id,sizes:e.sizes,alt:e.alt||e.title||e.name});function $a(e){(function(e){const t=window.wp.media();return t.on("select",(()=>{const s=t.state().get("selection").first();e(ja(s.attributes))})),t})(e).open()}function qa({dispatch:e,imageUrl:s,fallbackImageUrl:n,organizationName:r,fallbackOrganizationName:a,errorFields:o}){const i=(0,l.useCallback)((()=>{$a((t=>{e({type:"SET_COMPANY_LOGO",payload:{...t}})}))}),[$a]),c=(0,l.useCallback)((()=>{e({type:"REMOVE_COMPANY_LOGO"})})),u=(0,l.useCallback)((t=>{e({type:"CHANGE_COMPANY_NAME",payload:t.target.value})}));return(0,t.createElement)(l.Fragment,null,(0,t.createElement)(Ns,{className:"yst-mt-6",id:"organization-name-input",name:"organization-name",label:(0,Pt.__)("Organization name","wordpress-seo"),value:""===r?a:r,onChange:u,feedback:{isVisible:o.includes("company_name"),message:[(0,Pt.__)("We could not save the organization name. Please check the value.","wordpress-seo")],type:"error"}}),(0,t.createElement)(za,{className:"yst-mt-6",id:"organization-logo-input",url:s,fallbackUrl:n,onSelectImageClick:i,onRemoveImageClick:c,imageAltText:"",hasPreview:!0,label:(0,Pt.__)("Organization logo","wordpress-seo")}))}function Ba(e,s){let n=(0,t.useRef)([]),r=nt(e);(0,t.useEffect)((()=>{let e=[...n.current];for(let[t,a]of s.entries())if(n.current[t]!==a){let t=r(s,e);return n.current=s,t}}),[r,...s])}qa.propTypes={dispatch:Nt().func.isRequired,imageUrl:Nt().string,fallbackImageUrl:Nt().string,organizationName:Nt().string,fallbackOrganizationName:Nt().string,errorFields:Nt().array},qa.defaultProps={imageUrl:"",fallbackImageUrl:"",organizationName:"",fallbackOrganizationName:"",errorFields:[]};var Ua=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Ua||{}),Ha=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Ha||{}),Va=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Va||{}),Za=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.RegisterOption=3]="RegisterOption",e[e.UnregisterOption=4]="UnregisterOption",e[e.RegisterLabel=5]="RegisterLabel",e))(Za||{});function Ga(e,t=(e=>e)){let s=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,n=ta(t(e.options.slice()),(e=>e.dataRef.current.domRef.current)),r=s?n.indexOf(s):null;return-1===r&&(r=null),{options:n,activeOptionIndex:r}}let Wa={1:e=>e.dataRef.current.disabled||1===e.comboboxState?e:{...e,activeOptionIndex:null,comboboxState:1},0(e){if(e.dataRef.current.disabled||0===e.comboboxState)return e;let t=e.activeOptionIndex,{isSelected:s}=e.dataRef.current,n=e.options.findIndex((e=>s(e.dataRef.current.value)));return-1!==n&&(t=n),{...e,comboboxState:0,activeOptionIndex:t}},2(e,t){var s;if(e.dataRef.current.disabled||e.dataRef.current.optionsRef.current&&!e.dataRef.current.optionsPropsRef.current.static&&1===e.comboboxState)return e;let n=Ga(e);if(null===n.activeOptionIndex){let e=n.options.findIndex((e=>!e.dataRef.current.disabled));-1!==e&&(n.activeOptionIndex=e)}let r=Vr(t,{resolveItems:()=>n.options,resolveActiveIndex:()=>n.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...n,activeOptionIndex:r,activationTrigger:null!=(s=t.trigger)?s:1}},3:(e,t)=>{let s={id:t.id,dataRef:t.dataRef},n=Ga(e,(e=>[...e,s]));null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(n.activeOptionIndex=n.options.indexOf(s));let r={...e,...n,activationTrigger:1};return e.dataRef.current.__demoMode&&void 0===e.dataRef.current.value&&(r.activeOptionIndex=0),r},4:(e,t)=>{let s=Ga(e,(e=>{let s=e.findIndex((e=>e.id===t.id));return-1!==s&&e.splice(s,1),e}));return{...e,...s,activationTrigger:1}},5:(e,t)=>({...e,labelId:t.id})},Ya=(0,t.createContext)(null);function Ka(e){let s=(0,t.useContext)(Ya);if(null===s){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Ka),t}return s}Ya.displayName="ComboboxActionsContext";let Qa=(0,t.createContext)(null);function Ja(e){let s=(0,t.useContext)(Qa);if(null===s){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Ja),t}return s}function Xa(e,t){return Ae(t.type,Wa,e,t)}Qa.displayName="ComboboxDataContext";let eo=t.Fragment,to=Ue((function(e,s){let{value:n,defaultValue:r,onChange:a,name:o,by:i=((e,t)=>e===t),disabled:l=!1,__demoMode:c=!1,nullable:u=!1,multiple:d=!1,...p}=e,[m=(d?[]:void 0),f]=da(n,a,r),[y,h]=(0,t.useReducer)(Xa,{dataRef:(0,t.createRef)(),comboboxState:c?0:1,options:[],activeOptionIndex:null,activationTrigger:1,labelId:null}),g=(0,t.useRef)(!1),b=(0,t.useRef)({static:!1,hold:!1}),v=(0,t.useRef)(null),E=(0,t.useRef)(null),w=(0,t.useRef)(null),x=(0,t.useRef)(null),S=nt("string"==typeof i?(e,t)=>{let s=i;return(null==e?void 0:e[s])===(null==t?void 0:t[s])}:i),_=(0,t.useCallback)((e=>Ae(k.mode,{1:()=>m.some((t=>S(t,e))),0:()=>S(m,e)})),[m]),k=(0,t.useMemo)((()=>({...y,optionsPropsRef:b,labelRef:v,inputRef:E,buttonRef:w,optionsRef:x,value:m,defaultValue:r,disabled:l,mode:d?1:0,get activeOptionIndex(){if(g.current&&null===y.activeOptionIndex&&y.options.length>0){let e=y.options.findIndex((e=>!e.dataRef.current.disabled));if(-1!==e)return e}return y.activeOptionIndex},compare:S,isSelected:_,nullable:u,__demoMode:c})),[m,r,l,d,u,c,y]);Xe((()=>{y.dataRef.current=k}),[k]),aa([k.buttonRef,k.inputRef,k.optionsRef],(()=>A.closeCombobox()),0===k.comboboxState);let O=(0,t.useMemo)((()=>({open:0===k.comboboxState,disabled:l,activeIndex:k.activeOptionIndex,activeOption:null===k.activeOptionIndex?null:k.options[k.activeOptionIndex].dataRef.current.value,value:m})),[k,l,m]),C=nt((e=>{let t=k.options.find((t=>t.id===e));!t||L(t.dataRef.current.value)})),P=nt((()=>{if(null!==k.activeOptionIndex){let{dataRef:e,id:t}=k.options[k.activeOptionIndex];L(e.current.value),A.goToOption(Hr.Specific,t)}})),R=nt((()=>{h({type:0}),g.current=!0})),N=nt((()=>{h({type:1}),g.current=!1})),T=nt(((e,t,s)=>(g.current=!1,e===Hr.Specific?h({type:2,focus:Hr.Specific,id:t,trigger:s}):h({type:2,focus:e,trigger:s})))),I=nt(((e,t)=>(h({type:3,id:e,dataRef:t}),()=>h({type:4,id:e})))),M=nt((e=>(h({type:5,id:e}),()=>h({type:5,id:null})))),L=nt((e=>Ae(k.mode,{0:()=>null==f?void 0:f(e),1(){let t=k.value.slice(),s=t.findIndex((t=>S(t,e)));return-1===s?t.push(e):t.splice(s,1),null==f?void 0:f(t)}}))),A=(0,t.useMemo)((()=>({onChange:L,registerOption:I,registerLabel:M,goToOption:T,closeCombobox:N,openCombobox:R,selectActiveOption:P,selectOption:C})),[]),F=null===s?{}:{ref:s},D=(0,t.useRef)(null),z=ut();return(0,t.useEffect)((()=>{!D.current||void 0!==r&&z.addEventListener(D.current,"reset",(()=>{L(r)}))}),[D,L]),t.createElement(Ya.Provider,{value:A},t.createElement(Qa.Provider,{value:k},t.createElement(Ye,{value:Ae(k.comboboxState,{0:Ge.Open,1:Ge.Closed})},null!=o&&null!=m&&la({[o]:m}).map((([e,s],n)=>t.createElement(ia,{features:oa.Hidden,ref:0===n?e=>{var t;D.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...He({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,name:e,value:s})}))),$e({ourProps:F,theirProps:p,slot:O,defaultTag:eo,name:"Combobox"}))))})),so=Ue((function(e,s){var n,r,a,o;let i=qr(),{id:l=`headlessui-combobox-input-${i}`,onChange:c,displayValue:u,type:d="text",...p}=e,m=Ja("Combobox.Input"),f=Ka("Combobox.Input"),y=ot(m.inputRef,s),h=(0,t.useRef)(!1),g=ut();var b;Ba((([e,t],[s,n])=>{h.current||!m.inputRef.current||(0===n&&1===t||e!==s)&&(m.inputRef.current.value=e)}),["function"==typeof u&&void 0!==m.value?null!=(b=u(m.value))?b:"":"string"==typeof m.value?m.value:"",m.comboboxState]),Ba((([e],[t])=>{if(0===e&&1===t){let e=m.inputRef.current;if(!e)return;let t=e.value,{selectionStart:s,selectionEnd:n,selectionDirection:r}=e;e.value="",e.value=t,null!==r?e.setSelectionRange(s,n,r):e.setSelectionRange(s,n)}}),[m.comboboxState]);let v=(0,t.useRef)(!1),E=nt((()=>{v.current=!0})),w=nt((()=>{setTimeout((()=>{v.current=!1}))})),x=nt((e=>{switch(h.current=!0,e.key){case Ur.Backspace:case Ur.Delete:if(0!==m.mode||!m.nullable)return;let t=e.currentTarget;g.requestAnimationFrame((()=>{""===t.value&&(f.onChange(null),m.optionsRef.current&&(m.optionsRef.current.scrollTop=0),f.goToOption(Hr.Nothing))}));break;case Ur.Enter:if(h.current=!1,0!==m.comboboxState||v.current)return;if(e.preventDefault(),e.stopPropagation(),null===m.activeOptionIndex)return void f.closeCombobox();f.selectActiveOption(),0===m.mode&&f.closeCombobox();break;case Ur.ArrowDown:return h.current=!1,e.preventDefault(),e.stopPropagation(),Ae(m.comboboxState,{0:()=>{f.goToOption(Hr.Next)},1:()=>{f.openCombobox()}});case Ur.ArrowUp:return h.current=!1,e.preventDefault(),e.stopPropagation(),Ae(m.comboboxState,{0:()=>{f.goToOption(Hr.Previous)},1:()=>{f.openCombobox(),g.nextFrame((()=>{m.value||f.goToOption(Hr.Last)}))}});case Ur.Home:if(e.shiftKey)break;return h.current=!1,e.preventDefault(),e.stopPropagation(),f.goToOption(Hr.First);case Ur.PageUp:return h.current=!1,e.preventDefault(),e.stopPropagation(),f.goToOption(Hr.First);case Ur.End:if(e.shiftKey)break;return h.current=!1,e.preventDefault(),e.stopPropagation(),f.goToOption(Hr.Last);case Ur.PageDown:return h.current=!1,e.preventDefault(),e.stopPropagation(),f.goToOption(Hr.Last);case Ur.Escape:return h.current=!1,0!==m.comboboxState?void 0:(e.preventDefault(),m.optionsRef.current&&!m.optionsPropsRef.current.static&&e.stopPropagation(),f.closeCombobox());case Ur.Tab:if(h.current=!1,0!==m.comboboxState)return;0===m.mode&&f.selectActiveOption(),f.closeCombobox()}})),S=nt((e=>{f.openCombobox(),null==c||c(e)})),_=nt((()=>{h.current=!1})),k=Br((()=>{if(m.labelId)return[m.labelId].join(" ")}),[m.labelId]),O=(0,t.useMemo)((()=>({open:0===m.comboboxState,disabled:m.disabled})),[m]);return $e({ourProps:{ref:y,id:l,role:"combobox",type:d,"aria-controls":null==(n=m.optionsRef.current)?void 0:n.id,"aria-expanded":m.disabled?void 0:0===m.comboboxState,"aria-activedescendant":null===m.activeOptionIndex||null==(r=m.options[m.activeOptionIndex])?void 0:r.id,"aria-multiselectable":1===m.mode||void 0,"aria-labelledby":k,"aria-autocomplete":"list",defaultValue:null!=(o=null!=(a=e.defaultValue)?a:void 0!==m.defaultValue?null==u?void 0:u(m.defaultValue):null)?o:m.defaultValue,disabled:m.disabled,onCompositionStart:E,onCompositionEnd:w,onKeyDown:x,onChange:S,onBlur:_},theirProps:p,slot:O,defaultTag:"input",name:"Combobox.Input"})})),no=Ue((function(e,s){var n;let r=Ja("Combobox.Button"),a=Ka("Combobox.Button"),o=ot(r.buttonRef,s),i=qr(),{id:l=`headlessui-combobox-button-${i}`,...c}=e,u=ut(),d=nt((e=>{switch(e.key){case Ur.ArrowDown:return e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&a.openCombobox(),u.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case Ur.ArrowUp:return e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&(a.openCombobox(),u.nextFrame((()=>{r.value||a.goToOption(Hr.Last)}))),u.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case Ur.Escape:return 0!==r.comboboxState?void 0:(e.preventDefault(),r.optionsRef.current&&!r.optionsPropsRef.current.static&&e.stopPropagation(),a.closeCombobox(),u.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})})));default:return}})),p=nt((e=>{if(Zr(e.currentTarget))return e.preventDefault();0===r.comboboxState?a.closeCombobox():(e.preventDefault(),a.openCombobox()),u.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}))})),m=Br((()=>{if(r.labelId)return[r.labelId,l].join(" ")}),[r.labelId,l]),f=(0,t.useMemo)((()=>({open:0===r.comboboxState,disabled:r.disabled,value:r.value})),[r]);return $e({ourProps:{ref:o,id:l,type:na(e,r.buttonRef),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":null==(n=r.optionsRef.current)?void 0:n.id,"aria-expanded":r.disabled?void 0:0===r.comboboxState,"aria-labelledby":m,disabled:r.disabled,onClick:p,onKeyDown:d},theirProps:c,slot:f,defaultTag:"button",name:"Combobox.Button"})})),ro=Ue((function(e,s){let n=qr(),{id:r=`headlessui-combobox-label-${n}`,...a}=e,o=Ja("Combobox.Label"),i=Ka("Combobox.Label"),l=ot(o.labelRef,s);Xe((()=>i.registerLabel(r)),[r]);let c=nt((()=>{var e;return null==(e=o.inputRef.current)?void 0:e.focus({preventScroll:!0})})),u=(0,t.useMemo)((()=>({open:0===o.comboboxState,disabled:o.disabled})),[o]);return $e({ourProps:{ref:l,id:r,onClick:c},theirProps:a,slot:u,defaultTag:"label",name:"Combobox.Label"})})),ao=ze.RenderStrategy|ze.Static,oo=Ue((function(e,s){let n=qr(),{id:r=`headlessui-combobox-options-${n}`,hold:a=!1,...o}=e,i=Ja("Combobox.Options"),l=ot(i.optionsRef,s),c=We(),u=null!==c?c===Ge.Open:0===i.comboboxState;Xe((()=>{var t;i.optionsPropsRef.current.static=null!=(t=e.static)&&t}),[i.optionsPropsRef,e.static]),Xe((()=>{i.optionsPropsRef.current.hold=a}),[i.optionsPropsRef,a]),function({container:e,accept:s,walk:n,enabled:r=!0}){let a=(0,t.useRef)(s),o=(0,t.useRef)(n);(0,t.useEffect)((()=>{a.current=s,o.current=n}),[s,n]),Xe((()=>{if(!e||!r)return;let t=Gr(e);if(!t)return;let s=a.current,n=o.current,i=Object.assign((e=>s(e)),{acceptNode:s}),l=t.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,i,!1);for(;l.nextNode();)n(l.currentNode)}),[e,r,a,o])}({container:i.optionsRef.current,enabled:0===i.comboboxState,accept:e=>"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let d=Br((()=>{var e,t;return null!=(t=i.labelId)?t:null==(e=i.buttonRef.current)?void 0:e.id}),[i.labelId,i.buttonRef.current]);return $e({ourProps:{"aria-labelledby":d,role:"listbox",id:r,ref:l},theirProps:o,slot:(0,t.useMemo)((()=>({open:0===i.comboboxState})),[i]),defaultTag:"ul",features:ao,visible:u,name:"Combobox.Options"})})),io=Ue((function(e,s){var n,r;let a=qr(),{id:o=`headlessui-combobox-option-${a}`,disabled:i=!1,value:l,...c}=e,u=Ja("Combobox.Option"),d=Ka("Combobox.Option"),p=null!==u.activeOptionIndex&&u.options[u.activeOptionIndex].id===o,m=u.isSelected(l),f=(0,t.useRef)(null),y=tt({disabled:i,value:l,domRef:f,textValue:null==(r=null==(n=f.current)?void 0:n.textContent)?void 0:r.toLowerCase()}),h=ot(s,f),g=nt((()=>d.selectOption(o)));Xe((()=>d.registerOption(o,y)),[y,o]);let b=(0,t.useRef)(!u.__demoMode);Xe((()=>{if(!u.__demoMode)return;let e=it();return e.requestAnimationFrame((()=>{b.current=!0})),e.dispose}),[]),Xe((()=>{if(0!==u.comboboxState||!p||!b.current||0===u.activationTrigger)return;let e=it();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=f.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[f,p,u.comboboxState,u.activationTrigger,u.activeOptionIndex]);let v=nt((e=>{if(i)return e.preventDefault();g(),0===u.mode&&d.closeCombobox()})),E=nt((()=>{if(i)return d.goToOption(Hr.Nothing);d.goToOption(Hr.Specific,o)})),w=ma(),x=nt((e=>w.update(e))),S=nt((e=>{!w.wasMoved(e)||i||p||d.goToOption(Hr.Specific,o,0)})),_=nt((e=>{!w.wasMoved(e)||i||!p||u.optionsPropsRef.current.hold||d.goToOption(Hr.Nothing)})),k=(0,t.useMemo)((()=>({active:p,selected:m,disabled:i})),[p,m,i]);return $e({ourProps:{id:o,ref:h,role:"option",tabIndex:!0===i?void 0:-1,"aria-disabled":!0===i||void 0,"aria-selected":m,disabled:void 0,onClick:v,onFocus:E,onPointerEnter:x,onMouseEnter:x,onPointerMove:S,onMouseMove:S,onPointerLeave:_,onMouseLeave:_},theirProps:c,slot:k,defaultTag:"li",name:"Combobox.Option"})})),lo=Object.assign(to,{Input:so,Button:no,Label:ro,Options:oo,Option:io});function co(e){return e&&e.label?e.label:null}function uo({id:e,value:s,label:n,onChange:r,onQueryChange:a,options:o,placeholder:i,isLoading:c}){const[u,d]=(0,l.useState)(o),[p,m]=(0,l.useState)(""),f=(0,l.useCallback)((e=>{m(e.target.value)}),[m]),y=(0,l.useCallback)((()=>{m("")}),[m]);(0,l.useEffect)((()=>{d(o)}),[o]),(0,l.useEffect)((()=>{a?a(p):d(o.filter((e=>e.label.toLowerCase().includes(p.toLowerCase()))))}),[p,a]);const h=(0,l.useCallback)(((e,t)=>({selected:s,active:n})=>bs({selected:s||e===t,active:n})),[bs]),g=(0,l.useCallback)((e=>t=>{e&&t.stopPropagation()}),[]);return(0,t.createElement)(lo,{id:e,as:"div",value:s,onChange:r,onBlur:y},(({open:r})=>(0,t.createElement)(l.Fragment,null,n&&(0,t.createElement)(lo.Label,{className:"yst-block yst-mb-1 yst-max-w-sm yst-text-sm yst-font-medium yst-text-slate-700"},n),(0,t.createElement)("div",{className:"yst-h-[45px] yst-max-w-sm yst-relative"},(0,t.createElement)(lo.Button,{"data-id":`button-${e}`,role:"button",className:"yst-w-full yst-h-full yst-rounded-md yst-border yst-border-slate-300 yst-flex yst-items-center yst-rounded-r-md yst-pl-3 yst-pr-2 focus-within:yst-border-primary-500 focus-within:yst-outline-none focus-within:yst-ring-1 focus-within:yst-ring-primary-500",as:"div"},(0,t.createElement)(lo.Input,{"data-id":`input-${e}`,className:"yst-w-full yst-text-slate-700 yst-rounded-md yst-border-0 yst-outline-none yst-bg-white yst-py-2 yst-pl-0 yst-pr-10 yst-shadow-none sm:yst-text-sm",onChange:f,displayValue:co,placeholder:i,onClick:g(r)}),(0,t.createElement)(Ma,{className:"yst-h-5 yst-w-5 yst-text-slate-400 yst-inset-y-0 yst-right-0","aria-hidden":"true"})),u.length>0&&(0,t.createElement)(lo.Options,{className:"yst-absolute yst-z-10 yst-mt-1 yst-max-h-60 yst-w-full yst-overflow-auto yst-rounded-md yst-bg-white yst-text-base yst-shadow-lg yst-ring-1 yst-ring-black yst-ring-opacity-5 focus:yst-outline-none sm:yst-text-sm"},c&&(0,t.createElement)("div",{className:"yst-flex yst-bg-white yst-sticky yst-z-20 yst-text-sm yst-italic yst-top-0 yst-py-2 yst-pl-3 yst-pr-9 yst-my-0"},(0,t.createElement)(Da,{className:"yst-text-primary-500 yst-h-4 yst-w-4 yst-mr-2 yst-self-center"}),(0,Pt.__)("Loading...","wordpress-seo")),u.map((e=>(0,t.createElement)(lo.Option,{key:`yst-option-${e.value}`,value:e,className:h(e.value,s.value)},(({selected:n})=>(0,t.createElement)(l.Fragment,null,(0,t.createElement)("span",{className:ys()("yst-block yst-truncate",(n||s.value===e.value)&&"yst-font-semibold")},e.label),(n||s.value===e.value)&&(0,t.createElement)("span",{className:"yst-absolute yst-inset-y-0 yst-right-0 yst-flex yst-items-center yst-pr-4 yst-text-white"},(0,t.createElement)(Us,{className:"yst-h-5 yst-w-5","aria-hidden":"true"}))))))))))))}uo.propTypes={onChange:Nt().func.isRequired,options:Nt().array.isRequired,id:Nt().string.isRequired,value:Nt().shape({value:Nt().number,label:Nt().string}),label:Nt().string,onQueryChange:Nt().func,placeholder:Nt().string,isLoading:Nt().bool},uo.defaultProps={value:null,label:"",onQueryChange:null,placeholder:(0,Pt.__)("Select an option","wordpress-seo"),isLoading:!1};const po={"X-WP-NONCE":wpApiSettings.nonce},mo=wpApiSettings.root;function fo({initialValue:e,onChangeCallback:s,placeholder:n}){const[r,a]=(0,l.useState)([]),[o,i]=(0,l.useState)({value:e.id,label:e.name}),[c,d]=(0,l.useState)(!1),p=(0,l.useRef)(!0);(0,l.useEffect)((()=>()=>{p.current=!1}),[]);const m=(0,l.useCallback)((e=>{i(e),s(e)})),f=(0,l.useCallback)((0,u.debounce)((async e=>{d(!0);const t=await function(e=""){const t=`${mo}wp/v2/users?per_page=20${e?`&search=${encodeURIComponent(e)}`:""}`;return(0,Sr.sendRequest)(t,{method:"GET",headers:po})}(e);p.current&&(d(!1),a(t.map((e=>({value:e.id,label:e.name})))))}),500),[]);return(0,t.createElement)(uo,{id:"yoast-configuration-user-select",value:o,label:(0,Pt.__)("Name","wordpress-seo"),onChange:m,onQueryChange:f,options:r,placeholder:n,isLoading:c})}function yo({dispatch:e,imageUrl:s,fallbackImageUrl:n,person:r,canEditUser:a}){const o=(0,l.useCallback)((()=>{$a((t=>{e({type:"SET_PERSON_LOGO",payload:{...t}})}))}),[$a]),i=(0,l.useCallback)((()=>{e({type:"REMOVE_PERSON_LOGO"})})),c=(0,l.useCallback)((t=>{e({type:"SET_PERSON",payload:t}),C()({path:`yoast/v1/configuration/check_capability?user_id=${t.value}`}).then((t=>{e({type:"SET_CAN_EDIT_USER",payload:t.success})})).catch((e=>{console.error(e.message)}))}),[e]),u=(0,l.useMemo)((()=>(0,l.createInterpolateElement)((0,Pt.sprintf)(
// translators: %1$s is replaced by the selected user's name, and %2$s and %3$s are opening and closing anchor tags.
a?(0,Pt.__)("You have selected the user %1$s as the person this site represents. This user profile information will now be used in search results. %2$sUpdate this profile to make sure the information is correct%3$s.","wordpress-seo"):(0,Pt.__)("You have selected the user %1$s as the person this site represents. This user profile information will now be used in search results. You're not allowed to update this user profile, so please ask this user or an admin to make sure the information is correct.","wordpress-seo"),`<b>${r.name}</b>`,"<a>","</a>"),{b:(0,t.createElement)("b",null),a:(0,t.createElement)("a",{id:"yoast-configuration-user-selector-user-link",href:window.wpseoScriptData.userEditUrl.replace("{user_id}",r.id),target:"_blank",rel:"noopener noreferrer"})})),[r.id,r.name,a]);return(0,t.createElement)(l.Fragment,null,(0,t.createElement)(fo,{initialValue:r,onChangeCallback:c,name:"person_id",placeholder:(0,Pt.__)("Select a user","wordpress-seo")}),(0,t.createElement)(js,{id:"user-representation-alert",isVisible:0!==r.id,type:"info",className:"yst-mt-5"},u),(0,t.createElement)(za,{className:"yst-mt-6",id:"person-logo-input",url:s,fallbackUrl:n,onSelectImageClick:o,onRemoveImageClick:i,imageAltText:"",hasPreview:!0,label:(0,Pt.__)("Personal logo or avatar","wordpress-seo")}))}function ho({onOrganizationOrPersonChange:e,dispatch:s,state:n,siteRepresentationEmpty:r}){const[a,o]=(0,l.useState)("emptyChoice"===n.companyOrPerson?"yst-opacity-0":"yst-opacity-100"),i=(0,l.useCallback)((()=>{o("yst-opacity-100")})),c=(0,l.useCallback)((e=>{s({type:"CHANGE_WEBSITE_NAME",payload:e.target.value})})),u=jr((0,Pt.sprintf)(/* translators: %1$s expands to opening 'a' HTML tag, %2$s expands to closing 'a' HTML tag. */
(0,Pt.__)("Completing this step helps Google to understand your site even better. Bonus: You'll improve your chance of getting %1$srich results%2$s!","wordpress-seo"),"<a>","</a>"),"https://yoa.st/config-workout-rich-results","yoast-configuration-rich-text-link");return(0,t.createElement)(l.Fragment,null,window.wpseoFirstTimeConfigurationData.knowledgeGraphMessage&&(0,t.createElement)(zs,{type:"info"},window.wpseoFirstTimeConfigurationData.knowledgeGraphMessage),(0,t.createElement)("p",{className:ys()("yst-text-sm yst-whitespace-pre-line yst-mb-6",n.shouldForceCompany?"yst-mt-4":"yst-mt-0")},n.shouldForceCompany?u:(0,t.createElement)(l.Fragment,null,(0,Pt.__)("Tell us! Is your site about an organization or a person? ","wordpress-seo"),u)),(0,t.createElement)(La,{id:"organization-person-select",htmlFor:"organization-person-select",name:"organization",label:(0,Pt.__)("Does your site represent an Organization or Person?","wordpress-seo"),value:n.shouldForceCompany?"company":n.companyOrPerson,onChange:e,choices:n.companyOrPersonOptions,disabled:!!n.shouldForceCompany}),!("company"===n.companyOrPerson&&n.companyName&&n.companyLogo||"company"===n.companyOrPerson&&!n.companyLogoFallback||"person"===n.companyOrPerson&&n.personLogo||"person"===n.companyOrPerson&&!n.personLogoFallback)&&(0,t.createElement)(zs,{type:"info",className:"yst-mt-6"},(0,Pt.__)("We took the liberty of using your website name and logo for the organization name and logo. Feel free to change them below.","wordpress-seo")),(0,t.createElement)(Ns,{className:"yst-my-6",id:"website-name-input",name:"website-name",label:(0,Pt.__)("Website name","wordpress-seo"),value:n.websiteName||n.fallbackWebsiteName,onChange:c,feedback:{isVisible:n.errorFields.includes("website_name"),message:[(0,Pt.__)("We could not save the website name. Please check the value.","wordpress-seo")],type:"error"}}),(0,t.createElement)(Ds.Z,{height:["company","person"].includes(n.companyOrPerson)?"auto":0,duration:400,easing:"linear",onAnimationEnd:i},(0,t.createElement)("div",{className:ys()("yst-transition-opacity yst-duration-300 yst-mt-6",a)},"company"===n.companyOrPerson&&(0,t.createElement)(qa,{dispatch:s,imageUrl:n.companyLogo,fallbackImageUrl:n.companyLogoFallback,organizationName:n.companyName,fallbackOrganizationName:n.fallbackCompanyName,errorFields:n.errorFields}),"person"===n.companyOrPerson&&(0,t.createElement)(yo,{dispatch:s,imageUrl:n.personLogo,fallbackImageUrl:n.personLogoFallback,person:{id:n.personId,name:n.personName},canEditUser:!!n.canEditUser,errorFields:n.errorFields}))),(0,t.createElement)(js,{id:"site-representation-empty-alert",isVisible:r,className:"yst-mt-6"},(0,Pt.__)("You're almost there! Complete all settings in this step so search engines know what your site is about.","wordpress-seo")))}fo.propTypes={initialValue:Nt().shape({id:Nt().number,name:Nt().string}),onChangeCallback:Nt().func,placeholder:Nt().string},fo.defaultProps={initialValue:{id:0,name:""},onChangeCallback:u.noop,placeholder:(0,Pt.__)("Select a user","wordpress-seo")},yo.propTypes={dispatch:Nt().func.isRequired,imageUrl:Nt().string,fallbackImageUrl:Nt().string,person:Nt().shape({id:Nt().number,name:Nt().string}),canEditUser:Nt().bool.isRequired},yo.defaultProps={imageUrl:"",fallbackImageUrl:"",person:{id:0,name:""}},ho.propTypes={onOrganizationOrPersonChange:Nt().func.isRequired,dispatch:Nt().func.isRequired,state:Nt().object.isRequired,siteRepresentationEmpty:Nt().bool.isRequired};const go=(0,Pt.__)("Oops! Something went wrong. Check your email address and try again.","wordpress-seo"),bo=(0,Pt.__)("Please enter a valid email address.","wordpress-seo"),vo=(0,Pt.__)("Thank you! Check your inbox for the confirmation email.","wordpress-seo");function Eo({gdprLink:e}){const[s,n]=(0,l.useState)(""),[r,a]=(0,l.useState)("waiting"),[o,i]=(0,l.useState)(""),c=(0,l.useCallback)((async function(){if(!(0,y.isEmail)(s))return a("error"),void i(bo);a("loading"),(await async function(e){return(await fetch("https://my.yoast.com/api/Mailing-list/subscribe",{method:"POST",mode:"cors",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json"},redirect:"follow",referrerPolicy:"no-referrer",body:JSON.stringify({customerDetails:{firstName:"",email:e},list:"Yoast newsletter",source:"free"})})).json()}(s)).error?(a("error"),i(go)):(a("success"),i(vo))}),[s]),u=(0,l.useCallback)((e=>{a("waiting"),n(e.target.value)}),[n]);return(0,t.createElement)(l.Fragment,null,(0,t.createElement)("h4",{className:"yst-text-slate-900 yst-text-base yst-leading-6 yst-font-normal"},(0,Pt.__)("Get free weekly SEO tips!","wordpress-seo")),(0,t.createElement)("p",{className:"yst-my-2"},(0,Pt.sprintf)(/* translators: %1$s expands to "Yoast SEO", %2$s expands to "Yoast SEO". */
(0,Pt.__)("Subscribe to the %1$s newsletter to receive best practices for improving your rankings, save time on SEO tasks, stay up-to-date with the latest SEO news, and get expert guidance on how to make the most of %2$s!","wordpress-seo"),"Yoast SEO","Yoast SEO")),(0,t.createElement)("div",{className:"yst-flex yst-items-start yst-gap-2 yst-mt-4"},(0,t.createElement)(Ns,{label:(0,Pt.__)("Email address","wordpress-seo"),id:"newsletter-email",name:"newsletter email",value:s,onChange:u,className:"yst-grow",type:"email",placeholder:(0,Pt.__)("E.g. example@email.com","wordpress-seo"),feedback:{isVisible:["error","success"].includes(r),type:r,message:[o]}}),(0,t.createElement)("button",{type:"button",id:"newsletter-sign-up-button",className:"yst-button yst-button--primary yst-h-[45px] yst-items-center yst-mt-[27.5px] yst-shrink-0",onClick:c,disabled:"loading"===r,"data-hiive-event-name":"clicked_signup | personal preferences"},(0,Pt.__)("Yes, give me your free tips!","wordpress-seo"))),(0,t.createElement)("p",{className:"yst-text-slate-600 yst-text-xxs yst-leading-4"},jr((0,Pt.sprintf)(
// translators: %1$s and %2$s are replaced by opening and closing anchor tags.
(0,Pt.__)("Yoast respects your privacy. Read %1$sour privacy policy%2$s on how we handle your personal information.","wordpress-seo"),"<a>","</a>"),e,"yoast-configuration-gdpr-link")))}Eo.propTypes={gdprLink:Nt().string},Eo.defaultProps={gdprLink:""};const wo={variant:{default:"","inline-block":"yst-radio-group--inline-block"}},xo=({id:e,name:s,value:n,label:r,className:a,...o})=>(0,t.createElement)("div",{className:ys()("yst-radio",a)},(0,t.createElement)("input",{type:"radio",id:e,name:s,value:n,className:"yst-radio__input",...o}),r&&(0,t.createElement)(So,{htmlFor:e,className:"yst-radio__label"},r));xo.propTypes={name:Nt().string.isRequired,id:Nt().string.isRequired,value:Nt().oneOfType([Nt().string,Nt().number]).isRequired,label:Nt().string.isRequired,variant:Nt().oneOf(Object.keys({default:"","inline-block":"yst-radio--inline-block"})),className:Nt().string},xo.defaultProps={variant:"default",className:""};const So=({children:e,as:s,className:n,...r})=>(0,t.createElement)(s,{className:ys()("yst-label",n),...r},e);So.propTypes={children:Nt().node.isRequired,as:Nt().elementType,className:Nt().string},So.defaultProps={as:"label",className:""};const _o=({children:e,id:s,name:n,value:r,label:a,options:o,onChange:i,variant:c,className:u,...d})=>{const p=(0,l.useCallback)((({target:e})=>e.checked&&i(e.value)),[i]);return(0,t.createElement)("fieldset",{className:ys()("yst-radio-group",wo.variant[c],u)},a&&(0,t.createElement)(So,{as:"legend",className:"yst-radio-group__label"},a),e&&(0,t.createElement)("div",{className:"yst-radio-group__description"},e),(0,t.createElement)("div",{className:"yst-radio-group__options"},o.map(((e,a)=>{const o=`${s}-${a}`;return(0,t.createElement)(xo,{key:o,id:o,name:n,value:e.value,label:e.label,variant:c,checked:r===e.value,onChange:p,...d})}))))};_o.propTypes={children:Nt().node,id:Nt().string.isRequired,name:Nt().string.isRequired,value:Nt().oneOfType([Nt().string,Nt().number]).isRequired,options:Nt().arrayOf(Nt().shape({value:Nt().oneOfType([Nt().string,Nt().number]).isRequired,label:Nt().string.isRequired})).isRequired,onChange:Nt().func.isRequired,label:Nt().node,variant:Nt().oneOf(Object.keys(wo.variant)),className:Nt().string},_o.defaultProps={children:null,label:null,variant:"default",className:""};const ko=_o,Oo=(0,Sr.makeOutboundLink)();function Co({state:e,setTracking:s}){return(0,t.createElement)(l.Fragment,null,!e.isPremium&&(0,t.createElement)(l.Fragment,null,(0,t.createElement)(Eo,{gdprLink:window.wpseoFirstTimeConfigurationData.shortlinks.gdpr}),(0,t.createElement)("br",null)),(0,t.createElement)("h4",{className:"yst-text-slate-900 yst-text-base yst-leading-6 yst-font-normal"},(0,Pt.__)("Are you open to help us improve our services?","wordpress-seo")),!!e.isMainSite&&!e.isTrackingAllowedMultisite&&(0,t.createElement)(zs,{type:"warning",className:"yst-mt-2"},(0,Pt.__)("This feature has been disabled by the network admin.","wordpress-seo")),!e.isMainSite&&(0,t.createElement)(zs,{type:"warning",className:"yst-mt-2"},(0,Pt.__)("This feature has been disabled since subsites never send tracking data.","wordpress-seo")),(0,t.createElement)("p",{className:ys()("yst-text-normal yst-mt-2 yst-mb-4",e.isMainSite&&e.isTrackingAllowedMultisite?"":"yst-opacity-50")},(0,Pt.sprintf)(/* translators: 1: Yoast SEO. */
(0,Pt.__)("Can we collect anonymous information about your website to enhance %1$s?","wordpress-seo"),"Yoast SEO")),(0,t.createElement)(ko,{id:"yoast-configuration-tracking-radio-button",name:"yoast-configuration-tracking",value:e.tracking,onChange:s,className:e.isMainSite&&e.isTrackingAllowedMultisite?"":"yst-opacity-50",disabled:!e.isMainSite||!e.isTrackingAllowedMultisite,options:[{value:0,label:(0,Pt.__)("No, I don't want to share my site data","wordpress-seo")},{value:1,label:(0,Pt.__)("Yes, you can collect my site data","wordpress-seo")}]}),!!e.isMainSite&&!!e.isTrackingAllowedMultisite&&(0,t.createElement)(l.Fragment,null,(0,t.createElement)(Oo,{className:"yst-inline-block yst-mt-4",href:"https://yoa.st/config-workout-tracking"},(0,Pt.__)("What data will be collected and why?","wordpress-seo")),(0,t.createElement)("p",{className:"yst-my-2"},(0,t.createElement)("i",null,(0,Pt.__)("Important: We won't sell this data, and we won't collect any personal information about you or your visitors.","wordpress-seo")))))}var Po,Ro,No,To,Io,Mo,Lo,Ao,Fo,Do,zo,jo,$o,qo,Bo,Uo,Ho,Vo,Zo,Go,Wo,Yo,Ko,Qo,Jo,Xo,ei,ti,si,ni,ri,ai,oi,ii,li,ci,ui,di,pi,mi,fi,yi,hi,gi,bi,vi,Ei,wi,xi,Si,_i;function ki(){return ki=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e},ki.apply(this,arguments)}Co.propTypes={state:Nt().object.isRequired,setTracking:Nt().func.isRequired};const Oi=e=>t.createElement("svg",ki({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:"indexables_2_left_bubble_optm_svg__yst-shrink-0 indexables_2_left_bubble_optm_svg__yst-h-28",viewBox:"0 0 289.98 291.69"},e),Po||(Po=t.createElement("path",{fill:"#006531",d:"M178.09 168c6.2.88 11.73 57.74 10.9 64-1 7.61-20.47 21.56-35.83 16.83s-22.28-17.36-17.85-26.51 36.58-55.25 42.78-54.32z"})),Ro||(Ro=t.createElement("path",{fill:"#f0ecf0",d:"M256.47 217s6 6 13.08 13.82a131.19 131.19 0 1 0-181.07 40.45q3.55 2.25 7.23 4.27c.71-2.79 1.36-5 1.81-6.64 1.48-5.32 6.32-14.53 5.36-19.55s-4.13-7.68-3.54-20.08a114.5 114.5 0 0 1 3.54-25.72 14.88 14.88 0 0 0-7.09-1.77 113.17 113.17 0 0 1 10.95-12c6.87-21.57 17-42 23.64-51.22 6.22-8.64 29.37-10.27 52.71-6.72s47.75 28.12 40.37 63-28.46 44.21-30.79 49.23-5.57 18.8-3.65 23.67c1.29 3.28 6.19 9.05 11.85 17.05a130.91 130.91 0 0 0 48-28.94c-8.87-9.55-19.31-20.38-19.87-21.12 9.73-11.73 15.92-18.83 27.47-17.73z"})),No||(No=t.createElement("path",{fill:"#006531",d:"M150.14 131.06c-3.25-1.48-3.86-.12-7.4.48s-18.86-1.18-23.91.81c-9.9 3.91-14 11.82-16 20.27s.54 19.16 1.72 25.95-3.39 53.18-3.09 59.38 20.2 11.57 22.27.35 15.33-65.3 15.33-65.3 14.33-40.46 11.08-41.94z"})),To||(To=t.createElement("path",{fill:"#b498c6",d:"M49 177.58c26.5 32.94 70.46 51.81 71.35 58.6s-3.84 13.34-8.87 16.29-30.71-3.4-45.77-22.47c-15.55-19.67-28.56-37.13-28.56-37.13s5.68-8.18 11.85-15.29z"})),Io||(Io=t.createElement("path",{fill:"#006531",d:"M132.36 152.53c-4.21 2.95-21 27.42-26.52 32-4.18 3.48-14.36 15.36-15.25 23.63s6.39 19.91 16 25.4c5.24 3 23.88-5.3 25.65-13.27s4.32-70.72.12-67.76z"})),Mo||(Mo=t.createElement("path",{fill:"#006531",d:"M192.67 244.07c2.37-5 23.4-14.36 30.79-49.21s-17-59.44-40.37-63-46.49-1.86-52.71 6.74c-6.63 9.2-16.77 29.65-23.64 51.22 15.28-14.48 30.08-20.49 39.86-32.18-.3 1.55 8.49 23.45 11.81 28.36 4.15 6.13 14.16 17.89 20.38 31-10.34-1.92-21.49-1.6-31.9 2.41-2.66 6.3-2.07 16.93-.88 22.84-2.28 17.87-2.12 33.54.46 48.85 4.06.37 8.17.58 12.32.58a131.19 131.19 0 0 0 42.08-6.9c-5.66-8-10.56-13.77-11.85-17-1.92-4.91 1.29-18.69 3.65-23.71zM112.56 231c-.27-7.26-.22-8.8.78-20.95-2.89-1.6-6.55-4.57-10.46-6.48a114.5 114.5 0 0 0-3.54 25.72c-.59 12.4 2.59 15.06 3.54 20.08S99 263.58 97.52 268.9c-.45 1.6-1.1 3.85-1.81 6.64a127.06 127.06 0 0 0 13.85 6.58c-1.44-18.61-1.04-36.3 3-51.12z"})),Lo||(Lo=t.createElement("path",{fill:"#b498c6",d:"M269.55 230.83C262.43 223 256.47 217 256.47 217c-11.55-1.11-17.74 6-27.47 17.72.56.74 11 11.57 19.88 21.12a132.58 132.58 0 0 0 20.67-25.01z"})),Ao||(Ao=t.createElement("path",{fill:"#89bc3b",d:"M95.79 201.78a14.88 14.88 0 0 1 7.09 1.77c1.1-4.56 2.4-9.17 3.86-13.73a113.74 113.74 0 0 0-10.95 11.96z"})),Fo||(Fo=t.createElement("path",{fill:"#89bc3b",d:"M112.56 231c-4 14.84-4.44 32.53-3 51.14a130.52 130.52 0 0 0 36.91 9c-2.58-15.31-2.74-31-.46-48.85-1.19-5.91-1.78-16.54.88-22.84 10.41-4 21.56-4.33 31.9-2.41-6.22-13.12-16.23-24.88-20.38-31-3.32-4.91-12.11-26.81-11.81-28.36-9.78 11.69-24.58 17.7-39.86 32.18-1.46 4.56-2.76 9.17-3.86 13.73 3.91 1.91 7.57 4.88 10.46 6.48-1 12.11-1.05 13.65-.78 20.93z"})),Do||(Do=t.createElement("path",{fill:"#b498c6",d:"M35.85 151.6s2.66 3.18 4.43 5.55 4.66 16 8.68 20.43-7 12.22-7 12.22c-12-.92-23-13.34-21-28.7 0 0 3.25-4.73 3.84-6.5s-.18-5-.18-5a34.85 34.85 0 0 1-4.29-6.21c-1.21-2.65-.84-6.46.37-9.18s4.56-2.56 4.68-1.89c.31 1.74 2 8.86 1.86 8.6-.87-2.01 2.67 2.19 8.61 10.68z"})),zo||(zo=t.createElement("path",{fill:"#b498c6",d:"M32.13 155.37c-12 4.78-18.36 1.3-24.56 4.84s1.22 17.61 1.22 17.61 1.84 6.8 5.39 11.23 24.27 4.41 24.27 4.41l10.15-13.52z"})),jo||(jo=t.createElement("path",{fill:"#b498c6",d:"M28.47 184.32c-.59.89-5.5 6.45-8.45 7.45s-6.34-.66-6.34-.66c-3.64-1.42-4.81-3.6-3.07-6.2 0 0 10.29-.52 7.34.18s7.57-4.31 7.57-4.31c1.96.66 3.09 1.77 2.95 3.54z"})),$o||($o=t.createElement("path",{fill:"#8b6c9c",d:"M25.52 180.78c7.47.85-3.24 16.33-11.84 10.33 5.39 1.3 7.32.21 10.71-3.07 2.5-2.49 3.06-2.79 2.42-5.24a2.59 2.59 0 0 0-1.29-2.02z"})),qo||(qo=t.createElement("path",{fill:"#b498c6",d:"M5.48 176.94c-2.11 2.55-1.17 5.19 4.13 8l8.39 1.15 8.57-5.31a8.67 8.67 0 0 0-.89-6.8l-10.34 3.25z"})),Bo||(Bo=t.createElement("path",{fill:"#8b6c9c",d:"M9.61 184.91c7.51.44 7.78 1.78 12.14-.95 5-3.14 5.69-4.17 3.88-10 4.06 5.07 1.3 7.9-3.35 10.83-3.09 1.94-6.79 2.92-12.67.12z"})),Uo||(Uo=t.createElement("path",{fill:"#b498c6",d:"M1.34 168.67c-3.06 1.58-.35 9.08 2.77 9l11.18-.41s9.12-2 10.34-3.25c1.81-1.8-.57-7.7-1.48-7.38l-10.93 3z"})),Ho||(Ho=t.createElement("path",{fill:"#8b6c9c",d:"M4.11 177.64c11.75.39 10.61 4.06 19.09-3.93 1.37-1.34-.15-7.07-1.05-7.11 1.23-.32 4.11 5.64 1.75 7.82-5.45 5.13-8.43 7.58-19.79 3.22z"})),Vo||(Vo=t.createElement("path",{fill:"#b498c6",d:"M4.59 159.81c-2.79.54-3.52 2-3.54 5.43s-.94 2.44 1.29 3.43 13.88.88 13.88.88l7.93-3c.73-2.37.66-4.59-1.18-6.5l-9.4-.89a69.28 69.28 0 0 0-8.98.65z"})),Zo||(Zo=t.createElement("path",{fill:"#8b6c9c",d:"M2.34 168.67c1.27.26 12.13.39 13.88.38-.45.09-.73.24 7.76-2.92-.91 1 .41-.43.05-2.9-.51-3.6-2.16-2.54-5.81-3.09-4.5-.9-9.43-1.88 4.8-.54.53.05 3 2.56 1.61 7.14-.11.36.83-.09-8.31 3.31-3.68.02-10.94.14-13.98-1.38z"})),Go||(Go=t.createElement("path",{fill:"#006531",d:"M197.4 137.56c4.72.88 31.31 19.79 39.83 35.92 3.33 6.31 6 21.38 8.9 27.58s13.59 18.31 14.48 19.79c-17.13 2.66-27.18 19.2-27.18 19.2-4-3.26-43.16-44.31-44-46.38-3.25-7.97 3.24-57 7.97-56.11z"})),Wo||(Wo=t.createElement("path",{fill:"#006531",d:"M195.4 110.09c-1.55 13 2 27.47 2 27.47s-44.31 21.26-50.8 20.08-3-24.33-3-24.33-.88-13.29 1.48-17.13 4.75-9.93 13-11.11 38.1-1.57 37.32 5.02z"})),Yo||(Yo=t.createElement("path",{fill:"#b498c6",d:"M147.3 154.39s11.48-21.63 15-24.29 18.72-8.83 22.56-10 3.84-5.31 5-8.56 1.48-29.79 1.48-29.79l-45.29 2 4.73 39.81c.36 12.52-4.85 19.83-3.48 30.83z"})),Ko||(Ko=t.createElement("path",{fill:"#89bc3b",d:"M195.45 138.74s27.35 19.2 39.05 36.26c2.65 3.85 4.84 20.79 7.2 25.81s10.05 15.07 10.05 15.07l5.31.29 3.55 4.73c-9.41 1.64-18.27 9.31-27.18 19.2l-6.49-5.62c5.46-7.09 11.49-13 18.9-15.94 0 0-7.68-12.11-9.75-16.54s-4.52-21.19-7.2-26.41c-9-17.6-39.06-34.73-39.06-34.73z"})),Qo||(Qo=t.createElement("path",{fill:"#093f22",d:"m192.38 197.7 21.02 21.79-2.66 5.31-15.36 5.61 11.88-10.33-14.88-22.38zm-71.73-50.53 1.55 13.29a79.66 79.66 0 0 1-7.31 11.54c-4.43 5.76-8.76 11.31-8.76 11.31L114 156l-.44 12z"})),Jo||(Jo=t.createElement("path",{fill:"#8b6c9c",d:"M191.38 81.73s1.91 5.52-1.07 17.09c-2.07 8-25.57 30.6-35 28.17-6-1.54-6-11.85-7.27-16.31L145 83.8z"})),Xo||(Xo=t.createElement("path",{fill:"#b498c6",d:"M172.22 6.3c-20-2.46-38.74 14.76-40.58 16.91-1.16 1.35-4.27 8.05-6.64 14.45 13.42-5 36.89-.82 67.51 9.88 1 6.7.06 12.11-.92 19.63 0 0-8.61 4.69-16 4.69s-16.29-2.46-18.45-5.23-8-9.63-13.77-10-11.37 5.87-13.89 6.59c-1.75.5-8 3-10.15 5.15v-.08a15.41 15.41 0 0 0-1.18 6.5c.8 8.65 6.53 18.51 8.69 21.59s2.72 9.45 6.41 14.07c3.13 3.91 15.33 3.46 20 2.1 7-2 29.38-9.37 32.77-14S198.23 70 198.23 70s12.4-8.23 13-14.69c2.12-22.13-11.91-45.67-39.01-49.01z"})),ei||(ei=t.createElement("path",{fill:"#006531",d:"M192.2 87.46c21.23 1.16 34.39 0 35.92-9.22s1.16-64.85-52.19-76.38c-50.56-10.93-60.49 29.65-61.72 37s7.59 8.91 7.59 8.91c-.61-3.09 1.55-2.73 3.19-10.14 15.18-3.18 61.91 7.92 64.68 12.84s-.54 12.68-.24 16.06 7.69 6.47 7.69 6.47z"})),ti||(ti=t.createElement("path",{fill:"#093f22",d:"M225.1 81.93c1.13-4.56-4.46-9.51-15.07-14.76l-5.22 5.23-4.92 15.37c12.11.23 23.63.05 25.21-5.84z"})),si||(si=t.createElement("path",{fill:"#b498c6",d:"M207 73.61c3.69 3.07 3.93 10.55 1.78 14.54s-14.78 8.49-17.21 7.57-4.92-3.88-4.92-3.88l10.45-18.62a12.33 12.33 0 0 1 4.49.11c.31 0 2.8-1 3.11-.91a6.32 6.32 0 0 1 2.3 1.19z"})),ni||(ni=t.createElement("path",{fill:"#191a1a",d:"M192.2 69s-19.69 37.82-22.44 39c.82.16 5.58-1.59 7.38-2.46s20-32.59 20-32.59z"})),ri||(ri=t.createElement("path",{fill:"#093f22",d:"m186.03 79.26 5.37 4.21-4.21 7.53-5.93-3.32 4.77-8.42z"})),ai||(ai=t.createElement("path",{fill:"#fcee21",d:"M122.11 47.5a54.43 54.43 0 0 1 2.89-9.84c-4.93 9.91-10.22 24.17-5.7 30.66a35.07 35.07 0 0 1 5.58-8.22s-3.7-6.1-2.77-12.6z"})),oi||(oi=t.createElement("path",{fill:"#fbb03b",d:"M129.49 65.25c2.72-.78 8.83-7.61 14.37-6.38s11.14 8 13.29 10.76 11.07 5.23 18.45 5.23 16-7.69 16-7.69c1-7.52 1.93-12.93.92-19.63-30.62-10.7-54.09-14.89-67.52-9.88a54.43 54.43 0 0 0-2.89 9.84c-.93 6.45 2.76 12.6 2.76 12.6a35.07 35.07 0 0 0-5.58 8.22v.08c2.2-2.15 6.93-2.21 10.2-3.15z"})),ii||(ii=t.createElement("path",{fill:"#4b3f51",d:"M164.1 84.58s-10-6.68-19.87-7.87c-1.84-.22-2.48.64-3.69.59-1.78-.07-2.9-.67-4.28-.74-4.79-.22-5.77 2.37-5.77 2.37a4.35 4.35 0 0 0 1.93 4.43c1.77 1 2.51-1.11 3.32 1.77 17.72-1.66 22.26-.59 28.36-.55z"})),li||(li=t.createElement("path",{fill:"#8b6c9c",d:"M135.67 85c0 2.77-5.87 11.68 5.81 12.3 12.65.7 19.82-9.23 22.52-12.67-9.76-.11-19.34-2.38-28.33.37z"})),ci||(ci=t.createElement("path",{fill:"#f2f2f2",d:"M136.67 81.48c-.95 1.52-.25 7.58 4.61 8.3 7.75 1 16.17-1.77 22-5.22-9.55-1.06-11.88-2.62-16.38-3.49-2.54-.48-9.09-1.42-10.23.41z"})),ui||(ui=t.createElement("path",{fill:"#fcee21",d:"M124.87 60.1a20.07 20.07 0 0 0 12-.61s-2.15-7.92-6.76-7.61-5.24 8.22-5.24 8.22z"})),di||(di=t.createElement("path",{fill:"#f15a24",d:"M136.81 59.5c-3.13-10.48-10.72-10.06-11.88.6-1.93-.14-1.38-9.34 4.35-9.94 6.86-.67 8.23 9.15 7.53 9.34zm1.59-18.77c1.26.46.58 3.28-.69 3.38s-7.64-.52-9.45.31-5.08 4.17-6.25 6.08c.21-1.54 3.68-7.57 5-8.85s10.14-1.38 11.39-.92z"})),pi||(pi=t.createElement("path",{fill:"#8b6c9c",stroke:"#8b6c9c",strokeMiterlimit:10,d:"M150.7 66.25c.48 1.6 1 3.41-.85 4.33s-4-2.41-5.53-2.1-4 2.24-5.61 1.77c-3.34-1-3.69-2.69-3.69-2.69s-1.12 4.2 4.3 4.84c3.68.43 5.35-2.06 8.42-1.45s2.09 2.8 3.57 2.06c2.97-1.47.98-6.44-.61-6.76z"})),mi||(mi=t.createElement("path",{fill:"#8b6c9c",d:"M154.79 69.68c2.27 1.94 3.94 10 11.63 10.35 1.28 2-.13 5.41-1.89 9.58a20.53 20.53 0 0 0 7.07-12.91c-11.05.3-13.26-5.8-16.81-7.02zm-18.22.44s-2.47-.4-2.47.87a.37.37 0 0 1-.16.3.38.38 0 0 1-.34.06c-2.4-.79-1.79-4.72-.07-5.86-1.72 4.02 3.04 4.63 3.04 4.63z"})),fi||(fi=t.createElement("path",{fill:"#8b6c9c",d:"M132.48 68.63c-2 2.71-2.16 7-2 10.24 0 0-1-1.86-2-1.79s-.71 5.3.79 9a31 31 0 0 1-6-15.73c2.67 1.07 6 .5 9.27-3.38z"})),yi||(yi=t.createElement("ellipse",{cx:139.18,cy:184.17,fill:"#fbb03b",stroke:"#fc3",strokeMiterlimit:10,rx:8.75,ry:5.25,transform:"rotate(-9.22 139.183 184.166)"})),hi||(hi=t.createElement("path",{fill:"#f19018",d:"m129.81 195.84 18.24-2.09a100.85 100.85 0 0 0-14.23 16.57l8-.9a78.29 78.29 0 0 0-8.82 18.82c-3.2 9.33-2.81 18.19-3 17.84a47.74 47.74 0 0 1-3.75-14.91 56 56 0 0 1 .51-15.19c-3 .83-6 1.67-8.89 2.51a73.05 73.05 0 0 1 11.94-22.65z"})),gi||(gi=t.createElement("path",{fill:"#fbb03b",stroke:"#fc3",strokeMiterlimit:10,d:"m129.81 195.84 18.24-2.09a100.85 100.85 0 0 0-14.23 16.57l8-.9a78.29 78.29 0 0 0-8.82 18.82c-3.2 9.33-2.81 18.19-3 17.84a47.74 47.74 0 0 1-3.75-14.91 56 56 0 0 1 .51-15.19c-3 .83-6 1.67-8.89 2.51a73.05 73.05 0 0 1 11.94-22.65z"})),bi||(bi=t.createElement("path",{fill:"#f15a24",d:"M136 56.78c1 1.52-.76 3.87-2.65 3.87s-3.66-1.26-3.66-3.1a3.38 3.38 0 0 1 3.43-3.32c1.88 0 1.51.55 2.88 2.55z"})),vi||(vi=t.createElement("path",{fill:"#8b6c9c",d:"M25 161.28c-.08 6.93 1.26 20.08 15.09 24.42 0 0-8.67 1.28-11.66-1.38s-6.92-16.88-3.43-23.04z"})),Ei||(Ei=t.createElement("path",{fill:"#093f22",d:"m120.68 47.53 4.32-9.87c19.53-1.66 62.46 8.77 64.68 12.84s.07 13.6-.24 16.06 7.68 6.44 7.68 6.44l4.61.31s-8.3-3.07-8-7.38 3.2-16.07-1.23-18.4c-27.06-14.19-61.36-15-69.48-13.76-6.46 1-8.44 6.4-7.22 10.09.85 2.58 4.88 3.67 4.88 3.67zm47.77-26.05c-.92-2.15 18.91-8.27 30.13-7.68 6.17.32 13.26 10.33 5.91 9.45-14.77-1.77-35.11.38-36.04-1.77zM172 32.7c-.59-3 28.35-3 39.26.35 6 1.8 2.55 12.33-1.84 10.45C198 38.61 172.38 34.61 172 32.7zm-38.21-14.1L131 9.07l-6.15 6.15s8.02 4.61 8.94 3.38zm-7.07 8.61C127 26 120.57 21.06 120 22s-2.77 8.3-2.77 8.3 9.18-1.86 9.49-3.09z"})),wi||(wi=t.createElement("path",{fill:"#fc3",d:"M181.6 46.59c-.06 10.33-1.83 19.86-6 28.27A30.57 30.57 0 0 1 163.36 73c3.15-11.43 5.89-22.37 5.61-29.76a90 90 0 0 1 12.63 3.35z"})),xi||(xi=t.createElement("path",{fill:"#fcee21",d:"M172.83 62.87c-5.55.17-12.05 1.5-16.91-1.54 0 0 .7-8.22 7.15-7s9.76 8.54 9.76 8.54z"})),Si||(Si=t.createElement("path",{fill:"#f15a24",d:"M155 42.88c-1.24.38-.16 2.92.92 3.39s8.91 1.14 11.65 1.79 6.2 4.36 8.64 6.81c-.22-1.86-4.87-8.63-7.68-9.53s-12.29-2.83-13.53-2.46zm13.31 16.56a3.78 3.78 0 1 1-3.44-4.09 5 5 0 0 1 .56.09 4.28 4.28 0 0 1 2.88 4z"})),_i||(_i=t.createElement("path",{fill:"#f15a24",d:"M155.82 61.32c-2.89-12.19 15.29-11.67 17.1 1.51-.51.23-2.75-6.29-8.94-8.06-7.49-2.22-7.59 6.6-8.16 6.55z"})));function Ci(e){e.preventDefault(),window.location.href="admin.php?page=wpseo_dashboard"}function Pi(){const e=(0,u.get)(window,"wpseoScriptData.webinarIntroFirstTimeConfigUrl","https://yoa.st/webinar-intro-first-time-config");return(0,t.createElement)("div",{className:"yst-flex yst-flex-row yst-justify-between yst-items-center yst--mt-4"},(0,t.createElement)("div",{className:"yst-mr-6"},(0,t.createElement)("p",{className:"yst-text-sm yst-mb-4"},(0,Pt.sprintf)(/* translators: 1: Yoast. */
(0,Pt.__)("Great work! Thanks to the details you've provided, %1$s has enhanced your site for search engines, giving them a clearer picture of what your site is all about.","wordpress-seo"),"Yoast")),(0,t.createElement)("p",{className:"yst-text-sm yst-mb-6"},(0,Pt.__)("If your goal is to increase your rankings, you need to work on your SEO regularly. That can be overwhelming, so let's tackle it one step at a time!","wordpress-seo")),(0,t.createElement)(c.Button,{as:"a",variant:"primary",id:"button-webinar-seo-dashboard",href:e,target:"_blank","data-hiive-event-name":"clicked_to_onboarding_page"},(0,Pt.sprintf)(/* translators: 1: Yoast SEO. */
(0,Pt.__)("Learn how to increase your rankings with %1$s","wordpress-seo"),"Yoast SEO"),(0,t.createElement)($t,{className:"yst-w-4 yst-h-4 yst-icon-rtl yst-ml-2"})),(0,t.createElement)("p",{className:"yst-mt-4"},(0,t.createElement)(c.Link,{id:"link-webinar-register",href:"#",onClick:Ci,"data-hiive-event-name":"clicked_seo_dashboard"},(0,Pt.__)("Or go to your SEO dashboard","wordpress-seo")))),(0,t.createElement)(Oi,{className:"yst-shrink-0 yst-h-28 yst-mb-24"}))}function Ri(e,t){const{companyName:s,companyLogo:n,companyOrPersonOptions:r,shouldForceCompany:a,fallbackCompanyName:o,websiteName:i,fallbackWebsiteName:l}=e;let{companyOrPerson:c}=e;return("company"!==c||s||n||t(hn.siteRepresentation))&&!a||(c="company"),{...e,personId:Number(e.personId),personLogoId:Number(e.personLogoId),companyLogoId:Number(e.companyLogoId),tracking:Number(e.tracking),companyOrPerson:c,companyOrPersonOptions:r,errorFields:[],stepErrors:{},editedSteps:[],companyName:s||o,websiteName:i||l}}function Ni(){const[e,s]=(0,l.useState)(wpseoFirstTimeConfigurationData.finishedSteps),n=(0,l.useCallback)((t=>e.includes(t)),[e]),r=(0,l.useCallback)((e=>{s((t=>(0,u.uniq)([...t,e])))}),[s]);(0,l.useEffect)((()=>{!async function(e){const t=await C()({path:"yoast/v1/configuration/save_configuration_state",method:"POST",data:{finishedSteps:e}});await t.json}(e)}),[e]);const[a,o]=(0,l.useReducer)(Es,{...Ri(window.wpseoFirstTimeConfigurationData,n)}),[i,c]=(0,l.useState)((()=>"0"===window.yoastIndexingData.amount?"already_done":"idle")),[d,p]=(0,l.useState)(!1),[m,f]=(0,l.useState)(!1),y=(0,l.useCallback)(((e,t)=>{o({type:"SET_STEP_ERROR",payload:{step:e,message:t}})}),[]),h=(0,l.useCallback)((e=>{o({type:"REMOVE_STEP_ERROR",payload:e})}),[]);(0,l.useEffect)((()=>{if("completed"===i){const e=document.getElementById("wpseo-reindex");if(e){const t=document.querySelectorAll(".yoast-issue-counter, #toplevel_page_wpseo_dashboard .update-plugins");if(t.length>0&&"0"!==t[0].firstChild.textContent){const e=t[0].firstChild.textContent,s=(parseInt(e,10)-1).toString();t.forEach((t=>{t.classList.replace("count-"+e,"count-"+s)||"0"!==s?(t.firstChild.textContent=t.firstChild.textContent.replace(e,s),t.lastChild.textContent=t.lastChild.textContent.replace(e,s)):t.style.display="none"}))}e.remove()}window.yoastIndexingData.amount="0"}}),[i]);const g=n(hn.siteRepresentation),b=n(hn.socialProfiles),v=n(hn.personalPreferences),E=(0,l.useCallback)((e=>{o({type:"SET_TRACKING",payload:parseInt(e,10)})})),w=(0,l.useCallback)((e=>{o({type:"SET_ERROR_FIELDS",payload:e})})),x=!("company"!==a.companyOrPerson||a.companyName&&(a.companyLogo||a.companyLogoFallback)&&a.websiteName),S=!("person"!==a.companyOrPerson||a.personId&&(a.personLogo||a.personLogoFallback)&&a.websiteName),_=(0,l.useCallback)((e=>o({type:"SET_COMPANY_OR_PERSON",payload:e})),[o]),k=[g,b,v].every(Boolean),[O,P]=(0,l.useState)(n(hn.siteRepresentation)),R=[O,n(hn.siteRepresentation),n(hn.socialProfiles),n(hn.personalPreferences),k],[N,T]=(0,l.useState)(function(e){if(!Array.isArray(e)||0===e.length)return 0;const t=e.findIndex((e=>!1===e));return-1!==t?t:e.every(Boolean)?e.length-1:0}(R)),[I,M]=(0,l.useState)(k),[L,A]=(0,l.useState)(!1),[F,D]=(0,l.useState)(I&&!L);function z(){return D(!1),A(!0),!0}(0,l.useEffect)((()=>{k&&M(!0)}),[k]);const j=(0,l.useRef)(g&&b&&v);(0,l.useEffect)((()=>{if(k&&!j.current){const e=document.getElementById("yoast-first-time-configuration-notice");e&&e.remove()}}),[k,j]),(0,l.useEffect)((()=>{D(I&&!L)}),[I,L]),(0,l.useEffect)((()=>{function e(e){"Enter"===e.key&&"first-time-configuration-tab"===document.querySelector(".nav-tab.nav-tab-active").id&&"INPUT"===e.target.tagName&&e.preventDefault()}return addEventListener("keydown",e),()=>removeEventListener("keydown",e)}),[]),(0,l.useEffect)((()=>{a.editedSteps.includes(N+1)||"in_progress"===i?window.isStepBeingEdited=!0:window.isStepBeingEdited=!1}),[a.editedSteps,i,N]);const $=(0,l.useCallback)((e=>{(a.editedSteps.includes(N+1)||"in_progress"===i)&&-1!==location.href.indexOf("page=wpseo_dashboard#top#first-time-configuration")&&(e.preventDefault(),e.returnValue="")}),[a.editedSteps,i,N]);return(0,l.useEffect)((()=>(window.addEventListener("beforeunload",$),()=>{window.removeEventListener("beforeunload",$)})),[$]),(0,t.createElement)(yn,{setActiveStepIndex:T,activeStepIndex:N,isStepperFinished:k},(0,t.createElement)(pn,null,(0,t.createElement)(pn.Header,{name:(0,Pt.__)("SEO data optimization","wordpress-seo"),isFinished:O},(0,t.createElement)(vn,{stepId:hn.optimizeSeoData,beforeGo:z,isVisible:F,additionalClasses:"yst-ml-auto"},(0,Pt.__)("Edit","wordpress-seo"))),(0,t.createElement)(pn.Content,null,(0,t.createElement)(zr,{setIndexingState:c,indexingState:i,showRunIndexationAlert:m,isStepperFinished:k}),(0,t.createElement)(bn,{stepId:hn.optimizeSeoData,additionalClasses:"yst-mt-12",beforeGo:function(){return m||"idle"!==i||"1"===window.yoastIndexingData.disabled?(P(!0),A(!1),!0):(f(!0),!1)},destination:I?"last":1},(0,Pt.__)("Continue","wordpress-seo")))),(0,t.createElement)(pn,null,(0,t.createElement)(pn.Header,{name:(0,Pt.__)("Site representation","wordpress-seo"),isFinished:g},(0,t.createElement)(vn,{stepId:hn.siteRepresentation,beforeGo:z,isVisible:F,additionalClasses:"yst-ml-auto"},(0,Pt.__)("Edit","wordpress-seo"))),(0,t.createElement)(pn.Content,null,(0,t.createElement)(ho,{onOrganizationOrPersonChange:_,dispatch:o,state:a,siteRepresentationEmpty:d}),(0,t.createElement)(pn.Error,{id:"yoast-site-representation-step-error",message:a.stepErrors[hn.siteRepresentation]||""}),(0,t.createElement)(xn,{stepId:hn.siteRepresentation,stepperFinishedOnce:I,saveFunction:function(){return!d&&x||!d&&S?(p(!0),!1):d||"emptyChoice"!==a.companyOrPerson?(p("emptyChoice"===a.companyOrPerson||x||S),async function(e){const t={company_or_person:"emptyChoice"===e.companyOrPerson?"company":e.companyOrPerson,company_name:e.companyName,company_logo:e.companyLogo,company_logo_id:e.companyLogoId?e.companyLogoId:0,website_name:e.websiteName,person_logo:e.personLogo,person_logo_id:e.personLogoId?e.personLogoId:0,company_or_person_user_id:e.personId},s=await C()({path:"yoast/v1/configuration/site_representation",method:"POST",data:t});return await s.json}(a).then((()=>(w([]),h(hn.siteRepresentation),r(hn.siteRepresentation),!0))).catch((e=>e.failures?(w(e.failures),!1):(e.message&&y(hn.siteRepresentation,e.message),!1)))):(p(!0),!1)},setEditState:A}))),(0,t.createElement)(pn,null,(0,t.createElement)(pn.Header,{name:(0,Pt.__)("Social profiles","wordpress-seo"),isFinished:b},(0,t.createElement)(vn,{stepId:hn.socialProfiles,beforeGo:z,isVisible:F,additionalClasses:"yst-ml-auto"},(0,Pt.__)("Edit","wordpress-seo"))),(0,t.createElement)(pn.Content,null,(0,t.createElement)($s,{state:a,dispatch:o,setErrorFields:w}),(0,t.createElement)(pn.Error,{id:"yoast-social-profiles-step-error",message:a.stepErrors[hn.socialProfiles]||""}),(0,t.createElement)(xn,{stepId:hn.socialProfiles,stepperFinishedOnce:I,saveFunction:function(){return"person"===a.companyOrPerson?(r(hn.socialProfiles),!0):async function(e){const t={facebook_site:e.socialProfiles.facebookUrl,twitter_site:e.socialProfiles.twitterUsername,other_social_urls:e.socialProfiles.otherSocialUrls},s=await C()({path:"yoast/v1/configuration/social_profiles",method:"POST",data:t});return await s.json}(a).then((e=>!1===e.success?(w(e.failures),Promise.reject("There were errors saving social profiles")):e)).then((()=>{w([]),h(hn.socialProfiles),r(hn.socialProfiles)})).then((()=>!0)).catch((e=>(e.failures&&w(e.failures),e.message&&y(hn.socialProfiles,e.message),!1)))},setEditState:A}))),(0,t.createElement)(pn,null,(0,t.createElement)(pn.Header,{name:(0,Pt.__)("Personal preferences","wordpress-seo"),isFinished:v},(0,t.createElement)(vn,{stepId:hn.personalPreferences,beforeGo:z,isVisible:F,additionalClasses:"yst-ml-auto"},(0,Pt.__)("Edit","wordpress-seo"))),(0,t.createElement)(pn.Content,null,(0,t.createElement)(Co,{state:a,setTracking:E}),(0,t.createElement)(pn.Error,{id:"yoast-personal-preferences-step-error",message:a.stepErrors[hn.personalPreferences]||""}),(0,t.createElement)(xn,{stepId:hn.personalPreferences,stepperFinishedOnce:I,saveFunction:function(){return async function(e){if(0!==e.tracking&&1!==e.tracking)throw"Value not set!";const t={tracking:e.tracking},s=await C()({path:"yoast/v1/configuration/enable_tracking",method:"POST",data:t});return await s.json}(a).then((()=>r(hn.personalPreferences))).then((()=>(h(hn.personalPreferences),!0))).catch((e=>(e.message&&y(hn.personalPreferences,e.message),!1)))},setEditState:A}))),(0,t.createElement)(pn,null,(0,t.createElement)(pn.Header,{name:(0,Pt.__)("Finish configuration","wordpress-seo"),isFinished:k}),(0,t.createElement)(pn.Content,null,(0,t.createElement)(Pi,null))))}var Ti={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",padding:0,width:"1px",position:"absolute"},Ii=function(e){var t=e.message,s=e["aria-live"];return n().createElement("div",{style:Ti,role:"log","aria-live":s},t||"")};Ii.propTypes={};const Mi=Ii;function Li(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var Ai=function(e){function t(){var s,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,a=Array(r),o=0;o<r;o++)a[o]=arguments[o];return s=n=Li(this,e.call.apply(e,[this].concat(a))),n.state={assertiveMessage1:"",assertiveMessage2:"",politeMessage1:"",politeMessage2:"",oldPolitemessage:"",oldPoliteMessageId:"",oldAssertiveMessage:"",oldAssertiveMessageId:"",setAlternatePolite:!1,setAlternateAssertive:!1},Li(n,s)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.getDerivedStateFromProps=function(e,t){var s=t.oldPolitemessage,n=t.oldPoliteMessageId,r=t.oldAssertiveMessage,a=t.oldAssertiveMessageId,o=e.politeMessage,i=e.politeMessageId,l=e.assertiveMessage,c=e.assertiveMessageId;return s!==o||n!==i?{politeMessage1:t.setAlternatePolite?"":o,politeMessage2:t.setAlternatePolite?o:"",oldPolitemessage:o,oldPoliteMessageId:i,setAlternatePolite:!t.setAlternatePolite}:r!==l||a!==c?{assertiveMessage1:t.setAlternateAssertive?"":l,assertiveMessage2:t.setAlternateAssertive?l:"",oldAssertiveMessage:l,oldAssertiveMessageId:c,setAlternateAssertive:!t.setAlternateAssertive}:null},t.prototype.render=function(){var e=this.state,t=e.assertiveMessage1,s=e.assertiveMessage2,r=e.politeMessage1,a=e.politeMessage2;return n().createElement("div",null,n().createElement(Mi,{"aria-live":"assertive",message:t}),n().createElement(Mi,{"aria-live":"assertive",message:s}),n().createElement(Mi,{"aria-live":"polite",message:r}),n().createElement(Mi,{"aria-live":"polite",message:a}))},t}(t.Component);Ai.propTypes={};const Fi=Ai;function Di(){console.warn("Announcement failed, LiveAnnouncer context is missing")}const zi=n().createContext({announceAssertive:Di,announcePolite:Di}),ji=function(e){function t(s){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,s));return n.announcePolite=function(e,t){n.setState({announcePoliteMessage:e,politeMessageId:t||""})},n.announceAssertive=function(e,t){n.setState({announceAssertiveMessage:e,assertiveMessageId:t||""})},n.state={announcePoliteMessage:"",politeMessageId:"",announceAssertiveMessage:"",assertiveMessageId:"",updateFunctions:{announcePolite:n.announcePolite,announceAssertive:n.announceAssertive}},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.state,t=e.announcePoliteMessage,s=e.politeMessageId,r=e.announceAssertiveMessage,a=e.assertiveMessageId,o=e.updateFunctions;return n().createElement(zi.Provider,{value:o},this.props.children,n().createElement(Fi,{assertiveMessage:r,assertiveMessageId:a,politeMessage:t,politeMessageId:s}))},t}(t.Component);var $i=s(3409),qi=s.n($i);function Bi(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var Ui=function(e){function t(){var s,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,a=Array(r),o=0;o<r;o++)a[o]=arguments[o];return s=n=Bi(this,e.call.apply(e,[this].concat(a))),n.announce=function(){var e=n.props,t=e.message,s=e["aria-live"],r=e.announceAssertive,a=e.announcePolite;"assertive"===s&&r(t||"",qi()()),"polite"===s&&a(t||"",qi()())},Bi(n,s)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this.announce()},t.prototype.componentDidUpdate=function(e){this.props.message!==e.message&&this.announce()},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.clearOnUnmount,s=e.announceAssertive,n=e.announcePolite;!0!==t&&"true"!==t||(s(""),n(""))},t.prototype.render=function(){return null},t}(t.Component);Ui.propTypes={};const Hi=Ui;var Vi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e},Zi=function(e){return n().createElement(zi.Consumer,null,(function(t){return n().createElement(Hi,Vi({},t,e))}))};Zi.propTypes={};const Gi=Zi;const Wi=({children:e,title:s,description:n})=>{const r=(0,Pt.sprintf)(/* translators: 1: Settings' section title, 2: Yoast SEO */
(0,Pt.__)("%1$s Dashboard - %2$s","wordpress-seo"),s,"Yoast SEO");return(0,t.createElement)(ji,null,(0,t.createElement)(Gi,{message:r,"aria-live":"polite"}),(0,t.createElement)(os.Helmet,null,(0,t.createElement)("title",null,"Dashboard")),(0,t.createElement)("header",{className:"yst-p-8 yst-border-b yst-border-slate-200"},(0,t.createElement)("div",{className:"yst-max-w-screen-sm"},(0,t.createElement)(c.Title,null,s),n&&(0,t.createElement)("p",{className:"yst-text-tiny yst-mt-3"},n))),e)};Wi.propTypes={children:Nt().node.isRequired,title:Nt().string.isRequired,description:Nt().node};const Yi=Wi,Ki=t.forwardRef((function(e,s){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},e),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21"}))})),Qi=t.forwardRef((function(e,s){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},e),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"}))})),Ji=(0,l.createContext)({Icon:null,bulletClass:"",iconClass:""}),Xi=({id:e,nonce:s,dismissed:n,message:r})=>{const{bulletClass:o=""}=(0,l.useContext)(Ji),{toggleAlertStatus:i}=(0,a.useDispatch)("@yoast/dashboard"),u=n?Ki:Qi,d=(0,l.useCallback)((()=>{i(e,s,n)}),[e,s,n,i]);return(0,t.createElement)("li",{key:e,className:"yst-border-b yst-border-slate-200 last:yst-border-b-0 yst-py-6 first:yst-pt-0 last:yst-pb-0"},(0,t.createElement)("div",{className:"yst-flex yst-justify-between yst-gap-5 yst-items-start"},(0,t.createElement)("div",{className:ys()("yst-mt-1",n&&"yst-opacity-50")},(0,t.createElement)("svg",{width:"11",height:"11",className:o},(0,t.createElement)("circle",{cx:"5.5",cy:"5.5",r:"5.5"}))),(0,t.createElement)("div",{className:ys()("yst-text-sm yst-text-slate-600 yst-grow",n&&"yst-opacity-50"),dangerouslySetInnerHTML:{__html:r}}),(0,t.createElement)(c.Button,{variant:"secondary",size:"small",className:"yst-self-center yst-h-8",onClick:d},(0,t.createElement)(u,{className:"yst-w-4 yst-h-4 yst-text-neutral-700"}))))};Xi.propTypes={id:Nt().string,nonce:Nt().string,dismissed:Nt().bool,message:Nt().string};const el=({className:e="",items:s=[]})=>0===s.length?null:(0,t.createElement)("ul",{className:e},s.map((e=>(0,t.createElement)(Xi,{key:e.id,id:e.id,nonce:e.nonce,dismissed:e.dismissed,message:e.message}))));el.propTypes={className:Nt().string,items:Nt().arrayOf(Nt().shape({message:Nt().string}))};const tl=t.forwardRef((function(e,s){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},e),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))})),sl=({title:e,counts:s=0,children:n=null})=>{const{Icon:r=tl,iconClass:a=""}=(0,l.useContext)(Ji);return(0,t.createElement)("div",null,(0,t.createElement)("div",{className:"yst-flex yst-justify-between yst-gap-2 yst-items-center"},(0,t.createElement)(r,{className:ys()("yst-w-6 yst-h-6",a)}),(0,t.createElement)(c.Title,{className:"yst-grow",as:"h2",size:"2"},e," ",`(${s})`)),n)};sl.propTypes={title:Nt().string,counts:Nt().number,children:Nt().node};var nl,rl=((nl=rl||{})[nl.Open=0]="Open",nl[nl.Closed=1]="Closed",nl),al=(e=>(e[e.ToggleDisclosure=0]="ToggleDisclosure",e[e.CloseDisclosure=1]="CloseDisclosure",e[e.SetButtonId=2]="SetButtonId",e[e.SetPanelId=3]="SetPanelId",e[e.LinkPanel=4]="LinkPanel",e[e.UnlinkPanel=5]="UnlinkPanel",e))(al||{});let ol={0:e=>({...e,disclosureState:Ae(e.disclosureState,{0:1,1:0})}),1:e=>1===e.disclosureState?e:{...e,disclosureState:1},4:e=>!0===e.linkedPanel?e:{...e,linkedPanel:!0},5:e=>!1===e.linkedPanel?e:{...e,linkedPanel:!1},2:(e,t)=>e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId},3:(e,t)=>e.panelId===t.panelId?e:{...e,panelId:t.panelId}},il=(0,t.createContext)(null);function ll(e){let s=(0,t.useContext)(il);if(null===s){let t=new Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ll),t}return s}il.displayName="DisclosureContext";let cl=(0,t.createContext)(null);function ul(e){let s=(0,t.useContext)(cl);if(null===s){let t=new Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ul),t}return s}cl.displayName="DisclosureAPIContext";let dl=(0,t.createContext)(null);function pl(e,t){return Ae(t.type,ol,e,t)}dl.displayName="DisclosurePanelContext";let ml=t.Fragment,fl=Ue((function(e,s){let{defaultOpen:n=!1,...r}=e,a=(0,t.useRef)(null),o=ot(s,at((e=>{a.current=e}),void 0===e.as||e.as===t.Fragment)),i=(0,t.useRef)(null),l=(0,t.useRef)(null),c=(0,t.useReducer)(pl,{disclosureState:n?0:1,linkedPanel:!1,buttonRef:l,panelRef:i,buttonId:null,panelId:null}),[{disclosureState:u,buttonId:d},p]=c,m=nt((e=>{p({type:1});let t=Gr(a);if(!t||!d)return;let s=e?e instanceof HTMLElement?e:e.current instanceof HTMLElement?e.current:t.getElementById(d):t.getElementById(d);null==s||s.focus()})),f=(0,t.useMemo)((()=>({close:m})),[m]),y=(0,t.useMemo)((()=>({open:0===u,close:m})),[u,m]),h={ref:o};return t.createElement(il.Provider,{value:c},t.createElement(cl.Provider,{value:f},t.createElement(Ye,{value:Ae(u,{0:Ge.Open,1:Ge.Closed})},$e({ourProps:h,theirProps:r,slot:y,defaultTag:ml,name:"Disclosure"}))))})),yl=Ue((function(e,s){let n=qr(),{id:r=`headlessui-disclosure-button-${n}`,...a}=e,[o,i]=ll("Disclosure.Button"),l=(0,t.useContext)(dl),c=null!==l&&l===o.panelId,u=(0,t.useRef)(null),d=ot(u,s,c?null:o.buttonRef);(0,t.useEffect)((()=>{if(!c)return i({type:2,buttonId:r}),()=>{i({type:2,buttonId:null})}}),[r,i,c]);let p=nt((e=>{var t;if(c){if(1===o.disclosureState)return;switch(e.key){case Ur.Space:case Ur.Enter:e.preventDefault(),e.stopPropagation(),i({type:0}),null==(t=o.buttonRef.current)||t.focus()}}else switch(e.key){case Ur.Space:case Ur.Enter:e.preventDefault(),e.stopPropagation(),i({type:0})}})),m=nt((e=>{e.key===Ur.Space&&e.preventDefault()})),f=nt((t=>{var s;Zr(t.currentTarget)||e.disabled||(c?(i({type:0}),null==(s=o.buttonRef.current)||s.focus()):i({type:0}))})),y=(0,t.useMemo)((()=>({open:0===o.disclosureState})),[o]),h=na(e,u);return $e({ourProps:c?{ref:d,type:h,onKeyDown:p,onClick:f}:{ref:d,id:r,type:h,"aria-expanded":e.disabled?void 0:0===o.disclosureState,"aria-controls":o.linkedPanel?o.panelId:void 0,onKeyDown:p,onKeyUp:m,onClick:f},theirProps:a,slot:y,defaultTag:"button",name:"Disclosure.Button"})})),hl=ze.RenderStrategy|ze.Static,gl=Ue((function(e,s){let n=qr(),{id:r=`headlessui-disclosure-panel-${n}`,...a}=e,[o,i]=ll("Disclosure.Panel"),{close:l}=ul("Disclosure.Panel"),c=ot(s,o.panelRef,(e=>{i({type:e?4:5})}));(0,t.useEffect)((()=>(i({type:3,panelId:r}),()=>{i({type:3,panelId:null})})),[r,i]);let u=We(),d=null!==u?u===Ge.Open:0===o.disclosureState,p=(0,t.useMemo)((()=>({open:0===o.disclosureState,close:l})),[o,l]),m={ref:c,id:r};return t.createElement(dl.Provider,{value:o.panelId},$e({ourProps:m,theirProps:a,slot:p,defaultTag:"div",features:hl,visible:d,name:"Disclosure.Panel"}))})),bl=Object.assign(fl,{Button:yl,Panel:gl});const vl=t.forwardRef((function(e,s){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},e),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"}))})),El=({label:e,children:s})=>(0,t.createElement)(bl,null,(({open:n})=>(0,t.createElement)("div",{className:"yst-shadow-sm yst-border-slate-300 yst-rounded-md yst-border"},(0,t.createElement)(bl.Button,{className:"yst-w-full yst-flex yst-justify-between yst-py-4 yst-pr-4 yst-pl-6 yst-items-center"},(0,t.createElement)("div",{className:"yst-font-medium"},e),(0,t.createElement)(vl,{className:ys()("yst-h-5 yst-w-5 flex-shrink-0 yst-text-slate-400",n?"yst-rotate-180":"")})),(0,t.createElement)(bl.Panel,{className:"yst-px-6"},s))));El.propTypes={label:Nt().string,children:Nt().node};const wl=()=>{const e=(0,a.useSelect)((e=>e("@yoast/dashboard").selectActiveNotifications()),[]),s=(0,a.useSelect)((e=>e("@yoast/dashboard").selectDismissedNotifications()),[]),n=s.length,r=(0,Pt._n)("hidden notification","hidden notifications",n,"wordpress-seo"),o={Icon:Ot,bulletClass:"yst-fill-blue-500",iconClass:"yst-text-blue-500"};return(0,t.createElement)(c.Paper,null,(0,t.createElement)(c.Paper.Content,{className:"yst-flex yst-flex-col yst-gap-y-6"},(0,t.createElement)(Ji.Provider,{value:o},(0,t.createElement)(sl,{counts:e.length,title:(0,Pt.__)("Notifications","wordpress-seo")},0===e.length&&(0,t.createElement)("p",{className:"yst-mt-2 yst-text-sm"},(0,Pt.__)("No new notifications.","wordpress-seo"))),(0,t.createElement)(el,{items:e}),n>0&&(0,t.createElement)(El,{label:`${n} ${r}`},(0,t.createElement)(el,{className:"yst-pb-6",items:s})))))},xl=()=>{const e=(0,a.useSelect)((e=>e("@yoast/dashboard").selectActiveProblems()),[]),s=(0,a.useSelect)((e=>e("@yoast/dashboard").selectDismissedProblems()),[]),n=s.length,r=(0,Pt._n)("hidden problem","hidden problems",n,"wordpress-seo"),o={Icon:tl,bulletClass:"yst-fill-red-500",iconClass:"yst-text-red-500"};return(0,t.createElement)(c.Paper,null,(0,t.createElement)(c.Paper.Content,{className:"yst-flex yst-flex-col yst-gap-y-6"},(0,t.createElement)(Ji.Provider,{value:o},(0,t.createElement)(sl,{title:(0,Pt.__)("Problems","wordpress-seo"),counts:e.length},(0,t.createElement)("p",{className:"yst-mt-2 yst-text-sm"},(0,Pt.__)("We have detected the following issues that affect the SEO of your site.","wordpress-seo"))),(0,t.createElement)(el,{items:e}),n>0&&(0,t.createElement)(El,{label:`${n} ${r}`},(0,t.createElement)(el,{className:"yst-pb-6",items:s})))))},Sl=()=>(0,t.createElement)(c.Paper,null,(0,t.createElement)(Yi,{title:(0,Pt.__)("First-time configuration","wordpress-seo"),description:(0,Pt.__)("Tell us about your site, so we can get it ranked! Let's get your site in tip-top shape for the search engines. Follow these 5 steps to make Google understand what your site is about.","wordpress-seo")},(0,t.createElement)("hr",{id:"configuration-hr-top"}),(0,t.createElement)("div",{id:"yoast-configuration",className:"yst-p-8 yst-max-w-[715px]"},(0,t.createElement)(Ni,null)))),_l=({premiumLink:e,premiumUpsellConfig:s,promotions:n})=>{const r=n.includes("black-friday-2024-promotion");return(0,t.createElement)(c.Paper,{as:"div",className:"xl:yst-max-w-3xl"},r&&(0,t.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,t.createElement)("div",null,(0,Pt.__)("30% OFF","wordpress-seo")),(0,t.createElement)("div",null,(0,Pt.__)("BLACK FRIDAY","wordpress-seo"))),(0,t.createElement)("div",{className:"yst-p-6 yst-flex yst-flex-col"},(0,t.createElement)(c.Title,{as:"h2",size:"4",className:"yst-text-xl yst-text-primary-500"},(0,Pt.sprintf)(/* translators: %s expands to "Yoast SEO" Premium */
(0,Pt.__)("Upgrade to %s","wordpress-seo"),"Yoast SEO Premium")),(0,t.createElement)("ul",{className:"yst-grid yst-grid-cols-1 sm:yst-grid-cols-2 yst-gap-x-6 yst-list-disc yst-pl-[1em] yst-list-outside yst-text-slate-800 yst-mt-6"},[(0,Pt.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
(0,Pt.__)("%1$sAI%2$s: Better SEO titles and meta descriptions, faster.","wordpress-seo"),"<strong>","</strong>"),(0,Pt.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
(0,Pt.__)("%1$sMultiple keywords%2$s: Rank higher for more searches.","wordpress-seo"),"<strong>","</strong>"),(0,Pt.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
(0,Pt.__)("%1$sSuper fast%2$s internal linking suggestions.","wordpress-seo"),"<strong>","</strong>"),(0,Pt.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
(0,Pt.__)("%1$sNo more broken links%2$s: Automatic redirect manager.","wordpress-seo"),"<strong>","</strong>"),(0,Pt.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
(0,Pt.__)("%1$sAppealing social previews%2$s people actually want to click on.","wordpress-seo"),"<strong>","</strong>"),(0,Pt.sprintf)(/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
(0,Pt.__)("%1$s24/7 support%2$s: Also on evenings and weekends.","wordpress-seo"),"<strong>","</strong>")].map(((e,s)=>(0,t.createElement)("li",{key:`upsell-benefit-${s}`},(0,l.createInterpolateElement)(e,{strong:(0,t.createElement)("span",{className:"yst-font-semibold"})}))))),(0,t.createElement)(c.Button,{as:"a",variant:"upsell",size:"extra-large",href:e,className:"yst-gap-2 yst-mt-4",target:"_blank",rel:"noopener",...s},r?(0,Pt.__)("Claim your 30% off now!","wordpress-seo"):(0,Pt.sprintf)(/* translators: %s expands to "Yoast SEO" Premium */
(0,Pt.__)("Explore %s now!","wordpress-seo"),"Yoast SEO Premium"),(0,t.createElement)($t,{className:"yst-w-4 yst-h-4 yst-icon-rtl"}))))};_l.propTypes={premiumLink:Nt().string.isRequired,premiumUpsellConfig:Nt().object,promotions:Nt().array},_l.defaultProps={premiumUpsellConfig:{},promotions:[]};const kl=()=>{const e=ms("selectPreference",[],"isPremium"),s=ms("selectPreference",[],"promotions",[]),n=ms("selectLink",[],"https://yoa.st/jj"),r=ms("selectUpsellSettingsAsProps"),a=ms("selectLink",[],"https://yoa.st/3t6");return e?null:(0,t.createElement)("div",{className:"yst-min-w-[16rem] xl:yst-max-w-[16rem]"},(0,t.createElement)("div",{className:"yst-sticky yst-top-16"},(0,t.createElement)("div",{className:"yst-grid yst-grid-cols-1 sm:yst-grid-cols-2 min-[783px]:yst-grid-cols-1 lg:yst-grid-cols-2 xl:yst-grid-cols-1 yst-gap-4"},(0,t.createElement)(as,{link:n,linkProps:r,promotions:s}),(0,t.createElement)(Tt,{link:a}))))},Ol=()=>{const e=ms("selectPreference",[],"isPremium"),s=ms("selectLink",[],"https://yoa.st/17h"),n=ms("selectUpsellSettingsAsProps"),r=ms("selectPreference",[],"promotions",[]);return(0,t.createElement)("div",{className:"yst-flex yst-gap-8 xl:yst-flex-row yst-flex-col"},(0,t.createElement)("div",{className:"yst-flex yst-flex-wrap yst-flex-grow xl:yst-flex-row yst-flex-col"},(0,t.createElement)(c.Paper,{className:"yst-grow"},(0,t.createElement)("header",{className:"yst-p-8"},(0,t.createElement)("div",{className:"yst-max-w-screen-sm"},(0,t.createElement)(c.Title,null,(0,Pt.__)("Alert center","wordpress-seo")),(0,t.createElement)("p",{className:"yst-text-tiny yst-mt-3"},(0,Pt.__)("Monitor and manage potential SEO problems affecting your site and stay informed with important notifications and updates.","wordpress-seo"))))),(0,t.createElement)("div",{className:"yst-basis-full"},(0,t.createElement)("div",{className:"yst-grid lg:yst-grid-cols-2 yst-gap-8 yst-my-8 yst-grow yst-items-start"},(0,t.createElement)(xl,null),(0,t.createElement)(wl,null)),!e&&(0,t.createElement)(_l,{premiumLink:s,premiumUpsellConfig:n,promotions:r}))),(0,t.createElement)(kl,null))};function Cl(){const e=[...Array.from(document.querySelectorAll(".notice-yoast:not(.yoast-webinar-dashboard)")),...Array.from(document.querySelectorAll(".yoast-migrated-notice"))],t=e.map((e=>e.id)),s=e.map((e=>e.querySelector(".yoast-notice-migrated-header"))),n=function(e){return e.forEach((e=>{e&&e.querySelectorAll("a.button").forEach((e=>{e.classList.remove("button"),e.classList.add("yst-button"),e.classList.add("yst-button--primary"),e.classList.add("yst-mt-4")}))})),e}(e.map((e=>e.querySelector(".notice-yoast-content")))),r=e.map((e=>e.classList.contains("is-dismissible")));return e.map(((e,a)=>({originalNotice:e,id:t[a],header:s[a].outerHTML,content:n[a].outerHTML,isDismissable:r[a]})))}const Pl=t.forwardRef((function(e,s){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},e),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))}));function Rl({title:e,id:s,isDismissable:n,children:r}){const a=(0,c.useSvgAria)();return(0,t.createElement)("div",{id:s,className:ys()("yst-p-3 yst-rounded-md yoast-dashboard-notice")},(0,t.createElement)("div",{className:ys()("yst-flex yst-flex-row yst-items-center yst-min-h-[24px]")},(0,t.createElement)("span",{className:"yoast-icon"}),e&&(0,t.createElement)("div",{className:"yst-text-sm yst-font-medium",dangerouslySetInnerHTML:{__html:e}}),n&&(0,t.createElement)("div",{className:"yst-relative yst-ml-auto"},(0,t.createElement)("button",{type:"button",className:"notice-dismiss"},(0,t.createElement)("span",{className:"yst-sr-only"},(0,Pt.__)("Close","wordpress-seo")),(0,t.createElement)(Pl,{className:"yst-h-5 yst-w-5",...a})))),r&&(0,t.createElement)("div",{className:"yst-flex-1 yst-text-sm yst-max-w-[600px] yst-pl-[29px]",dangerouslySetInnerHTML:{__html:r}}))}Rl.propTypes={title:Nt().string.isRequired,id:Nt().string.isRequired,isDismissable:Nt().bool.isRequired,children:Nt().string.isRequired};const Nl=(0,window.wp.compose.compose)([(0,a.withSelect)(((e,t)=>{const{isAlertDismissed:s}=e(t.store||"yoast-seo/editor");return{isAlertDismissed:s(t.alertKey)}})),(0,a.withDispatch)(((e,t)=>{const{dismissAlert:s}=e(t.store||"yoast-seo/editor");return{onDismissed:()=>s(t.alertKey)}}))]),Tl=Nl,Il=({children:e,id:s,hasIcon:n=!0,title:r,image:a=null,isAlertDismissed:o,onDismissed:i})=>o?null:(0,t.createElement)("div",{id:s,className:"notice-yoast yoast is-dismissible yoast-webinar-dashboard yoast-new-dashboard-notices"},(0,t.createElement)("div",{className:"notice-yoast__container"},(0,t.createElement)("div",null,(0,t.createElement)("div",{className:"notice-yoast__header"},n&&(0,t.createElement)("span",{className:"yoast-icon"}),(0,t.createElement)("h2",{className:"notice-yoast__header-heading yoast-notice-migrated-header"},r)),(0,t.createElement)("div",{className:"notice-yoast-content"},(0,t.createElement)("p",null,e))),a&&(0,t.createElement)(a,{height:"60"})),(0,t.createElement)("button",{type:"button",className:"notice-dismiss",onClick:i},(0,t.createElement)("span",{className:"screen-reader-text"},/* translators: Hidden accessibility text. */
(0,Pt.__)("Dismiss this notice.","wordpress-seo"))));Il.propTypes={children:Nt().node.isRequired,id:Nt().string.isRequired,hasIcon:Nt().bool,title:Nt().any.isRequired,image:Nt().elementType,isAlertDismissed:Nt().bool.isRequired,onDismissed:Nt().func.isRequired};const Ml=Tl(Il);var Ll,Al,Fl,Dl,zl,jl,$l,ql,Bl,Ul,Hl,Vl,Zl,Gl,Wl,Yl,Kl,Ql,Jl,Xl,ec,tc,sc,nc,rc,ac,oc,ic,lc,cc,uc,dc,pc,mc,fc,yc,hc,gc,bc,vc,Ec,wc,xc,Sc,_c,kc,Oc;function Cc(){return Cc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e},Cc.apply(this,arguments)}const Pc=e=>t.createElement("svg",Cc({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 448 360"},e),Ll||(Ll=t.createElement("circle",{cx:226,cy:211,r:149,fill:"#f0ecf0"})),Al||(Al=t.createElement("path",{fill:"#fbd2a6",d:"M173.53 189.38s-35.47-5.3-41.78-11c-9.39-24.93-29.61-48-35.47-66.21-.71-2.24 3.72-11.39 3.53-15.41s-5.34-11.64-5.23-14-.09-15.27-.09-15.27l-4.75-.72s-5.13 6.07-3.56 9.87c-1.73-4.19 4.3 7.93.5 9.35 0 0-6-5.94-11.76-8.27s-19.57-3.65-19.57-3.65L43.19 73l-4.42.6L31 69.7l-2.85 5.12 7.53 5.29L40.86 92l17.19 10.2 10.2 10.56 9.86 3.56s26.49 79.67 45 92c17 11.33 37.23 15.92 37.23 15.92z"})),Fl||(Fl=t.createElement("path",{fill:"#a4286a",d:"M270.52 345.13c2.76-14.59 15.94-35.73 30.24-54.58 16.22-21.39 14-79.66-33.19-91.46-17.3-4.32-52.25-1-59.85-3.41C186.54 189 170 187 168 190.17c-5 10.51-7.73 27.81-5.51 36.26 1.18 4.73 3.54 5.91 20.49 13.4-5.12 15-16.35 26.3-22.86 37s7.88 27.2 7.1 33.51c-.48 3.8-4.26 21.13-7.18 34.25a149.47 149.47 0 0 0 110.3 8.66 25.66 25.66 0 0 1 .18-8.12z"})),Dl||(Dl=t.createElement("path",{fill:"#9a5815",d:"M206.76 66.43c-5 14.4-1.42 25.67-3.93 40.74-10 60.34-24.08 43.92-31.44 93.6 7.24-14.19 14.32-15.82 20.63-23.11-.83 3.09-10.25 13.75-8.05 34.81 9.85-8.51 6.35-8.75 11.86-8.54.36 3.25 3.53 3.22-3.59 10.53 2.52.69 17.42-14.32 20.16-12.66s0 5.72-6 7.76c2.15 2.2 30.47-3.87 43.81-14.71 4.93-4 10-13.16 13.38-18.2 7.17-10.62 12.38-24.77 17.71-36.6 8.94-19.87 15.09-39.34 16.11-61.31.53-10.44-3.41-18.44-4.41-28.86-2.57-27.8-67.63-37.26-86.24 16.55z"})),zl||(zl=t.createElement("path",{fill:"#efb17c",d:"M277.74 179.06c.62-.79 1.24-1.59 1.84-2.39-.85 2.59-1.52 3.73-1.84 2.39z"})),jl||(jl=t.createElement("path",{fill:"#fbd2a6",d:"M216.1 206.72c3.69-5.42 8.28-3.35 15.57-8.28 3.76-3.06 1.57-9.46 1.77-11.82 18.25 4.56 37.38-1.18 49.07-16 .62 5.16-2.77 22.27-.2 27 4.73 8.67 13.4 18.92 13.4 18.92-35.47-2.76-63.45 39-89.86 44.54 5.52-28.74-2.36-35.84 10.25-54.36z"})),$l||($l=t.createElement("path",{fill:"#f6b488",d:"m235.21 167.9 53.21-25.23s-3.65 24-6.5 32.72c-64.05 62.66-46.47-7.33-46.71-7.49z"})),ql||(ql=t.createElement("path",{fill:"#fbd2a6",d:"M226.86 50.64C215 59.31 206.37 93.21 204 95.57c-19.46 19.47-3.59 41.39-3.94 51.24-.2 5.52-4.14 25.42 5.72 29.36 22.22 8.89 60-3.48 67.19-12.61 13.28-16.75 40.89-94.78 17.74-108.19-7.92-4.58-42.78-20.18-63.85-4.73z"})),Bl||(Bl=t.createElement("path",{fill:"#e5766c",d:"M243.69 143.66c-10.7-6.16-8.56-6.73-19.76-12.71-3.86-2.07-3.94.64-6.32 0-2.91-.79-1.39-2.74-5.37-3.48-6.52-1.21-3.67 3.63-3.15 6 1.32 6.15-8.17 17.3 3.26 21.42 12.65 4.55 21.38-9.41 31.34-11.23z"})),Ul||(Ul=t.createElement("path",{fill:"#fff",d:"M240.68 143.9c-11.49-5.53-11.65-8.17-24.64-11.69-8.6-2.32-5.53 1-5.69 4.42-.2 4.16-1.26 9.87 4.9 12.66 9 4.09 18.16-6.02 25.43-5.39zm.7-40.9c-.16 1.26-.06 4.9 5.46 8.25 11.43-4.73 16.36-2.56 17-3.33 1.48-1.76-2-8.87-7.88-9.85-5.58-.94-14.14 1.24-14.58 4.93z"})),Hl||(Hl=t.createElement("path",{fill:"#000001",d:"M263.53 108.19c-4.32-4.33-6.85-6.24-12.26-8.21-2.77-1-6.18.18-8.65 1.67a3.65 3.65 0 0 0-1.24 1.23h-.12a3.73 3.73 0 0 1 1-1.52 12.53 12.53 0 0 1 11.93-3c4.73 1 9.43 4.63 9.42 9.82z"})),Vl||(Vl=t.createElement("circle",{cx:254.13,cy:104.05,r:4.19,fill:"#000001"})),Zl||(Zl=t.createElement("path",{fill:"#fff",d:"M225.26 99.22c-.29 1-6.6 3.45-10.92 1.48-1.15-3.24-5-6.43-5.25-6.71-.5-2.86 5.55-8 10.06-6.3a10.21 10.21 0 0 1 6.11 11.53z"})),Gl||(Gl=t.createElement("path",{fill:"#000001",d:"M209.29 94.21c-.19-2.34 1.84-4.1 3.65-5.2 7-3.87 13.18 3 12.43 10h-.12c-.14-4-2.38-8.44-6.47-9.11a3.19 3.19 0 0 0-2.42.31c-1.37.85-2.38 2-3.89 2.56-1 .45-1.92.42-3 1.4h-.22z"})),Wl||(Wl=t.createElement("circle",{cx:219.55,cy:95.28,r:4,fill:"#000001"})),Yl||(Yl=t.createElement("path",{fill:"#efb17c",d:"M218.66 120.27a27.32 27.32 0 0 0 4.54 3.45c-2.29-.72-4.28-.69-6.32-2.27-2.53-2-3.39-5.16-.73-7.72 10.24-9.82 12.56-13.82 14.77-24.42-1 12.37-6 17.77-10.63 23.18-2.53 2.97-4.68 5.06-1.63 7.78z"})),Kl||(Kl=t.createElement("path",{fill:"#a57c52",d:"M231.22 69.91c-.67-3.41-8.78-2.83-11.06-1.93-3.48 1.39-6.08 5.22-7.13 8.53 2.9-4.3 6.74-8.12 12.46-6 1.16.42 3.18 2.35 4.48 1.85s1.03-2.2 1.25-2.45zm32.16 8.56c-2.75-1.66-12.24-5.08-12.18.82 2.56.24 5-.19 7.64.95 11.22 4.76 12.77 17.61 12.85 17.86.2-.53.1 1.26.23.7-.02.2.95-12.12-8.54-20.33z"})),Ql||(Ql=t.createElement("path",{fill:"#fbd2a6",d:"M53.43 250.73c6.29 0-.6-.17 7.34 0 1.89.05-2.38-.7 0-.69 4.54-4.2 12.48-.74 20.6-2.45 4.55.35 3.93 1.35 5.59 4.19 4.89 8.38 4.78 14.21 14 19.56 16.42 8.38 66 12.92 88.49 18.86 5.52.83 42.64-20.15 61-23.75 6.51 10.74 11.46 28.68 8.39 34.93-6.54 13.3-57.07 25.4-75.91 25.15C156.47 326.18 94 294 92.2 293c-.94-.57.7-.7-7.68 0s-10.15.72-17.47-1.4c-3-.87-4.61-1.33-6.33-3.54-2 .22-3.39.2-4.78-1-3.15-2.74-4.84-6.61-2.73-10.06h-.12c-3.35-2.48-6.54-7.69-3.08-11.72 1-1.18 6.06-1.94 7.77-2.28-1.58-.29-6.37.19-7.49-.72-3.06-2.5-4.96-11.55 3.14-11.55z"})),Jl||(Jl=t.createElement("path",{fill:"#a4286a",d:"M303.22 237.52c-9.87-11.88-41.59 8.19-47.8 12.34s-14.89 17.95-14.89 17.95c6 9.43 8.36 31 5.65 46.34l30.51-3s18-15.62 22.59-28.7 6.3-42.54 6.3-42.54"})),Xl||(Xl=t.createElement("path",{fill:"#cb9833",d:"M278.63 31.67c-6.08 0-22.91 4.07-22.93 12.91 0 11 47.9 38.38 16.14 85.85 10.21-.79 10.79-8.12 14.92-14.93-3.66 77-49.38 93.58-40.51 142.25 7.68-25.81 20.3-11.62 38.13-33.84 3.45 4.88 9 18.28-9.46 33.78 50-31.26 57.31-56.6 51.92-95C319.93 113.53 348.7 42 278.63 31.67z"})),ec||(ec=t.createElement("path",{fill:"#fbd2a6",d:"M283.64 126.83c-2.42 9.67-8 15.76-1.48 16.46A21.26 21.26 0 0 0 302 132.6c5.17-8.52 3.93-16.44-2.46-18s-13.48 2.56-15.9 12.23z"})),tc||(tc=t.createElement("path",{fill:"#efb17c",d:"M38 73.45c1.92 2 4.25 9.21 6.32 10.91 2.25 1.85 5.71 2.12 8.1 4.45 3.66-2 6-8.72 10-9.31-2.59 1.31-4.42 3.5-6.93 4.88-1.42.8-3 1.31-4.38 2.25-2.16-1.46-4.27-1.77-6.26-3.38-2.52-2.02-5.31-8-6.85-9.8z"})),sc||(sc=t.createElement("path",{fill:"#efb17c",d:"M39 74.4c4.83 1.1 12.52 6.44 15.89 10-3.22-1.34-14.73-6.15-15.89-10zm.62-1.5c6.71-.79 18 1.54 23.29 5.9-3.85-.2-5.42-1.48-9-2.94-4.08-1.69-8.83-2.03-14.29-2.96zm46.43 14.58c-3.72-1.32-10.52-1.13-13.22 3.52 2-1.16 1.84-2.11 4.18-1.72-3.81-4.15 8.16-.74 11.6-.24m-2.78 13.15c.56-3.29-8-7.81-10.58-9.17-6.25-3.29-12.16 1.36-19.33-4.53 5.94 6.1 14.23 2.5 19.55 5.76 3.06 1.88 8.65 6.09 9.35 9.38-.23-.4 1.29-1.44 1.01-1.44z"})),nc||(nc=t.createElement("circle",{cx:38.13,cy:30.03,r:3.14,fill:"#b89ac8"})),rc||(rc=t.createElement("circle",{cx:60.26,cy:39.96,r:3.14,fill:"#e31e0c"})),ac||(ac=t.createElement("circle",{cx:50.29,cy:25.63,r:3.14,fill:"#3baa45"})),oc||(oc=t.createElement("circle",{cx:22.19,cy:19.21,r:3.14,fill:"#2ca9e1"})),ic||(ic=t.createElement("circle",{cx:22.19,cy:30.03,r:3.14,fill:"#e31e0c"})),lc||(lc=t.createElement("circle",{cx:26.86,cy:8.28,r:3.14,fill:"#3baa45"})),cc||(cc=t.createElement("circle",{cx:49.32,cy:39.99,r:3.14,fill:"#e31e0c"})),uc||(uc=t.createElement("circle",{cx:63.86,cy:59.52,r:3.14,fill:"#f8ad39"})),dc||(dc=t.createElement("circle",{cx:50.88,cy:50.72,r:3.14,fill:"#3baa45"})),pc||(pc=t.createElement("circle",{cx:63.47,cy:76.17,r:3.14,fill:"#e31e0c"})),mc||(mc=t.createElement("circle",{cx:38.34,cy:14.83,r:3.14,fill:"#2ca9e1"})),fc||(fc=t.createElement("circle",{cx:44.44,cy:5.92,r:3.14,fill:"#f8ad39"})),yc||(yc=t.createElement("circle",{cx:57.42,cy:10.24,r:3.14,fill:"#e31e0c"})),hc||(hc=t.createElement("circle",{cx:66.81,cy:12.4,r:3.14,fill:"#2ca9e1"})),gc||(gc=t.createElement("circle",{cx:77.95,cy:5.14,r:3.14,fill:"#b89ac8"})),bc||(bc=t.createElement("circle",{cx:77.95,cy:30.34,r:3.14,fill:"#e31e0c"})),vc||(vc=t.createElement("circle",{cx:80.97,cy:16.55,r:3.14,fill:"#f8ad39"})),Ec||(Ec=t.createElement("circle",{cx:62.96,cy:27.27,r:3.14,fill:"#3baa45"})),wc||(wc=t.createElement("circle",{cx:75.36,cy:48.67,r:3.14,fill:"#2ca9e1"})),xc||(xc=t.createElement("circle",{cx:76.11,cy:65.31,r:3.14,fill:"#3baa45"})),Sc||(Sc=t.createElement("path",{fill:"#71b026",d:"M78.58 178.43C54.36 167.26 32 198.93 5 198.93c19.56 20.49 63.53 1.52 69 15.5 1.48-14.01 4.11-30.9 4.58-36z"})),_c||(_c=t.createElement("path",{fill:"#074a67",d:"M67.75 251.08c0-4.65 10.13-72.65 10.13-72.65h2.8l-9.09 72.3z"})),kc||(kc=t.createElement("ellipse",{cx:255.38,cy:103.18,fill:"#fff",rx:1.84,ry:1.77})),Oc||(Oc=t.createElement("ellipse",{cx:221.24,cy:94.75,fill:"#fff",rx:1.84,ry:1.77}))),Rc=({store:e="yoast-seo/editor",image:s=Pc,url:n,...r})=>(0,a.useSelect)((t=>t(e).getIsPremium()))?null:(0,t.createElement)(Ml,{alertKey:"webinar-promo-notification",store:e,id:"webinar-promo-notification",title:(0,Pt.__)("Join our FREE webinar for SEO success","wordpress-seo"),image:s,url:n,...r},(0,Pt.__)("Feeling lost when it comes to optimizing your site for the search engines? Join our FREE webinar to gain the confidence that you need in order to start optimizing like a pro! You'll obtain the knowledge and tools to start effectively implementing SEO.","wordpress-seo")," ",(0,t.createElement)("a",{href:n,target:"_blank",rel:"noreferrer"},(0,Pt.__)("Sign up today!","wordpress-seo")));Rc.propTypes={store:Nt().string,image:Nt().elementType,url:Nt().string.isRequired};const Nc=Rc,Tc=({idSuffix:e=""})=>{const s=(0,c.useSvgAria)(),n=ms("selectPreference",[],"isPremium");return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("header",{className:"yst-px-3 yst-mb-6 yst-space-y-6"},(0,t.createElement)(Me,{id:`link-yoast-logo${e}`,to:"/",className:"yst-inline-block yst-rounded-md focus:yst-ring-primary-500","aria-label":"Yoast SEO"+(n?" Premium":"")},(0,t.createElement)(ps,{className:"yst-w-40",...s}))),(0,t.createElement)("div",{className:"yst-px-0.5 yst-space-y-6"},(0,t.createElement)("ul",{className:"yst-mt-1 yst-space-y-1"},(0,t.createElement)(zt,{to:"/",label:(0,t.createElement)(t.Fragment,null,(0,t.createElement)(Ot,{className:"yst-sidebar-navigation__icon yst-w-6 yst-h-6"}),(0,Pt.__)("Alert center","wordpress-seo")),idSuffix:e,className:"yst-gap-3"}),(0,t.createElement)(zt,{to:"/first-time-configuration",label:(0,t.createElement)(t.Fragment,null,(0,t.createElement)(Ct,{className:"yst-sidebar-navigation__icon yst-w-6 yst-h-6"}),(0,Pt.__)("First-time configuration","wordpress-seo")),idSuffix:e,className:"yst-gap-3"}))))};Tc.propTypes={idSuffix:Nt().string};const Ic=()=>{const e=(0,l.useMemo)(Cl,[]);(0,l.useEffect)((()=>{!function(e){e.forEach((e=>e.originalNotice.remove()))}(e)}),[e]);const{pathname:s}=_e(),n=(0,a.select)(z).selectLinkParams(),r=(0,y.addQueryArgs)("https://yoa.st/webinar-intro-settings",n);return(0,t.createElement)(c.SidebarNavigation,{activePath:s},(0,t.createElement)(c.SidebarNavigation.Mobile,{openButtonId:"button-open-dashboard-navigation-mobile",closeButtonId:"button-close-dashboard-navigation-mobile"
/* translators: Hidden accessibility text. */,openButtonScreenReaderText:(0,Pt.__)("Open dashboard navigation","wordpress-seo")
/* translators: Hidden accessibility text. */,closeButtonScreenReaderText:(0,Pt.__)("Close dashboard navigation","wordpress-seo"),"aria-label":(0,Pt.__)("Dashboard navigation","wordpress-seo")},(0,t.createElement)(Tc,{idSuffix:"-mobile"})),(0,t.createElement)("div",{className:"yst-p-4 min-[783px]:yst-p-8 yst-flex yst-gap-4"},(0,t.createElement)("aside",{className:"yst-sidebar yst-sidebar-nav yst-shrink-0 yst-hidden min-[783px]:yst-block yst-pb-6 yst-bottom-0 yst-w-56"},(0,t.createElement)(c.SidebarNavigation.Sidebar,null,(0,t.createElement)(Tc,null))),(0,t.createElement)("div",{className:"yst-grow"},(0,t.createElement)("div",{className:"yst-space-y-6 yst-mb-8 xl:yst-mb-0"},(0,t.createElement)("main",null,(0,t.createElement)(kt,{key:s,appear:!0,show:!0,enter:"yst-transition-opacity yst-delay-100 yst-duration-300",enterFrom:"yst-opacity-0",enterTo:"yst-opacity-100"},"/first-time-configuration"!==s&&(0,t.createElement)("div",null,((e="yoast-seo/editor")=>{const t=(0,a.select)(e).isPromotionActive("black-friday-2023-checklist"),s=(0,a.select)(e).isAlertDismissed("black-friday-2023-sidebar-checklist");return!t||s})(z)&&(0,t.createElement)(Nc,{store:z,url:r,image:null}),e.length>0&&(0,t.createElement)("div",{className:"yst-space-y-3 yoast-new-dashboard-notices"}," ",e.map(((e,s)=>(0,t.createElement)(Rl,{key:s,id:e.id||"yoast-dashboard-notice-"+s,title:e.header,isDismissable:e.isDismissable},e.content))))),(0,t.createElement)(Pe,null,(0,t.createElement)(Oe,{path:"/",element:(0,t.createElement)(Ol,null)}),(0,t.createElement)(Oe,{path:"/first-time-configuration",element:(0,t.createElement)(Sl,null)}))))))))},Mc=()=>({...(0,u.get)(window,"wpseoScriptData.preferences",{}),ajaxUrl:(0,u.get)(window,"ajaxurl","")}),Lc=(0,d.createSlice)({name:"preferences",initialState:Mc(),reducers:{}}),Ac={selectPreference:(e,t,s={})=>(0,u.get)(e,`preferences.${t}`,s),selectPreferences:e=>(0,u.get)(e,"preferences",{})};Ac.selectUpsellSettingsAsProps=(0,d.createSelector)([e=>Ac.selectPreference(e,"upsellSettings",{}),(e,t="premiumCtbId")=>t],((e,t)=>({"data-action":null==e?void 0:e.actionId,"data-ctb-id":null==e?void 0:e[t]})));const Fc=Lc.actions,Dc=Lc.reducer,zc=window.yoast.externals.redux;function jc({alertKey:e}){return new Promise((t=>wpseoApi.post("alerts/dismiss",{key:e},(()=>t()))))}const{currentPromotions:$c,dismissedAlerts:qc,isPremium:Bc}=zc.reducers,{isAlertDismissed:Uc,getIsPremium:Hc,isPromotionActive:Vc}=zc.selectors,{dismissAlert:Zc,setCurrentPromotions:Gc,setDismissedAlerts:Wc,setIsPremium:Yc}=zc.actions;i()((()=>{const s=document.getElementById("yoast-seo-dashboard");if(!s)return;(({initialState:t={}}={})=>{(0,a.register)((({initialState:t})=>(0,a.createReduxStore)(z,{actions:{...E,...Fc,...V,dismissAlert:Zc,setCurrentPromotions:Gc,setDismissedAlerts:Wc,setIsPremium:Yc},selectors:{...v,...Ac,...H,isAlertDismissed:Uc,getIsPremium:Hc,isPromotionActive:Vc},initialState:(0,u.merge)({},{[h]:b(),preferences:Mc(),[j]:B(),currentPromotions:{promotions:(0,u.get)(window,"wpseoScriptData.currentPromotions",[])},dismissedAlerts:(0,u.get)(window,"wpseoScriptData.dismissedAlerts",{}),isPremium:(0,u.get)(window,"wpseoScriptData.preferences.isPremium",!1)},t),reducer:(0,a.combineReducers)({[h]:w,preferences:Dc,[j]:G,currentPromotions:$c,dismissedAlerts:qc,isPremium:Bc}),controls:{...Z,...e}}))({initialState:t}))})({initialState:{[h]:(0,u.get)(window,"wpseoScriptData.linkParams",{}),[j]:{alerts:(0,u.get)(window,"wpseoScriptData.alerts",[])}}});const n=(0,a.select)(z).selectPreference("isRtl",!1);(0,l.render)((0,t.createElement)(c.Root,{context:{isRtl:n}},(0,t.createElement)(r.SlotFillProvider,null,(0,t.createElement)(Ie,null,(0,t.createElement)(Ic,null)))),s)}))})()})();

Youez - 2016 - github.com/yon3zu
LinuXploit