import{aa as i,ab as r}from"./_applist-tangy-colts-beg-36.js";import{_ as t}from"./main-tangy-colts-beg.js";import{h as a,s as d}from"./machine.-tangy-colts-beg-869.js";import{h as c,c as l}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:[l(e),{componentName:e.componentName.mixInput,id:"title",label:t("Board Title"),onChange:"HANDLE_TITLE",path:"title",placeholder:t("Enter the board title"),render:"IF_CONNECTION_SELECTED",required:!0,value:void 0},{componentName:e.componentName.mixInput,id:"description",label:t("Board Description"),onChange:"HANDLE_DESCRIPTION",path:"description",placeholder:t("Enter the board description"),render:"IF_CONNECTION_SELECTED",required:!0,value:void 0},{componentName:e.componentName.select,id:"type",label:t("Board Type"),onChange:"HANDLE_BOARD_TYPE",options:[{label:t("Todo"),value:"to-do"},{label:t("Roadmap"),value:"roadmap"}],path:"type",render:"IF_CONNECTION_SELECTED",required:!0,value:void 0}]},actions:{IF_CONNECTION_SELECTED:({$:o})=>{var n;return r((n=o.getComponent("connection-id"))==null?void 0:n.value)},CONNECTION_ADD_CHANGE:c,HANDLE_BOARD_TYPE:a("type"),HANDLE_DESCRIPTION:a("description"),HANDLE_TITLE:a("title"),SET_CONNECTION:a("connectionId"),ON_MACHINE_LOAD:async({$:o})=>{d(o,[{db:"connectionId",id:"connection-id"},{db:"title",id:"title"},{db:"description",id:"description"},{db:"type",id:"type"}])}}}));export{C as default};
