import{C as a}from"./index.fd0fcee8.js";import{d as o}from"./vuex.esm-bundler.8589b2dd.js";import{_ as i,h as u,w as l,a as c,r as d,o as h,e as p,t as n,f}from"./_plugin-vue_export-helper.2d9794a3.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,F,q,t){const s=d("core-alert");return e.isUnlicensed||t.showAlert?(h(),u(s,{key:0,type:"red"},{default:l(()=>[p(n(t.requiredPlansString)+" ",1),f("strong",null,n(t.getRequiredPlans),1)]),_:1})):c("",!0)}const $=i(_,[["render",g]]);export{$ as R};
