PageSourceSearch

https://zinkbakken.dk/theme/89fec0e0143898505c6fffd88afa0419/js/ze…horizon.zen-offcanvas-menu.plugin.7364e2.js

js zinkbakken.dk collected 2026-09-26 07:50:06 UTC 8,569 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[82734],{1857: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 i(t,e){return!1!==e.clone&&e.isMergeableObject(t)?a(Array.isArray(t)?[]:{},t,e):t}function r(t,e,n){return t.concat(e).map(function(t){return i(t,n)})}function s(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,l){(l=l||{}).arrayMerge=l.arrayMerge||r,l.isMergeableObject=l.isMergeableObject||e,l.cloneUnlessOtherwiseSpecified=i;var c,u,h=Array.isArray(n);return h!==Array.isArray(t)?i(n,l):h?l.arrayMerge(t,n,l):(u={},(c=l).isMergeableObject(t)&&s(t).forEach(function(e){u[e]=i(t[e],c)}),s(n).forEach(function(e){(!o(t,e)||Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))&&(o(t,e)&&c.isMergeableObject(n[e])?u[e]=(function(t,e){if(!e.customMerge)return a;var n=e.customMerge(t);return"function"==typeof n?n:a})(e,c)(t[e],n[e],c):u[e]=i(n[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,n){return a(t,n,e)},{})},t.exports=a},2734:(t,e,n)=>{n.r(e),n.d(e,{default:()=>r});var i=n(9568);class r extends i.Z{init(){this._registerEvents()}_registerEvents(){this._offcanvasMenuPlugin=window.PluginManager.getPluginInstanceFromElement(this.el,"OffCanvasMenu"),this._offcanvasMenuPlugin&&(this._offcanvasMenuPlugin.$emitter.subscribe("openMenu",this._setHeight.bind(this,this.options.navigationOffcanvasOverlayContentSelector)),this._offcanvasMenuPlugin.$emitter.subscribe("animateForward",this._setHeight.bind(this,this.options.navigationOffcanvasOverlaySelector)),this._offcanvasMenuPlugin.$emitter.subscribe("animateBackward",this._setHeight.bind(this,this.options.navigationOffcanvasPlaceholderSelector)))}_setHeight(t){let e=this._getOffcanvas();if(!e)return;let n=e.querySelector(this.options.navigationOffcanvasContainerSelector);if(!n)return;let i=e.querySelector(t);if(!i)return;let r=i.style.minHeight;i.style.minHeight="0",n.style.minHeight="".concat(i.clientHeight,"px"),i.style.minHeight=r}_getOffcanvas(){return document.querySelectorAll("".concat(this.options.offCanvasSelector,", ").concat(this.options.offCanvasJsSelector))[0]||null}}r.options={navigationOffcanvasContainerSelector:".navigation-offcanvas-container.js-navigation-offcanvas",navigationOffcanvasOverlaySelector:".navigation-offcanvas-overlay",navigationOffcanvasOverlayContentSelector:".navigation-offcanvas-overlay-content",navigationOffcanvasPlaceholderSelector:".navigation-offcanvas-placeholder",offCanvasSelector:".offcanvas",offCanvasJsSelector:".js-offcanvas-singleton"}},4049:(t,e,n)=>{n.d(e,{Z:()=>r});var i=n(5140);class r{static isNode(t){return"object"==typeof t&&null!==t&&(t===document||t===window||t instanceof Node)}static hasAttribute(t,e){if(!r.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===r.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],s=e.replace(/^data(|-)/,""),o=i.Z.toLowerCamelCase(s,"-");if(!r.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 i.Z.parsePrimitive(a)}static querySelector(t,e){let n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(n&&!r.isNode(t))throw Error("The parent node is not a valid HTML Node!");let i=t.querySelector(e)||!1;if(n&&!1===i)throw Error('The required element "'.concat(e,'" does not exist in parent node!'));return i}static querySelectorAll(t,e){let n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(n&&!r.isNode(t))throw Error("The parent node is not a valid HTML Node!");let i=t.querySelectorAll(e);if(0===i.length&&(i=!1),n&&!1===i)throw Error('At least one item of "'.concat(e,'" must exist in parent node!'));return i}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]}}},4830:(t,e,n)=>{n.d(e,{Z:()=>i});class i{publish(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new CustomEvent(t,{detail:e,cancelable:n});return this.el.dispatchEvent(i),i}subscribe(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this,r=t.split("."),s=n.scope?e.bind(n.scope):e;if(n.once&&!0===n.once){let e=s;s=function(n){i.unsubscribe(t),e(n)}}return this.el.addEventListener(r[0],s),this.listeners.push({splitEventName:r,opts:n,cb:s}),!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=[]}}},5140:(t,e,n)=>{n.d(e,{Z:()=>i});class i{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=i.toUpperCamelCase(t,e);return i.lcFirst(n)}static toUpperCamelCase(t,e){return e?t.split(e).map(t=>i.ucFirst(t.toLowerCase())).join(""):i.ucFirst(t.toLowerCase())}static parsePrimitive(t){try{return/^\d+(.|,)\d+$/.test(t)&&(t=t.replace(",",".")),JSON.parse(t)}catch(e){return t.toString()}}}},9568:(t,e,n)=>{n.d(e,{Z:()=>l});var i=n(1857),r=n.n(i),s=n(4049),o=n(5140),a=n(4830);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=o.Z.toDashCase(this._pluginName),n=s.Z.getDataAttribute(this.el,"data-".concat(e,"-config"),!1),i=s.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{i&&a.push(JSON.parse(i))}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 r().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(!s.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()}}}}]);

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.