import{b as i}from"./useflows-BpG3C9m1.js";import{e}from"./main-few-lands-burn.js";import{s as t}from"./machine.-BRuqPpdF.js";import{h as o}from"./commonut-D3rqJBtm.js";import"./mutative-C6xjlr6O.js";import"./lodash-YpNkAOPN.js";import"./machineh-D8WlVdMZ.js";const u=i(({helpers:a})=>({states:{components:[{componentName:a.componentName.mixInput,helperText:e("Provide the unique role name. (Example: editor, subscriber)"),id:"role-name",label:e("Role Name"),onChange:"HANDLE_ROLE_NAME",path:"roleName",render:!0,required:!0,value:void 0},{componentName:a.componentName.mixInput,helperText:e("Provide the human readable name for the role. (Example: Editor, Subscriber)"),id:"role-display-name",label:e("Role Display Name"),onChange:"HANDLE_DISPLAY_NAME",path:"roleDisplayName",render:!0,required:!0,value:void 0},{componentName:a.componentName.mixInput,helperText:e('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:e("Role Capabilities"),onChange:"HANDLE_ROLE_CAPABILITIES",path:"roleCapabilities",render:!0,value:void 0}]},actions:{HANDLE_DISPLAY_NAME:o("roleDisplayName"),HANDLE_ROLE_CAPABILITIES:o("roleCapabilities"),HANDLE_ROLE_NAME:o("roleName"),ON_MACHINE_LOAD:({$:r})=>{t(r,[{db:"roleDisplayName",id:"role-display-name"},{db:"roleCapabilities",id:"role-capabilities"},{db:"roleName",id:"role-name"}])}}}));export{u as default};
