PageSourceSearch

https://www.bordgaisenergy.ie/_next/static/chunks/7793.0d1e740cf712d7ec.js

js bordgaisenergy.ie collected 2026-10-01 14:41:53 UTC 28,192 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7793],{77793:function(e,n,a){"use strict";a.d(n,{gr:function(){return M},Ll:function(){return J},ah:function(){return X}});var i=a(70865),t=a(96670),s=a(52322);a(45493);var r=a(66829),o=a(53740),l=a(51603),c=a(50862),d=a(89177),u=a(13922),m=a(61632),h=a(6228),p=a(40130),g=JSON.parse('{"afghanistan":"004","aland islands":"248","albania":"008","algeria":"012","american samoa":"016","andorra":"020","angola":"024","anguilla":"660","antarctica":"010","antigua and barbuda":"028","argentina":"032","armenia":"051","aruba":"533","australia":"036","austria":"040","azerbaijan":"031","bahamas":"044","bahrain":"048","bangladesh":"050","barbados":"052","belarus":"112","belgium":"056","belize":"084","benin":"204","bermuda":"060","bhutan":"064","bolivia":"068","bonaire":"535","bosnia and herzegovina":"070","botswana":"072","bouvet island":"074","brazil":"076","british indian ocean territory":"086","brunei darussalam":"096","bulgaria":"100","burkina faso":"854","burundi":"108","cabo verde":"132","cambodia":"116","cameroon":"120","canada":"124","cayman islands":"136","central african republic":"140","chad":"148","chile":"152","china":"156","christmas island":"162","cocos islands":"166","colombia":"170","comoros":"174","congo":"178","congo, democratic republic of the":"180","cook islands":"184","costa rica":"188","croatia":"191","cuba":"192","curacao":"531","cyprus":"196","czechia":"203","denmark":"208","djibouti":"262","dominica":"212","dominican republic":"214","east timor":"626","ecuador":"218","egypt":"818","el salvador":"222","equatorial guinea":"226","eritrea":"232","estonia":"233","eswatini":"748","ethiopia":"231","falkland islands":"238","faroe islands":"234","fiji":"242","finland":"246","france":"250","french guiana":"254","french polynesia":"258","french southern territories":"260","gabon":"266","gambia":"270","georgia":"268","germany":"276","ghana":"288","gibraltar":"292","greece":"300","greenland":"304","grenada":"308","guadeloupee":"312","guam":"316","guatemala":"320","guernsey":"831","guinea":"324","guinea-bissau":"624","guyana":"328","haiti":"332","heard island and mcdonald islands":"334","holy see":"336","honduras":"340","hong kong":"344","hungary":"348","iceland":"352","india":"356","indonesia":"360","iran":"364","iraq":"368","ireland":"372","isle of man":"833","israe":"376","italy":"380","ivory coast":"384","jamaica":"388","japan":"392","jersey":"832","jordan":"400","kazakhstan":"398","kenya":"404","kiribati":"296","korea":"410","korea-dpr":"408","kuwait":"414","kyrgyzstan":"417","laos":"418","latvia":"428","lebanon":"422","lesotho":"426","liberia":"430","libya":"434","liechtenstein":"438","lithuania":"440","luxembourg":"442","macao":"446","madagascar":"450","malawi":"454","malaysia":"458","maldive":"462","mali":"466","malta":"470","marshall islands":"584","martinique":"474","mauritania":"478","mauritius":"480","mayotte":"175","mexico":"484","micronesia":"583","moldova, republic of":"498","monaco":"492","mongolia":"496","montenegro":"499","montserrat":"500","morocco":"504","mozambique":"508","myanmar":"104","namibia":"516","nauru":"520","nepal":"524","netherlands":"528","new caledonia":"540","new zealand":"554","nicaragua":"558","niger":"562","nigeria":"566","niue":"570","norfolk island":"574","north macedonia":"807","northern mariana islands":"580","norway":"578","oman":"512","pakistan":"586","palau":"585","palestine, state of":"275","panama":"591","papua new guinea":"598","paraguay":"600","peru":"604","philippines":"608","pitcairne":"612","poland":"616","portugal":"620","puerto rico":"630","qatar":"634","reunion":"638","romania":"642","russian federation":"643","rwanda":"646","saint barthelemy":"652","saint helena, ascension and tristan da cunha":"654","saint kitts and nevi":"659","saint lucia":"662","saint martin":"663","saint pierre and miquelon":"666","saint vincent and the grenadines":"670","samoa":"882","san marino":"674","sao tome and principe":"678","saudi arabia":"682","senegal":"686","serbia":"688","seychelles":"690","sierra leone":"694","singapore":"702","sint maarten":"534","slovakia":"703","slovenia":"70
15","solomon islands":"090","somalia":"706","south africa":"710","south georgia and the south sandwich islands":"239","south sudan":"728","spain":"724","sri lanka":"144","sudan":"729","suriname":"740","svalbard and jan mayen":"744","sweden":"752","switzerland":"756","syrian arab republic":"760","taiwan, province of china":"158","tajikistan":"762","tanzania, united republic of":"834","thailand":"764","togo":"768","tokelau":"772","tonga":"776","trinidad and tobago":"780","tunisia":"788","turkey":"792","turkmenistan":"795","turks and caicos islands":"796","tuvalu":"798","uganda":"800","ukraine":"804","united arab emirates":"784","united kingdom":"826","united states minor outlying islands":"581","united states of america":"840","uruguay":"858","uzbekistan":"860","vanuatu":"548","venezuela":"862","vietnam":"704","virgin islands british":"092","virgin islands u.s.":"850","wallis and futuna":"876","western sahara":"732","yemen":"887","zambia":"894","zimbabwe":"716"}'),x=RegExp("^[0-9]{3}$"),y=Object.values(g),b=function(e){var n;if(void 0===e)return"372";if(e&&x.test(e)&&y.includes(e))return e;return g[e.toLowerCase().trim()]||"372"},v=a(2784),f=function(e){var n=e.amount,a=e.orderNumber,i=e.hash,t=e.date,r=e.accountNumber,o=e.accountType,l=e.url,c=e.realexUrl,d=e.merchantId,u=e.realexIframeName,m=e.email,h=e.phoneNumber,g=e.phoneNumberType,x=e.userRef,y=e.billingAddress1,f=e.billingAddress2,j=e.billingAddress3,N=e.billingCity,_=e.billingPostcode,T=e.billingCountry,E=e.payerReference,w=e.isHomeServices,C=e.homeServiceBookingId,P=e.isOrderToBuyPayment,R=void 0!==P&&P,S=e.voucher,I=void 0===S?"":S,A=e.cardPaymentButtonText,O=e.comment,L=e.merchantResponseUrl,k=e.isSpaygo,H=(0,v.useState)(!1),B=H[0],G=H[1],Z=(0,v.useRef)(null),F=(0,p.Lr)(e.accountNumber,o,g,h),D=F.phoneFieldName,U=F.realexPhoneNumber;(0,v.useEffect)(function(){Z.current&&!B&&(G(!0),Z.current.submit())},[B]);var q=b(T);return(0,s.jsxs)("form",{action:c,method:"POST",target:u,ref:Z,children:[(0,s.jsx)("input",{type:"hidden",name:"TIMESTAMP",value:t}),(0,s.jsx)("input",{type:"hidden",name:"MERCHANT_ID",value:d}),(0,s.jsx)("input",{type:"hidden",name:"ACCOUNT",value:o}),(0,s.jsx)("input",{type:"hidden",name:"ORDER_ID",value:a}),(0,s.jsx)("input",{type:"hidden",name:"AMOUNT",value:n}),(0,s.jsx)("input",{type:"hidden",name:"CURRENCY",value:"EUR"}),(0,s.jsx)("input",{type:"hidden",name:"SHA1HASH",value:i}),(0,s.jsx)("input",{type:"hidden",name:"VAR_REF",value:r}),(0,s.jsx)("input",{type:"hidden",name:"CUST_NUM",value:r}),(0,s.jsx)("input",{type:"hidden",name:"AUTO_SETTLE_FLAG",value:"1"}),(0,s.jsx)("input",{type:"hidden",name:"PROD_ID",value:"Account Payment - 301"}),(0,s.jsx)("input",{type:"hidden",name:"CHANNEL",value:"ECOM"}),(0,s.jsx)("input",{type:"hidden",name:"CARD_PAYMENT_BUTTON",value:void 0===A?"Pay Now":A}),(0,s.jsx)("input",{type:"hidden",name:"HPP_POST_DIMENSIONS",value:l}),(0,s.jsx)("input",{type:"hidden",name:"HPP_LANG",value:"EN"}),(0,s.jsx)("input",{type:"hidden",name:"HPP_VERSION",value:"2"}),(0,s.jsx)("input",{type:"hidden",name:"HPP_CUSTOMER_EMAIL",value:m}),(0,s.jsx)("input",{type:"hidden",name:D,value:U}),(0,s.jsx)("input",{type:"hidden",name:"HPP_BILLING_STREET1",value:y.substr(0,49)}),(0,s.jsx)("input",{type:"hidden",name:"HPP_BILLING_STREET2",value:f.substr(0,49)}),(0,s.jsx)("input",{type:"hidden",name:"HPP_BILLING_STREET3",value:j.substr(0,49)}),(0,s.jsx)("input",{type:"hidden",name:"HPP_BILLING_CITY",value:N.substr(0,39)}),(0,s.jsx)("input",{type:"hidden",name:"HPP_BILLING_POSTALCODE",value:_}),(0,s.jsx)("input",{type:"hidden",name:"HPP_BILLING_COUNTRY",value:q}),(0,s.jsx)("input",{type:"hidden",name:"HPP_SHIPPING_STREET1",value:y.substr(0,49)}),(0,s.jsx)("input",{type:"hidden",name:"HPP_SHIPPING_STREET2",value:f.substr(0,49)}),(0,s.jsx)("input",{type:"hidden",name:"HPP_SHIPPING_STREET3",value:j.substr(0,49)}),(0,s.jsx)("input",{type:"hidden",name:"HPP_SHIPPING_CITY",value:N.substr(0,39)}),(0,s.jsx)("input",{type:"hidden",name:"HPP_SHIPPING_POSTALCODE",value:_}),(0,s.jsx)("input",{type:"hidden",name:"HPP_SHIPPING_COUNTRY",value:q}),(0,s.jsx)("input",{type:"hidden",name:"HPP_ADDRESS_MATCH_INDICATOR",value:"TRUE"}),(0,s.jsx)("input",{type:"hidden",name:"HPP_CHALLENGE_REQUEST_INDICATOR",value:"CHALLENGE_MANDATED"}),(0,s.jsx)("input",{type:"hidden",name:"HPP_POST_RESPONSE",value:l}),E&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("input",{type:"hidden",name:R?"PAYER_REF":"HPP_SELECT_STORED_CARD",value:E}),(0,s.jsx)("input",{type:"hidden",name:"PAYER_EXIST",value:"1"}),(0,s.jsx)("input",{type:"hidden",name:"OFFER_SAVE_CARD",value:"1"})]}),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("input",{type:"hidden",name:"MERCHANT_RESPONSE_URL",value:L,"data-testid":"merchant-response-url-test"}),(0,s.jsx)("input",{type:"hidden",name:"ACCOUNT_NUMBER",value:r}),void 0!==w&&w&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("input",{type:"hidden",name:"BOOKING_ID",value:C}),I&&(0,s.jsx)("input",{type:"hidden",name:"VOUCHER",value:I,"data-testid":"vouchertest"})]}),void 0!==k&&k&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("input",{type:"hidden",name:"IS_SPAYGO",value:"true"}),(0,s.jsx)("input",{type:"hidden",name:"USER_REF",value:x})]})]}),O&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("input",{type:"hidden",name:"COMMENT2",value:O})}),R&&(0,s.jsx)("input",{type:"hidden",name:"VALIDATE_CARD_ONLY",value:"1"})]})},j=a(24398),N=a(50930),_=a(37824),T=a(79962),E=function(){var e,n=(0,T.kh)(),a=(0,v.useState)([_.hP].concat((0,N.Z)(_.V1))
1),i=a[0],t=a[1],s=(0,v.useState)(""),r=s[0],o=s[1];return(0,v.useEffect)(function(){n.isMobile?t(_.V1):t(""===r?[_.hP].concat((0,N.Z)(_.V1)):_.V1)},[r,n.isMobile]),{customFilterOption:(e=function(e){return o(e)},function(n,a){return e&&e(a),n.data.__isNew__||n.label.toLowerCase().startsWith(a.toLowerCase())}),options:i,buildOnChange:function(e,n){return function(a){return n.setFieldValue(e.name,a)}}}},w=a(63397),C=function(e){var n=e.groupClassName,a=void 0===n?"":n,r=e.placeholder,o=e.fieldName,l=E(),c=l.customFilterOption,d=l.options,u=l.buildOnChange;return(0,s.jsx)(w.gN,{name:o,children:function(e){var n=e.field,o=e.form,l=e.meta;return(0,s.jsx)(j.lU,(0,t.Z)((0,i.Z)({isSearchable:!0,groupClassName:a},n),{isRequired:!0,placeholder:r,label:"Country",touched:l.touched,error:(0,w.u9)(o.errors,n.name),options:d,onChange:u(n,o),filterOption:c}))}})},P=a(1813),R=function(){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(w.gN,{name:"email",children:function(e){var n=e.field,a=e.form,r=e.meta;return(0,s.jsx)(l.af,(0,t.Z)((0,i.Z)({groupClassName:"group--wide group--no-margin-medium"},n),{isRequired:!0,placeholder:"[email protected]",label:"Email address",isNumeric:!1,touched:r.touched,error:(0,w.u9)(a.errors,n.name)}))}}),(0,s.jsx)(w.gN,{name:"billingAddress1",children:function(e){var n=e.field,a=e.form,r=e.meta;return(0,s.jsx)(l.af,(0,t.Z)((0,i.Z)({groupClassName:"group--wide group--no-margin-medium"},n),{isRequired:!0,placeholder:"Enter full address",label:"Address",isNumeric:!1,touched:r.touched,error:(0,w.u9)(a.errors,n.name)}))}}),(0,s.jsx)(w.gN,{name:"billingCity",children:function(e){var n=e.field,a=e.form,r=e.meta;return(0,s.jsx)(l.af,(0,t.Z)((0,i.Z)({groupClassName:"group--wide group--no-margin-medium"},n),{isRequired:!0,placeholder:"Enter city name",label:"City",isNumeric:!1,touched:r.touched,error:(0,w.u9)(a.errors,n.name)}))}}),(0,s.jsx)(C,{fieldName:"billingCountry",placeholder:"Please select one...",groupClassName:"group--wide group--no-margin-medium"}),(0,s.jsx)(w.gN,{name:"billingPostcode",children:function(e){var n=e.field,a=e.form,r=e.meta;return(0,s.jsx)(l.af,(0,t.Z)((0,i.Z)({groupClassName:"group--wide group--no-margin-medium"},n),{isRequired:!0,placeholder:"A65 F4E2",label:"Eircode or Postcode",isNumeric:!1,touched:r.touched,error:(0,w.u9)(a.errors,n.name)}))}}),(0,s.jsx)(P.$,{phoneOptions:_.Fh,phoneTypeFieldName:"phoneNumberType",phoneNumberFieldName:"phoneNumber",groupClassName:"group--wide contact-number__sm",isLooseSchema:!0})]})},S=a(48090),I=function(e){var n=e.isSpaygoAccount,a=e.amountToPay,i=e.authCode,t=e.accountNumber;return n?(0,s.jsx)(r.h,{success:!0,className:"response-message-container--margin-top",title:"Success!",responseBody:(0,S.uS)((0,s.jsxs)("p",{className:"text-center",children:[(0,s.jsx)("strong",{children:"Thanks for making a payment."}),(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),"You have now paid €",a&&(a/100).toFixed(2)," on account number: ",(0,s.jsx)("strong",{"data-cs-mask":!0,children:t}),i&&(0,s.jsxs)(s.Fragment,{children:[", auth code: ",(0,s.jsx)("strong",{children:i})]}),"."]}))}):(0,s.jsx)(r.h,{success:!0,className:"response-message-container--margin-top",title:"Success!",responseBody:(0,S.uS)((0,s.jsxs)("p",{className:"text-center",children:[(0,s.jsx)("strong",{children:"Thanks for making a payment."}),(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),"You have now paid €",a&&(a/100).toFixed(2)," on account number:"," ",(0,s.jsx)("strong",{"data-cs-mask":!0,children:t}),"."]}))})},A=a(84134),O=a(2021),L=a(30320),k=a(65413),H={amountToPay:p.RY},B=(0,i.Z)((0,t.Z)((0,i.Z)({},H),{billingAddress1:k.Z_().required((0,A.q8)("Address")),billingCity:k.Z_().required((0,A.q8)("City")),billingCountry:k.Z_().required((0,A.q8)("Country")),billingPostcode:k.Z_().required((0,A.q8)("Eircode or Postcode")).when("billingCountry",{is:function(e){return"372"===e},then:k.Z_().test("valid",A.n2,function(e){return!e||(0,O.AM)(e)})}),email:k.Z_().email(A.Ic).required((0,A.q8)("Email"))}),(0,L.Ql)("phoneNumberType","phoneNumber")),G=function(e,n,a){return a?e?k.Ry().shape(n?{}:B):k.Ry().shape({}):k.Ry().shape(e?n?{}:B:H)},Z=a(12524),F=a.n(Z),D=a(72670),U=a.n(D),q="realex-iframe",Y=function(e){var n="";return e===d.vXT.GAS||"ResGas"===e?n="Gas":e===d.vXT.ELECTRICITY||"ResElectricity"===e?n="Electricity":e===d.vXT.HOMECARE&&(n="Home Care"),n},M=function(e){var n=e.submitPaymentRequest,a=e.payNowState,p=a.showIframe,g=a.amountToPay,x=a.isSubmitting,y=a.hash,b=a.orderNumber,j=a.timestamp,N=a.isCompleted,_=a.isSuccess,T=a.userDetails,E=a.payerReference,C=a.merchantResponseUrl,P=a.authCode,A=e.accountNumber,O=e.payNowFeaturesFlag,L=e.updateAccountTypeId,k=e.updateSpaygoAccountTypeId,H=e.spaygoAccountType,B=void 0===H?"":H,Z=e.resetPaymentRequest,D=e.accountType,M=e.title,z=e.subtitle,W=e.subtitleAccordian,V=e.payAsYouGoElectricityDisclaimer,K=e.payAsYouGoGasDisclaimer,X=e.AdditionalFormFields,J=e.additionalSchema,Q=e.additionalDefaults,$=e.realexEnvVars,ee=e.isPayNowPage,en=void 0!==ee&&ee,ea=e.isHomeServices,ei=void 0!==ea&&ea,et=e.homeServiceBookingId,es=e.homeServiceUrl,er=e.isLoggedOut,eo=e.anonymousOverideUser,el=e.isOrderToBuyPayment,ec=void 0!==el&&el,ed=e.voucher,eu=e.additionalAuthorisationLabel,em=e.cardPaymentButtonText,eh=e.unsuccessfulRequestMessage,ep=e.comment,eg=e.hidePaymentForm,ex=e.handlePaymentResponse,ey=e.isSpaygo,eb=void 0!==ey&&ey,ev=e.isNewBrand,ef=void 0!==ev&&ev,ej=e.bypassValidation,eN=void 0!==ej&&ej,e_=(0,v.useState)({iframeHeight:"525px",iframeWidth:"435px"}),eT=e_[0],eE=e_[1],ew=(0,v.useRef)(N||_||x),eC=(0,v.useRef)(j&&E);(0,v.useEffect)(function(){ew.current||eC.current||A||Z()},[ew,eC,A,Z]);var eP=(0,v.useRef)(function(e){try{var n=JSON.parse(e.data);n.iframe?eE(function(e){return(0,t.Z)((0,i.Z)({},e),{iframeHeight:n.iframe.height})}):n.RESULT&&(window.sessionStorage.removeItem("realex"),ex(n,A))}catch(a){}});(0,v.useEffect)(function(){return window.addEventListener("message",eP.current),function(){var e=eP.current;window.removeEventListener("message",e)}},[]);var eR=!ei&&!ec&&!eg,eS=B===d.BRC.SPAYGO_SPAYGO_ELECTRICITY,eI=J?G(er,O||eb,eS).concat(J):G(er,O||eb,eS),eA=(0,t.Z)((0,i.Z)((0,t.Z)((0,i.Z)({amount:g,orderNumber:b,hash:y,date:j,accountNumber:A,accountType:D,url:window.location.protocol+"//"+window.location.host,realexUrl:$?$.endpoint:"",merchantId:$?$.accountId:"",payerReference:E,isHomeServices:ei,voucher:void 0===ed?"":ed,homeServiceBookingId:et,homeServiceUrl:es},er&&eo?eo:T),{isOrderToBuyPayment:ec}),T),{cardPaymentButtonText:em,comment:ep,merchantResponseUrl:C,isSpaygo:eb}),eO=B===d.BRC.PAYGO_GAS||B===d.BRC.PAYGO_ELECTRICITY,eL=B===d.BRC.SPAYGO_SPAYGO_ELECTRICITY;return(er&&R(),N)?_?(0,s.jsx)(s.Fragment,{children:!ei&&(0,s.jsx)(I,{isSpaygoAccount:eL,amountToPay:g,authCode:P,accountNumber:A})}):(0,s.jsx)(r.h,{success:!1,className:"response-message-container--margin-top",title:"Sorry!",responseBody:(0,S.uS)((0,s.jsx)("p",{className:"text-center",children:void 0===eh?"We were unable to complete the payment.":eh})),buttonLabel:"Try again",buttonAction:function(){Z()}}):p?(0,s.jsxs)("div",{children:[(0,s.jsx)(f,(0,t.Z)((0,i.Z)({},eA),{realexIframeName:q})),eR&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("header",{className:"section-header section-header--no-m-b",children:[(0,s.jsx)("h3",{className:"section-header__title section-header__title--no-m-b",children:(0,s.jsx)("strong",{children:M})}),(0,s.jsxs)("span",{className:"section-header__legend",children:[(0,s.jsx)(l.RT,{})," Required information"]})]}),(0,s.jsx)("section",{className:"payment",children:(0,s.jsx)("button",{className:"button secondary inline arrow back",onClick:Z,children:"Go back"})}),(0,s.jsxs)("p",{className:"amount",children:["You’ve chosen to pay ",g&&(g/100).toFixed(2)," EUR on your"," ",Y(D)," account."]})]}),(0,s.jsx)("iframe",{style:{height:eT.iframeHeight,maxWidth:eT.iframeWidth},title:"realex-iframe",className:"paynow__iframe",name:q})]}):(0,s.jsx)(s.Fragment,{children:eR?(0,s.jsx)(w.J9,{validateOnChange:!eN,validateOnBlur:!eN,validationSchema:eN?void 0:eI,onSubmit:n,initialValues:(0,i.Z)({amountToPay:""},O?{billingAddress1:"null",billingAddress2:"null",billingAddress3:"null",billingCity:"null",billingPostcode:"null",billingCountry:"000",email:"[email protected]",phoneNumber:"",ph
1oneNumberType:""}:T,Q),children:(0,s.jsxs)("div",{className:F()({"new-brand new-brand__new-font":ef}),children:[(0,s.jsxs)("header",{className:"section-header section-header--no-m-b",children:[(0,s.jsx)("h3",{className:"section-header__title section-header__title--no-m-b",children:(0,s.jsx)("strong",{children:M})}),!ef&&(0,s.jsxs)("span",{className:"section-header__legend",children:[(0,s.jsx)(l.RT,{})," Required information"]})]}),(0,s.jsxs)("section",{className:"payment",children:[(0,s.jsxs)("div",{className:"payment__intro",children:[U()(z,(0,h.Em)()),W&&(0,s.jsx)(o.to,{title:W.title,icon:"AlertCircle",hideIcon:!1,isDark:!0,children:U()(W.content,(0,h.Em)())})]}),(0,s.jsxs)(w.l0,{noValidate:!0,"data-testid":"paynow-form",children:[X&&(0,s.jsx)(X,{updateAccountTypeId:L,updateSpayGoAccountTypeId:k}),(0,s.jsxs)("div",{className:E?"inputs-fieldset--flex":"",children:[!eO&&(0,s.jsx)(l.f6,{name:"amountToPay"}),er&&!eO&&!O&&R(),O&&eu&&(0,s.jsx)("div",{className:"authorisationLabel",children:U()(eu)}),!en&&(0,s.jsx)("button",{"data-testid":"my-accounts-paynow",className:F()({"button small m-t-medium-6 primary inline arrow button-m-l-medium":!ef,"button inline primary arrow":ef,loading:x}),type:"submit",children:"Continue with payment"})]}),en&&(0,s.jsxs)(s.Fragment,{children:[eO&&(0,s.jsxs)("div",{className:"spaygo-pay-now-microgen-notification spaygo-pay-now-microgen-notification_sell",children:[(0,s.jsx)(u.Zd,{className:"spaygo-pay-now-microgen-notification-icon"}),B===d.BRC.PAYGO_ELECTRICITY&&V&&(0,s.jsx)("p",{children:U()(V,(0,h.Em)({replaceTagNames:"p"}))}),B===d.BRC.PAYGO_GAS&&K&&(0,s.jsx)("p",{children:U()(K,(0,h.Em)({replaceTagNames:"p"}))})]}),!eO&&(0,s.jsx)("div",{className:"align-right payment__button-container",children:(0,s.jsx)("button",{"data-testid":"paynow-submit",type:"submit",className:F()({"button primary-sub arrow":!ef,"button primary inline arrow":ef,loading:x}),children:"Continue with payment"})}),eO&&(0,s.jsx)("div",{className:"align-right payment__button-container",children:(0,s.jsx)("button",{"data-testid":"paynow-back-home-button",type:"button",className:F()({"button primary-sub arrow":!ef,"button primary inline arrow":ef,loading:x}),onClick:function(){(0,m.T8)("/")},children:"Back to HomePage"})})]})]})]})]})}):(0,s.jsx)("div",{className:"payment__loader",children:(0,s.jsx)(c.a,{className:"blue large"})})})},z=a(4054),W=a(33596),V=a(64226),K=a(29051),X=function(){var e=(0,K.useSelector)(z.Pe,K.shallowEqual);return{payNow:(0,K.useSelector)(p.ph),realexEnvVars:e}},J=function(e){var n=e.email,a=e.phoneNumber,i=e.phoneNumberType,t=e.providedAddress,s=(0,K.useSelector)(V.selectStoredAddress,K.shallowEqual),r=(0,K.useSelector)(z.BR),o=(0,K.useSelector)(W._e,K.shallowEqual),l=X(),c=l.payNow,d=l.realexEnvVars,u=t||s;return{payNow:c,baseUrl:r,realexEnvVars:d,isLoggedOut:o,userDetails:{billingAddress1:u&&u.addressLine1?u.addressLine1:"null",billingAddress2:u&&u.addressLine2?u.addressLine2:"",billingAddress3:"",billingCity:u&&u.city?u.city:"null",billingPostcode:u&&u.eircode?u.eircode:"null",billingCountry:"372",email:n,phoneNumber:a,phoneNumberType:i}}}},66829:function(e,n,a){"use strict";a.d(n,{h:function(){return p}});var i=a(70865),t=a(52322);a(86335);var s=a(13922),r=a(48939),o=a(6228),l=a(72670),c=a.n(l),d=a(2784),u=function(e){var n=(0,d.useRef)(null),a=e.success,i=e.title,l=e.subTitle,u=e.responseBody,m=e.footerText,h=e.className,p=e.button,g=e.fillColor,x=e.responseIcon,y=e.size,b=void 0===y?192:y,v=e.hideResponseIcon,f=e.showRewardWarning,j=e.myrewardsWarning,N=e.isOutLine;return(0,d.useEffect)(function(){n.current&&(0,r.k)(n.current,!0)},[]),(0,t.jsxs)("div",{className:"response-message-container__registration "+(a?"success ":"")+h,children:[(0,t.jsx)("h3",{ref:n,className:"section-header__title",children:i}),l&&(0,t.jsx)("h4",{className:"section-header__subtitle",children:l}),v?null:(0,t.jsx)(t.Fragment,{children:x||(a&&!f?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"response-icon",children:(0,t.jsx)(s.fB,{fillColour:g,height:b,width:b})}),u&&c()(u,(0,o.Em)()),m&&c()(m,(0,o.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:f?(0,t.jsx)(s.fB,{className:"response-icon__left__success",fillColour:g,height:b,width:b}):(0,t.jsx)(s.v3,{className:"warning",fillColour:"#f29400",height:b,width:b,isOutLine:void 0!==N&&N})}),(0,t.jsxs)("div",{className:"response-text__left",children:[u&&c()(u,(0,o.Em)()),(0,t.jsx)("div",{className:"response__try-again",children:p}),f?null:m&&c()(m,(0,o.Em)())]})]}),f?(0,t.jsxs)("div",{className:"response__my-rewards-warning",children:[(0,t.jsx)("div",{className:"response-icon__my-rewards-warning",children:(0,t.jsx)(s.v3,{fillColour:"#f29400",height:50,width:50})}),(0,t.jsx)("div",{className:"response-text__my-rewards-warning",children:j&&c()(j,(0,o.Em)())})]}):null]}))})]})},m=a(12524),h=a.n(m),p=function(e){var n=(0,d.useRef)(null),a=e.buttonLabel,l=e.buttonAction,m=e.success,p=e.title,g=e.subTitle,x=e.responseBody,y=e.footerText,b=e.className,v=void 0===b?"":b,f=e.buttonClass,j=e.buttonOrder,N=e.fillColor,_=e.responseIcon,T=e.size,E=void 0===T?192:T,w=e.hideResponseIcon,C=e.isWarningResponse,P=e.showRewardWarning,R=e.myrewardsWarning,S=e.isOutLine,I=void 0!==S&&S,A=e.buttonWrapperClassName,O=e.isNewBrand,L=a&&l&&a.length>0?(0,t.jsx)("button",{className:h()("button inline",f,{secondary:!j,arrow:!0===m},j),onClick:l,children:a}):"";return(0,d.useEffect)(function(){n.current&&(0,r.k)(n.current,!0)},[]),!0===C||!0===P?(0,t.jsx)(u,(0,i.Z)({},{success:m,title:p,subTitle:g,responseBody:x,footerText:y,className:v,fillColor:N,responseIcon:_,size:192,hideResponseIcon:w,button:L,isWarningResponse:C,showRewardWarning:P,myrewardsWarning:R,isOutLine:I})):(0,t.jsxs)("div",{className:h()("response-message-container",{"response-message-container--new-brand":O},m?"success":"error",v),children:[O?(0,t.jsx)("h2",{ref:n,className:"section-header__title",children:p}):(0,t.jsx)("h3",{ref:n,className:"section-header__title",children:p}),g&&(0,t.jsx)("h4",{className:"section-header__subtitle",children:g}),w?null:(0,t.jsx)("div",{className:h()("response-icon",{"response-icon--new-brand":O}),children:_||(m?(0,t.jsx)(s.fB,{fillColour:N,height:E,width:E,isOutLine:I}):(0,t.jsx)(s.tj,{fillColour:N,height:E,width:E,isOutLine:I}))}),x&&c()(x,(0,o.Em)()),(0,t.jsx)("div",{className:A,children:L}),y&&c()(y,(0,o.Em)())]})}},53740:function(e,n,a){"use strict";a.d(n,{UQ:function(){return y},to:function(){return v}});var i,t=a(90581),s=a(21218),r=a(39309),o=a(52322);a(51241),a(46735);var l,c=a(13922),d=a(79962),u=a(2784),m=function(e){(0,s.Z)(a,e);var n=(0,r.Z)(a);function a(e){return(0,t.Z)(this,a),n.call(this,e)}var i=a.prototype;return i.componentDidUpdate=function(e){e.title!==this.props.title&&!0===this.props.isOpen&&this.props.onToggle(this.props.itemIndex)},i.render=function(){var e=this,n=this.props,a=n.isOpen,i=n.content,t=n.title,s=n.isRichText,r=n.itemClass,l=n.theme,u=n.icon,m=n.isNewBrand,h=void 0!==m&&m,p=(0,d.xU)("accordion item ".concat(null==t?void 0:t.toString(),"}"));return(0,o.jsxs)("div",{className:"accordion-item ".concat(r||""," ").concat(s?"rich-text-accordion__item":""," ").concat(a?"accordion__item__open":""),children:[(0,o.jsx)("label",{htmlFor:"accordion-item",className:"accordion-trigger ".concat(s?"rich-text-accordion__trigger":"","\n					theme-").concat(l,"-accordion__trigger"),onClick:function(){return e.props.onToggle(e.props.itemIndex)},children:(0,o.jsxs)("div",{className:"accordion-header",children:[(0,o.jsx)("div",{className:"left-align",children:(0,o.jsxs)("h3",{id:"".concat(p,"_header"),children:[u,t]}
1)}),h&&(0,o.jsx)(c.zN,{id:"".concat(p,"_icon"),className:"accordion-trigger__arrow ".concat("accordion-trigger__arrow--theme-".concat(l))}),!h&&(0,o.jsx)(c.Eh,{id:"".concat(p,"_icon"),closed:!a,className:"accordion-trigger__arrow ".concat("accordion-trigger__arrow--theme-".concat(l))})]})}),(0,o.jsx)("div",{className:"accordion-content accordion-inner accordion__panel ".concat(s?"rich-text-accordion__panel":""," theme-").concat(l,"-accordion__panel"),children:(0,o.jsx)("div",{className:"inner-content",children:(0,o.jsx)("div",{className:"faq-block",children:i})})})]})},a}(u.Component),h=a(12524),p=a.n(h),g=a(18149),x=a.n(g);(l=i||(i={}))[l.LIGHT=0]="LIGHT",l[l.DARK=1]="DARK",l[l.WHITE=2]="WHITE";var y=function(e){(0,s.Z)(a,e);var n=(0,r.Z)(a);function a(e){(0,t.Z)(this,a),i=n.call(this,e);var i,s={itemStates:e.items.map(function(){return!1})};return i.state=s,i}var l=a.prototype;return l.toggle=function(e){var n=this,a=this.state.itemStates[e],i=this.props,t=i.items,s=i.isMultipleOpen,r=t.map(function(i,t){return t===e?!a:!!s&&n.state.itemStates[t]});this.setState({itemStates:r})},l.shouldComponentUpdate=function(e){if(!x()(e.items.map(function(e){return e.title}),this.props.items.map(function(e){return e.title}))){var n={itemStates:e.items.map(function(){return!1})};this.setState(n)}return!0},l.render=function(){var e=this,n=this.props,a=n.items,t=n.itemClass,s=n.isDark,r=n.isWhite,l=n.icon,c=n.className,d=n.isNewBrand,u=void 0!==d&&d,h=void 0!==s&&s?i.DARK:void 0!==r&&r?i.WHITE:i.LIGHT,g=void 0===this.props.isRichText||this.props.isRichText,x=p()("accordion-section ".concat(void 0===c?"":c),{"rich-text-accordion":g,"inverse-accordion":h===i.DARK,"white-accordion":h===i.WHITE,"new-brand-accordion":u});return(0,o.jsx)("section",{className:x,children:a.map(function(n,a){return(0,o.jsx)(m,{title:n.title,content:n.content,isRichText:g,itemIndex:a,onToggle:function(n){return e.toggle(n)},isOpen:e.state.itemStates[a],itemClass:t,theme:h,icon:l,isNewBrand:u},a)})})},a}(u.Component);a(19675);var b=a(47466),v=function(e){var n=e.title,a=e.richTextTitle,i=e.icon,t=e.children,s=e.hideIcon,r=e.openByDefault,l=e.isDark,c=void 0!==l&&l,d=(0,u.useState)(void 0!==r&&r),m=d[0],h=d[1];return(0,o.jsx)(b.g,{thinAlert:!0,iconFillColour:"#001C45",showHide:m,onShowHide:h,hideIcon:void 0===s||s,icon:i,title:n,richTextTitle:a,isDark:c,children:(0,o.jsx)("span",{children:t&&m&&(0,o.jsx)("div",{className:p()("m-t-8 m-b-3",{"dark-content":c}),children:t})})})}},45493:function(){},86335:function(){},19675: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.