"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[71956],{96899:(e,t,n)=>{n.d(t,{A:()=>d,n:()=>E});var a=n(296540),l=n(271856),i=n(277184),r=n(71479);const o=(0,r.A)("div")`
  white-space: nowrap;
`,s=({option:e,children:t})=>e.disabled&&"message"in e?a.createElement(l.A,{description:e.message,portal:!0,position:"left",width:193,isInteractive:e.isInteractive},t):a.createElement(a.Fragment,null,t),E=({option:e,...t})=>a.createElement(s,{option:e},a.createElement(o,null,a.createElement(i.p,{option:e,...t}))),d=s},118835:(e,t,n)=>{var a;n.d(t,{M:()=>a}),function(e){e.MAIN="main",e.DHCP="dhcp",e.HOTSPOT="hotspot"}(a||(a={}))},126067:(e,t,n)=>{n.d(t,{A:()=>s});var a=n(943887),l=n(780811),i=n(170459);const r=({device:e,radio:{radio:t}})=>!(0,a.k_)(e,t),o=({device:e})=>!(0,l.YdF)(e),s={ht:r,channel:r,tx_power_mode:o,tx_power:o,min_rssi_enabled:o,min_rssi:o,hard_noise_floor_enabled:({radio:e})=>(0,i.Wg)(e)}},227902:(e,t,n)=>{n.d(t,{qk:()=>nt,Hm:()=>et,sG:()=>tt,eu:()=>Ue});var a=n(469733),l=n(296540),i=n(951272),r=n(271856),o=n(927099),s=n(758649),E=n(71479),d=n(132196),c=n(943887),m=n(874807),A=n(860631),_=n(452167),u=n(566723),N=n(280062),O=n(376576),C=n(94017),I=n(96899),g=n(294303),p=n(955161),h=n(699784),v=n(564985),D=n(302167),M=n(198494),R=n(780811),T=n(170459),f=n(768195),S=n(971492),b=n(252959),L=n(103595),P=n(430126),w=n(533105),x=n(823858),y=n(6510),H=n(298390),B=n(6176);const F=d.AH`
  justify-content: flex-start !important; // Otherwise button internal styles overwrite the alignment
`,W=({unsupportedDevices:e,onAction:t,captionId:n,actionCaptionId:a="COMMON_DESELECT",children:i})=>{const r=Object.values(e.reduce((e,{device:t})=>(e[t._id]=t,e),{})),E=r.slice(0,H.w),d=r.length-E.length;return l.createElement(g.A,{flexDirection:"column",gap:u.YC},n?l.createElement(o.A,{size:"caption"},i||l.createElement(h.sA,{id:n})):null,E.map(({name:e,model:t,mac:n,_id:a})=>l.createElement(g.A,{key:a,flexDirection:"row",gap:u.YC},l.createElement(B.A,{model:t,width:16}),(0,y.Q)({name:e,model:t,mac:n}))),d>0?l.createElement(h.sA,{id:"COMMON_X_MORE",values:{count:d}}):null,t&&l.createElement(s.A,{variant:"inline",contentClassName:F,onClick:n=>{n.stopPropagation(),t(e)}},l.createElement(h.sA,{id:a})))},V=(0,E.A)(x.A)`
  pointer-events: auto;
  color: #808893;
`,k=e=>l.createElement(r.A,{description:l.createElement(W,{captionId:"COMMON_UNSUPPORTED_DEVICES",...e}),portal:!0,isInteractive:!0},l.createElement(V,{height:20,width:20}));var G=n(126067),$=n(314714),U=n(217439),z=n(162420),Y=n(143811);const j=(0,E.A)(Y.A)`
  margin: 0;
  padding: 0 6px;
`,Z=({label:e,name:t,value:n,options:a,onChange:i})=>l.createElement(g.A,{flexDirection:"column"},l.createElement(g.A,{paddingBottom:1},e),l.createElement(g.A,{width:"100%",gap:u.YC},a.map(e=>l.createElement(r.A,{description:e.disabled&&e?.disabledTooltip?e.disabledTooltip:null,key:e.value,portal:!0},l.createElement(j,{name:t,id:`${t}-${e.value}`,type:"radio",variant:"inputless",checked:e.value===n,disabled:e.disabled,onChange:m.P1,onClick:()=>i(e)},l.createElement(g.A,{alignItems:"center",justifyContent:"center",height:30,paddingBottom:1},l.createElement(h.sA,{id:e.label})))))));var X=n(137625),K=n(821580),Q=n(349107),q=n(765562),J=n(724090);const ee=({name:e,warning:t,tx_power_mode:n,onChange:a,filteredRadioPowerOptions:i})=>l.createElement(Z,{name:e,label:l.createElement(J.A,{name:e,info:n===v.PB.AUTO?l.createElement(r.A,{width:208,description:l.createElement(h.sA,{id:"DEVICE_RADIO_TRANSMIT_POWER_AUTO"}),portal:!0},l.createElement(z.A,{isActive:!0,size:"original"})):null,warning:t},l.createElement(h.sA,{id:"COMMON_TRANSMIT_POWER"})),type:"dropdown",value:n??C.SZ,onChange:a,options:i}),te=({name:e,warning:t,hideCustomPower:n=!1,isAllowedToDisableRadio:a=!0,isRequiredToConfirmAfcTos:r=!1})=>{const{values:o,setFieldValue:s}=(0,i.j7)(),E=(0,i.O6)(o,e),[d,c]=(0,l.useState)(!1),[m,A]=(0,l.useState)(null),[_,N]=(0,l.useState)(!1);(0,l.useEffect)(()=>{A(null)},[E]);const O=(0,l.useMemo)(()=>l.createElement(l.Fragment,null,l.createElement(U.A,{size:"medium",variant:"body-primary"},l.createElement(h.sA,{id:"DEVICE_ENABLE_6GHZ_RADIO_CONFIRM_TEXT_BODY",values:{link:l.createElement(Q.A,{href:q.A.afcArticle,id:"COMMON_LEARN_MORE"}),br:h.br}})),l.createElement(K.A,{paddingTop:u.kc},l.createElement($.A,{id:"tos_agreement",checked:_,onChange:()=>N(!_)},l.createElement(U.A,{size:"medium",variant:"body-primary"},l.createElement(h.sA,{id:"DEVICE_ENABLE_6GHZ_RADIO_CONFIRM_TOS_AGREE",values:{link:l.createElement(Q.A,{href:q.A.termsOfServiceUrl,id:"COMMON_TOS"})}}))))),[_]),C=(0,l.useMemo)(()=>(e=>[{value:v.PB.AUTO,label:"COMMON_VALUE_AUTO"},{value:v.PB.HIGH,label:"COMMON_HIGH"},{value:v.PB.MEDIUM,label:"COMMON_MEDIUM"},{value:v.PB.LOW,label:"COMMON_LOW"},{value:v.PB.CUSTOM,label:"COMMON_CUSTOM"},{value:v.PB.DISABLED,label:"COMMON_DISABLED",disabled:!e,disabledTooltip:e?null:l.createElement(h.sA,{id:"DEVICE_RADIO_TRANSMIT_POWER_DISABLE_NOT_ALLOWED_TOOLTIP"})}])(a),[a]),I=(0,l.useMemo)(()=>n?C.filter(({value:e})=>e!==v.PB.CUSTOM):C,[n,C]),g=(0,l.useCallback)(({value:t})=>{s(e,t)},[s,e]);if(r&&E===v.PB.DISABLED){const n=m??E;return l.createElement(X.A,{title:"DEVICE_ENABLE_6GHZ",body:O,isOpen:d,handleClose:()=>{c(!1),A(null)},showHeaderClose:!0,footerActions:[{text:l.createElement(h.sA,{id:"COMMON_ACTION_ENABLE"}),disabled:!_,variant:"primary",onClick:()=>{s(e,m),s("afc_enabled",!0),c(!1)}}]},l.createElement(ee,{name:e,warning:t,tx_power_mode:n,filteredRadioPowerOptions:I,onChange:e=>{n!==e.value&&(c(!0),A(e.value))}}))}return l.createElement(ee,{name:e,warning:t,tx_power_mode:E,onChange:g,filteredRadioPowerOptions:I})},ne=({name:e,min:t,max:n})=>{const{values:a,setFieldValue:r,errors:o}=(0,i.j7)(),s=(0,i.O6)(a,e);return l.createElement(Y.A,{name:e,value:(0,i.O6)(a,e)??C.SZ,onConfirm:t=>{r(e,t)},min:t,max:n,type:"number",variant:"secondary",full:!0,validated:!0,placeholder:void 0===s?"COMMON_SELECT":void 0,contentAfter:l.createElement(h.sA,{id:"COMMON_UNIT_DBM"}),invalid:(0,i.O6)(o,e),width:u.o0})},ae=({radioType:e,radioIdx:t,deviceRadios:n,warning:a,hasWirelessConnection:r,isAfcSupportedDevice:o,isOutdoorSupportedDevice:s})=>{const{values:E}=(0,i.j7)(),d=E.radios[t],c=d?.tx_power_mode===v.PB.CUSTOM,m=n.filter(e=>G.A.tx_power(e)),A=Math.max(...m.map(({radio:{min_txpower:e}})=>e)),_=Math.min(...m.map(({radio:{max_txpower:e}})=>e)),N=e!==v.sx.RADIO_NA||!r&&e===v.sx.RADIO_NA,O=o&&e===v.sx.RADIO_6E,C=O&&!E?.afc_enabled&&s,I=O&&s||!s&&E?.afc_enabled&&e===v.sx.RADIO_6E;return l.createElement(l.Fragment,null,l.createElement(g.A,{marginBottom:u.Ln},l.createElement(g.A,{width:"100%"},l.createElement(te,{name:`radios.${t}.tx_power_mode`,warning:a,hideCustomPower:I,isAllowedToDisableRadio:N,isRequiredToConfirmAfcTos:C}))),c&&l.createElement(g.A,{marginBottom:u.Ln},l.createElement(g.A,{width:u.o0},l.createElement(ne,{name:`radios.${t}.tx_power`,min:A,max:_,radioType:e}))))};var le=n(661010);const ie=(0,E.A)(o.A)`
  flex: 1;
  margin-right: ${u.xO};
`,re=(0,E.A)("div",{shouldForwardProp:e=>!["marginBottom","marginTop"].includes(e)})`
  margin-bottom: ${({marginBottom:e})=>e||0};
  margin-top: ${({marginTop:e})=>e||0};

  & > :last-child {
    margin-bottom: 0;
  }
`,oe=e=>l.createElement(o.A,{color:"secondary"},"-",e),se=({radioIdx:e,warning:t})=>{const{values:n,setFieldValue:a}=(0,i.j7)(),r=n.radios[e],o=`radios.${e}.min_rssi_enabled`;return l.createElement(l.Fragment,null,l.createElement(g.A,{marginBottom:u.Ln,justifyContent:"space-between",alignItems:"center"},l.createElement(Y.A,{name:o,type:"realCheckbox",checked:r.min_rssi_enabled??C.SZ},l.createElement(g.A,{flexDirection:"row",alignItems:"center",gap:u.YC},l.createElement(h.sA,{id:"COMMON_MINIMUM_RSSI"}),l.createElement(J.A,{name:o,infoId:"DEVICE_PROPERTIES_LABEL_ENABLE_MIN_RSSI_DESC",warning:t})))),r.min_rssi_enabled&&l.createElement(re,{marginBottom:u.Ln},l.createElement(ie,{size:"caption",color:"tertiary"},l.createElement(h.sA,{id:"DEVICE_PROPERTIES_LABEL_MIN_RSSI"})),l.createElement(Y.A,{type:"slider",name:`radios.${e}.min_rssi`,min:-le.XN.MIN,max:-le.XN.MAX,segments:1,value:-(r.min_rssi??le.XN.MIN),withValueIndicator:void 0!==r.min_rssi,valueIndicatorPosition:"right",formatValueIndicatorContent:oe,onChange:({target:{value:t}})=>{a(`radios.${e}.min_rssi`,-t)}})))};var Ee=n(802),de=n(86838),ce=n(79760),me=n(766624),Ae=n(889740),_e=n(875528);const ue=({radioIdx:e})=>{const{values:t,setFieldValue:n,errors:a,touched:r,submitCount:s}=(0,i.j7)(),E=t.radios[e],d=`radios.${e}.assisted_roaming_enabled`,c=`radios.${e}.assisted_roaming_rssi`,m=(0,l.useCallback)(()=>{n(d,!E.assisted_roaming_enabled)},[d,E.assisted_roaming_enabled,n]),A=(0,ce.t$)(c,a,r,s);return l.createElement(l.Fragment,null,l.createElement(g.A,{marginBottom:u.Ln},l.createElement(g.A,{width:"100%"},l.createElement(Y.A,{label:"COMMON_ROAMING_ASSISTANT",type:"realCheckbox",name:d,checked:E.assisted_roaming_enabled,onChange:m},l.createElement(g.A,{flexDirection:"row",alignItems:"center",gap:u.YC},l.createElement(h.sA,{id:"COMMON_ROAMING_ASSISTANT"}),l.createElement(J.A,{name:d,info:l.createElement(me.A,{description:l.createElement(h.sA,{id:"COMMON_ROAMING_ASSISTANT_TOOLTIP"}),portal:!0,isInteractive:!0,iconProps:{isActive:!0,size:"original"}})}),l.createElement(Ae.A,null))))),E.assisted_roaming_enabled?l.createElement(g.A,{marginBottom:u.Ln,gap:u.kc},l.createElement(g.A,null,l.createElement(o.A,{size:"body",color:"tertiary"},l.createElement(h.sA,{id:"COMMON_ROAMING_ASSISTANT_THRESHOLD",values:{unit:l.createElement(h.sA,{id:"COMMON_UNIT_DBM"})}}))),l.createElement(g.A,{flexDirection:"column"},l.createElement(g.A,{flexDirection:"row"},l.createElement(g.A,null,l.createElement(Ee.A,{min:le.Wh.MIN,max:le.Wh.MAX,step:1,value:E.assisted_roaming_rssi||0,onChange:({target:{value:e}})=>{n(c,+e)}})),l.createElement(_e.A,{width:u.OF},l.createElement(Y.A,{name:c,value:(0,i.O6)(t,c),min:le.Wh.MIN,max:le.Wh.MAX,type:"number",variant:"secondary",full:!0}))),A?l.createElement(g.A,{flexDirection:"row",margin:"0 6px"},l.createElement(de.A,{isInvalid:!0,label:A})):null)):null)},Ne=({radioIdx:e,deviceRadios:t,warning:n,onRemoveDeviceRadio:a})=>{const r=(0,l.useMemo)(()=>t.filter(({radio:e})=>!(0,T.Wg)(e)),[t]),o=r.length?l.createElement(k,{unsupportedDevices:r,onAction:a}):null,s=`radios.${e}.hard_noise_floor_enabled`,{values:E}=(0,i.j7)(),d=E.radios[e];return t.length>r.length?l.createElement(g.A,{marginBottom:u.Ln,justifyContent:"space-between",alignItems:"center"},l.createElement(Y.A,{label:"COMMON_INTERFERENCE_BLOCKER",name:s,type:"realCheckbox",checked:d.hard_noise_floor_enabled??C.SZ},l.createElement(g.A,{flexDirection:"row",alignItems:"center",gap:u.YC},l.createElement(h.sA,{id:"COMMON_INTERFERENCE_BLOCKER"}),l.createElement(J.A,{name:s,warning:o??n})))):null};var Oe=n(515289);const Ce=(0,E.A)(Oe.A)`
  padding: ${u.YC};
`,Ie=(0,E.A)("div")`
  margin-right: ${u.YC};
`,ge=e=>({className:t})=>l.createElement(Ie,{className:t},l.createElement(B.A,{model:e.model,width:20,height:20,className:t})),pe=({deviceRadios:e,onRemoveDeviceRadio:t})=>{const n=e.slice(0,2),a=e.slice(2);return l.createElement(g.A,{marginBottom:u.Ln,gap:u.kc},n.map(e=>l.createElement(Ce,{key:`${e.device._id}-${e.radio.name}`,symbol:ge(e.device),label:(0,y.Q)(e.device),onClose:()=>{t([e])}})),a.length>0?l.createElement(g.A,{padding:u.YC,flex:"0 0 auto"},l.createElement(r.A,{portal:!0,isInteractive:!0,description:l.createElement(W,{unsupportedDevices:a,actionCaptionId:"COMMON_DESELECT",onAction:()=>t(a)})},l.createElement(o.A,{size:"body"},"+",l.createElement(h.sA,{id:"DEVICE_PLUS_N_SELECTED",values:{n:a.length}})))):null)};var he=n(817626),ve=n(943805),De=n(614164),Me=n(532419);const Re=d.AH`
  display: inline-block;
`,Te=({name:e,options:t,warning:n,...a})=>{const{values:r,errors:o}=(0,i.j7)(),s=a.value||(0,i.O6)(r,e);return l.createElement(g.A,{flexDirection:"column",width:"100%"},l.createElement(Y.A,{label:l.createElement(J.A,{name:e,infoId:a.disabled||s!==C.YQ?void 0:"DEVICE_RADIO_CHANNEL_AUTO",warning:n},l.createElement(h.sA,{id:"COMMON_CHANNEL"})),name:e,type:"dropdown",variant:"secondary",options:t,translateLabel:!0,validated:!0,invalid:(0,i.O6)(o,e),value:s??C.SZ,full:!0,portal:!0,...a}))},fe=e=>{const{setFieldValue:t}=(0,i.j7)(),{name:n}=e;return l.createElement(Te,{...e,onChange:(e,a)=>{t(n,a)}})};var Se;!function(e){e[e.NONE=0]="NONE",e[e.DFS=1]="DFS",e[e.MESHING=2]="MESHING"}(Se||(Se={}));const be=e=>{const[t,n]=(0,l.useState)(null),[a,r]=(0,l.useState)(Se.NONE),{setFieldValue:o}=(0,i.j7)(),{name:s,radioIdx:E,showMeshingParentWarning:d,showZeroWaitDfsWarning:c,onMeshingRadioChange:m,show6GhzNotAgreedTosWarning:A,..._}=e,u={[Se.NONE]:{title:""},[Se.DFS]:{title:"SET_DFS_CHANNEL_CONFIRM_TITLE",message:c?"SET_DFS_CHANNEL_CONFIRM_ON_ZERO_WAIT_DFS_DEVICE_DESCRIPTION":"SET_DFS_CHANNEL_CONFIRM_DESCRIPTION",messageValues:{link:l.createElement("a",{href:q.A.optimizingWirelessConnectivity,target:"_blank",rel:"noopener noreferrer"},l.createElement(h.sA,{id:"COMMON_DFS_CHANNELS"})),appendix:d?l.createElement(h.sA,{id:"AP_RADIO_CHANNEL_CHANGE_MESHING_WARNING_DESCRIPTION",values:{appendix:""}}):""}},[Se.MESHING]:{title:"AP_RADIO_CHANNEL_CHANGE_WARNING_TITLE",message:"AP_RADIO_CHANNEL_CHANGE_MESHING_WARNING_DESCRIPTION",messageValues:{appendix:l.createElement(h.sA,{id:"DEVICE_CONFIRM_TO_CONTINUE"})}}}[a];return l.createElement(X.A,{titleValues:{channel:t?.value},...u,buttonMessage:"COMMON_ACTION_PROCEED",isOpen:!!t,handleClose:()=>n(null),handleConfirm:()=>{o(s,t?.value)},contentClassName:Re,showHeaderClose:!0},l.createElement(Te,{..._,name:s,onChange:(e,t)=>{e.isDfs?(r(Se.DFS),n(e)):d?(r(Se.MESHING),n(e)):(r(Se.NONE),o(s,t),n(null))}}))},Le=e=>{const[t,n]=(0,l.useState)(null),[a,r]=(0,l.useState)(!1),{setFieldValue:o}=(0,i.j7)(),{name:s,radioIdx:E,showMeshingParentWarning:d,showZeroWaitDfsWarning:c,onMeshingRadioChange:m,show6GhzNotAgreedTosWarning:A,..._}=e;return l.createElement(X.A,{title:"DEVICE_ENABLE_6GHZ",body:l.createElement(l.Fragment,null,l.createElement(U.A,{size:"medium",variant:"body-primary"},l.createElement(h.sA,{id:"DEVICE_ENABLE_6GHZ_RADIO_CONFIRM_TEXT_BODY",values:{link:l.createElement(Q.A,{href:q.A.afcArticle,id:"COMMON_LEARN_MORE"}),br:h.br}})),l.createElement(K.A,{paddingTop:u.kc},l.createElement($.A,{id:"tos_agreement",checked:a,onChange:()=>r(!a)},l.createElement(U.A,{size:"medium",variant:"body-primary"},l.createElement(h.sA,{id:"DEVICE_ENABLE_6GHZ_RADIO_CONFIRM_TOS_AGREE",values:{link:l.createElement(Q.A,{href:q.A.termsOfServiceUrl,id:"COMMON_TOS"})}}))))),footerActions:[{text:l.createElement(h.sA,{id:"COMMON_ACTION_ENABLE"}),disabled:!a,variant:"primary",onClick:()=>{o(s,t?.value),o("afc_enabled",!0),o(`radios.${E}.tx_power_mode`,v.PB.AUTO),n(null)}}],isOpen:!!t,handleClose:()=>n(null),contentClassName:Re,showHeaderClose:!0},l.createElement(Te,{..._,name:s,onChange:e=>{n(e)}}))},Pe=e=>{const[t,n]=(0,l.useState)(null),{setFieldValue:a}=(0,i.j7)(),{name:r}=e;return l.createElement(X.A,{title:"AP_RADIO_CHANNEL_CHANGE_WARNING_TITLE",titleValues:{channel:t?.value},message:"AP_RADIO_CHANNEL_CHANGE_WARNING_DESCRIPTION",messageValues:{link:l.createElement("a",{href:q.A.optimizingWirelessConnectivity,target:"_blank",rel:"noopener noreferrer"},l.createElement(h.sA,{id:"AP_RADIO_MAXIMIZE_CON_AND_PERF"}))},handleClose:()=>n(null),handleConfirm:()=>{a(r,t?.value)},buttonMessage:"COMMON_ACTION_PROCEED",showHeaderClose:!0,isOpen:!!t,contentClassName:Re},l.createElement(Te,{...e,onChange:(e,t)=>{[1,6,11,C.YQ].includes(e.value)?(a(r,t),n(null)):n(e)}}))},we=({name:e,onMeshingRadioChange:t,...n})=>{const{formatMessage:a}=(0,h.tz)(),[r,o]=(0,l.useState)(null),{setFieldValue:s}=(0,i.j7)();return l.createElement(X.A,{title:"AP_CHANNEL_WIDTH_CHANGE_WARNING_TITLE",titleValues:{field:a({id:"COMMON_CHANNEL"}).toLowerCase(),value:r},message:"AP_RADIO_CHANNEL_CHANGE_MESHING_WARNING_DESCRIPTION",messageValues:{appendix:l.createElement(h.sA,{id:"DEVICE_CONFIRM_TO_CONTINUE"})},buttonMessage:"COMMON_ACTION_PROCEED",isOpen:null!==r,handleClose:()=>o(null),handleConfirm:()=>{s(e,r),t?.({[e]:r})},showHeaderClose:!0},l.createElement(Te,{name:e,...n,onChange:e=>{o(e.value)}}))},xe=({radioType:e,ignoreWarnings:t,showMeshingParentWarning:n,showZeroWaitDfsWarning:a,show6GhzNotAgreedTosWarning:i,...r})=>{if(!t){if(r.options.some(({isDfs:e})=>e))return l.createElement(be,{showMeshingParentWarning:n,showZeroWaitDfsWarning:a,...r});if(n)return l.createElement(we,{...r});if(e===ve.A.NG.type)return l.createElement(Pe,{...r});if(i&&e===v.sx.RADIO_6E)return l.createElement(Le,{show6GhzNotAgreedTosWarning:i,...r})}return l.createElement(fe,{...r})},ye=({device:e,...t})=>{const n=(0,a.useSelector)(Me.ID),i=(0,De.T)(e,n);return l.createElement(xe,{...t,value:i?.radio?.channel||t.value})},He=({meshingDevice:e,...t})=>e?l.createElement(ye,{device:e,...t}):l.createElement(xe,{...t});var Be=n(329681);function Fe(e,t,n){return Object.values(e.reduce((e,n)=>{const{device:a}=n;return t(n).forEach(t=>{const n=t.value,l=e[n];e[n]=l?{...l,supported:[...l.supported||[],a]}:{...t,supported:[a]}}),e},{})).map(t=>{if(!t.supported||t.supported.length===e.length)return t;let a=e;return t.supported?.length>0&&(a=a.filter(({device:e})=>!t.supported?.find(t=>e.mac===t.mac))),a.length?{...t,disabled:!0,message:l.createElement(W,{unsupportedDevices:a,captionId:"COMMON_UNSUPPORTED_DEVICES",onAction:n}),isInteractive:!0}:t})}const We=({device:e})=>(0,A.lr)(e)?l.createElement(g.A,{marginBottom:u.Ln,justifyContent:"space-between",alignItems:"center"},l.createElement(Y.A,{label:"DEVICE_PROPERTIES_LABEL_AIRTIME_FAIRNESS",name:"atf_enabled",type:"realCheckbox",disabled:(0,R.KKO)(e.model,"atfDisabled")},l.createElement(h.sA,{id:"DEVICE_PROPERTIES_LABEL_AIRTIME_FAIRNESS"}))):null;var Ve=n(259836),ke=n(231755),Ge=n(433068);const $e=({deviceRadios:e,defaultExpanded:t=!1})=>{const[n,a]=(0,l.useState)(t),[i,r]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{i||a(t)},[t]),l.createElement(Ve.A,{label:l.createElement(h.sA,{id:"DEVICE_KEY_METRICS"}),hasDivider:!1,isExpanded:n,onExpandedChange:()=>{r(!0),a(!n)}},l.createElement(g.A,{flexDirection:"column",gap:u.Ln,marginTop:u.Ln},e.filter(e=>e.device&&e.radio).map((e,t,n)=>l.createElement(l.Fragment,null,l.createElement(Ge.A,{key:`${e.device._id}-${e.radio.name}`,radioTableEntry:e.radio,device:e.device,showDeviceHeader:!0}),t!==n.length-1?l.createElement(ke.A,null):null))))},Ue=["antenna_gain","antenna_id","atf_enabled","afc_enabled"],ze="auto",Ye=(0,E.A)(s.A)`
  background: ${({theme:{motifPalette:{neutral01:e}}})=>e};
`,je=(0,E.A)("div",{shouldForwardProp:e=>!["marginBottom","marginTop"].includes(e)})`
  margin-bottom: ${({marginBottom:e})=>e||0}px;
  margin-top: ${({marginTop:e})=>e||0}px;

  & > :last-child {
    margin-bottom: 0;
  }
`,Ze=d.AH`
  width: 100%;
`,Xe=(0,E.A)("div")`
  pointer-events: none;
`,Ke=l.createElement(l.Fragment,null,"(",l.createElement(h.sA,{id:"COMMON_RADIO_BAND_LOW_BAND"}),")"),Qe=l.createElement(l.Fragment,null,"(",l.createElement(h.sA,{id:"COMMON_RADIO_BAND_HIGH_BAND"}),")"),qe=(0,E.A)(g.A)`
  div[class*='tooltip-container'] {
    width: 100%;
  }
`,Je=({Wrapper:e,children:t,showWarning:n,warning:a,...i})=>{return l.createElement(e,{...i},l.createElement(p.A,{condition:n,wrapper:(s=a,e=>l.createElement(r.A,{position:"top",width:200,portal:!0,description:l.createElement(o.A,{size:"caption",color:"inherit"},l.createElement(h.sA,{id:s})),className:Ze},l.createElement(Xe,null,e)))},t));var s};var et;!function(e){e[e.DEVICE_AND_RADIO=0]="DEVICE_AND_RADIO",e[e.ONLY_RADIO=1]="ONLY_RADIO"}(et||(et={}));const tt=({radioType:e,deviceRadios:t,radioIdx:n,isLastNa:r,radio6gCount:s,hideTitle:E,showDeviceList:d,onRemoveDeviceRadio:p=m.P1,onSelectMeshingParents:x,mode:y,ignoreMeshingWarnings:H,showZeroWaitDfsWarning:B,showKeyRadioMetrics:F,defaultKeyRadioMetricsExpanded:W})=>{const{formatMessage:V}=(0,h.tz)(),{values:G,setFieldValue:$}=(0,i.j7)(),U=(0,a.useSelector)(b.H),{outdoor_mode_enabled:z}=(0,a.useSelector)(D.$5),Y=(0,a.useSelector)(D.ZZ),j=(0,a.useSelector)(M.EH),Z=(0,a.useDispatch)();(0,l.useEffect)(()=>{Z((0,L.v)())},[Z]);const X=t.length>1,K=G.radios[n],Q=t.filter(({device:e})=>(0,R.YdF)(e)||(0,R.CB0)(e)),q=t.filter(({device:e})=>(0,R.KKO)(e.model,"outdoorModeSupport")),J=t.filter(({device:e})=>(0,A.X5)(e,Y)).length===t.length,ee=t.filter(({device:e})=>(0,A.CW)(e,S.A.ROAMING_ASSISTANT)).length===t.length,te=0===q.length,ne=Q.length>0,le=Q.length===t.length,ie=t.every(({device:e})=>(0,R.CB0)(e)),re=Q.length?l.createElement(k,{unsupportedDevices:Q,onAction:p}):null,oe=G?.outdoor_mode_override&&G.outdoor_mode_override===f.Gi.ON,Ee=ne&&!ie,de=(0,l.useMemo)(()=>Fe(t,({device:e,radio:t})=>(0,T.Gi)(e,t,U,oe,V),p),[U,t,V,p,oe]),ce=t.every(({device:t})=>(0,P.k)(t,e)),me=(0,l.useMemo)(()=>e===_.A&&!ne&&t.some(({device:t})=>t?.downlink_table?.some(t=>t.radio===e)),[t,ne,e]),Ae=t.filter(({device:e,radio:t})=>(0,c.k_)(e,t.radio)),_e=Ae.length===t.length,Oe=Ae.length>0&&!_e,Ce=Oe?l.createElement(k,{unsupportedDevices:Ae,actionCaptionId:"DEVICE_SELECT_UPLINK_RADIO",onAction:x},l.createElement(h.sA,{id:"DEVICE_MESHED_CHILDREN_WARNING"})):null,Ie=de.reduce((e,{value:n})=>{const a=Fe(t,({device:e,radio:t})=>(0,c.r1)({countryChannels:U,formatMessage:V,deviceData:{model:e.model,radio_table:e.radio_table,type:e.type,outdoor_mode_override:oe?f.Gi.ON:f.Gi.OFF,supported_afc_regions:e.supported_afc_regions},radioData:{radio:t.radio,name:t.name,ht:n},options:{isOutdoorModeEnabled:z,isProfessionalInstaller:j}}),p);return{...e,[n]:a.sort((e,t)=>e.value-t.value)}},{}),ge=t.filter(({device:e})=>(0,R.SDT)({model:e.model})).length===t.length,ve=t.filter(({device:e})=>(0,R.aFj)({model:e.model})).length===t.length,De=(0,l.useMemo)(()=>ge&&e===v.sx.RADIO_6E&&s&&s>1&&1===n?Ke:ge&&e===v.sx.RADIO_6E&&s&&s>1&&2===n?Qe:ve&&e===v.sx.RADIO_NA&&1===n?Ke:ve&&e===v.sx.RADIO_NA&&2===n?Qe:void 0,[ge,ve,e,s,n]),Me=(0,l.useCallback)((e,t)=>void 0===K?.channel||t===ze||(Ie?.[e]||[]).some(({value:e})=>e===t),[K?.channel,Ie]),Re=(e,t)=>t===ze||(Ie?.[e]||[]).some(({value:e})=>e===t),Te=[{value:ze,label:V({id:"COMMON_VALUE_AUTO"})},...Object.values(Ie).flat().filter((e,t,n)=>t===n.findIndex(t=>t.value===e.value))],fe=Te.map(t=>{return{...t,...K?.ht&&(n=K.ht,a=t.value,i=t.label,a!==ze&&e===v.sx.RADIO_NA&&C.mO.includes(n)&&!i.includes(V({id:"COMMON_DEVICE_RADIO_CHANNEL_DFS"})))?{label:`${t.label} (${V({id:"COMMON_DEVICE_RADIO_CHANNEL_DFS"})})`,isDfs:!0}:{},...!K?.ht||Re(K?.ht,t.value)?{}:{disabled:!0,message:l.createElement(h.sA,{id:"DEVICE_RADIO_CHANNEL_NOT_SUPPORTED",values:{width:K?.ht}})}};var n,a,i}),Se=_e&&!H,be=(0,i.O6)(G,`radios.${n}.channel`),Le=Te.find(({value:e})=>e===be)?.isDfs,Pe=(0,l.useCallback)(e=>{if(Se)return;Me(e.value,be)||$(`radios.${n}.channel`,void 0)},[Se,Me,be,$,n]);return K&&t.length?0===de.length?l.createElement(w.A,{radioType:e,radioSuffix:De}):l.createElement(je,null,E?null:l.createElement(o.A,{size:"body",style:{marginBottom:u.kc}},l.createElement(N.A,{radio:e,suffix:De})),d?l.createElement(pe,{deviceRadios:t,onRemoveDeviceRadio:p}):null,ce?null:l.createElement(g.A,{marginBottom:u.Ln,gap:u.Ln},l.createElement(Je,{Wrapper:g.A,showWarning:Se,warning:"DEVICE_MESHED_RADIO_CHANNEL_WIDTH_DISABLED_TOOLTIP",flex:1},l.createElement(he.A,{name:`radios.${n}.ht`,radioType:e,options:de.map(t=>{return{...t,...Me(t.value,K?.channel)?{}:{disabled:!0,message:l.createElement(h.sA,{id:"DEVICE_RADIO_CHANNEL_WIDTH_NOT_SUPPORTED",values:{channel:K?.channel}})},disabled:(n=t.value,e===v.sx.RADIO_6E&&void 0!==n&&0===Ie?.[n]?.length)};var n}),disabled:Se,showMeshingParentWarning:me,meshingDevice:1===Ae.length?Ae[0]?.device:void 0,warning:Oe?Ce:null,onDfs:Le,onChangeCallback:Pe})),l.createElement(Je,{Wrapper:qe,showWarning:Se,warning:"DEVICE_MESHED_RADIO_CHANNEL_DISABLED_TOOLTIP",width:116},l.createElement(He,{name:`radios.${n}.channel`,options:Se?Te:fe,radioType:e,radioIdx:n,renderOption:I.n,disabled:Se,ignoreWarnings:Ee,showMeshingParentWarning:me,meshingDevice:1===Ae.length?Ae[0]?.device:void 0,showZeroWaitDfsWarning:B,warning:Oe?Ce:null,show6GhzNotAgreedTosWarning:J&&!G?.afc_enabled&&K?.tx_power_mode===v.PB.DISABLED&&!te}))),_e&&x?l.createElement(g.A,{marginBottom:u.Ln,gap:u.kc,flexDirection:"column"},l.createElement(o.A,{size:"caption",color:"tertiary"},l.createElement(h.sA,{id:"DEVICE_MESHED_CHANNEL_HT_CONTROLLED"})),l.createElement(Ye,{variant:"tertiary",full:!0,onClick:x},l.createElement(o.A,{color:"info",size:"inherit"},l.createElement(h.sA,{id:y===et.ONLY_RADIO?"DEVICE_MESHING_SELECT_UPLINK":"DEVICE_MESHING_EDIT_UPLINK"})))):null,le?null:l.createElement(ae,{radioType:e,radioIdx:n,deviceRadios:t,warning:ne&&re,hasWirelessConnection:_e||Oe||me,isAfcSupportedDevice:J,isOutdoorSupportedDevice:!te}),e===v.sx.RADIO_NA&&ee?l.createElement(ue,{radioIdx:n}):null,y!==et.DEVICE_AND_RADIO||ne?null:l.createElement(Be.A,{radioIdx:n,deviceRadio:t[0]}),!X&&e===v.sx.RADIO_6E&&J&&1===s&&te?l.createElement(O.A,null):null,le?null:l.createElement(se,{radioIdx:n,warning:ne&&re}),!le&&K.min_rssi_enabled?l.createElement(Ne,{radioIdx:n,deviceRadios:t,onRemoveDeviceRadio:p}):null,!X&&r?l.createElement(We,{device:t[0].device}):null,F?l.createElement($e,{deviceRadios:t,defaultExpanded:W}):null):null},nt=({device:e,radio:t,...n})=>{const{values:{radios:a}}=(0,i.j7)(),r=a.findIndex(e=>e.type===t.radio&&e.name===t.name);return a[r]?l.createElement(tt,{radioType:t.radio,deviceRadios:[{device:e,radio:t}],radioIdx:r,showZeroWaitDfsWarning:(0,A.CW)(e,S.A.DFS_BACKGROUND_SCAN),...n}):null}},298390:(e,t,n)=>{n.d(t,{w:()=>a});const a=12},329681:(e,t,n)=>{n.d(t,{A:()=>h,C:()=>p});var a=n(469733),l=n(296540),i=n(951272),r=n(271856),o=n(162420),s=n(71479),E=n(928085),d=n(566723),c=n(563485),m=n(143811),A=n(196010),_=n(294303),u=n(699784),N=n(198494),O=n(780811),C=n(170459),I=n(959341),g=n(94017);const p=(0,s.A)(_.A)`
  > div {
    display: flex;
    align-items: center;
  }
`,h=({radioIdx:e,deviceRadio:{device:t,radio:n}})=>{const{formatMessage:s}=(0,u.tz)(),h=(0,E.A)(I.WT),v=(0,a.useSelector)(N.EH),{values:D,setFieldValue:M,errors:R}=(0,i.j7)(),T=(0,C.A4)(t,v),f=(0,C.Ox)(t,n.name,T,s);return l.createElement(l.Fragment,null,t.multi_active_antennas&&!(0,O.ERA)(t)&&f.length>1?l.createElement(c.A,{name:`radios.${e}.antenna_id`,configuredAntennaId:(0,i.O6)(D,`radios.${e}.antenna_id`),radio:n,device:t,onChangeRadioAntenna:t=>{M(`radios.${e}.antenna_id`,t)}}):null,(!t.multi_active_antennas||(0,O.ERA)(t))&&f.length>1?l.createElement(_.A,{marginBottom:d.Ln},l.createElement(m.A,{label:T&&(0,C.p$)(t.model)?"DEVICE_PROPERTIES_LABEL_ANTENNA_GAIN":l.createElement("label",{htmlFor:`radios.${e}.antenna_gain`},l.createElement(p,{gap:d.YC,alignItems:"center"},l.createElement(u.sA,{id:"DEVICE_PROPERTIES_LABEL_ANTENNA_GAIN"}),l.createElement(r.A,{description:l.createElement(u.sA,{id:"DEVICE_PROPERTIES_LABEL_ANTENNA_GAIN_DESC",values:{link:l.createElement(A.A,{to:h},l.createElement(u.sA,{id:"DEVICE_PROPERTIES_LABEL_ANTENNA_GAIN_DESC_LINK"}))}}),isInteractive:!0,portal:!0},l.createElement(o.A,{isActive:!0,size:"original"})))),name:`radios.${e}.antenna_gain`,value:D.radios[e].antenna_gain,min:g.x8,max:g.Pe,type:"number",variant:"secondary",full:!0,disabled:!(0,C.kb)(t,D.radios[e].antenna_id),invalid:(0,i.O6)(R,`radios.${e}.antenna_gain`)})):null)}},376576:(e,t,n)=>{n.d(t,{A:()=>C});var a=n(296540),l=n(951272),i=n(271856),r=n(314714),o=n(217439),s=n(162420),E=n(566723),d=n(724090),c=n(137625),m=n(143811),A=n(349107),_=n(294303),u=n(699784),N=n(765562);const O="afc_enabled",C=({isOutdoor:e=!1})=>{const{values:t,setFieldValue:n}=(0,l.j7)(),[C,I]=(0,a.useState)(!1),[g,p]=(0,a.useState)(!1),h=(0,a.useCallback)(()=>{t.afc_enabled?n("afc_enabled",!t.afc_enabled):I(!0)},[t?.afc_enabled,n]),v=(0,a.useMemo)(()=>a.createElement(i.A,{description:a.createElement(u.sA,{id:e?"COMMON_AFC_TOOLTIP_OUTDOOR":"COMMON_AFC_TOOLTIP_INDOOR",values:{link:a.createElement(A.A,{href:N.A.afcArticle,id:"COMMON_LEARN_MORE"})}}),portal:!0,isInteractive:!0},a.createElement(s.A,{isActive:!0,size:"original"})),[e]),D=(0,a.useMemo)(()=>a.createElement(_.A,{flexDirection:"column"},a.createElement(_.A,{flexDirection:"row"},a.createElement(o.A,{size:"medium",variant:"body-primary"},a.createElement(u.sA,{id:e?"DEVICE_ENABLE_AFC_OUTDOOR_CONFIRM_TEXT":"DEVICE_ENABLE_AFC_INDOOR_CONFIRM_TEXT",values:e?{}:{link:a.createElement(A.A,{href:N.A.afcArticle,id:"COMMON_LEARN_MORE"})}}))),a.createElement(_.A,{flexDirection:"row",marginTop:E.kc},a.createElement(r.A,{id:"tos_agreement",checked:g,onClick:()=>p(e=>!e)},a.createElement(o.A,{size:"medium",variant:"body-primary"},a.createElement(u.sA,{id:e?"DEVICE_ENABLE_6GHZ_TOS_AGREE":"DEVICE_ENABLE_EXTEND_6GHZ_RANGE_TOS_AGREE",values:{link:a.createElement(A.A,{noWrap:!0,href:N.A.termsOfServiceUrl,id:"COMMON_TOS"})}}))))),[g,e]);return a.createElement(_.A,{marginBottom:E.Ln,justifyContent:"space-between",alignItems:"center"},a.createElement(c.A,{title:e?"DEVICE_ENABLE_6GHZ":"DEVICE_ENABLE_AFC_CONFIRM_HEADER",body:D,handleClose:I,handleConfirm:()=>n("afc_enabled",!0),buttonMessage:"COMMON_ACTION_ENABLE",buttonDisabled:!g,isOpen:C},a.createElement(m.A,{label:"COMMON_AFC",type:"realCheckbox",name:O,checked:!!t?.[O],onChange:h},a.createElement(_.A,{flexDirection:"row",alignItems:"center",gap:E.YC},a.createElement(u.sA,{id:"COMMON_AFC"}),a.createElement(d.A,{name:O,info:v})))))}},430126:(e,t,n)=>{n.d(t,{W:()=>o,k:()=>r});var a=n(860631),l=n(222404),i=n(171073);const r=(e,t)=>{if(!t)return(0,a.mT)(e,l.A.HIDE_CH_WIDTH);const n=e?.hide_ch_width;return!!n&&("all"===n||n===t)},o=(e,t,n,a)=>{if(!(e.uplinkPriority1!==t.uplinkPriority1||e.uplinkPriority2!==t.uplinkPriority2))return;const l=!(!e.uplinkPriority1&&!e.uplinkPriority2);e.meshingEnabled&&l?a((0,i.A0)(n,e.uplinkPriority1,e.uplinkPriority2)):a((0,i.Bh)(n))}},533105:(e,t,n)=>{n.d(t,{A:()=>h});var a=n(469733),l=n(296540),i=n(271856),r=n(927099),o=n(162420),s=n(566723),E=n(888170),d=n(469628),c=n(491877),m=n(835908),A=n(71479);(0,A.A)(m.A)`
  color: ${({theme:{motifPalette:{aqua08:e}}})=>e};
`,(0,A.A)(c.A)`
  color: ${({theme:{motifPalette:{aqua07:e}}})=>e};
`;const _=(0,A.A)(d.A)`
  color: ${E.Ay["purple-1"]};
`;var u=n(349107),N=n(294303),O=n(699784),C=n(564985),I=n(302167),g=n(765562);const p={[C.sx.RADIO_NA]:{message:"DEVICE_PROPERTIES_SECTION_CONFIGURE_RADIOS_SUBSECTION_NA"},[C.sx.RADIO_6E]:{message:"DEVICE_PROPERTIES_SECTION_CONFIGURE_RADIOS_SUBSECTION_6E",tooltip:"DEVICE_PROPERTIES_SECTION_CONFIGURE_RADIOS_SUBSECTION_6E_TOOLTIP",link:g.A.wifi6GHzRegions}},h=({radioType:e,radioSuffix:t})=>{const n=(0,a.useSelector)(I._B),{message:E,tooltip:d,link:c}=p[e]||{};return l.createElement(N.A,{justifyContent:"space-between"},l.createElement(N.A,{gap:s.YC,opacity:.5},l.createElement(_,{height:"20",width:"20"}),l.createElement(r.A,{weight:"bold",size:"caption"},l.createElement(O.sA,{id:E,values:{suffix:t?l.createElement(l.Fragment,null," ",t):""}}))),l.createElement(N.A,{gap:s.YC},l.createElement(r.A,{size:"caption"},l.createElement(O.sA,{id:"COMMON_PROHIBITED_IN_COUNTRY",values:{country:n}})),d?l.createElement(i.A,{portal:!0,isInteractive:!0,description:l.createElement(r.A,null,l.createElement(O.sA,{id:d})," ",c?l.createElement(u.A,{href:c,id:"COMMON_LEARN_MORE",noWrap:!0}):null)},l.createElement(o.A,{isActive:!0,size:"original"})):null))}},563485:(e,t,n)=>{n.d(t,{A:()=>g});var a=n(469733),l=n(296540),i=n(928085),r=n(566723),o=n(766624),s=n(329681),E=n(71479),d=n(137625),c=n(294303);const m=(0,E.A)(c.A)`
  div[class*='tooltip-container'] {
    width: 100%;
  }
`,A=({children:e,isOpen:t,handleClose:n,handleConfirm:a})=>l.createElement(m,{marginBottom:r.Ln},l.createElement(d.A,{title:"ANTENNA_TYPE_CHANGE_WARNING_TITLE",message:"ANTENNA_TYPE_CHANGE_WARNING_DESCRIPTION",buttonMessage:"COMMON_ACTION_PROCEED",isOpen:t,handleClose:n,handleConfirm:a,showHeaderClose:!0},e));var _=n(143811),u=n(196010),N=n(699784),O=n(198494),C=n(170459),I=n(959341);const g=({name:e,device:t,onChangeRadioAntenna:n,configuredAntennaId:E,radio:d})=>{const{formatMessage:c}=(0,N.tz)(),m=(0,i.A)(I.WT),g=(0,a.useSelector)(O.EH),p=(0,C.A4)(t,g),h=(0,C.Ox)(t,d.name,p,c),[v,D]=(0,l.useState)(null);return l.createElement(A,{isOpen:null!==v,handleClose:()=>D(null),handleConfirm:()=>n(v)},l.createElement(_.A,{label:l.createElement("label",{htmlFor:e},l.createElement(s.C,{gap:r.YC,alignItems:"center"},l.createElement(N.sA,{id:"DEVICE_PROPERTIES_LABEL_ANTENNA_TYPE"}),l.createElement(o.A,{description:l.createElement(N.sA,{id:(0,C.p$)(t.model)?"DEVICE_PROPERTIES_LABEL_ANTENNA_ANGLE_TYPE_DESC":"DEVICE_PROPERTIES_LABEL_ANTENNA_TYPE_DESC",values:{link:l.createElement(u.A,{to:m},l.createElement(N.sA,{id:"COMMON_PROFESSIONAL_INSTALLER"}))}}),isInteractive:!0,portal:!0}))),name:e,value:E,type:"dropdown",variant:"secondary",options:h,validated:!0,full:!0,translateLabel:!0,onChange:({value:e})=>{(0,C.kb)({model:t.model},e)?D(e):n(e)}}))}},605689:(e,t,n)=>{n.d(t,{m:()=>c});var a=n(296540),l=n(870443),i=n(699784),r=n(255029),o=n(564985),s=n(661010),E=n(94017);const d=(e,t,n)=>t?.filter(t=>t.radio===e).map(e=>+e[n]),c=e=>{const t=Object.values(o.sx).reduce((t,n)=>(t[n]={min_txpower:d(n,e,"min_txpower")?.sort((e,t)=>t-e)?.[0],max_txpower:d(n,e,"max_txpower")?.sort((e,t)=>e-t)?.[0]},t),{}),n=e=>{const n=t[e]||{};return[`txPowerLimit${e}`,a.createElement(i.sA,{id:"COMMON_VALIDATION_HINT_RANGE",values:{min:n.min_txpower,max:n.max_txpower}}),function(t){return this.parent?.type!==e||(t===r.Q||((e,t,n)=>(void 0===n.min_txpower||t>=n.min_txpower)&&(void 0===n.max_txpower||t<=n.max_txpower))(0,t,n))}]};return{radios:l.A.array().of(l.A.object().shape({tx_power_mode:l.A.string(),tx_power:l.A.mixed(e=>"number"==typeof e||e===r.Q).nullable().when(["tx_power_mode"],{is:e=>e===o.PB.CUSTOM,then:l.A.number().integer().nullable().label("COMMON_TRANSMIT_POWER").test(...n(o.sx.RADIO_NG)).test(...n(o.sx.RADIO_NA)).test(...n(o.sx.RADIO_6E))}),antenna_gain:l.A.number().nullable().default(null).label("COMMON_ANTENNA_GAIN").minOrEmpty(E.x8).max(E.Pe),assisted_roaming_enabled:l.A.boolean(),assisted_roaming_rssi:l.A.number().when("assisted_roaming_enabled",{is:!0,then:l.A.number().integer().label("COMMON_ROAMING_ASSISTANT_THRESHOLD_NAME").min(s.Wh.MIN,a.createElement(i.sA,{id:"COMMON_VALIDATION_INVALID_RANGE",values:{min:s.Wh.MIN,max:s.Wh.MAX}})).max(s.Wh.MAX,a.createElement(i.sA,{id:"COMMON_VALIDATION_INVALID_RANGE",values:{min:s.Wh.MIN,max:s.Wh.MAX}})).required()}),channel:l.A.string().required(a.createElement(i.sA,{id:"COMMON_VALIDATION_REQUIRED",values:{name:a.createElement(i.sA,{id:"COMMON_CHANNEL"})}}))}))}}},661010:(e,t,n)=>{n.d(t,{DQ:()=>i,Wh:()=>r,XN:()=>l});var a=n(768195);const l={MIN:-67,DEFAULT:-80,MAX:-90},i=[{value:a.eF.OFF,label:"DEVICE_PROPERTIES_AP_BAND_STEER_OFF"},{value:a.eF.PREFER_5G,label:"DEVICE_PROPERTIES_AP_BAND_STEER_PREFER_5G"},{value:a.eF.EQUAL,label:"DEVICE_PROPERTIES_AP_BAND_STEER_BALANCED"}],r={MIN:-80,MAX:-60,DEFAULT:-75}},724090:(e,t,n)=>{n.d(t,{A:()=>A});var a=n(296540),l=n(271856),i=n(498577),r=n(162420),o=n(71479),s=n(566723),E=n(294303),d=n(699784);const c=(0,o.A)(E.A)`
  > div {
    display: flex;
    align-items: center;
  }
`,m=({infoId:e})=>a.createElement(l.A,{width:208,description:a.createElement(d.sA,{id:e}),portal:!0},a.createElement(r.A,{isActive:!0,size:"original"})),A=({name:e,infoId:t,info:n,warning:l,children:r})=>a.createElement(i.A,{color:"tertiary",htmlFor:e},a.createElement(c,{alignItems:"center",gap:s.YC},r,t?a.createElement(m,{infoId:t}):null,n,l))},817626:(e,t,n)=>{n.d(t,{A:()=>T});var a=n(469733),l=n(296540),i=n(951272),r=n(71479),o=n(874807),s=n(943805),E=n(566723),d=n(96899),c=n(137625),m=n(143811),A=n(294303),_=n(699784),u=n(614164),N=n(532419),O=n(724090),C=n(94017);const I=(0,r.A)(m.A)`
  margin: 0;
  padding: 0 ${E.kc};
`,g=({name:e,option:t,value:n,onChange:a,disabled:i})=>l.createElement(d.A,{option:t},l.createElement(I,{name:e,key:t.value,id:`${e}-${t.value}`,type:"radio",variant:"inputless",checked:t.value===n,disabled:i||t.disabled,onChange:o.P1,onClick:()=>a(t)},l.createElement(A.A,{alignItems:"center",justifyContent:"center",height:30,paddingBottom:1},t.value))),p=e=>{const[t,n]=(0,l.useState)(null),{setFieldValue:a}=(0,i.j7)(),{name:r,onChange:o,onChangeCallback:s}=e;return l.createElement(c.A,{title:"AP_CHANNEL_WIDTH_DFS_WARNING_TITLE_IN_PROPERTY_PANEL",message:"AP_CHANNEL_WIDTH_DFS_WARNING_DESC_IN_PROPERTY_PANEL",buttonMessage:"COMMON_ACTION_PROCEED",isOpen:null!==t,handleClose:()=>n(null),handleConfirm:()=>{a(r,t),s?.({value:t})},showHeaderClose:!0},l.createElement(g,{name:r,...e,onChange:e=>{C.mO.includes(e.value)?n(e.value):o(e)}}))},h=e=>{const{formatMessage:t}=(0,_.tz)(),[n,a]=(0,l.useState)(null),{setFieldValue:r}=(0,i.j7)(),{name:o,onChangeCallback:s}=e;return l.createElement(c.A,{title:"AP_CHANNEL_WIDTH_CHANGE_WARNING_TITLE",titleValues:{field:t({id:"COMMON_CHANNEL_WIDTH"}).toLowerCase(),value:n},message:"AP_RADIO_CHANNEL_CHANGE_MESHING_WARNING_DESCRIPTION",messageValues:{appendix:l.createElement(_.sA,{id:"DEVICE_CONFIRM_TO_CONTINUE"})},buttonMessage:"COMMON_ACTION_PROCEED",isOpen:null!==n,handleClose:()=>a(null),handleConfirm:()=>{r(o,n),s?.({value:n})},showHeaderClose:!0},l.createElement(g,{name:o,...e,onChange:e=>{a(e.value)}}))},v=({radioType:e,showMeshingParentWarning:t,...n})=>t?l.createElement(h,{...n}):e!==s.A.NA.type||n.onDfs||C.mO.includes(n.value)?l.createElement(g,{...n}):l.createElement(p,{...n}),D=({name:e,onChange:t,onChangeCallback:n,...a})=>{const{setFieldValue:r,values:o}=(0,i.j7)(),s=a.value||(0,i.O6)(o,e);return l.createElement(v,{...a,value:s,onChange:t=>{r(e,t.value),n?.(t)},name:e,onChangeCallback:n})},M=({options:e,warning:t,fieldLabel:n,...a})=>l.createElement(A.A,{flexDirection:"column"},n||l.createElement(O.A,{name:a.name,warning:t},l.createElement(_.sA,{id:"COMMON_CHANNEL_WIDTH"})),l.createElement(A.A,{width:"100%",gap:E.YC},e.map(e=>l.createElement(D,{option:e,key:e.value,...a})))),R=({device:e,...t})=>{const n=(0,a.useSelector)(N.ID),i=(0,u.T)(e,n);return l.createElement(M,{...t,value:i?.radio?.ht||t.value})},T=({meshingDevice:e,...t})=>e?l.createElement(R,{device:e,...t}):l.createElement(M,{...t})},875528:(e,t,n)=>{n.d(t,{A:()=>i});var a=n(71479),l=n(294303);const i=(0,a.A)(l.A)`
  span.descMessage-secondary {
    display: none;
  }
`},889740:(e,t,n)=>{n.d(t,{A:()=>d});var a=n(296540),l=n(217439),i=n(822336),r=n(71479),o=n(294303);const s=(0,r.A)(o.A)`
  background: ${({theme:{motifPalette:{uBlue06:e}}})=>e};
  color: ${({theme:{motifPalette:{neutral01:e}}})=>e};
  border-radius: ${i.Ay["desktop-radius-global"]};
  padding: ${2}px ${6}px ${2}px ${6}px;
  font-weight: ${i.Ay["desktop-font-weight-semibold"]};
`;var E=n(699784);const d=()=>a.createElement(s,{alignItems:"center"},a.createElement(l.A,{weight:"bold",variant:"caption",color:"inherit"},a.createElement(E.sA,{id:"COMMON_LABS"})))}}]);