PageSourceSearch

https://epowerfun.de/theme/43e680d44335d04e9865b11184a77461/js/zeo…/zeobv-get-notified.js?1790268146

js epowerfun.de collected 2026-10-01 15:38:20 UTC 16,974 bytes, 1 lines download raw bytes

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!==s},s="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 r(e,t,s){return e.concat(t).map(function(e){return i(e,s)})}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,s,l){(l=l||{}).arrayMerge=l.arrayMerge||r,l.isMergeableObject=l.isMergeableObject||t,l.cloneUnlessOtherwiseSpecified=i;var c,u,h=Array.isArray(s);return h!==Array.isArray(e)?i(s,l):h?l.arrayMerge(e,s,l):(u={},(c=l).isMergeableObject(e)&&n(e).forEach(function(t){u[t]=i(e[t],c)}),n(s).forEach(function(t){(!a(e,t)||Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))&&(a(e,t)&&c.isMergeableObject(s[t])?u[t]=(function(e,t){if(!t.customMerge)return o;var s=t.customMerge(e);return"function"==typeof s?s:o})(t,c)(e[t],s[t],c):u[t]=i(s[t],c))}),u)}o.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,s){return o(e,s,t)},{})},e.exports=o}},t={};function s(i){var r=t[i];if(void 0!==r)return r.exports;var n=t[i]={exports:{}};return e[i](n,n.exports,s),n.exports}(()=>{s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t}})(),(()=>{s.d=(e,t)=>{for(var i in t)s.o(t,i)&&!s.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}})(),(()=>{s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{var e=s(857),t=s.n(e);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 s=i.toUpperCamelCase(e,t);return i.lcFirst(s)}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()}}}class r{static isNode(e){return"object"==typeof e&&null!==e&&(e===document||e===window||e instanceof Node)}static hasAttribute(e,t){if(!r.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 s=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(s&&!1===r.hasAttribute(e,t))throw Error('The required property "'.concat(t,'" does not exist!'));if("function"!=typeof e.getAttribute){if(s)throw Error("This node doesn't support the getAttribute function!");return}return e.getAttribute(t)}static getDataAttribute(e,t){let s=!(arguments.length>2)||void 0===arguments[2]||arguments[2],n=t.replace(/^data(|-)/,""),a=i.toLowerCamelCase(n,"-");if(!r.isNode(e)){if(s)throw Error("The passed node is not a valid HTML Node!");return}if(void 0===e.dataset){if(s)throw Error("This node doesn't support the dataset attribute!");return}let o=e.dataset[a];if(void 0===o){if(s)throw Error('The required data attribute "'.concat(t,'" does not exist on ').concat(e,"!"));return o}return i.parsePrimitive(o)}static querySelector(e,t){let s=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(s&&!r.isNode(e))throw Error("The parent node is not a valid HTML Node!");let i=e.querySelector(t)||!1;if(s&&!1===i)throw Error('The required element "'.concat(t,'" does not exist in parent node!'));return i}static querySelectorAll(e,t){let s=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(s&&!r.isNode(e))throw Error("The parent node is not a valid HTML Node!");let i=e.querySelectorAll(t);if(0===i.length&&(i=!1),s&&!1===i)throw Error('At least one item of "'.concat(t,'" must exist in parent node!'));return i}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 n{publish(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new CustomEvent(e,{detail:t,cancelable:s});return this.el.dispatchEvent(i),i}subscribe(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this,r=e.split("."),n=s.scope?t.bind(s.scope):t;if(s.once&&!0===s.once){let t=n;n=function(s){i.unsubscribe(e),t(s)}}return this.el.addEventListener(r[0],n),this.listeners.push({splitEventName:r,opts:s,cb:n}),!0}unsubscribe(e){let t=e.split(".");return this.listeners=this.listeners.reduce((e,s)=>([...s.splitEventName].sort().toString()===t.sort().toString()?this.el.removeEventListener(s.splitEventName[0],s.cb):e.push(s),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 a{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 s=i.toDashCase(this._pluginName),n=r.getDataAttribute(this.el,"data-".concat(s,"-config"),!1),a=r.getAttribute(this.el,"data-".concat(s,"-options"),!1),o=[this.constructor.options,this.options,e];n&&o.push(window.PluginConfigManager.get(this._pluginName,n));try{a&&o.push(JSON.parse(a))}catch(e){throw console.error(this.el),Error('The data attribute "data-'.concat(s,'-options" could not be parsed to json: ').concat(e.message))}return t().all(o.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={},s=!1){if(!r.isNode(e))throw Error("There is no valid element given.");this.el=e,this.$emitter=new n(this.el),this._pluginName=this._getPluginName(s),this.options=this._mergeOptions(t),this._initialized=!1,this._registerInstance(),this._init()}}let o=class{get(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{Accept:"application/json"},s=this._createPreparedRequest("GET",e,t);return this._sendRequest(s,null,t)}post(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{Accept:"application/json"},i=Object.prototype.hasOwnProperty.call(s,"Content-Type"),r=t instanceof FormData||i?s:{...s,"Content-Type":"application/json"},n=this._createPreparedRequest("POST",e,r),a=t instanceof FormData?t:JSON.stringify(t);return this._sendRequest(n,a,r)}patch(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{"Content-Type":"application/json",Accept:"application/json"},i=this._createPreparedRequest("PATCH",e,s);return this._sendRequest(i,JSON.stringify(t),s)}delete(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{"Content-Type":"application/json",Accept:"application/json"},i=this._createPreparedRequest("DELETE",e,s);return this._sendRequest(i,JSON.stringify(t),s)}abort(){this._request&&this._request.abort()}_sendRequest(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2?arguments[2]:void 0;return new Promise((i,r)=>{e.onload=()=>{this._request=null,e.status>=200&&e.status<300?204!==e.status&&"application/json"===s.Accept?i(JSON.parse(e.response)):i(e.response):r({status:e.status,statusText:e.statusText})},e.onerror=()=>{this._request=null,r({status:e.status,statusText:e.statusText})},e.send(t)})}_createPreparedRequest(e,t,s){for(let i in this._request&&this._request.abort(),this._request=new XMLHttpRequest,this._request.open(e,t),this._request.setRequestHeader("X-Requested-With","XMLHttpRequest"),s)this._request.setRequestHeader(i,s[i]);return this._request}constructor(){this._request=null}};class l extends a{init(){this.client=new o,this.isSubmitting=!1,this.formSubmittedByCaptcha=!1,this._initGoogleRecaptcha(),this._registerEvents()}_initGoogleRecaptcha(){let e=this.el.querySelector('[data-google-re-captcha-v3="true"]');e&&(this.recaptchaV3PluginInstances=window.PluginManager.getPluginInstancesFromElement(e)),this.recaptchaV3PluginInstances&&this.recaptchaV3PluginInstances.forEac
1h(e=>{"object"==typeof e.grecaptcha&&(this.grecaptcha=e.grecaptcha,this.grecaptchaSiteKey=e.options.siteKey,this.grecaptchaInputSelector=e.options.grecaptchaInputSelector)});let t=this.el.querySelector('[data-google-re-captcha-v2="true"]');t&&JSON.parse(t.dataset.googleReCaptchaV2Options).invisible&&this._showFeedback(!1,"Invisible Recaptcha V2 is not supported, please use Recaptcha V2 or update to Recaptcha V3",1e4)}_registerEvents(){this._onSubmitHandler=this._onSubmit.bind(this),this.el.addEventListener("submit",this._onSubmitHandler)}sendAjaxFormSubmit(){this.url=this.el.dataset.action,this._subscribe()}_onSubmit(e){if(e.target===this.el&&!this.formSubmittedByCaptcha){if(e.preventDefault(),this.url=this.el.dataset.action,this.email=new FormData(this.el).get("email"),window.currentCustomerEmail&&(this.email=window.currentCustomerEmail),!this._validateEmailDomain(this.email)){this._showFeedback(!1,this.options.snippets.invalidEmailMessage||"Invalid email address");return}if(!this.isSubmitting){if(this.grecaptcha)return;this._subscribe()}}}_subscribe(){var e,t,s;let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=this.options.snippets,n=new FormData(this.el);window.currentCustomerEmail&&n.set("email",window.currentCustomerEmail),this.$emitter.publish("beforeSubmit",{url:this.url,data:n,plugin:this});let a=this.el.querySelector(".esmx--shop-guard-captcha");if(a&&((e=navigator.userActivation)===null||void 0===e?void 0:e.isActive)){let e=(t=a.querySelector(".captcha"))===null||void 0===t?void 0:t.value,i=(s=a.querySelector(".time"))===null||void 0===s?void 0:s.value,r=n.get("email")||window.currentCustomerEmail;e&&i&&(n.set("esmx-dh-captcha",e),n.set("esmx-dh-captcha_time",i),n.set("esmx-dh-captcha_verify",""),n.set("esmx-dh-captcha_verify_name",r+"_verify"))}Object.entries(i).forEach(e=>{let[t,s]=e;n.set(t,s)}),this.isSubmitting=!0,this.client.post(this.url,n).then(e=>{let t;t=e.success?e.doubleOptInEnabled?"subscription_updated"===e.action?r.doubleOptInUpdateSuccessMessage||r.updateSuccessMessage:r.doubleOptInSuccessMessage||r.successMessage:"subscription_updated"===e.action?r.updateSuccessMessage:r.successMessage:this._extractErrorMessage(e);var s=document.getElementById("backInStockEmail"+this.options.subscribeData.productId);s&&(s.value=""),this._showFeedback(e.success,t)}).catch(e=>{if(e.status>=500){this._showFeedback(!1,r.exceptionMessage);return}if(e.status>=400){this._showFeedback(!1,r.failedMessage);return}}).finally(()=>{this.isSubmitting=!1})}_extractErrorMessage(e){if(e&&e.error)return"invalidEmailMessage"===e.error?this.options.snippets.invalidEmailMessage:"salesChannelDomainsExceptionMessage"===e.error?this.options.snippets.salesChannelDomainsExceptionMessage:e.error;if(Array.isArray(e)&&e[0]&&e[0].alert){var t;let s=document.createElement("div");return s.innerHTML=e[0].alert,((t=s.querySelector(".alert-content"))===null||void 0===t?void 0:t.innerHTML)||this.options.snippets.failedMessage}return this.options.snippets.failedMessage}_showFeedback(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.options.snippets.notificationConfirmationMessageTime,i=this.el.querySelector("#message-container");i.querySelector("#message-label").innerHTML=t,e?(i.classList.remove("alert-danger"),i.classList.add("alert-success")):(i.classList.remove("alert-success"),i.classList.add("alert-danger")),i.classList.replace("d-none","d-flex"),i.classList.add("alert-has-icon"),setTimeout(()=>{i.classList.replace("d-flex","d-none"),i.classList.remove("alert-has-icon")},s)}_validateEmailDomain(e){let t=window.allowedEmailDomains;if(null==t||"null"===t||""===t)return!0;let s=t.split(",").map(e=>e.trim().toLowerCase());if(!e||"string"!=typeof e)return!1;let i=e.split("@");if(2!==i.length)return!1;let r=i[1].split(".");if(r.length<2)return!1;let n=r.pop().toLowerCase();return s.includes(n)}subscribedProduct(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];let e=JSON.parse(JSON.stringify({productId:this.options.subscribeData.productId})).productId;this.client.post(this.options.subscribeData.checkProductSubscribedUrl,[{productId:e}]).then(e=>{e.success&&this._showSubscribedProductMessage()}).catch(e=>{})}_showSubscribedProductMessage(){let e=this.el.querySelector("#message-container-"+this.options.subscribeData.productId);e.classList.remove("alert-danger"),e.classList.add("alert-success"),e.classList.replace("d-none","d-flex"),setTimeout(()=>{e.classList.replace("d-flex","d-none")},4e3)}}l.options={snippets:{successMessage:"",updateSuccessMessage:"",failedMessage:"",exceptionMessage:"",salesChannelDomainsExceptionMessage:"",invalidEmailMessage:"",notificationConfirmationMessageTime:""},subscribeData:{productId:"",checkProductSubscribedUrl:""}};class c{get(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"application/json",i=this._createPreparedRequest("GET",e,s);return this._sendRequest(i,null,t)}
1post(e,t,s){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/json";i=this._getContentType(t,i);let r=this._createPreparedRequest("POST",e,i);return this._sendRequest(r,t,s)}delete(e,t,s){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/json";i=this._getContentType(t,i);let r=this._createPreparedRequest("DELETE",e,i);return this._sendRequest(r,t,s)}patch(e,t,s){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/json";i=this._getContentType(t,i);let r=this._createPreparedRequest("PATCH",e,i);return this._sendRequest(r,t,s)}abort(){if(this._request)return this._request.abort()}setErrorHandlingInternal(e){this._errorHandlingInternal=e}_registerOnLoaded(e,t){t&&(!0===this._errorHandlingInternal?(e.addEventListener("load",()=>{t(e.responseText,e)}),e.addEventListener("abort",()=>{console.warn("the request to ".concat(e.responseURL," was aborted"))}),e.addEventListener("error",()=>{console.warn("the request to ".concat(e.responseURL," failed with status ").concat(e.status))}),e.addEventListener("timeout",()=>{console.warn("the request to ".concat(e.responseURL," timed out"))})):e.addEventListener("loadend",()=>{t(e.responseText,e)}))}_sendRequest(e,t,s){return this._registerOnLoaded(e,s),e.send(t),e}_getContentType(e,t){return e instanceof FormData&&(t=!1),t}_createPreparedRequest(e,t,s){return this._request=new XMLHttpRequest,this._request.open(e,t),this._request.setRequestHeader("X-Requested-With","XMLHttpRequest"),s&&this._request.setRequestHeader("Content-type",s),this._request}constructor(){this._request=null,this._errorHandlingInternal=!1}}class u extends a{init(){this._client=new c,this._emailForm=this.el.querySelector("#prelaunch-email-form"),this._successMessage=this.el.dataset.successMessage,this.el.addEventListener("submit",this._onSubmit.bind(this),!0)}_onSubmit(e){e.preventDefault(),e.stopPropagation();let t=new FormData(this.el),s=this.el.dataset.action;this._client.post(s,t,e=>{let t=JSON.parse(e);t.success?(this._emailForm&&this._emailForm.classList.add("d-none"),this._showMessage("alert-success",this._successMessage)):this._showMessage("alert-danger",t.message||"An error occurred")})}_showMessage(e,t){let s=this.el.querySelector("#prelaunch-message-container");if(!s)return;let i=s.querySelector(".alert-content");i&&(s.classList.remove("d-none","alert-success","alert-danger"),s.classList.add(e,"alert-has-icon"),i.textContent=t)}}u.options={snippets:{successMessage:"",invalidEmailMessage:"",failedMessage:""}};let h=window.PluginManager;h.register("ZeobvStockNotificationForm",l,"[data-zeobv-stock-notification-form]"),h.register("PreLaunchForm",u,"[data-prelaunch-form]")})()})();

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.