(($,e,t)=>{"use strict";const l=(t,l,s)=>{const i=new Date;i.setTime(i.getTime()+864e5*s),e.cookie=t+"="+l+";expires="+i.toUTCString()+";SameSite=strict;path=/"},s=t=>{t+="=";const l=e.cookie.split(";");for(let e=0;e<l.length;++e){let s=l[e];while(" "===s.charAt(0))s=s.substring(1);if(0===s.indexOf(t))return s.substring(t.length,s.length)}return""},i=e=>{let t,l=e;e&&(t=e.dataset.alertMessage,l=e.closest(t?".alert-inner":".module-alert")),$(l).slideUp(400,(function(){const e=$(this).parent();if(t&&!e.find(".alert-message").length){const l=$('<div class="alert-message" />').html(t+'<div class="alert-close tf_close" />');e.html(l),l.hide().slideDown(400)}}))};t.on("builder_load_module_partial",((e,a)=>{if(!0!==a||e.classList.contains("module-alert"))for(let a=t.selectWithParent("module-alert",e),r=a.length-1;r>-1;--r){let e=a[r],{moduleId:t,alertLimit:o,autoClose:c}=e.dataset;if(o&&!isNaN(o)){let e=~~s(t);l(t,++e,365)}c&&!isNaN(c)&&setTimeout((()=>{i(e)}),1e3*c)}})).body.on("click.tb_alert",".module-alert .alert-close",(function(e){e.preventDefault(),i(this)}))})(jQuery,document,Themify);