(function(e){"use strict";e(document).ready(function(){function t(e,t,i){t=n(t),null===i?n(i):n(i).trim(),e=null===e?n(e):e.trim();var l=e.split(","),f=l.some(function(e){return e.trim()===i});switch(t){case"==":return f&&""!==e;case"!=":return!f&&""!==e;case">":return parseInt(e)>parseInt(i);case"<":return parseInt(e){jQuery(".elementor-field-group-"+i,t).find(".e-form__buttons").find(".elementor-field-type-next, .elementor-field-type-submit").find(".elementor-button").attr("id","form-field-"+i).closest(".elementor-field-type-next, .elementor-field-type-submit").addClass("cfef-step-field");var e=a(i,t);f(e,l,t,i,n)},500);var s=a(i,t);f(s,l,t,i,n)}f(s,l,t,i,n)})}catch(e){console.error("Error parsing JSON:",e)}}function f(n,i,l,f,a){var d=i.display_mode,c=i.fire_action,u=i.file_types,h=[];e.each(i.logic_data,function(n,i){var f=e(".elementor-field-group-"+i.cfef_logic_field_id,l);(f.hasClass("elementor-field-group-acceptance")||f.hasClass("elementor-field-type-acceptance"))&&f.find(".elementor-field-subgroup .elementor-field-option input").click(()=>{!0===f.find(".elementor-field-subgroup .elementor-field-option input")[0].checked?f.find(".elementor-field-subgroup .elementor-field-option input").val("off"):f.find(".elementor-field-subgroup .elementor-field-option input").val("on")});var s=f[0],o=s?s.classList.contains("cfef-hidden"):s;if(i.cfef_logic_field_id){var a=r(i.cfef_logic_field_id,l),d=!o&&t(a,i.cfef_logic_field_is,i.cfef_logic_compare_value);h.push(d)}});var v="All"==c?h.every(function(e){return!0===e}):h.some(function(e){return!0===e});"show"==d?v?(n.hasClass("cfef-step-field")&&m(n,f,u,a),n.removeClass("cfef-hidden"),n.hasClass("elementor-field-required")&&s(n,u)):n.hasClass("cfef-step-field")?p(n,f,u,a):n&&n.length>0&&(n.addClass("cfef-hidden"),n.hasClass("elementor-field-required")&&o(n,f,u,a)):v?n.hasClass("cfef-step-field")?p(n,f,u,a):n&&n.length>0&&(n.addClass("cfef-hidden"),n.hasClass("elementor-field-required")&&o(n,f,u,a)):(n.hasClass("cfef-step-field")&&m(n,f,u,a),n.hasClass("elementor-field-required")&&s(n,u,"visible"),n&&n.length>0&&n.removeClass("cfef-hidden"))}function s(t,n,i){if(t.hasClass("elementor-field-type-radio")&&0!==t.find('input[value="^newOptionTest"]').length){t.find('input[value="^newOptionTest"]').closest("span.elementor-field-option").remove();let n=t.find('input[checked="checked"]')[0];n?e(n).prop("checked",!0):e(n).prop("checked",!1)}else if(t.hasClass("elementor-field-type-acceptance")){const e=t.find(".elementor-field-subgroup .elementor-field-option input");e.hasClass("acceptance_check_toggle")&&(e[0].checked=!1,e.removeClass("acceptance_check_toggle"))}else if(t.hasClass("elementor-field-type-checkbox")&&0!==t.find('input[value="newchkTest"]').length)t.find('input[value="newchkTest"]').closest("span.elementor-field-option").remove();else if(t.hasClass("elementor-field-type-date")&&"1003-01-01"===t.find("input").val())t.find("input")[0].value="",flatpickr(t.find("input")[0],{});else if(t.hasClass("elementor-field-type-time")&&"11:59"===t.find("input").val()){let e=t.find("input").attr("value")?t.find("input").attr("value"):"";t.find("input").val(e)}else if(t.hasClass("elementor-field-type-tel")&&"+1234567890"===t.find("input").val()){let e=t.find("input").attr("value")?t.find("input").attr("value"):"";t.find("input").val(e)}else if(t.hasClass("elementor-field-type-url")&&"https://testing.com"===t.find("input").val()){let e=t.find("input").attr("value")?t.find("input").attr("value"):"";t.find("input").val(e)}else if(t.hasClass("elementor-field-type-email")&&"cool_plugins@abc.com"===t.find("input").val()){let e=t.find("input").attr("value")?t.find("input").attr("value"):"";t.find("input").val(e)}else if(t.hasClass("elementor-field-type-number")&&"000"===t.find("input").val()){let e=t.find("input").attr("value")?t.find("input").attr("value"):"";t.find("input").val(e)}else if(t.hasClass("elementor-field-type-upload")){const e=n.split(",")[0],i=t.find("input"),l=`${my_script_vars_elementor.pluginConstant}assets/images/placeholder.${e}`,f=i.val();-1!==f.indexOf(l)&&i.val("")}else if(t.hasClass("elementor-field-type-textarea")&&"cool_plugins"===t.find("textarea").val()){t.find("textarea")[0].innerHTML;let e=t.find("textarea")[0].innerHTML?t.find("textarea")[0].innerHTML:"";t.find("textarea").val(e)}else if(t.hasClass("elementor-field-type-select")){var l=t.find("select");if(l.length>0&&l.find("option").length>0){var f=l.val();if("premium1@"==f||"premium1@"==f[0]||l.find("option[value='premium1@']").length>0){l.find("option[value='premium1@']").remove();const t=l.find("option[selected='selected']")[0];let n=e(t).attr("value")?e(t).attr("value"):l.find("option:first").val();l.val(n)}}}else{var s=t.find("input"),o=t.find("input").val();if("cool23plugins"==o){s.hasClass("hide-fme-mask-input")&&c(s[0]);let e=t.find("input").attr("value")?t.find("input").attr("value"):"";t.find("input").val(e)}}}function o(t,n,i,l){if(t.hasClass("elementor-field-type-radio")){var f=".elementor-field-group-"+n;const t=e(f,e(`[data-form-id="form-${l}"]`));if(t.length>0&&0===t.find('input[value="^newOptionTest"]').length){const i=e(`\n \n \n \n `);t.find(".elementor-field-subgroup").append(i)}}else if(t.hasClass("elementor-field-type-acceptance")){const e=t.find(".elementor-field-subgroup .elementor-field-option input")[0];jQuery(e).addClass("acceptance_check_toggle"),e&&(e.checked=!0)}else if(t.hasClass("elementor-field-type-checkbox")){f=".elementor-field-group-"+n;const t=e(f,e(`[data-form-id="form-${l}"]`));if(t.length>0&&0===t.find('input[value="newchkTest"]').length){const i=e(`\n \n `);t.find(".elementor-field-subgroup").append(i)}}else if(t.hasClass("elementor-field-type-date")){let e=t.find("input").val();if(""===e){if(t.find("input.flatpickr-mobile[type='date']")){let e=t.find("input.flatpickr-mobile");e.attr("type","text")}t.find("input").val("1003-01-01")}}else if(t.hasClass("elementor-field-type-time")){let e=t.find("input").val();""===e&&t.find("input").val("11:59")}else if(t.hasClass("elementor-field-type-tel")){let e=t.find("input").val();if(""===e){let e=t.find(".ccfef-editor-intl-input");0==e.length&&(t.find("input").removeAttr("pattern"),t.find("input").val("+1234567890"))}}else if(t.hasClass("elementor-field-type-url")){let e=t.find("input").val();""===e&&t.find("input").val("https://testing.com")}else if(t.hasClass("elementor-field-type-email")){let e=t.find("input").val();""===e&&t.find("input").val("cool_plugins@abc.com")}else if(t.hasClass("elementor-field-type-upload")){const e=i.split(",")[0],n=`${my_script_vars_elementor.pluginConstant}assets/images/placeholder.${e}`,l=new File([],n,{type:"image/png"}),f=t.find('input[type="file"]'),s=new DataTransfer;s.items.add(l),f[0].files=s.files}else if(t.hasClass("elementor-field-type-number")){var s=t.find("input").val();if(""===s){var o=t.find("input"),r=parseInt(o.attr("max")),a=parseInt(o.attr("min"));isNaN(a)?isNaN(r)?t.find("input").val("000"):t.find("input").val(r-1):t.find("input").val(a+1)}}else if(t.hasClass("elementor-field-type-textarea")){let e=t.find("textarea").val();""===e&&t.find("textarea").val("cool_plugins")}else if(t.hasClass("elementor-field-type-select")){var c=t.find("select"),p="Premium1@",m="premium1@";if(c.length>0&&c.find("option").length>0){var u=c.find("option[value='premium']");u.length<=0&&c.append(``),c.val(m)}}else if(t.hasClass("elementor-field-type-text")){let e=t.find("input");if(e.hasClass("fme-mask-input")){let n=t.find(".mask-error");n.val(""),n.removeAttr("style"),d(e[0])}let n=t.find("input").val();""===n&&t.find("input").val("cool23plugins")}else{const n=e(`[data-form-id="form-${l}"]`),i=t.find("input",n);if(i.length>0){const e=i[0].id;jQuery(`#${e}`,n)[0].setAttribute("value","cool23plugins")}}}function r(t="",n="body"){var i="",l=e(".elementor-field-group-"+t,n);if(l.hasClass("elementor-field-type-radio"))i=l.find("input:checked").val();else if(l.hasClass("elementor-field-type-checkbox")){var f=[];l.find("input[type='checkbox']:checked").each(function(){f.push(e(this).val())}),i=f.length?f.join(", "):t}else if(l.hasClass("elementor-field-type-select"))i=l.find("select",n).val(),l.find("select")[0].multiple&&(i=i.join(", "));else if(l.hasClass("elementor-field-type-textarea"))i=l.find("textarea",n).val();else if(l.hasClass("elementor-field-type-acceptance")){let e=l.find(".elementor-field-subgroup .elementor-field-option input");i="",e.each(function(){jQuery(this).is(":checked")&&(i="on")})}else i=l.find("input",n).val();return void 0===i?"":i}function a(t="",n=null){return n?e("#form-field-"+t,n).length>0?e("#form-field-"+t,n).closest(".elementor-field-group"):e("#form-field-"+t+"-0",n).closest(".elementor-field-group"):null}function d(e,t="hide-"){const n=e.className.split(/\s+/),i=n.filter(e=>/fme|mask/i.test(e));if(0===i.length)return;e.classList.remove(...i);const l=i.map(e=>`${t}${e}`);e.classList.add(...l)}function c(e,t="hide-"){const n=e.className.split(/\s+/),i=n.filter(e=>{if(e.startsWith(t)){const n=e.slice(t.length);return/fme|mask/i.test(n)}return!1});if(0===i.length)return;e.classList.remove(...i);const l=i.map(e=>e.slice(t.length));e.classList.add(...l)}function p(t,n,i,l){var f=t.closest(".e-form__buttons");f.closest("form");let s=f.closest(".elementor-field-type-step"),r=s.find(".elementor-field-group");for(let t=0;t'+u+"

")}}function m(t,n,i,l){var f=t.closest(".e-form__buttons");let o=f.closest(".elementor-field-type-step"),r=o.find(".elementor-field-group");for(let t=0;t{var t=jQuery(e.target).closest(".elementor-widget-form"),n=t.find(".cfef_logic_data_js").attr("data-form-id");t.attr("data-form-id","form-"+n),l(t,n)},200)}),e("body").on("input change",".elementor-form input, .elementor-form select, .elementor-form textarea",function(t){var n=e(this).closest(".elementor-widget-form"),i=n.find(".cfef_logic_data_js").attr("data-form-id");n.attr("data-form-id","form-"+i),l(n,i)}),jQuery(document).on("click","div.elementor-field-type-submit button",function(t){let n=t.target,i=e(n).closest("form");i.find(".elementor-field-type-step").removeClass("cfef-hidden-step-field cfef-remove-eh");let l=i.find("button");l.removeClass("cfef-ran"),i.find(".cfef-step-field-text").remove()}),jQuery(document).on("submit","form",function(t){let n=jQuery(this);n.find(".elementor-field-type-next.cfef-hidden-step-field.cfef-next-to-submit").each(function(){jQuery(this).next(".elementor-field-type-submit").remove(),jQuery(this).removeClass("cfef-hidden-step-field cfef-next-to-submit")}),n.find("input").each(function(){let t=e(this);t.hasClass("hide-fme-mask-input")&&c(t[0])})}),jQuery(".elementor-form").on("click",".elementor-field-type-step:not(.cfef-hidden-step-field) .elementor-field-type-next button",function(t){let n=t.target,i=e(n).closest("form"),l=i.find(".elementor-field-type-step:not(.elementor-hidden):not(.cfef-hidden-step-field)"),f=l.nextAll(".elementor-field-type-step"),s=!0;if(f.length>0)for(let t=0;t