"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[7109,89965],{38671:(e,t,i)=>{function s(e){return"object"==typeof e&&!!e&&"apiMsg"in e&&"status"in e}i.d(t,{F:()=>s})},48925:(e,t,i)=>{i.d(t,{A:()=>m});var s=i(296540),n=i(217439),r=i(71479),o=i(454195),a=i(566723),_=i(968906),l=i(199582),T=i(311785),E=i(766624),d=i(294303),p=i(689965),c=i(242366);const O=(0,r.A)(p.A,(0,T.A)("isOutlined"))`
  border: ${({theme:e,isOutlined:t})=>`1px solid ${t?e.motifPalette.uBlue06:"transparent"}`};
`,m=({children:e,title:t,tooltip:i,tooltipProps:r,[l.L]:T,titleAction:p,isOutlined:m})=>s.createElement(O,{marginBottom:"none",..._.A.addDataTestId(T),isOutlined:m},s.createElement(d.A,{flexDirection:"column",gap:a.Ln,width:"100%",minHeight:o.b},t?s.createElement(d.A,{alignItems:"center",gap:a.YC,justifyContent:"space-between",width:"100%"},s.createElement(d.A,{gap:a.YC,alignItems:"center"},s.createElement(n.A,{variant:"heading-medium"},t),i?s.createElement(E.A,{description:i,portal:!0,...r}):null),p?s.createElement(d.A,null,p):null):null,e?s.createElement(c.A,null,e):null))},79786:(e,t,i)=>{i.d(t,{m:()=>a});var s=i(349785),n=i(296540),r=i(59116),o=i(870893);function a({schema:e,defaultValues:t,presets:i}){const a=(0,n.useMemo)(()=>i?(0,r.A)(i,e=>e.defaultValues):{},[i]),_=(0,n.useMemo)(()=>({...t,...a}),[a,t]),l=(0,s.mN)({resolver:(0,o.u)(e),shouldFocusError:!0,defaultValues:_,shouldUseNativeValidation:!1,mode:"onTouched"}),T=(0,n.useRef)(_);T.current=_;const E=(0,n.useCallback)((...e)=>{const[t,...i]=e;return l.reset(t?{...t,...a}:T.current,...i)},[a,l]);return{...l,reset:E,formState:{...l.formState,isDirty:!!Object.keys(l.formState.dirtyFields).length,isSubmitting:l.formState.isSubmitting},handleSubmit:(...e)=>l.handleSubmit(e[0],(t,...i)=>{const s=Object.keys(t)[0];if(s)try{const e=document.getElementsByName(s)?.[0];e?.scrollIntoView?.({behavior:"smooth",block:"center"}),e?.focus?.({preventScroll:!0})}catch{}e[1]?.(t,...i)})}}},169568:(e,t,i)=>{var s;i.d(t,{v:()=>s}),function(e){e.SETTINGS_WIFI="settingsWifi",e.SETTINGS_NETWORKS="settingsNetworks",e.SETTINGS_INTERNET="settingsInternet",e.SETTINGS_TELEPORT="settingsTeleport",e.SETTINGS_VPN="settingsVpn",e.SETTINGS_UID_VPN="settingsUidVpn",e.SETTING_ROUTING="settingsRouting",e.SETTINGS_SECURITY="settingsSecurity",e.SETTINGS_ETHERNET_PORTS="settingsEthernetPorts",e.SETTINGS_WIFI_SPEED_LIMIT_PROFILES="settingsWifiSpeedLimitProfiles",e.SETTINGS_RADIUS="settingsRadius",e.NETWORK_OBJECTS="settingsNetworkObjects",e.SETTINGS_PROFILES="settingsProfiles",e.SETTINGS_VPN_CLIENT="vpnClient",e.SETTINGS_CONTENT_FILTER="settingsContentFilter",e.SETTINGS_POLICY="settingsPolicy",e.SETTINGS_POLICY_ACL="settingsPolicyAcl",e.SETTINGS_POLICY_QOS="settingsPolicyQos",e.SETTINGS_POLICY_NAT="settingsPolicyNat",e.SETTINGS_POLICY_DNS="settingsPolicyDns",e.SETTINGS_POLICY_PORT_FORWARDING="settingsPolicyPortForwarding",e.SETTINGS_POLICY_FIREWALL="settingsPolicyFirewall",e.SETTINGS_POLICY_ROUTE="settingsPolicyRoute"}(s||(s={}))},199582:(e,t,i)=>{i.d(t,{L:()=>s});const s="data-testid"},210484:(e,t,i)=>{i.d(t,{A:()=>r});var s=i(71479),n=i(566723);const r=(0,s.A)("div")`
  div {
    flex-wrap: wrap;
  }

  svg {
    max-width: 20px;
    flex: 1;
  }
  span {
    flex: 1;
  }

  span + div:last-child {
    flex-basis: 100%;
    margin-left: ${n.ED};
  }
`},222190:(e,t,i)=>{i.d(t,{A:()=>l});var s=i(349785),n=i(296540),r=i(438628),o=i(566723),a=i(263963),_=i(284428);const l=function({control:e,name:t,label:i,placeholder:l,tooltip:T,tooltipProps:E,contentAfter:d,arrowSize:p,min:c,max:O,step:m,value:I,iconBefore:S,onAfterChange:g,onChange:h}){const N=(0,_.mQ)(),A=(0,a.L_)();return n.createElement(s.xI,{control:e,name:t,render:({field:{ref:e,...a},fieldState:_,formState:R})=>n.createElement(r.A,{type:"number",variant:"secondary",width:"100%",...a,value:I??a.value??"",onChange:e=>{h?h(e,R):a.onChange(e.target.value?.length?+e.target.value:null),g?.(e)},disabled:N,invalid:_.invalid?A((0,s.Jt)(R.errors,t)?.message)||!0:void 0,labelTooltip:T,labelTooltipProps:{style:{opacity:N?o.xN:void 0,...E?.style},...E},label:i,placeholder:l,arrowSize:p,contentAfter:d,iconBefore:S,step:m,min:c,max:O})})}},222588:(e,t,i)=>{i.d(t,{A:()=>n});var s=i(349005),n={settingsGrid:"settingsGrid__mx7XsTpr","settingsGrid-limitedWidth":"settingsGrid-limitedWidth__mx7XsTpr",spotlightBackground:"spotlightBackground__mx7XsTpr","spotlightBackground-light":"spotlightBackground-light__mx7XsTpr","spotlightBackground-dark":"spotlightBackground-dark__mx7XsTpr",settingsGridSeparator:"settingsGridSeparator__mx7XsTpr","settingsGridSeparator-light":"settingsGridSeparator-light__mx7XsTpr","settingsGridSeparator-dark":"settingsGridSeparator-dark__mx7XsTpr",settingsGridRow:"settingsGridRow__mx7XsTpr","settingsGridRow-inline":"settingsGridRow-inline__mx7XsTpr","settingsGridRow-limitedWidth":"settingsGridRow-limitedWidth__mx7XsTpr",settingsGridLabelContainer:"settingsGridLabelContainer__mx7XsTpr","settingsGridLabelContainer-light":"settingsGridLabelContainer-light__mx7XsTpr","settingsGridLabelContainer-dark":"settingsGridLabelContainer-dark__mx7XsTpr","settingsGridLabelContainer-withLabel":"settingsGridLabelContainer-withLabel__mx7XsTpr","settingsGridLabelContainer-limitedWidth":"settingsGridLabelContainer-limitedWidth__mx7XsTpr","settingsGridLabelContainer-selected":"settingsGridLabelContainer-selected__mx7XsTpr",label:"label__mx7XsTpr",labelTooltip:"labelTooltip__mx7XsTpr",labelTooltipSvg:"labelTooltipSvg__mx7XsTpr",settingsGridBadge:"settingsGridBadge__mx7XsTpr","settingsGridBadge-light":"settingsGridBadge-light__mx7XsTpr","settingsGridBadge-dark":"settingsGridBadge-dark__mx7XsTpr",settingsGridHighlight:"settingsGridHighlight__mx7XsTpr","settingsGridHighlight-light":"settingsGridHighlight-light__mx7XsTpr","settingsGridHighlight-dark":"settingsGridHighlight-dark__mx7XsTpr","settingsGridHighlight-offset-xxs":"settingsGridHighlight-offset-xxs__mx7XsTpr","settingsGridHighlight-offset-xs":"settingsGridHighlight-offset-xs__mx7XsTpr","settingsGridHighlight-offset-s":"settingsGridHighlight-offset-s__mx7XsTpr","settingsGridHighlight-offset-m":"settingsGridHighlight-offset-m__mx7XsTpr","settingsGridHighlight-offset-l":"settingsGridHighlight-offset-l__mx7XsTpr","settingsGridHighlight-offset-xl":"settingsGridHighlight-offset-xl__mx7XsTpr","settingsGridHighlight-offset-xxl":"settingsGridHighlight-offset-xxl__mx7XsTpr","settingsGridHighlight-offset-xxxl":"settingsGridHighlight-offset-xxxl__mx7XsTpr","settingsGridHighlight-show":"settingsGridHighlight-show__mx7XsTpr",settingsGridContent:"settingsGridContent__mx7XsTpr","settingsGridContent-column":"settingsGridContent-column__mx7XsTpr","settingsGridContent-limitedWidth":"settingsGridContent-limitedWidth__mx7XsTpr","settingsGridContent-wrap":"settingsGridContent-wrap__mx7XsTpr","settingsGridContent-center":"settingsGridContent-center__mx7XsTpr",labelIcon:"labelIcon__mx7XsTpr","labelIcon-light":"labelIcon-light__mx7XsTpr","labelIcon-dark":"labelIcon-dark__mx7XsTpr","label-hover":"label-hover__mx7XsTpr","label-spotlightHighlight":"label-spotlightHighlight__mx7XsTpr","label-spotlightHighlight-light":"label-spotlightHighlight-light__mx7XsTpr","label-spotlightHighlight-dark":"label-spotlightHighlight-dark__mx7XsTpr",labelText:"labelText__mx7XsTpr","labelText-alignWithIcon":"labelText-alignWithIcon__mx7XsTpr",disabled:"disabled__mx7XsTpr"};(0,s.A)(".settingsGrid__mx7XsTpr{display:flex;flex:1;flex-direction:column;gap:8px;position:relative;width:100%}.settingsGrid-limitedWidth__mx7XsTpr{max-width:864px}.spotlightBackground__mx7XsTpr{height:100%;pointer-events:none;position:absolute;transition:all .2s linear;width:100%;z-index:2}.spotlightBackground-light__mx7XsTpr{background:rgba(0,0,0,.2)}.spotlightBackground-dark__mx7XsTpr{background:rgba(0,0,0,.45)}.settingsGridSeparator__mx7XsTpr{border:none;border-top:1px solid;flex:auto;height:1px;margin:0;width:auto}.settingsGridSeparator-light__mx7XsTpr{border-top-color:rgba(33,35,39,.07)}.settingsGridSeparator-dark__mx7XsTpr{border-top-color:hsla(214,8%,98%,.07)}.settingsGridRow__mx7XsTpr{display:flex;flex:1;flex-direction:column;min-height:32px;position:relative}@media (min-width:568px){.settingsGridRow__mx7XsTpr{flex-direction:row}}.settingsGridRow-inline__mx7XsTpr{flex-direction:row}.settingsGridRow-limitedWidth__mx7XsTpr{max-width:800px}.settingsGridLabelContainer__mx7XsTpr{display:flex}@media (min-width:568px){.settingsGridLabelContainer__mx7XsTpr{flex:1 2 256px}}.settingsGridLabelContainer-light__mx7XsTpr{color:#50565e}.settingsGridLabelContainer-dark__mx7XsTpr{color:#dee0e3}.settingsGridLabelContainer-withLabel__mx7XsTpr{padding-top:22px}.settingsGridLabelContainer-limitedWidth__mx7XsTpr{flex-grow:0;padding-right:calc(16px + 2%)}.settingsGridLabelContainer-selected__mx7XsTpr,.settingsGridLabelContainer-selected__mx7XsTpr>.label__mx7XsTpr{opacity:1}.labelTooltip__mx7XsTpr{display:inline-block;height:20px;margin-left:4px;margin-top:6px;width:20px}.labelTooltipSvg__mx7XsTpr{left:0;pointer-events:auto;position:absolute}.settingsGridBadge__mx7XsTpr{border-radius:4px;display:inline-block;font-size:var(--desktop-font-size-xsmall);margin-left:8px;padding:2px 4px;text-transform:uppercase;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:1px}.settingsGridBadge-light__mx7XsTpr{border:1px solid #f5a524;color:#f5a524}.settingsGridBadge-dark__mx7XsTpr{border:1px solid #e79613;color:#e79613}.settingsGridHighlight__mx7XsTpr{border:2px solid;border-radius:8px;box-shadow:0 0 10px currentColor;display:none;height:100%;left:0;opacity:0;pointer-events:none;position:absolute;top:0;transition:opacity .1s ease,visibility .1s ease;visibility:hidden;width:100%}.settingsGridHighlight-light__mx7XsTpr{color:#e6f1ff}.settingsGridHighlight-dark__mx7XsTpr{color:#05254d}.settingsGridHighlight-offset-xxs__mx7XsTpr{height:calc(100% + 4px);left:-2px;top:-2px;width:calc(100% + 4px)}.settingsGridHighlight-offset-xs__mx7XsTpr{height:calc(100% + 8px);left:-4px;top:-4px;width:calc(100% + 8px)}.settingsGridHighlight-offset-s__mx7XsTpr{height:calc(100% + 16px);left:-8px;top:-8px;width:calc(100% + 16px)}.settingsGridHighlight-offset-m__mx7XsTpr{height:calc(100% + 24px);left:-12px;top:-12px;width:calc(100% + 24px)}.settingsGridHighlight-offset-l__mx7XsTpr{height:calc(100% + 32px);left:-16px;top:-16px;width:calc(100% + 32px)}.settingsGridHighlight-offset-xl__mx7XsTpr{height:calc(100% + 40px);left:-20px;top:-20px;width:calc(100% + 40px)}.settingsGridHighlight-offset-xxl__mx7XsTpr{height:calc(100% + 48px);left:-24px;top:-24px;width:calc(100% + 48px)}.settingsGridHighlight-offset-xxxl__mx7XsTpr{height:calc(100% + 56px);left:-28px;top:-28px;width:calc(100% + 56px)}.settingsGridHighlight-show__mx7XsTpr{display:block;opacity:1;visibility:visible}.settingsGridContent__mx7XsTpr{align-items:flex-start;display:flex;font-size:var(--desktop-font-size-medium);justify-content:flex-start;line-height:24px}@media (min-width:568px){.settingsGridContent__mx7XsTpr{flex:2 1 345px}}.settingsGridContent-column__mx7XsTpr{flex-direction:column;gap:8px}.settingsGridContent-limitedWidth__mx7XsTpr{flex-grow:0}.settingsGridContent-wrap__mx7XsTpr{flex-wrap:wrap}.settingsGridContent-center__mx7XsTpr{align-items:center}.labelIcon__mx7XsTpr{flex:none;height:32px;width:32px}.labelIcon-light__mx7XsTpr{color:#212327}.labelIcon-dark__mx7XsTpr{color:#f9fafa}.label__mx7XsTpr{display:flex;flex-direction:column;opacity:.8;z-index:3}.label-hover__mx7XsTpr{cursor:pointer;transition:opacity .1s ease}.label-hover__mx7XsTpr:hover{opacity:1}.label__mx7XsTpr:not(:first-child){margin-left:12px}.label-spotlightHighlight__mx7XsTpr{border-radius:87px;box-sizing:content-box;transition:all .2s linear}.label-spotlightHighlight-light__mx7XsTpr{background-color:#fff;box-shadow:0 0 7px 8px #fff}.label-spotlightHighlight-dark__mx7XsTpr{background:hsla(0,0%,100%,.22);box-shadow:0 0 4px 8px hsla(0,0%,100%,.22)}span.labelText__mx7XsTpr{line-height:20px;min-height:32px;padding-top:6px}span.labelText-alignWithIcon__mx7XsTpr{margin-top:calc(16px - .6em)}span.labelText__mx7XsTpr:not(:last-child){margin-bottom:2px}.disabled__mx7XsTpr{opacity:.3;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}")},242366:(e,t,i)=>{i.d(t,{A:()=>o});var s=i(296540),n=i(566723),r=i(294303);const o=(0,s.forwardRef)((e,t)=>s.createElement(r.A,{ref:t,flexDirection:"column",gap:n.kc,width:"100%",...e}))},263130:(e,t,i)=>{i.d(t,{A:()=>T});var s=i(296540),n=i(927099),r=i(71479),o=i(998837),a=i(566723),_=i(294303);const l=(0,r.A)(n.A)`
  line-height: 20px;
`,T=({icon:e,description:t,action:i,footer:n,background:r,...T})=>{const E=(0,o.u)().motifPalette.neutral01;return s.createElement(_.A,{flexGrow:1,borderRadius:a.YC,padding:a.kc,background:r||E,gap:a.kc,flexDirection:"column",...T},s.createElement(_.A,{flexGrow:1,gap:a.kc},e,t?s.createElement(l,{size:"body"},t):null,i?s.createElement(_.A,{marginLeft:"auto"},s.createElement(l,{size:"body"},i)):null),n)}},263963:(e,t,i)=>{i.d(t,{L_:()=>T,MS:()=>l,rn:()=>_});var s=i(117958),n=i(215616),r=i(296540),o=i(699784);const a="{::}",_=(e,t)=>`${e}${a}${JSON.stringify(t??{})}`,l=(e,t)=>{if("string"!=typeof t)return;const[i,...s]=t.split(a);if(!i||!s.length)return t;let n={};try{n=Object.fromEntries(Object.entries(JSON.parse(s.join(a))).map(([t,i])=>[t,"string"==typeof i?l(e,i):i]))}catch{0}return e.formatMessage({id:i},n)};function T(){const{formatMessage:e}=(0,o.tz)();return(0,r.useCallback)(t=>l({formatMessage:e},t),[e])}s.pJ((e,t)=>e.message?{message:e.message}:e.code===n.eq.too_small&&"string"===e.type?{message:_("COMMON_MIN_CHARS",{min:Number(e.minimum)})}:e.code===n.eq.too_big&&"string"===e.type?{message:_("COMMON_MAX_CHARS",{name:_("COMMON_VALUE"),max:Number(e.maximum)})}:e.code===n.eq.invalid_type&&"array"===e.expected&&"undefined"===e.received?{message:_("COMMON_SELECT_AT_LEAST_ONE_ITEM")}:e.code===n.eq.too_small&&"array"===e.type?{message:_("COMMON_ADD_AT_LEAST_X_ITEMS",{min:Number(e.minimum)})}:e.code===n.eq.invalid_type&&"undefined"===e.received?{message:_("COMMON_VALIDATION_VALUE_REQUIRED")}:e.code===n.eq.invalid_type&&"number"===e.expected?{message:_("COMMON_VALIDATION_PLEASE_ENTER_A_NUMBER")}:{message:t.defaultError})},267691:(e,t,i)=>{i.d(t,{u:()=>a});var s=i(469733),n=i(296540),r=i(528644),o=i(674319);function a(e){const t=(0,s.useSelector)(r.C);return(0,n.useMemo)(()=>(0,o.TM)(e,t),[e,t])}},284428:(e,t,i)=>{i.d(t,{Im:()=>_,iL:()=>l,mQ:()=>o,pv:()=>r,q:()=>a});var s=i(296540),n=i(451449);function r(){return(0,s.useContext)(n.I)}function o(){return r().fields}function a(){return r().tooltipPopovers}function _(){return r().tooltipIcons}function l(){return r().labels}},329109:(e,t,i)=>{i.d(t,{A:()=>T});var s=i(296540),n=i(691441),r=i(71479),o=i(132196),a=i(373229);const _=(0,r.A)("div")`
  height: 66px;
`,l=o.AH`
  padding: 0px !important;
`,T=({isDirty:e,onFormSubmit:t,onFormCancel:i,isInvalid:r,...o})=>e?s.createElement(n.A,null,s.createElement(a.A,{isDirty:e,onFormCancel:i,onFormSubmit:t,isInvalid:r,className:l,...o})):s.createElement(_,null)},373229:(e,t,i)=>{i.d(t,{A:()=>l});var s=i(296540),n=i(758649),r=i(71479),o=i(566723),a=i(699784);const _=(0,r.A)("footer",{shouldForwardProp:e=>"hasFormResetButton"!==e})`
  display: flex;
  justify-content: ${({hasFormResetButton:e})=>e?"space-between":"flex-end"};
  padding: ${o.S2} ${o.fS};
  gap: ${o.kc};
`,l=({allowCancel:e,isDirty:t,isInvalid:i,isSubmitting:r,onFormSubmit:o,onFormReset:l,onFormCancel:T,className:E,submitButtonText:d,customButton:p,applyButton:c,applyButtonFirst:O,hideCancelButton:m,form:I})=>{const S=(0,s.useMemo)(()=>c||s.createElement(n.A,{name:"submit",variant:"primary",type:"submit",onClick:o,disabled:!t||i||r,form:I},s.createElement(a.sA,{id:d||"COMMON_ACTION_APPLY_CHANGES"})),[c,I,t,i,r,o,d]);return s.createElement(_,{className:E,hasFormResetButton:!!l},O?S:p,m?null:s.createElement(n.A,{name:"cancel",variant:"default",type:"button",onClick:T,disabled:!e&&!t},s.createElement(a.sA,{id:"COMMON_ACTION_CANCEL"})),l?s.createElement(n.A,{name:"reset",variant:"default",type:"button",onClick:l,disabled:!t},s.createElement(a.sA,{id:"COMMON_ACTION_RESET_TO_DEFAULTS"})):null,O?p:S)}},383725:(e,t,i)=>{var s;i.d(t,{b:()=>s}),function(e){e.DASHBOARD_WAN_GRAPH="dashboard-wan-graph",e.DASHBOARD_WIFI_GRAPH="dashboard-wifi-graph",e.DASHBOARD_FLOWS_GRAPH="dashboard-flows-graph",e.DASHBOARD_PANEL_LIVE_ACTIVITY="dashboard-panel-live-activity",e.DASHBOARD_PANEL_SPEED_TEST_ACTIVITY="dashboard-panel-speed-test-activity",e.INTERNET_HEALTH="internet-health",e.ISP_UPTIME="isp-uptime",e.SYSTEM_UPTIME="system-uptime",e.NETWORK_DASHBOARD="network-dashboard",e.DASHBOARD_LOADER="dashboard-loader",e.DASHBOARD_UNIFI_OS_VERSION="dashboard-unifi-os-version",e.DASHBOARD_NETWORK_VERSION="dashboard-network-version",e.HOTSPOT_PORTAL_MINIMIZER="hotspot-portal-minimizer",e.HOTSPOT_PORTAL_SETTINGS_RESTORE_DEFAULT="hotspot-portal-settings-restore-default",e.HOTSPOT_PORTAL_PREVIEW_BACKGROUND="hotspot-portal-preview-background",e.HOTSPOT_PORTAL_PREVIEW_CONTAINER="hotspot-portal-preview-container",e.HOTSPOT_PORTAL_PREVIEW_LOGO="hotspot-portal-preview-logo",e.HOTSPOT_PORTAL_PREVIEW_LANGUAGE="hotspot-portal-preview-language",e.HOTSPOT_PORTAL_PREVIEW_TITLE="hotspot-portal-preview-title",e.HOTSPOT_PORTAL_PREVIEW_WELCOME_TEXT="hotspot-portal-preview-welcome-text",e.HOTSPOT_PORTAL_PREVIEW_AUTHENTICATION_TEXT="hotspot-portal-preview-authentication-text",e.HOTSPOT_PORTAL_PREVIEW_BUTTON_TEXT="hotspot-portal-preview-button-text",e.HOTSPOT_PORTAL_PREVIEW_HOTSPOT_PACKAGES="hotspot-portal-preview-hotspot-packages",e.HOTSPOT_PORTAL_PREVIEW_FACEBOOK="hotspot-portal-preview-facebook",e.HOTSPOT_PORTAL_PREVIEW_VOUCHER="hotspot-portal-preview-voucher",e.HOTSPOT_PORTAL_PREVIEW_PASSWORD="hotspot-portal-preview-password",e.HOTSPOT_PORTAL_PREVIEW_RADIUS="hotspot-portal-preview-radius",e.HOTSPOT_PORTAL_BRANDING_INFORMATION="hotspot-portal-branding-information",e.HOTSPOT_PORTAL_BRANDING_SUCCESS="hotspot-portal-branding-success",e.HOTSPOT_PORTAL_BRANDING_LOGO="hotspot-portal-branding-logo",e.WATCHLIST_TABLE="watchlist-table",e.PROBLEMATIC_CLIENTS_TABLE="problematic-clients-table",e.NETWORK_VERSION="network-version",e.PLAY_PAUSE_BUTTON="play-pause-button",e.CONTROL_PANEL_HEADER="control-panel-header",e.CONTROL_PANEL_HEADER_FILTER_BUTTON="control-panel-header-filter-button",e.HEADER_SIGNOUT_BUTTON="header-signout-button",e.HEADER_USERICON="header_usericon",e.RESTORE_COLUMNS_BUTTON="restore-columns-button",e.WIFI_SECURITY_PROTOCOLS="wifi-security-protocols",e.WIFI_BANDWIDTH_PROFILE="wifi-bandwidth-profile",e.WIFI_PMF_MODE="wifi-pmf-mode",e.WIFI_VLAN_BANDS="wifi-vlan-bands",e.NETWORKCONF_ID="networkconf-id",e.APS_TABLE="aps-table",e.AP_GROUPS_TABLE="ap-groups-table",e.IP_ADDRESS_DROPDOWN="ip-address-dropdown",e.TUNNEL_SUBNET="tunnel-subnet",e.COPY_WIREGUARD_PUBLIC_KEY="copy-wireguard-public-key",e.IPSEC_ESP_LIFETIME_CONTAINER="ipsec-esp-lifetime-container",e.IPSEC_ESP_DH_GROUP_CONTAINER="ipsec-esp-dh-group-container",e.IPSEC_ESP_HASH_CONTAINER="ipsec-esp-hash-container",e.IPSEC_ESP_ENCRYPTION_CONTAINER="ipsec-esp-encryption-container",e.IPSEC_IKE_LIFETIME_CONTAINER="ipsec-ike-lifetime-container",e.IPSEC_IKE_HASH_CONTAINER="ipsec-ike-hash-container",e.IPSEC_IKE_ENCRYPTION_CONTAINER="ipsec-ike-encryption-container",e.EXTRAS_CONTAINER="extras-container",e.TELEPORT_LINK_EXPIRY="teleport-link-expiry",e.TELEPORT_TOKEN_TABLE="teleport-token-table",e.NETWORK_SUBNET_DROPDOWN="network-subnet-dropdown",e.NETWORKS_TABLE="networks-table",e.WS_USERS_TABLE="ws-users-table",e.TOGGLE_DHCP_MANAGEMENT="toggle-dhcp-management",e.DHCP_MODE_DROPDOWN="dhcp-mode-dropdown",e.ADD_NEW_DHCP_OPTION="add-new-dhcp-option",e.TOPOLOGY_FILTER_CONTROL="topology-filter-control",e.TOPOLOGY_ROTATION="topology-rotation",e.SETTINGS_DEVICE_UPDATE_CACHE="settings-device-update-cache",e.SETTINGS_DEVICE_UPDATE_SCHEDULE="settings-device-update-schedule",e.SETTINGS_DEVICE_FIRMWARE="settings-device-firmware",e.SETTINGS_DEVICE_FIRMWARE_RELEASE_CHANNEL="settings-device-firmware-release-channel",e.SETTINGS_EARLY_ACCESS_RELEASE_CHANNELS="settings-early-access-release-channels",e.SETTINGS_NETWORKS_NEW_VIRTUAL_NETWORK="settings-networks-new-virtual-network",e.LOGS_CATEGORY_PICKER="logs-category-picker",e.LOGS_SUBCATEGORY_PICKER="logs-subcategory-picker",e.LOGS_EVENT_PICKER="logs-event-picker",e.LOGS_SETTINGS="logs-settings",e.LOGS_RELOAD="logs-reload",e.PUSH_NOTIFICATIONS_PICKER="push-notifications-picker",e.VIEWER_NETWORK="viewer-network",e.VIEWER_INTERNET="viewer-internet",e.VIEWER_VPN_SERVER="viewer-vpn-server",e.VIEWER_VPN_CLIENT="viewer-vpn-client",e.VIEWER_POLICY_BASED_ROUTING="viewer-policy-based-routing",e.VIEWER_FIREWALL_RULES="viewer-firewall-rules",e.VIEWER_NAT="viewer-nat",e.VIEWER_SITE_TO_SITE_VPN="viewer-site-to-site-vpn",e.VIEWER_WIFI="viewer-wifi",e.CREATE_FIREWALL_ZONE_BUTTON="create-firewall-zone-button",e.CREATE_FIREWALL_POLICY_BUTTON="create-firewall-policy-button",e.FIREWALL_POLICY_ORDER_BUTTON="firewall-policy-order-button",e.POLICY_BASED_ROUTES_DOMAIN="editable-grid-table-wrapper-domains",e.ACL_POLICY_FORM_TYPE="acl-policy-form-type",e.ACL_POLICY_FORM_SOURCE="acl-policy-form-source",e.ACL_POLICY_FORM_ACTION="acl-policy-form-action",e.ACL_POLICY_FORM_DESTINATION="acl-policy-form-destination",e.VIEWER_CONTENT_FILTER="viewer-content-filter",e.CLIENTS_FILTER_FOOTER="clients-filter-footer",e.CLIENTS_FILTER_CONTENT="clients-filter-content",e.VIEWER_ETHERNET_PORTS_PROFILE="viewer-ethernet-ports-profile",e.VIEWER_WAN_SLA="viewer-wan-sla",e.VIEWER_NETWORK_LISTS="viewer-network-lists",e.VIEWER_WIFI_SPEED_LIMIT_PROFILE="viewer-wifi-speed-limit-profile",e.VIEWER_RADIUS_PROFILE="viewer-radius-profile"}(s||(s={}))},394756:(e,t,i)=>{i.d(t,{b:()=>r});var s=i(165126),n=i(772776);function r(e){return(0,s.A)(e,n.D)}},451449:(e,t,i)=>{i.d(t,{I:()=>s});const s=(0,i(296540).createContext)({fields:!1,labels:!1,tooltipPopovers:!1,tooltipIcons:!1})},454195:(e,t,i)=>{i.d(t,{b:()=>s});const s=32},465543:(e,t,i)=>{i.d(t,{w:()=>o});var s=i(469733),n=i(296540),r=i(845030);const o=e=>{const t=(0,s.useDispatch)();(0,n.useEffect)(()=>{t((0,r.SQ)(e))},[t,e])}},470591:(e,t,i)=>{i.d(t,{A:()=>s});const s=(0,i(296540).createContext)({isStandalone:!0,header:[null,()=>{}],footer:[null,()=>{}]})},528644:(e,t,i)=>{i.d(t,{C:()=>a});var s=i(801081),n=i(198494),r=i(792072),o=i(532419);const a=(0,s.Mz)(o.$8,o.m9,o.N4,o.at,o.Tp,r.et,n.UP,o.IP,o.C$,(e,t,i,s,n,r,o,a,_)=>({devicesHaveLastFetchTime:e,hasSiteGateway:t,hasApAdopted:i,hasSwitchAdopted:s,hasL3SwitchAdopted:n,features:r,selfPreconfigureApprovals:o,siteGatewayInterfaces:a,isUsg:_}))},606081:(e,t,i)=>{i.d(t,{S:()=>a});var s=i(469733),n=i(296540),r=i(528644),o=i(674319);function a(e){const t=(0,s.useSelector)(r.C);return(0,n.useMemo)(()=>!(0,o.TM)(e,t)&&!(0,o.A)(e,t),[e,t])}},607109:(e,t,i)=>{i.r(t),i.d(t,{default:()=>F});var s=i(469733),n=i(296540),r=i(592510),o=i(742920),a=i(38671),_=i(853801),l=i(606081),T=i(675291),E=i(169568),d=i(895424),p=i(222190),c=i(641777),O=i(79786),m=i(398300),I=i(566723),S=i(48925),g=i(845030),h=i(675359),N=i(699784),A=i(210484),R=i(655524),C=i(959341),u=i(329109);const L=e=>"number"==typeof e&&e>-1?e/1e3:void 0,x=e=>{if(e._id===C.R6)return{name:"",downloadSpeed:void 0,uploadSpeed:void 0};const t=e;return{name:t.name||"",qos_rate_max_down:L(t.qos_rate_max_down),qos_rate_max_up:L(t.qos_rate_max_up)}},G=e=>{const t=Number(e);return t?Math.max(Math.round(1e3*t),-1):-1};var f=i(407814),P=i(263963);const v=100,b=.002,D=f.Ik({name:f.Yj().max(64,{message:(0,P.rn)("SETTINGS_COMMON_FIELD_SHOULD_NOT_EXCEED_MAX_LENGTH",{name:(0,P.rn)("COMMON_NAME"),limit:64})}),qos_rate_max_down:f.ai().min(b,{message:(0,P.rn)("COMMON_VALIDATION_MIN",{name:(0,P.rn)("COMMON_DOWNLOAD_BANDWIDTH_LIMIT"),min:b})}).max(v,{message:(0,P.rn)("COMMON_VALIDATION_MAX",{name:(0,P.rn)("COMMON_DOWNLOAD_BANDWIDTH_LIMIT"),max:v})}).nullish(),qos_rate_max_up:f.ai().min(b,{message:(0,P.rn)("COMMON_VALIDATION_MIN",{name:(0,P.rn)("COMMON_UPLOAD_BANDWIDTH_LIMIT"),min:b})}).max(v,{message:(0,P.rn)("COMMON_VALIDATION_MAX",{name:(0,P.rn)("COMMON_UPLOAD_BANDWIDTH_LIMIT"),max:v})}).nullish()}),M="wifi-speed-limit-form",F=({activeItem:e})=>{const t=(0,s.useDispatch)(),i=e._id===C.R6,{formatMessage:L}=(0,N.tz)(),f=(0,O.m)({schema:D,defaultValues:x(e)}),P=(0,l.S)(E.v.SETTINGS_WIFI_SPEED_LIMIT_PROFILES);(0,_.y)(f);const F=f.handleSubmit(async s=>{const n={name:s.name,qos_rate_max_down:G(s.qos_rate_max_down),qos_rate_max_up:G(s.qos_rate_max_up)};return t(i?(0,R.$6)(n):(0,R.G4)(e._id,n)).then(e=>{t((0,R.Ik)(void 0,{crudCacheStrategy:{type:r.e.CACHE}})),t((0,g.SQ)(!1)),i&&t((0,g.XP)({id:e._id,type:m.H.WIFI_SPEED_LIMIT_PROFILE}))}).then(()=>{f.reset()}).catch(e=>{const s=(0,a.F)(e)?e:void 0;t((0,h.ox)({icon:o.C.danger,message:i?"SETTINGS_PROFILES_WIFI_SPEED_LIMIT_CREATE_FAILURE_TOAST":"SETTINGS_PROFILES_WIFI_SPEED_LIMIT_UPDATE_FAILURE_TOAST",values:{name:n.name},errorMessage:s?.msg,errorValues:s}))})});return n.createElement(c.A,{isDisabled:P},n.createElement("form",{onSubmit:F,id:M},n.createElement(T.A,{feature:E.v.SETTINGS_WIFI_SPEED_LIMIT_PROFILES,renderWarning:({children:e})=>n.createElement(A.A,{style:{marginBottom:I.Ln}},n.createElement(S.A,null,e))}),n.createElement(S.A,null,n.createElement(d.A,{autoFocus:!0,control:f.control,name:"name",label:n.createElement(N.sA,{id:"COMMON_NAME"})}),n.createElement(p.A,{control:f.control,name:"qos_rate_max_down",tooltip:n.createElement(N.sA,{id:"SETTINGS_PROFILES_WIFI_SPEED_LIMIT_FORM_DESCRIPTION_LIMIT_BANDWIDTH_DOWNLOAD",values:{minMbps:b,maxMbps:v}}),label:n.createElement(N.sA,{id:"COMMON_DOWNLOAD_BANDWIDTH_LIMIT"}),placeholder:L({id:"COMMON_UNLIMITED"}),contentAfter:n.createElement(N.sA,{id:"COMMON_SPEED_METRICS_MBPS"})}),n.createElement(p.A,{control:f.control,name:"qos_rate_max_up",tooltip:n.createElement(N.sA,{id:"SETTINGS_PROFILES_WIFI_SPEED_LIMIT_FORM_DESCRIPTION_LIMIT_BANDWIDTH_UPLOAD",values:{minMbps:b,maxMbps:v}}),label:n.createElement(N.sA,{id:"COMMON_UPLOAD_BANDWIDTH_LIMIT"}),contentAfter:n.createElement(N.sA,{id:"COMMON_SPEED_METRICS_MBPS"}),placeholder:L({id:"COMMON_UNLIMITED"})})),n.createElement(u.A,{onFormCancel:()=>f.reset(),isDirty:f.formState.isDirty||i&&!P,hideCancelButton:!f.formState.isDirty,submitButtonText:i?"COMMON_ACTION_ADD":void 0,form:M,isSubmitting:f.formState.isSubmitting})))}},641777:(e,t,i)=>{i.d(t,{A:()=>o});var s=i(296540),n=i(284428),r=i(451449);const o=({isDisabled:e,isAdditive:t=!0,children:i})=>{const o=(0,n.pv)(),a=(0,s.useMemo)(()=>"boolean"==typeof e?{fields:e,labels:e,tooltipIcons:e,tooltipPopovers:!1}:e,[e]),_=(0,s.useMemo)(()=>({fields:t?a.fields||o.fields:a.fields,labels:t?a.labels||o.labels:a.labels,tooltipIcons:t?a.tooltipIcons||o.tooltipIcons:a.tooltipIcons,tooltipPopovers:t?a.tooltipPopovers||o.tooltipPopovers:a.tooltipPopovers}),[t,a.fields,a.labels,a.tooltipIcons,a.tooltipPopovers,o.fields,o.labels,o.tooltipIcons,o.tooltipPopovers]);return s.createElement(r.I.Provider,{value:_},i)}},674319:(e,t,i)=>{i.d(t,{A:()=>a,TM:()=>T,f9:()=>l});var s=i(598796),n=i(780811),r=i(169568);const o={[r.v.SETTINGS_WIFI]:e=>!e.devicesHaveLastFetchTime||e.hasApAdopted,[r.v.SETTINGS_WIFI_SPEED_LIMIT_PROFILES]:e=>!e.devicesHaveLastFetchTime||e.hasApAdopted,[r.v.SETTINGS_NETWORKS]:e=>!e.devicesHaveLastFetchTime||e.hasSiteGateway||e.hasSwitchAdopted||e.hasApAdopted,[r.v.SETTINGS_INTERNET]:e=>!e.devicesHaveLastFetchTime||e.hasSiteGateway,[r.v.SETTINGS_TELEPORT]:e=>e.features.has(s.Xj.TELEPORT),[r.v.SETTINGS_UID_VPN]:()=>!1,[r.v.SETTING_ROUTING]:e=>!e.devicesHaveLastFetchTime||e.hasSiteGateway||e.hasL3SwitchAdopted,[r.v.SETTINGS_SECURITY]:e=>!e.devicesHaveLastFetchTime||e.hasSiteGateway||e.hasL3SwitchAdopted,[r.v.SETTINGS_RADIUS]:e=>!e.devicesHaveLastFetchTime||e.hasSiteGateway,[r.v.NETWORK_OBJECTS]:e=>!e.devicesHaveLastFetchTime||e.hasSiteGateway,[r.v.SETTINGS_ETHERNET_PORTS]:e=>!e.devicesHaveLastFetchTime||e.hasSiteGateway||e.hasSwitchAdopted,[r.v.SETTINGS_PROFILES]:e=>!e.devicesHaveLastFetchTime||e.hasApAdopted||e.hasSiteGateway||e.hasSwitchAdopted,[r.v.SETTINGS_VPN]:e=>!e.devicesHaveLastFetchTime||e.hasSiteGateway,[r.v.SETTINGS_VPN_CLIENT]:e=>e.hasSiteGateway&&!(0,n.oWO)({type:e.siteGatewayInterfaces.type})&&!(0,n.ziy)({model:e.siteGatewayInterfaces.model}),[r.v.SETTINGS_POLICY]:e=>!e.devicesHaveLastFetchTime||e.hasSiteGateway||e.hasL3SwitchAdopted||e.features.has(s.Xj.SWITCH_CUSTOM_ACL_RULES)||e.features.has(s.Xj.ZONE_BASED_FIREWALL)||e.features.has(s.Xj.USER_DEFINED_NAT_RULES)||e.features.has(s.Xj.STATIC_DNS),[r.v.SETTINGS_POLICY_ACL]:e=>!e.devicesHaveLastFetchTime||e.features.has(s.Xj.SWITCH_CUSTOM_ACL_RULES),[r.v.SETTINGS_POLICY_QOS]:e=>!e.devicesHaveLastFetchTime||e.features.has(s.Xj.ZONE_BASED_FIREWALL),[r.v.SETTINGS_POLICY_NAT]:e=>!e.devicesHaveLastFetchTime||e.features.has(s.Xj.USER_DEFINED_NAT_RULES),[r.v.SETTINGS_POLICY_DNS]:e=>!e.devicesHaveLastFetchTime||e.features.has(s.Xj.STATIC_DNS),[r.v.SETTINGS_POLICY_PORT_FORWARDING]:e=>!e.devicesHaveLastFetchTime||e.hasSiteGateway,[r.v.SETTINGS_POLICY_FIREWALL]:e=>!e.devicesHaveLastFetchTime||e.features.has(s.Xj.ZONE_BASED_FIREWALL),[r.v.SETTINGS_POLICY_ROUTE]:e=>!e.devicesHaveLastFetchTime||e.hasSiteGateway||e.hasL3SwitchAdopted,[r.v.SETTINGS_CONTENT_FILTER]:e=>!e.devicesHaveLastFetchTime||e.features.has(s.Xj.CLOUDFLARE_CONTENT_FILTERING)},a=(e,t)=>!!o[e]?.(t),_={[r.v.SETTINGS_WIFI]:()=>!0,[r.v.SETTINGS_WIFI_SPEED_LIMIT_PROFILES]:()=>!0,[r.v.SETTINGS_NETWORKS]:()=>!0,[r.v.SETTINGS_INTERNET]:()=>!0,[r.v.SETTINGS_TELEPORT]:()=>!0,[r.v.SETTINGS_UID_VPN]:()=>!0,[r.v.SETTING_ROUTING]:()=>!0,[r.v.SETTINGS_SECURITY]:()=>!0,[r.v.SETTINGS_RADIUS]:()=>!0,[r.v.NETWORK_OBJECTS]:()=>!0,[r.v.SETTINGS_ETHERNET_PORTS]:()=>!0,[r.v.SETTINGS_PROFILES]:()=>!0,[r.v.SETTINGS_VPN]:()=>!0,[r.v.SETTINGS_VPN_CLIENT]:()=>!0,[r.v.SETTINGS_POLICY]:()=>!0,[r.v.SETTINGS_POLICY_ACL]:()=>!1,[r.v.SETTINGS_POLICY_QOS]:()=>!1,[r.v.SETTINGS_POLICY_NAT]:()=>!1,[r.v.SETTINGS_POLICY_DNS]:()=>!1,[r.v.SETTINGS_POLICY_PORT_FORWARDING]:()=>!0,[r.v.SETTINGS_POLICY_FIREWALL]:()=>!1,[r.v.SETTINGS_POLICY_ROUTE]:()=>!0,[r.v.SETTINGS_CONTENT_FILTER]:()=>!1},l=(e,t)=>_[e]?.(t),T=(e,t)=>!!t.selfPreconfigureApprovals?.includes(e)&&l(e,t)},675291:(e,t,i)=>{i.d(t,{A:()=>S});var s=i(469733),n=i(296540),r=i(847883),o=i(758649),a=i(162420),_=i(687370),l=i(958372),T=i(267691),E=i(675344),d=i(566723),p=i(294303),c=i(263130),O=i(699784),m=i(789768);const I={maxWidth:E.By,margin:`${d.Ln} 0 0 0`,style:{flex:0}},S=({feature:e,children:t,rowProps:i,skipApproval:E=!1,renderWarning:S})=>{const g=(0,s.useDispatch)(),h=(0,T.u)(e),N=(0,_.r)(e),A=(0,n.useCallback)(()=>g((0,m.ct)(e)),[g,e]),R=N?null:n.createElement(c.A,{icon:n.createElement(a.A,{variant:"fill",size:"original",isActive:!0}),description:n.createElement(O.sA,{id:l.b[e]?.(h||E)||"COMMON_LOCKED_FEATURE"}),action:h||E?null:n.createElement(o.A,{type:"button",onClick:A,variant:"inline"},n.createElement(O.sA,{id:"COMMON_LOCKED_PRECONFIGURE"}))});return n.createElement(n.Fragment,null,R?n.createElement(n.Fragment,null,S?S({children:R}):n.createElement(r.A,{unlimitedWidth:!0,...I,...i},R)):null,t?n.createElement(r.A,{unlimitedWidth:!0,disabled:!N&&!h&&!E,marginBottom:0},n.createElement(p.A,{width:"100%",flexDirection:"column",gap:d.Ln},t)):null)}},675344:(e,t,i)=>{i.d(t,{By:()=>s,Ko:()=>o,Qb:()=>r,uE:()=>n,xh:()=>a});const s="800px",n="832px",r="1362px",o="664px",a="100px"},687370:(e,t,i)=>{i.d(t,{r:()=>a});var s=i(469733),n=i(296540),r=i(528644),o=i(674319);function a(e){const t=(0,s.useSelector)(r.C);return(0,n.useMemo)(()=>(0,o.A)(e,t),[e,t])}},689965:(e,t,i)=>{i.d(t,{A:()=>p,I:()=>s});var s,n=i(296540),r=i(822336),o=i(427853),a=i(71479),_=i(825032),l=i(566723),T=i(294303);!function(e){e.ACCORDION="accordion",e.BUTTON_LIST="buttonList"}(s||(s={}));const E=(0,a.A)(T.A,{shouldForwardProp:e=>!["marginBottom","isButtonList","margin","flex","width","padding","nested","background"].includes(e)})`
  background-color: ${({background:e,nested:t,theme:{themeName:i}})=>e||r.Ay[i===_.S.DARK?`desktop-color-neutral-${t?"00":"01"}-dark`:`desktop-color-neutral-${t?"01":"00"}-light`]};
  padding: ${({theme:e,isButtonList:t,padding:i})=>i||(t?`0 ${e.spacing["spacing-l"]}`:e.spacing["spacing-l"])};
  margin-bottom: ${({theme:e,marginBottom:t})=>t||e.spacing["spacing-l"]};
  ${({margin:e})=>e?`margin: ${e};`:""}
  border-radius: 8px;
  flex-direction: column;
  width: ${({width:e="100%"})=>e};
  flex: ${({flex:e=0})=>e};
  > :last-child {
    margin-bottom: 0;
  }
  thead {
    tr {
      height: 32px !important;
    }
    th {
      text-transform: none;
    }
  }
  ${({isButtonList:e})=>e?`\n    > div {\n      display: flex;\n      height: 48px;\n      border-bottom: ${({theme:{themeName:e}})=>r.Ay[`desktop-border-divider-${e}`]};\n      &:last-child {\n        border-bottom: none;\n      }\n    }\n  `:""}
`,d=(0,a.A)(o.A,{shouldForwardProp:e=>!["marginBottom","margin","flex","padding","nested","background"].includes(e)})`
  background-color: ${({background:e,nested:t,theme:{themeName:i}})=>e||r.Ay[i===_.S.DARK?`desktop-color-neutral-${t?"00":"01"}-dark`:`desktop-color-neutral-${t?"01":"00"}-light`]};
  margin-bottom: ${({theme:e,marginBottom:t})=>t||e.spacing["spacing-l"]};
  ${({margin:e})=>e?`margin: ${e};`:""}
  ${({padding:e})=>e?`padding: ${e};`:""}
  border-radius: 8px;
  flex-direction: column;
  flex: ${({flex:e=0})=>e};
  > :last-child {
    margin-bottom: 0;
  }
  thead {
    tr {
      height: 32px !important;
    }
    th {
      text-transform: none;
    }
  }
  > li {
    > div:first-child {
      background: ${({background:e,theme:{themeName:t}})=>e||r.Ay[t===_.S.DARK?"desktop-color-neutral-01-dark":"desktop-color-neutral-00-light"]};
      height: 48px;
      padding: 0 ${l.Ln};
    }
    > div:nth-child(2) {
      margin-bottom: 0;
      padding: 0 ${l.Ln} ${l.Ln};
      > div {
        padding: 0;
      }
    }
  }
`,p=({type:e,marginBottom:t,margin:i,padding:r,flex:o,width:a,nested:_,...l})=>"items"in l?n.createElement(d,{marginBottom:t,margin:i,padding:r,flex:o,nested:_,...l}):n.createElement(E,{nested:_,width:a,marginBottom:t,margin:i,padding:r,flex:o,isButtonList:e===s.BUTTON_LIST,...l},l.children)},691441:(e,t,i)=>{i.d(t,{A:()=>r});var s=i(296540),n=i(470591);function r(e){const{children:t}=e,{isStandalone:i,footer:[,r]}=(0,s.useContext)(n.A);return(0,s.useLayoutEffect)(()=>{if(!i)return r(t),()=>r(null)},[i,t]),s.createElement(s.Fragment,null,i&&t)}},766624:(e,t,i)=>{i.d(t,{A:()=>_});var s=i(296540),n=i(271856),r=i(709690),o=i(284428),a=i(566723);const _=({description:e,isInteractive:t,portal:i=!0,cursorType:_,title:l,position:T,width:E,iconProps:d,disabled:p=!1})=>{const c=(0,o.Im)()||p,O=(0,o.q)();return s.createElement(n.A,{description:e,portal:i,isInteractive:t,style:{display:"flex",alignItems:"center"},cursorType:_,title:l,position:T,width:E,disableHover:O},s.createElement(r.A,{isActive:!0,size:"original",opacity:c?a.xN:void 0,...d}))}},772776:(e,t,i)=>{i.d(t,{D:()=>n,p:()=>r});var s=i(296540);const n=["padding","paddingLeft","paddingRight","paddingTop","paddingBottom","margin","marginLeft","marginRight","marginTop","marginBottom","height","width","maxHeight","minHeight","maxWidth","minWidth"];function r(e){const t=(0,s.useMemo)(()=>Object.keys(e).filter(e=>n.includes(e)),[e]);return(0,s.useMemo)(()=>{const i={};return t.forEach(t=>i[t]=e[t]),i},[t])}},847883:(e,t,i)=>{i.d(t,{A:()=>l});var s=i(296540),n=i(222588),r=i(722860),o=i(394756),a=i(772776);const _=(0,r.c)(n.A),l=s.forwardRef((e,t)=>{const{className:i,disabled:n=!1,motif:r,unlimitedWidth:l=!1,style:T,children:E,inline:d=!1,...p}=(0,o.b)(e),c=(0,a.p)(e);return s.createElement("div",{...p,className:_.concat(i)("settingsGridRow",!l&&"settingsGridRow-limitedWidth",d&&"settingsGridRow-inline",n&&"disabled"),ref:t,style:{...T,...c}},E)})},853801:(e,t,i)=>{i.d(t,{y:()=>r});var s=i(349785),n=i(465543);const r=e=>{const t=(0,s.lN)(e);return(0,n.w)(t.isDirty)}},895424:(e,t,i)=>{i.d(t,{A:()=>T});var s=i(349785),n=i(296540),r=i(438628),o=i(705145),a=i(566723),_=i(263963),l=i(284428);const T=function({control:e,name:t,label:i,placeholder:T,tooltip:E,tooltipProps:d,autoFocus:p,motif:c,onChange:O,onBlur:m,onAfterChange:I,onPaste:S,onKeyDown:g,passwordToggle:h,type:N,helperMessage:A,autoComplete:R,contentBefore:C,contentAfter:u,onFocus:L,value:x,invalid:G}){const f=(0,l.mQ)(),P=(0,l.Im)(),v=(0,l.q)(),b=(0,_.L_)();return n.createElement(s.xI,{control:e,name:t,render:({field:e,fieldState:_,formState:l})=>n.createElement(r.A,{type:N||(h?"password":"text"),variant:"secondary",width:"100%",autoFocus:p,...e,onChange:t=>{O?O(t,e,l):e.onChange(t),I?.(t)},onBlur:t=>{m?m(t,e,l):e.onBlur()},onFocus:L,onPaste:S,disabled:f,value:x??e.value?.toString(),invalid:G||(_.invalid?n.createElement(o.A,{variant:"inherit",style:{overflowWrap:"break-word"}},b((0,s.Jt)(l.errors,t)?.message)||!0," "):void 0),label:i,placeholder:T,labelTooltip:E,labelTooltipProps:{style:{opacity:P?a.xN:void 0,pointerEvents:v?"none":void 0,...d?.style},...d},motif:c,passwordToggle:h,helperMessage:A,autoComplete:R,onKeyDown:g,contentBefore:C,contentAfter:u})})}},958372:(e,t,i)=>{i.d(t,{D:()=>T,b:()=>E});var s=i(296540),n=i(169568),r=i(699784),o=i(196010),a=i(928085),_=i(959341);const l=()=>{const e=(0,a.A)(_.tz);return s.createElement(o.A,{to:e},s.createElement(r.sA,{id:"COMMON_ACTION_MANAGE"}))},T={[n.v.SETTINGS_POLICY_ACL]:s.createElement(r.sA,{id:"SETTINGS_POLICY_TYPE_ACL_UNSUPPORTED"}),[n.v.SETTINGS_POLICY_QOS]:s.createElement(r.sA,{id:"SETTINGS_ZONE_BASED_FIREWALL_REQUIRED",values:{link:s.createElement(l,null)}}),[n.v.SETTINGS_POLICY_FIREWALL]:s.createElement(r.sA,{id:"SETTINGS_ZONE_BASED_FIREWALL_REQUIRED",values:{link:s.createElement(l,null)}}),[n.v.SETTINGS_POLICY_NAT]:s.createElement(r.sA,{id:"SETTINGS_NAT_NOT_SUPPORTED"}),[n.v.SETTINGS_POLICY_DNS]:s.createElement(r.sA,{id:"SETTINGS_DNS_NOT_SUPPORTED"}),[n.v.SETTINGS_POLICY_PORT_FORWARDING]:s.createElement(r.sA,{id:"SETTINGS_PORT_FORWARDING_NOT_SUPPORTED"}),[n.v.SETTINGS_POLICY_ROUTE]:s.createElement(r.sA,{id:"SETTINGS_ROUTING_NOT_SUPPORTED"})},E={[n.v.SETTINGS_WIFI]:e=>e?"COMMON_LOCKED_FEATURE_AP_PRECONFIGURED":"COMMON_LOCKED_FEATURE_AP",[n.v.SETTINGS_NETWORKS]:e=>e?"COMMON_LOCKED_FEATURE_GW_OR_SW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW_OR_SW_OR_AP",[n.v.SETTINGS_INTERNET]:e=>e?"COMMON_LOCKED_FEATURE_GW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW",[n.v.SETTINGS_TELEPORT]:e=>e?"COMMON_LOCKED_FEATURE_GW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW",[n.v.SETTINGS_UID_VPN]:()=>"SETTINGS_VPN_UID_DESC",[n.v.SETTING_ROUTING]:e=>e?"COMMON_LOCKED_FEATURE_GW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW",[n.v.SETTINGS_SECURITY]:e=>e?"COMMON_LOCKED_FEATURE_GW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW",[n.v.SETTINGS_ETHERNET_PORTS]:e=>e?"COMMON_LOCKED_FEATURE_GW_OR_SW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW_OR_SW",[n.v.SETTINGS_WIFI_SPEED_LIMIT_PROFILES]:e=>e?"COMMON_LOCKED_FEATURE_AP_PRECONFIGURED":"COMMON_LOCKED_FEATURE_AP",[n.v.NETWORK_OBJECTS]:e=>e?"COMMON_LOCKED_FEATURE_GW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW",[n.v.SETTINGS_VPN]:e=>e?"COMMON_LOCKED_FEATURE_GW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW",[n.v.SETTINGS_POLICY]:e=>e?"COMMON_LOCKED_FEATURE_GW_OR_SW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW_OR_SW",[n.v.SETTINGS_POLICY_ACL]:e=>e?"COMMON_LOCKED_FEATURE_GW_OR_SW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW_OR_SW",[n.v.SETTINGS_POLICY_QOS]:e=>e?"COMMON_LOCKED_FEATURE_GW_OR_SW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW_OR_SW",[n.v.SETTINGS_POLICY_NAT]:e=>e?"COMMON_LOCKED_FEATURE_GW_OR_SW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW_OR_SW",[n.v.SETTINGS_POLICY_DNS]:e=>e?"COMMON_LOCKED_FEATURE_GW_OR_SW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW_OR_SW",[n.v.SETTINGS_POLICY_PORT_FORWARDING]:e=>e?"COMMON_LOCKED_FEATURE_GW_OR_SW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW_OR_SW",[n.v.SETTINGS_POLICY_FIREWALL]:e=>e?"COMMON_LOCKED_FEATURE_GW_OR_SW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW_OR_SW",[n.v.SETTINGS_POLICY_ROUTE]:e=>e?"COMMON_LOCKED_FEATURE_GW_OR_SW_PRECONFIGURED":"COMMON_LOCKED_FEATURE_GW_OR_SW"}},968906:(e,t,i)=>{i.d(t,{A:()=>o});var s=i(383725),n=i(199582);class r{static addDataTestId(e){return{[n.L]:e}}}r.TestId=s.b;const o=r}}]);