PageSourceSearch

https://www.brunosoehnle-glashuette.com/theme/fc5d4fcfe8ea466bbca3…on.acris-flyout-navigation.plugin.650b97.js

js brunosoehnle-glashuette.com collected 2026-10-09 17:15:03 UTC 19,237 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[33090],{857:t=>{var e=function(t){var e;return!!t&&"object"==typeof t&&"[object RegExp]"!==(e=Object.prototype.toString.call(t))&&"[object Date]"!==e&&t.$$typeof!==i},i="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function s(t,e){return!1!==e.clone&&e.isMergeableObject(t)?a(Array.isArray(t)?[]:{},t,e):t}function o(t,e,i){return t.concat(e).map(function(t){return s(t,i)})}function n(t){return Object.keys(t).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[])}function r(t,e){try{return e in t}catch(t){return!1}}function a(t,i,l){(l=l||{}).arrayMerge=l.arrayMerge||o,l.isMergeableObject=l.isMergeableObject||e,l.cloneUnlessOtherwiseSpecified=s;var c,u,h=Array.isArray(i);return h!==Array.isArray(t)?s(i,l):h?l.arrayMerge(t,i,l):(u={},(c=l).isMergeableObject(t)&&n(t).forEach(function(e){u[e]=s(t[e],c)}),n(i).forEach(function(e){(!r(t,e)||Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))&&(r(t,e)&&c.isMergeableObject(i[e])?u[e]=(function(t,e){if(!e.customMerge)return a;var i=e.customMerge(t);return"function"==typeof i?i:a})(e,c)(t[e],i[e],c):u[e]=s(i[e],c))}),u)}a.all=function(t,e){if(!Array.isArray(t))throw Error("first argument should be an array");return t.reduce(function(t,i){return a(t,i,e)},{})},t.exports=a}
1,90:(t,e,i)=>{i.r(e),i.d(e,{default:()=>u});var s=i(293),o=i(206),n=i(49);class r{static iterate(t,e){if(t instanceof Map||Array.isArray(t))return t.forEach(e);if(t instanceof FormData){for(var i of t.entries())e(i[1],i[0]);return}if(t instanceof NodeList)return t.forEach(e);if(t instanceof HTMLCollection)return Array.from(t).forEach(e);if(t instanceof Object)return Object.keys(t).forEach(i=>{e(t[i],i)});throw Error("The element type ".concat(typeof t," is not iterable!"))}}let a=Object.freeze(new class{init(t){Object.entries(t).forEach(t=>{let[e,i]=t;this.flags[e]=i})}isActive(t){return!!Object.prototype.hasOwnProperty.call(this.flags,t)&&this.flags[t]}constructor(){this.flags={},window.features&&this.init(window.features)}});class l{static init(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a.init(t)}static isActive(t){return a.isActive(t)}constructor(){window.Feature=this}}class c extends s.Z{init(){this._debouncer=null,this._triggerEls=this.el.querySelectorAll("[".concat(this.options.triggerDataAttribute,"]")),this._closeEls=this.el.querySelectorAll(this.options.closeSelector),this._flyoutEls=this.el.querySelectorAll("[".concat(this.options.flyoutIdDataAttribute,"]")),this._hasOpenedFlyouts=!1,this._registerEvents()}_registerEvents(){let t=o.Z.isTouchDevice()?"touchstart":"click",e=o.Z.isTouchDevice()?"touchstart":"mouseenter",i=o.Z.isTouchDevice()?"touchstart":"mouseleave";document.addEventListener("keydown",t=>{!0===this._hasOpenedFlyouts&&("Escape"===t.code||27===t.keyCode)&&this._debounce(this._closeAllFlyouts)});let s=document.getElementsByTagName("main")[0];s&&s.addEventListener("focusin",()=>{this._debounce(this._closeAllFlyouts)}),r.iterate(this._triggerEls,t=>{let s=n.Z.getDataAttribute(t,this.options.triggerDataAttribute);t.addEventListener(e,this._openFlyoutById.bind(this,s,t)),t.addEventListener("keydown",e=>{("Enter"===e.code||13===e.keyCode)&&(e.preventDefault(),e.stopPropagation(),this._hasOpenedFlyouts?(this._closeAllFlyouts(),this._hasOpenedFlyouts=!1):(this._openFlyoutById(s,t,e),this._hasOpenedFlyouts=!0))}),t.addEventListener(i,()=>this._debounce(this._closeAllFlyouts))}),r.iterate(this._closeEls,e=>{e.addEventListener(t,this._closeAllFlyouts.bind(this))}),o.Z.isTouchDevice()||r.iterate(this._flyoutEls,t=>{t.addEventListener("mousemove",()=>this._clearDebounce()),t.addEventListener("mouseleave",()=>this._debounce(this._closeAllFlyouts))})}_openFlyout(t,e){this._isOpen(e)||(this._closeAllFlyouts(),t.classList.add(this.options.activeCls),e.classList.add(this.options.activeCls),this._hasOpenedFlyouts=!0),this.$emitter.publish("openFlyout")}_closeFlyout(t,e){this._isOpen(e)&&(t.classList.remove(this.options.activeCls),l.isActive("ACCESSIBILITY_TWEAKS")&&(t.classList.add(this.options.hiddenCls),t.style.removeProperty("top")),e.classList.remove(this.options.activeCls),this._hasOpenedFlyouts=!1),this.$emitter.publish("closeFlyout")}_openFlyoutById(t,e,i){let s=this.el.querySelector("[".concat(this.options.flyoutIdDataAttribute,"='").concat(t,"']"));if(s){if(l.isActive("ACCESSIBILITY_TWEAKS")){let t=parseInt(getComputedStyle(e).getPropertyValue("padding-bottom"),10);s.style.top="".concat(this.el.offsetHeight+t,"px"),s.classList.remove(this.options.hiddenCls)}this._debounce(this._openFlyout,s,e)}this._isOpen(e)||c._stopEvent(i),this.$emitter.publish("openFlyoutById")}_closeAllFlyouts(){let t=this.el.querySelectorAll("[".concat(this.options.flyoutIdDataAttribute,"]"));r.iterate(t,t=>{let e=this._retrieveTriggerEl(t);this._closeFlyout(t,e)}),this.$emitter.publish("closeAllFlyouts")}_retrieveTriggerEl(t){let e=n.Z.getDataAttribute(t,this.options.flyoutIdDataAttribute,!1);return this.el.querySelector("[".concat(this.options.triggerDataAttribute,"='").concat(e,"']"))}_isOpen(t){return t.classList.contains(this.options.activeCls)}_debounce(t){for(var e=arguments.length,i=Array(e>1?e-1:0),s=1;s<e;s++)i[s-1]=arguments[s];this._clearDebounce(),this._debouncer=setTimeout(t.bind(this,...i),this.options.debounceTime)}_clearDebounce(){clearTimeout(this._debouncer)}static _stopEvent(t){t&&t.cancelable&&(t.preventDefault(),t.stopImmediatePropagation())}}c.options={debounceTime:125,activeCls:"is-open",hiddenCls:"hidden",closeSelector:".js-close-flyout-menu",mainNavigationId:"mainNavigation",flyoutIdDataAttribute:"data-flyout-menu-id",triggerDataAttribute:"data-flyout-menu-trigger"};
1class u extends c{init(){super.init(),this._keyboardNavigationActive=!1}_registerEvents(){let t=o.Z.isTouchDevice()?"touchstart":"click",e=o.Z.isTouchDevice()?"touchstart":"mouseenter",i=o.Z.isTouchDevice()?"touchstart":"focus",s=o.Z.isTouchDevice()?"touchstart":"focusout",a=o.Z.isTouchDevice()?"touchstart":"mouseleave";document.addEventListener("keydown",t=>{!0===this._hasOpenedFlyouts&&("Escape"===t.key||27===t.keyCode)&&this._debounce(this._closeAllFlyouts)}),r.iterate(this._triggerEls,o=>{let r=n.Z.getDataAttribute(o,this.options.triggerDataAttribute);n.Z.getDataAttribute(o,this.options.openOn,!1)?o.addEventListener(t,this._openFlyoutById.bind(this,r,o)):(o.addEventListener(e,this._openFlyoutById.bind(this,r,o)),o.addEventListener(i,this._openFlyoutById.bind(this,r,o)),o.addEventListener(a,()=>this._debounce(this._closeAllFlyouts)),o.addEventListener(s,t=>{this._keyboardNavigationActive&&this._isFocusInFlyout(t.relatedTarget,r)||this._debounce(this._closeAllFlyouts)})),o.addEventListener("focusin",t=>{if(t.relatedTarget){this._keyboardNavigationActive=!0,this._openFlyoutById(r,o,t);let e=t=>{if("Tab"===t.key&&!t.shiftKey){t.preventDefault();let i=this.el.querySelector("[".concat(this.options.flyoutIdDataAttribute,"='").concat(r,"']"));if(i){let t=i.querySelectorAll('a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])');t.length>0&&t[0].focus()}o.removeEventListener("keydown",e)}};o.addEventListener("keydown",e)}}),o.addEventListener("keydown",t=>{if(("Enter"===t.key||13===t.keyCode)&&(t.preventDefault(),t.stopPropagation(),this._keyboardNavigationActive=!0,this._hasOpenedFlyouts?(this._closeAllFlyouts(),this._hasOpenedFlyouts=!1):(this._openFlyoutById(r,o,t),this._hasOpenedFlyouts=!0,this._setFocusToFirstFlyoutElement(r))),"Tab"===t.key&&!t.shiftKey){let e=this.el.querySelector("[".concat(this.options.flyoutIdDataAttribute,"='").concat(r,"']"));if(e&&e.classList.contains(this.options.activeCls)){let i=e.querySelectorAll('a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])');i.length>0&&(t.preventDefault(),i[0].focus())}}})}),r.iterate(this._closeEls,e=>{e.addEventListener(t,this._closeAllFlyouts.bind(this))}),o.Z.isTouchDevice()||r.iterate(this._flyoutEls,e=>{e.addEventListener("mousemove",()=>this._clearDebounce()),e.addEventListener("focusin",()=>{this._keyboardNavigationActive=!0,this._clearDebounce()}),e.addEventListener("focusout",t=>{this._isFocusInFlyout(t.relatedTarget,n.Z.getDataAttribute(e,this.options.flyoutIdDataAttribute))||(this._keyboardNavigationActive=!1,this._debounce(this._closeAllFlyouts))}),r.iterate(this._triggerEls,i=>{n.Z.getDataAttribute(i,this.options.openOn,!1)?i.addEventListener(t,()=>this._debounce(this._closeAllFlyouts)):e.addEventListener("mouseleave",()=>{this._keyboardNavigationActive||this._debounce(this._closeAllFlyouts)})})})}_openFlyoutById(t,e,i){let s="true"===e.getAttribute("".concat(this.options.openOn)),o="true"===e.getAttribute("".concat(this.options.closeOnClick));if(o&&i.preventDefault(),this._hasOpenedFlyouts){let i=this.el.querySelector(".".concat(this.options.activeCls,"[").concat(this.options.flyoutIdDataAttribute,"]"));if((i?n.Z.getDataAttribute(i,this.options.flyoutIdDataAttribute):null)===t){if(o){this._closeAllFlyouts();return}if(s&&!o&&"A"===e.tagName&&e.href){window.location.href=e.href;return}}this._closeAllFlyouts()}let r=this.el.querySelector("[".concat(this.options.flyoutIdDataAttribute,"='").concat(t,"']"));if(r){if(l.isActive("ACCESSIBILITY_TWEAKS")){let t=parseInt(getComputedStyle(e).getPropertyValue("padding-bottom"),10);r.style.top="".concat(this.el.offsetHeight+t,"px"),r.classList.remove(this.options.hiddenCls)}this._debounce(this._openFlyout,r,e),s&&this._addClickOutsideHandler(r,e),this._isOpen(e)||c._stopEvent(i),this.$emitter.publish("openFlyoutById")}}_addClickOutsideHandler(t,e){let i=s=>{t.contains(s.target)||(t.classList.remove(this.options.activeCls),e.classList.remove(this.options.activeCls),document.removeEventListener("click",i,{passive:!0}))};document.addEventListener("click",i,{passive:!0})}_closeAllFlyouts(){let t=this.el.querySelectorAll("[".concat(this.options.flyoutIdDataAttribute,"]"));r.iterate(t,t=>{let e=this._retrieveTriggerEl(t);this._closeFlyout(t,e)}),this._keyboardNavigationActive=!1,this.$emitter.publish("closeAllFlyouts")}_closeFlyout(t,e){this._isOpen(e)&&(t.classList.remove(this.options.activeCls),l.isActive("ACCESSIBILITY_TWEAKS")&&(t.classList.add(this.options.hiddenCls),t.style.removeProperty("top")),e.classList.remove(this.options.activeCls),this._hasOpenedFlyouts=!1,this._keyboardNavigationActive&&e.focus()),this.$emitter.publish("closeFlyout")}
1_openFlyout(t,e){super._openFlyout(t,e),this.vh(t.clientHeight)<t.dataset.flyoutMenuMaxHeight-1?t.classList.add(this.options.preventScrollClass):t.classList.remove(this.options.preventScrollClass),"flyoutMenuHasMinWidth"in t.dataset&&this.setPosLeft(t,e),this._makeFlyoutElementsTabbable(t),t.setAttribute("tabindex","0")}_makeFlyoutElementsTabbable(t){let e=t.querySelectorAll('a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])'),i=n.Z.getDataAttribute(t,this.options.flyoutIdDataAttribute);r.iterate(e,t=>{"-1"===t.getAttribute("tabindex")&&t.removeAttribute("tabindex"),t.addEventListener("keydown",t=>{"Tab"===t.key&&this._handleTabNavigation(t,i)}),t.addEventListener("focusin",()=>{this._keyboardNavigationActive=!0,this._clearDebounce()})})}vh(t){return t/Math.max(document.documentElement.clientHeight,window.innerHeight||0)*100}setPosLeft(t,e){let i=t.parentElement.getBoundingClientRect().left,s=e.getBoundingClientRect().left;s+t.offsetWidth>window.innerWidth?t.style.right="0":t.style.left=s-i+"px"}_isFocusInFlyout(t,e){if(!t)return!1;let i=this.el.querySelector("[".concat(this.options.flyoutIdDataAttribute,"='").concat(e,"']"));return!!i&&i.contains(t)}_setFocusToFirstFlyoutElement(t){let e=this.el.querySelector("[".concat(this.options.flyoutIdDataAttribute,"='").concat(t,"']"));if(!e)return;let i=e.querySelectorAll('a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])');i.length>0&&setTimeout(()=>{i[0].focus()},100)}_handleTabNavigation(t,e){if("Tab"===t.key){let i=this.el.querySelector("[".concat(this.options.flyoutIdDataAttribute,"='").concat(e,"']"));if(!i)return;let s=Array.from(i.querySelectorAll('a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])'));if(0===s.length)return;let o=s[0],n=s[s.length-1];if(t.shiftKey&&document.activeElement===o||!t.shiftKey&&document.activeElement===n){this._closeAllFlyouts(),this._keyboardNavigationActive=!1;return}this._keyboardNavigationActive=!0,this._clearDebounce()}}}u.options={debounceTime:125,activeCls:"is-open",closeSelector:".js-close-flyout-menu",flyoutIdDataAttribute:"data-flyout-menu-id",triggerDataAttribute:"data-flyout-menu-trigger",openOn:"data-flyout-menu-click",closeOnClick:"data-flyout-menu-click-close",preventScrollClass:"overflow-y-hidden",hiddenCls:"hidden"}},206:(t,e,i)=>{i.d(e,{Z:()=>s});class s{static isTouchDevice(){return"ontouchstart"in document.documentElement}static isIOSDevice(){return s.isIPhoneDevice()||s.isIPadDevice()}static isNativeWindowsBrowser(){return s.isIEBrowser()||s.isEdgeBrowser()}static isIPhoneDevice(){return!!navigator.userAgent.match(/iPhone/i)}static isIPadDevice(){return!!navigator.userAgent.match(/iPad/i)}static isIEBrowser(){return -1!==navigator.userAgent.toLowerCase().indexOf("msie")||!!navigator.userAgent.match(/Trident.*rv:\d+\./)}static isEdgeBrowser(){return!!navigator.userAgent.match(/Edge\/\d+/i)}static getList(){return{"is-touch":s.isTouchDevice(),"is-ios":s.isIOSDevice(),"is-native-windows":s.isNativeWindowsBrowser(),"is-iphone":s.isIPhoneDevice(),"is-ipad":s.isIPadDevice(),"is-ie":s.isIEBrowser(),"is-edge":s.isEdgeBrowser()}}}},49:(t,e,i)=>{i.d(e,{Z:()=>o});var s=i(140);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 "'.concat(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(|-)/,""),r=s.Z.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 a=t.dataset[r];if(void 0===a){if(i)throw Error('The required data attribute "'.concat(e,'" does not exist on ').concat(t,"!"));return a}return s.Z.parsePrimitive(a)}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 s=t.querySelector(e)||!1;if(i&&!1===s)throw Error('The required element "'.concat(e,'" does not exist in parent node!'));return s}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 s=t.querySelectorAll(e);if(0===s.length&&(s=!1),i&&!1===s)throw Error('At least one item of "'.concat(e,'" must exist in parent node!'));return s}static getFocusableElements(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return t.querySelectorAll('\n            input:not([tabindex^="-"]):not([disabled]):not([type="hidden"]),\n            select:not([tabindex^="-"]):not([disabled]),\n            textarea:not([tabindex^="-"]):not([disabled]),\n            button:not([tabindex^="-"]):not([disabled]),\n            a[href]:not([tabindex^="-"]):not([disabled]),\n            [tabindex]:not
1([tabindex^="-"]):not([disabled])\n        ')}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]}}},140:(t,e,i)=>{i.d(e,{Z:()=>s});class s{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=s.toUpperCamelCase(t,e);return s.lcFirst(i)}static toUpperCamelCase(t,e){return e?t.split(e).map(t=>s.ucFirst(t.toLowerCase())).join(""):s.ucFirst(t.toLowerCase())}static parsePrimitive(t){try{return/^\d+(.|,)\d+$/.test(t)&&(t=t.replace(",",".")),JSON.parse(t)}catch(e){return t.toString()}}}},293:(t,e,i)=>{i.d(e,{Z:()=>l});var s=i(857),o=i.n(s),n=i(49),r=i(140);class a{publish(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=new CustomEvent(t,{detail:e,cancelable:i});return this.el.dispatchEvent(s),s}subscribe(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=this,o=t.split("."),n=i.scope?e.bind(i.scope):e;if(i.once&&!0===i.once){let e=n;n=function(i){s.unsubscribe(t),e(i)}}return this.el.addEventListener(o[0],n),this.listeners.push({splitEventName:o,opts:i,cb:n}),!0}unsubscribe(t){let e=t.split(".");return this.listeners=this.listeners.reduce((t,i)=>([...i.splitEventName].sort().toString()===e.sort().toString()?this.el.removeEventListener(i.splitEventName[0],i.cb):t.push(i),t),[]),!0}reset(){return this.listeners.forEach(t=>{this.el.removeEventListener(t.splitEventName[0],t.cb)}),this.listeners=[],!0}get el(){return this._el}set el(t){this._el=t}get listeners(){return this._listeners}set listeners(t){this._listeners=t}constructor(t=document){this._el=t,t.$emitter=this,this._listeners=[]}}class l{init(){throw Error('The "init" method for the plugin "'.concat(this._pluginName,'" is not defined.'))}update(){}_init(){this._initialized||(this.init(),this._initialized=!0)}_update(){this._initialized&&this.update()}_mergeOptions(t){let e=r.Z.toDashCase(this._pluginName),i=n.Z.getDataAttribute(this.el,"data-".concat(e,"-config"),!1),s=n.Z.getAttribute(this.el,"data-".concat(e,"-options"),!1),a=[this.constructor.options,this.options,t];i&&a.push(window.PluginConfigManager.get(this._pluginName,i));try{s&&a.push(JSON.parse(s))}catch(t){throw console.error(this.el),Error('The data attribute "data-'.concat(e,'-options" could not be parsed to json: ').concat(t.message))}return o().all(a.filter(t=>t instanceof Object&&!(t instanceof Array)).map(t=>t||{}))}_registerInstance(){window.PluginManager.getPluginInstancesFromElement(this.el).set(this._pluginName,this),window.PluginManager.getPlugin(this._pluginName,!1).get("instances").push(this)}_getPluginName(t){return t||(t=this.constructor.name),t}constructor(t,e={},i=!1){if(!n.Z.isNode(t))throw Error("There is no valid element given.");this.el=t,this.$emitter=new a(this.el),this._pluginName=this._getPluginName(i),this.options=this._mergeOptions(e),this._initialized=!1,this._registerInstance(),this._init()}}}}]);

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.