"use strict";
const preLoader = function() {
    let preloaderWrapper = document.getElementById("preloader");
    window.onload = () => {
        preloaderWrapper.classList.add("addloaded")
    }
};
var getSiblings = function(elem) {
        const siblings = [];
        let sibling = elem.parentNode.firstChild;
        for (; sibling;) 1 === sibling.nodeType && sibling !== elem && siblings.push(sibling), sibling = sibling.nextSibling;
        return siblings
    },
    slideUp = (target, time) => {
        const duration = time || 500;
        target.style.transitionProperty = "height, margin, padding", target.style.transitionDuration = duration + "ms", target.style.boxSizing = "border-box", target.style.height = target.offsetHeight + "px", target.offsetHeight, target.style.overflow = "hidden", target.style.height = 0, window.setTimeout(() => {
            target.style.display = "none", target.style.removeProperty("height"), target.style.removeProperty("overflow"), target.style.removeProperty("transition-duration"), target.style.removeProperty("transition-property")
        }, duration)
    },
    slideDown = (target, time) => {
        const duration = time || 500;
        target.style.removeProperty("display");
        let display = window.getComputedStyle(target).display;
        "none" === display && (display = "block"), target.style.display = display;
        const height = target.offsetHeight;
        target.style.overflow = "hidden", target.style.height = 0, target.offsetHeight, target.style.boxSizing = "border-box", target.style.transitionProperty = "height, margin, padding", target.style.transitionDuration = duration + "ms", target.style.height = height + "px", window.setTimeout(() => {
            target.style.removeProperty("height"), target.style.removeProperty("overflow"), target.style.removeProperty("transition-duration"), target.style.removeProperty("transition-property")
        }, duration)
    };

function TopOffset(el) {
    let rect = el.getBoundingClientRect(),
        scrollTop = window.pageYOffset || document.documentElement.scrollTop;
    return {
        top: rect.top + scrollTop
    }
}
const headerStickyWrapper = document.querySelector("header"),
    headerStickyTarget = document.querySelector(".header__sticky");
headerStickyTarget && window.addEventListener("scroll", (function() {
    let StickyTargetElement, TargetElementTopOffset = TopOffset(headerStickyWrapper).top;
    window.scrollY > TargetElementTopOffset ? headerStickyTarget.classList.add("sticky") : headerStickyTarget.classList.remove("sticky")
}));
const scrollTop = document.getElementById("scroll__top");
scrollTop.addEventListener("click", (function() {
    window.scroll({
        top: 0,
        left: 0,
        behavior: "smooth"
    })
})), window.addEventListener("scroll", (function() {
    window.scrollY > 300 ? scrollTop.classList.add("active") : scrollTop.classList.remove("active")
}));
var swiper = new Swiper(".hero__slider--activation", {
        slidesPerView: 1,
        loop: !0,
        clickable: !0,
        effect: "fade",
        speed: 500,
        spaceBetween: 30,
        autoplay: {
            delay: 3e3,
            disableOnInteraction: !1
        },
        navigation: {
            nextEl: ".swiper-button-next",
            prevEl: ".swiper-button-prev"
        }
    }),
    swiper = new Swiper(".product__swiper--column3", {
        slidesPerView: 3,
        clickable: !0,
        loop: !0,
        spaceBetween: 30,
        breakpoints: {
            1200: {
                slidesPerView: 3
            },
            992: {
                slidesPerView: 2
            },
            768: {
                slidesPerView: 3,
                spaceBetween: 30
            },
            280: {
                slidesPerView: 2,
                spaceBetween: 20
            },
            0: {
                slidesPerView: 1
            }
        },
        grid: {
            fill: "row",
            rows: 2
        },
        navigation: {
            nextEl: ".swiper-button-next",
            prevEl: ".swiper-button-prev"
        }
    }),
    swiper = new Swiper(".product__swiper--column4", {
        slidesPerView: 4,
        clickable: !0,
        loop: !0,
        spaceBetween: 30,
        breakpoints: {
            1200: {
                slidesPerView: 4
            },
            992: {
                slidesPerView: 3
            },
            768: {
                slidesPerView: 3,
                spaceBetween: 30
            },
            280: {
                slidesPerView: 2,
                spaceBetween: 20
            },
            0: {
                slidesPerView: 1
            }
        },
        navigation: {
            nextEl: ".swiper-button-next",
            prevEl: ".swiper-button-prev"
        }
    }),
    swiper = new Swiper(".product__swiper--column5", {
        slidesPerView: 5,
        clickable: !0,
        loop: !0,
        spaceBetween: 30,
        breakpoints: {
            1200: {
                slidesPerView: 5
            },
            992: {
                slidesPerView: 4
            },
            768: {
                slidesPerView: 3,
                spaceBetween: 30
            },
            280: {
                slidesPerView: 2,
                spaceBetween: 20
            },
            0: {
                slidesPerView: 1
            }
        },
        navigation: {
            nextEl: ".swiper-button-next",
            prevEl: ".swiper-button-prev"
        }
    }),
    swiper = new Swiper(".product__list--column3", {
        slidesPerView: 3,
        clickable: !0,
        loop: !0,
        spaceBetween: 30,
        breakpoints: {
            1200: {
                slidesPerView: 3
            },
            992: {
                slidesPerView: 2
            },
            768: {
                slidesPerView: 3,
                spaceBetween: 30
            },
            450: {
                slidesPerView: 3,
                spaceBetween: 20
            },
            280: {
                slidesPerView: 2,
                spaceBetween: 20
            },
            0: {
                slidesPerView: 1
            }
        },
        pagination: {
            el: ".swiper-pagination",
            clickable: !0
        }
    }),
    swiper = new Swiper(".testimonial__swiper--activation", {
        slidesPerView: 2,
        loop: !0,
        clickable: !0,
        spaceBetween: 30,
        breakpoints: {
            768: {
                spaceBetween: 30,
                slidesPerView: 2
            },
            576: {
                slidesPerView: 1,
                spaceBetween: 20
            },
            0: {
                slidesPerView: 1
            }
        },
        pagination: {
            el: ".swiper-pagination",
            clickable: !0
        }
    }),
    swiper = new Swiper(".testimonial__swiper--column3", {
        slidesPerView: 3,
        loop: !0,
        clickable: !0,
        spaceBetween: 30,
        breakpoints: {
            1200: {
                spaceBetween: 30,
                slidesPerView: 3
            },
            992: {
                spaceBetween: 30,
                slidesPerView: 2
            },
            768: {
                spaceBetween: 30,
                slidesPerView: 2
            },
            576: {
                slidesPerView: 1,
                spaceBetween: 20
            },
            0: {
                slidesPerView: 1
            }
        },
        pagination: {
            el: ".swiper-pagination",
            clickable: !0
        }
    }),
    swiper = new Swiper(".testimonial__swiper--column4", {
        slidesPerView: 4,
        loop: !0,
        clickable: !0,
        spaceBetween: 30,
        breakpoints: {
            1200: {
                spaceBetween: 30,
                slidesPerView: 4
            },
            992: {
                spaceBetween: 30,
                slidesPerView: 3
            },
            768: {
                spaceBetween: 30,
                slidesPerView: 2
            },
            480: {
                slidesPerView: 2,
                spaceBetween: 20
            },
            300: {
                slidesPerView: 1,
                spaceBetween: 20
            },
            0: {
                slidesPerView: 1
            }
        },
        pagination: {
            el: ".swiper-pagination",
            clickable: !0
        }
    }),
    swiper = new Swiper(".blog__swiper--activation", {
        slidesPerView: 4,
        loop: !0,
        clickable: !0,
        spaceBetween: 30,
        breakpoints: {
            1500: {
                slidesPerView: 4
            },
            992: {
                slidesPerView: 3
            },
            768: {
                slidesPerView: 2,
                spaceBetween: 30
            },
            576: {
                slidesPerView: 2,
                spaceBetween: 20
            },
            0: {
                slidesPerView: 1
            }
        },
        navigation: {
            nextEl: ".swiper-button-next",
            prevEl: ".swiper-button-prev"
        }
    }),
    swiper = new Swiper(".blog__swiper--column3", {
        slidesPerView: 3,
        loop: !0,
        clickable: !0,
        spaceBetween: 30,
        breakpoints: {
            1200: {
                slidesPerView: 3
            },
            992: {
                slidesPerView: 3
            },
            768: {
                slidesPerView: 2,
                spaceBetween: 30
            },
            576: {
                slidesPerView: 2,
                spaceBetween: 20
            },
            0: {
                slidesPerView: 1
            }
        },
        navigation: {
            nextEl: ".swiper-button-next",
            prevEl: ".swiper-button-prev"
        }
    }),
    swiper = new Swiper(".instagram__swiper--activation", {
        slidesPerView: 7,
        loop: !0,
        clickable: !0,
        spaceBetween: 30,
        breakpoints: {
            1200: {
                slidesPerView: 7
            },
            992: {
                slidesPerView: 6
            },
            768: {
                slidesPerView: 5,
                spaceBetween: 30
            },
            576: {
                slidesPerView: 3,
                spaceBetween: 20
            },
            0: {
                slidesPerView: 2
            }
        },
        navigation: {
            nextEl: ".swiper-button-next",
            prevEl: ".swiper-button-prev"
        }
    }),
    swiper = new Swiper(".instagram__swiper--column5", {
        slidesPerView: 5,
        loop: !0,
        clickable: !0,
        spaceBetween: 30,
        breakpoints: {
            1200: {
                slidesPerView: 5
            },
            992: {
                slidesPerView: 4
            },
            768: {
                slidesPerView: 4,
                spaceBetween: 30
            },
            576: {
                slidesPerView: 3,
                spaceBetween: 20
            },
            0: {
                slidesPerView: 2
            }
        },
        navigation: {
            nextEl: ".swiper-button-next",
            prevEl: ".swiper-button-prev"
        }
    }),
    swiper = new Swiper(".quickview__swiper--activation", {
        slidesPerView: 1,
        loop: !0,
        clickable: !0,
        spaceBetween: 30,
        navigation: {
            nextEl: ".swiper-button-next",
            prevEl: ".swiper-button-prev"
        },
        pagination: {
            el: ".swiper-pagination",
            clickable: !0
        }
    }),
    swiper = new Swiper(".product__media--nav", {
        loop: !0,
        spaceBetween: 10,
        slidesPerView: 5,
        freeMode: !0,
        watchSlidesProgress: !0,
        breakpoints: {
            768: {
                slidesPerView: 5
            },
            480: {
                slidesPerView: 4
            },
            320: {
                slidesPerView: 3
            },
            200: {
                slidesPerView: 2
            },
            0: {
                slidesPerView: 1
            }
        },
        navigation: {
            nextEl: ".swiper-button-next",
            prevEl: ".swiper-button-prev"
        }
    }),
    swiper2 = new Swiper(".product__media--preview", {
        loop: !0,
        spaceBetween: 10,
        thumbs: {
            swiper: swiper
        }
    });
const tab = function() {
    const tabList = document.querySelectorAll('[data-toggle="tab"]');
    tabList.forEach((function(list) {
        list.addEventListener("click", (function() {
            const targetId = this.getAttribute("data-target"),
                target = document.querySelector(targetId);
            this.parentElement.querySelectorAll('[data-toggle="tab"]').forEach((function(list) {
                list.classList.remove("active")
            })), this.classList.add("active"), target.classList.add("active"), setTimeout((function() {
                target.classList.add("show")
            }), 150), getSiblings(target).forEach((function(pane) {
                pane.classList.remove("show"), setTimeout((function() {
                    pane.classList.remove("active")
                }), 150)
            }))
        }))
    }))
};
tab(), document.querySelectorAll("[data-countdown]").forEach((function(elem) {
    const countDownItem = function(value, label) {
            return `<div class="countdown__item" ${label}"><span class="countdown__number">${value}</span><p class="countdown__text">${label}</p></div>`
        },
        date = new Date(elem.getAttribute("data-countdown")).getTime(),
        second = 1e3,
        minute = 6e4,
        hour = 36e5,
        day = 864e5,
        countDownInterval = setInterval((function() {
            let currentTime = (new Date).getTime(),
                timeDistance = date - currentTime,
                daysValue = Math.floor(timeDistance / day),
                hoursValue = Math.floor(timeDistance % day / 36e5),
                minutesValue = Math.floor(timeDistance % 36e5 / 6e4),
                secondsValue = Math.floor(timeDistance % 6e4 / 1e3);
            elem.innerHTML = countDownItem(daysValue, "days") + countDownItem(hoursValue, "hrs") + countDownItem(minutesValue, "mins") + countDownItem(secondsValue, "secs"), timeDistance < 0 && clearInterval(countDownInterval)
        }), 1e3)
}));
const activeClassAction = function(toggle, target) {
    const to = document.querySelector(toggle),
        ta = document.querySelector(target);
    to && ta && (to.addEventListener("click", (function(e) {
        e.preventDefault(), this.classList.contains("active") ? (this.classList.remove("active"), ta.classList.remove("active")) : (this.classList.add("active"), ta.classList.add("active"))
    })), document.addEventListener("click", (function(event) {
        event.target.closest(toggle) || event.target.classList.contains(toggle.replace(/\./, "")) || event.target.closest(target) || event.target.classList.contains(target.replace(/\./, "")) || (to.classList.remove("active"), ta.classList.remove("active"))
    })))
};

function offcanvsSidebar(openTrigger, closeTrigger, wrapper) {
    let OpenTriggerprimary__btn = document.querySelectorAll(openTrigger),
        closeTriggerprimary__btn = document.querySelector(closeTrigger),
        WrapperSidebar = document.querySelector(wrapper),
        wrapperOverlay = wrapper.replace(".", "");

    function handleBodyClass(evt) {
        let eventTarget = evt.target;
        eventTarget.closest(wrapper) || eventTarget.closest(openTrigger) || (WrapperSidebar.classList.remove("active"), document.querySelector("body").classList.remove(`${wrapperOverlay}_active`))
    }
    OpenTriggerprimary__btn && WrapperSidebar && OpenTriggerprimary__btn.forEach((function(singleItem) {
        singleItem.addEventListener("click", (function() {
            WrapperSidebar.classList.add("active"), document.querySelector("body").classList.add(`${wrapperOverlay}_active`), document.body.addEventListener("click", handleBodyClass.bind(this))
        }))
    })), closeTriggerprimary__btn && WrapperSidebar && closeTriggerprimary__btn.addEventListener("click", (function() {
        WrapperSidebar.classList.remove("active"), document.querySelector("body").classList.remove(`${wrapperOverlay}_active`), document.body.removeEventListener("click", handleBodyClass.bind(this))
    }))
}
activeClassAction(".account__currency--link", ".dropdown__currency"), activeClassAction(".language__switcher", ".dropdown__language"), activeClassAction(".offcanvas__language--switcher", ".offcanvas__dropdown--language"), activeClassAction(".offcanvas__account--currency__menu", ".offcanvas__account--currency__submenu"), offcanvsSidebar(".minicart__open--btn", ".minicart__close--btn", ".offCanvas__minicart"), offcanvsSidebar(".search__open--btn", ".predictive__search--close__btn", ".predictive__search--box"), offcanvsSidebar(".widget__filter--btn", ".offcanvas__filter--close", ".offcanvas__filter--sidebar");
const offcanvasHeader = function() {
    const offcanvasOpen = document.querySelector(".offcanvas__header--menu__open--btn"),
        offcanvasClose = document.querySelector(".offcanvas__close--btn"),
        offcanvasHeader = document.querySelector(".offcanvas-header"),
        offcanvasMenu = document.querySelector(".offcanvas__menu"),
        body = document.querySelector("body");
    offcanvasMenu && offcanvasMenu.querySelectorAll(".offcanvas__sub_menu").forEach((function(ul) {
        const subMenuToggle = document.createElement("button");
        subMenuToggle.classList.add("offcanvas__sub_menu_toggle"), ul.parentNode.appendChild(subMenuToggle)
    })), offcanvasOpen && offcanvasOpen.addEventListener("click", (function(e) {
        e.preventDefault(), offcanvasHeader.classList.add("open"), body.classList.add("mobile_menu_open")
    })), offcanvasClose && offcanvasClose.addEventListener("click", (function(e) {
        e.preventDefault(), offcanvasHeader.classList.remove("open"), body.classList.remove("mobile_menu_open")
    })), offcanvasMenu && offcanvasMenu.querySelectorAll(".offcanvas__sub_menu_toggle").forEach((function(toggle) {
        toggle.addEventListener("click", (function(e) {
            e.preventDefault();
            const parent = this.parentElement;
            parent.classList.contains("active") ? (this.classList.remove("active"), parent.classList.remove("active"), parent.querySelectorAll(".offcanvas__sub_menu").forEach((function(subMenu) {
                subMenu.parentElement.classList.remove("active"), subMenu.nextElementSibling.classList.remove("active"), slideUp(subMenu)
            }))) : (this.classList.add("active"), parent.classList.add("active"), slideDown(this.previousElementSibling), getSiblings(parent).forEach((function(item) {
                item.classList.remove("active"), item.querySelectorAll(".offcanvas__sub_menu").forEach((function(subMenu) {
                    subMenu.parentElement.classList.remove("active"), subMenu.nextElementSibling.classList.remove("active"), slideUp(subMenu)
                }))
            })))
        }))
    })), document.addEventListener("click", (function(event) {
        event.target.closest(".offcanvas__header--menu__open--btn") || event.target.classList.contains(".offcanvas__header--menu__open--btn".replace(/\./, "")) || event.target.closest(".offcanvas-header") || event.target.classList.contains(".offcanvas-header".replace(/\./, "")) || (offcanvasHeader.classList.remove("open"), body.classList.remove("mobile_menu_open"))
    })), window.addEventListener("resize", (function() {
        window.outerWidth >= 992 && (offcanvasHeader.classList.remove("open"), body.classList.remove("mobile_menu_open"))
    }))
};
offcanvasHeader();
const quantityWrapper = document.querySelectorAll(".quantity__box");
quantityWrapper && quantityWrapper.forEach((function(singleItem) {
    let input = singleItem.querySelector(".quantity__number"),
        increaseButton = singleItem.querySelector(".increase"),
        decreaseButton = singleItem.querySelector(".decrease");
    increaseButton.addEventListener("click", (function() {
        let value = parseInt(input.value, 10);
        value = isNaN(value) ? 0 : value, value++, input.value = value
    })), decreaseButton.addEventListener("click", (function() {
        let value = parseInt(input.value, 10);
        value = isNaN(value) ? 0 : value, value < 1 && (value = 1), value--, input.value = value
    }))
}));
const openEls = document.querySelectorAll("[data-open]"),
    closeEls = document.querySelectorAll("[data-close]"),
    isVisible = "is-visible";
for (const el of openEls) el.addEventListener("click", (function() {
    const modalId = this.dataset.open;
    document.getElementById(modalId).classList.add(isVisible)
}));
for (const el of closeEls) el.addEventListener("click", (function() {
    this.parentElement.parentElement.parentElement.classList.remove(isVisible)
}));

function customAccordion(accordionWrapper, accordionButton, accordionBody) {
    let accoridonButtons;
    document.querySelectorAll(accordionButton).forEach((function(item) {
        item.addEventListener("click", (function() {
            let singleAccordionWrapper = this.closest(accordionWrapper),
                singleAccordionBody = singleAccordionWrapper.querySelector(accordionBody);
            singleAccordionWrapper.classList.contains("active") ? (singleAccordionWrapper.classList.remove("active"), slideUp(singleAccordionBody)) : (singleAccordionWrapper.classList.add("active"), slideDown(singleAccordionBody), getSiblings(singleAccordionWrapper).forEach((function(item) {
                let sibllingSingleAccordionBody = item.querySelector(accordionBody);
                item.classList.remove("active"), slideUp(sibllingSingleAccordionBody)
            })))
        }))
    }))
}
document.addEventListener("click", e => {
    e.target == document.querySelector(".modal.is-visible") && document.querySelector(".modal.is-visible").classList.remove(isVisible)
}), document.addEventListener("keyup", e => {
    "Escape" == e.key && document.querySelector(".modal.is-visible") && document.querySelector(".modal.is-visible").classList.remove(isVisible)
}), customAccordion(".accordion__items", ".accordion__items--button", ".accordion__items--body"), customAccordion(".widget__categories--menu__list", ".widget__categories--menu__label", ".widget__categories--sub__menu");
let accordion = !0;
const footerWidgetAccordion = function() {
    accordion = !1, document.querySelectorAll(".footer__widget--button").forEach((function(item) {
        item.addEventListener("click", (function() {
            const footerWidget = this.closest(".footer__widget"),
                footerWidgetInner = footerWidget.querySelector(".footer__widget--inner");
            footerWidget.classList.contains("active") ? (footerWidget.classList.remove("active"), slideUp(footerWidgetInner)) : (footerWidget.classList.add("active"), slideDown(footerWidgetInner), getSiblings(footerWidget.parentElement).forEach((function(item) {
                const footerWidget = item.querySelector(".footer__widget"),
                    footerWidgetInner = item.querySelector(".footer__widget--inner");
                footerWidget.classList.remove("active"), slideUp(footerWidgetInner)
            })))
        }))
    }))
};
window.addEventListener("load", (function() {
    accordion && footerWidgetAccordion()
})), window.addEventListener("resize", (function() {
    document.querySelectorAll(".footer__widget").forEach((function(item) {
        window.outerWidth >= 768 && (item.classList.remove("active"), item.querySelector(".footer__widget--inner").style.display = "")
    })), accordion && footerWidgetAccordion()
}));
const customLightboxHTML = '<div id="glightbox-body" class="glightbox-container">\n    <div class="gloader visible"></div>\n    <div class="goverlay"></div>\n    <div class="gcontainer">\n    <div id="glightbox-slider" class="gslider"></div>\n    <button class="gnext gbtn" tabindex="0" aria-label="Next" data-customattribute="example">{nextSVG}</button>\n    <button class="gprev gbtn" tabindex="1" aria-label="Previous">{prevSVG}</button>\n    <button class="gclose gbtn" tabindex="2" aria-label="Close">{closeSVG}</button>\n    </div>\n    </div>',
    lightbox = GLightbox({
        touchNavigation: !0,
        lightboxHTML: customLightboxHTML,
        loop: !0
    }),
    wrapper = document.getElementById("funfactId");
if (wrapper) {
    const counters = wrapper.querySelectorAll(".js-counter"),
        duration = 1e3;
    let isCounted = !1;
    document.addEventListener("scroll", (function() {
        const wrapperPos = wrapper.offsetTop - window.innerHeight;
        !isCounted && window.scrollY > wrapperPos && (counters.forEach(counter => {
            const countTo = counter.dataset.count,
                countPerMs = countTo / duration;
            let currentCount = 0;
            const countInterval = setInterval((function() {
                currentCount >= countTo && clearInterval(countInterval), counter.textContent = Math.round(currentCount), currentCount += countPerMs
            }), 1)
        }), isCounted = !0)
    }))
}
const categoryMobileMenu = function() {
    const CategorySubMenu = document.querySelector(".category__mobile--menu");
    CategorySubMenu && CategorySubMenu.querySelectorAll(".category__sub--menu").forEach((function(ul) {
        let catsubMenuToggle = document.createElement("button");
        catsubMenuToggle.classList.add("category__sub--menu_toggle"), ul.parentNode.appendChild(catsubMenuToggle)
    })), CategorySubMenu && CategorySubMenu.querySelectorAll(".category__sub--menu_toggle").forEach((function(toggle) {
        toggle.addEventListener("click", (function(e) {
            e.preventDefault();
            let parent = this.parentElement;
            parent.classList.contains("active") ? (this.classList.remove("active"), parent.classList.remove("active"), parent.querySelectorAll(".category__sub--menu").forEach((function(subMenu) {
                subMenu.parentElement.classList.remove("active"), subMenu.nextElementSibling.classList.remove("active"), slideUp(subMenu)
            }))) : (this.classList.add("active"), parent.classList.add("active"), slideDown(this.previousElementSibling), getSiblings(parent).forEach((function(item) {
                item.classList.remove("active"), item.querySelectorAll(".category__sub--menu").forEach((function(subMenu) {
                    subMenu.parentElement.classList.remove("active"), subMenu.nextElementSibling.classList.remove("active"), slideUp(subMenu)
                }))
            })))
        }))
    }))
};
categoryMobileMenu();
const newsletterPopup = function() {
    let newsletterWrapper = document.querySelector(".newsletter__popup"),
        newsletterCloseButton = document.querySelector(".newsletter__popup--close__btn"),
        dontShowPopup = document.querySelector("#newsletter__dont--show"),
        popuDontShowMode = localStorage.getItem("newsletter__show");
    newsletterWrapper && null == popuDontShowMode && window.addEventListener("load", event => {
        setTimeout((function() {
            document.body.classList.add("overlay__active"), newsletterWrapper.classList.add("newsletter__show"), document.addEventListener("click", (function(event) {
                event.target.closest(".newsletter__popup--inner") || (document.body.classList.remove("overlay__active"), newsletterWrapper.classList.remove("newsletter__show"))
            })), newsletterCloseButton.addEventListener("click", (function() {
                document.body.classList.remove("overlay__active"), newsletterWrapper.classList.remove("newsletter__show")
            })), dontShowPopup.addEventListener("click", (function() {
                dontShowPopup.checked ? localStorage.setItem("newsletter__show", !0) : localStorage.removeItem("newsletter__show")
            }))
        }), 3e3)
    })
};
newsletterPopup();