;"use strict";var WPForms=window.WPForms||{};WPForms.FrontendModern=WPForms.FrontendModern||function(n,o){let i={init:function(){o(i.ready)},ready:function(){i.updateGBBlockAccentColors(),i.initPageBreakButtons(),i.events()},events:function(){o("form.wpforms-form").on("wpformsCombinedUploadsSizeError",i.combinedUploadsSizeError).on("wpformsFormSubmitButtonDisable",i.formSubmitButtonDisable).on("wpformsFormSubmitButtonRestore",i.formSubmitButtonRestore).on("wpformsPageChange",i.pageChange),o("form.wpforms-form .wpforms-submit").on("keydown click",i.disabledButtonPress)},updateGBBlockAccentColors:function(){o(".wpforms-block.wpforms-container-full, .elementor-widget-wpforms .wpforms-container-full").each(function(){var r=o(this);i.updateGBBlockPageIndicatorColor(r),i.updateGBBlockIconChoicesColor(r),i.updateGBBlockRatingColor(r)})},updateGBBlockPageIndicatorColor:function(r){var r=r.find(".wpforms-page-indicator"),o=r.find(".wpforms-page-indicator-page-progress, .wpforms-page-indicator-page.active .wpforms-page-indicator-page-number"),e=o.find(".wpforms-page-indicator-page-triangle");r.data("indicator-color","var( --wpforms-button-background-color )"),o.css("background-color","var( --wpforms-button-background-color )"),e.css("border-top-color","var( --wpforms-button-background-color )")},updateGBBlockPageIndicatorColorF:function(r){var o,e,r=r.querySelector(".wpforms-page-indicator");r&&(e=(o=r.querySelector(".wpforms-page-indicator-page-progress, .wpforms-page-indicator-page.active .wpforms-page-indicator-page-number")).querySelector(".wpforms-page-indicator-page-triangle"),r.dataset.indicatorColor="var( --wpforms-button-background-color )",o&&o.style.setProperty("background-color","var( --wpforms-button-background-color )"),e)&&e.style.setProperty("border-top-color","var( --wpforms-button-background-color )")},updateGBBlockIconChoicesColor:function(r){r.find(".wpforms-icon-choices").css("--wpforms-icon-choices-color","var( --wpforms-button-background-color )")},updateGBBlockRatingColor:function(r){r.find(".wpforms-field-rating-item svg").css("color","var( --wpforms-button-background-color )")},initPageBreakButtons:function(){o(".wpforms-page-button").removeClass("wpforms-disabled").attr("aria-disabled","false").attr("aria-describedby","")},combinedUploadsSizeError:function(r,o,e){var t=o.data("formid"),a=o.attr("aria-errormessage")||"",t=`wpforms-${t}-footer-error`,n=o.find(".wpforms-submit");o.attr({"aria-invalid":"true","aria-errormessage":a+" "+t}),e.attr({role:"alert",id:t}),e.find("> .wpforms-hidden:first-child").remove(),e.prepend(`${wpforms_settings.formErrorMessagePrefix}`),n.attr("aria-describedby",t)},combinedUploadsSizeOk:function(r,o,e){console.warn('WARNING! Function "WPForms.FrontendModern( e, $form, $errorCnt )" has been deprecated, please use the new "formSubmitButtonDisable: function( e, $form, $submitBtn )" function instead!'),o.find(".wpforms-submit").removeClass("wpforms-disabled").attr("aria-disabled","false").attr("aria-describedby","")},formSubmitButtonDisable:function(r,o,e){o=o.attr("id")+"-submit-btn-disabled";e.before(`