PageSourceSearch

https://machineryline.com.tr/static/1753275875/modules.dist/Site/C…/CallbackRequestFormView.module.ts.js

js machineryline.com.tr collected 2026-10-08 19:49:56 UTC 2,399 bytes, 1 lines download raw bytes

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

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.