PageSourceSearch

https://www.nebelung.de/theme/fc6be77f01289e2dacedb59fa252fa79/js/…/onacy-b2-b-customer-plugin.js?1789049760

js nebelung.de collected 2026-10-02 10:55:27 UTC 7,020 bytes, 1 lines download raw bytes

1(()=>{"use strict";var e={},t={};function s(r){var i=t[r];if(void 0!==i)return i.exports;var n=t[r]={exports:{}};return e[r](n,n.exports,s),n.exports}s.m=e,s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce((t,r)=>(s.f[r](e,t),t),[])),s.u=e=>"./js/onacy-b2-b-customer-plugin/onacy-b2-b-customer-plugin.registration-form.plugin.5d909f.js",s.miniCssF=e=>{},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={};s.l=(t,r,i,n)=>{if(e[t]){e[t].push(r);return}if(void 0!==i)for(var a,o,l=document.getElementsByTagName("script"),c=0;c<l.length;c++){var u=l[c];if(u.getAttribute("src")==t){a=u;break}}a||(o=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,s.nc&&a.setAttribute("nonce",s.nc),a.src=t),e[t]=[r];var d=(s,r)=>{a.onerror=a.onload=null,clearTimeout(h);var i=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),i&&i.forEach(e=>e(r)),s)return s(r)},h=setTimeout(d.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=d.bind(null,a.onerror),a.onload=d.bind(null,a.onload),o&&document.head.appendChild(a)}})(),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{s.g.importScripts&&(e=s.g.location+"");var e,t=s.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var i=r.length-1;i>-1&&(!e||!/^http(s?):/.test(e));)e=r[i--].src}if(!e)throw Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=e+"../../"})(),(()=>{var e={7160:0};s.f.j=(t,r)=>{var i=s.o(e,t)?e[t]:void 0;if(0!==i){if(i)r.push(i[2]);else{var n=new Promise((s,r)=>i=e[t]=[s,r]);r.push(i[2]=n);var a=s.p+s.u(t),o=Error();s.l(a,r=>{if(s.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var n=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;o.message="Loading chunk "+t+" failed.\n("+n+": "+a+")",o.name="ChunkLoadError",o.type=n,o.request=a,i[1](o)}},"chunk-"+t,t)}}};var t=(t,r)=>{var i,n,[a,o,l]=r,c=0;if(a.some(t=>0!==e[t])){for(i in o)s.o(o,i)&&(s.m[i]=o[i]);l&&l(s)}for(t&&t(r);c<a.length;c++)n=a[c],s.o(e,n)&&e[n]&&e[n][0](),e[n]=0},r=self.webpackChunk=self.webpackChunk||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();class r{constructor(){this._request=null,this._errorHandlingInternal=!1}get(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"application/json",r=this._createPreparedRequest("GET",e,s);return this._sendRequest(r,null,t)}post(e,t,s){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/json";r=this._getContentType(t,r);let i=this._createPreparedRequest("POST",e,r);return this._sendRequest(i,t,s)}delete(e,t,s){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/json";r=this._getContentType(t,r);let i=this._createPreparedRequest("DELETE",e,r);return this._sendRequest(i,t,s)}patch(e,t,s){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/json";r=this._getContentType(t,r);let i=this._createPreparedRequest("PATCH",e,r);return this._sendRequest(i,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 ${e.responseURL} was aborted`)}),e.addEventListener("error",()=>{console.warn(`the request to ${e.responseURL} failed with status ${e.status}`)}),e.addEventListener("timeout",()=>{console.warn(`the request to ${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}}class i extends window.PluginBaseClass{static #e=this.options={url:"",imageSelector:"",refreshButtonSelector:"",refreshIconSelector:""};
1async init(){this.imageField=document.querySelector(this.options.imageSelector),this.refreshButton=document.querySelector(this.options.refreshButtonSelector),this.refreshIcon=document.querySelector(this.options.refreshIconSelector),this.refreshButton.addEventListener("click",e=>this.reloadCaptcha(e)),this.reloadCaptcha()}async reloadCaptcha(e){e&&(e.preventDefault(),e.stopPropagation()),this.refreshIcon.classList.add("captcha-refresh-animation");let t=new r,s=JSON.parse(await new Promise(e=>t.get(this.options.url,e)));s.success&&(this.imageField.src=s.data,this.refreshIcon.classList.remove("captcha-refresh-animation"))}}class n extends window.PluginBaseClass{static #e=this.options={url:"",fieldSelector:"",submitButtonSelector:""};async init(){this.field=document.querySelector(this.options.fieldSelector),this.submitButton=document.querySelector(this.options.submitButtonSelector),this.form=this.submitButton.form,this.isValid=!1,this.form.addEventListener("submit",e=>this.checkCaptcha(e))}async checkCaptcha(e){if(this.form.checkValidity()&&!this.isValid){e.preventDefault(),this.field.value=this.field.value.toUpperCase();let t={captcha:this.field.value},s=new r;JSON.parse(await new Promise(e=>s.post(this.options.url,JSON.stringify(t),e))).success?(this.isValid=!0,e.target.submit()):(this.field.setCustomValidity("Die eingegebene Zeichenfolge stimmt nicht mit dem Bild überein."),this.field.reportValidity())}}}class a extends window.PluginBaseClass{static #e=this.options={url:"",messageError:""};init(){this.email=this.el,this.email.addEventListener("change",this.checkIfEmailExists.bind(this))}async checkIfEmailExists(e){let t=e.target,s=t.value.trim();if(s){e.preventDefault();let i={email:s},n=new r;JSON.parse(await new Promise(e=>n.post(this.options.url,JSON.stringify(i),e))).success?(t.setAttribute("valid",!0),t.removeAttribute("invalid"),t.classList.add("is-valid"),t.classList.remove("is-invalid"),t.reportValidity(!1),t.setCustomValidity("")):(t.setAttribute("invalid",!0),t.classList.add("is-invalid"),t.classList.remove("is-valid"),t.setCustomValidity(this.options.messageError),t.reportValidity())}}}let o=window.PluginManager;o.register("OnacyRegistration",()=>s.e(80267).then(s.bind(s,267)),"[data-onacy-registration]"),o.register("OnacyCaptcha",i,"[data-onacy-captcha]"),o.register("OnacyCheckCaptcha",n,"[data-onacy-check-captcha]"),o.register("OnacyCheckIfEmailExists",a,"[data-onacy-check-if-email-exists]")})();

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.