import{g as i}from"./links.w575jfOL.js";import{a as n}from"./addons.CJ8lJt9v.js";import{l as u}from"./license.BWlasdzY.js";import{C as l}from"./Caret.B8YmKvEY.js";import{_ as c}from"./_plugin-vue_export-helper.BN1snXvA.js";import{v as d,o as p,k as h,l as f,x as _,t as s,a as g,b as m}from"./runtime-dom.esm-bundler.CWn9hmRK.js";const q={setup(){return{licenseStore:i()}},components:{CoreAlert:l},props:{addon:String,coreFeature:{type:Array,default(){return[]}},addonFeature:{type:Array,default(){return[]}}},data(){return{strings:{thisFeatureRequires:this.$t.__("This feature requires one of the following plans:",this.$td),thisFeatureRequiresSingular:this.$t.__("This feature requires the following plan:",this.$td)}}},computed:{requiredPlansString(){return 1<this.requiredPlans.length?this.strings.thisFeatureRequires:this.strings.thisFeatureRequiresSingular},getRequiredPlans(){return this.requiredPlans.join(", ")},showAlert(){return n.requiresUpgrade(this.addon)&&this.requiredPlans.length},requiredPlans(){if(this.coreFeature.length||this.addonFeature.length){const r=this.coreFeature[0]||this.addonFeature[0],t=this.coreFeature.length?typeof this.coreFeature[1]<"u"?this.coreFeature[1]:"":typeof this.addonFeature[1]<"u"?this.addonFeature[1]:"";return u.getPlansForFeature(r,t)}return n.currentPlans(this.addon)||[]}}};function F(r,t,y,a,P,e){const o=d("core-alert");return a.licenseStore.isUnlicensed||e.showAlert?(p(),h(o,{key:0,class:"aioseo-required-plans",type:"blue"},{default:f(()=>[_(s(e.requiredPlansString)+" ",1),g("strong",null,s(e.getRequiredPlans),1)]),_:1})):m("",!0)}const k=c(q,[["render",F]]);export{k as R};
