import{aa as a,ab as c}from"./_applist-tangy-colts-beg-36.js";import{_ as n}from"./main-tangy-colts-beg.js";import{s as r}from"./machine.-tangy-colts-beg-869.js";import{h as i,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 p=a(({helpers:e})=>({states:{components:[m(e),{componentName:e.componentName.mixInput,helperText:n("Enter customer ID to retrieve the subscription"),id:"customer-id",label:n("Customer ID"),onChange:"HANDLE_CUSTOMER",path:"customer_id",render:"IF_CONNECTION_SELECTED",required:!0,value:void 0}]},actions:{CONNECTION_ADD_CHANGE:s,HANDLE_CUSTOMER:i("customerId"),IF_CONNECTION_SELECTED:({$:o})=>{var t;return c((t=o.getComponent("connection-id"))==null?void 0:t.value)},SET_CONNECTION:i("connectionId"),ON_MACHINE_LOAD:async({$:o})=>{r(o,[{db:"connectionId",id:"connection-id"},{db:"customerId",id:"customer-id"}])}}}));export{p as default};
