import{aa as i,ab as m}from"./_applist-tangy-colts-beg-36.js";import{_ as t}from"./main-tangy-colts-beg.js";import{s as c}from"./machine.-tangy-colts-beg-869.js";import{h as a,a as p,c as u}from"./linecomm-tangy-colts-beg-705.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 s=i(({helpers:e})=>({states:{components:[u(e),{componentName:e.componentName.select,id:"group-room-selector-id",label:t("Chose Group Or Room"),onChange:"SET_SELECTOR_GROUP_ROOM",options:[{label:t("Group"),value:"group"},{label:t("Room"),value:"room"}],path:"groupOrRoom",placeholder:t("Select a Group or Room"),render:"IF_CONNECTION_SELECTED",required:!0,value:"group"},{componentName:e.componentName.mixInput,helperText:t("Enter Group ID from which want to fetch members"),id:"group-id",label:t("Group ID"),onChange:"SET_GROUP",path:"groupId",render:"IF_GROUP_SELECTED",required:!0,value:[]},{componentName:e.componentName.mixInput,helperText:t("Enter Room ID from which want to fetch members"),id:"room-id",label:t("Room ID"),onChange:"SET_ROOM",path:"roomId",render:"IF_ROOM_SELECTED",required:!0,value:[]}]},actions:{IF_CONNECTION_SELECTED:({$:o})=>{var r;return m((r=o.getComponent("connection-id"))==null?void 0:r.value)},IF_GROUP_SELECTED:({$:o})=>{var r,n;if(((r=o.getComponent("group-room-selector-id"))==null?void 0:r.value)==="group"&&m((n=o.getComponent("connection-id"))==null?void 0:n.value))return!0},IF_ROOM_SELECTED:({$:o})=>{var r,n;if(((r=o.getComponent("group-room-selector-id"))==null?void 0:r.value)==="room"&&m((n=o.getComponent("connection-id"))==null?void 0:n.value))return!0},CONNECTION_ADD_CHANGE:p,SET_CONNECTION:a("connectionId"),SET_GROUP:a("groupId"),SET_ROOM:a("roomId"),SET_SELECTOR_GROUP_ROOM:a("groupOrRoom"),ON_MACHINE_LOAD:async({$:o})=>{c(o,[{db:"connectionId",id:"connection-id"},{db:"groupOrRoom",id:"group-room-selector-id"},{db:"groupId",id:"group-id"},{db:"roomId",id:"room-id"}])}}}));export{s as default};
