"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[81915],{183504(e,_,n){n.d(_,{L:()=>o});var a=n(222102),t=n(15989),s=n(401042),i=n(789803);const r=(0,t.uh)((0,i.N)()),o=(0,a.Mz)(r,s.i6)},492868(e,_,n){n.d(_,{J:()=>o});var a=n(222102),t=n(15989),s=n(401042),i=n(665479);const r=(0,t.uh)((0,i.T)()),o=(0,a.Mz)(r,s.kh)},952116(e,_,n){n.d(_,{JT:()=>i,W1:()=>r,sg:()=>o});var a=n(222102),t=n(15989),s=n(66647);const i=(0,a.Mz)(({models:e})=>(0,t.Lt)((0,s.H)(),e),e=>e?.data??{wpa3_supported:!1,"6ghz_band_supported":!1}),r=(0,a.Mz)(i,({wpa3_supported:e})=>e),o=(0,a.Mz)(i,e=>e["6ghz_band_supported"])},563674(e,_,n){n.d(_,{EA:()=>c,G6:()=>E,Km:()=>r,ME:()=>s,Nq:()=>A,Sl:()=>l,Up:()=>d,bc:()=>O,ne:()=>o,pE:()=>i,t1:()=>t});var a=n(904614);const t=({security:e})=>e===a.Hs.WEP,s=({security:e})=>e===a.Hs.WPA_ENTERPRISE,i=({security:e})=>e===a.Hs.WPA_PERSONAL,r=({wpa_enc:e})=>e===a.Jl.AUTO,o=({security:e})=>e===a.Hs.HOTSPOT_2_OSEN,c=({mac_filter_enabled:e})=>e,d=(e,_)=>e&&[...new Set(e.filter(({is_guest:e})=>_?!!e:!e).map(({name:e})=>e))],E=e=>{switch(e){case a.Tl.PAP:case a.Tl.CHAP:case a.Tl.MSCHAP:case a.Tl.MSCHAP_V2:return 2;case a.Tl.SIM:case a.Tl.USIM:case a.Tl.CERTIFICATE:case a.Tl.USERNAME_PASSWORD:return 5;default:return}},l=e=>{switch(e){case a.Tl.PAP:case a.Tl.SIM:return 1;case a.Tl.CHAP:case a.Tl.USIM:return 2;case a.Tl.MSCHAP:return 3;case a.Tl.MSCHAP_V2:return 4;case a.Tl.CERTIFICATE:return 6;case a.Tl.USERNAME_PASSWORD:return 7;default:return}},O=e=>{const _=`${e.auth_id}:${e.auth_val}`;if(Object.values(a.Tl).includes(_))return _};function A(e){return Object.values(a.Ir).includes(e?.attr_hidden_id)}},428792(e,_,n){n.d(_,{F:()=>o,T:()=>d});var a=n(222102),t=n(15989),s=n(401042),i=n(549059);const r=(0,t.uh)((0,i.P)()),o=(0,a.Mz)(r,s.kh),c=(0,t.uh)((0,i.L)()),d=(0,a.Mz)(c,s.kh)},474831(e,_,n){var a,t,s,i;n.d(_,{A:()=>a,LM:()=>t,aH:()=>s}),function(e){e.OFF="off",e.AUTO="auto",e.CUSTOM="custom"}(a||(a={})),function(e){e.ALL="all",e.SPECIFIC="specific",e.GROUP="group"}(t||(t={})),function(e){e.ALL="all",e.SPECIFIC="specific",e.NONE="none"}(s||(s={})),function(e){e.LOW="low",e.MEDIUM="medium",e.HIGH="high"}(i||(i={}))},27103(e,_,n){n.d(_,{A:()=>l});var a=n(274934),t=n(602086),s=n(526744),i=n(309130),r=n(927728),o=n(753959),c=n(100978),d=n(602097),E=n(470070);const l=({list:e,messageId:_})=>{const[n,l]=(0,t.useState)(!1),O=n?e.length:3;return(0,a.jsx)(d.A,{in:!0,children:(0,a.jsx)(o.A,{children:(0,a.jsxs)(c.A,{flexDirection:"column",gap:i.YC,alignItems:"flex-start",children:[(0,a.jsx)(E.sA,{id:_,values:{count:e.length}}),(0,a.jsx)(r.A,{children:e.slice(0,O).map((e,_)=>(0,a.jsx)("li",{children:e},`${e} + ${_+1}`))}),e.length>3?(0,a.jsx)(s.A,{type:"button",onClick:()=>l(e=>!e),variant:"inline",children:(0,a.jsx)(E.sA,n?{id:"COMMON_SHOW_LESS"}:{id:"COMMON_SHOW_X_MORE",values:{value:e.length-3}})}):null]})})})}},901389(e,_,n){n.d(_,{A:()=>o});var a=n(274934),t=n(505817),s=n(711950),i=n(263705),r=n(612389);const o=({children:e,..._})=>{const{themeName:n}=(0,i.u)();return(0,a.jsx)(r.A,{icon:(0,a.jsx)(s.A,{variant:"fill",size:"original",color:t.Ay[`desktop-color-orange-06-${n}`]}),description:e,..._})}},602097(e,_,n){n.d(_,{A:()=>c});var a=n(274934),t=n(602086),s=n(786200),i=n(409844),r=n(309130);const o=(e,_)=>i.AH`
  &-appear,
  &-enter {
    opacity: 0;
    display: flex !important;
    transform: translateY(-${r.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: ${r.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;
  }
`,c=(0,t.memo)(({timeout:e=300,in:_=!1,flexDirection:n,padding:i=`0 0 ${r.fS}`,wrap:c=!1,children:d,...E})=>{const l=(0,t.useRef)(null);return c?(0,a.jsx)(s.A,{nodeRef:l,appear:_,in:_,timeout:e,classNames:o(n,i),mountOnEnter:!0,...E,children:(0,a.jsx)("div",{children:d})}):(0,a.jsx)(a.Fragment,{children:t.Children.map(d,t=>(0,a.jsx)(s.A,{nodeRef:l,appear:_,in:_,timeout:e,classNames:o(n,void 0),mountOnEnter:!0,...E,children:null===t?(0,a.jsx)("div",{}):t}))})})},416243(e,_,n){n.d(_,{A:()=>O});var a=n(274934),t=n(977872),s=n(566056),i=n(347625),r=n(309130),o=n(156007),c=n(100978),d=n(974390),E=n(470070),l=n(754924);const O=({enabled:e,mac:_})=>{const n=(0,t.d4)((0,l.tG)(_));return n?.mac?(0,a.jsx)(s.A,{symbol:(0,a.jsx)(c.A,{alignItems:"center",opacity:e?void 0:r.xN,children:(0,a.jsx)(d.A,{width:20,height:20,model:n.model})}),children:(0,a.jsx)(o.A,{enabled:e,children:(0,i.Q)(n)||(0,a.jsx)(E.sA,{id:"COMMON_FALLBACK"})})}):null}},550883(e,_,n){n.d(_,{A:()=>l});var a=n(274934),t=n(977872),s=n(775250),i=n(347625),r=n(309130),o=n(100978),c=n(974390),d=n(470070),E=n(754924);const l=({enabled:e,mac:_})=>{const n=(0,t.d4)(E.ID).find(e=>e.mac===_);return n?(0,a.jsxs)(o.A,{gap:r.kc,alignItems:"center",children:[(0,a.jsx)(o.A,{alignItems:"center",opacity:e?void 0:r.xN,children:(0,a.jsx)(c.A,{width:20,height:20,model:n.model})}),(0,a.jsx)(s.A,{isTruncated:!0,variant:"inherit",children:(0,i.Q)(n)||(0,a.jsx)(d.sA,{id:"COMMON_FALLBACK"})})]}):null}},392937(e,_,n){n.d(_,{Ay:()=>A,hK:()=>E,wi:()=>d});var a=n(274934),t=n(843871),s=n(526744),i=n(247816),r=n(309130),o=n(470070),c=n(384783);const d=(0,i.A)("footer")`
  display: flex;
  flex-direction: row;
  gap: ${r.Ln};
  padding: 0 ${r.Er} ${r.Er};
`,E=(0,i.A)("footer")`
  flex: 1;
`;function l(e,_){return"function"==typeof e?e(_):e}function O(e,_){return null===e?null:e||_}const A=function({onDismiss:e,title:_,size:n,children:i,className:r,secondaryActions:A,primaryActions:u,cancelAction:T,submitAction:S,shouldCloseOnOverlayClick:N,allowOverflow:p,...R}){return(0,a.jsx)(t.l1,{...R,children:t=>(0,a.jsx)(c.A,{size:n,onRequestClose:e,title:_,className:r,contentElement:(e,_)=>(0,a.jsx)("div",{...e,children:(0,a.jsx)("form",{onSubmit:t.handleSubmit,children:_})}),allowOverflow:p,shouldCloseOnOverlayClick:N??!t.dirty,footer:(0,a.jsxs)(d,{children:[l(A,t),(0,a.jsx)(E,{}),l(u,t),l(O("function"==typeof T?T(t):T,(0,a.jsx)(s.A,{type:"button",onClick:e,children:(0,a.jsx)(o.sA,{id:"COMMON_ACTION_CANCEL"})})),t),l(O("function"==typeof S?S(t):S,(0,a.jsx)(s.A,{type:"submit",variant:"primary",children:(0,a.jsx)(o.sA,{id:"COMMON_ACTION_APPLY_CHANGES"})})),t)]}),children:l(i,t)})})}},271948(e,_,n){n.d(_,{A:()=>d});var a=n(274934),t=n(602086),s=n(927728),i=n(470070),r=n(179566);const o=e=>e===r.$y.PORT_DISABLED?"WIFI_PORT_DISABLED_WARNING_SINGLE":"WIFI_VLAN_NOT_TAGGED_WARNING_SINGLE",c=(e,_)=>e&&_?"WIFI_PORT_MIXED_WARNING_HEADER":e?"WIFI_PORT_DISABLED_WARNING_HEADER":"WIFI_VLAN_NOT_TAGGED_WARNING_HEADER",d=({conflicts:e,networkName:_})=>{const n=(0,t.useMemo)(()=>e.slice(0,5),[e]),d=e.length-5;if(1===e.length){const{apName:n,switchName:t,portIdx:s,reason:r}=e[0];return(0,a.jsx)(i.sA,{id:o(r),values:{networkName:_,apName:n,switchName:t,port:s}})}const E=e.some(e=>e.reason===r.$y.PORT_DISABLED),l=e.some(e=>e.reason===r.$y.VLAN_NOT_TAGGED);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.sA,{id:c(E,l),values:{networkName:_}}),(0,a.jsx)(s.A,{children:n.map(({apMac:e,apName:_})=>(0,a.jsx)("li",{children:_},e))}),d>0?(0,a.jsx)(i.sA,{id:"COMMON_X_MORE",values:{count:d}}):null]})}},686692(e,_,n){n.d(_,{Ac:()=>O,Dh:()=>A,T9:()=>l,UV:()=>E,_N:()=>a,_t:()=>d,aP:()=>u,dD:()=>s,hE:()=>c,qe:()=>o,vF:()=>r,w:()=>i});var a,t=n(455425);!function(e){e.ALL="all",e.GROUP="group",e.SPECIFIC="specific"}(a||(a={}));const s=1,i=5,r=60,o=-80,c=-75,d=-60,E=-90,l=-88,O=-70;var A;!function(e){e[e.DEFAULT=3600]="DEFAULT",e[e.DISABLED=0]="DISABLED",e[e.MAX=t.CW]="MAX",e[e.MIN=60]="MIN"}(A||(A={}));const u=["multicast_to_unicast_enabled","mdns_proxy","private_preshared_keys","multicast_and_broadcast_blocker","mlo_enabled","band_steering_enabled","hide_ssid_enabled","client_device_isolation_enabled","proxy_arp_enabled","bss_transition_enabled","uapsd_enabled","fast_roaming_enabled","wifi_speed_limit","dtim_period","schedule","minimum_data_rate_control","high_security_192_bit_mode_enabled","group_rekey_interval","das_dac_coa_enabled","radius_mac_authentication","nas_id","ccmp_encryption_enabled","wep_key","wep_key_index","radius_profile_id","sae_anti_clogging_threshold","sae_sync_time","mac_address_filter","securityProtocol","pmf_mode","advertise_device_name_in_beacon","dns_assistance","iot_channel_lock","iot_dtim_lock","handoff_suggestions","enhanced_iot"]},413889(e,_,n){n.d(_,{A:()=>S});var a=n(274934),t=n(241792),s=n(602086),i=n(266824),r=n(635891),o=n(260334),c=n(121713),d=n(833466),E=n(309130),l=n(164487),O=n(597750),A=n(100978),u=n(470070);const T=/^_[a-zA-Z0-9._-]+\._(tcp|udp)(\.local)?$/i,S=({existingCustomServices:e,onSubmit:_,tooltip:n})=>{const{formatMessage:S}=(0,u.tz)(),N=(0,c.m)({schema:t.Ik({serviceName:t.Yj().min(1).max(32),address:t.Yj().min(1).regex(T,{message:(0,o.rn)("SETTINGS_MDNS_SERVICE_ID_VALIDATION")}).refine(_=>!e?.some(e=>e.address===_),{message:S({id:"SETTINGS_VALUE_UNIQUE"})})}),defaultValues:{serviceName:"",address:""}}),p=(0,s.useCallback)(()=>{N.handleSubmit(({address:e,serviceName:n})=>{_({name:n,address:e}),N.setFocus("serviceName"),N.reset()})()},[N,_]);return(0,s.useEffect)(()=>{const e=e=>{"Enter"===e.key&&(e.preventDefault(),p())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[N,_,p]),(0,a.jsxs)(O.A,{children:[(0,a.jsx)(l.A,{htmlFor:"services.predefined_ids",tooltip:n,tooltipProps:{portal:!0,isInteractive:!0},children:(0,a.jsx)(u.sA,{id:"SETTINGS_CUSTOM_SERVICE"})}),(0,a.jsxs)(A.A,{flexDirection:"row",gap:E.kc,alignItems:"flex-start",children:[(0,a.jsx)(A.A,{flex:"1",flexGrow:1,flexShrink:1,overflow:"hidden",children:(0,a.jsx)(r.A,{control:N.control,name:"serviceName",placeholder:S({id:"SETTINGS_LABEL"})})}),(0,a.jsx)(A.A,{flex:"1",flexGrow:1,flexShrink:1,overflow:"hidden",children:(0,a.jsx)(r.A,{control:N.control,name:"address",placeholder:S({id:"SETTINGS_SERVICE_NAME"})})}),(0,a.jsx)(A.A,{height:d.b,children:(0,a.jsx)(i.A,{fontSize:"medium",type:"button",onPress:p,children:(0,a.jsx)(u.sA,{id:"COMMON_ACTION_ADD"})})})]})]})}},179566(e,_,n){n.d(_,{$y:()=>a,AP:()=>S,Ay:()=>N});var a,t=n(602086),s=n(977872),i=n(42220),r=n(969819),o=n(423564),c=n(197571),d=n(754924),E=n(95546),l=n(544691),O=n(904614),A=n(220700),u=n(725634);!function(e){e.VLAN_NOT_TAGGED="vlan_not_tagged",e.PORT_DISABLED="port_disabled"}(a||(a={}));const T=(e,_)=>{const n=(0,s.d4)(c.ye),i=(0,s.d4)(d.Kh),l=(0,t.useMemo)(()=>{const _=n.find(_=>_._id===e);return _&&(0,o.nz)(_)},[n,e]);return(0,t.useMemo)(()=>{if(!e||l)return[];const n=[];for(const t of _){const _=i.get(t);if(!_)continue;const{remotePort:s}=(0,r.uj)(_,i);if(!s)continue;const o=(0,E.Rj)(s),c=!o&&!(0,r.af)(s,e);if(o||c){const e=_.uplink?.uplink_mac??_.last_uplink?.uplink_mac,r=e?i.get(e):void 0;n.push({apMac:t,apName:_.name||_.model||t,switchName:r?.name||r?.model||e||"",portIdx:s.port_idx,reason:o?a.PORT_DISABLED:a.VLAN_NOT_TAGGED})}}return n},[e,l,_,i])},S=e=>{const _=(0,s.d4)(l.K8),n=(0,t.useMemo)(()=>{switch(e.ap_group_mode){case O.qq.ALL:return new Set(_.find(A.K5)?.device_macs||[]);case O.qq.GROUPS:case O.qq.DEVICES:{const n=new Set(e.ap_group_ids??[]);return new Set(_.filter(({_id:e})=>n.has(e)).flatMap(e=>e.device_macs||[]))}default:return new Set}},[e.ap_group_mode,e.ap_group_ids,_]);return T(e.networkconf_id,n)},N=e=>{const{control:_}=e,n=(0,i.FH)({control:_,name:"network_id"}),a=(0,i.FH)({control:_,name:"broadcasting_aps"}),r=(0,s.d4)(l.K8),o=(0,t.useMemo)(()=>(0,u.w)(a,{apGroups:r}),[a,r]);return T(n,o)}},725634(e,_,n){n.d(_,{w:()=>s});var a=n(220700),t=n(686692);const s=(e,_)=>{switch(e?.type){case t._N.ALL:return new Set(_.apGroups.find(a.K5)?.device_macs||[]);case t._N.SPECIFIC:return new Set(e.ap_macs);case t._N.GROUP:{const n=new Set(e.group_ids??[]);return new Set(_.apGroups.filter(({_id:e})=>n.has(e)).flatMap(e=>e?.device_macs||[]))}default:return new Set}}},274816(e,_,n){n.d(_,{b:()=>l});var a=n(222102),t=n(430328),s=n(968518),i=n(904614),r=n(910577),o=n(952116),c=n(291935),d=n(754924),E=n(544691);const l=(0,t.WY)()((0,a.Mz)(E.K8,d.kx,o.JT,r.Ag,c.Zc,c.L_,(e,_,n,a,t,r)=>({apGroups:e,adoptedAps:_.map(({mac:e,model:_,radio_table:n,support_wifi6e:a,device_mode_override:t})=>({mac:e,model:_,radio_table:n,support_wifi6e:a,device_mode_override:t})),wlanCapabilities:n,wlanConfigurations:a.map(({_id:_,ap_group_mode:n,ap_group_ids:a,wlan_bands:t=s.A,private_preshared_keys_enabled:r})=>({_id:_,ap_group_mode:n,ap_specific_macs:n===i.qq.DEVICES?e.filter(e=>a.includes(e._id)).flatMap(e=>e.device_macs||[]):[],ap_group_ids:a,wlan_bands:t,private_preshared_keys_enabled:r})),isMeshingEnabled:t,isAutoLinkEnabled:r})),e=>e)},689159(e,_,n){var a;n.d(_,{p:()=>a}),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"}(a||(a={}))},571795(e,_,n){n.d(_,{GC:()=>i,Ly:()=>r,bT:()=>l,bx:()=>c,qm:()=>o,rY:()=>E,uc:()=>O,vm:()=>d,wA:()=>A,zY:()=>s});var a=n(200500),t=n(904614);function s(e,_){return e.find(e=>Object.entries(_).every(([_,n])=>e[_]===n))}function i(e,_){return e.filter(e=>Object.entries(_).every(([_,n])=>e[_]===n))}function r(e,_){return!!s(e,_)}const o=(e,_)=>({...e,ap_group_mode:t.qq.DEVICES,ap_specific_macs:[...e.ap_specific_macs||[],_]});function c(e,_){return{...e,ap_group_mode:t.qq.GROUPS,ap_group_ids:[_]}}const d=(e,_)=>({...e,ap_group_mode:t.qq.DEVICES,ap_specific_macs:[_]}),E=e=>({...e,ap_group_mode:t.qq.ALL}),l=(e,_)=>({...e,wlan_bands:_}),O=(e,_)=>({...e,wlan_bands:(0,a.A)([...e.wlan_bands||[],..._]).sort()}),A=()=>({ap_group_mode:t.qq.ALL})},776951(e,_,n){n.d(_,{d:()=>O});var a=n(904614),t=n(175650),s=n(689159);const i=(e,_)=>{const n=_.adoptedAps.filter(({mac:e})=>_.broadcastingMacs.has(e));return e.wlan_bands?.includes(a._$.AX)?n.filter(e=>(0,t.Ng)(e)).map(e=>({type:s.p.WLAN_BAND_REGION_BLOCKED,band:a._$.AX,deviceMac:e.mac})):[]},r=(e,_)=>e.wlan_bands?.includes(a._$.AX)&&!_.wlanCapabilities?.wpa3_supported?[{type:s.p.WLAN_BAND_NOT_SUPPORTED,band:a._$.AX}]:[];var o=n(220700);const c=(e,_)=>{const n=_.wlanConfigurationsWithBroadcastingMacs.filter(({configuration:{_id:_}})=>_!==e._id),a=[{configuration:e,broadcastingMacs:_.broadcastingMacs},...n];return _.broadcastingDevices.flatMap(n=>{const t=(0,o.Xf)(n,_.isMeshingEnabled,_.isAutoLinkEnabled);return(e.wlan_bands||[]).flatMap(e=>{const _=a.filter(({configuration:_,broadcastingMacs:a})=>a.has(n.mac)&&(_.wlan_bands||[]).includes(e)).length;return t>=_?[]:[{type:s.p.SSID_LIMIT_EXCEEDED,band:e,deviceMac:n.mac,limit:t,actualSsidCount:_}]})})},d=e=>e.wlan_bands?.includes(a._$.AX)&&e.private_preshared_keys_enabled?[{type:s.p.PPSK_NOT_SUPPORTED_WITH_BAND,band:a._$.AX}]:[],E=(e,_)=>e.wlan_bands?.includes(a._$.AX)&&!_.broadcastingDevices.some(t.bV)?[{type:s.p.NO_DEVICE_SUPPORTS_BAND,band:a._$.AX}]:[],l=(e,_)=>{switch(e.ap_group_mode){case a.qq.ALL:return new Set(_.apGroups.find(o.K5)?.device_macs||[]);case a.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 a.qq.GROUPS:return new Set(_.apGroups.filter(({_id:_})=>e.ap_group_ids?.includes(_)).flatMap(e=>e?.device_macs||[]));default:return new Set}},O=(e,_)=>{const n=l(e,{apGroups:_.apGroups}),a={..._,wlanConfigurationsWithBroadcastingMacs:_.wlanConfigurations.map(e=>({configuration:e,broadcastingMacs:l(e,{apGroups:_.apGroups})})),broadcastingMacs:n,broadcastingDevices:_.adoptedAps.filter(({mac:e})=>n.has(e))};return[...c(e,a),...r(e,a),...i(e,a),...d(e),...E(e,a)]}},968007(e,_,n){n.d(_,{z:()=>t});var a=n(217431);const t={[a.r.HOTSPOT_2_OSEN]:"SETTINGS_WIFI_PROTOCOL_OPTIONS_HOTSPOT_2_OSEN",[a.r.OPEN]:"SETTINGS_WIFI_FORM_VALUES_SECURITY_PROTOCOL_OPEN",[a.r.WEP]:"SETTINGS_WIFI_FORM_VALUES_SECURITY_PROTOCOL_WEP",[a.r.WPA12_PERSONAL]:"SETTINGS_WIFI_FORM_VALUES_SECURITY_PROTOCOL_AUTO_PERSONAL",[a.r.WPA12_ENTERPRISE]:"SETTINGS_WIFI_FORM_VALUES_SECURITY_PROTOCOL_AUTO_ENTERPRISE",[a.r.WPA1_PERSONAL]:"SETTINGS_WIFI_FORM_VALUES_SECURITY_PROTOCOL_WPA1_PERSONAL",[a.r.WPA1_ENTERPRISE]:"SETTINGS_WIFI_FORM_VALUES_SECURITY_PROTOCOL_WPA1_ENTERPRISE",[a.r.WPA2_PERSONAL]:"SETTINGS_WIFI_FORM_VALUES_SECURITY_PROTOCOL_WPA2_PERSONAL",[a.r.WPA2_ENTERPRISE]:"SETTINGS_WIFI_FORM_VALUES_SECURITY_PROTOCOL_WPA2_ENTERPRISE",[a.r.WPA23_PERSONAL]:"SETTINGS_WIFI_FORM_VALUES_SECURITY_PROTOCOL_WPA2_WPA3",[a.r.WPA23_ENTERPRISE]:"SETTINGS_WIFI_FORM_VALUES_SECURITY_PROTOCOL_WPA2_WPA3_ENTERPRISE",[a.r.WPA3_PERSONAL]:"SETTINGS_WIFI_FORM_VALUES_SECURITY_PROTOCOL_WPA3_PERSONAL",[a.r.WPA3_ENTERPRISE]:"SETTINGS_WIFI_FORM_VALUES_SECURITY_PROTOCOL_WPA3_ENTERPRISE"}},700149(e,_,n){n.d(_,{By:()=>a,Ko:()=>i,Qb:()=>s,uE:()=>t,xh:()=>r});const a="800px",t="832px",s="1362px",i="664px",r="100px"},968373(e,_,n){n.d(_,{A:()=>r});var a=n(274934),t=n(728091),s=n(42220),i=n(184931);const r=({control:e,name:_,...n})=>{const{field:r}=(0,s.as)({control:e,name:_}),o=(0,i.mQ)(),c="number"==typeof n.minValue&&"number"==typeof r.value?Math.max(n.minValue,r.value):r.value,d="number"==typeof n.maxValue&&"number"==typeof c?Math.min(n.maxValue,c):c;return(0,a.jsx)(t.A,{...n,style:{width:"100%"},value:d,onChange:e=>{const _=Array.isArray(e)?e[0]:e;"number"!=typeof _||_===r.value||Number.isNaN(_)||r.onChange(_)},isDisabled:o})}},742012(e,_,n){n.d(_,{u:()=>r});var a=n(602086),t=n(977872),s=n(92781),i=n(519372);function r(e){const _=(0,t.d4)(s.C);return(0,a.useMemo)(()=>(0,i.TM)(e,_),[e,_])}},23964(e,_,n){n.d(_,{A:()=>p});var a=n(274934),t=n(602086),s=n(977872),i=n(453117),r=n(526744),o=n(247368),c=n(982631),d=n(191105),E=n(742012),l=n(700149),O=n(309130),A=n(100978),u=n(612389),T=n(470070),S=n(158402);const N={maxWidth:l.By,margin:`${O.Ln} 0 0 0`,style:{flex:0}},p=({feature:e,children:_,rowProps:n,skipApproval:l=!1,renderWarning:p})=>{const R=(0,s.wA)(),I=(0,E.u)(e),C=(0,c.r)(e),m=(0,t.useCallback)(()=>{R((0,S.ct)(e))},[R,e]),M=C?null:(0,a.jsx)(u.A,{icon:(0,a.jsx)(o.A,{variant:"fill",size:"original",isActive:!0}),description:(0,a.jsx)(T.sA,{id:d.b[e]?.(I||l)||"COMMON_LOCKED_FEATURE"}),action:I||l?null:(0,a.jsx)(r.A,{type:"button",onClick:m,variant:"inline",children:(0,a.jsx)(T.sA,{id:"COMMON_LOCKED_PRECONFIGURE"})})});return(0,a.jsxs)(a.Fragment,{children:[M?(0,a.jsx)(a.Fragment,{children:p?p({children:M}):(0,a.jsx)(i.A,{unlimitedWidth:!0,...N,...n,children:M})}):null,_?(0,a.jsx)(i.A,{unlimitedWidth:!0,disabled:!C&&!I&&!l,marginBottom:0,children:(0,a.jsx)(A.A,{width:"100%",flexDirection:"column",gap:O.Ln,children:_})}):null]})}},191105(e,_,n){n.d(_,{D:()=>d,b:()=>E});var a=n(274934),t=n(670241),s=n(470070),i=n(502129),r=n(43506),o=n(969288);const c=()=>{const e=(0,r.A)(o.tz);return(0,a.jsx)(i.A,{to:e,children:(0,a.jsx)(s.sA,{id:"COMMON_ACTION_MANAGE"})})},d={[t.v.SETTINGS_POLICY_ACL]:(0,a.jsx)(s.sA,{id:"SETTINGS_POLICY_TYPE_ACL_UNSUPPORTED"}),[t.v.SETTINGS_POLICY_QOS]:(0,a.jsx)(s.sA,{id:"SETTINGS_ZONE_BASED_FIREWALL_REQUIRED",values:{link:(0,a.jsx)(c,{})}}),[t.v.SETTINGS_POLICY_FIREWALL]:(0,a.jsx)(s.sA,{id:"SETTINGS_ZONE_BASED_FIREWALL_REQUIRED",values:{link:(0,a.jsx)(c,{})}}),[t.v.SETTINGS_POLICY_NAT]:(0,a.jsx)(s.sA,{id:"SETTINGS_NAT_NOT_SUPPORTED"}),[t.v.SETTINGS_POLICY_DNS]:(0,a.jsx)(s.sA,{id:"SETTINGS_DNS_NOT_SUPPORTED"}),[t.v.SETTINGS_POLICY_PORT_FORWARDING]:(0,a.jsx)(s.sA,{id:"SETTINGS_PORT_FORWARDING_NOT_SUPPORTED"}),[t.v.SETTINGS_POLICY_ROUTE]:(0,a.jsx)(s.sA,{id:"SETTINGS_ROUTING_NOT_SUPPORTED"})},E={[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:()=>r});var a=n(602086),t=n(977872),s=n(92781),i=n(519372);function r(e){const _=(0,t.d4)(s.C);return(0,a.useMemo)(()=>(0,i.A)(e,_),[e,_])}},727716(e,_,n){n.d(_,{W:()=>O,U:()=>l});var a=n(222102),t=n(968518),s=n(776951),i=n(571795),r=n(274816),o=n(904614);const c=Object.values(o._$);var d=n(754924),E=n(220700);const l=(0,a.Mz)(d.U$,r.b,(e,_)=>{if(!_.wlanConfigurations?.length)return!0;const n=_.apGroups.find(E.K5);if(!n)return!1;if(0===n.device_macs.length){const n=(0,E.Xf)(e,_.isMeshingEnabled,_.isAutoLinkEnabled),a=_.wlanConfigurations.flatMap(({wlan_bands:e=[]})=>e);return t.A.filter(e=>a.filter(_=>_===e).length<n).length>0}return _.adoptedAps.some(e=>c.some(n=>!(0,i.Ly)((0,s.d)((0,i.vm)((0,i.bT)((0,i.wA)(),[n]),e.mac),_),{})))}),O=(0,a.Mz)(d.U$,r.b,(e,_)=>{const n=_.apGroups.find(E.K5);if(!n)return[];if(0===n.device_macs.length){const n=(0,E.Xf)(e,_.isMeshingEnabled,_.isAutoLinkEnabled),a=_.wlanConfigurations.flatMap(({wlan_bands:e=[]})=>e);return t.A.filter(e=>e!==o._$.AX&&a.filter(_=>_===e).length<n).sort()}return c.filter(e=>_.adoptedAps.some(n=>!(0,i.zY)((0,s.d)({ap_group_mode:o.qq.DEVICES,ap_specific_macs:[n.mac],wlan_bands:[e]},_),{})))})},264570(e,_,n){n.d(_,{P:()=>t});var a=n(635187);function t(e,_,n){const t=URL.createObjectURL(_),s=document.createElement("a");s.id=n,s.href=t,s.download=e.replaceAll(/[^A-Za-z0-9_\-.]/g,a.jr),document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL(t)}},641645(e,_,n){n.d(_,{EJ:()=>c,gy:()=>r,oP:()=>i,pi:()=>s,q8:()=>o,t:()=>t});var a=n(477909);const t=60,s=24,i=({minuteOfDay:e,use24HourFormat:_,formatMessage:n})=>{const a=Math.floor(e/60);return`${String(_?a:a%12||12).padStart(2,"0")}:${String(e%t).padStart(2,"0")}${_?"":` ${n({id:a>=12?"COMMON_PM":"COMMON_AM"})}`}`},r=(e,_,n)=>{const s=Math.max(1,Math.min(60,Math.floor(60/_))),r=Math.floor(60/s);return(0,a.A)(0,24).flatMap(_=>(0,a.A)(s).map(a=>{const s=a*r;return{label:i({use24HourFormat:e,formatMessage:n,minuteOfDay:_*t+s}),value:60*_+ +s}}))},o=e=>6e4*Math.round(e/6e4),c=(e,_)=>{const n=+(e/1e3).toFixed(1),a=+(n/1e3).toFixed(1),t=+(n/6e4).toFixed(1);return n<1e3?`${n} ${_({id:"COMMON_UNIT_MS"})}`:a<60?`${a} ${_({id:"COMMON_UNIT_S"})}`:`${t} ${_({id:"COMMON_UNIT_MIN"})}`}}}]);