import{aa as s}from"./_applist-tangy-colts-beg-36.js";import{_ as e}from"./main-tangy-colts-beg.js";import{h as a,s as n}from"./machine.-tangy-colts-beg-869.js";import{f as t}from"./machineh-tangy-colts-beg-773.js";import"./lodash-tangy-colts-beg-516.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(i,o){return this.cache.has(i)?this.cache.get(i):(this.cache.set(i,o),o)}};const _=s(({helpers:i})=>({states:{components:[{componentName:i.componentName.mixInput,helperText:e("If you want to get subscriber count of a specific list, provide the list id."),id:"subscriber-id",label:e("Subscriber Id"),onChange:"HANDLE_SUBSCRIBER_ID",path:"subscriber_id",render:!0,required:!0,value:void 0},{componentName:i.componentName.select,helperText:e("Select one or more lists to which the subscriber will be added."),id:"lists",label:e("Lists"),mode:"multiple",onChange:"SELECT_LISTS",onRefetch:"REFETCH_LISTS",options:[],path:"list_ids",placeholder:e("Select a status"),render:!0,required:!0,value:void 0},{componentName:i.componentName.switch,helperText:e("Can be used to disable confirmation email. Otherwise, a confirmation email is sent as described above."),id:"send-confirmation-email",label:e("Send Confirmation Email"),onChange:"HANDLE_SEND_CONFIRMATION_EMAIL",path:"options.send_confirmation_email",render:!0,value:!0,wrapperClassName:"my-1"},{componentName:i.componentName.switch,helperText:e("Can be used to disable welcome email. Otherwise, a welcome email is scheduled as described above."),id:"schedule-welcome-email",label:e("Schedule Welcome Email"),onChange:"HANDLE_SCHEDULE_WELCOME_EMAIL",path:"options.schedule_welcome_email",render:!0,value:!0,wrapperClassName:"my-1"},{componentName:i.componentName.switch,helperText:e("Can be used to disable an admin notification email. Otherwise, an admin notification email is sent as described above."),id:"skip-subscriber-notification",label:e("Skip Subscriber Notification"),onChange:"HANDLE_SKIP_SUBSCRIBER_NOTIFICATION",path:"options.skip_subscriber_notification",render:!0,value:!1,wrapperClassName:"my-1"}]},actions:{HANDLE_SCHEDULE_WELCOME_EMAIL:a("options.schedule_welcome_email"),HANDLE_SEND_CONFIRMATION_EMAIL:a("options.send_confirmation_email"),HANDLE_SKIP_SUBSCRIBER_NOTIFICATION:a("options.skip_subscriber_notification"),HANDLE_SUBSCRIBER_ID:a("subscriber_id"),SELECT_LISTS:a("list_ids"),ON_MACHINE_LOAD:async({$:o})=>{n(o,[{db:"list_ids",id:"lists"},{db:"subscriber_id",id:"subscriber-id"},{db:"options.send_confirmation_email",id:"send-confirmation-email"},{db:"options.schedule_welcome_email",id:"schedule-welcome-email"},{db:"options.skip_subscriber_notification",id:"skip-subscriber-notification"}]),await t(o)},REFETCH_LISTS:async({$:o})=>{await t(o)}}}));export{_ as default};
