import{aa as r}from"./_applist-tangy-colts-beg-36.js";import{_ as e}from"./main-tangy-colts-beg.js";import{h as o,s as l}from"./machine.-tangy-colts-beg-869.js";import"./lodash-tangy-colts-beg-516.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(a,t){return this.cache.has(a)?this.cache.get(a):(this.cache.set(a,t),t)}};const i=r(({helpers:a})=>({states:{components:[{componentName:a.componentName.mixInput,helperText:e("Enter the WordPress user ID to add to the space"),id:"user-id",label:e("User ID"),onChange:"SET_USER_ID",path:"user_id",placeholder:e("Enter user ID"),render:!0,value:void 0},{componentName:a.componentName.mixInput,helperText:e("Enter the space ID where the user will be added"),id:"space-id",label:e("Space ID"),onChange:"SET_SPACE_ID",path:"space_id",placeholder:e("Enter space ID"),render:!0,value:void 0},{componentName:a.componentName.select,helperText:e("Select the role for the user in the space"),id:"role",label:e("Role"),onChange:"SELECT_ROLE",options:[{label:e("Member"),value:"member"},{label:e("Moderator"),value:"moderator"},{label:e("Admin"),value:"admin"},{label:e("Student"),value:"student"}],path:"role",placeholder:e("Select a role"),render:!0,value:"member"}]},actions:{ON_MACHINE_LOAD:async({$:t})=>{l(t,[{db:"userId",id:"user-id"},{db:"spaceId",id:"space-id"},{db:"role",id:"role"}])},SELECT_ROLE:o("role"),SET_SPACE_ID:o("spaceId"),SET_USER_ID:o("userId")}}));export{i as default};
