1(()=>{"use strict";class e{render(e,t,r){if(t.formErrors.length>0){const r=$("<div/>").addClass("form-errors-container");for(const e of t.formErrors)r.append($("<div/>").addClass("form-error").text(e));e.prepend(r)}const n=e.find("input, select, textarea");if(t.elements)for(const s of t.elements){let t=n.filter("[name='"+s.name+"']");if(0===t.length&&(t=e.find("*[data-element-name='"+s.name+"']")),0===t.length)continue;const a=$("<div/>").addClass("element-errors-container");for(const e of s.errors)a.append($("<div/>").addClass("element-error").text(e));0!==t.closest(".iti").length&&(t=t.closest(".iti")),null!==r.insertErrorsCallback?r.insertErrorsCallback(t,a):(t.before(a),r&&r.invalidFieldClass&&t.addClass(r.invalidFieldClass))}void 0!==r.afterInsertCallback&&r.afterInsertCallback()}}class t{render(t,r){(new e).render(t,r,{invalidFieldClass:"",insertErrorsCallback:(e,t)=>{const r=e.closest(".material-element");r.append(t),r.addClass("invalid");const n=r.parents(".material-group");n.length&&n.addClass("invalid"),e.addClass("invalid")}});const n=t.find(".material-element.invalid").not(".material-checkbox").not(".material-radio").first();1===n.length&&(n.find("input, select, textarea").trigger("focus"),n.addClass("focus"))}}class r{valid(){return"ontouchstart"in document.documentElement}}class n{constructor(e){this.$target=e}execute(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:500,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const r=this.$target.offset().top;if(!e)return $(document.documentElement).scrollTop(r-t),void(this.shouldScrollUnderFixedHeader()&&$(document.documentElement).scrollTop(r-115-t));$(document.documentElement).animate({scrollTop:r-t},e,(()=>{this.shouldScrollUnderFixedHeader()&&$(document.documentElement).animate({scrollTop:r-115-t},100)}))}shouldScrollUnderFixedHeader(){return(new r).valid()&&$("#container").hasClass("show-header")}}$((()=>{const e=$(".message-form-container"),s=e.find(".message-form"),a=s.find(".errors-json").data("errors");a&&(new t).render(s,a),e.hasClass("ajax")||s.ajaxForm({success:a=>{const l=$(a);if(1===l.find("form").length){s.html(l.find("form").html()),window.atjs.initManager.initElement(s);const e=s.find(".errors-json").data("errors");e&&(new t).render(s,e)}else e.html(a),(new r).valid()&&new n(e).execute(500)}}),e.on("click",".category-select-button",(e=>{$(".category-select-button").removeClass("active");const t=$(".category-select"),r=$(e.target).closest(".category-select-button");r.addClass("active"),t.find(".category-select-id").val(r.data("id"))}))}))})();
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.