{"version":3,"sources":["webpack:///webpack/bootstrap 04b84c8e21d6ecfb2423?78fc************************","webpack:///./assets/scripts/storelocator.js","webpack:///./assets/scripts/components/callout.js?b683***********","webpack:///./assets/scripts/components/carousel.js?b8ba*******","webpack:///./assets/scripts/product/index.js?2c86******","webpack:///./assets/scripts/components/accordion.js?a50a******","webpack:///./assets/scripts/services/easing.js?0342******","webpack:///./assets/scripts/product/addToCartMsg.js?b8d7******","webpack:///./assets/scripts/enhancedSeo.js?6a5c******","webpack:///./assets/scripts/components/seo.js?8875******","webpack:///./assets/scripts/product/giftCardHelper.js?8ac6******"],"names":["StoreLocator","document","script","autocompleteInput","google","place","latitude","longitude","name","window","countryStore","element","dataLayer","event","gaHitType","event_category","event_label","mapOtions","zoom","center","lat","lng","mapTypeId","styles","featureType","elementType","stylers","color","visibility","hue","saturation","lightness","$","navigator","position","error","input","type","listener","suggestionSelected","simulatedDownarrow","keyCode","which","origListener","setTimeout","callback","_addEventListener","locateButton","searchButton","isInitGeolocate","url","data","long","radius","country","province","region","success","textBoutique","response","store","markerOptions","Number","map","title","storeID","icon","marker","storeUrl","location","pathnameSplit","storelocatorTitle","locale","hrefBreadcrumbs","i","path","imagePath","Callout","storeRows","storeRow","e","EnhancedSeo","infoWindowContent","content","geocoder","address","status","results","storeLocator","callout","message","closable","el","prepend","scroll","$callout","scrollTop","Carousel","slides","items","navText","carousels","breakpoints","small","medium","large","count","isScrollable","setting","margin","responsive","carousel","pid","$el","getQuantitySelector","attr","$attrValue","$productContainer","attrValue","$swatchAnchor","$attr","attrsWithSwatches","attrs","processSwatchValues","processNonSwatchValues","processNonSwatchValuesMiniSet","availabilityValue","availabilityMessages","controlSizeModalProduct","$nameGroup","$labels","label","product","resources","html","promotions","promotion","attributes","attributeGroup","attribute","isChoiceOfBonusProducts","isVaraint","isNewtest","isInWishlist","isOnSale","updateAttrs","$priceSelector","getPromotionsHtml","updateAvailability","$selectButton","getAttributesHtml","updateMiniAttrs","optionsHtml","selected","quantity","colorName","$secondaryCall","method","beforeSend","handleVariantResponse","updateQuantities","updateColorName","updateAddToCartEvent","updateLabel","replaceProductsetWidget","updateScalapayWidget","completeYourLookWrapper","updateCompleteYourLook","container","console","scalapayWidget","dataType","carouselImages","productContainerImages","owl","productModalImages","price","Object","addToCartEvent","addToCartEventParse","JSON","datalayerEvent","id","brand","category","variant","dimension14","dimension15","dimension16","encodedDatalayerEvent","encodeURIComponent","elem","productAccordion","complete","Accordion","handleVariantMiniSetResponse","controlSizeModalProductSet","$html","body","footer","elemSelect","elemModalId","childProducts","parseInt","breakpoint","width","$render","smartSpeed","slideTransition","editBonusProducts","oldColor","self","description","ogDescription","attributeSelect","replaceImages","replaceModalImages","replaceAccordion","isUserEvent","colorIndex","referencedSelect","attributeSelectMiniSet","options","div","errorMsg","addToCartUrl","getQuantitySelected","form","event_action","pageTypeForJS","AddToCartMsg","ecommerce","win","gridImages","scrollToSlider","Foundation","edge","$choiceOfBonusProduct","maxPids","submittedQty","totalQty","optionID","valueId","selectedBonusProductHtml","$selected","parsedHtml","cart","item","priceValue","currency","Array","value","categories","discount","parseFloat","size","item_id","item_name","item_brand","item_category","item_category2","item_category3","item_list_name","item_variant","isSingleQnt","item_availability","item_discount_tag","available_size_percentage","item_size","item_variant_v2","item_url","item_img","$readyToOrderBonusProducts","queryString","pidsObject","bonusProducts","qtyOption","option","Product","accordion","setARIA","Easing","def","swing","easeOutQuad","easeInOutCirc","Math","x","bonusUrl","htmlString","messageType","modal","addToCartMsg","minicart","chooseBonusProducts","clearTimeout","triggerMinicart","initAddedToCartConfirmationModal","addedToCartModal","enhancedSeo","$isStoreLocatorList","elements","address1","$isPopupFooterHeader","isMobileMenu","iconName","isCookieAlert","elementList","eventType","login_method","timestamp","isSearch","classObj","isChat","$self","accordionText","accordionExpanded","categoryID","isColor","$selfButton","profiling","checkoutStep","eventAction","eventLabel","shipping","payment","placeorder","analyticsP","listName","modalOpen","section","selectedSizeElem","selectedSize","selectedFamilyColorElem","selectedFamilyColor","analyticsObj","dataLayerGA4","list","Seo","pageAction","context","originalPrice","finalPrice","pidSplit","colorID","variantID","obj","SEO","productTiles","_this","listingProductsArrayForHomePage","currentElement","impression","listingProductsJson","asyncProductsArray","array","productCurrency","index","imageUrl","chunks","chunkArray","fullPrice","salesPrice","dataLayerObject","getPageType","trackForWish","selectedVariant","arr_info_product","prodLayer","click","actionField","catListingSearch","products","socialNetwork","socialAction","socialTarget","href","promotionsAsset","lookArray","gridImageAndButton","componentElements","creative","componentID","componentName","promoClick","widgetLook","lookName","itemPosition","hrefSplit","lookIdSplit","itemList","lookId","widgetLookElements","aElem","indexEl","impressions","promoView","listingProduct","productTile","productJson","prod","where","clickedFilter","selectedSortOption","attribute_group","attribute_value","filter_sort","filter","actionName","eventID","eventCategory","eventElement01","eventElement02","eventElement03","module","showAlertModal"],"mappings":"aAIA,cAGA,QACA,oBAGA,YACA,UADA,CAEA,IAFA,CAGA,SAHA,EAaA,MANA,mCAMA,CAHA,WAGA,UACA,CAxBA,SAqCA,MATA,MASA,CANA,KAMA,CAHA,MAGA,K,yaCtCA,O,QACA,O,QAEMA,E,WACJ,YAAc,WACZ,aADY,CAEZ,oCAFY,CAGZ,sDAHY,CAIZ,+CAJY,CAKZ,+CALY,CAMZ,uDANY,CAOZ,4CAPY,CAQZ,oDARY,CAUZ,cAVY,CAWZ,sBAXY,CAYZ,gBAZY,CAaZ,eAbY,CAcZ,oBAdY,CAeZ,uBAfY,CAiBZ,WAAaC,wBAAwB,KAArC,YAAaA,CAjBD,CAmBZ,aAnBY,CAqBZ,mBAAqB,wBAArB,IAAqB,CArBT,CAuBZ,oBACD,C,wCAEM,YACL,GAAK,KAAL,OAEA,GAAIC,GAASD,uBAAb,QAAaA,CAAb,CACAC,wBAHA,CAIAA,UAJA,CAKAA,SAAgB,UAAM,CACpB,WADoB,CAEpB,oBAFoB,CAGpB,iBAHoB,CAIpB,cAJoB,CAKpB,cALFA,CALA,CAaAA,4GAbA,CAcAD,uDAdA,CAeD,C,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B,mBAIlBqN,aAAe,GAACpM,wBAAD,aAACA,CAJE,eAKlBhB,YAAagB,cALK,CAAtB,CAQA,WAAI,kBAT6E,EAU7EpB,iBAVRoB,EAaH,C,kCAEU,CACPA,wCAAyC,UAAa,CAClD,GAAI2U,GAAkB,CAClB9V,MADkB,cAElBC,UAFkB,QAGlBC,eAHkB,eAIlBqN,aAAcpM,wDAAwD,CAAxDA,GAJI,CAIJA,CAJI,CAKlBhB,YAAgBgB,kDAAhBhB,CAAgBgB,EAAhBhB,GAAgBgB,CAAwDA,yBAAxEhB,GAAwEgB,EAAxDA,CAAhBhB,IALkB,CAAtB,CAQAyJ,YAAYW,KAAZX,SAAYW,GAAZX,CATkD,CAUlD,WAAI,kBAV8C,EAW9C7J,iBAXRoB,EAwDH,C,wCAEwBwX,WAAW,CAChC5Y,eAAe,CACXC,MADW,UAEX4Y,QAFW,MAGXC,cAHW,mBAIXxF,YAJW,oCAMXyF,eANW,IAOXC,eAPW,IAQXC,eAAgB,GARL,CAAfjZ,CAUH,C,SA8FCsU,EAAN,K,GACeA,O,gCC1+Bf4E,UAAiB,CACfC,eAfF,WAA8B,CAC5B,GAAM5H,GAAQnQ,EAAd,mBAAcA,CAAd,CACAmQ,6BAAkChP,EAAlCgP,QAF4B,CAG5BA,iCAAqC,WAAO,CAC1CnN,kBAD0C,CAE1ChD,gEAAiE,CAAjEA,gBAAiE,CAAjEA,CAF0C,CAG1CmQ,gBAHFA,EAH4B,CAQ5BA,qCAAyC,WAAO,CAC9CnN,kBAD8C,CAE9CmN,QAFFA,EAID,CAEgB,C","file":"storelocator.min.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 04b84c8e21d6ecfb2423","import Callout from './components/callout';\nimport EnhancedSeo from './enhancedSeo';\n\nclass StoreLocator {\n  constructor() {\n    this.map = null;\n    this.mapElementID = 'storelocator-map';\n    this.autocompleteElementID = 'storelocator-autocomplete';\n    this.searchElementID = 'storelocator-load-stores';\n    this.locatemeElementID = 'storelocator-locate-me';\n    this.listWrapperElementID = 'storelocator-stores-wrapper';\n    this.listElementID = 'storelocator-store-list';\n    this.selectedElementID = 'store-picker-selected-store';\n\n    this.radius = 30;\n    this.autocomplete = null;\n    this.bounds = null;\n    this.markers = [];\n    this.infoWindow = null;\n    this.selectedStore = null;\n\n    this.mapEl = document.getElementById(this.mapElementID);\n\n    this.place = {};\n\n    this.initGeolocate = this.initGeolocate.bind(this);\n\n    this.countryToggle();\n  }\n\n  init() {\n    if (!this.mapEl) return;\n\n    let script = document.createElement('script');\n    script.type = 'text/javascript';\n    script.async = true;\n    script.onload = () => {\n      this.initMap();\n      this.initAutocomplete();\n      this.initGeolocate();\n      this.initEvents();\n      this.loadStores();\n    };\n    // incluso nell'isml con API key configurata\n    script.src = 'https://maps.googleapis.com/maps/api/js?key=AIzaSyBPT8F_zyLg7biX7MipV6RRQujx4O5wWZ8&libraries=places';\n    document.getElementsByTagName('head')[0].appendChild(script);\n  }\n\n  initAutocomplete() {\n    const autocompleteInput = document.getElementById(this.autocompleteElementID);\n    this.autocomplete = new google.maps.places.Autocomplete(autocompleteInput);\n\n    // Bind the map's bounds (viewport) property to the autocomplete object,\n    // so that the autocomplete requests use the current map bounds for the\n    // bounds option in the request.\n    this.autocomplete.bindTo('bounds', this.map);\n\n    this.autocomplete.addListener('place_changed', () => {\n      var place = this.autocomplete.getPlace();\n\n      this.place = {\n        latitude: place.geometry.location.lat(),\n        longitude: place.geometry.location.lng(),\n        name: place.name\n      };\n\n      if (!place.geometry) {\n        window.alert(\"No details available for input: '\" + place.name + \"'\");\n        return;\n      }\n\n      if (!!place.address_components && place.address_components.length) {\n        let countryStore = '';\n        place.address_components.forEach((element) => {\n          if (element.types[0].toLowerCase() == 'country') {\n            countryStore = element.long_name;\n          }\n        });\n        dataLayer.push({\n          event: 'asyncAction',\n          gaHitType: 'event',\n          event_category: 'find_a_store',\n          event_action: countryStore,\n          event_label: [place.address_components[0].long_name, this.radius].join('|')\n        });\n      }\n\n      this.loadStores();\n    });\n  }\n\n  initMap() {\n    const mapOtions = {\n      zoom: 4,\n      center: {\n        lat: this.mapEl.dataset.latitude ? Number(this.mapEl.dataset.latitude) : 0,\n        lng: this.mapEl.dataset.longitude ? Number(this.mapEl.dataset.longitude) : 0\n      },\n      mapTypeControl: false,\n      streetViewControl: false,\n      mapTypeId: google.maps.MapTypeId.ROADMAP,\n      scrollwheel: false,\n      zoomControl: true,\n      styles: [{\n        featureType: 'administrative',\n        elementType: 'labels.text.fill',\n        stylers: [{\n          color: '#444444'\n        }]\n      },\n      {\n        featureType: 'administrative.country',\n        elementType: 'all',\n        stylers: [{\n          visibility: 'off'\n        },\n        {\n          hue: '#ff0000'\n        }\n        ]\n      },\n      {\n        featureType: 'landscape',\n        elementType: 'all',\n        stylers: [{\n          color: '#f2f2f2'\n        }]\n      },\n      {\n        featureType: 'poi',\n        elementType: 'all',\n        stylers: [{\n          visibility: 'off'\n        }]\n      },\n      {\n        featureType: 'poi.attraction',\n        elementType: 'all',\n        stylers: [{\n          visibility: 'off'\n        }]\n      },\n      {\n        featureType: 'poi.business',\n        elementType: 'all',\n        stylers: [{\n          visibility: 'off'\n        }]\n      },\n      {\n        featureType: 'poi.government',\n        elementType: 'all',\n        stylers: [{\n          visibility: 'off'\n        }]\n      },\n      {\n        featureType: 'poi.medical',\n        elementType: 'all',\n        stylers: [{\n          visibility: 'off'\n        }]\n      },\n      {\n        featureType: 'road',\n        elementType: 'all',\n        stylers: [{\n          saturation: -100\n        },\n        {\n          lightness: 45\n        }\n        ]\n      },\n      {\n        featureType: 'road.highway',\n        elementType: 'all',\n        stylers: [{\n          visibility: 'simplified'\n        }]\n      },\n      {\n        featureType: 'road.arterial',\n        elementType: 'labels.icon',\n        stylers: [{\n          visibility: 'off'\n        }]\n      },\n      {\n        featureType: 'transit',\n        elementType: 'all',\n        stylers: [{\n          visibility: 'off'\n        }]\n      },\n      {\n        featureType: 'water',\n        elementType: 'all',\n        stylers: [{\n          color: '#cecece'\n        },\n        {\n          visibility: 'on'\n        }\n        ]\n      }\n      ]\n    };\n\n    this.map = new google.maps.Map(this.mapEl, mapOtions);\n  }\n\n  initGeolocate() {\n    $('#' + this.listWrapperElementID).addClass('loading');\n    document.getElementById(this.autocompleteElementID).value = '';\n\n    if (navigator.geolocation) {\n      navigator.geolocation.getCurrentPosition((position) => {\n        this.place = {\n          latitude: position.coords.latitude,\n          longitude: position.coords.longitude\n        };\n        this.loadStores(true);\n      }, (error) => {\n        window.alert(error.message);\n      });\n    } else {\n      this.loadStores();\n    }\n  }\n\n  selectFirstOnEnter(input, callback) {\n    const _addEventListener = (input.addEventListener) ? input.addEventListener : input.attachEvent;\n\n    function addEventListenerWrapper(type, listener) {\n      if (type === 'keydown') {\n        const origListener = listener;\n        listener = function (event) {\n          const suggestionSelected = $('.pac-item-selected').length > 0;\n          if (event.which === 13 && !suggestionSelected) {\n            const simulatedDownarrow = $.Event('keydown', {\n              keyCode: 40,\n              which: 40\n            });\n            origListener.apply(input, [simulatedDownarrow]);\n\n            setTimeout(() => {\n              if (typeof callback === 'function') {\n                callback();\n              }\n            }, 500);\n          }\n          origListener.apply(input, [event]);\n        };\n      }\n      _addEventListener.apply(input, [type, listener]);\n    }\n    if (input.addEventListener) {\n      input.addEventListener = addEventListenerWrapper;\n    } else if (input.attachEvent) {\n      input.attachEvent = addEventListenerWrapper;\n    }\n  }\n\n  initEvents() {\n    //const searchButton = document.getElementById(this.searchElementID);\n    const locateButton = document.getElementById(this.locatemeElementID);\n    const input = document.getElementById('storelocator-autocomplete');\n\n    //searchButton.addEventListener('click', this.reverseGeocode.bind(this));\n    locateButton.addEventListener('click', this.initGeolocate.bind(this));\n\n    this.selectFirstOnEnter(input, () => {\n      searchButton.click();\n    });\n  }\n\n  loadStores(isInitGeolocate) {\n    $('#' + this.listWrapperElementID).addClass('loading');\n\n    // remove markers from the map\n    if (this.markers.length) {\n      for (var k in this.markers) {\n        this.markers[k].setMap(null);\n      }\n    }\n    this.selectedStore = null;\n    this.markers = [];\n\n    if (this.markerCluster) this.markerCluster.clearMarkers();\n    if (this.infoWindow) this.infoWindow.close();\n\n    if (this.place.latitude === null || this.place.longitude === null) {\n      $('#' + this.listWrapperElementID).removeClass('loading');\n      this.refreshList();\n      return;\n    }\n\n    this.bounds = new google.maps.LatLngBounds();\n\n    this.place.country = this.mapEl.dataset.country;\n    this.place.region = this.mapEl.dataset.region;\n    this.place.province = this.mapEl.dataset.province;\n\n    $.ajax({\n      type: 'GET',\n      url: this.mapEl.dataset.endpoint,\n      data: {\n        lat: this.place.latitude,\n        long: this.place.longitude,\n        radius: this.radius,\n        country: this.place.country ? this.place.country : null,\n        province: this.place.province ? this.place.province : null,\n        region: this.place.region ? this.place.region : null\n      },\n      success: (response) => {\n        let textBoutique = $('.storelocator-zone').data('storelocator-title');\n        $('.storelocator-zone').html(`${this.place.name === undefined ? '' : this.place.name}  <span>${response.stores.length}</span> ${textBoutique}`);\n\n        this.markers = response.stores.map((store) => {\n          this.bounds.extend(\n            new google.maps.LatLng(Number(store.latitude), Number(store.longitude))\n          );\n\n          var markerOptions = {\n            position: {\n              lat: Number(store.latitude),\n              lng: Number(store.longitude)\n            },\n            map: this.map,\n            title: store.name,\n            storeID: store.ID,\n            store: store,\n            icon: store.icon\n          };\n\n          let marker = new google.maps.Marker(markerOptions);\n\n          marker.addListener('click', (e) => {\n            this.markerClicked(marker);\n          });\n\n          return marker;\n        });\n\n        if (isInitGeolocate && this.markers && this.markers.length) {\n          var storeUrl = this.markers[0].store.url.replace(location.protocol + '//' + location.hostname, '');\n          var pathnameSplit = storeUrl.split('/');\n          pathnameSplit.pop();\n          window.history.replaceState('Object', document.title, pathnameSplit.join('/'));\n          var storelocatorTitle = $('.storelocator-zone').attr('data-storelocator-title');\n          $('.storelocator-zone').html(pathnameSplit[pathnameSplit.length - 1].charAt(0).toUpperCase() + pathnameSplit[pathnameSplit.length - 1].slice(1) + ' <span> ' + response.stores.length + ' </span> ' + storelocatorTitle);\n\n          var locale = pathnameSplit.shift();\n          var hrefBreadcrumbs = '';\n          pathnameSplit.forEach((path, i) => {\n            if (i == 0) {\n              hrefBreadcrumbs += '<a href=\"' + location.protocol + '//' + location.hostname + '\">'\n                + 'Home / '\n                + '</a>';\n            } else if (i == 1) {\n              hrefBreadcrumbs += '<a href=\"' + locale + '/' + path + '\">'\n                + storelocatorTitle.charAt(0).toUpperCase() + storelocatorTitle.slice(1) + ' / '\n                + '</a>';\n            } else {\n              hrefBreadcrumbs += '<a href=\"' + locale + '/' + pathnameSplit.slice(0, i + 1).join('/') + '\">'\n                + path.charAt(0).toUpperCase() + path.slice(1) + ((i == pathnameSplit.length - 1) ? '' : ' / ')\n                + '</a>';\n            }\n          });\n          $('.breadcrumbs').html(hrefBreadcrumbs);\n          $('.country-selector').hide();\n        }\n\n        if (this.markers.length) {\n          if (this.markers.length > 1) {\n            this.markerCluster = new MarkerClusterer(this.map, this.markers, {\n              imagePath: this.mapEl.dataset.images + '/m'\n            });\n          }\n\n          if (this.selectedStore) {\n            this.goToMarker(this.selectedStore, 14);\n          } else if (this.markers.length > 1) {\n            this.map.fitBounds(this.bounds);\n          } else {\n            this.goToMarker(this.markers[0], 14);\n          }\n        }\n\n        this.refreshList();\n        $('#' + this.listWrapperElementID).removeClass('loading');\n      },\n      error: (response) => {\n        // window.alert('Error while fetching the stores!');\n        Callout.error(null, 'Error while fetching the stores!', document.getElementById('store-locator-error-wrapper'));\n        $('#' + this.listWrapperElementID).removeClass('loading');\n      }\n    });\n  }\n\n  markerClicked(marker) {\n    this.openInfo(marker);\n    this.selectStore(marker);\n  }\n\n  goToMarker(marker, zoomLvl) {\n    this.map.setZoom(zoomLvl);\n    this.map.panTo(marker.getPosition());\n    this.openInfo(marker);\n  }\n\n  refreshList() {\n    let storeRows = [];\n    if (this.markers.length) {\n      this.markers.forEach((marker) => {\n        let storeRow = [\n          '<li id=\"store-row-' + marker.store.id + '\">',\n          '<strong>' + marker.store.name + '</strong>',\n          '<p>' + marker.store.address1 + '</p>',\n          '<div>',\n          '<span class=\"shop-phone\">' + marker.store.phone + '</span>',\n          '<a href=\"' + marker.store.url + '\" class=\"underline\">' + this.mapEl.dataset.details + '</a>',\n          '</div>',\n          '</li>'\n        ];\n\n        storeRow = $(storeRow.join(''));\n        storeRow.on('click', (e) => {\n          if (e.target.nodeName !== 'A') {\n            this.goToMarker(marker, 14);\n            this.selectStore(marker);\n          } else {\n            EnhancedSeo.clickStoreDetails(marker, ['#storelocator-store-list', 'a']);\n          }\n        });\n\n        storeRows.push(storeRow);\n      });\n    } else {\n      storeRows.push('<li class=\"no-stores\">' + this.mapEl.dataset.nostore + '</li>');\n      $('.storelocator-zone span').text(0);\n    }\n\n    $(`#${this.listElementID}`).empty().append(storeRows);\n  }\n\n  openInfo(marker) {\n    let infoWindowContent = [\n      '<div class=\"storelocator-marker-content\">',\n      '<div class=\"shop-title\">' + marker.store.name + '</div>',\n      '<div class=\"shop-address\">' + marker.store.address1 + '</div>',\n      '<div class=\"shop-phone\">' + marker.store.phone + '</div>',\n      '<div class=\"shop-schedule\">' + marker.store.storeHoursInLine + '</div><br />',\n      '<a href=\"' + marker.store.url + '\" class=\"underline\">' + this.mapEl.dataset.details + '</a>',\n      '</div>'\n    ];\n\n    if (this.infoWindow) {\n      this.infoWindow.close();\n    }\n\n    infoWindowContent = $(infoWindowContent.join(''));\n    // infoWindowContent.find('.select-store-btn').on('click', e => {\n    //     this.selectStore(marker);\n    // });\n\n    this.infoWindow = new google.maps.InfoWindow({\n      content: infoWindowContent[0]\n    });\n\n    this.infoWindow.open(this.map, marker);\n  }\n\n  selectStore(marker) {\n    if (this.selectedStore) {\n      this.selectedStore.setIcon(`${this.mapEl.dataset.images}/marker.png`);\n    }\n\n    this.selectedStore = marker;\n    this.selectedStore.setIcon(`${this.mapEl.dataset.images}/marker-selected.png`);\n\n    $(`#${this.listElementID} li`).removeClass('selected');\n    $('#store-row-' + marker.store.id).addClass('selected');\n\n    EnhancedSeo.selectedStoreDetail(marker);\n  }\n\n  countryToggle() {\n    $('.country-selector h4').click((e) => {\n      $('.country-selector ul').slideToggle();\n    });\n  }\n\n  reverseGeocode() {\n    const autocompleteInput = document.getElementById(this.autocompleteElementID);\n\n    if (!autocompleteInput.value.length) {\n      this.place = {\n        latitude: null,\n        longitude: null\n      };\n      this.loadStores();\n    } else {\n      let geocoder = new google.maps.Geocoder();\n      geocoder.geocode({ address: autocompleteInput.value }, function (results, status) {\n        if (status == google.maps.GeocoderStatus.OK) {\n          const place = results[0];\n          this.place = {\n            latitude: place.geometry.location.lat,\n            longitude: place.geometry.location.lng\n          };\n\n          if (!!place.address_components && place.address_components.length) {\n            let countryStore = '';\n            place.address_components.forEach((element) => {\n              if (element.types[0].toLowerCase() == 'country') {\n                countryStore = element.long_name;\n              }\n            });\n            dataLayer.push({\n              event: 'asyncAction',\n              gaHitType: 'event',\n              event_category: 'find_a_store',\n              event_action: countryStore,\n              event_label: [place.address_components[0].long_name, this.radius].join('|')\n            });\n          }\n        } else {\n          this.place = {\n            latitude: null,\n            longitude: null\n          };\n        }\n      });\n      this.loadStores();\n    }\n  }\n}\n\nconst storeLocator = new StoreLocator();\nstoreLocator.init();\n\n\n\n// WEBPACK FOOTER //\n// ./assets/scripts/storelocator.js","class callout {\n    add (title = null, message = null, type = 'success', closable = true, el, prepend = false, scroll = true) {\n        let callout = `<div class=\"callout ${type}\">`;\n\n        if (title) {\n            callout += `\n            <div class=\"callout-title\">\n                <svg><use xlink:href=\"${window.staticURL}/images/sprite.svg#${type}\" /></use></svg>\n                ${title}\n            </div>`;\n        }\n\n        if (message) {\n            if (typeof message === 'object') {\n                message.forEach(line => {\n                    callout += `<div class=\"callout-message\">${line}</div>`;\n                });\n            } else {\n                callout += `<div class=\"${!!title ? 'callout-message' : ''}\">${message}</div>`;\n            }\n        }\n\n        if (closable) {\n            callout += `\n                    <button class=\"close-button\" aria-label=\"Dismiss alert\" type=\"button\" data-close>\n                        <span aria-hidden=\"true\">&times;</span>\n                    </button>\n                </div>\n            `;\n        } else {\n            callout += '</div>';\n        }\n\n        const $callout = $(callout);\n        $callout.find('.close-button').click(e => {\n            $callout.remove();\n        });\n\n        if (prepend) {\n            $(el).prepend($callout);\n        } else {\n            $(el).empty().append($callout);\n        }\n\n        if (scroll) {\n            $('html, body').animate({\n                scrollTop: $callout.offset().top - 70\n            }, 500);\n        }\n    }\n\n    primary (title, message, el, closable = true, prepend = false, scroll = true) {\n        this.add(title, message, 'primary', closable, el, prepend, scroll);\n    }\n\n    success (title, message, el, closable = true, prepend = false, scroll = true) {\n        this.add(title, message, 'success', closable, el, prepend, scroll);\n    }\n\n    error (title, message, el, closable = true, prepend = false, scroll = true) {\n        this.add(title, message, 'alert', closable, el, prepend, scroll);\n    }\n\n    warning (title, message, el, closable = true, prepend = false, scroll = true) {\n        this.add(title, message, 'warning', closable, el, prepend, scroll);\n    }\n}\n\nconst Callout = new callout();\nexport default Callout;\n\n\n\n// WEBPACK FOOTER //\n// ./assets/scripts/components/callout.js","class Carousel {\n  quickviewCarousel() {\n    let slides = $('#quickViewModal .slides');\n    slides.owlCarousel({\n      loop: false,\n      nav: true,\n      items: 1,\n      navText: ['', '']\n    });\n\n    slides.trigger('refresh.owl.carousel');\n  }\n  initCarouselComponent(){\n    let carousels = $('.products-carousel .slides');\n    carousels.each((id, el) => {\n      $(el).owlCarousel(this.getSetting(el));\n    });\n    carousels.trigger('refresh.owl.carousel');\n  }\n\n  getSetting(element){\n    let breakpoints = {\n      small: 0,\n      medium: 640,\n      large: 1024,\n    };\n    let count = $(element).data('count').split('-');\n    let isScrollable = $(element).data('scrollable');\n    let setting = {\n      loop: true,\n      margin: 10,\n      navText: ['', ''],\n      mouseDrag: isScrollable,\n      touchDrag: isScrollable,\n      responsive: {\n        [breakpoints.small]: {\n          nav: false,\n          dots: true,\n          items: count[2]\n        },\n        [breakpoints.medium]: {\n          nav: true,\n          dots: false,\n          items: count[1]\n        },\n        [breakpoints.large]: {\n          nav: true,\n          dots: false,\n          items: count[0]\n        }\n      }\n    }\n    return setting;\n  }\n}\nconst carousel = new Carousel();\nexport default carousel;\n\n\n\n// WEBPACK FOOTER //\n// ./assets/scripts/components/carousel.js","import Accordion from '../components/accordion';\nimport AddToCartMsg from './addToCartMsg';\nimport EnhancedSeo from '../enhancedSeo';\nimport carousel from '../components/carousel';\nimport {showAlertModal} from './giftCardHelper';\nimport Callout from '../components/callout';\n\n/**\n * Retrieves the relevant pid value\n * @param {jquery} $el - DOM container for a given add to cart button\n * @return {string} - value to be used when adding product to cart\n */\nfunction getPidValue($el) {\n  var pid;\n\n  if ($('#quickViewModal').hasClass('show') && !$('.product-set').length) {\n    pid = $($el).closest('.modal-content').find('.product-quickview').data('pid');\n  } else if ($('.product-set-detail').length) {\n    pid = $($el).closest('.product-detail').find('.product-id').text();\n  } else if ($($el).closest('.product-detail').length === 0) {\n    pid = $($el).attr('data-pid');\n  } else {\n    pid = $($el).closest('.product-detail:not(\".bundle-item\")').attr('data-pid');\n  }\n\n  return pid;\n}\n\n/**\n * Retrieve contextual quantity selector\n * @param {jquery} $el - DOM container for the relevant quantity\n * @return {jquery} - quantity selector DOM container\n */\nfunction getQuantitySelector($el) {\n  return $el && $('.set-items').length ? $($el).closest('.product-detail').find('.quantity-select') : $('.quantity-select');\n}\n\n/**\n * Retrieves the value associated with the Quantity pull-down menu\n * @param {jquery} $el - DOM container for the relevant quantity\n * @return {string} - value found in the quantity input\n */\nfunction getQuantitySelected($el) {\n  return getQuantitySelector($el).val();\n}\n\n/**\n * Process the attribute values for an attribute that has image swatches\n *\n * @param {Object} attr - Attribute\n * @param {string} attr.id - Attribute ID\n * @param {Object[]} attr.values - Array of attribute value objects\n * @param {string} attr.values.value - Attribute coded value\n * @param {string} attr.values.url - URL to de/select an attribute value of the product\n * @param {boolean} attr.values.isSelectable - Flag as to whether an attribute value can be\n *     selected.  If there is no variant that corresponds to a specific combination of attribute\n *     values, an attribute may be disabled in the Product Detail Page\n * @param {jQuery} $productContainer - DOM container for a given product\n */\nfunction processSwatchValues(attr, $productContainer) {\n  attr.values.forEach(function (attrValue) {\n    var $attrValue = $productContainer.find('[data-attr=\"' + attr.id + '\"] [data-attr-value=\"' + attrValue.value + '\"]');\n    var $swatchAnchor = $attrValue;\n\n    if (attrValue.selected) {\n      $attrValue.addClass('selected');\n    } else {\n      $attrValue.removeClass('selected');\n    }\n\n    if (attrValue.url) {\n      $swatchAnchor.attr('href', attrValue.url);\n      $attrValue.attr('data-image-url', attrValue.imageUrl).removeAttr('disabled');\n      $attrValue.attr('data-modal-image-url', attrValue.imageModalUrl).removeAttr('disabled');\n      $attrValue.attr('data-accordion-url', attrValue.accordionUrl).removeAttr('disabled');\n    } else {\n      $swatchAnchor.removeAttr('href');\n    }\n\n    // Disable if not selectable\n    $attrValue.removeClass('selectable unselectable');\n    $attrValue.addClass(attrValue.selectable ? 'selectable' : 'unselectable');\n  });\n}\n\n/**\n * Process attribute values associated with an attribute that does not have image swatches\n *\n * @param {Object} attr - Attribute\n * @param {string} attr.id - Attribute ID\n * @param {Object[]} attr.values - Array of attribute value objects\n * @param {string} attr.values.value - Attribute coded value\n * @param {string} attr.values.url - URL to de/select an attribute value of the product\n * @param {boolean} attr.values.isSelectable - Flag as to whether an attribute value can be selected. If there is no variant that corresponds to a specific combination of attribute values, an attribute may be disabled in the Product Detail Page\n * @param {jQuery} $productContainer - DOM container for a given product\n */\nfunction processNonSwatchValues(attr, $productContainer) {\n  var $attr = '[data-attr=\"' + attr.id + '\"]';\n\n  attr.values.forEach(function (attrValue) {\n    var $attrValue = $productContainer.find($attr + ' [data-attr-value=\"' + attrValue.value + '\"]');\n    $attrValue.attr('data-url-value', attrValue.url).removeAttr('disabled');\n    $attrValue.attr('data-accordion-url', attrValue.accordionUrl).removeAttr('disabled');\n    if (!attrValue.selectable) {\n      $attrValue.attr('disabled', true);\n    }\n\n    if (attrValue.selected) {\n      $attrValue.addClass('selected');\n    } else {\n      $attrValue.removeClass('selected');\n    }\n  });\n}\n\n/**\n * Process attribute values associated with an attribute that does not have image swatches\n *\n * @param {Object} attr - Attribute\n * @param {string} attr.id - Attribute ID\n * @param {Object[]} attr.values - Array of attribute value objects\n * @param {string} attr.values.value - Attribute coded value\n * @param {string} attr.values.url - URL to de/select an attribute value of the product\n * @param {boolean} attr.values.isSelectable - Flag as to whether an attribute value can be selected. If there is no variant that corresponds to a specific combination of attribute values, an attribute may be disabled in the Product Detail Page\n * @param {jQuery} $productContainer - DOM container for a given product\n */\nfunction processNonSwatchValuesMiniSet(attr, $productContainer) {\n  let $attr = $productContainer.find($('.list-' + attr.id));\n\n  attr.values.forEach(function (attrValue) {\n    let $attrValue = $attr.find('[data-attr-value=\"' + attrValue.value + '\"]');\n\n    $attrValue.attr('value', attrValue.url).removeAttr('disabled');\n\n    if (!attrValue.selectable) {\n      $attrValue.attr('disabled', true);\n    }\n\n    if (attrValue.selected) {\n      $attrValue.attr('selected', 'selected');\n      $attrValue.addClass('selected');\n    } else {\n      $attrValue.removeAttr('selected');\n      $attrValue.removeClass('selected');\n    }\n  });\n}\n\n/**\n * Routes the handling of attribute processing depending on whether the attribute has image\n *     swatches or not\n *\n * @param {Object} attrs - Attribute\n * @param {string} attr.id - Attribute ID\n * @param {jQuery} $productContainer - DOM element for a given product\n */\nfunction updateAttrs(attrs, $productContainer) {\n  const attrsWithSwatches = ['color'];\n\n  attrs.forEach(function (attr) {\n    if (attrsWithSwatches.indexOf(attr.id) > -1) {\n      processSwatchValues(attr, $productContainer);\n    } else {\n      processNonSwatchValues(attr, $productContainer);\n    }\n  });\n}\n\n/**\n * Routes the handling of attribute processing depending on whether the attribute has image swatches or not\n *\n * @param {Object} attrs - Attribute\n * @param {string} attr.id - Attribute ID\n * @param {jQuery} $productContainer - DOM element for a given product\n */\nfunction updateMiniAttrs(attrs, $productContainer) {\n  const attrsWithSwatches = ['color'];\n\n  attrs.forEach(function (attr) {\n    if (attrsWithSwatches.indexOf(attr.id) > -1) {\n      processSwatchValues(attr, $productContainer);\n    } else {\n      processNonSwatchValuesMiniSet(attr, $productContainer);\n    }\n  });\n}\n\n/**\n * Updates the availability status in the Product Detail Page\n *\n * @param {Object} response - Ajax response object after an\n *                            attribute value has been [de]selected\n * @param {jQuery} $productContainer - DOM element for a given product\n */\nfunction updateAvailability(response, $productContainer) {\n  var availabilityValue = '';\n  var availabilityMessages = response.product.availability.messages;\n  if (!response.product.readyToOrder) {\n    availabilityValue = '<div>' + response.resources.info_selectforstock + '</div>';\n  } else {\n    availabilityMessages.forEach(function (message) {\n      availabilityValue += '<div>' + message + '</div>';\n    });\n    controlSizeModalProduct(null, response);\n  }\n\n  /** Controllo che mostra la label del prodotto in quick view solo se la label del prodotto è presente */\n  var $nameGroup = $('.product-name-group');\n  var $labels = $('.product-tag-labels');\n  var label = response.product.label;\n\n  if ($labels.length === 0 && label) {\n    $nameGroup.prepend('<ul class=\"product-tag-labels\"><li><span class=\"product-tag-label\">' + label + '</span></li></ul>');\n  } else if ($labels.length > 0 && label) {\n    $labels.find('span').text(label);\n    $labels.removeClass('hide');\n  } else if (!label && $labels.length > 0) {\n    $labels.addClass('hide');\n  }\n\n  $($productContainer).trigger('product:updateAvailability', {\n    product: response.product,\n    $productContainer: $productContainer,\n    message: availabilityValue,\n    resources: response.resources\n  });\n}\n\n/**\n * Generates html for promotions section\n *\n * @param {array} promotions - list of promotions\n * @return {string} - Compiled HTML\n */\nfunction getPromotionsHtml(promotions) {\n  if (!promotions) {\n    return '';\n  }\n\n  var html = '';\n\n  promotions.forEach(function (promotion) {\n    html += '<div class=\"callout-msg\">' + promotion.calloutMsg + '</div>';\n  });\n\n  return html;\n}\n\n/**\n * Generates html for product attributes section\n *\n * @param {array} attributes - list of attributes\n * @return {string} - Compiled HTML\n */\nfunction getAttributesHtml(attributes) {\n  if (!attributes) {\n    return '';\n  }\n\n  var html = '';\n\n  attributes.forEach(function (attributeGroup) {\n    if (attributeGroup.ID === 'mainAttributes') {\n      attributeGroup.attributes.forEach(function (attribute) {\n        html += '<div class=\"attribute-values\">' + attribute.label + ': '\n            + attribute.value + '</div>';\n      });\n    }\n  });\n\n  return html;\n}\n\n/**\n * @typedef UpdatedOptionValue\n * @type Object\n * @property {string} id - Option value ID for look up\n * @property {string} url - Updated option value selection URL\n */\n\n/**\n * @typedef OptionSelectionResponse\n * @type Object\n * @property {string} priceHtml - Updated price HTML code\n * @property {Object} options - Updated Options\n * @property {string} options.id - Option ID\n * @property {UpdatedOptionValue[]} options.values - Option values\n */\n\n/**\n * Parses JSON from Ajax call made whenever an attribute value is [de]selected\n * @param {Object} response - response from Ajax call\n * @param {Object} response.product - Product object\n * @param {string} response.product.id - Product ID\n * @param {Object[]} response.product.variationAttributes - Product attributes\n * @param {Object[]} response.product.images - Product images\n * @param {boolean} response.product.hasRequiredAttrsSelected - Flag as to whether all required\n *     attributes have been selected.  Used partially to\n *     determine whether the Add to Cart button can be enabled\n * @param {jQuery} $productContainer - DOM element for a given product.\n */\nfunction handleVariantResponse(response, $productContainer) {\n  let isChoiceOfBonusProducts = $productContainer.parents('.choose-bonus-product-dialog').length > 0;\n  let isVaraint;\n  let isNewtest = response.product.isNewtest;\n  let isInWishlist = response.product.isInWishlist;\n  let isOnSale = response.product.isSale;\n\n  if (response.product.variationAttributes) {\n    updateAttrs(response.product.variationAttributes, $productContainer);\n    isVaraint = response.product.productType === 'variant';\n    if (isChoiceOfBonusProducts && isVaraint) {\n      $productContainer.parent('.bonus-product-item').data('pid', response.product.id);\n      $productContainer.parent('.bonus-product-item').data('ready-to-order', response.product.readyToOrder);\n    }\n  }\n\n  if (!isChoiceOfBonusProducts) {\n    var $priceSelector = $('.product-name-group .price');\n    $priceSelector.replaceWith(response.product.price.html);\n  }\n\n  $('.side-details .product-name').empty().html(response.product.productName);\n  $('.promotions').empty().html(getPromotionsHtml(response.product.promotions));\n\n  updateAvailability(response, $productContainer);\n\n  if (isChoiceOfBonusProducts) {\n    var $selectButton = $productContainer.find('.select-bonus-product');\n    $selectButton.trigger('bonusproduct:updateSelectButton', {\n      product: response.product,\n      $productContainer: $productContainer\n    });\n  } else {\n    $('button.add-to-cart, button.add-to-cart-global').trigger('product:updateAddToCart', {\n      product: response.product,\n      $productContainer: $productContainer\n    }).trigger('product:statusUpdate', response.product);\n  }\n\n  if (isNewtest) {\n    $('.side-details .new-arrival').addClass('show').removeClass('hide');\n  } else {\n    $('.side-details .new-arrival').addClass('hide').removeClass('show');\n  }\n\n  if (isOnSale) {\n    $('.side-details .is-sale').addClass('show').removeClass('hide');\n  } else {\n    $('.side-details .is-sale').addClass('hide').removeClass('show');\n  }\n\n  if (isInWishlist) {\n    $('.side-details .add-to-wish-list, .side-grid-images .add-to-wish-list').addClass('is-in-wishlist');\n  } else {\n    $('.side-details .add-to-wish-list, .side-grid-images .add-to-wish-list').removeClass('is-in-wishlist');\n  }\n\n  if ($productContainer.find('.error-msg').length) {\n    $productContainer.find('.error-msg').remove();\n  }\n\n  $productContainer.find('.add-to-wish-list').each(function (index, el) {\n    el = $(el);\n    el.attr('disabled', false);\n    const attr = el.attr('data-remove-url');\n\n    if (typeof attr !== typeof undefined && attr !== false) {\n      el.attr('data-remove-url', el.attr('data-remove-url').replace(/\\?pid=.*/g, '?pid=' + response.product.id));\n    }\n  });\n\n  $productContainer.find('.main-attributes').empty().html(getAttributesHtml(response.product.attributes));\n  $productContainer.removeClass('loading');\n}\n\n/**\n * Parses JSON from Ajax call made whenever an attribute value is [de]selected on a mini product set.\n * @param {Object} response - response from Ajax call\n * @param {Object} response.product - Product object\n * @param {string} response.product.id - Product ID\n * @param {Object[]} response.product.variationAttributes - Product attributes\n * @param {boolean} response.product.hasRequiredAttrsSelected - Flag as to whether all required\n *     attributes have been selected.  Used partially to\n *     determine whether the Add to Cart button can be enabled\n * @param {jQuery} $productContainer - DOM element for a given product.\n */\nfunction handleVariantMiniSetResponse(response, $productContainer) {\n  if (response.product.variationAttributes) {\n    updateMiniAttrs(response.product.variationAttributes, $productContainer);\n  }\n\n  var $priceSelector = $productContainer.find('.price');\n  $priceSelector.replaceWith(response.product.price.html);\n\n  $productContainer.find('.product-info .product-link').text(response.product.productName);\n  $productContainer.find('button.add-to-cart-set').trigger('product:updateAddToCartMiniSet', {\n    product: response.product,\n    $productContainer: $productContainer\n  });\n\n  $productContainer.removeClass('loading');\n}\n\n/**\n * @typespec UpdatedQuantity\n * @type Object\n * @property {boolean} selected - Whether the quantity has been selected\n * @property {string} value - The number of products to purchase\n * @property {string} url - Compiled URL that specifies variation attributes, product ID, options, etc.\n */\n\n/**\n * Updates the quantity DOM elements post Ajax call\n * @param {UpdatedQuantity[]} quantities -\n * @param {jQuery} $productContainer - DOM container for a given product\n */\nfunction updateQuantities(quantities, $productContainer) {\n  if (!($productContainer.parent('.bonus-product-item').length > 0)) {\n    var optionsHtml = quantities.map(function (quantity) {\n      var selected = quantity.selected ? ' selected ' : '';\n      return '<option value=\"' + quantity.value + '\"  data-url=\"' + quantity.url + '\"' + selected + '>' + quantity.value + '</option>';\n    }).join('');\n    getQuantitySelector($productContainer).empty().html(optionsHtml);\n  }\n}\n\n/**\n * Updates the \"color name\" DOM element post Ajax call\n */\nfunction updateColorName() {\n  if ($('.color-cell-container').find('.swatch-color').hasClass('selected')) {\n    var colorName = $('.swatch-color.selected').attr('data-display-value');\n    $('[data-attr=\"color\"]').find('.color-name').text(colorName);\n  } else {\n    $('[data-attr=\"color\"]').find('.color-name').text('');\n  }\n}\n\n/**\n * updates the product view when a product attribute is selected or deselected or when changing quantity\n * @param {string} selectedValueUrl - the Url for the selected variation value\n * @param {jQuery} $productContainer - DOM element for current product\n */\nfunction attributeSelect(selectedValueUrl, $productContainer, $secondaryCall) {\n  if (typeof $secondaryCall === 'undefined') {\n    $secondaryCall = false;\n  }\n\n  if (selectedValueUrl) {\n    $.ajax({\n      url: selectedValueUrl,\n      method: 'GET',\n      beforeSend: function () {\n        $productContainer.addClass('loading');\n      },\n      success: function (data) {\n        handleVariantResponse(data, $productContainer);\n        updateQuantities(data.product.quantities, $productContainer);\n        updateColorName();\n        updateAddToCartEvent(data.product);\n        updateLabel(data.product);\n        controlSizeModalProduct(null, ($productContainer.hasClass('product-quickview')) ? data : null);\n        if (!$secondaryCall) {\n          replaceProductsetWidget(data);\n          updateScalapayWidget(data.product);\n          //Aggiunta una chiamata Ajax al controller Product-CompleteYourLook che ritorna tutto il template processato complete your look e rimpiazza\n          var completeYourLookWrapper =  $('.complete-your-look-wrapper');\n          //ho notato questa funzione (attributeSelect) è chiamata 2 volte al click su un colore, avevo pensato di metterla dentro l'if della riga 464 per evitare doppio caricamento\n          //questa funzione  viene chiamata sempre anche quando si apre una quickview, ho cercato di bloccarla così $('.quick-view-modal.modal.reveal.large .modal-content.modal-body').children().length\n          if(completeYourLookWrapper.length > 0 && $('.quick-view-modal.modal.reveal.large .modal-content.modal-body').children().length === 0){\n            updateCompleteYourLook(data)\n          }\n        }\n        $('body').trigger('product:afterAttributeSelect', {\n          data: data,\n          container: $productContainer\n        });\n\n        if (data.product.oosProduct) {\n          $('button.add-to-cart', $productContainer).addClass('hidden');\n          $('.availability-msg.oos', $productContainer).css({ 'font-size': '18px', 'font-weight': '500', color: '#C82828' });\n          $('.availability-msg.oos', $productContainer).text(data.product.oosLabel);\n          $('.availability-msg.oos', $productContainer).removeClass('hidden');\n        } else {\n          $('button.add-to-cart', $productContainer).removeClass('hidden');\n          $('.availability-msg.oos', $productContainer).addClass('hidden');\n        }\n      },\n      error: function () {\n        console.log('error in process the request');\n      }\n    });\n  }\n}\n\nfunction updateScalapayWidget(product){\n  if(!product) return;\n\n  const scalapayWidget = $('scalapay-widget');\n  try{\n    if(scalapayWidget.length && !!product.price.sales.decimalPrice){\n      scalapayWidget.attr('amount', product.price.sales.decimalPrice);\n    }\n  }catch(ex){}\n}\n\nfunction replaceProductsetWidget(data) {\n  if (typeof productSetWidgetAction === 'undefined' || typeof data === 'undefined') {\n    return;\n  }\n\n  if (typeof data.product.productSets !== 'undefined' && data.product.productSets.length > 0) {\n    $.ajax({\n      url: productSetWidgetAction,\n      type: 'GET',\n      dataType: 'html',\n      data: data.queryString,\n      success: function (data) {\n        if ($('.extra-product-container').length > 0) {\n          if ($('.extra-product-container .product-set').length > 0) {\n            $('.extra-product-container .product-set').remove();\n          }\n\n          $('.extra-product-container').prepend(data);\n          $(document).foundation();\n        }\n      }\n    });\n  } else if ($('.extra-product-container .product-set').length > 0) {\n    $('.extra-product-container .product-set').remove();\n  }\n}\n\n/**\n * get template for replace all PDP images\n */\nfunction replaceImages(url, $productContainer) {\n  var productContainerImages = $productContainer;\n  var carouselImages = null;\n  if (productContainerImages.find('.slides').length) {\n    carouselImages = productContainerImages.find('.slides');\n  }\n  if (url) {\n    $.ajax({\n      url: url,\n      method: 'GET',\n      beforeSend: function () {\n        productContainerImages.addClass('loading');\n      },\n      success: function (data) {\n        productContainerImages.empty().html(data);\n        productContainerImages.removeClass('loading');\n        if (carouselImages) {\n          carouselImages.owlCarousel('destroy');\n          carousel.quickviewCarousel();\n        } else {\n          productContainerImages.owlCarousel('destroy');\n          owl(productContainerImages);\n        }\n      },\n      error: function () {\n        console.log('error in process the request');\n      }\n    });\n  }\n}\n\n/**\n * get template for replace all PDP modal images\n */\nfunction replaceModalImages(url) {\n  var productModalImages = $(document).find('.product-zoom-modal');\n  if (url) {\n    $.ajax({\n      url: url,\n      method: 'GET',\n      success: function (data) {\n        productModalImages.empty().html(data);\n      },\n      error: function () {\n        console.log('error in process the request');\n      }\n    });\n  }\n}\n\n/**\n * function to update price for SEO event addToCart\n */\nfunction updateAddToCartEvent(product) {\n  $(document).ready(function () {\n    if (typeof $(document).find('.add-to-cart').data('analiticsp') !== 'undefined') {\n      let price = 0;\n      if (Object.prototype.hasOwnProperty.call(product.price, 'min')) {\n        price = product.price.min;\n      } else if (Object.prototype.hasOwnProperty.call(product.price, 'max')) {\n        price = product.price.max;\n      } else if (Object.prototype.hasOwnProperty.call(product.price, 'sales')) {\n        price = product.price.sales.value;\n      } else price = product.price;\n\n      let addToCartEvent = $(document).find('.add-to-cart').data('analiticsp');\n      let addToCartEventParse = JSON.parse(decodeURIComponent(addToCartEvent));\n\n      let datalayerEvent = {\n        name: addToCartEventParse.name,\n        id: addToCartEventParse.id,\n        price: price,\n        brand: 'twinset milano',\n        category: addToCartEventParse.category,\n        variant: addToCartEventParse.variant,\n        quantity: '1',\n        dimension14: addToCartEventParse.dimension14,\n        dimension15: addToCartEventParse.dimension15,\n        dimension16: addToCartEventParse.dimension16\n      };\n\n      let encodedDatalayerEvent = encodeURIComponent(JSON.stringify(datalayerEvent));\n\n      let elem = $(document).find('.add-to-cart').not('.add-to-wish-list');\n      elem.data('analiticsp', encodedDatalayerEvent);\n    }\n  });\n}\n\n\nfunction updateLabel(product){\n  if(product.label){\n    $('.product-tag-label').text(product.label);\n  }\n}\n\nfunction updateCompleteYourLook(data){\n  $.ajax({\n    url: data.completeYourLook,\n    method: 'GET',\n    data: { pid: data.product.id },\n    success: function(response) {\n      $('.complete-your-look-wrapper').html(response);\n    },\n    error: function(xhr, status, error) {\n      console.error('Errore nel caricamento del widget \"Complete Your Look\":', error);\n    }\n  });\n}\n/**\n * get template for replace accordion PDP\n */\nfunction replaceAccordion(url) {\n  var productAccordion = $(document).find('.product-accordion');\n  if (url) {\n    $.ajax({\n      url: url,\n      method: 'GET',\n      success: function (data) {\n        productAccordion.empty().html(data);\n      },\n      complete: function (data) {\n        Accordion.run();\n      },\n      error: function () {\n        console.log('error in process the request');\n      }\n    });\n  }\n}\n\n/**\n * updates the product view when a \"mini product set\" attribute is selected or deselected or when changing size\n * @param {string} selectedValueUrl - the Url for the selected variation value\n * @param {jQuery} $productContainer - DOM element for current product\n */\nfunction attributeSelectMiniSet(selectedValueUrl, $productContainer) {\n  if (selectedValueUrl) {\n    $.ajax({\n      url: selectedValueUrl,\n      method: 'GET',\n      beforeSend: function () {\n        $productContainer.addClass('loading');\n      },\n      success: function (data) {\n        handleVariantMiniSetResponse(data, $productContainer);\n        controlSizeModalProductSet();\n\n        // changhe set mini product set PID\n        $('body').trigger('product:afterMiniAttributeSelect', {\n          data: data,\n          container: $productContainer\n        });\n      },\n      error: function () {\n        console.log('error in process the request');\n      }\n    });\n  }\n}\n\n/**\n * Retrieves url to use when adding a product to the cart\n *\n * @return {string} - The provided URL to use when adding a product to the cart\n */\nfunction getAddToCartUrl() {\n  return $('.add-to-cart-url').val();\n}\n\n/**\n * Parses the html for a modal window\n * @param {string} html - representing the body and footer of the modal window\n *\n * @return {Object} - Object with properties body and footer.\n */\nfunction parseHtml(html) {\n  var $html = $('<div>').append($.parseHTML(html));\n\n  var body = $html.find('.choice-of-bonus-product');\n  var footer = $html.find('.modal-footer').children();\n\n  return {\n    body: body,\n    footer: footer\n  };\n}\n\n/**\n * Assignment of post Ajax parameters to open the \"size modal\" in case the user does not select a size.\n * @param {Object} html - the element to be assigned the parameters to open the \"size modal\"\n */\nfunction controlSizeModalProduct(elem, response) {\n  elem = (!elem) ? $('button.add-to-cart') : $(elem);\n\n  if(!!response && response.hasGiftCard){\n    Callout.error(null, response.giftCardAllert, $('#quickViewModal .error-wrapper'), false, false, false);\n  }else if ($('[data-attr=\"size\"] .selected').length === 0) {\n    if ($('.size-modal').length === 0) {\n      elem.removeClass('disabled');\n      elem.addClass('no-modal-no-size-selected');\n    } else {\n      elem.each(function (index, el) {\n        if ($(el).parent().is('.cart-and-ipay')) {\n          $(el).removeAttr('disabled').attr('data-open', 'size-modal').addClass('disabled');\n        } else {\n          $(el).removeAttr('disabled').addClass('disabled');\n        }\n      });\n    }\n  } else {\n    elem.removeAttr('data-open').removeClass('disabled no-size-selected').removeClass('no-modal-no-size-selected');\n    elem.removeAttr('disabled');\n  }\n}\n\n/**\n * Assignment of post Ajax parameters to open the \"size modal\" in case the user does not select a size.\n * dedicated to products of type product-set\n * @param {Object} html - the element to be assigned the parameters to open the \"size modal\"\n */\nfunction controlSizeModalProductSet(elem) {\n  elem = (!elem) ? $('button.add-to-cart-set') : $(elem);\n\n  elem.each(function (index, el) {\n    var elemSelect = $(el).parents('[data-attr=\"size\"]').find('select');\n    var elemModalId = $(el).parents('[data-attr=\"size\"]').data('modal');\n\n    if (elemSelect.length > 0) {\n      if (typeof elemSelect.find(':selected').data('attr-value') !== 'undefined') {\n        $(el).removeAttr('data-open');\n      } else if ($('#' + elemModalId).length > 0) {\n        $(el).attr('data-open', elemModalId);\n      }\n    }\n  });\n}\n\n/**\n * Retrieves the bundle product item ID's for the Controller to replace bundle master product\n * items with their selected variants\n *\n * @return {string[]} - List of selected bundle product item ID's\n */\nfunction getChildProducts() {\n  var childProducts = [];\n  $('.bundle-item').each(function () {\n    childProducts.push({\n      pid: $(this).find('.product-id').text(),\n      quantity: parseInt($(this).find('label.quantity').data('quantity'), 10)\n    });\n  });\n\n  return childProducts.length ? JSON.stringify(childProducts) : [];\n}\n\n/**\n * Initialize \"images grid\" carousel on mobile breakpoint\n *\n * @param {jQuery} $el - DOM element for initialize the carousel\n */\nfunction owl($el) {\n  const breakpoint = 720;\n  let width = $(window).innerWidth();\n  let $render = $el;\n\n  if (width > breakpoint) {\n    if (!$render.hasClass('owl-carousel') || !$render.length) {\n      return;\n    }\n\n    $render.removeClass('owl-carousel').trigger('destroy.owl.carousel');\n  } else if (width <= breakpoint) {\n    if ($render.hasClass('owl-loaded') || !$render.length) {\n      return;\n    }\n\n    $render.addClass('owl-carousel').owlCarousel({\n      items: 1,\n      loop: true,\n      nav: false,\n      dots: true,\n      smartSpeed: 450,\n      slideTransition: 'ease-in-out'\n    });\n  }\n}\n\nclass product {\n  constructor() {\n    this.methods = {\n      editBonusProducts: function (data) {\n        // chooseBonusProducts(data);\n      }\n    };\n  }\n\n  colorValue() {\n    updateColorName();\n  }\n\n  colorAttributeNoClick(element, forceSelect) {\n    var oldColor = $('a.swatch-color.selected').data('familyColorSearch');\n    var self = $(element);\n\n    if (!forceSelect && (self.attr('disabled') || self.hasClass('unselectable') || self.hasClass('selected'))) {\n      return;\n    }\n\n    try {\n      document.title = document.title.replace(oldColor, self.data('familyColorSearch'));\n      var description = $('meta[name=\"description\"]').attr('content');\n      var ogDescription = $('meta[property=\"og:description\"]').attr('content');\n      $('meta[name=\"description\"]').attr('content', description.replace(oldColor, self.data('familyColorSearch')));\n      $('meta[property=\"og:description\"]').attr('content', ogDescription.replace(oldColor, self.data('familyColorSearch')));\n    } catch (error) {\n\n    }\n\n    var $productContainer = self.closest('.product-quickview');\n\n    if (!$productContainer.length) {\n      $productContainer = self.closest('.product-detail');\n      attributeSelect(self.attr('href'), $productContainer);\n      attributeSelect(self.attr('href'), $('.size-modal'), true);\n      replaceImages(self.data('image-url'), $productContainer.find('.grid-render'));\n      replaceModalImages(self.data('modal-image-url'));\n      replaceAccordion(self.data('accordion-url'));\n      EnhancedSeo.clickAccordion(['.product-accordion .trigger', 'aria-expanded']);\n    } else {\n      attributeSelect(self.attr('href'), $productContainer);\n      replaceImages(self.data('image-url') + '&quickview=true', $productContainer.find('.quick-view-images'));\n    }\n  }\n\n  colorAttribute() {\n    $(document).off('click', '[data-attr=\"color\"] a').on('click', '[data-attr=\"color\"] a', function (e) {\n      e.preventDefault();\n      this.colorAttributeNoClick(e.currentTarget);\n      // check if the event is user generated or programmatically triggered\n      var isUserEvent = true;\n      if (typeof e.isTrusted !== 'undefined') {\n        isUserEvent = e.isTrusted;\n      } else if (e.clientX === 0 && e.clientY === 0) {\n        // compatibility for browser that does not yet support isTrusted property\n        isUserEvent = false;\n      }\n      // do not trigger variant event if the click is not user generated\n      if (isUserEvent) {\n        EnhancedSeo.selectedVariant($(e.currentTarget), ['.product-detail', 'pid', 'data-family-color-search']);\n      }\n    }.bind(this));\n\n    $(document).ready(function () {\n      if (colorValueHtmlHead) {\n        $('a.swatch-color').each(function (i, el) {\n          var colorIndex = $(el).data('familyColorSearch');\n          if (colorIndex !== colorValueHtmlHead) {\n            try {\n              document.title = document.title.replace(colorIndex, colorValueHtmlHead);\n              var description = $('meta[name=\"description\"]').attr('content');\n              var ogDescription = $('meta[property=\"og:description\"]').attr('content');\n              $('meta[name=\"description\"]').attr('content', description.replace(colorIndex, colorValueHtmlHead));\n              $('meta[property=\"og:description\"]').attr('content', ogDescription.replace(colorIndex, colorValueHtmlHead));\n            } catch (error) {\n\n            }\n          }\n        });\n      }\n    });\n  }\n\n  selectAttributeNoClick(element) {\n    var self = $(element);\n\n    if (self.attr('disabled') || self.hasClass('selected')) {\n      return;\n    }\n\n    var $productContainer = self.closest('.product-quickview');\n\n    if (!$productContainer.length) {\n      $productContainer = $('.product-detail');\n      attributeSelect(self.attr('data-url-value'), $productContainer);\n      attributeSelect(self.attr('data-url-value'), $('.size-modal'), true);\n      replaceAccordion(self[0].dataset.accordionUrl);\n    } else {\n      attributeSelect(self.attr('data-url-value'), $productContainer);\n    }\n  }\n\n  selectAttribute() {\n    $(document).on('click', '[data-attr=\"size\"] .list-size > li, .options-select', function (e) {\n      e.preventDefault();\n      this.selectAttributeNoClick(e.currentTarget);\n    }.bind(this));\n\n    $(document).on('click', '[data-productset-attr=\"size\"] .list-size > li', function (e) {\n      e.preventDefault();\n      var self = $(e.currentTarget);\n      var referencedSelect = $('[data-modal=\"' + self.parents('section').attr('id') + '\"]').find('select');\n\n      if (self.attr('disabled') || self.hasClass('selected')) {\n        return;\n      }\n\n      referencedSelect.val(self.attr('data-url-value')).trigger('change');\n      var $productContainer = $('[data-modal=\"' + self.parents('section').attr('id') + '\"]');\n      attributeSelectMiniSet(self.attr('data-url-value'), $productContainer);\n      attributeSelectMiniSet(self.attr('data-url-value'), self.parents('section'), true);\n    });\n  }\n\n  selectMiniSetAttribute() {\n    $(document).on('change', '.set-items-render .list-size', function (e) {\n      e.preventDefault();\n\n      const self = $(e.currentTarget);\n      const $productContainer = self.closest('.set-items-render');\n      let url = self.val();\n\n      if (url === 'null' || url === '') {\n        self.closest('.set-items-render').find('.add-to-cart-set').addClass('disabled');\n      } else {\n        attributeSelectMiniSet(url, $productContainer);\n      }\n    });\n  }\n\n  availability() {\n    $(document).on('change', '.quantity-select', function (e) {\n      e.preventDefault();\n\n      var $productContainer = $(e.currentTarget).closest('.product-detail');\n      if (!$productContainer.length) {\n        $productContainer = $(e.currentTarget).closest('.modal-content').find('.product-quickview');\n      }\n\n      if ($('.bundle-items', $productContainer).length === 0) {\n        attributeSelect($(e.currentTarget).find('option:selected').data('url'), $productContainer);\n      }\n    });\n  }\n\n  addToCart() {\n    $(document).off('click', 'button.add-to-cart, button.add-to-cart-global')\n      .on('click', 'button.add-to-cart, button.add-to-cart-global', (e, options) => {\n        e.preventDefault();\n\n        var addToCartUrl;\n        var pid;\n        var quantity;\n        var pidsObj;\n        var options = !!options ? JSON.stringify(options) : null;\n        var self = $(e.currentTarget);\n\n        if ((self.hasClass('disabled') && self.hasClass('no-size-selected')) || self.hasClass('no-modal-no-size-selected')) {\n          if ($('.list-size').next('.error-msg').length === 0) {\n            const div = $('<div class=\"error-msg\"></div>');\n            const errorMsg = $('.variation-attr').attr('data-error-msg');\n            div.text(errorMsg).insertAfter('.quick-view-details .list-size');\n          }\n\n          return;\n        }\n\n        pid = getPidValue(self);\n\n        if (self.hasClass('disabled') || self.hasClass('not-enabled-to-add') || self.hasClass('no-modal-no-size-selected')) {\n          if (self.hasClass('add-to-wish-list')) {\n            EnhancedSeo.noSizeWishlistClick(pid, ['.swatch-color.selected', 'familyColorSearch']);\n          } else {\n            EnhancedSeo.noSizeClick(pid, ['.swatch-color.selected', 'familyColorSearch']);\n          }\n          return;\n        }\n\n        addToCartUrl = getAddToCartUrl();\n        quantity = getQuantitySelected(self) || 1;\n\n        var form = {\n          pid: pid,\n          pidsObj: pidsObj,\n          childProducts: getChildProducts(),\n          quantity: quantity,\n          options: options\n        };\n\n        if (!self.parents('.size-modal').length) {\n          controlSizeModalProduct(e.currentTarget);\n        } else {\n          $('.size-modal .close-modal').trigger('click');\n        }\n\n        if (addToCartUrl) {\n          $.ajax({\n            url: addToCartUrl,\n            method: 'POST',\n            data: form,\n            success: (data) => {\n              if(data.error && data.hasGiftCardError){\n                showAlertModal(data);\n                return;\n              }\n              if (data.excess || data.error) {\n                $('.mini-cart-link').attr('data-has-error', 'true');\n              } else {\n                $('.mini-cart-link').removeAttr('data-has-error');\n              }\n\n              // Trigger Goal Event: cart_created\n              if (data.created) {\n                dataLayer.push({\n                  gaHitType: 'event',\n                  event: 'goal_event',\n                  event_category: 'cart_created',\n                  event_action: pid.replace(/_/g, '|')\n                });\n              }\n              if (pageTypeForJS === 'cart') {\n                location.reload();\n                $(document).ready(function () {\n                  $(this).scrollTop(0);\n                });\n              }\n              AddToCartMsg.handlePostCartAdd(data);\n              EnhancedSeo.pushATC(\n                self.data(\"analiticsp\"),\n                this.getDataLayerGA4(data.cart, pid, \"add_to_cart\", true)\n              );\n              $('body').trigger('product:afterAddToCart', data);\n            },\n            error: function () {\n              console.log('error in process request');\n            }\n          });\n        }\n      });\n  }\n\n  addToCartMiniSet() {\n    $(document).on('click', 'button.add-to-cart-set', function (e) {\n      e.preventDefault();\n\n      var addToCartUrl;\n      var pid;\n      var pidsObj;\n      var self = $(e.currentTarget);\n      var $productContainer = self.closest('.set-item');\n\n      if (self.hasClass('disabled')) {\n        return;\n      }\n\n      if (!self.parents('.size-modal').length) {\n        controlSizeModalProductSet(e.currentTarget);\n      } else {\n        $('.size-modal .close-modal').trigger('click');\n      }\n\n      $('body').trigger('product:beforeAddToCart', this);\n      pid = $productContainer.attr('data-pid');\n      addToCartUrl = getAddToCartUrl();\n\n      var form = {\n        pid: pid,\n        pidsObj: pidsObj,\n        childProducts: [],\n        quantity: 1\n      };\n\n      if (addToCartUrl && !self.hasClass('disabled')) {\n        $.ajax({\n          url: addToCartUrl,\n          method: 'POST',\n          data: form,\n          success: (data) => {\n            AddToCartMsg.handlePostCartAdd(data);\n            $('body').trigger('product:afterAddToCart', data);\n\n            if (typeof dataLayer !== 'undefined') {\n              dataLayer.push({\n                event: 'shop_by_look_add_to_cart',\n                ecommerce: this.getDataLayerGA4(data.cart, pid, \"add_to_cart\", false)\n              });\n            }\n          },\n          error: function () {\n            console.log('error in process request');\n          }\n        });\n      }\n    }.bind(this));\n  }\n\n  gridImagesCarousel() {\n    const win = $(window);\n    const gridImages = $('.grid-render');\n\n    let scrollToSlider = function () {\n      var breakpoint = Foundation.MediaQuery.current;\n      var edge = $('.header-banner').outerHeight(true) + $('header').outerHeight(true);\n\n      if (window.device && (window.device.type === 'mobile' || window.device.type === 'tablet') || breakpoint === 'medium' || breakpoint === 'small') {\n        if ($(window).scrollTop() <= edge) {\n          $('html, body').animate({\n            scrollTop: edge + 10\n          }, 500);\n        }\n      }\n    };\n\n    $(document).ready(owl(gridImages));\n\n    win.on('resize', function () {\n      owl(gridImages);\n    });\n\n    win.on('load', function () {\n      scrollToSlider();\n    });\n  }\n\n  selectBonusProduct() {\n    $(document).on('click', '.select-bonus-product', function () {\n      var $choiceOfBonusProduct = $(this).parents('.choice-of-bonus-product');\n      var pid = $(this).data('pid');\n      var maxPids = $('.choose-bonus-product-dialog').data('total-qty');\n      var submittedQty = parseInt($(this).parents('.choice-of-bonus-product').find('.bonus-quantity-select').val(), 10);\n      var totalQty = 0;\n      $.each($('#chooseBonusProductModal .selected-bonus-products .selected-pid'), function () {\n        totalQty += $(this).data('qty');\n      });\n      totalQty += submittedQty;\n      var optionID = $(this).parents('.choice-of-bonus-product').find('.product-option').data('option-id');\n      var valueId = $(this).parents('.choice-of-bonus-product').find('.options-select option:selected').data('valueId');\n      if (totalQty <= maxPids) {\n        var selectedBonusProductHtml = ''\n            + '<div class=\"selected-pid row\" '\n            + 'data-pid=\"' + pid + '\"'\n            + 'data-qty=\"' + submittedQty + '\"'\n            + 'data-optionID=\"' + (optionID || '') + '\"'\n            + 'data-option-selected-value=\"' + (valueId || '') + '\"'\n            + '>'\n            + '<div class=\"col-sm-11 col-9 bonus-product-name\" >'\n            + $choiceOfBonusProduct.find('.product-name').html()\n            + '</div>'\n            + '<div class=\"col-1\"><i class=\"fa fa-times\" aria-hidden=\"true\"></i></div>'\n            + '</div>';\n        $('#chooseBonusProductModal .selected-bonus-products').append(selectedBonusProductHtml);\n        $('.pre-cart-products').html(totalQty);\n        $('.selected-bonus-products .bonus-summary').removeClass('alert-danger');\n      } else {\n        $('.selected-bonus-products .bonus-summary').addClass('alert-danger');\n      }\n    });\n  }\n\n  removeBonusProduct() {\n    $(document).on('click', '.selected-pid', function () {\n      $(this).remove();\n      var $selected = $('#chooseBonusProductModal .selected-bonus-products .selected-pid');\n      var count = 0;\n      if ($selected.length) {\n        $selected.each(function () {\n          count += parseInt($(this).data('qty'), 10);\n        });\n      }\n\n      $('.pre-cart-products').html(count);\n      $('.selected-bonus-products .bonus-summary').removeClass('alert-danger');\n    });\n  }\n\n  enableBonusProductSelection() {\n    $('body').on('bonusproduct:updateSelectButton', function (e, response) {\n      $('button.select-bonus-product', response.$productContainer).attr('disabled',\n        (!response.product.readyToOrder || !response.product.available));\n      var pid = response.product.id;\n      $('button.select-bonus-product').data('pid', pid);\n    });\n  }\n\n  showMoreBonusProducts() {\n    $(document).on('click', '.show-more-bonus-products', function () {\n      var url = $(this).data('url');\n      $('.modal-content').spinner().start();\n      $.ajax({\n        url: url,\n        method: 'GET',\n        success: function (html) {\n          var parsedHtml = parseHtml(html);\n          $('.modal-body').append(parsedHtml.body);\n          $('.show-more-bonus-products:first').remove();\n          $('.modal-content').spinner().stop();\n        },\n        error: function () {\n          $('.modal-content').spinner().stop();\n        }\n      });\n    });\n  }\n\n  /**\n   * @param {Object} cart - Cart/Basket Model\n   * @param {String|Object} product - ID of product or Product Model\n   * @param {String} event - GA4 Event\n   * @param {boolean} isSingleQnt - true if the request come from the UpdateQuantity Route\n   */\n  getDataLayerGA4(cart, product, event, isSingleQnt) {\n    var item = (typeof product === \"object\") ? this.getProductGA4Model(product)\n        : cart.items.filter((el) => { return el.id === product; }).map((prod) => this.getProductGA4Model(prod, isSingleQnt));\n\n    var priceValue = item.price ? (Number(item.price) - Number(item.discount)) : (Number(item[0].price) - Number(item[0].discount))\n\n    return {\n      currency: currentCurrency,\n      value: priceValue,\n      items: event === \"remove_from_cart\" ?  (Array.isArray(item) ? item : [item])  :  item,\n    }\n  }\n\n  getCartGA4Model(cart, event, isSingleQnt){\n\n    var items = [];\n\n    for(let i = 0; i < cart.items.length; i++){\n      var item = this.getProductGA4Model(cart.items[i], isSingleQnt);\n      items.push(item);\n    }\n    document.dispatchEvent(new Event('cart:update'));\n\n    return {\n      currency: currentCurrency,\n      value: Number(cart.totals.grandTotal.substring(2).replace(',', '')),\n      items: items,\n    }\n\n  }\n\n  getProductGA4Model(product, isSingleQnt) {\n    try{\n      const categories = product.categoryPath.split(\"/\");\n      const discount = (product.price.list !== null && product.price.sales !== null)\n        ? (parseFloat(product.price.list.decimalPrice) - parseFloat(product.price.sales.decimalPrice)).toFixed(2) : '0.00';\n      const color = product.variationAttributes.filter((el) => { return el.id === \"color\"} )[0];\n      const size = product.variationAttributes.filter((el) => { return el.id === \"size\"} )[0];\n\n      return {\n        item_id: product.masterid,\n        item_name: product.productName,\n        currency: currentCurrency,\n        discount: Number(discount),\n        item_brand: 'twinset milano',\n        item_category: categories.length > 0 ? categories[0] : '',\n        item_category2: categories.length > 1 ? categories[1] : '',\n        item_category3: categories.length > 2 ? categories[2] : '',\n        item_list_name: 'cart',\n        item_variant: color.displayValue,\n        price: product.price.list ? product.price.list.value : product.price.sales.value,\n        quantity: isSingleQnt ? '1' : product.quantity,\n        item_availability: product.availability.inStock ? 'in_stock' : 'out_of_stock',\n        item_discount_tag: discount !== '0.00' ? 'on_sale' : 'not_on_sale',\n        available_size_percentage: product.available_size_percentage,\n        item_size: size.displayValue,\n        item_variant_v2: product.id,\n        item_url: product.masterUrl,\n        item_img: product.defaultColorImageObj ? product.defaultColorImageObj.large[0].url : product.images.large[0].url\n      }\n    }catch(ex){\n      return {};\n    }\n  }\n\n  addToCartMobileSEO() {\n    $(document).on('click', '.add-to-cart-messages', function () {\n      dataLayer.push({\n        event: 'asyncAction',\n        gaHitType: 'event',\n        event_category: 'funzionalita_cross',\n        event_action: 'prodotto_aggiunto_al_carrello'\n      });\n    });\n\n    $(document).on('click', '#mobile-checkout', function () {\n      dataLayer.push({\n        event: 'asyncAction',\n        gaHitType: 'event',\n        event_category: 'funzionalita_cross',\n        event_action: 'prodotto_aggiunto_al_carrello_new',\n        event_label: 'procedi_all_acquisto'\n      });\n    });\n\n    $(document).on('click', '#mobile-view-cart', function () {\n      dataLayer.push({\n        event: 'asyncAction',\n        gaHitType: 'event',\n        event_category: 'funzionalita_cross',\n        event_action: 'prodotto_aggiunto_al_carrello_new',\n        event_label: 'mostra_carrello'\n      });\n    });\n  }\n\n  addBonusProductsToCart() {\n    $(document).on('click', '.add-bonus-products', function () {\n      var $readyToOrderBonusProducts = $('.choose-bonus-product-dialog .selected-pid');\n      var queryString = '?pids=';\n      var url = $('.choose-bonus-product-dialog').data('addtocarturl');\n      var pidsObject = {\n        bonusProducts: []\n      };\n\n      $.each($readyToOrderBonusProducts, function () {\n        var qtyOption = parseInt($(this)\n          .data('qty'), 10);\n\n        var option = null;\n        if (qtyOption > 0) {\n          if ($(this).data('optionid') && $(this).data('option-selected-value')) {\n            option = {};\n            option.optionId = $(this).data('optionid');\n            option.productId = $(this).data('pid');\n            option.selectedValueId = $(this).data('option-selected-value');\n          }\n          pidsObject.bonusProducts.push({\n            pid: $(this).data('pid'),\n            qty: qtyOption,\n            options: [option]\n          });\n          pidsObject.totalQty = parseInt($('.pre-cart-products').html(), 10);\n        }\n      });\n      queryString += JSON.stringify(pidsObject);\n      queryString = queryString + '&uuid=' + $('.choose-bonus-product-dialog').data('uuid');\n      queryString = queryString + '&pliuuid=' + $('.choose-bonus-product-dialog').data('pliuuid');\n      $.spinner().start();\n      $.ajax({\n        url: url + queryString,\n        method: 'POST',\n        success: function (data) {\n          $.spinner().stop();\n          if (data.error) {\n            $('.error-choice-of-bonus-products').html(data.errorMessage);\n          } else {\n            $('.configure-bonus-product-attributes').html(data);\n            $('.bonus-products-step2').removeClass('hidden-xl-down');\n            $('#chooseBonusProductModal').modal('hide');\n\n            if ($('.add-to-cart-messages').length === 0) {\n              $('body').append(\n                '<div class=\"add-to-cart-messages\"></div>'\n              );\n            }\n            $('.minicart-quantity').html(data.totalQty);\n            $('.add-to-cart-messages').append(\n              '<div class=\"alert alert-success add-to-basket-alert text-center\"'\n                + ' role=\"alert\">'\n                + data.msgSuccess + '</div>'\n            );\n            setTimeout(function () {\n              $('.add-to-basket-alert').remove();\n              if ($('.cart-page').length) {\n                window.location.reload();\n              }\n            }, 3000);\n          }\n        },\n        error: function () {\n          $.spinner().stop();\n        }\n      });\n    });\n  }\n}\n\nconst Product = new product();\nexport default Product;\n\n\n\n// WEBPACK FOOTER //\n// ./assets/scripts/product/index.js","import Easing from '../services/easing';\n\n/**\n * @function setARIA\n * @description Apply the correct ARIA attribute at the moment of click.\n * @param {jQuery} $el - DOM element to set the correct ARIA attribute.\n * @param {jQuery} $container - DOM element to check if it is hidden or not.\n */\nfunction setARIA($el, $container) {\n  if ($el.siblings($container).is(':hidden')) {\n    $el.attr('aria-expanded', 'false');\n  } else {\n    $el.attr('aria-expanded', 'true');\n  }\n}\n\nclass accordion {\n  constructor() {\n    this.parent = '.accordion';\n    this.triggerEl = '.trigger';\n    this.expandable = '.expandable';\n    this.content = '.content';\n    this.defEasing = 'easeInOutCirc';\n    this.defTiming = 450;\n  }\n\n  run() {\n    this.findOpenContents();\n    this.setWCAG();\n    this.trigger();\n  }\n\n  findOpenContents() {\n    $(this.parent).find('[data-init-open]').each((index, el) => {\n      $(el).addClass('open').removeAttr('data-init-open').find(this.content)\n        .show();\n    });\n  }\n\n  setWCAG() {\n    $(this.parent).attr('role', 'tablist').find(this.triggerEl).each((index, el) => {\n      $(el).attr('role', 'tab').attr('tabindex', '0');\n      $(el).siblings(this.content).attr('role', 'tabpanel');\n      setARIA($(el), this.content);\n    });\n  }\n\n  trigger() {\n    $(this.parent).on('click', this.triggerEl, (event) => {\n      event.preventDefault();\n      let self = $(event.currentTarget);\n\n      this.toggleTriggerClass(self);\n      this.toggleContent(self);\n      this.siblingsSlideUp(self);\n    });\n  }\n\n  toggleTriggerClass(elem) {\n    elem.closest(this.expandable).toggleClass('open');\n  }\n\n  toggleContent(elem) {\n    elem.siblings(this.content).stop().slideToggle(this.defTiming, this.defEasing, () => {\n      setARIA(elem, this.content);\n    });\n  }\n\n  siblingsSlideUp(elem) {\n    if (elem.parents(this.parent).attr('data-trigger-once') !== 'true') {\n      elem.closest(this.expandable).siblings(this.expandable).find(this.content).slideUp(this.defTiming, this.defEasing);\n      elem.closest(this.expandable).siblings(this.expandable).removeClass('open');\n      elem.closest(this.expandable).siblings(this.expandable).find(this.triggerEl).attr('aria-expanded', 'false');\n    }\n  }\n}\n\nconst Accordion = new accordion();\nexport default Accordion;\n\n\n\n// WEBPACK FOOTER //\n// ./assets/scripts/components/accordion.js","if (typeof $.easing !== 'undefined') {\n\t$.easing['jswing'] = $.easing['swing'];\n}\n\nexport const Easing = $.extend($.easing, {\n\tdef: 'easeOutQuad',\n\tswing: (x) => {\n\t\treturn $.easing[$.easing.def](x);\n\t},\n\teaseOutQuad: (x) => {\n\t\treturn 1 - (1 - x) * (1 - x);\n\t},\n\teaseInOutCirc: (x) => {\n\t\treturn x < 0.5 ?\n\t\t(1 - Math.sqrt(1 - Math.pow(2 * x, 2))) / 2 :\n\t\t(Math.sqrt(1 - Math.pow(-2 * x + 2, 2)) + 1) / 2;\n\t}\n});\n\n\n\n// WEBPACK FOOTER //\n// ./assets/scripts/services/easing.js","/**\n * Retrieves url to use when adding a product to the cart\n *\n * @param {Object} data - data object used to fill in dynamic portions of the html\n */\nfunction chooseBonusProducts(data) {\n  $('.modal-body').spinner().start();\n\n  if ($('#chooseBonusProductModal').length !== 0) {\n    $('#chooseBonusProductModal').remove();\n  }\n  var bonusUrl;\n  if (data.bonusChoiceRuleBased) {\n    bonusUrl = data.showProductsUrlRuleBased;\n  } else {\n    bonusUrl = data.showProductsUrlListBased;\n  }\n\n  var htmlString = '<!-- Modal -->'\n        + '<div class=\"modal fade\" id=\"chooseBonusProductModal\" role=\"dialog\">'\n        + '<div class=\"modal-dialog choose-bonus-product-dialog\" '\n        + 'data-total-qty=\"' + data.maxBonusItems + '\"'\n        + 'data-UUID=\"' + data.uuid + '\"'\n        + 'data-pliUUID=\"' + data.pliUUID + '\"'\n        + 'data-addToCartUrl=\"' + data.addToCartUrl + '\"'\n        + 'data-pageStart=\"0\"'\n        + 'data-pageSize=\"' + data.pageSize + '\"'\n        + 'data-moreURL=\"' + data.showProductsUrlRuleBased + '\"'\n        + 'data-bonusChoiceRuleBased=\"' + data.bonusChoiceRuleBased + '\">'\n        + '<!-- Modal content-->'\n        + '<div class=\"modal-content\">'\n        + '<div class=\"modal-header\">'\n        + '    <span class=\"\">' + data.labels.selectprods + '</span>'\n        + '    <button type=\"button\" class=\"close pull-right\" data-dismiss=\"modal\">'\n        + '        <span>' + data.labels.close + '</span>&times;'\n        + '    </button>'\n        + '</div>'\n        + '<div class=\"modal-body\"></div>'\n        + '<div class=\"modal-footer\"></div>'\n        + '</div>'\n        + '</div>'\n        + '</div>';\n  $('body').append(htmlString);\n  $('.modal-body').spinner().start();\n\n  $.ajax({\n    url: bonusUrl,\n    method: 'GET',\n    dataType: 'html',\n    success: function (html) {\n      var parsedHtml = parseHtml(html);\n      $('#chooseBonusProductModal .modal-body').empty();\n      $('#chooseBonusProductModal .modal-body').html(parsedHtml.body);\n      $('#chooseBonusProductModal .modal-footer').html(parsedHtml.footer);\n      $('#chooseBonusProductModal').modal('show');\n      $.spinner().stop();\n    },\n    error: function () {\n      $.spinner().stop();\n    }\n  });\n}\n\n/**\n * Updates the Mini-Cart quantity value after the customer has pressed the \"Add to Cart\" button\n * @param {string} response - ajax response from clicking the add to cart button\n */\nclass addToCartMsg {\n  handlePostCartAdd(response) {\n    const minicart = $('.mini-cart');\n    const breakpoint = Foundation.MediaQuery.current;\n\n    minicart.trigger('count:update', response);\n\n    if (response.newBonusDiscountLineItem && Object.keys(response.newBonusDiscountLineItem).length !== 0) {\n      chooseBonusProducts(response.newBonusDiscountLineItem);\n    } else if (breakpoint === 'large' || breakpoint === 'xlarge' || breakpoint === 'xxlarge') {\n      minicart.addClass('popup-open');\n      $('.mini-cart-link').trigger('mouseenter');\n\n      $('.mini-cart-link').on('mouseenter', () => {\n        clearTimeout(triggerMinicart);\n      });\n\n      let triggerMinicart = setTimeout(() => {\n        minicart.removeClass('popup-open');\n      }, 3500);\n    } else if (breakpoint === 'small') {\n      var modal = $('#added-to-cart-modal')\n      initAddedToCartConfirmationModal(modal, response);\n\n      var addedToCartModal = new Foundation.Reveal(modal);\n      addedToCartModal.open();\n    }\n  }\n}\n\nfunction initAddedToCartConfirmationModal(modal, data) {\n  const messageType = data.error ? 'alert' : 'success';\n  modal.find('header').removeClass('alert success');\n  modal.find('header h4').html('');\n  modal.find('.modal-content .product-preview').html('');\n\n  modal.find('header').addClass(`${messageType}`);\n  modal.find('header h4').html(`${data.message}`);\n  modal.find('.modal-content .product-preview').html(`${data.cartLastItemSnippet}`);\n\n  modal.on('open.zf.reveal', function (event) {\n    document.dispatchEvent(new Event('product:afterConfirmationModalOpen'));\n  })\n\n  modal.on('closed.zf.reveal', function (event) {\n    document.dispatchEvent(new Event('product:afterConfirmationModalClose'));\n  })\n\n}\n\nconst AddToCartMsg = new addToCartMsg();\nexport default AddToCartMsg;\n\n\n\n// WEBPACK FOOTER //\n// ./assets/scripts/product/addToCartMsg.js","import Seo from './components/seo.js';\n\nclass enhancedSeo {\n  /**\n     * @function clickStoreDetails - Get store detail when click to details button\n     * @param {Object} marker - store object information\n     * @param {Array} elements - array with all necessary elements\n     */\n  clickStoreDetails(marker, elements) {\n    if (this.checkIfArray(elements, 2)) {\n      const $isStoreLocatorList = $(elements[0]);\n      if ($isStoreLocatorList.length) {\n        $isStoreLocatorList.on('click', elements[1], (e) => {\n          dataLayer.push({\n            event: 'asyncAction',\n            gaHitType: 'event',\n            event_category: 'store_locator',\n            event_action: 'dettaglio_store',\n            event_label: marker.store.name + ', ' + marker.store.address1\n          });\n        });\n      }\n    }\n  }\n\n  /**\n     * @function selectedStoreDetail - Get selected store for seo\n     * @param {Object} marker - store object information\n     */\n  selectedStoreDetail(marker) {\n    dataLayer.push({\n      event: 'asyncAction',\n      gaHitType: 'event',\n      event_category: 'store_locator',\n      event_action: 'select_store',\n      event_label: marker.store.name + ', ' + marker.store.address1\n    });\n  }\n\n  /**\n     * @function clickCreateAccountHeaderPopup - Get store detail when click on create account button header\n     * @param {Array} elements - array with all necessary elements\n     */\n  clickCreateAccountHeaderPopup(elements) {\n    if (this.checkIfArray(elements, 2)) {\n      const $isPopupFooterHeader = $(elements[0]);\n      if ($isPopupFooterHeader.length) {\n        $isPopupFooterHeader.on('click', elements[1], (e) => {\n          dataLayer.push({\n            event: 'asyncAction',\n            gaHitType: 'event',\n            event_category: 'my_account',\n            event_action: 'crea_il_mio_account',\n            event_label: ''\n          });\n        });\n      }\n    }\n  }\n\n  /**\n     * @function clickMobileFooterMenu - Get seo when click on mobile footer menu\n     * @param {Array} elements - array with all necessary elements\n     */\n  clickMobileFooterMenu(elements) {\n    if (this.checkIfArray(elements, 3)) {\n      const isMobileMenu = $(elements[0]);\n      if (isMobileMenu.length) {\n        $(isMobileMenu).on('click', elements[1], (e) => {\n          const iconName = $(e.currentTarget).attr(elements[2]);\n          if (iconName) {\n            dataLayer.push({\n              event: 'asyncAction',\n              gaHitType: 'event',\n              event_category: 'funzionalita_cross',\n              event_action: 'menu',\n              event_label: iconName\n            });\n          }\n        });\n      }\n    }\n  }\n\n  /**\n     * @function clickOnCookieBanner - Get seo click on cookie banner\n     * @param {Array} elements - array with all necessary elements\n     */\n  clickOnCookieBanner(elements) {\n    if (this.checkIfArray(elements, 3)) {\n      const isCookieAlert = $(elements[0]);\n      if (isCookieAlert.length) {\n        const elementList = [elements[1], elements[2]];\n        elementList.forEach((elem) => {\n          isCookieAlert.on('click', elem, (e) => {\n            dataLayer.push({\n              event: 'asyncAction',\n              gaHitType: 'event',\n              event_category: 'funzionalita_cross',\n              event_action: 'cookie_bar',\n              event_label: 'accettazione_cookie_policy'\n            });\n          });\n        });\n      }\n    }\n  }\n\n  loginLogoutEvent(eventType, loyaltyLevel){\n      dataLayer.push({\n        event: \"account_login\",\n        login_method: \"email\",\n        timestamp: new Date().toISOString(),\n        membership_type: loyaltyLevel,\n        event_action: eventType\n      });\n  }\n\n  /**\n     * @function clickOnSearch - Get seo click on search\n     * @param {Array} elements - array with all necessary elements\n     */\n  clickOnSearch(elements) {\n    if (this.checkIfArray(elements, 4)) {\n      const isSearch = $(elements[0]);\n      if (isSearch.length) {\n        let classObj = {};\n        classObj[elements[1]] = 'chiudi';\n        classObj[elements[2]] = 'scoprili_tutti';\n        classObj[elements[3]] = 'esplora';\n\n        Object.keys(classObj).forEach((element) => {\n          isSearch.on('click', element, (e) => {\n            dataLayer.push({\n              event: 'asyncAction',\n              gaHitType: 'event',\n              event_category: 'funzionalita_cross',\n              event_action: 'ricerca',\n              event_label: classObj[element]\n            });\n          });\n        });\n      }\n    }\n  }\n\n  /**\n     * @function clickChat - Get seo event when click on chat button\n     * @param {Array} elements - array with all necessary elements\n     */\n  clickChat(elements) {\n    if (this.checkIfArray(elements, 1)) {\n      const isChat = $(elements[0]);\n      if (isChat.length) {\n        isChat.on('click', (e) => {\n          dataLayer.push({\n            event: 'asyncAction',\n            gaHitType: 'event',\n            event_category: 'funzionalita_cross',\n            event_action: 'chat'\n          });\n        });\n      }\n    }\n  }\n\n  /**\n     * @function noSizeClick - Get seo event when no size product was clicked\n     * @param pid - product id\n     * @param {Array} elements - array with all necessary elements\n     */\n  noSizeClick(pid, elements) {\n    if (this.checkIfArray(elements, 2)) {\n      let colorName = $(elements[0]).data(elements[1]);\n      if (pid && colorName) {\n        dataLayer.push({\n          event: 'asyncAction',\n          gaHitType: 'event',\n          event_category: 'pdp',\n          event_action: 'aggiungi_alla_shopping_bag',\n          event_label: pid + '|' + colorName\n        });\n      }\n    }\n  }\n\n  /**\n     * @function noSizeWishlistClick - Get seo event when no size product was clicked\n     * @param pid - product id\n     * @param {Array} elements - array with all necessary elements\n     */\n  noSizeWishlistClick(pid, elements) {\n    if (this.checkIfArray(elements, 2)) {\n      let colorName = $(elements[0]).data(elements[1]);\n      if (pid && colorName) {\n        dataLayer.push({\n          event: 'asyncAction',\n          gaHitType: 'event',\n          event_category: 'pdp',\n          event_action: 'add_to_wishlist',\n          event_label: pid + '|' + colorName\n        });\n      }\n    }\n  }\n\n  /**\n     * @function clickAccordion - Get seo event when click accordion PDP\n     * @param {Array} elements - array with all necessary elements\n     */\n  clickAccordion(elements) {\n    if (this.checkIfArray(elements, 2)) {\n      $(document).on('click', elements[0], (event) => {\n        const $self = $(event.currentTarget);\n        var accordionText = $self.text().trim();\n        var accordionExpanded = $self.attr(elements[1]);\n\n        if (accordionExpanded == 'true') {\n          accordionExpanded = 'chiudi';\n        } else {\n          accordionExpanded = 'apri';\n        }\n        dataLayer.push({\n          event: 'asyncAction',\n          gaHitType: 'event',\n          event_category: 'pdp',\n          event_action: 'contenuti',\n          event_label: accordionText + '|' + accordionExpanded\n        });\n      });\n    }\n  }\n\n  /**\n     * @function breadcrumbsClick - Get seo event when click on breadcrumbs\n     * @param {Array} elements - array with all necessary elements\n     */\n  breadcrumbsClick(elements) {\n    if (this.checkIfArray(elements, 2)) {\n      $(document).on('click', elements[0], (e) => {\n        if (window.device.type === 'mobile') {\n          let categoryID = $(e.currentTarget).attr(elements[1]);\n          if (categoryID) {\n            dataLayer.push({\n              event: 'asyncAction',\n              gaHitType: 'event',\n              event_category: 'pdp',\n              event_action: 'breadcrumb',\n              event_label: categoryID\n            });\n          }\n        }\n      });\n    }\n  }\n\n  /**\n     * @function sizeGuideClick - Get seo event when click on product size guide\n     * @param {Array} elements - array with all necessary elements\n     */\n  sizeGuideClick(elements) {\n    if (this.checkIfArray(elements, 3)) {\n      $(document).on('click', elements[0], (e) => {\n        let pid = $(elements[1]).data(elements[2]);\n        if (pid) {\n          dataLayer.push({\n            event: 'asyncAction',\n            gaHitType: 'event',\n            event_category: 'pdp',\n            event_action: 'guida_alle_taglie',\n            event_label: pid\n          });\n        }\n      });\n    }\n  }\n\n  /**\n     * @function selectedVariant - Get seo event when select a variant product\n     * @param {Array} elements - array with all necessary elements\n     */\n  selectedVariant($self, elements) {\n    if (this.checkIfArray(elements, 3)) {\n      let $productContainer = $self.closest(elements[0]);\n      let pid = $productContainer.data(elements[1]);\n      let colorName = $self.attr(elements[2]);\n      if (pid && colorName) {\n        dataLayer.push({\n          event: 'asyncAction',\n          gaHitType: 'event',\n          event_category: 'pdp',\n          event_action: 'selezione_variante',\n          event_label: pid + '|' + colorName\n        });\n      }\n    }\n  }\n\n  /**\n     * @function clickQuickviewProduct - Get seo event when open quickview product\n     * @param {Array} elements - array with all necessary elements\n     */\n  clickQuickViewProduct(elements) {\n    if (this.checkIfArray(elements, 5)) {\n      var pid = $(elements[0]).find(elements[1]).data(elements[2]);\n      var colorName = $($(elements[3])[0]).attr(elements[4]);\n      if (pid && colorName) {\n        dataLayer.push({\n          event: 'asyncAction',\n          gaHitType: 'event',\n          event_category: 'listing',\n          event_action: 'popup_prodotto',\n          event_label: pid + '|' + colorName\n        });\n      }\n    }\n  }\n\n  /**\n     * @function productColorClick - Get seo event when click on product color in PLP\n     * @param {Array} elements - array with all necessary elements\n     */\n  productColorClick(elements) {\n    if (this.checkIfArray(elements, 5)) {\n      const isColor = $(elements[0]);\n      if (isColor.length) {\n        isColor.on('click', elements[1], (event) => {\n          const $self = $(event.currentTarget);\n          let pid = $self.closest(elements[2]).data(elements[3]);\n          let colorName = $self.attr(elements[4]);\n          if (pid && colorName) {\n            dataLayer.push({\n              event: 'asyncAction',\n              gaHitType: 'event',\n              event_category: 'listing',\n              event_action: 'selezione_variante',\n              event_label: pid + '|' + colorName\n            });\n          }\n        });\n      }\n    }\n  }\n\n  /**\n     * @function showMoreClick - Get seo event when click on show more button in PLP\n     */\n  showMoreClick() {\n    dataLayer.push({\n      event: 'asyncAction',\n      gaHitType: 'event',\n      event_category: 'listing',\n      event_action: 'carica_altri_prodotti'\n    });\n  }\n\n  /**\n     * @function layout1ViewPlp - Get seo event when click on layout1 view plp\n     */\n  layoutSmallViewPlp() {\n    dataLayer.push({\n      event: 'asyncAction',\n      gaHitType: 'event',\n      event_category: 'listing',\n      event_action: 'tipo_visualizzazione',\n      event_label: 'small' // click sul pulsante a sinistra\n    });\n  }\n\n  /**\n     * @function layout2ViewPlp - Get seo event when click on layout2 view plp\n     */\n  layoutBigViewPlp() {\n    dataLayer.push({\n      event: 'asyncAction',\n      gaHitType: 'event',\n      event_category: 'listing',\n      event_action: 'tipo_visualizzazione',\n      event_label: 'big' // click sul pulsante a destra\n    });\n  }\n\n  /**\n     * @function paginationEventClick - Get seo event when click on pagination\n     * @param $selfButton - Pagination button\n     * @param {Array} elements - array with all necessary elements\n     */\n  paginationEventClick($selfButton, elements) {\n    if (this.checkIfArray(elements, 4)) {\n      if ($(elements[0]).hasClass(elements[1])) {\n        dataLayer.push({\n          event: 'asyncAction',\n          gaHitType: 'event',\n          event_category: 'listing',\n          event_action: 'paginazione',\n          event_label: 'next_page'\n        });\n      } else if ($(elements[0]).hasClass(elements[2])) {\n        dataLayer.push({\n          event: 'asyncAction',\n          gaHitType: 'event',\n          event_category: 'listing',\n          event_action: 'paginazione',\n          event_label: 'prev_page'\n        });\n      } else {\n        dataLayer.push({\n          event: 'asyncAction',\n          gaHitType: 'event',\n          event_category: 'listing',\n          event_action: 'paginazione',\n          event_label: $selfButton.attr(elements[3])\n        });\n      }\n    }\n  }\n\n  /**\n     * @function registerOkEvent - Get seo event when click on register account and return ok\n     * @param profiling - Profilazione user\n     * @param newsletter - Newsletter user\n     */\n  registerOkEvent(profiling, newsletter) {\n    let event_label = [];\n    if (newsletter) {\n      event_label.push('newsletter');\n    }\n    if (profiling) {\n      event_label.push('profilazione');\n    }\n    dataLayer.push({\n      event: 'asyncAction',\n      gaHitType: 'event',\n      event_category: 'registrazione',\n      event_action: 'registrazione_ok',\n      event_label: event_label.join('|')\n    });\n  }\n\n  /**\n     * @function clickOnChangeEmail - Get seo event when click on change email in edit profile myaccount\n     * @param {Array} elements - array with all necessary elements\n     */\n  clickOnChangeEmail(elements) {\n    if (this.checkIfArray(elements, 2)) {\n      $(elements[0]).on('click', elements[1], (e) => {\n        // click su Cambia Indirizzo Email\n        dataLayer.push({\n          event: 'asyncAction',\n          gaHitType: 'event',\n          event_category: 'my_account',\n          event_action: 'cambia_indirizzo_email',\n          event_label: ''\n        });\n      });\n    }\n  }\n\n  /**\n     * @function clickOnChangeEmail - Get seo event when click on change password in edit profile myaccount\n     * @param {Array} elements - array with all necessary elements\n     */\n  clickOnChangePassword(elements) {\n    if (this.checkIfArray(elements, 2)) {\n      $(elements[0]).on('click', elements[1], (e) => {\n        // click su Cambia Password\n        dataLayer.push({\n          event: 'asyncAction',\n          gaHitType: 'event',\n          event_category: 'my_account',\n          event_action: 'cambia_password',\n          event_label: ''\n        });\n      });\n    }\n  }\n\n  /**\n     * @function checkoutFormError - Get seo event when click on submit form checkout\n     * @param {String} checkoutStep - checkout step number\n     * @param {Object} element - jquery object representing the element with error\n     */\n  checkoutFormError(checkoutStep, elements) {\n    if (this.checkIfArray(elements, 1) && checkoutStep) {\n      let checkoutStages = {\n        shipping: '1',\n        payment: '2',\n        placeorder: '3'\n      };\n      let eventAction = [];\n      let eventLabel = [];\n\n      elements.forEach((element) => {\n        if (!$(element).is('input') && !$(element).is('select')) {\n          element = $(element).find('input, select').get(0);\n        }\n\n        if (eventAction.indexOf(element.id) <= -1) {\n          eventAction.push(element.id);\n        }\n\n        if (typeof element.dataset !== 'undefined' && typeof element.dataset.parsleyRequiredMessage !== 'undefined') {\n          eventLabel.push(element.dataset.parsleyRequiredMessage);\n        } else if ($(element).siblings('.errors-list').length > 0) {\n          eventLabel.push($(element).siblings('.errors-list').first().text());\n        } else {\n          eventLabel.push('');\n        }\n      });\n      if (eventAction.length && eventLabel.length) {\n        dataLayer.push({\n          event: 'asyncAction',\n          gaHitType: 'event',\n          event_category: 'errori_checkout_' + checkoutStages[checkoutStep],\n          event_action: eventAction.join('|'),\n          event_label: eventLabel.join('|')\n        });\n      }\n    }\n  }\n\n  checkIfArray(elements, mandatoryLength) {\n    if (elements instanceof Array && elements.length >= mandatoryLength) {\n      return true;\n    }\n    return false;\n  }\n\n  init() {\n    // placeholder\n  }\n\n  /* // rimosso con il tracciamento ibrido con GA4\n  productSeoValorize() {\n    $(document).on('click', '.product-tile a', function (e) {\n      Seo.productImpressions();\n      if ($(this).hasClass('quickview')) {\n        return true;\n      }\n      var listArray = [];\n      var prodLayerArray = [];\n      var listObj = Seo.generateProductTrackingModel($(e.target).closest('.product-tile'));\n      listArray.push(listObj);\n      var productObj = Seo.generateProductTrackingModel($(e.target).closest('.product-tile'));\n      prodLayerArray.push(productObj);\n      if (prodLayerArray[0].list) {\n        delete prodLayerArray[0].list;\n      }\n\n      if (typeof dataLayer !== 'undefined') {\n        let event = {\n          event: 'productClick',\n          ecommerce: {\n            click: {\n              actionField: {\n                list: (listArray[0] && listArray[0].list) ? listArray[0].list : ''\n              },\n              products: prodLayerArray\n            }\n          }\n        };\n        dataLayer.push(event);\n      }\n    });\n  } */\n\n  pushATC(analyticsP, dataLayerGA4){\n    let listName = this.pushListType();\n    let modalOpen = $('.quick-view-modal').attr('aria-hidden'); //if open aria-hidden == false\n    let section = pageTypeForJS;\n    if(modalOpen === 'false'){\n      section = 'quick_view'\n    }\n    if (analyticsP) {\n      analyticsP = JSON.parse(decodeURIComponent(analyticsP));\n      let selectedSizeElem = $('.list-size li.selected span')[0];\n      let selectedSize = selectedSizeElem?selectedSizeElem.innerHTML:null;\n      let selectedFamilyColorElem = $('a.swatch-color.selected');\n      let selectedFamilyColor = selectedFamilyColorElem?selectedFamilyColorElem.data('familyColorSearch'):null;\n      if(selectedSize){\n        let analyticsObj = {\n          where: section,\n          event: 'add_to_cart'\n        };\n\n        if(typeof dataLayerGA4 !== \"undefined\" && dataLayerGA4 !== null) analyticsObj.ecommerce = dataLayerGA4;\n        dataLayer.push(analyticsObj);\n      }\n    }\n  }\n\n  pushListType() {\n    let list;\n    let modalOpen = $('.quick-view-modal').attr('aria-hidden'); //if open aria-hidden == false\n    if (modalOpen === 'false') {\n      switch (pageTypeForJS) {\n        case 'plp':\n          list = 'category_listing';\n          break;\n        case 'pdp':\n          list = 'related_product';\n          break;\n        case 'cart':\n          list = 'related_products_cart';\n          break;\n        default:\n          list = 'null';\n          break;\n      }\n    }\n    return list;\n  }\n\n  generateProductTrackingModelWishlist(element){\n    return Seo.generateProductTrackingModelWishlist(element);\n  }\n}\n\nconst EnhancedSeo = new enhancedSeo();\nexport default EnhancedSeo;\n\n\n\n// WEBPACK FOOTER //\n// ./assets/scripts/enhancedSeo.js","import Product from \"../product\";\n\n\nclass SEO {\n    run() {\n        this.plp();\n        this.breadcrumbs();\n        this.filters();\n        this.homepage();\n        this.checkout();\n        this.changecountry();\n        this.socialshare();\n        this.newsletter();\n        this.wishlist();\n        this.myaccount();\n        this.productImpressions();\n        this.asyncProductImpressions();\n    }\n\n    productImpressions() {\n        var productTiles = $('.product-tile').not('.tracked');\n        var _this = this;\n        if (listingProductsArrayForHomePage && productTiles.length > 0) {\n            productTiles.each(function () {\n                var currentElement = $(this);\n                var impression = _this.generateProductTrackingModel(currentElement);\n\n                // Before adding an item to the listingProductsArrayForHomePage array,\n                // check if already exists and avoid duplicates.\n                if ((listingProductsArrayForHomePage.findIndex(item => item.id === impression.id) == '-1') && !currentElement.hasClass('tracked')) {\n                    listingProductsArrayForHomePage.push(impression);\n                    listingProductsJson[currentElement.attr('data-pid')] = impression;\n                    $('.product-tile[data-pid=\"' + currentElement.attr('data-pid') + '\"]').addClass('tracked');\n                }\n            });\n        }\n    }\n\n    asyncProductImpressions() {\n        var _this = this;\n        $(window).on('gtmAsyncTrack::impression', function () {\n            _this.viewItemListGA4Event();\n        });\n    }\n\n    viewItemListGA4Event(){\n        var _this = this;\n        var productTiles = $('.product-tile').not('.tracked');\n        var asyncProductsArray = [];\n        if (productTiles.length > 0) {\n            productTiles.each(function () {\n                var currentElement = $(this);\n                if(!currentElement.hasClass('impression')) {\n                    var impression = _this.generateProductTrackingModel(currentElement);\n\n                    // Before adding an item to the asyncProductsArray array,\n                    // check if already exists and avoid duplicates.\n                    if ((asyncProductsArray.findIndex(item => item.id === impression.id) == '-1') && !currentElement.hasClass('tracked')) {\n                        asyncProductsArray.push(impression);\n                        $('.product-tile[data-pid=\"' + currentElement.attr('data-pid') + '\"]').addClass('tracked');\n                    }\n                }\n            });\n            _this.asyncProductsArray = asyncProductsArray;\n        }\n\n        if (typeof currentCurrency !== 'undefined' && asyncProductsArray.length > 0) {\n            let items = [];\n            let productCurrency = currentCurrency;\n\n            asyncProductsArray.forEach(function (product) {\n                if (product.category) {\n                    let categories = product.category.split(\"/\");\n                    let item = {\n                        item_id: product.id,\n                        item_name: product.name,\n                        currency: productCurrency,\n                        discount: product.discount,\n                        index: product.position,\n                        item_brand: 'twinset milano',\n                        item_category: categories.length > 0 ? categories[0] : '',\n                        item_category2: categories.length > 1 ? categories[1] : '',\n                        item_category3: categories.length > 2 ? categories[2] : '',\n                        item_list_name: categoryPLP,\n                        item_variant: product.colorName,\n                        price: product.price,\n                        quantity: 1,\n                        item_availability: product.available,\n                        item_discount_tag: product.discount != 0 ? 'on_sale' : 'not_on_sale',\n                        available_size_percentage: product.available_size_percentage,\n                        item_size: '',\n                        item_url: product.url,\n                        item_img: product.imageUrl\n                    }\n                    items.push(item);\n                }\n            });\n\n            function chunkArray(array, chunkSize) {\n                const results = [];\n                for (let i = 0; i < array.length; i += chunkSize) {\n                    results.push(array.slice(i, i + chunkSize));\n                }\n                return results;\n            }\n\n            // Suddividi l'array in gruppi di massimo 15 elementi\n            const chunks = chunkArray(items, 15);\n\n            // Itera sui gruppi e inviali al dataLayer\n            chunks.forEach(function(chunk) {\n                var event = {\n                    event: 'view_item_list',\n                    ecommerce: {\n                        currency: currentCurrency,\n                        items: chunk\n                    }\n                };\n                dataLayer.push(event);\n            });\n        }\n    }\n\n    generateProductTrackingModel(element) {\n        var product = {};\n        var data = element.data();\n\n        product.name = data.name;\n\n        // TR-2126\n        // product.id = element.parent().data('pid');\n        product.id = element.data('pid');\n        product.variantID = element.data('container');\n\n        if(element.find('.price-wrapper').data('plist')){\n            var fullPrice = element.find('.price-wrapper').data('plist');\n            var salesPrice = element.find('.price-wrapper').data('pmin');\n        }else{\n            var fullPrice = element.find('.price-wrapper').data('pmin');\n            var salesPrice = element.find('.price-wrapper').data('pmin');\n        }\n\n\n        product.price = fullPrice;\n        product.discount = fullPrice - salesPrice;\n        product.available = element.data('item_availability');\n        product.available_size_percentage = Number(element.data('available_size_percentage'));\n        product.brand = 'twinset milano';\n        product.category = element.data('category');\n        product.url= element.data('master_url');\n        product.imageUrl= element.data('default_color_image');\n        product.colorName = element.data('color_name')\n        product.position = data.pos;\n        if (!product.position) {\n            product.position = element.parent().parent().index() + 1;\n        }\n\n        if (typeof catListingSearch !== 'undefined') {\n            product.list = catListingSearch;\n        }\n        if (typeof pageTypeForJS !== 'undefined') {\n            if (pageTypeForJS == 'home') {\n                product.list = 'homepage';\n            }\n            if (pageTypeForJS == 'plp') {\n                product.list = 'plp';\n            }\n            if (pageTypeForJS == 'pdp' && element.parents('.recommendations').length) {\n                product.list = 'related_products';\n            }\n            if (pageTypeForJS == 'cart' && element.parents('.recommendations').length) {\n                product.list = 'related_products_cart';\n            }\n        }\n        if (!product.list && element.parents('.recommendations').length) {\n            product.list = 'related_products';\n        }\n\n        return product;\n    }\n\n    generateProductTrackingModelWishlist(element) {\n        var product = {};\n        var data = element.data();\n\n        let categories = element.data('category').split(\"/\");\n\n        product.currency = element.data('currency');\n        product.item_name = data.name;\n        product.item_id = element.data('pid').split('_')[0];\n        product.discount = Number(element.data('list_price')) - Number(element.data('price'));\n        product.price = Number(element.data('list_price'));\n        product.brand = 'twinset milano';\n        product.item_category = categories.length > 0 ? categories[0] : '';\n        product.item_category2 = categories.length > 1 ? categories[1] : '',\n        product.item_category3 = categories.length > 2 ? categories[2] : '',\n        product.item_variant = element.data('variant-color');\n        product.item_size= element.data('variant-size');\n        product.item_availability = element.data('item_availability');\n        product.item_discount_tag = element.data('item_discount_tag');\n        product.quantity = 1;\n        product.item_variant_v2 = element.data('pid');\n        product.available_size_percentage= Number(element.data('available_size_percentage'));\n        product.item_img = element.data('default-color-image');\n        product.item_url= element.data('master-url');\n\n        if (typeof catListingSearch !== 'undefined') {\n            product.item_list_name = catListingSearch;\n        }\n        if (typeof pageTypeForJS !== 'undefined') {\n            if (pageTypeForJS == 'home') {\n                product.item_list_name = 'homepage';\n            }\n            if (pageTypeForJS == 'wishlist') {\n                product.item_list_name = 'wishlist';\n            }\n            if (pageTypeForJS == 'pdp' && element.parents('.recommendations').length) {\n                product.item_list_name = 'related_products';\n            }\n            if (pageTypeForJS == 'cart' && element.parents('.recommendations').length) {\n                product.item_list_name = 'related_products_cart';\n            }\n        }\n        if (!product.item_list_name && element.parents('.recommendations').length) {\n            product.item_list_name = 'related_products';\n        }\n\n        return product;\n    }\n\n    myaccount() {\n        $('.my-account-side-nav a.link').on('click', function (e) {\n            var dataLayerObject = {\n                event: 'asyncAction',\n                gaHitType: 'event',\n                event_category: 'my_account',\n                event_action: $(this).html() // TODO: missing id, using innerHTML\n            };\n\n            console.log(JSON.stringify(dataLayerObject));\n            if (typeof dataLayer !== 'undefined') {\n                dataLayer.push(dataLayerObject);\n            }\n        });\n    }\n\n    wishlist() {\n        var _this = this;\n        $('button.add-to-wishlist-modal, button.add-to-wish-list').on('click', function (e) {\n            var variantID = $('.wishlist-list-size li.selected').attr('data-id');\n\n            var item_list_name = getPageType($('.js-page').data('action'), this);\n            trackForWish(\n                $(e.target).closest('.modal').data('url'),\n                $(e.target).hasClass('is-in-wishlist'),\n                variantID,\n                item_list_name);\n        });\n\n        $('a.add-to-wish-list').on('click', function (e) {\n            var eventAction = 'product_page';\n            var product;\n            var selectedVariant;\n            var variantID = $(this).attr('data-pid') ? $(this).attr('data-pid') : $('.container.product-detail').attr('data-pid');\n\n            if ($('[data-action=\"Search-Show\"]').length > 0) {\n\n                product = $(this).data('id');\n                selectedVariant = $('.attribute .list-size .selected .value').text();\n            } else if ($('[data-action=\"Cart-Show\"]').length > 0) {\n                let arr_info_product = $('.card.product-info').attr('data-pid').split('_');\n                product = arr_info_product[0] + '_' + arr_info_product[1];\n                selectedVariant = $('.line-item-attributes.item-list-size').attr('data-label');\n            } else {\n                let arr_info_product = variantID.split('_');\n                product = arr_info_product[0] + '_' + arr_info_product[1];\n                selectedVariant = $('.attribute .list-size .selected .value').text();\n            }\n\n            if (selectedVariant === '' || selectedVariant === null) {\n                return;\n            }\n\n            var item_list_name = getPageType($('.js-page').data('action'), this);\n            if($(this).parents().find('.quick-view-modal').css('display') === 'block'){\n                item_list_name = 'quick_view';\n            }\n\n            trackForWish(\n                $(e.target).closest('.add-to-wish-list').data('track-url'),\n                $(this).hasClass('is-in-wishlist'),\n                variantID,\n                item_list_name);\n        });\n\n        $('.wishlist-row a.action-link.edit, .wishlist-row .side-image a').on('click', function (e) {\n            var prodLayer = [];\n            prodLayer.push(_this.generateProductTrackingModelWishlist($(e.target).closest('.wishlist-row')));\n            prodLayer.position = $(e.target).closest('.product-row').attr('data-pos').split('.')[0];\n\n            if (typeof dataLayer !== 'undefined') {\n                dataLayer.push({\n                    event: 'productClick',\n                    ecommerce: {\n                        click: {\n                            actionField: {\n                                list: catListingSearch\n                            },\n                            products: prodLayer\n                        }\n                    }\n                });\n            }\n        });\n\n        $('.wishlist-row a.remove-from-wishlist').on('click', function (e) {\n            //This is the remove event from wishlist\n\n            var product = _this.generateProductTrackingModelWishlist($(e.target).closest('.wishlist-row'));\n\n            const dataLayerGA4 = {\n                event: 'remove_from_wishlist',\n                ecommerce: {\n                    currency: product.currency,\n                    value: product.price - product.discount,\n                    items: []\n                }\n            }\n            dataLayerGA4.ecommerce.items.push(product);\n            dataLayer.push(dataLayerGA4);\n        });\n    }\n\n    newsletter() {\n        $('.newsletterfooterform button').on('click', function (e) {\n            var dataLayerObject = {\n                event: 'asyncAction',\n                gaHitType: 'event',\n                event_category: 'newsletter_subscription',\n                event_action: 'start',\n                event_label: 'footer'\n            };\n\n            console.log(JSON.stringify(dataLayerObject));\n            if (typeof dataLayer !== 'undefined') {\n                dataLayer.push(dataLayerObject);\n            }\n        });\n    }\n\n    socialshare() {\n        $('.social-share-icons a').on('click', function (e) {\n            var dataLayerObject = {\n                event: 'asyncAction',\n                gaHitType: 'social',\n                socialNetwork: $(this).children('svg').attr('class'),\n                socialAction: 'share',\n                socialTarget: window.location.href\n            };\n\n            console.log(JSON.stringify(dataLayerObject));\n            if (typeof dataLayer !== 'undefined') {\n                dataLayer.push(dataLayerObject);\n            }\n        });\n\n        $('.social-links a').on('click', function (e) {\n            var dataLayerObject = {\n                event: 'asyncAction',\n                gaHitType: 'social',\n                socialNetwork: $(this).attr('title').toLowerCase(),\n                socialAction: 'click'\n            };\n\n            console.log(JSON.stringify(dataLayerObject));\n            if (typeof dataLayer !== 'undefined') {\n                dataLayer.push(dataLayerObject);\n            }\n        });\n    }\n\n    changecountry() {\n        $('.select-country-content a').on('click', function (e) {\n            var dataLayerObject = {\n                event: 'asyncAction',\n                gaHitType: 'event',\n                event_category: 'default_homepage',\n                event_action: 'select_country_lang',\n                event_label: $(this).data('locale')\n            };\n\n            console.log(JSON.stringify(dataLayerObject));\n            if (typeof dataLayer !== 'undefined') {\n                dataLayer.push(dataLayerObject);\n            }\n        });\n\n        $('.select-lang-modal a').on('click', function (e) {\n            var dataLayerObject = {\n                event: 'asyncAction',\n                gaHitType: 'event',\n                event_category: 'default_homepage',\n                event_action: 'select_country_lang',\n                event_label: $(this).data('locale')\n            };\n\n            console.log(JSON.stringify(dataLayerObject));\n            if (typeof dataLayer !== 'undefined') {\n                dataLayer.push(dataLayerObject);\n            }\n        });\n    }\n\n    homepage() {\n        var promotionsAsset = [];\n        var lookArray = [];\n        var position = 0;\n        var gridImageAndButton = $('.widget, .widget-1-col-video').not('.widget-3-col-img-shopbylook').find('[data-resize], a.button.editorial, a.js-data-layer-link').add($('.widget-customer-care').find('a.button.editorial'));\n        var componentElements = document.getElementsByClassName('experience-component');\n\n        //OLD METHOD TO PUSH IN DATALAYER ID AND NAME OF HOMEPAGE ELEMENT\n\n        if (componentElements.length == 0) {\n            $.each(gridImageAndButton, (itemIndex) => {\n                promotionsAsset.push({\n                    id: $(gridImageAndButton[itemIndex]).closest('[data-asset]').data('asset'),\n                    name: $(gridImageAndButton[itemIndex]).closest('.widget').find('h2').text() || $(gridImageAndButton[itemIndex]).closest('.box').find('h5').text(),\n                    creative: '',\n                    position: itemIndex\n                });\n            });\n        }\n        //NEW METHOD TO PUSH IN DATALAYER ID AND NAME OF PAGE DESIGNER COMPONENT\n        if (componentElements) {\n\n            $.each(componentElements, (i) => {\n                var componentID = $(componentElements[i]).contents('[data-id]').attr('data-id');\n                var componentName = $(componentElements[i]).contents('[data-title]').attr('data-title');\n\n                if (componentName === \"undefined\") {\n                    componentName = $(componentElements[i]).contents('[data-asset]').attr('data-asset');\n                }\n\n                promotionsAsset.push({\n                    id: componentID,\n                    name: componentName,\n                    creative: '',\n                    position: i\n                })\n            });\n        }\n\n\n        gridImageAndButton.on('click', (e) => {\n            if ($(e.currentTarget).closest('.widget-3-col-img-shopbylook').length == 0) {\n                $.each(gridImageAndButton, (itemIndex) => {\n                    if ($(gridImageAndButton[itemIndex])[0].dataset.resize == $(e.currentTarget)[0].dataset.resize && $(gridImageAndButton[itemIndex])[0].href == $(e.currentTarget)[0].href) {\n                        position = itemIndex;\n                    }\n                });\n\n                var dataLayerObject = {\n                    event: 'promotionClick',\n                    ecommerce: {\n                        promoClick: {\n                            promotions: [{\n                                id: $(e.currentTarget).closest('[data-asset]').data('asset') || $(e.currentTarget).closest('[data-id]').attr('data-id'),\n                                name: $(e.currentTarget).closest('[data-title]').attr('data-title') || $(e.currentTarget).closest('.widget').find('h2').text() || $(gridImageAndButton[position]).closest('.box').find('h5').text(),\n                                creative: '',\n                                position: position\n                            }]\n                        }\n                    }\n                };\n\n                console.log(JSON.stringify(dataLayerObject));\n                if (typeof dataLayer !== 'undefined') {\n                    dataLayer.push(dataLayerObject);\n                }\n            }\n        });\n\n        var widgetLook = $('.widget-3-col-img-shopbylook');\n        // product look click\n        $(widgetLook).on('click', '.owl-item a', function (e) {\n            var $self = $(e.currentTarget);\n            var lookName = $self.closest('.owl-item').find('h6')[0].innerText;\n            var itemPosition = 0;\n            var lookId = lookName;\n            if ($self[0].href != '' && $self[0].href != 'undefined') {\n                var hrefSplit = $self[0].href.split('/');\n                var lookIdSplit = hrefSplit[hrefSplit.length - 1].split('-');\n                var itemList = $('.widget-3-col-img-shopbylook').find('.owl-item a.button.editorial');\n                lookId = lookIdSplit[lookIdSplit.length - 1].replace('.html', '');\n                $.each(itemList, (itemIndex) => {\n                    if ($(itemList[itemIndex])[0].href == $self[0].href) {\n                        itemPosition = itemIndex;\n                    }\n                });\n            }\n            if (itemPosition == 9) {\n                itemPosition = 1;\n            } else if (itemPosition == 10) {\n                itemPosition = 2;\n            } else if (itemPosition = 11) {\n                itemPosition = 3;\n            }\n            var dataLayerObject = {\n                event: 'shop_by_look_click',\n                ecommerce: {\n                    click: {\n                        actionField: {\n                            list: 'shop_by_look_home_page'\n                        },\n                        products: [{\n                            name: 'look|' + lookName,\n                            id: lookId,\n                            //   'price': '$$$total_price$$$',\n                            brand: 'twinset milano',\n                            category: '',\n                            //   'list': 'shop_by_look_home_page',\n                            position: itemPosition\n                        }]\n                    }\n                }\n            };\n\n            console.log(JSON.stringify(dataLayerObject));\n            if (typeof dataLayer !== 'undefined') {\n                dataLayer.push(dataLayerObject);\n            }\n        });\n\n        // product look impressions\n        var widgetLookElements = $(widgetLook).find('.slide');\n        $.each(widgetLookElements, (indexEl) => {\n            var $self = $(widgetLookElements[indexEl]);\n            var lookName = $($self).find('h6')[0].innerText;\n            var aElem = $($self).find('a.button.editorial');\n            var lookId = lookName;\n            if (aElem[0].href != '' && aElem[0].href != 'undefined') {\n                var hrefSplit = aElem[0].href.split('/');\n                var lookIdSplit = hrefSplit[hrefSplit.length - 1].split('-');\n                lookId = lookIdSplit[lookIdSplit.length - 1].replace('.html', '');\n            }\n            lookArray.push({\n                name: 'look|' + lookName,\n                id: lookId,\n                //   'price': $$$total_price$$$,\n                brand: 'twinset milano',\n                category: '',\n                list: 'shop_by_look_home_page',\n                position: (indexEl + 1)\n            });\n        });\n\n        if (typeof dataLayer !== 'undefined' && lookArray.length > 0) {\n            dataLayer.push({\n                event: 'shop_by_look_impression',\n                ecommerce: {\n                    impressions: lookArray\n                }\n            });\n        }\n\n        if (typeof dataLayer !== 'undefined' && promotionsAsset.length > 0) {\n            dataLayer.push({\n                event: 'promotionImpression',\n                ecommerce: {\n                    promoView: {\n                        promotions: promotionsAsset\n                    }\n                }\n            });\n        }\n    }\n\n    plp() {\n        var _this = this;\n        $('div.main-menu a.nav-link').on('click', function (e) {\n            var dataLayerObject = {\n                event: 'asyncAction',\n                gaHitType: 'event',\n                event_category: 'menu',\n                event_action: e.target.id,\n                event_label: 'only_first_level'\n            };\n\n            if (typeof dataLayer !== 'undefined') {\n                dataLayer.push(dataLayerObject);\n            }\n        });\n\n        $('.navbar h6 a').on('click', function (e) {\n            var dataLayerObject = {\n                event: 'asyncAction',\n                gaHitType: 'event',\n                event_category: 'menu',\n                event_action: $(e.target).parents('li.dropdown').children('a').attr('id'),\n                event_label: e.target.id\n\n            };\n\n            console.log(JSON.stringify(dataLayerObject));\n            if (typeof dataLayer !== 'undefined') {\n                dataLayer.push(dataLayerObject);\n            }\n        });\n\n        $('.menuitem ul a').on('click', function (e) {\n            var dataLayerObject = {\n                event: 'asyncAction',\n                gaHitType: 'event',\n                event_category: 'menu',\n                event_action: $(e.target).parents('li.dropdown').children('a').attr('id'),\n                event_label: e.target.id\n\n            };\n\n            console.log(JSON.stringify(dataLayerObject));\n            if (typeof dataLayer !== 'undefined') {\n                dataLayer.push(dataLayerObject);\n            }\n        });\n        $(document).on('click', '.product-tile a', function (e) {\n\n            var id = $(e.target).closest('.product-tile').attr('data-pid');\n            var listingProduct = listingProductsJson[$(e.target).closest('.product-tile').attr('data-pid')];\n            if(!listingProduct){\n                var productTile = $(e.target).closest('.product-tile');\n                var impression = _this.generateProductTrackingModel(productTile);\n                if ((listingProductsArrayForHomePage.findIndex(item => item.id === impression.id) == '-1')) {\n                    listingProductsArrayForHomePage.push(impression);\n                    listingProductsJson[productTile.attr('data-pid')] = impression;\n                }\n\n                listingProduct = listingProductsJson[$(e.target).closest('.product-tile').attr('data-pid')];\n            }\n            var productJson = _this.asyncProductsArray ? _this.asyncProductsArray.find(prod => prod.id === id) : listingProduct;\n\n            if(!productJson && listingProduct)\n                productJson = listingProduct;\n\n            if (productJson) {\n\n                let list;\n                if (typeof catListingSearch !== 'undefined') {\n                    list = catListingSearch;\n                }\n\n                if (pageTypeForJS === 'cart') {\n                    list = 'related_products_cart';\n                }\n                // triggered both here and enhancedseo.js - disabled here if list is not set due to duplicate tracking TR-1476\n                // if (typeof dataLayer !== 'undefined' && list) {\n                if (typeof dataLayer !== 'undefined') {\n\n                    let categories = productJson.category ? productJson.category.split(\"/\") : [];\n                    let colorName = $(e.currentTarget).data('display-value') ? $(e.currentTarget).data('display-value') : productJson.colorName;\n\n                    if ($(this).hasClass('quickview')) {\n                        dataLayer.push({\n                            event: 'view_item',\n                            where: 'quick_view',\n                            ecommerce: {\n                                currency: currentCurrency,\n                                items: [\n                                    {\n                                        item_id: productJson.id,\n                                        item_name: productJson.name,\n                                        currency: currentCurrency,\n                                        discount: productJson.discount,\n                                        item_brand: productJson.brand,\n                                        item_category: categories.length > 0 ? categories[0] : '',\n                                        item_category2: categories.length > 1 ? categories[1] : '',\n                                        item_category3: categories.length > 2 ? categories[2] : '',\n                                        item_list_name: productJson.list,\n                                        item_variant: colorName,\n                                        price: productJson.price,\n                                        quantity: 1,\n                                        item_availability: productJson.available,\n                                        item_discount_tag: productJson.discount !== 0 ? 'on_sale' : 'not_on_sale',\n                                        available_size_percentage: productJson.available_size_percentage,\n                                        item_size: '',\n                                        item_variant_v2: productJson.variantID,\n                                        item_url: productJson.url,\n                                        item_img: productJson.imageUrl\n                                    }\n                                ]\n                            }\n                        });\n                    }else{\n                        dataLayer.push({\n                            event: 'select_item',\n                            ecommerce: {\n                                currency: currentCurrency,\n                                items: [\n                                    {\n                                        item_id: productJson.id,\n                                        item_name: productJson.name,\n                                        currency: currentCurrency,\n                                        discount: productJson.discount,\n                                        index: productJson.position,\n                                        item_brand: productJson.brand,\n                                        item_category: categories.length > 0 ? categories[0] : '',\n                                        item_category2: categories.length > 1 ? categories[1] : '',\n                                        item_category3: categories.length > 2 ? categories[2] : '',\n                                        item_list_name: productJson.list,\n                                        item_variant: colorName,\n                                        price: productJson.price,\n                                        quantity: 1,\n                                        item_availability: productJson.available,\n                                        item_discount_tag: productJson.discount !== 0 ? 'on_sale' : 'not_on_sale',\n                                        available_size_percentage: productJson.available_size_percentage,\n                                        item_size: '',\n                                        item_url: productJson.url,\n                                        item_img: productJson.imageUrl\n                                    }\n                                ]\n                            }\n                        });\n                    }\n\n\n                }\n            }\n        });\n    }\n\n    breadcrumbs() {\n        $('.breadcrumbs-nav a').on('click', function (e) {\n            var dataLayerObject = {\n                event: 'asyncAction',\n                gaHitType: 'event',\n                event_category: 'breadcrumbs',\n                event_action: $(this).data('event-action'),\n                event_label: $(this).data('event-label')\n            };\n\n            if (typeof dataLayer !== 'undefined') {\n                dataLayer.push(dataLayerObject);\n            }\n        });\n    }\n\n    filters() {\n        $('div.refinements').on('refinements:update', function (e, data) {\n            var clickedFilter = $(data.clickedFilter) || null;\n            var selectedSortOption = $('.plp-sort-order .current').length > 0 ?\n                $('.plp-sort-order .current').data('id') : '-';\n\n\n            if(clickedFilter && $('span.selected').length > 0){\n                var dataLayerObject = {\n                    event: 'asyncAction',\n                    gaHitType: 'event',\n                    event_category: 'filters',\n                    event_action: 'apply',\n                    attribute_group: clickedFilter.data('id'),\n                    attribute_value: clickedFilter.find('span').text().trim(),\n                    filter_sort: selectedSortOption\n                };\n\n                if (typeof dataLayer !== 'undefined') {\n                    dataLayer.push(dataLayerObject);\n                }\n            } else if ($('span.selected').toArray().map(filter => filter.innerText).join('/')) {\n                var dataLayerObject = {\n                    event: 'asyncAction',\n                    gaHitType: 'event',\n                    event_category: 'filters',\n                    event_action: 'apply',\n                    event_label: $('span.selected').toArray().map(filter => filter.innerText).join('/')\n                };\n\n                if (typeof dataLayer !== 'undefined') {\n                    dataLayer.push(dataLayerObject);\n                }\n            }\n        });\n\n        $('.plp-header-bottom-rocker a.reset').on('click', function (e) {\n            var dataLayerObject = {\n                event: 'asyncAction',\n                gaHitType: 'event',\n                event_category: 'filters',\n                event_action: 'reset'\n            };\n\n            if (typeof dataLayer !== 'undefined') {\n                dataLayer.push(dataLayerObject);\n            }\n        });\n\n        $(document).on('click', '.plp-sort-order a', function (e) {\n            var dataLayerObject = {\n                event: 'asyncAction',\n                gaHitType: 'event',\n                event_category: 'filters',\n                event_action: 'sort_by',\n                attribute_group: '-',\n                attribute_value: '-',\n                filter_sort: this.parentNode.dataset.id\n            };\n\n            if (typeof dataLayer !== 'undefined') {\n                dataLayer.push(dataLayerObject);\n            }\n        });\n\n        $('.plp-header-content-top button.close').on('click', function (e) {\n            var dataLayerObject = {\n                event: 'asyncAction',\n                gaHitType: 'event',\n                event_category: 'filters',\n                event_action: 'close'\n            };\n\n            if (typeof dataLayer !== 'undefined') {\n                dataLayer.push(dataLayerObject);\n            }\n        });\n\n        $('button.filter-results').on('click', function (e) {\n            var dataLayerObject = {\n                event: 'asyncAction',\n                gaHitType: 'event',\n                event_category: 'filters',\n                event_action: 'open'\n            };\n\n            if (typeof dataLayer !== 'undefined') {\n                dataLayer.push(dataLayerObject);\n            }\n        });\n\n        $('.select-categories .sub-categories a.sub-category-link').on('click', function (e) {\n            var dataLayerObject = {\n                event: 'asyncAction',\n                gaHitType: 'event',\n                event_category: 'fascia_categorie',\n                event_action: (($(this).data('level') == '3') ? 'third_level' : 'second_level'),\n                event_label: $(this).html()\n            };\n\n            if (typeof dataLayer !== 'undefined') {\n                dataLayer.push(dataLayerObject);\n            }\n        });\n    }\n\n    checkout() {\n        $('div#store-picker button').on('click', function (e) {\n            var dataLayerObject = {\n                event: 'asyncAction',\n                gaHitType: 'event',\n                event_category: 'find_a_store',\n                event_action: $('#store-picker-autocomplete').val().split(', ').slice(-1)[0],\n                event_label: `${$('#store-picker-autocomplete').val().split(', ')[0]}|${$('#store-picker-range').val()}km`\n            };\n\n            console.log(JSON.stringify(dataLayerObject));\n            if (typeof dataLayer !== 'undefined') {\n                dataLayer.push(dataLayerObject);\n            }\n        });\n\n        // code moved and modified in checkout.js\n\n        // $('.single-shipping .tab-nav a').on('click', function (e) {\n        //     var dataLayerObject = {\n        //         'event': 'checkoutOption',\n        //         'ecommerce': {\n        //             'checkout_option': {\n        //                 'actionField': {\n        //                     'step': 1,\n        //                     'option': $(e.target).parents('li').data('target')\n        //                 }\n        //             }\n        //         }\n        //     };\n\n        //     actionField.option = $(e.target).parents('li').data('target');\n        //     console.log(JSON.stringify(dataLayerObject));\n        //     if(typeof dataLayer !== 'undefined'){\n        //         dataLayer.push(dataLayerObject);\n        //     }\n        // });\n\n        // $('.payment-options input[type=\"radio\"]').on('click', function (e) {\n        //     var dataLayerObject = {\n        //         'event': 'checkoutOption',\n        //         'ecommerce': {\n        //             'checkout_option': {\n        //                 'actionField': {\n        //                     'step': 2,\n        //                     'option': this.id.toLowerCase()\n        //                 }\n        //             }\n        //         }\n        //     };\n\n        //     actionField.option = this.id.toLowerCase();\n        //     console.log(JSON.stringify(dataLayerObject));\n        //     if(typeof dataLayer !== 'undefined'){\n        //         dataLayer.push(dataLayerObject);\n        //     }\n        // });\n    }\n\n    passwordInteractionEvent(actionName){\n        dataLayer.push({\n            event: \"GAevent\",\n            eventID: \"002\",\n            eventCategory: \"user_interaction\",\n            eventAction: \"password-interaction\",\n            eventLabel: actionName,\n            eventElement01: \"-\",\n            eventElement02: \"-\",\n            eventElement03: \"-\"\n        })\n    }\n}\n\nfunction getPageType(pageAction, element){\n    var item_list_name = ''\n    if (pageAction === 'Home-Show') {\n        item_list_name = 'homepage';\n    } else if (pageAction ===  'Search-Show') {\n        item_list_name = $('.js-page').data('querystring').includes('cgid') ? 'category_listing' : 'search_results';\n    }else if (pageAction ===  'Product-Show') {\n        item_list_name = $(element).parents('.recommendations').length > 0 ? 'related_products' : 'pdp';\n    }else if (pageAction ===  'Cart-Show') {\n        item_list_name = $(element).parents('.recommendations').length > 0 ? 'related_products' : 'cart';\n    }\n\n    return item_list_name;\n}\n\nfunction trackForWish(urlProductVariant, isInWishlist, variantID, item_list_name) {\n\n    $.ajax({\n        url: urlProductVariant,\n        type: 'get',\n        context: this,\n        dataType: 'json',\n        success: (data) => {\n            let discount = '0.00';\n            let originalPrice = data.product.price.list;\n            let finalPrice = data.product.price.sales;\n\n            if(data.product.price.type === 'range'){\n                finalPrice = data.product.price.min.sales;\n                originalPrice = data.product.price.min.list ? data.product.price.min.list : finalPrice;\n            }\n\n            if (originalPrice)\n                discount = ((parseFloat(originalPrice.decimalPrice) - parseFloat(finalPrice.decimalPrice)).toFixed(2)).toString();\n\n            let currency = finalPrice.currency;\n            let categories = data.product.categoryPath.split(\"/\");\n            let variant = '';\n            let pidSplit = data.queryString.split('_');\n            if (pidSplit.length > 1) {\n                variant = pidSplit[1];\n            }\n\n            var colorID = variantID.split('_')[1];\n            var size = variantID.split('_')[2];\n\n            var colorName = colorID;\n            data.product.variationAttributes[0].values.filter((obj) => {\n                if(obj.id === colorID){\n                    colorName = obj.displayValue;\n                }\n            });\n\n            const dataLayerGA4 = {\n                event: isInWishlist ? 'remove_from_wishlist' : 'add_to_wishlist',\n                ecommerce: {\n                    currency: currency,\n                    where: item_list_name,\n                    value: Number(finalPrice.decimalPrice),\n                    items: [\n                        {\n                            item_id: data.product.id,\n                            item_name: data.product.productName,\n                            currency: currency,\n                            discount: Number(discount),\n                            item_brand: 'twinset milano',\n                            item_category: categories.length > 0 ? categories[0] : '',\n                            item_category2: categories.length > 1 ? categories[1] : '',\n                            item_category3: categories.length > 2 ? categories[2] : '',\n                            item_list_name: item_list_name,\n                            item_variant: colorName,\n                            price: originalPrice ? Number(originalPrice.decimalPrice) : Number(finalPrice.decimalPrice),\n                            quantity: data.product.selectedQuantity,\n                            item_availability: data.product.availability.inStock ? 'in_stock' : 'out_of_stock',\n                            item_discount_tag: discount !== '0.00' ? 'on_sale' : 'not_on_sale',\n                            available_size_percentage: Number(data.product.available_size_percentage),\n                            item_size: size,\n                            item_variant_v2: variantID,\n                            item_url: data.product.masterUrl,\n                            item_img: data.product.images.large[0].url\n                        }\n                    ]\n                }\n            }\n            dataLayer.push(dataLayerGA4);\n        },\n        error: (err) => {\n        }\n    });\n}\n\nconst Seo = new SEO();\nexport default Seo;\n\n\n\n// WEBPACK FOOTER //\n// ./assets/scripts/components/seo.js","function showAlertModal(data) {\r\n  const modal = $('.modal-background')\r\n  modal.css('display', 'flex').html(data.message);\r\n  modal.find('.js-continue-btn').click((e) => {\r\n    e.preventDefault();\r\n    $('.prices-add-to-cart-actions button').first().trigger('click', {destroyBasket: true});\r\n    modal.empty().hide();\r\n  });\r\n  modal.find('.js-not-continue-btn').click((e) => {\r\n    e.preventDefault();\r\n    modal.hide();\r\n  });\r\n}\r\n\r\nmodule.exports = {\r\n  showAlertModal: showAlertModal\r\n};\n\n\n// WEBPACK FOOTER //\n// ./assets/scripts/product/giftCardHelper.js"],"sourceRoot":""}