PageSourceSearch

https://www.flamingo-druckparadies.eu/theme/48c135f1bb7984f37eefde…egration.smart-neon-editor.plugin.9877e0.js

js flamingo-druckparadies.eu collected 2026-10-10 00:18:48 UTC 11,232 bytes, 8 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[40289],{289(t,e,i){i.r(e),i.d(e,{default:()=>o});class n{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 i=n.toUpperCamelCase(t,e);return n.lcFirst(i)}static toUpperCamelCase(t,e){return e?t.split(e).map(t=>n.ucFirst(t.toLowerCase())).join(""):n.ucFirst(t.toLowerCase())}static parsePrimitive(t){try{return/^\d+(.|,)\d+$/.test(t)&&(t=t.replace(",",".")),JSON.parse(t)}catch(e){return t.toString()}}}class r{static isNode(t){return"object"==typeof t&&null!==t&&(t===document||t===window||t instanceof Node)}static hasAttribute(t,e){if(!r.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 i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(i&&!1===r.hasAttribute(t,e))throw Error(`The required property "${e}" does not exist!`);if("function"!=typeof t.getAttribute){if(i)throw Error("This node doesn't support the getAttribute function!");return}return t.getAttribute(e)}static getDataAttribute(t,e){let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],o=e.replace(/^data(|-)/,""),a=n.toLowerCamelCase(o,"-");if(!r.isNode(t)){if(i)throw Error("The passed node is not a valid HTML Node!");return}if(void 0===t.dataset){if(i)throw Error("This node doesn't support the dataset attribute!");return}let s=t.dataset[a];if(void 0===s){if(i)throw Error(`The required data attribute "${e}" does not exist on ${t}!`);return s}return n.parsePrimitive(s)}static querySelector(t,e){let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(i&&!r.isNode(t))throw Error("The parent node is not a valid HTML Node!");let n=t.querySelector(e)||!1;if(i&&!1===n)throw Error(`The required element "${e}" does not exist in parent node!`);return n}static querySelectorAll(t,e){let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(i&&!r.isNode(t))throw Error("The parent node is not a valid HTML Node!");let n=t.querySelectorAll(e);if(0===n.length&&(n=!1),i&&!1===n)throw Error(`At least one item of "${e}" must exist in parent node!`);return n}static getFocusableElements(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body,e=`
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 t.querySelectorAll(e)}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]}}class o extends window.PluginBaseClass{static #t=this.options={configuratorKeySelector:"#printdata",configuratorRadioKeySelector:'input[name="printdata"]',widthKeySelector:'[data-neon-configurator-field-key="width"] > div > div input:first-of-type',heightKeySelector:'[data-neon-configurator-field-key="height"] > div > div input:first-of-type',priceSelector:".ott-editor-price-wrapper .product-detail-price",cartBtnSelector:".btn-buy",cartQuantitySelector:".buy-widget-container .quantity-selector-group",configuratorSelector:"[data-neon-configurator]",configuratorUserDataSelector:"[data-neon-configurator-user-data]",editorBtnSelector:".btn-editor",editorQuantitySelector:'input[name="quantityAPI2"]',editorQuantitySelectorContainer:".ott-editor-quantity-group",editorPriceContainer:".ott-editor-price-wrapper",priceContainer:".ott-price-wrapper",editorWidthSelector:'input[name="widthAPI2"]',editorHeightSelector:'input[name="heightAPI2"]',editorPriceSelector:'input[name="priceFromFrontend"]',editorAdditionalDataSelector:'input[name="additionalData"]',formSelector:"#productDetailPageDesignForm"};
8init(){if(this.editorBtnElement=document.querySelector(this.options.editorBtnSelector),!this.editorBtnElement)return;this.keyElement=document.querySelector(this.options.configuratorKeySelector),this.radioKeyElements=document.querySelectorAll(this.options.configuratorRadioKeySelector),this.priceElement=document.querySelector(this.options.priceSelector),this.widthKeyElement=document.querySelector(this.options.widthKeySelector),this.heightKeyElement=document.querySelector(this.options.heightKeySelector),this.editorWidthElement=document.querySelector(this.options.editorWidthSelector),this.editorHeightElement=document.querySelector(this.options.editorHeightSelector),this.editorQuantityElement=document.querySelector(this.options.editorQuantitySelector),this.cartQuantityElement=document.querySelector(this.options.cartQuantitySelector),this.configuratorUserDataElement=document.querySelector(this.options.configuratorUserDataSelector),this.editorAdditionalDataElement=document.querySelector(this.options.editorAdditionalDataSelector),this.cartBtnElement=document.querySelector(this.options.cartBtnSelector),this.formElement=document.querySelector(this.options.formSelector),this.staticDataValue=this.editorAdditionalDataElement.value,this.editorQuantityStayHidden=this.editorQuantityElement.parentElement.getAttribute("data-ott-quantity-stay-hidden"),this.keyElement&&(this.keyElement.addEventListener("change",this.onDesignSelectChange.bind(this)),this.editorQuantityElement.addEventListener("change",this.onDesignChangeQuantity.bind(this))),this.radioKeyElements&&this.radioKeyElements.forEach(t=>{t.addEventListener("change",this.onDesignSelectChange.bind(this))}),void 0!==this.widthKeyElement&&null!==this.widthKeyElement&&void 0!==this.heightKeyElement&&null!==this.heightKeyElement&&((void 0===this.editorWidthElement||null===this.editorWidthElement&&void 0===this.editorHeightElement||null===this.editorHeightElement)&&(this.createMeasurementInput("widthAPI2"),this.createMeasurementInput("heightAPI2"),this.editorWidthElement=document.querySelector(this.options.editorWidthSelector),this.editorHeightElement=document.querySelector(this.options.editorHeightSelector)),this.widthKeyElement.addEventListener("change",this.onDesignChangeMeasurement.bind(this)),this.heightKeyElement.addEventListener("change",this.onDesignChangeMeasurement.bind(this)),this.onDesignChangeMeasurement());let t=document.querySelector(this.options.configuratorSelector);if(t){let e=setInterval(()=>{t.classList.contains("neonConfigurator--isLoading")||(this.doInit(),clearInterval(e))},250)}else this.doInit()}doInit(){this.createConfigurationDataWatcher(),this.observePrice(),this.onDesignSelectChange(),this.onChangeConfiguration(this.configuratorUserDataElement.value)}onChangeConfiguration(t){this.editorAdditionalDataElement.value=this.staticDataValue+";neonData|"+t.replaceAll('"','\\"')+";ott_delivery_date_min|"+document.querySelector(".ott-calculated-date-input").getAttribute("data-ott-min")+";ott_delivery_date_max|"+document.querySelector(".ott-calculated-date-input").getAttribute("data-ott-max")+";ott_delivery_date_date|"+document.querySelector(".ott-calculated-date-input").getAttribute("data-ott-date"),this.cartBtnElement.classList.contains("is--disabled")?(this.editorBtnElement.classList.add("is--disabled"),this.editorBtnElement.setAttribute("disabled","disabled")):(this.editorBtnElement.classList.remove("is--disabled"),this.editorBtnElement.removeAttribute("disabled"))}onDesignSelectChange(){let t=!1;if(this.radioKeyElements.forEach(e=>{e.checked&&"editor"===e.value&&(t=!0)}),null!==this.keyElement&&"editor"===this.keyElement.value||!0===t){if(this.cartBtnElement&&this.cartBtnElement.classList.add("d-none"),document.querySelector(this.options.priceContainer).classList.add("d-none"),this.editorBtnElement.classList.remove("d-none"),this.editorQuantityStayHidden||document.querySelector(this.options.editorQuantitySelectorContainer).classList.remove("d-none"),document.querySelector(this.options.editorPriceContainer).classList.remove("d-none"),this.editorQuantityElement.parentElement&&this.cartQuantityElement){this.cartQuantityElement.classList.add("d-none");let t=window.PluginManager.getPluginInstanceFromElement(this.cartQuantityElement,"QuantitySelector");window.PluginManager.getPluginInstanceFromElement(this.editorQuantityElement.parentElement,"QuantitySelector")._input.value=t._input.value}this.emitQuantityChange()}else this.cartBtnElement&&this.cartBtnElement.classList.remove("d-none"),this.cartQuantityElement&&this.cartQuantityElement.classList.remove("d-none"),document.querySelector(this.options.priceContainer).classList.remove("d-none"),this.editorBtnElement.classList.add("d-none"),document.querySelector(this.options.editorQuantitySelectorContainer).classList.add("d-none"),document.querySelector(this.options.editorPriceContainer).classList.add("d-none")}onDesignChangeMeasurement(){this.widthKeyElement&&this.heightKeyElement&&this.editorWidthElement&&this.editorHeightElement&&(this.editorWidthElement.value=parseFloat(this.widthKeyElement.value)+this.getAdditionalMeasurement("width"),this.editorHeightElement.value=parseFloat(this.heightKeyElement.value)+this.getAdditionalMeasurement("height"))}getAdditionalMeasurement(t){if(!this.formElement)return 0;let e=parseFloat(r.getDataAttribute(this.formElement,`smart-editor-additional-${t}`,!1));return Number.isNaN(e)?0:e}onDesignChangeQuantity(){if(this.editorQuantityElement.parentElement&&this.cartQuantityElement){let t=window.PluginManager.getPluginInstanceFromElement(this.cartQuantityElement,"QuantitySelector"),e=window.PluginManager.getPluginInstanceFromElement(this.editorQuantityElement.parentElement,"QuantitySelector");t._input.value=e._input.value}this.emitQuantityChange()}emitQuantityChange(){window.PluginManager.getPluginInstanceFromElement(document.querySelector(this.options.configuratorSelector),"NeonConfigurator").refresh(!0)}createMeasurementInput(t){let e=document.createElement("input");e.type="hidden",e.name=t,this.editorQuantityElement.parentNode.appendChild(e)}createConfigurationDataWatcher(){let t=this,{get:e,set:i}=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value");Object.defineProperty(this.configuratorUserDataElement,"value",{get(){return e.call(this)},set(e){t.onChangeConfiguration(e),i.call(this,e)}})}observePrice(){let t=this;new MutationObserver(()=>{let e=parseFloat(this.priceElement.textContent.trim().replace(/\s/g,"").replace("€","").replace(",","."));document.querySelector(t.options.editorPriceSelector).value=e}).observe(this.priceElement,{characterData:!0,subtree:!0,childList:!0});let e=document.querySelector("#productDetailPageBuyProductForm .product-detail-price"),i=document.querySelector("#productDetailPageDesignForm .product-detail-price");e&&i&&(i.textContent=e.textContent.trim(),new MutationObserver(()=>{i.textContent=e.textContent.trim()}).observe(e,{characterData:!0,childList:!0,subtree:!0}))}}}}]);

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.