PageSourceSearch

https://zinkbakken.dk/theme/89fec0e0143898505c6fffd88afa0419/js/ze…rizon.zen-collapse-top-bar.plugin.2d7117.js

js zinkbakken.dk collected 2026-09-26 07:49:32 UTC 8,366 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[13659],{3659:(t,e,o)=>{o.r(e),o.d(e,{default:()=>l});var s=o(1374);class i{setItem(t,e){return this._storage[t]=e}getItem(t){return Object.prototype.hasOwnProperty.call(this._storage,t)?this._storage[t]:null}removeItem(t){return delete this._storage[t]}key(t){return Object.values(this._storage)[t]||null}clear(){return this._storage={}}constructor(){this._storage={}}}class r{_chooseStorage(){return r._isSupported("localStorage")?this._storage=window.localStorage:r._isSupported("sessionStorage")?this._storage=window.sessionStorage:s.Z.isSupported()?this._storage=s.Z:this._storage=new i}static _isSupported(t){try{let e="__storage_test";return window[t].setItem(e,"1"),window[t].removeItem(e),!0}catch(t){return!1}}_validateStorage(){if("function"!=typeof this._storage.setItem)throw Error('The storage must have a "setItem" function');if("function"!=typeof this._storage.getItem)throw Error('The storage must have a "getItem" function');if("function"!=typeof this._storage.removeItem)throw Error('The storage must have a "removeItem" function');if("function"!=typeof this._storage.key)throw Error('The storage must have a "key" function');if("function"!=typeof this._storage.clear)throw Error('The storage must have a "clear" function')}getStorage(){return this._storage}constructor(){this._storage=null,this._chooseStorage(),this._validateStorage()}}let a=Object.freeze(new r).getStorage();var n=o(4049);class l extends window.PluginBaseClass{init(){let t=this.options;this._collapseTarget=n.Z.querySelector(document,t.collapseTarget),this._tooltip=bootstrap.Tooltip.getInstance(this.el.parentNode),new bootstrap.Collapse(t.collapseTarget,{toggle:!1}),this._bsCollapseToggle=bootstrap.Collapse.getInstance(t.collapseTarget),this._bsCollapseToggle&&(this._registerEvents(),this._checkStorage())}_registerEvents(){let t=this.options;this._collapseTarget.addEventListener("hide.bs.collapse",()=>{var e,o;(o=window.focusHandler)===null||void 0===o||(e=o.resumeFocusState)===null||void 0===e||e.call(o,"collapse-top-bar"),a.setItem("zenCollapseTopBar","hidden-"+t.id),document.body.classList.remove(t.activeClass),this._tooltip&&this._tooltip.setContent({".tooltip-inner":t.showTopBarText}),this.el.setAttribute("aria-label",t.showTopBarText)}),this._collapseTarget.addEventListener("show.bs.collapse",()=>{var e,o;(o=window.focusHandler)===null||void 0===o||(e=o.saveFocusState)===null||void 0===e||e.call(o,"collapse-top-bar"),a.setItem("zenCollapseTopBar","shown-"+t.id),document.body.classList.add(t.activeClass),this._tooltip&&this._tooltip.setContent({".tooltip-inner":t.hideTopBarText}),this.el.setAttribute("aria-label",t.hideTopBarText)}),this._collapseTarget.addEventListener("shown.bs.collapse",t=>{this.isInitalShow||this._focusFirstElement(),this.isInitalShow=!1}),this._collapseTarget.addEventListener("keydown",t=>{("Escape"===t.code||27===t.keyCode)&&this._bsCollapseToggle.hide()})}_focusFirstElement(){var t,e;(e=window.focusHandler)===null||void 0===e||(t=e.setFocus)===null||void 0===t||t.call(e,this._collapseTarget,{preventScroll:!1,focusVisible:!1})}_checkStorage(){let t=this.options,e=a.getItem("zenCollapseTopBar");e==="shown-"+t.id?(this.isInitalShow=!0,this._show(),document.body.classList.add(t.activeClass),this._tooltip&&this._tooltip.setContent({".tooltip-inner":t.hideTopBarText})):e==="hidden-"+t.id?(this._hide(),document.body.classList.remove(t.activeClass),this._tooltip&&this._tooltip.setContent({".tooltip-inner":t.showTopBarText})):"collapsible"!==t.type?(this._hide(),document.body.classList.remove(t.activeClass),this._tooltip&&this._tooltip.setContent({".tooltip-inner":t.showTopBarText})):"collapsible"===t.type&&(document.body.classList.add(t.activeClass),this._tooltip&&this._tooltip.setContent({".tooltip-inner":t.hideTopBarText}))}_show(){let t=this.options;this._collapseTarget.classList.add(t.noTransitionClass),this._bsCollapseToggle.show(),this._collapseTarget.offsetHeight,this._collapseTarget.classList.remove(t.noTransitionClass)}_hide(){let t=this.options;this._collapseTarget.classList.add(t.noTransitionClass),this._bsCollapseToggle.hide(),this._collapseTarget.offsetHeight,this._collapseTarget.classList.remove(t.noTransitionClass)}}
1l.options={id:null,type:"collapsible",collapseTarget:"#topBarCollapse",activeClass:"js-top-bar-open",showTopBarText:"",hideTopBarText:"",noTransitionClass:"js-no-transition"}},4049:(t,e,o)=>{o.d(e,{Z:()=>i});var s=o(5140);class 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 o=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(o&&!1===i.hasAttribute(t,e))throw Error('The required property "'.concat(e,'" does not exist!'));if("function"!=typeof t.getAttribute){if(o)throw Error("This node doesn't support the getAttribute function!");return}return t.getAttribute(e)}static getDataAttribute(t,e){let o=!(arguments.length>2)||void 0===arguments[2]||arguments[2],r=e.replace(/^data(|-)/,""),a=s.Z.toLowerCamelCase(r,"-");if(!i.isNode(t)){if(o)throw Error("The passed node is not a valid HTML Node!");return}if(void 0===t.dataset){if(o)throw Error("This node doesn't support the dataset attribute!");return}let n=t.dataset[a];if(void 0===n){if(o)throw Error('The required data attribute "'.concat(e,'" does not exist on ').concat(t,"!"));return n}return s.Z.parsePrimitive(n)}static querySelector(t,e){let o=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(o&&!i.isNode(t))throw Error("The parent node is not a valid HTML Node!");let s=t.querySelector(e)||!1;if(o&&!1===s)throw Error('The required element "'.concat(e,'" does not exist in parent node!'));return s}static querySelectorAll(t,e){let o=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(o&&!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),o&&!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]}}},1374:(t,e,o)=>{o.d(e,{Z:()=>s});class s{static isSupported(){return"undefined"!==document.cookie}static setItem(t,e,o){if(null==t)throw Error("You must specify a key to set a cookie");let s=new Date;s.setTime(s.getTime()+864e5*o);let i="";"https:"===location.protocol&&(i="secure"),document.cookie="".concat(t,"=").concat(e,";expires=").concat(s.toUTCString(),";path=/;sameSite=lax;").concat(i)}static getItem(t){if(!t)return!1;let e=t+"=",o=document.cookie.split(";");for(let t=0;t<o.length;t++){let s=o[t];for(;" "===s.charAt(0);)s=s.substring(1);if(0===s.indexOf(e))return s.substring(e.length,s.length)}return!1}static removeItem(t){document.cookie="".concat(t,"= ; expires = Thu, 01 Jan 1970 00:00:00 GMT;path=/")}static key(){return""}static clear(){}}},5140:(t,e,o)=>{o.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 o=s.toUpperCamelCase(t,e);return s.lcFirst(o)}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()}}}}}]);

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.