"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[93459],{243322(e,t,n){n.d(t,{A:()=>a});var r=n(217439);const a=(0,n(71479).A)(r.A)`
  white-space: nowrap;
`},224948(e,t,n){n.d(t,{A:()=>d});var r=n(296540),a=n(217439),l=n(71479),i=n(566723),c=n(294303),o=n(689965);const m=(0,l.A)("div")`
  margin-right: ${i.kc};
`,s=(0,l.A)("div")`
  margin-left: ${i.kc};
`,d=({icon:e,closeIcon:t,nested:n,children:l,...i})=>r.createElement(o.A,{nested:n,...i},r.createElement(c.A,null,r.createElement(m,null,e),r.createElement(a.A,{size:"medium"},l),t?r.createElement(s,null,t):null))},22169(e,t,n){n.d(t,{A:()=>m});var r=n(296540),a=n(217439),l=n(916537),i=n(115829),c=n(39705),o=n(294303);const m=({ipv6:e,size:t="inherit",color:n="inherit"})=>{const m=e?.[0];return m?r.createElement(o.A,{width:"100%",justifyContent:"flex-end"},r.createElement(i.A,{flexProps:{justifyContent:"flex-end",alignItems:"center"},color:n,size:t},m),e?.length>1?r.createElement(c.A,{items:e,isInteractive:!0,showListMarkers:!1,getItemKey:e=>e,renderListItem:e=>r.createElement(r.Fragment,null,e),renderMultipleItemsSummary:()=>null}):null):r.createElement(a.A,{size:t,color:n},r.createElement(l.sA,{id:"COMMON_FALLBACK"}))}},689965(e,t,n){n.d(t,{A:()=>A,I:()=>r});var r,a=n(296540),l=n(822336),i=n(963724),c=n(71479),o=n(825032),m=n(566723),s=n(294303),d=n(311785);!function(e){e.ACCORDION="accordion",e.BUTTON_LIST="buttonList"}(r||(r={}));const u=(0,c.A)(s.A,(0,d.A)("marginBottom","isButtonList","margin","flex","width","padding","nested","background"))`
  background-color: ${({background:e,nested:t,theme:{themeName:n}})=>e||l.Ay[n===o.S.DARK?`desktop-color-neutral-${t?"00":"01"}-dark`:`desktop-color-neutral-${t?"01":"00"}-light`]};
  padding: ${({theme:e,isButtonList:t,padding:n})=>n||(t?`0 ${e.spacing["spacing-l"]}`:e.spacing["spacing-l"])};
  margin-bottom: ${({theme:e,marginBottom:t})=>t||e.spacing["spacing-l"]};
  ${({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}})=>l.Ay[`desktop-border-divider-${e}`]};\n      &:last-child {\n        border-bottom: none;\n      }\n    }\n  `:""}
`,E=(0,c.A)(i.A,(0,d.A)("marginBottom","margin","flex","padding","nested","background"))`
  background-color: ${({background:e,nested:t,theme:{themeName:n}})=>e||l.Ay[n===o.S.DARK?`desktop-color-neutral-${t?"00":"01"}-dark`:`desktop-color-neutral-${t?"01":"00"}-light`]};
  margin-bottom: ${({theme:e,marginBottom:t})=>t||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,theme:{themeName:t}})=>e||l.Ay[t===o.S.DARK?"desktop-color-neutral-01-dark":"desktop-color-neutral-00-light"]};
      height: 48px;
      padding: 0 ${m.Ln};
    }
    > div:nth-child(2) {
      margin-bottom: 0;
      padding: 0;
      > div {
        padding: 0 ${m.Ln} ${m.Ln};
      }
    }
  }
`,A=({type:e,marginBottom:t,margin:n,padding:l,flex:i,width:c,nested:o,...m})=>"items"in m?a.createElement(E,{marginBottom:t,margin:n,padding:l,flex:i,nested:o,...m}):a.createElement(u,{nested:o,width:c,marginBottom:t,margin:n,padding:l,flex:i,isButtonList:e===r.BUTTON_LIST,...m},m.children)},819127(e,t,n){n.d(t,{A:()=>i});var r=n(296540),a=n(766624),l=n(530813);const i=function({items:e,getItemKey:t,renderItem:n,maxItemCount:i,renderShowMore:c,showListMarkers:o,title:m,position:s,isInteractive:d,cursorType:u,listGap:E,iconProps:A}){return r.createElement(a.A,{title:m,position:s,isInteractive:d,cursorType:u,description:r.createElement(l.A,{items:e,getItemKey:t,renderItem:n,maxItemCount:i,listGap:E,renderShowMore:c,showListMarkers:o}),iconProps:A})}},39705(e,t,n){n.d(t,{A:()=>m});var r=n(296540),a=n(705145),l=n(916537),i=n(115829),c=n(424135),o=n(819127);const m=function({items:e,renderMultipleItemsSummary:t,renderListItem:n,renderNoItems:m,getItemKey:s,enabled:d=!0,showListMarkers:u,cursorType:E,isInteractive:A}){const p=d?"inherit":"disabled";return e.length>1?r.createElement(c.A,{tooltip:r.createElement(o.A,{items:e,getItemKey:s,renderItem:n,showListMarkers:u,isInteractive:A,cursorType:E})},r.createElement(i.A,{color:p,cursorType:E},t(e))):1===e.length?r.createElement(i.A,{color:p,cursorType:E},n(e[0])):m?r.createElement(r.Fragment,null,m()):r.createElement(a.A,{isTruncated:!0,color:p},r.createElement(l.sA,{id:"COMMON_FALLBACK"}))}},424135(e,t,n){n.d(t,{A:()=>i});var r=n(296540),a=n(566723),l=n(294303);const i=({children:e,tooltip:t})=>r.createElement(l.A,{maxWidth:"100%",overflow:"hidden",gap:a.YC,alignItems:"center"},e?r.createElement(l.A,{flex:1,overflow:"hidden"},e):null,t)},551753(e,t,n){n.d(t,{A:()=>p});var r=n(822336),a=n(296540),l=n(758649),i=n(217439),c=n(162420),o=n(823858),m=n(793336),s=n(382389),d=n(46119),u=n(916537),E=n(224948),A=n(294303);const p=(0,a.memo)(({children:e,customIcon:t,link:n,nested:p,extra:g,variant:_="warning",...h})=>{const{themeName:v}=(0,s.u)(),I=(0,a.useMemo)(()=>{switch(_){case"warning":return a.createElement(o.A,{size:"original",color:r.Ay[`desktop-color-orange-06-${v}`],variant:"fill"});case"info":return a.createElement(c.A,{isActive:!0,size:"original",variant:"fill"});case"custom":return t;default:return a.createElement(m.A,{size:"medium",color:r.Ay[`desktop-color-red-06-${v}`],variant:"fill"})}},[_,v,t]),C=(0,a.useCallback)(()=>{d.A.open(n)},[n]);return a.createElement(E.A,{icon:I,nested:p,...h},a.createElement(A.A,{flexDirection:"column",alignItems:"flex-start"},a.createElement(i.A,null,e),a.createElement(i.A,null,n?a.createElement(l.A,{type:"button",variant:"inline",onClick:C},a.createElement(u.sA,{id:"COMMON_LEARN_MORE"})):null),g))})},146784(e,t,n){n.d(t,{A:()=>E});var r=n(296540),a=n(349424),l=n(217439),i=n(383653),c=n(568560),o=n(22169),m=n(294303),s=n(916537),d=n(348466),u=n(360113);const E=(0,r.memo)(({ipv6_address:e=[],wan_dhcpv6_pd_size:t})=>{const{globalAddresses:n,linkLocalAddress:E}=(0,r.useMemo)(()=>{const t=[];let n=null;for(let r=0;r<e.length;r+=1){const l=e[r];new a.Address6(l).isLinkLocal()?n=l?.split(d.Ed)?.[0]:t.push(l.split(d.Ed)?.[0])}return{globalAddresses:t,linkLocalAddress:n}},[e]);return n.length?r.createElement(r.Fragment,null,r.createElement(u.A,null,r.createElement(l.A,{color:"text-2",size:"medium"},r.createElement(s.sA,{id:"COMMON_IPV6_ADDRESS"})),r.createElement(c.A,{ipv6:n,size:"medium",color:"text-3"})),t?r.createElement(u.A,null,r.createElement(l.A,{color:"text-2",size:"medium"},r.createElement(s.sA,{id:"COMMON_IPV6_PREFIX"})),r.createElement(m.A,{flex:"1",minWidth:"0",justifyContent:"flex-end"},r.createElement(o.A,{ipv6:[`${(0,i.Gh)(n[0],t)}/${t}`],color:"text-3",size:"medium"}))):null,E?r.createElement(u.A,null,r.createElement(l.A,{color:"text-2",size:"medium"},r.createElement(s.sA,{id:"COMMON_IPV6_LINK_LOCAL"})),r.createElement(c.A,{ipv6:[E],size:"medium",color:"text-3"})):null):null})},78853(e,t,n){n.d(t,{A:()=>h});var r,a=n(592563),l=n(296540),i=n(469733),c=n(217439),o=n(187483),m=n(916537),s=n(689965),d=n(86571),u=n(801081);!function(e){e.OPEN_MODAL="openModal"}(r||(r={}));const E=(0,u.Mz)(o.zn,e=>void 0!==e[r.OPEN_MODAL]);var A=n(856632),p=n(957866);const g=({uidbDevice:e})=>{const t=(0,i.useSelector)(o.zn),n=t?.[r.OPEN_MODAL];return n?l.createElement(a.A,{onClick:()=>n(e)},l.createElement(c.A,{size:"medium",color:"inherit"},l.createElement(m.sA,{id:"DEVICE_SHOW_DETAILS"}))):null},_=({shortname:e})=>{(0,p.A)();const t=(0,i.useSelector)((0,l.useMemo)(()=>(0,A.$E)(e),[e]));return t?.compliance?l.createElement(s.A,{type:s.I.ACCORDION,items:[{id:"compliance",label:l.createElement(d.A,{id:"COMMON_COMPLIANCE"}),renderContent:()=>l.createElement(g,{uidbDevice:t}),openByDefault:!0}]}):null},h=({shortname:e})=>(0,i.useSelector)(E)?l.createElement(_,{shortname:e}):null},94313(e,t,n){n.d(t,{A:()=>A});var r=n(296540),a=n(71479),l=n(132196),i=n(311785),c=n(916537),o=n(566723),m=n(294303),s=n(243322);const d=(0,a.A)(m.A,(0,i.A)("alignLeft"))`
  ${({alignLeft:e})=>e?"max-width: 288px;":"max-width: 100%; justify-content: center;"}
  gap: ${o.YC};
  align-items: center;
`,u=l.AH`
  max-width: 50%;
`,E=l.AH`
  flex: 0 1 auto;
  min-width: 0;
`,A=({messageId:e,messageValues:t,buttonEl:n,alignLeft:a=!0,color:l="text-3",variant:i="body-primary"})=>r.createElement(d,{alignLeft:a},r.createElement(s.A,{variant:i,color:l},t?r.createElement(m.A,{maxWidth:288,whiteSpace:"nowrap",paddingRight:o.YC},r.createElement(c.sA,{id:e,values:t})):r.createElement(c.sA,{id:e})),n?r.createElement(m.A,{className:a?E:u},n):null)},532988(e,t,n){n.d(t,{A:()=>h});var r=n(469733),a=n(296540),l=n(217439),i=n(968906),c=n(90757),o=n(566723),m=n(294303),s=n(398300),d=n(623771),u=n(845030),E=n(916537),A=n(532419),p=n(413146),g=n(94313),_=n(932752);const h=({last_uplink_mac:e,last_uplink_name:t,last_uplink_remote_port:n,disconnected_at:h,disabled:v,separatePortNumber:I,maxWidth:C})=>{const{formatMessage:O}=(0,E.tz)(),b=(0,r.useDispatch)(),N=(0,r.useSelector)(A.CC),x=(0,_.Z)(e,N),M=(0,_.z)(t,n,x,O,I),f=(0,a.useCallback)(()=>{v||b((0,u.XP)({type:s.H.DEVICE,id:e}))},[v,b,e]);return a.createElement(a.Fragment,null,x?a.createElement(g.A,{messageId:"COMMON_DEVICE_LAST_CONNECTED_TO",messageValues:{deviceWithPort:a.createElement(m.A,{width:"100%",overflow:"hidden",paddingLeft:o.YC},a.createElement(d.A,{onClick:f,disabled:v,...i.A.addDataTestId(i.A.TestId.SIDE_PANEL_TRIGGER),name:M,port:n,separatePortNumber:I,maxWidth:C}))}}):null,h?a.createElement("div",null,a.createElement(l.A,{color:"text-3"},a.createElement(p.A,{date:(0,c.gH)(h)}))):null)}},932752(e,t,n){n.d(t,{Z:()=>a,z:()=>l});var r=n(6510);const a=(e,t)=>e?t.find(({mac:t})=>t===e):void 0,l=(e,t,n,a,l)=>{const i=!l&&t?` ${a({id:"DEVICE_PROPERTIES_PORT_WITH_NUMBER"},{port:t})}`:"";return e?`${e}${i}`:n?`${(0,r.Q)(n)}${i}`:a({id:"COMMON_FALLBACK"})}},708019(e,t,n){n.d(t,{A:()=>o});var r=n(296540),a=n(370969),l=n(780811),i=n(94313),c=n(762334);const o=({type:e,name:t,mac:n,uplink:o,state:m,model:s,disabled:d,alignLeft:u})=>(0,c.n)(m,o)?r.createElement(i.A,{messageId:(0,l.E4T)({model:s})?"COMMON_CONNECTED_TO":"DEVICE_MESHING_TO",alignLeft:u,buttonEl:r.createElement(a.E,{device:{type:e,name:t,mac:n,uplink:o},size:"medium",disabled:d})}):null},762334(e,t,n){n.d(t,{n:()=>c});var r=n(469733),a=n(602197),l=n(532419),i=n(211368);const c=(e,t)=>{const n=(0,r.useSelector)(l.CC),c=t.uplink_mac?n.find(({mac:e})=>e===t.uplink_mac):void 0,o=Boolean(t.signal);return i.q[e]===a.g.CONNECTED&&c&&o?c:void 0}},673283(e,t,n){n.d(t,{A:()=>E});var r=n(296540),a=n(217439),l=n(360113),i=n(999063),c=n(205830),o=n(57759),m=n(146784),s=n(689965),d=n(916537),u=n(10373);const E=({displayable_version:e,uptime:t,sys_stats:n,ip:E,ipv6:A,mac:p,name:g,model:_,type:h,deviceState:v,imei:I})=>r.createElement(s.A,null,r.createElement(o.A,{name:g,model:_,mac:p,type:h,displayable_version:e,uptime:t,deviceState:v}),r.createElement(i.A,{uptime:t}),r.createElement(c.A,{sys_stats:n}),E?r.createElement(l.A,null,r.createElement(a.A,{color:"text-2"},r.createElement(d.sA,{id:"COMMON_IP"})),r.createElement(a.A,{color:"text-3"},E)):null,A?r.createElement(m.A,{ipv6_address:A}):null,p?r.createElement(l.A,null,r.createElement(a.A,{color:"text-2"},r.createElement(d.sA,{id:"COMMON_MAC"})),r.createElement(a.A,{color:"text-3"},p)):null,I?r.createElement(u.A,{imei:I}):null)},932832(e,t,n){n.d(t,{A:()=>A});var r=n(469733),a=n(296540),l=n(217439),i=n(777916),c=n(360113),o=n(258117),m=n(370969),s=n(294303),d=n(916537),u=n(927806),E=n(532419);const A=({activeItem:{uplink:{rx_bytes:e,"rx_bytes-r":t,rx_packets:n,speed:A,tx_bytes:p,"tx_bytes-r":g,tx_packets:_}={}},activeItem:h,deviceIsUltePro:v})=>{const I=(0,r.useSelector)(E.ID);return a.createElement(s.A,{flexDirection:"column"},a.createElement(c.A,null,a.createElement(l.A,{size:"medium"},a.createElement(d.sA,{id:"COMMON_DEVICE"})),a.createElement(m.E,{device:h,maxWidth:200,separatePortNumber:!0})),a.createElement(o.A,{portSpeed:A}),v?a.createElement(c.A,null,a.createElement(l.A,{size:"medium"},a.createElement(d.sA,{id:"DEVICE_PROPERTY_UPLINK_POWER"})),a.createElement(l.A,{color:"text-3",size:"medium"},a.createElement(d.sA,{id:"COMMON_UNIT_WATTS_SHORT",values:{value:(0,u.$Y)({device:h,devices:I})?.poe_power||0}}))):null,a.createElement(c.A,null,a.createElement(l.A,{size:"medium"},a.createElement(d.sA,{id:"COMMON_ACTIVITY_DOWN_PKTS_BYTES"})),a.createElement(l.A,{color:"text-3",size:"medium"},n?n.toLocaleString():null,"/",a.createElement(i.A,{type:"bytes",input:e,size:"body",color:"tertiary"}))),a.createElement(c.A,null,a.createElement(l.A,{size:"medium"},a.createElement(d.sA,{id:"COMMON_ACTIVITY_UP_PKTS_BYTES"})),a.createElement(l.A,{color:"text-3",size:"medium"},_?_.toLocaleString():null,"/",a.createElement(i.A,{type:"bytes",input:p,size:"body",color:"tertiary"}))),v?a.createElement(c.A,null,a.createElement(l.A,{size:"medium"},a.createElement(d.sA,{id:"COMMON_ACTIVITY"})),a.createElement(i.A,{type:"bytes",input:t+g,options:"bitrate",size:"body",color:"tertiary"})):null)}},205830(e,t,n){n.d(t,{A:()=>d});var r=n(296540),a=n(217439),l=n(83438),i=n(566723),c=n(294303),o=n(916537),m=n(780811),s=n(360113);const d=({sys_stats:e,flexProps:t,withTooltip:n,compact:d=!1})=>{const u=(0,m.eiG)(e);return u?r.createElement(s.A,{flexProps:t,compact:d},r.createElement(a.A,{color:"text-2",size:"medium"},r.createElement(o.sA,{id:"COMMON_LOAD_AVERAGE"})),n?r.createElement(c.A,{alignItems:"center",gap:i.YC},r.createElement(a.A,{color:"text-3",size:"medium"},u),r.createElement(l.A,{description:r.createElement(o.sA,{id:"DEVICE_PROPERTY_OVERVIEW_LOAD_AVERAGE_TOOLTIP"}),placement:"top start"})):r.createElement(a.A,{color:"text-3",size:"medium"},u)):null}},999063(e,t,n){n.d(t,{A:()=>o});var r=n(296540),a=n(217439),l=n(90757),i=n(916537),c=n(360113);const o=({uptime:e,compact:t=!1})=>e>0?r.createElement(c.A,{compact:t},r.createElement(a.A,{color:"text-2",size:"medium"},r.createElement(i.sA,{id:"COMMON_UPTIME"})),r.createElement(a.A,{color:"text-3",size:"medium"},(0,l.Ay)(e))):null},258117(e,t,n){n.d(t,{A:()=>E});var r=n(296540),a=n(325898),l=n(217439),i=n(71479),c=n(903216),o=n(294303),m=n(916537),s=n(360113),d=n(863489);const u=(0,i.A)(o.A)`
  .tooltip-position-fixer {
    margin-right: -14px;
  }
`,E=({uplink:e,portSpeed:t})=>{const n=Number(t||e?.speed),{motif:i}=(0,a.A)();return n>0?r.createElement(s.A,null,r.createElement(l.A,{color:"text-2",size:"medium"},r.createElement(m.sA,{id:"COMMON_EXPERIENCE"})),r.createElement(u,{alignItems:"center"},r.createElement(l.A,{style:{color:(0,d.xe)(n,i,!1)},size:"medium"},(0,c.ir)(n)))):null}},360113(e,t,n){n.d(t,{A:()=>m});var r=n(296540),a=n(71479),l=n(566723),i=n(294303),c=n(311785);const o=(0,a.A)(i.A,(0,c.A)("valueMaxWidth","keyMinWidth","compact"))`
  &:not(:last-child) {
    ${({compact:e})=>e?"":`margin-bottom: ${l.kc};`}
  }
  & > {
    &:nth-child(1) {
      min-width: ${({keyMinWidth:e})=>e}px;
    }
    &:nth-child(2) {
      max-width: ${({valueMaxWidth:e})=>e}px;
    }
  }
`,m=({children:e,valueMaxWidth:t=215,keyMinWidth:n=0,flexProps:a={},compact:i=!1})=>r.createElement(o,{width:"100%",justifyContent:"space-between",gap:l.kc,height:i?void 0:24,valueMaxWidth:t,keyMinWidth:n,compact:i,...a},e)},129361(e,t,n){n.d(t,{A:()=>s});var r=n(296540),a=n(708019),l=n(392699),i=n(532988),c=n(370969),o=n(94313);const m=({type:e,name:t,mac:n,uplink:a,disabled:l,maxWidth:i,peer_ubb:m,deviceState:s,ubb_pairing_state:d})=>r.createElement(o.A,{messageId:"COMMON_CONNECTED_TO",buttonEl:r.createElement(c.E,{device:{type:e,name:t,mac:n,uplink:a,peer_ubb:m,deviceState:s,ubb_pairing_state:d},maxWidth:i,disabled:l,separatePortNumber:!0})}),s=({connectionStatus:e,activeItem:{type:t,last_uplink:n,uplink:c,state:o,name:s,mac:d,model:u,disconnected_at:E,peer_ubb:A,deviceState:p,ubb_pairing_state:g},disabled:_,uplinkNameMaxWidth:h=195})=>{switch(e){case l.v.OFFLINE:return r.createElement(i.A,{last_uplink_mac:n?.uplink_mac,last_uplink_name:n?.uplink_device_name,last_uplink_remote_port:n?.uplink_remote_port,disconnected_at:E,disabled:_,separatePortNumber:!0,maxWidth:h});case l.v.MESHING:return r.createElement(a.A,{type:t,name:s,model:u,mac:d,uplink:c,state:o,disabled:_});case l.v.CONNECTED:return r.createElement(m,{type:t,name:s,mac:d,uplink:c,disabled:_,maxWidth:h,peer_ubb:A,deviceState:p,ubb_pairing_state:g});default:return null}}},120964(e,t,n){n.d(t,{A:()=>s});var r=n(296540),a=n(217439),l=n(463477),i=n(566723),c=n(734707),o=n(916537),m=n(613141);const s=({device:e,inline:t,...n})=>{const{onUpgradeDevice:s,showButton:d,isPending:u}=(0,l.S)(e);return d?r.createElement("div",{style:{marginTop:t?0:i.kc}},r.createElement(m.A,{fromVersion:e.displayable_version,toVersion:e.upgrade_to_firmware,model:e.model},r.createElement(c.Ay,{variant:t?"inline":"primary",onClick:s,disabled:u},r.createElement(a.A,{size:"medium",weight:"inherit",color:"inherit",...n},r.createElement(o.sA,{id:"COMMON_ACTION_UPDATE"}))))):null}},236037(e,t,n){n.d(t,{A:()=>p});var r=n(296540),a=n(837612),l=n(602197),i=n(217439),c=n(71479),o=n(566723),m=n(294303),s=n(916537),d=n(39039);const u=(0,c.A)("div")`
  margin-top: ${o.kc};
`,E=({type:e,model:t,mac:n,rollupgrade:a})=>r.createElement(u,null,r.createElement(d.A,{type:e,model:t,mac:n,rollupgrade:a,size:"large",maxWidth:"100%"}),r.createElement(m.A,{justifyContent:"center",width:"100%"},r.createElement(i.A,{variant:"body-primary"},r.createElement(s.sA,{id:"COMMON_UPDATING"}),"...")));var A=n(120964);const p=({activeItem:e})=>r.createElement(r.Fragment,null,e.deviceState===l.g.UPGRADING||e.deviceState===l.g.CONNECTED&&e.rollupgrade?r.createElement(E,{type:e.type,model:e.model,mac:e.mac,rollupgrade:e.rollupgrade}):null,(0,a.g8)(e)?r.createElement(A.A,{device:e}):null)},392699(e,t,n){var r;n.d(t,{v:()=>r}),function(e){e.OFFLINE="offline",e.MESHING="meshing",e.CONNECTED_INTERRUPTED="connected-interrupted",e.CONNECTED="connected"}(r||(r={}))},281884(e,t,n){n.d(t,{H:()=>i});var r=n(780811),a=n(768195),l=n(392699);const i=(e,t)=>(0,r.aK8)(e)?l.v.OFFLINE:t===a.au.WIRELESS?l.v.MESHING:l.v.CONNECTED},328787(e,t,n){n.d(t,{A:()=>u});var r=n(469733),a=n(296540),l=n(149133),i=n(855019),c=n(551753),o=n(916537),m=n(532419),s=n(765562);const d=({adopted:e})=>a.createElement(c.A,{link:s.A.virtualNetworkConnectivity},a.createElement(o.sA,{id:e?"DEVICE_FALLBACK_IP_ADOPTED_WITH_UNIFI_GATEWAY_WARNING":"DEVICE_FALLBACK_IP_NOT_ADOPTED_WARNING",values:{bold:a.createElement("strong",null,a.createElement(o.sA,{id:e?"DEVICE_WARNING_FALLBACK_IP":"DEVICE_WARNING_ADOPTION_FAILED"}))}})),u=({ip:e,adopted:t,config_network:n})=>(0,r.useSelector)(m.m9)&&(0,l.W5)(e)&&n?.type===i.NL.DHCP?a.createElement(d,{adopted:t}):null},568560(e,t,n){n.d(t,{A:()=>p});var r=n(296540),a=n(469733),l=n(217439),i=n(895795),c=n(383653),o=n(742920),m=n(115829),s=n(39705),d=n(294303),u=n(675359),E=n(916537),A=n(348466);const p=({ipv6:e=[],enabled:t=!0,size:n="inherit",color:p="inherit",showOnlyPrefix:g=!1})=>{const _=(0,a.useDispatch)(),h=(0,r.useCallback)(e=>{navigator.clipboard.writeText(e).then(()=>{_((0,u.ox)({icon:o.C.success,message:"COMMON_COPIED_TO_CLIPBOARD"}))})},[_]),v=(0,r.useCallback)((e,t)=>{t.stopPropagation(),t.preventDefault(),h(e)},[h]),I=(0,r.useMemo)(()=>(e=>{const t=e=>(0,c.G8)(e)?0:(0,c.ZV)(e)?1:2;return e.sort((e,n)=>t(e)-t(n))})(e||[]).map(e=>{const[t,n]=e.split(A.Ed);return g?`${(0,c.Gh)(t,Number(n))}/${n}`:(0,c.z2)(e)}),[e,g]),C=I?.[0];return C?r.createElement(d.A,{maxWidth:"100%",justifyContent:"flex-end"},r.createElement(m.A,{enabled:t,flexProps:{justifyContent:"flex-end",alignItems:"center"},color:t?p:"disabled",size:n},C),I?.length>1?r.createElement(s.A,{items:I,isInteractive:!0,showListMarkers:!1,getItemKey:e=>e,renderListItem:e=>r.createElement(r.Fragment,null,e,r.createElement(i.A,{size:"original",actionable:!0,onClick:t=>v(e,t)})),renderMultipleItemsSummary:()=>null}):r.createElement(i.A,{size:"original",actionable:!0,onClick:e=>v(C,e)})):r.createElement(l.A,{size:n,color:t?p:"disabled"},r.createElement(E.sA,{id:"COMMON_FALLBACK"}))}},957866(e,t,n){n.d(t,{A:()=>o});var r=n(296540),a=n(469733),l=n(765562),i=n(79871),c=n(856632);const o=()=>{const e=(0,a.useDispatch)(),t=(0,a.useSelector)(c.eo);return(0,r.useEffect)(()=>{t||(async()=>{const t=await fetch(l.A.fingerprintPublicDatabasePath),n=await t.json();e((0,i.$)(n))})()},[t,e]),t}},856632(e,t,n){n.d(t,{$E:()=>s,eo:()=>o});var r=n(801081),a=n(523275),l=n(840279),i=n(919952);const c=e=>e[i.U.UIDB]||(0,a.A)(),o=(0,r.Mz)(c,({version:e})=>Boolean(e)),m=(0,r.Mz)(c,({devices:e})=>e||(0,l.A)()),s=e=>(0,r.Mz)(m,t=>t.find(({shortnames:t})=>e&&(t||[]).includes(e))||(0,a.A)());(0,r.Mz)(m,e=>{const t=new Map;for(let n=0;n<e.length;n+=1){const r=e[n].power?.baseConsumption;if(void 0!==r){const{shortnames:a}=e[n];for(let e=0;e<(a||[]).length;e+=1)t.set(a[e],r)}}return t})}}]);