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