import{aa as i}from"./_applist-tangy-colts-beg-36.js";import{_ as a}from"./main-tangy-colts-beg.js";import{s as t}from"./machine.-tangy-colts-beg-869.js";import{h as r}from"./commonut-tangy-colts-beg-953.js";import"./lodash-tangy-colts-beg-516.js";import"./machineh-tangy-colts-beg-110.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,o){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,o),o)}};const c=i(({helpers:e})=>({states:{components:[{componentName:e.componentName.mixInput,helperText:a("Provide the unique role name. (Example: editor, subscriber)"),id:"role-name",label:a("Role Name"),onChange:"HANDLE_ROLE_NAME",path:"roleName",render:!0,required:!0,value:void 0},{componentName:e.componentName.mixInput,helperText:a("Provide the human readable name for the role. (Example: Editor, Subscriber)"),id:"role-display-name",label:a("Role Display Name"),onChange:"HANDLE_DISPLAY_NAME",path:"roleDisplayName",render:!0,required:!0,value:void 0},{componentName:e.componentName.mixInput,helperText:a('Provide one or more user role capabilities as a comma-separated list or array. Accepted formats: edit_posts, manage_options, read (string input) ["edit_posts", "manage_options", "read"] (array input)'),id:"role-capabilities",label:a("Role Capabilities"),onChange:"HANDLE_ROLE_CAPABILITIES",path:"roleCapabilities",render:!0,value:void 0}]},actions:{HANDLE_DISPLAY_NAME:r("roleDisplayName"),HANDLE_ROLE_CAPABILITIES:r("roleCapabilities"),HANDLE_ROLE_NAME:r("roleName"),ON_MACHINE_LOAD:({$:o})=>{t(o,[{db:"roleDisplayName",id:"role-display-name"},{db:"roleCapabilities",id:"role-capabilities"},{db:"roleName",id:"role-name"}])}}}));export{c as default};
