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