"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[9806],{946118:(t,e,a)=>{a.r(e),a.d(e,{default:()=>$});var s=a(296540),o=a(956347),i=a(469733),c=a(596731),n=a(627440),r=a(959341),h=a(398300),u=a(845030);const T=t=>new RegExp(`(?:^|/)${t}/[^/]+$`),p=t=>new RegExp(`(?:^|\\/)${t}\\/([^/]+.*)$`),S=t=>/^[A-Za-z0-9]+$/.test(t)&&/[A-Za-z]/.test(t)&&/\d/.test(t),E=[[({location:{pathname:t},routeMatch:{params:e}})=>t===(0,o.tW)(`${c.Si[n.VO.SETTINGS]}/security/cybersecure`,e),({history:t,routeMatch:{params:e}})=>{t.push((0,o.tW)(`${c.Si[n.VO.SETTINGS]}/${r.bB}/${r.Uy.CYBERSECURE}`,e))}],[({location:{pathname:t},routeMatch:{params:e}})=>t===(0,o.tW)(`${c.Si[n.VO.SETTINGS]}/security/intrusion-prevention`,e),({history:t,routeMatch:{params:e}})=>{t.push((0,o.tW)(`${c.Si[n.VO.SETTINGS]}/${r.bB}/${r.Uy.CYBERSECURE}`,e))}],[({location:{pathname:t}})=>T(r._L).test(t),({dispatch:t,history:e,location:{pathname:a},routeMatch:{params:s}})=>{const i=p(r._L).exec(a)?.[1];i&&S(i)&&(e.push((0,o.tW)(`${c.Si[n.VO.SETTINGS]}/${r._L}`,s)),setTimeout(()=>{t((0,u.XP)({type:h.H.WIFI,id:i}))},250))}],[({location:{pathname:t}})=>T(r.Cs).test(t),({dispatch:t,history:e,location:{pathname:a},routeMatch:{params:s}})=>{const i=p(r.Cs).exec(a)?.[1];i&&S(i)&&(e.push((0,o.tW)(`${c.Si[n.VO.SETTINGS]}/${r.Cs}`,s)),setTimeout(()=>{t((0,u.XP)({type:h.H.NETWORK,id:i}))},250))}]];var O,C;!function(t){t.LOCATION="location",t.ROUTE_MATCH="routeMatch"}(O||(O={})),function(t){t.HISTORY="history",t.DISPATCH="dispatch",t.LOCATION="location",t.ROUTE_MATCH="routeMatch"}(C||(C={}));const $=(0,s.memo)(()=>{const t=(0,o.zy)(),e=(0,o.W5)(),a=(0,o.W6)(),c=(0,i.useDispatch)();return(0,s.useEffect)(()=>{E.forEach(([s,o])=>{s({[O.LOCATION]:t,[O.ROUTE_MATCH]:e})&&o({[C.HISTORY]:a,[C.DISPATCH]:c,[C.LOCATION]:t,[C.ROUTE_MATCH]:e})})},[t,e,a,c]),null})}}]);