PageSourceSearch

https://cdn-new.polishtrains.eu/_next/static/chunks/5822-6b635bbd4d041a1e.js

js polishtrains.eu collected 2026-09-25 06:48:56 UTC 16,166 bytes, 1 lines download raw bytes

1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6fe5dace-0b3c-4f68-bdc7-ef7e8468beee",e._sentryDebugIdIdentifier="sentry-dbid-6fe5dace-0b3c-4f68-bdc7-ef7e8468beee")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5822],{30197:(e,t,n)=>{n.d(t,{default:()=>d});var s=n(95155),a=n(12115),r=n(20063),o=n(60753),l=n(44296),i=n(52167),c=n(84099);let d=function(e){let{bookingCode:t,pnr:n,className:d}=e,u=(0,o.s9)(),p=(0,r.useRouter)(),[m,h]=(0,a.useState)(!1),x=(0,i.q)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("button",{type:"button","aria-label":u.t("exchange.bar.cancelAriaLabel"),"aria-haspopup":"dialog","aria-expanded":m,onClick:()=>h(!0),className:"group inline-flex items-center gap-2.5 desktop-body-1 font-medium whitespace-nowrap max-md:self-end ".concat(null!=d?d:""),"data-testid":"cancel-exchange-button",children:[(0,s.jsx)(l.default,{icon:"arrow_left",size:"md",className:"group-hover:-translate-x-1 transition-transform duration-300"}),u.t("exchange.bar.cancel")]}),m&&(0,s.jsx)(c.T,{bookingCode:t,pnr:n,onClose:()=>h(!1),onConfirm:()=>{h(!1),p.push(x)}})]})}},49174:(e,t,n)=>{n.d(t,{CheckoutFlow:()=>d,default:()=>x});var s=n(95155),a=n(12115),r=n(44296),o=n(21965),l=n(53850),i=n(60753),c=n(77979);let d={main:"main",payAgain:"pay-again"},u={[d.main]:["component.checkout-stepper.options","component.checkout-stepper.details_and_payment","component.checkout-stepper.done"],[d.payAgain]:["component.checkout-stepper.payment","component.checkout-stepper.done"]};function p(e,t){return e<t?"passed":e===t?"current":"future"}function m(e){let{labels:t,currentStep:n}=e,i=(0,a.useRef)(null),d=(0,a.useRef)(null),{isPinned:u,height:m}=function(e,t,n){let[s,r]=(0,a.useState)({isPinned:!1,height:0});return(0,a.useEffect)(()=>{if(!n)return void r({isPinned:!1,height:0});let s=e.current,a=t.current;if(!s||!a)return;let o=!1,l=a.offsetHeight,i=()=>{o=!1;let e=window.scrollY+s.getBoundingClientRect().top,t=window.scrollY>e&&window.scrollY<=e+l;t||(l=a.offsetHeight),r(e=>e.isPinned===t&&e.height===l?e:{isPinned:t,height:l})},c=()=>{o||(o=!0,window.requestAnimationFrame(i))};return i(),window.addEventListener("scroll",c,{passive:!0}),window.addEventListener("resize",c,{passive:!0}),()=>{window.removeEventListener("scroll",c),window.removeEventListener("resize",c)}},[e,t,n]),s}(i,d,(0,l.A)("lg"));return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{ref:i,"aria-hidden":"true","data-testid":"checkout-stepper-desktop-sentinel"}),(0,s.jsx)("div",{className:"max-lg:hidden",style:{height:u?m:0},"aria-hidden":"true"}),(0,s.jsx)("div",{ref:d,className:(0,c.A)("max-lg:hidden bg-ep-blue-50",u&&"fixed inset-x-0 top-0 z-[5002]"),"data-testid":"checkout-stepper-desktop","data-pinned":u,children:(0,s.jsx)(o.A,{className:"desktop-body-1 flex items-center justify-center gap-2 py-4",children:t.map((e,o)=>{let l=p(o,n),i=o===t.length-1,d=o<=n;return(0,s.jsxs)(a.Fragment,{children:[o>0&&(0,s.jsx)("span",{"data-testid":"checkout-stepper-desktop-separator-".concat(o),"data-state":d?"passed":"future",children:(0,s.jsx)(r.default,{icon:"chevron_right_button",size:"lg",className:d?"text-ep-blue-900":"text-ep-gray-600"})}),(0,s.jsxs)("span",{className:(0,c.A)("inline-flex items-center gap-1.5","future"===l?"font-normal text-ep-gray-600":"font-semibold text-ep-blue-900"),"aria-current":"current"===l?"step":void 0,"data-testid":"checkout-stepper-desktop-step-".concat(o),"data-state":l,children:[i&&(0,s.jsx)(r.default,{icon:"confetti_outline",size:"lg"}),e]})]},e)})})})]})}function h(e){let{labels:t,currentStep:n}=e,a=(0,i.s9)();return(0,s.jsxs)("div",{className:"lg:hidden bg-ep-blue-850 px-4 py-3","data-testid":"checkout-stepper-mobile",children:[(0,s.jsxs)("div",{className:"flex items-baseline justify-between gap-3",children:[(0,s.jsx)("span",{className:"text-sm text-ep-blue-400",children:a.t("component.checkout-stepper.step_counter",{current:n+1,total:t.length})}),(0,s.jsx)("span",{className:"text-sm font-bold text-white","data-testid":"checkout-stepper-mobile-label",children:t[n]})]}),(0,s.jsx)("div",{className:"mt-2 flex gap-1.5",children:t.map((e,t)=>
1(0,s.jsx)("span",{className:(0,c.A)("h-1 flex-1 rounded-full","future"===p(t,n)?"bg-white/30":"bg-white"),"data-testid":"checkout-stepper-mobile-segment-".concat(t),"data-state":p(t,n)},e))})]})}function x(e){let{flow:t=d.main,currentStep:n,className:a}=e,r=(0,i.s9)(),o=u[t];if(n<0||n>=o.length)return null;let l=o.map(e=>r.t(e));return(0,s.jsxs)("nav",{className:(0,c.A)(a),"aria-label":r.t("component.checkout-stepper.aria_label"),"data-testid":"checkout-stepper","data-flow":t,"data-current-step":n,children:[(0,s.jsx)(m,{labels:l,currentStep:n}),(0,s.jsx)(h,{labels:l,currentStep:n})]})}},51704:(e,t,n)=>{n.d(t,{H7:()=>i,AbTestsProvider:()=>h,c1:()=>c,ClientAbTestsProvider:()=>x,ae:()=>f});var s=n(95155),a=n(12115),r=n(66891),o=n(27607),l=n(43057);let i={checkoutStepper:"checkoutStepper"},c={A:"A",B:"B",C:"C"},d=c.A,u={[i.checkoutStepper]:{enabledBy:"checkoutStepper",variants:{[c.A]:new Set([l.EP.spr163,l.EP.spr77,l.EP.sprOther,l.EP.amz,l.EP.ovh]),[c.B]:new Set([l.EP.ovhAb])}}},p=Object.fromEntries(Object.keys(u).map(e=>[e,d])),m=(0,a.createContext)(p);function h(e){let{value:t,children:n}=e;return(0,s.jsx)(m.Provider,{value:t,children:n})}function x(e){let{children:t}=e,[n,i]=(0,a.useState)(p);return(0,a.useEffect)(()=>{var e,t,n;let s=(e=(0,l.G2)(),t=r.A.LANG,n=o.G,Object.fromEntries(Object.keys(u).map(s=>[s,function(e,t,n,s,a){var r;let o=e[t];if(!o||o.enabledBy&&!a(o.enabledBy)||o.locales&&!o.locales.has(s)||null===n)return d;let l=Object.entries(o.variants).find(e=>{let[,t]=e;return t.has(n)});return null!=(r=null==l?void 0:l[0])?r:d}(u,s,e,t,n)])));i(e=>Object.keys(s).every(t=>s[t]===e[t])?e:s)},[]),(0,s.jsx)(m.Provider,{value:n,children:t})}function f(e){return(0,a.useContext)(m)[e]}},55357:(e,t,n)=>{n.d(t,{default:()=>v,y:()=>w});var s=n(95155),a=n(44296),r=n(12115),o=n(52619),l=n.n(o),i=n(67909),c=n(47650),d=n(54215),u=n(96055),p=n(60753),m=n(51704),h=n(89753),x=n(56764);let f=(0,i.default)(()=>Promise.all([n.e(8476),n.e(1774),n.e(7693),n.e(4230)]).then(n.bind(n,16218)),{loadableGenerated:{webpack:()=>[16218]}});function g(e){var t;return(0,s.jsx)("div",{className:"flex items-center max-w-[calc(40vw-20px)]",children:(0,s.jsx)("div",{className:"mobile-body-2 font-semibold truncate text-center",children:null!=(t=e.stationName)?t:"\xa0"})})}function b(){return(0,s.jsx)("div",{className:"bg-ep-blue-400 h-4 my-1 w-[calc(100%-28px)] rounded animate-pulse"})}function C(e){let t=(0,p.s9)();if(!e.dateFrom)return null;let n=(0,u.kH)((0,u.sL)(e.dateFrom,"shortPaddedStandalone")),r=e.dateTo?(0,u.kH)((0,u.sL)(e.dateTo,"shortPaddedStandalone")):null;return(0,s.jsxs)("div",{className:"mobile-body-2 font-normal flex items-center gap-1",children:[(0,s.jsxs)("span",{children:[n,r&&(0,s.jsxs)(s.Fragment,{children:[" - ",(0,s.jsx)("span",{children:r})]})]}),void 0!==e.passengerCount&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{"aria-hidden":"true",children:"\xb7"}),(0,s.jsxs)("span",{className:"flex items-center gap-1 min-w-0","data-testid":"qsf-mobile-header-passenger-count",children:[(0,s.jsx)(a.default,{icon:"person_filled",size:"md"}),(0,s.jsx)("span",{className:"truncate",children:(0,u.kH)(t.t("global.passenger_count",{count:e.passengerCount}))})]})]})]})}let j=(0,r.memo)(function(e){var t,n,o,i;let d=null===e.stationTo||null===e.stationFrom,[u,p]=r.useState(!1),m=(0,r.useCallback)(()=>p(e=>!e),[]),h=(null==(t=e.stationFrom)?void 0:t.customName)||(null==(n=e.stationFrom)?void 0:n.name),x=(null==(o=e.stationTo)?void 0:o.customName)||(null==(i=e.stationTo)?void 0:i.name);return(0,s.jsxs)("h1",{"data-testid":"qsf-mobile-header",className:"bg-ep-blue-850 flex flex-col gap-3 lg:hidden p-3 max-lg:sticky max-lg:top-0 max-lg:z-[5003] max-w-screen justify-center",children:[(0,s.jsxs)("div",{className:"flex items-center text-white gap-1 max-w-full",children:[(0,s.jsx)(l(),{href:e.previousPageUrl||"",onClick:e.onBack,"data-testid":"qsf-mobile-header-back",children:(0,s.jsx)(a.default,{icon:"chevron_left_button",size:"lg"})}),(0,s.jsxs)("button",{type:"button",className:"cursor-pointer flex flex-col w-full items-start relative",onClick:m,children:[d?(0,s.jsx)(b,{}):(0,s.jsxs)("div",{className:"grow text-white flex gap-[2px] items-center noscript:hidden w-full",children:[(0,s.jsx)(g,{stationName:h}),(0,s.jsx)(a.default,{className:"mx-2",icon:e.dateTo?"arrow_both":"arrow_right",size:"md"}),(0,s.jsx)(g,{stationName:x})]}),(0,s.jsx)(C,{dateFrom:e.dateFrom,dateTo:e.dateTo,passengerCount:e.passengerCount}),!d&&(0,s.jsx)(a.default,{icon:"edit_no_underline",size:"md",className:"absolute top-1/2 -translate-y-1/2 right-0"})]})]}),u&&(0,c.createPortal)((0,s.jsx)(f,{close:m,className:"lg:hidden",blockedFields:e.blockedFields}),document.body)]})}),v=j;function w(e){let t=(0,d.$A)(),n=(0,m.ae)(m.H7.checkoutStepper)===m.c1.B,a=(0,h.F)(x.BX.routeBar,e.fromStep);return(0,s.jsx)(j,{blockedFields:e.blockedFields,previousPageUrl:e.previousPageUrl,onBack:a,stationFrom:t.stations[0],dateFrom:t.dates[0],stationTo:t.stations[1],dateTo:t.dates[1],passengerCount:n?t.passengers.length:void 0})}}
1,56764:(e,t,n)=>{n.d(t,{Ay:()=>o,BX:()=>a,S4:()=>r});var s=n(1175);let a={connectionList:"connection_list",connectionDetails:"connection_details",routeBar:"route_bar"},r={options:"options",detailsAndPayment:"details_and_payment"};class o extends s.A{constructor(e,t,n){super("checkout_step_back",n),this.page_location=window.location.href.toString(),this.back_source=e,this.from_step=t}}},60482:(e,t,n)=>{n.d(t,{A:()=>m});var s=n(95155),a=n(52619),r=n.n(a),o=n(44296),l=n(93349),i=n(12115),c=n(77979);function d(e){let{className:t}=e,n=(0,i.useId)(),a="".concat(n,"-body"),r="".concat(n,"-rail"),o="".concat(n,"-track");return(0,s.jsxs)("svg",{className:(0,c.A)("train-illustration--component",t),"data-testid":"train-illustration",viewBox:"0 0 91 64",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:!1,children:[(0,s.jsx)("path",{d:"M65.9263 25.6933C62.1205 22.9969 58.4692 20.0511 53.3554 20.0726C41.0861 20.1242 23.2491 20.0865 10.9798 20.0855C10.7517 20.0855 10.5237 20.0908 10.2967 20.0833C9.17685 20.0446 8.44724 19.3791 8.43103 18.3868C8.41482 17.374 9.18334 16.6289 10.3399 16.6246C14.4733 16.6096 24.1744 16.6214 28.3077 16.6214H31.7753C31.4391 16.3645 31.3029 16.2225 31.1364 16.1387C29.1043 15.1184 27.0744 14.0927 25.0294 13.0982C24.2868 12.737 23.822 12.2231 23.8274 11.3813C23.8317 10.5803 24.276 10.0793 24.9807 9.73202C27.8948 8.29673 30.8035 6.84854 33.7079 5.39282C34.4375 5.02728 35.125 5.04556 35.8503 5.41003C38.7244 6.85284 41.605 8.28276 44.491 9.70407C45.2163 10.061 45.7297 10.5534 45.7264 11.4038C45.7232 12.251 45.2152 12.7467 44.4877 13.1025C42.5605 14.0443 40.6451 15.0066 38.7265 15.9645C38.4509 16.1021 38.1839 16.258 37.9461 16.6193H38.9557C43.5765 16.6193 48.1985 16.7074 52.8161 16.5924C56.1561 16.5085 59.1772 17.3869 62.0426 18.9706C67.6233 22.0562 72.2809 26.2793 76.6727 30.8174C78.0022 32.1914 79.2625 33.6363 80.499 35.0964C82.4036 37.3444 83.3904 39.8624 82.0188 42.7072C80.606 45.6379 77.9957 47.1248 74.8621 47.1732C66.5662 47.3001 58.266 47.1872 49.9679 47.1851C44.892 47.184 39.815 47.2173 34.7391 47.2238C28.6201 47.2313 16.9323 47.227 10.8144 47.2238C10.4901 47.2238 10.1561 47.2431 9.84161 47.1807C8.95959 47.0066 8.36726 46.2056 8.43968 45.3401C8.50994 44.4919 9.13578 43.835 10.0221 43.7726C10.7669 43.721 17.088 43.7479 17.836 43.7479C36.5172 43.7479 55.1973 43.7436 73.8785 43.7576C75.3702 43.7586 76.7116 43.4167 77.8627 42.4556C79.2441 41.302 79.4895 39.9462 78.5761 38.4024C78.3135 37.9583 78.0119 37.524 77.6606 37.1488C75.4188 34.7609 73.177 32.3731 70.8812 30.0368C70.5472 29.696 69.9267 29.4767 69.4349 29.4713C65.5956 29.4251 61.7551 29.4455 57.9147 29.4444C57.6218 29.4444 57.3288 29.453 57.0359 29.4391C55.928 29.3842 55.1941 28.6875 55.2005 27.7081C55.2081 26.7297 55.9518 25.9836 57.0435 25.9718C59.6463 25.9449 62.2502 25.9621 64.8541 25.961C65.1935 25.961 65.5318 25.961 65.8712 25.961C65.8907 25.8707 65.9101 25.7815 65.9307 25.6912L65.9263 25.6933ZM40.042 11.3942C38.238 10.4986 36.6523 9.70407 35.0558 8.92998C34.9045 8.85687 34.6591 8.84397 34.5121 8.91493C32.8897 9.6987 31.2791 10.505 29.4805 11.3963C31.2802 12.2908 32.8886 13.1004 34.511 13.8788C34.6786 13.9594 34.9639 13.9153 35.1455 13.8282C36.715 13.0649 38.2726 12.2779 40.042 11.3942Z",fill:"url(#".concat(a,")")}),(0,s.jsx)("path",{d:"M10.5215 56.0032C9.20171 56.0032 8.40833 55.3184 8.43103 54.2357C8.45373 53.1928 9.23306 52.5402 10.4999 52.5392C33.8279 52.537 62.7258 52.537 86.0538 52.5392C87.2947 52.5392 88.0837 53.2337 88.0762 54.2776C88.0686 55.3291 87.2968 55.9935 86.0397 56.0011C84.3481 56.0107 30.8554 56.0054 10.5204 56.0011L10.5215 56.0032Z",fill:"url(#".concat(r,")")}),(0,s.jsx)("path",{d:"M48.7681 26.0148C49.6825 26.046 50.2738 26.8641 50.25 27.7608C50.2262 28.6671 49.6123 29.4014 48.6697 29.4132C45.2541 29.4573 15.9174 29.4477 10.4188 29.438C9.17469 29.4358 8.39968 28.7112 8.43103 27.6629C8.4613 26.6566 9.23414 25.9739 10.4156 25.9718C17.2155 25.9643 46.6225 25.9406 48.767 26.0137L48.7681 26.0148Z",fill:"url(#".concat(o,")")}),(0,s.jsxs)("defs",{children:[(0,s.jsxs)("linearGradient",{id:a,x1:"8.54676",y1:"15.5922",x2:"82.7356",y2:"15.5922",gradientUnits:"userSpaceOnUse",children:[(0,s.jsx)("stop",{stopColor:"#00479A"}),(0,s.jsx)("stop",{offset:"1",stopColor:"#004EBD"})]}),(0,s.jsxs)("linearGradient",{id:r,x1:"8.555",y1:"53.3997",x2:"88.1592",y2:"53.3997",gradientUnits:"userSpaceOnUse",children:[(0,s.jsx)("stop",{stopColor:"#00479A"}),(0,s.jsx)("stop",{offset:"1",stopColor:"#004EBD"})]}),(0,s.jsxs)("linearGradient",{id:o,x1:"8.49546",y1:"26.828",x2:"50.2943",y2:"26.828",gradientUnits:"userSpaceOnUse",children:[(0,s.jsx)("stop",{stopColor:"#00479A"}),(0,s.jsx)("stop",{offset:"1",stopColor:"#004EBD"})]})]})]})}var u=n(60753);let p=(0,s.jsx)(o.default,{icon:"arrow_left",size:"md"});function m(e){let{searchUrl:t,className:n}=e,a=(0,u.s9)();
1return(0,s.jsxs)("div",{className:(0,c.A)("flex flex-col items-center gap-8 text-center",n),"data-testid":"centered-error-content",children:[(0,s.jsx)(d,{className:"h-10 w-[57px] shrink-0 md:h-16 md:w-[91px]"}),(0,s.jsxs)("div",{className:"flex flex-col items-center gap-4 [word-break:break-word]",children:[(0,s.jsx)("h2",{className:"font-Gibson text-[24px] font-medium leading-[34px] text-ep-gray-900","data-testid":"centered-error-content-title",children:a.t("component.error-pages.centered-error.title")}),(0,s.jsx)("p",{className:"max-w-[412px] font-Roboto text-base leading-[26px] text-ep-gray-800",children:a.t("component.error-pages.centered-error.description")})]}),(0,s.jsx)(r(),{href:t,"data-testid":"centered-error-content-cta",children:(0,s.jsx)(l.A,{size:"md",leftIcon:p,text:a.t("component.error-pages.centered-error.cta")})})]})}},81546:(e,t,n)=>{n.d(t,{A:()=>o});var s=n(20063),a=n(12115),r=n(72578);function o(e,t){let n=(null==t?void 0:t.serialize)||(e=>null===e?e:"".concat(e)),o=(null==t?void 0:t.deserialize)||(e=>e),l=(0,s.useRouter)(),i=(0,r.A)(),c=(0,a.useCallback)(t=>{let s=n(t),a=new URL(i.current);a.searchParams.get(e)!==s&&(null===s?a.searchParams.delete(e):a.searchParams.set(e,s),"history"in window?history.replaceState(history.state,"",a.toString()):l.replace(a.toString(),{scroll:!1}))},[e]),d=new URL(i.current).searchParams.get(e);return[(0,a.useMemo)(()=>{let e=o(d);return null===e&&(null==t?void 0:t.initValue)!==void 0?t.initValue:e},[d]),c]}},89753:(e,t,n)=>{n.d(t,{F:()=>o});var s=n(12115),a=n(18490),r=n(56764);function o(e,t){let n=(0,a.A)();return(0,s.useCallback)(()=>{n.push(new r.Ay(e,t).toJSON())},[n,e,t])}},96957:(e,t,n)=>{n.d(t,{ExchangeBlockedFieldsProvider:()=>o,m:()=>l});var s=n(95155),a=n(12115);let r=(0,a.createContext)(new Set);function o(e){let{value:t,children:n}=e,o=(0,a.useMemo)(()=>new Set(t),[t]);return(0,s.jsx)(r.Provider,{value:o,children:n})}function l(e){return(0,a.useContext)(r).has(e)}}}]);

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.