From b1a7cb0893e95edac9081e548737564f4cae3d4e Mon Sep 17 00:00:00 2001 From: Pawan Kumar Date: Mon, 6 May 2024 15:07:52 +0530 Subject: [PATCH 01/23] =?UTF-8?q?=F0=9F=90=9B=20fix(ui):=20FUI=20select=20?= =?UTF-8?q?and=20ui=20=20design=20improvements.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/js/forminator-form.min.js | 2 +- assets/js/forminator-ui.min.js | 2 +- form-ui.html | 2 +- page-forms.html | 1 + templates/form-elements/field-name-multiple.html | 2 +- templates/form-elements/field-post-data.html | 4 ++-- templates/form-elements/field-select-single.html | 2 +- templates/form-elements/field-timepicker-dropdowns.html | 2 +- templates/form-elements/field-timepicker-inputs.html | 2 +- templates/page-forms/section-elements.html | 6 ++++++ 10 files changed, 16 insertions(+), 9 deletions(-) diff --git a/assets/js/forminator-form.min.js b/assets/js/forminator-form.min.js index db58afd1..15205afc 100644 --- a/assets/js/forminator-form.min.js +++ b/assets/js/forminator-form.min.js @@ -8,4 +8,4 @@ * Copyright 2019 Incsub (https://incsub.com) * Licensed under GPL v3 (http://www.gnu.org/licenses/gpl-3.0.html) */ -function ownKeys(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function _objectSpread(t){for(var e=1;e'),n.length&&(n.addClass("forminator-floating--input"),i.find(".forminator-input-with-icon").length&&n.addClass("forminator-has_icon"),i.find(".forminator-input-with-phone").length&&(n.addClass("forminator-has_phone"),i.find(".intl-tel-input").hasClass("allow-dropdown")&&n.addClass("allow-dropdown"))),this}}(jQuery),function(t){"use strict";"object"!==_typeof(window.FUI)&&(window.FUI={}),FUI.textareaStates=function(e){var o=t(e),i=o.closest("form");if(o.is("textarea")||i.is(".forminator-ui")||i.is(".forminator-custom-form"))return o.each((function(){var e,o;e=t(this),o=e.closest(".forminator-field"),e.mouseover((function(t){o.addClass("forminator-is_hover"),t.stopPropagation()})).mouseout((function(t){o.removeClass("forminator-is_hover"),t.stopPropagation()})),function(e){var o=t(e),i=o.closest(".forminator-field");o.focus((function(t){i.addClass("forminator-is_active"),t.stopPropagation()})).blur((function(t){i.removeClass("forminator-is_active"),t.stopPropagation()}))}(this),function(e){var o=t(e),i=o.closest(".forminator-field");o.on("load",(function(){""!==o.val().trim()&&i.addClass("forminator-is_filled")})),o.on("change",(function(){""!==o.val().trim()?i.addClass("forminator-is_filled"):i.removeClass("forminator-is_filled")}))}(this)})),this}}(jQuery),function(t){"use strict";"object"!==_typeof(window.FUI)&&(window.FUI={}),FUI.textareaMaterial=function(e){var o=t(e),i=o.closest(".forminator-field"),n=i.find(".forminator-label"),r=o.closest("form");if((o.is("textarea")||r.is(".forminator-ui")||r.is(".forminator-custom-form"))&&!o.hasClass("wp-editor-area"))return function(){if(o.parent().hasClass("forminator-textarea--wrap")||o.wrap('
'),n.length){var t=(0===n.height()?20:n.height())+9;n.addClass("forminator-floating--textarea"),i.css({position:"relative"}),o.val()&&i.addClass("forminator-is_filled"),i.hasClass("forminator-is_filled")&&i.hasClass("forminator-is_active")||n.css({"padding-top":t+"px"}),o.css({"padding-top":t+"px"})}}(),this}}(jQuery),function(t){"use strict";"object"!==_typeof(window.FUI)&&(window.FUI={}),FUI.radioStates=function(e){var o=t(e),i=o.find("input");if(o.is("label")&&"radio"===i.prop("type"))return i.each((function(){t(this).on("click",(function(){var e=t(this),o=e.parent(),i=o.closest(".forminator-field").find(".forminator-radio");i.find("input").prop("checked",!1),i.removeClass("forminator-is_checked"),e.prop("checked","checked"),o.addClass("forminator-is_checked")}))})),this}}(jQuery),function(t){"use strict";"object"!==_typeof(window.FUI)&&(window.FUI={}),FUI.checkboxStates=function(e){var o=t(e),i=o.find("input");if(o.is("label")&&"checkbox"===i.prop("type"))return i.each((function(){t(this).on("click",(function(){var e=t(this).parent();e.is(".forminator-is_checked")?e.removeClass("forminator-is_checked"):e.addClass("forminator-is_checked")}))})),this}}(jQuery),function(t){"use strict";"object"!==_typeof(window.FUI)&&(window.FUI={}),FUI.multiSelectStates=function(e){var o=t(e),i=o.find(".forminator-option"),n=i.find("input");if(o.is(".forminator-multiselect")&&0!==i.length)return n.each((function(){t(this).on("click",(function(){var e=t(this).parent();e.is(".forminator-is_checked")?e.removeClass("forminator-is_checked"):e.addClass("forminator-is_checked")}))})),this}}(jQuery),function(t){"use strict";"object"!==_typeof(window.FUI)&&(window.FUI={}),FUI.select2=function(){t(".forminator-custom-form").each((function(){var e=t(this),o=e.data("form-id"),i=e.find(".forminator-select2");t.each(["bold","flat","default","material","none"],(function(n,r){var a,s="en",l="Search",d=-1;e.hasClass("forminator-design--"+r)&&i.length&&i.each((function(){var e=t(this),i=e.closest(".sui-dialog-content"),n=i.length?i:e.closest(".elementor-popup-modal");a=!0===e.data("rtl-support")?"rtl":"ltr",l=""!==e.data("placeholder")?e.data("placeholder"):"Search",s=""!==e.data("language")?e.data("language"):"en",d=!0===e.data("search")?0:-1,n.length||(n=t(document.body)),e.FUIselect2({dir:a,language:s,placeholder:l,dropdownCssClass:"forminator-custom-form-"+o+" forminator-dropdown--"+r,minimumResultsForSearch:d,dropdownParent:n}).on("select2:opening",(function(){e.data("select2").$dropdown.find(":input.select2-search__field").prop("placeholder",""!==e.data("placeholder")?e.data("placeholder"):"Search"),(e.closest(".hustle-popup").length||e.closest(".hustle-slidein"))&&t(document.body).addClass("forminator-hustle-dropdown-fix")})).on("select2:closing",(function(){t(document.body).removeClass("forminator-hustle-dropdown-fix")}))}))}))}))}}(jQuery),function(){"use strict";"object"!==_typeof(window.FUI)&&(window.FUI={});var t=t||{};t.KeyCode={BACKSPACE:8,TAB:9,RETURN:13,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},t.Utils=t.Utils||{},t.Utils.remove=function(t){return t.remove&&"function"==typeof t.remove?t.remove():!(!t.parentNode||!t.parentNode.removeChild||"function"!=typeof t.parentNode.removeChild)&&t.parentNode.removeChild(t)},t.Utils.isFocusable=function(t){if(0'+t("
").text(o).html()+"")}function o(t,e,o,i,n){var r=t.find(".forminator-slider-amount"),a=t.find(".forminator-slide").data("is-range");r.find(".forminator-slider-value-min").html(e),a&&(i===n?(r.find(".forminator-slider-separator").hide(),r.find(".forminator-slider-value-max").html("")):(r.find(".forminator-slider-separator").show(),r.find(".forminator-slider-value-max").html(o)))}t(".forminator-slider").each((function(){var i=t(this),n=i.find(".forminator-slide"),r=i.find(".forminator-hidden-input"),a=i.hasClass("forminator-disabled"),s=n.data("is-range"),l=parseInt(n.data("min"))||0,d=parseInt(n.data("max"))||100,c=parseInt(n.data("value"))||l,f=parseInt(n.data("value-max"))||d,u=parseInt(n.data("step"))||1,m=i.find(".forminator-slider-amount"),p=t('label[for="'+r.attr("id")+'"]');!0!==n.data("init")&&(n.slider(_objectSpread(_objectSpread({range:!!s||"min",min:l,max:d,disabled:a,step:u},s?{values:[c,f]}:{value:c}),{},{create:function(t,r){var a=e(i,c),l=s?e(i,f):null;n.data("init",!0),m.find(".forminator-slider-hidden-min").val(c).change(),s&&m.find(".forminator-slider-hidden-max").val(f).change(),o(i,a,l,c,f)},slide:function(t,n){var r=s?n.values[0]:n.value,a=s?n.values[1]:null,l=e(i,r),d=s?e(i,a):null;o(i,l,d,r,a)},stop:function(t,e){var o=s?e.values[0]:e.value,n=s?e.values[1]:null;e.handle===i.find(".ui-slider-handle")[0]?m.find(".forminator-slider-hidden-min").val(o).change():e.handle===i.find(".ui-slider-handle")[1]?m.find(".forminator-slider-hidden-max").val(n).change():m.find(".forminator-slider-hidden-min").val(o).change()}})),p.on("click",(function(){var e=n.find(".ui-slider-handle");a||(s&&1
'),n.length&&(n.addClass("forminator-floating--input"),i.find(".forminator-input-with-icon").length&&n.addClass("forminator-has_icon"),i.find(".forminator-input-with-phone").length&&(n.addClass("forminator-has_phone"),i.find(".intl-tel-input").hasClass("allow-dropdown")&&n.addClass("allow-dropdown"))),this}}(jQuery),function(t){"use strict";"object"!==_typeof(window.FUI)&&(window.FUI={}),FUI.textareaStates=function(e){var o=t(e),i=o.closest("form");if(o.is("textarea")||i.is(".forminator-ui")||i.is(".forminator-custom-form"))return o.each((function(){var e,o;e=t(this),o=e.closest(".forminator-field"),e.mouseover((function(t){o.addClass("forminator-is_hover"),t.stopPropagation()})).mouseout((function(t){o.removeClass("forminator-is_hover"),t.stopPropagation()})),function(e){var o=t(e),i=o.closest(".forminator-field");o.focus((function(t){i.addClass("forminator-is_active"),t.stopPropagation()})).blur((function(t){i.removeClass("forminator-is_active"),t.stopPropagation()}))}(this),function(e){var o=t(e),i=o.closest(".forminator-field");o.on("load",(function(){""!==o.val().trim()&&i.addClass("forminator-is_filled")})),o.on("change",(function(){""!==o.val().trim()?i.addClass("forminator-is_filled"):i.removeClass("forminator-is_filled")}))}(this)})),this}}(jQuery),function(t){"use strict";"object"!==_typeof(window.FUI)&&(window.FUI={}),FUI.textareaMaterial=function(e){var o=t(e),i=o.closest(".forminator-field"),n=i.find(".forminator-label"),r=o.closest("form");if((o.is("textarea")||r.is(".forminator-ui")||r.is(".forminator-custom-form"))&&!o.hasClass("wp-editor-area"))return function(){if(o.parent().hasClass("forminator-textarea--wrap")||o.wrap('
'),n.length){var t=(0===n.height()?20:n.height())+9;n.addClass("forminator-floating--textarea"),i.css({position:"relative"}),o.val()&&i.addClass("forminator-is_filled"),i.hasClass("forminator-is_filled")&&i.hasClass("forminator-is_active")||n.css({"padding-top":t+"px"}),o.css({"padding-top":t+"px"})}}(),this}}(jQuery),function(t){"use strict";"object"!==_typeof(window.FUI)&&(window.FUI={}),FUI.radioStates=function(e){var o=t(e),i=o.find("input");if(o.is("label")&&"radio"===i.prop("type"))return i.each((function(){t(this).on("click",(function(){var e=t(this),o=e.parent(),i=o.closest(".forminator-field").find(".forminator-radio");i.find("input").prop("checked",!1),i.removeClass("forminator-is_checked"),e.prop("checked","checked"),o.addClass("forminator-is_checked")}))})),this}}(jQuery),function(t){"use strict";"object"!==_typeof(window.FUI)&&(window.FUI={}),FUI.checkboxStates=function(e){var o=t(e),i=o.find("input");if(o.is("label")&&"checkbox"===i.prop("type"))return i.each((function(){t(this).on("click",(function(){var e=t(this).parent();e.is(".forminator-is_checked")?e.removeClass("forminator-is_checked"):e.addClass("forminator-is_checked")}))})),this}}(jQuery),function(t){"use strict";"object"!==_typeof(window.FUI)&&(window.FUI={}),FUI.multiSelectStates=function(e){var o=t(e),i=o.find(".forminator-option"),n=i.find("input");if(o.is(".forminator-multiselect")&&0!==i.length)return n.each((function(){t(this).on("click",(function(){var e=t(this).parent();e.is(".forminator-is_checked")?e.removeClass("forminator-is_checked"):e.addClass("forminator-is_checked")}))})),this}}(jQuery),function(t){"use strict";"object"!==_typeof(window.FUI)&&(window.FUI={}),FUI.select2=function(){t(".forminator-custom-form").each((function(){var e=t(this),o=e.data("form-id"),i=e.find(".forminator-select2");t.each(["bold","flat","default","material","none"],(function(n,r){var a,s="en",l="Search",d=-1;e.hasClass("forminator-design--"+r)&&i.length&&i.each((function(){var e=t(this),i=e.closest(".sui-dialog-content"),n=i.length?i:e.closest(".elementor-popup-modal");a=!0===e.data("rtl-support")?"rtl":"ltr",l=""!==e.data("placeholder")?e.data("placeholder"):"Search",s=""!==e.data("language")?e.data("language"):"en",d=!0===e.data("search")?0:-1,n.length||(n=t(document.body)),e.FUIselect2({dir:a,language:s,placeholder:l,dropdownCssClass:"forminator-custom-form-"+o+" forminator-dropdown--"+r,minimumResultsForSearch:d,dropdownParent:n}).on("select2:opening",(function(){e.data("select2").$dropdown.find(":input.select2-search__field").prop("placeholder",""!==e.data("placeholder")?e.data("placeholder"):"Search"),(e.closest(".hustle-popup").length||e.closest(".hustle-slidein"))&&t(document.body).addClass("forminator-hustle-dropdown-fix")})).on("select2:closing",(function(){t(document.body).removeClass("forminator-hustle-dropdown-fix")}))}))}))}))}}(jQuery),function(){"use strict";"object"!==_typeof(window.FUI)&&(window.FUI={});var t=t||{};t.KeyCode={BACKSPACE:8,TAB:9,RETURN:13,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},t.Utils=t.Utils||{},t.Utils.remove=function(t){return t.remove&&"function"==typeof t.remove?t.remove():!(!t.parentNode||!t.parentNode.removeChild||"function"!=typeof t.parentNode.removeChild)&&t.parentNode.removeChild(t)},t.Utils.isFocusable=function(t){if(0'+t("
").text(o).html()+"")}function o(t,e,o,i,n){var r=t.find(".forminator-slider-amount"),a=t.find(".forminator-slide").data("is-range");r.find(".forminator-slider-value-min").html(e),a&&(i===n?(r.find(".forminator-slider-separator").hide(),r.find(".forminator-slider-value-max").html("")):(r.find(".forminator-slider-separator").show(),r.find(".forminator-slider-value-max").html(o)))}t(".forminator-slider").each((function(){var i=t(this),n=i.find(".forminator-slide"),r=i.find(".forminator-hidden-input"),a=i.hasClass("forminator-disabled"),s=n.data("is-range"),l=parseInt(n.data("min"))||0,d=parseInt(n.data("max"))||100,c=parseInt(n.data("value"))||l,f=parseInt(n.data("value-max"))||d,u=parseInt(n.data("step"))||1,m=i.find(".forminator-slider-amount"),p=t('label[for="'+r.attr("id")+'"]');!0!==n.data("init")&&(n.slider(_objectSpread(_objectSpread({range:!!s||"min",min:l,max:d,disabled:a,step:u},s?{values:[c,f]}:{value:c}),{},{create:function(t,r){var a=e(i,c),l=s?e(i,f):null;n.data("init",!0),m.find(".forminator-slider-hidden-min").val(c).change(),s&&m.find(".forminator-slider-hidden-max").val(f).change(),o(i,a,l,c,f)},slide:function(t,n){var r=s?n.values[0]:n.value,a=s?n.values[1]:null,l=e(i,r),d=s?e(i,a):null;o(i,l,d,r,a)},stop:function(t,e){var o=s?e.values[0]:e.value,n=s?e.values[1]:null;e.handle===i.find(".ui-slider-handle")[0]?m.find(".forminator-slider-hidden-min").val(o).change():e.handle===i.find(".ui-slider-handle")[1]?m.find(".forminator-slider-hidden-max").val(n).change():m.find(".forminator-slider-hidden-min").val(o).change()}})),p.on("click",(function(){var e=n.find(".ui-slider-handle");a||(s&&1=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,a=!0,s=!1;return{s:function(){o=o.call(t)},n:function(){var t=o.next();return a=t.done,t},e:function(t){s=!0,n=t},f:function(){try{a||null==o.return||o.return()}finally{if(s)throw n}}}}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,i=new Array(e);o"+i.text()+" needs to be filled.":n+="
  • "+e.prop("id")+" needs to be filled.
  • ")})),r.html(n),i.find(".forminator-textarea").each((function(){var e=t(this),o=e.closest(".forminator-field"),i=o.find(".forminator-label");o.hasClass("forminator-is_required")&&""===e.val()&&(o.addClass("forminator-has_error"),i.length?n+="
  • "+i.text()+" needs to be filled.
  • ":n+="
  • "+e.prop("id")+" needs to be filled.
  • ")})),r.html(n),i.find(".forminator-field-radio").each((function(){var e=t(this),o=e.find(".forminator-label"),i=e.find(".forminator-radio"),r=i.find("input").map((function(){return this.id})).get();e.hasClass("forminator-is_required")&&0===i.find("input:checked").length&&(e.addClass("forminator-has_error"),o.length?n+="
  • "+o.text()+" needs at least one option selected.
  • ":n+="
  • You must select at lease one of these options: "+r.join(",")+"
  • ")})),r.html(n),i.find(".forminator-multiselect").each((function(){var e=t(this),o=e.closest(".forminator-field"),i=o.find(".forminator-label"),r=e.find(".forminator-option"),a=r.find("input").map((function(){return this.id})).get();o.hasClass("forminator-is_required")&&0===r.find("input:checked").length&&(o.addClass("forminator-has_error"),i.length?n+="
  • "+i.text()+" needs at least one option selected.
  • ":n+="
  • You must select at lease one of these options: "+a.join(",")+"
  • ")})),r.html(n),r.addClass("forminator-accessible"),r.removeAttr("aria-hidden"),r.prop("tabindex","-1"),r.focus()):(n="

    Form was submitted successfully.

    ",r.html(n),r.addClass("forminator-success"),r.addClass("forminator-show"),r.removeAttr("aria-hidden"),r.prop("tabindex","-1"),r.focus())}}}(jQuery),function(t){"use strict";"object"!==_typeof(window.FUI)&&(window.FUI={}),FUI.inputStates=function(e){var o=t(e),i=o.closest("form");if(o.is("input")||i.is(".forminator-poll")&&(i.is(".forminator-ui")||i.is(".forminator-custom-form")))return o.each((function(){var e,o;e=t(this),o=e.closest(".forminator-field"),e.mouseover((function(t){o.addClass("forminator-is_hover"),t.stopPropagation()})).mouseout((function(t){o.removeClass("forminator-is_hover"),t.stopPropagation()})),function(e){var o=t(e),i=o.closest(".forminator-field");o.focus((function(t){i.addClass("forminator-is_active"),t.stopPropagation()})).blur((function(t){i.removeClass("forminator-is_active"),t.stopPropagation()}))}(this),function(e){var o=t(e),i=o.closest(".forminator-field");""!==o.val().trim()&&i.addClass("forminator-is_filled"),o.on("change",(function(){""!==o.val().trim()?i.addClass("forminator-is_filled"):i.removeClass("forminator-is_filled")}))}(this)})),this}}(jQuery),function(t){"use strict";"object"!==_typeof(window.FUI)&&(window.FUI={}),FUI.inputMaterial=function(e){var o=t(e),i=o.closest(".forminator-field"),r=i.find(".forminator-label"),n=o.closest("form");if(o.is("input")||n.is(".forminator-poll")&&(n.is(".forminator-ui")||n.is(".forminator-custom-form")))return o.parent().hasClass("forminator-input--wrap")||o.wrap('
    '),r.length&&(r.addClass("forminator-floating--input"),i.find(".forminator-input-with-icon").length&&r.addClass("forminator-has_icon"),i.find(".forminator-input-with-phone").length&&(r.addClass("forminator-has_phone"),i.find(".intl-tel-input").hasClass("allow-dropdown")&&r.addClass("allow-dropdown"))),this}}(jQuery),function(t){"use strict";"object"!==_typeof(window.FUI)&&(window.FUI={}),FUI.textareaStates=function(e){var o=t(e),i=o.closest("form");if(o.is("textarea")||i.is(".forminator-ui")||i.is(".forminator-custom-form"))return o.each((function(){var e,o;e=t(this),o=e.closest(".forminator-field"),e.mouseover((function(t){o.addClass("forminator-is_hover"),t.stopPropagation()})).mouseout((function(t){o.removeClass("forminator-is_hover"),t.stopPropagation()})),function(e){var o=t(e),i=o.closest(".forminator-field");o.focus((function(t){i.addClass("forminator-is_active"),t.stopPropagation()})).blur((function(t){i.removeClass("forminator-is_active"),t.stopPropagation()}))}(this),function(e){var o=t(e),i=o.closest(".forminator-field");o.on("load",(function(){""!==o.val().trim()&&i.addClass("forminator-is_filled")})),o.on("change",(function(){""!==o.val().trim()?i.addClass("forminator-is_filled"):i.removeClass("forminator-is_filled")}))}(this)})),this}}(jQuery),function(t){"use strict";"object"!==_typeof(window.FUI)&&(window.FUI={}),FUI.textareaMaterial=function(e){var o=t(e),i=o.closest(".forminator-field"),r=i.find(".forminator-label"),n=o.closest("form");if((o.is("textarea")||n.is(".forminator-ui")||n.is(".forminator-custom-form"))&&!o.hasClass("wp-editor-area"))return function(){if(o.parent().hasClass("forminator-textarea--wrap")||o.wrap('
    '),r.length){var t=(0===r.height()?20:r.height())+9;r.addClass("forminator-floating--textarea"),i.css({position:"relative"}),o.val()&&i.addClass("forminator-is_filled"),i.hasClass("forminator-is_filled")&&i.hasClass("forminator-is_active")||r.css({"padding-top":t+"px"}),o.css({"padding-top":t+"px"})}}(),this}}(jQuery),function(t){"use strict";"object"!==_typeof(window.FUI)&&(window.FUI={}),FUI.radioStates=function(e){var o=t(e),i=o.find("input");if(o.is("label")&&"radio"===i.prop("type"))return i.each((function(){t(this).on("click",(function(){var e=t(this),o=e.parent(),i=o.closest(".forminator-field").find(".forminator-radio");i.find("input").prop("checked",!1),i.removeClass("forminator-is_checked"),e.prop("checked","checked"),o.addClass("forminator-is_checked")}))})),this}}(jQuery),function(t){"use strict";"object"!==_typeof(window.FUI)&&(window.FUI={}),FUI.checkboxStates=function(e){var o=t(e),i=o.find("input");if(o.is("label")&&"checkbox"===i.prop("type"))return i.each((function(){t(this).on("click",(function(){var e=t(this).parent();e.is(".forminator-is_checked")?e.removeClass("forminator-is_checked"):e.addClass("forminator-is_checked")}))})),this}}(jQuery),function(t){"use strict";"object"!==_typeof(window.FUI)&&(window.FUI={}),FUI.multiSelectStates=function(e){var o=t(e),i=o.find(".forminator-option"),r=i.find("input");if(o.is(".forminator-multiselect")&&0!==i.length)return r.each((function(){t(this).on("click",(function(){var e=t(this).parent();e.is(".forminator-is_checked")?e.removeClass("forminator-is_checked"):e.addClass("forminator-is_checked")}))})),this}}(jQuery),function(t){"use strict";"object"!==_typeof(window.FUI)&&(window.FUI={}),FUI.select2=function(){t(".forminator-custom-form").each((function(){var e=t(this),o=e.data("form-id"),i=e.find(".forminator-select2");t.each(["bold","flat","default","material","none"],(function(r,n){var a,s="en",l="Search",d=-1;e.hasClass("forminator-design--"+n)&&i.length&&i.each((function(){var e=t(this),i=e.closest(".sui-dialog-content"),r=i.length?i:e.closest(".elementor-popup-modal");a=!0===e.data("rtl-support")?"rtl":"ltr",l=""!==e.data("placeholder")?e.data("placeholder"):"Search",s=""!==e.data("language")?e.data("language"):"en",d=!0===e.data("search")?0:-1,r.length||(r=t(document.body)),e.FUIselect2({dir:a,language:s,placeholder:l,dropdownCssClass:"forminator-custom-form-"+o+" forminator-dropdown--"+n,minimumResultsForSearch:d,dropdownParent:r}).on("select2:opening",(function(){e.data("select2").$dropdown.find(":input.select2-search__field").prop("placeholder",""!==e.data("placeholder")?e.data("placeholder"):"Search"),(e.closest(".hustle-popup").length||e.closest(".hustle-slidein"))&&t(document.body).addClass("forminator-hustle-dropdown-fix")})).on("select2:closing",(function(){t(document.body).removeClass("forminator-hustle-dropdown-fix")}))}))}))}))}}(jQuery),function(){"use strict";"object"!==_typeof(window.FUI)&&(window.FUI={});var t=t||{};t.KeyCode={BACKSPACE:8,TAB:9,RETURN:13,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},t.Utils=t.Utils||{},t.Utils.remove=function(t){return t.remove&&"function"==typeof t.remove?t.remove():!(!t.parentNode||!t.parentNode.removeChild||"function"!=typeof t.parentNode.removeChild)&&t.parentNode.removeChild(t)},t.Utils.isFocusable=function(t){if(0'+t("
    ").text(o).html()+"")}function o(t,e,o,i,r){var n=t.find(".forminator-slider-amount"),a=t.find(".forminator-slide").data("is-range");n.find(".forminator-slider-value-min").html(e),a&&(i===r?(n.find(".forminator-slider-separator").hide(),n.find(".forminator-slider-value-max").html("")):(n.find(".forminator-slider-separator").show(),n.find(".forminator-slider-value-max").html(o)))}t(".forminator-slider").each((function(){var i=t(this),r=i.find(".forminator-slide"),n=i.find(".forminator-hidden-input"),a=i.hasClass("forminator-disabled"),s=r.data("is-range"),l=parseInt(r.data("min"))||0,d=parseInt(r.data("max"))||100,f=parseInt(r.data("value"))||l,c=parseInt(r.data("value-max"))||d,u=parseInt(r.data("step"))||1,m=i.find(".forminator-slider-amount"),p=t('label[for="'+n.attr("id")+'"]');!0!==r.data("init")&&(r.slider(_objectSpread(_objectSpread({range:!!s||"min",min:l,max:d,disabled:a,step:u},s?{values:[f,c]}:{value:f}),{},{create:function(t,n){var a=e(i,f),l=s?e(i,c):null;r.data("init",!0),m.find(".forminator-slider-hidden-min").val(f).change(),s&&m.find(".forminator-slider-hidden-max").val(c).change(),o(i,a,l,f,c)},slide:function(t,r){var n=s?r.values[0]:r.value,a=s?r.values[1]:null,l=e(i,n),d=s?e(i,a):null;o(i,l,d,n,a)},stop:function(t,e){var o=s?e.values[0]:e.value,r=s?e.values[1]:null;e.handle===i.find(".ui-slider-handle")[0]?m.find(".forminator-slider-hidden-min").val(o).change():e.handle===i.find(".ui-slider-handle")[1]?m.find(".forminator-slider-hidden-max").val(r).change():m.find(".forminator-slider-hidden-min").val(o).change()}})),p.on("click",(function(){var e=r.find(".ui-slider-handle");a||(s&&12&&void 0!==arguments[2]?arguments[2]:"horizontalBar",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",n=t(e);if("bar"===i&&(i="horizontalBar"),void 0!==o&&0!==o.length)return function(){var e,s=[],l=[],d=[],f=_createForOfIteratorHelper(o);try{for(f.s();!(e=f.n()).done;){var c=e.value;"pie"===i?s.push(c[0]):s.push(a(c[0],20)),l.push(c[1]),d.push(c[2])}}catch(t){f.e(t)}finally{f.f()}var u={votesLabel:"vote(s)",votesOnPoll:!1,basicColors:["#E5E5E5","#777771","#333333"],tooltipsBasic:["#333333","#FFFFFF"]};""===r&&(r=[u.votesLabel,u.votesOnPoll,u.basicColors,u.tooltipsBasic]);var m={labels:s,datasets:[{data:l,backgroundColor:d,borderWidth:0}]},p={legend:{display:!1},tooltips:{callbacks:{title:function(t,e){var o="";return"pie"!==i&&(o=t[0].yLabel),o},label:function(t,e){var o=e.datasets[t.datasetIndex].label||"";return"pie"===i?(o=e.labels[t.index],!0===r[1]&&(o+=": "+e.datasets[0].data[t.index])):!0===r[1]&&(o+=Math.round(100*t.xLabel)/100),!0===r[1]&&(o+=" "+r[0]),o}},backgroundColor:r[3][0],titleFontColor:r[3][1],titleFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",titleFontSize:13,titleFontStyle:"bold",titleMarginBottom:10,bodyFontColor:r[3][1],bodyFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",bodyFontSize:12,bodyFontStyle:"normal"},scales:{xAxes:[{display:"pie"!==i,ticks:{fontColor:r[2][1],beginAtZero:!0},gridLines:{color:r[2][0]}}],yAxes:[{display:"pie"!==i,ticks:{fontColor:r[2][1],beginAtZero:!0},gridLines:{color:r[2][0]}}]},plugins:{datalabels:{display:"pie"!==i&&r[1],align:"end",anchor:"start",textAlign:"center",color:r[2][2],formatter:function(t){return t+" "+r[0]}}}};n.each((function(){n=t(this),new Chart(n,{type:i,data:m,plugins:[ChartDataLabels],options:p}),"pie"===i&&(n.wrap('