text: "use strict";var _ev_mode=!1;EventThrower&&(_ev_mode=!0);var ModalWindow=function(){_ev_mode&&EventThrower.call(this),this.init=function(e){this._container=document.getElementById(e),this._container.style.display="none",this._return_value=null,_ev_mode&&this.trigger("init",[{target:this._container}])},this.show=function(){if(this.backdrop){var e=document.getElementById("modal-backdrop");if(!e){var t=document.getElementsByTagName("body")[0];e=document.createElement("div"),e.setAttribute("id","modal-backdrop"),e.style.zIndex="10",e.style.backgroundColor="rgba(25, 25, 25, 0.4)",e.style.width="100%",e.style.height="100%",e.style.top="0",e.style.left="0",e.style.position="absolute";if(this.backdrop==="clickable"){var n=this;e.onclick=function(e){e.preventDefault(),n.hide()}}t.appendChild(e)}else e.style.display="block"}this._container&&(this.width?this._container.style.width=this.width:this._container.style.width="60%",this.height?this._container.style.height=this.height:this._container.style.height="40%",this._container.style.position="absolute",this._container.style.display="block",this._container.style.zIndex="100",this._container.style.margin="0 auto",this._container.style.overflow="hidden",this._container.style.left="0",this._container.style.right="0",_ev_mode&&this.trigger("shown",[{target:this._container}]))},this.hide=function(){if(this.backdrop){var e=document.getElementById("modal-backdrop");e&&(e.style.display="none")}this._container&&(this._container.style.display="none",_ev_mode&&this.trigger("hidden",[{target:this._container,value:this._return_value}]))},this.setValue=function(e){this._return_value=e},this.getValue=function(){return this._return_value}};ModalWindow.prototype=Object.create(EventThrower.prototype),ModalWindow.prototype.constructor=ModalWindow;var Modal=function(){var e={};return _ev_mode&&(e=Object.create(EventThrower)),e.init=function(e,t){var n=new ModalWindow;n.init(e);for(var r in t)r in n||(n[r]=t[r]);return n},e}();