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