import{d as x}from"./vuex.esm-bundler.8589b2dd.js";import{A as w}from"./WebmasterTools.44dbfa20.js";import{C as U}from"./Blur.a27209d0.js";import{C as B}from"./Card.24f1a534.js";import{C as E}from"./ProBadge.bcf74c08.js";import{C as v}from"./SettingsRow.09a16661.js";import{C as S}from"./Index.a5b2ee90.js";import{_ as C,r as s,o as r,c as p,d as c,w as e,f as g,t as i,e as l,F as L,i as P,h as u,a as f}from"./_plugin-vue_export-helper.2d9794a3.js";import"./default-i18n.ab92175e.js";import"./_commonjsHelpers.f84db168.js";import"./WpTable.4d19dc46.js";import"./helpers.de7566d0.js";import"./RequiresUpdate.52f5acf2.js";import"./postContent.bb42e0a8.js";import"./index.02a5ed9a.js";import"./isArrayLikeObject.c492f682.js";import"./Caret.42a820e0.js";import"./cleanForSlug.62b08993.js";import"./constants.7044c894.js";import"./html.14f2a8b9.js";import"./Index.1fd8fc42.js";import"./MetaTag.efe1bd7b.js";import"./SaveChanges.bc66cd69.js";import"./Tooltip.ae0bcccb.js";import"./index.fd0fcee8.js";import"./Slide.cd756e61.js";import"./Row.5e452de4.js";const N={components:{CoreBlur:U,CoreCard:B,CoreProBadge:E,CoreSettingsRow:v,Cta:S},mixins:[w],data(){return{strings:{wpRoles:this.$t.__("WP Roles (Editor, Author)",this.$td),seoManagerRole:this.$t.__("SEO Manager Role",this.$td),seoEditorRole:this.$t.__("SEO Editor Role",this.$td),defaultSettings:this.$t.__("Default settings that just work",this.$td),granularControl:this.$t.__("Granular controls per role",this.$td),ctaButtonText:this.$t.__("Upgrade to Pro and Unlock Access Control",this.$td),ctaHeader:this.$t.sprintf(this.$t.__("Access Control is only available for licensed %1$s %2$s users.",this.$td),"AIOSEO","Pro")}}},computed:{getLiteRoles(){const o=this.getRoles;let n=1;for(;8>o.length;)o.push({label:this.$t.__("Custom Role",this.$td)+" "+n,name:"customRole"+n}),n++;return o}}},V={class:"aioseo-access-control-lite"},O={class:"toggle"};function D(o,n,$,R,t,m){const a=s("core-pro-badge"),_=s("base-toggle"),k=s("core-settings-row"),y=s("core-blur"),b=s("cta"),A=s("core-card");return r(),p("div",V,[c(A,{slug:"accessControl"},{header:e(()=>[g("span",null,i(t.strings.accessControl),1),c(a)]),tooltip:e(()=>[l(i(t.strings.tooltip),1)]),default:e(()=>[c(y,null,{default:e(()=>[(r(!0),p(L,null,P(m.getLiteRoles,d=>(r(),u(k,{key:d.name,name:d.label},{content:e(()=>[g("div",O,[c(_,{disabled:!0,modelValue:!0},{default:e(()=>[l(i(t.strings.useDefaultSettings),1)]),_:1})])]),_:2},1032,["name"]))),128))]),_:1}),c(b,{"feature-list":[t.strings.granularControl,t.strings.wpRoles,t.strings.seoManagerRole,t.strings.seoEditorRole],"cta-link":o.$links.getPricingUrl("access-control","access-control-upsell"),"button-text":t.strings.ctaButtonText,"learn-more-link":o.$links.getUpsellUrl("access-control",null,"home"),"align-top":""},{"header-text":e(()=>[l(i(t.strings.ctaHeader),1)]),description:e(()=>[l(i(t.strings.tooltip),1)]),_:1},8,["feature-list","cta-link","button-text","learn-more-link"])]),_:1})])}const h=C(N,[["render",D]]),M={components:{AccessControl:h,AccessControlLite:h},computed:{...x(["isUnlicensed"])}},T={class:"aioseo-access-control"};function F(o,n,$,R,t,m){const a=s("access-control",!0),_=s("access-control-lite");return r(),p("div",T,[o.isUnlicensed?f("",!0):(r(),u(a,{key:0})),o.isUnlicensed?(r(),u(_,{key:1})):f("",!0)])}const dt=C(M,[["render",F]]);export{dt as default};
