PageSourceSearch

https://www.sleeper.scot/booking/_next/static/chunks/pages/order/[id]-368c04353c726113.js

js sleeper.scot collected 2026-09-24 18:11:10 UTC 3,647 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[441],{5522:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/order/[id]",function(){return n(66494)}])},66494:function(e,s,n){"use strict";n.r(s),n.d(s,{OrderWithoutLoginInfo:function(){return o}});var r=n(52322),i=n(5632),d=n(2784),l=n(69246),a=n(85998),t=n(67817);let o=()=>{(0,t.c7)({isLoginPageRedirectNeeded:!0});let{query:e}=(0,i.useRouter)(),s=e.id,{singleOrderData:n,error:o,isLoading:c}=(0,t.UZ)(s,{keepPreviousData:!0}),{refundHistory:u,isLoading:h}=(0,t.zN)(s,{keepPreviousData:!0}),m=(!n||!u)&&(c||h),{resendConfirmation:j,data:_}=(0,t.BX)(),{fetchStatus:x,productsMap:f,isLoading:g}=(0,l.$y)();(0,d.useEffect)(()=>{s&&x("/order/".concat(s))},[s,x]);let v=(0,a.wc)(),N=(null==n?void 0:n.orderRef)||null,p=(0,d.useMemo)(()=>n?(0,l.ET)(n):null,[n]),b=(0,d.useMemo)(()=>{var e;return(null==n?void 0:null===(e=n.payments)||void 0===e?void 0:e.length)?n.payments.find(e=>"billingAddress"in e&&e.billingAddress):null},[n]);return(0,r.jsx)(l.Yg,{orderLink:"/order/".concat(s),children:(0,r.jsxs)(a.nL,{modalsContext:v,children:[(0,r.jsxs)("div",{className:"info__block info__block--without-login",children:[m&&(0,r.jsx)("div",{className:"row",children:(0,r.jsx)("div",{className:"col-12 centered",children:(0,r.jsx)("div",{className:"loader",children:(0,r.jsx)("h1",{className:"loader__title",children:"Loading payments, refunds and compensation for order ".concat(e.id)})})})}),!m&&!o&&n&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"info__title",children:(0,r.jsxs)("h1",{children:["Order ",n&&n.orderRef]})}),(0,r.jsxs)("div",{className:"table__container",children:[(0,r.jsx)("div",{className:"table__title",children:(0,r.jsxs)("p",{children:["Payments, refunds and compensation for order"," ",n&&n.orderRef]})}),(0,r.jsxs)("div",{className:"table__block",children:[_?_.status:null,(0,r.jsx)(l.uS,{orderId:e.id,paymentsInfo:p,resendConfirmation:j}),(null==u?void 0:u.length)?null==u?void 0:u.map((e,s)=>(0,r.jsx)(l.Rr,{refundData:e},s)):null,(null==b?void 0:b.billingAddress)&&(0,r.jsx)(l.ge,{billingData:b.billingAddress})]})]})]}),(0,r.jsxs)("div",{className:"table__container",children:[m&&(0,r.jsx)("div",{className:"row",children:(0,r.jsx)("div",{className:"col-12 centered",children:(0,r.jsx)("div",{className:"loader",children:(0,r.jsx)("h1",{className:"loader__title",children:"Loading Tickets"})})})}),!m&&o&&(0,r.jsx)("div",{className:"row",children:(0,r.jsxs)("div",{className:"col-12 centered",children:[(0,r.jsx)("div",{className:"table__title",children:(0,r.jsx)("p",{children:"Error loading order"})}),(0,r.jsx)("p",{className:"error__message",children:o}),(0,r.jsx)("p",{className:"error__message",children:"Please try again later or contact our support team."})]})}),!m&&!o&&n&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"table__title",children:(0,r.jsxs)("p",{children:["Tickets in order ",null==n?void 0:n.orderRef]})}),(0,r.jsx)("div",{className:"journey-cards-container",children:n.items.map((e,i)=>(0,r.jsxs)(d.Fragment,{children:[(0,r.jsx)(l.RB,{data:(0,l.jR)(e.outwardJourney,[].concat(...e.items.outwardSingle,...e.items.petTickets||[]),s,N,n.hash,e.link),refundProducts:f,isRefundStatusLoading:g,hideOrderId:!0}),e.items.returnSingle&&(0,r.jsx)(l.RB,{data:(0,l.jR)(e.returnJourney,[].concat(...e.items.returnSingle,...e.items.petTickets||[]),s,N,n.hash,e.link),refundProducts:f,isRefundStatusLoading:g,hideOrderId:!0})]},i))})]})]})]}),(0,r.jsx)(l.X,{orderId:s})]})})};s.default=o}},function(e){e.O(0,[888,774,179],function(){return e(e.s=5522)}),_N_E=e.O()}]);
2//# sourceMappingURL=[id]-368c04353c726113.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.