"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[87894],{70708:(e,t,n)=>{var a;n.d(t,{k:()=>c}),function(e){e.LOW="LOW",e.MEDIUM="MEDIUM",e.HIGH="HIGH"}(a||(a={}));const r={[a.LOW]:40,[a.MEDIUM]:70};var l;!function(e){e.DEFAULT="",e.DANGER="danger",e.WARNING="warning",e.SUCCESS="success"}(l||(l={}));const i={[l.SUCCESS]:"positive",[l.WARNING]:"notice",[l.DANGER]:"destructive",[l.DEFAULT]:"disabled"},c=e=>{switch(!0){case e<=r[a.LOW]:return i[l.SUCCESS];case e<=r[a.MEDIUM]:return i[l.WARNING];case e>r[a.MEDIUM]:return i[l.DANGER];default:return i[l.DEFAULT]}}},155474:(e,t,n)=>{n.d(t,{l:()=>l,u:()=>r});var a=n(595763);const r=e=>{switch(!0){case e<=a.d_[a.Jm.LOW]:return"success";case e<=a.d_[a.Jm.MEDIUM]:return"warning";case e>a.d_[a.Jm.MEDIUM]:return"danger";default:return"tertiary"}},l=e=>a.JZ[r(e)]},304767:(e,t,n)=>{var a;n.d(t,{D:()=>c}),function(e){e.LOW="LOW",e.MEDIUM="MEDIUM",e.HIGH="HIGH"}(a||(a={}));const r={[a.LOW]:15,[a.MEDIUM]:30};var l;!function(e){e.DEFAULT="",e.DANGER="danger",e.WARNING="warning",e.SUCCESS="success"}(l||(l={}));const i={[l.SUCCESS]:"positive",[l.WARNING]:"notice",[l.DANGER]:"destructive",[l.DEFAULT]:"disabled"},c=e=>{switch(!0){case e<=r[a.LOW]:return i[l.SUCCESS];case e<=r[a.MEDIUM]:return i[l.WARNING];case e>r[a.MEDIUM]:return i[l.DANGER];default:return i[l.DEFAULT]}}},395385:(e,t,n)=>{n.r(t),n.d(t,{default:()=>it});var a=n(469733),r=n(296540),l=n(592510),i=n(834959),c=n(413357),o=n(212178),s=n(582724),E=n(566723),d=n(294303),m=n(818526),A=n(160130),u=n(71177),I=n(171073),N=n(103595),_=n(67097),h=n(959376),C=n(71479),g=n(132196),M=n(83604),O=n(249304),f=n(945132),S=n(398300),T=n(905410),p=n(276420),G=n(368116),v=n(845030),R=n(564985),L=n(705112),D=n(762720),x=n(252959),b=n(960407),w=n(452269),y=n(855019),U=n(415677),F=n(777916),H=n(217439),V=n(705145),z=n(396660),k=n(23961),$=n(155474),P=n(178233),W=n(38937),B=n(311785),j=n(115829),Z=n(736201),Q=n(699784),X=n(271856),Y=n(329128),K=n(6510),q=n(6176),J=n(780811),ee=n(837612),te=n(602197);const ne=g.AH`
  display: flex;
`,ae=g.AH`
  max-width: unset;
`,re=(0,C.A)("div")`
  display: grid;
`,le=({name:e})=>r.createElement(re,null,r.createElement(V.A,{variant:"body-primary",isTruncated:!0},e)),ie=({name:e,model:t,image:n,textElement:a})=>r.createElement(d.A,{width:"100%",flexDirection:"row",gap:E.kc,alignItems:"center"},n||r.createElement(q.A,{model:t,width:20,className:(0,g.cx)([ne,ae])}),a||r.createElement(j.A,{variant:"body-primary"},e)),ce=e=>r.createElement(X.A,{description:r.createElement(Q.sA,{id:"CHANNEL_AI_TABLE_TOOLTIPS_DEVICE_OFFLINE"}),portal:!0},r.createElement(ie,{textElement:r.createElement(le,{name:e.name}),...e})),oe=e=>r.createElement(X.A,{description:r.createElement(Q.sA,{id:"CHANNEL_AI_TABLE_TOOLTIPS_DEVICE_UPDATING"}),portal:!0},r.createElement(ie,{image:r.createElement(Y.A,null),textElement:r.createElement(le,{name:e.name}),...e})),se=({device:e})=>{const{formatMessage:t}=(0,Q.tz)(),n=(0,ee.S9)(e),a=(0,ee.LL)(e),{model:l,rollupgrade:i}=e,c=(0,r.useMemo)(()=>(0,J.aK8)(n),[n]),o=(0,r.useMemo)(()=>a===te.g.UPGRADING||a===te.g.CONNECTED&&i,[a,i]),s=(0,K.Q)(e),E=c?`${s} (${t({id:"COMMON_OFFLINE"})})`:s;return(0,r.useMemo)(()=>o?r.createElement(oe,{name:E,model:l}):c?r.createElement(ce,{name:E,model:l}):r.createElement(ie,{name:E,model:l}),[o,c,l,E])};var Ee=n(439173),de=n(304767),me=n(70708),Ae=n(468307),ue=n(719481);const Ie="inUse",Ne="notAvailable",_e="offline",he={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},Se={h:138,s:59,l:51,a:.6},Te={h:37,s:91,l:65,a:.6},pe={h:359,s:61,l:58,a:.5};var Ge=n(822336),ve=n(718073),Re=n(943805),Le=n(302167),De=n(939703);const xe=(e,t,n,a)=>{const r=Math.max(0,Math.min(100,a));return r<=50?(0,De.qi)(e):r<=90?(0,De.qi)(t):(0,De.qi)(n)},be=(0,C.A)(d.A)`
  width: ${({widthFactor:e})=>e?16*e+6*(e-1):16}px;
  height: ${16}px;
  border-radius: 2px;
  opacity: ${E.xN};

  ${({noiseScore:e,theme:{themeName:t}})=>`\n    border: 1px solid ${xe(Me,Oe,fe,e)};\n    background: ${xe(he,Ce,ge,e)};\n\n    &.${Ie} {\n      opacity: 1;\n      box-shadow: 0 0 5px 2px ${xe(Se,Te,pe,e)};\n\n      &.${_e} {\n        opacity: 0.6;\n      }\n    }\n\n    &.${Ne} {\n      border: none;\n      background: ${Ge.Ay[`desktop-color-neutral-05-${t}`]};\n      box-shadow: none;\n    }\n  `}
`,we=({...e})=>r.createElement(ve.A,{description:r.createElement(d.A,{flexDirection:"column",gap:E.YC},r.createElement(H.A,{size:"small",color:"text-1",motif:"dark"},r.createElement(Q.sA,{id:"COMMON_WIFI_CHANNELIZATION_NOT_AVAILABLE_REGION",values:{countryCode:(0,a.useSelector)(Le.AP)}})))},r.createElement(be,{...e})),ye=({neighbours:e,controlChannel:t,centerChannel:n,isActive:a,isDfs:l,radio:i,channelWidth:c,offline:o,...s})=>{const{formatMessage:m}=(0,Q.tz)();return r.createElement(ve.A,{description:r.createElement(d.A,{flexDirection:"column",gap:E.YC},r.createElement(d.A,{flexDirection:"row"},r.createElement(H.A,{variant:"heading-medium",color:"text-1",motif:"dark"},r.createElement(Q.sA,{id:"COMMON_CHANNEL_PLAN_CONTROL_CHANNEL"})," ",t,l?r.createElement(r.Fragment,null," (",r.createElement(Q.sA,{id:"COMMON_DEVICE_RADIO_CHANNEL_DFS"}),")"):null,a?r.createElement(r.Fragment,null," (",r.createElement(Q.sA,{id:o?"COMMON_LAST_REPORTED":"COMMON_ACTIVE"}),")"):null)),r.createElement(d.A,{flexDirection:"row"},r.createElement(H.A,{variant:"caption",color:"text-1",motif:"dark"},r.createElement(Q.sA,{id:"COMMON_CHANNEL"}),". ",n," (",Re.A[i.toUpperCase()]?.frequency," ",c," ",r.createElement(Q.sA,{id:"COMMON_UNIT_MHZ"}),")")),e.length>0?r.createElement(r.Fragment,null,r.createElement(H.A,{variant:"heading-small",color:"text-1",motif:"dark"},r.createElement(Q.sA,{id:"CHANNEL_AI_NEAREST_NEIGHBOURS"})),r.createElement(d.A,{flexDirection:"column",maxHeight:200,style:{overflow:"auto"}},e.map(e=>{const t=e.device;return r.createElement(d.A,{key:t.mac,width:"100%",flexDirection:"row",gap:E.kc,alignItems:"flex-start"},r.createElement(q.A,{model:t.model,width:E.Ln}),r.createElement(H.A,{size:"small",color:"text-1",motif:"dark"},`${(0,K.Q)(t)} - ${m({id:"COMMON_CHANNEL_ABBREVIATION"})} ${e.channel} (${e.channel_width} ${m({id:"COMMON_UNIT_MHZ"})}, ${e.scan.signal} ${m({id:"COMMON_UNIT_DBM"})})`))}))):null)},r.createElement(be,{...s}))},Ue=({notAvailable:e,...t})=>e?r.createElement(we,{...t}):r.createElement(ye,{...t}),Fe=({children:e})=>r.createElement(d.A,{width:16,height:16},r.createElement(H.A,{color:"text-3",size:"xsmall",style:{fontSize:"9px",textAlign:"center",width:"100%"}},e));var He=n(873964);const Ve=[Ae.G.STAR,Ae.G.DEVICE_NAME,Ae.G.CHANNELS],ze=g.AH`
  animation: ${g.i7`
    from {
      opacity: 1;
    }
    to {
      opacity: 0.4;
    }
`} 1.5s infinite alternate;
`,ke=(0,C.A)("div",(0,B.A)("columns","columnWidth","hideLegend"))`
  display: grid;
  grid-template-columns: repeat(${({columns:e,columnWidth:t=20})=>`${e}, ${t}`}px);
  column-gap: ${6}px;
  row-gap: ${6}px;
`,$e=(0,C.A)("div",(0,B.A)("rowIndex","columnIndexStart","columnIndexEnd"))`
  grid-column-start: ${({columnIndexStart:e})=>e};
  grid-column-end: ${({columnIndexEnd:e,columnIndexStart:t})=>e??t+1};
  grid-row-start: ${({rowIndex:e})=>e};
  display: flex;
  height: ${E.Ln};
`,Pe=({offline:e,children:t})=>r.createElement(d.A,{width:"100%",opacity:e?.5:1},t),We=e=>10**(e/10),Be=e=>{if(e.length<1)return 0;const t=e.map(e=>e.scan.signal),{total:n}=t.reduce((e,t)=>({total:null!==e.total?e.total+We(t):We(t)}),{total:null});return Math.min(100,(0,k.Zy)(He.C8,He.yv,(a=n,10*Math.log10(a))));var a},je=({header:{id:e}})=>ue.QQ[e]?r.createElement(j.A,{color:"inherit",size:"inherit",weight:"inherit"},r.createElement(Q.sA,{id:ue.QQ[e]})):null;var Ze=n(758649),Qe=n(733712),Xe=n(948770);const Ye=(0,r.memo)(()=>{const e=(0,a.useDispatch)(),t=(0,r.useCallback)(()=>{e((0,Xe.pu)([])),e((0,Xe.J_)([]))},[e]);return r.createElement(d.A,{justifyContent:"center",alignItems:"center"},r.createElement(Qe.A,{title:r.createElement(Q.sA,{id:"COMMON_NO_MATCH"}),description:r.createElement(Q.sA,{id:"COMMON_DEVICE_NO_RADIOS_MATCH",values:{button:r.createElement(Ze.A,{type:"button",variant:"inline",onClick:t},r.createElement(Q.sA,{id:"COMMON_RESET_THEM_BUTTON_TEXT"}))}})}))});var Ke=n(318568);const qe=[{value:25},{value:50},{value:100,default:!0}];var Je=n(720284);const et={padding:"0",width:"auto"},tt=g.AH`
  [class^='cellInner__'] {
    overflow: visible;
  }
`,nt=(0,C.A)(d.A)`
  flex-direction: column;
  width: 100%;
`,at={hierarchy:!1},rt=({radios:e})=>{const t=(0,a.useDispatch)(),[n,l]=(0,r.useState)(0),i=(c=e,Object.values(Object.entries(c).reduce((e,[t,n])=>(e[t]||(e[t]=n),e),{})));var c;const o=(0,a.useSelector)(_.l7),s=(0,a.useSelector)(x.H),m=(0,a.useSelector)(_.Rz),u=(0,a.useSelector)(b.WS),I=Object.values(e)[0],{radio:N}=I||{},h=(0,r.useMemo)(()=>N?.radio===R.sx.RADIO_6E?p.kL[p.z6.FULL_6E]:Object.values(p.kL).find(e=>e.band===N?.radio),[N?.radio]),C=(0,r.useMemo)(()=>N?.radio===R.sx.RADIO_NG?(0,G.ir)(s,!0):h?.getLayout(s),[N?.radio,s,h]),f=(0,r.useMemo)(()=>(0,D.r)(s,null,N?.radio,Number(N?.ht),!1,!1,!1,void 0,!0),[s,N?.radio,N?.ht]),L=(0,r.useMemo)(()=>(0,D.r)(s,null,N?.radio,null,!0),[N?.radio,s]),k=(0,r.useCallback)(({id:e})=>{t((0,w.V)([e])),!u&&e?t((0,v.XP)({type:S.H.RADIOS,id:U.PANEL_RADIOS_SIDE_PANEL_ID,tab:y.BC.SETTINGS})):u&&!e&&t((0,v.K5)())},[t,u]);(0,r.useEffect)(()=>{N?.radio&&t((0,A.E)(N.radio))},[t,N?.radio]),(0,r.useEffect)(()=>()=>{t((0,Xe.Vm)(Je.w[Ke.ez.APPLYING_CHANGES]))},[t]);const B=(0,r.useMemo)(()=>((e,t,n,a,l,i)=>[{id:Ae.G.DEVICE_NAME,header:je,...ue.UO[Ae.G.DEVICE_NAME],accessorFn:z.Fo,compare:(0,z.l0)(({device:e})=>e.name),cell:({row:{original:{device:e,offline:t}}})=>r.createElement(Pe,{offline:t},r.createElement(se,{device:e}))},{id:Ae.G.CHANNELS,header:()=>e?r.createElement(ke,{columns:e.columns,columnWidth:e.cellWidth},Object.entries(e.channels?.[Z.P]||{}).map(([e,{from:t,to:n}])=>r.createElement($e,{key:e,rowIndex:1,columnIndexStart:t,columnIndexEnd:n},r.createElement(Fe,{key:e},e)))):null,size:e?22*Object.entries(e.channels?.[Z.P]||{}).length+(l===R.sx.RADIO_NG?45:25):0,enableDnd:!1,enableResizing:!1,enableSorting:!1,accessorFn:z.Fo,cell:({row:{original:{neighbours:a,radio:l,device:c,activeChannel:o,channel:s,offline:E}}})=>{const d=(i||[]).find(e=>e.device_mac===c.mac&&e.device_radio===l?.radio&&e.previous_channel===o);return e?r.createElement(ke,{columns:e.columns,columnWidth:e.cellWidth,className:d?ze:""},Object.entries(e.channels?.[l.ht]||{}).map(([e,{from:i,to:c,row:d}])=>{const{subChannels:m}=Ee.R[l.radio]?.[l.ht]?.[+e]??{},A=m.flatMap(e=>(a?.[e]||[]).map(t=>({...t,channel:e}))),u=Be(A),I=!m.some(e=>t.includes(e)),N=n.includes(+e),_=m?.includes(o||s),h=_?o||s:m[0];return r.createElement($e,{key:e,rowIndex:d%2,columnIndexStart:i,columnIndexEnd:c},r.createElement(Ue,{noiseScore:u,className:(0,g.cx)({[Ie]:_,[Ne]:I,[_e]:E}),key:e,neighbours:A,notAvailable:I,widthFactor:l?.ht?l.ht/Z.P:1,controlChannel:h,centerChannel:+e,isActive:_,isDfs:N,radio:l?.radio,channelWidth:l?.ht,offline:E}))})):null}},{id:Ae.G.ACTIVITY_24H,header:je,...ue.UO[Ae.G.ACTIVITY_24H],accessorFn:z.Fo,compare:(0,z.l0)(({dailyUsage:e})=>e),cell:({row:{original:{dailyUsage:e,offline:t}}})=>r.createElement(Pe,{offline:t},e>0?r.createElement(F.A,{size:"body",type:"bytes",input:e}):r.createElement(Q.sA,{id:"COMMON_FALLBACK"}))},{id:Ae.G.TX_RETRIES,header:je,...ue.UO[Ae.G.TX_RETRIES],accessorFn:z.Fo,compare:(0,z.l0)(({retryPercentage:e})=>+e),cell:({row:{original:{retryPercentage:e,offline:t}}})=>r.createElement(Pe,{offline:t},r.createElement(H.A,{variant:"body-primary",color:(0,$.l)(+e)},(0,P.l)(e)))},{id:Ae.G.AVG_SIGNAL,header:je,...ue.UO[Ae.G.AVG_SIGNAL],accessorFn:z.Fo,compare:(0,z.l0)(({averageSignal:e})=>e),cell:({row:{original:{averageSignal:e,offline:t}}})=>r.createElement(Pe,{offline:t},e?r.createElement(d.A,{alignItems:"center",width:"100%",height:"100%"},r.createElement(H.A,{variant:"body-primary",color:(0,W.a5)(e)},Math.round(e)," ",r.createElement(Q.sA,{id:"COMMON_UNIT_DBM"}))):r.createElement(Q.sA,{id:"COMMON_FALLBACK"}))},{id:Ae.G.CLIENTS,header:je,...ue.UO[Ae.G.CLIENTS],accessorFn:z.Fo,compare:(0,z.l0)(({clientCount:e})=>e),cell:({row:{original:{clientCount:e,offline:t}}})=>r.createElement(Pe,{offline:t},e)},{id:Ae.G.AVERAGE_INTERFERENCE,header:je,...ue.UO[Ae.G.AVERAGE_INTERFERENCE],accessorFn:z.Fo,compare:(0,z.l0)(({averageInterference:e})=>e),cell:({row:{original:{averageInterference:e,offline:t}}})=>r.createElement(Pe,{offline:t},e?r.createElement(d.A,{alignItems:"center",width:"100%",height:"100%"},r.createElement(V.A,{color:(0,de.D)(e)},(0,P.l)(e))):r.createElement(Q.sA,{id:"COMMON_FALLBACK"}))},{id:Ae.G.AVERAGE_AIRTIME,header:je,...ue.UO[Ae.G.AVERAGE_AIRTIME],accessorFn:z.Fo,compare:(0,z.l0)(({averageAirtime:e})=>e),cell:({row:{original:{averageAirtime:e,offline:t}}})=>r.createElement(Pe,{offline:t},e?r.createElement(d.A,{alignItems:"center",width:"100%",height:"100%"},r.createElement(V.A,{color:(0,me.k)(e)},(0,P.l)(e))):r.createElement(Q.sA,{id:"COMMON_FALLBACK"}))}].filter(e=>0===a.length||[...Ve,...a].includes(e.id)))(C,f,L,o,N?.radio,m),[C,o,f,L,N?.radio,m]),j=Object.values(e||{}).length,X=(0,r.useCallback)(({rowsPerPage:e,pageNumber:t})=>r.createElement(M.A,{columns:B,data:i,columnPinningLeftState:ue.ll,rowStyle:E.gc,initialExpanded:!0,columnVisibility:at,pageIndex:t,pageSize:e,onRowClick:k,rowClassName:tt}),[B,i,k]);return r.createElement(nt,{gap:E.Ln,padding:E.Ln},r.createElement(d.A,{overflowX:"auto",height:"100%"},i.length?r.createElement(T.A,{wrapperFlexProps:et,itemCount:j,tableType:O.l.RADIOS,onRenderTable:X,onPageChanged:l,pageNumber:n,rowOptions:qe}):r.createElement(Ye,null)))},lt=e=>(0,s.A)([(0,L.N)({start:Date.now()-f.jU,end:Date.now()})],r.createElement(rt,{...e})),it=()=>{const e=(0,a.useDispatch)(),t=(0,a.useSelector)(h.lU),n=(0,a.useSelector)(_.ip),C=(0,a.useSelector)(_.ax),g=(0,o.A)(C),M=(0,r.useCallback)(()=>{e((0,A.E)(n))},[e,n]);return(0,r.useEffect)(()=>{g&&!C&&M()},[g,C,M]),(0,s.A)([(0,u.m)(void 0,{crudCacheStrategy:{type:l.e.CACHE}}),(0,c.Zi)(i.B.CHANNEL_AI),(0,c.Zi)(i.B.SETTINGS),(0,c.Zi)(i.B.COMMON),(0,I.Uc)(void 0,{crudCacheStrategy:{type:l.e.CACHE}}),(0,N.v)(),(0,A.E)(n)],r.createElement(d.A,{flexDirection:"column",flex:1,gap:E.Ln,overflow:"auto",position:"relative"},r.createElement(lt,{radios:t})),{trackingName:m.t.RADIOS})}},468307:(e,t,n)=>{var a,r;n.d(t,{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={}))},705112:(e,t,n)=>{n.d(t,{N:()=>l});var a=n(691189),r=n(513198);const l=({start:e,end:t},n={},l={})=>(0,a.Kd)(r.A,r.g,r.A,{queryParams:{start:e,end:t},...l},n)},719481:(e,t,n)=>{n.d(t,{QQ:()=>i,UO:()=>l,ll:()=>r});var a=n(468307);const r=[a.G.STAR,a.G.DEVICE_NAME],l={[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}},i={[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"}},959376:(e,t,n)=>{n.d(t,{Y5:()=>C,lU:()=>h,q$:()=>g});var a=n(801081),r=n(6510),l=n(379402),i=n(318408),c=n(564985),o=n(45509),s=n(780811),E=n(837612),d=n(170459),m=n(532419),A=n(67097),u=n(964547);const I="auto",N=e=>e.reduce((e,{channel:t,neighbours:n=[]})=>({...e,[t]:[...e[t]||[],...n]}),{}),_=(0,a.Mz)(m.ID,o.D,A.ip,A.Ql,(e,t,n,a)=>{const o={};for(let m=0;m<e.length;m+=1){const A=e[m];if(!(0,l.V)(A)||(0,s.r$V)(A)||(0,s.QQG)(A))continue;const u=a?.ap_neighbours?.find(e=>e.device.mac===A.mac);for(let e=0;e<A.radio_table?.length;e+=1){const a=A.radio_table[e],l=A.radio_table_stats?.find(({name:e})=>e===a.name);if(a&&a.radio===n){const e=(0,i.R)({device:A,radio:a}),n=(A.vap_table||[]).find(({radio_name:e})=>e===a.name),m={id:e,device:A,radio:a,modelName:(0,r.Lm)(A.model),offline:(0,s.aK8)((0,E.S9)(A)),wifiBand:a.radio,tx_power_mode:a.tx_power_mode||c.PB.AUTO,channel:(0,d.ry)({name:a.name,radio_table:A.radio_table,radio_table_stats:A.radio_table_stats}),activeChannel:n?.channel,channelWidth:(0,d.Aq)(a,n),clientCount:l?.num_sta??0,dailyUsage:t[A.mac]?.[a.name]?.bytes,retryPercentage:t[A.mac]?.[a.name]?.tx_retries_percentage,averageSignal:t[A.mac]?.[a.name]?.client_signal_avg,averageInterference:t[A.mac]?.[a.name]?.interference_avg,averageAirtime:t[A.mac]?.[a.name]?.utilization_avg,neighbours:N(u?.channel_neighbours??[])};o[m.id]=m}}}return o}),h=(0,a.Mz)(_,A.v0,(e,t)=>Object.keys(e).filter(n=>{return a=e[n].radio,0===t.length||!(!t.includes(u.F.AUTO)||a?.channel!==I)||t.includes(u.F.MANUAL)&&a?.channel!==I;var a}).reduce((t,n)=>(t[n]=e[n],t),{})),C=(0,a.Mz)(_,e=>Object.keys(e).length),g=(0,a.Mz)(_,e=>Object.keys(e).filter(t=>!e[t].offline&&e[t].tx_power_mode!==c.PB.DISABLED).length)},964547:(e,t,n)=>{var a;n.d(t,{F:()=>a}),function(e){e.AUTO="auto",e.MANUAL="manual"}(a||(a={}))}}]);