PageSourceSearch

https://www.solardirekt24.de/theme/127810511c66176c607757c99e1d6a5…/pickware-shipping-bundle.js?1790953026

js solardirekt24.de collected 2026-10-07 20:43:05 UTC 10,431 bytes, 1 lines download raw bytes

1(function(){"use strict";class u{static isTouchDevice(){return"ontouchstart"in document.documentElement}static isIOSDevice(){return u.isIPhoneDevice()||u.isIPadDevice()}static isNativeWindowsBrowser(){return u.isIEBrowser()||u.isEdgeBrowser()}static isIPhoneDevice(){return!!navigator.userAgent.match(/iPhone/i)}static isIPadDevice(){return!!navigator.userAgent.match(/iPad/i)}static isIEBrowser(){return navigator.userAgent.toLowerCase().indexOf("msie")!==-1||!!navigator.userAgent.match(/Trident.*rv:\d+\./)}static isEdgeBrowser(){return!!navigator.userAgent.match(/Edge\/\d+/i)}static getList(){return{"is-touch":u.isTouchDevice(),"is-ios":u.isIOSDevice(),"is-native-windows":u.isNativeWindowsBrowser(),"is-iphone":u.isIPhoneDevice(),"is-ipad":u.isIPadDevice(),"is-ie":u.isIEBrowser(),"is-edge":u.isEdgeBrowser()}}}class A{static iterate(e,t){if(e instanceof Map||Array.isArray(e))return e.forEach(t);if(e instanceof FormData){for(const 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 new Error("The element type ".concat(typeof e," is not iterable!"))}}const E="modal-backdrop",L="modal-backdrop-open",S="no-scroll",_=350,$={ON_CLICK:"backdrop/onclick"};class b{constructor(){return b.instance||(b.instance=this),b.instance}create(e){this._removeExistingBackdrops(),document.body.insertAdjacentHTML("beforeend",this._getTemplate());const t=document.body.lastChild;document.documentElement.classList.add(S),setTimeout(()=>{t.classList.add(L),typeof e=="function"&&e()},75),this._dispatchEvents()}remove(e=_){const t=this._getBackdrops();A.iterate(t,r=>r.classList.remove(L)),setTimeout(this._removeExistingBackdrops.bind(this),e),document.documentElement.classList.remove(S)}_dispatchEvents(){const e=u.isTouchDevice()?"touchstart":"click";document.addEventListener(e,t=>{t.target.classList.contains(E)&&document.dispatchEvent(new CustomEvent($.ON_CLICK))})}_getBackdrops(){return document.querySelectorAll(".".concat(E))}_removeExistingBackdrops(){if(this._exists()===!1)return;const e=this._getBackdrops();A.iterate(e,t=>t.remove())}_exists(){return document.querySelectorAll(".".concat(E)).length>0}_getTemplate(){return'<div class="'.concat(E,'"></div>')}}const P=Object.freeze(new b);class v{static create(e=null){P.create(e)}static remove(e=_){P.remove(e)}static SELECTOR_CLASS(){return E}}const y="loader",x="visually-hidden",C={BEFORE:"before",INNER:"inner"};class w{constructor(e,t=C.BEFORE){this.parent=e instanceof Element?e:document.body.querySelector(e),this.position=t}create(){if(!this.exists()){if(this.position===C.INNER){this.parent.innerHTML=w.getTemplate();return}this.parent.insertAdjacentHTML(this._getPosition(),w.getTemplate())}}remove(){const e=this.parent.querySelectorAll(".".concat(y));A.iterate(e,t=>t.remove())}exists(){return this.parent.querySelectorAll(".".concat(y)).length>0}_getPosition(){return this.position===C.BEFORE?"afterbegin":"beforeend"}static getTemplate(){return'<div class="'.concat(y,'" role="status">\n                    <span class="').concat(x,'">Loading...</span>\n                </div>')}static SELECTOR_CLASS(){return y}}class B extends w{constructor(){super(document.body)}create(e=!0){this.exists()||e&&(v.create(),document.querySelector(".".concat(v.SELECTOR_CLASS())).insertAdjacentHTML("beforeend",w.getTemplate()))}remove(e=!0){super.remove(),e&&v.remove()}}Object.freeze(new B);function R(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var O,N;function F(){if(N)return O;N=1;var l=function(i){return e(i)&&!t(i)};function e(n){return!!n&&typeof n=="object"}function t(n){var i=Object.prototype.toString.call(n);return i==="[object RegExp]"||i==="[object Date]"||d(n)}var r=typeof Symbol=="function"&&Symbol.for,s=r?Symbol.for("react.element"):60103;function d(n){return n.$$typeof===s}function o(n){return Array.isArray(n)?[]:{}}function m(n,i){return i.clone!==!1&&i.isMergeableObject(n)?p(o(n),n,i):n}function I(n,i,a){return n.concat(i).map(function(f){return m(f,a)})}function T(n,i){if(!i.customMerge)return p;var a=i.customMerge(n);return typeof a=="function"?a:p}function K(n){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(n).filter(function(i){return Object.propertyIsEnumerable.call(n,i)}):[]}function j(n){return Object.keys(n).concat(K(n))}function M(n,i){try{return i in n}catch(a){return!1}}function z(n,i){return M(n,i)&&!(Object.hasOwnProperty.call(n,i)&&Object.propertyIsEnumerable.call(n,i))}function V(n,i,a){var f={};
1return a.isMergeableObject(n)&&j(n).forEach(function(c){f[c]=m(n[c],a)}),j(i).forEach(function(c){z(n,c)||(M(n,c)&&a.isMergeableObject(i[c])?f[c]=T(c,a)(n[c],i[c],a):f[c]=m(i[c],a))}),f}function p(n,i,a){a=a||{},a.arrayMerge=a.arrayMerge||I,a.isMergeableObject=a.isMergeableObject||l,a.cloneUnlessOtherwiseSpecified=m;var f=Array.isArray(i),c=Array.isArray(n),Y=f===c;return Y?f?a.arrayMerge(n,i,a):V(n,i,a):m(i,a)}p.all=function(i,a){if(!Array.isArray(i))throw new Error("first argument should be an array");return i.reduce(function(f,c){return p(f,c,a)},{})};var W=p;return O=W,O}var k=F();const q=R(k);class g{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){const r=g.toUpperCamelCase(e,t);return g.lcFirst(r)}static toUpperCamelCase(e,t){return t?e.split(t).map(s=>g.ucFirst(s.toLowerCase())).join(""):g.ucFirst(e.toLowerCase())}static parsePrimitive(e){try{return/^\d+(.|,)\d+$/.test(e)&&(e=e.replace(",",".")),JSON.parse(e)}catch(t){return e.toString()}}}class h{static isNode(e){return typeof e!="object"||e===null?!1:e===document||e===window?!0:e instanceof Node}static hasAttribute(e,t){if(!h.isNode(e))throw new Error("The element must be a valid HTML Node!");return typeof e.hasAttribute!="function"?!1:e.hasAttribute(t)}static getAttribute(e,t,r=!0){if(r&&h.hasAttribute(e,t)===!1)throw new Error('The required property "'.concat(t,'" does not exist!'));if(typeof e.getAttribute!="function"){if(r)throw new Error("This node doesn't support the getAttribute function!");return}return e.getAttribute(t)}static getDataAttribute(e,t,r=!0){const s=t.replace(/^data(|-)/,""),d=g.toLowerCamelCase(s,"-");if(!h.isNode(e)){if(r)throw new Error("The passed node is not a valid HTML Node!");return}if(typeof e.dataset>"u"){if(r)throw new Error("This node doesn't support the dataset attribute!");return}const o=e.dataset[d];if(typeof o>"u"){if(r)throw new Error('The required data attribute "'.concat(t,'" does not exist on ').concat(e,"!"));return o}return g.parsePrimitive(o)}static querySelector(e,t,r=!0){if(r&&!h.isNode(e))throw new Error("The parent node is not a valid HTML Node!");const s=e.querySelector(t)||!1;if(r&&s===!1)throw new Error('The required element "'.concat(t,'" does not exist in parent node!'));return s}static querySelectorAll(e,t,r=!0){if(r&&!h.isNode(e))throw new Error("The parent node is not a valid HTML Node!");let s=e.querySelectorAll(t);if(s.length===0&&(s=!1),r&&s===!1)throw new Error('At least one item of "'.concat(t,'" must exist in parent node!'));return s}}class U{constructor(e=document){this._el=e,e.$emitter=this,this._listeners=[]}publish(e,t={},r=!1){const s=new CustomEvent(e,{detail:t,cancelable:r});return this.el.dispatchEvent(s),s}subscribe(e,t,r={}){const s=this,d=e.split(".");let o=r.scope?t.bind(r.scope):t;if(r.once&&r.once===!0){const m=o;o=function(T){s.unsubscribe(e),m(T)}}return this.el.addEventListener(d[0],o),this.listeners.push({splitEventName:d,opts:r,cb:o}),!0}unsubscribe(e){const t=e.split(".");return this.listeners=this.listeners.reduce((r,s)=>s.splitEventName.sort().toString()===t.sort().toString()?(this.el.removeEventListener(s.splitEventName[0],s.cb),r):(r.push(s),r),[]),!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 D{constructor(e,t={},r=!1){if(!h.isNode(e))throw new Error("There is no valid element given.");this.el=e,this.$emitter=new U(this.el),this._pluginName=this._getPluginName(r),this.options=this._mergeOptions(t),this._initialized=!1,this._registerInstance(),this._init()}init(){throw new 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){const t=g.toDashCase(this._pluginName),r=h.getDataAttribute(this.el,"data-".concat(t,"-config"),!1),s=h.getAttribute(this.el,"data-".concat(t,"-options"),!1),d=[this.constructor.options,this.options,e];r&&d.push(window.PluginConfigManager.get(this._pluginName,r));try{s&&d.push(JSON.parse(s))}catch(o){throw new Error('The data attribute "data-'.concat(t,'-options" could not be parsed to json: ').concat(o.message))}return q.all(d.filter(o=>o instanceof Object&&!(o instanceof Array)).map(o=>o||{}))}_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 H extends D{init(){this.getTransferDataForm()&&this.getTransferDataForm().addEventListener("submit",this.onFormSubmit.bind(this)),this.getEmailTransferCheckbox()&&this.getEmailTransferCheckbox().addEventListener("input",this.onEmailTransferCheckboxInput.bind(this))}onEmailTransferCheckboxInput(){this.getTransferDataForm().requestSubmit()}
1async onFormSubmit(e){e.preventDefault();const t=this.getEmailTransferCheckbox();t.disabled=!0;const r=new FormData;r.append("pickware__shipping__allow_email_transfer",t.checked);try{await fetch(e.target.action,{method:e.target.method,body:r})}catch(s){t.selected=!t.selected}finally{t.disabled=!1}}getTransferDataForm(){return document.getElementById("pickware-shipping-data-transfer-form")}getEmailTransferCheckbox(){return document.getElementById("pickware-shipping-transfer-email-input")}}window.PluginManager.register("PickwareCheckoutConfirmationPlugin",H,"[data-pickware-checkout-confirmation]")})();

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.