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