1(()=>{"use strict";var e={857: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!==i},i="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?a(Array.isArray(e)?[]:{},e,t):e}function n(e,t,i){return e.concat(t).map(function(e){return r(e,i)})}function o(e){return Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[])}function l(e,t){try{return t in e}catch(e){return!1}}function a(e,i,s){(s=s||{}).arrayMerge=s.arrayMerge||n,s.isMergeableObject=s.isMergeableObject||t,s.cloneUnlessOtherwiseSpecified=r;var c,u,d=Array.isArray(i);return d!==Array.isArray(e)?r(i,s):d?s.arrayMerge(e,i,s):(u={},(c=s).isMergeableObject(e)&&o(e).forEach(function(t){u[t]=r(e[t],c)}),o(i).forEach(function(t){(!l(e,t)||Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))&&(l(e,t)&&c.isMergeableObject(i[t])?u[t]=(function(e,t){if(!t.customMerge)return a;var i=t.customMerge(e);return"function"==typeof i?i:a})(t,c)(e[t],i[t],c):u[t]=r(i[t],c))}),u)}a.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,i){return a(e,i,t)},{})},e.exports=a}},t={};function i(r){var n=t[r];if(void 0!==n)return n.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,i),o.exports}(()=>{i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t}})(),(()=>{i.d=(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}})(),(()=>{i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{var e=i(857),t=i.n(e);class r{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 i=r.toUpperCamelCase(e,t);return r.lcFirst(i)}static toUpperCamelCase(e,t){return t?e.split(t).map(e=>r.ucFirst(e.toLowerCase())).join(""):r.ucFirst(e.toLowerCase())}static parsePrimitive(e){try{return/^\d+(.|,)\d+$/.test(e)&&(e=e.replace(",",".")),JSON.parse(e)}catch(t){return e.toString()}}}class n{static isNode(e){return"object"==typeof e&&null!==e&&(e===document||e===window||e instanceof Node)}static hasAttribute(e,t){if(!n.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 i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(i&&!1===n.hasAttribute(e,t))throw Error('The required property "'.concat(t,'" does not exist!'));if("function"!=typeof e.getAttribute){if(i)throw Error("This node doesn't support the getAttribute function!");return}return e.getAttribute(t)}static getDataAttribute(e,t){let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],o=t.replace(/^data(|-)/,""),l=r.toLowerCamelCase(o,"-");if(!n.isNode(e)){if(i)throw Error("The passed node is not a valid HTML Node!");return}if(void 0===e.dataset){if(i)throw Error("This node doesn't support the dataset attribute!");return}let a=e.dataset[l];if(void 0===a){if(i)throw Error('The required data attribute "'.concat(t,'" does not exist on ').concat(e,"!"));return a}return r.parsePrimitive(a)}static querySelector(e,t){let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(i&&!n.isNode(e))throw Error("The parent node is not a valid HTML Node!");let r=e.querySelector(t)||!1;if(i&&!1===r)throw Error('The required element "'.concat(t,'" does not exist in parent node!'));return r}static querySelectorAll(e,t){let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(i&&!n.isNode(e))throw Error("The parent node is not a valid HTML Node!");let r=e.querySelectorAll(t);if(0===r.length&&(r=!1),i&&!1===r)throw Error('At least one item of "'.concat(t,'" must exist in parent node!'));return r}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
1([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]}}class o{publish(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new CustomEvent(e,{detail:t,cancelable:i});return this.el.dispatchEvent(r),r}subscribe(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this,n=e.split("."),o=i.scope?t.bind(i.scope):t;if(i.once&&!0===i.once){let t=o;o=function(i){r.unsubscribe(e),t(i)}}return this.el.addEventListener(n[0],o),this.listeners.push({splitEventName:n,opts:i,cb:o}),!0}unsubscribe(e){let t=e.split(".");return this.listeners=this.listeners.reduce((e,i)=>([...i.splitEventName].sort().toString()===t.sort().toString()?this.el.removeEventListener(i.splitEventName[0],i.cb):e.push(i),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}constructor(e=document){this._el=e,e.$emitter=this,this._listeners=[]}}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(e){let i=r.toDashCase(this._pluginName),o=n.getDataAttribute(this.el,"data-".concat(i,"-config"),!1),l=n.getAttribute(this.el,"data-".concat(i,"-options"),!1),a=[this.constructor.options,this.options,e];o&&a.push(window.PluginConfigManager.get(this._pluginName,o));try{l&&a.push(JSON.parse(l))}catch(e){throw console.error(this.el),Error('The data attribute "data-'.concat(i,'-options" could not be parsed to json: ').concat(e.message))}return t().all(a.filter(e=>e instanceof Object&&!(e instanceof Array)).map(e=>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}constructor(e,t={},i=!1){if(!n.isNode(e))throw Error("There is no valid element given.");this.el=e,this.$emitter=new o(this.el),this._pluginName=this._getPluginName(i),this.options=this._mergeOptions(t),this._initialized=!1,this._registerInstance(),this._init()}}class a extends l{init(){let e=document.querySelectorAll(this.options.checkboxSelector);for(let t of(this.itemSelection={},e)){let e=t.dataset.productId,i=t.dataset.connectionId,r=this._getQuantity(i);this.itemSelection[i]={},this.itemSelection[i].productId=e,this.itemSelection[i].qty=r,"checkbox"===t.type&&this.registerCheckboxEvent(t)}for(let e of document.querySelectorAll(this.options.qtySelectBoxSelector))this.registerQtySelectBoxEvent(e);for(let e of document.querySelectorAll(this.options.variantSelectBoxSelector))this.registerVariantSelectBoxEvent(e)}registerCheckboxEvent(e){e.addEventListener("change",this.handleCheckboxChange.bind(this))}registerQtySelectBoxEvent(e){e.addEventListener("change",this.handleQtySelectBoxChange.bind(this))}registerVariantSelectBoxEvent(e){e.addEventListener("change",this.handleVariantSelectBoxChange.bind(this))}handleCheckboxChange(e){let t=e.target,i=t.checked,r=t.dataset.connectionId,n=this._getQuantity(r);if(i){if(null!==this.itemSelection[r].qty)return;this.itemSelection[r].qty=n}else this.itemSelection[r].qty=null,0===Object.values(this.itemSelection).filter(e=>null!==e).length&&(t.checked=!0,this.itemSelection[r].qty=n);this.determineCalculatedBundlePrice()}handleQtySelectBoxChange(e){let t=e.target,i=t.dataset.connectionId,r=parseInt(t.value);this._getQuantityInput(i).value=r,null!==this.itemSelection[i].qty&&(this.itemSelection[i].qty=r,this.determineCalculatedBundlePrice())}handleVariantSelectBoxChange(e){let t=e.target,i=t.dataset.connectionId,r=t.value;this.itemSelection[i].productId=r,this.determineCalculatedBundlePrice()}determineCalculatedBundlePrice(){let e=this.options.calculateBundlePriceUrl;fetch(e,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({itemSelection:this.itemSelection})}).then(e=>e.json()).then(e=>{e.hasOwnProperty("calculatedBundlePrice")&&(this.rerenderPricing(e),this.rerenderBundleItemControlInputs(e.products))})}rerenderBundleItemControlInputs(e){for(let t in e){let i=e[t],r=document.querySelectorAll(".zeobv-bundle-item-qty-select-".concat(t)),n=document.querySelectorAll(".bundle-product-item-selection-".concat(t)),o=document.querySelector("#zeobv-bundle-item-availability-".concat(t));if(i.available){for(let e of(o.classList.remove("zeobv-bundle-item-availability--unavailable"),o.classList.add("zeobv-bundle-item-availability--available"),n))"false"!==e.dataset.optional&&(e.checked=!0,e.removeAttribute("disabled"));for(let e of r)e.removeAttribute("disabled"),this.rerenderQtySelectBoxOptions(e,i)}else{for(let e of(o.classList.remove("zeobv-bundle-item-availability--available"),o.classList.add("zeobv-bundle-item-availability--unavailable"),n))"false"!==e.dataset.optional&&(e.checked=!1,e.setAttribute("disabled","disabled"));for(let e of r)e.setAttribute("disabled","disabled")}}}rerenderQtySelectBoxOptions(e,t){let i=t.maxPurchase?t.maxPurchase:100,r=t.minPurchase?t.minPurchase:1,n=t.purchaseSteps?t.purchaseSteps:1,o=parseInt(e.value);e.innerHTML="";for(let t=r;t<=i;t+=n){let i=document.createElement("option");i.value=t,i.text=t,e.appendChild(i)}let l=!1;e.value=o,o>i?(l=!0,e.value=i):o<r&&(l=!0,e.value=r),l&&this.handleQtySelectBoxChange({target:e})}rerenderPricing(e){this._renderBundlePrice(e),this._renderBundleItemPrices(e)}_renderBundlePrice(e){let t=document.querySelector(".product-detail-price");if(!t||(t.innerHTML=this._replacePrice(t.innerHTML,e.calculatedBundlePrice.unitPrice),!t.classList.contains("with-list-price")))return;let i=document.querySelector(".product-detail-list-price-wrapper .list-price-price");i&&(i.innerHTML=this._replacePrice(i.innerHTML,e.calculatedBundlePrice.listPrice.price))}_renderBundleItemPrices(e){let t=0;for(let r in e.calculatedProductPrices){var i;let n=e.calculatedProductPrices[r],o=e.products[r];if(!n)continue;let l=document.querySelectorAll(this.options.bundleItemPriceSelectorTemplate.replace("%connectionId%",r));if(0===l.length)continue;let a=((i=n.listPrice)===null||void 0===i?void 0:i.price)||n.unitPrice,s=this._getQuantity(r),c=a*s;for(let e of(null!==s&&s>0&&(null==o?void 0:o.available)&&(t+=c),l))e.innerHTML=this._replacePrice(e.innerHTML,c)}let r=document.querySelectorAll("[data-price-total]");if(0!==r.length)for(let e of r)e.innerHTML=this._replacePrice(e.innerHTML,t)}_replacePrice(e,t){return e.replace(/\d.+[^\*]/,this._formatPrice(t))}_getQuantity(e){return parseInt(this._getQuantityInput(e).value)}_getQuantityInput(e){return document.getElementById("zeobv-bundle-item-quantity-".concat(e))}_formatPrice(e){return new Intl.NumberFormat(document.documentElement.lang||"de-DE",{style:"decimal",minimumFractionDigits:2,maximumFractionDigits:2}).format(+(Math.round(e+"e+2")+"e-2"))}}a.options={checkboxSelector:".bundle-product-item-selection",qtySelectBoxSelector:".zeobv-bundle-item-qty-select",variantSelectBoxSelector:".zeobv-bundle-item-variant-select",bundleItemPriceSelectorTemplate:"[data-price-%connectionId%]",calculateBundlePriceUrl:null},window.PluginManager&&window.PluginManager.register("DiztechBundleConfigurator",a,"[data-diztech-bundle-configurator]")})()})();
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.