import{aa as n,ab as d}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 l,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 s=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:"stage-id",label:e("Stage ID"),onChange:"HANDLE_STAGE_ID",path:"stage_id",placeholder:e("Enter the stage id"),render:"IF_CONNECTION_SELECTED",required:!0,value:void 0},{componentName:t.componentName.mixInput,id:"title",label:e("Task Title"),onChange:"HANDLE_TITLE",path:"title",placeholder:e("Enter the task title"),render:"IF_CONNECTION_SELECTED",required:!0,value:void 0},{componentName:t.componentName.select,id:"priority",label:e("Task Priority"),onChange:"HANDLE_PRIORITY",options:[{label:e("Low"),value:"low"},{label:e("Medium"),value:"medium"},{label:e("High"),value:"high"}],path:"priority",render:"IF_CONNECTION_SELECTED",value:void 0},{componentName:t.componentName.switch,helperText:e("Specify if the task is a template"),id:"is-template",label:e("Is Template"),onChange:"HANDLE_IS_TEMPLATE",path:"is_template",render:"IF_CONNECTION_SELECTED",value:void 0}]},actions:{IF_CONNECTION_SELECTED:({$:a})=>{var i;return d((i=a.getComponent("connection-id"))==null?void 0:i.value)},CONNECTION_ADD_CHANGE:l,HANDLE_BOARD_ID:o("boardId"),HANDLE_IS_TEMPLATE:o("is_template"),HANDLE_PRIORITY:o("priority"),HANDLE_STAGE_ID:o("stageId"),HANDLE_TITLE:o("title"),SET_CONNECTION:o("connectionId"),ON_MACHINE_LOAD:async({$:a})=>{r(a,[{db:"connectionId",id:"connection-id"},{db:"title",id:"title"},{db:"boardId",id:"board-id"},{db:"stageId",id:"stage-id"},{db:"priority",id:"priority"},{db:"is_template",id:"is-template"}])}}}));export{s as default};
