PageSourceSearch

https://regiojet.com/_next/static/chunks/pages/reservation/addons/[direction]-da7c61665aba73e7.js

js regiojet.com collected 2026-09-24 09:47:44 UTC 13,079 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b3596386-41b8-451b-b6fb-e9f40677db23",e._sentryDebugIdIdentifier="sentry-dbid-b3596386-41b8-451b-b6fb-e9f40677db23")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[79213],{15738:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/reservation/addons/[direction]",function(){return n(62357)}])},74841:function(e,t,n){"use strict";var r=n(30139),i=n(85893);t.Z=(0,r.Z)((0,i.jsx)("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"InfoOutlined")},43716:function(e,t,n){"use strict";var r=n(67294),i=n(15972);t.Z=function(e,t,n){if(!i.jU)return[t,i.ZT,i.ZT];if(!e)throw Error("useLocalStorage key may not be falsy");var s=n?n.raw?function(e){return e}:n.deserializer:JSON.parse,a=(0,r.useRef)(function(e){try{var r=n?n.raw?String:n.serializer:JSON.stringify,i=localStorage.getItem(e);if(null!==i)return s(i);return t&&localStorage.setItem(e,r(t)),t}catch(e){return t}}),o=(0,r.useState)(function(){return a.current(e)}),c=o[0],l=o[1];(0,r.useLayoutEffect)(function(){return l(a.current(e))},[e]);var u=(0,r.useCallback)(function(t){try{var r="function"==typeof t?t(c):t;if(void 0===r)return;var i=void 0;i=n?n.raw?"string"==typeof r?r:JSON.stringify(r):n.serializer?n.serializer(r):JSON.stringify(r):JSON.stringify(r),localStorage.setItem(e,i),l(s(i))}catch(e){}},[e,l]);return[c,u,(0,r.useCallback)(function(){try{localStorage.removeItem(e),l(void 0)}catch(e){}},[e,l])]}},65362:function(e,t,n){"use strict";n.d(t,{o:function(){return j},Z:function(){return w}});var r=n(72253),i=n(14932),s=n(47702),a=n(85893),o=n(23123),c=n(93967),l=n.n(c),u=n(61262),d=n(55673),f=n(27348),m=n(13732),h=n(62564),x=function(){var e=(0,m.Z)(f.Z,function(e){return e.hideAllModals});return(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsxs)(w,{variant:"supportConnection",children:[(0,a.jsx)(h.PlusBus,{className:"w-2.5 h-2.5 fill-current"}),(0,a.jsx)(o.cC,{i18nKey:"connections.info.support"})]}),(0,a.jsx)("div",{children:(0,a.jsx)(o.cC,{i18nKey:"support.partnerCompany"})}),(0,a.jsx)(d.zx,{onClick:e,children:(0,a.jsx)(o.cC,{i18nKey:"understand"})})]})},p=n(68399),b=n(32417),g=n(88240),v=n(33299),y={informational:"bg-neutral-white border border-secondary-redwarn text-secondary-redwarn",supportConnection:"bg-primary-yellowlight4 text-secondary-orange font-bold",neutral:"bg-primary-bluelight2 text-secondary-bluedark2 font-medium"},N=function(e){var t=e.children,n=e.variant,o=(e.width,e.actionColor),c=e.className,u=(0,s._)(e,["children","variant","width","actionColor","className"]);return(0,a.jsx)("div",(0,i._)((0,r._)({className:l()("inline-flex text-12 px-1 gap-0.5 rounded-tiny p-0.5",c,o?"".concat(b.KW[o]," text-white"):y[void 0===n?"informational":n])},u),{children:t}))},j=function(e){var t=e.clearTooltip,n=e.enableMobileView,r=(0,o.$G)().t,i=(0,g.Z)().isMobile,s=(0,p.Z)().showModal;return(0,a.jsx)(u.Z,{disableHoverListener:t,title:(0,a.jsx)("div",{className:"p-1",children:(0,a.jsx)(o.cC,{i18nKey:"support.partnerCompany"})}),children:(0,a.jsx)(v.Z,{onClick:i&&!t?function(e){e.stopPropagation(),s((0,a.jsx)(x,{}),{title:r("connections.info.support")})}:void 0,className:"flex",children:(0,a.jsxs)(N,{variant:"supportConnection",className:"flex items-center",children:[(0,a.jsx)(h.PlusBus,{className:"w-2.5 h-2.5 fill-current"}),(!i||!n)&&(0,a.jsx)(o.cC,{i18nKey:"connections.info.support"})]})})})},w=N},54718:function(e,t,n){"use strict";var r=n(85893),i=n(93967),s=n.n(i),a=n(62564);t.Z=function(e){var t=e.children,n=e.negative,i=e.className,o=e.iconClasses,c=n?a.Clear:a.Check;return(0,r.jsxs)("li",{className:s()("flex items-start gap-1",n?"text-secondary-red":"text-secondary-green",i),children:[(0,r.jsx)(c,{className:s()("w-3 h-3 fill-current flex-shrink-0",o)}),t]})}},93506:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(85893),i=n(23123),s=n(33299),a=n(62564),o="w-2.5 h-2.5 lg:w-3 lg:h-3 inline-flex mr-0.75",c=function(e){switch(e.vehicleStandardKey){case"ECONOMY":case"ECONOMY_PLATFORM":return(0,r.jsx)(a.EconomyBus,{className:o});case"SAD":return null;case"WEST_BAHN":return(0,r.jsx)(a.WestbahnLogo,{className:o,viewBox:"0 0 49 35"});case"IDS_JMK":return(0,r.jsx)(a.IdsLogo,{className:o,viewBox:"0 0 47 33"});case"OBB":return(0,r.jsx)(a.ObbLogo,{className:o});case"UKRAINIAN_RAILWAYS":return(0,r.jsx)(a.UkrainianRailways,{className:o,viewBox:"0 0 185 66"});case"UNITED_BUSES":return(0,r.jsx)(a.UnitedBuses,{className:o});case"AIRPORT_EXPRESS":return(0,r.jsx)(a.AirportExpress,{className:o});default:return(0,r.jsx)(a.RjLogo,{className:o})}},l=n(99973),u=n(68399),d=function(e){var t=e.arrivalCityName,n=e.departureCityName,o=e.fromStationId,d=e.lineProps,f=d.from,m=d.to,h=d.code,x=e.sectionId,p=e.toStationId,b=e.vehicleStandardKey,g=e.vehicleType,v=e.faresImagesData,y=e.seatClass,N=(0,i.$G)().t,j=h?" (".concat(h,")"):"",w=N("TRAIN"===g?"vehicle.RAIL_CAR":"vehicle.COACH"),I=(0,u.Z)().showModal;return(0,r.jsxs)(s.Z,{className:"mb-0.5 flex w-fit-content items-start gap-0.5 text-primary-blue group lg:items-center",onClick:function(){return I((0,r.jsx)(l.ZP,{code:j,fromStationId:o,sectionId:x,toStationId:p,vehicleType:g,vehicleStandardKey:b,faresImagesData:v,seatClass:y}),{size:"big",title:N("route.detail")})},children:[(0,r.jsx)(c,{vehicleStandardKey:b}),(0,r.jsx)("span",{className:"text-13 lg:text-14 group-hover:underline",children:"".concat(w," ").concat(n||f," — ").concat(t||m).concat(j)}),(0,r.jsx)(a.ChevronRight,{className:"mt-0.5 h-2 w-2 flex-shrink-0 fill-current lg:mt-0"})]})}},42115:function(e,t,n){"use strict";var r=n(85893),i=n(93967),s=n.n(i);t.Z=function(e){var t=e.children,n=e.className;return(0,r.jsx)("main",{className:s()("page-layout pb-28",n),children:t})}},3251:function(e,t,n){"use strict";n.d(t,{d:function(){return i},Z:function(){return C}});var r,i,s=n(72253),a=n(47702),o=n(85893),c=n(5152),l=n.n(c),u=n(93967),d=n.n(u),f=n(11010),m=n(70655),h=n(41664),x=n.n(h),p=n(11163),b=n(55673),g=n(62564),v=function(e){var t,n=e.backLink,r=e.backText,i=e.nextActive,s=e.nextText,a=e.onNext,c=(0,p.useRouter)().push,l=(t=(0,f._)(function(){var e;return(0,m.__generator)(this,function(t){switch(t.label){case 0:return[4,a()];case 1:if(!(e=t.sent()))return[3,3];return[4,c(e)];case 2:t.sent(),t.label=3;case 3:return[2]}})}),function(){return t.apply(this,arguments)});return(0,o.jsxs)("nav",{className:"mt-1 lg:mt-4 flex justify-between",children:[r?(0,o.jsxs)(x(),{href:n,"data-id":"back-btn",className:"sm:hidden flex items-center text-primary-blue font-bold",children:[(0,o.jsx)(g.ArrowBack,{className:"w-3 h-3 mr-0.5 fill-current"}),r]}):(0,o.jsx)("div",{}),s&&(0,o.jsx)(b.zx,{className:"sm:w-full sm:mx-2","data-id":"next-btn",disabled:!(void 0===i||i),type:"button",size:"big",style:{minWidth:240},onClick:l,children:s})]})},y=n(63786),N=n(12214),j=function(){var e,t=(0,N.Z)().connectionRoute.data;return t?(0,o.jsxs)("h2",{className:"h2 flex items-center",children:[(0,o.jsx)(y.Z,{vehicleType:t.vehicleTypes[0],className:"w-2.5 h-2.5 lg:w-3 lg:h-3 mr-1"}),(null===(e=t.vehicleTypes)||void 0===e?void 0:e[1])&&(0,o.jsx)(y.Z,{vehicleType:t.vehicleTypes[1],className:"w-2.5 h-2.5 lg:w-3 lg:h-3 mr-1"}),t.departureCityName,(0,o.jsx)(g.ArrowEast,{className:"w-2 h-2 lg:w-3 lg:h-3 mx-1"}),t.arrivalCityName]}):(0,o.jsx)("div",{})},w=n(23123),I=n(71816),_=n(98740),k=function(){var e=(0,I.nB)().totalPrice;return!!e&&(0,o.jsxs)("div",{className:"px-2 pt-1.5 flex justify-between items-center font-bold rounded-t-sm text-primary-blue",children:[(0,o.jsxs)("div",{className:"text-14",children:[(0,o.jsx)(w.cC,{i18nKey:"basket.totalPrice"}),(0,o.jsx)("span",{className:"sr-only",children:(0,o.jsx)(_.ZP,{price:e})})]}
1),(0,o.jsx)("div",{"aria-hidden":!0,children:(0,o.jsx)(_.ZP,{price:e})})]})},S=n(34767),E=n(88240);(r=i||(i={})).FLEXITRUE="flexi-true",r.IDSTICKET="idsTicket",r.ONETICKETTRUE="OneTicket-true",r.KLIMATICKET="klimaTicket",r.EURAILINTERRAILTICKET="eurailInterrailTicket";var T=function(e){var t=e.children,n=e.routePlanner,r=void 0===n||n,i=e.routeInfo,c=e.subtitle,l=e.title,u=e.hideBottomBar,f=(0,a._)(e,["children","routePlanner","routeInfo","subtitle","title","hideBottomBar"]),m=(0,E.Z)().isMobile;return(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{className:"mt-3 mb-1.5",children:[(0,o.jsx)("h1",{className:"h1",children:l}),i&&(0,o.jsx)(j,{}),c]}),(0,o.jsxs)("div",{className:"flex sm:flex-col lg:gap-4",children:[(0,o.jsxs)("div",{className:d()("w-full flex-grow-0 flex-shrink-0",r&&"lg:w-2/3"),children:[t,(0,o.jsx)("div",{className:"sm:hidden",children:(0,o.jsx)(v,(0,s._)({},f))})]}),(0,o.jsxs)("div",{className:d()("flex flex-col sm:flex-col-reverse bg-neutral-white lg:w-1/3 sm:z-30 sm:mt-3 sm:sticky sm:bottom-0 sm:pb-1 sm:-mx-2 sm:shadow-mobilePrice",u&&"sm:hidden"),children:[(0,o.jsx)("div",{className:"lg:hidden",children:(0,o.jsx)(v,(0,s._)({},f))}),r&&(m?(0,o.jsx)(k,{}):(0,o.jsx)(S.Z,{}))]})]})]})},C=l()(function(){return Promise.resolve(T)},{ssr:!1})},32417:function(e,t,n){"use strict";n.d(t,{IW:function(){return u},KW:function(){return l},ke:function(){return d},xV:function(){return i}});var r,i,s,a,o,c=n(75766);(r=i||(i={})).GREEN="green",r.ORANGE="orange",r.BLUE="blue",r.PINK="pink",r.YELLOW="yellow",r.PURPLE="purple";var l=(s={},(0,c._)(s,"green","bg-secondary-green"),(0,c._)(s,"orange","bg-secondary-orange"),(0,c._)(s,"blue","bg-primary-blue"),(0,c._)(s,"pink","bg-secondary-pinkdark"),(0,c._)(s,"yellow","bg-primary-yellow"),(0,c._)(s,"purple","bg-secondary-purple"),s),u=(a={},(0,c._)(a,"green","bg-secondary-greenlight2"),(0,c._)(a,"orange","bg-secondary-orangelight"),(0,c._)(a,"blue","bg-primary-bluelight3"),(0,c._)(a,"pink","bg-secondary-pinklight"),(0,c._)(a,"yellow","bg-primary-yellowlight3"),(0,c._)(a,"purple","bg-secondary-purplelight2"),a),d=(o={},(0,c._)(o,"green","border-secondary-green"),(0,c._)(o,"orange","border-secondary-orange"),(0,c._)(o,"blue","border-primary-blue"),(0,c._)(o,"pink","border-secondary-pinkdark"),(0,c._)(o,"yellow","border-primary-yellow"),(0,c._)(o,"purple","border-secondary-purple"),o)},12214:function(e,t,n){"use strict";var r=n(71816),i=n(11163),s=n(67294),a=n(13732),o=n(61165);t.Z=function(){var e,t=(0,i.useRouter)(),n=t.route,c=t.query,l=!(e=(0,o.rf)(c.direction))||e.includes("there")?"there":e.includes("back")?"back":null,u=(0,a.Z)(r.zD,function(e){return e.state.booking},{connection:{}}),d=null==u?void 0:u[l],f=(0,r.cn)(),m=(0,r.fR)();return(0,s.useEffect)(function(){var e=(0,o.XQ)(c)||{},t=e.fromStationId,i=e.routeId,s=e.tariffs,a=e.toStationId,l=new AbortController,h=[];if(s&&t&&a&&i&&"/"!==n){var x={fromStationId:t,routeId:i,tariffs:s,toStationId:a};(null==d?void 0:d.type)==="RJ_SRO"&&h.push(setTimeout(function(){return f.fetchSroRoutes(x,l.signal)})),h.push(setTimeout(function(){return f.fetchRoute(x,l.signal)})),r.P6.isRegional(t,a)&&h.push(setTimeout(function(){return m.fetchRoute(x,u.connection.departureDate,l.signal)}))}return function(){l.abort(),h.forEach(clearTimeout)}},[c]),{booking:u,bookingItem:d,direction:l,connectionRoute:f,flexiTickets:m}}},68485:function(e,t,n){"use strict";var r=n(72253),i=n(24043),s=n(248),a=n(67294),o=n(58818);t.Z=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],c=(0,i._)((0,a.useState)(),2),l=c[0],u=c[1];return(0,a.useEffect)(function(){(0,o.Io)(e,{params:(0,r._)({populate:"deep"},t)}).then(u)},(0,s._)(n)),{data:l}}},62357:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return h}});var r=n(72253),i=n(14932),s=n(85893),a=n(23123),o=n(71816),c=n(70199),l=n(42115),u=n(3251),d=n(80631),f=n(12214),m=n(61165),h=!0;t.default=function(){var e=(0,a.$G)().t,t=(0,f.Z)(),n=t.bookingItem,h=t.booking,x=h.isReturn,p=h.connection,b=t.direction,g=(0,o.hk)(b).selectAddons,v=(null==n?void 0:n.selectedAddons)||[],y=n||{},N=y.routeId,j=y.fromStationId,w=y.toStationId,I=y.tariffs,_=y.seat
1Class;return(0,s.jsx)(l.Z,{className:"sm:pb-0",children:(0,s.jsx)(u.Z,{title:e("additionalServices.title"),routeInfo:!0,backText:e("back.toASeating"),nextText:e("button.next"),backLink:{pathname:"".concat((null==n?void 0:n.type)==="RJ_TIME"?d.ZP.RESERVATION.FARE:d.ZP.RESERVATION.SEATING,"/").concat(b),query:{routeId:N,fromStationId:j,toStationId:w,tariffs:I,seatClassKey:_}},onNext:function(){return v.length||g([]),{pathname:(x||"there"!==b)&&"back"!==b?d.ZP.HOMEPAGE:d.ZP.RESERVATION.PASSENGERS,query:x&&"there"===b?(0,m.IW)((0,i._)((0,r._)({},p),{tariffs:null==n?void 0:n.tariffs})):void 0}},children:(0,s.jsx)(c.Z,{routeSections:(null==n?void 0:n.sections)||[],onSelectAddons:g,selectedAddons:(null==n?void 0:n.selectedAddons)||[],tariffs:(null==n?void 0:n.tariffs)||[],carbonOffset:null==n?void 0:n.carbonOffsetData})})})}}},function(e){e.O(0,[49774,91255,85686,19963,99973,34767,70199,92888,40179],function(){return e(e.s=15738)}),_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.