1"use strict";(self["webpackJsonp[chunkhash]´"]=self["webpackJsonp[chunkhash]´"]||[]).push([[8098],{45867:(e,a,n)=>{let t;n.d(a,{B:()=>t}),function(e){e[e.Success=200]="Success",e[e.Locked=423]="Locked",e[e.TechnicalError=500]="TechnicalError",e[e.ValidationError=400]="ValidationError",e[e.UnauthorizedError=401]="UnauthorizedError",e[e.ForbiddenError=403]="ForbiddenError",e[e.NotFound=404]="NotFound",e[e.Expired=410]="Expired",e[e.VerificationError=900]="VerificationError",e[e.EmailExistsError=901]="EmailExistsError",e[e.DateExistsError=903]="DateExistsError",e[e.AddContractProcessAlreadyStarted=904]="AddContractProcessAlreadyStarted",e[e.AlreadyUsed=910]="AlreadyUsed",e[e.RegistrationNotAllowed=1e3]="RegistrationNotAllowed",e[e.ContractAccountAlreadyRegistered=1001]="ContractAccountAlreadyRegistered",e[e.WrongCompanyEWL=1002]="WrongCompanyEWL",e[e.WrongCompanyUEWK=1003]="WrongCompanyUEWK",e[e.InvalidAntiforgeryToken=1100]="InvalidAntiforgeryToken"}(t||(t={}))},48337:(e,a,n)=>{n.d(a,{P:()=>t});const t=function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return Object.entries(e).map((e=>{var n;let[t,i]=e;return{value:t,text:a&&(null===(n=a.find((e=>{var a;return"string"===typeof i&&(null===(a=e.value)||void 0===a?void 0:a.toLowerCase())===(null===i||void 0===i?void 0:i.toLowerCase())})))||void 0===n?void 0:n.text)||i}})).filter((e=>"string"===typeof e.text))}},52665:(e,a,n)=>{let t,i,r;n.d(a,{En:()=>r,I5:()=>t,XU:()=>i}),function(e){e.WELCOME="welcome",e.MESSAGE="message",e.CONTRACT_ADD="contractAdd",e.CONTRACT_MODAL="contractModal",e.CONTRACT_LIST="contractList",e.BUDGET_BILLING_PLAN_LIST="budgetBillingPlanList",e.BUDGET_BILLING_PLAN="budgetBillingPlan",e.CONTRACT="contract",e.CUSTOMER="customer",e.USER_DATA="userData",e.METER_READING_LIST="meterReadingList",e.METER_READING="meterReading",e.CONTRACT_INFORMATION="contractInformation",e.CONSUMPTION_READING_LIST="consumptionReadingList",e.INBOX="inbox",e.PRICE="price",e.GREEN_PRODUCT_COMPARISON="greenProductComparison",e.CONTACT="contact",e.SALUTATIONS="salutations",e.CONTRACT_INFORMATION_BANK_ACCOUNT="contractInformationBankAccount",e.CONTRACT_INFORMATION_PHONE="contractInformationPhone",e.COUNT_UNREAD_MESSAGES="countUnreadMessages"}(t||(t={})),function(e){e[e.Success=100]="Success",e[e.Error=200]="Error",e[e.Info=300]="Info",e[e.Auth=400]="Auth",e[e.NotAllowed=500]="NotAllowed"}(i||(i={})),function(e){e.INCREMENT_COUNTER="INCREMENT_COUNTER",e.AUTH_ERROR="AUTH_ERROR",e.RESIGN_IN="RESIGN_IN",e.ERROR="ERROR",e.SIGNALR_START="SIGNALR_START",e.SIGNALR_STARTED="SIGNALR_STARTED",e.SIGNALR_MESSAGE="SIGNALR_MESSAGE",e.ADD_CONTRACT_CANCELLED="ADD_CONTRACT_CANCELLED",e.GET_USER_REQUEST="GET_USER_REQUEST",e.GET_USER_SUCCESS="GET_USER_SUCCESS",e.GET_USER_FAILURE="GET_USER_FAILURE",e.UPDATE_USER_CODE_PASSWORD="UPDATE_USER_CODE_PASSWORD",e.UPDATE_USER_REQUEST="UPDATE_USER_REQUEST",e.UPDATE_USER_SUCCESS="UPDATE_USER_SUCCESS",e.UPDATE_USER_FAILURE="UPDATE_USER_FAILURE",e.RESET_UPDATE_USER="RESET_UPDATE_USER",e.ADD_CONTRACT_SUCCESS="ADD_CONTRACT_SUCCESS",e.ADD_CONTRACT_FAILURE="ADD_CONTRACT_FAILURE",e.ADD_CONTRACT_REQUEST="ADD_CONTRACT_REQUEST",e.CLOSE_ADD_CONTRACT="CLOSE_ADD_CONTRACT",e.CLOSE_ADD_ADDITIONAL_CONTRACT="CLOSE_ADD_ADDITIONAL_CONTRACT",e.RESTART_ADD_CONTRACT="RESTART_ADD_CONTRACT",e.COMBINATION_INCORRECT_ADD_CONTRACT="COMBINATION_INCORRECT_ADD_CONTRACT",e.LOAD_CONTRACT_DATA="LOAD_CONTRACT_DATA",e.CHANGE_GPNUMBER="CHANGE_GPNUMBER",e.GET_CONTRACTS_REQUEST="GET_CONTRACTS_REQUEST",e.GET_CONTRACTS_SUCCESS="GET_CONTRACTS_SUCCESS",e.GET_CONTRACTS_FAILURE="GET_CONTRACTS_FAILURE",e.RECOVERABLE_WRONG_ENTRY="RECOVERABLE_WRONG_ENTRY",e.GET_CUSTOMER_REQUEST="GET_CUSTOMER_REQUEST",e.GET_CUSTOMER_SUCCESS="GET_CUSTOMER_SUCCESS",e.SET_SELECTED_CONTRACT="SET_SELECTED_CONTRACT",e.GET_METER_READINGS_REQUEST="GET_METER_READINGS_REQUEST",e.GET_METER_READINGS_SUCCESS="GET_METER_READINGS_SUCCESS",e.GET_METER_READINGS_FAILURE="GET_METER_READINGS_FAILURE",e.GET_CONSUMPTION_READING_LIST_REQUEST="GET_CONSUMPTION_READING_LIST_REQUEST",e.GET_CONSUMPTION_READING_LIST_SUCCESS="GET_CONSUMPTION_READING_LIST_SUCCESS",e.GET_CONSUMPTION_READING_LIST_FAILURE="GET_CONSUMPTION_READING_LIST_FAILURE",e.GET_BUDGET_BILLING_PLAN_REQUEST="GET_BUDGET_BILLING_PLAN_REQUEST",e.GET_BUDGET_BILLING_PLAN_SUCCESS="GET_BUDGET_BILLING_PLAN_SUCCESS",e.GET_BUDGET_BILLING_PLAN_FAILURE="GET_BUDGET_BILLING_PLAN_FAILURE",e.GET_MESSAGES_REQUEST="GET_MESSAGES_REQUEST",e.GET_MESSAGES_SUCCESS="GET_MESSAGES_SUCCESS",e.GET_MESSAGES_FAILURE="GET_MESSAGES_FAILURE",e.GET_FILE_REQUEST="GET_FILE_REQUEST",e.GET_FILE_SUCCESS="GET_FILE_SUCCESS",e.GET_FILE_FAILURE="GET_FILE_FAILURE",e.SET_MESSAGE_READ_REQUEST="SET_MESSAGE_READ_REQUEST",e.SET_MESSAGE_READ_SUCCESS="SET_MESSAGE_READ_SUCCESS",e.SET_MESSAGE_READ_FAILURE="SET_MESSAGE_READ_FAILURE",e.GET_CONTRACT_INFORMATION_PHONE_REQUEST="GET_CONTRACT_INFORMATION_PHONE_REQUEST",e.GET_CONTRACT_INFORMATION_PHONE_SUCCESS="GET_CONTRACT_INFORMATION_PHONE_SUCCESS",e.GET_CONTRACT_INFORMATION_PHONE_FAILURE="GET_CONTRACT_INFORMATION_PHONE_FAILURE",e.UPDATE_BANK_INFORMATION_SUCCESS="UPDATE_BANK_INFORMATION_SUCCESS",e.UPDATE_CONTACT_INFORMATION_SCHRIFT_SUCCESS="UPDATE_CONTACT_INFORMATION_SCHRIFT_SUCCESS",e.UPDATE_CONTACT_INFORMATION_POSTFACH_SUCCESS="UPDATE_CONTACT_INFORMATION_POSTFACH_SUCCESS",e.UPDATE_CONTRACT_HOLDER_SUCCESS="UPDATE_CONTRACT_HOLDER_SUCCESS",e.GET_PRICE_REQUEST="GET_PRICE_REQUEST",e.GET_PRICE_SUCCESS="GET_PRICE_SUCCESS",e.GET_PRICE_FAILURE="GET_PRICE_FAILURE",e.SET_PRODUCT_REPO_UDI="SET_PRODUCT_REPO_UDI",e.GET_CONTRACT_GREEN_PRODUCT_COMPARISON_REQUEST="GET_CONTRACT_GREEN_PRODUCT_COMPARISON_REQUEST",e.GET_CONTRACT_GREEN_PRODUCT_COMPARISON_SUCCESS="GET_CONTRACT_GREEN_PRODUCT_COMPARISON_SUCCESS",e.GET_CONTRACT_GREEN_PRODUCT_COMPARISON_FAILURE="GET_CONTRACT_GREEN_PRODUCT_COMPARISON_FAILURE",e.CONTRACT_INFORMATION_FAILURE="CONTRACT_INFORMATION_FAILURE",e.CONTRACT_INFORMATION_SUCCESS="CONTRACT_INFORMATION_SUCCESS",e.CONTRACT_INFORMATION_RESET="CONTRACT_INFORMATION_RESET",e.SEND_CONTACT_REQUEST="SEND_CONTACT_REQUEST",e.SEND_CONTACT_SUCCESS="SEND_CONTACT_SUCCESS",e.SEND_CONTACT_FAILURE="SEND_CONTACT_FAILURE",e.SEND_CONTACT_RESET="SEND_CONTACT_RESET",e.GET_SALUTATIONS_REQUEST="GET_SALUTATIONS_REQUEST",e.GET_SALUTATIONS_SUCCESS="GET_SALUTATIONS_SUCCESS",e.GET_SALUTATIONS_FAILURE="GET_SALUTATIONS_FAILURE",e.GET_CONTRACT_INFORMATION_BANK_ACCOUNT_REQUEST="GET_CONTRACT_INFORMATION_BANK_ACCOUNT_REQUEST",e.GET_CONTRACT_INFORMATION_BANK_ACCOUNT_SUCCESS="GET_CONTRACT_INFORMATION_BANK_ACCOUNT_SUCCESS",e.GET_CONTRACT_INFORMATION_BANK_ACCOUNT_FAILURE="GET_CONTRACT_INFORMATION_BANK_ACCOUNT_FAILURE",e.SET_CONTRACT_INFORMATION_BANK_ACCOUNT_IS_CHANGEABLE="SET_CONTRACT_INFORMATION_BANK_ACCOUNT_IS_CHANGEABLE",e.PERFORM_MFA="PERFORM_MFA",e.MFA_ACTIVATION_SUCCESS="MFA_ACTIVATION_SUCCESS",e.MFA_CHANGE_REQUEST="MFA_CHANGE_REQUEST",e.MFA_CHANGE_SUCCESS="MFA_CHANGE_SUCCESS",e.GET_COUNT_UNREAD_MESSAGE_REQUEST="GET_COUNT_UNREAD_MESSAGE_REQUEST",e.GET_COUNT_UNREAD_MESSAGE_SUCCESS="GET_COUNT_UNREAD_MESSAGE_SUCCESS",e.GET_COUNT_UNREAD_MESSAGE_FAILURE="GET_COUNT_UNREAD_MESSAGE_FAILURE",e.SET_RELOCATION_CONTRACT_STEP="SET_RELOCATION_CONTRACT_STEP",e.SET_RELOCATION_CONTRACT="SET_RELOCATION_CONTRACT",e.SET_TARIFF_CHANGE_OFFER_STEP="SET_TARIFF_CHANGE_OFFER_STEP",e.SET_TARIFF_CHANGE_OFFER="SET_TARIFF_CHANGE_OFFER"}(r||(r={}))},59672:(e,a,n)=>{n.r(a),n.d(a,{default:()=>x});var t=n(96540),i=n(17768);let r,l,s;!function(e){e[e.TerminateContractToEndOfContract=1]="TerminateContractToEndOfContract",e[e.SpecialTerminationConditionsChanged=2]="SpecialTerminationConditionsChanged",e[e.SpecialTerminationAGBChanged=3]="SpecialTerminationAGBChanged",e[e.SpecialTerminationMoveOut=4]="SpecialTerminationMoveOut"}(r||(r={})),function(e){e[e.Male=1]="Male",e[e.Female=2]="Female",e[e.Divers=3]="Divers"}(l||(l={})),function(e){e[e.SpecificCancellationDate=1]="SpecificCancellationDate",e[e.DesiredCancellationDate=2]="DesiredCancellationDate"}(s||(s={}));class o{constructor(){this.deviceNumber="",this.contractAccountNumber="",this.cancellationDate="",this.keyTransferDate="",this.cancellationReason=r.TerminateContractToEndOfContract,this.specificCancellationDates=s.SpecificCancellationDate,this.specificCancellationDateDesired=!1,this.gender=l.Divers,this.firstName="",this.lastName="",this.email="",this.confirmEmail="",this.street="",this.streetNumber="",this.zip="",this.city="",this.phone=""}}var c=n(94569),d=n(71647);let E;!function(e){e.cancellationForm="Umzugsformular",e.contractAccountNumberTooltip="Ihre Vertragskontonummer finden Sie auf Ihrer Vertragsbestätigung oder Ihrer letzten Rechnung.",e.deviceNumberTooltip="Ihre Zählernummer finden Sie auf Ihrer Vertragsbestätigung oder Ihrer letzten Rechnung. Die Zählernummer können Sie auÃerdem von Ihrem Strom- bzw. Gaszähler ablesen.",e.requiredText="Die mit * gekennzeichneten Felder sind Pflichtfelder.",e.successTitle="Ihre Kündigung ist bei uns eingegangen!",e.successText="Sie erhalten in Kürze eine Eingangsbestätigung an die angegebene E-Mailadresse. Eine Zusammenfassung der von Ihnen im Kündigungsformular gemachten Angaben, können Sie als PDF für Ihre Unterlagen herunterladen.",e.successText2="Im nächsten Schritt prüfen wir die von Ihnen getätigten Angaben. Nac
1hdem wir die Kündigung bearbeitet haben, erhalten Sie von uns die Kündigungsbestätigung mit dem konkreten Kündigungstermin. Bei Rückfragen kommen wir auf Sie zu.",e.formSendErrorHeadline="Ihre Kündigung konnte leider nicht übermittelt werden!",e.formSendErrorText="Bitte versuchen Sie es zu einem späteren Zeitpunkt oder wenden Sie sich an unseren Kundenservice.",e.emailText="(Es wird eine Bestätigung an die oben genannte E-Mail geschickt)",e.validation="Das ist ein Pflichtfeld",e.validationOwner="Geben Sie hier die Adresse der Person/des Unternehmens ein, deren/dessen IBAN nachfolgend angegeben wird",e.contractAccountNumber="Vertragskontonummer",e.contractAccountNumberPlaceholder="Ihre LEW Vertragskontonummer (12-stellig)",e.deviceNumber="Zählernummer",e.cancellationReason="Kündigungsgrund",e.cancellationDate="Wunschdatum",e.cancellationDateDescription="Geben Sie keinen Wunschtermin an oder können wir Ihren Wunschtermin nach eingehender Prüfung nicht bestätigen, endet Ihr Vertrag zum nächstmöglichen Zeitpunkt. Den Termin Ihres Vertragsendes teilen wir Ihnen zeitnah in Ihrer Kündigungsbestätigung mit.",e.salutation="Anrede",e.firstName="Vorname",e.lastName="Nachname",e.street="StraÃe",e.streetno="Hausnummer",e.postcode="PLZ",e.place="Ort",e.email="E-Mail-Adresse",e.confirmEmail="E-Mail-Adresse wiederholen",e.phone="Telefonnummer",e.cancelNow="Jetzt kündigen",e.abort="Abbrechen",e.personalData="Persönliche Daten",e.personalDataDetails="Bitte füllen Sie folgende Felder aus, damit wir Sie identifizieren können.",e.invoiceDetails="Angaben zur Endabrechnung",e.invoiceDetailsDescription="Bitte geben Sie Ihre zukünftige Anschrift an. Diese benötigen wir, um Ihnen die Jahresabschlussrechnung senden zu können.",e.emailsNotEqual="E-Mail-Adressen stimmen nicht überein",e.repeatCancellation="Erneut versuchen",e.contact="Kontakt",e.downloadCancellationDoc="Zusammenfassung herunterladen",e.keyTransferDate="Datum der Schlüsselübergabe",e.keyTransferDateValidation="Bitte geben Sie das Datum der Schlüsselübergabe an.",e.streetValidation="Bitte geben Sie Ihre StraÃe an.",e.streetNumberValidation="Bitte geben Sie Ihre Hausnummer an.",e.zipValidation="Bitte geben Sie Ihre Postleitzahl an.",e.cityValidation="Bitte geben Sie Ihren Wohnort an.",e.offerText="Wünschen Sie doch ein Alternativangebot? Dann klicken Sie bitte",e.here="hier",e.male="Herr",e.female="Frau",e.divers="keine Angabe",e.terminateContractToEndOfContract="Kündigung zum Ende der Vertragslaufzeit",e.specialTerminationConditionsChanged="Sonderkündigung: Konditionen meines Vertrags wurden angepasst",e.specialTerminationAGBChanged="Sonderkündigung: Meine AGB wurden angepasst",e.specialTerminationMoveOut="Sonderkündigung: Umzug",e.specificCancellationDate="Kündigung zum nächstmöglichen Termin",e.desiredCancellationDate="Kündigung zu einem Wunschdatum",e.dateFormat="TT.MM.JJJJ",e.dataProtectionText="Die mit * gekennzeichneten Felder sind Pflichtfelder, um Ihren Vertrag zu identifizieren und Ihnen die Kündigung per E-Mail zukommen zu lassen."}(E||(E={}));var T=n(93451),_=n(60102),C=n(64757),N=n(93814),m=n(58247),S=n(87451),A=n(61517),u=n(96904),R=n(63649),h=n(99879),O=n(74848);const I=e=>{const{address:a,validation:n,errors:t,isGlobalValidation:i,handleChange:r}=e;return a&&n&&t&&r&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("div",{className:"row",children:(0,O.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,O.jsx)("h2",{children:E.invoiceDetails})})}),(0,O.jsx)("div",{className:"row",children:(0,O.jsx)("div",{className:"col-sm-12",children:(0,O.jsx)("p",{children:E.invoiceDetailsDescription})})}),(0,O.jsx)("br",{}),(0,O.jsxs)("div",{className:"row",children:[(0,O.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,O.jsx)(m.A,{label:E.street,placeholder:E.street,name:"street",value:a.street,handleChange:r,validation:n,errors:t.street,globalValidation:i})}),(0,O.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,O.jsx)(m.A,{label:E.streetno,name:"streetNumber",value:a.streetNumber,placeholder:E.streetno,handleChange:r,validation:n,errors:t.streetno,globalValidation:i})})]}),(0,O.jsxs)("div",{className:"row",children:[(0,O.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,O.jsx)(m.A,{label:E.postcode,placeholder:E.postcode,name:"zip",value:a.zip,handleChange:r,validation:n,errors:t.zip,globalValidation:i,maxLength:5})}),(0,O.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,O.jsx)(m.A,{label:E.place,placeholder:E.place,name:"city",value:a.city,handleChange:r,validation:n,errors:t.city,globalValidation:i})})]})]})};var g=n(48337),D=n(22975),U=n(56156),v=n(8491),p=n(75942),G=n(45867),b=n(45367);const x=e=>{var a,n,x;let{offerUrl:f}=e;const j="formCancellation",[F,L]=(0,t.useState)(!1),[M,P]=(0,t.useState)(!1),[w,k]=(0,t.useState)(!1),[y,B]=(0,t.useState)(h.A.newGuid()),[V,Q]=(0,t.useState)(""),[z,H]=(0,t.useState)(!1),K=(0,g.P)(E),W=(0,g.P)(r,K),q=(0,g.P)(l,K),$=(0,g.P)(s,K),[X,Z]=(0,t.useReducer)(((e,a)=>({...e,...a})),new o),{errors:J,validation:Y,isGlobalValidation:ee,triggerValidation:ae,isFieldClean:ne,addValidationProperty:te,removeValidationProperty:ie}=(0,c.u)("Cancellation.CancellationForm",X),re=(0,p.useQueryClient)(),le=!!(X.contractAccountNumber&&ne("contractAccountNumber")&&X.deviceNumber&&ne("deviceNumber")),{data:se,isFetched:oe,refetch:ce}=(0,p.useQuery)(["verifyContractAccountAndMeterNumberCombination",X.contractAccountNumber,X.deviceNumber],(e=>{let{signal:a}=e;return R.$.verifyContractAccountAndMeterNumberCombination({contractAccountNumber:X.contractAccountNumber,meterNumber:X.deviceNumber},y,a)}),{staleTime:1/0,retry:!1,refetchOnWindowFocus:!1,onSettled:()=>B(globalThis.crypto.randomUUID()),onError:e=>{var a;(null===e||void 0===e||null===(a=e.response)||void 0===a?void 0:a.data)===G.B.InvalidAntiforgeryToken&&H(!0)},enabled:!1}),de=async()=>{le&&ce()},Ee=null===se||void 0===se?void 0:se.data.isContractActive,Te=null===se||void 0===se?void 0:se.data.isCombinationValid,_e=le&&oe&&!Te&&!z,Ce=!Te||!Ee,Ne=Te&&!Ee,me=async e=>{const a=e.currentTarget.name,n="checkbox"===e.target.type?e.target.checked:e.target.value;Z({[a]:n}),null!==a&&void 0!==a&&a.toLowerCase().includes("email")&&ue(),"contractNumber"!==a&&"deviceNumber"!==a||await re.invali
1dateQueries("verifyContractAccountAndMeterNumberCombination")},Se=(e,a,n)=>{let t=null;"cancellationReason"===n?(t=r[r[e]],Oe(t)):"specificCancellationDates"===n?(t=s[s[e]],Oe(null)):t=e,Z({[n]:t})},Ae=e=>{const a=e.currentTarget.name,n=e.target.value;Z({[a]:(0,N.sg)(n)})},ue=()=>{ie("confirmEmail","compare",E.emailsNotEqual),te("confirmEmail","compare",E.emailsNotEqual,X.email)};(0,t.useEffect)((()=>{const{cancellationReason:e,specificCancellationDates:a,specificCancellationDateDesired:n}=X,t=!(e===r.SpecialTerminationMoveOut)&&a===s.DesiredCancellationDate;t!==n&&Z({specificCancellationDateDesired:t})}),[X]);const Re=X.cancellationReason===r.SpecialTerminationMoveOut,he=X.cancellationReason===r.SpecialTerminationMoveOut;(0,t.useEffect)((()=>{(0,D.F)(j,"form-v2"),(0,D.Y)(j)}),[X.specificCancellationDateDesired,Re]);const Oe=e=>{e===r.SpecialTerminationMoveOut?(te("keyTransferDate","required",E.keyTransferDateValidation,"True"),te("street","required",E.streetValidation,"True"),te("streetNumber","required",E.streetNumberValidation,"True"),te("zip","required",E.zipValidation,"True"),te("city","required",E.cityValidation,"True"),Z({specificCancellationDateDesired:!1,specificCancellationDates:1,cancellationDate:null,keyTransferDate:null})):X.cancellationReason!==e&&(Z({specificCancellationDateDesired:!1,specificCancellationDates:1,cancellationDate:null,keyTransferDate:null,street:"",streetNumber:"",zip:"",city:""}),ie("keyTransferDate","required",E.keyTransferDateValidation,"True"),ie("street","required",E.streetValidation,"True"),ie("streetNumber","required",E.streetNumberValidation,"True"),ie("zip","required",E.zipValidation,"True"),ie("city","required",E.cityValidation,"True"))};return Y?(0,O.jsx)("section",{children:(0,O.jsx)("div",{className:"col-md-12",children:(0,O.jsxs)("div",{className:"container",children:[!(M||F)&&(0,O.jsx)("div",{"data-tpl":"form-v2","data-module":"","data-module-config":"",children:(0,O.jsxs)(A.h,{formId:j,children:[(0,O.jsx)("div",{className:"row",children:(0,O.jsx)("div",{className:"col-sm-12 col-md-12 text-right",children:(0,O.jsx)("small",{className:"requiredText",dangerouslySetInnerHTML:{__html:E.requiredText}})})}),(0,O.jsxs)("div",{"data-tpl":"cih01",children:[(0,O.jsxs)("div",{className:"row",children:[(0,O.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,O.jsx)(T.O,{label:E.contractAccountNumber,placeholder:E.contractAccountNumberPlaceholder,name:"contractAccountNumber",value:X.contractAccountNumber,handleChange:me,validation:Y,handleBlur:de,errors:J.contractAccountNumber,globalValidation:ee,tooltipDescription:E.contractAccountNumberTooltip,shouldTooltipPositionedOnBottom:!0,shouldTooltipPositionedOnRight:!0,maxLength:12})}),(0,O.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,O.jsx)(T.O,{label:E.deviceNumber,placeholder:E.deviceNumber,name:"deviceNumber",value:X.deviceNumber,handleChange:me,validation:Y,handleBlur:de,errors:J.deviceNumber,globalValidation:ee,tooltipDescription:E.deviceNumberTooltip,shouldTooltipPositionedOnBottom:!0,shouldTooltipPositionedOnRight:!0})})]}),Ne&&(0,O.jsx)("div",{className:"row",children:(0,O.jsxs)("div",{className:"col-sm-12 col-md-12",children:[(0,O.jsx)(b.A,{alertType:b.v.WARNING,message:"Beim angegebenen Vertragskonto handelt es sich um keinen aktiven Vertrag."}),(0,O.jsx)("br",{})]})}),_e&&(0,O.jsx)("div",{className:"row",children:(0,O.jsxs)("div",{className:"col-sm-12 col-md-12",children:[(0,O.jsx)(b.A,{alertType:b.v.WARNING,message:"Ihre eingegebene Kombination aus Vertragskontonummer und Zählernummer ist nicht korrekt."}),(0,O.jsx)("br",{})]})}),z&&(0,O.jsx)("div",{className:"row",children:(0,O.jsxs)("div",{className:"col-sm-12 col-md-12",children:[(0,O.jsx)(b.A,{alertType:b.v.WARNING,message:"Es ist ein Fehler aufgetreten. Bitte aktualisieren Sie die Seite und versuchen Sie es erneut."}),(0,O.jsx)("br",{})]})}),(0,O.jsx)("div",{className:"row",children:(0,O.jsx)("div",{className:"col-sm-12",children:(0,O.jsx)(_.A,{name:"cancellationReason",label:E.cancellationReason,handleChange:e=>Se(e,0,"cancellationReason"),value:null===(a=X.cancellationReason)||void 0===a?void 0:a.toString(),val
1idation:Y,errors:J,options:W,isGloablValidation:ee,disabled:Ce})})}),!Re&&(0,O.jsx)("div",{className:"row",children:(0,O.jsx)("div",{className:"col-sm-12",children:(0,O.jsx)(u.A,{name:"specificCancellationDates",label:"",handleChange:e=>{var a;return Se(null===e||void 0===e||null===(a=e.target)||void 0===a?void 0:a.value,0,"specificCancellationDates")},value:null===(n=X.specificCancellationDates)||void 0===n?void 0:n.toString(),validation:Y,errors:J.specificCancellationDates,globalValidation:ee,options:$,disabled:Ce})})}),X.specificCancellationDateDesired&&(0,O.jsx)("div",{className:"row",children:(0,O.jsx)("div",{className:"col-sm-12",children:(0,O.jsx)(C.A,{name:"cancellationDate",label:E.cancellationDate,placeholder:E.dateFormat,handleChange:Ae,value:X.cancellationDate,validation:Y,globalValidation:ee,errors:J.cancellationDate,tooltipDescription:E.cancellationDateDescription,shouldTooltipPositionedOnBottom:!0,shouldTooltipPositionedOnRight:!0,min:(0,N.t7)(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate())),max:(0,N.t7)(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()+3650)),disabled:Ce})})}),Re&&(0,O.jsx)("div",{className:"row",children:(0,O.jsx)("div",{className:"col-sm-12",children:(0,O.jsx)(C.A,{name:"keyTransferDate",label:E.keyTransferDate,placeholder:E.dateFormat,handleChange:Ae,value:X.keyTransferDate,validation:Y,globalValidation:ee,errors:J.keyTransferDate,shouldTooltipPositionedOnBottom:!0,shouldTooltipPositionedOnRight:!0,min:(0,N.t7)(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-28)),max:(0,N.t7)(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()+3650)),disabled:Ce})})})]}),(0,O.jsx)("br",{}),(0,O.jsx)("div",{className:"row",children:(0,O.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,O.jsx)("h2",{children:E.personalData})})}),(0,O.jsx)("div",{className:"row",children:(0,O.jsx)("div",{className:"col-sm-12",children:(0,O.jsx)("p",{children:E.personalDataDetails})})}),(0,O.jsx)("br",{}),(0,O.jsx)("div",{className:"row",children:(0,O.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,O.jsx)(u.A,{name:"gender",label:"",handleChange:e=>{var a;return Se(null===e||void 0===e||null===(a=e.target)||void 0===a?void 0:a.value,0,"gender")},value:null===(x=X.gender)||void 0===x?void 0:x.toString(),validation:Y,errors:J.gender,globalValidation:ee,options:q,disabled:Ce})})}),(0,O.jsxs)("div",{className:"row",children:[(0,O.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,O.jsx)(m.A,{label:E.firstName,placeholder:E.firstName,name:"firstName",value:X.firstName,handleChange:me,validation:Y,errors:J.firstName,globalValidation:ee,disabled:Ce})}),(0,O.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,O.jsx)(m.A,{label:E.lastName,placeholder:E.lastName,name:"lastName",value:X.lastName,handleChange:me,validation:Y,errors:J.lastName,globalValidation:ee,disabled:Ce})})]}),(0,O.jsxs)("div",{className:"row",children:[(0,O.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,O.jsx)(m.A,{label:E.email,placeholder:E.email,name:"email",value:X.email,handleChange:me,validation:Y,errors:J.email,globalValidation:ee,disabled:Ce})}),(0,O.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,O.jsx)(m.A,{label:E.confirmEmail,name:"confirmEmail",value:X.confirmEmail,placeholder:E.confirmEmail,handleChange:me,validation:Y,errors:J.confirmEmail,globalValidation:ee,disabled:Ce})})]}),(0,O.jsx)("div",{className:"row",children:(0,O.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,O.jsx)(m.A,{label:E.phone,placeholder:E.phone,name:"phone",value:X.phone,handleChange:me,validation:Y,errors:J.phone,globalValidation:ee,disabled:Ce})})}),(0,O.jsx)("div",{className:"row",children:(0,O.jsx)("div",{className:"col-sm-12",children:(0,O.jsx)("p",{children:E.dataProtectionText})})}),(0,O.jsx)("br",{}),he&&(0,O.jsx)(I,{address:X,errors:J,isGlobalValidation:ee,handleChange:me,validation:Y}),(0,O.jsxs)("div",{className:"row",children:[(0,O.jsx)("div",{className:"col-sm-12 col-md-3",children:(0,O.jsx)(S.A,{text:E.abort,fullWidth:!0,colorClass:"color-cta-2 full-width",handleClick:()=>{history.length>1?history.back():location.assign("/")}})}),(0,O.jsx)("div",{className:"col-sm-12 col-md-6"}),(0,O.jsx)("div",{className:"col-sm-12 col-md-3",children:(0,O.jsx)(S.A,{text:E.cancelNow,handleClick:async()=>
1{if(ae()){k(!0);const e=await R.$.sendCancellationForm(X,y);null!==e&&void 0!==e&&e.data&&!e.error?(L(!0),k(!1),Q(e.data)):(B(h.A.newGuid()),L(!1),P(!0),k(!1))}document.querySelectorAll(".error-block").length>0&&(0,v.Pq)("error-block")},loading:w,fullWidth:!0,colorClass:"color-cta-3 full-width float-right",isDisabled:Ce})})]})]})}),F&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("br",{}),(0,O.jsx)(d.w,{headline:E.successTitle,content:E.successText,status:d.X.Success,scrollToTop:!0}),(0,O.jsx)("div",{"data-tpl":"cta01",className:"cta01--center",children:(0,O.jsx)(U.k,{ctaText:E.downloadCancellationDoc,getBlobFile:async()=>R.$.getCancellationFormSummary(V)})}),(0,O.jsx)("br",{}),(0,O.jsx)("p",{className:"centred_text spaced-content",dangerouslySetInnerHTML:{__html:E.successText2}})]}),M&&(0,O.jsx)(d.w,{ctaLink:"/fuer-zuhause/kontakt",ctaOnClick:()=>{},ctaText:E.contact,ctaTwoText:E.repeatCancellation,ctaTwoOnClick:()=>{L(!1),P(!1),k(!1)},headline:E.formSendErrorHeadline,content:E.formSendErrorText,status:d.X.Error,scrollToTop:!0})]})})}):(0,O.jsx)(i.A,{})}},63649:(e,a,n)=>{n.d(a,{$:()=>i});var t=n(50374);const i={sendCancellationForm:async(e,a)=>{try{const n=await t.F.post(`/contact/sendCancellationForm?requestId=${a}`,e);return 200===(null===n||void 0===n?void 0:n.status)?n.data:Promise.reject(n.status)}catch(n){return n.response?Promise.reject(n.response.status):Promise.reject()}},getCancellationFormSummary:async e=>{try{return await t.F.get(`/contact/getCancellationFormSummary?documentId=${e}`,{responseType:"blob"})}catch(a){return a.response?a.response:Promise.reject()}},addCustomerToDigitalTargetGroup:async(e,a)=>{try{const n=await t.F.post(`/contact/addCustomerToDigitalTargetGroup?requestId=${a}`,e);return 200===(null===n||void 0===n?void 0:n.status)?n.data:await Promise.reject(n.status)}catch(n){return n.response?Promise.reject(n.response.status):Promise.reject()}},verifyContractAccountAndMeterNumberCombination:(e,a,n)=>t.F.post(`/contact/verifyContractAccountAndGaugeNumberCombination?requestId=${a}`,e,{signal:n}),sendHeatPumpForm:(e,a,n)=>t.F.post(`/contact/sendHeatPumpForm?requestId=${a}`,e,{signal:n}),sendApproveTransferGasContract:(e,a,n)=>t.F.post(`/contact/sendApproveTransferGasContract?requestId=${a}`,e,{signal:n}),getDocument:async e=>{try{return await t.F.get(`/contact/getDocument?documentId=${e}`,{responseType:"blob"})}catch(a){return a.response?a.response:Promise.reject()}}}},71647:(e,a,n)=>{n.d(a,{X:()=>s.XU,w:()=>d});var t=n(96540),i=n(87451),r=n(8491),l=n(20201),s=n(52665),o=n(74848);const c=e=>{switch(e){case s.XU.Success:return(0,o.jsx)("div",{children:(0,o.jsx)("div",{className:"",children:(0,o.jsxs)("div",{"data-tpl":"icon-badge",className:"",children:[(0,o.jsx)("i",{className:"icon icon_check_circle icon-status icon--rounded center-block color-icon--success"}),(0,o.jsx)("p",{children:"Â "})]})})});case s.XU.Info:return(0,o.jsx)("div",{className:"row",children:(0,o.jsx)("div",{className:"col-md-2 col-md-offset-5 col-sm-4 col-sm-offset-4 centred_text",children:(0,o.jsx)("figure",{className:"image image-semantic hidden-on-mobile piktoInfo",children:(0,o.jsx)("picture",{children:(0,o.jsx)("img",{src:"/foundation/images/icons/innogy_picto_info-speech-bubble.svg",alt:"Piktogramm","aria-describedby":"aria-2189",title:"Piktogramm"})})})})});case s.XU.Error:return(0,o.jsx)("div",{children:(0,o.jsx)("div",{className:"",children:(0,o.jsxs)("div",{"data-tpl":"icon-badge",className:"",children:[(0,o.jsx)("i",{className:"icon icon-close icon-status icon--rounded center-block color-icon--error"}),(0,o.jsx)("p",{children:"Â "})]})})});case s.XU.Auth:return(0,o.jsx)("div",{children:(0,o.jsx)("div",{className:"",children:(0,o.jsxs)("div",{"data-tpl":"icon-badge",className:"",children:[(0,o.jsx)("i",{className:"icon icon_safety icon-status icon--rounded center-block color-icon--auth"}),(0,o.jsx)("p",{children:"Â "})]})})});case s.XU.NotAllowed:return(0,o.jsx)("div",{children:(0,o.jsx)("div",{className:"",children:(0,o.jsxs)("div",{"data-tpl":"icon-badge",className:"",children:[(0,o.jsx)("i",{className:"icon icon-circle-minus icon-status icon--rounded center-block color-icon--error"}),(0,o.jsx)("p",{children:"Â "})]})})})}},d=e=>{var a,n;(0,t.useEffect)((()=>{e.scrollToTop&&(0,r.eG)()}),[]);const d=null!==(a=e.ctaOnClasses)&&void 0!==a&&a.includes("color-cta-")?e.ctaOnClasses:`color-cta-2 ${e.ctaOnClasses||""}`,E=null!==(n=e.ctaTwoClasses)&&void 0!==n&&n.includes("color-cta-")?e.ctaTwoClasses:`color-cta-3 ${e.ctaTwoClasses||""}`;return(0,o.jsxs)("div",{className:"container statusPage",children:[(0,o.jsxs)("div",{className:"row",children:[c(e.status),(0,o.jsx)("p",{children:"Â "}),(0,o.jsx)("h2",{className:"headline centred_text",children:e.headline}),(0,o.jsx)("p",{className:"centred_text spaced-content",dangerouslySetInnerHTML:{__html:e.content}}),(0,o.jsx)("p",{children:"Â "})]}),(0,o.jsxs)("div",{className:"row",children:[(0,o.jsx)("div",{className:(e.ctaTwoOnClick?"col-lg-3":"col-md-4")+" col-sm-0"}),(0,o.jsx)("div",{className:(e.ctaTwoOnClick?"col-lg-3":"col-md-4")+" col-sm-12 ",children:e.ctaOnClick&&(0,o.jsx)(i.A,{text:e.ctaText,handleClick:e.ctaOnClick,link:e.ctaLink,colorClass:`${d} btn--full-width`})}),e.ctaTwoOnClick&&(0,o.jsx)("div",{className:"col-lg-3 col-sm-12",children:(0,o.jsx)(i.A,{text:e.ctaTwoText,handleClick:e.ctaTwoOnClick,link:e.ctaTwoLink,colorClass:`${E} btn--full-width`})}),(0,o.jsx)("div",{className:(e.ctaTwoOnClick?"col-lg-3":"col-md-4")+" col-sm-0"})]}),(0,o.jsx)("div",{className:"row",children:e.maternaOptIn&&e.status!==s.
1XU.Error&&(0,o.jsx)(l.A,{maternaOptIn:e.maternaOptIn,companyType:e.company})})]})}}}]);
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.