import{aa as d,ab as i}from"./_applist-tangy-colts-beg-36.js";import{_ as t}from"./main-tangy-colts-beg.js";import{h as n,s as m}from"./machine.-tangy-colts-beg-869.js";import{h as c,c as r}from"./commonut-tangy-colts-beg-1272.js";import"./lodash-tangy-colts-beg-516.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,o){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,o),o)}};const h=d(({helpers:e})=>({states:{components:[r(e),{componentName:e.componentName.mixInput,id:"board-id",label:t("Board ID"),onChange:"HANDLE_BOARD_ID",path:"board_id",placeholder:t("Enter the board ID"),render:"IF_CONNECTION_SELECTED",required:!0,value:void 0},{componentName:e.componentName.mixInput,id:"task-id",label:t("Task ID"),onChange:"HANDLE_TASK_ID",path:"task_id",placeholder:t("Enter the task ID"),render:"IF_CONNECTION_SELECTED",required:!0,value:void 0},{componentName:e.componentName.mixInput,id:"comment",label:t("Comment"),onChange:"HANDLE_COMMENT",path:"comment",placeholder:t("Enter the comment content"),render:"IF_CONNECTION_SELECTED",required:!0,value:void 0}]},actions:{IF_CONNECTION_SELECTED:({$:o})=>{var a;return i((a=o.getComponent("connection-id"))==null?void 0:a.value)},CONNECTION_ADD_CHANGE:c,HANDLE_BOARD_ID:n("boardId"),HANDLE_COMMENT:n("comment"),HANDLE_TASK_ID:n("taskId"),SET_CONNECTION:n("connectionId"),ON_MACHINE_LOAD:async({$:o})=>{m(o,[{db:"connectionId",id:"connection-id"},{db:"boardId",id:"board-id"},{db:"taskId",id:"task-id"},{db:"comment",id:"comment"}])}}}));export{h as default};
