"use strict";var filterSliderBtn=document.getElementById("filterTrigger"),filterCloseBtn=document.getElementById("filterClose"),filterContain=document.querySelector("[data-sidebar]"),modalBg=getArrayOfElements("[data-modal-bg]"),createModalContainer;filterSliderBtn.addEventListener("click",function(){filterContain.classList.toggle("active");document.body.classList.toggle("sidebar-open")});filterCloseBtn.addEventListener("click",function(){filterContain.classList.toggle("active");document.body.classList.toggle("sidebar-open")});createModalContainer=function(){var n=document.createElement("span");n.classList.add("modal-bg","filter-modal");n.addEventListener("click",function(){document.body.classList.toggle("sidebar-open");filterContain.classList.remove("active")});filterContain.appendChild(n)};createModalContainer(filterContain)