관리-도구
편집 파일: AccessControl.kn3uxqfb.js
import{u as v,r as x,e as A,i as B}from"./index.nsvc8vqf.js";import"./translations.lf9cwm9a.js";import{a as r,_ as e}from"./default-i18n.hohxoesu.js";import{f as k,v as S,o as u,c as C,C as d,l,a as R,t as p,u as t,x as g,F as w,J as U,k as y,b as $}from"./runtime-dom.esm-bundler.h3clfjuw.js";import{C as L}from"./Blur.f3nyx4yc.js";import{C as P}from"./Card.n68aovsj.js";import{C as M}from"./ProBadge.ab6jhp8x.js";import{C as N}from"./SettingsRow.1l1umqn0.js";import{C as D}from"./Index.lvccx76i.js";import{_ as V}from"./_plugin-vue_export-helper.oebm7xum.js";import"./helpers.fdpg7vgg.js";import"./Tooltip.jx4casvt.js";import"./Caret.hnvbzqgq.js";import"./index.h076fivy.js";import"./Slide.dop8j51m.js";import"./Row.o0q8mn7y.js";import"./constants.fxxegv78.js";const s="all-in-one-seo-pack",F=()=>{const _={tooltip:r(e("By default, only Administrators have permission to manage %1$s within WordPress. With Access Controls, you can easily extend access permissions to other user roles.",s),"AIOSEO"),accessControl:e("Access Control Settings",s),useDefaultSettings:e("Use Default Settings",s)},o=[{label:e("Administrator",s),name:"administrator",description:r(e("By default Admins have access to %1$sall SEO site settings%2$s",s),"<strong>","</strong>")},{label:e("Editor",s),name:"editor",description:r(e("By default Editors have access to %1$sSEO settings for General Settings, Search Appearance, Social Networks, and Redirects as well as all settings for individual pages and posts.%2$s",s),"<strong>","</strong>")},{label:e("Author",s),name:"author",description:r(e("By default Authors have access to %1$sSEO settings for individual pages and posts that they already have permission to edit.%2$s",s),"<strong>","</strong>")},{label:e("Contributor",s),name:"contributor",description:r(e("By default Contributors have access to %1$sSEO settings for individual pages and posts that they already have permission to edit.%2$s",s),"<strong>","</strong>")},{label:e("SEO Manager",s),name:"seoManager",description:r(e("By default SEO Managers have access to %1$sSEO settings for General Settings, Sitemaps, Link Assistant, Redirects, Local SEO, and individual pages and posts.%2$s",s),"<strong>","</strong>")},{label:e("SEO Editor",s),name:"seoEditor",description:r(e("By default SEO Editors have access to %1$sSEO settings for individual pages and posts.%2$s",s),"<strong>","</strong>")}];return{getRoles:k(()=>{const a=v();return o.concat(Object.keys(a.aioseo.user.customRoles).map(i=>({label:a.aioseo.user.roles[i],name:i,description:r(e("By default the %1$s role %2$shas no access%3$s to %4$s settings.",s),a.aioseo.user.roles[i],"<strong>","</strong>","All in One SEO"),dynamic:!0})))}),strings:_}},G={class:"aioseo-access-control-lite"},T={class:"toggle"},b={__name:"AccessControl",setup(_){const o="all-in-one-seo-pack",{getRoles:f,strings:a}=F(),i=v(),n=x(a,{wpRoles:e("WP Roles (Editor, Author)",o),seoManagerRole:e("SEO Manager Role",o),seoEditorRole:e("SEO Editor Role",o),defaultSettings:e("Default settings that just work",o),granularControl:e("Granular controls per role",o),ctaButtonText:e("Unlock Access Control",o),ctaHeader:r(e("Access Control is a %1$s Feature",o),"PRO")}),h=k(()=>{const c=f.value;let m=1;for(;8>c.length;)c.push({label:e("Custom Role",o)+" "+m,name:"customRole"+m}),m++;return c});return(c,m)=>{const O=S("base-toggle");return u(),C("div",G,[d(t(P),{slug:"accessControl"},{header:l(()=>[R("span",null,p(t(n).accessControl),1),d(t(M))]),tooltip:l(()=>[g(p(t(n).tooltip),1)]),default:l(()=>[d(t(L),null,{default:l(()=>[(u(!0),C(w,null,U(h.value,E=>(u(),y(t(N),{key:E.name,name:E.label},{content:l(()=>[R("div",T,[d(O,{disabled:!0,modelValue:!0},{default:l(()=>[g(p(t(n).useDefaultSettings),1)]),_:1})])]),_:2},1032,["name"]))),128))]),_:1}),d(t(D),{"feature-list":[t(n).granularControl,t(n).wpRoles,t(n).seoManagerRole,t(n).seoEditorRole],"cta-link":t(A).getPricingUrl("access-control","access-control-upsell"),"button-text":t(n).ctaButtonText,"learn-more-link":t(A).getUpsellUrl("access-control",null,t(i).isPro?"pricing":"liteUpgrade"),"align-top":""},{"header-text":l(()=>[g(p(t(n).ctaHeader),1)]),description:l(()=>[g(p(t(n).tooltip),1)]),_:1},8,["feature-list","cta-link","button-text","learn-more-link"])]),_:1})])}}},W={setup(){return{licenseStore:B()}},components:{AccessControl:b,AccessControlLite:b}},j={class:"aioseo-access-control"};function H(_,o,f,a,i,n){const h=S("access-control",!0),c=S("access-control-lite");return u(),C("div",j,[a.licenseStore.isUnlicensed?$("",!0):(u(),y(h,{key:0})),a.licenseStore.isUnlicensed?(u(),y(c,{key:1})):$("",!0)])}const ie=V(W,[["render",H]]);export{ie as default};