1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[279],{285:(e,s,a)=>{"use strict";a.d(s,{$:()=>c,r:()=>d});var t=a(5155),r=a(2115),i=a(4253),l=a(2085),n=a(9434);let d=(0,l.F)("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),c=r.forwardRef((e,s)=>{let{className:a,variant:r,size:l,asChild:c=!1,...o}=e,x=c?i.DX:"button";return(0,t.jsx)(x,{className:(0,n.cn)(d({variant:r,size:l,className:a})),ref:s,...o})});c.displayName="Button"},356:(e,s,a)=>{"use strict";a.d(s,{C:()=>c,z:()=>d});var t=a(5155),r=a(2115),i=a(4059),l=a(154),n=a(9434);let d=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(i.bL,{className:(0,n.cn)("grid gap-2",a),...r,ref:s})});d.displayName=i.bL.displayName;let c=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(i.q7,{ref:s,className:(0,n.cn)("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",a),...r,children:(0,t.jsx)(i.C1,{className:"flex items-center justify-center",children:(0,t.jsx)(l.A,{className:"h-2.5 w-2.5 fill-current text-current"})})})});c.displayName=i.q7.displayName},2346:(e,s,a)=>{"use strict";a.d(s,{w:()=>n});var t=a(5155),r=a(2115),i=a(7489),l=a(9434);let n=r.forwardRef((e,s)=>{let{className:a,orientation:r="horizontal",decorative:n=!0,...d}=e;return(0,t.jsx)(i.b,{ref:s,decorative:n,orientation:r,className:(0,l.cn)("shrink-0 bg-border","horizontal"===r?"h-[1px] w-full":"h-full w-[1px]",a),...d})});n.displayName=i.b.displayName},2523:(e,s,a)=>{"use strict";a.d(s,{p:()=>l});var t=a(5155),r=a(2115),i=a(9434);let l=r.forwardRef((e,s)=>{let{className:a,type:r,...l}=e;return(0,t.jsx)("input",{type:r,className:(0,i.cn)("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",a),ref:s,...l})});l.displayName="Input"},5057:(e,s,a)=>{"use strict";a.d(s,{J:()=>c});var t=a(5155),r=a(2115),i=a(968),l=a(2085),n=a(9434);let d=(0,l.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),c=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(i.b,{ref:s,className:(0,n.cn)(d(),a),...r})});c.displayName=i.b.displayName},6658:(e,s,a)=>{"use strict";a.d(s,{FlightProvider:()=>c,z:()=>o});var t=a(5155),r=a(2115),i=a(7481),l=a(4477);let n=(0,l.createServerReference)("40736677f87bdfcfebdf0222190d5b7a6b6b5ab1ef",l.callServer,void 0,l.findSourceMapURL,"searchFlights"),d=(0,r.createContext)(void 0);function c(e){let{children:s}=e,[a,l]=(0,r.useState)([]),[c,o]=(0,r.useState)([]),[x,m]=(0,r.useState)(!1),[u,f]=(0,r.useState)(null),[p,h]=(0,r.useState)(null),{toast:g}=(0,i.dj)(),[j,v]=(0,r.useState)(!1);(0,r.useEffect)(()=>{v(!0)},[]);let N=(0,r.useCallback)(async e=>{m(!0),f(e),l([]),h(null);let s=await n(e);return(m(!1),s.success&&s.data)?(l(s.data),s.data.length>0&&h(s.data[0]),!0):(j&&g({variant:"destructive",title:"Error Searching Flights",description:s.error||"An unknown error occurred."}),!1)},[g,j]),b=(0,r.useCallback)(e=>{o(s=>s.find(s=>s.id===e.id)?s:(j&&g({title:"Flight Tracked!",description:"We'll notify you about price changes for ".concat(e.airline," to ").concat(e.destinationCode,".")}),[...s,e]))},[g,j]),y=(0,r.useCallback)(e=>{o(s=>s.filter(s=>s.id!==e)),j&&g({title:"Flight Untracked",description:"You will no longer receive updates for this flight."})},[g,j]),w=(0,r.useCallback)(e=>c.some(s=>s.id===e),[c]),C=(0,r.useCallback)(e=>{h(e)},[]);return(0,t.jsx)(d.Provider,{value:{flights:a,trackedFlights:c,isLoading:x,searchCriteria:u,searchFlights:N,trackFlight:b,untrackFlight:y,isFlightTracked:w,selectedFlight:p,selectFlight:C},children:s})}function o(){let e=(0,r.useContext)(d);if(void 0===e)throw Error("useFlights must be used within a FlightProvider");return e}},6695:(e,s,a)=>{"use strict";a.d(s,{Wu:()=>c,ZB:()=>d,Zp:()=>l,aR:()=>n,wL:()=>o});var t=a(5155),r=a(2115),i=a(9434);let l=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("div",{ref:s,className:(0,i.cn)("rounded-lg border bg-card text-card-foreground shadow-sm",a),...r})});
1l.displayName="Card";let n=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("div",{ref:s,className:(0,i.cn)("flex flex-col space-y-1.5 p-6",a),...r})});n.displayName="CardHeader";let d=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("div",{ref:s,className:(0,i.cn)("text-2xl font-semibold leading-none tracking-tight",a),...r})});d.displayName="CardTitle",r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("div",{ref:s,className:(0,i.cn)("text-sm text-muted-foreground",a),...r})}).displayName="CardDescription";let c=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("div",{ref:s,className:(0,i.cn)("p-6 pt-0",a),...r})});c.displayName="CardContent";let o=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("div",{ref:s,className:(0,i.cn)("flex items-center p-6 pt-0",a),...r})});o.displayName="CardFooter"},6944:(e,s,a)=>{"use strict";a.r(s),a.d(s,{default:()=>O});var t=a(5155),r=a(2115),i=a(6658),l=a(6695),n=a(285),d=a(2085),c=a(9434);let o=(0,d.F)("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),x=r.forwardRef((e,s)=>{let{className:a,variant:r,...i}=e;return(0,t.jsx)("div",{ref:s,role:"alert",className:(0,c.cn)(o({variant:r}),a),...i})});x.displayName="Alert";let m=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("h5",{ref:s,className:(0,c.cn)("mb-1 font-medium leading-none tracking-tight",a),...r})});m.displayName="AlertTitle";let u=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)("div",{ref:s,className:(0,c.cn)("text-sm [&_p]:leading-relaxed",a),...r})});u.displayName="AlertDescription";var f=a(356),p=a(5057),h=a(2346),g=a(172),j=a(8260),v=a(3158),N=a(2160),b=a(6160),y=a(4371),w=a(4465),C=a(594),k=a(3013);function T(e){let{className:s,...a}=e;return(0,t.jsx)("div",{className:(0,c.cn)("animate-pulse rounded-md bg-muted",s),...a})}var A=a(7313),S=a(5695),R=a(6766),E=a(2523),F=a(7242);let D=F.bL,M=F.R6,P=F.Ke;var _=a(7481);function O(){let{selectedFlight:e,searchCriteria:s,isLoading:a}=(0,i.z)(),[d,o]=(0,r.useState)(""),[F,O]=(0,r.useState)(0),U=(0,S.useRouter)(),[Z,I]=(0,r.useState)(!1),[J,z]=(0,r.useState)(!1),{toast:L}=(0,_.dj)();if((0,r.useEffect)(()=>{a||e||U.push("/")},[a,e,U]),a||!e||!s)return(0,t.jsx)("div",{className:"container mx-auto p-4 md:p-8",children:(0,t.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:[(0,t.jsxs)("div",{className:"lg:col-span-2 space-y-8",children:[(0,t.jsx)(T,{className:"h-12 w-1/3"}),(0,t.jsx)(T,{className:"h-8 w-1/2"}),(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)(T,{className:"h-20 w-full"}),(0,t.jsx)(T,{className:"h-20 w-full"})]}),(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)(T,{className:"h-12 w-full"}),(0,t.jsx)(T,{className:"h-12 w-full"}),(0,t.jsx)(T,{className:"h-12 w-full"}),(0,t.jsx)(T,{className:"h-12 w-full"})]})]}),(0,t.jsxs)("div",{className:"space-y-8",children:[(0,t.jsx)(T,{className:"h-12 w-1/2"}),(0,t.jsx)(T,{className:"h-64 w-full"}),(0,t.jsx)(T,{className:"h-48 w-full"})]})]})});let V=e.price,B=.18*V,$=Object.values(s.passengers).reduce((e,s)=>e+s,0)||1,W=(V+B)*$,X=e=>{o(e),z(!1),"giftcard"===e?O(W*(Math.random()*(.15-.1)+.1)):"crypto"===e?O(.2*W):O(0)},G=W-F,Y="shadow-sm hover:shadow-xl hover:scale-[1.02] transition-all duration-300";return(0,t.jsxs)("div",{className:"container mx-auto p-4 md:p-8",children:[Z&&(0,t.jsx)("div",{className:"fixed inset-0 bg-black/60 z-50 flex items-center justify-center",children:(0,t.jsxs)("div",{className:"bg-background p-8 rounded-lg shadow-xl flex flex-col items-center gap-4",children:[(0,t.jsx)(g.A,{className:"h-12 w-12 animate-spin text-primary"}),(0,t.jsx)("p",{className:"text-lg font-semibold",children:"Payment processing..."})]})}),(0,t.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-12",children:[(0,t.jsxs)("div",{className:"lg:col-span-2",children:[(0,t.jsx)("header",{className:"mb-8",children:(0,t.jsxs)("h1",{className:"text-4xl font-bold text-primary mb-2 font-headline",children:["Review and pay ",(0,t.jsx)("span",{className:"text-destructive font-bold",children:"(scam)"})]})}),(0,t.jsxs)("section",{className:"mb-8",children:[(0,t.jsxs)("h2",{className:"text-2xl font-semibold mb-4",children:["How would you like to pay? ",(0,t.jsx)("span",{className:"text-destructive font-bold",children:"(scam)"})]}),(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)(l.Zp,{className:(0,
1c.cn)("flex items-center justify-between p-4 cursor-pointer",Y),children:[(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsx)(j.A,{className:"h-6 w-6 text-primary"}),(0,t.jsx)("span",{children:"Add Trip Credit / Flight Credit"})]}),(0,t.jsx)(v.A,{className:"h-5 w-5 text-muted-foreground"})]}),(0,t.jsxs)(l.Zp,{className:(0,c.cn)("flex items-center justify-between p-4 cursor-pointer",Y),children:[(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsx)(N.A,{className:"h-6 w-6 text-primary"}),(0,t.jsx)("span",{children:"Add a gift card / flight discount"})]}),(0,t.jsx)(v.A,{className:"h-5 w-5 text-muted-foreground"})]})]})]}),(0,t.jsx)("section",{children:(0,t.jsxs)(f.z,{onValueChange:X,value:d,className:"space-y-4",children:[(0,t.jsx)(l.Zp,{className:(0,c.cn)("overflow-hidden transition-all duration-300",Y,"card"===d&&"ring-2 ring-primary shadow-xl scale-[1.02]"),children:(0,t.jsxs)(D,{open:"card"===d,children:[(0,t.jsx)(M,{asChild:!0,children:(0,t.jsxs)("div",{className:"p-4 flex items-center space-x-4 cursor-pointer",onClick:()=>X("card"),children:[(0,t.jsx)(f.C,{value:"card",id:"card"}),(0,t.jsx)(p.J,{htmlFor:"card",className:"flex-grow font-semibold text-lg cursor-pointer",children:"Credit / debit card"}),(0,t.jsx)("div",{className:"flex gap-1",children:(0,t.jsx)(b.A,{className:"h-6 w-6"})})]})}),(0,t.jsx)(P,{children:(0,t.jsxs)("div",{className:"bg-muted/50 p-6 space-y-4",children:[J&&(0,t.jsxs)(x,{variant:"destructive",children:[(0,t.jsx)(y.A,{className:"h-4 w-4"}),(0,t.jsx)(m,{children:"Payment Failed"}),(0,t.jsx)(u,{children:"We were unable to process your payment. Please check your card details and try again."})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(p.J,{htmlFor:"card-number",children:"Card number"}),(0,t.jsx)(E.p,{id:"card-number",placeholder:"0000 0000 0000 0000",className:"bg-background"})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(p.J,{htmlFor:"card-name",children:"Name on card"}),(0,t.jsx)(E.p,{id:"card-name",placeholder:"John Doe",className:"bg-background"})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(p.J,{htmlFor:"expiry-date",children:"Expiration date"}),(0,t.jsx)(E.p,{id:"expiry-date",placeholder:"MM / YY",className:"bg-background"})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(p.J,{htmlFor:"cvv",children:"CVV"}),(0,t.jsx)(E.p,{id:"cvv",placeholder:"123",className:"bg-background"})]})]})]})})]})}),(0,t.jsx)(l.Zp,{className:(0,c.cn)("transition-all",Y,"affirm"===d&&"ring-2 ring-primary shadow-xl scale-[1.02]"),children:(0,t.jsxs)("div",{className:"flex items-center space-x-4 p-4 cursor-pointer",onClick:()=>X("affirm"),children:[(0,t.jsx)(f.C,{value:"affirm",id:"affirm"}),(0,t.jsx)(p.J,{htmlFor:"affirm",className:"flex-grow text-lg cursor-pointer",children:"Pay over time with Affirm"})]})}),(0,t.jsx)(l.Zp,{className:(0,c.cn)("transition-all",Y,"paypal"===d&&"ring-2 ring-primary shadow-xl scale-[1.02]"),children:(0,t.jsxs)("div",{className:"flex items-center space-x-4 p-4 cursor-pointer",onClick:()=>X("paypal"),children:[(0,t.jsx)(f.C,{value:"paypal",id:"paypal"}),(0,t.jsx)(p.J,{htmlFor:"paypal",className:"flex-grow text-lg cursor-pointer",children:"PayPal"})]})}),(0,t.jsx)(l.Zp,{className:(0,c.cn)("transition-all",Y,"giftcard"===d&&"ring-2 ring-primary shadow-xl scale-[1.02]"),children:(0,t.jsxs)("div",{className:"flex items-center space-x-4 p-4 cursor-pointer",onClick:()=>X("giftcard"),children:[(0,t.jsx)(f.C,{value:"giftcard",id:"giftcard"}),(0,t.jsxs)(p.J,{htmlFor:"giftcard",className:"flex-grow text-lg cursor-pointer",children:["Pay with Gift card - ",(0,t.jsx)("span",{className:"font-normal",children:"And get Up to 20% discount."})]})]})}),(0,t.jsx)(l.Zp,{className:(0,c.cn)("transition-all",Y,"crypto"===d&&"ring-2 ring-primary shadow-xl scale-[1.02]"),children:(0,t.jsxs)("div",{className:"flex items-center space-x-4 p-4 cursor-pointer",onClick:()=>X("crypto"),children:[(0,t.jsx)(f.C,{value:"crypto",id:"crypto"}),(0,t.jsxs)(p.J,{htmlFor:"crypto",className:"flex-grow text-lg cursor-pointer",children:["BTC, ETH, USDT - ",(0,t.jsx)("span",{className:"font-normal",children:"And get 20% fix Discount."})]})]})})]})})]}),(0,t.jsxs)("aside",{className:"space-y-8 pt-20",children:[(0,t.jsxs)(l.Zp,{className:"shadow-lg",children:[(0,t.jsxs)(l.aR,{className:"flex flex-row items-center gap-4",children:[e.airlineLogoUrl.startsWith("data:")?(0,t.jsx)(R.default,{src:e.airlineLogoUrl,alt:e.airline,width:60,height:60,className:"rounded-full","data-ai-hint":"airline logo"}):(0,t.jsx)("img",{src:e.airlineLogoUrl,alt:e.airline,width:60,height:60,className:"rounded-full","data-ai-hint":"airline logo"}),(0,t.jsx)(l.ZB,{className:"font-headline text-2xl",children:s.flightName||"Your trip"})]}),(0,t.jsx)(l.Wu,{children:(0,t.jsxs)(A.tU,{defaultValue:"departure",children:[(0,t.jsxs)(A.j7,{className:"grid w-full grid-cols-2",children:[(0,t.jsxs)(A.Xi,{value:"departure",children:[e.originCode," - ",e.destinationCode]}),(0,t.jsx)(A.Xi,{value:"return",disabled:"round-trip"!==s.tripType,children:"round-trip"===s.tripType?"".concat(e.destinationCode," - ").concat(e.originCode):"Return"})]}),(0,t.jsx)(A.av,{value:"departure",children:(0,t.jsxs)("div",{className:"p-4 border rounded-b-lg",children:[(0,t.jsx)("p",{className:"font-semibold mb-4",children:(0,k.GP)(new Date(s.departureDate),"EEEE, MMMM d, yyyy")}),(0,t.jsxs)("div",{className:"flex justify-between items-center mb-4",children:[(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("div",{className:"font-bold text-xl",children:e.departureTime}),(0,t.jsx)("div",{className:"font-bold text-2xl",children:e.originCode}),(0,t.jsx)("div",{className:"text-sm text-muted-foreground",children:e.origin})]}),(0,t.jsxs)("div",{className:"flex flex-col items-center text-center",children:[(0,t.jsx)("div",{className:"text-sm text-muted-foreground",children:e.duration}),(0,t.jsx)(w.A,{className:"h-6 w-6 text-muted-foreground my-1"})]}),(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("div",{className:"font-bold text-xl",children:e.arrivalTime}),(0,t.jsx)("div",{className:"font-bold text-2xl",children:e.destinationCode}),(0,t.jsx)("div",{className:"text-sm text-muted-foreground",children:e.destination})]})]}),(0,t.jsx)(h.w,{}),(0,t.jsxs)("div",{className:"mt-4 flex items-center gap-2",children:[(0,t.jsx)("span",{className:"font-medium",children:e.airline}),(0,t.jsxs)("span",{children:["- ",s.cabinClass]})]})]})}),"round-trip"===s.tripType&&s.returnDate&&(0,t.jsx)(A.av,{value:"return",children:(0,t.jsxs)("div",{className:"p-4 border rounded-b-lg",children:[(0,t.jsx)("p",{className:"font-semibold mb-4",children:(0,k.GP)(new Date(s.returnDate),"EEEE, MMMM d, yyyy")}),(0,t.jsxs)("div",{className:"flex justify-between items-center mb-4",children:[(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("div",{className:"font-bold text-xl",children:e.departureTime}),(0,t.jsx)("div",{className:"font-bold text-2xl",children:e.destinationCode}),(0,t.jsx)("div",{className:"text-sm text-muted-foreground",children:e.destination})]}),(0,t.jsxs)("div",{className:"flex flex-col items-center text-center",children:[(0,t.jsx)("div",{className:"text-sm text-muted-foreground",children:e.duration}),(0,t.jsx)(w.A,{className:"h-6 w-6 text-muted-foreground my-1"})]}),(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("div",{className:"font-bold text-xl",children:e.arrivalTime}),(0,t.jsx)("div",{className:"font-bold text-2xl",children:e.originCode}),(0,t.jsx)("div",{className:"text-sm text-muted-foreground",children:e.origin})]})]}),(0,t.jsx)(h.w,{}),(0,t.jsxs)("div",{className:"mt-4 flex items-center gap-2",children:[(0,t.jsx)("span",{className:"font-medium",children:e.airline}),(0,t.jsxs)("span",{children:["- ",s.cabinClass]})]})]})})]})})]}),(0,t.jsxs)(l.Zp,{className:"shadow-lg",children:[(0,t.jsx)(l.aR,{children:(0,t.jsx)(l.ZB,{className:"font-headline text-2xl",children:"Cost summary"})}),(0,t.jsxs)(l.Wu,{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"flex justify-between",children:[(0,t.jsxs)("span",{children:["Fare x ",$]}),(0,t.jsxs)("span",{children:["$",(V*$).toFixed(2)]})]}),(0,t.jsxs)("div",{className:"flex justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)("span",{children:"Taxes and carrier imposed fees"}),(0,t.jsx)(C.A,{className:"h-4 w-4 text-muted-foreground"})]}),(0,t.jsxs)("span",{children:["$",(B*$).toFixed(2)]})]}),F>0&&(0,t.jsxs)("div",{className:"flex justify-between text-destructive",children:[(0,t.jsx)("span",{children:"Discount"}),(0,t.jsxs)("span",{children:["-$",F.toFixed(2)]})]}),(0,t.jsx)(h.w,{}),(0,t.jsxs)("div",{className:"flex justify-between items-center font-bold text-2xl",children:[(0,t.jsxs)("span",{children:["Total amount due ",(0,t.jsx)("span",{className:"text-destructive font-bold",children:"(scam)"})]}),(0,t.jsxs)("span",{children:["$",G.toFixed(2)]})]})]})]}),(0,t.jsxs)("div",{className:"text-center mt-2",children:[(0,t.jsx)(n.$,{className:"w-full h-12 text-lg",onClick:()=>"crypto"===d?void U.push("https://pay.oxapay.com/13623218"):"card"!==d?void L({title:"Payment method not implemented",description:'Please select "Credit / debit card" to test the payment flow.',variant:"destructive"}):void(I(!0),z(!1),setTimeout(()=>{I(!1),z(!0)},3e3)),disabled:Z,children:Z?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(g.A,{className:"mr-2 h-4 w-4 animate-spin"}),"Processing..."]}):"Confirm and pay"}),(0,t.jsx)("p",{className:"text-destructive font-bold mt-2",children:"(scam)"})]})]})]})]})}},7083:(e,s,a)=>{Promise.resolve().then(a.bind(a,6944))},7313:(e,s,a)=>{"use strict";a.d(s,{Xi:()=>c,av:()=>o,j7:()=>d,tU:()=>n});var t=a(5155),r=a(2115),i=a(704),l=a(9434);let n=i.bL,d=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(i.B8,{ref:s,className:(0,l.cn)("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",a),...r})});d.displayName=i.B8.displayName;let c=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(i.l9,{ref:s,className:(0,l.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",a),...r})});c.displayName=i.l9.displayName;let o=r.forwardRef((e,s)=>{let{className:a,...r}=e;return(0,t.jsx)(i.UC,{ref:s,className:(0,l.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",a),...r})});o.displayName=i.UC.displayName},7481:(e,s,a)=>{"use strict";a.d(s,{dj:()=>m});var t=a(2115);let r=0,i=new Map,l=e=>{if(i.has(e))return;let s=setTimeout(()=>{i.delete(e),o({type:"REMOVE_TOAST",toastId:e})},1e6);i.set(e,s)},n=(e,s)=>{switch(s.type){case"ADD_TOAST":return{...e,toasts:[s.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===s.toast.id?{...e,...s.toast}:e)};case"DISMISS_TOAST":{let{toastId:a}=s;
1return a?l(a):e.toasts.forEach(e=>{l(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===a||void 0===a?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===s.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==s.toastId)}}},d=[],c={toasts:[]};function o(e){c=n(c,e),d.forEach(e=>{e(c)})}function x(e){let{...s}=e,a=(r=(r+1)%Number.MAX_SAFE_INTEGER).toString(),t=()=>o({type:"DISMISS_TOAST",toastId:a});return o({type:"ADD_TOAST",toast:{...s,id:a,open:!0,onOpenChange:e=>{e||t()}}}),{id:a,dismiss:t,update:e=>o({type:"UPDATE_TOAST",toast:{...e,id:a}})}}function m(){let[e,s]=t.useState(c);return t.useEffect(()=>(d.push(s),()=>{let e=d.indexOf(s);e>-1&&d.splice(e,1)}),[e]),{...e,toast:x,dismiss:e=>o({type:"DISMISS_TOAST",toastId:e})}}},9434:(e,s,a)=>{"use strict";a.d(s,{cn:()=>i});var t=a(2596),r=a(9688);function i(){for(var e=arguments.length,s=Array(e),a=0;a<e;a++)s[a]=arguments[a];return(0,r.QP)((0,t.$)(s))}}},e=>{var s=s=>e(e.s=s);e.O(0,[874,69,302,347,441,684,358],()=>s(7083)),_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.