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AAYD,EACpB,CACA,GAAIzG,EAAY,CACZ,IAAI2G,EAAWlK,SAAS+J,cAAc,OACtCG,EAASvH,UAAU8G,IAAI,qBACvBpG,EAAI4G,YAAYC,EACpB,IAGR,K,2EC1BA,MAAMC,EAAqB,4FACdnP,EAAqBC,GAAWA,EAAOuH,cAAc2H,GACrDC,EAA2BnP,GAAWA,EAAOgF,iBAAiBkK,E","sources":["webpack:///./assets/src/scripts/utilities/freeze.ts","webpack:///./assets/src/scripts/constants/customMessages.ts","webpack:///./assets/src/scripts/constants/whatInput.ts","webpack:///./assets/src/scripts/utilities/whatInput.ts","webpack:///./assets/src/scripts/base/commonInterface.ts","webpack:///./assets/src/scripts/base/baseComponent.ts","webpack:///./assets/src/scripts/components/productCarouselEinstein.ts","webpack:///./assets/src/scripts/utilities/analyticsUtils.ts","webpack:///./assets/src/scripts/utilities/carouselUtils.ts","webpack:///./assets/src/scripts/utilities/focusableElementUtils.ts"],"sourcesContent":["export default function deepFreeze(o) {\n    Object.freeze(o);\n    Object.getOwnPropertyNames(o).forEach(function (prop) {\n        if (Object.hasOwnProperty.call(o, prop) && o[prop] !== null && (typeof o[prop] === 'object' || typeof o[prop] === 'function') && !Object.isFrozen(o[prop])) {\n            deepFreeze(o[prop]);\n        }\n    });\n    return o;\n}\n","import deepFreeze from '../utilities/freeze';\nexport default deepFreeze({\n    WINDOW: {\n        CLICK_EVENT: 'body:click:event',\n    },\n    BODY: {\n        TOGGLE_OVERLAY: 'toggle:overlay',\n        ON_OVERLAY: 'on:overlay',\n        OFF_OVERLAY: 'off:overlay',\n    },\n    HEADER: {\n        UPDATE_TRAP: 'header:trap:update',\n        IN_PDP: 'header:inPdp',\n    },\n    BURGER: {\n        TOGGLE_MENU: 'menu:toggle',\n    },\n    BREAKPOINTER: {\n        BREAKPOINT_CHANGE: 'breakpoint:change',\n    },\n    DROP_DOWN: {\n        OPEN: 'dropdown:open',\n        CLOSE: 'dropdown:close',\n    },\n    PRODUCT_CAROUSEL: {\n        UPDATE_IMAGES: 'product:carousel:update_images',\n        UPDATE_ZOOM_IMAGES: 'product:carousel:update_zoom_images',\n    },\n    BRANDS: {\n        UPDATE_GRID: 'brands:update:grid',\n        UPDATE_STORES: 'brands:update:stores',\n        SEARCH_BY_STORE: 'brands:search:bystore',\n    },\n    MODAL_EVENTS: {\n        show: 'modal:show',\n        close: 'modal:close',\n    },\n});\n","import deepFreeze from '../utilities/freeze';\nexport default deepFreeze({\n    INPUT: {\n        KEYBOARD: 'keyboard',\n        MOUSE: 'mouse'\n    }\n});\n","import whatInput from 'what-input';\nexport const ask = (strategy = 'input') => {\n    return whatInput.ask(strategy);\n};\n","import { getAllFocusableElements, getFirstFocusable } from '../utilities/focusableElementUtils';\nimport CustomMessages from '../constants/customMessages';\nimport EventBus from '../libs/eventBus';\nimport WHAT_INPUT from '../constants/whatInput';\nimport { ask } from '../utilities/whatInput';\nimport config from 'gia/config';\nexport default class CommonInterface {\n    constructor() {\n        config.set('log', true);\n        window.EventBus = EventBus;\n        window.CUSTOM_MESSAGES = this.CUSTOM_MESSAGES;\n        this._grabMessages();\n    }\n    get CUSTOM_MESSAGES() {\n        return CustomMessages;\n    }\n    get Messages() {\n        return {};\n    }\n    get isKeyboard() {\n        return this._isKeyboard();\n    }\n    get isMouse() {\n        return this._isMouse();\n    }\n    get whatInput() {\n        return this._whatInput();\n    }\n    _checkMessages() {\n        for (const message in this.Messages) {\n            if (window.eventQueue.get(message)) {\n                const ref = this.Messages[message].bind(this);\n                window.eventQueue.get(message).map((payload) => {\n                    ref(payload);\n                });\n                window.eventQueue.delete(message);\n            }\n        }\n    }\n    _grabMessages() {\n        this._messages = {};\n        for (const message in this.Messages) {\n            if (this.Messages[message]) {\n                const __ref__ = this.Messages[message].bind(this);\n                this._messages[message] = __ref__;\n                this.GRAB(message, __ref__);\n            }\n        }\n    }\n    _ungrabMessages() {\n        for (const message in this._messages) {\n            this.UNGRAB(message, this._messages[message]);\n        }\n    }\n    objectIsEmpty(object) {\n        for (let key in object) {\n            if (object.hasOwnProperty(key))\n                return false;\n        }\n        return true;\n    }\n    /**\n     *\n     * EMIT\n     *\n     * @param {string} message\n     * @param {Object} payload\n     */\n    EMIT(message, payload) {\n        return EventBus.emit(message, payload);\n    }\n    /**\n     *\n     * GRAB\n     *\n     * @param {string} message\n     * @param {Function} callBack\n     */\n    GRAB(message, callBack) {\n        if (!callBack)\n            return;\n        EventBus.on(message, callBack);\n    }\n    /**\n     *\n     * UNGRAB\n     *\n     * @param {string} message\n     * @param {Function} callBack\n     */\n    UNGRAB(message, callBack) {\n        if (!callBack)\n            return;\n        EventBus.off(message, callBack);\n    }\n    getFirstFocusable(parent) {\n        return getFirstFocusable(parent);\n    }\n    getFocusableElements(parent) {\n        return getAllFocusableElements(parent);\n    }\n    _isMouse() {\n        return ask() === WHAT_INPUT.INPUT.MOUSE;\n    }\n    _isKeyboard() {\n        return ask() === WHAT_INPUT.INPUT.KEYBOARD;\n    }\n    _whatInput() {\n        return ask();\n    }\n    _destroy() {\n        this._ungrabMessages();\n    }\n}\n","import Bean from 'bean';\nimport CommonInterface from './commonInterface';\nimport deepFreeze from '../utilities/freeze';\nexport default class BaseComponent extends CommonInterface {\n    /**\n     *\n     * constructor\n     *\n     * @param {Element} element\n     */\n    constructor(element) {\n        super();\n        this._componentElement = element;\n        this._componentElement.setAttribute('data-component-init', 'true');\n        this._checkMessages();\n        //console.log(`%c[${this.COMPONENT_NAME}]%c initialized`, 'color:orange;', 'color:white;');\n    }\n    /**\n     * @returns {ComponentElement}\n     */\n    get _el() {\n        return this._componentElement;\n    }\n    get _options() {\n        const compOptions = {};\n        const options = Object.assign({}, this._el.dataset);\n        const optionsEntires = Object.keys(options).filter((entry) => entry.includes('option'));\n        optionsEntires.forEach((entry) => {\n            const cleanEntry = BaseComponent.cleanOptionKey(entry);\n            let optionValue;\n            if (options[entry].includes('{') && options[entry].includes('}')) {\n                optionValue = JSON.parse(options[entry].replace(/'/g, '\"'));\n            }\n            else {\n                optionValue = BaseComponent.convertType(options[entry]);\n            }\n            compOptions[cleanEntry] = optionValue;\n        });\n        return deepFreeze(compOptions);\n    }\n    get COMPONENT_NAME() {\n        return this._el.getAttribute('data-component');\n    }\n    static convertType(option) {\n        let optionReturn;\n        switch (option) {\n            case 'false':\n                optionReturn = false;\n                break;\n            case 'true':\n                optionReturn = true;\n                break;\n            case 'null':\n                optionReturn = null;\n                break;\n            default:\n                optionReturn = option;\n                break;\n        }\n        return optionReturn;\n    }\n    static cleanOptionKey(key) {\n        const str = key.replace('option', '');\n        return `${str.charAt(0).toLocaleLowerCase()}${str.slice(1)}`;\n    }\n    /**\n     *\n     * $on\n     *\n     * @param {String} events\n     * @param {Function} cb\n     * @param {Element} [element = this._el]\n     * @param {Array|String|Element} [elements = null]\n     */\n    $on(events, cb, element = this._el, elements = null) {\n        if (!element || !events || !cb)\n            return;\n        if (!elements) {\n            Bean.on(element, events, (e) => {\n                if (e)\n                    e.stopPropagation();\n                cb(e);\n            });\n        }\n        else {\n            Bean.on(element, events, elements, (e) => {\n                if (e)\n                    e.stopPropagation();\n                cb(e);\n            });\n        }\n    }\n    /**\n     *\n     * $one\n     *\n     * @param {String} events\n     * @param {Function} cb\n     * @param {Element} [element = this._el]\n     */\n    $one(events, cb, element = this._el) {\n        Bean.one(element, events, cb);\n    }\n    /**\n     *\n     * $off\n     *\n     * @param {String} events\n     * @param {Element} [element = this._el]\n     */\n    $off(events, element = this._el) {\n        Bean.off(element, events);\n    }\n    /**\n     *\n     * $fire\n     *\n     * @param {String} events\n     * @param {Element} [element = this._el]\n     */\n    $fire(events, element = this._el) {\n        Bean.fire(element, events);\n    }\n    updateAriaAttributes(element) {\n        const attributes = [...element.attributes]\n            .filter((attr) => {\n            return attr.nodeName.indexOf('has') === -1;\n        })\n            .filter((attr) => {\n            return attr.nodeName.indexOf('aria') > -1 && (attr.nodeValue === 'true' || attr.nodeValue === 'false');\n        })\n            .map((attr) => {\n            return attr.nodeName;\n        });\n        attributes.forEach((attr) => {\n            element.setAttribute(attr, element.getAttribute(attr) === 'true' ? 'false' : 'true');\n        });\n    }\n}\n","import BaseComponent from '../base/baseComponent';\nimport carouselUtils from '../utilities/carouselUtils';\nimport get from 'axios';\nimport analyticsUtils from '../utilities/analyticsUtils';\nimport Swiper, { A11y, Navigation, Autoplay } from 'swiper';\nSwiper.use([Navigation, A11y, Autoplay]);\nexport default class ProductCarouselEinstein extends BaseComponent {\n    constructor(element) {\n        super(element);\n        this.position = 0;\n        this.productIds = [];\n        this.trackedProducts = [];\n        this.indexMap = new Map();\n        this.firstPushToDataLayer = true;\n        const recommender = this._el.getAttribute('data-recommender');\n        this.recommender = recommender;\n        this.visibleSlides = parseInt(this._el.dataset.visibleSlides, 10);\n        if (recommender && recommender !== 'false') {\n            this.getEinsteinRecommendations();\n        }\n        else {\n            this.animationHandler();\n        }\n        this.getProductsIds();\n        if (window.innerWidth < 1024) {\n            this.position = 1;\n            this.trackedProducts.push(this.productIds[0]);\n        }\n        else {\n            this.position = 4;\n            this.trackedProducts.push(...this.productIds.slice(0, this.position));\n        }\n        window.addEventListener('scroll', () => {\n            if (!this.firstPushToDataLayer) {\n                return;\n            }\n            if (this.isCarouselVisible()) {\n                this.prepareDataLayer();\n            }\n        });\n    }\n    getEinsteinRecommendations() {\n        const einsteinUtils = this.getEinsteinUtils();\n        if (einsteinUtils) {\n            let parentElement = this._el;\n            return this.processRecommendationsTile(parentElement, einsteinUtils);\n        }\n    }\n    processRecommendationsTile(parentElement, einsteinUtils) {\n        let recommender = parentElement.dataset.recommender;\n        if (recommender) {\n            try {\n                let params = {\n                    userId: einsteinUtils.getCQUserId(),\n                    cookieId: einsteinUtils.getCQCookieId(),\n                    ccver: '1.01',\n                };\n                if (parentElement.dataset.recommenderType === 'product-to-product' || parentElement.dataset.recommenderType === 'complete-the-set') {\n                    let anchors = [];\n                    let productsAnchor = document.querySelectorAll('[data-einstein-pid]');\n                    productsAnchor.forEach((productEl) => {\n                        anchors.push({\n                            id: productEl.dataset.einsteinPid,\n                            sku: productEl.dataset.einsteinSecondaryId,\n                            type: productEl.dataset.einsteinGroupType,\n                            alt_id: productEl.dataset.einsteinGroupId,\n                        });\n                    });\n                    params.anchors = anchors;\n                }\n                const recommendationsReceived = (einsteinResponse) => {\n                    this.fillDomElement(einsteinResponse, parentElement);\n                };\n                const recommendationsNotReceived = (einsteinResponse) => {\n                    // this.removeNavigationCarousel(this.$el.querySelector(this.SELECTORS.list));\n                    // this.swiperHandler();\n                };\n                if (einsteinUtils.getRecs) {\n                    einsteinUtils.getRecs(einsteinUtils.clientId, recommender, params, recommendationsReceived, recommendationsNotReceived);\n                }\n                else {\n                    einsteinUtils.widgets = einsteinUtils.widgets || [];\n                    einsteinUtils.widgets.push({\n                        recommenderName: recommender,\n                        parameters: params,\n                        callback: recommendationsReceived,\n                    });\n                }\n            }\n            catch (error) {\n                console.error(error);\n            }\n        }\n    }\n    async fillDomElement(einsteinResponse, parentElement) {\n        const recommendedProducts = einsteinResponse[parentElement.dataset.recommender].recs;\n        const recommenderName = einsteinResponse[parentElement.dataset.recommender].displayMessage.toLowerCase();\n        if (recommendedProducts && recommendedProducts.length > 0) {\n            let components = [];\n            components = recommendedProducts.map((recommendedProduct) => {\n                let tileDefinition = {};\n                tileDefinition.model = {\n                    type: 'product',\n                    id: recommendedProduct.id,\n                };\n                return tileDefinition;\n            });\n            let url = this._el.dataset.recommenderUrl;\n            if (url && url !== null && url !== 'null') {\n                const { data } = await get(url, {\n                    params: {\n                        components: JSON.stringify(components),\n                        recommenderName: recommenderName,\n                    },\n                });\n                this.mountRecommenderCarousel(data);\n            }\n        }\n        else {\n            //this.removeNavigationCarousel(this.$el.querySelector(this.SELECTORS.list));\n        }\n    }\n    getEinsteinUtils() {\n        //@ts-ignore\n        let einsteinUtils = window.CQuotient;\n        if (einsteinUtils && typeof einsteinUtils.getCQUserId === 'function' && typeof einsteinUtils.getCQCookieId === 'function') {\n            return einsteinUtils;\n        }\n        return null;\n    }\n    mountRecommenderCarousel(content) {\n        let carouselList = this._el.querySelector('.productcarousel-swiper-wrapper');\n        carouselList.innerHTML = content;\n        // this.removeNavigationCarousel(carouselList);\n        this.animationHandler();\n        this._el.closest('.productcarouseleinstein').classList.remove('d-none');\n        //super.prepareDatalayer();\n    }\n    animationHandler() {\n        if (!this.recommender || this.recommender === 'false') {\n            let hideSlidesObj = this._el.dataset.positionHideSlide ? JSON.parse(this._el.dataset.positionHideSlide) : '';\n            if (hideSlidesObj && hideSlidesObj !== '' && typeof hideSlidesObj === 'object' && Object.keys(hideSlidesObj).length > 0) {\n                let slidesTile = [...this._el.querySelectorAll('.product-tile')];\n                if (slidesTile.length > 0) {\n                    let hideSlidesKeys = Object.keys(hideSlidesObj).map((key) => parseInt(key, 10));\n                    slidesTile.forEach((tile, index) => {\n                        if (hideSlidesKeys.includes(index)) {\n                            let tileParent = tile.closest('[class*=\"experience\"]');\n                            if (tileParent) {\n                                tileParent.remove();\n                            }\n                        }\n                    });\n                }\n            }\n        }\n        //@ts-ignore\n        let gallery = this._el;\n        carouselUtils.setSwiperMarkup({\n            $el: gallery,\n            hasArrows: false,\n            hasBullets: false,\n        });\n        // Now you can use Swiper\n        //@ts-ignore\n        const swiper = new Swiper(this._el, {\n            speed: 400,\n            slidesPerView: 1.2,\n            watchOverflow: true,\n            //centeredSlides: true,\n            //slidesOffsetAfter: 217,\n            spaceBetween: 20,\n            simulateTouch: false,\n            navigation: {\n                nextEl: '.swiper-button-next-einstein',\n                prevEl: '.swiper-button-prev-einstein',\n            },\n            breakpoints: {\n                1024: {\n                    //slidesPerView: 'auto',\n                    slidesPerView: 4.5,\n                    spaceBetween: 24,\n                    grabCursor: true,\n                    centeredSlides: false,\n                    slidesOffsetBefore: 80,\n                    slidesOffsetAfter: 24,\n                },\n            },\n        });\n        swiper.on('slideChange', (s) => {\n            if (swiper.previousIndex < swiper.activeIndex) {\n                this.prepareDataLayer();\n                this.position++;\n            }\n            else {\n                this.position--;\n            }\n        });\n        if ((!this.recommender || this.recommender === 'false') && this.visibleSlides > 0) {\n            this._el.closest('.productcarouseleinstein').classList.remove('d-none');\n        }\n    }\n    getProductsIds() {\n        const carouselWrapper = this._el.querySelector('.productcarousel-swiper-wrapper');\n        if (carouselWrapper) {\n            let index = 0;\n            const productTiles = carouselWrapper.querySelectorAll('.product-tile');\n            productTiles.forEach((tile) => {\n                const productId = tile.getAttribute('data-productid');\n                if (productId) {\n                    this.productIds.push(productId);\n                    this.indexMap.set(productId, index);\n                    index++;\n                }\n            });\n        }\n    }\n    prepareDataLayer() {\n        if (this.firstPushToDataLayer) {\n            const productToPush = this.productIds.slice(0, this.position);\n            this.pushDataLayer(productToPush);\n            this.firstPushToDataLayer = false;\n        }\n        else {\n            const productToPush = this.productIds.slice(this.position, this.position + 1);\n            if (productToPush.length > 0 && !this.trackedProducts.includes(productToPush[0])) {\n                this.trackedProducts.push(productToPush[0]);\n                this.pushDataLayer(productToPush);\n            }\n        }\n    }\n    isCarouselVisible() {\n        const carouselWrapper = this._el.querySelector('.productcarousel-swiper-wrapper');\n        if (!carouselWrapper) {\n            return false;\n        }\n        const boundingBox = carouselWrapper.getBoundingClientRect();\n        const carouselTop = boundingBox.top;\n        const viewportHeight = window.innerHeight || document.documentElement.clientHeight;\n        const carouselHeight = boundingBox.bottom - boundingBox.top;\n        const minimumVisiblePosition = viewportHeight - carouselHeight * 0.65;\n        return carouselTop <= minimumVisiblePosition;\n    }\n    pushDataLayer(productsIds) {\n        this.findTitleAndIndex();\n        let index;\n        if (Array.isArray(productsIds) && productsIds.length === 1) {\n            index = this.indexMap.get(productsIds[0]);\n        }\n        let data = {\n            forcedPipeline: 'ProductImpressions',\n            pids: productsIds,\n            item_list_name: this.carouselTitle,\n            item_list_id: 'carousel_' + this.carouselIndex,\n            product_index: index,\n        };\n        analyticsUtils.passThroughProcessor(data);\n    }\n    findTitleAndIndex() {\n        let parentElement = this._el.parentElement;\n        while (parentElement) {\n            if (parentElement.classList.contains('experience-einstein-productCarouselEinstein')) {\n                break;\n            }\n            parentElement = parentElement.parentElement;\n        }\n        if (parentElement) {\n            const headerDiv = parentElement.querySelector('.productcarouseleinstein-header');\n            if (headerDiv) {\n                const titleElement = headerDiv.querySelector('.title');\n                if (titleElement) {\n                    this.carouselTitle = titleElement.textContent.trim();\n                }\n            }\n        }\n        const titleElements = document.querySelectorAll('.productcarouseleinstein-header .title');\n        this.carouselIndex = -1;\n        titleElements.forEach((titleElement, i) => {\n            const titleText = titleElement.textContent.trim();\n            if (titleText === this.carouselTitle) {\n                this.carouselIndex = i + 1;\n            }\n        });\n    }\n}\n","import customEventBus from '../libs/eventBus';\nconst analyticsUtils = {\n    listenForPush: () => {\n        customEventBus.on('datalayer:push', (data) => {\n            window.dataLayer.push(data);\n        });\n    },\n    pushCheckoutStepDatalayer: async (step) => {\n        let forcedPipeline = '';\n        switch (step) {\n            case 'shipping':\n                forcedPipeline = 'CheckoutStepShipping';\n                break;\n            case 'payment':\n                forcedPipeline = 'CheckoutStepPayment';\n                break;\n            default:\n        }\n        let formData = new FormData();\n        formData.append('forcedPipeline', forcedPipeline);\n        await fetch(window.asyncServiceUrl, {\n            method: 'POST',\n            headers: {\n                'X-Requested-With': 'XMLHttpRequest',\n            },\n            body: formData,\n        }).then(r => r.json()).then((data) => {\n            if (data.dataLayer) {\n                for (let i in data.dataLayer) {\n                    window.dataLayer.push(data.dataLayer[i]);\n                }\n            }\n        });\n    },\n    pushCheckoutSelectDatalayer: async (step, option) => {\n        let stepNumber = '0';\n        switch (step) {\n            case 'shipping':\n                stepNumber = '1';\n                break;\n            case 'payment':\n                stepNumber = '2';\n                break;\n            default:\n        }\n        if (step === 'payment') {\n            switch (option) {\n                case 'scheme':\n                    option = 'credit_card';\n                    break;\n                default:\n            }\n        }\n        let formData = new FormData();\n        formData.append('forcedPipeline', 'CheckoutSelectOption');\n        formData.append('step', stepNumber);\n        formData.append('option', option);\n        await fetch(window.asyncServiceUrl, {\n            method: 'POST',\n            headers: {\n                'X-Requested-With': 'XMLHttpRequest',\n            },\n            body: formData,\n        }).then(r => r.json()).then((data) => {\n            if (data.dataLayer) {\n                for (let i in data.dataLayer) {\n                    window.dataLayer.push(data.dataLayer[i]);\n                }\n            }\n        });\n    },\n    getItemListId(tile) {\n        let itemListId = 'card_prodotti';\n        let carouselWrapper = tile.closest('.productcarouseleinstein.editorialcaroousel');\n        if (carouselWrapper) {\n            itemListId = 'carousel_1';\n        }\n        else if (tile.closest('.product-detail')) {\n            itemListId = 'banner';\n        }\n        return itemListId;\n    },\n    getItemListName(tile) {\n        let itemListName = 'Listing Page';\n        let carouselWrapper = tile.closest('.productcarouseleinstein.editorialcaroousel');\n        if (carouselWrapper) {\n            let titleElement = carouselWrapper.querySelector('.productcarouseleinstein-header .title');\n            if (titleElement) {\n                itemListName = titleElement.textContent;\n            }\n        }\n        else if (tile.closest('.wishlist-content')) {\n            let wishlistContent = tile.closest('.wishlist-content');\n            if (wishlistContent) {\n                itemListName = \"Wishlist\";\n            }\n        }\n        else if (tile.closest('.product-detail')) {\n            itemListName = 'PDP';\n        }\n        return itemListName;\n    },\n    updateDataLayer(el, data) {\n        if (data.dataLayer) {\n            const page = document.querySelector('.page');\n            let tileIndex = 0;\n            const itemListId = this.getItemListId(el);\n            const itemListName = this.getItemListName(el);\n            if (itemListName === 'Listing Page' || itemListName === 'Wishlist') {\n                tileIndex = this.getTileIndex(el.closest('.product-tile'));\n            }\n            else if (itemListId === 'carousel_1') {\n                const productTile = el.closest('.experience-component.experience-molecules-productTile.swiper-slide');\n                tileIndex = this.getTileIndexFromCarousel(productTile);\n            }\n            for (let i in data.dataLayer) {\n                // @ts-ignore\n                if (page && data.dataLayer[i].ecommerce && data.dataLayer[i].ecommerce.items && data.dataLayer[i].ecommerce.items.length > 0) {\n                    data.dataLayer[i].ecommerce.items[0].item_list_name = itemListName;\n                    data.dataLayer[i].ecommerce.items[0].item_list_id = itemListId;\n                    data.dataLayer[i].ecommerce.items[0].index = tileIndex;\n                    data.dataLayer[i].ecommerce.item_list_name = itemListName;\n                    data.dataLayer[i].ecommerce.item_list_id = itemListId;\n                }\n                window.dataLayer.push(data.dataLayer[i]);\n            }\n        }\n    },\n    /* Get tiles info in listing */\n    getTileListName(tile) {\n        // name types: category, search, recommended, featured\n        let listName = '';\n        if (tile.closest('.editorial-component') !== null) {\n            listName = 'featured';\n        }\n        else if (document.body.querySelector('[data-listingtype]') && document.body.querySelector('[data-listingtype]').getAttribute('data-listingtype') !== '') {\n            listName = document.body.querySelector('[data-listingtype]').getAttribute('data-listingtype');\n        }\n        else if ('RECOMMENDED_TBD' === listName) {\n            // TODO: definizione recommended\n            listName = 'recommended';\n        }\n        return listName;\n    },\n    getTileListId(tile) {\n        let listId = '';\n        if (tile.closest('.editorial-component') !== null) {\n            listId = tile.closest('.editorial-component').classList[1] || 'editorial-component';\n        }\n        else if (document.body.querySelector('[data-listingid]') && document.body.querySelector('[data-listingid]').getAttribute('data-listingid') !== '') {\n            listId = document.body.querySelector('[data-listingid]').getAttribute('data-listingid');\n        }\n        else if ('RECOMMENDED_ID_TBD' === listId) {\n            // TODO: definizione recommended\n            listId = 'recommended';\n        }\n        return listId;\n    },\n    getTileIndex(tile) {\n        let i = 0;\n        let context = tile.parentNode;\n        i = [...context.querySelectorAll('.product-tile')].indexOf(tile);\n        return i;\n    },\n    getTileIndexFromCarousel(productTile) {\n        let carouselWrapper = productTile.closest('.productcarouseleinstein.editorialcaroousel');\n        var allProductTiles = carouselWrapper.querySelectorAll('.experience-component.experience-molecules-productTile.swiper-slide');\n        return Array.prototype.indexOf.call(allProductTiles, productTile);\n    },\n    getListPids(context) {\n        let productIds = [];\n        if (context.querySelectorAll('.product-tile').length > 0) {\n            context.querySelectorAll('.product-tile').forEach((item) => {\n                productIds.push(item.getAttribute('data-productid'));\n            });\n        }\n        return productIds;\n    },\n    async passThroughProcessor(data, _callback = null) {\n        let formData = new FormData();\n        for (let k in data) {\n            formData.append(k, data[k]);\n        }\n        await fetch(window.asyncServiceUrl, {\n            method: 'POST',\n            headers: {\n                'X-Requested-With': 'XMLHttpRequest',\n            },\n            body: formData,\n        })\n            .then((r) => r.json())\n            .then((d) => {\n            if (d.dataLayer && window.dataLayer) {\n                for (let i in d.dataLayer) {\n                    window.dataLayer.push(d.dataLayer[i]);\n                }\n            }\n        })\n            .catch((err) => {\n            console.error(err);\n        })\n            .finally(() => {\n            if (_callback) {\n                _callback();\n            }\n        });\n    }\n};\nexport default analyticsUtils;\n","const carouselUtils = {\n    setSwiperMarkup: ({ $el, hasArrows = true, hasBullets = true, }) => {\n        if (!$el) {\n            throw 'setSwiperMarkup requires an element';\n        }\n        $el.classList.add('swiper');\n        let $inner = $el.firstElementChild;\n        $inner.classList.add('swiper-wrapper');\n        for (let $child of $inner.children) {\n            $child.classList.add('swiper-slide');\n        }\n        if (hasArrows) {\n            let $prev = document.createElement('div');\n            $prev.classList.add('swiper-button-prev');\n            let $next = document.createElement('div');\n            $next.classList.add('swiper-button-next');\n            $el.appendChild($prev);\n            $el.appendChild($next);\n        }\n        if (hasBullets) {\n            let $bullets = document.createElement('div');\n            $bullets.classList.add('swiper-pagination');\n            $el.appendChild($bullets);\n        }\n    },\n};\nexport default carouselUtils;\n","const focusableSelectors = 'button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"]), [role=\"button\"]';\nexport const getFirstFocusable = (parent) => parent.querySelector(focusableSelectors);\nexport const getAllFocusableElements = (parent) => parent.querySelectorAll(focusableSelectors);\n"],"names":["deepFreeze","o","Object","freeze","getOwnPropertyNames","forEach","prop","hasOwnProperty","call","isFrozen","WINDOW","CLICK_EVENT","BODY","TOGGLE_OVERLAY","ON_OVERLAY","OFF_OVERLAY","HEADER","UPDATE_TRAP","IN_PDP","BURGER","TOGGLE_MENU","BREAKPOINTER","BREAKPOINT_CHANGE","DROP_DOWN","OPEN","CLOSE","PRODUCT_CAROUSEL","UPDATE_IMAGES","UPDATE_ZOOM_IMAGES","BRANDS","UPDATE_GRID","UPDATE_STORES","SEARCH_BY_STORE","MODAL_EVENTS","show","close","INPUT","KEYBOARD","MOUSE","ask","strategy","CommonInterface","constructor","config","window","EventBus","CUSTOM_MESSAGES","this","_grabMessages","Messages","isKeyboard","_isKeyboard","isMouse","_isMouse","whatInput","_whatInput","_checkMessages","message","eventQueue","get","ref","bind","map","payload","delete","_messages","__ref__","GRAB","_ungrabMessages","UNGRAB","objectIsEmpty","object","key","EMIT","callBack","getFirstFocusable","parent","getFocusableElements","_destroy","BaseComponent","element","super","_componentElement","setAttribute","_el","_options","compOptions","options","assign","dataset","keys","filter","entry","includes","cleanEntry","cleanOptionKey","optionValue","JSON","parse","replace","convertType","COMPONENT_NAME","getAttribute","static","option","optionReturn","str","charAt","toLocaleLowerCase","slice","$on","events","cb","elements","e","stopPropagation","$one","$off","$fire","updateAriaAttributes","attributes","attr","nodeName","indexOf","nodeValue","ProductCarouselEinstein","position","productIds","trackedProducts","indexMap","Map","firstPushToDataLayer","recommender","visibleSlides","parseInt","getEinsteinRecommendations","animationHandler","getProductsIds","innerWidth","push","addEventListener","isCarouselVisible","prepareDataLayer","einsteinUtils","getEinsteinUtils","parentElement","processRecommendationsTile","params","userId","getCQUserId","cookieId","getCQCookieId","ccver","recommenderType","anchors","document","querySelectorAll","productEl","id","einsteinPid","sku","einsteinSecondaryId","type","einsteinGroupType","alt_id","einsteinGroupId","recommendationsReceived","einsteinResponse","fillDomElement","recommendationsNotReceived","getRecs","clientId","widgets","recommenderName","parameters","callback","error","console","async","recommendedProducts","recs","displayMessage","toLowerCase","length","components","recommendedProduct","tileDefinition","model","url","recommenderUrl","data","stringify","mountRecommenderCarousel","CQuotient","content","querySelector","innerHTML","closest","classList","remove","hideSlidesObj","positionHideSlide","slidesTile","hideSlidesKeys","tile","index","tileParent","gallery","$el","hasArrows","hasBullets","swiper","speed","slidesPerView","watchOverflow","spaceBetween","simulateTouch","navigation","nextEl","prevEl","breakpoints","grabCursor","centeredSlides","slidesOffsetBefore","slidesOffsetAfter","on","s","previousIndex","activeIndex","carouselWrapper","productId","set","productToPush","pushDataLayer","boundingBox","getBoundingClientRect","top","innerHeight","documentElement","clientHeight","bottom","productsIds","findTitleAndIndex","Array","isArray","forcedPipeline","pids","item_list_name","carouselTitle","item_list_id","carouselIndex","product_index","contains","headerDiv","titleElement","textContent","trim","titleElements","i","analyticsUtils","listenForPush","dataLayer","pushCheckoutStepDatalayer","step","formData","FormData","append","fetch","asyncServiceUrl","method","headers","body","then","r","json","pushCheckoutSelectDatalayer","stepNumber","getItemListId","itemListId","getItemListName","itemListName","updateDataLayer","el","page","tileIndex","getTileIndex","productTile","getTileIndexFromCarousel","ecommerce","items","getTileListName","listName","getTileListId","listId","parentNode","allProductTiles","prototype","getListPids","context","item","_callback","k","d","catch","err","finally","carouselUtils","setSwiperMarkup","add","$inner","firstElementChild","$child","children","$prev","createElement","$next","appendChild","$bullets","focusableSelectors","getAllFocusableElements"],"sourceRoot":""}