PageSourceSearch

https://www.lew-sc.de/dist/client/276092163e6.chunk.js

js lew-sc.de collected 2026-10-07 23:45:36 UTC 97,007 bytes, 1 lines download raw bytes

1"use strict";(self["webpackJsonp[chunkhash]´"]=self["webpackJsonp[chunkhash]´"]||[]).push([[276],{2277:(e,n,t)=>{t.d(n,{A:()=>i});const i={headline:"Anfrage Strombelieferung",subheadline:"Kontaktieren Sie uns unverbindlich zu Strombelieferung",requiredInput:"Die mit einem * gekennzeichneten Felder müssen ausgefüllt werden.",successTitle:"Vielen Dank für Ihre Anfrage!",successContent:"Wir bedanken uns für die Anfrage und werden diese nun prüfen.",errorTitle:"Es ist ein Fehler aufgetreten.",errorContent:"Das Formular konnte nicht gesendet werden. Bitte versuchen Sie es nochmal.",deliverypointHeadline:"Angaben zur Lieferstelle",contactHeadline:"Kontaktdaten",labelVerbrauch:"Verbrauch (kWh/Jahr)",labelLoadProfileUpload:"Unterlagen hochladen (.csv)",labelBillUpload:"Unterlagen hochladen (.pdf, .jpg, .png)",uploadHeadline:"Upload-Möglichkeit Lastgang",labelEmail:"E-Mail-Adresse",labelPhone:"Telefonnummer (bei Rückfragen)",labelCommnent:"Kommentar",sendButton:"Jetzt Angebot anfragen",addNewDeliveryPlace:"Lieferstelle hinzufügen",removeDeliveryPlace:"Entfernen",labelPagesLimit:"(Nur maximal 8 Seiten werden angezeigt)",tooltipLoadProfile:"Ihr Lastprofil erhalten Sie bei Ihrem derzeitigen Lieferanten oder Netzbetreiber.",deliveryPlaceLimitInfo:"Bitte beachten Sie, dass bei mehr als drei Lieferstellen eine erneute Anfrage mit den weiteren Lieferstellen erforderlich ist. Wir danken Ihnen für Ihr Verständnis.",gtagFormName:"form_submit_b2b_Strombelieferung"}},5401:(e,n,t)=>{let i,a;t.d(n,{G:()=>i,R:()=>a}),function(e){e.NEUANSCHLUSS="Neuanschluss",e.PORTIERUNG="Portierung"}(i||(i={})),function(e){e.KEINER="keiner",e["VERKüRZT"]="verkürzt",e["VOLLSTÄNDIG"]="vollständig"}(a||(a={}))},6266:(e,n,t)=>{let i;t.d(n,{c:()=>i}),function(e){e[e.notSet=0]="notSet",e[e.dsl=10]="dsl",e[e.highspeed=50]="highspeed",e[e.fibreOnly=51]="fibreOnly"}(i||(i={}))},25523:(e,n,t)=>{t.d(n,{o:()=>i});const i={requiredtext:"* Pflichtfelder sind mit einem Stern markiert",requiredField:"Pflichtfeld",successTitle:"Vielen Dank für Ihre Anfrage!",successContent:"Wir bedanken uns für die Anfrage und werden diese nun prüfen.<br /><br />",formSendErrorHeadline:"Es ist ein Fehler aufgetreten.",headline:"Anfrage Direktvermarktung",subheadline:"Kontaktieren Sie uns unverbindlich zu Direktvermarktung",headlineAnlagenType:"Wählen Sie Ihren Anlagentypen *",headlineInstalledCapacity:"Installierte Leistung Ihrer Anlage",headlinePredictedPowerInput:"Prognose Einspeisemenge",headlineLaunchDate:"Inbetriebnahme Ihrer Anlage",headlineCompensationType:"Ihre Vergütungsoption",headlineSolarLead:"Einspeiseprofil",headlineBiogasLead:"Anlageneigenschaften *",headlineCountBHKWType:"Anzahl BHKWs",headlineKwkLead:"Anlageneigenschaften *",headlineOthersLead:"Anlagentypen",labelButtonSend:"Jetzt senden",gtagFormName:"form_submit_b2b_DirectMarketing",labelStreet:"Straße und Hausnummer",labelHouseNumber:"Hausnummer, Zusatz",labelPostalCode:"PLZ",labelCity:"Ort",headlineContactInformation:"Kontaktdaten",labelDesiredResponses:"Bitte wählen Sie aus",labelCompanyName:"Unternehmen",labelFirstName:"Vorname",labelLastName:"Nachname",labelEmail:"E-Mail-Adresse",labelPhoneNumber:"Telefonnummer",labelMessage:"Ihre Nachricht an uns"}},35627:(e,n,t)=>{t.d(n,{y:()=>l});t(96540);var i=t(52594),a=t(74848);const l=e=>{let{children:n,backLabel:t,backLink:l,onClick:s}=e;return(0,a.jsxs)("nav",{"data-tpl":"bnv01","aria-label":t,children:[!l&&s?(0,a.jsxs)("button",{onClick:s,children:[(0,a.jsx)("i",{className:"icon icon-arrow_menu_down","aria-hidden":!0}),t]}):(0,a.jsx)(i.N_,{to:l,children:t}),n]})}},45048:(e,n,t)=>{let i;t.d(n,{c:()=>i}),function(e){e[e.Undefined=0]="Undefined",e[e.Puk=1]="Puk",e[e.Vectoring=2]="Vectoring",e[e.Highspeed=3]="Highspeed"}(i||(i={}))},46620:(e,n,t)=>{t.d(n,{p:()=>i});const i={requiredtext:"* Pflichtfelder sind mit einem Stern markiert",labelButtonSend:"Jetzt anfragen",successTitle:"Vielen Dank für Ihre Anfrage!",successText2:"Wir kümmern uns um Ihre Anfrage und melden uns zeitnah bei Ihnen.",successText:"Wir bedanken uns für die Anfrage und werden diese nun prüfen.",successButtonLink:"",formSendErrorHeadline:"Es ist ein Fehler aufgetreten.",formSendErrorText:"Die Daten konnten nicht gesendet werden. Bitte versuchen Sie es nochmal.",requiredField:"Pflichtfeld",headline:"Anfrage E-Mobility",subheadline:"Kontaktieren Sie uns unverbindlich zu E-Mobility",headlineEMobilityType:"Welches Thema interessiert Sie in Bezug auf E-Mobility?",labelInterestTopic:"Bitte wählen Sie aus *",labelChargeInfraCompany:"Ladeinfrastruktur für Unternehmen",gtagFormName:"form_submit_b2b_EMobility"}},50374:(e,n,t)=>{t.d(n,{F:()=>a});var i=t(72505);const a=t.n(i)().create();a.interceptors.request.use((e=>(e.headers.common["X-XSRF-TOKEN"]=(document.querySelectorAll("[name='__RequestVerificationToken']")[0]||{}).value,e.withCredentials=!0,e.baseURL="/umbraco/api",e)),(e=>e))},52594:(e,n,t)=>{t.d(n,{N_:()=>x});var i=t(15360);
1function a(e,n){return a=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},a(e,n)}function l(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,a(e,n)}var s=t(96540),r=t(8742);function o(){return o=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},o.apply(this,arguments)}function d(e,n){if(null==e)return{};var t,i,a={},l=Object.keys(e);for(i=0;i<l.length;i++)t=l[i],n.indexOf(t)>=0||(a[t]=e[t]);return a}var c=t(78997);s.Component;s.Component;var h=function(e,n){return"function"===typeof e?e(n):e},u=function(e,n){return"string"===typeof e?(0,r.yJ)(e,null,null,n):e},m=function(e){return e},p=s.forwardRef;"undefined"===typeof p&&(p=m);var v=p((function(e,n){var t=e.innerRef,i=e.navigate,a=e.onClick,l=d(e,["innerRef","navigate","onClick"]),r=l.target,c=o({},l,{onClick:function(e){try{a&&a(e)}catch(n){throw e.preventDefault(),n}e.defaultPrevented||0!==e.button||r&&"_self"!==r||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),i())}});return c.ref=m!==p&&n||t,s.createElement("a",c)}));var x=p((function(e,n){var t=e.component,a=void 0===t?v:t,l=e.replace,x=e.to,g=e.innerRef,f=d(e,["component","replace","to","innerRef"]);return s.createElement(i.XZ.Consumer,null,(function(e){e||(0,c.A)(!1);var t=e.history,i=u(h(x,e.location),e.location),d=i?t.createHref(i):"",v=o({},f,{href:d,navigate:function(){var n=h(x,e.location),i=(0,r.AO)(e.location)===(0,r.AO)(u(n));(l||i?t.replace:t.push)(n)}});return m!==p?v.ref=n||g:v.innerRef=g,s.createElement(a,v)}))})),g=function(e){return e},f=s.forwardRef;"undefined"===typeof f&&(f=g);f((function(e,n){var t=e["aria-current"],a=void 0===t?"page":t,l=e.activeClassName,r=void 0===l?"active":l,m=e.activeStyle,p=e.className,v=e.exact,b=e.isActive,j=e.location,N=e.sensitive,C=e.strict,y=e.style,k=e.to,A=e.innerRef,I=d(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return s.createElement(i.XZ.Consumer,null,(function(e){e||(0,c.A)(!1);var t=j||e.location,l=u(h(k,t),t),d=l.pathname,T=d&&d.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),P=T?(0,i.B6)(t.pathname,{path:T,exact:v,sensitive:N,strict:C}):null,O=!!(b?b(P,t):P),_="function"===typeof p?p(O):p,w="function"===typeof y?y(O):y;O&&(_=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return n.filter((function(e){return e})).join(" ")}(_,r),w=o({},w,m));var S=o({"aria-current":O&&a||null,className:_,style:w,to:l},I);return g!==f?S.ref=n||A:S.innerRef=A,s.createElement(x,S)}))}))},54722:(e,n,t)=>{t.d(n,{E:()=>a,W:()=>i});const i=(e,n,t)=>{var i,a;return null!==(i=null!==(a=(e[n]||{})[t])&&void 0!==a?a:e[t])&&void 0!==i?i:""},a=(e,n,t)=>{var i,a;return null!==(i=null!==(a=(e[n]||{})[t])&&void 0!==a?a:e[t])&&void 0!==i?i:""}},54779:(e,n,t)=>{t.d(n,{A:()=>r});var i=t(96540),a=t(65048),l=t(53547),s=t(74848);class r extends i.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,s.jsxs)("div",{className:`field-group textarea\n                ${l.I.markAsError(this.props.globalValidation?this.props.globalValidation:this.state.touched,this.props.errors)}`,children:[(0,s.jsx)("label",{htmlFor:this.props.name,className:l.I.markAsRequired(this.props.name,this.props.validation),children:this.props.label}),(0,s.jsxs)("label",{className:"form-control__container",children:[(0,s.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":l.I.isRequired(this.props.name,this.props.validation)}),(0,s.jsx)("div",{className:"form-control__btns"})]}),!!this.props.validation&&(0,s.jsx)(a.A,{error:this.props.errors,show:this.props.globalValidation?this.props.globalValidation:this.state.touched})]})}}},71094:(e,n,t)=>{t.r(n),t.d(n,{default:()=>ce});var i=t(96540),a=t(80083),l=t(38440),s=t(54722),r=t(54931),o=t(45367),d=t(94569),c=t(26332),h=t(45048),u=t(4971),m=t(8491),p=t(80478),v=t(55976),x=t(53547),g=t(65048),f=t(99879),b=t(74848);const j=e=>{var n;const t=`pc02_${f.A.newGuid()}`;(0,i.useEffect)((()=>{(0,m.og)(t,"selected")}),[]);return(0,b.jsxs)("div",{"data-tpl":"pc02",className:x.I.markAsError(e.isGlobalValidation,e.errors),children:[(0,b.jsxs)("header",{children:[e.headline&&(0,b.jsx)("h2",{className:"headline",children:e.headline}),(0,b.jsxs)("nav",{children:[(0,b.jsx)("button",{type:"button",onClick:()=>{(0,m.AP)(t)},title:"nach links",className:"link icon-arrow-left"}),(0,b.jsx)("button",{type:"button",onClick:()=>{(0,m.Oy)(t)},title:"nach rechts",className:"link icon-arrow-left arrow_right"})]})]}),(0,b.jsx)("ul",{className:"row justify-content-center",id:t,children:null===(n=e.products)||void 0===n?void 0:n.map((n=>{var t,i,a;
1const l=e.availableProductLimit&&e.availableProductLimit<n.productId,s=e.selectedProductIds.includes(n.id),r=[];for(const e of null!==(o=n.features)&&void 0!==o?o:[]){var o;r.push(...e.text.split("\n").filter((e=>""!==e)))}return(0,b.jsx)(v.A,{headline:n.headline,subheadline:n.subheadlines?n.subheadlines[0]:"",imageUrl:n.media?null===n||void 0===n?void 0:n.media[0]:"",imageAlt:"",imageCaption:"",footer:"",iconList:r,centred:!0,isProductLoaded:!0,isPreisCalculated:!0,header:"header",price:n.price,unit:n.priceDetail,detailLink:null===(t=n.link)||void 0===t?void 0:t.url,detailTitle:null===(i=n.link)||void 0===i?void 0:i.text,detailOpenInNewTab:null===(a=n.link)||void 0===a?void 0:a.openInNewTab,additionalLink:n.detailLink,additionalLinkTitle:"Produktdatenblatt",buttonText:s?e.selectedButtonText:e.selectButtonText,handleOrderClick:t=>{t.preventDefault(),!l&&e.handleSelectProduct(n.id)},bonus:0,bonusText:"",bonusInfoI:"",priceInfoI:n.infoIPrice,productFormId:n.id,isOrderPossible:!l,isPriceVisible:!0,hideBonusDigit:!1,className:`${s?"selected":""} ${l?"unavailable":""} ${e.className}`,headlineLinkDisabled:!0,displayPriceIfZero:n.value,zeroPriceText:e.zeroPriceText,tariffCategory:n.tariffCategory},n.id)}))}),e.errors&&e.isGlobalValidation&&(0,b.jsx)(g.A,{error:e.errors,show:!0})]})},N=e=>{var n;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("section",{"data-tpl":"grid-bas-01",className:"color-background-5",id:"router",children:(0,b.jsx)("div",{className:"container",children:(0,b.jsxs)("div",{className:"col-lg-12",children:[(0,b.jsx)("h2",{className:"headline centred_text",children:e.headline}),(0,b.jsx)("p",{className:"subheadline centred_text",children:e.subheadline})]})})}),(0,b.jsx)("section",{"data-tpl":"grid-bas-02",children:(0,b.jsx)("div",{className:"container "+(1!==e.countRouter?"routerOptionContainer":""),children:(0,b.jsx)(j,{products:null===(n=e.router)||void 0===n?void 0:n.map((e=>({id:e.id,name:e.title,headline:e.title,subheadlines:[e.subTitle],link:e.link,detailLink:e.detailLink,media:e.media,price:e.price,priceDetail:`/ ${e.paymentType}`,infoIPrice:e.infoIPrice,rabatt:0,features:[...e.shippingRate?[{text:`Versandkosten ${p.X9.format(e.shippingRate)} €`}]:[],...e.description?[{text:e.description}]:[]]}))),selectedProductIds:[e.selectedRouter],showSelectButtonBottom:!0,selectButtonText:"Auswählen",selectedButtonText:"Mein Produkt",deselectButtonText:"Abwählen",handleSelectProduct:e.handleSelectRouter,errors:e.errors,className:"highspeed-options",isGlobalValidation:e.isGlobalValidation,zeroPriceText:c.Constants.zeroPriceText})})})]})};let C,y;!function(e){e.monatlich="monatlich",e.einmalig="einmalig"}(C||(C={})),function(e){e.router="router",e.setTopBox="setTopBox",e.hdPaket="hdPaket",e.phone="phone",e.voiceChannel="sprachkanal",e.flatrate="flatrate",e.telephony="telefonie",e.vibreConnection="glasfaserhausanschluss",e.phoneBookEntry="telefonbucheintrag",e.discount="discount"}(y||(y={}));var k=t(11156),A=t(87451),I=t(88996),T=t(84525),P=t(5401);const O=e=>{let{selectedProduct:n,errors:t,validation:i,isGlobalValidation:a,value:l,handleChangeStaticIP:s}=e;return n.staticIP?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("section",{"data-tpl":"grid-bas-01",className:"color-background-5",id:"staticIP",children:(0,b.jsx)("div",{className:"container",children:(0,b.jsx)("div",{className:"col-lg-12",children:(0,b.jsx)("h2",{className:"headline centred_text",children:c.Constants.productOptions_staticIp_headline})})})}),(0,b.jsx)("section",{"data-tpl":"grid-bas-02",children:(0,b.jsx)("div",{className:"container",children:(0,b.jsx)("section",{"data-tpl":"grid-bas-03",children:(0,b.jsx)("div",{className:"container",children:(0,b.jsx)("div",{className:"row",children:(0,b.jsxs)("div",{className:"grid-content grid-content-1 col-md-6",children:[(0,b.jsx)(I.A,{name:"fixedIP",label:n.staticIP.title,handleChange:s,value:l,validation:i,errors:t,globalValidation:a,infoI:n.staticIP.infoIPrice}),(0,b.jsx)("div",{className:"row",children:(0,b.jsx)("p",{children:n.staticIP.description})})]})})})})})})]}):null},_=e=>({id:e.id,name:e.title,headline:e.title,subheadlines:[],link:e.link,detailLink:e.detailLink,media:e.media,price:e.price,priceDetail:`/ ${e.paymentType}`,infoIPrice:e.infoIPrice,rabatt:0,value:e.value,features:[...e.shippingRate?[{text:`Versandkosten ${p.X9.format(e.shippingRate)} €`}]:[],...e.description?[{text:e.description}]:[]]}),w=e=>Math.round(100*(e+Number.EPSILON))/100,S=e=>{let{selectedProduct:n,errors:t,isGlobalValidation:a,handleGlasfaserAnschlussChange:l,context:r,selectedOptions:o,location:d}=e;const h=(0,i.useMemo)((()=>{const e=n.options.filter((e=>e.type===y.vibreConnection&&e.details)),t=[];for(const n of e)for(const e of n.details.filter((e=>e.areaId===d.area||!e.value))){const n=_(e),i=(e.value?d.priceOfFibreToTheHome:e.price)/1.19;n.price=w(i),t.push(n)}return t}),[n,d]);return n.options.some((e=>e.type===y.vibreConnection&&e.details))?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("section",{"data-tpl":"grid-bas-01",className:"color-background-5",id:"glasfaserhausanschlussheadline",children:(0,b.jsx)("div",{className:"container",children:(0,b.jsx)("div",{className:"col-lg-12",children:(0,b.jsxs)("h2",{className:"headline centred_text",children:[" ",(0,s.W)(c.Constants,r,"productOptions_glasfaserAnschluss_headline")]})})})}),(0,b.jsx)("section",{"data-tpl":"grid-bas-02",children:(0,b.jsxs)("div",{className:"container",id:"glasfaserhausanschluss",children:[(0,b.jsx)("h3",{children:(0,s.W)(c.Constants,r,"productOptions_telefonie_glasfaserhausanschluss")}),(0,b.jsx)("section",{"data-tpl":"grid-bas-02",children:(0,b.jsx)("div",{className:"container",children:(0,b.jsx)("div",{className:"row",children:(0,b.jsx)("div",{className:"col-sm-12 col-md-12",children:(0,b.jsx)("div",{className:"container fibreOptionContainer",children:(0,b.jsx)(j,{products:h,selectedProductIds:o,showSelectButtonBottom:!0,selectButtonText:"Auswählen",selectedButtonText:"Mein Produkt",deselectButtonText:"Abwählen",handleSelectProduct:l,className:"highspeed-options",errors:t,isGlobalValidation:a,zeroPriceText:"0,00 €"})})})})})})]})})]}):null},R=e=>{let{selectedProduct:n,handleSelectTvOption:t,handleSelectProductOption:i,context:a,products:l,optionProducts:r,selectedOptions:o,selectedTvOption:d}=e;return n.tvOptionAvailable&&n.tvOption?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("section",{"data-tpl":"grid-bas-01",className:"color-background-5",id:"tv",children:(0,b.jsx)("div",{className:"container",children:(0,b.jsxs)("div",{className:"col-lg-12",children:[(0,b.jsxs)("h2",{className:"headline centred_text",children:[" ",(0,s.W)(c.Constants,a,"productOptions_tvPakete_headline")]}),(0,b.jsx)("p",{className:"subheadline centred_text",children:(0,s.W)(c.Constants,a,"productOptions_tvPakete_subheadline")})]})})}),(0,b.jsxs)("section",{"data-tpl":"grid-bas-02",children:[(0,b.jsx)("div",{className:"container tvOptionContainer",children:(0,b.jsx)(j,{products:l,selectedProductIds:[d],showSelectButtonBottom:!0,selectButtonText:"Auswählen",selectedButtonText:"Mein Produkt",deselectButtonText:"Abwählen",handleSelectProduct:t,isMultiselect:!0,className:"highspeed-options"})}),d&&(0,b.jsxs)("div",{className:"container tvZusatzpaketeContainer",children:[(0,b.jsx)("section",{"data-tpl":"grid-bas-01",className:"color-background-5",children:(0,b.jsx)("div",{className:"container",children:(0,b.jsx)("div",{className:"col-lg-12",children:(0,b.jsx)("h3",{className:"subheadline centred_text",children:c.Constants.productOptions_tvZusatzpakete})})})}),(0,b.jsx)(j,{products:r,selectedProductIds:o,showSelectButtonBottom:!0,selectButtonText:"Auswählen",selectedButtonText:"Mein Produkt",deselectButtonText:"Abwählen",handleSelectProduct:i,isMultiselect:!0,className:"highspeed-options"})]})]})]}):null};var V=t(60102),L=t(58247);const z=e=>{const[n,t]=(0,i.useState)(e.additionalPhoneNumbers>=1),[a,l]=(0,i.useState)(e.additionalPhoneNumbers>
1=2),r=Number(e.additionalPrice).toLocaleString("de",{minimumFractionDigits:2,maximumFractionDigits:2}),o=n=>{const{name:i,checked:s}=n.target;switch(i){case"additionalSecondPhoneNumberSelected":return s||l(!1),t(s),void e.handleAdditionalNumbers(s?1:0);case"additionalThirdPhoneNumberSelected":l(!a),e.handleAdditionalNumbers(s?2:1)}};return(0,b.jsx)("section",{"data-tpl":"grid-bas-02",children:(0,b.jsxs)("div",{className:"container",children:[(0,b.jsxs)("div",{className:"checkbox-group",children:[(0,b.jsx)("label",{htmlFor:"additionalSecondPhoneNumberSelected",children:(0,s.W)(c,e.context,"Constants.productOptions_telefonie_weitereNummern")}),(0,b.jsxs)("div",{className:"row ",children:[(0,b.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,b.jsxs)("div",{className:"checkbox",children:[(0,b.jsx)("input",{id:"additionalSecondPhoneNumberSelected",name:"additionalSecondPhoneNumberSelected",checked:n,type:"checkbox",onChange:o}),(0,b.jsx)("label",{htmlFor:"additionalSecondPhoneNumberSelected",className:"icon",children:(0,s.W)(c.Constants,e.context,"productOption_2ndPhoneNr")})]})}),n&&(0,b.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,b.jsxs)("div",{className:"checkbox",children:[(0,b.jsx)("input",{id:"additionalThirdPhoneNumberSelected",name:"additionalThirdPhoneNumberSelected",checked:a,type:"checkbox",onChange:o}),(0,b.jsx)("label",{htmlFor:"additionalThirdPhoneNumberSelected",className:"icon",children:(0,s.W)(c.Constants,e.context,"productOption_3rdPhoneNr")})]})})]})]}),e.maxAdditionalNumbers>0&&n&&a&&(0,b.jsx)("div",{className:"row",children:(0,b.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,b.jsx)(V.A,{name:"numberOfAdditionalPhoneNumbersWithCosts",label:0===e.additionalPrice?(0,s.W)(c.Constants,e.context,"productOption_zeroAdditionalPhoneNrs"):(0,s.W)(c.Constants,e.context,"productOption_additionalPhoneNrs").replace("{0}",r),handleChange:(n,t)=>{e.handleAdditionalNumbers(parseInt(t)+2)},value:(e.additionalPhoneNumbers-2).toString(),validation:{},errors:{},options:Array.from({length:e.maxAdditionalNumbers+1}).map(((e,n)=>({value:`${n}`,text:`${n}`})))})})}),e.additionalPriceDescription&&(0,b.jsx)("h5",{children:e.additionalPriceDescription})]})})};var E=t(6266);const W=e=>{var n;let{isGk:t,selectedProduct:a,context:l,selectedOptions:r,validation:o,isGlobalValidation:d,hasSprachkanalselectedPK:h,errors:u,handleTelephonyOptionChange:m,handleSprachkanalChange:p,handleFlatrateChange:v,handleConnectionChange:x,automaticGenericChange:g,manualGenericChange:f,handlePhoneNumberChange:N,handleTelefonbucheintragChange:C,handleInternetOnlyChange:k,input:A}=e;const T=`${l}_${a.productType===E.c.highspeed?"highspeed":""}`,{price:O,internetOnlyDiscount:w}=(null===(n=a.options.find((e=>e.type===y.telephony&&e.details)))||void 0===n?void 0:n.details[0])||{},S=(0,i.useMemo)((()=>a.options.filter((e=>e.type===y.telephony&&e.details)).map((e=>e.details)).some((e=>e.some((e=>r.includes(e.id)&&e.value))))),[a,r]),R=a.options.filter((e=>e.type===y.telephony&&e.details)).map((e=>e.details)).some((e=>e.some((e=>r.includes(e.id)&&"-"!==e.technischerProduktname)))),W=(0,i.useMemo)((()=>a.options.some((e=>e.type===y.flatrate&&e.details))&&R&&t),[a,R,t]),G=a.options.some((e=>e.type===y.flatrate&&e.details))&&!t,M=(0,i.useMemo)((()=>a.options.filter((e=>e.type===y.phoneBookEntry&&e.details)).map((e=>e.details)).length>0),[a]),F=(0,i.useMemo)((()=>{var e,n,t,i,l,s;return null===(e=null!==(t=null===a||void 0===a||null===(i=a.options)||void 0===i||null===(l=i.filter((e=>e.type===y.voiceChannel&&e.details)))||void 0===l||null===(s=l.map((e=>e.details)))||void 0===s?void 0:s.find((e=>e.some((e=>r.includes(e.id))))))&&void 0!==t?t:[])||void 0===e||null===(n=e.find((e=>r.includes(e.id))))||void 0===n?void 0:n.id}),[a,r]),B=(0,i.useMemo)((()=>{var e;return null===(e=a.options.find((e=>e.type===y.voiceChannel&&e.details)))||void 0===e?void 0:e.details.map((e=>({value:e.id,text:e.title})))}),[a]),D=[{value:"keiner",text:(0,s.W)(c.Constants,l,"productOptions_keiner")},{value:(0,s.W)(c.Constants,l,"productOptions_verkuerzt"),text:(0,s.W)(c.Constants,l,"productOptions_verkuerzt_text")},{value:(0,s.W)(c.Constants,l,"productOptions_einzelverbindung_voll"),text:(0,s.W)(c.Constants,l,"productOptions_einzelverbindung_voll_text")}],q=[{value:P.G.NEUANSCHLUSS,text:"Neue Rufnummer(n)"},{value:P.G.PORTIERUNG,text:"Portierung der bisherigen Rufnummer(n) und Kündigung des bisherigen Anschlusses"}],H=(0,i.useMemo)((()=>{const e=a.options.filter((e=>e.type===y.telephony&&e.details)),n=[];for(const t of e)for(const e of t.details)n.push(_(e));return n}),[a]);const $=e=>t?(0,b.jsx)("h3",{children:(0,s.W)(c.Constants,l,e)}):(0,b.jsx)("section",{"data-tpl":"grid-bas-01",className:"color-background-5",children:(0,b.jsx)("div",{className:"container",children:(0,b.jsx)("div",{className:"col-lg-12",children:(0,b.jsx)("h2",{className:"headline centred_text",children:(0,s.W)(c.Constants,T,e)})})})});return a.additionalPhoneNumbers||t?(0,b.jsxs)(b.Fragment,{children:[t&&(0,b.jsx)("section",{"data-tpl":"grid-bas-01",className:"color-background-5",children:(0,b.jsx)("div",{className:"container",children:(0,b.jsx)("div",{className:"col-lg-12",children:(0,b.jsxs)("h2",{className:"headline centred_text",children:[" ",(0,s.W)(c.Constants,l,"productOptions_telefonie_headline")]})})})}),!!w&&(0,b.jsxs)(b.Fragment,{children:[!t&&(0,b.jsx)("section",{"data-tpl":"grid-bas-01",className:"color-background-5",children:(0,b.jsx)("div",{className:"container",children:(0,b.jsx)("div",{className:"col-lg-12",children:(0,b.jsxs)("h2",{className:"headline centred_text",children:[" ",(0,s.W)(c.Constants,l,"productOptions_internetOnly_headline")]})})})}),(0,b.jsx)("section",{"data-tpl":"grid-bas-03",children:(0,b.jsx)("div",{className:"container",children:(0,b.jsx)("div",{className:"row",children:(0,b.jsx)("p",{children:(0,s.W)(c.Constants,l,"productOptions_internetOnly_subheadline")})})})}),(0,b.jsx)("section",{"data-tpl":"grid-bas-03",children:(0,b.jsx)("div",{className:"container",children:(0,b.jsx)("div",{className:"row",children:(0,b.jsx)("div",{className:"grid-content grid-content-1 col-md-6",children:(0,b.jsx)(I.A,{name:"internetOnly",handleChange:k,label:(0,s.W)(c.Constants,l,"productOptions_internetOnly"),value:A.internetOnly,validation:o,globalValidation:d,errors:u,infoI:(0,s.W)(c.Constants,l,"productOptions_internetOnly_info")})})})})})]}),!A.internetOnly&&(0,b.jsxs)(b.Fragment,{children:[!!t&&(0,b.jsx)("section",{"data-tpl":"grid-bas-02",id:"telephonyProducts",children:(0,b.jsx)("div",{className:"container phoneOptionContainer",children:(0,b.jsx)(j,{products:H,selectedProductIds:r,showSelectButtonBottom:!0,selectButtonText:"Auswählen",selectedButtonText:"Mein Produkt",deselectButtonText:"Abwählen",handleSelectProduct:m,className:"highspeed-options"})})}),!(!a.options.some((e=>e.type===y.voiceChannel&&e.details))||!(S&&t&&R)&&t)&&(0,b.jsx)("section",{"data-tpl":t&&"grid-bas-02",children:(0,b.jsxs)("div",{className:"container",children:[$("productOptions_telefonie_sprachkanaele"),(0,b.jsx)("section",{"data-tpl":"grid-bas-03",children:(0,b.jsxs)("div",{className:"container",children:[(0,b.jsx)("div",{className:"row",id:"sprachkanaele",children:(0,b.jsx)("div",{className:"grid-content grid-content-1 col-md-6",children:(0,b.jsx)(V.A,{name:"sprachkanaele",label:(0,s.W)(c.Constants,T,"productOptions_sprachkanal_kopf"),handleChange:p,value:F,validation:o,errors:u,isGloablValidation:d,options:B})})}),(0,b.jsx)("div",{className:"row",children:(0,b.jsx)("p",{children:(0,s.W)(c.Constants,T,"productOptions_telefonie_flatrate_info")})})]})})]})}),!(!t||!R)&&(0,b.jsx)("section",{"data-tpl":"grid-bas-01",className:"color-background-5",id:"telefon",children:(0,b.jsx)("div",{className:"container",children:(0,b.jsx)("div",{className:"col-lg-12",children:(0,b.jsx)("h2",{className:"headline centred_text",children:(0,s.W)(c.Constants,l,"productOptions_telefonieoptionen_headline")})})})}),(!!W||!!G)&&(0,b.jsx)("section",{"data-tpl":t&&"grid-bas-02",children:(0,b.jsxs)("div",{className:"container",children:[$("productOptions_telefonie_flatrate"),(0,b.jsx)("section",{"data-tpl":"grid-bas-03",children:(0,b.jsx)("div",{className:"container",children:(0,b.jsx)("div",{className:"row",children:(0,b.jsx)("div",{className:"grid-content grid-content-1 col-md-6",children:(()=>{const e=[];for(const n of a.options.filter((e=>e.type===y.flatrate&&e.details)).map((e=>e.details)))n.forEach((n=>{e.push((0,b.jsx)(I.A,{name:`flatrate${n.id}`,handleChange:e=>
1v(n,e),label:n.title,value:r.includes(n.id),validation:o,globalValidation:d,errors:u,disabled:!t&&h}),(0,b.jsx)("br",{}))}));return e})()})})})})]})}),!!(a.additionalPhoneNumbers&&!t||t&&R)&&(0,b.jsxs)(b.Fragment,{children:[!t&&(0,b.jsx)("section",{"data-tpl":"grid-bas-01",className:"color-background-5",children:(0,b.jsx)("div",{className:"container",children:(0,b.jsx)("div",{className:"col-lg-12",children:(0,b.jsxs)("h2",{className:"headline centred_text",children:[" ",(0,s.W)(c.Constants,l,"productOptions_phoneNr_takeover_headline")]})})})}),(0,b.jsx)("section",{"data-tpl":"grid-bas-02",children:(0,b.jsx)("div",{className:"container",children:(0,b.jsx)("section",{"data-tpl":"grid-bas-03",children:(0,b.jsxs)("div",{className:"container",children:[(0,b.jsx)("div",{className:"row",children:(0,b.jsx)("div",{className:"grid-content grid-content-1 col-md-6",children:(0,b.jsx)(V.A,{name:"telefonTyp",label:(0,s.W)(c.Constants,l,"productOptions_telefonie_kopf"),handleChange:x,value:A.telefonTyp.toString(),validation:o,errors:u,isGloablValidation:d,options:q})})}),(0,b.jsxs)("div",{className:"row",children:[A.telefonTyp===P.G.NEUANSCHLUSS&&(0,b.jsx)("p",{children:(0,s.W)(c.Constants,l,"productOptions_telefonie_neuanschlussText")}),A.telefonTyp===P.G.PORTIERUNG&&(0,b.jsx)("p",{children:(0,s.W)(c.Constants,l,"productOptions_telefonie_portierungText")}),A.telefonTyp===P.G.PORTIERUNG&&t&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("br",{}),(0,b.jsx)("div",{className:"grid-content grid-content-1 col-md-6",children:(0,b.jsx)(L.A,{name:"oldProvider",label:"Aktueller Anbieter",handleChange:g,value:A.oldProvider,validation:o})}),(0,b.jsx)("div",{className:"grid-content grid-content-1 col-md-6",children:(0,b.jsx)(V.A,{name:"vorherigerAnschluss",label:"Vorheriger Anschluss",handleChange:e=>f("vorherigerAnschluss",e),value:A.vorherigerAnschluss,validation:o,errors:u,options:[{text:"ISDN-MSN",value:"ISDN-MSN"},{text:"ISDN-Anlagen",value:"ISDN-Anlagen"},{text:"ISDN-PMX",value:"ISDN-PMX"},{text:"SIP-MSN",value:"SIP-MSN"},{text:"SIP-Trunk",value:"SIP-Trunk"}]})})]})]})]})})})}),!t&&(0,b.jsx)("section",{"data-tpl":"grid-bas-01",className:"color-background-5",children:(0,b.jsx)("div",{className:"container",children:(0,b.jsx)("div",{className:"col-lg-12",children:(0,b.jsxs)("h2",{className:"headline centred_text",children:[" ",(0,s.W)(c.Constants,l,"productOption_phoneNr_headline")]})})})}),(0,b.jsx)("section",{"data-tpl":"grid-bas-02",children:(0,b.jsx)("div",{className:"container",children:function(){if(t&&(A.telefonTyp===P.G.PORTIERUNG||S))return;if(!t)return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("p",{children:(0,s.W)(c.Constants,l,"productOptions_telefonie_weitereNummernText")}),(0,b.jsx)(z,{maxAdditionalNumbers:a.additionalPhoneNumbers-2,additionalPhoneNumbers:A.telefonAnzahl-1,handleAdditionalNumbers:e=>N(e+1),context:l,additionalPrice:O})]});const e=[];for(let n=1;n<a.additionalPhoneNumbers;n++){const t=n+1;e.push({value:t.toString(),text:`${t.toString()} Telefonnummern`})}return(0,b.jsxs)("div",{className:"row",children:[(0,b.jsx)("h5",{children:(0,s.W)(c.Constants,l,"productOptions_telefonie_weitereNummernText")}),(0,b.jsx)("div",{className:"grid-content grid-content-1 col-md-6",children:(0,b.jsx)(V.A,{name:"telefonAnzahl",label:"Anzahl Telefonnummern",handleChange:e=>N(Number(e)),value:A.telefonAnzahl.toString(),validation:o,isGloablValidation:d,errors:u,options:e})})]})}()})}),(0,b.jsx)("section",{"data-tpl":"grid-bas-01",className:"color-background-5",children:(0,b.jsx)("div",{className:"container",children:(0,b.jsx)("div",{className:"col-lg-12",children:(0,b.jsxs)("h2",{className:"headline centred_text",children:[" ",(0,s.W)(c.Constants,l,"productOptions_einzelverbindung_headline")]})})})}),(0,b.jsx)("section",{"data-tpl":"grid-bas-02",children:(0,b.jsx)("div",{className:"container",children:(0,b.jsx)("section",{"data-tpl":"grid-bas-02",children:(0,b.jsxs)("div",{className:"container",children:[(0,b.jsxs)("div",{className:"row",children:[(0,b.jsx)("div",{className:"grid-content grid-content-1 col-md-6",children:(0,b.jsx)(V.A,{name:"einzelverbindungsnachweis",label:(0,s.W)(c.Constants,l,"productOptions_einzelverbindung"),handleChange:e=>f("einzelverbindungsnachweis",e),value:A.einzelverbindungsnachweis,validation:o,errors:u,isGloablValidation:d,options:D})}),(0,b.jsx)("div",{className:"grid-content grid-content-2 col-md-6"})]}),(0,b.jsx)("div",{className:"row",children:(0,b.jsx)("div",{className:"col-xs-12 col-sm-12 col-md-12",children:(A.einzelverbindungsnachweis===(0,s.W)(c.Constants,l,"productOptions_verkuerzt")||A.einzelverbindungsnachweis===(0,s.W)(c.Constants,l,"productOptions_einzelverbindung_voll"))&&(0,b.jsx)("h5",{children:(0,s.W)(c.Constants,l,"productOptions_einzelverbindung_text")})})})]})})})}),!!a.options.some((e=>e.type===y.phoneBookEntry&&e.details))&&(0,b.jsx)("section",{"data-tpl":"grid-bas-02",children:(0,b.jsxs)("div",{className:"container",children:[(0,b.jsx)("h3",{children:(0,s.W)(c.Constants,l,"productOptions_telefonbuch_headline")}),(0,b.jsx)("section",{"data-tpl":"grid-bas-03",children:(0,b.jsx)("div",{className:"container",children:(0,b.jsxs)("div",{className:"row",children:[(0,b.jsxs)("div",{className:"grid-content grid-content-1 col-md-6",children:[(0,b.jsx)(V.A,{name:"telefonbucheintrag",label:"Telefonbucheintrag",handleChange:e=>f("telefonbucheintrag",e),value:A.telefonbucheintrag,validation:o,errors:u,isGloablValidation:d,options:[{text:"verkürzt",value:"verkürzt"},{text:"komplett",value:"komplett"},{text:"kein Eintrag ins Telefonbuch",value:"keiner"}]}),(0,b.jsx)("div",{children:(0,b.jsx)("br",{})}),M&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("h5",{children:(0,s.W)(c.Constants,l,"productOptions_telefonbuch_inverstext")}),(0,b.jsx)("br",{})]})]}),(0,b.jsxs)("div",{className:"grid-content grid-content-1 col-md-6",children:[(0,b.jsx)("div",{children:(0,b.jsx)("br",{})}),function(){const e=[];for(const n of a.options.filter((e=>e.type===y.phoneBookEntry&&e.details)).map((e=>e.details)))n.forEach((n=>{e.push((0,b.jsx)(I.A,{name:`telefonbucheintrag${n.id}`,handleChange:e=>
1C(n,e),label:n.title,value:r.includes(n.id),validation:o,globalValidation:d,errors:u}))}));return e}()]})]})})})]})}),!(!t||!S)&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(I.A,{name:"clipNoScreening",handleChange:g,label:(0,s.W)(c.Constants,l,"productOption_ClipNoScreening"),value:A.clipNoScreening,validation:o,globalValidation:d,errors:u}),(0,b.jsx)(L.A,{name:"telephoneStationManufacturer",label:"Typ/Hersteller Telefonanlage",handleChange:g,value:A.telephoneStationManufacturer,validation:o})]})]})]})]}):null},G=e=>(0,b.jsx)("section",{"data-tpl":"grid-bas-01",className:"color-background-5",id:"internet-products",children:(0,b.jsx)("div",{className:"container",children:(0,b.jsxs)("div",{className:"col-lg-12",children:[(0,b.jsx)("h2",{className:"headline centred_text",style:{fontSize:"1.4rem"},children:c.Constants.productOptions_produkte_headline}),(0,b.jsx)("h2",{className:"headline centred_text color-font-4",style:{fontSize:"1.7rem"},children:e.selectedProduct.overviewInfo.title})]})})}),M=e=>{const n=(0,i.useContext)(r.InstanceContext),t=`${n}${e.isGk?"_gk":""}`,l=(0,a.d4)((e=>e.homeInternet.order.orderstepone)),v=(0,a.d4)((e=>e.homeInternet.selectedProduct)),x=(0,a.d4)((e=>e.homeInternet.availabilityResult.orderId)),[g,f]=(0,i.useReducer)(((e,n)=>({...e,...n})),{...l,umbNodeProductId:v.id,product:v.name,technischerProduktname:`${v.productId}`,id:x,inverssuche:!!e.isGk,isGk:e.isGk,hwRouter:(()=>{var e;return null!==v&&void 0!==v&&null!==(e=v.options)&&void 0!==e&&e.find((e=>{var n;return e.type===y.router&&((null===(n=e.details)||void 0===n?void 0:n.length)||0)>0}))?l.hwRouter:c.Constants.no_router})(),fixedIP:v.containsFixedIpAddress}),[j,C,_,w]=(0,d.A)("Ping.Models.OrderStepOne",g),V=(0,a.d4)((e=>e.homeInternet.selectedRouter)),L=(0,a.d4)((e=>e.homeInternet.selectedTvOption)),z=(0,a.d4)((e=>e.homeInternet.selectedOptions)),E=(0,a.d4)((e=>e.homeInternet.indicators.isError)),M=(0,a.d4)((e=>e.homeInternet.indicators.isLoading)),F=((0,a.d4)((e=>e.homeInternet.indicators.isAutoSelectedProduct)),(0,a.d4)((e=>e.homeInternet.products))),B=((0,a.d4)((e=>e.homeInternet.availabilityResult.productMaxBandwidth)),(0,a.d4)((e=>e.homeInternet.availabilityResult.productType))),D=(0,a.wA)(),q=(0,a.d4)((e=>e.homeInternet.location)),[H,$]=(0,i.useState)(z),[K,U]=(0,i.useState)({}),[Z,X]=(0,i.useState)(0),[J,Q]=(0,i.useState)(!1),[Y,ee]=(0,i.useState)(z.some((e=>{var n;return null===(n=v.options.find((e=>e.type===y.voiceChannel&&e.details)))||void 0===n?void 0:n.details.some((n=>n.id===e&&n.count>0))})));(0,i.useEffect)((()=>{var e;setTimeout((()=>{(0,m.ib)("orderLineNavigation")}),50);const n={id:v.id,name:v.name,quantity:1,price:v.price.toString()};T.A.OnCheckout([n],1);const t=(null===(e=v.options.find((e=>e.type===y.router&&e.details)))||void 0===e?void 0:e.details)||[];1===t.length&&oe(t[0].id,!1),X(t.length)}),[]),(0,i.useEffect)((()=>{J&&((0,m.Pq)("error-block"),Q(!1))}),[j.hwRouter,m.Pq]),(0,i.useEffect)((()=>{K.handleNext&&ce()}),[K.handleNext]),(0,i.useEffect)((()=>{if(!e.isGk&&v.options.some((e=>e.type===y.voiceChannel&&e.details)))if(Y){const e={target:{checked:!1}};for(const n of v.options.filter((e=>e.type===y.flatrate&&e.details)).map((e=>e.details)))n.forEach((n=>{ae(n,e)}))}else{var n,t;const e=null===(n=v.options.find((e=>e.type===y.voiceChannel&&e.details)))||void 0===n||null===(t=n.details.find((e=>0===e.count)))||void 0===t?void 0:t.id;e&&ie(e)}}),[Y]);const ne=e=>{const n="checkbox"===e.target.type?e.target.checked:e.target.value;f({[e.target.name]:n})},te=(e,n)=>{f({[e]:n})},ie=e=>{var n,t;re(e,y.voiceChannel);const i=null===(n=v.options.find((e=>e.type===y.voiceChannel&&e.details)))||void 0===n?void 0:n.details.find((n=>n.id===e)),a=null===(t=v.options.find((e=>e.type===y.telephony&&e.details)))||void 0===t?void 0:t.details.find((e=>H.includes(e.id)));f({voiceChannelCount:i.count,amountSipTrunkMonthly:le(a,i)}),ee(0!==i.count)},ae=(e,n)=>{const t=n.target.checked;if($(t?[...H,e.id]:H.filter((n=>n!==e.id))),!e.jsonPropertyName||0===e.jsonPropertyName.length)throw new Error("JsonProperty on flatrate unset");f({[e.jsonPropertyName]:t})},le=(e,n)=>{var t,i,a,l;const s=null===(t=v.options.find((e=>e.type===y.voiceChannel&&e.details)))||void 0===t?void 0:t.details.find((e=>z.includes(e.id)));return(null!==(i=null===e||void 0===e?void 0:e.price)&&void 0!==i?i:0)+(null!==(a=null===(l=null!==n&&void 0!==n?n:s)||void 0===l?void 0:l.price)&&void 0!==a?a:0)},se=e=>{$((e=>{const n=new Set([y.voiceChannel,y.phone,y.phoneBookEntry,y.flatrate]),t=[];for(const i of e){let e;for(const n of v.options.filter((e=>e.details))){const t=n.details;for(const n of t)n.id===i&&(e=n)}e&&!n.has(e.optionType)&&t.push(e.id)}return t})(e)),f((()=>{const e=["voiceChannelCount","oldProvider","vorherigerAnschluss","telefonbucheintrag","telProduct","telEinrichtungskosten","telephoneStationManufacturer","clipNoScreening","telefonbucheintragElektronisch","telefonbucheintragAuskunft","telefonbucheintragPrint","flatrateMobileGermany","flatrateLandlineGermany","amountSipTrunkMonthly"],n={...g};n.telefonAnzahl=1;for(const t of e)n[t]=null;return n})())},re=function(e,n){var t;let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const a=[];for(const[l,s]of H.entries()){let e=!1;
1for(const t of v.options.filter((e=>e.type===n)))t.details.some((e=>e.id===s))&&(e=!0);e||a.push(s)}return null===(t=v.options)||void 0===t||t.forEach((n=>{var t;null===(t=n.details)||void 0===t||t.forEach((n=>{n.id!==e||i||a.push(e)}))})),$(a),a},oe=function(e){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const t=v.options.filter((e=>e.details)).map((n=>n.details.find((n=>n.id===e))))[0];if(f({hwRouter:(null===t||void 0===t?void 0:t.alternateTitle)||(null===t||void 0===t?void 0:t.title)}),U({noRouter:t.noRouter}),D((0,u.rV)(e)),document.querySelector("#tv"))return(0,m.ib)("tv");n&&(0,m.ib)("telefon")},de=e=>{e?U({handleNext:!0}):(U({...K,showModal:!1}),(0,m.ib)("routerSection"))},ce=()=>{if(!w())return Q(!0);K.noRouter?((0,m.eG)(),U({...K,showModal:!0})):(D((0,u.o8)(H)),D((0,k.r7)(x,g,2)))},he=e.isGk&&q.productType===h.c.Highspeed&&v.options.some((e=>{var n;return e.type===y.discount&&0===((null===(n=e.details)||void 0===n?void 0:n.length)||0)})),ue=((0,i.useMemo)((()=>F.data.map((e=>{var n,t;return{id:e.id,productId:e.productId,name:e.name,headline:e.overviewInfo.title,subheadlines:[],link:void 0,media:[e.overviewInfo.imageUrl],price:e.price,priceDetail:"/ monatlich",infoIPrice:e.infoIPrice,rabatt:0,features:[...null===(n=e.overviewInfo)||void 0===n||null===(t=n.iconlist)||void 0===t?void 0:t.map((e=>({text:e})))]}}))),[F]),(0,i.useMemo)((()=>[{id:v.tvOption.id,name:v.tvOption.title,headline:v.tvOption.title,subheadlines:[],link:v.tvOption.link,detailLink:v.tvOption.detailLink,media:v.tvOption.media,price:v.tvOption.price,priceDetail:`/ ${v.tvOption.paymentType}`,infoIPrice:v.tvOption.infoIPrice,rabatt:0,features:[...v.tvOption.shippingRate?[{text:`Versandkosten ${p.X9.format(v.tvOption.shippingRate)} €`}]:[],...v.tvOption.description?[{text:v.tvOption.description}]:[]]}]),[v])),me=(0,i.useMemo)((()=>{var e,n;return null!==(e=null===(n=v.tvOptions)||void 0===n?void 0:n.map((e=>({id:e.id,name:e.title,headline:e.title,subheadlines:[],link:e.link,detailLink:e.detailLink,media:e.media,price:e.price,priceDetail:`/ ${e.paymentType}`,infoIPrice:e.infoIPrice,rabatt:0,features:[...e.shippingRate?[{text:`Versandkosten ${p.X9.format(e.shippingRate)} €`}]:[],...e.description?[{text:e.description}]:[]]}))))&&void 0!==e?e:[]}),[v]);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{id:"cForm","data-tpl":"form-v2","data-module":"form-v2","data-module-config":"",children:(0,b.jsxs)("form",{id:"homeInternetOrderStepOne",children:[(0,b.jsx)("div",{className:"row",children:(0,b.jsxs)("div",{className:"col-sm-12 col-md-12 text-right",children:[(0,b.jsx)("br",{}),(0,b.jsx)("p",{children:(0,b.jsx)("small",{className:"requiredText",children:(0,s.W)(c.Constants,n,"productOption_sternPflichtfeld")})})]})}),(0,b.jsx)("br",{}),(0,b.jsx)(G,{selectedProduct:v}),(0,b.jsx)("section",{"data-tpl":"grid-bas-04",children:!!he&&(0,b.jsx)(I.A,{name:"laufzeitVerkuerzung",handleChange:ne,label:(0,s.W)(c.Constants,t,"product_laufzeitverkuerzung"),value:g.laufzeitVerkuerzung,validation:C,globalValidation:_,errors:j})}),(0,b.jsx)(O,{selectedProduct:v,handleChangeStaticIP:e=>{$(H.includes(v.staticIP.id)?H.filter((e=>e!==v.staticIP.id)):[...H,v.staticIP.id]),f({[e.target.name]:e.target.checked}),(0,m.ib)("router")},value:g.fixedIP,validation:C,isGlobalValidation:_,errors:j}),(0,b.jsx)(S,{errors:j.glasfaserHausanschluss,selectedProduct:v,isGlobalValidation:_,context:t,handleGlasfaserAnschlussChange:e=>{var n;re(e,y.vibreConnection);const t=null===(n=v.options.find((e=>e.type===y.vibreConnection&&e.details)))||void 0===n?void 0:n.details.find((n=>n.id===e)).value;f({glasfaserHausanschlussId:e,hasFibreToTheHome:!t})},selectedOptions:H,location:q}),(0,b.jsx)("section",{id:"routerSection",children:v.options.filter((e=>{var n;return e.type===y.router&&((null===(n=e.details)||void 0===n?void 0:n.length)||0)>0})).map(((e,n)=>(0,b.jsx)(N,{headline:(0,s.W)(c.Constants,t,"productOptions_Router_section_headline"),subheadline:(0,s.W)(c.Constants,t,"productOptions_Router_section_subheadline"),handleSelectRouter:oe,router:e.details,selectedRouter:V,countRouter:Z,errors:j.hwRouter,isGlobalValidation:_},n)))}),(0,b.jsx)(R,{selectedOptions:H,context:t,selectedProduct:v,products:ue,optionProducts:me,handleSelectTvOption:e=>{L&&$(H.filter((e=>!v.tvOptions.some((n=>n.id===e))))),D((0,u.V1)(L===e?"":e)),f({tv:!g.tv,hd:!g.tv&&g.hd})},handleSelectProductOption:e=>{const n=H.includes(e)?H.filter((n=>n!==e)):[...H,e];let t=g.hd;const i=v.tvOptions.filter((e=>e.optionType===y.setTopBox&&n.includes(e.id))).length;v.tvOptions.some((n=>n.id===e&&n.optionType===y.hdPaket))&&(t=!g.hd),f({hd:t,settopboxAnzahl:i}),$(n)},selectedTvOption:L}),(0,b.jsx)(W,{selectedProduct:v,isGlobalValidation:_,validation:C,errors:j,context:t,selectedOptions:H,isGk:e.isGk,automaticGenericChange:ne,manualGenericChange:te,handlePhoneNumberChange:e=>te("telefonAnzahl",e),handleConnectionChange:e=>
1{const n=P.G[((e,n)=>{const t=Object.keys(e).filter((t=>e[t]===n));return t.length>0?t[0]:null})(P.G,e)];f({telefonTyp:n,oldProvider:"",vorherigerAnschluss:""})},handleTelephonyOptionChange:e=>{var n;const t=null===(n=v.options.find((e=>e.type===y.telephony&&e.details)))||void 0===n?void 0:n.details.find((n=>n.id===e));let i=!1;H.includes(t.id)&&(i=!0);const a=re(e,y.telephony,i);se(a),"-"===t.technischerProduktname&&(i=!0),i||f({telProduct:t.technischerProduktname,amountSipTrunkMonthly:le(t),telEinrichtungskosten:t.einrichtungskosten})},handleFlatrateChange:ae,handleSprachkanalChange:ie,hasSprachkanalselectedPK:Y,handleTelefonbucheintragChange:(e,n)=>{const t=n.target.checked;if($(t?[...H,e.id]:H.filter((n=>n!==e.id))),!e.jsonPropertyName||0===e.jsonPropertyName.length)throw new Error("JsonProperty on flatrate unset");f({[e.jsonPropertyName]:t})},handleInternetOnlyChange:e=>{f({internetOnly:e.target.checked,telefonAnzahl:1,einzelverbindungsnachweis:P.R.KEINER,telefonTyp:P.G.NEUANSCHLUSS})},input:g}),E&&(0,b.jsx)(o.A,{alertType:o.v.WARNING,message:c.Constants.server_error_badRequest}),(0,b.jsx)("section",{"data-tpl":"grid-bas-05",children:(0,b.jsx)("div",{className:"container",children:(0,b.jsxs)("div",{className:"row",children:[(0,b.jsx)("div",{className:"grid-content grid-content-1 col-md-4 col-xs-12",children:(0,b.jsx)(A.A,{colorClass:"color-cta-2 pingButton btn--full-width",handleClick:e.onOrderExit,loading:M,children:(0,s.W)(c.Constants,t,"orderExit")})}),(0,b.jsx)("div",{className:"grid-content grid-content-1 col-md-4 col-xs-0"}),(0,b.jsx)("div",{className:"grid-content grid-content-2 col-md-4 col-xs-12",children:(0,b.jsx)(A.A,{colorClass:"btn color-cta-3 pingNavButton btn--full-width",handleClick:ce,loading:M,children:(0,s.W)(c.Constants,t,"productOptions_weiter")})})]})})}),K.showModal&&(0,b.jsx)("section",{"data-tpl":"grid-bas-02",children:(0,b.jsx)("div",{className:"container",children:(0,b.jsx)("div",{className:"row",children:(0,b.jsx)("div",{className:"grid-content grid-content-2 col-md-8 col-xs-12 ",children:(0,b.jsxs)("div",{id:"noRouterModal",role:"dialog","aria-labelledby":"noRouterModalTitle","data-tpl":"modal",className:"during-animation during-animation--open","aria-expanded":"true","data-module-config":"{}",children:[(0,b.jsx)("div",{className:"modal-overlay"}),(0,b.jsxs)("div",{className:"modal-content",children:[(0,b.jsx)("h4",{id:"noRouterModalTitle",children:(0,s.W)(c.Constants,t,"productOptions_noRouter_text")}),(0,b.jsxs)("div",{children:[(0,b.jsx)(A.A,{colorClass:"btn color-cta-3 col-md-4 col-xs-12 pingButton",handleClick:()=>de(!0),loading:M,children:c.Constants.yes}),(0,b.jsx)(A.A,{colorClass:"btn color-cta-2 col-md-4 col-md-offset-4 col-xs-12 pingButton",handleClick:()=>de(!1),loading:M,children:c.Constants.no})]})]})]})})})})})]})}),(0,b.jsx)("p",{className:"sternZusatz",dangerouslySetInnerHTML:{__html:v.additionalInformationText||(0,s.W)(c.Constants,n,`starText_${B}`)}}),(0,b.jsx)("br",{})]})};var F=t(77007);const B=e=>(0,b.jsx)("div",{className:"price-list "+(e.isTotal?"price-list-is-total":""),children:(0,b.jsxs)("table",{"aria-label":e.description,children:[(0,b.jsx)("thead",{children:(0,b.jsx)("tr",{children:(0,b.jsx)("th",{colSpan:2,className:"text-center color-background-5",children:e.headline})})}),(0,b.jsx)("tbody",{children:e.prices.map((n=>{let{title:t,price:i,tooltip:a}=n;return(0,b.jsxs)("tr",{"aria-hidden":void 0===i?"true":"false",children:[(0,b.jsx)("td",{className:"price-list-col-title",children:t}),(0,b.jsxs)("td",{className:"price-list-col-price "+(e.isTotal?"color-font-4":""),children:[void 0===i?(0,b.jsx)(b.Fragment,{children:" "}):0===i?c.Constants.zeroPriceText:`${p.X9.format(i)} €`,a&&(0,b.jsx)(F.A,{content:a,className:"tooltip--bottom tooltip--center"})]})]},`${t}-${i}`)}))})]})}),D=e=>{var n;const t=`${(0,i.useContext)(r.InstanceContext)}${e.isGk?"_gk":""}`,l=(0,a.wA)(),d=(0,a.d4)((e=>e.homeInternet.step)),p=(0,a.d4)((e=>e.homeInternet.selectedOptions)),v=(0,a.d4)((e=>e.homeInternet.selectedRouter)),x=(0,a.d4)((e=>e.homeInternet.selectedTvOption)),g=(0,a.d4)((e=>e.homeInternet.selectedProduct)),f=(0,a.d4)((e=>e.homeInternet.indicators.isError)),j=(0,a.d4)((e=>e.homeInternet.indicators.isLoading)),N=(0,a.d4)((e=>e.homeInternet.order.orderstepone.telefonAnzahl)),I=(0,a.d4)((e=>e.homeInternet.order.orderstepone)),P=(0,a.d4)((e=>e.homeInternet.availabilityResult.orderId)),O=(0,a.d4)((e=>e.homeInternet.location)),_=null!==g&&void 0!==g&&g.hideMonthlyCostsTable?"grid-bas-02":"grid-bas-03",S=null!==g&&void 0!==g&&g.hideMonthlyCostsTable?"col-md-12":"col-md-6",[R,V]=(0,i.useState)([]),L=n=>{const t=[];for(const l of n)l.optionType===y.vibreConnection&&l.value&&(l.price=e.isGk?w(O.priceOfFibreToTheHome/1.19):O.priceOfFibreToTheHome),t.push(l),l.einrichtungskosten&&t.push({title:`Einrichtungskosten ${i=l.optionType,i.charAt(0).toUpperCase()+i.slice(1)}`,price:l.einrichtungskosten,paymentType:C.einmalig});var i;I.laufzeitVerkuerzung&&t.push({title:"Laufzeitverkürzung auf 12 Monate",price:30,paymentType:C.monatlich});const a=new Map([[null,0],[y.router,2],[y.setTopBox,3],[y.telephony,4],[y.phone,4],[y.voiceChannel,5],[y.flatrate,6],[y.phoneBookEntry,7]]);return t.sort(((e,n)=>{var t,i;if(!a.has(e.optionType)&&!a.has(n.optionType))return 0;return(null!==(t=a.get(e.optionType))&&void 0!==t?t:Number.MAX_VALUE)-(null!==(i=a.get(n.optionType))&&void 0!==i?i:Number.MAX_VALUE)}))},z=L(R).filter((e=>e.paymentType===C.einmalig)),E=L(R).filter((e=>e.paymentType===C.monatlich)),{numbersInclusive:W,price:G}=(null===(n=g.options.find((e=>e.type===y.telephony&&e.details)))||void 0===n?void 0:n.details[0])||{numbersInclusive:0,price:0};let M=0,F=0;for(const i of E)M+=i.price,i.price>0&&(F+=i.price);let D=0;for(const i of z)D+=i.price;const q=e.isGk?[{title:"",price:D},{title:"",price:void 0}]:[{title:"",price:D}],H=e.isGk?[{title:"Monatliche Kosten für 6 Monate",price:M},{title:"Monatliche Kosten ab dem 7. Monat",price:F}]:[{title:"",price:M}];(0,i.useEffect)((()=>{(0,m.ib)("orderLineNavigation",!1,50);const e={id:g.id,name:g.name,quantity:1,price:g.price.toString()};T.A.OnCheckout([e],2);const n=K(),t=U(g,n);V([...n,...t?[t]:[]])}),[]);const $=e=>{const n=e.filter((e=>e.price<0));let t=0;for(const i of n)t+=-1*i.price;return t},K=()=>{var n,i,a,l,r,o,d,u,m,f,b,j,k,A,T,P,_,w,S;const R=null!==(n=null===(i=g.options)||void 0===i?void 0:i.filter((e=>"discount"===e.type)).map((e=>
1e.details))[0])&&void 0!==n?n:[],V=[];V.push({id:g.id,title:g.name,description:"",media:[],link:void 0,detailLink:"",price:g.price,paymentType:C.monatlich,shippingRate:0,optionType:null},g.accessPrice&&{id:"",title:(0,s.W)(c.Constants,t,"product_InstallationPrice"),description:"",media:[],link:void 0,detailLink:"",price:g.accessPrice,paymentType:C.einmalig,shippingRate:0,optionType:null},...R.map(((e,n)=>({id:"",title:e.title,description:"",media:[],link:void 0,detailLink:"",price:-1*e.price,paymentType:e.paymentType,shippingRate:0,optionType:null}))),g.onlineBonus&&{id:"",title:c.Constants.product_OnlineBonus,description:"",media:[],link:void 0,detailLink:"",price:0-g.onlineBonus,paymentType:C.einmalig,shippingRate:0,optionType:null},I.internetOnly&&{id:"",title:c.Constants.product_InternetOnly_headline,description:"",media:[],link:void 0,detailLink:"",price:0-(null!==(a=null===(l=g.options.find((e=>e.type===y.telephony)).details[0])||void 0===l?void 0:l.internetOnlyDiscount)&&void 0!==a?a:0),paymentType:C.monatlich,shippingRate:0,optionType:null},x&&g.tvOption,...null!==(r=null===(o=g.tvOptions)||void 0===o?void 0:o.filter((e=>p.includes(e.id))))&&void 0!==r?r:[],...Array.from({length:N-1}).map(((n,t)=>({id:"",title:`Zusätzliche ${t+2}. Telefonnummer`,description:"",media:[],link:void 0,detailLink:"",price:e.isGk||t<W-1?0:G,paymentType:C.monatlich,shippingRate:0,optionType:y.phone}))),...p.includes(null===(d=g.staticIP)||void 0===d?void 0:d.id)?[g.staticIP]:[],!e.isGk&&O.productType===h.c.Highspeed&&{id:"",title:c.Constants.product_PriceOfFibreToTheHome_headline,description:c.Constants.product_PriceOfFibreToTheHome_description,media:[],link:void 0,detailLink:"",price:O.priceOfFibreToTheHome,paymentType:C.einmalig,shippingRate:0,optionType:null});const L=null!==(u=null!==(m=null===(f=g.options)||void 0===f||null===(b=f.filter((e=>e.details&&e.type===y.voiceChannel)))||void 0===b||null===(j=b.map((e=>e.details.filter((e=>p.includes(e.id)||v.includes(e.id))))))||void 0===j||null===(k=j.filter((e=>e.length>0)))||void 0===k||null===(A=k.map((e=>e[0]))[0])||void 0===A?void 0:A.count)&&void 0!==m?m:null===(T=g.options)||void 0===T||null===(P=T.filter((e=>e.details&&e.type===y.telephony)))||void 0===P||null===(_=P.map((e=>e.details.filter((e=>p.includes(e.id)||v.includes(e.id))))))||void 0===_||null===(w=_.filter((e=>e.length>0)))||void 0===w||null===(S=w.map((e=>e[0]))[0])||void 0===S?void 0:S.count)&&void 0!==u?u:0;for(const t of g.options){var z;const n=null===(z=t.details)||void 0===z?void 0:z.filter((e=>p.includes(e.id)||v.includes(e.id)));if((null===n||void 0===n?void 0:n.length)>=0)for(const i of n)i.originalPrice||(i.originalPrice=i.price),t.type===y.flatrate&&e.isGk&&(i.price=i.originalPrice*L),t.type!==y.flatrate||e.isGk||(i.price=i.originalPrice),V.push(i)}return!e.isGk&&V.some((e=>e.optionType===y.voiceChannel&&0===e.price))?V.filter((e=>!(e.optionType===y.voiceChannel&&0===e.price))):V},U=(e,n)=>{let t=0;for(const i of n)t+=i.shippingRate||0;if(t)return e.shippingCostTotal?{id:"",title:c.Constants.oneTimeDeliveryCosts,alternateTitle:"",subTitle:"",description:"",media:[],link:void 0,detailLink:"",price:e.shippingCostTotal,paymentType:C.einmalig,shippingRate:0,optionType:null,count:1}:{id:"",title:c.Constants.combinedDeliveryCosts,alternateTitle:"",subTitle:"",description:"",media:[],link:void 0,detailLink:"",price:t,paymentType:C.einmalig,shippingRate:0,optionType:null,count:1}};return(0,b.jsxs)("div",{"data-tpl":"form-v2","data-module":"form-v2","data-module-config":"",id:"orderInternetStepTwo",children:[(0,b.jsx)("section",{"data-tpl":_,children:(0,b.jsx)("div",{className:"container",children:(0,b.jsxs)("div",{className:"row",children:[(0,b.jsxs)("div",{className:`grid-content grid-content-1 ${S}`,id:"priceOnce",children:[(0,b.jsx)(B,{headline:c.Constants.once,description:"Auflistung der einmaligen Kosten",prices:z.map((e=>({title:e.title,price:e.price,tooltip:e.description})))}),(0,b.jsx)(B,{headline:c.Constants.oneTimeCosts,description:"Einmalige Kosten gesamt",prices:q,isTotal:!0})]}),!g.hideMonthlyCostsTable&&(0,b.jsxs)("div",{className:"grid-content grid-content-2 col-md-6",i
1d:"priceMonthly",children:[(0,b.jsx)(B,{headline:c.Constants.monthly,description:"Auflistung der monatlichen Kosten",prices:E.map((e=>({title:e.title,price:e.price})))}),(0,b.jsx)(B,{headline:c.Constants.monthlyCosts,description:"Monatliche Kosten gesamt",prices:H,isTotal:!0})]})]})})}),f&&(0,b.jsx)(o.A,{alertType:o.v.WARNING,message:c.Constants.server_error_badRequest}),(0,b.jsx)("section",{"data-tpl":"grid-bas-06",children:(0,b.jsx)("div",{className:"container",children:(0,b.jsxs)("div",{className:"row",children:[(0,b.jsx)("div",{className:"grid-content grid-content-1 col-md-3  col-xs-12",children:(0,b.jsx)(A.A,{colorClass:"color-cta-2 pingButton btn--full-width",handleClick:()=>{l((0,u.VS)(d-1))},loading:j,title:"Zurück zu Schritt 'Optionen'",children:"Zurück"})}),(0,b.jsx)("div",{className:"grid-content grid-content-2 col-md-3  col-xs-0"}),(0,b.jsx)("div",{className:"grid-content grid-content-3 col-md-3  col-xs-0"}),(0,b.jsx)("div",{className:"grid-content grid-content-4 col-md-3 col-xs-12",children:(0,b.jsx)(A.A,{colorClass:"color-cta-3 pingButton btn--full-width",handleClick:()=>{const n={...I,product:g.name,umbNodeProductId:g.id,technischerProduktname:`${g.productId}`,id:P};n.sumAmountMonthly=M,n.alternateSumAmountMonthly=e.isGk?F:null,n.sumAmountNonRecurring=D,n.sumCreditNoteMonthly=$(E),n.sumCreditNoteNonRecurring=$(z),l((0,k.r7)(P,n,3))},loading:j,title:"Weiter zu Schritt 'Persönliche Daten'",children:"Weiter"})})]})})})]})};var q=t(96904),H=t(61922),$=t(24664),K=t(11620),U=t(22545),Z=t(73164),X=t(28359);const J=e=>{let{context:n,validation:t,isGlobalValidation:i,errors:a,handleSepaChange:l,sepa:r,ibanRef:o,isGk:d}=e;return(0,b.jsx)("section",{"data-tpl":"grid-form-01",children:(0,b.jsxs)("div",{className:"container",children:[(0,b.jsxs)("div",{className:"row",children:[(0,b.jsx)("h2",{children:(0,s.W)(c.Constants,n,"sepa_kopf")}),(0,b.jsx)("br",{}),(0,b.jsx)("p",{children:(0,s.W)(c.Constants,n,"sepa_text")}),(0,b.jsx)("br",{})]}),d&&(0,b.jsx)("div",{className:"row",children:(0,b.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,b.jsx)(L.A,{name:"company",label:"Firmenname",handleChange:l,value:r.company,validation:t,errors:a.company,globalValidation:i,autoComplete:"organization"})})}),(0,b.jsxs)("div",{className:"row",children:[(0,b.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,b.jsx)(X.A,{name:"iban",label:"IBAN",handleChange:l,value:r.iban,validation:t,errors:a.iban,globalValidation:i,ref:o})}),(0,b.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,b.jsx)(L.A,{name:"bic",label:"BIC",handleChange:l,value:r.bic,validation:t,errors:a.sepaBic,globalValidation:i})})]}),(0,b.jsxs)("div",{className:"row",children:[(0,b.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,b.jsx)(L.A,{name:"sepaFirstName",label:"Vorname",handleChange:l,value:r.sepaFirstName,validation:t,errors:a.sepaFirstName,globalValidation:i,autoComplete:"given-name"})}),(0,b.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,b.jsx)(L.A,{name:"sepaLastName",label:"Nachname",handleChange:l,value:r.sepaLastName,validation:t,errors:a.sepaLastName,globalValidation:i,autoComplete:"family-name"})})]}),(0,b.jsxs)("div",{className:"row",children:[(0,b.jsx)("div",{className:"col-sm-12 col-md-4",children:(0,b.jsx)(L.A,{name:"sepaZip",label:"PLZ",maxLength:5,handleChange:l,value:r.sepaZip,validation:t,errors:a.sepaZip,globalValidation:i,autoComplete:"postal-code"})}),(0,b.jsx)("div",{className:"col-sm-12 col-md-8",children:(0,b.jsx)(L.A,{name:"sepaCity",label:"Ort",handleChange:l,value:r.sepaCity,validation:t,errors:a.sepaCity,globalValidation:i,autoComplete:"address-level2"})})]}),(0,b.jsxs)("div",{className:"row",children:[(0,b.jsx)("div",{className:"col-sm-12 col-md-10",children:(0,b.jsx)(L.A,{name:"sepaStreet",label:"Straße",handleChange:l,value:r.sepaStreet,validation:t,errors:a.sepaStreet,globalValidation:i,autoComplete:"address-line1"})}),(0,b.jsx)("div",{className:"col-sm-12 col-md-2",children:(0,b.jsx)(L.A,{name:"sepaNr",label:"Nr",handleChange:l,value:r.sepaNr,validation:t,errors:a.sepaNr,globalValidation:i,autoComplete:"address-line2"})})]})]})})},Q=e=>{var n,t,l,p,v,x,g,j,N;const C=(0,i.useContext)(r.InstanceContext),y=(0,a.d4)((e=>e.homeInternet.order.ordersteptwo)),P=(0,a.d4)((e=>e.homeInternet.order)),[O,_]=(0,i.useReducer)(((e,n)=>({...e,...n})),{...y,requestid:f.A.newGuid(),agbRead:P.noOrderSummary&&!0}),[w,S,R,V,z,W]=(0,d.A)("Ping.Models.OrderStepTwo",O),[G,M,F,B,,D]=(0,d.A)("Ping.Models.SepaPk",O.sepa),X=(0,a.d4)((e=>e.homeInternet.location)),Q=(0,a.wA)(),Y=(0,a.d4)((e=>e.homeInternet.step)),ee=(0,a.d4)((e=>e.homeInternet.order.Id)),ne=(0,a.d4)((e=>e.homeInternet.optInCampaignId)),te=(0,a.d4)((e=>e.homeInternet.selectedProduct)),ie=(0,a.d4)((e=>e.homeInternet.indicators.isLoading)),ae=(0,a.d4)((e=>e.homeInternet.indicators.isError)),[le,se]=(0,i.useState)(!1),re=(0,i.useRef)(null),oe=(0,i.useRef)(null),de=(0,i.useRef)(null),ce=`${C}_${h.c[X.productType]}`,he=`${te.productType!==E.c.fibreOnly?`${C}_`:""}${E.c[te.productType]}`,ue=(()=>{switch(te.codeTypeSelection){case"Gutscheincode":return(0,s.W)(c.Constants,C,"orderCheckout_gutschein");case"Anmeldenummer":return(0,s.W)(c.Constants,C,"orderCheckout_anmeldenummer");default:return null}})(),me=(()=>{switch(te.codeTypeSelection){case"Gutscheincode":return(0,s.W)(c.Constants,C,"orderCheckout_gutscheinHint");case"Anmeldenummer":return(0,s.W)(c.Constants,C,"orderCheckout_anmeldenummerHint");default:return null}})(),pe={salutation:"",firstName:"",lastName:"",zip:null!==(n=null===X||void 0===X?void 0:X.zip)&&void 0!==n?n:"",city:null!==(t=null===X||void 0===X?void 0:X.city)&&void 0!==t?t:"",street:null!==(l=null===X||void 0===X?void 0:X.street)&&void 0!==l?l:"",nr:null!==(p=null===X||void 0===X?void 0:X.nr)&&void 0!==p?p:""},ve={salutation:"",firstName:"",lastName:"",zip:null!==(v=null===X||void 0===X?void 0:X.zip)&&void 0!==v?v:"",city:null!==(x=null===X||void 0===X?void 0:X.city)&&void 0!==x?x:"",street:null!==(g=null===X||void 0===X?void 0:X.street)&&void 0!==g?g:"",nr:null!==(j=null===X||void 0===X?void 0:X.nr)&&void 0!==j?j:""};(0,i.useEffect)((()=>{!S||O.vertragszusammenfassungHeruntergeladen||P.noOrderSummary||z("downloadValidation","required","Bitte laden Sie das Dokument herunter.","true")}),[S]),(0,i.useEffect)((()=>{M&&P.noSepaMandate&&xe()}),[M]),(0,i.useEffect)((()=>{var e,n,t,i;(0,m.ib)("orderLineNavigation",!1,50);let a={...O.sepa};a.sepaZip=null!==(e=null===X||void 0===X?void 0:X.zip)&&void 0!==e?e:"",a.sepaCity=null!==(n=null===X||void 0===X?void 0:X.city)&&void 0!==n?n:"",a.sepaStreet=null!==(t=null===X||void 0===X?void 0:X.street)&&void 0!==t?t:"",a.sepaNr=null!==(i=null===X||void 0===X?void 0:X.nr)&&void 0!==i?i:"",P.noSepaMandate&&(
1a=null),_({sepa:a});const l={id:te.id,name:te.name,quantity:1,price:te.price.toString()};T.A.OnCheckout([l],3)}),[]),(0,i.useEffect)((()=>{le&&((0,m.Pq)("error-block"),se(!1))}),[w,m.Pq]);const xe=()=>{for(const e of Object.keys(M))D(e)},ge=e=>{var n;const{name:t}=e.target,i="checkbox"===e.target.type?null===(n=e.target)||void 0===n?void 0:n.checked:e.target.value;_({[t]:i})},fe=()=>{let e=!0,n=!0;O.deliveryAddressDifferent&&!oe.current.validate()&&(n=!1),O.receiptAddressDifferent&&!de.current.validate()&&(n=!1);const t=V();let i=!0;return P.noSepaMandate||(e=re.current.validate(),i=B()),t&&i&&e&&n};return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("section",{"data-tpl":"grid-bas-02",children:(0,b.jsx)("div",{className:"container orderCheckout",children:(0,b.jsxs)("div",{id:"homeInternetOrderStepTwo","data-tpl":"form-v2","data-module":"form-v2","data-module-config":"",children:[(0,b.jsxs)("form",{id:"orderCheckout",children:[(0,b.jsx)("div",{"data-tpl":"grid-form-01",children:(0,b.jsxs)("div",{className:"container",children:[(0,b.jsxs)("div",{className:"row",children:[(0,b.jsx)("p",{children:(0,s.W)(c.Constants,he,"orderCheckout_kopf")}),(0,b.jsx)("br",{})]}),(0,b.jsxs)("div",{className:"row",children:[(0,b.jsx)("h2",{children:(0,s.W)(c.Constants,he,"orderCheckout_kopf_adresse")}),X&&(0,b.jsx)("div",{children:(0,b.jsxs)("p",{className:"color-font-4",children:[(0,b.jsxs)("span",{children:[X.zip," "]}),(0,b.jsxs)("span",{children:[X.city," - "]}),(0,b.jsxs)("span",{children:[X.street," "]}),(0,b.jsx)("span",{children:X.nr})]})}),(0,b.jsx)("br",{})]})]})}),(0,b.jsx)("section",{"data-tpl":"grid-form-01",children:(0,b.jsxs)("div",{className:"container",children:[(0,b.jsx)("div",{className:"row",children:(0,b.jsxs)("div",{className:"col-sm-12 col-md-12 text-right",children:[(0,b.jsx)("br",{}),(0,b.jsx)("p",{children:(0,b.jsx)("small",{className:"requiredText",children:(0,s.W)(c.Constants,C,"productOption_sternPflichtfeld")})})]})}),(0,b.jsxs)("div",{className:"row",children:[(0,b.jsx)("br",{}),(0,b.jsx)(q.A,{name:"houseType",label:"",handleChange:ge,value:O.houseType,validation:S,errors:w.houseType,options:[{value:"Einfamilienhaus",text:(0,s.W)(c.Constants,C,"orderCheckout_haustypEFH")},{value:"Mehrfamilienhaus",text:(0,s.W)(c.Constants,C,"orderCheckout_haustypMFH")}]})]}),"Mehrfamilienhaus"===O.houseType&&(0,b.jsx)("div",{className:"row",children:(0,b.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,b.jsx)(L.A,{name:"numberOfHouseParties",label:(0,s.W)(c.Constants,C,"orderCheckout_numberOfHouseParties"),handleChange:ge,value:O.numberOfHouseParties.toString(),validation:S,errors:w.numberOfHouseParties})})})]})}),(0,b.jsx)("section",{"data-tpl":"grid-form-01",children:(0,b.jsxs)("div",{className:"container",children:[(0,b.jsxs)("div",{className:"row",children:[(0,b.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,b.jsx)(q.A,{name:"salutation",label:"Anrede",handleChange:ge,value:O.salutation,validation:S,errors:w.salutation,options:[{value:"Frau"},{value:"Herr"}],globalValidation:R})}),(0,b.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,b.jsx)(L.A,{name:"title",label:"Titel",handleChange:ge,value:O.title,validation:S,errors:w.title,autoComplete:"honorific-suffix"})})]}),(0,b.jsxs)("div",{className:"row",children:[(0,b.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,b.jsx)(L.A,{name:"firstName",label:"Vorname",handleChange:ge,value:O.firstName,validation:S,errors:w.firstName,globalValidation:R,autoComplete:"given-name"})}),(0,b.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,b.jsx)(L.A,{name:"lastName",label:"Nachname",handleChange:ge,value:O.lastName,validation:S,errors:w.lastName,globalValidation:R,autoComplete:"family-name"})})]}),(0,b.jsxs)("div",{className:"row",children:[(0,b.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,b.jsx)(H.A,{name:"bday",label:"Geburtsdatum",handleChange:ge,value:O.bday,validation:S,errors:w.bday,globalValidation:R,autoComplete:"bday"})}),(0,b.jsxs)("div",{className:"col-sm-12 col-md-6",children:[(0,b.jsx)(L.A,{name:"email",label:"E-Mail",handleChange:ge,value:O.email,validation:S,errors:w.email,globalValidation:R,autoComplete:"email"}),(0,b.jsx)("div",{className:"formZusatztextUnterInput",children:(0,s.W)(c.Constants,C,"orderCheckout_emailZusatztext")})]})]}),(0,b.jsxs)("div",{className:"row",children:[(0,b.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,b.jsx)(L.A,{name:"phone",label:"Telefon",handleChange:ge,value:O.phone,validation:S,errors:w.phone,globalValidation:R,autoComplete:"home tel"})}),(0,b.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,b.jsx)(L.A,{name:"mobile",label:"Mobiltelefon",handleChange:ge,value:O.mobile,validation:S,errors:w.mobile,globalValidation:R,autoComplete:"mobile tel"})})]})]})}),(0,b.jsx)("section",{"data-tpl":"grid-form-01",children:(0,b.jsx)("div",{className:"container",children:(0,b.jsx)("div",{className:"row",children:(0,b.jsx)("hr",{"data-tpl":"lin01",className:"color-line-1"})})})}),(0,b.jsx)("section",{"data-tpl":"grid-form-01",children:(0,b.jsx)("div",{className:"container",children:(0,b.jsx)("div",{className:"row",children:(0,b.jsx)(I.A,{name:"receiptAddressDifferent",handleChange:ge,errors:w.receiptAddressDifferent,validation:S,value:O.receiptAddressDifferent,label:(0,s.W)(c.Constants,C,"orderCheckout_abweichendeRechnungsadresse")})})})}),O.receiptAddressDifferent&&(0,b.jsx)(U.A,{namePrefix:"receiptAddressDifferent",handleAddressChange:e=>{_({receiptAddress:e})},globalValidation:R,ref:de,defaultAddress:ve,autoCompletePrefix:"billing"}),!te.hideSeparateDeliveryAddress&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("section",{"data-tpl":"grid-form-01",children:(0,b.jsx)("div",{className:"container",children:(0,b.jsx)("div",{className:"row",children:(0,b.jsx)(I.A,{name:"deliveryAddressDifferent",handleChange:ge,errors:w.deliveryAddressDifferent,validation:S,value:O.deliveryAddressDifferent,label:(0,s.W)(c.Constants,C,"orderCheckout_abweichendeLieferadresse")})})})}),O.deliveryAddressDifferent&&(0,b.jsx)(U.A,{namePrefix:"deliveryAddressDifferent",handleAddressChange:e=>{_({deliveryAddress:e})},globalValidation:R,ref:oe,defaultAddress:pe})]}),!P.noSepaMandate&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("section",{"data-tpl":"grid-form-01",children:(0,b.jsx)("div",{className:"container",children:(0,b.jsx)("div",{className:"row",children:(0,b.jsx)("hr",{"data-tpl":"lin01",className:"color-line-1"})})})}),(0,b.jsx)(J,{errors:G,validation:M,context:C,isGlobalValidation:F,ibanRef:re,sepa:O.sepa,handleSepaChange:e=>{var n;const{name:t}=e.target,i="checkbox"===e.target.type?null===(n=e.target)||void 0===n?void 0:n.checked:e.target.value,a={...O.sepa,[t]:i};
1_({sepa:a})}})]}),"bw"!==C&&!te.hideExistingCustomerCheck&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("section",{"data-tpl":"grid-form-01",children:(0,b.jsx)("div",{className:"container",children:(0,b.jsx)("div",{className:"row",children:(0,b.jsx)("hr",{"data-tpl":"lin01",className:"color-line-1"})})})}),(0,b.jsx)("section",{"data-tpl":"grid-bas-03",children:(0,b.jsx)("div",{className:"container",children:(0,b.jsx)("div",{className:"row",children:(0,b.jsxs)("div",{className:"grid-content grid-content-1 col-md-6",children:[(0,b.jsx)(I.A,{name:"isAlreadyCustomer",handleChange:ge,value:O.isAlreadyCustomer,errors:w.isAlreadyCustomer,validation:S,infoI:(0,s.W)(c.Constants,C,"orderCheckout_alreadyCustomer_info"),label:(0,s.W)(c.Constants,C,"orderCheckout_alreadyCustomer"),children:(0,b.jsx)("p",{children:(0,s.W)(c.Constants,C,"orderCheckout_alreadyCustomer_description")})}),O.isAlreadyCustomer&&(0,b.jsx)(L.A,{name:"customerNr",label:"Vertragskontonummer",handleChange:ge,value:O.customerNr,validation:S,errors:w.customerNr})]})})})})]}),te.codeTypeSelection&&"Kein"!==te.codeTypeSelection&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("section",{"data-tpl":"grid-form-01",children:(0,b.jsx)("div",{className:"container",children:(0,b.jsx)("div",{className:"row",children:(0,b.jsx)("hr",{"data-tpl":"lin01",className:"color-line-1"})})})}),(0,b.jsx)("section",{"data-tpl":"grid-bas-03",children:(0,b.jsx)("div",{className:"container",children:(0,b.jsx)("div",{className:"row",children:(0,b.jsx)("div",{className:"grid-content grid-content-1 col-md-6",children:(0,b.jsx)(L.A,{name:"promotionNumber",label:ue,infoI:me,handleChange:ge,value:O.promotionNumber,validation:S,errors:w.promotionNumber})})})})})]}),!!ne&&(0,b.jsxs)("section",{"data-tpl":"grid-form-01",children:[(0,b.jsx)("hr",{"data-tpl":"lin01",className:"color-line-1"}),(0,b.jsx)("div",{className:"container",children:(0,b.jsx)("div",{className:"row",children:(0,b.jsx)("div",{className:"col-sm-12 col-md-12",children:(0,b.jsx)($.o,{phoneOptIn:O.maternaOptIn.phoneOptIn,emailOptIn:O.maternaOptIn.emailOptIn,handleEmailOptIn:(e,n,t,i)=>{const a=O.maternaOptIn;a.emailOptIn=e,a.emailOptInText=n,a.werbewiderspruchsrechtText=t,a.zustimmungsText=i,_({maternaOptIn:a})},handlePhoneOptIn:(e,n,t,i)=>{const a=O.maternaOptIn;a.phoneOptIn=e,a.phoneOptInText=n,a.mobileOptIn=e,a.mobileOptText=n,a.werbewiderspruchsrechtText=t,a.zustimmungsText=i;const l=O.phone&&(O.mobile||O.phone)?"phone":"mobile";e?z(l,"required",c.Constants.validation_phoneNrRequired):(W("mobile","required",c.Constants.validation_phoneNrRequired),W("phone","required",c.Constants.validation_phoneNrRequired)),_({maternaOptIn:a})},companyType:K.A.telnet})})})}),(0,b.jsx)("hr",{"data-tpl":"lin01",className:"color-line-1"})]}),(0,b.jsx)("section",{"data-tpl":"grid-form-01",children:(0,b.jsx)("div",{className:"container",children:(0,b.jsxs)("div",{className:"row",children:[(0,s.W)(c.Constants,he,"orderCheckout_promotion_quote")&&(0,b.jsx)("div",{className:"col-sm-12 col-md-12",children:(0,b.jsx)("p",{children:(0,s.W)(c.Constants,he,"orderCheckout_promotion_quote")})}),(0,b.jsx)("div",{className:"col-sm-12 col-md-12",children:(0,b.jsx)(I.A,{name:"agbRead",handleChange:ge,value:O.agbRead,errors:w.agbRead,validation:S,globalValidation:R,label:P.noOrderSummary?(0,s.W)(c.Constants,ce,"orderCheckout_agbRead_noSummary"):(0,s.W)(c.Constants,ce,"orderCheckout_agbRead"),children:te.contractConditionLinks&&te.contractConditionLinks.length>0&&(0,b.jsx)("ul",{children:te.contractConditionLinks.map((e=>{const n=e.url.split(".").pop(),t="pdf"===n;return(0,b.jsx)("li",{style:{marginTop:"0.5rem"},children:(0,b.jsx)("a",{className:"link link--download",title:e.text,href:e.url,target:"_blank",type:t?"application/pdf":void 0,rel:"noreferrer noopener",...t?{download:!0}:{},children:`${e.text} (${n.toUpperCase()})`})},e.text)}))})})}),(0,b.jsx)("div",{className:"col-sm-12 col-md-12",children:(0,b.jsx)(I.A,{name:"dataProtectionRead",handleChange:ge,value:O.dataProtectionRead,errors:w.dataProtectionRead,validation:S,globalValidation:R,label:(0,s.W)(c.Constants,C,"orderCheckout_dataProtectionRead").replace("(Muster-Widerrufsbelehrung)",te.datenschutzLink&&`<a href=${te.datenschutzLink} class="link download link--download" target="_blank" rel="noreferrer noopener">Muster-Widerrufsbelehrung (PDF)</a>`)})}),!P.noOrderSummary&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"col-sm-12 col-md-12",children:(0,b.jsx)(Z.H,{text:"Vertragszusammenfassung herunterladen",orderId:ee,handleDownload:()=>{_({vertragszusammenfassungHeruntergeladen:!0}),W("downloadValidation","required","Bitte laden Sie das Dokument herunter.","true")}})}),(0,b.jsx)("div",{className:"col-sm-12 col-md-12",children:null===(N=w.downloadValidation)||void 0===N?void 0:N.map(((e,n)=>(0,b.jsx)("span",{className:"error-block",children:e},n)))})]})]})})})]}),ae&&(0,b.jsx)(o.A,{alertType:o.v.WARNING,message:c.Constants.server_error_badRequest})]})})}),(0,b.jsx)("section",{"data-tpl":"grid-bas-05",children:(0,b.jsx)("div",{className:"container",children:(0,b.jsxs)("div",{className:"row",children:[(0,b.jsx)("div",{className:"grid-content grid-content-1 col-md-4 col-xs-12",children:(0,b.jsx)(A.A,{colorClass:"btn color-cta-2 pingButton btn--full-width",handleClick:()=>{Q((0,u.VS)(Y-1))},loading:ie,title:"Zurück zu Schritt 'Preisübersicht'",children:"Zurück"})}),(0,b.jsx)("div",{className:"grid-content grid-content-2 col-md-4 col-xs-0"}),(0,b.jsx)("div",{className:"grid-content grid-content-3 col-md-4 col-xs-12",children:(0,b.jsx)(A.A,{colorClass:"btn color-cta-3 pingButton btn--full-width",handleClick:()=>
1{if(!fe())return void se(!0);const e=O.maternaOptIn;e.email=e.emailOptIn?O.email:"",e.phone=e.phoneOptIn?O.phone:"",e.mobile=e.mobileOptIn?O.mobile:"",e.campaignId=ne,e.salutation=O.salutation,e.firstName=O.firstName,e.lastName=O.lastName,e.formname="homeInternet",e.formurl=globalThis.location.href,O.maternaOptIn=e;const n={noSepaMandate:P.noSepaMandate,ordersteptwo:O};Q((0,k.nF)(ee,n))},loading:ie,children:c.Constants.submitOrder})})]})})}),(0,b.jsx)("p",{className:"sternZusatz",children:(0,s.W)(c.Constants,C,"productOption_notice")}),(0,b.jsx)("br",{})]})};var Y=t(20201);const ee=()=>{const e=(0,i.useContext)(r.InstanceContext),n=(0,a.d4)((e=>e.homeInternet.order.ordersteptwo.maternaOptIn)),t=(0,a.d4)((e=>e.homeInternet.orderDoneGrid)),l=(0,a.d4)((e=>e.homeInternet.selectedProduct)),o=(0,a.d4)((e=>e.homeInternet.selectedRouter)),d=(0,a.d4)((e=>e.homeInternet.order.Id));return(0,i.useEffect)((()=>{var e;setTimeout((()=>{(0,m.ib)("orderLineNavigation")}),50);const n={id:l.id,name:l.name,quantity:1,price:l.price.toString()};let t;null===(e=l.options)||void 0===e||e.find((e=>{var n;return null===(n=e.details)||void 0===n?void 0:n.find((e=>{o.includes(e.id)&&(t=e)}))}));const i={id:t.technischerProduktname,name:t.title,price:t.price.toString(),quantity:1,category:"router"};T.A.OnCheckout([n,i],4),T.A.OnPurchase([n,i],d)}),[]),(0,b.jsxs)("div",{className:"color-background-1","data-tpl":"grid-bas-01",id:"orderInternetStepFour",children:[Object.keys(t).length>0&&(0,b.jsx)("div",{dangerouslySetInnerHTML:{__html:t}}),n&&(n.emailOptIn||n.phoneOptIn)&&(0,b.jsx)(Y.A,{maternaOptIn:n,companyType:K.A.telnet}),(0,b.jsx)("div",{"data-tpl":"tic01",children:(0,b.jsx)(A.A,{colorClass:"btn color-cta-3 pingNavButton pingButton",link:"",children:(0,s.W)(c.Constants,e,"finalOverview_button")})})]})},ne=e=>{let{firstName:n,lastName:t,email:i,mobile:a,context:l,validation:r,isGlobalValidation:o,errors:d,handleChange:h}=e;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("section",{"data-tpl":"grid-form-01",children:(0,b.jsx)("div",{className:"container",children:(0,b.jsx)("div",{className:"row",children:(0,b.jsx)("hr",{"data-tpl":"lin01",className:"color-line-1"})})})}),(0,b.jsx)("section",{"data-tpl":"grid-form-01",children:(0,b.jsxs)("div",{className:"container",children:[(0,b.jsx)("div",{className:"row",children:(0,b.jsx)("h3",{children:(0,s.W)(c.Constants,l,"sprachdienst_ansprechpartner_kopf")})}),(0,b.jsxs)("div",{className:"row",children:[(0,b.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,b.jsx)(L.A,{name:"firstNameTechnicalContact",label:"Vorname",handleChange:h,value:n,validation:r,errors:d.firstNameTechnicalContact,globalValidation:o})}),(0,b.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,b.jsx)(L.A,{name:"lastNameTechnicalContact",label:"Nachname",handleChange:h,value:t,validation:r,errors:d.lastNameTechnicalContact,globalValidation:o})})]}),(0,b.jsxs)("div",{className:"row",children:[(0,b.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,b.jsx)(L.A,{name:"emailTechnicalContact",label:"E-Mail",handleChange:h,value:i,validation:r,errors:d.emailTechnicalContact,globalValidation:o})}),(0,b.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,b.jsx)(L.A,{name:"mobileTechnicalContact",label:"Mobiltelefon",handleChange:h,value:a,validation:r,errors:d.mobileTechnicalContact,globalValidation:o})})]})]})})]})};var te=t(54779);const ie=e=>{var n,t,l,p,v,x,g,j,N;const C=`${(0,i.useContext)(r.InstanceContext)}_gk`,P=(0,a.d4)((e=>e.homeInternet.order.ordersteptwo)),[O,_]=(0,i.useReducer)(((e,n)=>({...e,...n})),{...P,company:"",bday:"01.01.1970",requestid:f.A.newGuid(),emailRechnung:"",firstNameTechnicalContact:"",lastNameTechnicalContact:"",emailTechnicalContact:"",mobileTechnicalContact:"",verzichtKku:!1,vertragszusammenfassungHeruntergeladen:!1,comment:"",isGk:!0}),[w,S,R,V,z,E]=(0,d.A)("Ping.Models.OrderStepTwoGk",O),[W,G,M,F]=(0,d.A)("Ping.Models.SepaGk",O.sepa),B=(0,a.d4)((e=>e.homeInternet.location)),D=(0,a.wA)(),H=(0,a.d4)((e=>e.homeInternet.step)),X=(0,a.d4)((e=>e.homeInternet.order.Id)),Q=(0,a.d4)((e=>e.homeInternet.order)),Y=(0,a.d4)((e=>e.homeInternet.optInCampaignId)),ee=(0,a.d4)((e=>e.homeInternet.selectedProduct)),ie=(0,a.d4)((e=>e.homeInternet.indicators.isLoading)),ae=(0,a.d4)((e=>e.homeInternet.indicators.isError)),[le,se]=(0,i.useState)(!1),re=(0,a.d4)((e=>e.homeInternet.selectedOptions)),oe=`${C}_${h.c[B.productType]}`,de=(0,i.useMemo)((()=>ee.options.filter((e=>e.type===y.telephony&&e.details)).map((e=>e.details)).some((e=>e.some((e=>re.includes(e.id)&&e.verzichtKku))))||B.productType===h.c.Puk),[ee,re]),ce=(0,i.useRef)(null),he=(0,i.useRef)(null),ue=(0,i.useRef)(null),me={salutation:"",firstName:"",lastName:"",zip:null!==(n=null===B||void 0===B?void 0:B.zip)&&void 0!==n?n:"",city:null!==(t=null===B||void 0===B?void 0:B.city)&&void 0!==t?t:"",street:null!==(l=null===B||void 0===B?void 0:B.street)&&void 0!==l?l:"",nr:null!==(p=null===B||void 0===B?void 0:B.nr)&&void 0!==p?p:""},pe={salutation:"",firstName:"",lastName:"",zip:null!==(v=null===B||void 0===B?void 0:B.zip)&&void 0!==v?v:"",city:null!==(x=null===B||void 0===B?void 0:B.city)&&void 0!==x?x:"",street:null!==(g=null===B||void 0===B?void 0:B.street)&&void 0!==g?g:"",nr:null!==(j=null===B||void 0===B?void 0:B.nr)&&void 0!==j?j:""};(0,i.useEffect)((()=>{S&&(de?z("verzichtKku","required","Pflichtfeld","true"):O.vertragszusammenfassungHeruntergeladen||Q.noOrderSummary||z("downloadValidation","required","Bitte laden Sie das Dokument herunter.","true"))}),[S]),(0,i.useEffect)((()=>{var e,n,t,i;(0,m.ib)("orderLineNavigation",!1,50);const a={...O.sepa};a.sepaZip=null!==(e=null===B||void 0===B?void 0:B.zip)&&void 0!==e?e:"",a.sepaCity=null!==(n=null===B||void 0===B?void 0:B.city)&&void 0!==n?n:"",a.sepaStreet=null!==(t=null===B||void 0===B?void 0:B.street)&&void 0!==t?t:"",a.sepaNr=null!==(i=null===B||void 0===B?void 0:B.nr)&&void 0!==i?i:"",_({sepa:a});const l={id:ee.id,name:ee.name,quantity:1,price:ee.price.toString()};T.A.OnCheckout([l],3)}),[]),(0,i.useEffect)((()=>{le&&((0,m.Pq)("error-block"),se(!1))}),[w,m.Pq]);const ve=e=>{var n;const{name:t}=e.target,i="checkbox"===e.target.type?null===(n=e.target)||void 0===n?void 0:n.checked:e.target.value;_({[t]:i})},xe=()=>{const e=ce.current.validate();let n=!0;O.deliveryAddressDifferent&&!he.current.validate()&&(n=!1),O.receiptAddressDifferent&&!ue.current.validate()&&(n=!1);const t=V(),i=F();return t&&i&&e&&n};return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("section",{"data-tpl":"grid-bas-02",children:(0,b.jsx)("div",{className:"container orderCheckout",children:(0,b.jsxs)("div",{id:"homeInternetOrderStepTwo","data-tpl":"form-v2","data-module":"form-v2","data-module-config":"",children:[(0,b.jsxs)("form",{id:"orderCheckout",children:[(0,b.jsx)("div",{"data-tpl":"grid-form-01",children:(0,b.jsx)("div",{className:"container",children:(0,b.jsxs)("div",{className:"row",children:[(0,b.jsx)("p",{children:(0,s.W)(c.Constants,C,"orderCheckout_kopf")}),(0,b.jsx)("p",{children:(0,s.W)(c.Constants,C,"orderCheckout_kopf_adresse")}),B&&(0,b.jsx)("div",{children:(0,b.jsxs)("h3",{className:"color-font-4",children:[(0,b.jsxs)("span",{children:[B.zip," "]}),(0,b.jsxs)("span",{children:[B.city," - "]}),(0,b.jsxs)("span",{children:[B.street," "]}),(0,b.jsx)("span",{children:B.nr})]})})]})})}),(0,b.jsx)("section",{"data-tpl":"grid-form-01",children:(0,b.jsxs)("div",{className:"container",children:[(0,b.jsx)("div",{className:"row",children:(0,b.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,b.jsx)(L.A,{name:"company",label:"Firmenname",handleChange:ve,value:O.company,validation:S,globalValidation:R,errors:w.company})})}),(0,b.jsxs)("div",{className:"row",children:[(0,b.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,b.jsx)(q.A,{name:"salutation",label:"Anrede",handleChange:ve,value:O.salutation,validation:S,errors:w.salutation,options:[{value:"Frau"},{value:"Herr"}],globalValidation:R})}),(0,b.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,b.jsx)(L.A,{name:"title",label:"Titel",handleChange:ve,value:O.t
1itle,validation:S,errors:w.title})})]}),(0,b.jsxs)("div",{className:"row",children:[(0,b.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,b.jsx)(L.A,{name:"firstName",label:"Vorname",handleChange:ve,value:O.firstName,validation:S,errors:w.firstName,globalValidation:R})}),(0,b.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,b.jsx)(L.A,{name:"lastName",label:"Nachname",handleChange:ve,value:O.lastName,validation:S,errors:w.lastName,globalValidation:R})})]}),(0,b.jsxs)("div",{className:"row",children:[(0,b.jsxs)("div",{className:"col-sm-12 col-md-6",children:[(0,b.jsx)(L.A,{name:"email",label:"E-Mail",handleChange:ve,value:O.email,validation:S,errors:w.email,globalValidation:R}),(0,b.jsx)("div",{className:"formZusatztextUnterInput",children:(0,s.W)(c.Constants,C,"orderCheckout_emailZusatztext")})]}),(0,b.jsxs)("div",{className:"col-sm-12 col-md-6",children:[(0,b.jsx)(L.A,{name:"emailRechnung",label:"E-Mail für PDF-Rechnung",handleChange:ve,value:O.emailRechnung,validation:S,errors:w.emailRechnung,globalValidation:R}),(0,b.jsx)("div",{className:"formZusatztextUnterInput",children:(0,s.W)(c.Constants,C,"orderCheckout_email_rechnungZusatztext")})]})]}),(0,b.jsxs)("div",{className:"row",children:[(0,b.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,b.jsx)(L.A,{name:"phone",label:"Telefon",handleChange:ve,value:O.phone,validation:S,errors:w.phone,globalValidation:R})}),(0,b.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,b.jsx)(L.A,{name:"mobile",label:"Mobiltelefon",handleChange:ve,value:O.mobile,validation:S,errors:w.mobile,globalValidation:R})})]})]})}),(0,b.jsx)("section",{"data-tpl":"grid-form-01",children:(0,b.jsx)("div",{className:"container",children:(0,b.jsx)("div",{className:"row",children:(0,b.jsx)("hr",{"data-tpl":"lin01",className:"color-line-1"})})})}),(0,b.jsx)("section",{"data-tpl":"grid-form-01",children:(0,b.jsx)("div",{className:"container",children:(0,b.jsx)("div",{className:"row",children:(0,b.jsx)(I.A,{name:"receiptAddressDifferent",handleChange:ve,errors:w.receiptAddressDifferent,validation:S,value:O.receiptAddressDifferent,label:(0,s.W)(c.Constants,C,"orderCheckout_abweichendeRechnungsadresse")})})})}),O.receiptAddressDifferent&&(0,b.jsx)(U.A,{namePrefix:"receiptAddressDifferent",handleAddressChange:e=>{_({receiptAddress:e})},globalValidation:R,ref:ue,defaultAddress:pe,isCompany:!0}),(0,b.jsx)("section",{"data-tpl":"grid-form-01",children:(0,b.jsx)("div",{className:"container",children:(0,b.jsx)("div",{className:"row",children:(0,b.jsx)(I.A,{name:"deliveryAddressDifferent",handleChange:ve,errors:w.deliveryAddressDifferent,validation:S,value:O.deliveryAddressDifferent,label:(0,s.W)(c.Constants,C,"orderCheckout_abweichendeLieferadresse")})})})}),O.deliveryAddressDifferent&&(0,b.jsx)(U.A,{namePrefix:"deliveryAddressDifferent",handleAddressChange:e=>{_({deliveryAddress:e})},globalValidation:R,ref:he,defaultAddress:me,isCompany:!0}),(0,b.jsx)(ne,{errors:w,isGlobalValidation:R,validation:S,context:C,handleChange:ve,email:O.emailTechnicalContact,firstName:O.firstNameTechnicalContact,lastName:O.lastNameTechnicalContact,mobile:O.mobileTechnicalContact}),(0,b.jsx)("section",{"data-tpl":"grid-form-01",children:(0,b.jsx)("div",{className:"container",children:(0,b.jsx)("div",{className:"row",children:(0,b.jsx)("hr",{"data-tpl":"lin01",className:"color-line-1"})})})}),(0,b.jsx)(J,{errors:W,validation:G,context:C,isGlobalValidation:M,ibanRef:ce,sepa:O.sepa,handleSepaChange:e=>{var n;const{name:t}=e.target,i="checkbox"===e.target.type?null===(n=e.target)||void 0===n?void 0:n.checked:e.target.value,a={...O.sepa,[t]:i};_({sepa:a})},isGk:!0}),(0,b.jsx)("section",{"data-tpl":"grid-form-01",children:(0,b.jsx)("div",{className:"container",children:(0,b.jsx)("div",{className:"row",children:(0,b.jsx)("hr",{"data-tpl":"lin01",className:"color-line-1"})})})}),(0,b.jsx)("section",{"data-tpl":"grid-form-01",children:(0,b.jsx)("div",{className:"container",children:(0,b.jsx)("div",{className:"row",children:(0,b.jsx)(te.A,{name:"comment",label:"Kundenanmerkung (optional)",handleChange:ve,value:O.comment,errors:w.comment,globalValidation:R,rows:4})})})}),(0,b.jsx)("section",{"data-tpl":"grid-form-03",children:(0,b.jsx)("div",{className:"container",children:(0,b.jsx)("div",{className:"row",children:(0,b.jsxs)("div",{className:"grid-content grid-content-1 col-md-12",children:[(0,b.jsx)(I.A,{name:"isAlreadyCustomer",handleChange:ve,value:O.isAlreadyCustomer,errors:w.isAlreadyCustomer,validation:S,label:(0,s.W)(c.Constants,C,"orderCheckout_vkto")}),O.isAlreadyCustomer&&(0,b.jsx)("div",{className:"grid-content grid-content-1 col-md-6",children:(0,b.jsx)(L.A,{name:"customerNr",label:"Kundennummer",handleChange:ve,value:O.customerNr,validation:S,placeholder:"2700000",errors:w.customerNr})})]})})})}),(0,b.jsxs)("section",{"data-tpl":"grid-form-01",children:[(0,b.jsx)("hr",{"data-tpl":"lin01",className:"color-line-1"}),(0,b.jsx)("div",{className:"container",children:(0,b.jsx)("div",{className:"row",children:(0,b.jsx)("div",{className:"col-sm-12 col-md-12",children:Y?(0,b.jsx)($.o,{phoneOptIn:O.maternaOptIn.phoneOptIn,emailOptIn:O.maternaOptIn.emailOptIn,handleEmailOptIn:(e,n,t,i)=>{const a=O.maternaOptIn;a.emailOptIn=e,a.emailOptInText=n,a.werbewiderspruchsrechtText=t,a.zustimmungsText=i,_({maternaOptIn:a})},handlePhoneOptIn:(e,n,t,i)=>{const a=O.maternaOptIn;a.phoneOptIn=e,a.phoneOptInText=n,a.mobileOptIn=e,a.mobileOptText=n,a.werbewiderspruchsrechtText=t,a.zustimmungsText=i;const l=O.phone&&(O.mobile||O.phone)?"phone":"mobile";
1e?z(l,"required",c.Constants.validation_phoneNrRequired):(E("mobile","required",c.Constants.validation_phoneNrRequired),E("phone","required",c.Constants.validation_phoneNrRequired)),_({maternaOptIn:a})},companyType:K.A.telnetGK}):(0,b.jsx)("div",{dangerouslySetInnerHTML:{__html:(0,s.W)(c.Constants,C,"emailUsageNote")}})})})}),(0,b.jsx)("hr",{"data-tpl":"lin01",className:"color-line-1"})]}),(0,b.jsx)("section",{"data-tpl":"grid-form-01",children:(0,b.jsx)("div",{className:"container",children:(0,b.jsxs)("div",{className:"row",children:[(0,b.jsx)("div",{className:"col-sm-12 col-md-12",children:(0,b.jsx)("h5",{children:(0,s.W)(c.Constants,C,"order_Checkout_promotion_quote")})}),(0,b.jsx)("div",{className:"col-sm-12 col-md-12",children:(0,b.jsx)(I.A,{name:"agbRead",handleChange:ve,value:O.agbRead,errors:w.agbRead,validation:S,globalValidation:R,label:(0,s.W)(c.Constants,oe,"orderCheckout_agbRead"),children:ee.contractConditionLinks&&ee.contractConditionLinks.length>0&&(0,b.jsx)("ul",{children:ee.contractConditionLinks.map((e=>(0,b.jsx)("li",{style:{marginTop:"0.2rem"},children:(0,b.jsx)("a",{className:"link link--download",title:e.text,href:e.url,target:"_blank",rel:"noreferrer noopener",children:e.text})},e.text)))})})}),(0,b.jsx)("div",{className:"col-sm-12 col-md-12",children:de?(0,b.jsxs)("div",{children:[(0,b.jsx)("span",{dangerouslySetInnerHTML:{__html:(0,s.W)(c.Constants,C,"orderCheckout_verzichtKku_text")}}),(0,b.jsx)("br",{}),(0,b.jsx)(I.A,{name:"verzichtKku",handleChange:ve,value:O.verzichtKku,errors:w.verzichtKku,validation:S,globalValidation:R,label:(0,s.W)(c.Constants,C,"orderCheckout_verzichtKku_button")})]}):!Q.noOrderSummary&&(0,b.jsx)(Z.H,{text:"Vertragszusammenfassung herunterladen",orderId:X,handleDownload:()=>{_({vertragszusammenfassungHeruntergeladen:!0}),E("downloadValidation","required","Bitte laden Sie das Dokument herunter.","true")}})}),!Q.noOrderSummary&&(0,b.jsx)("div",{className:"col-sm-12 col-md-12",children:null===(N=w.downloadValidation)||void 0===N?void 0:N.map((e=>(0,b.jsx)("span",{className:"error-block",children:e})))})]})})})]}),ae&&(0,b.jsx)(o.A,{alertType:o.v.WARNING,message:c.Constants.server_error_badRequest})]})})}),(0,b.jsx)("section",{"data-tpl":"grid-bas-05",children:(0,b.jsx)("div",{className:"container",children:(0,b.jsxs)("div",{className:"row",children:[(0,b.jsx)("div",{className:"grid-content grid-content-1 col-md-4 col-xs-12",children:(0,b.jsx)(A.A,{colorClass:"btn color-cta-2 pingButton btn--full-width",handleClick:()=>{D((0,u.VS)(H-1))},loading:ie,children:"Zurück"})}),(0,b.jsx)("div",{className:"grid-content grid-content-2 col-md-4 col-xs-0"}),(0,b.jsx)("div",{className:"grid-content grid-content-3 col-md-4 col-xs-12",children:(0,b.jsx)(A.A,{colorClass:"btn color-cta-4 pingButton btn--full-width",handleClick:()=>{if(!xe())return void se(!0);const e=O.maternaOptIn;e.email=e.emailOptIn?O.email:"",e.phone=e.phoneOptIn?O.phone:"",e.mobile=e.mobileOptIn?O.mobile:"",e.campaignId=Y,e.salutation=O.salutation,e.firstName=O.firstName,e.lastName=O.lastName,e.formname="homeInternet",e.formurl=globalThis.location.href,O.maternaOptIn=e;const n={ordersteptwo:O};D((0,k.nF)(X,n))},loading:ie,children:c.Constants.submitOrder})})]})})}),(0,b.jsx)("p",{className:"sternZusatz",children:(0,s.W)(c.Constants,C,"productOption_sternPflichtfeld")})]})};var ae=t(71647),le=t(35627);const se="Optionen",re="Preisübersicht",oe="Persönliche Daten",de="Danke",ce=e=>{const n=(0,a.d4)((e=>{var n;return null===(n=e.homeInternet.order)||void 0===n?void 0:n.Id})),t=(0,a.d4)((e=>e.homeInternet.indicators.isError)),s=(0,a.d4)((e=>e.homeInternet.step)),r=(0,a.wA)(),o=(0,a.d4)((e=>e.homeInternet.selectedProduct)),d="Geschäftskunde"===(null===o||void 0===o?void 0:o.customerSegment);(0,i.useEffect)((()=>{n&&(r((0,k.V0)(e.orderUdi)),document.querySelector("#off-screen-content").classList.add("homeinternet-order-active"))}),[n]);const h=[{step:1,title:se},{step:2,title:re},{step:3,title:oe},{step:4,title:de}],p=()=>{document.querySelector("#off-screen-content").classList.remove("homeinternet-order-active"),r((0,u.Nj)()),setTimeout((()=>{(0,m.ib)("tarifOverviewForm")}),100)};return(0,b.jsxs)(b.Fragment,{children:[t&&(0,b.jsx)(ae.w,{headline:c.Constants.overview_error_product,content:c.Constants.server_error_badRequest,status:ae.X.Error,scrollToTop:!0}),n&&(0,b.jsx)("div",{"data-tpl":"blanko-overview",children:(0,b.jsx)("main",{children:(0,b.jsx)("section",{children:(0,b.jsxs)("div",{className:"container",id:"orderLineNavigation",children:[1===s&&(0,b.jsx)(le.y,{backLabel:c.Constants.orderExit,onClick:p}),(0,b.jsx)(l.r,{activeStep:s,callbackHandler:()=>{},numbered:!0,steps:h}),(0,b.jsx)("div",{className:"row",id:"productdetail",children:(0,b.jsx)("div",{className:"col-md-12",children:(()=>{switch(s){case 1:return(0,b.jsx)(M,{isGk:d,onOrderExit:p});case 2:return(0,b.jsx)(D,{isGk:d});case 3:return d?(0,b.jsx)(ie,{}):(0,b.jsx)(Q,{});case 4:return(0,b.jsx)(ee,{})}})()})})]})})})})]})}},75285:(e,n,t)=>{t.d(n,{A:()=>i});const i={requiredtext:"* Pflichtfelder sind mit einem Stern markiert",labelButtonSend:"Jetzt anfragen",successTitle:"Vielen Dank für Ihre Anfrage!",successText2:"Wir kümmern uns um Ihre Anfrage und melden uns zeitnah bei Ihnen.",successText:"Wir bedanken uns für die Anfrage und werden diese nun prüfen.",successButtonLink:"",formSendErrorHeadline:"Es ist ein Fehler aufgetreten.",formSendErrorText:"Die Daten konnten nicht gesendet werden. Bitte versuchen Sie es nochmal.",requiredField:"Pflichtfeld",headline:"Anfrage Photovoltaik",subheadline:"Kontaktieren Sie uns unverbindlich zu PV-Kauf, -Pacht, -Carports oder Betriebsführung",headlinePvLeadType:"Welches Thema Interessiert Sie in Bezug auf Photovoltaik? ",labelPvLeadType:"Bitte wählen Sie aus",gtagFormName:"form_submit_b2b_PVLeadGeneration",headlinePvBuyAddress:"Ihre PV-Anlage",labelAvailableRoofArea:"Verfügbare Dachfläche (m²)",labelRoofDirection:"Dachausrichtung des Gebäudes",labelRoofType:"Welche Dachform haben Sie auf Ihrem Haus?",labelDesiredPeakPower:"Angestrebte installierte Leistung (kWpeak)",headlinePvCarportAddress:"Ihre Parkplatzfläche",labelParkingLotArea:"Parkplatzfläche (m²)",labelNumberOfCarports:"Gewünschte Anzahl PV-Carports",labelProvideChargingInfrastru
1cture:"PV-Carport mit Ladeinfrastruktur ausrüsten?",labelStreet:"Straße und Hausnummer",labelHouseNumber:"Hausnummer, Zusatz",labelPostalCode:"PLZ",labelCity:"Ort",headlineContactInformation:"Kontaktdaten",labelDesiredResponses:"Bitte wählen Sie aus",labelCompanyName:"Unternehmen",labelFirstName:"Vorname",labelLastName:"Nachname",labelEmail:"E-Mail-Adresse",labelPhoneNumber:"Telefonnummer",labelMessage:"Ihre Nachricht an uns"}},84525:(e,n,t)=>{t.d(n,{A:()=>o});var i=t(2277),a=t(25523),l=t(46620),s=t(75285);globalThis.dataLayer=globalThis.dataLayer||[];const r=e=>{const n=[];for(const t in e)e.hasOwnProperty(t)&&n.push(t);return n},o={OnCheckout:(e,n)=>{const t={checkout:{products:e,actionField:{step:n}}};globalThis.dataLayer.push({event:"checkout",ecommerce:t})},OnPurchase:(e,n)=>{const t={purchase:{products:e,actionField:{id:n}}};globalThis.dataLayer.push({event:"purchase",ecommerce:t})},OnProductOverview:e=>{const n={impressions:e};globalThis.dataLayer.push({event:"impressions",ecommerce:n})},OnProductDetail:(e,n)=>{const t={detail:{products:e,actionField:{list:n}}};globalThis.dataLayer.push({event:"detail",ecommerce:t})},OnEvent:(e,n)=>{const t={event:e},i=r(n);for(const a of i)t[a]=n[a];globalThis.dataLayer.push(t)},OnAddToCart:e=>{const n={add:{products:e}};globalThis.dataLayer.push({event:"add_to_cart",ecommerce:n})},OnNotFound:()=>{globalThis.dataLayer.push({event:"pageNotFound",requestedUrl:globalThis.location.pathname})},onSendContactGkAngebotForm:e=>{const{sessionId:n,contactGuid:t,formGuid:a,comment:l,contact:s,deliveryPlaces:r,...o}=e,d={...o,deliveryPlaces:r.map((e=>{let{loadProfileFileName:n,consumption:t}=e;return{consumption:t,...n?{loadProfileFile:!0}:{loadProfileFile:!1}}}))};globalThis.dataLayer.push({event:i.A.gtagFormName,content:d})},onSendPvDirectMarketingForm:e=>{const{maternaOptIn:n,contactGuid:t,formGuid:i,contactInformation:{desiredResponses:l},...s}=e,r={...s,contactInformation:{desiredResponses:l}};globalThis.dataLayer.push({event:a.o.gtagFormName,content:r})},onSendPvLeadGenerationForm:e=>{const{contactGuid:n,formGuid:t,maternaOptIn:i,contactInformation:{desiredResponses:a},carportsLead:l,buyPvLead:r,...o}=e,d={...o,contactInformation:{desiredResponses:a},carportsLead:l?(e=>{let{address:n,...t}=e;return t})(l):null,buyPvLead:r?(e=>{let{address:n,...t}=e;return t})(r):null};globalThis.dataLayer.push({event:s.A.gtagFormName,content:d})},onSendEMobilityForm:e=>{const{maternaOptIn:n,contactGuid:t,formGuid:i,contactInformation:{desiredResponses:a},...s}=e,r={...s,contactInformation:{desiredResponses:a}};globalThis.dataLayer.push({event:l.p.gtagFormName,content:r})}}},94569:(e,n,t)=>{t.d(n,{A:()=>o,u:()=>r});var i=t(96540),a=t(46123),l=t(77282);const s=function(e){const[n,t]=(0,i.useReducer)(((e,n)=>({...e,...n})),{validation:void 0,isError:!1,isLoading:!0});return(0,i.useEffect)((()=>{e&&async function(){const n=await l.T.validationServerAsync(e);200===(null===n||void 0===n?void 0:n.status)?t({validation:n.data,isError:!1,isLoading:!1}):t({validation:void 0,isError:!0,isLoading:!1})}()}),[e]),{validation:n.validation,setValidation:e=>t({validation:e}),isLoading:n.isLoading,isError:n.isError}};function r(e,n){const[t,l]=(0,i.useState)({}),[r,o]=(0,i.useState)(!1),{validation:d,setValidation:c,isError:h,isLoading:u}=s(e),m=()=>{const e={};let t=!0;if(!d)return setTimeout((()=>m()),500),!1;if(!n)return!1;for(const i of Object.keys(d))e[i]=a.v.validateProperty(n[i],i,d),t=t&&0===e[i].length;return l(e),t};return(0,i.useEffect)((()=>{n&&d&&m()}),[n]),{errors:t,validation:d,isGlobalValidation:r,isErrorGetValidation:h,isLoadingGetValidation:u,triggerValidation:function(){return o(!(arguments.length>0&&void 0!==arguments[0])||arguments[0]),m()},addValidationProperty:function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"required",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Pflichtfeld",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";c(a.v.addValidation(d,e,n,i,t)),m()},removeValidationProperty:function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"required",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Pflichtfeld",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";c(a.v.removeValidation(d,e,n,i,t)),m()},isFieldClean:e=>{var n;return 0===(null===(n=t[e])||void 0===n?void 0:n.length)}}}const o=(e,n)=>{const{errors:t,validation:i,isGlobalValidation:a,triggerValidation:l,addValidationProperty:s,removeValidationProperty:o,isFieldClean:d}=r(e,n);return[t,i,a,l,s,o,d]}}}]);

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.