(self.webpackChunk=self.webpackChunk||[]).push([[372],{9366:(e,t,n)=>{var r=n(9755);n(1058),n(2564);var a=n(3211);r(document).ready((function(){var e=null,t=document.getElementById("notification-sound"),n=!1;function o(){r.post(shop_root+"/apocrm/notification/getNew",{startDate:lastNotificationUpdate},(function(e){var o=r('[data-content="numNewSales"]');o.html(e.numNewSales),0==parseInt(e.numNewSales)?o.hide():o.show(),lastNotificationUpdate=e.now;var s=null;e.saleIds.length>0&&(s=shop_root+"/apocrm/sale/details/"+e.saleIds[0]);var l=parseInt(e.numNewSales);l>0?r("title").html("("+l+") "+r("title").data("title")):r("title").html(r("title").data("title")),null!=s&&(a.success('Zur Bestellung',"Sie haben eine neue Bestellung.",{timeOut:0,extendedTimeOut:0,iconClass:"toast-success toast-no-bg toast-white",onHidden:function(){playNotificationSound&&(t.pause(),n=!0)}}),playNotificationSound&&(n=!1,i()))}))}function i(){n||(e.resume().then((function(){t.play()})),setTimeout(i,3e5))}playNotificationSound&&(e=new AudioContext),o(),setInterval(o,18e4)}))},3211:(e,t,n)=>{var r,a;n(3710),n(4916),n(5306),n(2564),n(4678),n.amdD,r=[n(9755)],void 0===(a=function(e){return function(){var t,n,r,a=0,o="error",i="info",s="success",l="warning",c={clear:function(n,r){var a=f();t||u(a),d(n,a,r)||function(n){for(var r=t.children(),a=r.length-1;a>=0;a--)d(e(r[a]),n)}(a)},remove:function(n){var r=f();t||u(r),n&&0===e(":focus",n).length?g(n):t.children().length&&t.remove()},error:function(e,t,n){return v({type:o,iconClass:f().iconClasses.error,message:e,optionsOverride:n,title:t})},getContainer:u,info:function(e,t,n){return v({type:i,iconClass:f().iconClasses.info,message:e,optionsOverride:n,title:t})},options:{},subscribe:function(e){n=e},success:function(e,t,n){return v({type:s,iconClass:f().iconClasses.success,message:e,optionsOverride:n,title:t})},version:"2.1.2",warning:function(e,t,n){return v({type:l,iconClass:f().iconClasses.warning,message:e,optionsOverride:n,title:t})}};return c;function u(n,r){return n||(n=f()),(t=e("#"+n.containerId)).length||r&&(t=function(n){return(t=e("
").attr("id",n.containerId).addClass(n.positionClass).attr("aria-live","polite").attr("role","alert")).appendTo(e(n.target)),t}(n)),t}function d(t,n,r){var a=!(!r||!r.force)&&r.force;return!(!t||!a&&0!==e(":focus",t).length||(t[n.hideMethod]({duration:n.hideDuration,easing:n.hideEasing,complete:function(){g(t)}}),0))}function p(e){n&&n(e)}function v(n){var o=f(),i=n.iconClass||o.iconClass;if(void 0!==n.optionsOverride&&(o=e.extend(o,n.optionsOverride),i=n.optionsOverride.iconClass||i),!function(e,t){if(e.preventDuplicates){if(t.message===r)return!0;r=t.message}return!1}(o,n)){a++,t=u(o,!0);var s=null,l=e(""),c=e(""),d=e(""),v=e(""),h=e(o.closeHtml),m={intervalId:null,hideEta:null,maxHideTime:null},x={toastId:a,state:"visible",startTime:new Date,options:o,map:n};return n.iconClass&&l.addClass(o.toastClass).addClass(i),n.title&&(c.append(o.escapeHtml?b(n.title):n.title).addClass(o.titleClass),l.append(c)),n.message&&(d.append(o.escapeHtml?b(n.message):n.message).addClass(o.messageClass),l.append(d)),o.closeButton&&(h.addClass("toast-close-button").attr("role","button"),l.prepend(h)),o.progressBar&&(v.addClass("toast-progress"),l.prepend(v)),o.newestOnTop?t.prepend(l):t.append(l),l.hide(),l[o.showMethod]({duration:o.showDuration,easing:o.showEasing,complete:o.onShown}),o.timeOut>0&&(s=setTimeout(w,o.timeOut),m.maxHideTime=parseFloat(o.timeOut),m.hideEta=(new Date).getTime()+m.maxHideTime,o.progressBar&&(m.intervalId=setInterval(E,10))),l.hover(C,I),!o.onclick&&o.tapToDismiss&&l.click(w),o.closeButton&&h&&h.click((function(e){e.stopPropagation?e.stopPropagation():void 0!==e.cancelBubble&&!0!==e.cancelBubble&&(e.cancelBubble=!0),w(!0)})),o.onclick&&l.click((function(e){o.onclick(e),w()})),p(x),o.debug&&console&&console.log(x),l}function b(e){return null==e&&(e=""),new String(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function w(t){var n=t&&!1!==o.closeMethod?o.closeMethod:o.hideMethod,r=t&&!1!==o.closeDuration?o.closeDuration:o.hideDuration,a=t&&!1!==o.closeEasing?o.closeEasing:o.hideEasing;if(!e(":focus",l).length||t)return clearTimeout(m.intervalId),l[n]({duration:r,easing:a,complete:function(){g(l),o.onHidden&&"hidden"!==x.state&&o.onHidden(),x.state="hidden",x.endTime=new Date,p(x)}})}function I(){(o.timeOut>0||o.extendedTimeOut>0)&&(s=setTimeout(w,o.extendedTimeOut),m.maxHideTime=parseFloat(o.extendedTimeOut),m.hideEta=(new Date).getTime()+m.maxHideTime)}function C(){clearTimeout(s),m.hideEta=0,l.stop(!0,!0)[o.showMethod]({duration:o.showDuration,easing:o.showEasing})}function E(){var e=(m.hideEta-(new Date).getTime())/m.maxHideTime*100;v.width(e+"%")}}function f(){return e.extend({},{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'',newestOnTop:!0,preventDuplicates:!1,progressBar:!1},c.options)}function g(e){t||(t=u()),e.is(":visible")||(e.remove(),e=null,0===t.children().length&&(t.remove(),r=void 0))}}()}.apply(t,r))||(e.exports=a)},1530:(e,t,n)=>{"use strict";var r=n(8710).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},7007:(e,t,n)=>{"use strict";n(4916);var r=n(1320),a=n(2261),o=n(7293),i=n(5112),s=n(8880),l=i("species"),c=RegExp.prototype;e.exports=function(e,t,n,u){var d=i(e),p=!o((function(){var t={};return t[d]=function(){return 7},7!=""[e](t)})),v=p&&!o((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[l]=function(){return n},n.flags="",n[d]=/./[d]),n.exec=function(){return t=!0,null},n[d](""),!t}));if(!p||!v||n){var f=/./[d],g=t(d,""[e],(function(e,t,n,r,o){var i=t.exec;return i===a||i===c.exec?p&&!o?{done:!0,value:f.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}));r(String.prototype,e,g[0]),r(c,d,g[1])}u&&s(c[d],"sham",!0)}},647:(e,t,n)=>{var r=n(7908),a=Math.floor,o="".replace,i=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,l,c,u){var d=n+e.length,p=l.length,v=s;return void 0!==c&&(c=r(c),v=i),o.call(u,v,(function(r,o){var i;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(d);case"<":i=c[o.slice(1,-1)];break;default:var s=+o;if(0===s)return r;if(s>p){var u=a(s/10);return 0===u?r:u<=p?void 0===l[u-1]?o.charAt(1):l[u-1]+o.charAt(1):r}i=l[s-1]}return void 0===i?"":i}))}},2814:(e,t,n)=>{var r=n(7854),a=n(7293),o=n(1340),i=n(3111).trim,s=n(1361),l=r.parseFloat,c=r.Symbol,u=c&&c.iterator,d=1/l(s+"-0")!=-1/0||u&&!a((function(){l(Object(u))}));e.exports=d?function(e){var t=i(o(e)),n=l(t);return 0===n&&"-"==t.charAt(0)?-0:n}:l},3009:(e,t,n)=>{var r=n(7854),a=n(7293),o=n(1340),i=n(3111).trim,s=n(1361),l=r.parseInt,c=r.Symbol,u=c&&c.iterator,d=/^[+-]?0x/i,p=8!==l(s+"08")||22!==l(s+"0x16")||u&&!a((function(){l(Object(u))}));e.exports=p?function(e,t){var n=i(o(e));return l(n,t>>>0||(d.test(n)?16:10))}:l},7651:(e,t,n)=>{var r=n(9670),a=n(614),o=n(4326),i=n(2261);e.exports=function(e,t){var n=e.exec;if(a(n)){var s=n.call(e,t);return null!==s&&r(s),s}if("RegExp"===o(e))return i.call(e,t);throw TypeError("RegExp#exec called on incompatible receiver")}},2261:(e,t,n)=>{"use strict";var r,a,o=n(1340),i=n(7066),s=n(2999),l=n(2309),c=n(30),u=n(9909).get,d=n(9441),p=n(7168),v=RegExp.prototype.exec,f=l("native-string-replace",String.prototype.replace),g=v,h=(r=/a/,a=/b*/g,v.call(r,"a"),v.call(a,"a"),0!==r.lastIndex||0!==a.lastIndex),m=s.UNSUPPORTED_Y||s.BROKEN_CARET,x=void 0!==/()??/.exec("")[1];(h||x||m||d||p)&&(g=function(e){var t,n,r,a,s,l,d,p=this,b=u(p),w=o(e),I=b.raw;if(I)return I.lastIndex=p.lastIndex,t=g.call(I,w),p.lastIndex=I.lastIndex,t;var C=b.groups,E=m&&p.sticky,T=i.call(p),y=p.source,O=0,D=w;if(E&&(-1===(T=T.replace("y","")).indexOf("g")&&(T+="g"),D=w.slice(p.lastIndex),p.lastIndex>0&&(!p.multiline||p.multiline&&"\n"!==w.charAt(p.lastIndex-1))&&(y="(?: "+y+")",D=" "+D,O++),n=new RegExp("^(?:"+y+")",T)),x&&(n=new RegExp("^"+y+"$(?!\\s)",T)),h&&(r=p.lastIndex),a=v.call(E?n:p,D),E?a?(a.input=a.input.slice(O),a[0]=a[0].slice(O),a.index=p.lastIndex,p.lastIndex+=a[0].length):p.lastIndex=0:h&&a&&(p.lastIndex=p.global?a.index+a[0].length:r),x&&a&&a.length>1&&f.call(a[0],n,(function(){for(s=1;s