1"use strict";(self["webpackJsonp[chunkhash]´"]=self["webpackJsonp[chunkhash]´"]||[]).push([[929],{5108:(e,a,t)=>{t.d(a,{W:()=>r});t(96540);var n=t(74848);const i=e=>{const a=e.activeStep===e.step;return(0,n.jsx)("li",{"aria-labelledby":`test hpn-step-${e.step}`,"aria-current":a?"step":void 0,children:(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{role:"presentation",className:"image",children:!e.numbered&&(0,n.jsx)("svg",{"data-tpl":"svg","data-module":"animation","data-animation":"check_checkbox","data-animation-config":"",width:"133px",height:"200px",viewBox:"0 0 133 200",children:(0,n.jsx)("path",{d:"M61.207,199.738c2.002-0.131,3.73-1.44,4.396-3.328L132.719,6.883c0.912-2.599-0.463-5.444-3.071-6.355\r c-2.604-0.904-5.465,0.459-6.377,3.061L60.035,182.061L9.473,82.883c-1.249-2.458-4.264-3.44-6.727-2.198\r c-2.467,1.244-3.453,4.245-2.207,6.702l55.875,109.628c0.854,1.686,2.586,2.735,4.461,2.735\r C60.986,199.75,61.097,199.747,61.207,199.738z",xmlns:"http://www.w3.org/2000/svg"})})}),(0,n.jsx)("p",{id:`hpn-step-${e.step}-label`,...a?{role:"heading","aria-level":e.useAsH1?1:2}:{},children:(0,n.jsx)("strong",{children:e.title})})]})})};let s;!function(e){e.CHANGE_STEP="NAVIGATION_CALLBACK/CHANGE_STEP"}(s||(s={}));const r=e=>{var a;const t=a=>{a<e.activeStep&&e.callbackHandler(s.CHANGE_STEP,a)},r=e.numbered?"hpn01--numbered":"hpn01";return(0,n.jsx)("div",{className:"row color-background-1","data-tpl":"grid-bas-01",children:(0,n.jsxs)("nav",{id:"hpn01","data-tpl":"hpn01",className:r,"aria-label":"Schritt-für-Schritt Navigation",children:[(0,n.jsx)("ol",{children:null===(a=e.steps)||void 0===a?void 0:a.map((a=>(0,n.jsx)(i,{activeStep:e.activeStep,handleStepClick:e.handleStepClick||t,lastStep:e.steps.length,step:a.step,title:a.title,numbered:e.numbered,notClickable:!e.handleStepClick&&!e.callbackHandler,useAsH1:e.useAsH1},a.step)))}),(0,n.jsx)("h3",{id:"test",children:(()=>{const a=e.steps.filter((a=>a.step===e.activeStep));return a&&a[0]?a[0].title:""})()})]})})}},9949:(e,a,t)=>{t.d(a,{V:()=>n});const n=e=>{e=e.replace(/\[/,String.raw`\[`).replace(/]/,String.raw`\]`);const a=new RegExp(`[\\?&]${e}=([^&#]*)`).exec(location.search);return null===a?"":decodeURIComponent(a[1].replaceAll("+"," "))}},37810:(e,a,t)=>{t.d(a,{Y:()=>n});const n={form_selection_default:"Bitte wählen",dateInputAriaLabel:"Bitte das Datum im Format TT.MM.JJJJ eingeben."}},38440:(e,a,t)=>{t.d(a,{m:()=>s,r:()=>r});var n=t(5108),i=(t(96540),t(74848));let s;!function(e){e.CHANGE_STEP="ORDER_NAVIGATION_CALLBACK/CHANGE_STEP"}(s||(s={}));const r=e=>(0,i.jsx)(n.W,{...e,handleStepClick:a=>{a<e.activeStep&&e.callbackHandler(s.CHANGE_STEP,a)},useAsH1:!0})},54722:(e,a,t)=>{t.d(a,{E:()=>i,W:()=>n});const n=(e,a,t)=>{var n,i;return null!==(n=null!==(i=(e[a]||{})[t])&&void 0!==i?i:e[t])&&void 0!==n?n:""},i=(e,a,t)=>{var n,i;return null!==(n=null!==(i=(e[a]||{})[t])&&void 0!==i?i:e[t])&&void 0!==n?n:""}},54779:(e,a,t)=>{t.d(a,{A:()=>l});var n=t(96540),i=t(65048),s=t(53547),r=t(74848);class l extends n.Component{constructor(e){super(e),this.handleChange=e=>{this.setState({touched:!0}),this.props.handleChange(e)},this.handleBlur=e=>{this.props.handleBlur&&this.props.handleBlur(e)},this.state={touched:!1},this.handleChange=this.handleChange.bind(this)}render(){return(0,r.jsxs)("div",{className:`field-group textarea\n ${s.I.markAsError(this.props.globalValidation?this.props.globalValidation:this.state.touched,this.props.errors)}`,children:[(0,r.jsx)("label",{htmlFor:this.props.name,className:s.I.markAsRequired(this.props.name,this.props.validation),children:this.props.label}),(0,r.jsxs)("label",{className:"form-control__container",children:[(0,r.jsx)("textarea",{id:this.props.name,name:this.props.name,className:"form-control__field","aria-autocomplete":"none",autoComplete:"off",placeholder:"",value:this.props.value,onChange:this.handleChange,onBlur:this.handleBlur,rows:this.props.rows?this.props.rows:3,disabled:this.props.isDisabled,"aria-required":s.I.isRequired(this.props.name,this.props.validation)}),(0,r.jsx)("div",{className:"form-control__btns"})]}),!!this.props.validation&&(0,r.jsx)(i.A,{error:this.props.errors,show:this.props.globalValidation?this.props.globalValidation:this.state.touched})]})}}},61922:(e,a,t)=>{t.d(a,{A:()=>d});var n=t(96540),i=t(65048),s=t(37810),r=t(53547),l=t(74848);const o={datePicker:{monthsFull:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthsShort:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],weekdaysFull:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],weekdaysShort:["So","Mo","Di","Mi","Do","Fr","Sa"],today:"Heute",labelMonthNext:"Nächster Monat",labelMonthPrev:"Vorheriger Monat",labelMonthSelect:"Monat auswählen",labelYearSelect:"Jahr auswählen",format:"dd.mm.yyyy",formatSubmit:"yyyy-mm-dd",hiddenPrefix:!1,hiddenSuffix:!1,hiddenName:"{{HIDDEN_INPUT_NAME}}",firstDay:1,min:"[1950,0,1]",selectYears:30}};class d extends n.Component{constructor(e){super(e),this.handleChange=e=>{this.setState({touched:!0}),this.props.handleChange(e)},this.handleBlur=e=>{this.setState({touched:!0}),this.props.handleBlur&&this.props.handleBlur(e)},this.state={touched:!1}}render(){const e=this.props.dateInputAriaLabel||s.Y.dateInputAriaLabel,a=(this.props.globalValidation||this.state.touched)&&this.props.errors&&this.props.errors.length>0,t=this.props.id||this.props.name,n=`${t}-error`;return(0,l.jsxs)("div",{className:`field-group datepicker ${r.I.markAsError(this.props.globalValidation||this.state.touched,this.props.errors)}`,"data-element":"form-element","data-element-config":o,"data-no-js":"",children:[(0,l.jsx)("label",{htmlFor:t,className:r.I.markAsRequired(t,this.props.validation),children:this.props.label}),(0,l.jsx)("div",{className:"field-group__container field-group__container--has-inner",children:(0,l.jsxs)("div",{className:"form-control__c
1ontainer",children:[(0,l.jsx)("input",{"aria-label":e,autoComplete:this.props.autoComplete||"off",id:t,name:this.props.name,type:"text",className:"form-control__field",placeholder:"TT.MM.JJJJ",spellCheck:!1,value:this.props.value,onChange:this.handleChange,onBlur:this.handleBlur,maxLength:10,"aria-required":r.I.isRequired(t,this.props.validation),"aria-invalid":a?"true":void 0,"aria-describedby":a?n:void 0}),(0,l.jsx)("div",{className:"form-control__btns"})]})}),(0,l.jsx)(i.A,{error:this.props.errors,errorId:n,show:this.props.globalValidation||this.state.touched})]})}}},69516:(e,a,t)=>{t.r(a),t.d(a,{default:()=>M});var n=t(96540),i=t(38440),s=t(87451),r=t(58247),l=t(61922),o=t(96904),d=t(77282),c=t(46123);let h,m;!function(e){e.Sachspende="1",e.Geldspende="2",e.Sponsoring="3"}(h||(h={}));class u{constructor(){this.application=null,this.projectTitle="",this.projectDescription="",this.projectPeriodFrom="",this.projectPeriodTo="",this.projectTotalCostEuro="",this.byProviderRequestedSumEur="",this.furtherProjectSponsors="",this.byProviderRequestedDonationRange=""}}!function(e){e.title="Projekt",e.field_application="Art der Förderung",e.field_projectTitle="Anlass / ggf. Titel des Projekts/ der Veranstaltung",e.field_projectDescription="Hintergrund / Beschreibung des Projekts / der Veranstaltung",e.field_projectPeriodFrom="Laufzeit am/vom",e.field_projectPeriodTo="Laufzeit bis",e.field_projectTotalCost="Gesamtkosten bzw. -etat in Euro",e.field_byProviderRequestedSumEur="bei LEW beantragte Summe in Euro",e.field_furtherProjectSponsors="Weitere Förderer / Sponsoren / Anteil Eigenfinanzierung",e.byProviderRequestedDonationRange="bei LEW beantragte Sachspende bzw. Umfang",e.next="Weiter",e.hintergrundInfo="Sie möchten uns Bilder und/oder Dokumente zu dem Projekt zukommen lassen? Einfach per Mail an <a href='mailto:[email protected]' title='[email protected]' class='link'>[email protected]</a> senden."}(m||(m={}));var p=t(54779),v=t(8491),g=t(74848);const x=e=>{const[a,t]=(0,n.useReducer)(((e,a)=>({...e,...a})),new u),[i,x]=(0,n.useState)(),[f,j]=(0,n.useReducer)(((e,a)=>({...e,...a})),{}),[b,N]=(0,n.useState)(!1);(0,n.useEffect)((()=>{S(),t(e.state),(0,v.eG)()}),[]);const S=async()=>{const e=await d.T.validationServerAsync(A);e&&200===e.status&&x(e.data)},k=e=>{const{name:a,value:n}=e.target;t({[a]:n});const s=c.v.validateProperty(n,a,i);j({[a]:s})},w=[{value:h.Sachspende,text:"Sachspende"},{value:h.Geldspende,text:"Geldspende"},{value:h.Sponsoring,text:"Sponsoring"}],A="SponsoringForm.SponsoringForm1";return(0,g.jsxs)("section",{"data-tpl":"grid-bas-02",children:[(0,g.jsx)("div",{className:"container commodityOrder",children:(0,g.jsx)("div",{"data-tpl":"form-v2","data-module":"form-v2","data-module-config":"",children:(0,g.jsx)("form",{id:"1",children:(0,g.jsx)("section",{"data-tpl":"grid-form-01",children:(0,g.jsxs)("div",{className:"container",children:[(0,g.jsxs)("div",{className:"row",children:[(0,g.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,g.jsx)("h2",{children:m.title})}),(0,g.jsx)("div",{className:"col-sm-12 col-md-6 text-right",children:(0,g.jsx)("small",{className:"requiredText",children:"*Pflichtfeld"})})]}),(0,g.jsxs)("div",{className:"row",children:[(0,g.jsx)("div",{className:"col-sm-12 col-md-12",children:(0,g.jsx)(o.A,{name:"application",id:"application",label:m.field_application,handleChange:k,value:a.application,validation:i,errors:f.application,options:w,globalValidation:b})}),(0,g.jsx)("div",{className:"col-sm-12 col-md-12",children:(0,g.jsx)(r.A,{label:m.field_projectTitle,handleChange:k,name:"projectTitle",value:a.projectTitle,validation:i,errors:f.projectTitle,globalValidation:b})}),(0,g.jsxs)("div",{className:"col-sm-12 col-md-12",children:[(0,g.jsx)(p.A,{label:m.field_projectDescription,handleChange:k,name:"projectDescription",value:a.projectDescription,validation:i,errors:f.projectDescription,globalValidation:b}),(0,g.jsx)("div",{className:"formZusatztextUnterInput",dangerouslySetInnerHTML:{__html:m.hintergrundInfo}})]}),(0,g.jsx)("div",{className:"col-sm-12 col-md-12",children:(0,g.jsxs)("div",{className:"row",children:[(0,g.jsx)("div",{className:"col-md-6 col-sm-12 ",children:(0,g.jsx)(l.A,{label:m.field_projectPeriodFrom,handleChange:k,name:"projectPeriodFrom",value:a.projectPeriodFrom,validation:i,errors:f.projectPeriodFrom,globalValidation:b})}),(0,g.jsx)("div",{className:"col-md-6 col-sm-12",children:(0,g.jsx)(l.A,{label:m.field_projectPeriodTo,handleChange:k,name:"projectPeriodTo",value:a.projectPeriodTo,validation:i,errors:f.projectPeriodTo,globalValidation:b})})]})})]}),(a.application===h.Geldspende||a.application===h.Sponsoring)&&(0,g.jsxs)("div",{className:"row",children:[(0,g.jsx)("div",{className:"col-sm-12 col-md-12",children:"Finanzierung"}),(0,g.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,g.jsx)(r.A,{label:m.field_projectTotalCost,handleChange:k,name:"projectTotalCostEuro",value:a.projectTotalCostEuro,validation:i,errors:f.projectTotalCostEuro,globalValidation:b})}),(0,g.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,g.jsx)(r.A,{label:m.field_byProviderRequestedSumEur,handleChange:k,name:"byProviderRequestedSumEur",value:a.byProviderRequestedSumEur,validation:i,errors:f.byProviderRequestedSumEur,globalValidation:b})}),(0,g.jsx)("div",{className:"col-sm-12 col-md-12",children:(0,g.jsx)(r.A,{label:m.field_furtherProjectSponsors,handleChange:k,name:"furtherProjectSponsors",value:a.furtherProjectSponsors,validation:i,errors:f.furtherProjectSponsors,globalValidation:b})})]}),a.application===h.Sachspende&&(0,g.jsx)("div",{className:"row",children:(0,g.jsx)("div",{className:"col-sm-12 col-md-12",children:(0,g.jsx)(r.A,{label:m.byProviderRequestedDonationRange,handleChange:k,name:"byProviderRequestedDonationRange",value:a.byProviderRequestedDonationRange,validation:i,errors:f.byProviderRequestedDonationRange,globalValidation:b})})}),(0,g.jsx)("div",{className:"row"})]})})})})}),(0,g.jsx)("div",{className:"container",children:(0,g.jsxs)("div",{className:"row",children:[(0,g.jsx)("div",{className:"col-sm-0 col-md-8"}),(0,g.jsx)("div",{className:"col-sm-12 col-md-4",children:(0,g.jsx)(s.A,{colorClass:"color-cta-3",text:m.next,handleClick:async()=>{N(!0);const n=Object.keys(i),s=f;let r=!0;const l=a;switch(a.application){case h.Geldspende:case h.Sponsoring:l.byProviderRequestedDonationRange="",t({input:l});for(const e of n.filter((e=>"byProviderRequestedDonationRange"!==e)))s[e]=c.v.validateProperty(a[e],e,i),r=r&&0===s[e].length;break;case h.Sachspende:l.byProviderRequestedSumEur="",l.projectTotalCostEuro="",l.furtherProjectSponsors="",t({input:l});for(const e of n.filter((e=>"byProviderRequestedSumEur"!==e&&"projectTotalCostEuro"!==e&&"furtherProjectSponsors"!==e)))s[e]=c.v.validateProperty(a[e],e,i),r=r&&0===s[e].length;break;default:for(const e of n)s[e]=c.v.validateProperty(a[e],e,i),r=r&&0===s[e].length}if(!r)return document.querySelectorAll(".error-block").length>0&&(0,v.Pq)("error-block"),j(s);e.callback("CHANGE_STEP/NEXT",a)}})})]})})]})};class f{constructor(){this.nameOfInstituation="",this.street="",this.streetno="",this.postcode="",this.place="",this.website="",this.candidateType=null,this.carrierOfInstituation="",this.publicBenefit=void 0,this.promotionField=null}}let j,b,N;!function(e){e.Umwelt="1",e.Soziales="2",e.Sport="3",e.Bildung="4",e.Kultur="5"}(j||(j={})),function(e){e.Verein="1",e.Initiative="2",e.KommunaleEinrichtung="3",e.Unternehmen="4"}(b||(b={})),function(e){e.title="Antragsteller",e.field_nameOfInstituation="Name der Einrichtung",e.field_street="StraÃe",e.field_streetno="Hausnummer",e.field_postcode="PLZ",e.field_place="Ort",e.field_website="Website",e.field_candidateType="Rechtsform",e.field_carrierOfInstituation="Träger",e.publicBenefit="Gemeinnützigkeit",e.promotionField="Förderfeld",e.backButtonText="zurück",e.next="Weiter",e.carrierInfo="Wer ist Eigentümer / Gesellschafter / Träger der Einrichtung / Institution / des Empfängers, insbesondere ist die öffentliche Hand in irgendeiner Form beteiligt ?"}(N||(N={}));const S=e=>{const[a,t]=(0,n.useReducer)(((e,a)=>({...e,...a}
1)),new f),[i,l]=(0,n.useState)(),[h,m]=(0,n.useReducer)(((e,a)=>({...e,...a})),{}),[u,p]=(0,n.useState)(!1);(0,n.useEffect)((()=>{x(),t(e.state),(0,v.eG)()}),[]);const x=async()=>{const e=await d.T.validationServerAsync(A);e&&200===e.status&&l(e.data)},S=e=>{const{name:a,value:n}=e.target;t({[a]:n});const s=c.v.validateProperty(n,a,i);m({[a]:s})},k=[{text:"Verein",value:b.Verein},{text:"Initiative",value:b.Initiative},{text:"Kommunale Einrichtung",value:b.KommunaleEinrichtung},{text:"Unternehmen",value:b.Unternehmen}],w=[{text:"Umwelt",value:j.Umwelt},{text:"Soziales",value:j.Soziales},{text:"Sport",value:j.Sport},{text:"Bildung",value:j.Bildung},{text:"Kultur",value:j.Kultur}],A="SponsoringForm.SponsoringForm2";return(0,g.jsxs)("section",{"data-tpl":"grid-bas-02",children:[(0,g.jsx)("div",{className:"container commodityOrder",children:(0,g.jsx)("div",{"data-tpl":"form-v2","data-module":"form-v2","data-module-config":"",children:(0,g.jsx)("form",{id:"2",children:(0,g.jsx)("section",{"data-tpl":"grid-form-01",children:(0,g.jsxs)("div",{className:"container",children:[(0,g.jsxs)("div",{className:"row",children:[(0,g.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,g.jsx)("h2",{children:N.title})}),(0,g.jsx)("div",{className:"col-sm-12 col-md-6 text-right",children:(0,g.jsx)("small",{className:"requiredText",children:"*Pflichtfeld"})})]}),(0,g.jsx)("div",{className:"row",children:(0,g.jsx)("div",{className:"col-sm-12 col-md-12",children:(0,g.jsx)(r.A,{label:N.field_nameOfInstituation,handleChange:S,name:"nameOfInstituation",value:a.nameOfInstituation,validation:i,errors:h.nameOfInstituation,globalValidation:u})})}),(0,g.jsxs)("div",{className:"row",children:[(0,g.jsx)("div",{className:"col-sm-12 col-md-8",children:(0,g.jsx)(r.A,{label:N.field_street,handleChange:S,name:"street",value:a.street,validation:i,errors:h.street,globalValidation:u})}),(0,g.jsx)("div",{className:"col-sm-12 col-md-4",children:(0,g.jsx)(r.A,{label:N.field_streetno,handleChange:S,name:"streetno",value:a.streetno,validation:i,errors:h.streetno,globalValidation:u})})]}),(0,g.jsxs)("div",{className:"row",children:[(0,g.jsx)("div",{className:"col-sm-12 col-md-4",children:(0,g.jsx)(r.A,{label:N.field_postcode,handleChange:S,name:"postcode",value:a.postcode,validation:i,errors:h.postcode,globalValidation:u})}),(0,g.jsx)("div",{className:"col-sm-12 col-md-8",children:(0,g.jsx)(r.A,{label:N.field_place,handleChange:S,name:"place",value:a.place,validation:i,errors:h.place,globalValidation:u})})]}),(0,g.jsxs)("div",{className:"row",children:[(0,g.jsx)("div",{className:"col-sm-12 col-md-12",children:(0,g.jsx)(r.A,{label:N.field_website,handleChange:S,name:"website",value:a.website,validation:i,errors:h.website,globalValidation:u})}),(0,g.jsx)("div",{className:"col-sm-12 col-md-12",children:(0,g.jsx)(o.A,{name:"candidateType",id:"candidateType",label:N.field_candidateType,handleChange:S,value:a.candidateType,options:k,validation:i,errors:h.candidateType,globalValidation:u})}),(0,g.jsxs)("div",{className:"col-sm-12 col-md-12",children:[(0,g.jsx)(r.A,{label:N.field_carrierOfInstituation,handleChange:S,name:"carrierOfInstituation",value:a.carrierOfInstituation,validation:i,errors:h.carrierOfInstituation,globalValidation:u}),(0,g.jsx)("div",{className:"formZusatztextUnterInput",children:N.carrierInfo})]}),(0,g.jsx)("div",{className:"col-sm-12 col-md-12",children:(0,g.jsx)(o.A,{name:"publicBenefit",id:"publicBenefit",label:N.publicBenefit,handleChange:S,value:a.publicBenefit,options:[{text:"Ja",value:"true"},{text:"Nein",value:"false"}],validation:i,errors:h.publicBenefit,globalValidation:u})}),(0,g.jsx)("div",{className:"col-sm-12 col-md-12",children:(0,g.jsx)(o.A,{name:"promotionField",id:"promotionField",label:N.promotionField,handleChange:S,value:a.promotionField,options:w,validation:i,errors:h.promotionField,globalValidation:u})})]})]})})})})}),(0,g.jsx)("div",{className:"container",children:(0,g.jsxs)("div",{className:"row",children:[(0,g.jsx)("div",{className:"col-sm-12 col-md-4",children:(0,g.jsx)(s.A,{colorClass:"color-cta-2",text:N.backButtonText,handleClick:t=>{e.callback("CHANGE_STEP/PREV",a)}})}),(0,g.jsx)("div",{className:"col-sm-0 col-md-4"}),(0,g.jsx)("div",{className:"col-sm-12 col-md-4",children:(0,g.jsx)(s.A,{colorClass:"color-cta-3",text:N.next,handleClick:async()=>{p(!0);const t=Object.keys(i),n=h;let s=!0;if(t.map((e=>{n[e]=c.v.validateProperty(a[e],e,i),s=s&&0===n[e].length})),!s)return document.querySelectorAll(".error-block").length>0&&(0,v.Pq)("error-block"),m(n);e.callback("CHANGE_STEP/NEXT",a)}})})]})})]})};class k{constructor(){this.application="",this.salutation="",this.firstName="",this.lastName="",this.phone="",this.place="",this.website="",this.email="",this.mandateCarrier="",this.accountOwner="",this.iban="",this.nameOfBank="",this.taxI
1d="",this.vatId=""}}var w=t(72505),A=t.n(w);const C="/umbraco/api/contact",E=document.querySelectorAll("[name='__RequestVerificationToken']")[0].value;const _=new class{constructor(){this.checkStep1=async e=>{const a=`${C}/checkStep1`;try{return await A().post(a,e,{headers:{"X-XSRF-TOKEN":E},withCredentials:!0})}catch(t){return t.response}},this.checkStep2=async e=>{const a=`${C}/checkStep2`;try{return await A().post(a,e,{headers:{"X-XSRF-TOKEN":E},withCredentials:!0})}catch(t){return t.response}},this.SendSponsoringForm=async e=>{const a=`${C}/SendSponsoringForm`;try{return await A().post(a,e,{headers:{"X-XSRF-TOKEN":E},withCredentials:!0})}catch(t){return t.response}},this.confirmCode=async e=>{const a=`${C}/ConfirmSponsoringRequest`,t={VpfId:e};try{return await A().post(a,t,{headers:{"X-XSRF-TOKEN":E},withCredentials:!0})}catch(n){return n.response}}}};let y;!function(e){e.title="Kontaktdaten",e.field_salutation="Anrede",e.field_firstName="Vorname",e.field_lastName="Name",e.field_phone="Telefon",e.field_email="E-Mail",e.field_elected="Amts- oder Mandatsträger",e.field_accountOwner="Kontoinhaber",e.field_iban="IBAN",e.debitIbanError="Die angegebene IBAN ist nicht korrekt. Bitte überprüfen Sie Ihre Eingabe",e.field_nameOfBank="Name der Bank",e.field_taxId="Steuer-ID",e.field_vatId="Umsatzsteuer-ID",e.backButtonText="zurück",e.next="Formular absenden",e.mandateCarrierInfo="Sie sind nicht sicher, was ein Amts- oder Mandatsträger ist? Hier klicken & die Definition lesen!",e.mandateCarrierLink="/ueber-lew/engagement-in-der-region/info-amts-bzw-mandatstraeger"}(y||(y={}));var I=t(28359);const T=e=>{const[a,t]=(0,n.useReducer)(((e,a)=>({...e,...a}
1)),new k),[i,l]=(0,n.useState)(),[m,u]=(0,n.useReducer)(((e,a)=>({...e,...a})),{}),[p,x]=(0,n.useState)(!1);(0,n.useEffect)((()=>{f(),t(e.state),t({application:e.formularSponsoring.sponsoringForm1.application}),(0,v.eG)()}),[]);const f=async()=>{const e=await d.T.validationServerAsync(b);e&&200===e.status&&l(e.data)},j=e=>{const{name:a,value:n}=e.target;t({[a]:n});const s=c.v.validateProperty(n,a,i);u({[a]:s})},b="SponsoringForm.SponsoringForm3";return(0,g.jsxs)("section",{"data-tpl":"grid-bas-02",children:[(0,g.jsx)("div",{className:"container commodityOrder",children:(0,g.jsx)("div",{"data-tpl":"form-v2","data-module":"form-v2","data-module-config":"",children:(0,g.jsx)("form",{id:"3",children:(0,g.jsx)("section",{"data-tpl":"grid-form-01",children:(0,g.jsxs)("div",{className:"container",children:[(0,g.jsxs)("div",{className:"row",children:[(0,g.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,g.jsx)("h2",{children:y.title})}),(0,g.jsx)("div",{className:"col-sm-12 col-md-6 text-right",children:(0,g.jsx)("small",{className:"requiredText",children:"*Pflichtfeld"})})]}),(0,g.jsxs)("div",{className:"row",children:[(0,g.jsx)("div",{className:"col-sm-12 col-md-12",children:(0,g.jsx)(o.A,{name:"salutation",id:"salutation",label:y.field_salutation,handleChange:j,value:a.salutation,options:[{text:"Herr",value:"MR"},{text:"Frau",value:"MRS"}],validation:i,errors:m.salutation,globalValidation:p})}),(0,g.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,g.jsx)(r.A,{label:y.field_firstName,handleChange:j,name:"firstName",value:a.firstName,validation:i,errors:m.firstName,globalValidation:p})}),(0,g.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,g.jsx)(r.A,{label:y.field_lastName,handleChange:j,name:"lastName",value:a.lastName,validation:i,errors:m.lastName,globalValidation:p})})]}),(0,g.jsxs)("div",{className:"row",children:[(0,g.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,g.jsx)(r.A,{label:y.field_phone,handleChange:j,name:"phone",value:a.phone,validation:i,errors:m.ph
1one,globalValidation:p})}),(0,g.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,g.jsx)(r.A,{label:y.field_email,handleChange:j,name:"email",value:a.email,validation:i,errors:m.email,globalValidation:p})})]}),(0,g.jsx)("div",{className:"row",children:(0,g.jsxs)("div",{className:"col-sm-12 col-md-12",children:[(0,g.jsx)(o.A,{name:"mandateCarrier",id:"mandateCarrier",label:y.field_elected,handleChange:j,value:a.mandateCarrier,options:[{text:"Ja",value:"true"},{text:"Nein",value:"false"}],validation:i,errors:m.mandateCarrier,globalValidation:p}),(0,g.jsx)("div",{className:"formZusatztextUnterRadioGroup",children:(0,g.jsx)("a",{href:y.mandateCarrierLink,target:"_blank",className:"link",rel:"noreferrer noopener",children:y.mandateCarrierInfo})}),(0,g.jsx)("div",{children:(0,g.jsx)("br",{})})]})}),(e.formularSponsoring.sponsoringForm1.application===h.Sponsoring||e.formularSponsoring.sponsoringForm1.application===h.Geldspende)&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"row",children:[(0,g.jsx)("div",{className:"col-sm-12 col-md-12",children:(0,g.jsx)(r.A,{label:y.field_accountOwner,handleChange:j,name:"accountOwner",value:a.accountOwner,validation:i,errors:m.accountOwner,globalValidation:p})}),(0,g.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,g.jsx)(I.A,{name:"iban",label:y.field_iban,handleChange:j,value:a.iban,validation:i,globalValidation:p,errorText:y.debitIbanError})}),(0,g.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,g.jsx)(r.A,{label:y.field_nameOfBank,handleChange:j,name:"nameOfBank",value:a.nameOfBank,validation:i,errors:m.nameOfBank,globalValidation:p})})]}),(0,g.jsxs)("div",{className:"row",children:[(0,g.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,g.jsx)(r.A,{label:y.field_taxId,handleChange:j,name:"taxId",value:a.taxId,validation:i,errors:m.taxId,globalValidation:p})}),(0,g.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,g.jsx)(r.A,{label:y.field_vatId,handleChange:j,name:"vatId",value:a.vatId,validation:i,errors:m.vatId,globalValidation:p})})]})]})]})})})})}),(0,g.jsx)("div",{className:"container",children:(0,g.jsxs)("div",{className:"row",children:[(0,g.jsx)("div",{className:"col-sm-12 col-md-4",children:(0,g.jsx)(s.A,{colorClass:"color-cta-2",text:y.backButtonText,handleClick:t=>{e.callback("CHANGE_STEP/PREV",a)}})}),(0,g.jsx)("div",{className:"col-sm-0 col-md-4"}),(0,g.jsx)("div",{className:"col-sm-12 col-md-4",children:(0,g.jsx)(s.A,{colorClass:"color-cta-3",text:y.next,handleClick:async()=>{x(!0);const n=Object.keys(i),s=m;let r=!0;switch(a.application){case h.Sachspende:{const e=a;e.accountOwner="",e.iban="",e.nameOfBank="",e.taxId="",e.vatId="",t({input:e});for(const t of n.filter((e=>"accountOwner"!==e&&"iban"!==e&&"nameOfBank"!==e&&"taxId"!==e&&"vatId"!==e)))s[t]=c.v.validateProperty(a[t],t,i),r=r&&0===s[t].length;break}default:for(const e of n)s[e]=c.v.validateProperty(a[e],e,i),r=r&&0===s[e].length}if(!r)return document.querySelectorAll(".error-block").length>0&&(0,v.Pq)("error-block"),u(s);const l=e.formularSponsoring;l.sponsoringForm3=a;const o=await _.SendSponsoringForm(l);o&&200===o.status?e.callback("CHANGE_STEP/NEXT",a):e.callback("CHANGE_STEP/ERROR",a)}})})]})})]})};let P;!function(e){e.title="Danke für Ihre Anfrage!",e.textbold="WICHTIG:",e.text2="Um Ihre Kontaktdaten zu verifizieren, erhalten Sie in Kürze eine E-Mail mit einem Link. Erst wenn Sie diesen Link geklickt haben, wird Ihre Anfrage bestätigt und an den richtigen Ansprechpartner gesendet.",e.formSendErrorHeadline="Achtung",e.formSendErrorText="Es ist ein Fehler aufgetreten. Ihre Anfrage konnte leider nicht versendet werden. Bitte versuchen Sie es später erneut.",e.textButtonNeuLaden="Seite neu laden"}(P||(P={}));var F=t(45367);const V=e=>{(0,n.useEffect)((()=>{(0,v.eG)()}),[]);return e.formSendError?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("section",{"data-tpl":"grid-bas-02",children:(0,g.jsxs)("div",{"data-tpl":"tic02",className:"indention--none tic02--centered",children:[(0,g.jsx)("p",{className:"headline headline--h2"}),(0,g.jsx)("p",{className:"subheadline headline--h3"}),(0,g.jsx)("div",{className:"content",children:(0,g.jsx)("div",{className:"container",children:(0,g.jsx)("div",{"data-tpl":"form-v2","data-module":"form-v2","data-module-config":"",children:(0,g.jsx)("form",{id:"FormError",children:(0,g.jsx)("section",{"data-tpl":"grid-form-01",children:(0,g.jsx)("div",{className:"container",children:(0,g.jsx)("div",{className:"row message-formsend",children:(0,g.jsx)("div",{className:"col-sm-12 col-md-12 col-lg-12",children:(0,g.jsx)(F.A,{message:P.formSendErrorText,alertType:F.v.WARNING})})})})})})})})})]})}),(0,g.jsx)("section",{"data-tpl":"grid-bas-05",children:(0,g.jsx)("div",{className:"container",children:(0,g.jsxs)("div",{className:"row",children:[(0,g.jsx)("div",{className:"grid-content grid-content-1 col-md-4"}),(0,g.jsx)("div",{className:"grid-content grid-content-2 col-md-4",children:(0,g.jsx)("a",{href:"#",title:P.textButtonNeuLaden,className:"btn color-cta-3",onClick:()=>{location.reload()},children:P.textButtonNeuLaden})}),(0,g.jsx)("div",{className:"grid-content grid-content-3 col-md-4"})]})})})]}):(0,g.jsxs)("div",{children:[(0,g.jsx)("p",{"data-tpl":"hea01",className:"headline headline--h2 hea01--centered",children:P.title}),(0,g.jsxs)("div",{"data-tpl":"tic02",className:"indention--none tic02--centered",children:[(0,g.jsx)("p",{className:"headline headline--h2"}),(0,g.jsx)("p",{className:"subheadline headline--h3",children:P.textbold}),(0,g.jsx)("div",{className:"content",children:(0,g.jsx)("p",{children:P.text2})})]})]})};var R=t(17768),B=t(9949),O=t(71647),D=t(54722);const G={confirmed:{headline:"Herzlichen Dank!",content:"Sie haben die Richtigkeit Ihrer Angaben erfolgreich bestätigt und damit den Antrag auf Unterstützung abgeschickt.<br />Täglich trifft eine Vielzahl von Anfragen bei uns ein. Bitte haben Sie Verständnis, dass die Bearbeitung Ihres Anliegens einige Tage in Anspruch nehmen kann. Wir melden uns zeitnah bei Ihnen.",ctaText:"Zurück zur LEW-Webseite"},notconfirmed:{headline:"Ein technischer Fehler ist aufgetreten",content:"Leider ist etwas schiefgegangen und Ihr Antrag konnte von unserem System nicht verifiziert werden. Bitte versuchen Sie es noch einmal.<br />Sollte der Fehler dauerhaft auftreten, wenden Sie sich bitte per Mail an <a href='mailto:[email protected]' title='[email protected]' class='link'>[email protected]</a>. "},invalid:{headline:"Ein technischer Fehler ist aufgetreten",content:"Leider ist etwas schiefgegangen und Ihr Antrag konnte von unserem System nicht verifiziert werden. Bitte versuchen Sie es noch einmal.<br />Sollte der Fehler dauerhaft auftreten, wenden Sie sich bitte per Mail an <a href='mailto:[email protected]' title='[email protected]' class='link'>[email protected]</a>. "},checking:{headline:"Bitte wartenâ¦",content:"Wir überprüfen, ob Ihr Antrag in unserer Datenbank angekommen ist. Das kann einige Minuten in Anspruch nehmen. Bitte schlieÃen Sie diese Webseite NICHT, bis der Vorgang abgeschlossen ist. Danke für Ihre Geduld!"},nocode:{headline:"Ein technischer Fehler ist aufgetreten",content:"Leider ist etwas schiefgegangen und Ihr Antrag konnte von unserem System nicht verifiziert werden. Bitte versuchen Sie es noch einmal.<br />Sollte der Fehler dauerhaft auftreten, wenden Sie sich bitte per Mail an <a href='mailto:[email protected]' title='[email protected]' class='link'>[email protected]</a>. "},error:{headline:"Ein technischer Fehler ist aufgetreten",content:"Leider ist etwas schiefgegangen und Ihr Antrag konnte von unserem System nicht verifiziert werden. Bitte versuchen Sie es noch einmal.<br />Sollte der Fehler dauerhaft auftreten, wenden Sie sich bitte per Mail an <a href='mailto:[email protected]' title='[email protected]' class='link'>[email protected]</a>. "},headline:"Bitte wartenâ¦",content:"Wir überprüfen, ob Ihr Antrag in unserer Datenbank angekommen ist. Das kann einige Minuten in Anspruch nehmen. Bitte schlieÃen Sie diese Webseite NICHT, bis der Vorgang abgeschlossen ist. Danke für Ihre Geduld!",ctaText:"",textLoading:"Bestätigungslink wird geprüft",successButton:"Weiteren Zählerstand erfassen"},H=()=>
1{const e=(0,B.V)("code"),[a,t]=(0,n.useState)(!0),[i,s]=(0,n.useState)(!1),[r,l]=(0,n.useState)("checking"),[o,d]=(0,n.useState)(O.X.Info);(0,n.useEffect)((()=>{e&&""!=e?c(e):(l("nocode"),d(O.X.Info),t(!1))}),[]);const c=async e=>{const a=await _.confirmCode(e);a&&200===a.status?a.data&&a.data.resultStatus&&"OK"===a.data.resultStatus?(l("confirmed"),d(O.X.Success)):(l("notconfirmed"),d(O.X.Error)):!a||404!==a.status&&400!==a.status?!a||500!==a.status&&499!==a.status?a&&403===a.status&&(l("notconfirmed"),d(O.X.Error)):(l("error"),d(O.X.Error)):(l("invalid"),d(O.X.Error)),t(!1)};return(0,g.jsx)("div",{"data-tpl":"blanko-overview",children:(0,g.jsx)("main",{children:(0,g.jsx)("section",{children:(0,g.jsx)("div",{className:"container",children:(0,g.jsx)("div",{className:"row",id:"formularZaehlerstand",children:(0,g.jsxs)("div",{className:"col-md-12",children:[(0,g.jsx)(O.w,{headline:(0,D.W)(G,r,"headline"),content:(0,D.W)(G,r,"content"),status:o,scrollToTop:!0}),a&&(0,g.jsx)(R.A,{})]})})})})})})};var z=t(99879);const M=e=>{const a=[{step:1,title:"Projekt"},{step:2,title:"Antragsteller"},{step:3,title:"Kontaktdaten"},{step:4,title:"Daten gespeichert"}],[t,s]=(0,n.useState)(1),[r,l]=(0,n.useState)(!1),[o,d]=(0,n.useReducer)(((e,a)=>({...e,...a})),{}),c=(e,n)=>{const r={[i.m.CHANGE_STEP]:()=>s(n),"CHANGE_STEP/NEXT":()=>{const e=t+1;0!==a.filter((a=>a.step>=e)).length&&(s(e),d({[`sponsoringForm${t}`]:n}))},"CHANGE_STEP/PREV":()=>{const e=t-1;0!==a.filter((a=>a.step<=e)).length&&s(e)},"CHANGE_STEP/ERROR":()=>{l(!0),s(0)},default:()=>{}};return(r[e]||r.default)()};return(0,n.useEffect)((()=>{e.actionType&&"BestaetigungFormular"===e.actionType?s(9):d({formGuid:z.A.newGuid()})}),[]),(0,g.jsxs)(g.Fragment,{children:[t<9&&(0,g.jsx)(i.r,{activeStep:t,steps:a,callbackHandler:c,numbered:!0}),(0,g.jsx)("div",{"data-tpl":"blanko-overview",children:(0,g.jsx)("main",{children:(0,g.jsx)("section",{children:(0,g.jsx)("div",{className:"container",children:(0,g.jsx)("div",{className:"row",id:"formularSponsoring",children:(0,g.jsx)("div",{className:"col-md-12",children:(()=>{const e={1:()=>(0,g.jsx)(x,{callback:c,state:o.sponsoringForm1}),2:()=>(0,g.jsx)(S,{callback:c,state:o.sponsoringForm2}),3:()=>(0,g.jsx)(T,{callback:c,state:o.sponsoringForm3,formularSponsoring:o}),4:()=>(0,g.jsx)(V,{callback:c,formSendError:r}),0:()=>(0,g.jsx)(V,{callback:c,formSendError:r}),9:()=>(0,g.jsx)(H,{}),default:()=>!1};return(e[t]||e.default)()})()})})})})})})]})}},77282:(e,a,t)=>{t.d(a,{T:()=>r});var n=t(72505),i=t.n(n);const s="/umbraco/api/validationapi/getvalidation";const r=new class{constructor(){this.fetchValidationServer=e=>{const a=`${s}?modelName=${e}`;return i().get(a).then((e=>this.resolveValidation(e.data))).catch((e=>{throw e}))},this.resolveValidation=e=>Promise.resolve(e),this.validationServerAsync=async e=>{try{return await i().get(`${s}?modelName=${e}`)}catch(a){return a.response}}}}},96904:(e,a,t)=>{t.d(a,{A:()=>o});var n=t(96540),i=t(65048),s=t(77007),r=t(53547),l=t(74848);class o extends n.Component{constructor(e){super(e),this.handleChange=e=>{this.setState({touched:!0}),e.target.name=this.props.name,this.props.handleChange(e)},this.state={touched:!1},this.handleChange=this.handleChange.bind(this)}render(){var e;const{split:a,options:t,label:n,validation:o,globalValidation:d,errors:c}=this.props,h=(this.props.globalValidation||this.state.touched)&&this.props.errors&&this.props.errors.length>0,m=this.props.id||this.props.name,u=`${m}-error`,p=a?{width:100/(null!==(e=null===t||void 0===t?void 0:t.length)&&void 0!==e?e:1)+"%"}:void 0;return(0,l.jsxs)("div",{className:"radio-container",children:[(0,l.jsxs)("fieldset",{className:"field-group "+(this.props.marginStyles?"radio-group--margin":""),role:"radiogroup",children:[n&&(0,l.jsx)("legend",{className:`${r.I.markAsRequired(m,o)} ${this.props.tooltipDescription?"legendWithTooltip":""}`,children:n}),this.props.tooltipDescription&&(0,l.jsx)(s.A,{content:this.props.tooltipDescription,className:"tooltip--left tooltip--bottom"}),(0,l.jsx)("div",{id:m,className:"radio-group "+(!0===this.props.displayHorizontal?"":"radio-group--inline"),"aria-describedby":h?u:void 0,children:null===t||void 0===t?void 0:t.map((e=>{const a=`${m}-${e.value}`;return(0,l.jsxs)("div",{className:`radio ${r.I.markAsError(d||this.state.touched,c)}`,style:p,children:[(0,l.jsx)("input",{id:a,name:this.props.name,value:e.value,type:"radio",checked:this.props.value===e.value,onChange:this.handleChange,disabled:this.props.disabled}),(0,l.jsx)("label",{htmlFor:a,className:"icon",children:void 0!==e.text?e.text:e.value}),e.info&&(0,l.jsx)(s.A,{content:e.info,className:"tooltip--bottom tooltip--right"})]},a)}))})]}),(0,l.jsx)(i.A,{errorId:u,error:c,show:d||this.state.touched})]})}}},99879:(e,a,t)=>{t.d(a,{A:()=>n});
1class n{static newGuid(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replaceAll(/[xy]/g,(e=>{const a=Math.trunc(16*Math.random());return("x"==e?a:3&a|8).toString(16)}))}static get empty(){return"00000000-0000-0000-0000-000000000000"}static isValid(e){return/^[\da-f]{8}-[\da-f]{4}-[1-5][\da-f]{3}-[89ab][\da-f]{3}-[\da-f]{12}$/i.test(e)}}}}]);
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.