import{aa as i}from"./_applist-tangy-colts-beg-36.js";import{_ as e}from"./main-tangy-colts-beg.js";import{h as s,s as l}from"./machine.-tangy-colts-beg-869.js";import{a as n,f as o}from"./machineh-tangy-colts-beg-7712.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 u=i(({helpers:a})=>({states:{components:[{componentName:a.componentName.mixInput,id:"email",label:e("Contact Email"),onChange:"HANDLE_EMAIL",path:"email",placeholder:e("Enter contact email"),render:!0,required:!0,value:void 0},{componentName:a.componentName.mixInput,id:"first-name",label:e("First Name"),onChange:"HANDLE_FIRST_NAME",path:"first_name",placeholder:e("Enter first name"),render:!0,value:void 0},{componentName:a.componentName.mixInput,id:"last-name",label:e("Last Name"),onChange:"HANDLE_LAST_NAME",path:"last_name",placeholder:e("Enter last name"),render:!0,value:void 0},{componentName:a.componentName.select,id:"status",label:e("Subscription Status"),onChange:"HANDLE_STATUS",options:[{label:e("Subscribed"),value:"subscribed"},{label:e("Unsubscribed"),value:"unsubscribed"},{label:e("Pending"),value:"pending"}],path:"status",placeholder:e("Select status"),render:!0,value:"subscribed"},{componentName:a.componentName.select,id:"lists",label:e("Add to Lists"),mode:"multiple",onChange:"SELECT_LISTS",onRefetch:"REFETCH_LISTS",options:[],path:"lists",placeholder:e("Select lists"),render:!0,value:void 0},{componentName:a.componentName.select,id:"tags",label:e("Add Tags"),mode:"multiple",onChange:"SELECT_TAGS",onRefetch:"REFETCH_TAGS",options:[],path:"tags",placeholder:e("Select tags"),render:!0,value:void 0}]},actions:{HANDLE_EMAIL:s("email"),HANDLE_FIRST_NAME:s("firstName"),HANDLE_LAST_NAME:s("lastName"),HANDLE_STATUS:s("status"),SELECT_LISTS:s("lists"),SELECT_TAGS:s("tags"),REFETCH_LISTS:({$:t})=>o(t),REFETCH_TAGS:({$:t})=>n(t),ON_MACHINE_LOAD:async({$:t})=>{l(t,[{db:"email",id:"email"},{db:"firstName",id:"first-name"},{db:"lastName",id:"last-name"},{db:"status",id:"status"},{db:"lists",id:"lists"},{db:"tags",id:"tags"}]),await Promise.all([o(t),n(t)])}}}));export{u as default};
