"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[13414],{22169:(e,t,r)=>{r.d(t,{A:()=>c});var n=r(296540),l=r(217439),s=r(699784),i=r(115829),a=r(39705),o=r(294303);const c=({ipv6:e,size:t="inherit",color:r="inherit"})=>{const c=e?.[0];return c?n.createElement(o.A,{width:"100%",justifyContent:"flex-end"},n.createElement(i.A,{flexProps:{justifyContent:"flex-end",alignItems:"center"},color:r,size:t},c),e?.length>1?n.createElement(a.A,{items:e,isInteractive:!0,showListMarkers:!1,getItemKey:e=>e,renderListItem:e=>n.createElement(n.Fragment,null,e),renderMultipleItemsSummary:()=>null}):null):n.createElement(l.A,{size:t,color:r},n.createElement(s.sA,{id:"COMMON_FALLBACK"}))}},31037:(e,t,r)=>{r.r(t),r.d(t,{default:()=>m});var n=r(296540),l=r(15244),s=r(686130),i=r(442728),a=r(812454),o=r(606714),c=r(772317);const m=({activeItem:e,activeItem:{mac:t,ip:r,ipv6:m,lan_ip:d,displayable_version:u,connection_network_name:A,uptime:E,"system-stats":p,sys_stats:h,shortname:I}})=>n.createElement(n.Fragment,null,n.createElement(a.A,{activeItem:e},n.createElement(s.A,{activeItem:e,showCaptureButton:!0})),n.createElement(i.A,{activeItem:e}),n.createElement(o.A,{ip:r,ipv6:m,lan_ip:d,mac:t,displayable_version:u,connection_network_name:A,uptime:E,systemStatsMem:p?.mem,sys_stats:h}),n.createElement(l.A,{activeItem:e}),n.createElement(c.A,{shortname:I}))},32753:(e,t,r)=>{r.d(t,{A:()=>o});var n=r(296540),l=r(927099),s=r(699784),i=r(780811),a=r(360113);const o=({systemStatsMem:e,compact:t=!1})=>{const r=(0,i.HBQ)(e);return r?n.createElement(a.A,{compact:t},n.createElement(l.A,{color:"secondary",size:"body"},n.createElement(s.sA,{id:"DEVICE_PROPERTY_OVERVIEW_MEMORY_USAGE"})),n.createElement(l.A,{color:"tertiary",size:"body"},r,"%")):null}},39705:(e,t,r)=>{r.d(t,{A:()=>c});var n=r(296540),l=r(705145),s=r(699784),i=r(115829),a=r(424135),o=r(819127);const c=function({items:e,renderMultipleItemsSummary:t,renderListItem:r,renderNoItems:c,getItemKey:m,enabled:d=!0,showListMarkers:u,cursorType:A,isInteractive:E}){const p=d?"inherit":"disabled";return e.length>1?n.createElement(a.A,{tooltip:n.createElement(o.A,{items:e,getItemKey:m,renderItem:r,showListMarkers:u,isInteractive:E,cursorType:A})},n.createElement(i.A,{color:p,cursorType:A},t(e))):1===e.length?n.createElement(i.A,{color:p,cursorType:A},r(e[0])):c?n.createElement(n.Fragment,null,c()):n.createElement(l.A,{isTruncated:!0,color:p},n.createElement(s.sA,{id:"COMMON_FALLBACK"}))}},146784:(e,t,r)=>{r.d(t,{A:()=>A});var n=r(296540),l=r(349424),s=r(217439),i=r(383653),a=r(568560),o=r(22169),c=r(294303),m=r(699784),d=r(348466),u=r(360113);const A=(0,n.memo)(({ipv6_address:e=[],wan_dhcpv6_pd_size:t})=>{const{globalAddresses:r,linkLocalAddress:A}=(0,n.useMemo)(()=>{const t=[];let r=null;for(let n=0;n<e.length;n+=1){const s=e[n];new l.Address6(s).isLinkLocal()?r=s?.split(d.Ed)?.[0]:t.push(s.split(d.Ed)?.[0])}return{globalAddresses:t,linkLocalAddress:r}},[e]);return r.length?n.createElement(n.Fragment,null,n.createElement(u.A,null,n.createElement(s.A,{color:"text-2",size:"medium"},n.createElement(m.sA,{id:"COMMON_IPV6_ADDRESS"})),n.createElement(a.A,{ipv6:r,size:"medium",color:"text-3"})),t?n.createElement(u.A,null,n.createElement(s.A,{color:"text-2",size:"medium"},n.createElement(m.sA,{id:"COMMON_IPV6_PREFIX"})),n.createElement(c.A,{flex:"1",minWidth:"0",justifyContent:"flex-end"},n.createElement(o.A,{ipv6:[`${(0,i.Gh)(r[0],t)}/${t}`],color:"text-3",size:"medium"}))):null,A?n.createElement(u.A,null,n.createElement(s.A,{color:"text-2",size:"medium"},n.createElement(m.sA,{id:"COMMON_IPV6_LINK_LOCAL"})),n.createElement(a.A,{ipv6:[A],size:"medium",color:"text-3"})):null):null})},258117:(e,t,r)=>{r.d(t,{A:()=>A});var n=r(296540),l=r(325898),s=r(927099),i=r(71479),a=r(903216),o=r(294303),c=r(699784),m=r(360113),d=r(863489);const u=(0,i.A)(o.A)`
  .tooltip-position-fixer {
    margin-right: -14px;
  }
`,A=({uplink:e,portSpeed:t})=>{const r=Number(t||e?.speed),{motif:i}=(0,l.A)();return r>0?n.createElement(m.A,null,n.createElement(s.A,{color:"secondary",size:"body"},n.createElement(c.sA,{id:"COMMON_EXPERIENCE"})),n.createElement(u,{alignItems:"center"},n.createElement(s.A,{style:{color:(0,d.xe)(r,i,!1)},size:"body"},(0,a.ir)(r)))):null}},424135:(e,t,r)=>{r.d(t,{A:()=>i});var n=r(296540),l=r(566723),s=r(294303);const i=({children:e,tooltip:t})=>n.createElement(s.A,{maxWidth:"100%",overflow:"hidden",gap:l.YC,alignItems:"center"},n.createElement(s.A,{flex:1,overflow:"hidden"},e),t)},530813:(e,t,r)=>{r.d(t,{A:()=>A,d:()=>u});var n=r(296540),l=r(217439),s=r(705145),i=r(71479),a=r(311785),o=r(566723),c=r(699784),m=r(795097),d=r(294303);const u=(0,i.A)(m.A,(0,a.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 A=function({items:e,getItemKey:t,renderItem:r,maxItemCount:i=20,renderShowMore:a,showListMarkers:m,listGap:A}){return n.createElement(d.A,{flexDirection:"column",gap:o.YC},n.createElement(u,{showListMarkers:m,gap:A},e.slice(0,i).map((e,l)=>n.createElement("li",{key:t(e,l)},n.createElement(s.A,{variant:"inherit",isTruncated:!0},r(e))))),i&&e.length>i?a?a(e):n.createElement(l.A,{variant:"inherit"},n.createElement(c.sA,{id:"COMMON_X_MORE",values:{count:e.length-i}})):null)}},568560:(e,t,r)=>{r.d(t,{A:()=>p});var n=r(469733),l=r(296540),s=r(217439),i=r(895795),a=r(383653),o=r(742920),c=r(115829),m=r(39705),d=r(294303),u=r(675359),A=r(699784),E=r(348466);const p=({ipv6:e=[],enabled:t=!0,size:r="inherit",color:p="inherit",showOnlyPrefix:h=!1})=>{const I=(0,n.useDispatch)(),g=(0,l.useCallback)(e=>{navigator.clipboard.writeText(e).then(()=>{I((0,u.ox)({icon:o.C.success,message:"COMMON_COPIED_TO_CLIPBOARD"}))})},[I]),M=(0,l.useCallback)((e,t)=>{t.stopPropagation(),t.preventDefault(),g(e)},[g]),v=(0,l.useMemo)(()=>(e=>{const t=e=>(0,a.G8)(e)?0:(0,a.ZV)(e)?1:2;return e.sort((e,r)=>t(e)-t(r))})(e||[]).map(e=>{const[t,r]=e.split(E.Ed);return h?`${(0,a.Gh)(t,Number(r))}/${r}`:(0,a.z2)(e)}),[e,h]),y=v?.[0];return y?l.createElement(d.A,{maxWidth:"100%",justifyContent:"flex-end"},l.createElement(c.A,{enabled:t,flexProps:{justifyContent:"flex-end",alignItems:"center"},color:t?p:"disabled",size:r},y),v?.length>1?l.createElement(m.A,{items:v,isInteractive:!0,showListMarkers:!1,getItemKey:e=>e,renderListItem:e=>l.createElement(l.Fragment,null,e,l.createElement(i.A,{size:"original",actionable:!0,onClick:t=>M(e,t)})),renderMultipleItemsSummary:()=>null}):l.createElement(i.A,{size:"original",actionable:!0,onClick:e=>M(y,e)})):l.createElement(s.A,{size:r,color:t?p:"disabled"},l.createElement(A.sA,{id:"COMMON_FALLBACK"}))}},795097:(e,t,r)=>{r.d(t,{A:()=>s});var n=r(71479),l=r(566723);const s=(0,n.A)("ul")`
  padding-left: ${l.Er};
  margin-bottom: 0;
  margin-top: 0;
`},819127:(e,t,r)=>{r.d(t,{A:()=>i});var n=r(296540),l=r(766624),s=r(530813);const i=function({items:e,getItemKey:t,renderItem:r,maxItemCount:i,renderShowMore:a,showListMarkers:o,title:c,position:m,isInteractive:d,cursorType:u,listGap:A}){return n.createElement(l.A,{title:c,position:m,isInteractive:d,cursorType:u,description:n.createElement(s.A,{items:e,getItemKey:t,renderItem:r,maxItemCount:i,listGap:A,renderShowMore:a,showListMarkers:o})})}}}]);