"use strict";exports.id=2469,exports.ids=[2469],exports.modules={92469:(e,t,s)=>{s.a(e,async(e,l)=>{try{s.r(t),s.d(t,{default:()=>PrivateRoute});var r=s(20997),a=s(11163),i=s(99930),n=s(97514),o=s(60802),c=s(5965),d=s(34301),m=s(11377),u=s(34483),x=e([i,d]);function UnAuthorizedView(){let e=(0,a.useRouter)(),{t}=(0,m.useTranslation)("common");return(0,r.jsxs)("div",{className:"relative flex min-h-full flex-col items-center justify-center overflow-hidden py-5 px-4 md:py-8",children:[(0,r.jsxs)(o.Z,{variant:"icon",onClick:()=>e.push(n.Z.home),className:"sx:mb-10 left-4 z-10 mb-8 flex items-center justify-center sm:absolute sm:mb-0",children:[r.jsx(c.f,{className:"h-4 w-4 rtl:order-1"})," ",t("404-back-home")]}),r.jsx("div",{className:"relative mx-auto w-full max-w-[445px] overflow-hidden rounded-lg bg-light pb-2 dark:bg-dark-300 lg:max-w-[478px] lg:pb-1",children:r.jsx(d.default,{})})]})}function PrivateRoute({children:e}){let{t}=(0,m.useTranslation)("common"),{me:s,isAuthorized:l}=(0,i.P)(),a=!!s;return a||l?a&&l?r.jsx(r.Fragment,{children:e}):r.jsx("div",{className:"grid min-h-full w-full place-content-center",children:r.jsx(u.wY,{})}):r.jsx(UnAuthorizedView,{})}[i,d]=x.then?(await x)():x,l()}catch(e){l(e)}})}};