PageSourceSearch

https://dune-to-down-town.vercel.app/_next/static/chunks/pages/booking-confirmation-d22fa2ec7220726f.js

js dune-to-down-town.vercel.app collected 2026-10-03 06:49:16 UTC 12,204 bytes, 16 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8434],{91373:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var s=r(67294);/**
2 * @license lucide-react v0.483.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 */let n=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),a=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim();/**
7 * @license lucide-react v0.483.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */var i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
12 * @license lucide-react v0.483.0 - ISC
13 *
14 * This source code is licensed under the ISC license.
15 * See the LICENSE file in the root directory of this source tree.
16 */let l=(0,s.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:l="",children:o,iconNode:c,...d},m)=>(0,s.createElement)("svg",{ref:m,...i,width:t,height:t,stroke:e,strokeWidth:n?24*Number(r)/Number(t):r,className:a("lucide",l),...d},[...c.map(([e,t])=>(0,s.createElement)(e,t)),...Array.isArray(o)?o:[o]])),o=(e,t)=>{let r=(0,s.forwardRef)(({className:r,...i},o)=>(0,s.createElement)(l,{ref:o,iconNode:t,className:a(`lucide-${n(e)}`,r),...i}));return r.displayName=`${e}`,r}},61749:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});var s=r(91373);let n=(0,s.Z)("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]])},34622:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});var s=r(91373);let n=(0,s.Z)("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]])},9589:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});var s=r(91373);let n=(0,s.Z)("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},58621:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});var s=r(91373);let n=(0,s.Z)("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]])},26330:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});var s=r(91373);let n=(0,s.Z)("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"}]])},77232:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});var s=r(91373);let n=(0,s.Z)("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]])},41352:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});var s=r(91373);let n=(0,s.Z)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},92211:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/booking-confirmation",function(){return r(37350)}])},15:function(e,t,r){"use strict";r.d(t,{d:function(){return o},z:function(){return c}});var s=r(85893),n=r(67294),a=r(88426),i=r(12003),l=r(81193);let o=(0,i.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),c=n.forwardRef((e,t)=>
16{let{className:r,variant:n,size:i,asChild:c=!1,...d}=e,m=c?a.g7:"button";return(0,s.jsx)(m,{className:(0,l.cn)(o({variant:n,size:i,className:r})),ref:t,...d})});c.displayName="Button"},49132:function(e,t,r){"use strict";r.d(t,{Ol:function(){return l},SZ:function(){return c},Zb:function(){return i},aY:function(){return d},eW:function(){return m},ll:function(){return o}});var s=r(85893),n=r(67294),a=r(81193);let i=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...n})});i.displayName="Card";let l=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("flex flex-col space-y-1.5 p-6",r),...n})});l.displayName="CardHeader";let o=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("font-semibold leading-none tracking-tight",r),...n})});o.displayName="CardTitle";let c=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("text-sm text-muted-foreground",r),...n})});c.displayName="CardDescription";let d=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("p-6 pt-0",r),...n})});d.displayName="CardContent";let m=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)("div",{ref:t,className:(0,a.cn)("flex items-center p-6 pt-0",r),...n})});m.displayName="CardFooter"},87742:function(e,t,r){"use strict";var s=r(87066),n=r(33299);let a=s.Z.create({baseURL:"".concat("https://dunetodowntown-backend.onrender.com","/api")});a.interceptors.request.use(e=>{{let t=localStorage.getItem("token");t&&(e.headers.Authorization="Bearer ".concat(t))}return e},e=>Promise.reject(e)),a.interceptors.response.use(e=>e,async e=>{var t,r,s;let a=e.config;if((null===(t=e.response)||void 0===t?void 0:t.status)===401&&!a._retry){a._retry=!0,localStorage.removeItem("authToken");let t=window.location.pathname;return"/auth/signin"!==t&&localStorage.setItem("redirectAfterLogin",t),await (0,n.signOut)({redirect:!1}),window.location.href="/auth/signin?callbackUrl=".concat(encodeURIComponent(t)),Promise.reject(e)}return null===(r=e.response)||void 0===r||r.status,null===(s=e.response)||void 0===s||s.status,Promise.reject(e)}),t.Z=a},37350:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return j}});var s=r(85893);r(67294);var n=r(11163),a=r(9008),i=r.n(a),l=r(41664),o=r.n(l),c=r(9589),d=r(91373);let m=(0,d.Z)("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);var u=r(34622),x=r(58621),h=r(26330),f=r(68641),g=r(62384),p=r(15),y=r(49132),v=r(4093);function j(){let e=(0,n.useRouter)(),{bookingId:t,bookingType:r="staycation",title:a,checkIn:l,checkOut:d,date:j,timeSlot:N,totalPrice:b,packageTitle:k}=e.query,w=e=>e?new Date(e).toLocaleDateString():"N/A";return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(i(),{children:[(0,s.jsx)("title",{children:"Booking Confirmation | Desert Safari"}),(0,s.jsx)("meta",{name:"description",content:"Your booking has been confirmed"})]}),(0,s.jsx)(f.Z,{}),(0,s.jsxs)("main",{className:"max-w-4xl mx-auto px-4 py-16 md:py-24",children:[(0,s.jsxs)("div",{className:"text-center mb-10",children:[(0,s.jsx)("div",{className:"inline-flex items-center justify-center w-20 h-20 bg-green-100 rounded-full mb-6",children:(0,s.jsx)(c.Z,{className:"h-12 w-12 text-green-600"})}),(0,s.jsx)("h1",{className:"text-3xl md:text-4xl font-bold text-gray-900 mb-2",children:"Booking Confirmed!"}),(0,s.jsx)("p",{className:"text-lg text-gray-600",children:"Thank you for your booking. A confirmation has been sent to your email."})]}),(0,s.jsxs)(y.Zb,{className:"p-6 md:p-8 mb-8 border border-gray-200 rounded-xl shadow-sm",children:[(0,s.jsxs)("div",{className:"flex flex-col md:flex-row justify-between mb-6 pb-6 border-b border-gray-100",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{className:"text-xl font-bold text-gray-900 mb-1",children:"Booking Reference"}),(0,s.jsx)("p",{className:"text-lg font-mono bg-gray-50 px-3 py-1 rounded inline-block",children:t}),(0,s.jsx)(v.C,{className:"ml-2 bg-green-100 text-green-800 hover:bg-green-100",children:"Confirmed"})]}),(0,s.jsxs)("div",{className:"mt-4 md:mt-0 text-right",children:[(0,s.jsx)("p",{className:"text-sm text-gray-500",children:"Total Amount"}),(0,s.jsxs)("p",{className:"text-2xl font-bold text-gray-900",children:["AED ",b||0]})]})]}),(0,s.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:(0,s.jsxs)("div",{children:[(0,s.jsxs)("h3",{className:"text-lg font-semibold mb-3",children:[(()=>{switch(r){case"activity":return"Activity Booking";case"holiday":return"Holiday Package";default:return"Staycation Booking"}})()," Details"]}
16),(0,s.jsxs)("ul",{className:"space-y-3",children:[(0,s.jsxs)("li",{className:"flex items-start",children:[(0,s.jsx)("div",{className:"flex-shrink-0 w-10 text-gray-400",children:(0,s.jsx)(m,{className:"h-5 w-5"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"font-medium",children:a||"Booking"}),k&&(0,s.jsx)("p",{className:"text-sm text-gray-500",children:k})]})]}),(0,s.jsxs)("li",{className:"flex items-start",children:[(0,s.jsx)("div",{className:"flex-shrink-0 w-10 text-gray-400",children:(0,s.jsx)(u.Z,{className:"h-5 w-5"})}),(0,s.jsxs)("div",{children:[l&&d?(0,s.jsxs)("p",{className:"font-medium",children:[w(l)," to ",w(d)]}):j?(0,s.jsx)("p",{className:"font-medium",children:w(j)}):(0,s.jsx)("p",{className:"font-medium",children:"Date not specified"}),N&&(0,s.jsxs)("p",{className:"text-sm text-gray-500",children:["Time: ",N]}),l&&d&&(0,s.jsx)("p",{className:"text-sm text-gray-500",children:"Check-in: 3:00 PM • Check-out: 12:00 PM"})]})]}),(0,s.jsxs)("li",{className:"flex items-start",children:[(0,s.jsx)("div",{className:"flex-shrink-0 w-10 text-gray-400",children:(0,s.jsx)(x.Z,{className:"h-5 w-5"})}),(0,s.jsx)("div",{children:(0,s.jsx)("p",{className:"font-medium",children:"Payment on arrival"})})]})]})]})})]}),(0,s.jsxs)("div",{className:"bg-gray-50 rounded-xl p-6 border border-gray-200",children:[(0,s.jsx)("h3",{className:"text-lg font-semibold mb-3",children:"Important Information"}),(0,s.jsxs)("ul",{className:"space-y-2 text-gray-600",children:[(0,s.jsxs)("li",{className:"flex items-start",children:[(0,s.jsx)("span",{className:"text-green-500 mr-2",children:"•"}),"Please have your booking reference and ID/passport ready at check-in."]}),"staycation"===r&&(0,s.jsxs)("li",{className:"flex items-start",children:[(0,s.jsx)("span",{className:"text-green-500 mr-2",children:"•"}),"Tourism Dirham Fee of AED 20 per room per night is payable directly to the hotel."]}),"activity"===r&&(0,s.jsxs)("li",{className:"flex items-start",children:[(0,s.jsx)("span",{className:"text-green-500 mr-2",children:"•"}),"Please arrive at least 15 minutes before your scheduled activity time."]}),"holiday"===r&&(0,s.jsxs)("li",{className:"flex items-start",children:[(0,s.jsx)("span",{className:"text-green-500 mr-2",children:"•"}),"Please ensure your passport is valid for at least 6 months from the travel date."]})]})]}),(0,s.jsx)("div",{className:"flex flex-col sm:flex-row justify-center gap-4 mt-10",children:(0,s.jsx)(p.z,{asChild:!0,variant:"outline",size:"lg",className:"gap-2",children:(0,s.jsxs)(o(),{href:"/",children:[(0,s.jsx)(h.Z,{className:"h-4 w-4"})," Return to Home"]})})})]}),(0,s.jsx)(g.Z,{})]})}r(87742)},9008:function(e,t,r){e.exports=r(34605)},11163:function(e,t,r){e.exports=r(38355)}},function(e){e.O(0,[1664,7066,3299,5675,1932,9774,2888,179],function(){return e(e.s=92211)}),_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.