"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[13753,89965],{22169:(e,t,n)=>{n.d(t,{A:()=>m});var l=n(296540),a=n(217439),r=n(699784),i=n(115829),c=n(39705),o=n(294303);const m=({ipv6:e,size:t="inherit",color:n="inherit"})=>{const m=e?.[0];return m?l.createElement(o.A,{width:"100%",justifyContent:"flex-end"},l.createElement(i.A,{flexProps:{justifyContent:"flex-end",alignItems:"center"},color:n,size:t},m),e?.length>1?l.createElement(c.A,{items:e,isInteractive:!0,showListMarkers:!1,getItemKey:e=>e,renderListItem:e=>l.createElement(l.Fragment,null,e),renderMultipleItemsSummary:()=>null}):null):l.createElement(a.A,{size:t,color:n},l.createElement(r.sA,{id:"COMMON_FALLBACK"}))}},39705:(e,t,n)=>{n.d(t,{A:()=>m});var l=n(296540),a=n(705145),r=n(699784),i=n(115829),c=n(424135),o=n(819127);const m=function({items:e,renderMultipleItemsSummary:t,renderListItem:n,renderNoItems:m,getItemKey:s,enabled:d=!0,showListMarkers:u,cursorType:E,isInteractive:A}){const p=d?"inherit":"disabled";return e.length>1?l.createElement(c.A,{tooltip:l.createElement(o.A,{items:e,getItemKey:s,renderItem:n,showListMarkers:u,isInteractive:A,cursorType:E})},l.createElement(i.A,{color:p,cursorType:E},t(e))):1===e.length?l.createElement(i.A,{color:p,cursorType:E},n(e[0])):m?l.createElement(l.Fragment,null,m()):l.createElement(a.A,{isTruncated:!0,color:p},l.createElement(r.sA,{id:"COMMON_FALLBACK"}))}},104154:(e,t,n)=>{n.d(t,{A:()=>c});var l=n(469733),a=n(296540),r=n(691294),i=n(239417);const c=({client:{id:e,type:t,status:n,blocked:c},props:o,children:m})=>{const s=(0,a.useMemo)(()=>t===r.sK.VPN?r.N7.VPN:t===r.sK.TELEPORT?r.N7.TELEPORT:c?r.N7.BLOCKED:n===r.S2.OFFLINE?r.N7.OFFLINE:r.N7.ACTIVE,[t,c,n]);return m((0,l.useSelector)((0,a.useMemo)(()=>(0,i.kV)(e,o,s),[e,o,s])))}},146784:(e,t,n)=>{n.d(t,{A:()=>E});var l=n(296540),a=n(349424),r=n(217439),i=n(383653),c=n(568560),o=n(22169),m=n(294303),s=n(699784),d=n(348466),u=n(360113);const E=(0,l.memo)(({ipv6_address:e=[],wan_dhcpv6_pd_size:t})=>{const{globalAddresses:n,linkLocalAddress:E}=(0,l.useMemo)(()=>{const t=[];let n=null;for(let l=0;l<e.length;l+=1){const r=e[l];new a.Address6(r).isLinkLocal()?n=r?.split(d.Ed)?.[0]:t.push(r.split(d.Ed)?.[0])}return{globalAddresses:t,linkLocalAddress:n}},[e]);return n.length?l.createElement(l.Fragment,null,l.createElement(u.A,null,l.createElement(r.A,{color:"text-2",size:"medium"},l.createElement(s.sA,{id:"COMMON_IPV6_ADDRESS"})),l.createElement(c.A,{ipv6:n,size:"medium",color:"text-3"})),t?l.createElement(u.A,null,l.createElement(r.A,{color:"text-2",size:"medium"},l.createElement(s.sA,{id:"COMMON_IPV6_PREFIX"})),l.createElement(m.A,{flex:"1",minWidth:"0",justifyContent:"flex-end"},l.createElement(o.A,{ipv6:[`${(0,i.Gh)(n[0],t)}/${t}`],color:"text-3",size:"medium"}))):null,E?l.createElement(u.A,null,l.createElement(r.A,{color:"text-2",size:"medium"},l.createElement(s.sA,{id:"COMMON_IPV6_LINK_LOCAL"})),l.createElement(c.A,{ipv6:[E],size:"medium",color:"text-3"})):null):null})},150556:(e,t,n)=>{n.d(t,{A:()=>o});var l=n(296540),a=n(927099),r=n(137298),i=n(699784),c=n(360113);const o=({tx_rate:e})=>e>0?l.createElement(c.A,null,l.createElement(a.A,{color:"secondary",size:"body"},l.createElement(i.sA,{id:"COMMON_TX_RATE"})),l.createElement(a.A,{color:"tertiary",size:"body"},(0,r.Up)(e))):null},151061:(e,t,n)=>{n.d(t,{m:()=>A});var l=n(469733),a=n(296540),r=n(217439),i=n(90757),c=n(398300),o=n(340813),m=n(413146),s=n(845030),d=n(699784),u=n(532419),E=n(675845);const A=({last_uplink_mac:e,last_uplink_name:t,last_uplink_remote_port:n,disconnected_at:A,disabled:p,textSize:_,maxWidth:h})=>{const{formatMessage:g}=(0,d.tz)(),v=(0,l.useDispatch)(),M=(0,l.useSelector)(u.CC),O=(0,E.Z)(e,M),I=(0,E.z)(t,n,O,g);return a.createElement(a.Fragment,null,O?a.createElement("div",null,a.createElement(r.A,{color:"text-3",size:_},a.createElement(d.sA,{id:"COMMON_DEVICE_LAST_CONNECTED_TO",values:{deviceWithPort:a.createElement(o.A,{isFullWidth:!1,disabled:p,maxWidth:h||200,onClick:()=>{p||v((0,s.XP)({type:c.H.DEVICE,id:e}))},size:_},I)}}))):null,A?a.createElement("div",null,a.createElement(r.A,{color:"text-3",size:_},a.createElement(m.A,{date:(0,i.gH)(A)}))):null)}},153887:(e,t,n)=>{n.d(t,{v:()=>o});var l=n(801081),a=n(25553),r=n(87485),i=n(218104),c=n(655448);const o=e=>(0,l.Mz)((e=>({models:t})=>(0,a.JC)(c.MODEL,t,{queryParams:{mac:e}},{idField:c.ID_FIELD,compareFunction:i.G}))(e),e=>(0,r.kh)(e)[0]||{})},182847:(e,t,n)=>{var l,a;n.d(t,{X:()=>l,t:()=>a}),function(e){e.START="start",e.STOP="stop"}(l||(l={})),function(e){e.RUNNING="running",e.FINISHED="finished",e.CANCELLED="cancelled",e.FAILED="failed",e.TIMEOUT="timeout"}(a||(a={}))},187550:(e,t,n)=>{n.d(t,{B:()=>y,i:()=>f});var l=n(469733),a=n(296540),r=n(823858),i=n(998837),c=n(614054),o=n(6510),m=n(660950),s=n(533520),d=n(224948),u=n(532419),E=n(71479),A=n(852866),p=n(566723),_=n(294303),h=n(795537),g=n(699784);const v=(0,E.A)("div")`
  margin-bottom: ${p.kc};
`,M=({uplinkMac:e,uplinkDisplayName:t})=>a.createElement(_.A,{flexDirection:"column",alignItems:"flex-start"},a.createElement(v,null,a.createElement(g.sA,{id:"DEVICE_POE_ALMOST_OUT_OF_POWER",values:{deviceName:a.createElement(h.A,{mac:e},(0,A.c)(t))}})),a.createElement(h.A,{mac:e},a.createElement(g.sA,{id:"DEVICE_POE_VIEW_DETAILS"}))),O=({children:e})=>a.createElement(d.A,{icon:a.createElement(r.A,{size:"original",color:(0,i.u)().motifPalette.warning,variant:"fill"})},e),I=e=>a.createElement(O,null,a.createElement(m.A,{...e})),N=e=>a.createElement(O,null,a.createElement(M,{...e})),C=({uplink:e,mac:t,detailed_states:n})=>{const r=(0,l.useSelector)((0,a.useMemo)(()=>(0,u.tG)(e.uplink_mac),[e.uplink_mac]));return a.createElement(s.x,{mac:t,uplinkMac:r.mac,uplinkDisplayName:(0,o.Q)(r),portNumber:e.uplink_remote_port,detailedStates:n,PortPowerLimitExceededWarning:I,UplinkNearPowerLimitWarning:N})},f=({uplink:e,mac:t,detailed_states:n})=>(0,c.w)(n)?a.createElement(C,{uplink:e,mac:t,detailed_states:n}):null,x=({uplinkMac:e,...t})=>{const n=(0,l.useSelector)((0,a.useMemo)(()=>(0,u.tG)(e),[e]));return a.createElement(s.x,{...t,uplinkMac:e,uplinkDisplayName:(0,o.Q)(n),PortPowerLimitExceededWarning:I,UplinkNearPowerLimitWarning:N})},y=({detailedStates:e,...t})=>(0,c.w)(e)?a.createElement(x,{detailedStates:e,...t}):null},203157:(e,t,n)=>{n.d(t,{A:()=>m});var l=n(296540),a=n(271856),r=n(400270),i=n(566723),c=n(294303),o=n(699784);const m=({enabled:e})=>l.createElement(c.A,{opacity:e?void 0:i.xN},l.createElement(a.A,{description:l.createElement(o.sA,{id:"COMMON_MATCH_OPPOSITE"}),portal:!0},l.createElement(r.A,{size:"original"})))},216211:(e,t,n)=>{n.d(t,{e:()=>u});var l=n(956347),a=n(469733),r=n(296540),i=n(15095),c=n(627440),o=n(431247),m=n(293016),s=n(649413),d=n(497470);const u=()=>{const e=(0,a.useDispatch)(),t=(0,l.W6)(),n=(0,i.A)(`${c.VO.PORTS}`);return{handleGoToPortsPage:(0,r.useCallback)((l,a,r)=>{if(l)if(e((0,d.gU)(!0)),e((0,d.U)((0,s.HN)(m.F7.DEVICE,[l]))),r&&(e((0,d.IU)(!0)),e((0,d.E1)(!1))),a){const t=(0,o.FS)(l,a);e((0,d.Ao)([t]))}else e((0,d.Ao)([]));t.push(n)},[n,t,e])}}},218104:(e,t,n)=>{n.d(t,{G:()=>l});const l=({queryParams:e},{queryParams:t})=>e?.mac===t?.mac},224948:(e,t,n)=>{n.d(t,{A:()=>d});var l=n(296540),a=n(217439),r=n(71479),i=n(566723),c=n(294303),o=n(689965);const m=(0,r.A)("div")`
  margin-right: ${i.kc};
`,s=(0,r.A)("div")`
  margin-left: ${i.kc};
`,d=({icon:e,closeIcon:t,nested:n,children:r,...i})=>l.createElement(o.A,{nested:n,...i},l.createElement(c.A,null,l.createElement(m,null,e),l.createElement(a.A,{size:"medium"},r),t?l.createElement(s,null,t):null))},280062:(e,t,n)=>{n.d(t,{A:()=>i});var l=n(296540),a=n(699784),r=n(842916);const i=({radio:e,suffix:t})=>r.U[e]?l.createElement(l.Fragment,null,l.createElement(a.sA,{id:r.U[e]}),t?l.createElement("span",null," ",t):null):l.createElement(a.sA,{id:"COMMON_FALLBACK"})},284428:(e,t,n)=>{n.d(t,{Im:()=>o,iL:()=>m,mQ:()=>i,pv:()=>r,q:()=>c});var l=n(296540),a=n(451449);function r(){return(0,l.useContext)(a.I)}function i(){return r().fields}function c(){return r().tooltipPopovers}function o(){return r().tooltipIcons}function m(){return r().labels}},312700:(e,t,n)=>{n.d(t,{A:()=>E});var l=n(469733),a=n(296540),r=n(217439),i=n(646189),c=n(703447),o=n(699784),m=n(776309),s=n(126457);var d=n(951106),u=n(489146);const E=({activeItem:e,activeItem:{fingerprint:t,unifi_device_info:n,mac:E},size:A=80})=>{const p=(0,l.useDispatch)(),{isFingerprintFromUiDb:_}=(0,a.useMemo)(()=>({fingerprintHasOverride:(0,d.n8)(t),isFingerprintFromUiDb:(0,d.fN)(n)}),[n,t]);return a.createElement(u.qN,{onClick:()=>{p((e=>(0,s.to)({modalType:m.A.REPORT_CLIENT_ICON,modalProps:{activeItem:e}}))(e))}},a.createElement(c.A,{client:e,grid:!0}),a.createElement(i.A,{size:A,mac:E}),_?null:a.createElement(u.XV,{className:"report-icon"},a.createElement(r.A,{color:"inherit"},a.createElement(o.sA,{id:"COMMON_CHANGE_ICON"}))))}},321235:(e,t,n)=>{n.d(t,{A:()=>s});var l=n(296540),a=n(217439),r=n(705145),i=n(71479),c=n(699784),o=n(360113);const m=(0,i.A)(a.A)`
  white-space: nowrap;
`,s=({id:e,color:t,values:n,children:a})=>l.createElement(o.A,null,l.createElement(m,{color:"text-2",size:"medium"},l.createElement(c.sA,{id:e,values:n})),l.createElement(r.A,{color:t||"text-3",size:"medium",isTruncated:!0},a))},360113:(e,t,n)=>{n.d(t,{A:()=>o});var l=n(296540),a=n(71479),r=n(566723),i=n(294303);const c=(0,a.A)(i.A,{shouldForwardProp:e=>!["valueMaxWidth","keyMinWidth","compact"].includes(e)})`
  &:not(:last-child) {
    ${({compact:e})=>e?"":`margin-bottom: ${r.kc};`}
  }
  & > {
    &:nth-child(1) {
      min-width: ${({keyMinWidth:e})=>e}px;
    }
    &:nth-child(2) {
      max-width: ${({valueMaxWidth:e})=>e}px;
    }
  }
`,o=({children:e,valueMaxWidth:t=215,keyMinWidth:n=0,flexProps:a={},compact:i=!1})=>l.createElement(c,{width:"100%",justifyContent:"space-between",gap:r.kc,height:i?void 0:24,valueMaxWidth:t,keyMinWidth:n,compact:i,...a},e)},369702:(e,t,n)=>{n.d(t,{A:()=>r});var l=n(74750),a=n(296540);const r=({children:e,...t})=>a.createElement(l.A,{variant:"secondary-emphasis",...t},e)},373934:(e,t,n)=>{n.d(t,{A:()=>i});var l=n(296540),a=n(758649),r=n(216211);const i=({mac:e,port:t,children:n})=>{const{handleGoToPortsPage:i}=(0,r.e)(),c=(0,l.useCallback)(n=>{n.stopPropagation(),i(e,+t)},[i,e,t]);return l.createElement(a.A,{type:"button",size:"inherit",variant:"inline",onClick:c},n)}},399818:(e,t,n)=>{n.d(t,{A:()=>E,S:()=>d});var l=n(296540),a=n(217439),r=n(38937),i=n(566723),c=n(486006),o=n(294303),m=n(699784),s=n(951106);const d=({signal:e,size:t})=>e?l.createElement(a.A,{size:t,color:(0,r.a5)(e)},e," ",l.createElement(m.sA,{id:"COMMON_UNIT_DBM"})):l.createElement(a.A,{size:t,color:"inherit"},l.createElement(m.sA,{id:"COMMON_FALLBACK"})),u=({mlo_details:e,size:t})=>{if(!e)return l.createElement(a.A,{color:"inherit",size:t},l.createElement(m.sA,{id:"COMMON_FALLBACK"}));const{signal:n}=(0,s.Wc)(e);return l.createElement(o.A,{flexDirection:"row",gap:i.YC},l.createElement(d,{signal:n,size:t}),l.createElement(c.Ay,{report:c.ZF.SIGNAL,mlo_details:e}))},E=(0,l.memo)(({is_mlo:e,signal:t,size:n="medium",mlo_details:a})=>e?l.createElement(u,{size:n,mlo_details:a}):l.createElement(d,{signal:t,size:n}))},400270:(e,t,n)=>{n.d(t,{A:()=>r});var l=n(296540),a=n(629318);const r=(0,n(51946).w)(e=>(0,l.createElement)("svg",(0,a.d)({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em"},e),(0,l.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 3a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1H4Zm8 8a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1h-4Z",fill:"currentColor",className:e.twotonedclassname}),(0,l.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 4h4v4H4V4ZM3 4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4Zm9 8h4v4h-4v-4Zm-1 0a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1v-4Zm1.854-4.854L11.707 6H16v3.5a.5.5 0 0 0 1 0v-4a.5.5 0 0 0-.5-.5h-4.793l1.147-1.146a.5.5 0 0 0-.708-.708l-2 2a.5.5 0 0 0 0 .708l2 2a.5.5 0 0 0 .708-.708ZM8.293 15H3.5a.5.5 0 0 1-.5-.5v-4a.5.5 0 0 1 1 0V14h4.293l-1.147-1.146a.5.5 0 0 1 .708-.708l2 2a.5.5 0 0 1 0 .708l-2 2a.5.5 0 0 1-.708-.708L8.293 15Z",fill:"currentColor",className:e.baseclassname}),(0,l.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 3a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1H4Zm7 9a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1v-4Zm1.854-4.854L11.707 6H16v3.5a.5.5 0 0 0 1 0v-4a.5.5 0 0 0-.5-.5h-4.793l1.147-1.146a.5.5 0 0 0-.708-.708l-2 2a.5.5 0 0 0 0 .708l2 2a.5.5 0 0 0 .708-.708ZM8.293 15H3.5a.5.5 0 0 1-.5-.5v-4a.5.5 0 0 1 1 0V14h4.293l-1.147-1.146a.5.5 0 0 1 .708-.708l2 2a.5.5 0 0 1 0 .708l-2 2a.5.5 0 0 1-.708-.708L8.293 15Z",fill:"currentColor",className:e.fillclassname})))},421574:(e,t,n)=>{n.d(t,{V:()=>s,z:()=>m});var l=n(516693),a=n(691189),r=n(887831),i=n(218104),c=n(655448),o=n(182847);const m=(e={},t={})=>(0,a.An)([{model:c.MODEL,payload:t=>[{...t,[c.ID_FIELD]:e.queryParams.mac}]}],c.GET_PATH.replace(":mac",e.queryParams.mac),e,{idField:c.ID_FIELD,compareFunction:i.G,...t}),s=(e,t={},n={})=>i=>i((0,a.vB)(l.aC,null,null,r.A.POST,(e===o.X.START?c.START_PATH:c.STOP_PATH).replace(":mac",t.queryParams.mac),t,null,n))},424135:(e,t,n)=>{n.d(t,{A:()=>i});var l=n(296540),a=n(566723),r=n(294303);const i=({children:e,tooltip:t})=>l.createElement(r.A,{maxWidth:"100%",overflow:"hidden",gap:a.YC,alignItems:"center"},l.createElement(r.A,{flex:1,overflow:"hidden"},e),t)},451449:(e,t,n)=>{n.d(t,{I:()=>l});const l=(0,n(296540).createContext)({fields:!1,labels:!1,tooltipPopovers:!1,tooltipIcons:!1})},486006:(e,t,n)=>{n.d(t,{Ay:()=>_,ZF:()=>l});var l,a=n(296540),r=n(927099),i=n(943887),c=n(137298),o=n(38937),m=n(566723),s=n(699784),d=n(951106),u=n(11001),E=n(802123),A=n(294303);!function(e){e.MIMO_AND_STANDARD="mimoAndStandard",e.CHANNEL_AND_WIDTH="channelAndWidth",e.SIGNAL="signal",e.TX="tx",e.RX="rx"}(l||(l={}));const p={[l.MIMO_AND_STANDARD]:({detail:e})=>{const t=e.mimo?(0,d.iP)(e.mimo):a.createElement(s.sA,{id:"COMMON_FALLBACK"}),n=e.radio_proto?(0,d.z0)(e.radio_proto):a.createElement(s.sA,{id:"COMMON_FALLBACK"});return a.createElement(r.A,{size:"caption"},t," (",n,")")},[l.CHANNEL_AND_WIDTH]:({detail:{channel:e,channel_width:t}})=>a.createElement(r.A,{size:"caption"},e||a.createElement(s.sA,{id:"COMMON_FALLBACK"}),"  (",t||a.createElement(s.sA,{id:"COMMON_FALLBACK"})," ",a.createElement(s.sA,{id:"COMMON_UNIT_MHZ"}),")"),[l.SIGNAL]:({detail:{signal:e}})=>e?a.createElement(r.A,{size:"caption",color:(0,o.b5)(e)},e," ",a.createElement(s.sA,{id:"COMMON_UNIT_DBM"})):a.createElement(r.A,{size:"caption",color:"inherit"},a.createElement(s.sA,{id:"COMMON_FALLBACK"})),[l.TX]:({detail:{tx_rate:e}})=>e>0?a.createElement(u.A,{hideIcon:!0,bytesPerSecond:(0,c.Zz)(e),direction:"down",size:"small"}):a.createElement(r.A,{size:"caption"},a.createElement(s.sA,{id:"COMMON_FALLBACK"})),[l.RX]:({detail:{rx_rate:e}})=>e>0?a.createElement(u.A,{hideIcon:!0,bytesPerSecond:(0,c.Zz)(e),direction:"up",size:"small"}):a.createElement(r.A,{size:"caption"},a.createElement(s.sA,{id:"COMMON_FALLBACK"}))},_=({report:e,mlo_details:t})=>a.createElement(E.A,{enabled:!0,tooltipItems:t.map(t=>{const n=(0,i.YF)(t.radio),l=p[e];return a.createElement(A.A,{flexDirection:"row",justifyContent:"space-between",alignItems:"center",gap:m.Ln},a.createElement(r.A,{size:"caption"},n),l?a.createElement(A.A,{flexDirection:"row"},a.createElement(l,{detail:t})):null)}),neverShowListMarkers:!0})},489146:(e,t,n)=>{n.d(t,{XV:()=>c,fI:()=>o,qN:()=>i,u0:()=>m});var l=n(71479),a=n(566723),r=n(294303);const i=(0,l.A)(r.A)`
  position: relative;
  width: 80px;
  min-width: 80px;
  height: 80px;
  border-radius: 8px;
  justify-content: center;
  transition: 0.25s ease;
  &:hover {
    cursor: pointer;
    background-color: ${({theme:{motifPalette:{neutral01:e}}})=>e};
    .report-icon {
      opacity: 1;
    }
  }
`,c=(0,l.A)(r.A)`
  width: 100%;
  height: 20px;
  position: absolute;
  opacity: 0;
  border-radius: 0 0 8px 8px;
  color: #ffffff;
  background-color: rgb(14, 14, 14, 0.5);
  bottom: 0;
  justify-content: center;
  transition: 0.25s ease;
`,o=((0,l.A)(r.A)`
  align-items: center;
  gap: ${a.kc};
  margin-top: ${a.kc};
  line-height: initial;
`,(0,l.A)(r.A)`
  align-items: baseline;
  gap: ${a.xO};
`),m=(0,l.A)(r.A)`
  align-items: baseline;
  gap: ${a.YC};
  white-space: nowrap;
`},499015:(e,t,n)=>{n.d(t,{I:()=>r,i:()=>a});var l=n(943887);const a=(e,t,n)=>t||n?`(${[t?`${e({id:(0,l.dI)(t)})}`:null,n?`${n} ${e({id:"COMMON_UNIT_MHZ"})}`:null].filter(Boolean).join(", ")})`:"",r=(e,t,n,l)=>`${e} ${a(t,n,l)}`},513753:(e,t,n)=>{n.r(t),n.d(t,{default:()=>nt});var l=n(469733),a=n(296540),r=n(592510),i=n(566723),c=n(294303),o=n(689965),m=n(421574),s=n(691294),d=n(239417),u=n(187550),E=n(217439),A=n(709690),p=n(349107),_=n(699784),h=n(765562);const g=()=>a.createElement(o.A,{padding:i.Ln,nested:!0},a.createElement(c.A,{gap:i.YC},a.createElement(A.A,{variant:"fill",size:"original",isActive:!0}),a.createElement(E.A,null,a.createElement(_.sA,{id:"CLIENTS_SONOS_WARNING",values:{link:a.createElement(p.A,{id:"COMMON_LEARN_MORE",href:h.A.sonosArticle})}}))));var v=n(927099),M=n(280062),O=n(104154),I=n(150556),N=n(782558),C=n(360113);const f=({rate_imbalance:e})=>e&&Number.isInteger(e)?a.createElement(C.A,null,a.createElement(v.A,{color:"secondary",size:"body"},a.createElement(_.sA,{id:"CLIENTS_HEADER_AP_SIGNAL_BALANCE"})),a.createElement(v.A,{color:"tertiary",size:"body"},a.createElement(_.sA,{id:Math.abs(e)<=40?"COMMON_GOOD":"COMMON_POOR"}))):null,x=({details:{radio_name:e,radio:t,rate_imbalance:n,tx_rate:l,rx_rate:r}})=>a.createElement(o.A,{key:e,type:o.I.ACCORDION,items:[{id:e,label:a.createElement(v.A,{weight:"bold",size:"body"},a.createElement(M.A,{radio:t})),openByDefault:!0,renderContent:()=>a.createElement(a.Fragment,null,a.createElement(f,{rate_imbalance:n}),a.createElement(N.A,{rx_rate:r}),a.createElement(I.A,{tx_rate:l}))}]}),y=({activeItem:e})=>a.createElement(O.A,{client:e,props:["mlo_details"]},({mlo_details:e=[]})=>a.createElement(c.A,{flexDirection:"column"},e.map(e=>a.createElement(x,{key:e.radio_name,details:e}))));var L=n(582724),k=n(115829),w=n(146784),T=n(632169),b=n(366188),S=n(634229),D=n(532419),z=n(951106),R=n(321235);const P=({radio_proto:e,is_mlo:t})=>{const{formatMessage:n}=(0,_.tz)(),l=[e?(0,z.z0)(e):"",t?n({id:"COMMON_MLO"}):""].filter(Boolean).join(", ");return l?a.createElement(R.A,{id:"COMMON_STANDARD"},l):null};var F=n(705145),W=n(71479),H=n(398300),$=n(955161),B=n(734707),K=n(845030),V=n(216211),G=n(477544);const U=(0,W.A)(F.A)`
  max-width: 185px;
`;var Z;!function(e){e.OVERRIDE="override",e.WIRELESS="wireless",e.WIRED="wired"}(Z||(Z={}));const j=(0,a.memo)(({activeItem:e,activeItem:{virtual_network_override_enabled:t,type:n,network_name:r,vlan:i},uplinkDevice:{type:c,name:o,model:m,mac:d}={}})=>{const u=(0,l.useDispatch)(),{formatMessage:A}=(0,_.tz)(),p=(0,l.useSelector)(G.Ag),h=(0,l.useSelector)(D.m9),g="sw_port"in e?e.sw_port:void 0,v="essid"in e?e.essid:void 0,M=(0,z.fU)({type:c,name:o,model:m,mac:d},e,A),{handleGoToPortsPage:O}=(0,V.e)(),{virtualNetworkTriggerLabel:I,virtualNetworkTriggerType:N}=(0,a.useMemo)(()=>t?{virtualNetworkTriggerLabel:a.createElement(E.A,{color:"text-3",size:"medium"},a.createElement(_.sA,{id:"COMMON_NETWORK_OVERRIDE"})),virtualNetworkTriggerType:Z.OVERRIDE}:n===s.sK.WIRELESS&&v?{virtualNetworkTriggerLabel:v,virtualNetworkTriggerType:Z.WIRELESS}:{virtualNetworkTriggerLabel:M,virtualNetworkTriggerType:Z.WIRED},[t,n,v,M]),f=(0,a.useMemo)(()=>p.find(({name:e})=>e===v)?._id,[v,p]),x=(0,a.useCallback)(()=>{switch(N){case Z.OVERRIDE:break;case Z.WIRELESS:u((0,K.XP)({type:H.H.WIFI,id:f}));break;case Z.WIRED:O(d,g)}},[N,u,f,O,d,g]),y=(0,a.useCallback)(e=>a.createElement(B.Ay,{variant:"inline",size:"medium",onClick:x,className:B.ao},e),[x]);return a.createElement(a.Fragment,null,r?a.createElement(C.A,null,a.createElement(E.A,{color:"text-2",size:"medium"},a.createElement(_.sA,{id:"COMMON_VIRTUAL_NETWORK"})),a.createElement(F.A,{color:"text-3",size:"medium",isTruncated:!0},r)):null,(i||0===i)&&h?a.createElement(C.A,null,a.createElement(E.A,{color:"text-2",size:"medium"},a.createElement(_.sA,{id:"COMMON_VLAN_ID"})),a.createElement(F.A,{color:"text-3",size:"medium",isTruncated:!0},i)):null,I?a.createElement(C.A,{keyMinWidth:160},a.createElement(E.A,{color:"text-2",size:"medium"},a.createElement(_.sA,{id:"COMMON_VIRTUAL_NETWORK_TRIGGER"})),a.createElement($.A,{condition:N!==Z.OVERRIDE,wrapper:y},a.createElement(U,{color:"text-3",size:"medium",isTruncated:!0},I))):null)});var Y=n(153887),X=n(271856),q=n(162420),Q=n(282556),J=n(602021),ee=n(198494);const te=(0,a.memo)(({timestamp:e})=>{const t=(0,l.useSelector)(Q.zi),n=(0,l.useSelector)(ee.BQ),r=(0,l.useSelector)(J.hq);return a.createElement(X.A,{description:a.createElement(v.A,{color:"primary",size:"caption"},a.createElement(_.sA,{id:"COMMON_LAST_TEST"})," ",a.createElement(_.sA,{id:"COMMON_PREPOSITION_ON"})," ",new Intl.DateTimeFormat(t,{day:"numeric",month:"short",year:"numeric",hour:"numeric",minute:"numeric",hourCycle:n,timeZone:r}).format(e)),portal:!0},a.createElement(q.A,{isActive:!0,size:"original"}))}),ne=(0,a.memo)(({mac:e})=>{const{avg_latency:t,timestamp:n}=(0,l.useSelector)((0,a.useMemo)(()=>(0,Y.v)(e),[e]));return t&&t>-1?a.createElement(C.A,null,a.createElement(v.A,{color:"secondary",size:"body"},a.createElement(_.sA,{id:"COMMON_PING_LATENCY"})),a.createElement(c.A,{alignItems:"center"},a.createElement(v.A,{style:{marginRight:"4px"},color:"tertiary",size:"body"},a.createElement(_.sA,{id:"COMMON_UNIT_MILLISECONDS_SHORT",values:{value:t.toFixed(1)}})),a.createElement(te,{timestamp:n}))):null});var le=n(903216),ae=n(668995),re=n(664967),ie=n(601242),ce=n(411502),oe=n(89716),me=n(987309),se=n(584916);const{startDate:de,endDate:ue}=re.E[se.l.ONE_DAY].getRange(new Date),Ee=(0,a.memo)(({mac:e})=>{const t=(0,l.useDispatch)(),n=de.getTime(),i=ue.getTime(),c=(0,l.useSelector)((0,a.useMemo)(()=>(0,oe.Fr)({start:n,end:i,includeUnidentified:!0,mac:e}),[e,n,i])),o=(0,a.useMemo)(()=>(c?.usage_by_app||[]).reduce((e,{total_bytes:t,category:n,application:l})=>e+((0,ie.ez)((0,ae.h)(n,l)).toLowerCase()!==ce.HV?t:0),0)||0,[c?.usage_by_app]);return(0,a.useEffect)(()=>{t((0,me.m)({start:n,end:i,includeUnidentified:!0,mac:e},void 0,{crudCacheStrategy:{type:r.e.CACHE}}))},[t,i,e,n]),a.createElement(C.A,null,a.createElement(E.A,{color:"text-2"},a.createElement(_.sA,{id:"COMMON_24H_INTERNET_ACTIVITY"})),a.createElement(E.A,{color:"text-3"},(0,le.FI)(o)))});var Ae=n(956347),pe=n(718073),_e=n(231755),he=n(6510),ge=n(928085),ve=n(340813),Me=n(959341);const Oe=({uplinkDevice:{model:e,displayable_version:t}})=>a.createElement(a.Fragment,null,(0,he.Lm)(e)," v.",t),Ie=({uplinkDevice:e,client:t})=>{const n=(0,l.useDispatch)(),r=(0,Ae.W6)(),o=(0,l.useSelector)(G.Ag).find(({networkconf_id:e,name:n})=>e===t.network_id&&n===t.essid),m=(0,ge.A)(Me._L),d=(0,a.useCallback)(()=>{n((0,K.XP)({type:H.H.DEVICE,id:e?.mac}))},[n,e?.mac]),u=(0,a.useCallback)(()=>{o?._id?n((0,K.XP)({type:H.H.WIFI,id:o._id})):r.push(m)},[n,r,o?._id,m]);return a.createElement(C.A,{flexProps:{alignItems:"center"},valueMaxWidth:300},a.createElement(E.A,{color:"text-2",size:"medium"},a.createElement(_.sA,{id:t.status===s.S2.ONLINE?"COMMON_AP":"COMMON_LAST_CONNECTED"})),a.createElement(c.A,{gap:i.kc,alignItems:"center",justifyContent:"stretch"},e?a.createElement(a.Fragment,null,a.createElement(pe.A,{description:a.createElement(Oe,{uplinkDevice:e})},a.createElement(ve.A,{onClick:d,maxWidth:180,dontShowTooltipIfTruncated:!0},(0,he.Q)(e))),a.createElement(_e.A,{orientation:"vertical",style:{height:10}})):null,a.createElement(ve.A,{onClick:u,maxWidth:90},t.essid)))},Ne=({ip:e,last_ip:t})=>a.createElement(C.A,null,a.createElement(E.A,{color:"text-2",size:"medium"},a.createElement(_.sA,{id:"COMMON_IP_ADDRESS"})),a.createElement(E.A,{color:"text-3",size:"medium"},e||t||a.createElement(_.sA,{id:"COMMON_UNKNOWN"}))),Ce=({activeItem:e,activeItem:{virtual_network_override_enabled:t,virtual_network_override_id:n,network_id:i},fingerprintData:{fingerprint_device_vendor:o,fingerprint_device_os:m,fingerprint_device_name:d}})=>{const u=(0,l.useSelector)((0,a.useMemo)(()=>(0,b.lq)(t?n:i),[t,n,i])),A=(0,l.useSelector)((0,a.useMemo)(()=>e.uplink_mac?(0,D.bw)(e.uplink_mac,["type","name","model","mac","displayable_version"]):()=>{},[e.uplink_mac]));return(0,L.A)([(0,T.uy)(void 0,{crudCacheStrategy:{type:r.e.CACHE}}),(0,S.Sk)(void 0,{crudCacheStrategy:{type:r.e.CACHE}})],a.createElement(c.A,{flexDirection:"column"},e.type===s.sK.WIRELESS&&e.essid&&A?a.createElement(Ie,{uplinkDevice:A,client:e}):null,a.createElement(Ne,{ip:e.ip,last_ip:e.last_ip}),e.last_ipv6?.length&&e.status===s.S2.OFFLINE?a.createElement(w.A,{ipv6_address:e.last_ipv6}):null,u?a.createElement(C.A,null,a.createElement(E.A,{color:"text-2",size:"medium"},a.createElement(_.sA,{id:"COMMON_NETWORK"})),a.createElement(E.A,{color:"text-3",size:"medium"},a.createElement(_.sA,{id:"COMMON_DEFAULT"}))):null,e.status===s.S2.ONLINE?a.createElement(Ee,{mac:e.mac}):null,e.type===s.sK.WIRELESS&&Number.isFinite(e.wifi_tx_retries_percentage)?a.createElement(C.A,null,a.createElement(E.A,{color:"text-2",size:"medium"},a.createElement(_.sA,{id:"COMMON_TX_RETRIES"})),a.createElement(E.A,{color:"text-3",size:"medium"},e.wifi_tx_retries_percentage.toFixed(1),"%")):null,e.type===s.sK.WIRELESS?a.createElement(P,{radio_proto:e.radio_proto,is_mlo:e.is_mlo}):null,e.type===s.sK.WIRELESS&&e.mimo?a.createElement(C.A,null,a.createElement(E.A,{color:"text-2",size:"medium"},a.createElement(_.sA,{id:"COMMON_MIMO"})," ",a.createElement(_.sA,{id:"COMMON_CONFIGURATION"})),a.createElement(E.A,{color:"text-3",size:"medium"},(0,z.iP)(e.mimo))):null,e.type===s.sK.WIRELESS?a.createElement(f,{rate_imbalance:e.rate_imbalance}):null,e.type===s.sK.WIRELESS&&e.is_mlo?null:a.createElement(a.Fragment,null,a.createElement(O.A,{client:e,props:["rx_rate"]},({rx_rate:e=0})=>a.createElement(N.A,{rx_rate:e})),a.createElement(O.A,{client:e,props:["tx_rate"]},({tx_rate:e=0})=>a.createElement(I.A,{tx_rate:e}))),e.status===s.S2.ONLINE?a.createElement(ne,{mac:e.mac}):null,e.type===s.sK.WIRELESS&&e.is_mlo&&e.mlo_details?a.createElement(C.A,null,a.createElement(E.A,{color:"text-2",size:"medium"},a.createElement(_.sA,{id:"COMMON_MAC_ADDRESS"})),a.createElement(E.A,{color:"text-3",size:"medium"},e.mac)):null,u?null:a.createElement(j,{activeItem:e,uplinkDevice:A}),e.status===s.S2.ONLINE?a.createElement(w.A,{ipv6_address:e.ipv6_address}):null,e.hostname&&e.status===s.S2.ONLINE?a.createElement(C.A,null,a.createElement(E.A,{color:"text-2",size:"medium"},a.createElement(_.sA,{id:"COMMON_HOSTNAME"})),a.createElement(k.A,{color:"text-3",size:"medium",flexProps:{justifyContent:"flex-end"}},e.hostname)):null,o||e.oui?a.createElement(C.A,null,a.createElement(E.A,{color:"text-2",size:"medium"},a.createElement(_.sA,{id:"COMMON_MANUFACTURER"})),a.createElement(k.A,{color:"text-3",size:"medium",flexProps:{justifyContent:"flex-end"}},o||e.oui)):null,d?a.createElement(C.A,null,a.createElement(E.A,{color:"text-2",size:"medium"},a.createElement(_.sA,{id:"COMMON_MODEL"})),a.createElement(k.A,{color:"text-3",size:"medium",flexProps:{justifyContent:"flex-end"}},d)):null,m?a.createElement(C.A,null,a.createElement(E.A,{color:"text-2",size:"medium"},a.createElement(_.sA,{id:"CLIENTS_HEADER_OS"})),a.createElement(k.A,{color:"text-3",size:"medium",flexProps:{justifyContent:"flex-end"}},m)):null))};var fe=n(127737),xe=n(643757),ye=n(369702),Le=n(151061),ke=n(822336),we=n(118818),Te=n(38937),be=n(596441),Se=n(723329);const De=23,ze=72,Re=173,Pe=67,Fe=({signal:e,pending:t})=>a.createElement(c.A,{alignItems:"center",justifyContent:"flex-end"},a.createElement(E.A,{size:"medium",color:t?"text-2":(0,Te.a5)(e)},t?a.createElement(_.sA,{id:"COMMON_READY"}):a.createElement(a.Fragment,null,e," ",a.createElement(_.sA,{id:"COMMON_UNIT_DBM"})))),We=(0,W.A)(c.A)`
  height: ${be.I.ROW_HEIGHT-1}px;
  border-bottom: ${({theme:{themeName:e}})=>ke.Ay[`desktop-border-divider-${e}`]};
  align-items: center;
  justify-content: space-between;

  &:last-child {
    border-bottom: none;
  }
`,He=({pending:e})=>a.createElement(X.A,{description:a.createElement(_.sA,{id:e?"COMMON_INACTIVE":"COMMON_CONNECTED"})},a.createElement(we.A,{variant:e?"neutral":"success",pulsating:!e})),$e=({channel:e,channelWidth:t,radio:n,mimo:l,signal:r})=>{const o=r<=-90;return a.createElement(We,{width:"100%",gap:i.YC},a.createElement(c.A,{width:De,justifyContent:"center",alignContent:"center"},a.createElement(He,{pending:o})),a.createElement(c.A,{width:ze},a.createElement(Fe,{signal:r,pending:o})),a.createElement(c.A,{width:Re},a.createElement(Se.t,{radio:n,channel:e,channel_width:t,color:"text-3",channelColor:"text-2",size:"medium"})),a.createElement(c.A,{width:Pe},a.createElement(E.A,{size:"medium",color:"text-2"},l||a.createElement(_.sA,{id:"COMMON_FALLBACK"}))))},Be=({mlo_details:e})=>a.createElement(c.A,{flexDirection:"column"},e.map(({channel_width:e,mimo:t,...n})=>a.createElement($e,{key:n.radio,channelWidth:+e,mimo:t?(0,z.iP)(t):null,...n})));var Ke=n(399818),Ve=n(489146);const Ge=({activeItem:e})=>a.createElement(Ve.fI,null,a.createElement(Ve.u0,null,a.createElement(Ke.A,{signal:e.signal,is_mlo:e.is_mlo,size:"medium"})),a.createElement(Ve.u0,null,a.createElement(E.A,{size:"medium",color:"text-2"},a.createElement(_.sA,{id:"COMMON_CHANNEL_ABBREVIATION"})),a.createElement(Se.t,{radio:e.radio,channel:e.channel,channel_width:e.channel_width,color:"text-3",channelColor:"text-2",size:"medium"})));var Ue=n(722194),Ze=n(623771);const je=({client:e,uplinkDevice:t,...n})=>{const r=(0,l.useDispatch)(),i=(0,z.f2)(e,t),c=(0,a.useCallback)(()=>{r((0,K.XP)({type:H.H.DEVICE,id:t?.mac}))},[r,t?.mac]);return a.createElement(Ze.A,{...n,onClick:c,name:(0,he.Q)(t),port:i})},Ye=({activeItem:e})=>{const t=(0,a.useMemo)(()=>e.uplink_mac?(0,D.bw)(e.uplink_mac,["type","name","model","mac","displayable_version"]):()=>{},[e.uplink_mac]),n=(0,l.useSelector)(t);return a.createElement(Ve.fI,null,a.createElement(Ve.u0,null,a.createElement(je,{uplinkDevice:n,client:e,maxWidth:210,separatePortNumber:!0,tooltipOverride:a.createElement(Oe,{uplinkDevice:n})})),"wired_rate_mbps"in e?a.createElement(Ve.u0,null,a.createElement(Ue.A,{wired_rate_mbps:e.wired_rate_mbps})):null)},Xe=(0,W.A)("div")`
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 0 ${i.kc};
  overflow: hidden;

  &:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: ${({theme:{motifPalette:{uBlue06:e}}})=>e};
    opacity: 0.1;
    border-radius: 8px;
  }
`,qe=()=>a.createElement(Xe,null,a.createElement(E.A,{size:"small",color:"ublue-06"},a.createElement(_.sA,{id:"COMMON_MLO"})));var Qe=n(312700);const Je=({uplink_mac:e,sw_port:t})=>{const{handleGoToPortsPage:n}=(0,V.e)();return a.createElement(ye.A,{onClick:()=>{n(e,+t,!0)},width:"full"},a.createElement(fe.A,{variant:"twoTone"}),a.createElement(_.sA,{id:"COMMON_GO_TO_PORT_INSIGHTS"}))},et=({activeItem:e,activeItem:{display_name:t,blocked:n,status:l,last_seen:r},fingerprintData:o})=>{const m=o?.fingerprint_device_name||t,d=n||l===s.S2.OFFLINE,u=e.type===s.sK.WIRED,A=e.type===s.sK.WIRELESS&&l===s.S2.ONLINE,p=u&&l===s.S2.ONLINE;return a.createElement(c.A,{flexDirection:"column",gap:i.kc},a.createElement(c.A,{flexDirection:"row",alignItems:"stretch",justifyContent:"flex-start",gap:i.YC,position:"relative"},a.createElement(Qe.A,{activeItem:e}),a.createElement(c.A,{flexDirection:"column",justifyContent:"space-between",alignItems:"stretch",flex:"1",minWidth:0},"is_mlo"in e&&e.is_mlo?a.createElement(c.A,{position:"absolute",right:"0",top:"0"},a.createElement(qe,null)):null,a.createElement(c.A,{flexDirection:"column",justifyContent:"center",flex:1,gap:i.YC},e.mac?a.createElement(Ve.fI,null,a.createElement(xe.A,{title:m,disabled:d,maxWidth:130}),a.createElement(Ve.u0,null,a.createElement(E.A,{size:"medium",color:"text-3"},e.mac))):null,A&&!e.is_mlo?a.createElement(Ge,{activeItem:e}):null,p?a.createElement(Ye,{activeItem:e}):null,l===s.S2.OFFLINE?a.createElement(Le.m,{last_uplink_mac:u?e.last_uplink_mac:void 0,last_uplink_name:u?e.last_uplink_name:void 0,last_uplink_remote_port:u?e.last_uplink_remote_port:void 0,disconnected_at:r}):null))),A&&e.is_mlo&&e.mlo_details?a.createElement(Be,{mlo_details:e.mlo_details}):null,p?a.createElement(Je,{uplink_mac:e.uplink_mac,sw_port:e.sw_port}):null)},tt=()=>a.createElement(o.A,{padding:i.Ln,nested:!0},a.createElement(c.A,{gap:i.YC},a.createElement(A.A,{variant:"fill",size:"original",isActive:!0}),a.createElement(E.A,null,a.createElement(_.sA,{id:"CLIENTS_APPLE_UPDATE_WARNING"})))),nt=({activeItem:e})=>{const t=(0,l.useDispatch)(),n=e.type===s.sK.WIRELESS&&"is_mlo"in e&&e.is_mlo,E=(0,l.useSelector)((0,a.useMemo)(()=>(0,d.OF)(e.fingerprint),[e.fingerprint]));return(0,a.useEffect)(()=>{t((0,m.z)({queryParams:{mac:e.mac}},{crudCacheStrategy:{type:r.e.CACHE}}))},[t,e.mac]),a.createElement(a.Fragment,null,a.createElement(o.A,null,a.createElement(c.A,{flexDirection:"column",gap:i.Ln},a.createElement(et,{activeItem:e,fingerprintData:E}),"Sonos"===E?.fingerprint_device_vendor?a.createElement(g,null):null,E?.fingerprint_device_name?.includes("Apple TV")?a.createElement(tt,null):null,e.type===s.sK.WIRED?a.createElement(u.B,{mac:e.mac,uplinkMac:e.uplink_mac,portNumber:e.sw_port,detailedStates:e.detailed_states}):null,a.createElement(Ce,{activeItem:e,fingerprintData:E}))),n?a.createElement(y,{activeItem:e}):null)}},530813:(e,t,n)=>{n.d(t,{A:()=>E,d:()=>u});var l=n(296540),a=n(217439),r=n(705145),i=n(71479),c=n(311785),o=n(566723),m=n(699784),s=n(795097),d=n(294303);const u=(0,i.A)(s.A,(0,c.A)("showListMarkers","gap"))`
  padding-left: ${({showListMarkers:e})=>e?o.Ln:0};
  display: flex;
  flex-direction: column;
  gap: ${({gap:e})=>e??o.YC};

  > li {
    list-style-type: ${({showListMarkers:e})=>e?"disc":"none"};
  }
`;const E=function({items:e,getItemKey:t,renderItem:n,maxItemCount:i=20,renderShowMore:c,showListMarkers:s,listGap:E}){return l.createElement(d.A,{flexDirection:"column",gap:o.YC},l.createElement(u,{showListMarkers:s,gap:E},e.slice(0,i).map((e,a)=>l.createElement("li",{key:t(e,a)},l.createElement(r.A,{variant:"inherit",isTruncated:!0},n(e))))),i&&e.length>i?c?c(e):l.createElement(a.A,{variant:"inherit"},l.createElement(m.sA,{id:"COMMON_X_MORE",values:{count:e.length-i}})):null)}},533520:(e,t,n)=>{n.d(t,{x:()=>a});var l=n(296540);const a=({mac:e,detailedStates:t,uplinkDisplayName:n,portNumber:a,uplinkMac:r,PortPowerLimitExceededWarning:i,UplinkNearPowerLimitWarning:c,DeviceNearPowerLimitWarning:o=null})=>{switch(!0){case t.port_power_limit_exceeded:return l.createElement(i,{uplinkDisplayName:n,portNumber:a,uplinkMac:r});case t.uplink_near_power_limit:return l.createElement(c,{uplinkMac:r,uplinkDisplayName:n});case t.device_near_power_limit:return!!o&&l.createElement(o,{mac:e});default:return null}}},568560:(e,t,n)=>{n.d(t,{A:()=>p});var l=n(469733),a=n(296540),r=n(217439),i=n(895795),c=n(383653),o=n(742920),m=n(115829),s=n(39705),d=n(294303),u=n(675359),E=n(699784),A=n(348466);const p=({ipv6:e=[],enabled:t=!0,size:n="inherit",color:p="inherit",showOnlyPrefix:_=!1})=>{const h=(0,l.useDispatch)(),g=(0,a.useCallback)(e=>{navigator.clipboard.writeText(e).then(()=>{h((0,u.ox)({icon:o.C.success,message:"COMMON_COPIED_TO_CLIPBOARD"}))})},[h]),v=(0,a.useCallback)((e,t)=>{t.stopPropagation(),t.preventDefault(),g(e)},[g]),M=(0,a.useMemo)(()=>(e=>{const t=e=>(0,c.G8)(e)?0:(0,c.ZV)(e)?1:2;return e.sort((e,n)=>t(e)-t(n))})(e||[]).map(e=>{const[t,n]=e.split(A.Ed);return _?`${(0,c.Gh)(t,Number(n))}/${n}`:(0,c.z2)(e)}),[e,_]),O=M?.[0];return O?a.createElement(d.A,{maxWidth:"100%",justifyContent:"flex-end"},a.createElement(m.A,{enabled:t,flexProps:{justifyContent:"flex-end",alignItems:"center"},color:t?p:"disabled",size:n},O),M?.length>1?a.createElement(s.A,{items:M,isInteractive:!0,showListMarkers:!1,getItemKey:e=>e,renderListItem:e=>a.createElement(a.Fragment,null,e,a.createElement(i.A,{size:"original",actionable:!0,onClick:t=>v(e,t)})),renderMultipleItemsSummary:()=>null}):a.createElement(i.A,{size:"original",actionable:!0,onClick:e=>v(O,e)})):a.createElement(r.A,{size:n,color:t?p:"disabled"},a.createElement(E.sA,{id:"COMMON_FALLBACK"}))}},596441:(e,t,n)=>{n.d(t,{I:()=>l});const l={HEADER_HEIGHT:32,ROW_HEIGHT:32,EDIT_FIELD_HEIGHT:36,getHeight(e,t,n,l){return Math.min((l||this.ROW_HEIGHT)*e+(n??this.HEADER_HEIGHT),(l||this.ROW_HEIGHT)*t+(n??this.HEADER_HEIGHT))},getEditContainerHeight(e,t,n){return Math.min((n||this.EDIT_FIELD_HEIGHT)*e,(n||this.EDIT_FIELD_HEIGHT)*t)}}},614054:(e,t,n)=>{n.d(t,{w:()=>l});const l=e=>!!e&&Object.values(e).some(Boolean)},643757:(e,t,n)=>{n.d(t,{A:()=>A});var l=n(296540),a=n(271856),r=n(705145),i=n(71479);const c=e=>{const[t,n]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{e.current&&n(e.current.clientWidth<e.current.scrollWidth)},[e]),t};var o=n(311785),m=n(566723),s=n(294303),d=n(955161);const u=e=>t=>l.createElement(a.A,{description:e,noWrap:!0,portal:!0},t),E=(0,i.A)(r.A,(0,o.A)("maxWidth"))`
  max-width: ${({maxWidth:e})=>e}px;
`,A=(0,l.memo)(({title:e,icon:t,maxWidth:n,disabled:a=!1})=>{const r=(0,l.useRef)(null),i=c(r);return l.createElement(d.A,{condition:i,wrapper:u(e)},l.createElement(s.A,{gap:m.YC,alignItems:"center"},t,l.createElement(E,{isTruncated:!0,size:"medium",weight:"bold",color:a?"text-3":"text-1",maxWidth:n,ref:r},e)))})},646189:(e,t,n)=>{n.d(t,{A:()=>E});var l=n(469733),a=n(296540),r=n(71479),i=n(132196),c=n(801081),o=n(189601),m=n(609298);const s=i.i7`
  0% {
    opacity: 0.0;
    transform: scale(0.3);
  }
  // fadein
  20% {
    opacity: 0.8;
  }
  // grow
  70% {
    transform: scale(0.8);
    opacity: 0.6;
  }
  // fadeout
  100% {
    opacity: 0.0;
    transform: scale(1.0);
  }
`,d=2e3,u=(0,r.A)("div",{shouldForwardProp:e=>!["size","animationName","delay"].includes(e)})`
  position: absolute;
  border-radius: 50%;
  ${({size:e,theme:{motifPalette:{uBlue03:t}},delay:n,animationName:l})=>`\n    width: ${e}px;\n    height: ${e}px;\n    background: ${t};\n    animation-delay: ${n}ms;\n    animation-name: ${l};\n  `}
  animation-duration: ${d}ms;
  animation-iteration-count: infinite;
  animation-timing-function: cubic-bezier(0, 0.3, 0.1, 0);
  z-index: -1;
  opacity: 0;
  transform: scale(0);
`,E=(0,a.memo)(({size:e,mac:t})=>(0,l.useSelector)((0,a.useMemo)(()=>(e=>(0,o.WY)()((0,c.Mz)(({models:t})=>t[m.G.SESSION_METADATA]?.byId?.[e],e=>Boolean(e)),e=>e))(t),[t]))?a.createElement(a.Fragment,null,a.createElement(u,{size:e,animationName:s,delay:-500}),a.createElement(u,{size:e,animationName:s,delay:-1500})):null)},660950:(e,t,n)=>{n.d(t,{A:()=>c});var l=n(296540),a=n(852866),r=n(699784),i=n(373934);const c=({uplinkMac:e,portNumber:t,uplinkDisplayName:n})=>l.createElement(r.sA,{id:"DEVICE_POE_PORT_OUT_OF_POWER",values:{portName:l.createElement(i.A,{mac:e,port:t},`${(0,a.c)(n)} ${(0,r.tz)().formatMessage({id:"COMMON_PORT"})} ${t}`)}})},668995:(e,t,n)=>{n.d(t,{h:()=>l});const l=(e,t)=>(e<<16)+t},675845:(e,t,n)=>{n.d(t,{Z:()=>a,z:()=>r});var l=n(6510);const a=(e,t)=>e?t.find(({mac:t})=>t===e):void 0,r=(e,t,n,a)=>{const r=t?` ${a({id:"DEVICE_PROPERTIES_PORT_WITH_NUMBER"},{port:t})}`:"";return e?`${e}${r}`:n?`${(0,l.Q)(n)}${r}`:a({id:"COMMON_FALLBACK"})}},689965:(e,t,n)=>{n.d(t,{A:()=>E,I:()=>l});var l,a=n(296540),r=n(822336),i=n(427853),c=n(71479),o=n(825032),m=n(566723),s=n(294303);!function(e){e.ACCORDION="accordion",e.BUTTON_LIST="buttonList"}(l||(l={}));const d=(0,c.A)(s.A,{shouldForwardProp:e=>!["marginBottom","isButtonList","margin","flex","width","padding","nested","background"].includes(e)})`
  background-color: ${({background:e,nested:t,theme:{themeName:n}})=>e||r.Ay[n===o.S.DARK?`desktop-color-neutral-${t?"00":"01"}-dark`:`desktop-color-neutral-${t?"01":"00"}-light`]};
  padding: ${({theme:e,isButtonList:t,padding:n})=>n||(t?`0 ${e.spacing["spacing-l"]}`:e.spacing["spacing-l"])};
  margin-bottom: ${({theme:e,marginBottom:t})=>t||e.spacing["spacing-l"]};
  ${({margin:e})=>e?`margin: ${e};`:""}
  border-radius: 8px;
  flex-direction: column;
  width: ${({width:e="100%"})=>e};
  flex: ${({flex:e=0})=>e};
  > :last-child {
    margin-bottom: 0;
  }
  thead {
    tr {
      height: 32px !important;
    }
    th {
      text-transform: none;
    }
  }
  ${({isButtonList:e})=>e?`\n    > div {\n      display: flex;\n      height: 48px;\n      border-bottom: ${({theme:{themeName:e}})=>r.Ay[`desktop-border-divider-${e}`]};\n      &:last-child {\n        border-bottom: none;\n      }\n    }\n  `:""}
`,u=(0,c.A)(i.A,{shouldForwardProp:e=>!["marginBottom","margin","flex","padding","nested","background"].includes(e)})`
  background-color: ${({background:e,nested:t,theme:{themeName:n}})=>e||r.Ay[n===o.S.DARK?`desktop-color-neutral-${t?"00":"01"}-dark`:`desktop-color-neutral-${t?"01":"00"}-light`]};
  margin-bottom: ${({theme:e,marginBottom:t})=>t||e.spacing["spacing-l"]};
  ${({margin:e})=>e?`margin: ${e};`:""}
  ${({padding:e})=>e?`padding: ${e};`:""}
  border-radius: 8px;
  flex-direction: column;
  flex: ${({flex:e=0})=>e};
  > :last-child {
    margin-bottom: 0;
  }
  thead {
    tr {
      height: 32px !important;
    }
    th {
      text-transform: none;
    }
  }
  > li {
    > div:first-child {
      background: ${({background:e,theme:{themeName:t}})=>e||r.Ay[t===o.S.DARK?"desktop-color-neutral-01-dark":"desktop-color-neutral-00-light"]};
      height: 48px;
      padding: 0 ${m.Ln};
    }
    > div:nth-child(2) {
      margin-bottom: 0;
      padding: 0 ${m.Ln} ${m.Ln};
      > div {
        padding: 0;
      }
    }
  }
`,E=({type:e,marginBottom:t,margin:n,padding:r,flex:i,width:c,nested:o,...m})=>"items"in m?a.createElement(u,{marginBottom:t,margin:n,padding:r,flex:i,nested:o,...m}):a.createElement(d,{nested:o,width:c,marginBottom:t,margin:n,padding:r,flex:i,isButtonList:e===l.BUTTON_LIST,...m},m.children)},722194:(e,t,n)=>{n.d(t,{A:()=>o});var l=n(296540),a=n(325898),r=n(217439),i=n(903216),c=n(863489);const o=({wired_rate_mbps:e})=>l.createElement(r.A,{style:{color:(0,c.xe)(e,(0,a.A)().motif,!e)},size:"medium"},(0,i.ir)(e))},723329:(e,t,n)=>{n.d(t,{A:()=>A,t:()=>u});var l=n(296540),a=n(217439),r=n(499015),i=n(566723),c=n(486006),o=n(294303),m=n(699784),s=n(951106),d=n(691294);const u=({channel:e,radio:t,channel_width:n,channelColor:i,color:c,size:s})=>{const d=(0,r.i)((0,m.tz)().formatMessage,t,n);return l.createElement(o.A,null,l.createElement(a.A,{color:i||c,size:s},e)," ",l.createElement(a.A,{color:c,size:s},d||l.createElement(m.sA,{id:"COMMON_FALLBACK"})))},E=({mlo_details:e,...t})=>{if(!e)return l.createElement(a.A,{...t},l.createElement(m.sA,{id:"COMMON_FALLBACK"}));const{radio:n,channel:r,channel_width:d}=(0,s.Wc)(e);return l.createElement(o.A,{flexDirection:"row",gap:i.YC},l.createElement(u,{radio:n,channel:r,channel_width:+d,...t}),e?l.createElement(c.Ay,{report:c.ZF.CHANNEL_AND_WIDTH,mlo_details:e}):null)},A=(0,l.memo)(({type:e,status:t,is_mlo:n,mlo_details:r,size:i="medium",color:c="inherit",channelColor:o,...s})=>e===d.sK.WIRELESS&&t===d.S2.ONLINE&&s.channel?n?l.createElement(E,{mlo_details:r,size:i,color:c,channelColor:o}):l.createElement(u,{size:i,color:c,channelColor:o,...s}):l.createElement(a.A,{size:i,color:c},l.createElement(m.sA,{id:"COMMON_FALLBACK"})))},766624:(e,t,n)=>{n.d(t,{A:()=>o});var l=n(296540),a=n(271856),r=n(709690),i=n(284428),c=n(566723);const o=({description:e,isInteractive:t,portal:n=!0,cursorType:o,title:m,position:s,width:d,iconProps:u,disabled:E=!1})=>{const A=(0,i.Im)()||E,p=(0,i.q)();return l.createElement(a.A,{description:e,portal:n,isInteractive:t,style:{display:"flex",alignItems:"center"},cursorType:o,title:m,position:s,width:d,disableHover:p},l.createElement(r.A,{isActive:!0,size:"original",opacity:A?c.xN:void 0,...u}))}},782558:(e,t,n)=>{n.d(t,{A:()=>o});var l=n(296540),a=n(927099),r=n(137298),i=n(699784),c=n(360113);const o=({rx_rate:e})=>e>0?l.createElement(c.A,null,l.createElement(a.A,{color:"secondary",size:"body"},l.createElement(i.sA,{id:"COMMON_RX_RATE"})),l.createElement(a.A,{color:"tertiary",size:"body"},(0,r.Up)(e))):null},795097:(e,t,n)=>{n.d(t,{A:()=>r});var l=n(71479),a=n(566723);const r=(0,l.A)("ul")`
  padding-left: ${a.Er};
  margin-bottom: 0;
  margin-top: 0;
`},802123:(e,t,n)=>{n.d(t,{A:()=>u});var l=n(296540),a=n(758649),r=n(566723),i=n(203157),c=n(294303),o=n(699784),m=n(115829),s=n(424135),d=n(819127);const u=({enabled:e,label:t,tooltipItems:n,neverShowListMarkers:u,limit:E=20,seeMoreCallback:A,isInteractive:p,title:_,showMatchOppositeIcon:h,listGap:g})=>l.createElement(c.A,{flex:1,overflow:"hidden",gap:r.YC},h?l.createElement(i.A,{enabled:e}):null,l.createElement(s.A,{tooltip:l.createElement(d.A,{title:_,position:"top",isInteractive:Boolean(A)||p,items:n,showListMarkers:!u,maxItemCount:E,getItemKey:(e,t)=>t,renderItem:e=>e,listGap:g,renderShowMore:A?()=>l.createElement(a.A,{variant:"inline",onClick:A},l.createElement(o.sA,{id:"COMMON_SEE_MORE"})):void 0})},t?l.createElement(m.A,{color:e?"inherit":"disabled"},t):null))},819127:(e,t,n)=>{n.d(t,{A:()=>i});var l=n(296540),a=n(766624),r=n(530813);const i=function({items:e,getItemKey:t,renderItem:n,maxItemCount:i,renderShowMore:c,showListMarkers:o,title:m,position:s,isInteractive:d,cursorType:u,listGap:E}){return l.createElement(a.A,{title:m,position:s,isInteractive:d,cursorType:u,description:l.createElement(r.A,{items:e,getItemKey:t,renderItem:n,maxItemCount:i,listGap:E,renderShowMore:c,showListMarkers:o})})}},895795:(e,t,n)=>{n.d(t,{A:()=>r});var l=n(296540),a=n(629318);const r=(0,n(51946).w)(e=>(0,l.createElement)("svg",(0,a.d)({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em"},e),(0,l.createElement)("rect",{x:3,y:5,width:12,height:12,rx:1,fill:"currentColor",className:e.twotonedclassname}),(0,l.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.5 4H16v9.5a.5.5 0 0 0 1 0V4a1 1 0 0 0-1-1H6.5a.5.5 0 0 0 0 1ZM4 6h10v10H4V6ZM3 6a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V6Z",fill:"currentColor",className:e.baseclassname}),(0,l.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.5 4H16v9.5a.5.5 0 0 0 1 0V4a1 1 0 0 0-1-1H6.5a.5.5 0 0 0 0 1ZM4 5a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1H4Z",fill:"currentColor",className:e.fillclassname})))}}]);