import{C as a}from"./index.fae5bbc8.js";import{c as o}from"./vuex.esm-bundler.55d3d5b3.js";import{_ as i,r as u,b as l,w as c,f as d,o as h,y as p,t as n,a as f}from"./_plugin-vue_export-helper.a81c6319.js";const _={components:{CoreAlert:a},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:{...o(["isUnlicensed"]),requiredPlansString(){return 1<this.requiredPlans.length?this.strings.thisFeatureRequires:this.strings.thisFeatureRequiresSingular},getRequiredPlans(){return this.requiredPlans.join(", ")},showAlert(){return this.$addons.requiresUpgrade(this.addon)&&this.requiredPlans.length},requiredPlans(){if(this.coreFeature.length||this.addonFeature.length){const e=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 this.$license.getPlansForFeature(this.$aioseo,e,r)}return this.$addons.currentPlans(this.addon)||[]}}};function g(e,r,m,y,F,t){const s=u("core-alert");return e.isUnlicensed||t.showAlert?(h(),l(s,{key:0,type:"red"},{default:c(()=>[p(n(t.requiredPlansString)+" ",1),f("strong",null,n(t.getRequiredPlans),1)]),_:1})):d("",!0)}const $=i(_,[["render",g]]);export{$ as R};
