PageSourceSearch

https://www.wego.co.id/roxana/FlightBookingConfirmationV2.fa6e726b.bundle.js

js wego.co.id collected 2026-09-25 00:43:34 UTC 51,220 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkroxana=self.webpackChunkroxana||[]).push([[5997],{50450(e,r,t){t.d(r,{A:()=>s}),t(52675),t(89463),t(2259),t(16280),t(76918),t(23418),t(64346),t(23792),t(44114),t(34782),t(23288),t(62010),t(26099),t(27495),t(90906),t(38781),t(47764),t(62953);var n=t(96540),o=t(74848);const i=function(e){var r=e.sprite,t=e.spriteSrc,i=e.frames,a=e.fps,l=void 0===a?24:a,s=e.width,c=void 0===s?240:s,u=e.height,f=void 0===u?240:u,d=e.loop,m=void 0!==d&&d,g=(0,n.useRef)(null),h=(0,n.useRef)(null),y=(0,n.useRef)(0),p=(0,n.useRef)();return(0,n.useEffect)(function(){var e,n=g.current;if(n){var o=n.getContext("2d");if(o){var a=Math.max(1,Math.floor(window.devicePixelRatio||1));n.width=c*a,n.height=f*a,n.style.width="".concat(c,"px"),n.style.height="".concat(f,"px"),null===(e=o.resetTransform)||void 0===e||e.call(o),o.scale(a,a);var s=null;return r?(s=r,h.current=s,u()):t&&((s=new Image).src=t,s.onload=function(){h.current=s,u()}),function(){p.current&&cancelAnimationFrame(p.current)}}}function u(){y.current=0;var e=0,r=1e3/l,t=function(n){if(o&&h.current){if(n-e>=r){e=n;var a=i[y.current];if(o.clearRect(0,0,c,f),o.drawImage(h.current,a.frame.x,a.frame.y,a.frame.w,a.frame.h,0,0,c,f),y.current=y.current+1,y.current>=i.length){if(!m)return;y.current=0}}p.current=requestAnimationFrame(t)}};p.current=requestAnimationFrame(t)}},[r,t,i,l,c,f,m]),(0,o.jsx)("canvas",{ref:g})},a=JSON.parse('[{"filename":"Booking Confirmation -00.png","frame":{"x":1,"y":1,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -01.png","frame":{"x":503,"y":1,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -02.png","frame":{"x":1005,"y":1,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -03.png","frame":{"x":1507,"y":1,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -04.png","frame":{"x":2009,"y":1,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -05.png","frame":{"x":2511,"y":1,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -06.png","frame":{"x":3013,"y":1,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -07.png","frame":{"x":1,"y":503,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -08.png","frame":{"x":503,"y":503,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -09.png","frame":{"x":1005,"y":503,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -10.png","frame":{"x":1507,"y":503,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -11.png","frame":{"x":2009,"y":503,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -12.png","frame":{"x":2511,"y":503,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -13.png","frame":{"x":3013,"y":503,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -14.png","frame":{"x":1,"y":1005,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -15.png","frame":{"x":503,"y":1005,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -16.png","frame":{"x":1005,"y":1005,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}}
1,{"filename":"Booking Confirmation -17.png","frame":{"x":1507,"y":1005,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -18.png","frame":{"x":2009,"y":1005,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -19.png","frame":{"x":2511,"y":1005,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -20.png","frame":{"x":3013,"y":1005,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -21.png","frame":{"x":1,"y":1507,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -22.png","frame":{"x":503,"y":1507,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -23.png","frame":{"x":1005,"y":1507,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -24.png","frame":{"x":1507,"y":1507,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -25.png","frame":{"x":2009,"y":1507,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -26.png","frame":{"x":2511,"y":1507,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -27.png","frame":{"x":3013,"y":1507,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -28.png","frame":{"x":1,"y":2009,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -29.png","frame":{"x":503,"y":2009,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -30.png","frame":{"x":1005,"y":2009,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -31.png","frame":{"x":1507,"y":2009,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -32.png","frame":{"x":2009,"y":2009,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -33.png","frame":{"x":2511,"y":2009,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -34.png","frame":{"x":3013,"y":2009,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -35.png","frame":{"x":1,"y":2511,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -36.png","frame":{"x":503,"y":2511,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -37.png","frame":{"x":1005,"y":2511,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -38.png","frame":{"x":1507,"y":2511,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -39.png","frame":{"x":2009,"y":2511,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -40.png","frame":{"x":2511,"y":2511,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -41.png","frame":{"x":3013,"y":2511,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -42.png","frame":{"x":1,"y":3013,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -43.png","frame":{"x":503,"y":3013,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -44.png","frame":{"x":1005,"y":3013,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -45.png","frame":{"x":1507,"y":3013,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -46.png","frame":{"x":2009,"y":3013,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -47.png","frame":{"x":2511,"y":3013,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -48.png","frame":{"x":3013,"y":3013,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -49.png","frame":{"x":3515,"y":1,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -50.png","frame":{"x":3515,"y":503,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -51.png","frame":{"x":3515,"y":1005,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -52.png","frame":{"x":3515,"y":1507,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -53.png","frame":{"x":3515,"y":2009,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -54.png","frame":{"x":3515,"y":2511,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -55.png","frame":{"x":3515,"y":3013,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -56.png","frame":{"x":1,"y":3515,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -57.png","frame":{"x":503,"y":3515,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -58.png","frame":{"x":1005,"y":3515,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -59.png","frame":{"x":1507,"y":3515,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -60.png","frame":{"x":2009,"y":3515,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -61.png","frame":{"x":2511,"y":3515,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}},{"filename":"Booking Confirmation -62.png","frame":{"x":3013,"y":3515,"w":500,"h":500},"rotated":false,"trimmed":false,"spriteSourceSize":{"x":0,"y":0,"w":500,"h":500},"sourceSize":{"w":500,"h":500}}]');function l(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}
1const s=function(){var e,r,t=(e=(0,n.useState)(),r=2,function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;s=!1}else for(;!(s=(n=i.call(t)).done)&&(l.push(n.value),l.length!==r);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,r)||function(e,r){if(e){if("string"==typeof e)return l(e,r);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)?l(e,r):void 0}}(e,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.")}()),s=t[0],c=t[1];return(0,n.useEffect)(function(){var e=document.createElement("img");e.onload=function(){c(e)},e.onerror=function(e){console.error("Failed to load Weegio sprite:",e)},e.src="https://zen.wego.com/cdn-cgi/image/format=auto,quality=100/cms/images/weegio-confirmation-spritesheet.png"},[]),(0,o.jsx)("div",{className:"aZXWUV_BXLIGok8eqq6m",children:s?(0,o.jsx)(i,{frames:a,sprite:s,loop:!1}):(0,o.jsx)("div",{className:"jFq_fdoZbmHNYYlWn0vT"})})}},11126(e,r,t){t.d(r,{A:()=>d}),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 n=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 s=["children","isOpen","onClose","title","size","id"];function c(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function u(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?c(Object(t),!0).forEach(function(r){f(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function f(e,r,t){return(r=function(e){var r=function(e){if("object"!=l(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.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(r)?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}const d=function(e){var r=e.children,t=e.isOpen,l=e.onClose,c=e.title,f=e.size,d=e.id,m=function(e,r){if(null==e)return{};var t,n,o=function(e,r){if(null==e)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==r.indexOf(n))continue;t[n]=e[n]}return t}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)t=i[n],-1===r.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}(e,s);return(0,a.jsxs)("div",u(u({id:d,className:(0,n.$)(i.container,t&&i.open),onClick:function(e){e.stopPropagation(),e.preventDefault()}},m),{},{children:[(0,a.jsx)("div",{className:i.overlay,onClick:l}),(0,a.jsxs)("div",{className:(0,n.$)(i.wrapper,f&&i[f]),children:[(0,a.jsxs)("div",{className:i.title,children:[(0,a.jsx)("span",{children:c}),(0,a.jsx)(o.A,{className:i.icon,onClick:l,"data-testid":"CloseIcon"})]}),(0,a.jsx)("div",{className:(0,n.$)(i.content),children:r})]})]}))}},46262(e,r,t){t.d(r,{A:()=>g}),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 n=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 s(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function c(e,r,t){return(r=function(e){var r=function(e){if("object"!=l(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.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(r)?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function u(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}var f=window.location.hostname,d=(0,n.b_)(f)||(0,n.Lo)(f)?a.oc:a.sE,m=(0,n.b_)(f)||(0,n.Lo)(f)?a.WO:a.iA;
1const g=function(e,r){var t,n,l=(t=(0,i.useState)(!1),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;s=!1}else for(;!(s=(n=i.call(t)).done)&&(l.push(n.value),l.length!==r);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(t,n)||function(e,r){if(e){if("string"==typeof e)return u(e,r);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,r):void 0}}(t,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.")}()),f=l[0],g=l[1],h=function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?s(Object(t),!0).forEach(function(r){c(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}({trackOnce:!0},r);return(0,i.useEffect)(function(){if(e)if(h.trackOnce){if(f)return;(0,o.k)(a.zs,d,m,e),g(!0)}else(0,o.k)(a.zs,d,m,e)},[e,f,h.trackOnce]),f}},58638(e,r,t){t.d(r,{FlightBookingConfirmationV2:()=>ve}),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 n=t(10619),o=t(32790),i=t(80533),a=t(32275),l=t(15256),s=t(96375),c=t(96777),u=t(21620),f=t(66401),d=t(96540),m=t(71468),g=t(78106),h=t(28651),y=t(41074),p=t(93265),S=t(73598),b=t(24375);t(50113),t(72577);var w=t(74848),v=function(e){var r,t,o=e.insurance,i=e.onClickLearnMore,a=e.className,l=void 0===a?"":a,s=!!o.policies.find(function(e){return!!e.termsWording}),c=null===(r=o.policies.find(function(e){return!!e.termsWording}))||void 0===r?void 0:r.termsWording;return(0,w.jsx)("div",{className:(0,n.$)("Si6eDtOxkkzsA_8sJPvr",l),children:(0,w.jsxs)("div",{className:"KUukES4z2_2yAsoQufpS",children:[(0,w.jsx)("div",{className:"FvxiYKOJ9lxoiOaDxBOT",children:"IMAGE"===o.icon.type?(0,w.jsx)("img",{src:o.icon.url,alt:o.title}):(0,w.jsx)("div",{className:"LUtcBWHQBBlgSY_uYdU7",dangerouslySetInnerHTML:{__html:null!==(t=o.icon.content)&&void 0!==t?t:""}})}),(0,w.jsx)("div",{className:"fPe0Uv0qtshgbhUGXqEC",children:(0,w.jsx)("div",{className:"VS2QfVAwYWMIWiU97JMe",children:o.title})}),s&&c&&(0,w.jsx)("button",{type:"button",className:"DuCTCL1zS1P68YFxNgN2",onClick:i,children:c})]})})};v.displayName="InsuranceItem";function k(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}var x=function(e){var r,t,n=e.insurancePolicies,o=e.passengersCount,i=e.clientId,a=e.clientSessionId,l=e.pageViewId,s=void 0===l?"":l,c=(0,m.d4)(b.YH),u=(r=(0,d.useState)(null),t=2,function(e){if(Array.isArray(e))return e}(r)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;s=!1}else for(;!(s=(n=i.call(t)).done)&&(l.push(n.value),l.length!==r);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(r,t)||function(e,r){if(e){if("string"==typeof e)return k(e,r);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)?k(e,r):void 0}}
1(r,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.")}()),f=u[0],g=u[1];if(0===n.length)return null;var h=function(){g(null)};return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)("div",{className:"g1uv77OWD0xOjyMPye3E",children:[(0,w.jsx)("div",{className:"z231xXEnsvcrfBQlm2Fk",children:c.travel_protection}),n.map(function(e){return(0,w.jsx)(v,{className:"CegK6ItJBNnIWFZrRyag",insurance:e,onClickLearnMore:function(){return function(e){g(e)}(e)}},e.uuid)})]}),f&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(p.A,{isOpen:null!==f&&"CG"===f.supplierProvider,onClose:h,insurancePolicy:f,clientId:i,clientSessionId:a,pageViewId:s}),(0,w.jsx)(S.A,{isOpen:null!==f&&"HEPSTAR"===f.supplierProvider,onClose:h,insurancePolicy:f,passengerCount:o})]})]})},_=t(11126),C=t(49922),B=t(74034),j=t(9930),z=t(60609),P=t(33829),O=t(58649),A=t(46262),I=t(93379),E=t(62584),R=t(45484),F=t(25511),D=t(44016),W=t(50450),T=t(25576),N=t(25e3),G=t(57932);const L={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 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,r,t){return(r=function(e){var r=function(e){if("object"!=M(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.call(e,"string");if("object"!=M(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==M(r)?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}const Y=function(e){var r,t,o=e.bookingRef,i=e.bookingStatus,a=e.isRtl,l=e.locale,s=e.translations,c=e.userContactEmail,u=e.bookingPaymentStatus,f=e.onRetryPayment,d=(0,N.tk)().isShowingWeegioFlightConfirmation;return(0,w.jsx)("div",{className:(0,n.$)(L.container,a&&L.rtl,L[(0,G.od)(i)]),children:(0,w.jsxs)("div",{className:L.bookingStatus,children:[(0,w.jsx)("i",{className:(0,n.$)(L.bookingStatusIcon,L[(0,G.YM)(i)])}),i===E.cg.Success&&d?(0,w.jsx)(W.A,{}):null,function(e){var r="";switch(e){case E.cg.BookingFailed:r=s.booking_failed;break;case E.cg.GeneralError:r=s.bow_flights_failed_payment_4xx_lbl;break;case E.cg.Polling:r=s.processing_payment;break;case E.cg.PollingAfterSuccessfulPayment:r=s.processing_your_booking;break;case E.cg.Success:r=s.booking_in_process;break;case E.cg.CardFormatErrorWithBookingReference:case E.cg.CardFormatErrorWithoutBookingReference:r=s.wrong_card_format;break;case E.cg.AllowRetryPayment:case E.cg.GenericPaymentFailureWithBookingReference:case E.cg.GenericPaymentFailureWithoutBookingReference:case E.cg.PaymentFailed:r=s.payment_failed;break;case E.cg.ThreeDSErrorWithBookingReference:case E.cg.ThreeDSErrorWithoutBookingReference:r=s.incorrect_security_code;break;case E.cg.TryAnotherCardWithBookingReference:case E.cg.TryAnotherCardWithoutBookingReference:r=s.try_another_card;break;default:r=s.processing_your_booking}return r?(0,w.jsx)("div",{className:L.bookingStatusTitle,children:r}):null}(i),function(e){var r,t="";switch(e){case E.cg.BookingFailed:t=s.bow_flights_book_failed_lbl;break;case E.cg.GeneralError:t=s.bow_flights_failed_payment_4xx_desc;break;case E.cg.Polling:t=s.payment_do_not_close_message;break;case E.cg.PollingAfterSuccessfulPayment:t=s.bow_flights_loading_desc;break;case E.cg.Success:t=s.thanks_for_booking_wego;break;case E.cg.CardFormatErrorWithBookingReference:case E.cg.CardFormatErrorWithoutBookingReference:t=s.bow_flights_format_failed_lbl;break;case E.cg.ThreeDSErrorWithBookingReference:case E.cg.ThreeDSErrorWithoutBookingReference:t=s.bow_flights_code_failed_lbl;break;case E.cg.GenericPaymentFailureWithBookingReference:case E.cg.GenericPaymentFailureWithoutBookingReference:case E.cg.TryAnotherCardWithBookingReference:case E.cg.TryAnotherCardWithoutBookingReference:case E.cg.PaymentFailed:t=null!==(r=null==u?void 0:u.communicationMessage)&&void 0!==r?r:s.bow_flights_pay_failed_lbl}return t?(0,w.jsx)("p",{className:L.bookingStatusDesc,children:t}):null}(i),function(e){var r="";switch(e){case E.cg.BookingFailed:r=s.bow_flights_failed_desc;break;case E.cg.CardFormatErrorWithBookingReference:case E.cg.GenericPaymentFailureWithBookingReference:case E.cg.ThreeDSErrorWithBookingReference:case E.cg.TryAnotherCardWithBookingReference:case E.cg.PaymentFailed:r=s.bow_flights_failed_ext_desc;break;case E.cg.CardFormatErrorWithoutBookingReference:case E.cg.GenericPaymentFailureWithoutBookingReference:case E.cg.ThreeDSErrorWithoutBookingReference:case E.cg.TryAnotherCardWithoutBookingReference:r=s.bow_flights_failed_desc;break;case E.cg.AllowRetryPayment:r=s.payment_retry_message_desc}return r?(0,w.jsx)("p",{className:(0,n.$)(L.bookingStatusDesc,L.bookingStatusDescSec),children:r}):null}
1(i),(r=i,t=o,[E.cg.Success,E.cg.CardFormatErrorWithBookingReference,E.cg.GenericPaymentFailureWithBookingReference,E.cg.ThreeDSErrorWithBookingReference,E.cg.TryAnotherCardWithBookingReference,E.cg.PaymentFailed].includes(r)?(0,w.jsxs)("div",{className:L.bookingStatusDetails,children:[(0,w.jsx)("div",{className:L.bookingStatusDesc,children:s.lbl_booking_id}),(0,w.jsxs)("div",{className:L.bookingRef,children:[(0,w.jsx)("i",{className:L.wegoLogo}),t]})]}):null),i!==E.cg.Polling&&i!==E.cg.AllowRetryPayment?(0,w.jsx)("div",{className:L.divider}):null,function(e,r){var t="";switch(e){case E.cg.PollingAfterSuccessfulPayment:t=(0,D.sS)(s.bow_flights_confirm_desc,l,r);break;case E.cg.Success:t=(0,D.sS)(s.booking_confirm_desc,l,r)}return t?(0,w.jsx)("p",{className:L.bookingStatusDesc,dangerouslySetInnerHTML:{__html:t}}):null}(i,null!=c?c:""),function(e){var r=!1,t=!1;switch(e){case E.cg.BookingFailed:case E.cg.CardFormatErrorWithoutBookingReference:case E.cg.GeneralError:case E.cg.GenericPaymentFailureWithoutBookingReference:case E.cg.ThreeDSErrorWithoutBookingReference:case E.cg.TryAnotherCardWithoutBookingReference:r=!0;break;case E.cg.CardFormatErrorWithBookingReference:case E.cg.GenericPaymentFailureWithBookingReference:case E.cg.ThreeDSErrorWithBookingReference:case E.cg.TryAnotherCardWithBookingReference:case E.cg.PaymentFailed:r=!0,t=!0}return r?(0,w.jsx)(T.A,{isLiveChatShowing:t,isFlights:!0}):null}(i),function(e){var r,t=(H(H(H(H(H(H(H(H(H(H(r={},E.cg.BookingFailed,s.make_another_search),E.cg.PaymentFailed,s.make_another_search),E.cg.CardFormatErrorWithBookingReference,s.make_another_search),E.cg.CardFormatErrorWithoutBookingReference,s.make_another_search),E.cg.GeneralError,s.make_another_search),E.cg.GenericPaymentFailureWithBookingReference,s.make_another_search),E.cg.GenericPaymentFailureWithoutBookingReference,s.make_another_search),E.cg.ThreeDSErrorWithBookingReference,s.make_another_search),E.cg.ThreeDSErrorWithoutBookingReference,s.make_another_search),E.cg.TryAnotherCardWithBookingReference,s.make_another_search),H(H(r,E.cg.TryAnotherCardWithoutBookingReference,s.make_another_search),E.cg.AllowRetryPayment,s.payment_retry_message_cta))[e];if(!t)return null;var n=e===E.cg.AllowRetryPayment&&f?f:window.close;return(0,w.jsxs)(F.A,{variant:"outline",fullWidth:!0,className:L.bookingStatusButton,onClick:n,children:[(0,w.jsx)("i",{className:L.anotherSearchIcon}),t]})}(i),function(e){return e===E.cg.Success?(0,w.jsxs)(F.A,{className:L.bookingStatusButton,variant:"outline",fullWidth:!0,onClick:window.print,children:[(0,w.jsx)("i",{className:L.printer}),s.print_this_page]}):null}(i)]})})},q="Rzz7sGRnxN6jrYeb01qL";t(72712),t(8872);var V=t(38411),U=t(11822),J=t(38616),Q=t(32723),K=t(66387),X=t(99840);function Z(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;s=!1}else for(;!(s=(n=i.call(t)).done)&&(l.push(n.value),l.length!==r);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,r)||function(e,r){if(e){if("string"==typeof e)return $(e,r);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,r):void 0}}(e,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.")}()}function $(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}var ee=function(e){var r=new Date;return r.setHours(0,0,0,0),(0,V.E)(r.getTime(),new Date(e).getTime())};t(48598);var re=t(78317),te=t(21396),ne=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,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function ae(e,r,t){return(r=function(e){var r=function(e){if("object"!=oe(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.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(r)?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function le(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}var se=function(e,r,t,n,o,i,a,l,s,c,u){var f,d,m,g,h,y,p;if(!(e&&r&&u&&o))return null;var S=e.flightFareDetails,b=e.totalAddonsFare,w=e.bookingRef,v=e.searchParams;if(null==S||!S.trip)return null;var k,x,_=null!==(f=null==S||null===(d=S.trip)||void 0===d?void 0:d.domestic)&&void 0!==f&&f,C=(null==S||null===(m=S.trip)||void 0===m?void 0:m.legs)||[],B=(null==S?void 0:S.brandedFares)||[],j=(0,G.x5)(B.map(function(e){return e.price}),b).amountUsd,z=null!==(g=(0,G.x5)(B.map(function(e){return e.price})).amount)&&void 0!==g?g:0,P=null!==(h=(0,G.x5)(B.map(function(e){return e.price})).amountUsd)&&void 0!==h?h:0,O=(x=2,function(e){if(Array.isArray(e))return e}(k=C)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;s=!1}else for(;!(s=(n=i.call(t)).done)&&(l.push(n.value),l.length!==r);s=!0);}catch(e){c=!0,o=e}
1finally{try{if(!s&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(k,x)||function(e,r){if(e){if("string"==typeof e)return le(e,r);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,r):void 0}}(k,x)||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.")}()),A=O[0],I=O[1],E=(0,G.Mo)(A,I),R=function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ie(Object(t),!0).forEach(function(r){ae(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ie(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}({hotel_crosssell_checkbox_state:e.isOptInHotelCrossSell?"checked":"unchecked",adults_count:i.adult,cabin_class_name:B.map(function(e){return e.brandName}).join(","),cabin_class:v.cabinClass,children_count:i.child,click_id:o,booking_id:w,booking_status_code:r,booking_status:(0,G.VY)(r),client_type:ne.Yg,currency_code:t,domain:window.location.hostname,event:"pageChanged",flight_itinerary:l.split(":")[1],infants_count:i.infant,lowest_price_usd:z,lowest_price:P,legs:E,locale:n,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:_?"domestic":"international",trip_type:I?"roundtrip":"oneway",ts_code:null!==(y=(0,re.Ri)("wego_ts_code"))&&void 0!==y?y:null,url:window.location.href,user_country_code:c,user_id:null!==(p=(0,re.Ri)("wego_user_id"))&&void 0!==p?p:null,total_price:P,total_price_usd:z,total_price_usd_before_tax:j},!(null==s||!s.email)&&{e_id:(0,te.SHA256)(null==s?void 0:s.email).toString()});return R},ce=t(72927),ue=(t(31415),t(97682)),fe=t(72859),de=t(72565),me=new Set([ue.d.Authorized,ue.d.AuthPendingConfirmation,ue.d.Captured]),ge=new Set([fe.c.Polling,fe.c.PollingAfterSuccessfulPayment]);function he(e){return he="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},he(e)}function ye(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function pe(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ye(Object(t),!0).forEach(function(r){Se(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ye(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Se(e,r,t){return(r=function(e){var r=function(e){if("object"!=he(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.call(e,"string");if("object"!=he(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==he(r)?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function be(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;s=!1}else for(;!(s=(n=i.call(t)).done)&&(l.push(n.value),l.length!==r);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,r)||function(e,r){if(e){if("string"==typeof e)return we(e,r);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)?we(e,r):void 0}}
1(e,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.")}()}function we(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}var ve=function(e){var r,t,p,S,v,k,F,D,W,T,N,L,M,H,$=e.nearestCityByIP,re=(0,g.Zp)(),te=(0,C.S)(),ne=te.clientId,oe=te.clientSessionId,ie=be((0,h.ok)(),1)[0],ae=(0,g.zy)().pathname,le=be((0,P.b)(),2),ue=le[0],he=le[1],ye=(0,I.L)(),Se=(0,m.d4)(b.h2),we=(0,m.d4)(b.GY),ve=(0,m.d4)(b.MS),ke=(0,m.d4)(b.v9),xe=(0,m.d4)(b.YH),_e=(0,m.d4)(b.Ke),Ce=(0,m.d4)(b.uJ),Be=null!==(r=ie.get("orderId"))&&void 0!==r?r:"",je=null!==(t=ie.get("bookingRef"))&&void 0!==t?t:"",ze=null!==(p=ie.get("pyId"))&&void 0!==p?p:"",Pe=decodeURIComponent(null!==(S=ie.get("lastName"))&&void 0!==S?S:""),Oe=decodeURIComponent(null!==(v=ie.get("tripId"))&&void 0!==v?v:""),Ae=(0,d.useMemo)(function(){return(0,o.mI)(Be)},[Be]),Ie=!(0,f.A)(Ae)&&Ae?Ae.flightFareDetails:void 0,Ee=!(0,f.A)(Ae)&&Ae?Ae.flightFareRules:[],Re=!(0,f.A)(Ae)&&Ae?Ae.selectedInsurancePolicyIds:[],Fe=!(0,f.A)(Ae)&&Ae?((null==Ae?void 0:Ae.insurancePolicies)||[]).filter(function(e){return Re.includes(e.uuid)}):[],De=!(0,f.A)(Ae)&&Ae?Ae.selectedPaymentOption:void 0,We=null!==(k=null==Ae?void 0:Ae.paymentId)&&void 0!==k?k:"",Te=!!Ae&&""===Ae.paymentId,Ne=be((0,d.useState)(),2),Ge=Ne[0],Le=Ne[1],Me=be((0,d.useState)(!1),2),He=Me[0],Ye=Me[1],qe=(0,d.useMemo)(function(){return We||(Te?"":ze)},[We,Te,ze]),Ve=(0,l.Q)("https://srv.wego.com",{paymentId:null!=qe?qe:"",clientId:"",clientSessionId:"",genzoId:""},{enabled:Boolean(qe)}),Ue=Ve.data,Je=Ve.isLoading,Qe=Ve.isError,Ke=(0,s.X)("https://srv.wego.com",{bookingRef:null!=je?je:"",clientId:null!=ne?ne:"",clientSessionId:null!=oe?oe:""},{enabled:!!Ue&&!!je,refetchInterval:function(e){return!((null==e?void 0:e.responseCode)!==E.cg.Polling||(null==Ue?void 0:Ue.statusCode)===E.dX.Abandon||(null==Ue?void 0:Ue.statusCode)===E.dX.Cancelled||!qe)&&5e3},refetchIntervalInBackground:!1}),Xe=Ke.data,Ze=Ke.isError;(0,d.useEffect)(function(){Ze&&B.L.addError(new Error("getFlightBookingStatus failed"),{tags:["methods:getFlightBookingStatus","booking_ref:"+je,"payment_id:"+qe]})},[Ze,je,qe]);var $e=(0,d.useMemo)(function(){return Boolean(je&&Pe)},[je,Pe]),er=(0,c.f)({baseApiUrl:Ce,lastName:Pe||"",bookingRef:je||"",enabled:$e}),rr=er.response,tr=er.passengerCount,nr=er.paymentDetails,or=er.legDetails,ir=er.isExchangeBooking,ar=er.isBeforeArrivalDate,lr=er.hasIncludedBaggages,sr=er.hasBaggageDetails,cr=er.hasSeatDetails,ur=er.hasMealDetails,fr=er.hasAncillaryFailures,dr=rr.bookingDetails,mr=rr.bookingDetailsStatus,gr=(0,d.useMemo)(function(){var e;return qe&&Xe&&Xe.responseCode?Xe.responseCode:null===(e=rr.bookingDetails)||void 0===e?void 0:e.responseCode},[qe,Xe,rr]),hr=(0,d.useMemo)(function(){if(or)return or.flatMap(function(e,r){return pe(pe({},e),{},{id:r,segments:e.segments.map(function(e,r){var t,n;return pe(pe({},e),{},{id:r.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===(n=e.seatDetails)||void 0===n?void 0:n.map(function(e){return pe(pe({},e),{},{currency:e.currencyCode||"",priceUsd:e.priceInUsd||0})}))||[]})})})})},[or]),yr=(0,d.useMemo)(function(){return(null==hr?void 0:hr.some(function(e){return e.segments.some(function(e){var r;return null==e||null===(r=e.paxDetails)||void 0===r?void 0:r.some(function(e){return null==e?void 0:e.seatNumber})})}))||!1},[hr]),pr=(0,d.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;if(!n||!o||0===e.length)return null;var i={product:"flights",url:window.location.href,locale:r,site_code:t,referrer_url:document.referrer,name:"Flight Booking Confirmation",base_type:"flights_booking_confirmation",sub_type:"flights_booking_polling"};return n===E.cg.Polling?(i.name="Flight Booking Confirmation",i.base_type="flights_booking_confirmation",i.sub_type="flights_booking_loading"):n===E.cg.BookingFailed?(i.name="Flight Booking Failure",i.base_type="flights_booking_failure",i.sub_type="flights_booking_failure"):n===E.cg.GeneralError?(i.name="Flight Booking Confirmation",i.base_type="flights_booking_confirmation",i.sub_type="flights_booking_error"):n===E.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,V.zg)(new Date)}}(null==Ie?void 0:Ie.brandedFares,ve,_e.countryCode,gr,je)},[null==Ie?void 0:Ie.brandedFares,ve,_e.countryCode,gr,je]),Sr=(0,O.A)(pr,ye,Se,!0),br=Sr.eventFired,wr=Sr.fireGenzoPageView;(function(e,r,t){var n,o,i,a,l,s,c,u,f,g,h,y=(0,m.d4)(b.v9),p=e.currentSite,S=e.locale,w=e.wegoAnalyticsClientId,v=(null==r||null===(n=r.searchParams)||void 0===n?void 0:n.searchAndTrip)||"",k=Z(v.split(":")||[],1)[0],x=(0,U.H)(Q.xE.GET_PAYMENT_METHODS,{locale:S,site_code:p.countryCode}),_=Z((0,X.A)({method:"get",url:x}),1)[0],C=(0,U.H)((0,G.xp)(Q.xE.GET_FLIGHT_SEARCH,[k]),{locale:S}),B=Z((0,X.A)({method:"get",url:C}),1)[0],j=Z((0,X.A)(),3),z=j[0],P=j[1],O=j[2];(0,d.useEffect)(function(){P.error&&console.error(P.error,"Error fetching flight trip details")},[P]),(0,d.useEffect)(function(){if(_&&r&&v){var e=_.filter(function(e){return e.isPopular}).map(function(e){return e.id}),t=(0,U.H)((0,G.xp)(Q.xE.GET_FLIGHT_TRIP_DETAILS,[v]),{locale:S,currencyCode:y.code,clientId:w,paymentMethods:e});O({method:"get",url:t})}},[_,r,S,y.code,w,v]);var A=(null!=r?r:{}).flightFareDetails,I=Z(null!==(o=null==A||null===(i=A.trip)||void 0===i?void 0:i.legs)&&void 0!==o?o:[],2),R=I[0],F=I[1],D=null!==(a=null==z?void 0:z.trip.fares.reduce(function(e,r){return r.provider&&e.push(r.provider),e},[]))&&void 0!==a?a:[],W={trip:{siteCode:p.countryCode,locale:S,tripI
1d:v,cabinClass:null!==(l=null==B?void 0:B.cabin)&&void 0!==l?l:"",paxCount:{adultsCount:null!==(s=null==B?void 0:B.adultsCount)&&void 0!==s?s:0,childrenCount:null!==(c=null==B?void 0:B.childrenCount)&&void 0!==c?c:0,infantsCount:null!==(u=null==B?void 0:B.infantsCount)&&void 0!==u?u:0},searchLegs:null!==(f=null==B?void 0:B.legs)&&void 0!==f?f:[],departureLeg:R,returnLeg:F},fare:{providers:D,selectedFarePrices:null!==(g=null==A||null===(h=A.brandedFares)||void 0===h?void 0:h.map(function(e){return e.price}))&&void 0!==g?g:[]},booking:{bookingStatus:null!=t?t:E.cg.Polling,hotelCrossSellCheckboxState:null!=r&&r.isOptInHotelCrossSell?"checked":"unchecked"},webEngageTrackEvent:K.trackWebEngageEvent,numberOfNights:V.E,leadTime:ee};(0,J.I)(W)})({currentSite:_e,locale:ve,wegoAnalyticsClientId:ne},Ae,gr),(0,d.useEffect)(function(){if(We&&(!ze||ze!==We)){var e=new URLSearchParams(ie);e.set("pyId",We),re({pathname:ae,search:"?".concat(e.toString())})}},[We,ze,re,ae,ie]),(0,d.useEffect)(function(){gr!==E.cg.Polling&&ye&&!br&&pr&&wr(ye,pr.event_id,pr.page,pr.former_event_id)},[ye,br,pr,gr]);var vr=(0,d.useMemo)(function(){var e;return tr.totalCount>0?se(Ae,gr,ke.code,ve,ye,{adult:tr.adultCount,child:tr.childCount,infant:tr.infantCount},_e.countryCode,Oe,Se,null!==(e=null==$?void 0:$.countryCode)&&void 0!==e?e:"",oe):null},[Ae,gr,ke.code,ve,ye,tr.totalCount,tr.adultCount,tr.childCount,tr.infantCount,_e.countryCode,Oe,Se,null==$?void 0:$.countryCode,oe]);(0,A.A)(vr),(0,d.useEffect)(function(){return he(!He),function(){he(!0)}},[He,ue]);var kr=(0,u.n)({isLoadingPaymentStatus:Je&&Boolean(qe),isErrorPaymentStatus:Qe,paymentStatusResponse:Ue,flightMetaSearchBookingStatus:Xe,historyDetailResponse:rr,isInitialHistoryApiCallNeeded:$e});!function(e){var r=e.bookingStatus,t=e.bookingRef,n=e.paymentId,o=e.orderId,i=e.paymentStatusCode,a=(0,d.useRef)(!1);(0,d.useEffect)(function(){if(!a.current&&!ge.has(r)){a.current=!0;var e=void 0!==i&&me.has(i),l=r===fe.c.BookingFailed&&e;B.L.addAction("flight_booking_confirmation_status",{booking_ref:t,booking_status:r,payment_id:n,order_id:o,payment_status_code:i,is_booking_failed_with_authorized_payment:l}),l&&B.L.addError(new de.b("Booking failed after successful payment authorization"),{description:"Payment was authorized/captured but booking status is BookingFailed",errorSource:"FlightBookingConfirmationV2",booking_ref:t,booking_status:r,payment_id:n,order_id:o,payment_status_code:i})}},[r,t,n,o,i])}({bookingStatus:kr,bookingRef:je,paymentId:qe,orderId:Be,paymentStatusCode:null==Ue?void 0:Ue.statusCode});var xr=null!==(F=null==Ae?void 0:Ae.isOptInHotelCrossSell)&&void 0!==F&&F;return(0,ce.I)({legDetails:null!==(D=null==Ae||null===(W=Ae.flightFareDetails)||void 0===W?void 0:W.trip.legs)&&void 0!==D?D:[],adultPassengerCount:tr.adultCount}),(0,w.jsxs)("div",{"data-version":"v2",className:(0,n.$)("BfzgbLAYnVqXzmI8qxB0",we&&"lnCWJK1uqJy6DaT3l6jw"),children:[(0,w.jsx)(a.A,{defaultApiHeaders:{clientId:null!=ne?ne:"",clientSessionId:null!=oe?oe:""},bookingRef:null!=je?je:"",additionalParams:(0,j.mH)(),className:"QVgbX4ZE6dDOaaiqv2b9"}),(0,w.jsxs)("div",{className:"rSuImID4xes1LIKTW0tJ",children:[(0,w.jsxs)("div",{className:"ryhOEccQsh35SHgu93eO",children:[(0,w.jsx)("div",{className:q,children:(0,w.jsx)("div",{className:(0,n.$)("ohldI_tGhNSI_H6aqf9S","qzuolDIdfbHrcHVOHMJg"),children:(0,w.jsx)(Y,{bookingRef:null!=je?je:"",bookingStatus:kr,bookingPaymentStatus:Ue,isRtl:we,locale:ve,translations:xe,userContactEmail:null==dr||null===(T=dr.contact)||void 0===T?void 0:T.email,onRetryPayment:function(){if(null!=Ae&&Ae.bookingPagePath){(0,o.VY)(Be,pe(pe({},Ae),{},{paymentId:"",paymentTokenResponse:void 0}));var e=new URLSearchParams(Ae.bookingPageSearch);e.delete("pyId"),e.delete("bookingRef"),e.delete("lastName"),e.delete("tripId"),e.set("retry","true"),e.set("retry-source","confirmation"),re({pathname:Ae.bookingPagePath,search:"?".concat(e.toString())})}}})})}),dr&&(0,w.jsx)(i.O,{bookingDetails:dr,legDetails:or,passengerCount:tr,isError:mr.isError||!qe,hasAncillaryFailures:fr,hasBaggageDetails:sr,hasIncludedBaggages:lr,hasMealDetails:ur,hasSeatDetails:cr,isBeforeArrivalDate:ar,isOptInForHotelCrossSell:xr,AdsSection:(0,w.jsx)(R.A,{topleaderboard:!0}),withBaggageAndCancellation:Boolean(Ae),onClickBaggageAndCancellation:function(){Le("baggage"),Ye(!0)},FlightItineraryFooter:Ae?(0,w.jsxs)("button",{className:"Y5KpPYGquxekmEDvHuTV",onClick:function(){Le("baggage"),Ye(!0)},children:[(0,w.jsx)(z.A,{width:22,height:22,className:"XFlH0w7Gl9yzkvg3mETN"}),(0,w.jsx)("span",{children:xe.baggage_cancel_policy})]}):null,InsuranceSection:Fe.length>0?(0,w.jsx)("div",{className:q,children:(0,w.jsx)(x,{insurancePolicies:Fe,passengersCount:tr.totalCount,clientId:ne,clientSessionId:oe,pageViewId:null!=ye?ye:""})}):null})]}),(0,w.jsx)("div",{className:"eJEuiu8LJZPkI0PD2yzm",children:(0,w.jsx)(i.b,{bookingDetails:dr,paymentDetails:nr,isExchangeBooking:ir,tripsDetail
1s:hr,isSeatAvailable:yr,AdsSection:(0,w.jsx)(R.A,{topleaderboard:!1})})})]}),(0,w.jsx)(_.A,{title:"baggage"===Ge?xe.baggage_cancel_policy:xe.flight_itinerary,isOpen:He,onClose:function(){Ye(!He),he(!0)},size:"itinerary"===Ge?"large":void 0,children:"baggage"===Ge&&Ie?(0,w.jsx)(y.A,{chargeCurrencyCode:null==De?void 0:De.defaultChargedCurrencyCode,flightFares:Ie,flightFareRules:Ee,isLoading:!Ie||(0,f.A)(xe),showFareRules:!1,isSooW:!!Ae&&Ae.flightFareDetails.brandedFares.length>1,legDetails:null!==(N=null==Ae||null===(L=Ae.flightFareDetails)||void 0===L?void 0:L.trip.legs)&&void 0!==N?N:[],selectedBrandedFares:null!==(M=null==Ae||null===(H=Ae.flightFareDetails)||void 0===H?void 0:H.brandedFares)&&void 0!==M?M:[]}):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.