관리-도구
편집 파일: RequiredPlans.l7pjpdqj.js
import{i as l}from"./index.lqcu3hi3.js";import{a as n}from"./addons.ds3c4v6r.js";import{l as c}from"./license.md0nmssw.js";import{C as d}from"./Caret.g6s6s7gs.js";import"./translations.e22mvhfh.js";import{_ as p}from"./_plugin-vue_export-helper.oebm7xum.js";import{_ as s}from"./default-i18n.bz7purh4.js";import{v as f,o as h,k as _,l as m,x as g,t as o,a as q,b as F}from"./runtime-dom.esm-bundler.h3clfjuw.js";const a="all-in-one-seo-pack",y={setup(){return{licenseStore:l()}},components:{CoreAlert:d},props:{addon:String,coreFeature:{type:Array,default(){return[]}},addonFeature:{type:Array,default(){return[]}}},data(){return{strings:{thisFeatureRequires:s("This feature requires one of the following plans:",a),thisFeatureRequiresSingular:s("This feature requires the following plan:",a)}}},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 c.getPlansForFeature(r,t)}return n.currentPlans(this.addon)||[]}}};function P(r,t,S,i,x,e){const u=f("core-alert");return i.licenseStore.isUnlicensed||e.showAlert?(h(),_(u,{key:0,class:"aioseo-required-plans",type:"blue"},{default:m(()=>[g(o(e.requiredPlansString)+" ",1),q("strong",null,o(e.getRequiredPlans),1)]),_:1})):F("",!0)}const T=p(y,[["render",P]]);export{T as R};