"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[22601,89965],{22169:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(296540),l=n(217439),i=n(699784),a=n(115829),o=n(39705),c=n(294303);const s=({ipv6:e,size:t="inherit",color:n="inherit"})=>{const s=e?.[0];return s?r.createElement(c.A,{width:"100%",justifyContent:"flex-end"},r.createElement(a.A,{flexProps:{justifyContent:"flex-end",alignItems:"center"},color:n,size:t},s),e?.length>1?r.createElement(o.A,{items:e,isInteractive:!0,showListMarkers:!1,getItemKey:e=>e,renderListItem:e=>r.createElement(r.Fragment,null,e),renderMultipleItemsSummary:()=>null}):null):r.createElement(l.A,{size:t,color:n},r.createElement(i.sA,{id:"COMMON_FALLBACK"}))}},39705:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(296540),l=n(705145),i=n(699784),a=n(115829),o=n(424135),c=n(819127);const s=function({items:e,renderMultipleItemsSummary:t,renderListItem:n,renderNoItems:s,getItemKey:m,enabled:d=!0,showListMarkers:E,cursorType:A,isInteractive:u}){const p=d?"inherit":"disabled";return e.length>1?r.createElement(o.A,{tooltip:r.createElement(c.A,{items:e,getItemKey:m,renderItem:n,showListMarkers:E,isInteractive:u,cursorType:A})},r.createElement(a.A,{color:p,cursorType:A},t(e))):1===e.length?r.createElement(a.A,{color:p,cursorType:A},n(e[0])):s?r.createElement(r.Fragment,null,s()):r.createElement(l.A,{isTruncated:!0,color:p},r.createElement(i.sA,{id:"COMMON_FALLBACK"}))}},46119:(e,t,n)=>{n.d(t,{A:()=>r});const r={open:(e,t="_blank",n="noopener,noreferrer")=>window.open(e,t,n)}},86571:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(296540),l=n(217439),i=n(699784);const a=({id:e,children:t,values:n})=>r.createElement(l.A,{color:"text-1",weight:"bold",size:"medium"},e?r.createElement(i.sA,{id:e,values:n}):null,t)},120964:(e,t,n)=>{n.d(t,{A:()=>m});var r=n(296540),l=n(217439),i=n(463477),a=n(566723),o=n(734707),c=n(699784),s=n(613141);const m=({device:e,inline:t,...n})=>{const{onUpgradeDevice:m,showButton:d,isPending:E}=(0,i.S)(e);return d?r.createElement("div",{style:{marginTop:t?0:a.kc}},r.createElement(s.A,{fromVersion:e.displayable_version,toVersion:e.upgrade_to_firmware,model:e.model},r.createElement(o.Ay,{variant:t?"inline":"primary",onClick:m,disabled:E},r.createElement(l.A,{size:"medium",weight:"inherit",color:"inherit",...n},r.createElement(c.sA,{id:"COMMON_ACTION_UPDATE"}))))):null}},124092:(e,t,n)=>{n.d(t,{A:()=>g});var r=n(469733),l=n(296540),i=n(962926),a=n(705145),o=n(71479),c=n(132196),s=n(6510),m=n(130851),d=n(566723),E=n(294303),A=n(6176);const u=c.AH`
  margin-bottom: ${d.Ln};
  margin-top: ${d.Ln};
`,p=(0,o.A)("div")`
  align-self: center;
  overflow: hidden;
  word-break: break-word;
`,h=(0,o.A)("img")`
  width: 40px;
  height: 40px;
  object-fit: contain;
`,g=({children:e,description:t,meshingDescription:n,isOffline:o,activeItem:g,style:_,className:v,isStacking:x})=>{const I=(0,r.useSelector)(m.p);return l.createElement(i.A,{className:(0,c.cx)(u,v),sections:[l.createElement("div",null,l.createElement(E.A,{gap:d.kc},x?l.createElement(h,{src:`${I}/topology/stacking.png`,alt:"stacked"}):l.createElement(A.A,{model:g.model,width:40,height:40}),l.createElement(p,{style:_},l.createElement(a.A,{color:o?"text-3":"text-1",weight:"bold",isTruncated:!0},(0,s.Lm)(g.model)),t)),n,e)]})}},146784:(e,t,n)=>{n.d(t,{A:()=>A});var r=n(296540),l=n(349424),i=n(217439),a=n(383653),o=n(568560),c=n(22169),s=n(294303),m=n(699784),d=n(348466),E=n(360113);const A=(0,r.memo)(({ipv6_address:e=[],wan_dhcpv6_pd_size:t})=>{const{globalAddresses:n,linkLocalAddress:A}=(0,r.useMemo)(()=>{const t=[];let n=null;for(let r=0;r<e.length;r+=1){const i=e[r];new l.Address6(i).isLinkLocal()?n=i?.split(d.Ed)?.[0]:t.push(i.split(d.Ed)?.[0])}return{globalAddresses:t,linkLocalAddress:n}},[e]);return n.length?r.createElement(r.Fragment,null,r.createElement(E.A,null,r.createElement(i.A,{color:"text-2",size:"medium"},r.createElement(m.sA,{id:"COMMON_IPV6_ADDRESS"})),r.createElement(o.A,{ipv6:n,size:"medium",color:"text-3"})),t?r.createElement(E.A,null,r.createElement(i.A,{color:"text-2",size:"medium"},r.createElement(m.sA,{id:"COMMON_IPV6_PREFIX"})),r.createElement(s.A,{flex:"1",minWidth:"0",justifyContent:"flex-end"},r.createElement(c.A,{ipv6:[`${(0,a.Gh)(n[0],t)}/${t}`],color:"text-3",size:"medium"}))):null,A?r.createElement(E.A,null,r.createElement(i.A,{color:"text-2",size:"medium"},r.createElement(m.sA,{id:"COMMON_IPV6_LINK_LOCAL"})),r.createElement(o.A,{ipv6:[A],size:"medium",color:"text-3"})):null):null})},150556:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(296540),l=n(927099),i=n(137298),a=n(699784),o=n(360113);const c=({tx_rate:e})=>e>0?r.createElement(o.A,null,r.createElement(l.A,{color:"secondary",size:"body"},r.createElement(a.sA,{id:"COMMON_TX_RATE"})),r.createElement(l.A,{color:"tertiary",size:"body"},(0,i.Up)(e))):null},151061:(e,t,n)=>{n.d(t,{m:()=>u});var r=n(469733),l=n(296540),i=n(217439),a=n(90757),o=n(398300),c=n(340813),s=n(413146),m=n(845030),d=n(699784),E=n(532419),A=n(675845);const u=({last_uplink_mac:e,last_uplink_name:t,last_uplink_remote_port:n,disconnected_at:u,disabled:p,textSize:h,maxWidth:g})=>{const{formatMessage:_}=(0,d.tz)(),v=(0,r.useDispatch)(),x=(0,r.useSelector)(E.CC),I=(0,A.Z)(e,x),C=(0,A.z)(t,n,I,_);return l.createElement(l.Fragment,null,I?l.createElement("div",null,l.createElement(i.A,{color:"text-3",size:h},l.createElement(d.sA,{id:"COMMON_DEVICE_LAST_CONNECTED_TO",values:{deviceWithPort:l.createElement(c.A,{isFullWidth:!1,disabled:p,maxWidth:g||200,onClick:()=>{p||v((0,m.XP)({type:o.H.DEVICE,id:e}))},size:h},C)}}))):null,u?l.createElement("div",null,l.createElement(i.A,{color:"text-3",size:h},l.createElement(s.A,{date:(0,a.gH)(u)}))):null)}},188912:(e,t,n)=>{n.d(t,{A:()=>d});var r=n(296540),l=n(370969),i=n(243322),a=n(294303),o=n(699784),c=n(151061),s=n(770804),m=n(392699);const d=({connectionStatus:e,activeItem:t,disabled:n,uplinkNameMaxWidth:d=195})=>{const{type:E,last_uplink:A,uplink:u,state:p,name:h,mac:g,disconnected_at:_}=t;switch(e){case m.v.OFFLINE:return r.createElement(c.m,{last_uplink_mac:A?.uplink_mac,last_uplink_name:A?.uplink_device_name,last_uplink_remote_port:A?.uplink_remote_port,disconnected_at:_,disabled:n,maxWidth:d});case m.v.MESHING:return r.createElement(s.A,{type:E,name:h,mac:g,uplink:u,state:p,alignLeft:!0,disabled:n});case m.v.CONNECTED:return r.createElement(a.A,{alignItems:"flex-bottom",flexWrap:"wrap"},r.createElement(i.A,{color:"text-3"},r.createElement(o.sA,{id:"COMMON_CONNECTED_TO"}))," ",r.createElement(l.E,{device:t,maxWidth:d,disabled:n,separatePortNumber:!0}));default:return null}}},190492:(e,t,n)=>{n.d(t,{A:()=>A,H:()=>r});var r,l=n(296540),i=n(217439),a=n(903216),o=n(360113),c=n(699784),s=n(569299),m=n(150556),d=n(782558);!function(e){e.ACTIVE="active",e.STANDBY="standby"}(r||(r={}));const E={[r.ACTIVE]:"COMMON_ACTIVE",[r.STANDBY]:"DEVICE_STANDBY"},A=({status:e,networkoperator:t,apn:n,pdp_type:r,rat:A,rx_chan:u,tx_chan:p,iccid:h,rxbytes:g,txbytes:_})=>l.createElement(l.Fragment,null,e?l.createElement(o.A,null,l.createElement(i.A,{color:"text-2"},l.createElement(c.sA,{id:"COMMON_STATUS"})),l.createElement(i.A,{color:"text-3"},l.createElement(c.sA,{id:E[e]}))):null,t&&"NULL"!==t?l.createElement(o.A,null,l.createElement(i.A,{color:"text-2"},l.createElement(c.sA,{id:"COMMON_CARRIER"})),l.createElement(i.A,{color:"text-3"},t)):null,n?l.createElement(o.A,null,l.createElement(i.A,{color:"text-2"},l.createElement(c.sA,{id:"DEVICE_PROPERTIES_UNIFI_LTE_APN"})),l.createElement(i.A,{color:"text-3"},n)):null,r?l.createElement(o.A,null,l.createElement(i.A,{color:"text-2"},l.createElement(c.sA,{id:"DEVICE_CONNECTION_TYPE"})),l.createElement(i.A,{color:"text-3"},r)):null,(0,s.mR)(A)?l.createElement(o.A,null,l.createElement(i.A,{color:"text-2"},l.createElement(c.sA,{id:"COMMON_NETWORK_TYPE"})),l.createElement(i.A,{color:"text-3"},A)):null,void 0!==u?l.createElement(d.A,{rx_rate:u}):null,void 0!==p?l.createElement(m.A,{tx_rate:p}):null,void 0!==g?l.createElement(o.A,null,l.createElement(i.A,{color:"text-2"},l.createElement(c.sA,{id:"COMMON_RX_BYTES"})),l.createElement(i.A,{color:"text-3"},(0,a.FI)(g))):null,void 0!==_?l.createElement(o.A,null,l.createElement(i.A,{color:"text-2"},l.createElement(c.sA,{id:"COMMON_TX_BYTES"})),l.createElement(i.A,{color:"text-3"},(0,a.FI)(_))):null,h?l.createElement(o.A,null,l.createElement(i.A,{color:"text-2"},l.createElement(c.sA,{id:"DEVICE_PROPERTIES_UNIFI_LTE_ICCID"})),l.createElement(i.A,{color:"text-3"},h)):null)},205830:(e,t,n)=>{n.d(t,{A:()=>d});var r=n(296540),l=n(217439),i=n(83438),a=n(566723),o=n(294303),c=n(699784),s=n(780811),m=n(360113);const d=({sys_stats:e,flexProps:t,withTooltip:n,compact:d=!1})=>{const E=(0,s.eiG)(e);return E?r.createElement(m.A,{flexProps:t,compact:d},r.createElement(l.A,{color:"text-2",size:"medium"},r.createElement(c.sA,{id:"COMMON_LOAD_AVERAGE"})),n?r.createElement(o.A,{alignItems:"center",gap:a.YC},r.createElement(l.A,{color:"text-3",size:"medium"},E),r.createElement(i.A,{description:r.createElement(c.sA,{id:"DEVICE_PROPERTY_OVERVIEW_LOAD_AVERAGE_TOOLTIP"}),placement:"top left"})):r.createElement(l.A,{color:"text-3",size:"medium"},E)):null}},224948:(e,t,n)=>{n.d(t,{A:()=>d});var r=n(296540),l=n(217439),i=n(71479),a=n(566723),o=n(294303),c=n(689965);const s=(0,i.A)("div")`
  margin-right: ${a.kc};
`,m=(0,i.A)("div")`
  margin-left: ${a.kc};
`,d=({icon:e,closeIcon:t,nested:n,children:i,...a})=>r.createElement(c.A,{nested:n,...a},r.createElement(o.A,null,r.createElement(s,null,e),r.createElement(l.A,{size:"medium"},i),t?r.createElement(m,null,t):null))},236037:(e,t,n)=>{n.d(t,{A:()=>p});var r=n(296540),l=n(837612),i=n(602197),a=n(217439),o=n(71479),c=n(566723),s=n(294303),m=n(699784),d=n(39039);const E=(0,o.A)("div")`
  margin-top: ${c.kc};
`,A=({type:e,model:t,mac:n,rollupgrade:l})=>r.createElement(E,null,r.createElement(d.A,{type:e,model:t,mac:n,rollupgrade:l,size:"large",maxWidth:"100%"}),r.createElement(s.A,{justifyContent:"center",width:"100%"},r.createElement(a.A,{variant:"body-primary"},r.createElement(m.sA,{id:"COMMON_UPDATING"}),"...")));var u=n(120964);const p=({activeItem:e})=>r.createElement(r.Fragment,null,e.deviceState===i.g.UPGRADING||e.deviceState===i.g.CONNECTED&&e.rollupgrade?r.createElement(A,{type:e.type,model:e.model,mac:e.mac,rollupgrade:e.rollupgrade}):null,(0,l.g8)(e)?r.createElement(u.A,{device:e}):null)},243322:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(217439);const l=(0,n(71479).A)(r.A)`
  white-space: nowrap;
`},258117:(e,t,n)=>{n.d(t,{A:()=>A});var r=n(296540),l=n(325898),i=n(927099),a=n(71479),o=n(903216),c=n(294303),s=n(699784),m=n(360113),d=n(863489);const E=(0,a.A)(c.A)`
  .tooltip-position-fixer {
    margin-right: -14px;
  }
`,A=({uplink:e,portSpeed:t})=>{const n=Number(t||e?.speed),{motif:a}=(0,l.A)();return n>0?r.createElement(m.A,null,r.createElement(i.A,{color:"secondary",size:"body"},r.createElement(s.sA,{id:"COMMON_EXPERIENCE"})),r.createElement(E,{alignItems:"center"},r.createElement(i.A,{style:{color:(0,d.xe)(n,a,!1)},size:"body"},(0,o.ir)(n)))):null}},269611:(e,t,n)=>{n.d(t,{n:()=>o});var r=n(469733),l=n(602197),i=n(532419),a=n(211368);const o=(e,t)=>{const n=(0,r.useSelector)(i.CC),o=t.uplink_mac?n.find(({mac:e})=>e===t.uplink_mac):void 0,c=Boolean(t.signal);return a.q[e]===l.g.CONNECTED&&o&&c?o:void 0}},281884:(e,t,n)=>{n.d(t,{H:()=>a});var r=n(780811),l=n(768195),i=n(392699);const a=(e,t)=>(0,r.aK8)(e)?i.v.OFFLINE:t===l.au.WIRELESS?i.v.MESHING:i.v.CONNECTED},282811:(e,t,n)=>{n.d(t,{A3:()=>O,Ay:()=>N,KN:()=>v,Rx:()=>_,lo:()=>f});var r=n(296540),l=n(118818),i=n(217439),a=n(718073),o=n(71479),c=n(998837),s=n(566723),m=n(613870),d=n(332898),E=n(294303),A=n(532114),u=n(881295),p=n(699784),h=n(996734),g=n(546343);const _=31,v=20,x={[h.qU.SUCCESS]:"green06",[h.qU.WARNING]:"orange06",[h.qU.DANGER]:"red06",[h.qU.MISSING]:"neutral06"},I=(0,o.A)("div")`
  position: absolute;
  top: 0;
  left: -${s.YC};
  right: -${s.YC};
  bottom: 0;
  pointer-events: auto;
`,C=({signal:e})=>r.createElement(m.A,{width:16,height:16,strength:e,color:(0,u._v)(e),inactiveColor:(0,c.u)().motifPalette.neutral05}),O=({signal_percent:e=0,dBm:t})=>{const{themeName:n}=(0,c.u)();return r.createElement(E.A,{gap:s.kc,style:{userSelect:"none"}},e>0?r.createElement(A.A,{colorOverride:(0,u._i)(e,n)},t," ",r.createElement(p.sA,{id:"COMMON_UNIT_DBM"})):r.createElement(i.A,{color:"text-3",size:"medium"},r.createElement(p.sA,{id:"COMMON_NO_SIGNAL"})),r.createElement(d.A,{width:_,height:v,signal_percent:e}))},f=({signal:e,children:t})=>r.createElement(E.A,{gap:s.YC,style:{userSelect:"none"}},void 0!==e?r.createElement(C,{signal:e}):null,r.createElement(i.A,{color:"text-3",size:"medium"},t)),N=({statusCode:e,statusBallTooltip:t,slot:n,title:o,message:m,status:d,esim:A,card_present:u,isCompact:p})=>{const{motifPalette:h,motifPalette:{neutral03:_}}=(0,c.u)();return r.createElement(r.Fragment,null,r.createElement(E.A,{flexDirection:"column",flex:1,height:32},r.createElement(E.A,{borderBottom:p?void 0:`1px solid ${_}`,padding:p?void 0:s.YC,height:p?27:void 0,gap:s.kc,alignItems:"center"},r.createElement(E.A,{justifyContent:"center",alignItems:"center",position:"relative",pointerEvents:"none"},r.createElement(l.A,{color:h[x[e]]}),t?r.createElement(a.A,{description:t,placement:"top start"},r.createElement(I,null)):null),r.createElement(E.A,{width:70},r.createElement(i.A,{weight:"bold",size:"medium"},o||r.createElement(g.m$,{esim:A,slot:n,weight:p?"regular":"bold"}))),m?r.createElement(E.A,{width:p?"auto":150,flex:1},m):null,r.createElement(E.A,{...m?{width:90}:{flex:1},justifyContent:"flex-end"},d))))}},284428:(e,t,n)=>{n.d(t,{Im:()=>c,iL:()=>s,mQ:()=>a,pv:()=>i,q:()=>o});var r=n(296540),l=n(451449);function i(){return(0,r.useContext)(l.I)}function a(){return i().fields}function o(){return i().tooltipPopovers}function c(){return i().tooltipIcons}function s(){return i().labels}},328787:(e,t,n)=>{n.d(t,{A:()=>E});var r=n(469733),l=n(296540),i=n(149133),a=n(855019),o=n(551753),c=n(699784),s=n(532419),m=n(765562);const d=({adopted:e})=>l.createElement(o.A,{link:m.A.virtualNetworkConnectivity},l.createElement(c.sA,{id:e?"DEVICE_FALLBACK_IP_ADOPTED_WITH_UNIFI_GATEWAY_WARNING":"DEVICE_FALLBACK_IP_NOT_ADOPTED_WARNING",values:{bold:l.createElement("strong",null,l.createElement(c.sA,{id:e?"DEVICE_WARNING_FALLBACK_IP":"DEVICE_WARNING_ADOPTION_FAILED"}))}})),E=({ip:e,adopted:t,config_network:n})=>(0,r.useSelector)(s.m9)&&(0,i.W5)(e)&&n?.type===a.NL.DHCP?l.createElement(d,{adopted:t}):null},332898:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(296540),l=n(822336),i=n(998837),a=n(881295),o=n(371207);const c=({height:e,width:t,strength:n=0,color:l="currentColor",inactiveColor:i="currentColor"})=>r.createElement("svg",{width:t,height:e,viewBox:"0 0 31 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("rect",{width:"2.2",height:"10",rx:"1",fill:n>=1?l:i}),r.createElement("rect",{x:"3.2",width:"2.2",height:"10",rx:"1",fill:n>=2?l:i}),r.createElement("rect",{x:"6.4",width:"2.2",height:"10",rx:"1",fill:n>=3?l:i}),r.createElement("rect",{x:"9.6",width:"2.2",height:"10",rx:"1",fill:n>=4?l:i}),r.createElement("rect",{x:"12.8",width:"2.2",height:"10",rx:"1",fill:n>=5?l:i}),r.createElement("rect",{x:"16",width:"2.2",height:"10",rx:"1",fill:n>=6?l:i}),r.createElement("rect",{x:"19.2",width:"2.2",height:"10",rx:"1",fill:n>=7?l:i}),r.createElement("rect",{x:"22.4",width:"2.2",height:"10",rx:"1",fill:n>=8?l:i}),r.createElement("rect",{x:"25.6",width:"2.2",height:"10",rx:"1",fill:n>=9?l:i}),r.createElement("rect",{x:"28.8",width:"2.2",height:"10",rx:"1",fill:n>=10?l:i})),s=({height:e,signal_percent:t,width:n})=>{const{themeName:s}=(0,i.u)(),{strength:m,color:d,inactiveColor:E}=(0,r.useMemo)(()=>({strength:(0,o.O)(t),color:(0,a._i)(t,s),inactiveColor:l.Ay[`desktop-color-neutral-05-${s}`]}),[t,s]);return r.createElement(c,{height:e,width:n,strength:m,color:d,inactiveColor:E})}},360113:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(296540),l=n(71479),i=n(566723),a=n(294303);const o=(0,l.A)(a.A,{shouldForwardProp:e=>!["valueMaxWidth","keyMinWidth","compact"].includes(e)})`
  &:not(:last-child) {
    ${({compact:e})=>e?"":`margin-bottom: ${i.kc};`}
  }
  & > {
    &:nth-child(1) {
      min-width: ${({keyMinWidth:e})=>e}px;
    }
    &:nth-child(2) {
      max-width: ${({valueMaxWidth:e})=>e}px;
    }
  }
`,c=({children:e,valueMaxWidth:t=215,keyMinWidth:n=0,flexProps:l={},compact:a=!1})=>r.createElement(o,{width:"100%",justifyContent:"space-between",gap:i.kc,height:a?void 0:24,valueMaxWidth:t,keyMinWidth:n,compact:a,...l},e)},371207:(e,t,n)=>{n.d(t,{O:()=>l});const r=[[0,1],[2,10],[11,20],[21,30],[31,40],[41,50],[51,60],[61,70],[71,80],[81,90],[91,100]],l=e=>{const t=r.findIndex(([t,n])=>e>=t&&e<=n);return-1===t?0:t}},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={}))},424135:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(296540),l=n(566723),i=n(294303);const a=({children:e,tooltip:t})=>r.createElement(i.A,{maxWidth:"100%",overflow:"hidden",gap:l.YC,alignItems:"center"},r.createElement(i.A,{flex:1,overflow:"hidden"},e),t)},451449:(e,t,n)=>{n.d(t,{I:()=>r});const r=(0,n(296540).createContext)({fields:!1,labels:!1,tooltipPopovers:!1,tooltipIcons:!1})},470962:(e,t,n)=>{n.d(t,{A:()=>A});var r=n(296540),l=n(217439),i=n(823858),a=n(998837),o=n(566723),c=n(224948),s=n(349107),m=n(294303),d=n(699784),E=n(765562);const A=(0,r.memo)(({children:e})=>r.createElement(c.A,{icon:r.createElement(i.A,{size:"original",color:(0,a.u)().motifPalette.warning,variant:"fill"})},r.createElement(m.A,{flexDirection:"column",gap:o.kc},r.createElement(l.A,{size:"medium",color:"text-2"},r.createElement(d.sA,{id:"COMMON_DEVICE_OFFLINE_WARNING",values:{b:d.b,link:r.createElement(s.A,{href:E.A.offlineArticle,id:"COMMON_LEARN_MORE",noWrap:!0})}})),e)))},500045:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(296540),l=n(927099),i=n(699784),a=n(360113);const o=({displayable_version:e,flexProps:t})=>e?r.createElement(a.A,{flexProps:t},r.createElement(l.A,{color:"secondary",size:"body"},r.createElement(i.sA,{id:"COMMON_DEVICE_VERSION"})),r.createElement(l.A,{color:"tertiary",size:"body"},e)):null},530813:(e,t,n)=>{n.d(t,{A:()=>A,d:()=>E});var r=n(296540),l=n(217439),i=n(705145),a=n(71479),o=n(311785),c=n(566723),s=n(699784),m=n(795097),d=n(294303);const E=(0,a.A)(m.A,(0,o.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:n,maxItemCount:a=20,renderShowMore:o,showListMarkers:m,listGap:A}){return r.createElement(d.A,{flexDirection:"column",gap:c.YC},r.createElement(E,{showListMarkers:m,gap:A},e.slice(0,a).map((e,l)=>r.createElement("li",{key:t(e,l)},r.createElement(i.A,{variant:"inherit",isTruncated:!0},n(e))))),a&&e.length>a?o?o(e):r.createElement(l.A,{variant:"inherit"},r.createElement(s.sA,{id:"COMMON_X_MORE",values:{count:e.length-a}})):null)}},532114:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(217439);const l=(0,n(71479).A)(r.A,{shouldForwardProp:e=>"colorOverride"!==e})`
  ${({colorOverride:e})=>e?`color: ${e} !important`:""};
`},551753:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(296540),l=n(758649),i=n(217439),a=n(162420),o=n(823858),c=n(793336),s=n(998837),m=n(46119),d=n(699784),E=n(224948),A=n(294303);const u=(0,r.memo)(({children:e,customIcon:t,link:n,nested:u,extra:p,variant:h="warning",...g})=>{const{motifPalette:{warning:_,danger:v}}=(0,s.u)(),x=(0,r.useMemo)(()=>{switch(h){case"warning":return r.createElement(o.A,{size:"original",color:_,variant:"fill"});case"info":return r.createElement(a.A,{isActive:!0,size:"original",variant:"fill"});case"custom":return t;default:return r.createElement(c.A,{size:"medium",color:v,variant:"fill"})}},[h,_,v,t]),I=(0,r.useCallback)(()=>{m.A.open(n)},[n]);return r.createElement(E.A,{icon:x,nested:u,...g},r.createElement(A.A,{flexDirection:"column",alignItems:"flex-start"},r.createElement(i.A,null,e),r.createElement(i.A,null,n?r.createElement(l.A,{type:"button",variant:"inline",onClick:I},r.createElement(d.sA,{id:"COMMON_LEARN_MORE"})):null),p))})},568560:(e,t,n)=>{n.d(t,{A:()=>p});var r=n(469733),l=n(296540),i=n(217439),a=n(895795),o=n(383653),c=n(742920),s=n(115829),m=n(39705),d=n(294303),E=n(675359),A=n(699784),u=n(348466);const p=({ipv6:e=[],enabled:t=!0,size:n="inherit",color:p="inherit",showOnlyPrefix:h=!1})=>{const g=(0,r.useDispatch)(),_=(0,l.useCallback)(e=>{navigator.clipboard.writeText(e).then(()=>{g((0,E.ox)({icon:c.C.success,message:"COMMON_COPIED_TO_CLIPBOARD"}))})},[g]),v=(0,l.useCallback)((e,t)=>{t.stopPropagation(),t.preventDefault(),_(e)},[_]),x=(0,l.useMemo)(()=>(e=>{const t=e=>(0,o.G8)(e)?0:(0,o.ZV)(e)?1:2;return e.sort((e,n)=>t(e)-t(n))})(e||[]).map(e=>{const[t,n]=e.split(u.Ed);return h?`${(0,o.Gh)(t,Number(n))}/${n}`:(0,o.z2)(e)}),[e,h]),I=x?.[0];return I?l.createElement(d.A,{maxWidth:"100%",justifyContent:"flex-end"},l.createElement(s.A,{enabled:t,flexProps:{justifyContent:"flex-end",alignItems:"center"},color:t?p:"disabled",size:n},I),x?.length>1?l.createElement(m.A,{items:x,isInteractive:!0,showListMarkers:!1,getItemKey:e=>e,renderListItem:e=>l.createElement(l.Fragment,null,e,l.createElement(a.A,{size:"original",actionable:!0,onClick:t=>v(e,t)})),renderMultipleItemsSummary:()=>null}):l.createElement(a.A,{size:"original",actionable:!0,onClick:e=>v(I,e)})):l.createElement(i.A,{size:n,color:t?p:"disabled"},l.createElement(A.sA,{id:"COMMON_FALLBACK"}))}},613870:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(296540);const l=({strength:e,color:t,inactiveColor:n="currentColor",width:l,height:i})=>r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 27 26",width:l,height:i},r.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},r.createElement("rect",{fill:e>=1?t:n,x:"0",y:"16",width:"3",height:"10"}),r.createElement("rect",{fill:e>=2?t:n,x:"6",y:"12",width:"3",height:"14"}),r.createElement("rect",{fill:e>=3?t:n,x:"12",y:"8",width:"3",height:"18"}),r.createElement("rect",{fill:e>=4?t:n,x:"18",y:"4",width:"3",height:"22"}),r.createElement("rect",{fill:e>=5?t:n,x:"24",y:"0",width:"3",height:"26"})))},673283:(e,t,n)=>{n.d(t,{A:()=>A});var r=n(296540),l=n(217439),i=n(360113),a=n(999063),o=n(205830),c=n(500045),s=n(146784),m=n(689965),d=n(699784),E=n(777741);const A=({displayable_version:e,uptime:t,sys_stats:n,ip:A,ipv6:u,mac:p,imei:h,eSimEid:g})=>r.createElement(m.A,null,r.createElement(c.A,{displayable_version:e}),r.createElement(a.A,{uptime:t}),r.createElement(o.A,{sys_stats:n}),A?r.createElement(i.A,null,r.createElement(l.A,{color:"text-2"},r.createElement(d.sA,{id:"COMMON_IP"})),r.createElement(l.A,{color:"text-3"},A)):null,u?r.createElement(s.A,{ipv6_address:u}):null,p?r.createElement(i.A,null,r.createElement(l.A,{color:"text-2"},r.createElement(d.sA,{id:"COMMON_MAC"})),r.createElement(l.A,{color:"text-3"},p)):null,h?r.createElement(i.A,null,r.createElement(l.A,{color:"text-2"},r.createElement(d.sA,{id:"DEVICE_IMEI"})),r.createElement(l.A,{color:"text-3"},h)):null,g?r.createElement(E.A,{eid:g}):null)},675845:(e,t,n)=>{n.d(t,{Z:()=>l,z:()=>i});var r=n(6510);const l=(e,t)=>e?t.find(({mac:t})=>t===e):void 0,i=(e,t,n,l)=>{const i=t?` ${l({id:"DEVICE_PROPERTIES_PORT_WITH_NUMBER"},{port:t})}`:"";return e?`${e}${i}`:n?`${(0,r.Q)(n)}${i}`:l({id:"COMMON_FALLBACK"})}},689965:(e,t,n)=>{n.d(t,{A:()=>A,I:()=>r});var r,l=n(296540),i=n(822336),a=n(427853),o=n(71479),c=n(825032),s=n(566723),m=n(294303);!function(e){e.ACCORDION="accordion",e.BUTTON_LIST="buttonList"}(r||(r={}));const d=(0,o.A)(m.A,{shouldForwardProp:e=>!["marginBottom","isButtonList","margin","flex","width","padding","nested","background"].includes(e)})`
  background-color: ${({background:e,nested:t,theme:{themeName:n}})=>e||i.Ay[n===c.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}})=>i.Ay[`desktop-border-divider-${e}`]};\n      &:last-child {\n        border-bottom: none;\n      }\n    }\n  `:""}
`,E=(0,o.A)(a.A,{shouldForwardProp:e=>!["marginBottom","margin","flex","padding","nested","background"].includes(e)})`
  background-color: ${({background:e,nested:t,theme:{themeName:n}})=>e||i.Ay[n===c.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||i.Ay[t===c.S.DARK?"desktop-color-neutral-01-dark":"desktop-color-neutral-00-light"]};
      height: 48px;
      padding: 0 ${s.Ln};
    }
    > div:nth-child(2) {
      margin-bottom: 0;
      padding: 0 ${s.Ln} ${s.Ln};
      > div {
        padding: 0;
      }
    }
  }
`,A=({type:e,marginBottom:t,margin:n,padding:i,flex:a,width:o,nested:c,...s})=>"items"in s?l.createElement(E,{marginBottom:t,margin:n,padding:i,flex:a,nested:c,...s}):l.createElement(d,{nested:c,width:o,marginBottom:t,margin:n,padding:i,flex:a,isButtonList:e===r.BUTTON_LIST,...s},s.children)},766624:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(296540),l=n(271856),i=n(709690),a=n(284428),o=n(566723);const c=({description:e,isInteractive:t,portal:n=!0,cursorType:c,title:s,position:m,width:d,iconProps:E,disabled:A=!1})=>{const u=(0,a.Im)()||A,p=(0,a.q)();return r.createElement(l.A,{description:e,portal:n,isInteractive:t,style:{display:"flex",alignItems:"center"},cursorType:c,title:s,position:m,width:d,disableHover:p},r.createElement(i.A,{isActive:!0,size:"original",opacity:u?o.xN:void 0,...E}))}},770804:(e,t,n)=>{n.d(t,{A:()=>p});var r=n(296540),l=n(217439),i=n(71479),a=n(132196),o=n(566723),c=n(370969),s=n(294303),m=n(699784),d=n(269611);const E=(0,i.A)(s.A,{shouldForwardProp:e=>"alignLeft"!==e})`
  ${({alignLeft:e})=>e?"max-width: 288px;":"max-width: 100%; justify-content: center;"}
  gap: ${o.kc};
  align-items: center;
`,A=a.AH`
  max-width: 50%;
`,u=a.AH`
  flex: 0 1 auto;
  min-width: 0;
`,p=({type:e,name:t,mac:n,uplink:i,state:a,alignLeft:o,smallText:p,disabled:h})=>(0,d.n)(a,i)?r.createElement(E,{alignLeft:o},r.createElement(l.A,{size:p?"small":"medium",color:"text-2"},r.createElement(m.sA,{id:"DEVICE_MESHING_TO"})),r.createElement(s.A,{className:o?u:A},r.createElement(c.E,{device:{type:e,name:t,mac:n,uplink:i},size:p?"small":"medium",disabled:h,maxWidth:120}))):null},772317:(e,t,n)=>{n.d(t,{A:()=>N});var r,l=n(592563),i=n(296540),a=n(469733),o=n(217439),c=n(187483),s=n(699784),m=n(689965),d=n(86571),E=n(801081);!function(e){e.OPEN_MODAL="openModal"}(r||(r={}));const A=(0,E.Mz)(c.zn,e=>void 0!==e[r.OPEN_MODAL]);var u=n(523275),p=n(840279),h=n(919952);const g=e=>e[h.U.UIDB]||(0,u.A)(),_=(0,E.Mz)(g,({version:e})=>Boolean(e)),v=(0,E.Mz)(g,({devices:e})=>e||(0,p.A)());var x=n(765562),I=n(79871);const C=()=>{const e=(0,a.useDispatch)(),t=(0,a.useSelector)(_);return(0,i.useEffect)(()=>{t||(async()=>{const t=await fetch(x.A.fingerprintPublicDatabasePath),n=await t.json();e((0,I.$)(n))})()},[t,e]),t},O=({uidbDevice:e})=>{const t=(0,a.useSelector)(c.zn),n=t?.[r.OPEN_MODAL];return n?i.createElement(l.A,{onClick:()=>n(e)},i.createElement(o.A,{size:"medium",color:"inherit"},i.createElement(s.sA,{id:"DEVICE_SHOW_DETAILS"}))):null},f=({shortname:e})=>{const t=(0,a.useSelector)((e=>(0,E.Mz)(v,t=>t.find(t=>t.shortnames?.includes(e))||(0,u.A)()))(e));return C(),t?.compliance?i.createElement(m.A,{type:m.I.ACCORDION,items:[{id:"compliance",label:i.createElement(d.A,{id:"COMMON_COMPLIANCE"}),renderContent:()=>i.createElement(O,{uidbDevice:t}),openByDefault:!0}]}):null},N=({shortname:e})=>(0,a.useSelector)(A)?i.createElement(f,{shortname:e}):null},777741:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(296540),l=n(217439),i=n(115829),a=n(360113),o=n(699784);const c=({eid:e})=>e?r.createElement(a.A,{valueMaxWidth:270},r.createElement(l.A,{color:"text-2"},r.createElement(o.sA,{id:"DEVICE_ESIM_EID"})),r.createElement(i.A,{color:"text-3",size:"medium",flexProps:{justifyContent:"flex-end"}},e)):null},782558:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(296540),l=n(927099),i=n(137298),a=n(699784),o=n(360113);const c=({rx_rate:e})=>e>0?r.createElement(o.A,null,r.createElement(l.A,{color:"secondary",size:"body"},r.createElement(a.sA,{id:"COMMON_RX_RATE"})),r.createElement(l.A,{color:"tertiary",size:"body"},(0,i.Up)(e))):null},795097:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(71479),l=n(566723);const i=(0,r.A)("ul")`
  padding-left: ${l.Er};
  margin-bottom: 0;
  margin-top: 0;
`},819127:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(296540),l=n(766624),i=n(530813);const a=function({items:e,getItemKey:t,renderItem:n,maxItemCount:a,renderShowMore:o,showListMarkers:c,title:s,position:m,isInteractive:d,cursorType:E,listGap:A}){return r.createElement(l.A,{title:s,position:m,isInteractive:d,cursorType:E,description:r.createElement(i.A,{items:e,getItemKey:t,renderItem:n,maxItemCount:a,listGap:A,renderShowMore:o,showListMarkers:c})})}},881295:(e,t,n)=>{n.d(t,{_i:()=>u,_v:()=>A});var r=n(822336),l=n(998837),i=n(825032),a=n(996734),o=n(371207);const c={[a.OP.NO_SIGNAL]:"desktop-color-neutral-06",[a.OP.POOR]:"desktop-color-red-06",[a.OP.WEAK]:"desktop-color-red-06",[a.OP.FAIR]:"desktop-color-orange-06",[a.OP.GOOD]:"desktop-color-green-06",[a.OP.EXCELLENT]:"desktop-color-green-06"},s="desktop-color-red-06",m="desktop-color-orange-06",d="desktop-color-green-06",E={0:s,1:s,2:s,3:m,4:m,5:m,6:m,7:d,8:d,9:d,10:d},A=(e=a.OP.NO_SIGNAL)=>((e=a.OP.NO_SIGNAL,t=i.S.LIGHT)=>r.Ay[`${c[e]}-${t}`])(e,(0,l.u)().themeName),u=(e,t=i.S.LIGHT)=>r.Ay[`${(e=>E[(0,o.O)(e)]||"desktop-color-neutral-06")(e)}-${t}`]},932832:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(469733),l=n(296540),i=n(927099),a=n(777916),o=n(360113),c=n(258117),s=n(370969),m=n(294303),d=n(699784),E=n(927806),A=n(532419);const u=({activeItem:{uplink:{rx_bytes:e,"rx_bytes-r":t,rx_packets:n,speed:u,tx_bytes:p,"tx_bytes-r":h,tx_packets:g}={}},activeItem:_,deviceIsUltePro:v})=>{const x=(0,r.useSelector)(A.ID);return l.createElement(m.A,{flexDirection:"column"},l.createElement(o.A,null,l.createElement(i.A,{size:"body"},l.createElement(d.sA,{id:"COMMON_DEVICE"})),l.createElement(s.E,{device:_,maxWidth:200,separatePortNumber:!0})),l.createElement(c.A,{portSpeed:u}),v?l.createElement(o.A,null,l.createElement(i.A,{size:"body"},l.createElement(d.sA,{id:"DEVICE_PROPERTY_UPLINK_POWER"})),l.createElement(i.A,{color:"tertiary",size:"body"},l.createElement(d.sA,{id:"COMMON_UNIT_WATTS_SHORT",values:{value:(0,E.$Y)({device:_,devices:x})?.poe_power||0}}))):null,l.createElement(o.A,null,l.createElement(i.A,{size:"body"},l.createElement(d.sA,{id:"COMMON_ACTIVITY_DOWN_PKTS_BYTES"})),l.createElement(i.A,{color:"tertiary",size:"body"},n?n.toLocaleString():null,"/",l.createElement(a.A,{type:"bytes",input:e,size:"body",color:"tertiary"}))),l.createElement(o.A,null,l.createElement(i.A,{size:"body"},l.createElement(d.sA,{id:"COMMON_ACTIVITY_UP_PKTS_BYTES"})),l.createElement(i.A,{color:"tertiary",size:"body"},g?g.toLocaleString():null,"/",l.createElement(a.A,{type:"bytes",input:p,size:"body",color:"tertiary"}))),v?l.createElement(o.A,null,l.createElement(i.A,{size:"body"},l.createElement(d.sA,{id:"COMMON_ACTIVITY"})),l.createElement(a.A,{type:"bytes",input:t+h,options:"bitrate",size:"body",color:"tertiary"})):null)}},999063:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(296540),l=n(927099),i=n(90757),a=n(699784),o=n(360113);const c=({uptime:e,compact:t=!1})=>e>0?r.createElement(o.A,{compact:t},r.createElement(l.A,{color:"secondary",size:"body"},r.createElement(a.sA,{id:"COMMON_UPTIME"})),r.createElement(l.A,{color:"tertiary",size:"body"},(0,i.Ay)(e))):null}}]);