"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[99349],{537417(e,t,i){i.d(t,{A:()=>s});var n=i(938984);const s=(0,i(247816).A)(n.A)`
  white-space: nowrap;
`},620627(e,t,i){i.d(t,{A:()=>m});var n=i(274934),s=i(938984),r=i(247816),o=i(309130),d=i(100978),l=i(535322);const a=(0,r.A)("div")`
  margin-right: ${o.kc};
`,c=(0,r.A)("div")`
  margin-left: ${o.kc};
`,m=({icon:e,closeIcon:t,nested:i,children:r,...o})=>(0,n.jsx)(l.A,{nested:i,...o,children:(0,n.jsxs)(d.A,{children:[(0,n.jsx)(a,{children:e}),(0,n.jsx)(s.A,{size:"medium",children:r}),t?(0,n.jsx)(c,{children:t}):null]})})},535322(e,t,i){i.d(t,{A:()=>u,I:()=>n});var n,s=i(274934),r=i(814557),o=i(158885),d=i(247816),l=i(565527),a=i(309130),c=i(100978),m=i(291508);!function(e){e.ACCORDION="accordion",e.BUTTON_LIST="buttonList"}(n||(n={}));const A=(0,d.A)(c.A,(0,m.A)("marginBottom","isButtonList","margin","flex","width","padding","nested","background"))`
  background-color: ${({background:e,nested:t,theme:{themeName:i}})=>e||r.Ay[i===l.S.DARK?`desktop-color-neutral-${t?"00":"01"}-${l.S.DARK}`:`desktop-color-neutral-${t?"01":"00"}-${l.S.LIGHT}`]};
  padding: ${({isButtonList:e,padding:t})=>t||(e?`0 ${a.Ln}`:a.Ln)};
  margin-bottom: ${({marginBottom:e})=>e||a.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}})=>r.Ay[`desktop-border-divider-${e}`]};\n      &:last-child {\n        border-bottom: none;\n      }\n    }\n  `:""}
`,x=(0,d.A)(o.A,(0,m.A)("marginBottom","margin","flex","padding","nested","background"))`
  background-color: ${({background:e,nested:t,theme:{themeName:i}})=>e||r.Ay[i===l.S.DARK?`desktop-color-neutral-${t?"00":"01"}-${l.S.DARK}`:`desktop-color-neutral-${t?"01":"00"}-${l.S.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===l.S.DARK?`desktop-color-neutral-01-${l.S.DARK}`:`desktop-color-neutral-00-${l.S.LIGHT}`]};
      height: 48px;
      padding: 0 ${a.Ln};
    }
    > div:nth-child(2) {
      margin-bottom: 0;
      padding: 0;
      > div {
        padding: 0 ${a.Ln} ${a.Ln};
      }
    }
  }
`,u=({type:e,marginBottom:t,margin:i,padding:r,flex:o,width:d,nested:l,...a})=>"items"in a?(0,s.jsx)(x,{marginBottom:t,margin:i,padding:r,flex:o,nested:l,...a}):(0,s.jsx)(A,{nested:l,width:d,marginBottom:t,margin:i,padding:r,flex:o,isButtonList:e===n.BUTTON_LIST,...a,children:a.children})},174710(e,t,i){i.d(t,{A:()=>o});var n=i(274934),s=i(304151),r=i(158498);const o=function({items:e,getItemKey:t,renderItem:i,maxItemCount:o,renderShowMore:d,showListMarkers:l,title:a,position:c,isInteractive:m,cursorType:A,listGap:x,iconProps:u}){return(0,n.jsx)(s.A,{title:a,position:c,isInteractive:m,cursorType:A,description:(0,n.jsx)(r.A,{items:e,getItemKey:t,renderItem:i,maxItemCount:o,listGap:x,renderShowMore:d,showListMarkers:l}),iconProps:u})}},986993(e,t,i){i.d(t,{A:()=>a});var n=i(274934),s=i(95032),r=i(470070),o=i(421314),d=i(300626),l=i(174710);const a=function({items:e,renderMultipleItemsSummary:t,renderListItem:i,renderNoItems:a,getItemKey:c,enabled:m=!0,showListMarkers:A,cursorType:x,isInteractive:u}){const h=m?"inherit":"disabled";return e.length>1?(0,n.jsx)(d.A,{tooltip:(0,n.jsx)(l.A,{items:e,getItemKey:c,renderItem:i,showListMarkers:A,isInteractive:u,cursorType:x}),children:(0,n.jsx)(o.A,{color:h,cursorType:x,children:t(e)})}):1===e.length?(0,n.jsx)(o.A,{color:h,cursorType:x,children:i(e[0])}):a?(0,n.jsx)(n.Fragment,{children:a()}):(0,n.jsx)(s.A,{isTruncated:!0,color:h,children:(0,n.jsx)(r.sA,{id:"COMMON_FALLBACK"})})}},300626(e,t,i){i.d(t,{A:()=>o});var n=i(274934),s=i(309130),r=i(100978);const o=({children:e,tooltip:t})=>(0,n.jsxs)(r.A,{maxWidth:"100%",overflow:"hidden",gap:s.YC,alignItems:"center",children:[e?(0,n.jsx)(r.A,{flex:1,overflow:"hidden",children:e}):null,t]})},748094(e,t,i){i.d(t,{A:()=>p});var n=i(274934),s=i(814557),r=i(602086),o=i(599110),d=i(938984),l=i(853777),a=i(600191),c=i(847399),m=i(263705),A=i(613842),x=i(470070),u=i(620627),h=i(100978);const p=(0,r.memo)(({children:e,customIcon:t,link:i,nested:p,extra:j,variant:g="warning",..._})=>{const{themeName:v}=(0,m.u)(),I=(0,r.useMemo)(()=>{switch(g){case"warning":return(0,n.jsx)(a.A,{size:"original",color:s.Ay[`desktop-color-orange-06-${v}`],variant:"fill"});case"info":return(0,n.jsx)(l.A,{isActive:!0,size:"original",variant:"fill"});case"custom":return t;default:return(0,n.jsx)(c.A,{size:"medium",color:s.Ay[`desktop-color-red-06-${v}`],variant:"fill"})}},[g,v,t]),C=(0,r.useCallback)(()=>{A.A.open(i)},[i]);return(0,n.jsx)(u.A,{icon:I,nested:p,..._,children:(0,n.jsxs)(h.A,{flexDirection:"column",alignItems:"flex-start",children:[(0,n.jsx)(d.A,{children:e}),(0,n.jsx)(d.A,{children:i?(0,n.jsx)(o.A,{type:"button",variant:"inline",onClick:C,children:(0,n.jsx)(x.sA,{id:"COMMON_LEARN_MORE"})}):null}),j]})})})},906701(e,t,i){i.d(t,{A:()=>p});var n=i(274934),s=i(602086),r=i(840704),o=i(938984),d=i(640708),l=i(195689),a=i(470070),c=i(421314),m=i(986993),A=i(100978);const x=({ipv6:e,size:t="inherit",color:i="inherit"})=>{const s=e?.[0];return s?(0,n.jsxs)(A.A,{width:"100%",justifyContent:"flex-end",children:[(0,n.jsx)(c.A,{flexProps:{justifyContent:"flex-end",alignItems:"center"},color:i,size:t,children:s}),e?.length>1?(0,n.jsx)(m.A,{items:e,isInteractive:!0,showListMarkers:!1,getItemKey:e=>e,renderListItem:e=>(0,n.jsx)(n.Fragment,{children:e}),renderMultipleItemsSummary:()=>null}):null]}):(0,n.jsx)(o.A,{size:t,color:i,children:(0,n.jsx)(a.sA,{id:"COMMON_FALLBACK"})})};var u=i(635187),h=i(664092);const p=(0,s.memo)(({ipv6_address:e=[],wan_dhcpv6_pd_size:t})=>{const{globalAddresses:i,linkLocalAddress:c}=(0,s.useMemo)(()=>{const t=[];let i=null;for(let n=0;n<e.length;n+=1){const s=e[n];new r.Address6(s).isLinkLocal()?i=s?.split(u.Ed)?.[0]:t.push(s.split(u.Ed)?.[0])}return{globalAddresses:t,linkLocalAddress:i}},[e]);return i.length?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(h.A,{children:[(0,n.jsx)(o.A,{color:"text-2",size:"medium",children:(0,n.jsx)(a.sA,{id:"COMMON_IPV6_ADDRESS"})}),(0,n.jsx)(l.A,{ipv6:i,size:"medium",color:"text-3"})]}),t?(0,n.jsxs)(h.A,{children:[(0,n.jsx)(o.A,{color:"text-2",size:"medium",children:(0,n.jsx)(a.sA,{id:"COMMON_IPV6_PREFIX"})}),(0,n.jsx)(A.A,{flex:"1",minWidth:"0",justifyContent:"flex-end",children:(0,n.jsx)(x,{ipv6:[`${(0,d.Gh)(i[0],t)}/${t}`],color:"text-3",size:"medium"})})]}):null,c?(0,n.jsxs)(h.A,{children:[(0,n.jsx)(o.A,{color:"text-2",size:"medium",children:(0,n.jsx)(a.sA,{id:"COMMON_IPV6_LINK_LOCAL"})}),(0,n.jsx)(l.A,{ipv6:[c],size:"medium",color:"text-3"})]}):null]}):null})},216082(e,t,i){i.d(t,{A:()=>_});var n,s=i(274934),r=i(954702),o=i(602086),d=i(977872),l=i(938984),a=i(976458),c=i(470070),m=i(535322),A=i(376892),x=i(222102);!function(e){e.OPEN_MODAL="openModal"}(n||(n={}));const u=(0,x.Mz)(a.zn,e=>void 0!==e[n.OPEN_MODAL]);var h=i(828373),p=i(367821);const j=({uidbDevice:e})=>{const t=(0,d.d4)(a.zn),i=t?.[n.OPEN_MODAL];return i?(0,s.jsx)(r.A,{onClick:()=>i(e),children:(0,s.jsx)(l.A,{size:"medium",color:"inherit",children:(0,s.jsx)(c.sA,{id:"DEVICE_SHOW_DETAILS"})})}):null},g=({shortname:e})=>{(0,p.A)();const t=(0,d.d4)((0,o.useMemo)(()=>(0,h.$E)(e),[e]));return t?.compliance?(0,s.jsx)(m.A,{type:m.I.ACCORDION,items:[{id:"compliance",label:(0,s.jsx)(A.A,{id:"COMMON_COMPLIANCE"}),renderContent:()=>(0,s.jsx)(j,{uidbDevice:t}),openByDefault:!0}]}):null},_=({shortname:e})=>(0,d.d4)(u)?(0,s.jsx)(g,{shortname:e}):null},260449(e,t,i){i.d(t,{A:()=>h});var n=i(274934),s=i(814557),r=i(602086),o=i(938984),d=i(600191),l=i(263705),a=i(309130),c=i(620627),m=i(793442),A=i(100978),x=i(470070),u=i(726831);const h=(0,r.memo)(({children:e})=>{const{themeName:t}=(0,l.u)();return(0,n.jsx)(c.A,{icon:(0,n.jsx)(d.A,{size:"original",color:s.Ay[`desktop-color-orange-06-${t}`],variant:"fill"}),children:(0,n.jsxs)(A.A,{flexDirection:"column",gap:a.kc,children:[(0,n.jsx)(o.A,{size:"medium",color:"text-2",children:(0,n.jsx)(x.sA,{id:"COMMON_DEVICE_OFFLINE_WARNING",values:{b:x.b,link:(0,n.jsx)(m.A,{href:u.A.offlineArticle,id:"COMMON_LEARN_MORE",noWrap:!0})}})}),e]})})})},698950(e,t,i){i.d(t,{A:()=>u});var n=i(274934),s=i(247816),r=i(409844),o=i(291508),d=i(470070),l=i(309130),a=i(100978),c=i(537417);const m=(0,s.A)(a.A,(0,o.A)("alignLeft"))`
  ${({alignLeft:e})=>e?"max-width: 288px;":"max-width: 100%; justify-content: center;"}
  gap: ${l.YC};
  align-items: center;
`,A=r.AH`
  max-width: 50%;
`,x=r.AH`
  flex: 0 1 auto;
  min-width: 0;
`,u=({messageId:e,messageValues:t,buttonEl:i,alignLeft:s=!0,color:r="text-3",variant:o="body-primary"})=>(0,n.jsxs)(m,{alignLeft:s,children:[(0,n.jsx)(c.A,{variant:o,color:r,children:t?(0,n.jsx)(a.A,{maxWidth:288,whiteSpace:"nowrap",paddingRight:l.YC,children:(0,n.jsx)(d.sA,{id:e,values:t})}):(0,n.jsx)(d.sA,{id:e})}),i?(0,n.jsx)(a.A,{className:s?x:A,children:i}):null]})},488287(e,t,i){i.d(t,{A:()=>_});var n=i(274934),s=i(977872),r=i(602086),o=i(938984),d=i(590979),l=i(898809),a=i(309130),c=i(100978),m=i(449339),A=i(785068),x=i(205521),u=i(470070),h=i(754924),p=i(119425),j=i(698950),g=i(208583);const _=({last_uplink_mac:e,last_uplink_name:t,last_uplink_remote_port:i,disconnected_at:_,disabled:v,separatePortNumber:I,maxWidth:C})=>{const{formatMessage:O}=(0,u.tz)(),N=(0,s.wA)(),E=(0,s.d4)(h.CC),b=(0,g.Z)(e,E),f=(0,g.z)(t,i,b,O,I),M=(0,r.useCallback)(()=>{v||N((0,x.XP)({type:m.H.DEVICE,id:e}))},[v,N,e]);return(0,n.jsxs)(n.Fragment,{children:[b?(0,n.jsx)(j.A,{messageId:"COMMON_DEVICE_LAST_CONNECTED_TO",messageValues:{deviceWithPort:(0,n.jsx)(c.A,{width:"100%",overflow:"hidden",paddingLeft:a.YC,children:(0,n.jsx)(A.A,{onClick:M,disabled:v,...d.A.addDataTestId(d.A.TestId.SIDE_PANEL_TRIGGER),name:f,port:i,separatePortNumber:I,maxWidth:C})})}}):null,_?(0,n.jsx)("div",{children:(0,n.jsx)(o.A,{color:"text-3",children:(0,n.jsx)(p.A,{date:(0,l.gH)(_)})})}):null]})}},208583(e,t,i){i.d(t,{Z:()=>s,z:()=>r});var n=i(347625);const s=(e,t)=>e?t.find(({mac:t})=>t===e):void 0,r=(e,t,i,s,r)=>{const o=!r&&t?` ${s({id:"DEVICE_PROPERTIES_PORT_WITH_NUMBER"},{port:t})}`:"";return e?`${e}${o}`:i?`${(0,n.Q)(i)}${o}`:s({id:"COMMON_FALLBACK"})}},783706(e,t,i){i.d(t,{A:()=>l});var n=i(274934),s=i(205240),r=i(956978),o=i(698950),d=i(949283);const l=({type:e,name:t,mac:i,uplink:l,state:a,model:c,disabled:m,alignLeft:A})=>(0,d.n)(a,l)?(0,n.jsx)(o.A,{messageId:(0,r.E4T)({model:c})?"COMMON_CONNECTED_TO":"DEVICE_MESHING_TO",alignLeft:A,buttonEl:(0,n.jsx)(s.E,{device:{type:e,name:t,mac:i,uplink:l},size:"medium",disabled:m})}):null},949283(e,t,i){i.d(t,{n:()=>d});var n=i(977872),s=i(45978),r=i(754924),o=i(313369);const d=(e,t)=>{const i=(0,n.d4)(r.CC),d=t.uplink_mac?i.find(({mac:e})=>e===t.uplink_mac):void 0,l=Boolean(t.signal);return o.q[e]===s.g.CONNECTED&&d&&l?d:void 0}},214246(e,t,i){i.d(t,{A:()=>x});var n=i(274934),s=i(938984),r=i(664092),o=i(893762),d=i(664613),l=i(643334),a=i(906701),c=i(535322),m=i(470070),A=i(303008);const x=({displayable_version:e,uptime:t,sys_stats:i,ip:x,ipv6:u,mac:h,name:p,model:j,type:g,deviceState:_,imei:v})=>(0,n.jsxs)(c.A,{children:[(0,n.jsx)(l.A,{name:p,model:j,mac:h,type:g,displayable_version:e,uptime:t,deviceState:_}),(0,n.jsx)(o.A,{uptime:t}),(0,n.jsx)(d.A,{sys_stats:i}),x?(0,n.jsxs)(r.A,{children:[(0,n.jsx)(s.A,{color:"text-2",children:(0,n.jsx)(m.sA,{id:"COMMON_IP"})}),(0,n.jsx)(s.A,{color:"text-3",children:x})]}):null,u?(0,n.jsx)(a.A,{ipv6_address:u}):null,h?(0,n.jsxs)(r.A,{children:[(0,n.jsx)(s.A,{color:"text-2",children:(0,n.jsx)(m.sA,{id:"COMMON_MAC"})}),(0,n.jsx)(s.A,{color:"text-3",children:h})]}):null,v?(0,n.jsx)(A.A,{imei:v}):null]})},369187(e,t,i){i.d(t,{A:()=>u});var n=i(274934),s=i(977872),r=i(938984),o=i(878151),d=i(664092),l=i(631692),a=i(205240),c=i(100978),m=i(470070),A=i(853109),x=i(754924);const u=({activeItem:{uplink:{rx_bytes:e,"rx_bytes-r":t,rx_packets:i,speed:u,tx_bytes:h,"tx_bytes-r":p,tx_packets:j}={}},activeItem:g,deviceIsUltePro:_})=>{const v=(0,s.d4)(x.ID);return(0,n.jsxs)(c.A,{flexDirection:"column",children:[(0,n.jsxs)(d.A,{children:[(0,n.jsx)(r.A,{size:"medium",children:(0,n.jsx)(m.sA,{id:"COMMON_DEVICE"})}),(0,n.jsx)(a.E,{device:g,maxWidth:200,separatePortNumber:!0})]}),(0,n.jsx)(l.A,{portSpeed:u}),_?(0,n.jsxs)(d.A,{children:[(0,n.jsx)(r.A,{size:"medium",children:(0,n.jsx)(m.sA,{id:"DEVICE_PROPERTY_UPLINK_POWER"})}),(0,n.jsx)(r.A,{color:"text-3",size:"medium",children:(0,n.jsx)(m.sA,{id:"COMMON_UNIT_WATTS_SHORT",values:{value:(0,A.$Y)({device:g,devices:v})?.poe_power||0}})})]}):null,(0,n.jsxs)(d.A,{children:[(0,n.jsx)(r.A,{size:"medium",children:(0,n.jsx)(m.sA,{id:"COMMON_ACTIVITY_DOWN_PKTS_BYTES"})}),(0,n.jsxs)(r.A,{color:"text-3",size:"medium",children:[i?i.toLocaleString():null,"/",(0,n.jsx)(o.A,{type:"bytes",input:e,size:"body",color:"tertiary"})]})]}),(0,n.jsxs)(d.A,{children:[(0,n.jsx)(r.A,{size:"medium",children:(0,n.jsx)(m.sA,{id:"COMMON_ACTIVITY_UP_PKTS_BYTES"})}),(0,n.jsxs)(r.A,{color:"text-3",size:"medium",children:[j?j.toLocaleString():null,"/",(0,n.jsx)(o.A,{type:"bytes",input:h,size:"body",color:"tertiary"})]})]}),_?(0,n.jsxs)(d.A,{children:[(0,n.jsx)(r.A,{size:"medium",children:(0,n.jsx)(m.sA,{id:"COMMON_ACTIVITY"})}),(0,n.jsx)(o.A,{type:"bytes",input:t+p,options:"bitrate",size:"body",color:"tertiary"})]}):null]})}},664613(e,t,i){i.d(t,{A:()=>m});var n=i(274934),s=i(938984),r=i(703639),o=i(309130),d=i(100978),l=i(470070),a=i(956978),c=i(664092);const m=({sys_stats:e,flexProps:t,withTooltip:i,compact:m=!1})=>{const A=(0,a.eiG)(e);return A?(0,n.jsxs)(c.A,{flexProps:t,compact:m,children:[(0,n.jsx)(s.A,{color:"text-2",size:"medium",children:(0,n.jsx)(l.sA,{id:"COMMON_LOAD_AVERAGE"})}),i?(0,n.jsxs)(d.A,{alignItems:"center",gap:o.YC,children:[(0,n.jsx)(s.A,{color:"text-3",size:"medium",children:A}),(0,n.jsx)(r.A,{description:(0,n.jsx)(l.sA,{id:"DEVICE_PROPERTY_OVERVIEW_LOAD_AVERAGE_TOOLTIP"}),placement:"top start"})]}):(0,n.jsx)(s.A,{color:"text-3",size:"medium",children:A})]}):null}},893762(e,t,i){i.d(t,{A:()=>l});var n=i(274934),s=i(938984),r=i(898809),o=i(470070),d=i(664092);const l=({uptime:e,compact:t=!1})=>e>0?(0,n.jsxs)(d.A,{compact:t,children:[(0,n.jsx)(s.A,{color:"text-2",size:"medium",children:(0,n.jsx)(o.sA,{id:"COMMON_UPTIME"})}),(0,n.jsx)(s.A,{color:"text-3",size:"medium",children:(0,r.Ay)(e)})]}):null},631692(e,t,i){i.d(t,{A:()=>x});var n=i(274934),s=i(43009),r=i(938984),o=i(247816),d=i(442175),l=i(100978),a=i(470070),c=i(664092),m=i(128066);const A=(0,o.A)(l.A)`
  .tooltip-position-fixer {
    margin-right: -14px;
  }
`,x=({uplink:e,portSpeed:t})=>{const i=Number(t||e?.speed),{motif:o}=(0,s.A)();return i>0?(0,n.jsxs)(c.A,{children:[(0,n.jsx)(r.A,{color:"text-2",size:"medium",children:(0,n.jsx)(a.sA,{id:"COMMON_EXPERIENCE"})}),(0,n.jsx)(A,{alignItems:"center",children:(0,n.jsx)(r.A,{style:{color:(0,m.xe)(i,o,!1)},size:"medium",children:(0,d.ir)(i)})})]}):null}},664092(e,t,i){i.d(t,{A:()=>a});var n=i(274934),s=i(247816),r=i(309130),o=i(100978),d=i(291508);const l=(0,s.A)(o.A,(0,d.A)("valueMaxWidth","keyMinWidth","compact"))`
  &: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;
    }
  }
`,a=({children:e,valueMaxWidth:t=215,keyMinWidth:i=0,flexProps:s={},compact:o=!1})=>(0,n.jsx)(l,{width:"100%",justifyContent:"space-between",gap:r.kc,height:o?void 0:24,valueMaxWidth:t,keyMinWidth:i,compact:o,...s,children:e})},451336(e,t,i){i.d(t,{A:()=>c});var n=i(274934),s=i(783706),r=i(562896),o=i(488287),d=i(205240),l=i(698950);const a=({type:e,name:t,mac:i,uplink:s,disabled:r,maxWidth:o,peer_ubb:a,deviceState:c,ubb_pairing_state:m})=>(0,n.jsx)(l.A,{messageId:"COMMON_CONNECTED_TO",buttonEl:(0,n.jsx)(d.E,{device:{type:e,name:t,mac:i,uplink:s,peer_ubb:a,deviceState:c,ubb_pairing_state:m},maxWidth:o,disabled:r,separatePortNumber:!0})}),c=({connectionStatus:e,activeItem:{type:t,last_uplink:i,uplink:d,state:l,name:c,mac:m,model:A,disconnected_at:x,peer_ubb:u,deviceState:h,ubb_pairing_state:p},disabled:j,uplinkNameMaxWidth:g=195})=>{switch(e){case r.v.OFFLINE:return(0,n.jsx)(o.A,{last_uplink_mac:i?.uplink_mac,last_uplink_name:i?.uplink_device_name,last_uplink_remote_port:i?.uplink_remote_port,disconnected_at:x,disabled:j,separatePortNumber:!0,maxWidth:g});case r.v.MESHING:return(0,n.jsx)(s.A,{type:t,name:c,model:A,mac:m,uplink:d,state:l,disabled:j});case r.v.CONNECTED:return(0,n.jsx)(a,{type:t,name:c,mac:m,uplink:d,disabled:j,maxWidth:g,peer_ubb:u,deviceState:h,ubb_pairing_state:p});default:return null}}},249295(e,t,i){i.d(t,{A:()=>j});var n=i(274934),s=i(977872),r=i(135469),o=i(95032),d=i(247816),l=i(409844),a=i(347625),c=i(890932),m=i(309130),A=i(100978),x=i(974390);const u=l.AH`
  margin-bottom: ${m.Ln};
  margin-top: ${m.Ln};
`,h=(0,d.A)("div")`
  align-self: center;
  overflow: hidden;
  word-break: break-word;
`,p=(0,d.A)("img")`
  width: 40px;
  height: 40px;
  object-fit: contain;
`,j=({children:e,description:t,meshingDescription:i,isOffline:d,activeItem:j,style:g,className:_,isStacking:v,badge:I})=>{const C=(0,s.d4)(c.p);return(0,n.jsx)(r.A,{className:(0,l.cx)(u,_),sections:[(0,n.jsxs)("div",{children:[(0,n.jsxs)(A.A,{gap:m.kc,children:[v?(0,n.jsx)(p,{src:`${C}/topology/stacking.png`,alt:"stacked"}):(0,n.jsx)(x.A,{model:j.model,width:40,height:40}),(0,n.jsxs)(h,{style:g,children:[(0,n.jsxs)(o.A,{color:d?"text-3":"text-1",weight:"bold",isTruncated:!0,children:[(0,a.Lm)(j.model),I]}),t]})]}),i,e]})]})}},458619(e,t,i){i.d(t,{A:()=>m});var n=i(274934),s=i(938984),r=i(365236),o=i(309130),d=i(436890),l=i(648576),a=i(470070),c=i(643022);const m=({device:e,inline:t,...i})=>{const{onUpgradeDevice:m,showButton:A,isPending:x,hasFlashStorageWarning:u,deviceName:h,fromVersion:p,toVersion:j}=(0,r.S)(e);if(!A)return null;const g=(0,n.jsx)(c.A,{fromVersion:e.displayable_version,toVersion:e.upgrade_to_firmware,model:e.model,children:(0,n.jsx)(l.Ay,{variant:t?"inline":"primary",disabled:x,children:(0,n.jsx)(s.A,{size:"medium",weight:"inherit",color:"inherit",...i,children:(0,n.jsx)(a.sA,{id:"COMMON_ACTION_UPDATE"})})})});return(0,n.jsx)("div",{style:{marginTop:t?0:o.kc},children:(0,n.jsx)(d.A,{hasFlashStorageWarning:u,deviceName:h,fromVersion:p,toVersion:j,onConfirm:m,trigger:(0,n.jsx)("div",{children:g})})})}},83597(e,t,i){i.d(t,{A:()=>h});var n=i(274934),s=i(434521),r=i(45978),o=i(938984),d=i(247816),l=i(309130),a=i(100978),c=i(470070),m=i(609040);const A=(0,d.A)("div")`
  margin-top: ${l.kc};
`,x=({type:e,model:t,mac:i,rollupgrade:s})=>(0,n.jsxs)(A,{children:[(0,n.jsx)(m.A,{type:e,model:t,mac:i,rollupgrade:s,size:"large",maxWidth:"100%"}),(0,n.jsx)(a.A,{justifyContent:"center",width:"100%",children:(0,n.jsxs)(o.A,{variant:"body-primary",children:[(0,n.jsx)(c.sA,{id:"COMMON_UPDATING"}),"..."]})})]});var u=i(458619);const h=({activeItem:e})=>(0,n.jsxs)(n.Fragment,{children:[e.deviceState===r.g.UPGRADING||e.deviceState===r.g.CONNECTED&&e.rollupgrade?(0,n.jsx)(x,{type:e.type,model:e.model,mac:e.mac,rollupgrade:e.rollupgrade}):null,(0,s.g8)(e)?(0,n.jsx)(u.A,{device:e}):null]})},562896(e,t,i){var n;i.d(t,{v:()=>n}),function(e){e.OFFLINE="offline",e.MESHING="meshing",e.CONNECTED_INTERRUPTED="connected-interrupted",e.CONNECTED="connected"}(n||(n={}))},159911(e,t,i){i.d(t,{H:()=>o});var n=i(956978),s=i(857780),r=i(562896);const o=(e,t)=>(0,n.aK8)(e)?r.v.OFFLINE:t===s.au.WIRELESS?r.v.MESHING:r.v.CONNECTED},643022(e,t,i){i.d(t,{A:()=>m});var n=i(274934),s=i(602086),r=i(87449),o=i(977872),d=i(599110),l=i(125799),a=i(470070),c=i(976458);const m=({model:e,fromVersion:t,toVersion:i,children:m})=>{const A=(0,o.d4)(c.qf),x=(0,r.coerce)(i)?.version||i,u=(0,s.useCallback)(()=>{x&&A?.(e,x)},[A,e,x]);return(0,n.jsx)(l.A,{isInteractive:!0,portal:!0,description:x&&i?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{children:(0,n.jsx)(a.sA,{id:"COMMON_FROM_TO",values:{from:t,to:x,strong:a.ko}})}),void 0!==A?(0,n.jsx)(d.A,{variant:"inline",onClick:u,children:(0,n.jsx)(a.sA,{id:"COMMON_RELEASE_NOTES"})}):null]}):null,children:m})}},872926(e,t,i){i.d(t,{A:()=>A});var n=i(274934),s=i(977872),r=i(810024),o=i(589650),d=i(748094),l=i(470070),a=i(754924),c=i(726831);const m=({adopted:e})=>(0,n.jsx)(d.A,{link:c.A.virtualNetworkConnectivity,children:(0,n.jsx)(l.sA,{id:e?"DEVICE_FALLBACK_IP_ADOPTED_WITH_UNIFI_GATEWAY_WARNING":"DEVICE_FALLBACK_IP_NOT_ADOPTED_WARNING",values:{bold:(0,n.jsx)("strong",{children:(0,n.jsx)(l.sA,{id:e?"DEVICE_WARNING_FALLBACK_IP":"DEVICE_WARNING_ADOPTION_FAILED"})})}})}),A=({ip:e,adopted:t,config_network:i})=>(0,s.d4)(a.m9)&&(0,r.W5)(e)&&i?.type===o.NL.DHCP?(0,n.jsx)(m,{adopted:t}):null},195689(e,t,i){i.d(t,{A:()=>u});var n=i(274934),s=i(602086),r=i(938984),o=i(688684),d=i(640708),l=i(421314),a=i(986993),c=i(100978),m=i(635187),A=i(316628),x=i(470070);const u=({ipv6:e=[],enabled:t=!0,size:i="inherit",color:u="inherit",showOnlyPrefix:h=!1,hideCopyIcon:p=!1})=>{const j=(0,A.A)(),g=(0,s.useCallback)((e,t)=>{t.stopPropagation(),t.preventDefault(),j(e)},[j]),_=(0,s.useMemo)(()=>(e=>{const t=e=>(0,d.G8)(e)?0:(0,d.ZV)(e)?1:2;return e.sort((e,i)=>t(e)-t(i))})(e||[]).map(e=>{const[t,i]=e.split(m.Ed);return h?`${(0,d.Gh)(t,Number(i))}/${i}`:(0,d.z2)(e)}),[e,h]),v=_?.[0];return v?(0,n.jsxs)(c.A,{maxWidth:"100%",justifyContent:"flex-end",children:[(0,n.jsx)(l.A,{enabled:t,flexProps:{justifyContent:"flex-end",alignItems:"center"},color:t?u:"disabled",size:i,children:v}),_?.length>1?(0,n.jsx)(a.A,{items:_,isInteractive:!0,showListMarkers:!1,getItemKey:e=>e,renderListItem:e=>(0,n.jsxs)(n.Fragment,{children:[e,(0,n.jsx)(o.A,{size:"original",actionable:!0,onClick:t=>{g(e,t)}})]}),renderMultipleItemsSummary:()=>null}):p?null:(0,n.jsx)(o.A,{size:"original",actionable:!0,onClick:e=>{g(v,e)}})]}):(0,n.jsx)(r.A,{size:i,color:t?u:"disabled",children:(0,n.jsx)(x.sA,{id:"COMMON_FALLBACK"})})}},316628(e,t,i){i.d(t,{A:()=>d});var n=i(602086),s=i(977872),r=i(700444),o=i(159469);const d=()=>{const e=(0,s.wA)();return(0,n.useCallback)(t=>null!=t?navigator.clipboard.writeText(t.toString()).then(()=>{e((0,r.ox)({icon:o.C.success,message:"COMMON_COPIED_TO_CLIPBOARD",duration:1e3}))}):Promise.resolve(),[e])}},367821(e,t,i){i.d(t,{A:()=>l});var n=i(602086),s=i(977872),r=i(726831),o=i(575478),d=i(828373);const l=()=>{const e=(0,s.wA)(),t=(0,s.d4)(d.eo);return(0,n.useEffect)(()=>{t||(async()=>{const t=await fetch(r.A.fingerprintPublicDatabasePath),i=await t.json();e((0,o.$)(i))})()},[t,e]),t}},828373(e,t,i){i.d(t,{$E:()=>c,eo:()=>l});var n=i(222102),s=i(271656),r=i(720770),o=i(172205);const d=e=>e[o.U.UIDB]||(0,s.A)(),l=(0,n.Mz)(d,({version:e})=>Boolean(e)),a=(0,n.Mz)(d,({devices:e})=>e||(0,r.A)()),c=e=>(0,n.Mz)(a,t=>t.find(({shortnames:t})=>e&&(t||[]).includes(e))||(0,s.A)());(0,n.Mz)(a,e=>{const t=new Map;for(let i=0;i<e.length;i+=1){const n=e[i].power?.baseConsumption;if(void 0!==n){const{shortnames:s}=e[i];for(let e=0;e<(s||[]).length;e+=1)t.set(s[e],n)}}return t})}}]);