PageSourceSearch

https://www.wego.co.in/roxana/FlightBookingConfirmationV2.23fc07ad.bundle.js

js wego.co.in collected 2026-10-01 16:33:10 UTC 35,840 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkroxana=self.webpackChunkroxana||[]).push([[5997],{11126(e,n,t){t.d(n,{A:()=>f}),t(52675),t(89463),t(2259),t(45700),t(16280),t(76918),t(2008),t(51629),t(25276),t(23792),t(44114),t(89572),t(2892),t(67945),t(84185),t(83851),t(81278),t(79432),t(26099),t(47764),t(98992),t(54520),t(3949),t(23500),t(62953);var r=t(10619),o=(t(96540),t(55479));const i={container:"HjPoyQOxPJBS3tqYvxKN",overlay:"NSY7AIVIZUZhn71SGZbk",wrapper:"ddun1uzBpA6Rn9Gkdlpq",large:"BbOJZCu6oOG7ejBk1hRj",title:"qOFn708dei3cX74pU5VQ",icon:"doQnSI70Y9Wm5vr22h5Z",content:"h4aXscBoDD4zSt5DFRwg",open:"gQMILS_ysBgiVEqfzI_c",rtl:"R1H5ED48Nc0wiBdIzE5f"};var a=t(74848);function l(e){return l="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},l(e)}var c=["children","isOpen","onClose","title","size","id"];function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,r)}return t}function u(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?s(Object(t),!0).forEach(function(n){d(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function d(e,n,t){return(n=function(e){var n=function(e){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=l(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==l(n)?n:n+""}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}const f=function(e){var n=e.children,t=e.isOpen,l=e.onClose,s=e.title,d=e.size,f=e.id,g=function(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==n.indexOf(r))continue;t[r]=e[r]}return t}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}(e,c);return(0,a.jsxs)("div",u(u({id:f,className:(0,r.$)(i.container,t&&i.open),onClick:function(e){e.stopPropagation(),e.preventDefault()}},g),{},{children:[(0,a.jsx)("div",{className:i.overlay,onClick:l}),(0,a.jsxs)("div",{className:(0,r.$)(i.wrapper,d&&i[d]),children:[(0,a.jsxs)("div",{className:i.title,children:[(0,a.jsx)("span",{children:s}),(0,a.jsx)(o.A,{className:i.icon,onClick:l,"data-testid":"CloseIcon"})]}),(0,a.jsx)("div",{className:(0,r.$)(i.content),children:n})]})]}))}},46262(e,n,t){t.d(n,{A:()=>m}),t(52675),t(89463),t(2259),t(45700),t(16280),t(76918),t(2008),t(51629),t(23418),t(64346),t(23792),t(44114),t(34782),t(89572),t(23288),t(62010),t(2892),t(67945),t(84185),t(83851),t(81278),t(79432),t(26099),t(27495),t(90906),t(38781),t(47764),t(98992),t(54520),t(3949),t(23500),t(62953);var r=t(57178),o=t(84825),i=t(96540),a=t(57722);function l(e){return l="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},l(e)}function c(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,r)}return t}function s(e,n,t){return(n=function(e){var n=function(e){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=l(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==l(n)?n:n+""}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function u(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var d=window.location.hostname,f=(0,r.b_)(d)||(0,r.Lo)(d)?a.oc:a.sE,g=(0,r.b_)(d)||(0,r.Lo)(d)?a.WO:a.iA;
1const m=function(e,n){var t,r,l=(t=(0,i.useState)(!1),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;c=!1}else for(;!(c=(r=i.call(t)).done)&&(l.push(r.value),l.length!==n);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(t,r)||function(e,n){if(e){if("string"==typeof e)return u(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?u(e,n):void 0}}(t,r)||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.")}()),d=l[0],m=l[1],y=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?c(Object(t),!0).forEach(function(n){s(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}({trackOnce:!0},n);return(0,i.useEffect)(function(){if(e)if(y.trackOnce){if(d)return;(0,o.k)(a.zs,f,g,e),m(!0)}else(0,o.k)(a.zs,f,g,e)},[e,d,y.trackOnce]),d}},58638(e,n,t){t.d(n,{FlightBookingConfirmationV2:()=>ke}),t(52675),t(89463),t(2259),t(45700),t(16280),t(76918),t(2008),t(78350),t(51629),t(23418),t(74423),t(64346),t(23792),t(62062),t(44114),t(34782),t(15086),t(30237),t(89572),t(23288),t(62010),t(2892),t(67945),t(84185),t(83851),t(81278),t(79432),t(26099),t(27495),t(90906),t(38781),t(21699),t(47764),t(98992),t(54520),t(30670),t(3949),t(81454),t(37550),t(23500),t(62953),t(48408);var r=t(10619),o=t(32790),i=t(80533),a=t(32275),l=t(15256),c=t(96375),s=t(96777),u=t(21620),d=t(66401),f=t(96540),g=t(71468),m=t(78106),y=t(28651),b=t(41074),h=t(93265),p=t(73598),v=t(24375);t(50113),t(72577);var _=t(74848),k=function(e){var n,t,o=e.insurance,i=e.onClickLearnMore,a=e.className,l=void 0===a?"":a,c=!!o.policies.find(function(e){return!!e.termsWording}),s=null===(n=o.policies.find(function(e){return!!e.termsWording}))||void 0===n?void 0:n.termsWording;return(0,_.jsx)("div",{className:(0,r.$)("Si6eDtOxkkzsA_8sJPvr",l),children:(0,_.jsxs)("div",{className:"KUukES4z2_2yAsoQufpS",children:[(0,_.jsx)("div",{className:"FvxiYKOJ9lxoiOaDxBOT",children:"IMAGE"===o.icon.type?(0,_.jsx)("img",{src:o.icon.url,alt:o.title}):(0,_.jsx)("div",{className:"LUtcBWHQBBlgSY_uYdU7",dangerouslySetInnerHTML:{__html:null!==(t=o.icon.content)&&void 0!==t?t:""}})}),(0,_.jsx)("div",{className:"fPe0Uv0qtshgbhUGXqEC",children:(0,_.jsx)("div",{className:"VS2QfVAwYWMIWiU97JMe",children:o.title})}),c&&s&&(0,_.jsx)("button",{type:"button",className:"DuCTCL1zS1P68YFxNgN2",onClick:i,children:s})]})})};k.displayName="InsuranceItem";function S(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var j=function(e){var n,t,r=e.insurancePolicies,o=e.passengersCount,i=e.clientId,a=e.clientSessionId,l=e.pageViewId,c=void 0===l?"":l,s=(0,g.d4)(v.YH),u=(n=(0,f.useState)(null),t=2,function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;c=!1}else for(;!(c=(r=i.call(t)).done)&&(l.push(r.value),l.length!==n);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(n,t)||function(e,n){if(e){if("string"==typeof e)return S(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?S(e,n):void 0}}
1(n,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.")}()),d=u[0],m=u[1];if(0===r.length)return null;var y=function(){m(null)};return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)("div",{className:"g1uv77OWD0xOjyMPye3E",children:[(0,_.jsx)("div",{className:"z231xXEnsvcrfBQlm2Fk",children:s.travel_protection}),r.map(function(e){return(0,_.jsx)(k,{className:"CegK6ItJBNnIWFZrRyag",insurance:e,onClickLearnMore:function(){return function(e){m(e)}(e)}},e.uuid)})]}),d&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(h.A,{isOpen:null!==d&&"CG"===d.supplierProvider,onClose:y,insurancePolicy:d,clientId:i,clientSessionId:a,pageViewId:c}),(0,_.jsx)(p.A,{isOpen:null!==d&&"HEPSTAR"===d.supplierProvider,onClose:y,insurancePolicy:d,passengerCount:o})]})]})},w=t(11126),C=t(49922),P=t(74034),O=t(9930),A=t(60609),x=t(33829),I=t(58649),B=t(46262),E=t(93379),R=t(62584),D=t(45484),F=t(25511),W=t(44016),T=t(50450),N=t(25576),G=t(25e3),L=t(57932);const z={container:"bHLBtOJKE8itmaC5i18l",success:"duHcFnxAMbLoaI79V5oG",retry:"Vnt6WwzQACwH9n1FYX5q",bookingStatusIcon:"yK6mwrGoQ3qW6TlwWbdz",pending:"bnNZj9lL22ZB4iHxJHbL",payment:"cRW2oLslKGiy1WgxRK4w",failed:"YvQ6hPOwX62d3B3w6GPb",divider:"KJd48eVq7g0dCTgGqhhf",bookingStatus:"C8ROQ63jpDDHpLQRMWzI",bookingStatusTitle:"G1zo7A6q6qugZiUTGj2F",bookingStatusDesc:"KOk5phWVb3QH_mdw0p9L",bookingStatusDescSec:"pigOmzkzbYQ0_LEs4E6a",bookingStatusDetails:"zv8xTS9T8FgM1TkAxfdu",bookingRef:"Tz53fx78djGez4O0PPkS",wegoLogo:"lgRzr765H8NuICYt6W1B",bookingStatusButton:"m_Gkug16mEnm9duywFCN",anotherSearchIcon:"NTFXjVxJOX4hjMQ5jVMW",printer:"TLJLn4uvjnekpZKPp8yP",hasDivider:"fkAfBzl9yvyN0LdCp2R_",flexCol:"wauPWX_E31Viv92sSAwm",bookingStatusIconLoader:"jpOwGaAyk6mgm8elTdjP",rtl:"w6qeKTDYBNK_VGwYBLS9"};function H(e){return H="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},H(e)}function M(e,n,t){return(n=function(e){var n=function(e){if("object"!=H(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=H(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==H(n)?n:n+""}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}const Y=function(e){var n,t,o=e.bookingRef,i=e.bookingStatus,a=e.isRtl,l=e.locale,c=e.translations,s=e.userContactEmail,u=e.bookingPaymentStatus,d=e.onRetryPayment,f=(0,G.tk)().isShowingWeegioFlightConfirmation;return(0,_.jsx)("div",{className:(0,r.$)(z.container,a&&z.rtl,z[(0,L.od)(i)]),children:(0,_.jsxs)("div",{className:z.bookingStatus,children:[(0,_.jsx)("i",{className:(0,r.$)(z.bookingStatusIcon,z[(0,L.YM)(i)])}),i===R.cg.Success&&f?(0,_.jsx)(T.A,{}):null,function(e){var n="";switch(e){case R.cg.BookingFailed:n=c.booking_failed;break;case R.cg.GeneralError:n=c.bow_flights_failed_payment_4xx_lbl;break;case R.cg.Polling:n=c.processing_payment;break;case R.cg.PollingAfterSuccessfulPayment:n=c.processing_your_booking;break;case R.cg.Success:n=c.booking_in_process;break;case R.cg.CardFormatErrorWithBookingReference:case R.cg.CardFormatErrorWithoutBookingReference:n=c.wrong_card_format;break;case R.cg.AllowRetryPayment:case R.cg.GenericPaymentFailureWithBookingReference:case R.cg.GenericPaymentFailureWithoutBookingReference:case R.cg.PaymentFailed:n=c.payment_failed;break;case R.cg.ThreeDSErrorWithBookingReference:case R.cg.ThreeDSErrorWithoutBookingReference:n=c.incorrect_security_code;break;case R.cg.TryAnotherCardWithBookingReference:case R.cg.TryAnotherCardWithoutBookingReference:n=c.try_another_card;break;default:n=c.processing_your_booking}return n?(0,_.jsx)("div",{className:z.bookingStatusTitle,children:n}):null}(i),function(e){var n,t="";switch(e){case R.cg.BookingFailed:t=c.bow_flights_book_failed_lbl;break;case R.cg.GeneralError:t=c.bow_flights_failed_payment_4xx_desc;break;case R.cg.Polling:t=c.payment_do_not_close_message;break;case R.cg.PollingAfterSuccessfulPayment:t=c.bow_flights_loading_desc;break;case R.cg.Success:t=c.thanks_for_booking_wego;break;case R.cg.CardFormatErrorWithBookingReference:case R.cg.CardFormatErrorWithoutBookingReference:t=c.bow_flights_format_failed_lbl;break;case R.cg.ThreeDSErrorWithBookingReference:case R.cg.ThreeDSErrorWithoutBookingReference:t=c.bow_flights_code_failed_lbl;break;case R.cg.GenericPaymentFailureWithBookingReference:case R.cg.GenericPaymentFailureWithoutBookingReference:case R.cg.TryAnotherCardWithBookingReference:case R.cg.TryAnotherCardWithoutBookingReference:case R.cg.PaymentFailed:t=null!==(n=null==u?void 0:u.communicationMessage)&&void 0!==n?n:c.bow_flights_pay_failed_lbl}return t?(0,_.jsx)("p",{className:z.bookingStatusDesc,children:t}):null}(i),function(e){var n="";switch(e){case R.cg.BookingFailed:n=c.bow_flights_failed_desc;break;case R.cg.CardFormatErrorWithBookingReference:case R.cg.GenericPaymentFailureWithBookingReference:case R.cg.ThreeDSErrorWithBookingReference:case R.cg.TryAnotherCardWithBookingReference:case R.cg.PaymentFailed:n=c.bow_flights_failed_ext_desc;break;case R.cg.CardFormatErrorWithoutBookingReference:case R.cg.GenericPaymentFailureWithoutBookingReference:case R.cg.ThreeDSErrorWithoutBookingReference:case R.cg.TryAnotherCardWithoutBookingReference:n=c.bow_flights_failed_desc;break;case R.cg.AllowRetryPayment:n=c.payment_retry_message_desc}return n?(0,_.jsx)("p",{className:(0,r.$)(z.bookingStatusDesc,z.bookingStatusDescSec),children:n}):null}(i),(n=i,t=o,[R.cg.Success,R.cg.CardFormatErrorWithBookingReference,R.cg.GenericPaymentFailureWithBookingReference,R.cg.ThreeDSErrorWithBookingReference,R.cg.TryAnotherCardWithBookingReference,R.cg.PaymentFailed].includes(n)?(0,_.jsxs)("div",{className:z.bookingStatusDetails,children:[(0,_.jsx)("div",{className:z.bookingStatusDesc,children:c.lbl_booking_id}),(0,_.jsxs)("div",{className:z.bookingRef,children:[(0,_.jsx)("i",{className:z.wegoLogo}),t]})]}):null),i!==R.cg.Polling&&i!==R.cg.AllowRetryPayment?(0,_.jsx)("div",{className:z.divider}):null,function(e,n){var t="";switch(e){case R.cg.PollingAfterSuccessfulPayment:t=(0,W.sS)(c.bow_flights_confirm_desc,l,n);break;case R.cg.Success:t=(0,W.sS)(c.booking_confirm_desc,l,n)}return t?(0,_.jsx)("p",{className:z.bookingStatusDesc,dangerouslySetInnerHTML:{__html:t}}):null}(i,null!=s?s:""),function(e){var n=!1,t=!1;switch(e){case R.cg.BookingFailed:case R.cg.CardFormatErrorWithoutBookingReference:case R.cg.GeneralError:case R.cg.GenericPaymentFailureWithoutBookingReference:case R.cg.ThreeDSErrorWithoutBookingReference:case R.cg.TryAnotherCardWithoutBookingReference:n=!0;break;case R.cg.CardFormatErrorWithBookingReference:case R.cg.GenericPaymentFailureWithBookingReference:case R.cg.ThreeDSErrorWithBookingReference:case R.cg.TryAnotherCardWithBookingReference:case R.cg.PaymentFailed:n=!0,t=!0}return n?(0,_.jsx)(N.A,{isLiveChatShowing:t,isFlights:!0}):null}(i),function(e){var n,t=(M(M(M(M(M(M(M(M(M(M(n={},R.cg.BookingFailed,c.make_another_search),R.cg.PaymentFailed,c.make_another_search),R.cg.CardFormatErrorWithBookingReference,c.make_another_search),R.cg.CardFormatErrorWithoutBookingReference,c.make_another_search),R.cg.GeneralError,c.make_another_search),R.cg.GenericPaymentFailureWithBookingReference,c.make_another_search),R.cg.GenericPaymentFailureWithoutBookingReference,c.make_another_search),R.cg.ThreeDSErrorWithBookingReference,c.make_another_search),R.cg.ThreeDSErrorWithoutBookingReference,c.make_another_search),R.cg.TryAnotherCardWithBookingReference,c.make_another_search),M(M(n,R.cg.TryAnotherCardWithoutBookingReference,c.make_another_search),R.cg.AllowRetryPayment,c.payment_retry_message_cta))[e];if(!t)return null;var r=e===R.cg.AllowRetryPayment&&d?d:window.close;return(0,_.jsxs)(F.A,{variant:"outline",fullWidth:!0,className:z.bookingStatusButton,onClick:r,children:[(0,_.jsx)("i",{className:z.anotherSearchIcon}),t]})}(i),function(e){return e===R.cg.Success?(0,_.jsxs)(F.A,{className:z.bookingStatusButton,variant:"outline",fullWidth:!0,onClick:window.print,children:[(0,_.jsx)("i",{className:z.printer}),c.print_this_page]}):null}(i)]})})},V="Rzz7sGRnxN6jrYeb01qL";t(72712),t(8872);var U=t(38411),q=t(11822),Q=t(38616),J=t(32723),K=t(66387),X=t(99840);function $(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;c=!1}else for(;!(c=(r=i.call(t)).done)&&(l.push(r.value),l.length!==n);c=!0);}catch(e){s=!0,o=e}
1finally{try{if(!c&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,n)||function(e,n){if(e){if("string"==typeof e)return Z(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Z(e,n):void 0}}(e,n)||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 Z(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var ee=function(e){var n=new Date;return n.setHours(0,0,0,0),(0,U.E)(n.getTime(),new Date(e).getTime())};t(48598);var ne=t(78317),te=t(21396),re=t(57722);function oe(e){return oe="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},oe(e)}function ie(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,r)}return t}function ae(e,n,t){return(n=function(e){var n=function(e){if("object"!=oe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=oe(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==oe(n)?n:n+""}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function le(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var ce=function(e,n,t,r,o,i,a,l,c,s,u){var d,f,g,m,y,b,h;if(!(e&&n&&u&&o))return null;var p=e.flightFareDetails,v=e.totalAddonsFare,_=e.bookingRef,k=e.searchParams;if(null==p||!p.trip)return null;var S,j,w=null!==(d=null==p||null===(f=p.trip)||void 0===f?void 0:f.domestic)&&void 0!==d&&d,C=(null==p||null===(g=p.trip)||void 0===g?void 0:g.legs)||[],P=(null==p?void 0:p.brandedFares)||[],O=(0,L.x5)(P.map(function(e){return e.price}),v).amountUsd,A=null!==(m=(0,L.x5)(P.map(function(e){return e.price})).amount)&&void 0!==m?m:0,x=null!==(y=(0,L.x5)(P.map(function(e){return e.price})).amountUsd)&&void 0!==y?y:0,I=(j=2,function(e){if(Array.isArray(e))return e}(S=C)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;c=!1}else for(;!(c=(r=i.call(t)).done)&&(l.push(r.value),l.length!==n);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(S,j)||function(e,n){if(e){if("string"==typeof e)return le(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?le(e,n):void 0}}(S,j)||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.")}()),B=I[0],E=I[1],R=(0,L.Mo)(B,E),D=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ie(Object(t),!0).forEach(function(n){ae(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ie(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}({hotel_crosssell_checkbox_state:e.isOptInHotelCrossSell?"checked":"unchecked",adults_count:i.adult,cabin_class_name:P.map(function(e){return e.brandName}).join(","),cabin_class:k.cabinClass,children_count:i.child,click_id:o,booking_id:_,booking_status_code:n,booking_status:(0,L.VY)(n),client_type:re.Yg,currency_code:t,domain:window.location.hostname,event:"pageChanged",flight_itinerary:l.split(":")[1],infants_count:i.infant,lowest_price_usd:A,lowest_price:x,legs:R,locale:r,page_name:"Flight Booking Confirmation",page_sub_type:"flights_booking_confirmation",page_type:"flights_booking_confirmation",product:"flights",provider_code:"wego.com",provider_type:"integrated_booking",search_id:l.split(":")[0],session_id:u,site_code:a,trip_category:w?"domestic":"international",trip_type:E?"roundtrip":"oneway",ts_code:null!==(b=(0,ne.Ri)("wego_ts_code"))&&void 0!==b?b:null,url:window.location.href,user_country_code:s,user_id:null!==(h=(0,ne.Ri)("wego_user_id"))&&void 0!==h?h:null,total_price:x,total_price_usd:A,total_price_usd_before_tax:O},!(null==c||!c.email)&&{e_id:(0,te.SHA256)(null==c?void 0:c.email).toString()});return D}
1,se=t(72927),ue=(t(31415),t(97682)),de=t(72859),fe=t(72565),ge=new Set([ue.d.Authorized,ue.d.AuthPendingConfirmation,ue.d.Captured]),me=new Set([de.c.Polling,de.c.PollingAfterSuccessfulPayment]);function ye(e){return ye="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},ye(e)}function be(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,r)}return t}function he(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?be(Object(t),!0).forEach(function(n){pe(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):be(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function pe(e,n,t){return(n=function(e){var n=function(e){if("object"!=ye(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=ye(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ye(n)?n:n+""}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function ve(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;c=!1}else for(;!(c=(r=i.call(t)).done)&&(l.push(r.value),l.length!==n);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,n)||function(e,n){if(e){if("string"==typeof e)return _e(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_e(e,n):void 0}}(e,n)||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 _e(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var ke=function(e){var n,t,h,p,k,S,F,W,T,N,G,z,H,M,Z=e.nearestCityByIP,ne=(0,m.Zp)(),te=(0,C.S)(),re=te.clientId,oe=te.clientSessionId,ie=ve((0,y.ok)(),1)[0],ae=(0,m.zy)().pathname,le=ve((0,x.b)(),2),ue=le[0],ye=le[1],be=(0,E.L)(),pe=(0,g.d4)(v.h2),_e=(0,g.d4)(v.GY),ke=(0,g.d4)(v.MS),Se=(0,g.d4)(v.v9),je=(0,g.d4)(v.YH),we=(0,g.d4)(v.Ke),Ce=(0,g.d4)(v.uJ),Pe=null!==(n=ie.get("orderId"))&&void 0!==n?n:"",Oe=null!==(t=ie.get("bookingRef"))&&void 0!==t?t:"",Ae=null!==(h=ie.get("pyId"))&&void 0!==h?h:"",xe=decodeURIComponent(null!==(p=ie.get("lastName"))&&void 0!==p?p:""),Ie=decodeURIComponent(null!==(k=ie.get("tripId"))&&void 0!==k?k:""),Be=(0,f.useMemo)(function(){return(0,o.mI)(Pe)},[Pe]),Ee=!(0,d.A)(Be)&&Be?Be.flightFareDetails:void 0,Re=!(0,d.A)(Be)&&Be?Be.flightFareRules:[],De=!(0,d.A)(Be)&&Be?Be.selectedInsurancePolicyIds:[],Fe=!(0,d.A)(Be)&&Be?((null==Be?void 0:Be.insurancePolicies)||[]).filter(function(e){return De.includes(e.uuid)}):[],We=!(0,d.A)(Be)&&Be?Be.selectedPaymentOption:void 0,Te=null!==(S=null==Be?void 0:Be.paymentId)&&void 0!==S?S:"",Ne=!!Be&&""===Be.paymentId,Ge=ve((0,f.useState)(),2),Le=Ge[0],ze=Ge[1],He=ve((0,f.useState)(!1),2),Me=He[0],Ye=He[1],Ve=(0,f.useMemo)(function(){return Te||(Ne?"":Ae)},[Te,Ne,Ae]),Ue=(0,l.Q)("https://srv.wego.com",{paymentId:null!=Ve?Ve:"",clientId:"",clientSessionId:"",genzoId:""},{enabled:Boolean(Ve)}),qe=Ue.data,Qe=Ue.isLoading,Je=Ue.isError,Ke=(0,c.X)("https://srv.wego.com",{bookingRef:null!=Oe?Oe:"",clientId:null!=re?re:"",clientSessionId:null!=oe?oe:""},{enabled:!!qe&&!!Oe,refetchInterval:function(e){return!((null==e?void 0:e.responseCode)!==R.cg.Polling||(null==qe?void 0:qe.statusCode)===R.dX.Abandon||(null==qe?void 0:qe.statusCode)===R.dX.Cancelled||!Ve)&&5e3}
1,refetchIntervalInBackground:!1}),Xe=Ke.data,$e=Ke.isError;(0,f.useEffect)(function(){$e&&P.L.addError(new Error("getFlightBookingStatus failed"),{tags:["methods:getFlightBookingStatus","booking_ref:"+Oe,"payment_id:"+Ve]})},[$e,Oe,Ve]);var Ze=(0,f.useMemo)(function(){return Boolean(Oe&&xe)},[Oe,xe]),en=(0,s.f)({baseApiUrl:Ce,lastName:xe||"",bookingRef:Oe||"",enabled:Ze}),nn=en.response,tn=en.passengerCount,rn=en.paymentDetails,on=en.legDetails,an=en.isExchangeBooking,ln=en.isBeforeArrivalDate,cn=en.hasIncludedBaggages,sn=en.hasBaggageDetails,un=en.hasSeatDetails,dn=en.hasMealDetails,fn=en.hasAncillaryFailures,gn=nn.bookingDetails,mn=nn.bookingDetailsStatus,yn=(0,f.useMemo)(function(){var e;return Ve&&Xe&&Xe.responseCode?Xe.responseCode:null===(e=nn.bookingDetails)||void 0===e?void 0:e.responseCode},[Ve,Xe,nn]),bn=(0,f.useMemo)(function(){if(on)return on.flatMap(function(e,n){return he(he({},e),{},{id:n,segments:e.segments.map(function(e,n){var t,r;return he(he({},e),{},{id:n.toString(),airlineCode:"",seatSelectionSupported:!!(null!=e&&e.seatDetails&&(null==e||null===(t=e.seatDetails)||void 0===t?void 0:t.length)>0),paxDetails:(null==e||null===(r=e.seatDetails)||void 0===r?void 0:r.map(function(e){return he(he({},e),{},{currency:e.currencyCode||"",priceUsd:e.priceInUsd||0})}))||[]})})})})},[on]),hn=(0,f.useMemo)(function(){return(null==bn?void 0:bn.some(function(e){return e.segments.some(function(e){var n;return null==e||null===(n=e.paxDetails)||void 0===n?void 0:n.some(function(e){return null==e?void 0:e.seatNumber})})}))||!1},[bn]),pn=(0,f.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;if(!r||!o||0===e.length)return null;var i={product:"flights",url:window.location.href,locale:n,site_code:t,referrer_url:document.referrer,name:"Flight Booking Confirmation",base_type:"flights_booking_confirmation",sub_type:"flights_booking_polling"};return r===R.cg.Polling?(i.name="Flight Booking Confirmation",i.base_type="flights_booking_confirmation",i.sub_type="flights_booking_loading"):r===R.cg.BookingFailed?(i.name="Flight Booking Failure",i.base_type="flights_booking_failure",i.sub_type="flights_booking_failure"):r===R.cg.GeneralError?(i.name="Flight Booking Confirmation",i.base_type="flights_booking_confirmation",i.sub_type="flights_booking_error"):r===R.cg.Success&&(i.name="Flight Booking Confirmation",i.base_type="flights_booking_confirmation",i.sub_type="flights_booking_confirmation"),{id:"",event_id:null!=o?o:"",former_event_id:e.map(function(e){return e.id}).join(","),page:i,created_at:(0,U.zg)(new Date)}}(null==Ee?void 0:Ee.brandedFares,ke,we.countryCode,yn,Oe)},[null==Ee?void 0:Ee.brandedFares,ke,we.countryCode,yn,Oe]),vn=(0,I.A)(pn,be,pe,!0),_n=vn.eventFired,kn=vn.fireGenzoPageView;(function(e,n,t){var r,o,i,a,l,c,s,u,d,m,y,b=(0,g.d4)(v.v9),h=e.currentSite,p=e.locale,_=e.wegoAnalyticsClientId,k=(null==n||null===(r=n.searchParams)||void 0===r?void 0:r.searchAndTrip)||"",S=$(k.split(":")||[],1)[0],j=(0,q.H)(J.xE.GET_PAYMENT_METHODS,{locale:p,site_code:h.countryCode}),w=$((0,X.A)({method:"get",url:j}),1)[0],C=(0,q.H)((0,L.xp)(J.xE.GET_FLIGHT_SEARCH,[S]),{locale:p}),P=$((0,X.A)({method:"get",url:C}),1)[0],O=$((0,X.A)(),3),A=O[0],x=O[1],I=O[2];(0,f.useEffect)(function(){x.error&&console.error(x.error,"Error fetching flight trip details")},[x]),(0,f.useEffect)(function(){if(w&&n&&k){var e=w.filter(function(e){return e.isPopular}).map(function(e){return e.id}),t=(0,q.H)((0,L.xp)(J.xE.GET_FLIGHT_TRIP_DETAILS,[k]),{locale:p,currencyCode:b.code,clientId:_,paymentMethods:e});I({method:"get",url:t})}},[w,n,p,b.code,_,k]);var B=(null!=n?n:{}).flightFareDetails,E=$(null!==(o=null==B||null===(i=B.trip)||void 0===i?void 0:i.legs)&&void 0!==o?o:[],2),D=E[0],F=E[1],W=null!==(a=null==A?void 0:A.trip.fares.reduce(function(e,n){return n.provider&&e.push(n.provider),e},[]))&&void 0!==a?a:[],T={trip:{siteCode:h.countryCode,locale:p,tripId:k,cabinClass:null!==(l=null==P?void 0:P.cabin)&&void 0!==l?l:"",paxCount:{adultsCount:null!==(c=null==P?void 0:P.adultsCount)&&void 0!==c?c:0,childrenCount:null!==(s=null==P?void 0:P.childrenCount)&&void 0!==s?s:0,infantsCount:null!==(u=null==P?void 0:P.infantsCount)&&void 0!==u?u:0},searchLegs:null!==(d=null==P?void 0:P.legs)&&void 0!==d?d:[],departureLeg:D,returnLeg:F},fare:{providers:W,selectedFarePrices:null!==(m=null==B||null===(y=B.brandedFares)||void 0===y?void 0:y.map(function(e){return e.price}))&&void 0!==m?m:[]},booking:{bookingStatus:null!=t?t:R.cg.Polling,hotelCrossSellCheckboxState:null!=n&&n.isOptInHotelCrossSell?"checked":"unchecked"},webEngageTrackEvent:K.trackWebEngageEvent,numberOfNights:U.E,leadTime:ee};(0,Q.I)(T)})({currentSite:we,locale:ke,wegoAnalyticsClientId:re},Be,yn),(0,f.useEffect)(function(){if(Te&&(!Ae||Ae!==Te)){var e=new URLSearchParams(ie);e.set("pyId",Te),ne({pathname:ae,search:"?".concat(e.toString())})}},[Te,Ae,ne,ae,ie]),(0,f.useEffect)(function(){yn!==R.cg.Polling&&be&&!_n&&pn&&kn(be,pn.event_id,pn.page,pn.former_event_id)},[be,_n,pn,yn]);var Sn=(0,f.useMemo)(function(){var e;return tn.totalCount>0?ce(Be,yn,Se.code,ke,be,{adult:tn.adultCount,child:tn.childCount,infant:tn.infantCount},we.countryCode,Ie,pe,null!==(e=null==Z?void 0:Z.countryCode)&&void 0!==e?e:"",oe):null},[Be,yn,Se.code,ke,be,tn.totalCount,tn.adultCount,tn.childCount,tn.infantCount,we.countryCode,Ie,pe,null==Z?void 0:Z.countryCode,oe]);(0,B.A)(Sn),(0,f.useEffect)(function(){return ye(!Me),function(){ye(!0)}},[Me,ue]);var jn=(0,u.n)({isLoadingPaymentStatus:Qe&&Boolean(Ve),isErrorPaymentStatus:Je,paymentStatusResponse:qe,flightMetaSearchBookingStatus:Xe,historyDetailResponse:nn,isInitialHistoryApiCallNeeded:Ze});!function(e){var n=e.bookingStatus,t=e.bookingRef,r=e.paymentId,o=e.orderId,i=e.paymentStatusCode,a=(0,f.useRef)(!1);(0,f.useEffect)(function(){if(!a.current&&!me.has(n)){a.current=!0;var e=void 0!==i&&ge.has(i),l=n===de.c.BookingFailed&&e;P.L.addAction("flight_booking_confirmation_status",{booking_ref:t,booking_status:n,payment_id:r,order_id:o,payment_status_code:i,is_booking_failed_with_authorized_payment:l}),l&&P.L.addError(new fe.b("Booking failed after successful payment authorization"),{description:"Payment was authorized/captured but booking status is BookingFailed",errorSource:"FlightBookingConfirmationV2",booking_ref:t,booking_status:n,payment_id:r,order_id:o,payment_status_code:i})}},[n,t,r,o,i])}({bookingStatus:jn,bookingRef:Oe,paymentId:Ve,orderId:Pe,paymentStatusCode:null==qe?void 0:qe.statusCode});
1var wn=null!==(F=null==Be?void 0:Be.isOptInHotelCrossSell)&&void 0!==F&&F;return(0,se.I)({legDetails:null!==(W=null==Be||null===(T=Be.flightFareDetails)||void 0===T?void 0:T.trip.legs)&&void 0!==W?W:[],adultPassengerCount:tn.adultCount}),(0,_.jsxs)("div",{"data-version":"v2",className:(0,r.$)("BfzgbLAYnVqXzmI8qxB0",_e&&"lnCWJK1uqJy6DaT3l6jw"),children:[(0,_.jsx)(a.A,{defaultApiHeaders:{clientId:null!=re?re:"",clientSessionId:null!=oe?oe:""},bookingRef:null!=Oe?Oe:"",additionalParams:(0,O.mH)(),className:"QVgbX4ZE6dDOaaiqv2b9"}),(0,_.jsxs)("div",{className:"rSuImID4xes1LIKTW0tJ",children:[(0,_.jsxs)("div",{className:"ryhOEccQsh35SHgu93eO",children:[(0,_.jsx)("div",{className:V,children:(0,_.jsx)("div",{className:(0,r.$)("ohldI_tGhNSI_H6aqf9S","qzuolDIdfbHrcHVOHMJg"),children:(0,_.jsx)(Y,{bookingRef:null!=Oe?Oe:"",bookingStatus:jn,bookingPaymentStatus:qe,isRtl:_e,locale:ke,translations:je,userContactEmail:null==gn||null===(N=gn.contact)||void 0===N?void 0:N.email,onRetryPayment:function(){if(null!=Be&&Be.bookingPagePath){(0,o.VY)(Pe,he(he({},Be),{},{paymentId:"",paymentTokenResponse:void 0}));var e=new URLSearchParams(Be.bookingPageSearch);e.delete("pyId"),e.delete("bookingRef"),e.delete("lastName"),e.delete("tripId"),e.set("retry","true"),e.set("retry-source","confirmation"),ne({pathname:Be.bookingPagePath,search:"?".concat(e.toString())})}}})})}),gn&&(0,_.jsx)(i.O,{bookingDetails:gn,legDetails:on,passengerCount:tn,isError:mn.isError||!Ve,hasAncillaryFailures:fn,hasBaggageDetails:sn,hasIncludedBaggages:cn,hasMealDetails:dn,hasSeatDetails:un,isBeforeArrivalDate:ln,isOptInForHotelCrossSell:wn,AdsSection:(0,_.jsx)(D.A,{topleaderboard:!0}),withBaggageAndCancellation:Boolean(Be),onClickBaggageAndCancellation:function(){ze("baggage"),Ye(!0)},FlightItineraryFooter:Be?(0,_.jsxs)("button",{className:"Y5KpPYGquxekmEDvHuTV",onClick:function(){ze("baggage"),Ye(!0)},children:[(0,_.jsx)(A.A,{width:22,height:22,className:"XFlH0w7Gl9yzkvg3mETN"}),(0,_.jsx)("span",{children:je.baggage_cancel_policy})]}):null,InsuranceSection:Fe.length>0?(0,_.jsx)("div",{className:V,children:(0,_.jsx)(j,{insurancePolicies:Fe,passengersCount:tn.totalCount,clientId:re,clientSessionId:oe,pageViewId:null!=be?be:""})}):null})]}),(0,_.jsx)("div",{className:"eJEuiu8LJZPkI0PD2yzm",children:(0,_.jsx)(i.b,{bookingDetails:gn,paymentDetails:rn,isExchangeBooking:an,tripsDetails:bn,isSeatAvailable:hn,AdsSection:(0,_.jsx)(D.A,{topleaderboard:!1})})})]}),(0,_.jsx)(w.A,{title:"baggage"===Le?je.baggage_cancel_policy:je.flight_itinerary,isOpen:Me,onClose:function(){Ye(!Me),ye(!0)},size:"itinerary"===Le?"large":void 0,children:"baggage"===Le&&Ee?(0,_.jsx)(b.A,{chargeCurrencyCode:null==We?void 0:We.defaultChargedCurrencyCode,flightFares:Ee,flightFareRules:Re,isLoading:!Ee||(0,d.A)(je),showFareRules:!1,isSooW:!!Be&&Be.flightFareDetails.brandedFares.length>1,legDetails:null!==(G=null==Be||null===(z=Be.flightFareDetails)||void 0===z?void 0:z.trip.legs)&&void 0!==G?G:[],selectedBrandedFares:null!==(H=null==Be||null===(M=Be.flightFareDetails)||void 0===M?void 0:M.brandedFares)&&void 0!==H?H:[]}):null})]})}}}]);

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.