import{aa as s}from"./_applist-tangy-colts-beg-36.js";import{_ as a}from"./main-tangy-colts-beg.js";import{h as o,s as r}from"./machine.-tangy-colts-beg-869.js";import{a as i,f as n}from"./machineh-tangy-colts-beg-234.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 h=s(({helpers:t})=>({states:{components:[{componentName:t.componentName.mixInput,helperText:a("The ID of the campaign to add recipients to."),id:"campaign-id",label:a("Campaign ID"),onChange:"HANDLE_CAMPAIGN_ID",path:"campaign_id",render:!0,required:!0,value:void 0},{componentName:t.componentName.select,helperText:a("Select one or more lists to add recipients from."),id:"lists",label:a("Select Lists"),mode:"multiple",onChange:"SELECT_LISTS",onRefetch:"REFETCH_LISTS",options:[],path:"lists",render:!0,required:!0,value:void 0},{componentName:t.componentName.select,helperText:a("Select one or more tags to add recipients from."),id:"tags",label:a("Select Tags"),mode:"multiple",onChange:"SELECT_TAGS",onRefetch:"REFETCH_TAGS",options:[],path:"tags",render:!0,required:!0,value:void 0}]},actions:{HANDLE_CAMPAIGN_ID:o("campaignId"),SELECT_LISTS:o("lists"),SELECT_TAGS:o("tags"),ON_MACHINE_LOAD:async({$:e})=>{r(e,[{db:"campaignId",id:"campaign-id"},{db:"lists",id:"lists"},{db:"tags",id:"tags"}]),await Promise.all([n(e),i(e)])},REFETCH_LISTS:({$:e})=>{n(e)},REFETCH_TAGS:({$:e})=>{i(e)}}}));export{h as default};
