PageSourceSearch

https://www.schiebetueren-profi.com/theme/d7a99c6013422574ff9e3a05…-theme.burg-offcanvas-menu.plugin.4e4b9f.js

js schiebetueren-profi.com collected 2026-09-26 06:37:36 UTC 17,379 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[90225],{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!==n},n="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 i(t,e,n){return t.concat(e).map(function(t){return s(t,n)})}function r(t){return Object.keys(t).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[])}function o(t,e){try{return e in t}catch(t){return!1}}function a(t,n,c){(c=c||{}).arrayMerge=c.arrayMerge||i,c.isMergeableObject=c.isMergeableObject||e,c.cloneUnlessOtherwiseSpecified=s;var l,d,u=Array.isArray(n);return u!==Array.isArray(t)?s(n,c):u?c.arrayMerge(t,n,c):(d={},(l=c).isMergeableObject(t)&&r(t).forEach(function(e){d[e]=s(t[e],l)}),r(n).forEach(function(e){(!o(t,e)||Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))&&(o(t,e)&&l.isMergeableObject(n[e])?d[e]=(function(t,e){if(!e.customMerge)return a;var n=e.customMerge(t);return"function"==typeof n?n:a})(e,l)(t[e],n[e],l):d[e]=s(n[e],l))}),d)}a.all=function(t,e){if(!Array.isArray(t))throw Error("first argument should be an array");return t.reduce(function(t,n){return a(t,n,e)},{})},t.exports=a},225:(t,e,n)=>{n.r(e),n.d(e,{default:()=>d});var s=n(363),i=n(107),r=n(62),o=n(568),a=n(49),c=n(266);class l extends o.Z{init(){this._cache={},this._client=new i.Z,this._content=s.Z.getTemplate(),this.options.tiggerEvent!==this.options.triggerEvent&&(this.options.triggerEvent=this.options.tiggerEvent),this._registerEvents()}_registerEvents(){if(this.el.removeEventListener(this.options.triggerEvent,this._getLinkEventHandler.bind(this)),this.el.addEventListener(this.options.triggerEvent,this._getLinkEventHandler.bind(this)),r.Z.exists()){let t=r.Z.getOffCanvas();c.Z.iterate(t,t=>{let e=t.querySelectorAll(this.options.linkSelector);c.Z.iterate(e,t=>{l._resetLoader(t),t.addEventListener("click",e=>{this._getLinkEventHandler(e,t)})})})}}_openMenu(t){l._stopEvent(t),r.Z.open(this._content,this._registerEvents.bind(this),this.options.position),r.Z.setAdditionalClassName(this.options.additionalOffcanvasClass),this.$emitter.publish("openMenu")}_getLinkEventHandler(t,e){if(!e){let e=document.querySelector(this.options.initialContentSelector),n="".concat(this.options.navigationUrl,"?navigationId=").concat(window.activeNavigationId);return this._fetchMenu(n,n=>(a.Z.querySelector(e,this.options.menuSelector).innerHTML=n,this._content=e.innerHTML,this._openMenu(t)))}if(l._stopEvent(t),e.classList.contains(this.options.linkLoadingClass))return;l._setLoader(e);let n=a.Z.getAttribute(e,"data-href",!1)||a.Z.getAttribute(e,"href",!1);n&&(this.$emitter.publish("getLinkEventHandler"),this._fetchMenu(n,this._updateContent.bind(this)))}static _setLoader(t){t.classList.add(this.options.linkLoadingClass);let e=t.querySelector(this.options.loadingIconSelector);e&&(e._linkIcon=e.innerHTML,e.innerHTML=s.Z.getTemplate())}static _resetLoader(t){t.classList.remove(this.options.linkLoadingClass);let e=t.querySelector(this.options.loadingIconSelector);e&&e._linkIcon&&(e.innerHTML=e._linkIcon)}_updateContent(t){if(this._content=t,r.Z.exists()){let e=l._getOffcanvasMenu();e.innerHTML=t;let n=e.querySelector(this.options.currentCategorySelector);window.focusHandler.setFocus(n,{focusVisible:!0}),this._registerEvents()}this.$emitter.publish("updateContent")}_fetchMenu(t,e){return!!t&&(this._cache[t]&&"function"==typeof e?e(this._cache[t]):void(this.$emitter.publish("beforeFetchMenu"),this._client.get(t,n=>{this._cache[t]=n,"function"==typeof e&&e(n)})))}static _stopEvent(t){t.preventDefault(),t.stopImmediatePropagation()}static _getOffcanvas(){return r.Z.getOffCanvas()[0]}static _getOffcanvasMenu(){return l._getOffcanvas().querySelector(this.options.menuSelector)}}l.options={navigationUrl:window.router["frontend.menu.offcanvas"],position:"left",tiggerEvent:"click",triggerEvent:"click",additionalOffcanvasClass:"navigation-offcanvas",linkSelector:".js-navigation-offcanvas-link",loadingIconSelector:".js-navigation-offcanvas-loading-icon",linkLoadingClass:"is-loading",menuSelector:".navigation-offcanvas-container",initialContentSelector:".js-navigation-offcanvas-initial-content",currentCategorySelector:"a.is-current-category"};class d extends l{init(){this._cache={},this._client=new i.Z,this._content=s.Z.getTemplate(),this._registerEvents(),document.addEventListener("click",function(t){t.target&&t.target.classList.contains("offcanvas-backdrop")&&document.querySelector("body.js--offcanvas-menu--open")&&document.querySelector("body").classList.remove("js--offcanvas-menu--open")})}_openMenu(t){l._stopEvent(t),document.querySelector("body").classList.contains("js--offcanvas-menu--open")?(r.Z.close(),document.querySelector("body").classList.remove("js--offcanvas-menu--open")):(r.Z.open(this._content,this._registerEvents.bind(this),this.options.position),r.Z.setAdditionalClassName(this.options.additionalOffcanvasClass),document.querySelector("body").classList.add("js--offcanvas-menu--open")),document.body.classList.contains("search-open")&&document.body.classList.remove("search-open"),this.$emitter.publish("openMenu")}}},49:(t,e,n)=>{n.d(e,{Z:()=>i});var s=n(140);
1class i{static isNode(t){return"object"==typeof t&&null!==t&&(t===document||t===window||t instanceof Node)}static hasAttribute(t,e){if(!i.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 n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(n&&!1===i.hasAttribute(t,e))throw Error('The required property "'.concat(e,'" does not exist!'));if("function"!=typeof t.getAttribute){if(n)throw Error("This node doesn't support the getAttribute function!");return}return t.getAttribute(e)}static getDataAttribute(t,e){let n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],r=e.replace(/^data(|-)/,""),o=s.Z.toLowerCamelCase(r,"-");if(!i.isNode(t)){if(n)throw Error("The passed node is not a valid HTML Node!");return}if(void 0===t.dataset){if(n)throw Error("This node doesn't support the dataset attribute!");return}let a=t.dataset[o];if(void 0===a){if(n)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 n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(n&&!i.isNode(t))throw Error("The parent node is not a valid HTML Node!");let s=t.querySelector(e)||!1;if(n&&!1===s)throw Error('The required element "'.concat(e,'" does not exist in parent node!'));return s}static querySelectorAll(t,e){let n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(n&&!i.isNode(t))throw Error("The parent node is not a valid HTML Node!");let s=t.querySelectorAll(e);if(0===s.length&&(s=!1),n&&!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([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]}}},830:(t,e,n)=>{n.d(e,{Z:()=>s});class s{publish(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=new CustomEvent(t,{detail:e,cancelable:n});return this.el.dispatchEvent(s),s}subscribe(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=this,i=t.split("."),r=n.scope?e.bind(n.scope):e;if(n.once&&!0===n.once){let e=r;r=function(n){s.unsubscribe(t),e(n)}}return this.el.addEventListener(i[0],r),this.listeners.push({splitEventName:i,opts:n,cb:r}),!0}unsubscribe(t){let e=t.split(".");return this.listeners=this.listeners.reduce((t,n)=>([...n.splitEventName].sort().toString()===e.sort().toString()?this.el.removeEventListener(n.splitEventName[0],n.cb):t.push(n),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=[]}}},266:(t,e,n)=>{n.d(e,{Z:()=>s});class s{static iterate(t,e){if(t instanceof Map||Array.isArray(t))return t.forEach(e);if(t instanceof FormData){for(var n of t.entries())e(n[1],n[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(n=>{e(t[n],n)});throw Error("The element type ".concat(typeof t," is not iterable!"))}}},140:(t,e,n)=>{n.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 n=s.toUpperCamelCase(t,e);return s.lcFirst(n)}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()}}}},568:(t,e,n)=>{n.d(e,{Z:()=>c});var s=n(857),i=n.n(s),r=n(49),o=n(140),a=n(830);
1class c{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=o.Z.toDashCase(this._pluginName),n=r.Z.getDataAttribute(this.el,"data-".concat(e,"-config"),!1),s=r.Z.getAttribute(this.el,"data-".concat(e,"-options"),!1),a=[this.constructor.options,this.options,t];n&&a.push(window.PluginConfigManager.get(this._pluginName,n));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 i().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={},n=!1){if(!r.Z.isNode(t))throw Error("There is no valid element given.");this.el=t,this.$emitter=new a.Z(this.el),this._pluginName=this._getPluginName(n),this.options=this._mergeOptions(e),this._initialized=!1,this._registerInstance(),this._init()}}},62:(t,e,n)=>{n.d(e,{Z:()=>c,r:()=>a});var s=n(830),i=n(266);let r="js-offcanvas-singleton";class o{open(t,e,n,s,i,r,o){this._removeExistingOffCanvas();let a=this._createOffCanvas(n,r,o,s);this.setContent(t,i),this._openOffcanvas(a,e)}setContent(t,e){let n=this.getOffCanvas();n[0]&&(n[0].innerHTML=t,this._registerEvents(e),this._setAriaAttrs())}setAdditionalClassName(t){this.getOffCanvas()[0].classList.add(t)}getOffCanvas(){return document.querySelectorAll(".".concat(r))}close(t){let e=this.getOffCanvas();i.Z.iterate(e,t=>{bootstrap.Offcanvas.getInstance(t).hide()}),setTimeout(()=>{this.$emitter.publish("onCloseOffcanvas",{offCanvasContent:e})},t)}goBackInHistory(){window.history.back()}exists(){return this.getOffCanvas().length>0}_openOffcanvas(t,e){window.focusHandler.saveFocusState("offcanvas"),o.bsOffcanvas.show(),window.history.pushState("offcanvas-open",""),"function"==typeof e&&e()}_registerEvents(t){let e=this.getOffCanvas();i.Z.iterate(e,n=>{let s=()=>{setTimeout(()=>{n.remove(),window.focusHandler.resumeFocusState("offcanvas"),this.$emitter.publish("onCloseOffcanvas",{offCanvasContent:e})},t),n.removeEventListener("hide.bs.offcanvas",s)};n.addEventListener("hide.bs.offcanvas",s)}),window.addEventListener("popstate",this.close.bind(this,t),{once:!0});let n=document.querySelectorAll(".".concat("js-offcanvas-close"));i.Z.iterate(n,e=>e.addEventListener("click",this.close.bind(this,t)))}_setAriaAttrs(){let t=this.getOffCanvas()[0],e="off-canvas-headline",n=t.querySelector('[data-id="'.concat(e,'"]'));n&&!t.hasAttribute("aria-labelledby")&&(n.setAttribute("id",e),t.setAttribute("aria-labelledby",e))}_removeExistingOffCanvas(){o.bsOffcanvas=null;let t=this.getOffCanvas();return i.Z.iterate(t,t=>t.remove())}_getPositionClass(t){return"left"===t?"offcanvas-start":"right"===t?"offcanvas-end":"offcanvas-".concat(t)}_createOffCanvas(t,e,n,s){let i=document.createElement("div");if(i.classList.add("offcanvas",r),i.classList.add(this._getPositionClass(t)),i.setAttribute("tabindex","-1"),!0===e&&i.classList.add("is-fullwidth"),n){let t=typeof n;if("string"===t)i.classList.add(n);else if(Array.isArray(n))n.forEach(t=>{i.classList.add(t)});else throw Error('The type "'.concat(t,'" is not supported. Please pass an array or a string.'))}return document.body.appendChild(i),o.bsOffcanvas=new bootstrap.Offcanvas(i,{backdrop:!1!==s||"static"}),i}constructor(){this.$emitter=new s.Z}}let a=Object.freeze(new o);class c{static open(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"left",s=!(arguments.length>3)||void 0===arguments[3]||arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,r=arguments.length>5&&void 0!==arguments[5]&&arguments[5],o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"";a.open(t,e,n,s,i,r,o)}static setContent(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:350;a.setContent(t,e,n)}static setAdditionalClassName(t){a.setAdditionalClassName(t)}static close(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:350;a.close(t)}static exists(){return a.exists()}static getOffCanvas(){return a.getOffCanvas()}static REMOVE_OFF_CANVAS_DELAY(){return 350}}},107:(t,e,n)=>{n.d(e,{Z:()=>s});class s{get(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"application/json",s=this._createPreparedRequest("GET",t,n);return this._sendRequest(s,null,e)}post(t,e,n){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/json";s=this._getContentType(e,s);let i=this._createPreparedRequest("POST",t,s);return this._sendRequest(i,e,n)}delete(t,e,n){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/json";s=this._getContentType(e,s);let i=this._createPreparedRequest("DELETE",t,s);return this._sendRequest(i,e,n)}patch(t,e,n){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/json";s=this._getContentType(e,s);let i=this._createPreparedRequest("PATCH",t,s);return this._sendRequest(i,e,n)}
1abort(){if(this._request)return this._request.abort()}setErrorHandlingInternal(t){this._errorHandlingInternal=t}_registerOnLoaded(t,e){e&&(!0===this._errorHandlingInternal?(t.addEventListener("load",()=>{e(t.responseText,t)}),t.addEventListener("abort",()=>{console.warn("the request to ".concat(t.responseURL," was aborted"))}),t.addEventListener("error",()=>{console.warn("the request to ".concat(t.responseURL," failed with status ").concat(t.status))}),t.addEventListener("timeout",()=>{console.warn("the request to ".concat(t.responseURL," timed out"))})):t.addEventListener("loadend",()=>{e(t.responseText,t)}))}_sendRequest(t,e,n){return this._registerOnLoaded(t,n),t.send(e),t}_getContentType(t,e){return t instanceof FormData&&(e=!1),e}_createPreparedRequest(t,e,n){return this._request=new XMLHttpRequest,this._request.open(t,e),this._request.setRequestHeader("X-Requested-With","XMLHttpRequest"),n&&this._request.setRequestHeader("Content-type",n),this._request}constructor(){this._request=null,this._errorHandlingInternal=!1}}},363:(t,e,n)=>{n.d(e,{Z:()=>o});var s=n(266);let i="loader",r={BEFORE:"before",INNER:"inner"};class o{create(){if(!this.exists()){if(this.position===r.INNER){this.parent.innerHTML=o.getTemplate();return}this.parent.insertAdjacentHTML(this._getPosition(),o.getTemplate())}}remove(){let t=this.parent.querySelectorAll(".".concat(i));s.Z.iterate(t,t=>t.remove())}exists(){return this.parent.querySelectorAll(".".concat(i)).length>0}_getPosition(){return this.position===r.BEFORE?"afterbegin":"beforeend"}static getTemplate(){return'<div class="'.concat(i,'" role="status">\n                    <span class="').concat("visually-hidden",'">Loading...</span>\n                </div>')}static SELECTOR_CLASS(){return i}constructor(t,e=r.BEFORE){this.parent=t instanceof Element?t:document.body.querySelector(t),this.position=e}}}}]);

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.