{"version":3,"sources":["main.js"],"names":["closeMenu","mobileOverlay","document","getElementById","style","display","openMenu","initSlick","$","hasClass","slick","dots","infinite","speed","slidesToScroll","slidesToShow","centerMode","centerPadding","prevArrow","nextArrow","responsive","breakpoint","settings","addEventListener","collectionLink","overlay","closeOverlay","header","mainHeader","mobileHeader","openSizeChartBtn","closeSizeChartBtn","sizeChartOverlay","event","preventDefault","window","classList","toggle","scrollY","add","remove","setTimeout","feedButton","querySelector","console","log","accordionItems","querySelectorAll","forEach","item","i","content","title","accordionContent","accordionTitle","menuToggle","body","submenu","nextElementSibling","contains","parentElement","other","previousElementSibling","searchToggle","searchTogglemobile","searchOverlay","closeSOverlay","autoplay","autoplaySpeed","fade","on","currentSlide","nextSlide","totalSlides","slideCount","let","start","end","each","index","this","show","hide","variableWidth","customPaging","slider","ready","stars","star","s","setAttribute","summaryStar","rating","parseInt","getAttribute","starHTML","innerHTML","details","detail","open","otherDetail","removeAttribute","jQuery","variation","template","wp","html","empty","hiddenInput","value","productsList","page","loading","productsFound","loadingIndicator","lastScrollY","loadMoreProducts","url","URL","location","href","searchParams","set","fetch","toString","then","response","text","doc","DOMParser","parseFromString","newProducts","Array","from","length","product","appendChild","catch","error","finally","imageUrl","productId","priceElement","colorSwatch","target","closest","newPrice","formattedPrice","currencySymbol","parseFloat","toFixed","productImage","src","slickContainer","innerWidth","mainSlide","image","zoomOverlay","rect","createElement","backgroundImage","getBoundingClientRect","updateZoom","e","x","clientX","left","y","clientY","top","bgX","width","bgY","height","backgroundPosition","backgroundSize","right","checkMouseOut","removeEventListener","addToCartButton","productTitleElement","localStorage","setItem","textContent","trim","pathname","endsWith","addedProduct","getItem","showToast","toast","productTitle","opacity","removeItem","button","scrollHeight","clientHeight","colorSelect","selectedColor","color","dataset","currentImage","currentSlideIndex","slickIndex","wishlistText","wishlistDiv","wishlistButton","click"],"mappings":"AAwIA,SAAAA,YACA,IAAAC,EAAAC,SAAAC,eAAA,eAAA,EACAF,IAAAA,EAAAG,MAA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AAD,EAAAlK,cAAA,WAAA,IAEAmK,EAAAC,MAAA,CAEA,CAAA,CACA,CAAA","file":"bundle.min.js","sourcesContent":["document.addEventListener('DOMContentLoaded', function () {\r\n const collectionLink = document.getElementById('collection');\r\n const overlay = document.getElementById('overlay');\r\n const closeOverlay = document.getElementById('closeOverlay');\r\n const header = document.getElementById('fixedHeader');\r\n const mainHeader = document.getElementById('mainHeader');\r\n const mobileHeader = document.getElementById('Mheader');\r\n const openSizeChartBtn = document.getElementById('openSizeChart');\r\n const closeSizeChartBtn = document.getElementById('closeSizeChart');\r\n const sizeChartOverlay = document.getElementById('size-chart-overlay');\r\n\r\n // Ensure elements exist before adding event listeners\r\n if (collectionLink && overlay) {\r\n collectionLink.addEventListener('click', function (event) {\r\n event.preventDefault();\r\n overlay.style.display = 'flex'; // Show overlay\r\n });\r\n }\r\n\r\n if (closeOverlay && overlay) {\r\n closeOverlay.addEventListener('click', function () {\r\n overlay.style.display = 'none'; // Hide overlay\r\n });\r\n }\r\n\r\n // Add scroll event listener to change header style\r\n window.addEventListener('scroll', function () {\r\n if (mainHeader) {\r\n mainHeader.classList.toggle('scrolled', window.scrollY > 40);\r\n }\r\n if (mobileHeader) {\r\n mobileHeader.classList.toggle('mscrolled', window.scrollY > 40);\r\n }\r\n if (header) {\r\n header.classList.toggle('scrolled', window.scrollY > 40);\r\n }\r\n });\r\n\r\n // Ensure size chart elements exist before adding event listeners\r\n if (openSizeChartBtn && closeSizeChartBtn && sizeChartOverlay) {\r\n openSizeChartBtn.addEventListener('click', function () {\r\n sizeChartOverlay.classList.add('active'); // Show size chart overlay\r\n });\r\n\r\n closeSizeChartBtn.addEventListener('click', function () {\r\n sizeChartOverlay.classList.remove('active'); // Hide size chart overlay\r\n });\r\n }\r\n});\r\n\r\ndocument.addEventListener('DOMContentLoaded', function () {\r\n\r\n setTimeout(() => {\r\n const feedButton = document.querySelector('a[href=\"https://elfsight.com/instagram-feed-instashow/?utm_source=websites&utm_medium=clients&utm_content=instashow&utm_term=demo.technophilic.co&utm_campaign=free-widget\"]');\r\n if (feedButton) {\r\n feedButton.style.display = 'none';\r\n } else {\r\n console.log('Feed button not found');\r\n }\r\n }, 6000);\r\n\r\n});\r\n\r\n// dropdown \r\ndocument.addEventListener(\"DOMContentLoaded\", () => {\r\n const accordionItems = document.querySelectorAll('.accordion-item');\r\n\r\n accordionItems.forEach(item => {\r\n item.addEventListener('mouseenter', () => {\r\n accordionItems.forEach(i => {\r\n const content = i.querySelector('.accordion-content');\r\n const title = i.querySelector('.accordion-title');\r\n if (content && title) {\r\n content.style.display = 'none';\r\n title.classList.remove('active');\r\n }\r\n });\r\n\r\n const accordionContent = item.querySelector('.accordion-content');\r\n const accordionTitle = item.querySelector('.accordion-title');\r\n if (accordionContent && accordionTitle) {\r\n accordionContent.style.display = 'block';\r\n accordionTitle.classList.add('active');\r\n }\r\n });\r\n });\r\n});\r\n\r\n\r\ndocument.addEventListener(\"DOMContentLoaded\", function () {\r\n const menuToggle = document.getElementById(\"menu-toggle\");\r\n const mobileOverlay = document.getElementById(\"mobileOverlay\");\r\n const closeOverlay = document.getElementById(\"McloseOverlay\");\r\n\r\n if (menuToggle && mobileOverlay) {\r\n menuToggle.addEventListener(\"click\", function () {\r\n mobileOverlay.style.display = \"flex\";\r\n document.body.classList.add(\"no-scroll\");\r\n });\r\n }\r\n\r\n if (closeOverlay && mobileOverlay) {\r\n closeOverlay.addEventListener(\"click\", function () {\r\n mobileOverlay.style.display = \"none\";\r\n document.body.classList.remove(\"no-scroll\");\r\n });\r\n }\r\n\r\n const menuItems = document.querySelectorAll(\".menu-item\");\r\n\r\n menuItems.forEach((item) => {\r\n item.addEventListener(\"click\", function () {\r\n const submenu = item.nextElementSibling;\r\n if (submenu && submenu.classList.contains(\"submenu\")) {\r\n const parent = item.parentElement.parentElement;\r\n const otherSubmenus = parent.querySelectorAll(\".submenu\");\r\n otherSubmenus.forEach((other) => {\r\n if (other !== submenu) {\r\n other.style.display = \"none\";\r\n const otherChevron = other.previousElementSibling?.querySelector(\".chevron\");\r\n otherChevron?.classList.remove(\"rotate\");\r\n }\r\n });\r\n\r\n if (submenu.style.display === \"block\") {\r\n submenu.style.display = \"none\";\r\n item.querySelector(\".chevron\")?.classList.remove(\"rotate\");\r\n } else {\r\n submenu.style.display = \"block\";\r\n item.querySelector(\".chevron\")?.classList.add(\"rotate\");\r\n }\r\n }\r\n });\r\n });\r\n});\r\n\r\nfunction closeMenu() {\r\n const mobileOverlay = document.getElementById('mobileOverlay');\r\n if (mobileOverlay) mobileOverlay.style.display = 'none';\r\n}\r\n\r\nfunction openMenu() {\r\n const mobileOverlay = document.getElementById('mobileOverlay');\r\n if (mobileOverlay) mobileOverlay.style.display = 'block';\r\n}\r\n\r\n// search overlay\r\ndocument.addEventListener(\"DOMContentLoaded\", function () {\r\n const searchToggle = document.getElementById('search-toggle');\r\n const searchTogglemobile = document.getElementById('search-toggle-mobile');\r\n const searchOverlay = document.getElementById('search-Overlay');\r\n const closeSOverlay = document.getElementById('closeSOverlay');\r\n\r\n if (searchToggle && searchOverlay) {\r\n searchToggle.addEventListener('click', function () {\r\n searchOverlay.style.display = 'flex';\r\n });\r\n }\r\n\r\n if (searchTogglemobile && searchOverlay) {\r\n searchTogglemobile.addEventListener('click', function () {\r\n searchOverlay.style.display = 'flex';\r\n });\r\n }\r\n\r\n if (closeSOverlay && searchOverlay) {\r\n closeSOverlay.addEventListener('click', function () {\r\n searchOverlay.style.display = 'none';\r\n });\r\n }\r\n});\r\n\r\n\r\n// banner Slider Initialization -->\r\n\r\ndocument.addEventListener(\"DOMContentLoaded\", function () {\r\n $(\".hero-banner__slider\").slick({\r\n slidesToShow: 1,\r\n\r\n autoplay: true,\r\n autoplaySpeed: 5000,\r\n // arrows: true,\r\n fade:true,\r\n dots: false,\r\n prevArrow: $(\".prev-arr\"),\r\n nextArrow: $(\".next-arr\"),\r\n\r\n });\r\n});\r\n\r\n// Shop Slider Initialization -->\r\ndocument.addEventListener(\"DOMContentLoaded\", function () {\r\n const maxDots = 5; // Number of dots visible at a time\r\n\r\n $(\".shop-categories__slider\").on('init reInit afterChange', function (event, slick, currentSlide, nextSlide) {\r\n const totalSlides = slick.slideCount;\r\n let start = 0;\r\n let end = maxDots;\r\n\r\n if (currentSlide >= 3) {\r\n start = currentSlide - 2;\r\n end = start + maxDots;\r\n if (end > totalSlides) {\r\n end = totalSlides;\r\n start = end - maxDots;\r\n }\r\n }\r\n\r\n $('.slick-dots li').each(function (index) {\r\n if (index >= start && index < end) {\r\n $(this).show();\r\n } else {\r\n $(this).hide();\r\n }\r\n });\r\n });\r\n\r\n $(\".shop-categories__slider\").slick({\r\n dots: true,\r\n infinite: true,\r\n speed: 300,\r\n slidesToShow: 1,\r\n variableWidth: true,\r\n prevArrow: $(\".prev-arrow\"),\r\n nextArrow: $(\".next-arrow\"),\r\n customPaging: function (slider, i) {\r\n return '<button class=\"slick-dot\">' + (i + 1) + '</button>';\r\n },\r\n responsive: [\r\n {\r\n breakpoint: 1024, // Large screen breakpoint\r\n settings: {\r\n slidesToShow: 2.4,\r\n },\r\n },\r\n {\r\n breakpoint: 768, // Tablet screen breakpoint\r\n settings: {\r\n slidesToShow: 2,\r\n },\r\n },\r\n {\r\n breakpoint: 480, // Mobile screen breakpoint\r\n settings: {\r\n slidesToShow: 1,\r\n },\r\n },\r\n ],\r\n });\r\n});\r\n\r\n\r\n// testimonial\r\nfunction initSlick() {\r\n if ($(\".testimonial-slider\").hasClass('slick-initialized')) {\r\n $(\".testimonial-slider\").slick('unslick'); // Remove existing Slick instance\r\n }\r\n\r\n $(\".testimonial-slider\").slick({\r\n dots: false,\r\n infinite: true,\r\n speed: 300,\r\n slidesToScroll: 1,\r\n slidesToShow: 3,\r\n centerMode: true,\r\n centerPadding: '50px',\r\n prevArrow: $(\".prev\"),\r\n nextArrow: $(\".next\"),\r\n responsive: [\r\n {\r\n breakpoint: 1024,\r\n settings: {\r\n slidesToShow: 3,\r\n centerPadding: '50px',\r\n },\r\n },\r\n {\r\n breakpoint: 768,\r\n settings: {\r\n slidesToShow: 1,\r\n centerPadding: '0',\r\n },\r\n },\r\n ],\r\n });\r\n}\r\n\r\n$(document).ready(initSlick);\r\n\r\n\r\n\r\ndocument.addEventListener(\"DOMContentLoaded\", function () {\r\n const stars = document.querySelectorAll(\".star\");\r\n\r\n stars.forEach((star, index) => {\r\n star.addEventListener(\"click\", () => {\r\n // Remove the fill from all stars\r\n stars.forEach((s) => s.querySelector(\"path\").setAttribute(\"fill\", \"none\"));\r\n\r\n // Fill all stars up to the clicked one\r\n for (let i = 0; i <= index; i++) {\r\n stars[i].querySelector(\"path\").setAttribute(\"fill\", \"#FFF\");\r\n }\r\n });\r\n });\r\n\r\n // Dynamic rating summary stars for the review section\r\n const ratingSummaryStars = document.querySelectorAll(\".reviews-section__reviews-rating-summary .stars\");\r\n\r\n ratingSummaryStars.forEach(summaryStar => {\r\n const rating = parseInt(summaryStar.getAttribute(\"data-rating\"));\r\n let starHTML = '';\r\n for (let i = 1; i <= 5; i++) {\r\n if (i <= rating) {\r\n starHTML += \"★\"; // Filled star\r\n } else {\r\n starHTML += \"☆\"; // Unfilled star\r\n }\r\n }\r\n summaryStar.innerHTML = starHTML;\r\n });\r\n\r\n // Details\r\n const details = document.querySelectorAll('details');\r\n\r\n details.forEach((detail) => {\r\n detail.addEventListener('toggle', function () {\r\n // Close all other details except the one clicked\r\n if (this.open) {\r\n details.forEach((otherDetail) => {\r\n if (otherDetail !== this) {\r\n otherDetail.removeAttribute('open');\r\n }\r\n });\r\n }\r\n });\r\n });\r\n})\r\n\r\njQuery(function ($) {\r\n $('.variations_form').on('show_variation', function (event, variation) {\r\n var template = wp.template('variation-template');\r\n $('.woocommerce-Price-amount-single-custom').html(template({ variation: variation }));\r\n $('.single_variation_wrap>.single_variation').empty(); // Clear the details on reset\r\n });\r\n\r\n $('.variations_form').on('reset_data', function () {\r\n //$('.woocommerce-Price-amount-single-custom').empty(); // Clear the details on reset\r\n });\r\n});\r\n\r\n// Product review star\r\ndocument.addEventListener(\"DOMContentLoaded\", function () {\r\n const stars = document.querySelectorAll(\".star-label\");\r\n const hiddenInput = document.getElementById(\"selected-rating\");\r\n\r\n stars.forEach(star => {\r\n star.addEventListener(\"click\", function () {\r\n let rating = this.getAttribute(\"data-rating\");\r\n hiddenInput.value = rating;\r\n\r\n // Reset all stars\r\n stars.forEach(s => s.querySelector(\"svg\").setAttribute(\"stroke\", \"#ccc\"));\r\n\r\n // Highlight selected and previous stars\r\n for (let i = 0; i < rating; i++) {\r\n stars[i].querySelector(\"svg\").setAttribute(\"stroke\", \"#f5c518\");\r\n }\r\n });\r\n });\r\n});\r\n\r\n// Infinite scroll\r\ndocument.addEventListener(\"DOMContentLoaded\", function () {\r\n const productsList = document.getElementById(\"products-list\");\r\n if (!productsList) return;\r\n\r\n let page = 2; // Start from page 2 after the initial load\r\n let loading = false;\r\n let productsFound = true;\r\n const loadingIndicator = document.getElementById(\"loading\");\r\n let lastScrollY = window.scrollY; // Track last scroll position\r\n\r\n const loadMoreProducts = () => {\r\n if (loading || !productsFound) return;\r\n loading = true;\r\n\r\n if (loadingIndicator) loadingIndicator.style.display = \"block\";\r\n\r\n setTimeout(() => {\r\n const url = new URL(window.location.href);\r\n url.searchParams.set(\"paged\", page);\r\n\r\n fetch(url.toString())\r\n .then(response => response.text())\r\n .then(html => {\r\n const parser = new DOMParser();\r\n const doc = parser.parseFromString(html, \"text/html\");\r\n const newProducts = Array.from(doc.querySelectorAll(\".collection-list__product\"));\r\n\r\n if (newProducts.length > 0) {\r\n newProducts.forEach(product => productsList.appendChild(product));\r\n page++;\r\n } else {\r\n productsFound = false;\r\n if (loadingIndicator) {\r\n loadingIndicator.innerHTML = \"<p>No more products to load</p>\";\r\n loadingIndicator.style.display = \"block\";\r\n }\r\n }\r\n })\r\n .catch(error => console.error(\"Error loading products:\", error))\r\n .finally(() => {\r\n if (productsFound && loadingIndicator) loadingIndicator.style.display = \"none\";\r\n loading = false;\r\n });\r\n }, 500); // half-second delay before fetching\r\n };\r\n\r\n const scrollHandler = () => {\r\n let scrollDifference = window.scrollY - lastScrollY;\r\n\r\n if (scrollDifference >= 400 && productsFound) {\r\n loadMoreProducts();\r\n lastScrollY = window.scrollY; // Update last scroll position\r\n }\r\n };\r\n\r\n window.addEventListener(\"scroll\", scrollHandler);\r\n loadMoreProducts(); // Initial load\r\n\r\n\r\n\r\n\r\n document.body.addEventListener(\"click\", function (event) {\r\n const colorSwatch = event.target.closest(\".variable-item-span\");\r\n if (!colorSwatch) return;\r\n\r\n const imageUrl = colorSwatch.getAttribute(\"data-image\");\r\n const productId = colorSwatch.getAttribute(\"data-product-id\");\r\n const newPrice = colorSwatch.getAttribute(\"data-price\");\r\n\r\n const formattedPrice = `${currencySymbol}${parseFloat(newPrice).toFixed(2)}`;\r\n\r\n // Update product image\r\n const productImage = document.getElementById(\"product-image-\" + productId);\r\n if (productImage) {\r\n productImage.src = imageUrl;\r\n }\r\n\r\n // Update price\r\n const priceElement = document.getElementById(\"product-price-\" + productId);\r\n if (priceElement) {\r\n priceElement.innerHTML = formattedPrice;\r\n }\r\n });\r\n});\r\n\r\n\r\n\r\n\r\n// for variation product buy now button javascript\r\n\r\n// Product detail main slide item zoom feature on hover for desktops and iPads (>768px)\r\n\r\ndocument.addEventListener(\"DOMContentLoaded\", function () {\r\n const slickContainer = document.querySelector(\".product-banner__slides\");\r\n\r\n if (!slickContainer) return;\r\n\r\n slickContainer.addEventListener(\"mouseover\", function () {\r\n // Only apply effect for viewport width >= 768px\r\n if (window.innerWidth < 768) return;\r\n\r\n const mainSlide = document.querySelector(\".slick-current.slick-center\");\r\n if (!mainSlide) return;\r\n\r\n const image = mainSlide.querySelector(\"img\");\r\n if (!image) return;\r\n\r\n let zoomOverlay = document.querySelector(\".zoom-overlay\");\r\n if (!zoomOverlay) {\r\n zoomOverlay = document.createElement(\"div\");\r\n zoomOverlay.classList.add(\"zoom-overlay\");\r\n document.body.appendChild(zoomOverlay);\r\n }\r\n\r\n // Set overlay background image\r\n zoomOverlay.style.backgroundImage = `url(${image.src})`;\r\n\r\n // Position overlay to the right of the main slide\r\n const rect = mainSlide.getBoundingClientRect();\r\n zoomOverlay.style.left = `${rect.right + 10}px`;\r\n zoomOverlay.style.top = `${rect.top}px`;\r\n zoomOverlay.style.width = `${rect.width}px`;\r\n zoomOverlay.style.height = `${rect.height}px`;\r\n zoomOverlay.style.display = \"block\";\r\n\r\n // Function to update zoom effect on mouse move\r\n function updateZoom(e) {\r\n const x = e.clientX - rect.left;\r\n const y = e.clientY - rect.top;\r\n\r\n const zoomFactor = 2.5;\r\n const bgX = (x / rect.width) * 100;\r\n const bgY = (y / rect.height) * 100;\r\n\r\n zoomOverlay.style.backgroundPosition = `${bgX}% ${bgY}%`;\r\n zoomOverlay.style.backgroundSize = `${rect.width * zoomFactor}px ${rect.height * zoomFactor}px`;\r\n }\r\n\r\n // Function to hide zoom overlay when cursor moves outside main slide\r\n function checkMouseOut(event) {\r\n if (!mainSlide.contains(event.target) && !zoomOverlay.contains(event.target)) {\r\n zoomOverlay.style.display = \"none\";\r\n document.removeEventListener(\"mousemove\", updateZoom);\r\n document.removeEventListener(\"mouseover\", checkMouseOut);\r\n }\r\n }\r\n\r\n // Attach event listeners for zoom effect\r\n document.addEventListener(\"mousemove\", updateZoom);\r\n document.addEventListener(\"mouseover\", checkMouseOut);\r\n });\r\n});\r\n\r\n\r\n// Display Popup when a product is added to cart\r\n\r\ndocument.addEventListener(\"DOMContentLoaded\", function () {\r\n const addToCartButton = document.querySelector(\".single_add_to_cart_button\");\r\n\r\n if (addToCartButton) {\r\n addToCartButton.addEventListener(\"click\", function () {\r\n const productTitleElement = document.querySelector(\".product-banner__desc\");\r\n if (productTitleElement) {\r\n localStorage.setItem(\"addedProduct\", productTitleElement.textContent.trim());\r\n }\r\n });\r\n }\r\n\r\n if (window.location.pathname.endsWith(\"/cart/\")) {\r\n const addedProduct = localStorage.getItem(\"addedProduct\");\r\n\r\n if (addedProduct) {\r\n showToast(addedProduct);\r\n localStorage.removeItem(\"addedProduct\");\r\n }\r\n }\r\n\r\n function showToast(productTitle) {\r\n const toast = document.createElement(\"div\");\r\n toast.classList.add(\"custom-toast\");\r\n\r\n toast.innerHTML = `\r\n <p><strong>${productTitle}</strong> has been added to cart.</p>\r\n `;\r\n\r\n document.body.appendChild(toast);\r\n\r\n setTimeout(() => {\r\n toast.style.opacity = \"0\";\r\n setTimeout(() => toast.remove(), 500);\r\n }, 5000);\r\n }\r\n});\r\n\r\n// Testimonials expand collapse\r\n\r\ndocument.addEventListener(\"DOMContentLoaded\", function () {\r\n document.querySelectorAll(\".reviews-section__comments-item\").forEach((item) => {\r\n const content = item.querySelector(\".reviews-section__comments-item--content\");\r\n const button = document.createElement(\"button\");\r\n button.classList.add(\"expand-btn\");\r\n button.textContent = \"Read More\";\r\n\r\n if (content.scrollHeight > content.clientHeight) {\r\n content.classList.add(\"content-expandable\");\r\n item.appendChild(button);\r\n button.style.display = \"block\";\r\n }\r\n\r\n button.addEventListener(\"click\", function () {\r\n if (content.classList.contains(\"content-expandable\")) {\r\n content.classList.remove(\"content-expandable\");\r\n content.classList.add(\"content-collapsible\");\r\n\r\n button.classList.remove(\"expand-btn\");\r\n button.classList.add(\"collapse-btn\");\r\n button.textContent = \"Close\";\r\n } else {\r\n content.classList.remove(\"content-collapsible\");\r\n content.classList.add(\"content-expandable\");\r\n\r\n button.classList.remove(\"collapse-btn\");\r\n button.classList.add(\"expand-btn\");\r\n button.textContent = \"Expand\";\r\n }\r\n });\r\n });\r\n});\r\n\r\n\r\ndocument.addEventListener(\"DOMContentLoaded\", function () {\r\n const colorSelect = document.querySelector('.single_product_variation ul[data-attribute_name=\"attribute_pa_color\"]');\r\n if (colorSelect) {\r\n colorSelect.addEventListener('click', function (event) {\r\n const selectedColor = event.target.closest('li');\r\n if (selectedColor) {\r\n updateProductImage(selectedColor.dataset.value);\r\n }\r\n });\r\n }\r\n\r\n function updateProductImage(color) {\r\n if (!color) return;\r\n let currentImage = document.querySelectorAll('.product-banner__slide img[alt=\"' + color + '\"]');\r\n currentImage = currentImage[currentImage.length-1];\r\n if (currentImage) {\r\n const currentSlideIndex = currentImage.closest('.slick-slide').dataset.slickIndex;\r\n $('.product-banner__slides').slick('slickGoTo', currentSlideIndex);\r\n }\r\n }\r\n});\r\n// add to wishlist click event\r\ndocument.addEventListener(\"DOMContentLoaded\", function () {\r\n document.body.addEventListener(\"click\", function (event) {\r\n // Check if the clicked element is exactly the wishlist text\r\n const wishlistText = event.target.closest(\".wishlist-text\");\r\n if (!wishlistText) return;\r\n\r\n // Find the wishlist container div\r\n const wishlistDiv = wishlistText.closest(\".product-banner__wishlist\");\r\n if (!wishlistDiv) return;\r\n\r\n // Find the actual wishlist button inside the div\r\n const wishlistButton = wishlistDiv.querySelector(\"button, a\");\r\n if (wishlistButton) {\r\n wishlistButton.click(); // Trigger the wishlist button\r\n }\r\n });\r\n});"]}