import{aa as n,ab as i}from"./_applist-tangy-colts-beg-36.js";import{_ as e}from"./main-tangy-colts-beg.js";import{h as o,s as r}from"./machine.-tangy-colts-beg-869.js";import{h as N,c as E}from"./commonut-tangy-colts-beg-1272.js";import"./lodash-tangy-colts-beg-516.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(t,a){return this.cache.has(t)?this.cache.get(t):(this.cache.set(t,a),a)}};const c=n(({helpers:t})=>({states:{components:[E(t),{componentName:t.componentName.mixInput,id:"board-id",label:e("Board ID"),onChange:"HANDLE_BOARD_ID",path:"board_id",placeholder:e("Enter the board ID"),render:"IF_CONNECTION_SELECTED",required:!0,value:void 0},{componentName:t.componentName.mixInput,id:"task-id",label:e("Task ID"),onChange:"HANDLE_TASK_ID",path:"task_id",placeholder:e("Enter the task ID"),render:"IF_CONNECTION_SELECTED",required:!0,value:void 0},{componentName:t.componentName.mixInput,id:"group-id",label:e("Group ID"),onChange:"HANDLE_GROUP_ID",path:"group_id",placeholder:e("Enter the ID of the subtask group"),render:"IF_CONNECTION_SELECTED",required:!0,value:void 0},{componentName:t.componentName.mixInput,id:"title",label:e("Title"),onChange:"HANDLE_TITLE",path:"title",placeholder:e("Enter the title of the subtask"),render:"IF_CONNECTION_SELECTED",required:!0,value:void 0},{componentName:t.componentName.mixInput,id:"due-at",label:e("Due date-time (in ISO 8601 format)"),onChange:"HANDLE_DUE_AT",path:"due_at",placeholder:e("Enter the due date-time of the subtask"),render:"IF_CONNECTION_SELECTED",value:void 0},{componentName:t.componentName.switch,helperText:e("If true, adds the subtask at the top of the group (default: false)"),id:"add-to-top",label:e("Add to Top"),onChange:"HANDLE_ADD_TO_TOP",path:"add_to_top",render:"IF_CONNECTION_SELECTED",size:"small",value:void 0}]},actions:{IF_CONNECTION_SELECTED:({$:a})=>{var d;return i((d=a.getComponent("connection-id"))==null?void 0:d.value)},CONNECTION_ADD_CHANGE:N,HANDLE_ADD_TO_TOP:o("addToTop"),HANDLE_BOARD_ID:o("boardId"),HANDLE_DUE_AT:o("dueAt"),HANDLE_GROUP_ID:o("groupId"),HANDLE_TASK_ID:o("taskId"),HANDLE_TITLE:o("title"),SET_CONNECTION:o("connectionId"),ON_MACHINE_LOAD:async({$:a})=>{r(a,[{db:"connectionId",id:"connection-id"},{db:"boardId",id:"board-id"},{db:"taskId",id:"task-id"},{db:"groupId",id:"group-id"},{db:"title",id:"title"},{db:"dueAt",id:"due-at"},{db:"addToTop",id:"add-to-top"}])}}}));export{c as default};
