1"use strict";(self.webpackChunkhoeffner_frontend=self.webpackChunkhoeffner_frontend||[]).push([[5464],{2390:function(e,t,n){n.d(t,{A:function(){return r}});var o=n(1163),r={sendInfoToGoogleDataLayer:function(e){if("true"!==(null===(t=document.querySelector("#responsive"))||void 0===t?void 0:t.getAttribute("data-external-cart")))return $.kryptonite("/api/dataLayer/checkout",{type:"GET",success:function(t){var n={};try{n=JSON.parse(t)}catch(t){return null!=e.callback?e.callback():void 0}var r={event:"checkout",ecommerce:{checkout:{actionField:{step:e.step},products:n}}};return e.option&&(r.ecommerce.checkout.actionField.option=e.option),o.A.pushToGoogleDataLayer(r,e.callback)},error:function(){if(null!=e.callback)return e.callback()}});var t;null!=e.callback&&e.callback()}}},8354:function(e,t,n){var o,r,i,a=n(5177),c=n(3410),s=document.getElementById("session-countdown-popup"),u=document.getElementById("session-counter-time"),l=s.querySelectorAll("#session-countdown-timer")[0],f=Number(s.dataset.time),d="sessionCountdown.text.minutes",p=f,v=function(e,t){void 0===t&&(t=null),r&&r[0].classList.value.includes("overlay__content--sessionOverlay")&&r[0].classList.value.includes("overlay__content--activeRight")?l.textContent=e:function(e,t){void 0===t&&(t=null),null==s||s.classList.remove("popup-content-hidden"),l.textContent=e,r=a.A.toggleRight("overlayRightInfo",s,!1,{modifier:t||"sessionOverlay",onClose:function(){"sessionOverlayAbort"===t?window.location.href="/warenkorb":window.location.reload()}}),(0,c.A)("#session-countdown-popup",!0)}(e,t)},b=function(){for(var e=p-600,t=Math.floor(p/60),n=p%60,r=0,a=[{time:30,message:i["sessionCountdown.text.seconds"].replace("__seconds__","".concat(n))},{time:300,message:i[d].replace("__minutes__","".concat(t))},{time:60,message:i["sessionCountdown.text.minute"].replace("__minute__","".concat(t))}];r<a.length;r++){var c=a[r];if(p===c.time){v(c.message);break}}var s="0".concat(t),f="0".concat(n);if(u.textContent="".concat(s.slice(-2),":").concat(f.slice(-2)," Minuten"),p<=e&&t%10==0&&v(i[d].replace("__minutes__","".concat(t))),p<=10&&(l.textContent=i["sessionCountdown.text.lastSeconds"].replace("__second__","".concat(n))),p<=0)return v(i["sessionCountdown.text.abort"],"sessionOverlayAbort"),void clearInterval(o);p-=1};t.A={init:function(){return e=void 0,t=void 0,r=function(){return function(e,t){var n,o,r,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=c(0),a.throw=c(1),a.return=c(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(c){return function(s){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,o&&(r=2&c[0]?o.return:c[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,c[1])).done)return r;switch(o=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,o=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!((r=(r=i.trys).length>0&&r[r.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){i.label=c[1];break}if(6===c[0]&&i.label<r[1]){i.label=r[1],r=c;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(c);break}r[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],o=0}finally{n=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,s])}}}(this,function(e){switch(e.label){case 0:return[4,fetch("/api/translate",{method:"post",body:JSON.stringify({keys:["sessionCountdown.text.abort","sessionCountdown.text.lastSeconds","sessionCountdown.text.minute","sessionCountdown.text.minutes","sessionCountdown.text.seconds","sessionCountdown.text.entrySentence"]})})];case 1:return[4,e.sent().json()];case 2:return i=e.sent(),o=setInterval(b,1e3),[2]}})},new((n=void 0)||(n=Promise))(function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function c(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,c)}s((r=r.apply(e,t||[])).next())});var e,t,n,r}}},8949:function(e,t,n){n.r(t),n.d(t,{default:function(){return u}});var o=n(8067),r=n(1163),i=n(2390),a=function(e){return o.A.configureLoginHandler(function(e){return e.preventDefault(),$("#login-form").validate(),$("#register-submit").validate(),$("#login-form").submit(),$("#register-submit").submit()}),function(e){o.A.configureValidation(function(){!function(e){var t=o.A.getLoginData();$.kryptonite("/api/user/login",{type:"POST",data:{login:t,csrfToken:$("input#st-hidden-input").val()},success:function(t){var n={option:"registered",callback:function(){return window.location.replace("/bestellung/zahlart"),e()}};return r.A.pushEventToGoogleDataLayer(JSON.parse(t),function(){return i.A.sendInfoToGoogleDataLayer(n)})},error:function(t){return o.A.handleErrorWhileLogin(e,t)}})}(e)})}(e),$("#guestLogin").on("click",function(){var e={option:"guest",callback:function(){return window.location="/bestellung/gast",!1}};return i.A.sendInfoToGoogleDataLayer(e)})}
1,c=n(8354),s=function(){return c.A.init(),a(function(){return s()})},u=s()}}]);
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.