import{g as L,s as d}from"./index.nsvc8vqf.js";import{G as q,a as V}from"./Row.o0q8mn7y.js";import"./translations.lf9cwm9a.js";import{v as h,o as t,k as n,l as i,a as s,t as c,b as l,c as g,J as w,G as M,F as k,E as v,x as b,C as B}from"./runtime-dom.esm-bundler.h3clfjuw.js";import{_ as G}from"./_plugin-vue_export-helper.oebm7xum.js";import{_ as S}from"./default-i18n.hohxoesu.js";const _="all-in-one-seo-pack",N={emits:["update:separator"],setup(){return{settingsStore:L()}},components:{GridColumn:q,GridRow:V},props:{optionsSeparator:{type:String,required:!0},showMoreSlug:{type:String,required:!0}},data(){return{strings:{custom:S("Custom separator:",_),showMore:S("Show More",_),showLess:S("Show Less",_)},showMoreSeparators:!1,showMoreInitial:!0,customSeparator:null,separators:["–","»","›","‣","→","•","/","|"],moreSeparators:["-","—","«","←",">","≥","\","+","►"]}},watch:{showMoreSeparators(e){if(this.showMoreInitial){this.showMoreInitial=!1;return}this.settingsStore.toggleRadio({slug:this.showMoreSlug,value:e})},customSeparator(e){e!==null&&(this.$emit("update:separator",d(e)),this.separators.concat(this.moreSeparators).concat(this.decodedSeparators).concat(this.decodedMoreSeparators).includes(e)&&(this.customSeparator=null))}},computed:{hiddenSeparator(){return this.optionsSeparator===this.customSeparator||this.decodedMoreSeparators.includes(this.optionsSeparator)?this.optionsSeparator:null},decodedSeparators(){return this.separators.map(e=>d(e))},decodedMoreSeparators(){return this.moreSeparators.map(e=>d(e))},decodedCustomSeparator(){return d(this.hiddenSeparator)}},methods:{setSeparator(e){this.customSeparator=null,this.$emit("update:separator",e)}},mounted(){this.showMoreSeparators=this.settingsStore.settings.toggledRadio[this.showMoreSlug],this.customSeparator=this.decodedSeparators.concat(this.decodedMoreSeparators).includes(this.optionsSeparator)?null:this.optionsSeparator}},R={class:"active separator"},z=["onClick"],A=["onClick"],I={class:"show-more"},E={class:"custom-separator"},F={class:"show-more"};function U(e,u,f,D,r,a){const p=h("grid-column"),y=h("base-input"),C=h("grid-row");return t(),n(C,{class:"aioseo-separators"},{default:i(()=>[!r.showMoreSeparators&&a.hiddenSeparator?(t(),n(p,{key:0,xs:"2",sm:"1"},{default:i(()=>[s("div",R,c(a.decodedCustomSeparator),1)]),_:1})):l("",!0),(t(!0),g(k,null,w(a.decodedSeparators,(o,m)=>(t(),n(p,{xs:"2",sm:"1",key:m},{default:i(()=>[s("div",{onClick:x=>a.setSeparator(o),class:M(["separator",{active:f.optionsSeparator===o}])},c(o),11,z)]),_:2},1024))),128)),r.showMoreSeparators?(t(!0),g(k,{key:1},w(a.decodedMoreSeparators,(o,m)=>(t(),n(p,{xs:"2",sm:"1",key:`m_${m}`},{default:i(()=>[s("div",{onClick:x=>a.setSeparator(o),class:M(["separator",{active:f.optionsSeparator===o}])},c(o),11,A)]),_:2},1024))),128)):l("",!0),r.showMoreSeparators?l("",!0):(t(),n(p,{key:2,xs:a.hiddenSeparator?"3":"4"},{default:i(()=>[s("div",I,[s("a",{href:"#",onClick:u[0]||(u[0]=v(o=>r.showMoreSeparators=!0,["prevent"]))},c(r.strings.showMore)+"… ",1)])]),_:1},8,["xs"])),r.showMoreSeparators?(t(),n(p,{key:3,class:"custom-separator-col"},{default:i(()=>[s("div",E,[b(c(r.strings.custom)+" ",1),B(y,{spellcheck:!1,size:"medium",modelValue:r.customSeparator,"onUpdate:modelValue":u[1]||(u[1]=o=>r.customSeparator=o)},null,8,["modelValue"])])]),_:1})):l("",!0),r.showMoreSeparators?(t(),n(p,{key:4,xs:"2"},{default:i(()=>[s("div",F,[s("a",{href:"#",onClick:u[2]||(u[2]=v(o=>r.showMoreSeparators=!1,["prevent"]))},c(r.strings.showLess)+"… ",1)])]),_:1})):l("",!0)]),_:1})}const O=G(N,[["render",U]]);export{O as C}; import{g as q,c as V}from"./default-i18n.hohxoesu.js";var k={exports:{}};function D(){}D.prototype={on:function(o,i,r){var p=this.e||(this.e={});return(p[o]||(p[o]=[])).push({fn:i,ctx:r}),this},once:function(o,i,r){var p=this;function h(){p.off(o,h),i.apply(r,arguments)}return h._=i,this.on(o,h,r)},emit:function(o){var i=[].slice.call(arguments,1),r=((this.e||(this.e={}))[o]||[]).slice(),p=0,h=r.length;for(p;p"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var c,d=O(a);return c=s?(c=O(this).constructor,Reflect.construct(d,arguments,c)):d.apply(this,arguments),d=this,!(c=c)||A(c)!=="object"&&typeof c!="function"?function(v){if(v!==void 0)return v;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(d):c}}function O(a){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(s){return s.__proto__||Object.getPrototypeOf(s)})(a)}function N(a,s){if(a="data-clipboard-".concat(a),s.hasAttribute(a))return s.getAttribute(a)}var H=function(){(function(f,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(b&&b.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),b&&j(f,b)})(v,l());var a,s,c,d=I(v);function v(f,b){var _;return function(B){if(!(B instanceof v))throw new TypeError("Cannot call a class as a function")}(this),(_=d.call(this)).resolveOptions(b),_.listenClick(f),_}return a=v,c=[{key:"copy",value:function(f){var b=1"u"||Element.prototype.matches||((t=Element.prototype).matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector),n.exports=function(e,l){for(;e&&e.nodeType!==9;){if(typeof e.matches=="function"&&e.matches(l))return e;e=e.parentNode}}},438:function(n,t,e){var l=e(828);function m(u,y,g,w,x){var E=(function(S,T,A,C){return function(j){j.delegateTarget=l(j.target,T),j.delegateTarget&&C.call(S,j)}}).apply(this,arguments);return u.addEventListener(g,E,x),{destroy:function(){u.removeEventListener(g,E,x)}}}n.exports=function(u,y,g,w,x){return typeof u.addEventListener=="function"?m.apply(null,arguments):typeof g=="function"?m.bind(null,document).apply(null,arguments):(typeof u=="string"&&(u=document.querySelectorAll(u)),Array.prototype.map.call(u,function(E){return m(E,y,g,w,x)}))}},879:function(n,t){t.node=function(e){return e!==void 0&&e instanceof HTMLElement&&e.nodeType===1},t.nodeList=function(e){var l=Object.prototype.toString.call(e);return e!==void 0&&(l==="[object NodeList]"||l==="[object HTMLCollection]")&&"length"in e&&(e.length===0||t.node(e[0]))},t.string=function(e){return typeof e=="string"||e instanceof String},t.fn=function(e){return Object.prototype.toString.call(e)==="[object Function]"}},370:function(n,t,e){var l=e(879),m=e(438);n.exports=function(u,y,g){if(!u&&!y&&!g)throw new Error("Missing required arguments");if(!l.string(y))throw new TypeError("Second argument must be a String");if(!l.fn(g))throw new TypeError("Third argument must be a Function");if(l.node(u))return T=y,A=g,(S=u).addEventListener(T,A),{destroy:function(){S.removeEventListener(T,A)}};if(l.nodeList(u))return w=u,x=y,E=g,Array.prototype.forEach.call(w,function(C){C.addEventListener(x,E)}),{destroy:function(){Array.prototype.forEach.call(w,function(C){C.removeEventListener(x,E)})}};if(l.string(u))return u=u,y=y,g=g,m(document.body,u,y,g);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var w,x,E,S,T,A}},817:function(n){n.exports=function(t){var e,l=t.nodeName==="SELECT"?(t.focus(),t.value):t.nodeName==="INPUT"||t.nodeName==="TEXTAREA"?((e=t.hasAttribute("readonly"))||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),e||t.removeAttribute("readonly"),t.value):(t.hasAttribute("contenteditable")&&t.focus(),l=window.getSelection(),(e=document.createRange()).selectNodeContents(t),l.removeAllRanges(),l.addRange(e),l.toString());return l}},279:function(n){function t(){}t.prototype={on:function(e,l,m){var u=this.e||(this.e={});return(u[e]||(u[e]=[])).push({fn:l,ctx:m}),this},once:function(e,l,m){var u=this;function y(){u.off(e,y),l.apply(m,arguments)}return y._=l,this.on(e,y,m)},emit:function(e){for(var l=[].slice.call(arguments,1),m=((this.e||(this.e={}))[e]||[]).slice(),u=0,y=m.length;u{const i=/[\u203C\u2049\u20E3\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2300\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638\u2639\u263A\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267B\u267F\u2692\u2693\u2694\u2696\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753\u2754\u2755\u2757\u2763\u2764\u2795\u2796\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05\u2B06\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]/,r=/[\uDC00-\uDFFF]/;return o?r.test(o)||i.test(o):!1},M=o=>!o||o.nodeName!=="IMG"||o.className.indexOf("emoji")===-1||!X(o.getAttribute("alt"))?null:o,R=o=>{o.forEach(i=>{const r=document.createTextNode(i.getAttribute("alt"));i.parentNode.classList.add("wp-exclude-emoji"),i.parentNode.replaceChild(r,i)})},J=o=>{!o||o.nodeName!=="DIV"||o.className.indexOf("ql-editor")===-1||o.querySelectorAll(".ql-editor > p").forEach(i=>{i.classList.add("wp-exclude-emoji")})},K=()=>{const o=n=>{let t=n.length,e,l,m;const u=[];for(;t--;)for(e=n[t].addedNodes,l=e.length;l--;){m=e[l];const y=M(m);y&&(J(m),u.push(y))}R(u)},i=new MutationObserver(o);document.querySelectorAll(".aioseo-app, .vue-portal-target").forEach(n=>{i.observe(n,{childList:!0,subtree:!0})});const p=document.querySelectorAll(".aioseo-app img.emoji"),h=[];p.forEach(n=>{const t=M(n);t&&h.push(t)}),R(h)};document.addEventListener("DOMContentLoaded",K);window.aioseo=window.aioseo||{};window.aioseoBus=window.aioseoBus||{$on:(...o)=>F.on(...o),$once:(...o)=>F.once(...o),$off:(...o)=>F.off(...o),$emit:(...o)=>F.emit(...o)};window.__aioseoDynamicImportPreload__=o=>`${window.aioseo.urls.publicPath||"/"}dist/Lite/assets/${o}`;const Z=o=>(o.use(Y),o);export{F as e,Z as l}; import{_ as k}from"./_plugin-vue_export-helper.oebm7xum.js";import{o as p,c as v,v as i,k as S,l as r,a as s,x as l,t as a,C as t,u as m,b}from"./runtime-dom.esm-bundler.h3clfjuw.js";import{e as C,i as M,u as w}from"./index.nsvc8vqf.js";import"./translations.lf9cwm9a.js";import{_ as o,a as R}from"./default-i18n.hohxoesu.js";import{G as A}from"./constants.fxxegv78.js";import{C as N}from"./Blur.f3nyx4yc.js";import{C as V}from"./SettingsRow.1l1umqn0.js";import{S as P}from"./External.h5te4wqm.js";import{B as D}from"./RadioToggle.h9afcyfi.js";import{R as H}from"./RequiredPlans.e7ak5151.js";import{C as O}from"./Card.n68aovsj.js";import{C as U}from"./ProBadge.ab6jhp8x.js";import{C as E}from"./Index.lvccx76i.js";import{u as F}from"./AddonConditions.lmddpmma.js";import"./helpers.fdpg7vgg.js";import"./Row.o0q8mn7y.js";import"./addons.foby19s7.js";import"./upperFirst.mzmrvvb6.js";import"./_stringToArray.mpukyt2g.js";import"./toString.g0kcp64r.js";import"./license.bcd45a0t.js";import"./Caret.hnvbzqgq.js";import"./Tooltip.jx4casvt.js";import"./index.h076fivy.js";import"./Slide.dop8j51m.js";const q={};function X(c,_){return p(),v("div")}const z=k(q,[["render",X]]),n="all-in-one-seo-pack",B=()=>({strings:{customFieldSupport:o("Custom Field Support",n),exclude:o("Exclude Pages/Posts",n),video:o("Video Sitemap",n),description:o("The Video Sitemap generates an XML Sitemap for video content on your site. Search engines use this information to display rich snippet information in search results.",n),extendedDescription:o("The Video Sitemap works in much the same way as the XML Sitemap module, it generates an XML Sitemap specifically for video content on your site. Search engines use this information to display rich snippet information in search results.",n),enableSitemap:o("Enable Sitemap",n),openSitemap:o("Open Video Sitemap",n),noIndexDisplayed:o("Noindexed content will not be displayed in your sitemap.",n),doYou404:o("Do you get a blank sitemap or 404 error?",n),ctaButtonText:o("Unlock Video Sitemaps",n),ctaHeader:R(o("Video Sitemaps is a %1$s Feature",n),"PRO"),linksPerSitemap:o("Links Per Sitemap",n),maxLinks:o("Allows you to specify the maximum number of posts in a sitemap (up to 50,000).",n),enableSitemapIndexes:o("Enable Sitemap Indexes",n)}}),Y={setup(){const{strings:c}=B();return{strings:c,GLOBAL_STRINGS:A,links:C}},components:{CoreBlur:N,CoreSettingsRow:V,SvgExternal:P,BaseRadioToggle:D}},j={class:"aioseo-settings-row aioseo-section-description"},J=["innerHTML"],K={class:"aioseo-sitemap-preview"},Q={class:"aioseo-description"},W=s("br",null,null,-1),Z=["innerHTML"],$={class:"aioseo-description"},ee=["innerHTML"],oe={class:"aioseo-description"},ne=["innerHTML"];function te(c,_,g,e,f,y){const u=i("base-toggle"),d=i("core-settings-row"),h=i("svg-external"),L=i("base-button"),x=i("base-radio-toggle"),G=i("base-input"),I=i("core-blur");return p(),S(I,null,{default:r(()=>[s("div",j,[l(a(e.strings.extendedDescription)+" ",1),s("span",{innerHTML:e.links.getDocLink(e.GLOBAL_STRINGS.learnMore,"videoSitemaps",!0)},null,8,J)]),t(d,{name:e.strings.enableSitemap},{content:r(()=>[t(u,{modelValue:!0})]),_:1},8,["name"]),t(d,{name:e.GLOBAL_STRINGS.preview},{content:r(()=>[s("div",K,[t(L,{size:"medium",type:"blue"},{default:r(()=>[t(h),l(" "+a(e.strings.openSitemap),1)]),_:1})]),s("div",Q,[l(a(e.strings.noIndexDisplayed)+" ",1),W,l(" "+a(e.strings.doYou404)+" ",1),s("span",{innerHTML:e.links.getDocLink(e.GLOBAL_STRINGS.learnMore,"blankSitemap",!0)},null,8,Z)])]),_:1},8,["name"]),t(d,{name:e.strings.enableSitemapIndexes},{content:r(()=>[t(x,{name:"sitemapIndexes",options:[{label:e.GLOBAL_STRINGS.disabled,value:!1,activeClass:"dark"},{label:e.GLOBAL_STRINGS.enabled,value:!0}]},null,8,["options"]),s("div",$,[l(a(e.strings.sitemapIndexes)+" ",1),s("span",{innerHTML:e.links.getDocLink(e.GLOBAL_STRINGS.learnMore,"sitemapIndexes",!0)},null,8,ee)])]),_:1},8,["name"]),t(d,{name:e.strings.linksPerSitemap},{content:r(()=>[t(G,{class:"aioseo-links-per-site",type:"number",size:"medium",min:1,max:5e4}),s("div",oe,[l(a(e.strings.maxLinks)+" ",1),s("span",{innerHTML:e.links.getDocLink(e.GLOBAL_STRINGS.learnMore,"maxLinks",!0)},null,8,ne)])]),_:1},8,["name"])]),_:1})}const ie=k(Y,[["render",te]]),se={setup(){const{strings:c}=B();return{licenseStore:M(),rootStore:w(),links:C,strings:c}},components:{Blur:ie,RequiredPlans:H,CoreCard:O,CoreProBadge:U,Cta:E}},re={class:"aioseo-video-sitemap-lite"};function ae(c,_,g,e,f,y){const u=i("core-pro-badge"),d=i("blur"),h=i("required-plans"),L=i("cta"),x=i("core-card");return p(),v("div",re,[t(x,{slug:"videoSitemap",noSlide:!0},{header:r(()=>[s("span",null,a(e.strings.video),1),t(u)]),default:r(()=>[t(d),t(L,{"feature-list":[e.strings.customFieldSupport,e.strings.exclude],"cta-link":e.links.getPricingUrl("video-sitemap","video-sitemap-upsell"),"button-text":e.strings.ctaButtonText,"learn-more-link":e.links.getUpsellUrl("video-sitemap",null,e.rootStore.isPro?"pricing":"liteUpgrade"),"hide-bonus":!e.licenseStore.isUnlicensed},{"header-text":r(()=>[l(a(e.strings.ctaHeader),1)]),description:r(()=>[t(h,{addon:"aioseo-video-sitemap"}),l(" "+a(e.strings.description),1)]),_:1},8,["feature-list","cta-link","button-text","learn-more-link","hide-bonus"])]),_:1})])}const T=k(se,[["render",ae]]),ce={class:"aioseo-video-sitemap"},Ve={__name:"VideoSitemap",setup(c){const{shouldShowActivate:_,shouldShowLite:g,shouldShowMain:e,shouldShowUpdate:f}=F({addonSlug:"aioseo-video-sitemap"});return(y,u)=>(p(),v("div",ce,[m(e)?(p(),S(m(T),{key:0})):b("",!0),m(f)||m(_)?(p(),S(m(z),{key:1})):b("",!0),m(g)?(p(),S(m(T),{key:2})):b("",!0)]))}};export{Ve as default}; import{Y as p,h as s}from"./js/runtime-dom.esm-bundler.DKw-RQqs.js";import{c as a,b as d}from"./js/vue-router.CGjDmB5N.js";import{l as c}from"./js/index.9ItM203B.js";import{l}from"./js/index.Olu2afa7.js";import{l as u}from"./js/index.3BJ3ZnWB.js";import{l as n,b as f,i as g,C as v}from"./js/index.ByF2aI-G.js";import{i as _}from"./js/isEmpty.CU5xp7vT.js";import"./js/translations.Ur07Kmot.js";import{e as h}from"./js/elemLoaded.COgXIo-H.js";import{_ as w}from"./js/default-i18n.DvLqo3S3.js";import{_ as m}from"./js/App.CrP71n11.js";import{m as y}from"./js/postSlug.Bl0Z6T8y.js";import"./js/Caret.DMa7g0j7.js";import"./js/_plugin-vue_export-helper.BN1snXvA.js";import"./js/helpers.yjC6K_2A.js";import"./js/_getTag.KnvRqur7.js";/* empty css */import"./js/LicenseKeyBar.twKxq9OX.js";import"./js/ScrollTo.Bh2oF6Lr.js";import"./js/params.B3T1WKlC.js";import"./js/LogoGear.Cp4EitBg.js";import"./js/allowed.DPI64kEG.js";import"./js/constants.DfsCWbZk.js";import"./js/SettingsRow.Ch1FEDlp.js";import"./js/Row.D0941SYu.js";import"./js/Checkbox.BAIONgTE.js";import"./js/Checkmark.BedAg8BV.js";import"./js/Tabs.BGx54iMB.js";import"./js/TruSeoScore.D1tEO-2v.js";import"./js/ProBadge.BJ3spTo5.js";import"./js/Information.CzCa0jo7.js";import"./js/Ellipse.Bgc7-2f7.js";import"./js/Slide.CdVEnD7S.js";import"./js/Index.CzfUkh0l.js";import"./js/MaxCounts.B8I2oSt9.js";import"./js/Tags.CWcNgqQw.js";import"./js/debounce.Dn172j5X.js";import"./js/toNumber.DaBXB5a2.js";import"./js/_baseTrim.BYZhh0MR.js";import"./js/toString.Dc7QMRQR.js";import"./js/toFinite.9qh1_GEv.js";import"./js/Tooltip.B0brI66q.js";import"./js/Statistics.jbfxzxBa.js";import"./js/Plus.CnHRD0g1.js";import"./js/Eye.CiQHQKdt.js";import"./js/RadioToggle.Cv8la4G_.js";import"./js/GoogleSearchPreview.CgoMblv2.js";import"./js/HtmlTagsEditor.CJg9npyw.js";import"./js/Editor.Bq1LihFR.js";import"./js/isEqual.DPyFnjxk.js";import"./js/_baseIsEqual.BLPD4oRg.js";import"./js/_baseClone.B3PqkIxk.js";import"./js/_arrayEach.Fgt6pfHj.js";import"./js/UnfilteredHtml.CeQlPW48.js";import"./js/popup.6pJEdp0g.js";import"./js/license.4E_gI5OR.js";import"./js/upperFirst.BjBqmCj-.js";import"./js/_stringToArray.DnK4tKcY.js";import"./js/Mobile.BGCRGYNz.js";import"./js/vue3-apexcharts.BZ7BHdFD.js";import"./js/ConnectCta.DJ7dYBMH.js";import"./js/GoogleSearchConsole.DbaSUNjY.js";import"./js/Index.BQLC1nYH.js";import"./js/Blur.D3p3Plqi.js";import"./js/Graph.iPlX-_f9.js";import"./js/numbers.D-q54OtM.js";import"./js/WpTable.C8q3ixyf.js";import"./js/Table.C8lx_e6O.js";import"./js/RequiredPlans.Cd-RNSMK.js";import"./js/addons.C_QAj7aO.js";import"./js/PostTypes.DQr7JgPS.js";import"./js/External.CWqixdBI.js";import"./js/InternalOutbound.BoBKyiz1.js";import"./js/Image.F1jIJlNa.js";import"./js/FacebookPreview.CZDMCXvJ.js";import"./js/Img.DHlhwBIb.js";import"./js/Profile.DztRk85u.js";import"./js/ImageUploader.Bc4ull7_.js";import"./js/TwitterPreview.DpTsW2iJ.js";import"./js/Book.CHC5BfR0.js";import"./js/Settings.BfLuRGxr.js";import"./js/Build.jw9J0CJz.js";import"./js/Redirects.DZ4nDRt5.js";import"./js/Index.D63mawWP.js";import"./js/JsonValues.CjR5TkFn.js";import"./js/External.DwsNMWba.js";import"./js/escapeRegExp.Cr4ECp1J.js";import"./js/Exclamation.QdVEhIVR.js";import"./js/Gear.CdOSWQ3A.js";import"./js/date.DgiqPou0.js";import"./js/DatePicker.Cf1_1YyU.js";import"./js/Calendar.DfOxy3oe.js";import"./js/pick.YiTG4DgQ.js";import"./js/_baseSet.Bbqt6CgN.js";import"./js/Card.Bqq4cvaT.js";import"./js/Upsell.C9Lkxwsu.js";import"./js/metabox.SRNlGbGk.js";import"./js/cleanForSlug.DaL6KzBn.js";const b=()=>{n();const t=f();_(t.currentPost)||t.saveCurrentPost(t.currentPost).then(()=>{const o=g(),r=v();o.isUnlicensed||r.fetch()})},S=()=>{document.getElementById("seedprod-builder-save").addEventListener("click",b)},i={id:"aioseo-limit-modified-date-seedprod",param:"aioseo_limit_modified_date",event:"save-limit-modified-date",title:w("Save (Don't Modify Date)","all-in-one-seo-pack"),svg:''},L=t=>{delete t.$children[0].$data.shared.settings[i.param];const o=document.createElement("button");o.id=i.id,o.textContent=i.title,o.className="sp-btn sp-font-semibold",o.type="button",o.innerHTML=`${i.svg}${i.title}`,o.addEventListener("click",()=>{t.$children[0].$data.shared.settings[i.param]=!0,document.getElementById("seedprod-builder-save").click(),setTimeout(()=>delete t.$children[0].$data.shared.settings[i.param])}),h("#seedprod-builder-save-dropdown-menu","seedprodBuilderSaveDropdownMenu"),document.addEventListener("animationstart",r=>{r.animationName==="seedprodBuilderSaveDropdownMenu"&&r.target.insertAdjacentElement("afterbegin",o)},{passive:!0})},E=t=>{t.$watch("$route.name",o=>{if(o==="setup_settings_seo"){const r=a({history:d(),routes:[{path:"/",component:m}]});let e=p({name:"Standalone/SeedProd",data(){return{tableContext:window.aioseo.currentPost.context,screenContext:"metabox"}},mounted:()=>{setTimeout(y)},render:()=>s(m)});e=c(e),e=l(e),e=u(e),e.use(r),r.app=e,n(e,r),e.mount("#seedprod-preview-wrapper .seedprod-settings-page-wrapper"),document.querySelector(".seedprod-settings-page-wrapper").classList.remove("seedprod-settings-page-wrapper")}},{immediate:!0})},C=()=>{const t=document.getElementById("aioseo-seedprod-common-css");t&&t.setAttribute("href",t.getAttribute("data-href"))},$=t=>{E(t),C(),S(),L(t)};document.addEventListener("DOMContentLoaded",()=>{var t;(t=window.seedprod_app)!=null&&t._isMounted&&$(window.seedprod_app)}); import{b as i}from"./_baseTrim.BYZhh0MR.js";import{i as o}from"./helpers.yjC6K_2A.js";import{i as c}from"./toString.Dc7QMRQR.js";var s=NaN,e=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,a=/^0o[0-7]+$/i,p=parseInt;function _(r){if(typeof r=="number")return r;if(c(r))return s;if(o(r)){var n=typeof r.valueOf=="function"?r.valueOf():r;r=o(n)?n+"":n}if(typeof r!="string")return r===0?r:+r;r=i(r);var t=f.test(r);return t||a.test(r)?p(r.slice(2),t?2:8):e.test(r)?s:+r}export{_ as t};