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BAAgBjB,QAAQ,WAAY+B,IAI7CzO,KAAK2N,gBAAgBiB,uBAAuBzB,EAAcW,EAAYK,GAE/DnO,IACT,GAEA,CAAAH,IAAA,kCAAAC,MASA,SAAiCkO,GAAqB,IAAdtO,EAAOH,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,CAAC,EAC3CsP,EAAyBb,EAAMb,cAAgBnN,KAAK2N,gBAAgBgB,QAAQ,gBAC5ER,EAA2BH,EAAMG,0BAA4BnO,KAAK2N,gBAAgBgB,QAAQ,4BAC1Fb,EAAaE,EAAMF,YAAc9N,KAAK2N,gBAAgBgB,QAAQ,cAC9DG,EAAqBD,EAAuBvN,KAAI,SAACyN,EAAWxG,GAChE,IAAMyG,EAAYb,EAAyBc,WAAU,SAAAxG,GAAI,OAAIA,EAAKrI,MAAM,KAAKG,SAAS,GAADoE,OAAI4D,EAAI,GAAI,IACjG,MAAO,CACLtH,YAAY,EACZC,aAAa,EACbC,QAAS4N,EACTjP,MAAOiP,EACPG,SAAU,QAAFvK,OAAUqK,GAAa,EAAIA,EAAY,GAC/CG,UAAW,KAEf,IACAnP,KAAK4N,mBAAmBrM,OAAO6N,MAAMN,EAAoB,CAAEhN,QAAQ,IAE/D9B,KAAK6N,mBACP7N,KAAK6N,iBAAiBpL,eAAe,CAAEX,QAAQ,IAC/C9B,KAAK6N,iBAAiBnL,kBAAkB,CAACoL,IAAa,EAAM,CAAEhM,QAAQ,KAInEpC,GAAYA,EAAQoC,QACvB9B,KAAK4N,mBAAmB7L,OAAOC,KAAK,UAGtC,IAAMwM,EAAcxO,KAAK2N,gBAAgB0B,+BAGzC,OAFArP,KAAK+B,OAAOC,KAAKsN,EAAAA,GAAyBC,oCAAqCf,GAExExO,IACT,I,uEAACqN,CAAA,CAtJoC,E","sources":["webpack://@sunwebgroup/design-system/./shared/js/data/filters/value-model.js","webpack://@sunwebgroup/design-system/./shared/js/data/filters/values-collection.js","webpack://@sunwebgroup/design-system/./shared/js/data/filters/airports/airport-model.js","webpack://@sunwebgroup/design-system/./shared/js/data/filters/airports/airports-collection.js","webpack://@sunwebgroup/design-system/./shared/js/data/filters/destinations/destination-model.js","webpack://@sunwebgroup/design-system/./shared/js/data/filters/destinations/destinations-collection.js","webpack://@sunwebgroup/design-system/./shared/js/data/filters/dates/date-model.js","webpack://@sunwebgroup/design-system/./shared/js/data/filters/dates/dates-collection.js","webpack://@sunwebgroup/design-system/./shared/js/data/filters/participants/participant-model.js","webpack://@sunwebgroup/design-system/./shared/js/data/filters/filter-model.js","webpack://@sunwebgroup/design-system/./shared/js/data/filters/participants/participants-collection.js","webpack://@sunwebgroup/design-system/./shared/js/data/filters/filters-collection.js","webpack://@sunwebgroup/design-system/./shared/js/helpers/object.js","webpack://@sunwebgroup/design-system/./shared/modules/widgets/airport-filter/main.js","webpack://@sunwebgroup/design-system/./shared/modules/widgets/dropdown-filter/main.js","webpack://@sunwebgroup/design-system/./shared/modules/widgets/dropdown-multiple-filter/main.js","webpack://@sunwebgroup/design-system/./shared/modules/widgets/participants-filter/main.js"],"sourcesContent":["import Model from '../../core/model'\n\n/**\n * A value model\n */\nexport default class ValueModel extends Model {\n /**\n * Creates a new ValueModel\n *\n * @constructor\n * @param {ValueModelAttributes} [attributes] - The model attributes\n * @param {ModelOptions} [options] - Model options\n */\n constructor (attributes = {}, options = {}) {\n super(attributes, options)\n }\n\n /**\n * Sets a state into the isSelected attribute\n *\n * @param {Boolean} state - True if selected\n * @param {ModelActionOptions} [options] - ModelActionOptions object\n *\n * @returns {Model} - The self instance\n */\n setSelection (state, options) {\n return this.setAttribute('isSelected', state, options)\n }\n\n /**\n * Try to gets some value from MetaData\n * The expected format is a space separated key:value strings ...\n * EG. \"metadata\": \"Type:Region || ParentId:12\"\n *\n * @param {String} valueKey - Key to check\n *\n * @returns {(String|undefined)} - The value as string or undefined if is not found\n */\n getValueFromMetaData (valueKey) {\n try {\n return this.getAttribute('metadata')\n .split('||')\n .find(meta => meta.includes(valueKey))\n .split(':')[1]\n .trim()\n .toLowerCase()\n } catch (err) {\n return undefined\n }\n }\n}\n","import ValueModel from './value-model'\nimport Collection from '../../core/collection'\n\n/**\n * ValueModelAttributes type definition\n * @global\n * @typedef {Object} ValueModelAttributes\n * @typedef {Boolean} ValueModelAttributes.isSelected - Selected state\n * @typedef {Boolean} ValueModelAttributes.isAvailable - Selectable state\n * @typedef {*} ValueModelAttributes.value - RAW value\n * @typedef {String} ValueModelAttributes.caption - Text to display\n * @typedef {Number} [ValueModelAttributes.count] - Number of expected results once applied\n * @typedef {String} [ValueModelAttributes.metadata] - Additional information\n * @typedef {String} [ValueModelAttributes.groupInfo] - Unknown property\n */\n\n/**\n * A collection of values\n */\nexport default class ValuesCollection extends Collection {\n /**\n * Creates a new ValuesCollection\n *\n * @constructor\n * @param {Object[]|Model[]} [items] - The items to populate collection\n * @param {CollectionOptions} [options] - The collection options\n */\n constructor (items = [], options = {}) {\n options.model = options.model || ValueModel\n options.defaults = options.defaults || {\n isSelected: false,\n isAvailable: true,\n value: null,\n caption: null\n }\n super(items, options)\n }\n\n /**\n * Returns all selected models\n *\n * @returns {Model[]} - The selected models\n */\n getSelectedModels () {\n return this.where('isSelected', true)\n }\n\n /**\n * Returns all selected values\n *\n * @returns {*[]} - The selected values\n */\n getSelectedValues () {\n return this\n .getSelectedModels()\n .map(model => model.getAttribute('value'))\n }\n\n /**\n * Set selected values\n *\n * @param {Model[]|String[]} values - The values to set for\n * @param {Boolean} [selectedState=true] - The selectedState to set on every value\n * @param {ModelActionOptions} [options]\n *\n * @returns {ValuesCollection} - The self instance\n */\n setSelectedValues (values, selectedState = true, options = {}) {\n values.forEach((value) => {\n const valueModel = value instanceof ValueModel\n ? value\n : this.getModelByValue(value)\n if (valueModel) valueModel.setSelection(selectedState, { silent: true })\n })\n if (!options.silent) this.events.emit('updated')\n return this\n }\n\n /**\n * Clears all selected values\n *\n * @param {ModelActionOptions} [options]\n *\n * @returns {ValuesCollection} - The self instance\n */\n clearSelection (options = {}) {\n this.getSelectedModels().forEach(model => model.setSelection(false, { silent: true }))\n if (!options.silent) { this.events.emit('updated') }\n return this\n }\n\n /**\n * Returns all available models\n *\n * @returns {*[]} - The available values\n */\n getAvailableModels () {\n return this.where('isAvailable', true)\n }\n\n /**\n * Returns all available values\n *\n * @returns {*[]} - The available values\n */\n getAvailableValues () {\n return this\n .getAvailableModels()\n .map(model => model.getAttribute('value'))\n }\n\n /**\n * Gets a model by given value\n *\n * @param {*} value - The value to search for\n *\n * @returns {(Model|undefined)} - The match model, if there's any\n */\n getModelByValue (value) {\n return this.findWhere('value', value)\n }\n\n /**\n * Checks if offsetting values will be permitted by given offsetAmount\n *\n * @param {Number} offsetAmount - The offsetAmount to check\n *\n * @returns {Boolean} - True if possible\n */\n checkOffsetAvailable (offsetAmount) {\n const maxIndex = this.models.length - 1\n const currentIndex = this.models.indexOf(this.getSelectedModels()[0])\n const newIndex = currentIndex + offsetAmount\n return (newIndex >= 0 && newIndex <= maxIndex)\n }\n\n /**\n * Offsets selectedValue by given offsetAmount, if possible\n *\n * @param {Number} offsetAmount - The offsetAmount to check\n * @param {ModelActionOptions} [options]\n *\n * @returns {Boolean} - True if done\n */\n offsetSelected (offsetAmount, options) {\n if (!this.checkOffsetAvailable(offsetAmount)) return false\n const currentIndex = this.models.indexOf(this.getSelectedModels()[0])\n const newIndex = currentIndex + offsetAmount\n this.clearSelection({ silent: true }).setSelectedValues([this.models[newIndex]], true, options)\n return true\n }\n\n /**\n * Get the value of the item in the offset position relatively to the selected item, if possible\n *\n * @param {Number} offsetAmount - The offsetAmount to get\n *\n * @returns {(string|undefined)} - The value of the filter if the offset is valid, otherwise undefined\n */\n getValueByOffset (offsetAmount) {\n if (!this.checkOffsetAvailable(offsetAmount)) return undefined\n const selectedItemIndex = this.models.indexOf(this.getSelectedModels()[0])\n const newIndex = selectedItemIndex + offsetAmount\n return this.models[newIndex].getAttribute('value')\n }\n}\n","import ValueModel from '../value-model'\n\n/**\n * An airport filter model\n */\nexport default class AirportModel extends ValueModel {\n /**\n * Creates a new AirportModel\n *\n * @constructor\n * @param {ValueModelAttributes} [attributes] - The model attributes\n * @param {ModelOptions} [options] - Model options\n */\n constructor (attributes = {}, options = {}) {\n super(attributes, options)\n this.setAttributes({\n group: this.getValueFromMetaData('Group')\n }, { silent: true })\n }\n}\n","import AirportModel from './airport-model'\nimport ValueModel from '../value-model'\nimport ValuesCollection from '../values-collection'\nimport { capitalizeString } from '../../../../js/helpers/string'\n\n/**\n * A collection of values\n */\nexport default class AirportsCollection extends ValuesCollection {\n /**\n * Creates a new AirportsCollection\n *\n * @constructor\n * @param {(Object[]|Model[])} [items] - The items to populate collection\n * @param {CollectionOptions} [options] - The collection options\n */\n constructor (items = [], options = {}) {\n super(items, { ...options, model: AirportModel })\n this.airportGroups = this.initAirportGroups()\n }\n\n /**\n * Returns all airport groups found on models\n *\n * @returns {String[]}\n */\n getAirportGroupsData () {\n const airportGroups = []\n this.models.forEach(model => {\n const modelGroup = model.getAttribute('group')\n if (modelGroup && !airportGroups.includes(modelGroup)) airportGroups.push(modelGroup)\n })\n return airportGroups\n }\n\n /**\n * Returns all models matching given airport group\n *\n * @param {(String|ValueModel)} group - Current group to search for. If a string is given as group, will be considered as value.\n *\n * @returns {AirportModel[]|Model[]}\n */\n getAirportsByGroup (group) {\n const groupName = group instanceof ValueModel ? group.getAttribute('value') : group\n return this.where('group', groupName)\n }\n\n /**\n * Initialize the airportsGroups collection\n * - Get groups data from models\n * - Creates the collection\n * - Bind changes to group models\n *\n * @returns {ValuesCollection}\n */\n initAirportGroups () {\n const airportGroupsData = this.getAirportGroupsData()\n\n const airportGroups = new ValuesCollection(airportGroupsData.map(group => ({\n isSelected: false,\n isAvailable: true,\n value: group,\n caption: capitalizeString(group)\n })))\n\n airportGroups.models.forEach(group => {\n group.events.on('change', changed => {\n if (Object.prototype.hasOwnProperty.call(changed, 'isSelected')) {\n this.getAirportsByGroup(group.value)\n .forEach(airport => airport.setSelection(changed.isSelected, { silent: true }))\n this.events.emit('updated')\n }\n })\n })\n\n return airportGroups\n }\n}\n","import ValueModel from '../value-model'\n\n/**\n * A destination filter model\n */\nexport default class DestinationModel extends ValueModel {\n /**\n * Creates a new DestinationModel\n *\n * @constructor\n * @param {ValueModelAttributes} [attributes] - The model attributes\n * @param {ModelOptions} [options] - Model options\n */\n constructor (attributes = {}, options = {}) {\n super(attributes, options)\n this.setAttributes({\n type: this.getValueFromMetaData('Type'),\n parentId: this.getValueFromMetaData('ParentId'),\n canonicalName: this.getValueFromMetaData('CanonicalName'),\n siteType: this.getValueFromMetaData('SiteType')\n }, { silent: true })\n }\n\n /**\n * Returns the parent models\n *\n * @returns {DestinationModel[]}\n */\n getParentModels () {\n if (!this.getAttribute('parentId') || !this.collection) return []\n const parentModel = this.collection.findWhere('value', this.getAttribute('parentId'))\n return parentModel ? [parentModel].concat(parentModel.getParentModels()) : []\n }\n}\n","import Collection from '../../../core/collection'\nimport DestinationModel from './destination-model'\nimport ValuesCollection from '../values-collection'\n\n/**\n * A collection of values\n */\nexport default class DestinationsCollection extends ValuesCollection {\n /**\n * Creates a new DestinationsCollection\n *\n * @constructor\n * @param {(Object[]|Model[])} [items] - The items to populate collection\n * @param {CollectionOptions} [options] - The collection options\n */\n constructor (items = [], options = {}) {\n super(items, { ...options, model: DestinationModel })\n }\n\n /**\n * Returns all models with type defined as 'country'\n *\n * @returns {DestinationModel[]}\n */\n getCountries () {\n return this.where('type', 'country')\n }\n\n /**\n * Returns all models matching given parent\n * and type defined as 'region'\n *\n * @param {(String|DestinationModel)} country - Current country to search for. If a string is given as country, will be considered as value.\n *\n * @returns {DestinationModel[]}\n */\n getRegionsByCountry (country) {\n const countryId = country instanceof this.Model ? country.getAttribute('value') : country\n return this.where('parentId', countryId).filter(region => region.getAttribute('type') === 'region')\n }\n\n /**\n * Returns all models matching given parent\n * and type defined as 'city'\n *\n * @param {(String|DestinationModel)} region - Current region to search for. If a string is given as region, will be considered as value.\n *\n * @returns {DestinationModel[]}\n */\n getCitiesByRegion (region) {\n const regionId = region instanceof this.Model ? region.getAttribute('value') : region\n return this.where('parentId', regionId).filter(city => city.getAttribute('type') === 'city')\n }\n\n /**\n * Returns all country & region models sorted\n *\n * @returns {DestinationModel[]}\n */\n getSortedCountriesAndRegions () {\n const result = []\n Collection.sortModelsBy('caption', this.getCountries())\n .forEach(country => {\n result.push(country, ...Collection.sortModelsBy('caption', this.getRegionsByCountry(country)))\n })\n return result\n }\n}\n","import ValueModel from '../value-model'\n\n/**\n * A date filter model\n */\nexport default class DateModel extends ValueModel {\n /**\n * Creates a new DateModel\n *\n * @constructor\n * @param {ValueModelAttributes} [attributes] - The model attributes\n * @param {ModelOptions} [options] - Model options\n */\n constructor (attributes = {}, options = {}) {\n super(attributes, options)\n }\n}\n","import DateModel from './date-model'\nimport ValuesCollection from '../values-collection'\nimport CalendarDataModel from '../../../../modules/components/calendar/calendar-data-model'\nimport { dateToString, getCenterDate, getConsecutivePeriod, getEdgeDates, getMin, dateStringToDate } from '../../../helpers/dates'\n\n/**\n * A collection of values\n */\nexport default class DatesCollection extends ValuesCollection {\n /**\n * Creates a new DatesCollection\n *\n * @constructor\n * @param {(Object[]|Model[])} [items] - The items to populate collection\n * @param {CollectionOptions} [options] - The collection options\n */\n constructor (items = [], options = {}) {\n super(items, { ...options, model: DateModel })\n this.fillMissingDates()\n this.calendarDataModel = new CalendarDataModel(this.toCalendarDataModelObject())\n this.calendarDataModel.events.on('change', this.updateFromCalendarDataModel, this)\n this.events.on('updated', this.updateToCalendarDataModel, this)\n }\n\n /**\n * OVERRIDE Set selected values\n * - ClearSelection before. Because could lead into date inconsistencies\n *\n * @param {Model[]|String[]} values - The values to set for\n * @param {Boolean} [selectedState=true] - The selectedState to set on every value\n * @param {ModelActionOptions} [options]\n *\n * @returns {ValuesCollection} - The self instance\n */\n setSelectedValues (values, selectedState = true, options = {}) {\n this.clearSelection({ silent: true })\n return super.setSelectedValues(values, selectedState, options)\n }\n\n /**\n * Returns the selected values for filters, manipulated if necessary\n * - In case of dates, we only need the selected edges\n *\n * @returns {Object[]} Plain selected values\n * {value, caption}\n *\n */\n getFilterSelectedValues () {\n const selectedValues = this.getSelectedValues()\n return selectedValues.length <= 2\n ? selectedValues\n : getEdgeDates(selectedValues).map(d => dateToString(d))\n }\n\n /**\n * Returns the first available date\n *\n * @returns {DateString}\n *\n */\n getFirstAvailableDate () {\n return dateToString(getMin(this.getAvailableValues()))\n }\n\n getFirstAvailableDateForMonth (month, year) {\n const filteredDates = this.getAvailableDatesForMonth(month, year)\n return filteredDates.length ? dateToString(getMin(filteredDates)) : null\n }\n\n getAvailableDatesForMonth (month, year) {\n const dates = this.getAvailableValues()\n const convertedDates = dates.map(date => dateStringToDate(date))\n const availableDates = convertedDates.filter(date => (date.getMonth() === month && date.getFullYear() === year))\n return availableDates\n }\n\n fillMissingDates () {\n const currentValues = this.pick('value').map(obj => obj.value)\n const edgeValues = this.getEdgeValues()\n const desiredValues = getConsecutivePeriod(edgeValues[0], edgeValues[1]).map(d => dateToString(d))\n const missingValues = desiredValues.filter(d => !currentValues.includes(d))\n if (missingValues.length) this.addItems(missingValues.map(v => ({ value: v })), { silent: true })\n return this\n }\n\n getEdgeValues () {\n return getEdgeDates(this.pick('value').map(obj => obj.value))\n }\n\n toCalendarDataModelObject () {\n const edgeValues = this.getEdgeValues()\n const selectedValues = this.getSelectedValues()\n return {\n selectedDates: selectedValues,\n selectedDate: selectedValues.length\n ? selectedValues.length === 1\n ? selectedValues[0]\n : (() => {\n const currentDate = this.calendarDataModel\n ? this.calendarDataModel.getAttribute('selectedDate')\n : undefined\n if (!currentDate || (currentDate < selectedValues[0] || currentDate > selectedValues[selectedValues.length])) { return dateToString(getCenterDate(...getEdgeDates(selectedValues))) } else { return currentDate }\n })()\n : '',\n disabledDates: this.where('isAvailable', false).map(model => model.getAttribute('value')),\n startDate: dateToString(edgeValues[0]),\n endDate: dateToString(edgeValues[1])\n }\n }\n\n updateFromCalendarDataModel () {\n // Skip if selected values are the same, via array comparison\n const modelValues = this.getSelectedValues().sort()\n const calendarValues = this.calendarDataModel.getAttribute('selectedDates').sort()\n if (modelValues.length === calendarValues.length && modelValues.every((v, i) => v === calendarValues[i])) { return this }\n\n this.clearSelection({ silent: true })\n this.setSelectedValues(this.calendarDataModel.getAttribute('selectedDates'), true)\n return this\n }\n\n updateToCalendarDataModel (options) {\n this.calendarDataModel.setAttributes(this.toCalendarDataModelObject(), options)\n return this\n }\n}\n","import ValueModel from '../value-model'\n\n/**\n * A Participant filter model\n */\nexport default class ParticipantModel extends ValueModel {\n /**\n * Creates a new ParticipantModel\n *\n * @constructor\n * @param {ValueModelAttributes} [attributes] - The model attributes\n * @param {ModelOptions} [options] - Model options\n */\n constructor (attributes = {}, options = {}) {\n super(attributes, options)\n this.setAttributes({\n room: parseInt(this.getValueFromMetaData('Room'))\n }, { silent: true })\n }\n}\n","import Model from '../../core/model'\nimport ValuesCollection from './values-collection'\nimport AirportsCollection from './airports/airports-collection'\nimport DestinationsCollection from './destinations/destinations-collection'\nimport DatesCollection from './dates/dates-collection'\nimport ParticipantsCollection from './participants/participants-collection'\n\nconst knownFilterSpecialTypes = {\n Participants: ParticipantsCollection,\n DepartureAirport: AirportsCollection,\n ArrivalAirport: AirportsCollection,\n DepartureDate: DatesCollection,\n Destination: DestinationsCollection\n}\n\n/**\n * The FilterModelAttributes contains all data for a new filter model\n *\n * @typedef {Object} FilterModelAttributes\n *\n * @property {String} type - The filter type defines what data it contains\n * @property {Boolean} isMultiselectable - The filter can contain more than one value\n * @property {(String|null)} [parentFilterType] - The parent filter type or ID\n * @property {Model[]} values - The collection o values for a filter\n */\n\n/**\n * A filter model\n */\nexport default class FilterModel extends Model {\n /**\n * Creates a new FilterModel\n *\n * @constructor\n *\n * @param {FilterModelAttributes} attributes - The filter model attributes\n */\n constructor (attributes = {}) {\n super(attributes, {\n defaults: {\n type: null,\n isMultiselectable: false,\n parentFilterType: null,\n isMandatory: false,\n values: []\n }\n })\n\n const TypeValuesCollection = knownFilterSpecialTypes[this.getAttribute('type')] || ValuesCollection\n this.values = new TypeValuesCollection(this.attributes.values)\n\n this.values.events.on('updated', () => this.events.emit('change'))\n }\n\n /**\n * Returns the selected models\n *\n * @returns {Model[]}\n *\n */\n getSelectedModels () {\n return this.values.getSelectedModels()\n }\n\n /**\n * Returns the selected values\n *\n * @returns {Object[]} Plain selected values\n * {value, caption}\n *\n */\n getSelectedValues () {\n return this.values.getSelectedValues()\n }\n\n /**\n * Returns true if the model has selected values\n *\n * @returns {Boolean}\n *\n */\n hasSelectedValues () {\n return this.getSelectedValues().length > 0\n }\n\n /**\n * Returns the selected values for filters, manipulated if necessary\n *\n * @returns {Object[]} Plain selected values\n * {value, caption}\n *\n */\n getFilterSelectedValues () {\n return this.values.getFilterSelectedValues\n ? this.values.getFilterSelectedValues()\n : this.values.getSelectedValues()\n }\n\n /**\n * @returns {Boolean}\n */\n isMultiselectable () {\n return this.getAttribute('isMultiselectable')\n }\n\n /**\n * @returns {Boolean}\n */\n isMandatory () {\n return this.getAttribute('isMandatory')\n }\n\n /**\n * Set selected values\n * Just a port to same values function\n *\n * @returns {FilterModel} - Self instance\n */\n setSelectedValues (...args) {\n this.values.setSelectedValues(...args)\n return this\n }\n\n /**\n * Clears all selected values\n *\n * @param {ModelActionOptions} [options]\n *\n * @returns {FilterModel} - The self instance\n */\n clearSelection (options) {\n this.values.clearSelection(options)\n return this\n }\n\n /**\n * Checks if offsetting values will be permitted by given offsetAmount\n * Will not happen when filter is multiSelectable\n *\n * @param {Number} offsetAmount - The offsetAmount to check\n *\n * @returns {Boolean} - True if possible\n */\n checkOffsetAvailable (offsetAmount) {\n if (this.isMultiselectable()) return false\n return this.values.checkOffsetAvailable(offsetAmount)\n }\n\n /**\n * Offsets selectedValue by given offsetAmount, if possible\n * Will not happen when filter is multiSelectable\n *\n * @param {Number} offsetAmount - The offsetAmount to check\n * @param {ModelActionOptions} [options]\n *\n * @returns {Boolean} - True if done\n */\n offsetSelected (offsetAmount, options) {\n if (this.isMultiselectable()) return false\n return this.values.offsetSelected(offsetAmount, options)\n }\n\n /**\n * Get the value of the item in the offset position relatively to the selected item, if possible\n *\n * @param {Number} offsetAmount - The offsetAmount to get\n *\n * @returns {(Model|undefined)} - The value of the filter if the offset is valid, otherwise undefined\n */\n getValueByOffset (offsetAmount) {\n if (this.isMultiselectable()) return undefined\n return this.values.getValueByOffset(offsetAmount)\n }\n}\n","import ParticipantModel from './participant-model'\nimport ValuesCollection from '../values-collection'\n\n/**\n * A collection of values\n */\nexport default class ParticipantsCollection extends ValuesCollection {\n /**\n * Creates a new ParticipantsCollection\n *\n * @constructor\n * @param {(Object[]|Model[])} [items] - The items to populate collection\n * @param {CollectionOptions} [options] - The collection options\n */\n constructor (items = [], options = {}) {\n super(items, { ...options, model: ParticipantModel })\n this._hasRoomInfo = (this.models.length && !isNaN(this.models[0].getAttribute('room')))\n }\n\n /**\n * ⚠️ Override getSelectedValues method to return a multidimensional array\n */\n getSelectedValues () {\n return this.getParticipantsByRoom()\n }\n\n /**\n * Backwards compatible getSelectedValues from inherited class\n */\n getFlattenSelectedValues () {\n return super.getSelectedValues()\n }\n\n /**\n * Returns a multidimensional array with the participants (BirthDates) organized into rooms allocation,\n * eg. [ ['1979-01-01','1985-03-03'], ['2013-01-01','2015-03-03'] ]\n *\n * @returns {[DateString[]]}\n */\n getParticipantsByRoom () {\n // Handle no models case\n if (!this.models.length) return []\n // Handle no metadata case\n if (!this._hasRoomInfo) return [super.getSelectedValues()]\n\n let roomNumber = 0\n let moreResults = true\n const result = []\n\n do {\n const currentRoomParticipants = this.where('room', roomNumber)\n .map(participant => participant.getAttribute('value'))\n if (currentRoomParticipants.length) {\n result.push(currentRoomParticipants)\n roomNumber++\n } else {\n moreResults = false\n }\n } while (moreResults)\n\n return result\n }\n\n /**\n * Returns an array with the participants pipe separated indexes organized into rooms allocation (one based)\n * eg. ['1|2','3|4']\n *\n * @returns {String[]}\n */\n getParticipantsDistribution () {\n // Handle no models case\n if (!this.models.length) return []\n // Handle no metadata case\n if (!this._hasRoomInfo) return [[...Array(this.models.length).keys()].map(k => k + 1).join('|')]\n\n let roomNumber = 0\n let moreResults = true\n const result = []\n\n do {\n const currentRoomParticipants = this.where('room', roomNumber)\n .map(participant => this.models.indexOf(participant) + 1)\n .join('|')\n if (currentRoomParticipants.length) {\n result.push(currentRoomParticipants)\n roomNumber++\n } else {\n moreResults = false\n }\n } while (moreResults)\n\n return result\n }\n}\n","import FilterModel from './filter-model'\nimport Collection from '../../core/collection'\n\n/**\n * A collection of filters\n */\nexport default class FiltersCollection extends Collection {\n /**\n * Creates a new FiltersCollection\n *\n * @constructor\n * @param {Object[]|Model[]} [items] - The items to populate collection\n * @param {CollectionOptions} [options] - The collection options\n */\n constructor (items = [], options = {}) {\n super(items, { ...options, model: FilterModel })\n }\n\n /**\n * Returns the selected filters and it's selectedValues, considering:\n * - Filters with empty values will be skipped\n * - All filter values will be returned as array (both multiSelectable and not)\n *\n * Given: {\n * filterA: ['2012-10-03'], // isMultiselectable: false\n * filterB: [8, 3, 5], // isMultiselectable: true\n * filterC: empty/noValue\n * }\n *\n * Returns: {\n * filterA: ['2012-10-03'],\n * filterB: [8, 3, 5]\n * }\n *\n * @returns {Object}\n * {type, selectedValues[]}\n */\n getFilterSelectedValues () {\n return this.models\n .map(model => ({\n type: model.getAttribute('type'),\n values: model.getFilterSelectedValues()\n }))\n .filter(filter => filter.values.length)\n .reduce((obj, item) => {\n obj[item.type] = item.values\n return obj\n }, {})\n }\n\n /**\n * Returns the selected filters and it's selectedValues, considering:\n * - Filters with no values will be returned as well with 'undefined' value\n * - Only multiSelectable filters will be returned as 'Array'\n *\n * Given: {\n * filterA: ['2012-10-03'], // isMultiselectable: false\n * filterB: [8, 3, 5], // isMultiselectable: true\n * filterC: empty/noValue\n * }\n *\n * Returns: {\n * filterA: '2012-10-03',\n * filterB: [8, 3, 5],\n * filterC: undefined,\n * }\n *\n * @returns {Object}\n */\n getFiltersSelectedValuesObject () {\n return this.models.reduce((obj, model) => {\n const param = model.getAttribute('type')\n const value = model.getSelectedValues()\n obj[param] = value && value.length\n ? model.isMultiselectable()\n ? value\n : value[0]\n : undefined\n return obj\n }, {})\n }\n\n /**\n * Clears all selected values\n *\n * @param {ModelActionOptions} [options]\n *\n * @returns {FiltersCollection} - The self instance\n */\n clearSelection (options) {\n this.models.forEach(model => {\n model.clearSelection(options)\n })\n return this\n }\n}\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","import DropdownMultipleFilter from '../dropdown-multiple-filter/main'\nimport { toCamelCase } from '../../../js/helpers/string'\n\nexport default class AirportFilter extends DropdownMultipleFilter {\n /**\n * Get the current Dropdown options from filter\n * - The count is filled with the AirportCode (value)\n *\n * @returns {RadioButtonData[]|CheckboxData[]} The parsed filter to Dropdown options\n */\n getDropdownOptionsFromFilter () {\n const airportGroups = this.filterModel.values.airportGroups\n const airports = this.filterModel.values\n\n return airportGroups.models.length\n ? airportGroups.models.map(group => ({\n id: toCamelCase(group.getAttribute('value')),\n name: group.getAttribute('value'),\n value: group.getAttribute('value'),\n text: group.getAttribute('caption'),\n checked: group.getAttribute('isSelected'),\n disabled: !group.getAttribute('isAvailable'),\n items: airports.getAirportsByGroup(group.getAttribute('value'))\n .map(airport => ({\n id: airport.cid,\n name: airport.getAttribute('value'),\n value: airport.getAttribute('value'),\n text: airport.getAttribute('caption'),\n count: airport.getAttribute('value'),\n checked: airport.getAttribute('isSelected'),\n disabled: !airport.getAttribute('isAvailable')\n })\n )\n })\n )\n : airports.models\n .map(airport => ({\n id: airport.cid,\n name: airport.getAttribute('value'),\n value: airport.getAttribute('value'),\n text: airport.getAttribute('caption'),\n count: airport.getAttribute('value'),\n checked: airport.getAttribute('isSelected'),\n disabled: !airport.getAttribute('isAvailable')\n })\n )\n }\n\n /**\n * Set the current Dropdown selectedValues to filter\n * - The airportGroups should also reflect the changes\n *\n * @returns {DropdownMultipleFilter} self instance\n */\n setDropdownOptionsToFilter () {\n const newSelectedValues = this.dropdownApi.getSelectedValues()\n const airportGroups = this.filterModel.values.airportGroups\n airportGroups\n .clearSelection({ silent: true })\n .setSelectedValues(newSelectedValues, true, { silent: true })\n this.filterModel\n .clearSelection({ silent: true })\n .setSelectedValues(newSelectedValues)\n return this\n }\n\n /**\n * Get the current Dropdown chipsData from filter\n * - The text should be the AirportCode (value) instead of caption\n *\n * @returns {Object[]} The parsed chipsData\n */\n getDropdownOptionsDataFromFilter () {\n const airportGroups = this.filterModel.values.airportGroups\n const airports = this.filterModel.values\n return [\n ...airportGroups.models.map(model => ({\n value: model.getAttribute('value'),\n text: model.getAttribute('caption')\n })),\n ...airports.models.map(model => ({\n value: model.getAttribute('value'),\n text: model.getAttribute('caption')\n }))\n ]\n }\n}\n","\n// Ensure other child component APIs are loaded on time\nrequire('../../components/dropdown/main')\n\nconst widgetApi = 'w-dropdown-filter'\nconst widgetQueries = {\n dropdown: `[data-${widgetApi}__dropdown]`\n}\n\nexport default class DropdownFilter {\n /**\n * Creates a new DropdownFilter\n *\n * @constructor\n *\n * @param {HTMLElement} element - The element where to attach DropdownFilter\n * @param {FilterModel} filterModel - The associated FilterModel\n */\n constructor (element, filterModel) {\n this.element = element\n\n this.dropdownElement = this.element.querySelector(widgetQueries.dropdown)\n this.dropdownApi = this.dropdownElement['c-dropdown']\n this.element.setAttribute('data-js-component', widgetApi)\n this.setFilterModel(filterModel)\n\n // Bind dropdown events to filterModel\n this.dropdownApi.events.on('change', (value) => {\n this.setDropdownOptionsToFilter(value)\n })\n this.element[widgetApi] = {\n open: this.dropdownApi.open\n }\n }\n\n /**\n * Set the current filterModel\n * - Set given filterModel to filterModel self property\n * - Set options on dropdown\n * - Bind filter model events\n *\n * @param {FilterModel} filterModel - The associated FilterModel\n *\n * @returns {DropdownFilter} self instance\n */\n setFilterModel (filterModel) {\n this.filterModel = filterModel\n // Setting options silently so that value prop changed is not triggered in case it changes when changing options\n const setDropdownOptions = () => this.dropdownApi.setProp('options', this.getDropdownOptionsFromFilter(), { silent: true })\n setDropdownOptions()\n\n this.filterModel.events.on('change', () => {\n setDropdownOptions()\n })\n\n return this\n }\n\n /**\n * Set the current Dropdown selectedValues to filter\n *\n * @returns {DropdownFilter} self instance\n */\n setDropdownOptionsToFilter (value) {\n this.filterModel\n .clearSelection({ silent: true })\n .setSelectedValues([value])\n return this\n }\n\n /**\n * Get the current Dropdown options from filter\n *\n * @returns {DropdownSingleOptionData[]} The parsed filter to Dropdown options\n */\n getDropdownOptionsFromFilter () {\n return this.filterModel.values.models.map(model => ({\n value: model.getAttribute('value'),\n text: model.getAttribute('caption'),\n count: model.getAttribute('count'),\n selected: model.getAttribute('isSelected'),\n disabled: !model.getAttribute('isAvailable')\n }))\n }\n}\n","\n// Ensure other child component APIs are loaded on time\nrequire('../../components/dropdown/dropdown-multiple/main')\n\nconst widgetApi = 'w-dropdown-multiple-filter'\nconst widgetQueries = {\n dropdown: `[data-${widgetApi}__dropdown]`\n}\n\nexport default class DropdownMultipleFilter {\n /**\n * Creates a new DropdownMultipleFilter\n *\n * @constructor\n *\n * @param {HTMLElement} element - The element where to attach DropdownMultipleFilter\n * @param {FilterModel} filterModel - The associated FilterModel\n */\n constructor (element, filterModel) {\n this.element = element\n this.element.setAttribute('data-js-component', widgetApi)\n this.dropdownElement = this.element.querySelector(widgetQueries.dropdown)\n this.dropdownApi = this.dropdownElement['c-dropdown-multiple']\n\n this.setFilterModel(filterModel)\n\n // Bind dropdown events to filterModel\n this.dropdownApi.events.on('submit', () => {\n this.setDropdownOptionsToFilter()\n })\n this.dropdownApi.setProp('saveOnDomClick', true)\n this.element[widgetApi] = {\n open: this.dropdownApi.open\n }\n }\n\n /**\n * Set the current filterModel\n * - Set given filterModel to filterModel self property\n * - Set props on child views\n * - Bind filter model events\n *\n * @param {FilterModel} filterModel - The associated FilterModel\n *\n * @returns {DropdownMultipleFilter} self instance\n */\n setFilterModel (filterModel) {\n this.filterModel = filterModel\n\n this.dropdownApi.setProps({\n options: this.getDropdownOptionsFromFilter(),\n optionsData: this.getDropdownOptionsDataFromFilter()\n })\n\n this.filterModel.events.on('change', () => {\n this.dropdownApi.setProps({\n options: this.getDropdownOptionsFromFilter(),\n optionsData: this.getDropdownOptionsDataFromFilter()\n })\n })\n\n return this\n }\n\n /**\n * Set the current Dropdown selectedValues to filter\n *\n * @returns {DropdownMultipleFilter} self instance\n */\n setDropdownOptionsToFilter () {\n const newSelectedValues = this.dropdownApi.getSelectedValues()\n this.filterModel\n .clearSelection({ silent: true })\n .setSelectedValues(newSelectedValues)\n return this\n }\n\n /**\n * Get the current Dropdown options from filter\n *\n * @returns {RadioButtonData[]|CheckboxData[]} The parsed filter to Dropdown options\n */\n getDropdownOptionsFromFilter () {\n return this.filterModel.values.models.map(model => ({\n id: model.cid,\n name: model.getAttribute('value'),\n value: model.getAttribute('value'),\n text: model.getAttribute('caption'),\n checked: model.getAttribute('isSelected'),\n disabled: !model.getAttribute('isAvailable'),\n count: model.getAttribute('count')\n }))\n }\n\n /**\n * Get the current Dropdown optionsData from filter\n *\n * @returns {Object[]} The parsed optionsData\n */\n getDropdownOptionsDataFromFilter () {\n return this.filterModel.values.models.map(model => ({\n value: model.getAttribute('value'),\n text: model.getAttribute('caption')\n }))\n }\n}\n","/**\n * ParticipantsFilterModels type definition\n * @global\n * @typedef {Object} ParticipantsFilterModels\n * @typedef {FilterModel} [ModelOptions.participants] - Participants filter model\n * @typedef {FilterModel} [ModelOptions.participantsDistribution] - Participants Distribution filter model\n * @typedef {FilterModel} [ModelOptions.allocation] - Allocation filter model\n */\n\n// Ensure other child component APIs are loaded on time\nimport registeredEvents from '../../../js/helpers/registered-events'\nimport { participantsFilterEvents } from '../../../js/document/event-types'\n\nrequire('../../components/participants-selector/main')\nconst EventEmitter = require('eventemitter3')\n\nconst WIDGET_API = 'w-participants-filter'\nconst WIDGET_QUERIES = {\n participants: `[data-${WIDGET_API}__participants]`,\n track: 'data-track'\n}\n\nexport default class ParticipantsFilter {\n /**\n * Creates a new ParticipantsFilter\n *\n * @constructor\n *\n * @param {HTMLElement} element - The element where to attach ParticipantsFilter\n * @param {Object} filterModels\n * @param {FilterModel} filterModels.participants\n * @param {FilterModel} [filterModels.allocation]\n */\n constructor (element, filterModels) {\n this.element = element\n this.events = new EventEmitter()\n\n registeredEvents.registerWidgetEvents(WIDGET_API, this.events, {\n ...this.element.hasAttribute(WIDGET_QUERIES.track) && { track: this.element.attributes[WIDGET_QUERIES.track].value }\n })\n this.element.setAttribute('data-js-component', WIDGET_API)\n this.participantsElement = this.element.querySelector(WIDGET_QUERIES.participants)\n this.participantsApi = this.participantsElement['c-participants-selector']\n\n this.participantsFilter = filterModels.participants\n this.allocationFilter = filterModels.allocation\n this.setParticipantsPropsFromFilters({ silent: false })\n\n // Bind participants selector submit event\n this.participantsApi.events.on('submit', (props) => {\n this.setFiltersFromParticipantsProps(props)\n })\n\n // Bind filterModels change event\n this.participantsFilter.events.on('change', () => {\n this.setParticipantsPropsFromFilters({ silent: true })\n })\n if (this.allocationFilter) {\n this.allocationFilter.events.on('change', () => {\n this.setParticipantsPropsFromFilters({ silent: true })\n })\n }\n this.element[WIDGET_API] = {\n open: this.participantsApi.open\n }\n }\n\n setFilterModel (filterModel) {\n this.participantsFilter = filterModel.participants\n this.allocationFilter = filterModel.allocation\n this.setParticipantsPropsFromFilters({ silent: true })\n\n this.participantsFilter.events.on('change', () => {\n this.setParticipantsPropsFromFilters({ silent: true })\n })\n if (this.allocationFilter) {\n this.allocationFilter.events.on('change', () => {\n this.setParticipantsPropsFromFilters({ silent: true })\n })\n }\n\n return this\n }\n\n /**\n * Sets participants selector properties from filterModels data\n *\n * @param {Object} options - setter options passed to participantsApi\n *\n * @returns {ParticipantsFilter} self instance\n */\n setParticipantsPropsFromFilters (options) {\n const participants = this.participantsFilter.values.getFlattenSelectedValues()\n const participantsDistribution = this.participantsFilter.values.getParticipantsDistribution()\n const allocation = this.allocationFilter\n ? this.allocationFilter.getSelectedValues()[0]\n : ''\n const allocationOptions = this.allocationFilter\n ? this.allocationFilter.values\n .pick('value', 'caption', 'isSelected')\n .map(({ value, caption, isSelected }) => ({\n value,\n id: `-${value}`,\n text: caption,\n checked: isSelected\n }))\n : undefined\n\n this.participantsApi.setProp('humanizedTextPattern', this.participantsFilter.attributes.humanizedTextPattern || '')\n\n // this.participantsFilter.attributes.ageProfiles will only be set on the QuickSearch\n if (this.participantsFilter.attributes.ageProfiles && this.participantsFilter.attributes.ageProfiles.length > 0) {\n this.participantsApi.setProp('ageProfiles', this.participantsFilter.attributes.ageProfiles)\n }\n\n const maxRooms = this.participantsFilter.attributes.maxRooms || 3\n\n if (allocationOptions) {\n this.participantsApi.updateAllocationOptions(allocationOptions)\n this.participantsApi.setProp('maxRooms', 1)\n } else {\n this.participantsApi.updateAllocationOptions([])\n if (this.participantsApi.getProp('maxRooms') === 1) {\n this.participantsApi.setProp('maxRooms', maxRooms)\n }\n }\n\n this.participantsApi.updateParticipantsData(participants, allocation, participantsDistribution)\n\n return this\n }\n\n /**\n * Sets filterModels values from participants selector props\n *\n * @param {Object} props - props passed by component\n * @param {Object} options - setter options\n * @param {Boolean} options.silent - changes will be made silently\n *\n * @returns {ParticipantsFilter} self instance\n */\n setFiltersFromParticipantsProps (props, options = {}) {\n const participantsBirthdates = props.participants || this.participantsApi.getProp('participants')\n const participantsDistribution = props.participantsDistribution || this.participantsApi.getProp('participantsDistribution')\n const allocation = props.allocation || this.participantsApi.getProp('allocation')\n const participantsValues = participantsBirthdates.map((birthdate, i) => {\n const roomIndex = participantsDistribution.findIndex(room => room.split('|').includes(`${i + 1}`))\n return {\n isSelected: true,\n isAvailable: true,\n caption: birthdate,\n value: birthdate,\n metadata: `Room:${roomIndex >= 0 ? roomIndex : 0}`,\n groupInfo: null\n }\n })\n this.participantsFilter.values.reset(participantsValues, { silent: true })\n\n if (this.allocationFilter) {\n this.allocationFilter.clearSelection({ silent: true })\n this.allocationFilter.setSelectedValues([allocation], true, { silent: true })\n }\n\n // Trigger the event on the main participants filter, if proceeds\n if (!options || !options.silent) {\n this.participantsFilter.events.emit('change')\n }\n\n const ageProfiles = this.participantsApi.getParticipantsByAgeProfiles()\n this.events.emit(participantsFilterEvents.PARTICIPANTS_FILTER__FILTER_APPLIED, ageProfiles)\n\n return this\n }\n}\n"],"names":["ValueModel","_Model","_inherits","_super","attributes","arguments","length","undefined","options","_classCallCheck","call","key","value","state","this","setAttribute","valueKey","getAttribute","split","find","meta","includes","trim","toLowerCase","err","Model","ValuesCollection","_Collection","items","model","defaults","isSelected","isAvailable","caption","where","getSelectedModels","map","values","_this","selectedState","forEach","valueModel","getModelByValue","setSelection","silent","events","emit","getAvailableModels","findWhere","offsetAmount","maxIndex","models","newIndex","indexOf","checkOffsetAvailable","clearSelection","setSelectedValues","Collection","AirportModel","_ValueModel","setAttributes","group","getValueFromMetaData","AirportsCollection","_ValuesCollection","_objectSpread","airportGroups","initAirportGroups","modelGroup","push","groupName","_this2","airportGroupsData","getAirportGroupsData","capitalizeString","on","changed","Object","prototype","hasOwnProperty","getAirportsByGroup","airport","DestinationModel","type","parentId","canonicalName","siteType","collection","parentModel","concat","getParentModels","DestinationsCollection","country","countryId","filter","region","regionId","city","result","sortModelsBy","getCountries","apply","getRegionsByCountry","DateModel","DatesCollection","fillMissingDates","calendarDataModel","CalendarDataModel","toCalendarDataModelObject","updateFromCalendarDataModel","_assertThisInitialized","updateToCalendarDataModel","_get","_getPrototypeOf","selectedValues","getSelectedValues","getEdgeDates","d","dateToString","getMin","getAvailableValues","month","year","filteredDates","getAvailableDatesForMonth","date","dateStringToDate","getMonth","getFullYear","currentValues","pick","obj","edgeValues","getEdgeValues","missingValues","getConsecutivePeriod","addItems","v","currentDate","selectedDates","selectedDate","getCenterDate","disabledDates","startDate","endDate","modelValues","sort","calendarValues","every","i","ParticipantModel","room","parseInt","knownFilterSpecialTypes","Participants","ParticipantsCollection","_hasRoomInfo","isNaN","getParticipantsByRoom","roomNumber","moreResults","currentRoomParticipants","participant","Array","keys","k","join","DepartureAirport","ArrivalAirport","DepartureDate","Destination","FilterModel","isMultiselectable","parentFilterType","isMandatory","TypeValuesCollection","getFilterSelectedValues","_this$values","offsetSelected","getValueByOffset","FiltersCollection","reduce","item","param","removeUndefinedKeys","returnObj","isEmptyObject","constructor","AirportFilter","_DropdownMultipleFilt","filterModel","airports","id","toCamelCase","name","text","checked","disabled","cid","count","newSelectedValues","dropdownApi","_toConsumableArray","DropdownMultipleFilter","require","widgetApi","widgetQueries","dropdown","DropdownFilter","element","dropdownElement","querySelector","setFilterModel","setDropdownOptionsToFilter","open","setDropdownOptions","setProp","getDropdownOptionsFromFilter","selected","setProps","optionsData","getDropdownOptionsDataFromFilter","EventEmitter","WIDGET_API","WIDGET_QUERIES","participants","track","ParticipantsFilter","filterModels","registeredEvents","registerWidgetEvents","hasAttribute","participantsElement","participantsApi","participantsFilter","allocationFilter","allocation","setParticipantsPropsFromFilters","props","setFiltersFromParticipantsProps","getFlattenSelectedValues","participantsDistribution","getParticipantsDistribution","allocationOptions","_ref","humanizedTextPattern","ageProfiles","maxRooms","updateAllocationOptions","getProp","updateParticipantsData","participantsBirthdates","participantsValues","birthdate","roomIndex","findIndex","metadata","groupInfo","reset","getParticipantsByAgeProfiles","participantsFilterEvents","PARTICIPANTS_FILTER__FILTER_APPLIED"],"sourceRoot":""}