| Server IP : 52.25.153.185 / Your IP : 216.73.216.222 Web Server : Apache System : Linux ip-172-26-6-158 5.10.0-45-cloud-amd64 #1 SMP Debian 5.10.259-1 (2026-07-02) x86_64 User : daemon ( 1) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /bitnami/wordpress/wp-content/plugins/fluentform/assets/js/ |
Upload File : |
/*! For license information please see form-save-progress.js.LICENSE.txt */
(()=>{"use strict";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(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,n(o.key),o)}}function n(e){var n=function(e,n){if("object"!=t(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var o=i.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==t(n)?n:n+""}var i=function(){return n=function t(e,n,i,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$=e,this.$theForm=n,this.fluentFormVars=i,this.formSelector=o,this.activeStep=0,this.isRtl=!!window.fluentFormVars.is_rtl,this.isPopulatingStepData=!1,this.isInitialLoad=!0,this.fluentFormVars.stepAnimationDuration=parseInt(this.fluentFormVars.stepAnimationDuration),this.stepPersistency="yes"===this.$theForm.find(".ff-step-container").attr("data-enable_step_data_persistency"),this.stepResume=!1,this.stepPersistency&&(this.stepResume="yes"===this.$theForm.find(".ff-step-container").attr("data-enable_step_page_resume"))},i=[{key:"getPublicAPI",value:function(){return{init:this.init.bind(this),updateSlider:this.updateSlider.bind(this),populateFormDataAndSetActiveStep:this.populateFormDataAndSetActiveStep.bind(this)}}},{key:"init",value:function(){this.initFormWithSavedState(),this.removePrevFromFirstStep(),this.initStepSlider(),this.maybeAutoSlider()}},{key:"removePrevFromFirstStep",value:function(){this.$theForm.find(".fluentform-step:first").find('.step-nav [data-action="prev"]').remove()}},{key:"getFormInstance",value:function(){return window.fluentFormApp(this.$theForm)}},{key:"syncStepTitleState",value:function(t,e){var n=this.$;t&&t.length&&(t.removeClass("ff_active ff_completed").removeAttr("aria-current"),n.each(t,function(t,i){var o=n(i);t<e?o.addClass("ff_completed"):t===e&&o.addClass("ff_active").attr("aria-current","step")}))}},{key:"enhanceClickableStepTitles",value:function(t){var e=this.$;e.each(t,function(t,n){e(n).attr("data-step-number",t),e(n).attr({role:"button",tabindex:"0","aria-label":"Go to step "+(t+1)})})}},{key:"syncTopTabOverflowState",value:function(){var t=this.$;this.$theForm.find(".ff-step-header--tabs-top .ff-step-titles").each(function(){var e=t(this),n=this.scrollWidth>this.clientWidth+1;e.toggleClass("ff-step-titles--overflowing",n)})}},{key:"isTabsIndicator",value:function(t){return"tabs"===t||"steps_with_nav"===t}},{key:"isClickableIndicator",value:function(t){return this.isTabsIndicator(t)||"steps"===t}},{key:"initFormWithSavedState",value:function(){var t=this;if(this.stepPersistency){var e=this.$,n=this;e(document).ready(function(i){var o,r;e.getJSON(t.fluentFormVars.ajaxUrl,{form_id:t.$theForm.data("form_id"),action:"fluentform_step_form_get_data",nonce:null===(o=t.fluentFormVars)||void 0===o?void 0:o.nonce,hash:null===(r=t.fluentFormVars)||void 0===r?void 0:r.hash}).then(function(t){t&&n.populateFormDataAndSetActiveStep(t)})})}}},{key:"populateFormDataAndSetActiveStep",value:function(t){var e=this,n=t.response,i=t.step_completed,o=this.$,r=[];if(this.$theForm.data("ff_restoring_draft_state",!0),this.$theForm.data("ff_restored_draft_state",!0),o.each(n,function(t,n){if(n){var i=Object.prototype.toString.call(n);if("[object Object]"===i){var a=e.$theForm.find("[data-name=".concat(t,"]"));if(a.length&&"tabular-element"===a.attr("data-type"))jQuery.each(n,function(n,i){var r=e.$theForm.find('[name="'.concat(t,"[").concat(n,']\\[\\]"]'));r.length||(r=e.$theForm.find('[name="'.concat(t,"[").concat(n,']"]'))),o.each(r,function(t,e){var n=o(e).val();-1===o.inArray(n,i)&&n!==i||o(e).prop("checked",!0).change()})});else if("chained-select"===a.attr("data-type")){var s={meta_key:a.find("select:first").attr("data-meta_key"),form_id:a.closest("form").attr("data-form_id"),action:"fluentform_get_chained_select_options",filter_options:"all",keys:n};o.getJSON(e.fluentFormVars.ajaxUrl,s).then(function(t){o.each(t,function(t,e){var i=a.find("select[data-key='".concat(t,"']"));0!=i.attr("data-index")&&o.each(e,function(t,e){i.append(o("<option />",{value:e,text:e}))}),i.attr("disabled",!1).val(n[t])})})}else o.each(n,function(n,i){e.$theForm.find('[name="'.concat(t,"[").concat(n,']"]')).val(i).change()})}else if("[object Array]"===i){var l=e.$theForm.find("[name=".concat(t,"]"));if("file"===(l=(l=l.length?l:e.$theForm.find("[data-name=".concat(t,"]"))).length?l:e.$theForm.find("[name=".concat(t,"\\[\\]]"))).attr("type"))e.addFilesToElement(l,n);else if(l.prop("multiple"))if(o.isFunction(window.Choices)){var f=l.data("choicesjs");f&&r.push({handler:f,values:n})}else l.val(n).change();else if("repeater_field"===l.attr("data-type")){var c=l.find("tbody"),u=l.attr("data-name");o.each(n,function(t,e){0!=t?c.find("tr:last").clone().appendTo(c).find(".ff-el-form-control").each(function(n,i){var r="ffrpt-"+(new Date).getTime()+n;o(i).val(e[n]),o(i).attr({id:r,name:"".concat(u,"[").concat(t,"][]"),value:e[n]}).change()}):c.find("tr:first .ff-el-form-control").each(function(t,n){o(n).val(e[t]).change()})})}else"repeater_container"===l.attr("data-type")?(o.each(n,function(t,e){if(0!==t){var n=l.find(".ff_repeater_cont_row:first").clone();n.find(".ff_repeater_cell").each(function(n,i){var r=o(this).find(".ff-el-form-control:last-child"),a="ffrpt-"+(new Date).getTime()+"_"+t+"_"+n,s={value:e[n]||"",id:a};r.prop(s),o(this).find("label").attr("for",a)}),n.insertAfter(l.find(".ff_repeater_cont_row:last"))}else l.find(".ff_repeater_cont_row:first .ff-el-form-control").each(function(t,n){o(n).val(e[t]).change()})}),e.$theForm.trigger("repeater-container-names-update",[l]),l.trigger("repeat_change")):l.each(function(t,e){-1!==o.inArray(o(e).val(),n)&&o(e).prop("checked",!0).change()})}else{var d=e.$theForm.find("[name=".concat(t,"]"));if(d.hasClass("fluentform-post-content")&&window.wp&&window.wp.editor){var p=d.attr("id");window.tinymce.get(p).setContent(n)}if("undefined"!=typeof flatpickr&&d.prop("_flatpickr")){var m=d.prop("_flatpickr");m&&(m.config.altInput?m.setDate(n,!0):d.val(n).trigger("change"))}if("radio"===d.prop("type")||"checkbox"===d.prop("type"))e.$theForm.find("[name=".concat(t,'][value="').concat(n,'"]')).prop("checked",!0).change(),d.closest(".ff-el-group").find(".ff-el-ratings").length&&e.$theForm.find("[name=".concat(t,'][value="').concat(n,'"]')).closest("label").trigger("mouseenter");else{d.hasClass("ff_has_multi_select")&&d.data("choicesjs")&&(d.data("choicesjs").removeActiveItems(n),d.data("choicesjs").setChoiceByValue(n));var h=d.closest(".ff-el-group").find(".fluentform-signature-pad");if(h.length){var v=h[0].getContext("2d"),g=new Image;g.src=n,g.onload=function(){v.drawImage(g,0,0)}}d.val(n).change()}}}}),r.length>0)for(var a=0;a<r.length;a++){var s,l=r[a].handler,f=r[a].values;l.removeActiveItems(f),l.setChoiceByValue(f);var c=null===(s=l.passedElement)||void 0===s?void 0:s.element;c&&o(c).trigger("change")}this.$theForm.data("ff_restoring_draft_state",!1),this.isPopulatingStepData=!0;var u=this.fluentFormVars.stepAnimationDuration;this.stepResume&&this.updateSlider(i,u,!0).then(function(){e.handleFocus(u)}).catch(function(t){console.error("An error occurred during the slider update:",t)}),this.isPopulatingStepData=!1}},{key:"initStepSlider",value:function(){var t=this.$,e=this.$theForm.find(".fluentform-step"),n=e.length,i=this.$theForm.find(".ff-step-titles li"),o=this.$theForm.find(".ff-step-container").first().data("progress_indicator"),r=this.isClickableIndicator(o)&&this.$theForm.find(".ff-step-titles").first().hasClass("ff-step-titles--clickable");if(!window.ff_disable_auto_step){for(var a=this.activeStep,s=0;a<n&&this.isStepAllFieldsHidden(t(e[a]))&&s<n;)a++,s++;a!==this.activeStep&&a<n&&(this.activeStep=a)}e.css("display","none"),t(e[this.activeStep]).css("display","block"),e.attr("role","group"),e.attr("aria-hidden","true"),t(e[this.activeStep]).attr("aria-hidden","false"),t(e[this.activeStep]).addClass("active"),this.syncStepTitleState(i,this.activeStep);var l=e.first();l.hasClass("active")&&l.find('button[data-action="next"]').css("visibility","visible"),e.length&&!e.last().hasClass("active")&&this.$theForm.find('button[type="submit"]').css("visibility","hidden"),this.stepProgressBarHandle({activeStep:this.activeStep,totalSteps:n}),this.registerStepNavigators(this.fluentFormVars.stepAnimationDuration),r&&this.registerClickableStepNav(i,e),this.isTabsIndicator(o)?(this.syncTopTabOverflowState(),t(window).off("resize.ff_step_tabs_"+this.$theForm.data("form_id")).on("resize.ff_step_tabs_"+this.$theForm.data("form_id"),this.syncTopTabOverflowState.bind(this))):t(window).off("resize.ff_step_tabs_"+this.$theForm.data("form_id"))}},{key:"registerClickableStepNav",value:function(t,e){var n=this.$,i=this;0!==t.length&&(this.enhanceClickableStepTitles(t),t.on("click keydown",function(t){if("keydown"!==t.type||"Enter"===t.key||" "===t.key||13===t.keyCode||32===t.keyCode){"keydown"===t.type&&t.preventDefault();var o=i.getFormInstance(),r=n(this),a=i.fluentFormVars.stepAnimationDuration,s=e.index(i.$theForm.find(".fluentform-step.active"));try{var l=parseInt(r.data("step-number"),10);if(isNaN(l))return;if(l===s)return;l>s&&n.each(e,function(t,e){if(t<l){var i=n(e).find(":input").not(":button").filter(function(t,e){return!n(e).closest(".has-conditions").hasClass("ff_excluded")});i.length&&o.validate(i)}}),i.updateSlider(l,a,!0).then(function(){i.handleFocus(a)}).catch(function(t){console.error("An error occurred during the slider update:",t)})}catch(t){if(!(t instanceof window.ffValidationError))throw t;i.updateSlider(s,a,!0).then(function(){i.handleFocus(a)}).catch(function(t){console.error("An error occurred during the slider update:",t)}),o.showErrorMessages(t.messages),o.scrollToFirstError(350)}}}))}},{key:"stepProgressBarHandle",value:function(t){var e=this.$;if(this.$theForm.find(".ff-el-progress").length){var n=t.totalSteps,i=t.activeStep,o=100/n*(i+1),r=this.$theForm.find(".ff-el-progress-title li"),a=this.$theForm.find(".ff-step-header .ff-el-progress-bar"),s=a.find("span"),l=this.$theForm.find(".ff-step-container").first(),f=this.isTabsIndicator(l.data("progress_indicator"));a.css({transition:"width 0.3s ease-in-out",width:o+"%"}),o?a.append(s.text(parseInt(o)+"%")):s.empty();var c=this.fluentFormVars.step_text,u=e(r[i]).text();c=f?parseInt(o)+"% "+this.fluentFormVars.step_completed_text:c.replace("%activeStep%",i+1).replace("%totalStep%",n).replace("%stepTitle%",u),this.$theForm.find(".ff-el-progress-status").text(c).attr("aria-live","polite"),r.css("display","none"),e(r[i]).css("display","inline")}}},{key:"isStepAllFieldsHidden",value:function(t){return this.$,t.find(".ff-el-group").not(".ff-custom_html").length,!1}},{key:"animateProgressToStep",value:function(t,e,n){this.$;var i=this.$theForm.find(".ff-step-header .ff-el-progress-bar");if(!i.length||!e)return Promise.resolve();var o=100/e*(t+1);return n&&n>0?i.css({transition:"width ".concat(n,"ms ease-in-out")}):i.css({transition:"none"}),i[0]&&i[0].offsetHeight,i.css("width",o+"%"),new Promise(function(t){var e=!1,o=setTimeout(function(){e||(e=!0,t())},(n||0)+120);i.one("transitionend webkitTransitionEnd oTransitionEnd",function(){e||(e=!0,clearTimeout(o),t())})})}},{key:"registerStepNavigators",value:function(t){var e=this.$,n=this;this.handleFocus(t),e(this.formSelector).on("click",".fluentform-step .step-nav button, .fluentform-step .step-nav img",function(i){var o=e(this).data("action"),r="next",a=e(this).closest(".fluentform-step"),s=n.getFormInstance();if("next"===o){try{var l=a.find(":input").not(":button").filter(function(t,n){return!e(n).closest(".has-conditions").hasClass("ff_excluded")});l.length&&s.validate(l),n.activeStep++}catch(i){if(!(i instanceof window.ffValidationError))throw i;return s.showErrorMessages(i.messages),void s.scrollToFirstError(350)}n.$theForm.trigger("ff_to_next_page",n.activeStep),e(document).trigger("ff_to_next_page",{step:n.activeStep,form:n.$theForm});var f=n.$theForm.find(".fluentform-step");n.$theForm.trigger("ff_render_dynamic_smartcodes",e(f[n.activeStep]))}else n.activeStep--,r="prev",n.$theForm.trigger("ff_to_prev_page",n.activeStep),e(document).trigger("ff_to_prev_page",{step:n.activeStep,form:n.$theForm});var c="yes"!=n.$theForm.find(".ff-step-container").attr("data-disable_auto_focus");n.updateSlider(n.activeStep,t,c,r).then(function(){n.handleFocus(t)}).catch(function(t){console.error("An error occurred during the slider update:",t)})})}},{key:"updateSlider",value:function(t,e){var n=this,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"next",r=this.$,a=this;return new Promise(function(s){r("div"+n.formSelector+"_errors").empty(),n.activeStep=t;var l=n.$theForm.find(".ff-step-titles li"),f=n.$theForm.find(".fluentform-step"),c=f.length;if(!window.ff_disable_auto_step&&c){var u=a.$theForm.find(".fluentform-step").index(a.$theForm.find(".fluentform-step.active"));if("prev"===o||u>-1&&n.activeStep<u)for(;n.activeStep>0&&n.isStepAllFieldsHidden(r(f[n.activeStep]));)n.activeStep--;else for(;n.activeStep<c-1&&n.isStepAllFieldsHidden(r(f[n.activeStep]));)n.activeStep++}f.css("display","none").removeClass("active").attr("aria-hidden","true"),r(f[n.activeStep]).css("display","block").addClass("active").attr("aria-hidden","false"),n.syncStepTitleState(l,n.activeStep);var d=r(f[n.activeStep]).closest(".ff-step-container").data("animation_type"),p=r(f[n.activeStep]).closest(".ff-step-container"),m=r(f[n.activeStep]).closest(".ff-step-body"),h=n.isTabsIndicator(p.data("progress_indicator"));h&&m.css("overflow","hidden");var v=r(f[n.activeStep]);v.find(".step-nav button, .step-nav img").css("visibility","hidden");var g,_=c;g="none"===d?0===e?0:e<50?50:e<200?e:window.ffTransitionTimeOut||500:e;var y,b=n.animateProgressToStep(n.activeStep,_,g);switch(d){case"slide":v.css({display:"block",position:"relative",left:n.isRtl?"-100%":"100%",opacity:0,transition:"all ".concat(e,"ms cubic-bezier(0.25, 0.1, 0.25, 1.0)")}),v[0].offsetHeight,v.css({left:"0%",opacity:1}),y=new Promise(function(t){return setTimeout(function(){v.css({position:"",left:"",transition:""}),t()},e+50)});break;case"fade":v.css({display:"block",opacity:0,transition:"opacity ".concat(e,"ms ease-in-out")}),v[0].offsetHeight,v.css("opacity",1),y=new Promise(function(t){return setTimeout(function(){v.css("transition",""),t()},e+50)});break;case"slide_down":v.css({display:"block",opacity:0,maxHeight:"0",overflow:"hidden",transition:"all ".concat(e,"ms cubic-bezier(0.25, 0.1, 0.25, 1.0)")}),v[0].offsetHeight;var S=v[0].scrollHeight;v.css({maxHeight:S+"px",opacity:1}),y=new Promise(function(t){return setTimeout(function(){v.css({maxHeight:"",overflow:"",transition:""}),t()},e+50)});break;default:var w,T=window.ffTransitionTimeOut||500;w=e<50&&e>0?50:e<T?e:T,y=new Promise(function(t){return setTimeout(t,w)})}Promise.all([y,b]).then(function(){i&&function(){if(!window.ff_disable_step_scroll){var t,e,n,i,o,s,l=a.$theForm.find(".ff_step_start");t=window.ff_scroll_top_offset?window.ff_scroll_top_offset:l.offset().top-100,i=(n=(e=l).offset().top)+e.outerHeight(),s=(o=r(window).scrollTop())+r(window).height(),i>o&&n<s&&!window.ff_force_scroll||r("html, body").animate({scrollTop:t},500,"swing")}}(),function(){h&&m.css("overflow","");var e=0===t&&!i,n=a.$theForm.hasClass("ff_submitting");!a.stepPersistency||a.isPopulatingStepData||e||n||a.saveStepData(a.$theForm,a.activeStep).then(function(t){}),a.stepProgressBarHandle({activeStep:a.activeStep,totalSteps:c});var l=a.$theForm.find('button[type="submit"]').not(".ff-btn-save-progress"),u=-1;if(l.length){var d=l[0];f.each(function(t){if(this.contains(d))return u=t,!1})}var p=f.index(a.$theForm.find(".fluentform-step.active")),v=u>=0&&p>=u;if(!v&&h){var g=a.$theForm.find(".ff-step-titles--clickable li").length;g>0&&p>=g-1&&(v=!0)}if(l.css("visibility",v?"visible":"hidden"),!window.ff_disable_auto_step){a.$theForm.find(".fluentform-step.active");var _=a.$theForm.find(".fluentform-step.active > .step-nav").length,y=a.$theForm.find(".fluentform-step.active > div").length-_,b=a.$theForm.find(".fluentform-step.active > .ff_excluded").length;if(a.$theForm.find(".fluentform-step.active > .ff-t-container").length&&(y-=a.$theForm.find(".fluentform-step.active > .ff-t-container").length,y+=a.$theForm.find(".fluentform-step.active > .ff-t-container > .ff-t-cell > div").length,b+=a.$theForm.find(".fluentform-step.active > .ff-t-container > .ff-t-cell > .ff_excluded").length,a.$theForm.find(".fluentform-step.active > .ff-t-container.ff_excluded").length&&(b-=a.$theForm.find(".fluentform-step.active > .ff-t-container.ff_excluded").length,b-=a.$theForm.find(".fluentform-step.active > .ff-t-container.ff_excluded > .ff-t-cell > .ff_excluded").length,b+=a.$theForm.find(".fluentform-step.active > .ff-t-container.ff_excluded > .ff-t-cell > div").length)),y===b){var S="prev"===o?a.activeStep-1:a.activeStep+1;if(S>=0&&S<c){var w="none"===r(f[S]).closest(".ff-step-container").data("animation_type")?50:100;return void a.updateSlider(S,w,i,o).then(function(){s()}).catch(function(t){console.error("An error occurred during step skip:",t),s()})}}}a.$theForm.find(".fluentform-step.active").find('.step-nav button[data-action="next"]').css("visibility","visible"),a.$theForm.find(".fluentform-step.active").find('.step-nav button[data-action="prev"]').css("visibility","visible"),a.$theForm.find(".fluentform-step.active").find('.step-nav img[data-action="next"]').css("visibility","visible"),a.$theForm.find(".fluentform-step.active").find('.step-nav img[data-action="prev"]').css("visibility","visible"),s()}()})})}},{key:"handleFocus",value:function(t){var e=this.$,n=this,i=!1,o=function(i){var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r="yes"!=n.$theForm.find(".ff-step-container").attr("data-disable_auto_focus");if(!n.isInitialLoad){var a;if(r){if(!window.ff_disable_step_scroll){var s=i.find("input, .ff-custom_html, select, textarea, button, a").filter(":visible");s.length&&o&&setTimeout(function(){s.first().focus()},t+50)}}else null!==(a=window.fluentFormVars)&&void 0!==a&&a.step_change_focus&&!window.ff_disable_step_scroll&&setTimeout(function(){e("".concat(n.formSelector," .fluentform-step.active")).attr("tabindex","-1").focus().removeAttr("tabindex")},t);n.isInitialLoad=!1}};n.$theForm.off("keydown.stepNavigation").on("keydown.stepNavigation",function(t){if(!i&&(" "===t.key||32===t.keyCode)){var o=e("".concat(n.formSelector," .fluentform-step.active .ff-btn-next")),r=e("".concat(n.formSelector," .fluentform-step.active .ff-btn-prev"));return document.activeElement===o[0]?(t.preventDefault(),void o.click()):document.activeElement===r[0]?(t.preventDefault(),void r.click()):void 0}}),this.$theForm.on("ff_to_next_page ff_to_prev_page",function(){i=!0,setTimeout(function(){i=!1,o(n.$theForm.find(".fluentform-step.active"),!0)},t+50)}),"yes"!==this.$theForm.find(".ff-step-container").attr("data-disable_auto_focus")&&0!==n.$theForm.find(".fluentform-step").index(n.$theForm.find(".fluentform-step.active"))&&!this.isInitialLoad&&o(e("".concat(this.formSelector," .fluentform-step.active")),!0),this.isInitialLoad=!1}},{key:"saveStepData",value:function(t,e){var n,i=this.$,o=t.find(":input").filter(function(t,e){return!i(e).closest(".has-conditions").hasClass("ff_excluded")});o.filter(function(t,e){var n=i(e);return n.parents().hasClass("ff_repeater_table")&&"select"==n.attr("type")&&!n.val()}).prepend("<option selected disabled />");var r=o.serialize();i.each(t.find("[type=file]"),function(t,e){var n={},o=e.name+"[]";n[o]=[],i(e).closest("div").find(".ff-uploaded-list").find(".ff-upload-preview[data-src]").each(function(t,e){n[o][t]=i(this).data("src")}),i.each(n,function(t,e){if(e.length){var n={};n[t]=e,r+="&"+i.param(n)}})});var a={active_step:e,data:r,form_id:t.data("form_id"),action:"fluentform_step_form_save_data",nonce:null===(n=this.fluentFormVars)||void 0===n?void 0:n.nonce};return i.post(this.fluentFormVars.ajaxUrl,a)}},{key:"maybeAutoSlider",value:function(){var t=this.$;if("yes"==this.$theForm.find(".ff-step-container").attr("data-enable_auto_slider")){var e=function(t){if(1==t.closest(".fluentform-step.active").find(".ff-el-group:not(.ff_excluded):not(.ff-custom_html)").length)if(t.closest(".fluentform-step.active").find(".ff_excluded").length){var e=window.ffTransitionTimeOut||500;setTimeout(function(){t.closest(".fluentform-step.active").find(".ff-btn-next").trigger("click")},e)}else t.closest(".fluentform-step.active").find(".ff-btn-next").trigger("click")};this.$theForm.find(".ff-el-form-check-radio,.ff-el-net-label, .ff-el-ratings label").on("click",function(){e(t(this))}),this.$theForm.find("select").on("change",function(){e(t(this))})}}},{key:"addFilesToElement",value:function(e,n){var i=this.$,o=this,r=e.closest(".ff-el-input--content").find(".ff-uploaded-list");i.each(n,function(e,n){n="object"===t(n)?n:{url:n,data_src:n};var a=i("<div/>",{class:"ff-upload-preview","data-src":n.data_src,style:"border: 1px solid rgb(111, 117, 125)"}),s=i("<div/>",{class:"ff-upload-thumb"});s.append(i("<div/>",{class:"ff-upload-preview-img",style:"background-image: url('".concat(o.getThumbnail(n.url),"');")}));var l=i("<div/>",{class:"ff-upload-details"}),f=i("<span/>",{html:o.fluentFormVars.upload_completed_txt,class:"ff-upload-progress-inline-text ff-inline-block"}),c=n.url.substring(n.url.lastIndexOf("/")+1);c.includes("-ff-")&&(c=c.substring(c.lastIndexOf("-ff-")+4));var u=i("<div/>",{class:"ff-upload-filename",html:c}),d=i('\n <div class="ff-upload-progress-inline ff-el-progress">\n <div style="width: 100%;" class="ff-el-progress-bar"></div>\n </div>\n '),p=i("<span/>",{"data-href":"#",html:"×",class:"ff-upload-remove"}),m=i("<div>",{class:"ff-upload-filesize ff-inline-block",html:""}),h=i("<div>",{class:"ff-upload-error",style:"color:red;"});l.append(u,d,f,m,h,p),a.append(s,l),r.append(a)}),e.trigger("change_remaining",-n.length),e.trigger("change")}},{key:"getThumbnail",value:function(t){if(!t)return"";var e=t.split(/[#?]/)[0].split(".").pop().trim().toLowerCase();if(-1!=["jpg","jpeg","gif","png"].indexOf(e))return t;var n=document.createElement("canvas");n.width=60,n.height=60,n.style.zIndex=8,n.style.position="absolute",n.style.border="1px solid";var i=n.getContext("2d");return i.fillStyle="rgba(0, 0, 0, 0.2)",i.fillRect(0,0,60,60),i.font="13px Arial",i.fillStyle="white",i.textAlign="center",i.fillText(e,30,30,60),n.toDataURL()}}],i&&e(n.prototype,i),o&&e(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,o}();function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,o,r,a,s=[],l=!0,f=!1;try{if(r=(n=n.call(t)).next,0===e);else for(;!(l=(i=r.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){f=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(f)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const a=Object.entries,s=Object.setPrototypeOf,l=Object.isFrozen,f=Object.getPrototypeOf,c=Object.getOwnPropertyDescriptor;let u=Object.freeze,d=Object.seal,p=Object.create,m="undefined"!=typeof Reflect&&Reflect,h=m.apply,v=m.construct;u||(u=function(t){return t}),d||(d=function(t){return t}),h||(h=function(t,e){for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];return t.apply(e,i)}),v||(v=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return new t(...n)});const g=z(Array.prototype.forEach),_=z(Array.prototype.lastIndexOf),y=z(Array.prototype.pop),b=z(Array.prototype.push),S=z(Array.prototype.splice),w=Array.isArray,T=z(String.prototype.toLowerCase),A=z(String.prototype.toString),k=z(String.prototype.match),E=z(String.prototype.replace),F=z(String.prototype.indexOf),x=z(String.prototype.trim),N=z(Number.prototype.toString),C=z(Boolean.prototype.toString),O="undefined"==typeof BigInt?null:z(BigInt.prototype.toString),D="undefined"==typeof Symbol?null:z(Symbol.prototype.toString),I=z(Object.prototype.hasOwnProperty),R=z(Object.prototype.toString),$=z(RegExp.prototype.test),L=(P=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return v(P,e)});var P;function z(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return h(t,e,i)}}function M(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:T;if(s&&s(t,null),!w(e))return t;let i=e.length;for(;i--;){let o=e[i];if("string"==typeof o){const t=n(o);t!==o&&(l(e)||(e[i]=t),o=t)}t[o]=!0}return t}function U(t){for(let e=0;e<t.length;e++){I(t,e)||(t[e]=null)}return t}function H(t){const e=p(null);for(const i of a(t)){var n=r(i,2);const o=n[0],a=n[1];I(t,o)&&(w(a)?e[o]=U(a):a&&"object"==typeof a&&a.constructor===Object?e[o]=H(a):e[o]=a)}return e}function j(t,e){for(;null!==t;){const n=c(t,e);if(n){if(n.get)return z(n.get);if("function"==typeof n.value)return z(n.value)}t=f(t)}return function(){return null}}const B=u(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),V=u(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),W=u(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),G=u(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Y=u(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),q=u(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),X=u(["#text"]),K=u(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Z=u(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),J=u(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Q=u(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),tt=d(/{{[\w\W]*|^[\w\W]*}}/g),et=d(/<%[\w\W]*|^[\w\W]*%>/g),nt=d(/\${[\w\W]*/g),it=d(/^data-[\-\w.\u00B7-\uFFFF]+$/),ot=d(/^aria-[\-\w]+$/),rt=d(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),at=d(/^(?:\w+script|data):/i),st=d(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),lt=d(/^html$/i),ft=d(/^[a-z][.\w]*(-[.\w]+)+$/i),ct=d(/<[/\w!]/g),ut=d(/<[/\w]/g),dt=d(/<\/no(script|embed|frames)/i),pt=d(/\/>/i),mt=1,ht=3,vt=7,gt=8,_t=9,yt=11,bt=function(){return"undefined"==typeof window?null:window},St=function(t,e,n,i){return I(t,e)&&w(t[e])?M(i.base?H(i.base):{},t[e],i.transform):n};var wt=function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:bt();const n=e=>t(e);if(n.version="3.4.13",n.removed=[],!e||!e.document||e.document.nodeType!==_t||!e.Element)return n.isSupported=!1,n;let i=e.document;const o=i,r=o.currentScript;e.DocumentFragment;const s=e.HTMLTemplateElement,l=e.Node,f=e.Element,c=e.NodeFilter,m=e.NamedNodeMap;void 0===m&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const h=e.DOMParser,v=e.trustedTypes,P=f.prototype,z=j(P,"cloneNode"),U=j(P,"remove"),wt=j(P,"nextSibling"),Tt=j(P,"childNodes"),At=j(P,"parentNode"),kt=j(P,"shadowRoot"),Et=j(P,"attributes"),Ft=l&&l.prototype?j(l.prototype,"nodeType"):null,xt=l&&l.prototype?j(l.prototype,"nodeName"):null,Nt=l&&l.prototype?j(l.prototype,"ownerDocument"):null;if("function"==typeof s){const t=i.createElement("template");t.content&&t.content.ownerDocument&&(i=t.content.ownerDocument)}let Ct,Ot,Dt="",It=!1,Rt=0;const $t=function(){if(Rt>0)throw L('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},Lt=function(t){$t(),Rt++;try{return Ct.createHTML(t)}finally{Rt--}},Pt=function(){return It||(Ot=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null;const i="data-tt-policy-suffix";e&&e.hasAttribute(i)&&(n=e.getAttribute(i));const o="dompurify"+(n?"#"+n:"");try{return t.createPolicy(o,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(v,r),It=!0),Ot},zt=i,Mt=zt.implementation,Ut=zt.createNodeIterator,Ht=zt.createDocumentFragment,jt=zt.getElementsByTagName,Bt=o.importNode;let Vt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof a&&"function"==typeof At&&Mt&&void 0!==Mt.createHTMLDocument;const Wt=tt,Gt=et,Yt=nt,qt=it,Xt=ot,Kt=at,Zt=st,Jt=ft;let Qt=rt,te=null;const ee=M({},[...B,...V,...W,...Y,...X]);let ne=null;const ie=M({},[...K,...Z,...J,...Q]);let oe=Object.seal(p(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),re=null,ae=null;const se=Object.seal(p(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let le=!0,fe=!0,ce=!1,ue=!0,de=!1,pe=!0,me=!1,he=!1,ve=null,ge=null,_e=!1,ye=!1,be=!1,Se=!1,we=!0,Te=!1;const Ae="user-content-";let ke=!0,Ee=!1,Fe={},xe=null;const Ne=M({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Ce=null;const Oe=M({},["audio","video","img","source","image","track"]);let De=null;const Ie=M({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Re="http://www.w3.org/1998/Math/MathML",$e="http://www.w3.org/2000/svg",Le="http://www.w3.org/1999/xhtml";let Pe=Le,ze=!1,Me=null;const Ue=M({},[Re,$e,Le],A),He=u(["mi","mo","mn","ms","mtext"]);let je=M({},He);const Be=u(["annotation-xml"]);let Ve=M({},Be);const We=M({},["title","style","font","a","script"]);let Ge=null;const Ye=["application/xhtml+xml","text/html"];let qe=null,Xe=null;const Ke=i.createElement("form"),Ze=function(t){return t instanceof RegExp||t instanceof Function},Je=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Xe&&Xe===t)return;t&&"object"==typeof t||(t={}),t=H(t),Ge=-1===Ye.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,qe="application/xhtml+xml"===Ge?A:T,te=St(t,"ALLOWED_TAGS",ee,{transform:qe}),ne=St(t,"ALLOWED_ATTR",ie,{transform:qe}),Me=St(t,"ALLOWED_NAMESPACES",Ue,{transform:A}),De=St(t,"ADD_URI_SAFE_ATTR",Ie,{transform:qe,base:Ie}),Ce=St(t,"ADD_DATA_URI_TAGS",Oe,{transform:qe,base:Oe}),xe=St(t,"FORBID_CONTENTS",Ne,{transform:qe}),re=St(t,"FORBID_TAGS",H({}),{transform:qe}),ae=St(t,"FORBID_ATTR",H({}),{transform:qe}),Fe=!!I(t,"USE_PROFILES")&&(t.USE_PROFILES&&"object"==typeof t.USE_PROFILES?H(t.USE_PROFILES):t.USE_PROFILES),le=!1!==t.ALLOW_ARIA_ATTR,fe=!1!==t.ALLOW_DATA_ATTR,ce=t.ALLOW_UNKNOWN_PROTOCOLS||!1,ue=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,de=t.SAFE_FOR_TEMPLATES||!1,pe=!1!==t.SAFE_FOR_XML,me=t.WHOLE_DOCUMENT||!1,ye=t.RETURN_DOM||!1,be=t.RETURN_DOM_FRAGMENT||!1,Se=t.RETURN_TRUSTED_TYPE||!1,_e=t.FORCE_BODY||!1,we=!1!==t.SANITIZE_DOM,Te=t.SANITIZE_NAMED_PROPS||!1,ke=!1!==t.KEEP_CONTENT,Ee=t.IN_PLACE||!1,Qt=function(t){try{return $(t,""),!0}catch(t){return!1}}(t.ALLOWED_URI_REGEXP)?t.ALLOWED_URI_REGEXP:rt,Pe="string"==typeof t.NAMESPACE?t.NAMESPACE:Le,je=I(t,"MATHML_TEXT_INTEGRATION_POINTS")&&t.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof t.MATHML_TEXT_INTEGRATION_POINTS?H(t.MATHML_TEXT_INTEGRATION_POINTS):M({},He),Ve=I(t,"HTML_INTEGRATION_POINTS")&&t.HTML_INTEGRATION_POINTS&&"object"==typeof t.HTML_INTEGRATION_POINTS?H(t.HTML_INTEGRATION_POINTS):M({},Be);const e=I(t,"CUSTOM_ELEMENT_HANDLING")&&t.CUSTOM_ELEMENT_HANDLING&&"object"==typeof t.CUSTOM_ELEMENT_HANDLING?H(t.CUSTOM_ELEMENT_HANDLING):p(null);if(oe=p(null),I(e,"tagNameCheck")&&Ze(e.tagNameCheck)&&(oe.tagNameCheck=e.tagNameCheck),I(e,"attributeNameCheck")&&Ze(e.attributeNameCheck)&&(oe.attributeNameCheck=e.attributeNameCheck),I(e,"allowCustomizedBuiltInElements")&&"boolean"==typeof e.allowCustomizedBuiltInElements&&(oe.allowCustomizedBuiltInElements=e.allowCustomizedBuiltInElements),d(oe),de&&(fe=!1),be&&(ye=!0),Fe&&(te=M({},X),ne=p(null),!0===Fe.html&&(M(te,B),M(ne,K)),!0===Fe.svg&&(M(te,V),M(ne,Z),M(ne,Q)),!0===Fe.svgFilters&&(M(te,W),M(ne,Z),M(ne,Q)),!0===Fe.mathMl&&(M(te,Y),M(ne,J),M(ne,Q))),se.tagCheck=null,se.attributeCheck=null,I(t,"ADD_TAGS")&&("function"==typeof t.ADD_TAGS?se.tagCheck=t.ADD_TAGS:w(t.ADD_TAGS)&&(te===ee&&(te=H(te)),M(te,t.ADD_TAGS,qe))),I(t,"ADD_ATTR")&&("function"==typeof t.ADD_ATTR?se.attributeCheck=t.ADD_ATTR:w(t.ADD_ATTR)&&(ne===ie&&(ne=H(ne)),M(ne,t.ADD_ATTR,qe))),I(t,"ADD_URI_SAFE_ATTR")&&w(t.ADD_URI_SAFE_ATTR)&&M(De,t.ADD_URI_SAFE_ATTR,qe),I(t,"FORBID_CONTENTS")&&w(t.FORBID_CONTENTS)&&(xe===Ne&&(xe=H(xe)),M(xe,t.FORBID_CONTENTS,qe)),I(t,"ADD_FORBID_CONTENTS")&&w(t.ADD_FORBID_CONTENTS)&&(xe===Ne&&(xe=H(xe)),M(xe,t.ADD_FORBID_CONTENTS,qe)),ke&&(te["#text"]=!0),me&&M(te,["html","head","body"]),te.table&&(M(te,["tbody"]),delete re.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw L('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw L('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const e=Ct;Ct=t.TRUSTED_TYPES_POLICY;try{Dt=Lt("")}catch(t){throw Ct=e,t}}else null===t.TRUSTED_TYPES_POLICY?(Ct=void 0,Dt=""):(void 0===Ct&&(Ct=Pt()),Ct&&"string"==typeof Dt&&(Dt=Lt("")));u&&u(t),Xe=t},Qe=M({},[...V,...W,...G]),tn=M({},[...Y,...q]),en=function(t){let e=At(t);e&&e.tagName||(e={namespaceURI:Pe,tagName:"template"});const n=T(t.tagName),i=T(e.tagName);return!!Me[t.namespaceURI]&&(t.namespaceURI===$e?function(t,e,n){return e.namespaceURI===Le?"svg"===t:e.namespaceURI===Re?"svg"===t&&("annotation-xml"===n||je[n]):Boolean(Qe[t])}(n,e,i):t.namespaceURI===Re?function(t,e,n){return e.namespaceURI===Le?"math"===t:e.namespaceURI===$e?"math"===t&&Ve[n]:Boolean(tn[t])}(n,e,i):t.namespaceURI===Le?function(t,e,n){return!(e.namespaceURI===$e&&!Ve[n])&&!(e.namespaceURI===Re&&!je[n])&&!tn[t]&&(We[t]||!Qe[t])}(n,e,i):!("application/xhtml+xml"!==Ge||!Me[t.namespaceURI]))},nn=function(t){b(n.removed,{element:t});try{At(t).removeChild(t)}catch(e){if(U(t),!At(t))throw L("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},on=function(t){sn(t);const e=Tt(t);if(e){const t=[];g(e,e=>{b(t,e)}),g(t,t=>{try{U(t)}catch(t){}})}const n=Et(t);if(n)for(let e=n.length-1;e>=0;--e){const i=n[e],o=i&&i.name;if("string"==typeof o)try{t.removeAttribute(o)}catch(t){}}},rn=function(t,e){try{b(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){b(n.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t)if(ye||be)try{nn(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},an=function(t){const e=Et(t);if(e)for(let n=e.length-1;n>=0;--n){const i=e[n],o=i&&i.name;if("string"==typeof o&&!ne[qe(o)])try{t.removeAttribute(o)}catch(t){}}},sn=function(t){const e=[t];for(;e.length>0;){const t=e.pop();(Ft?Ft(t):t.nodeType)===mt&&an(t);const n=Tt(t);if(n)for(let t=n.length-1;t>=0;--t)e.push(n[t])}},ln=function(t){let e=null,n=null;if(_e)t="<remove></remove>"+t;else{const e=k(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===Ge&&Pe===Le&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const o=Ct?Lt(t):t;if(Pe===Le)try{e=(new h).parseFromString(o,Ge)}catch(t){}if(!e||!e.documentElement){e=Mt.createDocument(Pe,"template",null);try{e.documentElement.innerHTML=ze?Dt:o}catch(t){}}const r=e.body||e.documentElement;return t&&n&&r.insertBefore(i.createTextNode(n),r.childNodes[0]||null),Pe===Le?jt.call(e,me?"html":"body")[0]:me?e.documentElement:r},fn=function(t){const e=Nt?Nt(t):t.ownerDocument;return Ut.call(e||t,t,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},cn=function(t){return t=E(t,Wt," "),t=E(t,Gt," "),t=E(t,Yt," ")},un=function(t){var e;t.normalize();const n=Nt?Nt(t):t.ownerDocument,i=Ut.call(n||t,t,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let o=i.nextNode();for(;o;)o.data=cn(o.data),o=i.nextNode();const r=null===(e=t.querySelectorAll)||void 0===e?void 0:e.call(t,"template");r&&g(r,t=>{pn(t.content)&&un(t.content)})},dn=function(t){const e=xt?xt(t):null;return"string"==typeof e&&("form"===qe(e)&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||t.attributes!==Et(t)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes||t.nodeType!==Ft(t)||t.childNodes!==Tt(t)))},pn=function(t){if(!Ft||"object"!=typeof t||null===t)return!1;try{return Ft(t)===yt}catch(t){return!1}},mn=function(t){if(!Ft||"object"!=typeof t||null===t)return!1;try{return"number"==typeof Ft(t)}catch(t){return!1}};function hn(t,e,i){0!==t.length&&g(t,t=>{t.call(n,e,i,Xe)})}const vn=function(t,e,n,i){return 0===t.length?e:e===n||e===i?H(e):e},gn=function(t,e){if(hn(Vt.beforeSanitizeElements,t,null),t!==e&&null===At(t))return Ee&&sn(t),!0;if(dn(t))return nn(t),!0;const i=qe(xt?xt(t):t.nodeName);if(te=vn(Vt.uponSanitizeElement,te,ee,ve),hn(Vt.uponSanitizeElement,t,{tagName:i,allowedTags:te}),t!==e&&null===At(t))return Ee&&sn(t),!0;if(function(t,e){return!!(pe&&t.hasChildNodes()&&!mn(t.firstElementChild)&&$(ct,t.textContent)&&$(ct,t.innerHTML))||!(!pe||t.namespaceURI!==Le||"style"!==e||!mn(t.firstElementChild))||t.nodeType===vt||!(!pe||t.nodeType!==gt||!$(ut,t.data))}(t,i))return nn(t),!0;if(re[i]||!(se.tagCheck instanceof Function&&se.tagCheck(i))&&!te[i]){const n=function(t,e,n){if(!re[e]&&bn(e)){if(oe.tagNameCheck instanceof RegExp&&$(oe.tagNameCheck,e))return!1;if(oe.tagNameCheck instanceof Function&&oe.tagNameCheck(e))return!1}if(ke&&!xe[e]){const e=At(t),i=Tt(t);if(i&&e)for(let o=i.length-1;o>=0;--o){const r=t===n?z(i[o],!0):i[o];e.insertBefore(r,wt(t))}}return nn(t),!0}(t,i,e);return!1===n&&hn(Vt.afterSanitizeElements,t,null),n}if((Ft?Ft(t):t.nodeType)===mt&&!en(t))return nn(t),!0;if(("noscript"===i||"noembed"===i||"noframes"===i)&&$(dt,t.innerHTML))return nn(t),!0;if(de&&t.nodeType===ht){const e=cn(t.textContent);t.textContent!==e&&(b(n.removed,{element:t.cloneNode()}),t.textContent=e)}return hn(Vt.afterSanitizeElements,t,null),!1},_n=function(t,e,n){if(ae[e])return!1;if(pe&&"patchsrc"===e)return!1;if(pe&&"for"===e&&"label"!==t&&"output"!==t)return!1;if(we&&("id"===e||"name"===e)&&(n in i||n in Ke))return!1;const o=ne[e]||se.attributeCheck instanceof Function&&se.attributeCheck(e,t);if(fe&&$(qt,e));else if(le&&$(Xt,e));else if(o)if(De[e]);else if($(Qt,E(n,Zt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==F(n,"data:")||!Ce[t]){if(ce&&!$(Kt,E(n,Zt,"")));else if(n)return!1}else;else if(!(bn(t)&&(oe.tagNameCheck instanceof RegExp&&$(oe.tagNameCheck,t)||oe.tagNameCheck instanceof Function&&oe.tagNameCheck(t))&&(oe.attributeNameCheck instanceof RegExp&&$(oe.attributeNameCheck,e)||oe.attributeNameCheck instanceof Function&&oe.attributeNameCheck(e,t))||"is"===e&&oe.allowCustomizedBuiltInElements&&(oe.tagNameCheck instanceof RegExp&&$(oe.tagNameCheck,n)||oe.tagNameCheck instanceof Function&&oe.tagNameCheck(n))))return!1;return!0},yn=M({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),bn=function(t){return!yn[T(t)]&&$(Jt,t)},Sn=function(t,e,n,i){if(Ct&&"object"==typeof v&&"function"==typeof v.getAttributeType&&!n)switch(v.getAttributeType(t,e)){case"TrustedHTML":return Lt(i);case"TrustedScriptURL":return function(t){$t(),Rt++;try{return Ct.createScriptURL(t)}finally{Rt--}}(i)}return i},wn=function(t,e,i,o){try{i?t.setAttributeNS(i,e,o):t.setAttribute(e,o),dn(t)?nn(t):y(n.removed)}catch(n){rn(e,t)}},Tn=function(t){hn(Vt.beforeSanitizeAttributes,t,null);const e=t.attributes;if(!e||dn(t))return;ne=vn(Vt.uponSanitizeAttribute,ne,ie,ge);const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ne,forceKeepAttr:void 0};let i=e.length;const o=qe(t.nodeName);for(;i--;){const r=e[i],a=r.name,s=r.namespaceURI,l=r.value,f=qe(a),c=l;let u="value"===a?c:x(c);n.attrName=f,n.attrValue=u,n.keepAttr=!0,n.forceKeepAttr=void 0,hn(Vt.uponSanitizeAttribute,t,n),u=n.attrValue,!Te||"id"!==f&&"name"!==f||0===F(u,Ae)||(rn(a,t),u=Ae+u),pe&&$(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)?rn(a,t):"attributename"===f&&k(u,"href")?rn(a,t):n.forceKeepAttr||(n.keepAttr&&(ue||!$(pt,u))?(de&&(u=cn(u)),_n(o,f,u)?(u=Sn(o,f,s,u),u!==c&&wn(t,a,s,u)):rn(a,t)):rn(a,t))}hn(Vt.afterSanitizeAttributes,t,null)},An=function(t){let e=null;const n=fn(t);for(hn(Vt.beforeSanitizeShadowDOM,t,null);e=n.nextNode();){hn(Vt.uponSanitizeShadowNode,e,null),gn(e,t),Tn(e),pn(e.content)&&An(e.content);if((Ft?Ft(e):e.nodeType)===mt){const t=kt(e);pn(t)&&(kn(t),An(t))}}hn(Vt.afterSanitizeShadowDOM,t,null)},kn=function(t){const e=[{node:t,shadow:null}];for(;e.length>0;){const t=e.pop();if(t.shadow){An(t.shadow);continue}const n=t.node,i=(Ft?Ft(n):n.nodeType)===mt,o=Tt(n);if(o)for(let t=o.length-1;t>=0;--t)e.push({node:o[t],shadow:null});if(i){const t=xt?xt(n):null;if("string"==typeof t&&"template"===qe(t)){const t=n.content;pn(t)&&e.push({node:t,shadow:null})}}if(i){const t=kt(n);pn(t)&&e.push({node:null,shadow:t},{node:t,shadow:null})}}};return n.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,r=null,a=null,s=null;if(ze=!t,ze&&(t="\x3c!--\x3e"),"string"!=typeof t&&!mn(t)&&"string"!=typeof(t=function(t){switch(typeof t){case"string":return t;case"number":return N(t);case"boolean":return C(t);case"bigint":return O?O(t):"0";case"symbol":return D?D(t):"Symbol()";case"undefined":default:return R(t);case"function":case"object":{if(null===t)return R(t);const e=t,n=j(e,"toString");if("function"==typeof n){const t=n(e);return"string"==typeof t?t:R(t)}return R(t)}}}(t)))throw L("dirty is not a string, aborting");if(!n.isSupported)return t;he?(te=ve,ne=ge):Je(e),(Vt.uponSanitizeElement.length>0||Vt.uponSanitizeAttribute.length>0)&&(te=H(te)),Vt.uponSanitizeAttribute.length>0&&(ne=H(ne)),n.removed=[];const l=Ee&&"string"!=typeof t&&mn(t);if(l){!function(t){if(!pe)return;const e=[t];for(;e.length>0;){const t=e.pop(),n=Ft?Ft(t):t.nodeType;if(n===vt||n===gt&&$(ut,t.data)){try{U(t)}catch(t){}continue}if(n===mt){const e=t,n=qe(xt?xt(t):t.nodeName);try{e.hasAttribute&&e.hasAttribute("patchsrc")&&e.removeAttribute("patchsrc"),e.hasAttribute&&e.hasAttribute("for")&&"label"!==n&&"output"!==n&&e.removeAttribute("for")}catch(t){}}const i=Tt(t);if(i)for(let t=i.length-1;t>=0;--t)e.push(i[t])}}(t);const e=xt?xt(t):t.nodeName;if("string"==typeof e){const n=qe(e);if(!te[n]||re[n])throw on(t),L("root node is forbidden and cannot be sanitized in-place")}if(dn(t))throw on(t),L("root node is clobbered and cannot be sanitized in-place");try{kn(t)}catch(e){throw on(t),e}}else if(mn(t))i=ln("\x3c!----\x3e"),r=i.ownerDocument.importNode(t,!0),r.nodeType===mt&&"BODY"===r.nodeName||"HTML"===r.nodeName?i=r:i.appendChild(r),kn(r);else{if(!ye&&!de&&!me&&-1===t.indexOf("<"))return Ct&&Se?Lt(t):t;if(i=ln(t),!i)return ye?null:Se?Dt:""}i&&_e&&nn(i.firstChild);const f=l?t:i;try{const t=fn(f);for(;a=t.nextNode();)gn(a,f),Tn(a),pn(a.content)&&An(a.content)}catch(e){throw l&&(on(t),g(n.removed,t=>{t.element&&sn(t.element)})),e}if(l)return g(n.removed,t=>{t.element&&sn(t.element)}),de&&un(t),t;if(ye){if(de&&un(i),be)for(s=Ht.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(ne.shadowroot||ne.shadowrootmode)&&(s=Bt.call(o,s,!0)),s}let c=me?i.outerHTML:i.innerHTML;return me&&te["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&$(lt,i.ownerDocument.doctype.name)&&(c="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+c),de&&(c=cn(c)),Ct&&Se?Lt(c):c},n.setConfig=function(){Je(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),he=!0,ve=te,ge=ne},n.clearConfig=function(){Xe=null,he=!1,ve=null,ge=null,Ct=Ot,Dt=""},n.isValidAttribute=function(t,e,n){Xe||Je({});const i=qe(t),o=qe(e);return _n(i,o,n)},n.addHook=function(t,e){"function"==typeof e&&I(Vt,t)&&b(Vt[t],e)},n.removeHook=function(t,e){if(I(Vt,t)){if(void 0!==e){const n=_(Vt[t],e);return-1===n?void 0:S(Vt[t],n,1)[0]}return y(Vt[t])}},n.removeHooks=function(t){I(Vt,t)&&(Vt[t]=[])},n.removeAllHooks=function(){Vt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}(),Tt=["_blank","_self","_parent","_top"],At=["_self","_top","_parent"],kt=/^[A-Za-z][A-Za-z0-9_.-]*$/,Et=/^[A-Za-z][A-Za-z-]*$/,Ft=["noopener"];function xt(t){var e=t&&"string"==typeof t.tagName?t.tagName.toUpperCase():"";return"A"===e||"AREA"===e}var Nt,Ct=wt(window);function Ot(t){return null==t?"":Ct.sanitize(String(t))}Ct.addHook("uponSanitizeAttribute",function(t,e){var n,i;"target"===e.attrName&&xt(t)&&(n=e.attrValue,i=String(n||"").trim(),(Tt.includes(i.toLowerCase())||kt.test(i))&&(e.forceKeepAttr=!0))}),Ct.addHook("afterSanitizeAttributes",function(t){if(xt(t)&&"function"==typeof t.getAttribute&&"function"==typeof t.setAttribute){var e=t.getAttribute("target");if(e&&!At.includes(e.trim().toLowerCase())){var n=(t.getAttribute("rel")||"").split(/\s+/).filter(function(t){return Et.test(t)});Ft.forEach(function(t){n.includes(t)||n.push(t)}),t.setAttribute("rel",n.join(" "))}}}),(Nt=jQuery)(document.body).on("fluentform_init",function(t,e,n){var o="."+n.form_instance,r=-1,a="no";function s(t,e){var i="fluentform_save_progress_messages_"+n.id;return window[i]&&window[i][t]?window[i][t]:e}if(Nt(o).hasClass("ff-form-has-save-progress")){Nt(o).hasClass("ff-form-has-steps")&&(e.on("ff_to_next_page",function(t,e){a=e}),e.on("ff_to_prev_page",function(t,e){a=e})),Nt(o).find(".ff-btn-save-progress").each(function(t,n){var i=Nt(n);i.on("click",function(t){var n,o=this;t.preventDefault(),i.addClass("ff-working");var l=e.find(":input").filter(function(t,e){return!Nt(e).closest(".has-conditions").hasClass("ff_excluded")});l.filter(function(t,e){var n=Nt(e);return n.parents().hasClass("ff_repeater_table")&&"select"==n.attr("type")&&!n.val()}).prepend("<option selected disabled />");var f=l.serialize();Nt.each(e.find("[type=file]"),function(t,e){var n={},i=e.name+"[]";n[i]=[],Nt(e).closest("div").find(".ff-uploaded-list").find(".ff-upload-preview[data-src]").each(function(t,e){n[i][t]=Nt(this).data("src")}),Nt.each(n,function(t,e){if(e.length){var n={};n[t]=e,f+="&"+Nt.param(n)}})}),r=null===(n=window.form_state_save_vars)||void 0===n?void 0:n.key;var c={source_url:window.form_state_save_vars.source_url,action:"fluentform_save_form_progress_with_link",data:f,form_id:e.data("form_id"),hash:r,active_step:a,nonce:window.form_state_save_vars.nonce,save_progress_btn_name:Nt(i).attr("name")},u=c.form_id+"_save_progress_msg",d="#"+u;jQuery.post(fluentFormVars.ajaxUrl,c).then(function(t){if(t){var n;r=t.data.hash,e.find(".ff-saved-state-link"),""!=(null===(n=t.data)||void 0===n?void 0:n.message)&&(Nt(d).length&&Nt(d).slideUp("fast"),Nt("<div/>",{id:u,class:"ff-message-success ff-el-group"}).html(Ot(t.data.message)).insertBefore(i.closest(".ff-el-group")));var a=s("copy_button",window.form_state_save_vars.copy_button||"Copy"),l='<div class="ff-el-input--content">\n <div class="ff_input-group">\n <input readonly class="ff-el-form-control" >\n <div class="ff_input-group-append">\n <button class="ff-btn ff-btn-md ff_btn_style ff_btn_copy_link ff_input-group-text">'.concat(a,"</button>\n </div>\n </div>\n </div>"),f=Nt("<div/>",{class:"ff-el-group ff-saved-state-input ff-saved-state-link ff-hide-group",html:l});f.find("input").val(t.data.saved_url),Nt(o).closest(".ff-el-group").after(f),f.fadeIn(),f.find("input.ff-el-form-control").on("keypress",function(t){13!==t.which&&13!==t.keyCode||(t.preventDefault(),Nt(this).siblings(".ff_input-group-append").find(".ff_btn_copy_link").click())});var c=s("email_placeholder",window.form_state_save_vars.email_placeholder_str||"Your Email Here"),p=s("email_button",window.form_state_save_vars.email_button||"Email");if(Nt(o).hasClass("ff_resume_email_enabled")){var m='<div class="ff-el-input--content">\n <div class="ff_input-group">\n <input type="email" class="ff-el-form-control" placeholder="'.concat(c,'">\n <div class="ff_input-group-append">\n <button class="ff-btn ff-btn-md ff_btn_style ff_btn_is_email ff_input-group-text">').concat(p,"</button>\n </div>\n </div>\n </div>"),h=Nt("<div/>",{class:"ff-el-group ff-saved-state-input ff-email-address ff-hide-group",html:m});Nt(f).after(h),h.fadeIn(),h.find("input.ff-el-form-control").on("keypress",function(t){13!==t.which&&13!==t.keyCode||(t.preventDefault(),Nt(this).siblings(".ff_input-group-append").find(".ff_btn_is_email").click())})}}}).fail(function(t){Nt(d).length&&Nt(d).slideUp("fast"),Nt("<div/>",{id:u,class:"ff-message-success ff-el-group text-danger"}).html(Ot(t.responseJSON.data.message)).insertBefore(i.closest(".ff-el-group"))}).always(function(){i.parent().hide()})})}),Nt(o).on("click",".ff_btn_copy_link",function(t){t.preventDefault();var e=Nt(this).closest(".ff-el-input--content").find(".ff-el-form-control").val();navigator.clipboard.writeText(e);var n=s("copy_success",window.form_state_save_vars.copy_success_button||"Copied");Nt(this).html(Ot(n))}),Nt(o).on("click",".ff_btn_is_email",function(t){t.preventDefault();var n=Nt(this).closest(".ff-el-group"),i=Nt(this).closest(".ff-email-address").find("input").val();Nt(".ff-email-address").find("input").val("");var o=Nt(".ff-saved-state-link").find("input").val(),a={source_url:window.form_state_save_vars.source_url,action:"fluentform_email_progress_link",form_id:e.data("form_id"),to_email:i,link:o,hash:r,nonce:window.form_state_save_vars.nonce},s=a.form_id+"_save_progress_email_response",l="#"+s;jQuery.post(fluentFormVars.ajaxUrl,a).then(function(t){t&&(n.removeClass("ff-el-is-error"),Nt(l).length&&Nt(l).slideUp("fast"),Nt("<div/>",{id:s,class:"ff-message-success ff-el-group"}).html(Ot(t.data.response)).insertAfter(n))}).fail(function(t){t&&(n.addClass("ff-el-is-error"),Nt(l).length&&Nt(l).slideUp("fast"),Nt("<div/>",{id:s,class:"ff-message-success ff-el-group text-danger"}).html(Ot(t.responseJSON.data.Error)).insertAfter(n))})});var l=!1;void 0!==window.form_state_save_vars&&(l=window.form_state_save_vars.key),l&&(e.append('<input type="hidden" value="'.concat(l,'" class="__fluent_state_hash" name="__fluent_state_hash"/>')),"yes"==e.find(".ff-step-container").attr("data-enable_step_data_persistency")||jQuery.getJSON(fluentFormVars.ajaxUrl,{form_id:e.data("form_id"),action:"fluentform_get_form_state",hash:l,nonce:window.form_state_save_vars.nonce}).then(function(t){if(t){var n=function(t,e,n,o){return new i(t,e,n,o).getPublicAPI()}(Nt,e,window.fluentFormVars,o);n.populateFormDataAndSetActiveStep(t)}}))}})})();