1"use strict";(self.webpackChunkhf_kf_frontend=self.webpackChunkhf_kf_frontend||[]).push([[846],{3422:(t,e,r)=>{r.r(e),r.d(e,{default:()=>s});var a=r(4692),o=r.n(a),n=r(7676);const s=class{constructor(){o()(document.body).on("bb-form-valid-submit",".bb-verti-form",this._onValidFormSubmit.bind(this))}_formatInputForEmail(t,e){let r=e.find(t),a=r.val();return null==a||""==a?a="Nicht angegeben":"date"===r.attr("type")&&(a=new Date(r.val()).toLocaleString("de-DE",{year:"numeric",month:"2-digit",day:"2-digit"})),a}_onValidFormSubmit(t){const e=o()(t.target).closest(".bb-form"),r=e.closest(".bb-verti-form").data("variant");let a="";a+="Name: "+this._formatInputForEmail("#customerLastName",e)+"\r\n",a+="Vorname: "+this._formatInputForEmail("#customerFirstName",e)+"\r\n",a+="StraÃe/Nr.: "+this._formatInputForEmail("#customerAddress",e)+"\r\n",a+="PLZ: "+this._formatInputForEmail("#customerZIP",e)+"\r\n",a+="Ort: "+this._formatInputForEmail("#customerCity",e)+"\r\n",a+="Geburtsdatum: "+this._formatInputForEmail("#customerBirthDate",e)+"\r\n",a+="Telefonnummer: "+this._formatInputForEmail("#customerTel",e)+"\r\n",a+="E-Mail Adresse: "+this._formatInputForEmail("#email",e)+"\r\n",a+="Rückruf gewünscht am: "+this._formatInputForEmail("#customerRecallDate",e)+"\r\n",a+="Zeitpunkt: "+this._formatInputForEmail("#customerRecallTime",e)+"-"+(parseInt(this._formatInputForEmail("#customerRecallTime",e))+1)+" Uhr \r\n","private"===r?(a+="SF-Klasse in der Haftpflicht: "+this._formatInputForEmail("#customerSFKHaftpflicht",e)+"\r\n",a+="SF-Klasse in der Kasko: "+this._formatInputForEmail("#customerSFKKasko",e)+"\r\n",a+="Autohaus-Nummer: "+this._formatInputForEmail("#ah-nr",e)+"\r\n",a+="Pluspunkt-Kennung: "+this._formatInputForEmail("#sp-id",e)+"\r\n"):(a+="HSN: "+this._formatInputForEmail("#customerHSN",e)+"\r\n",a+="TSN: "+this._formatInputForEmail("#customerTSN",e)+"\r\n",a+="Leistung in KW: "+this._formatInputForEmail("#customerLeistungKW",e)+"\r\n",a+="Jahr der Erstzulassung: "+this._formatInputForEmail("#customerErstzulassung",e)+"\r\n",a+="SF-Klasse in der Haftpflicht: "+this._formatInputForEmail("#customerSFKHaftpflicht",e)+"\r\n",a+="SF-Klasse in der Kasko: "+this._formatInputForEmail("#customerSFKKasko",e)+"\r\n",a+="Händlernummer: "+this._formatInputForEmail("#haendlerNr",e)+"\r\n",a+="Pluspunkt-Kennung: "+this._formatInputForEmail("#haendlerPPK",e)+"\r\n",a+="Name des Verkäufers: "+this._formatInputForEmail("#haendlerNameVerkaufer",e)+"\r\n",a+="Telefonnummer (Verkäufer): "+this._formatInputForEmail("#haendlerTelVerkaufer",e)+"\r\n",a+="E-Mail (Verkäufer): "+this._formatInputForEmail("#haendlerEmailVerkaufer",e)+"\r\n"),(async()=>{const t=new FormData;t.append("action","bb_ajax_send_verti_form"),t.append("mailBody",a),await n.default.sendFormWithToken(e,t)})()}}},9062:(t,e,r)=>{r.r(e),r.d(e,{default:()=>s});var a=r(4692),o=r.n(a),n=r(6566);const s=class{constructor(){this._$component=o()(".bb-withdrawal-form"),this._selectedCategory="",this._bindEvents()}_bindEvents(){o()(document.body).on("click",".bb-withdrawal-form .bb-switch-type__tab",(t=>{this._selectedCategory=o()(t.target).data("type"),"financing"===this._selectedCategory?(this._$component.find(".bb-withdrawal-form__form .financing").removeClass("d-none"),this._$component.find(".bb-withdrawal-form__form .leasing").addClass("d-none")):(this._$component.find(".bb-withdrawal-form__form .financing").addClass("d-none"),this._$component.find(".bb-withdrawal-form__form .leasing").removeClass("d-none")),this._$component.find(".bb-withdrawal-form__submit").removeClass("d-none")})),o()(document.body).on("change","input[type='checkbox']",(t=>{o()(t.target).closest(".bb-checkbox").removeClass("has-error").siblings().removeClass("has-error"),this._$component.find(".bb-withdrawal-form__checkbox-error").removeClass("has-error")})),o()(document.body).on("bb-form-valid-submit",".bb-withdrawal-form",this._onValidFormSubmit.bind(this))}_onValidFormSubmit(){const t=this._$component.find(".bb-withdrawal-form__error-message");t.is(":visible")&&t.stop().fadeOut(300);let e=null;e="financing"===this._selectedCategory?this._$component.find(".bb-withdrawal-form__form .financing .bb-form-field.bb-checkbox"):this._$component.find(".bb-withdrawal-form__form .leasing .bb-form-field.bb-checkbox"),e.find("input").is(":checked")?this._sendMail(e):(e.addClass("has-error"),this._$component.find(".bb-withdrawal-form__checkbox-error").addClass("has-error"))}_sendMail(t){(0,n.r)();const e=[];
1t.find("input:checked").each(((t,r)=>{e.push(o()(r).closest(".bb-checkbox").find("label").text())}));const r=new FormData;r.append("action","withdrawal_form_send_mail"),r.append("subject","Bestätigung Ihres Widerrufs"),r.append("customerFirstName",this._$component.find("#customerFirstName").val()),r.append("customerLastName",this._$component.find("#customerLastName").val()),r.append("customerBirthDate",this._$component.find("#customerBirthDate").val()),r.append("email",this._$component.find("#email").val()),r.append("contract",this._$component.find("#contract").val()),r.append("category",this._selectedCategory),r.append("checkboxes",JSON.stringify(e)),o().ajax({type:"POST",url:BBAjax.ajaxurl,contentType:!1,cache:!1,processData:!1,data:r,success:t=>{t.success?this._showSuccessMessage():this._showErrorMessage()},error:()=>{this._showErrorMessage()}})}_showSuccessMessage(){(0,n.y)(),this._$component.find(".bb-withdrawal-form__form").fadeOut(300,(()=>{this._$component.find(".bb-withdrawal-form__success-message").fadeIn(400)}))}_showErrorMessage(){(0,n.y)();const t=this._$component.find(".bb-withdrawal-form__error-message");t.stop().fadeIn(400);let e,r,a=o()(window).scrollTop(),s=t.offset().top;const i=o()(".bb-header");i.length>0&&(s-=i.outerHeight()+40),e=a-s,e<0&&(e*=-1),r=500+.08*e,o()("html,body").stop().animate({scrollTop:s},r)}}}}]);
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.