"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[56527],{177445(e,i,n){n.d(i,{A:()=>a});var t=n(602086),s=n(977872),o=n(223597),r=n(34118);const a=({client:{id:e,type:i,status:n,blocked:a},props:l,children:d})=>{const c=(0,t.useMemo)(()=>i===o.sK.VPN?o.N7.VPN:i===o.sK.TELEPORT?o.N7.TELEPORT:a?o.N7.BLOCKED:n===o.S2.OFFLINE?o.N7.OFFLINE:o.N7.ACTIVE,[i,a,n]),m=(0,s.d4)((0,t.useMemo)(()=>(0,r.kV)(e,l,c),[e,l,c]));return d((0,t.useMemo)(()=>m,[m]))}},612389(e,i,n){n.d(i,{A:()=>m});var t=n(274934),s=n(814557),o=n(938984),r=n(247816),a=n(263705),l=n(309130),d=n(100978);const c=(0,r.A)(o.A)`
  line-height: 20px;
`,m=({icon:e,description:i,action:n,footer:o,background:r,...m})=>{const{themeName:A}=(0,a.u)();return(0,t.jsxs)(d.A,{flexGrow:1,borderRadius:l.YC,padding:l.kc,background:r||s.Ay[`desktop-color-neutral-01-${A}`],gap:l.kc,flexDirection:"column",...m,children:[(0,t.jsxs)(d.A,{flexGrow:1,gap:l.kc,children:[e,i?(0,t.jsx)(c,{size:"medium",children:i}):null,n?(0,t.jsx)(d.A,{marginLeft:"auto",children:(0,t.jsx)(c,{size:"medium",children:n})}):null]}),o]})}},268661(e,i,n){n.d(i,{A:()=>l});var t=n(274934),s=n(43009),o=n(938984),r=n(442175),a=n(128066);const l=({wired_rate_mbps:e})=>(0,t.jsx)(o.A,{style:{color:(0,a.xe)(e,(0,s.A)().motif,!e)},size:"medium",children:(0,r.ir)(e)})},555672(e,i,n){n.d(i,{A:()=>p});var t=n(274934),s=n(814557),o=n(602086),r=n(977872),a=n(247816),l=n(409844),d=n(222102),c=n(430328),m=n(773434),A=n(291508);const h=l.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);
  }
`,x=(0,a.A)("div",(0,A.A)("size","animationName","delay"))`
  position: absolute;
  border-radius: 50%;
  ${({size:e,theme:{themeName:i},delay:n,animationName:t})=>`\n    width: ${e}px;\n    height: ${e}px;\n    background: ${s.Ay[`desktop-color-ublue-03-${i}`]};\n    animation-delay: ${n}ms;\n    animation-name: ${t};\n  `}
  animation-duration: ${2e3}ms;
  animation-iteration-count: infinite;
  animation-timing-function: cubic-bezier(0, 0.3, 0.1, 0);
  z-index: -1;
  opacity: 0;
  transform: scale(0);
`,p=(0,o.memo)(({size:e,mac:i})=>(0,r.d4)((0,o.useMemo)(()=>(e=>(0,c.WY)()((0,d.Mz)(({models:i})=>i[m.G.SESSION_METADATA]?.byId?.[e],e=>Boolean(e)),e=>e))(i),[i]))?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(x,{size:e,animationName:h,delay:-500}),(0,t.jsx)(x,{size:e,animationName:h,delay:-1500})]}):null)},535322(e,i,n){n.d(i,{A:()=>x,I:()=>t});var t,s=n(274934),o=n(814557),r=n(158885),a=n(247816),l=n(565527),d=n(309130),c=n(100978),m=n(291508);!function(e){e.ACCORDION="accordion",e.BUTTON_LIST="buttonList"}(t||(t={}));const A=(0,a.A)(c.A,(0,m.A)("marginBottom","isButtonList","margin","flex","width","padding","nested","background"))`
  background-color: ${({background:e,nested:i,theme:{themeName:n}})=>e||o.Ay[n===l.S.DARK?`desktop-color-neutral-${i?"00":"01"}-${l.S.DARK}`:`desktop-color-neutral-${i?"01":"00"}-${l.S.LIGHT}`]};
  padding: ${({isButtonList:e,padding:i})=>i||(e?`0 ${d.Ln}`:d.Ln)};
  margin-bottom: ${({marginBottom:e})=>e||d.Ln};
  ${({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}})=>o.Ay[`desktop-border-divider-${e}`]};\n      &:last-child {\n        border-bottom: none;\n      }\n    }\n  `:""}
`,h=(0,a.A)(r.A,(0,m.A)("marginBottom","margin","flex","padding","nested","background"))`
  background-color: ${({background:e,nested:i,theme:{themeName:n}})=>e||o.Ay[n===l.S.DARK?`desktop-color-neutral-${i?"00":"01"}-${l.S.DARK}`:`desktop-color-neutral-${i?"01":"00"}-${l.S.LIGHT}`]};
  margin-bottom: ${({theme:e,marginBottom:i})=>i||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:i}})=>e||o.Ay[i===l.S.DARK?`desktop-color-neutral-01-${l.S.DARK}`:`desktop-color-neutral-00-${l.S.LIGHT}`]};
      height: 48px;
      padding: 0 ${d.Ln};
    }
    > div:nth-child(2) {
      margin-bottom: 0;
      padding: 0;
      > div {
        padding: 0 ${d.Ln} ${d.Ln};
      }
    }
  }
`,x=({type:e,marginBottom:i,margin:n,padding:o,flex:r,width:a,nested:l,...d})=>"items"in d?(0,s.jsx)(h,{marginBottom:i,margin:n,padding:o,flex:r,nested:l,...d}):(0,s.jsx)(A,{nested:l,width:a,marginBottom:i,margin:n,padding:o,flex:r,isButtonList:e===t.BUTTON_LIST,...d,children:d.children})},737364(e,i,n){n.d(i,{A:()=>A});var t=n(274934),s=n(599110),o=n(309130),r=n(580988),a=n(100978),l=n(470070),d=n(421314),c=n(300626),m=n(174710);const A=({enabled:e,label:i,tooltipItems:n,neverShowListMarkers:A,limit:h=20,seeMoreCallback:x,isInteractive:p,title:u,showMatchOppositeIcon:g,listGap:_,iconProps:j})=>(0,t.jsxs)(a.A,{flex:1,overflow:"hidden",gap:o.YC,children:[g?(0,t.jsx)(r.A,{enabled:e}):null,(0,t.jsx)(c.A,{tooltip:(0,t.jsx)(m.A,{title:u,position:"top",isInteractive:Boolean(x)||p,items:n,showListMarkers:!A,maxItemCount:h,getItemKey:(e,i)=>i,renderItem:e=>e,listGap:_,renderShowMore:x?()=>(0,t.jsx)(s.A,{variant:"inline",onClick:x,children:(0,t.jsx)(l.sA,{id:"COMMON_SEE_MORE"})}):void 0,iconProps:j}),children:i?(0,t.jsx)(d.A,{color:e?"inherit":"disabled",children:i}):null})]})},174710(e,i,n){n.d(i,{A:()=>r});var t=n(274934),s=n(304151),o=n(158498);const r=function({items:e,getItemKey:i,renderItem:n,maxItemCount:r,renderShowMore:a,showListMarkers:l,title:d,position:c,isInteractive:m,cursorType:A,listGap:h,iconProps:x}){return(0,t.jsx)(s.A,{title:d,position:c,isInteractive:m,cursorType:A,description:(0,t.jsx)(o.A,{items:e,getItemKey:i,renderItem:n,maxItemCount:r,listGap:h,renderShowMore:a,showListMarkers:l}),iconProps:x})}},580988(e,i,n){n.d(i,{A:()=>d});var t=n(274934),s=n(125799),o=n(815879),r=n(309130),a=n(100978),l=n(470070);const d=({enabled:e})=>(0,t.jsx)(a.A,{opacity:e?void 0:r.xN,children:(0,t.jsx)(s.A,{description:(0,t.jsx)(l.sA,{id:"COMMON_MATCH_OPPOSITE"}),portal:!0,children:(0,t.jsx)(o.A,{size:"original"})})})},300626(e,i,n){n.d(i,{A:()=>r});var t=n(274934),s=n(309130),o=n(100978);const r=({children:e,tooltip:i})=>(0,t.jsxs)(o.A,{maxWidth:"100%",overflow:"hidden",gap:s.YC,alignItems:"center",children:[e?(0,t.jsx)(o.A,{flex:1,overflow:"hidden",children:e}):null,i]})},320865(e,i,n){n.d(i,{Ay:()=>u,ZF:()=>t});var t,s=n(274934),o=n(938984),r=n(293668),a=n(320509),l=n(331472),d=n(309130),c=n(470070),m=n(831433),A=n(907488),h=n(737364),x=n(100978);!function(e){e.MIMO_AND_STANDARD="mimoAndStandard",e.CHANNEL_AND_WIDTH="channelAndWidth",e.SIGNAL="signal",e.TX="tx",e.RX="rx"}(t||(t={}));const p={[t.MIMO_AND_STANDARD]:({detail:e})=>{const i=e.mimo?(0,m.iP)(e.mimo):(0,s.jsx)(c.sA,{id:"COMMON_FALLBACK"}),n=e.radio_proto?(0,m.z0)(e.radio_proto):(0,s.jsx)(c.sA,{id:"COMMON_FALLBACK"});return(0,s.jsxs)(o.A,{size:"small",children:[i," (",n,")"]})},[t.CHANNEL_AND_WIDTH]:({detail:{channel:e,channel_width:i}})=>(0,s.jsxs)(o.A,{size:"small",children:[e||(0,s.jsx)(c.sA,{id:"COMMON_FALLBACK"}),"  (",i||(0,s.jsx)(c.sA,{id:"COMMON_FALLBACK"})," ",(0,s.jsx)(c.sA,{id:"COMMON_UNIT_MHZ"}),")"]}),[t.SIGNAL]:({detail:{signal:e}})=>e?(0,s.jsxs)(o.A,{size:"small",color:(0,l.b5)(e),children:[e," ",(0,s.jsx)(c.sA,{id:"COMMON_UNIT_DBM"})]}):(0,s.jsx)(o.A,{size:"small",color:"inherit",children:(0,s.jsx)(c.sA,{id:"COMMON_FALLBACK"})}),[t.TX]:({detail:{tx_rate:e}})=>e>0?(0,s.jsx)(A.A,{hideIcon:!0,bytesPerSecond:(0,a.Zz)(e),direction:"down",size:"small"}):(0,s.jsx)(o.A,{size:"small",children:(0,s.jsx)(c.sA,{id:"COMMON_FALLBACK"})}),[t.RX]:({detail:{rx_rate:e}})=>e>0?(0,s.jsx)(A.A,{hideIcon:!0,bytesPerSecond:(0,a.Zz)(e),direction:"up",size:"small"}):(0,s.jsx)(o.A,{size:"small",children:(0,s.jsx)(c.sA,{id:"COMMON_FALLBACK"})})},u=({report:e,mlo_details:i,iconProps:n})=>(0,s.jsx)(h.A,{enabled:!0,tooltipItems:i.map(i=>{const n=p[e];return(0,s.jsxs)(x.A,{flexDirection:"row",justifyContent:"space-between",alignItems:"center",gap:d.Ln,children:[(0,s.jsx)(o.A,{size:"small",children:(0,r.YF)(i.radio)}),n?(0,s.jsx)(x.A,{flexDirection:"row",children:(0,s.jsx)(n,{detail:i})}):null]})}),neverShowListMarkers:!0,iconProps:n})},356235(e,i,n){n.d(i,{A:()=>a});var t=n(274934),s=n(602086),o=n(599110),r=n(850352);const a=({mac:e,port:i,children:n})=>{const{handleGoToPortsPage:a}=(0,r.e)(),l=(0,s.useCallback)(n=>{n.stopPropagation(),a(e,+i)},[a,e,i]);return(0,t.jsx)(o.A,{type:"button",size:"inherit",variant:"inline",onClick:l,children:n})}},199133(e,i,n){n.d(i,{x:()=>s});var t=n(274934);const s=({mac:e,detailedStates:i,uplinkDisplayName:n,portNumber:s,uplinkMac:o,PortPowerLimitExceededWarning:r,UplinkNearPowerLimitWarning:a,DeviceNearPowerLimitWarning:l=null})=>{switch(!0){case i.port_power_limit_exceeded:return(0,t.jsx)(r,{uplinkDisplayName:n,portNumber:s,uplinkMac:o});case i.uplink_near_power_limit:return(0,t.jsx)(a,{uplinkMac:o,uplinkDisplayName:n});case i.device_near_power_limit:return l?(0,t.jsx)(l,{mac:e}):null;default:return null}}},734983(e,i,n){n.d(i,{A:()=>a});var t=n(274934),s=n(415537),o=n(470070),r=n(356235);const a=({uplinkMac:e,portNumber:i,uplinkDisplayName:n})=>(0,t.jsx)(o.sA,{id:"DEVICE_POE_PORT_OUT_OF_POWER",values:{portName:(0,t.jsx)(r.A,{mac:e,port:i,children:`${(0,s.c)(n)} ${(0,o.tz)().formatMessage({id:"COMMON_PORT"})} ${i}`})}})},902792(e,i,n){n.d(i,{A:()=>p,t:()=>h});var t=n(274934),s=n(602086),o=n(938984),r=n(265728),a=n(309130),l=n(320865),d=n(100978),c=n(470070),m=n(831433),A=n(223597);const h=({channel:e,radio:i,channel_width:n,channelColor:s,color:a,size:l})=>(0,t.jsxs)(d.A,{children:[(0,t.jsx)(o.A,{color:s||a,size:l,children:e})," ",(0,t.jsx)(o.A,{color:a,size:l,children:(0,r.i)((0,c.tz)().formatMessage,i,n)||(0,t.jsx)(c.sA,{id:"COMMON_FALLBACK"})})]}),x=({mlo_details:e,...i})=>{if(!e)return(0,t.jsx)(o.A,{...i,children:(0,t.jsx)(c.sA,{id:"COMMON_FALLBACK"})});const{radio:n,channel:s,channel_width:r}=(0,m.KT)(e);return(0,t.jsxs)(d.A,{flexDirection:"row",gap:a.YC,children:[(0,t.jsx)(h,{radio:n,channel:s,channel_width:+r,...i}),e?(0,t.jsx)(l.Ay,{report:l.ZF.CHANNEL_AND_WIDTH,mlo_details:e}):null]})},p=(0,s.memo)(({type:e,status:i,is_mlo:n,mlo_details:s,size:r="medium",color:a="inherit",channelColor:l,...d})=>e===A.sK.WIRELESS&&i===A.S2.ONLINE&&d.channel?n?(0,t.jsx)(x,{mlo_details:s,size:r,color:a,channelColor:l}):(0,t.jsx)(h,{size:r,color:a,channelColor:l,...d}):(0,t.jsx)(o.A,{size:r,color:a,children:(0,t.jsx)(c.sA,{id:"COMMON_FALLBACK"})}))},71045(e,i,n){n.d(i,{A:()=>x,S:()=>A});var t=n(274934),s=n(602086),o=n(938984),r=n(331472),a=n(309130),l=n(320865),d=n(100978),c=n(470070),m=n(831433);const A=({signal:e,size:i})=>e?(0,t.jsxs)(o.A,{size:i,color:(0,r.b5)(e),children:[e," ",(0,t.jsx)(c.sA,{id:"COMMON_UNIT_DBM"})]}):(0,t.jsx)(o.A,{size:i,color:"inherit",children:(0,t.jsx)(c.sA,{id:"COMMON_FALLBACK"})}),h=({mlo_details:e,size:i,iconProps:n})=>e?(0,t.jsxs)(d.A,{flexDirection:"row",gap:a.YC,alignItems:"center",children:[(0,t.jsx)(A,{signal:(0,m.KT)(e).signal||0,size:i}),(0,t.jsx)(l.Ay,{report:l.ZF.SIGNAL,mlo_details:e,iconProps:n})]}):(0,t.jsx)(o.A,{color:"inherit",size:i,children:(0,t.jsx)(c.sA,{id:"COMMON_FALLBACK"})}),x=(0,s.memo)(({is_mlo:e,signal:i,size:n="medium",mlo_details:s,iconProps:o})=>e?(0,t.jsx)(h,{size:n,mlo_details:s,iconProps:o}):(0,t.jsx)(A,{signal:i,size:n}))},761801(e,i,n){n.d(i,{A:()=>r});var t=n(274934),s=n(470070),o=n(581883);const r=({radio:e,suffix:i})=>o.U[e]?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.sA,{id:o.U[e]}),i?(0,t.jsxs)("span",{children:[" ",i]}):null]}):(0,t.jsx)(s.sA,{id:"COMMON_FALLBACK"})},61322(e,i,n){n.d(i,{I:()=>t});const t={HEADER_HEIGHT:32,ROW_HEIGHT:32,EDIT_FIELD_HEIGHT:36,getHeight(e,i,n,t){return Math.min((t||this.ROW_HEIGHT)*e+(n??this.HEADER_HEIGHT),(t||this.ROW_HEIGHT)*i+(n??this.HEADER_HEIGHT))},getEditContainerHeight(e,i,n){return Math.min((n||this.EDIT_FIELD_HEIGHT)*e,(n||this.EDIT_FIELD_HEIGHT)*i)}}},316628(e,i,n){n.d(i,{A:()=>a});var t=n(602086),s=n(977872),o=n(700444),r=n(159469);const a=()=>{const e=(0,s.wA)();return(0,t.useCallback)(i=>null!=i?navigator.clipboard.writeText(i.toString()).then(()=>{e((0,o.ox)({icon:r.C.success,message:"COMMON_COPIED_TO_CLIPBOARD",duration:1e3}))}):Promise.resolve(),[e])}},454384(e,i,n){n.d(i,{h:()=>t});const t=(e,i)=>(e<<16)+i},265728(e,i,n){n.d(i,{I:()=>o,i:()=>s});var t=n(293668);const s=(e,i,n)=>i||n?`(${[i?`${e({id:(0,t.dI)(i)})}`:null,n?`${n} ${e({id:"COMMON_UNIT_MHZ"})}`:null].filter(Boolean).join(", ")})`:"",o=(e,i,n,t)=>`${e} ${s(i,n,t)}`}}]);