1"use strict";(self.webpackChunklautsprecher_teufel=self.webpackChunklautsprecher_teufel||[]).push([[7206],{50622:(e,t,s)=>{s.r(t),s.d(t,{default:()=>r});var i=s(57142);class r extends i.A{constructor(){super(...arguments),this.getClosest=function(e,t){for(;e&&e!==document;e=e.parentNode)if(e.matches(t))return e}}readyCallback(){this.triggers=Array.from(document.querySelectorAll(this.triggerSelector)),this.mapEvents()}mapEvents(){this.triggers.forEach(e=>{var t=this.triggerHandler.bind(this,e);["click","keypress"].forEach(s=>e.addEventListener(s,t))})}addSubContentListeners(e,t){e.addEventListener("show",this.adjustHeight.bind(this,e,t)),e.addEventListener("hide",this.adjustHeight.bind(this,e,t))}removeSubContentListeners(e){e.removeEventListener("show",this.adjustHeight),e.removeEventListener("hide",this.adjustHeight)}triggerHandler(e){var t=e.getAttribute("data-level"),s=e.querySelector("input");e.hasAttribute("data-preserve-selection")&&s.checked||this.triggers.forEach(i=>{if(i===e){var r=document.querySelector(e.getAttribute("data-toggle-target")),a=this.getClosest(e,".navigation-multilevel-node-mobile__menu");r&&(e.classList.toggle(this.activeClass),this.toggleAttributes(r),this.setHeight(r,a),s&&this.toggleRadioInputStyles("show",s))}else{var l=document.querySelector(i.getAttribute("data-toggle-target")),g=i.getAttribute("data-level"),h=i.querySelector("input");l&&g===t&&(i.classList.remove(this.activeClass),l.setAttribute("aria-expanded","false"),l.style.maxHeight="0",h&&this.toggleRadioInputStyles("hide",h))}})}setHeight(e,t){e.style.maxHeight&&"0px"!==e.style.maxHeight?(this.removeSubContentListeners(e),e.style.maxHeight="0"):(this.addSubContentListeners(e,t),void 0!==t&&t.scrollHeight>0?(t.style.maxHeight=t.scrollHeight+e.scrollHeight+"px",e.style.maxHeight=e.scrollHeight+"px"):e.style.maxHeight=e.scrollHeight+"px")}adjustHeight(e){e.style.maxHeight=e.scrollHeight+"px"}toggleRadioInputStyles(e,t){var s=t;"show"===e&&(!1===s.checked?s.checked=!0:!0===s.checked&&(s.checked=!1)),s&&"hide"===e&&(s=!0!==s.checked||(s.checked=!1))}toggleAttributes(e){var t=e.attributes;t&&("true"===t["aria-expanded"].value?e.setAttribute("aria-expanded","false"):e.setAttribute("aria-expanded","true"))}get triggerSelector(){return this.getAttribute("trigger-class-name")}get toggleClass(){return this.getAttribute("class-to-toggle")}get activeClass(){return this.getAttribute("active-class")}}}}]);
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.