HEX
Server: Apache/2.4.65 (Debian)
System: Linux web6 5.10.0-36-amd64 #1 SMP Debian 5.10.244-1 (2025-09-29) x86_64
User: innocamp (1028)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /home/lindsa/public_html/wp-content/plugins/wordpress-seo/js/dist/first-time-configuration.js
!function(e){var t={};function n(a){if(t[a])return t[a].exports;var r=t[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(a,r,function(t){return e[t]}.bind(null,r));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=222)}({0:function(e,t){e.exports=window.React},1:function(e,t){e.exports=window.wp.element},101:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a="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 n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),o=c(n(0)),i=c(n(2)),l=c(n(26));function c(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,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,n=Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];if(!n.length)return e;for(var r={},s=Object.keys(e),o=0;o<s.length;o++){var i=s[o];-1===n.indexOf(i)&&(r[i]=e[i])}return r}function b(e){e.forEach((function(e){return cancelAnimationFrame(e)}))}function f(e){return!isNaN(parseFloat(e))&&isFinite(e)}function y(e){return"string"==typeof e&&e.search("%")===e.length-1&&f(e.substr(0,e.length-1))}function h(e,t){e&&"function"==typeof e&&e(t)}var g=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 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,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.animationFrameIDs=[];var a="auto",s="visible";f(e.height)?(a=e.height<0||"0"===e.height?0:e.height,s="hidden"):y(e.height)&&(a="0%"===e.height?0:e.height,s="hidden"),n.animationStateClasses=r({},d,e.animationStateClasses);var o=n.getStaticStateClasses(a);return n.state={animationStateClasses:o,height:a,overflow:s,shouldUseTransitions:!1},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),s(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 n,a,r=this,s=this.props,o=s.delay,i=s.duration,c=s.height,d=s.onAnimationEnd,p=s.onAnimationStart;if(this.contentElement&&c!==e.height){var m;this.showContent(t.height),this.contentElement.style.overflow="hidden";var g=this.contentElement.offsetHeight;this.contentElement.style.overflow="";var v=i+o,O=null,E={height:null,overflow:"hidden"},w="auto"===t.height;f(c)?(O=c<0||"0"===c?0:c,E.height=O):y(c)?(O="0%"===c?0:c,E.height=O):(O=g,E.height="auto",E.overflow=null),w&&(E.height=O,O=g);var j=(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===E.height),u(m,this.animationStateClasses.animatingToHeightAuto,"auto"===E.height),u(m,this.animationStateClasses.animatingToHeightSpecific,E.height>0),m)),x=this.getStaticStateClasses(E.height);this.setState({animationStateClasses:j,height:O,overflow:"hidden",shouldUseTransitions:!w}),clearTimeout(this.timeoutID),clearTimeout(this.animationClassesTimeoutID),w?(E.shouldUseTransitions=!0,b(this.animationFrameIDs),this.animationFrameIDs=(n=function(){r.setState(E),h(p,{newHeight:E.height})},(a=[])[0]=requestAnimationFrame((function(){a[1]=requestAnimationFrame((function(){n()}))})),a),this.animationClassesTimeoutID=setTimeout((function(){r.setState({animationStateClasses:x,shouldUseTransitions:!1}),r.hideContent(E.height),h(d,{newHeight:E.height})}),v)):(h(p,{newHeight:O}),this.timeoutID=setTimeout((function(){E.animationStateClasses=x,E.shouldUseTransitions=!1,r.setState(E),"auto"!==c&&r.hideContent(O),h(d,{newHeight:O})}),v))}}},{key:"componentWillUnmount",value:function(){b(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,n=this.props,a=n.animateOpacity,s=n.applyInlineTransitions,i=n.children,c=n.className,d=n.contentClassName,b=n.delay,f=n.duration,y=n.easing,h=n.id,g=n.style,v=this.state,O=v.height,E=v.overflow,w=v.animationStateClasses,j=v.shouldUseTransitions,x=r({},g,{height:O,overflow:E||g.overflow});j&&s&&(x.transition="height "+f+"ms "+y+" "+b+"ms",g.transition&&(x.transition=g.transition+", "+x.transition),x.WebkitTransition=x.transition);var C={};a&&(C.transition="opacity "+f+"ms "+y+" "+b+"ms",C.WebkitTransition=C.transition,0===O&&(C.opacity=0));var S=(0,l.default)((u(e={},w,!0),u(e,c,c),e)),k=void 0!==this.props["aria-hidden"]?this.props["aria-hidden"]:0===O;return o.default.createElement("div",r({},m.apply(void 0,[this.props].concat(p)),{"aria-hidden":k,className:S,id:h,style:x}),o.default.createElement("div",{className:d,style:C,ref:function(e){return t.contentElement=e}},i))}}]),t}(o.default.Component);g.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,n){var r=e[t];return"number"==typeof r&&r>=0||y(r)||"auto"===r?null:new TypeError('value "'+r+'" of type "'+(void 0===r?"undefined":a(r))+'" is invalid type for '+t+" in "+n+'. 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},g.defaultProps={animateOpacity:!1,animationStateClasses:d,applyInlineTransitions:!0,duration:250,delay:0,easing:"ease",style:{}},t.default=g},106:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));class a extends Error{constructor(e,t,n,a,r){super(e),this.name="RequestError",this.url=t,this.method=n,this.statusCode=a,this.stackTrace=r}}},116:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(14),r=n.n(a),s=n(1),o=n(2),i=n.n(o),l=n(131);function c(e){let{id:t,onChange:n,socialMedium:a,isDisabled:o,...i}=e;const c=Object(s.useCallback)(e=>{n(e.target.value,"other"===a?i.index:a)},[a,i.index]);return Object(s.createElement)(l.a,r()({onChange:c,disabled:o,id:t},i))}c.propTypes={id:i.a.string.isRequired,onChange:i.a.func.isRequired,socialMedium:i.a.string,isDisabled:i.a.bool},c.defaultProps={socialMedium:"",isDisabled:!1}},13:function(e,t){e.exports=window.yoast.styleGuide},131:function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var a=n(14),r=n.n(a),s=n(1),o=n(25),i=n(26),l=n.n(i),c=n(2),u=n(64),d=n(132);function p(e){let{hasError:t,hasSuccess:n}=e;return t?Object(s.createElement)("div",{className:"yst-flex yst-items-center yst-absolute yst-inset-y-0 yst-right-0 yst-mr-3"},Object(s.createElement)(o.d,{className:"yst-pointer-events-none yst-h-5 yst-w-5 yst-text-red-500"})):n?Object(s.createElement)("div",{className:"yst-flex yst-items-center yst-absolute yst-inset-y-0 yst-right-0 yst-mr-3"},Object(s.createElement)(o.b,{className:"yst-pointer-events-none yst-h-5 yst-w-5 yst-text-emerald-600"})):null}function m(e){let{className:t,id:n,label:a,description:o,value:i,onChange:c,placeholder:m,feedback:b,type:f,...y}=e;const h=f||"text",g=Object(s.useMemo)(()=>b.isVisible&&"error"===b.type,[b.isVisible,b.type]),v=Object(s.useMemo)(()=>b.isVisible&&"success"===b.type,[b.isVisible,b.type]);return Object(s.createElement)("div",{className:t},a&&Object(s.createElement)("label",{className:"yst-block yst-mb-2 yst-font-medium yst-text-gray-700",htmlFor:n},a),Object(s.createElement)("div",{className:"yst-relative"},Object(s.createElement)("input",r()({id:n,type:h,value:i,className:l()("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":g,"yst-border-emerald-600 yst-text-gray-700 focus:yst-ring-emerald-600 focus:yst-border-emerald-600":v,"yst-text-gray-700 yst-border-gray-300 focus:yst-ring-primary-500 focus:yst-border-primary-500":!g&&!v}),onChange:c,placeholder:m},Object(u.b)(n,b),y)),Object(s.createElement)(p,{hasError:g,hasSuccess:v})),b.isVisible&&Object(s.createElement)(d.a,{id:`${g?"error-":"success-"}${n}`,className:l()("yst-mt-2 yst-text-sm",{"yst-text-red-600":g,"yst-text-emerald-600":v}),texts:b.message}),o)}p.propTypes={hasError:c.PropTypes.bool,hasSuccess:c.PropTypes.bool},p.defaultProps={hasError:!1,hasSuccess:!1},m.propTypes={className:c.PropTypes.string,id:c.PropTypes.string.isRequired,label:c.PropTypes.string,description:c.PropTypes.node,value:c.PropTypes.string,onChange:c.PropTypes.func.isRequired,placeholder:c.PropTypes.string,feedback:c.PropTypes.shape({type:c.PropTypes.string,message:c.PropTypes.array,isVisible:c.PropTypes.bool}),type:c.PropTypes.string},m.defaultProps={value:"",className:"",label:"",description:null,placeholder:"",feedback:{message:[],isVisible:!1},type:"text"}},132:function(e,t,n){"use strict";var a=n(14),r=n.n(a),s=n(1),o=n(2),i=n.n(o),l=n(4);const c=e=>{let{texts:t,id:n,as:a,...o}=e;const i=Object(s.useMemo)(()=>Object(l.last)(t),[t]);return Object(s.createElement)(a,r()({id:n},o),t.map((e,t)=>Object(s.createElement)(s.Fragment,{key:`${n}-text-${t}`},e,i!==e&&Object(s.createElement)("br",null))))};c.defaultProps={as:"p"},c.propTypes={texts:i.a.arrayOf(i.a.string).isRequired,id:i.a.string.isRequired,as:i.a.oneOfType([i.a.string,i.a.elementType])},t.a=c},14:function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,n.apply(this,arguments)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},141:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));class a extends Error{constructor(e,t){super(e),this.name="ParseError",this.parseString=t}}},147:function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return b})),n.d(t,"c",(function(){return y}));var a=n(1),r=n(25),s=n(2),o=n.n(s),i=n(65),l=n(44);const{slideDuration:c,delayUntilStepFaded:u}=i.b,d=`yst-transition-opacity ${c} yst-absolute yst-inset-0 yst-border-2 yst-flex yst-items-center yst-justify-center yst-rounded-full`;function p(e){return`${d} ${e?"yst-opacity-100":u+" yst-opacity-0"}`}function m(e){let{isVisible:t}=e;return Object(a.createElement)("span",{className:"yst-bg-white yst-border-primary-500 "+p(t)},Object(a.createElement)("span",{className:"yst-h-2.5 yst-w-2.5 yst-rounded-full yst-bg-primary-500"}))}function b(e){let{isVisible:t}=e;return Object(a.createElement)("span",{className:"yst-bg-primary-500 yst-border-primary-500 "+p(t)},Object(a.createElement)(r.c,{className:"yst-w-5 yst-h-5 yst-text-white","aria-hidden":"true"}))}function f(e){let{isVisible:t}=e;return Object(a.createElement)("span",{className:"yst-bg-white yst-border-gray-300 "+p(t)},Object(a.createElement)("span",{className:"yst-h-2.5 yst-w-2.5 yst-rounded-full yst-bg-transparent"}))}function y(e){let{activationDelay:t,deactivationDelay:n,isFinished:r}=e;const{activeStepIndex:s,stepIndex:o,lastStepIndex:i}=Object(l.c)(),c=o===i,u=s===o,[d,p]=Object(a.useState)(()=>!!u&&!c);return Object(a.useEffect)(()=>{if(u){const e=setTimeout(()=>{p(!0)},t);return()=>clearTimeout(e)}const e=setTimeout(()=>{p(!1)},n);return()=>clearTimeout(e)},[u,c,t,n]),Object(a.createElement)("span",{className:"yst-relative yst-z-10 yst-w-8 yst-h-8 yst-rounded-full"},Object(a.createElement)(f,{isVisible:!0}),Object(a.createElement)(b,{isVisible:r}),Object(a.createElement)(m,{isVisible:d&&!c}))}m.propTypes={isVisible:o.a.bool},m.defaultProps={isVisible:!0},b.propTypes={isVisible:o.a.bool},b.defaultProps={isVisible:!0},f.propTypes={isVisible:o.a.bool},f.defaultProps={isVisible:!0},y.propTypes={isFinished:o.a.bool.isRequired,activationDelay:o.a.number,deactivationDelay:o.a.number},y.defaultProps={activationDelay:0,deactivationDelay:0}},148:function(e,t){e.exports=window.ReactDOM},155:function(e,t,n){"use strict";function a(e,t){const n=new URL(e);return n.searchParams.delete(t),n.href}function r(e,t,n){window.history.pushState(e,t,n)}n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return r}))},176:function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return m}));var a=n(1),r=n(3),s=n(2),o=n.n(s),i=n(90),l=n(25);const c=e=>{let{items:t,onAddProfile:n,onRemoveProfile:s,onChangeProfile:o,errorFields:c,fieldType:u,addButtonChildren:d}=e;const p=Object(a.useCallback)(e=>{s(parseInt(e.currentTarget.dataset.index,10))},[s]);return Object(a.createElement)("div",null,t.map((e,t)=>Object(a.createElement)("div",{key:"url-"+t},Object(a.createElement)("div",{className:"yst-flex yst-flex-row yst-items-start yst-mt-4"},Object(a.createElement)(u,{className:"yst-w-full",label:Object(r.__)("Other social profile","wordpress-seo"),id:"social-input-other-url-"+t,value:e,socialMedium:"other",index:t,onChange:o,placeholder:Object(r.__)("E.g. https://social-platform.com/yoast","wordpress-seo"),feedback:{type:"error",isVisible:c.includes("other_social_urls-"+t),message:[Object(r.__)("Could not save this value. Please check the URL.","wordpress-seo")]}}),Object(a.createElement)("button",{type:"button",className:"yst-mt-[27.5px] yst-ml-2 yst-p-3 yst-text-gray-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-"+t,"data-index":t,onClick:p},Object(a.createElement)("span",{className:"yst-sr-only"},Object(r.__)("Delete item","wordpress-seo")),Object(a.createElement)(i.c,{className:"yst-relative yst--top-0.5 yst-w-5 yst-h-5"}))))),Object(a.createElement)("button",{type:"button",id:"add-profile",className:"yst-button yst-button--secondary yst-items-center yst-mt-8",onClick:n},Object(a.createElement)(l.g,{className:"yst-w-5 yst-h-5 yst-mr-1 yst-text-gray-400"}),d))};c.propTypes={fieldType:s.PropTypes.elementType.isRequired,items:s.PropTypes.array.isRequired,onAddProfile:s.PropTypes.func.isRequired,onRemoveProfile:s.PropTypes.func.isRequired,onChangeProfile:s.PropTypes.func.isRequired,errorFields:s.PropTypes.array,addButtonChildren:s.PropTypes.node},c.defaultProps={errorFields:[],addButtonChildren:Object(r.__)("Add another profile","wordpress-seo")};var u=c,d=n(116);function p(e){let{socialProfiles:t,errorFields:n,dispatch:r}=e;const s=Object(a.useCallback)((e,t)=>{r({type:"CHANGE_SOCIAL_PROFILE",payload:{socialMedium:t,value:e}})},[]),o=Object(a.useCallback)((e,t)=>{r({type:"CHANGE_OTHERS_SOCIAL_PROFILE",payload:{index:t,value:e}})},[]),i=Object(a.useCallback)(()=>{r({type:"ADD_OTHERS_SOCIAL_PROFILE",payload:{value:""}})},[]),l=Object(a.useCallback)(e=>{r({type:"REMOVE_OTHERS_SOCIAL_PROFILE",payload:{index:e}})},[]);return Object(a.createElement)(m,{socialProfiles:t,onChangeHandler:s,onChangeOthersHandler:o,onAddProfileHandler:i,onRemoveProfileHandler:l,errorFields:n})}function m(e){let{socialProfiles:t,onChangeHandler:n,onChangeOthersHandler:s,onAddProfileHandler:o,onRemoveProfileHandler:i,errorFields:l}=e;return Object(a.createElement)("div",{id:"social-input-section"},Object(a.createElement)(d.a,{className:"yst-mt-4",label:Object(r.__)("Facebook","wordpress-seo"),id:"social-input-facebook-url",value:t.facebookUrl,socialMedium:"facebookUrl",onChange:n,placeholder:Object(r.__)("E.g. https://www.facebook.com/yoast","wordpress-seo"),feedback:{message:[Object(r.__)("Could not save this value. Please check the URL.","wordpress-seo")],isVisible:l.includes("facebook_site"),type:"error"}}),Object(a.createElement)(d.a,{className:"yst-mt-4",label:Object(r.__)("Twitter","wordpress-seo"),id:"social-input-twitter-url",value:t.twitterUsername,socialMedium:"twitterUsername",onChange:n,placeholder:Object(r.__)("E.g. https://www.twitter.com/yoast","wordpress-seo"),feedback:{message:[Object(r.__)("Could not save this value. Please check the URL or username.","wordpress-seo")],isVisible:l.includes("twitter_site"),type:"error"}}),Object(a.createElement)(u,{items:t.otherSocialUrls,onAddProfile:o,onRemoveProfile:i,onChangeProfile:s,errorFields:l,fieldType:d.a}))}p.propTypes={socialProfiles:o.a.object.isRequired,dispatch:o.a.func.isRequired,errorFields:o.a.array},p.defaultProps={errorFields:[]},m.propTypes={socialProfiles:o.a.object.isRequired,onChangeHandler:o.a.func.isRequired,onChangeOthersHandler:o.a.func.isRequired,onAddProfileHandler:o.a.func.isRequired,onRemoveProfileHandler:o.a.func.isRequired,errorFields:o.a.array.isRequired}},2:function(e,t){e.exports=window.yoast.propTypes},22:function(e,t){e.exports=window.wp.apiFetch},222:function(e,t,n){"use strict";n.r(t);var a=n(1),r=n(69),s=n.n(r),o=n(43),i=n(4),l=n(22),c=n.n(l),u=n(3),d=n(24),p=n(64),m=n(2),b=n.n(m),f=n(176),y=n(49),h=n(116);function g(e){let{socialProfiles:t,errorFields:n,dispatch:r,canEditUser:s,personId:o}=e;const i=Object(a.useCallback)((e,t)=>{r({type:"CHANGE_PERSON_SOCIAL_PROFILE",payload:{socialMedium:t,value:e}})},[r]);return Object(a.useEffect)(()=>{c()({path:"yoast/v1/configuration/person_social_profiles?user_id="+o}).then(e=>{e.success&&r({type:"INIT_PERSON_SOCIAL_PROFILES",payload:{socialProfiles:e.social_profiles}})}).catch(e=>{console.error(e.message)})},[o,r]),Object(a.createElement)("div",null,0===o&&Object(a.createElement)(y.b,{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.
Object(u.__)("Please select a name in the site representation step for this step to be effective.","wordpress-seo")),0!==o&&!s&&Object(a.createElement)(y.b,{type:"info",className:"yst-mt-5"},Object(a.createInterpolateElement)(Object(u.sprintf)(// translators: %1$s is replaced by the selected person's username
Object(u.__)("You're not allowed to edit the social profiles of the user %1$s. Please ask this user or an admin to do this.","wordpress-seo"),window.wpseoFirstTimeConfigurationData.personName),{b:Object(a.createElement)("b",null)})),0!==o&&Object(a.createElement)("div",{id:"social-input-section",className:"yoast-social-profiles-input-fields"},p.f.map((e,r)=>Object(a.createElement)(h.a,{key:r,className:"yst-mt-4",label:e.name,id:e.name.toLowerCase(),value:t[e.name.toLowerCase()],socialMedium:e.name.toLowerCase(),onChange:i,isDisabled:!s,placeholder:e.placeholder,feedback:{message:["Twitter"===e.name?Object(u.__)("Could not save this value. Please check the URL or username.","wordpress-seo"):Object(u.__)("Could not save this value. Please check the URL.","wordpress-seo")],isVisible:n.includes(e.name.toLowerCase()),type:"error"}}))))}var v=g;function O(e){let{state:t,dispatch:n,setErrorFields:r}=e;return["company","emptyChoice"].includes(t.companyOrPerson)?Object(a.createElement)(a.Fragment,null,Object(a.createElement)("p",null,Object(u.__)("We need a little more help from you! Add your organization's Facebook and Twitter profile so we can optimize the metadata for those platforms too.","wordpress-seo")),Object(a.createElement)(f.b,{socialProfiles:t.socialProfiles,dispatch:n,errorFields:t.errorFields,setErrorFields:r})):Object(a.createElement)(a.Fragment,null,Object(a.createElement)("p",null,Object(u.__)("We need a little more help from you! Add your Facebook and Twitter profile so we can optimize the metadata for those platforms too.","wordpress-seo")),Object(a.createElement)(v,{socialProfiles:t.personSocialProfiles,errorFields:t.errorFields,dispatch:n,canEditUser:!!t.canEditUser,personId:t.personId}))}g.propTypes={dispatch:b.a.func.isRequired,canEditUser:b.a.bool.isRequired,socialProfiles:b.a.object,errorFields:b.a.array,personId:b.a.number},g.defaultProps={socialProfiles:{},errorFields:[],personId:0},O.propTypes={state:b.a.object.isRequired,dispatch:b.a.func.isRequired,setErrorFields:b.a.func.isRequired};var E=n(44),w=n(14),j=n.n(w),x=n(65),C=n(26),S=n.n(C);function k(e){let{beforeGo:t,children:n,additionalClasses:r,...s}=e;return Object(a.createElement)(E.a.GoButton,j()({className:"yst-button yst-button--primary "+r,destination:1,beforeGo:t},s),n)}function R(e){let{beforeGo:t,isVisible:n,children:r,additionalClasses:s,...o}=e;const i=`yst-transition-opacity ${x.b.slideDuration} yst-ease-out ${n?"yst-opacity-100":x.b.delayBeforeOpening+" yst-opacity-0 yst-pointer-events-none yst-hidden"}`;return Object(a.createElement)(E.a.GoButton,j()({className:S()("yst-button yst-button--secondary yst-button--small",i,s),destination:0,beforeGo:t},o),r)}function P(e){let{beforeGo:t,children:n,additionalClasses:r,...s}=e;return Object(a.createElement)(E.a.GoButton,j()({className:"yst-button yst-button--secondary "+r,destination:-1,beforeGo:t},s),n)}function I(e){let{beforeContinue:t,continueLabel:n,beforeBack:r,backLabel:s}=e;return Object(a.createElement)("div",{className:"yst-mt-12"},Object(a.createElement)(k,{beforeGo:t},n),Object(a.createElement)(P,{additionalClasses:"yst-ml-3",beforeGo:r},s))}function T(e){let{stepperFinishedOnce:t,saveFunction:n,setEditState:r}=e;const s=Object(a.useCallback)(async()=>{const e=await n();return r(!e),e});return t?Object(a.createElement)(E.a.GoButton,{className:"yst-button yst-button--primary yst-mt-12",destination:"last",beforeGo:s},Object(u.__)("Save changes","wordpress-seo")):Object(a.createElement)(I,{beforeContinue:n,continueLabel:Object(u.__)("Save and continue","wordpress-seo")})}k.propTypes={additionalClasses:b.a.string,beforeGo:b.a.func,children:b.a.node},k.defaultProps={additionalClasses:"",beforeGo:null,children:null},R.propTypes={additionalClasses:b.a.string,isVisible:b.a.bool,beforeGo:b.a.func,children:b.a.node},R.defaultProps={additionalClasses:"",isVisible:!0,beforeGo:null,children:null},P.propTypes={additionalClasses:b.a.string,beforeGo:b.a.func,children:b.a.node},P.defaultProps={additionalClasses:"",beforeGo:null,children:null},I.propTypes={beforeContinue:b.a.func,continueLabel:b.a.string,beforeBack:b.a.func,backLabel:b.a.string},I.defaultProps={beforeContinue:null,continueLabel:Object(u.__)("Continue","wordpress-seo"),beforeBack:null,backLabel:Object(u.__)("Go back","wordpress-seo")},T.propTypes={stepperFinishedOnce:b.a.bool.isRequired,saveFunction:b.a.func.isRequired,setEditState:b.a.func.isRequired};var _=n(0),M=n.n(_),N=n(148);function F(){let e=[],t=[],n={enqueue(e){t.push(e)},requestAnimationFrame(...e){let t=requestAnimationFrame(...e);n.add(()=>cancelAnimationFrame(t))},nextFrame(...e){n.requestAnimationFrame(()=>{n.requestAnimationFrame(...e)})},setTimeout(...e){let t=setTimeout(...e);n.add(()=>clearTimeout(t))},add(t){e.push(t)},dispose(){for(let t of e.splice(0))t()},async workQueue(){for(let e of t.splice(0))await e()}};return n}function L(){let[e]=Object(_.useState)(F);return Object(_.useEffect)(()=>()=>e.dispose(),[e]),e}var D="undefined"!=typeof window?_.useLayoutEffect:_.useEffect,A={serverHandoffComplete:!1};function z(){let[e,t]=Object(_.useState)(A.serverHandoffComplete);return Object(_.useEffect)(()=>{!0!==e&&t(!0)},[e]),Object(_.useEffect)(()=>{!1===A.serverHandoffComplete&&(A.serverHandoffComplete=!0)},[]),e}var q=0;function U(){return++q}function H(){let e=z(),[t,n]=Object(_.useState)(e?U:null);return D(()=>{null===t&&n(U())},[t]),null!=t?""+t:void 0}function B(e){let t=Object(_.useRef)(e);return Object(_.useEffect)(()=>{t.current=e},[e]),t}function $(e,t){let[n,a]=Object(_.useState)(e),r=B(e);return D(()=>a(r.current),[r,a,...t]),n}function V(...e){let t=Object(_.useRef)(e);return Object(_.useEffect)(()=>{t.current=e},[e]),Object(_.useCallback)(e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)},[t])}function G(e,t,...n){if(e in t){let a=t[e];return"function"==typeof a?a(...n):a}let a=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(a,G),a}function W({props:e,slot:t,defaultTag:n,features:a,visible:r=!0,name:s}){if(r)return Y(e,t,n,s);let o=null!=a?a:0;if(2&o){let{static:a=!1,...r}=e;if(a)return Y(r,t,n,s)}if(1&o){let{unmount:a=!0,...r}=e;return G(a?0:1,{0:()=>null,1:()=>Y({...r,hidden:!0,style:{display:"none"}},t,n,s)})}return Y(e,t,n,s)}function Y(e,t={},n,a){let{as:r=n,children:s,refName:o="ref",...i}=Q(e,["unmount","static"]),l=void 0!==e.ref?{[o]:e.ref}:{},c="function"==typeof s?s(t):s;if(i.className&&"function"==typeof i.className&&(i.className=i.className(t)),r===_.Fragment&&Object.keys(i).length>0){if(!Object(_.isValidElement)(c)||Array.isArray(c)&&c.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${a} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(i).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"));return Object(_.cloneElement)(c,Object.assign({},function(e,t,n){let a=Object.assign({},e);for(let n of["onClick"])void 0!==e[n]&&void 0!==t[n]&&Object.assign(a,{[n](a){a.defaultPrevented||e[n](a),a.defaultPrevented||t[n](a)}});return a}(function(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}(Q(i,["ref"])),c.props),l))}return Object(_.createElement)(r,Object.assign({},Q(i,["ref"]),r!==_.Fragment&&l),c)}function K(e){var t;return Object.assign(Object(_.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function Q(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}function J(e,t){let n=t.resolveItems();if(n.length<=0)return null;let a=t.resolveActiveIndex(),r=null!=a?a:-1,s=(()=>{switch(e.focus){case 0:return n.findIndex(e=>!t.resolveDisabled(e));case 1:{let e=n.slice().reverse().findIndex((e,n,a)=>!(-1!==r&&a.length-n-1>=r||t.resolveDisabled(e)));return-1===e?e:n.length-1-e}case 2:return n.findIndex((e,n)=>!(n<=r||t.resolveDisabled(e)));case 3:{let e=n.slice().reverse().findIndex(e=>!t.resolveDisabled(e));return-1===e?e:n.length-1-e}case 4:return n.findIndex(n=>t.resolveId(n)===e.id);case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}})();return-1===s?a:s}function Z(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let a=""===(null==t?void 0:t.getAttribute("disabled"));return(!a||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&a}function X(e,t,n){let a=Object(_.useRef)(t);a.current=t,Object(_.useEffect)(()=>{function t(e){a.current.call(window,e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)},[e,n])}var ee=Object(_.createContext)(null);function te(){return Object(_.useContext)(ee)}function ne({value:e,children:t}){return M.a.createElement(ee.Provider,{value:e},t)}function ae(e){var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";return"string"==typeof n&&"button"===n.toLowerCase()?"button":void 0}function re(e,t){let[n,a]=Object(_.useState)(()=>ae(e));return D(()=>{a(ae(e))},[e.type,e.as]),D(()=>{n||!t.current||t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&a("button")},[n,t]),n}function se({container:e,accept:t,walk:n,enabled:a=!0}){let r=Object(_.useRef)(t),s=Object(_.useRef)(n);Object(_.useEffect)(()=>{r.current=t,s.current=n},[t,n]),D(()=>{if(!e||!a)return;let t=r.current,n=s.current,o=Object.assign(e=>t(e),{acceptNode:t}),i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,o,!1);for(;i.nextNode();)n(i.currentNode)},[e,a,r,s])}ee.displayName="OpenClosedContext";var oe={1:e=>e.disabled||1===e.comboboxState?e:{...e,activeOptionIndex:null,comboboxState:1},0:e=>e.disabled||0===e.comboboxState?e:{...e,comboboxState:0},2:(e,t)=>e.disabled===t.disabled?e:{...e,disabled:t.disabled},3(e,t){if(e.disabled||e.optionsRef.current&&!e.optionsPropsRef.current.static&&1===e.comboboxState)return e;let n=J(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return e.activeOptionIndex===n?e:{...e,activeOptionIndex:n}},4:(e,t)=>{var n;let a=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=Array.from(null==(n=e.optionsRef.current)?void 0:n.querySelectorAll('[id^="headlessui-combobox-option-"]')).reduce((e,t,n)=>Object.assign(e,{[t.id]:n}),{}),s=[...e.options,{id:t.id,dataRef:t.dataRef}].sort((e,t)=>r[e.id]-r[t.id]);return{...e,options:s,activeOptionIndex:null===a?null:s.indexOf(a)}},5:(e,t)=>{let n=e.options.slice(),a=null!==e.activeOptionIndex?n[e.activeOptionIndex]:null,r=n.findIndex(e=>e.id===t.id);return-1!==r&&n.splice(r,1),{...e,options:n,activeOptionIndex:r===e.activeOptionIndex||null===a?null:n.indexOf(a)}}},ie=Object(_.createContext)(null);function le(e){let t=Object(_.useContext)(ie);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,le),t}return t}ie.displayName="ComboboxContext";var ce=Object(_.createContext)(null);function ue(){let e=Object(_.useContext)(ce);if(null===e){let e=new Error("ComboboxActions is missing a parent <Combobox /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(e,ue),e}return e}function de(e,t){return G(t.type,oe,e,t)}ce.displayName="ComboboxActions";var pe=_.Fragment,me=K((function(e,t){let{value:n,onChange:a,disabled:r=!1,...s}=e,o=Object(_.useRef)({value:n,onChange:a}),i=Object(_.useRef)({static:!1,hold:!1}),l=Object(_.useRef)({displayValue:void 0}),c=Object(_.useReducer)(de,{comboboxState:1,comboboxPropsRef:o,optionsPropsRef:i,inputPropsRef:l,labelRef:Object(_.createRef)(),inputRef:Object(_.createRef)(),buttonRef:Object(_.createRef)(),optionsRef:Object(_.createRef)(),disabled:r,options:[],activeOptionIndex:null}),[{comboboxState:u,options:d,activeOptionIndex:p,optionsRef:m,inputRef:b,buttonRef:f},y]=c;D(()=>{o.current.value=n},[n,o]),D(()=>{o.current.onChange=a},[a,o]),D(()=>y({type:2,disabled:r}),[r]),X("mousedown",e=>{var t,n,a;let r=e.target;0===u&&((null==(t=f.current)?void 0:t.contains(r))||(null==(n=b.current)?void 0:n.contains(r))||(null==(a=m.current)?void 0:a.contains(r))||y({type:1}))});let h=null===p?null:d[p].dataRef.current.value,g=Object(_.useMemo)(()=>({open:0===u,disabled:r,activeIndex:p,activeOption:h}),[u,r,d,p]),v=Object(_.useCallback)(()=>{if(!b.current||void 0===n)return;let e=l.current.displayValue;"function"==typeof e?b.current.value=e(n):"string"==typeof n&&(b.current.value=n)},[n,b,l]),O=Object(_.useCallback)(e=>{let t=d.find(t=>t.id===e);if(!t)return;let{dataRef:n}=t;o.current.onChange(n.current.value),v()},[d,o,b]),E=Object(_.useCallback)(()=>{if(null!==p){let{dataRef:e}=d[p];o.current.onChange(e.current.value),v()}},[p,d,o,b]),w=Object(_.useMemo)(()=>({selectOption:O,selectActiveOption:E}),[O,E]);return D(()=>{1===u&&v()},[v,u]),D(v,[v]),M.a.createElement(ce.Provider,{value:w},M.a.createElement(ie.Provider,{value:c},M.a.createElement(ne,{value:G(u,{0:0,1:1})},W({props:null===t?s:{...s,ref:t},slot:g,defaultTag:pe,name:"Combobox"}))))})),be=K((function(e,t){var n,a;let{value:r,onChange:s,displayValue:o,...i}=e,[l,c]=le("Combobox.Input"),u=ue(),d=V(l.inputRef,t),p=l.inputPropsRef,m="headlessui-combobox-input-"+H(),b=L(),f=B(s);D(()=>{p.current.displayValue=o},[o,p]);let y=Object(_.useCallback)(e=>{switch(e.key){case"Enter":e.preventDefault(),e.stopPropagation(),u.selectActiveOption(),c({type:1});break;case"ArrowDown":return e.preventDefault(),e.stopPropagation(),G(l.comboboxState,{0:()=>c({type:3,focus:2}),1:()=>{c({type:0}),b.nextFrame(()=>{l.comboboxPropsRef.current.value||c({type:3,focus:0})})}});case"ArrowUp":return e.preventDefault(),e.stopPropagation(),G(l.comboboxState,{0:()=>c({type:3,focus:1}),1:()=>{c({type:0}),b.nextFrame(()=>{l.comboboxPropsRef.current.value||c({type:3,focus:3})})}});case"Home":case"PageUp":return e.preventDefault(),e.stopPropagation(),c({type:3,focus:0});case"End":case"PageDown":return e.preventDefault(),e.stopPropagation(),c({type:3,focus:3});case"Escape":return e.preventDefault(),l.optionsRef.current&&!l.optionsPropsRef.current.static&&e.stopPropagation(),c({type:1});case"Tab":u.selectActiveOption(),c({type:1})}},[b,c,l,u]),h=Object(_.useCallback)(e=>{var t;c({type:0}),null==(t=f.current)||t.call(f,e)},[c,f]),g=$(()=>{if(l.labelRef.current)return[l.labelRef.current.id].join(" ")},[l.labelRef.current]),v=Object(_.useMemo)(()=>({open:0===l.comboboxState,disabled:l.disabled}),[l]);return W({props:{...i,ref:d,id:m,role:"combobox",type:"text","aria-controls":null==(n=l.optionsRef.current)?void 0:n.id,"aria-expanded":l.disabled?void 0:0===l.comboboxState,"aria-activedescendant":null===l.activeOptionIndex||null==(a=l.options[l.activeOptionIndex])?void 0:a.id,"aria-labelledby":g,disabled:l.disabled,onKeyDown:y,onChange:h},slot:v,defaultTag:"input",name:"Combobox.Input"})})),fe=K((function(e,t){var n;let[a,r]=le("Combobox.Button"),s=ue(),o=V(a.buttonRef,t),i="headlessui-combobox-button-"+H(),l=L(),c=Object(_.useCallback)(e=>{switch(e.key){case"ArrowDown":return e.preventDefault(),e.stopPropagation(),1===a.comboboxState&&(r({type:0}),l.nextFrame(()=>{a.comboboxPropsRef.current.value||r({type:3,focus:0})})),l.nextFrame(()=>{var e;return null==(e=a.inputRef.current)?void 0:e.focus({preventScroll:!0})});case"ArrowUp":return e.preventDefault(),e.stopPropagation(),1===a.comboboxState&&(r({type:0}),l.nextFrame(()=>{a.comboboxPropsRef.current.value||r({type:3,focus:3})})),l.nextFrame(()=>{var e;return null==(e=a.inputRef.current)?void 0:e.focus({preventScroll:!0})});case"Escape":return e.preventDefault(),a.optionsRef.current&&!a.optionsPropsRef.current.static&&e.stopPropagation(),r({type:1}),l.nextFrame(()=>{var e;return null==(e=a.inputRef.current)?void 0:e.focus({preventScroll:!0})})}},[l,r,a,s]),u=Object(_.useCallback)(e=>{if(Z(e.currentTarget))return e.preventDefault();0===a.comboboxState?r({type:1}):(e.preventDefault(),r({type:0})),l.nextFrame(()=>{var e;return null==(e=a.inputRef.current)?void 0:e.focus({preventScroll:!0})})},[r,l,a]),d=$(()=>{if(a.labelRef.current)return[a.labelRef.current.id,i].join(" ")},[a.labelRef.current,i]),p=Object(_.useMemo)(()=>({open:0===a.comboboxState,disabled:a.disabled}),[a]);return W({props:{...e,ref:o,id:i,type:re(e,a.buttonRef),tabIndex:-1,"aria-haspopup":!0,"aria-controls":null==(n=a.optionsRef.current)?void 0:n.id,"aria-expanded":a.disabled?void 0:0===a.comboboxState,"aria-labelledby":d,disabled:a.disabled,onClick:u,onKeyDown:c},slot:p,defaultTag:"button",name:"Combobox.Button"})})),ye=K((function(e,t){var n;let{hold:a=!1,...r}=e,[s]=le("Combobox.Options"),{optionsPropsRef:o}=s,i=V(s.optionsRef,t),l="headlessui-combobox-options-"+H(),c=te(),u=null!==c?0===c:0===s.comboboxState;D(()=>{var t;o.current.static=null!=(t=e.static)&&t},[o,e.static]),D(()=>{o.current.hold=a},[a,o]),se({container:s.optionsRef.current,enabled:0===s.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=$(()=>{var e,t,n;return null!=(n=null==(e=s.labelRef.current)?void 0:e.id)?n:null==(t=s.buttonRef.current)?void 0:t.id},[s.labelRef.current,s.buttonRef.current]),p=Object(_.useMemo)(()=>({open:0===s.comboboxState}),[s]);return W({props:{...r,"aria-activedescendant":null===s.activeOptionIndex||null==(n=s.options[s.activeOptionIndex])?void 0:n.id,"aria-labelledby":d,role:"listbox",id:l,ref:i},slot:p,defaultTag:"ul",features:3,visible:u,name:"Combobox.Options"})})),he=Object.assign(me,{Input:be,Button:fe,Label:function(e){let[t]=le("Combobox.Label"),n="headlessui-combobox-label-"+H(),a=Object(_.useCallback)(()=>{var e;return null==(e=t.inputRef.current)?void 0:e.focus({preventScroll:!0})},[t.inputRef]),r=Object(_.useMemo)(()=>({open:0===t.comboboxState,disabled:t.disabled}),[t]);return W({props:{...e,ref:t.labelRef,id:n,onClick:a},slot:r,defaultTag:"label",name:"Combobox.Label"})},Options:ye,Option:function(e){let{disabled:t=!1,value:n,...a}=e,[r,s]=le("Combobox.Option"),o=ue(),i="headlessui-combobox-option-"+H(),l=null!==r.activeOptionIndex&&r.options[r.activeOptionIndex].id===i,c=r.comboboxPropsRef.current.value===n,u=Object(_.useRef)({disabled:t,value:n});D(()=>{u.current.disabled=t},[u,t]),D(()=>{u.current.value=n},[u,n]),D(()=>{var e,t;u.current.textValue=null==(t=null==(e=document.getElementById(i))?void 0:e.textContent)?void 0:t.toLowerCase()},[u,i]);let d=Object(_.useCallback)(()=>o.selectOption(i),[o,i]);D(()=>(s({type:4,id:i,dataRef:u}),()=>s({type:5,id:i})),[u,i]),D(()=>{0===r.comboboxState&&(!c||s({type:3,focus:4,id:i}))},[r.comboboxState,c,i]),D(()=>{if(0!==r.comboboxState||!l)return;let e=F();return e.requestAnimationFrame(()=>{var e,t;null==(t=null==(e=document.getElementById(i))?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}),e.dispose},[i,l,r.comboboxState,r.activeOptionIndex]);let p=Object(_.useCallback)(e=>{if(t)return e.preventDefault();d(),s({type:1}),F().nextFrame(()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})})},[s,r.inputRef,t,d]),m=Object(_.useCallback)(()=>{if(t)return s({type:3,focus:5});s({type:3,focus:4,id:i})},[t,i,s]),b=Object(_.useCallback)(()=>{t||l||s({type:3,focus:4,id:i})},[t,l,i,s]),f=Object(_.useCallback)(()=>{t||!l||r.optionsPropsRef.current.hold||s({type:3,focus:5})},[t,l,s,r.comboboxState,r.comboboxPropsRef]),y=Object(_.useMemo)(()=>({active:l,selected:c,disabled:t}),[l,c,t]);return W({props:{...a,id:i,role:"option",tabIndex:!0===t?void 0:-1,"aria-disabled":!0===t||void 0,"aria-selected":!0===c||void 0,disabled:void 0,onClick:p,onFocus:m,onPointerMove:b,onMouseMove:b,onPointerLeave:f,onMouseLeave:f},slot:y,defaultTag:"li",name:"Combobox.Option"})}}),ge=["[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(",");function ve(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(ge))}function Oe(e,t=0){return e!==document.body&&G(t,{0:()=>e.matches(ge),1(){let t=e;for(;null!==t;){if(t.matches(ge))return!0;t=t.parentElement}return!1}})}function Ee(e){null==e||e.focus({preventScroll:!0})}function we(e,t){let n,a=Array.isArray(e)?e.slice().sort((e,t)=>{let n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING?-1:n&Node.DOCUMENT_POSITION_PRECEDING?1:0}):ve(e),r=document.activeElement,s=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),o=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,a.indexOf(r))-1;if(4&t)return Math.max(0,a.indexOf(r))+1;if(8&t)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),i=32&t?{preventScroll:!0}:{},l=0,c=a.length;do{if(l>=c||l+c<=0)return 0;let e=o+l;if(16&t)e=(e+c)%c;else{if(e<0)return 3;if(e>=c)return 1}n=a[e],null==n||n.focus(i),l+=s}while(n!==document.activeElement);return n.hasAttribute("tabindex")||n.setAttribute("tabindex","0"),2}function je(){let e=Object(_.useRef)(!1);return Object(_.useEffect)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var xe=new Set,Ce=new Map;function Se(e){e.setAttribute("aria-hidden","true"),e.inert=!0}function ke(e){let t=Ce.get(e);!t||(null===t["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",t["aria-hidden"]),e.inert=t.inert)}var Re=Object(_.createContext)(!1);function Pe(e){return M.a.createElement(Re.Provider,{value:e.force},e.children)}var Ie=_.Fragment;function Te(e){let t=e,n=function(){let e=Object(_.useContext)(Re),t=Object(_.useContext)(Me),[n,a]=Object(_.useState)(()=>{if(!e&&null!==t||"undefined"==typeof window)return null;let n=document.getElementById("headlessui-portal-root");if(n)return n;let a=document.createElement("div");return a.setAttribute("id","headlessui-portal-root"),document.body.appendChild(a)});return Object(_.useEffect)(()=>{null!==n&&(document.body.contains(n)||document.body.appendChild(n))},[n]),Object(_.useEffect)(()=>{e||null!==t&&a(t.current)},[t,a,e]),n}(),[a]=Object(_.useState)(()=>"undefined"==typeof window?null:document.createElement("div")),r=z();return D(()=>{if(n&&a)return n.appendChild(a),()=>{var e;!n||!a||(n.removeChild(a),n.childNodes.length<=0&&(null==(e=n.parentElement)||e.removeChild(n)))}},[n,a]),r&&n&&a?Object(N.createPortal)(W({props:t,defaultTag:Ie,name:"Portal"}),a):null}var _e=_.Fragment,Me=Object(_.createContext)(null);Te.Group=function(e){let{target:t,...n}=e;return M.a.createElement(Me.Provider,{value:t},W({props:n,defaultTag:_e,name:"Popover.Group"}))};var Ne=Object(_.createContext)(null);function Fe(){let e=Object(_.useContext)(Ne);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,Fe),e}return e}function Le(){let[e,t]=Object(_.useState)([]);return[e.length>0?e.join(" "):void 0,Object(_.useMemo)(()=>function(e){let n=Object(_.useCallback)(e=>(t(t=>[...t,e]),()=>t(t=>{let n=t.slice(),a=n.indexOf(e);return-1!==a&&n.splice(a,1),n})),[]),a=Object(_.useMemo)(()=>({register:n,slot:e.slot,name:e.name,props:e.props}),[n,e.slot,e.name,e.props]);return M.a.createElement(Ne.Provider,{value:a},e.children)},[t])]}function De(e){let t=Fe(),n="headlessui-description-"+H();return D(()=>t.register(n),[n,t.register]),W({props:{...e,...t.props,id:n},slot:t.slot||{},defaultTag:"p",name:t.name||"Description"})}var Ae=Object(_.createContext)(()=>{});function ze({children:e,onUpdate:t,type:n,element:a}){let r=Object(_.useContext)(Ae),s=Object(_.useCallback)((...e)=>{null==t||t(...e),r(...e)},[r,t]);return D(()=>(s(0,n,a),()=>s(1,n,a)),[s,n,a]),M.a.createElement(Ae.Provider,{value:s},e)}Ae.displayName="StackContext";var qe={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},Ue=Object(_.createContext)(null);function He(e){let t=Object(_.useContext)(Ue);if(null===t){let t=new Error(`<${e} /> is missing a parent <${Ge.displayName} /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,He),t}return t}function Be(e,t){return G(t.type,qe,e,t)}Ue.displayName="DialogContext";var $e=K((function(e,t){let{open:n,onClose:a,initialFocus:r,...s}=e,[o,i]=Object(_.useState)(0),l=te();void 0===n&&null!==l&&(n=G(l,{0:!0,1:!1}));let c=Object(_.useRef)(new Set),u=Object(_.useRef)(null),d=V(u,t),p=e.hasOwnProperty("open")||null!==l,m=e.hasOwnProperty("onClose");if(!p&&!m)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!p)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!m)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof n)throw new Error("You provided an `open` prop to the `Dialog`, but the value is not a boolean. Received: "+n);if("function"!=typeof a)throw new Error("You provided an `onClose` prop to the `Dialog`, but the value is not a function. Received: "+a);let b=n?0:1,f=null!==l?0===l:0===b,[y,h]=Object(_.useReducer)(Be,{titleId:null,descriptionId:null}),g=Object(_.useCallback)(()=>a(!1),[a]),v=Object(_.useCallback)(e=>h({type:0,id:e}),[h]),O=z()&&0===b,E=o>1,w=null!==Object(_.useContext)(Ue);(function(e,t=30,{initialFocus:n,containers:a}={}){let r=Object(_.useRef)("undefined"!=typeof window?document.activeElement:null),s=Object(_.useRef)(null),o=je(),i=Boolean(16&t),l=Boolean(2&t);Object(_.useEffect)(()=>{!i||(r.current=document.activeElement)},[i]),Object(_.useEffect)(()=>{if(i)return()=>{Ee(r.current),r.current=null}},[i]),Object(_.useEffect)(()=>{if(!l||!e.current)return;let t=document.activeElement;if(null==n?void 0:n.current){if((null==n?void 0:n.current)===t)return void(s.current=t)}else if(e.current.contains(t))return void(s.current=t);(null==n?void 0:n.current)?Ee(n.current):0===we(e.current,1)&&console.warn("There are no focusable elements inside the <FocusTrap />"),s.current=document.activeElement},[e,n,l]),X("keydown",n=>{!(4&t)||!e.current||"Tab"===n.key&&(n.preventDefault(),2===we(e.current,16|(n.shiftKey?2:4))&&(s.current=document.activeElement))}),X("focus",n=>{if(!(8&t))return;let r=new Set(null==a?void 0:a.current);if(r.add(e),!r.size)return;let i=s.current;if(!i||!o.current)return;let l=n.target;l&&l instanceof HTMLElement?function(e,t){var n;for(let a of e)if(null==(n=a.current)?void 0:n.contains(t))return!0;return!1}(r,l)?(s.current=l,Ee(l)):(n.preventDefault(),n.stopPropagation(),Ee(i)):Ee(s.current)},!0)})(u,O?G(E?"parent":"leaf",{parent:16,leaf:30}):1,{initialFocus:r,containers:c}),function(e,t=!0){D(()=>{if(!t||!e.current)return;let n=e.current;xe.add(n);for(let e of Ce.keys())e.contains(n)&&(ke(e),Ce.delete(e));return document.querySelectorAll("body > *").forEach(e=>{if(e instanceof HTMLElement){for(let t of xe)if(e.contains(t))return;1===xe.size&&(Ce.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),Se(e))}}),()=>{if(xe.delete(n),xe.size>0)document.querySelectorAll("body > *").forEach(e=>{if(e instanceof HTMLElement&&!Ce.has(e)){for(let t of xe)if(e.contains(t))return;Ce.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),Se(e)}});else for(let e of Ce.keys())ke(e),Ce.delete(e)}},[t])}(u,!!E&&O),X("mousedown",e=>{var t;let n=e.target;0===b&&(E||(null==(t=u.current)?void 0:t.contains(n))||g())}),X("keydown",e=>{"Escape"===e.key&&0===b&&(E||(e.preventDefault(),e.stopPropagation(),g()))}),Object(_.useEffect)(()=>{if(0!==b||w)return;let e=document.documentElement.style.overflow,t=document.documentElement.style.paddingRight,n=window.innerWidth-document.documentElement.clientWidth;return document.documentElement.style.overflow="hidden",document.documentElement.style.paddingRight=n+"px",()=>{document.documentElement.style.overflow=e,document.documentElement.style.paddingRight=t}},[b,w]),Object(_.useEffect)(()=>{if(0!==b||!u.current)return;let e=new IntersectionObserver(e=>{for(let t of e)0===t.boundingClientRect.x&&0===t.boundingClientRect.y&&0===t.boundingClientRect.width&&0===t.boundingClientRect.height&&g()});return e.observe(u.current),()=>e.disconnect()},[b,u,g]);let[j,x]=Le(),C="headlessui-dialog-"+H(),S=Object(_.useMemo)(()=>[{dialogState:b,close:g,setTitleId:v},y],[b,y,g,v]),k=Object(_.useMemo)(()=>({open:0===b}),[b]),R={ref:d,id:C,role:"dialog","aria-modal":0===b||void 0,"aria-labelledby":y.titleId,"aria-describedby":j,onClick(e){e.stopPropagation()}},P=s;return M.a.createElement(ze,{type:"Dialog",element:u,onUpdate:Object(_.useCallback)((e,t,n)=>{"Dialog"===t&&G(e,{0(){c.current.add(n),i(e=>e+1)},1(){c.current.add(n),i(e=>e-1)}})},[])},M.a.createElement(Pe,{force:!0},M.a.createElement(Te,null,M.a.createElement(Ue.Provider,{value:S},M.a.createElement(Te.Group,{target:u},M.a.createElement(Pe,{force:!1},M.a.createElement(x,{slot:k,name:"Dialog.Description"},W({props:{...P,...R},slot:k,defaultTag:"div",features:3,visible:f,name:"Dialog"}))))))))})),Ve=K((function(e,t){let[{dialogState:n,close:a}]=He("Dialog.Overlay");return W({props:{...e,ref:V(t),id:"headlessui-dialog-overlay-"+H(),"aria-hidden":!0,onClick:Object(_.useCallback)(e=>{if(e.target===e.currentTarget){if(Z(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),a()}},[a])},slot:Object(_.useMemo)(()=>({open:0===n}),[n]),defaultTag:"div",name:"Dialog.Overlay"})})),Ge=Object.assign($e,{Overlay:Ve,Title:function(e){let[{dialogState:t,setTitleId:n}]=He("Dialog.Title"),a="headlessui-dialog-title-"+H();Object(_.useEffect)(()=>(n(a),()=>n(null)),[a,n]);let r=Object(_.useMemo)(()=>({open:0===t}),[t]);return W({props:{...e,id:a},slot:r,defaultTag:"h2",name:"Dialog.Title"})},Description:De}),We={0:e=>({...e,disclosureState:G(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}},Ye=Object(_.createContext)(null);function Ke(e){let t=Object(_.useContext)(Ye);if(null===t){let t=new Error(`<${e} /> is missing a parent <${tt.name} /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Ke),t}return t}Ye.displayName="DisclosureContext";var Qe=Object(_.createContext)(null);function Je(e){let t=Object(_.useContext)(Qe);if(null===t){let t=new Error(`<${e} /> is missing a parent <${tt.name} /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Je),t}return t}Qe.displayName="DisclosureAPIContext";var Ze=Object(_.createContext)(null);function Xe(e,t){return G(t.type,We,e,t)}Ze.displayName="DisclosurePanelContext";var et=_.Fragment;function tt(e){let{defaultOpen:t=!1,...n}=e,a="headlessui-disclosure-button-"+H(),r="headlessui-disclosure-panel-"+H(),s=Object(_.useReducer)(Xe,{disclosureState:t?0:1,linkedPanel:!1,buttonId:a,panelId:r}),[{disclosureState:o},i]=s;Object(_.useEffect)(()=>i({type:2,buttonId:a}),[a,i]),Object(_.useEffect)(()=>i({type:3,panelId:r}),[r,i]);let l=Object(_.useCallback)(e=>{i({type:1});let t=e?e instanceof HTMLElement?e:e.current instanceof HTMLElement?e.current:document.getElementById(a):document.getElementById(a);null==t||t.focus()},[i,a]),c=Object(_.useMemo)(()=>({close:l}),[l]),u=Object(_.useMemo)(()=>({open:0===o,close:l}),[o,l]);return M.a.createElement(Ye.Provider,{value:s},M.a.createElement(Qe.Provider,{value:c},M.a.createElement(ne,{value:G(o,{0:0,1:1})},W({props:n,slot:u,defaultTag:et,name:"Disclosure"}))))}var nt=K((function(e,t){let[n,a]=Ke("Disclosure.Button"),r=Object(_.useRef)(null),s=V(r,t),o=Object(_.useContext)(Ze),i=null!==o&&o===n.panelId,l=Object(_.useCallback)(e=>{var t;if(i){if(1===n.disclosureState)return;switch(e.key){case" ":case"Enter":e.preventDefault(),e.stopPropagation(),a({type:0}),null==(t=document.getElementById(n.buttonId))||t.focus()}}else switch(e.key){case" ":case"Enter":e.preventDefault(),e.stopPropagation(),a({type:0})}},[a,i,n.disclosureState,n.buttonId]),c=Object(_.useCallback)(e=>{switch(e.key){case" ":e.preventDefault()}},[]),u=Object(_.useCallback)(t=>{var r;Z(t.currentTarget)||e.disabled||(i?(a({type:0}),null==(r=document.getElementById(n.buttonId))||r.focus()):a({type:0}))},[a,e.disabled,n.buttonId,i]),d=Object(_.useMemo)(()=>({open:0===n.disclosureState}),[n]),p=re(e,r);return W({props:{...e,...i?{ref:s,type:p,onKeyDown:l,onClick:u}:{ref:s,id:n.buttonId,type:p,"aria-expanded":e.disabled?void 0:0===n.disclosureState,"aria-controls":n.linkedPanel?n.panelId:void 0,onKeyDown:l,onKeyUp:c,onClick:u}},slot:d,defaultTag:"button",name:"Disclosure.Button"})})),at=K((function(e,t){let[n,a]=Ke("Disclosure.Panel"),{close:r}=Je("Disclosure.Panel"),s=V(t,()=>{n.linkedPanel||a({type:4})}),o=te(),i=null!==o?0===o:0===n.disclosureState;Object(_.useEffect)(()=>()=>a({type:5}),[a]),Object(_.useEffect)(()=>{var t;1===n.disclosureState&&(null==(t=e.unmount)||t)&&a({type:5})},[n.disclosureState,e.unmount,a]);let l=Object(_.useMemo)(()=>({open:0===n.disclosureState,close:r}),[n,r]),c={ref:s,id:n.panelId},u=e;return M.a.createElement(Ze.Provider,{value:n.panelId},W({props:{...u,...c},slot:l,defaultTag:"div",features:3,visible:i,name:"Disclosure.Panel"}))}));tt.Button=nt,tt.Panel=at;var rt={1:e=>e.disabled||1===e.listboxState?e:{...e,activeOptionIndex:null,listboxState:1},0:e=>e.disabled||0===e.listboxState?e:{...e,listboxState:0},2:(e,t)=>e.disabled===t.disabled?e:{...e,disabled:t.disabled},3:(e,t)=>e.orientation===t.orientation?e:{...e,orientation:t.orientation},4(e,t){if(e.disabled||1===e.listboxState)return e;let n=J(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return""===e.searchQuery&&e.activeOptionIndex===n?e:{...e,searchQuery:"",activeOptionIndex:n}},5:(e,t)=>{if(e.disabled||1===e.listboxState)return e;let n=""!==e.searchQuery?0:1,a=e.searchQuery+t.value.toLowerCase(),r=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find(e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(a))}),s=r?e.options.indexOf(r):-1;return-1===s||s===e.activeOptionIndex?{...e,searchQuery:a}:{...e,searchQuery:a,activeOptionIndex:s}},6:e=>e.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},7:(e,t)=>{var n;let a=Array.from(null==(n=e.optionsRef.current)?void 0:n.querySelectorAll('[id^="headlessui-listbox-option-"]')).reduce((e,t,n)=>Object.assign(e,{[t.id]:n}),{}),r=[...e.options,{id:t.id,dataRef:t.dataRef}].sort((e,t)=>a[e.id]-a[t.id]);return{...e,options:r}},8:(e,t)=>{let n=e.options.slice(),a=null!==e.activeOptionIndex?n[e.activeOptionIndex]:null,r=n.findIndex(e=>e.id===t.id);return-1!==r&&n.splice(r,1),{...e,options:n,activeOptionIndex:r===e.activeOptionIndex||null===a?null:n.indexOf(a)}}},st=Object(_.createContext)(null);function ot(e){let t=Object(_.useContext)(st);if(null===t){let t=new Error(`<${e} /> is missing a parent <${ct.name} /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ot),t}return t}function it(e,t){return G(t.type,rt,e,t)}st.displayName="ListboxContext";var lt=_.Fragment;function ct(e){let{value:t,onChange:n,disabled:a=!1,horizontal:r=!1,...s}=e,o=r?"horizontal":"vertical",i=Object(_.useReducer)(it,{listboxState:1,propsRef:{current:{value:t,onChange:n}},labelRef:Object(_.createRef)(),buttonRef:Object(_.createRef)(),optionsRef:Object(_.createRef)(),disabled:a,orientation:o,options:[],searchQuery:"",activeOptionIndex:null}),[{listboxState:l,propsRef:c,optionsRef:u,buttonRef:d},p]=i;D(()=>{c.current.value=t},[t,c]),D(()=>{c.current.onChange=n},[n,c]),D(()=>p({type:2,disabled:a}),[a]),D(()=>p({type:3,orientation:o}),[o]),X("mousedown",e=>{var t,n,a;let r=e.target;0===l&&((null==(t=d.current)?void 0:t.contains(r))||(null==(n=u.current)?void 0:n.contains(r))||(p({type:1}),Oe(r,1)||(e.preventDefault(),null==(a=d.current)||a.focus())))});let m=Object(_.useMemo)(()=>({open:0===l,disabled:a}),[l,a]);return M.a.createElement(st.Provider,{value:i},M.a.createElement(ne,{value:G(l,{0:0,1:1})},W({props:s,slot:m,defaultTag:lt,name:"Listbox"})))}var ut=K((function(e,t){var n;let[a,r]=ot("Listbox.Button"),s=V(a.buttonRef,t),o="headlessui-listbox-button-"+H(),i=L(),l=Object(_.useCallback)(e=>{switch(e.key){case" ":case"Enter":case"ArrowDown":e.preventDefault(),r({type:0}),i.nextFrame(()=>{a.propsRef.current.value||r({type:4,focus:0})});break;case"ArrowUp":e.preventDefault(),r({type:0}),i.nextFrame(()=>{a.propsRef.current.value||r({type:4,focus:3})})}},[r,a,i]),c=Object(_.useCallback)(e=>{switch(e.key){case" ":e.preventDefault()}},[]),u=Object(_.useCallback)(e=>{if(Z(e.currentTarget))return e.preventDefault();0===a.listboxState?(r({type:1}),i.nextFrame(()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})})):(e.preventDefault(),r({type:0}))},[r,i,a]),d=$(()=>{if(a.labelRef.current)return[a.labelRef.current.id,o].join(" ")},[a.labelRef.current,o]),p=Object(_.useMemo)(()=>({open:0===a.listboxState,disabled:a.disabled}),[a]);return W({props:{...e,ref:s,id:o,type:re(e,a.buttonRef),"aria-haspopup":!0,"aria-controls":null==(n=a.optionsRef.current)?void 0:n.id,"aria-expanded":a.disabled?void 0:0===a.listboxState,"aria-labelledby":d,disabled:a.disabled,onKeyDown:l,onKeyUp:c,onClick:u},slot:p,defaultTag:"button",name:"Listbox.Button"})})),dt=K((function(e,t){var n;let[a,r]=ot("Listbox.Options"),s=V(a.optionsRef,t),o="headlessui-listbox-options-"+H(),i=L(),l=L(),c=te(),u=null!==c?0===c:0===a.listboxState;D(()=>{let e=a.optionsRef.current;!e||0===a.listboxState&&e!==document.activeElement&&e.focus({preventScroll:!0})},[a.listboxState,a.optionsRef]);let d=Object(_.useCallback)(e=>{switch(l.dispose(),e.key){case" ":if(""!==a.searchQuery)return e.preventDefault(),e.stopPropagation(),r({type:5,value:e.key});case"Enter":if(e.preventDefault(),e.stopPropagation(),r({type:1}),null!==a.activeOptionIndex){let{dataRef:e}=a.options[a.activeOptionIndex];a.propsRef.current.onChange(e.current.value)}F().nextFrame(()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})});break;case G(a.orientation,{vertical:"ArrowDown",horizontal:"ArrowRight"}):return e.preventDefault(),e.stopPropagation(),r({type:4,focus:2});case G(a.orientation,{vertical:"ArrowUp",horizontal:"ArrowLeft"}):return e.preventDefault(),e.stopPropagation(),r({type:4,focus:1});case"Home":case"PageUp":return e.preventDefault(),e.stopPropagation(),r({type:4,focus:0});case"End":case"PageDown":return e.preventDefault(),e.stopPropagation(),r({type:4,focus:3});case"Escape":return e.preventDefault(),e.stopPropagation(),r({type:1}),i.nextFrame(()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})});case"Tab":e.preventDefault(),e.stopPropagation();break;default:1===e.key.length&&(r({type:5,value:e.key}),l.setTimeout(()=>r({type:6}),350))}},[i,r,l,a]),p=$(()=>{var e,t,n;return null!=(n=null==(e=a.labelRef.current)?void 0:e.id)?n:null==(t=a.buttonRef.current)?void 0:t.id},[a.labelRef.current,a.buttonRef.current]),m=Object(_.useMemo)(()=>({open:0===a.listboxState}),[a]);return W({props:{...e,"aria-activedescendant":null===a.activeOptionIndex||null==(n=a.options[a.activeOptionIndex])?void 0:n.id,"aria-labelledby":p,"aria-orientation":a.orientation,id:o,onKeyDown:d,role:"listbox",tabIndex:0,ref:s},slot:m,defaultTag:"ul",features:3,visible:u,name:"Listbox.Options"})}));ct.Button=ut,ct.Label=function(e){let[t]=ot("Listbox.Label"),n="headlessui-listbox-label-"+H(),a=Object(_.useCallback)(()=>{var e;return null==(e=t.buttonRef.current)?void 0:e.focus({preventScroll:!0})},[t.buttonRef]),r=Object(_.useMemo)(()=>({open:0===t.listboxState,disabled:t.disabled}),[t]);return W({props:{...e,ref:t.labelRef,id:n,onClick:a},slot:r,defaultTag:"label",name:"Listbox.Label"})},ct.Options=dt,ct.Option=function(e){let{disabled:t=!1,value:n,...a}=e,[r,s]=ot("Listbox.Option"),o="headlessui-listbox-option-"+H(),i=null!==r.activeOptionIndex&&r.options[r.activeOptionIndex].id===o,l=r.propsRef.current.value===n,c=Object(_.useRef)({disabled:t,value:n});D(()=>{c.current.disabled=t},[c,t]),D(()=>{c.current.value=n},[c,n]),D(()=>{var e,t;c.current.textValue=null==(t=null==(e=document.getElementById(o))?void 0:e.textContent)?void 0:t.toLowerCase()},[c,o]);let u=Object(_.useCallback)(()=>r.propsRef.current.onChange(n),[r.propsRef,n]);D(()=>(s({type:7,id:o,dataRef:c}),()=>s({type:8,id:o})),[c,o]),D(()=>{var e,t;0===r.listboxState&&(!l||(s({type:4,focus:4,id:o}),null==(t=null==(e=document.getElementById(o))?void 0:e.focus)||t.call(e)))},[r.listboxState]),D(()=>{if(0!==r.listboxState||!i)return;let e=F();return e.requestAnimationFrame(()=>{var e,t;null==(t=null==(e=document.getElementById(o))?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}),e.dispose},[o,i,r.listboxState,r.activeOptionIndex]);let d=Object(_.useCallback)(e=>{if(t)return e.preventDefault();u(),s({type:1}),F().nextFrame(()=>{var e;return null==(e=r.buttonRef.current)?void 0:e.focus({preventScroll:!0})})},[s,r.buttonRef,t,u]),p=Object(_.useCallback)(()=>{if(t)return s({type:4,focus:5});s({type:4,focus:4,id:o})},[t,o,s]),m=Object(_.useCallback)(()=>{t||i||s({type:4,focus:4,id:o})},[t,i,o,s]),b=Object(_.useCallback)(()=>{t||!i||s({type:4,focus:5})},[t,i,s]),f=Object(_.useMemo)(()=>({active:i,selected:l,disabled:t}),[i,l,t]);return W({props:{...a,id:o,role:"option",tabIndex:!0===t?void 0:-1,"aria-disabled":!0===t||void 0,"aria-selected":!0===l||void 0,disabled:void 0,onClick:d,onFocus:p,onPointerMove:m,onMouseMove:m,onPointerLeave:b,onMouseLeave:b},slot:f,defaultTag:"li",name:"Listbox.Option"})};var pt={1:e=>1===e.menuState?e:{...e,activeItemIndex:null,menuState:1},0:e=>0===e.menuState?e:{...e,menuState:0},2:(e,t)=>{let n=J(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return""===e.searchQuery&&e.activeItemIndex===n?e:{...e,searchQuery:"",activeItemIndex:n}},3:(e,t)=>{let n=""!==e.searchQuery?0:1,a=e.searchQuery+t.value.toLowerCase(),r=(null!==e.activeItemIndex?e.items.slice(e.activeItemIndex+n).concat(e.items.slice(0,e.activeItemIndex+n)):e.items).find(e=>{var t;return(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(a))&&!e.dataRef.current.disabled}),s=r?e.items.indexOf(r):-1;return-1===s||s===e.activeItemIndex?{...e,searchQuery:a}:{...e,searchQuery:a,activeItemIndex:s}},4:e=>""===e.searchQuery?e:{...e,searchQuery:"",searchActiveItemIndex:null},5:(e,t)=>{var n;let a=Array.from(null==(n=e.itemsRef.current)?void 0:n.querySelectorAll('[id^="headlessui-menu-item-"]')).reduce((e,t,n)=>Object.assign(e,{[t.id]:n}),{}),r=[...e.items,{id:t.id,dataRef:t.dataRef}].sort((e,t)=>a[e.id]-a[t.id]);return{...e,items:r}},6:(e,t)=>{let n=e.items.slice(),a=null!==e.activeItemIndex?n[e.activeItemIndex]:null,r=n.findIndex(e=>e.id===t.id);return-1!==r&&n.splice(r,1),{...e,items:n,activeItemIndex:r===e.activeItemIndex||null===a?null:n.indexOf(a)}}},mt=Object(_.createContext)(null);function bt(e){let t=Object(_.useContext)(mt);if(null===t){let t=new Error(`<${e} /> is missing a parent <${ht.name} /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,bt),t}return t}function ft(e,t){return G(t.type,pt,e,t)}mt.displayName="MenuContext";var yt=_.Fragment;function ht(e){let t=Object(_.useReducer)(ft,{menuState:1,buttonRef:Object(_.createRef)(),itemsRef:Object(_.createRef)(),items:[],searchQuery:"",activeItemIndex:null}),[{menuState:n,itemsRef:a,buttonRef:r},s]=t;X("mousedown",e=>{var t,o,i;let l=e.target;0===n&&((null==(t=r.current)?void 0:t.contains(l))||(null==(o=a.current)?void 0:o.contains(l))||(s({type:1}),Oe(l,1)||(e.preventDefault(),null==(i=r.current)||i.focus())))});let o=Object(_.useMemo)(()=>({open:0===n}),[n]);return M.a.createElement(mt.Provider,{value:t},M.a.createElement(ne,{value:G(n,{0:0,1:1})},W({props:e,slot:o,defaultTag:yt,name:"Menu"})))}var gt=K((function(e,t){var n;let[a,r]=bt("Menu.Button"),s=V(a.buttonRef,t),o="headlessui-menu-button-"+H(),i=L(),l=Object(_.useCallback)(e=>{switch(e.key){case" ":case"Enter":case"ArrowDown":e.preventDefault(),e.stopPropagation(),r({type:0}),i.nextFrame(()=>r({type:2,focus:0}));break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),r({type:0}),i.nextFrame(()=>r({type:2,focus:3}))}},[r,i]),c=Object(_.useCallback)(e=>{switch(e.key){case" ":e.preventDefault()}},[]),u=Object(_.useCallback)(t=>{if(Z(t.currentTarget))return t.preventDefault();e.disabled||(0===a.menuState?(r({type:1}),i.nextFrame(()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})})):(t.preventDefault(),t.stopPropagation(),r({type:0})))},[r,i,a,e.disabled]),d=Object(_.useMemo)(()=>({open:0===a.menuState}),[a]);return W({props:{...e,ref:s,id:o,type:re(e,a.buttonRef),"aria-haspopup":!0,"aria-controls":null==(n=a.itemsRef.current)?void 0:n.id,"aria-expanded":e.disabled?void 0:0===a.menuState,onKeyDown:l,onKeyUp:c,onClick:u},slot:d,defaultTag:"button",name:"Menu.Button"})})),vt=K((function(e,t){var n,a;let[r,s]=bt("Menu.Items"),o=V(r.itemsRef,t),i="headlessui-menu-items-"+H(),l=L(),c=te(),u=null!==c?0===c:0===r.menuState;Object(_.useEffect)(()=>{let e=r.itemsRef.current;!e||0===r.menuState&&e!==document.activeElement&&e.focus({preventScroll:!0})},[r.menuState,r.itemsRef]),se({container:r.itemsRef.current,enabled:0===r.menuState,accept:e=>"menuitem"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let d=Object(_.useCallback)(e=>{var t;switch(l.dispose(),e.key){case" ":if(""!==r.searchQuery)return e.preventDefault(),e.stopPropagation(),s({type:3,value:e.key});case"Enter":if(e.preventDefault(),e.stopPropagation(),s({type:1}),null!==r.activeItemIndex){let{id:e}=r.items[r.activeItemIndex];null==(t=document.getElementById(e))||t.click()}F().nextFrame(()=>{var e;return null==(e=r.buttonRef.current)?void 0:e.focus({preventScroll:!0})});break;case"ArrowDown":return e.preventDefault(),e.stopPropagation(),s({type:2,focus:2});case"ArrowUp":return e.preventDefault(),e.stopPropagation(),s({type:2,focus:1});case"Home":case"PageUp":return e.preventDefault(),e.stopPropagation(),s({type:2,focus:0});case"End":case"PageDown":return e.preventDefault(),e.stopPropagation(),s({type:2,focus:3});case"Escape":e.preventDefault(),e.stopPropagation(),s({type:1}),F().nextFrame(()=>{var e;return null==(e=r.buttonRef.current)?void 0:e.focus({preventScroll:!0})});break;case"Tab":e.preventDefault(),e.stopPropagation();break;default:1===e.key.length&&(s({type:3,value:e.key}),l.setTimeout(()=>s({type:4}),350))}},[s,l,r]),p=Object(_.useCallback)(e=>{switch(e.key){case" ":e.preventDefault()}},[]),m=Object(_.useMemo)(()=>({open:0===r.menuState}),[r]);return W({props:{...e,"aria-activedescendant":null===r.activeItemIndex||null==(n=r.items[r.activeItemIndex])?void 0:n.id,"aria-labelledby":null==(a=r.buttonRef.current)?void 0:a.id,id:i,onKeyDown:d,onKeyUp:p,role:"menu",tabIndex:0,ref:o},slot:m,defaultTag:"div",features:3,visible:u,name:"Menu.Items"})})),Ot=_.Fragment;ht.Button=gt,ht.Items=vt,ht.Item=function(e){let{disabled:t=!1,onClick:n,...a}=e,[r,s]=bt("Menu.Item"),o="headlessui-menu-item-"+H(),i=null!==r.activeItemIndex&&r.items[r.activeItemIndex].id===o;D(()=>{if(0!==r.menuState||!i)return;let e=F();return e.requestAnimationFrame(()=>{var e,t;null==(t=null==(e=document.getElementById(o))?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}),e.dispose},[o,i,r.menuState,r.activeItemIndex]);let l=Object(_.useRef)({disabled:t});D(()=>{l.current.disabled=t},[l,t]),D(()=>{var e,t;l.current.textValue=null==(t=null==(e=document.getElementById(o))?void 0:e.textContent)?void 0:t.toLowerCase()},[l,o]),D(()=>(s({type:5,id:o,dataRef:l}),()=>s({type:6,id:o})),[l,o]);let c=Object(_.useCallback)(e=>t?e.preventDefault():(s({type:1}),F().nextFrame(()=>{var e;return null==(e=r.buttonRef.current)?void 0:e.focus({preventScroll:!0})}),n?n(e):void 0),[s,r.buttonRef,t,n]),u=Object(_.useCallback)(()=>{if(t)return s({type:2,focus:5});s({type:2,focus:4,id:o})},[t,o,s]),d=Object(_.useCallback)(()=>{t||i||s({type:2,focus:4,id:o})},[t,i,o,s]),p=Object(_.useCallback)(()=>{t||!i||s({type:2,focus:5})},[t,i,s]),m=Object(_.useMemo)(()=>({active:i,disabled:t}),[i,t]);return W({props:{...a,id:o,role:"menuitem",tabIndex:!0===t?void 0:-1,"aria-disabled":!0===t||void 0,disabled:void 0,onClick:c,onFocus:u,onPointerMove:d,onMouseMove:d,onPointerLeave:p,onMouseLeave:p},slot:m,defaultTag:Ot,name:"Menu.Item"})};var Et={0:e=>({...e,popoverState:G(e.popoverState,{0:1,1:0})}),1:e=>1===e.popoverState?e:{...e,popoverState:1},2:(e,t)=>e.button===t.button?e:{...e,button:t.button},3:(e,t)=>e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId},4:(e,t)=>e.panel===t.panel?e:{...e,panel:t.panel},5:(e,t)=>e.panelId===t.panelId?e:{...e,panelId:t.panelId}},wt=Object(_.createContext)(null);function jt(e){let t=Object(_.useContext)(wt);if(null===t){let t=new Error(`<${e} /> is missing a parent <${It.name} /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,jt),t}return t}wt.displayName="PopoverContext";var xt=Object(_.createContext)(null);function Ct(e){let t=Object(_.useContext)(xt);if(null===t){let t=new Error(`<${e} /> is missing a parent <${It.name} /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Ct),t}return t}xt.displayName="PopoverAPIContext";var St=Object(_.createContext)(null);function kt(){return Object(_.useContext)(St)}St.displayName="PopoverGroupContext";var Rt=Object(_.createContext)(null);function Pt(e,t){return G(t.type,Et,e,t)}function It(e){let t="headlessui-popover-button-"+H(),n="headlessui-popover-panel-"+H(),a=Object(_.useReducer)(Pt,{popoverState:1,button:null,buttonId:t,panel:null,panelId:n}),[{popoverState:r,button:s,panel:o},i]=a;Object(_.useEffect)(()=>i({type:3,buttonId:t}),[t,i]),Object(_.useEffect)(()=>i({type:5,panelId:n}),[n,i]);let l=Object(_.useMemo)(()=>({buttonId:t,panelId:n,close:()=>i({type:1})}),[t,n,i]),c=kt(),u=null==c?void 0:c.registerPopover,d=Object(_.useCallback)(()=>{var e;return null!=(e=null==c?void 0:c.isFocusWithinPopoverGroup())?e:(null==s?void 0:s.contains(document.activeElement))||(null==o?void 0:o.contains(document.activeElement))},[c,s,o]);Object(_.useEffect)(()=>null==u?void 0:u(l),[u,l]),X("focus",()=>{0===r&&(d()||!s||!o||i({type:1}))},!0),X("mousedown",e=>{let t=e.target;0===r&&((null==s?void 0:s.contains(t))||(null==o?void 0:o.contains(t))||(i({type:1}),Oe(t,1)||(e.preventDefault(),null==s||s.focus())))});let p=Object(_.useCallback)(e=>{i({type:1});let t=e?e instanceof HTMLElement?e:e.current instanceof HTMLElement?e.current:s:s;null==t||t.focus()},[i,s]),m=Object(_.useMemo)(()=>({close:p}),[p]),b=Object(_.useMemo)(()=>({open:0===r,close:p}),[r,p]);return M.a.createElement(wt.Provider,{value:a},M.a.createElement(xt.Provider,{value:m},M.a.createElement(ne,{value:G(r,{0:0,1:1})},W({props:e,slot:b,defaultTag:"div",name:"Popover"}))))}Rt.displayName="PopoverPanelContext";var Tt=K((function(e,t){let[n,a]=jt("Popover.Button"),r=Object(_.useRef)(null),s=kt(),o=null==s?void 0:s.closeOthers,i=Object(_.useContext)(Rt),l=null!==i&&i===n.panelId,c=V(r,t,l?null:e=>a({type:2,button:e})),u=V(r,t),d=Object(_.useRef)(null),p=Object(_.useRef)("undefined"==typeof window?null:document.activeElement);X("focus",()=>{p.current=d.current,d.current=document.activeElement},!0);let m=Object(_.useCallback)(e=>{var t,s;if(l){if(1===n.popoverState)return;switch(e.key){case" ":case"Enter":e.preventDefault(),e.stopPropagation(),a({type:1}),null==(t=n.button)||t.focus()}}else switch(e.key){case" ":case"Enter":e.preventDefault(),e.stopPropagation(),1===n.popoverState&&(null==o||o(n.buttonId)),a({type:0});break;case"Escape":if(0!==n.popoverState)return null==o?void 0:o(n.buttonId);if(!r.current||!r.current.contains(document.activeElement))return;e.preventDefault(),e.stopPropagation(),a({type:1});break;case"Tab":if(0!==n.popoverState||!n.panel||!n.button)return;if(e.shiftKey){if(!p.current||(null==(s=n.button)?void 0:s.contains(p.current))||n.panel.contains(p.current))return;let t=ve(),a=t.indexOf(p.current);if(t.indexOf(n.button)>a)return;e.preventDefault(),e.stopPropagation(),we(n.panel,8)}else e.preventDefault(),e.stopPropagation(),we(n.panel,1)}},[a,n.popoverState,n.buttonId,n.button,n.panel,r,o,l]),b=Object(_.useCallback)(e=>{var t;if(!l&&(" "===e.key&&e.preventDefault(),0===n.popoverState&&n.panel&&n.button))switch(e.key){case"Tab":if(!p.current||(null==(t=n.button)?void 0:t.contains(p.current))||n.panel.contains(p.current))return;let a=ve(),r=a.indexOf(p.current);if(a.indexOf(n.button)>r)return;e.preventDefault(),e.stopPropagation(),we(n.panel,8)}},[n.popoverState,n.panel,n.button,l]),f=Object(_.useCallback)(t=>{var r,s;Z(t.currentTarget)||e.disabled||(l?(a({type:1}),null==(r=n.button)||r.focus()):(1===n.popoverState&&(null==o||o(n.buttonId)),null==(s=n.button)||s.focus(),a({type:0})))},[a,n.button,n.popoverState,n.buttonId,e.disabled,o,l]),y=Object(_.useMemo)(()=>({open:0===n.popoverState}),[n]),h=re(e,r);return W({props:{...e,...l?{ref:u,type:h,onKeyDown:m,onClick:f}:{ref:c,id:n.buttonId,type:h,"aria-expanded":e.disabled?void 0:0===n.popoverState,"aria-controls":n.panel?n.panelId:void 0,onKeyDown:m,onKeyUp:b,onClick:f}},slot:y,defaultTag:"button",name:"Popover.Button"})})),_t=K((function(e,t){let[{popoverState:n},a]=jt("Popover.Overlay"),r=V(t),s="headlessui-popover-overlay-"+H(),o=te(),i=null!==o?0===o:0===n;return W({props:{...e,ref:r,id:s,"aria-hidden":!0,onClick:Object(_.useCallback)(e=>{if(Z(e.currentTarget))return e.preventDefault();a({type:1})},[a])},slot:Object(_.useMemo)(()=>({open:0===n}),[n]),defaultTag:"div",features:3,visible:i,name:"Popover.Overlay"})})),Mt=K((function(e,t){let{focus:n=!1,...a}=e,[r,s]=jt("Popover.Panel"),{close:o}=Ct("Popover.Panel"),i=Object(_.useRef)(null),l=V(i,t,e=>{s({type:4,panel:e})}),c=te(),u=null!==c?0===c:0===r.popoverState,d=Object(_.useCallback)(e=>{var t;switch(e.key){case"Escape":if(0!==r.popoverState||!i.current||!i.current.contains(document.activeElement))return;e.preventDefault(),e.stopPropagation(),s({type:1}),null==(t=r.button)||t.focus()}},[r,i,s]);Object(_.useEffect)(()=>()=>s({type:4,panel:null}),[s]),Object(_.useEffect)(()=>{var t;e.static||1===r.popoverState&&(null==(t=e.unmount)||t)&&s({type:4,panel:null})},[r.popoverState,e.unmount,e.static,s]),Object(_.useEffect)(()=>{if(!n||0!==r.popoverState||!i.current)return;let e=document.activeElement;i.current.contains(e)||we(i.current,1)},[n,i,r.popoverState]),X("keydown",e=>{var t;if(!(0===r.popoverState&&i.current&&"Tab"===e.key&&document.activeElement&&i.current&&i.current.contains(document.activeElement)))return;e.preventDefault();let n=we(i.current,e.shiftKey?2:4);if(3===n)return null==(t=r.button)?void 0:t.focus();if(1===n){if(!r.button)return;let e=ve(),t=e.indexOf(r.button);0===we(e.splice(t+1).filter(e=>{var t;return!(null==(t=i.current)?void 0:t.contains(e))}),1)&&we(document.body,1)}}),X("focus",()=>{var e;!n||0===r.popoverState&&(!i.current||(null==(e=i.current)?void 0:e.contains(document.activeElement))||s({type:1}))},!0);let p=Object(_.useMemo)(()=>({open:0===r.popoverState,close:o}),[r,o]),m={ref:l,id:r.panelId,onKeyDown:d};return M.a.createElement(Rt.Provider,{value:r.panelId},W({props:{...a,...m},slot:p,defaultTag:"div",features:3,visible:u,name:"Popover.Panel"}))}));It.Button=Tt,It.Overlay=_t,It.Panel=Mt,It.Group=function(e){let t=Object(_.useRef)(null),[n,a]=Object(_.useState)([]),r=Object(_.useCallback)(e=>{a(t=>{let n=t.indexOf(e);if(-1!==n){let e=t.slice();return e.splice(n,1),e}return t})},[a]),s=Object(_.useCallback)(e=>(a(t=>[...t,e]),()=>r(e)),[a,r]),o=Object(_.useCallback)(()=>{var e;let a=document.activeElement;return!!(null==(e=t.current)?void 0:e.contains(a))||n.some(e=>{var t,n;return(null==(t=document.getElementById(e.buttonId))?void 0:t.contains(a))||(null==(n=document.getElementById(e.panelId))?void 0:n.contains(a))})},[t,n]),i=Object(_.useCallback)(e=>{for(let t of n)t.buttonId!==e&&t.close()},[n]),l=Object(_.useMemo)(()=>({registerPopover:s,unregisterPopover:r,isFocusWithinPopoverGroup:o,closeOthers:i}),[s,r,o,i]),c=Object(_.useMemo)(()=>({}),[]),u={ref:t},d=e;return M.a.createElement(St.Provider,{value:l},W({props:{...d,...u},slot:c,defaultTag:"div",name:"Popover.Group"}))};var Nt=Object(_.createContext)(null);function Ft(){let e=Object(_.useContext)(Nt);if(null===e){let e=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,Ft),e}return e}function Lt(){let[e,t]=Object(_.useState)([]);return[e.length>0?e.join(" "):void 0,Object(_.useMemo)(()=>function(e){let n=Object(_.useCallback)(e=>(t(t=>[...t,e]),()=>t(t=>{let n=t.slice(),a=n.indexOf(e);return-1!==a&&n.splice(a,1),n})),[]),a=Object(_.useMemo)(()=>({register:n,slot:e.slot,name:e.name,props:e.props}),[n,e.slot,e.name,e.props]);return M.a.createElement(Nt.Provider,{value:a},e.children)},[t])]}function Dt(e){let{passive:t=!1,...n}=e,a=Ft(),r="headlessui-label-"+H();D(()=>a.register(r),[r,a.register]);let s={...n,...a.props,id:r};return t&&delete s.onClick,W({props:s,slot:a.slot||{},defaultTag:"label",name:a.name||"Label"})}var At={0:(e,t)=>({...e,options:[...e.options,{id:t.id,element:t.element,propsRef:t.propsRef}]}),1(e,t){let n=e.options.slice(),a=e.options.findIndex(e=>e.id===t.id);return-1===a?e:(n.splice(a,1),{...e,options:n})}},zt=Object(_.createContext)(null);function qt(e){let t=Object(_.useContext)(zt);if(null===t){let t=new Error(`<${e} /> is missing a parent <${Ht.name} /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,qt),t}return t}function Ut(e,t){return G(t.type,At,e,t)}function Ht(e){let{value:t,onChange:n,disabled:a=!1,...r}=e,[{options:s},o]=Object(_.useReducer)(Ut,{options:[]}),[i,l]=Lt(),[c,u]=Le(),d="headlessui-radiogroup-"+H(),p=Object(_.useRef)(null),m=Object(_.useMemo)(()=>s.find(e=>!e.propsRef.current.disabled),[s]),b=Object(_.useMemo)(()=>s.some(e=>e.propsRef.current.value===t),[s,t]),f=Object(_.useCallback)(e=>{var r;if(a||e===t)return!1;let o=null==(r=s.find(t=>t.propsRef.current.value===e))?void 0:r.propsRef.current;return!(null==o?void 0:o.disabled)&&(n(e),!0)},[n,t,a,s]);se({container:p.current,accept:e=>"radio"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let y=Object(_.useCallback)(e=>{if(!p.current)return;let t=s.filter(e=>!1===e.propsRef.current.disabled).map(e=>e.element.current);switch(e.key){case"ArrowLeft":case"ArrowUp":if(e.preventDefault(),e.stopPropagation(),2===we(t,18)){let e=s.find(e=>e.element.current===document.activeElement);e&&f(e.propsRef.current.value)}break;case"ArrowRight":case"ArrowDown":if(e.preventDefault(),e.stopPropagation(),2===we(t,20)){let e=s.find(e=>e.element.current===document.activeElement);e&&f(e.propsRef.current.value)}break;case" ":{e.preventDefault(),e.stopPropagation();let t=s.find(e=>e.element.current===document.activeElement);t&&f(t.propsRef.current.value)}}},[p,s,f]),h=Object(_.useCallback)(e=>(o({type:0,...e}),()=>o({type:1,id:e.id})),[o]),g=Object(_.useMemo)(()=>({registerOption:h,firstOption:m,containsCheckedOption:b,change:f,disabled:a,value:t}),[h,m,b,f,a,t]),v={ref:p,id:d,role:"radiogroup","aria-labelledby":i,"aria-describedby":c,onKeyDown:y};return M.a.createElement(u,{name:"RadioGroup.Description"},M.a.createElement(l,{name:"RadioGroup.Label"},M.a.createElement(zt.Provider,{value:g},W({props:{...r,...v},defaultTag:"div",name:"RadioGroup"}))))}zt.displayName="RadioGroupContext",Ht.Option=function(e){let t=Object(_.useRef)(null),n="headlessui-radiogroup-option-"+H(),[a,r]=Lt(),[s,o]=Le(),{addFlag:i,removeFlag:l,hasFlag:c}=function(e=0){let[t,n]=Object(_.useState)(e);return{addFlag:Object(_.useCallback)(e=>n(t=>t|e),[n]),hasFlag:Object(_.useCallback)(e=>Boolean(t&e),[t]),removeFlag:Object(_.useCallback)(e=>n(t=>t&~e),[n]),toggleFlag:Object(_.useCallback)(e=>n(t=>t^e),[n])}}(1),{value:u,disabled:d=!1,...p}=e,m=Object(_.useRef)({value:u,disabled:d});D(()=>{m.current.value=u},[u,m]),D(()=>{m.current.disabled=d},[d,m]);let{registerOption:b,disabled:f,change:y,firstOption:h,containsCheckedOption:g,value:v}=qt("RadioGroup.Option");D(()=>b({id:n,element:t,propsRef:m}),[n,b,t,e]);let O=Object(_.useCallback)(()=>{var e;!y(u)||(i(2),null==(e=t.current)||e.focus())},[i,y,u]),E=Object(_.useCallback)(()=>i(2),[i]),w=Object(_.useCallback)(()=>l(2),[l]),j=(null==h?void 0:h.id)===n,x=f||d,C=v===u,S={ref:t,id:n,role:"radio","aria-checked":C?"true":"false","aria-labelledby":a,"aria-describedby":s,"aria-disabled":!!x||void 0,tabIndex:x?-1:C||!g&&j?0:-1,onClick:x?void 0:O,onFocus:x?void 0:E,onBlur:x?void 0:w},k=Object(_.useMemo)(()=>({checked:C,disabled:x,active:c(2)}),[C,x,c]);return M.a.createElement(o,{name:"RadioGroup.Description"},M.a.createElement(r,{name:"RadioGroup.Label"},W({props:{...p,...S},slot:k,defaultTag:"div",name:"RadioGroup.Option"})))},Ht.Label=Dt,Ht.Description=De;var Bt=Object(_.createContext)(null);Bt.displayName="GroupContext";var $t=_.Fragment;function Vt(e){let{checked:t,onChange:n,...a}=e,r="headlessui-switch-"+H(),s=Object(_.useContext)(Bt),o=Object(_.useRef)(null),i=V(o,null===s?null:s.setSwitch),l=Object(_.useCallback)(()=>n(!t),[n,t]),c=Object(_.useCallback)(e=>{if(Z(e.currentTarget))return e.preventDefault();e.preventDefault(),l()},[l]),u=Object(_.useCallback)(e=>{"Tab"!==e.key&&e.preventDefault()," "===e.key&&l()},[l]),d=Object(_.useCallback)(e=>e.preventDefault(),[]),p=Object(_.useMemo)(()=>({checked:t}),[t]);return W({props:{...a,id:r,ref:i,role:"switch",type:re(e,o),tabIndex:0,"aria-checked":t,"aria-labelledby":null==s?void 0:s.labelledby,"aria-describedby":null==s?void 0:s.describedby,onClick:c,onKeyUp:u,onKeyPress:d},slot:p,defaultTag:"button",name:"Switch"})}Vt.Group=function(e){let[t,n]=Object(_.useState)(null),[a,r]=Lt(),[s,o]=Le(),i=Object(_.useMemo)(()=>({switch:t,setSwitch:n,labelledby:a,describedby:s}),[t,n,a,s]);return M.a.createElement(o,{name:"Switch.Description"},M.a.createElement(r,{name:"Switch.Label",props:{onClick(){!t||(t.click(),t.focus({preventScroll:!0}))}}},M.a.createElement(Bt.Provider,{value:i},W({props:e,defaultTag:$t,name:"Switch.Group"}))))},Vt.Label=Dt,Vt.Description=De;var Gt={0:(e,t)=>e.selectedIndex===t.index?e:{...e,selectedIndex:t.index},1:(e,t)=>e.orientation===t.orientation?e:{...e,orientation:t.orientation},2:(e,t)=>e.activation===t.activation?e:{...e,activation:t.activation},3:(e,t)=>e.tabs.includes(t.tab)?e:{...e,tabs:[...e.tabs,t.tab]},4:(e,t)=>({...e,tabs:e.tabs.filter(e=>e!==t.tab)}),5:(e,t)=>e.panels.includes(t.panel)?e:{...e,panels:[...e.panels,t.panel]},6:(e,t)=>({...e,panels:e.panels.filter(e=>e!==t.panel)}),7:e=>({...e})},Wt=Object(_.createContext)(null);function Yt(e){let t=Object(_.useContext)(Wt);if(null===t){let t=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Yt),t}return t}function Kt(e,t){return G(t.type,Gt,e,t)}Wt.displayName="TabsContext";var Qt=_.Fragment;function Jt(e){var t,n;let a="headlessui-tabs-tab-"+H(),[{selectedIndex:r,tabs:s,panels:o,orientation:i,activation:l},{dispatch:c,change:u}]=Yt(Jt.name),d=Object(_.useRef)(null),p=V(d,e=>{!e||c({type:7})});D(()=>(c({type:3,tab:d}),()=>c({type:4,tab:d})),[c,d]);let m=s.indexOf(d),b=m===r,f=Object(_.useCallback)(e=>{let t=s.map(e=>e.current).filter(Boolean);if(" "===e.key||"Enter"===e.key)return e.preventDefault(),e.stopPropagation(),void u(m);switch(e.key){case"Home":case"PageUp":return e.preventDefault(),e.stopPropagation(),we(t,1);case"End":case"PageDown":return e.preventDefault(),e.stopPropagation(),we(t,8)}return G(i,{vertical:()=>"ArrowUp"===e.key?we(t,18):"ArrowDown"===e.key?we(t,20):void 0,horizontal:()=>"ArrowLeft"===e.key?we(t,18):"ArrowRight"===e.key?we(t,20):void 0})},[s,i,m,u]),y=Object(_.useCallback)(()=>{var e;null==(e=d.current)||e.focus()},[d]),h=Object(_.useCallback)(()=>{var e;null==(e=d.current)||e.focus(),u(m)},[u,m,d]),g=Object(_.useMemo)(()=>({selected:b}),[b]),v={ref:p,onKeyDown:f,onFocus:"manual"===l?y:h,onClick:h,id:a,role:"tab",type:re(e,d),"aria-controls":null==(n=null==(t=o[m])?void 0:t.current)?void 0:n.id,"aria-selected":b,tabIndex:b?0:-1};return W({props:{...e,...v},slot:g,defaultTag:"button",name:"Tabs.Tab"})}function Zt(e,...t){e&&t.length>0&&e.classList.add(...t)}function Xt(e,...t){e&&t.length>0&&e.classList.remove(...t)}function en(e,t,n,a,r,s){let o=F(),i=void 0!==s?function(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}(s):()=>{};return Xt(e,...r),Zt(e,...t,...n),o.nextFrame(()=>{Xt(e,...n),Zt(e,...a),o.add(function(e,t){let n=F();if(!e)return n.dispose;let{transitionDuration:a,transitionDelay:r}=getComputedStyle(e),[s,o]=[a,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});return 0!==s?n.setTimeout(()=>{t("finished")},s+o):t("finished"),n.add(()=>t("cancelled")),n.dispose}(e,n=>(Xt(e,...a,...t),Zt(e,...r),i(n))))}),o.add(()=>Xt(e,...t,...n,...a,...r)),o.add(()=>i("cancelled")),o.dispose}function tn(e=""){return Object(_.useMemo)(()=>e.split(" ").filter(e=>e.trim().length>1),[e])}Jt.Group=function(e){let{defaultIndex:t=0,vertical:n=!1,manual:a=!1,onChange:r,selectedIndex:s=null,...o}=e,i=n?"vertical":"horizontal",l=a?"manual":"auto",[c,u]=Object(_.useReducer)(Kt,{selectedIndex:null,tabs:[],panels:[],orientation:i,activation:l}),d=Object(_.useMemo)(()=>({selectedIndex:c.selectedIndex}),[c.selectedIndex]),p=Object(_.useRef)(()=>{});Object(_.useEffect)(()=>{u({type:1,orientation:i})},[i]),Object(_.useEffect)(()=>{u({type:2,activation:l})},[l]),Object(_.useEffect)(()=>{"function"==typeof r&&(p.current=r)},[r]),Object(_.useEffect)(()=>{if(c.tabs.length<=0||null===s&&null!==c.selectedIndex)return;let e=c.tabs.map(e=>e.current).filter(Boolean),n=e.filter(e=>!e.hasAttribute("disabled")),a=null!=s?s:t;if(a<0)u({type:0,index:e.indexOf(n[0])});else if(a>c.tabs.length)u({type:0,index:e.indexOf(n[n.length-1])});else{let t=e.slice(0,a),r=[...e.slice(a),...t].find(e=>n.includes(e));if(!r)return;u({type:0,index:e.indexOf(r)})}},[t,s,c.tabs,c.selectedIndex]);let m=Object(_.useRef)(c.selectedIndex);Object(_.useEffect)(()=>{m.current=c.selectedIndex},[c.selectedIndex]);let b=Object(_.useMemo)(()=>[c,{dispatch:u,change(e){m.current!==e&&p.current(e),m.current=e,u({type:0,index:e})}}],[c,u]);return M.a.createElement(Wt.Provider,{value:b},W({props:{...o},slot:d,defaultTag:Qt,name:"Tabs"}))},Jt.List=function(e){let[{selectedIndex:t,orientation:n}]=Yt("Tab.List");return W({props:{...e,role:"tablist","aria-orientation":n},slot:{selectedIndex:t},defaultTag:"div",name:"Tabs.List"})},Jt.Panels=function(e){let[{selectedIndex:t}]=Yt("Tab.Panels");return W({props:e,slot:Object(_.useMemo)(()=>({selectedIndex:t}),[t]),defaultTag:"div",name:"Tabs.Panels"})},Jt.Panel=function(e){var t,n;let[{selectedIndex:a,tabs:r,panels:s},{dispatch:o}]=Yt("Tab.Panel"),i="headlessui-tabs-panel-"+H(),l=Object(_.useRef)(null),c=V(l,e=>{!e||o({type:7})});D(()=>(o({type:5,panel:l}),()=>o({type:6,panel:l})),[o,l]);let u=s.indexOf(l),d=u===a,p=Object(_.useMemo)(()=>({selected:d}),[d]);return W({props:{...e,ref:c,id:i,role:"tabpanel","aria-labelledby":null==(n=null==(t=r[u])?void 0:t.current)?void 0:n.id,tabIndex:d?0:-1},slot:p,defaultTag:"div",features:3,visible:d,name:"Tabs.Panel"})};var nn=Object(_.createContext)(null);nn.displayName="TransitionContext";var an=Object(_.createContext)(null);function rn(e){return"children"in e?rn(e.children):e.current.filter(({state:e})=>"visible"===e).length>0}function sn(e){let t=Object(_.useRef)(e),n=Object(_.useRef)([]),a=je();Object(_.useEffect)(()=>{t.current=e},[e]);let r=Object(_.useCallback)((e,r=1)=>{var s;let o=n.current.findIndex(({id:t})=>t===e);-1!==o&&(G(r,{0(){n.current.splice(o,1)},1(){n.current[o].state="hidden"}}),!rn(n)&&a.current&&(null==(s=t.current)||s.call(t)))},[t,a,n]),s=Object(_.useCallback)(e=>{let t=n.current.find(({id:t})=>t===e);return t?"visible"!==t.state&&(t.state="visible"):n.current.push({id:e,state:"visible"}),()=>r(e,0)},[n,r]);return Object(_.useMemo)(()=>({children:n,register:s,unregister:r}),[s,r,n])}function on(){}an.displayName="NestingContext";var ln=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function cn(e){var t;let n={};for(let a of ln)n[a]=null!=(t=e[a])?t:on;return n}function un(e){let{beforeEnter:t,afterEnter:n,beforeLeave:a,afterLeave:r,enter:s,enterFrom:o,enterTo:i,entered:l,leave:c,leaveFrom:u,leaveTo:d,...p}=e,m=Object(_.useRef)(null),[b,f]=Object(_.useState)("visible"),y=p.unmount?0:1,{show:h,appear:g,initial:v}=function(){let e=Object(_.useContext)(nn);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:O,unregister:E}=function(){let e=Object(_.useContext)(an);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),w=H(),j=Object(_.useRef)(!1),x=sn(()=>{j.current||(f("hidden"),E(w),N.current.afterLeave())});D(()=>{if(w)return O(w)},[O,w]),D(()=>{if(1===y&&w){if(h&&"visible"!==b)return void f("visible");G(b,{hidden:()=>E(w),visible:()=>O(w)})}},[b,w,O,E,h,y]);let C=tn(s),S=tn(o),k=tn(i),R=tn(l),P=tn(c),I=tn(u),T=tn(d),N=function(e){let t=Object(_.useRef)(cn(e));return Object(_.useEffect)(()=>{t.current=cn(e)},[e]),t}({beforeEnter:t,afterEnter:n,beforeLeave:a,afterLeave:r}),F=z();Object(_.useEffect)(()=>{if(F&&"visible"===b&&null===m.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[m,b,F]);let L=v&&!g;D(()=>{let e=m.current;if(e&&!L)return j.current=!0,h&&N.current.beforeEnter(),h||N.current.beforeLeave(),h?en(e,C,S,k,R,e=>{j.current=!1,"finished"===e&&N.current.afterEnter()}):en(e,P,I,T,R,e=>{j.current=!1,"finished"===e&&(rn(x)||(f("hidden"),E(w),N.current.afterLeave()))})},[N,w,j,E,x,m,L,h,C,S,k,P,I,T]);let A={ref:m},q=p;return M.a.createElement(an.Provider,{value:x},M.a.createElement(ne,{value:G(b,{visible:0,hidden:1})},W({props:{...q,...A},defaultTag:"div",features:1,visible:"visible"===b,name:"Transition.Child"})))}function dn(e){let{show:t,appear:n=!1,unmount:a,...r}=e,s=te();if(void 0===t&&null!==s&&(t=G(s,{0:!0,1:!1})),![!0,!1].includes(t))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[o,i]=Object(_.useState)(t?"visible":"hidden"),l=sn(()=>{i("hidden")}),c=function(){let e=Object(_.useRef)(!0);return Object(_.useEffect)(()=>{e.current=!1},[]),e.current}(),u=Object(_.useMemo)(()=>({show:t,appear:n||!c,initial:c}),[t,n,c]);Object(_.useEffect)(()=>{t?i("visible"):rn(l)||i("hidden")},[t,l]);let d={unmount:a};return M.a.createElement(an.Provider,{value:l},M.a.createElement(nn.Provider,{value:u},W({props:{...d,as:_.Fragment,children:M.a.createElement(un,{...d,...r})},defaultTag:_.Fragment,features:1,visible:"visible"===o,name:"Transition"})))}dn.Child=function(e){let t=null!==Object(_.useContext)(nn),n=null!==te();return!t&&n?M.a.createElement(dn,{...e}):M.a.createElement(un,{...e})},dn.Root=dn;var pn=n(101),mn=n.n(pn),bn=n(155),fn=n(106);function yn(e){let{title:t,value:n}=e;return n?Object(a.createElement)("p",null,Object(a.createElement)("strong",null,t),Object(a.createElement)("br",null),n):null}function hn(e){let{title:t,value:n}=e;return n?Object(a.createElement)("details",null,Object(a.createElement)("summary",null,t),Object(a.createElement)("pre",{className:"yst-overflow-x-scroll yst-max-w-[500px] yst-border-px yst-p-4"},n)):null}function gn(e){let{message:t,error:n,className:r}=e;return Object(a.createElement)(y.b,{type:"error",className:r},Object(a.createElement)("div",{dangerouslySetInnerHTML:{__html:t}}),Object(a.createElement)("details",null,Object(a.createElement)("summary",null,Object(u.__)("Error details","wordpress-seo")),Object(a.createElement)("div",{className:"yst-mt-2"},Object(a.createElement)(yn,{title:Object(u.__)("Request URL","wordpress-seo"),value:n.url}),Object(a.createElement)(yn,{title:Object(u.__)("Request method","wordpress-seo"),value:n.method}),Object(a.createElement)(yn,{title:Object(u.__)("Status code","wordpress-seo"),value:n.statusCode}),Object(a.createElement)(yn,{title:Object(u.__)("Error message","wordpress-seo"),value:n.message}),Object(a.createElement)(hn,{title:Object(u.__)("Response","wordpress-seo"),value:n.parseString}),Object(a.createElement)(hn,{title:Object(u.__)("Error stack trace","wordpress-seo"),value:n.stackTrace}))))}yn.propTypes={title:b.a.string.isRequired,value:b.a.any},yn.defaultProps={value:""},hn.propTypes={title:b.a.string.isRequired,value:b.a.string},hn.defaultProps={value:""},gn.propTypes={message:b.a.string.isRequired,error:b.a.oneOfType([b.a.instanceOf(Error),b.a.instanceOf(fn.a)]).isRequired,className:b.a.string},gn.defaultProps={className:""};var vn=n(141);class On extends a.Component{constructor(e){super(e),this.settings=yoastIndexingData,this.state={state:"idle",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 n=await fetch(e,{method:"POST",headers:{"X-WP-Nonce":t}}),a=await n.text();let r;try{r=JSON.parse(a)}catch(e){throw new vn.a("Error parsing the response to JSON.",a)}if(!n.ok){const t=r.data?r.data.stackTrace:"";throw new fn.a(r.message,e,"POST",n.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("in_progress")&&!1!==t;)try{await this.doPreIndexingAction(e);const n=await this.doIndexingRequest(t,this.settings.restApi.nonce);await this.doPostIndexingAction(e,n),this.setState(e=>({processed:e.processed+n.objects.length,firstTime:!1})),t=n.next_url}catch(e){this.setState({state:"errored",error:e,firstTime:!1})}}async index(){for(const e of Object.keys(this.settings.restApi.indexing_endpoints))await this.doIndexing(e);this.isState("errored")||this.isState("idle")||this.completeIndexing()}async startIndexing(){this.setState({processed:0,state:"in_progress"},this.index)}completeIndexing(){this.setState({state:"completed"})}stopIndexing(){this.setState(e=>({state:"idle",processed:0,amount:e.amount-e.processed}))}componentDidMount(){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 e=Object(bn.b)(window.location.href,"start-indexation");Object(bn.a)(null,document.title,e),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 Object(a.createElement)(y.b,{type:"info",className:"yst-mt-6"},Object(u.__)("This feature includes and replaces the Text Link Counter and Internal Linking Analysis","wordpress-seo"))}renderStartButton(){return Object(a.createElement)("button",{type:"button",className:"yst-button yst-button--secondary",onClick:this.startIndexing},Object(u.__)("Start SEO data optimization","wordpress-seo"))}renderStopButton(){return Object(a.createElement)("button",{type:"button",className:"yst-button yst-button--secondary",onClick:this.stopIndexing},Object(u.__)("Stop SEO data optimization","wordpress-seo"))}renderDisabledTool(){return Object(a.createElement)(a.Fragment,null,Object(a.createElement)("p",null,Object(a.createElement)("button",{type:"button",className:"yst-button yst-button--secondary yst-button--disabled",disabled:!0},Object(u.__)("Start SEO data optimization","wordpress-seo"))),Object(a.createElement)(y.b,{type:"info",className:"yst-mt-6"},Object(u.__)("SEO data optimization is disabled for non-production environments.","wordpress-seo")))}renderProgressBar(){let e=0;return this.isState("completed")&&(e=100),this.isState("in_progress")&&(e=this.state.processed/parseInt(this.state.amount,10)*100),Object(a.createElement)("div",{className:"yst-w-full yst-bg-gray-200 yst-rounded-full yst-h-2.5 yst-mb-4"},Object(a.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 Object(a.createElement)(mn.a,{id:"optimization-in-progress-text",height:this.isState("in_progress")?"auto":0,easing:"linear",duration:300},Object(a.createElement)("p",{className:"yst-text-sm yst-italic yst-mb-4 yst-mt-4"},Object(u.__)("SEO data optimization is running… You can safely move on to the next steps of this configuration.","wordpress-seo")))}renderErrorAlert(){return Object(a.createElement)(gn,{message:yoastIndexingData.errorMessage,error:this.state.error,className:"yst-mb-4"})}render(){return this.settings.disabled?this.renderDisabledTool():Object(a.createElement)("div",{className:"yst-relative"},this.props.children,Object(a.createElement)(dn,{unmount:!1,show:this.isState("errored")||this.isState("in_progress")||this.isState("idle")&&this.state.amount>0,leave:"yst-transition-opacity yst-duration-1000",leaveFrom:"yst-opacity-100",leaveTo:"yst-opacity-0"},this.renderProgressBar(),this.isState("errored")&&this.renderErrorAlert(),this.isState("in_progress")?this.renderStopButton():this.renderStartButton(),this.renderCaption(),this.isState("idle")&&this.state.firstTime&&this.renderFirstIndexationNotice()))}}On.propTypes={indexingActions:b.a.object,preIndexingActions:b.a.object,indexingStateCallback:b.a.func,children:b.a.node},On.defaultProps={indexingActions:{},preIndexingActions:{},indexingStateCallback:()=>{},children:null};var En=On;const wn={},jn={};function xn(e){let{indexingStateCallback:t,indexingState:n,isEnabled:r,isStepperFinished:s}=e;return r?Object(a.createElement)(En,{preIndexingActions:wn,indexingActions:jn,indexingStateCallback:t},Object(a.createElement)(dn,{unmount:!1,show:["completed","already_done"].includes(n),enter:"yst-transition-opacity yst-duration-1000",enterFrom:"yst-opacity-0",enterTo:"yst-opacity-100"},Object(a.createElement)(y.b,{type:"success"},"already_done"!==n||s?Object(u.__)("We've successfully analyzed your site!","wordpress-seo"):Object(u.__)("We've already successfully analyzed your site. You can move on to the next step.","wordpress-seo")))):"completed"===n?Object(a.createElement)(y.b,{type:"success"},Object(u.__)("We've already successfully analyzed your site. You can move on to the next step.","wordpress-seo")):Object(a.createElement)("button",{className:"yoast-button--secondary",type:"button",disabled:!0},Object(u.__)("Start SEO data optimization","wordpress-seo"))}var Cn,Sn,kn,Rn,Pn,In,Tn,Mn,Nn,Fn,Ln,Dn,An,zn,qn,Un,Hn,Bn,$n,Vn,Gn,Wn,Yn,Kn,Qn,Jn,Zn,Xn,ea,ta,na,aa,ra,sa,oa,ia,la,ca,ua,da,pa,ma,ba,fa,ya,ha,ga,va,Oa,Ea,wa;function ja(){return(ja=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function xa(e){return _.createElement("svg",ja({"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 262.37 284.15"},e),Cn||(Cn=_.createElement("path",{fill:"#f0ecf0",d:"M262.37 153A131.19 131.19 0 1054.71 259.56a28.08 28.08 0 011.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 00.65 6.94A131.23 131.23 0 00262.37 153z"})),Sn||(Sn=_.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 00-1.91 7.37 131.71 131.71 0 0012.68 8.05 184.18 184.18 0 017.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 00-4.6 49.12 132 132 0 0064 .49 27.23 27.23 0 01-.69-6.97z"})),kn||(kn=_.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 00-7.18 34A130.42 130.42 0 0098.21 280a103.65 103.65 0 014.59-49.1z"})),Rn||(Rn=_.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.65l18.32-60.92s.51 11.07 1.1 9.3 16.4-28.8 16.4-28.8l-28.14 81z"})),Pn||(Pn=_.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"})),In||(In=_.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"})),Tn||(Tn=_.createElement("path",{fill:"#8b6c9c",d:"M166.15 92.89l-.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"})),Mn||(Mn=_.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"})),Nn||(Nn=_.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)"})),Fn||(Fn=_.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 0111-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 00-7.73 1.1c1.68-4.03 6.97-11.62 12.03-15.3z"})),Ln||(Ln=_.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 0111-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 00-7.73 1.1c1.68-4.03 6.97-11.62 12.03-15.3z"})),Dn||(Dn=_.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"})),An||(An=_.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"})),zn||(zn=_.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"})),qn||(qn=_.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"})),Un||(Un=_.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"})),Hn||(Hn=_.createElement("path",{fill:"#8b6c9c",d:"M100.48 163.09a3.78 3.78 0 010 .95 9.1 9.1 0 01-.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 0166.55 244 35.8 35.8 0 0155 253.26a38.85 38.85 0 01-14.07 4.2v-.2a41.07 41.07 0 006.94-2.09 39.27 39.27 0 006.44-3.17A35.56 35.56 0 0065 242.71a26.19 26.19 0 002-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 00.18-.88 3.19 3.19 0 00.06-.87z"})),Bn||(Bn=_.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 00-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"})),$n||($n=_.createElement("path",{fill:"#8b6c9c",d:"M100.38 163.12l8.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"})),Vn||(Vn=_.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 00-.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"})),Gn||(Gn=_.createElement("path",{fill:"#fcee21",d:"M92.41 51.14a78.25 78.25 0 01.88-8.53C83.1 69 92.42 74.26 92.61 74.09a39.64 39.64 0 012.9-8.67s-3.36-7.58-3.1-14.28z"})),Wn||(Wn=_.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 00-2.82 8.67c2.35-2.09 7.86-2.94 9.59-2.76z"})),Yn||(Yn=_.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"})),Kn||(Kn=_.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"})),Qn||(Qn=_.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"})),Jn||(Jn=_.createElement("path",{fill:"#8b6c9c",d:"M84.58 124.87a4.75 4.75 0 013-1.15 7.83 7.83 0 013.22.82 21.82 21.82 0 012.69 1.76c.86.62 1.71 1.25 2.56 1.89a47.7 47.7 0 014.94 4.14 4.21 4.21 0 01.55.71 5.87 5.87 0 01.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 01.12 1 2.36 2.36 0 01-.26.93 3.58 3.58 0 01-1.21 1.34 4 4 0 01-3.47.47 5.93 5.93 0 01-2.73-2.06 12.37 12.37 0 01-2.52-5.93 36.66 36.66 0 003.3 5.3 5 5 0 002.26 1.74 3 3 0 002.6-.35 1.93 1.93 0 001-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 00-.7-1.17 49.75 49.75 0 00-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 00-2.78-1.11 4.77 4.77 0 00-3.02.7z"})),Zn||(Zn=_.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"})),Xn||(Xn=_.createElement("path",{fill:"#8b6c9c",d:"M79.05 129.21a5.63 5.63 0 012.7.27c.88.26 1.73.57 2.58.91a28.34 28.34 0 014.81 2.54c.77.48 1.53 1 2.27 1.52a12.53 12.53 0 012.14 1.84 2.76 2.76 0 01.45.71c.09.21.17.44.24.66a12.73 12.73 0 01.38 1.34c.21.9.37 1.8.52 2.68a38.28 38.28 0 001.15 5.2c.13.41.29.82.46 1.22a2.2 2.2 0 01.2.84 1.33 1.33 0 01-.37 1 2.48 2.48 0 01-1.56.62 6 6 0 01-1.47-.08 8.62 8.62 0 01-2.69-.94 5.84 5.84 0 01-2.1-2 15.27 15.27 0 01-2-5.2l.19.31a9.76 9.76 0 00-2.57-1.41 12.13 12.13 0 01-3-1.25l.74-.19a14 14 0 01-2.58 2.75 8.41 8.41 0 00-2.18 2.84 8.13 8.13 0 011.78-3.21 14.17 14.17 0 002.08-2.85l.23-.52.5.33a5.89 5.89 0 001.27.66l1.46.5a10.54 10.54 0 012.83 1.55l.15.11v.2a14.16 14.16 0 001.83 4.84 4.89 4.89 0 001.75 1.69 7.75 7.75 0 002.38.83 5 5 0 001.22.06 1.54 1.54 0 00.92-.31c.13-.13.14-.32 0-.72s-.35-.86-.49-1.3a36.1 36.1 0 01-1.18-5.34c-.15-.88-.31-1.76-.51-2.61a13 13 0 00-.35-1.26 3.72 3.72 0 00-.49-1 11.48 11.48 0 00-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 00-2.53-.78z"})),ea||(ea=_.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"})),ta||(ta=_.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"})),na||(na=_.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 01-5.15-.2L171 71.7s5.51-2.1 9.18.36z"})),aa||(aa=_.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"})),ra||(ra=_.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 00-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 00-2.94 8.78s9.23-2.88 9.42-4.16z"})),sa||(sa=_.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"})),oa||(oa=_.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"})),ia||(ia=_.createElement("path",{fill:"#f15a24",d:"M106.93 52c1.27.52 2.88 4 1.65 3.5A18.34 18.34 0 0092 57.38c.7-5.91 13-6.22 14.93-5.38z"})),la||(la=_.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"})),ca||(ca=_.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"})),ua||(ua=_.createElement("ellipse",{cx:98.36,cy:62.94,fill:"#f15a24",rx:3.53,ry:3.42,transform:"rotate(-5.96 98.33 62.903)"})),da||(da=_.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"})),pa||(pa=_.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"})),ma||(ma=_.createElement("path",{fill:"#8b6c9c",d:"M132.64 76.68c1.08 1.47 9.51 5.88 9.51 5.88a60.71 60.71 0 01-2.89 6.3c.41 0 1.39-5-.85-6.64-1.72-1.22-4.64-2.58-5.77-5.54z"})),ba||(ba=_.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"})),fa||(fa=_.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 018.14 1.76c-.64 0 13-5.16 16.5-3.92s6.23 5.3 8.86 6.04z"})),ya||(ya=_.createElement("path",{fill:"#093f22",d:"M90.49 53.46a87 87 0 013.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.59l7.38 2.95-3.99 9.31-7.34-2.07 3.95-10.19z"})),ha||(ha=_.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"})),ga||(ga=_.createElement("path",{fill:"#8b6c9c",d:"M131.58 242.4c.39-2 .09-3.41.48-5.52l2.21-.22a53.48 53.48 0 00-2.69 5.74z"})),va||(va=_.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"})),Oa||(Oa=_.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"})),Ea||(Ea=_.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"})),wa||(wa=_.createElement("ellipse",{cx:131.8,cy:60.56,fill:"#f15a24",rx:3.76,ry:3.99,transform:"rotate(-5.96 131.772 60.6)"})))}function Ca(e){let{indexingState:t,setIndexingState:n,showRunIndexationAlert:r,isStepperFinished:s}=e;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)("div",{className:"yst-flex yst-flex-row yst-justify-between yst-flex-wrap yst-mb-8"},Object(a.createElement)("p",{className:"yst-text-sm yst-whitespace-pre-line yst-w-[463px]"},Object(d.a)(Object(u.sprintf)(Object(u.__)("Let’s analyze your site just like Google does and get those indexables into action by running the SEO data optimization! Our indexables will immediately improve technical issues without you needing to do anything!\n\nIf you have a lot of content, that optimization could take a while. But trust us, it’s worth it! Want to read more, %1$scheck out the benefits of the indexables squad.%2$s","wordpress-seo"),"<a>","</a>"),window.wpseoFirstTimeConfigurationData.shortlinks.configIndexablesBenefits,"yoast-configuration-index-data-link")),Object(a.createElement)(xa,{className:"yst-h-28 yst-w-24 yst-mr-6"})),Object(a.createElement)("div",{id:"yoast-configuration-indexing-container",className:"indexation-container"},Object(a.createElement)(xn,{indexingStateCallback:n,isEnabled:!window.wpseoFirstTimeConfigurationData.shouldUpdatePremium,indexingState:t,isStepperFinished:s})),window.wpseoFirstTimeConfigurationData.shouldUpdatePremium&&"completed"!==t&&Object(a.createElement)(y.b,{type:"warning"},Object(a.createElement)("p",null,// translators: %1$s is replaced by a version number.
Object(u.sprintf)(Object(u.__)("This configuration step is currently disabled, because you're not running the latest version of Yoast SEO Premium. Please update to the latest version (at least %1$s). ","wordpress-seo"),"17.7")),Object(a.createElement)("p",null,Object(d.a)(Object(u.sprintf)(// translators: %1$s and %2$s are replaced by anchor tags to make a link to the tool section.
Object(u.__)("You can still run the SEO data optimization in the %1$sTools section%2$s. Once that is finished, please refresh this page.","wordpress-seo"),"<a>","</a>"),window.wpseoFirstTimeConfigurationData.toolsPageUrl))),Object(a.createElement)(y.a,{id:"indexation-alert",isVisible:"idle"===t&&r,expandDuration:400,type:"info"},Object(u.__)("Be aware that you should run the SEO data optimization for this configuration to take maximum effect.","wordpress-seo")))}window.yoast=window.yoast||{},window.yoast.indexing=window.yoast.indexing||{},xn.propTypes={indexingStateCallback:b.a.func.isRequired,indexingState:b.a.string.isRequired,isEnabled:b.a.bool,isStepperFinished:b.a.bool},xn.defaultProps={isEnabled:!0,isStepperFinished:!1},window.yoast.indexing.registerPreIndexingAction=(e,t)=>{wn[e]=t},window.yoast.indexing.registerIndexingAction=(e,t)=>{jn[e]=t},Ca.propTypes={indexingState:b.a.string.isRequired,setIndexingState:b.a.func.isRequired,showRunIndexationAlert:b.a.bool,isStepperFinished:b.a.bool},Ca.defaultProps={showRunIndexationAlert:!1,isStepperFinished:!1};var Sa=n(25),ka=n(132);function Ra(e){let{id:t,value:n,choices:r,label:s,onChange:o,error:i,disabled:l}=e;const c=Object(a.useMemo)(()=>{const e=r.find(e=>n===e.value);return e?e.label:Object(u.__)("Select an option","wordpress-seo")},[r,n]);return Object(a.createElement)(ct,{id:t,as:"div",value:n,onChange:o,disabled:l},e=>{let{open:o}=e;return Object(a.createElement)(a.Fragment,null,s&&Object(a.createElement)(ct.Label,{className:"yst-block yst-max-w-sm yst-mb-1 yst-text-sm yst-font-medium yst-text-gray-700"},s),Object(a.createElement)("div",{className:"yst-max-w-sm"},Object(a.createElement)("div",{className:"yst-relative"},Object(a.createElement)(ct.Button,j()({className:S()("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-gray-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":i.isVisible,"yst-opacity-50":l},"emptyChoice"===n?"yst-text-gray-400":"yst-text-gray-700")},Object(p.b)(t,i)),Object(a.createElement)("span",{className:"yst-block yst-truncate"},c),Object(a.createElement)("span",{className:"yst-absolute yst-inset-y-0 yst-right-0 yst-flex yst-items-center yst-pr-2 yst-pointer-events-none"},Object(a.createElement)(Sa.h,{className:"yst-w-5 yst-h-5 yst-text-gray-400","aria-hidden":"true"})),i.isVisible&&Object(a.createElement)("div",{className:"yst-flex yst-items-center yst-absolute yst-inset-y-0 yst-right-0 yst-mr-8"},Object(a.createElement)(Sa.d,{className:"yst-pointer-events-none yst-h-5 yst-w-5 yst-text-red-500"}))),Object(a.createElement)(dn,{show:o,as:a.Fragment,leave:"yst-transition yst-ease-in yst-duration-100",leaveFrom:"yst-opacity-100",leaveTo:"yst-opacity-0"},Object(a.createElement)(ct.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"},r.map(e=>Object(a.createElement)(ct.Option,{key:e.id,as:a.Fragment,value:e.value},t=>{let{selected:n,active:r}=t;return Object(a.createElement)("li",{className:Object(p.d)({selected:n,active:r})},Object(a.createElement)("span",{className:S()(n?"yst-font-semibold":"yst-font-normal","yst-block yst-truncate")},e.label),n?Object(a.createElement)("span",{className:S()("yst-text-white yst-absolute yst-inset-y-0 yst-right-0 yst-flex yst-items-center yst-pr-4")},Object(a.createElement)(Sa.c,{className:"yst-w-5 yst-h-5","aria-hidden":"true"})):null)}))))),i.isVisible&&Object(a.createElement)(ka.a,{id:Object(p.c)(t),className:"yst-mt-2 yst-text-sm yst-text-red-600",texts:i.message})))})}Ra.propTypes={value:m.PropTypes.string.isRequired,choices:m.PropTypes.arrayOf(m.PropTypes.shape({id:m.PropTypes.oneOfType([m.PropTypes.number,m.PropTypes.string]).isRequired,value:m.PropTypes.string.isRequired,label:m.PropTypes.string.isRequired})).isRequired,label:m.PropTypes.string.isRequired,onChange:m.PropTypes.func.isRequired,id:m.PropTypes.string.isRequired,error:m.PropTypes.shape({message:m.PropTypes.string,isVisible:m.PropTypes.bool}),disabled:m.PropTypes.bool},Ra.defaultProps={error:{message:"",isVisible:!1},disabled:!1};var Pa=n(131),Ia=n(90);const Ta=e=>{let{className:t}=e;return Object(a.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:S()("yst-animate-spin",t)},Object(a.createElement)("circle",{className:"yst-opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),Object(a.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"}))};Ta.propTypes={className:b.a.string},Ta.defaultProps={className:""};var _a=Ta;function Ma(e){let{id:t,imageAltText:n,url:r,label:s,onSelectImageClick:o,onRemoveImageClick:i,className:l,error:c,status:d}=e;const m=S()("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",c.isVisible?"yst-border-red-300":"yst-border-gray-300","yst-border-2 yst-border-dashed"),b=Object(a.useCallback)(()=>"loading"===d?Object(a.createElement)("div",{className:"yst-text-center"},Object(a.createElement)(_a,{size:"10",color:"gray-400",className:"yst-inline-block"}),Object(a.createElement)("p",{className:"yst-mt-3"},Object(u.__)("Uploading image...","admin-ui"))):r?Object(a.createElement)("img",{src:r,alt:n,className:"yst-w-full yst-h-full yst-object-contain"}):Object(a.createElement)(Ia.b,{id:t+"-no-image-svg",className:"yst-w-14 yst-h-14 yst-text-gray-500"}),[d,t,r,n]);return Object(a.createElement)("div",j()({className:S()("yst-max-w-sm",l)},Object(p.b)(t,c)),Object(a.createElement)("label",{htmlFor:t,className:"yst-block yst-mb-2 yst-font-medium yst-text-gray-700"},s),Object(a.createElement)("button",{id:t,className:m,onClick:o,type:"button"},b()),Object(a.createElement)("div",null,Object(a.createElement)("button",{type:"button",id:r?t+"__replace-image":t+"__select-image",className:"yst-button yst-button yst-button--secondary yst-mr-2",onClick:o},r?Object(u.__)("Replace image","admin-ui"):Object(u.__)("Select image","admin-ui")),r&&Object(a.createElement)("button",{type:"button",id:t+"__remove-image",className:"yst-button--remove",onClick:i},Object(u.__)("Remove image","admin-ui"))),"error"===d&&Object(a.createElement)("p",{className:"yst-mt-2 yst-text-sm yst-text-red-600"},c),c.isVisible&&Object(a.createElement)(ka.a,{id:Object(p.c)(t),className:"yst-mt-2 yst-text-sm yst-text-red-600",texts:c.message}))}Ma.propTypes={label:b.a.string,id:b.a.string.isRequired,url:b.a.string,imageAltText:b.a.string,onRemoveImageClick:b.a.func,onSelectImageClick:b.a.func,className:b.a.string,error:b.a.shape({message:b.a.string,isVisible:b.a.bool}),status:b.a.string},Ma.defaultProps={label:"",url:"",imageAltText:"",onRemoveImageClick:i.noop,onSelectImageClick:i.noop,className:"",error:{message:"",isVisible:!1},status:"idle"};var Na=n(35);function Fa(e){let{dispatch:t,imageUrl:n,organizationName:r,errorFields:s}=e;const o=Object(a.useCallback)(()=>{Object(Na.b)(e=>{t({type:"SET_COMPANY_LOGO",payload:{...e}})})},[Na.b]),i=Object(a.useCallback)(()=>{t({type:"REMOVE_COMPANY_LOGO"})}),l=Object(a.useCallback)(e=>{t({type:"CHANGE_COMPANY_NAME",payload:e.target.value})});return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(Pa.a,{className:"yst-mt-6",id:"organization-name-input",name:"organization-name",label:Object(u.__)("Organization name","wordpress-seo"),value:r,onChange:l,feedback:{isVisible:s.includes("company_name"),message:[Object(u.__)("We could not save the organization name. Please check the value.","wordpress-seo")],type:"error"}}),Object(a.createElement)(Ma,{className:"yst-mt-6",id:"organization-logo-input",url:n,onSelectImageClick:o,onRemoveImageClick:i,imageAltText:"",hasPreview:!0,label:Object(u.__)("Organization logo","wordpress-seo")}))}Fa.propTypes={dispatch:b.a.func.isRequired,imageUrl:b.a.string,organizationName:b.a.string,errorFields:b.a.array},Fa.defaultProps={imageUrl:"",organizationName:"",errorFields:[]};var La=n(9);function Da(e){return e&&e.label?e.label:null}function Aa(e){let{id:t,value:n,label:r,onChange:s,onQueryChange:o,options:i,placeholder:l,isLoading:c}=e;const[d,m]=Object(a.useState)(i),[b,f]=Object(a.useState)(""),y=Object(a.useCallback)(e=>{f(e.target.value)},[f]),h=Object(a.useCallback)(()=>{f("")},[f]);Object(a.useEffect)(()=>{m(i)},[i]),Object(a.useEffect)(()=>{o?o(b):m(i.filter(e=>e.label.toLowerCase().includes(b.toLowerCase())))},[b,o]);const g=Object(a.useCallback)((e,t)=>n=>{let{selected:a,active:r}=n;return Object(p.d)({selected:a||e===t,active:r})},[p.d]),v=Object(a.useCallback)(e=>t=>{e&&t.stopPropagation()},[]);return Object(a.createElement)(he,{id:t,as:"div",value:n,onChange:s,onBlur:h},e=>{let{open:t}=e;return Object(a.createElement)(a.Fragment,null,r&&Object(a.createElement)(he.Label,{className:"yst-block yst-mb-1 yst-max-w-sm yst-text-sm yst-font-medium yst-text-gray-700"},r),Object(a.createElement)("div",{className:"yst-h-[45px] yst-max-w-sm yst-relative"},Object(a.createElement)(he.Button,{role:"button",className:"yst-w-full yst-h-full yst-rounded-md yst-border yst-border-gray-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"},Object(a.createElement)(he.Input,{className:"yst-w-full yst-text-gray-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:y,displayValue:Da,placeholder:l,onClick:v(t)}),Object(a.createElement)(Sa.h,{className:"yst-h-5 yst-w-5 yst-text-gray-400 yst-inset-y-0 yst-right-0","aria-hidden":"true"})),d.length>0&&Object(a.createElement)(he.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&&Object(a.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"},Object(a.createElement)(_a,{className:"yst-text-primary-500 yst-h-4 yst-w-4 yst-mr-2 yst-self-center"}),Object(u.__)("Loading...","wordpress-seo")),d.map(e=>Object(a.createElement)(he.Option,{key:"yst-option-"+e.value,value:e,className:g(e.value,n.value)},t=>{let{selected:r}=t;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)("span",{className:S()("yst-block yst-truncate",(r||n.value===e.value)&&"yst-font-semibold")},e.label),(r||n.value===e.value)&&Object(a.createElement)("span",{className:"yst-absolute yst-inset-y-0 yst-right-0 yst-flex yst-items-center yst-pr-4 yst-text-white"},Object(a.createElement)(Sa.c,{className:"yst-h-5 yst-w-5","aria-hidden":"true"})))})))))})}Aa.propTypes={onChange:b.a.func.isRequired,options:b.a.array.isRequired,id:b.a.string.isRequired,value:b.a.shape({value:b.a.number,label:b.a.string}),label:b.a.string,onQueryChange:b.a.func,placeholder:b.a.string,isLoading:b.a.bool},Aa.defaultProps={value:null,label:"",onQueryChange:null,placeholder:Object(u.__)("Select an option","wordpress-seo"),isLoading:!1};const za={"X-WP-NONCE":wpApiSettings.nonce},qa=wpApiSettings.root;function Ua(e){let{initialValue:t,onChangeCallback:n,placeholder:r}=e;const[s,o]=Object(a.useState)([]),[l,c]=Object(a.useState)({value:t.id,label:t.name}),[d,p]=Object(a.useState)(!1),m=Object(a.useRef)(!0);Object(a.useEffect)(()=>()=>{m.current=!1},[]);const b=Object(a.useCallback)(e=>{c(e),n(e)}),f=Object(a.useCallback)(Object(i.debounce)(async e=>{p(!0);const t=await function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const t=`${qa}wp/v2/users?per_page=20${e?"&search="+encodeURIComponent(e):""}`;return Object(La.sendRequest)(t,{method:"GET",headers:za})}(e);m.current&&(p(!1),o(t.map(e=>({value:e.id,label:e.name}))))},500),[]);return Object(a.createElement)(Aa,{id:"yoast-configuration-user-select",value:l,label:Object(u.__)("Name","wordpress-seo"),onChange:b,onQueryChange:f,options:s,placeholder:r,isLoading:d})}function Ha(e){let{dispatch:t,imageUrl:n,person:r,canEditUser:s}=e;const o=Object(a.useCallback)(()=>{Object(Na.b)(e=>{t({type:"SET_PERSON_LOGO",payload:{...e}})})},[Na.b]),i=Object(a.useCallback)(()=>{t({type:"REMOVE_PERSON_LOGO"})}),l=Object(a.useCallback)(e=>{t({type:"SET_PERSON",payload:e}),c()({path:"yoast/v1/configuration/check_capability?user_id="+e.value}).then(e=>{t({type:"SET_CAN_EDIT_USER",payload:e.success})}).catch(e=>{console.error(e.message)})},[t]),d=Object(a.useMemo)(()=>Object(a.createInterpolateElement)(Object(u.sprintf)(// translators: %1$s is replaced by the selected user's name, and %2$s and %3$s are opening and closing anchor tags.
s?Object(u.__)("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"):Object(u.__)("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:Object(a.createElement)("b",null),a:Object(a.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,s]);return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(Ua,{initialValue:r,onChangeCallback:l,name:"person_id",placeholder:Object(u.__)("Select a user","wordpress-seo")}),Object(a.createElement)(y.a,{id:"user-representation-alert",isVisible:0!==r.id,type:"info",className:"yst-mt-5"},d),Object(a.createElement)(Ma,{className:"yst-mt-6",id:"person-logo-input",url:n,onSelectImageClick:o,onRemoveImageClick:i,imageAltText:"",hasPreview:!0,label:Object(u.__)("Personal logo or avatar","wordpress-seo")}))}function Ba(e){let{onOrganizationOrPersonChange:t,dispatch:n,state:r,siteRepresentationEmpty:s}=e;const[o,i]=Object(a.useState)("emptyChoice"===r.companyOrPerson?"yst-opacity-0":"yst-opacity-100"),l=Object(a.useCallback)(()=>{i("yst-opacity-100")}),c=Object(d.a)(Object(u.sprintf)(
/* translators: %1$s expands to opening 'a' HTML tag, %2$s expands to closing 'a' HTML tag */
Object(u.__)("Completing this step will help Google to understand your website, and 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 Object(a.createElement)(a.Fragment,null,window.wpseoFirstTimeConfigurationData.knowledgeGraphMessage&&Object(a.createElement)(y.b,{type:"info"},window.wpseoFirstTimeConfigurationData.knowledgeGraphMessage),Object(a.createElement)("p",{className:S()("yst-text-sm yst-whitespace-pre-line yst-mb-6",r.shouldForceCompany?"yst-mt-4":"yst-mt-0")},r.shouldForceCompany?c:Object(a.createElement)(a.Fragment,null,Object(u.__)("Help us out here! Is your site about an organization or a person? ","wordpress-seo"),c)),Object(a.createElement)(Ra,{id:"organization-person-select",htmlFor:"organization-person-select",name:"organization",label:Object(u.__)("Does your site represent an Organization or Person?","wordpress-seo"),value:r.shouldForceCompany?"company":r.companyOrPerson,onChange:t,choices:r.companyOrPersonOptions,disabled:!!r.shouldForceCompany}),Object(a.createElement)(mn.a,{height:["company","person"].includes(r.companyOrPerson)?"auto":0,duration:400,easing:"linear",onAnimationEnd:l},Object(a.createElement)("div",{className:S()("yst-transition-opacity yst-duration-300 yst-mt-6",o)},"company"===r.companyOrPerson&&Object(a.createElement)(Fa,{dispatch:n,imageUrl:r.companyLogo,organizationName:r.companyName,errorFields:r.errorFields}),"person"===r.companyOrPerson&&Object(a.createElement)(Ha,{dispatch:n,imageUrl:r.personLogo,person:{id:r.personId,name:r.personName},canEditUser:!!r.canEditUser,errorFields:r.errorFields}))),Object(a.createElement)(y.a,{id:"site-representation-empty-alert",isVisible:s,className:"yst-mt-6"},Object(d.a)(Object(u.sprintf)(Object(u.__)("Please be aware that you need to fill out all settings in this step to get the most value out of structured data. %1$sRead more about the importance of structured data%2$s.","wordpress-seo"),"<a>","</a>"),"https://yoa.st/config-workout-structured-data","yoast-configuration-structured-data-link")))}Ua.propTypes={initialValue:b.a.shape({id:b.a.number,name:b.a.string}),onChangeCallback:b.a.func,placeholder:b.a.string},Ua.defaultProps={initialValue:{id:0,name:""},onChangeCallback:i.noop,placeholder:Object(u.__)("Select a user","wordpress-seo")},Ha.propTypes={dispatch:b.a.func.isRequired,imageUrl:b.a.string,person:b.a.shape({id:b.a.number,name:b.a.string}),canEditUser:b.a.bool.isRequired},Ha.defaultProps={imageUrl:"",person:{id:0,name:""}},Ba.propTypes={onOrganizationOrPersonChange:b.a.func.isRequired,dispatch:b.a.func.isRequired,state:b.a.object.isRequired,siteRepresentationEmpty:b.a.bool.isRequired};var $a=n(36);const Va=Object(u.__)("Oops! Something went wrong. Check your email address and try again.","wordpress-seo"),Ga=Object(u.__)("Please enter a valid email address.","wordpress-seo"),Wa=Object(u.__)("Thank you! Check your inbox for the confirmation email.","wordpress-seo");function Ya(e){let{gdprLink:t}=e;const[n,r]=Object(a.useState)(""),[s,o]=Object(a.useState)("waiting"),[i,l]=Object(a.useState)(""),c=Object(a.useCallback)((async function(){if(!Object($a.isEmail)(n))return o("error"),void l(Ga);o("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"})})).json()}(n)).error?(o("error"),l(Va)):(o("success"),l(Wa))}),[n]),p=Object(a.useCallback)(e=>{o("waiting"),r(e.target.value)},[r]);return Object(a.createElement)(a.Fragment,null,Object(a.createElement)("h4",{className:"yst-text-gray-900 yst-text-base yst-leading-6 yst-font-normal"},// translators: %s is replaced by "Yoast"
Object(u.sprintf)(Object(u.__)("%s newsletter","wordpress-seo"),"Yoast")),Object(a.createElement)("p",{className:"yst-my-2"},Object(u.sprintf)(// translators: %1$s expands to "Yoast", %2$s expands to "Yoast SEO"
Object(u.__)("Sign up for the %1$s newsletter to receive best-practice tips on how to rank, stay up-to-date with the latest SEO news and get guidance on how to use %2$s to the fullest!","wordpress-seo"),"Yoast","Yoast SEO")),Object(a.createElement)("div",{className:"yst-flex yst-items-start yst-gap-2 yst-mt-4"},Object(a.createElement)(Pa.a,{label:Object(u.__)("Email address","wordpress-seo"),id:"newsletter-email",name:"newsletter email",value:n,onChange:p,className:"yst-grow",type:"email",placeholder:Object(u.__)("E.g. example@email.com","wordpress-seo"),feedback:{isVisible:["error","success"].includes(s),type:s,message:[i]}}),Object(a.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"===s},Object(u.__)("Sign up!","wordpress-seo"))),Object(a.createElement)("p",{className:"yst-text-gray-500 yst-text-xxs yst-leading-4"},Object(d.a)(Object(u.sprintf)(// translators: %1$s and %2$s are replaced by opening and closing anchor tags.
Object(u.__)("Yoast respects your privacy. Read %1$sour privacy policy%2$s on how we handle your personal information.","wordpress-seo"),"<a>","</a>"),t,"yoast-configuration-gdpr-link")))}Ya.propTypes={gdprLink:b.a.string},Ya.defaultProps={gdprLink:""};const Ka={variant:{default:"","inline-block":"yst-radio-group--inline-block"}},Qa=e=>{let{id:t,name:n,value:r,label:s,className:o,...i}=e;return Object(a.createElement)("div",{className:S()("yst-radio",o)},Object(a.createElement)("input",j()({type:"radio",id:t,name:n,value:r,className:"yst-radio__input"},i)),s&&Object(a.createElement)(Ja,{htmlFor:t,className:"yst-radio__label"},s))};Qa.propTypes={name:b.a.string.isRequired,id:b.a.string.isRequired,value:b.a.oneOfType([b.a.string,b.a.number]).isRequired,label:b.a.string.isRequired,variant:b.a.oneOf(Object.keys({default:"","inline-block":"yst-radio--inline-block"})),className:b.a.string},Qa.defaultProps={variant:"default",className:""};const Ja=e=>{let{children:t,as:n,className:r,...s}=e;return Object(a.createElement)(n,j()({className:S()("yst-label",r)},s),t)};Ja.propTypes={children:b.a.node.isRequired,as:b.a.elementType,className:b.a.string},Ja.defaultProps={as:"label",className:""};const Za=e=>{let{children:t,id:n,name:r,value:s,label:o,options:i,onChange:l,variant:c,className:u,...d}=e;const p=Object(a.useCallback)(e=>{let{target:t}=e;return t.checked&&l(t.value)},[l]);return Object(a.createElement)("fieldset",{className:S()("yst-radio-group",Ka.variant[c],u)},o&&Object(a.createElement)(Ja,{as:"legend",className:"yst-radio-group__label"},o),t&&Object(a.createElement)("div",{className:"yst-radio-group__description"},t),Object(a.createElement)("div",{className:"yst-radio-group__options"},i.map((e,t)=>{const o=`${n}-${t}`;return Object(a.createElement)(Qa,j()({key:o,id:o,name:r,value:e.value,label:e.label,variant:c,checked:s===e.value,onChange:p},d))})))};Za.propTypes={children:b.a.node,id:b.a.string.isRequired,name:b.a.string.isRequired,value:b.a.oneOfType([b.a.string,b.a.number]).isRequired,options:b.a.arrayOf(b.a.shape({value:b.a.oneOfType([b.a.string,b.a.number]).isRequired,label:b.a.string.isRequired})).isRequired,onChange:b.a.func.isRequired,label:b.a.node,variant:b.a.oneOf(Object.keys(Ka.variant)),className:b.a.string},Za.defaultProps={children:null,label:null,variant:"default",className:""};var Xa=Za;const er=Object(La.makeOutboundLink)();function tr(e){let{state:t,setTracking:n}=e;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)("h4",{className:"yst-text-gray-900 yst-text-base yst-leading-6 yst-font-normal"},// translators: %s is replaced by "Yoast SEO"
Object(u.sprintf)(Object(u.__)("%s usage tracking","wordpress-seo"),"Yoast SEO")),!!t.isMainSite&&!t.isTrackingAllowedMultisite&&Object(a.createElement)(y.b,{type:"warning",className:"yst-mt-2"},Object(u.__)("This feature has been disabled by the network admin.","wordpress-seo")),!t.isMainSite&&Object(a.createElement)(y.b,{type:"warning",className:"yst-mt-2"},Object(u.__)("This feature has been disabled since subsites never send tracking data.","wordpress-seo")),Object(a.createElement)("p",{className:S()("yst-text-normal yst-mt-2 yst-mb-4",t.isMainSite&&t.isTrackingAllowedMultisite?"":"yst-opacity-50")},Object(u.__)("We need your help to improve Yoast SEO. Can we collect anonymous information about your website and how you use it?","wordpress-seo")),Object(a.createElement)(Xa,{id:"yoast-configuration-tracking-radio-button",name:"yoast-configuration-tracking",value:t.tracking,onChange:n,className:t.isMainSite&&t.isTrackingAllowedMultisite?"":"yst-opacity-50",disabled:!t.isMainSite||!t.isTrackingAllowedMultisite,options:[{value:0,label:Object(u.__)("No, don’t track my site data","wordpress-seo")},{value:1,label:Object(u.__)("Yes, you can track my site data","wordpress-seo")}]}),!!t.isMainSite&&!!t.isTrackingAllowedMultisite&&Object(a.createElement)(a.Fragment,null,Object(a.createElement)(er,{className:"yst-inline-block yst-mt-4",href:"https://yoa.st/config-workout-tracking"},Object(u.__)("What data will be tracked and for what reasons?","wordpress-seo")),Object(a.createElement)("p",{className:"yst-my-2"},Object(a.createElement)("i",null,Object(u.__)("Important: We will never sell this data. And of course, as always, we won't collect any personal data about you or your visitors.","wordpress-seo")))),!t.isPremium&&Object(a.createElement)(a.Fragment,null,Object(a.createElement)("br",null),Object(a.createElement)(Ya,{gdprLink:window.wpseoFirstTimeConfigurationData.shortlinks.gdpr})))}tr.propTypes={state:b.a.object.isRequired,setTracking:b.a.func.isRequired};var nr,ar,rr,sr,or,ir,lr,cr,ur,dr,pr,mr,br,fr,yr,hr,gr,vr,Or,Er,wr,jr,xr,Cr,Sr,kr,Rr,Pr,Ir,Tr,_r,Mr,Nr,Fr,Lr,Dr,Ar,zr,qr,Ur,Hr,Br,$r,Vr,Gr,Wr,Yr,Kr,Qr,Jr,Zr,Xr=n(6);function es(){return(es=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function ts(e){return _.createElement("svg",es({"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 289.98 291.69",className:"indexables_2_left_bubble_optm_svg__yst-shrink-0 indexables_2_left_bubble_optm_svg__yst-h-28"},e),nr||(nr=_.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"})),ar||(ar=_.createElement("path",{fill:"#f0ecf0",d:"M256.47 217s6 6 13.08 13.82a131.19 131.19 0 10-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 013.54-25.72 14.88 14.88 0 00-7.09-1.77 113.17 113.17 0 0110.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 0048-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"})),rr||(rr=_.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"})),sr||(sr=_.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"})),or||(or=_.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"})),ir||(ir=_.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 0042.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 00-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 0013.85 6.58c-1.44-18.61-1.04-36.3 3-51.12z"})),lr||(lr=_.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 0020.67-25.01z"})),cr||(cr=_.createElement("path",{fill:"#89bc3b",d:"M95.79 201.78a14.88 14.88 0 017.09 1.77c1.1-4.56 2.4-9.17 3.86-13.73a113.74 113.74 0 00-10.95 11.96z"})),ur||(ur=_.createElement("path",{fill:"#89bc3b",d:"M112.56 231c-4 14.84-4.44 32.53-3 51.14a130.52 130.52 0 0036.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"})),dr||(dr=_.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 01-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"})),pr||(pr=_.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"})),mr||(mr=_.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"})),br||(br=_.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 00-1.29-2.02z"})),fr||(fr=_.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 00-.89-6.8l-10.34 3.25z"})),yr||(yr=_.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"})),hr||(hr=_.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"})),gr||(gr=_.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"})),vr||(vr=_.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 00-8.98.65z"})),Or||(Or=_.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"})),Er||(Er=_.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"})),wr||(wr=_.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"})),jr||(jr=_.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"})),xr||(xr=_.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"})),Cr||(Cr=_.createElement("path",{fill:"#093f22",d:"M192.38 197.7l21.02 21.79-2.66 5.31-15.36 5.61 11.88-10.33-14.88-22.38zm-71.73-50.53l1.55 13.29a79.66 79.66 0 01-7.31 11.54c-4.43 5.76-8.76 11.31-8.76 11.31L114 156l-.44 12z"})),Sr||(Sr=_.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"})),kr||(kr=_.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 00-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"})),Rr||(Rr=_.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"})),Pr||(Pr=_.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"})),Ir||(Ir=_.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 014.49.11c.31 0 2.8-1 3.11-.91a6.32 6.32 0 012.3 1.19z"})),Tr||(Tr=_.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"})),_r||(_r=_.createElement("path",{fill:"#093f22",d:"M186.03 79.26l5.37 4.21-4.21 7.53-5.93-3.32 4.77-8.42z"})),Mr||(Mr=_.createElement("path",{fill:"#fcee21",d:"M122.11 47.5a54.43 54.43 0 012.89-9.84c-4.93 9.91-10.22 24.17-5.7 30.66a35.07 35.07 0 015.58-8.22s-3.7-6.1-2.77-12.6z"})),Nr||(Nr=_.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 00-2.89 9.84c-.93 6.45 2.76 12.6 2.76 12.6a35.07 35.07 0 00-5.58 8.22v.08c2.2-2.15 6.93-2.21 10.2-3.15z"})),Fr||(Fr=_.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 001.93 4.43c1.77 1 2.51-1.11 3.32 1.77 17.72-1.66 22.26-.59 28.36-.55z"})),Lr||(Lr=_.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"})),Dr||(Dr=_.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"})),Ar||(Ar=_.createElement("path",{fill:"#fcee21",d:"M124.87 60.1a20.07 20.07 0 0012-.61s-2.15-7.92-6.76-7.61-5.24 8.22-5.24 8.22z"})),zr||(zr=_.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"})),qr||(qr=_.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"})),Ur||(Ur=_.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 007.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 01-.16.3.38.38 0 01-.34.06c-2.4-.79-1.79-4.72-.07-5.86-1.72 4.02 3.04 4.63 3.04 4.63z"})),Hr||(Hr=_.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 01-6-15.73c2.67 1.07 6 .5 9.27-3.38z"})),Br||(Br=_.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)"})),$r||($r=_.createElement("path",{fill:"#f19018",d:"M129.81 195.84l18.24-2.09a100.85 100.85 0 00-14.23 16.57l8-.9a78.29 78.29 0 00-8.82 18.82c-3.2 9.33-2.81 18.19-3 17.84a47.74 47.74 0 01-3.75-14.91 56 56 0 01.51-15.19c-3 .83-6 1.67-8.89 2.51a73.05 73.05 0 0111.94-22.65z"})),Vr||(Vr=_.createElement("path",{fill:"#fbb03b",stroke:"#fc3",strokeMiterlimit:10,d:"M129.81 195.84l18.24-2.09a100.85 100.85 0 00-14.23 16.57l8-.9a78.29 78.29 0 00-8.82 18.82c-3.2 9.33-2.81 18.19-3 17.84a47.74 47.74 0 01-3.75-14.91 56 56 0 01.51-15.19c-3 .83-6 1.67-8.89 2.51a73.05 73.05 0 0111.94-22.65z"})),Gr||(Gr=_.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 013.43-3.32c1.88 0 1.51.55 2.88 2.55z"})),Wr||(Wr=_.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"})),Yr||(Yr=_.createElement("path",{fill:"#093f22",d:"M120.68 47.53l4.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"})),Kr||(Kr=_.createElement("path",{fill:"#fc3",d:"M181.6 46.59c-.06 10.33-1.83 19.86-6 28.27A30.57 30.57 0 01163.36 73c3.15-11.43 5.89-22.37 5.61-29.76a90 90 0 0112.63 3.35z"})),Qr||(Qr=_.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"})),Jr||(Jr=_.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 11-3.44-4.09 5 5 0 01.56.09 4.28 4.28 0 012.88 4z"})),Zr||(Zr=_.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 ns(){document.getElementById("dashboard-tab").click(),window.scrollTo(0,0)}function as(){const e=Object(Xr.useSelect)(e=>e("yoast-seo/settings").getIsPremium());return Object(a.createElement)("div",{className:"yst-flex yst-flex-row yst-justify-between yst-items-center yst--mt-4"},Object(a.createElement)("div",{className:"yst-mr-6"},e?Object(a.createElement)(a.Fragment,null,Object(a.createElement)("p",{className:"yst-text-sm yst-mb-6"},Object(u.__)("That’s it! By providing this information our indexables squad has been able to do a lot of optimization for your site already. Now, let's have a look at the SEO fitness of your site!","wordpress-seo")),Object(a.createElement)("button",{type:"button",onClick:ns,className:"yst-button yst-button--primary"},Object(u.__)("Go to your SEO dashboard","wordpress-seo"))):function(){const e=Object(i.get)(window,"wpseoScriptData.webinarIntroSettingsUrl","https://yoa.st/webinar-intro-first-time-config");return Object(a.createElement)(a.Fragment,null,Object(a.createElement)("p",{className:"yst-text-sm yst-mb-4"},Object(u.__)("That's it! By providing this information our Indexables squad has been able to do a lot of optimization for your site already.","wordpress-seo")),Object(a.createElement)("p",{className:"yst-text-sm yst-mb-6"},Object(u.__)("Want to optimize even further and get the most out of Yoast SEO? Make sure you don't miss our free weekly webinar!","wordpress-seo")),Object(a.createElement)("a",{href:e,target:"_blank",rel:"noreferrer",className:"yst-button yst-button--primary yst-text-white"},Object(u.__)("Register now!","wordpress-seo")),Object(a.createElement)("button",{type:"button",onClick:ns,className:"yst-ml-4 yst-text-indigo-600 hover:yst-text-indigo-500"},Object(u.__)("Or visit your SEO dashboard","wordpress-seo")))}()),Object(a.createElement)(ts,{className:"yst-shrink-0 yst-h-28"}))}window.wpseoScriptData=window.wpseoScriptData||{},window.wpseoScriptData.searchAppearance={...window.wpseoScriptData.searchAppearance,userEditUrl:"/wp-admin/user-edit.php?user_id={user_id}"};function rs(e,t){let{companyOrPerson:n,companyName:a,companyLogo:r,companyOrPersonOptions:s,shouldForceCompany:o}=e;return o?n="company":"company"!==n||a||r||t("siteRepresentation")||(n="emptyChoice"),{...e,companyOrPerson:n,companyOrPersonOptions:s,personSocialProfiles:{},errorFields:[],stepErrors:{},editedSteps:[]}}function ss(){const[e,t]=Object(a.useState)(wpseoFirstTimeConfigurationData.finishedSteps),n=Object(a.useCallback)(t=>e.includes(t),[e]),r=Object(a.useCallback)(e=>{t(t=>Object(i.uniq)([...t,e]))},[t]);Object(a.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[s,o]=Object(a.useReducer)(p.a,{...rs(window.wpseoFirstTimeConfigurationData,n)}),[l,m]=Object(a.useState)(()=>"0"===window.yoastIndexingData.amount?"already_done":"idle"),[b,f]=Object(a.useState)(!1),[y,h]=Object(a.useState)(!1),g=Object(a.useCallback)((e,t)=>{o({type:"SET_STEP_ERROR",payload:{step:e,message:t}})},[]),v=Object(a.useCallback)(e=>{o({type:"REMOVE_STEP_ERROR",payload:e})},[]);Object(a.useEffect)(()=>{if("completed"===l){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,n=(parseInt(e,10)-1).toString();t.forEach(t=>{t.classList.replace("count-"+e,"count-"+n)||"0"!==n?(t.firstChild.textContent=t.firstChild.textContent.replace(e,n),t.lastChild.textContent=t.lastChild.textContent.replace(e,n)):t.style.display="none"})}e.remove()}window.yoastIndexingData.amount="0"}},[l]);const w=n("siteRepresentation"),j=n("socialProfiles"),C=n("personalPreferences"),S=Object(a.useCallback)(e=>{o({type:"SET_TRACKING",payload:parseInt(e,10)})}),P=Object(a.useCallback)(e=>{o({type:"SET_ERROR_FIELDS",payload:e})}),I=!("company"!==s.companyOrPerson||s.companyName&&s.companyLogo),_=!("person"!==s.companyOrPerson||s.personId&&s.personLogo),M=Object(a.useCallback)(e=>o({type:"SET_COMPANY_OR_PERSON",payload:e}),[o]),N=[w,j,C].every(Boolean),[F,L]=Object(a.useState)(n("siteRepresentation")),D=[F,n("siteRepresentation"),n("socialProfiles"),n("personalPreferences"),N],[A,z]=Object(a.useState)(Object(x.a)(D)),[q,U]=Object(a.useState)(N),[H,B]=Object(a.useState)(!1),[$,V]=Object(a.useState)(q&&!H);function G(){return V(!1),B(!0),!0}Object(a.useEffect)(()=>{N&&U(!0)},[N]);const W=Object(a.useRef)(w&&j&&C);Object(a.useEffect)(()=>{if(N&&!W.current){const e=document.getElementById("yoast-first-time-configuration-notice");e&&e.remove()}},[N,W]),Object(a.useEffect)(()=>{V(q&&!H)},[q,H]),Object(a.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)},[]),Object(a.useEffect)(()=>{s.editedSteps.includes(A+1)||"in_progress"===l?window.isStepBeingEdited=!0:window.isStepBeingEdited=!1},[s.editedSteps,l,A]);const Y=Object(a.useCallback)(e=>{(s.editedSteps.includes(A+1)||"in_progress"===l)&&-1!==location.href.indexOf("page=wpseo_dashboard#top#first-time-configuration")&&(e.preventDefault(),e.returnValue="")},[s.editedSteps,l,A]);return Object(a.useEffect)(()=>(window.addEventListener("beforeunload",Y),()=>{window.removeEventListener("beforeunload",Y)}),[Y]),Object(a.createElement)("div",{id:"yoast-configuration",className:"yst-card yst-text-gray-500"},Object(a.createElement)("h2",{id:"yoast-configuration-title",className:"yst-text-lg yst-text-primary-500 yst-font-medium"},Object(u.__)("Tell us about your site, so we can get your site ranked!","wordpress-seo")),Object(a.createElement)("p",{className:"yst-py-2"},Object(d.a)(Object(u.sprintf)(// translators: %1$s and %3$s are replaced by opening and closing anchor tags. %2$s is replaced by "Yoast SEO"
Object(u.__)("Put the %1$s%2$s indexables squad%3$s to work! Make Google understand your site.","wordpress-seo"),"<a>","Yoast SEO","</a>"),window.wpseoFirstTimeConfigurationData.shortlinks.configIndexables,"yoast-configuration-guide-link")),Object(a.createElement)("p",{className:"yst-mb-6"},Object(u.__)("The Yoast indexables squad can't wait to get your site in tip-top shape for the search engines. Help us and take these 5 steps in order to put our Yoast indexables to work!","wordpress-seo")),Object(a.createElement)("hr",{id:"configuration-hr-top"}),Object(a.createElement)("div",{className:"yst-mt-8"},Object(a.createElement)(E.b,{setActiveStepIndex:z,activeStepIndex:A,isStepperFinished:N},Object(a.createElement)(E.a,null,Object(a.createElement)(E.a.Header,{name:Object(u.__)("SEO data optimization","wordpress-seo"),isFinished:F},Object(a.createElement)(R,{beforeGo:G,isVisible:$,additionalClasses:"yst-ml-auto"},Object(u.__)("Edit","wordpress-seo"))),Object(a.createElement)(E.a.Content,null,Object(a.createElement)(Ca,{setIndexingState:m,indexingState:l,showRunIndexationAlert:y,isStepperFinished:N}),Object(a.createElement)(k,{additionalClasses:"yst-mt-12",beforeGo:function(){return y||"idle"!==l?(L(!0),B(!1),!0):(h(!0),!1)},destination:q?"last":1},Object(u.__)("Continue","wordpress-seo")))),Object(a.createElement)(E.a,null,Object(a.createElement)(E.a.Header,{name:Object(u.__)("Site representation","wordpress-seo"),isFinished:w},Object(a.createElement)(R,{beforeGo:G,isVisible:$,additionalClasses:"yst-ml-auto"},Object(u.__)("Edit","wordpress-seo"))),Object(a.createElement)(E.a.Content,null,Object(a.createElement)(Ba,{onOrganizationOrPersonChange:M,dispatch:o,state:s,siteRepresentationEmpty:b}),Object(a.createElement)(E.a.Error,{id:"yoast-site-representation-step-error",message:s.stepErrors.siteRepresentation||""}),Object(a.createElement)(T,{stepperFinishedOnce:q,saveFunction:function(){return!b&&I||!b&&_?(f(!0),!1):b||"emptyChoice"!==s.companyOrPerson?(f("emptyChoice"===s.companyOrPerson||I||_),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,person_logo:e.personLogo,person_logo_id:e.personLogoId?e.personLogoId:0,company_or_person_user_id:e.personId},n=await c()({path:"yoast/v1/configuration/site_representation",method:"POST",data:t});return await n.json}(s).then(()=>(P([]),v("siteRepresentation"),r("siteRepresentation"),!0)).catch(e=>e.failures?(P(e.failures),!1):(e.message&&g("siteRepresentation",e.message),!1))):(f(!0),!1)},setEditState:B}))),Object(a.createElement)(E.a,null,Object(a.createElement)(E.a.Header,{name:Object(u.__)("Social profiles","wordpress-seo"),isFinished:j},Object(a.createElement)(R,{beforeGo:G,isVisible:$,additionalClasses:"yst-ml-auto"},Object(u.__)("Edit","wordpress-seo"))),Object(a.createElement)(E.a.Content,null,Object(a.createElement)(O,{state:s,dispatch:o,setErrorFields:P}),Object(a.createElement)(E.a.Error,{id:"yoast-social-profiles-step-error",message:s.stepErrors.socialProfiles||""}),Object(a.createElement)(T,{stepperFinishedOnce:q,saveFunction:function(){return"person"===s.companyOrPerson?!s.canEditUser||async function(e){const t={user_id:e.personId,facebook:e.personSocialProfiles.facebook,instagram:e.personSocialProfiles.instagram,linkedin:e.personSocialProfiles.linkedin,myspace:e.personSocialProfiles.myspace,pinterest:e.personSocialProfiles.pinterest,soundcloud:e.personSocialProfiles.soundcloud,tumblr:e.personSocialProfiles.tumblr,twitter:e.personSocialProfiles.twitter,youtube:e.personSocialProfiles.youtube,wikipedia:e.personSocialProfiles.wikipedia},n=await c()({path:"yoast/v1/configuration/person_social_profiles",method:"POST",data:t});return await n.json}(s).then(e=>!1===e.success?(P(e.failures),Promise.reject("There were errors saving social profiles")):e).then(()=>{P([]),v("socialProfiles"),r("socialProfiles")}).then(()=>!0).catch(e=>(e.failures&&P(e.failures),e.message&&g("socialProfiles",e.message),!1)):async function(e){const t={facebook_site:e.socialProfiles.facebookUrl,twitter_site:e.socialProfiles.twitterUsername,other_social_urls:e.socialProfiles.otherSocialUrls},n=await c()({path:"yoast/v1/configuration/social_profiles",method:"POST",data:t});return await n.json}(s).then(e=>!1===e.success?(P(e.failures),Promise.reject("There were errors saving social profiles")):e).then(()=>{P([]),v("socialProfiles"),r("socialProfiles")}).then(()=>!0).catch(e=>(e.failures&&P(e.failures),e.message&&g("socialProfiles",e.message),!1))},setEditState:B}))),Object(a.createElement)(E.a,null,Object(a.createElement)(E.a.Header,{name:Object(u.__)("Personal preferences","wordpress-seo"),isFinished:C},Object(a.createElement)(R,{beforeGo:G,isVisible:$,additionalClasses:"yst-ml-auto"},Object(u.__)("Edit","wordpress-seo"))),Object(a.createElement)(E.a.Content,null,Object(a.createElement)(tr,{state:s,setTracking:S}),Object(a.createElement)(E.a.Error,{id:"yoast-personal-preferences-step-error",message:s.stepErrors.personalPreferences||""}),Object(a.createElement)(T,{stepperFinishedOnce:q,saveFunction:function(){return async function(e){if(0!==e.tracking&&1!==e.tracking)throw"Value not set!";const t={tracking:e.tracking},n=await c()({path:"yoast/v1/configuration/enable_tracking",method:"POST",data:t});return await n.json}(s).then(()=>{1==!!s.tracking?document.getElementById("tracking-on").checked=!0:document.getElementById("tracking-off").checked=!0}).then(()=>r("personalPreferences")).then(()=>(v("personalPreferences"),!0)).catch(e=>(e.message&&g("personalPreferences",e.message),!1))},setEditState:B}))),Object(a.createElement)(E.a,null,Object(a.createElement)(E.a.Header,{name:Object(u.__)("Finish configuration","wordpress-seo"),isFinished:N}),Object(a.createElement)(E.a.Content,null,Object(a.createElement)(as,null))))))}s()(()=>{const e={isRtl:Boolean(Object(i.get)(window,"wpseoScriptData.metabox.isRtl",!1))},t=document.getElementById("wpseo-first-time-configuration");t&&Object(a.render)(Object(a.createElement)(o.Root,{context:e},Object(a.createElement)(ss,null)),t)})},24:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return s}));var a=n(1);function r(e){return e.charAt(0).toUpperCase()+e.slice(1)}function s(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return Object(a.createInterpolateElement)(e,{a:Object(a.createElement)("a",{id:n,href:t,target:"_blank",rel:"noopener noreferrer"})})}},25:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return i})),n.d(t,"e",(function(){return l})),n.d(t,"f",(function(){return c})),n.d(t,"g",(function(){return u})),n.d(t,"h",(function(){return d})),n.d(t,"i",(function(){return p})),n.d(t,"j",(function(){return m}));var a=n(0),r=function(e){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},e),a.createElement("path",{fillRule:"evenodd",d:"M10.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L12.586 11H5a1 1 0 110-2h7.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))},s=function(e){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},e),a.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"}))},o=function(e){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},e),a.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"}))},i=function(e){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},e),a.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"}))},l=function(e){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},e),a.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"}))},c=function(e){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},e),a.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"}))},u=function(e){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},e),a.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"}))},d=function(e){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},e),a.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"}))},p=function(e){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},e),a.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"}))},m=function(e){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},e),a.createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"}))}},26:function(e,t,n){var a;!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var a=arguments[t];if(a){var s=typeof a;if("string"===s||"number"===s)e.push(a);else if(Array.isArray(a)&&a.length){var o=r.apply(null,a);o&&e.push(o)}else if("object"===s)for(var i in a)n.call(a,i)&&a[i]&&e.push(i)}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(a=function(){return r}.apply(t,[]))||(e.exports=a)}()},27:function(e,t){e.exports=window.yoast.replacementVariableEditor},3:function(e,t){e.exports=window.wp.i18n},35:function(e,t,n){"use strict";n.d(t,"a",(function(){return de})),n.d(t,"b",(function(){return pe})),n.d(t,"c",(function(){return me})),n.d(t,"d",(function(){return be}));var a=n(4),r=n(9),s=n(1),o=n(0),i=n.n(o),l=n(2),c=n.n(l),u=n(8),d=n.n(u);const p=d.a.p`
	color: #606770;
	flex-shrink: 0;
	font-size: 12px;
	line-height: 16px;
	overflow: hidden;
	padding: 0;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
	margin: 0;
	position: ${e=>"landscape"===e.mode?"relative":"static"};
`,m=e=>{const{siteUrl:t}=e;return Object(s.createElement)(o.Fragment,null,Object(s.createElement)("span",{className:"screen-reader-text"},t),Object(s.createElement)(p,{"aria-hidden":"true"},Object(s.createElement)("span",null,t)))};m.propTypes={siteUrl:c.a.string.isRequired};var b=m,f=n(3),y=n(13);const h=d.a.img`
	&& {
		max-width: ${e=>e.width}px;
		height: ${e=>e.height}px;
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		max-width: none;
	}
`,g=d.a.img`
	&&{
		height: 100%;
		position: absolute;
		width: 100%;
		object-fit: cover;
	}
`,v=d.a.div`
	padding-bottom: ${e=>e.aspectRatio}%;
`,O=e=>{const{imageProps:t,width:n,height:a,imageMode:r}=e;return"landscape"===r?Object(s.createElement)(v,{aspectRatio:t.aspectRatio},Object(s.createElement)(g,{src:t.src,alt:t.alt})):Object(s.createElement)(h,{src:t.src,alt:t.alt,width:n,height:a,imageProperties:t})};O.propTypes={imageProps:c.a.shape({src:c.a.string.isRequired,alt:c.a.string.isRequired,aspectRatio:c.a.number.isRequired}).isRequired,width:c.a.number.isRequired,height:c.a.number.isRequired,imageMode:c.a.string},O.defaultProps={imageMode:"landscape"};const E={squareWidth:125,squareHeight:125,landscapeWidth:506,landscapeHeight:265,aspectRatio:50.2},w={squareWidth:158,squareHeight:158,landscapeWidth:527,landscapeHeight:273,portraitWidth:158,portraitHeight:237,aspectRatio:52.2,largeThreshold:{width:446,height:233}};function j(e){const{largeThreshold:t}=w;return e.height>e.width?"portrait":e.width<t.width||e.height<t.height||e.height===e.width?"square":"landscape"}function x(e){return"Twitter"===e?E:w}function C(e){return new Promise((t,n)=>{const a=new Image;a.onload=()=>{t({width:a.width,height:a.height})},a.onerror=n,a.src=e})}function S(e,t,n){return"landscape"===n?{widthRatio:t.width/e.landscapeWidth,heightRatio:t.height/e.landscapeHeight}:"portrait"===n?{widthRatio:t.width/e.portraitWidth,heightRatio:t.height/e.portraitHeight}:{widthRatio:t.width/e.squareWidth,heightRatio:t.height/e.squareHeight}}function k(e,t){return t.widthRatio<=t.heightRatio?{width:Math.round(e.width/t.widthRatio),height:Math.round(e.height/t.widthRatio)}:{width:Math.round(e.width/t.heightRatio),height:Math.round(e.height/t.heightRatio)}}function R(e,t,n){return"square"===n&&t.width===t.height?{width:e.squareWidth,height:e.squareHeight}:k(t,S(e,t,n))}async function P(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const a=await C(e);let r=n?"landscape":"square";"Facebook"===t&&(r=j(a));const s=x(t),o=R(s,a,r);return{mode:r,height:o.height,width:o.width}}async function I(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];try{return{imageProperties:await P(e,t,n),status:"loaded"}}catch(e){return{imageProperties:null,status:"errored"}}}const T=d.a.div`
	position: relative;
	${e=>"landscape"===e.mode?"max-width: "+e.dimensions.width:`min-width: ${e.dimensions.width}; height: ${e.dimensions.height}`};
	overflow: hidden;
	background-color: ${y.colors.$color_white};
`,_=d.a.div`
	box-sizing: border-box;
	max-width: ${w.landscapeWidth}px;
	height: ${w.landscapeHeight}px;
	background-color: ${y.colors.$color_grey};
	border-style: dashed;
	border-width: 1px;
	// We're not using standard colors to increase contrast for accessibility.
	color: #006DAC;
	// We're not using standard colors to increase contrast for accessibility.
	background-color: #f1f1f1;
	display: flex;
	justify-content: center;
	align-items: center;
	text-decoration: underline;
	font-size: 14px;
	cursor: pointer;
`;class M extends o.Component{constructor(e){super(e),this.state={imageProperties:null,status:"loading"},this.socialMedium="Facebook",this.handleFacebookImage=this.handleFacebookImage.bind(this),this.setState=this.setState.bind(this)}async handleFacebookImage(){try{const e=await I(this.props.src,this.socialMedium);this.setState(e),this.props.onImageLoaded(e.imageProperties.mode||"landscape")}catch(e){this.setState(e),this.props.onImageLoaded("landscape")}}componentDidUpdate(e){e.src!==this.props.src&&this.handleFacebookImage()}componentDidMount(){this.handleFacebookImage()}retrieveContainerDimensions(e){switch(e){case"square":return{height:w.squareHeight+"px",width:w.squareWidth+"px"};case"portrait":return{height:w.portraitHeight+"px",width:w.portraitWidth+"px"};case"landscape":return{height:w.landscapeHeight+"px",width:w.landscapeWidth+"px"}}}render(){const{imageProperties:e,status:t}=this.state;if("loading"===t||""===this.props.src||"errored"===t)return Object(s.createElement)(_,{onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},Object(f.__)("Select image","wordpress-seo"));const n=this.retrieveContainerDimensions(e.mode);return Object(s.createElement)(T,{mode:e.mode,dimensions:n,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,onClick:this.props.onImageClick},Object(s.createElement)(O,{imageProps:{src:this.props.src,alt:this.props.alt,aspectRatio:w.aspectRatio},width:e.width,height:e.height,imageMode:e.mode}))}}M.propTypes={src:c.a.string,alt:c.a.string,onImageLoaded:c.a.func,onImageClick:c.a.func,onMouseEnter:c.a.func,onMouseLeave:c.a.func},M.defaultProps={src:"",alt:"",onImageLoaded:a.noop,onImageClick:a.noop,onMouseEnter:a.noop,onMouseLeave:a.noop};var N=M,F=d.a.span`
	line-height: ${20}px;
	min-height : ${20}px;
	color: #1d2129;
	font-weight: 600;
	overflow: hidden;
	font-size: 16px;
	margin: 3px 0 0;
	letter-spacing: normal;
	white-space: normal;
	flex-shrink: 0;
	cursor: pointer;
	display: -webkit-box;
	-webkit-line-clamp: ${e=>e.lineCount};
	-webkit-box-orient: vertical;
	overflow: hidden;
`,L=d.a.p`
	line-height: ${16}px;
	min-height : ${16}px;
	color: #606770;
	font-size: 14px;
	padding: 0;
	text-overflow: ellipsis;
	margin: 3px 0 0 0;
	display: -webkit-box;
	cursor: pointer;
	-webkit-line-clamp: ${e=>e.lineCount};
	-webkit-box-orient: vertical;
	overflow: hidden;

	@media all and ( max-width: ${e=>e.maxWidth} ) {
		display: none;
	}
`;const D=e=>{switch(e){case"landscape":return"527px";case"square":case"portrait":return"369px";default:return"476px"}},A=d.a.div`
	box-sizing: border-box;
	display: flex;
	flex-direction: ${e=>"landscape"===e.mode?"column":"row"};
	background-color: #f2f3f5;
	max-width: 527px;
`,z=d.a.div`
	box-sizing: border-box;
	background-color: #f2f3f5;
	margin: 0;
	padding: 10px 12px;
	position: relative;
	border-bottom: ${e=>"landscape"===e.mode?"":"1px solid #dddfe2"};
	border-top: ${e=>"landscape"===e.mode?"":"1px solid #dddfe2"};
	border-right: ${e=>"landscape"===e.mode?"":"1px solid #dddfe2"};
	border: ${e=>"landscape"===e.mode?"1px solid #dddfe2":""};
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	justify-content: ${e=>"landscape"===e.mode?"flex-start":"center"};
	font-size: 12px;
	overflow: hidden;
`;class q extends o.Component{constructor(e){super(e),this.state={imageMode:null,maxLineCount:0,descriptionLineCount:0},this.facebookTitleRef=i.a.createRef(),this.onImageLoaded=this.onImageLoaded.bind(this),this.onImageEnter=this.props.onMouseHover.bind(this,"image"),this.onTitleEnter=this.props.onMouseHover.bind(this,"title"),this.onDescriptionEnter=this.props.onMouseHover.bind(this,"description"),this.onLeave=this.props.onMouseHover.bind(this,""),this.onSelectTitle=this.props.onSelect.bind(this,"title"),this.onSelectDescription=this.props.onSelect.bind(this,"description")}onImageLoaded(e){this.setState({imageMode:e})}getTitleLineCount(){return this.facebookTitleRef.current.offsetHeight/20}maybeSetMaxLineCount(){const{imageMode:e,maxLineCount:t}=this.state,n="landscape"===e?2:5;n!==t&&this.setState({maxLineCount:n})}maybeSetDescriptionLineCount(){const{descriptionLineCount:e,maxLineCount:t,imageMode:n}=this.state,a=this.getTitleLineCount();let r=t-a;"portrait"===n&&(r=5===a?0:4),r!==e&&this.setState({descriptionLineCount:r})}componentDidUpdate(){this.maybeSetMaxLineCount(),this.maybeSetDescriptionLineCount()}render(){const{imageMode:e,maxLineCount:t,descriptionLineCount:n}=this.state;return Object(s.createElement)(A,{id:"facebookPreview",mode:e},Object(s.createElement)(N,{src:this.props.imageUrl||this.props.imageFallbackUrl,alt:this.props.alt,onImageLoaded:this.onImageLoaded,onImageClick:this.props.onImageClick,onMouseEnter:this.onImageEnter,onMouseLeave:this.onLeave}),Object(s.createElement)(z,{mode:e},Object(s.createElement)(b,{siteUrl:this.props.siteUrl,mode:e}),Object(s.createElement)(F,{ref:this.facebookTitleRef,onMouseEnter:this.onTitleEnter,onMouseLeave:this.onLeave,onClick:this.onSelectTitle,lineCount:t},this.props.title),n>0&&Object(s.createElement)(L,{maxWidth:D(e),onMouseEnter:this.onDescriptionEnter,onMouseLeave:this.onLeave,onClick:this.onSelectDescription,lineCount:n},this.props.description)))}}q.propTypes={siteUrl:c.a.string.isRequired,title:c.a.string.isRequired,description:c.a.string,imageUrl:c.a.string,imageFallbackUrl:c.a.string,alt:c.a.string,onSelect:c.a.func,onImageClick:c.a.func,onMouseHover:c.a.func},q.defaultProps={description:"",alt:"",imageUrl:"",imageFallbackUrl:"",onSelect:()=>{},onImageClick:()=>{},onMouseHover:()=>{}};var U=q;const H=d.a.div`
	text-transform: lowercase;
	color: rgb(83, 100, 113);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin: 0;
	fill: currentcolor;
	display: flex;
	flex-direction: row;
	align-items: flex-end;
`,B=e=>Object(s.createElement)(H,null,Object(s.createElement)("span",null,e.siteUrl));B.propTypes={siteUrl:c.a.string.isRequired};var $=B;const V=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e?`\n\t\t\tmax-width: ${E.landscapeWidth}px;\n\t\t\t${t?"border-bottom: 1px solid #E1E8ED;":""}\n\t\t\tborder-radius: 14px 14px 0 0;\n\t\t\t`:`\n\t\twidth: ${E.squareWidth}px;\n\t\t${t?"border-right: 1px solid #E1E8ED;":""}\n\t\tborder-radius: 14px 0 0 14px;\n\t\t`},G=d.a.div`
	position: relative;
	box-sizing: content-box;
	overflow: hidden;
	background-color: #e1e8ed;
	flex-shrink: 0;
	${e=>V(e.isLarge)}
`,W=d.a.div`
	display: flex;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
	max-width: 100%;
	margin: 0;
	padding: 1em;
	text-align: center;
	font-size: 1rem;
	${e=>V(e.isLarge,!1)}
`,Y=d()(W)`
	${e=>e.isLarge&&`height: ${E.landscapeHeight}px;`}
	border-top-left-radius: 14px;
	${e=>e.isLarge?"border-top-right-radius":"border-bottom-left-radius"}: 14px;
	border-style: dashed;
	border-width: 1px;
	// We're not using standard colors to increase contrast for accessibility.
	color: #006DAC;
	// We're not using standard colors to increase contrast for accessibility.
	background-color: #f1f1f1;
	text-decoration: underline;
	font-size: 14px;
	cursor: pointer;
`;class K extends i.a.Component{constructor(e){super(e),this.state={status:"loading"},this.socialMedium="Twitter",this.handleTwitterImage=this.handleTwitterImage.bind(this),this.setState=this.setState.bind(this)}async handleTwitterImage(){if(null===this.props.src)return;const e=await I(this.props.src,this.socialMedium,this.props.isLarge);this.setState(e)}componentDidUpdate(e){e.src!==this.props.src&&this.handleTwitterImage()}componentDidMount(){this.handleTwitterImage()}render(){const{status:e,imageProperties:t}=this.state;return"loading"===e||""===this.props.src||"errored"===e?Object(s.createElement)(Y,{isLarge:this.props.isLarge,onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},Object(f.__)("Select image","wordpress-seo")):Object(s.createElement)(G,{isLarge:this.props.isLarge,onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},Object(s.createElement)(O,{imageProps:{src:this.props.src,alt:this.props.alt,aspectRatio:E.aspectRatio},width:t.width,height:t.height,imageMode:t.mode}))}}K.propTypes={isLarge:c.a.bool.isRequired,src:c.a.string,alt:c.a.string,onImageClick:c.a.func,onMouseEnter:c.a.func,onMouseLeave:c.a.func},K.defaultProps={src:"",alt:"",onMouseEnter:a.noop,onImageClick:a.noop,onMouseLeave:a.noop};const Q=d.a.div`
	display: flex;
	flex-direction: column;
	padding: 12px;
	justify-content: center;
	margin: 0;
	box-sizing: border-box;
	flex: auto;
	min-width: 0px;
	gap:2px;
	> * {
		line-height:20px;
		min-height:20px;
		font-size:15px;
    }
`,J=e=>Object(s.createElement)(Q,null,e.children);J.propTypes={children:c.a.array.isRequired};var Z=J,X=d.a.p`
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin: 0;
	color: rgb(15, 20, 25);
	cursor: pointer;
`,ee=d.a.p`
	max-height: 55px;
	overflow: hidden;
	text-overflow: ellipsis;
	margin: 0;
	color: rgb(83, 100, 113);
	display: -webkit-box;
	cursor: pointer;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;

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

	&:hover {
		background: #f5f8fa;
		border: 1px solid rgba(136,153,166,.5);
	}
`,ne=d()(te)`
	flex-direction: column;
	max-height: 370px;
`,ae=d()(te)`
	flex-direction: row;
	height: 125px;
`;class re extends o.Component{constructor(e){super(e),this.onImageEnter=this.props.onMouseHover.bind(this,"image"),this.onTitleEnter=this.props.onMouseHover.bind(this,"title"),this.onDescriptionEnter=this.props.onMouseHover.bind(this,"description"),this.onLeave=this.props.onMouseHover.bind(this,""),this.onSelectTitle=this.props.onSelect.bind(this,"title"),this.onSelectDescription=this.props.onSelect.bind(this,"description")}render(){const{isLarge:e,imageUrl:t,imageFallbackUrl:n,alt:a,title:r,description:o,siteUrl:i}=this.props,l=e?ne:ae;return Object(s.createElement)(l,{id:"twitterPreview"},Object(s.createElement)(K,{src:t||n,alt:a,isLarge:e,onImageClick:this.props.onImageClick,onMouseEnter:this.onImageEnter,onMouseLeave:this.onLeave}),Object(s.createElement)(Z,null,Object(s.createElement)($,{siteUrl:i}),Object(s.createElement)(X,{onMouseEnter:this.onTitleEnter,onMouseLeave:this.onLeave,onClick:this.onSelectTitle},r),Object(s.createElement)(ee,{onMouseEnter:this.onDescriptionEnter,onMouseLeave:this.onLeave,onClick:this.onSelectDescription},o)))}}re.propTypes={siteUrl:c.a.string.isRequired,title:c.a.string.isRequired,description:c.a.string,isLarge:c.a.bool,imageUrl:c.a.string,imageFallbackUrl:c.a.string,alt:c.a.string,onSelect:c.a.func,onImageClick:c.a.func,onMouseHover:c.a.func},re.defaultProps={description:"",alt:"",imageUrl:"",imageFallbackUrl:"",onSelect:()=>{},onImageClick:()=>{},onMouseHover:()=>{},isLarge:!0};var se=re,oe=n(7),ie=n(56),le=n(27);class ce extends o.Component{constructor(e){super(e),this.state={activeField:"",hoveredField:""},this.SocialPreview="Facebook"===e.socialMediumName?U:se,this.setHoveredField=this.setHoveredField.bind(this),this.setActiveField=this.setActiveField.bind(this),this.setEditorRef=this.setEditorRef.bind(this),this.setEditorFocus=this.setEditorFocus.bind(this)}setHoveredField(e){e!==this.state.hoveredField&&this.setState({hoveredField:e})}setActiveField(e){e!==this.state.activeField&&this.setState({activeField:e},()=>this.setEditorFocus(e))}setEditorFocus(e){switch(e){case"title":this.titleEditorRef.focus();break;case"description":this.descriptionEditorRef.focus()}}setEditorRef(e,t){switch(e){case"title":this.titleEditorRef=t;break;case"description":this.descriptionEditorRef=t}}render(){const{onDescriptionChange:e,onTitleChange:t,onSelectImageClick:n,onRemoveImageClick:a,socialMediumName:r,imageWarnings:o,siteUrl:l,description:c,descriptionInputPlaceholder:u,descriptionPreviewFallback:d,imageUrl:p,imageFallbackUrl:m,alt:b,title:f,titleInputPlaceholder:y,titlePreviewFallback:h,replacementVariables:g,recommendedReplacementVariables:v,applyReplacementVariables:O,isPremium:E,isLarge:w,socialPreviewLabel:j,idSuffix:x,activeMetaTabId:C}=this.props,S=O({title:f||h,description:c||d});return Object(s.createElement)(i.a.Fragment,null,j&&Object(s.createElement)(oe.SimulatedLabel,null,j),Object(s.createElement)(this.SocialPreview,{onMouseHover:this.setHoveredField,onSelect:this.setActiveField,onImageClick:n,siteUrl:l,title:S.title,description:S.description,imageUrl:p,imageFallbackUrl:m,alt:b,isLarge:w,activeMetaTabId:C}),Object(s.createElement)(ie.SocialMetadataPreviewForm,{onDescriptionChange:e,socialMediumName:r,title:f,titleInputPlaceholder:y,onRemoveImageClick:a,imageSelected:!!p,imageUrl:p,onTitleChange:t,onSelectImageClick:n,description:c,descriptionInputPlaceholder:u,imageWarnings:o,replacementVariables:g,recommendedReplacementVariables:v,onMouseHover:this.setHoveredField,hoveredField:this.state.hoveredField,onSelect:this.setActiveField,activeField:this.state.activeField,isPremium:E,setEditorRef:this.setEditorRef,idSuffix:x}))}}ce.propTypes={title:c.a.string.isRequired,onTitleChange:c.a.func.isRequired,description:c.a.string.isRequired,onDescriptionChange:c.a.func.isRequired,imageUrl:c.a.string.isRequired,imageFallbackUrl:c.a.string.isRequired,onSelectImageClick:c.a.func.isRequired,onRemoveImageClick:c.a.func.isRequired,socialMediumName:c.a.string.isRequired,alt:c.a.string,isPremium:c.a.bool,imageWarnings:c.a.array,isLarge:c.a.bool,siteUrl:c.a.string,descriptionInputPlaceholder:c.a.string,titleInputPlaceholder:c.a.string,descriptionPreviewFallback:c.a.string,titlePreviewFallback:c.a.string,replacementVariables:le.replacementVariablesShape,recommendedReplacementVariables:le.recommendedReplacementVariablesShape,applyReplacementVariables:c.a.func,socialPreviewLabel:c.a.string,idSuffix:c.a.string,activeMetaTabId:c.a.string},ce.defaultProps={imageWarnings:[],recommendedReplacementVariables:[],replacementVariables:[],isPremium:!1,isLarge:!0,siteUrl:"",descriptionInputPlaceholder:"",titleInputPlaceholder:"",descriptionPreviewFallback:"",titlePreviewFallback:"",alt:"",applyReplacementVariables:e=>e,socialPreviewLabel:"",idSuffix:"",activeMetaTabId:""};const ue=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 de(e){return new Promise((t,n)=>{window.wp.media.attachment||n(),window.wp.media.attachment(e).fetch().then(e=>{t(ue(e))}).catch(()=>n())})}function pe(e){(function(e){const t=window.wp.media();return t.on("select",()=>{const n=t.state().get("selection").first();e(ue(n.attributes))}),t})(e).open()}const me=e=>{const{width:t,height:n}=e,a=j({width:t,height:n}),s=w[a+"Width"],o=w[a+"Height"],i=Object.values(e.sizes).find(e=>e.width>=s&&e.height>=o);return{url:i?i.url:e.url,id:e.id,warnings:Object(r.validateFacebookImage)(e),alt:e.alt||""}},be=e=>{const t="summary"!==Object(a.get)(window,"wpseoScriptData.metabox.twitterCardType")?"landscape":"square",n=E[t+"Width"],s=E[t+"Height"],o=Object.values(e.sizes).find(e=>e.width>=n&&e.height>=s);return{url:o?o.url:e.url,id:e.id,warnings:Object(r.validateTwitterImage)(e),alt:e.alt||""}}},36:function(e,t){e.exports=window.wp.url},4:function(e,t){e.exports=window.lodash},43:function(e,t){e.exports=window.yoast.uiLibrary},44:function(e,t,n){"use strict";n.d(t,"c",(function(){return x})),n.d(t,"a",(function(){return k})),n.d(t,"b",(function(){return I}));var a=n(14),r=n.n(a),s=n(1),o=n(3),i=n(101),l=n.n(i),c=n(2),u=n.n(c),d=n(65),p=n(147);function m(e,t,n){return t&&!n?"yst-text-primary-500":e?"yst-text-gray-900":"yst-text-gray-500"}function b(e){let{name:t,description:n,isFinished:a,children:r}=e;const{stepIndex:o,activeStepIndex:i,lastStepIndex:l}=x(),c=i===o,u=l===o,[b,f]=Object(s.useState)(m(a,c,u));return Object(s.useEffect)(()=>{if(c){const e=m(a,c,u),t=setTimeout(()=>f(e),d.c.delayBeforeOpening);return()=>clearTimeout(t)}const e=m(a,c,u);f(e)},[i,a,u,m]),Object(s.createElement)("div",{className:"yst-relative yst-flex yst-items-center yst-group","aria-current":c?"step":null},Object(s.createElement)("span",{className:"yst-flex yst-items-center","aria-hidden":c?"true":null},Object(s.createElement)(p.c,{activationDelay:d.c.delayBeforeOpening,deactivationDelay:0,isFinished:a})),Object(s.createElement)("span",{className:"yst-ml-4 yst-min-w-0 yst-flex yst-flex-col"},Object(s.createElement)("span",{className:"yst-transition-colors yst-duration-500 yst-text-xs yst-font-[650] yst-tracking-wide yst-uppercase "+b},t),n&&Object(s.createElement)("span",{className:"yst-text-sm yst-text-gray-500"},n)),r)}b.propTypes={name:u.a.string.isRequired,isFinished:u.a.bool.isRequired,description:u.a.string,children:u.a.node},b.defaultProps={description:"",children:[]};var f=n(49);const{slideDuration:y,delayBeforeOpening:h,delayBeforeFadingIn:g,delayBeforeClosing:v}=d.c,{fadeDuration:O,delayUntilStepFaded:E,slideDuration:w}=d.b,j=Object(s.createContext)();function x(){const e=Object(s.useContext)(j);if(!e)throw new Error("Stepper compound components cannot be rendered outside the Stepper component");return e}function C(e){let{beforeGo:t,children:n,destination:a,...o}=e;const{stepIndex:i,setActiveStepIndex:l,lastStepIndex:c}=x(),u=Object(s.useCallback)(()=>{l("string"==typeof a?"last"===a?c:0:i+a)},[i,c,l,a]),d=Object(s.useCallback)(async()=>{let e=!0;t&&(e=!1,e=await t()),e&&u()},[u,t]);return Object(s.createElement)("button",r()({type:"button",onClick:d},o),n)}function S(e){let{children:t,...n}=e;const{stepIndex:a,setActiveStepIndex:o}=x(),i=Object(s.useCallback)(()=>{o(a)},[o,a]);return Object(s.createElement)("button",r()({type:"button",onClick:i,className:"yst-button yst-button--secondary yst-button--small"},n),t)}function k(e){let{children:t}=e;const{lastStepIndex:n,stepIndex:a,activeStepIndex:r}=x();return Object(s.createElement)(s.Fragment,null,a!==n&&Object(s.createElement)(s.Fragment,null,Object(s.createElement)("div",{className:"yst--ml-px yst-absolute yst-left-4 yst-w-0.5 yst-h-full yst-bg-gray-300 yst--bottom-6","aria-hidden":"true"}),Object(s.createElement)("div",{className:`yst-h-12 yst-transition-transform ${E} yst-ease-linear ${w} ${a<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"})),t)}function R(e){let{id:t,message:n,className:a}=e;return Object(s.createElement)(f.a,{id:t,type:"error",isVisible:!!n,className:a},
/* translators: %1$s expands to the error message returned by the server */
Object(o.sprintf)(Object(o.__)("An error has occurred: %1$s","wordpress-seo"),n))}function P(e){let{children:t}=e;const{activeStepIndex:n,stepIndex:a}=x(),r=n===a,[o,i]=Object(s.useState)(r?"auto":0),[c,u]=Object(s.useState)(!r);return Object(s.useEffect)(()=>{r?(i("auto"),setTimeout(()=>u(!1),g)):(u(!0),i(0))},[r]),Object(s.createElement)(s.Fragment,null,Object(s.createElement)(l.a,{id:"content-"+a,delay:0===o?v:h,height:o,easing:"ease-in-out",duration:y},Object(s.createElement)("div",{className:`yst-transition-opacity ${O} yst-relative yst-ml-12 yst-mt-4 yst-pb-1 ${c?"yst-opacity-0 yst-pointer-events-none":"yst-opacity-100"}`},t)))}function I(e){let{children:t,setActiveStepIndex:n,activeStepIndex:a,isStepperFinished:r}=e;return Object(s.createElement)("ol",null,t.map((e,o)=>Object(s.createElement)("li",{key:`${e.props.name}-${o}`,className:(o===t.length-1?"":"yst-pb-8")+" yst-mb-0 yst-relative yst-max-w-none"},Object(s.createElement)(j.Provider,{value:{stepIndex:o,activeStepIndex:a,setActiveStepIndex:n,lastStepIndex:t.length-1,isStepperFinished:r}},e))))}C.propTypes={beforeGo:u.a.func,children:u.a.node,destination:u.a.oneOfType([u.a.number,u.a.oneOf(["first","last"])])},C.defaultProps={beforeGo:null,children:Object(s.createElement)(s.Fragment,null,Object(o.__)("Continue","wordpress-seo")),destination:1},S.propTypes={children:u.a.node},S.defaultProps={children:Object(s.createElement)(s.Fragment,null,Object(o.__)("Edit","wordpress-seo"))},k.propTypes={children:u.a.node.isRequired},R.propTypes={id:u.a.string.isRequired,message:u.a.string.isRequired,className:u.a.string},R.defaultProps={className:""},P.propTypes={children:u.a.node.isRequired},I.propTypes={setActiveStepIndex:u.a.func.isRequired,activeStepIndex:u.a.number.isRequired,isStepperFinished:u.a.bool,children:u.a.node.isRequired},I.defaultProps={isStepperFinished:!1},k.Content=P,k.Error=R,k.Header=b,k.GoButton=C,k.EditButton=S},49:function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return d}));var a=n(1),r=n(25),s=n(2),o=n(26),i=n.n(o),l=n(101),c=n.n(l);function u(e){let t,n,{type:s,children:o,className:l}=e;switch(s){case"info":t=Object(a.createElement)(r.f,{"aria-hidden":"true",className:"yst-flex-shrink-0 yst-w-5 yst-h-5 yst-text-blue-500"}),n="yst-bg-blue-100 yst-text-blue-800";break;case"warning":t=Object(a.createElement)(r.e,{"aria-hidden":"true",className:"yst-flex-shrink-0 yst-w-5 yst-h-5 yst-text-yellow-500"}),n="yst-bg-yellow-100 yst-text-yellow-800";break;case"error":t=Object(a.createElement)(r.i,{"aria-hidden":"true",className:"yst-flex-shrink-0 yst-w-5 yst-h-5 yst-text-red-500"}),n="yst-bg-red-100 yst-text-red-800";break;case"success":t=Object(a.createElement)(r.b,{"aria-hidden":"true",className:"yst-flex-shrink-0 yst-w-5 yst-h-5 yst-text-emerald-600"}),n="yst-bg-green-100 yst-text-green-800"}return Object(a.createElement)("div",{className:i()("yst-flex yst-p-4 yst-rounded-md",n,l)},t,Object(a.createElement)("div",{className:"yst-flex-1 yst-ml-3 yst-text-sm"},o))}function d(e){let{id:t,isVisible:n,expandDuration:r,type:s,children:o,className:l}=e;const[d,p]=Object(a.useState)(n?"yst-opacity-100":"yst-opacity-0"),m=Object(a.useCallback)(()=>{p("yst-opacity-100")});return Object(a.createElement)(c.a,{id:t,height:n?"auto":0,easing:"linear",duration:r,onAnimationEnd:m},Object(a.createElement)(u,{type:s,className:i()("yst-transition-opacity yst-duration-300 yst-mt-4",d,l)},o))}u.propTypes={type:s.PropTypes.oneOf(["info","warning","error","success"]),children:s.PropTypes.oneOfType([s.PropTypes.arrayOf(s.PropTypes.node),s.PropTypes.node]).isRequired,className:s.PropTypes.string},u.defaultProps={type:"info",className:""},d.propTypes={id:s.PropTypes.string.isRequired,isVisible:s.PropTypes.bool.isRequired,type:s.PropTypes.oneOf(["info","warning","error","success"]),children:s.PropTypes.oneOfType([s.PropTypes.arrayOf(s.PropTypes.node),s.PropTypes.node]).isRequired,expandDuration:s.PropTypes.number,className:s.PropTypes.string},d.defaultProps={expandDuration:400,type:"info",className:""}},56:function(e,t){e.exports=window.yoast.socialMetadataForms},6:function(e,t){e.exports=window.wp.data},64:function(e,t,n){"use strict";n.d(t,"f",(function(){return i})),n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return c})),n.d(t,"d",(function(){return u})),n.d(t,"e",(function(){return p})),n.d(t,"a",(function(){return m}));var a=n(3),r=n(4),s=n(26),o=n.n(s);const i=[{name:"Facebook",placeholder:Object(a.__)("E.g. https://www.facebook.com/yoast","wordpress-seo")},{name:"Instagram",placeholder:Object(a.__)("E.g. https://www.instagram.com/yoast","wordpress-seo")},{name:"LinkedIn",placeholder:Object(a.__)("E.g. https://www.linkedin.com/yoast","wordpress-seo")},{name:"MySpace",placeholder:Object(a.__)("E.g. https://www.myspace.com/yoast","wordpress-seo")},{name:"Pinterest",placeholder:Object(a.__)("E.g. https://www.pinterest.com/yoast","wordpress-seo")},{name:"SoundCloud",placeholder:Object(a.__)("E.g. https://www.soundcloud.com/yoast","wordpress-seo")},{name:"Tumblr",placeholder:Object(a.__)("E.g. https://www.tumblr.com/yoast","wordpress-seo")},{name:"Twitter",placeholder:Object(a.__)("E.g. https://www.twitter.com/yoast","wordpress-seo")},{name:"YouTube",placeholder:Object(a.__)("E.g. https://www.youtube.com/yoast","wordpress-seo")},{name:"Wikipedia",placeholder:Object(a.__)("E.g. https://www.wikipedia.com/yoast","wordpress-seo")}],l=e=>"error-"+e,c=(e,t)=>{let{isVisible:n}=t;return n?{"aria-invalid":!0,"aria-describedby":l(e)}:{}};function u(e){let{active:t,selected:n}=e;return o()("yst-relative yst-cursor-default yst-select-none yst-py-2 yst-pl-3 yst-pr-9 yst-my-0",n&&"yst-bg-primary-500 yst-text-white",t&&!n&&"yst-bg-primary-200 yst-text-gray-700",!t&&!n&&"yst-text-gray-700")}function d(e,t){const n=function(e,t){return e.includes(t)?[...e]:[...e,t]}(e.editedSteps,t);return{...e,editedSteps:n}}function p(e,t){return e.map(e=>{const n=parseInt(e.replace("other_social_urls-",""),10);return n===t?"remove":n>t?"other_social_urls-"+(n-1):e}).filter(e=>"remove"!==e)}function m(e,t){let n=Object(r.cloneDeep)(e);switch(t.type){case"SET_COMPANY_OR_PERSON":return n=d(n,2),n.companyOrPerson=t.payload,n.companyOrPersonLabel=n.companyOrPersonOptions.filter(e=>e.value===t.payload).pop().label,n;case"CHANGE_COMPANY_NAME":return n=d(n,2),n.companyName=t.payload,n;case"SET_COMPANY_LOGO":return n=d(n,2),n.companyLogo=t.payload.url,n.companyLogoId=t.payload.id,n;case"REMOVE_COMPANY_LOGO":return n=d(n,2),n.companyLogo="",n.companyLogoId="",n;case"SET_PERSON_LOGO":return n=d(n,2),n.personLogo=t.payload.url,n.personLogoId=t.payload.id,n;case"REMOVE_PERSON_LOGO":return n=d(n,2),n.personLogo="",n.personLogoId="",n;case"SET_PERSON":return n=d(n,2),n.personId=t.payload.value,n.personName=t.payload.label,n;case"CHANGE_PERSON_SOCIAL_PROFILE":return n=d(n,3),n.personSocialProfiles[t.payload.socialMedium]=t.payload.value,n;case"INIT_PERSON_SOCIAL_PROFILES":return n.personSocialProfiles=t.payload.socialProfiles,n;case"SET_CAN_EDIT_USER":return n=d(n,2),n.canEditUser=!0===t.payload?1:0,n;case"CHANGE_SOCIAL_PROFILE":return n=d(n,3),n.socialProfiles[t.payload.socialMedium]=t.payload.value,n.errorFields=n.errorFields.filter(e=>"facebookUrl"===t.payload.socialMedium?"facebook_site"!==e:"twitterUsername"!==t.payload.socialMedium||"twitter_site"!==e),n;case"CHANGE_OTHERS_SOCIAL_PROFILE":return n=d(n,3),n.socialProfiles.otherSocialUrls[t.payload.index]=t.payload.value,n.errorFields=n.errorFields.filter(e=>e!=="other_social_urls-"+t.payload.index),n;case"ADD_OTHERS_SOCIAL_PROFILE":return n=d(n,3),n.socialProfiles.otherSocialUrls=[...n.socialProfiles.otherSocialUrls,t.payload.value],n;case"REMOVE_OTHERS_SOCIAL_PROFILE":return n=d(n,3),n.socialProfiles.otherSocialUrls.splice(t.payload.index,1),n.errorFields=p(n.errorFields,t.payload.index),n;case"SET_ERROR_FIELDS":return n.errorFields=t.payload,n;case"SET_STEP_ERROR":return n.stepErrors[t.payload.step]=t.payload.message,n;case"REMOVE_STEP_ERROR":return n.stepErrors=Object(r.pickBy)(n.stepErrors,(e,n)=>n!==t.payload),n;case"SET_TRACKING":return n=d(n,4),n.tracking=t.payload,n;default:return n}}},65:function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return s}));const a={slideDuration:500,fadeDuration:200,delayBeforeOpening:900,delayBeforeFadingIn:1400,delayBeforeClosing:200},r={fadeDuration:"yst-duration-200",slideDuration:"yst-duration-500",delayBeforeOpening:"yst-delay-[900ms]",delayUntilStepFaded:"yst-delay-200"};function s(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}},69:function(e,t){e.exports=window.wp.domReady},7:function(e,t){e.exports=window.yoast.componentsNew},8:function(e,t){e.exports=window.yoast.styledComponents},9:function(e,t){e.exports=window.yoast.helpers},90:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return o}));var a=n(0),r=function(e){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"},e),a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,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"}))},s=function(e){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"},e),a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,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"}))},o=function(e){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"},e),a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,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"}))}}});