auto-patch 638-dev-dev01-2024-05-14T20_44_36
This commit is contained in:
+6
-6
File diff suppressed because one or more lines are too long
+176
-176
File diff suppressed because one or more lines are too long
+164
-164
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+158
-156
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+358
-271
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+757
-750
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
(()=>{"use strict";var e={d:(t,a)=>{for(var o in a)e.o(a,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:a[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{enableFeatures:()=>o,enabledFeatures:()=>r,isFeatureEnabled:()=>a});const a=function(e){return!!self.wpseoFeatureFlags&&self.wpseoFeatureFlags.includes(e)},o=function(e){self.wpseoFeatureFlags||(self.wpseoFeatureFlags=[]),e.forEach((e=>{self.wpseoFeatureFlags.includes(e)||self.wpseoFeatureFlags.push(e)}))},r=function(){return self.wpseoFeatureFlags||[]};(window.yoast=window.yoast||{}).featureFlag=t})();
|
||||
(()=>{"use strict";var e,s={};e=s,Object.defineProperty(e,"__esModule",{value:!0}),e.isFeatureEnabled=e.enabledFeatures=e.enableFeatures=void 0,e.isFeatureEnabled=function(e){return!!self.wpseoFeatureFlags&&self.wpseoFeatureFlags.includes(e)},e.enableFeatures=function(e){self.wpseoFeatureFlags||(self.wpseoFeatureFlags=[]),e.forEach((e=>{self.wpseoFeatureFlags.includes(e)||self.wpseoFeatureFlags.push(e)}))},e.enabledFeatures=function(){return self.wpseoFeatureFlags||[]},(window.yoast=window.yoast||{}).featureFlag=s})();
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
(()=>{var e={2703:(e,r,t)=>{"use strict";var o=t(414);function n(){}function p(){}p.resetWarningCache=n,e.exports=function(){function e(e,r,t,n,p,s){if(s!==o){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function r(){return e}e.isRequired=e;var t={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:p,resetWarningCache:n};return t.PropTypes=t,t}},5697:(e,r,t)=>{e.exports=t(2703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},r={},t=function t(o){var n=r[o];if(void 0!==n)return n.exports;var p=r[o]={exports:{}};return e[o](p,p.exports,t),p.exports}(5697);(window.yoast=window.yoast||{}).propTypes=t})();
|
||||
(()=>{var e={92703:(e,r,t)=>{"use strict";var o=t(50414);function n(){}function p(){}p.resetWarningCache=n,e.exports=function(){function e(e,r,t,n,p,s){if(s!==o){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function r(){return e}e.isRequired=e;var t={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:p,resetWarningCache:n};return t.PropTypes=t,t}},45697:(e,r,t)=>{e.exports=t(92703)()},50414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},r={},t=function t(o){var n=r[o];if(void 0!==n)return n.exports;var p=r[o]={exports:{}};return e[o](p,p.exports,t),p.exports}(45697);(window.yoast=window.yoast||{}).propTypes=t})();
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+17
-17
File diff suppressed because one or more lines are too long
+130
-130
File diff suppressed because one or more lines are too long
+6
-6
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -7,4 +7,4 @@
|
||||
(0,W.__)("(Opens in a new browser tab)","wordpress-seo")));J.propTypes={href:U().string.isRequired,children:U().node},J.defaultProps={children:null};const K=t.forwardRef((function(e,s){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},e),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))}));var Q,X,ee;function te(){return te=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(e[a]=s[a])}return e},te.apply(this,arguments)}const se=e=>t.createElement("svg",te({xmlns:"http://www.w3.org/2000/svg",id:"star-rating-half_svg__Layer_1","data-name":"Layer 1",viewBox:"0 0 500 475.53"},e),Q||(Q=t.createElement("defs",null,t.createElement("style",null,".star-rating-half_svg__cls-1{fill:#fbbf24}"))),X||(X=t.createElement("path",{d:"M250 392.04 98.15 471.87l29-169.09L4.3 183.03l169.77-24.67L250 4.52l75.93 153.84 169.77 24.67-122.85 119.75 29 169.09L250 392.04z",className:"star-rating-half_svg__cls-1"})),ee||(ee=t.createElement("path",{d:"m250 9.04 73.67 149.27.93 1.88 2.08.3 164.72 23.94-119.19 116.19-1.51 1.47.36 2.07 28.14 164.06-147.34-77.46-1.86-1-1.86 1-147.34 77.46 28.14-164.06.36-2.07-1.51-1.47L8.6 184.43l164.72-23.9 2.08-.3.93-1.88L250 9.04m0-9-77.25 156.49L0 181.64l125 121.89-29.51 172L250 394.3l154.51 81.23-29.51-172 125-121.89-172.75-25.11L250 0Z",className:"star-rating-half_svg__cls-1"})),t.createElement("path",{d:"m500 181.64-172.75-25.11L250 0v394.3l154.51 81.23L375 303.48l125-121.84z",style:{fill:"#f3f4f6"}}));function ae(){return ae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(e[a]=s[a])}return e},ae.apply(this,arguments)}const re=e=>t.createElement("svg",ae({xmlns:"http://www.w3.org/2000/svg","data-name":"Layer 1",viewBox:"0 0 500 475.53"},e),t.createElement("path",{d:"m250 0 77.25 156.53L500 181.64 375 303.48l29.51 172.05L250 394.3 95.49 475.53 125 303.48 0 181.64l172.75-25.11L250 0z",style:{fill:"#fbbf24"}}));var ne,ie,le,oe,ce,de,me,ue,ye;function pe(){return pe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(e[a]=s[a])}return e},pe.apply(this,arguments)}const we=e=>t.createElement("svg",pe({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 500 500"},e),ne||(ne=t.createElement("path",{fill:"#a4286a",d:"M80 0h340a80 80 0 0 1 80 80v420H80a80 80 0 0 1-80-80V80A80 80 0 0 1 80 0z"})),ie||(ie=t.createElement("path",{fill:"#6c2548",d:"M437.61 2 155.89 500H500V80a80 80 0 0 0-62.39-78z"})),le||(le=t.createElement("path",{fill:"#fff",d:"M74.4 337.3v34.9c21.6-.9 38.5-8 52.8-22.5s27.4-38 39.9-72.9l92.6-248h-44.8L140.3 236l-37-116.2h-41l54.4 139.8a57.54 57.54 0 0 1 0 41.8c-5.5 14.2-15.4 30.9-42.3 35.9z"})),oe||(oe=t.createElement("circle",{cx:368.33,cy:124.68,r:97.34,fill:"#9fda4f",transform:"rotate(-45 368.335 124.68)"})),ce||(ce=t.createElement("path",{fill:"#77b227",d:"m416.2 39.93-95.74 169.51A97.34 97.34 0 1 0 416.2 39.93z"})),de||(de=t.createElement("path",{fill:"#fec228",d:"m294.78 254.75-.15-.08-.13-.07a63.6 63.6 0 0 0-62.56 110.76h.13a63.6 63.6 0 0 0 62.71-110.67z"})),me||(me=t.createElement("path",{fill:"#f49a00",d:"m294.5 254.59-62.56 110.76a63.6 63.6 0 1 0 62.56-110.76z"})),ue||(ue=t.createElement("path",{fill:"#ff4e47",d:"M222.31 450.07A38.16 38.16 0 0 0 203 416.83a38.18 38.18 0 1 0 19.41 33.27z"})),ye||(ye=t.createElement("path",{fill:"#ed261f",d:"m202.9 416.8-37.54 66.48a38.17 38.17 0 0 0 37.54-66.48z"}))),ge=({link:e,linkProps:s,promotions:a})=>{const r=(0,n.useMemo)((()=>(0,W.__)("Use AI to generate titles and meta descriptions, automatically redirect deleted pages, get 24/7 support, and much, much more!","wordpress-seo")),[]),i=(0,n.createInterpolateElement)((0,W.sprintf)(/* translators: %1$s and %2$s expand to a span wrap to avoid linebreaks. %3$s expands to "Yoast SEO Premium". */
|
||||
(0,W.__)("%1$sGet%2$s %3$s","wordpress-seo"),"<nowrap>","</nowrap>","Yoast SEO Premium"),{nowrap:(0,t.createElement)("span",{className:"yst-whitespace-nowrap"})}),o=a.includes("black-friday-2023-promotion"),c=(0,n.createInterpolateElement)((0,W.sprintf)(/* translators: %1$s and %2$s expand to strong tags. */
|
||||
(0,W.__)("%1$sSAVE 30%%%2$s on your 12 month subscription","wordpress-seo"),"<strong>","</strong>"),{strong:(0,t.createElement)("strong",null)});return(0,t.createElement)("div",{className:"yst-p-6 yst-rounded-lg yst-text-white yst-bg-primary-500 yst-shadow"},(0,t.createElement)("figure",{className:"yst-logo-square yst-w-16 yst-h-16 yst-mx-auto yst-overflow-hidden yst-border yst-border-white yst-rounded-xl yst-rounded-br-none yst-relative yst-z-10 yst-mt-[-2.6rem]"},(0,t.createElement)(we,null)),o&&(0,t.createElement)("div",{className:"sidebar__sale_banner_container"},(0,t.createElement)("div",{className:"sidebar__sale_banner"},(0,t.createElement)("span",{className:"banner_text"},(0,W.__)("BLACK FRIDAY - 30% OFF","wordpress-seo")))),(0,t.createElement)(l.Title,{as:"h2",className:"yst-mt-6 yst-text-base yst-font-extrabold yst-text-white"},i),(0,t.createElement)("p",{className:"yst-mt-2"},r),o&&(0,t.createElement)("div",{className:"yst-text-center yst-border-t-[1px] yst-border-white yst-italic yst-mt-3"},(0,t.createElement)("p",{className:"yst-text-[10px] yst-my-3 yst-mx-0"},c)),(0,t.createElement)(l.Button,{as:"a",variant:"upsell",href:e,target:"_blank",rel:"noopener",className:"yst-flex yst-justify-center yst-gap-2 yst-mt-4 focus:yst-ring-offset-primary-500",...s},(0,t.createElement)("span",null,o?(0,W.__)("Claim your 30% off now!","wordpress-seo"):i),(0,t.createElement)(K,{className:"yst-w-4 yst-h-4 yst-icon-rtl"})),(0,t.createElement)("p",{className:"yst-text-center yst-text-xs yst-mx-2 yst-font-light yst-leading-5 yst-mt-2"},(0,W.__)("Only $/€/£99 per year (ex VAT)","wordpress-seo"),(0,t.createElement)("br",null),(0,W.__)("30-day money back guarantee.","wordpress-seo")),(0,t.createElement)("hr",{className:"yst-border-t yst-border-primary-300 yst-my-4"}),(0,t.createElement)("a",{className:"yst-block yst-mt-4 yst-no-underline",href:"https://www.g2.com/products/yoast-yoast/reviews",target:"_blank",rel:"noopener noreferrer"},(0,t.createElement)("span",{className:"yst-font-medium yst-text-white hover:yst-underline"},(0,W.__)("Read reviews from real users","wordpress-seo")),(0,t.createElement)("span",{className:"yst-flex yst-gap-2 yst-mt-2 yst-items-center"},(0,t.createElement)(G,{className:"yst-w-5 yst-h-5"}),(0,t.createElement)("span",{className:"yst-flex yst-gap-1"},(0,t.createElement)(re,{className:"yst-w-5 yst-h-5"}),(0,t.createElement)(re,{className:"yst-w-5 yst-h-5"}),(0,t.createElement)(re,{className:"yst-w-5 yst-h-5"}),(0,t.createElement)(re,{className:"yst-w-5 yst-h-5"}),(0,t.createElement)(se,{className:"yst-w-5 yst-h-5"})),(0,t.createElement)("span",{className:"yst-text-sm yst-font-semibold yst-text-white"},"4.6 / 5"))))};ge.propTypes={link:U().string.isRequired,linkProps:U().object,promotions:U().array},ge.defaultProps={linkProps:{},promotions:[]},U().node.isRequired;const he=window.yoast.reactHelmet,fe=({videoId:e,thumbnail:s,wistiaEmbedPermission:a})=>{const[r,i]=(0,n.useState)(a.value?$:O),o=(0,n.useCallback)((()=>i($)),[i]),c=(0,n.useCallback)((()=>{a.value?o():i(C)}),[a.value,o,i]),d=(0,n.useCallback)((()=>i(O)),[i]),m=(0,n.useCallback)((()=>{a.set(!0),o()}),[a.set,o]);return(0,t.createElement)(t.Fragment,null,a.value&&(0,t.createElement)(he.Helmet,null,(0,t.createElement)("script",{src:"https://fast.wistia.com/assets/external/E-v1.js",async:!0})),(0,t.createElement)("div",{className:"yst-relative yst-w-full yst-h-0 yst-pt-[56.25%] yst-overflow-hidden yst-rounded-md yst-drop-shadow-md yst-bg-white"},r===O&&(0,t.createElement)("button",{type:"button",className:"yst-absolute yst-inset-0 yst-button yst-p-0 yst-border-none yst-bg-white yst-transition-opacity yst-duration-1000 yst-opacity-100",onClick:c},(0,t.createElement)("img",{className:"yst-w-full yst-h-auto",alt:"",loading:"lazy",decoding:"async",...s})),r===C&&(0,t.createElement)("div",{className:"yst-absolute yst-inset-0 yst-flex yst-flex-col yst-items-center yst-justify-center yst-bg-white"},(0,t.createElement)("p",{className:"yst-max-w-xs yst-mx-auto yst-text-center"},a.status===I&&(0,t.createElement)(l.Spinner,null),a.status!==I&&(0,W.sprintf)(/* translators: %1$s expands to Yoast SEO. %2$s expands to Wistia. */
|
||||
(0,W.__)("To see this video, you need to allow %1$s to load embedded videos from %2$s.","wordpress-seo"),"Yoast SEO","Wistia")),(0,t.createElement)("div",{className:"yst-flex yst-mt-6 yst-gap-x-4"},(0,t.createElement)(l.Button,{type:"button",variant:"secondary",onClick:d,disabled:a.status===I},(0,W.__)("Deny","wordpress-seo")),(0,t.createElement)(l.Button,{type:"button",variant:"primary",onClick:m,disabled:a.status===I},(0,W.__)("Allow","wordpress-seo")))),a.value&&r===$&&(0,t.createElement)("div",{className:"yst-absolute yst-w-full yst-h-full yst-top-0 yst-left-0"},null===e&&(0,t.createElement)(l.Spinner,{className:"yst-h-full yst-mx-auto"}),null!==e&&(0,t.createElement)("div",{className:`wistia_embed wistia_async_${e} videoFoam=true`}))))};fe.propTypes={videoId:U().string.isRequired,thumbnail:U().shape({src:U().string.isRequired,width:U().string,height:U().string}).isRequired,wistiaEmbedPermission:U().shape({value:U().bool.isRequired,status:U().string.isRequired,set:U().func.isRequired}).isRequired};const Ee="yoast-seo/introductions",ve=()=>{const e=(0,s.useSelect)((e=>e(Ee).selectLink("https://www.yoa.st/ai-generator-learn-more")),[]),a=(0,s.useSelect)((e=>e(Ee).selectLink("https://yoa.st/ai-generator-upsell")),[]),r=(0,s.useSelect)((e=>e(Ee).selectImageLink("ai-generator-preview.png")),[]),i=(0,n.useMemo)((()=>({src:r,width:"432",height:"244"})),[r]),l=(0,s.useSelect)((e=>e(Ee).selectWistiaEmbedPermissionValue()),[]),o=(0,s.useSelect)((e=>e(Ee).selectWistiaEmbedPermissionStatus()),[]),{setWistiaEmbedPermission:c}=(0,s.useDispatch)(Ee),d=(0,n.useMemo)((()=>({value:l,status:o,set:c})),[l,o,c]);return(0,t.createElement)(Y,{learnMoreLink:e,upsellLink:a,thumbnail:i,wistiaEmbedPermission:d})};window.YoastSEO=window.YoastSEO||{};const be=(0,n.createContext)({}),xe=({children:e,initialComponents:a})=>{const[r,i]=(0,n.useState)(a),l=(0,s.useSelect)((e=>e(Ee).selectIntroductions()),[]),c=(0,n.useCallback)(((e,t)=>{(0,o.find)(l,{id:e})?i((s=>({...s,[e]:t}))):console.error("Warning: Introductions received a registration for an unknown key:",e)}),[l,i]);return(0,n.useEffect)((()=>{window.YoastSEO._registerIntroductionComponent=c}),[c]),(0,t.createElement)(be.Provider,{value:r},e)};xe.propTypes={children:U().node.isRequired,initialComponents:U().object.isRequired};const _e=()=>{const e=(0,s.useSelect)((e=>e(Ee).selectCurrentIntroduction()),[]),a=(0,n.useContext)(be),r=(0,n.useMemo)((()=>null==a?void 0:a[null==e?void 0:e.id]),[e,a]);return r?(0,t.createElement)(r,null):null},ke=({children:e})=>{const[s,a]=(0,n.useState)(!0),r=(0,n.useRef)(null),i=(0,n.useCallback)((()=>a(!1)),[]);return(0,t.createElement)(l.Modal,{className:"yst-introduction-modal yst-h-[calc(100vh - 1rem)] sm:yst-h-[calc(100vh - 2rem)] md:yst-h-[calc(100vh - 5rem)]) yst-overflow-y-auto",isOpen:s,onClose:i,initialFocus:r},(0,t.createElement)(l.Modal.Panel,{className:"yst-max-w-lg yst-p-0 yst-bg-gradient-to-b yst-from-[#EDD2E1] yst-rounded-3xl"},e))};ke.propTypes={children:U().node.isRequired};const Ne="introductions",Pe=(0,c.createEntityAdapter)({selectId:e=>e.id,sortComparer:(e,t)=>e.priority===t.priority?0:e.priority<t.priority?-1:1}),Le=e=>({id:e.id||(0,c.nanoid)(),priority:e.priority||0}),Se=(0,c.createSlice)({name:Ne,initialState:Pe.getInitialState({current:0}),reducers:{addIntroduction:{reducer:Pe.addOne,prepare:e=>({payload:Le(e)})},addIntroductions:{reducer:Pe.addMany,prepare:e=>({payload:(0,o.map)(e,Le)})},setIntroductions:{reducer:Pe.setAll,prepare:e=>({payload:(0,o.map)(e,Le)})}}}),Re=Se.getInitialState,Ie=Pe.getSelectors((e=>(0,o.get)(e,Ne,{}))),Oe={selectCurrentIntroductionIndex:e=>(0,o.get)(e,[Ne,"current"],0),selectIntroduction:Ie.selectById,selectIntroductions:Ie.selectAll};Oe.selectCurrentIntroduction=(0,c.createSelector)([Oe.selectCurrentIntroductionIndex,Oe.selectIntroductions],((e,t)=>t[e]));const Ce=Se.actions,$e=Se.reducer,qe="wpseoIntroductions";r()((()=>{const e=(0,o.get)(window,`${qe}.introductions`,[]);if((0,o.isEmpty)(e))return;((e={})=>{(0,s.register)((e=>(0,s.createReduxStore)(Ee,{actions:{...Ce,...w,...x,...z},selectors:{...Oe,...p,...b,...B},initialState:(0,o.merge)({},{[Ne]:Re(),[m]:y(),[f]:v(),[q]:M()},e),reducer:(0,s.combineReducers)({[Ne]:$e,[m]:g,[f]:_,[q]:T}),controls:{...A}}))(e))})({[m]:(0,o.get)(window,`${qe}.linkParams`,{}),[f]:(0,o.get)(window,`${qe}.pluginUrl`,""),[q]:{value:"1"===(0,o.get)(window,`${qe}.wistiaEmbedPermission`,!1)}}),(0,s.dispatch)(Ee).setIntroductions(e);const a={isRtl:Boolean((0,o.get)(window,`${qe}.isRtl`,!1))},r={"ai-generate-titles-and-descriptions-upsell":ve},c=document.createElement("div");c.id="wpseo-introductions",document.body.appendChild(c),(0,n.render)((0,t.createElement)(l.Root,{context:a},(0,t.createElement)(xe,{initialComponents:r},(0,t.createElement)(ke,null,(0,t.createElement)(_e,null)))),c,(()=>{(0,i.doAction)("yoast.introductions.ready")}))}))})();
|
||||
(0,W.__)("To see this video, you need to allow %1$s to load embedded videos from %2$s.","wordpress-seo"),"Yoast SEO","Wistia")),(0,t.createElement)("div",{className:"yst-flex yst-mt-6 yst-gap-x-4"},(0,t.createElement)(l.Button,{type:"button",variant:"secondary",onClick:d,disabled:a.status===I},(0,W.__)("Deny","wordpress-seo")),(0,t.createElement)(l.Button,{type:"button",variant:"primary",onClick:m,disabled:a.status===I},(0,W.__)("Allow","wordpress-seo")))),a.value&&r===$&&(0,t.createElement)("div",{className:"yst-absolute yst-w-full yst-h-full yst-top-0 yst-left-0"},null===e&&(0,t.createElement)(l.Spinner,{className:"yst-h-full yst-mx-auto"}),null!==e&&(0,t.createElement)("div",{className:`wistia_embed wistia_async_${e} videoFoam=true`}))))};fe.propTypes={videoId:U().string.isRequired,thumbnail:U().shape({src:U().string.isRequired,width:U().string,height:U().string}).isRequired,wistiaEmbedPermission:U().shape({value:U().bool.isRequired,status:U().string.isRequired,set:U().func.isRequired}).isRequired};const Ee="yoast-seo/introductions",ve=()=>{const e=(0,s.useSelect)((e=>e(Ee).selectLink("https://yoa.st/ai-generator-learn-more")),[]),a=(0,s.useSelect)((e=>e(Ee).selectLink("https://yoa.st/ai-generator-upsell")),[]),r=(0,s.useSelect)((e=>e(Ee).selectImageLink("ai-generator-preview.png")),[]),i=(0,n.useMemo)((()=>({src:r,width:"432",height:"244"})),[r]),l=(0,s.useSelect)((e=>e(Ee).selectWistiaEmbedPermissionValue()),[]),o=(0,s.useSelect)((e=>e(Ee).selectWistiaEmbedPermissionStatus()),[]),{setWistiaEmbedPermission:c}=(0,s.useDispatch)(Ee),d=(0,n.useMemo)((()=>({value:l,status:o,set:c})),[l,o,c]);return(0,t.createElement)(Y,{learnMoreLink:e,upsellLink:a,thumbnail:i,wistiaEmbedPermission:d})};window.YoastSEO=window.YoastSEO||{};const be=(0,n.createContext)({}),xe=({children:e,initialComponents:a})=>{const[r,i]=(0,n.useState)(a),l=(0,s.useSelect)((e=>e(Ee).selectIntroductions()),[]),c=(0,n.useCallback)(((e,t)=>{(0,o.find)(l,{id:e})?i((s=>({...s,[e]:t}))):console.error("Warning: Introductions received a registration for an unknown key:",e)}),[l,i]);return(0,n.useEffect)((()=>{window.YoastSEO._registerIntroductionComponent=c}),[c]),(0,t.createElement)(be.Provider,{value:r},e)};xe.propTypes={children:U().node.isRequired,initialComponents:U().object.isRequired};const _e=()=>{const e=(0,s.useSelect)((e=>e(Ee).selectCurrentIntroduction()),[]),a=(0,n.useContext)(be),r=(0,n.useMemo)((()=>null==a?void 0:a[null==e?void 0:e.id]),[e,a]);return r?(0,t.createElement)(r,null):null},ke=({children:e})=>{const[s,a]=(0,n.useState)(!0),r=(0,n.useRef)(null),i=(0,n.useCallback)((()=>a(!1)),[]);return(0,t.createElement)(l.Modal,{className:"yst-introduction-modal yst-h-[calc(100vh - 1rem)] sm:yst-h-[calc(100vh - 2rem)] md:yst-h-[calc(100vh - 5rem)]) yst-overflow-y-auto",isOpen:s,onClose:i,initialFocus:r},(0,t.createElement)(l.Modal.Panel,{className:"yst-max-w-lg yst-p-0 yst-bg-gradient-to-b yst-from-[#EDD2E1] yst-rounded-3xl"},e))};ke.propTypes={children:U().node.isRequired};const Ne="introductions",Pe=(0,c.createEntityAdapter)({selectId:e=>e.id,sortComparer:(e,t)=>e.priority===t.priority?0:e.priority<t.priority?-1:1}),Le=e=>({id:e.id||(0,c.nanoid)(),priority:e.priority||0}),Se=(0,c.createSlice)({name:Ne,initialState:Pe.getInitialState({current:0}),reducers:{addIntroduction:{reducer:Pe.addOne,prepare:e=>({payload:Le(e)})},addIntroductions:{reducer:Pe.addMany,prepare:e=>({payload:(0,o.map)(e,Le)})},setIntroductions:{reducer:Pe.setAll,prepare:e=>({payload:(0,o.map)(e,Le)})}}}),Re=Se.getInitialState,Ie=Pe.getSelectors((e=>(0,o.get)(e,Ne,{}))),Oe={selectCurrentIntroductionIndex:e=>(0,o.get)(e,[Ne,"current"],0),selectIntroduction:Ie.selectById,selectIntroductions:Ie.selectAll};Oe.selectCurrentIntroduction=(0,c.createSelector)([Oe.selectCurrentIntroductionIndex,Oe.selectIntroductions],((e,t)=>t[e]));const Ce=Se.actions,$e=Se.reducer,qe="wpseoIntroductions";r()((()=>{const e=(0,o.get)(window,`${qe}.introductions`,[]);if((0,o.isEmpty)(e))return;((e={})=>{(0,s.register)((e=>(0,s.createReduxStore)(Ee,{actions:{...Ce,...w,...x,...z},selectors:{...Oe,...p,...b,...B},initialState:(0,o.merge)({},{[Ne]:Re(),[m]:y(),[f]:v(),[q]:M()},e),reducer:(0,s.combineReducers)({[Ne]:$e,[m]:g,[f]:_,[q]:T}),controls:{...A}}))(e))})({[m]:(0,o.get)(window,`${qe}.linkParams`,{}),[f]:(0,o.get)(window,`${qe}.pluginUrl`,""),[q]:{value:"1"===(0,o.get)(window,`${qe}.wistiaEmbedPermission`,!1)}}),(0,s.dispatch)(Ee).setIntroductions(e);const a={isRtl:Boolean((0,o.get)(window,`${qe}.isRtl`,!1))},r={"ai-generate-titles-and-descriptions-upsell":ve},c=document.createElement("div");c.id="wpseo-introductions",document.body.appendChild(c),(0,n.render)((0,t.createElement)(l.Root,{context:a},(0,t.createElement)(xe,{initialComponents:r},(0,t.createElement)(ke,null,(0,t.createElement)(_e,null)))),c,(()=>{(0,i.doAction)("yoast.introductions.ready")}))}))})();
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+78
-78
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user