1"use strict";(self.webpackChunkroxana=self.webpackChunkroxana||[]).push([[5678],{32790(e,t,r){r.d(t,{Dj:()=>i,VY:()=>n,mI:()=>o}),r(60739),r(33110),r(79432);var n=function(e,t){try{window.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){}},o=function(e){try{var t=window.sessionStorage.getItem(e);if(t)return JSON.parse(t)}catch(e){}return null},i=function(e){try{window.sessionStorage.removeItem(e)}catch(e){}}},32723(e,t,r){r.d(t,{B9:()=>l,DG:()=>s,EB:()=>d,H3:()=>u,ST:()=>c,bh:()=>i,bl:()=>a,e$:()=>f,m0:()=>m,xE:()=>n,zx:()=>o});var n={CONFIRM_ADDONS:"/metasearch/bookings/flights/addons/confirm",DOWNLOAD_FLIGHT_TICKET:"/metasearch/bookings/flights/confirmation/fetch/{0}",GET_BOW_FLIGHT_FAREID:"/v3/metasearch/flights/google/create",GET_FLIGHT_SEARCH:"/v3/metasearch/flights/searches/{0}",GET_PAYMENT_METHODS:"/flights/payment_methods",GET_FLIGHT_BOOKING_DETAILS:"/metasearch/bookings/flights/v2/details",GET_FLIGHT_AMENITIES:"/v3/metasearch/flights/amenities/{0}",GET_FLIGHT_BOOKING_HISTORY_CANCELLED:"/metasearch/bookings/flights/cancelled_trips",GET_FLIGHT_BOOKING_HISTORY_COMPLETED:"/metasearch/bookings/flights/completed_trips",GET_FLIGHT_BOOKING_HISTORY_UPCOMPING:"/metasearch/bookings/flights/upcoming_trips",GET_FLIGHT_BOOKING_STATUS:"/metasearch/bookings/flights/status",GET_FLIGHT_FARE_REVALIDATION:"/metasearch/bookings/flights/v2/fare/revalidate",GET_FLIGHT_FARES_RULES:"/metasearch/bookings/flights/v2/fare-rules",GET_FLIGHT_FARES_V2:"/metasearch/bookings/flights/v2/fare/{0}/compare",GET_FLIGHT_PASSENGER_DYNAMIC_FORMS:"/metasearch/bookings/flights/dynamic-forms/{0}",GET_FLIGHT_PAYMENT_OPTIONS:"/metasearch/bookings/flights/v2/payments/options",GET_FLIGHT_PAYMENT:"/metasearch/bookings/flights/payments/{0}",GET_FLIGHT_TRIP_DETAILS:"/v5/metasearch/flights/trips/{0}",GET_INSURANCE:"/metasearch/bookings/flights/addons/insurance",POST_FLIGHT_PAYMENT:"/metasearch/bookings/flights/payments",RELEASE_FLIGHT_PROMO:"/metasearch/bookings/flights/promocodes/release",RESERVE_FLIGHT_PROMO:"/metasearch/bookings/flights/promocodes/reserve",SUBMIT_PASSENGER_INFO:"/metasearch/bookings/flights/passenger-info",SUBMIT_PASSENGER_INFO_AGENT:"/metasearch/bookings/flights/passenger-info/agent",TRAVELLER_LIST:"/users/travellers"},o=24,i=29,a=15,c=130,s={Mr:"MR",Mrs:"MRS",Ms:"MS",Master:"MASTER",Miss:"MISS"},l="isPaymentAttempted",u="isSingleBrandedFare",f={CANCEL:"CANCEL",EXCHANGE:"EXCHANGE",REFUND:"REFUND"},d={UPCOMING:"UPCOMING",PAST:"PAST",CANCELLED:"CANCELLED"},m=["zz.wego.com"]},9202(e,t,r){r.r(t),r.d(t,{PAYMENT_STATUS_POLL_CAP_MS:()=>A,PAYMENT_STATUS_POLL_INTERVAL_MS:()=>_,default:()=>G,getPaymentDetailRefetchInterval:()=>F,isPendingPaymentStatus:()=>R}),r(52675),r(89463),r(2259),r(45700),r(16280),r(76918),r(28706),r(2008),r(51629),r(23418),r(64346),r(23792),r(44114),r(34782),r(89572),r(23288),r(62010),r(2892),r(67945),r(84185),r(83851),r(81278),r(79432),r(26099),r(3362),r(9391),r(27495),r(90906),r(38781),r(47764),r(98992),r(54520),r(3949),r(23500),r(62953),r(76031),r(48408);var n=r(10619),o=r(32790),i=r(96540),a=r(71468),c=r(78106),s=r(28651),l=r(32723),u=r(13968),f=r(76908),d=r(96102);function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function h(e,t,r){return(t=function(e){var t=function(e){if("object"!=m(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==m(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var y=r(24375),p=r(62584);const b={container:"GiM5tifI2iFEHNrjHMYl",wrapper:"MgB1scAOrvsl_iPpZaQS",loadingIcon:"RTURcYJKRGmpFYMnshWG",title:"tovbBAkh90e_B5OEK1mP",content:"lupig0w7slt9gKR7Z0eJ"};var E=r(74848);function S(e){return S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S(e)}function T(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function P(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?T(Object(r),!0).forEach(function(t){v(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):T(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function v(e,t,r){return(t=function(e){var t=function(e){if("object"!=S(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=S(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==S(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],s=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?I(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var _=1e4,A=12e5,R=function(e){return e===p.dX.AuthPending||e===p.dX.AuthPendingConfirmation},F=function(e,t){return!(t||!R(null==e?void 0:e.statusCode))&&_};const G=function(){var e,t,r=(0,a.d4)(y.Ke),m=(0,a.d4)(y.GY),p=(0,a.d4)(y.MS),S=(0,a.d4)(y.YH),T=(0,c.Zp)(),v=O((0,s.ok)(),1)[0],I=(0,c.g)(),_=null!==(e=v.get("orderId"))&&void 0!==e?e:"",G=(0,o.mI)(_),k=new URLSearchParams(v);null!=G&&G.paymentId?k.set("pyId",G.paymentId):k.delete("pyId");var N,C,D="".concat((0,u.BQ)(r,null!==(t=I.locale)&&void 0!==t?t:p),"/booking/confirmation?").concat(k.toString()),L=O((0,i.useState)(!1),2),j=L[0],w=L[1],B=(N=(null==G?void 0:G.paymentId)||"",C={refetchInterval:function(e){return F(e,j)},refetchIntervalInBackground:!1},(0,d.w)(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach(function(t){h(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({queryKey:["flightPayment",N],queryFn:function(){return(0,f.Sp)(N)},enabled:!!N,refetchOnWindowFocus:!1,staleTime:1/0},C))),M=B.data,H=B.isError,W=B.refetch;return(0,i.useEffect)(function(){var e=setTimeout(function(){W().finally(function(){return w(!0)})},A);return function(){return clearTimeout(e)}},[]),(0,i.useEffect)(function(){var e,t,n,i;if((0,o.Dj)(l.B9),M&&G&&(j||!R(M.statusCode)))if(null!==(e=null==M?void 0:M.allowRetry)&&void 0!==e&&e){var a=G.searchParams,c=a.leg,s=a.cabinClass,f=a.searchAndTrip,d=a.fareCode,m=a.passengerCounts,g=O(null!==(t=null==m?void 0:m.split(":"))&&void 0!==t?t:[],3),h=g[0],y=g[1],b=g[2],E=O(null!==(n=null==f?void 0:f.split(":"))&&void 0!==n?n:[],2),S=E[0],A=E[1],F=new URLSearchParams(v);F.delete("bookingRef"),F.delete("lastName"),F.delete("tripId"),F.delete("pyId"),F.set("retry","true"),F.set("retry-source","verification");var k="".concat((0,u.BQ)(r,null!==(i=I.locale)&&void 0!==i?i:p),"/searches/").concat(c,"/").concat(s,"/").concat(h,":").concat(y,":").concat(b,"/").concat(S,":").concat(A,"/").concat(d,"/booking?").concat(F.toString());(0,o.VY)(_,P(P({},G),{},{paymentId:"",paymentTokenResponse:void 0})),T(k,{state:{currentStep:null!=G&&G.isAddonsSelectionAvailable?4:3,flightFares:G.flightFareDetails,activePaymentOrder:{flightPnrDetails:G.flightPnrDetails,id:_,insurancePolicies:G.insurancePolicies,selectedInsurancePolicyIds:G.selectedInsurancePolicyIds,bookingPaymentStatus:M}}})}else T(D,{state:{bookingPaymentStatus:M,hasPaymentError:!1}})},[M,j]),(0,i.useEffect)(function(){H&&T(D,{state:{hasPaymentError:!0}})},[H]),null!=G&&G.paymentId?(0,E.jsx)("div",{className:(0,n.$)(b.container,m&&b.rtl),children:(0,E.jsxs)("div",{className:b.wrapper,children:[(0,E.jsx)("i",{className:b.loadingIcon}),(0,E.jsx)("div",{className:b.title,children:S.processing_payment}),(0,E.jsx)("div",{className:b.content,children:S.payment_process_message})]})}):(0,E.jsx)(c.C5,{to:D})}},62584(e,t,r){r.d(t,{Rc:()=>i,cg:()=>n,dX:()=>o});var n=function(e){return e[e.Success=1e4]="Success",e[e.BookingFailed=10050]="BookingFailed",e[e.PaymentFailed=7e4]="PaymentFailed",e[e.CardFormatErrorWithBookingReference=20001]="CardFormatErrorWithBookingReference",e[e.ThreeDSErrorWithBookingReference=20002]="ThreeDSErrorWithBookingReference",e[e.TryAnotherCardWithBookingReference=20003]="TryAnotherCardWithBookingReference",e[e.GenericPaymentFailureWithBookingReference=20050]="GenericPaymentFailureWithBookingReference",e[e.CardFormatErrorWithoutBookingReference=30001]="CardFormatErrorWithoutBookingReference",e[e.ThreeDSErrorWithoutBookingReference=30002]="ThreeDSErrorWithoutBookingReference",e[e.TryAnotherCardWithoutBookingReference=30003]="TryAnotherCardWithoutBookingReference",e[e.GenericPaymentFailureWithoutBookingReference=30050]="GenericPaymentFailureWithoutBookingReference",e[e.GeneralError=4e4]="GeneralError",e[e.Polling=5e4]="Polling",e[e.AllowRetryPayment=6e4]="AllowRetryPayment",e[e.PollingAfterSuccessfulPayment=500001]="PollingAfterSuccessfulPayment",e}({}),o=function(e){return e[e.Blank=0]="Blank",e[e.FraudDeclined=1]="FraudDeclined",e[e.FraudFailed=9]="FraudFailed",e[e.Cancelled=5e3]="Cancelled",e[e.Abandon=5001]="Abandon",e[e.Authorized=1e3]="Authorized",e[e.AuthDeclined=1001]="AuthDeclined",e[e.AuthPending=1002]="AuthPending",e[e.AuthPendingConfirmation=1003]="AuthPendingConfirmation",e[e.AuthFailed=1009]="AuthFailed",e[e.Captured=2e3]="Captured",e[e.CaptureDeclined=2001]="CaptureDeclined",e[e.CaptureFailed=2009]="CaptureFailed",e[e.Voided=2100]="Voided",e[e.VoidDeclined=2101]="VoidDeclined",e[e.VoidFailed=2109]="VoidFailed",e[e.Refunded=3e3]="Refunded",e[e.RefundDeclined=3001]="RefundDeclined",e[e.RefundFailed=3009]="RefundFailed",e}({}),i=function(e){return e.Passport="PASSPORT",e.NationalId="NATIONAL_ID",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.