"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[93170],{136446(e,t,i){i.d(t,{P:()=>r,T:()=>n});const s=e=>Boolean(e&&"radio"in e&&Boolean(e.radio)),n=e=>e?[...(e.downlink_table??[]).filter(s),...(e.ap_downlink_table??[]).filter(s)]:[],r=e=>e?[...new Set(n(e).map(({mac:e})=>e).filter(Boolean))]:[]},563674(e,t,i){i.d(t,{EA:()=>o,G6:()=>x,Km:()=>l,ME:()=>r,Nq:()=>u,Sl:()=>A,Up:()=>d,bc:()=>m,ne:()=>c,pE:()=>a,t1:()=>n});var s=i(904614);const n=({security:e})=>e===s.Hs.WEP,r=({security:e})=>e===s.Hs.WPA_ENTERPRISE,a=({security:e})=>e===s.Hs.WPA_PERSONAL,l=({wpa_enc:e})=>e===s.Jl.AUTO,c=({security:e})=>e===s.Hs.HOTSPOT_2_OSEN,o=({mac_filter_enabled:e})=>e,d=(e,t)=>e&&[...new Set(e.filter(({is_guest:e})=>t?!!e:!e).map(({name:e})=>e))],x=e=>{switch(e){case s.Tl.PAP:case s.Tl.CHAP:case s.Tl.MSCHAP:case s.Tl.MSCHAP_V2:return 2;case s.Tl.SIM:case s.Tl.USIM:case s.Tl.CERTIFICATE:case s.Tl.USERNAME_PASSWORD:return 5;default:return}},A=e=>{switch(e){case s.Tl.PAP:case s.Tl.SIM:return 1;case s.Tl.CHAP:case s.Tl.USIM:return 2;case s.Tl.MSCHAP:return 3;case s.Tl.MSCHAP_V2:return 4;case s.Tl.CERTIFICATE:return 6;case s.Tl.USERNAME_PASSWORD:return 7;default:return}},m=e=>{const t=`${e.auth_id}:${e.auth_val}`;if(Object.values(s.Tl).includes(t))return t};function u(e){return Object.values(s.Ir).includes(e?.attr_hidden_id)}},752104(e,t,i){i.d(t,{A:()=>n,Q:()=>r});var s=i(765567);const n="_",r=[s.ZM,s.Je]},843910(e,t,i){i.d(t,{A:()=>x,g:()=>d});var s=i(274934),n=i(505817),r=i(179102),a=i(247816),l=i(309130),c=i(470070);const o=(0,a.A)("span")`
  line-height: ${l.Er};
  padding: 2px ${l.kc};
  border-radius: ${l.xO};
  background: ${({theme:{themeName:e}})=>n.Ay[`desktop-color-green-01-${e}`]};
`,d=(0,a.A)("span")`
  margin-left: ${l.kc};
`,x=()=>(0,s.jsx)(o,{children:(0,s.jsx)(r.A,{variant:"caption",color:"green-06",children:(0,s.jsx)(c.sA,{id:"COMMON_MLO"})})})},823709(e,t,i){i.d(t,{A:()=>c});var s=i(274934),n=i(602086),r=i(548941),a=i(247368),l=i(927728);const c=({list:e})=>{const t=(0,n.useMemo)(()=>e.map(e=>(0,s.jsx)("li",{children:e},e)),[e]);return(0,s.jsx)(r.A,{description:(0,s.jsx)(l.A,{children:t}),portal:!0,children:(0,s.jsx)(a.A,{isActive:!0,size:"original"})},e.join("-"))}},184970(e,t,i){i.d(t,{A:()=>d});var s=i(274934),n=i(179102),r=i(247816),a=i(724081),l=i(309130);const c=(0,r.A)(n.A)`
  white-space: nowrap;
  margin-right: ${l.xO};
`,o=(0,r.A)(n.A)`
  text-align: right;
`,d=({condition:e,definition:t,hideOnEmpty:i,placeholder:n="...",value:r})=>(0,a.A)(e,r||!i?(0,s.jsxs)(s.Fragment,{children:[t?(0,s.jsx)(c,{color:"text-2",children:t}):null,(0,s.jsx)(o,{color:"text-3",children:r})]}):null,{placeholder:(0,s.jsxs)(s.Fragment,{children:[t?(0,s.jsx)(c,{color:"text-2",children:t}):null,(0,s.jsx)(o,{color:"text-3",children:n})]})})},820266(e,t,i){i.d(t,{A:()=>E});var s=i(274934),n=i(977872),r=i(602086),a=i(179102),l=i(526744),c=i(247816),o=i(409844),d=i(590979),x=i(449339),A=i(309130),m=i(205521),u=i(470070),_=i(664092);const p=(0,c.A)(l.A)`
  height: 24px;
  display: block;
  padding: 0;
`,h=o.AH`
  margin-left: ${A.kc};
  overflow: hidden;
`,j=o.AH`
  display: inline-block !important;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 100%;
`,E=(0,r.memo)(({uplinkMac:e,uplinkName:t,label:i="COMMON_DEVICE"})=>{const l=(0,n.wA)(),c=(0,r.useCallback)(t=>{t.preventDefault(),t.stopPropagation(),l((0,m.XP)({type:x.H.DEVICE,id:e}))},[l,e]);return(0,s.jsxs)(_.A,{children:[(0,s.jsx)(a.A,{color:"text-2",size:"medium",children:(0,s.jsx)(u.sA,{id:i})}),(0,s.jsx)(p,{variant:"link",size:"medium",onClick:c,wrapClassName:h,contentClassName:j,...d.A.addDataTestId(d.A.TestId.SIDE_PANEL_TRIGGER),children:t})]})})},223232(e,t,i){i.d(t,{A:()=>p});var s=i(274934),n=i(977872),r=i(602086),a=i(179102),l=i(244081),c=i(309130),o=i(184970),d=i(100978),x=i(470070),A=i(544691),m=i(393482),u=i(664092),_=i(823709);const p=({mac:e,compact:t=!1})=>{const i=(0,n.d4)((0,r.useMemo)(()=>(0,A.a5)(e),[e])),p=(0,r.useMemo)(()=>(i||[]).filter(({for_wlanconf:e})=>!e).map(({name:e})=>e).sort(),[i]);return p.length?(0,s.jsx)(u.A,{compact:t,children:(0,s.jsx)(o.A,{value:(0,s.jsx)(d.A,{gap:c.YC,children:1===p.length?(0,s.jsx)(a.A,{size:"medium",color:"text-3",children:p[0]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.A,{size:"medium",color:"text-3",children:(0,s.jsx)(x.sA,{id:"COMMON_MULTIPLE"})}),(0,s.jsx)(_.A,{list:p})]})}),condition:[(0,m.Yo)(void 0,{crudCacheStrategy:{type:l.e.CACHE}})],definition:(0,s.jsx)(a.A,{size:"medium",children:(0,s.jsx)(x.sA,{id:"COMMON_AP_GROUPS"})})})}):null}},425381(e,t,i){i.d(t,{A:()=>p});var s=i(274934),n=i(977872),r=i(602086),a=i(548941),l=i(179102),c=i(244081),o=i(577141),d=i(184970),x=i(470070),A=i(563674),m=i(301940),u=i(393482),_=i(664092);const p=()=>{const e=(0,n.d4)(o.ad),t=(0,r.useMemo)(()=>(0,A.Up)(e,!0).sort(),[e]);return t.length?(0,s.jsx)(_.A,{children:(0,s.jsx)(d.A,{value:t.length>1?(0,s.jsx)(a.A,{width:120,description:t.join(", "),children:(0,s.jsx)(l.A,{size:"medium",color:"text-3",children:(0,s.jsx)(x.sA,{id:"COMMON_MULTIPLE"})})}):(0,s.jsx)(l.A,{size:"medium",color:"text-3",children:t[0]}),condition:[(0,u.Yo)(void 0,{crudCacheStrategy:{type:c.e.CACHE}}),(0,m.uy)(void 0,{crudCacheStrategy:{type:c.e.CACHE}})],definition:(0,s.jsx)(l.A,{size:"medium",children:(0,s.jsx)(x.sA,{id:"DEVICE_PROPERTY_OVERVIEW_MEMBERSHIP_HOTSPOT"})}),hideOnEmpty:!0})}):null}},664613(e,t,i){i.d(t,{A:()=>x});var s=i(274934),n=i(179102),r=i(664453),a=i(309130),l=i(100978),c=i(470070),o=i(956978),d=i(664092);const x=({sys_stats:e,flexProps:t,withTooltip:i,compact:x=!1})=>{const A=(0,o.eiG)(e);return A?(0,s.jsxs)(d.A,{flexProps:t,compact:x,children:[(0,s.jsx)(n.A,{color:"text-2",size:"medium",children:(0,s.jsx)(c.sA,{id:"COMMON_LOAD_AVERAGE"})}),i?(0,s.jsxs)(l.A,{alignItems:"center",gap:a.YC,children:[(0,s.jsx)(n.A,{color:"text-3",size:"medium",children:A}),(0,s.jsx)(r.A,{description:(0,s.jsx)(c.sA,{id:"DEVICE_PROPERTY_OVERVIEW_LOAD_AVERAGE_TOOLTIP"}),placement:"top start"})]}):(0,s.jsx)(n.A,{color:"text-3",size:"medium",children:A})]}):null}},948803(e,t,i){i.d(t,{A:()=>c});var s=i(274934),n=i(179102),r=i(347625),a=i(470070),l=i(664092);const c=({model:e})=>(0,s.jsxs)(l.A,{children:[(0,s.jsx)(n.A,{color:"text-2",size:"medium",children:(0,s.jsx)(a.sA,{id:"COMMON_MODEL"})}),(0,s.jsx)(n.A,{color:"text-3",size:"medium",children:(0,r.Lm)(e)})]})},382583(e,t,i){i.d(t,{A:()=>A});var s=i(274934),n=i(602086),r=i(179102),a=i(775250),l=i(977872),c=i(156007),o=i(470070),d=i(197571),x=i(664092);const A=({connection_network_id:e})=>{const t=(0,l.d4)(d.Tn),i=(0,n.useMemo)(()=>e?t.find(t=>t._id===e):void 0,[t,e]);return i?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(x.A,{children:[(0,s.jsx)(r.A,{color:"text-2",size:"medium",children:(0,s.jsx)(o.sA,{id:"COMMON_NETWORK"})}),(0,s.jsx)(c.A,{color:"text-3",size:"medium",flexProps:{justifyContent:"flex-end"},children:i.name})]}),null!=i.vlan?(0,s.jsxs)(x.A,{children:[(0,s.jsx)(r.A,{color:"text-2",size:"medium",children:(0,s.jsx)(o.sA,{id:"COMMON_VLAN_ID"})}),(0,s.jsx)(a.A,{color:"text-3",size:"medium",isTruncated:!0,children:i.vlan})]}):null]}):null}},956021(e,t,i){i.d(t,{A:()=>_});var s=i(274934),n=i(602086),r=i(179102),a=i(662986),l=i(331472),c=i(470070),o=i(561614),d=i(175650),x=i(664092);const A={[o.sx.RADIO_NG]:"2.4",[o.sx.RADIO_NA]:"5",[o.sx.RADIO_6E]:"6",[o.sx.RADIO_AD]:"60"},m=e=>{const t=Math.min(e,100);return(0,s.jsx)(r.A,{size:"medium",color:(0,l.Ld)(t),children:(0,a.l)(t)})},u=(e,t=" / ")=>(0,s.jsx)("div",{children:e.map((i,r)=>(0,s.jsxs)(n.Fragment,{children:[m(i),r!==e.length-1?t:null]},`${i}-pos-${String(r)}`))}),_=(0,n.memo)(({satisfaction:e,vap_table:t,radio_table:i,radio_table_stats:a})=>{const m=(0,n.useMemo)(()=>void 0!==e&&(0,l.Oq)(e),[e]),{na:_,ng:p,sixe:h,naNumSta:j,ngNumSta:E,sixeNumSta:O}=(0,n.useMemo)(()=>(0,d.VM)({vap_table:t,radio_table:i,radio_table_stats:a,satisfaction:e}),[e,t,i,a]),C=[{radio:o.sx.RADIO_NG,satisfaction:p,numSta:E},{radio:o.sx.RADIO_NA,satisfaction:_,numSta:j},{radio:o.sx.RADIO_6E,satisfaction:h,numSta:O}].filter(({satisfaction:e,numSta:t})=>((e,t)=>0!==e&&!!t)(e,t));return m&&0!==C.length?(0,s.jsxs)(x.A,{children:[(0,s.jsx)(r.A,{color:"text-2",size:"medium",children:(0,s.jsx)(c.sA,{id:"DEVICE_WIFI_EXPERIENCE",values:{band:C.map(({radio:e})=>A[e]).join("/")}})}),u(C.map(({satisfaction:e})=>e))]}):null})},187801(e,t,i){i.d(t,{A:()=>O});var s=i(274934),n=i(977872),r=i(602086),a=i(179102),l=i(244081),c=i(309130),o=i(156007),d=i(577141),x=i(184970),A=i(823709),m=i(100978),u=i(470070),_=i(563674),p=i(301940),h=i(393482),j=i(664092);const E=({wifiNetworks:e,compact:t=!1})=>{const i=(0,r.useMemo)(()=>(0,_.Up)(e,!1).sort(),[e]);return i.length?(0,s.jsx)(j.A,{compact:t,children:(0,s.jsx)(x.A,{value:1===i.length?(0,s.jsx)(m.A,{flex:1,overflow:"hidden",children:(0,s.jsx)(o.A,{size:"medium",color:"text-3",children:i[0]})}):(0,s.jsxs)(m.A,{gap:c.YC,children:[(0,s.jsx)(a.A,{size:"medium",color:"text-3",children:(0,s.jsx)(u.sA,{id:"COMMON_MULTIPLE"})}),(0,s.jsx)(A.A,{list:i})]}),condition:[(0,h.Yo)(void 0,{crudCacheStrategy:{type:l.e.CACHE}}),(0,p.uy)(void 0,{crudCacheStrategy:{type:l.e.CACHE}})],definition:(0,s.jsx)(a.A,{size:"medium",children:(0,s.jsx)(u.sA,{id:"COMMON_WIFI_NAME"})})})}):null},O=()=>{const e=(0,n.d4)(d.ad);return(0,s.jsx)(E,{wifiNetworks:e})}},831236(e,t,i){i.d(t,{A:()=>d});var s=i(274934),n=i(602086),r=i(179102),a=i(346949),l=i(320509),c=i(470070),o=i(664092);const d=(0,n.memo)(({rx_packets:e,rx_bytes:t})=>(0,s.jsxs)(o.A,{children:[(0,s.jsx)(r.A,{color:"text-2",size:"medium",children:(0,s.jsx)(c.sA,{id:"COMMON_DOWN_PKTS_BYTES"})}),(0,s.jsx)(r.A,{color:"text-3",size:"medium",children:e&&t?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.A,{size:"body",type:"number",input:e,color:"tertiary"})," / ",(0,l.z3)(t)]}):"- / -"})]}))},413619(e,t,i){i.d(t,{A:()=>d});var s=i(274934),n=i(602086),r=i(179102),a=i(346949),l=i(320509),c=i(470070),o=i(664092);const d=(0,n.memo)(({tx_packets:e,tx_bytes:t})=>(0,s.jsxs)(o.A,{children:[(0,s.jsx)(r.A,{color:"text-2",size:"medium",children:(0,s.jsx)(c.sA,{id:"COMMON_UP_PKTS_BYTES"})}),(0,s.jsx)(r.A,{color:"text-3",size:"medium",children:e&&t?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.A,{size:"body",type:"number",input:e,color:"tertiary"})," / ",(0,l.z3)(t)]}):"- / -"})]}))},222493(e,t,i){i.d(t,{A:()=>u});var s=i(274934),n=i(602086),r=i(798282),a=i(100978),l=i(309130),c=i(295291),o=i(179102),d=i(470070),x=i(581883),A=i(664092);const m=({radio:e})=>(0,s.jsx)(A.A,{flexProps:{marginTop:l.kc},children:(0,s.jsxs)(o.A,{variant:"heading-medium",color:"text-2",children:[(0,s.jsx)(d.sA,{id:x.U[e]})," (",(0,s.jsx)(d.sA,{id:"COMMON_MLO"}),")"]})}),u=({mlo_links:e})=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.A,{}),(0,s.jsx)(a.A,{flexDirection:"column",marginTop:l.kc,children:(e||[]).map(e=>(0,s.jsxs)(n.Fragment,{children:[(0,s.jsx)(m,{radio:e.radio}),(0,s.jsx)(c.A,{stats:e})]},`${e.name}-${e.radio}`))})]})},808232(e,t,i){i.d(t,{A:()=>M});var s=i(274934),n=i(977872),r=i(602086),a=i(100978),l=i(470070),c=i(853109),o=i(857780),d=i(754924),x=i(956978),A=i(301368),m=i(413619),u=i(179102),_=i(664092);const p=({activeItem:e,devices:t})=>{const{poe_power:i}=(0,c.$Y)({device:e,devices:t})||{poe_power:void 0};return(0,s.jsxs)(_.A,{children:[(0,s.jsx)(u.A,{color:"text-2",size:"medium",children:(0,s.jsx)(l.sA,{id:"DEVICE_PROPERTY_UPLINK_POWER"})}),(0,s.jsx)(u.A,{color:"text-3",size:"medium",children:(0,s.jsx)(l.sA,{...+i>0?{id:"COMMON_UNIT_WATTS_SHORT",values:{value:i}}:{id:"COMMON_FALLBACK"}})})]})};var h=i(631692),j=i(831236),E=i(820266),O=i(222493),C=i(295291);const v=(e=[])=>e.map(e=>({name:e.name||"",radio:e.radio||"",signal:e.signal||0,tx_rate:e.tx_rate||0,rx_rate:e.rx_rate||0,rx_packets:e.rx_packets||0,tx_packets:e.tx_packets||0,rx_bytes:e.rx_bytes||0,tx_bytes:e.tx_bytes||0})),g=(e,t,i)=>{if(!t||!(0,x.kft)(e))return!1;const s=(0,c.$Y)({device:e,devices:i});return(0,A.zC)({speed:t.speed,autoneg:s?.autoneg,speed_caps:s?.speed_caps})},I=({uplink:e,activeItem:t,devices:i})=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(h.A,{uplink:e,optimizedTo1GbeInfo:g(t,e,i)}),(0,s.jsx)(p,{activeItem:t,devices:i}),(0,s.jsx)(j.A,{rx_packets:e.rx_packets,rx_bytes:e.rx_bytes}),(0,s.jsx)(m.A,{tx_packets:e.tx_packets,tx_bytes:e.tx_bytes})]}),M=({activeItem:e,devices:t})=>{const{formatMessage:i}=(0,l.tz)(),x=(0,n.d4)((0,r.useMemo)(()=>(0,d.I4)(e.mac),[e.mac])),A=(0,c.q$)(e)||{},m=(0,r.useMemo)(()=>(0,c.Uj)({type:A.type,mlo_links:A.mlo_links}),[A.type,A.mlo_links]);return(0,s.jsxs)(a.A,{height:"100%",flexDirection:"column",children:[x?.mac?(0,s.jsx)(E.A,{uplinkMac:x.mac,uplinkName:(0,c.Jz)(e,x,i),label:"COMMON_DEVICE"}):null,A.type===o.au.WIRE?(0,s.jsx)(I,{uplink:A,activeItem:e,devices:t}):null,A.type!==o.au.WIRELESS||m?null:(0,s.jsx)(C.A,{stats:{signal:A.signal,tx_rate:A.tx_rate,rx_rate:A.rx_rate,rx_packets:A.rx_packets,tx_packets:A.tx_packets,rx_bytes:A.rx_bytes,tx_bytes:A.tx_bytes}}),A.type===o.au.WIRELESS&&m?(0,s.jsx)(O.A,{mlo_links:v(A.mlo_links)}):null]})}},295291(e,t,i){i.d(t,{A:()=>o});var s=i(274934),n=i(275247),r=i(206945),a=i(831236),l=i(781964),c=i(413619);const o=({stats:{signal:e,tx_rate:t,rx_rate:i,rx_packets:o,tx_packets:d,rx_bytes:x,tx_bytes:A}})=>(0,s.jsxs)(s.Fragment,{children:[e?(0,s.jsx)(l.A,{signal:e}):null,(0,s.jsx)(r.A,{tx_rate:t}),(0,s.jsx)(n.A,{rx_rate:i}),(0,s.jsx)(a.A,{rx_packets:o,rx_bytes:x}),(0,s.jsx)(c.A,{tx_packets:d,tx_bytes:A})]})},17534(e,t,i){i.d(t,{A:()=>Z});var s=i(274934),n=i(977872),r=i(548941),a=i(179102),l=i(247368),c=i(247816),o=i(309130),d=i(470070),x=i(664092);const A=(0,c.A)(l.A)`
  margin-left: ${o.YC};
`,m=()=>(0,s.jsx)(r.A,{description:(0,s.jsx)(d.sA,{id:"DEVICE_PROPERTY_UPLINK_HIGH_AVAILABILITY_MODE_ACTIVE_TOOLTIP"}),width:280,position:"top",style:{display:"inline"},children:(0,s.jsx)(A,{size:"original",isActive:!0})}),u=({isActiveHighAvailability:e})=>(0,s.jsxs)(x.A,{children:[(0,s.jsx)(a.A,{variant:"body-primary",children:(0,s.jsx)(d.sA,{id:"COMMON_MODE"})}),(0,s.jsx)(a.A,{variant:"body-secondary",children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.sA,{id:e?"COMMON_ACTIVE":"COMMON_INACTIVE"}),e?(0,s.jsx)(m,{}):null]})})]});var _=i(631692),p=i(100978);const h=({isActiveHighAvailability:e,secondaryPortAvailabilityLacpState:t})=>(0,s.jsxs)(p.A,{height:"100%",flexDirection:"column",children:[(0,s.jsx)(u,{isActiveHighAvailability:e}),(0,s.jsx)(_.A,{portSpeed:t?.speed})]});var j=i(376892),E=i(535322),O=i(853109),C=i(136446),v=i(754924),g=i(808232),I=i(347625),M=i(820266),y=i(602086),N=i(713035),k=i(775250),f=i(645759),b=i(409844),T=i(594005),S=i(331472),w=i(325704),P=i(831433),R=i(223597),D=i(367789),H=i(59612),z=i(112104),L=i(61322),V=i(449339),F=i(974390),W=i(205521),U=i(175650);const Y=(0,c.A)("div")`
  height: 100%;
  > div + div {
    margin-top: 16px;
  }
`,$=b.AH`
  th {
    padding-right: 0;
  }
`,B=b.AH`
  :hover {
    cursor: pointer;
  }

  td {
    padding-right: 25px;
  }
`;var G;!function(e){e.NAME="name",e.EXPERIENCE_INFO="experienceInfo"}(G||(G={}));const X=[{id:G.NAME,sortable:!0,minWidth:120,label:(0,s.jsx)(d.sA,{id:"DEVICE_MESH_CHILDREN"}),renderCell:e=>(0,s.jsxs)(p.A,{alignItems:"center",justifyContent:"center",children:[(0,s.jsx)(p.A,{alignItems:"center",justifyContent:"center",minWidth:25,maxWidth:25,height:25,children:e?(0,s.jsx)(F.A,{model:e.model,height:25}):null}),(0,s.jsx)(k.A,{isTruncated:!0,color:"inherit",size:"medium",style:{width:"110px",paddingLeft:o.YC,paddingRight:o.YC},children:(0,I.Q)(e)})]}),compare:(0,T.l0)(P.tn)},{id:G.EXPERIENCE_INFO,label:(0,s.jsx)(d.sA,{id:"COMMON_EXPERIENCE"}),renderCell:({experienceInfo:e})=>e,minWidth:75,sortable:!0,compare:(0,T.l0)((e,t,i)=>((e,t)=>{const i="is_wired"in e?e.is_wired:void 0,{satisfaction:s,known:n}=(0,P.FX)(void 0,e.type,"wifi_experience_score"in e?e.wifi_experience_score:void 0);let r;switch(e.status===R.S2.ONLINE&&(r=(0,S.gd)(!i&&s>0&&n?s:D.MO)),r){case"COMMON_EXPERIENCE_EXCELLENT":return w.Ig;case"COMMON_GOOD":return w.Bd;case"COMMON_POOR":return w.IR;default:return(0,w.k)(t)}})(e,i))}],K=({downlinks:e})=>{const t=(0,n.wA)(),{motif:i}=(0,N.A)(),r=(0,y.useMemo)(()=>e.map(({downlinkDevice:e})=>{const{averageSatisfaction:t,naNumSta:n,ngNumSta:r}=(0,U.VM)(e);return{id:e._id,name:e.name,experienceInfo:(0,s.jsx)(p.A,{alignItems:"center",whiteSpace:"nowrap",children:(0,s.jsx)(a.A,n+r!==0&&t?{size:"medium",style:{color:(0,H.L)(t,i)},children:(0,s.jsx)(d.sA,{id:(0,S.gd)(t)})}:{size:"medium",color:"disabled",children:(0,s.jsx)(d.sA,{id:"COMMON_NO_CLIENTS"})})}),mac:e.mac,model:e.model,type:e.type}}),[e,i]),{rowLimit:l,renderFooter:c}=(0,z.A)(r.length,{defaultCount:10}),o=(0,y.useCallback)(({mac:e})=>{t((0,W.XP)({type:V.H.DEVICE,id:e}))},[t]);return r.length>0?(0,s.jsx)(Y,{children:(0,s.jsx)(f.A,{items:r,truncateHeaderCells:!0,disableColumnFilters:!0,headerRowClassName:$,rowClassName:B,columns:X,initialSortBy:G.NAME,renderFooter:()=>c,rowHeight:L.I.ROW_HEIGHT,onRowClick:o,rowOffset:0,rowLimit:l})}):null};var q=i(295291),Q=i(222493);const J=({activeItem:e,devices:t})=>{const i=new Map,n=(0,C.T)(e);for(const e of n){const s=t.find(({mac:t})=>t===e.ap_mac||t===e.mac);if(!s?.mac||!e.radio)continue;const n={name:e.name||"",radio:e.radio,signal:"signal"in e&&e.signal||0,tx_rate:"tx_rate"in e?e.tx_rate:0,rx_rate:"rx_rate"in e?e.rx_rate:0,rx_packets:"rx_packets"in e?e.rx_packets:0,tx_packets:"tx_packets"in e?e.tx_packets:0,rx_bytes:"rx_bytes"in e?e.rx_bytes:0,tx_bytes:"tx_bytes"in e?e.tx_bytes:0},r=i.get(s.mac);i.set(s.mac,{downlinkDevice:s,downlinks:r?[...r.downlinks,n]:[n]})}const r=[...i.values()],a=r[0],l=a?.downlinks[0],c=a?.downlinkDevice;return r.length>0?(0,s.jsx)(E.A,{type:E.I.ACCORDION,items:[{id:"downlink",label:(0,s.jsx)(j.A,{id:r.length>1?"DEVICE_MESH_CHILDREN":"DEVICE_MESH_CHILD"}),openByDefault:!0,renderContent:()=>1===(r||[]).length?(0,s.jsxs)(p.A,{height:"100%",flexDirection:"column",children:[(0,s.jsx)(M.A,{uplinkMac:c?.mac,uplinkName:(0,I.Q)(c)}),a.downlinks.length>1?(0,s.jsx)(Q.A,{mlo_links:a.downlinks}):(0,s.jsx)(q.A,{stats:l})]}):(0,s.jsx)(K,{downlinks:r})}]}):null},Z=({activeItem:e,activeItem:{uplink:t}})=>{const i=(0,n.d4)(v.ID),r=(0,O.q$)(e)||{},{lacp_state:a}=r,l=(0,O.oL)(a),c=(0,O.rX)(a),o=(0,C.T)(e);return(0,s.jsxs)(s.Fragment,{children:[t?.mac?(0,s.jsx)(E.A,{type:E.I.ACCORDION,items:[{id:"uplink",label:(0,s.jsx)(j.A,{id:"wire"===t.type?"COMMON_PARENT_DEVICE":"COMMON_MESH_PARENT"}),openByDefault:!0,renderContent:()=>(0,s.jsx)(g.A,{activeItem:e,devices:i})}]}):null,"wire"===t?.type&&t?.mac&&a?.length>1?(0,s.jsx)(E.A,{type:E.I.ACCORDION,items:[{id:"highAvailability",label:(0,s.jsx)(j.A,{id:"COMMON_HIGH_AVAILABILITY"}),openByDefault:!0,renderContent:()=>(0,s.jsx)(h,{isActiveHighAvailability:c,secondaryPortAvailabilityLacpState:l})}]}):null,o.length>0?(0,s.jsx)(J,{activeItem:e,devices:i}):null]})}},696049(e,t,i){i.d(t,{H:()=>s});const s=""},237887(e,t,i){i.d(t,{A:()=>A});var s=i(274934),n=i(602086),r=i(977872),a=i(310075),l=i(711892),c=i(820633),o=i(308111);const d=e=>(0,s.jsx)(a.A,{renderOption:l.q,...e}),x=e=>(0,s.jsx)(d,{...e});x.Sorted=e=>{const t=(0,r.d4)(c.zi),i=(0,n.useMemo)(()=>(0,o.k)(t),[t]);return(0,s.jsx)(d,{...e,sortBy:i})};const A=x},308111(e,t,i){i.d(t,{R:()=>x,k:()=>A});var s=i(696049),n=i(350068),r=i(177173),a=i(752104),l=i(64222),c=i(230853);const o=[...new Set([s.H,a.Q.join(a.A),r.Zt,l.F,n.nc,c.Vr])],d={numeric:!0,sensitivity:"base"},x=(e,t)=>{const i=[];for(let s=e;s<=t;s+=1)i.push({value:s,label:String(s)});return i},A=e=>({value:t,label:i},{value:s,label:n})=>o.includes(t?.toString())||o.includes(s?.toString())?1/0:i?.toString().localeCompare(n?.toString(),e,d)??-1}}]);