1"use strict"; 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="40acd434-5ca1-5191-8e04-12329daadb9c")}catch(e){}}(); 3(globalThis.rspackChunkowl_frontend||=[]).push([["default-src_lib_intl_countryFromLocale_ts-src_loaders_payReservation_ts-src_pages_Reservation-3f7ac2"],{55524(e,a,r){let s={ar:"SA",bg:"BG",bs:"BA",cs:"CZ",da:"DK",de:"DE",el:"GR",en:"US",es:"ES",fi:"FI",fr:"FR",ga:"IE",he:"IL",hr:"HR",hu:"HU",id:"ID",it:"IT",ja:"JP",ko:"KR",lv:"LV",mk:"MK",nl:"NL",no:"NO",pl:"PL",pt:"PT",rm:"CH",ro:"RO",ru:"RU",sq:"AL",sr:"RS",sv:"SE",sw:"KE",th:"TH",tr:"TR",uk:"UA",ur:"PK",vi:"VN",yue:"HK",zh:"CN"},i=e=>{if(!e)return"US";try{let a=new Intl.Locale(e);if(a.region)return a.region;return s[a.language]??"US"}catch{let a=e.split("-");if(a[1])return a[1].toUpperCase();return s[a[0].toLowerCase()]??"US"}};r.d(a,{},{E:e=>"en"===e&&"u">typeof navigator?i(navigator.language):i(e),g:i})},28573(e,a,r){var s=r(67966);let i=(0,r(55855).k)({key:"reservationPay",loader:async e=>await s.A.pay(e)});r.d(a,{},{f:i})},64918(e,a,r){var s=r(24225),i=r(74743);r.d(a,{},{A:e=>{let{departureStationCode:a,arrivalStationCode:r,departureTime:n,arrivalTime:t}=e,[{locale:l}]=(0,i.g)(),o=(0,s.S)({location:a?{type:"station",code:a}:null,locale:l}),d=(0,s.S)({location:r?{type:"station",code:r}:null,locale:l});return a&&r&&n&&t?{id:`${a}-${r}`,departureTime:n,arrivalTime:t,departureStation:{name:o.data?.name??""},arrivalStation:{name:d.data?.name??""},segments:[]}:null}})},38798(e,a,r){r.d(a,{A:()=>K});var s=r(74848),i=r(96540),n=r(65888),t=r(57647),l=r(33806),o=r(99916),d=r(70082),c=r(18100),h=r(79806),m=r(58055),u=r(22553),v=r(86522),j=r(56705),x=r(93409),g=r(66573),p=r(21106),A=r(47767),f=r(68475),C=r(41918),S=r(50390),b=r(63282),y=r(21627),N=r(45659),_=r(77649),k=r(72178),L=r(62354);let I=()=>(0,s.jsxs)("div",{className:"column",children:[(0,s.jsx)("div",{className:"cell-12",children:(0,s.jsx)(p.A.Item,{height:105})}),(0,s.jsx)("hr",{"aria-hidden":!0}),(0,s.jsx)("div",{className:"cell-12",children:(0,s.jsx)(p.A.Item,{height:40})}),(0,s.jsx)("hr",{"aria-hidden":!0}),(0,s.jsx)("div",{className:"cell-12 pb-3",children:(0,s.jsx)(p.A.Item,{height:60})}),(0,s.jsx)("div",{className:"cell-12",children:(0,s.jsx)(p.A.Item,{height:21})})]});var R=r(64918),T=r(59124),w=r(62241);let P=e=>{let{isReservationLoading:a,isCarrierLoading:r,marketingCarrier:i,showReservationId:n}=e,[{discountCodes:t,discountVoucher:l,reservation:o}]=(0,T.t)(),{t:d}=(0,j.Bd)(),{id:c}=(0,A.g)(),{values:{reservationInfo:h}}=(0,u.j7)(),m=(0,R.A)({departureStationCode:h?.departureStationCode,arrivalStationCode:h?.arrivalStationCode,departureTime:h?.departureTime,arrivalTime:h?.arrivalTime}),v=(0,R.A)({departureStationCode:h?.arrivalStationCode,arrivalStationCode:h?.departureStationCode,departureTime:h?.returnDepartureTime,arrivalTime:h?.returnArrivalTime}),x=t.enabled&&t.displayOn.includes("checkout_details"),g=l.enabled&&l.dropdown,P=l.enabled&&!l.dropdown&&o.enabled;return(0,s.jsxs)("div",{className:"reservation-details",children:[(0,s.jsx)("h3",{children:d("checkout.reservation_info.title")}),n&&(0,s.jsxs)("span",{className:"reservation-details__code",children:[(0,s.jsx)(j.x6,{i18nKey:"checkout.reservation_info.code",values:{id:c},components:{b:(0,s.jsx)("b",{})}}),(0,s.jsx)("hr",{"aria-hidden":!0})]}),(0,s.jsx)(p.A.List,{Skeleton:I,loading:a,amount:1,children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(S.A,{isCarriersLoading:r,outbound:m,inbound:v}),m&&(0,s.jsx)("hr",{"aria-hidden":!0}),h?.passengers.filter(e=>{let{firstName:a,lastName:r}=e;return a&&r}).map((e,a)=>{let{firstName:r,lastName:i}=e;return(0,s.jsxs)("div",{className:"reservation-details__passengers mb-1",children:[(0,s.jsx)("b",{children:d("checkout.reservation_info.passenger",{count:a+1,ordinal:!0})}),(0,s.jsx)("span",{children:` ${r} ${i}`}),a===h.passengers.length-1&&(0,s.jsx)("hr",{"aria-hidden":!0})]},a)}),(0,s.jsx)(p.A.List,{Skeleton:f.A,amount:1,loading:r,children:(0,s.jsx)(s.Fragment,{children:i&&(0,s.jsx)("div",{className:"column gap-3 mb-lg-4 reservation-payment__terms",children:(0,s.jsx)(u.D0,{component:w.A,label:(0,s.jsx)(C.A,{carriers:[i]}),name:"termsAndPrivacy",validate:b.mw})})})})]})}),h&&(0,s.jsx)(N.A,{className:"mb-lg-2",fees:h.fees}),x&&(0,s.jsx)("div",{className:"mb-3",children:(0,s.jsx)(y.A,{})}),P&&(0,s.jsx)("div",{className:"mb-3",children:(0,s.jsx)(k.A,{})}),g&&(0,s.jsx)("div",{className:"column mb-lg-4",children:(0,s.jsx)(L.A,{})}),(0,s.jsx)(_.A,{})]})};var E=r(74743);let U=e=>{let{finishPayment:a,confirmationOnly:r,reservation:n,showReservationId:t}=e,{t:l}=(0,j.Bd)(),{setFieldValue:o}=(0,u.j7)(),[{locale:d,currency:c}]=(0,E.g)(),{data:h,isLoading:m}=n,{data:p,isLoading:A}=(0,x.x)({marketingCarrierCode:h?.marketingCarrierCode??"",params:{locale:d,currency:c}});return(0,i.useEffect)(()=>{o("isVacancyLoading",m),o("isReservationLoading",m)},[m,o]),(0,i.useEffect)(()=>{h&&(o("reservationCode",h.reservationId),o("reservationInfo",h),o("fees",h.fees),o("price",h.totalPrice))},[o,h]),(0,s.jsxs)("div",{className:"column row-lg space-between gap-4",children:[(0,s.jsx)("div",{className:"cell-8 cell-sm-6",children:(0,s.jsxs)("div",{className:(0,v.A)("checkout","section"),children:[(0,s.jsx)("h3",{children:l("checkout.paymentMethod")}),(0,s.jsx)(g.A,{finishPayment:a,confirmationOnly:r,price:h?.totalPrice??null})]})}),(0,s.jsx)("div",{className:"reservation-payment__details cell-4 cell-sm-12",children:(0,s.jsx)("div",{className:(0,v.A)("checkout","section"),children:(0,s.jsx)(P,{showReservationId:t,isReservationLoading:m,isCarrierLoading:A,marketingCarrier:p})})})]})},K=e=>{let{finishPayment:a,confirmationOnly:r,reservation:i,showReservationId:u}=e,[{error:v,...j},x]=(0,o.A)(),[,g]=(0,T.t)();return(0,s.jsx)(n.A,{loading:g.isFetching&&!i.error,children:(0,s.jsx)(l.A,{loader:i,children:(0,s.jsxs)(m.A,{...e,children:[(0,s.jsx)(t.A,{opened:v,onClose:()=>{x(j,{replace:!0})},screen:"checkout"}),(0,s.jsx)(h.A,{}),(0,s.jsx)(d.A,{}),(0,s.jsx)(c.A,{}),(0,s.jsx)(U,{showReservationId:u,reservation:i,finishPayment:a,confirmationOnly:r})]})})})}}}]); 4//# sourceMappingURL=default-src_lib_intl_countryFromLocale_ts-src_loaders_payReservation_ts-src_pages_Reservation-3f7ac2.a18e400f50c873d3.js.map 5//# debugId=40acd434-5ca1-5191-8e04-12329daadb9c
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.