PageSourceSearch

https://www.weinmanufaktur-von-oven.de/theme/013e73a5a7d398d3031eb…/biloba-manufacturer-pro.js?1790851361

js weinmanufaktur-von-oven.de collected 2026-10-05 11:42:48 UTC 11,464 bytes, 8 lines download raw bytes

1(()=>{"use strict";var e={156:e=>{var t=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==r},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(e,t){return!1!==t.clone&&t.isMergeableObject(e)?o(Array.isArray(e)?[]:{},e,t):e}function s(e,t,r){return e.concat(t).map(function(e){return i(e,r)})}function n(e){return Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[])}function a(e,t){try{return t in e}catch(e){return!1}}function o(e,r,l){(l=l||{}).arrayMerge=l.arrayMerge||s,l.isMergeableObject=l.isMergeableObject||t,l.cloneUnlessOtherwiseSpecified=i;var u,c,h=Array.isArray(r);return h!==Array.isArray(e)?i(r,l):h?l.arrayMerge(e,r,l):(c={},(u=l).isMergeableObject(e)&&n(e).forEach(function(t){c[t]=i(e[t],u)}),n(r).forEach(function(t){(!a(e,t)||Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))&&(a(e,t)&&u.isMergeableObject(r[t])?c[t]=(function(e,t){if(!t.customMerge)return o;var r=t.customMerge(e);return"function"==typeof r?r:o})(t,u)(e[t],r[t],u):c[t]=i(r[t],u))}),c)}o.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,r){return o(e,r,t)},{})},e.exports=o}},t={};function r(i){var s=t[i];if(void 0!==s)return s.exports;var n=t[i]={exports:{}};return e[i](n,n.exports,r),n.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var i in t)r.o(t,i)&&!r.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var i=r(156),s=r.n(i);class n{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=n.toUpperCamelCase(e,t);return n.lcFirst(r)}static toUpperCamelCase(e,t){return t?e.split(t).map(e=>n.ucFirst(e.toLowerCase())).join(""):n.ucFirst(e.toLowerCase())}static parsePrimitive(e){try{return/^\d+(.|,)\d+$/.test(e)&&(e=e.replace(",",".")),JSON.parse(e)}catch(t){return e.toString()}}}class a{constructor(e=document){this._el=e,e.$emitter=this,this._listeners=[]}publish(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new CustomEvent(e,{detail:t,cancelable:r});return this.el.dispatchEvent(i),i}subscribe(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this,s=e.split("."),n=r.scope?t.bind(r.scope):t;if(r.once&&!0===r.once){let t=n;n=function(r){i.unsubscribe(e),t(r)}}return this.el.addEventListener(s[0],n),this.listeners.push({splitEventName:s,opts:r,cb:n}),!0}unsubscribe(e){let t=e.split(".");return this.listeners=this.listeners.reduce((e,r)=>([...r.splitEventName].sort().toString()===t.sort().toString()?this.el.removeEventListener(r.splitEventName[0],r.cb):e.push(r),e),[]),!0}reset(){return this.listeners.forEach(e=>{this.el.removeEventListener(e.splitEventName[0],e.cb)}),this.listeners=[],!0}get el(){return this._el}set el(e){this._el=e}get listeners(){return this._listeners}set listeners(e){this._listeners=e}}class o{constructor(e,t={},r=!1){if(!(e instanceof Node)){console.warn(`There is no valid element given while trying to create a plugin instance for "${r}".`);return}this.el=e,this.$emitter=new a(this.el),this._pluginName=this._getPluginName(r),this.options=this._mergeOptions(t),this._initialized=!1,this._registerInstance(),this._init()}init(){console.warn(`The "init" method for the plugin "${this._pluginName}" is not defined. The plugin will not be initialized.`)}update(){}_init(){this._initialized||(this.init(),this._initialized=!0)}_update(){this._initialized&&this.update()}_mergeOptions(e){let t=[this.constructor.options,this.options,e];return t.push(this._getConfigFromDataAttribute()),t.push(this._getOptionsFromDataAttribute()),s().all(t.filter(e=>e instanceof Object&&!(e instanceof Array)).map(e=>e||{}))}_getConfigFromDataAttribute(){let e={};if("function"!=typeof this.el.getAttribute)return e;let t=n.toDashCase(this._pluginName),r=this.el.getAttribute(`data-${t}-config`);return r?window.PluginConfigManager.get(this._pluginName,r):e}_getOptionsFromDataAttribute(){let e={};if("function"!=typeof this.el.getAttribute)return e;let t=n.toDashCase(this._pluginName),r=this.el.getAttribute(`data-${t}-options`);if(r)try{return JSON.parse(r)}catch(e){console.error(`The data attribute "data-${t}-options" could not be parsed to json: ${e.message}`)}return e}_registerInstance(){window.PluginManager.getPluginInstancesFromElement(this.el).set(this._pluginName,this),window.PluginManager.getPlugin(this._pluginName,!1).get("instances").push(this)}_getPluginName(e){return e||(e=this.constructor.name),e}}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 r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(r&&!1===l.hasAttribute(e,t))throw Error(`The required property "${t}" does not exist!`);
1if("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],i=t.replace(/^data(|-)/,""),s=n.toLowerCamelCase(i,"-");if(!l.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[s];if(void 0===a){if(r)throw Error(`The required data attribute "${t}" does not exist on ${e}!`);return a}return n.parsePrimitive(a)}static querySelector(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(r&&!l.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&&!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),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]}}class u{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!`)}}let c=window.PluginManager;c.register("BilobaShowOnlySelectedManufacturer",class extends o{init(){this.manufacturerChars=null,!1!=this.el&&(this.manufacturerChars=this.el),this._registerMethods()}_update(){this.init()}_registerMethods(){this.fetchAllManufacturerChars(this.manufacturerChars)}fetchAllManufacturerChars(e){var t=l.querySelector(document,".show-all-manufacturers",!1);this.uniqueBind(e,"click",this.hideAllManufacturersWhichAreNotSelected.bind(this.el,e)),this.uniqueBind(t,"click",this.showAllManufacturers.bind(this.el,t))}hideAllManufacturersWhichAreNotSelected(e){var t=e.getAttribute("data"),r=l.querySelector(document,".manufacturer-list.grid-container",!1),i=l.querySelectorAll(r,".anchor.grid-item",!1),s=l.querySelector(document,".show-all-manufacturers",!1),n=l.querySelector(document,".charlist",!1);u.iterate(i,function(e){var i=l.querySelectorAll(e,".product-image-wrapper",!1),a=l.querySelector(e,"span",!1);e.getAttribute("id")==t.toLowerCase()||e.getAttribute("id")==t.toString()?(e.className="anchor grid-item row",a.className="col-12",u.iterate(i,function(e){e.className="product-image-wrapper col-lg-3 col-md-6 col-sm-12"})):(e.className="anchor grid-item d-none",s.className="show-all-manufacturers d-block",n.className="charlist",r.className="manufacturer-list grid-container manufacturer-filtered container")})}showAllManufacturers(e){var t=l.querySelector(document,".manufacturer-list.grid-container",!1),r=l.querySelectorAll(t,".anchor.grid-item",!1),i=l.querySelector(document,".charlist",!1);u.iterate(r,function(e){var t=l.querySelectorAll(e,".product-image-wrapper",!1),r=l.querySelector(e,"span",!1);e.className="anchor grid-item",r.className="",u.iterate(t,function(e){e.className="product-image-wrapper"})}
8),i.className="charlist",t.className="manufacturer-list grid-container manufacturers-visible",e.className="show-all-manufacturers d-none"}uniqueBind(e,t,r){var i=e.getAttribute("id");i||(i="_"+Math.random().toString(36).substr(2,9),e.setAttribute("id",i)),this.listeners=this.listeners||{},this.listeners[i]=this.listeners[i]||{},this.listeners[i][t]&&e.removeEventListener(t,this.listeners[i][t]),this.listeners[i][t]=r,e.addEventListener(t,r)}},"[data-show-only-selected-manufacturer]"),c.register("BilobaManufacturerSearch",class extends o{init(){this._searchField=l.querySelector(this.el,".biloba-manufaturer-search input"),this._cancelButton=l.querySelector(this.el,".biloba-manufaturer-search .cancel"),this._registerEvents()}_registerEvents(){this.uniqueBind(this._searchField,"keyup",this._inputChange.bind(this,this._searchField)),this.uniqueBind(this._cancelButton,"click",this._clearSearchField.bind(this,this._cancelButton))}_inputChange(){let e=this._searchField.value;""!=e?this._cancelButton.classList.remove("d-none"):this._cancelButton.classList.add("d-none"),this._updateManufacturerList(e)}_clearSearchField(){this._searchField.value="",this._cancelButton.classList.add("d-none"),this._updateManufacturerList("")}_updateManufacturerList(e){let t=l.querySelectorAll(this.el,".cms-listing-manufacturer-image-grid-col");u.iterate(t,t=>{t.getAttribute("data-manufacturer-name").toLowerCase().indexOf(e.toLowerCase())>-1?t.classList.remove("d-none"):t.classList.add("d-none")})}uniqueBind(e,t,r){var i=""+e;!e.getAttribute||(i=e.getAttribute("id"))||(i="_"+Math.random().toString(36).substr(2,9),e.setAttribute("id",i)),this.listeners=this.listeners||{},this.listeners[i]=this.listeners[i]||{},this.listeners[i][t]&&e.removeEventListener(t,this.listeners[i][t]),this.listeners[i][t]=r,e.addEventListener(t,r)}},"[data-biloba-manufacturer-search]")})();

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.