import{g as l,r as c}from"./params.597cd0f5.js";import{S as d}from"./LogoGear.e7086274.js";import{_ as u,r as p,c as g,a as h,d as m,o as _}from"./_plugin-vue_export-helper.a81c6319.js";const C={mounted(){var i,n;const t=l()["aioseo-scroll"]||((i=history.state)==null?void 0:i.scroll);t&&setTimeout(()=>{var s;this.$scrollTo(`#${t}`,{offset:-130,container:this.scrollContainer||"body"}),c("aioseo-scroll"),(s=history.state)==null||delete s.scroll},this.scrollTimeout||500);const e=l()["aioseo-highlight"]||((n=history.state)==null?void 0:n.highlight);if(e){const s=t?this.scrollAndHighlightTimeout||1500:this.highlightTimeout||500;setTimeout(()=>{var r;const o=document.querySelectorAll(`#${e.replace(/,/g,", #").replace(/%2C/ig,", #")}`);o.length&&o.forEach(a=>{a.classList.add("aioseo-row-highlight"),setTimeout(()=>{a.classList.remove("aioseo-row-highlight")},1500)}),(r=history.state)==null||delete r.highlight,c("aioseo-highlight")},s)}}};const f={components:{SvgAioseoLogoGear:d},data(){return{strings:{boldText:this.$t.sprintf("<strong>%1$s %2$s</strong>","AIOSEO",this.$isPro?"Pro":""),linkText:this.$t.__("Click here to learn more",this.$td)}}},computed:{link(){return this.$t.sprintf('<strong><a href="%1$s" target="_blank" class="text-white">%2$s</a></strong>',this.$links.getDocUrl("restApi"),this.strings.linkText)},upgradeText(){return this.$t.sprintf(this.$t.__("%1$s relies on the WordPress Rest API and your site might have it disabled. %2$s.",this.$td),this.strings.boldText,this.link)}},mounted(){document.body.classList.add("aioseo-has-bar")},beforeUnmount(){document.body.classList.remove("aioseo-has-bar")}},$={class:"aioseo-api-bar"},y={class:"upgrade-text"},x=["innerHTML"];function T(t,e,i,n,s,o){const r=p("svg-aioseo-logo-gear");return _(),g("div",$,[h("div",y,[m(r),h("div",{innerHTML:o.upgradeText},null,8,x)])])}const P=u(f,[["render",T]]),v={};function A(t,e){return _(),g("div")}const B=u(v,[["render",A]]);export{P as C,C as S,B as a};
