PageSourceSearch

https://www.lew-sc.de/dist/client/75580a0d4f45.chunk.js

js lew-sc.de collected 2026-10-07 23:47:22 UTC 37,029 bytes, 1 lines download raw bytes

1"use strict";(self["webpackJsonp[chunkhash]´"]=self["webpackJsonp[chunkhash]´"]||[]).push([[7558],{9949:(e,t,a)=>{a.d(t,{V:()=>s});const s=e=>{e=e.replace(/\[/,String.raw`\[`).replace(/]/,String.raw`\]`);const t=new RegExp(`[\\?&]${e}=([^&#]*)`).exec(location.search);return null===t?"":decodeURIComponent(t[1].replaceAll("+"," "))}},27558:(e,t,a)=>{a.d(t,{A:()=>P});var s=a(96540),n=a(96051),r=a(77375),i=a(64874),o=a(89638),l=a(35599),h=a(44255),c=a(84525),p=a(50287),d=a(64459),u=a(57769),m=a(97996),g=a(33018),f=a(96904),b=a(46123),T=a(58247),x=a(87451),v=a(77282),w=a(63896),y=a(50671),C=a(74848);class N extends s.Component{constructor(e){super(e),this.serverModel="Commodity.Order.ViewModels.HeatInfo",this.onHeatInfoChange=()=>{this.checkFormValidation()&&this.props.handleClick(this.state.heatInfo)},this.handleChange=e=>{let t="checkbox"===e.target.type?e.target.checked:e.target.value;const a=e.target.name;let s=this.state.globalValidation;"heatType"!==a&&"gaugeSeparate"!==a&&"gaugeType"!==a&&"heatPumpParagraph14Choice"!==a||(t=parseInt(t,10),"gaugeSeparate"===a&&(this.state.heatInfo.gaugeType=m.x.None,this.state.heatInfo.heatType=d.C.None,this.state.heatInfo.heatPumpParagraph14Choice=y.Q.None),"heatType"===a&&(this.state.heatInfo.gaugeType=m.x.None,this.state.heatInfo.heatPumpParagraph14Choice=y.Q.None),s=!1,this.state.heatInfo.consumptionHT="",this.state.heatInfo.consumptionNT="");const n={...this.state.heatInfo,[a]:t};let r=(n.consumptionHT?parseInt(n.consumptionHT,10):0)+(n.consumptionNT?parseInt(n.consumptionNT,10):0);("heatType"===a||"gaugeSeparate"===a||"heatPumpParagraph14Choice"===a||"gaugeType"===a&&-1!==r)&&(r=-1),this.setState({heatInfo:n,globalValidation:s,consumptionTotal:r}),this.handleValidation(a,t,this.state.validation)},this.handleValidation=(e,t,a)=>{const s=b.v.validateProperty(t,e,a),n=this.state.errors;n[e]=s,this.setState({errors:n})},this.checkFormValidation=()=>{const e=this.state.validation,t=this.state.errors,a=this.state.heatInfo.gaugeType===m.x.Zweitariftyp||this.state.heatInfo.gaugeType===m.x.Eintariftyp&&this.state.heatInfo.heatType===d.C.Waermespeicherheizung,s=this.state.heatInfo.gaugeType===m.x.Zweitariftyp||this.state.heatInfo.gaugeType===m.x.Eintariftyp&&this.state.heatInfo.heatType===d.C.Waermepumpe;let n=!0;t.heatType=b.v.validateProperty(`${this.state.heatInfo.heatType}`,"heatType",e),n=n&&0===t.heatType.length,t.gaugeType=b.v.validateProperty(`${this.state.heatInfo.gaugeType}`,"gaugeType",e),n=n&&0===t.gaugeType.length,t.heatPumpParagraph14Choice=b.v.validateProperty(`${this.state.heatInfo.heatPumpParagraph14Choice}`,"heatPumpParagraph14Choice",e),n=n&&0===t.gaugeType.length,t.gaugeSeparate=b.v.validateProperty(`${this.state.heatInfo.gaugeSeparate}
1`,"gaugeSeparate",e),n=n&&0===t.gaugeSeparate.length,a&&(t.consumptionNT=b.v.validateProperty(`${this.state.heatInfo.consumptionNT}`,"consumptionNT",e),n=n&&0===t.consumptionNT.length),s&&(t.consumptionHT=b.v.validateProperty(`${this.state.heatInfo.consumptionHT}`,"consumptionHT",e),n=n&&0===t.consumptionHT.length);return 0===(this.state.heatInfo.consumptionHT?parseInt(this.state.heatInfo.consumptionHT,10):0)+(this.state.heatInfo.consumptionNT?parseInt(this.state.heatInfo.consumptionNT,10):0)&&(n=!1),this.setState({globalValidation:!0,errors:t}),n},this.errorBlock=(e,t,a,s)=>{let n=g.p.errorPhoneLEW,r=g.p.errorMailLEW,i=g.p.errorLinkTextLEW,o=g.p.errorInImLEW;const l={[w.D.EWL]:()=>{n=g.p.errorPhoneEWL,r=g.p.errorMailEWL,t=g.p.errorEnergieladenUrlEWL,i=g.p.errorLinkTextEWL,o=g.p.errorInImEWL},[w.D.UEWK]:()=>{n=g.p.errorPhoneUEWK,r=g.p.errorMailUEWK,t=g.p.errorEnergieladenUrlUEWK,i=g.p.errorLinkTextUEWK,o=g.p.errorInImUEWK},default:()=>!1};return(l[a]||l.default)(),(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("span",{className:"errorHead row",dangerouslySetInnerHTML:{__html:s}}),(0,C.jsxs)("span",{className:"row",children:["Bitte beachten Sie unsere"," ",(0,C.jsx)("a",{href:e,className:"link link--internal",target:"_blank",rel:"noopener noreferrer",children:(0,C.jsx)("strong",{children:"Voraussetzungen für Wärmestrom."})}),(0,C.jsx)("br",{}),"Gerne beraten wir Sie telefonisch unter der kostenlosen Rufnummer ",(0,C.jsx)("strong",{children:n}),", per Email an ",(0,C.jsx)("strong",{children:r})," ","oder persönlich ",o,(0,C.jsx)("a",{href:t,className:"link link--internal",target:"_blank",rel:"noopener noreferrer",children:(0,C.jsx)("strong",{children:i})})]})]})},this.state={validation:{},errors:{},globalValidation:!1,heatInfo:this.props.heatInfo,consumptionTotal:-1}}componentDidMount(){v.T.fetchValidationServer(this.serverModel).then((e=>{this.setState({validation:e})})).catch((()=>{}));const e=this.props.heatInfo;this.setState({heatInfo:e})}render(){const e="https://www.lew.de/fuer-zuhause/waerme/voraussetzung-waermestrom",t=g.p.errorEnergieladenUrlLEW,a=this.state.heatInfo.gaugeSeparate===u.w.ja,s=this.state.heatInfo.gaugeSeparate===u.w.nein,n=this.state.heatInfo.gaugeType===m.x.Eintariftyp,r=this.state.heatInfo.gaugeType===m.x.Zweitariftyp,i=this.state.heatInfo.heatType===d.C.Waermepumpe,o=a&&(this.state.heatInfo.heatType===d.C.Waermespeicherheizung||this.state.heatInfo.heatType===d.C.Waermepumpe),l=this.state.heatInfo.heatType!==d.C.None&&!o,h=r||n&&o,c=(r||n&&this.state.heatInfo.heatType===d.C.Waermepumpe)&&a,p=(r&&this.state.heatInfo.heatType!==d.C.None||n&&this.state.heatInfo.heatType===d.C.Waermespeicherheizung)&&a,b=p&&n&&null!==this.state.heatInfo.consumptionNT&&""!==this.state.heatInfo.consumptionNT||c&&n&&null!==this.state.heatInfo.consumptionHT&&""!==this.state.heatInfo.consumptionHT||r&&null!==this.state.heatInfo.consumptionHT&&null!==this.state.heatInfo.consumptionNT&&""!==this.state.heatInfo.consumptionHT&&""!==this.state.heatInfo.consumptionNT;return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("div",{className:"row",children:(0,C.jsxs)("div",{className:"col-sm-12 col-md-12",children:[(0,C.jsx)("h2",{className:"heatheadline",children:(0,C.jsx)("label",{children:"In Ihrem Wohnort bieten wir Wärmetarife an!"})}),(0,C.jsx)("br",{})]})}),(0,C.jsxs)("div",{className:"row waermeGroupFirst",children:[(0,C.jsx)("div",{className:"col-sm-12 col-md-12 waermeCheckbox",children:(0,C.jsx)(f.A,{name:"gaugeSeparate",id:"gaugeSeparate",label:g.p.labelSeparateZaehler,handleChange:this.handleChange,value:this.state.heatInfo.gaugeSeparate,validation:this.state.validation,errors:this.state.errors.gaugeSeparate,globalValidation:this.state.globalValidation,options:[{value:1,text:g.p.labelSeparateZaehlerYes},{value:2,text:g.p.labelSeparateZaehlerNo}]})}),(0,C.jsx)("div",{className:"col-sm-12 col-md-12 heatFormatierung",children:(0,C.jsx)("a",{href:e,className:"link  link--internal",target:"_blank",rel:"noopener noreferrer",children:"Voraussetzungen für Wärmestrom"})})]}),s&&(0,C.jsx)("div",{className:"row ",children:(0,C.jsx)("div",{className:"col-sm-12 col-md-12 heatFormatierung errorWaerme",children:this.errorBlock(e,t,this.props.customerType,g.p.errorSeparaterZaehler)})}),a&&(0,C.jsx)("div",{className:"row waermeGroup",children:(0,C.jsx)("div",{className:"col-sm-12 col-md-12 waermeCheckbox",children:(0,C.jsx)(f.A,{name:"heatType",id:"heatType",label:g.p.labelHeizungsart,handleChange:this.handleChange,value:this.state.heatInfo.heatType,validation:this.state.validation,errors:this.state.errors.heatType,globalValidation:this.state.globalValidation,options:[{value:36,text:g.p.labelWaermspeicherheizung},{value:43,text:g.p.labelBrauchwarmwasser},{value:40,text:g.p.labelWohnungsluefgungsanlage},{value:39,text:g.p.labelWaermepumpe},{value:34,text:g.p.labelDirektheizung},{value:42,text:g.p.labelNatursteinheizung}]})})}),i&&(0,C.jsx)("div",{className:"row waermeGroup",children:(0,C.jsx)("div",{className:"col-sm-12 col-md-12 waermeCheckbox",children:(0,C.jsx)(f.A,{name:"heatPumpParagraph14Choice",id:"heatPumpParagraph14Choice",label:g.p.labelHeatpumpParagraph14,handleChange:this.handleChange,value:this.state.heatInfo.heatPumpParagraph14Choice,validation:this.state.validation,errors:this.state.errors.gaugeType,globalValidation:this.state.globalValidation,options:[{value:y.Q.Yes,text:g.p.labelHeatpumpParagraph14ChoiceYes},{value:y.Q.No,text:g.p.labelHeatpumpParagraph14ChoiceNo}]})})}),o&&(!i||this.state.heatInfo.heatPumpParagraph14Choice===y.Q.No||this.state.heatInfo.heatPumpParagraph14Choice===y.Q.Yes)&&(0,C.jsxs)("div",{className:"row waermeGroup",children:[(0,C.jsx)("div",{className:"col-sm-12 col-md-12 waermeCheckbox",children:(0,C.jsx)(f.A,{name:"gaugeType",id:"gaugeType",label:g.p.labelZaehlertypWaermeTarif,handleChange:this.handleChange,value:this.state.heatInfo.gaugeType,validation:this.state.validation,errors:this.state.errors.gaugeType,globalValidation:this.state.globalValidation,options:[{value:1,text:g.p.labelZaehlertypWaermeTarifZweitarif},{value:2,text:g.p.labelZaehlertypWaermeTarifEintarif}]})}),(0,C.jsx)("div",{className:"col-sm-12 col-md-12 heatFormatierung",children:(0,C.jsx)("a",{href:e,className:"link link--internal",target:"_blank",rel:"noopener noreferrer",children:"Welchen Tarifzählertyp habe ich?"})})]}),l&&a&&(0,C.jsxs)("div",{className:"row waermeGroup",children:[(0,C.jsx)("div",{className:"col-sm-12 col-md-12 waermeCheckbox",children:(0,C.jsx)(f.A,{name:"gaugeType",id:"gaugeType",label:g.p.labelZaehlertyp,handleChange:this.handleChange,value:this.state.heatInfo.gaugeType,validation:this.state.validation,errors:this.state.errors.gaugeType,globalValidation:this.state.globalValidation,options:[{value:1,text:g.p.labelZaehlertypZweitarif},{value:2,text:g.p.labelZaehlertypEintarif}]})}),(0,C.jsx)("div",{className:"col-sm-12 col-md-12 heatFormatierung",children:(0,C.jsx)("a",{href:e,className:"link link--internal",target:"_blank",rel:"noopener noreferrer",children:"Was ist ein Doppeltarifzähler?"})})]}),l&&n&&(0,C.jsx)("div",{className:"row waermeGroup",children:(0,C.jsx)("div",{className:"col-sm-12 col-md-12 heatFormatierung errorWaerme",children:this.errorBlock(e,t,this.props.customerType,g.p.errorKombination)})}),h&&(0,C.jsx)("div",{className:"row waermeGroup",children:(0,C.jsx)("div",{className:"col-sm-12 col-md-12 headtext",children:g.p.labelConsumptionText})}),c&&(0,C.jsx)("div",{className:"row waermeGroup withoutMarginTop",children:(0,C.jsx)("div",{className:"col-sm-12 col-md-12",children:(0,C.jsx)(T.A,{name:"consumptionHT",id:"c
1onsumptionHT",label:n?g.p.labelConsumption:g.p.labelConsumptionHT,handleChange:this.handleChange,value:this.state.heatInfo.consumptionHT,validation:this.state.validation,errors:this.state.errors.consumptionHT,globalValidation:this.state.globalValidation,placeholder:"z.B. 2500"})})}),p&&(0,C.jsx)("div",{className:"row waermeGroup withoutMarginTop",children:(0,C.jsx)("div",{className:"col-sm-12 col-md-12",children:(0,C.jsx)(T.A,{name:"consumptionNT",id:"consumptionNT",label:n?g.p.labelConsumption:g.p.labelConsumptionNT,handleChange:this.handleChange,value:this.state.heatInfo.consumptionNT,validation:this.state.validation,errors:this.state.errors.consumptionNT,globalValidation:this.state.globalValidation,placeholder:"z.B. 3500"})})}),0===this.state.consumptionTotal?(0,C.jsx)("div",{className:"col-sm-12 col-md-12 heatFormatierung errorWaerme",children:this.errorBlock(e,t,this.props.customerType,g.p.errorKeinVerbrauch)}):(0,C.jsx)("div",{children:" "}),b&&(0,C.jsx)("div",{className:"container",children:(0,C.jsxs)("div",{className:"row waermeGroup",children:[(0,C.jsx)("div",{className:"col-sm-0 col-md-8 "}),(0,C.jsx)("div",{className:"col-sm-12 col-md-4 text-right",children:(0,C.jsx)(x.A,{colorClass:"btn color-cta-3 ",id:"BtnTarifFinden",text:g.p.buttonTarifFinden,handleClick:this.onHeatInfoChange})})]})})]})}}var k=a(50494),j=a(78447),I=a(21079),W=a(63601),S=a(8491);class P extends s.Component{constructor(e){var t;super(e),t=this,this.trackingProducts=[],this.trackingCountProducts=0,this.hasProducts=!1,this.handleWindowSizeChange=()=>{this.setState({width:globalThis.innerWidth})},this.renderNoProducts=()=>{const e=this.mapCustomerType(this.props.kundensegment),t=(0,W.I)(this.state.currentLocation.routings),a=this.state.currentLocation.routings.find((t=>t.segment===e&&t.sparte===this.props.sparte));return(0,C.jsx)(C.Fragment,{children:t||!a?(0,C.jsx)("div",{className:"col-sm-12 col-md-12 errorWaerme",children:this.errorBlock("https://www.lew.de/fuer-zuhause/kontakt/service-vor-ort",this.state.customerType)}):(0,C.jsx)("div",{"data-tpl":"tic01",className:"indention--none tic01--centered",children:(0,C.jsxs)("div",{className:"content",children:[(0,C.jsx)("p",{children:l.Y.overview_routing}),(0,C.jsx)("p",{children:l.Y.overview_routing_}),(0,C.jsx)("a",{rel:"noopener noreferrer",className:"link link--external",href:a.url,target:"_blank",children:a.url})]})})})},this.handleZipChange=()=>{this.setState({isZipChanged:!0})},this.clickFindTarif=async function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.state.currentLocation;""===e.consumptionNT&&(e.consumptionNT="0"),""===e.consumptionHT&&(e.consumptionHT="0");const s=parseInt(e.consumptionNT,10);a.amount=parseInt(e.consumptionHT,10),await r.q.saveHeat(e),t.setState({currentLocation:a,isUpateProducts:!0,showOverview:!1,heatInfo:e,currentConsumptionNT:s,currentConsumptionHT:a.amount}),(0,S.ib)("tarifrechnerOverviewScroll")},this.handleDeleteHeatInfoClick=async()=>{const e=new k.r;e.consumptionHT="",e.consumptionNT="",e.gaugeSeparate=u.w.None,e.heatType=d.C.None,e.gaugeType=m.x.None,await r.q.deleteHeat(),this.setState({showOverview:!0,heatInfo:e,currentConsumptionNT:0,currentConsumptionHT:0})},this.handleProductShown=(e,t,a)=>{this.trackingCountProducts++,a&&(this.hasProducts=!0,this.trackingProducts.push({id:e,name:t,quantity:1})),this.state.products.length===this.trackingCountProducts&&this.state.isUpateProducts&&(c.A.OnProductOverview(this.trackingProducts),this.setState({isUpateProducts:!1,hasProducts:this.hasProducts,shownProducts:this.trackingProducts.length,productsLoaded:!0}),this.trackingProducts=[],this.trackingCountProducts=0,this.hasProducts=!1)},this.onLocationSet=async(e,t,a,s)=>{let n=new i.A,o=!0,l=!1,c=!0;s=this.state.currentConsumptionHT?this.state.currentConsumptionHT.toString():"0";const p=await r.q.getLocation(e,t,a,s,h.S[this.props.sparte].toLowerCase());p.status>=200&&p.status<300&&(n=p.data,(0,W.I)(n.locations)||(c=!1),o=!1,l=!0,this.setState({currentLocation:n,hasError:o,isFirstLoad:c,isUpateProducts:l,productsLoaded:!1,hasProducts:!1,showOverview:!0,isZipChanged:!1}))},this.getTooltipContent=()=>{switch(this.props.sparte){case h.S.Strom:return l.Y[`info_content_strom_${this.props.kundensegment}`];case h.S.Gas:return l.Y[`info_content_gas_${this.props.kundensegment}`];case h.S.Waerme:return l.Y[`info_content_waerme_${this.props.kundensegment}`]}},this.getUmbracoProducts=async()=>{const e=await n.a.getUmbracoProducts(this.props.udi);e.status>=200&&e.status<300&&this.setState({products:e.data})},this.prev=()=>{(0,S.AP)("carousel")},this.next=()=>
1{(0,S.Oy)("carousel")},this.mapCustomerType=e=>{const t={gk:()=>w.D.GK,pk:()=>w.D.PK,kommunen:()=>w.D.Kommunen,netz:()=>w.D.Netz,ewl:()=>w.D.EWL,uewk:()=>w.D.UEWK,default:()=>!1};return(t[e]||t.default)()},this.errorBlock=(e,t)=>{let a=g.p.errorPhoneLEW,s=g.p.errorMailLEW,n=g.p.errorLinkTextLEW,r=g.p.errorInImLEW;const i={[w.D.EWL]:()=>{a=g.p.errorPhoneEWL,s=g.p.errorMailEWL,e=g.p.errorEnergieladenUrlEWL,n=g.p.errorLinkTextEWL,r=g.p.errorInImEWL},[w.D.UEWK]:()=>{a=g.p.errorPhoneUEWK,s=g.p.errorMailUEWK,e=g.p.errorEnergieladenUrlUEWK,n=g.p.errorLinkTextUEWK,r=g.p.errorInImUEWK},default:()=>!1};return(i[t]||i.default)(),(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("span",{className:"errorHead row",children:"In Ihrem Wohnort bieten wir leider keine Wärmetarife an!"}),(0,C.jsxs)("span",{className:"row",children:["Gerne beraten wir Sie telefonisch unter der kostenlosen Rufnummer ",(0,C.jsx)("strong",{children:a}),", per Email an ",(0,C.jsx)("strong",{children:s})," ","oder persönlich ",r,(0,C.jsx)("a",{href:e,className:"link link--internal",target:"_blank",rel:"noopener noreferrer",children:(0,C.jsx)("strong",{children:n})})]})]})},this.state={products:[],zip:"",city:"",sparte:h.S.Strom,currentLocation:new i.A,hasError:!1,isUpateProducts:!1,isFirstLoad:!0,showOverview:!0,hasProducts:!1,productsLoaded:!1,heatInfo:new k.r,currentConsumptionNT:0,currentConsumptionHT:0,isZipChanged:!1,shownProducts:0,customerType:w.D.PK,width:globalThis.innerWidth}}async componentDidMount(){const e=this.mapCustomerType(this.props.kundensegment);this.setState({sparte:this.props.sparte,customerType:e}),this.getUmbracoProducts();const t=await r.q.getLocation("","","","",h.S[this.props.sparte].toLowerCase());if(t.status>=200&&t.status<300)if((0,W.I)(t.data.locations))this.setState({showOverview:!0});else{const e=await r.q.getHeat();e&&200===e.status&&e.data?this.clickFindTarif(e.data,t.data):this.setState({showOverview:!0})}globalThis.addEventListener("resize",this.handleWindowSizeChange)}componentWillUnmount(){globalThis.removeEventListener("resize",this.handleWindowSizeChange)}render(){const e=this.getTooltipContent(),t=g.p.errorEnergieladenUrlLEW;return(0,C.jsx)("div",{id:"cForm","data-tpl":"form-v2","data-module":"form-v2","data-module-config":"",children:(0,C.jsxs)("div",{id:"waermeOverviewForm",children:[!0===this.state.showOverview&&(0,C.jsx)("section",{"data-tpl":"grid-bas-02",children:(0,C.jsx)(p.A,{handleChange:this.onLocationSet,location:this.state.currentLocation,lable_plz:l.Y.startpage_plz,tcc01_button:g.p.tcc01Regionalisation_button,placeholder_plz:l.Y.startpage_plz_placeholder,lable_ort:l.Y.startpage_ort,tooltipContent:e,handleZipChange:this.handleZipChange})}),!1===this.state.showOverview&&(0,C.jsx)(j.A,{heatInfo:this.state.heatInfo,showOverview:this.state.showOverview,handleDeleteHeatInfoClick:this.handleDeleteHeatInfoClick,currentLocation:this.state.currentLocation,triggerUpdate:this.state.isUpateProducts}),this.state.hasError?(0,C.jsx)("section",{"data-tpl":"grid-bas-04",children:(0,C.jsx)("div",{"data-tpl":"tic01",className:"indention--none tic01--centered",children:(0,C.jsx)("div",{className:"content",children:(0,C.jsx)("h2",{className:"headline",children:l.Y.overview_error_product})})})}):this.state.currentLocation.areas&&this.state.currentLocation.areas.length>0?(0,C.jsxs)(C.Fragment,{children:[this.state.shownProducts>=0&&(0,C.jsxs)("div",{style:{display:this.state.showOverview?"none":"block"},children:[this.props.pcc02?(0,C.jsx)("section",{"data-tpl":"grid-bas-04",children:(0,C.jsx)("div",{children:(0,C.jsx)("div",{children:(0,C.jsxs)("div",{"data-tpl":"pc02",children:[this.state.width<800&&(0,C.jsx)("header",{children:(0,C.jsxs)("nav",{"aria-label":"Tarif-Navigation",children:[(0,C.jsx)("button",{type:"button",onClick:this.prev,title:"nach links","aria-label":"nach links",className:"left-carousel-button",children:(0,C.jsx)("span",{className:"link icon-arrow-left","aria-hidden":!0})}),(0,C.jsx)("button",{type:"button",onClick:this.next,title:"nach rechts","aria-label":"nach rechts",className:"right-carousel-button",children:(0,C.jsx)("span",{className:"link icon-arrow-left arrow_right","aria-hidden":!0})})]})}),(0,C.jsx)("ul",{className:"row justify-content-center",id:"carousel","aria-label":"Gefundene Tarife",children:this.state.products&&this.state.products.map(((e,t)=>(0,C.jsx)(o.A,{amount:this.state.currentLocation.amount,consumptionNT:this.state.currentConsumptionNT,currentLocation:this.state.currentLocation,umbProduct:e,kundensegment:this.props.kundensegment,handleCreateOrder:this.props.handleCreateOrder,triggerUpdate:this.state.isUpateProducts,handleProductShown:this.handleProductShown,heatInfo:this.state.heatInfo,pcc02:!0},t)))})]})})})}):this.state.products&&this.state.products.map(((e,t)=>(0,C.jsx)(o.A,{amount:this.state.currentLocation.amount,consumptionNT:this.state.currentConsumptionNT,currentLocation:this.state.currentLocation,umbProduct:e,kundensegment:this.props.kundensegment,handleCreateOrder:this.props.handleCreateOrder,triggerUpdate:this.state.isUpateProducts,handleProductShown:this.handleProductShown,heatInfo:this.state.heatInfo},t))),this.state.shownProducts>0&&(0,C.jsx)(I.A,{content:g.p.sternchentext,headline:"",subheadline:""})]}),0===this.state.shownProducts&&(0,C.jsx)("section",{"data-tpl":"grid-bas-04",children:(0,C.jsx)("div",{className:"row ",children:this.renderNoProducts()})})]}):!this.state.isFirstLoad&&!this.state.isZipChanged&&(0,C.jsx)("section",{"data-tpl":"grid-bas-04",children:(0,C.jsx)("div",{className:"row ",children:(0,C.jsx)("div",{className:"col-sm-12 col-md-12 errorWaerme",children:this.errorBlock(t,this.state.customerType)})})}),this.state.hasProducts&&this.state.showOverview&&!this.state.isZipChanged&&(0,C.jsx)(N,{heatInfo:this.state.heatInfo,handleClick:this.clickFindTarif,customerType:this.mapCustomerType(this.props.kundensegment)})]})})}}},33018:(e,t,a)=>{let s;a.d(t,{p:()=>s}),function(e){e.labelHeizungsart="Welche Heizungsart haben Sie?",e.labelWaermspeicherheizung="Wärmespeicherheizung",e.labelBrauchwarmwasser="Brauchwarmwasserspeicher",e.labelWohnungsluefgungsanlage="Wohnungslüftungsanlage",e.labelWaermepumpe="Wärmepumpe",e.labelDirektheizung="Direktheizung - Infrarotheizung",e.labelNatursteinheizung="Natursteinheizung",e.labelZaehlertyp="Ich habe einen Doppeltarifzähler",e.labelZaehlertyptext="Überprüfung Zählertyp",e.labelZaehlertypZweitarif="Ja",e.labelZaehlertypEintarif="Nein",e.labelZaehlertypWaermeTarif="Bitte wählen Sie Ihren Tarifzählertyp",e.labelZaehlertypWaermeTarifText="Auswahl Zählertyp",e.labelZaehlertypWaermeTarifZweitarif="Doppeltarifzähler",e.labelZaehlertypWaermeTarifEintarif="Eintarifzähler",e.labelSeparateZaehler="Ich habe einen separaten Zähler für Wärmestrom",e.labelSeparateZaehlerText="Überprüfung separater Zähler",e.labelSeparateZaehlerYes="Ja",e.labelSeparateZaehlerNo="Nein",e.labelConsumptionText="Für eine passende Tarifauswahl benötigen wir Ihren voraussichtlichen Verbrauch:",e.labelConsumptionHT="Verbrauch Hochtarifzeit (HT):",e.labelConsumptionNT="
1Verbrauch Niedertarifzeit (NT):",e.labelConsumption="Verbrauch:",e.labelKombinationNichtMoeglich="Um Sie bei LEW mit Wärmestrom beliefern zu können, benötigen Sie für die gewählte Heizungsart einen Zweitarifzähler",e.labelHeatpumpParagraph14="Haben Sie mit Ihrem Netzbetreiber eine Vereinbarung zur netzorientierten Steuerung gemäß § 14a EnWG getroffen (verpflichtend bei Inbetriebnahme ab 01.01.2024)?",e.labelHeatpumpParagraph14ChoiceYes="Ja, meine Wärmepumpe wurde am 01.01.2024 oder später in Betrieb genommen oder ich habe freiwillig eine Vereinbarung gemäß § 14a EnWG mit meinem Netzbetreiber getroffen.",e.labelHeatpumpParagraph14ChoiceNo="Nein, meine Wärmepumpe wurde vor dem 01.01.2024 in Betrieb genommen und ich habe keine Vereinbarung gemäß § 14a EnWG mit meinem Netzbetreiber getroffen.",e.buttonTarifFinden="Tarif finden",e.tcc01Regionalisation_button="Verfügbarkeit prüfen",e.gaugeType1="Doppeltarifzähler",e.gaugeType2="Eintarifzähler",e.sternchentext='<span class="sternchentext">*Alle Informationen zum jeweiligen Produkt, z.B. bzgl. Preisgarantie und Preisnachlass, können unter "zu den Tarifdetails" eingesehen werden. Bitte beachten Sie, dass Sie durch einen Klick auf "Online abschließen" die Seite mit den Tarifdetails überspringen. Die vollständigen Tarifdetails können Sie am Ende des Bestellvorgangs einsehen und herunterladen (Bestellschritt 4 "Überprüfung").</span>',e.errorSeparaterZaehler='Gerne möchten wir Ihnen einen unserer attraktiven Tarife für <a href="https://www.lew.de/fuer-zuhause/strom" class="link link--internal" target="_blank" rel="noopener noreferrer"><strong>Haushaltsstrom</strong></a> anbieten, da wir ohne einen separaten Zähler leider keinen Wärmestromtarif anbieten können.',e.errorKeinVerbrauch="Bitte geben Sie Ihren voraussichtlichen Jahresverbrauch ein.",e.errorKombination="Leider können wir Ihnen ohne einen Doppeltarifzähler keine Wärmestromtarife anbieten.",e.errorPhoneLEW="0800 539 539 1",e.errorPhoneEWL="0800 539 539 3",e.errorPhoneUEWK="08282 901 153",e.errorLinkTextLEW="Energieladen in Ihrer Nähe",e.errorLinkTextEWL="unserem Energieladen.",e.errorLinkTextUEWK="unserem Energieladen.",e.errorEnergieladenUrlLEW="https://www.lew.de/fuer-zuhause/kontakt/service-vor-ort",e.errorEnergieladenUrlEWL="http://www.ewlandsberg.de/fuer-privatkunden/kontakt",e.errorEnergieladenUrlUEWK="http://www.uewk.de/fuer-privatkunden/kontakt",e.errorMailLEW="[email protected]",e.errorMailEWL="[email protected]",e.errorMailUEWK="[email protected]",e.errorInImLEW="im",e.errorInImEWL="in",e.errorInImUEWK="in",e.errorHeatPumpParagraph14='Leider können wir Ihnen in diesem Fall noch keinen Wärmetarif anbieten. Mehr Informationen finden Sie auf unserer Hilfeseite zu <a href="https://www.lew.de/fuer-zuhause/service-hilfe/steuerbare-verbrauchseinrichtungen" class="link link--internal" target="_blank" rel="noopener noreferrer"><strong>Steuerbaren Verbrauchseinrichtungen</strong></a>.'}(s||(s={}))},50287:(e,t,a)=>{a.d(t,{A:()=>u});var s=a(96540),n=a(58247),r=a(77282),i=a(77375),o=a(46123),l=a(60102),h=a(9949),c=a(22975),p=a(8491),d=a(74848);class u extends s.Component{constructor(e){super(e),this.cityRef={},this.serverModel="Commodity.ContactFinder.ViewModels.ContactFinder",this.scrolledOnClick=!0,this.getInitState=()=>({errors:{},validation:{},plz:"",city:"",cityPart:"",displayName:"",citys:[],globalValidation:!1,isLoaded:!1}),this.init=async(e,t,a)=>{if(await this.props.handleChange(e,t,a),this.props.location&&this.props.location.locations){const e=this.props.location.locations[this.props.location.selectedLocation];e&&(await this.zipChange(e.zipcode),this.setState({displayName:e.displayName,city:e.city,cityPart:e.citypart}))}},this.handleZipChange=async e=>{const t=e.target.value;this.zipChange(t),this.props.handleZipChange&&this.props.handleZipChange()},this.zipChange=async e=>{if(this.setState({plz:e}),e&&5===e.length){const t=(await i.q.getCitys(e)).data;this.setState({citys:t})}else{const e=o.v.removeValidation(this.state.validation,"plz","error","","PLZ ist nicht korrekt");this.setState({citys:[],displayName:"",city:"",cityPart:"",validation:e})}},this.handleBlurPlz=async()=>{const e=this.state.plz,t=this.handleValidation("plz",e,this.state.validation);this.setState({errors:t})},this.handleSelectCity=e=>{const t=this.handleValidation("city",e,this.state.validation),a=this.state.citys.find((t=>{if(t.displayName===e)return t}));this.setState({displayName:e,city:a.city,cityPart:a.citypart,errors:t})},this.handleValidation=(e,t,a)=>{const s=o.v.validateProperty(t,e,a),n=this.state.errors;return n[e]=s,n},this.updateContacts=e=>{if(this.scrolledOnClick=!1,e.preventDefault(),!this.checkFormValidation())return;const t=this.state.plz,a=this.state.city,s=this.state.cityPart;this.props.handleChange(t,a,s)},this.checkFormValidation=()=>{let e=this.state.validation;const t=this.state.errors;this.state.citys&&0===this.state.citys.length&&(e=o.v.addValidation(e,"plz","error","","PLZ ist nicht korrekt"));const a=Object.keys(e);let s=!0;for(const n of a){const a=o.v.validateProperty(this.state[n],n,e);t[n]=a,s=s&&0===a.length}return this.setState({globalValidation:!0,errors:t}),s},this.state=this.getInitState()}componentWillUnmount(){this.props.handleUnMount&&this.props.handleUnMount()}UNSAFE_componentWillMount(){this.props.handleMount&&this.props.handleMount()}async componentDidMount(){const e=(0,h.V)("plz"),t=(0,h.V)("ort"),a=(0,h.V)("ortsteil");await this.init(e,t,a),r.T.fetchValidationServer(this.serverModel).then((e=>this.setState({validation:e,isLoaded:!0}))).catch((()=>{})),this.setState({isLoaded:!0}),(0,c.Y)("tcc01-form")}componentDidUpdate(){!this.scrolledOnClick&&document.querySelectorAll(".error-block").length>0&&((0,p.Pq)("error-block"),this.scrolledOnClick=!0)}
1render(){const e=`tcc01--version-a  ${this.state.isLoaded?"":"skeleton"}`;let t=!1;this.cityRef&&(t=!!this.cityRef.state&&this.cityRef.state.touched);const a=Boolean(this.state.citys)?this.state.citys.map((e=>({value:e.displayName,text:e.displayName}))):[];return(0,d.jsx)("div",{children:(0,d.jsx)("div",{"data-tpl":"tcc01","data-module":"tcc","data-module-config":"",className:e,children:(0,d.jsx)("div",{"data-tpl":"form-v2","data-module":"form-v2","data-module-config":"",children:(0,d.jsx)("div",{"data-tpl":"form","data-module":"form","data-module-config":"",id:"tcc01-form",children:(0,d.jsx)("form",{id:"tcc01-form",method:"post",onSubmit:this.updateContacts,children:(0,d.jsxs)("div",{className:"row",children:[(0,d.jsx)("div",{className:"col-xs-12 col-md-6 col-lg-4 col--residence",children:(0,d.jsx)(n.A,{handleChange:this.handleZipChange,handleBlur:this.handleBlurPlz,label:this.props.lable_plz,name:"plz",value:this.state.plz,placeholder:this.props.placeholder_plz,validation:this.state.validation,errors:this.state.errors.plz,globalValidation:this.state.globalValidation,borderErrorOnly:!1,maxLength:5,ref:e=>this.cityRef=e})}),(0,d.jsx)("div",{className:"col-xs-12 col-md-6 col-lg-4 col--residence",children:(0,d.jsx)(l.A,{errors:this.state.errors,handleChange:this.handleSelectCity,label:this.props.lable_ort,name:"city",validation:this.state.validation,value:this.state.displayName,options:a,isGloablValidation:this.state.globalValidation,borderErrorOnly:!1,enableSingleOption:!0,shouldOpen:t})}),(0,d.jsx)("div",{className:"col-xs-12 col-md-6 col-lg-4 col--button",children:this.state.isLoaded?(0,d.jsx)("button",{className:"btn btn--full-width color-cta-3",onClick:this.updateContacts,id:"btnClickTcc",children:this.props.tcc01_button}):(0,d.jsx)("div",{className:"skeletonButton"})})]})})})})})})}}},57769:(e,t,a)=>{let s;a.d(t,{w:()=>s}),function(e){e[e.None=0]="None",e[e.ja=1]="ja",e[e.nein=2]="nein"}(s||(s={}))},63896:(e,t,a)=>{let s;a.d(t,{D:()=>s}),function(e){e[e.GK=0]="GK",e[e.PK=1]="PK",e[e.Kommunen=2]="Kommunen",e[e.Netz=3]="Netz",e[e.EWL=4]="EWL",e[e.UEWK=5]="UEWK"}(s||(s={}))},78447:(e,t,a)=>{a.d(t,{A:()=>c});var s=a(96540),n=a(64459),r=a(97996),i=a(33018);let o;!function(e){e.headline="Ihre Daten",e.plz="Postleitzahl",e.ort="Wohnort",e.amount="Verbrauch",e.amountHT="Verbrauch HT",e.amountNT="Verbrauch NT",e.amountUnit="kWh",e.heatingType="Heizungsart",e.gaugetype="Zählerart",e.tcc01_button="Bearbeiten"}(o||(o={}));var l=a(87451),h=a(74848);class c extends s.Component{constructor(e){super(e),this.getInitState=()=>({isLoaded:!1,showOverview:!!this.props.showOverview&&this.props.showOverview,heatInfo:this.props.heatInfo?this.props.heatInfo:null,handleDeleteHeatInfoClick:this.props.handleDeleteHeatInfoClick,headlineText:"Ihre Angaben zum Wärmeverbrauch",showSubheadline:!0,currentHeatType:this.getHeatType(),currentGaugeType:this.getGaugeType(),currentConsumptionHT:this.getConsumptionHT(),currentConsumptionNT:this.getConsumptionNT(),currentZipLocation:this.getZipLocation(),currentSubheadline:this.getSubheadline(),currentSubheadlineMobile:this.getSubheadlineMobile(),triggerUpdate:this.props.triggerUpdate,width:globalThis.innerWidth}),this.toggleAcc=e=>{const t=e.target.parentElement.parentElement,a=t.getAttribute("aria-expanded"),s=this.getHeatType(),n=this.getGaugeType(),r=this.getConsumptionHT(),i=this.getConsumptionNT();let o=!1;"true"===a&&(o=!0),this.setState({showSubheadline:o,currentConsumptionHT:r,currentConsumptionNT:i,currentGaugeType:n,currentHeatType:s}),t.setAttribute("aria-expanded",("false"===a).toString())},this.getHeatType=()=>{let e="";switch(this.props.heatInfo.heatType){case n.C.Brauchwarmwasserspeicher:e=i.p.labelBrauchwarmwasser;break;case n.C.Direktheizung:e=i.p.labelDirektheizung;break;case n.C.Natursteinheizung:e=i.p.labelNatursteinheizung;break;case n.C.Waermepumpe:e=i.p.labelWaermepumpe;break;case n.C.Waermespeicherheizung:e=i.p.labelWaermspeicherheizung;break;case n.C.Wohnungslueftungsanlage:e=i.p.labelWohnungsluefgungsanlage;break;default:e="?"}return e},this.getGaugeType=()=>{let e="";switch(this.props.heatInfo.gaugeType){case r.x.Eintariftyp:e=i.p.gaugeType2;break;case r.x.Zweitariftyp:e=i.p.gaugeType1}return e},this.getConsumptionHT=()=>{let e="";const t=this.props.heatInfo.gaugeType===r.x.Eintariftyp&&this.props.heatInfo.heatType===n.C.Waermepumpe;return this.props.heatInfo.gaugeType===r.x.Zweitariftyp&&(e=`${o.amountHT}: ${this.props.heatInfo.consumptionHT}`),t&&(e=`${i.p.labelConsumption} ${this.props.heatInfo.consumptionHT}`),e},this.getConsumptionNT=()=>this.props.heatInfo.gaugeType===r.x.Zweitariftyp?`${o.amountNT}: ${this.props.heatInfo.consumptionNT}`:`${i.p.labelConsumption} ${this.props.heatInfo.consumptionNT}`,this.getZipLocation=()=>{let e="";return this.props.currentLocation.locations&&(e=`${this.props.currentLocation.locations[this.props.currentLocation.selectedLocation].zipcode} ${this.props.currentLocation.locations[this.props.currentLocation.selectedLocation].city}`),e}
1,this.getSubheadline=()=>{const e=this.getHeatType(),t=this.getGaugeType(),a=this.getConsumptionHT(),s=this.getConsumptionNT();return`${this.getZipLocation()} - ${e}, ${t}, ${a}, ${s}`},this.getSubheadlineMobile=()=>{const e=this.getHeatType(),t=this.getGaugeType(),a=this.getConsumptionHT(),s=this.getConsumptionNT();let n=`${this.getZipLocation()} - ${e}, ${t}, ${a}, ${s}`;return`${n.slice(0,50)}...`},this.onDeleteHeatInfo=()=>{this.setState({showSubheadline:!0}),this.props.handleDeleteHeatInfoClick()},this.state=this.getInitState()}async UNSAFE_componentWillReceiveProps(e){if(e.triggerUpdate!==this.state.triggerUpdate){const t=this.getHeatType(),a=this.getGaugeType(),s=this.getConsumptionHT(),n=this.getConsumptionNT(),r=this.getZipLocation(),i=this.getSubheadline(),o=this.getSubheadlineMobile(),l=!0;this.setState({triggerUpdate:e.triggerUpdate,currentHeatType:t,currentGaugeType:a,currentConsumptionHT:s,currentConsumptionNT:n,currentZipLocation:r,showSubheadline:l,currentSubheadline:i,currentSubheadlineMobile:o})}}render(){const e=`tcc01--version-a  ${this.state.isLoaded?"":"skeleton"}`,t=this.state.width<800,a=this.state.heatInfo.gaugeType===r.x.Zweitariftyp||this.state.heatInfo.heatType===n.C.Waermespeicherheizung,s=this.state.heatInfo.gaugeType===r.x.Eintariftyp&&this.state.heatInfo.heatType===n.C.Waermepumpe;return(0,h.jsx)("div",{children:this.props.heatInfo&&!this.props.showOverview&&(0,h.jsx)("div",{"data-tpl":"tcc01","data-module":"tcc","data-module-config":"",className:e,children:(0,h.jsx)("section",{"data-tpl":"acc02",className:"acc_heatInfo",children:(0,h.jsx)("ul",{children:(0,h.jsx)("li",{className:"accordion-item",onClick:this.toggleAcc,children:t?(0,h.jsxs)("section",{children:[(0,h.jsx)("div",{className:" accordion-item__headline acc_heatInfo_p",children:(0,h.jsx)("h3",{children:this.state.headlineText})}),this.state.showSubheadline&&(0,h.jsx)("p",{className:"subheadline",children:(0,h.jsx)("span",{id:"AngabenSubheadline",children:this.state.currentSubheadlineMobile})}),(0,h.jsx)("section",{className:"accordion-item__content",children:(0,h.jsx)("div",{className:"container",children:(0,h.jsxs)("div",{className:"row",children:[(0,h.jsx)("div",{className:"col-xs-12 col-sm-12 col-md-9 withoutPaddingLeft",children:(0,h.jsxs)("p",{children:[(0,h.jsx)("span",{className:"col-xs-12 col-sm-12 col-md-12 ",children:this.state.currentZipLocation}),(0,h.jsxs)("span",{className:"col-xs-12 col-sm-12 col-md-12 ",children:[this.state.currentHeatType,", ",this.state.currentGaugeType]}),(0,h.jsxs)("span",{className:"col-xs-12 col-sm-12 col-md-12 ",children:[this.state.heatInfo.gaugeType===r.x.Zweitariftyp&&(0,h.jsxs)("span",{children:[this.state.currentConsumptionHT,","]}),a&&(0,h.jsxs)("span",{children:[" ",this.state.currentConsumptionNT]}),s&&(0,h.jsxs)("span",{children:[" ",this.state.currentConsumptionHT]})]})]})}),(0,h.jsxs)("div",{className:"col-xs-12 col-sm-12 col-md-3 ",children:[(0,h.jsx)("br",{}),(0,h.jsx)(l.A,{colorClass:"btn color-cta-3 btn--full-width",text:"Angaben ändern",handleClick:this.onDeleteHeatInfo})]})]})})})]}):(0,h.jsxs)("section",{children:[(0,h.jsx)("div",{children:(0,h.jsx)("h3",{children:this.state.headlineText})}),(0,h.jsx)("div",{className:"container",children:(0,h.jsxs)("div",{className:"row ",children:[(0,h.jsxs)("div",{className:"col-sm-12 col-md-9 withoutPaddingLeft",children:[(0,h.jsx)("span",{className:"col-sm-12 col-md-12 ",children:this.state.currentZipLocation}),(0,h.jsxs)("span",{className:"col-sm-12 col-md-12 ",children:[this.state.currentHeatType,", ",this.state.currentGaugeType,",",this.state.heatInfo.gaugeType===r.x.Zweitariftyp&&(0,h.jsxs)("span",{children:[this.state.currentConsumptionHT,","]}),a&&(0,h.jsxs)("span",{children:[" ",this.state.currentConsumptionNT]}),s&&(0,h.jsxs)("span",{children:[" ",this.state.currentConsumptionHT]})]})]}),(0,h.jsx)("div",{className:"col-sm-12 col-md-3 text-right",children:(0,h.jsx)(l.A,{colorClass:"btn color-cta-3 ",text:"Angaben ändern",handleClick:this.onDeleteHeatInfo})})]})})]})})})})})})}}},97996:(e,t,a)=>{let s;a.d(t,{x:()=>s}),function(e){e[e.None=0]="None",e[e.Zweitariftyp=1]="Zweitariftyp",e[e.Eintariftyp=2]="Eintariftyp"}(s||(s={}))}}]);

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.