"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[87894],{717531(e,n,i){i.d(n,{N:()=>t});var a=i(29472),r=i(422091);const t=({start:e,end:n},i={},t={})=>(0,a.Kd)(r.A,r.g,r.A,{queryParams:{start:e,end:n},...t},i)},140365(e,n,i){i.r(n),i.d(n,{default:()=>sn});var a=i(274934),r=i(977872),t=i(602086),l=i(244081),s=i(213920),o=i(401004),c=i(968021),d=i(724081),A=i(309130),E=i(100978),h=i(480041),u=i(735038),m=i(262016),I=i(795206),N=i(310379),x=i(893147),_=i(332687),C=i(247816),g=i(409844),M=i(656705),O=i(722837),f=i(455425),j=i(449339),T=i(579875),S=i(920048),p=i(350810),v=i(205521),G=i(561614),R=i(717531),L=i(500785),D=i(221008),b=i(254585),w=i(855554),U=i(589650),y=i(289632),F=i(878151),H=i(938984),V=i(95032),z=i(594005),$=i(224702),k=i(875928),P=i(662986),W=i(331472),B=i(291508),Z=i(421314),Y=i(569994),Q=i(470070),X=i(125799),K=i(556121),q=i(347625),J=i(974390),ee=i(956978),ne=i(434521),ie=i(45978);const ae=g.AH`
  display: flex;
`,re=g.AH`
  max-width: unset;
`,te=(0,C.A)("div")`
  display: grid;
`,le=({name:e})=>(0,a.jsx)(te,{children:(0,a.jsx)(V.A,{variant:"body-primary",isTruncated:!0,children:e})}),se=({name:e,model:n,image:i,textElement:r})=>(0,a.jsxs)(E.A,{width:"100%",flexDirection:"row",gap:A.kc,alignItems:"center",children:[i||(0,a.jsx)(J.A,{model:n,width:20,className:(0,g.cx)([ae,re])}),r||(0,a.jsx)(Z.A,{variant:"body-primary",children:e})]}),oe=e=>(0,a.jsx)(X.A,{description:(0,a.jsx)(Q.sA,{id:"CHANNEL_AI_TABLE_TOOLTIPS_DEVICE_OFFLINE"}),portal:!0,children:(0,a.jsx)(se,{textElement:(0,a.jsx)(le,{name:e.name}),...e})}),ce=e=>(0,a.jsx)(X.A,{description:(0,a.jsx)(Q.sA,{id:"CHANNEL_AI_TABLE_TOOLTIPS_DEVICE_UPDATING"}),portal:!0,children:(0,a.jsx)(se,{image:(0,a.jsx)(K.A,{}),textElement:(0,a.jsx)(le,{name:e.name}),...e})}),de=({device:e})=>{const{formatMessage:n}=(0,Q.tz)(),i=(0,ne.S9)(e),r=(0,ne.LL)(e),{model:l,rollupgrade:s}=e,o=(0,t.useMemo)(()=>(0,ee.aK8)(i),[i]),c=(0,t.useMemo)(()=>r===ie.g.UPGRADING||r===ie.g.CONNECTED&&s,[r,s]),d=(0,q.Q)(e),A=o?`${d} (${n({id:"COMMON_OFFLINE"})})`:d;return(0,t.useMemo)(()=>(0,a.jsx)(c?ce:o?oe:se,{name:A,model:l}),[c,o,l,A])};var Ae=i(877784),Ee=i(912016),he=i(36981),ue=i(675928),me=i(500316);const Ie="inUse",Ne="notAvailable",xe="offline",_e={h:137,s:60,l:81,a:1},Ce={h:38,s:91,l:73,a:1},ge={h:359,s:91,l:78,a:1},Me={h:138,s:59,l:51,a:1},Oe={h:38,s:91,l:64,a:1},fe={h:359,s:61,l:58,a:1},je={h:138,s:59,l:51,a:.6},Te={h:37,s:91,l:65,a:.6},Se={h:359,s:61,l:58,a:.5};var pe=i(814557),ve=i(669439),Ge=i(345272),Re=i(291935),Le=i(419284);const De=(e,n,i,a)=>{const r=Math.max(0,Math.min(100,a));return(0,Le.qi)(r<=50?e:r<=90?n:i)},be=(0,C.A)(E.A)`
  width: ${({widthFactor:e})=>e?16*e+6*(e-1):16}px;
  height: ${16}px;
  border-radius: 2px;
  opacity: ${A.xN};

  ${({noiseScore:e,theme:{themeName:n}})=>`\n    border: 1px solid ${De(Me,Oe,fe,e)};\n    background: ${De(_e,Ce,ge,e)};\n\n    &.${Ie} {\n      opacity: 1;\n      box-shadow: 0 0 5px 2px ${De(je,Te,Se,e)};\n\n      &.${xe} {\n        opacity: 0.6;\n      }\n    }\n\n    &.${Ne} {\n      border: none;\n      background: ${pe.Ay[`desktop-color-neutral-05-${n}`]};\n      box-shadow: none;\n    }\n  `}
`,we=({...e})=>(0,a.jsx)(ve.A,{description:(0,a.jsx)(E.A,{flexDirection:"column",gap:A.YC,children:(0,a.jsx)(H.A,{size:"small",color:"text-1",motif:"dark",children:(0,a.jsx)(Q.sA,{id:"COMMON_WIFI_CHANNELIZATION_NOT_AVAILABLE_REGION",values:{countryCode:(0,r.d4)(Re.AP)}})})}),children:(0,a.jsx)(be,{...e})}),Ue=({neighbours:e,controlChannel:n,centerChannel:i,isActive:r,isDfs:t,radio:l,channelWidth:s,offline:o,...c})=>{const{formatMessage:d}=(0,Q.tz)();return(0,a.jsx)(ve.A,{description:(0,a.jsxs)(E.A,{flexDirection:"column",gap:A.YC,children:[(0,a.jsx)(E.A,{flexDirection:"row",children:(0,a.jsxs)(H.A,{variant:"heading-medium",color:"text-1",motif:"dark",children:[(0,a.jsx)(Q.sA,{id:"COMMON_CHANNEL_PLAN_CONTROL_CHANNEL"})," ",n,t?(0,a.jsxs)(a.Fragment,{children:[" (",(0,a.jsx)(Q.sA,{id:"COMMON_DEVICE_RADIO_CHANNEL_DFS"}),")"]}):null,r?(0,a.jsxs)(a.Fragment,{children:[" (",(0,a.jsx)(Q.sA,{id:o?"COMMON_LAST_REPORTED":"COMMON_ACTIVE"}),")"]}):null]})}),(0,a.jsx)(E.A,{flexDirection:"row",children:(0,a.jsxs)(H.A,{variant:"caption",color:"text-1",motif:"dark",children:[(0,a.jsx)(Q.sA,{id:"COMMON_CHANNEL"}),". ",i," (",Ge.A[l.toUpperCase()]?.frequency," ",s," ",(0,a.jsx)(Q.sA,{id:"COMMON_UNIT_MHZ"}),")"]})}),e.length>0?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(H.A,{variant:"heading-small",color:"text-1",motif:"dark",children:(0,a.jsx)(Q.sA,{id:"CHANNEL_AI_NEAREST_NEIGHBOURS"})}),(0,a.jsx)(E.A,{flexDirection:"column",maxHeight:200,style:{overflow:"auto"},children:e.map(e=>{const n=e.device;return(0,a.jsxs)(E.A,{width:"100%",flexDirection:"row",gap:A.kc,alignItems:"flex-start",children:[(0,a.jsx)(J.A,{model:n.model,width:A.Ln}),(0,a.jsx)(H.A,{size:"small",color:"text-1",motif:"dark",children:`${(0,q.Q)(n)} - ${d({id:"COMMON_CHANNEL_ABBREVIATION"})} ${e.channel} (${e.channel_width} ${d({id:"COMMON_UNIT_MHZ"})}, ${e.scan.signal} ${d({id:"COMMON_UNIT_DBM"})})`})]},n.mac)})})]}):null]}),children:(0,a.jsx)(be,{...c})})},ye=({notAvailable:e,...n})=>(0,a.jsx)(e?we:Ue,{...n}),Fe=({children:e})=>(0,a.jsx)(E.A,{width:16,height:16,children:(0,a.jsx)(H.A,{color:"text-3",size:"xsmall",style:{fontSize:"9px",textAlign:"center",width:"100%"},children:e})});var He=i(207701);const Ve=[ue.G.STAR,ue.G.DEVICE_NAME,ue.G.CHANNELS],ze=g.AH`
  animation: ${g.i7`
    from {
      opacity: 1;
    }
    to {
      opacity: 0.4;
    }
`} 1.5s infinite alternate;
`,$e=(0,C.A)("div",(0,B.A)("columns","columnWidth","hideLegend"))`
  display: grid;
  grid-template-columns: repeat(
    ${({columns:e,columnWidth:n=20})=>`${e}, ${n}`}px
  );
  column-gap: ${6}px;
  row-gap: ${6}px;
`,ke=(0,C.A)("div",(0,B.A)("rowIndex","columnIndexStart","columnIndexEnd"))`
  grid-column-start: ${({columnIndexStart:e})=>e};
  grid-column-end: ${({columnIndexEnd:e,columnIndexStart:n})=>e??n+1};
  grid-row-start: ${({rowIndex:e})=>e};
  display: flex;
  height: ${A.Ln};
`,Pe=({offline:e,children:n})=>(0,a.jsx)(E.A,{width:"100%",opacity:e?.5:1,children:n}),We=e=>10**(e/10),Be=({header:{id:e}})=>me.QQ[e]?(0,a.jsx)(Z.A,{color:"inherit",size:"inherit",weight:"inherit",children:(0,a.jsx)(Q.sA,{id:me.QQ[e]})}):null;var Ze=i(599110),Ye=i(227170),Qe=i(910057);const Xe=(0,t.memo)(()=>{const e=(0,r.wA)(),n=(0,t.useCallback)(()=>{e((0,Qe.pu)([])),e((0,Qe.J_)([]))},[e]);return(0,a.jsx)(E.A,{justifyContent:"center",alignItems:"center",children:(0,a.jsx)(Ye.A,{title:(0,a.jsx)(Q.sA,{id:"COMMON_NO_MATCH"}),description:(0,a.jsx)(Q.sA,{id:"COMMON_DEVICE_NO_RADIOS_MATCH",values:{button:(0,a.jsx)(Ze.A,{type:"button",variant:"inline",onClick:n,children:(0,a.jsx)(Q.sA,{id:"COMMON_RESET_THEM_BUTTON_TEXT"})})}})})})});var Ke=i(483071);const qe=[{value:25},{value:50},{value:100,default:!0}];var Je=i(188713);const en={padding:"0",width:"auto"},nn=g.AH`
  [class^='cellInner__'] {
    overflow: visible;
  }
`,an=(0,C.A)(E.A)`
  flex-direction: column;
  width: 100%;
`,rn=Object.values(ue.G),tn=({radios:e})=>{const n=(0,r.wA)(),[i,l]=(0,t.useState)(0),s=Object.values(Object.entries(e).reduce((e,[n,i])=>(e[n]||(e[n]=i),e),{})),o=(0,r.d4)(x.l7),c=(0,r.d4)(D.H),d=(0,r.d4)(x.Rz),h=(0,r.d4)(b.WS),m=Object.values(e)[0],{radio:I}=m||{},N=(0,t.useMemo)(()=>I?.radio===G.sx.RADIO_6E?S.kL[S.z6.FULL_6E]:Object.values(S.kL).find(e=>e.band===I?.radio),[I?.radio]),_=(0,t.useMemo)(()=>I?.radio===G.sx.RADIO_NG?(0,p.ir)(c,!0):N?.getLayout(c),[I?.radio,c,N]),C=(0,t.useMemo)(()=>(0,L.r)(c,null,I?.radio,Number(I?.ht),!1,!1,!1,void 0,!0),[c,I?.radio,I?.ht]),f=(0,t.useMemo)(()=>(0,L.r)(c,null,I?.radio,null,!0),[I?.radio,c]),R=(0,t.useCallback)(({id:e})=>{n((0,w.V)([e])),!h&&e?n((0,v.XP)({type:j.H.RADIOS,id:y.PANEL_RADIOS_SIDE_PANEL_ID,tab:U.BC.SETTINGS})):h&&!e&&n((0,v.K5)())},[n,h]);(0,t.useEffect)(()=>{I?.radio&&n((0,u.E)(I.radio))},[n,I?.radio]),(0,t.useEffect)(()=>()=>{n((0,Qe.Vm)(Je.w[Ke.ez.APPLYING_CHANGES]))},[n]);const B=(0,t.useMemo)(()=>((e,n,i,r,t)=>[{id:ue.G.DEVICE_NAME,header:Be,...me.UO[ue.G.DEVICE_NAME],accessorFn:z.Fo,compare:(0,z.l0)(({device:e})=>e.name),cell:({row:{original:{device:e,offline:n}}})=>(0,a.jsx)(Pe,{offline:n,children:(0,a.jsx)(de,{device:e})})},{id:`${ue.G.CHANNELS}__${r??""}`,header:()=>e?(0,a.jsx)($e,{columns:e.columns,columnWidth:e.cellWidth,children:Object.entries(e.channels?.[Y.P]||{}).map(([e,{from:n,to:i}])=>(0,a.jsx)(ke,{rowIndex:1,columnIndexStart:n,columnIndexEnd:i,children:(0,a.jsx)(Fe,{children:e},e)},e))}):null,size:e?22*Object.entries(e.channels?.[Y.P]||{}).length+(r===G.sx.RADIO_NG?45:25):0,enableDnd:!1,enableResizing:!1,enableSorting:!1,accessorFn:z.Fo,cell:({row:{original:{neighbours:r,radio:l,device:s,activeChannel:o,channel:c,offline:d}}})=>{const A=(t||[]).find(e=>e.device_mac===s.mac&&e.device_radio===l?.radio&&e.previous_channel===o);return e?(0,a.jsx)($e,{columns:e.columns,columnWidth:e.cellWidth,className:A?ze:"",children:Object.entries(e.channels?.[l.ht]||{}).map(([e,{from:t,to:s,row:A}])=>{const{subChannels:E}=Ae.R[l.radio]?.[l.ht]?.[+e]??{},h=E.flatMap(e=>(r?.[e]||[]).map(n=>({...n,channel:e}))),u=(e=>{if(e.length<1)return 0;const n=e.map(e=>e.scan.signal),{total:i}=n.reduce((e,n)=>({total:null!==e.total?e.total+We(n):We(n)}),{total:null});return Math.min(100,(0,$.Zy)(He.C8,He.yv,10*Math.log10(i)))})(h),m=E.some(e=>!n.includes(e)),I=i.includes(+e),N=E?.includes(o||c),x=N?o||c:E[0];return(0,a.jsx)(ke,{rowIndex:A%2,columnIndexStart:t,columnIndexEnd:s,children:(0,a.jsx)(ye,{noiseScore:u,className:(0,g.cx)({[Ie]:N,[Ne]:m,[xe]:d}),neighbours:h,notAvailable:m,widthFactor:l?.ht?l.ht/Y.P:1,controlChannel:x,centerChannel:+e,isActive:N,isDfs:I,radio:l?.radio,channelWidth:l?.ht,offline:d},e)},e)})}):null}},{id:ue.G.ACTIVITY_24H,header:Be,...me.UO[ue.G.ACTIVITY_24H],accessorFn:z.Fo,compare:(0,z.l0)(({dailyUsage:e})=>e),cell:({row:{original:{dailyUsage:e,offline:n}}})=>(0,a.jsx)(Pe,{offline:n,children:e>0?(0,a.jsx)(F.A,{size:"body",type:"bytes",input:e}):(0,a.jsx)(Q.sA,{id:"COMMON_FALLBACK"})})},{id:ue.G.TX_RETRIES,header:Be,...me.UO[ue.G.TX_RETRIES],accessorFn:z.Fo,compare:(0,z.l0)(({retryPercentage:e=0})=>+e),cell:({row:{original:{retryPercentage:e=0,offline:n}}})=>(0,a.jsx)(Pe,{offline:n,children:(0,a.jsx)(H.A,{variant:"body-primary",color:(0,k.l)(+e),children:(0,P.l)(e)})})},{id:ue.G.AVG_SIGNAL,header:Be,...me.UO[ue.G.AVG_SIGNAL],accessorFn:z.Fo,compare:(0,z.l0)(({averageSignal:e})=>e),cell:({row:{original:{averageSignal:e,offline:n}}})=>(0,a.jsx)(Pe,{offline:n,children:e?(0,a.jsx)(E.A,{alignItems:"center",width:"100%",height:"100%",children:(0,a.jsxs)(H.A,{variant:"body-primary",color:(0,W.b5)(e),children:[Math.round(e)," ",(0,a.jsx)(Q.sA,{id:"COMMON_UNIT_DBM"})]})}):(0,a.jsx)(Q.sA,{id:"COMMON_FALLBACK"})})},{id:ue.G.CLIENTS,header:Be,...me.UO[ue.G.CLIENTS],accessorFn:z.Fo,compare:(0,z.l0)(({clientCount:e})=>e),cell:({row:{original:{clientCount:e,offline:n}}})=>(0,a.jsx)(Pe,{offline:n,children:e})},{id:ue.G.AVERAGE_INTERFERENCE,header:Be,...me.UO[ue.G.AVERAGE_INTERFERENCE],accessorFn:z.Fo,compare:(0,z.l0)(({averageInterference:e})=>e),cell:({row:{original:{averageInterference:e,offline:n}}})=>(0,a.jsx)(Pe,{offline:n,children:e?(0,a.jsx)(E.A,{alignItems:"center",width:"100%",height:"100%",children:(0,a.jsx)(V.A,{color:(0,Ee.D)(e),children:(0,P.l)(e)})}):(0,a.jsx)(Q.sA,{id:"COMMON_FALLBACK"})})},{id:ue.G.AVERAGE_AIRTIME,header:Be,...me.UO[ue.G.AVERAGE_AIRTIME],accessorFn:z.Fo,compare:(0,z.l0)(({averageAirtime:e})=>e),cell:({row:{original:{averageAirtime:e,offline:n}}})=>(0,a.jsx)(Pe,{offline:n,children:e?(0,a.jsx)(E.A,{alignItems:"center",width:"100%",height:"100%",children:(0,a.jsx)(V.A,{color:(0,he.k)(e),children:(0,P.l)(e)})}):(0,a.jsx)(Q.sA,{id:"COMMON_FALLBACK"})})}])(_,C,f,I?.radio,d),[_,C,f,I?.radio,d]),Z=Object.values(e||{}).length,X=(0,t.useMemo)(()=>({hierarchy:!1,...Ve.reduce((e,n)=>(e[n]=!0,e),{}),...Object.values(rn).filter(e=>!Ve.includes(e)).reduce((e,n)=>(e[n]=!o.length||o.includes(n),e),{})}),[o]),K=(0,t.useCallback)(({rowsPerPage:e,pageNumber:n})=>(0,a.jsx)(M.A,{columns:B,data:s,columnPinningLeftState:me.ll,rowStyle:A.gc,initialExpanded:!0,columnVisibility:X,pageIndex:n,pageSize:e,onRowClick:R,rowClassName:nn}),[B,s,R,X]);return(0,a.jsx)(an,{gap:A.Ln,padding:A.Ln,children:(0,a.jsx)(E.A,{overflowX:"auto",height:"100%",children:s.length?(0,a.jsx)(T.A,{wrapperFlexProps:en,itemCount:Z,tableType:O.l.RADIOS,onRenderTable:K,onPageChanged:l,pageNumber:i,rowOptions:qe}):(0,a.jsx)(Xe,{})})})},ln=e=>(0,d.A)([(0,R.N)({start:Date.now()-f.jU,end:Date.now()})],(0,a.jsx)(tn,{...e})),sn=()=>{const e=(0,r.wA)(),n=(0,r.d4)(_.lU),i=(0,r.d4)(x.ip),C=(0,r.d4)(x.ax),g=(0,c.A)(C),M=(0,t.useCallback)(()=>{e((0,u.E)(i))},[e,i]);return(0,t.useEffect)(()=>{g&&!C&&M()},[g,C,M]),(0,d.A)([(0,m.m)(void 0,{crudCacheStrategy:{type:l.e.CACHE}}),(0,o.Zi)(s.B.CHANNEL_AI),(0,o.Zi)(s.B.SETTINGS),(0,o.Zi)(s.B.COMMON),(0,I.Uc)(void 0,{crudCacheStrategy:{type:l.e.CACHE}}),(0,N.v)(void 0,{crudCacheStrategy:{type:l.e.CACHE}}),(0,u.E)(i)],(0,a.jsx)(E.A,{flexDirection:"column",flex:1,gap:A.Ln,overflow:"auto",position:"relative",children:(0,a.jsx)(ln,{radios:n})}),{trackingName:h.t.RADIOS})}},894124(e,n,i){var a;i.d(n,{F:()=>a}),function(e){e.AUTO="auto",e.MANUAL="manual"}(a||(a={}))},500316(e,n,i){i.d(n,{QQ:()=>l,UO:()=>t,ll:()=>r});var a=i(675928);const r=[a.G.STAR,a.G.DEVICE_NAME],t={[a.G.STAR]:{size:20,minSize:20},[a.G.DEVICE_NAME]:{size:170,minSize:100},[a.G.ACTIVITY_24H]:{size:110,minSize:70},[a.G.TX_RETRIES]:{size:135,minSize:120},[a.G.AVG_SIGNAL]:{size:110,minSize:70},[a.G.CLIENTS]:{size:80,minSize:70},[a.G.OPTIMIZATION]:{size:81,minSize:70},[a.G.AVERAGE_INTERFERENCE]:{size:150,minSize:120},[a.G.AVERAGE_AIRTIME]:{size:120,minSize:100}},l={[a.G.STAR]:null,[a.G.DEVICE_NAME]:"COMMON_NAME",[a.G.CHANNELS]:null,[a.G.CLIENTS]:"COMMON_CLIENTS",[a.G.ACTIVITY_24H]:"COMMON_24_HR_USAGE",[a.G.TX_RETRIES]:"COMMON_AVG_TX_RETRIES",[a.G.AVG_SIGNAL]:"COMMON_AVG_SIGNAL",[a.G.OPTIMIZATION]:"CHANNEL_AI_OPTIMIZATION",[a.G.AVERAGE_INTERFERENCE]:"COMMON_AVG_INTERFERENCE",[a.G.AVERAGE_AIRTIME]:"COMMON_AVG_AIRTIME"}},675928(e,n,i){var a,r;i.d(n,{G:()=>a,m:()=>r}),function(e){e.STAR="star",e.DEVICE_NAME="deviceName",e.CHANNELS="channels",e.CLIENTS="clients",e.ACTIVITY_24H="24hActivity",e.TX_RETRIES="txRetries",e.AVG_SIGNAL="avgSignal",e.OPTIMIZATION="optimization",e.AVERAGE_INTERFERENCE="averageInterference",e.AVERAGE_AIRTIME="averageAirtime"}(a||(a={})),function(e){e.CACHED="cached",e.TRIGGERED="triggered"}(r||(r={}))},332687(e,n,i){i.d(n,{Y5:()=>_,lU:()=>x,q$:()=>C});var a=i(222102),r=i(347625),t=i(32887),l=i(781663),s=i(561614),o=i(681238),c=i(956978),d=i(434521),A=i(927316),E=i(754924),h=i(893147),u=i(894124);const m="auto",I=e=>e.reduce((e,{channel:n,neighbours:i=[]})=>({...e,[n]:[...e[n]||[],...i]}),{}),N=(0,a.Mz)(E.ID,o.D,h.ip,h.Ql,(e,n,i,a)=>{const o={};for(let E=0;E<e.length;E+=1){const h=e[E];if(!(0,t.V)(h)||(0,c.r$V)(h)||(0,c.CB0)(h)||(0,c.YdF)(h))continue;const u=a?.ap_neighbours?.find(e=>e.device.mac===h.mac);for(let e=0;e<h.radio_table?.length;e+=1){const a=h.radio_table[e],t=h.radio_table_stats?.find(({name:e})=>e===a.name);if(a&&a.radio===i){const e=(0,l.R)({device:h,radio:a}),i=(h.vap_table||[]).find(({radio_name:e})=>e===a.name),E={id:e,device:h,radio:a,modelName:(0,r.Lm)(h.model),offline:(0,c.aK8)((0,d.S9)(h)),wifiBand:a.radio,tx_power_mode:a.tx_power_mode||s.PB.AUTO,channel:(0,A.ry)({name:a.name,radio_table:h.radio_table,radio_table_stats:h.radio_table_stats}),activeChannel:i?.channel,channelWidth:(0,A.Aq)(a,i),clientCount:t?.num_sta??0,dailyUsage:n[h.mac]?.[a.name]?.bytes,retryPercentage:n[h.mac]?.[a.name]?.tx_retries_percentage,averageSignal:n[h.mac]?.[a.name]?.client_signal_avg,averageInterference:n[h.mac]?.[a.name]?.interference_avg,averageAirtime:n[h.mac]?.[a.name]?.utilization_avg,neighbours:I(u?.channel_neighbours??[])};o[E.id]=E}}}return o}),x=(0,a.Mz)(N,h.v0,(e,n)=>Object.keys(e).filter(i=>{return a=e[i].radio,0===n.length||!(!n.includes(u.F.AUTO)||a?.channel!==m)||n.includes(u.F.MANUAL)&&a?.channel!==m;var a}).reduce((n,i)=>(n[i]=e[i],n),{})),_=(0,a.Mz)(N,e=>Object.keys(e).length),C=(0,a.Mz)(N,e=>Object.keys(e).filter(n=>!e[n].offline&&e[n].tx_power_mode!==s.PB.DISABLED).length)},36981(e,n,i){var a;i.d(n,{k:()=>s}),function(e){e.LOW="LOW",e.MEDIUM="MEDIUM",e.HIGH="HIGH"}(a||(a={}));const r={[a.LOW]:40,[a.MEDIUM]:70};var t;!function(e){e.DEFAULT="",e.DANGER="danger",e.WARNING="warning",e.SUCCESS="success"}(t||(t={}));const l={[t.SUCCESS]:"positive",[t.WARNING]:"notice",[t.DANGER]:"destructive",[t.DEFAULT]:"disabled"},s=e=>{switch(!0){case e<=r[a.LOW]:return l[t.SUCCESS];case e<=r[a.MEDIUM]:return l[t.WARNING];case e>r[a.MEDIUM]:return l[t.DANGER];default:return l[t.DEFAULT]}}},912016(e,n,i){var a;i.d(n,{D:()=>s}),function(e){e.LOW="LOW",e.MEDIUM="MEDIUM",e.HIGH="HIGH"}(a||(a={}));const r={[a.LOW]:15,[a.MEDIUM]:30};var t;!function(e){e.DEFAULT="",e.DANGER="danger",e.WARNING="warning",e.SUCCESS="success"}(t||(t={}));const l={[t.SUCCESS]:"positive",[t.WARNING]:"notice",[t.DANGER]:"destructive",[t.DEFAULT]:"disabled"},s=e=>{switch(!0){case e<=r[a.LOW]:return l[t.SUCCESS];case e<=r[a.MEDIUM]:return l[t.WARNING];case e>r[a.MEDIUM]:return l[t.DANGER];default:return l[t.DEFAULT]}}},875928(e,n,i){i.d(n,{l:()=>t,u:()=>r});var a=i(999396);const r=e=>{switch(!0){case e<=a.d_[a.Jm.LOW]:return"positive";case e<=a.d_[a.Jm.MEDIUM]:return"notice";case e>a.d_[a.Jm.MEDIUM]:return"destructive";default:return"text-3"}},t=e=>a.JZ[r(e)]}}]);