PageSourceSearch

https://www.tischdecke.de/theme/66a3d015cc8d7a343901c498b2a9e9e6/j…katana-theme.search-toggle.plugin.c37c0d.js

js tischdecke.de collected 2026-10-05 03:03:07 UTC 4,178 bytes, 8 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[93432],{432:(e,t,r)=>{r.r(t),r.d(t,{default:()=>o});var s=r(710);class o extends window.PluginBaseClass{init(){this.openSearchButtons=s.A.querySelectorAll(this.el,".js-search-toggle-btn"),this.closeSearchButton=s.A.querySelector(this.el,".close-search-js"),this.searchOverlay=s.A.querySelector(this.el,".search-overlay-js"),this.searchInput=s.A.querySelector(this.el,".search-overlay .header-search-input"),this.body=document.querySelector("body"),this._registerEvents()}_registerEvents(){this.openSearchButtons.forEach(e=>{e.addEventListener("click",this.openSearchOverlay.bind(this))}),this.closeSearchButton.addEventListener("click",this.closeSearchOverlay.bind(this))}openSearchOverlay(){this.body.classList.add("stop-scrolling"),this.searchOverlay.classList.remove("d-none"),setTimeout(()=>{this.searchOverlay.classList.add("open")}),this.searchInput.focus()}closeSearchOverlay(){this.body.classList.remove("stop-scrolling"),this.searchOverlay.classList.remove("open"),setTimeout(()=>{this.searchOverlay.classList.add("d-none")},350)}}},710:(e,t,r)=>{r.d(t,{A:()=>o});class s{static ucFirst(e){return e.charAt(0).toUpperCase()+e.slice(1)}static lcFirst(e){return e.charAt(0).toLowerCase()+e.slice(1)}static toDashCase(e){return e.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()}static toLowerCamelCase(e,t){let r=s.toUpperCamelCase(e,t);return s.lcFirst(r)}static toUpperCamelCase(e,t){return t?e.split(t).map(e=>s.ucFirst(e.toLowerCase())).join(""):s.ucFirst(e.toLowerCase())}static parsePrimitive(e){try{return/^\d+(.|,)\d+$/.test(e)&&(e=e.replace(",",".")),JSON.parse(e)}catch(t){return e.toString()}}}class o{static isNode(e){return"object"==typeof e&&null!==e&&(e===document||e===window||e instanceof Node)}static hasAttribute(e,t){if(!o.isNode(e))throw Error("The element must be a valid HTML Node!");return"function"==typeof e.hasAttribute&&e.hasAttribute(t)}static getAttribute(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(r&&!1===o.hasAttribute(e,t))throw Error(`The required property "${t}" does not exist!`);if("function"!=typeof e.getAttribute){if(r)throw Error("This node doesn't support the getAttribute function!");return}return e.getAttribute(t)}static getDataAttribute(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2],i=t.replace(/^data(|-)/,""),a=s.toLowerCamelCase(i,"-");if(!o.isNode(e)){if(r)throw Error("The passed node is not a valid HTML Node!");return}if(void 0===e.dataset){if(r)throw Error("This node doesn't support the dataset attribute!");return}let n=e.dataset[a];if(void 0===n){if(r)throw Error(`The required data attribute "${t}" does not exist on ${e}!`);return n}return s.parsePrimitive(n)}static querySelector(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(r&&!o.isNode(e))throw Error("The parent node is not a valid HTML Node!");let s=e.querySelector(t)||!1;if(r&&!1===s)throw Error(`The required element "${t}" does not exist in parent node!`);return s}static querySelectorAll(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(r&&!o.isNode(e))throw Error("The parent node is not a valid HTML Node!");let s=e.querySelectorAll(t);if(0===s.length&&(s=!1),r&&!1===s)throw Error(`At least one item of "${t}" must exist in parent node!`);return s}static getFocusableElements(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body,t=`
2            input:not([tabindex^="-"]):not([disabled]):not([type="hidden"]),
3            select:not([tabindex^="-"]):not([disabled]),
4            textarea:not([tabindex^="-"]):not([disabled]),
5            button:not([tabindex^="-"]):not([disabled]),
6            a[href]:not([tabindex^="-"]):not([disabled]),
7            [tabindex]:not([tabindex^="-"]):not([disabled])
8        `;return e.querySelectorAll(t)}static getFirstFocusableElement(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return this.getFocusableElements(e)[0]}static getLastFocusableElement(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=this.getFocusableElements(e);return t[t.length-1]}}}}]);

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.