System.register(["./p-497b071d.system.js","./p-9a3061e6.system.js","./p-dc274261.system.js","./p-bfa6d5f6.system.js","./p-50192ed9.system.js"],(function(t){"use strict";var n,i,o,e,s,r,c;return{setters:[function(t){n=t.L},function(t){i=t.g},function(t){o=t.S;e=t.T;s=t.Q},function(t){r=t.E},function(t){c=t.D}],execute:function(){var u=4;var f=function(){function t(t,n){if(t===void 0){t=null}if(n===void 0){n=null}this.topContainer=t;this.bottomContainer=n;this.topContainer=i("top");this.bottomContainer=i("bottom")}t.prototype.call=function(t){if(typeof t==="string"){this.prepareNotification({message:t})}else{this.prepareNotification(t)}};t.prototype.shouldQueue=function(t){if(!this.topContainer&&t.position==="top"){this.topContainer=i("top")}if(!this.bottomContainer&&t.position==="bottom"){this.bottomContainer=i("bottom")}return(t.position==="bottom"?this.bottomContainer:this.topContainer).childElementCount>=u};t.prototype.prepareNotification=function(t){var n=this;if(this.shouldQueue(t)){setTimeout((function(){return n.prepareNotification(t)}),250)}else{var i=document.createElement("x-notification");if(t.label){var o=document.createElement("h4");o.innerText=t.label;i.appendChild(o)}if(t.onclose){i.addEventListener("close",t.onclose)}var e=document.createElement("p");e.innerHTML=t.message;i.appendChild(e);t.color&&i.setAttribute("color",t.color);t.icon&&i.setAttribute("icon",t.icon);t.interval&&i.setAttribute("interval",t.interval.toString());(t.position==="bottom"?this.bottomContainer:this.topContainer).insertAdjacentElement("afterbegin",i)}};t.prototype.success=function(t,i,o,e){this.prepareNotification({color:"success",label:i||n("alert.success"),message:t,icon:o,interval:e})};t.prototype.fail=function(t,i,o,e){this.prepareNotification({color:"danger",label:i||n("alert.danger"),message:t,icon:o,interval:e})};t.create=function(){var n=new t;return Object.assign((function(t){return n.call(t)}),{success:function(t,i,o,e){return n.success(t,i,o,e)},fail:function(t,i,o,e){return n.fail(t,i,o,e)}})};return t}();var a=f.create();window.lang=n;window.notification=a;window.store=o;window.theme=e;window.query=s;window.errors=r;window.dialog=c;var l={lang:n,notification:a,store:o,theme:e,query:s,errors:r,dialog:c};var h=t("UI",l)}}}));