// source --> https://zorgcommunity.com/wp-content/plugins/popup-by-supsystic/js/core.min.js?ver=1.9.52
if(typeof(PPS_DATA)=="undefined"){var PPS_DATA={}}if(isNumber(PPS_DATA.animationSpeed)){PPS_DATA.animationSpeed=parseInt(PPS_DATA.animationSpeed)}else{if(jQuery.inArray(PPS_DATA.animationSpeed,["fast","slow"])==-1){PPS_DATA.animationSpeed="fast"}}PPS_DATA.showSubscreenOnCenter=parseInt(PPS_DATA.showSubscreenOnCenter);var sdLoaderImgPps='';var g_ppsAnimationSpeed=300;jQuery.fn.showLoaderPps=function(){return jQuery(this).html(sdLoaderImgPps)};jQuery.fn.appendLoaderPps=function(){jQuery(this).append(sdLoaderImgPps)};jQuery.sendFormPps=function(a){return jQuery("
").sendFormPps(a)};jQuery.fn.sendFormPps=function(e){var b=null;if(!e){e={fid:false,msgElID:false,onSuccess:false}}if(e.fid){b=jQuery("#"+fid)}else{b=jQuery(this)}var c=(jQuery(b).tagName()=="FORM");var f=new Array();if(e.data){f=e.data}else{if(c){f=jQuery(b).serialize()}}if(e.appendData){var h=typeof(f)=="string";var k=[];for(var g in e.appendData){if(h){k.push(g+"="+e.appendData[g])}else{f[g]=e.appendData[g]}}if(h){f+="&"+k.join("&")}}var d=null;if(e.msgElID){if(e.msgElID=="noMessages"){d=false}else{if(typeof(e.msgElID)=="object"){d=e.msgElID}else{d=jQuery("#"+e.msgElID)}}}if(typeof(e.inputsWraper)=="string"){b=jQuery("#"+e.inputsWraper);c=true}if(c&&b){jQuery(b).find("*").removeClass("ppsInputError")}if(d&&!e.btn){jQuery(d).removeClass("ppsSuccessMsg").removeClass("ppsErrorMsg");if(!e.btn){jQuery(d).showLoaderPps()}}if(e.btn){jQuery(e.btn).attr("disabled","disabled");e.btnIconElement=jQuery(e.btn).find(".fa").length?jQuery(e.btn).find(".fa"):jQuery(e.btn);if(jQuery(e.btn).find(".fa").length){e.btnIconElement.data("prev-class",e.btnIconElement.attr("class")).attr("class","fa fa-spinner fa-spin")}}var a="";if(typeof(e.url)!="undefined"){a=e.url}else{if(typeof(ajaxurl)=="undefined"||typeof(ajaxurl)!=="string"){a=PPS_DATA.ajaxurl}else{a=ajaxurl}}jQuery(".ppsErrorForField").hide(PPS_DATA.animationSpeed);var j=e.dataType?e.dataType:"json";if(typeof(f)=="string"){f+="&pl="+PPS_DATA.PPS_CODE;f+="&reqType=ajax"}else{f.pl=PPS_DATA.PPS_CODE;f.reqType="ajax"}jQuery.ajax({url:a,data:f,type:"POST",dataType:j,success:function(i){toeProcessAjaxResponsePps(i,d,b,c,e);if(e.clearMsg){setTimeout(function(){if(d){jQuery(d).animateClear()}},typeof(e.clearMsg)=="boolean"?5000:e.clearMsg)}}})};jQuery.fn.animateClear=function(){var a=jQuery(""+jQuery(this).html()+"");jQuery(this).html(a);jQuery(a).hide(PPS_DATA.animationSpeed,function(){jQuery(a).remove()})};jQuery.fn.animateRemovePps=function(a,b){a=a==undefined?PPS_DATA.animationSpeed:a;jQuery(this).hide(a,function(){jQuery(this).remove();if(typeof(b)==="function"){b()}})};function toeProcessAjaxResponsePps(h,e,c,d,f){if(typeof(f)=="undefined"){f={}}if(typeof(e)=="string"){e=jQuery("#"+e)}if(e){jQuery(e).html("")}if(f.btn){jQuery(f.btn).removeAttr("disabled");if(f.btnIconElement){f.btnIconElement.attr("class",f.btnIconElement.data("prev-class"))}}if(typeof(h)=="object"){if(h.error){if(e){jQuery(e).removeClass("ppsSuccessMsg").addClass("ppsErrorMsg")}var j=[];for(var a in h.errors){if(d){var b=jQuery(c).find('[name*="'+a+'"]');b.addClass("ppsInputError");if(b.attr("placeholder")){}if(!b.data("keyup-error-remove-binded")){b.keydown(function(){jQuery(this).removeClass("ppsInputError")}).data("keyup-error-remove-binded",1)}}if(jQuery(".ppsErrorForField.toe_"+nameToClassId(a)+"").exists()){jQuery(".ppsErrorForField.toe_"+nameToClassId(a)+"").show().html(h.errors[a])}else{if(e){jQuery(e).append(h.errors[a]).append("
")}else{j.push(h.errors[a])}}}if(j.length&&f.btn&&jQuery.fn.dialog&&!e){jQuery('