PageSourceSearch

https://buckettys.com.au/assets/gift-membership-success-BAPL0XLQ.js

js buckettys.com.au collected 2026-10-04 20:58:11 UTC 6,319 bytes, 6 lines download raw bytes

1import{T as N,Q as v,r,j as e,C as k,d as C,e as P,g as I,R as b,B as d,U as _}from"./index-CLsVjUEP.js";import{N as q}from"./navigation-CZbKGuHl.js";import{F as G}from"./footer-C3__dy2l.js";import{p as S}from"./Compressed emma_1763433839770-BbWSHtUS.js";import{G as D}from"./gift-B1P0gyKy.js";import{P as E}from"./party-popper-BGd9C8Or.js";import"./phone-Bp26UHOw.js";import"./mail-BoC73zxf.js";/**
2 * @license lucide-react v0.453.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const g=N("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);function z(){const i=new URLSearchParams(v()).get("session_id"),[t,f]=r.useState(null),[u,m]=r.useState(!0),[h,y]=r.useState(!1);r.useEffect(()=>{const o="1910276279898184";(function(s,n,x,j,a,l,c){var p;s.fbq||(a=s.fbq=function(){a.callMethod?a.callMethod.apply(a,arguments):a.queue.push(arguments)},s._fbq||(s._fbq=a),a.push=a,a.loaded=!0,a.version="2.0",a.queue=[],l=n.createElement(x),l.async=!0,l.src=j,c=n.getElementsByTagName(x)[0],(p=c.parentNode)==null||p.insertBefore(l,c))})(window,document,"script","https://connect.facebook.net/en_US/fbevents.js"),window.fbq("init",o),window.fbq("track","PageView")},[]),r.useEffect(()=>{t&&!h&&window.fbq&&(window.fbq("track","Purchase",{value:t.annualFee,currency:"AUD",content_name:`Gift Membership - ${t.tierName}`,content_type:"product",content_ids:[t.tier]}),y(!0))},[t,h]),r.useEffect(()=>{(async()=>{if(!i){m(!1);return}try{const s=await fetch(`/api/members/gift-session-info?session_id=${i}`);if(s.ok){const n=await s.json();f(n)}}catch(s){console.error("Failed to fetch gift info:",s)}finally{m(!1)}})()},[i]);const w=()=>{i&&window.open(`/api/members/gift-voucher?session_id=${i}`,"_blank")};return e.jsxs("div",{className:"min-h-screen relative",style:{backgroundImage:`url(${S})`,backgroundSize:"150%",backgroundPosition:"center 20%",backgroundAttachment:"fixed"},children:[e.jsx("div",{className:"absolute inset-0 bg-domino-900/85 backdrop-blur-sm"}),e.jsxs("div",{className:"relative z-10",children:[e.jsx(q,{}),e.jsx("div",{className:"max-w-3xl mx-auto px-4 sm:px-6 lg:px-8 py-16",children:e.jsxs(k,{className:"border-ecology-600/30 bg-black/85 backdrop-blur-lg text-white print:bg-white print:text-black",children:[e.jsxs(C,{className:"text-center pb-4",children:[e.jsx("div",{className:"flex justify-center mb-4",children:e.jsx("div",{className:"p-4 rounded-full bg-ecology-600/20 backdrop-blur-sm print:bg-green-100",children:e.jsx(D,{className:"h-16 w-16 text-ecology-500 print:text-green-600"})})}),e.jsx(P,{className:"text-3xl text-white print:text-black",children:"Gift Purchase Complete!"})]}),e.jsx(I,{className:"space-y-6",children:u?e.jsxs("div",{className:"text-center py-8",children:[e.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-ecology-500 mx-auto"}),e.jsx("p",{className:"text-gray-400 mt-4",children:"Loading gift details..."})]}):t?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"text-center",children:[e.jsxs("p",{className:"text-lg text-gray-300 print:text-gray-700 mb-2",children:["You've gifted a ",e.jsx("span",{className:"text-ecology-400 font-semibold print:text-green-600",children:t.tierName})," to"]}),e.jsx("p",{className:"text-2xl font-bold text-white print:text-black mb-4",children:t.recipientName})]}),e.jsxs("div",{className:"bg-ecology-600/20 print:bg-green-50 rounded-lg p-6 space-y-4 border border-ecology-500/30 print:border-green-200",children:[e.jsxs("div",{className:"flex items-center justify-center gap-2 mb-4",children:[e.jsx(E,{className:"h-5 w-5 text-ecology-400 print:text-green-600"}),e.jsx("h3",{className:"font-semibold text-white print:text-black text-lg",children:"Their Membership Includes"})]}),e.jsx("ul",{className:"space-y-2.5 text-sm text-gray-200 print:text-gray-700",children:t.benefits.map((o,s)=>e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(b,{className:"h-4 w-4 text-ecology-500 print:text-green-600 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:o})]},s))}),e.jsx("div",{className:"pt-4 border-t border-ecology-500/30 print:border-green-200 mt-4",children:e.jsxs("p",{className:"text-sm text-gray-400 print:text-gray-600",children:[e.jsx("span",{className:"font-medium text-white print:text-black",children:"Membership starts:"})," ",new Date(t.startDate).toLocaleDateString("en-AU",{weekday:"long",day:"numeric",month:"long",year:"numeric"})]})})]}),e.jsxs("div",{className:"bg-yellow-500/10 print:bg-yellow-50 border border-yellow-500/30 print:border-yellow-200 rounded-lg p-4",children:[e.jsx("h4",{className:"font-semibold text-yellow-400 print:text-yellow-700 mb-2",children:"What happens next?"}),e.jsxs("p",{className:"text-sm text-gray-300 print:text-gray-600",children:[t.recipientName," will need to visit Chalky's to complete their membership setup. They can show their phone number at the venue to verify their membership and get their login details."]})]}),e.jsxs("div",{className:"flex gap-4 justify-center pt-4 flex-wrap print:hidden",children:[e.jsxs(d,{onClick:w,className:"bg-ecology-600 hover:bg-ecology-700 text-white font-semibold","data-testid":"button-download-voucher",children:[e.jsx(_,{className:"h-4 w-4 mr-2"}),"Download Gift Voucher"]}),e.jsxs(d,{onClick:()=>window.location.href="/",variant:"outline",className:"border-white/30 bg-white/5 text-white/80 hover:bg-white/20 hover:text-white","data-testid":"button-home",children:[e.jsx(g,{className:"h-4 w-4 mr-2"}),"Back to Home"]})]})]}):e.jsxs("div",{className:"text-center py-8",children:[e.jsx(b,{className:"h-16 w-16 text-ecology-500 mx-auto mb-4"}),e.jsx("p",{className:"text-lg text-gray-300 mb-2",children:"Thank y
6ou for your gift membership purchase!"}),e.jsx("p",{className:"text-sm text-gray-400 mb-6",children:"The recipient will be able to use their membership at Chalky's."}),e.jsxs(d,{onClick:()=>window.location.href="/",className:"bg-ecology-600 hover:bg-ecology-700 text-white font-semibold","data-testid":"button-home-fallback",children:[e.jsx(g,{className:"h-4 w-4 mr-2"}),"Back to Home"]})]})})]})}),e.jsx(G,{})]})]})}export{z as default};

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.