"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[15760],{22169:(e,t,r)=>{r.d(t,{A:()=>s});var o=r(296540),n=r(217439),a=r(699784),l=r(115829),i=r(39705),c=r(294303);const s=({ipv6:e,size:t="inherit",color:r="inherit"})=>{const s=e?.[0];return s?o.createElement(c.A,{width:"100%",justifyContent:"flex-end"},o.createElement(l.A,{flexProps:{justifyContent:"flex-end",alignItems:"center"},color:r,size:t},s),e?.length>1?o.createElement(i.A,{items:e,isInteractive:!0,showListMarkers:!1,getItemKey:e=>e,renderListItem:e=>o.createElement(o.Fragment,null,e),renderMultipleItemsSummary:()=>null}):null):o.createElement(n.A,{size:t,color:r},o.createElement(a.sA,{id:"COMMON_FALLBACK"}))}},32506:(e,t,r)=>{r.r(t),r.d(t,{default:()=>w});var o=r(296540),n=r(86571),a=r(689965),l=r(927806),i=r(13524),c=r(812454),s=r(927099),m=r(146784),d=r(294303),_=r(699784),p=r(170163),u=r(360113),E=r(999063),A=r(329708),f=r(32753),h=r(723544),g=r(507976),v=r(400242),R=r(500045);const y=({model:e,ip:t,lan_ip:r,ipv6:n,mac:a,displayable_version:l,uptime:i,outlet_table:c,outlet_ac_power_budget:y,outlet_ac_power_consumption:O,systemStatsMem:T,local_uplink_port:b})=>{const{usedPower:I,totalCurrent:N}=(0,o.useMemo)(()=>(0,p.hf)({outlet_table:c,outlet_ac_power_budget:y,outlet_ac_power_consumption:O}),[c,y,O]);return o.createElement(d.A,{flexDirection:"column"},o.createElement(A.A,{model:e}),o.createElement(g.A,{local_uplink_port:b}),o.createElement(v.A,{ip:t,lan_ip:r}),o.createElement(m.A,{ipv6_address:n}),o.createElement(h.A,{mac:a}),o.createElement(R.A,{displayable_version:l}),o.createElement(E.A,{uptime:i}),o.createElement(f.A,{systemStatsMem:T}),o.createElement(u.A,null,o.createElement(s.A,{size:"body"},o.createElement(_.sA,{id:"DEVICE_HEADER_POWER_USAGE"})),o.createElement(s.A,{color:"tertiary",size:"body"},o.createElement(_.sA,{id:"COMMON_UNIT_WATTS_SHORT",values:{value:I}}))),o.createElement(u.A,null,o.createElement(s.A,{size:"body"},o.createElement(_.sA,{id:"COMMON_CURRENT"})),o.createElement(s.A,{color:"tertiary",size:"body"},o.createElement(_.sA,{id:"COMMON_UNIT_AMPERES_SHORT",values:{value:N}}))))};var O=r(773412),T=r(823858);const b=(0,r(71479).A)(T.A)`
  color: ${({theme:{motifPalette:{warning:e}}})=>e};
  margin-right: ${({theme:{spacing:e}})=>e["spacing-s"]};
  margin-bottom: 2px;
`,I=({outlet_table:e,outlet_ac_power_budget:t,outlet_ac_power_consumption:r})=>{const{usedPower:n,maxPower:a,usedPowerPercentage:l,barVariant:i}=(0,o.useMemo)(()=>(0,p.hf)({outlet_table:e,outlet_ac_power_budget:t,outlet_ac_power_consumption:r}),[e,t,r]),c="warning"===i;return o.createElement(o.Fragment,null,o.createElement(d.A,{justifyContent:"space-between"},o.createElement(s.A,{weight:"bold",size:"body"},o.createElement(_.sA,{id:"DEVICE_PROPERTY_OVERVIEW_TOTAL_WATTS"})),o.createElement(s.A,{size:"body",color:c?"warning":"secondary"},c?o.createElement(b,{size:"medium"}):null,o.createElement(_.sA,{id:"DEVICE_PROPERTY_OVERVIEW_TOTAL_WATTS_VALUE",values:{sum:n,max:a}}))),o.createElement(O.A,{items:[{value:l,variant:i}]}))};var N=r(772317);const w=({activeItem:e,activeItem:{model:t,ip:r,lan_ip:s,ipv6:m,mac:d,displayable_version:_,uptime:p,outlet_table:u,outlet_ac_power_budget:E,outlet_ac_power_consumption:A,"system-stats":f,shortname:h}})=>{const{port_idx:g}=(0,l.q$)(e)||{};return o.createElement(o.Fragment,null,o.createElement(c.A,{activeItem:e}),o.createElement(a.A,null,o.createElement(y,{local_uplink_port:g,model:t,ip:r,lan_ip:s,ipv6:m,mac:d,displayable_version:_,uptime:p,outlet_table:u,outlet_ac_power_budget:E,outlet_ac_power_consumption:A,systemStatsMem:f?.mem})),o.createElement(i.A,{activeItem:e}),o.createElement(a.A,{type:a.I.ACCORDION,items:[{id:"powerUtilization",openByDefault:!0,label:o.createElement(n.A,{id:"DEVICE_HEADER_POWER_UTILIZATION"}),renderContent:()=>o.createElement(I,{outlet_table:u,outlet_ac_power_budget:E,outlet_ac_power_consumption:A})}]}),o.createElement(N.A,{shortname:h}))}},32753:(e,t,r)=>{r.d(t,{A:()=>c});var o=r(296540),n=r(927099),a=r(699784),l=r(780811),i=r(360113);const c=({systemStatsMem:e,compact:t=!1})=>{const r=(0,l.HBQ)(e);return r?o.createElement(i.A,{compact:t},o.createElement(n.A,{color:"secondary",size:"body"},o.createElement(a.sA,{id:"DEVICE_PROPERTY_OVERVIEW_MEMORY_USAGE"})),o.createElement(n.A,{color:"tertiary",size:"body"},r,"%")):null}},39705:(e,t,r)=>{r.d(t,{A:()=>s});var o=r(296540),n=r(705145),a=r(699784),l=r(115829),i=r(424135),c=r(819127);const s=function({items:e,renderMultipleItemsSummary:t,renderListItem:r,renderNoItems:s,getItemKey:m,enabled:d=!0,showListMarkers:_,cursorType:p,isInteractive:u}){const E=d?"inherit":"disabled";return e.length>1?o.createElement(i.A,{tooltip:o.createElement(c.A,{items:e,getItemKey:m,renderItem:r,showListMarkers:_,isInteractive:u,cursorType:p})},o.createElement(l.A,{color:E,cursorType:p},t(e))):1===e.length?o.createElement(l.A,{color:E,cursorType:p},r(e[0])):s?o.createElement(o.Fragment,null,s()):o.createElement(n.A,{isTruncated:!0,color:E},o.createElement(a.sA,{id:"COMMON_FALLBACK"}))}},56437:(e,t,r)=>{var o,n;r.d(t,{c:()=>n,e:()=>o}),function(e){e.INITIALIZING="initializing",e.DISCONNECTED="disconnected",e.SEARCHING="searching",e.BOUND="bound",e.STANDBY="standby",e.POWER_DELIVERING="power_delivering",e.OUT_OF_POWER_BUDGET="out_of_power_budget",e.POWER_OVERLOAD="power_overload",e.BLOCKED="blocked"}(o||(o={})),function(e){e.AUTO="auto",e.MANUAL="manual",e.DISABLED="disabled"}(n||(n={}))},124092:(e,t,r)=>{r.d(t,{A:()=>f});var o=r(469733),n=r(296540),a=r(962926),l=r(705145),i=r(71479),c=r(132196),s=r(6510),m=r(130851),d=r(566723),_=r(294303),p=r(6176);const u=c.AH`
  margin-bottom: ${d.Ln};
  margin-top: ${d.Ln};
`,E=(0,i.A)("div")`
  align-self: center;
  overflow: hidden;
  word-break: break-word;
`,A=(0,i.A)("img")`
  width: 40px;
  height: 40px;
  object-fit: contain;
`,f=({children:e,description:t,meshingDescription:r,isOffline:i,activeItem:f,style:h,className:g,isStacking:v})=>{const R=(0,o.useSelector)(m.p);return n.createElement(a.A,{className:(0,c.cx)(u,g),sections:[n.createElement("div",null,n.createElement(_.A,{gap:d.kc},v?n.createElement(A,{src:`${R}/topology/stacking.png`,alt:"stacked"}):n.createElement(p.A,{model:f.model,width:40,height:40}),n.createElement(E,{style:h},n.createElement(l.A,{color:i?"text-3":"text-1",weight:"bold",isTruncated:!0},(0,s.Lm)(f.model)),t)),r,e)]})}},136283:(e,t,r)=>{r.d(t,{A:()=>f});var o=r(296540),n=r(903992),a=r(793336),l=r(722860);const i=(0,l.c)(n.A),c=o.memo(({headerIcon:e,title:t,motif:r="light"})=>{if(!e&&!t)return null;const a=e;return o.createElement("div",{className:i("title",`title-${r}`)},void 0!==a&&(l=a,c={className:n.A.headerIcon},o.isValidElement(l)?o.cloneElement(l,c):l?o.createElement(l,c):null),t);var l,c}),s=(0,l.c)(n.A),m=o.memo(({className:e,header:t,headerIcon:r,title:n,onRequestClose:l,motif:i,closeIconProps:m})=>{if(void 0!==t){if(o.isValidElement(t))return o.cloneElement(t);{const r=t;return o.createElement(r,{className:e,onRequestClose:l})}}return o.createElement("header",{className:s.concat(e)("header",n&&"hasTitle")},o.createElement(c,{headerIcon:r,title:n,motif:i}),void 0!==l&&o.createElement("button",{onClick:l,className:s("closeButton"),type:"button"},o.createElement(a.A,{...m,actionable:!0,motif:i,className:s("closeIcon",`closeIcon-${i}`)})))});var d=r(325898),_=r(758649),p=r(676933);const u=(0,l.c)(n.A),E=o.memo(e=>{const{className:t,footer:r,actions:a,onRequestClose:l,motif:i}=e,{motif:c}=(0,d.A)(i);if(r){if(o.isValidElement(r))return o.cloneElement(r,{onRequestClose:l});{const e=r;return o.createElement(e,{className:t,onRequestClose:l})}}if(!a)return null;const s=({text:e,ref:t,...r},n)=>o.createElement(_.A,{ref:t,key:n,motif:c,...r},e),m=[];return a.forEach((e,t)=>{Array.isArray(e)?(t&&m.push(o.createElement("div",{key:`spacer-${t}`,className:n.A.footerActionSpacer})),m.push(...e.map((e,r)=>s(e,`${t}_${r}`)))):m.push(s(e,t.toString()))}),o.createElement("footer",{className:u.concat(t)("footer",`footer-${c}`)},o.createElement(p.A,{className:n.A.footerButtonGroup},m))}),A=(0,l.c)(n.A),f=e=>{const{headerClassName:t,contentClassName:r,footerClassName:n,className:a,overlayClassName:l,rendererClassName:i,...c}=e,{actions:s,allowOverflow:_,children:p,flushContent:u,footer:f,header:h,motif:g,title:v}=c,{motif:R}=(0,d.A)(g);return o.createElement(o.Fragment,null,o.createElement(m,{className:t,...c,motif:R}),o.createElement("div",{className:A.concat(r)("content",`content-${R}`,u&&"content-flush",!h&&!v&&!u&&"content-noHeader",!f&&!s&&!u&&"content-noFooter",_&&"content-allowOverflow")},p),o.createElement(E,{className:n,...c}))}},146784:(e,t,r)=>{r.d(t,{A:()=>p});var o=r(296540),n=r(349424),a=r(217439),l=r(383653),i=r(568560),c=r(22169),s=r(294303),m=r(699784),d=r(348466),_=r(360113);const p=(0,o.memo)(({ipv6_address:e=[],wan_dhcpv6_pd_size:t})=>{const{globalAddresses:r,linkLocalAddress:p}=(0,o.useMemo)(()=>{const t=[];let r=null;for(let o=0;o<e.length;o+=1){const a=e[o];new n.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?o.createElement(o.Fragment,null,o.createElement(_.A,null,o.createElement(a.A,{color:"text-2",size:"medium"},o.createElement(m.sA,{id:"COMMON_IPV6_ADDRESS"})),o.createElement(i.A,{ipv6:r,size:"medium",color:"text-3"})),t?o.createElement(_.A,null,o.createElement(a.A,{color:"text-2",size:"medium"},o.createElement(m.sA,{id:"COMMON_IPV6_PREFIX"})),o.createElement(s.A,{flex:"1",minWidth:"0",justifyContent:"flex-end"},o.createElement(c.A,{ipv6:[`${(0,l.Gh)(r[0],t)}/${t}`],color:"text-3",size:"medium"}))):null,p?o.createElement(_.A,null,o.createElement(a.A,{color:"text-2",size:"medium"},o.createElement(m.sA,{id:"COMMON_IPV6_LINK_LOCAL"})),o.createElement(i.A,{ipv6:[p],size:"medium",color:"text-3"})):null):null})},167579:(e,t,r)=>{r.d(t,{A:()=>o});const o=[12,54]},170163:(e,t,r)=>{r.d(t,{ST:()=>f,FP:()=>h,o3:()=>_,Z4:()=>R,Ib:()=>A,I:()=>p,F9:()=>N,eV:()=>w,Yk:()=>O,y$:()=>b,AD:()=>T,Yf:()=>y,eq:()=>v,hf:()=>g});var o=r(847439),n=r(967431),a=r(101617),l=r(860631),i=r(325752),c=r(953394),s=r(56437),m=r(167579);var d=r(557260);const _=(e,t=0,r=void 0)=>{let o=(e.outlet_table||[])[t]||{index:t,has_relay:!1,has_metering:!1,relay_state:!1,cycle_enabled:!1},n=(e.outlet_overrides||[])[t]||{};return void 0!==r&&(o=(e.outlet_table||[]).find(e=>e.index===r),n=(e.outlet_overrides||[]).find(e=>e.index===r)),(0,l.sQ)(e,d.A.AUTO_RELAY)&&e.vbms_table?.battpool?{...o}:{...o,...n}},p=(e,t)=>e&&Object.keys(e).find(r=>e[r]&&e[r].includes(t))||c.s.STANDARD,u=(e,t)=>{return(a[e]?.outlets?.meta||{})[(r=t,r.toString().padStart(2,"0"))]||{};var r},E=e=>{if(e){if(Array.isArray(e))return e;let t;const r=String(e);if(/^[0-9]+$/.test(r)?t={start:0,end:parseInt(r,10)}:/^([0-9]+)-([0-9]+)$/.test(r)&&(t={start:parseInt(r.split("-")[0],10),end:parseInt(r.split("-")[1],10)}),t)return(0,o.A)(t.end-t.start+1,e=>e+t.start)}return[]},A=e=>{const t=a[e]?.outlets;return{[c.s.STANDARD]:E(t?.[c.s.STANDARD]),[c.s.USB]:E(t?.[c.s.USB]),[c.s.LAN]:E(t?.[c.s.LAN]),[c.s.RJ45]:E(t?.[c.s.RJ45]),[c.s.WAN]:E(t?.[c.s.WAN]),[c.s.SURGE]:E(t?.[c.s.SURGE])}},f=(e,t)=>{const r=A(t);let n=2;e<=5&&(n=1);const a=Math.ceil(e/n);return(0,o.A)(n,e=>(0,o.A)(a,o=>{const a=o*n+e+1,l=p(r,a),i=u(t,a);return a?{outletNumber:a,outletType:l,iconRotation:i.rotation,centerIcon:i.center,portIdx:i.portIdx,nonClickable:i.nonClickable,marginLeft:i.marginLeft}:void 0}))},h=(e,t)=>{const r=A(t);return e.map(e=>e.split(" ").map(e=>{const o=e.split("-"),n=parseInt(o[0],10);if(Number.isNaN(n))return;const{rotation:a,center:l,portIdx:i,nonClickable:s,marginLeft:m,surgeType:d,vertical:_}=u(t,n);return{outletNumber:n,outletType:p(r,n),iconRotation:a,centerIcon:l,portIdx:i,nonClickable:s,surgeType:d,marginLeft:m,subOutlets:o.length>1?o.map(e=>"__"===e?void 0:parseInt(e,10)):void 0,vertical:_,showBatteryPowered:Boolean(r[c.s.STANDARD]?.length&&r[c.s.SURGE]?.length)}}))},g=({outlet_table:e=[],outlet_ac_power_budget:t=String(1875),outlet_ac_power_consumption:r=String(0)})=>{const o=(0,n.A)(Number(t),2),a=(0,n.A)(Number(r),2);let l=0;e.forEach(({outlet_current:e})=>{l+=Number(e)||0});const i={usedPower:a,maxPower:o,totalCurrent:(0,n.A)(l,2),usedPowerPercentage:a/o*100,barVariant:"primary"};return i.usedPowerPercentage>81&&(i.barVariant="warning"),i},v=(e,t)=>{if(t)switch(e.index){case 1:return 3;case 2:return 4;case 3:return 1;case 4:return 2}},R=({rps:e,rps_override:t},r=0)=>({...(e?.rps_port_table||[]).find(e=>e?.port_idx===r)||{},...(t?.rps_port_table||[]).find(e=>e?.port_idx===r)||{}}),y=e=>{switch(!0){case e?.port_state===s.e.OUT_OF_POWER_BUDGET:case e?.port_state===s.e.BLOCKED:case e?.anomalies>0:return i.FZ.WARNING;case e?.power_delivering:return i.FZ.POWER_DELIVERING;case e?.high_priority:return i.FZ.HIGH_PRIORITY;default:return}},O=e=>{const t=[];return e.port_mode===s.c.DISABLED||([s.e.OUT_OF_POWER_BUDGET,s.e.BLOCKED].includes(e?.port_state)||e?.anomalies>0?t.push(i.FZ.WARNING):(e?.power_delivering&&t.push(i.FZ.POWER_DELIVERING),e?.high_priority&&t.push(i.FZ.HIGH_PRIORITY),(e?.power_12v_batt_guard||e?.power_54v_batt_guard)&&t.push(i.FZ.BATTERY_PROTECTED))),t},T=e=>e?.anomalies&&0!==e?.anomalies||e?.port_error_disabled?"red06":e.port_state===s.e.OUT_OF_POWER_BUDGET?"neutral00":e?.power_active||e.port_mode===s.c.DISABLED?e?.power_active&&e.port_mode!==s.c.DISABLED?"success":e.port_mode===s.c.DISABLED?"":"neutral04":"neutral07",b=e=>{if(!(e?.anomalies&&0!==e?.anomalies||e?.port_error_disabled))return e.port_state===s.e.OUT_OF_POWER_BUDGET?"neutral05":e.port_mode===s.c.DISABLED?"neutral04":void 0},I=(e,t)=>({id:t?.port_idx,peer:t?.peer,powerRequired:t?.port_state===s.e.STANDBY?Number(t?.peer?.[`power_required_${e}v`]||0):Number(t?.[`power_${e}v_power`]||0)}),N=e=>m.A.map(t=>{const r={voltage:t,utilizationActive:!1,backup:{sum:0,total:0,ports:[]},delivering:{sum:0,total:0,ports:[]}};return(e?.rps_port_table||[]).forEach(e=>{e?.port_state===s.e.STANDBY&&e?.peer[`power_required_max_${t}v`]>0&&(r.backup.ports.push(I(t,e)),r.backup.sum+=e?.peer[`power_required_${t}v`]||0),e?.port_state===s.e.POWER_DELIVERING&&e?.[`power_${t}v_power`]>0&&r.delivering.ports.push(I(t,e))}),r.backup.total=Math.max(e?.[`power_supply_${t}v`],r.backup.sum),r.delivering.sum=e?.[`power_delivering_${t}v`],r.delivering.total=e?.[`power_supply_${t}v`],(r.delivering.sum||r.backup.sum)&&(r.utilizationActive=!0),r}),w=(e,t)=>{const r=N(e),o=t?.[0]?.relay_state?+(t?.[0]?.outlet_power||0):0,n=r.findIndex(e=>e.voltage===m.A[1]);return o&&n>-1&&(r[n].utilizationActive=!0,r[n].delivering.sum+=o,r[n].delivering.outlet={id:"1",powerRequired:o}),r}},258117:(e,t,r)=>{r.d(t,{A:()=>p});var o=r(296540),n=r(325898),a=r(927099),l=r(71479),i=r(903216),c=r(294303),s=r(699784),m=r(360113),d=r(863489);const _=(0,l.A)(c.A)`
  .tooltip-position-fixer {
    margin-right: -14px;
  }
`,p=({uplink:e,portSpeed:t})=>{const r=Number(t||e?.speed),{motif:l}=(0,n.A)();return r>0?o.createElement(m.A,null,o.createElement(a.A,{color:"secondary",size:"body"},o.createElement(s.sA,{id:"COMMON_EXPERIENCE"})),o.createElement(_,{alignItems:"center"},o.createElement(a.A,{style:{color:(0,d.xe)(r,l,!1)},size:"body"},(0,i.ir)(r)))):null}},329708:(e,t,r)=>{r.d(t,{A:()=>c});var o=r(296540),n=r(927099),a=r(6510),l=r(699784),i=r(360113);const c=({model:e})=>o.createElement(i.A,null,o.createElement(n.A,{color:"secondary",size:"body"},o.createElement(l.sA,{id:"COMMON_MODEL"})),o.createElement(n.A,{color:"tertiary",size:"body"},(0,a.Lm)(e)))},424135:(e,t,r)=>{r.d(t,{A:()=>l});var o=r(296540),n=r(566723),a=r(294303);const l=({children:e,tooltip:t})=>o.createElement(a.A,{maxWidth:"100%",overflow:"hidden",gap:n.YC,alignItems:"center"},o.createElement(a.A,{flex:1,overflow:"hidden"},e),t)},470962:(e,t,r)=>{r.d(t,{A:()=>p});var o=r(296540),n=r(217439),a=r(823858),l=r(998837),i=r(566723),c=r(224948),s=r(349107),m=r(294303),d=r(699784),_=r(765562);const p=(0,o.memo)(({children:e})=>o.createElement(c.A,{icon:o.createElement(a.A,{size:"original",color:(0,l.u)().motifPalette.warning,variant:"fill"})},o.createElement(m.A,{flexDirection:"column",gap:i.kc},o.createElement(n.A,{size:"medium",color:"text-2"},o.createElement(d.sA,{id:"COMMON_DEVICE_OFFLINE_WARNING",values:{b:d.b,link:o.createElement(s.A,{href:_.A.offlineArticle,id:"COMMON_LEARN_MORE",noWrap:!0})}})),e)))},500045:(e,t,r)=>{r.d(t,{A:()=>i});var o=r(296540),n=r(927099),a=r(699784),l=r(360113);const i=({displayable_version:e,flexProps:t})=>e?o.createElement(l.A,{flexProps:t},o.createElement(n.A,{color:"secondary",size:"body"},o.createElement(a.sA,{id:"COMMON_DEVICE_VERSION"})),o.createElement(n.A,{color:"tertiary",size:"body"},e)):null},507976:(e,t,r)=>{r.d(t,{A:()=>i});var o=r(296540),n=r(927099),a=r(699784),l=r(360113);const i=({local_uplink_port:e})=>e?o.createElement(l.A,null,o.createElement(n.A,{color:"secondary",size:"body"},o.createElement(a.sA,{id:"COMMON_CONNECTED_VIA"})),o.createElement(n.A,{color:"tertiary",size:"body"},o.createElement(a.sA,{id:"COMMON_LOCAL_UPLINK_PORT",values:{portIdx:e}}))):null},530813:(e,t,r)=>{r.d(t,{A:()=>p,d:()=>_});var o=r(296540),n=r(217439),a=r(705145),l=r(71479),i=r(311785),c=r(566723),s=r(699784),m=r(795097),d=r(294303);const _=(0,l.A)(m.A,(0,i.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 p=function({items:e,getItemKey:t,renderItem:r,maxItemCount:l=20,renderShowMore:i,showListMarkers:m,listGap:p}){return o.createElement(d.A,{flexDirection:"column",gap:c.YC},o.createElement(_,{showListMarkers:m,gap:p},e.slice(0,l).map((e,n)=>o.createElement("li",{key:t(e,n)},o.createElement(a.A,{variant:"inherit",isTruncated:!0},r(e))))),l&&e.length>l?i?i(e):o.createElement(n.A,{variant:"inherit"},o.createElement(s.sA,{id:"COMMON_X_MORE",values:{count:e.length-l}})):null)}},568560:(e,t,r)=>{r.d(t,{A:()=>E});var o=r(469733),n=r(296540),a=r(217439),l=r(895795),i=r(383653),c=r(742920),s=r(115829),m=r(39705),d=r(294303),_=r(675359),p=r(699784),u=r(348466);const E=({ipv6:e=[],enabled:t=!0,size:r="inherit",color:E="inherit",showOnlyPrefix:A=!1})=>{const f=(0,o.useDispatch)(),h=(0,n.useCallback)(e=>{navigator.clipboard.writeText(e).then(()=>{f((0,_.ox)({icon:c.C.success,message:"COMMON_COPIED_TO_CLIPBOARD"}))})},[f]),g=(0,n.useCallback)((e,t)=>{t.stopPropagation(),t.preventDefault(),h(e)},[h]),v=(0,n.useMemo)(()=>(e=>{const t=e=>(0,i.G8)(e)?0:(0,i.ZV)(e)?1:2;return e.sort((e,r)=>t(e)-t(r))})(e||[]).map(e=>{const[t,r]=e.split(u.Ed);return A?`${(0,i.Gh)(t,Number(r))}/${r}`:(0,i.z2)(e)}),[e,A]),R=v?.[0];return R?n.createElement(d.A,{maxWidth:"100%",justifyContent:"flex-end"},n.createElement(s.A,{enabled:t,flexProps:{justifyContent:"flex-end",alignItems:"center"},color:t?E:"disabled",size:r},R),v?.length>1?n.createElement(m.A,{items:v,isInteractive:!0,showListMarkers:!1,getItemKey:e=>e,renderListItem:e=>n.createElement(n.Fragment,null,e,n.createElement(l.A,{size:"original",actionable:!0,onClick:t=>g(e,t)})),renderMultipleItemsSummary:()=>null}):n.createElement(l.A,{size:"original",actionable:!0,onClick:e=>g(R,e)})):n.createElement(a.A,{size:r,color:t?E:"disabled"},n.createElement(p.sA,{id:"COMMON_FALLBACK"}))}},676933:(e,t,r)=>{r.d(t,{A:()=>a});var o=r(296540);(0,r(349005).A)(".buttonGroup__ALLyOzkO{align-items:center;display:flex;margin:0}.cozy__ALLyOzkO>*{margin-left:16px}.cozy__ALLyOzkO>:first-child{margin-left:0}.cozy__ALLyOzkO.vertical__ALLyOzkO>*{margin:8px 0 0}.cozy__ALLyOzkO.vertical__ALLyOzkO>:first-child{margin-top:0}.comfy__ALLyOzkO>*{margin:0}.comfy__ALLyOzkO.vertical__ALLyOzkO>*{margin:16px 0 0}.comfy__ALLyOzkO.vertical__ALLyOzkO>:first-child{margin-top:0}.smash__ALLyOzkO>*{margin:0}.joined__ALLyOzkO{border-radius:20px;overflow:hidden}.joined__ALLyOzkO>*{border-radius:0}.playerControls__ALLyOzkO{background-color:#f9fafa;border-radius:20px;padding:0 42px}.playerControls__ALLyOzkO.vertical__ALLyOzkO{padding:42px 0}.vertical__ALLyOzkO{flex-direction:column;justify-content:center}");const n=(0,r(722860).c)({buttonGroup:"buttonGroup__ALLyOzkO",cozy:"cozy__ALLyOzkO",vertical:"vertical__ALLyOzkO",comfy:"comfy__ALLyOzkO",smash:"smash__ALLyOzkO",joined:"joined__ALLyOzkO",playerControls:"playerControls__ALLyOzkO"}),a=({variant:e,vertical:t,children:r,className:a,...l})=>o.createElement("div",{className:n.concat(a)("buttonGroup",e&&e,t&&"vertical"),...l},r);a.defaultProps={variant:"cozy",vertical:!1}},723544:(e,t,r)=>{r.d(t,{A:()=>i});var o=r(296540),n=r(927099),a=r(699784),l=r(360113);const i=({mac:e,compact:t=!1})=>e?o.createElement(l.A,{compact:t},o.createElement(n.A,{color:"secondary",size:"body"},o.createElement(a.sA,{id:"COMMON_MAC_ADDRESS"})),o.createElement(n.A,{color:"tertiary",size:"body"},e)):null},772317:(e,t,r)=>{r.d(t,{A:()=>b});var o,n=r(592563),a=r(296540),l=r(469733),i=r(217439),c=r(187483),s=r(699784),m=r(689965),d=r(86571),_=r(801081);!function(e){e.OPEN_MODAL="openModal"}(o||(o={}));const p=(0,_.Mz)(c.zn,e=>void 0!==e[o.OPEN_MODAL]);var u=r(523275),E=r(840279),A=r(919952);const f=e=>e[A.U.UIDB]||(0,u.A)(),h=(0,_.Mz)(f,({version:e})=>Boolean(e)),g=(0,_.Mz)(f,({devices:e})=>e||(0,E.A)());var v=r(765562),R=r(79871);const y=()=>{const e=(0,l.useDispatch)(),t=(0,l.useSelector)(h);return(0,a.useEffect)(()=>{t||(async()=>{const t=await fetch(v.A.fingerprintPublicDatabasePath),r=await t.json();e((0,R.$)(r))})()},[t,e]),t},O=({uidbDevice:e})=>{const t=(0,l.useSelector)(c.zn),r=t?.[o.OPEN_MODAL];return r?a.createElement(n.A,{onClick:()=>r(e)},a.createElement(i.A,{size:"medium",color:"inherit"},a.createElement(s.sA,{id:"DEVICE_SHOW_DETAILS"}))):null},T=({shortname:e})=>{const t=(0,l.useSelector)((e=>(0,_.Mz)(g,t=>t.find(t=>t.shortnames?.includes(e))||(0,u.A)()))(e));return y(),t?.compliance?a.createElement(m.A,{type:m.I.ACCORDION,items:[{id:"compliance",label:a.createElement(d.A,{id:"COMMON_COMPLIANCE"}),renderContent:()=>a.createElement(O,{uidbDevice:t}),openByDefault:!0}]}):null},b=({shortname:e})=>(0,l.useSelector)(p)?a.createElement(T,{shortname:e}):null},795097:(e,t,r)=>{r.d(t,{A:()=>a});var o=r(71479),n=r(566723);const a=(0,o.A)("ul")`
  padding-left: ${n.Er};
  margin-bottom: 0;
  margin-top: 0;
`},812454:(e,t,r)=>{r.d(t,{A:()=>G});var o=r(296540),n=r(71479),a=r(566723),l=r(218234),i=r(294303),c=r(217439),s=r(998837),m=r(842630),d=r(224948),_=r(699784),p=r(469733),u=r(824182),E=r(264963),A=r(822336),f=r(705145);const h=(0,n.A)(i.A)`
  flex-direction: column;
  margin-top: ${a.kc};
  padding-top: ${a.kc};
  border-top: ${({theme:{themeName:e}})=>A.Ay[`desktop-border-divider-${e}`]};
`,g=(0,n.A)(i.A)`
  width: 100%;
  justify-content: space-between;
`,v=(0,n.A)(i.A)`
  gap: ${a.Ln};
  align-items: center;
`,R=(0,n.A)(f.A)`
  max-width: 150px;
`,y=(0,o.memo)(({mac:e,replacementMac:t})=>{const r=(0,p.useDispatch)(),[n,a]=(0,o.useState)(!1),l=(0,o.useCallback)(()=>{a(!0),r((0,E.X2)(e)).finally(()=>{a(!1)})},[r,e]);return o.createElement(h,null,o.createElement(g,null,o.createElement(R,{isTruncated:!0,size:"medium",color:"text-2"},o.createElement(_.sA,{id:"DEVICE_REPLACEMENT_DEVICE"})),o.createElement(v,null,o.createElement(c.A,{size:"medium",color:"text-3"},t),o.createElement(u.A,{actionable:!0,onClick:l,disabled:n}))))}),O=(0,n.A)(i.A)`
  flex-direction: column;
  gap: ${a.kc};
`;var T=r(709690),b=r(823858),I=r(768195);const N=({state:e},{uBlue06:t,orange06:r})=>{switch(e){case I.gQ.WAITING_FOR_REPLACEMENT:return o.createElement(T.A,{size:"original",color:t,variant:"fill"});case I.gQ.WAITING_FOR_REPLACED_DEVICE_DISCONNECT:case I.gQ.INCOMPATIBLE_REPLACEMENT:case I.gQ.REPLACEMENT_ALREADY_ASSIGNED:case I.gQ.CANNOT_REPLACE:default:return o.createElement(b.A,{size:"original",color:r,variant:"fill"})}},w=({state:e})=>{switch(e){case I.gQ.WAITING_FOR_REPLACEMENT:return"DEVICE_REPLACEMENT_PENDING_WAITING_FOR_REPLACEMENT";case I.gQ.WAITING_FOR_REPLACED_DEVICE_DISCONNECT:return"DEVICE_REPLACEMENT_PENDING_WAITING_FOR_REPLACED_DEVICE_DISCONNECT";case I.gQ.INCOMPATIBLE_REPLACEMENT:return"DEVICE_REPLACEMENT_PENDING_INCOMPATIBLE_REPLACEMENT";case I.gQ.REPLACEMENT_ALREADY_ASSIGNED:case I.gQ.CANNOT_REPLACE:default:return"DEVICE_REPLACEMENT_PENDING_CANNOT_REPLACE"}},L=(0,o.memo)(({mac:e,replacement:t})=>{const{motifPalette:r}=(0,s.u)();return t?.device_mac?o.createElement(m.A,null,o.createElement(d.A,{icon:N(t,r)},o.createElement(O,null,o.createElement(c.A,{size:"medium",color:"text-2"},o.createElement(_.sA,{id:w(t),values:{b:_.b}}))),o.createElement(y,{mac:e,replacementMac:t.device_mac}))):null});var B=r(211908),C=r(188912),x=r(470962),k=r(281884),D=r(130648),K=r(392699),M=r(124092),z=r(236037),P=r(683086);const S=(0,n.A)(i.A)`
  & > :first-child {
    margin-top: ${a.kc};
  }
`,G=({activeItem:e,activeItem:{deviceState:t,uplink:r,mac:n,model:i,type:c,replacement:s},showPortOverview:m,hidePortsButton:d,isStacking:_,multipleDisplayedDevicesData:p,overviewChildren:u,children:E})=>{const A=(0,o.useMemo)(()=>(0,k.H)(t,r?.type),[t,r?.type]),f=Boolean(e?.port_table?.length),h=m&&f;return o.createElement(o.Fragment,null,o.createElement(M.A,{activeItem:e,isOffline:A===K.v.OFFLINE,description:o.createElement(C.A,{activeItem:e,connectionStatus:A}),meshingDescription:o.createElement(D.A,{activeItem:e,connectionStatus:A}),isStacking:_},u,h?o.createElement("div",{style:{marginTop:a.Ln}},o.createElement(l.A,{activeItem:e,disableOnPortClick:!0,showFullScreenDiagramButton:!1,useBubbleWrapper:!1,multipleDisplayedDevicesData:p,isStacking:_})):null,o.createElement(S,{gap:a.kc,flexDirection:"column"},o.createElement(z.A,{activeItem:e}),!d&&f?o.createElement(P.A,{mac:n}):null),E),A===K.v.OFFLINE?o.createElement(x.A,null,s?.device_mac?null:o.createElement(B.A,{mac:n,model:i,type:c})):null,o.createElement(L,{mac:n,replacement:s}))}},819127:(e,t,r)=>{r.d(t,{A:()=>l});var o=r(296540),n=r(766624),a=r(530813);const l=function({items:e,getItemKey:t,renderItem:r,maxItemCount:l,renderShowMore:i,showListMarkers:c,title:s,position:m,isInteractive:d,cursorType:_,listGap:p}){return o.createElement(n.A,{title:s,position:m,isInteractive:d,cursorType:_,description:o.createElement(a.A,{items:e,getItemKey:t,renderItem:r,maxItemCount:l,listGap:p,renderShowMore:i,showListMarkers:c})})}},842630:(e,t,r)=>{r.d(t,{A:()=>l});var o=r(469733),n=r(296540),a=r(602021);const l=({children:e=null})=>(0,o.useSelector)(a.EL)?null:n.createElement(n.Fragment,null,e)},895795:(e,t,r)=>{r.d(t,{A:()=>a});var o=r(296540),n=r(629318);const a=(0,r(51946).w)(e=>(0,o.createElement)("svg",(0,n.d)({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em"},e),(0,o.createElement)("rect",{x:3,y:5,width:12,height:12,rx:1,fill:"currentColor",className:e.twotonedclassname}),(0,o.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,o.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})))},903992:(e,t,r)=>{r.d(t,{A:()=>n});var o=r(349005),n={overlay:"overlay__B4Kpm1RT","overlay-light":"overlay-light__B4Kpm1RT","overlay-dark":"overlay-dark__B4Kpm1RT","overlay-afterOpen":"overlay-afterOpen__B4Kpm1RT","overlay-beforeClose":"overlay-beforeClose__B4Kpm1RT","overlay-noSlide":"overlay-noSlide__B4Kpm1RT",modal:"modal__B4Kpm1RT","modal-light":"modal-light__B4Kpm1RT","modal-dark":"modal-dark__B4Kpm1RT","modal-allowOverflow":"modal-allowOverflow__B4Kpm1RT","modal-slide":"modal-slide__B4Kpm1RT","modal-afterOpen":"modal-afterOpen__B4Kpm1RT","modal-beforeClose":"modal-beforeClose__B4Kpm1RT","modal-full":"modal-full__B4Kpm1RT","modal-small":"modal-small__B4Kpm1RT","modal-medium":"modal-medium__B4Kpm1RT","modal-large":"modal-large__B4Kpm1RT","modal-height-small":"modal-height-small__B4Kpm1RT","modal-height-medium":"modal-height-medium__B4Kpm1RT","modal-height-large":"modal-height-large__B4Kpm1RT",header:"header__B4Kpm1RT",title:"title__B4Kpm1RT","title-light":"title-light__B4Kpm1RT","title-dark":"title-dark__B4Kpm1RT",headerIcon:"headerIcon__B4Kpm1RT",closeButton:"closeButton__B4Kpm1RT",closeIcon:"closeIcon__B4Kpm1RT","closeIcon-light":"closeIcon-light__B4Kpm1RT","closeIcon-dark":"closeIcon-dark__B4Kpm1RT",hasTitle:"hasTitle__B4Kpm1RT",content:"content__B4Kpm1RT","content-light":"content-light__B4Kpm1RT","content-dark":"content-dark__B4Kpm1RT","content-allowOverflow":"content-allowOverflow__B4Kpm1RT","content-flush":"content-flush__B4Kpm1RT","content-noFooter":"content-noFooter__B4Kpm1RT","content-noHeader":"content-noHeader__B4Kpm1RT",footer:"footer__B4Kpm1RT",footerButtonGroup:"footerButtonGroup__B4Kpm1RT",footerActionSpacer:"footerActionSpacer__B4Kpm1RT",fadeIn:"fadeIn__B4Kpm1RT",springUp:"springUp__B4Kpm1RT"};(0,o.A)("@keyframes fadeIn__B4Kpm1RT{0%{opacity:0}to{opacity:1}}@keyframes springUp__B4Kpm1RT{0%{transform:scale(.5)}70%{transform:scale(1.005)}to{transform:scale(1)}}.overlay__B4Kpm1RT{align-items:center;bottom:0;display:flex;justify-content:center;left:0;opacity:0;overflow:hidden;position:fixed;right:0;top:0;transition:opacity .1s ease-in;z-index:1000}.overlay-light__B4Kpm1RT{background-color:hsla(0,0%,8%,.4)}.overlay-dark__B4Kpm1RT{background-color:hsla(0,0%,8%,.6)}.overlay-afterOpen__B4Kpm1RT{opacity:1}.overlay-beforeClose__B4Kpm1RT{opacity:0;transition:opacity .1s ease-out}.overlay-noSlide__B4Kpm1RT{transition-delay:0ms}.modal__B4Kpm1RT{border-radius:8px;display:flex;flex-direction:column;max-height:80%;max-width:80%;outline:none;position:relative}.modal-light__B4Kpm1RT{background-color:#fff;box-shadow:0 12px 48px 0 rgba(33,35,39,.12),0 0 1px 0 rgba(33,35,39,.08);color:#50565e}.modal-dark__B4Kpm1RT{background-color:#131416;box-shadow:0 12px 48px 0 #000,0 0 1px 0 hsla(214,8%,98%,.08);color:#dee0e3}.modal__B4Kpm1RT:not(.modal-allowOverflow__B4Kpm1RT){overflow-x:hidden;overflow-y:auto}.modal-slide__B4Kpm1RT{opacity:0;transform:scale(.5);transition:opacity .1s ease-in,transform .32s cubic-bezier(.2,1.2,.6,1)}.modal-afterOpen__B4Kpm1RT{opacity:1;transform:scale(1)}.modal-beforeClose__B4Kpm1RT{opacity:0;transform:scale(.5);transition:opacity .1s ease-out,transform reverse .1s cubic-bezier(.2,1.2,.6,1)}.modal-full__B4Kpm1RT{width:100%}.modal-small__B4Kpm1RT{width:400px}.modal-medium__B4Kpm1RT{width:600px}.modal-large__B4Kpm1RT{width:800px}.modal-height-small__B4Kpm1RT{height:288px}.modal-height-medium__B4Kpm1RT{height:576px}.modal-height-large__B4Kpm1RT{height:864px}.header__B4Kpm1RT{flex:none}.title__B4Kpm1RT{align-items:center;display:flex;flex-grow:1;flex-shrink:1;font-family:var(--desktop-font-family-default);font-size:var(--desktop-font-size-medium);font-weight:var(--desktop-font-weight-semibold);line-height:20px;width:0}.title-light__B4Kpm1RT{color:#212327}.title-dark__B4Kpm1RT{color:#f9fafa}.headerIcon__B4Kpm1RT{margin-right:12px}.closeButton__B4Kpm1RT{background:none;border:none;cursor:pointer;padding:0;position:absolute;right:20px;top:20px}.closeButton__B4Kpm1RT .closeIcon__B4Kpm1RT{height:20px;width:20px}.closeButton__B4Kpm1RT .closeIcon-light__B4Kpm1RT{color:#808893}.closeButton__B4Kpm1RT .closeIcon-dark__B4Kpm1RT{color:#b7bcc2}.hasTitle__B4Kpm1RT.header__B4Kpm1RT{align-items:center;display:flex;margin-top:0;padding:20px 48px 0 20px}.content__B4Kpm1RT{display:flex;flex:1;flex-direction:column;font-family:var(--desktop-font-family-default);font-size:var(--desktop-font-size-medium);font-weight:var(--desktop-font-weight-regular);height:100%;line-height:20px}.content-light__B4Kpm1RT{color:#50565e}.content-dark__B4Kpm1RT{color:#dee0e3}.content__B4Kpm1RT::-webkit-scrollbar{height:14px;width:14px}.content-light__B4Kpm1RT::-webkit-scrollbar-thumb{background-color:rgba(33,35,39,.08)}.content-dark__B4Kpm1RT::-webkit-scrollbar-thumb{background-color:hsla(214,8%,98%,.08)}.content__B4Kpm1RT::-webkit-scrollbar-thumb{background-clip:content-box;border:4px solid transparent;border-radius:14px;min-height:20px}.content__B4Kpm1RT::-webkit-scrollbar-track{background:transparent;border-radius:14px}.content__B4Kpm1RT::-webkit-scrollbar-corner{background-color:transparent}.content__B4Kpm1RT:not(.content-allowOverflow__B4Kpm1RT){overflow:auto;overflow:overlay}.content__B4Kpm1RT:not(.content-flush__B4Kpm1RT){padding:16px 20px}.content-noFooter__B4Kpm1RT{margin-bottom:28px}.content-noHeader__B4Kpm1RT{margin-top:28px}.footer__B4Kpm1RT{padding:0 20px 20px}.footerButtonGroup__B4Kpm1RT{flex-grow:1;justify-content:flex-end}.footerActionSpacer__B4Kpm1RT{flex:1 1 0}")},953394:(e,t,r)=>{var o;r.d(t,{s:()=>o}),function(e){e.STANDARD="standard",e.USB="usb",e.LAN="lan",e.WAN="wan",e.RJ45="rj45",e.SURGE="surge"}(o||(o={}))}}]);