PageSourceSearch

https://www.bordgaisenergy.ie/_next/static/chunks/5290.96419a0ceaed2ddd.js

js bordgaisenergy.ie collected 2026-10-01 14:41:10 UTC 9,200 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5290],{66829:function(e,s,n){"use strict";n.d(s,{h:function(){return m}});var r=n(70865),t=n(52322);n(86335);var o=n(13922),i=n(48939),a=n(6228),l=n(72670),c=n.n(l),d=n(2784),u=function(e){var s=(0,d.useRef)(null),n=e.success,r=e.title,l=e.subTitle,u=e.responseBody,h=e.footerText,p=e.className,m=e.button,f=e.fillColor,w=e.responseIcon,x=e.size,g=void 0===x?192:x,j=e.hideResponseIcon,v=e.showRewardWarning,_=e.myrewardsWarning,N=e.isOutLine;return(0,d.useEffect)(function(){s.current&&(0,i.k)(s.current,!0)},[]),(0,t.jsxs)("div",{className:"response-message-container__registration "+(n?"success ":"")+p,children:[(0,t.jsx)("h3",{ref:s,className:"section-header__title",children:r}),l&&(0,t.jsx)("h4",{className:"section-header__subtitle",children:l}),j?null:(0,t.jsx)(t.Fragment,{children:w||(n&&!v?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"response-icon",children:(0,t.jsx)(o.fB,{fillColour:f,height:g,width:g})}),u&&c()(u,(0,a.Em)()),h&&c()(h,(0,a.Em)())]}):(0,t.jsxs)("div",{className:"response-icon-container__left",children:[(0,t.jsxs)("div",{className:"response-text__top-container",children:[(0,t.jsx)("div",{className:"response-icon__left",children:v?(0,t.jsx)(o.fB,{className:"response-icon__left__success",fillColour:f,height:g,width:g}):(0,t.jsx)(o.v3,{className:"warning",fillColour:"#f29400",height:g,width:g,isOutLine:void 0!==N&&N})}),(0,t.jsxs)("div",{className:"response-text__left",children:[u&&c()(u,(0,a.Em)()),(0,t.jsx)("div",{className:"response__try-again",children:m}),v?null:h&&c()(h,(0,a.Em)())]})]}),v?(0,t.jsxs)("div",{className:"response__my-rewards-warning",children:[(0,t.jsx)("div",{className:"response-icon__my-rewards-warning",children:(0,t.jsx)(o.v3,{fillColour:"#f29400",height:50,width:50})}),(0,t.jsx)("div",{className:"response-text__my-rewards-warning",children:_&&c()(_,(0,a.Em)())})]}):null]}))})]})},h=n(12524),p=n.n(h),m=function(e){var s=(0,d.useRef)(null),n=e.buttonLabel,l=e.buttonAction,h=e.success,m=e.title,f=e.subTitle,w=e.responseBody,x=e.footerText,g=e.className,j=void 0===g?"":g,v=e.buttonClass,_=e.buttonOrder,N=e.fillColor,b=e.responseIcon,y=e.size,C=void 0===y?192:y,L=e.hideResponseIcon,T=e.isWarningResponse,Z=e.showRewardWarning,P=e.myrewardsWarning,R=e.isOutLine,S=void 0!==R&&R,k=e.buttonWrapperClassName,O=e.isNewBrand,E=n&&l&&n.length>0?(0,t.jsx)("button",{className:p()("button inline",v,{secondary:!_,arrow:!0===h},_),onClick:l,children:n}):"";return(0,d.useEffect)(function(){s.current&&(0,i.k)(s.current,!0)},[]),!0===T||!0===Z?(0,t.jsx)(u,(0,r.Z)({},{success:h,title:m,subTitle:f,responseBody:w,footerText:x,className:j,fillColor:N,responseIcon:b,size:192,hideResponseIcon:L,button:E,isWarningResponse:T,showRewardWarning:Z,myrewardsWarning:P,isOutLine:S})):(0,t.jsxs)("div",{className:p()("response-message-container",{"response-message-container--new-brand":O},h?"success":"error",j),children:[O?(0,t.jsx)("h2",{ref:s,className:"section-header__title",children:m}):(0,t.jsx)("h3",{ref:s,className:"section-header__title",children:m}),f&&(0,t.jsx)("h4",{className:"section-header__subtitle",children:f}),L?null:(0,t.jsx)("div",{className:p()("response-icon",{"response-icon--new-brand":O}),children:b||(h?(0,t.jsx)(o.fB,{fillColour:N,height:C,width:C,isOutLine:S}):(0,t.jsx)(o.tj,{fillColour:N,height:C,width:C,isOutLine:S}))}),w&&c()(w,(0,a.Em)()),(0,t.jsx)("div",{className:k,children:E}),x&&c()(x,(0,a.Em)())]})}},55290:function(e,s,n){"use strict";n.r(s),n.d(s,{SetNewPassword:function(){return Z},SetNewPasswordComponent:function(){return L},SignInPage:function(){return S},SignOutPage:function(){return O},mapStateToProps:function(){return T}});var r=n(13706),t=n(90581),o=n(21218),i=n(70865),a=n(96670),l=n(39309),c=n(52322);n(94950),n(50540),n(17848);var d=n(49988),u=n(66829),h=n(51603),p=n(50862),m=n(89177),f=n(13922),w=n(61637),x=n(2021),g=n(63397),j=n(72670),v=n.n(j),_=n(5632),N=n.n(_),b=n(2784),y=n(29051),C=function(e){var s=e.error,n=e.loading,r=e.passwordLabel,t=e.retypePasswordLabel,o=e.submitButtonLabel,l=s.length?(0,c.jsx)("p",{className:"error",children:s}):"",d=(0,b.useState)(!1),u=d[0],p=d[1],m=(0,b.useState)(!1),w=m[0],x=m[1];return(0,c.jsxs)(g.l0,{className:"narrow-form narrow-form--small-m-t",noValidate:!0,autoComplete:"nope",children:[(0,c.jsx)(g.gN,{name:"password",type:"password",children:function(e){var s=e.field,n=e.form,t=e.meta;return(0,c.jsx)(h.af,(0,a.Z)((0,i.Z)({},s),{groupClassName:"group--fullwidth",isRequired:!0,placeholder:"Type new Password",label:r,type:u?"text":"password",touched:t.touched,error:(0,g.u9)(n.errors,s.name)}))}}),(0,c.jsx)("div",{className:"show-hide-password1-icon","data-testid":"show-hide-password-icon",onClick:function(){return p(function(e){return!e})},role:"presentation",children:u?(0,c.jsx)(f.HN,{}):(0,c.jsx)(f.gW,{})}),(0,c.jsx)(g.gN,{name:"password2",type:"password",children:function(e){var s=e.field,n=e.form,r=e.meta;return(0,c.jsx)(h.af,(0,a.Z)((0,i.Z)({},s),{groupClassName:"group--fullwidth",isRequired:!0,placeholder:"Retype new Password",label:t,type:w?"text":"password",touched:r.touched,error:(0,g.u9)(n.errors,s.name)}))}}),(0,c.jsx)("div",{className:"show-hide-password2-icon","data-testid":"show-hide-password-icon",onClick:function(){return x(function(e){return!e})},role:"presentation",children:w?(0,c.jsx)(f.HN,{}):(0,c.jsx)(f.gW,{})}),l,(0,c.jsx)("button",{className:"button primary arrow narrow-form__button full-width "+(n?"loading":""),type:"submit",children:o})]})},L=function(e){(0,o.Z)(n,e);var s=(0,l.Z)(n);function n(e){var o;return(0,t.Z)(this,n),(o=s.call(this,e)).showLogin=function(){N().push(m.O0t)},o.setFirstTimePassword=o.setFirstTimePassword.bind((0,r.Z)(o)),o}var h=n.prototype;return h.componentDidMount=function(){var e=this.props,s=e.isLoggedIn,n=e.query.token;(s||!n||n.length<1)&&(0,w.redirectToHome)()},h.setFirstTimePassword=function(e){var s={password:e.password,temporaryToken:this.props.query.token};this.props.dispatch&&this.props.dispatch(d.SetNewPasswordAction.submitPassword(s))},h.render=function(){var e=this;if(!this.props.labelsLoaded)return(0,c.jsx)(p.w,{});var s=(0,c.jsx)(c.Fragment,{}),n=(0,c.jsx)(c.Fragment,{}),r=this.props,t=r.ftlSuccess,o=r.labels,l=r.ftlCompleted,d=o.sideTitle,h=o.title,m=o.subTitle,f
1=o.sideText,w=o.sideTextSuccess,j=o.successResponseMessage,_=o.errorResponseMessage;return l?t?(s=(0,c.jsx)("div",{className:"max-320",children:(0,c.jsx)(u.h,(0,a.Z)((0,i.Z)({success:!0,buttonAction:this.showLogin},j),{title:"",buttonClass:"full-width max-224"}))}),n=(0,c.jsx)("div",{className:"side__richtext",children:v()(w)})):(s=(0,c.jsx)("div",{className:"max-320",children:(0,c.jsx)(u.h,(0,a.Z)((0,i.Z)({success:!1,buttonAction:this.showLogin},_),{title:"",buttonClass:"full-width max-224"}))}),n=(0,c.jsx)("div",{className:"side__richtext",children:v()(f)})):(s=(0,c.jsxs)("div",{className:"max-320",children:[(0,c.jsx)("h3",{className:"narrow-form__title",children:h}),(0,c.jsx)("p",{className:"narrow-form__paragraph",children:m}),(0,c.jsx)(g.J9,{initialValues:{password:"",password2:""},onSubmit:function(s){e.setFirstTimePassword(s)},validateOnChange:!1,validate:function(e){var s={};return(0,x.q9)(e.password)?(0,x.eW)(e.password)||(s.password="Please enter a valid password"):s.password="Please enter your password",(0,x.q9)(e.password2)?e.password!==e.password2&&(s.password2="Passwords do not match"):s.password2="Please enter your password again",s},children:function(){return(0,c.jsx)(C,(0,i.Z)({error:e.props.error},e.props.labels))}})]}),n=(0,c.jsx)("div",{className:"side__richtext",children:v()(f)})),(0,c.jsxs)("div",{className:"two-column",children:[(0,c.jsx)("div",{className:"two-column__column two-column__column--primary",children:s}),(0,c.jsx)("div",{className:"two-column__column two-column__column--secondary",children:(0,c.jsx)("div",{className:"side side--mobile max-320",children:(0,c.jsxs)("div",{className:"side__info",children:[(0,c.jsx)("h3",{className:"side__title",children:d}),n]})})})]})},n}(b.Component),T=function(e){var s=e.setNewPassword,n=e.login;return{ftlCompleted:s.ftlCompleted,ftlSuccess:s.ftlSuccess,error:s.error,isLoggedIn:n.loginStatus===m.ICM.LOGGED_IN,labelsLoaded:s.labelsLoaded,labels:s.labels}},Z=(0,y.connect)(T)(L),P=n(33596),R=function(e){(0,o.Z)(n,e);var s=(0,l.Z)(n);function n(){return(0,t.Z)(this,n),s.apply(this,arguments)}var r=n.prototype;return r.componentDidMount=function(){var e=this.props,s=e.dispatchMybgeLogin,n=e.router;n.query&&n.query.mybgeToken?s(n.query.mybgeToken):(0,w.redirectToHome)()},r.render=function(){return(0,c.jsx)(p.w,{})},n}(b.Component),S=(0,_.withRouter)((0,y.connect)(void 0,function(e){return{dispatchMybgeLogin:function(s){e(P.sO.submitMybgeAdminLogin(s))}}})(R)),k=function(e){(0,o.Z)(n,e);var s=(0,l.Z)(n);function n(){return(0,t.Z)(this,n),s.apply(this,arguments)}var r=n.prototype;return r.componentDidMount=function(){this.props.dispatchSignOut()},r.render=function(){return(0,c.jsx)(p.w,{})},n}(b.Component),O=(0,y.connect)(void 0,function(e){return{dispatchSignOut:function(){e(d.LogoutAction.submitLogout())}}})(k)},86335:function(){},94950:function(){},50540:function(){},17848:function(){}}]);

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.