Sid Gifari File Manager
🏠 Root
/
home2
/
meumer25
/
public_html
/
wp-content
/
plugins
/
all-in-one-seo-pack
/
dist
/
Lite
/
assets
/
js
/
Editing: AccessControl.ff2dfd00.js
import{a as O,E as k,b as E,i as B}from"./index.317ad629.js";import"./translations.e71e2202.js";import{a as r,_ as e}from"./default-i18n.65d58dd6.js";import{W as b,a6 as h,o as p,c as S,l as d,a2 as l,_ as R,$ as m,R as t,a7 as g,F as x,af as U,a1 as C,a4 as $}from"./runtime-core.esm-bundler.ce5add0b.js";import{C as w}from"./Blur.92695742.js";import{C as L}from"./Card.b75a3969.js";import{C as M}from"./ProBadge.e6ec5f9a.js";import{C as N}from"./SettingsRow.35256805.js";import{C as P}from"./Index.72794c8a.js";import{_ as D}from"./_plugin-vue_export-helper.eefbdd86.js";import"./helpers.633a054c.js";import"./Tooltip.23c7170d.js";import"./runtime-dom.esm-bundler.dc49ee3e.js";import"./Caret.cd869c5d.js";import"./Trash.87a7d946.js";import"./Close.ccd53ef3.js";import"./Slide.3003ef51.js";import"./Row.bb9acf3f.js";import"./Index.2a391835.js";import"./Button.9a301412.js";import"./Pencil.d82df6a1.js";import"./constants.bc5863fe.js";const s="all-in-one-seo-pack",V=()=>{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)},n=[{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:b(()=>{const a=O();return n.concat(Object.keys(a.aioseo.user.customRoles).map(i=>({label:a.aioseo.user.userRoles[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:_}},W={class:"aioseo-access-control-lite"},F={class:"toggle"},A={__name:"AccessControl",setup(_){const n="all-in-one-seo-pack",{getRoles:f,strings:a}=V(),o=k(a,{wpRoles:e("WP Roles (Editor, Author)",n),seoManagerRole:e("SEO Manager Role",n),seoEditorRole:e("SEO Editor Role",n),defaultSettings:e("Default settings that just work",n),granularControl:e("Granular controls per role",n),ctaButtonText:e("Unlock Access Control",n),ctaHeader:r(e("Access Control is a %1$s Feature",n),"PRO")}),i=b(()=>{const c=f.value;let u=1;for(;8>c.length;)c.push({label:e("Custom Role",n)+" "+u,name:"customRole"+u}),u++;return c});return(c,u)=>{const v=h("base-toggle");return p(),S("div",W,[d(t(L),{slug:"accessControl"},{header:l(()=>[R("span",null,m(t(o).accessControl),1),d(t(M))]),tooltip:l(()=>[g(m(t(o).tooltip),1)]),default:l(()=>[d(t(w),null,{default:l(()=>[(p(!0),S(x,null,U(i.value,y=>(p(),C(t(N),{key:y.name,name:y.label},{content:l(()=>[R("div",F,[d(v,{disabled:!0,modelValue:!0},{default:l(()=>[g(m(t(o).useDefaultSettings),1)]),_:1})])]),_:2},1032,["name"]))),128))]),_:1}),d(t(P),{"feature-list":[t(o).granularControl,t(o).wpRoles,t(o).seoManagerRole,t(o).seoEditorRole],"cta-link":t(E).getPricingUrl("access-control","access-control-upsell",null,"liteUpgrade"),"button-text":t(o).ctaButtonText,"learn-more-link":t(E).getUpsellUrl("access-control",null,"liteUpgrade"),"align-top":""},{"header-text":l(()=>[g(m(t(o).ctaHeader),1)]),description:l(()=>[g(m(t(o).tooltip),1)]),_:1},8,["feature-list","cta-link","button-text","learn-more-link"])]),_:1})])}}},G={setup(){return{licenseStore:B()}},components:{AccessControl:A,AccessControlLite:A}},T={class:"aioseo-access-control"};function j(_,n,f,a,o,i){const c=h("access-control",!0),u=h("access-control-lite");return p(),S("div",T,[a.licenseStore.isUnlicensed?$("",!0):(p(),C(c,{key:0})),a.licenseStore.isUnlicensed?(p(),C(u,{key:1})):$("",!0)])}const de=D(G,[["render",j]]);export{de as default};
Save
Cancel