"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[55052],{183504(e,_,n){n.d(_,{L:()=>E});var i=n(222102),t=n(656466),a=n(401042),r=n(789803);const s=(0,t.uh)((0,r.N)()),E=(0,i.Mz)(s,a.i6)},492868(e,_,n){n.d(_,{J:()=>E});var i=n(222102),t=n(656466),a=n(401042),r=n(665479);const s=(0,t.uh)((0,r.T)()),E=(0,i.Mz)(s,a.kh)},846485(e,_,n){var i;n.d(_,{b:()=>i}),function(e){e.MASTER="MASTER",e.BACKUP="BACKUP",e.MEMBER="MEMBER"}(i||(i={}))},640225(e,_,n){n.d(_,{J6:()=>i,_y:()=>t}),n(846485);const i=(e,_)=>e.filter(e=>{if(!e.stacking_group_id)return!0;const n=_.find(_=>_._id===e.stacking_group_id);if(!n)return!0;const i=n.units.find(e=>1===e.index);return i?.mac===e.mac}),t=(e,_,n)=>{if(!_||!n)return e;const i=n.find(e=>e._id===_);return i?.name||e}},952116(e,_,n){n.d(_,{JT:()=>r,W1:()=>s,sg:()=>E});var i=n(222102),t=n(656466),a=n(66647);const r=(0,i.Mz)(({models:e})=>(0,t.Lt)((0,a.H)(),e),e=>e?.data??{wpa3_supported:!1,"6ghz_band_supported":!1}),s=(0,i.Mz)(r,({wpa3_supported:e})=>e),E=(0,i.Mz)(r,e=>e["6ghz_band_supported"])},563674(e,_,n){n.d(_,{EA:()=>O,G6:()=>d,Km:()=>s,ME:()=>a,Nq:()=>T,Sl:()=>c,Up:()=>o,bc:()=>l,ne:()=>E,pE:()=>r,t1:()=>t});var i=n(904614);const t=({security:e})=>e===i.Hs.WEP,a=({security:e})=>e===i.Hs.WPA_ENTERPRISE,r=({security:e})=>e===i.Hs.WPA_PERSONAL,s=({wpa_enc:e})=>e===i.Jl.AUTO,E=({security:e})=>e===i.Hs.HOTSPOT_2_OSEN,O=({mac_filter_enabled:e})=>e,o=(e,_)=>e&&[...new Set(e.filter(({is_guest:e})=>_?!!e:!e).map(({name:e})=>e))],d=e=>{switch(e){case i.Tl.PAP:case i.Tl.CHAP:case i.Tl.MSCHAP:case i.Tl.MSCHAP_V2:return 2;case i.Tl.SIM:case i.Tl.USIM:case i.Tl.CERTIFICATE:case i.Tl.USERNAME_PASSWORD:return 5;default:return}},c=e=>{switch(e){case i.Tl.PAP:case i.Tl.SIM:return 1;case i.Tl.CHAP:case i.Tl.USIM:return 2;case i.Tl.MSCHAP:return 3;case i.Tl.MSCHAP_V2:return 4;case i.Tl.CERTIFICATE:return 6;case i.Tl.USERNAME_PASSWORD:return 7;default:return}},l=e=>{const _=`${e.auth_id}:${e.auth_val}`;if(Object.values(i.Tl).includes(_))return _};function T(e){return Object.values(i.Ir).includes(e?.attr_hidden_id)}},428792(e,_,n){n.d(_,{F:()=>E,T:()=>o});var i=n(222102),t=n(656466),a=n(401042),r=n(549059);const s=(0,t.uh)((0,r.P)()),E=(0,i.Mz)(s,a.kh),O=(0,t.uh)((0,r.L)()),o=(0,i.Mz)(O,a.kh)},474831(e,_,n){var i,t,a,r;n.d(_,{A:()=>i,LM:()=>t,aH:()=>a}),function(e){e.OFF="off",e.AUTO="auto",e.CUSTOM="custom"}(i||(i={})),function(e){e.ALL="all",e.SPECIFIC="specific",e.GROUP="group"}(t||(t={})),function(e){e.ALL="all",e.SPECIFIC="specific",e.NONE="none"}(a||(a={})),function(e){e.LOW="low",e.MEDIUM="medium",e.HIGH="high"}(r||(r={}))},27103(e,_,n){n.d(_,{A:()=>c});var i=n(274934),t=n(602086),a=n(599110),r=n(309130),s=n(927728),E=n(753959),O=n(100978),o=n(602097),d=n(470070);const c=({list:e,messageId:_})=>{const[n,c]=(0,t.useState)(!1),l=n?e.length:3;return(0,i.jsx)(o.A,{in:!0,children:(0,i.jsx)(E.A,{children:(0,i.jsxs)(O.A,{flexDirection:"column",gap:r.YC,alignItems:"flex-start",children:[(0,i.jsx)(d.sA,{id:_,values:{count:e.length}}),(0,i.jsx)(s.A,{children:e.slice(0,l).map((e,_)=>(0,i.jsx)("li",{children:e},`${e} + ${_+1}`))}),e.length>3?(0,i.jsx)(a.A,{type:"button",onClick:()=>c(e=>!e),variant:"inline",children:(0,i.jsx)(d.sA,n?{id:"COMMON_SHOW_LESS"}:{id:"COMMON_SHOW_X_MORE",values:{value:e.length-3}})}):null]})})})}},901389(e,_,n){n.d(_,{A:()=>E});var i=n(274934),t=n(814557),a=n(600191),r=n(263705),s=n(612389);const E=({children:e,..._})=>{const{themeName:n}=(0,r.u)();return(0,i.jsx)(s.A,{icon:(0,i.jsx)(a.A,{variant:"fill",size:"original",color:t.Ay[`desktop-color-orange-06-${n}`]}),description:e,..._})}},602097(e,_,n){n.d(_,{A:()=>O});var i=n(274934),t=n(602086),a=n(786200),r=n(409844),s=n(309130);const E=(e,_)=>r.AH`
  &-appear,
  &-enter {
    opacity: 0;
    display: flex !important;
    transform: translateY(-${s.xO});
  }
  &-appear-active,
  &-enter-active {
    display: flex !important;
    ${e&&`flex-direction: ${e};`}
    ${_&&`padding: ${_};`}
    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};`}
    ${_&&`padding: ${_};`}
    opacity: 1;
  }
  &-exit {
    display: flex !important;
    opacity: 0;
    height: 0;
    box-sizing: border-box;
    margin: ${s.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;
  }
`,O=(0,t.memo)(({timeout:e=300,in:_=!1,flexDirection:n,padding:r=`0 0 ${s.fS}`,wrap:O=!1,children:o,...d})=>{const c=(0,t.useRef)(null);return O?(0,i.jsx)(a.A,{nodeRef:c,appear:_,in:_,timeout:e,classNames:E(n,r),mountOnEnter:!0,...d,children:(0,i.jsx)("div",{children:o})}):(0,i.jsx)(i.Fragment,{children:t.Children.map(o,t=>(0,i.jsx)(a.A,{nodeRef:c,appear:_,in:_,timeout:e,classNames:E(n,void 0),mountOnEnter:!0,...d,children:null===t?(0,i.jsx)("div",{}):t}))})})},416243(e,_,n){n.d(_,{A:()=>A});var i=n(274934),t=n(977872),a=n(812450),r=n(347625),s=n(309130),E=n(421314),O=n(100978),o=n(974390),d=n(470070),c=n(640225),l=n(160286),T=n(754924);const A=({enabled:e,mac:_})=>{const n=(0,t.d4)((0,T.tG)(_)),A=(0,t.d4)(l.D5);return n?.mac?(0,i.jsx)(a.A,{symbol:(0,i.jsx)(O.A,{alignItems:"center",opacity:e?void 0:s.xN,children:(0,i.jsx)(o.A,{width:20,height:20,model:n.model})}),children:(0,i.jsx)(E.A,{enabled:e,children:(0,c._y)((0,r.Q)(n),n.stacking_group_id,A)||(0,i.jsx)(d.sA,{id:"COMMON_FALLBACK"})})}):null}},550883(e,_,n){n.d(_,{A:()=>c});var i=n(274934),t=n(977872),a=n(95032),r=n(347625),s=n(309130),E=n(100978),O=n(974390),o=n(470070),d=n(754924);const c=({enabled:e,mac:_})=>{const n=(0,t.d4)(d.ID).find(e=>e.mac===_);return n?(0,i.jsxs)(E.A,{gap:s.kc,alignItems:"center",children:[(0,i.jsx)(E.A,{alignItems:"center",opacity:e?void 0:s.xN,children:(0,i.jsx)(O.A,{width:20,height:20,model:n.model})}),(0,i.jsx)(a.A,{isTruncated:!0,variant:"inherit",children:(0,r.Q)(n)||(0,i.jsx)(o.sA,{id:"COMMON_FALLBACK"})})]}):null}},392937(e,_,n){n.d(_,{Ay:()=>T,hK:()=>d,wi:()=>o});var i=n(274934),t=n(843871),a=n(599110),r=n(247816),s=n(309130),E=n(470070),O=n(384783);const o=(0,r.A)("footer")`
  display: flex;
  flex-direction: row;
  gap: ${s.Ln};
  padding: 0 ${s.Er} ${s.Er};
`,d=(0,r.A)("footer")`
  flex: 1;
`;function c(e,_){return"function"==typeof e?e(_):e}function l(e,_){return null===e?null:e||_}const T=function({onDismiss:e,title:_,size:n,children:r,className:s,secondaryActions:T,primaryActions:A,cancelAction:S,submitAction:u,shouldCloseOnOverlayClick:N,allowOverflow:R,...C}){return(0,i.jsx)(t.l1,{...C,children:t=>(0,i.jsx)(O.A,{size:n,onRequestClose:e,title:_,className:s,contentElement:(e,_)=>(0,i.jsx)("div",{...e,children:(0,i.jsx)("form",{onSubmit:t.handleSubmit,children:_})}),allowOverflow:R,shouldCloseOnOverlayClick:N??!t.dirty,footer:(0,i.jsxs)(o,{children:[c(T,t),(0,i.jsx)(d,{}),c(A,t),c(l("function"==typeof S?S(t):S,(0,i.jsx)(a.A,{type:"button",onClick:e,children:(0,i.jsx)(E.sA,{id:"COMMON_ACTION_CANCEL"})})),t),c(l("function"==typeof u?u(t):u,(0,i.jsx)(a.A,{type:"submit",variant:"primary",children:(0,i.jsx)(E.sA,{id:"COMMON_ACTION_APPLY_CHANGES"})})),t)]}),children:c(r,t)})})}},413889(e,_,n){n.d(_,{A:()=>u});var i=n(274934),t=n(241792),a=n(602086),r=n(954702),s=n(635891),E=n(260334),O=n(436417),o=n(833466),d=n(309130),c=n(164487),l=n(597750),T=n(100978),A=n(470070);const S=/^_[a-zA-Z0-9._-]+\._(tcp|udp)(\.local)?$/i,u=({existingCustomServices:e,onSubmit:_,tooltip:n})=>{const{formatMessage:u}=(0,A.tz)(),N=(0,O.m)({schema:t.Ik({serviceName:t.Yj().min(1).max(32),address:t.Yj().min(1).regex(S,{message:(0,E.rn)("SETTINGS_MDNS_SERVICE_ID_VALIDATION")}).refine(_=>!e?.some(e=>e.address===_),{message:u({id:"SETTINGS_VALUE_UNIQUE"})})}),defaultValues:{serviceName:"",address:""}}),R=(0,a.useCallback)(()=>{N.handleSubmit(({address:e,serviceName:n})=>{_({name:n,address:e}),N.setFocus("serviceName"),N.reset()})()},[N,_]);return(0,a.useEffect)(()=>{const e=e=>{"Enter"===e.key&&(e.preventDefault(),R())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[N,_,R]),(0,i.jsxs)(l.A,{children:[(0,i.jsx)(c.A,{htmlFor:"services.predefined_ids",tooltip:n,tooltipProps:{portal:!0,isInteractive:!0},children:(0,i.jsx)(A.sA,{id:"SETTINGS_CUSTOM_SERVICE"})}),(0,i.jsxs)(T.A,{flexDirection:"row",gap:d.kc,alignItems:"flex-start",children:[(0,i.jsx)(T.A,{flex:"1",flexGrow:1,flexShrink:1,overflow:"hidden",children:(0,i.jsx)(s.A,{control:N.control,name:"serviceName",placeholder:u({id:"SETTINGS_LABEL"})})}),(0,i.jsx)(T.A,{flex:"1",flexGrow:1,flexShrink:1,overflow:"hidden",children:(0,i.jsx)(s.A,{control:N.control,name:"address",placeholder:u({id:"SETTINGS_SERVICE_NAME"})})}),(0,i.jsx)(T.A,{height:o.b,children:(0,i.jsx)(r.A,{fontSize:"medium",type:"button",onPress:R,children:(0,i.jsx)(A.sA,{id:"COMMON_ACTION_ADD"})})})]})]})}},274816(e,_,n){n.d(_,{b:()=>c});var i=n(222102),t=n(430328),a=n(968518),r=n(904614),s=n(910577),E=n(952116),O=n(291935),o=n(754924),d=n(544691);const c=(0,t.WY)()((0,i.Mz)(d.K8,o.kx,E.JT,s.Ag,O.Zc,O.L_,(e,_,n,i,t,s)=>({apGroups:e,adoptedAps:_.map(({mac:e,model:_,radio_table:n,support_wifi6e:i,device_mode_override:t})=>({mac:e,model:_,radio_table:n,support_wifi6e:i,device_mode_override:t})),wlanCapabilities:n,wlanConfigurations:i.map(({_id:_,ap_group_mode:n,ap_group_ids:i,wlan_bands:t=a.A,private_preshared_keys_enabled:s})=>({_id:_,ap_group_mode:n,ap_specific_macs:n===r.qq.DEVICES?e.filter(e=>i.includes(e._id)).flatMap(e=>e.device_macs||[]):[],ap_group_ids:i,wlan_bands:t,private_preshared_keys_enabled:s})),isMeshingEnabled:t,isAutoLinkEnabled:s})),e=>e)},689159(e,_,n){var i;n.d(_,{p:()=>i}),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"}(i||(i={}))},571795(e,_,n){n.d(_,{GC:()=>r,Ly:()=>s,bT:()=>c,bx:()=>O,qm:()=>E,rY:()=>d,uc:()=>l,vm:()=>o,wA:()=>T,zY:()=>a});var i=n(200500),t=n(904614);function a(e,_){return e.find(e=>Object.entries(_).every(([_,n])=>e[_]===n))}function r(e,_){return e.filter(e=>Object.entries(_).every(([_,n])=>e[_]===n))}function s(e,_){return!!a(e,_)}const E=(e,_)=>({...e,ap_group_mode:t.qq.DEVICES,ap_specific_macs:[...e.ap_specific_macs||[],_]});function O(e,_){return{...e,ap_group_mode:t.qq.GROUPS,ap_group_ids:[_]}}const o=(e,_)=>({...e,ap_group_mode:t.qq.DEVICES,ap_specific_macs:[_]}),d=e=>({...e,ap_group_mode:t.qq.ALL}),c=(e,_)=>({...e,wlan_bands:_}),l=(e,_)=>({...e,wlan_bands:(0,i.A)([...e.wlan_bands||[],..._]).sort()}),T=()=>({ap_group_mode:t.qq.ALL})},776951(e,_,n){n.d(_,{d:()=>l});var i=n(904614),t=n(927316),a=n(689159);const r=(e,_)=>{const n=_.adoptedAps.filter(({mac:e})=>_.broadcastingMacs.has(e));return e.wlan_bands?.includes(i._$.AX)?n.filter(e=>(0,t.Ng)(e)).map(e=>({type:a.p.WLAN_BAND_REGION_BLOCKED,band:i._$.AX,deviceMac:e.mac})):[]},s=(e,_)=>e.wlan_bands?.includes(i._$.AX)&&!_.wlanCapabilities?.wpa3_supported?[{type:a.p.WLAN_BAND_NOT_SUPPORTED,band:i._$.AX}]:[];var E=n(220700);const O=(e,_)=>{const n=_.wlanConfigurationsWithBroadcastingMacs.filter(({configuration:{_id:_}})=>_!==e._id),i=[{configuration:e,broadcastingMacs:_.broadcastingMacs},...n];return _.broadcastingDevices.flatMap(n=>{const t=(0,E.Xf)(n,_.isMeshingEnabled,_.isAutoLinkEnabled);return(e.wlan_bands||[]).flatMap(e=>{const _=i.filter(({configuration:_,broadcastingMacs:i})=>i.has(n.mac)&&(_.wlan_bands||[]).includes(e)).length;return t>=_?[]:[{type:a.p.SSID_LIMIT_EXCEEDED,band:e,deviceMac:n.mac,limit:t,actualSsidCount:_}]})})},o=e=>e.wlan_bands?.includes(i._$.AX)&&e.private_preshared_keys_enabled?[{type:a.p.PPSK_NOT_SUPPORTED_WITH_BAND,band:i._$.AX}]:[],d=(e,_)=>e.wlan_bands?.includes(i._$.AX)&&!_.broadcastingDevices.some(t.bV)?[{type:a.p.NO_DEVICE_SUPPORTS_BAND,band:i._$.AX}]:[],c=(e,_)=>{switch(e.ap_group_mode){case i.qq.ALL:return new Set(_.apGroups.find(E.K5)?.device_macs||[]);case i.qq.DEVICES:return e.ap_specific_macs?new Set(e.ap_specific_macs):new Set(_.apGroups.filter(({_id:_})=>e.ap_group_ids?.includes(_)).flatMap(e=>e?.device_macs||[]));case i.qq.GROUPS:return new Set(_.apGroups.filter(({_id:_})=>e.ap_group_ids?.includes(_)).flatMap(e=>e?.device_macs||[]));default:return new Set}},l=(e,_)=>{const n=c(e,{apGroups:_.apGroups}),i={..._,wlanConfigurationsWithBroadcastingMacs:_.wlanConfigurations.map(e=>({configuration:e,broadcastingMacs:c(e,{apGroups:_.apGroups})})),broadcastingMacs:n,broadcastingDevices:_.adoptedAps.filter(({mac:e})=>n.has(e))};return[...O(e,i),...s(e,i),...r(e,i),...o(e),...d(e,i)]}},968007(e,_,n){n.d(_,{z:()=>t});var i=n(217431);const t={[i.r.HOTSPOT_2_OSEN]:"SETTINGS_WIFI_PROTOCOL_OPTIONS_HOTSPOT_2_OSEN",[i.r.OPEN]:"SETTINGS_WIFI_FORM_VALUES_SECURITY_PROTOCOL_OPEN",[i.r.WEP]:"SETTINGS_WIFI_FORM_VALUES_SECURITY_PROTOCOL_WEP",[i.r.WPA12_PERSONAL]:"SETTINGS_WIFI_FORM_VALUES_SECURITY_PROTOCOL_AUTO_PERSONAL",[i.r.WPA12_ENTERPRISE]:"SETTINGS_WIFI_FORM_VALUES_SECURITY_PROTOCOL_AUTO_ENTERPRISE",[i.r.WPA1_PERSONAL]:"SETTINGS_WIFI_FORM_VALUES_SECURITY_PROTOCOL_WPA1_PERSONAL",[i.r.WPA1_ENTERPRISE]:"SETTINGS_WIFI_FORM_VALUES_SECURITY_PROTOCOL_WPA1_ENTERPRISE",[i.r.WPA2_PERSONAL]:"SETTINGS_WIFI_FORM_VALUES_SECURITY_PROTOCOL_WPA2_PERSONAL",[i.r.WPA2_ENTERPRISE]:"SETTINGS_WIFI_FORM_VALUES_SECURITY_PROTOCOL_WPA2_ENTERPRISE",[i.r.WPA23_PERSONAL]:"SETTINGS_WIFI_FORM_VALUES_SECURITY_PROTOCOL_WPA2_WPA3",[i.r.WPA23_ENTERPRISE]:"SETTINGS_WIFI_FORM_VALUES_SECURITY_PROTOCOL_WPA2_WPA3_ENTERPRISE",[i.r.WPA3_PERSONAL]:"SETTINGS_WIFI_FORM_VALUES_SECURITY_PROTOCOL_WPA3_PERSONAL",[i.r.WPA3_ENTERPRISE]:"SETTINGS_WIFI_FORM_VALUES_SECURITY_PROTOCOL_WPA3_ENTERPRISE"}},700149(e,_,n){n.d(_,{By:()=>i,Ko:()=>r,Qb:()=>a,uE:()=>t,xh:()=>s});const i="800px",t="832px",a="1362px",r="664px",s="100px"},742012(e,_,n){n.d(_,{u:()=>s});var i=n(602086),t=n(977872),a=n(92781),r=n(519372);function s(e){const _=(0,t.d4)(a.C);return(0,i.useMemo)(()=>(0,r.TM)(e,_),[e,_])}},23964(e,_,n){n.d(_,{A:()=>R});var i=n(274934),t=n(602086),a=n(977872),r=n(713804),s=n(599110),E=n(853777),O=n(982631),o=n(191105),d=n(742012),c=n(700149),l=n(309130),T=n(100978),A=n(612389),S=n(470070),u=n(158402);const N={maxWidth:c.By,margin:`${l.Ln} 0 0 0`,style:{flex:0}},R=({feature:e,children:_,rowProps:n,skipApproval:c=!1,renderWarning:R})=>{const C=(0,a.wA)(),p=(0,d.u)(e),I=(0,O.r)(e),M=(0,t.useCallback)(()=>{C((0,u.ct)(e))},[C,e]),P=I?null:(0,i.jsx)(A.A,{icon:(0,i.jsx)(E.A,{variant:"fill",size:"original",isActive:!0}),description:(0,i.jsx)(S.sA,{id:o.b[e]?.(p||c)||"COMMON_LOCKED_FEATURE"}),action:p||c?null:(0,i.jsx)(s.A,{type:"button",onClick:M,variant:"inline",children:(0,i.jsx)(S.sA,{id:"COMMON_LOCKED_PRECONFIGURE"})})});return(0,i.jsxs)(i.Fragment,{children:[P?(0,i.jsx)(i.Fragment,{children:R?R({children:P}):(0,i.jsx)(r.A,{unlimitedWidth:!0,...N,...n,children:P})}):null,_?(0,i.jsx)(r.A,{unlimitedWidth:!0,disabled:!I&&!p&&!c,marginBottom:0,children:(0,i.jsx)(T.A,{width:"100%",flexDirection:"column",gap:l.Ln,children:_})}):null]})}},191105(e,_,n){n.d(_,{D:()=>o,b:()=>d});var i=n(274934),t=n(670241),a=n(470070),r=n(502129),s=n(43506),E=n(969288);const O=()=>{const e=(0,s.A)(E.tz);return(0,i.jsx)(r.A,{to:e,children:(0,i.jsx)(a.sA,{id:"COMMON_ACTION_MANAGE"})})},o={[t.v.SETTINGS_POLICY_ACL]:(0,i.jsx)(a.sA,{id:"SETTINGS_POLICY_TYPE_ACL_UNSUPPORTED"}),[t.v.SETTINGS_POLICY_QOS]:(0,i.jsx)(a.sA,{id:"SETTINGS_ZONE_BASED_FIREWALL_REQUIRED",values:{link:(0,i.jsx)(O,{})}}),[t.v.SETTINGS_POLICY_FIREWALL]:(0,i.jsx)(a.sA,{id:"SETTINGS_ZONE_BASED_FIREWALL_REQUIRED",values:{link:(0,i.jsx)(O,{})}}),[t.v.SETTINGS_POLICY_NAT]:(0,i.jsx)(a.sA,{id:"SETTINGS_NAT_NOT_SUPPORTED"}),[t.v.SETTINGS_POLICY_DNS]:(0,i.jsx)(a.sA,{id:"SETTINGS_DNS_NOT_SUPPORTED"}),[t.v.SETTINGS_POLICY_PORT_FORWARDING]:(0,i.jsx)(a.sA,{id:"SETTINGS_PORT_FORWARDING_NOT_SUPPORTED"}),[t.v.SETTINGS_POLICY_ROUTE]:(0,i.jsx)(a.sA,{id:"SETTINGS_ROUTING_NOT_SUPPORTED"})},d={[t.v.SETTINGS_WIFI]:e=>e?"COMMON_LOCKED_FEATURE_AP_PRECONFIGURED":"COMMON_LOCKED_FEATURE_AP",[t.v.SETTINGS_NETWORKS]:e=>e?"COMMON_LOCKED_FEATURE_GW_OR_SW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW_OR_SW_OR_AP",[t.v.SETTINGS_INTERNET]:e=>e?"COMMON_LOCKED_FEATURE_GW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW",[t.v.SETTINGS_TELEPORT]:e=>e?"COMMON_LOCKED_FEATURE_GW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW",[t.v.SETTING_ROUTING]:e=>e?"COMMON_LOCKED_FEATURE_GW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW",[t.v.SETTINGS_SECURITY]:e=>e?"COMMON_LOCKED_FEATURE_GW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW",[t.v.SETTINGS_ETHERNET_PORTS]:e=>e?"COMMON_LOCKED_FEATURE_GW_OR_SW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW_OR_SW",[t.v.SETTINGS_WIFI_SPEED_LIMIT_PROFILES]:e=>e?"COMMON_LOCKED_FEATURE_AP_PRECONFIGURED":"COMMON_LOCKED_FEATURE_AP",[t.v.NETWORK_OBJECTS]:e=>e?"COMMON_LOCKED_FEATURE_GW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW",[t.v.SETTINGS_VPN]:e=>e?"COMMON_LOCKED_FEATURE_GW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW",[t.v.SETTINGS_POLICY]:e=>e?"COMMON_LOCKED_FEATURE_GW_OR_SW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW_OR_SW",[t.v.SETTINGS_POLICY_ACL]:e=>e?"COMMON_LOCKED_FEATURE_GW_OR_SW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW_OR_SW",[t.v.SETTINGS_POLICY_QOS]:e=>e?"COMMON_LOCKED_FEATURE_GW_OR_SW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW_OR_SW",[t.v.SETTINGS_POLICY_NAT]:e=>e?"COMMON_LOCKED_FEATURE_GW_OR_SW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW_OR_SW",[t.v.SETTINGS_POLICY_DNS]:e=>e?"COMMON_LOCKED_FEATURE_GW_OR_SW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW_OR_SW",[t.v.SETTINGS_POLICY_PORT_FORWARDING]:e=>e?"COMMON_LOCKED_FEATURE_GW_OR_SW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW_OR_SW",[t.v.SETTINGS_POLICY_FIREWALL]:e=>e?"COMMON_LOCKED_FEATURE_GW_OR_SW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW_OR_SW",[t.v.SETTINGS_POLICY_ROUTE]:e=>e?"COMMON_LOCKED_FEATURE_GW_OR_SW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW_OR_SW"}},982631(e,_,n){n.d(_,{r:()=>s});var i=n(602086),t=n(977872),a=n(92781),r=n(519372);function s(e){const _=(0,t.d4)(a.C);return(0,i.useMemo)(()=>(0,r.A)(e,_),[e,_])}},727716(e,_,n){n.d(_,{W:()=>l,U:()=>c});var i=n(222102),t=n(968518),a=n(776951),r=n(571795),s=n(274816),E=n(904614);const O=Object.values(E._$);var o=n(754924),d=n(220700);const c=(0,i.Mz)(o.U$,s.b,(e,_)=>{if(!_.wlanConfigurations?.length)return!0;const n=_.apGroups.find(d.K5);if(!n)return!1;if(0===n.device_macs.length){const n=(0,d.Xf)(e,_.isMeshingEnabled,_.isAutoLinkEnabled),i=_.wlanConfigurations.flatMap(({wlan_bands:e=[]})=>e);return t.A.filter(e=>i.filter(_=>_===e).length<n).length>0}return _.adoptedAps.some(e=>O.some(n=>!(0,r.Ly)((0,a.d)((0,r.vm)((0,r.bT)((0,r.wA)(),[n]),e.mac),_),{})))}),l=(0,i.Mz)(o.U$,s.b,(e,_)=>{const n=_.apGroups.find(d.K5);if(!n)return[];if(0===n.device_macs.length){const n=(0,d.Xf)(e,_.isMeshingEnabled,_.isAutoLinkEnabled),i=_.wlanConfigurations.flatMap(({wlan_bands:e=[]})=>e);return t.A.filter(e=>e!==E._$.AX&&i.filter(_=>_===e).length<n).sort()}return O.filter(e=>_.adoptedAps.some(n=>!(0,r.zY)((0,a.d)({ap_group_mode:E.qq.DEVICES,ap_specific_macs:[n.mac],wlan_bands:[e]},_),{})))})},264570(e,_,n){n.d(_,{P:()=>t});var i=n(635187);function t(e,_,n){const t=URL.createObjectURL(_),a=document.createElement("a");a.id=n,a.href=t,a.download=e.replaceAll(/[^A-Za-z0-9_\-.]/g,i.jr),document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(t)}},641645(e,_,n){n.d(_,{EJ:()=>O,gy:()=>s,oP:()=>r,pi:()=>a,q8:()=>E,t:()=>t});var i=n(477909);const t=60,a=24,r=({minuteOfDay:e,use24HourFormat:_,formatMessage:n})=>{const i=Math.floor(e/60);return`${String(_?i:i%12||12).padStart(2,"0")}:${String(e%t).padStart(2,"0")}${_?"":` ${n({id:i>=12?"COMMON_PM":"COMMON_AM"})}`}`},s=(e,_,n)=>{const a=Math.max(1,Math.min(60,Math.floor(60/_))),s=Math.floor(60/a);return(0,i.A)(0,24).flatMap(_=>(0,i.A)(a).map(i=>{const a=i*s;return{label:r({use24HourFormat:e,formatMessage:n,minuteOfDay:_*t+a}),value:60*_+ +a}}))},E=e=>6e4*Math.round(e/6e4),O=(e,_)=>{const n=+(e/1e3).toFixed(1),i=+(n/1e3).toFixed(1),t=+(n/6e4).toFixed(1);return n<1e3?`${n} ${_({id:"COMMON_UNIT_MS"})}`:i<60?`${i} ${_({id:"COMMON_UNIT_S"})}`:`${t} ${_({id:"COMMON_UNIT_MIN"})}`}}}]);