"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[24900],{353899(e,t,r){r.d(t,{A:()=>E});var n=r(296540);(0,r(349005).A)(".tooltip-container__vRGVdKCu{display:inline-block}.tooltip__vRGVdKCu{border-radius:8px;cursor:default;padding:0}.tooltip__vRGVdKCu .content__vRGVdKCu{padding-bottom:12px;padding-top:8px}.modal-header__vRGVdKCu{font-family:var(--desktop-font-family-default);font-size:var(--desktop-font-size-medium);font-weight:var(--desktop-font-weight-semibold);line-height:20px}");var a=r(722860),o=r(159318),l=r(325898),i=r(141046),s=r(271856),d=r(255905),c=r(136283);const m=(0,a.c)({"tooltip-container":"tooltip-container__vRGVdKCu",tooltip:"tooltip__vRGVdKCu",content:"content__vRGVdKCu","modal-header":"modal-header__vRGVdKCu"}),p=100*o.Uq["desktop-sizing-base"],E=e=>{const{children:t,position:r,portal:a,offset:o,autoPosition:E,tooltipClassName:u,width:_=p,title:A,headerClassName:f,contentClassName:O,footerClassName:C,body:g,actions:h=[],allowOverflow:I,onRequestClose:k,showHeaderClose:T=!0,motif:x,rootClose:b=!0,isOpen:S,className:P,style:R,...v}=e,N=(0,n.useRef)(null),L=(0,n.useRef)(null),[D,w]=(0,n.useState)(!1),{motif:y}=(0,l.A)(x),$="boolean"==typeof S,M=h.map(({onClick:e,...t})=>({...t,onClick:t=>e&&e(t,w)})),z={padding:0,margin:0,...R},V=(0,n.useCallback)(e=>k?k(e,w):w(!1),[k,w]);return(0,n.useEffect)(()=>{const e=e=>{!(0,i.A)(e,L)&&b&&V(e)};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}},[$,V,b]),n.createElement(s.A,{ref:L,isOpen:$?S:D,className:m.concat(P)("tooltip-container"),tooltipClassName:m.concat(u)("tooltip"),maxWidth:p,width:_,onClick:e=>{$||(e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),w(!0))},position:r,portal:a,offset:o,motif:y,autoPosition:E,isInteractive:!0,description:n.createElement("div",{ref:N,onClick:e=>{e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()},style:z},n.createElement(d.A.Provider,{value:{motif:"dark"}},n.createElement(c.A,{title:A,headerClassName:m.concat(f)("modal-header"),contentClassName:m.concat(O)("content"),footerClassName:C,actions:M,allowOverflow:I,onRequestClose:T?V:void 0},g))),...v},t)}},141046(e,t,r){r.d(t,{A:()=>n});const n=(e,t)=>!!t.current&&e.composedPath().includes(t.current)},319826(e,t,r){r.d(t,{$3:()=>k,SD:()=>P,b5:()=>T,nR:()=>S,sD:()=>b,yz:()=>x});var n=r(296540),a=r(566401),o=r(217439),l=r(71479),i=r(316144),s=r(137298),d=r(6510),c=r(721332),m=r(294303),p=r(6176),E=r(703447),u=r(916537),_=r(768941),A=r(962669),f=r(757167),O=r(552020),C=r(780811),g=(r(154828),r(951106)),h=r(237628);const I=(0,l.A)(o.A)`
  padding-left: 10px;
  color: inherit;
  font-size: inherit;
`,k=({activeItem:e,networkGroups:t,rest:r,hideStatus:o=!1})=>{const{diagram:l}=(0,h.j)(e.model),_=[(0,C.D6h)(e),(0,C.bf1)(e),(0,C.Bh_)(e)],{uplinkItems:k,...T}=r||{},x=(0,C.Tl7)(e)||(0,C.kYz)(e)||(0,C.vqp)(e),b=l.length?(0,A.sT)(l,e):(0,A.oJ)(e);return b?b.flat().reduce((r,l)=>{if(!l)return r;const A=(0,C.NF$)(l.portNumber,e);if((0,a.A)(A))return r;const h=n.createElement(m.A,{alignItems:"center"},n.createElement(c.A,{cellData:A,activeItem:e,style:{minWidth:20},...T}),n.createElement(I,{isTruncated:!0},A.port_idx)),b=n.createElement(m.A,{alignItems:"center"},n.createElement(c.A,{cellData:A,activeItem:e,style:{minWidth:20},disableOnPortClick:x,portSizeOverride:"20px",...T}),n.createElement(I,{isTruncated:!0},o?A.port_idx:((e,t)=>{if(t.poe_caps&&!(0,C.C6C)(e)){const e=(0,O.Ki)(t);return e?n.createElement(u.sA,{id:e,values:{power:t.poe_power}}):""}return t.up?(0,s.ap)(t?.speed||0)||n.createElement(u.sA,{id:"DEVICE_PORT_STATE_CONNECTED"}):n.createElement(u.sA,t.enable?{id:"COMMON_DISCONNECTED"}:{id:"COMMON_DISABLED"})})(e,A))),S=(0,i.nL)(A.ifname,e,t),P="Internal"===S?.label,R=S?.id?.startsWith("LAN")||P,v=k?.find(e=>e.portIdx===A.port_idx)?.connected[0];let N=n.createElement(m.A,null);if(v){const e="device_id"in v?(0,d.Q)(v):(0,g.tn)(v),t="device_id"in v?n.createElement(p.A,{model:v.model,width:18,height:22}):n.createElement(m.A,{height:26,minWidth:22,maxWidth:22,justifyContent:"center",alignItems:"center"},n.createElement(E.A,{client:v}));N=n.createElement(m.A,{alignItems:"center"},n.createElement(m.A,{alignItems:"center",marginRight:"14px"},t),n.createElement(m.A,{alignItems:"center",flex:1},e))}const L={...A,id:A.port_idx?.toString()||A.ifname,defaultNetworkGroupLabel:(0,C.Xq1)(e,A),disabled:A.masked||(0,f.dC)(A.ifname),isInternalPort:P,isLanPort:R,isWanPort:!R,networkGroup:S?.id,portUplinkItemName:N,portStatus:b,portSymbol:h};return _.every(e=>!e)&&(L.macFilters=A.port_security_mac_address?.length),r.push(L),r},[]).sort(({port_idx:e},{port_idx:t})=>e-t):[]},T=e=>e.isWanPort,x=e=>e.isLanPort,b=e=>e.filter(({disabled:e})=>!e).map(({port_idx:e})=>String(e)),S=(e,t)=>e.map(e=>{const r=t.find(t=>e.port_idx===t.portIdx);if(!r)return e;const{rx_broadcast:n,rx_bytes:a,rx_dropped:o,rx_errors:l,rx_multicast:i,rx_packets:s,tx_broadcast:d,tx_bytes:c,tx_dropped:m,tx_errors:p,tx_multicast:E,tx_packets:u}=r;return{...e,rx_broadcast:n,rx_bytes:a,rx_dropped:o,rx_errors:l,rx_multicast:i,rx_packets:s,tx_broadcast:d,tx_bytes:c,tx_dropped:m,tx_errors:p,tx_multicast:E,tx_packets:u}}),P=e=>{const{isPoeOffSupported:t,isPoePassthroughSupported:r,isPoePassive24Supported:n,isPoeAutoSupported:a}=e,o=[];return t&&o.push(_.Gu.OFF),r&&o.push(_.Gu.PASSTHROUGH),!r&&n&&o.push(_.Gu.PASSIVE_24V),!r&&a&&o.push(_.Gu.AUTO),o}},689965(e,t,r){r.d(t,{A:()=>u,I:()=>n});var n,a=r(296540),o=r(822336),l=r(963724),i=r(71479),s=r(825032),d=r(566723),c=r(294303),m=r(311785);!function(e){e.ACCORDION="accordion",e.BUTTON_LIST="buttonList"}(n||(n={}));const p=(0,i.A)(c.A,(0,m.A)("marginBottom","isButtonList","margin","flex","width","padding","nested","background"))`
  background-color: ${({background:e,nested:t,theme:{themeName:r}})=>e||o.Ay[r===s.S.DARK?`desktop-color-neutral-${t?"00":"01"}-dark`:`desktop-color-neutral-${t?"01":"00"}-light`]};
  padding: ${({theme:e,isButtonList:t,padding:r})=>r||(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}})=>o.Ay[`desktop-border-divider-${e}`]};\n      &:last-child {\n        border-bottom: none;\n      }\n    }\n  `:""}
`,E=(0,i.A)(l.A,(0,m.A)("marginBottom","margin","flex","padding","nested","background"))`
  background-color: ${({background:e,nested:t,theme:{themeName:r}})=>e||o.Ay[r===s.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||o.Ay[t===s.S.DARK?"desktop-color-neutral-01-dark":"desktop-color-neutral-00-light"]};
      height: 48px;
      padding: 0 ${d.Ln};
    }
    > div:nth-child(2) {
      margin-bottom: 0;
      padding: 0;
      > div {
        padding: 0 ${d.Ln} ${d.Ln};
      }
    }
  }
`,u=({type:e,marginBottom:t,margin:r,padding:o,flex:l,width:i,nested:s,...d})=>"items"in d?a.createElement(E,{marginBottom:t,margin:r,padding:o,flex:l,nested:s,...d}):a.createElement(p,{nested:s,width:i,marginBottom:t,margin:r,padding:o,flex:l,isButtonList:e===n.BUTTON_LIST,...d},d.children)},137625(e,t,r){r.d(t,{A:()=>d});var n=r(296540),a=r(353899),o=r(132196),l=r(372737),i=r(566723),s=r(916537);const d=({children:e=null,title:t,titleValues:r,message:d,messageValues:c,handleConfirm:m=()=>null,handleClose:p=()=>null,handleCancel:E,isOpen:u,buttonVariant:_="primary",cancelButtonVariant:A="tertiary",cancelButtonMessage:f="COMMON_ACTION_CANCEL",buttonMessage:O="COMMON_ACTION_CONFIRM",buttonDisabled:C=!1,position:g="top",offset:h,showHeaderClose:I=!1,contentClassName:k="",body:T,titleBody:x,className:b,rootClose:S=!1,footerActions:P})=>{const R=(0,n.useCallback)(e=>{u&&(e.stopPropagation(),e.key===l.U.ENTER?m():e.key===l.U.ESCAPE&&p(!1))},[u,m,p]);(0,n.useEffect)(()=>(window.addEventListener("keydown",R,!0),()=>{window.removeEventListener("keydown",R,!0)}),[R]);const v=(0,n.useCallback)(()=>{p(!1),E?.()},[p,E]),N=(0,n.useCallback)(()=>{p(!1),m()},[p,m]),L=(0,n.useMemo)(()=>[{text:n.createElement(s.sA,{id:f}),variant:A,onClick:v},{text:n.createElement(s.sA,{id:O}),disabled:C,variant:_,onClick:N}],[O,_,f,A,v,N,C]),D=(0,n.useCallback)(()=>{p(!1)},[p]),w=o.AH`
    ${t?"":`margin-top: ${i.xO}`}
  `;return n.createElement(a.A,{title:t?n.createElement(s.sA,{id:t,values:r}):x||null,...d?{body:n.createElement(n.Fragment,null,n.createElement(s.sA,{id:d,values:c}),T)}:{body:T},position:g,portal:!0,offset:h,actions:P||L,showHeaderClose:I,contentClassName:o.AH`
        ${w}
        ${k}
      `,onRequestClose:D,isOpen:u,allowOverflow:!0,rootClose:S,className:b},e)}},721332(e,t,r){r.d(t,{A:()=>N});var n=r(296540),a=r(469733),o=r(217439),l=r(180524),i=r(968906),s=r(960407),d=r(398300),c=r(855019),m=r(548212),p=r(213601),E=r(137625),u=r(955161),_=r(845030),A=r(916537),f=r(966784),O=r(538535),C=r(768941),g=r(366188),h=r(944373),I=r(792072),k=r(962669),T=r(431247),x=r(780811),b=r(171073),S=r(460680),P=r(842235),R=r(85570);const v=({cellData:e,activeItem:t,activeItem:{mac:r,name:v,model:N},keyValue:L,portSize:D,portSizeOverride:w,disableOnPortClick:y=!1,centerIcon:$,tooltipPlacement:M="bottom"})=>{const z=(0,a.useDispatch)(),V=(0,a.useSelector)(h.D),B=(0,a.useSelector)(s.oI),W=(0,a.useSelector)(O.D5),U=e||{},H=(0,a.useSelector)(g.wf),G=(0,a.useSelector)(I.pB),K=(0,a.useSelector)(S.qS),F=(0,f.vT)(U,t,V,W,H,G,[],K),[Y,X]=(0,n.useState)(!1),j=(0,n.useCallback)(()=>{z((0,b.Fx)({mac:r,name:v},e.port_idx)),X(!1)},[r,v,e.port_idx,z]),J=Boolean(e.poe_enable&&!(0,x.ioy)({type:t.type}));return n.createElement(u.A,{condition:J,wrapper:t=>n.createElement(E.A,{title:"DEVICE_PORT_POWER_CYCLE_CONFIRMATION_TITLE",titleValues:{portId:e.port_idx},buttonMessage:"COMMON_ACTION_PROCEED",handleClose:X,handleConfirm:j,isOpen:Y,rootClose:!0,body:n.createElement(o.A,{size:"inherit"},n.createElement(A.sA,{id:"DEVICE_PORT_POWER_CYCLE_CONFIRMATION_BODY",values:{portId:e.port_idx}}))},t)},n.createElement(l.A,{description:n.createElement(P.A,{portData:U,showPowerCycleHeader:J,portName:U.name,device:t}),delay:0,closeDelay:0,isDisabled:Y,key:L,placement:M,className:R.K5},n.createElement(R.Dn,{onClick:n=>J?(X(!0),null):y||e.masked?null:(n.preventDefault(),n.stopPropagation(),(0,x.Cyy)(t)||(0,x.oWO)(t)?z((0,_.XP)({type:d.H.DEVICE,id:r,tab:B,subPanel:c.uY.PORTS,subId:U?.ifname})):z((0,_.XP)("wan"===U?.network_name||"wan2"===U?.network_name?{type:d.H.DEVICE,id:r,tab:B,subPanel:c.uY.PORTS,subId:c.uj.WAN}:U?.dns?{type:d.H.DEVICE,id:r,tab:B,subPanel:c.uY.PORTS,subId:c.uj.ALL}:{type:d.H.DEVICE,id:r,tab:B,subPanel:c.uY.PORTS,subId:U.op_mode===C.RC.AGGREGATE?U.portIdx||U.port_idx||U.ifname:(0,k.Cu)(U)}))),...i.A.addDataTestId(i.A.TestId.SIDE_PANEL_TRIGGER)},n.createElement(R.MM,{centerIcon:$,colorInfo:(0,m.PI)(F),portSize:D,portSizeOverride:w,hasTransparentBorder:(0,T._R)(e.port_idx,N)},n.createElement(p.A,{icon:F.icon,smallerIcons:!0})),(0,T.jw)(e.port_idx,N)?n.createElement(R.lh,null):null)))},N=({cellData:e,activeItem:t,keyValue:r,portSize:a,portSizeOverride:o,...l})=>e?n.createElement(v,{cellData:e,activeItem:t,keyValue:r,portSize:a,portSizeOverride:o,...l}):(0,x.ez9)(t)||(0,x.gE3)(t)?null:n.createElement(R.hK,{key:r,portSize:a,portSizeOverride:o})},842235(e,t,r){r.d(t,{A:()=>k});var n=r(469733),a=r(296540),o=r(822336),l=r(777916),i=r(217439),s=r(705145),d=r(71479),c=r(6510),m=r(566723),p=r(294303),E=r(916537),u=r(854726),_=r(962669),A=r(431247),f=r(552020),O=r(532419);const C=(0,d.A)("div")`
  display: flex;
  justify-content: space-between;
  gap: ${m.YC};

  & > :last-child {
    max-width: 60%;
    text-align: right;
  }
`,g=(0,d.A)(p.A)`
  margin-bottom: ${m.kc};
  padding-bottom: ${m.kc};
  border-bottom: ${({theme:{themeName:e}})=>o.Ay[`desktop-border-divider-${e}`]};
`,h=(0,d.A)(s.A)`
  white-space: nowrap;
`,I=e=>a.createElement(h,{size:"small",...e}),k=({portData:e,portName:t,showPowerCycleHeader:r=!1,device:o})=>{const{ifname:s,port_idx:d,tx_bytes:h,rx_bytes:k,sfp_txfault:T,sfp_rxfault:x,sfp_vendor:b,sfp_serial:S,sfp_part:P,sfp_rev:R,sfp_compliance:v,sfp_voltage:N,sfp_current:L,sfp_txpower:D,sfp_rxpower:w,sfp_temperature:y}=e||{},{formatMessage:$}=(0,E.tz)(),M=(0,n.useSelector)(u.wD),z=(0,A.Hn)(e,M),V=(0,n.useSelector)(O.ID),B=(0,_.Uz)(e.port_idx,o.mac,o.downlink_table,V),W=(0,_.RK)(e,o,V),U=e&&(0,A.wp)(e)&&e.sfp_found,H=(0,_.xx)(e,$),G=(0,_.m3)(e,$),K=(0,f.Ki)(e),F=[];return U&&(T&&F.push($({id:"DEVICE_PROPERTIES_SWITCH_TOOLTIP_LABEL_TX_FAULT"})),x&&F.push($({id:"DEVICE_PROPERTIES_SWITCH_TOOLTIP_LABEL_RX_FAULT"}))),a.createElement(p.A,{flexDirection:"column",minWidth:100},r?a.createElement(g,null,a.createElement(I,{motif:"dark"},a.createElement(E.sA,{id:"DEVICE_ACTIONS_PORT_CLICK_TO_POWER_CYCLE"}))):null,a.createElement(p.A,{gap:m.YC,flexDirection:"column"},e.masked||!d&&!s?null:a.createElement(C,null,a.createElement(I,{motif:"dark"},a.createElement(E.sA,{id:"COMMON_PORT"})),a.createElement(I,{motif:"dark"},(0,_.LS)(e,o.model))),t?a.createElement(C,null,a.createElement(I,{motif:"dark"},a.createElement(E.sA,{id:"COMMON_NAME"})),a.createElement(I,{motif:"dark",isTruncated:!0},t)):null,H?a.createElement(C,null,a.createElement(I,{motif:"dark"},a.createElement(E.sA,{id:"COMMON_SPEED"})),a.createElement(I,{motif:"dark",isTruncated:!0},H)):null,G||F.length>0?a.createElement(C,null,a.createElement(I,{motif:"dark"},a.createElement(E.sA,{id:"COMMON_STATUS"})),a.createElement(I,{motif:"dark",isTruncated:!0},G,F.length>0?a.createElement(i.A,{color:"destructive"},F.join(", ")):null)):null,h&&h>0?a.createElement(C,null,a.createElement(I,{motif:"dark"},a.createElement(E.sA,{id:"COMMON_TX"})),a.createElement(I,{motif:"dark"},a.createElement(l.A,{type:"bytes",input:h,motif:"dark"}))):null,k&&k>0?a.createElement(C,null,a.createElement(I,{motif:"dark"},a.createElement(E.sA,{id:"COMMON_RX"})),a.createElement(I,{motif:"dark"},a.createElement(l.A,{type:"bytes",input:k,motif:"dark"}))):null,K?a.createElement(C,null,a.createElement(I,{motif:"dark"},a.createElement(E.sA,{id:"COMMON_DEVICE_POE_MODE_POE"})),a.createElement(I,{motif:"dark"},a.createElement(E.sA,{id:K,values:{power:e.poe_power}}))):null,z?a.createElement(C,null,a.createElement(I,{motif:"dark"},a.createElement(E.sA,{id:"DEVICE_PROPERTIES_SWITCH_TOOLTIP_LABEL_PROFILE"})),a.createElement(I,{motif:"dark",isTruncated:!0},z)):null,B?a.createElement(C,null,a.createElement(I,{motif:"dark"},a.createElement(E.sA,{id:"COMMON_DOWNLINK"})),a.createElement(I,{motif:"dark",isTruncated:!0},(0,c.Q)(B))):null,W?a.createElement(C,null,a.createElement(I,{motif:"dark"},a.createElement(E.sA,{id:"COMMON_UPLINK"})),a.createElement(I,{motif:"dark",isTruncated:!0},(0,c.Q)(W))):null,U?a.createElement(a.Fragment,null,b?a.createElement(C,null,a.createElement(I,{motif:"dark"},a.createElement(E.sA,{id:"COMMON_VENDOR"})),a.createElement(I,{motif:"dark"},String(b))):null,S?a.createElement(C,null,a.createElement(I,{motif:"dark"},a.createElement(E.sA,{id:"COMMON_SERIAL"})),a.createElement(I,{motif:"dark"},String(S))):null,P?a.createElement(C,null,a.createElement(I,{motif:"dark"},a.createElement(E.sA,{id:"DEVICE_PROPERTIES_SWITCH_TOOLTIP_LABEL_PART_NUMBER"})),a.createElement(I,{motif:"dark"},String(P))):null,R?a.createElement(C,null,a.createElement(I,{motif:"dark"},a.createElement(E.sA,{id:"DEVICE_PROPERTIES_SWITCH_TOOLTIP_LABEL_REV"})),a.createElement(I,{motif:"dark"},String(R))):null,v?a.createElement(C,null,a.createElement(I,{motif:"dark"},a.createElement(E.sA,{id:"COMMON_COMPLIANCE"})),a.createElement(I,{motif:"dark",isTruncated:!0},String(v))):null,N?a.createElement(C,null,a.createElement(I,{motif:"dark"},a.createElement(E.sA,{id:"COMMON_VOLTAGE"})),a.createElement(I,{motif:"dark"},a.createElement(E.sA,{id:"DEVICE_PROPERTIES_SWITCH_TOOLTIP_VALUES_VOLTAGE",values:{voltage:Number(N||0).toFixed(2)}}))):null,L?a.createElement(C,null,a.createElement(I,{motif:"dark"},a.createElement(E.sA,{id:"COMMON_CURRENT"})),a.createElement(I,{motif:"dark"},a.createElement(E.sA,{id:"DEVICE_PROPERTIES_SWITCH_TOOLTIP_VALUES_CURRENT",values:{current:+L}}))):null,y?a.createElement(C,null,a.createElement(I,{motif:"dark"},a.createElement(E.sA,{id:"COMMON_TEMPERATURE"})),a.createElement(I,{motif:"dark"},a.createElement(E.sA,{id:"DEVICE_PROPERTY_OVERVIEW_TEMPERATURE_VALUE",values:{temperature:Number(y).toFixed(1)}}))):null,Number(D)?a.createElement(C,null,a.createElement(I,{motif:"dark"},a.createElement(E.sA,{id:"DEVICE_PROPERTIES_SWITCH_TOOLTIP_LABEL_OUTPUT_POWER"})),a.createElement(I,{motif:"dark"},a.createElement(E.sA,{id:"DEVICE_PROPERTIES_SWITCH_TOOLTIP_VALUES_IO_POWER",values:{power:Number(D).toFixed(2)}}))):null,Number(w)?a.createElement(C,null,a.createElement(I,{motif:"dark"},a.createElement(E.sA,{id:"DEVICE_PROPERTIES_SWITCH_TOOLTIP_LABEL_INPUT_POWER"})),a.createElement(I,{motif:"dark"},a.createElement(E.sA,{id:"DEVICE_PROPERTIES_SWITCH_TOOLTIP_VALUES_IO_POWER",values:{power:Number(w).toFixed(2)}}))):null):null))}},85570(e,t,r){r.d(t,{Dn:()=>_,K5:()=>A,MM:()=>p,hK:()=>E,lh:()=>u});var n=r(822336),a=r(71479),o=r(132196),l=r(566723),i=r(335165),s=r(294303),d=r(966784),c=r(376272),m=r(311785);const p=(0,a.A)(s.A,(0,m.A)("colorInfo","portSize","portSizeOverride","isDisabled","centerIcon","hasTransparentBorder"))`
  height: ${({portSizeOverride:e,portSize:t})=>e||t?.size||i.J.large.size};
  width: ${({portSizeOverride:e,portSize:t})=>e||t?.size||i.J.large.size};
  ${({portSize:e})=>e?.marginSize?`margin-left: ${e.marginSize}`:""};
  ${({portSize:e,marginLeft:t})=>e?.marginSize||t?`margin-left: ${t||e?.marginSize};`:""};
  align-items: center;
  border-radius: 2px;
  justify-content: center;
  position: relative;
  pointer-events: auto;
  z-index: 3;

  ${({colorInfo:e,theme:{themeName:t}})=>e.background===c.A.DISABLED.background&&`border: ${(0,d.oX)(e.border,t)} 1px solid;`}
  background-color: ${({colorInfo:e,theme:{themeName:t}})=>(0,d.oX)(e.background,t)};
  color: ${({colorInfo:e,theme:{themeName:t}})=>(0,d.oX)(e.text,t)};

  /* Fix hover area of combo ports */
  ${({hasTransparentBorder:e})=>e&&"\n      position: relative;\n      &:before {\n        content: '';\n        position: absolute;\n        top: -3px;\n        right: -3px;\n        bottom: -3px;\n        left: -3px;   \n        background: transparent;\n        z-index: 2; \n      }\n  "}

  ${({centerIcon:e,portSize:t})=>e&&t?.spacing&&`transform: translateY(calc(50% + ${t?.spacing} / 2))`};
`,E=(0,a.A)("div",(0,m.A)("portSize","portSizeOverride"))`
  width: ${({portSizeOverride:e,portSize:t})=>e||t?.size||i.J.large.size};
  flex-shrink: 0;
`,u=(0,a.A)("div",(0,m.A)("size"))`
  position: absolute;
  width: calc(${i.J.large.size} + ${i.J.large.size} + 8px);
  height: calc(${i.J.large.size} + 4px);
  top: -2px;
  left: -2px;
  z-index: 1;
  background: ${({theme:{themeName:e}})=>n.Ay[`desktop-color-ublue-01-${e}`]};
  border-radius: ${l.YC};
  border: 1px solid ${({theme:{themeName:e}})=>n.Ay[`desktop-color-ublue-04-${e}`]};
`,_=(0,a.A)(s.A)`
  position: relative;
  cursor: pointer;
`,A=o.AH`
  [data-uic-component='Tooltip.Arrow'] {
    pointer-events: none;
  }
`},335165(e,t,r){r.d(t,{J:()=>a});var n=r(566723);const a={large:{threshold:12,size:"24px",spacing:n.YC},medium:{threshold:15,size:"16px",spacing:n.YC},small:{threshold:20,size:"12px",spacing:n.YC},xsmall:{threshold:50,size:"11px",spacing:"1px"}}},372737(e,t,r){var n;r.d(t,{U:()=>n}),function(e){e.ARROW_LEFT="ArrowLeft",e.ARROW_RIGHT="ArrowRight",e.ARROW_DOWN="ArrowDown",e.ARROW_UP="ArrowUp",e.ENTER="Enter",e.ESCAPE="Escape",e.BACKSPACE="Backspace",e.DELETE="Delete",e.TAB="Tab"}(n||(n={}))}}]);