import{aa as t,ab as r}from"./_applist-tangy-colts-beg-36.js";import{_ as n}from"./main-tangy-colts-beg.js";import{h as a,s as d}from"./machine.-tangy-colts-beg-869.js";import{h as m,c}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 I=t(({helpers:e})=>({states:{components:[c(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:"member-id",label:n("Member ID"),onChange:"HANDLE_MEMBER_ID",path:"member_id",placeholder:n("Enter the Member ID"),render:"IF_CONNECTION_SELECTED",required:!0,value:void 0},{componentName:e.componentName.switch,helperText:n("Switch ON to add as viewer only"),id:"is-viewer-only",label:n("Is Viewer Only"),onChange:"HANDLE_IS_VIEWER_ONLY",path:"is_viewer_only",render:"IF_CONNECTION_SELECTED",size:"small",value:void 0}]},actions:{IF_CONNECTION_SELECTED:({$:o})=>{var i;return r((i=o.getComponent("connection-id"))==null?void 0:i.value)},CONNECTION_ADD_CHANGE:m,HANDLE_BOARD_ID:a("boardId"),HANDLE_IS_VIEWER_ONLY:a("isViewerOnly"),HANDLE_MEMBER_ID:a("memberId"),SET_CONNECTION:a("connectionId"),ON_MACHINE_LOAD:async({$:o})=>{d(o,[{db:"connectionId",id:"connection-id"},{db:"boardId",id:"board-id"},{db:"memberId",id:"member-id"},{db:"isViewerOnly",id:"is-viewer-only"}])}}}));export{I as default};
