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,EAAYC,GAEvB,OADWW,EAAQZ,GAAcS,EAAWE,GAChCX,EAAYU,EAAaT,EAAU,GACjD,C,kBClDA,IAAIY,EAAYjB,EAAQ,OAqBxBE,EAAOC,QALP,SAAcO,GACZ,IAAIhB,EAAkB,MAATgB,EAAgB,EAAIA,EAAMhB,OACvC,OAAOA,EAASuB,EAAUP,EAAO,EAAGhB,GAAU,EAChD,C","sources":["webpack://cms-web/./app/frontend/src/blocks/masonry_gallery/masonry_gallery.analytics.js","webpack://cms-web/./app/frontend/src/blocks/masonry_gallery/masonry_gallery.js","webpack://cms-web/./node_modules/lodash/_baseMap.js","webpack://cms-web/./node_modules/lodash/_baseSlice.js","webpack://cms-web/./node_modules/lodash/first.js","webpack://cms-web/./node_modules/lodash/head.js","webpack://cms-web/./node_modules/lodash/map.js","webpack://cms-web/./node_modules/lodash/tail.js"],"sourcesContent":["import { sendUtagEvent } from '../../core/analytics/utag_events'\n\nexport function initializeUtagEvents() {\n document.querySelectorAll('.js-masonry-gallery .utag-info-photos').forEach(element => {\n const isFhiPage = document.querySelector('html').dataset.fhiTest !== undefined\n const fhiPageType = document.querySelector('html').dataset.fhiTest\n\n element.addEventListener('click', () => {\n const data = {\n event_name: 'hotel_multimedia',\n event_cat: 'hotel information',\n event_act: 'see photos and videos',\n event_lbl: 'body',\n event_purpose: 'inspiration',\n event_structure: 'body',\n }\n\n if (!isFhiPage) {\n sendUtagEvent({ data: { ...data } })\n } else {\n sendUtagEvent({ data: { ...data, page_variation: fhiPageType } })\n }\n })\n })\n}\n","import _filter from 'lodash/filter'\nimport _first from 'lodash/first'\nimport _map from 'lodash/map'\nimport _tail from 'lodash/tail'\n\nimport { initializeUtagEvents } from './masonry_gallery.analytics'\n\nexport function init() {\n const $block = $('.js-masonry-gallery')\n\n initializeUtagEvents()\n\n const MAX_VISIBLE_ITEMS = IB.currentDevice === 'mobile' ? 1 : 3\n const MODE_CLASSES = 'full double triple quadruple'\n const FULL_MODE_CLASS = 'full'\n\n const CURRENT_DEVICE = IB.currentDevice === 'tablet' || IB.currentDevice === 'desktop' ? 'desktop' : 'mobile'\n\n // Ejemplo de controlPresence. Determina qué tipo de contenido mostrar en qué dispositivo\n // {\n // \"mobile\": {\"images\":true, \"videos\":true, \"virtual_tours\":false, \"webcam\":false},\n // \"desktop\": {\"images\":true, \"videos\":false, \"virtual_tours\":false, \"webcam\":true}\n // }\n const controlPresence = $block.data().presenceControl\n const $masonryWrapper = $block.find('.masonry-wrapper')\n const $newLeftBlock = $('