import{aa as m,ab as c}from"./_applist-tangy-colts-beg-36.js";import{_ as n}from"./main-tangy-colts-beg.js";import{s as E}from"./machine.-tangy-colts-beg-869.js";import{h as o,f as i,a as r,c as s}from"./mailchim-tangy-colts-beg-692.js";import"./lodash-tangy-colts-beg-516.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(a,e){return this.cache.has(a)?this.cache.get(a):(this.cache.set(a,e),e)}};const _=m(({helpers:a})=>({states:{components:[s(a),{allowClear:!0,componentName:a.componentName.select,helperText:n("Choose the list from which you want to get a member's information."),id:"select-audience",label:n("Select Audience List"),onChange:"HANDLE_SELECT_AUDIENCE",onRefetch:"REFETCH_AUDIENCE_LIST",options:[],path:"select-audience",render:"IF_CONNECTION_SELECTED",required:!0,value:void 0},{componentName:a.componentName.mixInput,helperText:n("Enter the member's email whose information you want."),id:"member-email",label:n("Member Email"),onChange:"SET_MEMBER_EMAIL",path:"member-email",render:"IF_CONNECTION_SELECTED",required:!0,value:[]}]},actions:{SET_CONNECTION:async({$:e,e:t})=>{o("connectionId")({$:e,e:t}),await i(e)},CONNECTION_ADD_CHANGE:r,HANDLE_SELECT_AUDIENCE:o("audienceList"),IF_CONNECTION_SELECTED:({$:e})=>{var t;return c((t=e.getComponent("connection-id"))==null?void 0:t.value)},REFETCH_AUDIENCE_LIST:async({$:e})=>await i(e),SET_MEMBER_EMAIL:o("memberEmail"),ON_MACHINE_LOAD:async({$:e})=>{var t;E(e,[{db:"connectionId",id:"connection-id"},{db:"audienceList",id:"select-audience"},{db:"memberEmail",id:"member-email"}]),(t=e.db)!=null&&t.connectionId&&await i(e)}}}));export{_ as default};
