var layoutRightSideBtn=document.querySelector(".layout-rightside-btn");if(layoutRightSideBtn){Array.from(document.querySelectorAll(".layout-rightside-btn")).forEach((function(e){var t=document.querySelector(".layout-rightside-col");e.addEventListener("click",(function(){t.classList.contains("d-block")?(t.classList.remove("d-block"),t.classList.add("d-none")):(t.classList.remove("d-none"),t.classList.add("d-block"))}))})),window.addEventListener("resize",(function(){var e=document.querySelector(".layout-rightside-col");e&&Array.from(document.querySelectorAll(".layout-rightside-btn")).forEach((function(){window.outerWidth<1699||window.outerWidth>3440?e.classList.remove("d-block"):window.outerWidth>1699&&e.classList.add("d-block")}))}));var overlay=document.querySelector(".overlay");overlay&&document.querySelector(".overlay").addEventListener("click",(function(){1==document.querySelector(".layout-rightside-col").classList.contains("d-block")&&document.querySelector(".layout-rightside-col").classList.remove("d-block")}))}var chartNode=document.querySelector("#store-visits-source2");if(chartNode){var options2={series:JSON.parse(chartNode.getAttribute("data-values")),labels:JSON.parse(chartNode.getAttribute("data-labels")),chart:{height:333,type:"donut"},legend:{position:"bottom"},stroke:{show:!1},dataLabels:{dropShadow:{enabled:!1}},colors:JSON.parse(chartNode.getAttribute("data-colors"))},chart2=new ApexCharts(document.querySelector("#store-visits-source2"),options2);chart2.render()}
