1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5361],{66600:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/bypass-maintenance/[token]",function(){return n(59331)}])},59331:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return d}});var r=n(34051),s=n.n(r),a=n(85893),c=n(67294),o=n(11163),i=n(69911);function u(e,t,n,r,s,a,c){try{var o=e[a](c),i=o.value}catch(u){return void n(u)}o.done?t(i):Promise.resolve(i).then(r,s)}function l(e){var t,n=e.token,r=e.isValidToken,i=(0,o.useRouter)(),l=(0,c.useState)("validating"),d=l[0],x=l[1],f=(0,c.useState)(""),h=f[0],m=f[1],p=(0,c.useCallback)((t=s().mark((function e(){var t,a;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r){e.next=4;break}return x("error"),m("Invalid bypass token. Access denied."),e.abrupt("return");case 4:return e.prev=4,e.next=7,fetch("/api/maintenance/generate-bypass-token",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:n})});case 7:return t=e.sent,e.next=10,t.json();case 10:a=e.sent,t.ok&&a.success?(x("success"),m("Maintenance mode bypass activated successfully! Redirecting to dashboard..."),setTimeout((function(){i.push("/dashboard")}),3e3)):(x("error"),m(a.error||"Failed to activate bypass token")),e.next=18;break;case 14:e.prev=14,e.t0=e.catch(4),x("error"),m("Network error. Please try again.");case 18:case"end":return e.stop()}}),e,null,[[4,14]])})),function(){var e=this,n=arguments;return new Promise((function(r,s){var a=t.apply(e,n);function c(e){u(a,r,s,c,o,"next",e)}function o(e){u(a,r,s,c,o,"throw",e)}c(void 0)}))}),[r,n,i]);(0,c.useEffect)((function(){p()}),[p]);return(0,a.jsxs)("div",{className:"flex relative flex-col justify-center items-center w-screen h-screen text-sm text-gray-600 isolate",children:[(0,a.jsx)("img",{"aria-hidden":"true",src:"/images/logo_login.png",alt:"Firm-App Logo",className:"pointer-events-none h-[150px]"}),(0,a.jsx)("div",{className:"w-120 pt-16 text-xl font-bold text-boni-red text-center",children:"Maintenance Mode Bypass"}),(0,a.jsxs)("div",{className:"w-120 pt-6 text-boni-red text-center",children:["Token: ",n]}),(0,a.jsxs)("div",{className:"w-120 pt-8 flex flex-col items-center",children:[function(){switch(d){case"validating":return(0,a.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600 mx-auto mb-4"});case"success":return(0,a.jsx)("div",{className:"mx-auto flex items-center justify-center h-12 w-12 rounded-full bg-green-100 mb-4",children:(0,a.jsx)("svg",{className:"h-6 w-6 text-green-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})});case"error":return(0,a.jsx)("div",{className:"mx-auto flex items-center justify-center h-12 w-12 rounded-full bg-red-100 mb-4",children:(0,a.jsx)("svg",{className:"h-6 w-6 text-red-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})});default:return null}}(),(0,a.jsx)("div",{className:"text-center",children:(0,a.jsx)("p",{className:"text-sm ".concat("success"===d?"text-green-600":"error"===d?"text-red-600":"text-gray-600"),children:h||"Validating bypass token..."})}),"error"===d&&(0,a.jsx)("div",{className:"text-center mt-4",children:(0,a.jsx)("button",{onClick:function(){return i.back()},className:"text-sm text-blue-600 hover:text-blue-500",children:"\u2190 Go back"})})]})]})}l.getLayout=function(e){return(0,a.jsx)(i.Z,{children:e})};var d=!0;t.default=l}},function(e){e.O(0,[9774,2888,179],(function(){return t=66600,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.