import{aa as i,ab as c}from"./_applist-tangy-colts-beg-36.js";import{_ as o}from"./main-tangy-colts-beg.js";import{h as t,s as r}from"./machine.-tangy-colts-beg-869.js";import{h as m,c as N}from"./emailitc-tangy-colts-beg-514.js";import"./lodash-tangy-colts-beg-516.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,n){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,n),n)}};const u=i(({helpers:e})=>({states:{components:[N(e),{componentName:e.componentName.mixInput,helperText:o("Enter a name for your audience (e.g., Newsletter Subscribers)"),id:"audience-name",label:o("Audience Name"),onChange:"SET_AUDIENCE_NAME",path:"name",render:"IF_CONNECTION_SELECTED",required:!0,value:[]}]},actions:{CONNECTION_ADD_CHANGE:m,IF_CONNECTION_SELECTED:({$:n})=>{var a;return c((a=n.getComponent("connection-id"))==null?void 0:a.value)},SET_AUDIENCE_NAME:t("audienceName"),SET_CONNECTION:t("connectionId"),ON_MACHINE_LOAD:({$:n})=>{r(n,[{db:"connectionId",id:"connection-id"},{db:"audienceName",id:"audience-name"}])}}}));export{u as default};
