(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[96785],{19253:(e,r,t)=>{"use strict";t.d(r,{s:()=>s});class a extends Error{}function s(e,r){let t;if("string"!=typeof e)throw new a("Invalid token specified: must be a string");r||(r={});let s=+(!0!==r.header),n=e.split(".")[s];if("string"!=typeof n)throw new a(`Invalid token specified: missing part #${s+1}`);try{t=function(e){let r=e.replace(/-/g,"+").replace(/_/g,"/");switch(r.length%4){case 0:break;case 2:r+="==";break;case 3:r+="=";break;default:throw Error("base64 string is not of the correct length")}try{var t;return t=r,decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let t=r.charCodeAt(0).toString(16).toUpperCase();return t.length<2&&(t="0"+t),"%"+t}))}catch(e){return atob(r)}}(n)}catch(e){throw new a(`Invalid token specified: invalid base64 for part #${s+1} (${e.message})`)}try{return JSON.parse(t)}catch(e){throw new a(`Invalid token specified: invalid json for part #${s+1} (${e.message})`)}}a.prototype.name="InvalidTokenError"},70230:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>u});var a=t(95155),s=t(12115),n=t(98500),o=t.n(n),i=t(73321),d=t(92106),c=t(16099);let l=[{label:"Basic",href:"/numerology/basic"},{label:"Advance",href:"/numerology/advance"}];function u({children:e}){let{isAuthenticated:r,loading:t}=(0,d.As)(),n=(0,i.useRouter)(),u=(0,i.usePathname)();return((0,s.useEffect)(()=>{!t&&(r||n.replace(`${c.bw.LOGIN}?redirect=${encodeURIComponent("/numerology/basic")}`))},[r,t,n]),t)?(0,a.jsx)("div",{className:"min-h-[60vh] flex items-center justify-center",children:(0,a.jsx)("div",{className:"w-10 h-10 rounded-full border-2 border-[var(--primary-500)] border-t-transparent animate-spin"})}):r?(0,a.jsx)("div",{className:"min-h-screen bg-[var(--muted)] py-6 sm:py-12",children:(0,a.jsxs)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[(0,a.jsxs)("div",{className:"mb-6",children:[(0,a.jsx)("h1",{className:"text-2xl sm:text-3xl font-bold text-gray-900",children:"Concept Math Numerology"}),(0,a.jsx)("p",{className:"text-sm text-[var(--muted-foreground)] mt-1",children:"Basic calculations and advanced tools."})]}),(0,a.jsx)("div",{className:"flex items-center gap-2 rounded-lg border border-[var(--border)] p-1 bg-white w-fit mb-6",children:l.map(e=>{let r=u===e.href||u?.startsWith(e.href+"/");return(0,a.jsx)(o(),{href:e.href,className:`px-4 py-2 text-sm font-medium rounded-md transition-all focus:outline-none ${r?"bg-[var(--primary-600)] text-white shadow-md":"text-[var(--muted-foreground)] hover:bg-[var(--muted)]/50 hover:text-[var(--foreground)]"}`,children:e.label},e.href)})}),(0,a.jsx)("div",{className:"bg-white rounded-lg border border-[var(--border)] p-4 sm:p-6",children:e})]})}):(0,a.jsx)("div",{className:"min-h-[60vh] flex items-center justify-center",children:(0,a.jsx)("p",{className:"text-sm text-[var(--muted-foreground)]",children:"Redirecting to login…"})})}},73321:(e,r,t)=>{"use strict";var a=t(74645);t.o(a,"useParams")&&t.d(r,{useParams:function(){return a.useParams}}),t.o(a,"usePathname")&&t.d(r,{usePathname:function(){return a.usePathname}}),t.o(a,"useRouter")&&t.d(r,{useRouter:function(){return a.useRouter}}),t.o(a,"useSearchParams")&&t.d(r,{useSearchParams:function(){return a.useSearchParams}})},88138:(e,r,t)=>{Promise.resolve().then(t.bind(t,70230))}},e=>{e.O(0,[92619,59185,98500,76541,92106,28441,93794,77358],()=>e(e.s=88138)),_N_E=e.O()}]);