"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[98508],{22169:(e,t,r)=>{r.d(t,{A:()=>m});var n=r(296540),l=r(217439),a=r(699784),i=r(115829),s=r(39705),c=r(294303);const m=({ipv6:e,size:t="inherit",color:r="inherit"})=>{const m=e?.[0];return m?n.createElement(c.A,{width:"100%",justifyContent:"flex-end"},n.createElement(i.A,{flexProps:{justifyContent:"flex-end",alignItems:"center"},color:r,size:t},m),e?.length>1?n.createElement(s.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(a.sA,{id:"COMMON_FALLBACK"}))}},39705:(e,t,r)=>{r.d(t,{A:()=>m});var n=r(296540),l=r(705145),a=r(699784),i=r(115829),s=r(424135),c=r(819127);const m=function({items:e,renderMultipleItemsSummary:t,renderListItem:r,renderNoItems:m,getItemKey:o,enabled:d=!0,showListMarkers:u,cursorType:A,isInteractive:E}){const p=d?"inherit":"disabled";return e.length>1?n.createElement(s.A,{tooltip:n.createElement(c.A,{items:e,getItemKey:o,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])):m?n.createElement(n.Fragment,null,m()):n.createElement(l.A,{isTruncated:!0,color:p},n.createElement(a.sA,{id:"COMMON_FALLBACK"}))}},146784:(e,t,r)=>{r.d(t,{A:()=>A});var n=r(296540),l=r(349424),a=r(217439),i=r(383653),s=r(568560),c=r(22169),m=r(294303),o=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 a=e[n];new l.Address6(a).isLinkLocal()?r=a?.split(d.Ed)?.[0]:t.push(a.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(a.A,{color:"text-2",size:"medium"},n.createElement(o.sA,{id:"COMMON_IPV6_ADDRESS"})),n.createElement(s.A,{ipv6:r,size:"medium",color:"text-3"})),t?n.createElement(u.A,null,n.createElement(a.A,{color:"text-2",size:"medium"},n.createElement(o.sA,{id:"COMMON_IPV6_PREFIX"})),n.createElement(m.A,{flex:"1",minWidth:"0",justifyContent:"flex-end"},n.createElement(c.A,{ipv6:[`${(0,i.Gh)(r[0],t)}/${t}`],color:"text-3",size:"medium"}))):null,A?n.createElement(u.A,null,n.createElement(a.A,{color:"text-2",size:"medium"},n.createElement(o.sA,{id:"COMMON_IPV6_LINK_LOCAL"})),n.createElement(s.A,{ipv6:[A],size:"medium",color:"text-3"})):null):null})},400242:(e,t,r)=>{r.d(t,{A:()=>s});var n=r(296540),l=r(927099),a=r(699784),i=r(360113);const s=({ip:e,lan_ip:t,wan:r=!1,lan:s=!1,compact:c=!1})=>t||e?n.createElement(i.A,{compact:c},n.createElement(l.A,{color:"secondary",size:"body"},n.createElement(a.sA,{id:r?"DEVICE_PROPERTY_OVERVIEW_WAN_IP_ADDRESS":s?"DEVICE_PROPERTY_OVERVIEW_LAN_IP_ADDRESS":"COMMON_IP_ADDRESS"})),n.createElement(l.A,{color:"tertiary",size:"body"},t||e)):null},424135:(e,t,r)=>{r.d(t,{A:()=>i});var n=r(296540),l=r(566723),a=r(294303);const i=({children:e,tooltip:t})=>n.createElement(a.A,{maxWidth:"100%",overflow:"hidden",gap:l.YC,alignItems:"center"},n.createElement(a.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),a=r(705145),i=r(71479),s=r(311785),c=r(566723),m=r(699784),o=r(795097),d=r(294303);const u=(0,i.A)(o.A,(0,s.A)("showListMarkers","gap"))`
  padding-left: ${({showListMarkers:e})=>e?c.Ln:0};
  display: flex;
  flex-direction: column;
  gap: ${({gap:e})=>e??c.YC};

  > li {
    list-style-type: ${({showListMarkers:e})=>e?"disc":"none"};
  }
`;const A=function({items:e,getItemKey:t,renderItem:r,maxItemCount:i=20,renderShowMore:s,showListMarkers:o,listGap:A}){return n.createElement(d.A,{flexDirection:"column",gap:c.YC},n.createElement(u,{showListMarkers:o,gap:A},e.slice(0,i).map((e,l)=>n.createElement("li",{key:t(e,l)},n.createElement(a.A,{variant:"inherit",isTruncated:!0},r(e))))),i&&e.length>i?s?s(e):n.createElement(l.A,{variant:"inherit"},n.createElement(m.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),a=r(217439),i=r(895795),s=r(383653),c=r(742920),m=r(115829),o=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 v=(0,n.useDispatch)(),I=(0,l.useCallback)(e=>{navigator.clipboard.writeText(e).then(()=>{v((0,u.ox)({icon:c.C.success,message:"COMMON_COPIED_TO_CLIPBOARD"}))})},[v]),M=(0,l.useCallback)((e,t)=>{t.stopPropagation(),t.preventDefault(),I(e)},[I]),g=(0,l.useMemo)(()=>(e=>{const t=e=>(0,s.G8)(e)?0:(0,s.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,s.Gh)(t,Number(r))}/${r}`:(0,s.z2)(e)}),[e,h]),f=g?.[0];return f?l.createElement(d.A,{maxWidth:"100%",justifyContent:"flex-end"},l.createElement(m.A,{enabled:t,flexProps:{justifyContent:"flex-end",alignItems:"center"},color:t?p:"disabled",size:r},f),g?.length>1?l.createElement(o.A,{items:g,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(f,e)})):l.createElement(a.A,{size:r,color:t?p:"disabled"},l.createElement(A.sA,{id:"COMMON_FALLBACK"}))}},795097:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(71479),l=r(566723);const a=(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),a=r(530813);const i=function({items:e,getItemKey:t,renderItem:r,maxItemCount:i,renderShowMore:s,showListMarkers:c,title:m,position:o,isInteractive:d,cursorType:u,listGap:A}){return n.createElement(l.A,{title:m,position:o,isInteractive:d,cursorType:u,description:n.createElement(a.A,{items:e,getItemKey:t,renderItem:r,maxItemCount:i,listGap:A,renderShowMore:s,showListMarkers:c})})}},895795:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(296540),l=r(629318);const a=(0,r(51946).w)(e=>(0,n.createElement)("svg",(0,l.d)({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em"},e),(0,n.createElement)("rect",{x:3,y:5,width:12,height:12,rx:1,fill:"currentColor",className:e.twotonedclassname}),(0,n.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.5 4H16v9.5a.5.5 0 0 0 1 0V4a1 1 0 0 0-1-1H6.5a.5.5 0 0 0 0 1ZM4 6h10v10H4V6ZM3 6a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V6Z",fill:"currentColor",className:e.baseclassname}),(0,n.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.5 4H16v9.5a.5.5 0 0 0 1 0V4a1 1 0 0 0-1-1H6.5a.5.5 0 0 0 0 1ZM4 5a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1H4Z",fill:"currentColor",className:e.fillclassname})))},898508:(e,t,r)=>{r.r(t),r.d(t,{default:()=>I});var n=r(296540),l=r(812454),a=r(469733),i=r(59372),s=r(146784),c=r(294303),m=r(689965),o=r(285947),d=r(780492),u=r(999063),A=r(32753),E=r(723544),p=r(400242);const h=({ip:e,lan_ip:t,ipv6:r,mac:l,uptime:h,systemStatsMem:v})=>{const I=(0,a.useSelector)(i.ad),M=(0,n.useMemo)(()=>(0,o.Up)(I,!1),[I]);return n.createElement(m.A,null,n.createElement(c.A,{height:"100%",flexDirection:"column"},n.createElement(p.A,{ip:e,lan_ip:t}),n.createElement(s.A,{ipv6_address:r}),n.createElement(E.A,{mac:l}),n.createElement(u.A,{uptime:h}),n.createElement(A.A,{systemStatsMem:v}),n.createElement(d.A,{wifiNetworkNames:M})))};var v=r(772317);const I=({activeItem:e,activeItem:{ip:t,lan_ip:r,ipv6:a,mac:i,uptime:s,"system-stats":c,shortname:m}})=>n.createElement(n.Fragment,null,n.createElement(l.A,{activeItem:e}),n.createElement(h,{ip:t,lan_ip:r,ipv6:a,mac:i,uptime:s,systemStatsMem:c?.mem}),n.createElement(v.A,{shortname:m}))}}]);