import{aa as p}from"./_applist-tangy-colts-beg-36.js";import{_ as e}from"./main-tangy-colts-beg.js";import{h as a,s as u}from"./machine.-tangy-colts-beg-869.js";import{b as r}from"./machineh-tangy-colts-beg-426.js";import"./lodash-tangy-colts-beg-516.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(t,o){return this.cache.has(t)?this.cache.get(t):(this.cache.set(t,o),o)}};const s=p(({helpers:t})=>({states:{components:[{componentName:t.componentName.mixInput,helperText:e("Enter the name of the group you want to create."),id:"group-name",label:e("Group Name"),onChange:"HANDLE_GROUP_NAME",path:"group_name",render:!0,required:!0,value:void 0},{componentName:t.componentName.select,helperText:e("Select the privacy status of the group."),id:"group-status",label:e("Group Privacy Status"),onChange:"HANDLE_GROUP_STATUS",options:[{label:e("Public"),value:"public"},{label:e("Private"),value:"private"},{label:e("Hidden"),value:"hidden"}],path:"group_status",render:!0,required:!0,value:void 0},{componentName:t.componentName.mixInput,helperText:e("Enter the email address of the user who will be the group creator."),id:"group-creator-email",label:e("Group Creator Email"),onChange:"HANDLE_CREATOR_EMAIL",path:"group_creator_email",render:!0,required:!0,value:void 0},{componentName:t.componentName.select,helperText:e("Select the group type."),id:"group-type",label:e("Group Type"),onChange:"HANDLE_GROUP_TYPE",onRefetch:"REFETCH_GROUP_TYPES",options:[],path:"group_type",render:!0,value:void 0}]},actions:{HANDLE_CREATOR_EMAIL:a("groupCreatorEmail"),HANDLE_GROUP_NAME:a("groupName"),HANDLE_GROUP_STATUS:a("groupStatus"),HANDLE_GROUP_TYPE:a("groupType"),ON_MACHINE_LOAD:async({$:o})=>{u(o,[{db:"groupName",id:"group-name"},{db:"groupStatus",id:"group-status"},{db:"groupCreatorEmail",id:"group-creator-email"},{db:"groupType",id:"group-type"}]),r(o)},REFETCH_GROUP_TYPES:({$:o})=>r(o)}}));export{s as default};
