!function(e,t,n){var o=[],s=[],i={_version:"3.6.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var n=this;setTimeout((function(){t(n[e])}),0)},addTest:function(e,t,n){s.push({name:e,fn:t,options:n})},addAsyncTest:function(e){s.push({name:null,fn:e})}},r=function(){};r.prototype=i,r=new r;var a=i._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];function l(e,t){return typeof e===t}i._prefixes=a;var d=t.documentElement,u="svg"===d.nodeName.toLowerCase();function f(e){return e.replace(/([a-z])-([a-z])/g,(function(e,t,n){return t+n.toUpperCase()})).replace(/^-/,"")}function c(e){return e.replace(/([A-Z])/g,(function(e,t){return"-"+t.toLowerCase()})).replace(/^ms-/,"-ms-")}function p(){return"function"!=typeof t.createElement?t.createElement(arguments[0]):u?t.createElementNS.call(t,"http://www.w3.org/2000/svg",arguments[0]):t.createElement.apply(t,arguments)}var m,g=(m=!("onblur"in t.documentElement),function(e,t){var o;return!!e&&(t&&"string"!=typeof t||(t=p(t||"div")),!(o=(e="on"+e)in t)&&m&&(t.setAttribute||(t=p("div")),t.setAttribute(e,""),o="function"==typeof t[e],t[e]!==n&&(t[e]=n),t.removeAttribute(e)),o)});i.hasEvent=g;
var v="CSS"in e&&"supports"in e.CSS,b="supportsCSS"in e;function h(e,n,o,s){var i,r,a,l,f="modernizr",c=p("div"),m=function(){var e=t.body;return e||((e=p(u?"svg":"body")).fake=!0),e}();if(parseInt(o,10))for(;o--;)(a=p("div")).id=s?s[o]:f+(o+1),c.appendChild(a);return(i=p("style")).type="text/css",i.id="s"+f,(m.fake?m:c).appendChild(i),m.appendChild(c),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(t.createTextNode(e)),c.id=f,m.fake&&(m.style.background="",m.style.overflow="hidden",l=d.style.overflow,d.style.overflow="hidden",d.appendChild(m)),r=n(c,e),m.fake?(m.parentNode.removeChild(m),d.style.overflow=l,d.offsetHeight):c.parentNode.removeChild(c),!!r}r.addTest("supports",v||b);var y,w=(y=e.matchMedia||e.msMatchMedia)?function(e){var t=y(e);return t&&t.matches||!1}:function(t){var n=!1;return h("@media "+t+" { #modernizr { position: absolute; }}",(function(t){n="absolute"==(e.getComputedStyle?e.getComputedStyle(t,null):t.currentStyle).position})),n};i.mq=w;var S=i.testStyles=h;
r.addTest("touchevents",(function(){var n;if("ontouchstart"in e||e.DocumentTouch&&t instanceof DocumentTouch)n=!0;else{var o=["@media (",a.join("touch-enabled),("),"heartz",")","{#modernizr{top:9px;position:absolute}}"].join("");S(o,(function(e){n=9===e.offsetTop}))}return n}));var C="Moz O ms Webkit",T=i._config.usePrefixes?C.split(" "):[];i._cssomPrefixes=T;var x=function(t){var o,s=a.length,i=e.CSSRule;if(void 0===i)return n;if(!t)return!1;if((o=(t=t.replace(/^@/,"")).replace(/-/g,"_").toUpperCase()+"_RULE")in i)return"@"+t;for(var r=0;r<s;r++){var l=a[r];if(l.toUpperCase()+"_"+o in i)return"@-"+l.toLowerCase()+"-"+t}return!1};i.atRule=x;var _=i._config.usePrefixes?C.toLowerCase().split(" "):[];function P(e,t){return function(){return e.apply(t,arguments)}}i._domPrefixes=_;var E={elem:p("modernizr")};r._q.push((function(){delete E.elem}));var A={style:E.elem.style};function O(t,o){var s=t.length;if("CSS"in e&&"supports"in e.CSS){for(;s--;)if(e.CSS.supports(c(t[s]),o))return!0;return!1}if("CSSSupportsRule"in e){for(var i=[];s--;)i.push("("+c(t[s])+":"+o+")");return h("@supports ("+(i=i.join(" or "))+"){ #modernizr { position: absolute; }}",(function(t){return"absolute"==function(t,n,o){var s;if("getComputedStyle"in e){s=getComputedStyle.call(e,t,n);var i=e.console;null!==s?o&&(s=s.getPropertyValue(o)):i&&i[i.error?"error":"log"].call(i,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}else s=!n&&t.currentStyle&&t.currentStyle[o];return s}(t,null,"position")}))}return n}function G(e,t,o,s){if(s=!l(s,"undefined")&&s,!l(o,"undefined")){var i=O(e,o);if(!l(i,"undefined"))return i}for(var r,a,d,u,c,m=["modernizr","tspan","samp"];!A.style&&m.length;)r=!0,A.modElem=p(m.shift()),A.style=A.modElem.style;function g(){r&&(delete A.style,delete A.modElem)}for(d=e.length,a=0;a<d;a++)if(u=e[a],c=A.style[u],~(""+u).indexOf("-")&&(u=f(u)),A.style[u]!==n){if(s||l(o,"undefined"))return g(),"pfx"!=t||u;try{A.style[u]=o}catch(e){}if(A.style[u]!=c)return g(),"pfx"!=t||u}return g(),!1}r._q.unshift((function(){delete A.style}));i.testProp=function(e,t,o){return G([e],n,t,o)};function M(e,t,n,o,s){var i=e.charAt(0).toUpperCase()+e.slice(1),r=(e+" "+T.join(i+" ")+i).split(" ");return l(t,"string")||l(t,"undefined")?G(r,t,o,s):function(e,t,n){var o;for(var s in e)if(e[s]in t)return!1===n?e[s]:l(o=t[e[s]],"function")?P(o,n||t):o;return!1}(r=(e+" "+_.join(i+" ")+i).split(" "),t,n)}i.testAllProps=M;var L=i.prefixed=function(e,t,n){return 0===e.indexOf("@")?x(e):(-1!=e.indexOf("-")&&(e=f(e)),t?M(e,t,n):M(e,"pfx"))};i.prefixedCSS=function(e){var t=L(e);return t&&c(t)};function z(e,t,o){return M(e,n,n,t,o)}
r.addTest("forcetouch",(function(){return!!g(L("mouseforcewillbegin",e,!1),e)&&(MouseEvent.WEBKIT_FORCE_AT_MOUSE_DOWN&&MouseEvent.WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN)})),
r.addTest("objectfit",!!L("objectFit"),{aliases:["object-fit"]}),i.testAllProps=z,
r.addTest("cssanimations",z("animationName","a",!0)),
r.addTest("cssgridlegacy",z("grid-columns","10px",!0)),r.addTest("cssgrid",z("grid-template-rows","none",!0)),
r.addTest("cssfilters",(function(){if(r.supports)return z("filter","blur(2px)");var e=p("a");return e.style.cssText=a.join("filter:blur(2px); "),!!e.style.length&&(t.documentMode===n||t.documentMode>9)})),
r.addTest("csstransforms",(function(){return-1===navigator.userAgent.indexOf("Android 2.")&&z("transform","scale(1)",!0)})),
r.addTest("csstransforms3d",(function(){return!!z("perspective","1px",!0)})),
r.addTest("csstransitions",z("transition","all",!0)),function(){var e,t,n,i,a,d;for(var u in s)if(s.hasOwnProperty(u)){if(e=[],(t=s[u]).name&&(e.push(t.name.toLowerCase()),t.options&&t.options.aliases&&t.options.aliases.length))for(n=0;n<t.options.aliases.length;n++)e.push(t.options.aliases[n].toLowerCase());for(i=l(t.fn,"function")?t.fn():t.fn,a=0;a<e.length;a++)1===(d=e[a].split(".")).length?r[d[0]]=i:(!r[d[0]]||r[d[0]]instanceof Boolean||(r[d[0]]=new Boolean(r[d[0]])),r[d[0]][d[1]]=i),o.push((i?"":"no-")+d.join("-"))}}(),function(e){var t=d.className,n=r._config.classPrefix||"";if(u&&(t=t.baseVal),r._config.enableJSClass){var o=new RegExp("(^|\\s)"+n+"no-js(\\s|$)");t=t.replace(o,"$1"+n+"js$2")}r._config.enableClasses&&(t+=" "+n+e.join(" "+n),u?d.className.baseVal=t:d.className=t)}(o),delete i.addTest,delete i.addAsyncTest;for(var j=0;j<r._q.length;j++)r._q[j]();e.Modernizr=r}(window,document);var dtGlobals={};dtGlobals.isMobile=/(Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|windows phone)/.test(navigator.userAgent),dtGlobals.isAndroid=/(Android)/.test(navigator.userAgent),dtGlobals.isiOS=/(iPhone|iPod|iPad)/.test(navigator.userAgent),dtGlobals.isiPhone=/(iPhone|iPod)/.test(navigator.userAgent),dtGlobals.isiPad=/(iPad)/.test(navigator.userAgent);const root=document.documentElement,body=document.body;function updateScrollTop(){dtGlobals.winScrollTop=window.pageYOffset||(root||body.parentNode||body).scrollTop}window.addEventListener("scroll",updateScrollTop),updateScrollTop(),dtGlobals.isWindowsPhone=navigator.userAgent.match(/IEMobile/i),root.className+=" mobile-"+dtGlobals.isMobile,dtGlobals.logoURL=!1,dtGlobals.logoH=!1,dtGlobals.logoW=!1,jQuery(document).ready((function(e){var t=document.getElementsByTagName("html")[0],n=document.body;if(dtGlobals.isiOS?t.classList.add("is-iOS"):t.classList.add("not-iOS"),-1!=navigator.userAgent.indexOf("Safari")&&-1==navigator.userAgent.indexOf("Chrome")&&n.classList.add("is-safari"),dtGlobals.isWindowsPhone&&(n.classList.add("ie-mobile"),n.classList.add("windows-phone")),dtGlobals.isMobile||n.classList.add("no-mobile"),dtGlobals.isiPhone&&n.classList.add("is-iphone"),dtGlobals.isPhone=!1,dtGlobals.isTablet=!1,dtGlobals.isDesktop=!1,dtGlobals.isMobile){var o=window.getComputedStyle(document.body,":after").getPropertyValue("content");-1!=o.indexOf("phone")?dtGlobals.isPhone=!0:-1!=o.indexOf("tablet")&&(dtGlobals.isTablet=!0)}else dtGlobals.isDesktop=!0;e(window).on("the7_widget_resize",(function(t){e(".mini-widgets, .mobile-mini-widgets").find(" > *").removeClass("first last"),e(".mini-widgets, .mobile-mini-widgets").find(" > *:visible:first").addClass("first"),e(".mini-widgets, .mobile-mini-widgets").find(" > *:visible:last").addClass("last")})).trigger("the7_widget_resize")}));
var captchaRes='';
var sibErrMsg;
var gCaptchaSibWidget;
var ajax_sib_front_object;
var sibVerifyCallback=function (response){
captchaRes=response;
var formIdInvisible=sessionStorage.getItem("formIdRecapcha");
if(captchaRes){
var validationErr=0;
jQuery.each(jQuery(formIdInvisible).find('input[required=required]'), function (){
if(jQuery(this).val().trim()==''||(jQuery(this).attr('type')=="checkbox"&&jQuery(this).prop("checked")==false)){
validationErr++;
var form=jQuery(this).closest('form');
var requiredField=jQuery(this).closest('form').find('input[name="sib_form_alert_notice"]').val();
if(requiredField!==undefined){
sibErrMsg.requiredField=requiredField;
}
form.find('.sib_msg_disp').html('<p class="sib-alert-message sib-alert-message-warning ">' + sibErrMsg.requiredField + '</p>').show();
return;
}});
}
if(validationErr==0){
jQuery(formIdInvisible).trigger('submit');
}};
jQuery(document).ready(function(){
jQuery('.sib_signup_form').find('input[required=required]').on("invalid", function (){
if(jQuery(this).val().trim()==''){
var alert_msg=jQuery(this).closest('form').find('input[name="sib_form_alert_notice"]').val();
this.setCustomValidity(alert_msg);
}else{
this.setCustomValidity('');
}});
jQuery(document).on('submit', 'form', function(e){
var invalidEmail=jQuery(this).closest('form').find('input[name="sib_form_invalid_email_notice"]').val();
var requiredField=jQuery(this).closest('form').find('input[name="sib_form_alert_notice"]').val();
if(invalidEmail!==undefined){
sibErrMsg.invalidMail=invalidEmail;
}
if(requiredField!==undefined){
sibErrMsg.requiredField=requiredField;
}
if(!jQuery(this).hasClass('sib_signup_form')){
var email=jQuery(this).find('input[type=email]').val();
var emailPattern=/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/;
if(typeof sendinblue!='undefined'&&email!=null&&emailPattern.test(email)){
var postData=jQuery('input[type!=password]',this).serializeObject();
sendinblue.identify(email, postData);
}}else{
e.preventDefault();
var form=jQuery(this).closest('form');
jQuery.each(form.find('.sib-sms'), function (){
var sms=jQuery(this).val();
var sms_prefix=jQuery(this).closest('.sib-sms-field').find('input[name="sib_SMS_prefix"]').val();
if(sms==sms_prefix&&!jQuery(this).prop('required')){
jQuery(this).val('');
}});
var required_fileds=[];
var err_index=0;
var multi_lists=form.find(jQuery('.sib-multi-lists'));
if(multi_lists!=undefined&&multi_lists.data('require')=='required'){
if(multi_lists.find('input:checked').length==0){
err_index++;
multi_lists.addClass('sib_error');
}}
if(err_index > 0){
form.find('.sib_msg_disp').html('<p class="sib-alert-message sib-alert-message-warning ">' + sibErrMsg.requiredField + '</p>').show();
return;
}
err_index=0;
jQuery.each(form.find('input[type="email"]'), function(){
var Email=/^([a-zA-Z0-9_.+-])+@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/i;
if(!Email.test(jQuery(this).val())){
err_index++;
}});
if(err_index > 0){
form.find('.sib_msg_disp').html('<p class="sib-alert-message sib-alert-message-warning ">' + sibErrMsg.invalidMail + '</p>').show();
return;
}
err_index=0;
jQuery.each(form.find('.sib-sms'), function (){
var sms=jQuery(this).val();
if(is_valid_sms(sms)==false&&sms!=''){
err_index ++;
}});
if(err_index > 0){
form.find('.sib_msg_disp').html('<p class="sib-alert-message sib-alert-message-warning ">' + sibErrMsg.invalidSMSFormat + '</p>').show();
return;
}
jQuery(".sib-default-btn").attr("disabled", true);
form.find('.sib_loader').show();
jQuery('.sib_msg_disp').hide();
var postData=form.serializeArray();
if(captchaRes!=''){
postData.push({"name": "g-recaptcha-response", "value": captchaRes});
}
captchaRes='';
if(jQuery('.sib-multi-lists').length){
var interesting_lists=[];
jQuery('.sib-interesting-lists').each(function (){
postData.push({"name":"interestingLists[]", "value": jQuery(this).val()})
});
}
var formURL=form.attr("action");
form.addClass('sib_processing');
postData.push({ "name": "security", "value": ajax_sib_front_object.ajax_nonce });
jQuery.ajax({
url: formURL,
type: "POST",
dataType: "json",
data: postData,
success: function (data, textStatus, jqXHR){
jQuery(".sib-default-btn").attr("disabled", false);
jQuery('.sib_loader').hide();
if(jQuery('.sib-multi-lists').length){
jQuery('.sib-multi-lists').removeClass('sib_error');
}
if(data.status==='success'||data.status==='update'){
var cdata='<p class="sib-alert-message sib-alert-message-success ">' + data.msg.successMsg + '</p>';
form.find('.sib_msg_disp').html(cdata).show();
}else if(data.status==='failure'){
var cdata='<p class="sib-alert-message sib-alert-message-error ">' + data.msg.errorMsg + '</p>';
form.find('.sib_msg_disp').html(cdata).show();
}else if(data.status==='already_exist'){
var cdata='<p class="sib-alert-message sib-alert-message-warning ">' + data.msg.existMsg + '</p>';
form.find('.sib_msg_disp').html(cdata).show();
}else if(data.status==='invalid'){
var cdata='<p class="sib-alert-message sib-alert-message-error ">' + data.msg.invalidMsg + '</p>';
form.find('.sib_msg_disp').html(cdata).show();
}else if(data.status==='gcaptchaEmpty'){
var cdata='<p class="sib-alert-message sib-alert-message-error ">' + data.msg + '</p>';
form.find('.sib_msg_disp').html(cdata).show();
}else if(data.status==='gcaptchaFail'){
var cdata='<p class="sib-alert-message sib-alert-message-error ">' + data.msg + '</p>';
form.find('.sib_msg_disp').html(cdata).show();
}
form[0].reset();
if(data.redirect&&(data.status==='success'||data.status==='update')){
window.location.href=data.redirect;
}
if(typeof data.turnstileCaptcha!=='undefined'&&data.turnstileCaptcha){
jQuery.each(form.find('.cf-turnstile'), function (){
var siteKey=jQuery(this).data("sitekey");
var cfResponse=jQuery('input[name="cf-turnstile-response"]').val();
if(cfResponse){
var idToBeRendered="#cf-turnstile-"+siteKey;
turnstile.render(idToBeRendered, {
sitekey: siteKey,
callback: function(token){
console.log("Challenge Success");
},
});
}});
}
var previous_code=form.find('.sib-cflags').data('dial-code');
if(previous_code){
form.find('.sib-sms').val('+' + previous_code);
form.find('input[name="sib_SMS_prefix"]').val('+' + previous_code);
}
if(typeof sendinblue!='undefined'){
var email=form.find('input[name=email]').val();
var postData=form.serializeObject();
if(data.status==='success'||data.status==='update'||data.status==='already_exist'){
sendinblue.identify(email, postData);
}}
jQuery(".sib-alert-message").delay(5000).hide('slow');
form.removeClass('sib_processing');
if(typeof grecaptcha!='undefined'){
grecaptcha.reset(gCaptchaSibWidget);
}},
error: function (jqXHR, textStatus, errorThrown){
form.find('.sib_msg_disp').html(jqXHR).show();
jQuery(".sib-default-btn").attr("disabled", false);
if(typeof grecaptcha!='undefined'){
grecaptcha.reset(gCaptchaSibWidget);
}}
});
}});
jQuery('.sib-country-block').on('click', function (){
jQuery('.sib-country-list').toggle();
});
if(jQuery('.sib-country-list').length > 0){
jQuery('.sib-country-list').ready(function (){
var data={
action:'sib_get_country_prefix',
security: ajax_sib_front_object.ajax_nonce,
};
jQuery.post(ajax_sib_front_object.ajax_url, data, function (respond){
jQuery('.sib-country-list').html(respond);
});
});
}
jQuery('body').on('click', function(e){
if(jQuery('.sib-sms-field .sib-country-list').length > 0&&!jQuery('.sib-sms-field .sib-country-list').is(e.target)&&jQuery('.sib-sms-field .sib-country-list').has(e.target).length===0&&jQuery('.sib-sms-field .sib-country-block').has(e.target).length===0){
jQuery('.sib-sms-field .sib-country-list').hide();
}});
jQuery('.sib-country-list').on('click', 'li' , function (){
var country_code=jQuery(this).data('country-code').toLowerCase();
var dial_code=jQuery(this).data('dial-code');
jQuery(this).closest('.sib-sms-field').find('.sib-sms').val('+' + dial_code);
jQuery(this).closest('.sib-sms-field').find('input[name="sib_SMS_prefix"]').val('+' + dial_code);
jQuery(this).closest('.sib-sms-field').find('.sib-cflags').css('background-image', 'url(' + ajax_sib_front_object.flag_url + country_code + '.png)');
jQuery(this).closest('.sib-sms-field').find('.sib-cflags').data('dial-code', dial_code);
jQuery(this).closest('.sib-country-list').hide();
});
jQuery(".sib-sms").on('keypress', function (event){
validateInteger(event, 'sms');
});
jQuery(".sib-date").on('keypress', function(event){
validateInteger(event, 'date');
});
function is_valid_sms(sms){
sms=sms.replace(/\b(0(?!\b))+/g, "");
var tempSms=sms.replace(/(|\(|\)|\.|\-)/g, '');
if(tempSms.length > 19||tempSms.length < 6||tempSms.charAt(0)!='+'){
return false;
}
return true;
}
function validateInteger(evt,type){
var theEvent=evt||window.event;
var key=theEvent.charCode||theEvent.which;
key=String.fromCharCode(key);
var regex=/[ +0-9()-]/;
var smsLength=0;
if(type=='date'){
regex=/[ 0-9-/]/;
}
if(!regex.test(key)){
theEvent.returnValue=false;
key=theEvent.keyCode;
if(theEvent.preventDefault&&key!=9&&key!=8) theEvent.preventDefault();
}}
});
jQuery.fn.serializeObject=function(){
var o={};
var a=this.serializeArray();
jQuery.each(a, function(){
if(this.name=='sib_form_action'||this.name=='sib_form_id'||this.name=='email')
return true;
if(o[this.name]!==undefined){
if(!o[this.name].push){
o[this.name]=[o[this.name]];
}
o[this.name].push(this.value||'');
}else{
o[this.name]=this.value||'';
}});
return o;
};
jQuery(document).ready(function (){
jQuery(".sib-default-btn").on("click", function (){
var row=jQuery(this).closest(".sib_signup_form");
sessionStorage.setItem("formIdRecapcha", "#" + jQuery(row).attr('id'));
})
})
function errorCallbackForTurnstileErrors(){
};