1KwsForm={init:function(){let e=$("form.form-gtm");e.off("submit"),e.on("submit",(function(e){e.preventDefault();let t=$(".loading"),i=this,n=new FormData(i);$(i).find(".message-wrapper").html(""),$.ajax({type:"POST",url:i.action,data:n,contentType:!1,processData:!1,beforeSend:function(){t.show()}}).done((function(e){var t,n;if(null!==(t=e.tracking)&&void 0!==t&&t.events&&e.tracking.events.forEach((e=>{e.category&&e.action&&e.label&&window.KwsTracker.trackEvent(e.category,e.action,e.label,e.parameters??{})})),null!==(n=e.tracking)&&void 0!==n&&n.goals&&e.tracking.goals.forEach((e=>window.KwsTracker.trackGoal(e))),0==e.error){if(window.dataLayer=window.dataLayer||[],window.dataLayer.push(e.gtm),e.dataLayerPushAdhoc&&$.each(e.dataLayerPushAdhoc,(function(e,t){window.dataLayer.push(t)})),e.criteo&&e.criteo.account&&e.criteo.email&&e.criteo.siteType&&e.criteo.item){let t=String(e.criteo.account),i=String(e.criteo.email),n=String(e.criteo.siteType),o=String(e.criteo.item);window.criteo_q=window.criteo_q||[],window.criteo_q.push({event:"setAccount",account:t},{event:"setHashedEmail",email:i},{event:"setSiteType",type:n},{event:"viewItem",item:o})}if(void 0!==window.banners&&void 0!==window.banners&&window.banners.init(),void 0!==window.favs&&void 0!==window.favs&&window.favs.init(),void 0!==window.linkObf&&void 0!==window.linkObf&&window.linkObf.init(),e.redirect)if(e.redirectTarget&&"_blank"==e.redirectTarget){e.message&&e.message.length>0&&window.kwsAlerts.success(e.message),window.open(e.redirect,"_blank");var o=new CustomEvent("afterKwsFormSubmit",{detail:e});window.dispatchEvent(o)}else document.location.href=e.redirect;else e.message&&e.message.length>0&&window.kwsAlerts.success(e.message),i.reset(),o=new CustomEvent("afterKwsFormSubmit",{detail:e}),window.dispatchEvent(o)}else e.dataLayerPushAdhoc&&$.each(e.dataLayerPushAdhoc,(function(e,t){window.dataLayer.push(t)})),window.kwsAlerts.error("Error"),$(i).find(".message-wrapper").html(e.message)})).fail((function(){window.kwsAlerts.toastrError("Error")})).always((function(){t.hide()}))})),$("form .compliance-title").on("click",(function(){$(this).toggleClass("compliance-title-show",5e3),$(this).next(".compliance").toggleClass("compliance-collapsed")})),$("form .vehicleMakes").on("change",(function(){let e=$(".loading"),t=$(this).val();$.ajax({type:"POST",url:"/frontend/frontend-ajax/contact-form-get-vehicle-models",data:{marca:t},beforeSend:function(){e.show()}}).done((function(e){if(e&&e.status&&"ok"==e.status&&e.options){let t=$("form .vehicleModels");t.empty(),$.each(e.options,(function(e,i){t.append($("<option>",{value:i.value,text:i.label}))}))}})).always((function(){e.hide()}))}))}},$((function(){KwsForm.init(),window.addEventListener("afterKwsFilter",(e=>{KwsForm.init()}),!1)}));
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.