"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[31303],{682e3(e,i,t){var n;t.d(i,{L:()=>n}),function(e){e.XS="XS",e.S="S",e.SM="SM",e.M="M",e.ML="ML",e.L="L",e.XL="XL",e.XXL="XXL"}(n||(n={}))},588769(e,i,t){t.d(i,{A:()=>a,G:()=>r});var n=t(682e3);const s={[n.L.XS]:{FROM:0,TO:374},[n.L.S]:{FROM:375,TO:567},[n.L.SM]:{FROM:568,TO:767},[n.L.M]:{FROM:768,TO:1023},[n.L.ML]:{FROM:1024,TO:1199},[n.L.L]:{FROM:1200,TO:1919},[n.L.XL]:{FROM:1920,TO:2559},[n.L.XXL]:{FROM:2560,TO:1/0}},r=600,a={...s,DASHBOARD:{LAYOUT:{MOBILE:"(max-width: 767px)",DESKTOP:"(min-width: 768px)"},CHART:{MOBILE:"(max-width: 1419px)",DESKTOP:"(min-width: 1420px)"},BAND_SELECTOR:{MOBILE:"(max-width: 1119px)",DESKTOP:"(min-width: 1120px)"}},SIDE_NAVIGATION_BREAKPOINT_UP:`(min-width: ${r+1}px)`,SIDE_NAVIGATION_BREAKPOINT_DOWN:`(max-width: ${r}px)`,VIEWPORT_XS:`(max-width: ${s[n.L.XS].TO}px)`,VIEWPORT_S:`(min-width: ${s[n.L.S].FROM}px) and (max-width: ${s[n.L.S].TO}px)`,VIEWPORT_SM:`(min-width: ${s[n.L.SM].FROM}px) and (max-width: ${s[n.L.SM].TO}px)`,VIEWPORT_M:`(min-width: ${s[n.L.M].FROM}px) and (max-width: ${s[n.L.M].TO}px)`,VIEWPORT_ML:`(min-width: ${s[n.L.ML].FROM}px) and (max-width: ${s[n.L.ML].TO}px)`,VIEWPORT_L:`(min-width: ${s[n.L.L].FROM}px) and (max-width: ${s[n.L.L].TO}px)`,VIEWPORT_XL:`(min-width: ${s[n.L.XL].FROM}px) and (max-width: ${s[n.L.XL].TO}px)`,VIEWPORT_XXL:`(min-width: ${s[n.L.XXL].FROM}px)`,VIEWPORT_XS_UP:`(min-width: ${s[n.L.S].FROM}px)`,VIEWPORT_S_UP:`(min-width: ${s[n.L.SM].FROM}px)`,VIEWPORT_SM_UP:`(min-width: ${s[n.L.M].FROM}px)`,VIEWPORT_M_UP:`(min-width: ${s[n.L.ML].FROM}px)`,VIEWPORT_ML_UP:`(min-width: ${s[n.L.L].FROM}px)`,VIEWPORT_L_UP:`(min-width: ${s[n.L.XL].FROM}px)`,VIEWPORT_XL_UP:`(min-width: ${s[n.L.XXL].FROM}px)`,VIEWPORT_S_DOWN:`(max-width: ${s[n.L.S].TO}px)`,VIEWPORT_SM_DOWN:`(max-width: ${s[n.L.SM].TO}px)`,VIEWPORT_M_DOWN:`(max-width: ${s[n.L.M].TO}px)`,VIEWPORT_ML_DOWN:`(max-width: ${s[n.L.ML].TO}px)`,VIEWPORT_L_DOWN:`(max-width: ${s[n.L.L].TO}px)`,VIEWPORT_XL_DOWN:`(max-width: ${s[n.L.XL].TO}px)`,VIEWPORT_XXL_DOWN:`(max-width: ${s[n.L.XXL].TO}px)`}},170427(e,i,t){t.d(i,{A:()=>p});var n=t(274934),s=t(938984),r=t(247816),a=t(309130),o=t(304151),d=t(100978);const l=(0,r.A)(s.A)`
  white-space: nowrap;
`,c=(0,r.A)(d.A)`
  align-items: center;
`,x=(0,r.A)(d.A)`
  width: ${a.Ln};
  justify-content: flex-start;
`,p=({indicator:e,description:i,isSingleLine:t,tooltipDescription:s})=>(0,n.jsxs)(c,{marginRight:t?a.kc:0,children:[(0,n.jsx)(x,{children:e}),(0,n.jsx)(l,{size:"small",color:"text-3",children:i}),s?(0,n.jsx)(o.A,{description:s}):null]})},883717(e,i,t){t.d(i,{A:()=>C,T:()=>$});var n=t(274934),s=t(602086),r=t(977872),a=t(814557),o=t(248887),d=t(18391),l=t(760055),c=t(31881),x=t(920391),p=t(692972),m=t(247816),h=t(263705),A=t(513458),O=t(442175),u=t(309130),_=t(100978),E=t(470070),M=t(940229),g=t(576024),L=t(469890),j=t(956978),T=t(754924),v=t(940563),I=t(977782),P=t(291508),S=t(170427);const f=(0,m.A)("div")`
  display: grid;
  grid-template-columns: repeat(3, minmax(min-content, 1fr));
  gap: ${u.YC};
  margin-top: ${u.kc};
`,w=(0,m.A)(_.A)`
  gap: ${u.kc};
  row-gap: ${u.YC};
  flex-wrap: wrap;
`,$=(0,m.A)(A.A,(0,P.A)("borderColor"))`
  flex-shrink: 0;
  border-radius: 0;
  border: ${({borderColor:e,theme:{themeName:i}})=>e&&`1px solid ${(0,M.oX)(e,i)}`};
`,N=(e,i)=>e===I.s.PASSTHROUGH?1:e===I.s.PASSIVE?2:e===I.s.POE?3:e===I.s.POE_PLUS?4:e===I.s.POE_PLUS_PLUS?5:6,C=({deviceMac:e,isSingleLine:i=!1,hidePoe:t=!1,hideDisabled:m=!1,hideDisconnected:A=!1,displayedSpeedList:u})=>{const{themeName:_}=(0,h.u)(),P=(0,r.d4)((0,s.useMemo)(()=>(0,T.tG)(e),[e])),{type:C,model:b}=P;return(0,s.useMemo)(()=>{const e=(0,g.MB)(P),s=(0,j.NuO)(P),r=(0,L._L)(P,s),h=m||(0,j.m_j)(P)||(0,j.Syn)(P)||(0,j.Fp0)(P),T=i?w:f,b=Array.from(r).sort(N).map(e=>{switch(!0){case e===I.s.POE_PLUS_PLUS_PLUS:return(0,n.jsx)(S.A,{description:(0,n.jsx)(E.sA,{id:"COMMON_DEVICE_POE_MODE_POE_PLUS_PLUS_PLUS"}),indicator:(0,n.jsx)(o.A,{color:a.Ay[`desktop-color-neutral-08-${_}`]})},e);case e===I.s.POE_PLUS_PLUS:return(0,n.jsx)(S.A,{description:(0,n.jsx)(E.sA,{id:"COMMON_DEVICE_POE_MODE_POE_PLUS_PLUS"}),indicator:(0,n.jsx)(d.A,{color:a.Ay[`desktop-color-neutral-08-${_}`]})},e);case e===I.s.POE_PLUS:return(0,n.jsx)(S.A,{description:(0,n.jsx)(E.sA,{id:"COMMON_DEVICE_POE_MODE_POE_PLUS"}),indicator:(0,n.jsx)(l.A,{color:a.Ay[`desktop-color-neutral-08-${_}`]})},e);case e===I.s.PASSTHROUGH||e===I.s.PASSIVE||e===I.s.POE:return(0,n.jsx)(S.A,{description:(0,n.jsx)(E.sA,{id:e===I.s.PASSIVE?"COMMON_DEVICE_POE_MODE_PASSIVE":"COMMON_DEVICE_POE_MODE_POE"}),indicator:(0,n.jsx)(c.A,{color:a.Ay[`desktop-color-neutral-08-${_}`]})},e);default:return null}});return(0,n.jsxs)(T,{children:[e.filter(e=>!u||u.includes(e)).sort((e,i)=>e-i).map(e=>(0,n.jsx)(S.A,{description:(0,O.ir)(e),indicator:(0,n.jsx)($,{color:(0,M.oX)((v.A[e]??v.A.DEFAULT).background,_)})},e)),A?null:(0,n.jsx)(S.A,{description:(0,n.jsx)(E.sA,{id:"COMMON_DISCONNECTED"}),indicator:(0,n.jsx)($,{color:(0,M.oX)(v.A.DEFAULT.background,_)})},"disconnected"),h?null:(0,n.jsx)(S.A,{description:(0,n.jsx)(E.sA,{id:"COMMON_DISABLED"}),indicator:(0,n.jsx)($,{color:"transparent",borderColor:v.A.DEFAULT.background}),isSingleLine:i},"disabled"),t?null:b,!(0,j.Tbi)({type:C})||(0,j.Syn)(P)||(0,j.Fp0)(P)?null:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(S.A,{description:(0,n.jsx)(E.sA,{id:"COMMON_AGGREGATING"}),indicator:(0,n.jsx)(p.A,{color:a.Ay[`desktop-color-neutral-08-${_}`]})},"aggregating"),(0,n.jsx)(S.A,{indicator:(0,n.jsx)(x.A,{}),description:(0,n.jsx)(E.sA,{id:"DEVICE_PORT_STATE_MIRROR"}),tooltipDescription:(0,n.jsx)(E.sA,{id:"DEVICE_PORT_STATE_MIRROR_TOOLTIP"})},"mirror")]})]})},[b,t,m,u,_])}},850352(e,i,t){t.d(i,{e:()=>p});var n=t(602086),s=t(237725),r=t(977872),a=t(101134),o=t(104997),d=t(95546),l=t(212635),c=t(251905),x=t(10695);const p=()=>{const e=(0,r.wA)(),i=(0,s.W6)(),t=(0,a.A)(`${o.VO.PORTS}`);return{handleGoToPortsPage:(0,n.useCallback)((n,s,r)=>{if(n)if(e((0,x.gU)(!0)),e((0,x.U)((0,c.HN)(l.F7.DEVICE,[n]))),e((0,x.E1)(!0)),r&&e((0,x.IU)(!0)),s){const i=(0,d.FS)(n,s);e((0,x.Ao)([i]))}else e((0,x.Ao)([]));i.push(t)},[t,i,e])}}},537417(e,i,t){t.d(i,{A:()=>s});var n=t(938984);const s=(0,t(247816).A)(n.A)`
  white-space: nowrap;
`},620627(e,i,t){t.d(i,{A:()=>x});var n=t(274934),s=t(938984),r=t(247816),a=t(309130),o=t(100978),d=t(535322);const l=(0,r.A)("div")`
  margin-right: ${a.kc};
`,c=(0,r.A)("div")`
  margin-left: ${a.kc};
`,x=({icon:e,closeIcon:i,nested:t,children:r,...a})=>(0,n.jsx)(d.A,{nested:t,...a,children:(0,n.jsxs)(o.A,{children:[(0,n.jsx)(l,{children:e}),(0,n.jsx)(s.A,{size:"medium",children:r}),i?(0,n.jsx)(c,{children:i}):null]})})},648175(e,i,t){t.d(i,{A:()=>r});var n=t(274934),s=t(642687);const r=({children:e,...i})=>(0,n.jsx)(s.A,{variant:"secondary-emphasis",...i,children:e})},698950(e,i,t){t.d(i,{A:()=>h});var n=t(274934),s=t(247816),r=t(409844),a=t(291508),o=t(470070),d=t(309130),l=t(100978),c=t(537417);const x=(0,s.A)(l.A,(0,a.A)("alignLeft"))`
  ${({alignLeft:e})=>e?"max-width: 288px;":"max-width: 100%; justify-content: center;"}
  gap: ${d.YC};
  align-items: center;
`,p=r.AH`
  max-width: 50%;
`,m=r.AH`
  flex: 0 1 auto;
  min-width: 0;
`,h=({messageId:e,messageValues:i,buttonEl:t,alignLeft:s=!0,color:r="text-3",variant:a="body-primary"})=>(0,n.jsxs)(x,{alignLeft:s,children:[(0,n.jsx)(c.A,{variant:a,color:r,children:i?(0,n.jsx)(l.A,{maxWidth:288,whiteSpace:"nowrap",paddingRight:d.YC,children:(0,n.jsx)(o.sA,{id:e,values:i})}):(0,n.jsx)(o.sA,{id:e})}),t?(0,n.jsx)(l.A,{className:s?m:p,children:t}):null]})},488287(e,i,t){t.d(i,{A:()=>E});var n=t(274934),s=t(977872),r=t(602086),a=t(938984),o=t(590979),d=t(898809),l=t(309130),c=t(100978),x=t(449339),p=t(785068),m=t(205521),h=t(470070),A=t(754924),O=t(119425),u=t(698950),_=t(208583);const E=({last_uplink_mac:e,last_uplink_name:i,last_uplink_remote_port:t,disconnected_at:E,disabled:M,separatePortNumber:g,maxWidth:L})=>{const{formatMessage:j}=(0,h.tz)(),T=(0,s.wA)(),v=(0,s.d4)(A.CC),I=(0,_.Z)(e,v),P=(0,_.z)(i,t,I,j,g),S=(0,r.useCallback)(()=>{M||T((0,m.XP)({type:x.H.DEVICE,id:e}))},[M,T,e]);return(0,n.jsxs)(n.Fragment,{children:[I?(0,n.jsx)(u.A,{messageId:"COMMON_DEVICE_LAST_CONNECTED_TO",messageValues:{deviceWithPort:(0,n.jsx)(c.A,{width:"100%",overflow:"hidden",paddingLeft:l.YC,children:(0,n.jsx)(p.A,{onClick:S,disabled:M,...o.A.addDataTestId(o.A.TestId.SIDE_PANEL_TRIGGER),name:P,port:t,separatePortNumber:g,maxWidth:L})})}}):null,E?(0,n.jsx)("div",{children:(0,n.jsx)(a.A,{color:"text-3",children:(0,n.jsx)(O.A,{date:(0,d.gH)(E)})})}):null]})}},208583(e,i,t){t.d(i,{Z:()=>s,z:()=>r});var n=t(347625);const s=(e,i)=>e?i.find(({mac:i})=>i===e):void 0,r=(e,i,t,s,r)=>{const a=!r&&i?` ${s({id:"DEVICE_PROPERTIES_PORT_WITH_NUMBER"},{port:i})}`:"";return e?`${e}${a}`:t?`${(0,n.Q)(t)}${a}`:s({id:"COMMON_FALLBACK"})}},783706(e,i,t){t.d(i,{A:()=>d});var n=t(274934),s=t(205240),r=t(956978),a=t(698950),o=t(949283);const d=({type:e,name:i,mac:t,uplink:d,state:l,model:c,disabled:x,alignLeft:p})=>(0,o.n)(l,d)?(0,n.jsx)(a.A,{messageId:(0,r.E4T)({model:c})?"COMMON_CONNECTED_TO":"DEVICE_MESHING_TO",alignLeft:p,buttonEl:(0,n.jsx)(s.E,{device:{type:e,name:i,mac:t,uplink:d},size:"medium",disabled:x})}):null},949283(e,i,t){t.d(i,{n:()=>o});var n=t(977872),s=t(45978),r=t(754924),a=t(313369);const o=(e,i)=>{const t=(0,n.d4)(r.CC),o=i.uplink_mac?t.find(({mac:e})=>e===i.uplink_mac):void 0,d=Boolean(i.signal);return a.q[e]===s.g.CONNECTED&&o&&d?o:void 0}},924453(e,i,t){t.d(i,{A:()=>o});var n=t(274934),s=t(938984),r=t(470070),a=t(664092);const o=({mac:e,compact:i=!1})=>e?(0,n.jsxs)(a.A,{compact:i,children:[(0,n.jsx)(s.A,{color:"text-2",size:"medium",children:(0,n.jsx)(r.sA,{id:"COMMON_MAC_ADDRESS"})}),(0,n.jsx)(s.A,{color:"text-3",size:"medium",children:e})]}):null},893762(e,i,t){t.d(i,{A:()=>d});var n=t(274934),s=t(938984),r=t(898809),a=t(470070),o=t(664092);const d=({uptime:e,compact:i=!1})=>e>0?(0,n.jsxs)(o.A,{compact:i,children:[(0,n.jsx)(s.A,{color:"text-2",size:"medium",children:(0,n.jsx)(a.sA,{id:"COMMON_UPTIME"})}),(0,n.jsx)(s.A,{color:"text-3",size:"medium",children:(0,r.Ay)(e)})]}):null},664092(e,i,t){t.d(i,{A:()=>l});var n=t(274934),s=t(247816),r=t(309130),a=t(100978),o=t(291508);const d=(0,s.A)(a.A,(0,o.A)("valueMaxWidth","keyMinWidth","compact"))`
  &:not(:last-child) {
    ${({compact:e})=>e?"":`margin-bottom: ${r.kc};`}
  }
  & > {
    &:nth-child(1) {
      min-width: ${({keyMinWidth:e})=>e}px;
    }
    &:nth-child(2) {
      max-width: ${({valueMaxWidth:e})=>e}px;
    }
  }
`,l=({children:e,valueMaxWidth:i=215,keyMinWidth:t=0,flexProps:s={},compact:a=!1})=>(0,n.jsx)(d,{width:"100%",justifyContent:"space-between",gap:r.kc,height:a?void 0:24,valueMaxWidth:i,keyMinWidth:t,compact:a,...s,children:e})},451336(e,i,t){t.d(i,{A:()=>c});var n=t(274934),s=t(783706),r=t(562896),a=t(488287),o=t(205240),d=t(698950);const l=({type:e,name:i,mac:t,uplink:s,disabled:r,maxWidth:a,peer_ubb:l,deviceState:c,ubb_pairing_state:x})=>(0,n.jsx)(d.A,{messageId:"COMMON_CONNECTED_TO",buttonEl:(0,n.jsx)(o.E,{device:{type:e,name:i,mac:t,uplink:s,peer_ubb:l,deviceState:c,ubb_pairing_state:x},maxWidth:a,disabled:r,separatePortNumber:!0})}),c=({connectionStatus:e,activeItem:{type:i,last_uplink:t,uplink:o,state:d,name:c,mac:x,model:p,disconnected_at:m,peer_ubb:h,deviceState:A,ubb_pairing_state:O},disabled:u,uplinkNameMaxWidth:_=195})=>{switch(e){case r.v.OFFLINE:return(0,n.jsx)(a.A,{last_uplink_mac:t?.uplink_mac,last_uplink_name:t?.uplink_device_name,last_uplink_remote_port:t?.uplink_remote_port,disconnected_at:m,disabled:u,separatePortNumber:!0,maxWidth:_});case r.v.MESHING:return(0,n.jsx)(s.A,{type:i,name:c,model:p,mac:x,uplink:o,state:d,disabled:u});case r.v.CONNECTED:return(0,n.jsx)(l,{type:i,name:c,mac:x,uplink:o,disabled:u,maxWidth:_,peer_ubb:h,deviceState:A,ubb_pairing_state:O});default:return null}}},326841(e,i,t){t.d(i,{A:()=>w});var n=t(274934),s=t(562896),r=t(247816),a=t(85521),o=t(309130),d=t(602086),l=t(938984),c=t(303853),x=t(470070),p=t(588769),m=t(43009),h=t(814557),A=t(360664);const O=(e,i)=>e<A.rr?h.Ay.motifs[i]["desktop-color-orange-06"]:h.Ay.motifs[i]["desktop-color-green-06"],u=e=>Number.isInteger(e)?e<A.rr?"COMMON_POOR":"COMMON_GOOD":"COMMON_OFFLINE";var _=t(100978),E=t(291508);const M=(0,r.A)(_.A,(0,E.A)("vertical"))`
  width: 100%;
  align-items: center;
  justify-content: center;
  position: relative;
  white-space: nowrap;
  ${({vertical:e})=>e?"top: 1px":""}
`,g=(0,d.memo)(({signal:e,vertical:i=!1})=>{const{motif:t}=(0,m.A)();return(0,n.jsx)(M,{vertical:i,children:(0,n.jsx)(l.A,{...e?{style:{color:O(e,t)}}:{color:"text-3"},size:"small",children:(0,n.jsx)(x.sA,{id:u(e)})})})});var L=t(458048),j=t(293255),T=t(385635);const v=[j.L.SIXTY_FIVE,j.L.FIFTY_FIVE,j.L.FOURTY_FIVE],I=(0,d.memo)(({dotOffset:e,signal:i,customWidth:t,isDualMeshing:s=!1,hideLabel:r=!1,fullWidthBar:a=!1})=>{const{width:o}=(0,c.Ay)(),m=(0,d.useMemo)(()=>t||(s||o<=p.A.L.TO?A.Hv:A.TV),[s,o,t]);return(0,n.jsxs)(_.A,{width:m,flexDirection:"column",children:[(0,n.jsxs)(_.A,{width:"100%",height:53,flexDirection:"column",children:[(0,n.jsx)(_.A,{width:"100%",height:20,alignItems:"center",position:"relative",top:-6,children:i?(0,n.jsxs)(T.lN,{size:"small",color:"text-1",offset:e,fullWidthBar:a,children:[i," ",(0,n.jsx)(x.sA,{id:"COMMON_UNIT_DBM"})]}):null}),(0,n.jsx)(T.Hv,{width:m,signal:i}),(0,n.jsxs)(_.A,{width:"100%",height:16,marginTop:6,alignItems:"center",justifyContent:"space-between",position:"relative",children:[(0,n.jsx)(l.A,{size:"small",color:"text-3",children:(0,n.jsx)(x.sA,{id:"COMMON_POOR"})}),v.map(e=>(0,n.jsxs)(T.oF,{size:"small",color:"text-3",isOnline:Boolean(i),offset:(0,L.cN)(-e),value:e,children:["-",e]},e)),(0,n.jsx)(l.A,{size:"small",color:"text-3",children:(0,n.jsx)(x.sA,{id:"COMMON_GOOD"})})]})]}),r?null:(0,n.jsx)(g,{signal:i})]})});var P=t(949283);const S=(0,r.A)(_.A)`
  max-width: 100%;
  justify-content: center;
  gap: ${o.kc};
  align-items: center;
  padding: ${o.kc} 0;
`,f=({uplink:e,state:i})=>{const[{width:t},s]=(0,a.Oy)(),r=e.signal||0;return(0,P.n)(i,e)?(0,n.jsx)(S,{ref:s,children:(0,n.jsx)(I,{signal:r,dotOffset:(0,L.Bw)(r),isDualMeshing:!1,hideLabel:!0,customWidth:t,fullWidthBar:!0})}):null},w=({connectionStatus:e,activeItem:{uplink:i,state:t}})=>e===s.v.MESHING?(0,n.jsx)(f,{uplink:i,state:t}):null},458619(e,i,t){t.d(i,{A:()=>x});var n=t(274934),s=t(938984),r=t(365236),a=t(309130),o=t(436890),d=t(648576),l=t(470070),c=t(643022);const x=({device:e,inline:i,...t})=>{const{onUpgradeDevice:x,showButton:p,isPending:m,hasFlashStorageWarning:h,deviceName:A,fromVersion:O,toVersion:u}=(0,r.S)(e);if(!p)return null;const _=(0,n.jsx)(c.A,{fromVersion:e.displayable_version,toVersion:e.upgrade_to_firmware,model:e.model,children:(0,n.jsx)(d.Ay,{variant:i?"inline":"primary",disabled:m,children:(0,n.jsx)(s.A,{size:"medium",weight:"inherit",color:"inherit",...t,children:(0,n.jsx)(l.sA,{id:"COMMON_ACTION_UPDATE"})})})});return(0,n.jsx)("div",{style:{marginTop:i?0:a.kc},children:(0,n.jsx)(o.A,{hasFlashStorageWarning:h,deviceName:A,fromVersion:O,toVersion:u,onConfirm:x,trigger:(0,n.jsx)("div",{children:_})})})}},83597(e,i,t){t.d(i,{A:()=>A});var n=t(274934),s=t(434521),r=t(45978),a=t(938984),o=t(247816),d=t(309130),l=t(100978),c=t(470070),x=t(609040);const p=(0,o.A)("div")`
  margin-top: ${d.kc};
`,m=({type:e,model:i,mac:t,rollupgrade:s})=>(0,n.jsxs)(p,{children:[(0,n.jsx)(x.A,{type:e,model:i,mac:t,rollupgrade:s,size:"large",maxWidth:"100%"}),(0,n.jsx)(l.A,{justifyContent:"center",width:"100%",children:(0,n.jsxs)(a.A,{variant:"body-primary",children:[(0,n.jsx)(c.sA,{id:"COMMON_UPDATING"}),"..."]})})]});var h=t(458619);const A=({activeItem:e})=>(0,n.jsxs)(n.Fragment,{children:[e.deviceState===r.g.UPGRADING||e.deviceState===r.g.CONNECTED&&e.rollupgrade?(0,n.jsx)(m,{type:e.type,model:e.model,mac:e.mac,rollupgrade:e.rollupgrade}):null,(0,s.g8)(e)?(0,n.jsx)(h.A,{device:e}):null]})},562896(e,i,t){var n;t.d(i,{v:()=>n}),function(e){e.OFFLINE="offline",e.MESHING="meshing",e.CONNECTED_INTERRUPTED="connected-interrupted",e.CONNECTED="connected"}(n||(n={}))},159911(e,i,t){t.d(i,{H:()=>a});var n=t(956978),s=t(857780),r=t(562896);const a=(e,i)=>(0,n.aK8)(e)?r.v.OFFLINE:i===s.au.WIRELESS?r.v.MESHING:r.v.CONNECTED},643022(e,i,t){t.d(i,{A:()=>x});var n=t(274934),s=t(602086),r=t(87449),a=t(977872),o=t(599110),d=t(125799),l=t(470070),c=t(976458);const x=({model:e,fromVersion:i,toVersion:t,children:x})=>{const p=(0,a.d4)(c.qf),m=(0,r.coerce)(t)?.version||t,h=(0,s.useCallback)(()=>{m&&p?.(e,m)},[p,e,m]);return(0,n.jsx)(d.A,{isInteractive:!0,portal:!0,description:m&&t?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{children:(0,n.jsx)(l.sA,{id:"COMMON_FROM_TO",values:{from:i,to:m,strong:l.ko}})}),void 0!==p?(0,n.jsx)(o.A,{variant:"inline",onClick:h,children:(0,n.jsx)(l.sA,{id:"COMMON_RELEASE_NOTES"})}):null]}):null,children:x})}},231083(e,i,t){t.d(i,{A:()=>d});var n=t(274934),s=t(602086),r=t(648175),a=t(470070),o=t(850352);const d=({mac:e})=>{const{handleGoToPortsPage:i}=(0,o.e)(),t=(0,s.useCallback)(()=>{i(e)},[i,e]);return(0,n.jsx)(r.A,{onClick:t,width:"full",children:(0,n.jsx)(a.sA,{id:"COMMON_PORT_MANAGER"})})}},613609(e,i,t){t.d(i,{A:()=>m});var n=t(274934),s=t(247816),r=t(309130),a=t(100978),o=t(535322),d=t(883717),l=t(251323),c=t(231083);const x=(0,s.A)(a.A)`
  > div {
    width: 100%;
  }
`,p=({activeItem:e,activeItem:{port_table:i,mac:t},showFullScreenDiagramButton:s,disableOnPortClick:o,isStacking:x,multipleDisplayedDevicesData:p})=>{const m=0!==(i||[]).length;return(0,n.jsxs)(n.Fragment,{children:[m?(0,n.jsxs)(a.A,{position:"relative",flexDirection:"column",children:[(0,n.jsx)(a.A,{flexDirection:"column",justifyContent:"center",children:x?(p||[]).map(e=>(0,n.jsx)(l.A,{activeItem:e,disableOnPortClick:s||o,isStacking:!0})):(0,n.jsx)(l.A,{activeItem:e,disableOnPortClick:s||o})}),(0,n.jsx)(d.A,{deviceMac:t})]}):null,s&&m?(0,n.jsx)(a.A,{paddingTop:r.Ln,justifyContent:"center",children:(0,n.jsx)(c.A,{mac:t})}):null]})},m=({useBubbleWrapper:e=!0,...i})=>e?(0,n.jsx)(x,{children:(0,n.jsx)(o.A,{flex:"unset",children:(0,n.jsx)(p,{...i})})}):(0,n.jsx)(p,{...i})},385635(e,i,t){t.d(i,{Hv:()=>h,WX:()=>m,lN:()=>A,oF:()=>O});var n=t(814557),s=t(938984),r=t(247816),a=t(309130),o=t(588769),d=t(682e3),l=t(100978),c=t(458048),x=t(360664),p=t(291508);const m=9,h=(0,r.A)(l.A,(0,p.A)("width","vertical","signal"))`
  width: ${({vertical:e=!1,width:i})=>e?x.f$:i}px;
  height: ${({vertical:e=!1,width:i})=>e?i:x.f$}px;
  border-radius: 12px;
  flex-grow: 0;
  position: relative;
  z-index: ${m};
  background: linear-gradient(
    -${({vertical:e=!1})=>e?"180":"90"}deg,
    ${({signal:e,theme:{themeName:i}})=>e?`\n    ${n.Ay.motifs[i]["desktop-color-green-06"]} 0%,\n    ${n.Ay.motifs[i]["desktop-color-yellow-06"]} 73.38%,\n    ${n.Ay.motifs[i]["desktop-color-orange-06"]} 100%\n    `:`\n    ${n.Ay.motifs[i]["desktop-color-neutral-03"]} 0%,\n    ${n.Ay.motifs[i]["desktop-color-neutral-03"]} 100%\n    `}
  );
  ${({vertical:e=!1})=>e?"top: -3px;":""}
  ${({signal:e,vertical:i=!1})=>{return e?(t=(0,c.Bw)(e),`\n        &::after {\n          content: '';\n          display: block;\n          position: absolute;\n          width: 14px;\n          height: 14px;\n          border-radius: 50%;\n          border: 2px solid ${n.Ay.motifs.light["desktop-color-neutral-00"]};\n          box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);\n          right: ${i?"5px":(0,c.Ty)(t)};\n          top: ${i?(0,c.zF)(t):"-2px"};\n          transform: translateX(50%);\n          background: transparent;\n        }\n        `):"";var t}}
`,A=(0,r.A)(s.A,(0,p.A)("offset","fullWidthBar"))`
  position: absolute;
  transform: translateX(50%);
  right: ${({offset:e,fullWidthBar:i=!1})=>i?(0,c.Ty)(e,20):100-e+"%"};
`,O=(0,r.A)(s.A,(0,p.A)("offset","value","isOnline"))`
  position: absolute;
  right: ${({offset:e})=>100-e}%;
  transform: translateX(50%);
  &::before {
    content: '';
    display: block;
    position: absolute;
    top: -6px;
    right: 50%;
    width: 1px;
    height: 4px;
    background: ${c.rD};
  }
`;(0,r.A)(l.A)`
  position: relative;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  bottom: 13px;
`,(0,r.A)(l.A)`
  width: 48px;
  height: 48px;
  padding: 5px;
  box-sizing: border-box;
  ${({theme:{themeName:e}})=>`\n    background: ${n.Ay[`desktop-color-neutral-01-${e}`]};\n    border: 2px solid ${n.Ay[`desktop-color-neutral-03-${e}`]};\n  `}
  border-radius: 8px;
`,(0,r.A)(l.A)`
  height: 16px;
  width: 175%;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: -22px;
`,(0,r.A)(l.A,(0,p.A)("isDualMeshing"))`
  align-items: center;
  width: 100%;
  padding: 0 10px;
  ${({isDualMeshing:e=!1})=>`\n    gap: ${e?a.kI:a.tr};\n    ${e?`\n        @media ${o.A.VIEWPORT_M}, ${o.A.VIEWPORT_ML} { gap: ${a.Yc}; }\n        @media (min-width: 1200px) and (max-width: 1300px) { gap: ${a.tr}; }\n        @media (min-width: 1300px) and (max-width: ${o.A[d.L.L].TO}px) { gap: ${a.kI}; }\n        @media ${o.A.VIEWPORT_XL} { gap: ${a.fS}; }\n    `:""}\n`}
`},360664(e,i,t){t.d(i,{GX:()=>n,Hv:()=>a,K:()=>s,TV:()=>o,f$:()=>d,rr:()=>r});const n=-30,s=-80,r=-65,a=184,o=238,d=10},293255(e,i,t){var n;t.d(i,{L:()=>n}),function(e){e[e.FOURTY_FIVE=45]="FOURTY_FIVE",e[e.FIFTY_FIVE=55]="FIFTY_FIVE",e[e.SIXTY_FIVE=65]="SIXTY_FIVE"}(n||(n={}))},458048(e,i,t){t.d(i,{Bw:()=>d,Ty:()=>l,cN:()=>o,rD:()=>a,zF:()=>c});var n=t(814557),s=t(293255),r=t(360664);const a=({value:e,isOnline:i,theme:{themeName:t}})=>i?e===s.L.FOURTY_FIVE?n.Ay.motifs[t]["desktop-color-green-06"]:e===s.L.FIFTY_FIVE?n.Ay.motifs[t]["desktop-color-yellow-06"]:e===s.L.SIXTY_FIVE?n.Ay.motifs[t]["desktop-color-orange-06"]:void 0:n.Ay.motifs[t]["desktop-color-neutral-03"],o=e=>100*(e-r.K)/(r.GX-r.K),d=e=>Math.min(Math.max(o(e),0),100),l=(e,i=6)=>e<10?`calc(${100-e}% - ${i}px)`:e>90?`calc(${100-e}% + ${i}px)`:100-e+"%",c=e=>`calc(${100-e}% + ${e<30?-12:0}px)`}}]);