// source --> https://racekit.co.za/wp-content/plugins/piotnetforms-pro/assets/js/minify/frontend/advanced2.min.js?ver=2.1.40 
(()=>{function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){"use strict";e=function(){return n};var n={},r=Object.prototype,o=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function f(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new I(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return j()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=_(a,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=l(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(t,n,a),i}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}n.wrap=u;var p={};function d(){}function h(){}function m(){}var y={};f(y,a,(function(){return this}));var v=Object.getPrototypeOf,g=v&&v(v(E([])));g&&g!==r&&o.call(g,a)&&(y=g);var w=m.prototype=d.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function x(e,n){function r(i,a,s,c){var f=l(e[i],e,a);if("throw"!==f.type){var u=f.arg,p=u.value;return p&&"object"==t(p)&&o.call(p,"__await")?n.resolve(p.__await).then((function(t){r("next",t,s,c)}),(function(t){r("throw",t,s,c)})):n.resolve(p).then((function(t){u.value=t,s(u)}),(function(t){return r("throw",t,s,c)}))}c(f.arg)}var i;this._invoke=function(t,e){function o(){return new n((function(n,o){r(t,e,n,o)}))}return i=i?i.then(o,o):o()}}function _(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method))return p;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var r=l(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,p;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(o.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=m,f(w,"constructor",m),f(m,"constructor",h),h.displayName=f(m,c,"GeneratorFunction"),n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,f(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},n.awrap=function(t){return{__await:t}},b(x.prototype),f(x.prototype,s,(function(){return this})),n.AsyncIterator=x,n.async=function(t,e,r,o,i){void 0===i&&(i=Promise);var a=new x(u(t,e,r,o),i);return n.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(w),f(w,c,"Generator"),f(w,a,(function(){return this})),f(w,"toString",(function(){return"[object Generator]"})),n.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},n.values=E,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:E(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},n}function n(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,o)}function r(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function s(t){n(a,o,i,s,c,"next",t)}function c(t){n(a,o,i,s,c,"throw",t)}s(void 0)}))}}jQuery(document).ready((function(t){var n=t("[data-piotnetforms-ajax-url]").attr("data-piotnetforms-ajax-url"),o=t("[data-piotnetforms-plugin-url]").attr("data-piotnetforms-plugin-url");setTimeout(function(t,e){var n=t.find("[data-piotnetforms-tinymce]"),r=n.attr("data-piotnetforms-tinymce-rtl");n.length&&e.each(n,(function(t,n){e(n).tinymce({script_url:o+"/piotnetforms-pro/inc/forms/tinymce/tinymce.min.js",height:500,directionality:r,menubar:!1,plugins:["advlist autolink lists link image charmap print preview anchor","searchreplace visualblocks code fullscreen","insertdatetime media table contextmenu paste code help youtube"],toolbar:"bold italic link | alignleft aligncenter alignright alignjustify | bullist numlist | image youtube",image_title:!0,images_upload_url:o+"/piotnetforms-pro/inc/forms/tinymce/tinymce-upload.php",file_picker_types:"image",convert_urls:!1,setup:function(t){t.on("change",(function(){tinymce.triggerSave()}))}})}))}(t("[data-piotnet-widget-preview], #piotnetforms"),t),1e3),setTimeout(function(t,e){var n=t.find("[data-piotnetforms-select-autocomplete]");n.length&&e.each(n,(function(t,n){e(n).selectize({dropdownParent:null})}))}(t("[data-piotnet-widget-preview], #piotnetforms"),t),700),t(window).on("load",(function(){})),t(document).on("elementor/popup/show",(function(e,r,o){t(document).find(".dialog-widget [data-mask]").each((function(){t(this).mask(t(this).attr("data-mask"))}));var i=t(document).find(".dialog-widget [data-piotnetforms-tel-field]");if(i.length>0){var a="us",s=new FormData;s.append("action","piotnetforms_get_country_code"),t.ajax(n,{type:"POST",data:s,processData:!1,contentType:!1,timeout:5e3,success:function(t){"error"!=t&&(a=t),pfIntlTelInput(i,a)},error:function(t){pfIntlTelInput(i,a)}})}t(document).find(".dialog-widget [data-piotnetforms-select-autocomplete]").each((function(){t(this).selectize({create:!0,sortField:"text"})}))})),window.pfIntlTelInput=function(e,n){e.length>0&&(e.each((function(){t(this).intlTelInput({autoHideDialCode:!0,autoPlaceholder:"off",dropdownContainer:null,formatOnDisplay:!1,hiddenInput:"full_number",initialCountry:n,nationalMode:!1,preferredCountries:["US"],separateDialCode:!0,utilsScript:""})})),"rtl"==t("html").attr("dir")&&t("body").addClass("iti-rtl"))};var i,a,s,c=t(document).find("[data-piotnetforms-tel-field]");if(c.length>0){var f="us",u=new FormData;u.append("action","piotnetforms_get_country_code"),t.ajax(n,{type:"POST",data:u,processData:!1,contentType:!1,timeout:5e3,success:function(t){"error"!=t&&(f=t),pfIntlTelInput(c,f)},error:function(t){pfIntlTelInput(c,f)}})}function l(t,e,n){return p.apply(this,arguments)}function p(){return p=r(e().mark((function n(r,o,i){var a;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a={action:"piotnetforms_delete_post",nonce:piotnetforms_pro_advanced2_nonce_obj.nonce,id:r,force_delete:o},t.post(t("[data-piotnetforms-ajax-url]").data("piotnetforms-ajax-url"),a,(function(t){""!=t.trim()&&(window.location.href=i)}));case 2:case"end":return e.stop()}}),n)}))),p.apply(this,arguments)}t(document).on("change keyup paste",'[type="number"][data-piotnetforms-id]',(i=function(e){var n=t(this).val(),r=t(this).attr("min"),o=t(this).attr("max"),i=!1;parseInt(r)>parseInt(n)?(i=!0,t(this).val(r)):parseInt(n)>parseInt(o)&&(i=!0,t(this).val(o)),i&&t(this).change()},a=500,s=0,function(){var t=this;clearTimeout(s),s=setTimeout((function(){i.apply(t)}),a)})),t('[type="number"][data-piotnetforms-id]').bind("paste",(function(e){var n=this,r=t(this).attr("min"),o=t(this).attr("max");setTimeout((function(e){var i=!1,a=t(n).val();parseInt(r)>parseInt(a)?(i=!0,t(n).val(r)):parseInt(a)>parseInt(o)&&(i=!0,t(n).val(o)),i&&t(this).change()}),0)})),t("[data-piotnetforms-delete-post]").click(function(){var n=r(e().mark((function n(r){var o,i,a,s,c;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r.preventDefault(),o=t(this).data("confirm-delete"),i=t(this).data("piotnetforms-delete-post"),a=t(this).data("piotnetforms-delete-post-force"),s=t(this).data("piotnetforms-delete-post-redirect"),0==o||null==o){e.next=13;break}if(c=o.replace("{post_id}",i),!confirm(c)){e.next=11;break}return e.next=11,l(i,a,s);case 11:e.next=15;break;case 13:return e.next=15,l(i,a,s);case 15:case"end":return e.stop()}}),n,this)})));return function(t){return n.apply(this,arguments)}}()),t(document).on("focus",".piotnetforms-fields-wrapper [data-piotnetforms-id]",(function(){var e=t(this).closest(".piotnetforms-fields-wrapper");e.addClass("piotnetforms-field-focus"),e.addClass("piotnetforms-label-animated")})),t(document).on("blur",".piotnetforms-fields-wrapper [data-piotnetforms-id]",(function(){var e=t(this).closest(".piotnetforms-fields-wrapper");e.removeClass("piotnetforms-field-focus"),""===t(this).val()&&e.removeClass("piotnetforms-label-animated")})),t(document).on("click",'[data-piotnetforms-show-password-icon="true"]',(function(){var e=t(this).attr("data-piotnetforms-field-name"),n=t(this).closest(".piotnetforms-field-container").find('[name="form_fields['+e+']"]').attr("type"),r=t(this).find("#eye-icon-"+e);"password"==n?(t(this).closest(".piotnetforms-field-container").find('[name="form_fields['+e+']"]').attr("type","text"),r.addClass("fa-eye-slash")):(t(this).closest(".piotnetforms-field-container").find('[name="form_fields['+e+']"]').attr("type","password"),r.removeClass("fa-eye-slash"))}));var d=t('[data-piotnetforms-submit-keyboard="true"]');t.each(d,(function(){var e=this,n=t(this).attr("data-piotnetforms-submit-form-id");t('[data-piotnetforms-id="'+n+'"]').on("keyup",(function(n){13===n.keyCode&&parseInt(t(e).css("height"))>0&&t(e).trigger("click")}))})),t(document).on("click","[data-piotnetforms-file-uploaded-remove]",(function(){var e=t(this).closest(".piotnetforms-field-group");e.find(".piotnetforms-file-uploaded").addClass("piotnetforms-hidden"),e.find(".piotnetforms-field").removeClass("piotnetforms-hidden")})),t('.piotnetforms-field-type-upload-mordern input[type="file"]').each((function(){var e=t(this),n=e.closest(".piotnetforms-fields-wrapper").find(".piotnetforms-upload-field-modern-text"),r=n.html();n.click((function(){e.click()})),e.on("change",(function(t){var e="";this.files&&this.files.length>1?e=this.files.length+" files selected":t.target.value&&(e=t.target.value.split("\\").pop()),e?n.find("span").html(e):n.html(r)})),t(document).on("click","[data-piotnetforms-trigger-success]",(function(){n.html(r)})),e.on("focus",(function(){e.addClass("has-focus")})).on("blur",(function(){e.removeClass("has-focus")}))})),t('.piotnetforms-field[name="upload_field"]').each((function(){t(this).wrapAll("<form action='#' class='piotnetforms-upload' data-piotnetforms-upload enctype='multipart/form-data'></form>")})),t(document).on("change",'.piotnetforms-field-option input[type="checkbox"]',(function(e){var n=t(this).closest(".piotnetforms-field-group").find('.piotnetforms-field-option input[type="checkbox"]'),r=t(this).data("piotnetforms-checkbox-limit-multiple");n.filter(":checked").length>r&&(this.checked=!1)})),t(".piotnetforms-type-select2").each((function(){t(this).select2({tags:!0})}))}))})();