PageSourceSearch

https://www.enercity.de/_next/static/chunks/3529.88f048736d66f4cb.js

js enercity.de collected 2026-09-24 19:58:02 UTC 3,432 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3529,4075,5910],{44075:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var a=r(49222),n=r(46730),i=r(91776),s=r(77766);let o=({autoplay:e=!1,loop:t=!1,name:o,animationData:l,className:u,playing:f,pauseMode:c="reset",targetFrame:p,speed:d=1,startInView:m=!1,parentRef:v,onEnterFrame:y,onLoaded:h})=>{let[E,L]=(0,s.useState)(),[b,w]=(0,s.useState)(),A=(0,s.useRef)(null),F=(0,i.A)(v);return(0,s.useEffect)(()=>{l&&(async()=>{try{let e=await r.e(1448).then(r.t.bind(r,72369,23));if("function"==typeof e){let t=await e();L(t.default)}else L(e.default)}catch(e){n.v.warn(e,"Failed lazy load of lottie-web, will not be able to play lottie animations")}})()},[l]),(0,s.useEffect)(()=>{E&&A&&A.current&&w(E.loadAnimation({container:A.current,loop:t,autoplay:e,name:o,animationData:l}))},[E,l,e,t,o,A]),(0,s.useEffect)(()=>()=>{b?.destroy()},[b]),(0,s.useEffect)(()=>{h&&b&&h()},[b,h]),(0,s.useEffect)(()=>{if(b&&"function"==typeof y){let e=e=>(y(e,b),e.direction);return b.addEventListener("enterFrame",e),()=>{if(b)try{b.removeEventListener("enterFrame",e)}catch{}}}},[b,y]),(0,s.useEffect)(()=>{if(b){if(f)b.play();else if(!1===f)switch(c){case"pause":b.pause();break;case"finishAndPause":b.addEventListener("loopComplete",()=>b.pause());break;default:b.stop()}}},[f,b,c]),(0,s.useEffect)(()=>{b&&b.setSpeed(d)},[d,b]),(0,s.useEffect)(()=>{if("number"==typeof p&&b){let{timeCompleted:e,currentFrame:t}=b,r=0,a=Math.round(t);for(;a!==p;)a===e&&(a=0),a+=1,r+=1;let n=0,i=Math.round(t);for(;i!==p;)0===i&&(i=e),i-=1,n+=1;b.setDirection(r<n?1:-1);let s=e=>{Math.round(e.currentTime)===p&&(b.pause(),b.removeEventListener("enterFrame",s))};return b.play(),b.addEventListener("enterFrame",s),()=>{try{b.removeEventListener("enterFrame",s),b.pause()}catch{}}}},[p,b]),(0,s.useEffect)(()=>{m&&(F?b?.play():b?.pause())},[m,b,F]),(0,a.jsx)("span",{ref:A,className:u})}},57766:e=>{e.exports={main:"LottieWrapper-module-main",noScale:"LottieWrapper-module-no-scale",center:"LottieWrapper-module-center",left:"LottieWrapper-module-left",right:"LottieWrapper-module-right"}},91776:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var a=r(77766);function n(e){let t=(0,a.useRef)(null),[r,n]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{t.current=new IntersectionObserver(([e])=>n(e.isIntersecting))},[]),(0,a.useEffect)(()=>(e?.current&&t.current?.observe(e.current),()=>{t.current?.disconnect()}),[e]),r}},93529:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>p});var a=r(49222),n=r(46730),i=r(3638),s=r(77766),o=r(44075),l=r(57766),u=r.n(l),f=r(83195);let c=async e=>{if(!e)return null;try{let t=await fetch(e);return await t.json()}catch(t){return n.v.error(`Failed to load lottie animation data from ${e}`,t),null}},p=({animationName:e,animationData:t,animationAsset:r,startInView:l=!1,loop:p=!0,align:d="left",noScale:m,className:v})=>{let y,h=(0,s.useRef)(null),{data:E,isPending:L}=(y=r?.path,(0,f.I)({queryKey:["lottie-asset",{path:y}],queryFn:()=>c(y),staleTime:1/0,enabled:!!y}));return t||r?.path?(0,a.jsx)("div",{ref:h,className:(0,i.A)(u().main,v,u()[d],{[u().noScale]:m}),children:r&&L?"Lade Animation...":(0,a.jsx)(o.A,{autoplay:!l,loop:p,playing:!l,startInView:l,name:e,animationData:E||(t?JSON.parse(t):E),parentRef:h})}):(n.v.error(`LottieWrapper: No animation data provided for animation "${e}". Please provide "animationAsset".`),null)}}}]);
2//# sourceMappingURL=3529.88f048736d66f4cb.js.map

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.