"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[22106],{602381(e,t,s){var i,n;s.d(t,{Z:()=>n,e:()=>i}),function(e){e.WIRED="WIRED",e.WIRELESS="WIRELESS"}(i||(i={})),function(e){e.CAPTURING="CAPTURING",e.STOP_CAPTURING="STOP_CAPTURING",e.UPLOADING="UPLOADING",e.READY_TO_DOWNLOAD="READY_TO_DOWNLOAD",e.TIMEOUT="TIMEOUT"}(n||(n={}))},358935(e,t,s){s.d(t,{X2:()=>A,lX:()=>m,uC:()=>_});var i=s(571766),n=s(29472),r=s(159469),a=s(774366);const o=(0,s(401042).T7)("device/:mac:"),l=`${o}/replacement-candidates`,d=`${o}/replace?replacementDeviceMac=:replacement-mac:`,c=`${o}/replace`,m=(e={},t={})=>(0,n.Kd)("replacementCandidates",`${l.replace(":mac:",e.queryParams?.mac)}`,e.queryParams?.mac,e,{...t,idField:"mac"}),_=(e,t)=>s=>s((0,n.vB)(i.aC,null,null,a.A.POST,d.replace(":mac:",e).replace(":replacement-mac:",t),{},null,{})),A=e=>t=>t((0,n.vB)(i.aC,null,null,a.A.DELETE,c.replace(":mac:",e),{},null,{failureToast:()=>({icon:r.C.danger,message:"COMMON_UNKNOWN_ERROR"})}))},177445(e,t,s){s.d(t,{A:()=>o});var i=s(602086),n=s(977872),r=s(223597),a=s(34118);const o=({client:{id:e,type:t,status:s,blocked:o},props:l,children:d})=>{const c=(0,i.useMemo)(()=>t===r.sK.VPN?r.N7.VPN:t===r.sK.TELEPORT?r.N7.TELEPORT:o?r.N7.BLOCKED:s===r.S2.OFFLINE?r.N7.OFFLINE:r.N7.ACTIVE,[t,o,s]),m=(0,n.d4)((0,i.useMemo)(()=>(0,a.kV)(e,l,c),[e,l,c]));return d((0,i.useMemo)(()=>m,[m]))}},54052(e,t,s){s.d(t,{A:()=>a});var i=s(602086),n=s(977872),r=s(670830);const a=({mac:e,props:t,children:s})=>s((0,n.d4)((0,i.useMemo)(()=>(0,r.eu)(e,t),[e,t])))},752104(e,t,s){s.d(t,{A:()=>n,Q:()=>r});var i=s(765567);const n="_",r=[i.ZM,i.Je]},453007(e,t,s){s.d(t,{A:()=>a});var i=s(179102),n=s(247816),r=s(291508);const a=(0,n.A)(i.A,(0,r.A)("colorOverride"))`
  ${({colorOverride:e})=>e?`color: ${e} !important`:""};
`},347500(e,t,s){s.d(t,{A:()=>o});var i=s(274934),n=s(602086),r=s(898809),a=s(254590);const o=({startTimestamp:e,uptimeParams:t})=>{const s=(0,n.useRef)(null),o=(0,n.useRef)(null),l=(0,n.useCallback)(t=>{s.current&&(s.current.innerText=e?(0,r.Ay)(Math.floor(Date.now()/1e3)-e,t).join(" "):a.L,o.current&&clearTimeout(o.current),o.current=setTimeout(()=>{l(t)},1e3))},[e]);return(0,n.useEffect)(()=>(e&&l(t),()=>{o.current&&clearTimeout(o.current)}),[e,t,l]),(0,i.jsx)("span",{ref:s})}},189042(e,t,s){s.d(t,{A:()=>f});var i=s(274934),n=s(977872),r=s(602086),a=s(244081),o=s(586566),l=s(441318),d=s(996077),c=s(539453),m=s(553732),_=s(897166),A=s(147433),x=s(247816),u=s(669439),p=s(648175),E=s(470070),h=s(956978),j=s(434521),C=s(45978),O=s(147045);const I=(0,x.A)("span")`
  width: 100%;
`,N=({activeItem:e,onClick:t,disabledWithReason:s,[O.L]:n})=>{const r=(e=>{const t=(0,j.S9)(e);return e.disabled||t!==C.g.CONNECTED||!(0,h.sc7)(t)?"DEVICE_PCAP_DISABLED_TOOLTIP":null})(e)||s;return(0,i.jsx)(u.A,{description:r?(0,i.jsx)(E.sA,{id:r}):void 0,children:(0,i.jsx)(I,{...n&&{[O.L]:n},children:(0,i.jsx)(p.A,{onClick:t,isDisabled:!!r,width:"full",children:(0,i.jsx)(E.sA,{id:"COMMON_PACKET_CAPTURE"})})})})};var T=s(205521),R=s(449339),M=s(590979),g=s(231083),v=s(409844),P=s(309130),b=s(100978);const S=v.AH`
  &:empty {
    display: none;
  }
`,D=(0,x.A)("div")`
  flex: 1 1 0;
  min-width: 33%;
  box-sizing: border-box;
  padding-right: ${P.kc};

  &:last-child {
    padding-right: 0;
  }
`,w=({children:e,...t})=>(0,i.jsx)(b.A,{marginTop:P.kc,className:S,...t,children:r.Children.map(e,e=>e?(0,i.jsx)(D,{className:S,children:e}):null)}),f=({activeItem:e,showPortsButton:t,showCaptureButton:s})=>{const x=(0,n.wA)(),u=(0,n.d4)(_.vc),p=(0,n.d4)(l.ar),E=s&&u===e.mac&&p&&(0,o.W4)(e,A.A.PCAP),h=t&&e.port_table?.length>0;(0,r.useEffect)(()=>{x((0,m.Sk)(void 0,{crudCacheStrategy:{type:a.e.CACHE}})),x((0,c.hh)(void 0,{crudCacheStrategy:{type:a.e.CACHE}}))},[x]);const j=(0,r.useCallback)(()=>{x((0,T.XP)({type:R.H.PACKET_CAPTURE,id:e.mac,customData:{captureDeviceType:d.X.GATEWAY}}))},[x,e.mac]);return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(w,{children:[h?(0,i.jsx)(g.A,{mac:e.mac}):null,E?(0,i.jsx)(N,{activeItem:e,captureDeviceType:d.X.GATEWAY,onClick:j,...M.A.addDataTestId(M.A.TestId.SIDE_PANEL_TRIGGER)}):null]})})}},721398(e,t,s){s.d(t,{A:()=>o});var i=s(274934),n=s(548941),r=s(247368),a=s(470070);const o=({messageId:e,tooltipClassName:t,values:s,isInteractive:o,portal:l,variant:d="twoTone",size:c="medium"})=>(0,i.jsx)(n.A,{description:(0,i.jsx)(a.sA,{id:e,values:s}),width:210,isInteractive:o,portal:l,tooltipClassName:t,children:(0,i.jsx)(r.A,{isActive:!0,omitSvgMargin:!0,variant:d,size:c})})},996077(e,t,s){var i,n;s.d(t,{A:()=>i,X:()=>n}),function(e){e.DEFAULT="default",e.IN_PROGRESS="inProgress",e.READY="ready",e.DOWNLOADING="downloading",e.STOPPING="stopping"}(i||(i={})),function(e){e.AP="ap",e.GATEWAY="gateway"}(n||(n={}))},441318(e,t,s){s.d(t,{VQ:()=>T,ar:()=>M,ax:()=>g,r8:()=>v});var i=s(222102),n=s(430328),r=s(197719),a=s(254590),o=s(243436),l=s(910577),d=s(407386),c=s(423564),m=s(581814),_=s(197571),A=s(267142),x=s(644533),u=s(754924),p=s(544691),E=s(602381),h=s(996077);const j=[m.rR.CORPORATE,m.rR.GUEST],C=e=>void 0===e||e,O=({_id:e,name:t,enabled:s,ip_subnet:i,ipv6_subnet:n,wan_networkgroup:r,vpn_type:o,purpose:l,l2tp_interface:d,openvpn_interface:m,wireguard_interface:_,ipsec_interface:x,sdwan_hub_spoke_local_wan_id:u},p)=>({_id:e,enabled:C(s),name:t||a.L,ip_subnet:p?a.L:(0,c.Qe)({ip_subnet:i,ipv6_subnet:n},A.L),wan_networkgroup:r,vpn_type:o,ipsec_interface:x,l2tp_interface:d,openvpn_interface:m,purpose:l,sdwan_hub_spoke_local_wan_id:u,wireguard_interface:_}),I=(e,t)=>e?e===r.C.WAN?t.wan1:t[e.toLocaleLowerCase()]||{}:{},N=(e,t=E.e.WIRELESS)=>(0,i.Mz)(_.Ct,l.Ag,(0,p.a5)(e),u.fq,u.Dx,(e,s,i,n,r)=>{const a=s.reduce((e,{enabled:t,networkconf_id:s,ap_group_ids:n=[]})=>(t&&i.some(({_id:e})=>n.includes(e))&&e.push(s),e),[]);return e.reduce((e,s)=>(x.A.includes(s.purpose)&&(a.includes(s._id)||t===E.e.WIRED)&&e.push(O(s,(0,o.cH)({gateway_device:s.gateway_device,purpose:s.purpose},n,r))),e),[])}),T=(e,t=E.e.WIRELESS)=>(0,i.Mz)(N(e,t),e=>Boolean(e.length)),R=(0,n.WY)()((0,i.Mz)(_.Ct,u.U$,d.$D,u.AL,(e,t,s,i)=>[...e.reduce((e,s)=>(s&&t.network_table?.some(({_id:e})=>e===s._id)&&C(s.enabled)&&s.gateway_type!==m.xk.SWITCH&&j.includes(s.purpose)&&e.push(O(s)),e),[]),...s.reduce((e,{configuration:s={}})=>{if((({purpose:e,wan_networkgroup:t},s)=>{if(e!==m.rR.WAN)return!1;if(t===r.C.WAN_LTE_FAILOVER)return!0;const i=I(t,s);return!!i?.up})(s,t)){let n;if(s.wan_networkgroup===r.C.WAN_LTE_FAILOVER)n=i?.lte_ip;else{const e=I(s.wan_networkgroup,t);n=e?.ip}e.push({...O(s),...n?{ip_subnet:n}:{}})}return e},[])]),e=>e),M=(0,n.WY)()((0,i.Mz)(R,e=>Boolean(e.length)),e=>e),g=(e,t,s)=>{switch(t){case h.X.AP:return s===E.e.WIRELESS?N(e,s):(e=>(0,i.Mz)((0,u.tG)(e),_.Ct,u.fq,u.Dx,(e,t,s,i)=>{if(!e.connection_network_id)return[];const n=t.find(({_id:t})=>t===e.connection_network_id);return n?[O(n,(0,o.cH)({gateway_device:n.gateway_device,purpose:n.purpose},s,i))]:[]}))(e);case h.X.GATEWAY:return R;default:return()=>[]}},v=e=>(0,i.Mz)(l.Ag,t=>{const s=t.filter(t=>t.networkconf_id===e);return[...new Set(s.flatMap(e=>e.wlan_bands))]})},241615(e,t,s){s.d(t,{A:()=>R});var i=s(274934),n=s(602086),r=s(247816),a=s(293668),o=s(309130),l=s(179102),d=s(100978),c=s(470070),m=s(664092);const _=({id:e,isDisabledRadio:t})=>(0,i.jsx)(d.A,{marginBottom:t?0:o.kc,children:(0,i.jsxs)(m.A,{children:[(0,i.jsx)(l.A,{weight:"bold",size:"medium",children:(0,i.jsx)(c.sA,{id:e})}),t?(0,i.jsx)(l.A,{color:"text-3",size:"medium",children:(0,i.jsx)(c.sA,{id:"COMMON_DISABLED"})}):null]})});var A=s(535322),x=s(561614),u=s(175650),p=s(662986);const E=({radio_table_item:e,type:t,stat:s})=>{const{retryPercentage:r,droppedPercentage:a}=(0,n.useMemo)(()=>(0,u.GI)(t,e,"tx",s),[e,t,s]);return(0,i.jsxs)(m.A,{children:[(0,i.jsx)(l.A,{color:"text-2",size:"medium",children:(0,i.jsx)(c.sA,{id:"DEVICE_PROPERTIES_LABEL_TX_RETRY_DROPPED"})}),(0,i.jsxs)(l.A,{color:"text-3",size:"medium",children:[(0,p.l)(r)," / ",(0,p.l)(a)]})]})},h=({radio_table_item:e,type:t,stat:s})=>{const{totalPackets:r,totalBytes:a}=(0,n.useMemo)(()=>(0,u.GI)(t,e,"tx",s),[t,e,s]);return(0,i.jsxs)(m.A,{children:[(0,i.jsx)(l.A,{color:"text-2",size:"medium",children:(0,i.jsx)(c.sA,{id:"DEVICE_PROPERTIES_LABEL_TX_PKTS_BYTES"})}),(0,i.jsxs)(l.A,{color:"text-3",size:"medium",children:[r??(0,i.jsx)(c.sA,{id:"COMMON_FALLBACK"})," /"," ",a??(0,i.jsx)(c.sA,{id:"COMMON_FALLBACK"})]})]})},j=({radio_table_stats:e,radio_table_stats_item:t})=>{const{formatMessage:s}=(0,c.tz)(),r=(0,n.useMemo)(()=>(0,u.ZJ)(e,t,s),[e,t,s]);return r?(0,i.jsxs)(m.A,{children:[(0,i.jsx)(l.A,{color:"text-2",size:"medium",children:(0,i.jsx)(c.sA,{id:"DEVICE_PROPERTIES_LABEL_TX_EIRP"})}),(0,i.jsx)(l.A,{color:"text-3",size:"medium",children:r})]}):null},C=({radio_table_item:e,type:t,stat:s})=>{const{retryPercentage:r,droppedPercentage:a}=(0,n.useMemo)(()=>(0,u.GI)(t,e,"rx",s),[e,t,s]);return(0,i.jsxs)(m.A,{children:[(0,i.jsx)(l.A,{color:"text-2",size:"medium",children:(0,i.jsx)(c.sA,{id:"DEVICE_PROPERTIES_LABEL_RX_RETRY_DROPPED"})}),(0,i.jsxs)(l.A,{color:"text-3",size:"medium",children:[(0,p.l)(r)," / ",(0,p.l)(a)]})]})},O=({radio_table_item:e,type:t,stat:s})=>{const{totalPackets:r,totalBytes:a}=(0,n.useMemo)(()=>(0,u.GI)(t,e,"rx",s),[t,e,s]);return(0,i.jsxs)(m.A,{children:[(0,i.jsx)(l.A,{color:"text-2",size:"medium",children:(0,i.jsx)(c.sA,{id:"DEVICE_PROPERTIES_LABEL_RX_PKTS_BYTES"})}),(0,i.jsxs)(l.A,{color:"text-3",size:"medium",children:[r??(0,i.jsx)(c.sA,{id:"COMMON_FALLBACK"})," /"," ",a??(0,i.jsx)(c.sA,{id:"COMMON_FALLBACK"})]})]})},I=({radio_table_stats:e,radio_table_item:t,flexProps:s})=>{const r=(0,n.useMemo)(()=>(0,u.Lm)(e,t),[e,t]);return r?(0,i.jsxs)(m.A,{flexProps:s,children:[(0,i.jsx)(l.A,{color:"text-2",size:"medium",children:(0,i.jsx)(c.sA,{id:"DEVICE_PROPERTIES_LABEL_CHANNEL_UTILIZATION"})}),(0,i.jsx)(l.A,{color:"text-3",size:"medium",children:`${r.total}% / ${r.selfRx}% / ${r.selfTx}%`})]}):null};var N=s(376892);const T=(0,r.A)(d.A)`
  &:not(:last-child) {
    margin-bottom: ${o.Ln};
  }
`,R=(0,n.memo)(({radio_table:e,radio_table_stats:t,type:s,stat:r,support_wifi6e:o})=>{const l=(0,n.useMemo)(()=>[...e||[]].sort(u.j3),[e]);return l.length?(0,i.jsx)(A.A,{type:A.I.ACCORDION,items:[{id:"airStats",label:(0,i.jsx)(N.A,{id:"DEVICE_PROPERTY_AIR_STATS"}),openByDefault:!0,renderContent:()=>l.map(({radio:n,name:l})=>{const c=t?.find(e=>e.radio===n&&e.name===l),m=e?.find(e=>e.radio===n&&e.name===l),A=(0,u.Ww)(m);return n!==x.sx.RADIO_6E||o?(0,i.jsxs)(T,{flexDirection:"column",children:[(0,i.jsx)(_,{id:(0,a.dI)(n),isDisabledRadio:A}),A?void 0:(0,i.jsxs)(d.A,{height:"100%",flexDirection:"column",children:[(0,i.jsx)(j,{radio_table_stats:t,radio_table_stats_item:c}),(0,i.jsx)(h,{radio_table_item:m,type:s,stat:r}),(0,i.jsx)(O,{radio_table_item:m,type:s,stat:r}),(0,i.jsx)(E,{radio_table_item:m,type:s,stat:r}),(0,i.jsx)(C,{radio_table_item:m,type:s,stat:r}),(0,i.jsx)(I,{radio_table_stats:t,radio_table_item:m})]})]},`${n}-${l}`):null})}]}):null})},686318(e,t,s){s.d(t,{S:()=>D});var i=s(274934),n=s(977872),r=s(602086),a=s(645759),o=s(247816),l=s(244081),d=s(724081),c=s(376892),m=s(535322),_=s(904614),A=s(561614),x=s(393482),u=s(222102),p=s(254585),E=s(910577),h=s(544691);const j=(0,u.Mz)(h.K8,E.Ag,p.gm,(e,t,s)=>e.filter(({device_macs:e,for_wlanconf:t})=>e.includes(s)&&!t).map(e=>{const s=[];return((t||[]).filter(t=>t?.ap_group_ids?.includes(e._id))||[]).forEach(t=>{(t?.wlan_bands||[]).forEach(i=>{s.push({...t,id:`${t._id}-${e._id}-${i}`,wlan_band:i})}),s.length||s.push({...t,id:t._id+e._id})}),{...e,id:e._id,children:s}}));var C=s(548941),O=s(775250),I=s(927017),N=s(408402),T=s(470070),R=s(220700);const M=(0,o.A)(I.A)`
  margin-right: 7px;
  margin-bottom: 2px;
`,g=e=>t=>(0,i.jsx)(C.A,{description:(0,i.jsx)(i.Fragment,{children:e.map(e=>(0,i.jsxs)(r.Fragment,{children:[(0,i.jsx)(T.sA,{id:"COMMON_BSSID"})," ",e]},e))}),width:167,portal:!0,children:t}),v=[{id:"name",label:(0,i.jsx)(T.sA,{id:"DEVICE_PROPERTIES_AP_GROUP_TABLE_HEADER_NAME"}),renderCell:({name:e,attr_no_delete:t,children:s,wlan_band:n,bssids:r})=>s?(0,i.jsx)(O.A,{isTruncated:!0,color:"inherit",size:"medium",children:(0,R.K5)({attr_no_delete:t})?(0,i.jsxs)(i.Fragment,{children:[e," (",(0,i.jsx)(T.sA,{id:"COMMON_DEFAULT"}),")"]}):e}):(0,i.jsx)(N.A,{condition:!!r?.length,wrapper:g(r||[]),children:(0,i.jsxs)(O.A,{isTruncated:!0,color:"inherit",size:"medium",children:[n===_._$.NG?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(M,{}),e," (",(0,i.jsx)(T.sA,{id:"COMMON_RADIO_BAND_NG"}),")"]}):null,n===_._$.NA?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(M,{}),e," (",(0,i.jsx)(T.sA,{id:"COMMON_RADIO_BAND_NA"}),")"]}):null,n===_._$.AX?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(M,{}),e," (",(0,i.jsx)(T.sA,{id:"COMMON_RADIO_BAND_6E"}),")"]}):null]})})}],P=(0,o.A)("div")`
  table thead {
    display: none;
  }
`,b={[_._$.NG]:A.sx.RADIO_NG,[_._$.NA]:A.sx.RADIO_NA,[_._$.AX]:A.sx.RADIO_6E},S=({vap_table:e=[],radio_table:t=[]})=>{const s=(0,n.d4)(j),o=(0,r.useMemo)(()=>t?.reduce((e,t)=>(e[t.radio]=t,e),{}),[t]),c=(0,r.useMemo)(()=>s.map(t=>({...t,children:(t.children||[]).filter(e=>e.wlan_band&&o?.[b[e.wlan_band]]).map(t=>({...t,bssids:e?.filter(e=>t.wlan_band&&e.wlanconf_id===t._id&&e.radio===b[t.wlan_band]).map(e=>e?.bssid||"")}))})),[s,o,e]);return(0,d.A)([(0,x.Yo)(void 0,{crudCacheStrategy:{type:l.e.CACHE}})],(0,i.jsx)(P,{children:(0,i.jsx)(a.A,{truncateHeaderCells:!0,items:c,columns:v,disableColumnFilters:!0,disableSelection:!0,disableTextPointer:!0})}))},D=(0,r.memo)(({vap_table:e,radio_table:t})=>e?.length?(0,i.jsx)(m.A,{type:m.I.ACCORDION,items:[{id:"apGroups",label:(0,i.jsx)(c.A,{id:"COMMON_AP_GROUPS"}),renderContent:()=>(0,i.jsx)(S,{vap_table:e,radio_table:t}),openByDefault:!0}]}):null)},646077(e,t,s){s.d(t,{FN:()=>w,XG:()=>P,ZP:()=>b,dC:()=>v,hW:()=>R,kD:()=>f,mb:()=>T,pm:()=>M});var i=s(274934),n=s(505817),r=s(602086),a=s(548941),o=s(505753),l=s(179102),d=s(775250),c=s(247816),m=s(442175),_=s(898809),A=s(455425),x=s(309130),u=s(347500),p=s(907488),E=s(100978),h=s(470070),j=s(54052),C=s(177445),O=s(223597),I=s(128066);const N=(0,c.A)(E.A)`
  > div > div {
    height: 8px;
    margin: 0;
    div {
      height: inherit !important;
    }
  }
`,T=(0,c.A)(d.A)`
  :hover {
    color: ${({theme:{themeName:e}})=>n.Ay[`desktop-color-ublue-06-${e}`]};
  }
`,R=({score:e,headerTranslationKey:t,scoreTranslationKey:s,color:n,hideScore:r})=>(0,i.jsxs)(E.A,{justifyContent:"space-between",children:[(0,i.jsx)(l.A,{color:"text-1",size:"medium",weight:"bold",children:(0,i.jsx)(h.sA,{id:t})}),(0,i.jsxs)(l.A,{size:"medium",style:{color:n},children:[(0,i.jsx)(h.sA,{id:s}),e>=0&&e<=100&&!r?(0,i.jsxs)(i.Fragment,{children:[" (",e,"%)"]}):null]})]}),M=({wiredRateMbps:e,motif:t})=>(0,i.jsxs)(E.A,{justifyContent:"space-between",children:[(0,i.jsx)(l.A,{size:"medium",weight:"bold",children:(0,i.jsx)(h.sA,{id:"COMMON_WIRED_EXPERIENCE"})}),(0,i.jsx)(l.A,{size:"medium",...e>0?{style:{color:(0,I.xe)(e,t)}}:{color:"disabled"},children:e>0?(0,m.ir)(e):(0,i.jsx)(h.sA,{id:"COMMON_FALLBACK"})})]}),g=({color:e,tooltipColor:t,labelTranslationKey:s,scoreTranslationKey:n,score:r,hideScore:a=!1,wiredRateMbps:o,not_reported:d,from:c,to:m})=>(0,i.jsxs)(E.A,{flexDirection:"column",whiteSpace:"nowrap",children:[(0,i.jsxs)(E.A,{justifyContent:"space-between",children:[(0,i.jsx)(l.A,{weight:"bold",color:"text-1",children:(0,i.jsx)(h.sA,{id:s})}),(0,i.jsxs)(l.A,{style:{color:t||e},children:[(0,i.jsx)(h.sA,{id:d?"COMMON_NOT_REPORTED":n,values:{value:o?o<1e3?o:o/1e3:0}}),r>=0&&r<=100&&!d&&!a?(0,i.jsxs)(i.Fragment,{children:[" (",r,"%)"]}):null]})]}),(0,i.jsxs)(E.A,{justifyContent:"space-between",children:[(0,i.jsx)(E.A,{marginRight:x.Ln,children:(0,i.jsx)(l.A,{color:"text-1",children:(0,i.jsx)(h.sA,{id:"COMMON_TIME"})})}),(0,i.jsxs)(l.A,{children:[c," - ",m]})]})]}),v=(0,r.memo)(({stackedBarItems:e,siteTimezone:t,language:s,selfHourCycle:n,hideScore:r=!1,wiredRateMbps:a,labelTranslationKey:l})=>(0,i.jsx)(N,{children:(0,i.jsx)(o.A,{items:e,rounded:!0,itemTooltip:({score:e,color:o,tooltipColor:d,translationKey:c,timestamp:m,nextTimestamp:_,not_reported:A})=>({animate:!1,delay:.2,message:(0,i.jsx)(g,{color:o,tooltipColor:d,labelTranslationKey:l,scoreTranslationKey:c,score:e,hideScore:r,not_reported:A,wiredRateMbps:a,from:new Intl.DateTimeFormat(s,{timeZone:t,hourCycle:n,hour:"numeric",minute:"2-digit",day:"numeric",month:"short"}).format(m),to:new Intl.DateTimeFormat(s,{timeZone:t,hourCycle:n,hour:"numeric",minute:"2-digit",day:"numeric",month:"short"}).format(_)}),width:"auto",maxWidth:"auto"})})})),P=({siteTimezone:e,selfHourCycle:t,startTime:s,language:n})=>(0,i.jsxs)(E.A,{justifyContent:"space-between",marginBottom:x.kc,children:[(0,i.jsx)(l.A,{color:"text-3",size:"small",children:new Intl.DateTimeFormat(n,{timeZone:e,hourCycle:t,hour:"numeric",minute:"2-digit"}).format(s||Date.now()-432e5)}),(0,i.jsx)(l.A,{color:"text-3",size:"small",children:new Intl.DateTimeFormat(n,{timeZone:e,hourCycle:t,hour:"numeric",minute:"2-digit"}).format(s?s+432e5:Date.now())}),(0,i.jsx)(l.A,{color:"text-3",size:"small",children:(0,i.jsx)(h.sA,{id:"COMMON_NOW"})})]}),b=({activeItem:e,isUnifiDeviceClient:t=!1})=>{const s=(0,r.useMemo)(()=>t?j.A:C.A,[t]);return(0,i.jsx)(s,{mac:e.mac,client:e,props:["tx_bytes-r","rx_bytes-r"],children:({"tx_bytes-r":e=0,"rx_bytes-r":t=0})=>(0,i.jsxs)(E.A,{children:[(0,i.jsx)(p.A,{style:{marginRight:"6px"},bytesPerSecond:e,direction:"down",size:"medium",iconStyle:{width:"16px",height:"16px",marginRight:"2px"}}),(0,i.jsx)(p.A,{bytesPerSecond:t,direction:"up",size:"medium",iconStyle:{width:"16px",height:"16px",marginRight:"2px"}})]})})},S=e=>[_.Au.HOURS,_.Au.MINUTES,Math.floor((Date.now()-new Date(1e3*e).getTime())/A.jU)<1?_.Au.SECONDS:_.Au.DAYS],D=(0,r.memo)(({id:e,startTimestamp:t})=>(0,i.jsx)(a.A,{width:100,description:(0,i.jsx)(d.A,{size:"small",color:"text-1",isCentered:!0,style:{width:"100%"},children:(0,i.jsx)(h.sA,{id:e})}),children:(0,i.jsx)(l.A,{size:"medium",color:"text-2",children:(0,i.jsx)(u.A,{startTimestamp:t,uptimeParams:S(t)})})})),w=(0,r.memo)(({status:e,assoc_time:t,last_seen:s})=>e===O.S2.ONLINE&&t?(0,i.jsx)(D,{id:"COMMON_UPTIME",startTimestamp:t}):e===O.S2.OFFLINE&&s?(0,i.jsx)(D,{id:"COMMON_LAST_SEEN",startTimestamp:s}):null),f=({uptime:e,last_seen:t})=>e>=0?(0,i.jsx)(a.A,{description:(0,i.jsx)(h.sA,{id:"COMMON_UPTIME"}),children:(0,i.jsx)(l.A,{size:"medium",children:(0,_.Ay)(e)})}):t?(0,i.jsxs)(E.A,{width:"100%",whiteSpace:"nowrap",justifyContent:"flex-end",children:[(0,i.jsx)(l.A,{size:"medium",children:(0,i.jsx)(h.sA,{id:"COMMON_LAST_SEEN"})})," ",(0,i.jsx)(l.A,{size:"medium",color:"inherit",children:(0,i.jsx)(u.A,{startTimestamp:t,uptimeParams:S(t)})})]}):null},664613(e,t,s){s.d(t,{A:()=>m});var i=s(274934),n=s(179102),r=s(664453),a=s(309130),o=s(100978),l=s(470070),d=s(956978),c=s(664092);const m=({sys_stats:e,flexProps:t,withTooltip:s,compact:m=!1})=>{const _=(0,d.eiG)(e);return _?(0,i.jsxs)(c.A,{flexProps:t,compact:m,children:[(0,i.jsx)(n.A,{color:"text-2",size:"medium",children:(0,i.jsx)(l.sA,{id:"COMMON_LOAD_AVERAGE"})}),s?(0,i.jsxs)(o.A,{alignItems:"center",gap:a.YC,children:[(0,i.jsx)(n.A,{color:"text-3",size:"medium",children:_}),(0,i.jsx)(r.A,{description:(0,i.jsx)(l.sA,{id:"DEVICE_PROPERTY_OVERVIEW_LOAD_AVERAGE_TOOLTIP"}),placement:"top start"})]}):(0,i.jsx)(n.A,{color:"text-3",size:"medium",children:_})]}):null}},948803(e,t,s){s.d(t,{A:()=>l});var i=s(274934),n=s(179102),r=s(347625),a=s(470070),o=s(664092);const l=({model:e})=>(0,i.jsxs)(o.A,{children:[(0,i.jsx)(n.A,{color:"text-2",size:"medium",children:(0,i.jsx)(a.sA,{id:"COMMON_MODEL"})}),(0,i.jsx)(n.A,{color:"text-3",size:"medium",children:(0,r.Lm)(e)})]})},382583(e,t,s){s.d(t,{A:()=>_});var i=s(274934),n=s(602086),r=s(179102),a=s(775250),o=s(977872),l=s(156007),d=s(470070),c=s(197571),m=s(664092);const _=({connection_network_id:e})=>{const t=(0,o.d4)(c.Tn),s=(0,n.useMemo)(()=>e?t.find(t=>t._id===e):void 0,[t,e]);return s?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(m.A,{children:[(0,i.jsx)(r.A,{color:"text-2",size:"medium",children:(0,i.jsx)(d.sA,{id:"COMMON_NETWORK"})}),(0,i.jsx)(l.A,{color:"text-3",size:"medium",flexProps:{justifyContent:"flex-end"},children:s.name})]}),null!=s.vlan?(0,i.jsxs)(m.A,{children:[(0,i.jsx)(r.A,{color:"text-2",size:"medium",children:(0,i.jsx)(d.sA,{id:"COMMON_VLAN_ID"})}),(0,i.jsx)(a.A,{color:"text-3",size:"medium",isTruncated:!0,children:s.vlan})]}):null]}):null}},919304(e,t,s){s.d(t,{A:()=>d});var i=s(274934),n=s(602086),r=s(179102),a=s(470070),o=s(314229),l=s(664092);const d=({psu_table:e})=>{const t=(0,n.useMemo)(()=>(0,o.Rj)(e),[e]);return(0,i.jsx)(i.Fragment,{children:t.map(({status:e,statusColor:t,source:s,id:n},o)=>(0,i.jsxs)(l.A,{children:[(0,i.jsx)(r.A,{size:"medium",children:(0,i.jsx)(a.sA,{id:s,..."COMMON_POWER_SUPPLY_UNIT"===s&&{values:{psuIndex:o+1}}})}),(0,i.jsx)(r.A,{size:"medium",color:t,children:(0,i.jsx)(a.sA,{id:e})})]},n))})}},203071(e,t,s){s.d(t,{A:()=>R});var i=s(274934),n=s(602086),r=s(713035),a=s(548941),o=s(505817),l=s(505753),d=s(651172),c=s(179102),m=s(711950),_=s(247816),A=s(263705),x=s(662986),u=s(309130),p=s(100978),E=s(453007),h=s(470070),j=s(314229),C=s(820510);const O=(0,_.A)(p.A)`
  justify-content: space-between;
`,I=(0,_.A)(d.A)`
  margin: 0 6px;
  height: 10px;
`,N=(0,_.A)(m.A)`
  margin: 0 6px;
`,T=({index:e,item:t})=>(0,i.jsxs)(C.m,{children:[(0,i.jsx)(C.Y,{id:"COMMON_POWER_SUPPLY_UNIT",values:{psuIndex:""},children:e+1}),t.temp?Object.entries(t.temp).map(([e,t])=>(0,i.jsxs)(C.Y,{id:"DEVICE_TEMPERATURE_SENSOR",values:{index:+e+1},children:[t?.toFixed(1)||(0,i.jsx)(h.sA,{id:"COMMON_FALLBACK"})," ",(0,i.jsx)(h.sA,{id:"COMMON_UNIT_CELSIUS"})]},e)):null,t.fanSpeed?(0,i.jsxs)(C.Y,{id:"DEVICE_FAN_SPEED",children:[t.fanSpeed," ",(0,i.jsx)(h.sA,{id:"COMMON_UNIT_RPM"})]}):null]}),R=({psuTable:e=[],marginBottom:t})=>{const{themeName:s,motifPalette:d}=(0,A.u)(),{motif:m}=(0,r.A)(),{formatMessage:_}=(0,h.tz)(),C=(0,n.useMemo)(()=>e.map(({power:t,power_capacity:n,temp:r,fan:A,present:u,online:C,label:R},M)=>{const g=n||550,v=Math.ceil(Number.parseFloat(t)/g*100),P={variant:(0,j.NH)(v),value:v,temp:r,fanSpeed:A?.[0],online:C,present:u},b=e?.[M]?.power;return(0,i.jsxs)(p.A,{flexDirection:"column",children:[(0,i.jsxs)(O,{children:[(0,i.jsx)(c.A,{color:"text-2",size:"medium",children:(0,i.jsx)(h.sA,{id:"COMMON_POWER_SUPPLY_UNIT",values:{psuIndex:M+1}})}),(0,i.jsx)(p.A,{justifyContent:"space-between",alignItems:"center",children:P.present?(0,i.jsxs)(i.Fragment,{children:[P.online||P.value?null:(0,i.jsx)(a.A,{description:_({id:"DEVICE_USW_MC_PSU_OFFLINE_TOOLTIP"},{index:M+1}),portal:!0,children:(0,i.jsx)(N,{size:"original",variant:"fill",color:o.Ay[`desktop-color-orange-06-${s}`],fill:o.Ay[`desktop-color-neutral-00-${s}`]})}),P.online?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(c.A,{color:"text-3",size:"medium",children:(0,i.jsx)(h.sA,{id:"COMMON_UNIT_WATTS_SHORT",values:{value:`${Math.ceil(Number.parseFloat(b))}/${g}`}})}),(0,i.jsx)(I,{orientation:"vertical",color:o.Ay[`desktop-color-neutral-04-${s}`]}),(0,i.jsx)(E.A,{size:"medium",colorOverride:P.value?d[P.variant]:o.Ay[`desktop-color-text-3-${m}`],children:(0,x.A)(P.value)})]}):null]}):(0,i.jsx)(c.A,{color:"text-3",size:"medium",children:(0,i.jsx)(h.sA,{id:"DEVICE_NOT_INSTALLED"})})})]}),(0,i.jsx)(a.A,{description:P.present?(0,i.jsx)(T,{index:M,item:P}):null,width:250,children:(0,i.jsx)(l.A,{items:[P],rounded:!0})})]},R)}),[e]);return(0,i.jsx)(p.A,{flexDirection:"column",marginBottom:t??u.kI,gap:u.kc,children:C})}},956021(e,t,s){s.d(t,{A:()=>u});var i=s(274934),n=s(602086),r=s(179102),a=s(662986),o=s(331472),l=s(470070),d=s(561614),c=s(175650),m=s(664092);const _={[d.sx.RADIO_NG]:"2.4",[d.sx.RADIO_NA]:"5",[d.sx.RADIO_6E]:"6",[d.sx.RADIO_AD]:"60"},A=e=>{const t=Math.min(e,100);return(0,i.jsx)(r.A,{size:"medium",color:(0,o.Ld)(t),children:(0,a.l)(t)})},x=(e,t=" / ")=>(0,i.jsx)("div",{children:e.map((s,r)=>(0,i.jsxs)(n.Fragment,{children:[A(s),r!==e.length-1?t:null]},`${s}-pos-${String(r)}`))}),u=(0,n.memo)(({satisfaction:e,vap_table:t,radio_table:s,radio_table_stats:a})=>{const A=(0,n.useMemo)(()=>void 0!==e&&(0,o.Oq)(e),[e]),{na:u,ng:p,sixe:E,naNumSta:h,ngNumSta:j,sixeNumSta:C}=(0,n.useMemo)(()=>(0,c.VM)({vap_table:t,radio_table:s,radio_table_stats:a,satisfaction:e}),[e,t,s,a]),O=[{radio:d.sx.RADIO_NG,satisfaction:p,numSta:j},{radio:d.sx.RADIO_NA,satisfaction:u,numSta:h},{radio:d.sx.RADIO_6E,satisfaction:E,numSta:C}].filter(({satisfaction:e,numSta:t})=>((e,t)=>0!==e&&!!t)(e,t));return A&&0!==O.length?(0,i.jsxs)(m.A,{children:[(0,i.jsx)(r.A,{color:"text-2",size:"medium",children:(0,i.jsx)(l.sA,{id:"DEVICE_WIFI_EXPERIENCE",values:{band:O.map(({radio:e})=>_[e]).join("/")}})}),x(O.map(({satisfaction:e})=>e))]}):null})},999837(e,t,s){s.d(t,{A:()=>G});var i=s(274934),n=s(977872),r=s(602086),a=s(13790),o=s(526744),l=s(159469),d=s(706925),c=s(700444),m=s(470070),_=s(222102),A=s(15989),x=s(401042),u=s(358935);var p,E,h=s(857780),j=s(570866);!function(e){e.EXISTING="existing",e.NEW="new"}(p||(p={})),function(e){e.MAC="mac",e.TYPE="type",e.MODEL="model"}(E||(E={}));var C,O=s(183028),I=s(548941),N=s(699709),T=s(247368),R=s(489714),M=s(947414);!function(e){e.DEVICE_REPLACEMENT_MODE="deviceReplacementMode",e.SET_DEVICE_REPLACEMENT_MODE="setDeviceReplacementMode",e.NEW_MAC="newMac",e.SET_NEW_MAC="setNewMac",e.EXISTING_MAC="existingMac",e.SET_EXISTING_MAC="setExistingMac",e.REPLACEMENT_CANDIDATES="replacementCandidates",e.ERROR="error",e.RESET_ERROR="resetError"}(C||(C={}));const g=(0,r.createContext)({[C.DEVICE_REPLACEMENT_MODE]:void 0,[C.SET_DEVICE_REPLACEMENT_MODE]:M.P1,[C.NEW_MAC]:void 0,[C.SET_NEW_MAC]:M.P1,[C.EXISTING_MAC]:void 0,[C.SET_EXISTING_MAC]:M.P1,[C.REPLACEMENT_CANDIDATES]:[],[C.ERROR]:void 0,[C.RESET_ERROR]:M.P1}),v=s(409844).AH`
  height: 54px;
`;var P=s(247816),b=s(309130),S=s(100978);const D=(0,P.A)(S.A)`
  align-items: center;
  gap: ${b.YC};
`,w=(0,r.memo)(()=>{const{newMac:e,setNewMac:t,error:s,resetError:n}=(0,r.useContext)(g),a=(0,r.useCallback)(({target:{value:e}})=>{t((0,R.Z)(e)),n()},[t,n]);return(0,i.jsx)(N.A,{className:v,value:e,onChange:a,onFocus:n,variant:"secondary",label:(0,i.jsxs)(D,{children:[(0,i.jsx)(m.sA,{id:"COMMON_MAC_ADDRESS"}),(0,i.jsx)(I.A,{portal:!0,width:"100%",maxWidth:248,description:(0,i.jsx)(m.sA,{id:"DEVICE_REPLACEMENT_MAC_LOCATION"}),children:(0,i.jsx)(T.A,{isActive:!0})})]}),width:"100%",invalid:s})});var f=s(237887),y=s(974390);const L=(0,r.memo)(()=>{const{replacementCandidates:e,existingMac:t,setExistingMac:s,error:n,resetError:a}=(0,r.useContext)(g),o=(0,r.useMemo)(()=>e.map(({mac:e,model:t,name:s})=>({label:s,value:e,image:(0,i.jsx)(y.A,{model:t}),additionalInfo:e})),[e]),l=(0,r.useCallback)(({value:e})=>{s(String(e)),a()},[s,a]);return(0,i.jsx)(f.A.Sorted,{value:t,label:(0,i.jsx)(m.sA,{id:"COMMON_DEVICE"}),width:"100%",searchable:!0,onChange:l,onFocus:a,maxHeight:228,options:o,invalid:n})}),k=(0,P.A)(S.A)`
  flex-direction: column;
  gap: ${b.kc};
`,z=(0,r.memo)(()=>{const{replacementCandidates:e,deviceReplacementMode:t,setDeviceReplacementMode:s,resetError:n}=(0,r.useContext)(g),a=(0,r.useMemo)(()=>e.length?[{id:p.EXISTING,children:(0,i.jsx)(m.sA,{id:"COMMON_EXISTING"}),onChange:()=>{s(p.EXISTING),n()},checked:t===p.EXISTING},{id:p.NEW,children:(0,i.jsx)(m.sA,{id:"COMMON_NEW"}),onChange:()=>{s(p.NEW),n()},checked:t===p.NEW}]:[],[e.length,t,s,n]);return(0,i.jsxs)(k,{children:[(0,i.jsx)(O.A,{direction:"row",items:a}),t===p.EXISTING?(0,i.jsx)(L,{}):null,t===p.NEW?(0,i.jsx)(w,{}):null]})}),W=(0,P.A)(S.A)`
  align-items: center;
  gap: ${b.YC};
  width: fit-content;
`;var B=s(721398);const V={[h.gQ.INCOMPATIBLE_REPLACEMENT]:"DEVICE_REPLACEMENT_DEVICE_INCOMPATIBLE_REPLACEMENT_ERROR",[h.gQ.REPLACEMENT_ALREADY_ASSIGNED]:"DEVICE_REPLACEMENT_DEVICE_REPLACEMENT_ALREADY_ASSIGNED_ERROR"},F=({mac:e,hideTooltip:t=!1})=>{const{formatMessage:s}=(0,m.tz)(),d=(0,n.wA)(),[E,O]=(0,r.useState)(!1),[I,N]=(0,r.useState)(!1),[T,R]=(0,r.useState)(p.NEW),[M,v]=(0,r.useState)(""),[P,b]=(0,r.useState)(""),[S,D]=(0,r.useState)(void 0),w=(0,n.d4)((0,r.useMemo)(()=>(e=>(0,_.Mz)((e=>(0,A.uh)((0,u.lX)({queryParams:{mac:e}})))(e),e=>(0,x.i6)(e)?.devices||[]))(e),[e])),f=(0,r.useCallback)(()=>{O(!0)},[]),y=(0,r.useCallback)(()=>{O(!1),v(""),b(""),N(!1),R(p.NEW),D(void 0)},[]),L=(0,r.useCallback)(()=>{switch(T){case p.EXISTING:return P;case p.NEW:return M;default:return}},[T,P,M]),k=(0,r.useCallback)(()=>{d((0,c.ox)({icon:l.C.success,message:"DEVICE_REPLACEMENT_DEVICE_SET",duration:3e3})),y()},[d,y]),F=(0,r.useCallback)(e=>{switch(e.apiData?.replacement_state){case h.gQ.INCOMPATIBLE_REPLACEMENT:case h.gQ.REPLACEMENT_ALREADY_ASSIGNED:D(s({id:V[e.apiData.replacement_state]}));break;default:d((0,c.ox)({icon:l.C.danger,message:"DEVICE_FAILED_TO_SET_REPLACEMENT_DEVICE",duration:3e3}))}},[d,s]),G=(0,r.useCallback)(()=>{N(!1)},[]),U=(0,r.useCallback)(()=>{N(!0),d((0,u.uC)(e,L())).then(k).catch(F).finally(G)},[d,k,F,e,L,G]),K=(0,r.useMemo)(()=>Boolean(L().match(j.b8)),[L]),$=(0,r.useMemo)(()=>[{text:(0,i.jsx)(m.sA,{id:"COMMON_ACTION_CANCEL"}),variant:"tertiary",onClick:y},{text:(0,i.jsx)(m.sA,{id:"COMMON_ACTION_APPLY"}),variant:"primary",onClick:U,disabled:!K||I,loader:I?"spinner":void 0}],[y,U,K,I]),Y=(0,r.useCallback)(()=>{D(void 0)},[D]),X=(0,r.useMemo)(()=>({[C.DEVICE_REPLACEMENT_MODE]:T,[C.SET_DEVICE_REPLACEMENT_MODE]:R,[C.NEW_MAC]:M,[C.SET_NEW_MAC]:v,[C.EXISTING_MAC]:P,[C.SET_EXISTING_MAC]:b,[C.REPLACEMENT_CANDIDATES]:w,[C.ERROR]:S,[C.RESET_ERROR]:Y}),[T,M,P,w,S,Y]);return(0,r.useEffect)(()=>{d((0,u.lX)({queryParams:{mac:e}}))},[d,e]),(0,i.jsx)(g.Provider,{value:X,children:(0,i.jsx)(a.A,{allowOverflow:!0,title:(0,i.jsx)(m.sA,{id:"DEVICE_SET_REPLACEMENT_DEVICE"}),body:(0,i.jsx)(z,{}),position:"top",portal:!0,actions:$,isOpen:E,onRequestClose:y,children:(0,i.jsxs)(W,{children:[(0,i.jsx)(o.A,{type:"button",variant:"inline",size:"medium",onClick:f,children:(0,i.jsx)(m.sA,{id:"DEVICE_SET_REPLACEMENT_DEVICE"})}),t?null:(0,i.jsx)(B.A,{messageId:"DEVICE_SET_REPLACEMENT_DEVICE_DESCRIPTION",variant:"outline"})]})})})},G=(0,r.memo)(({model:e,type:t,...s})=>(0,d.G)({type:t,model:e})?(0,i.jsx)(F,{type:t,model:e,...s}):null)},384780(e,t,s){s.d(t,{A:()=>W});var i=s(274934),n=s(505817),r=s(977872),a=s(602086),o=s(548941),l=s(645759),d=s(711950),c=s(263705),m=s(244081),_=s(112104),A=s(61322),x=s(449339),u=s(974390),p=s(650632),E=s(535322),h=s(205521),j=s(347625),C=s(754924),O=s(223597),I=s(34118),N=s(239627),T=s(645682),R=s(254590),M=s(857780);const g=({name:e,mac:t,model:s})=>e===t&&s?s:e,v=e=>{switch(e?.uplink?.type){case M.au.WIRE:return e?.connection_network_name||R.L;case M.au.WIRELESS:return e?.connection_network_name||e?.uplink?.essid||R.L;default:return R.L}};var P,b=s(526744),S=s(594005),D=s(309130),w=s(156007);!function(e){e.NAME="name",e.PORT="port",e.NETWORK="network"}(P||(P={}));const f={[P.NAME]:"COMMON_NAME",[P.PORT]:"COMMON_PORT",[P.NETWORK]:"COMMON_NETWORK"};var y=s(100978),L=s(470070),k=s(850352);const z=({port:e,mac:t})=>{const{handleGoToPortsPage:s}=(0,k.e)();return(0,i.jsx)(b.A,{variant:"inline",type:"button",size:"medium",onClick:()=>{s(t,e)},children:e})},W=({activeItem:e})=>{const{themeName:t}=(0,c.u)(),s=(0,r.wA)(),R=(0,r.d4)(C.ID),M=(0,a.useMemo)(()=>((e,t)=>(e||[]).map(e=>{const s=t.find(({mac:t})=>t===e.mac||t===e.ap_mac);return s?{...e,id:s._id,name:(0,j.Q)(s),activeItem:s,model:(0,j.Lm)(s.model)}:null}).filter(Boolean))(e.downlink_table,R),[e.downlink_table,R]),b=(0,r.d4)((0,I.Ax)(e.mac)).filter(e=>e.type===O.sK.WIRED);(0,a.useEffect)(()=>{s((0,N.$3)(void 0,{crudCacheStrategy:{type:m.e.CACHE}}))},[s]);const k=(0,a.useMemo)(()=>b.map(e=>({id:`${e.id}${e.sw_port}`,name:e.display_name,mac:e.mac,network:e.network_name,port:e.sw_port,image:(0,i.jsx)(p.A,{client:e}),isClient:!0})),[b]),W=(0,a.useMemo)(()=>M.map(({id:e,name:s,mac:r,port_idx:a,activeItem:l})=>({id:`${e}${a}`,name:g({name:s,mac:l.mac,model:l.model}),mac:r,network:v(l),port:a,image:(0,i.jsx)(u.A,{model:l.model}),isClient:!1,warning:l.detailed_states?.negotiated_low_uplink_port_speed?(0,i.jsx)(o.A,{portal:!0,description:(0,i.jsx)(T.A,{color:"text-1"}),children:(0,i.jsx)(d.A,{size:"medium",color:n.Ay[`desktop-color-orange-06-${t}`]})}):void 0,stacking_group_id:l.stacking_group_id})),[M,n.Ay[`desktop-color-orange-06-${t}`]]),B=(0,a.useMemo)(()=>Array.prototype.concat.apply([],[k,W]),[W,k]),V=(0,a.useMemo)(()=>(({mac:e})=>[{id:P.NAME,label:(0,i.jsx)(L.sA,{id:f[P.NAME]}),renderCell:({image:e,name:t})=>(0,i.jsxs)(y.A,{alignItems:"center",justifyContent:"center",width:"100%",children:[(0,i.jsx)(y.A,{alignItems:"center",justifyContent:"center",height:"20px",width:"20px",children:e}),(0,i.jsx)(w.A,{color:"inherit",size:"medium",style:{width:"170px",paddingLeft:"6px",paddingRight:"6px"},children:t})]}),width:170,compare:(0,S.l0)(({name:e})=>e)},{id:P.NETWORK,label:(0,i.jsx)(L.sA,{id:f[P.NETWORK]}),renderCell:({network:e})=>(0,i.jsx)(w.A,{color:"inherit",size:"medium",children:e}),width:112,compare:(0,S.l0)(({network:e})=>e)},{id:P.PORT,align:"right",label:(0,i.jsx)(L.sA,{id:f[P.PORT]}),renderCell:({port:t,warning:s})=>(0,i.jsxs)(y.A,{justifyContent:"flex-end",alignItems:"center",flexGrow:1,children:[(0,i.jsx)(y.A,{marginTop:-2,marginRight:D.YC,children:s}),(0,i.jsx)(z,{port:t,mac:e})]}),width:54,compare:(0,S.l0)(({port:e})=>e)}])({mac:e.mac}),[e.mac]),F=(0,a.useCallback)(({mac:e,isClient:t,stacking_group_id:i})=>{s((0,h.XP)({type:t?x.H.CLIENT:i?x.H.STACKING:x.H.DEVICE,id:i||e}))},[s]),{rowLimit:G,renderFooter:U}=(0,_.A)(B.length,{defaultCount:10});return B.length?(0,i.jsx)(E.A,{children:(0,i.jsx)(l.A,{items:B,columns:V,idField:"id",initialSortBy:"port",initiallySortAscending:!0,disableColumnFilters:!0,rowOffset:0,disableSelection:!0,onRowClick:F,rowLimit:G,renderFooter:()=>U,rowHeight:A.I.ROW_HEIGHT,truncateHeaderCells:!0})}):null}},23377(e,t,s){s.d(t,{A:()=>b});var i=s(274934),n=s(977872),r=s(602086),a=s(684935),o=s(237887),l=s(733360),d=s(197719),c=s(309130),m=s(100978),_=s(535322),A=s(470070),x=s(407386),u=s(51411),p=s(853109),E=s(886140),h=s(127347);var j=s(352510),C=s(179102),O=s(346949),I=s(320509),N=s(570203),T=s(635187),R=s(664092),M=s(631692),g=s(924453),v=s(906701);const P=({uplinkAttrs:e,configuration:t={wan_dns1:void 0,wan_dns2:void 0,wan_dhcpv6_pd_size:void 0,wan_type_v6:void 0,wan_prefixlen:void 0},details:s={},gatewayPort:{ipv6:n=[]}={}})=>{const{ip:r,speed:a,rx_packets:o,rx_bytes:l,tx_packets:d,tx_bytes:c,"rx_bytes-r":_,"tx_bytes-r":x,mac:u}=e||{};return(0,i.jsxs)(m.A,{height:"100%",flexDirection:"column",children:[r?(0,i.jsxs)(R.A,{children:[(0,i.jsx)(C.A,{size:"medium",children:(0,i.jsx)(A.sA,{id:"COMMON_IP_ADDRESS"})}),(0,i.jsx)(C.A,{size:"medium",color:"text-3",children:r})]}):null,n.length?(0,i.jsx)(v.A,{ipv6_address:n,wan_dhcpv6_pd_size:t.wan_type_v6===N.c.SLAAC||t.wan_type_v6===N.c.DHCPV6?t.wan_dhcpv6_pd_size:void 0}):null,(0,i.jsx)(g.A,{mac:u}),(0,i.jsx)(M.A,{portSpeed:a}),s.service_provider?.name?(0,i.jsxs)(R.A,{children:[(0,i.jsx)(C.A,{size:"medium",children:(0,i.jsx)(A.sA,{id:"COMMON_ISP"})}),(0,i.jsx)(C.A,{size:"medium",color:"text-3",children:s.service_provider.name})]}):null,(0,i.jsxs)(i.Fragment,{children:[t.wan_dns1?(0,i.jsxs)(R.A,{children:[(0,i.jsx)(C.A,{color:"text-2",size:"medium",children:(0,i.jsx)(A.sA,{id:"COMMON_DNS_SERVER_N",values:{n:1}})}),(0,i.jsx)(C.A,{color:"text-3",size:"medium",children:t.wan_dns1})]}):null,t.wan_dns2?(0,i.jsxs)(R.A,{children:[(0,i.jsx)(C.A,{color:"text-2",size:"medium",children:(0,i.jsx)(A.sA,{id:"COMMON_DNS_SERVER_N",values:{n:2}})}),(0,i.jsx)(C.A,{color:"text-3",size:"medium",children:t.wan_dns2})]}):null]}),o&&l?(0,i.jsxs)(R.A,{children:[(0,i.jsx)(C.A,{size:"medium",children:(0,i.jsx)(A.sA,{id:"COMMON_DOWN_PKTS_BYTES"})}),(0,i.jsxs)(C.A,{size:"medium",color:"text-3",children:[(0,j.A)(o,{spacer:T.HY})," / ",(0,I.z3)(l)]})]}):null,d&&c?(0,i.jsxs)(R.A,{children:[(0,i.jsx)(C.A,{size:"medium",children:(0,i.jsx)(A.sA,{id:"COMMON_UP_PKTS_BYTES"})}),(0,i.jsxs)(C.A,{size:"medium",color:"text-3",children:[(0,j.A)(d,{spacer:T.HY})," / ",(0,I.z3)(c)]})]}):null,(0,i.jsxs)(R.A,{children:[(0,i.jsx)(C.A,{size:"medium",children:(0,i.jsx)(A.sA,{id:"DEVICE_PROPERTY_UPLINK_DOWN_ACTIVITY"})}),(0,i.jsx)(C.A,{size:"medium",color:"text-3",children:void 0!==_?(0,i.jsx)(O.A,{type:"bytes",input:_,options:"bitrate",size:"body",color:"inherit"}):(0,i.jsx)(A.sA,{id:"COMMON_FALLBACK"})})]}),(0,i.jsxs)(R.A,{children:[(0,i.jsx)(C.A,{size:"medium",children:(0,i.jsx)(A.sA,{id:"DEVICE_PROPERTY_UPLINK_UP_ACTIVITY"})}),(0,i.jsx)(C.A,{size:"medium",color:"text-3",children:void 0!==x?(0,i.jsx)(O.A,{type:"bytes",input:x,options:"bitrate",size:"body",color:"inherit"}):(0,i.jsx)(A.sA,{id:"COMMON_FALLBACK"})})]})]})},b=({activeItem:e})=>{const{formatMessage:t}=(0,A.tz)(),s=((e,t)=>{const s=(e.port_table||[]).filter(({up:e})=>e);return Object.values(h.s).reduce((i,n)=>{const r=1===(0,l.si)(n)?d.C.WAN:n.toUpperCase();if(s.find(({ifname:t})=>t===(0,u.KF)(r,{ethernet_overrides:e.ethernet_overrides,model:e.model,usg_caps:e.usg_caps,usg2_caps:e.usg2_caps}))||(a=e[n],a?.type===E.YT)){const s=(0,p.q$)(e,n);s&&i.push({wanNetworkGroup:r,uplinkAttrs:s,...(()=>{const{configuration:e={},details:s={}}=t.find(({configuration:{wan_networkgroup:e}})=>e===r)||{};return{configuration:e,details:s}})(),gatewayPort:e[n]})}var a;return i},[])})(e,(0,n.d4)(x.ht)),j=(0,r.useMemo)(()=>s.map(({wanNetworkGroup:e})=>({id:e,label:t({id:"COMMON_NETWORK_PURPOSE_WANX"},{number:(0,l.si)(e)})})),[t,s]),C=(0,r.useMemo)(()=>s.map(({wanNetworkGroup:e,configuration:t={}})=>({value:e,label:t.name||"",additionalInfo:(0,i.jsx)(A.sA,{id:"COMMON_NETWORK_PURPOSE_WANX",values:{number:(0,l.si)(e)}})})),[s]),[O,I]=(0,r.useState)(s?.[0]?.wanNetworkGroup||d.C.WAN),N=s.length<=4,T=(0,r.useMemo)(()=>s.find(({wanNetworkGroup:e})=>e===O)||{},[s,O]),R=(0,r.useMemo)(()=>[{id:"wan",openByDefault:!0,label:(0,i.jsx)(A.sA,1===j.length?{id:"COMMON_NETWORK_PURPOSE_WANX",values:{number:1}}:{id:"COMMON_NETWORK_PURPOSE_WAN"}),renderContent:()=>(0,i.jsxs)(i.Fragment,{children:[j.length>1?(0,i.jsx)(m.A,{paddingBottom:c.kc,inline:N,children:N?(0,i.jsx)(a.A,{tabs:j,variant:"filter",onSelectTab:({id:e})=>{I(e)},selectedTab:O}):(0,i.jsx)(o.A,{options:C,width:"100%",variant:"secondary",value:O,onChange:({value:e})=>{I(e)}})}):null,(0,i.jsx)(P,{...T})]})}],[j,N,C,O,I,T]);return T?(0,i.jsx)(_.A,{type:_.I.ACCORDION,items:R}):null}},872926(e,t,s){s.d(t,{A:()=>_});var i=s(274934),n=s(977872),r=s(810024),a=s(589650),o=s(748094),l=s(470070),d=s(754924),c=s(726831);const m=({adopted:e})=>(0,i.jsx)(o.A,{link:c.A.virtualNetworkConnectivity,children:(0,i.jsx)(l.sA,{id:e?"DEVICE_FALLBACK_IP_ADOPTED_WITH_UNIFI_GATEWAY_WARNING":"DEVICE_FALLBACK_IP_NOT_ADOPTED_WARNING",values:{bold:(0,i.jsx)("strong",{children:(0,i.jsx)(l.sA,{id:e?"DEVICE_WARNING_FALLBACK_IP":"DEVICE_WARNING_ADOPTION_FAILED"})})}})}),_=({ip:e,adopted:t,config_network:s})=>(0,n.d4)(d.m9)&&(0,r.W5)(e)&&s?.type===a.NL.DHCP?(0,i.jsx)(m,{adopted:t}):null},585062(e,t,s){s.r(t),s.d(t,{default:()=>Ee});var i=s(274934),n=s(808202),r=s(872926),a=s(376892),o=s(535322),l=s(919304);const d=({psu_table:e})=>e?.length>0?(0,i.jsx)(o.A,{type:o.I.ACCORDION,items:[{id:"powerSource",openByDefault:!0,label:(0,i.jsx)(a.A,{id:"DEVICE_PROPERTY_OVERVIEW_POWER_SOURCE"}),renderContent:()=>(0,i.jsx)(l.A,{psu_table:e})}]}):null;var c=s(23377),m=s(189042),_=s(384780),A=s(383550),x=s(602086),u=s(713035),p=s(179102),E=s(898809),h=s(455425),j=s(347500),C=s(907488),O=s(100978),I=s(470070),N=s(128066),T=s(646077);const R=e=>[E.Au.HOURS,E.Au.MINUTES,Math.floor((Date.now()-new Date(1e3*e).getTime())/h.jU)<1?E.Au.SECONDS:E.Au.DAYS],M=({uptime:e,last_seen:t})=>e>=0?(0,i.jsx)(p.A,{size:"medium",children:(0,E.Ay)(e)}):t?(0,i.jsxs)(O.A,{width:"100%",whiteSpace:"nowrap",justifyContent:"flex-end",children:[(0,i.jsx)(p.A,{size:"medium",children:(0,i.jsx)(I.sA,{id:"COMMON_LAST_SEEN"})})," ",(0,i.jsx)(p.A,{size:"medium",color:"inherit",children:(0,i.jsx)(j.A,{startTimestamp:t,uptimeParams:R(t)})})]}):null,g=({stat:e,uplink:t,uptime:s,last_seen:n})=>{const{motif:r}=(0,u.A)(),a=(0,x.useMemo)(()=>(0,N.lD)(e),[e]),{translationKey:l,textColor:d}=(0,x.useMemo)(()=>(0,N.QS)(r,a),[r,a]);return a>=0?(0,i.jsxs)(o.A,{children:[(0,i.jsx)(T.hW,{score:a,headerTranslationKey:"COMMON_TX_RETRIES",scoreTranslationKey:l,color:d}),(0,i.jsxs)(O.A,{width:"100%",justifyContent:"space-between",marginTop:4,children:[(0,i.jsx)(O.A,{children:t?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(C.A,{style:{marginRight:"6px"},bytesPerSecond:t["rx_bytes-r"]||0,direction:"down",size:"medium",iconStyle:{width:"16px",height:"16px",marginRight:"2px"}}),(0,i.jsx)(C.A,{bytesPerSecond:t["tx_bytes-r"]||0,direction:"up",size:"medium",iconStyle:{width:"16px",height:"16px",marginRight:"2px"}})]}):null}),(0,i.jsx)(M,{uptime:s,last_seen:n})]})]}):null};var v=s(686318),P=s(241615),b=s(247816),S=s(409844),D=s(306212),w=s(443502),f=s(309130);const y=(0,b.A)(D.A)`
  margin-right: ${f.YC};
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 0;
`,L=e=>S.AH`
  background-color: ${e};
`,k=({ChannelBars:e})=>(0,i.jsxs)(i.Fragment,{children:[e,(0,i.jsxs)(O.A,{justifyContent:"flex-start",children:[(0,i.jsxs)(O.A,{flex:"0 1 27%",children:[(0,i.jsx)(y,{className:L(w.XT.blue)}),(0,i.jsx)(p.A,{color:"text-3",size:"small",children:(0,i.jsx)(I.sA,{id:"DEVICE_PROPERTIES_VALUES_RX_FRAMES"})})]}),(0,i.jsxs)(O.A,{flex:"0 1 27%",children:[(0,i.jsx)(y,{className:L(w.sJ)}),(0,i.jsx)(p.A,{color:"text-3",size:"small",children:(0,i.jsx)(I.sA,{id:"DEVICE_PROPERTIES_VALUES_TX_FRAMES"})})]}),(0,i.jsxs)(O.A,{flex:"0 1 27%",children:[(0,i.jsx)(y,{className:L(w.z3)}),(0,i.jsx)(p.A,{color:"text-3",size:"small",children:(0,i.jsx)(I.sA,{id:"COMMON_INTERFERENCE"})})]})]})]});var z=s(548941),W=s(505817),B=s(505753),V=s(346949),F=s(758654),G=s(134123),U=s(92684),K=s(175650),$=s(662986);const Y=(0,b.A)("tr")`
  white-space: nowrap;
  font-size: ${({theme:e})=>e.fontSizes[1]}px;
`,X=(0,b.A)("td")`
  vertical-align: top;
`,H=(0,b.A)("td")`
  padding-left: 12px;
  padding-bottom: 2px;
  text-align: right;
  vertical-align: top;
`,q=({type:e,radio:t,channelUtilization:s,stat:n})=>{const{totalPacketsRx:r,totalBytesRx:a,droppedPercentageRx:o,retryPercentageRx:l,totalPacketsTx:d,totalBytesTx:c,droppedPercentageTx:m,retryPercentageTx:_}=(0,x.useMemo)(()=>(({totalPackets:e,totalBytes:t,droppedPercentage:s,retryPercentage:i},{totalPackets:n,totalBytes:r,droppedPercentage:a,retryPercentage:o})=>({totalPacketsRx:e,totalBytesRx:t,droppedPercentageRx:s,retryPercentageRx:i,totalPacketsTx:n,totalBytesTx:r,droppedPercentageTx:a,retryPercentageTx:o}))((0,K.GI)(e,t,"rx",n),(0,K.GI)(e,t,"tx",n)),[e,t,n]);return(0,i.jsx)("table",{children:(0,i.jsxs)("tbody",{children:[(0,i.jsxs)(Y,{children:[(0,i.jsx)(X,{children:(0,i.jsx)(p.A,{color:"text-2",children:(0,i.jsx)(I.sA,{id:"DEVICE_PROPERTIES_LABEL_TX_PKTS_BYTES"})})}),(0,i.jsx)(H,{children:(0,i.jsxs)(p.A,{color:"text-2",children:[d??(0,i.jsx)(I.sA,{id:"COMMON_FALLBACK"})," /"," ",c??(0,i.jsx)(I.sA,{id:"COMMON_FALLBACK"})]})})]}),(0,i.jsxs)(Y,{children:[(0,i.jsx)(X,{children:(0,i.jsx)(p.A,{color:"text-2",children:(0,i.jsx)(I.sA,{id:"DEVICE_PROPERTIES_LABEL_RX_PKTS_BYTES"})})}),(0,i.jsx)(H,{children:(0,i.jsxs)(p.A,{color:"text-2",children:[r??(0,i.jsx)(I.sA,{id:"COMMON_FALLBACK"})," /"," ",a??(0,i.jsx)(I.sA,{id:"COMMON_FALLBACK"})]})})]}),(0,i.jsxs)(Y,{children:[(0,i.jsx)(X,{children:(0,i.jsx)(p.A,{color:"text-2",children:(0,i.jsx)(I.sA,{id:"DEVICE_PROPERTIES_LABEL_TX_RETRY_DROPPED"})})}),(0,i.jsx)(H,{children:(0,i.jsxs)(p.A,{color:"text-2",children:[(0,$.l)(_)," / ",(0,$.l)(m)]})})]}),(0,i.jsxs)(Y,{children:[(0,i.jsx)(X,{children:(0,i.jsx)(p.A,{color:"text-2",children:(0,i.jsx)(I.sA,{id:"DEVICE_PROPERTIES_LABEL_RX_RETRY_DROPPED"})})}),(0,i.jsx)(H,{children:(0,i.jsxs)(p.A,{color:"text-2",children:[(0,$.l)(l)," / ",(0,$.l)(o)]})})]}),s?(0,i.jsxs)(Y,{children:[(0,i.jsx)(X,{children:(0,i.jsx)(p.A,{color:"text-2",children:(0,i.jsx)(I.sA,{id:"DEVICE_PROPERTIES_LABEL_CHANNEL_UTILIZATION"})})}),(0,i.jsx)(H,{children:(0,i.jsx)(p.A,{color:"text-2",children:`${s.total}% / ${s.selfRx}% / ${s.selfTx}%`})})]}):null]})})},Z=(0,b.A)("div")`
  flex: 1;

  .radioText {
    color: ${({theme:{motifPalette:{text02:e}}})=>e};
    font-weight: ${W.Ay["desktop-font-weight-semibold"]};
  }
`,Q=(0,b.A)(p.A)`
  margin-left: ${f.YC};
`,J=(0,b.A)("div")`
  width: 100%;
`;var ee=s(203071);const te=({activeItem:{radio_table:e,radio_table_stats:t,model:s,vap_table:n,stat:r,type:l,psu_table:d}})=>{const c=(0,x.useMemo)(()=>(({radio_table:e,radio_table_stats:t,model:s,vap_table:n,type:r,stat:a})=>[...e||[]].sort(F.Rm).map(o=>{const l=(0,K.Lm)(t,o),d=(0,K.d_)(e,t,s,o?.name,n?.find(({radio_name:e})=>e===o.name));if(!l)return null;const{selfRx:c,selfTx:m,interference:_,total:A}=l,x=d?.state===G.A.INIT;return(0,i.jsxs)(O.A,{flexDirection:"column",marginBottom:f.kc,children:[(0,i.jsxs)(O.A,{justifyContent:"space-between",children:[(0,i.jsx)(Z,{children:(0,i.jsx)(U.A,{radio_table:e,radio_table_stats:t,model:s,vap_table:n,radio:o,hideDivider:!0,hideDfsInfo:!0,hideHtInfo:!0,hidePowerInfo:!0,hideChannelTooltip:!0,hideDisabledInfo:!0,textColor:"text-3"})}),x?(0,i.jsx)(p.A,{color:"text-3",size:"medium",children:(0,i.jsx)(I.sA,{id:"COMMON_DISABLED"})}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(V.A,{size:"body",color:"tertiary",type:"percent",input:Math.min(A,100)/100}),(0,i.jsx)(Q,{color:"text-3",children:(0,i.jsx)(p.A,{color:"text-3",size:"medium",children:(0,i.jsx)(I.sA,{id:"DEVICE_PROPERTIES_VALUES_UTILIZED"})})})]})]}),(0,i.jsx)(J,{children:(0,i.jsx)(z.A,{description:(0,i.jsx)(q,{type:r,stat:a,radio:o,channelUtilization:l}),portal:!0,maxWidth:350,children:(0,i.jsx)(B.A,{items:[{color:w.XT.blue,value:c},{color:w.sJ,value:m},{color:w.z3,value:_}],height:8,rounded:!0})})}),(0,i.jsx)(p.A,{color:"text-3",size:"medium",children:(0,K.rT)(e,s,o)})]},o.name)}))({radio_table:e,radio_table_stats:t,model:s,vap_table:n,type:l,stat:r}),[e,t,s,n,l,r]);return(0,i.jsx)(o.A,{type:o.I.ACCORDION,items:[{id:"deviceInsights",openByDefault:!0,label:(0,i.jsx)(a.A,{id:"COMMON_INSIGHTS"}),renderContent:()=>(0,i.jsxs)(i.Fragment,{children:[d?.length?(0,i.jsx)(ee.A,{psuTable:d}):null,c.length?(0,i.jsx)(k,{ChannelBars:c}):null]})}]})};var se=s(956021),ie=s(893762),ne=s(382583),re=s(948803),ae=s(725870),oe=s(924453),le=s(664613),de=s(331472),ce=s(664092);const me=({satisfaction:e,guestNumSta:t})=>(0,de.Oq)(e)?(0,i.jsxs)(ce.A,{children:[(0,i.jsx)(p.A,{color:"text-2",size:"medium",children:(0,i.jsx)(I.sA,{id:"DEVICE_HEADER_GUESTS"})}),(0,i.jsx)(p.A,{color:"text-3",size:"medium",children:t||0})]}):null;var _e=s(643334);const Ae=({satisfaction:e,userNumSta:t})=>(0,de.Oq)(e)?(0,i.jsxs)(ce.A,{children:[(0,i.jsx)(p.A,{color:"text-2",size:"medium",children:(0,i.jsx)(I.sA,{id:"COMMON_CLIENTS"})}),(0,i.jsx)(p.A,{color:"text-3",size:"medium",children:t||0})]}):null;var xe=s(597377);const ue=({name:e,satisfaction:t,vap_table:s,radio_table:n,radio_table_stats:r,model:a,displayable_version:l,mac:d,connection_network_id:c,uptime:m,ip:_,lan_ip:A,ethernet_overrides:x,port_table:u,sys_stats:p,"system-stats":E,"user-num_sta":h,"guest-num_sta":j,type:C,deviceState:I,uplink:N,device_mode_override:T})=>(0,i.jsx)(o.A,{children:(0,i.jsxs)(O.A,{flexDirection:"column",children:[(0,i.jsx)(se.A,{satisfaction:t,vap_table:s,radio_table:n,radio_table_stats:r}),(0,i.jsx)(re.A,{model:a}),(0,i.jsx)(xe.A,{ip:_,lan_ip:A,ethernet_overrides:x,port_table:u,type:C,uplink:N,device_mode_override:T}),(0,i.jsx)(ne.A,{connection_network_id:c}),(0,i.jsx)(oe.A,{mac:d}),(0,i.jsx)(_e.A,{name:e,model:a,mac:d,type:C,displayable_version:l,uptime:m,deviceState:I}),(0,i.jsx)(ie.A,{uptime:m}),(0,i.jsx)(ae.A,{systemStatsMem:E?.mem}),(0,i.jsx)(le.A,{sys_stats:p}),(0,i.jsx)(Ae,{satisfaction:t,userNumSta:h}),(0,i.jsx)(me,{satisfaction:t,guestNumSta:j})]})});var pe=s(216082);const Ee=({activeItem:e,activeItem:{adopted:t,name:s,type:a,mac:o,ip:l,uplink:x,uptime:u,radio_table:p,radio_table_stats:E,vap_table:h,stat:j,total_used_power:C,total_max_power:O,detailed_states:{device_near_power_limit:I}={device_near_power_limit:!1},support_wifi6e:N,config_network:T,last_seen:R,psu_table:M,satisfaction:b,model:S,lan_ip:D,ethernet_overrides:w,port_table:f,displayable_version:y,sys_stats:L,"system-stats":k,"user-num_sta":z,"guest-num_sta":W,shortname:B,device_mode_override:V}})=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(A.A,{activeItem:e,showPortOverview:!0,hidePortsButton:!0,children:(0,i.jsx)(m.A,{activeItem:e,showPortsButton:!0,showCaptureButton:!0})}),(0,i.jsx)(r.A,{ip:l,adopted:t,config_network:T}),(0,i.jsx)(g,{stat:j,uplink:x,uptime:u,last_seen:R}),(0,i.jsx)(n.A,{mac:o,type:a,model:S,device_near_power_limit:I,total_used_power:C,total_max_power:O}),(0,i.jsx)(_.A,{activeItem:e}),(0,i.jsx)(ue,{name:s,type:a,satisfaction:b,vap_table:h,radio_table:p,radio_table_stats:E,model:S,displayable_version:y,mac:o,connection_network_id:e.connection_network_id,uptime:u,ip:l,lan_ip:D,ethernet_overrides:w,port_table:f,sys_stats:L,"system-stats":k,"user-num_sta":z,"guest-num_sta":W,uplink:x,device_mode_override:V}),(0,i.jsx)(c.A,{activeItem:e}),(0,i.jsx)(P.A,{radio_table:p,radio_table_stats:E,type:a,stat:j,support_wifi6e:N}),(0,i.jsx)(v.S,{vap_table:h,radio_table:p}),(0,i.jsx)(d,{psu_table:M}),(0,i.jsx)(te,{activeItem:e}),(0,i.jsx)(pe.A,{shortname:B})]})},696049(e,t,s){s.d(t,{H:()=>i});const i=""},571829(e,t,s){s.d(t,{I:()=>n});var i=s(561614);const n=[i.sx.RADIO_NG,i.sx.RADIO_NA,i.sx.RADIO_6E,i.sx.RADIO_AD]},758654(e,t,s){s.d(t,{Rm:()=>a,fU:()=>r,uQ:()=>n});var i=s(571829);const n=e=>{const t=(t,s)=>e.indexOf(t)-e.indexOf(s);return{orderRadios:t,orderByRadio:(e,s)=>t(e.radio,s.radio)}},{orderRadios:r,orderByRadio:a}=n(i.I)},706925(e,t,s){s.d(t,{G:()=>o});var i=s(956978),n=s(857780);const r=[n.bq.USW,n.bq.UAP,n.bq.USP],a=[n.W4.UDBA69F],o=({type:e,model:t})=>(r.includes(e)||a.includes(t))&&!(0,i.tNJ)({model:t})},237887(e,t,s){s.d(t,{A:()=>_});var i=s(274934),n=s(602086),r=s(977872),a=s(310075),o=s(711892),l=s(820633),d=s(308111);const c=e=>(0,i.jsx)(a.A,{renderOption:o.q,...e}),m=e=>(0,i.jsx)(c,{...e});m.Sorted=e=>{const t=(0,r.d4)(l.zi),s=(0,n.useMemo)(()=>(0,d.k)(t),[t]);return(0,i.jsx)(c,{...e,sortBy:s})};const _=m},308111(e,t,s){s.d(t,{R:()=>m,k:()=>_});var i=s(696049),n=s(350068),r=s(177173),a=s(752104),o=s(64222),l=s(230853);const d=[...new Set([i.H,a.Q.join(a.A),r.Zt,o.F,n.nc,l.Vr])],c={numeric:!0,sensitivity:"base"},m=(e,t)=>{const s=[];for(let i=e;i<=t;i+=1)s.push({value:i,label:String(i)});return s},_=e=>({value:t,label:s},{value:i,label:n})=>d.includes(t?.toString())||d.includes(i?.toString())?1/0:s?.toString().localeCompare(n?.toString(),e,c)??-1},489714(e,t,s){s.d(t,{Z:()=>n});var i=s(570866);const n=e=>e?e.replace(i.SD,"").replace(i.fA,"$&:").substring(0,17).toLowerCase():e}}]);