import{aa as t,ab as d}from"./_applist-tangy-colts-beg-36.js";import{_ as o}from"./main-tangy-colts-beg.js";import{h as n,s as r}from"./machine.-tangy-colts-beg-869.js";import{h as c,c as i}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 m=t(({helpers:e})=>({states:{components:[i(e),{componentName:e.componentName.mixInput,id:"board-id",label:o("Board ID"),onChange:"HANDLE_BOARD_ID",path:"board_id",placeholder:o("Enter the board ID"),render:"IF_CONNECTION_SELECTED",required:!0,value:void 0},{componentName:e.componentName.mixInput,id:"label-id",label:o("Label ID"),onChange:"HANDLE_LABEL_ID",path:"label_id",placeholder:o("Enter the label ID"),render:"IF_CONNECTION_SELECTED",required:!0,value:void 0},{componentName:e.componentName.mixInput,id:"label",label:o("Label Title"),onChange:"HANDLE_LABEL",path:"label",placeholder:o("Enter the label title"),render:"IF_CONNECTION_SELECTED",value:void 0},{componentName:e.componentName.mixInput,id:"color",label:o("Label Color (hex code)"),onChange:"HANDLE_COLOR",path:"color",placeholder:o("Enter the label color (hex code)"),render:"IF_CONNECTION_SELECTED",value:void 0},{componentName:e.componentName.mixInput,id:"bg-color",label:o("Label Background Color (hex code)"),onChange:"HANDLE_BG_COLOR",path:"bg_color",placeholder:o("Enter the label background color (hex code)"),render:"IF_CONNECTION_SELECTED",required:!0,value:void 0}]},actions:{IF_CONNECTION_SELECTED:({$:a})=>{var l;return d((l=a.getComponent("connection-id"))==null?void 0:l.value)},CONNECTION_ADD_CHANGE:c,HANDLE_BG_COLOR:n("bgColor"),HANDLE_BOARD_ID:n("boardId"),HANDLE_COLOR:n("color"),HANDLE_LABEL:n("label"),HANDLE_LABEL_ID:n("labelId"),SET_CONNECTION:n("connectionId"),ON_MACHINE_LOAD:async({$:a})=>{r(a,[{db:"connectionId",id:"connection-id"},{db:"label",id:"label"},{db:"color",id:"color"},{db:"bgColor",id:"bg-color"},{db:"boardId",id:"board-id"},{db:"labelId",id:"label-id"}])}}}));export{m as default};
