import{g as o,r}from"./params.597cd0f5.js";import{S as n}from"./LogoGear.16108a75.js";import{n as i}from"./_plugin-vue2_normalizer.61652a7c.js";const v={mounted(){if(o()["aioseo-scroll"]&&setTimeout(()=>{this.$scrollTo(`#${o()["aioseo-scroll"]}`,{offset:-130,container:this.scrollContainer||"body"}),r("aioseo-scroll")},this.scrollTimeout||500),o()["aioseo-highlight"]){const e=o()["aioseo-scroll"]?this.scrollAndHighlightTimeout||1500:this.highlightTimeout||500;setTimeout(()=>{const s=document.querySelectorAll(`#${o()["aioseo-highlight"].replace(/,/g,", #").replace(/%2C/ig,", #")}`);s.length&&s.forEach(t=>{t.classList.add("aioseo-row-highlight"),setTimeout(()=>{t.classList.remove("aioseo-row-highlight")},1500)}),r("aioseo-highlight")},e)}}};const a={components:{SvgAioseoLogoGear:n},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")},beforeDestroy(){document.body.classList.remove("aioseo-has-bar")}};var l=function(){var s=this,t=s._self._c;return t("div",{staticClass:"aioseo-api-bar"},[t("div",{staticClass:"upgrade-text"},[t("svg-aioseo-logo-gear"),t("div",{domProps:{innerHTML:s._s(s.upgradeText)}})],1)])},c=[],u=i(a,l,c,!1,null,null,null,null);const $=u.exports,_={};var h=function(){var s=this,t=s._self._c;return t("div")},g=[],m=i(_,h,g,!1,null,null,null,null);const y=m.exports;export{$ as C,v as S,y as a};
