"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[56665],{14335:(e,t,l)=>{var n,r,a,o;l.d(t,{A$:()=>n,mk:()=>r,rA:()=>a}),function(e){e.ID="id",e.STATUS="isWanPortUp",e.ISP_NAME="ispName",e.NAME="name",e.IP="ip",e.IPV6="ipv6",e.PORT="port",e.UPTIME="uptime",e.PEAK_USE="peakUseDownload",e.LATENCY="latency"}(n||(n={})),function(e){e.K="k",e.M="M",e.G="G"}(r||(r={})),function(e){e.DAILY="daily",e.WEEKLY="weekly",e.MONTHLY="monthly"}(a||(a={})),function(e){e.TRUE="true",e.FALSE="false"}(o||(o={}))},94752:(e,t,l)=>{l.d(t,{A:()=>r});var n=l(14335);const r=[{value:n.mk.K,label:"COMMON_UNIT_BPS",values:{prefix:n.mk.K}},{value:n.mk.M,label:"COMMON_UNIT_BPS",values:{prefix:n.mk.M}},{value:n.mk.G,label:"COMMON_UNIT_BPS",values:{prefix:n.mk.G}}]},100188:(e,t,l)=>{l.d(t,{A:()=>A});var n=l(296540),r=l(766412),a=l(939703),o=l(294303),i=l(595235),c=l(71479);const s=(0,c.A)(o.A)`
  cursor: pointer;
`,_=(0,c.A)("div",{shouldForwardProp:e=>"color"!==e})`
  background-color: ${({color:e})=>e};
  border-radius: 3px;
  width: 34px;
  height: 20px;
`,d=({color:e})=>n.createElement(s,{width:"55px",height:"24px",padding:"2px 0",alignItems:"center",justifyContent:"space-between",flexShrink:0},n.createElement(_,{color:e}),n.createElement(i.A,null));var m=l(363441);const E=[{id:"hue",channel:"hue"}],A=({value:e,onChange:t})=>{const l=(0,n.useCallback)(e=>{t((0,a.E6)(e.toString())||m.I)},[t]),i=e||m.I;return n.createElement(o.A,{flexDirection:"column"},n.createElement(r.A,{value:i,onChange:l,sliders:E,colorSpace:"hex"},n.createElement("span",null,n.createElement(d,{color:i}))))}},112707:(e,t,l)=>{l.d(t,{S:()=>n});const n={MIN:10,MAX:65535,DEFAULT:300}},118835:(e,t,l)=>{var n;l.d(t,{M:()=>n}),function(e){e.MAIN="main",e.DHCP="dhcp",e.HOTSPOT="hotspot"}(n||(n={}))},129712:(e,t,l)=>{l.d(t,{A:()=>S,H:()=>g});var n=l(868238),r=l(469733),a=l(296540),o=l(951272),i=l(870443),c=l(566723),s=l(855019),_=l(62227),d=l(294303),m=l(845030),E=l(302167),A=l(366188),u=l(780811),p=l(239417),b=l(785146),I=l(31208),O=l(726317);const g="network",C=(0,o.bk)({enableReinitialize:!0,isInitialValid:!0,mapPropsToValues:({activeItem:{config_network:e,ip:t,switch_vlan_enabled:l,mgmt_network_id:n,connection_network_id:r},nativeNetworks:a})=>{const o=(0,u.U$e)(a,r);return{config_network:{type:e?.type||s.NL.DHCP,ip:e?.ip||t||"",netmask:e?.netmask||o?.netmask||"",gateway:e?.gateway||o?.ip||"",dns1:e?.dns1||o?.dns1||"",dns2:e?.dns2||o?.dns2||"",dnssuffix:e?.dnssuffix||"",bonding_enabled:e?.bonding_enabled||!1},mgmt_network_id:(0,u.ewD)(a,n),switch_vlan_enabled:l||!1}},handleSubmit:(e,{resetForm:t})=>{t({values:e})},validationSchema:({honeypotNetworksIps:e,combinedClients:t})=>i.A.object().shape({config_network:(0,_.d)(e,t),mgmt_network_id:i.A.string(),lte_limit_enabled:i.A.boolean().label("COMMON_LTE_DATA_LIMIT"),lte_limit:i.A.number().integer().label("COMMON_DATA_LIMIT").when("lte_limit_enabled",{is:!0,then:i.A.number().min(1).required().label("COMMON_DATA_LIMIT")})})}),S=(0,n.Zz)((0,r.connect)(e=>({nativeNetworks:(0,A.Tn)(e),honeypotNetworksIps:(0,E.Yk)(e),combinedClients:(0,p.GB)(e)})),C)(({setFormDirty:e,setFormInvalid:t,dirty:l,values:n,resetForm:o,isValid:i,initialValues:_,nativeNetworks:E=[],activeItem:A})=>{const u=(0,r.useDispatch)();return(0,a.useEffect)(()=>{e(g,l),t(g,!i)},[e,t,l,i]),(0,a.useEffect)(()=>(u((0,m.uo)({[g]:()=>({config_network:n.config_network.type===s.NL.STATIC?n.config_network:{type:s.NL.DHCP,bonding_enabled:n.config_network.bonding_enabled},mgmt_network_id:n.mgmt_network_id})})),u((0,m.Oo)({[g]:()=>o({values:n})})),u((0,m.rW)({[g]:o})),()=>{u((0,m.uo)({[g]:null})),u((0,m.Oo)({[g]:null})),u((0,m.rW)({[g]:null}))}),[u,o,n,A.port_overrides,_.switch_vlan_enabled]),a.createElement(d.A,{gap:c.S2,flexDirection:"column"},E.length>1?a.createElement(b.A,{nativeNetworks:E,activeItemMac:A.mac}):null,a.createElement(O.A,null),n.config_network.type===s.NL.STATIC?a.createElement(I.A,null):null)})},132650:(e,t,l)=>{var n;l.d(t,{A:()=>r}),function(e){e.AUTO="auto",e.POE="8023af",e.POE_PLUS="8023at",e.POE_PLUS_PLUS="poe-injector",e.ADAPTER="adapter"}(n||(n={}));const r=n},152e3:(e,t,l)=>{l.d(t,{A:()=>m});var n=l(296540),r=l(436017),a=l(927099),o=l(314714),i=l(71479),c=l(566723),s=l(294303),_=l(699784);const d=(0,i.A)("div")`
  width: 100%;
  margin-bottom: ${c.Ln};
`,m={Toggle:({isGlobalSwitchSettingsEnabled:e,setGlobalSwitchSettingsEnabled:t,noStyledRow:l})=>{const o=(0,n.useCallback)(({target:{checked:e}})=>{t(e)},[t]),i=n.createElement(r.A,{full:!0,checked:e,onChange:o},n.createElement(s.A,{width:"100%",alignItems:"center"},n.createElement(a.A,{size:"body"},n.createElement(_.sA,{id:"COMMON_GLOBAL_SWITCH_SETTINGS"}))));return l?i:n.createElement(d,null,i)},Checkbox:({isGlobalSwitchSettingsEnabled:e,setGlobalSwitchSettingsEnabled:t,onChange:l,noStyledRow:r})=>{const i=(0,n.useCallback)(({target:{checked:e}})=>{t(e),l?.(e)},[l,t]),c=n.createElement(o.A,{id:"global-switch-settings-checkbox",checked:e,onChange:i},n.createElement(s.A,{width:"100%",alignItems:"center"},n.createElement(a.A,{size:"body"},n.createElement(_.sA,{id:"COMMON_GLOBAL_SWITCH_SETTINGS"}))));return r?c:n.createElement(d,null,c)}}},153643:(e,t,l)=>{l.d(t,{A:()=>r,r:()=>n});const n={MIN:1,MAX:100,DEFAULT:1},r={MAX:1488e4,MIN:100,DEFAULT:100}},174897:(e,t,l)=>{l.d(t,{A:()=>p,c:()=>u});var n=l(296540),r=l(951272),a=l(718073),o=l(596176),i=l(143811),c=l(699784),s=l(349665),_=l(566723),d=l(294303),m=l(768195),E=l(275988),A=l(987588);const u=n.createElement(o.A,{messages:[["COMMON_SPANNING_TREE_TOOLTIP"],["COMMON_SPANNING_TREE_TOOLTIP_2"]]}),p=({disabled:e,showBpduGuard:t,showAutoEdge:l})=>{const{values:o,setFieldValue:p}=(0,r.j7)(),b=e||o.stable_port_enabled,I=o.stable_port_enabled?E.VI:o;return n.createElement(a.A,{description:o.stable_port_enabled?n.createElement(c.sA,{id:"PORTS_STABLE_PORT_MANAGED_BY_STABLE_PORT"}):void 0},n.createElement(d.A,{flexDirection:"column",gap:_.kc},n.createElement(A.l2,null,n.createElement(i.A,{name:"stp_port_mode",type:"realCheckbox",disabled:b,checked:I.stp_port_mode,tooltipMessage:u,tooltipProps:{portal:!0}},n.createElement(c.sA,{id:"COMMON_DEVICE_CAP_SWITCH_CAP_STP"}))),I.stp_port_mode&&(l||t)?n.createElement(s.A,{gap:_.Ln,paddingLeft:_.S2},l?n.createElement(i.A,{name:"stp_edge_state",type:"realCheckbox",checked:I.stp_edge_state===m.MV.ENABLED,disabled:b,tooltipMessage:n.createElement(c.sA,{id:"PORTS_STP_EDGE_TOOLTIP"}),tooltipProps:{portal:!0},afterChange:e=>{p("stp_edge_state",e?m.MV.ENABLED:m.MV.DISABLED)}},n.createElement(c.sA,{id:"PORTS_STP_EDGE"})):null,t?n.createElement(i.A,{name:"stp_bpdu_guard_enabled",type:"realCheckbox",checked:I.stp_bpdu_guard_enabled,disabled:b,tooltipMessage:n.createElement(c.sA,{id:"PORTS_BPDU_GUARD_TOOLTIP"}),tooltipProps:{portal:!0}},n.createElement(c.sA,{id:"PORTS_BPDU_GUARD"})):null):null))}},231347:(e,t,l)=>{l.d(t,{Y:()=>a});var n=l(956347),r=l(296540);function a(e){const t=(0,n.zy)(),l=(0,n.W6)(),a=(0,r.useMemo)(()=>new URLSearchParams(t.search),[t.search]),o=a.get(e),i=(0,r.useCallback)(n=>{const r=new URLSearchParams(a.toString());return n?r.set(e,n):r.delete(e),l.replace({...t,search:r.toString()})},[l,e,t,a]);return(0,r.useMemo)(()=>[o,i],[o,i])}},263130:(e,t,l)=>{l.d(t,{A:()=>_});var n=l(296540),r=l(927099),a=l(71479),o=l(998837),i=l(566723),c=l(294303);const s=(0,a.A)(r.A)`
  line-height: 20px;
`,_=({icon:e,description:t,action:l,footer:r,background:a,..._})=>{const d=(0,o.u)().motifPalette.neutral01;return n.createElement(c.A,{flexGrow:1,borderRadius:i.YC,padding:i.kc,background:a||d,gap:i.kc,flexDirection:"column",..._},n.createElement(c.A,{flexGrow:1,gap:i.kc},e,t?n.createElement(s,{size:"body"},t):null,l?n.createElement(c.A,{marginLeft:"auto"},n.createElement(s,{size:"body"},l)):null),r)}},269333:(e,t,l)=>{l.d(t,{A:()=>o});var n=l(296540),r=l(152480),a=l(353942);const o=({htmlFor:e,searchHtmlFor:t,searchIgnore:l,searchIsApplicable:o,searchTags:i,searchText:c,...s})=>{const _=(0,a.A)(),d=(0,n.useRef)(null),m=_===e||_===t;return(0,n.useEffect)(()=>{if(m&&d.current){const{y:e}=d.current.getBoundingClientRect?.()||{y:0};(e<150||e+200>window.innerHeight)&&setTimeout(()=>{d.current?.scrollIntoView?.({behavior:"smooth",block:"center"})},50)}},[m]),n.createElement(r.A,{highlight:m,highlightType:"spotlight",htmlFor:t||e,forwardedRef:d,highlightNoAutoScroll:!0,...s})}},275988:(e,t,l)=>{l.d(t,{Tk:()=>s,VI:()=>c,jQ:()=>_,jk:()=>i});var n=l(368476),r=l(153643),a=l(491817),o=l(768195);const i={stormctrl_type:n.d5.LEVEL,stormctrl_ucast_enabled:!0,stormctrl_mcast_enabled:!0,stormctrl_bcast_enabled:!0,stormctrl_ucast_level:r.r.DEFAULT,stormctrl_mcast_level:r.r.DEFAULT,stormctrl_bcast_level:r.r.DEFAULT},c={stp_port_mode:!0,stp_edge_state:o.MV.ENABLED,stp_bpdu_guard_enabled:!0},s={...i,...c},_={stormctrl_type:n.d5.LEVEL,stormControlEnabled:a.m.stormControlEnabled,stormctrl_ucast_enabled:a.m.stormctrl_ucast_enabled,stormctrl_mcast_enabled:a.m.stormctrl_mcast_enabled,stormctrl_bcast_enabled:a.m.stormctrl_bcast_enabled,stormctrl_ucast_level:a.m.stormctrl_ucast_level,stormctrl_mcast_level:a.m.stormctrl_mcast_level,stormctrl_bcast_level:a.m.stormctrl_bcast_level,stp_port_mode:a.m.stp_port_mode,stp_edge_state:a.m.stp_edge_state,stp_bpdu_guard_enabled:a.m.stp_bpdu_guard_enabled}},279675:(e,t,l)=>{l.d(t,{W:()=>w,A:()=>x});var n=l(868238),r=l(469733),a=l(296540),o=l(951272),i=l(429252),c=l.n(i),s=l(802),_=l(217439),d=l(71479),m=l(870443),E=l(566723),A=l(766624),u=l(389651),p=l(822336),b=l(870829),I=l(311785),O=l(294303),g=l(699784);const C=[0,90,180,270],S=(0,d.A)(O.A,(0,I.A)("isActive"))`
  border: 1px solid
    ${({theme:{motifPalette:{uBlue06:e,neutral03:t}},isActive:l})=>l?e:t};
  border-radius: ${p.Ay["desktop-radius-base"]};
  cursor: pointer;
`,f=(0,d.A)(b.A,(0,I.A)("degree"))`
  transform: rotate(${({degree:e})=>e}deg);
`,h=({degree:e,isActive:t,onClick:l})=>a.createElement(S,{padding:`${E.YC} ${E.kc}`,flex:1,gap:E.YC,alignItems:"center",isActive:t,onClick:l},a.createElement(f,{isActive:t,degree:e}),a.createElement(_.A,{color:"text-2"},e?`${e}°`:a.createElement(g.sA,{id:"COMMON_NONE"}))),v=()=>{const{values:{lcm_orientation_override:e},setFieldValue:t}=(0,o.j7)();return a.createElement("div",null,a.createElement(_.A,{color:"text-3",size:"small"},a.createElement(g.sA,{id:"DEVICE_PROPERTIES_LABEL_LCM_DISPLAY_ROTATION"})),a.createElement(O.A,{gap:E.kc,marginTop:E.YC,marginBottom:E.Ln},C.map(l=>a.createElement(h,{key:l,degree:l,isActive:l===e,onClick:()=>{t("lcm_orientation_override",l)}}))))};var D=l(143811),T=l(845030),N=l(302167),R=l(457311),P=l(602021),L=l(639188);const w="lcmScreen",M=(0,d.A)(O.A)`
  &:not(:last-child) {
    margin-bottom: ${E.S2};
  }
`,k=(0,o.bk)({enableReinitialize:!0,isInitialValid:!0,mapPropsToValues:({lcmSettings:e,activeItem:t,activeItem:{lcm_brightness:l=L.VG,lcm_brightness_override:n=!1,lcm_night_mode_enabled:r=!1,lcm_night_mode_begins:a=L.z7,lcm_night_mode_ends:o=L.Vm,lcm_orientation_override:i}})=>({lcm:e,lcm_brightness:l,lcm_brightness_override:n,lcm_night_mode_enabled:r,lcm_night_mode_begins:a,lcm_night_mode_ends:o,..."lcm_orientation_override"in t?{lcm_orientation_override:i}:{}}),validationSchema:m.A.object().shape({lcm:m.A.object().shape({sync:m.A.boolean()}),lcm_brightness_override:m.A.boolean(),lcm_brightness:m.A.number().label("COMMON_BRIGHTNESS").min(1).max(100).required(),lcm_night_mode_enabled:m.A.boolean(),lcm_night_mode_begins:m.A.string(),lcm_night_mode_ends:m.A.string(),lcm_orientation_override:m.A.number()}),handleSubmit:()=>null}),U=e=>a.createElement(_.A,{size:"medium"},e),x=(0,n.Zz)((0,r.connect)(e=>({lcmSettings:(0,N.ml)(e)}),{}),k)(({values:e,setFieldValue:t,resetForm:l,setFormDirty:n,setFormInvalid:o,dirty:i,isValid:d,initialValues:m,activeItem:p,hideRackMultiScreenSync:b=!1})=>{const I=(0,r.useDispatch)(),C=(0,r.useSelector)(P.EL);return(0,a.useEffect)(()=>{n(w,i),o(w,!d)},[n,o,d,i]),(0,a.useEffect)(()=>(I((0,T.uo)({[w]:()=>({...e,lcm_brightness_override:e.lcm_brightness!==L.VG,lcm_night_mode_begins:e.lcm_night_mode_begins,lcm_night_mode_ends:e.lcm_night_mode_ends,..."lcm_orientation_override"in e?{lcm_orientation_override:e.lcm_orientation_override}:{}})})),I((0,T.Oo)({[w]:()=>{c()(m.lcm,e.lcm)||I((0,R.vd)(e.lcm)),l({values:e})}})),I((0,T.rW)({[w]:l})),()=>{I((0,T.uo)({[w]:null})),I((0,T.Oo)({[w]:null})),I((0,T.rW)({[w]:null}))}),[I,l,e,m.lcm]),a.createElement(a.Fragment,null,a.createElement(M,{justifyContent:"space-between"},a.createElement(_.A,{color:"text-1",size:"medium"},a.createElement(g.sA,{id:"COMMON_BRIGHTNESS"})),a.createElement(s.A,{width:"50%",value:e.lcm_brightness||L.VG,withValueIndicator:!0,min:1,valueIndicatorPosition:"right",formatValueIndicatorContent:U,onChange:e=>{t("lcm_brightness",+e.target.value)},disabled:C})),"lcm_orientation_override"in p?a.createElement(v,null):null,a.createElement(u.A,null),b?null:a.createElement(M,{justifyContent:"space-between",alignItems:"center"},a.createElement(O.A,{alignItems:"center",gap:E.kc},a.createElement(O.A,{alignItems:"center"},a.createElement(D.A,{type:"realCheckbox",name:"lcm.sync",checked:e.lcm.sync}),a.createElement(_.A,{color:"text-1",size:"medium"},a.createElement(g.sA,{id:"COMMON_RACK_MULTI_SCREEN_SYNC"}))),a.createElement(A.A,{description:a.createElement(g.sA,{id:"DEVICE_PROPERTIES_LABEL_RACK_MULTI_SCREEN_SYNCHRONIZATION_TOOLTIP"})}))))})},349665:(e,t,l)=>{l.d(t,{A:()=>o});var n=l(296540),r=l(705228),a=l(294303);const o=({maxWidth:e,...t})=>n.createElement(a.A,{flexDirection:"column",width:"100%",maxWidth:"settingsGridContent"===e?r.ng:e,...t})},353942:(e,t,l)=>{l.d(t,{A:()=>a});var n=l(231347),r=l(583286);const a=()=>(0,n.Y)(r.mv)[0]||null},363441:(e,t,l)=>{l.d(t,{I:()=>r,U:()=>a});var n=l(888170);const r=(0,l(939703).Wj)(n.Ay["blue-0"]),a=100},485897:(e,t,l)=>{l.d(t,{A:()=>r,v:()=>n});const n="32768",r=["0","4096","8192","12288","16384","20480","24576","28672","32768","36864","40960","45056","49152","53248","57344","61440"]},491817:(e,t,l)=>{l.d(t,{m:()=>A});var n=l(720903),r=l(94752),a=l(368476),o=l(768941),i=l(936621),c=l(356927),s=l(112707),_=l(204751),d=l(949330),m=l(768195),E=l(153643);const A={autoneg:c.A.PORTSPEED_AUTO_NEG.autoneg,dot1x_ctrl:o.Je.FORCE_AUTHORIZED,dot1x_idle_timeout:s.S.DEFAULT,egress_rate_limit_kbps_enabled:!1,egress_rate_limit_kbps:100,egressRateLimitUnit:r.A[1].value,full_duplex:c.A.PORTSPEED_AUTO_NEG.full_duplex,isolation:!1,flow_control_enabled:!0,stp_port_mode:!0,stp_edge_state:m.MV.DISABLED,stp_bpdu_guard_enabled:!1,lldpmed_enabled:!0,op_mode:o.RC.SWITCH,portConfEnabled:!1,portSpeed:o.n5.PORTSPEED_AUTO_NEG,speed:c.A.PORTSPEED_AUTO_NEG.speed,stormControlEnabled:!1,stormctrl_type:a.d5.RATE,stormctrl_bcast_enabled:!1,stormctrl_bcast_rate:E.A.DEFAULT,stormctrl_bcast_level:E.r.DEFAULT,stormctrl_mcast_enabled:!1,stormctrl_mcast_rate:E.A.DEFAULT,stormctrl_mcast_level:E.r.DEFAULT,stormctrl_ucast_enabled:!1,stormctrl_ucast_rate:E.A.DEFAULT,stormctrl_ucast_level:E.r.DEFAULT,voice_networkconf_id:i.F,voiceNetworkConfEnabled:!1,port_keepalive_enabled:!1,qos_profile:(0,n.A)(d.a$),qosEnabled:!1,avManufacturer:_.CC.UNIFI,aggregate_members:[]}},543791:(e,t,l)=>{l.d(t,{A:()=>o});var n=l(296540),r=l(271856),a=l(699784);const o=({show:e,children:t,position:l})=>n.createElement(r.A,{position:l||"topStart",description:e?n.createElement(a.sA,{id:"DEVICE_DISABLE_GLOBAL_SWITCH_SETTINGS"}):void 0},n.createElement("span",null,t))},553432:(e,t,l)=>{l.d(t,{A:()=>i});var n=l(296540),r=l(454195),a=l(566723),o=l(294303);const i=e=>n.createElement(o.A,{paddingTop:a.YC,paddingBottom:a.YC,gap:a.Ln,rowGap:a.YC,flexWrap:"wrap",minHeight:r.b,alignItems:"center",...e})},581799:(e,t,l)=>{l.d(t,{AD:()=>j,Aw:()=>R,BJ:()=>C,Bs:()=>_,CH:()=>I,D1:()=>w,E5:()=>c,En:()=>g,Hg:()=>J,Hz:()=>A,JJ:()=>S,Le:()=>y,M_:()=>Q,NX:()=>s,OI:()=>W,Oh:()=>X,Ps:()=>a,Qb:()=>o,RE:()=>L,RH:()=>q,Sh:()=>i,Sn:()=>z,T6:()=>O,TD:()=>P,VQ:()=>r,WQ:()=>D,WS:()=>b,YM:()=>d,YP:()=>m,ZZ:()=>B,Zm:()=>V,_K:()=>N,aC:()=>M,bx:()=>k,cE:()=>G,dB:()=>u,dg:()=>H,hD:()=>n,hK:()=>T,hY:()=>F,hc:()=>$,ku:()=>U,mD:()=>x,nh:()=>Z,pH:()=>v,q3:()=>K,qx:()=>Y,sM:()=>p,vf:()=>h,xt:()=>f,zU:()=>E});const n=140,r=120,a=40,o=120,i=20,c=10,s=4,_=.3*n,d=.4*n,m=.3*n,E=40,A=40,u=40,p=32,b=65,I=16,O=2,g=4,C=70,S=80,f=400,h="cubic-bezier(0.65, 0, 0.35, 1)",v=.55,D=1.25,T="all 0.15s ease-out",N="invisibleNodeName",R="invisibleNodeMac",P="uswWanNode",L="ISP",w="ispNodeMac",M=100,k=50,U={min:.3,max:2.5},x=1.25,y=.75,F=1e3,V=.8,B=.7,G=10,W=30,H="top",z="bottom",Y=9,$=10,j=n/2+$,Q="topology-content-container",K="topology-zoom-container",X="topology-link-layer",q="topology-node-layer",Z="label-layer",J=1e3},596176:(e,t,l)=>{l.d(t,{A:()=>c});var n=l(296540),r=l(217439),a=l(566723),o=l(699784),i=l(294303);const c=({messages:e=[]})=>e.length?n.createElement(i.A,{flexDirection:"column",gap:a.kc},e.map(([e,t={}])=>n.createElement(r.A,{key:e,color:"inherit",size:"inherit"},n.createElement(o.sA,{id:e,values:t})))):null},661065:(e,t,l)=>{l.d(t,{A:()=>_});var n=l(296540),r=l(1758),a=l(217439),o=l(699784),i=l(294303),c=l(363441),s=l(178233);const _=({value:e=c.U,onChange:t})=>n.createElement(n.Fragment,null,n.createElement(i.A,{flexDirection:"column",width:"100%"},n.createElement(i.A,{flexDirection:"row",alignItems:"center"},n.createElement(a.A,{variant:"caption"},n.createElement(o.sA,{id:"COMMON_BRIGHTNESS"}))),n.createElement(r.A,{value:e,minValue:1,onChange:t})),n.createElement(i.A,{flexDirection:"column"},n.createElement(a.A,{variant:"body-primary"},(0,s.A)(e))))},679783:(e,t,l)=>{l.d(t,{A:()=>s});var n=l(296540),r=l(271856),a=l(217439),o=l(709690),i=l(566723),c=l(294303);const s=({label:e,tooltip:t,tooltipProps:l,style:s})=>n.createElement(c.A,{alignItems:"center",gap:i.YC,style:s},n.createElement(a.A,{size:"small",color:"text-3"},e),t?n.createElement(r.A,{description:t,portal:!0,style:{display:"flex",alignItems:"center"},...l},n.createElement(o.A,{size:"original",isActive:!0})):null)},726317:(e,t,l)=>{l.d(t,{A:()=>d});var n=l(296540),r=l(927099),a=l(454195),o=l(566723),i=l(855019),c=l(143811),s=l(294303),_=l(699784);const d=(0,n.memo)(()=>n.createElement(s.A,{flexDirection:"column"},n.createElement(r.A,{color:"tertiary",size:"caption"},n.createElement(_.sA,{id:"COMMON_IP_CONFIGURATION"})),n.createElement(s.A,{height:a.b,alignItems:"center",gap:o.Ln},n.createElement(c.A,{name:"config_network.type",type:"radio",value:i.NL.DHCP},n.createElement(_.sA,{id:"COMMON_DHCP"})),n.createElement(c.A,{name:"config_network.type",type:"radio",value:i.NL.STATIC},n.createElement(_.sA,{id:"COMMON_STATIC"})))))},789367:(e,t,l)=>{var n;l.d(t,{K:()=>n}),function(e){e.ALL="all",e.ACL_RULES="acl-rules",e.DNS_RECORDS="dns-records",e.FIREWALL="firewall",e.NAT_RULES="nat-rules",e.POLICY_BASED_ROUTES="policy-based-routes",e.PORT_FORWARDING="port-forwarding",e.QOS_RULES="qos-rules",e.STATIC_ROUTES="static-routes"}(n||(n={}))},790543:(e,t,l)=>{l.d(t,{A:()=>r});var n=l(296540);const r=(e,t=()=>null,l=null,r=!1)=>a=>class extends n.Component{constructor(){super(...arguments),this.isCanceled=!1,this.state={loaded:!1}}UNSAFE_componentWillMount(){l&&performance.mark(`ufsdn.${l}:start`)}componentDidMount(){Promise.resolve(e(this.props)).then(()=>{this.isCanceled||(this.setState({loaded:!0}),l&&performance.measure(`ufsdn.${l}-rendered`,`ufsdn.${l}:start`))})}componentWillUnmount(){this.isCanceled=!0}render(){return r?n.createElement(a,{...this.props,isLoaded:this.state.loaded}):this.state.loaded?n.createElement(a,{...this.props}):n.createElement(t,null)}}},854246:(e,t,l)=>{l.d(t,{A:()=>c});var n=l(296540),r=l(71479),a=l(132196),o=l(699784);const i=(0,r.A)("div",{shouldForwardProp:e=>"align"!==e})`
  ${({align:e})=>e&&`text-align: ${e}`};
  color: ${({theme:{motifPalette:{red06:e}}})=>e};
  font-size: ${({theme:{fontSizes:e}})=>e[0]}px;
  line-height: 20px;
`,c=({align:e="left",children:t=null,className:l=null,translation:r=null,visible:c=!1})=>c?n.createElement(i,{align:e,className:(0,a.cx)(l)},r&&n.createElement(o.sA,{id:r}),t):null},941555:(e,t,l)=>{l.d(t,{Ay:()=>C,Cg:()=>O});var n=l(868238),r=l(469733),a=l(296540),o=l(165126),i=l(951272),c=l(870443),s=l(860631),_=l(566723),d=l(143811),m=l(294303),E=l(845030),A=l(699784),u=l(768195),p=l(363441),b=l(661065),I=l(100188);const O="screen",g=(0,i.bk)({enableReinitialize:!0,isInitialValid:!0,mapPropsToValues:({activeItem:e,formName:t=O})=>({[t]:{led_override:e.led_override||u.c_.ON,led_override_color_brightness:e.led_override_color_brightness||p.U,led_override_color:e.led_override_color||p.I}}),validationSchema:c.A.object().shape({led_override:c.A.string(),led_override_color_brightness:c.A.number(),led_override_color:c.A.string()}),handleSubmit:(e,{resetForm:t})=>{t({values:e})}}),C=(0,n.Zz)(g)(({activeItem:e,setFormDirty:t,values:l,dirty:n,resetForm:i,setFieldValue:c,formName:g=O,disableLedOverrideColor:C,disableLedBrightnessField:S})=>{const f=(0,r.useDispatch)(),h=(0,s.lp)(e);(0,a.useEffect)(()=>{t(g,n)},[t,n,g]),(0,a.useEffect)(()=>(f((0,E.uo)({[g]:()=>{const e=(0,o.A)(l,g);return{...l[g],...e}}})),f((0,E.Oo)({[g]:()=>{i({values:l})}})),f((0,E.rW)({[g]:i})),()=>{f((0,E.uo)({[g]:null})),f((0,E.Oo)({[g]:null})),f((0,E.rW)({[g]:null}))}),[f,g,i,l]);const v=(0,a.useCallback)(e=>{c(`${g}.led_override_color`,e)},[c,g]);return a.createElement(m.A,{alignItems:"center",marginBottom:_.Ln,gap:_.Ln},a.createElement(m.A,null,a.createElement(d.A,{name:"led_override",type:"realCheckbox",checked:l[g].led_override===u.c_.ON,onChange:({target:{checked:e}})=>{c(`${g}.led_override`,e?u.c_.ON:u.c_.OFF)}},a.createElement(A.sA,{id:"COMMON_LED"}))),h&&!C?a.createElement(I.A,{value:l[g].led_override_color||p.I,onChange:v}):null,!S&&h?a.createElement(b.A,{value:l[g].led_override_color_brightness??p.U,onChange:e=>{c(`${g}.led_override_color_brightness`,e)}}):null)})},949330:(e,t,l)=>{function n(e){return Object.keys(e).filter(t=>Number.isNaN(Number(e[t])))}l.d(t,{XB:()=>u,TH:()=>c,e8:()=>i,a$:()=>a,iL:()=>m,HH:()=>d,Y$:()=>_,Dc:()=>s,BR:()=>E,aW:()=>p,kB:()=>o,Lp:()=>A});var r=l(204751);const a={qos_policies:[],qos_profile_mode:r.If.CUSTOM},o={[r.ev.DSCP]:"PORTS_DSCP",[r.ev.IP_PRECEDENCE]:"PORTS_IP_PRECEDENCE",[r.ev.COS]:"PORTS_COS"},i={[r.hQ.BACKGROUND]:"BK",[r.hQ.BEST_EFFORT]:"BE",[r.hQ.EXCELLENT_EFFORT]:"EE",[r.hQ.CRITICAL_APPLICATIONS]:"CA",[r.hQ.VIDEO]:"VI",[r.hQ.VOICE]:"VO",[r.hQ.INTERNETWORK_CONTROL]:"IC",[r.hQ.NETWORK_CONTROL]:"NC"},c=n(r.hQ).map(e=>({label:`${e} (${i[e]})`,value:+e})),s={[r.lF.ROUTINE]:"RO",[r.lF.PRIORITY]:"PR",[r.lF.IMMEDIATE]:"IM",[r.lF.FLASH]:"FL",[r.lF.FLASH_OVERRIDE]:"FO",[r.lF.CRITIC_ECP]:"CR",[r.lF.INTERNETWORK_CONTROL]:"IC",[r.lF.NETWORK_CONTROL]:"NC"},_=n(r.lF).map(e=>({label:`${e} (${s[e]})`,value:+e})),d={[r.ee.DEFAULT]:"DF",[r.ee.AF11]:"AF11",[r.ee.AF12]:"AF12",[r.ee.AF13]:"AF13",[r.ee.AF21]:"AF21",[r.ee.AF22]:"AF22",[r.ee.AF23]:"AF23",[r.ee.AF31]:"AF31",[r.ee.AF32]:"AF32",[r.ee.AF33]:"AF33",[r.ee.AF41]:"AF41",[r.ee.AF42]:"AF42",[r.ee.AF43]:"AF43",[r.ee.CS1]:"CS1",[r.ee.CS2]:"CS2",[r.ee.CS3]:"CS3",[r.ee.CS4]:"CS4",[r.ee.CS5]:"CS5",[r.ee.CS6]:"CS6",[r.ee.CS7]:"CS7",[r.ee.EF]:"EF"},m=n(r.ee).map(e=>({label:`${e} (${d[e]})`,value:+e})),E={[r.CC.UNIFI]:[r.If.UNIFI_PLAY],[r.CC.DANTE]:[r.If.DANTE_AUDIO],[r.CC.QSYS]:[r.If.QSYS_AUDIO_VIDEO,r.If.QSYS_VIDEO_DANTE_AUDIO],[r.CC.NDI]:[r.If.NDI_AES67_AUDIO,r.If.NDI_DANTE_AUDIO],[r.CC.SDVOE]:[r.If.SDVOE_AES67_AUDIO,r.If.SDVOE_DANTE_AUDIO],[r.CC.SHURE]:[r.If.SHURE_AUDIO],[r.CC.AES67]:[r.If.AES67_AUDIO],[r.CC.CRESTON]:[r.If.CRESTRON_AUDIO_VIDEO]},A=e=>{switch(e){case r.If.UNIFI_PLAY:return r.CC.UNIFI;case r.If.DANTE_AUDIO:return r.CC.DANTE;case r.If.QSYS_AUDIO_VIDEO:case r.If.QSYS_VIDEO_DANTE_AUDIO:return r.CC.QSYS;case r.If.NDI_AES67_AUDIO:case r.If.NDI_DANTE_AUDIO:return r.CC.NDI;case r.If.SDVOE_AES67_AUDIO:case r.If.SDVOE_DANTE_AUDIO:return r.CC.SDVOE;case r.If.SHURE_AUDIO:return r.CC.SHURE;case r.If.AES67_AUDIO:return r.CC.AES67;case r.If.CRESTRON_AUDIO_VIDEO:return r.CC.CRESTON;default:return r.CC.UNIFI}},u={[r.If.UNIFI_PLAY]:"-",[r.If.DANTE_AUDIO]:"-",[r.If.QSYS_AUDIO_VIDEO]:"COMMON_QSYS_AUDIO_VIDEO",[r.If.QSYS_VIDEO_DANTE_AUDIO]:"COMMON_QSYS_VIDEO_DANTE_AUDIO",[r.If.NDI_AES67_AUDIO]:"COMMON_NDI_AES67_AUDIO",[r.If.NDI_DANTE_AUDIO]:"COMMON_NDI_DANTE_AUDIO",[r.If.SDVOE_AES67_AUDIO]:"COMMON_SDVOE_AES67_AUDIO",[r.If.SDVOE_DANTE_AUDIO]:"COMMON_SDVOE_DANTE_AUDIO",[r.If.SHURE_AUDIO]:"-",[r.If.AES67_AUDIO]:"-",[r.If.CRESTRON_AUDIO_VIDEO]:"-",[r.If.CUSTOM]:"-"},p=32},987588:(e,t,l)=>{l.d(t,{EV:()=>m,K_:()=>c,l2:()=>s,rH:()=>d,tk:()=>_});l(296540);var n=l(71479),r=l(132196),a=l(269333),o=l(566723),i=l(294303);const c=(0,n.A)(a.A)`
  width: 100%;
  align-items: center;
  align-self: flex-start;
  min-height: ${o.fS};
`,s=(0,n.A)(i.A)`
  min-height: ${o.fS};
  align-items: center;
  align-self: flex-start;
`,_=r.AH`
  /* align label */
  > div:first-child {
    align-self: center;
  }

  /* align icon */
  > div:last-child {
    height: 24px;
  }
`,d=r.AH`
  max-width: 130px;
  width: 130px;
`,m=r.AH`
  > div {
    margin: 0 !important;
  }
`;(0,n.A)(i.A)`
  flex: 0 2 256px;
  pointer-events: auto;
`},990066:(e,t,l)=>{l.d(t,{A:()=>re,x:()=>Q});var n=l(868238),r=l(469733),a=l(296540),o=l(951272),i=l(271856),c=l(927099),s=l(758649),_=l(718073),d=l(162420),m=l(71479),E=l(79760),A=l(592510),u=l(870443),p=l(790543),b=l(860631),I=l(398300),O=l(566723),g=l(679783),C=l(174897),S=l(543791),f=l(854246),h=l(553432),v=l(143811),D=l(349107),T=l(294303),N=l(263130),R=l(845030),P=l(699784),L=l(581799),w=l(823881),M=l(302167),k=l(457311),U=l(609695),x=l(140614),y=l(366188),F=l(780811),V=l(768195),B=l(532419),G=l(485897),W=l(132650),H=l(171073),z=l(959341),Y=l(765562),$=l(398146),j=l(152e3);const Q="advanced",K=(0,m.A)(c.A)`
  flex: 1;
  margin-right: 12px;
`,X=(0,m.A)("div")`
  margin-bottom: ${({marginBottom:e})=>e||0}px;
  margin-top: ${({marginTop:e})=>e||0}px;
`,q=(0,m.A)(d.A)`
  margin-bottom: 2px;
`,Z=(0,m.A)(i.A,{shouldForwardProp:e=>"disabled"!==e})`
  top: 0.5px;
  ${({disabled:e})=>e&&"opacity: 0.4; pointer-events: none;"}
`,J=(0,m.A)("div")`
  margin-right: 6px;
`,ee=(0,m.A)("div")`
  > div {
    margin-top: 4px;
    > span {
      line-height: 20px;
    }
  }
`,te=({showStackingWarning:e,children:t})=>a.createElement(_.A,{description:e?a.createElement(P.sA,{id:"DEVICE_PROPERTIES_DISABLED_WARNING_STACKING"}):void 0},a.createElement("span",null,t)),le=(0,o.bk)({enableReinitialize:!0,mapPropsToValues:({switchDeviceData:e,defaultRadiusProfile:t,customRadiusProfiles:l,globalSwitchSettings:n,isGlobalSwitchSettingsEnabled:r})=>{const a=((0,F.Tbi)(e)||(0,F.moU)(e)&&(0,F.rm3)(e))&&r,{jumboframe_enabled:o=!1,flowctrl_enabled:i=!1,stp_version:c=w.uI.RSTP,stp_priority:s="32768",dot1x_portctrl_enabled:_=!1,radiusprofile_id:d=t._id||"",dot1x_fallback_networkconf_id:m="",snmp_location:E="",snmp_contact:A="",lowpfmode_override:u=e.lowpfmode,outdoor_mode_override:p=V.Gi.DEFAULT,power_source_ctrl:b=W.A.AUTO,power_source_ctrl_enabled:I=!1}=e,O=()=>a?n.radiusprofile_id===t._id:d===t._id;return{jumboframe_enabled:a?n.jumboframe_enabled:o,flowctrl_enabled:a?n.flowctrl_enabled:i,stp_version:a?n.stp_version:c,stp_priority:s,dot1x_localProfile:O(),dot1x_portctrl_enabled:a?n.dot1x_portctrl_enabled:_,radiusprofile_id:O()?l.length?l[0]._id:void 0:d,dot1x_fallback_networkconf_id:a?n.dot1x_fallback_networkconf_id:m,snmp_location:E,snmp_contact:A,snmpEnabled:Boolean(E||A),outdoor_mode_override:p,lowpfmode_override:u,power_source_ctrl:b,power_source_ctrl_enabled:I}},validationSchema:({defaultRadiusProfile:e})=>u.A.object().shape({jumboframe_enabled:u.A.boolean(),flowctrl_enabled:u.A.boolean(),stp_version:u.A.string(),stp_priority:u.A.string(),dot1x_portctrl_enabled:u.A.boolean(),snmpEnabled:u.A.boolean(),snmp_contact:u.A.string(),lowpfmode_override:u.A.boolean(),dot1x_localProfile:u.A.boolean(),snmp_location:u.A.string(),radiusprofile_id:u.A.string().when(["dot1x_portctrl_enabled","dot1x_localProfile"],{is:(e,t)=>e&&t,then:u.A.string().test({name:"isDefaultRadiusProfileEnabled",test:t=>t!==e._id||e.enabled,message:a.createElement(P.sA,{id:"COMMON_VALIDATION_VALID_DEFAULT_RADIUS_PROFILE"})})}).when(["dot1x_portctrl_enabled","dot1x_localProfile"],{is:(e,t)=>e&&!t,then:u.A.string().required(a.createElement(P.sA,{id:"COMMON_VALIDATION_FIELD_REQUIRED"}))}),radiusProfiles:u.A.array().of(u.A.object()),radiusSettings:u.A.object(),dot1x_fallback_networkconf_id:u.A.string(),outdoor_mode_override:u.A.string(),power_source_ctrl:u.A.string(),power_source_ctrl_enabled:u.A.boolean()}),handleSubmit:()=>null}),ne=G.A.map(e=>({label:e,value:e})),re=(0,n.Zz)((0,r.connect)((e,{activeItem:t})=>({nativeNetworks:(0,y.Tn)(e),switchDeviceData:(0,B.tG)(t.mac)(e),defaultRadiusProfile:(0,U.selectDefaultRadiusProfile)(e),customRadiusProfiles:(0,U.selectCustomRadiusProfiles)(e),globalSwitchSettings:(0,M.zu)(e)}),{updateDevice:H.c8,fetchRadiusProfiles:x.fetchRadiusProfiles,fetchSettings:k.Uc}),le,(0,p.A)(({fetchRadiusProfiles:e,fetchSettings:t})=>Promise.all([e(void 0,{crudCacheStrategy:{type:A.e.CACHE}}),t(void 0,{crudCacheStrategy:{type:A.e.CACHE}})])))(({activeItem:e,values:t,errors:l,resetForm:n,dirty:o,setValues:i,setFormDirty:_,setFormInvalid:m,nativeNetworks:A=[],initialValues:u,isValid:p,hideFlowControl:M,globalSwitchSettings:k,isGlobalSwitchSettingsEnabled:x,setGlobalSwitchSettingsEnabled:y,formikSubmitCount:V})=>{const{formatMessage:B}=(0,P.tz)(),G=(0,r.useDispatch)(),H=((0,F.Tbi)(e)||(0,F.moU)(e)&&(0,F.rm3)(e)||(0,F.QQG)(e))&&x,le=(0,b.kL)(e.switch_caps?.feature_caps),re=(0,b.R8)(e.switch_caps?.feature_caps),ae=(0,F.KKO)(e.model,"outdoorModeSupport"),oe=(0,b.Pw)(e),ie=(0,b.CB)(e),[ce,se]=(0,a.useState)(null),_e=(0,r.useSelector)(U.selectCustomRadiusProfileOptions),de=(0,r.useSelector)(U.selectDefaultRadiusProfile),me=(0,a.useCallback)(()=>{G((0,R.XP)({type:I.H.NETWORK,id:z.R6}))},[G]);(0,a.useEffect)(()=>{_(Q,o),m(Q,!p)},[m,_,o,p]),(0,a.useEffect)(()=>(G((0,R.uo)({[Q]:()=>({snmp_contact:t.snmpEnabled?t.snmp_contact:"",snmp_location:t.snmpEnabled?t.snmp_location:"",...H?{...le&&k.stp_version!==w.uI.DISABLED&&{stp_priority:t.stp_priority}}:{...!M&&{jumboframe_enabled:t.jumboframe_enabled,flowctrl_enabled:t.flowctrl_enabled},...le&&{stp_version:t.stp_version,stp_priority:t.stp_priority},...re&&{dot1x_localProfile:t.dot1x_localProfile,dot1x_portctrl_enabled:t.dot1x_portctrl_enabled},...t.dot1x_portctrl_enabled&&re&&{radiusprofile_id:t.dot1x_localProfile?de._id:t.radiusprofile_id,dot1x_fallback_networkconf_id:t.dot1x_fallback_networkconf_id}},...ae&&{outdoor_mode_override:t.outdoor_mode_override},...oe&&{lowpfmode_override:t.lowpfmode_override},...ie&&{power_source_ctrl:t.power_source_ctrl,power_source_ctrl_enabled:t.power_source_ctrl!==W.A.AUTO}})})),G((0,R.Oo)({[Q]:()=>null})),G((0,R.rW)({[Q]:n})),()=>{G((0,R.uo)({[Q]:null})),G((0,R.Oo)({[Q]:null})),G((0,R.rW)({[Q]:null}))}),[e._id,n,t,re,le,M,ae,H,oe,G,k.stp_version,ie]);const Ee=(0,a.useMemo)(()=>A.map(e=>({value:e._id,label:e.name})),[A]),Ae=46===e.total_max_power,ue=(0,b.Tn)(e),pe=e.mclag_group_id&&!x;return a.createElement(a.Fragment,null,a.createElement(j.A.Checkbox,{isGlobalSwitchSettingsEnabled:x,setGlobalSwitchSettingsEnabled:y,onChange:e=>{if(e){const e=(0,E.LE)(u,t),l=(0,E.LE)(t,u),n=Object.keys(l).reduce((e,t)=>(k[t]&&(e[t]=k[t]),e),{});i({...t,...n}),se(e)}else i({...t,...ce}),se(null)}}),pe?a.createElement(N.A,{marginBottom:O.Ln,icon:a.createElement(d.A,{isActive:!0,size:"original",variant:"fill"}),description:a.createElement(P.sA,{id:"DEVICE_PROPERTIES_MCLAG_SYNC_WARNING"})}):null,a.createElement(T.A,{width:"100%",flexDirection:"column",flex:"1 1 85%"},a.createElement(T.A,{flexDirection:"column"},M?null:a.createElement(a.Fragment,null,a.createElement(S.A,{show:H},a.createElement(T.A,{flexDirection:"row",marginBottom:O.Ln},a.createElement(v.A,{name:"jumboframe_enabled",type:"realCheckbox",checked:H?k.jumboframe_enabled:t.jumboframe_enabled,disabled:H},a.createElement(T.A,{justifyContent:"space-between",alignItems:"center",marginRight:O.Ln},a.createElement(K,{size:"body",color:H?"disabled":void 0},a.createElement(P.sA,{id:"COMMON_JUMBO_FRAMES"})),a.createElement(Z,{portal:!0,tooltipClassName:"tooltip-position-fixer",width:200,disabled:H,description:a.createElement(P.sA,{id:"DEVICE_PROPERTIES_VALUES_ENABLE_JUMBO_FRAMES_D"})},a.createElement(q,{isActive:!0,size:"original"})))),a.createElement(te,{showStackingWarning:!H&&ue},a.createElement(v.A,{name:"flowctrl_enabled",type:"realCheckbox",checked:!ue&&(H?k.flowctrl_enabled:t.flowctrl_enabled),disabled:H||ue},a.createElement(T.A,{justifyContent:"space-between",alignItems:"center"},a.createElement(K,{size:"body",color:H||ue?"disabled":void 0},a.createElement(P.sA,{id:"COMMON_FLOW_CONTROL"})),a.createElement(Z,{portal:!0,tooltipClassName:"tooltip-position-fixer",width:200,disabled:H||ue,description:a.createElement(P.sA,{id:"DEVICE_PROPERTIES_VALUES_ENABLE_FLOW_CONTROL_D"})},a.createElement(q,{isActive:!0,size:"original"}))))))),(0,F.CIk)(e)&&(H?k.flowctrl_enabled:t.flowctrl_enabled)?a.createElement(N.A,{marginBottom:re?O.Ln:0,icon:a.createElement(d.A,{isActive:!0,size:"original",variant:"fill"}),description:a.createElement(P.sA,{id:"DEVICE_PROPERTIES_VALUES_ENABLE_FLOW_CONTROL_INFO",values:{link:a.createElement(D.A,{href:Y.A.flowControl,id:"COMMON_LEARN_MORE",noWrap:!0})}})}):null),a.createElement(S.A,{show:H},re?a.createElement(T.A,{gap:O.kc,flexDirection:"column",marginBottom:O.Ln},a.createElement(v.A,{label:"COMMON_DEVICE_CAP_SWITCH_CAP_DOT1X",name:"dot1x_portctrl_enabled",type:"realCheckbox",checked:H?k.dot1x_portctrl_enabled:t.dot1x_portctrl_enabled,disabled:H},a.createElement(T.A,{justifyContent:"space-between",alignItems:"center"},a.createElement(K,{size:"body",color:H?"disabled":void 0},a.createElement(T.A,{alignItems:"center"},a.createElement(J,null,a.createElement(P.sA,{id:"COMMON_DEVICE_CAP_SWITCH_CAP_DOT1X"})),a.createElement(Z,{width:200,description:a.createElement(P.sA,{id:"DEVICE_PROPERTIES_VALUES_ENABLE_8021X_CONTROL_D"}),disabled:H},a.createElement(q,{size:"original",isActive:!0,disabled:H})))))),t.dot1x_portctrl_enabled?a.createElement(T.A,{gap:O.kc,flexDirection:"column"},a.createElement(T.A,{gap:O.YC,flexDirection:"column"},a.createElement(T.A,{gap:O.YC,flexDirection:"row",alignItems:"center"},a.createElement(g.A,{style:{opacity:H?L.pH:1},label:a.createElement(P.sA,{id:"COMMON_CREDENTIAL_SOURCE"}),tooltipProps:{disableHover:H}}),a.createElement(Z,{width:200,description:a.createElement(P.sA,{id:"COMMON_CREDENTIAL_SOURCE_DESCRIPTION"}),disabled:H},a.createElement(q,{size:"original",isActive:!0,disabled:H}))),a.createElement(h.A,null,a.createElement(v.A,{type:"radio",name:"dot1x_localProfile",value:!0,disabled:H},a.createElement(P.sA,{id:"COMMON_LOCAL"})),a.createElement(v.A,{type:"radio",name:"dot1x_localProfile",value:!1,disabled:H},a.createElement(P.sA,{id:"COMMON_EXTERNAL_RADIUS_SERVER"})))),a.createElement(f.A,{visible:!!l.radiusprofile_id&&V>0},l.radiusprofile_id),t.dot1x_localProfile?null:a.createElement(a.Fragment,null,0===_e.length?a.createElement(T.A,{alignItems:"center"},a.createElement(s.A,{type:"button",size:"medium",variant:"inline",onClick:()=>{G((0,R.XP)({type:I.H.CUSTOM_RADIUS_PROFILE,id:z.R6}))}},a.createElement(P.sA,{id:"COMMON_CONNECT_RADIUS_SERVER"}))):a.createElement(T.A,{flexDirection:"row",gap:O.kc},a.createElement(T.A,{flex:1},a.createElement(v.A,{label:"COMMON_RADIUS_PROFILE",name:"radiusprofile_id",type:"dropdown",variant:"secondary",full:!0,options:_e,invalid:!!l.radiusprofile_id,translateLabel:!0,value:H?k.radiusprofile_id:t.radiusprofile_id,disabled:H}),l.radiusprofile_id?a.createElement(ee,null,a.createElement(f.A,{align:"left",visible:!0},l.radiusprofile_id)):null),a.createElement(s.A,{disabled:H,style:{marginTop:24},size:"small",type:"button",variant:"inline",onClick:()=>{G((0,R.XP)({type:I.H.CUSTOM_RADIUS_PROFILE,id:z.R6}))}},a.createElement(c.A,{color:"inherit",size:"body"},a.createElement(P.sA,{id:"COMMON_NEW"}))))),a.createElement(T.A,{gap:O.kc},a.createElement(v.A,{label:"DEVICE_PROPERTIES_LABEL_FALLBACK_VLAN",name:"dot1x_fallback_networkconf_id",type:"dropdown",variant:"secondary",full:!0,validated:!0,options:[{label:B({id:"COMMON_NONE"}),value:""},...Ee],translateLabel:!0,value:H?k.dot1x_fallback_networkconf_id:t.dot1x_fallback_networkconf_id,disabled:H}),a.createElement(s.A,{disabled:H,style:{marginTop:24},size:"small",type:"button",variant:"inline",onClick:me},a.createElement(c.A,{color:"inherit",size:"body"},a.createElement(P.sA,{id:"COMMON_NEW"}))))):null):null),le?a.createElement(a.Fragment,null,a.createElement(S.A,{show:H},a.createElement(X,{marginBottom:O.Ln},a.createElement(T.A,{alignItems:"center",marginBottom:O.kc,width:"fit-content"},a.createElement(K,{size:"body",color:H?"disabled":void 0},a.createElement(P.sA,{id:"COMMON_DEVICE_CAP_SWITCH_CAP_STP"})),a.createElement(Z,{portal:!0,tooltipClassName:"tooltip-position-fixer",disabled:H,description:C.c},a.createElement(q,{isActive:!0,size:"original"}))),a.createElement(T.A,{alignItems:"center",gap:O.Ln},a.createElement(v.A,{name:"stp_version",type:"radio",value:w.uI.STP,checked:w.uI.STP===(H?k:t).stp_version,disabled:H},a.createElement(P.sA,{id:"DEVICE_PROPERTIES_VALUES_SPANNING_TREE_STP"})),a.createElement(v.A,{name:"stp_version",type:"radio",value:w.uI.RSTP,checked:w.uI.RSTP===(H?k:t).stp_version,disabled:H},a.createElement(P.sA,{id:"DEVICE_PROPERTIES_VALUES_SPANNING_TREE_RSTP"})),a.createElement(v.A,{name:"stp_version",type:"radio",value:w.uI.DISABLED,checked:w.uI.DISABLED===(H?k:t).stp_version,disabled:H},a.createElement(P.sA,{id:"COMMON_DISABLED"}))))),(H?k:t).stp_version!==w.uI.DISABLED?a.createElement(T.A,{marginTop:O.Ln,flexDirection:"column"},a.createElement(v.A,{label:"COMMON_PRIORITY",name:"stp_priority",type:"dropdown",variant:"secondary",full:!0,validated:!0,options:ne,translateLabel:!0,value:t.stp_priority})):null):null),(0,b.A6)(e)?a.createElement(T.A,{marginTop:O.Ln,flexDirection:"column"},a.createElement($.A,null)):null,ie&&!Ae?a.createElement(T.A,{marginTop:O.Ln,flexDirection:"column"},a.createElement(c.A,{color:"tertiary",size:"caption"},a.createElement(P.sA,{id:"DEVICE_PROPERTIES_LABEL_POWER_SOURCE"})),a.createElement(T.A,{alignItems:"center",whiteSpace:"nowrap",gap:O.Ln},a.createElement(v.A,{type:"radio",name:"power_source_ctrl",value:W.A.AUTO},a.createElement(P.sA,{id:"DEVICE_PROPERTIES_VALUES_POWER_SOURCE_AUTO"})),a.createElement(v.A,{type:"radio",name:"power_source_ctrl",value:W.A.POE},a.createElement(P.sA,{id:"DEVICE_PROPERTIES_VALUES_POWER_SOURCE_POE_8023AF"})),a.createElement(v.A,{type:"radio",name:"power_source_ctrl",value:W.A.POE_PLUS_PLUS},a.createElement(P.sA,{id:"DEVICE_PROPERTIES_VALUES_POWER_SOURCE_POE_INJECTOR"})))):null))})}}]);