"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[25782,89965],{86571:(e,t,n)=>{n.d(t,{A:()=>o});var a=n(296540),r=n(217439),l=n(699784);const o=({id:e,children:t,values:n})=>a.createElement(r.A,{color:"text-1",weight:"bold",size:"medium"},e?a.createElement(l.sA,{id:e,values:n}):null,t)},100188:(e,t,n)=>{n.d(t,{A:()=>g});var a=n(296540),r=n(766412),l=n(939703),o=n(294303),i=n(595235),s=n(71479);const c=(0,s.A)(o.A)`
  cursor: pointer;
`,d=(0,s.A)("div",{shouldForwardProp:e=>"color"!==e})`
  background-color: ${({color:e})=>e};
  border-radius: 3px;
  width: 34px;
  height: 20px;
`,m=({color:e})=>a.createElement(c,{width:"55px",height:"24px",padding:"2px 0",alignItems:"center",justifyContent:"space-between",flexShrink:0},a.createElement(d,{color:e}),a.createElement(i.A,null));var _=n(363441);const u=[{id:"hue",channel:"hue"}],g=({value:e,onChange:t})=>{const n=(0,a.useCallback)(e=>{t((0,l.E6)(e.toString())||_.I)},[t]),i=e||_.I;return a.createElement(o.A,{flexDirection:"column"},a.createElement(r.A,{value:i,onChange:n,sliders:u,colorSpace:"hex"},a.createElement("span",null,a.createElement(m,{color:i}))))}},104739:(e,t,n)=>{n.d(t,{v:()=>s});var a=n(296540);(0,n(349005).A)('button.tag__46sVwAu3{-webkit-appearance:button;-moz-appearance:button;appearance:button;border:none;cursor:pointer;outline:none}button.tag__46sVwAu3:disabled{cursor:default}.tag__46sVwAu3{align-items:center;background:var(--tag-background-color);border-radius:20px;color:var(--tag-text-color);display:inline-flex;flex:none;flex-direction:row;font-family:var(--desktop-font-family-default);font-size:var(--desktop-font-size-small);font-weight:600;height:24px;justify-content:space-between;line-height:20px;padding:0 16px;position:relative;text-align:center;text-decoration:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.tag-flushRight__46sVwAu3{padding-right:0}.tag-actionable__46sVwAu3{cursor:pointer}.tag-actionable__46sVwAu3:hover{background:var(--tag-hover-background-color)}.tag-actionable__46sVwAu3:focus{background:var(--tag-focus-background-color);outline:none}.tag-actionable__46sVwAu3:focus.is-accessible__46sVwAu3:after{border:1px solid var(--tag-background-color);bottom:0;content:"";left:0;position:absolute;right:0;top:0}.tag-actionable__46sVwAu3:active{background:var(--tag-active-background-color)}.tag-primary__46sVwAu3{--tag-text-color:#fff}.tag-primary__46sVwAu3.tag-light__46sVwAu3{--tag-background-color:#006fff;--tag-hover-background-color:#338bff;--tag-focus-background-color:#338bff;--tag-active-background-color:#0058cc}.tag-primary__46sVwAu3.tag-dark__46sVwAu3{--tag-background-color:#4797ff;--tag-hover-background-color:#277ff1;--tag-focus-background-color:#277ff1;--tag-active-background-color:#80b7ff}.tag_iconAfter__46sVwAu3{align-items:center;display:flex;height:22px;justify-content:center;margin-left:6px;margin-right:4px;width:22px}.tag_iconAfter__46sVwAu3>svg{float:left}');var r=n(722860),l=n(325898),o=n(917612);const i=(0,r.c)({tag:"tag__46sVwAu3","tag-flushRight":"tag-flushRight__46sVwAu3","tag-actionable":"tag-actionable__46sVwAu3","is-accessible":"is-accessible__46sVwAu3","tag-primary":"tag-primary__46sVwAu3","tag-light":"tag-light__46sVwAu3","tag-dark":"tag-dark__46sVwAu3",tag_iconAfter:"tag_iconAfter__46sVwAu3"});const s=a.forwardRef(function({actionable:e=!1,as:t,children:n,className:r,color:s="primary",iconAfter:c,motif:d,...m},_){const{motif:u}=(0,l.A)(d),{isAccessible:g}=(0,o.G5)(),h=t||(e?"button":"div");return a.createElement(h,{className:i.concat(r)("tag",`tag-${s}`,`tag-${u}`,e&&"tag-actionable",c&&"tag-flushRight",g&&"is-accessible"),ref:_,role:e?"button":void 0,tabIndex:e?0:void 0,...m},n,c&&a.createElement("div",{className:i("tag_iconAfter")},c))});s.displayName="Tag"},137625:(e,t,n)=>{n.d(t,{A:()=>c});var a=n(296540),r=n(353899),l=n(132196),o=n(372737),i=n(566723),s=n(699784);const c=({children:e=null,title:t,titleValues:n,message:c,messageValues:d,handleConfirm:m=()=>null,handleClose:_=()=>null,handleCancel:u,isOpen:g,buttonVariant:h="primary",cancelButtonVariant:p="tertiary",cancelButtonMessage:A="COMMON_ACTION_CANCEL",buttonMessage:E="COMMON_ACTION_CONFIRM",buttonDisabled:b=!1,position:v="top",showHeaderClose:f=!1,contentClassName:w="",body:O,titleBody:C,className:N,rootClose:x=!1,footerActions:k})=>{const y=(0,a.useCallback)(e=>{g&&(e.stopPropagation(),e.key===o.U.ENTER?m():e.key===o.U.ESCAPE&&_(!1))},[g,m,_]);(0,a.useEffect)(()=>(window.addEventListener("keydown",y,!0),()=>{window.removeEventListener("keydown",y,!0)}),[y]);const I=(0,a.useCallback)(()=>{_(!1),u?.()},[_,u]),M=(0,a.useCallback)(()=>{_(!1),m()},[_,m]),D=(0,a.useMemo)(()=>[{text:a.createElement(s.sA,{id:A}),variant:p,onClick:I},{text:a.createElement(s.sA,{id:E}),disabled:b,variant:h,onClick:M}],[E,h,A,p,I,M,b]),S=(0,a.useCallback)(()=>{_(!1)},[_]),R=l.AH`
    ${t?"":`margin-top: ${i.xO}`}
  `;return a.createElement(r.A,{title:t?a.createElement(s.sA,{id:t,values:n}):C||null,...c?{body:a.createElement(a.Fragment,null,a.createElement(s.sA,{id:c,values:d}),O)}:{body:O},position:v,portal:!0,actions:k||D,showHeaderClose:f,contentClassName:l.AH`
        ${R}
        ${w}
      `,onRequestClose:S,isOpen:g,allowOverflow:!0,rootClose:x,className:N},e)}},210514:(e,t,n)=>{n.d(t,{A:()=>F});var a=n(469733),r=n(296540),l=n(84385),o=n(860631),i=n(943805),s=n(398300),c=n(566723),d=n(855019),m=n(951272),_=n(252093),u=n(515219),g=n(553432),h=n(143811),p=n(349107),A=n(294303),E=n(699784),b=n(768195),v=n(765562);const f=({is6GhzSupported:e})=>{const{setFieldValue:t}=(0,m.j7)();return r.createElement(A.A,{marginBottom:c.Ln,alignItems:"center"},r.createElement(g.A,{gap:c.kc},[b.Dd.INDOOR,b.Dd.OUTDOOR].map(n=>r.createElement(h.A,{key:n,name:"outdoor_install_mode",type:"radio",value:n,onChange:()=>(e=>{switch(t("outdoor_install_mode",e),e){case b.Dd.OUTDOOR:t("outdoor_mode_override",b.Gi.ON);break;case b.Dd.INDOOR:t("outdoor_mode_override",b.Gi.OFF)}})(n)},r.createElement(A.A,{alignItems:"center",gap:c.YC},r.createElement(E.sA,{id:u.J[n]}),n===b.Dd.OUTDOOR?r.createElement(_.A,{messageId:e?"DEVICE_ENABLE_AFC_MODAL_INSTALL_MODE_OUTDOOR_6GHZ_TOOLTIP":"DEVICE_ENABLE_AFC_MODAL_INSTALL_MODE_OUTDOOR_TOOLTIP",values:{link:r.createElement(p.A,{id:"COMMON_LEARN_MORE",href:v.A.afcArticle})},variant:"outline",isInteractive:!0,portal:!0}):null)))))};var w=n(376576),O=n(845030),C=n(614164),N=n(564985),x=n(302167),k=n(457311),y=n(780811),I=n(532419),M=n(533105),D=n(875962),S=n(227902),R=n(329681),L=n(563485),T=n(198494),V=n(170459);const $=({device:e,radios:t})=>{const{formatMessage:n}=(0,E.tz)(),l=(0,a.useSelector)(T.EH),{values:{radios:o},setFieldValue:i}=(0,m.j7)(),[s]=t,c=(0,V.A4)(e,l);return(0,V.Ox)(e,s.name,c,n).length<=1?null:r.createElement(L.A,{name:"radios.0.antenna_id",configuredAntennaId:o[0].antenna_id,onChangeRadioAntenna:n=>{const a=(0,V.Sb)(e.antenna_table||[],n);t.forEach((t,r)=>{const l=t.name;(void 0!==(a?.[`${l}_gain`]??void 0)||(0,V.kb)(e,n))&&(i(`radios.${r}.antenna_id`,n),i(`radios.${r}.antenna_gain`,(0,V.pK)(a,l)))})},radio:s,device:e})},F=({activeItem:e,sortedRadios:t,hideMeshing:n})=>{const m=(0,a.useDispatch)(),_=(0,a.useSelector)(x.Zc),u=(0,a.useSelector)(I.ID),g=(0,a.useSelector)(x.ZZ),h=(0,y.KKO)(e.model,"outdoorModeSupport"),p=(0,o.X5)(e,g),A=(0,r.useMemo)(()=>t.map(({radio:e})=>t.some(({radio:e})=>e===N.sx.RADIO_6E)?e===i.A[N.sx.RADIO_6E.toUpperCase()].type:e===i.A.NA.type).lastIndexOf(!0),[t]),E=(0,y.zg4)(e)?N.sx.RADIO_NG:N.sx.RADIO_NA,b=t.findIndex(e=>e.radio===E),v=t.filter(({radio:e})=>e&&e===N.sx.RADIO_6E).length;return(0,r.useEffect)(()=>{m((0,k.Uc)())},[m]),r.createElement(r.Fragment,null,h&&r.createElement(f,{is6GhzSupported:v>0}),(!e.multi_active_antennas||(0,y.ERA)(e))&&r.createElement($,{device:e,radios:t}),(0,y.r$V)(e)?r.createElement(R.A,{radioIdx:b,deviceRadio:{device:e,radio:t[b]}}):t.map((n,a)=>{const o=a===t.length-1,i=a===A;return r.createElement(r.Fragment,{key:`${n.radio}-${n.name}`},n.radio!==N.sx.RADIO_6E||e.support_wifi6e||p?r.createElement(S.qk,{device:e,radio:n,isLastNa:i,radio6gCount:v,mode:S.Hm.DEVICE_AND_RADIO,onSelectMeshingParents:()=>{const t=(0,C.T)(e,u);t?.device&&m((0,O.XP)({type:s.H.DEVICE,id:t.device.mac,tab:d.BC.SETTINGS}))}}):r.createElement(M.A,{radioType:n.radio}),!o&&r.createElement(l.A,{style:{margin:`${c.Ln} 0`}}))}),(!n&&_||p&&v>1)&&!(0,y.E4T)(e)&&r.createElement(l.A,{style:{margin:`${c.Ln} 0`}}),p&&v>1&&!h&&r.createElement(w.A,{isOutdoor:!0}),!n&&_&&r.createElement(D.A,{device:e}))}},363441:(e,t,n)=>{n.d(t,{I:()=>r,U:()=>l});var a=n(888170);const r=(0,n(939703).Wj)(a.Ay["blue-0"]),l=100},372737:(e,t,n)=>{var a;n.d(t,{U:()=>a}),function(e){e.ARROW_DOWN="ArrowDown",e.ARROW_UP="ArrowUp",e.ENTER="Enter",e.ESCAPE="Escape"}(a||(a={}))},389651:(e,t,n)=>{n.d(t,{A:()=>f});var a=n(469733),r=n(296540),l=n(951272),o=n(271856),i=n(927099),s=n(162420),c=n(71479),d=n(834042),m=n(566723),_=n(143811),u=n(699784),g=n(198494),h=n(294303);const p=(0,c.A)(h.A)`
  margin-bottom: 24px;
`,A=(0,c.A)(o.A)`
  top: 2px;
`,E=(0,c.A)(s.A)`
  margin-left: 6px;
  margin-bottom: 3px;
`,b=e=>{const[t,n]=e.split(":");return 60*Number(t)+Number(n)},v=e=>`${Math.floor(e/d.t).toString().padStart(2,"0")}:${(e%d.t).toString().padStart(2,"0")}`,f=(0,r.memo)(()=>{const{values:{lcm_night_mode_begins:e,lcm_night_mode_ends:t},setFieldValue:n}=(0,l.j7)(),{formatMessage:o}=(0,u.tz)(),s=(0,a.useSelector)(g.jc),c=(0,r.useMemo)(()=>(0,d.gy)(s,15,o),[s,o]),f=(0,r.useMemo)(()=>"string"==typeof e?b(e):e,[e]),w=(0,r.useMemo)(()=>"string"==typeof t?b(t):t,[t]),O=(0,r.useCallback)(({value:e})=>{n("lcm_night_mode_begins",v(+e))},[n]),C=(0,r.useCallback)(({value:e})=>{n("lcm_night_mode_ends",v(+e))},[n]);return(f||0===f)&&(w||0===w)?r.createElement(r.Fragment,null,r.createElement(h.A,{justifyContent:"flex-start",marginBottom:8},r.createElement(i.A,{color:"primary",size:"body"},r.createElement(u.sA,{id:"DEVICE_PROPERTIES_LABEL_LCM_NIGHT_MODE"})),r.createElement(A,{width:200,description:r.createElement(u.sA,{id:"DEVICE_PROPERTIES_LABEL_LCM_NIGHT_MODE_DESCRIPTION"})},r.createElement(E,{size:"original",isActive:!0}))),r.createElement(p,{justifyContent:"space-between",flexDirection:"column"},r.createElement(h.A,{gap:m.Ln},r.createElement(_.A,{type:"dropdown",variant:"secondary",label:"COMMON_START_TIME",translateLabel:!0,name:"lcm_night_mode_begins",placeholder:c.some(({value:e})=>e===f)?void 0:(0,d.oP)({formatMessage:o,minuteOfDay:f,use24HourFormat:s}),translatePlaceholder:!1,options:c,value:f,onChange:O,full:!0}),r.createElement(_.A,{type:"dropdown",variant:"secondary",label:"COMMON_END_TIME",translateLabel:!0,name:"lcm_night_mode_ends",placeholder:c.some(({value:e})=>e===w)?void 0:(0,d.oP)({formatMessage:o,minuteOfDay:w,use24HourFormat:s}),translatePlaceholder:!1,options:c,value:w,onChange:C,full:!0})))):null})},400270:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(296540),r=n(629318);const l=(0,n(51946).w)(e=>(0,a.createElement)("svg",(0,r.d)({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em"},e),(0,a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 3a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1H4Zm8 8a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1h-4Z",fill:"currentColor",className:e.twotonedclassname}),(0,a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 4h4v4H4V4ZM3 4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4Zm9 8h4v4h-4v-4Zm-1 0a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1v-4Zm1.854-4.854L11.707 6H16v3.5a.5.5 0 0 0 1 0v-4a.5.5 0 0 0-.5-.5h-4.793l1.147-1.146a.5.5 0 0 0-.708-.708l-2 2a.5.5 0 0 0 0 .708l2 2a.5.5 0 0 0 .708-.708ZM8.293 15H3.5a.5.5 0 0 1-.5-.5v-4a.5.5 0 0 1 1 0V14h4.293l-1.147-1.146a.5.5 0 0 1 .708-.708l2 2a.5.5 0 0 1 0 .708l-2 2a.5.5 0 0 1-.708-.708L8.293 15Z",fill:"currentColor",className:e.baseclassname}),(0,a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 3a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1H4Zm7 9a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1v-4Zm1.854-4.854L11.707 6H16v3.5a.5.5 0 0 0 1 0v-4a.5.5 0 0 0-.5-.5h-4.793l1.147-1.146a.5.5 0 0 0-.708-.708l-2 2a.5.5 0 0 0 0 .708l2 2a.5.5 0 0 0 .708-.708ZM8.293 15H3.5a.5.5 0 0 1-.5-.5v-4a.5.5 0 0 1 1 0V14h4.293l-1.147-1.146a.5.5 0 0 1 .708-.708l2 2a.5.5 0 0 1 0 .708l-2 2a.5.5 0 0 1-.708-.708L8.293 15Z",fill:"currentColor",className:e.fillclassname})))},469628:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(296540),r=n(629318);const l=(0,n(51946).w)(e=>(0,a.createElement)("svg",(0,r.d)({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em"},e),(0,a.createElement)("rect",{x:9,y:7,width:1,height:6,rx:.5,fill:"currentColor",className:e.baseclassname}),(0,a.createElement)("rect",{x:7,y:8,width:1,height:4,rx:.5,fill:"currentColor",className:e.baseclassname}),(0,a.createElement)("rect",{x:11,y:8,width:1,height:4,rx:.5,fill:"currentColor",className:e.baseclassname}),(0,a.createElement)("rect",{x:5,y:7,width:1,height:6,rx:.5,fill:"currentColor",className:e.baseclassname}),(0,a.createElement)("rect",{x:13,y:7,width:1,height:6,rx:.5,fill:"currentColor",className:e.baseclassname}),(0,a.createElement)("rect",{x:3,y:8,width:1,height:4,rx:.5,fill:"currentColor",className:e.baseclassname}),(0,a.createElement)("rect",{x:1,y:9,width:1,height:2,rx:.5,fill:"currentColor",className:e.baseclassname}),(0,a.createElement)("rect",{x:15,y:8,width:1,height:4,rx:.5,fill:"currentColor",className:e.baseclassname}),(0,a.createElement)("rect",{x:17,y:9,width:1,height:2,rx:.5,fill:"currentColor",className:e.baseclassname})))},470591:(e,t,n)=>{n.d(t,{A:()=>a});const a=(0,n(296540).createContext)({isStandalone:!0,header:[null,()=>{}],footer:[null,()=>{}]})},491877:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(296540),r=n(629318);const l=(0,n(51946).w)(e=>(0,a.createElement)("svg",(0,r.d)({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em"},e),(0,a.createElement)("rect",{x:9.5,y:5,width:1,height:10,rx:.5,fill:"currentColor",className:e.baseclassname}),(0,a.createElement)("rect",{x:7,y:6,width:1,height:8,rx:.5,fill:"currentColor",className:e.baseclassname}),(0,a.createElement)("rect",{x:12,y:6,width:1,height:8,rx:.5,fill:"currentColor",className:e.baseclassname}),(0,a.createElement)("rect",{x:4.5,y:7,width:1,height:6,rx:.5,fill:"currentColor",className:e.baseclassname}),(0,a.createElement)("rect",{x:14.5,y:7,width:1,height:6,rx:.5,fill:"currentColor",className:e.baseclassname}),(0,a.createElement)("rect",{x:2,y:8,width:1,height:4,rx:.5,fill:"currentColor",className:e.baseclassname}),(0,a.createElement)("rect",{x:17,y:8,width:1,height:4,rx:.5,fill:"currentColor",className:e.baseclassname})))},515219:(e,t,n)=>{n.d(t,{J:()=>r});var a=n(768195);const r={[a.Dd.INDOOR]:"DEVICE_ENABLE_AFC_MODAL_INSTALL_MODE_INDOOR",[a.Dd.OUTDOOR]:"DEVICE_ENABLE_AFC_MODAL_INSTALL_MODE_OUTDOOR"}},522453:(e,t,n)=>{n.d(t,{Ay:()=>A,v$:()=>p});var a=n(469733),r=n(296540),l=n(271856),o=n(71479),i=n(132196),s=n(811822),c=n(955161),d=n(699784),m=n(602021),_=n(566723);const u=(0,o.A)("div")`
  pointer-events: none;
`,g=i.AH`
  opacity: ${_.xN};
`,h=({warning:e,children:t})=>{return e?r.createElement(c.A,{condition:!!e,wrapper:(n=e,e=>r.createElement(l.A,{description:(0,s.Kg)(n)?r.createElement(d.sA,{id:n}):n,portal:!0,isInteractive:!(0,s.Kg)(n)},r.createElement(u,null,e)))},t):r.createElement(r.Fragment,null,t);var n},p=({disabled:e,children:t})=>e?r.createElement(u,{className:g,style:{width:"100%"}},t):r.createElement(r.Fragment,null,t),A=({disableWithWarning:e,children:t})=>{const n=(0,a.useSelector)(m.EL);return r.createElement(h,{warning:e},e?r.createElement("div",{className:n?void 0:g},t):t)}},553432:(e,t,n)=>{n.d(t,{A:()=>i});var a=n(296540),r=n(454195),l=n(566723),o=n(294303);const i=e=>a.createElement(o.A,{paddingTop:l.YC,paddingBottom:l.YC,gap:l.Ln,rowGap:l.YC,flexWrap:"wrap",minHeight:r.b,alignItems:"center",...e})},568269:(e,t,n)=>{n.d(t,{A:()=>m});var a=n(296540),r=n(566723),l=n(86571),o=n(143811),i=n(294303),s=n(689965),c=n(699784),d=n(661010);const m=(0,a.memo)(({bandsteeringMode:e})=>a.createElement(s.A,{type:s.I.ACCORDION,items:[{id:"bandsteer",label:a.createElement(l.A,{id:"COMMON_BAND_STEERING"}),openByDefault:!0,renderContent:()=>a.createElement(i.A,{gap:r.Ln},d.DQ.map(({value:t,label:n})=>a.createElement(o.A,{name:"bandsteering_mode",key:t,value:t,checked:e===t,type:"radio"},a.createElement(c.sA,{id:n}))))}]}))},583109:(e,t,n)=>{n.r(t),n.d(t,{default:()=>re});var a=n(469733),r=n(296540),l=n(951272),o=n(96512),i=n(860631),s=n(943805),c=n(855019),d=n(564985),m=n(302167),_=n(768941),u=n(366188),g=n(780811),h=n(170459),p=n(768195),A=n(363441),E=n(639188),b=n(803167),v=n(171073),f=n(239417),w=n(329109),O=n(94017),C=n(430126),N=n(661010),x=n(566723),k=n(86571),y=n(143811),I=n(294303),M=n(689965),D=n(699784),S=n(785146),R=n(31208),L=n(726317);const T=({configNetworkType:e,activeItem:t,nativeNetworks:n,hasSwitchVlanField:a})=>r.createElement(M.A,{type:M.I.ACCORDION,items:[{id:"network",label:r.createElement(k.A,{id:"COMMON_IP_SETTINGS"}),openByDefault:!0,renderContent:()=>r.createElement(I.A,{flexDirection:"column",gap:x.Ln},n?.length>1&&!(0,g.zg4)(t)&&r.createElement(S.A,{nativeNetworks:n,activeItemMac:t.mac}),r.createElement(L.A,null),e===c.NL.STATIC&&r.createElement(R.A,null),((0,g.xyH)(t)||(0,g.Eyk)(t)||(0,g._iI)(t)||(0,g.W46)(t))&&r.createElement(I.A,null,r.createElement(y.A,{name:"config_network.bonding_enabled",type:"realCheckbox"},r.createElement(D.sA,{id:"DEVICE_PROPERTIES_VALUES_ENABLE_PORT_AGGREGATION"}))),a&&r.createElement(I.A,null,r.createElement(y.A,{type:"realCheckbox",name:"switch_vlan_enabled"},r.createElement(D.sA,{id:"DEVICE_PROPERTIES_VALUES_ENABLE_PORT_VLAN"}))))}]});var V=n(89124),$=n(870443),F=n(62227),B=n(398146),P=n(605689);const H=(e,t,n)=>$.A.object().shape({name:$.A.string().label("COMMON_NAME").min(1).max(128),config_network:(0,F.d)(t,n),mgmt_network_id:$.A.string(),...B.U,lowpfmode_override:$.A.boolean(),...(0,P.m)(e),lcm_brightness_override:$.A.boolean(),lcm_brightness:$.A.number().when("lcm_brightness_override",{is:!0,then:$.A.number().label("COMMON_BRIGHTNESS").min(1).max(100).required()}),lcm_night_mode_begins:$.A.string(),lcm_night_mode_ends:$.A.string(),led_override:$.A.string().oneOf(Object.values(p.c_)),led_override_color:$.A.string().when("led_override",{is:p.c_.ON,then:$.A.string().label("COMMON_LED").required()}),led_override_color_brightness:$.A.number().when("led_override",{is:p.c_.ON,then:$.A.number().label("COMMON_BRIGHTNESS").min(1).max(100).required()})});var U=n(210514);const G=({activeItem:e})=>{const t=(0,r.useMemo)(()=>e.radio_table?.filter(({radio:e})=>Boolean(e)).sort(h.j3),[e.radio_table]);return t?.length?r.createElement(M.A,{type:M.I.ACCORDION,items:[{id:"radios",label:r.createElement(k.A,{id:"COMMON_RADIOS"}),openByDefault:!0,renderContent:()=>r.createElement(U.A,{activeItem:e,sortedRadios:t})}]}):null};var j=n(389651),Z=n(522453),z=n(661065),K=n(100188);const W=(0,r.memo)(({isLedBarSupported:e,isLedBrightnessSupported:t})=>{const{values:n,setFieldValue:a}=(0,l.j7)(),o=(0,r.useCallback)(e=>{a("led_override_color_brightness",e)},[a]),i=(0,r.useCallback)(e=>{a("led_override_color",e)},[a]),s=(0,r.useCallback)(()=>{a("led_override",n.led_override===p.c_.ON?p.c_.OFF:p.c_.ON)},[a,n.led_override]);return r.createElement(I.A,{marginBottom:x.Ln,gap:x.Ln,alignItems:"center"},r.createElement(I.A,null,r.createElement(y.A,{name:"led_override",type:"realCheckbox",checked:n.led_override===p.c_.ON,onChange:s},r.createElement(D.sA,{id:"COMMON_LED"}))),r.createElement(Z.v$,{disabled:n.led_override===p.c_.OFF},e||t?r.createElement(r.Fragment,null,e?r.createElement(K.A,{value:n.led_override_color,onChange:i}):null,r.createElement(z.A,{value:n?.led_override_color_brightness??A.U,onChange:o})):null))});var Y=n(956619),q=n(927099),J=n(802),X=n(132196),Q=n(602021);const ee=e=>r.createElement(I.A,{marginTop:16},r.createElement(q.A,{size:"inherit"},e,"%")),te=(0,r.memo)(({isLcmSupported:e,isOverrideLcmSupported:t})=>{const{values:n,setFieldValue:o}=(0,l.j7)(),i=(0,a.useSelector)(Q.EL),s=(0,r.useCallback)(({target:{value:e}})=>{o("lcm_brightness",+e)},[o]);return e&&t?r.createElement(r.Fragment,null,r.createElement(I.A,{justifyContent:"space-between",marginBottom:x.S2},r.createElement(I.A,{alignItems:"center"},r.createElement(q.A,{color:"primary",size:"body"},r.createElement(D.sA,{id:"DEVICE_PROPERTY_HEADER_TOUCHSCREEN"}))),r.createElement(J.A,{width:"50%",value:n.lcm_brightness||E.VG,withValueIndicator:!0,min:1,valueIndicatorPosition:"right",formatValueIndicatorContent:ee,onChange:s,disabled:i,label:r.createElement(q.A,{color:"primary",size:"inherit"},r.createElement(D.sA,{id:"COMMON_BRIGHTNESS"})),contentClassName:X.AH`
            padding-top: 0;
          `,size:"large"})),r.createElement(j.A,null)):null}),ne=({activeItem:e})=>{const{values:t,setFieldValue:n}=(0,l.j7)();return r.createElement(M.A,{type:M.I.ACCORDION,items:[{id:"manage",label:r.createElement(k.A,{id:"COMMON_ACTION_MANAGE"}),openByDefault:!0,renderContent:()=>r.createElement(r.Fragment,null,(0,g.Vyo)(e)?r.createElement(j.A,null):r.createElement(r.Fragment,null,r.createElement(W,{isLedBarSupported:(0,i.lp)(e),isLedBrightnessSupported:(0,i.RE)(e)}),r.createElement(te,{isLcmSupported:(0,i.j0)(e),isOverrideLcmSupported:(0,i.TY)(e)})),r.createElement(Y.A,{activeItem:e,values:t,setFieldValue:n,renderApFields:!0,showEnableDisableSwitch:!(0,g.r$V)(e)}))}]})};var ae=n(568269);const re=({activeItem:e})=>{const t=(0,a.useSelector)(m.$5),n=(0,a.useDispatch)(),x=(0,a.useSelector)(u.Tn),k=(0,a.useSelector)(m.Yk),y=(0,a.useSelector)(f.GB),I=(0,o.I)(),M=(0,r.useMemo)(()=>(0,g.iQS)(e.model),[e.model]),D=(0,i.P$)(e),S=(0,g.KKO)(e.model,"outdoorModeSupport"),R=(0,g.U$e)(x,e.connection_network_id),L={name:e.name,config_network:{type:e.config_network?.type||"dhcp",ip:e.config_network?.ip||e.ip||"",netmask:e.config_network?.netmask||R?.netmask||"",gateway:e.config_network?.gateway||R?.ip||"",dns1:e.config_network?.dns1||R?.dns1||"",dns2:e.config_network?.dns2||R?.dns2||"",dnssuffix:e.config_network?.dnssuffix||"",bonding_enabled:e.config_network?.bonding_enabled||!1},...M?{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,g.ewD)(x,e.mgmt_network_id),afc_enabled:e.afc_enabled||!1,outdoor_mode_override:e.outdoor_mode_override||p.Gi.DEFAULT,...S?{outdoor_install_mode:e.outdoor_mode_override===p.Gi.ON?p.Dd.OUTDOOR:p.Dd.INDOOR}:{},bandsteering_mode:e.bandsteering_mode||p.eF.OFF,...!0===e.lowpfmode?{lowpfmode_override:!("lowpfmode_override"in e)||e.lowpfmode_override}:{},led_override:e.led_override||(!1===t.led_enabled?p.c_.OFF:p.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}:{},...(()=>{const t=(e.radio_table||[]).find(({radio:e})=>e===s.A.NA.type)?.vwire_enabled??!0,n=e.mesh_sta_vap_enabled??!0,a=t||n;return{radios:e.radio_table?.map(({antenna_id:t,antenna_gain:n,name:a,radio:r,ht:l,channel:o,tx_power_mode:i,tx_power:s,min_txpower:c,vwire_enabled:m,min_rssi_enabled:_,min_rssi:u,hard_noise_floor_enabled:g,assisted_roaming_enabled:p,assisted_roaming_rssi:A})=>{const E=(0,h.Lg)(e.antenna_table,a);return{antenna_id:void 0===t&&E?E.id:t,antenna_gain:void 0===n&&E?(0,h.YX)(E,a):n,name:a,type:r,ht:+l||b.L[r],channel:Number(o)||O.YQ,tx_power_mode:i||d.PB.AUTO,tx_power:s||c||0,vwire_enabled:m??!0,min_rssi_enabled:_||!1,min_rssi:+u||N.XN.DEFAULT,assisted_roaming_enabled:p||!1,assisted_roaming_rssi:A||N.Wh.DEFAULT,hard_noise_floor_enabled:g||!1}})?.sort(h.j3),atf_enabled:e.atf_enabled||!1,meshingEnabled:a,uplinkMeshEnable:n,uplinkPriority1:e.mesh_uplink_1||"",uplinkPriority2:e.mesh_uplink_2||"",...(0,i.dg)(e)?{mesh_mlo_enabled:e.mesh_mlo_enabled||!1}:{},...(0,i.j0)(e)&&(0,i.TY)(e)&&{lcm_brightness:e.lcm_brightness||E.VG,lcm_night_mode_begins:e.lcm_night_mode_begins,lcm_night_mode_ends:e.lcm_night_mode_ends}}})()};return r.createElement(l.l1,{initialValues:L,onSubmit:(t,{resetForm:a})=>{const{snmpEnabled:r,config_network:l,bandsteering_mode:o,meshingEnabled:i,uplinkMeshEnable:s,uplinkPriority1:d,uplinkPriority2:m,radios:u,...g}=t;g.config_network=t.config_network?.type===c.NL.STATIC?l:{type:"dhcp",bonding_enabled:l?.bonding_enabled},r||(g.snmp_contact="",g.snmp_location=""),D&&(g.bandsteering_mode=o),d&&(g.mesh_uplink_1=d,m&&(g.mesh_uplink_2=m)),g.mesh_sta_vap_enabled=t.uplinkMeshEnable,g.radio_table=u?.map(n=>{const{name:a,type:r,sens_level:l,sens_level_enabled:o}=n,i=(0,C.k)(e,r),{type:s,...c}=t.radios.find(e=>e.type===r&&e.name===a),d={...c,sens_level_enabled:o,sens_level:l,radio:s};if("custom"!==c.tx_power_mode&&delete d.tx_power,d.antenna_id){if(!(0,h.kb)(e,d.antenna_id)){const t=(0,h.Sb)(e.antenna_table||[],d.antenna_id);t&&(0,h.Jj)(t,a)&&(d.antenna_gain=(0,h.pK)(t,a))}}else delete d.antenna_id;return(0,h.Wg)(n)||d.min_rssi_enabled||delete d.hard_noise_floor_enabled,d.min_rssi_enabled||delete d.min_rssi,d.sens_level_enabled||delete d.sens_level,d.assisted_roaming_enabled||delete d.assisted_roaming_rssi,i&&(delete d.channel,delete d.ht),d}),g.lowpfmode_override&&(e.port_overrides||[]).find(e=>e.poe_mode===_.Gu.PASSTHROUGH)&&(g.port_overrides=(e.port_overrides||[]).map(e=>({...e,poe_mode:e.poe_mode===_.Gu.PASSTHROUGH?_.Gu.OFF:e.poe_mode}))),n((0,v.ex)(g,e._id,e.mac,{extend:!0})).then(()=>{a({values:{...t,...g}});const{mesh_uplink_1:r="",mesh_uplink_2:l=""}=g;(0,C.W)({uplinkPriority1:r,uplinkPriority2:l,...t},L,e,n)}).catch(e=>{I(e),a({values:t})})},enableReinitialize:!0,validationSchema:H(e.radio_table||[],k,y)},({values:t,handleSubmit:n,handleReset:a,dirty:l,isValid:o})=>r.createElement(r.Fragment,null,r.createElement(V.qF,{mac:e.mac}),t.radios?.length>0?r.createElement(G,{activeItem:e}):null,D?r.createElement(ae.A,{bandsteeringMode:t.bandsteering_mode}):null,r.createElement(T,{configNetworkType:t.config_network?.type,activeItem:e,nativeNetworks:x,hasSwitchVlanField:M}),r.createElement(ne,{activeItem:e}),r.createElement(w.A,{isDirty:l,isInvalid:!o,onFormSubmit:n,onFormCancel:a})))}},639188:(e,t,n)=>{n.d(t,{VG:()=>a,Vm:()=>l,z7:()=>r});const a=80,r="22:00",l="08:00"},661065:(e,t,n)=>{n.d(t,{A:()=>d});var a=n(296540),r=n(1758),l=n(217439),o=n(699784),i=n(294303),s=n(363441),c=n(178233);const d=({value:e=s.U,onChange:t})=>a.createElement(a.Fragment,null,a.createElement(i.A,{flexDirection:"column",width:"100%"},a.createElement(i.A,{flexDirection:"row",alignItems:"center"},a.createElement(l.A,{variant:"caption"},a.createElement(o.sA,{id:"COMMON_BRIGHTNESS"}))),a.createElement(r.A,{value:e,minValue:1,onChange:t})),a.createElement(i.A,{flexDirection:"column"},a.createElement(l.A,{variant:"body-primary"},(0,c.A)(e))))},689965:(e,t,n)=>{n.d(t,{A:()=>u,I:()=>a});var a,r=n(296540),l=n(822336),o=n(427853),i=n(71479),s=n(825032),c=n(566723),d=n(294303);!function(e){e.ACCORDION="accordion",e.BUTTON_LIST="buttonList"}(a||(a={}));const m=(0,i.A)(d.A,{shouldForwardProp:e=>!["marginBottom","isButtonList","margin","flex","width","padding","nested","background"].includes(e)})`
  background-color: ${({background:e,nested:t,theme:{themeName:n}})=>e||l.Ay[n===s.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}})=>l.Ay[`desktop-border-divider-${e}`]};\n      &:last-child {\n        border-bottom: none;\n      }\n    }\n  `:""}
`,_=(0,i.A)(o.A,{shouldForwardProp:e=>!["marginBottom","margin","flex","padding","nested","background"].includes(e)})`
  background-color: ${({background:e,nested:t,theme:{themeName:n}})=>e||l.Ay[n===s.S.DARK?`desktop-color-neutral-${t?"00":"01"}-dark`:`desktop-color-neutral-${t?"01":"00"}-light`]};
  margin-bottom: ${({theme:e,marginBottom:t})=>t||e.spacing["spacing-l"]};
  ${({margin:e})=>e?`margin: ${e};`:""}
  ${({padding:e})=>e?`padding: ${e};`:""}
  border-radius: 8px;
  flex-direction: column;
  flex: ${({flex:e=0})=>e};
  > :last-child {
    margin-bottom: 0;
  }
  thead {
    tr {
      height: 32px !important;
    }
    th {
      text-transform: none;
    }
  }
  > li {
    > div:first-child {
      background: ${({background:e,theme:{themeName:t}})=>e||l.Ay[t===s.S.DARK?"desktop-color-neutral-01-dark":"desktop-color-neutral-00-light"]};
      height: 48px;
      padding: 0 ${c.Ln};
    }
    > div:nth-child(2) {
      margin-bottom: 0;
      padding: 0 ${c.Ln} ${c.Ln};
      > div {
        padding: 0;
      }
    }
  }
`,u=({type:e,marginBottom:t,margin:n,padding:l,flex:o,width:i,nested:s,...c})=>"items"in c?r.createElement(_,{marginBottom:t,margin:n,padding:l,flex:o,nested:s,...c}):r.createElement(m,{nested:s,width:i,marginBottom:t,margin:n,padding:l,flex:o,isButtonList:e===a.BUTTON_LIST,...c},c.children)},691441:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(296540),r=n(470591);function l(e){const{children:t}=e,{isStandalone:n,footer:[,l]}=(0,a.useContext)(r.A);return(0,a.useLayoutEffect)(()=>{if(!n)return l(t),()=>l(null)},[n,t]),a.createElement(a.Fragment,null,n&&t)}},726317:(e,t,n)=>{n.d(t,{A:()=>m});var a=n(296540),r=n(927099),l=n(454195),o=n(566723),i=n(855019),s=n(143811),c=n(294303),d=n(699784);const m=(0,a.memo)(()=>a.createElement(c.A,{flexDirection:"column"},a.createElement(r.A,{color:"tertiary",size:"caption"},a.createElement(d.sA,{id:"COMMON_IP_CONFIGURATION"})),a.createElement(c.A,{height:l.b,alignItems:"center",gap:o.Ln},a.createElement(s.A,{name:"config_network.type",type:"radio",value:i.NL.DHCP},a.createElement(d.sA,{id:"COMMON_DHCP"})),a.createElement(s.A,{name:"config_network.type",type:"radio",value:i.NL.STATIC},a.createElement(d.sA,{id:"COMMON_STATIC"})))))},834042:(e,t,n)=>{n.d(t,{EJ:()=>c,gy:()=>i,oP:()=>o,pi:()=>l,q8:()=>s,t:()=>r});var a=n(621690);const r=60,l=24,o=({minuteOfDay:e,use24HourFormat:t,formatMessage:n})=>{const a=Math.floor(e/60);return`${String(t?a:a%12||12).padStart(2,"0")}:${String(e%r).padStart(2,"0")}${t?"":` ${n({id:a>=12?"COMMON_PM":"COMMON_AM"})}`}`},i=(e,t,n)=>{const l=Math.max(1,Math.min(60,Math.floor(60/t))),i=Math.floor(60/l);return(0,a.A)(0,24).map(t=>(0,a.A)(l).map(a=>{const l=a*i;return{label:o({use24HourFormat:e,formatMessage:n,minuteOfDay:t*r+l}),value:60*t+ +l}})).flat()},s=e=>6e4*Math.round(e/6e4),c=(e,t)=>{const n=+(e/1e3).toFixed(1),a=+(n/1e3).toFixed(1),r=+(n/6e4).toFixed(1);return n<1e3?`${n} ${t({id:"COMMON_UNIT_MS"})}`:a<60?`${a} ${t({id:"COMMON_UNIT_S"})}`:`${r} ${t({id:"COMMON_UNIT_MIN"})}`}},835908:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(296540),r=n(629318);const l=(0,n(51946).w)(e=>(0,a.createElement)("svg",(0,r.d)({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em"},e),(0,a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.5 2.5a.5.5 0 0 1 1 0v15a.5.5 0 0 1-1 0v-15Zm-4 3a.5.5 0 0 1 1 0v9a.5.5 0 0 1-1 0v-9ZM14 5a.5.5 0 0 0-.5.5v9a.5.5 0 0 0 1 0v-9A.5.5 0 0 0 14 5ZM1.5 7.5a.5.5 0 0 1 1 0v5a.5.5 0 0 1-1 0v-5ZM18 7a.5.5 0 0 0-.5.5v5a.5.5 0 0 0 1 0v-5A.5.5 0 0 0 18 7Z",fill:"currentColor",className:e.baseclassname})))}}]);