PageSourceSearch

https://www.secabo.com/theme/ebb834641765d595b10d5ca8cdb00691/js/a…tl-katana-theme.navigation.plugin.8dadba.js

js secabo.com collected 2026-10-02 15:21:41 UTC 4,011 bytes, 8 lines download raw bytes

1"use strict";(self.webpackChunkatl_katana_theme=self.webpackChunkatl_katana_theme||[]).push([[22625],{625(t,e,i){i.r(e),i.d(e,{default:()=>o});var r=i(710);class o extends window.PluginBaseClass{static #t=this.options={mainNavigationMenuListListSelector:".main-navigation-menu-list",navMainSelector:".nav-main"};init(){this.mainNavigationMenuList=r.A.querySelector(this.el,this.options.mainNavigationMenuListListSelector),this.navMain=document.querySelector(this.options.navMainSelector),this.renderNavigation(),window.addEventListener("resize",t=>{this.renderNavigation()})}isOverflown(){return this.mainNavigationMenuList.scrollWidth>this.mainNavigationMenuList.clientWidth}renderNavigation(){this.isOverflown()?(this.el.style.visibility="hidden",this.el.style.order="1",this.navMain.style.display="block"):(this.el.style.removeProperty("visibility"),this.el.style.removeProperty("order"),this.navMain.style.removeProperty("display"))}}},710(t,e,i){i.d(e,{A:()=>o});class r{static ucFirst(t){return t.charAt(0).toUpperCase()+t.slice(1)}static lcFirst(t){return t.charAt(0).toLowerCase()+t.slice(1)}static toDashCase(t){return t.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()}static toLowerCamelCase(t,e){let i=r.toUpperCamelCase(t,e);return r.lcFirst(i)}static toUpperCamelCase(t,e){return e?t.split(e).map(t=>r.ucFirst(t.toLowerCase())).join(""):r.ucFirst(t.toLowerCase())}static parsePrimitive(t){try{return/^\d+(.|,)\d+$/.test(t)&&(t=t.replace(",",".")),JSON.parse(t)}catch(e){return t.toString()}}}class o{static isNode(t){return"object"==typeof t&&null!==t&&(t===document||t===window||t instanceof Node)}static hasAttribute(t,e){if(!o.isNode(t))throw Error("The element must be a valid HTML Node!");return"function"==typeof t.hasAttribute&&t.hasAttribute(e)}static getAttribute(t,e){let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(i&&!1===o.hasAttribute(t,e))throw Error(`The required property "${e}" does not exist!`);if("function"!=typeof t.getAttribute){if(i)throw Error("This node doesn't support the getAttribute function!");return}return t.getAttribute(e)}static getDataAttribute(t,e){let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],n=e.replace(/^data(|-)/,""),a=r.toLowerCamelCase(n,"-");if(!o.isNode(t)){if(i)throw Error("The passed node is not a valid HTML Node!");return}if(void 0===t.dataset){if(i)throw Error("This node doesn't support the dataset attribute!");return}let s=t.dataset[a];if(void 0===s){if(i)throw Error(`The required data attribute "${e}" does not exist on ${t}!`);return s}return r.parsePrimitive(s)}static querySelector(t,e){let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(i&&!o.isNode(t))throw Error("The parent node is not a valid HTML Node!");let r=t.querySelector(e)||!1;if(i&&!1===r)throw Error(`The required element "${e}" does not exist in parent node!`);return r}static querySelectorAll(t,e){let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(i&&!o.isNode(t))throw Error("The parent node is not a valid HTML Node!");let r=t.querySelectorAll(e);if(0===r.length&&(r=!1),i&&!1===r)throw Error(`At least one item of "${e}" must exist in parent node!`);return r}static getFocusableElements(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body,e=`
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 t.querySelectorAll(e)}static getFirstFocusableElement(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return this.getFocusableElements(t)[0]}static getLastFocusableElement(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,e=this.getFocusableElements(t);return e[e.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.