import{aL as e}from"./index-nE6cslhy.js";function r(e){var r;const o=(null==(r=e.contact_type)?void 0:r.toLowerCase())??"";return"room server"===o||"room_server"===o||"room"===o||"server"===o?{type:"room_server",isRepeater:!0===e.is_repeater,isCompanion:!1,isRoomServer:!0,isClient:!1,label:"Room Server",badgeText:"ROOM"}:"companion"===o||"chat node"===o||"chat_node"===o||"chat"===o?{type:"companion",isRepeater:!1,isCompanion:!0,isRoomServer:!1,isClient:!1,label:"Companion",badgeText:"COMP"}:"client"===o||"cli"===o?{type:"companion",isRepeater:!1,isCompanion:!1,isRoomServer:!1,isClient:!0,label:"Client",badgeText:"CLI"}:"repeater"===o||"rep"===o||!0===e.is_repeater?{type:"repeater",isRepeater:!0,isCompanion:!1,isRoomServer:!1,isClient:!1,label:"Repeater",badgeText:"RPT"}:{type:"unknown",isRepeater:!1,isCompanion:!1,isRoomServer:!1,isClient:!1,label:"Unknown",badgeText:""}}function o(r){switch(r){case e.GRP_TXT:case e.TXT_MSG:case e.REQ:case e.ANON_REQ:return"companion";case e.TRACE:case e.PATH:return"repeater";case e.GRP_DATA:return"room_server";default:return"unknown"}}function n(e){switch(e){case 1:return"companion";case 2:return"repeater";case 3:return"room_server";default:return"unknown"}}export{r as c,o as i,n as m};
