$((function(){var e=$("#newsletter-popup"),n=function(e){var n=new Date;n.setTime(n.getTime()+e),document.cookie="newsletter_popup=1; expires=".concat(n.toUTCString(),"; path=/")};e.length>0&&(-1===document.cookie.indexOf("newsletter_popup=1")&&setTimeout((function(){e.modal("show")}),1e3*e.data("delay")),e.on("show.bs.modal",(function(){var n=e.find(".modal-dialog");n.css("margin-top",Math.max(0,($(window).height()-n.height())/2)/2)})).on("hide.bs.modal",(function(){e.find("form").find('input[name="dont_show_again"]').is(":checked")?n(2592e5):n(36e5)})),document.addEventListener("newsletter.subscribed",(function(){return n()})))}));