;'use strict';(function(exports){var BaseView=function(){this.childViews={};};BaseView.prototype.childViews=null;BaseView.prototype.CONTAINER_ID=null;BaseView.prototype.container=null;BaseView.prototype.start=function(){if(this.CONTAINER_ID){this.container=document.getElementById(this.CONTAINER_ID);}};BaseView.prototype.stop=function(){this.container=null;};BaseView.prototype.beforeShow=function(options){return Promise.all(Object.keys(this.childViews).map(name=>this.childViews[name].beforeShow(options)));};BaseView.prototype.show=function(){return Promise.all(Object.keys(this.childViews).map(name=>this.childViews[name].show()));};BaseView.prototype.beforeHide=function(){return Promise.all(Object.keys(this.childViews).map(name=>this.childViews[name].beforeHide()));};BaseView.prototype.hide=function(){return Promise.all(Object.keys(this.childViews).map(name=>this.childViews[name].hide()));};exports.BaseView=BaseView;})(window);