import{aa as t,ab as i}from"./_applist-tangy-colts-beg-36.js";import{_ as n}from"./main-tangy-colts-beg.js";import{h as o,s as N}from"./machine.-tangy-colts-beg-869.js";import{h as r,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(e,a){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,a),a)}};const C=t(({helpers:e})=>({states:{components:[E(e),{componentName:e.componentName.mixInput,id:"board-id",label:n("Board ID"),onChange:"HANDLE_BOARD_ID",path:"board_id",placeholder:n("Enter the Board ID"),render:"IF_CONNECTION_SELECTED",required:!0,value:void 0},{componentName:e.componentName.mixInput,id:"task-id",label:n("Task ID"),onChange:"HANDLE_TASK_ID",path:"task_id",placeholder:n("Enter the Task ID"),render:"IF_CONNECTION_SELECTED",required:!0,value:void 0},{componentName:e.componentName.mixInput,id:"new-stage-id",label:n("New Stage ID"),onChange:"HANDLE_NEW_STAGE_ID",path:"new_stage_id",placeholder:n("Enter the New Stage ID"),render:"IF_CONNECTION_SELECTED",required:!0,value:void 0},{componentName:e.componentName.mixInput,id:"new-index",label:n("New Index"),onChange:"HANDLE_NEW_INDEX",path:"new_index",placeholder:n("Enter the New Index"),render:"IF_CONNECTION_SELECTED",value:void 0},{componentName:e.componentName.mixInput,id:"new-board-id",label:n("New Board ID"),onChange:"HANDLE_NEW_BOARD_ID",path:"new_board_id",placeholder:n("Enter the New Board ID"),render:"IF_CONNECTION_SELECTED",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:r,HANDLE_BOARD_ID:o("boardId"),HANDLE_NEW_BOARD_ID:o("newBoardId"),HANDLE_NEW_INDEX:o("newIndex"),HANDLE_NEW_STAGE_ID:o("newStageId"),HANDLE_TASK_ID:o("taskId"),SET_CONNECTION:o("connectionId"),ON_MACHINE_LOAD:async({$:a})=>{N(a,[{db:"connectionId",id:"connection-id"},{db:"boardId",id:"board-id"},{db:"taskId",id:"task-id"},{db:"newBoardId",id:"new-board-id"},{db:"newIndex",id:"new-index"},{db:"newStageId",id:"new-stage-id"}])}}}));export{C as default};
