PageSourceSearch

https://www.iused.nl/theme/160f7872c259ac5c593b75d21f9582c5/js/zen…ox.floating-buybox-toggler.plugin.073364.js

js iused.nl collected 2026-10-06 04:41:47 UTC 5,517 bytes, 8 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[8769],{59(e,t,r){r.d(t,{A:()=>i});class i{static debounce(e,t){let r,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(){for(var o=arguments.length,s=Array(o),n=0;n<o;n++)s[n]=arguments[n];i&&!r&&setTimeout(e.bind(e,...s),0),clearTimeout(r),r=setTimeout(e.bind(e,...s),t)}}}},154(e,t,r){r.d(t,{A:()=>i});class i{static iterate(e,t){if(e instanceof Map||Array.isArray(e))return e.forEach(t);if(e instanceof FormData){for(var r of e.entries())t(r[1],r[0]);return}if(e instanceof NodeList)return e.forEach(t);if(e instanceof HTMLCollection)return Array.from(e).forEach(t);if(e instanceof Object)return Object.keys(e).forEach(r=>{t(e[r],r)});throw Error(`The element type ${typeof e} is not iterable!`)}}},710(e,t,r){r.d(t,{A:()=>o});class i{static ucFirst(e){return e.charAt(0).toUpperCase()+e.slice(1)}static lcFirst(e){return e.charAt(0).toLowerCase()+e.slice(1)}static toDashCase(e){return e.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()}static toLowerCamelCase(e,t){let r=i.toUpperCamelCase(e,t);return i.lcFirst(r)}static toUpperCamelCase(e,t){return t?e.split(t).map(e=>i.ucFirst(e.toLowerCase())).join(""):i.ucFirst(e.toLowerCase())}static parsePrimitive(e){try{return/^\d+(.|,)\d+$/.test(e)&&(e=e.replace(",",".")),JSON.parse(e)}catch(t){return e.toString()}}}class o{static isNode(e){return"object"==typeof e&&null!==e&&(e===document||e===window||e instanceof Node)}static hasAttribute(e,t){if(!o.isNode(e))throw Error("The element must be a valid HTML Node!");return"function"==typeof e.hasAttribute&&e.hasAttribute(t)}static getAttribute(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(r&&!1===o.hasAttribute(e,t))throw Error(`The required property "${t}" does not exist!`);if("function"!=typeof e.getAttribute){if(r)throw Error("This node doesn't support the getAttribute function!");return}return e.getAttribute(t)}static getDataAttribute(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2],s=t.replace(/^data(|-)/,""),n=i.toLowerCamelCase(s,"-");if(!o.isNode(e)){if(r)throw Error("The passed node is not a valid HTML Node!");return}if(void 0===e.dataset){if(r)throw Error("This node doesn't support the dataset attribute!");return}let a=e.dataset[n];if(void 0===a){if(r)throw Error(`The required data attribute "${t}" does not exist on ${e}!`);return a}return i.parsePrimitive(a)}static querySelector(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(r&&!o.isNode(e))throw Error("The parent node is not a valid HTML Node!");let i=e.querySelector(t)||!1;if(r&&!1===i)throw Error(`The required element "${t}" does not exist in parent node!`);return i}static querySelectorAll(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(r&&!o.isNode(e))throw Error("The parent node is not a valid HTML Node!");let i=e.querySelectorAll(t);if(0===i.length&&(i=!1),r&&!1===i)throw Error(`At least one item of "${t}" must exist in parent node!`);return i}static getFocusableElements(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body,t=`
2            input:not([tabindex^="-"]):not([disabled]):not([type="hidden"]),
3            select:not([tabindex^="-"]):not([disabled]),
4            textarea:not([tabindex^="-"]):not([disabled]),
5            button:not([tabindex^="-"]):not([disabled]),
6            a[href]:not([tabindex^="-"]):not([disabled]),
7            [tabindex]:not([tabindex^="-"]):not([disabled])
8        `;return e.querySelectorAll(t)}static getFirstFocusableElement(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return this.getFocusableElements(e)[0]}static getLastFocusableElement(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=this.getFocusableElements(e);return t[t.length-1]}}},769(e,t,r){r.r(t),r.d(t,{default:()=>n});var i=r(710),o=r(59),s=r(154);class n extends window.PluginBaseClass{static #e=this.options={configuratorTriggerSelector:".js-configurator-groups-toggle",configuratorGroupedTriggerSelector:".js-configurator-grouped-groups-toggle",configuratorGroupedTriggerLabelSelector:".product-detail-configurator-groups-toggle-label",resizeDebounceTime:50,hiddenCls:"js-hidden"};init(){let e=this.options;this._trigger=Array.from(i.A.querySelectorAll(this.el,e.configuratorTriggerSelector,!1)),this._groupedTrigger=i.A.querySelector(this.el,e.configuratorGroupedTriggerSelector,!1),this._groupedTriggerLabel=i.A.querySelector(this._groupedTrigger,e.configuratorGroupedTriggerLabelSelector,!1),this._container=this.el,this._trigger&&this._groupedTrigger&&this._groupedTriggerLabel&&(this._elementsWidth=this._trigger.reduce((e,t)=>
8e+this._getAbsoluteWidth(t),0),this._groupedTriggerWidth=this._getAbsoluteWidth(this._groupedTrigger),this._onCheckSize(),this._registerEvents())}_registerEvents(){let e=this.options;window.addEventListener("resize",o.A.debounce(this._onCheckSize.bind(this),e.resizeDebounceTime))}_onCheckSize(){let e=this.options,t=this._container.offsetWidth-40;this._groupedTrigger.classList.toggle(e.hiddenCls,this._elementsWidth<=t),s.A.iterate(this._trigger,r=>{r.classList.toggle(e.hiddenCls,this._elementsWidth>t)}),this._groupedTriggerLabel.classList.toggle(e.hiddenCls,this._groupedTriggerWidth>t)}_getAbsoluteWidth(e){e="string"==typeof e?i.A.querySelectorAll(document,e):e;let t=window.getComputedStyle(e),r=parseFloat(t["margin-left"])+parseFloat(t["margin-right"]);return Math.ceil(e.offsetWidth+r)}}}}]);

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.