plugin installs

This commit is contained in:
Tony Volpe
2024-09-25 09:25:31 -04:00
parent 65a07c8d4d
commit cc870f301f
2953 changed files with 514886 additions and 0 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

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,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)}))})();

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
(()=>{"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 @@
(()=>{"use strict";const e=window.yoast.analysis,{getSentences:r,getWords:n}=e.languageProcessing,o=["I","you","me","my","mine","your","yours","myself","yourself","yourselves"],t=["we","they","their","theirs","themselves","us","our","ours","ourselves","it","its","itself"];function s(e,r){return e.filter((e=>r.includes(e)))}analysisWorker.registerResearch("textFormality",(function(e,l){const{charsPerSentence:a,wordsPerSentence:i,averageFormalPronouns:m,averageInformalPronouns:u}=function(e,l){const a=e.getText(),i=l.getHelper("memoizedTokenizer"),m=r(a,i),u=n(a);var g;return{charsPerSentence:(0===(g=m).length?0:g.map((e=>e.length)).reduce(((e,r)=>e+r)))/m.length,wordsPerSentence:u.length/m.length,averageFormalPronouns:s(u,t).length/u.length,averageInformalPronouns:s(u,o).length/u.length}}(e,l);return u<=.01805790513753891?a<=90.87325286865234?a<=73.79549026489258?"informal":a<=86.5999984741211?"formal":"informal":a<=172.26373291015625&&m<=.05696944147348404?"formal":"informal":u<=.04157066158950329?i<=24.832167625427246?"informal":m<=.0007042253273539245?"formal":"informal":u<=.06274875998497009?u<=.06258514896035194?"informal":"formal":"informal"}))})();

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
(()=>{var t;(t=function(){YoastSEO.app.registerPlugin("YoastCustomFieldsPlugin",{status:"loading"}),this.customFields={},this.updateCustomFields(),this.declareReady()}).prototype.declareReady=function(){YoastSEO.app.pluginReady("YoastCustomFieldsPlugin"),YoastSEO.app.registerModification("content",this.addCustomFields.bind(this),"YoastCustomFieldsPlugin")},t.prototype.declareReloaded=function(){YoastSEO.app.pluginReloaded("YoastCustomFieldsPlugin")},t.prototype.addCustomFields=function(t){return Object.values(this.customFields).reduce(((t,e)=>t+" "+e),t)},t.prototype.updateCustomFields=function(){var t={};jQuery("#the-list > tr:visible").each((function(e,s){var o=jQuery("#"+s.id+"-key").val();-1!==YoastCustomFieldsPluginL10.custom_field_names.indexOf(o)&&(t[o]=jQuery("#"+s.id+"-value").val())})),this.customFields=t,this.declareReloaded(),this.bindCustomFields()},t.prototype.bindCustomFields=function(){var t=_.debounce(this.updateCustomFields.bind(this),500,!0);jQuery("#the-list .button + .update_meta").off("click.wpseoCustomFields").on("click.wpseoCustomFields",t),jQuery("#the-list").off("wpListDelEnd.wpseoCustomFields").on("wpListDelEnd.wpseoCustomFields",t),jQuery("#the-list").off("wpListAddEnd.wpseoCustomFields").on("wpListAddEnd.wpseoCustomFields",t),jQuery("#the-list textarea").off("input.wpseoCustomFields").on("input.wpseoCustomFields",t)},"undefined"!=typeof YoastSEO&&void 0!==YoastSEO.app?new t:jQuery(window).on("YoastSEO:ready",(function(){new t}))})();

View File

@@ -0,0 +1 @@
(()=>{"use strict";var e={n:t=>{var o=t&&t.__esModule?()=>t.default:()=>t;return e.d(o,{a:o}),o},d:(t,o)=>{for(var i in o)e.o(o,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:o[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window.React,o=window.wp.components,i=window.wp.element,s=window.wp.hooks,n=window.yoast.propTypes;var a=e.n(n);const m=({pluginList:e,fieldId:s})=>{if(window.yoast.draftJsEmoji){window.yoast.draftJsEmoji.defaultTheme.customClassesSet||(window.yoast.draftJsEmoji.defaultTheme.emojiSelectButton="emoji-select-button",window.yoast.draftJsEmoji.defaultTheme.emojiSelectButtonPressed="emoji-select-button emoji-select-button-pressed",window.yoast.draftJsEmoji.defaultTheme.emojiSelectPopover+=" emoji-select-popover",window.yoast.draftJsEmoji.defaultTheme.emojiSelectPopoverNav+=" emoji-select-popover-nav",window.yoast.draftJsEmoji.defaultTheme.emojiSuggestionsEntry+=" emoji-suggestion-item-wrapper",window.yoast.draftJsEmoji.defaultTheme.emojiSuggestionsEntryFocused+=" emoji-suggestion-item-wrapper",window.yoast.draftJsEmoji.defaultTheme.emojiSuggestionsEntryText+=" emoji-suggestion-item-text",window.yoast.draftJsEmoji.defaultTheme.emojiSelectPopoverGroupItem+=" single-emoji",window.yoast.draftJsEmoji.defaultTheme.emojiSuggestions+=" emoji-suggestions",window.yoast.draftJsEmoji.defaultTheme.customClassesSet=!0);const{EmojiSelect:n,EmojiSuggestions:a}=e.emojiPlugin;return(0,t.createElement)(i.Fragment,null,(0,t.createElement)(o.Fill,{name:`PluginComponent-${s}`},(0,t.createElement)(n,{closeOnEmojiSelect:!0})),(0,t.createElement)(a,null))}return(0,t.createElement)(i.Fragment,null)};m.propTypes={pluginList:a().object.isRequired,fieldId:a().string.isRequired};const r=()=>(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"1.5"},(0,t.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.828 14.828a4 4 0 01-5.656 0M9 10h.01M15 10h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}));(0,s.addFilter)("yoast.replacementVariableEditor.additionalPlugins","yoast/yoast-seo-premium/EmojiSelect",((e,o,i)=>(0,t.createElement)(m,{key:`${i}-emoji`,pluginList:o,fieldId:i})),Number.MAX_SAFE_INTEGER),(0,s.addFilter)("yoast.replacementVariableEditor.pluginList","yoast/yoast-seo-premium/EmojiSelectLoad",(e=>(window.yoast.draftJsEmoji&&!e.emojiPlugin&&(e.emojiPlugin=window.yoast.draftJsEmoji.createEmojiPlugin({selectButtonContent:(0,t.createElement)(r,null),useNativeArt:!0,theme:window.yoast.draftJsEmoji.defaultTheme})),e)),Number.MAX_SAFE_INTEGER)})();

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
(()=>{var e={368:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ALLOW_EMPTY_TARGET:()=>i,wpseoCreateRedirect:()=>u,wpseoDeleteRedirect:()=>a,wpseoRemoveNotification:()=>s,wpseoUndoRedirect:()=>c,wpseoUndoRedirectByObjectId:()=>p,wpseoUndoRedirectForObject:()=>d});var o=r(455),n=r.n(o);const i=[410,451];function a(e,t,r,o="plain"){return n()({method:"POST",url:wpApiSettings.root+"yoast/v1/redirects/delete",headers:{"X-WP-Nonce":wpApiSettings.nonce},data:{origin:e,target:t,type:r,format:o}})}function d(e,t){return n()({method:"POST",url:wpApiSettings.root+"yoast/v1/redirects/undo-for-object",headers:{"X-WP-Nonce":wpApiSettings.nonce},data:{obj_id:e,obj_type:t}})}function s(e){jQuery(e).closest(".yoast-notification").fadeOut("slow")}function c(e,t,r,o,n){a(e,t,r).then((e=>{!0===e.success&&s(n)}))}function p(e,t,r){d(e,t).then((e=>{!0===e.success&&s(r)}))}function u(e,t,r,o){var n="";410===parseInt(t,10)||""!==(n=window.prompt(wpseoPremiumStrings.enter_new_url.replace("%s",e)))?jQuery.post(ajaxurl,{action:"wpseo_add_redirect_plain",ajax_nonce:r,redirect:{origin:e,target:n,type:t}},(function(e){var r=jQuery(o).closest(".yoast-notification");if(jQuery(r).removeClass("updated").removeClass("error"),jQuery(r).find(".redirect_error").remove(),e.error)jQuery(r).addClass("error").prepend('<p class="redirect_error">'+e.error.message+"</p>");else{var n="";n=(n=410===parseInt(t,10)?_.escape(wpseoPremiumStrings.redirect_saved_no_target):wpseoPremiumStrings.redirect_saved.replace("%2$s","<code>"+_.escape(e.target)+"</code>")).replace("%1$s","<code>"+_.escape(e.origin)+"</code>"),jQuery(r).addClass("updated").html("<p>"+n+"</p>")}}),"json"):window.alert(wpseoPremiumStrings.error_new_url)}},455:e=>{"use strict";e.exports=window.wp.apiFetch}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e=r(368),t=0;function o(){jQuery.post(ajaxurl,{action:"yoast_get_notifications"},(function(e){if(""!==e){var r=jQuery(".wrap").children().eq(0);jQuery(e).insertAfter(r),t=0}t<20&&""===e&&(t++,setTimeout(o,500))}))}function n(){return jQuery(location).attr("pathname").split("/").pop()}function i(e){return"edit-tags.php"===(e=e||n())?"slug":"post_name"}function a(){return jQuery("tr.inline-editor")}function d(){var e=a();return 0===e.length||""===e?"":e.attr("id").replace("edit-","")}function s(){var e=d(),t=i();return jQuery("#inline_"+e).find("."+t).html()}function c(){var e=a(),t=i();return s()!==e.find("input[name="+t+"]").val()}function p(e){13===e.which&&c()&&o()}function u(e){"save-order"!==jQuery(e.target).attr("id")&&c()&&o()}window.wpseoShowNotification=o,window.wpseoGetCurrentPage=n,window.wpseoGetActiveEditor=a,window.wpseoGetItemId=d,window.wpseoGetCurrentSlug=s,window.wpseoSlugChanged=c,window.wpseoHandleKeyEvents=p,window.wpseoHandleButtonEvents=u,window.wpseoUndoRedirect=e.wpseoUndoRedirect,window.wpseoUndoRedirectByObjectId=e.wpseoUndoRedirectByObjectId,window.wpseoCreateRedirect=e.wpseoCreateRedirect,window.wpseoRemoveNotification=e.wpseoRemoveNotification,jQuery((function(){var e=n();["edit.php","edit-tags.php"].includes(e)&&(jQuery("#inline-edit input").on("keydown",(function(e){p(e)})),jQuery(".button-primary").on("click",(function(e){u(e)}))),"edit-tags.php"===e&&jQuery(document).on("ajaxComplete",(function(e,t,r){"string"==typeof r.data&&r.data.indexOf("action=delete-tag")>-1&&o()}))}))})()})();

View File

@@ -0,0 +1 @@
(()=>{"use strict";var e={n:r=>{var t=r&&r.__esModule?()=>r.default:()=>r;return e.d(t,{a:t}),t},d:(r,t)=>{for(var o in t)e.o(t,o)&&!e.o(r,o)&&Object.defineProperty(r,o,{enumerable:!0,get:t[o]})},o:(e,r)=>Object.prototype.hasOwnProperty.call(e,r)};const r=window.wp.apiFetch;var t=e.n(r);function o(e,r,o,n="plain"){return t()({method:"POST",url:wpApiSettings.root+"yoast/v1/redirects/delete",headers:{"X-WP-Nonce":wpApiSettings.nonce},data:{origin:e,target:r,type:o,format:n}})}function n(e){jQuery(e).closest(".yoast-notification").fadeOut("slow")}window.wpseoUndoRedirect=function(e,r,t,i,s){o(e,r,t).then((e=>{!0===e.success&&n(s)}))},window.wpseoUndoRedirectByObjectId=function(e,r,o){(function(e,r){return t()({method:"POST",url:wpApiSettings.root+"yoast/v1/redirects/undo-for-object",headers:{"X-WP-Nonce":wpApiSettings.nonce},data:{obj_id:e,obj_type:r}})})(e,r).then((e=>{!0===e.success&&n(o)}))},window.wpseoCreateRedirect=function(e,r,t,o){var n="";410===parseInt(r,10)||""!==(n=window.prompt(wpseoPremiumStrings.enter_new_url.replace("%s",e)))?jQuery.post(ajaxurl,{action:"wpseo_add_redirect_plain",ajax_nonce:t,redirect:{origin:e,target:n,type:r}},(function(e){var t=jQuery(o).closest(".yoast-notification");if(jQuery(t).removeClass("updated").removeClass("error"),jQuery(t).find(".redirect_error").remove(),e.error)jQuery(t).addClass("error").prepend('<p class="redirect_error">'+e.error.message+"</p>");else{var n="";n=(n=410===parseInt(r,10)?_.escape(wpseoPremiumStrings.redirect_saved_no_target):wpseoPremiumStrings.redirect_saved.replace("%2$s","<code>"+_.escape(e.target)+"</code>")).replace("%1$s","<code>"+_.escape(e.origin)+"</code>"),jQuery(t).addClass("updated").html("<p>"+n+"</p>")}}),"json"):window.alert(wpseoPremiumStrings.error_new_url)},window.wpseoDeleteRedirect=o,window.wpseoRemoveNotification=n})();

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +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)}))})();

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long