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