"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[61411],{525134(e,i,s){s.d(i,{A:()=>t});var r=s(602086),l=s(141992);const t=(0,s(272338).w)(e=>(0,r.createElement)("svg",(0,l.d)({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em"},e),(0,r.createElement)("path",{d:"M7.5 16a.501.501 0 0 0 .364-.157l4.849-5.142A.994.994 0 0 0 13 10a.994.994 0 0 0-.287-.701L7.864 4.157a.5.5 0 0 0-.728.686L12 10l-.01.01-4.854 5.146A.5.5 0 0 0 7.5 16Z",fill:"currentColor",className:e.baseclassname}),(0,r.createElement)("path",{d:"M7.65 16c.2 0 .399-.079.547-.236l4.597-4.89a1.252 1.252 0 0 0 0-1.748l-4.597-4.89a.75.75 0 0 0-1.093 1.027L11.556 10l-4.452 4.736A.75.75 0 0 0 7.65 16Z",fill:"currentColor",className:e.fillclassname})))},296164(e,i,s){s.d(i,{A:()=>t});var r=s(602086),l=s(141992);const t=(0,s(272338).w)(e=>(0,r.createElement)("svg",(0,l.d)({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em"},e),(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m15.656 7.172.707-.707a1 1 0 0 0 0-1.414L14.95 3.637a1 1 0 0 0-1.414 0l-.707.707 2.828 2.828ZM7.19 15.64l7.76-7.76-2.828-2.83-7.76 7.761a1 1 0 0 0-.293.694l-.018 1.432a1 1 0 0 0 1.013 1.013l1.432-.018a1 1 0 0 0 .694-.293Z",fill:"currentColor",className:e.twotonedclassname}),(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m4.068 13.506-.018 1.432a1 1 0 0 0 1.013 1.012l1.432-.018a1 1 0 0 0 .694-.292l9.174-9.175a1 1 0 0 0 0-1.414L14.95 3.637a1 1 0 0 0-1.414 0L4.361 12.81a1 1 0 0 0-.293.695Zm.982 1.444.018-1.432 7.76-7.76 1.415 1.414-7.761 7.76-1.432.018Zm9.9-8.485.706-.707-1.414-1.414-.706.706 1.414 1.415Z",fill:"currentColor",className:e.baseclassname}),(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m15.656 7.172.707-.707a1 1 0 0 0 0-1.414L14.95 3.637a1 1 0 0 0-1.414 0l-.707.707 2.828 2.828ZM7.19 15.64l7.76-7.76-2.828-2.83-7.76 7.761a1 1 0 0 0-.293.694l-.018 1.432a1 1 0 0 0 1.013 1.013l1.432-.018a1 1 0 0 0 .694-.293Z",fill:"currentColor",className:e.fillclassname})))},595778(e,i,s){s.d(i,{I:()=>l,U:()=>t});var r=s(241365);const l=(0,s(419284).Wj)(r.Ay["blue-0"]),t=100},323019(e,i,s){s.d(i,{A3:()=>c,Fw:()=>m,XH:()=>d,lp:()=>_});var r=s(222102),l=s(586566),t=s(291935),o=s(197571),n=s(147433),a=s(754924);const d=(0,r.Mz)(t.bL,o.a3,(e,i)=>e&&i.every(({wan_smartq_enabled:e})=>!e)),c=(0,r.Mz)(a.U$,e=>(0,l.$F)(e)),_=(0,r.Mz)(a.U$,e=>(0,l.$F)(e)&&(e.hardware_offload??!0)),m=(0,r.Mz)(a.U$,e=>(0,l.WM)(e.fw2_caps,n.A.HWOFFLOAD_QOS_AND_SMART_QUEUE))},446863(e,i,s){s.d(i,{H5:()=>a,Lq:()=>n,n0:()=>o});var r=s(909924),l=s(573534),t=s(172205);const o=e=>e[t.U.SHARED][l.N.PROPERTY_PANEL]?.[r.Io.TAB_GET_DATA_FUNCTION]||{},n=e=>e[t.U.SHARED][l.N.PROPERTY_PANEL]?.[r.Io.TAB_SUBMIT_FUNCTION]||{},a=e=>e[t.U.SHARED][l.N.PROPERTY_PANEL]?.[r.Io.TAB_RESET_FUNCTION]||{}},170427(e,i,s){s.d(i,{A:()=>m});var r=s(274934),l=s(938984),t=s(247816),o=s(309130),n=s(304151),a=s(100978);const d=(0,t.A)(l.A)`
  white-space: nowrap;
`,c=(0,t.A)(a.A)`
  align-items: center;
`,_=(0,t.A)(a.A)`
  width: ${o.Ln};
  justify-content: flex-start;
`,m=({indicator:e,description:i,isSingleLine:s,tooltipDescription:l})=>(0,r.jsxs)(c,{marginRight:s?o.kc:0,children:[(0,r.jsx)(_,{children:e}),(0,r.jsx)(d,{size:"small",color:"text-3",children:i}),l?(0,r.jsx)(n.A,{description:l}):null]})},883717(e,i,s){s.d(i,{A:()=>P,T:()=>D});var r=s(274934),l=s(602086),t=s(977872),o=s(814557),n=s(248887),a=s(18391),d=s(760055),c=s(31881),_=s(920391),m=s(692972),A=s(247816),E=s(263705),u=s(513458),h=s(442175),O=s(309130),p=s(100978),x=s(470070),C=s(940229),I=s(576024),j=s(469890),T=s(956978),S=s(754924),g=s(940563),v=s(977782),b=s(291508),N=s(170427);const f=(0,A.A)("div")`
  display: grid;
  grid-template-columns: repeat(3, minmax(min-content, 1fr));
  gap: ${O.YC};
  margin-top: ${O.kc};
`,R=(0,A.A)(p.A)`
  gap: ${O.kc};
  row-gap: ${O.YC};
  flex-wrap: wrap;
`,D=(0,A.A)(u.A,(0,b.A)("borderColor"))`
  flex-shrink: 0;
  border-radius: 0;
  border: ${({borderColor:e,theme:{themeName:i}})=>e&&`1px solid ${(0,C.oX)(e,i)}`};
`,L=(e,i)=>e===v.s.PASSTHROUGH?1:e===v.s.PASSIVE?2:e===v.s.POE?3:e===v.s.POE_PLUS?4:e===v.s.POE_PLUS_PLUS?5:6,P=({deviceMac:e,isSingleLine:i=!1,hidePoe:s=!1,hideDisabled:A=!1,hideDisconnected:u=!1,displayedSpeedList:O})=>{const{themeName:p}=(0,E.u)(),b=(0,t.d4)((0,l.useMemo)(()=>(0,S.tG)(e),[e])),{type:P,model:M}=b;return(0,l.useMemo)(()=>{const e=(0,I.MB)(b),l=(0,T.NuO)(b),t=(0,j._L)(b,l),E=A||(0,T.m_j)(b)||(0,T.Syn)(b)||(0,T.Fp0)(b),S=i?R:f,M=Array.from(t).sort(L).map(e=>{switch(!0){case e===v.s.POE_PLUS_PLUS_PLUS:return(0,r.jsx)(N.A,{description:(0,r.jsx)(x.sA,{id:"COMMON_DEVICE_POE_MODE_POE_PLUS_PLUS_PLUS"}),indicator:(0,r.jsx)(n.A,{color:o.Ay[`desktop-color-neutral-08-${p}`]})},e);case e===v.s.POE_PLUS_PLUS:return(0,r.jsx)(N.A,{description:(0,r.jsx)(x.sA,{id:"COMMON_DEVICE_POE_MODE_POE_PLUS_PLUS"}),indicator:(0,r.jsx)(a.A,{color:o.Ay[`desktop-color-neutral-08-${p}`]})},e);case e===v.s.POE_PLUS:return(0,r.jsx)(N.A,{description:(0,r.jsx)(x.sA,{id:"COMMON_DEVICE_POE_MODE_POE_PLUS"}),indicator:(0,r.jsx)(d.A,{color:o.Ay[`desktop-color-neutral-08-${p}`]})},e);case e===v.s.PASSTHROUGH||e===v.s.PASSIVE||e===v.s.POE:return(0,r.jsx)(N.A,{description:(0,r.jsx)(x.sA,{id:e===v.s.PASSIVE?"COMMON_DEVICE_POE_MODE_PASSIVE":"COMMON_DEVICE_POE_MODE_POE"}),indicator:(0,r.jsx)(c.A,{color:o.Ay[`desktop-color-neutral-08-${p}`]})},e);default:return null}});return(0,r.jsxs)(S,{children:[e.filter(e=>!O||O.includes(e)).sort((e,i)=>e-i).map(e=>(0,r.jsx)(N.A,{description:(0,h.ir)(e),indicator:(0,r.jsx)(D,{color:(0,C.oX)((g.A[e]??g.A.DEFAULT).background,p)})},e)),u?null:(0,r.jsx)(N.A,{description:(0,r.jsx)(x.sA,{id:"COMMON_DISCONNECTED"}),indicator:(0,r.jsx)(D,{color:(0,C.oX)(g.A.DEFAULT.background,p)})},"disconnected"),E?null:(0,r.jsx)(N.A,{description:(0,r.jsx)(x.sA,{id:"COMMON_DISABLED"}),indicator:(0,r.jsx)(D,{color:"transparent",borderColor:g.A.DEFAULT.background}),isSingleLine:i},"disabled"),s?null:M,!(0,T.Tbi)({type:P})||(0,T.Syn)(b)||(0,T.Fp0)(b)?null:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(N.A,{description:(0,r.jsx)(x.sA,{id:"COMMON_AGGREGATING"}),indicator:(0,r.jsx)(m.A,{color:o.Ay[`desktop-color-neutral-08-${p}`]})},"aggregating"),(0,r.jsx)(N.A,{indicator:(0,r.jsx)(_.A,{}),description:(0,r.jsx)(x.sA,{id:"DEVICE_PORT_STATE_MIRROR"}),tooltipDescription:(0,r.jsx)(x.sA,{id:"DEVICE_PORT_STATE_MIRROR_TOOLTIP"})},"mirror")]})]})},[M,s,A,O,p])}},850352(e,i,s){s.d(i,{e:()=>m});var r=s(602086),l=s(237725),t=s(977872),o=s(101134),n=s(104997),a=s(95546),d=s(212635),c=s(251905),_=s(10695);const m=()=>{const e=(0,t.wA)(),i=(0,l.W6)(),s=(0,o.A)(`${n.VO.PORTS}`);return{handleGoToPortsPage:(0,r.useCallback)((r,l,t)=>{if(r)if(e((0,_.gU)(!0)),e((0,_.U)((0,c.HN)(d.F7.DEVICE,[r]))),e((0,_.E1)(!0)),t&&e((0,_.IU)(!0)),l){const i=(0,a.FS)(r,l);e((0,_.Ao)([i]))}else e((0,_.Ao)([]));i.push(s)},[s,i,e])}}},648175(e,i,s){s.d(i,{A:()=>t});var r=s(274934),l=s(642687);const t=({children:e,...i})=>(0,r.jsx)(l.A,{variant:"secondary-emphasis",...i,children:e})},637084(e,i,s){s.d(i,{A:()=>O});var r=s(274934),l=s(602086),t=s(843871),o=s(977872),n=s(418398),a=s(205521),d=s(232410),c=s(1469),_=s(260288),m=s(619619),A=s(876809),E=s(113454),u=s(621309);const h=(0,t.bk)({enableReinitialize:!0,mapPropsToValues:({powerSupervisor:e,device:i})=>({powerSupervisor:(0,m.f)(e,(0,E.lD)(i,e))}),handleSubmit:(e,{resetForm:i})=>i({values:e}),validationSchema:A.A}),O=(0,n.Zz)((0,o.Ng)((e,{device:{mac:i}})=>({powerSupervisor:(0,d.x0)(i)(e)})))(h(({powerSupervisor:e,device:i,setFormDirty:s,setFormInvalid:t,validateForm:n,values:d,resetForm:m,dirty:A,isValid:E,formName:h=_.r8})=>{const O=(0,o.wA)();return(0,l.useEffect)(()=>(O((0,a.uo)({[h]:()=>({})})),O((0,a.Oo)({[h]:()=>{n().then(i=>{Object.keys(i).length||O((0,u.A)(e?.id,d.powerSupervisor))})}})),O((0,a.rW)({[h]:m})),()=>{O((0,a.uo)({[h]:null})),O((0,a.Oo)({[h]:null})),O((0,a.rW)({[h]:null}))}),[O,m,d.powerSupervisor,h,n,e?.id]),(0,l.useEffect)(()=>{s?.(h,A),t?.(h,!E)},[s,A,t,E,h]),(0,r.jsx)(c.A,{device:i})}))},876809(e,i,s){s.d(i,{A:()=>t,q:()=>l});var r=s(950804);const l=r.A.object().shape({power_sources:r.A.array().transform(e=>e.filter(e=>e.power_source_mac)).of(r.A.object().shape({client_psu_index:r.A.number().required(),power_source_mac:r.A.string().label("COMMON_POWER_SOURCE").required(),power_source_index:r.A.string().label("COMMON_OUTLET").required()})).label("COMMON_POWER_SOURCE").min(1)}).optional(),t=r.A.object().shape({powerSupervisor:l})},412205(e,i,s){s.r(i),s.d(i,{default:()=>Fe});var r=s(274934),l=s(418398),t=s(977872),o=s(864308),n=s(244081),a=s(724081),d=s(478961),c=s(630849),_=s(115114),m=s(376892),A=s(535322),E=s(291935),u=s(446863),h=s(553732),O=s(897166),p=s(434521),x=s(795206),C=s(637084),I=s(602086),j=s(943126),T=s(938984),S=s(792929),g=s(599110),v=s(296164),b=s(525134),N=s(247816),f=s(590979),R=s(51411),D=s(320509),L=s(254585),P=s(449339),M=s(309130),k=s(589650),F=s(116045),U=s(100978),V=s(205521),y=s(470070),w=s(197571),G=s(956978),B=s(45978),z=s(518764),H=s(994177);const W=(0,N.A)("div")`
  table {
    tr {
      cursor: pointer;
    }
  }
`,Y=(0,N.A)(b.A)`
  position: absolute;
  right: 8px;
  color: inherit;
`,$=(0,N.A)("div")`
  margin-left: 10px;
`,q=(0,N.A)(g.A)`
  font-size: ${({theme:{fontSizes:e}})=>e[2]}px !important;
  margin-top: ${M.Ln};
  justify-content: flex-end;
  svg {
    height: 14px;
    width: 13px;
  }
`,X=[{id:"portName",label:(0,r.jsx)(y.sA,{id:"COMMON_NAME"}),renderCell:({portName:e})=>(0,r.jsx)(T.A,{size:"medium",children:e})},{id:"portStatus",label:(0,r.jsx)(y.sA,{id:"COMMON_STATUS"}),renderCell:({portStatus:e})=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(T.A,{color:"inherit",size:"medium",children:e}),(0,r.jsx)(Y,{size:"small"})]})}],Z=({activeItem:e,activeItem:{model:i,port_table:s,ethernet_overrides:l,port_overrides:o,mac:n}})=>{const{formatMessage:a}=(0,y.tz)(),d=(0,t.wA)(),c=(0,t.d4)(L.oI),_=(0,t.d4)(w.LV),m=(0,I.useMemo)(()=>(0,H.j)(i),[i]),A=(0,p.S9)(e),E=[B.g.CONNECTED,B.g.PROVISIONING].includes(A),u=(0,I.useMemo)(()=>{const e=Object.keys(m.ports);return(s||[]).map((i,s)=>({port_idx:Number.parseInt(e[s].replace("eth",""),10)+1,...i}))||e.map(e=>({ifname:e,up:!1,enable:!1,port_idx:Number.parseInt(e.replace("eth",""),10)+1}))},[m.ports,s]).sort((e,i)=>e.port_idx-i.port_idx).map(s=>{const t=s.port_idx,n=l.find(({ifname:e})=>e===s.ifname),d=n&&_.find(e=>e.id===n.networkgroup),{nameOverride:c}=(0,G.NF$)(t,e),m=(0,R.Nk)(i,s.ifname),A=o&&o.find(({port_idx:e})=>m.portIdx===e),E=Object.values(z.A.linkNegotiationOptions).find(({speed:e,full_duplex:i,autoneg:s})=>A&&A.speed&&!A.autoneg?A.speed===e&&A.full_duplex===i:s),{ports:u}=(0,H.j)(i),h=(0,G.oWO)(e)?u[s.ifname]:t,O=(0,G.Xq1)(e,s,d?.id??a({id:"COMMON_DISABLED"})),p=c||(0,r.jsx)(y.sA,{id:(0,G.lRq)(e)||(0,G.GJ5)(e)?"DEVICE_PROPERTIES_PORT_WITH_NUMBER_AND_NETWORK_GROUP_SHORT":"DEVICE_PROPERTIES_PORT_WITH_NUMBER_AND_NETWORK_GROUP",values:{port:h,networkGroup:O}}),x={...(0,j.A)(s),networkGroup:d?d.id:null,networkGroupLabel:d?d.label:"COMMON_DISABLED",linkNegotiation:E.id,linkNegotiationLabel:E.label,linkNegotiationSpeed:E.speed,portName:p,portStatus:void 0,id:t||s.ifname,portIdx:t};return m.supportedValues&&0!==m.supportedValues.length||(x.linkNegotiationLabel="DEVICE_PROPERTIES_LINK_NEGOTIATION_AUTO"),x.portStatus=(0,r.jsxs)(U.A,{alignItems:"center",children:[(0,r.jsx)(F.A,{cellData:x,activeItem:e,style:{minWidth:20}}),(0,r.jsx)($,{children:(0,r.jsx)(y.sA,{id:x.networkGroup?x.linkNegotiationLabel:x.networkGroupLabel,values:{speed:(0,D.ap)(x.linkNegotiationSpeed)}})})]}),x}),h=(0,I.useCallback)(e=>{e?.dns||d((0,V.XP)({type:P.H.DEVICE,id:n,tab:c,subPanel:k.uY.PORTS,subId:e.ifname}))},[d,n,c]),O=(0,I.useCallback)(()=>d((0,V.XP)({type:P.H.DEVICE,id:n,tab:c,subPanel:k.uj.ALL})),[d,n,c]);return(0,r.jsx)(W,{children:(0,r.jsxs)(U.A,{flexDirection:"column",children:[(0,r.jsx)(S.A,{columns:X,disableColumnFilters:!0,items:u,onRowClick:h,truncateHeaderCells:!0,hideCellOverflow:!1}),E?(0,r.jsx)(q,{variant:"link",onClick:O,Icon:(0,r.jsx)(v.A,{isActive:!0}),...f.A.addDataTestId(f.A.TestId.SIDE_PANEL_TRIGGER),children:(0,r.jsx)(y.sA,{id:"DEVICE_PORTS_TABLE_CONFIGURE_INTERFACES"})}):null]})})};var K=s(613609),Q=s(843871),J=s(925845),ee=s(956976),ie=s(60927),se=s(419284),re=s(950804),le=s(586566),te=s(120197),oe=s(857780),ne=s(595778);const ae="screen",de=(0,N.A)("div")`
  display: flex;
  > label:not(:first-child) {
    margin-left: 18px;
  }
`,ce=(0,Q.bk)({enableReinitialize:!0,mapPropsToValues:({activeItem:{led_override:e,led_override_color:i,led_override_color_brightness:s,lcm_brightness_override:r,lcm_brightness:l,lcm_idle_timeout_override:t,lcm_idle_timeout:o,outdoor_mode_override:n,power_source_ctrl:a}={},mgmtSettings:d})=>({led_override:e||(!1===d.led_enabled?oe.c_.OFF:oe.c_.ON),led_override_color:i||ne.I,led_override_color_brightness:s>=0?s:ne.U,lcm_brightness_override:r||!1,lcm_brightness:l>=0?l:100,lcm_idle_timeout_override:t||!1,lcm_idle_timeout:o||0,outdoor_mode_override:n||"default",power_source_ctrl:a||"auto"}),validationSchema:re.A.object().shape({led_override:re.A.string(),led_override_color:re.A.string(),led_override_color_brightness:re.A.number(),lcm_brightness_override:re.A.boolean(),lcm_brightness:re.A.number().label("COMMON_BRIGHTNESS").min(1).max(100).required(),lcm_idle_timeout_override:re.A.boolean(),lcm_idle_timeout:re.A.number(),outdoor_mode_override:re.A.string(),power_source_ctrl:re.A.string()}),handleSubmit:(e,{resetForm:i})=>{i({values:e})}}),_e=e=>(0,r.jsxs)("span",{children:[e,"%"]}),me=(0,l.Zz)((0,t.Ng)(e=>({mgmtSettings:(0,E.$5)(e)})),ce)(({activeItem:e,setFormDirty:i,dirty:s,values:l,resetForm:o,setFieldValue:n,disableLedOverrideFields:a,mgmtSettings:d})=>{const c=(0,t.wA)(),_=(0,le.j0)(e),m=(0,le.lp)(e),A=(d.led_enabled&&e.led_override!==oe.c_.OFF||e.led_override===oe.c_.ON)&&m;(0,I.useEffect)(()=>(c((0,V.uo)({[ae]:()=>{if(!s)return{};const e={...l,led_override:l.led_override?oe.c_.ON:oe.c_.OFF,lcm_brightness_override:_&&l.lcm_brightness_override,lcm_idle_timeout_override:_&&l.lcm_idle_timeout_override};return e.lcm_brightness_override||delete e.lcm_brightness,e.lcm_idle_timeout_override||delete e.lcm_idle_timeout,_||(delete e.lcm_brightness_override,delete e.lcm_idle_timeout_override),e}})),c((0,V.Oo)({[ae]:()=>o({values:l})})),c((0,V.rW)({[ae]:o})),()=>{c((0,V.uo)({[ae]:null})),c((0,V.Oo)({[ae]:null})),c((0,V.rW)({[ae]:null}))}),[c,o,l,s,e.mac,_]),(0,I.useEffect)(()=>{i(ae,s)},[i,s]);const E=(0,I.useCallback)((e,i,s)=>{e.target.checked&&n(i,s?"override"===e.target.name:e.target.name)},[n]),u=(0,I.useCallback)(e=>E(e,"lcm_brightness_override",!0),[E]),h=(0,I.useCallback)(e=>E(e,"lcm_idle_timeout_override",!0),[E]),O=(0,I.useCallback)(e=>{n("led_override_color",(0,se.E6)(e.toString())||ne.I)},[n]);return(0,r.jsxs)(U.A,{flexDirection:"column",gap:M.xO,children:[a?null:(0,r.jsxs)(U.A,{justifyContent:"space-between",gap:M.Ln,children:[(0,r.jsx)(T.A,{size:"medium",children:(0,r.jsx)(y.sA,{id:"COMMON_LED"})}),(0,r.jsx)(te.A,{type:"checkbox",name:"led_override"})]}),A?(0,r.jsxs)(U.A,{flexDirection:"column",gap:M.xO,children:[(0,r.jsx)(T.A,{size:"medium",children:(0,r.jsx)(y.sA,{id:"COMMON_BRIGHTNESS"})}),(0,r.jsx)(J.A,{size:"large",value:+l.led_override_color_brightness,withValueIndicator:!0,valueIndicatorPosition:"right",formatValueIndicatorContent:_e,onChange:e=>n("led_override_color_brightness",e.target.value)}),(0,r.jsx)(T.A,{color:"text-1",weight:"bold",size:"medium",children:(0,r.jsx)(y.sA,{id:"COMMON_COLOR"})}),(0,r.jsx)(ie.A,{value:l.led_override_color,onChange:O,sliders:[{id:"hue",channel:"hue"}],colorSpace:"hex",children:(0,r.jsx)("span",{children:(0,r.jsx)(y.sA,{id:"DEVICE_PROPERTIES_LABEL_HEX"})})})]}):null,_?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(U.A,{children:(0,r.jsx)(T.A,{size:"medium",children:(0,r.jsx)(y.sA,{id:"DEVICE_PROPERTIES_LABEL_LCM_BRIGHTNESS"})})}),(0,r.jsx)(U.A,{marginBottom:M.YC,children:(0,r.jsxs)(de,{children:[(0,r.jsx)(ee.A,{id:"lcmBrigthnessDefault",checked:!l.lcm_brightness_override,name:"default",onChange:u,children:(0,r.jsx)(T.A,{size:"medium",children:(0,r.jsx)(y.sA,{id:"DEVICE_PROPERTY_VALUE_LED_DEFAULT_SETTINGS"})})}),(0,r.jsx)(ee.A,{id:"lcmBrigthnessOverride",checked:l.lcm_brightness_override,name:"override",onChange:u,children:(0,r.jsx)(T.A,{size:"medium",children:(0,r.jsx)(y.sA,{id:"COMMON_ACTIONS_OVERRIDE"})})})]})}),l.lcm_brightness_override?(0,r.jsx)(U.A,{children:(0,r.jsx)(J.A,{size:"large",value:+l.lcm_brightness,withValueIndicator:!0,valueIndicatorPosition:"right",formatValueIndicatorContent:_e,onChange:e=>n("lcm_brightness",e.target.value),min:1})}):null,(0,r.jsx)(U.A,{children:(0,r.jsx)(T.A,{size:"medium",children:(0,r.jsx)(y.sA,{id:"DEVICE_PROPERTIES_LABEL_LCM_IDLE_TIMEOUT"})})}),(0,r.jsxs)(U.A,{gap:M.Ln,children:[(0,r.jsx)(ee.A,{id:"lcmIdleTimeoutDefault",checked:!l.lcm_idle_timeout_override,name:"default",onChange:h,children:(0,r.jsx)(T.A,{size:"medium",children:(0,r.jsx)(y.sA,{id:"DEVICE_PROPERTY_VALUE_LED_DEFAULT_SETTINGS"})})}),(0,r.jsx)(ee.A,{id:"lcmIdleTimeoutOverride",checked:l.lcm_idle_timeout_override,name:"override",onChange:h,children:(0,r.jsx)(T.A,{size:"medium",children:(0,r.jsx)(y.sA,{id:"COMMON_ACTIONS_OVERRIDE"})})})]})]}):null]})});var Ae=s(532635),Ee=s(795928),ue=s(396489),he=s.n(ue),Oe=s(125799),pe=s(770698),xe=s(632622),Ce=s(853777),Ie=s(871808),je=s(250266),Te=s(448108),Se=s(642013),ge=s(598990),ve=s(95857),be=s(323019),Ne=s(570866);const fe="services",Re=(0,N.A)(U.A)`
  width: 100%;
  justify-content: space-between;
  align-items: center;
`,De=(0,N.A)(xe.A)`
  color: ${({theme:{motifPalette:{text02:e}}})=>e};
  opacity: 0.4;
  margin-right: auto;
`,Le=(0,N.A)(Ce.A)`
  margin-left: ${M.YC};
`,Pe=(0,N.A)("div")`
  display: flex;
  align-items: center;
  .tooltip-position-fixer {
    margin-right: -14px;
  }
  > label:not(:first-child) {
    margin-left: ${M.Ln};
  }
`,Me=(0,r.jsx)(y.sA,{id:"DEVICE_PROPERTIES_LABEL_CUSTOM_MSS_CLAMPING_VALIDATION_LABEL",values:{min:Se.DEFAULT_GATEWAY_SETTINGS.min_mss_clamp_mss,max:Se.DEFAULT_GATEWAY_SETTINGS.mss_clamp_mss}}),ke=(0,Q.bk)({enableReinitialize:!0,isInitialValid:!0,mapPropsToValues:({usgSettings:{key:e,mss_clamp_mss:i,mss_clamp:s,offload_accounting:r,echo_server:l,offload_sch:t,offload_l2_blocking:o,lldp_enable_all:n,arp_cache_timeout:a,arp_cache_base_reachable:d}})=>({key:e,mss_clamp:s||Se.DEFAULT_GATEWAY_SETTINGS.mss_clamp,mss_clamp_mss:i||Se.DEFAULT_GATEWAY_SETTINGS.mss_clamp_mss,offload_accounting:r||Se.DEFAULT_GATEWAY_SETTINGS.offload_accounting,offload_sch:t,offload_l2_blocking:o,echo_server:l||Se.DEFAULT_GATEWAY_SETTINGS.echo_server,lldp_enable_all:n,arp_cache_timeout:a||"normal",arp_cache_base_reachable:d||Se.DEFAULT_GATEWAY_SETTINGS.arp_cache_base_reachable}),validationSchema:re.A.object().shape({mss_clamp:re.A.string(),mss_clamp_mss:re.A.number().when("mss_clamp",{is:Te.xO.CUSTOM,then:re.A.number().label("DEVICE_PROPERTIES_LABEL_CUSTOM_MSS_CLAMPING").required().min(Se.DEFAULT_GATEWAY_SETTINGS.min_mss_clamp_mss,Me).max(Se.DEFAULT_GATEWAY_SETTINGS.mss_clamp_mss,Me)}),offload_accounting:re.A.boolean(),offload_sch:re.A.boolean(),offload_l2_blocking:re.A.boolean(),arp_cache_timeout:re.A.string(),arp_cache_base_reachable:re.A.number().when("arp_cache_timeout",{is:"custom",then:re.A.number().label("COMMON_ARP_CACHE_TIMEOUT").required().min(1).max(Se.DEFAULT_GATEWAY_SETTINGS.max_arp_cache_base_reachable)}),echo_server:re.A.string().label("DEVICE_PROPERTIES_VALUES_ECHO_SERVER_IP_OR_HOSTNAME").required().matches(Ne.yA,{message:(0,r.jsx)(y.sA,{id:"COMMON_VALIDATION_HOSTNAME_OR_IPV4"})}),lldp_enable_all:re.A.boolean()}),handleSubmit:(e,{resetForm:i})=>{i({values:e})}})(({values:e,initialValues:i,setFieldValue:s,dirty:l,isValid:o,setFormDirty:n,setFormInvalid:a,resetForm:d,usgSettings:c,activeItem:_,errors:m})=>{const A=(0,t.wA)(),[E,u]=(0,I.useState)(!1),h=(0,t.d4)(be.XH),O=(0,Ie.A)(ve.Xj.WAN_SLA);(0,I.useEffect)(()=>{A((0,V.Oo)({[fe]:()=>{he()(i,e)||A((0,ge.fU)(e,_._id,void 0)),d({values:e})}})),A((0,V.rW)({[fe]:d}))},[A,i,e]),(0,I.useEffect)(()=>{n(fe,l),a(fe,!o)},[n,a,e,c,l,o]);const p=(0,I.useCallback)(({target:{checked:e,name:i}})=>{e&&s("mss_clamp",i)},[s]),x=(0,I.useCallback)(({target:{checked:e,name:i}})=>{e&&s("arp_cache_timeout",i)},[s]),C=(0,I.useCallback)(()=>{s("echo_server",Se.DEFAULT_GATEWAY_SETTINGS.echo_server)},[s]),j=(0,I.useCallback)(()=>{u(!0)},[]),S=(0,I.useCallback)(()=>{s("echo_server",Se.DEFAULT_GATEWAY_SETTINGS.echo_server),u(!1)},[s]),g=(0,I.useCallback)(()=>{u(!1)},[]),v=(0,I.useCallback)(()=>{s("echo_server",""),u(!1)},[s]),b=(0,I.useCallback)(()=>{s("offload_accounting",!e.offload_accounting)},[s,e.offload_accounting]),N=(0,I.useCallback)(()=>{s("offload_sch",!e.offload_sch)},[s,e.offload_sch]),f=(0,I.useCallback)(()=>{s("offload_l2_blocking",!e.offload_l2_blocking)},[s,e.offload_l2_blocking]),R=(0,I.useCallback)(()=>{s("lldp_enable_all",!e.lldp_enable_all)},[s,e.lldp_enable_all]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Re,{marginBottom:M.YC,children:(0,r.jsx)(T.A,{color:"text-3",size:"small",children:(0,r.jsx)(y.sA,{id:"COMMON_MSS_CLAMPING"})})}),(0,r.jsx)(Re,{marginBottom:M.Ln,children:(0,r.jsxs)(Pe,{children:[(0,r.jsx)(ee.A,{id:"mssClampingAuto",checked:e.mss_clamp===Te.xO.AUTO,name:Te.xO.AUTO,onChange:p,children:(0,r.jsx)(T.A,{size:"medium",children:(0,r.jsx)(y.sA,{id:"COMMON_VALUE_AUTO"})})}),(0,r.jsx)(ee.A,{id:"mssClampingCustom",checked:e.mss_clamp===Te.xO.CUSTOM,name:Te.xO.CUSTOM,onChange:p,children:(0,r.jsx)(T.A,{size:"medium",children:(0,r.jsx)(y.sA,{id:"COMMON_CUSTOM"})})}),(0,r.jsx)(ee.A,{id:"mssClampingDisabled",checked:e.mss_clamp===Te.xO.DISABLED,name:Te.xO.DISABLED,onChange:p,children:(0,r.jsx)(T.A,{size:"medium",children:(0,r.jsx)(y.sA,{id:"COMMON_DISABLED"})})})]})}),e.mss_clamp===Te.xO.CUSTOM?(0,r.jsxs)(Re,{marginBottom:M.xO,alignItems:"flex-start",flexDirection:"column",children:[(0,r.jsx)(De,{as:"label",htmlFor:"mss_clamp_mss",children:(0,r.jsx)(T.A,{size:"medium",children:(0,r.jsx)(y.sA,{id:"DEVICE_PROPERTIES_LABEL_CUSTOM_MSS_CLAMPING"})})}),(0,r.jsx)(te.A,{full:!0,placeholder:"DEVICE_PROPERTIES_LABEL_CUSTOM_MSS_CLAMPING_PLACEHOLDER",name:"mss_clamp_mss",id:"mss_clamp_mss"})]}):null,m?.mss_clamp_mss?(0,r.jsx)(U.A,{marginBottom:M.S2}):null,(0,r.jsx)(Re,{marginBottom:M.xO,children:(0,r.jsx)(T.A,{weight:"bold",size:"medium",children:(0,r.jsx)(y.sA,{id:"COMMON_HARDWARE_OFFLOAD"})})}),(0,r.jsxs)(Re,{marginBottom:M.xO,children:[(0,r.jsx)(T.A,{size:"medium",children:(0,r.jsx)(y.sA,{id:"COMMON_HARDWARE_OFFLOAD"})}),(0,r.jsx)(pe.A,{id:"offload_accounting",disabled:!h,onChange:b,checked:!!h&&e.offload_accounting})]}),(0,r.jsxs)(Re,{marginBottom:M.xO,children:[(0,r.jsx)(T.A,{size:"medium",children:(0,r.jsx)(y.sA,{id:"COMMON_OFFLOAD_SCHEDULER"})}),(0,r.jsx)(pe.A,{id:"offload_sch",onChange:N,checked:e.offload_sch})]}),(0,r.jsxs)(Re,{marginBottom:M.xO,children:[(0,r.jsx)(T.A,{size:"medium",children:(0,r.jsx)(y.sA,{id:"COMMON_OFFLOAD_LAYER_2_BLOCKING"})}),(0,r.jsx)(pe.A,{id:"offload_l2_blocking",onChange:f,checked:e.offload_l2_blocking})]}),(0,r.jsx)(Re,{marginBottom:M.xO,children:(0,r.jsx)(T.A,{weight:"bold",size:"medium",children:(0,r.jsx)(y.sA,{id:"DEVICE_PROPERTIES_LABEL_LLDP"})})}),(0,r.jsxs)(Re,{marginBottom:M.S2,children:[(0,r.jsx)(T.A,{size:"medium",children:(0,r.jsx)(y.sA,{id:"COMMON_LLDP_ON_ALL_INTERFACES"})}),(0,r.jsx)(pe.A,{id:"lldp_enable_all",onChange:R,checked:e.lldp_enable_all})]}),(0,r.jsx)(Re,{marginBottom:M.YC,children:(0,r.jsx)(T.A,{color:"text-3",size:"small",children:(0,r.jsx)(y.sA,{id:"COMMON_ARP_CACHE_TIMEOUT"})})}),(0,r.jsx)(Re,{marginBottom:M.S2,children:(0,r.jsxs)(Pe,{children:[(0,r.jsx)(ee.A,{id:"normal",checked:"normal"===e.arp_cache_timeout,name:"normal",onChange:x,children:(0,r.jsx)(y.sA,{id:"DEVICE_PROPERTIES_LABEL_ARP_CACHE_NORMAL"})}),(0,r.jsx)(ee.A,{id:"min-dhcp-lease",checked:"min-dhcp-lease"===e.arp_cache_timeout,name:"min-dhcp-lease",onChange:x,children:(0,r.jsx)(y.sA,{id:"DEVICE_PROPERTIES_LABEL_ARP_CACHE_MIN_DHCP_LEASE"})}),(0,r.jsx)(ee.A,{id:"custom",checked:"custom"===e.arp_cache_timeout,name:"custom",onChange:x,children:(0,r.jsx)(y.sA,{id:"COMMON_CUSTOM"})}),(0,r.jsx)(Oe.A,{description:(0,r.jsx)(y.sA,{id:"DEVICE_PROPERTIES_LABEL_ARP_CACHE_TIMEOUT_CUSTOM_TOOLTIP"}),width:180,position:"topRight",tooltipClassName:"tooltip-position-fixer",children:(0,r.jsx)(Le,{isActive:!0,size:"original"})})]})}),"custom"===e.arp_cache_timeout?(0,r.jsx)(Re,{marginBottom:M.S2,children:(0,r.jsx)(te.A,{full:!0,variant:"secondary",label:"DEVICE_PROPERTIES_LABEL_ARP_CACHE_TIMEOUT_LABEL",placeholder:"DEVICE_PROPERTIES_LABEL_ARP_CACHE_TIMEOUT_PLACEHOLDER",name:"arp_cache_base_reachable",type:"number"})}):null,O?null:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Re,{marginBottom:M.YC,children:(0,r.jsx)(T.A,{color:"text-3",size:"small",children:(0,r.jsx)(y.sA,{id:"COMMON_INTERNET_VERIFICATION_SERVER_LABEL"})})}),(0,r.jsx)(Re,{marginBottom:0,children:(0,r.jsxs)(Pe,{children:[(0,r.jsx)(ee.A,{id:Se.DEFAULT_GATEWAY_SETTINGS.echo_server,checked:e.echo_server===Se.DEFAULT_GATEWAY_SETTINGS.echo_server,onClick:C,children:Se.DEFAULT_GATEWAY_SETTINGS.echo_server}),(0,r.jsx)(je.A,{title:"COMMON_INTERNET_VERIFICATION_SERVER_INLINE_LABEL",message:"COMMON_INTERNET_VERIFICATION_SERVER_INLINE_DESC",cancelButtonMessage:"COMMON_INTERNET_VERIFICATION_SERVER_INLINE_DECLINE",buttonMessage:"COMMON_INTERNET_VERIFICATION_SERVER_INLINE_CONFIRM",handleClose:g,handleCancel:v,handleConfirm:S,isOpen:E,children:(0,r.jsx)(U.A,{alignItems:"center",marginLeft:M.Ln,children:(0,r.jsx)(ee.A,{id:"customEchoServer",checked:e.echo_server!==Se.DEFAULT_GATEWAY_SETTINGS.echo_server,onClick:j,className:"infoRadio",children:(0,r.jsx)(y.sA,{id:"COMMON_CUSTOM"})})})}),(0,r.jsx)(Oe.A,{description:(0,r.jsx)(y.sA,{id:"COMMON_INTERNET_VERIFICATION_SERVER_DESC"}),width:180,position:"topRight",tooltipClassName:"tooltip-position-fixer",children:(0,r.jsx)(Le,{isActive:!0,size:"original"})})]})}),e.echo_server!==Se.DEFAULT_GATEWAY_SETTINGS.echo_server?(0,r.jsx)(Re,{marginBottom:0,marginTop:M.S2,alignItems:"flex-start",flexDirection:"column",children:(0,r.jsx)(te.A,{full:!0,variant:"secondary",label:"DEVICE_PROPERTIES_VALUES_ECHO_SERVER_PLACEHOLDER",name:"echo_server"})}):null]})]})}),Fe=(0,l.Zz)((0,d.A)([Ee.UH,ae,fe]))(({activeItem:e,isDirty:i,isInvalid:s,setFormDirty:l,setFormInvalid:d,...I})=>{const j=(0,t.d4)(u.Lq),T=(0,t.d4)(u.H5),S=(0,t.d4)(u.n0),g=(0,t.d4)(E.oP),v=(0,t.d4)(O.dK)&&!e.unsupported,b=(0,t.wA)(),N=(0,c.I)();return(0,a.A)([(0,h.Sk)(void 0,{crudCacheStrategy:{type:n.e.CACHE}})],(0,r.jsxs)(r.Fragment,{children:[(0,p.YP)(e)?(0,r.jsx)(K.A,{activeItem:e,...I}):null,v?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(A.A,{type:A.I.ACCORDION,items:[{id:Ee.UH,label:(0,r.jsx)(m.A,{id:"COMMON_NAME"}),openByDefault:!0,renderContent:()=>(0,r.jsx)(Ee.Ay,{activeItem:e,setFormDirty:l,setFormInvalid:d,hideBubbleWrapper:!0})}]}),(0,r.jsx)(A.A,{type:A.I.ACCORDION,items:[{id:"ports",label:(0,r.jsx)(m.A,{id:"DEVICE_PROPERTY_HEADER_PORTS"}),openByDefault:!0,renderContent:()=>(0,r.jsx)(Z,{activeItem:e})}]}),(0,r.jsx)(C.A,{device:e,setFormDirty:l,setFormInvalid:d}),(0,r.jsx)(A.A,{type:A.I.ACCORDION,items:[{id:ae,openByDefault:!0,label:(0,r.jsx)(m.A,{id:"DEVICE_PROPERTY_HEADER_TOUCHSCREEN"}),renderContent:()=>(0,r.jsx)(me,{activeItem:e,setFormDirty:l})}]}),(0,r.jsx)(A.A,{type:A.I.ACCORDION,items:[{id:fe,openByDefault:!0,label:(0,r.jsx)(m.A,{id:"COMMON_SERVICES"}),renderContent:()=>(0,r.jsx)(ke,{activeItem:e,usgSettings:g,setFormDirty:l,setFormInvalid:d})}]}),(0,r.jsx)(A.A,{type:A.I.ACCORDION,items:[{id:"system",openByDefault:!0,label:(0,r.jsx)(m.A,{id:"COMMON_ACTION_MANAGE"}),renderContent:()=>(0,r.jsx)(Ae.A,{activeItem:e})}]})]}):null,(0,r.jsx)(_.A,{isDirty:i,isInvalid:s,onFormSubmit:()=>{const i=Object.entries(S).reduce((e,[i,s])=>{if("function"==typeof s){const i=s();if("object"==typeof i&&i&&Object.keys(i).length)return{...e,...i}}return e},{});((0,o.A)(i)?Promise.resolve():b((0,x.ex)(i,e._id,e.mac,{extend:!0}))).then(()=>{Object.values(j).forEach(e=>{"function"==typeof e&&e()})}).catch(N)},onFormCancel:()=>{T[Ee.UH]?.(),T[ae]?.(),T[fe]?.()}})]}))})},116045(e,i,s){s.d(i,{A:()=>L});var r=s(274934),l=s(602086),t=s(977872),o=s(938984),n=s(669439),a=s(590979),d=s(254585),c=s(449339),_=s(589650),m=s(684209),A=s(223104),E=s(250266),u=s(408402),h=s(205521),O=s(470070),p=s(940229),x=s(160286),C=s(110372),I=s(197571),j=s(874866),T=s(167933),S=s(576024),g=s(95546),v=s(956978),b=s(795206),N=s(68105),f=s(917236),R=s(818981);const D=({cellData:e,activeItem:i,activeItem:{mac:s,name:D,model:L},keyValue:P,portSize:M,portSizeOverride:k,disableOnPortClick:F=!1,centerIcon:U,tooltipPlacement:V="bottom"})=>{const y=(0,t.wA)(),w=(0,t.d4)(j.D),G=(0,t.d4)(d.oI),B=(0,t.d4)(x.D5),z=e||{},H=(0,t.d4)(I.wf),W=(0,t.d4)(T.pB),Y=(0,t.d4)(N.qS),$=(0,p.vT)(z,i,w,B,H,W,[],Y),[q,X]=(0,l.useState)(!1),Z=(0,l.useCallback)(()=>{y((0,b.Fx)({mac:s,name:D},e.port_idx)),X(!1)},[s,D,e.port_idx,y]),K=Boolean(e.poe_enable&&!(0,v.ioy)({type:i.type}));return(0,r.jsx)(u.A,{condition:K,wrapper:i=>(0,r.jsx)(E.A,{title:"DEVICE_PORT_POWER_CYCLE_CONFIRMATION_TITLE",titleValues:{portId:e.port_idx},buttonMessage:"COMMON_ACTION_PROCEED",handleClose:X,handleConfirm:Z,isOpen:q,rootClose:!0,body:(0,r.jsx)(o.A,{size:"inherit",children:(0,r.jsx)(O.sA,{id:"DEVICE_PORT_POWER_CYCLE_CONFIRMATION_BODY",values:{portId:e.port_idx}})}),children:i}),children:(0,r.jsx)(n.A,{description:(0,r.jsx)(f.A,{portData:z,showPowerCycleHeader:K,portName:z.name,device:i}),delay:0,closeDelay:0,isDisabled:q,placement:V,className:R.K5,children:(0,r.jsxs)(R.Dn,{onClick:r=>K?(X(!0),null):F||e.masked?null:(r.preventDefault(),r.stopPropagation(),(0,v.Cyy)(i)||(0,v.oWO)(i)?y((0,h.XP)({type:c.H.DEVICE,id:s,tab:G,subPanel:_.uY.PORTS,subId:z?.ifname})):y((0,h.XP)("wan"===z?.network_name||"wan2"===z?.network_name?{type:c.H.DEVICE,id:s,tab:G,subPanel:_.uY.PORTS,subId:_.uj.WAN}:z?.dns?{type:c.H.DEVICE,id:s,tab:G,subPanel:_.uY.PORTS,subId:_.uj.ALL}:{type:c.H.DEVICE,id:s,tab:G,subPanel:_.uY.PORTS,subId:z.op_mode===C.RC.AGGREGATE?z.portIdx||z.port_idx||z.ifname:(0,S.Cu)(z)}))),...a.A.addDataTestId(a.A.TestId.SIDE_PANEL_TRIGGER),children:[(0,r.jsx)(R.MM,{centerIcon:U,colorInfo:(0,m.PI)($),portSize:M,portSizeOverride:k,hasTransparentBorder:(0,g._R)(e.port_idx,L),children:(0,r.jsx)(A.A,{icon:$.icon,smallerIcons:!0})}),(0,g.jw)(e.port_idx,L)?(0,r.jsx)(R.lh,{}):null]})},P)})},L=({cellData:e,activeItem:i,keyValue:s,portSize:l,portSizeOverride:t,...o})=>e?(0,r.jsx)(D,{cellData:e,activeItem:i,keyValue:s,portSize:l,portSizeOverride:t,...o}):(0,v.ez9)(i)||(0,v.gE3)(i)?null:(0,r.jsx)(R.hK,{portSize:l,portSizeOverride:t},s)},231083(e,i,s){s.d(i,{A:()=>a});var r=s(274934),l=s(602086),t=s(648175),o=s(470070),n=s(850352);const a=({mac:e})=>{const{handleGoToPortsPage:i}=(0,n.e)(),s=(0,l.useCallback)(()=>{i(e)},[i,e]);return(0,r.jsx)(t.A,{onClick:s,width:"full",children:(0,r.jsx)(o.sA,{id:"COMMON_PORT_MANAGER"})})}},613609(e,i,s){s.d(i,{A:()=>A});var r=s(274934),l=s(247816),t=s(309130),o=s(100978),n=s(535322),a=s(883717),d=s(251323),c=s(231083);const _=(0,l.A)(o.A)`
  > div {
    width: 100%;
  }
`,m=({activeItem:e,activeItem:{port_table:i,mac:s},showFullScreenDiagramButton:l,disableOnPortClick:n,isStacking:_,multipleDisplayedDevicesData:m})=>{const A=0!==(i||[]).length;return(0,r.jsxs)(r.Fragment,{children:[A?(0,r.jsxs)(o.A,{position:"relative",flexDirection:"column",children:[(0,r.jsx)(o.A,{flexDirection:"column",justifyContent:"center",children:_?(m||[]).map(e=>(0,r.jsx)(d.A,{activeItem:e,disableOnPortClick:l||n,isStacking:!0})):(0,r.jsx)(d.A,{activeItem:e,disableOnPortClick:l||n})}),(0,r.jsx)(a.A,{deviceMac:s})]}):null,l&&A?(0,r.jsx)(o.A,{paddingTop:t.Ln,justifyContent:"center",children:(0,r.jsx)(c.A,{mac:s})}):null]})},A=({useBubbleWrapper:e=!0,...i})=>e?(0,r.jsx)(_,{children:(0,r.jsx)(n.A,{flex:"unset",children:(0,r.jsx)(m,{...i})})}):(0,r.jsx)(m,{...i})},478961(e,i,s){s.d(i,{A:()=>t});var r=s(274934),l=s(602086);const t=function(e){return i=>s=>{const[t,o]=(0,l.useState)(Object.fromEntries(e.map(e=>[e,!1]))),[n,a]=(0,l.useState)(Object.fromEntries(e.map(e=>[e,!1]))),d=(0,l.useCallback)((e,i)=>{o(s=>({...s,[e]:i}))},[]),c=(0,l.useCallback)((e,i)=>{a(s=>({...s,[e]:i}))},[]),_=!!Object.values(t).find(e=>e),m=!!Object.values(n).find(e=>e);return(0,r.jsx)(i,{isDirty:_,isInvalid:m,formStates:t,setFormDirty:d,setFormInvalid:c,...s})}}},871808(e,i,s){s.d(i,{A:()=>o});var r=s(602086),l=s(977872),t=s(167933);const o=e=>(0,l.d4)((0,r.useMemo)(()=>(0,t.jN)(e),[e]))},901098(e,i,s){s.d(i,{A:()=>l});var r=s(169581);const l=function(e,i,s){for(var l=-1,t=e.length;++l<t;){var o=e[l],n=i(o);if(null!=n&&(void 0===a?n==n&&!(0,r.A)(n):s(n,a)))var a=n,d=o}return d}},381446(e,i,s){s.d(i,{A:()=>r});const r=function(e,i){return e>i}},492399(e,i,s){s.d(i,{A:()=>o});var r=s(901098),l=s(381446),t=s(511003);const o=function(e){return e&&e.length?(0,r.A)(e,t.A,l.A):void 0}}}]);