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