"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[69584],{639188(e,t,n){n.d(t,{VG:()=>r,Vm:()=>o,z7:()=>a});const r=80,a="22:00",o="08:00"},363441(e,t,n){n.d(t,{I:()=>a,U:()=>o});var r=n(888170);const a=(0,n(939703).Wj)(r.Ay["blue-0"]),o=100},522453(e,t,n){n.d(t,{Ay:()=>A,v$:()=>E});var r=n(296540),a=n(469733),o=n(271856),l=n(71479),i=n(132196),d=n(811822),s=n(955161),m=n(916537),c=n(602021),_=n(566723);const u=(0,l.A)("div")`
  pointer-events: none;
`,p=i.AH`
  opacity: ${_.xN};
`,g=({warning:e,children:t})=>{return e?r.createElement(s.A,{condition:!!e,wrapper:(n=e,e=>r.createElement(o.A,{description:(0,d.Kg)(n)?r.createElement(m.sA,{id:n}):n,portal:!0,isInteractive:!(0,d.Kg)(n)},r.createElement(u,null,e)))},t):r.createElement(r.Fragment,null,t);var n},E=({disabled:e,children:t})=>e?r.createElement(u,{className:p,style:{width:"100%"}},t):r.createElement(r.Fragment,null,t),A=({disableWithWarning:e,children:t})=>{const n=(0,a.useSelector)(c.EL);return r.createElement(g,{warning:e},e?r.createElement("div",{className:n?void 0:p},t):t)}},689965(e,t,n){n.d(t,{A:()=>p,I:()=>r});var r,a=n(296540),o=n(822336),l=n(963724),i=n(71479),d=n(825032),s=n(566723),m=n(294303),c=n(311785);!function(e){e.ACCORDION="accordion",e.BUTTON_LIST="buttonList"}(r||(r={}));const _=(0,i.A)(m.A,(0,c.A)("marginBottom","isButtonList","margin","flex","width","padding","nested","background"))`
  background-color: ${({background:e,nested:t,theme:{themeName:n}})=>e||o.Ay[n===d.S.DARK?`desktop-color-neutral-${t?"00":"01"}-dark`:`desktop-color-neutral-${t?"01":"00"}-light`]};
  padding: ${({theme:e,isButtonList:t,padding:n})=>n||(t?`0 ${e.spacing["spacing-l"]}`:e.spacing["spacing-l"])};
  margin-bottom: ${({theme:e,marginBottom:t})=>t||e.spacing["spacing-l"]};
  ${({margin:e})=>e?`margin: ${e};`:""}
  border-radius: 8px;
  flex-direction: column;
  width: ${({width:e="100%"})=>e};
  flex: ${({flex:e=0})=>e};
  > :last-child {
    margin-bottom: 0;
  }
  thead {
    tr {
      height: 32px !important;
    }
    th {
      text-transform: none;
    }
  }
  ${({isButtonList:e})=>e?`\n    > div {\n      display: flex;\n      height: 48px;\n      border-bottom: ${({theme:{themeName:e}})=>o.Ay[`desktop-border-divider-${e}`]};\n      &:last-child {\n        border-bottom: none;\n      }\n    }\n  `:""}
`,u=(0,i.A)(l.A,(0,c.A)("marginBottom","margin","flex","padding","nested","background"))`
  background-color: ${({background:e,nested:t,theme:{themeName:n}})=>e||o.Ay[n===d.S.DARK?`desktop-color-neutral-${t?"00":"01"}-dark`:`desktop-color-neutral-${t?"01":"00"}-light`]};
  margin-bottom: ${({theme:e,marginBottom:t})=>t||e.spacing["spacing-l"]};
  ${({margin:e})=>e?`margin: ${e};`:""}
  ${({padding:e})=>e?`padding: ${e};`:""}
  border-radius: 8px;
  flex-direction: column;
  flex: ${({flex:e=0})=>e};
  > :last-child {
    margin-bottom: 0;
  }
  thead {
    tr {
      height: 32px !important;
    }
    th {
      text-transform: none;
    }
  }
  > li {
    > div:first-child {
      background: ${({background:e,theme:{themeName:t}})=>e||o.Ay[t===d.S.DARK?"desktop-color-neutral-01-dark":"desktop-color-neutral-00-light"]};
      height: 48px;
      padding: 0 ${s.Ln};
    }
    > div:nth-child(2) {
      margin-bottom: 0;
      padding: 0;
      > div {
        padding: 0 ${s.Ln} ${s.Ln};
      }
    }
  }
`,p=({type:e,marginBottom:t,margin:n,padding:o,flex:l,width:i,nested:d,...s})=>"items"in s?a.createElement(u,{marginBottom:t,margin:n,padding:o,flex:l,nested:d,...s}):a.createElement(_,{nested:d,width:i,marginBottom:t,margin:n,padding:o,flex:l,isButtonList:e===r.BUTTON_LIST,...s},s.children)},553432(e,t,n){n.d(t,{A:()=>i});var r=n(296540),a=n(454195),o=n(566723),l=n(294303);const i=e=>r.createElement(l.A,{paddingTop:o.YC,paddingBottom:o.YC,gap:o.Ln,rowGap:o.YC,flexWrap:"wrap",minHeight:a.b,alignItems:"center",...e})},505102(e,t,n){n.d(t,{A:()=>o,q:()=>a});var r=n(870443);const a=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(),o=r.A.object().shape({powerSupervisor:a})},389651(e,t,n){n.d(t,{A:()=>h});var r=n(469733),a=n(296540),o=n(951272),l=n(217439),i=n(71479),d=n(834042),s=n(566723),m=n(143811),c=n(916537),_=n(198494),u=n(766624),p=n(294303);const g=(0,i.A)(p.A)`
  margin-bottom: 24px;
`,E=e=>{const[t,n]=e.split(":");return 60*Number(t)+Number(n)},A=e=>`${Math.floor(e/d.t).toString().padStart(2,"0")}:${(e%d.t).toString().padStart(2,"0")}`,h=(0,a.memo)(()=>{const{values:{lcm_night_mode_begins:e,lcm_night_mode_ends:t},setFieldValue:n}=(0,o.j7)(),{formatMessage:i}=(0,c.tz)(),h=(0,r.useSelector)(_.jc),b=(0,a.useMemo)(()=>(0,d.gy)(h,15,i),[h,i]),v=(0,a.useMemo)(()=>"string"==typeof e?E(e):e,[e]),O=(0,a.useMemo)(()=>"string"==typeof t?E(t):t,[t]),f=(0,a.useCallback)(({value:e})=>{n("lcm_night_mode_begins",A(+e))},[n]),w=(0,a.useCallback)(({value:e})=>{n("lcm_night_mode_ends",A(+e))},[n]);return!v&&0!==v||!O&&0!==O?null:a.createElement(a.Fragment,null,a.createElement(p.A,{justifyContent:"flex-start",marginBottom:s.kc,alignItems:"center",gap:s.YC},a.createElement(l.A,{color:"text-1",size:"medium"},a.createElement(c.sA,{id:"DEVICE_PROPERTIES_LABEL_LCM_NIGHT_MODE"})),a.createElement(u.A,{description:a.createElement(c.sA,{id:"DEVICE_PROPERTIES_LABEL_LCM_NIGHT_MODE_DESCRIPTION"})})),a.createElement(g,{justifyContent:"space-between",flexDirection:"column"},a.createElement(p.A,{gap:s.Ln},a.createElement(m.A,{type:"dropdown",variant:"secondary",label:"COMMON_START_TIME",translateLabel:!0,name:"lcm_night_mode_begins",placeholder:b.some(({value:e})=>e===v)?void 0:(0,d.oP)({formatMessage:i,minuteOfDay:v,use24HourFormat:h}),translatePlaceholder:!1,options:b,value:v,onChange:f,full:!0}),a.createElement(m.A,{type:"dropdown",variant:"secondary",label:"COMMON_END_TIME",translateLabel:!0,name:"lcm_night_mode_ends",placeholder:b.some(({value:e})=>e===O)?void 0:(0,d.oP)({formatMessage:i,minuteOfDay:O,use24HourFormat:h}),translatePlaceholder:!1,options:b,value:O,onChange:w,full:!0}))))})},661065(e,t,n){n.d(t,{A:()=>m});var r=n(296540),a=n(100946),o=n(217439),l=n(916537),i=n(294303),d=n(363441),s=n(178233);const m=({value:e=d.U,onChange:t})=>r.createElement(r.Fragment,null,r.createElement(i.A,{flexDirection:"column",width:"100%"},r.createElement(i.A,{flexDirection:"row",alignItems:"center"},r.createElement(o.A,{variant:"caption"},r.createElement(l.sA,{id:"COMMON_BRIGHTNESS"}))),r.createElement(a.A,{value:e,minValue:1,onChange:t})),r.createElement(i.A,{flexDirection:"column"},r.createElement(o.A,{variant:"body-primary"},(0,s.A)(e))))},100188(e,t,n){n.d(t,{A:()=>g});var r=n(296540),a=n(718814),o=n(939703),l=n(294303),i=n(595235),d=n(71479),s=n(311785);const m=(0,d.A)(l.A)`
  cursor: pointer;
`,c=(0,d.A)("div",(0,s.A)("color"))`
  background-color: ${({color:e})=>e};
  border-radius: 3px;
  width: 34px;
  height: 20px;
`,_=({color:e})=>r.createElement(m,{width:"55px",height:"24px",padding:"2px 0",alignItems:"center",justifyContent:"space-between",flexShrink:0},r.createElement(c,{color:e}),r.createElement(i.A,null));var u=n(363441);const p=[{id:"hue",channel:"hue"}],g=({value:e,onChange:t})=>{const n=(0,r.useCallback)(e=>{t((0,o.E6)(e.toString())||u.I)},[t]),i=e||u.I;return r.createElement(l.A,{flexDirection:"column"},r.createElement(a.A,{value:i,onChange:n,sliders:p,colorSpace:"hex"},r.createElement("span",null,r.createElement(_,{color:i}))))}},726317(e,t,n){n.d(t,{A:()=>c});var r=n(296540),a=n(217439),o=n(454195),l=n(566723),i=n(855019),d=n(143811),s=n(294303),m=n(916537);const c=(0,r.memo)(()=>r.createElement(s.A,{flexDirection:"column"},r.createElement(a.A,{color:"text-3",size:"small"},r.createElement(m.sA,{id:"COMMON_IP_CONFIGURATION"})),r.createElement(s.A,{height:o.b,alignItems:"center",gap:l.Ln},r.createElement(d.A,{name:"config_network.type",type:"radio",value:i.NL.DHCP},r.createElement(m.sA,{id:"COMMON_DHCP"})),r.createElement(d.A,{name:"config_network.type",type:"radio",value:i.NL.STATIC},r.createElement(m.sA,{id:"COMMON_STATIC"})))))},568269(e,t,n){n.d(t,{A:()=>c});var r=n(296540),a=n(566723),o=n(86571),l=n(143811),i=n(294303),d=n(689965),s=n(916537),m=n(661010);const c=(0,r.memo)(({bandsteeringMode:e})=>r.createElement(d.A,{type:d.I.ACCORDION,items:[{id:"bandsteer",label:r.createElement(o.A,{id:"COMMON_BAND_STEERING"}),openByDefault:!0,renderContent:()=>r.createElement(i.A,{gap:a.Ln},m.DQ.map(({value:t,label:n})=>r.createElement(l.A,{name:"bandsteering_mode",key:t,value:t,checked:e===t,type:"radio"},r.createElement(s.sA,{id:n}))))}]}))},583109(e,t,n){n.r(t),n.d(t,{default:()=>me});var r=n(469733),a=n(296540),o=n(951272),l=n(96512),i=n(860631),d=n(943805),s=n(855019),m=n(564985),c=n(302167),_=n(768941),u=n(366188),p=n(780811),g=n(170459),E=n(768195),A=n(363441),h=n(639188),b=n(803167),v=n(171073),O=n(239417),f=n(934969),w=n(757666),C=n(678419),k=n(256896),N=n(329109),M=n(94017),S=n(430126),I=n(661010),y=n(566723),x=n(86571),T=n(143811),D=n(294303),L=n(689965),R=n(916537),$=n(785146),F=n(31208),B=n(726317);const P=({configNetworkType:e,activeItem:t,nativeNetworks:n,hasSwitchVlanField:r})=>a.createElement(L.A,{type:L.I.ACCORDION,items:[{id:"network",label:a.createElement(x.A,{id:"COMMON_IP_SETTINGS"}),openByDefault:!0,renderContent:()=>a.createElement(D.A,{flexDirection:"column",gap:y.Ln},n?.length>1&&!(0,p.zg4)(t)?a.createElement($.A,{nativeNetworks:n,activeItemMac:t.mac}):null,a.createElement(B.A,null),e===s.NL.STATIC?a.createElement(F.A,null):null,(0,p.xyH)(t)||(0,p.Eyk)(t)||(0,p._iI)(t)||(0,p.W46)(t)?a.createElement(D.A,null,a.createElement(T.A,{name:"config_network.bonding_enabled",type:"realCheckbox"},a.createElement(R.sA,{id:"DEVICE_PROPERTIES_VALUES_ENABLE_PORT_AGGREGATION"}))):null,r?a.createElement(D.A,null,a.createElement(T.A,{type:"realCheckbox",name:"switch_vlan_enabled"},a.createElement(R.sA,{id:"DEVICE_PROPERTIES_VALUES_ENABLE_PORT_VLAN"}))):null)}]});var U=n(89124),G=n(870443),V=n(62227),H=n(505102),j=n(398146),W=n(605689);const q=(e,t,n)=>G.A.object().shape({name:G.A.string().label("COMMON_NAME").min(1).max(128),config_network:(0,V.d)(t,n),mgmt_network_id:G.A.string(),...j.U,lowpfmode_override:G.A.boolean(),...(0,W.m)(e),lcm_brightness_override:G.A.boolean(),lcm_brightness:G.A.number().when("lcm_brightness_override",{is:!0,then:G.A.number().label("COMMON_BRIGHTNESS").min(1).max(100).required()}),lcm_night_mode_begins:G.A.string(),lcm_night_mode_ends:G.A.string(),led_override:G.A.string().oneOf(Object.values(E.c_)),led_override_color:G.A.string().when("led_override",{is:E.c_.ON,then:G.A.string().label("COMMON_LED").required()}),led_override_color_brightness:G.A.number().when("led_override",{is:E.c_.ON,then:G.A.number().label("COMMON_BRIGHTNESS").min(1).max(100).required()}),powerSupervisor:H.q});var z=n(210514);const Y=({activeItem:e})=>{const t=(0,a.useMemo)(()=>e.radio_table?.filter(({radio:e})=>Boolean(e)).sort(g.j3),[e.radio_table]);return t?.length?a.createElement(L.A,{type:L.I.ACCORDION,items:[{id:"radios",label:a.createElement(x.A,{id:"COMMON_RADIOS"}),openByDefault:!0,renderContent:()=>a.createElement(z.A,{activeItem:e,sortedRadios:t})}]}):null};var K=n(389651),Q=n(522453),J=n(661065),X=n(100188);const Z=(0,a.memo)(({isLedBarSupported:e,isLedBrightnessSupported:t})=>{const{values:n,setFieldValue:r}=(0,o.j7)(),l=(0,a.useCallback)(e=>{r("led_override_color_brightness",e)},[r]),i=(0,a.useCallback)(e=>{r("led_override_color",e)},[r]),d=(0,a.useCallback)(()=>{r("led_override",n.led_override===E.c_.ON?E.c_.OFF:E.c_.ON)},[r,n.led_override]);return a.createElement(D.A,{marginBottom:y.Ln,gap:y.Ln,alignItems:"center"},a.createElement(D.A,null,a.createElement(T.A,{name:"led_override",type:"realCheckbox",checked:n.led_override===E.c_.ON,onChange:d},a.createElement(R.sA,{id:"COMMON_LED"}))),a.createElement(Q.v$,{disabled:n.led_override===E.c_.OFF},e||t?a.createElement(D.A,{flexDirection:"row",gap:y.Ln,width:"100%"},e?a.createElement(X.A,{value:n.led_override_color,onChange:i}):null,a.createElement(J.A,{value:n?.led_override_color_brightness??A.U,onChange:l})):null))});var ee=n(956619),te=n(217439),ne=n(802),re=n(132196),ae=n(602021);const oe=e=>a.createElement(D.A,{marginTop:16},a.createElement(te.A,{size:"inherit"},e,"%")),le=(0,a.memo)(({isLcmSupported:e,isOverrideLcmSupported:t})=>{const{values:n,setFieldValue:l}=(0,o.j7)(),i=(0,r.useSelector)(ae.EL),d=(0,a.useCallback)(({target:{value:e}})=>{l("lcm_brightness",+e)},[l]);return e&&t?a.createElement(a.Fragment,null,a.createElement(D.A,{justifyContent:"space-between",marginBottom:y.S2},a.createElement(D.A,{alignItems:"center"},a.createElement(te.A,{color:"text-1",size:"medium"},a.createElement(R.sA,{id:"DEVICE_PROPERTY_HEADER_TOUCHSCREEN"}))),a.createElement(ne.A,{width:"50%",value:n.lcm_brightness||h.VG,withValueIndicator:!0,min:1,valueIndicatorPosition:"right",formatValueIndicatorContent:oe,onChange:d,disabled:i,label:a.createElement(te.A,{color:"text-1",size:"inherit"},a.createElement(R.sA,{id:"COMMON_BRIGHTNESS"})),contentClassName:re.AH`
            padding-top: 0;
          `,size:"large"})),a.createElement(K.A,null)):null}),ie=({activeItem:e})=>{const{values:t,setFieldValue:n}=(0,o.j7)();return a.createElement(L.A,{type:L.I.ACCORDION,items:[{id:"manage",label:a.createElement(x.A,{id:"COMMON_ACTION_MANAGE"}),openByDefault:!0,renderContent:()=>a.createElement(a.Fragment,null,(0,p.Vyo)(e)?a.createElement(K.A,null):a.createElement(a.Fragment,null,a.createElement(Z,{isLedBarSupported:(0,i.lp)(e),isLedBrightnessSupported:(0,i.RE)(e)}),a.createElement(le,{isLcmSupported:(0,i.j0)(e),isOverrideLcmSupported:(0,i.TY)(e)})),a.createElement(ee.A,{activeItem:e,values:t,setFieldValue:n,renderApFields:!0,showEnableDisableSwitch:!(0,p.r$V)(e)}))}]})};var de=n(568269),se=n(694595);const me=({activeItem:e})=>{const t=(0,r.useSelector)(c.$5),n=(0,r.useDispatch)(),y=(0,r.useSelector)(u.Tn),x=(0,r.useSelector)(c.Yk),T=(0,r.useSelector)(O.GB),D=(0,l.I)(),L=(0,r.useSelector)((0,C.x0)(e.mac)),R=(0,a.useMemo)(()=>(0,p.iQS)(e.model),[e.model]),$=(0,i.P$)(e),F=(0,p.KKO)(e.model,"outdoorModeSupport"),B=(0,p.U$e)(y,e.connection_network_id),G={name:e.name,config_network:{type:e.config_network?.type||"dhcp",ip:e.config_network?.ip||e.ip||"",netmask:e.config_network?.netmask||B?.netmask||"",gateway:e.config_network?.gateway||B?.ip||"",dns1:e.config_network?.dns1||B?.dns1||"",dns2:e.config_network?.dns2||B?.dns2||"",dnssuffix:e.config_network?.dnssuffix||"",bonding_enabled:e.config_network?.bonding_enabled||!1},...R?{switch_vlan_enabled:e.switch_vlan_enabled||!1}:{},snmpEnabled:Boolean(e.snmp_contact||e.snmp_location),snmp_contact:e.snmp_contact,snmp_location:e.snmp_location,mgmt_network_id:(0,p.ewD)(y,e.mgmt_network_id),afc_enabled:e.afc_enabled||!1,outdoor_mode_override:e.outdoor_mode_override||E.Gi.DEFAULT,...F?{outdoor_install_mode:e.outdoor_mode_override===E.Gi.ON?E.Dd.OUTDOOR:E.Dd.INDOOR}:{},bandsteering_mode:e.bandsteering_mode||E.eF.OFF,...!0===e.lowpfmode?{lowpfmode_override:!("lowpfmode_override"in e)||e.lowpfmode_override}:{},led_override:e.led_override||(!1===t.led_enabled?E.c_.OFF:E.c_.ON),led_override_color:e.led_override_color||A.I,led_override_color_brightness:+e.led_override_color_brightness||A.U,...(0,i.mo)(e)?{green_ap_enabled:e.green_ap_enabled}:{},...L?{powerSupervisor:(0,k.f)(L,(0,se.lD)(e,L))}:{},...(()=>{const t=(e.radio_table||[]).find(({radio:e})=>e===d.A.NA.type)?.vwire_enabled??!0,n=e.mesh_sta_vap_enabled??!0,r=t||n;return{radios:e.radio_table?.map(({antenna_id:t,antenna_gain:n,name:r,radio:a,ht:o,channel:l,tx_power_mode:i,tx_power:d,min_txpower:s,vwire_enabled:c,min_rssi_enabled:_,min_rssi:u,hard_noise_floor_enabled:p,assisted_roaming_enabled:E,assisted_roaming_rssi:A})=>{const h=(0,g.Lg)(e.antenna_table,r);return{antenna_id:void 0===t&&h?h.id:t,antenna_gain:void 0===n&&h?(0,g.YX)(h,r):n,name:r,type:a,ht:+o||b.L[a],channel:Number(l)||M.YQ,tx_power_mode:i||m.PB.AUTO,tx_power:d||s||0,vwire_enabled:c??!0,min_rssi_enabled:_||!1,min_rssi:+u||I.XN.DEFAULT,assisted_roaming_enabled:E||!1,assisted_roaming_rssi:A||I.Wh.DEFAULT,hard_noise_floor_enabled:p||!1}})?.sort(g.j3),atf_enabled:e.atf_enabled||!1,meshingEnabled:r,uplinkMeshEnabled:n,uplinkPriority1:e.mesh_uplink_1||"",uplinkPriority2:e.mesh_uplink_2||"",...(0,i.j0)(e)&&(0,i.TY)(e)&&{lcm_brightness:e.lcm_brightness||h.VG,lcm_night_mode_begins:e.lcm_night_mode_begins,lcm_night_mode_ends:e.lcm_night_mode_ends}}})()};return a.createElement(o.l1,{initialValues:G,onSubmit:(t,{resetForm:r})=>{const{snmpEnabled:a,config_network:o,bandsteering_mode:l,meshingEnabled:i,uplinkMeshEnabled:d,uplinkPriority1:m,uplinkPriority2:c,radios:u,...p}=t;p.config_network=t.config_network?.type===s.NL.STATIC?o:{type:"dhcp",bonding_enabled:o?.bonding_enabled},a||(p.snmp_contact="",p.snmp_location=""),$&&(p.bandsteering_mode=l),m&&(p.mesh_uplink_1=m,c&&(p.mesh_uplink_2=c)),p.mesh_sta_vap_enabled=t.uplinkMeshEnabled,p.radio_table=u?.map(n=>{const{name:r,type:a,sens_level:o,sens_level_enabled:l}=n,i=(0,S.k)(e,a),{type:d,...s}=t.radios.find(e=>e.type===a&&e.name===r),m={...s,sens_level_enabled:l,sens_level:o,radio:d};if("custom"!==s.tx_power_mode&&delete m.tx_power,m.antenna_id){if(!(0,g.kb)(e,m.antenna_id)){const t=(0,g.Sb)(e.antenna_table||[],m.antenna_id);t&&(0,g.Jj)(t,r)&&(m.antenna_gain=(0,g.pK)(t,r))}}else delete m.antenna_id;return(0,g.Wg)(n)||m.min_rssi_enabled||delete m.hard_noise_floor_enabled,m.min_rssi_enabled||delete m.min_rssi,m.sens_level_enabled||delete m.sens_level,m.assisted_roaming_enabled||delete m.assisted_roaming_rssi,i&&(delete m.channel,delete m.ht),m}),p.lowpfmode_override&&(e.port_overrides||[]).find(e=>e.poe_mode===_.Gu.PASSTHROUGH)&&(p.port_overrides=(e.port_overrides||[]).map(e=>({...e,poe_mode:e.poe_mode===_.Gu.PASSTHROUGH?_.Gu.OFF:e.poe_mode}))),n((0,w.A)(L?.id,t.powerSupervisor)),n((0,v.ex)(p,e._id,e.mac,{extend:!0})).then(()=>{r({values:{...t,...p}});const{mesh_uplink_1:a="",mesh_uplink_2:o=""}=p;(0,S.W)({uplinkPriority1:a,uplinkPriority2:o,...t},G,e,n)}).catch(e=>{D(e),r({values:t})})},enableReinitialize:!0,validationSchema:q(e.radio_table||[],x,T)},({values:t,handleSubmit:n,handleReset:r,dirty:o,isValid:l,isSubmitting:i})=>a.createElement(a.Fragment,null,a.createElement(U.qF,{mac:e.mac}),t.radios?.length>0?a.createElement(Y,{activeItem:e}):null,$?a.createElement(de.A,{bandsteeringMode:t.bandsteering_mode}):null,a.createElement(P,{configNetworkType:t.config_network?.type,activeItem:e,nativeNetworks:y,hasSwitchVlanField:R}),a.createElement(f.Ay,{device:e}),a.createElement(ie,{activeItem:e}),a.createElement(N.A,{isDirty:o,isInvalid:!l,onFormSubmit:n,onFormCancel:r,isSubmitting:i})))}},372737(e,t,n){var r;n.d(t,{U:()=>r}),function(e){e.ARROW_LEFT="ArrowLeft",e.ARROW_RIGHT="ArrowRight",e.ARROW_DOWN="ArrowDown",e.ARROW_UP="ArrowUp",e.ENTER="Enter",e.ESCAPE="Escape",e.BACKSPACE="Backspace",e.DELETE="Delete",e.TAB="Tab"}(r||(r={}))},834042(e,t,n){n.d(t,{EJ:()=>s,gy:()=>i,oP:()=>l,pi:()=>o,q8:()=>d,t:()=>a});var r=n(621690);const a=60,o=24,l=({minuteOfDay:e,use24HourFormat:t,formatMessage:n})=>{const r=Math.floor(e/60);return`${String(t?r:r%12||12).padStart(2,"0")}:${String(e%a).padStart(2,"0")}${t?"":` ${n({id:r>=12?"COMMON_PM":"COMMON_AM"})}`}`},i=(e,t,n)=>{const o=Math.max(1,Math.min(60,Math.floor(60/t))),i=Math.floor(60/o);return(0,r.A)(0,24).flatMap(t=>(0,r.A)(o).map(r=>{const o=r*i;return{label:l({use24HourFormat:e,formatMessage:n,minuteOfDay:t*a+o}),value:60*t+ +o}}))},d=e=>6e4*Math.round(e/6e4),s=(e,t)=>{const n=+(e/1e3).toFixed(1),r=+(n/1e3).toFixed(1),a=+(n/6e4).toFixed(1);return n<1e3?`${n} ${t({id:"COMMON_UNIT_MS"})}`:r<60?`${r} ${t({id:"COMMON_UNIT_S"})}`:`${a} ${t({id:"COMMON_UNIT_MIN"})}`}}}]);