1"use strict";(self.webpackChunkroxana=self.webpackChunkroxana||[]).push([[7935],{52e3(t,r,e){e.d(r,{DV:()=>g,FD:()=>A,IH:()=>S,Im:()=>w,MH:()=>D,Nk:()=>j,Sp:()=>M,Uz:()=>P,fO:()=>N,lz:()=>O,nv:()=>b,oQ:()=>m,r8:()=>y,tX:()=>s,xb:()=>T}),e(52675),e(89463),e(2259),e(45700),e(16280),e(76918),e(28706),e(2008),e(78350),e(51629),e(23418),e(64346),e(23792),e(62062),e(44114),e(34782),e(30237),e(59089),e(89572),e(23288),e(62010),e(36033),e(2892),e(25428),e(40150),e(67945),e(84185),e(5506),e(83851),e(81278),e(79432),e(26099),e(27495),e(90906),e(38781),e(31415),e(47764),e(98992),e(54520),e(30670),e(3949),e(81454),e(23500),e(62953);var n=e(24678);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),e.push.apply(e,n)}return e}function u(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?i(Object(e),!0).forEach(function(r){a(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):i(Object(e)).forEac
1h(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))})}return t}function a(t,r,e){return(r=function(t){var r=function(t){if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var e=r.call(t,"string");if("object"!=o(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==o(r)?r:r+""}(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function l(t,r){if(t){if("string"==typeof t)return c(t,r);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?c(t,r):void 0}}function c(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);e<r;e++)n[e]=t[e];return n}var f=/percent/i,y=function(t){var r;if(!f.test(null!==(r=t.valueType)&&void 0!==r?r:""))return null;var e="number"==typeof t.value?t.value:Number(t.value);return Number.isFinite(e)?e:null},v=y,p=function(t){return t?Array.isArray(t)?t:Object.entries(t).flatMap(function(t){var r,e,n=(e=2,function(t){if(Array.isArray(t))return t}(r=t)||function(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var n,o,i,u,a=[],l=!0,c=!1;try{if(i=(e=e.call(t)).next,0===r){if(Object(e)!==e)return;l=!1}else for(;!(l=(n=i.call(e)).done)&&(a.push(n.value),a.length!==r);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=e.return&&(u=e.return(),Object(u)!==u))return}finally{if(c)throw o}}return a}}(r,e)||l(r,e)||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.")}()),o=n[0],i=n[1];return(null!=i?i:[]).map(function(t){var r;return u(u({},t),{},{productType:null!==(r=t.productType)&&void 0!==r?r:o})})}):[]},d=function(t){var r,e=t.map(v).filter(function(t){return null!==t});return e.length>0?Math.max.apply(Math,function(t){if(Array.isArray(t))return c(t)}(r=e)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(r)||l(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):null},s=function(t){return"FLIGHT"===t.productType&&"MAX_DISCOUNT_PERCENT"===t.key},b=function(t){return t?"number"==typeof t.tierMaxDiscount&&Number.isFinite(t.tierMaxDiscount)?t.tierMaxDiscount:d(p(t.benefits).filter(function(t){return"HOTEL"===t.productType})):null},m=function(t,r){return d(p(null==t?void 0:t.benefits).filter(function(t){return t.productType===r}))},h=function(t){var r;return"".concat(null!==(r=t.productType)&&void 0!==r?r:"ALL",":").concat(t.key)},g=function(t){return!1===t.available},O=function(t,r){var e=p(t),n=p(r);if(0===n.length)return e;var o=new Map(n.map(function(t){return[h(t),t]}));return e.map(function(t){var r=o.get(h(t));return void 0===(null==r?void 0:r.available)?t:u(u({},t),{},{available:r.available,nextAvailableAt:r.nextAvailableAt})})},T=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();if(!t)return null;var e=new Date(t).getTime();return Number.isNaN(e)?null:Math.max(0,Math.ceil((e-r)/864e5))},w=function(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"dayMonth";if(!t)return"";try{return new Intl.DateTimeFormat(r,u(u({},"dayMonth"===e?{day:"numeric",month:"long"}:{day:"2-digit",month:"short",year:"numeric"}),{},{timeZone:"UTC"})).format(new Date(t))}catch(t){return""}},j=30,S=function(t){return"https://zen.wego.com/cdn-cgi/image/format=auto,quality=90,height=240/destinations/cities/".concat(encodeURIComponent(t),".jpg")},D=function(t){var r,e,n,o=null!==(r=null==t?void 0:t.legs)&&void 0!==r?r:[];return 0===o.length?null:("ROUND_TRIP"===(null==t?void 0:t.tripType)?null===(e=o[0])||void 0===e||null===(e=e.to)||void 0===e?void 0:e.cityCode:null===(n=o[o.length-1])||void 0===n||null===(n=n.to)||void 0===n?void 0:n.cityCode)||null},A=function(t){var r,e,n,o,i,u=null!==(r=null===(e=t.route)||void 0===e?void 0:e.departureDate)&&void 0!==r?r:t.serviceDate;if(!u)return[];if("ROUND_TRIP"!==(null===(n=t.route)||void 0===n?void 0:n.tripType))return[u];var a=null!==(o=null===(i=t.route)||void 0===i?void 0:i.returnDate)&&void 0!==o?o:t.serviceDate;return a&&a!==u?[u,a]:[u]},I=new Set(["FLIGHT","FLIGHT_META"]),M=function(t){return I.has(t.productType)},P=function(t,r){var e=(0,n.Cj)(t),o=e?"/".concat(e):"";return"".concat(o).concat("/preferences/profile/go-rewards").concat(r)},N=function(t,r){var e=(0,n.Cj)(t),o=e?"/".concat(e):"";return"".concat(o).concat("/preferences").concat(r)}},63592(t,r,e){e.d(r,{r:()=>l});var n=e(39176),o=e(71468),i=e(130),u=e(19649),a=e(24375),l=function(){var t=(0,o.d4)(a.rX),r=(0,o.d4)(a.MS),e=(0,u.Nc)().isActive;return(0,n.I)({queryKey:["loyalty-tiers",r],queryFn:function(){return(0,i.qW)(t,r)},enabled:e,staleTime:18e5})}}}]);
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.