PageSourceSearch

https://www.wego.co.in/roxana/fare-badge-demo.313f980d.bundle.js

js wego.co.in collected 2026-09-24 13:10:27 UTC 5,501 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkroxana=self.webpackChunkroxana||[]).push([[699],{58354(e,r,t){function n(e){return n="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},n(e)}function o(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=u(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==t.return||t.return()}finally{if(c)throw i}}}}function i(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 a(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?i(Object(t),!0).forEach(function(r){c(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function c(e,r,t){return(r=function(e){var r=function(e){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.call(e,"string");if("object"!=n(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(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){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}}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}t.r(r),t.d(r,{applyFareBadgeDemo:()=>p}),t(52675),t(89463),t(2259),t(45700),t(16280),t(76918),t(28706),t(2008),t(51629),t(23418),t(64346),t(23792),t(62062),t(44114),t(34782),t(89572),t(23288),t(62010),t(2892),t(67945),t(84185),t(5506),t(53921),t(83851),t(81278),t(79432),t(26099),t(16034),t(27495),t(90906),t(38781),t(31415),t(47764),t(98992),t(54520),t(3949),t(81454),t(23500),t(62953);var f=["airlineDirect","promo","offer","sponsored","memberPrice"],s=[].concat(f,["goDiscount"]),m=function(e){return{amount:50,code:e,currencyCode:"USD",description:"Fare badge demo",exclusive:!1,priority:1,shortMessage:e?"Save with code":"Special offer"}};function b(e){return Object.fromEntries(Object.entries(e).map(function(e){var r,t,n=(t=2,function(e){if(Array.isArray(e))return e}(r=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,c=[],u=!0,l=!1;try{if(i=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;u=!1}else for(;!(u=(n=i.call(t)).done)&&(c.push(n.value),c.length!==r);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(r,t)||u(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.")}()),o=n[0],i=n[1];return"number"==typeof i&&"paymentFeeAmountUsd"!==o?[o,Math.round(.9*i)]:[o,i]}))}function p(e,r){var t;if(!r||null===(t=e.trip)||void 0===t||null===(t=t.fares)||void 0===t||!t.length)return e;var n="member"===r?s:f,i=function(e){for(var r=new Set,t=0,n=Object.values(null!==(i=e.trip.sections)&&void 0!==i?i:{});t<n.length;t++){var i,a,c=o(n[t]);try{for(c.s();!(a=c.n()).done;){var u=a.value;
1"SPONSORED"===u.type&&u.fares.forEach(function(e){var t=e.fareId;return r.add(t)})}}catch(e){c.e(e)}finally{c.f()}}return r}(e),c=0,u=e.trip.fares.map(function(e){var r="sponsored"===n[c%n.length]&&i.has(e.id),t=n[(c+(r?1:0))%n.length];return r||(c+=1),function(e,r){var t=a(a({},e),{},{promos:[],sponsoredListing:!1,memberPriceEligible:!1,memberPrice:void 0,memberDiscountPercentage:void 0,showMemberDiscountPercentage:!1,fareOptions:e.fareOptions.map(function(e){return a(a({},e),{},{memberPrice:void 0,memberDiscountPercentage:void 0})})}),n=a(a({},e.provider),{},{wegoFare:!0});switch(r){case"airlineDirect":return a(a({},t),{},{provider:a(a({},e.provider),{},{type:"airline",wegoFare:!1})});case"promo":return a(a({},t),{},{promos:[m("WEGO50")]});case"offer":return a(a({},t),{},{promos:[m("")]});case"sponsored":return a(a({},t),{},{sponsoredListing:!0});case"memberPrice":return a(a({},t),{},{provider:n,memberPriceEligible:!0});case"goDiscount":return a(a({},t),{},{provider:n,memberPriceEligible:!0,memberPrice:b(e.price),memberDiscountPercentage:10,showMemberDiscountPercentage:!0,fareOptions:e.fareOptions.map(function(e){return a(a({},e),{},{memberPrice:b(e.price),memberDiscountPercentage:10})})})}}(e,t)});return a(a({},e),{},{goBannerEnabled:!0,goMemberContext:"member"===r?{isMember:!0,tierTitle:"Silver",nextTier:{title:"Gold",achieved:2,required:5}}:{isMember:!1},trip:a(a({},e.trip),{},{fares:u})})}}}]);

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.