text: !function(t){function e(i){if(n[i])return n[i].exports;var o=n[i]={exports:{},id:i,loaded:!1};return t[i].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0}),e.Toaster=void 0;var o=n(1),r=i(o);e.Toaster=r["default"],window.Toaster=e.Toaster},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(2),a=(i(s),function(){function t(){o(this,t),this._nodeContainer=null,this._toasts=[],this._onToastHidden=this._onToastHidden.bind(this)}return r(t,[{key:"_initContainer",value:function(){this._nodeContainer||(this._nodeContainer=document.createElement("DIV"),this._nodeContainer.classList.add("toasts"),document.body.appendChild(this._nodeContainer))}},{key:"createAlert",value:function(t,e){this._initContainer();var n=new d(t,e);return n.onHidden=this._onToastHidden,this._nodeContainer.firstChild?this._nodeContainer.insertBefore(n.getNode(),this._nodeContainer.firstChild):this._nodeContainer.appendChild(n.getNode()),this._toasts.push(n),n}},{key:"remove",value:function(t){t&&(this._nodeContainer.removeChild(t.getNode()),-1!==this._toasts.indexOf(t)&&this._toasts.splice(this._toasts.indexOf(t),1))}},{key:"removeAll",value:function(){for(var t=0;t<this._toasts.length;)this._nodeContainer.removeChild(toast.getNode()),t++;this._toasts=[]}},{key:"_onToastHidden",value:function(t){this.remove(t)}}]),t}());e["default"]=a;var d=function(){function t(e,n){var i=this;o(this,t),this.hiding=!1,this._hideTimerId=-1,this._alertType=n,this.delay=3e3,this.onHidden=null;var r=document.createElement("DIV");r.classList.add("toast"),r.classList.add("alert"),r.classList.add(n);var s=document.createElement("P");s.innerHTML=""+e,r.appendChild(s);var a=document.createElement("A");a.href="#",a.innerHTML='<i class="icon-cancel"></i>',a.addEventListener("click",function(t){t.preventDefault(),i.close()}),r.appendChild(a),this._node=document.createElement("DIV"),this._node.classList.add("toast-wrapper"),this._node.appendChild(r),this._transitionEndEvent=this._findTransitionEvent()}return r(t,[{key:"close",value:function(){this.hiding||(-1!==this._hideTimerId&&(clearTimeout(this._hideTimerId),this._hideTimerId=-1),this.hide())}},{key:"hideAfterDelay",value:function(t){var e=this;this._hideTimerId=setTimeout(function(t){e.hide()},t?t:this.delay)}},{key:"hide",value:function(){this.hiding=!0,this._node.classList.add("hide"),this._onTransitionEnd=this._onTransitionEnd.bind(this),this._node.addEventListener(this._transitionEndEvent,this._onTransitionEnd)}},{key:"getAlertType",value:function(){return this._alertType}},{key:"getNode",value:function(){return this._node}},{key:"_findTransitionEvent",value:function(){if(this._node){var t=void 0,e={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in e)if(void 0!==this._node.style[t])return e[t]}return null}},{key:"_onTransitionEnd",value:function(t){"opacity"===t.propertyName&&(this._node.removeEventListener(this._transitionEndEvent,this._onTransitionEnd),"function"==typeof this.onHidden&&this.onHidden(this))}}]),t}();a.AlertTypes={SUCCESS:"alert-success",INFO:"alert-info",WARNING:"alert-warning",DANGER:"alert-danger"}},function(t,e,n){"use strict";var i=n(3);"string"==typeof i&&(i=[[t.id,i,""]]);n(5)(i,{});i.locals&&(t.exports=i.locals)},function(t,e,n){e=t.exports=n(4)(),e.push([t.id,".toasts{position:fixed;z-index:10000;left:0;top:70px;width:100%;text-align:center}.toasts .toast-wrapper{margin-bottom:10px;transition:all .5s ease}.toasts .toast-wrapper.hide{margin-top:-20px;opacity:0}.toasts .toast{display:inline-block;margin:0 auto;padding:5px 10px;border-radius:14px;min-height:31px;padding:15px;border:1px solid transparent;border-radius:5px}.toasts .toast>p,.toasts .toast>ul{margin-bottom:0}.toasts .toast>p+p{margin-top:5px}.toasts .toast a,.toasts .toast p{display:inline-block}.toasts .toast a{text-decoration:none;margin-left:5px}",""])},function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e<this.length;e++){var n=this[e];n[2]?t.push("@media "+n[2]+"{"+n[1]+"}"):t.push(n[1])}return t.join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var i={},o=0;o<this.length;o++){var r=this[o][0];"number"==typeof r&&(i[r]=!0)}for(o=0;o<e.length;o++){var s=e[o];"number"==typeof s[0]&&i[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),t.push(s))}},t}},function(t,e,n){function i(t,e){for(var n=0;n<t.length;n++){var i=t[n],o=h[i.id];if(o){o.refs++;for(var r=0;r<o.parts.length;r++)o.parts[r](i.parts[r]);for(;r<i.parts.length;r++)o.parts.push(u(i.parts[r],e))}else{for(var s=[],r=0;r<i.parts.length;r++)s.push(u(i.parts[r],e));h[i.id]={id:i.id,refs:1,parts:s}}}}function o(t){for(var e=[],n={},i=0;i<t.length;i++){var o=t[i],r=o[0],s=o[1],a=o[2],d=o[3],u={css:s,media:a,sourceMap:d};n[r]?n[r].parts.push(u):e.push(n[r]={id:r,parts:[u]})}return e}function r(t,e){var n=m(),i=g[g.length-1];if("top"===t.insertAt)i?i.nextSibling?n.insertBefore(e,i.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),g.push(e);else{if("bottom"!==t.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(e)}}function s(t){t.parentNode.removeChild(t);var e=g.indexOf(t);e>=0&&g.splice(e,1)}function a(t){var e=document.createElement("style");return e.type="text/css",r(t,e),e}function d(t){var e=document.createElement("link");return e.rel="stylesheet",r(t,e),e}function u(t,e){var n,i,o;if(e.singleton){var r=y++;n=_||(_=a(e)),i=l.bind(null,n,r,!1),o=l.bind(null,n,r,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=d(e),i=f.bind(null,n),o=function(){s(n),n.href&&URL.revokeObjectURL(n.href)}):(n=a(e),i=c.bind(null,n),o=function(){s(n)});return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else o()}}function l(t,e,n,i){var o=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=b(e,o);else{var r=document.createTextNode(o),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(r,s[e]):t.appendChild(r)}}function c(t,e){var n=e.css,i=e.media;if(i&&t.setAttribute("media",i),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function f(t,e){var n=e.css,i=e.sourceMap;i&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var o=new Blob([n],{type:"text/css"}),r=t.href;t.href=URL.createObjectURL(o),r&&URL.revokeObjectURL(r)}var h={},p=function(t){var e;return function(){return"undefined"==typeof e&&(e=t.apply(this,arguments)),e}},v=p(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),m=p(function(){return document.head||document.getElementsByTagName("head")[0]}),_=null,y=0,g=[];t.exports=function(t,e){e=e||{},"undefined"==typeof e.singleton&&(e.singleton=v()),"undefined"==typeof e.insertAt&&(e.insertAt="bottom");var n=o(t);return i(n,e),function(t){for(var r=[],s=0;s<n.length;s++){var a=n[s],d=h[a.id];d.refs--,r.push(d)}if(t){var u=o(t);i(u,e)}for(var s=0;s<r.length;s++){var d=r[s];if(0===d.refs){for(var l=0;l<d.parts.length;l++)d.parts[l]();delete h[d.id]}}}};var b=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()}]);
  //# sourceMappingURL=toaster.min.js.map