PageSourceSearch

https://www.energywatch.com.au/_next/static/chunks/pages/open-ener…/review-details-26129e48846f7e3d.js

js energywatch.com.au collected 2026-10-05 22:37:07 UTC 74,573 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4173],{65666:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/open-energy/properties/review-details",function(){return t(33288)}])},12283:function(e,n,t){"use strict";t.d(n,{PU:function(){return C},_m:function(){return b},a1:function(){return Z}});var i=t(82729),r=t(85893),o=t(1289),a=t(67294),d=t(24594),l=t(64778),c=t(12847),u=t(41849),s=t(26971),p=t(50819),m=t(92198),f=t(57561),g=t(78297);function v(){let e=(0,i._)(["\n        width: 1.5rem;\n        height: 1.5rem;\n        padding: 0.35rem;\n      "]);return v=function(){return e},e}function h(){let e=(0,i._)(["\n    flex-direction:column;\n    ul{\n      width:100%;\n    }\n    gap: 2rem;\n  "]);return h=function(){return e},e}let w=o.ZP.div.withConfig({componentId:"sc-babddfe2-0"})(["width:100%;"," "," "," "," ","{",";}h4{text-transform:capitalize;}"],e=>{let{showBorder:n}=e;return n&&"border: 1px solid ".concat(u.DM.darkWhite,";")},e=>{let{marginBottom:n}=e;return n&&"margin-bottom: ".concat(n,";")},e=>{let{height:n}=e;return n&&"height: ".concat(n,";")},e=>{let{borderRadius:n}=e;return n&&"border-radius: ".concat(n,";")},p.GK,e=>{let{borderRadius:n}=e;return n&&"border-top-left-radius: ".concat(n,";")}),b=o.ZP.div.withConfig({componentId:"sc-babddfe2-1"})(["",";border-bottom:",";padding-bottom:",";cursor:pointer;gap:",";",""],(0,s.fU)("row","flex-start","space-between"),e=>{let{noBorder:n}=e;return n?"none":"1px solid ".concat(u.DM.lightGray)},e=>{let{noPaddingBottom:n}=e;return n?"0":"1rem"},e=>{let{configs:n}=e;return(null==n?void 0:n.noGapHeader)?"":"0.5rem"},e=>{let{noStyledIcon:n}=e;return!n&&"\n    ".concat(l.JO," {\n      ").concat((0,s.fU)("row"),";\n      background-color: ").concat(u.DM.darkWhite,";\n      width: 2rem;\n      height: 2rem;\n      padding: 0.5rem;\n      border-radius: ").concat(u.n_.round,";\n\n      ").concat(c.BC.phone(v()),"\n    }\n  ")}),C=(0,o.ZP)(f.Z).withConfig({componentId:"sc-babddfe2-2"})(["width:100%;gap:5rem;padding-top:1rem;ul{list-style:none;width:50%;}li{display:flex;align-items:center;gap:0.8rem;font-size:14px;margin-bottom:0.5rem;svg{min-width:1rem;}a{color:",";}}",""],e=>{var n,t;return null===(t=e.theme)||void 0===t?void 0:null===(n=t.colors)||void 0===n?void 0:n.accent},c.BC.tablet(h())),y=(0,o.ZP)(l.ZP).withConfig({componentId:"sc-babddfe2-3"})(["color:#ffb000;vertical-align:middle;"]),x=e=>{let{dataId:n="",rightIcon:t,headerText:i}=e,o=(0,d.J4)(n);return(0,r.jsx)("div",{"data-cimet-id":"".concat(o,"header"),children:(0,r.jsxs)(f.Z,{dataId:n,align:"center",gap:"0.6rem",flex:"1 1 auto",children:[t&&(0,r.jsx)(y,{dataId:n,type:t,size:"1.5rem"}),(0,r.jsx)(m.Z.P2Strong,{"data-cimet-id":"".concat(o,"header-text"),as:"h4",children:i})]})})},Z=o.ZP.div.withConfig({componentId:"sc-babddfe2-4"})([""," "," "," ",";"],e=>e.type?"flex-shrink: 0;":"",e=>e.backgroundColor?"background-color: ".concat(e.backgroundColor,";"):"",e=>e.centerIcon&&(0,o.iv)(["display:flex;height:-webkit-fill-available;align-items:center;padding-right:0.2rem;"]),e=>{let{borderRadius:n}=e;return n&&"border-top-right-radius: ".concat(n,";")});n.ZP=e=>{let{dataId:n="",headerText:t,rightIcon:i,children:o,defaultExpansion:c=!1,className:u="",opened:s=!1,onClick:p,tooltipContent:m="",customHeaderComp:f,indicatorConfig:v,onChange:h,accordionState:y,type:P="",noBorder:I=!1,noPaddingBottom:_=!1,noStyledIcon:S=!1,hideIcon:D=!1,configs:k={}}=e,[j,E]=(0,a.useState)(c),{expandedConfig:M={type:"AiOutlineMinus",size:"16"},nonExpandedConfig:A={type:"AiOutlinePlus",size:"16"}}=v||{};(0,a.useEffect)(()=>{void 0!==y&&E(y)},[y]);let U=(0,d.J4)(n),{centerIcon:B,iconBackground:N,showBorder:T,marginBottom:O,height:R,borderRadius:V}=k;return(0,r.jsxs)(w,{"data-cimet-id":"".concat(U,"accordion"),className:u,showBorder:T,marginBottom:O,height:R,borderRadius:V,children:[(0,r.jsxs)(b,{"data-cimet-id":"".concat(U,"accordion-header"),className:j?"expandedHeader":"",onClick:p||(()=>{E(!j),null==h||h()}),noBorder:I,noPaddingBottom:_,noStyledIcon:S,configs:k,children:[(0,r.jsx)(g.ZP,{dataId:n,tooltipSize:"small",title:f||(0,r.jsx)(x,{dataId:n,rightIcon:i,headerText:t}),children:m}),!D&&(0,r.jsx)(Z,{"data-cimet-id":"".concat(U,"icon-wrapper"),type:P,backgroundColor:N,centerIcon:B,borderRadius:V,children:(0,r.jsx)(l.ZP,{dataId:n,...j||s?M:A})})]}),(j||s)&&(0,r.jsx)(C,{dataId:n,children:o})]})}},8720:function(e,n,t){"use strict";t.d(n,{OK:function(){return g},mQ:function(){return f}});var i=t(82729),r=t(85893),o=t(1289),a=t(57531),d=t.n(a),l=t(41849),c=t(26971),u=t(12847),s=t(24594);function p(){let e=(0,i._)(["\n    gap: 1rem;\n  "]);return p=function(){return e},e}let m=o.ZP.div.withConfig({componentId:"sc-b7b6b972-0"})(["width:100%;"]),f=o.ZP.div.withConfig({componentId:"sc-b7b6b972-1"})([""," "," gap:1.5rem;padding-bottom:1.5rem;overflow:auto;",""],c.Yh,(0,c.fU)("row","start","start"),u.BC.phone(p())),g=o.ZP.div.withConfig({componentId:"sc-b7b6b972-2"})(["flex:1;white-space:pre;padding:0.5rem 1rem;border-radius:",";text-align:center;box-shadow:",";cursor:pointer;border:1px solid transparent;max-width:12rem;",""],l.n_.xl,l.dt.shadow2,e=>{var n,t,i;let{isActive:r,theme:a}=e;return r?(0,o.iv)(["background-color:","14;border:1px solid ",";"],null===(n=a.colors)||void 0===n?void 0:n.accent,null===(t=a.colors)||void 0===t?void 0:t.accent):(0,o.iv)(["&:hover{border:1px solid ",";}"],null===(i=a.colors)||void 0===i?void 0:i.accent)}),v=o.ZP.div.withConfig({componentId:"sc-b7b6b972-3"})(["width:100%;"]);n.ZP=e=>{var n;let{dataId:t="",tabs:i,activeTab:o,onTabChange:a,onTabSelect:l}=e,c=e=>{a(e),d()(l)&&l(i[e].key)},u="".concat((0,s.J4)(t),"tabbed-content-");return(0,r.jsxs)(m,{"data-cimet-id":"".concat(u,"header-tag-wrapper"),children:[(0,r.jsx)(f,{"data-cimet-id":"".concat(u,"tabs"),children:i.map((e,n)=>
1(0,r.jsx)(g,{"data-cimet-id":"".concat(u).concat(n,"-tab"),onClick:()=>c(n),isActive:o===n,children:e.tabName},e.key))}),(0,r.jsx)(v,{"data-cimet-id":"".concat(u,"tab-content"),children:null==i?void 0:null===(n=i[o])||void 0===n?void 0:n.Comp})]})}},78979:function(e,n,t){"use strict";t.d(n,{Kl:function(){return w},Rm:function(){return b},dL:function(){return y},rL:function(){return C}});var i=t(82729),r=t(85893),o=t(1289),a=t(87536),d=t(21842),l=t(12847),c=t(94555),u=t(41849),s=t(92198),p=t(26971),m=t(88513);function f(){let e=(0,i._)(["\n    min-width:100%;\n  "]);return f=function(){return e},e}function g(){let e=(0,i._)(["\n    height: 0.1875rem;\n  "]);return g=function(){return e},e}function v(){let e=(0,i._)(["\n    height: 1.25rem;\n    line-height: 1.25rem;\n    width: 1.25rem;\n    top: -0.5rem;\n  "]);return v=function(){return e},e}let h=o.ZP.div.withConfig({componentId:"sc-28acb155-0"})([""," width:100%;row-gap:1rem;",""],(0,p.fU)("column","flex-start"),l.BC.tablet(f())),w=(0,o.ZP)(d.Z).withConfig({componentId:"sc-28acb155-1"})(["width:100%;height:0.25rem;",""],l.BC.phone(g())),b=(0,o.ZP)(m.ON).withConfig({componentId:"sc-28acb155-2"})(["background:",";"],e=>{var n;return 2===e.index||e.index<1?"".concat(u.DM.lightGray):"".concat(null===(n=e.theme.colors)||void 0===n?void 0:n.primary)}),C=(0,o.ZP)(s.Z.P3Strong).withConfig({componentId:"sc-28acb155-3"})(["color:",";"],u.DM.black),y=o.ZP.div.withConfig({componentId:"sc-28acb155-4"})(["overflow:hidden;height:1.5rem;line-height:1.5rem;width:1.5rem;background-color:",";color:",";border-radius:",";border:1px solid ",";cursor:pointer;top:-0.62rem;z-index:1;",""],u.DM.white,u.DM.white,u.n_.round,u.DM.gray,l.BC.phone(v())),x=(e,n)=>{let{valueNow:t}=n;return(0,r.jsx)(y,{...e,children:t})},Z=(e,n)=>{let{index:t}=n;return(0,r.jsx)(m.ON,{...e,index:t})},P=(e,n)=>{let{index:t}=n;return(0,r.jsx)(b,{...e,index:t})};n.ZP=e=>{var n,t,i,o,d,l,u,p;let{name:m,dataId:f,rules:g={},title:v,minRange:b,maxRange:y,stepVal:I,className:_,options:S,doubleTrack:D,caption:k,footer:j,minDistance:E=1,...M}=e,A=null!=f?f:m,{field:U}=(0,a.bc)({name:m,rules:g,defaultValue:M.defaultValue||(D?[]:""),shouldUnregister:M.shouldUnregister||!1});return(0,r.jsxs)(h,{"data-cimet-id":"".concat(null!=A?A:"styled","-slider-container"),className:_,children:[(0,r.jsx)(s.Z.P1,{"data-cimet-id":"".concat(null!=A?A:"styled","-slider-title"),children:v}),(0,r.jsx)(w,{...U,renderTrack:D?P:Z,renderThumb:x,min:b,max:y,step:I<=0?10:I,pearling:!0,onChange:e=>{M.onChange?M.onChange(e,U.onChange):Number.isNaN(e)?U.onChange(b):U.onChange(e)},minDistance:E,"data-cimet-id":"".concat(null!=A?A:"styled","-slider")}),j?(0,r.jsx)(C,{"data-cimet-id":"".concat(null!=A?A:"styled","-slider-footer-caption"),children:D?j(null!==(d=null==U?void 0:null===(n=U.value)||void 0===n?void 0:n[0])&&void 0!==d?d:b,null!==(l=null==U?void 0:null===(t=U.value)||void 0===t?void 0:t[1])&&void 0!==l?l:y):j(b,y)}):null,k&&(0,r.jsxs)(C,{"data-cimet-id":"".concat(null!=A?A:"styled","-slider-caption"),children:["Plans between ",(0,c.x)(null!==(u=null==U?void 0:null===(i=U.value)||void 0===i?void 0:i[0])&&void 0!==u?u:b,null,"$","","",0)," and"," ",(0,c.x)(null!==(p=null==U?void 0:null===(o=U.value)||void 0===o?void 0:o[1])&&void 0!==p?p:y,null,"$","","",0)]})]})}},22382:function(e,n,t){"use strict";t.d(n,{m:function(){return z},Z:function(){return G}});var i=t(85893),r=t(1289),o=t(67294),a=t(14486),d=t(1822),l=t(28876),c=t(33976),u=t(46070),s=t(7258),p=t(3238),m=t(21516),f=t(87536),g=t(47533),v=t(6056),h=t(95591),w=t(55678),b=t(1531),C=t(57561),y=t(64778),x=t(10035),Z=t(50319),P=t(41442),I=t(92198),_=t(91652),S=t(26021),D=t(23395),k=t(57054),j=t(13706),E=t(40560),M=t(28105),A=t(3631),U=t(98413),B=t(36272),N=t(59526),T=t(80189),O=t(66936),R=t(24594),V=t(16719),L=t(41849),J=t(94144);let F=(0,r.ZP)(C.Z).withConfig({componentId:"sc-dcbe419b-0"})(["gap:1rem;"]),$=r.ZP.button.withConfig({componentId:"sc-dcbe419b-1"})(["background:transparent;border:none;font:inherit;display:flex;align-items:center;gap:0.5rem;color:",";cursor:pointer;& span{color:",";font-size:",";}"],L.DM.white,L.DM.white,e=>e.theme.fontSizes.p1),z=e=>{let n,{isEdit:t,setIsEdit:r,redirect:a,dataId:l,setIsLoading:c,details:u,isFalcon:s}=e,{formState:p,control:m,handleSubmit:g}=(0,f.Gc)(),{origin:b,agentId:C,agentName:_,agentEmail:k}=(0,o.useContext)(O.Z),M=(0,f.qo)({control:m,name:"phoneNumber"}),{vertical:A}=(0,o.useContext)(d.ZP),{mutate:U}=(0,h.kY)(),{query:{data:B},mutate:N}=(0,x.Z)(),[T]=(0,Z.D)(P.N9);
1n=s?M!==(null==B?void 0:B.phone):p.isDirty;let L=async e=>{if(e)try{let e=(0,S.qr)(),i=(0,j.gD)();if(e&&!i){var n,t;let i=await T({variables:{input:{leadId:e}}});(null==i?void 0:null===(t=i.data)||void 0===t?void 0:null===(n=t.sendOTPService)||void 0===n?void 0:n.status)?((0,D.a7)(!0,A),w.Am.success("OTP has been sent successfully")):((0,D.a7)(!1,A),w.Am.error("Failed to send otp please try again after sometime."))}}catch(e){(0,D.a7)(!1,A),w.Am.error("Failed to send otp please try again after sometime.")}},J=async e=>{let t={name:u.Name,email:u.Email,phone:e.phoneNumber};"agent"===b&&(t.agent_id=C,t.agent_name=(0,V.F8)(_),t.agent_email=k);try{n&&(c(!0),s?(await N({phone:t.phone}),await L(t.phone)):(await (0,v.mU)(t,A,1),await U("/customer/send-otp"),await U(["/visitor/masters",A]))),r(!1)}catch(e){w.Am.error("Something went wrong please try again later")}finally{c(!1)}};return t?(0,i.jsxs)(F,{children:[(0,i.jsx)($,{"data-cimet-id":"".concat((0,R.J4)(l,""),"confirm-edit-btn"),type:"submit",onClick:g(e=>J(e)),children:(0,i.jsx)(y.ZP,{type:"FaCheckCircle",size:"20"})}),(0,i.jsx)($,{"data-cimet-id":"".concat((0,R.J4)(l,""),"cancel-edit-btn"),onClick:()=>r(!1),children:(0,i.jsx)(y.ZP,{type:"GiCancel",size:"20"})})]}):a?(0,i.jsx)(E.Z,{dataId:l,href:a}):(0,i.jsxs)($,{"data-cimet-id":"".concat((0,R.J4)(l,"edit"),"btn"),onClick:()=>r(!0),children:[(0,i.jsx)(y.ZP,{size:"20",type:"FiEdit"}),(0,i.jsx)(I.Z.P2,{"data-cimet-id":"".concat((0,R.J4)(l,"edit"),"btn-heading"),children:"EDIT"})]})};var G=e=>{var n,t,r,v,h,w,C;let{addressLine:y="",addressData:x={},fullAddressData:Z="",visitorData:P={},identificationData:I=[],fullName:S="",redirect:D=!1,dataId:j="",allowEdit:E=!1,isFalcon:O=!1}=e,{vertical:V}=(0,o.useContext)(d.ZP),[L,F]=(0,o.useState)(!1),[$,G]=(0,o.useState)(!1),{getJourneyQuestion:H}=(0,_.Z)(),Y=null===l.default||void 0===l.default?void 0:null===(t=l.default.reviewDetails)||void 0===t?void 0:null===(n=t[V])||void 0===n?void 0:n.personal,K=null===l.default||void 0===l.default?void 0:null===(r=l.default.formValidationMode)||void 0===r?void 0:r[V],{data:q}=(0,N.Z)(),W=(0,A.Z)(),X=null==q?void 0:null===(v=q.data)||void 0===v?void 0:v.journey_data,{isElecEarliestConnection:Q,isGasEarliestConnection:ee}=(0,U.wf)(q),{eicStatus:en}=(0,B.Z)(),et=V===T.ZK.healthInsurance,ei=P?{name:S,email:null==P?void 0:P.email,"mobile number":!et&&L?(0,i.jsx)(p.wA,{dataId:j,children:(0,i.jsx)(m.ZP,{dataId:j,name:"phoneNumber",placeholder:"Enter your mobile number",inputMode:"numeric"})}):null==P?void 0:P.phone,...Q&&{"moving date (electricity)":null==X?void 0:X.moving_date},...ee&&{"moving date (gas)":null==X?void 0:X.gas_movein_date},...(null==P?void 0:P.moving_house)&&!(Q||ee)&&{"moving date":(0,c.j6)(null==P?void 0:P.moving_date,"dd/MM/yyyy")},"connection address":null==P?void 0:P.address,...et&&{state:null==P?void 0:P.state},...et&&{"Quote For":null==P?void 0:P.quoteFor},"preferred contact number":!et&&L?(0,i.jsx)(p.wA,{dataId:j,children:(0,i.jsx)(m.ZP,{dataId:j,name:"phoneNumber",placeholder:"Enter your mobile number",inputMode:"numeric"})}):null==P?void 0:P.phone,"date of birth":null==P?void 0:P.dob,gender:(0,a.startCase)(null==P?void 0:P.gender),"member number":(null==P?void 0:P.isMember)?null==P?void 0:P.memberNumber:null,"residential status":(0,M.bP)(k.jM,null==x?void 0:x.residentialStatus),address:"".concat(et?Z:y,", Australia"),"current address stay":(0,U.yh)(null==x?void 0:x.stayedYear,null==x?void 0:x.stayedMonth),"residency status":(null==P?void 0:P.residencyStatus)?(0,a.startCase)(null==P?void 0:P.residencyStatus):null,"visa subclass":(null==P?void 0:P.residencyStatus)==="visaHolder"?null==P?void 0:P.visaSubclass:null,"visa expiry":(null==P?void 0:P.residencyStatus)==="visaHolder"&&(null==P?void 0:P.visaSubclass)?null==P?void 0:P.visaExpiry:null}:{},er=(0,s.object)({phoneNumber:(0,s.string)().nullable().required("Mobile number is required").matches(u.cN,"Mobile no. must start from 04 and should be of 10 digits")}),eo=(0,f.cI)({resolver:(0,g.X)(er),defaultValues:{phoneNumber:null!==(C=null==P?void 0:P.phone)&&void 0!==C?C:""},mode:K||"onSubmit"});return $?(0,i.jsx)(b.C7,{dataId:j}):(0,i.jsx)(f.RV,{...eo,children:(0,i.jsxs)(J.UK,{dataId:j,headerText:(null==W?void 0:null===(h=W.personalDetailsSection)||void 0===h?void 0:h.value)||H("14.3")||"PERSONAL DETAILS",children:[(0,i.jsx)(J.tP,{"data-cimet-id":"".concat((0,R.J4)(j,"personal-details"),"heading-wrapper"),children:(E||D)&&!en&&(0,i.jsx)(z,{isFalcon:O,dataId:j,isEdit:L,setIsEdit:F,redirect:D,setIsLoading:G,details:ei})}),(0,i.jsxs)(J.c0,{"data-cimet-id":"".concat((0,R.J4)(j,"personal-details"),"wrapper"),children:[null==Y?void 0:Y.map(e=>(null==ei?void 0:ei[e.toLowerCase()])?(0,i.jsxs)(J.dY,{"data-cimet-id":"".concat((0,R.J4)(j,e,"text"),"field-label-wrapper").toLowerCase().replaceAll(" ",""),children:[(0,i.jsxs)(J.Dx,{"data-cimet-id":"".concat((0,R.J4)(j,e,"text"),"field-label").toLowerCase().replaceAll(" ",""),children:[e,":"]}
1),(0,i.jsx)(J.VY,{"data-cimet-id":"".concat((0,R.J4)(j,e,"text"),"field-content"),children:null==ei?void 0:ei[e.toLowerCase()]})]},e):null),null==I?void 0:null===(w=I.filter(e=>null==e?void 0:e.value))||void 0===w?void 0:w.map(e=>(0,i.jsxs)(J.dY,{"data-cimet-id":"".concat((0,R.J4)(j,e.label,"text"),"field-label-wrapper").toLowerCase().replaceAll(" ",""),children:[(0,i.jsxs)(J.Dx,{"data-cimet-id":"".concat((0,R.J4)(j,e.label,"text"),"field-label").toLowerCase().replaceAll(" ",""),children:[e.label,":"]}),(0,i.jsx)(J.VY,{"data-cimet-id":"".concat((0,R.J4)(j,e.label,"text"),"field-content"),as:"div",children:e.value})]},e.label))]})]})})}},8273:function(e,n,t){"use strict";t.d(n,{v:function(){return p},$:function(){return ec}});var i=t(85893),r=t(67294),o=t(80189),a=t(26881),d=t(28876),l=t(1352),c=t(1822),u=t(23395),s=t(97341);let p=e=>{let{dataId:n="",step:t}=e,{isAgencyAutomated:p}=(0,r.useContext)(l.Z),{originVertical:m}=(0,r.useContext)(c.ZP),f=m===o.ZK.openEnergy,g=f?o.ZK.openEnergy:o.ZK.energy,{label:v,steps:h}=d.default.steps[g],w=(0,u.z5)(),{data:b}=(0,s.Z)(w,!f),C={label:v,steps:[...h,...p&&f&&!(null==b?void 0:b.status)?[{step:5,name:"Consent and Submit",link:"/".concat(o.ZK.openEnergy,"/properties/agreement")}]:[]]};return(0,i.jsx)(a.ZP,{dataId:n,stepperData:C,step:t,total:C.steps.length})};var m=t(82729),f=t(1289),g=t(35234),v=t(57054),h=t(45509),w=t(12847),b=t(45915),C=t(24594),y=t(41834),x=t(85941),Z=t(35357),P=t(41849),I=t(91652),_=t(85976),S=t(36272),D=t(26971),k=t(13706),j=t(32632),E=t(64778),M=t(92198),A=t(1531),U=t(16719);function B(){let e=(0,m._)(["\n    padding-top: 1.5rem;\n  "]);return B=function(){return e},e}function N(){let e=(0,m._)(["\n    display: block;\n  "]);return N=function(){return e},e}function T(){let e=(0,m._)(["\n    display: block;\n  "]);return T=function(){return e},e}function O(){let e=(0,m._)(["\n    top: 0;\n    left: 0;\n    right: 0;\n    height: 0.5rem;\n    border-radius: ",";\n    overflow: hidden;\n  "]);return O=function(){return e},e}function R(){let e=(0,m._)(["\n    width: ",";\n  "]);return R=function(){return e},e}function V(){let e=(0,m._)(["\n    display: none;\n  "]);return V=function(){return e},e}function L(){let e=(0,m._)(["\n    padding: 0.75rem 0;\n  "]);return L=function(){return e},e}let J=f.ZP.div.withConfig({componentId:"sc-3a61cd6d-0"})(["width:100%;position:relative;"]),F=f.ZP.div.withConfig({componentId:"sc-3a61cd6d-1"})(["position:relative;width:100%;",";",""],(0,D.fU)("column","center","space-between"),w.BC.tablet(B())),$=(0,f.ZP)(M.Z.P4Strong).withConfig({componentId:"sc-3a61cd6d-2"})(["margin-bottom:0.313rem;display:none;",""],w.BC.tablet(N())),z=(0,f.ZP)(M.Z.P4).withConfig({componentId:"sc-3a61cd6d-3"})(["margin-top:0.313rem;text-align:right;display:none;",""],w.BC.tablet(T())),G=f.ZP.div.withConfig({componentId:"sc-3a61cd6d-4"})(["position:absolute;top:25%;left:","px;right:","px;height:0.25rem;background-color:",";z-index:",";",""],e=>e.marginLeft,e=>e.marginRight,P.DM.lightGray,P.XK.baseIndex,w.BC.tablet(O(),P.n_.sm)),H=f.ZP.div.withConfig({componentId:"sc-3a61cd6d-5"})(["position:absolute;top:0;left:0;height:100%;background-color:",";transition:0.2s ease;width:",";",""],e=>{var n;return null===(n=e.theme.colors)||void 0===n?void 0:n.primary},e=>"".concat((e.currentStep-1)/(e.totalSteps-1)*100,"%"),w.BC.tablet(R(),e=>e.currentStep===e.totalSteps?"100%":"".concat(e.currentStep/e.totalSteps*100,"%"))),Y=f.ZP.div.withConfig({componentId:"sc-3a61cd6d-6"})([""," position:relative;z-index:",";width:100%;",""],(0,D.fU)("row","center","space-between"),P.XK.infoTooltip,w.BC.tablet(V())),K=f.ZP.div.withConfig({componentId:"sc-3a61cd6d-7"})(["width:1.6675rem;height:1.6675rem;border-radius:",";margin-top:0.1875rem;",";font-weight:",";font-size:1rem;background-color:",";color:",";position:relative;.edit-icon{position:absolute;display:none;}"],P.n_.round,(0,D.fU)("center","center"),P.Xw.semibold,e=>{var n;return e.completed||e.active?null===(n=e.theme.colors)||void 0===n?void 0:n.primary:P.DM.lightGray},e=>e.completed||e.active?P.DM.white:P.DM.lightGray),q=f.ZP.div.withConfig({componentId:"sc-3a61cd6d-8"})(["",";position:relative;"," ",""],(0,D.fU)("column","center"),e=>{var n;return e.disabled||!e.completed||e.active||e.disableClick?"":"\n      cursor: pointer;\n      &:hover {\n        ".concat(K," {\n          background-color: ").concat(P.DM.white,";\n          border: 2px solid ").concat(null===(n=e.theme.colors)||void 0===n?void 0:n.primary,";\n        }\n        .check-icon {\n          display: none;\n        }\n        .edit-icon {\n          display: block;\n        }\n      }\n    ")},e=>(e.disableClick||e.disabled)&&"\n      pointer-events: none;\n    "),W=(0,f.ZP)(M.Z.P4Strong).withConfig({componentId:"sc-3a61cd6d-9"})(["color:",";text-align:center;margin-top:0.5rem;font-size:0.75rem;white-space:nowrap;"],e=>{var n;return e.completed||e.active?null===(n=e.theme.colors)||void 0===n?void 0:n.primary:P.DM.gray}),X=(0,f.ZP)(E.ZP).withConfig({componentId:"sc-3a61cd6d-10"})(["color:",";"],e=>e.completed||e.active?P.DM.white:P.DM.gray),Q=(0,f.ZP)(E.ZP).withConfig({componentId:"sc-3a61cd6d-11"})(["color:",";display:none;"],e=>{var n;return null===(n=e.theme.colors)||void 0===n?void 0:n.primary}),ee=e=>{let{children:n,eicStatus:t,pageLink:r,scroll:o,completed:a}=e;return t||!a?n:(0,i.jsx)(j.Z,{href:r,scroll:o,prefetch:!1,children:n})},en=e=>{var n,t,o,a;let{total:l,step:u,stepperData:s,pages:p=[],dataId:m="",...f}=e,{vertical:g}=(0,r.useContext)(c.ZP),{eicStatus:v}=(0,S.Z)(),h=s||d.default.steps[g]||{},[w,b]=(0,r.useState)({marginLeft:0,marginRight:0}),y=(0,r.useRef)([]);(0,Z.size)(p)&&(h=(0,U.W0)(p,h));let x=l,P=u;x||P||(x=null==h?void 0:null===(o=h.steps)||void 0===o?void 0:o.length,P=((null==h?void 0:null===(a=h.steps)||void 0===a?void 0:a.findIndex(e=>e.link===window.location.pathname))||0)+1);let{data:_,isValidating:D}=(0,I.Z)((null==h?void 0:null===(n=h.label)||void 0===n?void 0:n.type)==="dynamic"),j=(0,k.gD)(),E=(0,r.useMemo)(()=>{var e;return(null==h?void 0:null===(e=h.steps)||void 0===e?void 0:e.map(e=>({step:null==e?void 0:e.step,name:(null==_?void 0:_[null==e?void 0:e.name])||(null==e?void 0:e.name),...(null==_?void 0:_[null==e?void 0:e.timeToFinish])||(null==e?void 0:e.timeToFinish)?{subText:(null==_?void 0:_[null==e?void 0:e.timeToFinish])||(null==e?void 0:e.timeToFinish)}:{},href:(null==e?void 0:e.link)||"",disableClick:null==e?void 0:e.disableClick})))||[]},[null==h?void 0:h.steps,_]);if((0,r.useLayoutEffect)(()=>{var e,n,t,i;b({marginLeft:(null!==(t=null===(e=y.current[0])||void 0===e?void 0:e.offsetWidth)&&void 0!==t?t:0)/2,marginRight:(null!==(i=null===(n=y.current[x-1])||void 0===n?void 0:n.offsetWidth)&&void 0!==i?i:0)/2})},[x,E]),D)return(0,i.jsx)(A.C7,{});let M=P!==x?(0,Z.startCase)(null==E?void 0:null===(t=E[P])||void 0===t?void 0:t.name):"";return(0,i.jsxs)(J,{"data-cimet-id":"".concat((0,C.J4)(m,g),"stepper-container"),...f,children:[(0,i.jsxs)($,{"data-cimet-id":"".concat((0,C.J4)(m,"step"),"-counter"),children:["Step ",P," of ",x]}),(0,i.jsxs)(F,{children:[(0,i.jsx)(G,{marginLeft:w.marginLeft,marginRight:w.marginRight,children:(0,i.jsx)(H,{currentStep:P,totalSteps:x})}),(0,i.jsx)(Y,{children:(0,Z.range)(1,x+1).map(e=>{let n=P>e,t=P===e,r=null==E?void 0:E[e-1],o=!j&&(n||t)?null==r?void 0:r.href:"",a=(null==r?void 0:r.disableClick)||P===e||e>P;return(0,i.jsxs)(q,{ref:n=>(y.current[e-1]=n,n),disabled:v,completed:n,active:t,disableClick:a,children:[(0,i.jsx)(ee,{eicStatus:v,pageLink:o,scroll:n,completed:n,children:(0,i.jsxs)(K,{"data-cimet-id":"".concat((0,C.J4)(m,g),"step-circle-").concat(e),completed:n,active:t,children:[(0,i.jsx)(X,{className:"check-icon",type:"BiCheck",size:18,svgOnly:!0,completed:n,active:t}),n&&!v&&(0,i.jsx)(Q,{className:"edit-icon",type:"MdEdit",size:16,svgOnly:!0})]})}),(0,i.jsx)(W,{completed:n,active:t,"data-cimet-id":"".concat((0,C.J4)(m,g),"step-title-").concat(e),children:null==r?void 0:r.name})]},e)})})]}),M&&(0,i.jsxs)(z,{"data-cimet-id":"".concat((0,C.J4)(m,g),"next-step"),children:["Next: ",M]})]})},et=(0,f.ZP)(_.ZP).withConfig({componentId:"sc-3a61cd6d-12"})(["padding:1rem 0;background:transparent;"," &.sticky{background:transparent;backdrop-filter:none;box-shadow:none;}"],w.BC.tablet(L()));var ei=e=>{let{dataId:n="",...t}=e;return(0,i.jsx)(et,{dataId:n,children:(0,i.jsx)(en,{dataId:n,...t})})},er=t(61436);function eo(){let e=(0,m._)(["\n      padding-top: 0;\n    "]);return eo=function(){return e},e}let ea=d.default.paths[o.ZK.openEnergy].v2,ed=e=>{var n,t,i,r,o,a,d,l,c,u;let{steps:s,customerConsole:p,stepperLabels:m,propertyId:f,isAnyPropertyAdded:g,isBillsAddPage:h}=e,w=[...s],b=f?"/".concat(f):"";return(null==p?void 0:p.agencyAgreementStatus)||w.push({step:w.length+1,name:null!==(t=null==m?void 0:null===(n=m.personalDetailStepperText)||void 0===n?void 0:n.value)&&void 0!==t?t:"Setup  Your Account",link:"".concat(ea.personalDetails).concat(b),disableClick:!1}),(null==p?void 0:p.agencyAgreementStatus)&&((null==p?void 0:p.workflowStartWith)===v.Nr.SETUP_YOUR_ACCOUNT?((h||!g||f)&&w.push({step:w.length+1,name:null!==(o=null==m?void 0:null===(r=m.personalDetailStepperText)||void 0===r?void 0:r.value)&&void 0!==o?o:"Setup  Your Account",link:"".concat(ea.personalDetails).concat(b),disableClick:!1}),w.push({step:w.length+1,name:null!==(a=null==m?void 0:null===(i=m.agreementStepperText)||void 0===i?void 0:i.value)&&void 0!==a?a:"Final Step",link:"".concat(ea.agreement).concat(b),disableClick:!1})):(w.push({step:w.length+1,name:null!==(l=null==m?void 0:null===(d=m.agreementStepperText)||void 0===d?void 0:d.value)&&void 0!==l?l:"Agreement",link:"".concat(ea.agreement).concat(b),disableClick:!1}),(h||!g||f)&&w.push({step:w.length+1,name:null!==(u=null==m?void 0:null===(c=m.personalDetailStepperText)||void 0===c?void 0:c.value)&&void 0!==u?u:"Final Step",link:"".concat(ea.personalDetails).concat(b),disableClick:!1}))),w},el=f.ZP.div.withConfig({componentId:"sc-a2d9498e-0"})(["","{padding:0;}","{"," &.sticky{background:transparent;box-shadow:none;}}"],h.OO,a.fg,w.BC.tablet(eo())),ec=e=>{var n,t,a,c;let{dataId:u="",step:s,variant:p=b.vN.welcomeSteps,propertyId:m}=e,{customerConsole:f}=(0,r.useContext)(l.Z),{data:v}=(0,y.Z)(er.bt.openEnergyV2,er.fj.personalDetails),{propertiesData:h}=(0,x.Z)(),w=(0,g.c)().pathname.includes(ea.addBills),{label:Z,steps:P}=d.default[p][o.ZK.openEnergy],I={label:Z,steps:ed({steps:[{...P[0],step:P[0].step,name:null!==(c=p===b.vN.welcomeSteps?null==v?void 0:null===(n=v.cdrStepperText)||void 0===n?void 0:n.value:null==v?void 0:null===(t=v.myBillStepperText)||void 0===t?void 0:t.value)&&void 0!==c?c:P[0].name,link:P[0].link}],customerConsole:f,stepperLabels:v,propertyId:m,isAnyPropertyAdded:!!(null==h?void 0:null===(a=h.propertyMinimalInfo)||void 0===a?void 0:a.length),isBillsAddPage:w})},_=(0,C.J4)(u);return(0,i.jsx)(el,{"data-cimet-id":"".concat(_,"v2-stepper-wrapper"),children:(0,i.jsx)(ei,{dataId:"".concat(_,"v2"),stepperData:I,step:s,total:I.steps.length})})}},93435:function(e,n,t){"use strict";t.d(n,{$7:function(){return eo},AP:function(){return eP},Ce:function(){return er},DR:function(){return ex},DW:function(){return e9},FR:function(){return e$},Fp:function(){return eQ},Gc:function(){return eq},H0:function(){return e5},Id:function(){return eO},JH:function(){return eR},KE:function(){return e2},K_:function(){return eH},L3:function(){return ef},Lm:function(){return eS},O$:function(){return es},QY:function(){return eK},SA:function(){return e_},SP:function(){return eU},ST:function(){return eC},Sr:function(){return ep},TW:function(){return ev},To:function(){return eD},UU:function(){return e0},VI:function(){return eV},VR:function(){return ei},VX:function(){return eA},W3:function(){return eB},WL:function(){return eh},WV:function(){return ew},XE:function(){return eN},YN:function(){return eu},Ym:function(){return e6},Yo:function(){return ek},ZC:function(){return eF},ZT:function(){return eM},ah:function(){return eZ},bL:function(){return e8},dC:function(){return ea},dM:function(){return eX},eb:function(){return et},f5:function(){return e3},fu:function(){return eE},fz:function(){return eJ},iO:function(){return eW},m9:function(){return eT},mA:function(){return el},mE:function(){return eg},oA:function(){return e4},oS:function(){return em},oy:function(){return ej},p$:function(){return eI},pP:function(){return eG},s6:function(){return ec},tX:function(){return ez},uh:function(){return e1},vT:function(){return ed},y:function(){return eY},yj:function(){return eL},zj:function(){return ey}});var i=t(82729),r=t(1289),o=t(64778),a=t(92198),d=t(41849),l=t(26971),c=t(12283),u=t(12847),s=t(14354),p=t(78297),m=t(23325),f=t(26673),g=t(21516),v=t(34522),h=t(8720);function w(){let e=(0,i._)(["\n    gap: 1rem;  \n  "]);return w=function(){return e},e}function b(){let e=(0,i._)(["\n    justify-content: space-between;\n    width: 100%;\n    "]);return b=function(){return e},e}function C(){let e=(0,i._)(["\n    ","\n  "]);return C=function(){return e},e}function y(){let e=(0,i._)(["\n            max-width: 9.375rem;\n          "]);return y=function(){return e},e}function x(){let e=(0,i._)(["\n    top: -3.05rem;\n    left: -1rem;  \n  "]);return x=function(){return e},e}function Z(){let e=(0,i._)(["\n    padding: 1rem;\n  "]);return Z=function(){return e},e}function P(){let e=(0,i._)(["\n      ","{\n        padding: 1rem;\n      }\n  "]);return P=function(){return e},e}function I(){let e=(0,i._)(["\n    gap: 0.75rem;  \n    padding: 0.75rem;\n  "]);return I=function(){return e},e}function _(){let e=(0,i._)(["\n    flex-direction: column;  \n  "]);return _=function(){return e},e}function S(){let e=(0,i._)(["\n      gap: 0.5rem;\n  "]);return S=function(){return e},e}function D(){let e=(0,i._)(["\n    width: 100%; \n  "]);return D=function(){return e},e}function k(){let e=(0,i._)(["\n    padding: 0.75rem;\n    ","{\n      width: 1rem;\n      height: 1rem;\n    } \n  "]);return k=function(){return e},e}function j(){let e=(0,i._)(["\n    padding: 0.75rem;\n\n    ","{\n     > svg{\n        width:1rem;\n      }\n    }\n\n    ","{\n      padding:0;\n    }\n  "]);return j=function(){return e},e}function E(){let e=(0,i._)(["\n    white-space: unset;\n  "]);return E=function(){return e},e}function M(){let e=(0,i._)(["\n    gap: 0.25rem;\n    flex-direction: column;\n  "]);return M=function(){return e},e}function A(){let e=(0,i._)(["\n    gap: 0.25rem;\n  "]);return A=function(){return e},e}
1function U(){let e=(0,i._)(["\n    align-self: none;\n    width: 35%;\n  "]);return U=function(){return e},e}function B(){let e=(0,i._)(["\n    align-items: start;\n\n    svg{\n      margin-top: 0.35rem;\n    }\n  "]);return B=function(){return e},e}function N(){let e=(0,i._)(["\n    align-items: start;\n  "]);return N=function(){return e},e}function T(){let e=(0,i._)(["\n    flex-direction: column;\n    align-items: start;\n  "]);return T=function(){return e},e}function O(){let e=(0,i._)(["\n     padding: 0;\n  "]);return O=function(){return e},e}function R(){let e=(0,i._)(["\n     padding: 0;\n  "]);return R=function(){return e},e}function V(){let e=(0,i._)(["\n    padding: 1rem;\n  "]);return V=function(){return e},e}function L(){let e=(0,i._)(["\n    flex-direction: column;\n    align-items: flex-start;\n  "]);return L=function(){return e},e}function J(){let e=(0,i._)(["\n        width:1rem;\n      "]);return J=function(){return e},e}function F(){let e=(0,i._)(["\n      gap: 1.5rem;\n  "]);return F=function(){return e},e}function $(){let e=(0,i._)(["\n    margin-left: 0;\n    gap: 0.25rem;\n    flex-direction: column;\n    align-items: start;\n\n    p{\n      display: inline;\n    }\n  "]);return $=function(){return e},e}function z(){let e=(0,i._)(["\n        padding-right: 1.5rem;\n      "]);return z=function(){return e},e}function G(){let e=(0,i._)(["\n      display: grid;\n      gap: 0.25rem;\n      border-right: 1px solid ",";\n      padding-right: 3rem;\n\n      ","\n\n      &:last-child {\n        border-right: 0;\n        padding-right: 0.25rem;\n      }\n    \n    "]);return G=function(){return e},e}function H(){let e=(0,i._)(["\n        line-height: ",";\n      "]);return H=function(){return e},e}function Y(){let e=(0,i._)(["\n      padding: 1rem 1.75rem;\n    "]);return Y=function(){return e},e}function K(){let e=(0,i._)(["\n      gap: 0.7rem;\n    "]);return K=function(){return e},e}function q(){let e=(0,i._)(["\n    padding: 0.75rem;\n  "]);return q=function(){return e},e}function W(){let e=(0,i._)(["\n      gap: 0.75rem;\n    "]);return W=function(){return e},e}function X(){let e=(0,i._)([" \n      gap: 0.5rem;\n    "]);return X=function(){return e},e}function Q(){let e=(0,i._)(["\n    img {\n      display: none;\n    }\n  "]);return Q=function(){return e},e}function ee(){let e=(0,i._)(["\n    ","{\n      padding: 0.5rem 1rem 0.25rem;\n    }\n  "]);return ee=function(){return e},e}let en="2.0625rem",et=r.ZP.div.withConfig({componentId:"sc-e5c089c6-0"})([""," position:relative;gap:1.5rem;width:100%;overflow:hidden;",""],(0,l.fU)("column","start","start"),u.BC.phone(w())),ei=r.ZP.div.withConfig({componentId:"sc-e5c089c6-1"})([""," padding:0.5rem;background-color:",";border-radius:",";width:max-content;cursor:default;","{margin-right:0.5rem;white-space:nowrap;}"],(0,l.fU)(),e=>{var n,t;let{theme:i}=e;return(null===(n=i.colors)||void 0===n?void 0:n.interaction10)||"".concat(null===(t=i.colors)||void 0===t?void 0:t.accent,"14")},d.n_.xl,a.Z.P2Medium),er=r.ZP.div.withConfig({componentId:"sc-e5c089c6-2"})(["",";gap:1rem;overflow:hidden;",""],(0,l.fU)("row","center","start","nowrap"),u.BC.phone(b())),eo=(0,r.ZP)(a.Z.P3Medium).withConfig({componentId:"sc-e5c089c6-3"})(["white-space:nowrap;overflow-x:hidden;text-overflow:ellipsis;flex:1;text-align:left;"]),ea=r.ZP.div.withConfig({componentId:"sc-e5c089c6-4"})([""," gap:1rem;","{color:",";}width:100%;",""],(0,l.fU)("row","center","start","nowrap"),a.Z.P1Strong,e=>{var n,t;let{theme:i}=e;return(null===(n=i.colors)||void 0===n?void 0:n.focus)||(null===(t=i.colors)||void 0===t?void 0:t.primary)},u.BC.phone(C(),(0,l.fU)("column","flex-start","",""))),ed=(0,r.ZP)(o.ZP).withConfig({componentId:"sc-e5c089c6-5"})(["padding:0.125rem;margin-right:0.25rem;"]),el=(0,r.ZP)(a.Z.P1Strong).withConfig({componentId:"sc-e5c089c6-6"})([""," white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"],e=>e.showFullAddress?"":(0,r.iv)(["max-width:12.5rem;",""],u.BC.phone(y())));r.ZP.div.withConfig({componentId:"sc-e5c089c6-7"})([""]);let ec=r.ZP.div.withConfig({componentId:"sc-e5c089c6-8"})(["border:1px solid ",";border-radius:",";padding:0.125rem 0.5rem;display:flex;white-space:nowrap;p{margin-left:0.25rem;color:",";line-height:unset;}background-color:",";"],e=>{var n,t;let{theme:i}=e;return(null===(n=i.colors)||void 0===n?void 0:n.focus)||(null===(t=i.colors)||void 0===t?void 0:t.accent)},d.n_.xl2,d.DM.red,d.DM.white),eu=r.ZP.button.withConfig({componentId:"sc-e5c089c6-9"})(["border:1px solid ",";border-radius:",";padding:0.125rem 0.5rem;display:flex;white-space:nowrap;p{margin-left:0.25rem;color:",";line-height:unset;}background-color:",";"],e=>{var n,t;let{theme:i}=e;return(null===(n=i.colors)||void 0===n?void 0:n.focus)||(null===(t=i.colors)||void 0===t?void 0:t.accent)},d.n_.xl2,d.DM.red,d.DM.white),es=r.ZP.button.withConfig({componentId:"sc-e5c089c6-10"})(["border:none;padding:0.125rem 0.5rem;display:flex;white-space:nowrap;p{margin-left:0.25rem;color:",";line-height:unset;}background-color:",";"],d.DM.red,d.DM.white),ep=r.ZP.div.withConfig({componentId:"sc-e5c089c6-11"})(["width:100%;"]),em=(0,r.ZP)(a.Z.P2Strong).withConfig({componentId:"sc-e5c089c6-12"})(["position:absolute;color:",";background:",";padding:0.25rem 1rem;height:",";border-radius:"," "," 0 0;top:-3.5625rem;left:-2rem;",""],d.DM.white,d.HW.gradientHeader,en,d.n_.md,d.n_.md,u.BC.phone(x())),ef=r.ZP.div.withConfig({componentId:"sc-e5c089c6-13"})([""," gap:1rem;position:relative;width:100%;"],(0,l.fU)("row","center","space-between","wrap")),eg=r.ZP.div.withConfig({componentId:"sc-e5c089c6-14"})(["width:100%;padding:1.5rem;box-shadow:",";",";",""],d.dt.shadow2,e=>{let{isPlansSectionVisible:n}=e;return n?"":(0,r.iv)(["border-radius:0 0 "," ",";"],d.n_.lg2,d.n_.lg2)},u.BC.phone(Z())),ev=(0,r.ZP)(a.Z.P1Strong).withConfig({componentId:"sc-e5c089c6-15"})([""," gap:0.25rem;padding:0.625rem 1.5rem;border-radius:0 0 ",";cursor:pointer;",""],(0,l.fU)(),e=>{let{showPlans:n}=e;return n?"0 0":"".concat(d.n_.md," ").concat(d.n_.md)},e=>{var n,t;return e.spaceBetween?(0,r.iv)(["justify-content:space-between;border:1px solid ",";border-radius:",";padding:0.5rem;"],d.DM.lightGray,d.n_.md):"\n       background-color: ".concat(null==e?void 0:null===(t=e.theme)||void 0===t?void 0:null===(n=t.colors)||void 0===n?void 0:n.accent,";\n        color: ").concat(d.DM.white,";\n      ")}),eh=(0,r.ZP)(c.ZP).withConfig({componentId:"sc-e5c089c6-16"})(["background-color:",";border-radius:",";"," ","{background-color:unset;}","{border:none;padding:1.5rem;border-radius:",";border-top-left-radius:",";box-shadow:",";}.expandedHeader{border-radius:"," "," 0 0;}"," > svg{align-self:start;}","{padding-top:0.25rem;}",""],d.DM.white,d.n_.lg2,e=>{let{isSavingsPresent:n}=e;return n?(0,r.iv)(["margin-top:",";"],en):""},o.JO,c._m,d.n_.lg2,e=>{let{isSavingsPresent:n}=e;return n?0:d.n_.lg2},d.dt.accordian,e=>{let{isSavingsPresent:n}=e;return n?0:d.n_.lg2},d.n_.lg2,c._m,c.PU,u.BC.phone(P(),c._m)),ew=r.ZP.div.withConfig({componentId:"sc-e5c089c6-17"})([""," background-color:",";gap:1.5rem;border:1px solid ",";border-radius:0 "," ",";padding:1rem;",";.margin-zero{margin:0;}"],(0,l.fU)("column","start","start"),d.DM.white,d.DM.lightGray,d.n_.lg,d.n_.lg,u.BC.phone(I()));r.ZP.div.withConfig({componentId:"sc-e5c089c6-18"})([""," gap:1.3125rem;width:100%;"," ",""],(0,l.fU)("row","stretch","center","wrap"),u.BC.tablet(_()),u.BC.phone(S()));let eb=r.ZP.div.withConfig({componentId:"sc-e5c089c6-19"})([""," "," ",""],(0,l.fU)("row","center","space-between"),u.BC.tablet(D()),u.BC.phone(k(),p.sz));r.ZP.div.withConfig({componentId:"sc-e5c089c6-20"})([""," background-color:","14;padding:1rem;border-radius:",";flex:1;",",",",","{width:100%;height:100%;}",""],(0,l.fU)(),e=>{var n;let{theme:t}=e;return null===(n=t.colors)||void 0===n?void 0:n.accent},d.n_.lg,p.ll,p.Bk,eb,u.BC.phone(j(),p.ll,eb)),r.ZP.div.withConfig({componentId:"sc-e5c089c6-21"})(["white-space:nowrap;","{display:inline-flex;gap:0.625rem;}",""],a.Z.P2Medium,u.BC.tablet(E())),r.ZP.div.withConfig({componentId:"sc-e5c089c6-22"})([""," width:100%;row-gap:1.5rem;column-gap:1rem;",""],(0,l.fU)("row","start","start","wrap"),u.BC.phone(M()));let eC=r.ZP.div.withConfig({componentId:"sc-e5c089c6-23"})([""," width:100%;border:1px solid ",";border-radius:",";padding:1rem;gap:0.625rem;"],(0,l.fU)("column","flex-start"),d.DM.lightGray,d.n_.md),ey=r.ZP.div.withConfig({componentId:"sc-e5c089c6-24"})(["",";row-gap:1.5rem;column-gap:1rem;width:100%;",""],(0,l.fU)("row","start","space-between","wrap"),u.BC.phone(A())),ex=r.ZP.div.withConfig({componentId:"sc-e5c089c6-25"})(["",";gap:0.5rem;"],(0,l.fU)("row","baseline","space-between","wrap")),eZ=r.ZP.div.withConfig({componentId:"sc-e5c089c6-26"})([""," padding-left:0.75rem;border-left:1px solid ",";"," &:first-child{border-left:none;padding-left:0;}","{display:inline-flex;align-items:baseline;gap:0.25rem;}",""],(0,l.fU)("column","flex-start"),d.DM.lightGray,e=>e.standalone?"":(0,r.iv)(["flex:1 1 auto;"]),a.Z.P3Medium,u.BC.phone(U())),eP=r.ZP.div.withConfig({componentId:"sc-e5c089c6-27"})(["",";gap:0.625rem;background-color:",";color:",";padding:0.5rem 1rem;border-radius:",";width:100%;",""],(0,l.fU)("row","center","space-between"),e=>{var n,t;let{theme:i}=e;return(null===(n=i.colors)||void 0===n?void 0:n.highlightSecondary)||(null===(t=i.colors)||void 0===t?void 0:t.accent)},e=>{var n;let{theme:t}=e;return(null===(n=t.colors)||void 0===n?void 0:n.secondary)||d.DM.black},d.n_.sm,u.BC.laptop(B())),eI=r.ZP.div.withConfig({componentId:"sc-e5c089c6-28"})([""," gap:0.5rem;",""],(0,l.fU)("row","center","flex-start"),u.BC.laptop(N()));r.ZP.div.withConfig({componentId:"sc-e5c089c6-29"})(["min-width:32%;","{display:inline-flex;align-items:center;gap:0.5rem;}"],a.Z.P3);let e_=r.ZP.div.withConfig({componentId:"sc-e5c089c6-30"})([""," width:100%;gap:1rem;",",","{padding:0;}"," ",""],(0,l.fU)("row","center","space-between"),m.jS,m.MF,u.BC.laptop(T()),u.BC.phone(O())),eS=r.ZP.div.withConfig({componentId:"sc-e5c089c6-31"})([""," gap:0.5rem;"],(0,l.fU)("column","start","start")),eD=r.ZP.div.withConfig({componentId:"sc-e5c089c6-32"})([""," gap:1rem;"],(0,l.fU)("row","start","start")),ek=r.ZP.img.withConfig({componentId:"sc-e5c089c6-33"})(["border:1px solid ",";border-radius:",";padding:0.625rem;object-fit:contain;"],d.DM.lightGray,d.n_.md),ej=r.ZP.div.withConfig({componentId:"sc-e5c089c6-34"})([""," border:1px solid ",";border-radius:",";padding:0.625rem;width:5.5rem;height:5rem;background:",";"],(0,l.fU)("row","center","center"),d.DM.lightGray,d.n_.md,d.DM.lightGray);r.ZP.div.withConfig({componentId:"sc-e5c089c6-35"})([""," width:100%;cursor:pointer;color:white;border-radius:",";padding:0.625rem 1rem;background-color:",";"],(0,l.fU)("row","center","space-between"),d.n_.md,e=>{var n;let{theme:t}=e;return null===(n=t.colors)||void 0===n?void 0:n.primary}),r.ZP.div.withConfig({componentId:"sc-e5c089c6-36"})([""," width:100%;gap:1rem;padding:1.5rem 0.75rem;",""],(0,l.fU)("column"),u.BC.phone(R()));let eE=r.ZP.div.withConfig({componentId:"sc-e5c089c6-37"})([""," gap:0.5rem;"],(0,l.fU)("row","start","start","wrap")),eM=r.ZP.div.withConfig({componentId:"sc-e5c089c6-38"})(["",""],(0,l.fU)("column","start")),eA=r.ZP.div.withConfig({componentId:"sc-e5c089c6-39"})(["background-color:","14;padding:0.125rem 0.5rem;border-radius:",";"],e=>{var n;let{theme:t}=e;return null===(n=t.colors)||void 0===n?void 0:n.accent},d.n_.xl2);r.ZP.div.withConfig({componentId:"sc-e5c089c6-40"})([""," gap:0.625rem;"],(0,l.fU)("column","start","start")),r.ZP.div.withConfig({componentId:"sc-e5c089c6-41"})([""," gap:0.625rem;"],(0,l.fU)());let eU=r.ZP.div.withConfig({componentId:"sc-e5c089c6-42"})([""," cursor:auto;padding:0.5rem;gap:0.5rem;height:1.75rem;
1input,input:focus,input:hover{border:none;outline:0;padding:0;border-radius:0;}","{width:8.625rem;height:1.75rem;}","{width:auto;height:auto;padding:0;}","{height:1.75rem;}"],(0,l.fU)(),g.im,o.JO,g.Wz),eB=r.ZP.div.withConfig({componentId:"sc-e5c089c6-43"})(["",""],(0,l.fU)("column")),eN=r.ZP.div.withConfig({componentId:"sc-e5c089c6-44"})([""," cursor:auto;padding:0.5rem;gap:0.5rem;height:1.75rem;input,input:focus,input:hover{border:none;outline:0;padding:0;border-radius:0;}","{width:8.625rem;height:1.75rem;}","{width:auto;height:auto;padding:0;}","{height:1.75rem;}"],(0,l.fU)(),g.im,o.JO,g.Wz),eT=(0,r.ZP)(f.zx).withConfig({componentId:"sc-e5c089c6-45"})(["display:flex;justify-content:space-between;width:min-content;height:min-content;","{height:min-content;}"],o.JO),eO=(0,r.ZP)(f.zx).withConfig({componentId:"sc-e5c089c6-46"})(["display:flex;justify-content:space-between;width:min-content;height:min-content;","{height:min-content;}"],o.JO),eR=r.ZP.div.withConfig({componentId:"sc-e5c089c6-47"})(["padding:1rem 1.5rem;",""],u.BC.phone(V())),eV=r.ZP.div.withConfig({componentId:"sc-e5c089c6-48"})(["gap:0.5rem;border-radius:",";"," width:100%;border:1px solid ",";padding:1rem;",""],d.n_.lg,(0,l.fU)("row","center","space-between"),d.DM.lightGray,u.BC.laptop(L())),eL=r.ZP.div.withConfig({componentId:"sc-e5c089c6-49"})([""," gap:0.2rem;","{svg{","}div{line-height:normal;}}"],(0,l.fU)(),p.ll,u.BC.phone(J())),eJ=r.ZP.div.withConfig({componentId:"sc-e5c089c6-50"})([""," gap:0.5rem;"],(0,l.fU)()),eF=r.ZP.div.withConfig({componentId:"sc-e5c089c6-51"})(["width:100%;"]),e$=r.ZP.div.withConfig({componentId:"sc-e5c089c6-52"})(["gap:3rem;"," "," "," > div{","}"],(0,l.fU)(),u.BC.laptop(F()),u.BC.tablet($()),u.BC.tabletAbove(G(),d.DM.lightGray,u.BC.laptop(z()))),ez=(0,r.ZP)(s.ZP).withConfig({componentId:"sc-e5c089c6-53"})(["ul{display:grid;gap:0.25rem;li{",";gap:0.5rem;margin-left:1.5rem;position:relative;line-height:",";","}}","{","}"],(0,l.fU)("row","flex-start","start"),d.HE.p3,u.BC.phone(H(),d.HE.p4),s.im,u.BC.phone(Y())),eG=r.ZP.div.withConfig({componentId:"sc-e5c089c6-54"})(["ul,ol{"," gap:1rem;","}ul{width:100%;strong{font-weight:",";}ul{margin-top:0.5rem;li{margin:0;}}li{display:list-item;list-style-type:disc;font-size:inherit;}}"],(0,l.fU)("column","",""),u.BC.phone(K()),d.Xw.semibold),eH=(0,r.ZP)(a.Z.P2Strong).withConfig({componentId:"sc-e5c089c6-55"})(["padding:0.5rem 1rem;color:",";background:",";border-radius:"," "," 0 0;"],d.DM.white,e=>{var n;let{theme:t}=e;return(null===(n=t.colors)||void 0===n?void 0:n.focus)||d.HW.gradientHeader},d.n_.md,d.n_.md),eY=(0,r.ZP)(a.Z.P4).withConfig({componentId:"sc-e5c089c6-56"})(["color:",";"],d.DM.red),eK=r.ZP.div.withConfig({componentId:"sc-e5c089c6-57"})([""," margin-left:0.5rem;"],(0,l.fU)("row","center")),eq=r.ZP.div.withConfig({componentId:"sc-e5c089c6-58"})([""," gap:1rem;"],(0,l.fU)("row","center","space-between")),eW=(0,r.ZP)(a.Z.P3Medium).withConfig({componentId:"sc-e5c089c6-59"})(["text-decoration:underline;color:",";cursor:pointer;"],e=>{var n,t;let{theme:i}=e;return(null===(n=i.colors)||void 0===n?void 0:n.highlight)||(null===(t=i.colors)||void 0===t?void 0:t.accent)}),eX=r.ZP.div.withConfig({componentId:"sc-e5c089c6-60"})(["width:100%;padding:1.5rem;",""],u.BC.phone(q())),eQ=(0,r.ZP)(v.ZP).withConfig({componentId:"sc-e5c089c6-61"})(["","{","}"],v.we,u.BC.phone(W())),e0=(0,r.ZP)(eQ).withConfig({componentId:"sc-e5c089c6-62"})(["","{"," gap:0.75rem;","}"],v.VY,(0,l.fU)("column","","",""),u.BC.phone(X())),e1=(0,r.ZP)(a.Z.P1Strong).withConfig({componentId:"sc-e5c089c6-63"})(["display:inline-flex;gap:0.5rem;",""],u.BC.phone(Q())),e5=r.ZP.div.withConfig({componentId:"sc-e5c089c6-64"})(["width:100%;","{all:unset;cursor:pointer;padding:1rem 1.5rem 0.75rem;font-size:",";font-weight:",";}",":nth-child(","){border-bottom:0.25rem solid ",";}","{gap:0;padding-bottom:0;border-bottom:1px solid ",";}",""],h.OK,e=>{var n;let{theme:t}=e;return null==t?void 0:null===(n=t.fontSizes)||void 0===n?void 0:n.p1},d.Xw.semibold,h.OK,e=>{let{index:n}=e;return n+1},e=>{var n;let{theme:t}=e;return null===(n=t.colors)||void 0===n?void 0:n.accent},h.mQ,d.DM.softGray,u.BC.phone(ee(),h.OK));r.ZP.div.withConfig({componentId:"sc-e5c089c6-65"})(["padding-top:1.5rem;","{padding:0;}"],m.E1),(0,r.ZP)(a.Z.P2).withConfig({componentId:"sc-e5c089c6-66"})(["padding:1rem;border-radius:0 0.75rem 0.75rem 0.75rem;border:1px solid ",";color:",";font-weight:",";margin-bottom:1.5rem;"],d.DM.lightGray,d.DM.steelGray,d.Xw.semibold);let e2=r.ZP.div.withConfig({componentId:"sc-e5c089c6-67"})([""," gap:1rem;padding-top:1rem;padding-bottom:1rem;"],(0,l.fU)("column","start","start")),e6=(0,r.ZP)(a.Z.H3SemiBold).withConfig({componentId:"sc-e5c089c6-68"})([""," border-bottom:1px solid ",";width:100%;padding-bottom:0.5rem;"],(0,l.fU)("row","center","space-between"),d.DM.lightGray),e8=r.ZP.div.withConfig({componentId:"sc-e5c089c6-69"})([""," gap:0.5rem;width:100%;max-width:40.25rem;"],(0,l.fU)("column","start","start")),e9=(0,r.ZP)(f.DF).withConfig({componentId:"sc-e5c089c6-70"})(["max-width:9.5rem;padding:0.625rem;margin-top:0.25rem;height:2.5rem;"]),e3=(0,r.ZP)(f.DF).withConfig({componentId:"sc-e5c089c6-71"})(["max-width:",";padding:0.625rem;margin-top:0.25rem;height:2.5rem;"],e=>{let{maxWidth:n}=e;return n||"9.5rem"}),e4=r.ZP.div.withConfig({componentId:"sc-e5c089c6-72"})([""," gap:1rem;padding-top:1rem;padding-bottom:1rem;"],(0,l.fU)("column","start","start"));(0,r.ZP)(a.Z.H3SemiBold).withConfig({componentId:"sc-e5c089c6-73"})([""," border-bottom:1px solid ",";width:100%;padding-bottom:0.5rem;"],(0,l.fU)("row","center","space-between"),d.DM.lightGray)},28935:function(e,n,t){"use strict";t.d(n,{ZQ:function(){return b}});var i=t(82729),r=t(85893),o=t(57572),a=t(67294),d=t(1289),l=t(92198),c=t(26971),u=t(12847),s=t(87536),p=t(78979),m=t(88513),f=t(24594);function g(){let e=(0,i._)(["\n    min-width:100%;
1\n    align-items: flex-start;\n  "]);return g=function(){return e},e}let v=d.ZP.div.withConfig({componentId:"sc-8d658ae5-0"})([""," row-gap:1rem;",""],(0,c.fU)("column",""),u.BC.phone(g())),h=(e,n)=>{let{valueNow:t}=n;return(0,r.jsx)(p.dL,{...e,children:t})},w=(e,n)=>{let{index:t}=n;return(0,r.jsx)(m.ON,{...e,index:t})},b=e=>{let{dataId:n="",className:t,minRange:i,maxRange:d,stepVal:c,title:u,name:m,showValue:g=!0,...b}=e,{control:C}=(0,s.Gc)(),{field:y}=(0,s.bc)({control:C,name:m}),x=(null==b?void 0:b.onChange)||y.onChange,Z=e=>{x(e)},P=(0,a.useCallback)((0,o.debounce)(Z,b.debounceDelay),[]),I=(0,f.J4)(n);return(0,r.jsxs)(v,{"data-cimet-id":"".concat(I,"filter-slider-container"),className:t,children:[u&&(0,r.jsx)(l.Z.P3Strong,{"data-cimet-id":"".concat(I,"filter-slider-title"),children:u}),(0,r.jsx)(p.Kl,{"data-cimet-id":"".concat(I,"filter-styled-slider"),name:m,defaultValue:i,renderTrack:w,renderThumb:h,min:i,max:d,step:c<=0?10:c,onChange:b.debounceDelay?P:Z,value:y.value}),g&&(0,r.jsx)(l.Z.P3,{"data-cimet-id":"".concat(I).concat(y.value>0?"filter-slider-value":"filter-min-range"),children:y.value>0?"".concat(y.value).concat(b.displayValueSuffix||""):b.defaultCaption||"".concat(i).concat(b.displayValueSuffix||"")})]})}},97341:function(e,n,t){"use strict";var i=t(71641),r=t(50319),o=t(43340),a=t(62868);n.Z=function(e){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t={variables:{input:{propertyId:e}},skip:!e||n},{data:d,loading:l,refetch:c}=(0,i.aM)(a.FB,t),[u,{loading:s}]=(0,r.D)(o.yN,{refetchQueries:[{query:a.FB,...t}]}),[p,{loading:m}]=(0,r.D)(o.k$);return{data:null==d?void 0:d.getOpenEnergyAgencyAgreement,mutateAgreement:u,loading:l,updateLoading:s,refetch:c,revokeAgreement:p,revokeLoading:m}}},20275:function(e,n,t){"use strict";t.d(n,{Z:function(){return l}});var i=t(71641),r=t(82729);function o(){let e=(0,r._)(["\n  query Query($input: QaAccessTokenFromCustomerInput!) {\n    checkAccessTokenFormCustomer(input: $input)\n  }\n"]);return o=function(){return e},e}let a=(0,t(63357).Ps)(o());var d=t(13706),l=()=>{let e=(0,d.gD)(),{data:n,loading:t,refetch:r}=(0,i.aM)(a,{variables:{input:{accessToken:e}},skip:!e});return{data:n,loading:t,refetch:r}}},10126:function(e,n,t){"use strict";t.d(n,{b:function(){return a}});var i=t(67294),r=t(14486),o=t(40331);let a=function(e){let{formState:n}=e,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{errors:a}=n||{};(0,i.useEffect)(()=>{if(!(0,r.isEmpty)(a)){var e,n,t,i;let d=null===(n=(0,r.keys)((0,o.cv)(a)))||void 0===n?void 0:null===(e=n.filter(e=>e.endsWith(".message")))||void 0===e?void 0:e.map(e=>e.replace(".message","")),l=(0,r.flatten)((0,r.map)(d,e=>[...document.getElementsByName(e)])).filter(e=>"INPUT"===e.nodeName),c=null==l?void 0:l.reduce((e,n)=>e.parentElement.getBoundingClientRect().top<n.parentElement.getBoundingClientRect().top?e:n,l[0]);c&&(null==c||null===(t=c.parentElement)||void 0===t||t.scrollIntoView({behavior:"smooth",block:"center"}),null===(i=c.focus)||void 0===i||i.call(c))}},[a,n.submitCount,t])}},26233:function(e,n,t){"use strict";t.d(n,{Z:function(){return A}});var i=t(85893),r=t(67294),o=t(35234),a=t(47041),d=t(9529),l=t(57054),c=t(24594),u=t(1822),s=t(28876),p=t(66936),m=t(32787),f=t(1352),g=t(13706),v=t(20275),h=t(94496),w=t(10590),b=t(23395),C=t(20311),y=t(14180),x=t(95591),Z=t(6056),P=t(35317),I=t(65003),_=t(91923),S=t(36272),D=t(80189),k=t(51853),j=t(41290),E=t(59526);let M=["/energy/basic-info","/broadband/basic-info","/health-insurance/basic-info"];var A=function(e){let n=!(arguments.length>1)||void 0===arguments[1]||arguments[1],t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return A=>{var U,B,N,T,O,R,V,L;let{dataId:J}=A,{vertical:F,originVertical:$}=(0,r.useContext)(u.ZP),{origin:z}=(0,r.useContext)(p.Z),G=(0,r.useContext)(f.Z),H=(0,P.Z)(),Y=(0,g.gD)(),{data:K}=(0,v.Z)(),q=(0,o.c)(),{query:W}=q,X="agent"===z||(null==W?void 0:W.origin)==="agent",Q=null==G?void 0:null===(U=G.homeUrl)||void 0===U?void 0:U[$],ee=null===(N=s.default.pages)||void 0===N?void 0:null===(B=N[F])||void 0===B?void 0:B[0];X&&(Q=ee);let en=null==W?void 0:W.external,et=M.includes(q.pathname),ei=W.vcrf,er=W.rm,{data:eo,isValidating:ea}=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],{vertical:n}=(0,r.useContext)(u.ZP),{query:t}=(0,o.c)(),i=t.rm,a="/journey/get?visit_id=".concat(i,"&marketing=true"),{data:d,isValidating:l,error:c}=(0,x.ZP)(e&&i?a:null,()=>(0,Z.Xf)(a,n,"GET",{visit_id:i,marketing:!0}));return{data:d,isValidating:l,error:c}}(),{data:ed,isValidating:el}=(0,y.Z)(),[ec,eu]=(0,r.useState)(!1),es=atob(W[W.pick_var]||""),ep=null==es?void 0:es.split("__"),em=H?null:(0,b.cU)(F);(null==ed?void 0:null===(T=ed.data)||void 0===T?void 0:T.visit_id)?em=ed.data.visit_id:(null==eo?void 0:null===(O=eo.data)||void 0===O?void 0:O.visit_id)&&(em=eo.data.visit_id),(0,r.useEffect)(()=>{(ei||er)&&((0,b.EH)(F,{reason:j.L.TOKEN_REVALIDATION}),(0,b.cW)(),(0,b.Oc)())},[ei,er,F]),(0,r.useEffect)(()=>{var e,n,t,i,r;if(H)return;let o=(null==ed?void 0:null===(e=ed.data)||void 0===e?void 0:e.visit_id)||(null==eo?void 0:null===(n=eo.data)||void 0===n?void 0:n.visit_id);o&&(0,b.cU)(F)!==o&&((0,b.ku)(o,F),(null==eo?void 0:null===(t=eo.data)||void 0===t?void 0:t.visit_id)&&((0,b.uQ)(null==eo?void 0:null===(r=eo.data)||void 0===r?void 0:null===(i=r.journey_data)||void 0===i?void 0:i.rc_code),(0,b.Wt)(er)))},[H,F,null==ed?void 0:null===(R=ed.data)||void 0===R?void 0:R.visit_id,null==eo?void 0:null===(V=eo.data)||void 0===V?void 0:V.visit_id,er]),(0,r.useEffect)(()=>
1{if(H)return;let e=(0,b.cU)(F);if(e&&!(0,a.hasCookie)("".concat(F,"VisitId")))(0,b.ku)(e,F);else if(!e&&(0,a.hasCookie)("".concat(F,"VisitId"))){let n=(0,a.getCookie)("".concat(F,"VisitId"));n&&n!==e&&(0,b.ku)(n,F)}},[H,F,em]),(0,r.useEffect)(()=>{en&&!W.visitId&&!(0,a.hasCookie)("".concat(F,"VisitId"))&&W.address&&(0,b.EH)(F,{reason:j.L.EXTERNAL_ADDRESS_ENTRY})},[en,W.visitId,W.address,F]);let ef=[];(null==ep?void 0:ep.length)>1&&([em,...ef]=ep.slice(1,4),ef=ef.filter(Boolean).map(e=>Number(e)),em&&(0,b.cU)(F)!==em&&(0,b.ku)(em,F),(0,C.fg)());let{clearOriginType:eg}=(0,I.v)();(0,S.Z)(!0);let{data:ev,isValidating:eh}=(0,E.Z)(),ew=null===(L=q.pathname)||void 0===L?void 0:L.includes("/submission"),eb=(0,r.useRef)(!1);((null==ev?void 0:ev.code)===l.Yn.saleCreated||(null==eo?void 0:eo.code)===l.Yn.saleCreated||(null==ed?void 0:ed.code)===l.Yn.saleCreated)&&(eb.current=!0),(0,r.useEffect)(()=>{let e=(0,a.getCookie)("crossSellVertical");e&&e===F&&(0,b.sM)()},[]),(0,r.useEffect)(()=>{!H&&(!t||em||ec||eb.current||(0,a.hasCookie)("crossSellVertical")||et||ew||((0,k.S1)("warn","journey_check_redirect",{reason:"missing_visit_redirect_flag",vertical:F,originVertical:$,pathname:q.pathname,navigateTarget:Q,visitId:null!=em?em:null,hasVisitId:!1,isAgentOrigin:!!X}),q.push(Q)),Y&&K&&!(null==K?void 0:K.checkAccessTokenFormCustomer)&&((0,k.S1)("warn","journey_check_redirect",{reason:"qa_access_denied",vertical:F,originVertical:$,pathname:q.pathname,navigateTarget:Q,visitId:null!=em?em:null,hasVisitId:!!em}),q.push(Q)),ec&&em&&((0,b.EH)(F,{reason:j.L.SALE_COMPLETED}),(0,C.fg)(),(0,b.cW)(),eg(),(0,_.R2)()))},[H,em,Y,ec,K]),(0,h.Z)(em,$===D.ZK.openEnergy),(0,w.LJ)(null!=em?em:null),(0,r.useEffect)(()=>{if(!H){if((null==ev?void 0:ev.code)===l.Yn.saleCreated||(null==eo?void 0:eo.code)===l.Yn.saleCreated||(null==ed?void 0:ed.code)===l.Yn.saleCreated)(0,a.hasCookie)("crossSellVertical")||ec||ew||((0,k.S1)("info","journey_check_sale_created",{reason:"sale_created",vertical:F,originVertical:$,pathname:q.pathname,journeyCode:null==ev?void 0:ev.code,visitId:null!=em?em:null,hasVisitId:!!em}),eu(!0));else if(!(el||ea)){var e,t,i;if(!em&&ee&&q.pathname!==ee&&!en&&!(0,a.hasCookie)("crossSellVertical")&&Number.isInteger(null!==(t=null!==(e=null==ev?void 0:ev.code)&&void 0!==e?e:null==eo?void 0:eo.code)&&void 0!==t?t:null==ed?void 0:ed.code)&&!ew)et||((0,k.S1)("warn","journey_check_redirect",{reason:"missing_visit_with_api_code",vertical:F,originVertical:$,pathname:q.pathname,navigateTarget:ee,journeyCode:null==ev?void 0:ev.code,dmCode:null==eo?void 0:eo.code,vcrfCode:null==ed?void 0:ed.code,visitId:null,hasVisitId:!1}),q.push(ee));else if(n){let e=null==ev?void 0:null===(i=ev.data)||void 0===i?void 0:i.journey_data,n=(null==e?void 0:e.address)||(null==e?void 0:e.state);!eh&&!n&&!en&&!ec&&!et&&Number.isInteger(null==ev?void 0:ev.code)&&((0,k.S1)("warn","journey_check_redirect",{reason:"missing_address_or_state",vertical:F,originVertical:$,pathname:q.pathname,navigateTarget:Q,journeyCode:null==ev?void 0:ev.code,visitId:null!=em?em:null,hasVisitId:!!em,hasAddress:!!(null==e?void 0:e.address),hasState:!!(null==e?void 0:e.state),isAgentOrigin:!!X}),q.push(Q))}}}},[ev,el,ea,H,ec]);let eC=(0,c.J4)(J);return ec?(0,i.jsx)(d.Z,{dataId:"".concat(eC,"sales"),children:(0,i.jsx)(m.uY,{dataId:"".concat(eC,"sales")})}):!t||em||eb.current||(0,a.hasCookie)("crossSellVertical")||et||ew?(0,i.jsx)(e,{dataId:J,...A,showPlanId:ef}):null}}},3793:function(e,n,t){"use strict";var i=t(85893),r=t(67294),o=t(1822);n.Z=(e,n,t)=>a=>{let d=(0,r.useContext)(o.ZP);return(0,i.jsx)(o.Mi,{value:{...d,...t,vertical:n},children:(0,i.jsx)(e,{...a})})}},88513:function(e,n,t){"use strict";t.d(n,{I0:function(){return s},JT:function(){return u},KQ:function(){return p},ON:function(){return c},Zh:function(){return d},_v:function(){return l},im:function(){return f},q:function(){return m}});var i=t(1289),r=t(26971),o=t(41849),a=t(40890);let d=i.ZP.div.withConfig({componentId:"sc-4adccbf0-0"})([""," height:100%;"],(0,r.fU)("row","center","center")),l=i.ZP.div.withConfig({componentId:"sc-4adccbf0-1"})([""," row-gap:1rem;"],(0,r.fU)("column","left")),c=i.ZP.div.withConfig({componentId:"sc-4adccbf0-2"})(["top:0;bottom:0;background:",";border-radius:999px;"],e=>{var n;return 1===e.index?"".concat(o.DM.lightGray):"".concat(null===(n=e.theme.colors)||void 0===n?void 0:n.primary)}),u=i.ZP.div.withConfig({componentId:"sc-4adccbf0-3"})(["width:100%;display:flex;flex-direction:column;row-gap:20px;"]),s=i.ZP.div.withConfig({componentId:"sc-4adccbf0-4"})(["max-width:24.5rem;"]),p=i.ZP.div.withConfig({componentId:"sc-4adccbf0-5"})(["margin-bottom:0.5rem;font-family:",";font-weight:",";"],e=>{var n;return null===(n=e.theme.fontFamily)||void 0===n?void 0:n.semiBold},o.Xw.semibold),m=(0,i.ZP)(a.Z).withConfig({componentId:"sc-4adccbf0-6"})(["margin:0 0 0.5rem 0;"]),f=i.ZP.div.withConfig({componentId:"sc-4adccbf0-7"})([""])},43340:function(e,n,t){"use strict";t.d(n,{$T:function(){return v},CQ:function(){return x},J9:function(){return g},Ly:function(){return y},T4:function(){return h},_f:function(){return w},hQ:function(){return P},k$:function(){return C},tr:function(){return Z},yN:function(){return b}});var i=t(82729),r=t(63357);function o(){let e=(0,i._)(["\n  mutation CreateOpenEnergySession($input: CreateSessionInput) {\n    createOpenEnergySession(input: $input) {\n      authSessionUrl\n      expiresAt\n    }\n  }\n"]);return o=function(){return e},e}function a(){let e=(0,i._)(["\n  mutation CreateOpenEmailAliasConsent {\n    createOpenEmailAliasConsent {\n      status\n      message\n    }\n  }\n"]);return a=function(){return e},e}function d(){let e=(0,i._)(["\n  mutation FetchAndSaveOpenEnergyData {\n    fetchAndSaveOpenEnergyData {\n      status\n      message\n    }\n  }\n"]);return d=function(){return e},e}function l(){let e=(0,i._)(["\n  mutation revokeOpenEnergyConsentByPropertyId($input
1: PropertyIdInput!) {\n    revokeOpenEnergyConsentByPropertyId(input: $input) {\n      status\n      message\n    }\n  }\n"]);return l=function(){return e},e}function c(){let e=(0,i._)(["\n  mutation updateOpenEnergyAgencyAgreement($input: OpenEnergyUpsertAgencyAgreementInput!) {\n    updateOpenEnergyAgencyAgreement(input: $input) {\n      status\n      message\n    }\n  }\n"]);return c=function(){return e},e}function u(){let e=(0,i._)(["\n  mutation revokeOpenEnergyAgencyAgreement($input: OpenEnergyRevokeAgencyAgreementInput!) {\n    revokeOpenEnergyAgencyAgreement(input: $input) {\n      status\n      message\n    }\n  }\n"]);return u=function(){return e},e}function s(){let e=(0,i._)(["\n  mutation UpsertOpenEnergyPreference($input: OpenEnergyPreferenceInput!) {\n    upsertOpenEnergyPreference(input: $input) {\n      status\n      message\n    }\n  }\n"]);return s=function(){return e},e}function p(){let e=(0,i._)(["\n  mutation UpdateMemberDetails($input: MemberDetailsInput!) {\n    upsertMemberDetails(input: $input) {\n      status\n      message\n    }\n  }\n"]);return p=function(){return e},e}function m(){let e=(0,i._)(["\n  mutation UpdateLifeSupportPreference($input: UpdateLifeSupportPreferenceInput!) {\n    updateLifeSupportPreference(input: $input) {\n      message\n      status\n    }\n  }\n"]);return m=function(){return e},e}function f(){let e=(0,i._)(["\n  mutation UpdateMemberInvoicePreference($data: MemberInvoicePreferenceInput!) {\n    saveMemberInvoicePreference(data: $data) {\n      message\n      status\n    }\n  }\n"]);return f=function(){return e},e}let g=(0,r.Ps)(o()),v=(0,r.Ps)(a()),h=(0,r.Ps)(d()),w=(0,r.Ps)(l()),b=(0,r.Ps)(c()),C=(0,r.Ps)(u()),y=(0,r.Ps)(s()),x=(0,r.Ps)(p()),Z=(0,r.Ps)(m()),P=(0,r.Ps)(f())},62868:function(e,n,t){"use strict";t.d(n,{B7:function(){return u},FB:function(){return c},Xb:function(){return l}});var i=t(82729),r=t(63357);function o(){let e=(0,i._)(["\n  query OpenEnergyConsent($input: PropertyIdInput!) {\n    openEnergyConsent(input: $input) {\n      status\n      consentExpiresAt\n    }\n  }\n"]);return o=function(){return e},e}function a(){let e=(0,i._)(["\n  query getOpenEnergyAgencyAgreement($input: OpenEnergyAgencyAgreementInput!) {\n    getOpenEnergyAgencyAgreement(input: $input) {\n      id\n      createdAt\n      lastConsentedAt\n      status\n      cancelledAt\n    }\n  }\n"]);return a=function(){return e},e}function d(){let e=(0,i._)(["\n  query propertiesInSameConsent($input: PropertyIdInput!) {\n    propertiesInSameConsent(input: $input) {\n      propertyId\n      propertyAlias\n      propertyAddress\n    }\n  }\n"]);return d=function(){return e},e}let l=(0,r.Ps)(o()),c=(0,r.Ps)(a()),u=(0,r.Ps)(d())},72905:function(e,n,t){"use strict";t.d(n,{K:function(){return s}});var i=t(67294),r=t(63146),o=t(98225),a=t(1822),d=t(1352),l=t(82756),c=t(23395);let u=function(e,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0,a="energy"===e?"Energywatch":"iSelect";try{var d,l,u,s;null===(l=window.s)||void 0===l||null===(d=l.clearVars)||void 0===d||d.call(l);let p={analytics:{...t[e]?{[e]:t[e]}:{},..."Homepage"===t.section?{page:{},site:{name:a}}:{},..."Homepage"!==t.section?{user:{...(0,c.qr)(e)?{customerid:(0,c.qr)(e)}:{}}}:{},vertical:{sessionId:i,name:"Energywatch",..."Homepage"===t.section?{pagetitle:"Energywatch"}:{},..."phoneCaptureStatus"in t?{phonecapturestatus:null==t?void 0:t.phoneCaptureStatus}:{},section:(null==t?void 0:t.section)?t.section:"sales funnel",step:n||"",...(null==t?void 0:t.products)?{products:t.products}:{},...(null==t?void 0:t.order)?{selectedproduct:(0,o.Ne)(t.order)}:{},...(null==t?void 0:t.noResultReturned)?{noresultsreturned:null==t?void 0:t.noResultReturned}:{},...(null==t?void 0:t.noItemShown)?{noitemshown:null==t?void 0:t.noItemShown}:{}}}},m={analytics:{...t[e]?{[e]:t[e]}:{},page:{site:a},site:{site:a},user:{sessionId:i,...(0,c.qr)(e)?{customerid:(0,c.qr)(e)}:{}},vertical:{name:e,section:(null==t?void 0:t.section)?t.section:"sales funnel",step:n||"",...(null==t?void 0:t.products)?{products:t.products}:{},...(null==t?void 0:t.selected)?{products:{selected:{format:(null==t?void 0:t.selected)?null==t?void 0:t.selected.replace(/\s+/g," ").trim():""}}}:{},...(0,r.size)(null==t?void 0:t.filtercategory)?{filtercategory:t.filtercategory}:{},...(null==t?void 0:t.filtered)?{filtered:t.filtered}:{}}}};"energy"===e?window.energywatch=p:window.iselect=m,null===(s=window.s)||void 0===s||null===(u=s.t)||void 0===u||u.call(s)}catch(e){console.error(e)}},s=()=>{let{isAdobeTrackingEnabled:e}=(0,i.useContext)(d.Z),{vertical:n}=(0,i.useContext)(a.ZP),{sessionId:t}=(0,i.useContext)(l.ZP);return{setAdobeTracking:(0,i.useCallback)((i,r)=>{e&&u(n,i,r,t)},[n,e])}}},34218:function(e,n,t){"use strict";t.d(n,{Z:function(){return c}});
1var i=t(67294),r=t(95591),o=t(1822),a=t(6056),d=t(40331),l=t(23395);function c(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],n=arguments.length>1?arguments[1]:void 0,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{vertical:c}=(0,i.useContext)(o.ZP),u=n||c,s=(0,l.cU)(u),p="/".concat(u,"/plan/filters?visit_id=").concat(s),m=Object.keys(t).length?"".concat(p,"&").concat(new URLSearchParams(t)):p,{data:f,isValidating:g,error:v,isLoading:h}=(0,r.ZP)(e&&s?m:null,()=>(0,a.Xf)(p,u,"GET",{detail:1,...t}));return{data:(0,i.useMemo)(()=>f?(0,d.TH)(null==f?void 0:f.data):f,[f]),isValidating:g,error:v,isLoading:h}}},4799:function(e,n,t){"use strict";var i=t(14486);t.o(i,"omit")&&t.d(n,{omit:function(){return i.omit}})},33288:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return ep},default:function(){return em}});var i=t(85893),r=t(67294),o=t(4799),a=t(35234),d=t(55678),l=t(66252),c=t(96511),u=t(83850),s=t(1531),p=t(84258),m=t(79890),f=t(2853),g=t(91652),v=t(59526),h=t(26233),w=t(35586),b=t(1822),C=t(72905),y=t(28105),x=t(6056),Z=t(36272),P=t(1289),I=t(87536),_=t(33783),S=t(22382),D=t(28876),k=t(608),j=t(38126),E=t(24594),M=t(61826),A=t(34070),U=t(34522),B=t(10126),N=t(42480),T=t(57054),O=t(88835),R=t(38296),V=t(86127),L=t(8273),J=t(93435);let F=(0,P.ZP)(U.OH).withConfig({componentId:"sc-18adb605-0"})(["margin:0;"]);var $=e=>{var n,t,o,a,d;let{dataId:l="",fullName:c="",allowEdit:u=!1,visitorData:s={},connectionFields:p=[],identificationData:m=[],eicContent:f=[],energyConnection:v=!1,personalDetailsEditLink:h="",topInfo:w="",isFalcon:C=!1,submitHandler:y}=e,{vertical:x}=(0,r.useContext)(b.ZP),{eicStatus:P}=(0,Z.Z)(),{query:{data:U}}=(0,N.Z)(),{query:{data:$}}=(0,k.Z)(),{getJourneyQuestion:z}=(0,g.Z)(),G=T.zx.find(e=>e.slug===x).falcon,H=null===(n=D.default.formValidationMode)||void 0===n?void 0:n[x],Y=null==$?void 0:null===(t=$.addresses)||void 0===t?void 0:t.reduce((e,n)=>((null==n?void 0:n.type)&&(e[n.type]=n),e),{}),K=(null==Y?void 0:null===(o=Y.billing)||void 0===o?void 0:o.addressLine)||(null==Y?void 0:null===(a=Y.current)||void 0===a?void 0:a.addressLine),q=(0,I.cI)({shouldFocusError:!0,mode:H||"onSubmit",defaultValues:{otpTermsAccepted:(null==U?void 0:null===(d=U[G])||void 0===d?void 0:d.otpTermsAccepted)||!1}});(0,B.b)(q);let{personalDetailsSummary:{comp:W,props:X},plansAndEicSummary:{comp:Q,props:ee}}={personalDetailsSummary:{comp:S.Z,props:{dataId:l,fullName:c,visitorData:s,identificationData:m,addressLine:K,personalDetailsEditLink:h,addressData:(null==Y?void 0:Y.current)||{},isFalcon:C}},plansAndEicSummary:{comp:R.Z,props:{dataId:l,allowEdit:u,fieldData:p,connectionHeaderText:z("14.4")}}},en="".concat((0,E.J4)(l),"review-details-page-");return(0,i.jsxs)(I.RV,{...q,children:[(0,i.jsx)(A.Z,{dataId:l}),(0,i.jsx)(L.v,{dataId:l,step:4}),(0,i.jsxs)(J.JH,{"data-cimet-id":"".concat(en,"page-content"),children:[(0,i.jsx)(_.Z,{dataId:l,title:z("14.1")||"Review Details",hideButton:P}),(0,i.jsxs)(j.Z,{dataId:"".concat(en,"review-details"),variables:{pageSlug:"review-details-page",componentSlug:"ReviewDetails"},children:[w&&(0,i.jsx)(F,{dataId:"".concat(en,"wide"),text:w}),(0,i.jsx)(M._3,{"data-cimet-id":"".concat(en,"cards-gap"),children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(j.Z,{dataId:"".concat(en,"personal-details"),variables:{pageSlug:"review-details-page",componentSlug:"PersonalDetails"}}),(0,i.jsx)(O.Z,{dataId:"".concat(en,"personal-details"),variables:{pageSlug:"otp-page",componentSlug:"RetailerSpecific_PersonalDetails"}}),(0,i.jsx)(W,{dataId:l,...X}),v&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(j.Z,{dataId:"".concat(en,"your-plan"),variables:{pageSlug:"review-details-page",componentSlug:"YourPlan"}}),(0,i.jsx)(O.Z,{dataId:"".concat(en,"your-plan"),variables:{pageSlug:"otp-page",componentSlug:"RetailerSpecific_YourPlan"}}),(0,i.jsx)(Q,{dataId:"".concat(en,"your-plan"),...ee})]}),v&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(j.Z,{dataId:"".concat(en,"acknowledge-acceptance"),variables:{pageSlug:"review-details-page",componentSlug:"AcknowledgementAndAcceptance"}}),(0,i.jsx)(O.Z,{dataId:"".concat(en,"acknowledge-acceptance"),variables:{pageSlug:"otp-page",componentSlug:"RetailerSpecific_AcknowledgementAndAcceptance"}}),(0,i.jsx)(R.Z,{dataId:l,fieldData:f,connectionHeaderText:z("14.5")})]}),(0,i.jsx)(V.ZP,{dataId:l,submitHandler:q.handleSubmit(y),title:"YOUR ENERGY PLANS",nextText:"Next: Submit",disclaimerText:z("18.3"),inlineButton:!0,contentDirection:"row"})]})})]})]})]})},z=t(3793),G=t(80189),H=t(32363),Y=t(64653),K=t(21826),q=t(39377),W=t(1352),X=t(23395),Q=t(47421),ee=t(53403),en=t(95810),et=t(70294),ei=t(97341),er=t(80214),eo=t(95025),ea=t(58096),ed=t(50319),el=t(82729);function ec(){let e=(0,el._)(["\n  mutation SaveReferralReward($input: ReferralRewardSaveInput!) {\n    saveReferralReward(input: $input) {\n      success\n      message\n    }\n  }\n"]);return ec=function(){return e},e}let eu=(0,t(63357).Ps)(ec()),es=()=>{let[e,n]=(0,ed.D)(eu);return{mutation:n,saveReferralReward:n=>e({variables:{input:n}})}};var ep=!0,em=(0,ea.Z)((0,z.Z)((0,h.Z)((0,eo.J)(e=>{var n,t;let{dataId:h=""}=e,P=(0,a.c)(),I=(0,l.x)(),{vertical:_,next:S}=(0,r.useContext)(b.ZP),[k,j]=(0,r.useState)(!1),{data:E,isValidating:M}=(0,c.Z)(),{isValidating:A}=(0,f.Z)(),{data:U,isValidating:B}=(0,v.Z)(),N=null==U?void 0:null===(n=U.data)||void 0===n?void 0:n.journey_data,{isValidating:T}=(0,g.Z)(),{loading:O}=(0,Z.Z)(),{saveSelectedPlanInHistory:R}=(0,Q.y)(),V=(0,u.Xc)(null==E?void 0:E.first_name,null==E?void 0:E.middle_name,null==E?void 0:E.last_name);(0,w.Z)(!0);let L=(0,X.z5)(),J=(0,er.JJ)(),{data:F}=(0,p.Z)(),{data:z,isValidating:eo}=(0,m.Z)(),ea=null==z?void 0:null===(t=z.electricity)||void 0===t?void 0:t.move_in_eic_content,ed=(null==ea?void 0:ea.checkbox)||[],el=[];
1null==ed||ed.forEach(e=>{el.push("checkbox_".concat(e.id))});let{eicContent:ec,rawEicContent:eu,allPlans:ep,connectionFields:em,loading:ef}=(0,q.Z)(),{isAgencyAutomated:eg}=(0,r.useContext)(W.Z),{data:ev}=(0,ei.Z)(L),eh=(0,X.cU)(_),{saveReferralReward:ew}=es(),eb=async e=>{let n=(0,o.omit)(e,el);try{var t;if(j(!0),await (0,K._)("consent",_,P.pathname),eg&&!(null==ev?void 0:ev.status)){P.push("/".concat(G.ZK.openEnergy,"/properties/agreement"));return}await R({planId:ep[0],leadId:eh}),await (0,x.qD)({...{plan_id:{[D.default.ServiceId[_]]:ep},...(null==eu?void 0:eu.length)?{content_data:eu}:{},...n,agency_agreement:0,...J?{agency_agreement:1,lead_type:5}:{}}},_),ew({externalServiceId:eh,service:"OPEN_ENERGY"}),I.refetchQueries({include:[{query:ee.B,variables:{input:{propertyId:L,status:en.UQ}}},{query:ee.B,variables:{input:{propertyId:L}}},{query:et.C,variables:{input:{propertyId:L}}},{query:et.C,variables:{input:{propertyId:L,energyType:null!==(t=null==N?void 0:N.energy_type)&&void 0!==t?t:en.Cx.electricity}}}]}),S()}catch(e){d.Am.error("Something went wrong!")}finally{j(!1)}},{setAdobeTracking:eC}=(0,C.K)();return((0,r.useEffect)(()=>{N&&F&&eC("review your details",{[_]:(0,y.Ke)(N),phoneCaptureStatus:!0,section:"Payment Funnel",order:F})},[eC,F,N,_]),M||A||T||B||eo||O||k||ef)?(0,i.jsx)(s.C7,{dataId:h}):(0,i.jsx)(H.U,{page:"properties",children:(0,i.jsx)(Y.ZP,{dataId:h,paddedBody:!1,children:(0,i.jsx)($,{dataId:h,eicContent:ec,fullName:V,visitorData:E,connectionFields:em,energyConnection:!0,submitHandler:eb,planId:ep})})})})),G.ZK.energy))},98413:function(e,n,t){"use strict";t.d(n,{Fw:function(){return j},O:function(){return Z},wf:function(){return y},yh:function(){return _},o0:function(){return k},mh:function(){return w},XT:function(){return S},nG:function(){return P},sg:function(){return b},vC:function(){return C},Js:function(){return D},Lw:function(){return x},EN:function(){return I}});var i=t(87633),r=t(39359),o=t(80258),a=t(67204),d=t(9905),l=t(6223
11),c=t(82256),u=t(48494),s=t(14174),p=t(23711),m=t(48355),f=t(70722),g=t(46070),v=t(40331),h=t(11001);let w=e=>{if(!g.su.test(e))return e;let n=e.split("/");return new Date(Number(n[2]),Number(n[1])-1,Number(n[0]))},b=e=>{let{endDate:n,format:t="dd MMM yy"}=e,d=new Date(n);return[(0,i.default)((0,r.default)(d,12),1),(0,o.default)((0,r.default)(d,9)),(0,o.default)((0,r.default)(d,5)),(0,o.default)((0,r.default)(d,2)),d].map(e=>(0,a.default)(e,t))},C=e=>{let{startDate:n,endDate:t,timelineStartDate:r,totalDays:o=365}=e;if((0,d.default)(new Date(n),new Date(t)))return{startPercentage:0,widthPercentage:0};let a=(0,i.default)(new Date(r),1),c=(0,l.Z)(new Date(n),a),u=(0,l.Z)(new Date(t),new Date(r));return{startPercentage:Number((c/o*100).toFixed(2)),widthPercentage:Number(((u-c)/o*100).toFixed(2))}},y=e=>{var n,t,i,r;return{isElecEarliestConnection:null!==(i=null==e?void 0:null===(n=e.data)||void 0===n?void 0:n.elctChangedMoveinDate)&&void 0!==i&&i,isGasEarliestConnection:null!==(r=null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.gasChangedMoveinDate)&&void 0!==r&&r}},x=e=>e&&0!==e.length?[...e].sort((e,n)=>new Date(e.startDate).getTime()-new Date(n.startDate).getTime()).reduce((e,n)=>{let t=[...e],r=e[e.length-1];return r&&(null==r?void 0:r.status)===(null==n?void 0:n.status)&&!(0,c.default)((0,u.default)((0,i.default)(new Date(r.endDate),1)),(0,u.default)(new Date(n.startDate)))?t[t.length-1]={...r,endDate:(0,s.default)(new Date(r.endDate),new Date(n.endDate))?r.endDate:n.endDate,status:null==r?void 0:r.status}:t.push(n),t},[]):[],Z=(e,n)=>{let t=e=>{let n="string"==typeof e?new Date(e.replace(" ","T")):e;return n instanceof Date&&!isNaN(n.getTime())?n:null},i=t(e),r=t(n);if(!i||!r)return"Invalid date provided";let o=r.getTime()-i.getTime();return o>0?"".concat(Math.floor(o/864e5)," days, ").concat(Math.floor(o/36e5%24),"h : ").concat(Math.floor(o/6e4%60),"min : ").concat(Math.floor(o/1e3%60),"sec"):"Expired"},P=e=>{let n=0;return e.forEach(e=>{let{startDate:t,endDate:i,status:r}=e;if(r===h.UY.APPROVED){let e=(0,l.Z)(new Date(i),new Date(t));n+=e+1}}),n},I=()=>Array.from({length:12},(e,n)=>({value:n,label:new Date(0,n).toLocaleString("default",{month:"long"})})),_=(e,n)=>{if(!e&&!n)return null;if(null==e?void 0:e.includes("+"))return"".concat(e," years");let t=Number(null!=e?e:0),i=Number(null!=n?n:0);return!Number.isInteger(t)||t<0||!Number.isInteger(i)||i<0?null:"".concat((0,v.Hd)(t,"year")," ").concat((0,v.Hd)(i,"month"))},S=e=>{let[n,t,i]=e.split("/").map(Number);return new Date(Date.UTC(i,t-1,n)).toISOString()},D=e=>{if("string"!=typeof e||""===e.trim())return 0;let n=Number(e.split("+")[0]);return isNaN(n)?0:n},k=e=>{let n=(0,f.utcToZonedTime)(new Date(e),"Australia/Sydney");return(0,a.default)(n,"do MMM yyyy, HH:mm a")},j=e=>{let n=(0,p.default)(e,"dd/MM/yyyy",new Date);return(0,m.Z)(new Date,n)}}},function(e){e.O(0,[3714,7377,9152,9332,7932,7833,87,7848,1426,1193,8690,8274,6673,3422,4449,2532,9118,1516,9529,694,3805,6719,8509,9491,3325,2787,8470,4070,8295,1485,2888,9774,179],function(){return e(e.s=65666)}),_N_E=e.O()}]);

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.