1(self.webpackChunknodebb=self.webpackChunknodebb||[]).push([[31738],{92346(l,f,i){l.exports=i(2853)},2853(l,f,i){"use strict";var h,u;h=[i(91749)],u=(function(S){const m={};let s=null;function y(){const t=new Date;return String(t.getHours()).padStart(2,"0")+":"+String(t.getMinutes()).padStart(2,"0")}function A(t,n){if(t.childElementCount!==n.length){t.textContent="";for(const e of n){const o=document.createElement("span");o.className="fc",o.textContent=e,t.appendChild(o)}return}const c=window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;Array.prototype.forEach.call(t.children,(e,o)=>{const r=n[o];if(e.textContent!==r){if(c){e.textContent=r;return}e.classList.remove("flap"),e.offsetWidth,e.classList.add("flap"),setTimeout(()=>{e.textContent=r},160)}})}function p(){const t=y();document.querySelectorAll('[component="dlh/clock"]').forEach(n=>A(n,t))}function E(t){if(t.scrollWidth<=t.clientWidth+4)return;const n=t.querySelector(".dlh-season-stop.sel")||t.querySelector(".dlh-season-stop.today");if(!n)return;const c=t.getBoundingClientRect(),e=n.getBoundingClientRect();t.scrollTo({left:Math.max(0,t.scrollLeft+(e.left-c.left)-(c.width-e.width)/2),behavior:"auto"})}function C(){s&&(clearInterval(s),s=null);const t=document.querySelector('[component="dlh/season/stops"]'),n=document.querySelector('[component="dlh/clock"]');!t&&!n||(n&&(p(),s=setInterval(p,2e4)),t&&(t.addEventListener("click",c=>{const e=c.target.closest("button.dlh-season-stop");if(!e)return;t.querySelectorAll(".dlh-season-stop").forEach(a=>{const d=a===e;a.classList.toggle("sel",d),a.setAttribute("aria-pressed",d?"true":"false");const g=a.querySelector(".slot");g&&(g.innerHTML=d?'<span class="dlh-art fl '+a.getAttribute("data-art")+'" aria-hidden="true"></span>':"")});const o=document.querySelector('[component="dlh/season/art"]'),r=document.querySelector('[component="dlh/season/name"]'),_=document.querySelector('[component="dlh/season/note"]');o&&(o.className="dlh-art dlh-season-art "+e.getAttribute("data-art")),r&&(r.textContent=e.getAttribute("data-name")),_&&(_.textContent=e.getAttribute("data-note"))}),E(t)))}return m.init=function(){S.on("action:ajaxify.end",C),C()},m}).apply(f,h),u!==void 0&&(l.exports=u)}}]);
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.