import{aa as i,ab as d}from"./_applist-tangy-colts-beg-36.js";import{_ as a}from"./main-tangy-colts-beg.js";import{h as o,s as r}from"./machine.-tangy-colts-beg-869.js";import{h as c,c as N}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 m=i(({helpers:e})=>({states:{components:[N(e),{componentName:e.componentName.mixInput,id:"board-id",label:a("Board ID"),onChange:"HANDLE_BOARD_ID",path:"board_id",placeholder:a("Enter the board ID"),render:"IF_CONNECTION_SELECTED",required:!0,value:void 0},{componentName:e.componentName.mixInput,id:"task-id",label:a("Task ID"),onChange:"HANDLE_TASK_ID",path:"task_id",placeholder:a("Enter the task ID"),render:"IF_CONNECTION_SELECTED",required:!0,value:void 0},{componentName:e.componentName.mixInput,id:"title",label:a("Title"),onChange:"HANDLE_TITLE",path:"title",placeholder:a("Enter the title of the subtask"),render:"IF_CONNECTION_SELECTED",required:!0,value:void 0}]},actions:{IF_CONNECTION_SELECTED:({$:t})=>{var n;return d((n=t.getComponent("connection-id"))==null?void 0:n.value)},CONNECTION_ADD_CHANGE:c,HANDLE_BOARD_ID:o("boardId"),HANDLE_TASK_ID:o("taskId"),HANDLE_TITLE:o("title"),SET_CONNECTION:o("connectionId"),ON_MACHINE_LOAD:async({$:t})=>{r(t,[{db:"connectionId",id:"connection-id"},{db:"boardId",id:"board-id"},{db:"taskId",id:"task-id"},{db:"title",id:"title"}])}}}));export{m as default};
