"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[13972],{174710(e,t,s){s.d(t,{A:()=>o});var i=s(274934),r=s(304151),n=s(158498);const o=function({items:e,getItemKey:t,renderItem:s,maxItemCount:o,renderShowMore:l,showListMarkers:d,title:c,position:a,isInteractive:m,cursorType:x,listGap:u,iconProps:A}){return(0,i.jsx)(r.A,{title:c,position:a,isInteractive:m,cursorType:x,description:(0,i.jsx)(n.A,{items:e,getItemKey:t,renderItem:s,maxItemCount:o,listGap:u,renderShowMore:l,showListMarkers:d}),iconProps:A})}},986993(e,t,s){s.d(t,{A:()=>c});var i=s(274934),r=s(95032),n=s(470070),o=s(421314),l=s(300626),d=s(174710);const c=function({items:e,renderMultipleItemsSummary:t,renderListItem:s,renderNoItems:c,getItemKey:a,enabled:m=!0,showListMarkers:x,cursorType:u,isInteractive:A}){const p=m?"inherit":"disabled";return e.length>1?(0,i.jsx)(l.A,{tooltip:(0,i.jsx)(d.A,{items:e,getItemKey:a,renderItem:s,showListMarkers:x,isInteractive:A,cursorType:u}),children:(0,i.jsx)(o.A,{color:p,cursorType:u,children:t(e)})}):1===e.length?(0,i.jsx)(o.A,{color:p,cursorType:u,children:s(e[0])}):c?(0,i.jsx)(i.Fragment,{children:c()}):(0,i.jsx)(r.A,{isTruncated:!0,color:p,children:(0,i.jsx)(n.sA,{id:"COMMON_FALLBACK"})})}},300626(e,t,s){s.d(t,{A:()=>o});var i=s(274934),r=s(309130),n=s(100978);const o=({children:e,tooltip:t})=>(0,i.jsxs)(n.A,{maxWidth:"100%",overflow:"hidden",gap:r.YC,alignItems:"center",children:[e?(0,i.jsx)(n.A,{flex:1,overflow:"hidden",children:e}):null,t]})},906701(e,t,s){s.d(t,{A:()=>h});var i=s(274934),r=s(602086),n=s(840704),o=s(938984),l=s(640708),d=s(195689),c=s(470070),a=s(421314),m=s(986993),x=s(100978);const u=({ipv6:e,size:t="inherit",color:s="inherit"})=>{const r=e?.[0];return r?(0,i.jsxs)(x.A,{width:"100%",justifyContent:"flex-end",children:[(0,i.jsx)(a.A,{flexProps:{justifyContent:"flex-end",alignItems:"center"},color:s,size:t,children:r}),e?.length>1?(0,i.jsx)(m.A,{items:e,isInteractive:!0,showListMarkers:!1,getItemKey:e=>e,renderListItem:e=>(0,i.jsx)(i.Fragment,{children:e}),renderMultipleItemsSummary:()=>null}):null]}):(0,i.jsx)(o.A,{size:t,color:s,children:(0,i.jsx)(c.sA,{id:"COMMON_FALLBACK"})})};var A=s(635187),p=s(664092);const h=(0,r.memo)(({ipv6_address:e=[],wan_dhcpv6_pd_size:t})=>{const{globalAddresses:s,linkLocalAddress:a}=(0,r.useMemo)(()=>{const t=[];let s=null;for(let i=0;i<e.length;i+=1){const r=e[i];new n.Address6(r).isLinkLocal()?s=r?.split(A.Ed)?.[0]:t.push(r.split(A.Ed)?.[0])}return{globalAddresses:t,linkLocalAddress:s}},[e]);return s.length?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(p.A,{children:[(0,i.jsx)(o.A,{color:"text-2",size:"medium",children:(0,i.jsx)(c.sA,{id:"COMMON_IPV6_ADDRESS"})}),(0,i.jsx)(d.A,{ipv6:s,size:"medium",color:"text-3"})]}),t?(0,i.jsxs)(p.A,{children:[(0,i.jsx)(o.A,{color:"text-2",size:"medium",children:(0,i.jsx)(c.sA,{id:"COMMON_IPV6_PREFIX"})}),(0,i.jsx)(x.A,{flex:"1",minWidth:"0",justifyContent:"flex-end",children:(0,i.jsx)(u,{ipv6:[`${(0,l.Gh)(s[0],t)}/${t}`],color:"text-3",size:"medium"})})]}):null,a?(0,i.jsxs)(p.A,{children:[(0,i.jsx)(o.A,{color:"text-2",size:"medium",children:(0,i.jsx)(c.sA,{id:"COMMON_IPV6_LINK_LOCAL"})}),(0,i.jsx)(d.A,{ipv6:[a],size:"medium",color:"text-3"})]}):null]}):null})},597377(e,t,s){s.d(t,{A:()=>c});var i=s(274934),r=s(602086),n=s(938984),o=s(470070),l=s(956978),d=s(664092);const c=({ip:e,lan_ip:t,ethernet_overrides:s,port_table:c,type:a,uplink:m,device_mode_override:x,wan:u=!1,lan:A=!1,compact:p=!1})=>{const h=(0,l.o_Q)({type:a,ip:e,lan_ip:t,ethernet_overrides:s,port_table:c,uplink:m,device_mode_override:x}),j=(0,r.useMemo)(()=>u?"DEVICE_PROPERTY_OVERVIEW_WAN_IP_ADDRESS":A?"DEVICE_PROPERTY_OVERVIEW_LAN_IP_ADDRESS":"COMMON_IP_ADDRESS",[u,A]);return h?(0,i.jsxs)(d.A,{compact:p,children:[(0,i.jsx)(n.A,{color:"text-2",size:"medium",children:(0,i.jsx)(o.sA,{id:j})}),(0,i.jsx)(n.A,{color:"text-3",size:"medium",children:h})]}):null}},725870(e,t,s){s.d(t,{A:()=>d});var i=s(274934),r=s(938984),n=s(470070),o=s(956978),l=s(664092);const d=({systemStatsMem:e,compact:t=!1})=>{const s=(0,o.HBQ)(e);return s?(0,i.jsxs)(l.A,{compact:t,children:[(0,i.jsx)(r.A,{color:"text-2",size:"medium",children:(0,i.jsx)(n.sA,{id:"DEVICE_PROPERTY_OVERVIEW_MEMORY_USAGE"})}),(0,i.jsxs)(r.A,{color:"text-3",size:"medium",children:[s,"%"]})]}):null}},631692(e,t,s){s.d(t,{A:()=>u});var i=s(274934),r=s(43009),n=s(938984),o=s(247816),l=s(442175),d=s(100978),c=s(470070),a=s(664092),m=s(128066);const x=(0,o.A)(d.A)`
  .tooltip-position-fixer {
    margin-right: -14px;
  }
`,u=({uplink:e,portSpeed:t})=>{const s=Number(t||e?.speed),{motif:o}=(0,r.A)();return s>0?(0,i.jsxs)(a.A,{children:[(0,i.jsx)(n.A,{color:"text-2",size:"medium",children:(0,i.jsx)(c.sA,{id:"COMMON_EXPERIENCE"})}),(0,i.jsx)(x,{alignItems:"center",children:(0,i.jsx)(n.A,{style:{color:(0,m.xe)(s,o,!1)},size:"medium",children:(0,l.ir)(s)})})]}):null}},647024(e,t,s){s.r(t),s.d(t,{default:()=>a});var i=s(274934),r=s(23377),n=s(189042),o=s(384780),l=s(383550),d=s(66177),c=s(216082);const a=({activeItem:e,activeItem:{name:t,type:s,model:a,mac:m,ip:x,ipv6:u,lan_ip:A,displayable_version:p,uptime:h,"system-stats":j,sys_stats:_,shortname:I,ethernet_overrides:v,port_table:C,uplink:M,device_mode_override:y}})=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.A,{activeItem:e,children:(0,i.jsx)(n.A,{activeItem:e,showCaptureButton:!0})}),(0,i.jsx)(o.A,{activeItem:e}),(0,i.jsx)(d.A,{name:t,type:s,model:a,ip:x,uplink:M,ipv6:u,lan_ip:A,mac:m,connection_network_id:e.connection_network_id,ethernet_overrides:v,port_table:C,displayable_version:p,uptime:h,systemStatsMem:j?.mem,sys_stats:_,device_mode_override:y}),(0,i.jsx)(r.A,{activeItem:e}),(0,i.jsx)(c.A,{shortname:I})]})},195689(e,t,s){s.d(t,{A:()=>A});var i=s(274934),r=s(602086),n=s(938984),o=s(688684),l=s(640708),d=s(421314),c=s(986993),a=s(100978),m=s(635187),x=s(316628),u=s(470070);const A=({ipv6:e=[],enabled:t=!0,size:s="inherit",color:A="inherit",showOnlyPrefix:p=!1,hideCopyIcon:h=!1})=>{const j=(0,x.A)(),_=(0,r.useCallback)((e,t)=>{t.stopPropagation(),t.preventDefault(),j(e)},[j]),I=(0,r.useMemo)(()=>(e=>{const t=e=>(0,l.G8)(e)?0:(0,l.ZV)(e)?1:2;return e.sort((e,s)=>t(e)-t(s))})(e||[]).map(e=>{const[t,s]=e.split(m.Ed);return p?`${(0,l.Gh)(t,Number(s))}/${s}`:(0,l.z2)(e)}),[e,p]),v=I?.[0];return v?(0,i.jsxs)(a.A,{maxWidth:"100%",justifyContent:"flex-end",children:[(0,i.jsx)(d.A,{enabled:t,flexProps:{justifyContent:"flex-end",alignItems:"center"},color:t?A:"disabled",size:s,children:v}),I?.length>1?(0,i.jsx)(c.A,{items:I,isInteractive:!0,showListMarkers:!1,getItemKey:e=>e,renderListItem:e=>(0,i.jsxs)(i.Fragment,{children:[e,(0,i.jsx)(o.A,{size:"original",actionable:!0,onClick:t=>{_(e,t)}})]}),renderMultipleItemsSummary:()=>null}):h?null:(0,i.jsx)(o.A,{size:"original",actionable:!0,onClick:e=>{_(v,e)}})]}):(0,i.jsx)(n.A,{size:s,color:t?A:"disabled",children:(0,i.jsx)(u.sA,{id:"COMMON_FALLBACK"})})}},316628(e,t,s){s.d(t,{A:()=>l});var i=s(602086),r=s(977872),n=s(700444),o=s(159469);const l=()=>{const e=(0,r.wA)();return(0,i.useCallback)(t=>null!=t?navigator.clipboard.writeText(t.toString()).then(()=>{e((0,n.ox)({icon:o.C.success,message:"COMMON_COPIED_TO_CLIPBOARD",duration:1e3}))}):Promise.resolve(),[e])}}}]);