PageSourceSearch

https://app.regulus.org/_next/static/chunks/app/layout-203b673e9f20f2ac.js

js regulus.org collected 2026-10-02 03:36:47 UTC 25,276 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3185],{76529:function(e,t,a){Promise.resolve().then(a.t.bind(a,83020,23)),Promise.resolve().then(a.t.bind(a,2778,23)),Promise.resolve().then(a.bind(a,46975)),Promise.resolve().then(a.bind(a,13998)),Promise.resolve().then(a.bind(a,2711)),Promise.resolve().then(a.bind(a,30724))},92735:function(e,t,a){"use strict";a.d(t,{Z:function(){return r}});let r=(0,a(79205).Z)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},51817:function(e,t,a){"use strict";a.d(t,{Z:function(){return r}});let r=(0,a(79205).Z)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},99897:function(e,t,a){"use strict";a.d(t,{Z:function(){return r}});let r=(0,a(79205).Z)("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]])},99397:function(e,t,a){"use strict";a.d(t,{Z:function(){return r}});let r=(0,a(79205).Z)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},11239:function(e,t,a){"use strict";a.d(t,{Z:function(){return r}});let r=(0,a(79205).Z)("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])},25523:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return r}});let r=a(47043)._(a(2265)).default.createContext(null)},46975:function(e,t,a){"use strict";function r(){return null}a.d(t,{GlobalPageLoader:function(){return r}})},75849:function(e,t,a){"use strict";a.d(t,{m9:function(){return i}});var r=a(57437),s=a(33145),n=a(40521);function i(e){let{size:t="md",className:a="",fullScreen:i=!1}=e,o={sm:{box:"w-8 h-8",img:28},md:{box:"w-12 h-12",img:42},lg:{box:"w-16 h-16",img:56},xl:{box:"w-24 h-24",img:80}}[t],l=(0,r.jsx)("div",{className:"flex flex-col items-center justify-center ".concat(a),children:(0,r.jsx)(n.E.div,{animate:{scale:[.88,1.12,.88],opacity:[.75,1,.75]},transition:{duration:1.4,repeat:1/0,ease:"easeInOut"},className:"flex items-center justify-center ".concat(o.box),children:(0,r.jsx)(s.default,{src:"/images/logo_icon_dark.svg",alt:"Regulus Loader",width:o.img,height:o.img,className:"object-contain drop-shadow-sm",priority:!0})})});return i?(0,r.jsx)("div",{className:"fixed inset-0 z-[999] flex items-center justify-center bg-white/95 backdrop-blur-md",children:l}):l}},13998:function(e,t,a){"use strict";a.d(t,{PWAInstallModal:function(){return S}});var r=a(57437),s=a(2265),n=a(48614),i=a(40521),o=a(79205);let l=(0,o.Z)("Share",[["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8",key:"1b2hhj"}],["polyline",{points:"16 6 12 2 8 6",key:"m901s6"}],["line",{x1:"12",x2:"12",y1:"2",y2:"15",key:"1p0rca"}]]);var u=a(99397),c=a(92934);let d=(0,o.Z)("EllipsisVertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]);var g=a(92735),m=a(11239),p=a(94766);let h=(0,o.Z)("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);var f=a(32489),y=a(51817),x=a(33388),w=a(99897);let v="regulus_pwa_prompt_dismissed",b="regulus_pwa_installed";function k(){return window.matchMedia("(display-mode: standalone)").matches||"standalone"in window.navigator&&!0===window.navigator.standalone}async function j(){if(k())return!0;try{if("true"===localStorage.getItem(b))return!0}catch(e){}if("getInstalledRelatedApps"in navigator)try{let e=await navigator.getInstalledRelatedApps();if(Array.isArray(e)&&e.length>0){try{localStorage.setItem(b,"true")}catch(e){}return!0}}catch(e){}return!1}
1function S(){let[e,t]=(0,s.useState)(!1),[a,o]=(0,s.useState)("unknown"),[S,_]=(0,s.useState)(null),[P,N]=(0,s.useState)("idle"),[Z,E]=(0,s.useState)("ios"),[I,T]=(0,s.useState)(!1),C=(0,s.useCallback)(()=>{let e=window;e._pwaTimer&&(clearTimeout(e._pwaTimer),e._pwaTimer=void 0);try{sessionStorage.setItem(v,"true"),sessionStorage.setItem("regulus_pwa_prompt_seen","true")}catch(e){}t(!1)},[]);(0,s.useEffect)(()=>{if(k()||"true"===localStorage.getItem(b)){T(!0);return}let e=function(){let e=navigator.userAgent,t=/iphone|ipad|ipod/i.test(e),a=/android/i.test(e);return t?"ios":a?"android":"desktop"}();o(e),"unknown"!==e&&E(e);let a=!1;!async function(){if(await j()){a||T(!0);return}if(a||T(!1),!sessionStorage.getItem(v)){let e=setTimeout(()=>{a||t(!0)},1800);window._pwaTimer=e}}();let r=e=>{e.preventDefault(),_(e);try{localStorage.removeItem(b)}catch(e){}T(!1)};window.addEventListener("beforeinstallprompt",r);let s=()=>{try{localStorage.setItem(b,"true")}catch(e){}T(!0),N("done"),setTimeout(()=>C(),2e3)};window.addEventListener("appinstalled",s);let n=()=>{try{localStorage.removeItem(b)}catch(e){}T(!1),N("idle"),t(!0)};return window.addEventListener("regulus:show-pwa-modal",n),()=>{a=!0,window.removeEventListener("beforeinstallprompt",r),window.removeEventListener("appinstalled",s),window.removeEventListener("regulus:show-pwa-modal",n);let e=window;e._pwaTimer&&clearTimeout(e._pwaTimer)}},[C]);let A=async()=>{if(S){if(N("installing"),await S.prompt(),"accepted"===(await S.userChoice).outcome){try{localStorage.setItem(b,"true")}catch(e){}N("done"),setTimeout(()=>C(),2e3)}else N("idle");_(null)}},O={ios:[{icon:(0,r.jsx)(l,{className:"w-4 h-4 text-[#1a43bf]"}),text:"Tap the Share button (⬆) at the bottom of Safari"},{icon:(0,r.jsx)(u.Z,{className:"w-4 h-4 text-[#1a43bf]"}),text:'Scroll down and tap "Add to Home Screen"'},{icon:(0,r.jsx)(c.Z,{className:"w-4 h-4 text-emerald-600"}),text:'Tap "Add" to confirm — Regulus is now on your home screen!'}],android:[{icon:(0,r.jsx)(d,{className:"w-4 h-4 text-[#1a43bf]"}),text:"Tap the menu (⋮) in the top-right corner of Chrome"},{icon:(0,r.jsx)(u.Z,{className:"w-4 h-4 text-[#1a43bf]"}),text:'Select "Add to Home screen"'},{icon:(0,r.jsx)(c.Z,{className:"w-4 h-4 text-emerald-600"}),text:'Tap "Add" — Regulus is now installed on your device!'}],desktop:[{icon:(0,r.jsx)(g.Z,{className:"w-4 h-4 text-[#1a43bf]"}),text:"Click the install icon (⊕) in your browser address bar"},{icon:(0,r.jsx)(c.Z,{className:"w-4 h-4 text-emerald-600"}),text:'Click "Install" in the popup — Regulus opens like a native app!'}]},M=[{icon:(0,r.jsx)(m.Z,{className:"w-3.5 h-3.5"}),label:"Faster Access"},{icon:(0,r.jsx)(p.Z,{className:"w-3.5 h-3.5"}),label:"Push Alerts"},{icon:(0,r.jsx)(h,{className:"w-3.5 h-3.5"}),label:"Works Offline"}];return I?null:(0,r.jsx)(n.M,{children:e&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.E.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.25},className:"fixed inset-0 z-[9998] bg-gray-900/50 backdrop-blur-sm",onClick:C},"pwa-backdrop"),(0,r.jsx)(i.E.div,{initial:{opacity:0,scale:.92,y:32},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.94,y:16},transition:{type:"spring",stiffness:320,damping:26},className:"fixed inset-0 z-[9999] flex items-center justify-center p-4 pointer-events-none",children:(0,r.jsxs)("div",{className:"bg-[#0b1329] rounded-3xl shadow-2xl w-full max-w-md overflow-hidden pointer-events-auto",children:[(0,r.jsxs)("div",{className:"relative bg-gradient-to-br from-[#0b1329] via-[#1a43bf] to-[#2563eb] px-6 pt-8 pb-10 rounded-t-3xl overflow-hidden",children:[(0,r.jsx)("div",{className:"absolute right-0 top-0 w-64 h-64 bg-blue-400/20 blur-[80px] rounded-full pointer-events-none"}),(0,r.jsx)("div",{className:"absolute -bottom-8 -left-8 w-48 h-48 bg-indigo-600/20 blur-[60px] rounded-full pointer-events-none"}),(0,r.jsx)("button",{type:"button","aria-label":"Close modal",onClick:e=>{e.preventDefault(),e.stopPropagation(),C()},className:"absolute top-4 right-4 z-50 w-8 h-8 rounded-full bg-white/10 hover:bg-white/20 active:scale-95 flex items-center justify-center text-white/80 hover:text-white transition-all cursor-pointer select-none",children:(0,r.jsx)(f.Z,{className:"w-4 h-4 pointer-events-none"})}),(0,r.jsxs)("div",{className:"relative z-10 flex items-center gap-4",children:[(0,r.jsx)("div",{className:"w-16 h-16 rounded-2xl bg-white/10 border border-white/20 flex items-center justify-center shadow-lg shrink-0 backdrop-blur-sm",children:(0,r.jsx)("span",{className:"text-white font-black text-2xl tracking-tight select-none",children:"R"})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h2",{className:"text-white font-extrabold text-xl leading-tight",children:"Add to Home Screen"}),(0,r.jsx)("p",{className:"text-blue-200 text-xs font-medium mt-0.5",children:"Regulus Liquidity — Trading Platform"})]})]}),(0,r.jsx)("div",{className:"relative z-10 flex items-center gap-2 mt-5 flex-wrap",children:M.map(e=>(0,r.jsxs)("span",{className:"flex items-center gap-1.5 bg-white/15 border border-white/20 text-white text-[11px] font-semibold px-3 py-1 rounded-full backdrop-blur-sm",children:[e.icon,e.label]},e.label))})]}),(0,r.jsxs)("div",{className:"-mt-4 bg-white rounded-t-3xl relative z-10 px-6 pb-6",children:[(0,r.jsx)("div",{className:"flex justify-center pt-3 pb-4",children:(0,r.jsx)("div",{className:"w-10 h-1 rounded-full bg-gray-200"})}),(0,r.jsx)("p",{className:"text-sm text-gray-600 font-medium mb-5 text-center leading-relaxed",children:"Install Regulus on your device for faster access, offline support, and real-time trading alerts — just like a native app."}),S&&(0,r.jsx)("button",{type:"button",onClick:A,disabled:"installing"===P||"done"===P,className:"w-full py-3.5 rounded-2xl text-sm font-extrabold text-white bg-gradient-to-r from-[#1a43bf] to-[#2563eb] hover:from-[#1536a8] hover:to-[#1d4fd8] active:scale-[0.98] transition-all shadow-lg cursor-pointer flex items-center justify-center gap-2.5 mb-5 disabled:opacity-70",children:"done"===P?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c.Z,{className:"w-4 h-4 text-emerald-300"}),"Installed Successfully!"]}):"installing"===P?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(y.Z,{className:"w-4 h-4"}),"Installing…"]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(g.Z,{className:"w-4 h-4"}),"Install Regulus App"]})}),(0,r.jsxs)("div",{className:"mb-4",children:[(0,r.jsx)("p",{className:"text-xs font-bold text-gray-400 uppercase tracking-widest mb-3 text-center",children:"Step-by-Step Guide"}),(0,r.jsx)("div",{className:"flex items-center bg-gray-100 rounded-xl p-1 gap-1 mb-4",children:[{key:"ios",label:"iPhone / iPad",short:"iOS",icon:(0,r.jsx)(x.Z,{className:"w-3 h-3"})},{key:"android",label:"Android",short:"Android",icon:(0,r.jsx)(x.Z,{className:"w-3 h-3"})},{key:"desktop",label:"Desktop",short:"PC",icon:(0,r.jsx)(w.Z,{className:"w-3 h-3"})}].map(e=>(0,r.jsxs)("button",{type:"button",onClick:()=>E(e.key),className:"flex-1 flex items-center justify-center gap-1.5 py-2 rounded-lg text-[11px] font-bold transition-all cursor-pointer ".concat(Z===e.key?"bg-white text-[#1a43bf] shadow-sm":"text-gray-500 hover:text-gray-700"),children:[e.icon,(0,r.jsx)("span",{children:e.short})]},e.key))}),(0,r.jsx)("div",{className:"space-y-2.5",children:O[Z].map((e,t)=>(0,r.jsxs)("div",{className:"flex items-start gap-3 p-3 bg-gray-50 rounded-xl border border-gray-100",children:[(0,r.jsx)("div",{className:"w-7 h-7 rounded-lg bg-blue-50 flex items-center justify-center shrink-0 mt-0.5",children:e.icon}),(0,r.jsxs)("p",{className:"text-xs font-medium text-gray-700 leading-snug flex-1 pt-0.5",children:[(0,r.jsxs)("span",{className:"text-[#1a43bf] font-extrabold mr-1.5",children:[t+1,"."]}),e.text]})]},t))})]}),(0,r.jsx)("button",{type:"button",onClick:C,className:"w-full py-2.5 rounded-2xl text-sm font-semibold text-gray-500 bg-gray-100 hover:bg-gray-200 transition-all cursor-pointer",children:"Maybe Later"})]})]})},"pwa-modal")]})})}},2711:function(e,t,a){"use strict";a.d(t,{ReduxProvider:function(){return f}});var r=a(57437),s=a(2265),n=a(68575),i=a(99376),o=a(39129),l=a(74738);let u=(0,o.xC)({reducer:{auth:l.ZP},devTools:!1});var c=a(40525),d=a(75849),g=a(58143);let m=["/","/signin","/register","/forgot-password","/reset-password","/contact-us","/terms-conditions","/
1privacy-policy","/risk-disclosure","/products","/trading","/services","/tools-resources","/about-us","/maintenance","/comingsoon"];function p(e){if(!e)return!1;let t=e.endsWith("/")&&e.length>1?e.slice(0,-1):e;return m.includes(e)||m.includes(t)||t.startsWith("/maintenance")||t.startsWith("/comingsoon")||t.startsWith("/adminLogin")}function h(e){let{children:t}=e,a=(0,c.T)(),n=(0,i.useRouter)(),o=(0,i.usePathname)(),{isAuthenticated:u}=(0,c.C)(e=>e.auth),[m,h]=(0,s.useState)(!1),[f,y]=(0,s.useState)(!1),[x,w]=(0,s.useState)(null),v=async()=>{try{var e,t,a,r,s,n,i;let o=await g.Z.getSiteSetting(),l=!!(null!==(i=null!==(n=null!==(s=null==o?void 0:null===(e=o.result)||void 0===e?void 0:e.maintenance)&&void 0!==s?s:null==o?void 0:null===(t=o.result)||void 0===t?void 0:t.maintenanceMode)&&void 0!==n?n:null==o?void 0:null===(r=o.result)||void 0===r?void 0:null===(a=r.data)||void 0===a?void 0:a.maintenance)&&void 0!==i&&i);w(l)}catch(e){}};(0,s.useEffect)(()=>{a((0,l.uJ)()),h(!0),v();let e=e=>{var t;(null==e?void 0:null===(t=e.detail)||void 0===t?void 0:t.maintenance)!==void 0?w(!!e.detail.maintenance):w(!0)};return window.addEventListener("regulus_maintenance_mode",e),()=>{window.removeEventListener("regulus_maintenance_mode",e)}},[a]),(0,s.useEffect)(()=>{if(!m)return;if(!localStorage.getItem("regulus_token")){y(p(o));return}let e=!0;return y(!1),a((0,l.YI)()).unwrap().then(()=>{e&&y(!0)}).catch(()=>{e&&(a((0,l.TX)()),window.location.replace("/signin"))}),()=>{e=!1}},[a,m,o]),(0,s.useEffect)(()=>{if(!m||o.startsWith("/adminLogin"))return;if(!0===x){if(!o.startsWith("/maintenance")){n.replace("/maintenance");return}}else if(!1===x&&o.startsWith("/maintenance")){n.replace(u?"/dashboard":"/");return}let e=p(o),t=!!localStorage.getItem("regulus_token");e||t||u||x||n.replace("/signin"),t&&("/signin"===o||"/register"===o)&&!x&&n.replace("/dashboard")},[o,u,m,x,n]);let b=p(o),k=!!localStorage.getItem("regulus_token");return!m||b||k&&u&&f||!0===x?(0,r.jsx)(r.Fragment,{children:t}):(0,r.jsx)("div",{className:"min-h-screen bg-[#f8fafc] flex items-center justify-center",children:(0,r.jsx)(d.m9,{size:"md"})})}function f(e){let{children:t}=e;return(0,r.jsx)(n.zt,{store:u,children:(0,r.jsx)(h,{children:t})})}},30724:function(e,t,a){"use strict";a.d(t,{ToastProvider:function(){return n}});var r=a(57437);a(2265);var s=a(94242);function n(e){let{children:t}=e;return(0,r.jsxs)(r.Fragment,{children:[t,(0,r.jsx)(s.Ix,{position:"top-right",autoClose:3e3,hideProgressBar:!1,newestOnTop:!1,closeOnClick:!0,rtl:!1,pauseOnFocusLoss:!0,draggable:!0,pauseOnHover:!0,theme:"light"})]})}a(2648)},24453:function(e,t,a){"use strict";a.d(t,{E1:function(){return o}});let r=a(18697).Z.create({baseURL:"https://coreapi.regulus.org/api",timeout:15e3}),s=(e,t)=>{if(401===e)return!0;let a=String(t||"").toLowerCase();return(a.includes("token")||a.includes("jwt"))&&(a.includes("expired")||a.includes("invalid")||a.includes("unauthorized"))},n=()=>{localStorage.removeItem("regulus_token"),localStorage.removeItem("regulus_user"),localStorage.removeItem("withdraw_otp_expiry"),Object.keys(localStorage).forEach(e=>{e.startsWith("withdraw_otp_expiry")&&localStorage.removeItem(e)}),document.cookie="regulus_token=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT; SameSite=Lax","/signin"!==window.location.pathname&&window.location.replace("/signin")},i=()=>(n(),Promise.reject(Error("Session expired. Please sign in again.")));r.interceptors.request.use(e=>{{let t=localStorage.getItem("regulus_token");if(t&&e.headers){let a=t.startsWith("Bearer ")?t:"Bearer ".concat(t);e.headers.Authorization=a}}return e},e=>Promise.reject(e)),r.interceptors.response.use(e=>{let t=e.data,a=(null==t?void 0:t.message)||(null==t?void 0:t.detail);return(null==t?void 0:t.status)===!1&&s(e.status,a)?i():e},e=>{if("ECONNABORTED"===e.code||"ETIMEDOUT"===e.code)return Promise.reject(Error("The server is taking longer than expected. Please refresh before trying again."));if(e.response){var t;let a=e.response.data,r="string"==typeof(null==a?void 0:a.message)?a.message:"string"==typeof(null==a?void 0:a.detail)?a.detail:"";if(s(e.response.status,r))return i();let n="An error occurred. Please try again.";if(413===e.response.status)n="The uploaded file is too large. Please choose a smaller file and try again.";else if("string"==typeof(null==a?void 0:a.message))n=a.message;else if("string"==typeof(null==a?void 0:a.detail))n=a.detail;else if(Array.isArray(null==a?void 0:a.detail)&&(null===(t=a.detail[0])||void 0===t?void 0:t.msg)){let e=String(a.detail[0].msg);n="Field required"===e?"Please select a valid document image file to upload.":e}else 503===e.response.status?(n="The site is currently under maintenance. Please try again later.",window.dispatchEvent(new CustomEvent("regulus_maintenance_mode",{detail:{maintenance:!0}}))):403===e.response.status?n="You do not have permission to perform this action.":500===e.response.status&&(n="Server error. Please try again later.");let o=Error(n);return o.response=e.response,o.status=e.response.status,Promise.reject(o)}return e.request?(console.log(e.request,"error request"),Promise.reject(Error("Unable to connect to the server. Please check your internet connection."))):Promise.reject(Error(e.message||"Something went wrong. Please try again."))});let o=e=>{if(!e||void 0===e.data)throw Error("No response payload received from server.");let t=e.data;if(t&&"object"==typeof t&&!1===t.status){let e=Error(t.message||"API request failed.");throw e.data=t,e}return e.data};t.ZP=r},29804:function(e,t,a){"use strict";var r=a(24453);t.Z={async register(e){let t=await r.ZP.post("/user/register",e);return(0,r.E1)(t)},async login(e){let t=await r.ZP.post("/user/login",e);return(0,r.E1)(t)},async getProfile(){let e=await r.ZP.get("/user/profile");return(0,r.E1)(e)},async logout(){let e=await r.ZP.post("/user/logout");return(0,r.E1)(e)},async resendRegisterOtp(e){let t=await r.ZP.post("/user/resend-register-otp",e);return(0,r.E1)(t)},async verifyRegisterOtp(e){let t=await r.ZP.post("/user/verify-register-otp",e);return(0,r.E1)(t)},async submitContactUs(e){let t=await r.ZP.post("/user/contact-us",e);return(0,r.E1)(t)}}},58143:function(e,t,a){"use strict";a.d(t,{W:function(){return s}});var r=a(24453);let s={updateProfile:async e=>(await r.ZP.put("/user/profile",e)).data,changePassword:async e=>(await r.ZP.post("/user/changePassword",e)).data,async forgotPassword(e){let t=await r.ZP.post("/user/forgot-password",e);return(0,r.E1)(t)},async resetPassword(e){let t=await r.ZP.post("/user/reset-password",e);return(0,r.E1)(t)},async addBankDetail(e){let t=await r.ZP.post("/user/add-bank-detail",e);return(0,r.E1)(t)}
1,async getBankDetails(){let e=await r.ZP.get("/user/bank-details");return(0,r.E1)(e)},async getKycStatus(){let e=await r.ZP.get("/user/kyc");return(0,r.E1)(e)},async submitKyc(e){let t=await r.ZP.post("/user/submit-kyc",e);return(0,r.E1)(t)},async uploadKycFile(e,t){let a=new FormData;a.append("role",e),a.append("file",t,t.name||"".concat(e,".jpg"));let r=localStorage.getItem("regulus_token"),s=r?r.startsWith("Bearer ")?r:"Bearer ".concat(r):"",n=await fetch("".concat("https://coreapi.regulus.org/api".replace(/\/+$/,""),"/user/kyc/upload-file?role=").concat(encodeURIComponent(e)),{method:"POST",headers:{...s?{Authorization:s}:{}},body:a}),i=await n.json();if(!n.ok||!1===i.status){let e=i.detail||i.message||"Failed to upload KYC image.";throw Error("string"==typeof e?e:JSON.stringify(e))}return i},async getNotifications(){let e=await r.ZP.get("/user/notifications");return(0,r.E1)(e)},async markNotificationsRead(e){let t=await r.ZP.post("/user/notifications/read",{id:e});return(0,r.E1)(t)},async clearNotifications(){let e=await r.ZP.delete("/user/notifications/clear");return(0,r.E1)(e)},async uploadKycDocument(e){let t=await r.ZP.post("/user/kyc/upload-doc",e,{});return(0,r.E1)(t)},async get2FaStatus(){let e=await r.ZP.get("/user/2fa-status");return(0,r.E1)(e)},async get2FaData(){let e=await r.ZP.get("/user/2fa-data");return(0,r.E1)(e)},enable2FA:async e=>(await r.ZP.post("/user/enable-2fa",e)).data,disable2FA:async e=>(await r.ZP.post("/user/disable-2fa",e)).data,getSiteSetting:async()=>(await r.ZP.get("/user/get-site-setting")).data};t.Z=s},40525:function(e,t,a){"use strict";a.d(t,{C:function(){return n},T:function(){return s}});var r=a(68575);let s=()=>(0,r.I0)(),n=r.v9},74738:function(e,t,a){"use strict";a.d(t,{$P:function(){return g},Nq:function(){return m},TX:function(){return d},YI:function(){return l},a$:function(){return i},pH:function(){return o},uJ:function(){return c}});var r=a(39129),s=a(29804);let n=e=>{try{let t=e.replace(/^Bearer\s+/i,"").split(".")[1];if(!t)return!1;let a=t.replace(/-/g,"+").replace(/_/g,"/"),r=JSON.parse(atob(a));return"string"==typeof r.session_id&&r.session_id.length>0}catch(e){return!1}},i=(0,r.hg)("auth/registerUser",async(e,t)=>{let{rejectWithValue:a}=t;try{let t=await s.Z.register(e);if(!t.status)return a(t);return t}catch(e){var r;return a((null==e?void 0:e.data)||(null==e?void 0:null===(r=e.response)||void 0===r?void 0:r.data)||e.message||"Registration failed. Please try again.")}}),o=(0,r.hg)("auth/loginUser",async(e,t)=>{let{rejectWithValue:a}=t;try{let t=await s.Z.login(e);if(!t.status||!t.token)return a(t);return t}catch(e){var r;return a((null==e?void 0:e.data)||(null==e?void 0:null===(r=e.response)||void 0===r?void 0:r.data)||e.message||"Sign in failed. Please try again.")}}),l=(0,r.hg)("auth/fetchUserProfile",async(e,t)=>{let{rejectWithValue:a}=t;try{let e=await s.Z.getProfile();if(!e.status||!e.result)return a(e.message||"Failed to fetch profile.");return e.result}catch(e){return a(e.message||"Failed to load profile.")}}),u=(0,r.oM)({name:"auth",initialState:{user:null,token:null,isAuthenticated:!1,loading:!1,error:null},reducers:{initializeAuth:e=>{{let t=localStorage.getItem("regulus_token"),a=localStorage.getItem("regulus_user");if(t&&a&&n(t))try{e.token=t,e.user=JSON.parse(a),e.isAuthenticated=!1,document.cookie="regulus_token=".concat(t,"; path=/; max-age=86400; SameSite=Lax")}catch(e){localStorage.removeItem("regulus_token"),localStorage.removeItem("regulus_user"),document.cookie="regulus_token=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT;"}else document.cookie="regulus_token=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT;",localStorage.removeItem("regulus_token"),localStorage.removeItem("regulus_user"),localStorage.removeItem("withdraw_otp_expiry"),Object.keys(localStorage).forEach(e=>{e.startsWith("withdraw_otp_expiry")&&localStorage.removeItem(e)})}},logoutUser:e=>{e.user=null,e.token=null,e.isAuthenticated=!1,e.loading=!1,e.error=null,localStorage.removeItem("regulus_token"),localStorage.removeItem("regulus_user"),localStorage.removeItem("withdraw_otp_expiry"),Object.keys(localStorage).forEach(e
1=>{e.startsWith("withdraw_otp_expiry")&&localStorage.removeItem(e)}),document.cookie="regulus_token=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT;"},clearAuthError:e=>{e.error=null},updateUser:(e,t)=>{e.user&&(e.user={...e.user,...t.payload},localStorage.setItem("regulus_user",JSON.stringify(e.user)))}},extraReducers:e=>{e.addCase(i.pending,e=>{e.loading=!0,e.error=null}).addCase(i.fulfilled,e=>{e.loading=!1,e.error=null}).addCase(i.rejected,(e,t)=>{e.loading=!1,"string"==typeof t.payload?e.error=t.payload:t.payload&&"object"==typeof t.payload?e.error=t.payload.message||"Registration failed.":e.error="Registration failed."}),e.addCase(o.pending,e=>{e.loading=!0,e.error=null}).addCase(o.fulfilled,(e,t)=>{e.loading=!1,e.error=null,t.payload.token&&(e.token=t.payload.token,e.user=t.payload.user||null,e.isAuthenticated=!0,localStorage.setItem("regulus_token",t.payload.token),t.payload.user&&localStorage.setItem("regulus_user",JSON.stringify(t.payload.user)),document.cookie="regulus_token=".concat(t.payload.token,"; path=/; max-age=86400; SameSite=Lax"))}).addCase(o.rejected,(e,t)=>{e.loading=!1,"string"==typeof t.payload?e.error=t.payload:t.payload&&"object"==typeof t.payload?e.error=t.payload.message||"Sign in failed.":e.error="Sign in failed."}),e.addCase(l.fulfilled,(e,t)=>{e.user={...e.user||{},...t.payload},e.isAuthenticated=!0,localStorage.setItem("regulus_user",JSON.stringify(e.user))}).addCase(l.rejected,e=>{e.user=null,e.token=null,e.isAuthenticated=!1,localStorage.removeItem("regulus_token"),localStorage.removeItem("regulus_user"),localStorage.removeItem("withdraw_otp_expiry"),Object.keys(localStorage).forEach(e=>{e.startsWith("withdraw_otp_expiry")&&localStorage.removeItem(e)}),document.cookie="regulus_token=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT; SameSite=Lax"})}}),{initializeAuth:c,logoutUser:d,clearAuthError:g,updateUser:m}=u.actions;t.ZP=u.reducer},83020:function(){},2648:function(){},2778:function(){}},function(e){e.O(0,[2245,2461,5676,8697,6157,4242,9516,3976,2971,5030,1744],function(){return e(e.s=76529)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.