import{aa as a}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(t,n){return this.cache.has(t)?this.cache.get(t):(this.cache.set(t,n),n)}};const d=a(({helpers:t})=>({states:{components:[{componentName:t.componentName.mixInput,helperText:e("Enter the title of the poll"),id:"title",label:e("Poll Title"),onChange:"SET_TITLE",path:"title",placeholder:e("Enter poll title"),render:!0,value:void 0},{componentName:t.componentName.mixInput,helperText:e("Enter the poll question"),id:"question",label:e("Poll Question"),onChange:"SET_QUESTION",path:"message",placeholder:e("Enter poll question"),render:!0,value:void 0},{componentName:t.componentName.mixInput,helperText:e("Enter poll options separated by commas (e.g., Option 1, Option 2, Option 3)"),id:"options",label:e("Poll Options"),onChange:"SET_OPTIONS",path:"poll_options",placeholder:e("Enter poll options separated by commas"),render:!0,value:void 0},{componentName:t.componentName.mixInput,helperText:e("Enter the space ID where the poll will be created"),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:t.componentName.mixInput,helperText:e("Enter the user ID who will create the poll"),id:"user-id",label:e("User ID"),onChange:"SET_USER_ID",path:"user_id",placeholder:e("Enter user ID"),render:!0,value:void 0}]},actions:{ON_MACHINE_LOAD:async({$:n})=>{l(n,[{db:"title",id:"title"},{db:"message",id:"question"},{db:"pollOptions",id:"options"},{db:"spaceId",id:"space-id"},{db:"userId",id:"user-id"}])},SET_OPTIONS:o("pollOptions"),SET_QUESTION:o("message"),SET_SPACE_ID:o("spaceId"),SET_TITLE:o("title"),SET_USER_ID:o("userId")}}));export{d as default};
