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 a,s as r}from"./machine.-tangy-colts-beg-869.js";import{h as l,c as s}from"./commonut-tangy-colts-beg-1272.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 E=i(({helpers:e})=>({states:{components:[s(e),{componentName:e.componentName.mixInput,id:"title",label:n("Title"),onChange:"HANDLE_TITLE",path:"title",placeholder:n("Enter the title (max 50 chars)"),render:"IF_CONNECTION_SELECTED",required:!0,value:void 0}]},actions:{IF_CONNECTION_SELECTED:({$:t})=>{var o;return c((o=t.getComponent("connection-id"))==null?void 0:o.value)},CONNECTION_ADD_CHANGE:l,HANDLE_TITLE:a("title"),SET_CONNECTION:a("connectionId"),ON_MACHINE_LOAD:async({$:t})=>{r(t,[{db:"connectionId",id:"connection-id"},{db:"title",id:"title"}])}}}));export{E as default};
