PageSourceSearch

https://www.enercity.de/_next/static/chunks/2323.3ea5f81be69c7ef9.js

js enercity.de collected 2026-09-24 19:59:33 UTC 10,556 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2323,4075,7291],{4234:e=>{e.exports={content:"BoxLayout-module-content",container:"BoxLayout-module-container",inner:"BoxLayout-module-inner",logoWrapper:"BoxLayout-module-logo-wrapper",title:"BoxLayout-module-title",footer:"BoxLayout-module-footer",footerNavList:"BoxLayout-module-footer-nav-list"}},5593:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>p});var n=r(49222),s=r(8413),i=r(46730),a=r(56116),o=r(80104),l=r(77766),c=r(22897),u=r(69717);async function d(e){let t=new URL("/api/optin-campaigns/recipient/create",u.Ay.apiBaseUrl);try{let r=await fetch(t,{method:"POST",body:e});if(!r.ok)throw await r.json();i.v.info(await r.text())}catch(e){if(e instanceof Object&&"errorType"in e&&"recipient-already-exists"===e.errorType)return void i.v.info("Recipient already exists");i.v.error(JSON.stringify(e))}}var f=r(55717);let p=({path:e,props:{title:t,landingPageId:r,successPageUrl:u,...p}})=>{let h=(0,l.useRef)(null),[m,x]=(0,l.useState)("initial"),{params:C}=(0,o.s)(),v=C?.recipient_id?.toString(),y="qr_letter"!==p.specialFeature;(0,a.E)();let g=async e=>{if(e.preventDefault(),!v){i.v.error("No recipient ID available"),x("error");return}x("pending");try{let t=new FormData(e.currentTarget);if(!y){await d(t),x("success");return}if(await (0,c.O)(t),u){window.location.href=u;return}}catch(e){i.v.error("Error sending data:",e),x("error")}};return(0,l.useEffect)(()=>{v&&r&&y&&h.current&&d(new FormData(h.current))},[v,r,y]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.A,{path:e,title:t,noindex:!0}),(0,n.jsxs)("form",{onSubmit:g,ref:h,children:[(0,n.jsx)("input",{type:"hidden",name:"landingpage_id",value:r}),(0,n.jsx)("input",{type:"hidden",name:"recipient_id",value:v}),(0,n.jsx)(f.A,{...p,status:m})]})]})}},22897:(e,t,r)=>{"use strict";r.d(t,{O:()=>s});var n=r(69717);async function s(e){let t=new URL("/api/optin-campaigns/recipient/confirm",n.Ay.apiBaseUrl).toString(),r=await fetch(t,{method:"POST",body:e});if(!r.ok){let e=await r.json();throw await e.error}}},39124:e=>{e.exports={button:"OptInCampaignPage-module-button"}},44075:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(49222),s=r(46730),i=r(91776),a=r(77766);let o=({autoplay:e=!1,loop:t=!1,name:o,animationData:l,className:c,playing:u,pauseMode:d="reset",targetFrame:f,speed:p=1,startInView:h=!1,parentRef:m,onEnterFrame:x,onLoaded:C})=>{let[v,y]=(0,a.useState)(),[g,j]=(0,a.useState)(),w=(0,a.useRef)(null),b=(0,i.A)(m);return(0,a.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();y(t.default)}else y(e.default)}catch(e){s.v.warn(e,"Failed lazy load of lottie-web, will not be able to play lottie animations")}})()},[l]),(0,a.useEffect)(()=>{v&&w&&w.current&&j(v.loadAnimation({container:w.current,loop:t,autoplay:e,name:o,animationData:l}))},[v,l,e,t,o,w]),(0,a.useEffect)(()=>()=>{g?.destroy()},[g]),(0,a.useEffect)(()=>{C&&g&&C()},[g,C]),(0,a.useEffect)(()=>{if(g&&"function"==typeof x){let e=e=>(x(e,g),e.direction);return g.addEventListener("enterFrame",e),()=>{if(g)try{g.removeEventListener("enterFrame",e)}catch{}}}},[g,x]),(0,a.useEffect)(()=>{if(g){if(u)g.play();else if(!1===u)switch(d){case"pause":g.pause();break;case"finishAndPause":g.addEventListener("loopComplete",()=>g.pause());break;default:g.stop()}}},[u,g,d]),(0,a.useEffect)(()=>{g&&g.setSpeed(p)},[p,g]),(0,a.useEffect)(()=>{if("number"==typeof f&&g){let{timeCompleted:e,currentFrame:t}=g,r=0,n=Math.round(t);for(;n!==f;)n===e&&(n=0),n+=1,r+=1;let s=0,i=Math.round(t);for(;i!==f;)0===i&&(i=e),i-=1,s+=1;g.setDirection(r<s?1:-1);let a=e=>{Math.round(e.currentTime)===f&&(g.pause(),g.removeEventListener("enterFrame",a))};return g.play(),g.addEventListener("enterFrame",a),()=>{try{g.removeEventListener("enterFrame",a),g.pause()}catch{}}}},[f,g]),(0,a.useEffect)(()=>{h&&(b?g?.play():g?.pause())},[h,g,b]),(0,n.jsx)("span",{ref:w,className:c})}},55717:(e,t,r)=>{"use strict";r.d(t,{A:()=>v});var n=r(49222),s=r(83824),i=r(32245),a=r(82947),o=r(3113),l=r(65685),c=r(37733),u=r(39124),d=r.n(u),f=r(93726),p=r(13491),h=r.n(p);let m=new Map([["energy_costs_competition",h()(()=>Promise.all([r.e(1088),r.e(9862),r.e(2966)]).then(r.bind(r,62966)).then(e=>
1e.EnergyCostsCompetitionFields),{loadableGenerated:{webpack:()=>[62966]}})],["energy_news_phone",h()(()=>Promise.all([r.e(1088),r.e(9862),r.e(9070)]).then(r.bind(r,69070)).then(e=>e.EnergyNewsPhoneFields),{loadableGenerated:{webpack:()=>[69070]}})],["qr_letter",h()(()=>r.e(244).then(r.bind(r,90244)).then(e=>e.QRLetterFields),{loadableGenerated:{webpack:()=>[90244]}})]]),x={success:{headline:"Bitte \xfcberpr\xfcfen Sie Ihr Postfach",description:"Wir haben Ihnen soeben eine E-Mail zur Best\xe4tigung Ihrer Zustimmung gesendet. Bitte klicken Sie auf den Link in der E-Mail, um Ihre Zustimmung zu best\xe4tigen."},error:{headline:"Ein Fehler ist aufgetreten",description:"Bitte versuchen Sie es sp\xe4ter erneut."}},C={},v=({buttonLabel:e="Zustimmung best\xe4tigen",headline:t,intro:r,mainContent:u,specialFeature:p,status:h})=>{let v=p&&m.has(p)?m.get(p):null;if("success"===h||"error"===h)return(0,n.jsx)(f.X,{children:(0,n.jsx)(i.A,{...(p&&C[p]?.[h])??x[h],type:h})});return(0,n.jsxs)(f.X,{children:[(0,n.jsxs)("section",{children:[(0,n.jsx)(a.A.Headline,{children:t}),(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:(0,c.b)((0,s.N)(r))}})]}),v&&(0,n.jsx)(v,{}),(0,n.jsx)(o.A,{className:d().button,state:l._.Initial,children:e}),(0,n.jsx)("section",{dangerouslySetInnerHTML:{__html:(0,c.b)((0,s.N)(u))}})]})}},56116:(e,t,r)=>{"use strict";r.d(t,{E:()=>o});var n=r(77766),s=r(3558),i=r(86252),a=r(24208);let o=(e=[{event:"pageView"}])=>{let t=(0,i.A)(),{pushDataLayerEvent:r}=(0,s.A)(),o=(0,n.useRef)("");(0,a.U)(()=>{o.current&&o.current===t||e.forEach(e=>{r(e)}),o.current=t},[r,t])}},67291:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s});var n=r(49222);let s=({id:e="enercity-logo",solidFill:t=!1,...r})=>(0,n.jsxs)("svg",{viewBox:"0 0 143 34",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r,children:[(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M100.254 2.73704C100.254 1.22189 101.479 0 102.998 0C104.468 0 105.742 1.22189 105.742 2.73704C105.742 4.25219 104.517 5.47409 102.998 5.47409C101.479 5.47409 100.254 4.25219 100.254 2.73704ZM109.401 2.44297V19.7428C109.401 24.7405 111.927 28.3446 118.698 28.3446C119.607 28.3446 120.062 28.3446 120.769 28.2966L120.668 23.9716C120.011 24.0197 119.708 24.0197 118.597 24.0197C115.515 24.0197 114.15 22.7702 114.15 19.2142V12.2462H123.396L129.56 27.9121L129.308 28.4407C128.954 29.2096 128.55 29.6421 126.883 29.6421C125.923 29.6421 124.761 29.594 123.599 29.4979L123.497 33.7268C124.811 33.8229 126.074 33.8709 127.388 33.8709C131.228 33.8709 133.148 32.3812 134.916 27.9121L142.697 8.16151H137.594L132.289 22.4819L128.146 11.2851C127.438 9.41094 126.529 8.16151 123.7 8.16151H114.15V2.39491H109.401V2.44297ZM10.1298 28.739C4.36282 28.739 0 24.4224 0 18.4751C0 12.5757 4.36282 8.21113 10.0796 8.21113C16.5988 8.21113 19.758 12.8635 19.758 18.4751C19.758 18.8587 19.7079 19.77 19.6577 20.2976H4.96458C5.36576 22.6957 7.62239 24.5663 10.1298 24.5663C12.3864 24.5663 14.8436 23.4152 15.9468 21.5926L19.5073 24.3744C17.1504 27.2042 14.4424 28.739 10.1298 28.739ZM66.5919 28.3968V16.8622C66.5919 11.8157 69.0785 8.2592 75.7427 8.21113C76.0411 8.21113 76.5384 8.21113 76.8368 8.2592L76.7374 12.5847C76.24 12.5366 75.7427 12.5366 75.6432 12.5366C72.6593 12.5366 71.2668 13.7862 71.2668 17.3428V28.3968H66.5919ZM105.01 28.3968H100.254V8.55326H105.01V28.3968ZM10.2615 12.3167C13.0057 12.3167 14.8019 13.8807 15.0015 16.7644H5.12246C5.6214 14.174 7.56726 12.3167 10.2615 12.3167ZM53.8024 12.3167C56.5466 12.3167 58.3428 13.8807 58.5423 16.7644H48.6633C49.1623 14.174 51.1081 12.3167 53.8024 12.3167ZM53.6706 28.739C47.9037 28.739 43.5409 24.4224 43.5409 18.4751C43.5409 12.5757 47.9538 8.21113 53.6205 8.21113C60.1396 8.21113 63.2989 12.8635 63.2989 18.4751C63.2989 18.8587 63.2488 19.77 63.1986 20.2976H48.5055C48.9066 22.6957 51.2134 24.5663 53.6706 24.5663C55.9273 24.5663 58.3845 23.4152 59.4877 21.5926L63.0482 24.3744C60.6913 27.2042 57.9833 28.739 53.6706 28.739ZM77.9345 18.4751C77.9345 24.2305 82.7089 28.739 88.804 28.739C92.461 28.739 95.7117 27.0123 97.6925 24.3744L94.0863 21.5926C93.0197 23.2233 91.0896 24.3744 88.804 24.3744C85.2485 24.3744 82.7597 21.7844 82.7597 18.4751C82.7597 15.1177 85.2485 12.5757 88.804 12.5757C91.0896 12.5757 93.0197 13.7268 94.0863 15.3575L97.6925 12.5757C95.7117 9.93777 92.461 8.21113 88.804 8.21113C82.7089 8.21113 77.9345 12.7196 77.9345 18.4751ZM22.6852 28.3968V17.0928C22.6852 12.2958 25.2987 8.21113 31.7821 8.21113C38.2656 8.21113 40.9796 12.2958 40.9796 17.0928V28.3968H36.2552V16.8079C36.2552 14.1006 34.5967 12.3908 31.8324 12.3908C29.0681 12.3908 27.4096 14.1006 27.4096 16.8079V28.3968H22.6852Z",fill:t?"currentColor":`url(#${e}-gradient0)`}),(0,n.jsx)("defs",{children:(0,n.jsxs)("linearGradient",{id:`${e}-gradient0`,x1:"-1.33856",y1:"35.0403",x2:"142.697",y2:"35.0403",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"#990099"}),(0,n.jsx)("stop",{offset:"1",stopColor:"#FF0000"})]})})]})},82947:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(49222),s=r(18915),i=r(25765),a=r(4234),o=r.n(a);let l=Object.assign(({children:e})=>(0,n.jsx)("div",{className:o().container,children:(0,n.jsxs)("div",{className:o().inner,children:[(0,n.jsx)("main",{className:o().content,children:e}),(0,n.jsx)("footer",{className:o().footer,children:(0,n.jsx)("nav",{children:(0,n.jsxs)("ul",{className:o().footerNavList,children:[(0,n.jsx)("li",{children:(0,n.jsx)(i.A,{to:"/impressum",children:"Impressum"})}),(0,n.jsx)("li",{children:(0,n.jsx)(i.A,{to:"/datenschutz",children:"Datenschutz"})}),(0,n.jsx)("li",{children:(0,n.jsx)(s.A,{})})]})})})]})}),{LogoWrapper:({children:e})=>(0,n.jsx)("span",{className:o().logoWrapper,children:e}),Headline:({children:e})=>(0,n.jsx)("h1",{className:o().title,children:e})})},91776:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(77766);
1function s(e){let t=(0,n.useRef)(null),[r,s]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{t.current=new IntersectionObserver(([e])=>s(e.isIntersecting))},[]),(0,n.useEffect)(()=>(e?.current&&t.current?.observe(e.current),()=>{t.current?.disconnect()}),[e]),r}},93726:(e,t,r)=>{"use strict";r.d(t,{X:()=>a});var n=r(49222),s=r(82947),i=r(67291);let a=({children:e})=>(0,n.jsxs)(s.A,{children:[(0,n.jsx)(s.A.LogoWrapper,{children:(0,n.jsx)(i.default,{})}),e]})}}]);
2//# sourceMappingURL=2323.3ea5f81be69c7ef9.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.