System.register(["./index-c820db66.system.js"],(function(e){"use strict";var t,i,o,n;return{setters:[function(e){t=e.r;i=e.j;o=e.h;n=e.k}],execute:function(){var r=".sc-smoothly-notification-h{display:block;min-width:32.6%;min-height:3em;border-radius:5px;margin:.5em}[hidden].sc-smoothly-notification-h{display:none}smoothly-trigger.sc-smoothly-notification{float:right;text-align:right;margin-right:0.2em}";var s=e("smoothly_notification",function(){function e(e){var o=this;t(this,e);this.remove=i(this,"remove",7);this.tick={};this.listener=function(e){console.log("changed: ",e);if(e.state=="closed")o.remove.emit(e);else o.tick={}}}Object.defineProperty(e.prototype,"color",{get:function(){var e;switch(this.notice.state){case"delayed":case"warning":e="warning";break;case"success":e="success";break;case"executing":e="light";break;case"failed":e="danger";break;default:e="light";break}return e},enumerable:false,configurable:true});e.prototype.onTrigger=function(e){if(e.detail.name=="close"){e.stopPropagation();this.notice.close()}};e.prototype.onUpdatedNotice=function(e,t){if(t)t.unlisten(this.listener);e.listen(this.listener)};e.prototype.componentDidLoad=function(){this.onUpdatedNotice(this.notice)};e.prototype.render=function(){return o(n,{color:this.color,fill:"solid"},o("smoothly-trigger",{fill:"clear",name:"close"},o("smoothly-icon",{name:"close-circle-outline"})),o("p",null,this.notice.message))};Object.defineProperty(e,"watchers",{get:function(){return{notice:["onUpdatedNotice"]}},enumerable:false,configurable:true});return e}());s.style=r}}}));