import{aa as i,ab as r}from"./_applist-tangy-colts-beg-36.js";import{_ as n}from"./main-tangy-colts-beg.js";import{s as c}from"./machine.-tangy-colts-beg-869.js";import{h as a,a as s,c as m}from"./commonut-tangy-colts-beg-867.js";import"./lodash-tangy-colts-beg-516.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,o){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,o),o)}};const _=i(({helpers:e})=>({states:{components:[m(e),{componentName:e.componentName.mixInput,helperText:n("Enter Customer ID to retrieve the corresponding customers"),id:"customer-id",label:n("Customer ID"),onChange:"HANDLE_CUSTOMER_ID",path:"customer_id",render:"IF_CONNECTION_SELECTED",required:!0,value:void 0}]},actions:{IF_CONNECTION_SELECTED:({$:o})=>{var t;return r((t=o.getComponent("connection-id"))==null?void 0:t.value)},CONNECTION_ADD_CHANGE:s,HANDLE_CUSTOMER_ID:a("customer-id"),SET_CONNECTION:a("connectionId"),ON_MACHINE_LOAD:async({$:o})=>{c(o,[{db:"connectionId",id:"connection-id"},{db:"customer-id",id:"customer-id"}])}}}));export{_ as default};
