Sid Gifari File Manager
🏠 Root
/
home
/
caldereriajp
/
public_html
/
wp-content
/
plugins
/
all-in-one-seo-pack
/
dist
/
Lite
/
assets
/
js
/
Editing: RequiredPlans.cbd60891.js
import{e as i}from"./links.96235554.js";import{a as n}from"./addons.8f1a852a.js";import{l as u}from"./license.2537a586.js";import{C as l}from"./index.c885ab17.js";import{r as c,o as d,d as p,w as h,g as f,t as s,a as _,b as g}from"./vue.runtime.esm-bundler.a49acf4f.js";import{_ as m}from"./_plugin-vue_export-helper.bd508f36.js";const F={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 q(r,t,y,a,P,e){const o=c("core-alert");return a.licenseStore.isUnlicensed||e.showAlert?(d(),p(o,{key:0,type:"red"},{default:h(()=>[f(s(e.requiredPlansString)+" ",1),_("strong",null,s(e.getRequiredPlans),1)]),_:1})):g("",!0)}const $=m(F,[["render",q]]);export{$ as R};
Save
Cancel