System.register(["./p-3434a1db.system.js","./p-c9c9cc3a.system.js","./p-90924752.system.js","./p-825267c2.system.js","./p-6bed43c9.system.js"],(function(t){"use strict";var i,n,o,e,s,r,c;return{setters:[function(t){i=t.L},function(t){n=t.g},function(t){o=t.T;e=t.S;s=t.Q},function(t){r=t.E},function(t){c=t.D}],execute:function(){var u=4;var a=function(){function t(t,i){if(t===void 0){t=null}if(i===void 0){i=null}this.topContainer=t;this.bottomContainer=i;this.topContainer=n("top");this.bottomContainer=n("bottom")}t.prototype.call=function(t){if(typeof t==="string"){this.prepareNotification({message:t})}else{this.prepareNotification(t)}};t.prototype.calculateItemsByPosition=function(t){if(this.topContainer&&t==="top"){var i=this.topContainer.childElementCount;this.topContainer.classList.remove("more-odd","more-even");i>1&&this.topContainer.classList.add("more-odd");i>2&&this.topContainer.classList.add("more-even")}if(this.bottomContainer&&t==="bottom"){var i=this.bottomContainer.childElementCount;this.bottomContainer.classList.remove("more-odd","more-even");i>1&&this.bottomContainer.classList.add("more-odd");i>2&&this.bottomContainer.classList.add("more-even")}};t.prototype.shouldQueue=function(t){if(!this.topContainer&&t.position==="top"){this.topContainer=n("top");this.topContainer.addEventListener("slotchange",(function(){return console.log("change")}))}if(!this.bottomContainer&&t.position==="bottom"){this.bottomContainer=n("bottom")}return(t.position==="bottom"?this.bottomContainer:this.topContainer).childElementCount>=(o.isMobile()?1:u)};t.prototype.prepareNotification=function(t){var i=this;var n;if(this.shouldQueue(t)){setTimeout((function(){return i.prepareNotification(t)}),250)}else{var o=document.createElement("x-notification");if(t.label){var e=document.createElement("h4");e.innerText=t.label;o.appendChild(e)}if(t.onclose){o.addEventListener("close",t.onclose)}var s=document.createElement("p");s.innerHTML=t.message;o.appendChild(s);t.color&&o.setAttribute("color",t.color);t.icon&&o.setAttribute("icon",t.icon);t.interval&&o.setAttribute("interval",t.interval.toString());(t.position==="bottom"?this.bottomContainer:this.topContainer).insertAdjacentElement("afterbegin",o);this.calculateItemsByPosition((n=t.position)!==null&&n!==void 0?n:"top")}};t.prototype.success=function(t,n,o,e){this.prepareNotification({color:"success",label:n||i("alert.success"),message:t,icon:o,interval:e})};t.prototype.fail=function(t,n,o,e){this.prepareNotification({color:"danger",label:n||i("alert.danger"),message:t,icon:o,interval:e})};t.create=function(){var i=new t;return Object.assign((function(t){return i.call(t)}),{success:function(t,n,o,e){return i.success(t,n,o,e)},fail:function(t,n,o,e){return i.fail(t,n,o,e)}})};return t}();var f=a.create();window.lang=i;window.notification=f;window.store=e;window.theme=o;window.query=s;window.errors=r;window.dialog=c;var h={lang:i,notification:f,store:e,theme:o,query:s,errors:r,dialog:c};var m=t("UI",h)}}}));