PageSourceSearch

https://www.maxilia.nl/theme/3d81c14b3cc429bdc9ad1bfd0adb0779/js/z…sphere.zen-floating-labels.plugin.9945f7.js

js maxilia.nl collected 2026-10-05 08:09:00 UTC 5,714 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[4259],{4049:(e,t,s)=>{s.d(t,{Z:()=>l});var i=s(5140);class l{static isNode(e){return"object"==typeof e&&null!==e&&(e===document||e===window||e instanceof Node)}static hasAttribute(e,t){if(!l.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 s=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(s&&!1===l.hasAttribute(e,t))throw Error('The required property "'.concat(t,'" does not exist!'));if("function"!=typeof e.getAttribute){if(s)throw Error("This node doesn't support the getAttribute function!");return}return e.getAttribute(t)}static getDataAttribute(e,t){let s=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=t.replace(/^data(|-)/,""),n=i.Z.toLowerCamelCase(a,"-");if(!l.isNode(e)){if(s)throw Error("The passed node is not a valid HTML Node!");return}if(void 0===e.dataset){if(s)throw Error("This node doesn't support the dataset attribute!");return}let o=e.dataset[n];if(void 0===o){if(s)throw Error('The required data attribute "'.concat(t,'" does not exist on ').concat(e,"!"));return o}return i.Z.parsePrimitive(o)}static querySelector(e,t){let s=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(s&&!l.isNode(e))throw Error("The parent node is not a valid HTML Node!");let i=e.querySelector(t)||!1;if(s&&!1===i)throw Error('The required element "'.concat(t,'" does not exist in parent node!'));return i}static querySelectorAll(e,t){let s=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(s&&!l.isNode(e))throw Error("The parent node is not a valid HTML Node!");let i=e.querySelectorAll(t);if(0===i.length&&(i=!1),s&&!1===i)throw Error('At least one item of "'.concat(t,'" must exist in parent node!'));return i}static getFocusableElements(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return e.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 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]}}},5140:(e,t,s)=>{s.d(t,{Z:()=>i});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 s=i.toUpperCamelCase(e,t);return i.lcFirst(s)}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()}}}},4259:(e,t,s)=>{s.r(t),s.d(t,{default:()=>l});var i=s(4049);class l extends window.PluginBaseClass{init(){let e=this.options;if(this.el.closest(e.exitSelectors)||(this._label=i.Z.querySelector(this.el,e.labelSelector,!1),!this._label)){this.el.classList.add(e.preventFloatingLabelsClass);return}let t=window.getComputedStyle(this._label);if("none"===t.display||"hidden"===t.visibility||"0"===t.opacity){this.el.classList.add(e.preventFloatingLabelsClass);return}if(this._label.getAttribute("for")){let e="#"+CSS.escape(this._label.getAttribute("for").replace(/^#/g,""));this._element=i.Z.querySelector(this.el,e,!1)}else this._element=this._label.nextElementSibling;if(!this._label||!this._element||"INPUT"!==this._element.nodeName&&"SELECT"!==this._element.nodeName&&"TEXTAREA"!==this._element.nodeName||"INPUT"===this._element.nodeName&&!e.allowedTypes.includes(this._element.type)){this.el.classList.add(e.preventFloatingLabelsClass);return}this.el.classList.add(e.floatingLabelsClass),this._checkVal(),this._registerEvents()}_registerEvents(){this._element.addEventListener("input",this._onInput.bind(this)),this._element.addEventListener("blur",this._onBlur.bind(this)),this._element.addEventListener("focus",this._onFocus.bind(this))}_onInput(){this.el.classList.add(this.options.floatingClass)}_onFocus(e){this.el.classList.add(this.options.floatingClass),this.el.classList.add(this.options.focusClass),"SELECT"===e.target.nodeName&&this.el.classList.add(this.options.floatingClass)}_onBlur(e){let t=this.options,s=e.target.value.length;this.el.classList.remove(t.focusClass),!s>0&&this.el.classList.remove(t.floatingClass)}_handlePayments(){let e=this.options;this.el.classList.add(e.floatingClass,e.floatingLabelsClass)}_checkVal(){let e=this.options;("SELECT"===this._element.nodeName?this._getAllSelectedValues().length:this._element.value.length)>0&&this.el.classList.add(e.floatingClass)}_getAllSelectedValues(){return Array.from(this._element.options).filter(function(e){return e.selected&&!e.hasAttribute("disabled")}).map(function(e){return e.value})}}l.options={allowedTypes:["date","datetime-local","email","month","number","password","search","tel","text","t
1ime","url","week"],labelSelector:"label",floatingLabelsClass:"js-label-floating",preventFloatingLabelsClass:"js-label-floating-prevent",floatingClass:"js-floated",hoverClass:"js-hover",focusClass:"js-focus",exitSelectors:".swag-customized-products, .basic-captcha, .confirm-payment-shipping"}}}]);

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.