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