1"use strict";(self.webpackChunkroxana=self.webpackChunkroxana||[]).push([[5678],{32723(e,t,r){r.d(t,{B9:()=>s,DG:()=>l,EB:()=>d,GG:()=>m,H3:()=>u,ST:()=>c,bh:()=>i,bl:()=>a,e$:()=>f,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,l={Mr:"MR",Mrs:"MRS",Ms:"MS",Master:"MASTER",Miss:"MISS"},s="isPaymentAttempted",u="isSingleBrandedFare",f={CANCEL:"CANCEL",EXCHANGE:"EXCHANGE",REFUND:"REFUND"},d={UPCOMING:"UPCOMING",PAST:"PAST",CANCELLED:"CANCELLED"},m=["SAUDIRAIL"]},9202(e,t,r){r.r(t),r.d(t,{PAYMENT_STATUS_POLL_CAP_MS:()=>I,PAYMENT_STATUS_POLL_INTERVAL_MS:()=>A,default:()=>F,getPaymentDetailRefetchInterval:()=>G,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),l=r(28651),s=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 h(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 g(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 _(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=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return O(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)?O(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 O(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 A=1e4,I=12e5,R=function(e){return e===p.dX.AuthPending||e===p.dX.AuthPendingConfirmation},G=function(e,t){return!(t||!R(null==e?void 0:e.statusCode))&&A};const F=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=_((0,l.ok)(),1)[0],O=(0,c.g)(),A=null!==(e=v.get("orderId"))&&void 0!==e?e:"",F=(0,o.mI)(A),k=new URLSearchParams(v);null!=F&&F.paymentId?k.set("pyId",F.paymentId):k.delete("pyId");var C,N,D="".concat((0,u.BQ)(r,null!==(t=O.locale)&&void 0!==t?t:p),"/booking/confirmation?").concat(k.toString()),L=_((0,i.useState)(!1),2),j=L[0],B=L[1],M=(C=(null==F?void 0:F.paymentId)||"",N={refetchInterval:function(e){return G(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?h(Object(r),!0).forEach(function(t){g(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({queryKey:["flightPayment",C],queryFn:function(){return(0,f.Sp)(C)},enabled:!!C,refetchOnWindowFocus:!1,staleTime:1/0},N))),w=M.data,H=M.isError,W=M.refetch;return(0,i.useEffect)(function(){var e=setTimeout(function(){W().finally(function(){return B(!0)})},I);return function(){return clearTimeout(e)}},[]),(0,i.useEffect)(function(){var e,t,n,i;if((0,o.Dj)(s.B9),w&&F&&(j||!R(w.statusCode)))if(null!==(e=null==w?void 0:w.allowRetry)&&void 0!==e&&e){var a=F.searchParams,c=a.leg,l=a.cabinClass,f=a.searchAndTrip,d=a.fareCode,m=a.passengerCounts,h=_(null!==(t=null==m?void 0:m.split(":"))&&void 0!==t?t:[],3),g=h[0],y=h[1],b=h[2],E=_(null!==(n=null==f?void 0:f.split(":"))&&void 0!==n?n:[],2),S=E[0],I=E[1],G=new URLSearchParams(v);G.delete("bookingRef"),G.delete("lastName"),G.delete("tripId"),G.delete("pyId"),G.set("retry","true"),G.set("retry-source","verification");var k="".concat((0,u.BQ)(r,null!==(i=O.locale)&&void 0!==i?i:p),"/searches/").concat(c,"/").concat(l,"/").concat(g,":").concat(y,":").concat(b,"/").concat(S,":").concat(I,"/").concat(d,"/booking?").concat(G.toString());(0,o.VY)(A,P(P({},F),{},{paymentId:"",paymentTokenResponse:void 0})),T(k,{state:{currentStep:null!=F&&F.isAddonsSelectionAvailable?4:3,flightFares:F.flightFareDetails,activePaymentOrder:{flightPnrDetails:F.flightPnrDetails,id:A,insurancePolicies:F.insurancePolicies,selectedInsurancePolicyIds:F.selectedInsurancePolicyIds,bookingPaymentStatus:w}}})}else T(D,{state:{bookingPaymentStatus:w,hasPaymentError:!1}})},[w,j]),(0,i.useEffect)(function(){H&&T(D,{state:{hasPaymentError:!0}})},[H]),null!=F&&F.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.