');f.title!==""&&(n+=`
${t.replace("[age]",`${f.minAge}`)}`;+`
`;n+=``;f.afterContent!==""&&(n+=f.afterContent);n+="<\/div><\/div>";r("body").append(n);r(".avwp-av-overlay").animate({opacity:1},500,()=>{e.reCenter(r(".avwp-av")),r(".avwp-av").css({opacity:1})});r(".avwp-av .day, .avwp-av .year").focus(function(){r(this).removeAttr("placeholder")})},setAge(){e.age="";e.age=Math.abs(Date.now()-1970)},setSessionStorage(n,t){try{return sessionStorage.setItem(n,t),!0}catch(i){return!1}},handleSuccess(){const n=`${f.successText}
`;f.messageTime!=0&&r(".avwp-av").html(n);setTimeout(()=>{r(".avwp-av").animate({top:"-350px"},f.successTime,()=>{r(".avwp-av-overlay").animate({opacity:"0"},f.messageTime,()=>{f.redirectTo!==""?window.location.replace(f.redirectTo):r(".avwp-av-overlay, .avwp-av").remove()})})},f.messageTime)},handleUnderAge(){const n=`${f.failText}
`;r(".avwp-av").html(n);f.redirectOnFail!==""&&setTimeout(()=>{window.location.replace(f.redirectOnFail)},f.messageTime)}};var o=t("age-verification");if(o)if(f.adminDebug!=="")i("age-verification");else return!1;e.buildHtml();r(".avwp-av button.yes").on("click",()=>{n("age-verification","true",f.cookieDays),e.handleSuccess()});r(".avwp-av button.no").on("click",()=>{e.handleUnderAge()});r(window).resize(()=>{e.reCenter(r(".avwp-av")),setTimeout(()=>{e.reCenter(r(".avwp-av"))},500)})}});jQuery(document).ready(function(n){n.ageCheck({})});console.log("page is fully loaded")})