PageSourceSearch

https://www.chronogolf.com/_next/static/chunks/pages/reservations/[id]/confirm/[token]-74b6b8c6555a1dc7.js

js chronogolf.com collected 2026-10-01 13:08:04 UTC 6,495 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[754],{4801:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/reservations/[id]/confirm/[token]",function(){return r(8619)}])},5991:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(5893),s=r(9607),i=r(3040),o=r(4082),l=r(6830);function a(){let e=(0,s.NT)(),t=(0,o.b)(),r=(0,l.L)(t,"home"),a=(0,l.L)(t,"privacy"),c=(0,i.Go)("/page/cookie_policy/"),u=(0,i.Go)("/page/terms_and_conditions/");return(0,n.jsx)("footer",{className:"z-10 mx-5 border-t border-solid border-grey-200 lg:mx-0 lg:px-6",children:(0,n.jsx)("div",{className:"px-4 py-6 text-grey-600 xl:container lg:mx-auto lg:px-0",children:(0,n.jsxs)("ul",{className:"flex flex-col items-center justify-center gap-4 text-sm text-grey-600 lg:flex-row lg:gap-5",children:[(0,n.jsx)("li",{children:"\xa9 Lightspeed Commerce, Inc."}),(0,n.jsx)("li",{children:(0,n.jsx)("a",{href:a,className:"cursor-pointer hover:underline",children:e("Privacy Policy")})}),(0,n.jsx)("li",{children:(0,n.jsx)("a",{href:c,className:"cursor-pointer hover:underline",children:e("Cookie Policy")})}),(0,n.jsx)("li",{id:"ot-california-link",className:"hidden",children:(0,n.jsx)("a",{onClick:()=>window.OneTrust.ToggleInfoDisplay(),className:"cursor-pointer hover:underline",children:e("Do Not Sell My Data")})}),(0,n.jsx)("li",{children:(0,n.jsx)("a",{href:u,className:"cursor-pointer hover:underline",children:e("Terms & Conditions")})}),(0,n.jsxs)("li",{children:[" ",(0,n.jsxs)("a",{href:r,className:"cursor-pointer hover:underline",children:[e("Powered by Lightspeed")," "]})]})]})})})}var c=e=>{let{children:t}=e;return(0,n.jsxs)("div",{className:"flex h-screen min-w-full flex-col",children:[(0,n.jsx)("main",{className:"flex grow flex-col",children:t}),(0,n.jsx)("div",{className:"flex-shrink-0",children:(0,n.jsx)(a,{})})]})}},8619:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return p},default:function(){return g}});var n=r(5893),s=r(7294),i=r(3190),o=r(9607),l=r(7702),a=r(9008),c=r.n(a),u=r(1163),d=r(6919);function f(e){if(!/^\d+$/.test(e))throw Error("Invalid reservation ID");return e}var x=r(5547),m=r(4082),h=r(5991),v=r(3967),j=r(1289);g.getLayout=function(e){return(0,n.jsx)(h.Z,{children:e})};var p=!0;function g(){let e=(0,o.NT)(),t=(0,u.useRouter)(),[r,i]=(0,s.useState)({status:"loading"}),a=(0,s.useRef)(!1),x=(0,j.t)(t.query.id),m=(0,j.t)(t.query.token),h=(0,d.AF)({context:(0,d.Jg)(),destinationPath:"/not-found",fallbackBase:"NEXT"});(0,s.useEffect)(()=>{x&&m&&!a.current&&(a.current=!0,e());async function e(){try{await function(e,t){let r=(0,d.AF)({context:(0,d.Jg)(),destinationPath:"/marketplace/v2/reservations/".concat(f(e),"/confirm"),fallbackBase:"MONOLITH"});return l.default.post(r,null,{params:{token:t}})}(x,m)}catch(r){var e;if(!l.default.isAxiosError(r))throw r;(null===(e=r.response)||void 0===e?void 0:e.status)===422?t.push("/reservations/".concat(x,"/confirm/expired")):globalThis.location.href=h;return}try{let e=await function(e,t){let r=(0,d.AF)({context:(0,d.Jg)(),destinationPath:"/marketplace/v2/reservations/".concat(f(e),"/summary"),fallbackBase:"MONOLITH"});return l.default.get(r,{params:{token:t}}).then(e=>e.data)}(x,m);i({status:"success",data:e})}catch(e){globalThis.location.href=h}}},[x,m]);let v="success"===r.status?r.data.clubName:"";return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(c(),{children:[(0,n.jsx)("title",{children:e("Reservation Confirmed")}),(0,n.jsx)("meta",{name:"robots",content:"noindex, nofollow"})]}),"loading"===r.status&&(0,n.jsx)("div",{className:"flex grow items-center justify-center",children:(0,n.jsx)(N,{})}),"success"===r.status&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("header",{className:"flex h-[60px] shrink-0 items-center border-b border-solid border-grey-200 px-6",children:(0,n.jsx)("h2",{className:"heading-sm",children:v})}),(0,n.jsx)("div",{className:"flex grow justify-center px-4 pb-6 pt-10",children:(0,n.jsx)(y,{data:r.data})})]})]})}function N(){return(0,n.jsx)("div",{className:"flex flex-col items-center gap-4",children:(0,n.jsx)(i.$j,{size:"large"})})}function y(e){var t,r,s;let{data:l}=e,a=(0,o.NT)(),c=(0,m.b)(),u=(0,x.d)(),d=(null===(t=l.teetime)||void 0===t?void 0:t.date)?(0,v.cQ)(l.teetime.date,c):"-",f=(null===(r=l.teetime)||void 0===r?void 0:r.startTime)?(0,v.ru)(l.teetime.startTime,c):"-";return(0,n.jsxs)("div",{className:"flex w-full max-w-[600px] flex-col px-4",children:[(0,n.jsxs)("div",{className:"flex flex-col items-center",children:[(0,n.jsx)(i.rE,{className:"shrink-0 text-primary",style:{width:80,height:80}}),(0,n.jsx)("h1",{className:"text-grey-900 mt-6 heading-sm",children:a("Your reservation is confirmed")})]}),(0,n.jsxs)("dl",{className:"mt-6 flex w-full flex-col gap-6",children:[(0,n.jsx)(w,{icon:i.lD,value:d}),(0,n.jsx)(w,{icon:i.tu,value:f}),(0,n.jsx)(w,{icon:i.RY,value:(null===(s=l.teetime)||void 0===s?void 0:s.courseName)||"-"}),(0,n.jsx)(w,{icon:i.x4,value:a("{count} holes",{count:l.holes})}),(0,n.jsx)(w,{icon:i.Tk,value:a("{count, plural, one {{count} player} other {{count} players}}",{count:l.playerCount})})]}),(0,n.jsx)("div",{className:"mt-6 w-full",children:(0,n.jsx)(i.ZP,{intent:"primary",block:!0,to:u.bookings.href,children:a("View reservation")})})]})}function w(e){let{icon:t,value:r}=e;return(0,n.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,n.jsx)(t,{width:24,height:24,className:"text-grey-900 shrink-0"}),(0,n.jsx)("dd",{className:"text-grey-900 text-sm",children:r})]})}},3967:function(e,t,r){"use strict";r.d(t,{BT:function(){return l},cQ:function(){return c},ii:function(){return o},ru:function(){return a},t6:function(){return s}});var n=r(120);let s="yyyy-MM-dd",i="H:mm",o=e=>e.toFormat(s),l=(e,t)=>
1{let r=n.ou.fromFormat(e,i);return n.ou.fromFormat(t,i)>r},a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US",r=n.ou.fromFormat(e,i);return r.isValid?new Intl.DateTimeFormat(t,{hour:"numeric",minute:"numeric"}).format(r.toJSDate()):e},c=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US",r=n.ou.fromFormat(e,s);return r.isValid?r.setLocale(t).toFormat("ccc, MMM d"):e}},1289:function(e,t,r){"use strict";function n(e){return void 0===e?"":"object"==typeof e?e[0]:e}function s(e){return void 0!==e&&"true"===e}r.d(t,{E:function(){return s},t:function(){return n}})}},function(e){e.O(0,[120,888,774,179],function(){return e(e.s=4801)}),_N_E=e.O()}]);
2//# sourceMappingURL=[token]-74b6b8c6555a1dc7.js.map

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.