System.register(["./p-4396d54f.system.js","./p-529fafb4.system.js","./p-dc274261.system.js","./p-bfa6d5f6.system.js","./p-0b6d83a1.system.js"],(function(t){"use strict";var n,i,o,s,e,r,c;return{setters:[function(t){n=t.L},function(t){i=t.g},function(t){o=t.S;s=t.T;e=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 s=document.createElement("p");s.innerHTML=t.message;i.appendChild(s);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,s){this.prepareNotification({color:"success",label:i||n("alert.success"),message:t,icon:o,interval:s})};t.prototype.fail=function(t,i,o,s){this.prepareNotification({color:"danger",label:i||n("alert.danger"),message:t,icon:o,interval:s})};t.create=function(){var n=new t;return Object.assign((function(t){return n.call(t)}),{success:function(t,i,o,s){return n.success(t,i,o,s)},fail:function(t,i,o,s){return n.fail(t,i,o,s)}})};return t}();var a=f.create();window.lang=n;window.notification=a;window.store=o;window.theme=s;window.query=e;window.errors=r;window.dialog=c;var l={lang:n,notification:a,store:o,theme:s,query:e,errors:r,dialog:c};var h=t("UI",l)}}}));