(self.webpackChunkglobal_main=self.webpackChunkglobal_main||[]).push([[3783],{6044:function(){function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,i=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,s=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw s}}}}(r);try{var s=function(){var e=t.value,r=e.querySelector(".message-modal-link");if(!r)return 1;r.addEventListener("click",(function(t){t.preventDefault(),a.classList.add("active"),n.classList.add("wrapper-visible");var r=n.querySelector("#messageModalIcon"),o=n.querySelector("#messageModalHeader"),s=n.querySelector("#messageModalBody"),i=n.querySelector("#messageModalLink");r.classList.value="",r.classList.add(e.dataset.icon),o.innerHTML=e.dataset.title,s.innerHTML=e.dataset.body,i.href=e.dataset.url,i.innerHTML=e.dataset.urlText||e.dataset.url.replace(/^https?:\/\//,"")}))};for(o.s();!(t=o.n()).done;)s()}catch(e){o.e(e)}finally{o.f()}n.querySelector(".hide-messages-modal").addEventListener("click",(function(){a.classList.remove("active"),n.classList.remove("wrapper-visible")})),a.addEventListener("click",(function(){a.classList.remove("active"),n.classList.remove("wrapper-visible")}))},8624:function(){}},function(e){var t=function(t){return e(e.s=t)};t(6044),t(8624)}]); //# sourceMappingURL=messagesModal.4ae85f134c48b70899b9.js.map