plugin updates

This commit is contained in:
Tony Volpe
2024-10-24 12:57:16 -04:00
parent 8217f0dbed
commit 5e040c9234
399 changed files with 3377 additions and 46318 deletions

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

View File

@@ -1,6 +0,0 @@
(()=>{"use strict";var e={n:t=>{var s=t&&t.__esModule?()=>t.default:()=>t;return e.d(s,{a:s}),s},d:(t,s)=>{for(var a in s)e.o(s,a)&&!e.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:s[a]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window.wp.domReady;var s=e.n(t);const a=window.wp.hooks,r=window.lodash,i=window.yoast.reduxJsToolkit,n="adminUrl",o=(0,i.createSlice)({name:n,initialState:"",reducers:{setAdminUrl:(e,{payload:t})=>t}}),l=(o.getInitialState,{selectAdminUrl:e=>(0,r.get)(e,n,"")});l.selectAdminLink=(0,i.createSelector)([l.selectAdminUrl,(e,t)=>t],((e,t)=>{try{return new URL(t,e).href}catch(t){return e}})),o.actions,o.reducer;const c=window.wp.apiFetch;var m=e.n(c);const d="hasConsent",u=`${d}/storeConsent`,y=(0,i.createSlice)({name:d,initialState:!1,reducers:{giveAiGeneratorConsent:(e,{payload:t})=>t}}),p=y.getInitialState,w={selectHasAiGeneratorConsent:e=>(0,r.get)(e,d,!1)},g={...y.actions,storeAiGeneratorConsent:function*(e){try{yield{type:u,payload:e}}catch(e){return!1}return yield{type:`${d}/giveAiGeneratorConsent`,payload:e},!0}},h={[u]:({payload:e})=>m()({path:"yoast/v1/ai_generator/consent",method:"POST",data:{consent:e},parse:!1})},v=y.reducer,f="pluginUrl",b=(0,i.createSlice)({name:f,initialState:"",reducers:{setPluginUrl:(e,{payload:t})=>t}}),E=b.getInitialState,k={selectPluginUrl:e=>(0,r.get)(e,f,"")};k.selectImageLink=(0,i.createSelector)([k.selectPluginUrl,(e,t,s="assets/images")=>s,(e,t)=>t],((e,t,s)=>[(0,r.trimEnd)(e,"/"),(0,r.trim)(t,"/"),(0,r.trimStart)(s,"/")].join("/")));const x=b.actions,S=b.reducer,P=window.wp.url,_="linkParams",N=(0,i.createSlice)({name:_,initialState:{},reducers:{setLinkParams:(e,{payload:t})=>t}}),C=(N.getInitialState,{selectLinkParam:(e,t,s={})=>(0,r.get)(e,`${_}.${t}`,s),selectLinkParams:e=>(0,r.get)(e,_,{})});C.selectLink=(0,i.createSelector)([C.selectLinkParams,(e,t)=>t],((e,t)=>(0,P.addQueryArgs)(t,e))),N.actions,N.reducer;const R="loading",L="showPlay",I="askPermission",q="isPlaying",A="wistiaEmbedPermission",$=(0,i.createSlice)({name:A,initialState:{value:!1,status:"idle",error:{}},reducers:{setWistiaEmbedPermissionValue:(e,{payload:t})=>{e.value=Boolean(t)}},extraReducers:e=>{e.addCase(`${A}/request`,(e=>{e.status=R})),e.addCase(`${A}/success`,((e,{payload:t})=>{e.status="success",e.value=Boolean(t&&t.value)})),e.addCase(`${A}/error`,((e,{payload:t})=>{e.status="error",e.value=Boolean(t&&t.value),e.error={code:(0,r.get)(t,"error.code",500),message:(0,r.get)(t,"error.message","Unknown")}}))}}),O=($.getInitialState,$.actions,$.reducer,window.React),U=window.wp.data,B=window.wp.element,G=O.forwardRef((function(e,t){return O.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),O.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"}))})),T=window.wp.i18n,M=window.yoast.uiLibrary,j=window.yoast.propTypes;var W=e.n(j);const Y=({onGiveConsent:e,learnMoreLink:t,privacyPolicyLink:s,termsOfServiceLink:a,thumbnail:r,wistiaEmbedPermission:i})=>{const{onClose:n,initialFocus:o}=(0,M.useModalContext)(),[l,c]=(0,M.useToggleState)(!1),m=(0,B.useCallback)((()=>{n(),e(!0)}),[e,n]),d=(0,B.createInterpolateElement)((0,T.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,T.__)("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-premium"),"<a1>","</a1>","<a2>","</a2>"),{a1:(0,O.createElement)(F,{href:a}),a2:(0,O.createElement)(F,{href:s})});return(0,O.createElement)("div",{className:"yst-flex yst-flex-col yst-items-center yst-p-10"},(0,O.createElement)("div",{className:"yst-relative yst-w-full"},(0,O.createElement)(H,{videoId:"vmrahpfjxp",thumbnail:r,wistiaEmbedPermission:i}),(0,O.createElement)(M.Badge,{className:"yst-absolute yst-top-0 yst-right-2 yst-mt-2 yst-ml-2",variant:"info"},"Beta")),(0,O.createElement)("div",{className:"yst-mt-6 yst-text-xs yst-font-medium"},(0,O.createElement)("span",{className:"yst-introduction-modal-uppercase"},(0,T.sprintf)(/* translators: %1$s expands to Yoast SEO Premium. */ /* translators: %1$s expands to Yoast SEO Premium. */
(0,T.__)("New to %1$s","wordpress-seo-premium"),"Yoast SEO Premium"))," ",(0,O.createElement)("span",{className:"yst-uppercase yst-text-slate-700"},"21.0")),(0,O.createElement)("div",{className:"yst-mt-4 yst-mx-1.5 yst-text-center"},(0,O.createElement)("h3",{className:"yst-text-slate-900 yst-text-lg yst-font-medium"},(0,T.__)("Generate titles & descriptions with Yoast AI!","wordpress-seo-premium")),(0,O.createElement)("div",{className:"yst-mt-2 yst-text-slate-600 yst-text-sm"},(0,B.createInterpolateElement)((0,T.sprintf)(/* translators: %1$s and %2$s are anchor tag; %3$s is the arrow icon. */ /* translators: %1$s and %2$s are anchor tag; %3$s is the arrow icon. */
(0,T.__)("Speed up your workflow with generative AI. Get high-quality title and description suggestions for your search and social appearance. %1$sLearn more%2$s%3$s","wordpress-seo-premium"),"<a>","<ArrowNarrowRightIcon />","</a>"),{a:(0,O.createElement)(F,{href:t,className:"yst-inline-flex yst-items-center yst-gap-1 yst-no-underline yst-font-medium",variant:"primary"}),ArrowNarrowRightIcon:(0,O.createElement)(G,{className:"yst-w-4 yst-h-4 rtl:yst-rotate-180"})}))),(0,O.createElement)("div",{className:"yst-flex yst-w-full yst-mt-6"},(0,O.createElement)("hr",{className:"yst-w-full yst-text-gray-200"})),(0,O.createElement)("div",{className:"yst-flex yst-items-start yst-mt-4"},(0,O.createElement)("input",{type:"checkbox",id:"yst-ai-consent-checkbox",name:"yst-ai-consent-checkbox",checked:l,value:l?"true":"false",onChange:c,className:"yst-checkbox__input",ref:o}),(0,O.createElement)("label",{htmlFor:"yst-ai-consent-checkbox",className:"yst-label yst-checkbox__label yst-text-xs yst-font-normal yst-text-slate-500"},d)),(0,O.createElement)("div",{className:"yst-w-full yst-flex yst-mt-4"},(0,O.createElement)(M.Button,{as:"button",className:"yst-grow",size:"large",disabled:!l,onClick:m},(0,T.__)("Start generating","wordpress-seo-premium"))),(0,O.createElement)(M.Button,{as:"button",className:"yst-mt-4",variant:"tertiary",onClick:n},(0,T.__)("Close","wordpress-seo-premium")))};Y.propTypes={onGiveConsent:W().func.isRequired,learnMoreLink:W().string.isRequired,privacyPolicyLink:W().string.isRequired,termsOfServiceLink:W().string.isRequired,thumbnail:W().shape({src:W().string.isRequired,width:W().string,height:W().string}).isRequired,wistiaEmbedPermission:W().shape({value:W().bool.isRequired,status:W().string.isRequired,set:W().func.isRequired}).isRequired};const F=({href:e,children:t,...s})=>(0,O.createElement)(M.Link,{target:"_blank",rel:"noopener noreferrer",...s,href:e},t,(0,O.createElement)("span",{className:"yst-sr-only"},/* translators: Hidden accessibility text. */ /* translators: Hidden accessibility text. */
(0,T.__)("(Opens in a new browser tab)","wordpress-seo-premium")));F.propTypes={href:W().string.isRequired,children:W().node},F.defaultProps={children:null};const z=window.yoast.reactHelmet,H=({videoId:e,thumbnail:t,wistiaEmbedPermission:s})=>{const[a,r]=(0,B.useState)(s.value?q:L),i=(0,B.useCallback)((()=>r(q)),[r]),n=(0,B.useCallback)((()=>{s.value?i():r(I)}),[s.value,i,r]),o=(0,B.useCallback)((()=>r(L)),[r]),l=(0,B.useCallback)((()=>{s.set(!0),i()}),[s.set,i]);return(0,O.createElement)(B.Fragment,null,s.value&&(0,O.createElement)(z.Helmet,null,(0,O.createElement)("script",{src:"https://fast.wistia.com/assets/external/E-v1.js",async:!0})),(0,O.createElement)("div",{className:"yst-relative yst-w-full yst-h-0 yst-pt-[56.25%] yst-overflow-hidden yst-rounded-md yst-drop-shadow-md yst-bg-white"},a===L&&(0,O.createElement)("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:n},(0,O.createElement)("img",{className:"yst-w-full yst-h-auto",alt:"",loading:"lazy",decoding:"async",...t})),a===I&&(0,O.createElement)("div",{className:"yst-absolute yst-inset-0 yst-flex yst-flex-col yst-items-center yst-justify-center yst-bg-white"},(0,O.createElement)("p",{className:"yst-max-w-xs yst-mx-auto yst-text-center"},s.status===R&&(0,O.createElement)(M.Spinner,null),s.status!==R&&(0,T.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,T.__)("To see this video, you need to allow %1$s to load embedded videos from %2$s.","wordpress-seo-premium"),"Yoast SEO","Wistia")),(0,O.createElement)("div",{className:"yst-flex yst-mt-6 yst-gap-x-4"},(0,O.createElement)(M.Button,{type:"button",variant:"secondary",onClick:o,disabled:s.status===R},(0,T.__)("Deny","wordpress-seo-premium")),(0,O.createElement)(M.Button,{type:"button",variant:"primary",onClick:l,disabled:s.status===R},(0,T.__)("Allow","wordpress-seo-premium")))),s.value&&a===q&&(0,O.createElement)("div",{className:"yst-absolute yst-w-full yst-h-full yst-top-0 yst-left-0"},null===e&&(0,O.createElement)(M.Spinner,{className:"yst-h-full yst-mx-auto"}),null!==e&&(0,O.createElement)("div",{className:`wistia_embed wistia_async_${e} videoFoam=true`}))))};H.propTypes={videoId:W().string.isRequired,thumbnail:W().shape({src:W().string.isRequired,width:W().string,height:W().string}).isRequired,wistiaEmbedPermission:W().shape({value:W().bool.isRequired,status:W().string.isRequired,set:W().func.isRequired}).isRequired};const D="yoast-seo/introductions",V="yoast-seo-premium/introductions",J=()=>{const e=(0,U.useSelect)((e=>e(D).selectLink("https://yoa.st/ai-generator-learn-more")),[]),t=(0,U.useSelect)((e=>e(D).selectLink("https://yoa.st/ai-generator-privacy-policy")),[]),s=(0,U.useSelect)((e=>e(D).selectLink("https://yoa.st/ai-generator-terms-of-service")),[]),{storeAiGeneratorConsent:a}=(0,U.useDispatch)(V),r=(0,U.useSelect)((e=>e(D).selectImageLink("ai-generator-preview.png")),[]),i=(0,B.useMemo)((()=>({src:r,width:"432",height:"244"})),[r]),n=(0,U.useSelect)((e=>e(D).selectWistiaEmbedPermissionValue()),[]),o=(0,U.useSelect)((e=>e(D).selectWistiaEmbedPermissionStatus()),[]),{setWistiaEmbedPermission:l}=(0,U.useDispatch)(D),c=(0,B.useMemo)((()=>({value:n,status:o,set:l})),[n,o,l]);return(0,O.createElement)(Y,{onGiveConsent:a,learnMoreLink:e,privacyPolicyLink:t,termsOfServiceLink:s,thumbnail:i,wistiaEmbedPermission:c})},Q=()=>{const e=(0,r.get)(window,"YoastSEO._registerIntroductionComponent",null);null!==e?(((e={})=>{(0,U.register)((e=>(0,U.createReduxStore)(V,{actions:{...g,...x},selectors:{...w,...k},initialState:(0,r.merge)({},{[d]:p(),[f]:E()},e),reducer:(0,U.combineReducers)({[d]:v,[f]:S}),controls:{...h}}))(e))})({[f]:(0,r.get)(window,"wpseoPremiumIntroductions.pluginUrl","")}),e("ai-generate-titles-and-descriptions",J)):console.error("Warning: Premium introductions expected window.YoastSEO._registerIntroductionComponent to exist.")};s()((()=>{(0,a.didAction)("yoast.introductions.ready")?Q():(0,a.addAction)("yoast.introductions.ready","yoast/yoast-seo-premium/initializeIntroductions",Q)}))})();

View File

@@ -0,0 +1,6 @@
(()=>{"use strict";var e={n:t=>{var s=t&&t.__esModule?()=>t.default:()=>t;return e.d(s,{a:s}),s},d:(t,s)=>{for(var a in s)e.o(s,a)&&!e.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:s[a]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window.wp.domReady;var s=e.n(t);const a=window.wp.hooks,i=window.lodash,r=window.yoast.reduxJsToolkit,n="adminUrl",o=(0,r.createSlice)({name:n,initialState:"",reducers:{setAdminUrl:(e,{payload:t})=>t}}),l=(o.getInitialState,{selectAdminUrl:e=>(0,i.get)(e,n,"")});l.selectAdminLink=(0,r.createSelector)([l.selectAdminUrl,(e,t)=>t],((e,t)=>{try{return new URL(t,e).href}catch(t){return e}})),o.actions,o.reducer;const c=window.wp.apiFetch;var d=e.n(c);const u="hasConsent",m=`${u}/storeConsent`,y=(0,r.createSlice)({name:u,initialState:!1,reducers:{giveAiGeneratorConsent:(e,{payload:t})=>t}}),p=y.getInitialState,w={selectHasAiGeneratorConsent:e=>(0,i.get)(e,u,!1)},g={...y.actions,storeAiGeneratorConsent:function*(e){try{yield{type:m,payload:e}}catch(e){return!1}return yield{type:`${u}/giveAiGeneratorConsent`,payload:e},!0}},h={[m]:async({payload:e})=>await d()({path:"yoast/v1/ai_generator/consent",method:"POST",data:{consent:e},parse:!1})},b=y.reducer,f="pluginUrl",v=(0,r.createSlice)({name:f,initialState:"",reducers:{setPluginUrl:(e,{payload:t})=>t}}),E=v.getInitialState,x={selectPluginUrl:e=>(0,i.get)(e,f,"")};x.selectImageLink=(0,r.createSelector)([x.selectPluginUrl,(e,t,s="assets/images")=>s,(e,t)=>t],((e,t,s)=>[(0,i.trimEnd)(e,"/"),(0,i.trim)(t,"/"),(0,i.trimStart)(s,"/")].join("/")));const R=v.actions,S=v.reducer,k=window.wp.url,q="linkParams",P=(0,r.createSlice)({name:q,initialState:{},reducers:{setLinkParams:(e,{payload:t})=>t}}),N=(P.getInitialState,{selectLinkParam:(e,t,s={})=>(0,i.get)(e,`${q}.${t}`,s),selectLinkParams:e=>(0,i.get)(e,q,{})});N.selectLink=(0,r.createSelector)([N.selectLinkParams,(e,t)=>t],((e,t)=>(0,k.addQueryArgs)(t,e))),P.actions,P.reducer;const _="loading",C="showPlay",I="askPermission",L="isPlaying",A="wistiaEmbedPermission",O=(0,r.createSlice)({name:A,initialState:{value:!1,status:"idle",error:{}},reducers:{setWistiaEmbedPermissionValue:(e,{payload:t})=>{e.value=Boolean(t)}},extraReducers:e=>{e.addCase(`${A}/request`,(e=>{e.status=_})),e.addCase(`${A}/success`,((e,{payload:t})=>{e.status="success",e.value=Boolean(t&&t.value)})),e.addCase(`${A}/error`,((e,{payload:t})=>{e.status="error",e.value=Boolean(t&&t.value),e.error={code:(0,i.get)(t,"error.code",500),message:(0,i.get)(t,"error.message","Unknown")}}))}}),$=(O.getInitialState,O.actions,O.reducer,window.React),U=window.wp.data,B=window.wp.element,M=$.forwardRef((function(e,t){return $.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),$.createElement("path",{fillRule:"evenodd",d:"M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))})),z=window.wp.i18n,j=window.yoast.uiLibrary,T=window.yoast.propTypes;var W=e.n(T);W().string.isRequired,W().shape({src:W().string.isRequired,width:W().string,height:W().string}).isRequired,W().shape({value:W().bool.isRequired,status:W().string.isRequired,set:W().func.isRequired}).isRequired;const G=({learnMoreLink:e,thumbnail:t,wistiaEmbedPermission:s})=>{const{onClose:a}=(0,j.useModalContext)();return(0,$.createElement)($.Fragment,null,(0,$.createElement)("div",{className:"yst-px-10 yst-pt-10 yst-introduction-gradient yst-text-center"},(0,$.createElement)("div",{className:"yst-relative yst-w-full"},(0,$.createElement)(H,{videoId:"vun9z1dpfh",thumbnail:t,wistiaEmbedPermission:s}),(0,$.createElement)(j.Badge,{className:"yst-absolute yst-right-0 yst-mr-4 yst-text-center yst-justify-center",variant:"info",style:{top:"-8px"}},(0,z.__)("Beta","wordpress-seo-premium"))),(0,$.createElement)("div",{className:"yst-mt-6 yst-text-xs yst-font-medium yst-flex yst-flex-col yst-items-center"},(0,$.createElement)("span",{className:"yst-introduction-modal-uppercase yst-flex yst-gap-2 yst-items-center"},(0,$.createElement)("span",{className:"yst-logo-icon"}),(0,z.sprintf)(/* translators: %s expands to "Yoast SEO Premium" */ /* translators: %s expands to "Yoast SEO Premium" */
(0,z.__)("New to %s","wordpress-seo-premium"),"Yoast SEO Premium")))),(0,$.createElement)("div",{className:"yst-px-10 yst-pb-10 yst-flex yst-flex-col yst-items-center"},(0,$.createElement)("div",{className:"yst-mt-4 yst-mx-1.5 yst-text-center"},(0,$.createElement)("h3",{className:"yst-text-slate-900 yst-text-lg yst-font-medium"},(0,z.sprintf)(/* translators: %s expands to "Yoast AI" */ /* translators: %s expands to "Yoast AI" */
(0,z.__)("Optimize your SEO content with %s","wordpress-seo"),"Yoast AI")),(0,$.createElement)("div",{className:"yst-mt-2 yst-text-slate-600 yst-text-sm"},(0,B.createInterpolateElement)((0,z.sprintf)(/* translators: %1$s is a break tag; %2$s and %3$s are anchor tags; %4$s is the arrow icon. */ /* translators: %1$s is a break tag; %2$s and %3$s are anchor tags; %4$s is the arrow icon. */
(0,z.__)("Make content editing a breeze! Optimize your SEO content with quick, actionable suggestions at the click of a button. %1$s%2$sLearn more%3$s%4$s","wordpress-seo-premium"),"<br/>","<a>","<ArrowNarrowRightIcon />","</a>"),{a:(0,$.createElement)(Y,{href:e,className:"yst-inline-flex yst-items-center yst-gap-1 yst-no-underline yst-font-medium",variant:"primary"}),ArrowNarrowRightIcon:(0,$.createElement)(M,{className:"yst-w-4 yst-h-4 rtl:yst-rotate-180"}),br:(0,$.createElement)("br",null)}))),(0,$.createElement)("div",{className:"yst-w-full yst-flex yst-mt-6"},(0,$.createElement)(j.Button,{as:"button",className:"yst-grow",size:"extra-large",variant:"primary",onClick:a},(0,z.__)("Got it!","wordpress-seo")))))};G.propTypes={learnMoreLink:W().string.isRequired,thumbnail:W().shape({src:W().string.isRequired,width:W().string,height:W().string}).isRequired,wistiaEmbedPermission:W().shape({value:W().bool.isRequired,status:W().string.isRequired,set:W().func.isRequired}).isRequired};const Y=({href:e,children:t,...s})=>(0,$.createElement)(j.Link,{target:"_blank",rel:"noopener noreferrer",...s,href:e},t,(0,$.createElement)("span",{className:"yst-sr-only"},/* translators: Hidden accessibility text. */ /* translators: Hidden accessibility text. */
(0,z.__)("(Opens in a new browser tab)","wordpress-seo-premium")));Y.propTypes={href:W().string.isRequired,children:W().node},Y.defaultProps={children:null};const F=window.yoast.reactHelmet,H=({videoId:e,thumbnail:t,wistiaEmbedPermission:s})=>{const[a,i]=(0,B.useState)(s.value?L:C),r=(0,B.useCallback)((()=>i(L)),[i]),n=(0,B.useCallback)((()=>{s.value?r():i(I)}),[s.value,r,i]),o=(0,B.useCallback)((()=>i(C)),[i]),l=(0,B.useCallback)((()=>{s.set(!0),r()}),[s.set,r]);return(0,$.createElement)(B.Fragment,null,s.value&&(0,$.createElement)(F.Helmet,null,(0,$.createElement)("script",{src:"https://fast.wistia.com/assets/external/E-v1.js",async:!0})),(0,$.createElement)("div",{className:"yst-relative yst-w-full yst-h-0 yst-pt-[56.25%] yst-overflow-hidden yst-rounded-md yst-drop-shadow-md yst-bg-white"},a===C&&(0,$.createElement)("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:n},(0,$.createElement)("img",{className:"yst-w-full yst-h-auto",alt:"",loading:"lazy",decoding:"async",...t})),a===I&&(0,$.createElement)("div",{className:"yst-absolute yst-inset-0 yst-flex yst-flex-col yst-items-center yst-justify-center yst-bg-white"},(0,$.createElement)("p",{className:"yst-max-w-xs yst-mx-auto yst-text-center"},s.status===_&&(0,$.createElement)(j.Spinner,null),s.status!==_&&(0,z.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,z.__)("To see this video, you need to allow %1$s to load embedded videos from %2$s.","wordpress-seo-premium"),"Yoast SEO","Wistia")),(0,$.createElement)("div",{className:"yst-flex yst-mt-6 yst-gap-x-4"},(0,$.createElement)(j.Button,{type:"button",variant:"secondary",onClick:o,disabled:s.status===_},(0,z.__)("Deny","wordpress-seo-premium")),(0,$.createElement)(j.Button,{type:"button",variant:"primary",onClick:l,disabled:s.status===_},(0,z.__)("Allow","wordpress-seo-premium")))),s.value&&a===L&&(0,$.createElement)("div",{className:"yst-absolute yst-w-full yst-h-full yst-top-0 yst-left-0"},null===e&&(0,$.createElement)(j.Spinner,{className:"yst-h-full yst-mx-auto"}),null!==e&&(0,$.createElement)("div",{className:`wistia_embed wistia_async_${e} videoFoam=true`}))))};H.propTypes={videoId:W().string.isRequired,thumbnail:W().shape({src:W().string.isRequired,width:W().string,height:W().string}).isRequired,wistiaEmbedPermission:W().shape({value:W().bool.isRequired,status:W().string.isRequired,set:W().func.isRequired}).isRequired},W().func.isRequired,W().string.isRequired,W().string.isRequired,W().string.isRequired,W().string.isRequired;const D="yoast-seo/introductions",V=()=>{const e=(0,U.useSelect)((e=>e(D).selectLink("https://yoa.st/ai-fix-assessments-learn-more")),[]),t=(0,U.useSelect)((e=>e(D).selectImageLink("ai-fix-assessments-thumbnail.png")),[]),s=(0,B.useMemo)((()=>({src:t,width:"432",height:"244"})),[t]),a=(0,U.useSelect)((e=>e(D).selectWistiaEmbedPermissionValue()),[]),i=(0,U.useSelect)((e=>e(D).selectWistiaEmbedPermissionStatus()),[]),{setWistiaEmbedPermission:r}=(0,U.useDispatch)(D),n=(0,B.useMemo)((()=>({value:a,status:i,set:r})),[a,i,r]);return(0,$.createElement)(G,{learnMoreLink:e,thumbnail:s,wistiaEmbedPermission:n})},J=()=>{const e=(0,i.get)(window,"YoastSEO._registerIntroductionComponent",null);null!==e?(((e={})=>{(0,U.register)((e=>(0,U.createReduxStore)("yoast-seo-premium/introductions",{actions:{...g,...R},selectors:{...w,...x},initialState:(0,i.merge)({},{[u]:p(),[f]:E()},e),reducer:(0,U.combineReducers)({[u]:b,[f]:S}),controls:{...h}}))(e))})({[f]:(0,i.get)(window,"wpseoPremiumIntroductions.pluginUrl","")}),e("ai-fix-assessments",V)):console.error("Warning: Premium introductions expected window.YoastSEO._registerIntroductionComponent to exist.")};s()((()=>{(0,a.didAction)("yoast.introductions.ready")?J():(0,a.addAction)("yoast.introductions.ready","yoast/yoast-seo-premium/initializeIntroductions",J)}))})();

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1 +0,0 @@
(()=>{"use strict";const e=window.yoast.analysis,{readability:s}=e.assessments,{WordComplexityAssessment:t}=s,i={de:e.languageProcessing.languageHelpers.wordComplexityHelperGerman,en:e.languageProcessing.languageHelpers.wordComplexityHelperEnglish,es:e.languageProcessing.languageHelpers.wordComplexityHelperSpanish,fr:e.languageProcessing.languageHelpers.wordComplexityHelperFrench},n={de:e.languageProcessing.languageConfigs.wordComplexityConfigGerman,en:e.languageProcessing.languageConfigs.wordComplexityConfigEnglish,es:e.languageProcessing.languageConfigs.wordComplexityConfigSpanish,fr:e.languageProcessing.languageConfigs.wordComplexityConfigFrench},{seo:r}=e.assessments,{KeyphraseDistributionAssessment:g}=r,{readability:o,seo:a}=e.assessments,l="YoastSEOPremium";(new class{constructor(){this._worker=analysisWorker}register(){this._worker.registerMessageHandler("initialize",this.initialize.bind(this),l)}initialize({options:s}){if(s.isTitleAssessmentAvailable){const{TextTitleAssessment:e}=a,s=new e;this._worker.registerAssessment("TextTitleAssessment",s,l,"seo")}!function(s,t){const i=new g;s.registerResearch("keyphraseDistribution",e.languageProcessing.researches.keyphraseDistribution),s.registerAssessment("keyphraseDistributionAssessment",i,t,"seo")}(this._worker,l);const r=s.language;(function(e){return(0,window.yoast.analysis.helpers.getLanguagesWithWordComplexity)().includes(e)})(r)&&function(s,r,g){const o=n[r],a=i[r],l=new t,m=new t({scores:{acceptableAmount:3}});s.registerResearcherConfig("wordComplexity",o),s.registerHelper("checkIfWordIsComplex",a),s.registerResearch("wordComplexity",e.languageProcessing.researches.wordComplexity),s.registerAssessment("wordComplexity",l,g,"readability"),s.registerAssessment("wordComplexity",m,g,"cornerstoneReadability")}(this._worker,r,l),s.isTextAlignmentAssessmentAvailable&&this.registerTextAlignmentAssessment()}registerTextAlignmentAssessment(){const{TextAlignmentAssessment:s}=o;this._textAlignmentAssessment=new s,this._worker.registerResearch("getLongCenterAlignedTexts",e.languageProcessing.researches.getLongCenterAlignedTexts),this._worker.registerAssessment("textAlignment",this._textAlignmentAssessment,l,"readability"),this._worker.registerAssessment("textAlignment",this._textAlignmentAssessment,l,"cornerstoneReadability")}}).register()})();

View File

@@ -0,0 +1,23 @@
(()=>{"use strict";const e=window.wp.i18n,s=window.yoast.analysis,{readability:t}=s.assessments,{WordComplexityAssessment:r}=t,i=({urlTitleAnchorOpeningTag:s,urlActionAnchorOpeningTag:t,complexWordsPercentage:r})=>({acceptableAmount:(0,e.sprintf)(
/* translators: %1$s expands to a link on yoast.com, %2$s expand to the percentage of the complex words found in the text.
%3$s expand to a link on yoast.com, %4$s expands to the anchor end tag. */
/* translators: %1$s expands to a link on yoast.com, %2$s expand to the percentage of the complex words found in the text.
%3$s expand to a link on yoast.com, %4$s expands to the anchor end tag. */
(0,e.__)("%1$sWord complexity%4$s: %2$s of the words in your text are considered complex. %3$sTry to use shorter and more familiar words to improve readability%4$s.","wordpress-seo-premium"),s,r+"%",t,"</a>"),goodAmount:(0,e.sprintf)(/* translators: %1$s expands to an article on yoast.com and %2$s expands to the anchor end tag. */ /* translators: %1$s expands to an article on yoast.com and %2$s expands to the anchor end tag. */
(0,e.__)("%1$sWord complexity%2$s: You are not using too many complex words, which makes your text easy to read. Good job!","wordpress-seo-premium"),s,"</a>")}),{seo:n}=s.assessments,{KeyphraseDistributionAssessment:o}=n,a=({urlTitleAnchorOpeningTag:s,urlActionAnchorOpeningTag:t})=>({good:(0,e.sprintf)(/* translators: %1$s expands to links to Yoast.com articles, %2$s expands to the anchor end tag */ /* translators: %1$s expands to links to Yoast.com articles, %2$s expands to the anchor end tag */
(0,e.__)("%1$sKeyphrase distribution%2$s: Good job!","wordpress-seo-premium"),s,"</a>"),okay:(0,e.sprintf)(/* translators: %1$s and %2$s expand to links to Yoast.com articles, %3$s expands to the anchor end tag */ /* translators: %1$s and %2$s expand to links to Yoast.com articles, %3$s expands to the anchor end tag */
(0,e.__)("%1$sKeyphrase distribution%3$s: Uneven. Some parts of your text do not contain the keyphrase or its synonyms. %2$sDistribute them more evenly%3$s.","wordpress-seo-premium"),s,t,"</a>"),bad:(0,e.sprintf)(/* translators: %1$s and %2$s expand to links to Yoast.com articles, %3$s expands to the anchor end tag */ /* translators: %1$s and %2$s expand to links to Yoast.com articles, %3$s expands to the anchor end tag */
(0,e.__)("%1$sKeyphrase distribution%3$s: Very uneven. Large parts of your text do not contain the keyphrase or its synonyms. %2$sDistribute them more evenly%3$s.","wordpress-seo-premium"),s,t,"</a>"),consideration:(0,e.sprintf)(/* translators: %1$s and %2$s expand to links to Yoast.com articles, %3$s expands to the anchor end tag */ /* translators: %1$s and %2$s expand to links to Yoast.com articles, %3$s expands to the anchor end tag */
(0,e.__)("%1$sKeyphrase distribution%3$s: %2$sInclude your keyphrase or its synonyms in the text so that we can check keyphrase distribution%3$s.","wordpress-seo-premium"),s,t,"</a>")}),l=({urlTitleAnchorOpeningTag:s,urlActionAnchorOpeningTag:t})=>({good:(0,e.sprintf)(/* translators: %1$s expands to a link on yoast.com, %2$s expands to the anchor end tag. */ /* translators: %1$s expands to a link on yoast.com, %2$s expands to the anchor end tag. */
(0,e.__)("%1$sTitle%2$s: Your page has a title. Well done!","wordpress-seo-premium"),s,"</a>"),bad:(0,e.sprintf)(/* translators: %1$s and %2$s expands to a link on yoast.com, %3$s expands to the anchor end tag. */ /* translators: %1$s and %2$s expands to a link on yoast.com, %3$s expands to the anchor end tag. */
(0,e.__)("%1$sTitle%3$s: Your page does not have a title yet. %2$sAdd one%3$s!","wordpress-seo-premium"),s,t,"</a>")}),{readability:g}=s.assessments,m=({urlTitleAnchorOpeningTag:s,urlActionAnchorOpeningTag:t,numberOfLongCenterAlignedTexts:r})=>({rightToLeft:(0,e.sprintf)(
/* translators: %1$s and %2$s expand to links on yoast.com, %3$s expands to the anchor end tag,
%4$s expands to the number of the long center-aligned sections in the text */
/* translators: %1$s and %2$s expand to links on yoast.com, %3$s expands to the anchor end tag,
%4$s expands to the number of the long center-aligned sections in the text */
(0,e._n)("%1$sAlignment%3$s: There is a long section of center-aligned text. %2$sWe recommend making it right-aligned%3$s.","%1$sAlignment%3$s: There are %4$s long sections of center-aligned text. %2$sWe recommend making them right-aligned%3$s.",r,"wordpress-seo-premium"),s,t,"</a>",r),leftToRight:(0,e.sprintf)(
/* translators: %1$s and %2$s expand to links on yoast.com, %3$s expands to the anchor end tag,
%4$s expands to the number of the long center-aligned sections in the text */
/* translators: %1$s and %2$s expand to links on yoast.com, %3$s expands to the anchor end tag,
%4$s expands to the number of the long center-aligned sections in the text */
(0,e._n)("%1$sAlignment%3$s: There is a long section of center-aligned text. %2$sWe recommend making it left-aligned%3$s.","%1$sAlignment%3$s: There are %4$s long sections of center-aligned text. %2$sWe recommend making them left-aligned%3$s.",r,"wordpress-seo-premium"),s,t,"</a>",r)}),c="YoastSEOPremium";(new class{constructor(){this._worker=analysisWorker}register(){this._worker.registerMessageHandler("initialize",this.initialize.bind(this),c)}initialize({options:e}){e.isTitleAssessmentAvailable&&((e,t)=>{const{TextTitleAssessment:r}=s.assessments.seo,i=new r({callbacks:{getResultTexts:l}});e.registerAssessment("TextTitleAssessment",i,t,"seo")})(this._worker,c),function(e,t){const r=new o({callbacks:{getResultTexts:a}});e.registerResearch("keyphraseDistribution",s.languageProcessing.researches.keyphraseDistribution),e.registerAssessment("keyphraseDistributionAssessment",r,t,"seo")}(this._worker,c);const t=e.language;(function(e){return(0,window.yoast.analysis.helpers.getLanguagesWithWordComplexity)().includes(e)})(t)&&function(e,t,n){const o=s.helpers.getWordComplexityConfig(t),a=s.helpers.getWordComplexityHelper(t),l=new r({callbacks:{getResultTexts:i}}),g=new r({scores:{acceptableAmount:3},callbacks:{getResultTexts:i}});e.registerResearcherConfig("wordComplexity",o),e.registerHelper("checkIfWordIsComplex",a),e.registerResearch("wordComplexity",s.languageProcessing.researches.wordComplexity),e.registerAssessment("wordComplexity",l,n,"readability"),e.registerAssessment("wordComplexity",g,n,"cornerstoneReadability")}(this._worker,t,c),e.isTextAlignmentAssessmentAvailable&&((e,t)=>{const{TextAlignmentAssessment:r}=g,i=new r({callbacks:{getResultTexts:m}});e.registerResearch("getLongCenterAlignedTexts",s.languageProcessing.researches.getLongCenterAlignedTexts),e.registerAssessment("textAlignment",i,t,"readability"),e.registerAssessment("textAlignment",i,t,"cornerstoneReadability")})(this._worker,c)}}).register()})();

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

View File

@@ -1 +1 @@
(()=>{"use strict";const e=window.lodash,n=window.yoast.analysis,t=class{static create(e){return new window.yoast.Researcher.default(e)}},o="22.9",{doAjaxRequest:i}=window.yoast.editorModules.helpers.ajaxHelper;let r=!1;function s(){return r}function a(e,o){const r=[];return e.forEach((e=>{const i=function(e,n){const o=t.create(e),i=s();return i&&o.addResearchData("morphology",i),function(e){const n={};return e.forEach((function(e){n[e.getStem()]=e.getOccurrences()})),n}(o.getResearch("getProminentWordsForInternalLinking").prominentWords.slice(0,void 0))}(new n.Paper(e.content,{keyword:e.meta.primary_focus_keyword||"",synonyms:e.meta.keyphrase_synonyms||"",title:e.meta.title||"",description:e.meta.description||"",locale:o.locale||"en_US"}));r.push({object_id:e.object_id,object_type:e.object_type,prominent_words:i})})),i("POST",`${o.restApi.root}${o.prominentWords.endpoint}`,o.restApi.nonce,{data:r})}async function c(n){let t=s();if(t||!n.morphologySupported)return Promise.resolve();const a=function(e){const n={en:"v5",de:"v10",es:"v10",fr:"v11",it:"v10",nl:"v9",ru:"v10",id:"v9",pt:"v9",pl:"v9",ar:"v9",sv:"v1",he:"v1",hu:"v2",nb:"v1",tr:"v1",cs:"v1",sk:"v1",el:"v1",ja:"v1"};return!!Object.keys(n).includes(e)&&`https://my.yoast.com/api/downloads/file/morphology-${e}-${n[e]}`}(n.language||"en");if(!1===a)return Promise.resolve();const c=(0,e.get)(window,"wpseoPremiumIndexationData.licensedURL","");return t=await i("GET",a,null,{plugin_version:o,site:c}),function(e){r=e}(t),Promise.resolve(t)}jQuery((()=>{window.yoast=window.yoast||{},window.yoast.indexing=window.yoast.indexing||{},"function"==typeof window.yoast.indexing.registerPreIndexingAction&&window.yoast.indexing.registerPreIndexingAction("get_content",c),"function"==typeof window.yoast.indexing.registerIndexingAction&&window.yoast.indexing.registerIndexingAction("get_content",a)}))})();
(()=>{"use strict";const e=window.lodash,n=window.yoast.analysis,t=class{static create(e){return new window.yoast.Researcher.default(e)}},o="23.7",{doAjaxRequest:i}=window.yoast.editorModules.helpers.ajaxHelper;let r=!1;function s(){return r}function a(e,o){const r=[];return e.forEach((e=>{const i=function(e,n){const o=t.create(e),i=s();return i&&o.addResearchData("morphology",i),function(e){const n={};return e.forEach((function(e){n[e.getStem()]=e.getOccurrences()})),n}(o.getResearch("getProminentWordsForInternalLinking").prominentWords.slice(0,void 0))}(new n.Paper(e.content,{keyword:e.meta.primary_focus_keyword||"",synonyms:e.meta.keyphrase_synonyms||"",title:e.meta.title||"",description:e.meta.description||"",locale:o.locale||"en_US"}));r.push({object_id:e.object_id,object_type:e.object_type,prominent_words:i})})),i("POST",`${o.restApi.root}${o.prominentWords.endpoint}`,o.restApi.nonce,{data:r})}async function c(n){let t=s();if(t||!n.morphologySupported)return Promise.resolve();const a=function(e){const n={en:"v5",de:"v10",es:"v10",fr:"v11",it:"v10",nl:"v9",ru:"v10",id:"v9",pt:"v9",pl:"v9",ar:"v9",sv:"v1",he:"v1",hu:"v2",nb:"v1",tr:"v1",cs:"v1",sk:"v1",el:"v1",ja:"v1"};return!!Object.keys(n).includes(e)&&`https://my.yoast.com/api/downloads/file/morphology-${e}-${n[e]}`}(n.language||"en");if(!1===a)return Promise.resolve();const c=(0,e.get)(window,"wpseoPremiumIndexationData.licensedURL","");return t=await i("GET",a,null,{plugin_version:o,site:c}),function(e){r=e}(t),Promise.resolve(t)}jQuery((()=>{window.yoast=window.yoast||{},window.yoast.indexing=window.yoast.indexing||{},"function"==typeof window.yoast.indexing.registerPreIndexingAction&&window.yoast.indexing.registerPreIndexingAction("get_content",c),"function"==typeof window.yoast.indexing.registerIndexingAction&&window.yoast.indexing.registerIndexingAction("get_content",a)}))})();