Sid Gifari File Manager
🏠 Root
/
home
/
caldereriajp
/
public_html
/
wp-content
/
plugins
/
all-in-one-seo-pack
/
dist
/
Lite
/
assets
/
js
/
Editing: AccessControl.720a1cce.js
import{u as k,n as B,e as x}from"./links.96235554.js";import{j as a,_ as s}from"./default-i18n.cc9dbff0.js";import{r as i,o as c,c as m,e as l,w as r,a as S,t as u,g as p,F as w,h as L,d as h,b as y}from"./vue.runtime.esm-bundler.a49acf4f.js";import{_ as b}from"./_plugin-vue_export-helper.bd508f36.js";import"./index.c885ab17.js";import{C as U}from"./Index.86dc50d3.js";import"./constants.c7984802.js";/* empty css */import{C as P}from"./Blur.f2dbe3c4.js";import{C as M}from"./Card.02715b2c.js";import{C as N}from"./ProBadge.269c99d4.js";import{C as D}from"./SettingsRow.5de01aba.js";import"./isArrayLikeObject.3ade28da.js";import"./Caret.7f04b0aa.js";import"./Row.85168b37.js";/* empty css *//* empty css */import"./Tooltip.c031cb66.js";import"./Slide.f53bd663.js";const e="all-in-one-seo-pack",V=()=>{const t={tooltip:a(s("By default, only users with an Administrator role have permission to manage %1$s within your WordPress admin area. With Access Controls, though, you can easily extend specific access permissions to other user roles.",e),"All in One SEO"),accessControl:s("Access Control Settings",e),useDefaultSettings:s("Use Default Settings",e)},o=[{label:s("Administrator",e),name:"administrator",description:a(s("By default Admins have access to %1$sall SEO site settings%2$s",e),"<strong>","</strong>")},{label:s("Editor",e),name:"editor",description:a(s("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",e),"<strong>","</strong>")},{label:s("Author",e),name:"author",description:a(s("By default Authors have access to %1$sSEO settings for individual pages and posts that they already have permission to edit.%2$s",e),"<strong>","</strong>")},{label:s("Contributor",e),name:"contributor",description:a(s("By default Contributors have access to %1$sSEO settings for individual pages and posts that they already have permission to edit.%2$s",e),"<strong>","</strong>")},{label:s("SEO Manager",e),name:"seoManager",description:a(s("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",e),"<strong>","</strong>")},{label:s("SEO Editor",e),name:"seoEditor",description:a(s("By default SEO Editors have access to %1$sSEO settings for individual pages and posts.%2$s",e),"<strong>","</strong>")}];return{strings:t,roles:o}},j={computed:{getRoles(){const t=k();return this.roles.concat(Object.keys(t.aioseo.user.customRoles).map(o=>({label:t.aioseo.user.roles[o],name:o,description:this.$t.sprintf(this.$t.__("By default the %1$s role %2$shas no access%3$s to %4$s settings.",this.$td),t.aioseo.user.roles[o],"<strong>","</strong>","All in One SEO"),dynamic:!0})))}}};const G={setup(){const{strings:t,roles:o}=V();return{composableStrings:t,roles:o}},components:{CoreBlur:P,CoreCard:M,CoreProBadge:N,CoreSettingsRow:D,Cta:U},mixins:[j],data(){return{strings:B(this.composableStrings,{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 t=this.getRoles;let o=1;for(;8>t.length;)t.push({label:this.$t.__("Custom Role",this.$td)+" "+o,name:"customRole"+o}),o++;return t}}},T={class:"aioseo-access-control-lite"},W={class:"toggle"};function F(t,o,E,d,n,f){const g=i("core-pro-badge"),_=i("base-toggle"),A=i("core-settings-row"),v=i("core-blur"),R=i("cta"),O=i("core-card");return c(),m("div",T,[l(O,{slug:"accessControl"},{header:r(()=>[S("span",null,u(n.strings.accessControl),1),l(g)]),tooltip:r(()=>[p(u(n.strings.tooltip),1)]),default:r(()=>[l(v,null,{default:r(()=>[(c(!0),m(w,null,L(f.getLiteRoles,$=>(c(),h(A,{key:$.name,name:$.label},{content:r(()=>[S("div",W,[l(_,{disabled:!0,modelValue:!0},{default:r(()=>[p(u(n.strings.useDefaultSettings),1)]),_:1})])]),_:2},1032,["name"]))),128))]),_:1}),l(R,{"feature-list":[n.strings.granularControl,n.strings.wpRoles,n.strings.seoManagerRole,n.strings.seoEditorRole],"cta-link":t.$links.getPricingUrl("access-control","access-control-upsell"),"button-text":n.strings.ctaButtonText,"learn-more-link":t.$links.getUpsellUrl("access-control",null,"home"),"align-top":""},{"header-text":r(()=>[p(u(n.strings.ctaHeader),1)]),description:r(()=>[p(u(n.strings.tooltip),1)]),_:1},8,["feature-list","cta-link","button-text","learn-more-link"])]),_:1})])}const C=b(G,[["render",F]]),H={setup(){return{licenseStore:x()}},components:{AccessControl:C,AccessControlLite:C}},I={class:"aioseo-access-control"};function q(t,o,E,d,n,f){const g=i("access-control",!0),_=i("access-control-lite");return c(),m("div",I,[d.licenseStore.isUnlicensed?y("",!0):(c(),h(g,{key:0})),d.licenseStore.isUnlicensed?(c(),h(_,{key:1})):y("",!0)])}const dt=b(H,[["render",q]]);export{dt as default};
Save
Cancel