"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[58138],{284428:(e,t,n)=>{n.d(t,{Im:()=>c,iL:()=>m,mQ:()=>o,pv:()=>r,q:()=>a});var i=n(296540),l=n(451449);function r(){return(0,i.useContext)(l.I)}function o(){return r().fields}function a(){return r().tooltipPopovers}function c(){return r().tooltipIcons}function m(){return r().labels}},451449:(e,t,n)=>{n.d(t,{I:()=>i});const i=(0,n(296540).createContext)({fields:!1,labels:!1,tooltipPopovers:!1,tooltipIcons:!1})},766624:(e,t,n)=>{n.d(t,{A:()=>c});var i=n(296540),l=n(271856),r=n(709690),o=n(284428),a=n(566723);const c=({description:e,isInteractive:t,portal:n=!0,cursorType:c,title:m,position:s,width:p,iconProps:u,disabled:d=!1})=>{const E=(0,o.Im)()||d,A=(0,o.q)();return i.createElement(l.A,{description:e,portal:n,isInteractive:t,style:{display:"flex",alignItems:"center"},cursorType:c,title:m,position:s,width:p,disableHover:A},i.createElement(r.A,{isActive:!0,size:"original",opacity:E?a.xN:void 0,...u}))}},804947:(e,t,n)=>{n.r(t),n.d(t,{default:()=>d});var i=n(296540),l=n(86571),r=n(689965),o=n(87250),a=n(275357),c=n(218234),m=n(949810),s=n(540739),p=n(525901),u=n(470995);const d=({activeItem:e,activeItem:{mac:t,model:n}})=>i.createElement(i.Fragment,null,i.createElement(r.A,{type:r.I.ACCORDION,items:[{id:"portsOverview",openByDefault:!0,label:i.createElement(l.A,{id:"DEVICE_PROPERTY_HEADER_PORTS"}),renderContent:()=>i.createElement(c.A,{activeItem:e,showFullScreenDiagramButton:!0,useBubbleWrapper:!1})}]}),i.createElement(r.A,{type:r.I.ACCORDION,items:[{id:"outletOverview",openByDefault:!0,label:i.createElement(l.A,{id:"COMMON_OUTLETS"}),renderContent:()=>i.createElement(m.A,{activeItem:e,hidePorts:!0})}]}),i.createElement(p.A,{mac:t,model:n,logType:s.F.DEVICE,ignoreActionableValues:[a.dl.DEVICE],label:"COMMON_HISTORY"}),i.createElement(u.A,{mac:t,object:o.qv.GW}))},949810:(e,t,n)=>{n.d(t,{A:()=>g});var i=n(296540),l=n(927099),r=n(822336),o=n(823858),a=n(618983),c=n(71479),m=n(566723),s=n(294303),p=n(699784),u=n(170163),d=n(780811),E=n(837612),A=n(799552),v=n(377588),I=n(406816);const _=(0,c.A)("div")`
  display: flex;
  flex-direction: column;
`,O=(0,c.A)("div")`
  margin-top: ${m.Ln};
  padding-top: ${m.Ln};
  border-top: ${({theme:{themeName:e}})=>r.Ay[`desktop-border-divider-${e}`]};

  div:first-child {
    margin-bottom: ${m.xO};
  }
`,f=(0,c.A)(o.A)`
  color: ${({theme:{motifPalette:{warning:e}}})=>e};
  height: 18px;
  width: 18px;
  margin-right: 10px;
`,b=(0,c.A)(a.A)`
  color: ${({theme:{motifPalette:{success:e}}})=>e};
  height: 18px;
  width: 18px;
  margin-right: 10px;
`,g=({activeItem:e,activeItem:{outlet_table:t,outlet_ac_power_budget:n,outlet_ac_power_consumption:r,port_table:o},hidePorts:a,noDivider:c,gap:g=m.xO,legend:h,verticalLegend:C,tooltipPlacement:P="bottom right"})=>{const{usedPower:w,maxPower:x}=(0,i.useMemo)(()=>(0,u.hf)({outlet_table:t,outlet_ac_power_budget:n,outlet_ac_power_consumption:r}),[t,n,r]),R=(0,d.Tl7)(e)||(0,d.kYz)(e);return i.createElement(_,null,i.createElement(s.A,{justifyContent:"center",gap:g,alignItems:C?"center":void 0},i.createElement(s.A,{flexDirection:"column",alignItems:"center"},i.createElement(v.A,{activeItem:e,tooltipPlacement:P,isEU:(0,d.KaR)(e)||(0,d.K30)(e),offline:(0,d.aK8)((0,E.S9)(e))})),o&&!a?i.createElement("div",null,i.createElement(A.A,{activeItem:e,portSizeOverride:"19px",disableOnPortClick:R})):null,C),C?null:h||i.createElement(I.Ay,{activeItem:e,noTopBorder:c}),w>x?i.createElement(O,null,i.createElement(s.A,{justifyContent:"space-between"},i.createElement(f,null),i.createElement(l.A,{size:"caption"},i.createElement(p.sA,{id:"DEVICE_PROPERTIES_OUTLET_POWER_OVERLOAD_WARNING"}))),i.createElement(s.A,{justifyContent:"space-between"},i.createElement(b,null),i.createElement(l.A,{size:"caption"},i.createElement(p.sA,{id:"DEVICE_PROPERTIES_OUTLET_POWER_OVERLOAD_INFO"})))):null)}}}]);