PageSourceSearch

https://www.siku.de/theme/90cb1092fdf35b49884e707d0a60130d/js/stor…/storefront.remote-click.plugin.2702d7.js

js siku.de collected 2026-09-24 11:28:37 UTC 1,278 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[70541],{541(e,t,s){s.r(t),s.d(t,{default:()=>l});var o=s(4335),i=s(640);class l extends o.A{static #e=this.options={selector:!1,scrollToElement:!0,scrollOffset:15,fixedHeaderSelector:"header.fixed-top",excludedViewports:[]};init(){if(!this.options.selector)throw Error('The option "selector" must be given!');this._registerEvents()}_registerEvents(){this.el.addEventListener("click",this._onClick.bind(this))}_onClick(){if(!this._isInAllowedViewports())return;let e=this.options.selector;this.options.selector instanceof HTMLElement||(e=document.querySelector(this.options.selector)),this.options.scrollToElement&&this._scrollToElement(e);let t=null;document.createEvent?(t=document.createEvent("MouseEvents")).initEvent("click",!0,!0):t=new MouseEvent("click",{target:e}),e.dispatchEvent(t),this.$emitter.publish("onClick")}_scrollToElement(e){let t=this._getOffset(e);window.scrollTo({top:t,behavior:"smooth"})}_getOffset(e){let t=e.getBoundingClientRect().top+window.scrollY-this.options.scrollOffset,s=document.querySelector(this.options.fixedHeaderSelector);return s&&(t-=s.getBoundingClientRect().height),t}_isInAllowedViewports(){return!this.options.excludedViewports.includes(i.A.getCurrentViewport())}}}}]);

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.