PageSourceSearch

https://stayviax.com/_next/static/chunks/pages/confirmation/[id]-9b0c6a6983e3b756.js

js stayviax.com collected 2026-10-02 00:57:27 UTC 27,751 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6640],{67042:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/confirmation/[id]",function(){return s(72286)}])},82692:function(e,t,s){"use strict";s.d(t,{Z:function(){return l}});var a=s(85893);s(67294);var r=s(6643);function l(e){let{amount:t,baseCurrency:s="EUR",prefixPlus:l=!1,className:n="",exact:i=!1}=e,o=(0,r.E)("number"==typeof t?t:0,s,i);if(null==t||"number"!=typeof t||isNaN(t))return(0,a.jsx)("span",{className:n,children:"--"});if((null==o?void 0:o.loading)||!(null==o?void 0:o.formatted))return(0,a.jsx)("span",{className:"inline-block align-middle ".concat(n),"aria-busy":"true","aria-label":"…",children:(0,a.jsx)("span",{className:"inline-block h-[1em] w-[4.25em] animate-pulse rounded bg-current opacity-20"})});let c=o.formatted;return(0,a.jsx)("span",{className:n,children:l?"+".concat(c):c})}},6643:function(e,t,s){"use strict";s.d(t,{E:function(){return x},U:function(){return o}});var a=s(67294),r=s(855),l=s(93655),n=s(27228);function i(){return(0,n.FN)(new URLSearchParams(window.location.search).get("currency"))||(0,l.OF)()||"EUR"}function o(){let[e,t]=(0,a.useState)(i),[s,r]=(0,a.useState)(!0);(0,a.useEffect)(()=>{(async()=>{try{let e=i();e&&(0,l.hb)(e),t(e),r(!1)}catch(e){t("EUR"),r(!1)}})(),(0,l.pF)((0,l.OF)()||"EUR").catch(()=>{});let e=e=>{e.detail&&e.detail.currency&&t(e.detail.currency)};return window.addEventListener("currencyChanged",e),()=>{window.removeEventListener("currencyChanged",e)}},[]);let n=(0,a.useCallback)(async function(t){var a,r;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"EUR";if(s)return{loading:!0,formatted:"..."};try{let s=await (0,l.z7)(t,n,e),r=(0,l.T4)(s,e);return{loading:!1,amount:s,formatted:r,currency:e,symbol:(null===(a=l.Re[e])||void 0===a?void 0:a.symbol)||"€"}}catch(e){return{loading:!1,amount:t,formatted:(0,l.T4)(t,n),currency:n,symbol:(null===(r=l.Re[n])||void 0===r?void 0:r.symbol)||"€"}}},[e,s]),o=(0,a.useCallback)(async function(t){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"EUR";if(s)return t;try{return await (0,l.z7)(t,a,e)}catch(e){return t}},[e,s]),c=(0,a.useCallback)(t=>(0,l.T4)(t,e),[e]),d=(0,a.useCallback)(()=>l.Re[e]||l.Re.EUR,[e]);return(0,a.useMemo)(()=>{var t;return{currentCurrency:e,isLoading:s,convertAndFormatPrice:n,convertPriceOnly:o,formatConvertedPrice:c,getCurrencyInfo:d,currencySymbol:(null===(t=l.Re[e])||void 0===t?void 0:t.symbol)||"€",currencyList:l.U1}},[e,s,n,o,c,d])}function c(e,t){let s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,r.$)(e,t,s)}function d(e,t){return String(e||"").toUpperCase()===String(t||"").toUpperCase()}function m(e){var t;let s=String(e||"EUR").toUpperCase();return{formatted:"",loading:!0,amount:0,symbol:(null===(t=l.Re[s])||void 0===t?void 0:t.symbol)||"€",currency:s}}function x(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"EUR",s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],{convertAndFormatPrice:r,currentCurrency:n,isLoading:i,currencySymbol:x}=o(),h=n||t,u=(0,a.useCallback)((e,t)=>(0,l.T4)(e,t),[]),[b,f]=(0,a.useState)(()=>{var a;if(null==e||"number"!=typeof e||isNaN(e))return{formatted:"--",loading:!1,amount:0,symbol:x||"€",currency:h};if(!d(t,h))return m(h);let r=c(e,h,s);return{formatted:(0,l.T4)(r,h),loading:!1,amount:r,symbol:(null===(a=l.Re[h])||void 0===a?void 0:a.symbol)||"€",currency:h}});return(0,a.useEffect)(()=>{var a;let o=n||t,x=(null===(a=l.Re[o])||void 0===a?void 0:a.symbol)||"€";if(null==e||"number"!=typeof e||isNaN(e)){f({formatted:"--",loading:!1,amount:0,symbol:x,currency:o});return}if(0===e){f({formatted:u(0,o),loading:!1,amount:0,symbol:x,currency:o});return}if(e<0){f({formatted:"--",loading:!1,amount:0,symbol:x,currency:o});return}if(d(t,o)){let t=c(e,o,s);f({formatted:u(t,o),loading:!1,amount:t,symbol:x,currency:o});return}if(i){f(m(o));return}let h=!1;return f(m(o)),(async()=>{try{let a=await r(e,t);if(h)return;let l=c(a.amount,a.currency||o,s);f({...a,loading:!1,amount:l,formatted:u(l,a.currency||o)})}catch(e){if(h)return;f(m(o))}})(),()=>{h=!0}},[e,t,r,n,i,u,s]),b}},72286:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return i}});var a=s(85893),r=s(11163),l=s(67294),n=s(82692);function i(){let e=(0,r.useRouter)(),{id:t,timeout:s,type:i,activities:o,confirmed:c}=e.query,[d,m]=(0,l.useState)("processing"),[x,h]=(0,l.useState)(null),[u,b]=(0,l.useState)(null),[f,g]=(0,l.useState)(parseInt(o)||1);(0,l.useEffect)(()=>
1{if(!t)return;if("true"===s){m("timeout");return}if("true"===c){try{let e=sessionStorage.getItem("confirmation_booking");e&&h(JSON.parse(e))}catch(e){}m("confirmed");return}let e=async()=>{try{let s=await fetch("/api/check-booking-status?paymentIntentId=".concat(t)),a=await s.json();a.success?(m("confirmed"),h(a.bookingData),a.bookingData&&a.bookingData.hotelName&&!a.bookingData.activities&&console.log("✅ Hotel confirmation email already sent by booking API")):a.error&&a.error.includes("still processing")?setTimeout(e,3e3):(b(a.error),m("failed"))}catch(e){console.error("Error checking booking status:",e),b("Unable to verify booking status. Please check your email."),m("failed")}};e()},[t,s,c]);let j=async()=>{try{if(!x){alert("No booking data available for voucher generation");return}let e=await fetch("/api/generate-hotel-voucher",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(x)});if(e.ok){let t=await e.blob(),s=window.URL.createObjectURL(t),a=document.createElement("a");a.style.display="none",a.href=s,a.download="hotel-voucher-".concat(x.bookingReference||"booking",".pdf"),document.body.appendChild(a),a.click(),window.URL.revokeObjectURL(s),document.body.removeChild(a)}else alert("Failed to generate voucher PDF")}catch(e){console.error("Error downloading voucher:",e),alert("Error downloading voucher")}};return"processing"===d?(0,a.jsx)("div",{className:"container mx-auto px-4 py-8",children:(0,a.jsx)("div",{className:"max-w-4xl mx-auto",children:(0,a.jsxs)("div",{className:"bg-white rounded-xl shadow p-8 text-center",children:[(0,a.jsx)("div",{className:"w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-6",children:(0,a.jsx)("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-blue-500"})}),(0,a.jsx)("h1",{className:"text-3xl font-bold mb-4",children:"Processing..."}),(0,a.jsx)("p",{className:"text-gray-600 mb-8",children:"Your payment has been accepted. We are finalizing your reservation with the hotel. Please wait, this may take a few minutes."}),(0,a.jsxs)("div",{className:"bg-gray-50 rounded-lg p-4 mb-8",children:[(0,a.jsx)("p",{className:"text-sm text-gray-500",children:"Transaction Number"}),(0,a.jsx)("p",{className:"font-mono text-lg",children:t})]}),(0,a.jsx)("div",{className:"text-sm text-gray-500",children:"Do not close this page, we will redirect you automatically once the reservation is confirmed."})]})})}):"timeout"===d?(0,a.jsx)("div",{className:"container mx-auto px-4 py-8",children:(0,a.jsx)("div",{className:"max-w-4xl mx-auto",children:(0,a.jsxs)("div",{className:"bg-white rounded-xl shadow p-8 text-center",children:[(0,a.jsx)("div",{className:"w-16 h-16 bg-yellow-100 rounded-full flex items-center justify-center mx-auto mb-6",children:(0,a.jsx)("svg",{className:"w-8 h-8 text-yellow-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})})}),(0,a.jsx)("h1",{className:"text-3xl font-bold mb-4",children:"Booking In Progress"}),(0,a.jsxs)("p",{className:"text-gray-600 mb-8",children:["Your payment has been successfully processed and your booking is being confirmed with the hotel.",(0,a.jsx)("br",{}),(0,a.jsx)("strong",{children:"You will receive a confirmation email with your voucher within a few minutes to a few hours maximum."})]}),(0,a.jsxs)("div",{className:"bg-yellow-50 rounded-lg p-4 mb-8",children:[(0,a.jsxs)("p",{className:"text-sm text-yellow-700",children:["Transaction ID: ",t]}),(0,a.jsx)("p",{className:"text-sm text-yellow-600 mt-2",children:"Please save this transaction ID for your records."})]}),(0,a.jsx)("div",{className:"bg-blue-50 rounded-lg p-4 mb-8",children:(0,a.jsx)("p",{className:"text-sm text-blue-700",children:"\uD83D\uDCE7 Check your email inbox for the confirmation message with your booking voucher."})}),(0,a.jsx)("button",{onClick:()=>e.push("/"),className:"bg-primary text-white rounded-lg px-6 py-3 font-bold shadow hover:bg-primary/90 transition",children:"Back to Home"})]})})}):"failed"===d?(0,a.jsx)("div",{className:"container mx-auto px-4 py-8",children:(0,a.jsx)("div",{className:"max-w-4xl mx-auto",children:(0,a.jsxs)("div",{className:"bg-white rounded-xl shadow p-8 text-center",children:[(0,a.jsx)("div",{className:"w-16 h-16 bg-red-100 rounded-full flex items-center justify-center mx-auto mb-6",children:(0,a.jsx)("svg",{className:"w-8 h-8 text-red-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})}),(0,a.jsx)("h1",{className:"text-3xl font-bold mb-4",children:"Booking Problem"}),(0,a.jsx)("p",{className:"text-gray-600 mb-8",children:"Your payment was processed but there was a problem with the reservation. Your payment has been automatically refunded."}),(0,a.jsx)("div",{className:"bg-red-50 rounded-lg p-4 mb-8",children:(0,a.jsxs)("p",{className:"text-sm text-red-500",children:["Error: ",u]})}),(0,a.jsx)("button",{onClick:()=>
1e.push("/"),className:"bg-primary text-white rounded-lg px-6 py-3 font-bold shadow hover:bg-primary/90 transition",children:"Back to Home"})]})})}):(0,a.jsx)("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 via-blue-50 to-indigo-100",children:(0,a.jsxs)("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[(0,a.jsxs)("div",{className:"text-center mb-12",children:[(0,a.jsx)("div",{className:"flex justify-center mb-8",children:(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("div",{className:"w-24 h-24 bg-gradient-to-r from-emerald-400 to-teal-500 rounded-full flex items-center justify-center shadow-2xl animate-pulse",children:(0,a.jsx)("svg",{className:"w-12 h-12 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"M5 13l4 4L19 7"})})}),(0,a.jsx)("div",{className:"absolute -top-2 -right-2 w-8 h-8 bg-green-500 rounded-full flex items-center justify-center shadow-lg",children:(0,a.jsx)("svg",{className:"w-5 h-5 text-white",fill:"currentColor",viewBox:"0 0 20 20",children:(0,a.jsx)("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})})]})}),(0,a.jsx)("h1",{className:"text-3xl md:text-4xl font-bold bg-gradient-to-r from-gray-900 via-blue-800 to-indigo-800 bg-clip-text text-transparent mb-4",children:"Reservation Confirmed!"}),(0,a.jsx)("p",{className:"text-lg md:text-xl text-gray-600 max-w-3xl mx-auto leading-relaxed mb-3",children:"Your reservation has been successfully confirmed."}),(0,a.jsx)("p",{className:"text-base text-gray-500 max-w-2xl mx-auto",children:"A confirmation email with your voucher has been sent to your email address."})]}),(0,a.jsxs)("div",{className:"bg-white/90 backdrop-blur-lg rounded-3xl shadow-2xl border border-white/30 mb-8 overflow-hidden",children:[(0,a.jsx)("div",{className:"bg-gradient-to-r from-teal-600 to-teal-700 px-8 py-8",children:(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("div",{className:"text-white",children:[(0,a.jsxs)("h2",{className:"text-2xl font-bold mb-2 flex items-center gap-3",children:[(0,a.jsx)("span",{className:"text-2xl",children:"\uD83C\uDFE8"}),(null==x?void 0:x.hotelName)||"Booking Confirmed"]}),(0,a.jsx)("p",{className:"text-teal-100 text-base",children:"All details verified and processed successfully"})]}),(0,a.jsx)("div",{className:"hidden md:block",children:(0,a.jsx)("div",{className:"w-20 h-20 bg-white/20 rounded-2xl flex items-center justify-center backdrop-blur-sm",children:(0,a.jsx)("svg",{className:"w-10 h-10 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"})})})})]})}),(0,a.jsx)("div",{className:"p-8",children:(0,a.jsxs)("div",{className:"grid lg:grid-cols-3 gap-8",children:[(0,a.jsxs)("div",{className:"lg:col-span-2 space-y-6",children:[(0,a.jsxs)("div",{className:"bg-gradient-to-br from-teal-50 to-teal-100 border border-teal-200 rounded-2xl p-6 shadow-sm",children:[(0,a.jsxs)("div",{className:"flex items-center mb-4",children:[(0,a.jsx)("div",{className:"w-12 h-12 bg-teal-600 rounded-xl flex items-center justify-center mr-4 shadow-lg",children:(0,a.jsx)("svg",{className:"w-6 h-6 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"text-xs font-bold text-teal-800 uppercase tracking-wide mb-1",children:"Confirmation Number"}),(0,a.jsx)("p",{className:"text-2xl font-bold text-teal-900 font-mono",children:(null==x?void 0:x.bookingReference)||t})]})]}),(null==x?void 0:x.trackingId)&&(0,a.jsx)("div",{className:"mt-4 pt-4 border-t border-teal-200",children:(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)("div",{className:"w-10 h-10 bg-teal-500 rounded-lg flex items-center justify-center mr-3 shadow",children:(0,a.jsx)("svg",{className:"w-5 h-5 text-white",f
1ill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h4",{className:"text-xs font-bold text-teal-800 uppercase tracking-wide",children:"Tracking Number"}),(0,a.jsx)("p",{className:"text-base font-bold text-teal-900 font-mono",children:x.trackingId})]})]})})]}),(null==x?void 0:x.hotelName)&&(0,a.jsxs)("div",{className:"bg-gradient-to-br from-teal-50 to-teal-100 border border-teal-200 rounded-2xl p-6 shadow-sm",children:[(0,a.jsxs)("div",{className:"flex items-center mb-6",children:[(0,a.jsx)("div",{className:"w-12 h-12 bg-teal-600 rounded-xl flex items-center justify-center mr-4 shadow-lg",children:(0,a.jsx)("svg",{className:"w-6 h-6 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})})}),(0,a.jsx)("h3",{className:"text-lg font-bold text-teal-900",children:"Stay Summary"})]}),(0,a.jsxs)("div",{className:"grid md:grid-cols-2 gap-4",children:[(0,a.jsxs)("div",{className:"bg-white rounded-xl p-4 shadow-sm border border-teal-100",children:[(0,a.jsx)("p",{className:"text-xs font-semibold text-teal-700 mb-1",children:"Check-in"}),(0,a.jsx)("p",{className:"text-base font-bold text-teal-900",children:x.checkIn})]}),(0,a.jsxs)("div",{className:"bg-white rounded-xl p-4 shadow-sm border border-teal-100",children:[(0,a.jsx)("p",{className:"text-xs font-semibold text-teal-700 mb-1",children:"Check-out"}),(0,a.jsx)("p",{className:"text-base font-bold text-teal-900",children:x.checkOut})]}),(0,a.jsxs)("div",{className:"bg-white rounded-xl p-4 shadow-sm border border-teal-100",children:[(0,a.jsx)("p",{className:"text-xs font-semibold text-teal-700 mb-1",children:"Room Type"}),(0,a.jsx)("p",{className:"text-base font-bold text-teal-900",children:x.roomName||"-"})]}),(0,a.jsxs)("div",{className:"bg-white rounded-xl p-4 shadow-sm border border-teal-100",children:[(0,a.jsx)("p",{className:"text-xs font-semibold text-teal-700 mb-1",children:"Board Type"}),(0,a.jsx)("p",{className:"text-base font-bold text-teal-900",children:x.boardType||"-"})]})]}),Array.isArray(x.guests)&&x.guests.length>0&&(0,a.jsxs)("div",{className:"mt-4 bg-white rounded-xl p-4 shadow-sm border border-teal-100",children:[(0,a.jsxs)("p",{className:"text-xs font-semibold text-teal-700 mb-1",children:["Guests (",x.guests.length,")"]}),(0,a.jsx)("p",{className:"text-sm font-medium text-teal-900",children:x.guests.join(", ")})]}),x.totalPrice&&(0,a.jsxs)("div",{className:"mt-4 bg-gradient-to-r from-teal-600 to-teal-700 rounded-xl p-4 text-center shadow-lg",children:[(0,a.jsx)("p",{className:"text-teal-100 text-xs font-semibold uppercase tracking-wide mb-1",children:"Total Amount"}),(0,a.jsx)("p",{className:"text-white text-xl font-bold",children:(0,a.jsx)(n.Z,{amount:Number(x.totalPrice||0),className:"text-white text-xl font-bold"})})]})]})]}),(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsx)("h3",{className:"text-lg font-bold text-gray-800 mb-4",children:"Quick Actions"}),(0,a.jsxs)("button",{onClick:j,className:"w-full bg-gradient-to-r from-teal-600 to-teal-700 hover:from-teal-700 hover:to-teal-800 text-white font-bold py-4 px-6 rounded-2xl shadow-lg hover:shadow-xl transition-all duration-300 transform hover:scale-105 flex items-center justify-center space-x-3",children:[(0,a.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 10v6m0 0l-3-3m3 3l3-3m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})}),(0,a.jsx)("span",{children:"Download Voucher"})]}),(0,a.jsxs)("button",{onClick:()=>
1e.push("/"),className:"w-full bg-white hover:bg-gray-50 text-gray-800 font-bold py-4 px-6 rounded-2xl border-2 border-gray-200 hover:border-gray-300 shadow-md hover:shadow-lg transition-all duration-300 flex items-center justify-center space-x-3",children:[(0,a.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})}),(0,a.jsx)("span",{children:"Back to Home"})]})]})]})})]}),(null==x?void 0:x.activities)&&x.activities.length>0&&(0,a.jsxs)("div",{className:"bg-blue-50 rounded-lg p-6 mb-8 text-left",children:[(0,a.jsxs)("h3",{className:"text-xl font-bold text-gray-900 mb-4 flex items-center",children:[(0,a.jsx)("span",{className:"text-2xl mr-2",children:"\uD83C\uDFAF"}),"Your Activities (",f||x.activities.length,")"]}),(0,a.jsx)("div",{className:"space-y-4",children:x.activities.map((e,t)=>(0,a.jsxs)("div",{className:"bg-white rounded-lg p-4 border border-blue-200",children:[(0,a.jsxs)("div",{className:"flex justify-between items-start mb-3",children:[(0,a.jsx)("h4",{className:"font-semibold text-gray-900 text-lg",children:e.name}),(0,a.jsx)("span",{className:"bg-green-100 text-green-800 text-xs font-medium px-2 py-1 rounded-full",children:"Confirmed"})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3 text-sm",children:[(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)("span",{className:"text-gray-500 mr-2",children:"\uD83D\uDCC5 Date:"}),(0,a.jsx)("span",{className:"font-medium",children:e.date||e.activityDate})]}),(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)("span",{className:"text-gray-500 mr-2",children:"⏰ Time:"}),(0,a.jsx)("span",{className:"font-medium",children:e.time||e.activityTime})]}),(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)("span",{className:"text-gray-500 mr-2",children:"\uD83D\uDC65 Participants:"}),(0,a.jsx)("span",{className:"font-medium",children:e.participants||e.guests||0})]}),(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)("span",{className:"text-gray-500 mr-2",children:"\uD83D\uDCB0 Price:"}),(0,a.jsx)("span",{className:"font-medium",children:(0,a.jsx)(n.Z,{amount:Number(e.totalPrice||e.price||0),className:"font-medium"})})]}),e.location&&(0,a.jsxs)("div",{className:"flex items-center md:col-span-2",children:[(0,a.jsx)("span",{className:"text-gray-500 mr-2",children:"\uD83D\uDCCD Location:"}),(0,a.jsx)("span",{className:"font-medium",children:e.location})]})]})]},t))}),(0,a.jsx)("div",{className:"mt-4 pt-4 border-t border-blue-200",children:(0,a.jsxs)("div",{className:"flex justify-between items-center",children:[(0,a.jsx)("span",{className:"text-lg font-semibold text-gray-900",children:"Total Amount:"}),(0,a.jsx)("span",{className:"text-2xl font-bold text-green-600",children:(0,a.jsx)(n.Z,{amount:Number(x.totalPrice||0),className:"text-2xl font-bold text-green-600"})})]})})]}),(!(null==x?void 0:x.activities)||0===x.activities.length)&&(null==x?void 0:x.activityName)&&(0,a.jsxs)("div",{className:"bg-blue-50 rounded-lg p-6 mb-8 text-left",children:[(0,a.jsxs)("h3",{className:"text-xl font-bold text-gray-900 mb-4 flex items-center",children:[(0,a.jsx)("span",{className:"text-2xl mr-2",children:"\uD83C\uDFAF"}),"Your Activity"]}),(0,a.jsxs)("div",{className:"bg-white rounded-lg p-4 border border-blue-200",children:[(0,a.jsxs)("div",{className:"flex justify-between items-start mb-3",children:[(0,a.jsx)("h4",{className:"font-semibold text-gray-900 text-lg",children:x.activityName}),(0,a.jsx)("span",{className:"bg-green-100 text-green-800 text-xs font-medium px-2 py-1 rounded-full",children:"Confirmed"})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3 text-sm",children:[(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)("span",{className:"text-gray-500 mr-2",children:"\uD83D\uDCC5 Date:"}),(0,a.jsx)("span",{className:"font-medium",children:x.activityDate})]}),(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)("span",{className:"text-gray-500 mr-2",children:"⏰ Time:"}),(0,a.jsx)("span",{className:"font-medium",children:x.activityTime})]}),(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)("span",{className:"text-gray-500 mr-2",children:"\uD83D\uDC65 Participants:"}),(0,a.jsx)("span",{className:"font-medium",children:x.participants})]}),(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)("span",{className:"text-gray-500 mr-2",children:"\uD83D\uDCB0 Price:"}),(0,a.jsx)("span",{className:"font-medium",children:(0,a.jsx)(n.Z,{amount:Number(x.totalPrice||0),className:"font-medium"})})]}),x.destination&&(0,a.jsxs)("div",{className:"flex items-center md:col-span-2",children:[(0,a.jsx)("span",{className:"text-gray-500 mr-2",children:"\uD83D\uDCCD Location:"}),(0,a.jsx)("span",{className:"font-medium",children:x.destination})]})]})]})]}),(0,a.jsxs)("div",{className:"bg-white/90 backdrop-blur-lg rounded-3xl shadow-xl border border-white/30 mb-8 overflow-hidden",children:[(0,a.jsx)("div",{className:"bg-gradient-to-r from-teal-500 to-teal-600 px-8 py-6",children:(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)("div",{className:"w-16 h-16 bg-white/20 rounded-2xl flex items-center justify-center mr-6 backdrop-blur-sm",children:(0,a.jsx)("svg",{className:"w-8 h-8 text-white",f
1ill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"text-2xl font-bold text-white mb-1",children:"What happens next?"}),(0,a.jsx)("p",{className:"text-teal-100 text-base",children:"Your hotel booking journey continues"})]})]})}),(0,a.jsx)("div",{className:"p-8",children:(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsxs)("div",{className:"flex items-start group hover:bg-gray-50 p-4 rounded-2xl transition-colors",children:[(0,a.jsx)("div",{className:"w-12 h-12 bg-gradient-to-r from-teal-500 to-teal-600 text-white rounded-xl flex items-center justify-center text-lg font-bold mr-6 shadow-lg group-hover:scale-110 transition-transform",children:"1"}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("h4",{className:"text-base font-bold text-gray-900 mb-2",children:"Check Your Email"}),(0,a.jsx)("p",{className:"text-gray-600 text-sm leading-relaxed",children:"You will receive a hotel confirmation email with your PDF voucher attached within the next few minutes."})]}),(0,a.jsx)("div",{className:"ml-4",children:(0,a.jsx)("div",{className:"w-10 h-10 bg-teal-100 rounded-xl flex items-center justify-center",children:(0,a.jsx)("svg",{className:"w-5 h-5 text-teal-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 8l7.89 4.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})})})})]}),(0,a.jsxs)("div",{className:"flex items-start group hover:bg-gray-50 p-4 rounded-2xl transition-colors",children:[(0,a.jsx)("div",{className:"w-12 h-12 bg-gradient-to-r from-teal-500 to-teal-600 text-white rounded-xl flex items-center justify-center text-lg font-bold mr-6 shadow-lg group-hover:scale-110 transition-transform",children:"2"}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("h4",{className:"text-base font-bold text-gray-900 mb-2",children:"Prepare Your Voucher"}),(0,a.jsx)("p",{className:"text-gray-600 text-sm leading-relaxed",children:"Print the voucher or keep it on your phone to present at hotel check-in. The voucher contains all necessary details."})]}),(0,a.jsx)("div",{className:"ml-4",children:(0,a.jsx)("div",{className:"w-10 h-10 bg-teal-100 rounded-xl flex items-center justify-center",children:(0,a.jsx)("svg",{className:"w-5 h-5 text-teal-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 10v6m0 0l-3-3m3 3l3-3m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})})})})]}),(0,a.jsxs)("div",{className:"flex items-start group hover:bg-gray-50 p-4 rounded-2xl transition-colors",children:[(0,a.jsx)("div",{className:"w-12 h-12 bg-gradient-to-r from-teal-500 to-teal-600 text-white rounded-xl flex items-center justify-center text-lg font-bold mr-6 shadow-lg group-hover:scale-110 transition-transform",children:"3"}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("h4",{className:"text-base font-bold text-gray-900 mb-2",children:"Contact Hotel if Needed"}),(0,a.jsx)("p",{className:"text-gray-600 text-sm leading-relaxed",children:"For special requests, late arrival, or any questions, contact the hotel directly using the information in your voucher."})]}),(0,a.jsx)("div",{className:"ml-4",children:(0,a.jsx)("div",{className:"w-10 h-10 bg-teal-100 rounded-xl flex items-center justify-center",children:(0,a.jsx)("svg",{className:"w-5 h-5 text-teal-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z"})})})})]})]})})]})]})})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=67042)}),_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.