var __extends=(this&&this.__extends)||(function(){var extendStatics=function(d,b){extendStatics=Object.setPrototypeOf||({__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b;})||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p];};return extendStatics(d,b);};return function(d,b){extendStatics(d,b);function __(){this.constructor=d;} d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __());};})();var __decorate=(this&&this.__decorate)||function(decorators,target,key,desc){var c=arguments.length,r=c<3?target:desc===null?desc=Object.getOwnPropertyDescriptor(target,key):desc,d;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)if(d=decorators[i])r=(c<3?d(r):c>3?d(target,key,r):d(target,key))||r;return c>3&&r&&Object.defineProperty(target,key,r),r;};define(["require","exports","react","dojo/on","@login/interfaces/initial-state-interface","@core/with-state-manager"],function(require,exports,React,on,initial_state_interface_1,with_state_manager_1){Object.defineProperty(exports,"__esModule",{value:true});var Dialogs_container=(function(_super){__extends(Dialogs_container,_super);function Dialogs_container(props){return _super.call(this,props)||this;} Dialogs_container.prototype.componentDidMount=function(){var _this=this;this.dialog_watch_handle=on(this.props.state_manager,this.props.state_manager.UPDATE_RUN_STATE,function(data){switch(data.property){case initial_state_interface_1.Initial_state_enum.dialog_queue:_this.forceUpdate();break;}});};Dialogs_container.prototype.render=function(){return(this.props.state_manager.getRunState().dialog_queue.map(function(d){return d;}));};Dialogs_container.prototype.componentWillUnmount=function(){this.dialog_watch_handle.unwatch();};Dialogs_container=__decorate([with_state_manager_1.default],Dialogs_container);return Dialogs_container;}(React.PureComponent));exports.default=Dialogs_container;});