1!function(s){s(window).on("elementor/frontend/init",()=>{class e extends elementorModules.frontend.handlers.Base{getDefaultSettings(){return{selectors:{wrapper:".pp-gravity-form",form:'.pp-gravity-form form[id^="gform_"], .pp-gravity-form .gform_wrapper form, .pp-gravity-form form',title:".pp-gravity-form-title, .gform_title",description:".pp-gravity-form-description, .gform_description"}}}getDefaultElements(){var e=this.getSettings("selectors");return{$wrapper:this.$element.find(e.wrapper),$form:this.$element.find(e.form),$title:this.$element.find(e.title),$description:this.$element.find(e.description)}}bindEvents(){this.wrapSelectFields(),this.initFormA11y();var e=".ppA11y_"+this.getID();s(document).on("gform_post_render"+e,(e,t,r)=>{this.isThisForm(t)&&this.onPostRender(t,r)}),s(document).on("gform_page_loaded"+e,(e,t,r)=>{this.isThisForm(t)&&this.onPageChanged(r)}),s(document).on("gform_confirmation_loaded"+e,(e,t)=>{this.isThisForm(t)&&this.onSubmissionSuccess()}),this.elements.$form.length&&this.elements.$form.on("submit.ppA11y",()=>{var e=window.ppGravityFormsScript||{};e.submitting&&this.updateStatus(e.submitting),setTimeout(()=>{this.elements.$wrapper.find(".gfield_error, .gform_validation_errors, .validation_error, .gform_submission_error").length&&this.onSubmissionFailed()},300)}),this.observeMutations()}isThisForm(e){if(!e)return!1;if(("number"==typeof e||"string"==typeof e)&&Boolean(this.elements.$wrapper.find("#gform_"+e+", #gform_wrapper_"+e).length))return!0;e=s(e);return!!e.length&&(e.is(this.elements.$form)||Boolean(this.elements.$wrapper.has(e).length))}unbindEvents(){var e=".ppA11y_"+this.getID();s(document).off(e),this.elements.$form&&this.elements.$form.length&&this.elements.$form.off(".ppA11y"),this.mutationObserver&&this.mutationObserver.disconnect()}wrapSelectFields(){this.$element.find("select:not([multiple])").each(function(){var e=s(this);e.parent().hasClass("pp-gf-select-custom")||(e.next().hasClass("chosen-container")?e.next():e).wrap('<span class="pp-gf-select-custom"></span>')})}initFormA11y(){var e=this.getSettings("selectors"),t=this.elements.$wrapper,r=t.find(e.form),e=t.find(e.description),r=(r.removeAttr("aria-labelledby aria-describedby"),t.find(".gform_wrapper").removeAttr("aria-labelledby aria-describedby"),t.find(".gform_heading, .gform_title, .gform_description, .pp-gravity-form-heading").removeAttr("aria-hidden"),e.each(function(){var e=s(this);e.attr("role")||!e.is("span")&&!e.is("div")||e.attr("role","text")}),t.find(".gf_page_steps")),e=(r.length&&(r.attr({role:"navigation","aria-label":"Form steps"}),r.find(".gf_step").each(function(){var e=s(this);e.hasClass("gf_step_active")?e.attr("aria-current","step"):e.removeAttr("aria-current")})),t.find(".gfield_error, .gform_validation_errors, .validation_error, .gform_submission_error").length&&(this.syncFieldErrors(),this.onSubmissionFailed()),t.find(".gform_confirmation_wrapper, .gform_confirmation_message, .gforms_confirmation_message").filter(":visible"));e.length&&!e.data("pp-a11y-handled")&&(e.data("pp-a11y-handled",!0),this.focusSuccessOutput(e))}observeMutations(){var e=this.elements.$wrapper[0];e&&window.MutationObserver&&(this.mutationObserver=new MutationObserver(e=>{for(const r of e){var t=this.elements.$wrapper.find(".gform_confirmation_wrapper, .gform_confirmation_message, .gforms_confirmation_message").filter(":visible");if(t.length&&!t.data("pp-a11y-handled"))return t.data("pp-a11y-handled",!0),void this.focusSuccessOutput(t);"childList"===r.type&&((t=s(r.addedNodes)).find(".gfield_error, .gform_validation_errors, .validation_error, .gform_submission_error").length||t.hasClass("gfield_error")||t.hasClass("gform_validation_errors")||t.hasClass("val
1idation_error")||t.hasClass("gform_submission_error"))&&this.onSubmissionFailed(),"attributes"===r.type&&"class"===r.attributeName&&s(r.target).hasClass("gfield_error")&&this.syncFieldErrors()}}),this.mutationObserver.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["class"]}))}syncFieldErrors(){var e=this.elements.$wrapper,t=e.find(".gform_validation_errors, .validation_error, .gform_submission_error").filter(":visible");t.length&&(t.attr({role:"alert","aria-live":"assertive","aria-atomic":"true"}),t.attr("tabindex")||t.attr("tabindex","-1")),e.find(".gfield_error").each((e,t)=>{var t=s(t),i=t.find("input, textarea, select"),t=t.find(".validation_message, .gfield_description.validation_message");if(i.length&&(i.attr("aria-invalid","true"),t.length)){let r=t.attr("id");r||(r="pp-gf-err-"+this.getID()+"-"+e,t.attr("id",r)),i.each(function(){var e=s(this),t=e.attr("aria-describedby")||"";-1===t.indexOf(r)&&(t=t?t+" "+r:r,e.attr("aria-describedby",t))})}})}onSubmissionFailed(){setTimeout(()=>{this.syncFieldErrors();var e=window.ppGravityFormsScript||{},e=(e.form_has_errors&&this.updateStatus(e.form_has_errors),this.elements.$wrapper.find(".gfield_error input:visible, .gfield_error textarea:visible, .gfield_error select:visible").first());e.length?e.trigger("focus"):(e=this.elements.$wrapper.find(".gform_validation_errors, .validation_error, .gform_submission_error").filter(":visible").first()).length&&e.trigger("focus")},100)}onSubmissionSuccess(){setTimeout(()=>{var e=this.elements.$wrapper.find(".gform_confirmation_wrapper, .gform_confirmation_message, .gforms_confirmation_message").filter(":visible").first();e.length&&this.focusSuccessOutput(e)},100)}focusSuccessOutput(e){e.attr({role:"status","aria-live":"polite","aria-atomic":"true",tabindex:"-1"}),e.trigger("focus")}onPageChanged(e){setTimeout(()=>{var e=this.elements.$wrapper.find(".gf_page_steps"),e=(e.length&&e.find(".gf_step").each(function(){var e=s(this);e.hasClass("gf_step_active")?e.attr("aria-current","step"):e.removeAttr("aria-current")}),this.elements.$wrapper.find("input:visible:not([type=hidden]):not([type=submit]):not([type=button]), textarea:visible, select:visible").first());e.length&&e.trigger("focus")},100)}onPostRender(e,t){var r=this.getSettings("selectors");this.elements.$form=this.$element.find(r.form),this.wrapSelectFields(),this.initFormA11y(),this.elements.$wrapper.find(".gfield_error, .gform_validation_errors, .validation_error, .gform_submission_error").length?this.onSubmissionFailed():this.elements.$wrapper.find(".gform_confirmation_wrapper, .gform_confirmation_message, .gforms_confirmation_message").length&&this.onSubmissionSuccess()}updateStatus(e){const t=document.getElementById("pp-gravity-form-status-"+this.getID());t&&(t.textContent="",setTimeout(()=>{t.textContent=e},50))}onDestroy(){this.unbindEvents(),super.onDestroy&&super.onDestroy()}}elementorFrontend.elementsHandler.attachHandler("pp-gravity-forms",e)})}(jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.