"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[44965],{30247:(e,t,n)=>{n.d(t,{W:()=>d,U:()=>O});var _=n(801081),a=n(951929),r=n(38455),i=n(880880),E=n(930167),s=n(294591);const c=Object.values(s._$);var l=n(532419),o=n(983329);const O=(0,_.Mz)(l.U$,E.b,(e,t)=>{if(!t.wlanConfigurations?.length)return!0;const n=t.apGroups.find(o.K5);if(!n)return!1;if(0===n.device_macs.length){const n=(0,o.Xf)(e,t.isMeshingEnabled,t.isAutoLinkEnabled),_=t.wlanConfigurations.map(({wlan_bands:e=[]})=>e).flat();return a.A.filter(e=>_.filter(t=>t===e).length<n).length>0}return t.adoptedAps.some(e=>c.some(n=>!(0,i.Ly)((0,r.d)((0,i.vm)((0,i.bT)((0,i.wA)(),[n]),e.mac),t),{})))}),d=(0,_.Mz)(l.U$,E.b,(e,t)=>{const n=t.apGroups.find(o.K5);if(!n)return[];if(0===n.device_macs.length){const n=(0,o.Xf)(e,t.isMeshingEnabled,t.isAutoLinkEnabled),_=t.wlanConfigurations.map(({wlan_bands:e=[]})=>e).flat();return a.A.filter(e=>e!==s._$.AX&&_.filter(t=>t===e).length<n).sort()}return c.filter(e=>t.adoptedAps.some(n=>!(0,i.zY)((0,r.d)({ap_group_mode:s.qq.DEVICES,ap_specific_macs:[n.mac],wlan_bands:[e]},t),{})))})},35627:(e,t,n)=>{n.d(t,{B:()=>s,T:()=>l});var _=n(801081),a=n(25553),r=n(87485),i=n(248951);const E=(0,a.uh)((0,i.P)()),s=(0,_.Mz)(E,r.kh),c=(0,a.uh)((0,i.L)()),l=(0,_.Mz)(c,r.kh)},38455:(e,t,n)=>{n.d(t,{d:()=>d});var _=n(294591),a=n(170459),r=n(280044);const i=(e,t)=>{const n=t.adoptedAps.filter(({mac:e})=>t.broadcastingMacs.has(e));return e.wlan_bands?.includes(_._$.AX)?n.filter(e=>(0,a.Ng)(e)).map(e=>({type:r.p.WLAN_BAND_REGION_BLOCKED,band:_._$.AX,deviceMac:e.mac})):[]},E=(e,t)=>e.wlan_bands?.includes(_._$.AX)&&!t.wlanCapabilities?.wpa3_supported?[{type:r.p.WLAN_BAND_NOT_SUPPORTED,band:_._$.AX}]:[];var s=n(983329);const c=(e,t)=>{const n=t.wlanConfigurationsWithBroadcastingMacs.filter(({configuration:{_id:t}})=>t!==e._id),_=[{configuration:e,broadcastingMacs:t.broadcastingMacs},...n];return t.broadcastingDevices.flatMap(n=>{const a=(0,s.Xf)(n,t.isMeshingEnabled,t.isAutoLinkEnabled);return(e.wlan_bands||[]).flatMap(e=>{const t=_.filter(({configuration:t,broadcastingMacs:_})=>_.has(n.mac)&&(t.wlan_bands||[]).includes(e)).length;return a>=t?[]:[{type:r.p.SSID_LIMIT_EXCEEDED,band:e,deviceMac:n.mac,limit:a,actualSsidCount:t}]})})},l=e=>e.wlan_bands?.includes(_._$.AX)&&e.private_preshared_keys_enabled?[{type:r.p.PPSK_NOT_SUPPORTED_WITH_BAND,band:_._$.AX}]:[],o=(e,t)=>e.wlan_bands?.includes(_._$.AX)&&!t.broadcastingDevices.some(a.bV)?[{type:r.p.NO_DEVICE_SUPPORTS_BAND,band:_._$.AX}]:[],O=(e,t)=>{switch(e.ap_group_mode){case _.qq.ALL:return new Set(t.apGroups.find(s.K5)?.device_macs||[]);case _.qq.DEVICES:return e.ap_specific_macs?new Set(e.ap_specific_macs):new Set(t.apGroups.filter(({_id:t})=>e.ap_group_ids?.includes(t)).flatMap(e=>e?.device_macs||[]));case _.qq.GROUPS:return new Set(t.apGroups.filter(({_id:t})=>e.ap_group_ids?.includes(t)).flatMap(e=>e?.device_macs||[]));default:return new Set}},d=(e,t)=>{const n=O(e,{apGroups:t.apGroups}),_={...t,wlanConfigurationsWithBroadcastingMacs:t.wlanConfigurations.map(e=>({configuration:e,broadcastingMacs:O(e,{apGroups:t.apGroups})})),broadcastingMacs:n,broadcastingDevices:t.adoptedAps.filter(({mac:e})=>n.has(e))};return[...c(e,_),...E(e,_),...i(e,_),...l(e),...o(e,_)]}},38671:(e,t,n)=>{function _(e){return"object"==typeof e&&!!e&&"apiMsg"in e&&"status"in e}n.d(t,{F:()=>_})},156211:(e,t,n)=>{n.d(t,{D:()=>_});const _=(e,t,n="")=>{Object.entries(t).forEach(([t,a])=>{const r=[n,t].filter(Boolean).join(".");"object"!=typeof a||Array.isArray(a)||null===a?e.setValue(r,a,{shouldDirty:!0,shouldValidate:!0}):_(e,a,r)})}},217884:(e,t,n)=>{var _;n.d(t,{b:()=>_}),function(e){e.MASTER="MASTER",e.BACKUP="BACKUP",e.MEMBER="MEMBER"}(_||(_={}))},230741:(e,t,n)=>{n.d(t,{G:()=>_});const _=n(232415).Ay.string().min(1).max(48).regex(/^[^\\"' ]*$/)},260844:(e,t,n)=>{n.d(t,{A:()=>s});var _=n(886634),a=n(296540),r=n(132196),i=n(566723);const E=(e,t)=>r.AH`
  &-appear,
  &-enter {
    opacity: 0;
    display: flex !important;
    transform: translateY(-${i.xO});
  }
  &-appear-active,
  &-enter-active {
    display: flex !important;
    ${e&&`flex-direction: ${e};`}
    ${t&&`padding: ${t};`}
    opacity: 1;
    transform: translateY(0px);
    transition:
      opacity 150ms ease-in-out,
      transform 300ms cubic-bezier(0.25, 0.1, 0.25, 1);
  }
  &-appear-done,
  &-enter-done {
    display: flex !important;
    ${e&&`flex-direction: ${e};`}
    ${t&&`padding: ${t};`}
    opacity: 1;
  }
  &-exit {
    display: flex !important;
    opacity: 0;
    height: 0;
    box-sizing: border-box;
    margin: ${i.xO} 0 0 !important;
    & > * {
      display: none;
    }
  }
  &-exit-active {
    display: flex !important;
    margin: 0 !important;
    transition: margin 300ms cubic-bezier(0.25, 0.1, 0.25, 1);
  }
  &-exit-done {
    display: none;
  }
`,s=(0,a.memo)(({timeout:e=300,in:t=!1,flexDirection:n,padding:r=`0 0 ${i.fS}`,wrap:s=!1,children:c,...l})=>{const o=(0,a.useMemo)(()=>a.Children.map(c,(r,i)=>a.createElement(_.A,{appear:t,in:t,timeout:e,classNames:E(n,void 0),mountOnEnter:!0,...l},null===r?a.createElement("div",null):r)),[c,n,t,l,e]);return s?a.createElement(_.A,{appear:t,in:t,timeout:e,classNames:E(n,r),mountOnEnter:!0,...l},a.createElement("div",null,c)):a.createElement(a.Fragment,null,o)})},267691:(e,t,n)=>{n.d(t,{u:()=>E});var _=n(469733),a=n(296540),r=n(528644),i=n(674319);function E(e){const t=(0,_.useSelector)(r.C);return(0,a.useMemo)(()=>(0,i.TM)(e,t),[e,t])}},275463:(e,t,n)=>{n.d(t,{L:()=>s});var _=n(801081),a=n(25553),r=n(87485),i=n(896291);const E=(0,a.uh)((0,i.N)()),s=(0,_.Mz)(E,r.i6)},280044:(e,t,n)=>{var _;n.d(t,{p:()=>_}),function(e){e.SSID_LIMIT_EXCEEDED="SSID_LIMIT_EXCEEDED",e.WLAN_BAND_NOT_SUPPORTED="WLAN_BAND_NOT_SUPPORTED",e.WLAN_BAND_REGION_BLOCKED="WLAN_BAND_REGION_BLOCKED",e.PPSK_NOT_SUPPORTED_WITH_BAND="PPSK_NOT_SUPPORTED_WITH_BAND",e.NO_DEVICE_SUPPORTS_BAND="NO_DEVICE_SUPPORTS_BAND"}(_||(_={}))},285947:(e,t,n)=>{n.d(t,{EA:()=>c,G6:()=>o,Km:()=>E,ME:()=>r,Nq:()=>T,Sl:()=>O,Up:()=>l,bc:()=>d,ne:()=>s,pE:()=>i,t1:()=>a});var _=n(294591);const a=({security:e})=>e===_.Hs.WEP,r=({security:e})=>e===_.Hs.WPA_ENTERPRISE,i=({security:e})=>e===_.Hs.WPA_PERSONAL,E=({wpa_enc:e})=>e===_.Jl.AUTO,s=({security:e})=>e===_.Hs.HOTSPOT_2_OSEN,c=({mac_filter_enabled:e})=>e,l=(e,t)=>e&&[...new Set(e.filter(({is_guest:e})=>t?!!e:!e).map(({name:e})=>e))],o=e=>{switch(e){case _.Tl.PAP:case _.Tl.CHAP:case _.Tl.MSCHAP:case _.Tl.MSCHAP_V2:return 2;case _.Tl.SIM:case _.Tl.USIM:case _.Tl.CERTIFICATE:case _.Tl.USERNAME_PASSWORD:return 5;default:return}},O=e=>{switch(e){case _.Tl.PAP:case _.Tl.SIM:return 1;case _.Tl.CHAP:case _.Tl.USIM:return 2;case _.Tl.MSCHAP:return 3;case _.Tl.MSCHAP_V2:return 4;case _.Tl.CERTIFICATE:return 6;case _.Tl.USERNAME_PASSWORD:return 7;default:return}},d=e=>{const t=`${e.auth_id}:${e.auth_val}`;if(Object.values(_.Tl).includes(t))return t};function T(e){return Object.values(_.Ir).includes(e?.attr_hidden_id)}},325734:(e,t,n)=>{n.d(t,{A:()=>o});var _=n(296540),a=n(758649),r=n(566723),i=n(795097),E=n(823084),s=n(294303),c=n(260844),l=n(699784);const o=({list:e,messageId:t})=>{const[n,o]=(0,_.useState)(!1),O=n?e.length:3;return _.createElement(c.A,{in:!0},_.createElement(E.A,null,_.createElement(s.A,{flexDirection:"column",gap:r.YC,alignItems:"flex-start"},_.createElement(l.sA,{id:t,values:{count:e.length}}),_.createElement(i.A,null,e.slice(0,O).map((e,t)=>_.createElement("li",{key:`${e} + ${t+1}`},e))),e.length>3?_.createElement(a.A,{type:"button",onClick:()=>o(e=>!e),variant:"inline"},n?_.createElement(l.sA,{id:"COMMON_SHOW_LESS"}):_.createElement(l.sA,{id:"COMMON_SHOW_X_MORE",values:{value:e.length-3}})):null)))}},332977:(e,t,n)=>{n.d(t,{JT:()=>i,W1:()=>E,sg:()=>s});var _=n(801081),a=n(25553),r=n(28193);const i=(0,_.Mz)(({models:e})=>(0,a.Lt)((0,r.H)(),e),e=>e?.data??{wpa3_supported:!1,"6ghz_band_supported":!1}),E=(0,_.Mz)(i,({wpa3_supported:e})=>e),s=(0,_.Mz)(i,e=>e["6ghz_band_supported"])},344344:(e,t,n)=>{n.d(t,{A:()=>s});var _=n(296540),a=n(573531),r=n(566723),i=n(294303),E=n(496471);const s=function({enabled:e,items:t,renderChip:n,renderTooltipItem:s,getItemKey:c,maxChips:l=2,leftContent:o}){return _.createElement(i.A,{gap:r.YC,maxWidth:"100%",alignItems:"center"},o,0===t.length?a.L:null,t.slice(0,l).map(e=>n(e)),t.length>l?_.createElement(E.A,{enabled:e,items:t.slice(l),getItemKey:c,renderItem:s}):null)}},352998:(e,t,n)=>{n.d(t,{A:()=>O});var _=n(469733),a=n(296540),r=n(705145),i=n(6510),E=n(566723),s=n(294303),c=n(6176),l=n(699784),o=n(532419);const O=({enabled:e,mac:t})=>{const n=(0,_.useSelector)(o.ID).find(e=>e.mac===t);return n?a.createElement(s.A,{gap:E.kc,alignItems:"center"},a.createElement(s.A,{alignItems:"center",opacity:e?void 0:E.xN},a.createElement(c.A,{width:20,height:20,model:n.model})),a.createElement(r.A,{isTruncated:!0,variant:"inherit"},(0,i.Q)(n)||a.createElement(l.sA,{id:"COMMON_FALLBACK"}))):null}},374976:(e,t,n)=>{n.d(t,{J6:()=>_,_y:()=>a});n(217884);const _=(e,t)=>e.filter(e=>{if(!e.stacking_group_id)return!0;const n=t.find(t=>t._id===e.stacking_group_id);if(!n)return!0;const _=n.units.find(e=>1===e.index);return _?.mac===e.mac}),a=(e,t,n)=>{if(!t||!n)return e;const _=n.find(e=>e._id===t);return _?.name||e}},424815:(e,t,n)=>{n.d(t,{P:()=>a});var _=n(348466);function a(e,t,n){const a=URL.createObjectURL(t),r=document.createElement("a");r.id=n,r.href=a,r.download=e.replace(/[^A-Za-z0-9_\-.]/g,_.jr),document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(a)}},496471:(e,t,n)=>{n.d(t,{A:()=>s});var _=n(296540),a=n(271856),r=n(217439),i=n(57527),E=n(530813);const s=function({enabled:e=!0,items:t,getItemKey:n,renderItem:s}){return _.createElement(a.A,{description:_.createElement(E.A,{items:t,getItemKey:n,renderItem:s}),portal:!0},_.createElement(i.A,null,_.createElement(r.A,{size:"inherit",color:e?"inherit":"disabled"},"+",t.length)))}},508086:(e,t,n)=>{n.d(t,{z:()=>a});var _=n(40622);const a={[_.r.HOTSPOT_2_OSEN]:"SETTINGS_WIFI_PROTOCOL_OPTIONS_HOTSPOT_2_OSEN",[_.r.OPEN]:"SETTINGS_WIFI_FORM_VALUES_SECURITY_PROTOCOL_OPEN",[_.r.WEP]:"SETTINGS_WIFI_FORM_VALUES_SECURITY_PROTOCOL_WEP",[_.r.WPA12_PERSONAL]:"SETTINGS_WIFI_FORM_VALUES_SECURITY_PROTOCOL_AUTO_PERSONAL",[_.r.WPA12_ENTERPRISE]:"SETTINGS_WIFI_FORM_VALUES_SECURITY_PROTOCOL_AUTO_ENTERPRISE",[_.r.WPA1_PERSONAL]:"SETTINGS_WIFI_FORM_VALUES_SECURITY_PROTOCOL_WPA1_PERSONAL",[_.r.WPA1_ENTERPRISE]:"SETTINGS_WIFI_FORM_VALUES_SECURITY_PROTOCOL_WPA1_ENTERPRISE",[_.r.WPA2_PERSONAL]:"SETTINGS_WIFI_FORM_VALUES_SECURITY_PROTOCOL_WPA2_PERSONAL",[_.r.WPA2_ENTERPRISE]:"SETTINGS_WIFI_FORM_VALUES_SECURITY_PROTOCOL_WPA2_ENTERPRISE",[_.r.WPA23_PERSONAL]:"SETTINGS_WIFI_FORM_VALUES_SECURITY_PROTOCOL_WPA2_WPA3",[_.r.WPA23_ENTERPRISE]:"SETTINGS_WIFI_FORM_VALUES_SECURITY_PROTOCOL_WPA2_WPA3_ENTERPRISE",[_.r.WPA3_PERSONAL]:"SETTINGS_WIFI_FORM_VALUES_SECURITY_PROTOCOL_WPA3_PERSONAL",[_.r.WPA3_ENTERPRISE]:"SETTINGS_WIFI_FORM_VALUES_SECURITY_PROTOCOL_WPA3_ENTERPRISE"}},675291:(e,t,n)=>{n.d(t,{A:()=>m});var _=n(469733),a=n(296540),r=n(847883),i=n(758649),E=n(162420),s=n(687370),c=n(958372),l=n(267691),o=n(675344),O=n(566723),d=n(294303),T=n(263130),S=n(699784),A=n(789768);const u={maxWidth:o.By,margin:`${O.Ln} 0 0 0`,style:{flex:0}},m=({feature:e,children:t,rowProps:n,skipApproval:o=!1,renderWarning:m})=>{const I=(0,_.useDispatch)(),N=(0,l.u)(e),R=(0,s.r)(e),p=(0,a.useCallback)(()=>I((0,A.ct)(e)),[I,e]),C=R?null:a.createElement(T.A,{icon:a.createElement(E.A,{variant:"fill",size:"original",isActive:!0}),description:a.createElement(S.sA,{id:c.b[e]?.(N||o)||"COMMON_LOCKED_FEATURE"}),action:N||o?null:a.createElement(i.A,{type:"button",onClick:p,variant:"inline"},a.createElement(S.sA,{id:"COMMON_LOCKED_PRECONFIGURE"}))});return a.createElement(a.Fragment,null,C?a.createElement(a.Fragment,null,m?m({children:C}):a.createElement(r.A,{unlimitedWidth:!0,...u,...n},C)):null,t?a.createElement(r.A,{unlimitedWidth:!0,disabled:!R&&!N&&!o,marginBottom:0},a.createElement(d.A,{width:"100%",flexDirection:"column",gap:O.Ln},t)):null)}},675344:(e,t,n)=>{n.d(t,{By:()=>_,Ko:()=>i,Qb:()=>r,uE:()=>a,xh:()=>E});const _="800px",a="832px",r="1362px",i="664px",E="100px"},687370:(e,t,n)=>{n.d(t,{r:()=>E});var _=n(469733),a=n(296540),r=n(528644),i=n(674319);function E(e){const t=(0,_.useSelector)(r.C);return(0,a.useMemo)(()=>(0,i.A)(e,t),[e,t])}},695008:(e,t,n)=>{n.d(t,{A:()=>S});var _=n(469733),a=n(296540),r=n(349373),i=n(6510),E=n(566723),s=n(115829),c=n(294303),l=n(6176),o=n(699784),O=n(374976),d=n(538535),T=n(532419);const S=({enabled:e,mac:t})=>{const n=(0,_.useSelector)((0,T.tG)(t)),S=(0,_.useSelector)(d.D5);return n?.mac?a.createElement(r.A,{symbol:a.createElement(c.A,{alignItems:"center",opacity:e?void 0:E.xN},a.createElement(l.A,{width:20,height:20,model:n.model}))},a.createElement(s.A,{enabled:e},(0,O._y)((0,i.Q)(n),n.stacking_group_id,S)||a.createElement(o.sA,{id:"COMMON_FALLBACK"}))):null}},734616:(e,t,n)=>{n.d(t,{A:()=>E});var _=n(469733),a=n(296540),r=n(705145),i=n(366188);const E=({id:e})=>{const t=(0,_.useSelector)(i.Ct).find(t=>t._id===e);return t?a.createElement(r.A,{variant:"inherit",isTruncated:!0},t.name):null}},755667:(e,t,n)=>{n.d(t,{A:()=>A});var _=n(407814),a=n(296540),r=n(592563),i=n(895424),E=n(263963),s=n(79786),c=n(454195),l=n(566723),o=n(317672),O=n(349665),d=n(294303),T=n(699784);const S=/^_[a-zA-Z0-9._-]+\._(tcp|udp)(\.local)?$/i,A=({existingCustomServices:e,onSubmit:t,tooltip:n})=>{const{formatMessage:A}=(0,T.tz)(),u=(0,s.m)({schema:_.Ik({serviceName:_.Yj().min(1).max(32),address:_.Yj().min(1).regex(S,{message:(0,E.rn)("SETTINGS_MDNS_SERVICE_ID_VALIDATION")}).refine(t=>!e?.some(e=>e.address===t),{message:A({id:"SETTINGS_VALUE_UNIQUE"})})}),defaultValues:{serviceName:"",address:""}}),m=(0,a.useCallback)(()=>{u.handleSubmit(({address:e,serviceName:n})=>{t({name:n,address:e}),u.setFocus("serviceName"),u.reset()})()},[u,t]);return(0,a.useEffect)(()=>{const e=e=>{"Enter"===e.key&&(e.preventDefault(),m())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[u,t,m]),a.createElement(O.A,null,a.createElement(o.A,{htmlFor:"services.predefined_ids",tooltip:n,tooltipProps:{portal:!0,isInteractive:!0}},a.createElement(T.sA,{id:"SETTINGS_CUSTOM_SERVICE"})),a.createElement(d.A,{flexDirection:"row",gap:l.kc,alignItems:"flex-start"},a.createElement(d.A,{flex:"1",flexGrow:1,flexShrink:1,overflow:"hidden"},a.createElement(i.A,{control:u.control,name:"serviceName",placeholder:A({id:"SETTINGS_LABEL"})})),a.createElement(d.A,{flex:"1",flexGrow:1,flexShrink:1,overflow:"hidden"},a.createElement(i.A,{control:u.control,name:"address",placeholder:A({id:"SETTINGS_SERVICE_NAME"})})),a.createElement(d.A,{height:c.b},a.createElement(r.A,{fontSize:"medium",type:"button",onPress:m},a.createElement(T.sA,{id:"COMMON_ACTION_ADD"})))))}},834042:(e,t,n)=>{n.d(t,{EJ:()=>c,gy:()=>E,oP:()=>i,pi:()=>r,q8:()=>s,t:()=>a});var _=n(621690);const a=60,r=24,i=({minuteOfDay:e,use24HourFormat:t,formatMessage:n})=>{const _=Math.floor(e/60);return`${String(t?_:_%12||12).padStart(2,"0")}:${String(e%a).padStart(2,"0")}${t?"":` ${n({id:_>=12?"COMMON_PM":"COMMON_AM"})}`}`},E=(e,t,n)=>{const r=Math.max(1,Math.min(60,Math.floor(60/t))),E=Math.floor(60/r);return(0,_.A)(0,24).map(t=>(0,_.A)(r).map(_=>{const r=_*E;return{label:i({use24HourFormat:e,formatMessage:n,minuteOfDay:t*a+r}),value:60*t+ +r}})).flat()},s=e=>6e4*Math.round(e/6e4),c=(e,t)=>{const n=+(e/1e3).toFixed(1),_=+(n/1e3).toFixed(1),a=+(n/6e4).toFixed(1);return n<1e3?`${n} ${t({id:"COMMON_UNIT_MS"})}`:_<60?`${_} ${t({id:"COMMON_UNIT_S"})}`:`${a} ${t({id:"COMMON_UNIT_MIN"})}`}},880880:(e,t,n)=>{n.d(t,{GC:()=>i,Ly:()=>E,bT:()=>O,bx:()=>c,qm:()=>s,rY:()=>o,uc:()=>d,vm:()=>l,wA:()=>T,zY:()=>r});var _=n(41343),a=n(294591);function r(e,t){return e.find(e=>Object.entries(t).every(([t,n])=>e[t]===n))}function i(e,t){return e.filter(e=>Object.entries(t).every(([t,n])=>e[t]===n))}function E(e,t){return!!r(e,t)}const s=(e,t)=>({...e,ap_group_mode:a.qq.DEVICES,ap_specific_macs:[...e.ap_specific_macs||[],t]});function c(e,t){return{...e,ap_group_mode:a.qq.GROUPS,ap_group_ids:[t]}}const l=(e,t)=>({...e,ap_group_mode:a.qq.DEVICES,ap_specific_macs:[t]}),o=e=>({...e,ap_group_mode:a.qq.ALL}),O=(e,t)=>({...e,wlan_bands:t}),d=(e,t)=>({...e,wlan_bands:(0,_.A)([...e.wlan_bands||[],...t]).sort()}),T=()=>({ap_group_mode:a.qq.ALL})},930167:(e,t,n)=>{n.d(t,{b:()=>O});var _=n(801081),a=n(189601),r=n(951929),i=n(294591),E=n(477544),s=n(332977),c=n(302167),l=n(532419),o=n(180830);const O=(0,a.WY)()((0,_.Mz)(o.K8,l.kx,s.JT,E.Ag,c.Zc,c.L_,(e,t,n,_,a,E)=>({apGroups:e,adoptedAps:t.map(({mac:e,model:t,radio_table:n,support_wifi6e:_,device_mode_override:a})=>({mac:e,model:t,radio_table:n,support_wifi6e:_,device_mode_override:a})),wlanCapabilities:n,wlanConfigurations:_.map(({_id:t,ap_group_mode:n,ap_group_ids:_,wlan_bands:a=r.A,private_preshared_keys_enabled:E})=>({_id:t,ap_group_mode:n,ap_specific_macs:n===i.qq.DEVICES?e.filter(e=>_.includes(e._id)).flatMap(e=>e.device_macs||[]):[],ap_group_ids:_,wlan_bands:a,private_preshared_keys_enabled:E})),isMeshingEnabled:a,isAutoLinkEnabled:E})),e=>e)},958372:(e,t,n)=>{n.d(t,{D:()=>l,b:()=>o});var _=n(296540),a=n(169568),r=n(699784),i=n(196010),E=n(928085),s=n(959341);const c=()=>{const e=(0,E.A)(s.tz);return _.createElement(i.A,{to:e},_.createElement(r.sA,{id:"COMMON_ACTION_MANAGE"}))},l={[a.v.SETTINGS_POLICY_ACL]:_.createElement(r.sA,{id:"SETTINGS_POLICY_TYPE_ACL_UNSUPPORTED"}),[a.v.SETTINGS_POLICY_QOS]:_.createElement(r.sA,{id:"SETTINGS_ZONE_BASED_FIREWALL_REQUIRED",values:{link:_.createElement(c,null)}}),[a.v.SETTINGS_POLICY_FIREWALL]:_.createElement(r.sA,{id:"SETTINGS_ZONE_BASED_FIREWALL_REQUIRED",values:{link:_.createElement(c,null)}}),[a.v.SETTINGS_POLICY_NAT]:_.createElement(r.sA,{id:"SETTINGS_NAT_NOT_SUPPORTED"}),[a.v.SETTINGS_POLICY_DNS]:_.createElement(r.sA,{id:"SETTINGS_DNS_NOT_SUPPORTED"}),[a.v.SETTINGS_POLICY_PORT_FORWARDING]:_.createElement(r.sA,{id:"SETTINGS_PORT_FORWARDING_NOT_SUPPORTED"}),[a.v.SETTINGS_POLICY_ROUTE]:_.createElement(r.sA,{id:"SETTINGS_ROUTING_NOT_SUPPORTED"})},o={[a.v.SETTINGS_WIFI]:e=>e?"COMMON_LOCKED_FEATURE_AP_PRECONFIGURED":"COMMON_LOCKED_FEATURE_AP",[a.v.SETTINGS_NETWORKS]:e=>e?"COMMON_LOCKED_FEATURE_GW_OR_SW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW_OR_SW_OR_AP",[a.v.SETTINGS_INTERNET]:e=>e?"COMMON_LOCKED_FEATURE_GW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW",[a.v.SETTINGS_TELEPORT]:e=>e?"COMMON_LOCKED_FEATURE_GW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW",[a.v.SETTINGS_UID_VPN]:()=>"SETTINGS_VPN_UID_DESC",[a.v.SETTING_ROUTING]:e=>e?"COMMON_LOCKED_FEATURE_GW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW",[a.v.SETTINGS_SECURITY]:e=>e?"COMMON_LOCKED_FEATURE_GW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW",[a.v.SETTINGS_ETHERNET_PORTS]:e=>e?"COMMON_LOCKED_FEATURE_GW_OR_SW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW_OR_SW",[a.v.SETTINGS_WIFI_SPEED_LIMIT_PROFILES]:e=>e?"COMMON_LOCKED_FEATURE_AP_PRECONFIGURED":"COMMON_LOCKED_FEATURE_AP",[a.v.NETWORK_OBJECTS]:e=>e?"COMMON_LOCKED_FEATURE_GW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW",[a.v.SETTINGS_VPN]:e=>e?"COMMON_LOCKED_FEATURE_GW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW",[a.v.SETTINGS_POLICY]:e=>e?"COMMON_LOCKED_FEATURE_GW_OR_SW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW_OR_SW",[a.v.SETTINGS_POLICY_ACL]:e=>e?"COMMON_LOCKED_FEATURE_GW_OR_SW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW_OR_SW",[a.v.SETTINGS_POLICY_QOS]:e=>e?"COMMON_LOCKED_FEATURE_GW_OR_SW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW_OR_SW",[a.v.SETTINGS_POLICY_NAT]:e=>e?"COMMON_LOCKED_FEATURE_GW_OR_SW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW_OR_SW",[a.v.SETTINGS_POLICY_DNS]:e=>e?"COMMON_LOCKED_FEATURE_GW_OR_SW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW_OR_SW",[a.v.SETTINGS_POLICY_PORT_FORWARDING]:e=>e?"COMMON_LOCKED_FEATURE_GW_OR_SW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW_OR_SW",[a.v.SETTINGS_POLICY_FIREWALL]:e=>e?"COMMON_LOCKED_FEATURE_GW_OR_SW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW_OR_SW",[a.v.SETTINGS_POLICY_ROUTE]:e=>e?"COMMON_LOCKED_FEATURE_GW_OR_SW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW_OR_SW"}},975280:(e,t,n)=>{n.d(t,{A:()=>E});var _=n(296540),a=n(823858),r=n(998837),i=n(263130);const E=({children:e,...t})=>_.createElement(i.A,{icon:_.createElement(a.A,{variant:"fill",size:"original",color:(0,r.u)().motifPalette.warning}),description:e,...t})},983105:(e,t,n)=>{n.d(t,{J:()=>s});var _=n(801081),a=n(25553),r=n(87485),i=n(314385);const E=(0,a.uh)((0,i.T)()),s=(0,_.Mz)(E,r.kh)},985432:(e,t,n)=>{var _,a,r,i;n.d(t,{A:()=>_,LM:()=>a,aH:()=>r}),function(e){e.OFF="off",e.AUTO="auto",e.CUSTOM="custom"}(_||(_={})),function(e){e.ALL="all",e.SPECIFIC="specific",e.GROUP="group"}(a||(a={})),function(e){e.ALL="all",e.SPECIFIC="specific",e.NONE="none"}(r||(r={})),function(e){e.LOW="low",e.MEDIUM="medium",e.HIGH="high"}(i||(i={}))},998386:(e,t,n)=>{n.d(t,{EH:()=>E,HV:()=>i,N$:()=>r,O5:()=>a});var _=n(765562);const a=e=>`${_.A.fabricsOrchestration}/wifi/${e?.template_id||""}?orgId=${e?.organization_id||""}`,r=e=>`${_.A.fabricsOrchestration}/network/${e?.template_id||""}?orgId=${e?.organization_id||""}`,i=e=>`${_.A.fabricsDeviceTemplates}/${e?.template_id||""}?orgId=${e?.organization_id||""}`,E=e=>`${_.A.fabricsOrchestration}/content-filter?orchestrationId=${e?.template_id||""}&orgId=${e?.organization_id||""}`}}]);