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