(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8859],{1494:(e,s,t)=>{"use strict";t.d(s,{default:()=>n});var a=t(5155),r=t(5695),u=t(2115);function n(){let e=(0,r.useRouter)(),s=(0,r.useSearchParams)(),[t,n]=(0,u.useState)(""),[o,c]=(0,u.useState)("");return(0,u.useEffect)(()=>{n(s.get("status")||"unknown"),c(s.get("message")||"No message provided.")},[s]),(0,a.jsx)("div",{className:"min-h-screen flex flex-col items-center justify-center bg-gray-100 p-4",children:(0,a.jsxs)("div",{className:"bg-white p-8 rounded-lg shadow-md w-full max-w-md text-center",children:[(0,a.jsxs)("h1",{className:"text-3xl font-bold mb-4 ".concat("failed"===t?"text-red-600":"text-green-600"),children:["Payment ",t.charAt(0).toUpperCase()+t.slice(1)]}),(0,a.jsx)("p",{className:"text-gray-700 mb-6",children:o}),(0,a.jsx)("button",{onClick:()=>{e.push("/")},className:"bg-blue-500 hover:bg-blue-600 text-white font-bold py-2 px-4 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-opacity-50",children:"Go to Home"})]})})}},3762:(e,s,t)=>{Promise.resolve().then(t.bind(t,1494))},5695:(e,s,t)=>{"use strict";var a=t(8999);t.o(a,"usePathname")&&t.d(s,{usePathname:function(){return a.usePathname}}),t.o(a,"useRouter")&&t.d(s,{useRouter:function(){return a.useRouter}}),t.o(a,"useSearchParams")&&t.d(s,{useSearchParams:function(){return a.useSearchParams}})}},e=>{var s=s=>e(e.s=s);e.O(0,[8441,1684,7358],()=>s(3762)),_N_E=e.O()}]);