import{aa as r}from"./_applist-tangy-colts-beg-36.js";import{_ as i}from"./main-tangy-colts-beg.js";import{h as s,s as a}from"./machine.-tangy-colts-beg-869.js";import{f as o}from"./machineh-tangy-colts-beg-773.js";import"./lodash-tangy-colts-beg-516.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(t,e){return this.cache.has(t)?this.cache.get(t):(this.cache.set(t,e),e)}};const m=r(({helpers:t})=>({states:{components:[{componentName:t.componentName.mixInput,helperText:i("If you want to get subscriber count of a specific list, provide the list id."),id:"subscriber-id",label:i("Subscriber Id"),onChange:"HANDLE_SUBSCRIBER_ID",path:"subscriber_id",render:!0,required:!0,value:void 0},{componentName:t.componentName.select,helperText:i("Select one or more lists to which the subscriber will be removed."),id:"lists",label:i("Lists"),mode:"multiple",onChange:"SELECT_LISTS",onRefetch:"REFETCH_LISTS",options:[],path:"list_ids",placeholder:i("Select a status"),render:!0,required:!0,value:void 0}]},actions:{HANDLE_SUBSCRIBER_ID:s("subscriber_id"),SELECT_LISTS:s("list_ids"),ON_MACHINE_LOAD:async({$:e})=>{a(e,[{db:"list_ids",id:"lists"},{db:"subscriber_id",id:"subscriber-id"}]),await o(e)},REFETCH_LISTS:async({$:e})=>{await o(e)}}}));export{m as default};
