PageSourceSearch

https://www.polarstern-energie.de/_nuxt/C1i7Jze-.js

js polarstern-energie.de collected 2026-09-24 09:22:16 UTC 3,980 bytes, 2 lines download raw bytes

1import{bD as o,dr as l,dF as f,dG as h,b_ as M,dH as m,dI as g,dJ as b}from"./D0mcFovV.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"777cd10e877c32cfcb2528469cdcbde642cea1f1"};var e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="4ee83af2-5318-4670-ade8-a91da67bface",t._sentryDebugIdIdentifier="sentry-dbid-4ee83af2-5318-4670-ade8-a91da67bface")}catch{}})();const c="currentSerialNumber",E="mainMeterSerialNumber",I="flatMeterSerialNumber";function x(t){const e=t.split(".");return e.length>=3&&e[0]==="items"&&!isNaN(parseInt(e[1]))&&e.slice(2).every(r=>r.length>0)}function F(t){if(!x(t))throw new Error(`Invalid nodeId format: ${t}. Expected format: items.<index>.<field.path>`);return t}class s{originalValue;parsedIndex;fieldPath;constructor(e){this.originalValue=typeof e=="string"?F(e):e,this.parsedIndex=this.extractIndex(),this.fieldPath=this.extractFieldPath()}extractIndex(){const r=this.originalValue.split(".")[1];return r?parseInt(r):null}extractFieldPath(){return this.originalValue.split(".").slice(2)}get index(){return this.parsedIndex}get value(){return this.originalValue}get isValid(){return this.parsedIndex!==null&&!isNaN(this.parsedIndex)}get path(){return this.fieldPath}transformForMarketMeasuringLocation(e,r){if(!this.isValid||this.parsedIndex===null)return this.originalValue;const n=e[this.parsedIndex];return[o.Flat.toString(),o.FlatShadow.toString()].includes(n?.type)?this.transformForFlatMeter(r):this.transformForMainMeter()}transformForFlatMeter(e){if(this.parsedIndex===null)return this.originalValue;const r=this.parsedIndex-e;return this.originalValue.replace(c,I).replace(`.${this.parsedIndex}.`,`.${r}.`)}transformForMainMeter(){return this.originalValue.replace(`.${c}`,`.${E}`)}static from(e){return new s(e)}replaceIndex(e){return this.parsedIndex===null?this:new s(this.originalValue.replace(`.${this.parsedIndex}.`,`.${e}.`))}static construct(e,...r){if(r.length===0||r.some(n=>n.includes(".")))throw new Error("Fields must be non-empty and not contain dots");return new s(`items.${e}.${r.join(".")}`)}}const D=(t,...e)=>s.construct(t,...e).value,R=t=>t.split(`
2`).map(e=>e.split("	").map(r=>r.replace("\r","")));function u(t){return t.flatMap(e=>Array.isArray(e.children)?u(e.children):e)}const V=t=>u(t.flatMap(e=>e.schema)).filter(e=>e.$el!=="label"&&e.$el!=="input"),T=(t,e)=>{const r=V(t),n=r.findIndex(a=>a.id===e);if(n!==-1)return r.slice(n+1).map(a=>a.id)},w={"The contract is not of type tenant power":"Für diesen Vertrag können keine persönlichen Daten nachgetragen werden.","The provided zip code does not match the contract's zip code.":"Die eingegebene Postleitzahl stimmt nicht mit der Postleitzahl des Vertrags überein."},H={...b,...w},y=t=>{const e=m(t,H);return e||g("batchUpload",{message:t}),e??"Ein unbekannter Fehler ist aufgetreten. Bitte wende dich an den Kundenservice."},$=t=>{for(const e of["dd.MM.yy","yy.MM.dd","dd.MM.yyyy","dd.MM.yyyy HH:mm:ss","dd.MM.yyyy HH:mm","dd-MM-yy","dd-MM-yyyy","dd-MM-yyyy HH:mm:ss","dd-MM-yyyy HH:mm","yyyy-MM-dd","yyyy-MM-dd HH:mm:ss","yyyy-MM-dd HH:mm","dd/MM/yy","dd/MM/yyyy","dd-MM-yy","dd-MM-yyyy","ddMMyyyy","yyyyMMdd"]){let r;try{r=f(t,e,new Date)}catch{continue}if(h(r))return M(r,"yyyy-MM-dd")}return t},N=t=>t,S=t=>{const e=new Set(Object.entries(t).filter(([r])=>!r.includes("tariffHistory")).map(([,r])=>r));return Object.fromEntries(Object.entries(t).filter(([r,n])=>!r.includes("tariffHistory")||!e.has(n)))},k=(t,e=N)=>{const r=t?.response?.data?.validationErrors;if(r){const n=S(r);return Object.keys(n).length&&Object.entries(n).forEach(a=>{const i=e(a[0]);l(i)?.setErrors(y(a[1]))}),Object.keys(n).map(a=>{const i=e(a),p=l(i)?.props.label;let d=0;try{d=s.from(i).index||0}catch{}return{label:p||"",inputId:i,index:d,error:y(n[a])}})}};export{I as F,E as M,s as N,$ as a,k as b,D as c,N as d,T as g,R as p};

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.