Files
2026-07-02 15:54:39 -06:00

3 lines
10 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(()=>{var e={2485(e,t){var s;!function(){"use strict";var o={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var s=arguments[t];if(s){var n=typeof s;if("string"===n||"number"===n)e.push(s);else if(Array.isArray(s)){if(s.length){var r=i.apply(null,s);r&&e.push(r)}}else if("object"===n){if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]")){e.push(s.toString());continue}for(var a in s)o.call(s,a)&&s[a]&&e.push(a)}}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(s=function(){return i}.apply(t,[]))||(e.exports=s)}()}},t={};function s(o){var i=t[o];if(void 0!==i)return i.exports;var n=t[o]={exports:{}};return e[o](n,n.exports,s),n.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 o in t)s.o(t,o)&&!s.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};s.r(e),s.d(e,{DISMISS_ALERT:()=>l});const t=window.wp.domReady;var o=s.n(t);const i=window.jQuery;var n=s.n(i);const r=window.wp.i18n,a=window.lodash,c=window.wp.data,d=window.yoast.externals.redux;function l({alertKey:e}){return new Promise(t=>wpseoApi.post("alerts/dismiss",{key:e},()=>t()))}const{currentPromotions:p,dismissedAlerts:h,isPremium:u,linkParams:g,documentTitle:w}=d.reducers,{isAlertDismissed:m,getIsPremium:f,isPromotionActive:y,selectLinkParams:v,selectLink:b,selectDocumentFullTitle:_}=d.selectors,{dismissAlert:k,setCurrentPromotions:x,setDismissedAlerts:P,setLinkParams:S,setIsPremium:D,setDocumentTitle:j}=d.actions,A=window.wp.element,T=window.wp.url,R=window.yoast.styledComponents,C=(e,t)=>{try{return(0,A.createInterpolateElement)(e,t)}catch(t){return console.error("Error in translation for:",e,t),e}},I=window.yoast.propTypes;var N=s.n(I);const O=(0,window.wp.compose.compose)([(0,c.withSelect)((e,t)=>{const{isAlertDismissed:s}=e(t.store||"yoast-seo/editor");return{isAlertDismissed:s(t.alertKey)}}),(0,c.withDispatch)((e,t)=>{const{dismissAlert:s}=e(t.store||"yoast-seo/editor");return{onDismissed:()=>s(t.alertKey)}})]),E=O;var L=s(2485),q=s.n(L);const B=window.ReactJSXRuntime,F=({children:e,id:t,hasIcon:s=!0,title:o,image:i=null,isAlertDismissed:n,onDismissed:a,className:c=""})=>n?null:(0,B.jsxs)("div",{id:t,className:q()("notice-yoast yoast is-dismissible",c),children:[(0,B.jsxs)("div",{className:"notice-yoast__container",children:[(0,B.jsxs)("div",{children:[(0,B.jsxs)("div",{className:"notice-yoast__header",children:[s&&(0,B.jsx)("span",{className:"yoast-icon"}),(0,B.jsx)("h2",{className:"notice-yoast__header-heading yoast-notice-migrated-header",children:o})]}),(0,B.jsx)("div",{className:"notice-yoast-content",children:(0,B.jsx)("p",{children:e})})]}),i&&(0,B.jsx)(i,{height:"60"})]}),(0,B.jsx)("button",{type:"button",className:"notice-dismiss",onClick:a,children:(0,B.jsx)("span",{className:"screen-reader-text",children:/* translators: Hidden accessibility text. */ /* translators: Hidden accessibility text. */
(0,r.__)("Dismiss this notice.","wordpress-seo")})})]});F.propTypes={children:N().node.isRequired,id:N().string.isRequired,hasIcon:N().bool,title:N().any.isRequired,image:N().elementType,isAlertDismissed:N().bool.isRequired,onDismissed:N().func.isRequired,className:N().string};const M=E(F),K=({store:e="yoast-seo/editor",image:t=null,url:s,...o})=>(0,c.useSelect)(t=>t(e).getIsPremium())?null:(0,B.jsxs)(M,{alertKey:"webinar-promo-notification",store:e,id:"webinar-promo-notification",title:(0,r.__)("Ready to boost your online visibility?","wordpress-seo"),image:t,url:s,...o,children:[C((0,r.sprintf)(/* translators: 1: bold open tag; 2: "FREE"; 3: bold close tag; 4: "Yoast SEO". */ /* translators: 1: bold open tag; 2: "FREE"; 3: bold close tag; 4: "Yoast SEO". */
(0,r.__)("Access our %1$s%2$s%3$s webinars and podcasts to get started with %4$s and build the foundational skills and confidence needed for sustainable success.","wordpress-seo"),"<strong>","FREE","</strong>","Yoast SEO"),{strong:(0,B.jsx)("strong",{})})," ",(0,B.jsx)("a",{href:s,target:"_blank",rel:"noreferrer",children:(0,r.__)("Sign up today!","wordpress-seo")})]});K.propTypes={store:N().string,image:N().elementType,url:N().string.isRequired};const $=K;var H;!function(e){function t(){e("#copy-home-meta-description").on("click",function(){e("#open_graph_frontpage_desc").val(e("#meta_description").val())})}function s(){var t=e("#wpseo-conf");if(t.length){var s=t.attr("action").split("#")[0];t.attr("action",s+window.location.hash)}}function o(){var t=window.location.hash.replace("#top#","");-1!==t.search("#top")&&(t=window.location.hash.replace("#top%23","")),""!==t&&"#"!==t.charAt(0)||(t=e(".wpseotab").attr("id")),e("#"+t).addClass("active"),e("#"+t+"-tab").addClass("nav-tab-active").trigger("click")}function i(t){const s=e("#noindex-author-noposts-wpseo-container");t?s.show():s.hide()}e.fn._wpseoIsInViewport=function(){const t=e(this).offset().top,s=t+e(this).outerHeight(),o=e(window).scrollTop(),i=o+e(window).height();return t>o&&s<i},e(window).on("hashchange",function(){o(),s()}),window.setWPOption=function(t,s,o,i){e.post(ajaxurl,{action:"wpseo_set_option",option:t,newval:s,_wpnonce:i},function(t){t&&e("#"+o).hide()})},window.wpseoCopyHomeMeta=t,window.wpseoSetTabHash=s,e(document).ready(function(){s(),"function"==typeof window.wpseoRedirectOldFeaturesTabToNewSettings&&window.wpseoRedirectOldFeaturesTabToNewSettings(),e("#disable-author input[type='radio']").on("change",function(){e(this).is(":checked")&&e("#author-archives-titles-metas-content").toggle("off"===e(this).val())}).trigger("change");const n=e("#noindex-author-wpseo-off"),c=e("#noindex-author-wpseo-on");n.is(":checked")||i(!1),c.on("change",()=>{e(this).is(":checked")||i(!1)}),n.on("change",()=>{e(this).is(":checked")||i(!0)}),e("#disable-date input[type='radio']").on("change",function(){e(this).is(":checked")&&e("#date-archives-titles-metas-content").toggle("off"===e(this).val())}).trigger("change"),e("#disable-attachment input[type='radio']").on("change",function(){e(this).is(":checked")&&e("#media_settings").toggle("off"===e(this).val())}).trigger("change"),e("#disable-post_format").on("change",function(){e("#post_format-titles-metas").toggle(e(this).is(":not(:checked)"))}).trigger("change"),e("#wpseo-tabs").find("a").on("click",function(t){var s,o,i,n=!0;if(s=e(this),o=!!e("#first-time-configuration-tab").filter(".nav-tab-active").length,i=!!s.filter("#first-time-configuration-tab").length,o&&!i&&window.isStepBeingEdited&&(n=confirm((0,r.__)("There are unsaved changes in one or more steps. Leaving means that those changes may not be saved. Are you sure you want to leave?","wordpress-seo"))),n){window.isStepBeingEdited=!1,e("#wpseo-tabs").find("a").removeClass("nav-tab-active"),e(".wpseotab").removeClass("active");var a=e(this).attr("id").replace("-tab",""),c=e("#"+a);c.addClass("active"),e(this).addClass("nav-tab-active"),c.hasClass("nosave")?e("#wpseo-submit-container").hide():e("#wpseo-submit-container").show(),e(window).trigger("yoast-seo-tab-change"),"first-time-configuration"===a?(e(".notice-yoast").slideUp(),e(".yoast_premium_upsell").slideUp(),e("#sidebar-container").hide()):(e(".notice-yoast").slideDown(),e(".yoast_premium_upsell").slideDown(),e("#sidebar-container").show())}else t.preventDefault(),e("#first-time-configuration-tab").trigger("focus")}),e("#yoast-first-time-configuration-notice a").on("click",function(){e("#first-time-configuration-tab").click()}),e("#company_or_person").on("change",function(){var t=e(this).val();"company"===t?(e("#knowledge-graph-company").show(),e("#knowledge-graph-person").hide()):"person"===t?(e("#knowledge-graph-company").hide(),e("#knowledge-graph-person").show()):(e("#knowledge-graph-company").hide(),e("#knowledge-graph-person").hide())}).trigger("change"),e(".switch-yoast-seo input").on("keydown",function(e){"keydown"===e.type&&13===e.which&&e.preventDefault()}),e("body").on("click","button.toggleable-container-trigger",t=>{const s=e(t.currentTarget),o=s.parent().siblings(".toggleable-container");o.toggleClass("toggleable-container-hidden"),s.attr("aria-expanded",!o.hasClass("toggleable-container-hidden")).find("span").toggleClass("dashicons-arrow-up-alt2 dashicons-arrow-down-alt2")});const d=e("#opengraph"),l=e("#wpseo-opengraph-settings");d.length&&l.length&&(l.toggle(d[0].checked),d.on("change",e=>{l.toggle(e.target.checked)})),t(),o(),function(){if(!e("#enable_xml_sitemap input[type=radio]").length)return;const t=e("#yoast-seo-sitemaps-disabled-warning");e("#enable_xml_sitemap input[type=radio]").on("change",function(){"off"===this.value?t.show():t.hide()})}(),function(){const t=e("#wpseo-submit-container-float"),s=e("#wpseo-submit-container-fixed");if(!t.length||!s.length)return;function o(){t._wpseoIsInViewport()?s.hide():s.show()}e(window).on("resize scroll",(0,a.debounce)(o,100)),e(window).on("yoast-seo-tab-change",o);const i=e(".wpseo-message");i.length&&window.setTimeout(()=>{i.fadeOut()},5e3),o()}()})}(n()),wpseoScriptData&&(void 0!==wpseoScriptData.dismissedAlerts&&((H=(0,c.registerStore)("yoast-seo/settings",{reducer:(0,c.combineReducers)({currentPromotions:p,dismissedAlerts:h,isPremium:u,linkParams:g,documentTitle:w}),selectors:{isAlertDismissed:m,getIsPremium:f,isPromotionActive:y,selectLinkParams:v,selectDocumentFullTitle:_,selectLink:b},actions:{dismissAlert:k,setCurrentPromotions:x,setDismissedAlerts:P,setLinkParams:S,setIsPremium:D,setDocumentTitle:j},controls:e})).dispatch(P((0,a.get)(window,"wpseoScriptData.dismissedAlerts",{}))),H.dispatch(D(Boolean((0,a.get)(window,"wpseoScriptData.isPremium",!1)))),H.dispatch(x((0,a.get)(window,"wpseoScriptData.currentPromotions",{}))),H.dispatch(S((0,a.get)(window,"wpseoScriptData.linkParams",{})))),o()(()=>{(()=>{const e=document.getElementById("yst-settings-header-root"),t=Boolean((0,a.get)(window,"wpseoScriptData.isRtl",!1)),s=(0,c.select)("yoast-seo/settings").selectLinkParams(),o=(0,T.addQueryArgs)("https://yoa.st/webinar-intro-settings",s);e&&(0,A.createRoot)(e).render((0,B.jsx)(R.ThemeProvider,{theme:{isRtl:t},children:(0,B.jsx)($,{store:"yoast-seo/settings",url:o})}))})()}))})()})();