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X,EAAkB,CACtB,kBAAmB,0BACnB,uBAAwB,mBACxB,oBAAqB,YACrB,iBAAiB,GAGNC,EAAkB,SAAClZ,GAG9B,OAFAA,EAACO,EAAAA,EAAA,GAAQwY,GAAuB/Y,GAEzB,2BAAPQ,QAAkCiB,EAAAA,EAAAA,GAAc,UAAWzB,EAAEmB,SAAW,UAAWJ,GAAO,KAAAP,OAAIR,EAAEiB,aAAY,MAAAT,QAAKkB,EAAAA,EAAAA,IAAiB1B,EAAEsB,YAAW,gDAAAd,OACvGR,EAAEgZ,WAAYtX,EAAAA,EAAAA,IAAiBuX,GAAmB,GAAE,wCAAAzY,OAC5DR,EAAEgZ,UAAY,0BAA4B,GAAE,wCAAAxY,OACtER,EAAE8K,MAAMG,KAAI,SAAAkO,GAAI,OAAKA,EAAKP,SAAiE,GAAtDE,EAAmBvY,EAAAA,EAAC,CAAC,EAAI4Y,GAAI,IAAER,YAAa3Y,EAAEwB,KAAU,IAAEqT,KAAK,IAAG,qBAAArU,OAEzGR,EAAEgZ,WAAYI,EAAAA,EAAAA,KAAkB,GAAE,sBAAA5Y,OAGpCR,EAAE8K,MAAMsH,MAAK,SAAA+G,GAAI,OAAIA,EAAKP,QAAQ,IAAC,6FAAApY,OAE/BR,EAAE8K,MAAMG,KAAI,SAAAkO,GAAI,OAAIA,EAAKP,SAAWE,EAAmBvY,EAAAA,EAAC,CAAC,EAAI4Y,GAAI,IAAER,YAAa3Y,EAAEwB,GAAIgX,WAAYxY,EAAEwY,cAAgB,EAAE,IAAE3D,KAAK,IAAG,eAEpI,GAAE,WAEN,C","sources":["webpack://@sunwebgroup/design-system/./shared/modules/components/bullet-list/c-bullet-list__item.template.js","webpack://@sunwebgroup/design-system/./shared/modules/components/button-group/c-button-group.template.js","webpack://@sunwebgroup/design-system/./shared/modules/components/calendar-field/c-calendar-field.props.js","webpack://@sunwebgroup/design-system/./shared/modules/components/calendar/c-calendar.template.js","webpack://@sunwebgroup/design-system/./shared/modules/components/calendar-field/c-calendar-field.template.js","webpack://@sunwebgroup/design-system/./shared/modules/components/calendar-field/main.js","webpack://@sunwebgroup/design-system/./shared/modules/components/car-item/c-car-item.props.js","webpack://@sunwebgroup/design-system/./shared/modules/components/car-item/config.js","webpack://@sunwebgroup/design-system/./shared/modules/components/car-item/c-car-item.template.js","webpack://@sunwebgroup/design-system/./shared/modules/components/card-price/c-card-price.props.js","webpack://@sunwebgroup/design-system/./shared/modules/components/card-price/c-card-price.template.js","webpack://@sunwebgroup/design-system/./shared/modules/components/form/c-form__change-pattern-configuration.template.js","webpack://@sunwebgroup/design-system/./shared/modules/components/form/main.js","webpack://@sunwebgroup/design-system/./shared/modules/components/price/c-price.template.js","webpack://@sunwebgroup/design-system/./shared/modules/components/side-drawer/c-side-drawer.template.js","webpack://@sunwebgroup/design-system/./shared/modules/components/side-drawer/c-side-drawer__body.template.js","webpack://@sunwebgroup/design-system/./shared/modules/components/side-drawer/c-side-drawer__header.template.js","webpack://@sunwebgroup/design-system/./shared/modules/components/switch/c-switch.template.js","webpack://@sunwebgroup/design-system/./shared/modules/components/tabs/c-tabs__content-wrapper.template.js","webpack://@sunwebgroup/design-system/./shared/modules/components/tabs/c-tabs__nav-item.template.js","webpack://@sunwebgroup/design-system/./shared/modules/components/tabs/c-tabs__nav.template.js"],"sourcesContent":["import { RatingTemplate } from './../rating/c-rating.template'\n\nconst IconApiDictionary = {\n bed: 'bed',\n bus: 'bus-right'\n}\n\n/**\n * The BulletListItemData contains all data needed to hydrate a Button Group selector view\n *\n * @typedef {Object} BulletListItemData\n *\n * @property {String} text - Bullet point text\n * @property {String} icon - Bullet point icon\n * @property {Boolean} isIconHidden\n * @property {Boolean} isBold - If true, item has bold text\n */\nexport const defaultBulletListItemData = {\n text: '',\n icon: '',\n isIconHidden: false,\n isBold: false,\n link: {\n href: '',\n target: '',\n title: ''\n }\n}\n\nexport const BulletListItemTemplate = (d) => {\n // icons\n if (d.icon.indexOf('icon-') === 0) {\n d.icon = d.icon.replace(/^icon-/, '')\n }\n d.icon = IconApiDictionary[d.icon] || d.icon\n\n // metadata\n if (d.metadata && d.metadata.includes('numberOfStars:')) {\n d.stars = d.metadata.split(':')[1].replace(',', '.')\n }\n\n d = { ...defaultBulletListItemData, ...d }\n\n return `\n
  • \n \n \n ${d.link.href\n ? `\n ${d.text}\n `\n : `${d.text}${d.stars ? RatingTemplate({ value: d.stars }) : ''}`}\n
  • \n`\n}\n","import { encodeAttributes } from '../../../js/helpers/string'\nimport { getTokenClass } from '../../../js/helpers/tokens'\n\n// Import button group tokens\nconst tokensShared = require('./data/c-button-group__tokens.json')['c-button-group']\nconst tokensBrand = (() => {\n try {\n return require(`../../../../brands/${WEBPACK_BRAND}/modules/components/box/data/c-button-group__tokens.json`)['c-button-group'] // eslint-disable-line\n } catch (error) {\n return {}\n }\n})()\nconst tokens = { ...tokensShared, ...tokensBrand }\n\n/**\n * The ButtonGroupData contains all data needed to hydrate a Button Group selector view\n *\n * @typedef {Object} ButtonGroupData\n *\n * @property {String} id - The element id\n * @property {String} extraClasses\n * @property {String} html - HTML snippet\n * @property {Boolean} proportional - If true, buttons have same distance between each other\n * @property {Boolean} disabled - If true, buttons are disabled\n * @property {String} [variant] - Button Group's variant\n * @property {Object} [attributes] - Extra attributes\n */\n\nexport const defaultButtonGroupData = {\n extraClasses: '',\n html: '',\n variant: 'default',\n proportional: false,\n disabled: false,\n attributes: {}\n}\n\nexport const ButtonGroupTemplate = (d) => {\n d = { ...defaultButtonGroupData, ...d }\n return `\n
    \n ${d.html}\n
    \n`\n}\n","import { bool, objectOf, oneOfType, shape, string } from 'prop-types'\n\nexport const propTypes = {\n uid: string.isRequired,\n\n date: shape({\n label: string,\n icon: string,\n placeholder: string\n }).isRequired,\n\n acceptButtonText: string.isRequired,\n\n cancelButtonText: string.isRequired,\n\n /** Extra class names to be appended on root element */\n extraClasses: string,\n\n /** Extra attributes to be appended on root element */\n attributes: objectOf(\n oneOfType([\n bool,\n string\n ])\n )\n}\n\nexport const defaultProps = {\n uid: '',\n date: {},\n acceptButtonText: '',\n cancelButtonText: ''\n}\n","import { encodeAttributes } from '../../../js/helpers/string'\n\n/**\n * The CalendarData contains all data needed to hydrate a calendar view\n *\n * @typedef {Object} CalendarData\n *\n * @property {String} id - The element id\n * @property {String} extraClasses\n * @property {Object} [attributes] - Extra attributes\n */\n\nexport const defaultCalendarData = {\n extraClasses: '',\n attributes: {}\n}\n\nexport const CalendarTemplate = (d) => {\n d = { ...defaultCalendarData, ...d }\n return `\n
    \n \n
    \n
    `\n}\n","import { propTypes, defaultProps } from './c-calendar-field.props'\nimport { checkPropTypes } from 'prop-types'\nimport { encodeAttributes } from '../../../js/helpers/string'\nimport { LabelTemplate } from '../label/c-label.template'\nimport { CalendarTemplate } from '../calendar/c-calendar.template'\nimport { FloatingBoxTemplate } from '../floating-box/c-floating-box.template'\nimport { TextboxTemplate } from '../textbox/c-textbox.template'\nimport { FloatingBoxHeaderTemplate } from '../floating-box/c-floating-box__header.template'\nimport { FloatingBoxBodyTemplate } from '../floating-box/c-floating-box__body.template'\nimport { BtnTemplate } from '../btn/c-btn.template'\n\nexport const CalendarFieldTemplate = (props) => {\n const d = { ...defaultProps, ...props }\n checkPropTypes(propTypes, d, 'prop', 'CalendarFieldTemplate')\n\n return `\n
    \n ${d.date ? CreateDateSelectorDiv(d) : ''}\n
    \n `\n}\n\nconst CreateDateSelectorDiv = (d) => {\n return `\n
    \n ${LabelTemplate({\n text: d.date.label ? d.date.label : '',\n size: 'micro',\n extraClasses: 'c-calendar-field-label e-form-label'\n })}\n ${TextboxTemplate({\n id: `${d.uid}`,\n type: 'text',\n readonly: true,\n attributes: { 'data-c-calendar-field__date-textbox': '' },\n icon: d.date.icon ? d.date.icon : '',\n iconPosition: 'left',\n placeholder: d.date.placeholder ? d.date.placeholder : ''\n })}\n ${FloatingBoxTemplate({\n gradient: true,\n extraClasses: 'c-calendar-field__floating-box',\n attributes: { 'data-c-calendar-field__floating-box': '' }\n },\n FloatingBoxHeaderTemplate({}, '') +\n FloatingBoxBodyTemplate({},\n CalendarTemplate({\n id: `${d.uid}__date-calendar`,\n attributes: { 'data-c-calendar-field__calendar': '' }\n }) +\n `
    \n ${\n BtnTemplate({\n variant: 'flat-neutral',\n attributes: { 'data-c-calendar-field__calendar-action': 'cancel' },\n text: d.cancelButtonText\n }) +\n BtnTemplate({\n variant: 'trust',\n attributes: { 'data-c-calendar-field__calendar-action': 'submit' },\n text: d.acceptButtonText\n })\n }\n
    `\n )\n )}\n
    `\n}\n","import Calendar from '../calendar/main'\nimport CalendarDataModel from '../calendar/calendar-data-model'\nimport domEventsHelper from '../../../js/document/dom-events-helper'\nimport Component from '../../../js/core/component/component'\nimport { propTypes } from './c-calendar-field.props'\n\nimport { registerComponent } from '../../../js/core/component/component-directory'\n\nconst COMPONENT_API = 'c-calendar-field'\n\nconst COMPONENT_QUERIES = {\n textBox: `[data-${COMPONENT_API}__date-textbox]`,\n floatingBox: `[data-${COMPONENT_API}__floating-box]`,\n calendar: `[data-${COMPONENT_API}__calendar]`,\n cancel: `[data-${COMPONENT_API}__calendar-action=\"cancel\"]`,\n submit: `[data-${COMPONENT_API}__calendar-action=\"submit\"]`,\n // apis\n textBoxApi: 'c-textbox',\n floatingBoxApi: 'c-floating-box'\n}\n\nconst defaults = {\n selectedDates: [],\n selectedDate: '',\n disabledDates: [],\n startDate: '',\n endDate: ''\n}\n\nexport const COMPONENT_DEFINITION = {\n name: COMPONENT_API,\n props: propTypes\n}\n\nconst EventEmitter = require('eventemitter3')\n\n// export default class CalendarField extends Component {\nexport default class CalendarField extends Component {\n /**\n * Creates a new CalendarField\n *\n * @constructor\n *\n */\n constructor (element, options = {}) {\n super(element, COMPONENT_DEFINITION.name)\n this.calendarDataModelObject = {\n ...defaults,\n ...options.calendarDataModelObject.attributes\n }\n\n this.events = new EventEmitter()\n // Run the queries finding for elements\n this.textBox = this.element.querySelector(COMPONENT_QUERIES.textBox)\n this.textBoxInput = this.textBox.querySelector('input')\n this.floatingBox = this.element.querySelector(COMPONENT_QUERIES.floatingBox)\n this.calendar = this.element.querySelector(COMPONENT_QUERIES.calendar)\n this.cancel = this.element.querySelector(COMPONENT_QUERIES.cancel)\n this.submit = this.element.querySelector(COMPONENT_QUERIES.submit)\n\n Component.initDocumentComponentsFromAPI(this.element)\n // Access to available elements API\n this.textBoxApi = this.textBox[COMPONENT_QUERIES.textBoxApi]\n this.floatingBoxApi = this.floatingBox[COMPONENT_QUERIES.floatingBoxApi]\n\n // Init component state\n this.isOpened = false\n\n // Bind component events\n this.textBoxApi.events.on('focus', this.onFocus, this)\n this.textBoxInput.addEventListener('mousedown', (ev) => {\n this.onFocus()\n ev.stopPropagation()\n })\n\n this.textBoxApi.events.on('clear', () => {\n this.selection.setAttribute('selectedDates', [])\n })\n\n // Bind DOM events\n this._domEvents = [\n [this.cancel, { click: (ev) => this.onCancel(ev) }],\n [this.submit, { click: (ev) => this.onSubmit(ev) }],\n [this.floatingBox, { mousedown: (ev) => this.stopPropagation(ev) }]\n ]\n domEventsHelper.attachEvents(this._domEvents, COMPONENT_API)\n\n // Init filterModel\n this.setCalendarDataModel()\n\n // Initialize calendar element\n this.calendarApi = new Calendar(this.calendar, this.tempSelection)\n\n this.closeFloatingBox()\n\n // Expose component public API\n this.element[COMPONENT_API] = {\n element: this.element,\n selection: this.selection,\n events: this.events\n }\n }\n\n setCalendarDataModel () {\n this.selection = new CalendarDataModel(this.calendarDataModelObject)\n this.tempSelection = new CalendarDataModel(this.calendarDataModelObject)\n\n this.textBoxApi.setProp('value', this.tempSelection.humanizedSelectedDates())\n\n if (this.calendarApi) this.calendarApi.updateCalendarData(this.tempSelection)\n\n this.selection.events.on('change', this.onCalendarDataModelChange, this)\n\n return this\n }\n\n openFloatingBox () {\n this.textBoxInput.classList.add('is-focused')\n this.floatingBoxApi.setProp('opened', true)\n this._floatingBoxEvents = [\n [document, { mousedown: (ev) => this.onCancel(ev) }],\n [this.textBox, { click: (ev) => this.stopPropagation(ev) }]\n ]\n domEventsHelper.attachEvents(this._floatingBoxEvents, COMPONENT_API)\n }\n\n closeFloatingBox () {\n domEventsHelper.detachEvents(this._floatingBoxEvents, COMPONENT_API)\n const closingPromise = this.floatingBoxApi.setProp('opened', false)\n this.textBoxInput.classList.remove('is-focused')\n return closingPromise\n }\n\n onFocus (ev) {\n if (this.isOpened) return\n this.isOpened = true\n\n const { cid, ...restoreAttributes } = this.selection.attributes\n this.tempSelection.setAttributes(restoreAttributes)\n this.openFloatingBox()\n if (this.calendarApi && this.tempSelection.getAttribute('selectedDates').length === 0) {\n const firstAvailableDate = this.calendarDataModelObject.startDate\n const firstDateArray = [new Date(firstAvailableDate)]\n this.calendarApi.setCalendarSelectedDatesOnModel(firstDateArray)\n this.calendarApi.jumpToDate(firstAvailableDate)\n }\n }\n\n onCancel (ev) {\n this.isOpened = false\n const { cid, ...restoreAttributes } = this.selection.attributes\n\n this.closeFloatingBox()\n .then(() => {\n this.tempSelection.setAttributes(restoreAttributes)\n })\n }\n\n onSubmit (ev) {\n this.isOpened = false\n this.closeFloatingBox()\n const areSameValues = this.tempSelection.attributes.selectedDates.length === this.selection.attributes.selectedDates.length &&\n this.tempSelection.attributes.selectedDates.sort().every((v, i) => v === this.selection.attributes.selectedDates.sort()[i])\n const { cid, ...newAttributes } = this.tempSelection.attributes\n this.selection.setAttributes(newAttributes)\n if (!areSameValues) this.events.emit('selectedDatesChanged', this.selection.attributes.selectedDates)\n }\n\n onCalendarDataModelChange (ev) {\n this.textBoxApi.setProp('value', this.selection.humanizedSelectedDates())\n }\n\n stopPropagation (ev) {\n ev.stopPropagation()\n }\n}\n\nregisterComponent(CalendarField, COMPONENT_API, COMPONENT_DEFINITION)\n","import { bool, objectOf, oneOfType, shape, string } from 'prop-types'\r\n\r\nexport const propTypes = {\r\n\r\n /** Car image */\r\n image: string.isRequired,\r\n\r\n /** Car type (small, compact, ...) */\r\n type: string.isRequired,\r\n\r\n /** Car name (Brand Model or similar) */\r\n name: string.isRequired,\r\n\r\n /** Optional car features */\r\n features: shape({\r\n passengers: string,\r\n luggage: string,\r\n doors: string,\r\n airConditioner: string,\r\n gearShift: string\r\n }),\r\n\r\n /** Optional label text */\r\n labelText: string,\r\n\r\n /** Optional label extra class name */\r\n labelExtraClasses: string,\r\n\r\n /** Extra class names to be appended on root element */\r\n extraClasses: string,\r\n\r\n /** Extra details content is rich content to be rendered inside car details html */\r\n extraDetailsHtml: string,\r\n\r\n /** Extra attributes to be appended on root element */\r\n attributes: objectOf(\r\n oneOfType([\r\n bool,\r\n string\r\n ])\r\n )\r\n}\r\n\r\nexport const defaultProps = {\r\n image: '',\r\n type: '',\r\n name: '',\r\n features: {\r\n passengers: '',\r\n luggage: '',\r\n doors: '',\r\n airConditioner: '',\r\n gearShift: ''\r\n }\r\n}\r\n","/**\n * Car Features Icons\n *\n * The responsibility of knowing what icons are associated with what car features,\n * should not belong to widgets and rely somewhere as top as possible.\n *\n * We considered this component the better place to store them for now.\n *\n */\nexport const CAR_FEATURES_ICONS = {\n passengers: '1-person',\n luggage: 'suitcase',\n doors: 'car-door',\n airConditioner: 'snowflake',\n gearShift: 'transmission-manual'\n}\n","import { propTypes as CarItemPropTypes, defaultProps as defaultCarItemProps } from './c-car-item.props'\r\nimport { checkPropTypes } from 'prop-types'\r\nimport { encodeAttributes } from '../../../js/helpers/string'\r\nimport { BulletListTemplate } from '../bullet-list/c-bullet-list.template'\r\nimport { TitleTemplate, defaultTitleData } from '../title/c-title.template'\r\nimport { LabelTemplate, defaultLabelData } from '../label/c-label.template'\r\nimport { CAR_FEATURES_ICONS } from './config'\r\nimport { getTokenClass } from '../../../js/helpers/tokens'\r\n\r\n/**\r\n * The CarItemData contains all data needed to hydrate a CarItem view\r\n *\r\n * @typedef {Object} CarItemData\r\n *\r\n * @property {String} name - Name of the car\r\n * @property {String} type - Type of the car, typically the class name (examples: small, economy, compact, suv, ...)\r\n * @property {String} image - The image url of the car rental\r\n * @property {Object} [features] - The list of characteristics of the car rental (like number of doors, number of suitcases, air conditioned, gear transmission, ... )\r\n * @property {String} [labelText] - The label for the available text\r\n * @property {String} [labelExtraClasses] - The label for the available text\r\n * @property {String} [extraClasses] Extra classes to be appended on root element\r\n * @property {Object} [attributes] Extra attributes to be shown\r\n * @property {String} [extraDetailsContent] Extra details content is rich content to be rendered inside car details html\r\n */\r\n\r\n// Import tokens\r\nconst tokensShared = require('./data/c-car-item__tokens.json')['c-car-item']\r\nconst tokensBrand = (() => {\r\n try {\r\n return require(`../../../../brands/${WEBPACK_BRAND}/modules/components/car-item/data/c-car-item__tokens.json`)['c-car-item'] // eslint-disable-line\r\n } catch (error) {\r\n return {}\r\n }\r\n})()\r\nconst tokens = { ...tokensShared, ...tokensBrand }\r\n\r\nexport const carItemFeaturesToBulletListData = (features) => ({\r\n items: Object.entries(features)\r\n .map(([featureName, text]) => ({\r\n icon: CAR_FEATURES_ICONS[featureName] || '',\r\n text\r\n }))\r\n})\r\n\r\n/**\r\n * @param {CarItemData} carItemData\r\n *\r\n * @returns {String}\r\n */\r\nexport const CarItemTemplate = (carItemData) => {\r\n const d = { ...defaultCarItemProps, ...carItemData }\r\n checkPropTypes(CarItemPropTypes, d, 'prop', 'CarItemTemplate')\r\n\r\n const carItemFeaturesBulletListData = carItemFeaturesToBulletListData(d.features)\r\n\r\n return `\r\n
    \r\n
    \r\n \"${d.name}\"\r\n
    \r\n
    \r\n
    \r\n
    \r\n
    ${d.type}
    \r\n ${d.labelText\r\n ? LabelTemplate({\r\n ...defaultLabelData,\r\n ...{\r\n text: d.labelText,\r\n variant: 'sale',\r\n extraClasses: 'c-car-item__label ' + d.labelExtraClasses\r\n }\r\n })\r\n : ''}\r\n
    \r\n ${TitleTemplate({\r\n ...defaultTitleData,\r\n ...{\r\n text: d.name,\r\n size: getTokenClass('title-size', 'default', tokens) || 'small',\r\n extraClasses: 'c-car-item__name'\r\n }\r\n })}\r\n
    \r\n ${BulletListTemplate({\r\n ...carItemFeaturesBulletListData,\r\n variant: 'inline',\r\n extraClasses: 'c-car-item__features'\r\n })}\r\n ${d.extraDetailsContent ? d.extraDetailsContent : ''}\r\n
    \r\n
    \r\n `\r\n}\r\n","import { bool, objectOf, oneOfType, shape, string } from 'prop-types'\r\n\r\nexport const propTypes = {\r\n\r\n /** Card image */\r\n image: shape({\r\n sync: bool,\r\n resolve: string,\r\n placeholderSrc: string,\r\n resolvedSrc: string,\r\n title: string,\r\n extraClasses: string,\r\n attributes: objectOf(\r\n oneOfType([\r\n bool,\r\n string\r\n ])\r\n ),\r\n ratio: string\r\n }),\r\n\r\n /** Card title */\r\n title: string.isRequired,\r\n\r\n /** Card title tag */\r\n titleTag: string.isRequired,\r\n\r\n /** Card subtitle */\r\n subtitle: string,\r\n\r\n /** Card subtitle tag */\r\n subtitleTag: string,\r\n\r\n /** Price */\r\n price: shape({\r\n size: string,\r\n value: string,\r\n currencyPosition: string,\r\n currency: string,\r\n legend: string\r\n }),\r\n\r\n /** Optional descriptin */\r\n description: string,\r\n\r\n button: shape({\r\n block: bool,\r\n loading: bool,\r\n variant: string,\r\n text: string,\r\n link: shape({\r\n href: string,\r\n title: string,\r\n target: string\r\n })\r\n }),\r\n\r\n /** Extra class names to be appended on root element */\r\n extraClasses: string,\r\n\r\n /** Extra attributes to be appended on root element */\r\n attributes: objectOf(\r\n oneOfType([\r\n bool,\r\n string\r\n ])\r\n )\r\n}\r\n\r\nexport const defaultProps = {\r\n title: '',\r\n variant: 'default',\r\n titleTag: 'h3',\r\n subtitle: '',\r\n subtitleTag: 'h4',\r\n description: '',\r\n price: {\r\n size: '',\r\n value: '',\r\n currencyPosition: '',\r\n currency: '',\r\n legend: '',\r\n extraClasses: 'c-card-price__price'\r\n }\r\n}\r\n","import { propTypes as CardPricePropTypes, defaultProps as defaultCardPriceProps } from './c-card-price.props'\r\nimport { checkPropTypes } from 'prop-types'\r\nimport { encodeAttributes } from '../../../js/helpers/string'\r\nimport { BtnTemplate, defaultButtonData } from '../../components/btn/c-btn.template'\r\nimport { PriceTemplate, defaultPriceData } from '../../components/price/c-price.template'\r\nimport { TitleTemplate, defaultTitleData } from '../../components/title/c-title.template'\r\nimport { ImgTemplate, defaultImgData } from '../../components/img/c-img.template'\r\nimport { getTokenClass } from '../../../js/helpers/tokens'\r\n\r\n/**\r\n * The CardPriceData contains all data needed to hydrate a CardPrice view\r\n *\r\n * @typedef {Object} CardPriceData\r\n *\r\n * @property {String} [title] - Title in the card\r\n * @property {Object} [image] - The image url to be shown in the card\r\n * @property {Object} [price] - The price to be shown in the card\r\n * @property {String} [description] - The description to be shown in the car\r\n * @property {Object} [button] - The button info to be shown in the car\r\n * @property {String} [extraClasses] - Extra classes to be appended on root element\r\n * @property {Object} [attributes] - Extra attributes to be shown\r\n * @property {String} [variant] - Car price variant\r\n */\r\n\r\n// Import tokens\r\nconst tokensShared = require('./data/c-card-price__tokens.json')['c-card-price']\r\nconst tokensBrand = (() => {\r\n try {\r\n return require(`../../../../brands/${WEBPACK_BRAND}/modules/components/c-card-price/data/c-card-price__tokens.json`)['c-card-price'] // eslint-disable-line\r\n } catch (error) {\r\n return {}\r\n }\r\n})()\r\nconst tokens = { ...tokensShared, ...tokensBrand }\r\n\r\n/**\r\n * @param {CardPriceData} cardPriceData\r\n *\r\n * @returns {String}\r\n */\r\nexport const CardPriceTemplate = (cardPriceData) => {\r\n const d = { ...defaultCardPriceProps, ...cardPriceData }\r\n checkPropTypes(CardPricePropTypes, d, 'prop', 'CardPriceTemplate')\r\n\r\n return `\r\n
    \r\n ${d.button && d.variant === 'compact'\r\n ? ``\r\n : ''}\r\n
    \r\n ${d.button && d.variant !== 'compact'\r\n ? `\r\n ${CardImage(d.image)}\r\n `\r\n : ` ${CardImage(d.image)} `\r\n }\r\n
    \r\n\r\n
    \r\n
    \r\n ${d.variant !== 'compact' ? '
    ' : ''}\r\n ${d.title\r\n ? TitleTemplate({\r\n ...defaultTitleData,\r\n ...{\r\n text: d.title,\r\n tag: d.titleTag,\r\n size: '',\r\n extraClasses: `c-card-price__title ${getTokenClass('header__size', d.variant, tokens)}`\r\n }\r\n })\r\n : ''}\r\n ${d.subtitle && d.variant !== 'compact'\r\n ? `\r\n <${d.subtitleTag ? d.subtitleTag : 'h4'}\r\n class=\"c-card-price__subtitle m-body ${getTokenClass('body__size', d.variant, tokens)}\">\r\n ${d.subtitle}\r\n `\r\n : ''}\r\n
    \r\n ${d.price\r\n ? `${PriceTemplate({\r\n ...defaultPriceData,\r\n ...d.price\r\n })}\r\n `\r\n : ''}\r\n ${d.variant !== 'compact' ? '
    ' : ''}\r\n
    ${d.description}
    \r\n
    \r\n\r\n ${d.button && d.variant !== 'compact'\r\n ? `\r\n `\r\n : ''}\r\n ${d.button && d.variant === 'compact' ? '' : ''}\r\n
    `\r\n}\r\n\r\nconst CardImage = (image) => {\r\n return `\r\n ${image\r\n ? `${ImgTemplate({ ...defaultImgData, ...image, extraClasses: 'c-card-price__img' })}`\r\n : `
    \r\n \r\n
    `\r\n }`\r\n}\r\n","/**\n * The FormChangePatternConfiguration contains all data needed to hydrate a Form Change Pattern Configuration view\n *\n * @typedef {Object} FormChangePatternConfiguration\n *\n * @property {Object[]} settingsId - Any name as property, which is the identifier of the associated settings for a field.\n * @property {String} settingsId[].fieldSelector - The name of the field whose pattern will change.\n * @property {Object[]} settingsId[].patterns - The list of patterns\n * @property {String} settingsId[].patterns[].key - The value of the parent field to match, to select the new pattern.\n * @property {String} settingsId[].patterns[].pattern - The pattern to use.\n */\nexport const defaultFormFieldsetData = {\n}\n\nexport const FormChangePatternConfigurationTemplate = (d) => {\n d = d || {}\n return `\n \n `\n}\n","import Component from '../../../js/core/component/component'\nimport { registerComponent } from '../../../js/core/component/component-directory'\nimport registeredEvents from '../../../js/helpers/registered-events'\n\nconst definition = {\n name: 'c-form',\n props: []\n}\n\nexport const attr = {\n action: 'action',\n method: 'method',\n track: 'data-track',\n changePatternSettingsId: `data-${definition.name}-change-pattern-settings-id`,\n changePatternFieldSelector: `data-${definition.name}-change-pattern-selector`,\n changePatternIdStart: `data-${definition.name}-change-pattern-id-start`\n}\n\nconst componentQueries = {\n triggersChangePatternSelector: `[${attr.changePatternSettingsId}]`,\n changePatternSettings: `[data-${definition.name}__change-pattern-configuration]`\n}\n\nconst defaults = {\n validate: false,\n recaptcha: false\n}\n\nexport default class Form extends Component {\n /**\n * Creates a new form behaviour, exposes an API to the element.\n *\n * @constructor\n * @param {HTMLElement} element - The HTML element.\n */\n constructor (element) {\n super(element, definition.name)\n this.selectors = {}\n this.fields = []\n this.options = { ...defaults }\n\n registeredEvents.registerComponentEvents(definition.name, this.events, {\n ...this.element.hasAttribute(attr.track) && { track: this.element.attributes[attr.track].value }\n })\n\n if (this.element.hasAttribute('data-validate')) {\n this.options.validate = true\n }\n if (this.element.hasAttribute('data-disabled-on-submit')) {\n this.options.disabledOnSubmit = true\n }\n if (this.element.hasAttribute('data-loading-on-submit')) {\n this.options.loadingOnSubmit = true\n }\n if (this.element.hasAttribute('data-c-form__recaptcha')) {\n this.options.recaptcha = true\n }\n\n this.formInputsSelectors = [\n { api: 'c-textbox', propName: 'value', function: this._getPropValue.bind(this) },\n { api: 'c-dropdown', propName: 'value', function: this._getPropValue.bind(this) },\n { api: 'c-choice-list', propName: 'value', function: this._getChoiceListValue.bind(this) },\n { api: 'c-date-selector', propName: 'date', function: this._getPropValue.bind(this) },\n { api: 'c-phone-input', propName: 'value', function: this._getPropValue.bind(this) }\n ]\n\n this._init()\n\n this.element[definition.name].validate = this.validate.bind(this)\n this.element[definition.name].getFormData = this.getFormData.bind(this)\n this.element[definition.name].action = this.element.hasAttribute(attr.action) ? this.element.attributes[attr.action].value : ''\n this.element[definition.name].method = this.element.hasAttribute(attr.method) ? this.element.attributes[attr.method].value : ''\n this.element[definition.name].init = this._init.bind(this)\n }\n\n _init () {\n if (this.options.validate) {\n this.element.setAttribute('novalidate', true)\n this._setSelectors()\n ._bindValidationEvents()\n ._bindChangePatternEvents()\n }\n if (this.options.recaptcha) {\n this._bindRecaptchaEvents()\n }\n this._bindSubmit()\n return this\n }\n\n _setSelectors () {\n this.selectors.inputs = this.element.querySelectorAll('.c-form__item.c-textbox')\n this.selectors.textareas = this.element.querySelectorAll('.c-form__item.c-textarea')\n this.selectors.selects = this.element.querySelectorAll('.c-form__item.c-dropdown')\n this.selectors.choices = this.element.querySelectorAll('.c-form__item.c-choice-list')\n this.selectors.dates = this.element.querySelectorAll('.c-form__item.c-date-selector')\n this.selectors.phones = this.element.querySelectorAll('.c-form__item.c-phone-input')\n return this\n }\n\n _bindValidationEvents () {\n this.selectors.inputs.forEach(input => {\n const textboxApi = input['c-textbox']\n this.fields.push(textboxApi)\n // setTimeout is necessary to prioritize the submit event over the blur event if a submit and blur event is triggered at the same time, the 150ms is the necessary amount to make that happen\n textboxApi.events.on('blur', () => setTimeout(() => textboxApi.validate(), 150), this)\n })\n this.selectors.textareas.forEach(textarea => {\n const textareaApi = textarea['c-textarea']\n this.fields.push(textareaApi)\n textareaApi.events.on('blur', () => textareaApi.validate(), this)\n })\n this.selectors.selects.forEach(select => {\n const dropdownApi = select['c-dropdown']\n this.fields.push(dropdownApi)\n dropdownApi.events.on('change', () => dropdownApi.validate(), this)\n })\n this.selectors.choices.forEach(choice => {\n // Next line is for preventing errors if there's a choice-list component inserted with \"jsApi\": false parameter.\n if (!choice['c-choice-list']) return false\n const choiceListApi = choice['c-choice-list']\n this.fields.push(choiceListApi)\n choiceListApi.events.on('changeOptions', () => choiceListApi.validate(), this)\n })\n this.selectors.dates.forEach(date => {\n const dateApi = date['c-date-selector']\n this.fields.push(dateApi)\n })\n this.selectors.phones.forEach(phone => {\n const phoneApi = phone['c-phone-input']\n this.fields.push(phoneApi)\n })\n return this\n }\n\n _bindChangePatternEvents () {\n // init\n this.changePatternFields = {}\n const customValidationsSettings = this.element.querySelectorAll(componentQueries.changePatternSettings)\n customValidationsSettings.forEach(config => {\n try {\n const parsed = JSON.parse(config.innerText)\n this.changePatternFields = { ...this.changePatternFields, ...parsed }\n } catch (err) {\n if (window.newrelic) {\n window.newrelic.noticeError(err)\n }\n }\n })\n const triggerFields = this.element.querySelectorAll(componentQueries.triggersChangePatternSelector)\n triggerFields.forEach(field => {\n const dropdownApi = field['c-dropdown']\n if (!dropdownApi) {\n return\n }\n\n // update with current value\n const currentValue = dropdownApi.getProp('value')\n if (currentValue) {\n this._updateInputPatterns(field, currentValue)\n }\n\n // attach events\n dropdownApi.events.on('change', (value) => {\n this._updateInputPatterns(field, value)\n }, this)\n })\n\n return this\n }\n\n _updateInputPatterns (triggerField, value) {\n const fieldSettingsId = triggerField.getAttribute(attr.changePatternSettingsId)\n if (fieldSettingsId === null || fieldSettingsId === '') {\n return\n }\n const triggerSettings = this.changePatternFields[fieldSettingsId]\n if (triggerSettings) {\n triggerSettings.forEach(targetInputSettings => {\n const newPattern = targetInputSettings.patterns.find(pattern => pattern.key === value.toLowerCase())\n if (!newPattern) {\n return\n }\n let query = `[${attr.changePatternFieldSelector}=${targetInputSettings.fieldSelector}] input`\n const startId = triggerField.getAttribute(attr.changePatternIdStart)\n if (startId !== null && startId !== '') {\n query += `[id^=\"${startId}\"]`\n }\n const targetInput = this.element.querySelector(query)\n if (targetInput) {\n targetInput.pattern = newPattern.pattern\n }\n }, this)\n }\n }\n\n _bindRecaptchaEvents () {\n this.element.addEventListener('recaptcha-form-submit', this._submitEvent.bind(this), false)\n }\n\n _bindSubmit () {\n this.element.addEventListener('submit', this._submitEvent.bind(this), false)\n }\n\n _submitEvent (ev) {\n if (this.options.validate && this.validate().some(v => !v.isValid)) {\n // KO\n ev.preventDefault()\n this.element.dispatchEvent(new window.CustomEvent('form-validation-failed'))\n } else {\n // OK\n this.events.emit('submitted', this.getFormData())\n if (this.options.disabledOnSubmit) {\n if (this._getSubmitButton()) this._getSubmitButton().disabled = true\n }\n if (this.options.loadingOnSubmit) {\n if (this._getSubmitButton()) this._getSubmitButton()['c-btn'].setLoading(true)\n }\n if (ev.type === 'recaptcha-form-submit') {\n this.element.submit()\n }\n }\n }\n\n _getSubmitButton () {\n return this.element.querySelector('[type=\"submit\"]')\n }\n\n validate () {\n let wrongField = null\n const validations = []\n this.fields.forEach(field => {\n field.enableErrors()\n const validation = field.validate()\n if (!validation.isValid) {\n wrongField = wrongField || field\n }\n validations.push(validation)\n })\n\n if (wrongField) {\n wrongField.element.focus()\n }\n\n this.events.emit('validated', validations)\n return validations\n }\n\n getFormData (options) {\n options = { format: 'formData', defaultValue: '', inputsConfigs: null, ...options }\n let inputsConfig = this.formInputsSelectors\n if (options.inputsConfig) {\n inputsConfig = this._mergeInputsOverrides(this.formInputsSelectors, options.inputsConfig)\n }\n const useJsonFormat = options.format && options.format.toLowerCase() === 'json'\n const formData = useJsonFormat ? {} : new window.FormData()\n\n inputsConfig.forEach(input => {\n const inputItems = this.element.querySelectorAll(`.c-form__item.${input.api}`)\n inputItems.forEach(inputElement => {\n // Use id instead of name to support components that have multiple inputs (e.g.: c-date-selector)\n const key = inputElement.id ? inputElement.id : inputElement.querySelector('input,select').id\n const value = input.functionOverride ? input.functionOverride((inputElement[input.api])) : input.function(inputElement[input.api], input.propName)\n const valueToSave = value || options.defaultValue\n if (useJsonFormat) {\n formData[key] = valueToSave\n } else {\n formData.append(key, valueToSave)\n }\n })\n })\n\n return formData\n }\n\n _mergeInputsOverrides (originalInputs, overrideInputs) {\n const merged = originalInputs.map(function (apiConfig) {\n const apiOverride = overrideInputs.find(inputSelector => inputSelector.api === apiConfig.api)\n if (apiOverride) {\n apiConfig = { ...apiConfig, ...apiOverride }\n }\n return apiConfig\n })\n return merged\n }\n\n _getPropValue (componentApi, propName) {\n return componentApi.getProp(propName)\n }\n\n _getChoiceListValue (componentApi) {\n let value = ''\n const selectedValues = componentApi.getSelectedValues()\n if (selectedValues.length > 0) {\n value = selectedValues.join()\n }\n return value\n }\n}\n\nregisterComponent(Form, definition.name, definition)\n","import { getUrlFromString } from '../../../js/document/url'\nimport { BtnTemplate, defaultButtonData } from '../../components/btn/c-btn.template'\n\n/**\n * The PriceData contains all data needed to hydrate a Price view\n *\n * @typedef {Object} PriceData\n *\n * @property {String} value - The price number itself\n * @property {String} currency - The currency symbol\n * @property {String} currencyPosition - The currency position (before, after)\n * @property {String} [priceSuffix] - Price suffix text\n * @property {String} [pricePrefix] - Price prefix text\n * @property {String} [size] - The optional price size modifier (small, large)\n * @property {String} [saleText] - Discount or sale text to be highlighted\n * @property {String} [oldPrice] - Previous public price\n * @property {String} [legend] - Price legend as text, like: 'price per person'\n * @property {String} [acmUrl] - ACM url where to request info to be displayed\n * @property {String} [acmModalId] - Modal ID where the ACM info will be shown at\n * @property {Boolean} [acmHideInfoIcon] - Hide the ACM info icon (an 'i' in an circle).\n * @property {String} [publicPrice] - Extra string to append below the price, like public price if you book elsewhere\n * @property {String} [publicPriceDetail] - Extra string for the public price detail text\n * @property {String} [extraClasses] - Extra classes to be appended\n * @property {Boolean} [hasUiTest] - Flag to indicate if this component is subjected to a UI test.\n */\nexport const defaultPriceData = {\n value: '',\n currency: '€',\n currencyPosition: 'after',\n priceSuffix: '',\n pricePrefix: '',\n size: '',\n saleText: '',\n oldPrice: '',\n legend: '',\n acmUrl: '',\n acmModalId: '',\n acmHideInfoIcon: false,\n publicPrice: '',\n publicPriceDetail: '',\n extraClasses: '',\n hasUiTest: false\n}\nexport const defaultDemoPriceData = {\n value: '1.245',\n currency: '€',\n currencyPosition: 'before',\n priceSuffix: 'p.p.',\n pricePrefix: '',\n size: 'medium',\n saleText: '-15%',\n oldPrice: '1.900',\n label: 'This is the label',\n label2: 'This is the labe2',\n skipassLabel: 'This is the skipass label',\n labelGrayed: true,\n legend: 'Price per person',\n acmUrl: '',\n acmModalId: '',\n acmHideInfoIcon: false,\n publicPrice: 'Public price 299€',\n publicPriceDetail: 'pulic ski pass 99€',\n extraClasses: '',\n hasUiTest: false\n}\n\nexport const PriceTemplate = (d) => {\n d = { ...defaultPriceData, ...d }\n\n return `\n
    \n ${d.discount ? discountTemplate(d) : ''}\n ${d.saleText || d.oldPrice\n ? `
    \n ${d.saleText ? `${d.saleText}` : ''}\n ${d.oldPrice && d.publicPrice === undefined ? `${d.currencyPosition === 'before' ? d.currency : ''}${d.oldPrice}${d.currencyPosition === 'after' ? d.currency : ''}` : ''}\n ${d.publicPrice ? `
    ${d.publicPrice}
    ` : ''}\n
    `\n : ''}\n ${d.acmUrl || d.legend\n ? `
    \n ${d.legend ? `${d.legend}` : ''}\n ${d.acmUrl && !d.acmHideInfoIcon\n ? ``\n : ''}\n ${d.icon\n ? `${BtnTemplate({\n ...defaultButtonData,\n ...{\n text: '',\n variant: 'icon-only',\n block: false,\n icon: d.icon,\n link: false,\n extraClasses: 'c-price__info-icon'\n }\n })}`\n : ''}\n
    `\n : ''}\n
    \n ${d.oldPrice ? `${d.currencyPosition === 'before' ? d.currency : ''}${d.oldPrice}${d.currencyPosition === 'after' ? d.currency : ''}` : ''}\n ${d.pricePrefix ? `${d.pricePrefix}` : ''}\n ${d.currency && d.currencyPosition === 'before' ? `${d.currency}` : ''}` +\n `${d.value}` +\n `${d.currency && d.currencyPosition === 'after' ? `${d.currency}` : ''}` +\n `${d.priceSuffix ? `${d.priceSuffix}` : ''}\n
    \n ${d.label\n ? `
    \n ${d.label}\n
    `\n : ''}\n ${d.label2\n ? `
    \n ${d.label2}\n
    `\n : ''}\n ${d.skipassLabel\n ? `
    \n ${d.skipassLabel}\n
    `\n : ''}\n ${d.publicPriceDetail\n ? publicPriceDetailTemplate(d)\n : ''}\n
    `\n}\n\n/**\n * Transform formatted price into {value, currency, currencyPosition}\n *\n * @param {String} formattedPrice - (\"201 kr\", \"€ 500\")\n * @param {String} [symbol] - Support for +, - or any desirable one\n *\n * @returns {PriceData}\n */\nexport const parseFormattedPrice = (formattedPrice, symbol = '') => {\n const currency = (formattedPrice.match(/([^., \\d])+/g) || [])[0]\n const { value, currencyPosition } = formattedPrice.split(currency).map((numberString, index) => ({\n value: numberString.trim(),\n currencyPosition: (index ? 'before' : 'after')\n })\n ).filter(({ value }) => !isNaN(parseFloat(value)))[0]\n return { value: symbol + value, currency, currencyPosition }\n}\n\n/**\n * ACM params keys are different from acmInformation keys returned by price object from APIs.\n * This maps ones to others, where the key is from acmInformation and value ACM api param keys.\n */\nconst ACM_PARAMS_MAP = {\n transportType: 'transporttype',\n departureDateRaw: 'departuredate',\n durationRaw: 'duration',\n birthdates: 'participants',\n mealplanCode: 'mealplan',\n allocation: 'allocation'\n}\n\nexport const createAcmUrlFromParams = (baseUrl, params) => {\n const fixedParams = Object.keys(params).reduce((result, paramKey) => {\n result[ACM_PARAMS_MAP[paramKey] || paramKey] = params[paramKey]\n return result\n }, {})\n return getUrlFromString(baseUrl, fixedParams)\n}\n\nfunction discountTemplate (d) {\n return `\n
    \n \n ${d.discountText}\n ${d.currencyPosition === 'before' ? d.currency : ''}${d.discount}${d.currencyPosition === 'after' ? d.currency : ''}\n
    `\n}\n\nexport function getACMPriceLabel (d) {\n return BtnTemplate({\n text: `${d.text.replace('', '')} ${d.staticText || ''}`,\n attributes: { 'data-c-modal__action': 'open', 'data-c-modal__source': d.acmUrl, 'data-c-modal__id': d.modalId },\n variant: 'icon-only',\n extraClasses: 'c-price__info-icon c-price__extra-info-label'\n })\n}\n\nexport function publicPriceDetailTemplate ({ publicPriceDetail }) {\n return `
    \n \n ${publicPriceDetail}\n
    `\n}\n","import { fromCamelCase } from '../../../js/helpers/string'\n\n/**\n * The SideDrawerData contains all data needed to hydrate a Side Drawer selector view\n *\n * @typedef {Object} SideDrawerData\n *\n * @property {String} id - The item's id\n * @property {String} origin - Which side the side drawer will appear from\n * @property {String} until - Breakpoint where sidedrawer starts to be shown\n * @property {String} extraClasses\n * @property {String} html - HTML snippet\n * @property {String} closable - If true, it will be hidden at some breakpoint\n */\n\nexport const defaultSideDrawerData = {\n id: '',\n origin: 'right',\n until: '',\n extraClasses: '',\n html: '',\n closable: true\n}\n\nexport const SideDrawerTemplate = (d) => {\n d = { ...defaultSideDrawerData, ...d }\n return `\n
    `${fromCamelCase(k)}=\"${d.attributes[k]}\"`).join(' ') : ''}>\n ${d.html}\n
    \n`\n}\n","/**\n * The SideDrawerBodyData contains all data needed to hydrate a Side Drawer Body selector view\n *\n * @typedef {Object} SideDrawerBodyData\n *\n * @property {String} html - HTML snippet\n */\n\nexport const defaultSideDrawerBodyData = {\n html: ''\n}\n\nexport const SideDrawerBodyTemplate = (d) => {\n d = { ...defaultSideDrawerBodyData, ...d }\n return `\n
    \n
    ` +\n// FIXME {{get-token-class @root.ds-tokens-components \"c-side-drawer.body__size\" \"default\"}}\">\n` ${d.html}\n
    \n
    \n`\n}\n","/**\n * The SideDrawerHeaderData contains all data needed to hydrate a Side Drawer Header selector view\n *\n * @typedef {Object} SideDrawerHeaderData\n *\n * @property {String} id - The item's id\n * @property {String} headerTag - HTML snippet\n * @property {String} title - HTML snippet\n * @property {String} extraClasses\n * @property {String} closable - If true, it will be hidden at some breakpoint\n */\n\nimport { defaultSideDrawerData } from './c-side-drawer.template'\n\nexport const defaultSideDrawerHeaderData = {\n ...defaultSideDrawerData,\n headerTag: '',\n title: ''\n}\n\nexport const SideDrawerHeaderTemplate = (d) => {\n d = { ...defaultSideDrawerHeaderData, ...d }\n return `\n
    \n ${d.title\n ? `<${d.headerTag || 'h2'}\n class=\"m-heading m-heading--small c-side-drawer__header-title\">` + // {{get-token-class @root.ds-tokens-components \"c-side-drawer.header__size\" \"default\"}}\n `${d.title}\n `\n : ''}\n ${d.id && d.closable\n ? ``\n : ''}\n
    \n`\n}\n","import { fromCamelCase, encodeAttributes } from '../../../js/helpers/string'\nimport { ModalTemplate } from '../modal/c-modal.template'\nimport { BtnTemplate } from '../btn/c-btn.template'\n\n/**\n * The SwitchData contains all data needed to hydrate a Switch view\n *\n * @typedef {Object} SwitchData\n *\n * @property {String} id - The element id\n * @property {String} name - The element/group name\n * @property {String} text - Label text\n * @property {Boolean} [checked]\n * @property {Boolean} [disabled]\n * @property {String} [state] - Component state, eg. validation\n * @property {String} [extraClasses] - Extra classes to append to the view\n * @property {Object} [dataset] - Extra attributes for the input element\n * @property {String} modal - Modal\n * @property {String} modal - Modal\n */\n\nexport const defaultSwitchData = {\n id: '',\n name: '',\n text: '',\n value: null,\n checked: true,\n disabled: false,\n modal: {\n id: '',\n bodyContent: '',\n title: ''\n }\n}\n\nexport const SwitchTemplate = (d) => `\n
    \n ${d.modal\n ? `${ModalTemplate({\n size: 'medium',\n id: d.modal.id,\n async: false,\n extraClasses: 'c-switch__modal',\n attributes: {\n 'data-c-modal__action': 'close',\n 'data-c-modal__id': d.modal.id\n },\n closable: true,\n style: 'neutral',\n bodyContent: d.modal.bodyContent,\n title: d.modal.title\n })}\n
    \n ${BtnTemplate({\n variant: 'icon-only',\n icon: 'information-circle',\n attributes: {\n 'data-c-modal__action': 'open',\n 'data-c-modal__id': d.modal.id\n },\n extraClasses: 'c-switch__icon'\n })}\n `\n : ''}\n \n ${d.modal\n ? '
    '\n : ''}\n ${d.text}\n
    `\n","import { encodeAttributes } from '../../../js/helpers/string'\n/**\n * The TabsContentWrapperData contains all data needed to hydrate a Tab Content Wrapper selector view\n *\n * @typedef {Object} TabsContentWrapperData\n *\n * @property {String} id - Tab content's id\n * @property {String} html - HTML snippet\n * @property {Boolean} scrollOnChange - If true, scroll will to top when changing tab\n * @property {String} [extraClasses] - CSS extra classes.\n */\n\nexport const defaultTabsContentWrapperData = {\n id: '',\n html: '',\n scrollOnChange: false,\n track: '',\n extraClasses: '',\n anchorable: false\n}\n\nexport const TabsContentWrapperTemplate = (d) => {\n d = { ...defaultTabsContentWrapperData, ...d }\n return `\n
    \n ${d.html}\n
    \n`\n}\n","/**\n * The TabsNavItemData contains all data needed to hydrate a Tabs Nav Item selector view.\n *\n * @typedef {Object} TabsNavItemData\n *\n * @property {String} text - The tab text.\n * @property {String} [id] - The component ID.\n * @property {String} [componentId] - The parent tabs ID (binds functionallity)\n * @property {String} [icon] - The tab icon name.\n * @property {Boolean} [featured] - If true, the tab item is featured.\n * @property {Boolean} [isOpen] - If true, the tab item has been selected (is open).\n * @property {Object} [attributes] - Extra button attributes.\n * @property {String} [ExtraClasses] - Extra classes.\n\n */\n\nimport { BtnTemplate } from '../btn/c-btn.template'\n\nexport const defaultTabsNavItemData = {\n text: '',\n id: '',\n componentId: '',\n icon: '',\n featured: false,\n isOpen: false,\n attributes: {},\n extraClasses: '',\n anchorable: false\n}\n\nexport const TabsNavItemTemplate = (d) => {\n d = { ...defaultTabsNavItemData, ...d }\n\n const attributes = d.componentId\n ? {\n ...{\n 'data-c-tabs__id': d.componentId,\n 'data-c-tabs__tab-id': d.id,\n 'data-c-tabs__action': 'showTab'\n },\n ...d.attributes\n }\n : d.attributes\n\n return `
  • \n ${BtnTemplate({ icon: d.icon, text: d.text, variant: 'flat', iconPosition: 'left', extraClasses: 'c-tabs__nav-button', track: d.track, attributes })}\n
  • \n`\n}\n","import { TabsNavItemTemplate } from '../tabs/c-tabs__nav-item.template'\nimport { SwipeTemplate } from '../../objects/swipe/o-swipe.template'\n\nimport { encodeAttributes } from '../../../js/helpers/string'\nimport { getTokenClass } from '../../../js/helpers/tokens'\n\n// Import tokens\nconst tokensShared = require('./data/c-tabs__tokens.json')['c-tabs']\nconst tokensBrand = (() => {\n try {\n return require(`../../../../brands/${WEBPACK_BRAND}/modules/components/tabs/data/c-tabs__tokens.json`)['c-tabs'] // eslint-disable-line\n } catch (error) {\n return {}\n }\n})()\nconst tokens = { ...tokensShared, ...tokensBrand }\n\n/**\n * The TabsNavData contains all data needed to hydrate a Tabs Nav selector view.\n *\n * @typedef {Object} TabsNavData\n *\n * @property {String} id - The component ID.\n * @property {TabsNavItemData[]} items - List of items that represent each one a tab item.\n * @property {Boolean} [swipeable] - True if the tabs are swipeable (true by default).\n * @property {String} [variant] - Variant of the component.\n * @property {String} [extraClasses] - CSS extra classes.\n * @property {Object} [attributes] - Extra attributes.\n */\nexport const defaultTabsNavData = {\n id: '',\n items: [],\n swipeable: true,\n variant: '',\n extraClasses: '',\n attributes: {}\n}\n\nconst swipeAttributes = {\n 'data-list-class': 'c-tabs__nav-list--swipe',\n 'data-list-item-class': 'c-tabs__nav-item',\n 'data-active-class': 'is-active',\n 'data-js-swipe': true\n}\n\nexport const TabsNavTemplate = (d) => {\n d = { ...defaultTabsNavData, ...d }\n\n return `
    \n
    \n
      \n ${d.items.map(item => !item.featured ? TabsNavItemTemplate({ ...item, componentId: d.id }) : '').join('')}\n
    \n ${d.swipeable ? SwipeTemplate() : ''}\n
    \n \n ${d.items.find(item => item.featured)\n ? ``\n : ''}\n
    `\n}\n"],"names":["IconApiDictionary","bed","bus","defaultBulletListItemData","text","icon","isIconHidden","isBold","link","href","target","title","BulletListItemTemplate","d","indexOf","replace","metadata","includes","stars","split","_objectSpread","concat","RatingTemplate","value","tokensShared","require","tokensBrand","error","tokens","defaultButtonGroupData","extraClasses","html","variant","proportional","disabled","attributes","ButtonGroupTemplate","id","getTokenClass","encodeAttributes","propTypes","uid","string","isRequired","date","shape","label","placeholder","acceptButtonText","cancelButtonText","objectOf","oneOfType","bool","defaultProps","defaultCalendarData","CalendarFieldTemplate","props","checkPropTypes","CreateDateSelectorDiv","LabelTemplate","size","TextboxTemplate","type","readonly","iconPosition","FloatingBoxTemplate","gradient","FloatingBoxHeaderTemplate","FloatingBoxBodyTemplate","CalendarTemplate","BtnTemplate","COMPONENT_API","COMPONENT_QUERIES","textBox","floatingBox","calendar","cancel","submit","textBoxApi","floatingBoxApi","defaults","selectedDates","selectedDate","disabledDates","startDate","endDate","COMPONENT_DEFINITION","name","EventEmitter","CalendarField","_Component","_inherits","_super","element","_this","options","arguments","length","undefined","_classCallCheck","call","calendarDataModelObject","events","querySelector","textBoxInput","Component","initDocumentComponentsFromAPI","isOpened","on","onFocus","_assertThisInitialized","addEventListener","ev","stopPropagation","selection","setAttribute","_domEvents","click","onCancel","onSubmit","mousedown","domEventsHelper","attachEvents","setCalendarDataModel","calendarApi","Calendar","tempSelection","closeFloatingBox","key","this","CalendarDataModel","setProp","humanizedSelectedDates","updateCalendarData","onCalendarDataModelChange","_this2","classList","add","_floatingBoxEvents","document","detachEvents","closingPromise","remove","_this$selection$attri","restoreAttributes","cid","_objectWithoutProperties","_excluded","setAttributes","openFloatingBox","getAttribute","firstAvailableDate","firstDateArray","Date","setCalendarSelectedDatesOnModel","jumpToDate","_this3","_this$selection$attri2","_excluded2","then","_this4","areSameValues","sort","every","v","i","_this$tempSelection$a","newAttributes","_excluded3","emit","registerComponent","image","features","passengers","luggage","doors","airConditioner","gearShift","labelText","labelExtraClasses","extraDetailsHtml","CAR_FEATURES_ICONS","CarItemTemplate","carItemData","defaultCarItemProps","CarItemPropTypes","carItemFeaturesBulletListData","items","Object","entries","map","_ref","_ref2","featureName","defaultLabelData","TitleTemplate","defaultTitleData","BulletListTemplate","extraDetailsContent","sync","resolve","placeholderSrc","resolvedSrc","ratio","titleTag","subtitle","subtitleTag","price","currencyPosition","currency","legend","description","button","block","loading","CardPriceTemplate","cardPriceData","defaultCardPriceProps","CardPricePropTypes","CardImage","tag","PriceTemplate","defaultPriceData","defaultButtonData","ImgTemplate","defaultImgData","FormChangePatternConfigurationTemplate","JSON","stringify","definition","attr","action","method","track","changePatternSettingsId","changePatternFieldSelector","changePatternIdStart","componentQueries","triggersChangePatternSelector","changePatternSettings","validate","recaptcha","Form","selectors","fields","registeredEvents","registerComponentEvents","hasAttribute","disabledOnSubmit","loadingOnSubmit","formInputsSelectors","api","propName","function","_getPropValue","bind","_getChoiceListValue","_init","getFormData","init","_setSelectors","_bindValidationEvents","_bindChangePatternEvents","_bindRecaptchaEvents","_bindSubmit","inputs","querySelectorAll","textareas","selects","choices","dates","phones","forEach","input","textboxApi","push","setTimeout","textarea","textareaApi","select","dropdownApi","choice","choiceListApi","dateApi","phone","phoneApi","changePatternFields","config","parsed","parse","innerText","err","window","newrelic","noticeError","field","currentValue","getProp","_updateInputPatterns","triggerField","fieldSettingsId","triggerSettings","targetInputSettings","newPattern","patterns","find","pattern","toLowerCase","query","fieldSelector","startId","targetInput","_submitEvent","some","isValid","preventDefault","dispatchEvent","CustomEvent","_getSubmitButton","setLoading","wrongField","validations","enableErrors","validation","focus","_this5","format","defaultValue","inputsConfigs","inputsConfig","_mergeInputsOverrides","useJsonFormat","formData","FormData","inputElement","valueToSave","functionOverride","append","originalInputs","overrideInputs","apiConfig","apiOverride","inputSelector","componentApi","selectedValues","getSelectedValues","join","priceSuffix","pricePrefix","saleText","oldPrice","acmUrl","acmModalId","acmHideInfoIcon","publicPrice","publicPriceDetail","hasUiTest","discount","discountText","discountTemplate","labelGrayed","label2","skipassLabel","ACM_PARAMS_MAP","transportType","departureDateRaw","durationRaw","birthdates","mealplanCode","allocation","createAcmUrlFromParams","baseUrl","params","fixedParams","keys","reduce","result","paramKey","getUrlFromString","getACMPriceLabel","staticText","modalId","defaultSideDrawerData","origin","until","closable","SideDrawerTemplate","k","fromCamelCase","defaultSideDrawerBodyData","SideDrawerBodyTemplate","defaultSideDrawerHeaderData","headerTag","SideDrawerHeaderTemplate","SwitchTemplate","state","modal","ModalTemplate","async","style","bodyContent","checked","dataset","defaultTabsContentWrapperData","scrollOnChange","anchorable","TabsContentWrapperTemplate","defaultTabsNavItemData","componentId","featured","isOpen","TabsNavItemTemplate","defaultTabsNavData","swipeable","swipeAttributes","TabsNavTemplate","item","SwipeTemplate"],"sourceRoot":""}