"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[3524],{507278:(e,t,n)=>{n.r(t),n.d(t,{default:()=>w});var r=n(296540),a=n(469733),i=n(132196),o=n(917612),s=(n(965952),n(92859)),l=n(688268),c=n(526371),u=n(184026),d=n(938546),h=n(363488),m=n(371715),p=n(743433),g=n(187483),f=n(480016);const b=(0,r.lazy)(()=>n.e(4226).then(n.bind(n,250774))),v=(0,r.lazy)(()=>Promise.all([n.e(3442),n.e(4374),n.e(821),n.e(1030),n.e(5573),n.e(4296)]).then(n.bind(n,361461))),A=(0,r.lazy)(()=>n.e(9187).then(n.bind(n,937045)));(0,i.HO)(s.A);const w=(0,r.memo)(({location:e,targetApp:t})=>{const n=(0,a.useDispatch)(),i=(0,a.useSelector)(g.ub),s=(0,a.useSelector)(g.W1);return(0,r.useEffect)(()=>{n((0,m.Zy)())},[n]),r.createElement(r.Suspense,{fallback:null},r.createElement(o.Ay,null,r.createElement(l.A,null,r.createElement(d.A,null,r.createElement(h.A,null),r.createElement(f.A,{vertical:!0,viewport:!0},r.createElement(b,null,i?null:r.createElement(v,{isNetworkServer:s}),r.createElement(A,null),i&&t?r.createElement(t,{locationKey:e.key,isStandalone:s}):null),r.createElement(c.A,null),s?r.createElement(p.A,null):null)))),r.createElement(u.A,null))},({match:{params:{site:e}}},{match:{params:{site:t}}})=>e===t)},363488:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(296540),a=n(469733),i=n(198494);const o=(0,r.lazy)(()=>Promise.all([n.e(1609),n.e(2261)]).then(n.bind(n,562287))),s=(0,r.memo)(()=>(0,a.useSelector)(i.GP)?r.createElement(o,null):null)},938546:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(296540),a=n(469733),i=n(187483);const o=(0,r.lazy)(()=>Promise.all([n.e(3075),n.e(3241)]).then(n.bind(n,790165))),s=({children:e})=>{const t=(0,a.useSelector)(i.bI);return r.createElement(r.Suspense,{fallback:null},t?r.createElement(o,null,e):r.createElement(r.Fragment,null,e))}},907331:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(296540),a=n(71479);const i=(0,a.A)("h1")``,o=(0,a.A)("h2")``,s=(0,a.A)("h3")``,l=(0,a.A)("h4")``,c=({level:e=1,className:t,children:n,...a})=>{let c;return 1===e&&(c=i),2===e&&(c=o),3===e&&(c=s),4===e&&(c=l),r.createElement(c,{className:t,...a},n)}},532267:(e,t,n)=>{var r=n(296540),a=n(71479),i=n(822336),o=(n(459449),n(907331)),s=n(61902),l=n(294303);(0,a.A)(l.A)`
  background: ${s.L};
  line-height: 1.63636363;
  padding: ${({theme:e})=>2*parseInt(e.spacing["spacing-xxl"],10)}px;
  position: absolute;
  top: 0;
  z-index: 100;
`,(0,a.A)(l.A)`
  margin-top: ${({theme:{spacing:e}})=>e["spacing-xl"]};
`,(0,a.A)("div")`
  background: ${({theme:{motifPalette:{ui05:e}}})=>e};
  border-radius: ${i.Ay["desktop-radius-base"]};
  max-width: 864px;
  min-height: 50%;
  overflow-y: scroll;
  padding: ${({theme:e})=>2*parseInt(e.spacing["spacing-xxl"],10)}px;
  width: 100%;
`,(0,a.A)("details")`
  background: ${({theme:{motifPalette:{ui03:e}}})=>e};
  border-radius: ${i.Ay["desktop-radius-base"]};
  cursor: pointer;
  font-family: monospace;
  font-size: 16px;
  padding: ${({theme:{spacing:e}})=>e["spacing-xxl"]};
  outline: none;
  white-space: pre-wrap;
`,(0,a.A)(o.A)`
  color: ${({theme:{motifPalette:{error:e}}})=>e};
  margin-bottom: ${({theme:{spacing:e}})=>e["spacing-xl"]};
`,(0,a.A)(o.A)`
  margin-bottom: ${({theme:{spacing:e}})=>e["spacing-xl"]};
`,r.Component},688268:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(296540),a=(n(532267),n(698661));const i=e=>r.createElement(a.A,{...e})},526371:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(296540),a=n(968154);const i=(0,r.memo)(()=>r.createElement(a.m,null,r.createElement("style",{type:"text/css"},"\n      .ubnt-mod-comfy {\n        --toggle-width: 50px;\n      }\n    ")))},743433:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(296540),a=n(132196),i=n(469733),o=n(849798),s=n(187483);const l=(0,r.memo)(()=>{const e=(0,i.useSelector)(s.YL);return(0,r.useEffect)(()=>{e&&((0,a.HO)(o.A),n.e(7896).then(n.bind(n,987896)))},[e]),null})},480016:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(296540),a=n(71479),i=n(294303);const o=(0,a.A)(i.A)`
  overflow: ${({overflow:e})=>e||"hidden"};
  position: relative;
`,s=({vertical:e,viewport:t,...n})=>r.createElement(o,{flex:t?"none":"1",flexDirection:e?"column":void 0,height:t?"100%":void 0,viewport:t,width:t?"100%":void 0,...n})},698661:(e,t,n)=>{n.d(t,{A:()=>d});var r,a=n(296540),i=n(956347),o=n(864768),s=n(964669),l=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)},c=function(e,t,n,r,a){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?a.call(e,n):a?a.value=n:t.set(e,n),n};class u extends a.Component{constructor(e){super(e),r.set(this,void 0),this.state={hasError:!1},this.previousPathname=e.pathname}componentDidUpdate(e){const{props:{pathname:t}}=this;e.pathname!==t&&(this.previousPathname=e.pathname)}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch({message:e},{componentStack:t}){const{props:{pathname:n}}=this;o.A.captureException(o.A.NetworkSentryMessage.applicationCrash,o.A.NetworkSentryLogSeverity.error,{tags:{errorMessage:e,errorStack:t.split("\n").slice(1,3).map(e=>e.trim()).join(""),pathname:n,previousPathname:this.previousPathname}})}get previousPathname(){return l(this,r,"f")}set previousPathname(e){c(this,r,e,"f")}render(){const{state:{hasError:e},props:{children:t,fallback:n}}=this;return e?n:t}}r=new WeakMap;const d=(0,i.y)(({children:e,location:{pathname:t}})=>window.__SENTRY__?a.createElement(u,{fallback:a.createElement(s.A,null),pathname:t},e):a.createElement(s.A,null))},964669:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(296540),a=n(655335);const i=(0,r.memo)(()=>{const e=(0,r.useCallback)(()=>{window.location.reload()},[]);return r.createElement(a.A,{titleMessage:["COMMON_ERROR_BOUNDARY_TITLE"],descriptionMessage:["COMMON_ERROR_BOUNDARY_SUB_TITLE"],buttonMessage:["COMMON_RELOAD"],onClick:e})})},184026:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(296540),a=n(469733),i=n(536280),o=n(921358);const s=()=>{const e=(0,a.useDispatch)(),t=(0,a.useSelector)(i.a);return(0,r.useEffect)(()=>(window.featureFlags={list:()=>t,enable:t=>e((0,o.ye)(t)),disable:t=>e((0,o.hW)(t))},()=>{delete window.featureFlags}),[e,t]),null}},476895:(e,t,n)=>{var r=n(296540),a=n(606927),i=n(459449);a.addMethod(a.string,"byteLength",function(e,t){const n=this._label;return this.test("byteLength",t||r.createElement(i.sA,{id:"COMMON_VALIDATION_BYTE_LENGTH",values:{max:e,name:r.createElement(i.sA,{id:n})}}),t=>new Blob([t]).size<=e)})},534218:(e,t,n)=>{var r=n(606927),a=n(546391);r.addMethod(r.string,"isNotWildcardIP",function(e){return this.test("isNotWildcardIP",e,e=>!a.Lf.test(e))}),r.addMethod(r.string,"isNotPrefixLengthZero",function(e){return this.test("isNotPrefixLengthZero",e,e=>!a.D3.test(e))})},613386:(e,t,n)=>{var r=n(606927),a=n(149133);const i="unifiIpv4InSubnet";r.addMethod(r.string,i,function(e,t){return this.test(i,t,t=>!t||(0,a.xc)(e,t))})},63057:(e,t,n)=>{var r=n(606927),a=n(149133);const i="unifiIpv4InSubnets";r.addMethod(r.string,i,function(e,t){return this.test(i,t,t=>!t||e.some(e=>(0,a.xc)(e,t)))})},204463:(e,t,n)=>{var r=n(606927),a=n(546391);r.addMethod(r.string,"unifiIpv4Range",e=>r.string().test("unifiIpv4Range",e||"It must be valid IPv4 address, subnet or range",e=>{let t=e;if(t){let e=!1;if("!"===t.charAt(0)&&(t=t.substring(1)),e||(e=t.match(a.zF)),!e){const n=t.split("-");e=n&&2===n.length&&n[0].match(a.zF)&&n[1].match(a.zF)}if(!e&&t.match(a.wK)){const n=t.split("/");e=n[0].match(a.zF)&&parseInt(n[1],10)<=32}return!!e}return!0}))},160587:(e,t,n)=>{var r=n(606927),a=n(296540),i=n(459449);r.addMethod(r.number,"minOrEmpty",function(e,t){const n=this._label;return this.test("minOrEmpty",t||a.createElement(i.sA,{id:"COMMON_VALIDATION_MIN",values:{min:e,name:a.createElement(i.sA,{id:n})}}),t=>null===t||""===t||t>=e)})},171157:(e,t,n)=>{var r=n(606927),a=n(296540),i=n(459449),o=n(149133);r.addMethod(r.string,"CIDRCorrectRange",function(){return this.test("_CIDRCorrectRange",a.createElement(i.sA,{id:"SETTINGS_INTERNET_WAN_ADDITIONAL_IP_ADDRESSES_CORRECT_RANGE"}),function(){const{new_wan_ip_alias_start:e,new_wan_ip_alias_stop:t}=this.parent;if(!e||!t)return!0;if(e===t)return!1;const{firstHostAddressLong:n,lastHostAddressLong:r}=(0,o.DP)(e),[a]=t.split("/"),i=(0,o.GQ)(a);return i>=n&&i<=r})})},220961:(e,t,n)=>{var r=n(606927),a=n(296540),i=n(459449);r.addMethod(r.string,"CIDRMaskMatch",function(){return this.test("_CIDRMaskMatch",a.createElement(i.sA,{id:"SETTINGS_INTERNET_WAN_ADDITIONAL_IP_ADDRESSES_MASKS_SHOULD_MATCH"}),function(){const{new_wan_ip_alias_start:e,new_wan_ip_alias_stop:t}=this.parent;if(!e||!t)return!0;const[n,r]=e.split("/"),[a,i]=t.split("/");return r===i})})},762012:(e,t,n)=>{var r=n(296540),a=n(606927),i=n(459449);a.addMethod(a.string,"prohibitCharacters",function(e,t){const n=this._label;return this.test("prohibitCharacters",t||r.createElement(i.sA,{id:"COMMON_VALIDATION_PROHIBIT_CHARS",values:{chars:e.join(", "),name:r.createElement(i.sA,{id:n})}}),t=>!RegExp(`[${e.join("")}]`).test(t))})},734265:(e,t,n)=>{var r=n(296540),a=n(606927),i=n(459449);a.addMethod(a.string,"unicastMAC",function(e){return this.test("unicastMAC",e||r.createElement(i.sA,{id:"COMMON_VALIDATION_UNICAST_MAC"}),e=>{return"00:00:00:00:00:00"!==e&&!(!(t=e)||1&parseInt(t.slice(0,2),16));var t})})},965952:(e,t,n)=>{n(534218),n(685649),n(204463),n(613386),n(63057),n(901371),n(160587),n(90954),n(269342),n(476895),n(762012),n(171157),n(220961),n(734265),n(870443)},61902:(e,t,n)=>{n.d(t,{L:()=>i,N:()=>o});var r=n(822336),a=n(825032);const i=({theme:{themeName:e}})=>r.Ay[`desktop-color-mainbody-bg-${e}`],o=({theme:{themeName:e}})=>e===a.S.DARK?"linear-gradient(rgba(19, 20, 22, 0) 0%, rgba(19, 20, 22, 0.75) 17.52%, rgba(19, 20, 22, 0.9) 100%)":"linear-gradient(rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.75) 17.52%, rgba(255, 255, 255, 0.9) 100%)"},849798:(e,t,n)=>{n.d(t,{A:()=>r});const r="\n  @supports not (-moz-appearance: none) {\n    /* Override UIC */\n    *[class*=\"scrollContainer__\"] {\n      scrollbar-width: unset;\n    }\n  }\n\n  html,\n  body {\n    font-synthesis: none;\n    font-feature-settings: 'kern';\n    -moz-font-feature-settings: 'kern';\n    -webkit-font-smoothing: antialiased;\n    -moz-osx-font-smoothing: grayscale;\n    margin: 0;\n    padding: 0;\n    height: 100%;\n    width: 100%;\n    position: relative;\n    overflow-y: hidden;\n    background: #ffffff;\n\n    &[motif-theme=\"dark\"] {\n      background: hsla(0, 0%, 5%, 1);\n    }\n\n    *:not(ul) {\n      box-sizing: border-box;\n      /* scrollbar-width: thin; */\n      /* scrollbar-color: rgba(60, 60, 60, 0.15) transparent; */\n\n      @supports (-moz-appearance: none) {\n        scrollbar-width: thin;\n        scrollbar-color: rgba(60, 60, 60, 0.15) transparent;\n      }\n\n      ::-webkit-scrollbar {\n        height: 16px;\n        width: 16px;\n        background-color: rgba(255, 255, 255, 0);\n      }\n\n      ::-webkit-scrollbar-track,\n      ::-webkit-scrollbar-thumb {\n        border: 6px solid rgba(255, 255, 255, 0);\n        border-radius: 10px;\n        background-clip: padding-box;\n      }\n\n      ::-webkit-scrollbar-corner {\n        background: rgba(0, 0, 0, 0);\n      }\n\n      ::-webkit-scrollbar-track {\n        background-color: rgba(255, 255, 255, 0);\n      }\n\n      ::-webkit-scrollbar-thumb {\n        background-color: rgba(60, 60, 60, 0.15);\n        &:hover {\n          background-color: rgba(60, 60, 60, 0.2);\n        }\n        &:active {\n          background-color: rgba(60, 60, 60, 0.3);\n        }\n      }\n    }\n  }\n\n  a {\n    text-decoration: none;\n  }\n\n  a:focus-visible, button:focus-visible:not([data-rac]) {\n    outline-width: 1px;\n    outline-style: solid;\n    outline-color: var(--desktop-color-ublue-04);\n  }\n"},536280:(e,t,n)=>{n.d(t,{K:()=>a,a:()=>r});var r=function(e){var t;return(null==e||null===(t=e.shared)||void 0===t?void 0:t.featureFlags)||{}},a=function(e){var t;return(null===(t=r(e))||void 0===t?void 0:t.allowLocalLteAdoption)||!1}},685649:(e,t,n)=>{var r=n(606927);r.addMethod(r.string,"unifiIpv4MinCidr",function(e,t){return this.test("unifiIpv4MinCidr",t||"CIDR prefix must be less than or equal to ".concat(e),function(t){if(!t)return!0;var n=t.split("/");if(2!==n.length)return!1;var r=Number(n[1]);return e<=r})})},90954:(e,t,n)=>{var r=n(606927);r.addMethod(r.string,"isIPUnique",function(e){var t=e.formValues,n=e.arrayFieldName,r=e.stringFieldName,a=e.errorMessage;return this.test("_isIPUnique",a,function(e){var a,i,o=this;return t?!(null!==(i=t[n])&&void 0!==i&&i.filter(function(e){return e.id!==o.parent.id}).some(function(t){return t[r]===e})):!(null!==(a=this.parent[n])&&void 0!==a&&a.some(function(t){return t[r]===e}))})})},269342:(e,t,n)=>{var r=n(606927);r.addMethod(r.string,"isMacUnique",function(e){var t=e.formValues,n=e.arrayFieldName,r=e.stringFieldName,a=e.errorMessage;return this.test("_isMacUnique",a,function(e){var a=this;return t?!t[n].filter(function(e){return e.id!==a.parent.id}).some(function(t){return t[r]===e}):!this.parent[n].some(function(t){return t[r]===e})})})}}]);