1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([["NdsBannerHelper"],{645:(e,t,n)=>{n.r(t),n.d(t,{default:()=>a});class a extends window.PluginBaseClass{init(){let e=localStorage.getItem("nds-closed-banner"),t=document.getElementsByClassName("nds-banner"),n=[],a=e?JSON.parse(e):[];for(let e of t){let t=e.querySelector(".nds-banner-close");if(void 0!==e.dataset.closable&&a.includes(e.dataset.ident)){e.style.display="none";continue}t&&t.addEventListener("click",function(){e.remove(),a.push(e.dataset.ident),localStorage.setItem("nds-closed-banner",JSON.stringify(a))});let s=e.querySelector(".discount-code");if(s&&s.addEventListener("click",function(e){e.stopPropagation(),navigator.clipboard.writeText(s.dataset.discountCode).then(()=>{s.classList.add("clicked"),setTimeout(()=>{s.classList.remove("clicked")},1e3)})}),e.dataset.start||e.dataset.end){let t=window.setInterval(()=>{!function(e,t){let a=new Date;if(e.dataset.end&&Date.parse(e.dataset.end).valueOf()-a<=0){let a=n.findIndex(e=>e.bannerIdent===t);clearInterval(n[a].timerId),n=n.filter(e=>e.bannerIdent!==t),e.remove()}}(e,e.dataset.ident)},5e3);n.push({bannerIdent:e.dataset.ident,timerId:t})}}}}}}]);
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.