import{aa as a,ab as c}from"./_applist-tangy-colts-beg-36.js";import{_ as i}from"./main-tangy-colts-beg.js";import{s}from"./machine.-tangy-colts-beg-869.js";import{h as d,c as C}from"./commonut-tangy-colts-beg-392.js";import"./lodash-tangy-colts-beg-516.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(n,e){return this.cache.has(n)?this.cache.get(n):(this.cache.set(n,e),e)}};const l=a(({helpers:n})=>({states:{components:[C(n),{componentName:n.componentName.input,fieldType:"config",id:"product-id",label:i("Product Id"),onChange:"HANDLE_CONTACT_INFO",render:"IF_CONNECTION_SELECTED",type:"text",value:void 0}]},actions:{IF_CONNECTION_SELECTED:({$:e})=>{var o;return c((o=e.getComponent("connection-id"))==null?void 0:o.value)},HANDLE_CONTACT_INFO:async({$:e,e:o})=>{e.setThisComponent(t=>{t.value=o.target.value}),e.setDb(t=>{t.productId=o.target.value})},ON_MACHINE_LOAD:async({$:e})=>{s(e,[{db:"connectionId",id:"connection-id"},{db:"productId",id:"product-id"}])},SET_CONNECTION:async({$:e,e:o})=>{e.setThisComponent(t=>{t.value=o}),e.setDb(t=>{t.connectionId=o})},CONNECTION_ADD_CHANGE:d}}));export{l as default};
