module.exports=[93695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},70864,a=>{a.n(a.i(33290))},43619,a=>{a.n(a.i(79962))},13718,a=>{a.n(a.i(85523))},18198,a=>{a.n(a.i(45518))},62212,a=>{a.n(a.i(66114))},64240,(a,b,c)=>{"use strict";function d(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(d=function(a){return a?c:b})(a)}c._=function(a,b){if(!b&&a&&a.__esModule)return a;if(null===a||"object"!=typeof a&&"function"!=typeof a)return{default:a};var c=d(b);if(c&&c.has(a))return c.get(a);var e={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in a)if("default"!==g&&Object.prototype.hasOwnProperty.call(a,g)){var h=f?Object.getOwnPropertyDescriptor(a,g):null;h&&(h.get||h.set)?Object.defineProperty(e,g,h):e[g]=a[g]}return e.default=a,c&&c.set(a,e),e}},790,(a,b,c)=>{let{createClientModuleProxy:d}=a.r(11857);a.n(d("[project]/node_modules/next/dist/client/app-dir/link.js <module evaluation>"))},84707,(a,b,c)=>{let{createClientModuleProxy:d}=a.r(11857);a.n(d("[project]/node_modules/next/dist/client/app-dir/link.js"))},97647,a=>{"use strict";a.i(790);var b=a.i(84707);a.n(b)},95936,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={default:function(){return i},useLinkStatus:function(){return h.useLinkStatus}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(64240),g=a.r(7997),h=f._(a.r(97647));function i(a){let b=a.legacyBehavior,c="string"==typeof a.children||"number"==typeof a.children||"string"==typeof a.children?.type,d=a.children?.type?.$$typeof===Symbol.for("react.client.reference");return!b||c||d||(a.children?.type?.$$typeof===Symbol.for("react.lazy")?console.error("Using a Lazy Component as a direct child of `<Link legacyBehavior>` from a Server Component is not supported. If you need legacyBehavior, wrap your Lazy Component in a Client Component that renders the Link's `<a>` tag."):console.error("Using a Server Component as a direct child of `<Link legacyBehavior>` is not supported. If you need legacyBehavior, wrap your Server Component in a Client Component that renders the Link's `<a>` tag.")),(0,g.jsx)(h.default,{...a})}("function"==typeof c.default||"object"==typeof c.default&&null!==c.default)&&void 0===c.default.__esModule&&(Object.defineProperty(c.default,"__esModule",{value:!0}),Object.assign(c.default,c),b.exports=c.default)},71985,a=>{"use strict";var b=a.i(7997),c=a.i(95936),d=a.i(99044),e=a.i(43917),f=a.i(5689);async function g({searchParams:a}){let g,{session_id:h}=await a;if(!h)return(0,b.jsx)("main",{className:"mx-auto flex min-h-screen max-w-xl items-center px-4",children:(0,b.jsxs)("div",{className:"w-full rounded-xl border border-destructive/30 bg-destructive/5 p-6",children:[(0,b.jsx)("h1",{className:"text-2xl font-bold text-foreground",children:"Payment Incomplete"}),(0,b.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:"Missing checkout session id."}),(0,b.jsx)("div",{className:"mt-6",children:(0,b.jsx)(e.Button,{asChild:!0,variant:"outline",children:(0,b.jsx)(c.default,{href:"/causes",children:"Back to Causes"})})})]})});let i="failed";try{let a=await (0,d.getCheckoutSessionStatus)(h);"paid"===a.paymentStatus&&(i="paid",g=a.amountTotal??void 0)}catch{i="failed"}let j="paid"===i;return(0,b.jsx)("main",{className:"mx-auto flex min-h-screen max-w-xl items-center px-4",children:(0,b.jsxs)("div",{className:`w-full rounded-xl border p-6 ${j?"border-emerald-500/30 bg-emerald-500/5":"border-destructive/30 bg-destructive/5"}`,children:[(0,b.jsx)("h1",{className:"text-2xl font-bold text-foreground",children:j?"Donation Confirmed":"Payment Incomplete"}),(0,b.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:j?"Your donation was completed successfully. Thank you for your support.":"Payment was not completed or could not be verified."}),j&&"number"==typeof g&&(0,b.jsxs)("p",{className:"mt-3 text-sm font-medium text-foreground",children:["Total donated: ",(0,f.formatCurrency)(g)]}),(0,b.jsxs)("div",{className:"mt-6 flex gap-3",children:[(0,b.jsx)(e.Button,{asChild:!0,children:(0,b.jsx)(c.default,{href:"/",children:"Return Home"})}),!j&&(0,b.jsx)(e.Button,{asChild:!0,variant:"outline",children:(0,b.jsx)(c.default,{href:"/causes",children:"Try Again"})})]})]})})}a.s(["default",()=>g])}];

//# sourceMappingURL=%5Broot-of-the-server%5D__34758fa7._.js.map