{"version":3,"sources":["webpack:///./node_modules/@bluekiri/alexandria/helpers/store.js","webpack:///./node_modules/@bluekiri/alexandria-logitravel/components/header-master-expedient/client/js/store/actions.js","webpack:///./node_modules/@bluekiri/alexandria-contrib-components/components/modal/client/js/config.js","webpack:///./node_modules/@bluekiri/alexandria-contrib-components/components/origin-list/client/js/prototype.js","webpack:///./node_modules/@bluekiri/alexandria-logitravel/components/header/client/js/cookie.js","webpack:///./node_modules/@bluekiri/alexandria-contrib-components/components/origin-list/client/js/index.js","webpack:///./node_modules/@bluekiri/alexandria-contrib-components/components/origin-list/client/js/config.js","webpack:///./node_modules/@bluekiri/alexandria-logitravel/components/header/client/js/tooltip.js","webpack:///./node_modules/@bluekiri/alexandria-logitravel/components/modal-origins/client/js/prototype.js","webpack:///./node_modules/@bluekiri/alexandria-logitravel/components/header-master-expedient/client/js/prototype.js","webpack:///./node_modules/@bluekiri/alexandria-logitravel/components/modal-origins/client/js/config.js","webpack:///./node_modules/@bluekiri/alexandria-contrib-components/components/modal/client/js/index.js","webpack:///./node_modules/@bluekiri/alexandria-logitravel/components/modal-msi/client/js/config.js","webpack:///./node_modules/@bluekiri/alexandria-logitravel/components/modal-msi/client/js/index.js","webpack:///./node_modules/@bluekiri/alexandria-logitravel/components/header/client/js/index.js","webpack:///./node_modules/@bluekiri/alexandria-logitravel/components/modal-origins/client/js/index.js","webpack:///./node_modules/@bluekiri/alexandria-logitravel/components/header-master-expedient/client/js/config.js","webpack:///./node_modules/@bluekiri/alexandria-logitravel/components/header-master-expedient/client/js/index.js","webpack:///./node_modules/@bluekiri/alexandria-logitravel/components/header-master-expedient/client/js/services/index.js","webpack:///./node_modules/@bluekiri/alexandria-logitravel/components/header/client/js/welcome.js","webpack:///./node_modules/@bluekiri/alexandria-logitravel/components/header-master-expedient/client/js/store/reducer.js","webpack:///./node_modules/@bluekiri/alexandria-contrib-components/components/modal/client/js/prototype.js"],"names":["module","exports","removeFromStore","instance","store","filter","item","addToStore","push","DESTROY","LOGOUT","types","actions","destroy","type","logout","config","component","init","hasClose","autoDom","autoStore","isLoading","triggers","cssVisible","cssModalBody","modalClose","notClose","$","buildRequest","configuration","session","JSON","stringify","SessionCode","parameterName","value","Source","getConfig","prototypeConfiguration","this","element","dataset","parse","get","setCookieAutoOrigin","autoOrigin","document","cookie","ck_name","ck_value","onClickOrigin","e","target","parentElement","newSelectedOrigin","selectedOrigin","classList","remove","selectedClass","icon","lastChild","nodeName","appendChild","add","attributes","originOption","endpoint","verb","toLowerCase","setTimeout","promise","post","url","data","contentType","withCredentials","done","window","location","reload","fail","console","error","executeAjax","bindEvents","bind","addEventListener","removeEventListener","initialize","querySelector","contains","code","getCookie","cname","name","splitCookie","split","i","length","charAt","substring","indexOf","setCookie","cookieName","cookieValue","nDays","today","Date","expire","nDaysFinal","setTime","getTime","toGMTString","elementExist","randomId","prototype","selector","Object","create","id","base","logitravel","tippy","tooltips","initTooltips","forEach","tippySelector","tippyTitle","tippytemplateId","tippyTheme","htmlElementExists","useTitle","tippyArrow","tippyTrigger","tippyConfig","delay","arrow","arrowType","duration","animation","placement","theme","allowTitleHTML","maxWidth","interactive","trigger","html","$buttonLogout","popper","find","on","urlLogout","currentTarget","sessionCode","ajax","complete","xhr","status","googleyolo","disableAutoSignIn","then","finally","parent","crossDomain","dataType","origin","Store","take","fromEvent","of","reducer","services","headerMasterExpedient","dispatch","reactions","subscribe","state","action","unsubscribe","keys","key","parentNode","removeChild","endpoints","pipe","next","response","result","err","message","subscriptions","hooks","start","setupStore","setupActions","setupReactions","modal","css","modalInStore","getStore","modalIsUnique","getTriggers","removeFromDom","newInstance","addTriggers","checkUniqueModal","image","ModalClient","ImageClient","images","querySelectorAll","map","index","ModalMsiClient","ModalOriginsClient","HeaderMasterExpedient","initWelcome","addClassActive","listItemClass","dropdownClass","listItem","dropdown","hasClass","addClass","removeClass","modalCookie","closeButton","loginModal","click","elementLanguageDropdown","event","attr","languageSelected","language","language_url","success","warn","elementCurrencyDropdown","currencySelected","currency","currency_url","userAgent","navigator","test","preventDefault","OriginListCLient","onOpen","onClose","catchError","switchMap","fromFetch","ok","json","statusText","$containerModalLogin","literals","links","login","href","title","loginModalNewUserTitle","loginModalNewUserDescription","loginModalNewUserButtonText","loginModalNewUserFooterText","loginModalButtonText","replaceData","initialState","getHeaderEl","innerText","text","onClickTrigger","setClose","closeElement","isOpen","isVisible","display","addToDom","setAttribute","body","hide","call","onClickClose","stopPropagation","onKeydown","keyCode","onClickModal","onClickWindow","firstChild"],"mappings":";+EAOAA,EAAOC,QAAU,CACbC,gBAJoB,CAACC,EAAUC,IAAUA,EAAMC,OAAOC,GAAQH,IAAaG,GAK3EC,WAJe,CAACJ,EAAUC,IAAUA,EAAMI,KAAKL,K,qBCAnD,MAAMM,EAAU,mCACVC,EAAS,kCAOfV,EAAOC,QAAU,CACbU,MAAO,CACHF,UACAC,UAEJE,QAAS,CACLC,QAVQ,KAAM,CAAGC,KAAML,IAWvBM,OAVO,KAAM,CAAGD,KAAMJ,O,qBCL9B,MAAMM,EAAS,CACXC,UAAW,QACXC,MAAM,EACNC,UAAU,EACVC,SAAS,EACTC,WAAW,EACXC,WAAW,EACXC,SAAU,GACVT,KAAM,aACNU,WAAY,aACZC,aAAc,mBACdC,WAAY,oBAIVC,EAAW,CACbR,UAAU,GASdnB,EAAOC,QANW,CAACa,EAAO,KACT,aAATA,EAA4B,IAAKE,KAAWW,GAEzC,IAAKX,I,uBC3BhB,MAAMY,EAAI,EAAQ,QAEZC,EAAe,SAAYC,EAAe3B,GAC5C,OAAI2B,EAAcC,QACPC,KAAKC,UAAU,CAAEC,YAAaJ,EAAcC,QAAS,CAACD,EAAcK,eAAgBhC,EAASiC,QAEjGJ,KAAKC,UAAU,CAAE,CAACH,EAAcK,eAAgBhC,EAASiC,MAAOC,OAAQ,OA2CnFrC,EAAOC,QAAU,CACbqC,UAAW,WACP,IAAIC,EAAyB,GAE7B,GAAIC,KAAKC,QAAS,CACd,MAAMX,EAAgBU,KAAKC,QAAQC,QA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iBAAiB,QAAS/C,KAAKuP,eAGxCvP,KAAKC,QAAQuP,WAAWzM,iBAAiB,QAAS/C,KAAKsP,cAGnDtP,KAAKxB,OAAOG,UAAUqB,KAAKyO,aAAa1L,iBAAiB,QAAS/C,KAAKkP,cAC3E3O,SAASwC,iBAAiB,UAAW/C,KAAKoP,YAI9CrR,WAAY,WAER,OAAIiC,KAAKgK,WAAWnM,OAAOC,GAAQA,EAAKQ,OAAS0B,KAAK1B,MAAMqF,OAAS,GAGrE5F,EAAWiC,KAAMpC,GAH8DoC,MASnFtC,gBAAiB,WAGb,OAFAE,EAAQF,EAAgBsC,KAAMpC,GAEvBoC,MAIXgK,SAAU,WACN,OAAOpM,GAIXc,KAAM,WAEFsB,KAAKwO,WAGDxO,KAAKxB,OAAOO,SAAS4E,OAAS,GAAG3D,KAAKqK,YAAYrK,KAAKxB,OAAOO,UAG9DiB,KAAKxB,OAAOK,WAAWmB,KAAKjC,aAG5BiC,KAAKxB,OAAOI,SAASoB,KAAKmK,kBAItC3M,EAAOC,QAAUoM","file":"vendors~header.8ac52f483ba7061e489c.bundle.js","sourcesContent":["/* ==========================================================================\n Helpers > Store\n ========================================================================== */\n\nconst removeFromStore = (instance, store) => store.filter(item => instance !== item);\nconst addToStore = (instance, store) => store.push(instance);\n\nmodule.exports = {\n removeFromStore,\n addToStore\n};\n","/* ==========================================================================\n HeaderMasterExpedient > Client > Store > Actions\n ========================================================================== */\n\n/* Types */\nconst DESTROY = 'HEADER_MASTER_EXPEDIENT::DESTROY';\nconst LOGOUT = 'HEADER_MASTER_EXPEDIENT::LOGOUT';\n\n/* Actions */\nconst destroy = () => ({ type: DESTROY });\nconst logout = () => ({ type: LOGOUT });\n\n/* Exports */\nmodule.exports = {\n types: {\n DESTROY,\n LOGOUT\n },\n actions: {\n destroy,\n logout\n }\n};\n","/* ==========================================================================\n Modal > Client > Config\n ========================================================================== */\n\n/* Base config */\nconst config = {\n component: 'Modal',\n init: true,\n hasClose: true,\n autoDom: true,\n autoStore: true,\n isLoading: false,\n triggers: [],\n type: 'modal-type',\n cssVisible: 'is-visible',\n cssModalBody: 'modal-is-visible',\n modalClose: 'data-modal-close'\n};\n\n/* Not close config */\nconst notClose = {\n hasClose: false\n};\n\nconst getConfig = (type = '') => {\n if (type === 'notClose') return { ...config, ...notClose };\n\n return { ...config };\n};\n\nmodule.exports = getConfig;\n","const $ = require('jquery/dist/jquery');\n\nconst buildRequest = function fn(configuration, instance) {\n if (configuration.session) {\n return JSON.stringify({ SessionCode: configuration.session, [configuration.parameterName]: instance.value });\n }\n return JSON.stringify({ [configuration.parameterName]: instance.value, Source: 900 });\n};\n\nconst executeAjax = function fn(instance) {\n const configuration = instance.config;\n\n // Exit in case we dont have the information we need\n if (!(configuration.endpoint && configuration.parameterName && configuration.verb)) return false;\n\n const verb = configuration.verb.toLowerCase();\n\n setTimeout(() => {\n let promise;\n if (verb === 'post') {\n promise = $.post({\n url: configuration.endpoint,\n data: buildRequest(configuration, instance),\n contentType: 'application/json; charset=utf-8',\n withCredentials: true\n });\n } else if (verb === 'get') {\n promise = $.get({\n url: configuration.endpoint,\n data: buildRequest(configuration, instance),\n contentType: 'application/json; charset=utf-8',\n withCredentials: true\n });\n }\n\n if (promise) {\n promise\n .done(() => {\n window.location.reload(true);\n })\n .fail(() => {\n console.error('Oooopsss ... An error has occurred to change the origin :(');\n });\n }\n }, 1);\n\n return true;\n};\n\nmodule.exports = {\n getConfig: function fn() {\n let prototypeConfiguration = {};\n\n if (this.element) {\n const configuration = this.element.dataset.config;\n\n if (configuration) {\n prototypeConfiguration = JSON.parse(configuration);\n this.element.dataset.config = '';\n }\n }\n\n return prototypeConfiguration;\n },\n get: function fn() {\n return this.value || '';\n },\n setCookieAutoOrigin: function fn() {\n if (this.config && this.config.autoOrigin) {\n document.cookie = `${this.config.autoOrigin.ck_name}=${this.config.autoOrigin.ck_value};path=/`;\n }\n },\n onClickOrigin: function fn(e) {\n if (e.target.parentElement === this.element) {\n const newSelectedOrigin = e.target;\n\n if (newSelectedOrigin === this.selectedOrigin) return false;\n\n this.setCookieAutoOrigin();\n\n // --> We have a selected origin?\n if (this.selectedOrigin) {\n // --> Delete current origin to set the new\n this.selectedOrigin.classList.remove(this.config.selectedClass);\n const icon = this.selectedOrigin.lastChild;\n\n if (icon && icon.nodeName === 'SPAN') {\n newSelectedOrigin.appendChild(icon);\n }\n }\n // --> Set the new origin\n this.selectedOrigin = newSelectedOrigin;\n this.selectedOrigin.classList.add(this.config.selectedClass);\n this.value = this.selectedOrigin.attributes[this.config.originOption].value;\n\n // --> Try to set the new origin in session using an API\n executeAjax(this);\n\n return true;\n }\n return false;\n },\n bindEvents: function bindEvents() {\n this.onClickOrigin = this.onClickOrigin.bind(this);\n },\n addEventListener: function fn() {\n this.bindEvents();\n this.element.addEventListener('click', this.onClickOrigin);\n\n return this;\n },\n removeEventListener: function fn() {\n this.element.removeEventListener('click', this.onClickOrigin);\n\n return this;\n },\n initialize: function fn() {\n const selectedOrigin = this.element.querySelector(`.${this.config.selectedClass}`);\n\n if (!selectedOrigin) return this;\n\n const checkHasSelected = selectedOrigin.classList.contains(this.config.selectedClass);\n\n if (checkHasSelected) {\n this.selectedOrigin = selectedOrigin;\n this.value = selectedOrigin.dataset.code;\n }\n\n this.addEventListener();\n\n return this;\n }\n};\n","/* ==========================================================================\n Header > Client > Cookie\n ========================================================================== */\n\nconst getCookie = cname => {\n const name = `${cname}=`;\n const splitCookie = document.cookie.split(';');\n for (let i = 0; i < splitCookie.length; i++) {\n let value = splitCookie[i];\n while (value.charAt(0) === ' ') {\n value = value.substring(1);\n }\n if (value.indexOf(name) === 0) {\n return value.substring(name.length, value.length);\n }\n }\n return '';\n};\n\nconst setCookie = (cookieName, cookieValue, nDays) => {\n const today = new Date();\n const expire = new Date();\n\n let nDaysFinal = nDays;\n if (nDays === null || nDays === 0) {\n nDaysFinal = 1;\n }\n\n expire.setTime(today.getTime() + 3600000 * 24 * nDaysFinal);\n document.cookie = `${cookieName}=${cookieValue};expires=${expire.toGMTString()};path=/`;\n};\n\nmodule.exports = {\n getCookie,\n setCookie\n};\n","/* Import modules */\nconst { elementExist } = require('@bluekiri/alexandria/helpers/domHelpers');\nconst { randomId } = require('@bluekiri/alexandria/helpers/dataHelpers');\nconst prototype = require('./prototype');\nconst config = require('./config');\n\nmodule.exports = function OriginListClient(selector = '[data-component=\"OriginList\"]', configuration = {}) {\n if (elementExist(selector)) {\n const instance = Object.create(prototype);\n\n instance.element = document.querySelector(selector);\n\n instance.config = { ...config(), ...instance.getConfig(), ...configuration };\n\n instance.id = instance.element.dataset.id || randomId('origin-list');\n\n if (instance.config.init) instance.initialize();\n\n return instance;\n }\n};\n","const base = {\n component: 'OriginList',\n init: true,\n originOption: 'data-code',\n selectedClass: 'selected'\n};\n\nconst configuration = {\n logitravel: {\n ...base,\n ...{\n endpoint: '/mybookings/origin/setorigin',\n parameterName: 'airportcode',\n verb: 'post'\n }\n }\n};\n\nmodule.exports = function fn(type = 'logitravel') {\n return configuration[type] || base;\n};\n","/* ==========================================================================\n Header > Client > Tooltip\n ========================================================================== */\n\nconst $ = require('jquery');\nconst tippy = require('tippy.js');\nconst { setCookie } = require('./cookie');\n\nconst tooltips = [\n ['.popover-phone', true, '', 'header', true, 'mouseenter'],\n ['#Header-popover-cert0', false, '#Header-cert0', 'header', 'true', 'mouseenter'],\n ['#Header-popover-cert1', false, '#Header-cert1', 'header', 'true', 'mouseenter'],\n ['#Header-popover-user', false, '#Header-user-logged', 'user', 'true', 'mouseenter'],\n ['#list-language', false, '#languageDropdown', 'languages', 'false', 'click'],\n ['#list-currency', false, '#currencyDropdown', 'currencies', 'false', 'click']\n];\n\nfunction initTooltips() {\n tooltips.forEach(element => {\n const tippySelector = element[0];\n const tippyTitle = element[1];\n const tippytemplateId = element[2];\n const tippyTheme = element[3];\n const htmlElementExists = element[1] === false && $(element[2]).length;\n const useTitle = element[1];\n const tippyArrow = element[4];\n const tippyTrigger = element[5];\n if (htmlElementExists || useTitle) {\n let tippyConfig = {};\n if (tippySelector === '#Header-popover-user') {\n tippyConfig = {\n delay: 0,\n arrow: tippyArrow,\n arrowType: 'sharp',\n duration: 0,\n animation: 'scale',\n placement: 'bottom',\n theme: `light base ${tippyTheme}`,\n allowTitleHTML: tippyTitle,\n maxWidth: '300px',\n interactive: true,\n trigger: tippyTrigger,\n html: tippytemplateId,\n onShown(instance) {\n const $buttonLogout = $(instance.popper).find('.js-logout');\n if ($buttonLogout.length) {\n $buttonLogout.on('click', e => {\n const urlLogout = $(e.currentTarget).data('urlLogout');\n const sessionCode = $(e.currentTarget).data('sessionCode');\n if (urlLogout && sessionCode) {\n $.ajax({\n complete: xhr => {\n if (xhr.status === 200) {\n if (window.googleyolo) {\n window.googleyolo\n .disableAutoSignIn()\n .then(\n () => {\n // Do nothing\n },\n () => {\n // Error, write cookie to disable onetap\n setCookie('ck_disable_onetap', 'true', 1 / 24);\n }\n )\n .finally(() => {\n window.parent.location.reload(true);\n });\n } else {\n // Just disable One Tap by cookie and reload page\n setCookie('ck_disable_onetap', 'true', 1 / 24);\n window.parent.location.reload(true);\n }\n }\n },\n crossDomain: true,\n data: {\n sessionCode\n },\n dataType: 'jsonp',\n url: urlLogout\n });\n }\n });\n }\n }\n };\n } else {\n tippyConfig = {\n delay: 0,\n arrow: tippyArrow,\n arrowType: 'sharp',\n duration: 0,\n animation: 'scale',\n placement: 'bottom',\n theme: `light base ${tippyTheme}`,\n allowTitleHTML: tippyTitle,\n maxWidth: '300px',\n interactive: true,\n trigger: tippyTrigger,\n html: tippytemplateId\n };\n }\n\n tippy(`.Header ${tippySelector}`, tippyConfig);\n }\n });\n}\n\nmodule.exports = {\n initTooltips\n};\n","/* ==========================================================================\n ModalOrigins > Client > Prototype\n ========================================================================== */\n\n/* Prototype */\nconst prototype = {\n /* Add event listener */\n addEventListener: function addEventListener() {\n /* Origin List */\n this.origin.addEventListener();\n\n return this;\n },\n /* Remove event listener */\n removeEventListener: function removeEventListener() {\n /* Origin List */\n this.origin.removeEventListener();\n\n return this;\n }\n};\n\n/* Exports */\nmodule.exports = prototype;\n","/* ==========================================================================\n HeaderMasterExpedient > Prototype\n ========================================================================== */\n\n/* Modules */\nconst { Store } = require('@bluekiri/alexandria/helpers/state');\n\nconst { take } = require('rxjs/operators');\nconst { fromEvent, of } = require('rxjs');\nconst { actions, types } = require('./store/actions');\nconst { reducer } = require('./store/reducer');\n\nconst services = require('./services');\n\n/* Prototype */\nconst prototype = {\n /* Setup store */\n setupStore() {\n if (this.store) return this;\n\n this.store = new Store({\n headerMasterExpedient: reducer\n });\n\n return this;\n },\n /* Setup actions */\n setupActions() {\n if (this.actions) return this;\n\n this.actions = {\n destroy: () => {\n return this.store.dispatch(actions.destroy());\n },\n logout: () => {\n return this.store.dispatch(actions.logout());\n }\n };\n\n return this;\n },\n /* Setup reactions */\n setupReactions() {\n if (this.reactions) return this;\n\n this.reactions = {\n destroy: this.store.subscribe((state, action) => {\n if (action.type !== types.DESTROY) return;\n\n /* Unsubscribe */\n this.unsubscribe();\n [...Object.keys(this.reactions)].forEach(key => this.reactions[key].unsubscribe());\n\n /* Clean DOM */\n this.element.parentNode.removeChild(this.element);\n\n /* Clean references */\n [...Object.keys(this)].forEach(key => delete this[key]);\n }),\n logout: this.store.subscribe((state, action) => {\n if (action.type !== types.LOGOUT) return;\n\n services\n .logout(this.config.endpoints.logout)\n .pipe(take(1))\n .subscribe({\n next: response => {\n if (response.result) {\n this.actions.destroy();\n }\n },\n error: err => {\n return of({ error: true, message: err.message });\n }\n });\n })\n };\n\n return this;\n },\n /* Subscribe */\n subscribe() {\n if (this.subscriptions) this.unsubscribe();\n\n this.subscriptions = {\n logout: fromEvent(this.hooks.logout, 'click').subscribe(() => {\n this.actions.logout();\n })\n };\n\n return this;\n },\n /* Unsubscribe */\n unsubscribe() {\n if (!this.subscriptions) return this;\n\n [...Object.keys(this.subscriptions)].forEach(key => this.subscriptions[key].unsubscribe());\n\n return this;\n },\n /* Start */\n start() {\n if (!this.config.start) return this;\n\n return this;\n },\n /* Init */\n init() {\n if (!this.config.init) return this;\n\n /* Setup store */\n this.setupStore();\n\n /* Setup actions */\n this.setupActions();\n\n /* Setup reactions */\n this.setupReactions();\n\n /* Subscribe */\n this.subscribe();\n\n /* Start */\n this.start();\n\n return this;\n }\n};\n\n/* Exports */\nmodule.exports = prototype;\n","/* ==========================================================================\n ModalOrigins > Client > Config\n ========================================================================== */\n\n/* Config */\nconst config = {\n type: {\n modal: 'modal-origins'\n },\n css: {\n modal: 'modal--origins'\n }\n};\n\n/* Exports */\nmodule.exports = () => config;\n","/* ==========================================================================\n Modal > Client\n ========================================================================== */\n\n/* Import modules */\nconst { elementExist } = require('@bluekiri/alexandria/helpers/domHelpers');\nconst { randomId } = require('@bluekiri/alexandria/helpers/dataHelpers');\nconst config = require('./config');\nconst prototype = require('./prototype');\n\n/* Utilities functions */\nconst modalInStore = instance => instance.getStore().filter(item => item.type === instance.type);\nconst modalIsUnique = instance => modalInStore(instance).length > 0;\nconst getTriggers = instance => instance.config.triggers;\n\n/**\n * Modal component\n * @param {selector} String selector for the component in the client side.\n */\nmodule.exports = function ModalClient(selector = '[data-component=\"Modal\"]', configuration = {}) {\n if (elementExist(selector)) {\n /* Build instance */\n const instance = Object.create(prototype);\n\n /* Config */\n instance.config = { ...config(), ...configuration };\n\n /* Element reference */\n instance.element = document.querySelector(selector);\n\n /* Id reference */\n instance.id = instance.element.dataset.id || randomId('modal');\n\n /* Type reference control */\n instance.type = configuration.type;\n\n if (modalIsUnique(instance)) return checkUniqueModal(instance);\n\n /* Auto init */\n if (instance.config.init) instance.init();\n\n return instance;\n }\n};\n\nfunction checkUniqueModal(instance) {\n /* Get referene to the trigger for this modal to apply to the store one */\n const triggers = getTriggers(instance);\n\n /* Remove from dom newly created modal to replace it */\n instance.removeFromDom();\n\n /* Replace instance with the current in store */\n const newInstance = modalInStore(instance)[0];\n\n newInstance.config.triggers.push(...triggers);\n\n /* Init new triggrs */\n newInstance.addTriggers(triggers);\n\n return newInstance;\n}\n","/* ==========================================================================\n ModalMsi > Client > Config\n ========================================================================== */\n\n/* Config */\nconst config = {\n type: {\n modal: 'modal-msi',\n image: 'modal-msi-image'\n },\n css: {\n modal: 'modal--msi'\n }\n};\n\n/* Exports */\nmodule.exports = () => config;\n","/* ==========================================================================\n ModalMsi > Client\n ========================================================================== */\n\n/* Import modules */\nconst { elementExist } = require('@bluekiri/alexandria/helpers/domHelpers');\nconst ModalClient = require('@bluekiri/alexandria-contrib-components/components/modal/client/js');\nconst ImageClient = require('@bluekiri/alexandria-contrib-components/components/image/client/js');\nconst config = require('./config');\n\n/**\n * ModalMsi component\n * @param {selector} String selector for the component in the client side.\n */\nmodule.exports = function ModalMsi(\n selector = `[data-component=\"Modal\"][data-type=\"${config().type.modal}\"]`,\n configuration = {}\n) {\n if (elementExist(selector)) {\n /* Instance */\n const instance = {};\n\n /* Element */\n instance.element = document.querySelector(selector);\n\n /* Config */\n instance.config = { ...config(), ...configuration };\n\n /* Images */\n instance.images = [...instance.element.querySelectorAll('[data-component=\"Image\"]')].map((item, index) =>\n ImageClient(`${selector} [data-component=\"Image\"][data-type=\"${config().type.image}-${index}\"]`, {\n ...configuration.image\n })\n );\n\n /* Modal */\n instance.modal = ModalClient(selector, {\n ...configuration.modal,\n type: config().type.modal\n });\n\n /* Returns */\n return instance;\n }\n};\n","const $ = require('jquery');\n\nconst ModalMsiClient = require('../../../modal-msi/client/js');\nconst ModalOriginsClient = require('../../../modal-origins/client/js');\nconst HeaderMasterExpedient = require('../../../header-master-expedient/client/js');\n\nconst { initWelcome } = require('./welcome');\nconst { initTooltips } = require('./tooltip');\nconst { getCookie, setCookie } = require('./cookie');\n\n// eslint-disable-next-line max-statements\n$(() => {\n // Welcome\n initWelcome();\n\n // Tooltips\n initTooltips();\n\n // Modal Origins\n ModalOriginsClient('.Header [data-component=\"Modal\"][data-type=\"modal-origins\"]', {\n modal: {\n triggers: [document.querySelector('.Header [data-modal-open=\"modal-origins\"]')]\n }\n });\n\n // Modal MSI\n ModalMsiClient('.Header [data-component=\"Modal\"][data-type=\"modal-msi\"]', {\n modal: {\n triggers: [...document.querySelectorAll('[data-modal-open=\"modal-msi\"]')]\n }\n });\n\n // Header Master Expedient\n HeaderMasterExpedient('[data-component=\"HeaderMasterExpedient\"]');\n\n // Login Modal\n const modalCookie = getCookie('login_modal_closed');\n const closeButton = $('.close-button');\n const loginModal = $('#loginModal');\n const warningCookie = 'warning_closed';\n\n closeButton.click(() => {\n document.cookie = 'login_modal_closed=1; expire=; path=/;';\n loginModal.css('display', 'none');\n });\n\n if (loginModal && modalCookie === '') {\n setTimeout(() => {\n loginModal.css('display', 'block');\n }, 6000);\n }\n\n /* Event to close top warning and cookies */\n checkWarning(warningCookie);\n $('.message-alert__content-close').on('click', () => {\n setCookie(warningCookie);\n $(`.message-alert`).addClass('message-alert__hidden');\n });\n\n // DROPDOWN LANGUAGE ITEM CLICK EVENT\n $('.options-list__item--language').on('click', () => {\n const elementLanguageDropdown = $('.dropdown--language .dropdown__item');\n if (elementLanguageDropdown) {\n elementLanguageDropdown.on('click', event => {\n const config = JSON.parse($('.dropdown--language').attr('data-config'));\n const languageSelected = event.currentTarget.dataset.language;\n\n if (config.language_url) {\n $.ajax({\n contentType: 'application/json; charset=utf-8',\n data: JSON.stringify({\n language: languageSelected\n }),\n dataType: 'json',\n success: () => {\n window.parent.location.reload();\n },\n type: 'POST',\n url: config.language_url\n });\n } else {\n console.warn(\"WARNING: Origin url hasn't been defined.\");\n }\n });\n }\n });\n\n // DROPDOWN CURRENCY ITEM CLICK EVENT\n $('.options-list__item--currency').on('click', () => {\n const elementCurrencyDropdown = $('.dropdown--currency .dropdown__item');\n if (elementCurrencyDropdown) {\n elementCurrencyDropdown.on('click', event => {\n const config = JSON.parse($('.dropdown--currency').attr('data-config'));\n const currencySelected = event.currentTarget.dataset.currency;\n\n if (config.currency_url) {\n $.ajax({\n contentType: 'application/json; charset=utf-8',\n data: JSON.stringify({\n currency: currencySelected\n }),\n dataType: 'json',\n success: () => {\n window.parent.location.reload();\n },\n type: 'POST',\n url: config.currency_url\n });\n } else {\n console.warn(\"WARNING: Origin url hasn't been defined.\");\n }\n });\n }\n });\n});\n\naddClassActive('.options-list__item--currency', '.dropdown--currency');\naddClassActive('.options-list__item--language', '.dropdown--language');\n\nfunction addClassActive(listItemClass, dropdownClass) {\n const listItem = $(listItemClass);\n const dropdown = $(dropdownClass);\n\n if (dropdown.hasClass('dropdown--language') || dropdown.hasClass('dropdown--currency')) {\n listItem.addClass('active');\n } else {\n listItem.removeClass('active');\n }\n}\n\nconst userAgent = navigator.userAgent.toLowerCase();\n// eslint-disable-next-line max-len\nconst isTablet = /(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/.test(\n userAgent\n);\n\nif (isTablet) {\n $('.Header .menu-tabs .menu-item.dropdown').on('click', e => {\n if ($(e.currentTarget).hasClass('js-menu-clicked')) {\n return true;\n }\n $('.Header .menu-tabs .menu-item.dropdown').removeClass('js-menu-clicked');\n $(e.currentTarget).addClass('js-menu-clicked');\n e.preventDefault();\n return false;\n });\n}\n\nfunction checkWarning(cookie) {\n if (getCookie(cookie) === '') {\n $(`.message-alert`).removeClass('message-alert__hidden');\n }\n}\n","/* ==========================================================================\n ModalOrigins > Client\n ========================================================================== */\n\n/* Import modules */\nconst { elementExist } = require('@bluekiri/alexandria/helpers/domHelpers');\nconst ModalClient = require('@bluekiri/alexandria-contrib-components/components/modal/client/js');\nconst OriginListCLient = require('@bluekiri/alexandria-contrib-components/components/origin-list/client/js');\nconst prototype = require('./prototype');\nconst config = require('./config');\n\n/**\n * ModalOrigins component\n * @param {selector} String selector for the component in the client side.\n */\nmodule.exports = function ModalOrigins(\n selector = `[data-component=\"Modal\"][data-type=\"${config().type.modal}\"]`,\n configuration = {}\n) {\n if (elementExist(selector)) {\n /* Instance */\n const instance = Object.create(prototype);\n\n /* Element */\n instance.element = document.querySelector(selector);\n\n /* Config */\n instance.config = { ...config(), ...configuration };\n\n /* Origins */\n instance.origin = OriginListCLient(`${selector} [data-component=\"OriginList\"]`, {\n ...configuration.origin\n });\n\n /* Modal */\n instance.modal = ModalClient(selector, {\n ...configuration.modal,\n type: config().type.modal,\n onOpen: () => instance.addEventListener(),\n onClose: () => instance.removeEventListener()\n });\n\n /* Clean */\n instance.removeEventListener();\n\n /* Return */\n return instance;\n }\n};\n","/* ==========================================================================\n HeaderMasterExpedient > Client > Config\n ========================================================================== */\n\n/* Import modules */\n\n/* Config */\nconst config = {\n component: 'HeaderMasterExpedient',\n name: 'header-master-expedient',\n init: true,\n start: true\n};\n\nmodule.exports = () => config;\n","/* ==========================================================================\n HeaderMasterExpedient > Client\n ========================================================================== */\n\n/* Import modules */\nconst { elementExist } = require('@bluekiri/alexandria/helpers/domHelpers');\nconst prototype = require('./prototype');\nconst config = require('./config');\n\n/**\n * HeaderMasterExpedient component\n * @param {selector} String selector for the component in the client side.\n */\nmodule.exports = function HeaderMasterExpedient(\n selector = '[data-component=HeaderMasterExpedient]',\n configuration = {}\n) {\n if (elementExist(selector)) {\n /* Instance */\n const instance = Object.create(prototype);\n\n /* Element */\n instance.element = document.querySelector(selector);\n\n /* Config */\n instance.config = {\n ...config(),\n ...configuration,\n ...(function getConfig() {\n if (!instance.element.dataset.config) return '';\n\n const result = JSON.parse(instance.element.dataset.config);\n instance.element.dataset.config = '';\n\n return result;\n })()\n };\n\n /* Hooks */\n instance.hooks = {\n logout: instance.element.querySelector('[data-logout]')\n };\n\n /* Init */\n instance.init();\n\n /* Return */\n return instance;\n }\n};\n","/* ==========================================================================\n HeaderMasterExpedient > Client > Services\n ========================================================================== */\n\n/* Modules */\nconst { of } = require('rxjs');\nconst { catchError, switchMap } = require('rxjs/operators');\nconst { fromFetch } = require('rxjs/fetch');\n\n/**\n * Get destinations from a remote server\n * @param {string} endpoint\n * @param {object} params\n * @returns {JSON} data\n */\nfunction logout(endpoint = '') {\n /* Build url */\n\n return fromFetch(endpoint).pipe(\n switchMap(response => {\n if (response.ok) {\n return response.json();\n }\n return of({ error: true, message: `Error fetching data searcher ${response.statusText}` });\n }),\n catchError(err => {\n return of({ error: true, message: err.message });\n })\n );\n}\n\n/* Exports */\nmodule.exports = {\n logout\n};\n","/* ==========================================================================\n Header > Client > Welcome\n ========================================================================== */\n\nconst $ = require('jquery');\nconst { getCookie } = require('./cookie');\n\nfunction initWelcome() {\n const modalNewUserCookie = getCookie('login_modal_new_user');\n\n if (modalNewUserCookie === '') {\n const $containerModalLogin = $('#loginModal');\n const literals = $('#loginModal').data('literals');\n const links = {\n login: {\n href: $containerModalLogin.find('.log-in__link').attr('href'),\n title: $containerModalLogin.find('.log-in__link').attr('title')\n },\n create: {\n href: $containerModalLogin.find('.footer-modal__link').attr('href'),\n title: $containerModalLogin.find('.footer-modal__link').attr('title')\n }\n };\n\n document.cookie = 'login_modal_new_user=1; expire=; path=/;';\n replaceData({ $containerModalLogin, literals, links });\n }\n}\nfunction replaceData({ $containerModalLogin, literals, links }) {\n if ($containerModalLogin) return;\n $containerModalLogin.find('.content__title').html(literals.loginModalNewUserTitle);\n $containerModalLogin.find('.content__description').html(literals.loginModalNewUserDescription);\n $containerModalLogin.find('.log-in .Button').html(literals.loginModalNewUserButtonText);\n $containerModalLogin.find('.footer-modal__text').html(`${literals.loginModalNewUserFooterText}  `);\n $containerModalLogin.find('.footer-modal__link').html(literals.loginModalButtonText);\n $containerModalLogin.find('.icon__content').html('');\n $containerModalLogin\n .find('.log-in__link')\n .attr('href', links.create.href)\n .attr('title', links.create.title);\n $containerModalLogin.find('.log-in__link').html(links.create.title);\n $containerModalLogin\n .find('.footer-modal__link')\n .attr('href', links.login.href)\n .attr('title', links.login.title);\n $containerModalLogin.find('.footer-modal__link').html(links.login.title);\n}\n\nmodule.exports = {\n initWelcome\n};\n","/* ==========================================================================\n HeaderMasterExpedient > Client > Store > Reducer\n ========================================================================== */\n\n/* Modules */\nconst { types } = require('./actions');\n\n/* Initial state */\nconst initialState = {};\n\n/* Reducer */\nfunction reducer(state = initialState, action) {\n switch (action.type) {\n case types.DESTROY:\n return state;\n case types.LOGOUT:\n return {\n ...state\n };\n default:\n return state;\n }\n}\n\n/* Exports */\nmodule.exports = {\n reducer\n};\n","/* ==========================================================================\n Modal > Client > Prototype\n ========================================================================== */\n\n/* Imports */\nconst { addToStore, removeFromStore } = require('@bluekiri/alexandria/helpers/store');\n\n/* Modal store */\nlet store = [];\n\nconst modal = {\n /* Get header el */\n getHeaderEl() {\n return this.element.querySelector('[data-modal-header]');\n },\n /* Get header text */\n getHeaderText() {\n return this.getHeaderEl().innerText;\n },\n /* Set header text */\n setHeaderText(text = false) {\n if (text) this.getHeaderEl().innerText = text;\n\n return this;\n },\n /* Add triggers */\n addTriggers: function Fn(triggers) {\n triggers.forEach(trigger => {\n this.bindEvents();\n trigger.addEventListener('click', this.onClickTrigger);\n });\n },\n\n /* Set close button */\n setClose: function Fn() {\n if (!this.config.hasClose) return this;\n\n this.closeElement = this.element.querySelector(`[${this.config.modalClose}]`);\n\n return this;\n },\n\n /* Is open status */\n isOpen: function Fn() {\n return this.isVisible;\n },\n\n /* Display modal */\n display: function Fn() {\n /* Add to dom in case it is loading modal */\n if (this.config.autoDom) this.addToDom();\n\n this.element.setAttribute('aria-hidden', 'false');\n this.element.classList.add(this.config.cssVisible);\n document.body.classList.add(this.config.cssModalBody);\n this.isVisible = true;\n if (!this.config.isLoading) this.addEventListener();\n\n // Fire external callbacks before open panel\n this.onOpen();\n\n return this;\n },\n\n /* Hide modal */\n hide: function Fn() {\n this.element.setAttribute('aria-hidden', 'true');\n this.element.classList.remove(this.config.cssVisible);\n document.body.classList.remove(this.config.cssModalBody);\n this.isVisible = false;\n if (!this.config.isLoading) this.removeEventListener();\n\n /* Remove from dom in case it is loading modal */\n if (this.config.isLoading) this.removeFromDom();\n\n /* Fire external callbacks before open panel */\n this.onClose();\n\n return this;\n },\n\n /* Add to dom */\n addToDom: function Fn() {\n document.body.appendChild(this.element);\n\n return this;\n },\n\n /* Remove from dom */\n removeFromDom: function Fn() {\n this.element.parentNode.removeChild(this.element);\n\n return this;\n },\n\n /* onOpen callBacks */\n onOpen: function Fn(event = false) {\n /* Fire external callbacks */\n if (this.config.onOpen) this.config.onOpen.call(this, this, event);\n\n return this;\n },\n\n /* onClose callBacks */\n onClose: function Fn(event = false) {\n /* Fire external callbacks */\n if (this.config.onClose) this.config.onClose.call(this, this, event);\n\n return this;\n },\n\n /* On click close */\n onClickClose: function Fn(event) {\n /* Hide */\n this.hide();\n\n /* Remove from dom */\n if (this.config.autoDom) this.removeFromDom();\n\n /* Prevent bubbling */\n event.stopPropagation();\n event.preventDefault();\n\n return this;\n },\n\n /* On key down */\n onKeydown: function Fn(event) {\n /* Esc key */\n if (!(event.keyCode === 27)) return this;\n\n /* Hide */\n this.hide();\n\n /* Remove from dom */\n if (this.config.autoDom) this.removeFromDom();\n\n /* Prevent bubbling */\n event.stopPropagation();\n\n return this;\n },\n\n /* On click trigger */\n onClickTrigger: function Fn(event) {\n /* Add to dom first */\n if (this.config.autoDom) this.addToDom();\n\n /* Display */\n this.display();\n\n /* Prevent bubbling */\n event.stopPropagation();\n\n return this;\n },\n\n /* On click modal */\n onClickModal: function Fn(event) {\n /* Prevent bubbling */\n event.stopPropagation();\n\n return this;\n },\n\n /* On click window */\n onClickWindow: function Fn() {\n /* Hide */\n this.hide();\n\n /* Remove from dom */\n if (this.config.autoDom) this.removeFromDom();\n\n return this;\n },\n\n /* Bind events */\n bindEvents: function Fn() {\n this.onClickTrigger = this.onClickTrigger.bind(this);\n this.onClickWindow = this.onClickWindow.bind(this);\n this.onClickClose = this.onClickClose.bind(this);\n this.onClickModal = this.onClickModal.bind(this);\n this.onKeydown = this.onKeydown.bind(this);\n this.onOpen = this.onOpen.bind(this);\n this.onClose = this.onClose.bind(this);\n },\n\n /* Remove event listener */\n removeEventListener: function Fn() {\n /* Window */\n document.removeEventListener('click', this.onClickWindow);\n\n /* Modal */\n this.element.firstChild.removeEventListener('click', this.onClickModal);\n\n /* Close */\n if (this.config.hasClose) this.closeElement.removeEventListener('click', this.onClickClose);\n document.removeEventListener('keydown', this.onKeydown);\n },\n\n /* Add event listener */\n addEventListener: function Fn() {\n /* Bind events */\n this.bindEvents();\n\n /* Window */\n document.addEventListener('click', this.onClickWindow);\n\n /* Modal */\n this.element.firstChild.addEventListener('click', this.onClickModal);\n\n /* Close */\n if (this.config.hasClose) this.closeElement.addEventListener('click', this.onClickClose);\n document.addEventListener('keydown', this.onKeydown);\n },\n\n /* Add to store */\n addToStore: function Fn() {\n /* Control unique instances of same modal */\n if (this.getStore().filter(item => item.type === this.type).length > 0) return this;\n\n /* Quarry function */\n addToStore(this, store);\n\n return this;\n },\n\n /* Remove from store */\n removeFromStore: function Fn() {\n store = removeFromStore(this, store);\n\n return this;\n },\n\n /* Get store */\n getStore: function Fn() {\n return store;\n },\n\n /* Init */\n init: function Fn() {\n /* Set close button */\n this.setClose();\n\n /* Add triggers */\n if (this.config.triggers.length > 0) this.addTriggers(this.config.triggers);\n\n /* Add to store */\n if (this.config.autoStore) this.addToStore();\n\n /* Remove from dom */\n if (this.config.autoDom) this.removeFromDom();\n }\n};\n\nmodule.exports = modal;\n"],"sourceRoot":""}