"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[87096],{756594(e,s,i){i.d(s,{Ay:()=>u,v$:()=>h});var t=i(274934),r=i(977872),n=i(125799),d=i(247816),l=i(409844),c=i(82939),a=i(408402),o=i(470070),x=i(897166),A=i(309130);const _=(0,d.A)("div")`
  pointer-events: none;
`,m=l.AH`
  opacity: ${A.xN};
`,j=({warning:e,children:s})=>{return e?(0,t.jsx)(a.A,{condition:!!e,wrapper:(i=e,e=>(0,t.jsx)(n.A,{description:(0,c.Kg)(i)?(0,t.jsx)(o.sA,{id:i}):i,portal:!0,isInteractive:!(0,c.Kg)(i),children:(0,t.jsx)(_,{children:e})})),children:s}):(0,t.jsx)(t.Fragment,{children:s});var i},h=({disabled:e,children:s})=>e?(0,t.jsx)(_,{className:m,style:{width:"100%"},children:s}):(0,t.jsx)(t.Fragment,{children:s}),u=({disableWithWarning:e,children:s})=>{const i=(0,r.d4)(x.EL);return(0,t.jsx)(j,{warning:e,children:e?(0,t.jsx)("div",{className:i?void 0:m,children:s}):s})}},398658(e,s,i){i.d(s,{A:()=>o});var t=i(274934),r=i(814557),n=i(938984),d=i(897688),l=i(263705),c=i(309130),a=i(470070);const o=()=>{const{themeName:e}=(0,l.u)();return(0,t.jsx)(d.A,{style:{backgroundColor:r.Ay[`desktop-color-green-06-${e}`],marginRight:c.YC},children:(0,t.jsx)(n.A,{size:"small",color:"neutral-inverse",children:(0,t.jsx)(a.sA,{id:"COMMON_MESH"})})})}},348871(e,s,i){i.d(s,{Ay:()=>E,KK:()=>M,gJ:()=>N});var t=i(274934),r=i(938984),n=i(814557),d=i(247816),l=i(586566),c=i(61322),a=i(345272),o=i(756594),x=i(470070),A=i(561614),_=i(726831),m=i(186086),j=i(398658),h=i(793442),u=i(100978),p=i(865655),O=i(421314);const M={CHANNEL:220,MIMO:40,STANDARD:55,CLIENTS:66},N=(0,d.A)(u.A)`
  height: ${c.I.ROW_HEIGHT-1}px;
  border-bottom: ${({theme:{themeName:e}})=>n.Ay[`desktop-border-divider-${e}`]};
  align-items: center;
  justify-content: space-between;
`,E=({channel:e,ht:s,radio:i,mimo:n,standard:d,disabled:c,mac:E,children:C,is_device_afc_supported:v,afc_enabled:b,afc_done:I,afc_initialize_timeout_at:k,is_device_outdoor_mode_supported:y,has_enabled_6Ghz:g,is_disabled_all_6ghz_radios:z,isMesh:D})=>{let L=null;const f=(0,l.gR)({afc_initialize_timeout_at:k});return i===A.sx.RADIO_6E&&y&&v&&c&&z&&g?L=(0,t.jsx)(x.sA,{id:"DEVICE_TRANSMIT_POWER_DISABLED_6GHZ_WARNING",values:{link:(0,t.jsx)(m.A,{mac:E,children:(0,t.jsx)(x.sA,{id:"COMMON_CLICK_TO_ENABLE"})}),br:x.br}}):i===A.sx.RADIO_6E&&y&&v&&b&&void 0!==I&&!I&&!f&&!c&&g?L=(0,t.jsx)(x.sA,{id:"DEVICE_DID_NOT_RECEIVE_AFC_RESPONSE_WARNING",values:{link:(0,t.jsx)(h.A,{id:"COMMON_LEARN_MORE",href:_.A.afcArticle})}}):c&&(L=(0,t.jsx)(x.sA,{id:"DEVICE_RADIO_DISABLED_WARNING",values:{link:(0,t.jsx)(p.A,{mac:E,band:i,children:(0,t.jsx)(x.sA,{id:"COMMON_CLICK_TO_ENABLE"})})}})),(0,t.jsx)(o.Ay,{disableWithWarning:L,children:(0,t.jsxs)(N,{width:"100%",children:[(0,t.jsxs)(u.A,{width:M.CHANNEL,children:[(0,t.jsx)(r.A,{weight:"bold",children:(0,t.jsx)(x.sA,void 0!==e?{id:"COMMON_CHANNEL_RADIO_CHANNEL",values:{channel:e}}:{id:"COMMON_FALLBACK"})}),(0,t.jsxs)(O.A,{size:"medium",children:[" (",i&&a.A[i.toUpperCase()]?.frequency||(0,t.jsx)(x.sA,{id:"COMMON_FALLBACK"}),", ",s||(0,t.jsx)(x.sA,{id:"COMMON_FALLBACK"})," ",(0,t.jsx)(x.sA,{id:"COMMON_UNIT_MHZ"}),")"]}),D?(0,t.jsx)(j.A,{}):null]}),(0,t.jsx)(u.A,{width:M.MIMO,children:(0,t.jsx)(r.A,{children:n||(0,t.jsx)(x.sA,{id:"COMMON_FALLBACK"})})}),(0,t.jsx)(u.A,{width:M.STANDARD,children:(0,t.jsx)(r.A,{children:d||(0,t.jsx)(x.sA,{id:"COMMON_FALLBACK"})})}),C]})})}},420240(e,s,i){i.d(s,{A:()=>d});var t=i(274934),r=i(470070),n=i(927316);const d=({name:e,radio_table:s,radio_table_stats:i})=>{const d=(0,n.ry)({name:e,radio_table:s,radio_table_stats:i});return(0,t.jsx)(t.Fragment,{children:d&&"auto"!==d?d:(0,t.jsx)(r.sA,{id:"COMMON_AUTO"})})}},216082(e,s,i){i.d(s,{A:()=>O});var t,r=i(274934),n=i(954702),d=i(602086),l=i(977872),c=i(938984),a=i(976458),o=i(470070),x=i(535322),A=i(376892),_=i(222102);!function(e){e.OPEN_MODAL="openModal"}(t||(t={}));const m=(0,_.Mz)(a.zn,e=>void 0!==e[t.OPEN_MODAL]);var j=i(828373),h=i(367821);const u=({uidbDevice:e})=>{const s=(0,l.d4)(a.zn),i=s?.[t.OPEN_MODAL];return i?(0,r.jsx)(n.A,{onClick:()=>i(e),children:(0,r.jsx)(c.A,{size:"medium",color:"inherit",children:(0,r.jsx)(o.sA,{id:"DEVICE_SHOW_DETAILS"})})}):null},p=({shortname:e})=>{(0,h.A)();const s=(0,l.d4)((0,d.useMemo)(()=>(0,j.$E)(e),[e]));return s?.compliance?(0,r.jsx)(x.A,{type:x.I.ACCORDION,items:[{id:"compliance",label:(0,r.jsx)(A.A,{id:"COMMON_COMPLIANCE"}),renderContent:()=>(0,r.jsx)(u,{uidbDevice:s}),openByDefault:!0}]}):null},O=({shortname:e})=>(0,l.d4)(m)?(0,r.jsx)(p,{shortname:e}):null},275247(e,s,i){i.d(s,{A:()=>c});var t=i(274934),r=i(938984),n=i(320509),d=i(470070),l=i(664092);const c=({rx_rate:e})=>e>0?(0,t.jsxs)(l.A,{children:[(0,t.jsx)(r.A,{color:"text-2",size:"medium",children:(0,t.jsx)(d.sA,{id:"COMMON_RX_RATE"})}),(0,t.jsx)(r.A,{color:"text-3",size:"medium",children:(0,n.Up)(e)})]}):null},206945(e,s,i){i.d(s,{A:()=>c});var t=i(274934),r=i(938984),n=i(320509),d=i(470070),l=i(664092);const c=({tx_rate:e})=>e>0?(0,t.jsxs)(l.A,{children:[(0,t.jsx)(r.A,{color:"text-2",size:"medium",children:(0,t.jsx)(d.sA,{id:"COMMON_TX_RATE"})}),(0,t.jsx)(r.A,{color:"text-3",size:"medium",children:(0,n.Up)(e)})]}):null},820266(e,s,i){i.d(s,{A:()=>O});var t=i(274934),r=i(977872),n=i(602086),d=i(938984),l=i(599110),c=i(247816),a=i(409844),o=i(590979),x=i(449339),A=i(309130),_=i(205521),m=i(470070),j=i(664092);const h=(0,c.A)(l.A)`
  height: 24px;
  display: block;
  padding: 0;
`,u=a.AH`
  margin-left: ${A.kc};
  overflow: hidden;
`,p=a.AH`
  display: inline-block !important;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 100%;
`,O=(0,n.memo)(({uplinkMac:e,uplinkName:s,label:i="COMMON_DEVICE"})=>{const l=(0,r.wA)(),c=(0,n.useCallback)(s=>{s.preventDefault(),s.stopPropagation(),l((0,_.XP)({type:x.H.DEVICE,id:e}))},[l,e]);return(0,t.jsxs)(j.A,{children:[(0,t.jsx)(d.A,{color:"text-2",size:"medium",children:(0,t.jsx)(m.sA,{id:i})}),(0,t.jsx)(h,{variant:"link",size:"medium",onClick:c,wrapClassName:u,contentClassName:p,...o.A.addDataTestId(o.A.TestId.SIDE_PANEL_TRIGGER),children:s})]})})},664613(e,s,i){i.d(s,{A:()=>x});var t=i(274934),r=i(938984),n=i(703639),d=i(309130),l=i(100978),c=i(470070),a=i(956978),o=i(664092);const x=({sys_stats:e,flexProps:s,withTooltip:i,compact:x=!1})=>{const A=(0,a.eiG)(e);return A?(0,t.jsxs)(o.A,{flexProps:s,compact:x,children:[(0,t.jsx)(r.A,{color:"text-2",size:"medium",children:(0,t.jsx)(c.sA,{id:"COMMON_LOAD_AVERAGE"})}),i?(0,t.jsxs)(l.A,{alignItems:"center",gap:d.YC,children:[(0,t.jsx)(r.A,{color:"text-3",size:"medium",children:A}),(0,t.jsx)(n.A,{description:(0,t.jsx)(c.sA,{id:"DEVICE_PROPERTY_OVERVIEW_LOAD_AVERAGE_TOOLTIP"}),placement:"top start"})]}):(0,t.jsx)(r.A,{color:"text-3",size:"medium",children:A})]}):null}},948803(e,s,i){i.d(s,{A:()=>c});var t=i(274934),r=i(938984),n=i(347625),d=i(470070),l=i(664092);const c=({model:e})=>(0,t.jsxs)(l.A,{children:[(0,t.jsx)(r.A,{color:"text-2",size:"medium",children:(0,t.jsx)(d.sA,{id:"COMMON_MODEL"})}),(0,t.jsx)(r.A,{color:"text-3",size:"medium",children:(0,n.Lm)(e)})]})},382583(e,s,i){i.d(s,{A:()=>A});var t=i(274934),r=i(602086),n=i(938984),d=i(95032),l=i(977872),c=i(421314),a=i(470070),o=i(197571),x=i(664092);const A=({connection_network_id:e})=>{const s=(0,l.d4)(o.Tn),i=(0,r.useMemo)(()=>e?s.find(s=>s._id===e):void 0,[s,e]);return i?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(x.A,{children:[(0,t.jsx)(n.A,{color:"text-2",size:"medium",children:(0,t.jsx)(a.sA,{id:"COMMON_NETWORK"})}),(0,t.jsx)(c.A,{color:"text-3",size:"medium",flexProps:{justifyContent:"flex-end"},children:i.name})]}),null!=i.vlan?(0,t.jsxs)(x.A,{children:[(0,t.jsx)(n.A,{color:"text-2",size:"medium",children:(0,t.jsx)(a.sA,{id:"COMMON_VLAN_ID"})}),(0,t.jsx)(d.A,{color:"text-3",size:"medium",isTruncated:!0,children:i.vlan})]}):null]}):null}},831236(e,s,i){i.d(s,{A:()=>o});var t=i(274934),r=i(602086),n=i(938984),d=i(878151),l=i(320509),c=i(470070),a=i(664092);const o=(0,r.memo)(({rx_packets:e,rx_bytes:s})=>(0,t.jsxs)(a.A,{children:[(0,t.jsx)(n.A,{color:"text-2",size:"medium",children:(0,t.jsx)(c.sA,{id:"COMMON_DOWN_PKTS_BYTES"})}),(0,t.jsx)(n.A,{color:"text-3",size:"medium",children:e&&s?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d.A,{size:"body",type:"number",input:e,color:"tertiary"})," / ",(0,l.z3)(s)]}):"- / -"})]}))},781964(e,s,i){i.d(s,{A:()=>o,c:()=>a});var t=i(274934),r=i(602086),n=i(938984),d=i(331472),l=i(470070),c=i(664092);const a=({signal:e,color:s,size:i})=>(0,t.jsxs)(n.A,{size:i||"medium",color:s||(0,d.b5)(e),children:[e," ",(0,t.jsx)(l.sA,{id:"COMMON_UNIT_DBM"})]}),o=(0,r.memo)(e=>(0,t.jsxs)(c.A,{children:[(0,t.jsx)(n.A,{color:"text-2",size:"medium",children:(0,t.jsx)(l.sA,{id:"COMMON_SIGNAL"})}),(0,t.jsx)(a,{...e})]}))},413619(e,s,i){i.d(s,{A:()=>o});var t=i(274934),r=i(602086),n=i(938984),d=i(878151),l=i(320509),c=i(470070),a=i(664092);const o=(0,r.memo)(({tx_packets:e,tx_bytes:s})=>(0,t.jsxs)(a.A,{children:[(0,t.jsx)(n.A,{color:"text-2",size:"medium",children:(0,t.jsx)(c.sA,{id:"COMMON_UP_PKTS_BYTES"})}),(0,t.jsx)(n.A,{color:"text-3",size:"medium",children:e&&s?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d.A,{size:"body",type:"number",input:e,color:"tertiary"})," / ",(0,l.z3)(s)]}):"- / -"})]}))},222493(e,s,i){i.d(s,{A:()=>m});var t=i(274934),r=i(602086),n=i(558948),d=i(100978),l=i(309130),c=i(295291),a=i(938984),o=i(470070),x=i(581883),A=i(664092);const _=({radio:e})=>(0,t.jsx)(A.A,{flexProps:{marginTop:l.kc},children:(0,t.jsxs)(a.A,{variant:"heading-medium",color:"text-2",children:[(0,t.jsx)(o.sA,{id:x.U[e]})," (",(0,t.jsx)(o.sA,{id:"COMMON_MLO"}),")"]})}),m=({mlo_links:e})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.A,{}),(0,t.jsx)(d.A,{flexDirection:"column",marginTop:l.kc,children:(e||[]).map(e=>(0,t.jsxs)(r.Fragment,{children:[(0,t.jsx)(_,{radio:e.radio}),(0,t.jsx)(c.A,{stats:e})]},`${e.name}-${e.radio}`))})]})},808232(e,s,i){i.d(s,{A:()=>E});var t=i(274934),r=i(977872),n=i(602086),d=i(100978),l=i(470070),c=i(853109),a=i(857780),o=i(754924),x=i(413619),A=i(938984),_=i(664092);const m=({activeItem:e,devices:s})=>{const{poe_power:i}=(0,c.$Y)({device:e,devices:s})||{poe_power:void 0};return(0,t.jsxs)(_.A,{children:[(0,t.jsx)(A.A,{color:"text-2",size:"medium",children:(0,t.jsx)(l.sA,{id:"DEVICE_PROPERTY_UPLINK_POWER"})}),(0,t.jsx)(A.A,{color:"text-3",size:"medium",children:(0,t.jsx)(l.sA,{...+i>0?{id:"COMMON_UNIT_WATTS_SHORT",values:{value:i}}:{id:"COMMON_FALLBACK"}})})]})};var j=i(631692),h=i(831236),u=i(820266),p=i(222493),O=i(295291);const M=(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})),N=({uplink:e,activeItem:s,devices:i})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(j.A,{uplink:e}),(0,t.jsx)(m,{activeItem:s,devices:i}),(0,t.jsx)(h.A,{rx_packets:e.rx_packets,rx_bytes:e.rx_bytes}),(0,t.jsx)(x.A,{tx_packets:e.tx_packets,tx_bytes:e.tx_bytes})]}),E=({activeItem:e,devices:s})=>{const{formatMessage:i}=(0,l.tz)(),x=(0,r.d4)((0,n.useMemo)(()=>(0,o.I4)(e.mac),[e.mac])),A=(0,c.q$)(e)||{},_=(0,n.useMemo)(()=>(0,c.Uj)({type:A.type,mlo_links:A.mlo_links}),[A.type,A.mlo_links]);return(0,t.jsxs)(d.A,{height:"100%",flexDirection:"column",children:[x?.mac?(0,t.jsx)(u.A,{uplinkMac:x.mac,uplinkName:(0,c.Jz)(e,x,i),label:"COMMON_DEVICE"}):null,A.type===a.au.WIRE?(0,t.jsx)(N,{uplink:A,activeItem:e,devices:s}):null,A.type!==a.au.WIRELESS||_?null:(0,t.jsx)(O.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===a.au.WIRELESS&&_?(0,t.jsx)(p.A,{mlo_links:M(A.mlo_links)}):null]})}},295291(e,s,i){i.d(s,{A:()=>a});var t=i(274934),r=i(275247),n=i(206945),d=i(831236),l=i(781964),c=i(413619);const a=({stats:{signal:e,tx_rate:s,rx_rate:i,rx_packets:a,tx_packets:o,rx_bytes:x,tx_bytes:A}})=>(0,t.jsxs)(t.Fragment,{children:[e?(0,t.jsx)(l.A,{signal:e}):null,(0,t.jsx)(n.A,{tx_rate:s}),(0,t.jsx)(r.A,{rx_rate:i}),(0,t.jsx)(d.A,{rx_packets:a,rx_bytes:x}),(0,t.jsx)(c.A,{tx_packets:o,tx_bytes:A})]})},367821(e,s,i){i.d(s,{A:()=>c});var t=i(602086),r=i(977872),n=i(726831),d=i(575478),l=i(828373);const c=()=>{const e=(0,r.wA)(),s=(0,r.d4)(l.eo);return(0,t.useEffect)(()=>{s||(async()=>{const s=await fetch(n.A.fingerprintPublicDatabasePath),i=await s.json();e((0,d.$)(i))})()},[s,e]),s}},828373(e,s,i){i.d(s,{$E:()=>o,eo:()=>c});var t=i(222102),r=i(271656),n=i(720770),d=i(172205);const l=e=>e[d.U.UIDB]||(0,r.A)(),c=(0,t.Mz)(l,({version:e})=>Boolean(e)),a=(0,t.Mz)(l,({devices:e})=>e||(0,n.A)()),o=e=>(0,t.Mz)(a,s=>s.find(({shortnames:s})=>e&&(s||[]).includes(e))||(0,r.A)());(0,t.Mz)(a,e=>{const s=new Map;for(let i=0;i<e.length;i+=1){const t=e[i].power?.baseConsumption;if(void 0!==t){const{shortnames:r}=e[i];for(let e=0;e<(r||[]).length;e+=1)s.set(r[e],t)}}return s})}}]);