PageSourceSearch

https://www.balkonkraftwerk-fachhandel.de/theme/f17e74c4f5640093c5…acris-request-cart-listing.plugin.bcd336.js

js balkonkraftwerk-fachhandel.de collected 2026-10-04 20:23:47 UTC 14,527 bytes, 16 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[37527],{77(e,t,r){r.d(t,{Ay:()=>d,Kq:()=>a});var i=r(632);let s="modal-backdrop",n="modal-backdrop-open",o="no-scroll",a=350,l={ON_CLICK:"backdrop/onclick"};class c{constructor(){return c.instance||(c.instance=this),c.instance}create(e){this._removeExistingBackdrops(),document.body.insertAdjacentHTML("beforeend",this._getTemplate());let t=document.body.lastChild;document.documentElement.classList.add(o),setTimeout(function(){t.classList.add(n),"function"==typeof e&&e()},75),this._dispatchEvents()}remove(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;this._getBackdrops().forEach(e=>e.classList.remove(n)),setTimeout(this._removeExistingBackdrops.bind(this),e),document.documentElement.classList.remove(o)}_dispatchEvents(){let e=i.A.isTouchDevice()?"touchstart":"click";document.addEventListener(e,function(e){e.target.classList.contains(s)&&document.dispatchEvent(new CustomEvent(l.ON_CLICK))})}_getBackdrops(){return document.querySelectorAll(`.${s}`)}_removeExistingBackdrops(){!1!==this._exists()&&this._getBackdrops().forEach(e=>e.remove())}_exists(){return document.querySelectorAll(`.${s}`).length>0}_getTemplate(){return`<div class="${s}"></div>`}}let u=Object.freeze(new c);class d{static create(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;u.create(e)}static remove(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;u.remove(e)}static SELECTOR_CLASS(){return s}}},121(e,t,r){r.d(t,{A:()=>a});var i=r(683),s=r(77);class n extends i.A{constructor(){super(document.body)}create(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];!this.exists()&&e&&(s.Ay.create(),document.querySelector(`.${s.Ay.SELECTOR_CLASS()}`).insertAdjacentHTML("beforeend",i.A.getTemplate()))}remove(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];super.remove(),e&&s.Ay.remove()}}let o=Object.freeze(new n);class a{static create(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];o.create(e)}static remove(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];o.remove(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)?a(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 o(e,t){try{return t in e}catch(e){return!1}}function a(e,r,l){(l=l||{}).arrayMerge=l.arrayMerge||s,l.isMergeableObject=l.isMergeableObject||t,l.cloneUnlessOtherwiseSpecified=i;var c,u,d=Array.isArray(r);return d!==Array.isArray(e)?i(r,l):d?l.arrayMerge(e,r,l):(u={},(c=l).isMergeableObject(e)&&n(e).forEach(function(t){u[t]=i(e[t],c)}),n(r).forEach(function(t){(!o(e,t)||Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))&&(o(e,t)&&c.isMergeableObject(r[t])?u[t]=(function(e,t){if(!t.customMerge)return a;var r=t.customMerge(e);return"function"==typeof r?r:a})(t,c)(e[t],r[t],c):u[t]=i(r[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,r){return a(e,r,t)},{})},e.exports=a},439(e,t,r){r.d(t,{A:()=>s});var i=r(795);class s{static #e=this._selectors=["#","."];static getSelectorName(e){return s._selectors.includes(e.at(0))?e.slice(1):e}static getDataAttribute(e,t){let r=i.A.getDataAttribute(e,t,!1);return"string"==typeof r&&0===r.length?null:r??null}_getDataOptions(e,t){if("string"!=typeof t)return null;try{return JSON.parse(t)}catch{}return null}constructor(e){if(!e instanceof HTMLElement)throw Error("Element is not an HTMLElement");this.el=e}querySelector(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=this.#t(e,t);return r?this.el.querySelector(r):null}closest(e){return this.el.closest(e)}querySelectorAll(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=this.#t(e,t);return r?this.el.querySelectorAll(r):[]}getAttribute(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return i.A.getAttribute(this.el,e,t)}buildFormDataFromElement(e){let t=new FormData;return e.querySelectorAll("input[name], select[name], textarea[name]").forEach(e
1=>{if(e.disabled)return;let r=e.name;if("file"===e.type){Array.from(e.files||[]).forEach(e=>{t.append(r,e)}),e.files?.length;return}if("checkbox"===e.type){e.checked&&t.append(r,e.value||"on");return}if("radio"===e.type){e.checked&&t.append(r,e.value);return}if("SELECT"===e.tagName&&e.multiple){Array.from(e.selectedOptions).forEach(e=>{t.append(r,e.value)});return}t.append(r,e.value)}),t}#t(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(""===t)return e;let r=t,i=e;return s._selectors.includes(e.at(0))&&(i=e.slice(1),r=s._selectors.includes(t.at(0))?e[0]+t.slice(1):e[0]+t),r+i}}},527(e,t,r){r.r(t),r.d(t,{default:()=>a});var i=r(737),s=r(121),n=r(724),o=r(439);class a extends i.A{static #e=this.options={url:null};init(){this._domHelper=new o.A(this.el),this._collectItems();let e="acris-price-on-request::listing::reload",t="acris-price-on-request::search::create::loading";document.$emitter.unsubscribe(e),document.$emitter.unsubscribe(t),document.$emitter.subscribe(e,this._updateListing.bind(this)),document.$emitter.subscribe(t,this._handleCreateLoading.bind(this))}_collectItems(){this.createForm=this._domHelper.querySelector("#createRequestCartForm")}_handleCreateLoading(e){this.createForm&&(e.detail?.show?n.A.create(this.createForm):n.A.remove(this.createForm))}_updateListing(){this.options.url&&(s.A.create(),fetch(this.options.url,{method:"GET"}).then(e=>e.text()).then(e=>this._handleResponse(e)).catch(e=>{console.error("AcrisRequestCartListingPlugin: Error updating listing",e)}).finally(()=>{s.A.remove()}))}_handleResponse(e){try{this.el.innerHTML=e,window.PluginManager.initializePlugins()}catch(e){console.error("AcrisRequestCartListingPlugin: Error parsing response",e)}}}},632(e,t,r){r.d(t,{A:()=>i});class i{static isTouchDevice(){return"ontouchstart"in document.documentElement}static isIOSDevice(){return i.isIPhoneDevice()||i.isIPadDevice()}static isNativeWindowsBrowser(){return i.isIEBrowser()||i.isEdgeBrowser()}static isIPhoneDevice(){return!!navigator.userAgent.match(/iPhone/i)}static isIPadDevice(){return!!navigator.userAgent.match(/iPad/i)}static isIEBrowser(){return -1!==navigator.userAgent.toLowerCase().indexOf("msie")||!!navigator.userAgent.match(/Trident.*rv:\d+\./)}static isEdgeBrowser(){return!!navigator.userAgent.match(/Edge\/\d+/i)}static getList(){return{"is-touch":i.isTouchDevice(),"is-ios":i.isIOSDevice(),"is-native-windows":i.isNativeWindowsBrowser(),"is-iphone":i.isIPhoneDevice(),"is-ipad":i.isIPadDevice(),"is-ie":i.isIEBrowser(),"is-edge":i.isEdgeBrowser()}}}},683(e,t,r){r.d(t,{A:()=>n});let i="loader",s={BEFORE:"before",INNER:"inner"};class n{constructor(e,t=s.BEFORE){this.parent=e instanceof Element?e:document.body.querySelector(e),this.position=t}create(){if(!this.exists()){if(this.position===s.INNER){this._previousHTML=this.parent.innerHTML,this.parent.innerHTML=n.getTemplate();return}this.parent.insertAdjacentHTML(this._getPosition(),n.getTemplate())}}remove(){if(this.position===s.INNER){this.parent.innerHTML=this._previousHTML;return}this.parent.querySelectorAll(`.${i}`).forEach(e=>e.remove())}exists(){return this.parent.querySelectorAll(`.${i}`).length>0}_getPosition(){return this.position===s.BEFORE?"afterbegin":"beforeend"}static getTemplate(){return`<div class="${i}" role="status">
2                    <span class="visually-hidden">Loading...</span>
3                </div>`}static SELECTOR_CLASS(){return i}}},707(e,t,r){r.d(t,{A:()=>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 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()}}}},724(e,t,r){r.d(t,{A:()=>n});var i=r(683);let s="element-loader-backdrop";class n extends i.A{static create(e){e.classList.add("has-element-loader"),n.exists(e)||(n.appendLoader(e),setTimeout(()=>{let t=e.querySelector(`.${s}`);t&&t.classList.add("element-loader-backdrop-open")},1))}static remove(e){e.classList.remove("has-element-loader");let t=e.querySelector(`.${s}`);t&&t.remove()}static exists(e){return e.querySelectorAll(`.${s}`).length>0}static getTemplate(){return`
4        <div class="${s}">
5            <div class="loader" role="status">
6                <span class="visually-hidden">Loading...</span>
7            </div>
8        </div>
9        `}static appendLoader(e){e.insertAdjacentHTML("beforeend",n.getTemplate())}}},737(e,t,r){r.d(t,{A:()=>a});var i=r(156),s=r.n(i),n=r(707);class o{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 a{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 o(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.A.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.A.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}}},795(e,t,r){r.d(t,{A:()=>s});var i=r(707);class s{static isNode(e){return"object"==typeof e&&null!==e&&(e===document||e===window||e instanceof Node)}static hasAttribute(e,t){if(!s.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===s.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],n=t.replace(/^data(|-)/,""),o=i.A.toLowerCamelCase(n,"-");if(!s.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[o];if(void 0===a){if(r)throw Error(`The required data attribute "${t}" does not exist on ${e}!`);return a}return i.A.parsePrimitive(a)}static querySelector(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(r&&!s.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&&!s.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=`
10            input:not([tabindex^="-"]):not([disabled]):not([type="hidden"]),
11            select:not([tabindex^="-"]):not([disabled]),
12            textarea:not([tabindex^="-"]):not([disabled]),
13            button:not([tabindex^="-"]):not([disabled]),
14            a[href]:not([tabindex^="-"]):not([disabled]),
15            [tabindex]:not([tabindex^="-"]):not([disabled])
16        `;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]}}}}]);

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.