PageSourceSearch

https://www.firsttable.ie/_next/static/chunks/pages/book/confirmation-00efa36a86c9ebc1.js

js firsttable.ie collected 2026-10-07 23:06:55 UTC 6,113 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7130],{63310:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/book/confirmation",function(){return t(2741)}])},79765:function(n,e,t){"use strict";t.d(e,{$:function(){return o.Z},R:function(){return i.Z}});var i=t(84529),o=t(60048)},31661:function(n,e,t){"use strict";var i=t(52322);t(2784);var o=t(31127),r=t(79765),a=t(37106);e.Z=n=>{let{title:e,subTitle:t,error:u}=n;return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(r.R,{children:[(e||t)&&(0,i.jsx)(r.$,{title:e,subTitle:t}),(0,i.jsx)(o.X,{children:(0,i.jsx)(o.J,{children:(0,i.jsx)(a.q,{error:u})})})]})})}},96696:function(n,e,t){"use strict";t.d(e,{Z:function(){return s}});var i=t(52322),o=t(94189),r=t(88537),a=t(21180),u=t(29160);function s(n){let{globalData:e,children:t}=n;return(0,i.jsxs)(o.Z,{appState:{global:e},menuOnlyShowLogo:!0,footerComponent:(0,i.jsx)(r.Z,{NavLinkComponent:u.Z}),children:[(0,i.jsx)(a.Z,{title:"First Table booking"}),t]})}},62044:function(n,e,t){"use strict";function i(n,e){return null!=n&&(void 0===e?Object.values(n).every(n=>null!==n):e.every(e=>null!==n[e]))}t.d(e,{Z:function(){return i}})},2741:function(n,e,t){"use strict";t.r(e),t.d(e,{__N_SSP:function(){return C},default:function(){return Z}});var i=t(52322),o=t(2784),r=t(5632),a=t(32749),u=t(85697),s=t(68032),l=t(84529),c=t(86546);let d=(0,c.BX)("\n  fragment BookingForConfirmationFragment on Booking {\n    id\n    bookingType\n    reference\n    date\n    time\n    leaveTime\n    email\n    people\n    additionalPeople\n    price\n    priceInNZD\n    amountToPay\n    discount\n    isPublicHoliday\n    isWeekendSurcharge\n    currency\n    credit\n    potentialPoints\n    specialConditions\n    status\n    redirectURL\n    hasReview\n    hasPayment\n    reservationConfirmation\n    shareData\n    dinedPreviously\n    conversionData\n    completeMessage\n    stripeCustomerSessionClientSecret\n    nthBooking\n    redemptionCode\n    redemptionCodeType\n    bookingFields {\n      name\n      value\n    }\n    availability {\n      id\n      session\n      leaveTime\n      leaveTimes\n      allowedDiners\n    }\n    restaurant {\n      id\n      title\n      city\n      cityId\n      menuTitle\n      bookingWindowDays\n      askForDietaryRequirements\n      integrationList\n      reviewsCount\n      approvedReviewsCount\n      rating\n      siteId\n      region {\n        id\n        menuTitle\n        slug\n      }\n      suburb {\n        id\n        menuTitle\n      }\n      cuisines {\n        edges {\n          node {\n            id\n            title\n          }\n        }\n      }\n    }\n    promotion {\n      title\n      checkoutContent\n    }\n    canReview\n  }\n"),v=(0,c.BX)("\n    query BookingConfirmation($reference: String) {\n      booking: Booking(reference: $reference) {\n        ...BookingForConfirmationFragment\n      }\n    }\n  ",[d]);var g=t(62044),f=t(19448),p=t(95742),m=t(77357),b=t(31661),h=t(96696),k=t(56189),y=t(56907),_=t(76167),w=t(83058),x=t(44945);let j=n=>{let{booking:e}=n,{track:t,trackRevenue:r}=(0,p.z)(),{conversionData:a,price:u,priceInNZD:c,amountToPay:d}=e,v=JSON.parse(a||""),g=+v.Paid,b=(0,_.Ws)(g,u||0,c||0);return(0,o.useEffect)(()=>{var n,i,o,a,u;r({product_id:null===(n=e.restaurant)||void 0===n?void 0:n.id,price:d,revenue:+b,currency:e.currency}),t("purchase",{source_page:"booking confirmation",transaction_id:e.reference,transaction_value:v.Paid,value:v.Paid,transaction_tax:v.tax,currency:e.currency,content_type:"product",content_name:null===(i=e.restaurant)||void 0===i?void 0:i.menuTitle,content_ids:null===(o=e.restaurant)||void 0===o?void 0:o.id,category:"booking",quantity:1}),(0,s.getUserCity)()||(0,s.setUserCity)((null===(u=e.restaurant)||void 0===u?void 0:null===(a=u.region)||void 0===a?void 0:a.slug)||null)},[]),(0,i.jsx)(f.Yl,{pageEventName:"booking_flow_viewed",source_page:"booking complete",eventParam
1s:{restaurants:(0,k.Z)(e.restaurant)},children:(0,i.jsx)(l.Z,{pt:["0px","60px"],pl:["0px","m"],pr:["0px","m"],children:(0,i.jsx)(m.Z,{booking:e})})})};var C=!0;function Z(n){var e;let{globalData:t,reference:s}=n,l=(0,r.useRouter)(),c=(0,a.VY)(),{loading:d,error:f,data:p}=(0,u.aM)(v,{variables:{reference:s},fetchPolicy:"network-only",ssr:!1});return((0,o.useLayoutEffect)(()=>{var n;if(!d){if((null==p?void 0:null===(n=p.booking)||void 0===n?void 0:n.status)==="Confirmed"){(0,w.XK)(w.Hw);return}(0,w.QU)(w.Hw)}},[null==p?void 0:null===(e=p.booking)||void 0===e?void 0:e.status,d]),(0,o.useEffect)(()=>{if(!(null==p?void 0:p.booking))return;let{booking:n}=p;if("WALK_IN"!==n.bookingType&&(0,g.Z)(n,["date","id","restaurant","status","time"])){let{restaurant:e}=n;if((0,g.Z)(e,["id"])&&"Confirmed"!==n.status){let e="Unavailable"===n.status?"The table became unavailable in the restaurant's booking platform during the final checkout period. If you had already been charged then this value will be applied to your account as credit.":"You have not been charged.";c.error("We could not complete your booking at this time. ".concat(e),{timeout:1e4,width:[300,500]}),l.replace("/book?reference=".concat(s))}}},[p,c,s,l]),d)?(0,i.jsx)(h.Z,{globalData:t,children:(0,i.jsx)(y.Z,{})}):!f&&p&&p.booking?"WALK_IN"===p.booking.bookingType?(0,i.jsx)(x.default,{globalData:t}):(0,i.jsx)(h.Z,{globalData:t,children:(0,i.jsx)(j,{booking:p.booking})}):(0,i.jsx)(h.Z,{globalData:t,children:(0,i.jsx)(b.Z,{error:f})})}},55750:function(n,e,t){"use strict";var i,o=t(2784);function r(){return(r=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)({}).hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n}).apply(null,arguments)}e.Z=function(n){return o.createElement("svg",r({width:14,height:11,viewBox:"0 0 14 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),i||(i=o.createElement("path",{d:"m1.5 5.5 4 3.5L13 1.5",stroke:"currentColor",strokeWidth:2})))}}},function(n){n.O(0,[4245,1273,6546,864,5029,6191,887,5377,6689,7695,2888,9774,179],function(){return n(n.s=63310)}),_N_E=n.O()}]);
2//# sourceMappingURL=confirmation-00efa36a86c9ebc1.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.