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