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"))},50640,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"InvariantError",{enumerable:!0,get:function(){return d}});class d extends Error{constructor(a,b){super(`Invariant: ${a.endsWith(".")?a:a+"."} This is a bug in Next.js.`,b),this.name="InvariantError"}}},60620,a=>{"use strict";let b=(0,a.i(92277).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);a.s(["ChevronRight",0,b],60620)},26298,a=>{a.v("/_next/static/media/favicon.26f8n-rfcsmi_.ico"+(globalThis.NEXT_CLIENT_ASSET_SUFFIX||""))},92214,a=>{"use strict";let b={src:a.i(26298).default,width:57,height:60};a.s(["default",0,b])},18266,a=>{"use strict";a.s(["CheckoutForm",()=>b]);let b=(0,a.i(11857).registerClientReference)(function(){throw Error("Attempted to call CheckoutForm() from the server but CheckoutForm is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/apps/web/src/components/checkout/checkout-form.tsx <module evaluation>","CheckoutForm")},69957,a=>{"use strict";a.s(["CheckoutForm",()=>b]);let b=(0,a.i(11857).registerClientReference)(function(){throw Error("Attempted to call CheckoutForm() from the server but CheckoutForm is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/apps/web/src/components/checkout/checkout-form.tsx","CheckoutForm")},28077,a=>{"use strict";a.i(18266);var b=a.i(69957);a.n(b)},95563,a=>{"use strict";var b=a.i(7997),c=a.i(95936),d=a.i(60620),e=a.i(28077),f=a.i(80536);async function g(a){if(a)try{let{data:b}=await f.coursesApi.list({status:"published",pageSize:100});return b.find(b=>b.slug===a)?.slug}catch{return}}async function h({searchParams:a}){let{course:f}=await a,i=await g(f);return(0,b.jsxs)("div",{children:[(0,b.jsxs)("section",{className:"relative overflow-hidden bg-muted pattern-dots",children:[(0,b.jsx)("div",{className:"pointer-events-none absolute -top-16 -left-10 size-56 rounded-full bg-accent/30 blur-3xl"}),(0,b.jsxs)("div",{className:"relative mx-auto w-full max-w-6xl px-4 py-10",children:[(0,b.jsxs)("nav",{"aria-label":"Breadcrumb",className:"flex items-center gap-1.5 text-sm text-foreground/50",children:[(0,b.jsx)(c.default,{href:"/",className:"hover:text-primary",children:"Home"}),(0,b.jsx)(d.ChevronRight,{className:"size-3.5"}),(0,b.jsx)(c.default,{href:"/courses",className:"hover:text-primary",children:"Courses"}),(0,b.jsx)(d.ChevronRight,{className:"size-3.5"}),(0,b.jsx)("span",{className:"text-foreground/70",children:"Checkout"})]}),(0,b.jsx)("h1",{className:"mt-4 font-display text-3xl font-extrabold text-primary sm:text-4xl",children:"You're one step away"}),(0,b.jsx)("p",{className:"mt-2 max-w-xl text-foreground/70",children:"Fill in your details below to complete enrollment — you'll choose your payment method next."})]})]}),(0,b.jsx)("section",{className:"mx-auto w-full max-w-6xl px-4 py-12",children:(0,b.jsx)(e.CheckoutForm,{preselectedSlug:i})})]})}a.s(["default",0,h,"metadata",0,{title:"Checkout",description:"Complete your enrollment at Guided Hearts Academy.",robots:{index:!1,follow:!1}}])},50708,a=>{a.n(a.i(95563))}];

//# sourceMappingURL=%5Broot-of-the-server%5D__1c-4ugg._.js.map