PageSourceSearch

https://miaenergia.repower.com/chunk-Y5ZS42M5.js

js repower.com collected 2026-09-24 17:13:15 UTC 2,894 bytes, 1 lines download raw bytes

1import{q as M,u as g}from"./chunk-V5UNYABO.js";import{P as d,T as D,Vb as h,da as f,dg as u,ig as l,jg as s,kg as m,th as y}from"./chunk-SCIFG7YC.js";import{a as S}from"./chunk-IR53HPP2.js";import{g as b}from"./chunk-QDSGMOWV.js";var x=(()=>{class a{constructor(){this.energyboardConfigService=D(y),this.changeableProducts=h(()=>this.energyboardConfigService.config().powerProducts?.map(e=>({leistkats:e.idLeistKats,tarifGroup:M.fromStringOrDefault(e.group)}))??[])}mapContractsToEnergyProducts(e){let t=[];if(!e||e.length<1)return t;let o=e.filter(r=>!r.leistungskategorie?.toLowerCase().includes("r\xFCcklieferung")&&(r.vertragsartDescription==="Energie"||r.vertragsartDescription==="All-In-One"));if(o.length<1)return t;let c=o.find(r=>r.leistungskategorie&&r.leistungskategorie.toLowerCase().includes("markt"));if(c){let r=this.createMarketCustomerEnergyProduct(c);r&&t.push(r)}else{let r=o[0];for(let p of r.tarifs??[]){let i=this.findProduct(p);i&&!t.some(k=>k.id===i.id)&&t.push({id:i.id,color:i.color,percentage:p.wert??void 0,isMarketCustomerProduct:!1,energySources:i.energySources,logo:i.logo})}}return t}findProduct(e){if(!e.verrechnungstyp)return;let t=e.verrechnungstyp.toLowerCase();return(this.energyboardConfigService.config().energyProducts??[]).find(o=>t.includes(o.verrechnungstyp??""))}createMarketCustomerEnergyProduct(e){let t=e.tarifs?.map(o=>this.findProduct(o)).filter(o=>o!==void 0);return t&&t.length>=1?{id:t[0].id,color:t[0].color,percentage:100,isMarketCustomerProduct:!0,energySources:t[0].energySources,logo:t[0].logoMarketCustomer}:null}static{this.\u0275fac=function(t){return new(t||a)}}static{this.\u0275prov=d({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();var n=b(S(),1);var U=(()=>{class a{constructor(){this.fromStartDate=(0,n.default)().subtract(1,u.Month),this.toStartDate=(0,n.default)(),this.fromDateModel=f({id:"stats-fromDate",date:this.fromStartDate,empty:!1,format:s.DMY,mondayFirst:!0,widthWeekDays:!0,selectableWeekDays:!1,quickSelectors:!1,position:m.Bottom,min:(0,n.default)("01.01.2011",s.DMY),max:this.toStartDate,view:l.Day()}),this.toDateModel=f({id:"stats-toDate",date:this.toStartDate,empty:!1,format:s.DMY,mondayFirst:!0,widthWeekDays:!0,selectableWeekDays:!1,quickSelectors:!1,position:m.Bottom,min:this.fromStartDate,max:this.toStartDate,view:l.Day()})}selectedDateChanged(e){let t=this.fromDateModel(),o=(0,n.default)(t.date,s.DMY).add(1,u.Day);e.id==="stats-fromDate"&&t.date.isValid()&&!this.toDateModel().min.isSame(o)&&g.objUpdate(this.toDateModel,{min:o});let c=this.toDateModel(),r=(0,n.default)(c.date,s.DMY).subtract(1,u.Day);e.id==="stats-toDate"&&c.date.isValid()&&!this.fromDateModel().max.isSame(r)&&g.objUpdate(this.fromDateModel,{max:r})}static{this.\u0275fac=function(t){return new(t||a)}}static{this.\u0275prov=d({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();export{U as a,x as b};

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.