1class Notification extends HTMLElement{constructor(){super(),this.paused=!1,this.container=this.querySelector(".snotifyToast"),this.closeBtn=this.querySelector(".snotifyToast__close"),this.container.addEventListener("mouseover",event=>{this.paused=!0,console.log(this.paused)}),this.container.addEventListener("mouseout",event=>{this.paused=!1}),this.closeBtn&&this.closeBtn.addEventListener("click",e=>{e.preventDefault(),this.container.classList.remove("open"),this.querySelector(".snotifyToast__title").innerHTML="",this.querySelector(".snotifyToast__body").innerHTML="",this.container.classList.remove("snotify-warning,snotify-info,snotify-error,snotify-success"),this.querySelector("[data-toast-pr]").removeAttribute("style")})}updateNotification(title,body,options){this.querySelector(".snotifyToast__title").innerHTML=title,this.querySelector(".snotifyToast__body").innerHTML=body,options.type=="error"?this.container.classList.add("snotify-error"):options.type=="warning"?this.container.classList.add("snotify-warning"):options.type=="info"?this.container.classList.add("snotify-info"):options.type=="success"&&this.container.classList.add("snotify-success"),this.container.classList.add("open"),this.manageToggle(options.timeout)}manageToggle(timeout){this.progressBar=this.querySelector("[data-toast-pr]");let unit=parseInt(timeout)/1e3;unit=100/unit;let width=0,interval=setInterval(()=>{this.paused==!1&&(width+=unit,this.progressBar.setAttribute("style",`width: ${width}%`),width>100&&(this.closeBtn.dispatchEvent(new Event("click")),clearInterval(interval)))},1e3)}}customElements.define("custom-notification",Notification),window.notificationEle=document.querySelector("custom-notification"); 2//# sourceMappingURL=/cdn/shop/t/81/assets/custom-notification.js.map?v=150656364909668162171745506175
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.