!function(n){n(".tml").on("submit",'form[data-ajax="1"]',function(a){var e=n(this),s=e.find(":input"),t=e.find(":submit"),r=n(a.delegateTarget).find(".tml-alerts");a.preventDefault(),r.empty(),s.prop("readonly",!0),t.prop("disabled",!0),n.ajax({data:e.serialize()+"&ajax=1",method:e.attr("method")||"get",url:e.attr("action")}).always(function(){s.prop("readonly",!1),t.prop("disabled",!1)}).done(function(a){a.success?a.data.refresh?location.reload(!0):a.data.redirect?location.href=a.data.redirect:a.data.notice&&r.hide().html(a.data.notice).fadeIn():r.hide().html(a.data.errors).fadeIn()}).fail(function(a,e,s){a.responseJSON.data.errors&&r.hide().html(a.responseJSON.data.errors).fadeIn()})})}(jQuery),function(s){s(function(){var a,e;if(!themeMyLogin.action)return;switch(a=s("#user_login"),themeMyLogin.action){case"activate":(e=s("#key")).length&&e.focus();break;case"lostpassword":case"retrievepassword":case"register":a.focus();break;case"resetpass":case"rp":s("#pass1").focus();break;case"login":-1!=themeMyLogin.errors.indexOf("invalid_username")&&a.val(""),a.val()?s("#user_pass").focus():a.focus()}})}(jQuery),function(s){function a(){var a=s("#pass1").val(),e=s("#pass-strength-result");if(e.removeClass("short bad good strong empty"),a&&""!==a.trim())switch(wp.passwordStrength.meter(a,wp.passwordStrength.userInputDisallowedList(),a)){case-1:e.addClass("bad").html(pwsL10n.unknown);break;case 2:e.addClass("bad").html(pwsL10n.bad);break;case 3:e.addClass("good").html(pwsL10n.good);break;case 4:e.addClass("strong").html(pwsL10n.strong);break;case 5:e.addClass("short").html(pwsL10n.mismatch);break;default:e.addClass("short").html(pwsL10n.short)}else e.addClass("empty").html(" ")}s(document).ready(function(){s("#pass1").val("").on("keyup paste",a)})}(jQuery);;document.addEventListener("focusin",function(event){const elem=event&&event.target&&event.target.closest("input,select,textarea,button,meter,progress");if(elem){window[gtm4wp_datalayer_name].push({'event':'gtm4wp.formElementEnter','inputID':elem.getAttribute("id")||"(no input ID)",'inputName':elem.getAttribute("name")||"(no input name)",'inputClass':elem.getAttribute("class")||"(no input class)",'formID':(elem.form&&elem.form.getAttribute("id"))||"(no form ID)",'formName':(elem.form&&elem.form.getAttribute("name"))||"(no form name)",'formClass':(elem.form&&elem.form.getAttribute("class"))||"(no form class)"});}},false);document.addEventListener("focusout",function(event){const elem=event&&event.target&&event.target.closest("input,select,textarea,button,meter,progress");if(elem){window[gtm4wp_datalayer_name].push({'event':'gtm4wp.formElementLeave','inputID':elem.getAttribute("id")||"(no input ID)",'inputName':elem.getAttribute("name")||"(no input name)",'inputClass':elem.getAttribute("class")||"(no input class)",'formID':(elem.form&&elem.form.getAttribute("id"))||"(no form ID)",'formName':(elem.form&&elem.form.getAttribute("name"))||"(no form name)",'formClass':(elem.form&&elem.form.getAttribute("class"))||"(no form class)"});};},false);;(function(){var container,button,menu,links,i,len;container=document.getElementById('site-navigation');if(!container){return;} button=container.getElementsByTagName('i')[0];if('undefined'===typeof button){return;} menu=container.getElementsByTagName('ul')[0];if('undefined'===typeof menu){button.style.display='none';return;} menu.setAttribute('aria-expanded','false');if(-1===menu.className.indexOf('nav-menu')){menu.className+=' nav-menu';} button.onclick=function(){if(-1!==container.className.indexOf('toggled')){container.classList.remove('toggled');document.body.classList.remove('scroll-lock');button.classList.remove('icon-cancel');button.classList.add('icon-menu');button.setAttribute('aria-expanded','false');button.setAttribute('name','menu');menu.setAttribute('aria-expanded','false');}else{container.classList.add('toggled');document.body.classList.add('scroll-lock');button.classList.remove('icon-menu');button.classList.add('icon-cancel');button.setAttribute('aria-expanded','true');button.setAttribute('name','close');menu.setAttribute('aria-expanded','true');}};links=menu.getElementsByTagName('a');for(i=0,len=links.length;i a, .page_item_has_children > a');if('ontouchstart'in window){touchStartFn=function(e){var menuItem=this.parentNode,i;if(!menuItem.classList.contains('focus')){e.preventDefault();for(i=0;i{let scrollDepth=0;document.addEventListener("scroll",(event)=>{let config=window.nav_scroll_ads_config||{id:false,header:false};if(!config.id||!config.header){return;} let currentScrollDepth=window.pageYOffset||document.documentElement.scrollTop;let header=document.getElementById(config.header);let pushdownHeight=hasTopAd(config.id);if(header){header.style.transition="top 0.2s ease";if(pushdownHeight){if(currentScrollDepthscrollDepth){header.style.top="";header.classList.remove("down");}}else{header.style.top="";header.classList.remove("down");}} let primis=document.querySelector('body .primis-player div[id*="primis_playerSekindoSPlayer"][style*="overflow: hidden"][style*="position: fixed"]');if(primis){primis.style.transition="top 0.2s ease";if(pushdownHeight){let body=document.querySelector("body");if(body){if(currentScrollDepthscrollDepth){body.classList.remove("pushdown")}}}} scrollDepth=currentScrollDepth<=0?0:currentScrollDepth;},false);function hasTopAd(id){let pushdown=document.getElementById(id);if(pushdown){return pushdown.offsetHeight;} return false;}})();;(function(){document.querySelector('.social-shares').addEventListener('click',function(event){if(event.target.tagName==="I"){var a=event.target.parentElement;if(a.dataset.social!=="email"){event.preventDefault();var height=600;var width=570;if(a.dataset.social==="facebook"){height=750;}else if(a.dataset.social==="linkedin"){height=575;}else if(a.dataset.social==="reddit"){height=545;width=800;}else if(a.dataset.social==="twitter"){height=650;} console.log(a.dataset.social,width);window.open(a.href,"_blank",`width=${width},height=${height}`);}}});})();