PageSourceSearch

https://www.energienetze-offenbach.de/_assets_static/JavaScript/evo.customerCallback.0687e3650047c6.js

js energienetze-offenbach.de collected 2026-10-05 20:29:52 UTC 2,659 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkevo=self.webpackChunkevo||[]).push([[4046],{5343(t,r,e){e.r(r),e.d(r,{default:()=>o});var i=e(4692),s=e.n(i),a=e(663);const o=class{constructor(){this._$b=s()(document.body),this._$form=this._$b.find("form.customerCallback"),this._$successMsg=this._$form.find(".successMsg"),this._$errorMsg=this._$form.find(".errorMsg.default"),this._$errorMsgs=this._$form.find(".errorMsg"),this._$calltime=this._$form.find('input[name="calltime"]'),this._timepattern=/^(\d{1,2}):(\d{2})$/,this._init()}_init(){this._$form.on("focus","input",()=>this._clearError()).on("change",'input[type="radio"]',()=>this._clearError()).on("change",'input[type="radio"]',t=>this._onDayChange(t)).on("submit",t=>this._doSubmit(t)),this._$form.find('input[name="rueckruf"][value="now"]').click()}_clearError(){this._$errorMsgs.slideUp({duration:a.A.customerCallback.animation.duration})}_showError(t){this._$form.find(".errorMsg."+t).slideDown({duration:a.A.customerCallback.animation.duration})}_showErrorText(t){this._$errorMsg.text(t),this._showError("default")}_onDayChange(t){let r=s()(t.currentTarget).val(),e=(new Date).getHours().toString(),i=(new Date).getMinutes().toString();e=e.length>1?e:"0"+e,i=i.length>1?i:"0"+i,this._$calltime.attr("disabled","now"===r),"now"===r&&this._$calltime.val(e+":"+i)}_getDelay(){let t,r,e,i,s,a=this._$calltime.val().match(this._timepattern),o=new Date,n=this._$form.find('input[name="rueckruf"]:checked').val();if("now"===n)return 0;if(null===a)return this._showError("validTime"),!1;if(t=parseInt(a[1],10),r=parseInt(a[2],10),t>24||r>59)return this._showError("validTime"),!1;switch(n){case"now":case"today":i=0;break;case"tomorrow":i=1}return e=new Date(o.getFullYear(),o.getMonth(),o.getDate()+parseInt(i,10),t,r,59),s=parseInt((e-o)/1e3,10),s<0?(this._showError("inPast"),!1):s}_doSubmit(t){t.preventDefault();let r=s()(t.currentTarget),e=r.find('input[name="caller"]').val(),i=this._getDelay(),o=r.find(".loading_ajax-submit");if(!1===i)return!1;o.show(),s().ajax({url:a.A.customerCallback.api.live,crossDomain:!0,data:{psec:"ac646f778ca80ea75becf2090c4f2c42",button_id:"106",caller:e,delay:i},success:t=>{let e=JSON.parse(t);e.data&&(e.data.callback_id?(this._$successMsg.text(e.data.description),this._$successMsg.slideDown({duration:a.A.customerCallback.animation.duration}),r.find("fieldset, .form__static-text").slideUp({duration:a.A.customerCallback.animation.duration,done:()=>{s()("html, body").stop().animate({scrollTop:"0px"})}})):209==e.data.code?this._showError("outOfBusinessHours"):this._showErrorText(e.data.description)),o.hide()},error:()=>{o.hide(),this._showError("notAvailable")}})}}}}]);

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.