PageSourceSearch

https://www.lew-sc.de/dist/client/56839e458ee9.chunk.js

js lew-sc.de collected 2026-10-07 23:46:48 UTC 13,512 bytes, 1 lines download raw bytes

1"use strict";(self["webpackJsonp[chunkhash]´"]=self["webpackJsonp[chunkhash]´"]||[]).push([[5683],{24753:(t,e,a)=>{a.d(e,{mF:()=>P,Ff:()=>C});var n=a(64874),o=a(77375),r=a(96051),s=a(63961);class i{constructor(){this.priceId=void 0,this.monthlyTotalPrice=void 0,this.annualTotalPrice=void 0}}var c=a(45059),u=a(35901);class d{constructor(){this.totalAmountNet=void 0,this.totalAmountGross=void 0,this.bonusId=void 0,this.bonusValueId=void 0,this.bonusArt=void 0,this.isBonusAvailable=void 0,this.bonusType=u.W.NeukundenBonus}}var l=a(36143),p=a(60838),h=a(50494);let y;!function(t){t.CalculatingProduct="COMMODITY_CALCULATING_PRODUCT",t.CalculatedProduct="COMMODITY_CALCULATED_PRODUCT",t.ValidatedProduct="COMMODITY_VALIDATED_PRODUCT",t.ValidatingProduct="COMMODITY_VALIDATING_PRODUCT",t.CalculatedPreis="COMMODITY_CALCULATED_PREIS",t.CalculatingPreis="COMMODITY_CALCULATING_PREIS",t.PreisTabelleLoaded="COMMODITY_PREISTABELLE_LOADED",t.ContactPersonsLoaded="COMMODITY_CONTACT_PERSONS_LOADED",t.CalculatedHeatProduct="COMMODITY_CALCULATED_HEAT_PRODUCT"}(y||(y={}));const P={calculateProduct:(t,e,a,n,r,s)=>async i=>{i({type:y.CalculatingProduct,isReloading:s});let c=!1,u=null,d=0;const l=await o.q.getLocation(t,e,a,n,r);l.status>=200&&l.status<300&&(c=!0,u=l.data,d=l.data.amount),i({type:y.CalculatedProduct,payload:u,isLocated:c,amount:d})},calculateProductById:t=>async e=>{e({type:y.CalculatingProduct});let a=!1,n=null,r=0;const s=await o.q.getLocationAreaById(t);s.status>=200&&s.status<300&&(a=!0,n=s.data,r=s.data.amount),e({type:y.CalculatedProduct,payload:n,isLocated:a,amount:r})},validateProduct:(t,e,a)=>async(n,o)=>{if(!o().isProductValidating){n({type:y.ValidatingProduct});const o=await r.a.getProduct(t);let s=null,i=!1,c=!1;if(o.status>=200&&o.status<300){s=o.data;const t=[];let r=[];c=a>=o.data.minKWh&&a<=o.data.maxKWh;for(const a of o.data.productVariantAreas)e&&e.includes(a.areaId)&&(i=!0,t.push(a.priceId),r=a.links);n({type:y.ValidatedProduct,isValidInLocation:i,product:s,priceId:t[0],links:r})}}},calculatePreis:(t,e,a,n,o,r)=>async c=>{c({type:y.CalculatingPreis});let u=!1;const p=await s.Y.getTotalPriceAnnualAndMonthlyById(t,e,a,n);u=!0;const h=await l.K.getBonusTotal(o,r,e+a);p.status>=200&&p.status<300?h.status>=200&&h.status<300&&h.data?c({type:y.CalculatedPreis,price:p.data,isCalculated:u,bonus:h.data}):c({type:y.CalculatedPreis,price:p.data,isCalculated:u,bonus:new d}):404===p.status?c({type:y.CalculatedPreis,price:new i,isCalculated:u,bonus:new d,isAboveLimit:!0}):c({type:y.CalculatedPreis,price:new i,isCalculated:u,bonus:new d})},loadPreisTabelle:(t,e)=>async a=>{let n=!1;const o=await s.Y.getPriceById(t,e);if(o.status>=200&&o.status<300){const t=o.data.priceLevels;if(e!==c.D7.Other)for(const a of t.filter((t=>t.showInPriceTable)))for(const t of a.priceComponents.filter((t=>t.priceCategory===e)))t.showInPriceTable=!1;n=!0,a({type:y.PreisTabelleLoaded,loaded:n,data:o.data})}},loadContactPersons:(t,e,a,n)=>async o=>{let r=[];const s=await p.f.getContactPersons(t,e,a,n);200===s.status&&(r=s.data),o({type:y.ContactPersonsLoaded,payload:r})},calculateHeatProduct:()=>async t=>{t({type:y.CalculatingProduct});let e=!1,a=null;const n=await o.q.getLocation("","","","","");n&&200===n.status&&(e=!0,a=n.data);let r=new h.r,s=0;const i=await o.q.getHeat();i&&200===i.status&&(r=i.data,s=parseInt(r.consumptionHT,10)),t({type:y.CalculatedHeatProduct,payload:r}),t({type:y.CalculatedProduct,payload:a,isLocated:e,amount:s})}},g={indicators:{operationLoading:!1,operationReLoading:!1,priceLoading:!1},currentLocation:new n.A,isLocated:!1,productValidationCompleted:!1,isProductValidInLocation:!1,currentProduct:null,isPreisCalculated:!1,currentPriceTotal:new i,currentBonusTotal:new d,isPreisTabelleLoaded:!1,amount:0,amountNT:0,currentPrice:null,currentPriceId:null,links:[],contactPersons:[],isContactPersonsLoaded:!1,isProductValidating:!1,heatInfo:new h.r,isPreisAboveLimit:!1},C=(t,e)=>{const a=e,o=()=>({...t.indicators});let r;switch(a.type){case y.CalculatingProduct:return r=o(),r.operationLoading=!0,r.operationReLoading=a.isReloading,{...t,indicators:r,isPreisCalculated:!1,isPreisTabelleLoaded:!1,currentPriceId:"",productValidationCompleted:!1,currentLocation:new n.A,isLocated:!1,isContactPersonsLoaded:!1,contactPersons:[]};case y.CalculatedProduct:return r=o(),r.operationLoading=!1,a.payload&&a.payload.areas&&0===a.payload.areas.length?{...t,currentLocation:a.payload,indicators:r,isLocated:a.isLocated,amount:a.amount,currentBonusTotal:new d,currentPriceTotal:new i}:{...t,currentLocation:a.payload,indicators:r,isLocated:a.isLocated,amount:a.amount};case y.ValidatedProduct:return r=o(),r.operationLoading=!1,{...t,indicators:r,isProductValidInLocation:a.isValidInLocation,currentProduct:a.product,productValidationCompleted:!0,currentPriceId:a.priceId,links:a.links,isProductValidating:!1};case y.ValidatingProduct:return r=o(),r.operationLoading=!0,{...t,isProductValidating:!0};case y.CalculatedPreis:return r=o(),r.priceLoading=!1,{...t,isPreisCalculated:a.isCalculated,
1currentPriceTotal:a.price,currentBonusTotal:a.bonus,indicators:r,isPreisAboveLimit:a.isAboveLimit};case y.CalculatingPreis:return r=o(),r.priceLoading=!0,{...t,isPreisCalculated:!1,indicators:r,isPreisAboveLimit:!1};case y.PreisTabelleLoaded:return r=o(),{...t,isPreisTabelleLoaded:a.loaded,currentPrice:a.data};case y.ContactPersonsLoaded:return{...t,contactPersons:a.payload,isContactPersonsLoaded:!0};case y.CalculatedHeatProduct:{const e=parseInt(a.payload.consumptionHT,10),n=parseInt(a.payload.consumptionNT,10);return{...t,heatInfo:a.payload,amount:e,amountNT:n}}}return t||g}},25043:(t,e,a)=>{a.d(e,{KU:()=>r,pW:()=>n,t$:()=>o});const n=(t,e)=>{if(!o(t))return!1;return parseInt(t,10)>=parseInt(e,10)},o=t=>/^\d*$/.test(t),r=t=>t<1e3?`${t.toString()} bytes`:t>=1e3&&t<1e6?`${(t/1e3).toFixed(2)} KB`:`${(t/1e6).toFixed(2)} MB`},35901:(t,e,a)=>{let n;a.d(e,{W:()=>n}),function(t){t[t.NeukundenBonus=0]="NeukundenBonus",t[t.Bonus=1]="Bonus",t[t.OnlineBonus=2]="OnlineBonus"}(n||(n={}))},36143:(t,e,a)=>{a.d(e,{K:()=>r});var n=a(72505),o=a.n(n);const r=new class{constructor(){this.getBonusTotal=async function(t,e){const a=`/umbraco/api/bonus/GetBonusTotal?productId=${t}&zipCode=${e}&consumptionTotal=${arguments.length>2&&void 0!==arguments[2]?arguments[2]:0}`;try{return await o().get(a)}catch(n){return n.response}}}}},45059:(t,e,a)=>{a.d(e,{D7:()=>o,Nf:()=>n,SJ:()=>s});let n,o;var r;let s;!function(t){t[t.Cent=0]="Cent",t[t.Euro=1]="Euro"}(n||(n={})),function(t){t[t.Other=0]="Other",t[t.HT=1]="HT",t[t.NT=2]="NT"}(o||(o={})),function(t){t[t.Other=0]="Other",t[t.Monthly=1]="Monthly",t[t.Annual=2]="Annual"}(r||(r={})),function(t){t[t.UnspecifiedPrice=0]="UnspecifiedPrice",t[t.BasePrice=1]="BasePrice",t[t.ConsumptionPrice=2]="ConsumptionPrice"}(s||(s={}))},50374:(t,e,a)=>{a.d(e,{F:()=>o});var n=a(72505);const o=a.n(n)().create();o.interceptors.request.use((t=>(t.headers.common["X-XSRF-TOKEN"]=(document.querySelectorAll("[name='__RequestVerificationToken']")[0]||{}).value,t.withCredentials=!0,t.baseURL="/umbraco/api",t)),(t=>t))},50494:(t,e,a)=>{a.d(e,{r:()=>o});var n=a(50671);class o{constructor(){this.heatType=0,this.gaugeSeparate=0,this.gaugeType=0,this.consumptionHT="",this.consumptionNT="",this.heatPumpParagraph14Choice=n.Q.None}}},50671:(t,e,a)=>{let n;a.d(e,{Q:()=>n}),function(t){t[t.None=0]="None",t[t.Yes=1]="Yes",t[t.No=2]="No"}(n||(n={}))},55683:(t,e,a)=>{a.r(e),a.d(e,{DownloadContainer:()=>u,default:()=>d});var n=a(96540),o=a(80083),r=a(24753),s=a(63601),i=a(77426),c=a(74848);class u extends n.Component{render(){const t=this.props.links;return this.props.isProductValidInLocation&&this.props.isLocated&&!(0,s.I)(this.props.currentProduct)&&this.props.isPreisCalculated&&(0,c.jsx)(i.A,{media:t})}}const d=(0,o.Ng)((t=>t.tarifDetail),r.mF)(u)},60838:(t,e,a)=>{a.d(e,{f:()=>r});var n=a(72505),o=a.n(n);const r=new class{constructor(){this.getContactPersons=async function(){const t=`/umbraco/api/contactPersons/getContactPersons?consumption=${arguments.length>0&&void 0!==arguments[0]?arguments[0]:""}&locationId=${arguments.length>1&&void 0!==arguments[1]?arguments[1]:""}&customerType=${arguments.length>2&&void 0!==arguments[2]?arguments[2]:null}&division=${arguments.length>3&&void 0!==arguments[3]?arguments[3]:null}`;try{return await o().get(t)}catch(e){return e.response}}}}},63601:(t,e,a)=>{a.d(e,{I:()=>n});const n=t=>{if("number"===typeof t||"boolean"===typeof t)return!1;if(void 0===t||null===t)return!0;if(void 0!==t.length)return 0===t.length;let e=0;for(const a in t)t.hasOwnProperty(a)&&e++;return 0===e}},63961:(t,e,a)=>{a.d(e,{Y:()=>o});var n=a(50374);const o={getPriceById:async(t,e)=>{try{return await n.F.get(`/price/GetPriceByID?id=${t}&categoryToHide=${e}`)}catch(a){return a.response}},getTotalPriceAnnualAndMonthlyById:async function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3?arguments[3]:void 0;try{return await n.F.get(`/price/GetTotalPriceAnnualAndMonthlyById?id=${t}&consumptionNT=${e}&consumptionHT=${a}&cityId=${o}`)}catch(r){return r.response}}}},64874:(t,e,a)=>{a.d(e,{A:()=>n});
1class n{constructor(){this.selectedLocation=void 0,this.locations=void 0,this.areas=void 0,this.amount=void 0,this.routings=void 0}}},64971:(t,e,a)=>{a.d(e,{t:()=>s});var n=a(72505),o=a.n(n);const r="/umbraco/api/helper";const s=new class{constructor(){this.getUrlbyUdi=async t=>{const e=`${r}/getUrlByUdi?udi=${t}`;try{return await o().get(e)}catch(a){return a.response}},this.getMediaByUdi=async t=>{const e=`${r}/getMediabyUdi?udi=${t}`;try{return await o().get(e)}catch(a){return a.response}},this.getTagsByGroupName=async t=>{const e=`${r}/getTagsByGroupName?group=${t}`;try{return await o().get(e)}catch(a){return a.response}},this.getDropdownValuesByName=async t=>{const e=`${r}/getDropdownValuesByName?datatypeName=${t}`;try{return await o().get(e)}catch(a){return a.response}}}}},77375:(t,e,a)=>{a.d(e,{q:()=>i});var n=a(72505),o=a.n(n),r=a(63601);const s="/umbraco/api/regionalization";const i=new class{constructor(){this.getCitys=async t=>{const e=`${s}/getCitys?plz=${t}`;try{return await o().get(e)}catch(a){return a.response}},this.getLocation=async(t,e,a,n,i)=>{let c="&cityPart=";(0,r.I)(a)||(c=`&cityPart=${a}`);const u=`${s}/getLocation?plz=${t}&city=${e}${c}&amount=${n}&division=${i}`;try{return await o().get(encodeURI(u))}catch(d){return d.response}},this.getLocationById=async t=>{try{return await o().get(`${s}/getLocationById?id=${t}`)}catch(e){return e.response}},this.getLocationAreaById=async t=>{try{return await o().get(`${s}/getLocationAreaById?id=${t}`)}catch(e){return e.response}},this.saveHeat=async t=>{try{const e=document.querySelectorAll("[name='__RequestVerificationToken']")[0].value;return await o().post("/umbraco/surface/regionalizationSurface/saveHeat",t,{headers:{"X-XSRF-TOKEN":e},withCredentials:!0})}catch(e){return e.response}},this.deleteHeat=async()=>{try{const t=document.querySelectorAll("[name='__RequestVerificationToken']")[0].value;return await o().post("/umbraco/surface/regionalizationSurface/removeHeat",{headers:{"X-XSRF-TOKEN":t},withCredentials:!0})}catch(t){return t.response}},this.getHeat=async()=>{try{return await o().get("/umbraco/surface/regionalizationSurface/getHeat")}catch(t){return t.response}},this.clearHeat=async()=>{try{const t=document.querySelectorAll("[name='__RequestVerificationToken']")[0].value;return await o().post("/umbraco/surface/regionalizationSurface/clearHeat",null,{headers:{"X-XSRF-TOKEN":t},withCredentials:!0})}catch(t){return t.response}}}}},77426:(t,e,a)=>{a.d(e,{A:()=>c});var n=a(96540),o=a(64971),r=a(25043),s=a(74848);class i extends n.Component{constructor(t){super(t),this.getType=t=>{switch(t){case"media":return"link link--download";case"link":return"link link--internal"}},this.state={url:"",size:0,extension:""}}async componentDidMount(){let t=this.props.link.value;if(this.props.link&&this.props.link.value){if(this.props.link.value.startsWith("umb://media")){const e=await o.t.getMediaByUdi(t);e.status>=200&&e.status<=300&&(this.setState({url:e.data.url,size:e.data.size,extension:e.data.extension}),t=e.data)}if(this.props.link.value.startsWith("umb://content")){const e=await o.t.getUrlbyUdi(t);e.status>=200&&e.status<=300&&(this.setState({url:e.data.url}),t=e.data)}}}render(){const t=`${this.props.link.title} (${this.state.extension.toUpperCase()}, ${(0,r.KU)(this.state.size)})`;return(0,s.jsx)("li",{children:(0,s.jsx)("a",{href:this.state.url,title:this.props.link.title,className:this.getType(this.props.link.type),target:"_blank",rel:"noreferrer noopener",children:t})},this.props.link.id)}}const c=t=>{let{media:e,ariaLabel:a}=t;return(0,s.jsx)("div",{"data-tpl":"ll01",className:"indention--none",children:(0,s.jsx)("ul",{"aria-label":a,children:null===e||void 0===e?void 0:e.map((t=>(0,s.jsx)(i,{link:t},t.id)))})})}},96051:(t,e,a)=>{a.d(e,{a:()=>s});var n=a(72505),o=a.n(n);const r="/umbraco/api/product";const s=new class{constructor(){this.getProduct=async t=>{const e=`${r}/getProduct?id=${t}`;try{return await o().get(e)}catch(a){return a.response}},this.getProductById=t=>o().get(`${r}/getProduct?id=${t}`),this.getUmbracoProducts=async t=>{const e=`${r}/getUmbracoProducts?repoUdi=${t}`;try{return await o().get(e)}catch(a){return a.response}},this.getProductOrderForm=async t=>{try{return await o().get(`${r}/GetProductOrderForm?productId=${t}`)}catch(e){return e.response}}}}}}]);

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.