const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CCTreeView-CwxC6n0W.js","./index-DwzE-W2i.js","./index-B2zoqM3Y.css","./VTreeview-BYmR7iQJ.js","./VTreeview-BCBZV8vW.css","./CCTreeView-D77WZJ4V.css"])))=>i.map(i=>d[i]);
import{_ as R,aw as g,aF as k,aG as C,aH as w,aI as P,dA as T,d as x,s as b,e as s,z as a,w as o,b as n,f as i,H as e,c as m,h as r,t as d,V,y as A}from"./index-DwzE-W2i.js";import{V as D}from"./VTable-Cxuwit5L.js";import{V as I}from"./VTextarea-DtC2nuOc.js";const E={props:{modelValue:Object},components:{CCTreeView:x(()=>A(()=>import("./CCTreeView-CwxC6n0W.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url))},data:()=>({}),methods:{getRegion:T,getRoute:P,getType:w,getRssi:C,getProtocolDataRate:k,getProtocol:g}},q={key:0},v=["innerHTML"],H={key:1},N={key:2},S={key:3};function B(_,l,t,L,M,u){const f=b("CCTreeView");return t.modelValue?(a(),s(V,{key:0},{default:o(()=>[n(i,null,{default:o(()=>[n(D,{class:"frame-details",density:"compact"},{default:o(()=>[e("tbody",null,[e("tr",null,[l[1]||(l[1]=e("td",null,"Type",-1)),e("td",null,d(u.getType(t.modelValue)),1)]),e("tr",null,[l[2]||(l[2]=e("td",null,"Protocol",-1)),e("td",null,d(u.getProtocol(t.modelValue)),1)]),e("tr",null,[l[3]||(l[3]=e("td",null,"Channel",-1)),e("td",null,d(t.modelValue.channel),1)]),e("tr",null,[l[4]||(l[4]=e("td",null,"Region",-1)),e("td",null,d(u.getRegion(t.modelValue)),1)]),e("tr",null,[l[5]||(l[5]=e("td",null,"RSSI",-1)),e("td",null,d(u.getRssi(t.modelValue)),1)]),e("tr",null,[l[6]||(l[6]=e("td",null,"Protocol Data Rate",-1)),e("td",null,d(u.getProtocolDataRate(t.modelValue)+(t.modelValue.speedModified?" (speed modified)":"")),1)]),e("tr",null,[l[7]||(l[7]=e("td",null,"Sequence Number",-1)),e("td",null,d(t.modelValue.sequenceNumber),1)]),t.modelValue.payload?(a(),m("tr",q,[l[8]||(l[8]=e("td",null,"Payload",-1)),e("td",null,d(t.modelValue.payload),1)])):r("",!0),e("tr",null,[l[9]||(l[9]=e("td",null,"Home ID",-1)),e("td",null,d(t.modelValue.homeId?t.modelValue.homeId.toString(16):""),1)]),e("tr",null,[l[10]||(l[10]=e("td",null,"Route",-1)),e("td",{innerHTML:u.getRoute(t.modelValue,!0)},null,8,v)]),t.modelValue.ackRequested!==void 0?(a(),m("tr",H,[l[11]||(l[11]=e("td",null,"Ack Requested",-1)),e("td",null,d(t.modelValue.ackRequested),1)])):r("",!0),t.modelValue.routedAck?(a(),m("tr",N,[l[12]||(l[12]=e("td",null,"Routed Ack",-1)),e("td",null,d(t.modelValue.routedAck),1)])):r("",!0),t.modelValue.routedError?(a(),m("tr",S,[l[13]||(l[13]=e("td",null,"Routed Error",-1)),e("td",null,d(t.modelValue.routedError),1)])):r("",!0)])]),_:1})]),_:1}),n(i,null,{default:o(()=>[t.modelValue.parsedPayload?(a(),s(f,{key:0,class:"my-2",modelValue:t.modelValue.parsedPayload},null,8,["modelValue"])):r("",!0),l[14]||(l[14]=e("span",{class:"text-caption"},"Raw",-1)),n(I,{class:"mono",readonly:"","hide-details":"",variant:"solo","no-resize":"",modelValue:t.modelValue.raw,"onUpdate:modelValue":l[0]||(l[0]=y=>t.modelValue.raw=y),rows:"2"},null,8,["modelValue"])]),_:1})]),_:1})):(a(),s(V,{key:1,class:"fill",justify:"center",align:"center"},{default:o(()=>[n(i,{class:"text-center text-caption"},{default:o(()=>[...l[15]||(l[15]=[e("span",{dense:""},"Click on a frame in table to see details",-1)])]),_:1})]),_:1}))}const O=R(E,[["render",B],["__scopeId","data-v-f5ae3d16"]]);export{O as default};
