import{aa as i,ab as d}from"./_applist-tangy-colts-beg-36.js";import{_ as t}from"./main-tangy-colts-beg.js";import{h as a,s}from"./machine.-tangy-colts-beg-869.js";import{h as l,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,o){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,o),o)}};const C=i(({helpers:e})=>({states:{components:[N(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:"title",label:t("Stage Title"),onChange:"HANDLE_TITLE",path:"title",placeholder:t("Enter the stage title"),render:"IF_CONNECTION_SELECTED",required:!0,value:void 0},{componentName:e.componentName.mixInput,id:"position",label:t("Stage Position"),onChange:"HANDLE_POSITION",path:"position",placeholder:t("Enter the Position within the board"),render:"IF_CONNECTION_SELECTED",value:void 0},{componentName:e.componentName.select,id:"status",label:t("Status"),onChange:"HANDLE_STATUS",options:[{label:t("Open"),value:"open"},{label:t("Closed"),value:"closed"}],path:"status",render:"IF_CONNECTION_SELECTED",value:void 0}]},actions:{IF_CONNECTION_SELECTED:({$:o})=>{var n;return d((n=o.getComponent("connection-id"))==null?void 0:n.value)},CONNECTION_ADD_CHANGE:l,HANDLE_BOARD_ID:a("boardId"),HANDLE_POSITION:a("position"),HANDLE_STATUS:a("status"),HANDLE_TITLE:a("title"),SET_CONNECTION:a("connectionId"),ON_MACHINE_LOAD:async({$:o})=>{s(o,[{db:"connectionId",id:"connection-id"},{db:"title",id:"title"},{db:"position",id:"position"},{db:"boardId",id:"board-id"},{db:"status",id:"status"}])}}}));export{C as default};
