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,GAAG,GAAA+B,EAAA,GACL1B,EAAMsB,EAAOtB,IAAI,GAChB,CAAC,GACL,CAAC,CACP,C","sources":["webpack://@sunwebgroup/design-system/./shared/js/data/filters/config.js","webpack://@sunwebgroup/design-system/./shared/js/helpers/dates.js","webpack://@sunwebgroup/design-system/./shared/js/helpers/object.js","webpack://@sunwebgroup/design-system/./shared/js/helpers/price-formatter.js","webpack://@sunwebgroup/design-system/./shared/js/helpers/white-listed-params.js"],"sourcesContent":["export const TRANSPORT_TYPE_VALUES = { FLIGHT: 'Flight', BUS: 'Bus', SELF_DRIVE: 'SelfDrive' }\n\nexport const FILTER_TYPES = {\n DESTINATION: 'Destination',\n PARTICIPANTS: 'Participants',\n PARTICIPANTS_DISTRIBUTION: 'ParticipantsDistribution',\n TRANSPORT_TYPE: 'TransportType',\n DURATION: 'Duration',\n DURATIONS: 'Durations',\n DURATION_GROUP: 'DurationGroup',\n DEPARTURE_AIRPORT: 'DepartureAirport',\n ARRIVAL_AIRPORT: 'ArrivalAirport',\n MEALPLAN: 'Mealplan',\n MONTH: 'Month',\n DEPARTURE_DATE: 'DepartureDate',\n ALLOCATION: 'Allocation',\n ROOM_TYPE: 'RoomType',\n STARS: 'Stars',\n COUNTRY: 'Country',\n CITY: 'City',\n SUBREGION: 'Subregion',\n REGION: 'Region',\n LAST_MINUTE: 'Lastminute',\n PRICE_PER_PERSON: 'PricePerPerson',\n ROOM_COUNT: 'RoomCount',\n SKI_AREA_MINIMUM_ALTITUDE_METERS: 'SkiAreaMinimumAltitudeMeters',\n BATHROOM_COUNT: 'BathroomCount',\n FACILITIES: 'Facilities',\n INTERNET_FACILITIES: 'InternetFacilities',\n CHILDREN_FACILITIES: 'ChildrenFacilities',\n IS_WIFI_FREE: 'IsWifiFree',\n RECOMMENDED: 'Recommended',\n CAMPAIGNS: 'Campaigns',\n THEMES: 'Themes',\n ACCOMMODATION_TYPE: 'AccommodationType',\n CUSTOMERS_RATING: 'CustomersRatings',\n METERS_TO_CENTER: 'MetersToCenter',\n METERS_TO_SLOPE: 'MetersToSlope',\n METERS_TO_SKILIFT: 'MetersToSkiLift',\n METERS_TO_BEACH: 'MetersToBeach',\n DISCOUNT: 'Discount',\n BEDS_IN_LIVING_ROOM: 'BedsInLivingroom',\n SKI_PASS_INCLUDED: 'SkiPassIncluded',\n SKI_AREA_SLOPE_KMS: 'SkiAreaSlopeKms',\n HAS_AVAILABILITY: 'HasAvailability',\n FLIGHT_ONLY: 'FlightOnly',\n COLLECTION: 'Collection',\n AIRLINE: 'Airline'\n}\nexport const DESTINATION_FILTER_TYPES = [\n FILTER_TYPES.COUNTRY,\n FILTER_TYPES.CITY,\n FILTER_TYPES.SUBREGION,\n FILTER_TYPES.REGION,\n FILTER_TYPES.DESTINATION\n]\n","import * as namespace from '../document/namespace'\nconst helper = namespace.register('sundio.helpers.dates')\n\n/**\n * A date expressed as \"YYYY-MM-DD\" string\n * @global\n * @typedef {String} DateString\n */\n\n/**\n * Check if date is invalid\n *\n * @param {Date} date\n *\n * @returns {Boolean}\n */\nexport function isInvalidDate (date) {\n return (date instanceof Date && isNaN(date))\n}\nhelper.isInvalidDate = isInvalidDate\n\n/**\n * Check if date is a valid date object\n *\n * @param {Date} date\n *\n * @returns {Boolean}\n */\nexport function isValidDateObject (date) {\n // See: https://stackoverflow.com/a/44198641/748941 on how to detect if an object is a (valid) date instance.\n return (date && Object.prototype.toString.call(date) === '[object Date]' && !isNaN(date))\n}\nhelper.isValidDateObject = isValidDateObject\n\n/**\n * Check if date is invalid\n *\n * @param {DateString} datestring\n *\n * @returns {Boolean}\n */\nexport function isValidDateString (datestring) {\n if (typeof datestring === 'string') {\n const date = dateStringToDate(datestring)\n const month = Number(datestring.split('-')[1]) - 1\n return (date.getMonth() === month)\n } else if (datestring instanceof Date) {\n return !isInvalidDate(datestring)\n } else {\n return false\n }\n}\nhelper.isValidDateString = isValidDateString\n\n/**\n * Convert a DateString|Date to Date if needed\n *\n * @param {Date|DateString} date\n *\n * @returns {Date}\n */\nexport function dateStringToDate (date) {\n return isValidDateObject(date)\n ? date\n : (typeof date === 'string') ? new Date(fixDateString(date)) : new Date()\n}\nhelper.dateStringToDate = dateStringToDate\n\n/**\n * Fixes date for browsers like IE or Firefox\n *\n * @param {DateString} datestring\n *\n * @returns {DateString}\n */\nexport function fixDateString (datestring) {\n let [year, month, day] = datestring.split('-')\n if (!year || !month || !day) { return '' }\n\n year = (year.length === 2) ? '19' + year : year\n month = (month.length === 1) ? '0' + month : month\n day = (day.length === 1) ? '0' + day : day\n\n // We need to replace unicode characters to avoid the Invalid Date problem thrown by\n // IE 11 when performing a new Date()\n return [year, month, day].join('-').replace(/[^ -\\x7F]/g, '')\n}\nhelper.fixDateString = fixDateString\n\n/**\n * Convert a DateString|Date array to Dates array if needed\n *\n * @param {Date[]|DateString[]} dates\n *\n * @returns {Date[]}\n */\nexport function dateStringsToDates (dates) {\n return dates.map(date => dateStringToDate(date))\n}\nhelper.dateStringsToDates = dateStringsToDates\n\n/**\n * Returns the minimum (earliest) date of an array.\n * If the array is empty, no minimum is returned (it is undefined).\n *\n * @param {Date[]|DateString[]} dates=[] - Set of dates from which the minimum will be obtained. Empty array by default.\n *\n * @returns {Date|undefined} The minimum, or earliest, date of the array.\n */\nexport function getMin (dates = []) {\n if (!dates.length) return undefined\n dates = dateStringsToDates(dates)\n return new Date(Math.min(...dates))\n}\nhelper.getMin = getMin\n\n/**\n * Returns the maximum (latest) date of an array.\n * If the array is empty, no maximum is returned (it is undefined).\n *\n * @param {Date[]|DateString[]} dates=[] - Set of dates from which the maximum will be obtained. Empty array by default.\n *\n * @returns {Date|undefined} The maximum, or latest, date of the array.\n */\nexport function getMax (dates = []) {\n if (!dates.length) return undefined\n dates = dateStringsToDates(dates)\n return new Date(Math.max(...dates))\n}\nhelper.getMax = getMax\n\n/**\n * Returns the edges (first and last) dates of an array.\n * If the array is empty, empty array is returned.\n *\n * @param {Date[]|DateString[]} dates=[] - Set of dates from which the edges will be obtained. Empty array by default.\n *\n * @returns {Date[]} The edges dates of the array.\n */\nexport function getEdgeDates (dates = []) {\n if (!dates.length) return []\n dates = dateStringsToDates(dates)\n return [getMin(dates), getMax(dates)]\n}\nhelper.getEdgeDates = getEdgeDates\n\n/**\n * Returns the string representation of the date provided in the format and locale indicated.\n * The date parameter is mandatory and it needs to be provided.\n * Not all formats are supported. Currently, the formats supported are:\n * - yyyy-mm-dd (for example 2008-10-28)\n * - dd mmmm yyyy (for example 28 October 2008 - with the month in the language of the locale)\n * - d mmmm yyyy (for example 8 October 2008 - with the date not being necessarily two digits and the month in the language of the locale)\n * - mmmm yyyy (for example 2008 - with the month in the language of the locale)\n * If no format parameter is provided, the ISO date: yyyy-mm-dd is used.\n *\n * @param {Date} date - The date which string representation is desired\n * @param {string} format - The format in which the string representation is desired.\n * If not provided, the default format used is the ISO Date: yyyy-mm-dd (e.g. 2008-10-28)\n * @param {string} locale - A string indicating the locale in which to obtain the dates representation.\n * If not provided, the locale en-GB will be used.\n *\n * @returns {String|undefined} The formatted string\n */\nexport function formatDate (date, format = 'yyyy-mm-dd', locale = 'en-GB') {\n if (date) {\n switch (format) {\n case 'dd mmmm yyyy':\n return `${date.toLocaleString(locale, { day: '2-digit' })} ${date.toLocaleString(locale, { month: 'long' })} ${\n date.toLocaleString(locale, { year: 'numeric' })}`\n case 'd mmmm yyyy':\n return `${date.toLocaleString(locale, { day: 'numeric' })} ${date.toLocaleString(locale, { month: 'long' })} ${\n date.toLocaleString(locale, { year: 'numeric' })}`\n\n case 'mmmm yyyy':\n return date.toLocaleString(locale, { month: 'long', year: 'numeric' })\n\n default:\n return `${date.toLocaleString(locale, { year: 'numeric' })}-${date.toLocaleString(locale, { month: '2-digit' })\n }-${date.toLocaleString(locale, { day: '2-digit' })}`\n }\n }\n return undefined\n}\nhelper.formatDate = formatDate\n\n/**\n * Creates a Data object from a string in the provided format.\n * Not all formats are supported. Currently, the formats supported are:\n * - yyyy-mm-dd (for example 2008-10-28)\n *\n * @param {string} dateText - The string representation of the date object to create\n * @param {string} format - The format in which the string represents the date to create.\n * If not provided, the default format is 'yyyy-mm-dd'\n *\n * @returns {Date|undefined} The date object that corresponds to the provided dateText representation.\n * If format is not supported or dateText does not follows provided format, it is undefined.\n */\nexport function createDate (dateText, format = 'yyyy-mm-dd') {\n if (dateText) {\n const fixDateText = fixDateString(dateText)\n dateText = fixDateText.split('T')[0]\n switch (format) {\n case 'yyyy-mm-dd': {\n const parts = dateText.split('-')\n if (parts.length === 3) {\n const yearPart = parts[0]\n const monthPart = parts[1]\n const datePart = parts[2]\n if (yearPart.length === 4 && monthPart.length === 2 && datePart.length === 2) {\n return new Date(parseInt(yearPart), parseInt(monthPart) - 1, parseInt(datePart))\n }\n }\n }\n }\n }\n return undefined\n}\nhelper.createDate = createDate\n\n/**\n * Returns the difference between two dates.\n *\n * @param {Date|DateString} initialDate\n * @param {Date|DateString} finalDate\n * @param {string} differenceUnits - The unit in which the difference will be returned. By default is days\n * Not all difference units are supported. Currently supported are:\n * - milliseconds\n * - seconds\n * - minutes\n * - hours\n * - days\n * - weeks\n *\n * @returns {number|undefined} The difference between firstDate and secondDate in the units specified.\n */\nexport function getDatesDifference (initialDate, finalDate, differenceUnits = 'days') {\n if (initialDate && finalDate) {\n initialDate = dateStringToDate(initialDate)\n finalDate = dateStringToDate(finalDate)\n const millisecondsDifference = finalDate.getTime() - initialDate.getTime()\n switch (differenceUnits) {\n case 'milliseconds':\n return millisecondsDifference\n case 'seconds':\n return millisecondsDifference / 1000\n case 'minutes':\n return millisecondsDifference / (1000 * 60)\n case 'hours':\n return millisecondsDifference / (1000 * 60 * 60)\n case 'days':\n return millisecondsDifference / (1000 * 60 * 60 * 24)\n case 'weeks':\n return millisecondsDifference / (1000 * 60 * 60 * 24 * 7)\n }\n }\n return undefined\n}\nhelper.getDatesDifference = getDatesDifference\n\n/**\n * Returns first and last date in current month for a given date.\n *\n * @param {Date|DateString} date\n *\n * @returns {Date[]} A dates array with first and last dates in current month.\n */\nexport function getMonthEdges (date) {\n date = dateStringToDate(date)\n return [\n new Date(date.getFullYear(), date.getMonth(), 1),\n new Date(date.getFullYear(), date.getMonth() + 1, 0)\n ]\n}\nhelper.getMonthEdges = getMonthEdges\n\n/**\n * Returns all dates in current month for a given date.\n *\n * @param {Date|DateString} date\n *\n * @returns {Date[]} A dates array with all available dates in current month.\n */\nexport function getWholeMonthDays (date) {\n const monthEdges = getMonthEdges(date)\n return getConsecutivePeriod(monthEdges[0], monthEdges[1])\n}\nhelper.getWholeMonthDays = getWholeMonthDays\n\n/**\n * Returns a consecutive dates array in between given two dates.\n *\n * @param {Date|DateString} initialDate\n * @param {Date|DateString} finalDate\n *\n * @returns {Date[]} A dates array filled with missing days gaps.\n */\nexport function getConsecutivePeriod (initialDate, finalDate) {\n initialDate = dateStringToDate(initialDate)\n finalDate = dateStringToDate(finalDate)\n initialDate.setHours(0, 0, 0)\n finalDate.setHours(0, 0, 0)\n const days = []\n const newDay = new Date(initialDate)\n while (newDay.getTime() <= finalDate.getTime()) {\n days.push(new Date(newDay))\n newDay.setDate(newDay.getDate() + 1)\n newDay.setHours(0, 0, 0) // fix changes on daylight saving time over dates\n }\n return days\n}\nhelper.getConsecutivePeriod = getConsecutivePeriod\n\n/**\n * Returns a date, adding or subtracting N days to a given date\n *\n * @param {Date|DateString} date\n * @param {Number} daysToAdd - The number of days to add/subtract\n *\n * @returns {Date} Resulting date\n */\nexport function addDays (date, daysToAdd) {\n date = dateStringToDate(date)\n const newDate = new Date(date.getTime())\n newDate.setDate(date.getDate() + daysToAdd)\n return newDate\n}\nhelper.addDays = addDays\n\n/**\n * Returns a date, adding or subtracting N days to a given date\n *\n * @param {Date|DateString} date\n * @param {Object} addToDate - Whatever needs to be added (years, months, days, hours, minutes or seconds)\n *\n * @returns {Date} Resulting date\n */\nexport function add (date, addToDate = {}) {\n date = dateStringToDate(date)\n const newDate = new Date(date.getTime())\n if (addToDate.years) { newDate.setFullYear(date.getFullYear() + Number(addToDate.years)) }\n if (addToDate.months) { newDate.setMonth(date.getMonth() + Number(addToDate.months)) }\n if (addToDate.days) { newDate.setDate(date.getDate() + Number(addToDate.days)) }\n if (addToDate.hours) { newDate.setHours(date.getHours() + Number(addToDate.hours)) }\n if (addToDate.minutes) { newDate.setMinutes(date.getMinutes() + Number(addToDate.minutes)) }\n if (addToDate.seconds) { newDate.setSeconds(date.getSeconds() + Number(addToDate.seconds)) }\n\n return newDate\n}\nhelper.add = add\n\n/**\n * Returns an array of dates, resulting from adding and subtracting N days to a given date\n *\n * @param {Date|DateString} date\n * @param {Number} daysDiff - The number of days to add and subtract\n *\n * @returns {Date[]} A sorted dates array with computed calculation\n */\nexport function getNDaysBeforeAndAfter (date, daysDiff) {\n date = dateStringToDate(date)\n const days = []\n\n if (daysDiff < 1) {\n days.push(date)\n return days\n }\n\n for (let i = daysDiff; i > 0; i--) {\n const newDay = new Date(date.getTime())\n newDay.setDate(date.getDate() - i)\n days.push(newDay)\n }\n\n days.push(date)\n\n for (let i = 0; i < daysDiff; i++) {\n const newDay = new Date(date.getTime())\n newDay.setDate(date.getDate() + i + 1)\n days.push(newDay)\n }\n\n return days\n}\nhelper.getNDaysBeforeAndAfter = getNDaysBeforeAndAfter\n\n/**\n * Compare 2 dates for equality ignoring the time.\n *\n * @param {Date} date1 - First date to compare.\n * @param {Date} date2 - Second date to compare.\n *\n * @returns {Boolean} True if the date (disregarding the date) are equal.\n */\nexport function equalDates (date1, date2) {\n const d1 = new Date(date1)\n const d2 = new Date(date2)\n\n d1.setHours(0, 0, 0, 0)\n d2.setHours(0, 0, 0, 0)\n\n return d1.getTime() === d2.getTime()\n}\nhelper.equalDates = equalDates\n\n/**\n * Convert the date object into a string in ISO format (YYYY-MM-DD).\n *\n * @param {Date} date - The date to be stringified.\n *\n * @returns {DateString} The date in ISO format (YYYY-MM-DD).\n */\nexport function dateToString (date) {\n if (isInvalidDate(date)) { return '' } else {\n const mm = date.getMonth() + 1\n const dd = date.getDate()\n\n return [date.getFullYear(),\n (mm > 9 ? '' : '0') + mm,\n (dd > 9 ? '' : '0') + dd\n ].join('-')\n }\n}\nhelper.dateToString = dateToString\n/**\n * Check if both given dates are on same month\n *\n * @param {Date|DateString} date1\n * @param {Date|DateString} date2\n *\n * @returns {Boolean}\n */\nexport function areDatesInSameMonth (date1, date2) {\n date1 = dateStringToDate(date1)\n date2 = dateStringToDate(date2)\n return date1.getMonth() === date2.getMonth()\n}\nhelper.areDatesInSameMonth = areDatesInSameMonth\n\n/**\n * Check if both given dates are on same year\n *\n * @param {Date|DateString} date1\n * @param {Date|DateString} date2\n *\n * @returns {Boolean}\n */\nexport function areDatesInSameYear (date1, date2) {\n date1 = dateStringToDate(date1)\n date2 = dateStringToDate(date2)\n return date1.getFullYear() === date2.getFullYear()\n}\nhelper.areDatesInSameYear = areDatesInSameYear\n\n/**\n * Check if given edge dates are a whole month\n *\n * @param {Date|DateString} initialDate\n * @param {Date|DateString} finalDate\n *\n * @returns {Boolean}\n */\nexport function areDatesWholeMonth (initialDate, finalDate) {\n initialDate = dateStringToDate(initialDate)\n finalDate = dateStringToDate(finalDate)\n const wholeMonthDates = getWholeMonthDays(initialDate)\n return equalDates(initialDate, wholeMonthDates[0]) &&\n equalDates(finalDate, wholeMonthDates[wholeMonthDates.length - 1])\n}\nhelper.areDatesWholeMonth = areDatesWholeMonth\n\n/**\n * Returns the date in the middle, computed by days\n *\n * @param {Date|DateString} date1\n * @param {Date|DateString} date2\n *\n * @returns {Date}\n */\nexport function getCenterDate (date1, date2) {\n date1 = dateStringToDate(date1)\n date2 = dateStringToDate(date2)\n const daysDiff = getDatesDifference(date1, date2)\n return addDays(date1, parseInt(daysDiff / 2))\n}\nhelper.getCenterDate = getCenterDate\n\n/**\n * Returns the date with no timezone (YYY-MM-DDT00:00:00)\n *\n * @param {Date|DateString} date\n *\n * @returns {Date}\n */\nexport function noTimeZoneDate (datestring) {\n const date = dateStringToDate(datestring)\n return new Date(`${dateToString(date)}T00:00:00.000Z`)\n}\nhelper.noTimeZoneDate = noTimeZoneDate\n\n/**\n * Filters a list of dates in the range specified\n *\n * @param {Date|DateString} date - The date to check\n * @param {Date|DateString} [minDate] - The minimum date in range\n * @param {Date|DateString} [maxDate] - The maximum date in range\n *\n * @returns {Boolean} True if date is in range\n */\nexport function isDateInRange (date, minDate, maxDate) {\n if (!minDate && !maxDate) return false\n date = date ? dateStringToDate(date) : undefined\n minDate = minDate ? dateStringToDate(minDate) : undefined\n maxDate = maxDate ? dateStringToDate(maxDate) : undefined\n if (!minDate) return date <= maxDate\n if (!maxDate) return date >= minDate\n return date >= minDate && date <= maxDate\n}\nhelper.isDateInRange = isDateInRange\n\n/**\n * Filters a list of dates in the range specified\n *\n * @param {Date|DateString[]} dates - A list of dates\n * @param {Date|DateString} minDate - The minimum date in range\n * @param {Date|DateString} maxDate - The maximum date in range\n *\n * @returns {DateString[]} Matching dates for that range\n */\nexport function filterDatesInRange (dates = [], minDate, maxDate) {\n if (!minDate && !maxDate) return dates\n return dates\n .filter(date => isDateInRange(date, minDate, maxDate))\n}\nhelper.filterDatesInRange = filterDatesInRange\n\n/**\n * Returns the age at specific date\n *\n * @param {Date|DateString} birthdate - The birthdate\n * @param {Date|DateString} referenceDate - The date at which we want know the age. By default is today\n *\n * @returns {number} - The age\n */\nexport function getAge (birthdate, referenceDate = new Date()) {\n birthdate = dateStringToDate(birthdate)\n referenceDate = dateStringToDate(referenceDate)\n\n let age = referenceDate.getFullYear() - birthdate.getFullYear()\n const m = referenceDate.getMonth() - birthdate.getMonth()\n if (m < 0 || (m === 0 && referenceDate.getDate() < birthdate.getDate())) {\n age--\n }\n return age\n}\nhelper.getAge = getAge\n","\n/**\n * removeUndefinedKeys\n * Removes undefined keys from object.\n * By default returns a copy of the original object, but can be the same with second argument\n *\n * @param {Object} obj\n * @param {Boolean} copy - If true, object copy, otherwise same object\n *\n * @returns {Object} transformed result\n */\nexport const removeUndefinedKeys = (obj, copy = true) => {\n const returnObj = copy ? { ...obj } : obj\n Object.keys(returnObj)\n .forEach(key => returnObj[key] === undefined ? delete returnObj[key] : '')\n return returnObj\n}\n\nexport function isEmptyObject (obj) {\n if (!obj) return true\n return (Object.keys(obj).length === 0 && obj.constructor === Object)\n}\n","/**\n * TODO: Upgade configuration with NumberOfDecimals feature?\n */\nexport default class PriceFormatter {\n /**\n * Formats a price with the given configuration\n * @param {decimal} price -- price to be formatted\n * @param {object} config -- price configurations (isCurrencyAtStart and currencySymbol)\n * @param {int} config.isCurrencyAtStart -- true if currency must be before the number, otherwise false\n * @param {int} config.currencySymbol -- the symbol to be used for the currency\n * @param {int} config.numberOfDecimals -- amount of decimals\n * @param {string} config.decimalSeparator -- char used to separate integer and decimal part (dot by default)\n *\n * @returns {String} -- the formatted price\n */\n static toFormattedText (price, config) {\n let priceFormatted = price\n if (config) {\n priceFormatted = config.numberOfDecimals || config.numberOfDecimals === 0 ? roundOff(price, config.numberOfDecimals) : price.toString()\n priceFormatted = config.decimalSeparator ? priceFormatted.replace('.', config.decimalSeparator) : priceFormatted\n priceFormatted = price || price === 0\n ? `${config && config.isCurrencyAtStart && config.currencySymbol ? config.currencySymbol : ''}${priceFormatted}${config && !config.isCurrencyAtStart && config.currencySymbol ? config.currencySymbol : ''}${config && config.suffix ? config.suffix : ''}`\n : ''\n }\n return priceFormatted\n }\n}\n\nexport const roundOff = (value, round) => {\n const priceFormatted = (parseInt(value * (10 ** (round + 1))) - parseInt(value * (10 ** round)) * 10) > 0 ? (((parseFloat(parseInt((value + parseFloat(1 / (10 ** round))) * (10 ** round))))) / (10 ** round)) : (Number(value).toFixed(round))\n return priceFormatted.toLocaleString(undefined, { minimumFractionDigits: round, maximumFractionDigits: round })\n}\n","const isWhitelistedKey = (key) => (\n /^gclid$/i.test(key) ||\n /^gclsrc$/i.test(key) ||\n /^dclid$/i.test(key) ||\n /^agentCode$/i.test(key) ||\n /^nui$/i.test(key) ||\n /^m_i$/i.test(key) ||\n /^fbclid$/i.test(key) ||\n /^gbraid$/i.test(key) ||\n /^wbraid$/i.test(key) ||\n /^fbc$/i.test(key) ||\n /^fbp$/i.test(key) ||\n /^fbtrace_id$/i.test(key) ||\n /^scclid$/i.test(key) ||\n /^pin_id$/i.test(key) ||\n /^ttclid$/i.test(key) ||\n /^li_fat_id$/i.test(key) ||\n /^Igclid$/i.test(key) ||\n /^smc_upi$/i.test(key) ||\n /^rtbh$/i.test(key) ||\n /^msclkid$/i.test(key) ||\n /^ranCID$/i.test(key) ||\n /^ranMID$/i.test(key) ||\n /^ranSubID$/i.test(key) ||\n /^TDUID$/i.test(key) ||\n /^Fid$/i.test(key) ||\n /^cid$/i.test(key) ||\n /^pid$/i.test(key) ||\n /^tid$/i.test(key) ||\n /^Tam$/i.test(key) ||\n /^utm_/i.test(key) ||\n /^ptm_/i.test(key)\n)\n\nexport const GET_WHITELISTED_PARAMS = (params) => {\n return params\n ? Object.keys(params)\n .filter(key => isWhitelistedKey(key))\n .reduce((obj, key) => ({\n ...obj,\n [key]: params[key]\n }), {})\n : {}\n}\n\nexport const EXCLUDE_WHITELISTED_PARAMS = (params) => {\n return params\n ? Object.keys(params)\n .filter(key => !isWhitelistedKey(key))\n .reduce((obj, key) => ({\n ...obj,\n [key]: params[key]\n }), {})\n : {}\n}\n"],"names":["FILTER_TYPES","DESTINATION","PARTICIPANTS","PARTICIPANTS_DISTRIBUTION","TRANSPORT_TYPE","DURATION","DURATIONS","DURATION_GROUP","DEPARTURE_AIRPORT","ARRIVAL_AIRPORT","MEALPLAN","MONTH","DEPARTURE_DATE","ALLOCATION","ROOM_TYPE","STARS","COUNTRY","CITY","SUBREGION","REGION","LAST_MINUTE","PRICE_PER_PERSON","ROOM_COUNT","SKI_AREA_MINIMUM_ALTITUDE_METERS","BATHROOM_COUNT","FACILITIES","INTERNET_FACILITIES","CHILDREN_FACILITIES","IS_WIFI_FREE","RECOMMENDED","CAMPAIGNS","THEMES","ACCOMMODATION_TYPE","CUSTOMERS_RATING","METERS_TO_CENTER","METERS_TO_SLOPE","METERS_TO_SKILIFT","METERS_TO_BEACH","DISCOUNT","BEDS_IN_LIVING_ROOM","SKI_PASS_INCLUDED","SKI_AREA_SLOPE_KMS","HAS_AVAILABILITY","FLIGHT_ONLY","COLLECTION","AIRLINE","helper","namespace","isInvalidDate","date","Date","isNaN","isValidDateObject","Object","prototype","toString","call","isValidDateString","datestring","dateStringToDate","month","Number","split","getMonth","fixDateString","_datestring$split2","year","day","length","join","replace","dateStringsToDates","dates","map","getMin","arguments","undefined","Math","min","apply","_toConsumableArray","getMax","max","getEdgeDates","formatDate","locale","concat","toLocaleString","createDate","dateText","format","parts","yearPart","monthPart","datePart","parseInt","getDatesDifference","initialDate","finalDate","differenceUnits","millisecondsDifference","getTime","getMonthEdges","getFullYear","getWholeMonthDays","monthEdges","getConsecutivePeriod","setHours","days","newDay","push","setDate","getDate","addDays","daysToAdd","newDate","equalDates","date1","date2","d1","d2","dateToString","mm","dd","areDatesInSameMonth","areDatesInSameYear","areDatesWholeMonth","wholeMonthDates","noTimeZoneDate","isDateInRange","minDate","maxDate","filterDatesInRange","filter","getAge","birthdate","referenceDate","age","m","add","addToDate","years","setFullYear","months","setMonth","hours","getHours","minutes","setMinutes","getMinutes","seconds","setSeconds","getSeconds","getNDaysBeforeAndAfter","daysDiff","i","getCenterDate","removeUndefinedKeys","obj","returnObj","_objectSpread","keys","forEach","key","isEmptyObject","constructor","PriceFormatter","_classCallCheck","value","price","config","priceFormatted","numberOfDecimals","roundOff","decimalSeparator","isCurrencyAtStart","currencySymbol","suffix","round","pow","parseFloat","toFixed","minimumFractionDigits","maximumFractionDigits","EXCLUDE_WHITELISTED_PARAMS","params","test","isWhitelistedKey","reduce","_defineProperty"],"sourceRoot":""}