let modalElement={};const Modal={init:function(){modalElement={modal:jQuery("#tablesome__modal--premium-notice"),open:jQuery(".tablesome__modal--open"),close:jQuery(".tablesome__modal--close")},this.open(),this.close(),this.clickOutside()},open:function(){modalElement.open.on("click",(function(){modalElement.modal.css("display","flex")}))},close:function(){modalElement.close.on("click",(function(){modalElement.modal.hide()}))},clickOutside:function(){jQuery(window).on("click",(function(e){e.target==modalElement.modal[0]&&modalElement.modal.hide()}))}};module.exports=Modal;