import{a,b as c,o as b}from"./index.684c656d.js";import{S as l}from"./LogoGear.ffb86d6f.js";import"./translations.d159963e.js";import{_ as u}from"./_plugin-vue_export-helper.eefbdd86.js";import{s as e,_ as s}from"./default-i18n.20001971.js";import{y as d,o as _,d as p,e as t,H as g}from"./runtime-dom.esm-bundler.d8b05b6d.js";const i="all-in-one-seo-pack",k={setup(){return{rootStore:a()}},components:{SvgAioseoLogoGear:l},data(){return{strings:{boldText:e("<strong>%1$s %2$s</strong>","AIOSEO",this.rootStore.isPro?"Pro":""),linkText:s("Click here to learn more",i)}}},computed:{link(){return e('<strong><a href="%1$s" target="_blank" class="text-white">%2$s</a></strong>',c.getDocUrl("restApi"),this.strings.linkText)},upgradeText(){return e(s("%1$s relies on the WordPress Rest API and your site might have it disabled. %2$s.",i),this.strings.boldText,this.link)}},mounted(){document.body.classList.add("aioseo-has-bar")},beforeUnmount(){document.body.classList.remove("aioseo-has-bar")}},y={class:"aioseo-api-bar"},T={class:"upgrade-text"},L=["innerHTML"];function v(m,h,x,$,f,n){const r=d("svg-aioseo-logo-gear");return _(),p("div",y,[t("div",T,[g(r),t("div",{innerHTML:n.upgradeText},null,8,L)])])}const R=u(k,[["render",v]]),o="aioseo-pro",S={setup(){return{licenseStore:b(),rootStore:a()}},components:{SvgAioseoLogoGear:l},data(){return{strings:{boldText:e("<strong>%1$s %2$s</strong>","All in One SEO","Pro"),linkText:s("license key now",o),renewLinkText:s("Renew your license now",o)}}},computed:{link(){return e('<strong><a href="%1$s" class="text-white">%2$s</a></strong>',this.rootStore.aioseo.data.isNetworkAdmin?this.rootStore.aioseo.urls.aio.networkSettings:this.rootStore.aioseo.urls.aio.settings,this.strings.linkText)},renewLink(){return e('<strong><a href="%1$s" class="text-white" target="_blank">%2$s</a></strong>',c.utmUrl("expired-license-key-bar","","https://aioseo.com/account/downloads/"),this.strings.renewLinkText)},upgradeText(){return this.licenseStore.license.isExpired?e(s("You're using %1$s but your license has expired. %2$s.",o),this.strings.boldText,this.renewLink):e(s("You're using %1$s but no license key has been entered. Add your %2$s.",o),this.strings.boldText,this.link)}},mounted(){document.body.classList.add("aioseo-has-bar")},beforeUnmount(){document.body.classList.remove("aioseo-has-bar")}},w={class:"aioseo-license-key-bar"},A={class:"upgrade-text"},P=["innerHTML"];function B(m,h,x,$,f,n){const r=d("svg-aioseo-logo-gear");return _(),p("div",w,[t("div",A,[g(r),t("div",{innerHTML:n.upgradeText},null,8,P)])])}const N=u(S,[["render",B]]);export{N as C,R as a};
