(()=>{var e={2(e,t,s){"use strict";s.d(t,{A:()=>n});var r=s(1609);const n=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))})},244(e,t,s){"use strict";s.d(t,{t:()=>p});var r=s(4369),n=s(6087),o=s(7723),i=s(5831),a=s(1802),l=s.n(a),c=s(3657),d=s(2458),u=s(790);const p=({onGiveConsent:e,learnMoreLink:t,privacyPolicyLink:s,termsOfServiceLink:a,imageLink:l})=>{const{onClose:p,initialFocus:m}=(0,i.useModalContext)(),[y,h]=(0,i.useToggleState)(!1),g=(0,n.useMemo)(()=>({src:l,width:"432",height:"244"}),[l]),f=(0,d.x)((0,o.sprintf)(/* translators: %1$s and %2$s are a set of anchor tags and %3$s and %4$s are a set of anchor tags. */ /* translators: %1$s and %2$s are a set of anchor tags and %3$s and %4$s are a set of anchor tags. */
(0,o.__)("I approve the %1$sTerms of Service%2$s & %3$sPrivacy Policy%4$s of the Yoast AI service. This includes consenting to the collection and use of data to improve user experience.","wordpress-seo"),"<a1>","</a1>","<a2>","</a2>"),{a1:(0,u.jsx)(c.rd,{href:a}),a2:(0,u.jsx)(c.rd,{href:s})}),[x,v]=(0,i.useToggleState)(!1),w=(0,n.useCallback)(async()=>{v(),await e(),v()},[e]);return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{className:"yst-px-10 yst-pt-10 yst-introduction-gradient yst-text-center",children:(0,u.jsx)("div",{className:"yst-relative yst-w-full",children:(0,u.jsx)("img",{className:"yst-w-full yst-h-auto yst-rounded-md yst-drop-shadow-md",alt:"",loading:"lazy",decoding:"async",...g})})}),(0,u.jsxs)("div",{className:"yst-px-10 yst-pb-4 yst-flex yst-flex-col yst-items-center",children:[(0,u.jsxs)("div",{className:"yst-mt-4 yst-mx-1.5 yst-text-center",children:[(0,u.jsx)("h3",{className:"yst-text-slate-900 yst-text-lg yst-font-medium",children:(0,o.sprintf)(/* translators: %s expands to Yoast AI. */ /* translators: %s expands to Yoast AI. */
(0,o.__)("Grant consent for %s","wordpress-seo"),"Yoast AI")}),(0,u.jsx)("div",{className:"yst-mt-2 yst-text-slate-600 yst-text-sm",children:(0,d.x)((0,o.sprintf)(/* translators: %1$s is a break tag; %2$s and %3$s are anchor tag; %4$s is the arrow icon. */ /* translators: %1$s is a break tag; %2$s and %3$s are anchor tag; %4$s is the arrow icon. */
(0,o.__)("Enable AI-powered SEO! Use all Yoast AI features to boost your efficiency. Just give us the green light. %1$s%2$sLearn more%3$s%4$s","wordpress-seo"),"<br/>","<a>","<ArrowNarrowRightIcon />","</a>"),{a:(0,u.jsx)(c.rd,{href:t,className:"yst-inline-flex yst-items-center yst-gap-1 yst-no-underline yst-font-medium",variant:"primary"}),ArrowNarrowRightIcon:(0,u.jsx)(r.A,{className:"yst-w-4 yst-h-4 rtl:yst-rotate-180"}),br:(0,u.jsx)("br",{})})})]}),(0,u.jsx)("div",{className:"yst-flex yst-w-full yst-mt-6",children:(0,u.jsx)("hr",{className:"yst-w-full yst-text-gray-200"})}),(0,u.jsxs)("div",{className:"yst-flex yst-items-start yst-mt-4",children:[(0,u.jsx)("input",{type:"checkbox",id:"yst-ai-consent-checkbox",name:"yst-ai-consent-checkbox",checked:y,value:y?"true":"false",onChange:h,className:"yst-checkbox__input",ref:m}),(0,u.jsx)("label",{htmlFor:"yst-ai-consent-checkbox",className:"yst-label yst-checkbox__label yst-text-xs yst-font-normal yst-text-slate-500",children:f})]}),(0,u.jsx)("div",{className:"yst-w-full yst-flex yst-mt-4",children:(0,u.jsxs)(i.Button,{as:"button",className:"yst-grow",size:"large",disabled:!y,onClick:w,children:[x&&(0,u.jsx)(i.Spinner,{className:"yst-me-2"}),(0,o.__)("Grant consent","wordpress-seo")]})}),(0,u.jsx)(i.Button,{as:"button",className:"yst-mt-4",variant:"tertiary",onClick:p,children:(0,o.__)("Close","wordpress-seo")})]})]})};p.propTypes={onGiveConsent:l().func.isRequired,learnMoreLink:l().string.isRequired,privacyPolicyLink:l().string.isRequired,termsOfServiceLink:l().string.isRequired,imageLink:l().string.isRequired}},476(e,t,s){"use strict";s(2996),s(7723),s(5831);var r=s(1802),n=s.n(r);s(4370),s(3550),s(790),n().bool.isRequired,n().func.isRequired,n().func,n().string},790(e){"use strict";e.exports=window.ReactJSXRuntime},889(e,t,s){"use strict";s.d(t,{A:()=>n});var r=s(1679);const n=s.n(r)().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;
	}
`},963(e,t,s){"use strict";s.d(t,{A:()=>d}),s(1609);var r=s(1679),n=s.n(r),o=s(1802),i=s.n(o),a=s(790);const l=n().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;
    }
`,c=e=>(0,a.jsx)(l,{children:e.children});c.propTypes={children:i().array.isRequired};const d=c},1137(e,t,s){"use strict";s.d(t,{A:()=>n});var r=s(1609);const n=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z"}))})},1426(e,t,s){"use strict";s.d(t,{WG:()=>n.A,Xi:()=>r.A});var r=s(7415),n=s(1709);s(9498),s(6377)},1455(e){"use strict";e.exports=window.wp.apiFetch},1480(e,t,s){"use strict";s.d(t,{Z:()=>o});var r=s(7143),n=s(6087);const o=e=>{var t,s;const o=null===(t=(0,r.useDispatch)("core/edit-post"))||void 0===t?void 0:t.openGeneralSidebar,i=null===(s=(0,r.useDispatch)("core/editor"))||void 0===s?void 0:s.closePublishSidebar,{openEditorModal:a}=(0,r.useDispatch)("yoast-seo/editor");return(0,n.useCallback)(()=>{i(),o("yoast-seo/seo-sidebar"),e&&a("yoast-search-appearance-modal")},[i,o,a])}},1609(e){"use strict";e.exports=window.React},1679(e){"use strict";e.exports=window.yoast.styledComponents},1704(e,t,s){"use strict";s(2485),s(790)},1709(e,t,s){"use strict";s.d(t,{A:()=>x});var r=s(1609),n=s(1802),o=s.n(n),i=s(1679),a=s.n(i),l=s(4281),c=s(9e3),d=s(963),u=s(3103),p=s(7343),m=s(790);const y=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);
	}
`,h=a()(y)`
	flex-direction: column;
	max-height: 370px;
`,g=a()(y)`
	flex-direction: row;
	height: 125px;
`;class f extends r.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:s,alt:r,title:n,description:o,siteUrl:i}=this.props,a=e?h:g;return(0,m.jsxs)(a,{id:"twitterPreview",children:[(0,m.jsx)(c.A,{src:t||s,alt:r,isLarge:e,onImageClick:this.props.onImageClick,onMouseEnter:this.onImageEnter,onMouseLeave:this.onLeave}),(0,m.jsxs)(d.A,{children:[(0,m.jsx)(l.A,{siteUrl:i}),(0,m.jsx)(u.A,{onMouseEnter:this.onTitleEnter,onMouseLeave:this.onLeave,onClick:this.onSelectTitle,children:n}),(0,m.jsx)(p.A,{onMouseEnter:this.onDescriptionEnter,onMouseLeave:this.onLeave,onClick:this.onSelectDescription,children:o})]})]})}}f.propTypes={siteUrl:o().string.isRequired,title:o().string.isRequired,description:o().string,isLarge:o().bool,imageUrl:o().string,imageFallbackUrl:o().string,alt:o().string,onSelect:o().func,onImageClick:o().func,onMouseHover:o().func},f.defaultProps={description:"",alt:"",imageUrl:"",imageFallbackUrl:"",onSelect:()=>{},onImageClick:()=>{},onMouseHover:()=>{},isLarge:!0};const x=f},1802(e){"use strict";e.exports=window.yoast.propTypes},1855(e,t,s){"use strict";s(4631),s(7723),s(5831),s(8468);var r=s(1802),n=s.n(r);s(790),n().bool.isRequired,n().func,n().func,n().string.isRequired,n().string.isRequired,n().string.isRequired,n().string.isRequired},1949(e,t,s){"use strict";s(1609)},1969(e,t,s){"use strict";s.d(t,{cP:()=>a});var r=s(2379);function n(e,t,s){return"landscape"===s?{widthRatio:t.width/e.landscapeWidth,heightRatio:t.height/e.landscapeHeight}:"portrait"===s?{widthRatio:t.width/e.portraitWidth,heightRatio:t.height/e.portraitHeight}:{widthRatio:t.width/e.squareWidth,heightRatio:t.height/e.squareHeight}}function o(e,t){return t.widthRatio<=t.heightRatio?{width:Math.round(e.width/t.widthRatio),height:Math.round(e.height/t.widthRatio)}:{width:Math.round(e.width/t.heightRatio),height:Math.round(e.height/t.heightRatio)}}async function i(e,t,s=!1){const i=await function(e){return new Promise((t,s)=>{const r=new Image;r.onload=()=>{t({width:r.width,height:r.height})},r.onerror=s,r.src=e})}(e);let a=s?"landscape":"square";"Facebook"===t&&(a=(0,r.determineFacebookImageMode)(i));const l=function(e){return"Twitter"===e?r.TWITTER_IMAGE_SIZES:r.FACEBOOK_IMAGE_SIZES}(t),c=function(e,t,s){return"square"===s&&t.width===t.height?{width:e.squareWidth,height:e.squareHeight}:o(t,n(e,t,s))}(l,i,a);return{mode:a,height:c.height,width:c.width}}async function a(e,t,s=!1){try{return{imageProperties:await i(e,t,s),status:"loaded"}}catch(e){return{imageProperties:null,status:"errored"}}}},2279(e){"use strict";e.exports=window.wp.plugins},2310(e){"use strict";e.exports=window.wp.sanitize},2379(e){"use strict";e.exports=window.yoast.socialMetadataForms},2450(e,t,s){"use strict";var r=s(7723),n=s(5831),o=s(1802),i=s.n(o),a=s(790);const l=({handleRefreshClick:e,supportLink:t})=>(0,a.jsxs)("div",{className:"yst-flex yst-gap-2",children:[(0,a.jsx)(n.Button,{onClick:e,children:(0,r.__)("Refresh this page","wordpress-seo")}),(0,a.jsx)(n.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,r.__)("Contact support","wordpress-seo")})]});l.propTypes={handleRefreshClick:i().func.isRequired,supportLink:i().string.isRequired};const c=({handleRefreshClick:e,supportLink:t})=>(0,a.jsxs)("div",{className:"yst-grid yst-grid-cols-1 yst-gap-y-2",children:[(0,a.jsx)(n.Button,{className:"yst-order-last",onClick:e,children:(0,r.__)("Refresh this page","wordpress-seo")}),(0,a.jsx)(n.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,r.__)("Contact support","wordpress-seo")})]});c.propTypes={handleRefreshClick:i().func.isRequired,supportLink:i().string.isRequired};const d=({error:e,children:t=null})=>(0,a.jsxs)("div",{role:"alert",className:"yst-max-w-screen-sm yst-p-8 yst-space-y-4",children:[(0,a.jsx)(n.Title,{children:(0,r.__)("Something went wrong. An unexpected error occurred.","wordpress-seo")}),(0,a.jsx)("p",{children:(0,r.__)("We're very sorry, but it seems like the following error has interrupted our application:","wordpress-seo")}),(0,a.jsx)(n.Alert,{variant:"error",children:(null==e?void 0:e.message)||(0,r.__)("Undefined error message.","wordpress-seo")}),(0,a.jsx)("p",{children:(0,r.__)("Unfortunately, this means that any unsaved changes in this section will be lost. You can try and refresh this page to resolve the problem. If this error still occurs, please get in touch with our support team, and we'll get you all the help you need!","wordpress-seo")}),t]});d.propTypes={error:i().object.isRequired,children:i().node},d.VerticalButtons=c,d.HorizontalButtons=l},2458(e,t,s){"use strict";s.d(t,{x:()=>n}),s(7723);var r=s(6087);s(8468);const n=(e,t)=>{try{return(0,r.createInterpolateElement)(e,t)}catch(t){return console.error("Error in translation for:",e,t),e}}},2485(e,t){var s;!function(){"use strict";var r={}.hasOwnProperty;function n(){for(var e=[],t=0;t<arguments.length;t++){var s=arguments[t];if(s){var o=typeof s;if("string"===o||"number"===o)e.push(s);else if(Array.isArray(s)){if(s.length){var i=n.apply(null,s);i&&e.push(i)}}else if("object"===o){if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]")){e.push(s.toString());continue}for(var a in s)r.call(s,a)&&s[a]&&e.push(a)}}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):void 0===(s=function(){return n}.apply(t,[]))||(e.exports=s)}()},2505(e,t,s){"use strict";s(2),s(7695),s(7723),s(5831),s(2485);var r=s(1802),n=s.n(r);s(8629),s(4289),s(8519),s(790),n().string.isRequired,n().object,n().func.isRequired,n().bool.isRequired},2547(e){"use strict";e.exports=window.yoast.replacementVariableEditor},2619(e){"use strict";e.exports=window.wp.hooks},2996(e,t,s){"use strict";s.d(t,{A:()=>n});var r=s(1609);const n=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{fillRule:"evenodd",d:"M10.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L12.586 11H5a1 1 0 110-2h7.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))})},2998(e){"use strict";e.exports=window.yoast.reactHelmet},3023(e,t,s){"use strict";s.d(t,{p:()=>f});var r=s(4369),n=s(7695),o=s(6087),i=s(7723),a=s(8629),l=s(2458),c=s(5831),d=s(1802),u=s.n(d),p=s(6633),m=s(7410),y=s(2485),h=s.n(y),g=s(790);const f=({link:e,linkProps:t,isPromotionActive:s,isWooCommerceActive:d})=>{const u=d?a.l:a.g,y=(0,o.useMemo)(()=>d?(0,i.__)("Grow your store's visibility!","wordpress-seo"):(0,i.__)("Spend less time on SEO tasks!","wordpress-seo"),[d]),f=(0,o.useMemo)(()=>d?(0,i.__)("Help ready-to-buy shoppers and search engines find your product.","wordpress-seo"):(0,i.__)("Optimize your site faster, smarter, and with more confidence.","wordpress-seo"),[d]);let x=(0,i.__)("Buy now","wordpress-seo");const v=(0,o.useMemo)(()=>d?(0,i.__)("Less friction. Smarter optimization.","wordpress-seo"):(0,i.__)("Less friction. Faster publishing.","wordpress-seo"),[d]),w=d?(0,l.x)((0,i.sprintf)(/* translators: %1$s and %2$s expand to a span wrap to avoid linebreaks. %3$s expands to "Yoast SEO Premium". */ /* translators: %1$s and %2$s expand to a span wrap to avoid linebreaks. %3$s expands to "Yoast SEO Premium". */
(0,i.__)("%1$s%2$s %3$s","wordpress-seo"),"<nowrap>","</nowrap>","Yoast WooCommerce SEO"),{nowrap:(0,g.jsx)("span",{className:"yst-whitespace-nowrap"})}):(0,l.x)((0,i.sprintf)(/* translators: %1$s and %2$s expand to a span wrap to avoid linebreaks. %3$s expands to "Yoast SEO Premium". */ /* translators: %1$s and %2$s expand to a span wrap to avoid linebreaks. %3$s expands to "Yoast SEO Premium". */
(0,i.__)("%1$s%2$s %3$s","wordpress-seo"),"<nowrap>","</nowrap>","Yoast SEO Premium"),{nowrap:(0,g.jsx)("span",{className:"yst-whitespace-nowrap"})}),b=s("black-friday-promotion");return b&&(x=(0,i.__)("Buy now for 30% off","wordpress-seo")),(0,g.jsxs)("div",{className:h()("yst-p-6 yst-rounded-lg yst-text-slate-600 yst-bg-white yst-shadow yst-border",d?"yst-border-woo-light yst-border-opacity-50":"yst-border-primary-300"),children:[(0,g.jsx)("figure",{className:"yst-logo-square yst-w-16 yst-h-16 yst-mx-auto yst-overflow-hidden yst-relative yst-z-10 yst-mt-[-2.6rem]",children:d?(0,g.jsx)(m.h,{}):(0,g.jsx)(p.h,{})}),b&&(0,g.jsx)("div",{className:"sidebar__sale_banner_container",children:(0,g.jsx)("div",{className:"sidebar__sale_banner",children:(0,g.jsx)("span",{className:"banner_text",children:(0,i.__)("BLACK FRIDAY | 30% OFF","wordpress-seo")})})}),(0,g.jsx)(c.Title,{as:"h2",className:h()("yst-mt-6 yst-text-xl yst-font-semibold",d?"yst-text-woo-light":"yst-text-primary-500"),children:w}),(0,g.jsx)("p",{className:"yst-mt-3 yst-font-medium yst-text-slate-800",children:y}),(0,g.jsx)("p",{className:"yst-mt-1 yst-font-normal",children:f}),(0,g.jsx)("ul",{className:"yst-list-outside yst-text-slate-600 yst-mt-4 yst-flex yst-flex-col yst-gap-2",children:u(!0).map((e,t)=>(0,g.jsxs)("li",{className:"yst-flex yst-items-start",children:[(0,g.jsx)(n.A,{className:"yst-mr-2 yst-text-green-500 yst-w-[19.5px] yst-h-[19.5px] yst-flex-shrink-0"}),e]},`upsell-benefit-${t}`))}),(0,g.jsxs)(c.Button,{as:"a",variant:"upsell",href:e,target:"_blank",rel:"noopener",className:"yst-flex yst-justify-center yst-gap-2 yst-mt-4 focus:yst-ring-offset-primary-500",...t,children:[(0,g.jsx)("span",{children:x}),(0,g.jsx)(r.A,{className:"yst-w-4 yst-h-4 yst--ms-1 yst-shrink-0"})]}),(0,g.jsx)("p",{className:"yst-text-center yst-text-xs yst-font-normal yst-leading-5 yst-text-slate-500 yst-italic yst-mt-3 yst-mb-2",children:v}),(0,g.jsx)("hr",{className:"yst-border-t yst-border-slate-200 yst-my-4"}),(0,g.jsxs)("ul",{className:"yst-text-center yst-text-xs yst-font-medium yst-text-slate-800 yst-list-none",children:[(0,g.jsx)("li",{children:(0,i.__)("30-day money back guarantee","wordpress-seo")}),(0,g.jsx)("li",{children:(0,i.__)("24/7 support","wordpress-seo")})]})]})};f.propTypes={link:u().string.isRequired,linkProps:u().object.isRequired,isPromotionActive:u().func.isRequired}},3103(e,t,s){"use strict";s.d(t,{A:()=>n});var r=s(1679);const n=s.n(r)().p`
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin: 0;
	color: rgb(15, 20, 25);
	cursor: pointer;
`},3301(e,t,s){"use strict";s.d(t,{Qo:()=>n,Tf:()=>i,bw:()=>r,pb:()=>o,x_:()=>a});const r="yoast-seo/content-planner",n={idle:"idle",consent:"consent",contentSuggestions:"content-suggestions",contentOutline:"content-outline"},o={errorCode:null,errorIdentifier:null,errorMessage:null,missingLicenses:[]},i=4,a="yoast-seo-tailwind-css"},3313(e,t,s){"use strict";s.d(t,{al:()=>o,mY:()=>n});const r=e=>{const t=document.getElementById(e);t&&(t.value="1")},n=()=>{r("yoast_wpseo_is_content_planner_banner_rendered")},o=()=>{r("yoast_wpseo_is_content_planner_banner_dismissed")}},3335(e){"use strict";e.exports=window.yoast.helpers},3387(e,t,s){"use strict";s.d(t,{q:()=>m});var r=s(6087),n=s(7723),o=s(5831),i=s(2485),a=s.n(i),l=s(1802),c=s.n(l),d=s(2998),u=s(8334),p=s(790);const m=({videoId:e,thumbnail:t,wistiaEmbedPermission:s,className:i=""})=>{const[l,c]=(0,r.useState)(s.value?u.BG.isPlaying:u.BG.showPlay),m=(0,r.useCallback)(()=>c(u.BG.isPlaying),[c]),y=(0,r.useCallback)(()=>{s.value?m():c(u.BG.askPermission)},[s.value,m,c]),h=(0,r.useCallback)(()=>c(u.BG.showPlay),[c]),g=(0,r.useCallback)(()=>{s.set(!0),m()},[s.set,m]);return(0,p.jsxs)(p.Fragment,{children:[s.value&&(0,p.jsx)(d.Helmet,{children:(0,p.jsx)("script",{src:"https://fast.wistia.com/assets/external/E-v1.js",async:!0})}),(0,p.jsxs)("div",{className:a()("yst-relative yst-w-full yst-h-0 yst-pt-[47.25%] yst-overflow-hidden yst-rounded-md yst-drop-shadow-md yst-bg-white",i),children:[l===u.BG.showPlay&&(0,p.jsx)("button",{type:"button",className:"yst-absolute yst-inset-0 yst-button yst-p-0 yst-border-none yst-bg-white yst-transition-opacity yst-duration-1000 yst-opacity-100",onClick:y,children:(0,p.jsx)("img",{className:"yst-w-full yst-h-auto yst-object-contain",alt:"",loading:"lazy",decoding:"async",...t})}),l===u.BG.askPermission&&(0,p.jsxs)("div",{className:"yst-absolute yst-inset-0 yst-flex yst-flex-col yst-items-center yst-justify-center yst-bg-white",children:[(0,p.jsxs)("p",{className:"yst-max-w-xs yst-mx-auto yst-text-center",children:[s.status===u.$H.loading&&(0,p.jsx)(o.Spinner,{}),s.status!==u.$H.loading&&(0,n.sprintf)(/* translators: %1$s expands to Yoast SEO. %2$s expands to Wistia. */ /* translators: %1$s expands to Yoast SEO. %2$s expands to Wistia. */
(0,n.__)("To see this video, you need to allow %1$s to load embedded videos from %2$s.","wordpress-seo"),"Yoast SEO","Wistia")]}),(0,p.jsxs)("div",{className:"yst-flex yst-mt-6 yst-gap-x-4",children:[(0,p.jsx)(o.Button,{type:"button",variant:"secondary",onClick:h,disabled:s.status===u.$H.loading,children:(0,n.__)("Deny","wordpress-seo")}),(0,p.jsx)(o.Button,{type:"button",variant:"primary",onClick:g,disabled:s.status===u.$H.loading,children:(0,n.__)("Allow","wordpress-seo")})]})]}),s.value&&l===u.BG.isPlaying&&(0,p.jsxs)("div",{className:"yst-absolute yst-w-full yst-h-full yst-top-0 yst-right-0",children:[null===e&&(0,p.jsx)(o.Spinner,{className:"yst-h-full yst-mx-auto"}),null!==e&&(0,p.jsx)("div",{className:`wistia_embed wistia_async_${e} videoFoam=true`})]})]})]})};m.propTypes={videoId:c().string.isRequired,thumbnail:c().shape({src:c().string.isRequired,width:c().string,height:c().string}).isRequired,wistiaEmbedPermission:c().shape({value:c().bool.isRequired,status:c().string.isRequired,set:c().func.isRequired}).isRequired,hasPadding:c().bool}},3478(e,t,s){"use strict";s(1609)},3550(e,t,s){"use strict";s.d(t,{r:()=>l});var r=s(7723),n=s(5831),o=s(1802),i=s.n(o),a=s(790);const l=({href:e,children:t=null,...s})=>(0,a.jsxs)(n.Link,{target:"_blank",rel:"noopener noreferrer",...s,href:e,children:[t,(0,a.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ /* translators: Hidden accessibility text. */
(0,r.__)("(Opens in a new browser tab)","wordpress-seo")})]});l.propTypes={href:i().string.isRequired,children:i().node}},3552(e,t,s){"use strict";s(5831);var r=s(1802),n=s.n(r);s(790);n().string,n().node.isRequired,n().node.isRequired,n().node,n().oneOf(Object.keys({lg:{grid:"yst-grid lg:yst-grid-cols-3 lg:yst-gap-12",col1:"yst-col-span-1",col2:"lg:yst-mt-0 lg:yst-col-span-2"},xl:{grid:"yst-grid xl:yst-grid-cols-3 xl:yst-gap-12",col1:"yst-col-span-1",col2:"xl:yst-mt-0 xl:yst-col-span-2"},"2xl":{grid:"yst-grid 2xl:yst-grid-cols-3 2xl:yst-gap-12",col1:"yst-col-span-1",col2:"2xl:yst-mt-0 2xl:yst-col-span-2"}}))},3601(e,t,s){"use strict";s(6087),s(5831),s(8468);var r=s(1802),n=s.n(r);s(4976),s(790),n().string.isRequired,n().string},3657(e,t,s){"use strict";s.d(t,{eN:()=>r.e,pk:()=>o.p,qc:()=>i.q,rd:()=>n.r,ve:()=>a.v});var r=s(5768),n=(s(6789),s(2450),s(3552),s(3478),s(3601),s(3550)),o=s(3023),i=(s(2505),s(4432),s(1855),s(3387)),a=(s(1949),s(476),s(1704),s(244),s(3999))},3832(e){"use strict";e.exports=window.wp.url},3838(e){"use strict";e.exports=window.yoast.searchMetadataPreviews},3999(e,t,s){"use strict";s.d(t,{v:()=>d});var r=s(7143),n=s(6087),o=s(1802),i=s.n(o),a=s(244),l=s(790);const c={termsOfService:"https://yoa.st/ai-generator-terms-of-service",privacyPolicy:"https://yoa.st/ai-generator-privacy-policy",learnMore:"https://yoa.st/ai-generator-learn-more"},d=({storeName:e,onConsentGranted:t,linkStoreName:s,links:o={}})=>{const i=(0,n.useMemo)(()=>({...c,...o}),[o]),{termsOfServiceLink:d,privacyPolicyLink:u,learnMoreLink:p,imageLink:m,endpoint:y}=(0,r.useSelect)(t=>{const r=t(s),n=t(e);return{termsOfServiceLink:r.selectLink(i.termsOfService),privacyPolicyLink:r.selectLink(i.privacyPolicy),learnMoreLink:r.selectLink(i.learnMore),imageLink:r.selectImageLink("ai-consent.png"),endpoint:n.selectAiGeneratorConsentEndpoint()}},[s,e,i]),{storeAiGeneratorConsent:h}=(0,r.useDispatch)(e),g=(0,n.useCallback)(async()=>{await h(!0,y),t()},[h,t,y]);return(0,l.jsx)(a.t,{termsOfServiceLink:d,privacyPolicyLink:u,learnMoreLink:p,imageLink:m,onGiveConsent:g})};d.propTypes={storeName:i().string.isRequired,onConsentGranted:i().func.isRequired,linkStoreName:i().string.isRequired,links:i().shape({termsOfService:i().string,privacyPolicy:i().string,learnMore:i().string})}},4080(e,t,s){"use strict";s.d(t,{h:()=>a});var r,n,o=s(1609);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)({}).hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},i.apply(null,arguments)}const a=e=>o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 425 456.27"},e),r||(r=o.createElement("path",{d:"M73 405.26a66.79 66.79 0 0 1-6.54-1.7 64.75 64.75 0 0 1-6.28-2.31c-1-.42-2-.89-3-1.37-1.49-.72-3-1.56-4.77-2.56-1.5-.88-2.71-1.64-3.83-2.39-.9-.61-1.8-1.26-2.68-1.92a70.154 70.154 0 0 1-5.08-4.19 69.21 69.21 0 0 1-8.4-9.17c-.92-1.2-1.68-2.25-2.35-3.24a70.747 70.747 0 0 1-3.44-5.64 68.29 68.29 0 0 1-8.29-32.55V142.13a68.26 68.26 0 0 1 8.29-32.55c1-1.92 2.21-3.82 3.44-5.64s2.55-3.58 4-5.27a69.26 69.26 0 0 1 14.49-13.25C50.37 84.19 52.27 83 54.2 82A67.59 67.59 0 0 1 73 75.09a68.75 68.75 0 0 1 13.75-1.39h169.66L263 55.39H86.75A86.84 86.84 0 0 0 0 142.13v196.09A86.84 86.84 0 0 0 86.75 425h11.32v-18.35H86.75A68.75 68.75 0 0 1 73 405.26zM368.55 60.85l-1.41-.53-6.41 17.18 1.41.53a68.06 68.06 0 0 1 8.66 4c1.93 1 3.82 2.2 5.65 3.43A69.19 69.19 0 0 1 391 98.67c1.4 1.68 2.72 3.46 3.95 5.27s2.39 3.72 3.44 5.64a68.29 68.29 0 0 1 8.29 32.55v264.52H233.55l-.44.76c-3.07 5.37-6.26 10.48-9.49 15.19L222 425h203V142.13a87.2 87.2 0 0 0-56.45-81.28z"})),n||(n=o.createElement("path",{stroke:"#000",strokeMiterlimit:10,strokeWidth:3.81,d:"M119.8 408.28v46c28.49-1.12 50.73-10.6 69.61-29.58 19.45-19.55 36.17-50 52.61-96L363.94 1.9H305l-98.25 272.89-48.86-153h-54l71.7 184.18a75.67 75.67 0 0 1 0 55.12c-7.3 18.68-20.25 40.66-55.79 47.19z"})))},4281(e,t,s){"use strict";s.d(t,{A:()=>d}),s(1609);var r=s(1679),n=s.n(r),o=s(1802),i=s.n(o),a=s(790);const l=n().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;
`,c=e=>(0,a.jsx)(l,{children:(0,a.jsx)("span",{children:e.siteUrl})});c.propTypes={siteUrl:i().string.isRequired};const d=c},4289(e,t,s){"use strict";s.d(t,{h:()=>i});var r,n=s(1609);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)({}).hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},o.apply(null,arguments)}const i=e=>n.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",fill:"none","aria-hidden":"true",viewBox:"0 0 16 12"},e),r||(r=n.createElement("path",{fill:"#CD82AB",d:"M10.989 6.74 7.885.98v.002L7.882.98 4.778 6.74 0 3.32l1.126 7.702H14.64l1.126-7.703L10.99 6.74z"})))},4369(e,t,s){"use strict";s.d(t,{A:()=>n});var r=s(1609);const n=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{fillRule:"evenodd",d:"M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))})},4370(e,t,s){"use strict";s.d(t,{h:()=>we});var r,n,o,i,a,l,c,d,u,p,m,y,h,g,f,x,v,w,b,j,_,S,C,k,E,N,R,M,L,T,P,O,I,A,$,F,U,z,B,q,D,H,W,G,V,Y,K,Z,J,Q,X,ee,te,se,re,ne,oe,ie,ae,le,ce,de,ue,pe,me,ye,he,ge,fe,xe=s(1609);function ve(){return ve=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)({}).hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},ve.apply(null,arguments)}const we=e=>xe.createElement("svg",ve({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",fill:"none","aria-hidden":"true",viewBox:"0 0 252 60"},e),r||(r=xe.createElement("linearGradient",{id:"yoast-connect-google-site-kit_svg__a"},xe.createElement("stop",{offset:0,stopColor:"#570732"}),xe.createElement("stop",{offset:.04,stopColor:"#610b39"}),xe.createElement("stop",{offset:.15,stopColor:"#79164b"}),xe.createElement("stop",{offset:.29,stopColor:"#8c1e59"}),xe.createElement("stop",{offset:.44,stopColor:"#9a2463"}),xe.createElement("stop",{offset:.63,stopColor:"#a22768"}),xe.createElement("stop",{offset:1,stopColor:"#a4286a"}))),n||(n=xe.createElement("linearGradient",{xlinkHref:"#yoast-connect-google-site-kit_svg__a",id:"yoast-connect-google-site-kit_svg__b",x1:49.556,x2:49.556,y1:36.267,y2:23.152,gradientUnits:"userSpaceOnUse"})),o||(o=xe.createElement("linearGradient",{xlinkHref:"#yoast-connect-google-site-kit_svg__a",id:"yoast-connect-google-site-kit_svg__c",x1:82.801,x2:82.801,y1:38.819,y2:20.113,gradientUnits:"userSpaceOnUse"})),i||(i=xe.createElement("linearGradient",{xlinkHref:"#yoast-connect-google-site-kit_svg__a",id:"yoast-connect-google-site-kit_svg__d",x1:62.504,x2:62.504,y1:36.222,y2:23.113,gradientUnits:"userSpaceOnUse"})),a||(a=xe.createElement("linearGradient",{xlinkHref:"#yoast-connect-google-site-kit_svg__a",id:"yoast-connect-google-site-kit_svg__e",x1:73.951,x2:73.951,y1:36.276,y2:23.046,gradientUnits:"userSpaceOnUse"})),l||(l=xe.createElement("linearGradient",{id:"yoast-connect-google-site-kit_svg__f",x1:25.237,x2:25.237,y1:16.169,y2:36.914,gradientUnits:"userSpaceOnUse"},xe.createElement("stop",{offset:0,stopColor:"#77b227"}),xe.createElement("stop",{offset:.47,stopColor:"#75b027"}),xe.createElement("stop",{offset:.64,stopColor:"#6eab27"}),xe.createElement("stop",{offset:.75,stopColor:"#63a027"}),xe.createElement("stop",{offset:.85,stopColor:"#529228"}),xe.createElement("stop",{offset:.93,stopColor:"#3c8028"}),xe.createElement("stop",{offset:1,stopColor:"#246b29"}))),c||(c=xe.createElement("clipPath",{id:"yoast-connect-google-site-kit_svg__g"},xe.createElement("path",{d:"M169.334 22h14.973v15.909h-14.973z"}))),d||(d=xe.createElement("path",{fill:"url(#yoast-connect-google-site-kit_svg__b)",fillRule:"evenodd",d:"M36.765 29.643c0-3.42 1.83-6.49 6.405-6.49 4.402 0 6.375 2.8 6.386 6.698.008 3.2-1.785 6.416-6.386 6.416-4.602 0-6.405-3.072-6.405-6.624zm8.432-2.74c-1.174-1.64-4.688-1.64-4.8 2.932.046 2.582 1.245 3.614 2.773 3.63 3.316.039 3.092-5.067 2.027-6.562z",clipRule:"evenodd"})),u||(u=xe.createElement("path",{fill:"url(#yoast-connect-google-site-kit_svg__c)",d:"M80.278 33.094v-6.631h2.368v-2.874h-2.368v-3.476h-3.66v3.476h-1.856v2.876h1.857v6.258c0 3.553 2.477 5.665 5.092 6.102l1.092-2.949c-1.524-.192-2.51-1.332-2.525-2.782z"})),p||(p=xe.createElement("path",{fill:"url(#yoast-connect-google-site-kit_svg__d)",fillRule:"evenodd",d:"M61.81 27.062v4.981c0 .7.196 1.67.426 2.803.088.436.182.897.27 1.376h-3.523l-.611-1.472c-4.118 2.994-8.053.974-8.053-2.168 0-4.131 4.01-4.632 7.777-4.632l.003-.249c.01-.465.02-.985-.24-1.336v-.007l-.034-.04-.011-.013c-.602-.675-2.327-1.028-5.21.341l-1.283-2.575c4.428-1.546 10.143-1.555 10.46 2.47.019.174.028.347.03.52zm-6.52 3.81c-2.718 1.331-.064 4.384 2.835 1.14v-1.425c-.949 0-2.035.012-2.835.284z",clipRule:"evenodd"})),m||(m=xe.createElement("path",{fill:"url(#yoast-connect-google-site-kit_svg__e)",d:"M67.439 26.794c0-1.227 1.966-1.8 5.064-.386l1.072-2.605c-4.17-1.262-9.866-1.371-9.904 2.991-.017 2.091 1.324 3.216 3.255 3.934 1.337.497 3.268.754 3.262 1.82-.007 1.391-3 1.604-5.725-.268l-1.101 2.823c3.716 1.85 10.627 1.902 10.59-2.734-.03-4.583-6.513-3.798-6.513-5.575z"})),y||(y=xe.createElement("path",{fill:"url(#yoast-connect-google-site-kit_svg__f)",d:"m35.218 16.875-5.305 14.734-2.54-7.956h-3.779l4.23 10.866a3.956 3.956 0 0 1 0 2.877c-.474 1.213-1.26 2.25-3.177 2.508v3.221c3.734 0 5.753-2.295 7.554-7.326l7.06-18.924z"})),h||(h=xe.createElement("path",{fill:"#f0ecf0",d:"M124.088 57.357c15.427 0 27.934-12.506 27.934-27.933S139.515 1.49 124.088 1.49 96.155 13.997 96.155 29.424s12.506 27.933 27.933 27.933z"})),g||(g=xe.createElement("path",{fill:"#9e005d",d:"M122.68 23.422c5.075-5.662 3.282-.196 13.081-2.26 2.792-.587 7.802-1.905 9.067.833 1.427 3.092 4.014 3.471 3.211 5.47-1.412 3.512-6.46 4.52-7.887.556-1.819-1.232-8.98 2.24-11.167 2.775-.813.198-.868-2.038-1.675-2.168-.529-.085-.462-.17-.939-.575-4.613-3.918-4.904-3.277-5.22-4.126.482-.115.95-.396 1.531-.503z"})),f||(f=xe.createElement("path",{fill:"#6c2548",d:"M145.465 25.27c-1.744-.556-3.859.788-3.015 2.668.204.456 1.233 2.392 1.665 2.536 1.633.552 5.651-2.227 1.35-5.204z"})),x||(x=xe.createElement("path",{fill:"#ffc399",d:"M145.972 26.652c-.452-.226-2.526.313-2.3 1.188.281 1.084.758 1.655 1.395 1.998 1.627.875 1.365 2.531 3.684 2.5 1.12-.015 4.022-1.557 4.118-.456.157 1.823.464 3.564.792 3.17.792-.951 1.109-1.03 1.188-4.2.021-.887-2.14-1.506-3.013-2.854-.473-.733-2.932-.714-5.866-1.348z"})),v||(v=xe.createElement("path",{fill:"#be1e2d",d:"M109.348 16.345c-2.102-1.797-8.454 4.23-7.974 6.137.479-.51 1.186-1.505 1.973-1.316-2.719 1.838-3.191 6.484-1.784 9.259.158-.735.439-1.525.897-2.123-.778 3.037.466 8.256 4.271 10.873-.26-1.915-1.201-5.028.477-6.267 2.485-1.836 5.651-2.398 7.153-5.43 3.716-7.506-7.675-12.913-5.013-11.135z"})),w||(w=xe.createElement("path",{fill:"#9e005d",d:"M111.503 27.227c-1.65.136-7.152 11.633.475 20.361 1.067 1.223 2.372 3.57 3.92 3.78 3.256.443 11.848-1.812 15.059-3.188 12.146-5.202 1.267-10.842-.308-16.792-1.421-5.366-1.725-8.762-7.928-8.997-2.92-.11-11.15 1.768-11.95 5.058-.224.108-.109-.08.732-.224z"})),b||(b=xe.createElement("path",{fill:"#6c2548",d:"M123.196 23.817c3.828 1.233 6.256 5.375 7.755 8.771-1.38-4.316-2.059-8.262-7.932-8.95-.013-.072.419-.694.177.18z"})),j||(j=xe.createElement("path",{fill:"#6c2548",d:"M127.718 23.362c1.071.893 1.961 2.794 2.438 3.984.522 1.306.088 3.329.571 4.638-1.292-3.232-1.307-5.14-3.007-8.622z"})),_||(_=xe.createElement("path",{fill:"#ffc399",d:"M125.772 33.468c-1.058.375-2.898.677-4.103 1.248-2.187 1.037-4.936-1.725-7.313-1.188-.858.194-3.845-.873-4.082-1.942-.293-1.325-.745-1.352-.078-2.22 2.619-3.402 2.815-1.566 2.932-6.896.019-.886-.2-1.312.079-2.061.279-.75.21.017 1.09-.143.879-.16 2.996-1.05 3.869-.652 1.533.699.513 3.972 1.61 5.107 1.139 1.177 3.841-.028 4.989 1.128 1.439 1.45 1.324 6.848 1.005 7.621z"})),S||(S=xe.createElement("path",{fill:"#e57c57",d:"M123.021 27.88c.285-.57.221-1.564-.026-2.586-1.175-.034-2.504.164-3.217-.575-.65-.671-.558-2.085-.692-3.277a3.502 3.502 0 0 1-.607-.122c-1.263-.372-2.67-.835-4.069-1.077-.039.008-.077.017-.111.023-.405.075-.605-.057-.733-.143l-.213-.017c-.04.05-.085.141-.144.303-.271.728-.073 1.156-.079 1.995 1.386 3.614 6.644 11.98 9.895 5.477z"})),C||(C=xe.createElement("path",{fill:"#f1f2f2",d:"M116.06 33.648c7.293 3.488 11.969 5.47 13.635 9.989-1.031-4.757-.893-8.622-4.459-15.161.675 7.425-8.761 5.37-9.176 5.172z"})),k||(k=xe.createElement("path",{fill:"#6c2548",d:"M129.697 43.002c.157-3.884-1.057-18.564-4.44-20.057-1.056-.466-10.726 1.174-7.768 1.348 4.625.27 7.293 2.775 7.928 4.28.792 1.11 3.081 8.599 4.28 14.427z"})),E||(E=xe.createElement("path",{fill:"#9e005d",d:"M129.616 43.001c.157-3.884-1.93-18.724-5.311-20.214-1.056-.467-9.776 1.333-6.819 1.505 4.626.27 7.294 2.775 7.928 4.28.792 1.11 3.003 8.599 4.202 14.427z"})),N||(N=xe.createElement("path",{fill:"#ffc399",d:"M126.288 12.877c.555 2.457-.397 1.902.078 3.488.375 1.25.729 2.066.635 3.488-.241 3.656-2.983 6.876-3.086 6.978-1.45 1.45-3.132 1.295-5.476.077-4.364-2.266-6.898-4.994-7.532-11.823-.471-5.072 3.763-8.847 9.014-8.313 3.249.332 5.449 2.04 6.367 6.103z"})),R||(R=xe.createElement("path",{fill:"#be1e2d",d:"M114.461 9.389c3.944-.179 3.02 1.925 6.539 2.973 2.794.832 5.707-1.012 5.173 3.745-.475 4.212 9.401-4.116 1.46-7.591-1.269-.556-1.137-1.414-2.378-3.013-2.598-3.343-11.337-7.055-15.061-.873-.944 1.567 2.657 4.101 4.265 4.757z"})),M||(M=xe.createElement("path",{fill:"#be1e2d",d:"M114.282 9.508c.912 3.597-.161 4.23-.653 5.47-.541 1.364-.803 2.65-1.487 3.925-.992-2.07-2.184-.317-5.276-4.36-5.537-7.24 9.782-16.915 7.416-5.035z"})),L||(L=xe.createElement("path",{fill:"#ffc399",d:"M112.336 19.497c.617-1.633-4.029-4.43-3.599-1.043.209 1.642 1.516 2.574 2.913 3.151 2.294.946 1.195-1.675.569-3.057l.119.952z"})),T||(T=xe.createElement("path",{fill:"#be1e2d",d:"M113.168 14.026c.309 1.25-.03 6.814 1.785 8.997-3.152-1.714-2.37-5.13-1.785-8.997z"})),P||(P=xe.createElement("path",{fill:"#be1e2d",d:"M112.691 15.573c-.728.415-1.441 3.388-.323 5.705.006-.021.483-4.91.323-5.705z"})),O||(O=xe.createElement("path",{fill:"#9e005d",d:"M117.012 34.121c-2.877-1.74-5.509-2.068-4.725-7.2.867-1.004.747-1.897.807-3.383-1.109.396-4.086 1.948-5.434 2.655-1.985 1.04-4.361 3.41-2.458 5.39.703.73-1.758 1.923.937 6.759 1.506-2.617 2.711-4.855 3.661-4.934 3.33-.079 4.431 1.667 7.372 2.378 7.214 1.744 11.654 6.501 12.525 8.164.036-1.051-1.269-4.914-12.683-9.829z"})),I||(I=xe.createElement("path",{fill:"#9e005d",d:"M108.45 34.202c-8.258 11.429 2.709 12.432 5.351 22.998.119.48.656 1.17 1.503 1.322 5.051.903 10.884-1.744 15.862-6.92 1.408-1.463.247-4.902-1.546-5.648-2.319-1.546-7.378 4.023-13.006 2.992-.677-1.02-1.505-13.477-8.164-14.744z"})),A||(A=xe.createElement("path",{fill:"#a0c9cb",d:"m155.213 40.425-.27 9.99-6.399-1.368-.094-9.712z"})),$||($=xe.createElement("path",{fill:"#75b0b3",d:"m155.48 50.235-.509.238c.085-11.096-.171-10.3.509-10.166v9.93z"})),F||(F=xe.createElement("path",{fill:"#66a7ab",d:"M150.965 40.959c2.473.277 3.211 6.54 2.498 9.037-.119-.12-3.567-.833-3.686-.713-1.718-1.964-.992-8.57 1.188-8.324z"})),U||(U=xe.createElement("path",{fill:"#467d7f",d:"M154.983 40.783s.153-1.902 0-2.02c-.153-.12-6.641-.655-6.641-.655-.776 1.706-.431 1.282 6.641 2.675z"})),z||(z=xe.createElement("path",{fill:"#67a8ac",d:"m152.371 30.436 2.881 8.443-6.729-1.15-3.307-9.016z"})),B||(B=xe.createElement("path",{fill:"#55989b",d:"m152.988 32.518.101.02-.716-2.1-7.155-1.725.656 1.786z"})),q||(q=xe.createElement("path",{fill:"#519093",d:"m148.766 37.79-1.127.713-2.679-8.541 1.25-.893z"})),D||(D=xe.createElement("path",{fill:"#b1d3d4",d:"m152.794 30.08-.922 1.069-6.552-1.01.869-1.011z"})),H||(H=xe.createElement("path",{fill:"#a0c9cb",d:"M155.648 39.988c0 1.052-1.046 1.052-1.046 0s1.046-1.052 1.046 0z"})),W||(W=xe.createElement("path",{fill:"#a0c9cb",d:"M147.639 38.502c1.501-.95.058-.881 7.713.317-1.38 1.189-.053 1.07-7.713-.317z"})),G||(G=xe.createElement("path",{fill:"#75b0b3",d:"m155.354 38.879-1.037.832-2.444-8.681.922-1.07z"})),V||(V=xe.createElement("path",{fill:"#6b1523",d:"M117.374 55.11c1.071-.299.06-1.962.713-4.862-1.972 4.042-1.699 5.134-.713 4.862z"})),Y||(Y=xe.createElement("path",{fill:"#6b1523",d:"M119.989 48.095c.059-.594-2.913-8.918-9.097-9.276 3.448.12 10.494 9.176 8.452 9.395-1.853.535-6.076 2.32-4.41 3.925 1.307.773 1.605-3.152 4.627-3.895 4.567.882 7.438-3.94 10.415-1.874-2.809-3.503-5.362 2.14-9.989 1.725z"})),K||(K=xe.createElement("path",{fill:"#6c2548",d:"M127.793 46.647c.309-.639 1.427-.396 2.336-1.56.449-.576.948-.203 1.687-.222 1.541-.043 2.544 2.996 1.737 4.15-.445.635-2.745 1.297-3.62 1.518-1.771.445-3.511-3.036-2.14-3.884z"})),Z||(Z=xe.createElement("path",{fill:"#c44c31",d:"M123.081 15.099c-.993 1.109 1.35 4.64.988 6.262-.284 1.27-1.827.705-2.617-.157.694.027 1.78.445 1.982.078.76-1.384-1.539-4.914-.353-6.183z"})),J||(J=xe.createElement("path",{fill:"#be1e2d",d:"M124.031 23.074c-2.5.504-4.483.504-5.69-.194.579.55 1.976 1.906 3.268 1.887 1.293-.02 1.235-.569 1.355-1.11.076-.206.528-.326 1.064-.586z"})),Q||(Q=xe.createElement("path",{fill:"#e57c57",d:"M117.389 23.045c0-.616.545-.83 1.075-.93-.441.295-.092.88-.098.904-.481-.272-.62-.174-.977.026z"})),X||(X=xe.createElement("path",{fill:"#35602c",d:"m150.614 40.5-2.973-.396.428 8.839 2.736-.024c2.241-.23 2.479-8.077-.191-8.42z"})),ee||(ee=xe.createElement("path",{fill:"#569d48",d:"M149.867 44.427c.285 5.88-3.738 6.075-4.023.194-.285-5.88 3.737-6.075 4.023-.194z"})),te||(te=xe.createElement("path",{fill:"#e57c57",d:"M136.434 42.288c5.055-.658 5.866-2.932 6.341-1.11.315.786-1.069 1.442-1.903 1.755-.443.164-1.044-.055-1.551-.104-1.12-.109-1.822.562-2.885.65-.123-.631.296-1.046 0-1.189z"})),se||(se=xe.createElement("path",{fill:"#35602c",d:"M139.873 43.184c.168-.905 5.647-1.784 7.051-1.867 1.803-.107 2.161 6.066.475 6.184-2.362.164-4.487.357-6.872-.392-1.388-.435-1.904-.588-1.927-2.106-.017-1.12.749-2.068 1.273-1.819z"})),re||(re=xe.createElement("g",{fill:"#ffc399"},xe.createElement("path",{d:"M131.123 45.597c3.759-1.073 7.006-4.783 7.689-4.023 1.091 1.212-.543 2.16-1.06 3.489-.698 1.797 1.054-.037-.403 1.784-.634.792-1.961.179-2.793.179-.556.157-1.863 1.328-2.498 1.486-1.031-.158-2.364-2.042-.937-2.913z"}),xe.createElement("path",{d:"M138.898 41.243c3.239.682 4.923-.098 5.189 1.152.181.856 1.606 3.358 1.559 4.323-1.725.462-2.504-2.683-3.13-3.156-.426-.321-2.909.188-3.733.077-.824-.111-1.378-2.191.115-2.396z"}),xe.createElement("path",{d:"M141.004 43.042c.573 1.983 2.144 3.145 1.51 3.79-.848.863-1.691 1.404-2.013 1.263-1.976-.87.322-1.169-.004-1.496-.326-.328-1.995-2.12-2.34-2.198.24-.924-.094-1.263-.303-2.212.211.07 2.865.35 3.152.853z"}),xe.createElement("path",{d:"M137.707 42.446c.958-.115 1.457 1.48 1.546 1.784.166.567 1.348 1.806 1.427 2.379.179 1.277-1.071 1.188-1.755 1.456-.564.298-1.991-.743-.683-1.576-.935-.019-3.073-1.497-2.694-2.016.241-.004 1.148-2.383 2.157-2.025z"}),xe.createElement("path",{d:"M137.599 43.08c.556 1.11 1.03 3.964.873 4.28-.271.544-.865 1.07-1.51 1.34s-1.026-.943-1.978-1.893c.792-.713 1.691-.128 1.665.239-.03.438.079-.318.396-.239-.238-.317-.884-1.365-1.188-1.982-.434-.88.635-2.536 1.744-1.744zm6.311-14.765c.475 1.744-.187 2.5-.238 3.092-.085.99.758 1.205 1.348 1.901.873 1.031.792 2.22 1.505 2.775 1.983-.873.015-3.264-.193-3.786-.158-.396.034-2.875 2.016-3.032-1.348-1.665-3.249-2.22-4.44-.952z"}))),ne||(ne=xe.createElement("path",{fill:"#6b1523",d:"M112.653 25.483c-1.903.93-5.883 2.474-6.737 4.518-.599 1.431 5.707 1.11 13.081 5.31-3.805-2.774-9.996-4.01-10.307-4.992-.106-.335 2.715-4.87 3.963-4.836zm-7.374 6.024c.839 1.118 2.3 1.11 4.202 1.586-.878-.434-4.779.837-4.361 0 .157-.317-.167-.875.157-1.586z"})),oe||(oe=xe.createElement("path",{fill:"#f1f2f2",d:"M116.341 17.639c.007-.03.462-.848 2.206-1.014.678-.064 1.896.509 1.795 1.169-1.007.43-1.888.675-4.001-.155z"})),ie||(ie=xe.createElement("path",{fill:"#231f20",d:"M120.347 17.688c-.062-.337-.441-.754-.918-.767-.526-.015-1.035.55-1.044.897-.004.153.086.276.224.37.684.015 1.19-.162 1.733-.394a.422.422 0 0 0 .005-.106z"})),ae||(ae=xe.createElement("path",{fill:"#231f20",d:"M120.368 17.667c-.102-.768-1.512-1.3-2.404-1.303-1.244 0-1.491 1.171-2.272.735.177.703 1.141.928 1.801.933-2.327-.695 2.14-2.302 2.875-.365z"})),le||(le=xe.createElement("path",{fill:"#f1f2f2",d:"M123.27 17.549c.977.332 2.076-.19 2.44-.741.592-.899-1.629-2.066-2.44.74z"})),ce||(ce=xe.createElement("path",{fill:"#231f20",d:"M124.226 17.238a.33.33 0 0 0 .122.373c.604-.115 1.132-.452 1.365-.803a.576.576 0 0 0 .093-.245c-.323-.585-1.245-.539-1.58.675z"})),de||(de=xe.createElement("path",{fill:"#231f20",d:"M123.249 17.568c.092-.724.417-1.478 1.329-1.887 1.175-.528 1.537.92 1.938-.268-.147 1.467-.592 1.476-1.523 1.987 1.022-.356.958-1.906-.373-1.403-1.062.402-1.196 1.152-1.369 1.571z"})),ue||(ue=xe.createElement("path",{fill:"#be1e2d",d:"M126.024 14.621c.517.586-.337-.17-1.304-.06-.321.039-.841.352-1.122.365.554-1.076 1.663-1.17 2.426-.305zm-6.316.317c-3.103-.775-3.531.177-4.685 1.791 2.238-2.446 3.518-.587 5.132-1.94-.245.024-.473.103-.447.15z"})),pe||(pe=xe.createElement("path",{fill:"#6b1523",d:"M106.375 37.808c.416-1.427 1.651-3.48 2.315-3.607 4.108-.792 14.097 5.034 17.246 5.866-5.053-1.248-12.544-5.41-17.122-4.876-.586.192-2.081 1.901-2.439 2.617z"})),me||(me=xe.createElement("path",{fill:"#642243",d:"M140.501 28.713c-.421-1.256-1.179-2.587-.805-4.042.379-1.475 2.232-2.05 2.815-3.43-1.65-.713-1.58 1.923-2.468 2.349-.038-.782-.142-1.516-.129-2.324-1.54 2.028-.703 4.913.589 7.45zm-13.317-7.491c7.849.713 7.253 7.135 12.485 6.303-5.471 1.426-7.017-6.303-12.485-6.303z"})),ye||(ye=xe.createElement("path",{fill:"#c44c31",d:"M120.525 19.497c0 .236-.594.236-.594 0s.594-.237.594 0zm-1.903.355c0 .236-.358.236-.358 0s.358-.236.358 0zm5.768-.832c0 .316-.474.316-.474 0 0-.315.474-.315.474 0zm.89.952c0 .237-.475.237-.475 0s.475-.236.475 0zm.358-1.188c0 .236-.474.236-.474 0 0-.237.474-.237.474 0zm-5.232 1.901c0 .236-.475.236-.475 0s.475-.236.475 0z"})),he||(he=xe.createElement("path",{fill:"#569d48",d:"M136.975 46.802c-.364-.268-.53-.656-.498-1.16-4.862.762-12.996 10.236-26.102 8.07.919.613 1.743 1.082 2.706 1.382 10.638 1.337 19.676-7.332 23.896-8.292z"})),ge||(ge=xe.createElement("path",{fill:"#5f6368",d:"M238.632 23.564h2.267v.075l-5.066 5.844 5.405 7.63v.075h-2.151l-4.437-6.357-2.094 2.419v3.94h-1.754V23.563h1.754v7.028h.074zm5.892 1.085c0 .339-.124.637-.364.877s-.529.364-.877.364c-.34 0-.638-.124-.877-.364a1.198 1.198 0 0 1-.365-.877c0-.348.124-.637.365-.878.239-.24.53-.364.877-.364.339 0 .637.124.877.364.248.249.364.538.364.878zm-.355 3.22v9.327h-1.755v-9.328zm5.604 9.477c-.762 0-1.392-.232-1.896-.704-.505-.472-.762-1.126-.77-1.962v-5.215h-1.639v-1.597h1.639v-2.856h1.754v2.856h2.285v1.597h-2.284v4.644c0 .62.124 1.043.364 1.266.24.224.513.332.819.332.141 0 .273-.017.414-.05a2.19 2.19 0 0 0 .373-.124l.554 1.564c-.471.166-1.001.249-1.613.249zm-55.489-.878c-.969-.704-1.631-1.697-1.995-2.972l2.151-.878c.216.803.597 1.448 1.151 1.962.547.505 1.209.761 1.978.761.721 0 1.324-.182 1.829-.554.505-.373.754-.886.754-1.531 0-.596-.224-1.085-.662-1.474-.439-.389-1.209-.778-2.31-1.167l-.91-.323c-.977-.338-1.796-.827-2.459-1.464-.662-.637-.992-1.473-.992-2.515 0-.721.198-1.383.587-1.995.389-.613.935-1.093 1.639-1.458.695-.355 1.482-.538 2.367-.538 1.275 0 2.293.306 3.046.927.761.621 1.266 1.308 1.522 2.087l-2.051.868c-.15-.464-.43-.87-.853-1.217-.421-.356-.96-.53-1.622-.53s-1.224.166-1.68.505c-.455.34-.679.77-.679 1.3 0 .504.207.91.612 1.241.406.323 1.043.638 1.913.935l.911.306c1.249.431 2.209 1.002 2.896 1.698.687.695 1.027 1.63 1.027 2.797 0 .952-.241 1.747-.729 2.383a4.482 4.482 0 0 1-1.862 1.433 5.981 5.981 0 0 1-2.326.463c-1.209 0-2.293-.348-3.253-1.05zm9.924-11.571a1.45 1.45 0 0 1-.439-1.067c0-.423.149-.779.439-1.069a1.444 1.444 0 0 1 1.067-.439c.422 0 .778.15 1.067.44.291.289.439.645.439 1.067 0 .422-.149.778-.438 1.067a1.455 1.455 0 0 1-1.067.44c-.423-.01-.779-.15-1.068-.44zm-.05 1.937h2.234v10.362h-2.234zm7.093 10.304a2.898 2.898 0 0 1-.993-.588c-.579-.579-.878-1.373-.878-2.375v-5.372h-1.812v-1.97h1.812v-2.92h2.235v2.93h2.517v1.97h-2.517v4.874c0 .555.108.952.323 1.176.207.273.555.405 1.06.405.231 0 .43-.033.612-.091.174-.058.364-.157.571-.298v2.177c-.447.207-.985.306-1.622.306a3.735 3.735 0 0 1-1.308-.224zm6.133-.33a4.946 4.946 0 0 1-1.887-1.962c-.455-.836-.679-1.771-.679-2.814 0-.994.224-1.904.662-2.756.439-.845 1.052-1.523 1.838-2.02s1.68-.754 2.682-.754c1.043 0 1.945.232 2.714.688a4.572 4.572 0 0 1 1.747 1.887c.397.803.596 1.697.596 2.707 0 .19-.017.43-.058.711h-7.946c.083.96.423 1.706 1.026 2.227.58.512 1.33.79 2.103.778.637 0 1.192-.141 1.655-.439a3.185 3.185 0 0 0 1.126-1.192l1.887.894a5.577 5.577 0 0 1-1.912 2.011c-.786.489-1.73.729-2.823.729-1.018.016-1.927-.215-2.731-.695zm5.397-6.01a2.497 2.497 0 0 0-.348-1.084 2.486 2.486 0 0 0-.927-.902c-.413-.24-.918-.364-1.515-.364-.72 0-1.324.215-1.821.637-.496.422-.836 1.001-1.026 1.714z"})),fe||(fe=xe.createElement("g",{fillRule:"evenodd",clipPath:"url(#yoast-connect-google-site-kit_svg__g)",clipRule:"evenodd"},xe.createElement("path",{fill:"#fbbc05",d:"m170.119 26.56 2.576 1.97a4.563 4.563 0 0 0 0 2.85l-2.576 1.97a7.667 7.667 0 0 1-.785-3.395c0-1.22.283-2.373.785-3.394z"}),xe.createElement("path",{fill:"#ea4335",d:"m172.696 28.53-2.577-1.97a7.64 7.64 0 0 1 6.877-4.266c1.95 0 3.691.731 5.049 1.915l-2.229 2.229a4.428 4.428 0 0 0-2.82-1.01 4.518 4.518 0 0 0-4.3 3.103z"}),xe.createElement("path",{fill:"#34a853",d:"m170.118 33.347 2.576-1.975a4.514 4.514 0 0 0 4.301 3.11c2.124 0 3.726-1.08 4.109-2.96h-4.109v-2.96h7.139c.104.452.174.94.174 1.392 0 4.875-3.482 7.661-7.313 7.661a7.637 7.637 0 0 1-6.877-4.268z"}),xe.createElement("path",{fill:"#4285f4",d:"m181.988 35.707-2.446-1.893c.8-.505 1.357-1.284 1.562-2.293h-4.109v-2.96h7.138c.105.453.175.94.175 1.393 0 2.497-.914 4.446-2.32 5.753z"}))))},4432(e,t,s){"use strict";var r=s(1802),n=s.n(r);s(3657),s(790),n().string.isRequired,n().object.isRequired,n().string.isRequired,n().func.isRequired,n().bool.isRequired},4631(e,t,s){"use strict";s.d(t,{A:()=>n});var r=s(1609);const n=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}))})},4976(e,t,s){"use strict";s.d(t,{N_:()=>u});var r=s(1609),n=s(5795),o=s(7767),i=s(5588);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},a.apply(this,arguments)}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const l=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"];try{window.__reactRouterVersion="6"}catch(e){}new Map,r.startTransition,n.flushSync,r.useId;const c="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,d=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,u=r.forwardRef(function(e,t){let s,{onClick:n,relative:u,reloadDocument:p,replace:m,state:y,target:h,to:g,preventScrollReset:f,unstable_viewTransition:x}=e,v=function(e,t){if(null==e)return{};var s,r,n={},o=Object.keys(e);for(r=0;r<o.length;r++)s=o[r],t.indexOf(s)>=0||(n[s]=e[s]);return n}(e,l),{basename:w}=r.useContext(o.jb),b=!1;if("string"==typeof g&&d.test(g)&&(s=g,c))try{let e=new URL(window.location.href),t=g.startsWith("//")?new URL(e.protocol+g):new URL(g),s=(0,i.pb)(t.pathname,w);t.origin===e.origin&&null!=s?g=s+t.search+t.hash:b=!0}catch(e){}let j=(0,o.$P)(g,{relative:u}),_=function(e,t){let{target:s,replace:n,state:a,preventScrollReset:l,relative:c,unstable_viewTransition:d}=void 0===t?{}:t,u=(0,o.Zp)(),p=(0,o.zy)(),m=(0,o.x$)(e,{relative:c});return r.useCallback(t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,s)){t.preventDefault();let s=void 0!==n?n:(0,i.AO)(p)===(0,i.AO)(m);u(e,{replace:s,state:a,preventScrollReset:l,relative:c,unstable_viewTransition:d})}},[p,u,m,n,a,s,e,l,c,d])}(g,{replace:m,state:y,target:h,preventScrollReset:f,relative:u,unstable_viewTransition:x});return r.createElement("a",a({},v,{href:s||j,onClick:b||p?n:function(e){n&&n(e),e.defaultPrevented||_(e)},ref:t,target:h}))});var p,m;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(p||(p={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(m||(m={}))},4997(e){"use strict";e.exports=window.wp.blocks},5103(e,t,s){"use strict";s.d(t,{A:()=>u});var r=s(1609),n=s(1679),o=s.n(n),i=s(1802),a=s.n(i),l=s(790);const c=o().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"};
`,d=e=>{const{siteUrl:t}=e;return(0,l.jsxs)(r.Fragment,{children:[(0,l.jsx)("span",{className:"screen-reader-text",children:t}),(0,l.jsx)(c,{"aria-hidden":"true",children:(0,l.jsx)("span",{children:t})})]})};d.propTypes={siteUrl:a().string.isRequired};const u=d},5588(e,t,s){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},r.apply(this,arguments)}var n,o;function i(e,t){if(!1===e||null==e)throw new Error(t)}function a(e){let{pathname:t="/",search:s="",hash:r=""}=e;return s&&"?"!==s&&(t+="?"===s.charAt(0)?s:"?"+s),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function l(e){let t={};if(e){let s=e.indexOf("#");s>=0&&(t.hash=e.substr(s),e=e.substr(0,s));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function c(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let s=t.endsWith("/")?t.length-1:t.length,r=e.charAt(s);return r&&"/"!==r?null:e.slice(s)||"/"}function d(e,t,s,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the `to."+s+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function u(e,t){let s=function(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}(e);return t?s.map((e,t)=>t===s.length-1?e.pathname:e.pathnameBase):s.map(e=>e.pathnameBase)}function p(e,t,s,n){let o;void 0===n&&(n=!1),"string"==typeof e?o=l(e):(o=r({},e),i(!o.pathname||!o.pathname.includes("?"),d("?","pathname","search",o)),i(!o.pathname||!o.pathname.includes("#"),d("#","pathname","hash",o)),i(!o.search||!o.search.includes("#"),d("#","search","hash",o)));let a,c=""===e||""===o.pathname,u=c?"/":o.pathname;if(null==u)a=s;else{let e=t.length-1;if(!n&&u.startsWith("..")){let t=u.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}a=e>=0?t[e]:"/"}let p=function(e,t){void 0===t&&(t="/");let{pathname:s,search:r="",hash:n=""}="string"==typeof e?l(e):e,o=s?s.startsWith("/")?s:function(e,t){let s=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?s.length>1&&s.pop():"."!==e&&s.push(e)}),s.length>1?s.join("/"):"/"}(s,t):t;return{pathname:o,search:y(r),hash:h(n)}}(o,a),m=u&&"/"!==u&&u.endsWith("/"),g=(c||"."===u)&&s.endsWith("/");return p.pathname.endsWith("/")||!m&&!g||(p.pathname+="/"),p}s.d(t,{AO:()=>a,Gh:()=>p,HS:()=>m,Oi:()=>i,pb:()=>c,tH:()=>g,yD:()=>u}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(n||(n={})),function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(o||(o={})),new Set(["lazy","caseSensitive","path","id","index","children"]);const m=e=>e.join("/").replace(/\/\/+/g,"/"),y=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",h=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class g extends Error{}const f=["post","put","patch","delete"],x=(new Set(f),["get",...f]);new Set(x),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred")},5674(e,t,s){"use strict";s.d(t,{A:()=>x});var r=s(1609),n=s(1679),o=s.n(n),i=s(1802),a=s.n(i),l=s(7723),c=s(8468),d=s(2379),u=s(8495),p=s(7558),m=s(1969),y=s(790);const h=o().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: ${u.colors.$color_white};
`,g=o().div`
	box-sizing: border-box;
	max-width: ${d.FACEBOOK_IMAGE_SIZES.landscapeWidth}px;
	height: ${d.FACEBOOK_IMAGE_SIZES.landscapeHeight}px;
	background-color: ${u.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 f extends r.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(0,m.cP)(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:d.FACEBOOK_IMAGE_SIZES.squareHeight+"px",width:d.FACEBOOK_IMAGE_SIZES.squareWidth+"px"};case"portrait":return{height:d.FACEBOOK_IMAGE_SIZES.portraitHeight+"px",width:d.FACEBOOK_IMAGE_SIZES.portraitWidth+"px"};case"landscape":return{height:d.FACEBOOK_IMAGE_SIZES.landscapeHeight+"px",width:d.FACEBOOK_IMAGE_SIZES.landscapeWidth+"px"}}}render(){const{imageProperties:e,status:t}=this.state;if("loading"===t||""===this.props.src||"errored"===t)return(0,y.jsx)(g,{onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,children:(0,l.__)("Select image","wordpress-seo")});const s=this.retrieveContainerDimensions(e.mode);return(0,y.jsx)(h,{mode:e.mode,dimensions:s,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,onClick:this.props.onImageClick,children:(0,y.jsx)(p.N,{imageProps:{src:this.props.src,alt:this.props.alt,aspectRatio:d.FACEBOOK_IMAGE_SIZES.aspectRatio},width:e.width,height:e.height,imageMode:e.mode})})}}f.propTypes={src:a().string,alt:a().string,onImageLoaded:a().func,onImageClick:a().func,onMouseEnter:a().func,onMouseLeave:a().func},f.defaultProps={src:"",alt:"",onImageLoaded:c.noop,onImageClick:c.noop,onMouseEnter:c.noop,onMouseLeave:c.noop};const x=f},5768(e,t,s){"use strict";s.d(t,{e:()=>u});var r=s(6513),n=s(6087),o=s(2458),i=s(7723),a=s(5831),l=s(1802),c=s.n(l),d=s(790);const u=({link:e})=>{const t=(0,n.useMemo)(()=>(0,o.x)((0,i.sprintf)(/* translators: %1$s expands to "Yoast SEO" academy, which is a clickable link. */ /* translators: %1$s expands to "Yoast SEO" academy, which is a clickable link. */
(0,i.__)("Want to learn SEO from Team Yoast? Check out our %1$s!","wordpress-seo"),"<link/>"),{link:(0,d.jsx)("a",{href:e,target:"_blank",rel:"noopener",children:"Yoast SEO academy"})}),[]);return(0,d.jsxs)(a.Paper,{as:"div",className:"yst-p-6 yst-space-y-3",children:[(0,d.jsx)(a.Title,{as:"h2",size:"4",className:"yst-text-base yst-text-primary-500",children:(0,i.__)("Learn SEO","wordpress-seo")}),(0,d.jsxs)("p",{children:[t,(0,d.jsx)("br",{}),(0,i.__)("We have both free and premium online courses to learn everything you need to know about SEO.","wordpress-seo")]}),(0,d.jsxs)(a.Link,{href:e,className:"yst-block yst-font-medium",target:"_blank",rel:"noopener",children:[(0,i.sprintf)(/* translators: %1$s expands to "Yoast SEO academy". */ /* translators: %1$s expands to "Yoast SEO academy". */
(0,i.__)("Check out %1$s","wordpress-seo"),"Yoast SEO academy"),(0,d.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ /* translators: Hidden accessibility text. */
(0,i.__)("(Opens in a new browser tab)","wordpress-seo")}),(0,d.jsx)(r.A,{className:"yst-w-3 yst-h-3 yst-mb-[1px] yst-icon-rtl yst-inline-block"})]})]})};u.propTypes={link:c().string.isRequired}},5795(e){"use strict";e.exports=window.ReactDOM},5831(e){"use strict";e.exports=window.yoast.uiLibrary},5979(e,t,s){"use strict";s.d(t,{applyReplaceUsingPlugin:()=>i});var r=s(8468),n=(s(2310),s(9183),s(6250),s(3335));const{stripHTMLTags:o}=n.strings,i=function(e){const t=(0,r.get)(window,["YoastSEO","app","pluggable"],!1);if(!t||!(0,r.get)(window,["YoastSEO","app","pluggable","loaded"],!1))return function(e){const t=(0,r.get)(window,["YoastSEO","wp","replaceVarsPlugin","replaceVariables"],r.identity);return{url:e.url,title:o(t(e.title)),description:o(t(e.description)),filteredSEOTitle:e.filteredSEOTitle?o(t(e.filteredSEOTitle)):""}}(e);const s=t._applyModifications.bind(t);return{url:e.url,title:o(s("data_page_title",e.title)),description:o(s("data_meta_desc",e.description)),filteredSEOTitle:e.filteredSEOTitle?o(s("data_page_title",e.filteredSEOTitle)):""}}},5986(e){"use strict";e.exports=window.yoast.externals.contexts},6087(e){"use strict";e.exports=window.wp.element},6093(e,t,s){"use strict";s.d(t,{A:()=>o,Y:()=>n});var r=s(1679);const n=20,o=s.n(r)().span`
	line-height: ${n}px;
	min-height : ${n}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;
`},6250(e,t,s){"use strict";s(2458),s(790)},6377(e,t,s){"use strict";var r=s(7948);(0,r.r)({squareWidth:125,squareHeight:125,landscapeWidth:506,landscapeHeight:265,aspectRatio:50.2},(e,t)=>(0,r.u)(`@yoast/social-metadata-previews/TWITTER_IMAGE_SIZES/${e}/${t}`,`[@yoast/social-metadata-previews] "TWITTER_IMAGE_SIZES.${t}" is deprecated and will be removed in the future, please use this from @yoast/social-metadata-forms instead.`)),(0,r.r)({squareWidth:158,squareHeight:158,landscapeWidth:527,landscapeHeight:273,portraitWidth:158,portraitHeight:237,aspectRatio:52.2,largeThreshold:{width:446,height:233}},(e,t)=>(0,r.u)(`@yoast/social-metadata-previews/FACEBOOK_IMAGE_SIZES/${e}/${t}`,`[@yoast/social-metadata-previews] "FACEBOOK_IMAGE_SIZES.${t}" is deprecated and will be removed in the future, please use this from @yoast/social-metadata-forms instead.`))},6513(e,t,s){"use strict";s.d(t,{A:()=>n});var r=s(1609);const n=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"}))})},6554(e){"use strict";e.exports=window.yoast.componentsNew},6633(e,t,s){"use strict";s.d(t,{h:()=>p});var r,n,o,i,a,l,c,d=s(1609);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)({}).hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},u.apply(null,arguments)}const p=e=>d.createElement("svg",u({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","data-name":"Layer 1",viewBox:"0 0 200 200"},e),r||(r=d.createElement("defs",null,d.createElement("radialGradient",{id:"yoast-premium-logo-new_svg__b",cx:116.36,cy:44.04,r:36.58,fx:116.36,fy:44.04,gradientUnits:"userSpaceOnUse"},d.createElement("stop",{offset:0,stopColor:"#9fda4f"}),d.createElement("stop",{offset:1,stopColor:"#77b227"})),d.createElement("radialGradient",{id:"yoast-premium-logo-new_svg__c",cx:92.08,cy:114.68,r:29.3,fx:92.08,fy:114.68,gradientUnits:"userSpaceOnUse"},d.createElement("stop",{offset:0,stopColor:"#fec228"}),d.createElement("stop",{offset:.22,stopColor:"#fbb81e"}),d.createElement("stop",{offset:1,stopColor:"#f49a00"})),d.createElement("radialGradient",{id:"yoast-premium-logo-new_svg__d",cx:60.52,cy:156.68,r:14.35,fx:60.52,fy:156.68,gradientUnits:"userSpaceOnUse"},d.createElement("stop",{offset:0,stopColor:"#ff4e47"}),d.createElement("stop",{offset:1,stopColor:"#ed261f"})),d.createElement("linearGradient",{id:"yoast-premium-logo-new_svg__a",x1:-7.73,x2:218.16,y1:59.99,y2:143.88,gradientUnits:"userSpaceOnUse"},d.createElement("stop",{offset:.17,stopColor:"#5d237a"}),d.createElement("stop",{offset:.42,stopColor:"#7c2072"}),d.createElement("stop",{offset:.71,stopColor:"#9a1e6b"}),d.createElement("stop",{offset:.87,stopColor:"#a61e69"})))),n||(n=d.createElement("path",{fill:"url(#yoast-premium-logo-new_svg__a)",d:"M200 200H32c-17.67 0-32-14.33-32-32V32C0 14.33 14.33 0 32 0h136c17.67 0 32 14.33 32 32v168z"})),o||(o=d.createElement("path",{fill:"url(#yoast-premium-logo-new_svg__b)",d:"M156.41 26.63c-17.59-9.93-39.9-3.73-49.84 13.86-9.94 17.59-3.73 39.9 13.86 49.84 17.59 9.94 39.9 3.73 49.84-13.86 9.93-17.59 3.73-39.9-13.86-49.84"})),i||(i=d.createElement("path",{fill:"url(#yoast-premium-logo-new_svg__c)",d:"M119.44 102.75s-.04-.02-.06-.04c-.02 0-.03-.02-.05-.03-12.13-6.71-26.33-1.98-32.56 9.06-6.49 11.5-2.43 26.07 9.06 32.57s.02 0 .03.02c0 0 .02 0 .03.02 11.49 6.45 26.03 2.4 32.51-9.08 6.47-11.46 2.46-25.98-8.95-32.5"})),a||(a=d.createElement("path",{fill:"url(#yoast-premium-logo-new_svg__d)",d:"M85.91 163.76c0-5-2.62-9.85-7.27-12.49a14.278 14.278 0 0 0-7.05-1.86c-7.9 0-14.36 6.4-14.36 14.34s6.4 14.36 14.34 14.36 14.36-6.4 14.36-14.34"})),l||(l=d.createElement("path",{fill:"#fff",d:"M29.52 136.99v13.02c8.06-.34 14.36-2.98 19.7-8.39s10.22-14.18 14.89-27.2L98.65 21.9H81.94L54.11 99.2l-13.8-43.35h-15.3l20.29 52.16a21.402 21.402 0 0 1 0 15.59c-2.05 5.3-5.74 11.53-15.78 13.39z"})),c||(c=d.createElement("path",{fill:"#cd82ab",d:"M172.2 175.15h-33.59v2.95h33.59v-2.95zm-9.08-11.64-7.72-14.2-7.72 14.2-11.88-8.44 2.8 18.99h33.59l2.8-18.99-11.88 8.44z"})))},6692(e,t,s){"use strict";s.d(t,{h:()=>i});var r,n=s(1609);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)({}).hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},o.apply(null,arguments)}const i=e=>n.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",fill:"none","aria-hidden":"true",viewBox:"0 0 54 24"},e),r||(r=n.createElement("path",{fill:"currentColor",d:"M17.854 5.72c-4.173 0-5.842 2.798-5.842 5.913 0 3.116 1.645 6.036 5.842 6.036 4.196 0 5.831-2.93 5.824-5.846-.01-3.551-1.809-6.104-5.824-6.104v.001zm-2.528 6.09c.101-4.169 3.306-4.165 4.377-2.672.976 1.36 1.176 6.013-1.85 5.98-1.392-.016-2.486-.956-2.527-3.309zm36.371 2.968V8.74h2.161V6.117h-2.16V2.951H48.36v3.166h-1.694V8.74h1.694v5.696c0 3.239 2.26 5.162 4.643 5.56l.997-2.68c-1.39-.176-2.29-1.214-2.303-2.537zm-16.84-.957v-4.54c0-.165-.01-.32-.026-.472-.29-3.668-5.503-3.66-9.54-2.252l1.166 2.346c2.63-1.248 4.203-.926 4.753-.311.014.016.028.031.04.048l.005.007c.28.379.213.975.213 1.445-3.436 0-7.093.455-7.093 4.22 0 2.862 3.59 4.703 7.34 1.976l.556 1.341h3.215c-.286-1.575-.63-2.925-.63-3.808h.002zm-3.362-.025c-2.643 2.955-5.064.174-2.585-1.04.73-.248 1.72-.26 2.585-.26v1.3zm8.492-4.759c0-1.118 1.792-1.64 4.619-.351l.977-2.371c-3.804-1.15-8.998-1.252-9.033 2.722-.016 1.905 1.208 2.93 2.969 3.585 1.22.453 2.98.687 2.975 1.657-.006 1.268-2.736 1.463-5.221-.243l-1.004 2.572c3.39 1.686 9.692 1.733 9.66-2.49-.034-4.176-5.94-3.46-5.94-5.08h-.002zM10.638 0 5.783 13.471 3.46 6.196H0l3.872 9.935c.33.846.33 1.784 0 2.63-.433 1.11-1.153 2.057-2.908 2.294V24c3.418 0 5.265-2.1 6.913-6.699L14.337 0h-3.7z"})))},6752(e){"use strict";e.exports=window.yoast.analysis},6789(e,t,s){"use strict";s(1137),s(4369),s(7723),s(5831);var r=s(1802),n=s.n(r);s(3657),s(2458),s(790),n().string.isRequired,n().string.isRequired,n().shape({src:n().string.isRequired,width:n().string,height:n().string}).isRequired,n().shape({value:n().bool.isRequired,status:n().string.isRequired,set:n().func.isRequired}).isRequired,n().string,n().string,n().string},7143(e){"use strict";e.exports=window.wp.data},7343(e,t,s){"use strict";s.d(t,{A:()=>o});var r=s(2379),n=s(1679);const o=s.n(n)().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: ${r.TWITTER_IMAGE_SIZES.landscapeWidth}px ) {
		display: none;
	}
`},7410(e,t,s){"use strict";s.d(t,{h:()=>p});var r,n,o,i,a,l,c,d=s(1609);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)({}).hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},u.apply(null,arguments)}const p=e=>d.createElement("svg",u({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","data-name":"Layer 1",viewBox:"0 0 200 200"},e),r||(r=d.createElement("defs",null,d.createElement("radialGradient",{id:"woo-seo-logo-new_svg__b",cx:116.36,cy:44.04,r:36.58,fx:116.36,fy:44.04,gradientUnits:"userSpaceOnUse"},d.createElement("stop",{offset:0,stopColor:"#9fda4f"}),d.createElement("stop",{offset:1,stopColor:"#77b227"})),d.createElement("radialGradient",{id:"woo-seo-logo-new_svg__c",cx:92.08,cy:114.68,r:29.3,fx:92.08,fy:114.68,gradientUnits:"userSpaceOnUse"},d.createElement("stop",{offset:0,stopColor:"#fec228"}),d.createElement("stop",{offset:.22,stopColor:"#fbb81e"}),d.createElement("stop",{offset:1,stopColor:"#f49a00"})),d.createElement("radialGradient",{id:"woo-seo-logo-new_svg__d",cx:60.52,cy:156.68,r:14.35,fx:60.52,fy:156.68,gradientUnits:"userSpaceOnUse"},d.createElement("stop",{offset:0,stopColor:"#ff4e47"}),d.createElement("stop",{offset:1,stopColor:"#ed261f"})),d.createElement("linearGradient",{id:"woo-seo-logo-new_svg__a",x1:-7.73,x2:218.16,y1:59.99,y2:143.88,gradientUnits:"userSpaceOnUse"},d.createElement("stop",{offset:.17,stopColor:"#0e1e65"}),d.createElement("stop",{offset:.48,stopColor:"#064b8d"}),d.createElement("stop",{offset:.73,stopColor:"#0169a8"}),d.createElement("stop",{offset:.87,stopColor:"#0075b3"})))),n||(n=d.createElement("path",{fill:"url(#woo-seo-logo-new_svg__a)",d:"M200 200H32c-17.67 0-32-14.33-32-32V32C0 14.33 14.33 0 32 0h136c17.67 0 32 14.33 32 32v168z"})),o||(o=d.createElement("path",{fill:"url(#woo-seo-logo-new_svg__b)",d:"M156.41 26.63c-17.59-9.93-39.9-3.73-49.84 13.86-9.94 17.59-3.73 39.9 13.86 49.84 17.59 9.94 39.9 3.73 49.84-13.86 9.93-17.59 3.73-39.9-13.86-49.84"})),i||(i=d.createElement("path",{fill:"url(#woo-seo-logo-new_svg__c)",d:"M119.44 102.75s-.04-.02-.06-.04c-.02 0-.03-.02-.05-.03-12.13-6.71-26.33-1.98-32.56 9.06-6.49 11.5-2.43 26.07 9.06 32.57s.02 0 .03.02c0 0 .02 0 .03.02 11.49 6.45 26.03 2.4 32.51-9.08 6.47-11.46 2.46-25.98-8.95-32.5"})),a||(a=d.createElement("path",{fill:"url(#woo-seo-logo-new_svg__d)",d:"M85.91 163.76c0-5-2.62-9.85-7.27-12.49a14.278 14.278 0 0 0-7.05-1.86c-7.9 0-14.36 6.4-14.36 14.34s6.4 14.36 14.34 14.36 14.36-6.4 14.36-14.34"})),l||(l=d.createElement("path",{fill:"#fff",d:"M29.52 136.99v13.02c8.06-.34 14.36-2.98 19.7-8.39s10.22-14.18 14.89-27.2L98.65 21.9H81.94L54.11 99.2l-13.8-43.35h-15.3l20.29 52.16a21.402 21.402 0 0 1 0 15.59c-2.05 5.3-5.74 11.53-15.78 13.39z"})),c||(c=d.createElement("path",{fill:"#a1cce3",d:"M171.68 147.89a2.9 2.9 0 0 0-2.81 2.16l-.36 1.34c-8.43-.15-16.85.83-25.01 2.9-.03 0-.05.01-.08.02-.61.21-.94.86-.73 1.47a90.79 90.79 0 0 0 4.59 11.2c.19.4.6.65 1.05.65h17.38c1.47 0 2.79.93 3.29 2.32h-23.04a1.16 1.16 0 0 0 0 2.32h24.4c.64 0 1.16-.52 1.16-1.16 0-2.65-1.78-4.95-4.35-5.62l3.97-14.86a.58.58 0 0 1 .56-.43h2.14a1.16 1.16 0 0 0 0-2.32h-2.15zm-2.5 30.21c-1.28 0-2.32-1.04-2.32-2.32s1.04-2.32 2.32-2.32 2.32 1.04 2.32 2.32-1.04 2.32-2.32 2.32zm-19.75 0c-1.28 0-2.32-1.04-2.32-2.32s1.04-2.32 2.32-2.32 2.32 1.04 2.32 2.32-1.04 2.32-2.32 2.32z"})))},7415(e,t,s){"use strict";s.d(t,{A:()=>x});var r=s(1609),n=s.n(r),o=s(1802),i=s.n(o),a=s(1679),l=s.n(a),c=s(5103),d=s(5674),u=s(6093),p=s(889),m=s(790);const y=e=>{switch(e){case"landscape":return"527px";case"square":case"portrait":return"369px";default:return"476px"}},h=l().div`
	box-sizing: border-box;
	display: flex;
	flex-direction: ${e=>"landscape"===e.mode?"column":"row"};
	background-color: #f2f3f5;
	max-width: 527px;
`,g=l().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 f extends r.Component{constructor(e){super(e),this.state={imageMode:null,maxLineCount:0,descriptionLineCount:0},this.facebookTitleRef=n().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/u.Y}maybeSetMaxLineCount(){const{imageMode:e,maxLineCount:t}=this.state,s="landscape"===e?2:5;s!==t&&this.setState({maxLineCount:s})}maybeSetDescriptionLineCount(){const{descriptionLineCount:e,maxLineCount:t,imageMode:s}=this.state,r=this.getTitleLineCount();let n=t-r;"portrait"===s&&(n=5===r?0:4),n!==e&&this.setState({descriptionLineCount:n})}componentDidUpdate(){this.maybeSetMaxLineCount(),this.maybeSetDescriptionLineCount()}render(){const{imageMode:e,maxLineCount:t,descriptionLineCount:s}=this.state;return(0,m.jsxs)(h,{id:"facebookPreview",mode:e,children:[(0,m.jsx)(d.A,{src:this.props.imageUrl||this.props.imageFallbackUrl,alt:this.props.alt,onImageLoaded:this.onImageLoaded,onImageClick:this.props.onImageClick,onMouseEnter:this.onImageEnter,onMouseLeave:this.onLeave}),(0,m.jsxs)(g,{mode:e,children:[(0,m.jsx)(c.A,{siteUrl:this.props.siteUrl,mode:e}),(0,m.jsx)(u.A,{ref:this.facebookTitleRef,onMouseEnter:this.onTitleEnter,onMouseLeave:this.onLeave,onClick:this.onSelectTitle,lineCount:t,children:this.props.title}),s>0&&(0,m.jsx)(p.A,{maxWidth:y(e),onMouseEnter:this.onDescriptionEnter,onMouseLeave:this.onLeave,onClick:this.onSelectDescription,lineCount:s,children:this.props.description})]})]})}}f.propTypes={siteUrl:i().string.isRequired,title:i().string.isRequired,description:i().string,imageUrl:i().string,imageFallbackUrl:i().string,alt:i().string,onSelect:i().func,onImageClick:i().func,onMouseHover:i().func},f.defaultProps={description:"",alt:"",imageUrl:"",imageFallbackUrl:"",onSelect:()=>{},onImageClick:()=>{},onMouseHover:()=>{}};const x=f},7558(e,t,s){"use strict";s.d(t,{N:()=>u});var r=s(1802),n=s.n(r),o=(s(1609),s(1679)),i=s.n(o),a=s(790);const l=i().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;
	}
`,c=i().img`
	&& {
		height: 100%;
		position: absolute;
		width: 100%;
		object-fit: cover;
	}
`,d=i().div`
	padding-bottom: ${e=>e.aspectRatio}%;
`,u=({imageProps:e,width:t,height:s,imageMode:r="landscape"})=>"landscape"===r?(0,a.jsx)(d,{aspectRatio:e.aspectRatio,children:(0,a.jsx)(c,{src:e.src,alt:e.alt})}):(0,a.jsx)(l,{src:e.src,alt:e.alt,width:t,height:s,imageProperties:e});u.propTypes={imageProps:n().shape({src:n().string.isRequired,alt:n().string.isRequired,aspectRatio:n().number.isRequired}).isRequired,width:n().number.isRequired,height:n().number.isRequired,imageMode:n().string}},7695(e,t,s){"use strict";s.d(t,{A:()=>n});var r=s(1609);const n=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))})},7723(e){"use strict";e.exports=window.wp.i18n},7767(e,t,s){"use strict";s.d(t,{$P:()=>d,Zp:()=>y,jb:()=>a,x$:()=>h,zy:()=>p});var r=s(1609),n=s(5588);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},o.apply(this,arguments)}const i=r.createContext(null),a=r.createContext(null),l=r.createContext(null),c=r.createContext({outlet:null,matches:[],isDataRoute:!1});function d(e,t){let{relative:s}=void 0===t?{}:t;u()||(0,n.Oi)(!1);let{basename:o,navigator:i}=r.useContext(a),{hash:l,pathname:c,search:d}=h(e,{relative:s}),p=c;return"/"!==o&&(p="/"===c?o:(0,n.HS)([o,c])),i.createHref({pathname:p,search:d,hash:l})}function u(){return null!=r.useContext(l)}function p(){return u()||(0,n.Oi)(!1),r.useContext(l).location}function m(e){r.useContext(a).static||r.useLayoutEffect(e)}function y(){let{isDataRoute:e}=r.useContext(c);return e?function(){let{router:e}=function(){let e=r.useContext(i);return e||(0,n.Oi)(!1),e}(g.UseNavigateStable),t=function(){let e=function(){let e=r.useContext(c);return e||(0,n.Oi)(!1),e}(),t=e.matches[e.matches.length-1];return t.route.id||(0,n.Oi)(!1),t.route.id}(f.UseNavigateStable),s=r.useRef(!1);return m(()=>{s.current=!0}),r.useCallback(function(r,n){void 0===n&&(n={}),s.current&&("number"==typeof r?e.navigate(r):e.navigate(r,o({fromRouteId:t},n)))},[e,t])}():function(){u()||(0,n.Oi)(!1);let e=r.useContext(i),{basename:t,future:s,navigator:o}=r.useContext(a),{matches:l}=r.useContext(c),{pathname:d}=p(),y=JSON.stringify((0,n.yD)(l,s.v7_relativeSplatPath)),h=r.useRef(!1);return m(()=>{h.current=!0}),r.useCallback(function(s,r){if(void 0===r&&(r={}),!h.current)return;if("number"==typeof s)return void o.go(s);let i=(0,n.Gh)(s,JSON.parse(y),d,"path"===r.relative);null==e&&"/"!==t&&(i.pathname="/"===i.pathname?t:(0,n.HS)([t,i.pathname])),(r.replace?o.replace:o.push)(i,r.state,r)},[t,o,y,d,e])}()}function h(e,t){let{relative:s}=void 0===t?{}:t,{future:o}=r.useContext(a),{matches:i}=r.useContext(c),{pathname:l}=p(),d=JSON.stringify((0,n.yD)(i,o.v7_relativeSplatPath));return r.useMemo(()=>(0,n.Gh)(e,JSON.parse(d),l,"path"===s),[e,d,l,s])}r.Component;var g=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(g||{}),f=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(f||{});r.startTransition,new Promise(()=>{}),r.Component},7948(e,t,s){"use strict";s.d(t,{r:()=>i,u:()=>o});var r=s(8468);const n={},o=(e,t,{log:s=console.warn}={})=>{n[e]||(n[e]=!0,s(t))},i=(e,t=r.noop)=>{const s={};for(const r in e)Object.hasOwn(e,r)&&Object.defineProperty(s,r,{set:s=>{e[r]=s,t("set",r,s)},get:()=>(t("get",r),e[r])});return s}},8119(e,t,s){"use strict";s.d(t,{A:()=>n});var r=s(1609);const n=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{fillRule:"evenodd",d:"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"}))})},8213(e){"use strict";e.exports=window.yoast.reduxJsToolkit},8334(e,t,s){"use strict";s.d(t,{$H:()=>n,BG:()=>o,fJ:()=>r});const r={request:"request",success:"success",error:"error"},n={idle:"idle",loading:"loading",success:"success",error:"error"},o={showPlay:"showPlay",askPermission:"askPermission",isPlaying:"isPlaying"}},8468(e){"use strict";e.exports=window.lodash},8495(e){"use strict";e.exports=window.yoast.styleGuide},8519(e,t,s){"use strict";s.d(t,{h:()=>i});var r,n=s(1609);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)({}).hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},o.apply(null,arguments)}const i=e=>n.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none","aria-hidden":"true"},e),r||(r=n.createElement("path",{fill:"#0075B3",d:"M12.613.445a1.26 1.26 0 0 0-1.22.937l-.156.583A40.97 40.97 0 0 0 .379 3.225c-.013 0-.022.007-.035.01a.503.503 0 0 0-.317.64 40.344 40.344 0 0 0 1.99 4.861c.084.173.26.282.455.282h7.542c.64 0 1.213.403 1.427 1.008h-10a.507.507 0 0 0 0 1.01h10.592a.507.507 0 0 0 .506-.505c0-1.149-.774-2.15-1.888-2.441l1.722-6.452a.25.25 0 0 1 .243-.185h.931a.507.507 0 0 0 0-1.011h-.931l-.003.003zm-1.085 13.114a1.008 1.008 0 1 1 0-2.016 1.008 1.008 0 0 1 0 2.016zm-8.573 0a1.008 1.008 0 1 1 0-2.016 1.008 1.008 0 0 1 0 2.016z"})))},8629(e,t,s){"use strict";s.d(t,{g:()=>a,l:()=>l});var r=s(7723);const n=[(0,r.__)("Create optimized SEO titles & meta descriptions in seconds","wordpress-seo"),(0,r.__)("Apply AI suggestions to improve content in 1 click","wordpress-seo"),(0,r.__)("Manage redirects with ease and without extra plugins","wordpress-seo"),(0,r.__)("Optimize pages for multiple keywords with guidance","wordpress-seo")],o=[(0,r.__)("Add product details to help your listings stand out","wordpress-seo"),(0,r.__)("Make sure search engines show the right version of your product page","wordpress-seo"),(0,r.__)("Create optimized SEO titles & meta descriptions with AI","wordpress-seo"),(0,r.__)("Receive clear SEO and readability guidance to optimize your products","wordpress-seo")],i=[(0,r.__)("Generate SEO optimized metadata in seconds with AI","wordpress-seo"),(0,r.__)("Make your articles visible, be seen in Google News","wordpress-seo"),(0,r.__)("Built to get found by search, AI, and real users","wordpress-seo"),(0,r.__)("Easy Local SEO. Show up in Google Maps results","wordpress-seo"),(0,r.__)("Internal links and redirect management, easy","wordpress-seo"),(0,r.__)("Access to friendly help when you need it, day or night","wordpress-seo")],a=(e=!1)=>e?n:i,l=(e=!1)=>{if(e)return o;const t=[...i];return t[1]=(0,r.__)("Boost visibility for your products, from 10 or 10,000+","wordpress-seo"),t}},9e3(e,t,s){"use strict";s.d(t,{A:()=>v});var r=s(7723),n=s(2379),o=s(8468),i=s(1802),a=s.n(i),l=s(1609),c=s.n(l),d=s(1679),u=s.n(d),p=s(1969),m=s(7558),y=s(790);const h=(e,t=!0)=>e?`\n\t\t\tmax-width: ${n.TWITTER_IMAGE_SIZES.landscapeWidth}px;\n\t\t\t${t?"border-bottom: 1px solid #E1E8ED;":""}\n\t\t\tborder-radius: 14px 14px 0 0;\n\t\t\t`:`\n\t\twidth: ${n.TWITTER_IMAGE_SIZES.squareWidth}px;\n\t\t${t?"border-right: 1px solid #E1E8ED;":""}\n\t\tborder-radius: 14px 0 0 14px;\n\t\t`,g=u().div`
	position: relative;
	box-sizing: content-box;
	overflow: hidden;
	background-color: #e1e8ed;
	flex-shrink: 0;
	${e=>h(e.isLarge)}
`,f=u().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=>h(e.isLarge,!1)}
`,x=u()(f)`
	${e=>e.isLarge&&`height: ${n.TWITTER_IMAGE_SIZES.landscapeHeight}px;`}
	border-top-left-radius: 14px;
	${e=>e.isLarge?"border-top-right-radius":"border-bottom-left-radius"}: 14px;
	border-style: dashed;
	border-width: 1px;
	// We're not using standard colors to increase contrast for accessibility.
	color: #006DAC;
	// We're not using standard colors to increase contrast for accessibility.
	background-color: #f1f1f1;
	text-decoration: underline;
	font-size: 14px;
	cursor: pointer;
`;class v extends c().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(0,p.cP)(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?(0,y.jsx)(x,{isLarge:this.props.isLarge,onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,children:(0,r.__)("Select image","wordpress-seo")}):(0,y.jsx)(g,{isLarge:this.props.isLarge,onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,children:(0,y.jsx)(m.N,{imageProps:{src:this.props.src,alt:this.props.alt,aspectRatio:n.TWITTER_IMAGE_SIZES.aspectRatio},width:t.width,height:t.height,imageMode:t.mode})})}}v.propTypes={isLarge:a().bool.isRequired,src:a().string,alt:a().string,onImageClick:a().func,onMouseEnter:a().func,onMouseLeave:a().func},v.defaultProps={src:"",alt:"",onMouseEnter:o.noop,onImageClick:o.noop,onMouseLeave:o.noop}},9183(e,t,s){"use strict";s(3335)},9491(e){"use strict";e.exports=window.wp.compose},9498(e,t,s){"use strict";var r=s(6554),n=s(1609),o=s.n(n),i=s(1802),a=s.n(i),l=s(2379),c=s(7415),d=s(1709),u=s(2547),p=s(790);class m extends n.Component{constructor(e){super(e),this.state={activeField:"",hoveredField:""},this.SocialPreview="Social"===e.socialMediumName?c.A:d.A,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:s,onRemoveImageClick:n,socialMediumName:i,imageWarnings:a,siteUrl:c,description:d,descriptionInputPlaceholder:u,descriptionPreviewFallback:m,imageUrl:y,imageFallbackUrl:h,alt:g,title:f,titleInputPlaceholder:x,titlePreviewFallback:v,replacementVariables:w,recommendedReplacementVariables:b,applyReplacementVariables:j,onReplacementVariableSearchChange:_,isPremium:S,isLarge:C,socialPreviewLabel:k,idSuffix:E,activeMetaTabId:N}=this.props,R=j({title:f||v,description:d||m});return(0,p.jsxs)(o().Fragment,{children:[k&&(0,p.jsx)(r.SimulatedLabel,{children:k}),(0,p.jsx)(this.SocialPreview,{onMouseHover:this.setHoveredField,onSelect:this.setActiveField,onImageClick:s,siteUrl:c,title:R.title,description:R.description,imageUrl:y,imageFallbackUrl:h,alt:g,isLarge:C,activeMetaTabId:N}),(0,p.jsx)(l.SocialMetadataPreviewForm,{onDescriptionChange:e,socialMediumName:i,title:f,titleInputPlaceholder:x,onRemoveImageClick:n,imageSelected:!!y,imageUrl:y,imageFallbackUrl:h,onTitleChange:t,onSelectImageClick:s,description:d,descriptionInputPlaceholder:u,imageWarnings:a,replacementVariables:w,recommendedReplacementVariables:b,onReplacementVariableSearchChange:_,onMouseHover:this.setHoveredField,hoveredField:this.state.hoveredField,onSelect:this.setActiveField,activeField:this.state.activeField,isPremium:S,setEditorRef:this.setEditorRef,idSuffix:E})]})}}m.propTypes={title:a().string.isRequired,onTitleChange:a().func.isRequired,description:a().string.isRequired,onDescriptionChange:a().func.isRequired,imageUrl:a().string.isRequired,imageFallbackUrl:a().string.isRequired,onSelectImageClick:a().func.isRequired,onRemoveImageClick:a().func.isRequired,socialMediumName:a().string.isRequired,alt:a().string,isPremium:a().bool,imageWarnings:a().array,isLarge:a().bool,siteUrl:a().string,descriptionInputPlaceholder:a().string,titleInputPlaceholder:a().string,descriptionPreviewFallback:a().string,titlePreviewFallback:a().string,replacementVariables:u.replacementVariablesShape,recommendedReplacementVariables:u.recommendedReplacementVariablesShape,applyReplacementVariables:a().func,onReplacementVariableSearchChange:a().func,socialPreviewLabel:a().string,idSuffix:a().string,activeMetaTabId:a().string},m.defaultProps={imageWarnings:[],recommendedReplacementVariables:[],replacementVariables:[],isPremium:!1,isLarge:!0,siteUrl:"",descriptionInputPlaceholder:"",titleInputPlaceholder:"",descriptionPreviewFallback:"",titlePreviewFallback:"",alt:"",applyReplacementVariables:e=>e,onReplacementVariableSearchChange:null,socialPreviewLabel:"",idSuffix:"",activeMetaTabId:""}}},t={};function s(r){var n=t[r];if(void 0!==n)return n.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,s),o.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=s(4997),t=s(7143);s(2619),window.wp.domReady;var r=s(6087),n=(s(2279),s(8468)),o=s(5831),i=s(7723),a=s(9491);const l=window.wp.wordcount;var c=s(4369),d=s(1137),u=s(2458),p=s(3657),m=s(2485),y=s.n(m),h=s(790);const g=({className:e})=>{const t=(0,o.useSvgAria)();return(0,h.jsxs)("span",{className:y()("yst-text-sm yst-flex yst-items-center yst-gap-1 yst-justify-center yst-text-slate-500 yst-italic",e),children:[(0,h.jsx)(o.GradientSparklesIcon,{className:"yst-h-3 yst-w-3",...t}),(0,i.__)("Using 1 spark","wordpress-seo")]})};var f=s(3301);const x="yoast-seo/ai-generator",v="yoast-seo/editor",w="google",b="social",j="twitter",_="title",S="description",C="post",k="term",E={post:"title",term:"term_title"},N=(0,n.mapValues)(E,e=>`%%${e}%%`),R={idle:"idle",loading:"loading",success:"success",error:"error"},M="success",L="error",T="abort",P=((0,a.compose)([(0,t.withSelect)(e=>{const{selectFeatureModalStatus:t}=e(f.bw),s=e("core/editor").getEditedPostContent(),{getIsPremium:r,selectLink:n}=e("yoast-seo/editor"),{isUsageCountLimitReached:o,selectPremiumSubscription:i}=e(x),a=i(),c=r();return{isEmptyPost:0===(0,l.count)(s,"words",{}),isOpen:t()===f.Qo.idle,isPremium:c,upsellLink:n("https://yoa.st/content-planner-approve-modal"),learnMoreLink:n("https://yoa.st/content-planner-learn-more"),isUpsell:o()&&!a&&!c}}),(0,t.withDispatch)(e=>{const{closeModal:t,setFeatureModalStatus:s}=e(f.bw);return{onClose:t,setStatus:s}})])(({isEmptyPost:e,isPremium:t,isUpsell:s,onClick:r,upsellLink:n,learnMoreLink:a,isOpen:l,onClose:m})=>{const{title:y,description:f}=((e,t)=>t?{title:(0,i.__)("You're out of free sparks","wordpress-seo"),description:(0,i.__)("Upgrade to keep finding content gaps, generating AI-powered titles and meta descriptions, and giving your content the best chance of being found.","wordpress-seo")}:e?{title:(0,i.__)("Looking for inspiration?","wordpress-seo"),description:(0,i.__)("The Yoast AI Content Planner identifies content gaps in your site structure and recommends topics that strengthen your topical authority.","wordpress-seo")}:{title:(0,i.__)("Get content suggestions","wordpress-seo"),description:(0,u.x)((0,i.sprintf)(
/* translators: %1$s and %4$s are opening and closing paragraph HTML tags respectively.
       %2$s and %3$s are opening and closing italic HTML tags respectively. */
/* translators: %1$s and %4$s are opening and closing paragraph HTML tags respectively.
       %2$s and %3$s are opening and closing italic HTML tags respectively. */
(0,i.__)("The Yoast AI Content Planner will analyze your site and recommend topics.%1$s%2$sNote: Applying a content suggestion will replace your current blogpost content & metadata.%3$s%4$s","wordpress-seo"),"<p>","<i>","</i>","</p>"),{i:(0,h.jsx)("i",{}),p:(0,h.jsx)("p",{className:"yst-mt-4"})})})(e,s),x=(0,o.useSvgAria)();return(0,h.jsx)(o.Modal,{isOpen:l,onClose:m,children:(0,h.jsxs)(o.Modal.Panel,{className:"yst-text-center yst-w-96",closeButtonScreenReaderText:(0,i.__)("Close modal","wordpress-seo"),children:[(0,h.jsx)("div",{className:"yst-w-12 yst-h-12 yst-rounded-full yst-bg-ai-100 yst-flex yst-items-center yst-justify-center yst-mx-auto yst-mb-4",children:(0,h.jsx)(o.GradientSparklesIcon,{className:"yst-h-6 yst-w-6",...x})}),(0,h.jsx)(o.Modal.Title,{className:"yst-text-slate-900 yst-font-medium yst-text-lg yst-mb-2",children:y}),(0,h.jsx)(o.Modal.Description,{as:"div",className:"yst-text-slate-600 yst-text-sm yst-mb-6 yst-mx-10",children:f}),!t&&!s&&(0,h.jsx)(g,{className:"yst-mb-2"}),s?(0,h.jsxs)(o.Button,{variant:"upsell",as:"a",href:n,target:"_blank",className:"yst-w-full",rel:"noopener noreferrer",children:[(0,h.jsx)(d.A,{className:"yst-w-4 yst-h-4 yst-me-2 yst-shrink-0",...x}),(0,i.sprintf)(/* translators: %s is the name of the premium product, Yoast SEO Premium. */ /* translators: %s is the name of the premium product, Yoast SEO Premium. */
(0,i.__)("Unlock with %s","wordpress-seo"),"Yoast SEO Premium"),(0,h.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ /* translators: Hidden accessibility text. */
(0,i.__)("(Opens in a new browser tab)","wordpress-seo")})]}):(0,h.jsxs)(o.Button,{onClick:r,variant:"ai-primary",className:"yst-w-full",children:[" ",(0,i.__)("Get content suggestions","wordpress-seo")," "]}),(0,h.jsx)("div",{className:"yst-mt-2 yst-text-sm",children:(0,h.jsxs)(o.Link,{as:p.rd,href:a,variant:"primary",className:"yst-inline yst-no-underline yst-font-medium",children:[(0,i.__)("Learn more","wordpress-seo"),(0,h.jsx)(c.A,{className:"yst-w-4 yst-h-4 rtl:yst-rotate-180 yst-inline yst-ms-1.5"})]})})]})})}),["_formal","_informal","_ao90"]),O=e=>{for(const t of P)if(e.endsWith(t))return e.slice(0,-t.length);return e},I=e=>({bottom:`calc( (${e+"px"} - 100vh) / 2 + 32px )`}),A=()=>{const{endpoint:e,postType:s,contentLocale:n,editorApiValue:o,selectContentOutlineCache:i}=(0,t.useSelect)(e=>({endpoint:e(f.bw).selectContentOutlineEndpoint(),postType:e("yoast-seo/editor").getPostType(),contentLocale:e("yoast-seo/editor").getContentLocale(),editorApiValue:e("yoast-seo/editor").getEditorTypeApiValue(),selectContentOutlineCache:e(f.bw).selectContentOutlineCache}),[]),{fetchContentOutline:a,restoreContentOutlineFromCache:l,setFeatureModalStatus:c}=(0,t.useDispatch)(f.bw);return(0,r.useCallback)(t=>{const r=i(t.id);if(r)return l({suggestion:t,outline:r}),void c(f.Qo.contentOutline);const d=O(n).replace("_","-");a({endpoint:e,postType:s,language:d,editor:o,suggestion:{...t}})},[e,s,n,o,a,l,i,c])};var $=s(8334);const F=()=>{const{endpoint:e,postType:s,contentLocale:n,editorApiValue:o,isUsageCountLimitReached:i,usageCountEndpoint:a,hasValidPremiumSubscription:l,isPremium:c}=(0,t.useSelect)(e=>({endpoint:e(f.bw).selectContentSuggestionsEndpoint(),postType:e("yoast-seo/editor").getPostType(),contentLocale:e("yoast-seo/editor").getContentLocale(),editorApiValue:e("yoast-seo/editor").getEditorTypeApiValue(),usageCountEndpoint:e(x).selectUsageCountEndpoint(),isUsageCountLimitReached:e(x).isUsageCountLimitReached(),hasValidPremiumSubscription:e(x).selectPremiumSubscription(),isPremium:e("yoast-seo/editor").getIsPremium()}),[]),{fetchContentPlannerSuggestions:d,setFeatureModalStatus:u,setContentSuggestionsStatus:p,setSuggestionsError:m}=(0,t.useDispatch)(f.bw),{fetchUsageCount:y,addUsageCount:h}=(0,t.useDispatch)(x);return(0,r.useCallback)(async()=>{if(c&&!l)return u(f.Qo.contentSuggestions),void m({errorCode:402,errorIdentifier:"PAYMENT_REQUIRED",missingLicenses:["Yoast SEO Premium"]});if(i&&!l)return void u(f.Qo.idle);u(f.Qo.contentSuggestions),p($.$H.loading);const{payload:t}=await y({endpoint:a,isWooProductEntity:!1});if((429===(null==t?void 0:t.errorCode)&&"USAGE_LIMIT_REACHED"===(null==t?void 0:t.errorIdentifier)||t.count>=t.limit)&&!l)return u(f.Qo.idle),void p($.$H.idle);const r=O(n).replace("_","-");d({endpoint:e,postType:s,language:r,editor:o}),h()},[e,s,n,o,i,l,c,a,d,h,y,u,p,m])};var U=s(6692),z=s(1609);function B(...e){return e.filter(Boolean).join(" ")}function q(e,t,...s){if(e in t){let r=t[e];return"function"==typeof r?r(...s):r}let r=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(r,q),r}var D,H,W=((H=W||{})[H.None=0]="None",H[H.RenderStrategy=1]="RenderStrategy",H[H.Static=2]="Static",H),G=((D=G||{})[D.Unmount=0]="Unmount",D[D.Hidden=1]="Hidden",D);function V({ourProps:e,theirProps:t,slot:s,defaultTag:r,features:n,visible:o=!0,name:i}){let a=K(t,e);if(o)return Y(a,s,r,i);let l=null!=n?n:0;if(2&l){let{static:e=!1,...t}=a;if(e)return Y(t,s,r,i)}if(1&l){let{unmount:e=!0,...t}=a;return q(e?0:1,{0:()=>null,1:()=>Y({...t,hidden:!0,style:{display:"none"}},s,r,i)})}return Y(a,s,r,i)}function Y(e,t={},s,r){var n;let{as:o=s,children:i,refName:a="ref",...l}=Q(e,["unmount","static"]),c=void 0!==e.ref?{[a]:e.ref}:{},d="function"==typeof i?i(t):i;l.className&&"function"==typeof l.className&&(l.className=l.className(t));let u={};if(t){let e=!1,s=[];for(let[r,n]of Object.entries(t))"boolean"==typeof n&&(e=!0),!0===n&&s.push(r);e&&(u["data-headlessui-state"]=s.join(" "))}if(o===z.Fragment&&Object.keys(J(l)).length>0){if(!(0,z.isValidElement)(d)||Array.isArray(d)&&d.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(l).map(e=>`  - ${e}`).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>`  - ${e}`).join("\n")].join("\n"));let e=B(null==(n=d.props)?void 0:n.className,l.className),t=e?{className:e}:{};return(0,z.cloneElement)(d,Object.assign({},K(d.props,J(Q(l,["ref"]))),u,c,function(...e){return{ref:e.every(e=>null==e)?void 0:t=>{for(let s of e)null!=s&&("function"==typeof s?s(t):s.current=t)}}}(d.ref,c.ref),t))}return(0,z.createElement)(o,Object.assign({},Q(l,["ref"]),o!==z.Fragment&&c,o!==z.Fragment&&u),d)}function K(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},s={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=s[e]||(s[e]=[]),s[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(s).map(e=>[e,void 0])));for(let e in s)Object.assign(t,{[e](t,...r){let n=s[e];for(let e of n){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...r)}}});return t}function Z(e){var t;return Object.assign((0,z.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function J(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function Q(e,t=[]){let s=Object.assign({},e);for(let e of t)e in s&&delete s[e];return s}let X=(0,z.createContext)(null);X.displayName="OpenClosedContext";var ee=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(ee||{});function te(){return(0,z.useContext)(X)}function se({value:e,children:t}){return z.createElement(X.Provider,{value:e},t)}var re=Object.defineProperty,ne=(e,t,s)=>(((e,t,s)=>{t in e?re(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s})(e,"symbol"!=typeof t?t+"":t,s),s);let oe=new class{constructor(){ne(this,"current",this.detect()),ne(this,"handoffState","pending"),ne(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}},ie=(e,t)=>{oe.isServer?(0,z.useEffect)(e,t):(0,z.useLayoutEffect)(e,t)};function ae(){let e=(0,z.useRef)(!1);return ie(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function le(e){let t=(0,z.useRef)(e);return ie(()=>{t.current=e},[e]),t}function ce(){let[e,t]=(0,z.useState)(oe.isHandoffComplete);return e&&!1===oe.isHandoffComplete&&t(!1),(0,z.useEffect)(()=>{!0!==e&&t(!0)},[e]),(0,z.useEffect)(()=>oe.handoff(),[]),e}let de=function(e){let t=le(e);return z.useCallback((...e)=>t.current(...e),[t])},ue=Symbol();function pe(...e){let t=(0,z.useRef)(e);(0,z.useEffect)(()=>{t.current=e},[e]);let s=de(e=>{for(let s of t.current)null!=s&&("function"==typeof s?s(e):s.current=e)});return e.every(e=>null==e||(null==e?void 0:e[ue]))?void 0:s}function me(){let e=[],t=[],s={enqueue(e){t.push(e)},addEventListener:(e,t,r,n)=>(e.addEventListener(t,r,n),s.add(()=>e.removeEventListener(t,r,n))),requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return s.add(()=>cancelAnimationFrame(t))},nextFrame:(...e)=>s.requestAnimationFrame(()=>s.requestAnimationFrame(...e)),setTimeout(...e){let t=setTimeout(...e);return s.add(()=>clearTimeout(t))},microTask(...e){let t={current:!0};return function(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}(()=>{t.current&&e[0]()}),s.add(()=>{t.current=!1})},add:t=>(e.push(t),()=>{let s=e.indexOf(t);if(s>=0){let[t]=e.splice(s,1);t()}}),dispose(){for(let t of e.splice(0))t()},async workQueue(){for(let e of t.splice(0))await e()}};return s}function ye(e,...t){e&&t.length>0&&e.classList.add(...t)}function he(e,...t){e&&t.length>0&&e.classList.remove(...t)}function ge(){let[e]=(0,z.useState)(me);return(0,z.useEffect)(()=>()=>e.dispose(),[e]),e}function fe({container:e,direction:t,classes:s,onStart:r,onStop:n}){let o=ae(),i=ge(),a=le(t);ie(()=>{let t=me();i.add(t.dispose);let l=e.current;if(l&&"idle"!==a.current&&o.current)return t.dispose(),r.current(a.current),t.add(function(e,t,s,r){let n=s?"enter":"leave",o=me(),i=void 0!==r?function(e){let t={called:!1};return(...s)=>{if(!t.called)return t.called=!0,e(...s)}}(r):()=>{};"enter"===n&&(e.removeAttribute("hidden"),e.style.display="");let a=q(n,{enter:()=>t.enter,leave:()=>t.leave}),l=q(n,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=q(n,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return he(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),ye(e,...a,...c),o.nextFrame(()=>{he(e,...c),ye(e,...l),function(e,t){let s=me();if(!e)return s.dispose;let{transitionDuration:r,transitionDelay:n}=getComputedStyle(e),[o,i]=[r,n].map(e=>{let[t=0]=e.split(",").filter(Boolean).map(e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e)).sort((e,t)=>t-e);return t});if(o+i!==0){let r=s.addEventListener(e,"transitionend",e=>{e.target===e.currentTarget&&(t(),r())})}else t();s.add(()=>t()),s.dispose}(e,()=>(he(e,...a),ye(e,...t.entered),i()))}),o.dispose}(l,s.current,"enter"===a.current,()=>{t.dispose(),n.current(a.current)})),t.dispose},[t])}function xe(e=""){return e.split(" ").filter(e=>e.trim().length>1)}let ve=(0,z.createContext)(null);ve.displayName="TransitionContext";var we,be=((we=be||{}).Visible="visible",we.Hidden="hidden",we);let je=(0,z.createContext)(null);function _e(e){return"children"in e?_e(e.children):e.current.filter(({el:e})=>null!==e.current).filter(({state:e})=>"visible"===e).length>0}function Se(e,t){let s=le(e),r=(0,z.useRef)([]),n=ae(),o=ge(),i=de((e,t=G.Hidden)=>{let i=r.current.findIndex(({el:t})=>t===e);-1!==i&&(q(t,{[G.Unmount](){r.current.splice(i,1)},[G.Hidden](){r.current[i].state="hidden"}}),o.microTask(()=>{var e;!_e(r)&&n.current&&(null==(e=s.current)||e.call(s))}))}),a=de(e=>{let t=r.current.find(({el:t})=>t===e);return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>i(e,G.Unmount)}),l=(0,z.useRef)([]),c=(0,z.useRef)(Promise.resolve()),d=(0,z.useRef)({enter:[],leave:[],idle:[]}),u=de((e,s,r)=>{l.current.splice(0),t&&(t.chains.current[s]=t.chains.current[s].filter(([t])=>t!==e)),null==t||t.chains.current[s].push([e,new Promise(e=>{l.current.push(e)})]),null==t||t.chains.current[s].push([e,new Promise(e=>{Promise.all(d.current[s].map(([e,t])=>t)).then(()=>e())})]),"enter"===s?c.current=c.current.then(()=>null==t?void 0:t.wait.current).then(()=>r(s)):r(s)}),p=de((e,t,s)=>{Promise.all(d.current[t].splice(0).map(([e,t])=>t)).then(()=>{var e;null==(e=l.current.shift())||e()}).then(()=>s(t))});return(0,z.useMemo)(()=>({children:r,register:a,unregister:i,onStart:u,onStop:p,wait:c,chains:d}),[a,i,r,u,p,d,c])}function Ce(){}je.displayName="NestingContext";let ke=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Ee(e){var t;let s={};for(let r of ke)s[r]=null!=(t=e[r])?t:Ce;return s}let Ne=W.RenderStrategy,Re=Z(function(e,t){let{beforeEnter:s,afterEnter:r,beforeLeave:n,afterLeave:o,enter:i,enterFrom:a,enterTo:l,entered:c,leave:d,leaveFrom:u,leaveTo:p,...m}=e,y=(0,z.useRef)(null),h=pe(y,t),g=m.unmount?G.Unmount:G.Hidden,{show:f,appear:x,initial:v}=function(){let e=(0,z.useContext)(ve);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[w,b]=(0,z.useState)(f?"visible":"hidden"),j=function(){let e=(0,z.useContext)(je);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:_,unregister:S}=j,C=(0,z.useRef)(null);(0,z.useEffect)(()=>_(y),[_,y]),(0,z.useEffect)(()=>{if(g===G.Hidden&&y.current)return f&&"visible"!==w?void b("visible"):q(w,{hidden:()=>S(y),visible:()=>_(y)})},[w,y,_,S,f,g]);let k=le({enter:xe(i),enterFrom:xe(a),enterTo:xe(l),entered:xe(c),leave:xe(d),leaveFrom:xe(u),leaveTo:xe(p)}),E=function(e){let t=(0,z.useRef)(Ee(e));return(0,z.useEffect)(()=>{t.current=Ee(e)},[e]),t}({beforeEnter:s,afterEnter:r,beforeLeave:n,afterLeave:o}),N=ce();(0,z.useEffect)(()=>{if(N&&"visible"===w&&null===y.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[y,w,N]);let R=v&&!x,M=!N||R||C.current===f?"idle":f?"enter":"leave",L=de(e=>q(e,{enter:()=>E.current.beforeEnter(),leave:()=>E.current.beforeLeave(),idle:()=>{}})),T=de(e=>q(e,{enter:()=>E.current.afterEnter(),leave:()=>E.current.afterLeave(),idle:()=>{}})),P=Se(()=>{b("hidden"),S(y)},j);fe({container:y,classes:k,direction:M,onStart:le(e=>{P.onStart(y,e,L)}),onStop:le(e=>{P.onStop(y,e,T),"leave"===e&&!_e(P)&&(b("hidden"),S(y))})}),(0,z.useEffect)(()=>{!R||(g===G.Hidden?C.current=null:C.current=f)},[f,R,w]);let O=m,I={ref:h};return x&&f&&oe.isServer&&(O={...O,className:B(m.className,...k.current.enter,...k.current.enterFrom)}),z.createElement(je.Provider,{value:P},z.createElement(se,{value:q(w,{visible:ee.Open,hidden:ee.Closed})},V({ourProps:I,theirProps:O,defaultTag:"div",features:Ne,visible:"visible"===w,name:"Transition.Child"})))}),Me=Z(function(e,t){let{show:s,appear:r=!1,unmount:n,...o}=e,i=(0,z.useRef)(null),a=pe(i,t);ce();let l=te();if(void 0===s&&null!==l&&(s=q(l,{[ee.Open]:!0,[ee.Closed]:!1})),![!0,!1].includes(s))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,d]=(0,z.useState)(s?"visible":"hidden"),u=Se(()=>{d("hidden")}),[p,m]=(0,z.useState)(!0),y=(0,z.useRef)([s]);ie(()=>{!1!==p&&y.current[y.current.length-1]!==s&&(y.current.push(s),m(!1))},[y,s]);let h=(0,z.useMemo)(()=>({show:s,appear:r,initial:p}),[s,r,p]);(0,z.useEffect)(()=>{if(s)d("visible");else if(_e(u)){let e=i.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&d("hidden")}else d("hidden")},[s,u]);let g={unmount:n};return z.createElement(je.Provider,{value:u},z.createElement(ve.Provider,{value:h},V({ourProps:{...g,as:z.Fragment,children:z.createElement(Re,{ref:a,...g,...o})},theirProps:{},defaultTag:z.Fragment,features:Ne,visible:"visible"===c,name:"Transition"})))}),Le=Z(function(e,t){let s=null!==(0,z.useContext)(ve),r=null!==te();return z.createElement(z.Fragment,null,!s&&r?z.createElement(Me,{ref:t,...e}):z.createElement(Re,{ref:t,...e}))}),Te=Object.assign(Me,{Child:Le,Root:Me});var Pe=s(1802),Oe=s.n(Pe);const Ie=()=>{const e=(0,t.useSelect)(e=>e(v).selectLink("https://yoa.st/ai-common-errors"),[]),s=(0,t.useSelect)(e=>e(v).selectAdminLink("?page=wpseo_page_support"),[]);return(0,h.jsxs)(o.Alert,{variant:"error",children:[(0,h.jsx)("span",{className:"yst-block yst-font-medium",children:(0,i.__)("Something went wrong","wordpress-seo")}),(0,h.jsx)("p",{className:"yst-mt-2",children:(0,u.x)((0,i.sprintf)(/* translators: %1$s and %3$s expand to an opening tag. %2$s and %4$s expand to a closing tag. */ /* translators: %1$s and %3$s expand to an opening tag. %2$s and %4$s expand to a closing tag. */
(0,i.__)("Please try again later. If this issue persists, you can learn more about possible reasons for this error on our page about %1$scommon AI feature problems and errors%2$s. In case you need further help, please %3$scontact our support team%4$s.","wordpress-seo"),"<a1>","</a1>","<a2>","</a2>"),{a1:(0,h.jsx)(p.rd,{variant:"error",href:e}),a2:(0,h.jsx)(p.rd,{variant:"error",href:s})})})]})},Ae=()=>{const e=(0,t.useSelect)(e=>e(v).selectLink("https://yoa.st/ai-common-errors"),[]),s=(0,t.useSelect)(e=>e(v).selectAdminLink("?page=wpseo_page_support"),[]);return(0,h.jsxs)(o.Alert,{variant:"error",children:[(0,h.jsx)("span",{className:"yst-block yst-font-medium",children:(0,i.__)("Not enough content","wordpress-seo")}),(0,h.jsx)("p",{className:"yst-mt-2",children:(0,u.x)((0,i.sprintf)(/* translators: %1$s and %3$s expand to an opening tag. %2$s and %4$s expand to a closing tag. */ /* translators: %1$s and %3$s expand to an opening tag. %2$s and %4$s expand to a closing tag. */
(0,i.__)("Please add more content to ensure a valuable AI suggestion. Learn more on our page about %1$scommon AI feature problems and errors%2$s. In case you need further help, please %3$scontact our support team%4$s.","wordpress-seo"),"<a1>","</a1>","<a2>","</a2>"),{a1:(0,h.jsx)(p.rd,{variant:"error",href:e}),a2:(0,h.jsx)(p.rd,{variant:"error",href:s})})})]})},$e=()=>{const e=(0,t.useSelect)(e=>e(v).selectAdminLink("?page=wpseo_page_settings#/site-features#card-wpseo-keyword_analysis_active"),[]),s=(0,r.useCallback)(()=>{window.location.reload()},[]),{onClose:n}=(0,o.useModalContext)();return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(o.Alert,{variant:"error",children:[(0,h.jsx)("span",{className:"yst-block yst-font-medium",children:(0,i.__)("SEO analysis required","wordpress-seo")}),(0,h.jsx)("p",{className:"yst-mt-2",children:(0,u.x)((0,i.sprintf)(
/**
         * translators:
         * %1$s expands to Yoast SEO.
         * %2$s and %3$s expand to an opening and closing anchor tag, respectively, that links to the settings page.
         * %4$s expands to Yoast AI.
         */
/**
         * translators:
         * %1$s expands to Yoast SEO.
         * %2$s and %3$s expand to an opening and closing anchor tag, respectively, that links to the settings page.
         * %4$s expands to Yoast AI.
         */
(0,i.__)("%4$s requires the SEO analysis to be enabled. To enable it, please navigate to %2$sSite features%3$s in %1$s, turn on the SEO analysis, and click 'Save changes'. If it's disabled in your WordPress user profile, access your profile and enable it there. Please contact your administrator if you don't have access to these settings.","wordpress-seo"),"Yoast SEO","<a>","</a>","Yoast AI"),{a:(0,h.jsx)(p.rd,{variant:"error",href:e})})})]}),(0,h.jsxs)("div",{className:"yst-mt-6 yst-mb-1 yst-flex yst-space-x-3 rtl:yst-space-x-reverse yst-place-content-end",children:[(0,h.jsx)(o.Button,{variant:"secondary",onClick:n,children:(0,i.__)("Close","wordpress-seo")}),(0,h.jsx)(o.Button,{className:"yst-revoke-button",variant:"primary",onClick:s,children:(0,i.__)("Refresh page","wordpress-seo")})]})]})},Fe=()=>{const e=(0,t.useSelect)(e=>e(v).selectLink("https://yoa.st/ai-generator-rate-limit-help"),[]);return(0,h.jsxs)(o.Alert,{variant:"error",children:[(0,h.jsx)("span",{className:"yst-block yst-font-medium",children:(0,i.__)("You've reached the Yoast AI rate limit","wordpress-seo")}),(0,h.jsx)("p",{className:"yst-mt-2",children:(0,u.x)((0,i.sprintf)(/* translators: %1$s expands to an opening tag. %2$s expands to a closing tag. */ /* translators: %1$s expands to an opening tag. %2$s expands to a closing tag. */
(0,i.__)("You might have reached your Yoast AI rate limit for a specific time frame or your sparks limit for this month. If you have reached your rate limit, please reduce the frequency of your requests to continue using Yoast AI features. Our %1$shelp article%2$s provides guidance on effectively planning and pacing your requests for an optimized workflow.","wordpress-seo"),"<a>","</a>"),{a:(0,h.jsx)(p.rd,{variant:"error",href:e})})})]})};var Ue=s(1455),ze=s.n(Ue);const Be=({invalidSubscriptions:e=[]})=>{const{newYoastWooLink:s,activateYoastWooLink:n,newPremiumLink:a,activatePremiumLink:l,bustSubscriptionCacheEndpoint:c}=(0,t.useSelect)(e=>{const t=e(v);return{newYoastWooLink:t.selectLink("https://yoa.st/ai-generator-new-yoast-woocommerce"),activateYoastWooLink:t.selectLink("https://yoa.st/ai-generator-activate-yoast-woocommerce"),newPremiumLink:t.selectLink("https://yoa.st/ai-generator-new-premium"),activatePremiumLink:t.selectLink("https://yoa.st/ai-generator-activate-premium"),bustSubscriptionCacheEndpoint:e(x).selectBustSubscriptionCacheEndpoint()}},[]),{onClose:d}=(0,o.useModalContext)(),m=(0,r.useCallback)(async()=>{try{await ze()({path:c,method:"POST",parse:!1})}catch(e){console.error(e)}window.location.reload()},[]);let y,g,f;return e.includes("Yoast WooCommerce SEO")?(y="Yoast WooCommerce SEO",g=n,f=s):e.includes("Yoast SEO Premium")&&(y="Yoast SEO Premium",g=l,f=a),(0,h.jsxs)(r.Fragment,{children:[(0,h.jsxs)(o.Alert,{variant:"error",children:[(0,h.jsx)("span",{className:"yst-block yst-font-medium",children:(0,i.__)("Subscription required","wordpress-seo")}),(0,h.jsx)("p",{className:"yst-mt-2",children:(0,u.x)((0,i.sprintf)(
/**
         * translators:
         * %1$s expands to Yoast SEO Premium or Yoast WooCommerce SEO.
         * %2$s expands to MyYoast.
         * %3$s and %4$s expand to an opening and closing anchor tag, respectively, to activate your subscription.
         * %5$s and %6$s expand to an opening and closing anchor tag, respectively, to get a new subscription.
         **/
/**
         * translators:
         * %1$s expands to Yoast SEO Premium or Yoast WooCommerce SEO.
         * %2$s expands to MyYoast.
         * %3$s and %4$s expand to an opening and closing anchor tag, respectively, to activate your subscription.
         * %5$s and %6$s expand to an opening and closing anchor tag, respectively, to get a new subscription.
         **/
(0,i.__)("To access this feature, you need an active %1$s subscription. Please %3$sactivate your subscription in %2$s%4$s or %5$sget a new %1$s subscription%6$s. Afterward, refresh this page. It may take up to 30 seconds for the feature to function correctly.","wordpress-seo"),y,"MyYoast","<Activate>","</Activate>","<New>","</New>"),{Activate:(0,h.jsx)(p.rd,{variant:"error",href:g}),New:(0,h.jsx)(p.rd,{variant:"error",href:f})})})]}),(0,h.jsxs)("div",{className:"yst-mt-6 yst-mb-1 yst-flex yst-space-x-3 rtl:yst-space-x-reverse yst-place-content-end",children:[(0,h.jsx)(o.Button,{variant:"secondary",onClick:d,children:(0,i.__)("Close","wordpress-seo")}),(0,h.jsx)(o.Button,{variant:"primary",onClick:m,children:(0,i.__)("Refresh page","wordpress-seo")})]})]})};Be.propTypes={invalidSubscriptions:Oe().arrayOf(Oe().string)};const qe=()=>{const e=(0,t.useSelect)(e=>e(v).selectLink("https://yoa.st/ai-common-errors"),[]),s=(0,t.useSelect)(e=>e(v).selectAdminLink("?page=wpseo_page_support"),[]);return(0,h.jsxs)(o.Alert,{variant:"error",children:[(0,h.jsx)("span",{className:"yst-block yst-font-medium",children:(0,i.__)("Connection timeout","wordpress-seo")}),(0,h.jsx)("p",{className:"yst-mt-2",children:(0,u.x)((0,i.sprintf)(/* translators: %1$s and %3$s expand to an opening tag. %2$s and %4$s expand to a closing tag. */ /* translators: %1$s and %3$s expand to an opening tag. %2$s and %4$s expand to a closing tag. */
(0,i.__)("It seems that a connection timeout has occurred. Please check your internet connection and try again later. Learn more on our page about %1$scommon AI feature problems and errors%2$s. In case you need further help, please %3$scontact our support team%4$s.","wordpress-seo"),"<a1>","</a1>","<a2>","</a2>"),{a1:(0,h.jsx)(p.rd,{variant:"error",href:e}),a2:(0,h.jsx)(p.rd,{variant:"error",href:s})})})]})},De=()=>{const e=(0,t.useSelect)(e=>e(v).selectAdminLink("?page=wpseo_page_support"),[]);return(0,h.jsxs)(o.Alert,{variant:"error",children:[(0,h.jsx)("span",{className:"yst-block yst-font-medium",children:(0,i.__)("Usage policy violation","wordpress-seo")}),(0,h.jsx)("p",{className:"yst-mt-2",children:(0,u.x)((0,i.sprintf)(
/* translators: %1$s, %2$s, %3$s, %4$s are anchor tags.
       * %5$s expands to OpenAI.
       */
/* translators: %1$s, %2$s, %3$s, %4$s are anchor tags.
       * %5$s expands to OpenAI.
       */
(0,i.__)("Due to %5$s's strict ethical guidelines and %1$susage policies%2$s, we cannot generate suggestions for the content on this page. If you intend to use AI, kindly avoid the use of explicit, violent, copyrighted, or sexually explicit content. In case you need further help, please %3$scontact our support team%4$s.","wordpress-seo"),"<a1>","</a1>","<a2>","</a2>","OpenAI"),{a1:(0,h.jsx)(p.rd,{variant:"error",href:"https://openai.com/policies/usage-policies"}),a2:(0,h.jsx)(p.rd,{variant:"error",href:e})})})]})},He=({errorMessage:e=""})=>{const s=(0,t.useSelect)(e=>e(v).selectAdminLink("?page=wpseo_page_support"),[]);return(0,h.jsxs)(o.Alert,{variant:"error",children:[(0,h.jsx)("span",{className:"yst-block yst-font-medium",children:(0,i.__)("Something went wrong","wordpress-seo")}),(0,h.jsx)("p",{className:"yst-mt-2",children:(0,i.sprintf)(/* translators: %s is the error response of the request. */ /* translators: %s is the error response of the request. */
(0,i.__)("The request came back with the following error: '%s'.","wordpress-seo"),e)}),(0,h.jsx)("p",{className:"yst-mt-2",children:(0,u.x)((0,i.sprintf)(/* translators: %1$s expands to an opening tag. %2$s expands to a closing tag. */ /* translators: %1$s expands to an opening tag. %2$s expands to a closing tag. */
(0,i.__)("Please try again later. If the issue persists, please %1$scontact our support team%2$s.","wordpress-seo"),"<a>","</a>"),{a:(0,h.jsx)(p.rd,{variant:"error",href:s})})})]})};He.propTypes={errorMessage:Oe().string};const We=()=>{const e=(0,t.useSelect)(e=>e(v).selectAdminLink("plugins.php"),[]);return(0,h.jsxs)(o.Alert,{variant:"error",children:[(0,h.jsx)("span",{className:"yst-block yst-font-medium",children:(0,i.__)("Something went wrong","wordpress-seo")}),(0,h.jsx)("p",{className:"yst-mt-2",children:(0,u.x)((0,i.sprintf)(/* translators: %1$s expands to Yoast SEO Premium. %2$s expands to an opening link tag. %3$s expands to a closing link tag. */ /* translators: %1$s expands to Yoast SEO Premium. %2$s expands to an opening link tag. %3$s expands to a closing link tag. */
(0,i.__)("The version of %1$s is outdated. Please upgrade %1$s %2$shere%3$s!","wordpress-seo"),"Yoast SEO Premium","<a>","</a>"),{a:(0,h.jsx)(p.rd,{variant:"error",href:e})})})]})},Ge=()=>{const e=(0,t.useSelect)(e=>e(v).selectLink("https://yoa.st/ai-common-errors"),[]),s=(0,t.useSelect)(e=>e(v).selectAdminLink("?page=wpseo_page_support"),[]);return(0,h.jsxs)(o.Alert,{variant:"error",children:[(0,h.jsx)("span",{className:"yst-block yst-font-medium",children:(0,i.__)("Yoast AI cannot reach your site","wordpress-seo")}),(0,h.jsx)("p",{className:"yst-mt-2",children:(0,u.x)((0,i.sprintf)(/* translators: %1$s and %3$s expand to an opening tag. %2$s and %4$s expand to a closing tag. */ /* translators: %1$s and %3$s expand to an opening tag. %2$s and %4$s expand to a closing tag. */
(0,i.__)("To use this feature, your site must be publicly accessible. This applies to both test sites and instances where your REST API is password-protected. Please ensure your site is accessible to the public and try again. Learn more on our page about %1$scommon AI feature problems and errors%2$s. In case you need further help, please %3$scontact our support team%4$s.","wordpress-seo"),"<a1>","</a1>","<a2>","</a2>"),{a1:(0,h.jsx)(p.rd,{variant:"error",href:e}),a2:(0,h.jsx)(p.rd,{variant:"error",href:s})})})]})},Ve=({errorCode:e,errorIdentifier:s="",errorMessage:r="",missingLicenses:a=[],onRetry:l=n.noop})=>{const{onClose:c}=(0,o.useModalContext)();if((0,t.useSelect)(e=>e("yoast-seo/editor").getIsPremium(),[])&&(402===e||429===e&&"USAGE_LIMIT_REACHED"===s)){const e=a.length>0?a:["Yoast SEO Premium"];return(0,h.jsx)(Be,{invalidSubscriptions:e})}let d;switch(e){case 400:switch(s){case"SITE_UNREACHABLE":d=(0,h.jsx)(Ge,{});break;case"WP_HTTP_REQUEST_ERROR":d=(0,h.jsx)(He,{errorMessage:r});break;default:d=(0,h.jsx)(Ie,{})}break;case 408:d=(0,h.jsx)(qe,{});break;case 429:d=(0,h.jsx)(Fe,{});break;default:d=(0,h.jsx)(Ie,{})}return(0,h.jsxs)(h.Fragment,{children:[d,(0,h.jsxs)("div",{className:"yst-mt-6 yst-mb-1 yst-flex yst-space-x-3 rtl:yst-space-x-reverse yst-place-content-end",children:[(0,h.jsx)(o.Button,{variant:"secondary",onClick:c,children:(0,i.__)("Close","wordpress-seo")}),(0,h.jsx)(o.Button,{variant:"primary",onClick:l,children:(0,i.__)("Try again","wordpress-seo")})]})]})};Ve.propTypes={errorCode:Oe().number.isRequired,errorIdentifier:Oe().string,errorMessage:Oe().string,missingLicenses:Oe().arrayOf(Oe().string),onRetry:Oe().func};const Ye=z.forwardRef(function(e,t){return z.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),z.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253"}))}),Ke=z.forwardRef(function(e,t){return z.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),z.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 20l-5.447-2.724A1 1 0 013 16.382V5.618a1 1 0 011.447-.894L9 7m0 13l6-3m-6 3V7m6 10l4.553 2.276A1 1 0 0021 18.382V7.618a1 1 0 00-.553-.894L15 4m0 13V4m0 0L9 7"}))}),Ze=z.forwardRef(function(e,t){return z.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),z.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z"}))}),Je=z.forwardRef(function(e,t){return z.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),z.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z"}))}),Qe={informational:{classes:"yst-bg-blue-200 yst-text-blue-900",calloutClasses:"yst-bg-blue-50 yst-border-blue-200",calloutTextClasses:"yst-text-blue-900",Icon:Ye,label:(0,i.__)("Informational","wordpress-seo"),tooltip:(0,i.__)("The user wants to find an answer to a specific question.","wordpress-seo")},navigational:{classes:"yst-bg-violet-200 yst-text-violet-900",calloutClasses:"yst-bg-violet-50 yst-border-violet-200",calloutTextClasses:"yst-text-violet-900",Icon:Ke,label:(0,i.__)("Navigational","wordpress-seo"),tooltip:(0,i.__)("The user wants to find a specific page or site.","wordpress-seo")},commercial:{classes:"yst-bg-amber-200 yst-text-amber-900",calloutClasses:"yst-bg-amber-50 yst-border-amber-200",calloutTextClasses:"yst-text-amber-900",Icon:Ze,label:(0,i.__)("Commercial","wordpress-seo"),tooltip:(0,i.__)("The user wants to investigate brands or services.","wordpress-seo")},transactional:{classes:"yst-bg-green-200 yst-text-green-900",calloutClasses:"yst-bg-green-50 yst-border-green-200",calloutTextClasses:"yst-text-green-900",Icon:Je,label:(0,i.__)("Transactional","wordpress-seo"),tooltip:(0,i.__)("The user wants to complete an action (conversion).","wordpress-seo")}},Xe=({intent:e,className:t,tooltipPosition:s="top-right",cursor:n="default"})=>{const i=Qe[e],a=(0,o.useSvgAria)(),l=`intent-tooltip-${e}-${(0,r.useId)()}`;if(!i)return(0,h.jsx)(o.Badge,{children:e});const{Icon:c}=i,d="pointer"===n?"yst-cursor-pointer":"yst-cursor-default";return(0,h.jsxs)(o.TooltipContainer,{children:[(0,h.jsx)(o.TooltipTrigger,{as:"span",ariaDescribedby:l,className:"yst-inline-flex yst-w-fit",children:(0,h.jsxs)(o.Badge,{className:y()("yst-relative yst-flex yst-items-center yst-gap-1 yst-w-fit",d,i.classes,t),children:[(0,h.jsx)(c,{className:y()("yst-w-3",i.classes),...a})," ",i.label]})}),(0,h.jsx)(o.TooltipWithContext,{id:l,className:"yst-max-w-48 yst-z-50 yst-text-center",position:s,children:i.tooltip})]})},et=({suggestion:e,onClick:t})=>{const{intent:s,title:n,explanation:o}=e,i=(0,r.useCallback)(()=>t(e),[t,e]);return(0,h.jsxs)("button",{type:"button",onClick:i,className:"hover:yst-bg-slate-50 yst-group yst-text-start yst-w-full yst-rounded-md yst-border yst-border-slate-200 yst-mb-4 yst-p-4 yst-shadow-sm focus:yst-outline focus:yst-outline-2 focus:yst-outline-offset-2 focus:yst-outline-primary-500",children:[(0,h.jsx)(Xe,{intent:s,className:"yst-mb-2",cursor:"pointer"}),(0,h.jsx)("div",{className:"yst-font-medium yst-text-sm yst-mb-2 yst-text-slate-800 group-hover:yst-text-slate-900",children:(0,h.jsx)("span",{className:"group-hover:yst-border-b group-hover:yst-border-slate-900",children:n})}),(0,h.jsx)("p",{className:"yst-text-slate-600",children:o})]})},tt=()=>(0,h.jsxs)("div",{className:"yst-w-full yst-rounded-md yst-border yst-border-slate-200 yst-mb-4 yst-p-4 yst-shadow-sm",children:[(0,h.jsxs)("div",{className:"yst-px-2 yst-py-1 yst-bg-white yst-inline-flex yst-gap-1 yst-items-center yst-justify-start yst-mb-2 yst-rounded-3xl yst-border yst-border-slate-300",children:[(0,h.jsx)(o.SkeletonLoader,{className:"yst-w-2 yst-h-2 yst-rounded-full"}),(0,h.jsx)(o.SkeletonLoader,{className:"yst-w-20 yst-h-3 yst-rounded"})]}),(0,h.jsx)(o.SkeletonLoader,{className:"yst-w-64 yst-h-[18px] yst-rounded yst-mb-3"}),(0,h.jsx)(o.SkeletonLoader,{className:"yst-w-full yst-h-[13px] yst-rounded yst-mb-2"}),(0,h.jsx)(o.SkeletonLoader,{className:"yst-w-2/3 yst-h-[13px] yst-rounded"})]}),st=({suggestions:e,onSuggestionClick:t})=>(0,h.jsxs)("div",{children:[(0,h.jsx)(o.Modal.Description,{className:"yst-mb-4",children:(0,i.__)("Select a suggestion to generate a structured outline for your post.","wordpress-seo")}),e.map((e,s)=>(0,h.jsx)(et,{suggestion:e,onClick:t},`suggestion-${s}`))]}),rt=()=>{const e=(0,o.useSvgAria)(),[t,s]=(0,r.useState)(0),[n,a]=(0,r.useState)(!0),[l,c]=(0,r.useState)(!0),d=[(0,i.__)("Analyzing your site content…","wordpress-seo"),(0,i.__)("Composing your content suggestions…","wordpress-seo"),(0,i.__)("Writing compelling headlines…","wordpress-seo")],u=(0,r.useRef)(null);return(0,r.useEffect)(()=>{const e=setInterval(()=>{a(!1),u.current=setTimeout(()=>{s(e=>(e+1)%d.length),a(!0)},300)},3e3);return()=>{clearInterval(e),clearTimeout(u.current)}},[]),(0,r.useEffect)(()=>{const e=setInterval(()=>{c(e=>!e)},1e3);return()=>clearInterval(e)},[]),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("div",{className:"yst-flex yst-flex-col yst-items-center yst-pb-8",children:[(0,h.jsx)(U.h,{className:"yst-w-24 yst-mb-2 yst-mt-6 yst-transition-colors yst-duration-1000 "+(l?"yst-text-primary-300":"yst-text-primary-500"),...e}),(0,h.jsxs)(o.Modal.Description,{className:"yst-italic yst-text-slate-500 yst-transition-opacity yst-duration-300 "+(n?"yst-opacity-100":"yst-opacity-0"),children:[(0,h.jsx)("span",{className:"yst-sr-only",children:" Yoast "}),d[t]]})]}),(0,h.jsxs)("div",{className:"yst-relative",children:[[...Array(5)].map((e,t)=>(0,h.jsx)(tt,{},t)),(0,h.jsx)("div",{className:"yst-absolute yst-inset-0 yst-bg-gradient-to-t yst-from-white yst-to-transparent yst-transition-opacity","aria-hidden":"true"})]})]})},nt=(0,a.compose)([(0,t.withSelect)(e=>{const{selectSuggestions:t,selectSuggestionsStatus:s,selectSuggestionsError:r}=e(f.bw);return{suggestions:t(),status:s(),error:r()}})])(({status:e,onSuggestionClick:t=n.noop,suggestions:s,error:i,closeButtonRef:a})=>{const l=F(),c=e===$.$H.loading,d=e===$.$H.success;return(0,r.useEffect)(()=>{null!=a&&a.current&&a.current.focus()},[c]),(0,h.jsx)(o.Modal.Container.Content,{className:"yst-overflow-y-auto yst-p-6 yst-m-0",children:(0,h.jsxs)("div",{className:"yst-relative","aria-live":"polite",children:[(0,h.jsx)(Te,{as:"div",show:c,enter:"yst-transition-opacity yst-duration-300",enterFrom:"yst-opacity-0",enterTo:"yst-opacity-100",leave:"yst-transition-opacity yst-duration-300 yst-absolute yst-top-0 yst-left-0 yst-right-0",leaveFrom:"yst-opacity-100",leaveTo:"yst-opacity-0",children:(0,h.jsx)(rt,{})}),(0,h.jsx)(Te,{as:"div",show:d,enter:"yst-transition-opacity yst-duration-300 yst-delay-300",enterFrom:"yst-opacity-0",enterTo:"yst-opacity-100",leave:"yst-transition-opacity yst-duration-300",leaveFrom:"yst-opacity-100",leaveTo:"yst-opacity-0",children:(0,h.jsx)(st,{suggestions:s,onSuggestionClick:t})}),e===$.$H.error&&(0,h.jsx)(Ve,{errorCode:i.errorCode,errorIdentifier:i.errorIdentifier,errorMessage:i.errorMessage,missingLicenses:i.missingLicenses,onRetry:l})]})})}),ot=z.forwardRef(function(e,t){return z.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),z.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 19l-7-7m0 0l7-7m-7 7h18"}))});var it=s(3838);const at=({intent:e,description:t})=>{const s=Qe[e],r=s?s.calloutClasses:"yst-bg-slate-50 yst-border-slate-200",n=s?s.calloutTextClasses:"yst-text-slate-900";return(0,h.jsxs)("div",{role:"note",className:y()("yst-border yst-rounded-md yst-p-4 yst-flex yst-flex-col yst-gap-2",r),children:[(0,h.jsxs)("div",{className:"yst-flex yst-items-center yst-gap-2",children:[(0,h.jsx)(Xe,{intent:e,tooltipPosition:"bottom-right"}),(0,h.jsx)("span",{className:y()("yst-font-medium yst-text-sm",n),children:(0,i.__)("Why this content?","wordpress-seo")})]}),(0,h.jsx)("p",{className:y()("yst-text-sm",n),children:t})]})},lt=({children:e,className:t,dragProps:s,buttonProps:r})=>{const n=(0,o.useSvgAria)();return(0,h.jsx)("li",{...s,children:(0,h.jsxs)("button",{type:"button",className:y()("yst-h-10 yst-w-full yst-border yst-rounded-md yst-shadow yst-flex yst-items-center yst-gap-3 yst-px-3 yst-select-none",t),...r,children:[(0,h.jsxs)("svg",{className:"yst-w-2.5 yst-h-4 yst-shrink-0",viewBox:"0 0 10 16",fill:"currentColor",...n,children:[(0,h.jsx)("circle",{cx:"2",cy:"2",r:"1.5"}),(0,h.jsx)("circle",{cx:"8",cy:"2",r:"1.5"}),(0,h.jsx)("circle",{cx:"2",cy:"8",r:"1.5"}),(0,h.jsx)("circle",{cx:"8",cy:"8",r:"1.5"}),(0,h.jsx)("circle",{cx:"2",cy:"14",r:"1.5"}),(0,h.jsx)("circle",{cx:"8",cy:"14",r:"1.5"})]}),(0,h.jsx)("div",{className:"yst-flex yst-items-center yst-gap-3 yst-flex-1 yst-min-w-0",children:e})]})})},ct=({heading:e,index:t,dragOverIndex:s,onDragStart:n,onDragOver:o,onDrop:a,onDragEnd:l,onMoveUp:c,onMoveDown:d,totalItems:u,onAnnounce:p})=>{const m=(0,r.useCallback)(e=>n(e,t),[n,t]),g=(0,r.useCallback)(e=>o(e,t),[o,t]),f=(0,r.useCallback)(e=>a(e,t),[a,t]),x=(0,r.useCallback)(s=>{s.altKey&&("ArrowUp"===s.key&&t>0&&(s.preventDefault(),c(t),p(e,t)),"ArrowDown"===s.key&&t<u-1&&(s.preventDefault(),d(t),p(e,t+2)))},[t,u,c,d,p,e]),v={draggable:"true",onDragStart:m,onDragOver:g,onDrop:f,onDragEnd:l};return(0,h.jsxs)(lt,{className:y()("yst-bg-slate-50 yst-text-slate-400 yst-border-slate-300 yst-text-sm yst-cursor-grab yst-transition-all focus:yst-outline focus:yst-outline-2 focus:yst-outline-offset-2 focus:yst-outline-primary-500",s===t&&"yst-border-primary-500 yst-border-2"),buttonProps:{onKeyDown:x},dragProps:v,children:[(0,h.jsx)("span",{className:"yst-font-medium yst-text-slate-500",children:"H2"}),(0,h.jsx)("span",{className:"yst-text-slate-600",children:e}),(0,h.jsx)("span",{className:"yst-sr-only",children:(0,i.sprintf)(/* translators: 1: current position, 2: total items. */ /* translators: 1: current position, 2: total items. */
(0,i.__)("Position %1$d out of %2$d. Use Alt+Arrow Up/Down to reorder.","wordpress-seo"),t+1,u)})]})},dt=()=>(0,h.jsxs)(lt,{className:"yst-bg-white yst-text-slate-300 yst-border-slate-200",buttonProps:{disabled:!0},dragProps:{"aria-hidden":!0},children:[(0,h.jsx)(o.SkeletonLoader,{className:"yst-h-3.5 yst-w-5 yst-rounded yst-shrink-0"}),(0,h.jsx)(o.SkeletonLoader,{className:"yst-h-3.5 yst-w-32 yst-rounded"})]}),ut=({categoryName:e,isEnabled:t,isLoading:s})=>s?(0,h.jsx)("div",{className:"yst-inline-flex yst-items-center yst-w-20 yst-h-5 yst-px-2 yst-py-1 yst-rounded-full yst-border yst-border-slate-300",children:(0,h.jsx)(o.SkeletonLoader,{className:"yst-w-16 yst-h-3 yst-rounded"})}):t&&e?(0,h.jsx)(o.Badge,{variant:"plain",className:"yst-w-fit",children:e}):null,pt=({category:e,isEnabled:t=!1,onToggle:s=n.noop,isLoading:r=!1})=>(0,h.jsxs)("div",{className:"yst-flex yst-flex-col yst-gap-3 yst-max-w-sm yst-mb-6",children:[(0,h.jsxs)("div",{className:"yst-flex yst-flex-col yst-gap-1.5",children:[(0,h.jsxs)("div",{className:"yst-flex yst-items-center yst-justify-between",children:[(0,h.jsx)("span",{className:"yst-font-medium yst-text-sm yst-text-slate-800",children:(0,i.__)("Suggest category","wordpress-seo")}),(0,h.jsx)(o.Toggle,{id:"suggest-category-toggle",checked:t,onChange:s,disabled:r,screenReaderLabel:(0,i.__)("Suggest category","wordpress-seo")})]}),(0,h.jsx)("p",{className:"yst-text-sm yst-text-slate-600",children:(0,i.__)("Adds post to an existing category, when applicable.","wordpress-seo")})]}),(0,h.jsx)(ut,{categoryName:null==e?void 0:e.name,isEnabled:t,isLoading:r})]}),mt=()=>(0,h.jsxs)("div",{className:"yst-flex yst-items-end yst-justify-between yst-mb-2",children:[(0,h.jsx)("span",{className:"yst-font-medium yst-text-sm yst-text-slate-800",children:(0,i.__)("Blog post structure","wordpress-seo")}),(0,h.jsx)("span",{className:"yst-text-xs yst-text-slate-500",children:(0,i.__)("Drag to reorder","wordpress-seo")})]}),yt=({value:e,date:t="",locale:s,isCornerstone:r})=>{const{actual:n,score:o,max:i}=(0,it.getDescriptionProgress)(e,t,r,!1,s),a=Math.min(n/i*100,100);return(0,h.jsx)("div",{className:"yst-w-full yst-h-1.5 yst-bg-slate-200 yst-rounded-full yst-overflow-hidden","aria-hidden":"true",children:(0,h.jsx)("div",{className:"yst-h-full yst-rounded-full yst-transition-all yst-duration-300",style:{width:`${a}%`,backgroundColor:(0,it.getProgressColor)(o)}})})},ht=({label:e,multiline:t=!1})=>(0,h.jsxs)("div",{className:"yst-flex yst-flex-col yst-gap-2",children:[(0,h.jsx)("span",{className:"yst-font-medium yst-text-sm yst-text-slate-800",children:e}),(0,h.jsx)("div",{className:y()("yst-bg-white yst-border yst-border-slate-300 yst-rounded-md yst-shadow-sm yst-px-3 yst-py-2",t?"yst-min-h-20 yst-flex yst-flex-col yst-gap-1":"yst-h-10 yst-flex yst-items-center"),children:t?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(o.SkeletonLoader,{className:"yst-w-full yst-h-4 yst-rounded"}),(0,h.jsx)(o.SkeletonLoader,{className:"yst-w-full yst-h-4 yst-rounded"}),(0,h.jsx)(o.SkeletonLoader,{className:"yst-w-1/2 yst-h-4 yst-rounded"})]}):(0,h.jsx)(o.SkeletonLoader,{className:"yst-w-1/3 yst-h-4 yst-rounded"})})]}),gt=()=>(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(pt,{isLoading:!0}),(0,h.jsxs)("div",{className:"yst-flex yst-flex-col",children:[(0,h.jsxs)("div",{className:"yst-flex yst-flex-col yst-gap-4",children:[(0,h.jsx)(ht,{label:(0,i.__)("Focus Keyphrase","wordpress-seo")}),(0,h.jsx)(ht,{label:(0,i.__)("Title","wordpress-seo")}),(0,h.jsx)(ht,{label:(0,i.__)("Meta description","wordpress-seo"),multiline:!0})]}),(0,h.jsx)("hr",{className:"yst-border-slate-200 yst-my-6"}),(0,h.jsx)(mt,{}),(0,h.jsx)("ul",{"aria-label":(0,i.__)("Blog post structure","wordpress-seo"),"aria-busy":!0,className:"yst-list-none yst-p-0 yst-m-0 yst-flex yst-flex-col yst-gap-2",children:Array.from({length:f.Tf}).map((e,t)=>(0,h.jsx)(dt,{},`structure-row-skeleton-${t}`))})]})]}),ft=(0,a.compose)([(0,t.withSelect)(e=>{const{selectSuggestion:t,selectContentOutline:s,selectContentOutlineStatus:r,selectFeatureModalStatus:n,selectContentOutlineError:o}=e(f.bw),{getIsPremium:i}=e("yoast-seo/editor"),{isCornerstoneContent:a,getDateFromSettings:l,getContentLocale:c}=e("yoast-seo/editor");return{suggestion:t(),outline:s(),status:r(),error:o(),isPremium:i(),isActive:n()===f.Qo.contentOutline,locale:c(),date:l(),isCornerstone:a()}}),(0,t.withDispatch)(e=>{const{setFeatureModalStatus:t,saveOutlineEditsToCache:s,setSuggestion:r}=e(f.bw);return{onBackToSuggestions:(e,n)=>{s({id:e.id,structure:n}),r(e),t(f.Qo.contentSuggestions)}}})])(({status:e,onBackToSuggestions:s,onApplyOutline:n,suggestion:a,error:l,isCornerstone:c,date:d,locale:u,closeButtonRef:p})=>{const m=e===$.$H.loading,g=A(),x=(0,r.useCallback)(()=>g(a),[g,a]),[v,w]=(0,r.useState)(!0),[b,j]=(0,r.useState)(a.keyphrase),[_,S]=(0,r.useState)(a.title),[C,k]=(0,r.useState)(a.meta_description),{structure:E,dragOverIndex:N,reorderMessage:R,handleAnnounce:M,handleDragStart:L,handleDragOver:T,handleDrop:P,handleDragEnd:O,handleMoveUp:I,handleMoveDown:F}=(()=>{const e=(0,t.useSelect)(e=>e(f.bw).selectContentOutline(),[]),[s,n]=(0,r.useState)(e),[o,a]=(0,r.useState)(null),[l,c]=(0,r.useState)(""),d=(0,r.useRef)(null),u=(0,r.useCallback)((e,t)=>{c((0,i.sprintf)(/* translators: 1: heading text, 2: new 1-based position, 3: total items. */ /* translators: 1: heading text, 2: new 1-based position, 3: total items. */
(0,i.__)("H2 %1$s moved to position %2$d of %3$d.","wordpress-seo"),e,t,s.length))},[s.length]);(0,r.useEffect)(()=>{n(e),c(""),a(null),d.current=null},[e]);const p=(0,r.useCallback)((e,t)=>{d.current=t,e.dataTransfer.effectAllowed="move"},[]),m=(0,r.useCallback)((e,t)=>{e.preventDefault(),e.dataTransfer.dropEffect="move",a(t)},[]),y=(0,r.useCallback)((e,t)=>{e.preventDefault();const s=d.current;null!==s&&s!==t?(n(e=>{const r=[...e],[n]=r.splice(s,1),o=s<t?t-1:t;return r.splice(o,0,n),r}),a(null),d.current=null):a(null)},[]),h=(0,r.useCallback)(()=>{a(null),d.current=null},[]),g=(0,r.useCallback)(e=>{n(t=>{const s=[...t],[r]=s.splice(e,1);return s.splice(e-1,0,r),s})},[]),x=(0,r.useCallback)(e=>{n(t=>{const s=[...t],[r]=s.splice(e,1);return s.splice(e+1,0,r),s})},[]);return{structure:s,dragOverIndex:o,reorderMessage:l,handleAnnounce:u,handleDragStart:p,handleDragOver:m,handleDrop:y,handleDragEnd:h,handleMoveUp:g,handleMoveDown:x}})(),U=(0,r.useCallback)(e=>T(e,E.length),[T,E.length]),z=(0,r.useCallback)(e=>P(e,E.length),[P,E.length]);(0,r.useEffect)(()=>{j(a.keyphrase),S(a.title),k(a.meta_description)},[a]),(0,r.useEffect)(()=>{null!=p&&p.current&&p.current.focus()},[m]);const B=(0,r.useCallback)(e=>j(e.target.value),[]),q=(0,r.useCallback)(e=>S(e.target.value),[]),D=(0,r.useCallback)(e=>k(e.target.value),[]),H=(0,r.useCallback)(()=>{w(e=>!e)},[]),W=(0,r.useCallback)(()=>{s({...a,title:_,keyphrase:b,meta_description:C},E)},[s,a,_,b,C,E]),G=(0,r.useCallback)(()=>{n({title:_,metaDescription:C,focusKeyphrase:b,category:v?a.category:{name:"",id:-1},structure:E})},[n,_,C,b,v,a.category,E]),V=Boolean(a.category&&-1!==a.category.id);return e===$.$H.error?(0,h.jsx)(o.Modal.Container.Content,{className:"yst-overflow-y-auto yst-p-6 yst-m-0",children:(0,h.jsx)(Ve,{errorCode:l.errorCode,errorIdentifier:l.errorIdentifier,errorMessage:l.errorMessage,missingLicenses:l.missingLicenses,onRetry:x})}):(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(o.Modal.Container.Content,{className:"yst-overflow-y-auto yst-pt-6 yst-px-6 yst-pb-0 yst-m-0 yst-relative","aria-busy":m,children:[(0,h.jsxs)("div",{className:"yst-flex yst-flex-col yst-gap-6",children:[(0,h.jsx)(at,{intent:a.intent,description:a.explanation}),(0,h.jsx)(o.Modal.Description,{className:"yst-text-sm yst-text-slate-600",children:(0,i.__)("Review and customize your content outline before adding it to your post","wordpress-seo")}),(0,h.jsx)("hr",{className:"yst-border-slate-200"}),(0,h.jsx)(Te,{as:"div",show:m,enter:"yst-transition-opacity yst-duration-300 yst-delay-300",enterFrom:"yst-opacity-0",enterTo:"yst-opacity-100",leave:"yst-transition-opacity yst-duration-300",leaveFrom:"yst-opacity-100",leaveTo:"yst-opacity-0",children:(0,h.jsx)(gt,{})}),(0,h.jsxs)(Te,{as:"div",show:!m,enter:"yst-transition-opacity yst-duration-300 yst-delay-300",enterFrom:"yst-opacity-0",enterTo:"yst-opacity-100",leave:"yst-transition-opacity yst-duration-300",leaveFrom:"yst-opacity-100",leaveTo:"yst-opacity-0",children:[V&&(0,h.jsx)(pt,{category:a.category,isEnabled:v,onToggle:H}),(0,h.jsxs)("div",{className:"yst-flex yst-flex-col",children:[(0,h.jsxs)("div",{className:"yst-flex yst-flex-col yst-gap-4",children:[(0,h.jsx)(o.TextField,{id:"content-outline-focus-keyphrase",label:(0,i.__)("Focus Keyphrase","wordpress-seo"),value:b,onChange:B}),(0,h.jsx)(o.TextField,{id:"content-outline-title",label:(0,i.__)("Title","wordpress-seo"),value:_,onChange:q}),(0,h.jsxs)("div",{children:[(0,h.jsx)(o.TextareaField,{id:"content-outline-meta-description",label:(0,i.__)("Meta description","wordpress-seo"),value:C,onChange:D,className:"yst-mb-2"}),(0,h.jsx)(yt,{value:C,date:d,locale:u,isCornerstone:c})]})]}),(0,h.jsx)("hr",{className:"yst-border-slate-200 yst-my-6"}),(0,h.jsx)(mt,{}),(0,h.jsx)("div",{"aria-live":"assertive","aria-atomic":"true",className:"yst-sr-only",children:R}),(0,h.jsx)("ul",{"aria-label":(0,i.__)("Blog post structure","wordpress-seo"),className:"yst-flex yst-flex-col yst-gap-2 yst-list-none yst-p-0 yst-m-0",children:E.map((e,t)=>(0,h.jsx)(ct,{index:t,heading:e.heading,dragOverIndex:N,onDragStart:L,onDragOver:T,onDrop:P,onDragEnd:O,onMoveUp:I,onMoveDown:F,totalItems:E.length,onAnnounce:M},e.id))}),(0,h.jsx)("div",{className:"yst-h-8",onDragOver:U,onDrop:z})]})]})]}),(0,h.jsx)("div",{className:y()(m?"yst-sticky":"yst-hidden","-yst-left-6 -yst-right-6 yst-bottom-0 yst-h-10 yst-pointer-events-none yst-bg-gradient-to-t yst-from-white yst-to-transparent yst-transition-opacity"),"aria-hidden":"true"})]}),(0,h.jsxs)(o.Modal.Container.Footer,{className:"yst-flex yst-items-center yst-justify-between yst-p-6 yst-border-t yst-border-slate-200",children:[(0,h.jsxs)(o.Button,{variant:"secondary",onClick:W,className:"yst-flex yst-items-center yst-gap-1.5",disabled:m,children:[(0,h.jsx)(ot,{className:"yst-w-4 yst-h-4"}),(0,i.__)("Content suggestions","wordpress-seo")]}),(0,h.jsx)(o.Button,{variant:"ai-primary",onClick:G,className:"[&>.yst-button--sparkles-icon]:yst-hidden yst-ps-3",disabled:m,children:(0,i.__)("Add outline to post","wordpress-seo")})]})]})}),xt="yst-mt-1 yst-mb-3",vt="yst-flex yst-justify-end yst--me-8 yst-gap-3 yst--ms-2",wt=({onClose:e})=>(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("p",{className:xt,children:(0,i.__)("As long as this is a beta feature, you get unlimited sparks.","wordpress-seo")}),(0,h.jsx)("div",{className:vt,children:(0,h.jsx)(o.Button,{type:"button",variant:"primary",size:"small",onClick:e,children:(0,i.__)("Got it!","wordpress-seo")})})]}),bt=({onClose:e,upsellLink:t,isWooProductEntity:s=!1,ctbId:r="f6a84663-465f-4cb5-8ba5-f7a6d72224b2"})=>{const n=(0,o.useSvgAria)();return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("p",{className:xt,children:(0,i.sprintf)(/* translators: %s expands to Yoast SEO Premium or Yoast WooCommerce SEO. */ /* translators: %s expands to Yoast SEO Premium or Yoast WooCommerce SEO. */
(0,i.__)("Keep the momentum going, unlock unlimited sparks with %s!","wordpress-seo"),s?"Yoast WooCommerce SEO":"Yoast SEO Premium")}),(0,h.jsxs)("div",{className:vt,children:[(0,h.jsx)(o.Button,{type:"button",variant:"tertiary",size:"small",onClick:e,children:(0,i.__)("Close","wordpress-seo")}),(0,h.jsxs)(o.Button,{as:"a",size:"small",variant:"upsell",href:t,target:"_blank",rel:"noopener noreferrer","data-action":"load-nfd-ctb","data-ctb-id":r,children:[(0,h.jsx)(d.A,{className:"yst-w-4 yst-h-4 yst--ms-1 yst-me-2 yst-shrink-0",...n}),(0,i.sprintf)(/* translators: %1$s expands to Yoast SEO Premium or Yoast WooCommerce SEO. */ /* translators: %1$s expands to Yoast SEO Premium or Yoast WooCommerce SEO. */
(0,i.__)("Unlock with %1$s","wordpress-seo"),s?"Yoast WooCommerce SEO":"Yoast SEO Premium"),(0,h.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ /* translators: Hidden accessibility text. */
(0,i.__)("(Opens in a new browser tab)","wordpress-seo")})]})]})]})},jt=({className:e=""})=>{const{isUsageCountLimitReached:s,usageCount:n,usageCountLimit:a,premiumUpsellLink:l,wooUpsellLink:c,isWooProductEntity:d,hasValidPremiumSubscription:u,hasValidWooSubscription:p}=(0,t.useSelect)(e=>{const t=e(x),s=e(v);return{isUsageCountLimitReached:t.isUsageCountLimitReached(),usageCount:t.selectUsageCount(),usageCountLimit:t.selectUsageCountLimit(),premiumUpsellLink:s.selectLink("https://yoa.st/ai-toast-out-of-free-sparks"),wooUpsellLink:s.selectLink("https://yoa.st/ai-toast-out-of-free-sparks-woo"),isWooProductEntity:s.getIsWooProductEntity(),hasValidPremiumSubscription:t.selectPremiumSubscription(),hasValidWooSubscription:t.selectWooCommerceSubscription()}},[]),m=(0,r.useMemo)(()=>u&&!d||d&&p&&u,[u,d,p]),[y,,g,,f]=(0,o.useToggleState)(n===a),w=Math.max(0,a-n);(0,r.useEffect)(()=>{g(m&&n===a||!m&&w<=5)},[n,a,m,s]);const b=(0,r.useMemo)(()=>d?c:l,[d,c,l]),j=(0,r.useMemo)(()=>d&&!p,[d,p]);return y&&(0,h.jsx)(o.Notifications.Notification,{id:"ai-sparks-limit",className:e,variant:"info",dismissScreenReaderLabel:(0,i.__)("Close","wordpress-seo"),title:m?(0,i.sprintf)(/* translators: %s is the number of the sparks. */ /* translators: %s is the number of the sparks. */
(0,i._n)("You've used %s spark this month.","You've used %s sparks this month.",n,"wordpress-seo"),n):w<=5&&!s?(0,i.sprintf)(/* translators: %s is the number of the sparks. */ /* translators: %s is the number of the sparks. */
(0,i._n)("%s free spark left!","%s free sparks left!",w,"wordpress-seo"),w):(0,i.__)("You're out of free sparks!","wordpress-seo"),size:m?"default":"large",children:m?(0,h.jsx)(wt,{onClose:f}):(0,h.jsx)(bt,{onClose:f,upsellLink:b,isWooUpsell:j})})};var _t=s(6752),St=s(5979);let Ct,kt=!1;const Et="\\–\\-\\(\\)_\\[\\]’‘“”〝〞〟‟„\"'.?!:;,¿¡«»‹›—×+&۔؟،؛。｡！‼？⁇⁉⁈‥…・ー、〃〄〆〇〈〉《》「」『』【】〒〓〔〕〖〗〘〙〚〛〜〝〞〟〠〶〼〽｛｝｜～｟｠｢｣､［］･￥＄％＠＆＇（）＊／：；＜＞＼\\<>";Et.split(""),new RegExp("^["+Et+"]+"),new RegExp("["+Et+"]+$");new RegExp("["+Et+"#$%&*+/=@^`{|}~ -¿–-⁊ -⁯₠-⃀]","g");const Nt=e=>{const t={...e};return""!==e.value||["title","excerpt","excerpt_only"].includes(e.name)||(t.value="%%"+e.name+"%%"),t.badge=`<badge>${e.label}</badge>`,t},Rt={editType:_,previewType:w,postType:"post",contentType:C},Mt=(0,r.createContext)(Rt),Lt=(Mt.Provider,()=>(0,r.useContext)(Mt));var Tt=s(5986);const Pt=()=>(0,r.useContext)(Tt.LocationContext),Ot=e=>{const t=(0,r.useRef)(null);return(0,r.useCallback)(s=>{(0,n.attempt)(()=>t.current&&t.current.disconnect()),null!==s&&(t.current=new ResizeObserver(t=>{(0,n.forEach)(t,t=>e(t))}),t.current.observe(s))},[e])},It=z.forwardRef(function(e,t){return z.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),z.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-3a1 1 0 00-.867.5 1 1 0 11-1.731-1A3 3 0 0113 8a3.001 3.001 0 01-2 2.83V11a1 1 0 11-2 0v-1a1 1 0 011-1 1 1 0 100-2zm0 8a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"}))}),At=window.yoast.aiFrontend;var $t=s(8213);const Ft="usageCount",Ut="fetchUsageCount",zt=`${Ut}/${$.fJ.success}`,Bt=($.fJ.error,{errorCode:null,errorIdentifier:null,errorMessage:null}),qt=(0,$t.createSlice)({name:Ft,initialState:{status:$.$H.idle,count:0,limit:10,endpoint:"",error:Bt},reducers:{addUsageCount:(e,{payload:t=1})=>{e.count+=t},setUsageCount:(e,{payload:t})=>{e.count=t},setUsageCountEndpoint:(e,{payload:t})=>{e.endpoint=t},setUsageCountLimit:(e,{payload:t})=>{e.limit=t}},extraReducers:e=>{e.addCase(`${Ut}/${$.fJ.request}`,e=>{e.status=$.$H.loading,e.error=Bt}),e.addCase(zt,(e,{payload:t})=>{e.status=$.$H.success,e.count=t.count,e.limit=t.limit,e.error=Bt}),e.addCase(`${Ut}/${$.fJ.error}`,(e,{payload:t})=>{e.status=$.$H.error,e.error={errorCode:502,...t}})}}),Dt=(qt.getInitialState,{selectUsageCountStatus:e=>(0,n.get)(e,[Ft,"status"],qt.getInitialState()),selectUsageCount:e=>(0,n.get)(e,[Ft,"count"],qt.getInitialState().count),selectUsageCountLimit:e=>(0,n.get)(e,[Ft,"limit"],qt.getInitialState().limit),selectUsageCountEndpoint:e=>(0,n.get)(e,[Ft,"endpoint"],qt.getInitialState().endpoint),selectUsageCountError:e=>(0,n.get)(e,[Ft,"error"],qt.getInitialState().error)});Dt.selectUsageCountRemaining=(0,$t.createSelector)([Dt.selectUsageCount,Dt.selectUsageCountLimit],(e,t)=>Math.max(t-e,0)),Dt.isUsageCountLimitReached=(0,$t.createSelector)([Dt.selectUsageCount,Dt.selectUsageCountLimit,Dt.selectUsageCountError],(e,t,s)=>429===s.errorCode||e>=t),qt.actions,qt.reducer;const Ht=({errorCode:e,errorIdentifier:t="",errorMessage:s=""})=>{switch(e){case 400:switch(t){case"SITE_UNREACHABLE":return(0,h.jsx)(Ge,{});case"WP_HTTP_REQUEST_ERROR":return(0,h.jsx)(He,{errorMessage:s});default:return(0,h.jsx)(Ie,{})}case 429:return(0,h.jsx)(Fe,{});default:return(0,h.jsx)(Ie,{})}};Ht.propTypes={errorCode:Oe().number.isRequired,errorIdentifier:Oe().string,errorMessage:Oe().string};const Wt=({currentSubscriptions:e,isSeoAnalysisActive:s=!0})=>{const{isPremium:n,usageCountStatus:o,usageCountError:i,isWooProductEntity:a,isWooSeoActive:l}=(0,t.useSelect)(e=>{const t=e(v);return{isPremium:t.getIsPremium(),usageCountStatus:e(x).selectUsageCountStatus(),usageCountError:e(x).selectUsageCountError(),isWooProductEntity:t.getIsWooProductEntity(),isWooSeoActive:t.getIsWooSeoActive()}},[]),c=(0,r.useMemo)(()=>!e.wooCommerceSubscription&&a,[e.wooCommerceSubscription]),d=(0,r.useMemo)(()=>{const t=[];return!n&&!a||e.premiumSubscription||t.push("Yoast SEO Premium"),c&&l&&t.push("Yoast WooCommerce SEO"),t},[n,e.premiumSubscription,c,l,a]);return d.length>0?(0,h.jsx)(Be,{invalidSubscriptions:d}):s?o===R.error?(0,h.jsx)(Ht,{...i}):void 0:(0,h.jsx)($e,{})};Wt.propTypes={currentSubscriptions:Oe().object.isRequired,isSeoAnalysisActive:Oe().bool};const Gt=({onStartGenerating:e})=>(0,h.jsx)(p.ve,{storeName:x,linkStoreName:v,onConsentGranted:e});Gt.propTypes={onStartGenerating:Oe().func.isRequired};const Vt=z.forwardRef(function(e,t){return z.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),z.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"}))});var Yt=s(1480);const Kt=/(?<start><\/badge>|^(?!<badge>))(?<wrap>[\s\S]+?)(?<end><badge>|$)/g,Zt=({total:e,current:t,onNavigate:s,disabled:r=!1,...n})=>(0,h.jsxs)("div",{className:"yst-flex yst-justify-between yst-gap-x-2 yst-items-start",children:[(0,h.jsx)("p",{className:"yst-text-slate-500 yst-text-xxs yst-mt-1",children:(0,i.__)("Text generated by AI may be offensive or inaccurate.","wordpress-seo")}),e>1&&(0,h.jsx)(o.Pagination,{className:"yst-shrink-0",current:t,total:e,onNavigate:s,disabled:r,variant:"text"
/* translators: Hidden accessibility text. */,screenReaderTextPrevious:(0,i.__)("Previous","wordpress-seo")
/* translators: Hidden accessibility text. */,screenReaderTextNext:(0,i.__)("Next","wordpress-seo"),...n})]}),Jt=({height:e})=>{const[s,a]=(0,r.useState)(""),{onClose:l}=(0,o.useModalContext)(),{editType:c,previewType:d,contentType:p}=Lt(),m=(()=>{const{editType:e,previewType:t}=Lt();let s="SEO";switch(t){case b:s="social";break;case j:s="X"}switch(e){case _:return(0,i.sprintf)(/* translators: %s is the type of title. */ /* translators: %s is the type of title. */
(0,i.__)("Generated %s titles","wordpress-seo"),s);case S:return t===w&&(s="meta"),(0,i.sprintf)(/* translators: %s is the type of description. */ /* translators: %s is the type of description. */
(0,i.__)("Generated %s descriptions","wordpress-seo"),s)}})(),y=(()=>{const{editType:e,previewType:t}=Lt();let s="SEO";switch(t){case b:s="social";break;case j:s="X"}switch(e){case _:return(0,i.sprintf)(/* translators: %s is the type of title. */ /* translators: %s is the type of title. */
(0,i.__)("Apply %s title","wordpress-seo"),s);case S:return t===w&&(s="meta"),(0,i.sprintf)(/* translators: %s is the type of description. */ /* translators: %s is the type of description. */
(0,i.__)("Apply %s description","wordpress-seo"),s)}})(),g=Pt(),{suggestions:f,fetchSuggestions:T,setSelectedSuggestion:P}=_s(),O=vs(),{addAppliedSuggestion:A,addUsageCount:$}=(0,t.useDispatch)(x),{isUsageCountLimitReached:F,isWooProductEntity:U,hasValidPremiumSubscription:z,hasValidWooSubscription:B}=(0,t.useSelect)(e=>{const t=e(x),s=e(v);return{isUsageCountLimitReached:t.isUsageCountLimitReached(),isPremium:s.getIsPremium(),isWooProductEntity:s.getIsWooProductEntity(),isWooSeoActive:s.getIsWooSeoActive(),hasValidPremiumSubscription:t.selectPremiumSubscription(),hasValidWooSubscription:t.selectWooCommerceSubscription()}},[]),q=(0,r.useMemo)(()=>f.status===R.loading||!(B||!F||!U)||!(z||!F),[z,F,f.status,U,B]),D=(0,o.usePrevious)(e),H=f.status===R.success?e:D,{bottom:W}=I(H),[G,V]=(0,r.useState)(!1),Y=(0,r.useCallback)(e=>{V(e.target.offsetHeight!==e.target.scrollHeight)},[V]),K=Ot(Y),Z=Cs(),J=(()=>{const e=(()=>{const{previewType:e}=Lt();return(0,r.useMemo)(()=>{switch(e){case w:return()=>(0,t.select)(v).getSnippetEditorData().description;case b:return(0,t.select)(v).getFacebookDescriptionOrFallback;case j:return(0,t.select)(v).getTwitterDescriptionOrFallback;default:return(0,n.constant)("")}},[e])})();return(0,r.useMemo)(e,[e])})(),Q=(()=>{const e=(0,t.useSelect)(e=>e(v).getReplaceVars(),[]),s=(0,r.useMemo)(()=>e.map(Nt),[e]);return(0,r.useCallback)((e,{key:t="value",overrides:r={},applyPluggable:o=!0,editType:i=_,contentType:a=C}={})=>{for(const o of s)e=e.replace(new RegExp("%%"+(0,n.escapeRegExp)(o.name)+"%%","g"),(0,n.get)(r,o.name,o[t]));return a===k&&(e=e.replace(" Archives","")),o?((e,t=_)=>{const s=(0,St.applyReplaceUsingPlugin)({title:"",description:"",[t]:_t.languageProcessing.stripSpaces(e)});return(0,n.get)(s,t,e)})(e,i):e},[s])})(),X=(0,r.useMemo)(()=>c===_?{[E[p]]:f.selected}:{},[c,p,f.selected]),ee=(0,r.useMemo)(()=>Q(Z,{overrides:X,contentType:p}),[Q,Z,c,p,f.selected]),te=(0,r.useMemo)(()=>Q(Z,{overrides:{...X,sep:"",sitename:""},contentType:p}),[Q,Z,c,p,f.selected]),se=(0,r.useMemo)(()=>c===S?f.selected:Q(J,{editType:S}),[Q,J,c,f.selected]),re=(0,r.useCallback)(e=>Q(Z,{overrides:{[E[p]]:e},key:"badge",applyPluggable:!1,contentType:p}),[Q,Z,p]),{currentPage:ne,setCurrentPage:oe,isOnLastPage:ie,totalPages:ae,getItemsOnCurrentPage:le}=(({totalItems:e=0,perPage:t=5})=>{const[s,o]=(0,r.useState)(1),i=(0,r.useMemo)(()=>Math.ceil(e/t),[e,t]),a=(0,r.useMemo)(()=>s*t,[s,t]),l=(0,r.useMemo)(()=>a-t,[a,t]),c=(0,r.useMemo)(()=>1===s,[s]),d=(0,r.useMemo)(()=>s===i,[s,i]),u=(0,r.useCallback)(()=>{s>1&&o(s-1)},[s,o]),p=(0,r.useCallback)(()=>{s<i&&o(s+1)},[s,o,i]),m=(0,r.useCallback)(e=>(0,n.slice)(e,l,a),[l,a]);return{currentPage:s,setCurrentPage:o,totalPages:i,isOnFirstPage:c,isOnLastPage:d,previousPage:u,nextPage:p,firstOnPage:l,lastOnPage:a,getItemsOnCurrentPage:m}})({totalItems:f.status===R.loading||f.status===R.error?f.entities.length+5:f.entities.length,perPage:5}),ce=(0,r.useMemo)(()=>(0,n.map)(le(f.entities),e=>{let t=e;return c===_&&(t=re(e),t=t.replace(Kt,(e,t,s,r,n,o,{start:i,wrap:a,end:l})=>{const c=a.trim();return 0===c.length?`${i}${a}${l}`:`${i}<span>${c}</span>${l}`}),t=(0,u.x)(t,{badge:(0,h.jsx)(o.Badge,{className:"yst-me-2 last:yst-me-0",variant:"plain",children:" "}),span:(0,h.jsx)("span",{className:"yst-flex yst-items-center yst-me-2 last:yst-me-0"})})),{value:e,label:t}}),[f.entities,le,c,re]),de=(0,r.useMemo)(()=>f.status!==R.error||f.status===R.error&&!ie,[f.status,ie]),ue=(0,r.useMemo)(()=>f.status===R.loading&&ie,[f.status,ie]),pe=(0,r.useMemo)(()=>f.status===R.error&&ie,[f.status,ie]),me=(0,r.useCallback)(()=>{q||(oe(f.status===R.error?ae:ae+1),T().then(e=>{e===M&&$()}))},[T,f.status,ae,oe,P,F]),ye=(0,r.useCallback)(()=>a(""),[a]),he=ws(),ge=(0,Yt.Z)(!0),fe=(0,r.useCallback)(()=>{const e=c===_?Z.replace(new RegExp(N[p]+"( Archives)?"),f.selected):f.selected;he(e),A({editType:c,previewType:d,suggestion:f.selected}),l(),"pre-publish"===g&&ge()},[he,c,d,f.selected,Z,l,A,ge,g]);return((e,t=[])=>{const s=(0,r.useRef)(!1);(0,r.useEffect)(()=>{s.current||(s.current=!0,e().finally(()=>{s.current=!1}))},[e,t])})(()=>""===s?T().then(e=>{a(e),e===M&&$()}):Promise.resolve(),[s,$,T]),s===L||f.status===R.error&&402===f.error.code?(0,h.jsx)("div",{className:"yst-flex yst-flex-col yst-space-y-6 yst-mt-6",children:(0,h.jsx)(ls,{errorCode:f.error.code,errorIdentifier:f.error.errorIdentifier,invalidSubscriptions:f.error.missingLicenses,showActions:!0,onRetry:ye,errorMessage:f.error.message})}):(0,h.jsxs)(r.Fragment,{children:[(0,h.jsxs)(o.Modal.Container.Content,{ref:K,className:"yst-flex yst-flex-col yst-py-6 yst-space-y-2",children:[(0,h.jsx)(O,{title:ee,description:se,status:f.status,titleForLength:te,showPreviewSkeleton:""===s,showLengthProgress:!ue}),de&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("div",{className:"yst-flex yst-space-y-4",children:[(0,h.jsx)(o.Label,{as:"span",className:"yst-flex-grow yst-cursor-default yst-mt-auto",children:m}),(0,h.jsx)(o.Button,{variant:"ai-secondary",size:"small",onClick:f.status===R.loading?n.noop:me,isLoading:f.status===R.loading,disabled:q,children:(0,i.__)("Generate 5 more","wordpress-seo")})]}),ue?(0,h.jsx)(ms,{idSuffix:g,suggestionClassNames:c===_?[["yst-h-3 yst-w-9/12"],["yst-h-3 yst-w-7/12"],["yst-h-3 yst-w-10/12"],["yst-h-3 yst-w-11/12"],["yst-h-3 yst-w-8/12"]]:void 0}):(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(us,{idSuffix:g,suggestions:ce,selected:f.selected,onChange:P}),(0,h.jsx)(Zt,{current:ne,total:ae,onNavigate:oe,disabled:f.status===R.loading||pe})]})]}),f.status===R.error&&ie&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:"yst-mt-8"}),(0,h.jsx)(ls,{errorCode:f.error.code,errorIdentifier:f.error.errorIdentifier,invalidSubscriptions:f.error.missingLicenses,errorMessage:f.error.message}),(0,h.jsx)(Zt,{current:ne,total:ae,onNavigate:oe,disabled:f.status===R.loading})]})]}),(0,h.jsxs)(o.Modal.Container.Footer,{children:[G&&(0,h.jsx)("div",{className:"yst-absolute yst-inset-x-0 yst--mt-10 yst-me-[calc(2.5rem-1px)] yst-h-10 yst-pointer-events-none yst-bg-gradient-to-t yst-from-slate-50"}),(0,h.jsx)("hr",{className:"yst-mb-6 yst--mx-6"}),(0,h.jsxs)("div",{className:"sm:yst-flex sm:yst-justify-end sm:yst-space-x-2 sm:rtl:yst-space-x-reverse",children:[(0,h.jsx)("div",{className:"yst-hidden sm:yst-inline",children:(0,h.jsx)(o.Button,{variant:"secondary",onClick:l,children:(0,i.__)("Close","wordpress-seo")})}),(0,h.jsx)("div",{className:"yst-block sm:yst-inline",children:(0,h.jsxs)(o.Button,{className:"yst-w-full sm:yst-w-auto",variant:"primary",onClick:fe,disabled:""===f.selected||f.status===R.loading||pe,children:[(0,h.jsx)(Vt,{className:"yst--ms-1 yst-me-1 yst-h-4 yst-w-4 yst-text-white"}),y]})}),(0,h.jsx)("div",{className:"yst-mt-3 sm:yst-hidden",children:(0,h.jsx)(o.Button,{variant:"secondary",onClick:l,className:"yst-w-full sm:yst-w-auto",children:(0,i.__)("Close","wordpress-seo")})})]})]}),(0,h.jsxs)(o.Notifications,{className:"yst-mx-[calc(50%-50vw)] yst-transition-all",style:{bottom:W},position:"bottom-left",children:[f.status!==R.loading&&(0,h.jsx)(jt,{className:"yst-mx-[calc(50%-50vw)] yst-transition-all"}),(f.status===R.success||f.status===R.loading)&&(0,h.jsx)(hs,{})]})]})};Jt.propTypes={height:Oe().number.isRequired};Oe().func.isRequired;const Qt=({title:e,description:s,status:n,titleForLength:a,showPreviewSkeleton:l,showLengthProgress:c})=>{const d=(0,t.useSelect)(e=>e(v).getSnippetEditorMode(),[]),[u,p]=(0,r.useState)(d),{editType:m}=Lt(),y=Pt(),g=Ss({editType:m,title:a,description:s});return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(it.ModeSwitcher,{onChange:p,active:u,id:`yst-ai-google-preview-mode-switcher-${y}`,disabled:n===R.loading}),l?(0,h.jsx)(ts,{}):(0,h.jsx)(es,{mode:u,title:e,description:s}),(0,h.jsxs)("div",{className:"yst-pt-4",children:[(0,h.jsx)(o.Label,{as:"span",className:"yst-flex-grow yst-cursor-default",children:m===_?(0,i.__)("SEO title width","wordpress-seo"):(0,i.__)("Meta description length","wordpress-seo")}),(0,h.jsx)(ss,{className:"yst-mt-2",progress:c?g.actual:0,min:0,max:g.max,score:g.score})]})]})};Qt.propTypes={title:Oe().string.isRequired,description:Oe().string.isRequired,status:Oe().oneOf(Object.keys(R)).isRequired,titleForLength:Oe().string.isRequired,showPreviewSkeleton:Oe().bool.isRequired,showLengthProgress:Oe().bool.isRequired};const Xt=/mobi/i,es=({mode:e,title:s,description:o})=>{var i,a;const l=(0,t.useSelect)(e=>e(v).getBaseUrlFromSettings(),[]),c=(0,t.useSelect)(e=>e(v).getSnippetEditorData().slug||"",[]),d=(0,t.useSelect)(e=>e(v).getDateFromSettings(),[]),u=(0,t.useSelect)(e=>e(v).getFocusKeyphrase(),[]),p=(0,t.useSelect)(e=>e(v).getSnippetEditorPreviewImageUrl(),[]),m=(0,t.useSelect)(e=>e(v).getSiteIconUrlFromSettings(),[]),y=(0,t.useSelect)(e=>e(v).getShoppingData(),[]),g=(0,t.useSelect)(e=>e(v).getSnippetEditorWordsToHighlight(),[]),f=(0,t.useSelect)(e=>e(v).getSiteName(),[]),x=(0,t.useSelect)(e=>e(v).getContentLocale(),[]),w=(0,r.useMemo)(()=>l+c,[l,c]),b=(0,r.useMemo)(()=>{var e,t;return Xt.test(null===(e=window)||void 0===e||null===(t=e.navigator)||void 0===t?void 0:t.userAgent)},[null===(i=window)||void 0===i||null===(a=i.navigator)||void 0===a?void 0:a.userAgent]);return(0,h.jsx)("div",{className:`yst-ai-generator-preview-section ${e}${b?" yst-user-agent__mobile":""}`,children:(0,h.jsx)(it.SnippetPreview,{title:s,description:o,mode:e,url:w,keyword:u,date:d,faviconSrc:m,mobileImageSrc:p,wordsToHighlight:g,siteName:f,locale:x,shoppingData:y,onMouseUp:n.noop})})};es.propTypes={mode:Oe().oneOf(Object.keys({mobile:"mobile",desktop:"desktop"})).isRequired,title:Oe().string.isRequired,description:Oe().string.isRequired};const ts=()=>(0,h.jsxs)("div",{className:"yst-max-w-[400px] yst-py-4 yst-px-3 yst-border yst-rounded-lg yst-w-full yst-mx-auto",children:[(0,h.jsxs)("div",{className:"yst-flex yst-gap-x-3",children:[(0,h.jsx)(o.SkeletonLoader,{className:"yst-flex-shrink-0 yst-h-7 yst-w-7 yst-rounded-full"}),(0,h.jsxs)("div",{className:"yst-flex yst-flex-col yst-w-full yst-gap-y-1",children:[(0,h.jsx)(o.SkeletonLoader,{className:"yst-h-3 yst-w-1/3"}),(0,h.jsx)(o.SkeletonLoader,{className:"yst-h-2.5 yst-w-10/12"})]})]}),(0,h.jsx)(o.SkeletonLoader,{className:"yst-h-4 yst-w-full yst-mt-6 yst-mb-4"}),(0,h.jsx)(o.SkeletonLoader,{className:"yst-h-3 yst-w-full"}),(0,h.jsx)(o.SkeletonLoader,{className:"yst-h-3 yst-w-10/12 yst-mt-2.5"})]}),ss=({className:e="",progress:t,max:s,score:n})=>{const i=(0,r.useMemo)(()=>(e=>e>=7?"yst-score-good":e>=5?"yst-score-ok":"yst-score-bad")(n),[n]);return(0,h.jsx)(o.ProgressBar,{className:y()("yst-length-progress-bar",i,e),progress:t,min:0,max:s})};ss.propTypes={className:Oe().string,progress:Oe().number.isRequired,max:Oe().number.isRequired,score:Oe().number.isRequired};const rs=({title:e,description:t,showPreviewSkeleton:s})=>(0,h.jsxs)("div",{children:[(0,h.jsx)("div",{className:"yst-flex yst-mb-6",children:(0,h.jsx)(o.Label,{as:"span",className:"yst-flex-grow yst-cursor-default",children:(0,i.__)("Social preview","wordpress-seo")})}),s?(0,h.jsx)(is,{}):(0,h.jsx)(os,{title:e,description:t})]});rs.propTypes={title:Oe().string.isRequired,description:Oe().string.isRequired,showPreviewSkeleton:Oe().bool.isRequired};var ns=s(1426);const os=({title:e,description:s})=>{const r=(0,t.useSelect)(e=>e(v).getSiteUrl(),[]),o=(0,t.useSelect)(e=>e(v).getFacebookImageUrl(),[]),i=(0,t.useSelect)(e=>e(v).getEditorDataImageFallback(),[]),a=(0,t.useSelect)(e=>e(v).getFacebookAltText(),[]);return(0,h.jsx)("div",{className:"yst-ai-generator-preview-section",children:(0,h.jsx)(ns.Xi,{title:e,description:s,siteUrl:r,imageUrl:o,imageFallbackUrl:i,alt:a,onSelect:n.noop,onImageClick:n.noop,onMouseHover:n.noop})})};os.propTypes={title:Oe().string.isRequired,description:Oe().string.isRequired};const is=()=>(0,h.jsxs)("div",{className:"yst-flex yst-flex-col yst-w-[527px] yst-border yst-mx-auto",children:[(0,h.jsx)(o.SkeletonLoader,{className:"yst-h-[273px] yst-w-full yst-rounded-none yst-border yst-border-dashed"}),(0,h.jsxs)("div",{className:"yst-w-full yst-p-4 yst-space-y-1",children:[(0,h.jsx)(o.SkeletonLoader,{className:"yst-h-3 yst-w-1/3"}),(0,h.jsx)(o.SkeletonLoader,{className:"yst-h-5 yst-w-10/12"}),(0,h.jsx)(o.SkeletonLoader,{className:"yst-h-3 yst-w-full"})]})]}),as=({children:e,onRetry:t})=>{const{onClose:s}=(0,o.useModalContext)();return(0,h.jsxs)(r.Fragment,{children:[e,(0,h.jsxs)("div",{className:"yst-mt-6 yst-mb-1 yst-flex yst-space-x-3 rtl:yst-space-x-reverse yst-place-content-end",children:[(0,h.jsx)(o.Button,{variant:"secondary",onClick:s,children:(0,i.__)("Close","wordpress-seo")}),(0,h.jsx)(o.Button,{variant:"primary",onClick:t,children:(0,i.__)("Try again","wordpress-seo")})]})]})};as.propTypes={children:Oe().node.isRequired,onRetry:Oe().func.isRequired};const ls=({errorCode:e,errorIdentifier:t,invalidSubscriptions:s=[],showActions:r=!1,onRetry:o=n.noop,errorMessage:i=""})=>{switch(e){case 400:switch(t){case"AI_CONTENT_FILTER":return(0,h.jsx)(De,{});case"NOT_ENOUGH_CONTENT":return(0,h.jsx)(Ae,{});case"SITE_UNREACHABLE":return(0,h.jsx)(Ge,{});case"WP_HTTP_REQUEST_ERROR":return r?(0,h.jsx)(as,{onRetry:o,children:(0,h.jsx)(He,{errorMessage:i})}):(0,h.jsx)(He,{errorMessage:i});default:return r?(0,h.jsx)(as,{onRetry:o,children:(0,h.jsx)(Ie,{})}):(0,h.jsx)(Ie,{})}case 402:return(0,h.jsx)(Be,{invalidSubscriptions:s});case 408:return r?(0,h.jsx)(as,{onRetry:o,children:(0,h.jsx)(qe,{})}):(0,h.jsx)(qe,{});case 429:return"USAGE_LIMIT_REACHED"===t?(0,h.jsx)(Be,{invalidSubscriptions:s}):(0,h.jsx)(Fe,{});case 410:return(0,h.jsx)(We,{});default:return r?(0,h.jsx)(as,{onRetry:o,children:(0,h.jsx)(Ie,{})}):(0,h.jsx)(Ie,{})}};ls.propTypes={errorCode:Oe().number.isRequired,errorIdentifier:Oe().string.isRequired,invalidSubscriptions:Oe().array,showActions:Oe().bool,onRetry:Oe().func,errorMessage:Oe().string};const cs=Oe().shape({value:Oe().string.isRequired,label:Oe().node.isRequired}),ds=({id:e,name:t,suggestion:s,isChecked:n,onChange:o})=>{const i=(0,r.useCallback)(()=>o(s.value),[s,o]);return(0,h.jsxs)("label",{htmlFor:e,className:y()("yst-flex yst-p-4 yst-items-center yst-border first:yst-rounded-t-md last:yst-rounded-b-md",n&&"yst-z-10 yst-border-primary-500"),children:[(0,h.jsx)("input",{type:"radio",id:e,name:t,className:"yst-radio__input",value:s.value,checked:n,onChange:i}),(0,h.jsx)("div",{className:y()("yst-label yst-radio__label yst-flex yst-flex-wrap yst-items-center",!n&&"yst-text-slate-600"),children:s.label})]})};ds.propTypes={id:Oe().string.isRequired,name:Oe().string.isRequired,suggestion:cs.isRequired,isChecked:Oe().bool.isRequired,onChange:Oe().func.isRequired};const us=({idSuffix:e,suggestions:t,selected:s,onChange:r})=>(0,h.jsx)("div",{children:(0,h.jsx)(o.RadioGroup,{className:"yst-suggestions-radio-group yst-flex yst-flex-col",id:`yst-ai-suggestions-radio-group__${e}`,children:t.map((t,n)=>(0,h.jsx)(ds,{id:`yst-ai-suggestions-radio-${e}__${n}`,name:`ai-suggestion__${e}`,isChecked:t.value===s,onChange:r,suggestion:t},`yst-ai-suggestions-radio-${e}__${n}`))})});us.propTypes={idSuffix:Oe().string.isRequired,suggestions:Oe().arrayOf(cs).isRequired,selected:Oe().string.isRequired,onChange:Oe().func.isRequired};const ps=[["yst-h-3 yst-w-full","yst-mt-2.5 yst-h-3 yst-w-9/12"],["yst-h-3 yst-w-full","yst-mt-2.5 yst-h-3 yst-w-7/12"],["yst-h-3 yst-w-full","yst-mt-2.5 yst-h-3 yst-w-10/12"],["yst-h-3 yst-w-full","yst-mt-2.5 yst-h-3 yst-w-11/12"],["yst-h-3 yst-w-full","yst-mt-2.5 yst-h-3 yst-w-8/12"]],ms=({suggestionClassNames:e=ps})=>(0,h.jsx)("div",{className:"yst-flex yst-flex-col yst--space-y-[1px]",children:e.map((e,t)=>(0,h.jsxs)("div",{className:"yst-flex yst-p-4 yst-gap-x-3 yst-items-center yst-border first:yst-rounded-t-md last:yst-rounded-b-md",children:[(0,h.jsx)("input",{type:"radio",disabled:!0,className:"yst-my-0.5"}),(0,h.jsx)("div",{className:"yst-flex yst-flex-col yst-w-full",children:e.map((e,s)=>(0,h.jsx)(o.SkeletonLoader,{className:e},`yst-ai-suggestion-radio-skeleton-${t}__${s}`))})]},`yst-ai-suggestion-radio-skeleton__${t}`))});ms.propTypes={suggestionClassNames:Oe().arrayOf(Oe().arrayOf(Oe().string))};const ys="ai_generator_tip_notification",hs=()=>{const e=(0,t.useSelect)(e=>e(v).isAlertDismissed(ys),[]),s=(0,t.useSelect)(e=>e(v).getEditorDataContent(),[]),n=(0,t.useSelect)(e=>e(v).getIsWooProductEntity(),[]),[a,,,l]=(0,o.useToggleState)(!1),{editType:c,contentType:d}=Lt(),{dismissAlert:p}=(0,t.useDispatch)(v),m=(0,r.useCallback)(()=>{p(ys)},[p]),y=(0,r.useMemo)(()=>c===S?(0,i.__)("%1$sTip%2$s: Improve the accuracy of your generated AI descriptions by writing more content in your page.","wordpress-seo"):(0,i.__)("%1$sTip%2$s: Improve the accuracy of your generated AI titles by writing more content in your page.","wordpress-seo")
/* translators: %1$s and %2$s expand to opening and closing of a span in order to emphasise the word. */,[c]),g=(0,r.useMemo)(()=>((e,t)=>e||t===k?150:300)(n,d),[d,n]);return e||a||s.length>g?null:(0,h.jsxs)(o.Notifications.Notification,{id:"ai-generator-content-tip",variant:"info",dismissScreenReaderLabel:(0,i.__)("Dismiss","wordpress-seo"),children:[(0,u.x)((0,i.sprintf)(y,"<span>","</span>"),{span:(0,h.jsx)("span",{className:"yst-font-medium yst-text-slate-800"})}),(0,h.jsxs)("div",{className:"yst-flex yst-mt-3 yst--ms-3 yst-gap-1",children:[(0,h.jsx)(o.Button,{type:"button",variant:"tertiary",onClick:m,children:(0,i.__)("Don’t show again","wordpress-seo")}),(0,h.jsx)(o.Button,{type:"button",variant:"tertiary",className:"yst-text-slate-800",onClick:l,children:(0,i.__)("Dismiss","wordpress-seo")})]})]})},gs=({title:e,description:t,showPreviewSkeleton:s})=>(0,h.jsxs)("div",{children:[(0,h.jsx)("div",{className:"yst-flex yst-mb-6",children:(0,h.jsx)(o.Label,{as:"span",className:"yst-flex-grow yst-cursor-default",children:(0,i.__)("X preview","wordpress-seo")})}),s?(0,h.jsx)(xs,{}):(0,h.jsx)(fs,{title:e,description:t})]});gs.propTypes={title:Oe().string.isRequired,description:Oe().string.isRequired,showPreviewSkeleton:Oe().bool.isRequired};const fs=({title:e,description:s})=>{const r=(0,t.useSelect)(e=>e(v).getSiteUrl(),[]),o=(0,t.useSelect)(e=>e(v).getTwitterImageUrl(),[]),i=(0,t.useSelect)(e=>e(v).getFacebookImageUrl(),[]),a=(0,t.useSelect)(e=>e(v).getEditorDataImageFallback(),[]),l=(0,t.useSelect)(e=>e(v).getTwitterImageType(),[]),c=(0,t.useSelect)(e=>e(v).getTwitterAltText(),[]);return(0,h.jsx)("div",{className:"yst-ai-generator-preview-section",children:(0,h.jsx)(ns.WG,{title:e,description:s,siteUrl:r,imageUrl:o,imageFallbackUrl:i||a,isLarge:"summary"!==l,alt:c,onSelect:n.noop,onImageClick:n.noop,onMouseHover:n.noop})})};fs.propTypes={title:Oe().string.isRequired,description:Oe().string.isRequired};const xs=()=>(0,h.jsxs)("div",{className:"yst-flex yst-flex-col yst-max-h-[370px] yst-w-[507px] yst-border yst-rounded-t-[14px] yst-overflow-hidden yst-mx-auto",children:[(0,h.jsx)(o.SkeletonLoader,{className:"yst-h-[265px] yst-w-full yst-rounded-none yst-border yst-border-dashed"}),(0,h.jsxs)("div",{className:"yst-w-full yst-p-4 yst-space-y-1",children:[(0,h.jsx)(o.SkeletonLoader,{className:"yst-h-3 yst-w-1/3"}),(0,h.jsx)(o.SkeletonLoader,{className:"yst-h-5 yst-w-10/12"}),(0,h.jsx)(o.SkeletonLoader,{className:"yst-h-3 yst-w-full"})]})]}),vs=()=>{const{previewType:e}=Lt();switch(e){case b:return rs;case j:return gs;default:return Qt}},ws=()=>{const{editType:e}=Lt();switch(e){case _:return(()=>{const{previewType:e}=Lt(),{updateData:s,setFacebookPreviewTitle:o,setTwitterPreviewTitle:i}=(0,t.useDispatch)(v);return(0,r.useMemo)(()=>{switch(e){case w:return e=>s({title:e});case b:return o;case j:return i;default:return n.noop}},[e,s,o,i])})();case S:return(()=>{const{previewType:e}=Lt(),{updateData:s,setFacebookPreviewDescription:o,setTwitterPreviewDescription:i}=(0,t.useDispatch)(v);return(0,r.useMemo)(()=>{switch(e){case w:return e=>s({description:e});case b:return o;case j:return i;default:return n.noop}},[e,s,o,i])})();default:return n.noop}},bs=(0,$t.createSlice)({name:"suggestions",initialState:{status:R.loading,error:{code:200,message:""},entities:[],selected:""},reducers:{setLoading:e=>{e.status=R.loading},setSuccess:(e,{payload:t})=>{e.status=R.success,e.selected=t[0],e.entities.push(...t)},setError:(e,{payload:t})=>{e.status=R.error,e.error=t},setSelected:(e,{payload:t})=>{e.selected=t}}}),js=e=>{switch(e){case b:return"Facebook";case j:return"Twitter";default:return"Google"}},_s=()=>{const[e,s]=(0,r.useReducer)(bs.reducer,bs.getInitialState()),{editType:o,previewType:i,postType:a,contentType:l}=Lt(),c=(0,t.useSelect)(e=>e(x).selectPromptContent(),[]),d=(0,t.useSelect)(e=>e(x).selectGetSuggestionsEndpoint(),[]),{contentLocale:u,focusKeyphrase:p,isWooCommerceActive:m,isGutenberg:y,isElementor:h}=(0,t.useSelect)(e=>({contentLocale:e(v).getContentLocale(),focusKeyphrase:e(v).getFocusKeyphrase(),isWooCommerceActive:e(v).getIsWooCommerceActive(),isGutenberg:e(v).getIsBlockEditor(),isElementor:e(v).getIsElementorEditor()}),[]);let g,f=_t.languageProcessing.helpers.processExactMatchRequest(p).keyphrase;f.length>191&&(f=f.slice(0,191)),g=h?"elementor":y?"gutenberg":"classic";const w=((e,t,s,r)=>{const n=e===S?"meta-description":"seo-title";let o=((e,t)=>{if(e)switch(t){case"product":return"product-";case"product_cat":case"product_tag":return"product-taxonomy-"}return""})(t,s);return o&&t||r!==k||(o="taxonomy-"),`${o}${n}`})(o,m,a,l);return{suggestions:e,fetchSuggestions:(0,r.useCallback)(async(e=!0)=>{s(bs.actions.setLoading());const{status:t,payload:r}=await(async({endpoint:e,data:t})=>{let s;const r=1e3*(0,n.get)(window,"wpseoAiGenerator.requestTimeout",30);try{Ct&&Ct.abort(),Ct=new AbortController,kt=!1,s=setTimeout(()=>{kt=!0,Ct.abort()},r);const n=await ze()({path:e,method:"POST",data:t,parse:!1,signal:Ct.signal}),o=await n.json();return{status:M,payload:o}}catch(e){if(e instanceof DOMException&&"AbortError"===e.name)return kt?{status:L,payload:{message:"timeout",code:408}}:{status:T};const{message:t,missingLicenses:s,errorIdentifier:r}=await(async e=>{try{const t=e.body.getReader(),{value:s}=await t.read(),r=new TextDecoder("utf-8").decode(s);return console.error(r),JSON.parse(r)}catch(e){return{message:"Unknown"}}})(e);return{status:L,payload:{message:t,code:e.status||500,missingLicenses:s,errorIdentifier:r}}}finally{clearTimeout(s)}})({endpoint:d,canAbort:e,data:{type:w,prompt_content:c,focus_keyphrase:f,platform:js(i),language:O(u).replace("_","-"),editor:g}});switch(t){case T:break;case L:s(bs.actions.setError(r));break;case M:s(bs.actions.setSuccess(r))}return t},[s]),setSelectedSuggestion:(0,r.useCallback)(e=>s(bs.actions.setSelected(e)),[s])}},Ss=({editType:e,title:s,description:n})=>{const o=(0,t.useSelect)(e=>e(v).getDateFromSettings(),[]),i=(0,t.useSelect)(e=>e(v).getContentLocale(),[]),a=(0,t.useSelect)(e=>e(v).isCornerstoneContent(),[]),l=(0,t.useSelect)(e=>e(v).getIsTerm(),[]);return(0,r.useMemo)(()=>e===S?(0,it.getDescriptionProgress)(n,o,a,l,i):(0,it.getTitleProgress)(s),[e,s,n,o,a,l,i])},Cs=()=>{const{editType:e,previewType:s,contentType:o}=Lt(),i=(()=>{const{previewType:e}=Lt();return(0,r.useMemo)(()=>{switch(e){case w:return()=>(0,t.select)(v).getSnippetEditorData().title;case b:return(0,t.select)(v).getFacebookTitleOrFallback;case j:return(0,t.select)(v).getTwitterTitleOrFallback;default:return(0,n.constant)("")}},[e])})(),a=(0,t.useSelect)(t=>t(x).selectAppliedSuggestionFor({editType:e,previewType:s}),[e,s]);return(0,r.useMemo)(()=>{let t=i();return e===S?t:(a&&(t=t.replace(a,N[o])),((e,t)=>e.includes(N[t])?e:N[t])(t,o))},[e,i])};var ks=s(4080),Es=s(4631);const Ns=({onConfirm:e,isOpen:t,onClose:s})=>{const r=(0,o.useSvgAria)();return(0,h.jsx)(o.Modal,{isOpen:t,onClose:s,className:"yst-flex yst-items-center yst-justify-center",children:(0,h.jsxs)(o.Modal.Panel,{closeButtonScreenReaderText:(0,i.__)("Close replace content confirmation","wordpress-seo"),children:[(0,h.jsxs)("div",{className:"yst-flex yst-items-start",children:[(0,h.jsx)("div",{className:"yst-flex-shrink-0 yst-flex yst-items-center yst-justify-center yst-h-10 yst-w-10 yst-rounded-full yst-bg-red-100",children:(0,h.jsx)(Es.A,{className:"yst-h-6 yst-w-6 yst-text-red-600",...r})}),(0,h.jsxs)("div",{className:"yst-ms-4 yst-text-start",children:[(0,h.jsx)(o.Modal.Title,{className:"yst-text-lg yst-leading-6 yst-font-medium yst-text-slate-900 yst-mb-3",children:(0,i.__)("Replace existing content with this outline?","wordpress-seo")}),(0,h.jsx)(o.Modal.Description,{className:"yst-text-sm yst-text-slate-500",children:(0,i.__)("This will replace everything in your post with the generated outline and content notes. You can revert this action by clicking the 'undo' button in the Gutenberg editor.","wordpress-seo")})]})]}),(0,h.jsxs)("div",{className:"yst-flex yst-flex-row yst-justify-end yst-gap-3 yst-mt-6",children:[(0,h.jsx)(o.Button,{type:"button",variant:"secondary",onClick:s,children:(0,i.__)("Cancel","wordpress-seo")}),(0,h.jsx)(o.Button,{type:"button",variant:"error",onClick:e,children:(0,i.__)("Replace content","wordpress-seo")})]})]})})},Rs=((0,a.compose)([(0,t.withSelect)(e=>{const{selectFeatureModalStatus:t,selectSuggestionsStatus:s,selectContentOutlineStatus:r}=e(f.bw),n=e("core/editor").getEditedPostContent(),{getIsPremium:o,selectLink:i}=e("yoast-seo/editor"),{selectUsageCount:a,selectUsageCountLimit:c,selectUsageCountStatus:d}=e(x);return{isEmptyPost:0===(0,l.count)(n,"words",{}),isPremium:o(),status:t(),modalHelpLink:i("https://yoa.st/ai-content-planner-help-button-modal"),usageCount:a(),usageCountLimit:c(),contentSuggestionsStatus:s(),contentOutlineStatus:r(),usageCountStatus:d()}}),(0,t.withDispatch)(e=>{const{closeModal:t}=e(f.bw);return{onClose:t}})])(({onClose:e,isEmptyPost:t,isPremium:s,status:n,modalHelpLink:a,usageCount:l,usageCountLimit:c,contentSuggestionsStatus:d,contentOutlineStatus:u,usageCountStatus:p,openReplaceContentModal:m,setHasVisitedReplace:y,editedOutlineRef:g,handleApplyOutline:x,isReplaceModalOpen:v=!1,onCloseReplace:w})=>{const b=A(),j=n===f.Qo.consent,_=(0,o.useSvgAria)(),S=(0,r.useRef)(null),C=n===f.Qo.contentSuggestions,k=d===$.$H.error,E=n===f.Qo.contentOutline,N=u===$.$H.error,[R,M]=(0,r.useState)(0),L=(0,r.useCallback)(e=>M(e.borderBoxSize[0].blockSize),[M]),T=Ot(L),{bottom:P}=I(R),O=(0,r.useCallback)(e=>{b(e)},[b]),F=(0,r.useCallback)(e=>{g.current=e,t?x():(y(!0),m())},[t,x,m,y]);return(0,h.jsx)(o.Modal,{isOpen:!j&&(C||E),onClose:e,children:(0,h.jsxs)(o.Modal.Panel,{ref:T,className:"yst-p-0 yst-max-w-2xl yst-overflow-visible",hasCloseButton:!1,children:[(0,h.jsx)(o.Modal.CloseButton,{ref:S,screenReaderText:C?(0,i.__)("Close content suggestions modal","wordpress-seo"):(0,i.__)("Close content outline modal","wordpress-seo")}),(0,h.jsxs)(o.Modal.Container,{children:[(0,h.jsxs)(o.Modal.Container.Header,{className:"yst-flex yst-items-center yst-gap-2 yst-pe-14 yst-py-6 yst-ps-6 yst-border-b yst-border-slate-200",children:[(0,h.jsx)(ks.h,{className:"yst-fill-primary-500 yst-w-4 yst-mb-[1px]",..._}),(0,h.jsx)(o.Modal.Title,{size:"2",children:C?(0,i.__)("Content suggestions","wordpress-seo"):(0,i.__)("Content outline","wordpress-seo")}),(0,h.jsx)(o.Link,{href:a,variant:"primary",className:"yst-no-underline",target:"_blank",rel:"noopener noreferrer","aria-label":(0,i.__)("Learn more about AI (Opens in a new browser tab)","wordpress-seo"),children:(0,h.jsx)(It,{..._,className:"yst-w-4 yst-h-4 yst-text-slate-500 yst-shrink-0"})}),(0,h.jsx)("span",{className:"yst-flex-grow"}),(0,h.jsx)(o.Badge,{size:"small",children:(0,i.__)("Beta","wordpress-seo")}),(C&&!k||E&&!N)&&(0,h.jsx)(At.UsageCounter,{className:"yst-relative yst-flex yst-items-center",limit:c,requests:l,mentionBetaInTooltip:s,mentionResetInTooltip:s,isSkeleton:d===$.$H.loading||p===$.$H.loading})]}),C&&(0,h.jsx)(nt,{onSuggestionClick:O,closeButtonRef:S}),E&&(0,h.jsx)(ft,{onApplyOutline:F,closeButtonRef:S})]}),(0,h.jsx)(o.Notifications,{className:"yst-mx-[calc(50%-50vw)] yst-transition-all",style:{bottom:P},position:"bottom-left",children:d===$.$H.success&&!N&&(0,h.jsx)(jt,{})}),(0,h.jsx)(Ns,{isOpen:v,onConfirm:x,onClose:w})]})})}),window.wp.blockEditor),Ms=z.forwardRef(function(e,t){return z.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),z.createElement("path",{d:"M10 12a2 2 0 100-4 2 2 0 000 4z"}),z.createElement("path",{fillRule:"evenodd",d:"M.458 10C1.732 5.943 5.522 3 10 3s8.268 2.943 9.542 7c-1.274 4.057-5.064 7-9.542 7S1.732 14.057.458 10zM14 10a4 4 0 11-8 0 4 4 0 018 0z",clipRule:"evenodd"}))}),Ls=z.forwardRef(function(e,t){return z.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),z.createElement("path",{fillRule:"evenodd",d:"M4 4a2 2 0 012-2h4.586A2 2 0 0112 2.586L15.414 6A2 2 0 0116 7.414V16a2 2 0 01-2 2H6a2 2 0 01-2-2V4z",clipRule:"evenodd"}))}),Ts=({contentNotes:e})=>{const t=(0,o.useSvgAria)();return(0,h.jsxs)("div",{className:"yst-bg-slate-50 yst-font-sans yst-rounded-sm yst-shadow-sm yst-border yst-border-solid yst-border-slate-200 yst-p-4",children:[(0,h.jsxs)("div",{className:"yst-text-slate-500 yst-text-xs yst-flex yst-items-center yst-mb-4",children:[(0,h.jsx)(Ms,{className:"yst-inline-block yst-w-3 yst-h-3 yst-me-1 yst-shrink-0",...t}),(0,h.jsx)("span",{className:"yst-text-xs yst-leading-3",children:(0,i.__)("Only visible to you","wordpress-seo")})]}),(0,h.jsxs)("div",{children:[(0,h.jsxs)("div",{className:"yst-flex yst-justify-start yst-items-center yst-gap-2 yst-mb-1 yst-ps-4",children:[(0,h.jsx)("div",{className:"yst-flex yst-items-center yst-justify-center yst-w-4 yst-h-4 yst-bg-ai-500 yst-rounded-[1.5px]",children:(0,h.jsx)(Ls,{className:"yst-w-3 yst-h-3 yst-shrink-0 yst-text-white yst-flex yst-items-center yst-justify-center",...t})}),(0,h.jsx)("h3",{className:"yst-text-slate-800 yst-text-sm yst-leading-5 yst-font-medium yst-m-0",children:(0,i.__)("Content notes","wordpress-seo")})]}),e.length>0&&(0,h.jsx)("ul",{className:"yst-text-sm yst-text-slate-600 yst-font-normal yst-my-0 yst-ps-5 yst-leading-5 yst-list-none",children:e.map((e,t)=>(0,h.jsxs)("li",{className:"yst-flex yst-justify-start yst-gap-2",children:[(0,h.jsx)("span",{"aria-hidden":"true",children:"•"}),e]},`${t}-${e}`))})]})]})};(0,e.getBlockType)("yoast-seo/content-suggestion")||(0,e.registerBlockType)("yoast-seo/content-suggestion",{apiVersion:3,title:(0,i.__)("Content Suggestion","wordpress-seo"),category:"text",supports:{inserter:!1},transforms:{to:[{type:"block",blocks:["core/list"],transform:({suggestions:t})=>(0,e.createBlock)("core/list",{},t.map(t=>(0,e.createBlock)("core/list-item",{content:t})))}]},attributes:{title:{type:"string",default:""},suggestions:{type:"array",items:{type:"string"},default:[]}},edit:({attributes:e})=>{const t=(0,r.useRef)(null),s=(0,Rs.useBlockProps)({ref:t});return(0,r.useEffect)(()=>{var e,s;const r=null!==(e=null===(s=t.current)||void 0===s?void 0:s.ownerDocument)&&void 0!==e?e:document;if(r===window.document||r.getElementById("yoast-seo-tailwind-css"))return;const n=window.document.getElementById("yoast-seo-tailwind-css");if(!n)return;const o=r.createElement("link");o.id="yoast-seo-tailwind-css",o.rel="stylesheet",o.href=n.href,r.head.appendChild(o)},[]),(0,h.jsx)("div",{...s,children:(0,h.jsx)(Ts,{contentNotes:e.suggestions})})},save:()=>null}),s(3832);const Ps=e=>{var t,s;let r=(0,n.isObject)(e)?e:{};(0,n.isString)(e)&&(r={message:e});const o={...r,errorMessage:(null===(t=r)||void 0===t?void 0:t.errorMessage)||(null===(s=r)||void 0===s?void 0:s.message)};return(0,n.mapValues)({errorCode:502,errorIdentifier:"",errorMessage:"",missingLicenses:[]},(e,t)=>o[t]||e)},Os="fetchContentPlannerSuggestions",Is=(0,$t.createSlice)({name:"contentSuggestions",initialState:{endpoint:"",status:$.$H.idle,suggestions:[],error:f.pb},reducers:{setContentSuggestionsStatus:(e,{payload:t})=>{e.status=t},setSuggestion:(e,{payload:t})=>{const s=e.suggestions.findIndex(e=>e.id===t.id);-1!==s&&(e.suggestions[s]=t)},setSuggestionsError:(e,{payload:t})=>{e.status=$.$H.error,e.suggestions=[],e.error=Ps(t)}},extraReducers:e=>{e.addCase(`${Os}/${$.fJ.request}`,e=>{e.status=$.$H.loading,e.suggestions=[],e.error=f.pb}),e.addCase(`${Os}/${$.fJ.success}`,(e,{payload:t})=>{e.status=$.$H.success,e.suggestions=t,e.error=f.pb}),e.addCase(`${Os}/${$.fJ.error}`,(e,{payload:t})=>{e.status=$.$H.error,e.error=Ps(t)})}});Is.getInitialState,Is.actions,Is.reducer;const As="fetchContentOutline",$s={suggestion:null,outline:[],cache:{},endpoint:"",status:$.$H.idle,error:f.pb},Fs=(0,$t.createSlice)({name:"contentOutline",initialState:$s,reducers:{setSuggestionForOutline:(e,{payload:t})=>{e.suggestion=t},restoreContentOutlineFromCache:(e,{payload:t})=>{const{suggestion:s,outline:r}=t;e.suggestion=s,e.outline=r,e.status=$.$H.success,e.error=f.pb},saveOutlineEditsToCache:(e,{payload:t})=>{const{id:s,structure:r}=t;s&&(e.cache[s]=r),e.suggestion=null,e.outline=[],e.status=$.$H.idle,e.error=f.pb}},extraReducers:e=>{e.addCase(`${As}/${$.fJ.request}`,(e,{payload:t})=>{e.status=$.$H.loading,e.suggestion=t.suggestion,e.error=f.pb}),e.addCase(`${As}/${$.fJ.success}`,(e,{payload:t})=>{e.status=$.$H.success;const s=t.outline.map((e,t)=>{var s,r;const n=null!==(s=e.subheading_text)&&void 0!==s?s:"";return{id:`${t}-${n}`,heading:n,contentNotes:null!==(r=e.content_notes)&&void 0!==r?r:[]}});e.outline=s}),e.addCase(`${As}/${$.fJ.error}`,(e,{payload:t})=>{e.status=$.$H.error,e.error=Ps(t)}),e.addCase(`${Os}/${$.fJ.request}`,e=>({...$s,endpoint:e.endpoint}))}});Fs.getInitialState,Fs.actions,Fs.reducer;const Us=(0,$t.createSlice)({name:"modal",initialState:{isOpen:!1,featureModalStatus:null},reducers:{closeModal:()=>Us.getInitialState(),setFeatureModalStatus:(e,{payload:t})=>{e.featureModalStatus=t}},extraReducers:e=>{e.addCase(`${As}/${$.fJ.request}`,e=>{e.featureModalStatus=f.Qo.contentOutline}),e.addCase(`${Os}/${$.fJ.request}`,e=>{e.featureModalStatus=f.Qo.contentSuggestions})}}),zs=(Us.getInitialState,Us.reducer,Us.actions,"availability"),Bs=(0,$t.createSlice)({name:zs,initialState:{minPostsMet:!1},reducers:{}});Bs.getInitialState,Bs.reducer,Bs.actions,s(3313);const qs=(0,$t.createSlice)({name:"banner",initialState:{isBannerDismissed:!1,isBannerRendered:!1,isBannerPermanentlyDismissed:!1,bannerPermanentDismissalEndpoint:""},reducers:{setBannerRendered:e=>{e.isBannerRendered=!0},setBannerDismissed:e=>{e.isBannerDismissed=!0},setBannerPermanentlyDismissed:e=>{e.isBannerPermanentlyDismissed=!0}}});qs.getInitialState,qs.reducer;var Ds=s(8119);const Hs=z.forwardRef(function(e,t){return z.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),z.createElement("path",{fillRule:"evenodd",d:"M9 2a1 1 0 00-.894.553L7.382 4H4a1 1 0 000 2v10a2 2 0 002 2h8a2 2 0 002-2V6a1 1 0 100-2h-3.382l-.724-1.447A1 1 0 0011 2H9zM7 8a1 1 0 012 0v6a1 1 0 11-2 0V8zm5-1a1 1 0 00-1 1v6a1 1 0 102 0V8a1 1 0 00-1-1z",clipRule:"evenodd"}))}),Ws=({isPremium:e,onDismiss:t,onDismissPermanently:s,onClick:r,learnMoreLink:n})=>{const a=(0,o.useSvgAria)();return(0,h.jsx)(o.Root,{children:(0,h.jsxs)("div",{role:"group","aria-label":(0,i.__)("Content suggestions banner","wordpress-seo"),className:"yst-z-50 yst-relative yst-p-4 yst-ai-gradient-border yst-rounded-lg",children:[(0,h.jsxs)(o.DropdownMenu,{as:"span",className:"yst-absolute yst-top-4 yst-end-4",children:[(0,h.jsx)(o.DropdownMenu.IconTrigger,{screenReaderTriggerLabel:(0,i.__)("Open banner options","wordpress-seo"),className:"yst-float-end"}),(0,h.jsxs)(o.DropdownMenu.List,{className:"yst-mt-8 yst-w-56",children:[(0,h.jsxs)(o.DropdownMenu.ButtonItem,{className:"yst-text-slate-600 yst-border-b yst-border-slate-200 yst-flex yst-py-2 yst-justify-start yst-gap-2 yst-px-4 yst-font-normal",onClick:t,children:[(0,h.jsx)(Ds.A,{className:"yst-w-4 yst-text-slate-400 yst-shrink-0",...a}),(0,i.__)("Remove for this post","wordpress-seo")]}),(0,h.jsxs)(o.DropdownMenu.ButtonItem,{className:"yst-text-red-500 yst-flex yst-py-2 yst-justify-start yst-gap-2 yst-px-4 yst-font-normal",onClick:s,children:[(0,h.jsx)(Hs,{className:"yst-w-4 yst-shrink-0",...a}),(0,i.__)("Remove for all posts","wordpress-seo")]})]})]}),(0,h.jsxs)("div",{className:"yst-flex yst-items-center yst-gap-2 yst-mb-1 yst-pe-8",children:[(0,h.jsx)(o.GradientSparklesIcon,{className:"yst-h-4 yst-w-4",...a}),(0,h.jsxs)("p",{className:"yst-grow yst-text-slate-800 yst-font-medium",children:[" ",(0,i.__)("Stuck on what to write next?","wordpress-seo")]})]}),(0,h.jsx)("p",{className:"yst-text-sm yst-text-slate-600 yst-mb-1 yst-max-w-xl",children:(0,i.__)("Let Yoast AI Content Planner analyze your content and suggest high-impact topics that fill content gaps and strengthen your SEO strategy.","wordpress-seo")}),(0,h.jsxs)(o.Link,{as:p.rd,href:n,variant:"primary",className:"yst-font-medium yst-no-underline",children:[(0,i.__)("Learn more","wordpress-seo"),(0,h.jsx)(c.A,{className:"yst-w-4 yst-h-4 rtl:yst-rotate-180 yst-inline yst-ms-1.5"})]}),(0,h.jsxs)("div",{className:"yst-mt-1 yst-flex yst-justify-end yst-gap-2 yst-items-center",children:[!e&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(g,{}),(0,h.jsx)("span",{"aria-hidden":"true",children:"·"})]}),(0,h.jsx)(o.Button,{variant:"ai-primary",onClick:r,children:(0,i.__)("Get content suggestions","wordpress-seo")})]})]})})},Gs=window.wp.dom;const Vs=({BlockListBlock:e,props:s,hasConsent:n})=>{const{isNewPost:o,isBannerDismissed:i,isBannerRendered:a,isBannerPermanentlyDismissed:l,bannerPermanentDismissalEndpoint:c,isPremium:d,minPostsMet:u,learnMoreLink:p}=(0,t.useSelect)(e=>{const t=e(f.bw);return{isNewPost:e("core/editor").isEditedPostNew(),isBannerDismissed:t.selectIsBannerDismissed(),isBannerRendered:t.selectIsBannerRendered(),isBannerPermanentlyDismissed:t.selectIsBannerPermanentlyDismissed(),bannerPermanentDismissalEndpoint:t.selectBannerPermanentDismissalEndpoint(),isPremium:e(v).getIsPremium(),minPostsMet:e(f.bw).selectIsMinPostsMet(),learnMoreLink:e(v).selectLink("https://yoa.st/content-planner-learn-more")}},[]),{setFeatureModalStatus:m,setBannerDismissed:y,setBannerRendered:g,dismissBannerPermanently:x}=(0,t.useDispatch)(f.bw),w=F(),b=(0,r.useRef)(null),j=!l&&!i&&(o||a)&&u,_=(0,r.useCallback)(()=>{y()},[y]),S=(0,r.useCallback)(()=>{x(c)},[x,c]),C=(0,r.useCallback)(()=>{n?w():m(f.Qo.consent)},[n,w,m]);return(0,r.useEffect)(()=>{j&&!a&&g()},[j,a,g]),(0,r.useEffect)(()=>{var e;const t=null===(e=b.current)||void 0===e?void 0:e.ownerDocument;if(!t||t===window.document||t.getElementById(f.x_))return;const s=window.document.getElementById(f.x_);if(!s)return;const r=t.createElement("link");r.id=f.x_,r.rel="stylesheet",r.href=s.href,t.head.appendChild(r)},[j]),(0,r.useEffect)(()=>{var e;if(!j)return;const t=null===(e=b.current)||void 0===e?void 0:e.ownerDocument;if(!t)return;function s(e){!function(e,t){!t.defaultPrevented&&e&&(["ArrowDown","ArrowUp"].includes(t.key)?function(e,t){const s=e.querySelector("[role='menu']");s&&(s===t.target||s.contains(t.target))&&t.preventDefault()}(e,t):"Tab"===t.key&&function(e,t){const s=(e=>e.shiftKey?Gs.focus.tabbable.findPrevious:Gs.focus.tabbable.findNext)(t),r=s(t.target);r&&((e,t,s)=>e.contains(t)||e.contains(s))(e,t.target,r)&&(t.preventDefault(),r.focus())}(e,t))}(b.current,e)}const r=e=>{(function(e,t){const s=null==e?void 0:e.querySelector(".yst-dropdown-menu__icon-trigger[aria-expanded='true']"),r=s&&e.querySelector("[role='menu']");return Boolean(r)&&!s.contains(t.target)&&!r.contains(t.target)})(b.current,e)&&b.current.querySelector(".yst-dropdown-menu__icon-trigger").click()};return t.addEventListener("keydown",s,{capture:!0}),t.addEventListener("mousedown",r,{capture:!0}),()=>{t.removeEventListener("keydown",s,{capture:!0}),t.removeEventListener("mousedown",r,{capture:!0})}},[j]),(0,h.jsxs)(h.Fragment,{children:[j&&(0,h.jsx)("div",{ref:b,className:"wp-block","data-block":"yoast-content-planner-banner",children:(0,h.jsx)(Ws,{isPremium:d,onDismiss:_,onDismissPermanently:S,onClick:C,learnMoreLink:p})}),(0,h.jsx)(e,{...s})]})};(0,a.createHigherOrderComponent)(e=>function(s){const{isFirstBlock:i,isEditingTemplate:a}=(0,t.useSelect)(e=>{const t=e("core/editor"),r=t.getCurrentPostType();return{isFirstBlock:e("core/block-editor").getBlockOrder()[0]===s.clientId,isEditingTemplate:"wp_template"===r||"wp_template_part"===r||"template-locked"===t.getRenderingMode()}},[s.clientId]),l=(0,t.useSelect)(e=>e(x)),c=(0,t.useSelect)(e=>{var t,s;return null!==(t=null===(s=e(x))||void 0===s?void 0:s.selectHasAiGeneratorConsent())&&void 0!==t&&t}),d=(0,r.useCallback)(()=>(0,h.jsx)(e,{...s}),[e,s]);return i&&(0,n.isObject)(l)&&!a?(0,h.jsx)(o.ErrorBoundary,{FallbackComponent:d,children:(0,h.jsx)(Vs,{BlockListBlock:e,props:s,hasConsent:c})}):(0,h.jsx)(e,{...s})},"withYoastContentPlannerBanner")})()})();