import{e as i}from"./links.574d4fd4.js";import{a as n}from"./addons.f4a19c9a.js";import{l as u}from"./license.3fbd013a.js";import{C as l}from"./index.b1bbc091.js";import{x as c,o as d,k as p,l as h,D as _,t as s,a as f,b as g}from"./vue.runtime.esm-bundler.78401fbe.js";import{_ as m}from"./_plugin-vue_export-helper.58be9317.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 t=this.coreFeature[0]||this.addonFeature[0],r=this.coreFeature.length?typeof this.coreFeature[1]<"u"?this.coreFeature[1]:"":typeof this.addonFeature[1]<"u"?this.addonFeature[1]:"";return u.getPlansForFeature(t,r)}return n.currentPlans(this.addon)||[]}}};function y(t,r,F,a,P,e){const o=c("core-alert");return a.licenseStore.isUnlicensed||e.showAlert?(d(),p(o,{key:0,class:"aioseo-required-plans",type:"blue"},{default:h(()=>[_(s(e.requiredPlansString)+" ",1),f("strong",null,s(e.getRequiredPlans),1)]),_:1})):g("",!0)}const k=m(q,[["render",y]]);export{k as R};
