1(self.webpackChunkapp=self.webpackChunkapp||[]).push([[769],{27720:(Q,B,d)=>{"use strict";d.d(B,{L:()=>k});var s=d(55062),O=d(24006);let c=(()=>{var P;class Z{convertToDatePickerDateModel(g){return"isRange"in g?g:{isRange:!1,singleDate:{date:{year:g.date.year,month:g.date.month,day:g.date.day}}}}}return(P=Z).\u0275fac=function(g){return new(g||P)},P.\u0275prov=s.Yz7({token:P,factory:P.\u0275fac}),Z})();var _=d(36895),y=d(96619);const e=["dp"],v=function(P,Z){return{btnclearenabled:P,btncleardisabled:Z}};function b(P,Z){if(1&P){const A=s.EpF();s.TgZ(0,"button",10),s.NdJ("click",function(){s.CHM(A),s.oxw();const T=s.MAs(2);return s.KtG(T.clearDate())}),s._UZ(1,"span",11),s.qZA()}if(2&P){const A=s.oxw(2);s.Q6J("ngClass",s.WLB(2,v,!A.disabled,A.disabled))("disabled",A.disabled)}}const C=function(P,Z){return{btnpickerenabled:P,btnpickerdisabled:Z}};function S(P,Z){if(1&P){const A=s.EpF();s.TgZ(0,"div",3)(1,"input",4,5),s.NdJ("dateChanged",function(T){s.CHM(A);const U=s.oxw();return s.KtG(U.onDateChanged(T))})("inputFieldChanged",function(T){s.CHM(A);const U=s.oxw();return s.KtG(U.onInputFieldChanged(T))})("ngModelChange",function(T){s.CHM(A);const U=s.oxw();return s.KtG(U.model=T)}),s.qZA(),s.TgZ(3,"div",6),s.YNc(4,b,2,5,"button",7),s.TgZ(5,"button",8),s.NdJ("click",function(){s.CHM(A);const T=s.MAs(2);return s.KtG(T.toggleCalendar())}),s._UZ(6,"span",9),s.qZA()()()}if(2&P){const A=s.MAs(2),g=s.oxw();s.xp6(1),s.Q6J("readonly",!g.editableDateField)("options",g.options)("placeholder",g.placeholder)("ngModel",g.model),s.xp6(3),s.Q6J("ngIf",A.isDateValid()),s.xp6(1),s.Q6J("ngClass",s.WLB(7,C,!g.disabled,g.disabled))("disabled",g.disabled)}}function L(P,Z){if(1&P){const A=s.EpF();s.TgZ(0,"div")(1,"input",12,5),s.NdJ("dateChanged",function(T){s.CHM(A);const U=s.oxw();return s.KtG(U.onDateChanged(T))})("ngModelChange",function(T){s.CHM(A);const U=s.oxw();return s.KtG(U.model=T)})("inputFieldChanged",function(T){s.CHM(A);const U=s.oxw();return s.KtG(U.onInputFieldChanged(T))}),s.qZA()()}if(2&P){const A=s.oxw();s.xp6(1),s.Q6J("options",A.options)("placeholder",A.placeholder)("ngModel",A.model)}}const M=function(P,Z,A){return{border:P,height:Z,display:A}},j=()=>{};let k=(()=>{var P;class Z{constructor(g){this.datePickerModelFormatter=g,this.options={dateFormat:"mm/dd/yyyy",firstDayOfWeek:"su",disableUntil:{year:0,month:0,day:0},selectorHeight:"231px",selectorWidth:"262px"},this.dateModel=null,this.inputText="",this.placeholder="MM/DD/YYYY",this.disabled=!1,this.editableDateField=!1,this.dateChanged=new s.vpe,this.valueChanged=new s.vpe,this.inputFieldChanged=new s.vpe,this.onChange=()=>j,this.onTouch=()=>j}get model(){return this.dateModel}set model(g){g!==this.dateModel&&(this.dateModel=g)}set value(g){void 0!==(g=this.datePickerModelFormatter.convertToDatePickerDateModel(g))&&(this.model=g,this.onChange(g),this.onTouch(g))}onDateChanged(g){this.dateChanged.emit(null==g?void 0:g.singleDate),this.valueChanged.emit(g),this.inputFieldChanged.emit({value:null==g?void 0:g.singleDate.formatted,valid:!0,dateFormat:this.options.dateFormat}),this.value=g,this.inputText=g.singleDate.formatted}writeValue(g){g&&g!==this.value&&(this.value=g)}registerOnChange(g){this.onChange=g}registerOnTouched(g){this.onTouch=g}clearDate(){this.dp.clearDate()}onInputFieldChanged(g){g.value!==this.inputText&&(this.inputText=g.value,this.inputFieldChanged.emit(g))}openCalendar(){this.dp.openCalendar()}closeCalendar(){this.dp.closeCalendar()}toggleCalendar(){this.dp.toggleCalendar()}}return(P=Z).\u0275fac=function(g){return new(g||P)(s.Y36(c))},P.\u0275cmp=s.Xpm({type:P,selectors:[["nve-date-picker"]],viewQuery:function(g,T){if(1&g&&s.Gf(e,5),2&g){let U;s.iGM(U=s.CRH())&&(T.dp=U.first)}},inputs:{options:"options",placeholder:"placeholder",disabled:"disabled",editableDateField:"editableDateField"},outputs:{dateChanged:"dateChanged",valueChanged:"valueChanged",inputFieldChanged:"inputFieldChanged"},features:[s._Bn([{provide:O.JU,useExisting:(0,s.Gpc)(()=>P),multi:!0},c])],decls:3,vars:7,consts:[[1,"mydp",3,"ngStyle"],["class","selectiongroup",4,"ngIf"],[4,"ngIf"],[1,"selectiongroup"],["angular-mydatepicker","",1,"selection","no-ios-zoom",3,"readonly","options","placeholder","ngModel","dateChanged","inputFieldChanged","ngModelChange"],["dp","angular-mydatepicker"],[1,"selbtngroup"],["class","btnclear btnclearenabled btnleftborder","type","button","aria-label","Clear Date",3,"ngClass","disabled","click",4,"ngIf"],["type","button","aria-label","Open Calendar",1,"btnpicker","btnpickerenabled","btnleftborder",3,"ngClass","disabled","click"],[1,"mydpicon","icon-mydpcalendar"],["type","button","aria-label","Clear Date",1,"btnclear","btnclearenabled","btnleftborder",3,"ngClass","disabled","click"],[1,"mydpicon","icon-mydpremove"],["angular-mydatepicker","","type","hidden",3,"options","placeholder","ngModel","dateChanged","ngModelChange","inputFieldChanged"]],template:function(g,T){1&g&&(s.TgZ(0,"div",0),s.YNc(1,S,7,10,"div",1),s.YNc(2,L,3,3,"div",2),s.qZA()),2&g&&(s.Q6J("ngStyle",s.kEZ(3,M,T.options.inline?"none":null,T.options.inline?"237px":null,T.options.inline?"block":"inl
1ine")),s.xp6(1),s.Q6J("ngIf",!T.options.inline),s.xp6(1),s.Q6J("ngIf",T.options.inline))},dependencies:[_.mk,_.O5,_.PC,O.Fj,O.JJ,O.On,y.w_],styles:['@font-face{font-family:Assistant;font-style:normal;font-weight:200;src:url(/assets/fonts/assistant-v1-latin-200.eot);src:local("Assistant ExtraLight"),local("Assistant-ExtraLight"),url(/assets/fonts/assistant-v1-latin-200.eot?#iefix) format("embedded-opentype"),url(/assets/fonts/assistant-v1-latin-200.woff2) format("woff2"),url(/assets/fonts/assistant-v1-latin-200.woff) format("woff"),url(/assets/fonts/assistant-v1-latin-200.ttf) format("truetype"),url(/assets/fonts/assistant-v1-latin-200.svg#Assistant) format("svg")}@font-face{font-family:Assistant;font-style:normal;font-weight:300;src:url(/assets/fonts/assistant-v1-latin-300.eot);src:local("Assistant Light"),local("Assistant-Light"),url(/assets/fonts/assistant-v1-latin-300.eot?#iefix) format("embedded-opentype"),url(/assets/fonts/assistant-v1-latin-300.woff2) format("woff2"),url(/assets/fonts/assistant-v1-latin-300.woff) format("woff"),url(/assets/fonts/assistant-v1-latin-300.ttf) format("truetype"),url(/assets/fonts/assistant-v1-latin-300.svg#Assistant) format("svg")}@font-face{font-family:Assistant;font-style:normal;font-weight:400;src:url(/assets/fonts/assistant-v1-latin-regular.eot);src:local("Assistant"),local("Assistant-Regular"),url(/assets/fonts/assistant-v1-latin-regular.eot?#iefix) format("embedded-opentype"),url(/assets/fonts/assistant-v1-latin-regular.woff2) format("woff2"),url(/assets/fonts/assistant-v1-latin-regular.woff) format("woff"),url(/assets/fonts/assistant-v1-latin-regular.ttf) format("truetype"),url(/assets/fonts/assistant-v1-latin-regular.svg#Assistant) format("svg")}@font-face{font-family:Assistant;font-style:normal;font-weight:600;src:url(/assets/fonts/assistant-v1-latin-600.eot);src:local("Assistant SemiBold"),local("Assistant-SemiBold"),url(/assets/fonts/assistant-v1-latin-600.eot?#iefix) format("embedded-opentype"),url(/assets/fonts/assistant-v1-latin-600.woff2) format("woff2"),url(/assets/fonts/assistant-v1-latin-600.woff) format("woff"),url(/assets/fonts/assistant-v1-latin-600.ttf) format("truetype"),url(/assets/fonts/assistant-v1-latin-600.svg#Assistant) format("svg")}@font-face{font-family:Assistant;font-style:normal;font-weight:700;src:url(/assets/fonts/assistant-v1-latin-700.eot);src:local("Assistant Bold"),local("Assistant-Bold"),url(/assets/fonts/assistant-v1-latin-700.eot?#iefix) format("embedded-opentype"),url(/assets/fonts/assistant-v1-latin-700.woff2) format("woff2"),url(/assets/fonts/assistant-v1-latin-700.woff) format("woff"),url(/assets/fonts/assistant-v1-latin-700.ttf) format("truetype"),url(/assets/fonts/assistant-v1-latin-700.svg#Assistant) format("svg")}@font-face{font-family:Assistant;font-style:normal;font-weight:800;src:url(/assets/fonts/assistant-v1-latin-800.eot);src:local("Assistant ExtraBold"),local("Assistant-ExtraBold"),url(/assets/fonts/assistant-v1-latin-800.eot?#iefix) format("embedded-opentype"),url(/assets/fonts/assistant-v1-latin-800.woff2) format("woff2"),url(/assets/fonts/assistant-v1-latin-800.woff) format("woff"),url(/assets/fonts/assistant-v1-latin-800.ttf) format("truetype"),url(/assets/fonts/assistant-v1-latin-800.svg#Assistant) format("svg")}.nve[_ngcontent-%COMP%] .radio-md[_ngcontent-%COMP%] .radio-checked[_ngcontent-%COMP%]{border-color:#d2c9c7}.nve[_ngcontent-%COMP%] .radio-md[_ngcontent-%COMP%] .radio-inner[_ngcontent-%COMP%]{top:3px;left:3px;width:12px;height:12px}.nve[_ngcontent-%COMP%] .radio-md[_ngcontent-%COMP%] .radio-icon[_ngcontent-%COMP%]{border-color:#d2c9c7;background:#ffffff}.nve[_ngcontent-%COMP%] .checkbox-md[_ngcontent-%COMP%] .checkbox-checked[_ngcontent-%COMP%]{border-color:#d2c9c7;background-color:#fff}.nve[_ngcontent-%COMP%] .checkbox-md[_ngcontent-%COMP%] .checkbox-icon[_ngcontent-%COMP%]{width:20px;height:20px;border-width:1px;border-style:solid;border-radius:1px;border-color:#d2c9c7;background-color:#fff}.nve[_ngcontent-%COMP%] .checkbox-md[_ngcontent-%COMP%] .checkbox-checked[_ngcontent-%COMP%] .checkbox-inner[_ngcontent-%COMP%]{top:0;left:7px;width:5px;height:14px}.nve[_ngcontent-%COMP%] .checkbox-md.checkbox-disabled[_ngcontent-%COMP%], .nve[_ng
1content-%COMP%] .item-md.item-checkbox-disabled[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{opacity:.6;pointer-events:none;background:#ccc}.nve[_ngcontent-%COMP%] .radio-md.radio-disabled[_ngcontent-%COMP%], .nve[_ngcontent-%COMP%] .item-md.item-radio-disabled[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{opacity:.6;pointer-events:none}.nve[_ngcontent-%COMP%] .radio-md.radio-disabled[_ngcontent-%COMP%] .radio-icon[_ngcontent-%COMP%], .nve[_ngcontent-%COMP%] .item-md.item-radio-disabled[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%] .radio-icon[_ngcontent-%COMP%]{background:#cccccc}.nve[_ngcontent-%COMP%] ion-radio.radio-disabled[_ngcontent-%COMP%]{opacity:.6;pointer-events:none}.nve[_ngcontent-%COMP%] ion-radio.radio-disabled[_ngcontent-%COMP%]::part(container){background:#cccccc}.nve[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-size:1em;font-weight:400;color:#000}.mydp[_ngcontent-%COMP%]{min-width:100px;line-height:1.1;position:relative;width:260px;border:1px solid #ccc;border-radius:2px}.mydp[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{box-sizing:border-box;font-family:Assistant,"sans-serif";padding:0;margin:0}.mydp[_ngcontent-%COMP%] .selectiongroup[_ngcontent-%COMP%]{width:100%;position:relative;display:table;border:none;border-spacing:0;background-color:#fff}.mydp[_ngcontent-%COMP%] .selection[_ngcontent-%COMP%]{outline:none;background-color:#fff;display:table-cell;position:absolute;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;font-weight:400;padding-left:15px;height:34px;border:none;font-size:14px}.mydp[_ngcontent-%COMP%] .selection.ng-invalid[_ngcontent-%COMP%]{background-color:#f1dede}.mydp[_ngcontent-%COMP%] .selbtngroup[_ngcontent-%COMP%]{height:34px;width:20%;float:right;display:flex;flex-direction:row;position:relative;vertical-align:middle;white-space:nowrap;font-size:0;text-align:right}.mydp[_ngcontent-%COMP%] .selbtngroup[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{flex-grow:1}.mydp[_ngcontent-%COMP%] .selbtngroup[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .icon-mydpcalendar[_ngcontent-%COMP%]{display:inline-block}.mydp[_ngcontent-%COMP%] .btnpicker[_ngcontent-%COMP%], .mydp[_ngcontent-%COMP%] .btnclear[_ngcontent-%COMP%]{height:100%;width:30px;border:none;padding:0;outline:0;font:inherit;-webkit-user-select:none;user-select:none;-moz-user-select:none}.mydp[_ngcontent-%COMP%] .btnleftborder[_ngcontent-%COMP%]{border-left:1px solid #ccc}.mydp[_ngcontent-%COMP%] .btnpickerenabled[_ngcontent-%COMP%], .mydp[_ngcontent-%COMP%] .btnclearenabled[_ngcontent-%COMP%]{cursor:pointer}.mydp[_ngcontent-%COMP%] .btnpickerdisabled[_ngcontent-%COMP%], .mydp[_ngcontent-%COMP%] .btncleardisabled[_ngcontent-%COMP%]{cursor:not-allowed}.mydp[_ngcontent-%COMP%] .btnpicker[_ngcontent-%COMP%], .mydp[_ngcontent-%COMP%] .btnclear[_ngcontent-%COMP%]{background:#fff}.mydp[_ngcontent-%COMP%] .mydpicon[_ngcontent-%COMP%]{font-family:mydatepicker!important;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.mydp[_ngcontent-%COMP%] .icon-calendar[_ngcontent-%COMP%]:before, .mydp[_ngcontent-%COMP%] .icon-mydpcalendar[_ngcontent-%COMP%]:before{content:"\\e910";font-family:nve-iconset!important;color:#008dc9;font-size:19px}.mydp[_ngcontent-%COMP%] .icon-cross[_ngcontent-%COMP%]:before, .mydp[_ngcontent-%COMP%] .icon-mydpremove[_ngcontent-%COMP%]:before{content:"\\f12a";font-family:Ionicons!important;color:#808285;font-size:17px}.mydp[_ngcontent-%COMP%] .btnpickerenabled[_ngcontent-%COMP%]:hover, .mydp[_ngcontent-%COMP%] .btnclearenabled[_ngcontent-%COMP%]:hover{background-color:#8bdaf4}@media (max-width: 1023px){.mydp[_ngcontent-%COMP%]{width:100%!important}}@media (max-width: 767px){.mydp[_ngcontent-%COMP%]{width:70%!important}}@media (min-width: 768px) and (max-width: 992px){.mydp[_ngcontent-%COMP%]{width:300px!important}}']}),Z})()},14663:(Q,B,d)=>{"use strict";d.d(B,{B:()=>_});var s=d(55062),O=d(97670),c=d(89383);let _=(()=>{var y;class e{}return(y=e).\u0275fac=function(b){return new(b||y)},y.\u0275cmp=s.Xpm({type:y,selectors:[["nve-error-404"]],decls:10,vars:8,consts:[["data-swiftype-index","fal
1se",1,"clearfix","nve-div-table-wrapper","wrapper-404"],[1,"col-lg-3","col-lg-offset-2","col-md-3","col-md-offset-2","col-sm-3","col-sm-offset-1","col-xs-4","col-xs-offset-4","nve-div-table-cell"],["alt","Error Page","aria-label","Error Page","role","img","src","assets/images/error-switch.png",1,"img-responsive"],[1,"col-lg-5","col-md-6","col-sm-7","col-xs-12","nve-div-table-cell","text-right-desktop-center-mobile"],[1,"heading"],[1,"nv-btn","nv-btn-blue",3,"moveToPage","setPageToRoot"]],template:function(b,C){1&b&&(s.TgZ(0,"div",0)(1,"div",1),s._UZ(2,"img",2),s.qZA(),s.TgZ(3,"div",3)(4,"h1",4),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.TgZ(7,"button",5),s._uU(8),s.ALo(9,"translate"),s.qZA()()()),2&b&&(s.xp6(5),s.Oqu(s.lcZ(6,4,"COMPONENTS.COMMON.ERROR.404ERROR.HEADING")),s.xp6(2),s.Q6J("moveToPage","/")("setPageToRoot",!0),s.xp6(1),s.hij(" ",s.lcZ(9,6,"COMPONENTS.COMMON.ERROR.404ERROR.HOMEPAGE")," "))},dependencies:[O.a,c.X$],encapsulation:2}),e})()},83157:(Q,B,d)=>{"use strict";d.d(B,{Fo:()=>O,H4:()=>c,HG:()=>_,SN:()=>s});const s="flexpay-enrollment-step1",O="flexpay-enrollment-step2",c="flexpay-enrollment-step3",_="flexpay-enrollment-confirmation-step"},12879:(Q,B,d)=>{"use strict";d.d(B,{q:()=>K});var s=d(12377),O=d(17914),c=d(55062),_=d(90603),y=d(89383),e=d(36895),v=d(8085),b=d(43910),C=d(88081),S=d(15439),L=d(27720);const M=["datePicker"];function j(m,w){1&m&&c._UZ(0,"span",20)}function k(m,w){1&m&&c._UZ(0,"span",21)}function P(m,w){if(1&m){const I=c.EpF();c.TgZ(0,"a",17),c.NdJ("click",function(){c.CHM(I);const f=c.oxw();return c.KtG(f.scroll())}),c.YNc(1,j,1,0,"span",18),c.YNc(2,k,1,0,"span",19),c.qZA()}if(2&m){const I=c.oxw();c.xp6(1),c.Q6J("ngIf",I.isScrollUp),c.xp6(1),c.Q6J("ngIf",!I.isScrollUp)}}function Z(m,w){if(1&m){const I=c.EpF();c.TgZ(0,"button",15),c.NdJ("click",function(){c.CHM(I);const f=c.oxw();return c.KtG(f.moveToConfirmation(!0))}),c._uU(1),c.ALo(2,"translate"),c.qZA()}if(2&m){const I=c.oxw();c.Q6J("disabled",""===I.selectedPostponement),c.xp6(1),c.hij(" ",c.lcZ(2,2,"COMPONENTS.POSTPONE_DUE_DATE.MODAL.BUTTON2")," ")}}let A=(()=>{var m;class w extends C.W{constructor(h,f,N,J,ne,Y){super(h,N),this.modalCtrl=h,this.translate=f,this.location=N,this.appUtil=J,this.postponeDueDateService=ne,this.navParams=Y,this.dateErrorMessage="",this.date=new Date,this.selectedPostponement="",this.formattedStartDate="",this.eligibility=this.navParams.get("eligibility"),this.disableSinceDate=this.toIMyDate(this.eligibility.nextReadDate);let W=this.determineDisableUntilDate();this.myDatePickerOptions={dateFormat:"mm/dd/yyyy",firstDayOfWeek:"su",disableUntil:W,disableSince:this.disableSinceDate}}ionViewDidEnter(){this.datePicker.openCalendar()}closeModal(){this.modalCtrl.dismiss()}determineDisableUntilDate(){let h,f=S(new Date(this.eligibility.dueDate)),N=S();return f.isSameOrAfter(N)?(h=this.toIMyDate(this.eligibility.dueDate),this.formattedStartDate=f.add(1,"day").format("YYYY-MM-DD")):(h={year:this.date.getFullYear(),month:this.date.getMonth()+1,day:this.date.getDate()},this.formattedStartDate=N.add(1,"day").format("YYYY-MM-DD")),h}onDateChanged(h){this.selectedPostponement=h.singleDate.formatted}toIMyDate(h){return{year:+h.split("-")[0],month:+h.split("-")[1],day:+h.split("-")[2]}}moveToConfirmation(h){this.modalCtrl.dismiss({eligibility:this.eligibility,selectedPostponement:this.selectedPostponement,redirectToPayMyBill:h})}}return(m=w).\u0275fac=function(h){return new(h||m)(c.Y36(_.IN),c.Y36(y.sK),c.Y36(e.Ye),c.Y36(b.$),c.Y36(s.g),c.Y36(_.X1))},m.\u0275cmp=c.Xpm({type:m,selectors:[["due-date-modal"]],viewQuery:function(h,f){if(1&h&&c.Gf(M,5),2&h){let N;c.iGM(N=c.CRH())&&(f.datePicker=N.first)}},features:[c.qOj],decls:23,vars:10,consts:[[1,"nve-modal"],[1,"due-date"],["mainDiv",""],["role","dialog","aria-labelledby","alertHeading","aria-describedby","alertText","tabindex","0",1,"flexible-modal","tooltip-modal",2,"max-width","375px"],["ion-fixed","",1,"fixed-place"],["class","modal-scroll-btns",3,"click",4,"ngIf"],[1,"modal-height-calc-wrapper"],["tabindex","0","aria-label","close button",1,"close-modal",3,"click"],[1,"ion-close-rou
1nd"],[1,"heading"],[1,"content-wrapper"],[1,"col-xs-12","date-picker-container",2,"padding-bottom","285px"],[3,"options","valueChanged"],["datePicker",""],[1,"button-wrapper"],[1,"nv-btn","nv-btn-blue","submit-button",3,"disabled","click"],["class","nv-btn nv-btn-blue submit-button",3,"disabled","click",4,"ngIf"],[1,"modal-scroll-btns",3,"click"],["class","ion-ios-arrow-down","title","Scroll To Bottom",4,"ngIf"],["class","ion-ios-arrow-up","title","Scroll To Top",4,"ngIf"],["title","Scroll To Bottom",1,"ion-ios-arrow-down"],["title","Scroll To Top",1,"ion-ios-arrow-up"]],template:function(h,f){1&h&&(c.TgZ(0,"div",0)(1,"div",1,2)(3,"div",3)(4,"div",4),c.YNc(5,P,3,2,"a",5),c.qZA(),c.TgZ(6,"div",6)(7,"div")(8,"a",7),c.NdJ("click",function(){return f.closeModal()}),c._UZ(9,"span",8),c.qZA(),c.TgZ(10,"div")(11,"h1",9),c._uU(12),c.ALo(13,"translate"),c.qZA()(),c.TgZ(14,"div",10)(15,"div",11)(16,"nve-date-picker",12,13),c.NdJ("valueChanged",function(J){return f.onDateChanged(J)}),c.qZA()(),c.TgZ(18,"div",14)(19,"button",15),c.NdJ("click",function(){return f.moveToConfirmation(!1)}),c._uU(20),c.ALo(21,"translate"),c.qZA(),c.YNc(22,Z,3,4,"button",16),c.qZA()()()()()()()),2&h&&(c.xp6(5),c.Q6J("ngIf",f.showScrollBtn),c.xp6(7),c.Oqu(c.lcZ(13,6,"COMPONENTS.POSTPONE_DUE_DATE.MODAL.HEADING")),c.xp6(4),c.Q6J("options",f.myDatePickerOptions),c.xp6(3),c.Q6J("disabled",""===f.selectedPostponement),c.xp6(1),c.hij(" ",c.lcZ(21,8,"COMPONENTS.POSTPONE_DUE_DATE.MODAL.BUTTON1")," "),c.xp6(2),c.Q6J("ngIf",!f.eligibility.isAmpUser&&f.eligibility.pendingDrafts<2))},dependencies:[e.O5,L.L,y.X$],encapsulation:2}),w})();function g(m,w){if(1&m){const I=c.EpF();c.TgZ(0,"a",1),c.NdJ("click",function(){c.CHM(I);const f=c.oxw();return c.KtG(f.openDueDateCalendar())}),c._uU(1),c.ALo(2,"translate"),c.qZA()}2&m&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"COMPONENTS.POSTPONE_DUE_DATE.POSTPONE_LINK_TEXT")," "))}let T=(()=>{var m;class w{constructor(h,f,N){this.modalCtrl=h,this.navUtil=f,this.postponeDueDateService=N}openDueDateCalendar(){this.modalCtrl.create({component:A,componentProps:{eligibility:this.eligibility,updateUrl:!1}}).then(h=>h.present().then(()=>h.onDidDismiss().then(f=>{const N=f.data;N&&(this.postponeDueDateService.saveParams(this.eligibility,N.selectedPostponement,N.redirectToPayMyBill,this.redirectedFromPayMyBill,this.billAmount),this.navUtil.navigate(v.$.changeDueDate,!0))})))}}return(m=w).\u0275fac=function(h){return new(h||m)(c.Y36(_.IN),c.Y36(O.H),c.Y36(s.g))},m.\u0275cmp=c.Xpm({type:m,selectors:[["postpone-due-date-presentation"]],inputs:{eligibility:"eligibility",redirectedFromPayMyBill:"redirectedFromPayMyBill",billAmount:"billAmount"},decls:2,vars:1,consts:[["style","display: inline",3,"click",4,"ngIf"],[2,"display","inline",3,"click"]],template:function(h,f){1&h&&(c.TgZ(0,"div"),c.YNc(1,g,3,3,"a",0),c.qZA()),2&h&&(c.xp6(1),c.Q6J("ngIf",f.eligibility.postponeEligible))},dependencies:[e.O5,y.X$],encapsulation:2}),w})();function U(m,w){if(1&m&&(c.TgZ(0,"div"),c._UZ(1,"postpone-due-date-presentation",1),c.qZA()),2&m){const I=c.oxw();c.xp6(1),c.Q6J("billAmount",I.billAmount)("eligibility",I.eligibility)("redirectedFromPayMyBill",I.redirectedFromPayMyBill)}}let K=(()=>{var m;class w{constructor(h,f,N,J){this.modalCtrl=h,this.postponeDueDateService=f,this.navUtil=N,this.translateService=J}}return(m=w).\u0275fac=function(h){return new(h||m)(c.Y36(_.IN),c.Y36(s.g),c.Y36(O.H),c.Y36(y.sK))},m.\u0275cmp=c.Xpm({type:m,selectors:[["postpone-due-date-container"]],inputs:{eligibility:"eligibility",redirectedFromPayMyBill:"redirectedFromPayMyBill",billAmount:"billAmount"},decls:1,vars:1,consts:[[4,"ngIf"],[3,"billAmount","eligibility","redirectedFromPayMyBill"]],template:function(h,f){1&h&&c.YNc(0,U,2,3,"div",0),2&h&&c.Q6J("ngIf",f.eligibility)},dependencies:[e.O5,T],encapsulation:2}),w})()},92697:(Q,B,d)=>{"use strict";d.d(B,{E:()=>O});var s=d(55062);let O=(()=>{var c;class _{constructor(){this.checkForBrowser()}ngOnChanges(e){e.id&&(this.id=e.id.currentValue),e.options&&e.options.currentValue&&(this.options=e.options.currentValue,this.makeChart(!0))}checkForBrowser(){this.isIE=!!window.document.documentMode,this.isEdge=/Edge/.test(navigator.userAgent),this.isFirefox=!!window.navigator.userAgent.match(/Firefox\/([0-9]+)\./)}makeChart(e){if(AmCharts.isReady)this.chart=AmCharts.makeChart(this.id,this.options),this.chart.legendHover&&this.chart.legend&&this.addLegendHoverText(),e&&this.chart.validateNow(!0,!1);else try{console.log("AmChartsDirective","Invoking handleLoad"),AmCharts.handleLoad()}catch(v){console.log("AmChartsDirective","Error handling for handleLoad",JSON.stringify(v))}finally{this.chart=AmCharts.makeChart(this.id,this.options),this.chart&&this.chart.legendHover&&this.chart.legend&&this.addLegendHoverText(),this.chart&&e&&this.chart.validateNow(!0,!1)}}ngOnDestroy(){this.chart&&this.chart.clear()}addLegendHoverText(){var e=this;this.chart.legend.balloon={item:!1,wrapper:null,container:null,mousemove:this.chart.handleMouseMove,titles:{}},this.chart.addListener("drawn",v=>{let b=document.getElementsByClassName("amcharts-legend-div")[0];b.classList.add("overflow-hide"),v.chart.legend.balloon.wrapper=document.createElement("div"),v.chart.legend.balloon.wrapper.className="amcharts-legend-balloon",v.chart.legend.balloon.container=document.createElement("div"),v.chart.legend.balloon.wrapper.appendChild(v.chart.legend.balloon.container),b.appendChild(v.chart.legend.balloon.wrapper);let C=v.chart.graphs.length;for(let M=0;M<C;M++){var S=v.chart.graphs[M];v.chart.legend.balloon.titles[S.id]=S.legendHoverText}}
1),this.chart.legend.addListener("rollOverItem",v=>{v.chart.legend.balloon.item=v.dataItem;let b=e.chart.legend.balloon,C=b.titles[v.dataItem.id]||v.dataItem.text,S=document.getElementsByClassName("amcharts-legend-div")[0].offsetWidth;if(C&&""!=C.trim()){let L,M;b.wrapper=document.getElementsByClassName("amcharts-legend-balloon")[0],b.container=b.wrapper.firstChild,b.container.style.borderColor=v.dataItem.lineColorR||v.dataItem.color,b.container.innerHTML=C,b.wrapper.className="amcharts-legend-balloon active-balloon",e.isEdge?(L=v.event.x-100,M=v.event.offsetY):e.isFirefox?(L=v.event.layerX,M=v.event.layerY):e.isIE?(L=v.event.x,M=v.event.y):(L=v.event.offsetX,M=v.event.offsetY),b.wrapper.style.left=L+"px",b.wrapper.style.top=M-b.container.offsetHeight-10+"px",document.getElementsByClassName("amcharts-legend-balloon")[0].childNodes[0].style.left=L<75?"0":L+75>S?"-100%":"-50%"}}),this.chart.legend.addListener("rollOutItem",v=>{v.chart.legend.balloon.item=!1,v.chart.legend.balloon.wrapper.className="amcharts-legend-balloon"})}}return(c=_).\u0275fac=function(e){return new(e||c)},c.\u0275dir=s.lG2({type:c,selectors:[["amCharts"]],inputs:{id:"id",options:"options"},features:[s.TTD]}),_})()},80769:(Q,B,d)=>{"use strict";d.r(B),d.d(B,{MyAccountPageModule:()=>Tc});var s=d(36895),O=d(24006),c=d(90603),_=d(89383),y=d(37257),e=d(55062);let v=(()=>{var t;class a{}return(t=a).\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[c.Pc,_.aw,s.ez,O.u5,O.UX,y.o]}),a})();var b=d(36690),C=d(15861),S=d(35399),L=d(8085),M=d(17914),j=d(591),k=d(92198),P=d(62267),Z=d(88081),A=d(25426),g=d(703),T=d(4317);function U(t,a){1&t&&e._UZ(0,"span",19)}function K(t,a){1&t&&e._UZ(0,"span",20)}function m(t,a){if(1&t){const i=e.EpF();e.TgZ(0,"a",16),e.NdJ("click",function(){e.CHM(i);const o=e.oxw();return e.KtG(o.scroll())}),e.YNc(1,U,1,0,"span",17),e.YNc(2,K,1,0,"span",18),e.qZA()}if(2&t){const i=e.oxw();e.xp6(1),e.Q6J("ngIf",i.isScrollUp),e.xp6(1),e.Q6J("ngIf",!i.isScrollUp)}}let w=(()=>{var t;class a extends Z.W{constructor(n,o,l,r,p,u){super(n,o),this.modalCtrl=n,this.location=o,this.appUtility=l,this.route=r,this.smartThermostatService=p,this.config=u,this.thermostatType=this.route.params.thermostatType}closeModal(){this.modalCtrl.dismiss()}redirectToEcobeeLoginPage(){this.modalCtrl.dismiss(),this.appUtility.openNewTab(this.thermostatType===this.smartThermostatService.ECOBEE?this.config.config.smartThermostat.ecobeeUrl:this.config.config.smartThermostat.ecoFactorUrl)}closeModalEvent(n){(13===n.keyCode||32===n.keyCode)&&this.closeModal()}}return(t=a).\u0275fac=function(n){return new(n||t)(e.Y36(c.IN),e.Y36(s.Ye),e.Y36(A.$0),e.Y36(b.gz),e.Y36(g.$),e.Y36(T._))},t.\u0275cmp=e.Xpm({type:t,selectors:[["ng-component"]],features:[e.qOj],decls:28,vars:13,consts:[[1,"nve-modal"],["mainDiv",""],["class","modal-scroll-btn flexible-modal",3,"click",4,"ngIf"],["padding","",1,"flexible-modal","modal-scroll-content"],["aria-label","Close button","role","button","tabindex","0",1,"close-modal",3,"click","keypress"],[1,"ion-close-round"],[1,"modal-height-calc-wrapper"],[1,"clearfix"],[1,"col-xs-12"],[1,"heading"],["role","alertdialog","aria-describedby","msgText","tabindex","0",1,"clearfix"],["id","msgText",1,"col-sm-12"],[1,"bottom-nav"],[1,"nv-btn","nv-btn-blue","nv-btn-go",3,"click"],[1,"nv-btn","nv-btn-border-blue","nv-btn-white","nv-btn-back",3,"click"],[2,"clear","both"],[1,"modal-scroll-btn","flexible-modal",3,"click"],["class","ion-ios-arrow-down","title","Scroll To Bottom",4,"ngIf"],["class","ion-ios-arrow-up","title","Scroll To Top",4,"ngIf"],["title","Scroll To Bottom",1,"ion-ios-arrow-down"],["title","Scroll To Top",1,"ion-ios-arrow-up"]],template:function(n,o){1&n&&(e.TgZ(0,"div",0)(1,"div",null,1),e.YNc(3,m,3,2,"a",2),e.TgZ(4,"div",3)(5,"a",4),e.NdJ("click",function(){return o.closeModal()})("keypress",function(r){return o.closeModalEvent(r)}),e._UZ(6,"span",5),e.qZA(),e.TgZ(7,"div",6)(8,"div",7)(9,"div",8)(10,"h1",9),e._uU(11),e.ALo(12,"translate"),e.qZA()()(),e.TgZ(13,"div",10)(14,"div",11),e._uU(15),e.ALo(16,"translate"),e.qZA()(),e._UZ(17,"br"),e.TgZ(18,"div",7)(19,"div",8)(20,"div",12)(21,"button",13),e.NdJ("click",function(){return o.redirectToEcobeeLoginPage()}),e._uU(22),e.ALo(23,"translate"),e.qZA(),e.TgZ(24,"button",14),e.NdJ("click",function(){return o.closeModal()}),e._uU(25),e.ALo(26,"translate"),e.qZA()()()(),e._UZ(27,"div",15),e.qZA()()()()),2&n&&(e.xp6(3),e.Q6J("ngIf",o.showScrollBtn),e.xp6(8),e.hij(" ",e.lcZ(12,5,"MODALS.SMART_THERMOSTAT_REDIRECT.CONTROL_THERMOSTAT_HEADER")," "),e.xp6(4),e.hij(" ",e.lcZ(16,7,"MODALS.SMART_THERMOSTAT_REDIRECT.CONTROL_THERMOSTAT_MESSAGE")," "),e.xp6(7),e.hij(" ",e.lcZ(23,9,"TILES.NEXTBESTACTION.MYTHERMOSTAT.CONTROL")," "),e.xp6(3),e.hij(" ",e.lcZ(26,11,"MODALS.SMART_THERMOSTAT_REDIRECT.CANCEL")," "))},dependencies:[s.O5,_.X$],encapsulation:2}),a})();var I=d(71047),h=d(1912),f=d(61213),N=d(43966),J=d(24790),ne=d(51930),Y=d(1588),W=d(75834),Ye=d(77776),qe=d(86578),Oe=d(53093),oe=d(79024),X=d(33441),F=d(6766),H=d(97670),$=d(15638),Pe=d(43912);let Te=(()=>{var t;class a{}
1return(t=a).CURRENTBILLTILEID="currentBill",t.PROJECTEDBILLTILEID="projectedBill",t.NOTIFICATIONTILEID="notification",t.BILLINGTILEID="billing",t.MYUSAGETILEID="myUsage",t.MYSMARTTHERMOSTATTILEID="mySmartThermostat",t.NBAFIRSTILEID="nbaFirstTile",t.OUTAGESTILEID="outages",t.STARTSTOPMOVETILEID="startStopMove",t.FLEXPAYENROLLEDTILEID="flexpayEnrolled",t.FLEXPAYINCOMPLETETILEID="flexpayIncomplete",t.DEMANDTILEID="demand",t.DISAGGREGATIONTILEID="disaggregation",t.DAILYDEMANDFIRSTLOOKTILEID="dailyDemandFirstLook",t.DAILYDEMANDCOMPARISONTILEID="dailyDemandComparison",t.EQUALPAYTILEID="equalpay",t.ACCOUNTPREFERENCESTILEID="accountPreferences",t.BILLFORECASTTILEID="billForecast",t.HBARATEOPTIONS="hbaRateOptions",a})();var Fe=d(60667),ae=d(5296),le=(d(19305),d(43910)),fe=d(30100),_e=d(16418),se=d(15441),Ee=d(70723),ke=d(12377),z=d(27107),ce=d(15083),Je=d(12879),Ge=d(30882),be=d(64998);function Qe(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"-"),e.qZA())}function He(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"+"),e.qZA())}function je(t,a){if(1&t){const i=e.EpF();e.TgZ(0,"div",12),e.ALo(1,"translate"),e.TgZ(2,"a",13),e.NdJ("click",function(){e.CHM(i);const o=e.oxw(2);return e.KtG(o.downloadCurrentBill())}),e._uU(3),e.ALo(4,"translate"),e.qZA()()}2&t&&(e.s9C("title",e.lcZ(1,2,"COMPONENTS.TILES.CURRENTBILLTILE.VIEWSTATEMENT")),e.xp6(3),e.hij(" ",e.lcZ(4,4,"COMPONENTS.TILES.CURRENTBILLTILE.VIEWSTATEMENT")," "))}function We(t,a){1&t&&(e.TgZ(0,"span",16),e._uU(1,"*"),e.qZA())}function Ke(t,a){if(1&t){const i=e.EpF();e.TgZ(0,"a",14),e.NdJ("click",function(){e.CHM(i);const o=e.oxw(2);return e.KtG(o.downloadMergedBill())}),e._uU(1),e.ALo(2,"translate"),e.YNc(3,We,2,0,"span",15),e.qZA()}if(2&t){const i=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,2,"COMPONENTS.TILES.CURRENTBILLTILE.VIEWMERGEDBILL"),""),e.xp6(2),e.Q6J("ngIf","N"===i.currentBillTileData.summaryBillingInformation.masterDisplayFlag||"E"===i.currentBillTileData.summaryBillingInformation.masterDisplayFlag)}}function Xe(t,a){if(1&t&&(e.TgZ(0,"span",34),e._uU(1),e.ALo(2,"currency"),e.qZA()),2&t){const i=e.oxw(3);e.xp6(1),e.Oqu(e.gM2(2,1,i.currentBillTileData.billAmount,"USD","symbol","1.2-2"))}}function $e(t,a){1&t&&(e.TgZ(0,"span",34),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"COMPONENTS.TILES.CURRENTBILLTILE.DOLLAR")))}function ze(t,a){if(1&t&&(e.TgZ(0,"div",35)(1,"span",36)(2,"div",37),e._uU(3),e.qZA(),e.TgZ(4,"div",38),e._uU(5),e.ALo(6,"currency"),e.qZA()()()),2&t){const i=a.$implicit;e.xp6(1),e.Udp("width",i.barWidth+"%"),e.Q6J("ngClass",i.color),e.xp6(2),e.Oqu(i.span.text),e.xp6(2),e.hij(" ",e.gM2(6,5,i.span.value,"USD","symbol","1.2-2")," ")}}const Ve=function(){return{redirectToPayMyBillChoices:!0}};function et(t,a){1&t&&(e.TgZ(0,"button",39),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.Q6J("moveToPage","my-account/pay-my-bill")("setPageToRoot",!0)("moveToPageParam",e.DdM(6,Ve)),e.xp6(1),e.hij(" ",e.lcZ(2,4,"COMPONENTS.TILES.CURRENTBILLTILE.PAYMYBILL")," "))}function tt(t,a){1&t&&(e.TgZ(0,"button",40),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"COMPONENTS.TILES.CURRENTBILLTILE.DONOTPAY")," "))}function nt(t,a){if(1&t&&(e.TgZ(0,"div")(1,"div",17)(2,"div",18)(3,"div"),e._UZ(4,"span",19),e.ALo(5,"safe"),e._UZ(6,"nve-tool-tip",20),e.TgZ(7,"div",21),e.YNc(8,Xe,3,6,"span",22),e.YNc(9,$e,3,3,"span",22),e.qZA()()(),e.TgZ(10,"div",23),e._UZ(11,"div",24),e.ALo(12,"safe"),e.qZA(),e.TgZ(13,"div",23)(14,"div",25),e.YNc(15,ze,7,10,"div",26),e.qZA()()(),e.TgZ(16,"div",27)(17,"div",28)(18,"div",29),e.YNc(19,et,3,7,"button",30),e.YNc(20,tt,3,3,"button",31),e.TgZ(21,"div",32),e._UZ(22,"postpone-due-date-container",33),e.qZA()()()()()),2&t){const i=e.oxw(2);e.xp6(4),e.Q6J("innerHTML",e.xi3(5,11,i.currentBillTileData.bodyMsg1,"html"),e.oJD),e.xp6(2),e.Q6J("isToolTip",!0),e.xp6(2),e.Q6J("ngIf",i.currentBillTileData.billAmount>0),e.xp6(1),e.Q6J("ngIf",!i.currentBillTileData.billAmount||i.currentBillTileData.billAmount<=0),e.xp6(2),e.Q6J("innerHTML",e.xi3(12,14,i.currentBillTileData.bodyMsg2,"html"),e.oJD),e.xp6(4),e.Q6J("ngForOf",i.currentBillTileData.billGraphicData),e.xp6(4),e.Q6J("ngIf",i.currentBillTileData.isAllowedToPayBill),e.xp6(1),e.Q6J("ngIf",!i.currentBillTileData.isAllowedToPayBill),e.xp6(2),e.Q6J("billAmount",null==i.currentBillTileData?null:i.currentBillTileData.billAmount)("redirectedFromPayMyBill",!1)("eligibility",i.postponeDueDateEligiblity)}}const it=function(){return{showPayMyBillAccountDetailsDrawer:!0}};
1function ot(t,a){if(1&t){const i=e.EpF();e.TgZ(0,"div",3)(1,"div",4)(2,"h2",5),e.ALo(3,"translate"),e.TgZ(4,"span",6),e.NdJ("click",function(){e.CHM(i);const o=e.oxw();return e.KtG(o.onUserToggle())}),e.YNc(5,Qe,2,0,"span",7),e.YNc(6,He,2,0,"span",7),e.TgZ(7,"span",8),e._uU(8),e.ALo(9,"translate"),e.qZA()(),e.YNc(10,je,5,6,"div",9),e.qZA(),e.TgZ(11,"a",10),e._uU(12),e.ALo(13,"translate"),e.qZA(),e.YNc(14,Ke,4,4,"a",11),e.qZA(),e.YNc(15,nt,23,17,"div",7),e.qZA()}if(2&t){const i=e.oxw();e.xp6(2),e.s9C("title",e.lcZ(3,11,"COMPONENTS.TILES.CURRENTBILLTILE.CURRENTBILL")),e.xp6(3),e.Q6J("ngIf",i.showPanelAndBody),e.xp6(1),e.Q6J("ngIf",!i.showPanelAndBody),e.xp6(2),e.Oqu(e.lcZ(9,13,"COMPONENTS.TILES.CURRENTBILLTILE.CURRENTBILL")),e.xp6(2),e.Q6J("ngIf",i.currentBillTileData.printDate),e.xp6(1),e.Q6J("moveToPage","my-account/pay-my-bill")("setPageToRoot",!1)("moveToPageParam",e.DdM(17,it)),e.xp6(1),e.Oqu(e.lcZ(13,15,"COMPONENTS.TILES.CURRENTBILLTILE.ACCOUNTSUMMARY")),e.xp6(2),e.Q6J("ngIf","M"===i.currentBillTileData.billType&&i.currentBillTileData.summaryBillingInformation.masterDisplayFlag),e.xp6(1),e.Q6J("ngIf",i.showPanelAndBody)}}function at(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"-"),e.qZA())}function lt(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"+"),e.qZA())}function st(t,a){1&t&&(e.TgZ(0,"div",44),e._UZ(1,"nve-spinner"),e.qZA())}function ct(t,a){1&t&&(e.TgZ(0,"div",44)(1,"div",28)(2,"div",25),e._uU(3),e.ALo(4,"translate"),e.qZA()()()),2&t&&(e.xp6(3),e.Oqu(e.lcZ(4,1,"COMPONENTS.TILES.CURRENTBILLTILE.WRONG")))}function rt(t,a){if(1&t&&(e.TgZ(0,"div"),e.YNc(1,st,2,0,"div",43),e.YNc(2,ct,5,3,"div",43),e._UZ(3,"div",27),e.qZA()),2&t){const i=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!i.isErrorOccured),e.xp6(1),e.Q6J("ngIf",i.isErrorOccured)}}function dt(t,a){if(1&t){const i=e.EpF();e.TgZ(0,"div",41)(1,"div",4)(2,"h2",42),e.NdJ("click",function(){e.CHM(i);const o=e.oxw();return e.KtG(o.onUserToggle())}),e.ALo(3,"translate"),e.YNc(4,at,2,0,"span",7),e.YNc(5,lt,2,0,"span",7),e.TgZ(6,"span"),e._uU(7),e.ALo(8,"translate"),e.qZA()()(),e.YNc(9,rt,4,2,"div",7),e.qZA()}if(2&t){const i=e.oxw();e.xp6(2),e.s9C("title",e.lcZ(3,5,"COMPONENTS.TILES.CURRENTBILLTILE.CURRENTBILL")),e.xp6(2),e.Q6J("ngIf",i.showPanelAndBody),e.xp6(1),e.Q6J("ngIf",!i.showPanelAndBody),e.xp6(2),e.hij(" ",e.lcZ(8,7,"COMPONENTS.TILES.CURRENTBILLTILE.CURRENTBILL"),""),e.xp6(2),e.Q6J("ngIf",i.showPanelAndBody)}}let pt=(()=>{var t;class a{constructor(n,o,l,r,p,u,x,E,D,R,q){var G=this;this.payMyBillService=n,this.userService=o,this.widgetsService=l,this.postponeDueDateService=r,this.globalServiceErrorHandler=p,this.appUtil=u,this.config=x,this.translate=E,this.modalCtrl=D,this.httpUtility=R,this.downloadLargeFiles=q,this.currentBillTileData=void 0,this.formattedLastPaymentDate=void 0,this.formattedDueDate=void 0,this.isErrorOccured=!1,this.isDataLoaded=!1,this.isLoading=!1,this.myAccountService=I.$.getInstance(),this.showPanelAndBody=!1,this.currentBillBarWidth=0,this.lastMonthBillBarWidth=0,this.lastYearBillBarWidth=0,this.widgetId=2,this.isSafari=/Safari/.test(navigator.userAgent)&&/Apple Computer/.test(navigator.vendor),this.widgetsService.closeEventEmitter.subscribe(ee=>{ee!==this.widgetId&&this.showPanelAndBody&&this.togglePanelAndBody()}),this.accountNumber=this.userService.user.currentAccount.accountNumber,this.userService.user.companyID===z.c.NORTH_NEVADA_COMPANY_CODE?(this.phone="775-834-4444",this.tollFree="800-962-0399"):(this.phone="702-402-5555",this.tollFree="800-331-3103"),this.myAccountService.onRefreshCurrentBillTile.pipe((0,k.h)(ee=>!0===ee)).subscribe((0,C.Z)(function*(){yield G.getCurrentBillTileInfo()}))}set index(n){this.widgetIndex=n}ngOnInit(){this.widgetIndex<this.config.config.numberOfTilesOpenByDefault&&(this.showPanelAndBody=!0),!this.isLoading&&!this.isDataLoaded&&this.getCurrentBillTileInfo()}togglePanelAndBody(){this.showPanelAndBody=!this.showPanelAndBody,this.showPanelAndBody&&!this.isDataLoaded&&!this.isLoading&&this.getCurrentBillTileInfo()}onUserToggle(){this.togglePanelAndBody(),this.widgetsService.toggleWidgetEvent(this.widgetId)}getCurrentBillTileInfo(){var n=this;return(0,C.Z)(function*(){if(!n.isLoading){n.isLoading=!0;try{n.currentBillTileData=yield n.payMyBillService.getCurrentBillTileInfo(),n.currentBillTileData.billType=n.payMyBillService.getBillType(),n.postponeDueDateEligiblity=n.currentBillTileData.postponeDueDateResponse,n.isDataLoaded=!0}catch(o){n.isErrorOccured=!0}
1finally{n.isLoading=!1}}})()}calculateBarWidth(n,o){return n/o*100}showViewStatementError(){const n=new Array,o=new ae.v;o.content=String(this.translate.instant("GENERAL.BILL_ERROR")),n.push(o),this.modalCtrl.create({component:se.g,componentProps:{errorMessages:n,updateUrl:!1}}).then(l=>l.present())}getText(n){const o=new Array,l=new ae.v,r={phone:this.phone,toll_free:this.tollFree};l.content=String("RECORDKEYNOTFOUND"===n.ERROR_CODE?this.translate.instant("FILEOPEN.MERGEDBILL.ERROR.RECORDKEYNOTFOUND",r):"DONOTDISPLAYONLINE"===n.ERROR_CODE?this.translate.instant("FILEOPEN.MERGEDBILL.ERROR.DONOTDISPLAYONLINE",r):"CANTRETRIEVEFROMSERVER"===n.ERROR_CODE?this.translate.instant("FILEOPEN.MERGEDBILL.ERROR.CANTRETRIEVEFROMSERVER",r):this.translate.instant("GENERAL.BILL_ERROR")),o.push(l),this.modalCtrl.create({component:se.g,componentProps:{errorMessages:o,updateUrl:!1}}).then(p=>p.present())}downloadMergedBill(){var n=this;return(0,C.Z)(function*(){const o=n.currentBillTileData.summaryBillingInformation;if("Y"===o.masterDisplayFlag&&o.ddsContentString){let l;if(n.httpUtility.toggleUIMsgLoader.emit(!0),n.appUtil.shouldOpenInWindow()){l=window.open();const r=`${String(_e.r.SPINNER_MSG1)} ${String(n.translate.instant("COMPONENTS.COMMON.SPINLOADER.LOADINGMSG"))} ${_e.r.SPINNER_MSG2}`;l.document.write(r)}try{let r,p;p=yield n.payMyBillService.getMergedBill(n.currentBillTileData.summaryBillingInformation.ddsContentString),r=p&&p.base64EncodedData,n.httpUtility.toggleUIMsgLoader.emit(!1),n.appUtil.viewStatement(r,{transactionDate:n.currentBillTileData.printDate},l,n.currentBillTileData.summaryBillingInformation.mergedFilename)}catch(r){return n.httpUtility.toggleUIMsgLoader.emit(!1),l&&l.close(),n.getkey(r)}}else"E"===o.masterDisplayFlag||"N"===o.masterDisplayFlag?n.getkey(n.currentBillTileData.summaryBillingInformation.masterDisplayFlag):n.getText({ERROR_CODE:"CANTRETRIEVEFROMSERVER"})})()}getkey(n){this.getText("E"===n?{ERROR_CODE:"RECORDKEYNOTFOUND"}:"N"===n?{ERROR_CODE:"DONOTDISPLAYONLINE"}:{ERROR_CODE:"CANTRETRIEVEFROMSERVER"})}downloadCurrentBill(){if(!this.currentBillTileData||!this.currentBillTileData.printDate)return this.showViewStatementError();if(!this.currentBillTileData.displayCode||!this.currentBillTileData.displayCode.length)return this.showViewStatementError();if("Y"!==this.currentBillTileData.displayCode&&"R"!==this.currentBillTileData.displayCode)return this.showViewStatementError();let n;this.appUtil.shouldOpenInWindow()&&(n=window.open(),n.document.write(_e.r.SPINNER)),this.payMyBillService.getCurrentBill(this.currentBillTileData.printDate,this.currentBillTileData.displayCode).then(o=>{this.appUtil.viewStatement(o,{transactionDate:this.currentBillTileData.printDate},n)}).catch(o=>(n&&n.close(),this.showViewStatementError()))}b64ToBlob(n,o,l){const r=atob(n),p=[];for(let x=0;x<r.length;x+=l){const E=r.slice(x,x+l),D=new Array(E.length);for(let q=0;q<E.length;q++)D[q]=E.charCodeAt(q);const R=new Uint8Array(D);p.push(R)}return new Blob(p,{type:o})}}return(t=a).\u0275fac=function(n){return new(n||t)(e.Y36(Ee.v),e.Y36(f.K),e.Y36(Y.L),e.Y36(ke.g),e.Y36(W.o),e.Y36(le.$),e.Y36(T._),e.Y36(_.sK),e.Y36(c.IN),e.Y36(fe.r),e.Y36(Fe.x))},t.\u0275cmp=e.Xpm({type:t,selectors:[["nve-current-bill-tile"]],inputs:{index:"index"},decls:3,vars:2,consts:[[1,"widget-component","current-bill-tile-component"],["class","panel panel-default","tabindex","0",4,"ngIf"],["class","panel panel-default",4,"ngIf"],["tabindex","0",1,"panel","panel-default"],[1,"panel-heading"],[1,"accent-color-red","no-side-padding",3,"title"],[1,"heading",3,"click"],[4,"ngIf"],[1,"panel-text"],["id","dwnldLnk","class","float-right","role","button","aria-label","Download Current Bill","tappable","","csrDisable","",3,"title",4,"ngIf"],["href","javascript:void(0)","tappable","",1,"acc-summary",3,"moveToPage","setPageToRoot","moveToPageParam"],["class","statement","tappable","","style","font-weight: 600; font-size: 16px; float: right",3,"click",4,"ngIf"],["id","dwnldLnk","role","button","aria-label","Download Current Bill","tappable","","csrDisable","",1,"float-right",3,"title"],["tappable","",1,"statement","view-statement-font",3,"click"],["tappable","",1,"statement",2,"font-weight","600","font-size","16px","float","right",3,"click"],["class","display-inline",4,"ngIf"],[1,"display-inline"],[1,"panel-body"],[1,"col-xs-12","clearfix"],[3,"modalLinkNavigator","innerHTML"],["type","ToolTipModalComponent","path","/tooltips/due-date.html",3,"isToolTip"],[1,"float-right","align-bottom","text-right","nopadding-left",2,"vertical-align","top"],["class","large-text",4,"ngIf"],[1,"clearfix","margin-top-15"],[1,"col-xs-12",3,"modalLinkNavigator","innerHTML"],[1,"col-xs-12"],["class","bill-progress-bar",4,"ngFor","ngForOf"],[1,"panel-footer"],[1,"clearfix"],[1,"col-xs-12",2,"text-align","right"],["class","nv-btn nv-btn-blue","style","float: left",3,"moveToPage","setPageToRoot","moveToPageParam",4,"ngIf"],["class","nv-btn nv-btn-gray","style","float: left",4,"ngIf"],[2,"padding-top","0.5em"],[3,"billAmount","redirectedFromPayMyBill","eligibility"],[1,"large-text"],[1,"bill-progress-bar"],[3,"ngClass"],[1,"pull-left"],[1,"pull-right","text-right"],[1,"nv-btn","nv-btn-blue",2,"float","left",3,"moveToPage","setPageToRoot","moveToPageParam"],[1,"nv-btn","nv-btn-gray",2,"float","left"],[1,"panel","panel-default"],[3,"title","click"],["class","panel-body text-center",4,"ngIf"],[1,"panel-body","text-center"]],template:function(n,o){1&n&&(e.TgZ(0,"div",0),e.YNc(1,ot,16,18,"div",1),e.YNc(2,dt,10,9,"div",2),e.qZA()),2&n&&(e.xp6(1),e.Q6J("ngIf",null!=o.currentBillTileData),e.xp6(1),e.Q6J("ngIf",null==o.currentBillTileData))},dependencies:[F.$,ce.I,Je.q,s.mk,s.sg,s.O5,H.a,Ge.R,$.$,_.X$,s.H9,be.Q],styles:[".nve[_ng
1content-%COMP%] .radio-md[_ngcontent-%COMP%] .radio-checked[_ngcontent-%COMP%]{border-color:#d2c9c7}.nve[_ngcontent-%COMP%] .radio-md[_ngcontent-%COMP%] .radio-inner[_ngcontent-%COMP%]{top:3px;left:3px;width:12px;height:12px}.nve[_ngcontent-%COMP%] .radio-md[_ngcontent-%COMP%] .radio-icon[_ngcontent-%COMP%]{border-color:#d2c9c7;background:#ffffff}.nve[_ngcontent-%COMP%] .checkbox-md[_ngcontent-%COMP%] .checkbox-checked[_ngcontent-%COMP%]{border-color:#d2c9c7;background-color:#fff}.nve[_ngcontent-%COMP%] .checkbox-md[_ngcontent-%COMP%] .checkbox-icon[_ngcontent-%COMP%]{width:20px;height:20px;border-width:1px;border-style:solid;border-radius:1px;border-color:#d2c9c7;background-color:#fff}.nve[_ngcontent-%COMP%] .checkbox-md[_ngcontent-%COMP%] .checkbox-checked[_ngcontent-%COMP%] .checkbox-inner[_ngcontent-%COMP%]{top:0;left:7px;width:5px;height:14px}.nve[_ngcontent-%COMP%] .checkbox-md.checkbox-disabled[_ngcontent-%COMP%], .nve[_ngcontent-%COMP%] .item-md.item-checkbox-disabled[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{opacity:.6;pointer-events:none;background:#ccc}.nve[_ngcontent-%COMP%] .radio-md.radio-disabled[_ngcontent-%COMP%], .nve[_ngcontent-%COMP%] .item-md.item-radio-disabled[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{opacity:.6;pointer-events:none}.nve[_ngcontent-%COMP%] .radio-md.radio-disabled[_ngcontent-%COMP%] .radio-icon[_ngcontent-%COMP%], .nve[_ngcontent-%COMP%] .item-md.item-radio-disabled[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%] .radio-icon[_ngcontent-%COMP%]{background:#cccccc}.nve[_ngcontent-%COMP%] ion-radio.radio-disabled[_ngcontent-%COMP%]{opacity:.6;pointer-events:none}.nve[_ngcontent-%COMP%] ion-radio.radio-disabled[_ngcontent-%COMP%]::part(container){background:#cccccc}.nve[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-size:1em;font-weight:400;color:#000}.bill-progress-bar[_ngcontent-%COMP%]{height:23px;position:relative;padding:.5px;margin:0}.current-bill-tile-component[_ngcontent-%COMP%] .heading[_ngcontent-%COMP%]{width:50%!important}.current-bill-tile-component.widget-component[_ngcontent-%COMP%] .panel[_ngcontent-%COMP%] .panel-heading[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-of-type{top:0px}.bill-progress-bar[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:block;height:100%;border-top-right-radius:5px;border-bottom-right-radius:5px;position:relative;overflow:hidden;max-width:100%;min-width:50%;color:#fff;padding:0 10px 0 5px;font-weight:700}.bill-tile-color1[_ngcontent-%COMP%]{background-color:#00233e}.bill-tile-color2[_ngcontent-%COMP%]{background-color:#5f7281}.bill-tile-color3[_ngcontent-%COMP%]{background-color:#334f65}@media (max-width: 767px){.view-acct-summary-button[_ngcontent-%COMP%]{margin-top:-15px}}.view-statement-font[_ngcontent-%COMP%]{font-weight:600;font-size:16px}"]}),a})();var Me=d(40751),re=d(15439),gt=d(94337),Ie=d(83157);function _t(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"-"),e.qZA())}function ut(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"+"),e.qZA())}function mt(t,a){1&t&&(e.TgZ(0,"span",13),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"TILES.NEXTBESTACTION.FLEXPAY.PENDING")))}function Tt(t,a){1&t&&(e.TgZ(0,"span",14),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"TILES.NEXTBESTACTION.FLEXPAY.INCOMPLETE")))}function ft(t,a){if(1&t&&(e.TgZ(0,"span",15),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"date"),e.qZA()),2&t){const i=e.oxw(2);e.Q2q("aria-label","As of ",i.formattedSysDate,""),e.xp6(1),e.AsE("",e.lcZ(2,3,"TILES.NEXTBESTACTION.FLEXPAY.ASOF")," ",e.xi3(3,5,i.formattedSysDate,"longDate"),"")}}function vt(t,a){1&t&&(e.TgZ(0,"div")(1,"div",18)(2,"div",22)(3,"span"),e._uU(4),e.ALo(5,"translate"),e.qZA()()()()),2&t&&(e.xp6(4),e.Oqu(e.lcZ(5,1,"TILES.NEXTBESTACTION.FLEXPAY.HEADING")))}function ht(t,a){if(1&t&&(e.TgZ(0,"div")(1,"div",18),e._UZ(2,"div",23),e.qZA()()),2&t){const i=e.oxw(3);e.xp6(2),e.s9C("innerHTML",i.flexPayTileDetails.tileMessage,e.oJD),e.uIk("aria-label",i.flexPayTileDetails.tileMessage)}}
1function xt(t,a){if(1&t&&(e.TgZ(0,"div",24)(1,"div",30),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",31),e.ALo(5,"currency"),e._uU(6),e.ALo(7,"currency"),e.qZA()()),2&t){const i=e.oxw(4);e.xp6(2),e.hij(" ",e.lcZ(3,3,"TILES.NEXTBESTACTION.FLEXPAY.OUSTANDING")," "),e.xp6(2),e.Q2q("aria-label"," ",e.gM2(5,5,i.flexPayTileDetails.outBalance,"USD","symbol","1.2-2"),""),e.xp6(2),e.hij(" ",e.gM2(7,10,i.flexPayTileDetails.outBalance,"USD","symbol","1.2-2")," ")}}function Ct(t,a){if(1&t&&(e.TgZ(0,"div")(1,"div",24)(2,"div",25),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"div",26),e.ALo(6,"currency"),e._uU(7),e.ALo(8,"currency"),e.qZA()(),e.TgZ(9,"div",24)(10,"div",27),e._uU(11),e.ALo(12,"translate"),e.qZA(),e.TgZ(13,"div",28),e._uU(14),e.qZA()(),e.YNc(15,xt,8,15,"div",29),e.qZA()),2&t){const i=e.oxw(3);e.xp6(3),e.hij(" ",e.lcZ(4,7,"TILES.NEXTBESTACTION.FLEXPAY.BALANCE")," "),e.xp6(2),e.Q2q("aria-label"," ",e.gM2(6,9,i.flexPayTileDetails.fpBalance,"USD","symbol","1.2-2"),""),e.xp6(2),e.hij(" ",e.gM2(8,14,i.flexPayTileDetails.fpBalance,"USD","symbol","1.2-2")," "),e.xp6(4),e.hij(" ",e.lcZ(12,19,"TILES.NEXTBESTACTION.FLEXPAY.DAYS")," "),e.xp6(2),e.uIk("aria-label",i.flexPayTileDetails.daysRemaining),e.xp6(1),e.hij(" ",i.flexPayTileDetails.daysRemaining," "),e.xp6(1),e.Q6J("ngIf",i.flexPayTileDetails.outBalance&&i.flexPayTileDetails.outBalance>0)}}function At(t,a){if(1&t){const i=e.EpF();e.TgZ(0,"div",32)(1,"button",33),e.NdJ("keypress",function(o){e.CHM(i);const l=e.oxw(3);return e.KtG(l.reloadEvent(o))}),e.ALo(2,"translate"),e._uU(3),e.ALo(4,"translate"),e.qZA()()}2&t&&(e.xp6(1),e.Q6J("moveToPage","my-account/flexpay-reload")("setPageToRoot",!1),e.uIk("aria-label",e.lcZ(2,4,"TILES.NEXTBESTACTION.FLEXPAY.REPLENISH")),e.xp6(2),e.hij(" ",e.lcZ(4,6,"TILES.NEXTBESTACTION.FLEXPAY.REPLENISH")," "))}function Ot(t,a){1&t&&e._UZ(0,"nve-tool-tip",37),2&t&&e.Q6J("isToolTip",!0)}const Pt=function(){return{isAutoReloadEnabled:!0}};function Et(t,a){if(1&t){const i=e.EpF();e.TgZ(0,"div",34),e.YNc(1,Ot,1,1,"nve-tool-tip",35),e.TgZ(2,"button",36),e.NdJ("keypress",function(o){e.CHM(i);const l=e.oxw(3);return e.KtG(l.reloadEvent(o,!0))}),e.ALo(3,"translate"),e._uU(4),e.ALo(5,"translate"),e.qZA()()}if(2&t){const i=e.oxw(3);e.xp6(1),e.Q6J("ngIf",i.flexPayTileDetails.returnedCheck),e.xp6(1),e.Q6J("disabled",i.flexPayTileDetails.returnedCheck)("moveToPage","my-account/flexpay-reload")("moveToPageParam",e.DdM(11,Pt))("setPageToRoot",!1),e.uIk("aria-label",e.lcZ(3,7,"TILES.NEXTBESTACTION.FLEXPAY.ENABLEAUTORELOAD")),e.xp6(2),e.hij(" ",e.lcZ(5,9,"TILES.NEXTBESTACTION.FLEXPAY.ENABLEAUTORELOAD")," ")}}const bt=function(t){return{isAutoReloadEnabled:t}};function Mt(t,a){if(1&t){const i=e.EpF();e.TgZ(0,"div",34)(1,"button",38),e.NdJ("keypress",function(o){e.CHM(i);const l=e.oxw(3);return e.KtG(l.reloadEvent(o,!0))}),e.ALo(2,"translate"),e._uU(3),e.ALo(4,"translate"),e.qZA()()}if(2&t){const i=e.oxw(3);e.xp6(1),e.Q6J("moveToPage","my-account/flexpay-reload")("moveToPageParam",e.VKq(9,bt,i.isAutoReloadEnabled))("setPageToRoot",!1),e.uIk("aria-label",e.lcZ(2,5,"TILES.NEXTBESTACTION.FLEXPAY.MANAGEAUTORELOAD")),e.xp6(2),e.hij(" ",e.lcZ(4,7,"TILES.NEXTBESTACTION.FLEXPAY.MANAGEAUTORELOAD")," ")}}const It=function(t){return{goToWizardStep:t}};function yt(t,a){if(1&t){const i=e.EpF();e.TgZ(0,"div",39)(1,"button",40),e.NdJ("keypress",function(){e.CHM(i);const o=e.oxw(3);return e.KtG(o.moveToFlexPayReviewPage())}),e._uU(2),e.ALo(3,"translate"),e.qZA()()}if(2&t){const i=e.oxw(3);e.xp6(1),e.Q6J("moveToPage","my-account/flexpay-enrollment-wizard")("setPageToRoot",!0)("moveToPageParam",e.VKq(6,It,i.reviewStep)),e.xp6(1),e.hij(" ",e.lcZ(3,4,"TILES.NEXTBESTACTION.FLEXPAY.COMPLETEENROLL")," ")}}function Lt(t,a){if(1&t&&(e.TgZ(0,"div")(1,"div",16),e.YNc(2,vt,6,3,"div",6),e.YNc(3,ht,3,2,"div",6),e.YNc(4,Ct,16,21,"div",6),e.qZA(),e.TgZ(5,"div",17)(6,"div",18),e.YNc(7,At,5,8,"div",19),e.YNc(8,Et,6,12,"div",20),e.YNc(9,Mt,5,11,"div",20),e.YNc(10,yt,4,8,"div",21),e.qZA()()()),2&t){const i=e.oxw(2);e.xp6(2),e.Q6J("ngIf","Pending"==i.flexPayTileDetails.fpStatus),e.xp6(1),e.Q6J("ngIf","Incomplete"==i.flexPayTileDetails.fpStatus),e.xp6(1),e.Q6J("ngIf","Active"==i.flexPayTileDetails.fpStatus),e.xp6(3),e.Q6J("ngIf","Active"==i.flexPayTileDetails.fpStatus),e.xp6(1),e.Q6J("ngIf","Y"===i.flexPayTileDetails.prepaymentFlag&&!i.isAutoReloadEnabled),e.xp6(1),e.Q6J("ngIf","Y"===i.flexPayTileDetails.prepaymentFlag&&i.isAutoReloadEnabled),e.xp6(1),e.Q6J("ngIf","Incomplete"==i.flexPayTileDetails.fpStatus)}}
1function Zt(t,a){if(1&t){const i=e.EpF();e.TgZ(0,"div",2)(1,"div",3)(2,"h2",4)(3,"span",5),e.NdJ("click",function(){e.CHM(i);const o=e.oxw();return e.KtG(o.onUserToggle())}),e.YNc(4,_t,2,0,"span",6),e.YNc(5,ut,2,0,"span",6),e.TgZ(6,"span",7),e._uU(7),e.ALo(8,"translate"),e.qZA()(),e.TgZ(9,"div",8),e.ALo(10,"translate"),e.TgZ(11,"a",9),e.NdJ("click",function(){e.CHM(i);const o=e.oxw();return e.KtG(o.downloadCurrentBillStatement())}),e._uU(12),e.ALo(13,"translate"),e.qZA()()(),e.YNc(14,mt,3,3,"span",10),e.YNc(15,Tt,3,3,"span",11),e.YNc(16,ft,4,8,"span",12),e.qZA(),e.YNc(17,Lt,11,7,"div",6),e.qZA()}if(2&t){const i=e.oxw();e.xp6(4),e.Q6J("ngIf",i.showPanelAndBody),e.xp6(1),e.Q6J("ngIf",!i.showPanelAndBody),e.xp6(2),e.hij(" ",e.lcZ(8,9,"TILES.NEXTBESTACTION.FLEXPAY.HEADING1")," "),e.xp6(2),e.s9C("title",e.lcZ(10,11,"TILES.NEXTBESTACTION.FLEXPAY.VIEWSTATEMENT")),e.xp6(3),e.hij(" ",e.lcZ(13,13,"TILES.NEXTBESTACTION.FLEXPAY.VIEWSTATEMENT")," "),e.xp6(2),e.Q6J("ngIf","Pending"==i.flexPayTileDetails.fpStatus),e.xp6(1),e.Q6J("ngIf","Incomplete"==i.flexPayTileDetails.fpStatus),e.xp6(1),e.Q6J("ngIf","Active"==i.flexPayTileDetails.fpStatus),e.xp6(1),e.Q6J("ngIf",i.showPanelAndBody)}}function St(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"-"),e.qZA())}function Nt(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"+"),e.qZA())}function Dt(t,a){1&t&&(e.TgZ(0,"div",43),e._UZ(1,"nve-spinner"),e.qZA())}function wt(t,a){1&t&&(e.TgZ(0,"div",43)(1,"div",18)(2,"div",39),e._uU(3),e.ALo(4,"translate"),e.qZA()()()),2&t&&(e.xp6(3),e.Oqu(e.lcZ(4,1,"TILES.NEXTBESTACTION.FLEXPAY.WRONG")))}function Bt(t,a){if(1&t&&(e.TgZ(0,"div"),e.YNc(1,Dt,2,0,"div",42),e.YNc(2,wt,5,3,"div",42),e._UZ(3,"div",17),e.qZA()),2&t){const i=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!i.isErrorOccured),e.xp6(1),e.Q6J("ngIf",i.isErrorOccured)}}function Ut(t,a){if(1&t){const i=e.EpF();e.TgZ(0,"div",2)(1,"div",3)(2,"h2",41),e.NdJ("click",function(){e.CHM(i);const o=e.oxw();return e.KtG(o.onUserToggle())}),e.YNc(3,St,2,0,"span",6),e.YNc(4,Nt,2,0,"span",6),e.TgZ(5,"span"),e._uU(6),e.ALo(7,"translate"),e.qZA()()(),e.YNc(8,Bt,4,2,"div",6),e.qZA()}if(2&t){const i=e.oxw();e.xp6(3),e.Q6J("ngIf",i.showPanelAndBody),e.xp6(1),e.Q6J("ngIf",!i.showPanelAndBody),e.xp6(2),e.Oqu(e.lcZ(7,4,"TILES.NEXTBESTACTION.FLEXPAY.FLEXPAYHEAD")),e.xp6(2),e.Q6J("ngIf",i.showPanelAndBody)}}let Rt=(()=>{var t;class a{constructor(n,o,l,r,p,u,x,E,D){this.userService=n,this.appUtil=o,this.payMyBillService=l,this.flexpayService=r,this.widgetsService=p,this.navUtil=u,this.config=x,this.translate=E,this.modalCtrl=D,this.flexPayTileDetails=void 0,this.formattedSysDate=void 0,this.formattedEndOfDay=void 0,this.isErrorOccured=!1,this.reviewStep=Ie.H4,this.showPanelAndBody=!1,this.widgetId=5,this.isDataLoaded=!1,this.isAutoReloadEnabled=!1,this.widgetsService.closeEventEmitter.subscribe(R=>{R!==this.widgetId&&this.showPanelAndBody&&this.togglePanelAndBody()})}set index(n){this.widgetIndex=n}ngOnInit(){this.widgetIndex<this.config.config.numberOfTilesOpenByDefault&&(this.currentAccountNumber=this.userService.user.currentAccount.accountNumber,this.showPanelAndBody=!0,this.getflexPayTileDetails(),this.getFlexpayCurrentBillData())}getFlexpayCurrentBillData(){var n=this;return(0,C.Z)(function*(){try{n.flexpayCurrentBillData=yield n.flexpayService.getFlexpayBillData(n.currentAccountNumber,!0,!0)}catch(o){n.isErrorOccured=!0}})()}togglePanelAndBody(){this.showPanelAndBody=!this.showPanelAndBody,this.showPanelAndBody&&(this.isDataLoaded||this.getflexPayTileDetails())}onUserToggle(){this.togglePanelAndBody(),this.widgetsService.toggleWidgetEvent(this.widgetId)}getflexPayTileDetails(){this.flexpayService.getFlexPayTileDetails().then(n=>{this.flexPayTileDetails=n,null!=this.flexPayTileDetails.sysDate&&(this.formattedSysDate=re(this.flexPayTileDetails.sysDate).format("MMMM DD, YYYY")),this.isAutoReloadEnabled=!(!this.flexPayTileDetails||"A"!==this.flexPayTileDetails.prepayAutoPayInd),this.isDataLoaded=!0}).catch(n=>{this.isErrorOccured=!0})}moveToFlexPayReviewPage(){this.navUtil.navigate(L.$.flexpay.enrollmentWizard,!0,{goToWizardStep:Ie.H4})}
1moveToFlexPayReloadPage(n){this.navUtil.navigate(L.$.flexpay.reload,!0,{isAutoReloadEnabled:this.isAutoReloadEnabled||n})}reloadEvent(n,o){(13===n.keyCode||32===n.keyCode)&&this.moveToFlexPayReloadPage(o)}downloadCurrentBillStatement(){if(!this.flexpayCurrentBillData.currentBillPrintDate||!this.flexPayTileDetails)return this.showViewStatementError();if("Y"!==this.flexpayCurrentBillData.displayCode&&"R"!==this.flexpayCurrentBillData.displayCode)return this.showViewStatementError();let n;this.appUtil.shouldOpenInWindow()&&(n=window.open(),n.document.write(_e.r.SPINNER)),this.payMyBillService.getCurrentBill(this.flexpayCurrentBillData.currentBillPrintDate,this.flexpayCurrentBillData.displayCode).then(o=>{this.appUtil.viewStatement(o,{transactionDate:this.flexpayCurrentBillData.currentBillPrintDate},n)}).catch(o=>(n&&n.close(),this.showViewStatementError()))}showViewStatementError(){const n=new Array,o=new ae.v;o.content=String(this.translate.instant("GENERAL.BILL_ERROR")),n.push(o),this.modalCtrl.create({component:se.g,componentProps:{errorMessages:n,updateUrl:!1}}).then(l=>l.present())}}return(t=a).\u0275fac=function(n){return new(n||t)(e.Y36(f.K),e.Y36(A.$0),e.Y36(Ee.v),e.Y36(gt.$),e.Y36(Y.L),e.Y36(M.H),e.Y36(T._),e.Y36(_.sK),e.Y36(c.IN))},t.\u0275cmp=e.Xpm({type:t,selectors:[["nve-flexpay-tile"]],inputs:{index:"index"},decls:3,vars:2,consts:[[1,"widget-component"],["class","panel panel-default",4,"ngIf"],[1,"panel","panel-default"],[1,"panel-heading"],["tabindex","0","aria-label","FLEXPAY","title","FLEXPAY","aria-label","Flexpay"],[1,"accent-color-red",3,"click"],[4,"ngIf"],[1,"panel-text"],["id","flexpayStatementDownloadLink","role","button","aria-label","Download Current Statement","tappable","","csrDisable","",1,"float-right",3,"title"],["tappable","",1,"statement","view-statement-font",3,"click"],["tabindex","0","aria-label","Enrollment Pending",4,"ngIf"],["tabindex","0","aria-label","Enrollment Incomplete",4,"ngIf"],["tabindex","0",4,"ngIf"],["tabindex","0","aria-label","Enrollment Pending"],["tabindex","0","aria-label","Enrollment Incomplete"],["tabindex","0"],[1,"panel-body"],[1,"panel-footer"],[1,"clearfix"],["tabindex","0","class","col-xs-4",4,"ngIf"],["tabindex","0","class","col-xs-8",4,"ngIf"],["class","col-xs-12",4,"ngIf"],["tabindex","0","aria-label","FlexPay Enrollment Pending | It may take upto 24 hours for your account to reflect the changes.",1,"col-xs-12"],["tabindex","0",1,"col-xs-12",3,"innerHTML"],[1,"clearfix","line-spacing"],["tabindex","0","aria-label","FlexPay Balance",1,"col-xs-5"],["tabindex","0",1,"col-xs-7","large-text","text-right"],["tabindex","0","aria-label","Approximate Days Remaining",1,"col-xs-8"],["tabindex","0",1,"col-xs-4","large-text","text-right"],["class","clearfix line-spacing",4,"ngIf"],["tabindex","0","aria-label","Outstanding Balance",1,"col-xs-6"],["tabindex","0",1,"col-xs-6","large-text","text-right"],["tabindex","0",1,"col-xs-4"],[1,"nv-btn","nv-btn-blue",3,"moveToPage","setPageToRoot","keypress"],["tabindex","0",1,"col-xs-8"],["style","float: right","type","ToolTipModalComponent","path","/tooltips/flexpay-nocheck.html",3,"isToolTip",4,"ngIf"],[1,"col-xs-9","nv-btn","nv-btn-transparent-text-blue","nve-btn-text","nv-txt","text-align-right",3,"disabled","moveToPage","moveToPageParam","setPageToRoot","keypress"],["type","ToolTipModalComponent","path","/tooltips/flexpay-nocheck.html",2,"float","right",3,"isToolTip"],[1,"nv-btn","nv-btn-transparent-text-blue","nve-btn-text","nv-txt",3,"moveToPage","moveToPageParam","setPageToRoot","keypress"],[1,"col-xs-12"],["aria-label","COMPLETE ENROLLMENT","csrDisable","",1,"nv-btn","nv-btn-blue",3,"moveToPage","setPageToRoot","moveToPageParam","keypress"],["title","FLEXPAY",3,"click"],["class","panel-body text-center",4,"ngIf"],[1,"panel-body","text-center"]],template:function(n,o){1&n&&(e.TgZ(0,"div",0),e.YNc(1,Zt,18,15,"div",1),e.YNc(2,Ut,9,6,"div",1),e.qZA()),2&n&&(e.xp6(1),e.Q6J("ngIf",null!=o.flexPayTileDetails),e.xp6(1),e.Q6J("ngIf",null==o.flexPayTileDetails))},dependencies:[F.$,ce.I,s.O5,H.a,$.$,_.X$,s.H9,s.uU],styles:[".widget-component[_ng
1content-%COMP%] .line-spacing[_ngcontent-%COMP%]{line-height:40px;margin-bottom:10px;vertical-align:baseline}.widget-component[_ngcontent-%COMP%] .nve-btn-text[_ngcontent-%COMP%]{float:right;padding:.8em 0}.widget-component[_ngcontent-%COMP%] .nv-btn-transparent-text-blue[_ngcontent-%COMP%]{background-color:transparent!important}.widget-component[_ngcontent-%COMP%] .nv-btn-transparent-text-blue.nv-txt[_ngcontent-%COMP%]{color:#0075a7!important;text-transform:capitalize;font-weight:600!important;font-size:16px!important}.widget-component[_ngcontent-%COMP%] .nv-btn-transparent-text-blue[_ngcontent-%COMP%]:hover{background:transparent;background-color:transparent;opacity:.7;text-decoration:underline}.widget-component[_ngcontent-%COMP%] .nv-btn-transparent-text-blue[disabled][_ngcontent-%COMP%]{color:#808285!important}.widget-component[_ngcontent-%COMP%] .view-statement-font[_ngcontent-%COMP%]{font-weight:600;font-size:16px}"]}),a})();var ye=d(43877);function Yt(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"-"),e.qZA())}function qt(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"+"),e.qZA())}
1function Ft(t,a){if(1&t&&(e.TgZ(0,"div")(1,"div",8)(2,"div",9)(3,"div",10)(4,"div",11)(5,"div",12),e._uU(6),e.ALo(7,"translate"),e._UZ(8,"br"),e._uU(9),e.ALo(10,"translate"),e.qZA(),e.TgZ(11,"div",13),e._uU(12),e.ALo(13,"date"),e.qZA(),e.TgZ(14,"div",14),e._uU(15),e.ALo(16,"translate"),e.qZA(),e.TgZ(17,"div",13),e._uU(18),e.ALo(19,"date"),e.qZA()(),e.TgZ(20,"div",15)(21,"div",16),e._uU(22),e.ALo(23,"date"),e.qZA(),e.TgZ(24,"div",17),e._uU(25),e.ALo(26,"translate"),e.TgZ(27,"span",18),e._uU(28),e.qZA(),e._uU(29),e.qZA(),e.TgZ(30,"div"),e._UZ(31,"img",19),e.qZA(),e.TgZ(32,"div",20),e._uU(33),e.ALo(34,"translate"),e.ALo(35,"translate"),e.qZA()(),e.TgZ(36,"div",15)(37,"div",16),e._uU(38),e.ALo(39,"date"),e.qZA(),e.TgZ(40,"div",17),e._uU(41),e.ALo(42,"translate"),e.TgZ(43,"span",18),e._uU(44),e.qZA(),e._uU(45),e.qZA(),e.TgZ(46,"div"),e._UZ(47,"img",19),e.qZA(),e.TgZ(48,"div",20),e._uU(49),e.ALo(50,"translate"),e.ALo(51,"translate"),e.qZA()(),e.TgZ(52,"div",15)(53,"div",16),e._uU(54),e.ALo(55,"date"),e.qZA(),e.TgZ(56,"div",17),e._uU(57),e.ALo(58,"translate"),e.TgZ(59,"span",18),e._uU(60),e.qZA(),e._uU(61),e.qZA(),e.TgZ(62,"div"),e._UZ(63,"img",19),e.qZA(),e.TgZ(64,"div",20),e._uU(65),e.ALo(66,"translate"),e.ALo(67,"translate"),e.qZA()()(),e.TgZ(68,"div",10)(69,"div",15)(70,"div",16),e._uU(71),e.ALo(72,"date"),e.qZA(),e.TgZ(73,"div",17),e._uU(74),e.ALo(75,"translate"),e.TgZ(76,"span",18),e._uU(77),e.qZA(),e._uU(78),e.qZA(),e.TgZ(79,"div"),e._UZ(80,"img",19),e.qZA(),e.TgZ(81,"div",20),e._uU(82),e.ALo(83,"translate"),e.ALo(84,"translate"),e.qZA()(),e.TgZ(85,"div",15)(86,"div",16),e._uU(87),e.ALo(88,"date"),e.qZA(),e.TgZ(89,"div",17),e._uU(90),e.ALo(91,"translate"),e.TgZ(92,"span",18),e._uU(93),e.qZA(),e._uU(94),e.qZA(),e.TgZ(95,"div"),e._UZ(96,"img",19),e.qZA(),e.TgZ(97,"div",20),e._uU(98),e.ALo(99,"translate"),e.ALo(100,"translate"),e.qZA()(),e.TgZ(101,"div",15)(102,"div",16),e._uU(103),e.ALo(104,"date"),e.qZA(),e.TgZ(105,"div",17),e._uU(106),e.ALo(107,"translate"),e.TgZ(108,"span",18),e._uU(109),e.qZA(),e._uU(110),e.qZA(),e.TgZ(111,"div"),e._UZ(112,"img",19),e.qZA(),e.TgZ(113,"div",20),e._uU(114),e.ALo(115,"translate"),e.ALo(116,"translate"),e.qZA()(),e.TgZ(117,"div",15)(118,"div",16),e._uU(119),e.ALo(120,"date"),e.qZA(),e.TgZ(121,"div",17),e._uU(122),e.ALo(123,"translate"),e.TgZ(124,"span",18),e._uU(125),e.qZA(),e._uU(126),e.qZA(),e.TgZ(127,"div"),e._UZ(128,"img",19),e.qZA(),e.TgZ(129,"div",20),e._uU(130),e.ALo(131,"translate"),e.ALo(132,"translate"),e.qZA()()()()()()),2&t){const i=e.oxw(2);e.xp6(6),e.hij(" ",e.lcZ(7,68,"TILES.NEXTBESTACTION.BILLFORECAST.NEXT"),""),e.xp6(3),e.hij("",e.lcZ(10,70,"TILES.NEXTBESTACTION.BILLFORECAST.WEEK")," "),e.xp6(3),e.hij(" ",e.xi3(13,72,i.billForecastTileDetails.forecastedDate1,"M/dd")," "),e.xp6(3),e.hij(" ",e.lcZ(16,75,"TILES.NEXTBESTACTION.BILLFORECAST.THRU")," "),e.xp6(3),e.hij(" ",e.xi3(19,77,i.billForecastTileDetails.forecastedDate7,"M/dd")," "),e.xp6(4),e.hij(" ",e.xi3(23,80,i.billForecastTileDetails.forecastedDate1,"EEE dd")," "),e.xp6(3),e.hij(" ",e.lcZ(26,83,"TILES.NEXTBESTACTION.BILLFORECAST.DOLLARSIGN"),""),e.xp6(3),e.Oqu(i.billForecastTileDetails.day1BillAmountInDollar),e.xp6(1),e.hij("",i.billForecastTileDetails.day1BillAmountInCent," "),e.xp6(2),e.s9C("src",i.billForecastTileDetails.day1Weather,e.LSH),e.xp6(2),e.HOy(" ",e.lcZ(34,85,"TILES.NEXTBESTACTION.BILLFORECAST.HIGH")," ",i.billForecastTileDetails.day1HighTemp," / ",e.lcZ(35,87,"TILES.NEXTBESTACTION.BILLFORECAST.LOW")," ",i.billForecastTileDetails.day1LowTemp," "),e.xp6(5),e.hij(" ",e.xi3(39,89,i.billForecastTileDetails.forecastedDate2,"EEE dd")," "),e.xp6(3),e.hij(" ",e.lcZ(42,92,"TILES.NEXTBESTACTION.BILLFORECAST.DOLLARSIGN"),""),e.xp6(3),e.Oqu(i.billForecastTileDetails.day2BillAmountInDollar),e.xp6(1),e.hij("",i.billForecastTileDetails.day2BillAmountInCent," "),e.xp6(2),e.s9C("src",i.billForecastTileDetails.day2Weather,e.LSH),e.xp6(2),e.HOy(" ",e.lcZ(50,94,"TILES.NEXTBESTACTION.BILLFORECAST.HIGH")," ",i.billForecastTileDetails.day2HighTemp," / ",e.lcZ(51,96,"TILES.NEXTBESTACTION.BILLFORECAST.LOW")," ",i.billForecastTileDetails.day2LowTemp," "),e.xp6(5),e.hij(" ",e.xi3(55,98,i.billForecastTileDetails.forecastedDate3,"EEE dd")," "),e.xp6(3),e.hij(" ",e.lcZ(58,101,"TILES.NEXTBESTACTION.BILLFORECAST.DOLLARSIGN"),""),e.xp6(3),e.Oqu(i.billForecastTileDetails.day3BillAmountInDollar),e.xp6(1),e.hij("",i.billForecastTileDetails.day3BillAmountInCent," "),e.xp6(2),e.s9C("src",i.billForecastTileDetails.day3Weather,e.LSH),e.xp6(2),e.HOy(" ",e.lcZ(66,103,"TILES.NEXTBESTACTION.BILLFORECAST.HIGH")," ",i.billForecastTileDetails.day3HighTemp," / ",e.lcZ(67,105,"TILES.NEXTBESTACTION.BILLFORECAST.LOW")," ",i.billForecastTileDetails.day3LowTemp," "),e.xp6(6),e.hij(" ",e.xi3(72,107,i.billForecastTileDetails.forecastedDate4,"EEE dd")," "),e.xp6(3),e.hij(" ",e.lcZ(75,110,"TILES.NEXTBESTACTION.BILLFORECAST.DOLLARSIGN"),""),e.xp6(3),e.Oqu(i.billForecastTileDetails.day4BillAmountInDollar),e.xp6(1),e.hij("",i.billForecastTileDetails.day4BillAmountInCent," "),e.xp6(2),e.s9C("src",i.billForecastTileDetails.day4Weather,e.LSH),e.xp6(2),e.HOy(" ",e.lcZ(83,112,"TILES.NEXTBESTACTION.BILLFORECAST.HIGH")," ",i.billForecastTileDetails.day4HighTemp," / ",e.lcZ(84,114,"TILES.NEXTBESTACTION.BILLFORECAST.LOW")," ",i.billForecastTileDetails.day4LowTemp," "),e.xp6(5),e.hij(" ",e.xi3(88,116,i.billForecastTileDetails.forecastedDate5,"EEE dd")," "),e.xp6(3),e.hij(" ",e.lcZ(91,119,"TILES.NEXTBESTACTION.BILLFORECAST.DOLLARSIGN"),""),e.xp6(3),e.Oqu(i.billForecastTileDetails.day5BillAmountInDollar),e.xp6(1),e.hij("",i.billForecastTileDetails.day5BillAmountInCent," "),e.xp6(2),e.s9C("src",i.billForecastTileDetails.day5Weather,e.LSH),e.xp6(2),e.HOy(" ",e.lcZ(99,121,"TILES.NEXTBESTACTION.BILLFORECAST.HIGH")," ",i.billForecastTileDetails.day5HighTemp," / ",e.lcZ(100,123,"TILES.NEXTBESTACTION.BILLFORECAST.LOW")," ",i.billForecastTileDetails.day5LowTemp," "),e.xp6(5),e.hij(" ",e.xi3(104,125,i.billForecastTileDetails.forecastedDate6,"EEE dd")," "),e.xp6(3),e.hij(" ",e.lcZ(107,128,"TILES.NEXTBESTACTION.BILLFORECAST.DOLLARSIGN"),""),e.xp6(3),e.Oqu(i.billForecastTileDetails.day6BillAmountInDollar),e.xp6(1),e.hij("",i.billForecastTileDetails.day6BillAmountInCent," "),e.xp6(2),e.s9C("src",i.billForecastTileDetails.day6Weather,e.LSH),e.xp6(2),e.HOy(" ",e.lcZ(115,130,"TILES.NEXTBESTACTION.BILLFORECAST.HIGH")," ",i.billForecastTileDetails.day6HighTemp," / ",e.lcZ(116,132,"TILES.NEXTBESTACTION.BILLFORECAST.LOW")," ",i.billForecastTileDetails.day6LowTemp," "),e.xp6(5),e.hij(" ",e.xi3(120,134,i.billForecastTileDetails.forecastedDate7,"EEE dd")," "),e.xp6(3),e.hij(" ",e.lcZ(123,137,"TILES.NEXTBESTACTION.BILLFORECAST.DOLLARSIGN"),""),e.xp6(3),e.Oqu(i.billForecastTileDetails.day7BillAmountInDollar),e.xp6(1),e.hij("",i.billForecastTileDetails.day7BillAmountInCent," "),e.xp6(2),e.s9C("src",i.billForecastTileDetails.day7Weather,e.LSH),e.xp6(2),e.HOy(" ",e.lcZ(131,139,"TILES.NEXTBESTACTION.BILLFORECAST.HIGH")," ",i.billForecastTileDetails.day7HighTemp," / ",e.lcZ(132,141,"TILES.NEXTBESTACTION.BILLFORECAST.LOW")," ",i.billForecastTileDetails.day7LowTemp," ")}}function kt(t,a){if(1&t){const i=e.EpF();e.TgZ(0,"div",2)(1,"div",3)(2,"h2",4),e.NdJ("click",function(){e.CHM(i);const o=e.oxw();return e.KtG(o.onUserToggle())}),e.YNc(3,Yt,2,0,"span",5),e.YNc(4,qt,2,0,"span",5),e.TgZ(5,"span",6),e._uU(6),e.ALo(7,"translate"),e.qZA()(),e.TgZ(8,"span",7),e._uU(9),e.ALo(10,"translate"),e.qZA()(),e.YNc(11,Ft,133,143,"div",5),e.qZA()}if(2&t){const i=e.oxw();e.xp6(3),e.Q6J("ngIf",i.showPanelAndBody),e.xp6(1),e.Q6J("ngIf",!i.showPanelAndBody),e.xp6(2),e.hij(" ",e.lcZ(7,5,"TILES.NEXTBESTACTION.BILLFORECAST.HEADING")," "),e.xp6(3),e.hij(" ",e.lcZ(10,7,"TILES.NEXTBESTACTION.BILLFORECAST.SUBTITLE"),""),e.xp6(2),e.Q6J("ngIf",i.showPanelAndBody)}}function Jt(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"-"),e.qZA())}function Gt(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"+"),e.qZA())}function Qt(t,a){1&t&&(e.TgZ(0,"div",24),e._UZ(1,"nve-spinner"),e.qZA())}function Ht(t,a){1&t&&(e.TgZ(0,"div",24)(1,"div",10)(2,"div",25),e._uU(3),e.ALo(4,"translate"),e.qZA()()()),2&t&&(e.xp6(3),e.Oqu(e.l
1cZ(4,1,"TILES.NEXTBESTACTION.BILLFORECAST.WRONG")))}function jt(t,a){1&t&&(e.TgZ(0,"div",24)(1,"div",10)(2,"div",25),e._uU(3),e.ALo(4,"translate"),e.qZA()()()),2&t&&(e.xp6(3),e.Oqu(e.lcZ(4,1,"TILES.NEXTBESTACTION.BILLFORECAST.NODATA")))}function Wt(t,a){if(1&t&&(e.TgZ(0,"div"),e.YNc(1,Qt,2,0,"div",22),e.YNc(2,Ht,5,3,"div",22),e.YNc(3,jt,5,3,"div",22),e._UZ(4,"div",23),e.qZA()),2&t){const i=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!i.isErrorOccured&&i.eligibileForBillForecast),e.xp6(1),e.Q6J("ngIf",i.isErrorOccured),e.xp6(1),e.Q6J("ngIf",!i.isErrorOccured&&!i.eligibileForBillForecast)}}function Kt(t,a){if(1&t){const i=e.EpF();e.TgZ(0,"div",2)(1,"div",3)(2,"h2",21),e.NdJ("click",function(){e.CHM(i);const o=e.oxw();return e.KtG(o.onUserToggle())}),e.YNc(3,Jt,2,0,"span",5),e.YNc(4,Gt,2,0,"span",5),e.TgZ(5,"span"),e._uU(6),e.ALo(7,"translate"),e.qZA()(),e.TgZ(8,"span",7),e._uU(9),e.ALo(10,"translate"),e.qZA()(),e.YNc(11,Wt,5,3,"div",5),e.qZA()}if(2&t){const i=e.oxw();e.xp6(3),e.Q6J("ngIf",i.showPanelAndBody),e.xp6(1),e.Q6J("ngIf",!i.showPanelAndBody),e.xp6(2),e.Oqu(e.lcZ(7,5,"TILES.NEXTBESTACTION.BILLFORECAST.HEADING")),e.xp6(3),e.hij(" ",e.lcZ(10,7,"TILES.NEXTBESTACTION.BILLFORECAST.SUBTITLE"),""),e.xp6(2),e.Q6J("ngIf",i.showPanelAndBody)}}let Xt=(()=>{var t;class a{constructor(n,o,l,r,p,u,x,E){this.translate=n,this.route=o,this.location=l,this.billForecastService=r,this.appUtil=p,this.widgetsService=u,this.navUtil=x,this.config=E,this.billForecastTileDetails=void 0,this.formattedSysDate=void 0,this.formattedEndOfDay=void 0,this.isErrorOccured=!1,this.showPanelAndBody=!1,this.widgetId=5,this.isDataLoaded=!1,this.eligibileForBillForecast=!0,this.widgetsService.closeEventEmitter.subscribe(D=>{D!==this.widgetId&&this.showPanelAndBody&&this.togglePanelAndBody()})}set index(n){this.widgetIndex=n}ngOnInit(){this.widgetIndex<this.config.config.numberOfTilesOpenByDefault&&(this.showPanelAndBody=!0,this.getBillForecastTileDetails())}getBillForecastTileDetails(){var n=this;return(0,C.Z)(function*(){try{let o=yield n.billForecastService.getBillForecast();if(n.eligibileForBillForecast=null!=o.accountBillForecastDetails&&null!=o.accountBillForecastDetails,n.eligibileForBillForecast){let l=n.buildResultForUI(o.accountBillForecastDetails);n.billForecastTileDetails=l}}catch(o){n.eligibileForBillForecast=!1,n.isErrorOccured=!0}})()}buildResultForUI(n){return n.day1BillAmountInDollar=n.day1BillAmount.split(".")[0],n.day1BillAmountInCent=n.day1BillAmount.split(".")[1],n.day2BillAmountInDollar=n.day2BillAmount.split(".")[0],n.day2BillAmountInCent=n.day2BillAmount.split(".")[1],n.day3BillAmountInDollar=n.day3BillAmount.split(".")[0],n.day3BillAmountInCent=n.day3BillAmount.split(".")[1],n.day4BillAmountInDollar=n.day4BillAmount.split(".")[0],n.day4BillAmountInCent=n.day4BillAmount.split(".")[1],n.day5BillAmountInDollar=n.day5BillAmount.split(".")[0],n.day5BillAmountInCent=n.day5BillAmount.split(".")[1],n.day6BillAmountInDollar=n.day6BillAmount.split(".")[0],n.day6BillAmountInCent=n.day6BillAmount.split(".")[1],n.day7BillAmountInDollar=n.day7BillAmount.split(".")[0],n.day7BillAmountInCent=n.day7BillAmount.split(".")[1],n.day1Weather=this.appUtil.updateUrl("/assets/images/energy-snapshot/"+n.day1Weather),n.day2Weather=this.appUtil.updateUrl("/assets/images/energy-snapshot/"+n.day2Weather),n.day3Weather=this.appUtil.updateUrl("/assets/images/energy-snapshot/"+n.day3Weather),n.day4Weather=this.appUtil.updateUrl("/assets/images/energy-snapshot/"+n.day4Weather),n.day5Weather=this.appUtil.updateUrl("/assets/images/energy-snapshot/"+n.day5Weather),n.day6Weather=this.appUtil.updateUrl("/assets/images/energy-snapshot/"+n.day6Weather),n.day7Weather=this.appUtil.updateUrl("/assets/images/energy-snapshot/"+n.day7Weather),n}togglePanelAndBody(){this.showPanelAndBody=!this.showPanelAndBody,this.showPanelAndBody&&(this.isDataLoaded||this.getBillForecastTileDetails())}onUserToggle(){this.togglePanelAndBody(),this.widgetsService.toggleWidgetEvent(this.widgetId)}}return(t=a).\u0275fac=function(n){return new(n||t)(e.Y36(_.sK),e.Y36(b.gz),e.Y36(s.Ye),e.Y36(ye.A),e.Y36(le.$),e.Y36(Y.L),e.Y36(M.H),e.Y36(T._))},t.\u0275cmp=e.Xpm({type:t,selectors:[["nve-bill-forecast-tile"]],inputs:{index:"index"},decls:3,vars:2,consts:[[1,"widget-component"],["class","panel panel-default",4,"ngIf"],[1,"panel","panel-default"],[1,"panel-heading"],["aria-label","BillForecast","tabindex","0","aria-label","BILLFORECAST","title","BILLFORECAST",1,"accent-color-red",3,"click"],[4,"ngIf"],[1,"panel-text"],["tabindex","0","aria-label","A forecast of your energy usage for the next seven days."],[1,"panel-body","panel-body-no-footer","my-bill"],[1,"bill-forecast","no-scroll"],[1,"clearfix"],[1,"col-xs-3","bf-nxtwk-container"],[1,"next-week",2,"letter-spacing","-1px","color","#cccccc","padding-bottom","10px"],[1,"date-span"],[2,"font-size","9px","color","#cccccc"],[1,"col-xs-3","bf-container"],[1,"day-temp"],[1,"amount"],[1,"amount-dollar"],[3,"src"],[1,"day-temp","temp"],["title","BILLFORECAST",3,"click"],["class","panel-body text-center",4,"ngIf"],[1,"panel-footer"],[1,"panel-body","text-center"],[1,"col-xs-12"]],template:function(n,o){1&n&&(e.TgZ(0,"div",0),e.YNc(1,kt,12,9,"div",1),e.YNc(2,Kt,12,9,"div",1),e.qZA()),2&n&&(e.xp6(1),e.Q6J("ngIf",null!=o.billForecastTileDetails),e.xp6(1),e.Q6J("ngIf",null==o.billForecastTileDetails))}
1,dependencies:[F.$,s.O5,_.X$,s.uU],styles:[".nve[_ngcontent-%COMP%] .radio-md[_ngcontent-%COMP%] .radio-checked[_ngcontent-%COMP%]{border-color:#d2c9c7}.nve[_ngcontent-%COMP%] .radio-md[_ngcontent-%COMP%] .radio-inner[_ngcontent-%COMP%]{top:3px;left:3px;width:12px;height:12px}.nve[_ngcontent-%COMP%] .radio-md[_ngcontent-%COMP%] .radio-icon[_ngcontent-%COMP%]{border-color:#d2c9c7;background:#ffffff}.nve[_ngcontent-%COMP%] .checkbox-md[_ngcontent-%COMP%] .checkbox-checked[_ngcontent-%COMP%]{border-color:#d2c9c7;background-color:#fff}.nve[_ngcontent-%COMP%] .checkbox-md[_ngcontent-%COMP%] .checkbox-icon[_ngcontent-%COMP%]{width:20px;height:20px;border-width:1px;border-style:solid;border-radius:1px;border-color:#d2c9c7;background-color:#fff}.nve[_ngcontent-%COMP%] .checkbox-md[_ngcontent-%COMP%] .checkbox-checked[_ngcontent-%COMP%] .checkbox-inner[_ngcontent-%COMP%]{top:0;left:7px;width:5px;height:14px}.nve[_ngcontent-%COMP%] .checkbox-md.checkbox-disabled[_ngcontent-%COMP%], .nve[_ngcontent-%COMP%] .item-md.item-checkbox-disabled[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{opacity:.6;pointer-events:none;background:#ccc}.nve[_ngcontent-%COMP%] .radio-md.radio-disabled[_ngcontent-%COMP%], .nve[_ngcontent-%COMP%] .item-md.item-radio-disabled[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{opacity:.6;pointer-events:none}.nve[_ngcontent-%COMP%] .radio-md.radio-disabled[_ngcontent-%COMP%] .radio-icon[_ngcontent-%COMP%], .nve[_ngcontent-%COMP%] .item-md.item-radio-disabled[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%] .radio-icon[_ngcontent-%COMP%]{background:#cccccc}.nve[_ngcontent-%COMP%] ion-radio.radio-disabled[_ngcontent-%COMP%]{opacity:.6;pointer-events:none}.nve[_ngcontent-%COMP%] ion-radio.radio-disabled[_ngcontent-%COMP%]::part(container){background:#cccccc}.nve[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-size:1em;font-weight:400;color:#000}.my-bill[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%]{text-align:center;color:#fff;font-weight:400;padding-right:15px;padding-left:15px}.my-bill[_ngcontent-%COMP%] .bill-forecast.no-scroll[_ngcontent-%COMP%]{transform:scaleY(.95);transform-origin:top}.my-bill[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] div[_ngcontent-%COMP%], .my-bill[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-family:Helvetica Neue,Helvetica,Arial,sans-serif!important}.my-bill[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] .bf-nxtwk-container[_ngcontent-%COMP%]{background-color:#1f4371}.my-bill[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] .bf-container[_ngcontent-%COMP%]:nth-child(even){background-color:#2962a9}.my-bill[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] .bf-container[_ngcontent-%COMP%]:nth-child(odd){background-color:#347bd5}.my-bill[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] .bf-nxtwk-container[_ngcontent-%COMP%]{padding:14px 0 0!important;height:134px;overflow:hidden}.my-bill[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] .bf-nxtwk-container[_ngcontent-%COMP%] .next-week[_ngcontent-%COMP%]{font-size:19px}@media (max-width: 344px){.my-bill[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] .bf-nxtwk-container[_ngcontent-%COMP%] .next-week[_ngcontent-%COMP%]{font-size:16px!important}}.my-bill[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] .bf-container[_ngcontent-%COMP%]{padding:5px 0 0!important;height:134px;overflow:hidden}.my-bill[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] .date-span[_ngcontent-%COMP%]{font-size:20px;letter-spacing:-1px}.my-bill[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] .day-temp[_ngcontent-%COMP%]{font-size:8px;font-weight:700;color:#ccc;letter-spacing:1px}.my-bill[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] .temp[_ngcontent-%COMP%]{letter-spacing:0}.my-bill[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] .amount[_ngcontent-%COMP%]{font-size:14px;letter-spacing:-1px;vertical-align:top;padding-bottom:14px}.my-bill[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] .amount-dollar[_ngcontent-%COMP%]{font-size:33px;vertical-align:-14px}"]}),a})();var ve=d(68664),$t=d(64355);function zt(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"-"),e.qZA())}function Vt(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"+"),e.qZA())}function en(t,a){if(1&t&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"currency"),e.qZA()),2&t){const i=e.oxw().$implicit;e.xp6(1),e.Oqu(e.gM2(2,1,i.amount,"USD","symbol","1.2-2"))}}function tn(t,a){if(1&t&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"flexpaycredit"),e.qZA()),2&t){const i=e.oxw().$implicit;
1e.xp6(1),e.Oqu(e.lcZ(2,1,i.amount))}}function nn(t,a){if(1&t&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"flexpaycredit"),e.qZA()),2&t){const i=e.oxw().$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,i.amount))}}function on(t,a){if(1&t&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"flexpaycredit"),e.qZA()),2&t){const i=e.oxw().$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,i.amount))}}function an(t,a){if(1&t&&(e.TgZ(0,"div")(1,"div",16)(2,"div",17)(3,"span",18),e._uU(4),e.qZA()(),e.TgZ(5,"div",19),e.YNc(6,en,3,6,"span",6),e.YNc(7,tn,3,3,"span",6),e.YNc(8,nn,3,3,"span",6),e.YNc(9,on,3,3,"span",6),e.qZA()()()),2&t){const i=a.$implicit;e.xp6(3),e.ekj("important-notification",i.isImportant),e.xp6(1),e.Oqu(i.description),e.xp6(2),e.Q6J("ngIf","Bill"===i.transType||"Payment"===i.transType),e.xp6(1),e.Q6J("ngIf","FlexpayActivityItem"===i.transType&&"Usage"===i.subTransType),e.xp6(1),e.Q6J("ngIf","FlexpayActivityItem"===i.transType&&"Misc Charge"===i.subTransType),e.xp6(1),e.Q6J("ngIf","FlexpayActivityItem"===i.transType&&"Payment"===i.subTransType)}}function ln(t,a){if(1&t&&(e.TgZ(0,"div"),e.YNc(1,an,10,7,"div",15),e.qZA()),2&t){const i=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",i.accountFeedTileDetails.accountFeedTileLineItems)}}function sn(t,a){1&t&&(e.TgZ(0,"div",11)(1,"div",12)(2,"p"),e._uU(3),e.ALo(4,"translate"),e.qZA()()()),2&t&&(e.xp6(3),e.Oqu(e.lcZ(4,1,"COMPONENTS.TILES.BILLINGTILE.HEADING2")))}const cn=function(){return{navigateTo:"paymentandbilling"}};function rn(t,a){if(1&t&&(e.TgZ(0,"div")(1,"div",8),e.YNc(2,ln,2,1,"div",6),e.YNc(3,sn,5,3,"div",9),e.qZA(),e.TgZ(4,"div",10)(5,"div",11)(6,"div",12)(7,"div",13)(8,"button",14),e._uU(9),e.ALo(10,"translate"),e.qZA()()()()()()),2&t){const i=e.oxw(2);e.xp6(2),e.Q6J("ngIf",i.accountFeedTileDetails.accountFeedTileLineItems.length>0),e.xp6(1),e.Q6J("ngIf",0==i.accountFeedTileDetails.accountFeedTileLineItems.length),e.xp6(5),e.Q6J("moveToPage","my-account/account-feed")("setPageToRoot",!1)("moveToPageParam",e.DdM(8,cn)),e.xp6(1),e.hij(" ",e.lcZ(10,6,"COMPONENTS.TILES.BILLINGTILE.VIEWHISTORY")," ")}}function dn(t,a){if(1&t){const i=e.EpF();e.TgZ(0,"div",3)(1,"div",4)(2,"h2",5),e.NdJ("click",function(){e.CHM(i);const o=e.oxw();return e.KtG(o.onUserToggle())}),e.YNc(3,zt,2,0,"span",6),e.YNc(4,Vt,2,0,"span",6),e.TgZ(5,"span",7),e._uU(6),e.ALo(7,"translate"),e.qZA()(),e.TgZ(8,"span"),e._uU(9),e.ALo(10,"translate"),e.qZA()(),e.YNc(11,rn,11,9,"div",6),e.qZA()}if(2&t){const i=e.oxw();e.xp6(3),e.Q6J("ngIf",i.showPanelAndBody),e.xp6(1),e.Q6J("ngIf",!i.showPanelAndBody),e.xp6(2),e.Oqu(e.lcZ(7,5,"COMPONENTS.TILES.BILLINGTILE.HEADING")),e.xp6(3),e.Oqu(e.lcZ(10,7,"COMPONENTS.TILES.BILLINGTILE.HEADING1")),e.xp6(2),e.Q6J("ngIf",i.showPanelAndBody)}}function pn(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"-"),e.qZA())}function gn(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"+"),e.qZA())}function _n(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"COMPONENTS.TILES.BILLINGTILE.HEADING1")))}function un(t,a){1&t&&(e.TgZ(0,"div",23),e._UZ(1,"nve-spinner"),e.qZA())}function mn(t,a){1&t&&(e.TgZ(0,"div",23)(1,"div",11)(2,"div",12),e._uU(3),e.ALo(4,"translate"),e.qZA()()()),2&t&&(e.xp6(3),e.Oqu(e.lcZ(4,1,"COMPONENTS.TILES.BILLINGTILE.WRONG")))}function Tn(t,a){if(1&t&&(e.TgZ(0,"div"),e.YNc(1,un,2,0,"div",22),e.YNc(2,mn,5,3,"div",22),e._UZ(3,"div",10),e.qZA()),2&t){const i=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!i.isErrorOccured),e.xp6(1),e.Q6J("ngIf",i.isErrorOccured)}}function fn(t,a){if(1&t){const i=e.EpF();e.TgZ(0,"div",20)(1,"div",4)(2,"h2",21),e.NdJ("click",function(){e.CHM(i);const o=e.oxw();return e.KtG(o.onUserToggle())}),e.ALo(3,"translate"),e.YNc(4,pn,2,0,"span",6),e.YNc(5,gn,2,0,"span",6),e.TgZ(6,"span",7),e._uU(7),e.ALo(8,"translate"),e.qZA()(),e.YNc(9,_n,3,3,"span",6),e.qZA(),e.YNc(10,Tn,4,2,"div",6),e.qZA()}if(2&t){const i=e.oxw();e.xp6(2),e.s9C("title",e.lcZ(3,6,"COMPONENTS.TILES.BILLINGTILE.BILLINGANDPAYMENT")),e.xp6(2),e.Q6J("ngIf",i.showPanelAndBody),e.xp6(1),e.Q6J("ngIf",!i.showPanelAndBody),e.xp6(2),e.Oqu(e.lcZ(8,8,"COMPONENTS.TILES.BILLINGTILE.BILLINGANDPAYMENT")),e.xp6(2),e.Q6J("ngIf",!i.showPanelAndBody||!i.isDataLoaded),e.xp6(1),e.Q6J("ngIf",i.showPanelAndBody)}}let vn=(()=>{var t;class a{constructor(n,o,l,r,p,u,x,E,D,R,q){this.accountListService=n,this.userService=o,this.accountFeedService=l,this.appUtility=r,this.globalServiceErrorHandler=p,this.widgetsService=u,this.navUtil=x,this.platform=E,this.translateService=D,this.modalCtrl=R,this.config=q,this.accountFeedTileDetails=void 0,this.isErrorOccured=!1,this.widgetId=1,this.showPanelAndBody=!1,this.urgentNotificationCount=0,this.isDataLoaded=!1,this.nbaAccountNumber=void 0,this.widgetsService.closeEventEmitter.subscribe(G=>{G!==this.widgetId&&this.showPanelAndBody&&this.togglePanelAndBody()}),this.initSubscription()}set index(n){this.widgetIndex=n}ngOnInit(){this.widgetIndex<this.config.config.numberOfTilesOpenByDefault&&(this.showPanelAndBody=!0,this.countImportantNotifications(),this.initializeBillingTile())}ngOnDestroy(){console.log("Billing tile ngOnDestroy"),this.accountReadySubscription.unsubscribe(),this.notificationSubscription.unsubscribe()}initSubscription(){this.accountReadySubscription=this.accountListService.accountReadyEmitter.subscribe(n=>{console.log("Billing tile Account ready subscription"),this.countImportantNotifications()}
1),this.notificationSubscription=this.accountFeedService.notificationUpdateEmitter.subscribe(n=>{console.log("Billing tile notification update email subscription"),this.countImportantNotifications()})}togglePanelAndBody(){this.showPanelAndBody=!this.showPanelAndBody,this.showPanelAndBody&&(this.widgetIndex<this.config.config.numberOfTilesOpenByDefault&&(this.showPanelAndBody=!0),this.isDataLoaded||(this.countImportantNotifications(),this.initializeBillingTile()))}initializeBillingTile(){this.nbaAccountNumber=this.userService.user.getCurrentAccount().accountNumber,this.getAccountFeedTileDetails()}onUserToggle(){this.togglePanelAndBody(),this.widgetsService.toggleWidgetEvent(this.widgetId)}countImportantNotifications(){this.accountFeedService.retrieveNotificationHistory().then(n=>{let o=0;n.forEach(l=>{!1===l.isRead&&!0===l.isImportant&&o++}),this.urgentNotificationCount=o}).catch(n=>{this.globalServiceErrorHandler.showToast()})}getAccountFeedTileDetails(){this.accountFeedService.getAccountFeedTileDetails("billing").then(n=>{this.accountFeedTileDetails=n,this.isDataLoaded=!0}).catch(n=>{this.isErrorOccured=!0})}moveToAccountFeed(){this.navUtil.navigate(L.$.accountFeed,!0)}viewMessageCenter(n){}}return(t=a).\u0275fac=function(n){return new(n||t)(e.Y36(h.x),e.Y36(f.K),e.Y36(ve.A),e.Y36(A.$0),e.Y36(W.o),e.Y36(Y.L),e.Y36(M.H),e.Y36(c.t4),e.Y36(_.sK),e.Y36(c.IN),e.Y36(T._))},t.\u0275cmp=e.Xpm({type:t,selectors:[["nve-billing-tile"]],inputs:{index:"index"},decls:3,vars:2,consts:[[1,"widget-component","account-feed-tile"],["class","panel panel-default","tabindex","0",4,"ngIf"],["class","panel panel-default",4,"ngIf"],["tabindex","0",1,"panel","panel-default"],[1,"panel-heading"],["title","BILLING AND PAYMENT HISTORY",1,"accent-color-red",3,"click"],[4,"ngIf"],[1,"panel-text"],[1,"panel-body"],["class","clearfix",4,"ngIf"],[1,"panel-footer"],[1,"clearfix"],[1,"col-xs-12"],[1,"col-xs-7","no-side-padding"],[1,"nv-btn","nv-btn-blue",3,"moveToPage","setPageToRoot","moveToPageParam"],[4,"ngFor","ngForOf"],[1,"clearfix","margin-bottom-10"],[1,"col-xs-8"],[2,"font-size","0.88em"],[1,"col-xs-4","text-right"],[1,"panel","panel-default"],[3,"title","click"],["class","panel-body text-center",4,"ngIf"],[1,"panel-body","text-center"]],template:function(n,o){1&n&&(e.TgZ(0,"div",0),e.YNc(1,dn,12,9,"div",1),e.YNc(2,fn,11,10,"div",2),e.qZA()),2&n&&(e.xp6(1),e.Q6J("ngIf",null!=o.accountFeedTileDetails),e.xp6(1),e.Q6J("ngIf",null==o.accountFeedTileDetails))},dependencies:[F.$,s.sg,s.O5,H.a,_.X$,s.H9,$t.W],styles:['.nve[_ngcontent-%COMP%] .radio-md[_ngcontent-%COMP%] .radio-checked[_ngcontent-%COMP%]{border-color:#d2c9c7}.nve[_ngcontent-%COMP%] .radio-md[_ngcontent-%COMP%] .radio-inner[_ngcontent-%COMP%]{top:3px;left:3px;width:12px;height:12px}.nve[_ngcontent-%COMP%] .radio-md[_ngcontent-%COMP%] .radio-icon[_ngcontent-%COMP%]{border-color:#d2c9c7;background:#ffffff}.nve[_ngcontent-%COMP%] .checkbox-md[_ngcontent-%COMP%] .checkbox-checked[_ngcontent-%COMP%]{border-color:#d2c9c7;background-color:#fff}.nve[_ngcontent-%COMP%] .checkbox-md[_ngcontent-%COMP%] .checkbox-icon[_ngcontent-%COMP%]{width:20px;height:20px;border-width:1px;border-style:solid;border-radius:1px;border-color:#d2c9c7;background-color:#fff}.nve[_ngcontent-%COMP%] .checkbox-md[_ngcontent-%COMP%] .checkbox-checked[_ngcontent-%COMP%] .checkbox-inner[_ngcontent-%COMP%]{top:0;left:7px;width:5px;height:14px}.nve[_ngcontent-%COMP%] .checkbox-md.checkbox-disabled[_ngcontent-%COMP%], .nve[_ngcontent-%COMP%] .item-md.item-checkbox-disabled[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{opacity:.6;pointer-events:none;background:#ccc}.nve[_ngcontent-%COMP%] .radio-md.radio-disabled[_ngcontent-%COMP%], .nve[_ngcontent-%COMP%] .item-md.item-radio-disabled[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{opacity:.6;pointer-events:none}.nve[_ngcontent-%COMP%] .radio-md.radio-disabled[_ngcontent-%COMP%] .radio-icon[_ngcontent-%COMP%], .nve[_ngcontent-%COMP%] .item-md.item-radio-disabled[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%] .radio-icon[_ngcontent-%COMP%]{background:#cccccc}.nve[_ngcontent-%COMP%] ion-radio.radio-disabled[_ngcontent-%COMP%]{opacity:.6;pointer-events:none}.nve[_ngcontent-%COMP%] ion-radio.radio-disabled[_ngcontent-%COMP%]::part(container){background:#cccccc}.nve[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-size:1em;font-weight:400;color:#000}.account-feed-tile[_ngcontent-%COMP%] .important-notification[_ngcontent-%COMP%]{font-weight:700;padding-left:30px;position:relative}.account-feed-tile[_ngcontent-%COMP%] .important-notification[_ngcontent-%COMP%]:before{content:"\\e903";font-family:nve-iconset;font-size:24px;font-weight:400;position:absolute;top:0;left:0;color:#de5243}@media (max-width: 767px){.account-feed-tile[_ngcontent-%COMP%] .panel-footer[_ngcontent-%COMP%]{padding-top:0!important}}']}),a})();function hn(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"-"),e.qZA())}function xn(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"+"),e.qZA())}function Cn(t,a){if(1&t&&(e.TgZ(0,"a",9)(1,"p",10),e._uU(2),e.ALo(3,"translate"),e.qZA()()),2&t){const i=e.oxw(2);e.Q6J("moveToPage","my-account/account-feed")("setPageToRoot",!0),e.xp6(2),e.AsE(" ",i.urgentNotificationCount," ",e.lcZ(3,4,"TILES.NOTIFICATIONTILE.IMPORTANT")," ")}}function An(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.Oqu(e.l
1cZ(2,1,"TILES.NOTIFICATIONTILE.IMPORTANTNOTIFY")))}const On=function(){return{redirectToPayMyBillChoices:!0}};function Pn(t,a){1&t&&(e.TgZ(0,"a",24),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.Q6J("moveToPage","my-account/pay-my-bill")("moveToPageParam",e.DdM(6,On))("setPageToRoot",!0),e.xp6(1),e.Oqu(e.lcZ(2,4,"TILES.NOTIFICATIONTILE.PAY")))}function En(t,a){if(1&t){const i=e.EpF();e.TgZ(0,"a",25),e.NdJ("click",function(){e.CHM(i);const o=e.oxw().$implicit,l=e.oxw(4);return e.KtG(l.getNotificationDetail(o.notificationId))}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&t&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"TILES.NOTIFICATIONTILE.VIEW")))}function bn(t,a){if(1&t&&(e.TgZ(0,"div")(1,"div",19)(2,"div",20)(3,"p"),e._uU(4),e.qZA()(),e.TgZ(5,"div",21),e.YNc(6,Pn,3,7,"a",22),e.YNc(7,En,3,3,"a",23),e.qZA()()()),2&t){const i=a.$implicit;e.xp6(3),e.ekj("important-notification",i.isImportant),e.xp6(1),e.hij(" ",i.description," "),e.xp6(2),e.Q6J("ngIf",i.isABill),e.xp6(1),e.Q6J("ngIf",!i.isABill&&"Voice"!=i.contactType)}}function Mn(t,a){if(1&t&&(e.TgZ(0,"div"),e.YNc(1,bn,8,5,"div",18),e.qZA()),2&t){const i=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",i.accountFeedTileDetails.accountFeedTileLineItems)}}function In(t,a){1&t&&(e.TgZ(0,"div",14)(1,"div",26)(2,"p"),e._uU(3),e.ALo(4,"translate"),e.qZA()()()),2&t&&(e.xp6(3),e.Oqu(e.lcZ(4,1,"TILES.NOTIFICATIONTILE.DISPLAY")))}const yn=function(t){return{nbaAccountNumber:t,accordionToBeOpened:"communications"}};function Ln(t,a){if(1&t&&(e.TgZ(0,"div")(1,"div",11),e.YNc(2,Mn,2,1,"div",6),e.YNc(3,In,5,3,"div",12),e.qZA(),e.TgZ(4,"div",13)(5,"div",14)(6,"div",15)(7,"button",16),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"a",17),e._uU(11),e.ALo(12,"translate"),e.qZA()()()()()),2&t){const i=e.oxw(2);e.xp6(2),e.Q6J("ngIf",i.accountFeedTileDetails.accountFeedTileLineItems.length>0),e.xp6(1),e.Q6J("ngIf",0==i.accountFeedTileDetails.accountFeedTileLineItems.length),e.xp6(4),e.Q6J("moveToPage","my-account/account-feed")("setPageToRoot",!0),e.xp6(1),e.hij(" ",e.lcZ(9,9,"TILES.NOTIFICATIONTILE.VIEWHISTORY")," "),e.xp6(2),e.Q6J("moveToPage","my-account/profile-and-preferences")("setPageToRoot",!0)("moveToPageParam",e.VKq(13,yn,i.nbaAccountNumber)),e.xp6(1),e.Oqu(e.lcZ(12,11,"TILES.NOTIFICATIONTILE.ALERTS"))}}function Zn(t,a){if(1&t){const i=e.EpF();e.TgZ(0,"div",3)(1,"div",4)(2,"h2",5),e.NdJ("click",function(){e.CHM(i);const o=e.oxw();return e.KtG(o.onUserToggle())}),e.ALo(3,"translate"),e.YNc(4,hn,2,0,"span",6),e.YNc(5,xn,2,0,"span",6),e.TgZ(6,"span",7),e._uU(7),e.ALo(8,"translate"),e.qZA()(),e.YNc(9,Cn,4,6,"a",8),e.YNc(10,An,3,3,"span",6),e.qZA(),e.YNc(11,Ln,13,15,"div",6),e.qZA()}if(2&t){const i=e.oxw();e.xp6(2),e.s9C("title",e.lcZ(3,7,"TILES.NOTIFICATIONTILE.HEADING")),e.xp6(2),e.Q6J("ngIf",i.showPanelAndBody),e.xp6(1),e.Q6J("ngIf",!i.showPanelAndBody),e.xp6(2),e.Oqu(e.lcZ(8,9,"TILES.NOTIFICATIONTILE.HEADING")),e.xp6(2),e.Q6J("ngIf",0!=i.urgentNotificationCount),e.xp6(1),e.Q6J("ngIf",0==i.urgentNotificationCount),e.xp6(1),e.Q6J("ngIf",i.showPanelAndBody)}}function Sn(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"-"),e.qZA())}function Nn(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"+"),e.qZA())}function Dn(t,a){1&t&&(e.TgZ(0,"span",30),e.ALo(1,"translate"),e._uU(2),e.ALo(3,"translate"),e.qZA()),2&t&&(e.s9C("title",e.lcZ(1,2,"TILES.NOTIFICATIONTILE.STATICHEADING")),e.xp6(2),e.Oqu(e.lcZ(3,4,"TILES.NOTIFICATIONTILE.STATICHEADING")))}function wn(t,a){1&t&&(e.TgZ(0,"div",32),e._UZ(1,"nve-spinner"),e.qZA())}function Bn(t,a){1&t&&(e.TgZ(0,"div",32)(1,"div",14)(2,"div",26),e._uU(3),e.ALo(4,"translate"),e.qZA()()()),2&t&&(e.xp6(3),e.Oqu(e.lcZ(4,1,"TILES.NOTIFICATIONTILE.WRONG")))}function Un(t,a){if(1&t&&(e.TgZ(0,"div"),e.YNc(1,wn,2,0,"div",31),e.YNc(2,Bn,5,3,"div",31),e._UZ(3,"div",13),e.qZA()),2&t){const i=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!i.isErrorOccured),e.xp6(1),e.Q6J("ngIf",i.isErrorOccured)}}function Rn(t,a){if(1&t){const i=e.EpF();e.TgZ(0,"div",27)(1,"div",4)(2,"h2",28),e.NdJ("click",function(){e.CHM(i);const o=e.oxw();return e.KtG(o.onUserToggle())}),e.YNc(3,Sn,2,0,"span",6),e.YNc(4,Nn,2,0,"span",6),e.TgZ(5,"span",7),e._uU(6),e.ALo(7,"translate"),e.qZA()(),e.YNc(8,Dn,4,6,"span",29),e.qZA(),e.YNc(9,Un,4,2,"div",6),e.qZA()}if(2&t){const i=e.oxw();e.xp6(3),e.Q6J("ngIf",i.showPanelAndBody),e.xp6(1),e.Q6J("ngIf",!i.showPanelAndBody),e.xp6(2),e.hij(" ",e.lcZ(7,5,"TILES.NOTIFICATIONTILE.ACCOUNTNOTIFY"),""),e.xp6(2),e.Q6J("ngIf",!i.showPanelAndBody||!i.isDataLoaded),e.xp6(1),e.Q6J("ngIf",i.showPanelAndBody)}}let Yn=(()=>{var t;class a{constructor(n,o,l,r,p,u,x,E,D,R,q){this.accountListService=n,this.userService=o,this.accountFeedService=l,this.globalServiceErrorHandler=r,this.widgetsService=p,this.navUtil=u,this.platform=x,this.translateService=E,this.modalCtrl=D,this.inAppBrowser=R,this.config=q,this.accountFeedTileDetails=void 0,this.isErrorOccured=!1,this.widgetId=1,this.showPanelAndBody=!1,this.urgentNotificationCount=0,this.nbaAccountNumber=void 0,this.isDataLoaded=!1,this.widgetsService.closeEventEmitter.subscribe(G=>{G!==this.widgetId&&this.showPanelAndBody&&this.togglePanelAndBody()})}set index(n){this.widgetIndex=n}ngOnInit(){this.initSubscription(),this.widgetIndex<this.config.config.numberOfTilesOpenByDefault&&(this.showPanelAndBody=!0,this.nbaAccountNumber=this.userService.user.getCurrentAccount().accountNumber,this.countImportantNotifications(),this.getAccountFeedTileDetails())}ngOnDestroy(){console.log("Notification tile Destroyed"),this.accountReadySubscription.unsubscribe(),this.notificationSubscription.unsubscribe()}initSubscription(){this.accountReadySubscription=this.accountListService.accountReadyEmitter.subscribe(n=>{console.log("Account Ready Notification tile subscription"),this.countImportantNotifications()}
1),this.notificationSubscription=this.accountFeedService.notificationUpdateEmitter.subscribe(n=>{console.log("notification update email Notification tile subscription"),this.countImportantNotifications()})}togglePanelAndBody(){this.showPanelAndBody=!this.showPanelAndBody,this.showPanelAndBody&&(this.widgetIndex<this.config.config.numberOfTilesOpenByDefault&&(this.showPanelAndBody=!0),this.nbaAccountNumber=this.userService.user.getCurrentAccount().accountNumber,this.isDataLoaded||(this.countImportantNotifications(),this.getAccountFeedTileDetails()))}onUserToggle(){this.togglePanelAndBody(),this.widgetsService.toggleWidgetEvent(this.widgetId)}countImportantNotifications(){this.accountFeedService.retrieveNotificationHistory().then(n=>{let o=0;n.forEach(l=>{!1===l.isRead&&!0===l.isImportant&&o++}),this.urgentNotificationCount=o}).catch(n=>{console.error("Error countImportantNotifications in Notification tile",n)})}getAccountFeedTileDetails(){this.accountFeedService.getAccountFeedTileDetails("notification").then(n=>{this.accountFeedTileDetails=n,this.isDataLoaded=!0}).catch(n=>{this.isErrorOccured=!0})}moveToAccountFeed(){this.navUtil.navigate(L.$.accountFeed,!0)}viewMessageCenter(n){}getNotificationDetail(n){this.accountFeedService.getNotificationDetail(n).then(o=>{if("SMS"===o.contactType){if(o&&o.notificationText){let r=new Array,p=new ae.v;p.content=o.notificationText,r.push(p),this.modalCtrl.create({component:se.g,componentProps:{errorMessages:r,updateUrl:!1}}).then(u=>u.present())}}else if(!this.platform.is("ios")&&!this.platform.is("android")||this.platform.is("mobileweb")){var l=window.open();l?(l.document.open(),l.document.write(o.notificationText.replace(/[\n\r]/g,"")),l.document.close(),this.accountFeedService.updateNotificationReadToggle(n,!0).then(r=>{}).catch(r=>{this.globalServiceErrorHandler.showToast()})):this.translateService.get(["ALERTS.ACCOUNTFEED.POPUPBLOCK"]).subscribe(r=>{r["ALERTS.ACCOUNTFEED.POPUPBLOCK"]&&this.globalServiceErrorHandler.showToast(r["ALERTS.ACCOUNTFEED.POPUPBLOCK"])})}else this.platform.platform.ready().then(()=>{const r=this.inAppBrowser.create("about:blank","_blank","location=no,toolbar=yes,closebuttoncaption=Done,enableViewportScale=yes");r.show(),r.on("loadstop").subscribe(p=>{r.executeScript({code:"document.body.innerHTML ='"+o.notificationText.replace(/[\n\r]/g,"")+"';"})})})}).catch(o=>{this.globalServiceErrorHandler.showToast()})}}return(t=a).\u0275fac=function(n){return new(n||t)(e.Y36(h.x),e.Y36(f.K),e.Y36(ve.A),e.Y36(W.o),e.Y36(Y.L),e.Y36(M.H),e.Y36(oe.m),e.Y36(_.sK),e.Y36(c.IN),e.Y36(P.i),e.Y36(T._))},t.\u0275cmp=e.Xpm({type:t,selectors:[["nve-notification-tile"]],inputs:{index:"index"},decls:3,vars:2,consts:[[1,"widget-component","account-feed-tile"],["class","panel panel-default","tabindex","0",4,"ngIf"],["class","panel panel-default",4,"ngIf"],["tabindex","0",1,"panel","panel-default"],[1,"panel-heading"],[1,"accent-color-red",3,"title","click"],[4,"ngIf"],[1,"panel-text"],["tappable","",3,"moveToPage","setPageToRoot",4,"ngIf"],["tappable","",3,"moveToPage","setPageToRoot"],[1,"notifications-important"],[1,"panel-body"],["class","clearfix",4,"ngIf"],[1,"panel-footer"],[1,"clearfix"],[1,"col-xs-12",2,"text-align","right"],[1,"nv-btn","nv-btn-blue",2,"float","left",3,"moveToPage","setPageToRoot"],["href","javascript:void(0)","tappable","",1,"alerts-link",3,"moveToPage","setPageToRoot","moveToPageParam"],[4,"ngFor","ngForOf"],[1,"clearfix","margin-bottom-10"],[1,"col-xs-9"],[1,"col-xs-3","text-right"],["tappable","",3,"moveToPage","moveToPageParam","setPageToRoot",4,"ngIf"],["href","javascript:void(0)",3,"click",4,"ngIf"],["tappable","",3,"moveToPage","moveToPageParam","setPageToRoot"],["href","javascript:void(0)",3,"click"],[1,"col-xs-12"],[1,"panel","panel-default"],["title","ACCOUNT NOTIFICATIONS",3,"click"],[3,"title",4,"ngIf"],[3,"title"],["class","panel-body text-center",4,"ngIf"],[1,"panel-body","text-center"]],template:function(n,o){1&n&&(e.TgZ(0,"div",0),e.YNc(1,Zn,12,11,"div",1),e.YNc(2,Rn,10,7,"div",2),e.qZA()),2&n&&(e.xp6(1),e.Q6J("ngIf",null!=o.accountFeedTileDetails),e.xp6(1),e.Q6J("ngIf",null==o.accountFeedTileDetails))}
1,dependencies:[F.$,s.sg,s.O5,H.a,_.X$],styles:['.nve[_ngcontent-%COMP%] .radio-md[_ngcontent-%COMP%] .radio-checked[_ngcontent-%COMP%]{border-color:#d2c9c7}.nve[_ngcontent-%COMP%] .radio-md[_ngcontent-%COMP%] .radio-inner[_ngcontent-%COMP%]{top:3px;left:3px;width:12px;height:12px}.nve[_ngcontent-%COMP%] .radio-md[_ngcontent-%COMP%] .radio-icon[_ngcontent-%COMP%]{border-color:#d2c9c7;background:#ffffff}.nve[_ngcontent-%COMP%] .checkbox-md[_ngcontent-%COMP%] .checkbox-checked[_ngcontent-%COMP%]{border-color:#d2c9c7;background-color:#fff}.nve[_ngcontent-%COMP%] .checkbox-md[_ngcontent-%COMP%] .checkbox-icon[_ngcontent-%COMP%]{width:20px;height:20px;border-width:1px;border-style:solid;border-radius:1px;border-color:#d2c9c7;background-color:#fff}.nve[_ngcontent-%COMP%] .checkbox-md[_ngcontent-%COMP%] .checkbox-checked[_ngcontent-%COMP%] .checkbox-inner[_ngcontent-%COMP%]{top:0;left:7px;width:5px;height:14px}.nve[_ngcontent-%COMP%] .checkbox-md.checkbox-disabled[_ngcontent-%COMP%], .nve[_ngcontent-%COMP%] .item-md.item-checkbox-disabled[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{opacity:.6;pointer-events:none;background:#ccc}.nve[_ngcontent-%COMP%] .radio-md.radio-disabled[_ngcontent-%COMP%], .nve[_ngcontent-%COMP%] .item-md.item-radio-disabled[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{opacity:.6;pointer-events:none}.nve[_ngcontent-%COMP%] .radio-md.radio-disabled[_ngcontent-%COMP%] .radio-icon[_ngcontent-%COMP%], .nve[_ngcontent-%COMP%] .item-md.item-radio-disabled[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%] .radio-icon[_ngcontent-%COMP%]{background:#cccccc}.nve[_ngcontent-%COMP%] ion-radio.radio-disabled[_ngcontent-%COMP%]{opacity:.6;pointer-events:none}.nve[_ngcontent-%COMP%] ion-radio.radio-disabled[_ngcontent-%COMP%]::part(container){background:#cccccc}.nve[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-size:1em;font-weight:400;color:#000}.account-feed-tile[_ngcontent-%COMP%] .important-notification[_ngcontent-%COMP%]{font-weight:700;padding-left:30px;position:relative}.account-feed-tile[_ngcontent-%COMP%] .important-notification[_ngcontent-%COMP%]:before{content:"\\e903";font-family:nve-iconset;font-size:24px;font-weight:400;position:absolute;top:0;left:0;color:#de5243}@media (max-width: 767px){.account-feed-tile[_ngcontent-%COMP%] .panel-footer[_ngcontent-%COMP%]{padding-top:0!important}}.alerts-link[_ngcontent-%COMP%]{padding-top:10px;display:inline-block}@media (max-width: 274px){.alerts-link[_ngcontent-%COMP%]{display:inline;padding-top:0}}']}),a})();var ue=d(69794),qn=d(14663);function Fn(t,a){1&t&&e._UZ(0,"span",12)}function kn(t,a){1&t&&e._UZ(0,"span",13)}function Jn(t,a){if(1&t){const i=e.EpF();e.TgZ(0,"a",9),e.NdJ("click",function(){e.CHM(i);const o=e.oxw();return e.KtG(o.scroll())}),e.YNc(1,Fn,1,0,"span",10),e.YNc(2,kn,1,0,"span",11),e.qZA()}if(2&t){const i=e.oxw();e.xp6(1),e.Q6J("ngIf",i.isScrollUp),e.xp6(1),e.Q6J("ngIf",!i.isScrollUp)}}function Gn(t,a){1&t&&e._UZ(0,"nve-error-404")}function Qn(t,a){if(1&t){const i=e.EpF();e.TgZ(0,"div")(1,"div")(2,"a",14),e.NdJ("click",function(){e.CHM(i);const o=e.oxw();return e.KtG(o.closeModal())})("keypress",function(o){e.CHM(i);const l=e.oxw();return e.KtG(l.eventHandler(o))}),e._UZ(3,"span",15),e.qZA(),e.YNc(4,Gn,1,0,"nve-error-404",7),e.TgZ(5,"div")(6,"h1",16),e._uU(7),e.ALo(8,"translate"),e.qZA(),e.TgZ(9,"p"),e._uU(10),e.ALo(11,"translate"),e.qZA(),e.TgZ(12,"div",1)(13,"div",17)(14,"div",18)(15,"div",19),e._uU(16),e.ALo(17,"translate"),e._UZ(18,"br"),e._uU(19),e.ALo(20,"translate"),e.qZA(),e.TgZ(21,"div",20),e._uU(22),e.ALo(23,"date"),e.qZA(),e.TgZ(24,"div",21),e._uU(25),e.ALo(26,"translate"),e.qZA(),e.TgZ(27,"div",20),e._uU(28),e.ALo(29,"date"),e.qZA()(),e.TgZ(30,"div",22)(31,"div",23),e._uU(32),e.ALo(33,"date"),e.qZA(),e.TgZ(34,"div",24),e._uU(35),e.ALo(36,"translate"),e.TgZ(37,"span",25),e._uU(38),e.qZA(),e._uU(39),e.qZA(),e.TgZ(40,"div"),e._UZ(41,"img",26),e.qZA(),e.TgZ(42,"div",27),e._uU(43),e.ALo(44,"translate"),e.ALo(45,"translate"),e.qZA()(),e.TgZ(46,"div",22)(47,"div",23),e._uU(48),e.ALo(49,"date"),e.qZA(),e.TgZ(50,"div",24),e._uU(51),e.ALo(52,"translate"),e.TgZ(53,"span",25),e._uU(54),e.qZA(),e._uU(55),e.qZA(),e.TgZ(56,"div"),e._UZ(57,"img",26),e.qZA(),e.TgZ(58,"div",27),e._uU(59),e.ALo(60,"translate"),e.ALo(61,"translate"),e.qZA()(),e.TgZ(62,"div",22)(63,"div",23),e._uU(64),e.ALo(65,"date"),e.qZA(),e.TgZ(66,"div",24),e._uU(67),e.ALo(68,"translate"),e.TgZ(69,"span",25),e._uU(70),e.qZA(),e._uU(71),e.qZA(),e.TgZ(72,"div"),e._UZ(73,"img",26),e.qZA(),e.TgZ(74,"div",27),e._uU(75),e.ALo(76,"translate"),e.ALo(77,"translate"),e.qZA()()(),e.TgZ(78,"div",17)(79,"div",22)(80,"div",23),e._uU(81),e.ALo(82,"date"),e.qZA(),e.TgZ(83,"div",24),e._uU(84),e.ALo(85,"translate"),e.TgZ(86,"span",25),e._uU(87),e.qZA(),e._uU(88),e.qZA(),e.TgZ(89,"div"),e._UZ(90,"img",26),e.qZA(),e.TgZ(91,"div",27),e._uU(92),e.ALo(93,"translate"),e.ALo(94,"translate"),e.qZA()(),e.TgZ(95,"div",22)(96,"div",23),e._uU(97),e.ALo(98,"date"),e.qZA(),e.TgZ(99,"div",24),e._uU(100),e.ALo(101,"translate"),e.TgZ(102,"span",25),e._uU(103),e.qZA(),e._uU(104),e.qZA(),e.TgZ(105,"div"),e._UZ(106,"img",26),e.qZA(),e.TgZ(107,"div",27),e._uU(108),e.ALo(109,"translate"),e.ALo(110,"translate"),e.qZA()(),e.TgZ(111,"div",22)(112,"div",23),e._uU(113),e.ALo(114,"date"),e.qZA(),e.TgZ(115,"div",24),e._uU(116),e.ALo(117,"translate"),e.TgZ(118,"span",25),e._uU(119),e.qZA(),e._uU(120),e.qZA(),e.TgZ(121,"div"),e._UZ(122,"img",26),e.qZA(),e.TgZ(123,"div",27),e._uU(124),e.ALo(125,"translate"),e.ALo(126,"translate"),e.qZA()(),e.TgZ(127,"div",22)(128,"div",23),e._uU(129),e.ALo(130,"date"),e.qZA(),e.TgZ(131,"div",24),e._uU(132),e.ALo(133,"translate"),e.TgZ(134,"span",25),e._uU(135),e.qZA(),e._uU(136),e.qZA(),e.TgZ(137,"div"),e._UZ(138,"img",26),e.qZA(),e.TgZ(139,"div",27),e._uU(140),e.ALo(141,"translate"),e.ALo(142,"translate"),e.qZA()()()()()()()}if(2&t){const i=e.oxw();e.xp6(4),e.Q6J("ngIf",i.isErrorOccured),e.xp6(3),e.hij(" ",e.lcZ(8,71,"TILES.PROJECTEDBILL.BILLFORECASTMODAL.HEADING")," "),e.xp6(3),e.Oqu(e.l
1cZ(11,73,"TILES.PROJECTEDBILL.BILLFORECASTMODAL.SUBTITLE")),e.xp6(6),e.hij(" ",e.lcZ(17,75,"TILES.PROJECTEDBILL.BILLFORECASTMODAL.NEXT"),""),e.xp6(3),e.hij("",e.lcZ(20,77,"TILES.PROJECTEDBILL.BILLFORECASTMODAL.WEEK")," "),e.xp6(3),e.hij(" ",e.xi3(23,79,i.accountBillForecastDetails.forecastedDate1,"M/dd")," "),e.xp6(3),e.hij(" ",e.lcZ(26,82,"TILES.PROJECTEDBILL.BILLFORECASTMODAL.THRU")," "),e.xp6(3),e.hij(" ",e.xi3(29,84,i.accountBillForecastDetails.forecastedDate7,"M/dd")," "),e.xp6(4),e.hij(" ",e.xi3(33,87,i.accountBillForecastDetails.forecastedDate1,"EEE dd")," "),e.xp6(3),e.hij(" ",e.lcZ(36,90,"TILES.PROJECTEDBILL.BILLFORECASTMODAL.DOLLARSIGN"),""),e.xp6(3),e.Oqu(i.accountBillForecastDetails.day1BillAmountInDollar),e.xp6(1),e.hij("",i.accountBillForecastDetails.day1BillAmountInCent," "),e.xp6(2),e.s9C("src",i.accountBillForecastDetails.day1Weather,e.LSH),e.xp6(2),e.HOy(" ",e.lcZ(44,92,"TILES.PROJECTEDBILL.BILLFORECASTMODAL.HIGH")," ",i.accountBillForecastDetails.day1HighTemp," / ",e.lcZ(45,94,"TILES.PROJECTEDBILL.BILLFORECASTMODAL.LOW")," ",i.accountBillForecastDetails.day1LowTemp," "),e.xp6(5),e.hij(" ",e.xi3(49,96,i.accountBillForecastDetails.forecastedDate2,"EEE dd")," "),e.xp6(3),e.hij(" ",e.lcZ(52,99,"TILES.PROJECTEDBILL.BILLFORECASTMODAL.DOLLARSIGN"),""),e.xp6(3),e.Oqu(i.accountBillForecastDetails.day2BillAmountInDollar),e.xp6(1),e.hij("",i.accountBillForecastDetails.day2BillAmountInCent," "),e.xp6(2),e.s9C("src",i.accountBillForecastDetails.day2Weather,e.LSH),e.xp6(2),e.HOy(" ",e.lcZ(60,101,"TILES.PROJECTEDBILL.BILLFORECASTMODAL.HIGH")," ",i.accountBillForecastDetails.day2HighTemp," / ",e.lcZ(61,103,"TILES.PROJECTEDBILL.BILLFORECASTMODAL.LOW")," ",i.accountBillForecastDetails.day2LowTemp," "),e.xp6(5),e.hij(" ",e.xi3(65,105,i.accountBillForecastDetails.forecastedDate3,"EEE dd")," "),e.xp6(3),e.hij(" ",e.lcZ(68,108,"TILES.PROJECTEDBILL.BILLFORECASTMODAL.DOLLARSIGN"),""),e.xp6(3),e.Oqu(i.accountBillForecastDetails.day3BillAmountInDollar),e.xp6(1),e.hij("",i.accountBillForecastDetails.day3BillAmountInCent," "),e.xp6(2),e.s9C("src",i.accountBillForecastDetails.day3Weather,e.LSH),e.xp6(2),e.HOy(" ",e.lcZ(76,110,"TILES.PROJECTEDBILL.BILLFORECASTMODAL.HIGH")," ",i.accountBillForecastDetails.day3HighTemp," / ",e.lcZ(77,112,"TILES.PROJECTEDBILL.BILLFORECASTMODAL.LOW")," ",i.accountBillForecastDetails.day3LowTemp," "),e.xp6(6),e.hij(" ",e.xi3(82,114,i.accountBillForecastDetails.forecastedDate4,"EEE dd")," "),e.xp6(3),e.hij(" ",e.lcZ(85,117,"TILES.PROJECTEDBILL.BILLFORECASTMODAL.DOLLARSIGN"),""),e.xp6(3),e.Oqu(i.accountBillForecastDetails.day4BillAmountInDollar),e.xp6(1),e.hij("",i.accountBillForecastDetails.day4BillAmountInCent," "),e.xp6(2),e.s9C("src",i.accountBillForecastDetails.day4Weather,e.LSH),e.xp6(2),e.HOy(" ",e.lcZ(93,119,"TILES.PROJECTEDBILL.BILLFORECASTMODAL.HIGH")," ",i.accountBillForecastDetails.day4HighTemp," / ",e.lcZ(94,121,"TILES.PROJECTEDBILL.BILLFORECASTMODAL.LOW")," ",i.accountBillForecastDetails.day4LowTemp," "),e.xp6(5),e.hij(" ",e.xi3(98,123,i.accountBillForecastDetails.forecastedDate5,"EEE dd")," "),e.xp6(3),e.hij(" ",e.lcZ(101,126,"TILES.PROJECTEDBILL.BILLFORECASTMODAL.DOLLARSIGN"),""),e.xp6(3),e.Oqu(i.accountBillForecastDetails.day5BillAmountInDollar),e.xp6(1),e.hij("",i.accountBillForecastDetails.day5BillAmountInCent," "),e.xp6(2),e.s9C("src",i.accountBillForecastDetails.day5Weather,e.LSH),e.xp6(2),e.HOy(" ",e.lcZ(109,128,"TILES.PROJECTEDBILL.BILLFORECASTMODAL.HIGH")," ",i.accountBillForecastDetails.day5HighTemp," / ",e.lcZ(110,130,"TILES.PROJECTEDBILL.BILLFORECASTMODAL.LOW")," ",i.accountBillForecastDetails.day5LowTemp," "),e.xp6(5),e.hij(" ",e.xi3(114,132,i.accountBillForecastDetails.forecastedDate6,"EEE dd")," "),e.xp6(3),e.hij(" ",e.lcZ(117,135,"TILES.PROJECTEDBILL.BILLFORECASTMODAL.DOLLARSIGN"),""),e.xp6(3),e.Oqu(i.accountBillForecastDetails.day6BillAmountInDollar),e.xp6(1),e.hij("",i.accountBillForecastDetails.day6BillAmountInCent," "),e.xp6(2),e.s9C("src",i.accountBillForecastDetails.day6Weather,e.LSH),e.xp6(2),e.HOy(" ",e.lcZ(125,137,"TILES.PROJECTEDBILL.BILLFORECASTMODAL.HIGH")," ",i.accountBillForecastDetails.day6HighTemp," / ",e.lcZ(126,139,"TILES.PROJECTEDBILL.BILLFORECASTMODAL.LOW")," ",i.accountBillForecastDetails.day6LowTemp," "),e.xp6(5),e.hij(" ",e.xi3(130,141,i.accountBillForecastDetails.forecastedDate7,"EEE dd")," "),e.xp6(3),e.hij(" ",e.lcZ(133,144,"TILES.PROJECTEDBILL.BILLFORECASTMODAL.DOLLARSIGN"),""),e.xp6(3),e.Oqu(i.accountBillForecastDetails.day7BillAmountInDollar),e.xp6(1),e.hij("",i.accountBillForecastDetails.day7BillAmountInCent," "),e.xp6(2),e.s9C("src",i.accountBillForecastDetails.day7Weather,e.LSH),e.xp6(2),e.HOy(" ",e.lcZ(141,146,"TILES.PROJECTEDBILL.BILLFORECASTMODAL.HIGH")," ",i.accountBillForecastDetails.day7HighTemp," / ",e.lcZ(142,148,"TILES.PROJECTEDBILL.BILLFORECASTMODAL.LOW")," ",i.accountBillForecastDetails.day7LowTemp," ")}}function Hn(t,a){1&t&&(e.TgZ(0,"div"),e._UZ(1,"nve-spinner"),e.qZA())}let jn=(()=>{var t;class a extends Z.W{constructor(n,o,l,r,p){super(n,r),this.modalCtrl=n,this.route=o,this.translate=l,this.location=r,this.appUtil=p}eventHandler(n){(n.code===ue.D.enter||n.code===ue.D.space)&&this.closeModal()}closeModal(){this.modalCtrl.dismiss()}ngOnInit(){let n=this.buildResultForUI(this.accountBillForecastDetails);this.accountBillForecastDetails=n}buildResultForUI(n){return n.day1BillAmountInDollar=n.day1BillAmount.split(".")[0],n.day1BillAmountInCent=n.day1BillAmount.split(".")[1],n.day2BillAmountInDollar=n.day2BillAmount.split(".")[0],n.day2BillAmountInCent=n.day2BillAmount.split(".")[1],n.day3BillAmountInDollar=n.day3BillAmount.split(".")[0],n.day3BillAmountInCent=n.day3BillAmount.split(".")[1],n.day4BillAmountInDollar=n.day4BillAmount.split(".")[0],n.day4BillAmountInCent=n.day4BillAmount.split(".")[1],n.day5BillAmountInDollar=n.day5BillAmount.split(".")[0],n.day5BillAmountInCent=n.day5BillAmount.split(".")[1],n.day6BillAmountInDollar=n.day6BillAmount.split(".")[0],n.day6BillAmountInCent=n.day6BillAmount.split(".")[1],n.day7BillAmountInDollar=n.day7BillAmount.split(".")[0],n.day7BillAmountInCent=n.day7BillAmount.split(".")[1],n.day1Weather=this.appUtil.updateUrl("/assets/images/energy-snapshot/"+n.day1Weather),n.day2Weather=this.appUtil.updateUrl("/assets/images/energy-snapshot/"+n.day2Weather),n.day3Weather=this.appUtil.updateUrl("/assets/images/energy-snapshot/"+n.day3Weather),n.day4Weather=this.appUtil.updateUrl("/assets/images/energy-snapshot/"+n.day4Weather),n.day5Weather=this.appUtil.updateUrl("/assets/images/energy-snapshot/"+n.day5Weather),n.day6Weather=this.appUtil.updateUrl("/assets/images/energy-snapshot/"+n.day6Weather),n.day7Weather=this.appUtil.updateUrl("/assets/images/energy-snapshot/"+n.day7Weather),n}}return(t=a).\u0275fac=function(n){return new(n||t)(e.Y36(c.IN),e.Y36(b.gz),e.Y36(_.sK),e.Y36(s.Ye),e.Y36(le.$))},t.\u0275cmp=e.Xpm({type:t,selectors:[["ng-component"]],inputs:{accountBillForecastDetails:"accountBillForecastDetails",isDataLoaded:"isDataLoaded",isErrorOccured:"isErrorOccured"},features:[e.qOj],decls:10,vars:3,consts:[[1,"nve-modal"],[1,"bill-forecast"],["mainDiv",""],["role","dialog","aria-labelledby","alertHeading","aria-describedby","alertText","tabindex","0",1,"flexible-modal","tooltip-modal"],["ion-fixed","",1,"fixed-place"],["class","modal-scroll-btns",3,"click",4,"ngIf"],[1,"modal-height-calc-wrapper"],[4,"ngIf"],[2,"clear","both"],[1,"modal-scroll-btns",3,"click"],["class","ion-ios-arrow-down","title","Scroll To Bottom",4,"ngIf"],["class","ion-ios-arrow-up","title","Scroll To Top",4,"ngIf"],["title","Scroll To Bottom",1,"ion-ios-arrow-down"],["title","Scroll To Top",1,"ion-ios-arrow-up"],["tabindex","0","aria-label","close button",1,"close-modal",3,"click","keypress"],[1,"ion-close-rou
1nd"],[1,"heading",2,"margin","0 0 8px 0"],[1,"clearfix"],[1,"col-xs-3","bf-nxtwk-container"],[1,"next-week",2,"letter-spacing","-1px","color","#cccccc","padding-bottom","10px"],[1,"date-span"],[2,"font-size","9px","color","#cccccc"],[1,"col-xs-3","bf-container"],[1,"day-temp"],[1,"amount"],[1,"amount-dollar"],[3,"src"],[1,"day-temp","temp"]],template:function(n,o){1&n&&(e.TgZ(0,"div",0)(1,"div",1,2)(3,"div",3)(4,"div",4),e.YNc(5,Jn,3,2,"a",5),e.qZA(),e.TgZ(6,"div",6),e.YNc(7,Qn,143,150,"div",7),e.YNc(8,Hn,2,0,"div",7),e._UZ(9,"div",8),e.qZA()()()()),2&n&&(e.xp6(5),e.Q6J("ngIf",o.showScrollBtn),e.xp6(2),e.Q6J("ngIf",o.isDataLoaded),e.xp6(1),e.Q6J("ngIf",!o.isDataLoaded&&!o.isErrorOccured))},dependencies:[F.$,qn.B,s.O5,_.X$,s.uU],styles:[".nve[_ngcontent-%COMP%] .radio-md[_ngcontent-%COMP%] .radio-checked[_ngcontent-%COMP%]{border-color:#d2c9c7}.nve[_ngcontent-%COMP%] .radio-md[_ngcontent-%COMP%] .radio-inner[_ngcontent-%COMP%]{top:3px;left:3px;width:12px;height:12px}.nve[_ngcontent-%COMP%] .radio-md[_ngcontent-%COMP%] .radio-icon[_ngcontent-%COMP%]{border-color:#d2c9c7;background:#ffffff}.nve[_ngcontent-%COMP%] .checkbox-md[_ngcontent-%COMP%] .checkbox-checked[_ngcontent-%COMP%]{border-color:#d2c9c7;background-color:#fff}.nve[_ngcontent-%COMP%] .checkbox-md[_ngcontent-%COMP%] .checkbox-icon[_ngcontent-%COMP%]{width:20px;height:20px;border-width:1px;border-style:solid;border-radius:1px;border-color:#d2c9c7;background-color:#fff}.nve[_ngcontent-%COMP%] .checkbox-md[_ngcontent-%COMP%] .checkbox-checked[_ngcontent-%COMP%] .checkbox-inner[_ngcontent-%COMP%]{top:0;left:7px;width:5px;height:14px}.nve[_ngcontent-%COMP%] .checkbox-md.checkbox-disabled[_ngcontent-%COMP%], .nve[_ngcontent-%COMP%] .item-md.item-checkbox-disabled[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{opacity:.6;pointer-events:none;background:#ccc}.nve[_ngcontent-%COMP%] .radio-md.radio-disabled[_ngcontent-%COMP%], .nve[_ngcontent-%COMP%] .item-md.item-radio-disabled[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{opacity:.6;pointer-events:none}.nve[_ngcontent-%COMP%] .radio-md.radio-disabled[_ngcontent-%COMP%] .radio-icon[_ngcontent-%COMP%], .nve[_ngcontent-%COMP%] .item-md.item-radio-disabled[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%] .radio-icon[_ngcontent-%COMP%]{background:#cccccc}.nve[_ngcontent-%COMP%] ion-radio.radio-disabled[_ngcontent-%COMP%]{opacity:.6;pointer-events:none}.nve[_ngcontent-%COMP%] ion-radio.radio-disabled[_ngcontent-%COMP%]::part(container){background:#cccccc}.nve[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-size:1em;font-weight:400;color:#000}.nve-modal[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%]{padding:0!important;max-width:415px;max-height:415px!important;overflow:hidden;background:#f5fbfe;color:#808285}.nve-modal[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%] .clearfix[_ngcontent-%COMP%]:first-of-type > div[_ngcontent-%COMP%]{padding:0}.nve-modal[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%] .page-sidebar[_ngcontent-%COMP%]{display:none}.nve-modal[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%] .page-content[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.nve-modal[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%] .pageWrapper[_ngcontent-%COMP%] .page-content[_ngcontent-%COMP%], .nve-modal[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%] .pageWrapper[_ngcontent-%COMP%] #pageContent[_ngcontent-%COMP%]{min-height:auto}.nve-modal[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%] .scroll-content[_ngcontent-%COMP%] .modal-scroll-content[_ngcontent-%COMP%]{max-height:340px!important;overflow-y:scroll;padding:20px 30px 20px 20px}.nve-modal[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%] .fixed-content[_ngcontent-%COMP%]{display:block!important}.nve-modal[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%] .fixed-place[_ngcontent-%COMP%]{position:absolute;right:20px;top:300px}.nve-modal[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%] .modal
1-scroll-btns[_ngcontent-%COMP%]{border:unset!important;background:unset!important;overflow:hidden!important;background:#469abe!important;height:auto!important;z-index:100000;color:#fff;text-align:center;font-weight:bolder;font-size:22px;padding:5px!important}.nve-modal[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%] .modal-height-calc-wrapper[_ngcontent-%COMP%]{padding:20px}.nve-modal[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%]{text-align:center;color:#fff}.nve-modal[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] div[_ngcontent-%COMP%], .nve-modal[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-family:Helvetica Neue,Helvetica,Arial,sans-serif!important}.nve-modal[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] .bf-nxtwk-container[_ngcontent-%COMP%]{background-color:#1f4371}.nve-modal[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] .bf-container[_ngcontent-%COMP%]:nth-child(even){background-color:#2962a9}.nve-modal[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] .bf-container[_ngcontent-%COMP%]:nth-child(odd){background-color:#347bd5}.nve-modal[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] .bf-nxtwk-container[_ngcontent-%COMP%]{padding:14px 0 0!important;height:134px;overflow:hidden}.nve-modal[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] .bf-nxtwk-container[_ngcontent-%COMP%] .next-week[_ngcontent-%COMP%]{font-size:19px}@media (max-width: 344px){.nve-modal[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] .bf-nxtwk-container[_ngcontent-%COMP%] .next-week[_ngcontent-%COMP%]{font-size:16px!important}}.nve-modal[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] .bf-container[_ngcontent-%COMP%]{padding:5px 0 0!important;height:134px;overflow:hidden}.nve-modal[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] .date-span[_ngcontent-%COMP%]{font-size:20px;letter-spacing:-1px}.nve-modal[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] .day-temp[_ngcontent-%COMP%]{font-size:8px;font-weight:700;color:#ccc;letter-spacing:1px}.nve-modal[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] .temp[_ngcontent-%COMP%]{letter-spacing:0}.nve-modal[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] .amount[_ngcontent-%COMP%]{font-size:14px;letter-spacing:-1px;vertical-align:top;padding-bottom:14px}.nve-modal[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] .amount-dollar[_ngcontent-%COMP%]{font-size:33px;vertical-align:-14px}.nve-modal[_ngcontent-%COMP%] .flexible-modal[_ngcontent-%COMP%]{overflow:hidden;padding:0!important;max-height:calc(100% - 100px);position:fixed;top:50%;left:50%;right:auto;bottom:auto;height:387px;width:90%;max-width:1024px;transform:translate(-50%,-50%);background:#f6f6f8;border:2px solid #808285;contain:none}@media screen and (min-width: 445px) and (max-width: 767px){.nve-modal[_ngcontent-%COMP%] .flexible-modal[_ngcontent-%COMP%]{height:380pxlocal 4}}@media screen and (max-width: 444px){.nve-modal[_ngcontent-%COMP%] .flexible-modal[_ngcontent-%COMP%]{height:395pxlocal 4}}.nve-modal[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%]{padding:10px!important;max-width:415px;max-height:340px!important;overflow-x:hidden;background:#f5fbfe;color:#808285}@media screen and (min-height: 320px) and (max-height: 500px){.nve-modal[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%]{max-height:285px!important;overflow-x:hidden;overflow-y:scroll}}"]}),a})();var Wn=d(98521);function Kn(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"-"),e.qZA())}function Xn(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"+"),e.qZA())}const Le=function(t){return{"background-image":t}},Ze=function(){return{}};function $n(t,a){if(1&t&&(e.TgZ(0,"div")(1,"div",12)(2,"div",13)(3,"div",14)(4,"div",15),e._uU(5),e.ALo(6,"translate"),e.ALo(7,"translate"),e.qZA(),e.TgZ(8,"div",16)(9,"span",17),e._uU(10),e.ALo(11,"translate"),e.qZA(),e._uU(12),e.qZA(),e.TgZ(13,"div",18),e._uU(14),e.ALo(15,"translate"),e.qZA()()(),e.TgZ(16,"div",13)(17,"div",14)(18,"div",19),e._uU(19),e.ALo(20,"translate"),e._UZ(21,"br"),e._uU(22),e.ALo(23,"translate"),e.qZA(),e.TgZ(24,"div",20)(25,"span",17),e._uU(26),e.ALo(27,"translate"),e.qZA(),e._uU(28),e.qZA(),e.TgZ(29,"div",18),e._uU(30),e.ALo(31,"translate"),e.ALo(32,"translate"),e.qZA()()()()()),2&t){const i=e.oxw(3);e.xp6(3),e.Q6J("ngStyle",i.billToDateColumnBGURL?e.VKq(34,Le,"url("+i.billToDateColumnBGURL+")"):e.DdM(36,Ze)),e.xp6(2),e.AsE(" ",e.lcZ(6,16,"TILES.PROJECTEDBILL.BILLTO")," ",e.lcZ(7,18,"TILES.PROJECTEDBILL.DATE")," "),e.xp6(5),e.Oqu(e.l
1cZ(11,20,"TILES.PROJECTEDBILL.DOLLARSIGN")),e.xp6(2),e.hij("",i.accountProjectedBillDetails.cost2Date," "),e.xp6(2),e.AsE(" ",e.lcZ(15,22,"TILES.PROJECTEDBILL.DATEASOF")," ",i.accountProjectedBillDetails.asOfDate," "),e.xp6(3),e.Q6J("ngStyle",i.projectedBillColumnBGURL?e.VKq(37,Le,"url("+i.projectedBillColumnBGURL+")"):e.DdM(39,Ze)),e.xp6(2),e.hij(" ",e.lcZ(20,24,"TILES.PROJECTEDBILL.PROJECTED"),""),e.xp6(3),e.hij("",e.lcZ(23,26,"TILES.PROJECTEDBILL.BILL")," "),e.xp6(4),e.Oqu(e.lcZ(27,28,"TILES.PROJECTEDBILL.DOLLARSIGN")),e.xp6(2),e.hij("",i.accountProjectedBillDetails.projectedBillAmount," "),e.xp6(2),e.HOy(" ",e.lcZ(31,30,"TILES.PROJECTEDBILL.BILLCYCLE")," ",i.accountProjectedBillDetails.billingCycleFrom," ",e.lcZ(32,32,"TILES.PROJECTEDBILL.THRU")," ",i.accountProjectedBillDetails.billingCycleTo," ")}}function zn(t,a){1&t&&(e.TgZ(0,"div")(1,"div",21)(2,"div",22),e._uU(3),e.ALo(4,"translate"),e.qZA()(),e.TgZ(5,"div",23)(6,"div",22),e._uU(7),e.ALo(8,"translate"),e.qZA()()()),2&t&&(e.xp6(3),e.Oqu(e.lcZ(4,2,"TILES.PROJECTEDBILL.WENEEDTIME")),e.xp6(4),e.Oqu(e.lcZ(8,4,"TILES.PROJECTEDBILL.PLEASECHECK")))}function Vn(t,a){if(1&t){const i=e.EpF();e.TgZ(0,"button",27),e.NdJ("click",function(){e.CHM(i);const o=e.oxw(4);return e.KtG(o.openBillForecast())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"TILES.PROJECTEDBILL.BILLFORECAST")," "))}function ei(t,a){if(1&t&&(e.TgZ(0,"div",21)(1,"div",24),e.YNc(2,Vn,3,3,"button",25),e.TgZ(3,"p")(4,"span",26),e._uU(5),e.ALo(6,"translate"),e.qZA(),e._UZ(7,"br"),e.TgZ(8,"span"),e._uU(9),e.ALo(10,"translate"),e.qZA()()()()),2&t){const i=e.oxw(3);e.xp6(2),e.Q6J("ngIf",i.eligibileForBillForecast),e.xp6(3),e.AsE("",i.accountProjectedBillDetails.remainingDOS," ",e.lcZ(6,4,"TILES.PROJECTEDBILL.DAYS"),""),e.xp6(4),e.Oqu(e.lcZ(10,6,"TILES.PROJECTEDBILL.REMAININBILLCYCLE"))}}function ti(t,a){if(1&t&&(e.TgZ(0,"div")(1,"div",9),e.YNc(2,$n,33,40,"div",7),e.YNc(3,zn,9,6,"div",7),e.qZA(),e.TgZ(4,"div",10),e.YNc(5,ei,11,8,"div",11),e.qZA()()),2&t){const i=e.oxw(2);e.xp6(1),e.ekj("panel-body-has-data",!i.accountProjectedBillDetails.isNoDataAvailable),e.xp6(1),e.Q6J("ngIf",!i.accountProjectedBillDetails.isNoDataAvailable),e.xp6(1),e.Q6J("ngIf",i.accountProjectedBillDetails.isNoDataAvailable),e.xp6(2),e.Q6J("ngIf",!i.accountProjectedBillDetails.isNoDataAvailable)}}function ni(t,a){if(1&t){const i=e.EpF();e.TgZ(0,"div",3)(1,"div",4)(2,"h2",5),e.NdJ("click",function(){e.CHM(i);const o=e.oxw();return e.KtG(o.onUserToggle())}),e.ALo(3,"translate"),e.TgZ(4,"span",6),e.YNc(5,Kn,2,0,"span",7),e.YNc(6,Xn,2,0,"span",7),e.TgZ(7,"span"),e._uU(8),e.ALo(9,"translate"),e.qZA()()(),e.TgZ(10,"span",8),e.ALo(11,"translate"),e.ALo(12,"translate"),e._uU(13),e.ALo(14,"translate"),e.ALo(15,"translate"),e.qZA()(),e.YNc(16,ti,6,5,"div",7),e.qZA()}if(2&t){const i=e.oxw();e.xp6(2),e.s9C("title",e.lcZ(3,11,"TILES.PROJECTEDBILL.TITLE")),e.xp6(3),e.Q6J("ngIf",i.showPanelAndBody),e.xp6(1),e.Q6J("ngIf",!i.showPanelAndBody),e.xp6(2),e.Oqu(e.lcZ(9,13,"TILES.PROJECTEDBILL.TITLE")),e.xp6(2),e.cQ8("title","",e.lcZ(11,15,"TILES.PROJECTEDBILL.HEADER1")," ",i.accountProjectedBillDetails.billingCycle," ",e.lcZ(12,17,"TILES.PROJECTEDBILL.BILLINGCYCLE"),""),e.xp6(3),e.lnq("",e.lcZ(14,19,"TILES.PROJECTEDBILL.HEADER1")," ",i.accountProjectedBillDetails.billingCycle," ",e.lcZ(15,21,"TILES.PROJECTEDBILL.BILLINGCYCLE"),""),e.xp6(3),e.Q6J("ngIf",i.showPanelAndBody)}}function ii(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"-"),e.qZA())}function oi(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"+"),e.qZA())}function ai(t,a){1&t&&(e.TgZ(0,"div",32),e._UZ(1,"nve-spinner"),e.qZA())}function li(t,a){1&t&&(e.TgZ(0,"div",32)(1,"div",21)(2,"div",22),e._uU(3),e.ALo(4,"translate"),e.qZA()()()),2&t&&(e.xp6(3),e.Oqu(e.lcZ(4,1,"TILES.PROJECTEDBILL.SOMETHING")))}function si(t,a){if(1&t&&(e.TgZ(0,"div"),e.YNc(1,ai,2,0,"div",31),e.YNc(2,li,5,3,"div",31),e._UZ(3,"div",10),e.qZA()),2&t){const i=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!i.isErrorOccured),e.xp6(1),e.Q6J("ngIf",i.isErrorOccured)}}function ci(t,a){if(1&t){const i=e.EpF();e.TgZ(0,"div",28)(1,"div",4)(2,"h2",29),e.NdJ("click",function(){e.CHM(i);const o=e.oxw();return e.KtG(o.onUserToggle())}),e.ALo(3,"translate"),e.YNc(4,ii,2,0,"span",7),e.YNc(5,oi,2,0,"span",7),e.TgZ(6,"span",30),e._uU(7),e.ALo(8,"translate"),e.qZA()()(),e.YNc(9,si,4,2,"div",7),e.qZA()}if(2&t){const i=e.oxw();e.xp6(2),e.s9C("title",e.lcZ(3,5,"TILES.PROJECTEDBILL.TITLE")),e.xp6(2),e.Q6J("ngIf",i.showPanelAndBody),e.xp6(1),e.Q6J("ngIf",!i.showPanelAndBody),e.xp6(2),e.Oqu(e.l
1cZ(8,7,"TILES.PROJECTEDBILL.TITLE")),e.xp6(2),e.Q6J("ngIf",i.showPanelAndBody)}}let ri=(()=>{var t;class a{constructor(n,o,l,r,p,u,x,E,D,R){this.widgetsService=n,this.projectedBillService=o,this.platform=l,this.accountFeedService=r,this.globalServiceErrorHandler=p,this.translateService=u,this.modalCtrl=x,this.billForecastService=E,this.appUtil=D,this.config=R,this.costToDateObject=void 0,this.accountProjectedBillDetails=void 0,this.barWidth=0,this.isErrorOccured=!1,this.eligibileForBillForecast=!1,this.showPanelAndBody=!1,this.widgetId=10,this.isDataLoaded=!1,this.widgetsService.closeEventEmitter.subscribe(q=>{q!==this.widgetId&&this.showPanelAndBody&&this.togglePanelAndBody()}),this.billToDateColumnBGURL=this.appUtil.updateUrl("/assets/images/energy-snapshot/bg-pb.png"),this.projectedBillColumnBGURL=this.appUtil.updateUrl("/assets/images/energy-snapshot/bg-pb.png")}set index(n){this.widgetIndex=n}ngOnInit(){this.widgetIndex<this.config.config.numberOfTilesOpenByDefault&&(this.showPanelAndBody=!0),this.initializeProjectedBill()}togglePanelAndBody(){this.showPanelAndBody=!this.showPanelAndBody,this.showPanelAndBody&&(this.isDataLoaded||this.initializeProjectedBill())}initializeProjectedBill(){this.projectedBillService.getNewCostToDateSummary().then(n=>{this.accountProjectedBillDetails=n,this.billForecastService.getBillForecast().then(o=>{this.billForecast=o,this.accountBillForecastDetails=this.billForecast.accountBillForecastDetails,this.eligibileForBillForecast=!1,this.billForecast.billForecastEligibility&&this.billForecast.accountBillForecastDetails&&(this.eligibileForBillForecast="Y"==this.billForecast.billForecastEligibility&&null!=this.accountBillForecastDetails&&null!=this.accountBillForecastDetails),this.isDataLoaded=!0}).catch(o=>{this.eligibileForBillForecast=!1})}).catch(n=>{this.isErrorOccured=!0})}onUserToggle(){this.togglePanelAndBody(),this.widgetsService.toggleWidgetEvent(this.widgetId)}openBillForecast(){let n=Object.assign({},this.accountBillForecastDetails);this.modalCtrl.create({component:jn,componentProps:{accountBillForecastDetails:n,updateUrl:!1,isDataLoaded:this.isDataLoaded,isErrorOccured:this.isErrorOccured}}).then(o=>o.present())}}return(t=a).\u0275fac=function(n){return new(n||t)(e.Y36(Y.L),e.Y36(Wn.r),e.Y36(c.t4),e.Y36(ve.A),e.Y36(W.o),e.Y36(_.sK),e.Y36(c.IN),e.Y36(ye.A),e.Y36(le.$),e.Y36(T._))},t.\u0275cmp=e.Xpm({type:t,selectors:[["nve-project-next-bill-tile"]],inputs:{index:"index"},decls:3,vars:2,consts:[["id","projected-bill",1,"widget-component"],["class","panel panel-default","tabindex","0",4,"ngIf"],["class","panel panel-default",4,"ngIf"],["tabindex","0",1,"panel","panel-default"],[1,"panel-heading"],[1,"accent-color-red","no-side-padding",3,"title","click"],[1,"full-width","heading","panel-text"],[4,"ngIf"],[3,"title"],[1,"panel-body"],[1,"panel-footer"],["class","clearfix",4,"ngIf"],[1,"projected-bill","clearfix"],[1,"col-xs-6"],[3,"ngStyle"],[1,"header","bill-to-date"],[1,"amount"],[1,"dollar-sign"],[1,"footer"],[1,"header"],[1,"amount",2,"color","#666666"],[1,"clearfix"],[1,"col-xs-12"],[1,"clearfix","margin-top-15"],[1,"col-xs-12",2,"text-align","right"],["class","nv-btn nv-btn-blue","style","float: left",3,"click",4,"ngIf"],[1,"remaining-dos"],[1,"nv-btn","nv-btn-blue",2,"float","left",3,"click"],[1,"panel","panel-default"],[3,"title","click"],[1,"panel-text"],["class","panel-body text-center",4,"ngIf"],[1,"panel-body","text-center"]],template:function(n,o){1&n&&(e.TgZ(0,"div",0),e.YNc(1,ni,17,23,"div",1),e.YNc(2,ci,10,9,"div",2),e.qZA()),2&n&&(e.xp6(1),e.Q6J("ngIf",void 0!==o.accountProjectedBillDetails),e.xp6(1),e.Q6J("ngIf",void 0===o.accountProjectedBillDetails))},dependencies:[F.$,s.O5,s.PC,_.X$],styles:["#projected-bill[_ngcontent-%COMP%] .panel-body-has-data[_ngcontent-%COMP%]{padding:0;overflow-y:hidden}#projected-bill[_ngcontent-%COMP%] .projected-bill[_ngcontent-%COMP%]{text-align:center;color:#fff;height:180px}#projected-bill[_ngcontent-%COMP%] .projected-bill[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{padding:0;height:100%;position:relative}#projected-bill[_ngcontent-%COMP%] .projected-bill[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{background-color:#1f4371}#projected-bill[_ngcontent-%COMP%] .projected-bill[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{background-color:#347bd5}#projected-bill[_ngcontent-%COMP%] .projected-bill[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:100%;position:absolute;top:50%;transform:translateY(-50%)}#projected-bill[_ngcontent-%COMP%] .projected-bill[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{background:no-repeat top center}#projected-bill[_ngcontent-%COMP%] .projected-bill[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{background:no-repeat top center}#projected-bill[_ngcontent-%COMP%] .projected-bill[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{font-size:12px;line-height:12px;padding-top:4px}#projected-bill[_ngcontent-%COMP%] .projected-bill[_ngcontent-%COMP%] .header.bill-to-date[_ngcontent-%COMP%]{max-width:65px;margin:auto}#projected-bill[_ngcontent-%COMP%] .projected-bill[_ngcontent-%COMP%] .amount[_ng
1content-%COMP%]{font-family:Helvetica Neue,Helvetica,Arial,sans-serif!important;font-size:60px;letter-spacing:-4px;line-height:95px;color:#000}#projected-bill[_ngcontent-%COMP%] .projected-bill[_ngcontent-%COMP%] .dollar-sign[_ngcontent-%COMP%]{font-family:Helvetica Neue,Helvetica,Arial,sans-serif!important;font-size:22px;vertical-align:25px}#projected-bill[_ngcontent-%COMP%] .projected-bill[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%]{margin-top:15px;font-size:10px;line-height:10px}#projected-bill[_ngcontent-%COMP%] .remaining-dos[_ngcontent-%COMP%]{font-size:23px;font-weight:600;letter-spacing:-1px;padding-bottom:4px}"]}),a})();class de{constructor(a){this.cents=Math.abs(a)}get asDollars(){return this.cents/100}get totalDollars(){return Se(this.cents/100)}get asCents(){return this.cents}get totalCents(){return this.cents%100}static fromFloat(a){return new de(Se(100*a))}static parse(a){return this.fromFloat(parseFloat(a))}compareTo(a){return a&&a instanceof de?a.cents===this.cents?0:a.cents<this.cents?1:-1:null}equals(a){return!!(a&&a instanceof de)&&a.cents===this.cents}toString(){return this.asDollars.toLocaleString("en-US",{style:"currency",currency:"USD"})}}const Se=t=>t<0?Math.ceil(t):Math.floor(t);function di(t,a){1&t&&e._UZ(0,"span",21)}function pi(t,a){1&t&&e._UZ(0,"span",22)}function gi(t,a){if(1&t){const i=e.EpF();e.TgZ(0,"a",18),e.NdJ("click",function(){e.CHM(i);const o=e.oxw();return e.KtG(o.scroll())}),e.YNc(1,di,1,0,"span",19),e.YNc(2,pi,1,0,"span",20),e.qZA()}if(2&t){const i=e.oxw();e.xp6(1),e.Q6J("ngIf",i.isScrollUp),e.xp6(1),e.Q6J("ngIf",!i.isScrollUp)}}const Ne=function(t){return{dollars:t}};function _i(t,a){if(1&t&&(e.TgZ(0,"p",23)(1,"b"),e._uU(2),e.ALo(3,"translate"),e.qZA()()),2&t){const i=e.oxw();e.xp6(2),e.Oqu(e.xi3(3,1,"youSavedDollarsOnThisRate",e.VKq(4,Ne,i.dollars)))}}function ui(t,a){if(1&t&&(e.TgZ(0,"p",24)(1,"b"),e._uU(2),e.ALo(3,"translate"),e.qZA()()),2&t){const i=e.oxw();e.xp6(2),e.Oqu(e.xi3(3,1,"yourBillWasDollarsHigherThanOnTheStandardRate",e.VKq(4,Ne,i.dollars)))}}let mi=(()=>{var t;class a extends Z.W{constructor(n,o){super(n,o)}ngOnInit(){this.dollars=de.fromFloat(this.touComparison.glrAB405Difference),this.savedMoney=this.touComparison.glrAB405Difference<0}eventHandler(n){(n.code===ue.D.enter||n.code===ue.D.space)&&this.closeModal()}closeModal(){this.modalCtrl.dismiss()}}return(t=a).\u0275fac=function(n){return new(n||t)(e.Y36(c.IN),e.Y36(s.Ye))},t.\u0275cmp=e.Xpm({type:t,selectors:[["ng-component"]],inputs:{touComparison:"touComparison"},features:[e.qOj],decls:33,vars:20,consts:[[1,"nve-modal"],[1,"tou-comparison"],["mainDiv",""],["role","dialog","aria-labelledby","alertHeading","aria-describedby","alertText","tabindex","0",1,"flexible-modal","tooltip-modal"],["ion-fixed","",1,"fixed-place"],["class","modal-scroll-btns",3,"click",4,"ngIf"],[1,"modal-height-calc-wrapper"],["tabindex","0","aria-label","close button",1,"close-modal",3,"click","keypress"],[1,"ion-close-round"],[1,"heading",2,"margin","0 0 8px 0"],[2,"margin-top","10px"],["id","touSavedTxt",4,"ngIf","ngIfElse"],["notSaved",""],[2,"margin-top","20px"],[1,"panel-footer"],[1,"clearfix"],[1,"col-xs-12",2,"text-align","right"],["id","moreTipsBtn",1,"nv-btn","nv-btn-blue","tou-button",2,"float","left",3,"moveToPage","setPageToRoot","click"],[1,"modal-scroll-btns",3,"click"],["class","ion-ios-arrow-down","title","Scroll To Bottom",4,"ngIf"],["class","ion-ios-arrow-up","title","Scroll To Top",4,"ngIf"],["title","Scroll To Bottom",1,"ion-ios-arrow-down"],["title","Scroll To Top",1,"ion-ios-arrow-up"],["id","touSavedTxt"],["id","touNotSavedTxt"]],template:function(n,o){if(1&n&&(e.TgZ(0,"div",0)(1,"div",1,2)(3,"div",3)(4,"div",4),e.YNc(5,gi,3,2,"a",5),e.qZA(),e.TgZ(6,"div",6)(7,"div")(8,"a",7),e.NdJ("click",function(){return o.closeModal()})("keypress",function(r){return o.eventHandler(r)}),e._UZ(9,"span",8),e.qZA(),e.TgZ(10,"div")(11,"h1",9),e._uU(12),e.ALo(13,"translate"),e.qZA()(),e.TgZ(14,"div",10),e.YNc(15,_i,4,6,"p",11),e.YNc(16,ui,4,6,"ng-template",null,12,e.W1O),e.qZA(),e.TgZ(18,"div",13),e._uU(19),e.ALo(20,"translate"),e.qZA(),e.TgZ(21,"div",10),e._uU(22),e.ALo(23,"translate"),e.qZA(),e.TgZ(24,"div",10),e._uU(25),e.ALo(26,"translate"),e.qZA(),e.TgZ(27,"div",14)(28,"div",15)(29,"div",16)(30,"button",17),e.NdJ("click",function(){return o.closeModal()}),e._uU(31),e.ALo(32,"translate"),e.qZA()()()()()()()()()),2&n){const l=e.MAs(17);e.xp6(5),e.Q6J("ngIf",o.showScrollBtn),e.xp6(7),e.hij(" ",e.lcZ(13,10,"12MonthTouComparison")," "),e.xp6(3),e.Q6J("ngIf",o.savedMoney)("ngIfElse",l),e.xp6(4),e.hij(" ",e.lcZ(20,12,"setYourThermostatToCoolYourHouse")," "),e.xp6(3),e.hij(" ",e.lcZ(23,14,"useAppliancesDuringOffPeakHours")," "),e.xp6(3),e.hij(" ",e.lcZ(26,16,"setYourThermostatToHeatYourHouse")," "),e.xp6(5),e.Q6J("moveToPage","save-with-powershift/tips-to-save")("setPageToRoot",!0),e.xp6(1),e.hij(" ",e.lcZ(32,18,"moreTips")," ")}}
1,dependencies:[s.O5,H.a,_.X$],styles:[".nve[_ngcontent-%COMP%] .radio-md[_ngcontent-%COMP%] .radio-checked[_ngcontent-%COMP%]{border-color:#d2c9c7}.nve[_ngcontent-%COMP%] .radio-md[_ngcontent-%COMP%] .radio-inner[_ngcontent-%COMP%]{top:3px;left:3px;width:12px;height:12px}.nve[_ngcontent-%COMP%] .radio-md[_ngcontent-%COMP%] .radio-icon[_ngcontent-%COMP%]{border-color:#d2c9c7;background:#ffffff}.nve[_ngcontent-%COMP%] .checkbox-md[_ngcontent-%COMP%] .checkbox-checked[_ngcontent-%COMP%]{border-color:#d2c9c7;background-color:#fff}.nve[_ngcontent-%COMP%] .checkbox-md[_ngcontent-%COMP%] .checkbox-icon[_ngcontent-%COMP%]{width:20px;height:20px;border-width:1px;border-style:solid;border-radius:1px;border-color:#d2c9c7;background-color:#fff}.nve[_ngcontent-%COMP%] .checkbox-md[_ngcontent-%COMP%] .checkbox-checked[_ngcontent-%COMP%] .checkbox-inner[_ngcontent-%COMP%]{top:0;left:7px;width:5px;height:14px}.nve[_ngcontent-%COMP%] .checkbox-md.checkbox-disabled[_ngcontent-%COMP%], .nve[_ngcontent-%COMP%] .item-md.item-checkbox-disabled[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{opacity:.6;pointer-events:none;background:#ccc}.nve[_ngcontent-%COMP%] .radio-md.radio-disabled[_ngcontent-%COMP%], .nve[_ngcontent-%COMP%] .item-md.item-radio-disabled[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{opacity:.6;pointer-events:none}.nve[_ngcontent-%COMP%] .radio-md.radio-disabled[_ngcontent-%COMP%] .radio-icon[_ngcontent-%COMP%], .nve[_ngcontent-%COMP%] .item-md.item-radio-disabled[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%] .radio-icon[_ngcontent-%COMP%]{background:#cccccc}.nve[_ngcontent-%COMP%] ion-radio.radio-disabled[_ngcontent-%COMP%]{opacity:.6;pointer-events:none}.nve[_ngcontent-%COMP%] ion-radio.radio-disabled[_ngcontent-%COMP%]::part(container){background:#cccccc}.nve[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-size:1em;font-weight:400;color:#000}.nve-modal[_ngcontent-%COMP%] .tou-comparison[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%]{padding:0!important;max-width:415px;max-height:415px!important;overflow:hidden;background:#f5fbfe;color:#808285}.nve-modal[_ngcontent-%COMP%] .tou-comparison[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%] .clearfix[_ngcontent-%COMP%]:first-of-type > div[_ngcontent-%COMP%]{padding:0}.nve-modal[_ngcontent-%COMP%] .tou-comparison[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%] .page-sidebar[_ngcontent-%COMP%]{display:none}.nve-modal[_ngcontent-%COMP%] .tou-comparison[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%] .panel-footer[_ngcontent-%COMP%]{background-color:transparent;border-top:0px;position:absolute;bottom:5px;left:0}.nve-modal[_ngcontent-%COMP%] .tou-comparison[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%] .page-content[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.nve-modal[_ngcontent-%COMP%] .tou-comparison[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%] .pageWrapper[_ngcontent-%COMP%] .page-content[_ngcontent-%COMP%], .nve-modal[_ngcontent-%COMP%] .tou-comparison[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%] .pageWrapper[_ngcontent-%COMP%] #pageContent[_ngcontent-%COMP%]{min-height:auto}.nve-modal[_ngcontent-%COMP%] .tou-comparison[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%] .scroll-content[_ngcontent-%COMP%] .modal-scroll-content[_ngcontent-%COMP%]{max-height:340px!important;overflow-y:scroll;padding:20px 30px 20px 20px}.nve-modal[_ngcontent-%COMP%] .tou-comparison[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%] .fixed-content[_ngcontent-%COMP%]{display:block!important}.nve-modal[_ngcontent-%COMP%] .tou-comparison[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%] .fixed-place[_ngcontent-%COMP%]{position:absolute;right:20px;top:300px}.nve-modal[_ngcontent-%COMP%] .tou-comparison[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%] .modal-scroll-btns[_ngcontent-%COMP%]{border:unset!important;background:unset!important;overflow:hidden!important;background:#469abe!important;height:auto!important;z-index:100000;color:#fff;text-align:center;font-weight:bolder;font-size:22px;padding:5px!important}.nve-modal[_ngcontent-%COMP%] .tou-comparison[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%] .modal
1-height-calc-wrapper[_ngcontent-%COMP%]{padding:20px}.nve-modal[_ngcontent-%COMP%] .tou-comparison[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%] .tou-comparison[_ngcontent-%COMP%]{text-align:center;color:#fff}.nve-modal[_ngcontent-%COMP%] .tou-comparison[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%] .tou-comparison[_ngcontent-%COMP%] div[_ngcontent-%COMP%], .nve-modal[_ngcontent-%COMP%] .tou-comparison[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%] .tou-comparison[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-family:Helvetica Neue,Helvetica,Arial,sans-serif!important}.nve-modal[_ngcontent-%COMP%] .tou-comparison[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%] .tou-comparison[_ngcontent-%COMP%] .bf-nxtwk-container[_ngcontent-%COMP%]{background-color:#1f4371}.nve-modal[_ngcontent-%COMP%] .tou-comparison[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%] .tou-comparison[_ngcontent-%COMP%] .bf-container[_ngcontent-%COMP%]:nth-child(even){background-color:#2962a9}.nve-modal[_ngcontent-%COMP%] .tou-comparison[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%] .tou-comparison[_ngcontent-%COMP%] .bf-container[_ngcontent-%COMP%]:nth-child(odd){background-color:#347bd5}.nve-modal[_ngcontent-%COMP%] .tou-comparison[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%] .tou-comparison[_ngcontent-%COMP%] .bf-nxtwk-container[_ngcontent-%COMP%]{padding:14px 0 0!important;height:134px;overflow:hidden}.nve-modal[_ngcontent-%COMP%] .tou-comparison[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%] .tou-comparison[_ngcontent-%COMP%] .bf-nxtwk-container[_ngcontent-%COMP%] .next-week[_ngcontent-%COMP%]{font-size:19px}@media (max-width: 344px){.nve-modal[_ngcontent-%COMP%] .tou-comparison[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%] .tou-comparison[_ngcontent-%COMP%] .bf-nxtwk-container[_ngcontent-%COMP%] .next-week[_ngcontent-%COMP%]{font-size:16px!important}}.nve-modal[_ngcontent-%COMP%] .tou-comparison[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%] .tou-comparison[_ngcontent-%COMP%] .bf-container[_ngcontent-%COMP%]{padding:5px 0 0!important;height:134px;overflow:hidden}.nve-modal[_ngcontent-%COMP%] .tou-comparison[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%] .tou-comparison[_ngcontent-%COMP%] .date-span[_ngcontent-%COMP%]{font-size:20px;letter-spacing:-1px}.nve-modal[_ngcontent-%COMP%] .tou-comparison[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%] .tou-comparison[_ngcontent-%COMP%] .day-temp[_ngcontent-%COMP%]{font-size:8px;font-weight:700;color:#ccc;letter-spacing:1px}.nve-modal[_ngcontent-%COMP%] .tou-comparison[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%] .tou-comparison[_ngcontent-%COMP%] .temp[_ngcontent-%COMP%]{letter-spacing:0}.nve-modal[_ngcontent-%COMP%] .tou-comparison[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%] .tou-comparison[_ngcontent-%COMP%] .amount[_ngcontent-%COMP%]{font-size:14px;letter-spacing:-1px;vertical-align:top;padding-bottom:14px}.nve-modal[_ngcontent-%COMP%] .tou-comparison[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%] .tou-comparison[_ngcontent-%COMP%] .amount-dollar[_ngcontent-%COMP%]{font-size:33px;vertical-align:-14px}.nve-modal[_ngcontent-%COMP%] .flexible-modal[_ngcontent-%COMP%]{overflow:hidden;padding:0!important;max-height:calc(100% - 100px);position:fixed;top:50%;left:50%;right:auto;bottom:auto;height:387px;width:90%;max-width:1024px;transform:translate(-50%,-50%);background:#f6f6f8;border:2px solid #808285;contain:none}@media screen and (min-width: 445px) and (max-width: 767px){.nve-modal[_ngcontent-%COMP%] .flexible-modal[_ngcontent-%COMP%]{height:380pxlocal 4}}@media screen and (max-width: 444px){.nve-modal[_ngcontent-%COMP%] .flexible-modal[_ngcontent-%COMP%]{height:395pxlocal 4}}.nve-modal[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%]{padding:10px!important;max-width:415px;max-height:340px!important;overflow-x:hidden;background:#f5f5f5;color:#808285}@media screen and (min-height: 320px) and (max-height: 500px){.nve-modal[_ngcontent-%COMP%] .bill-forecast[_ngcontent-%COMP%] .tooltip-modal[_ngcontent-%COMP%]{max-height:285px!important;overflow-x:hidden;overflow-y:scroll}}"]}),a})();var he=d(33691),De=d(33792),Ti=d(92697);function fi(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"-"),e.qZA())}function vi(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"+"),e.qZA())}function hi(t,a){1&t&&(e.TgZ(0,"div",10),e._UZ(1,"nve-spinner"),e.qZA())}function xi(t,a){1&t&&(e.TgZ(0,"div",10)(1,"div",11)(2,"div",12),e._uU(3),e.ALo(4,"translate"),e.qZA()()()),2&t&&(e.xp6(3),e.Oqu(e.l
1cZ(4,1,"TILES.NEXTBESTACTION.MYUSAGE.WRONG")))}function Ci(t,a){if(1&t&&(e.TgZ(0,"div"),e.YNc(1,hi,2,0,"div",8),e.YNc(2,xi,5,3,"div",8),e._UZ(3,"div",9),e.qZA()),2&t){const i=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!i.isErrorOccured),e.xp6(1),e.Q6J("ngIf",i.isErrorOccured)}}function Ai(t,a){if(1&t){const i=e.EpF();e.TgZ(0,"div",3)(1,"div",4)(2,"h2",5),e.NdJ("click",function(){e.CHM(i);const o=e.oxw();return e.KtG(o.onUserToggle())}),e.ALo(3,"translate"),e.YNc(4,fi,2,0,"span",6),e.YNc(5,vi,2,0,"span",6),e.TgZ(6,"span",7),e._uU(7),e.ALo(8,"translate"),e.qZA()()(),e.YNc(9,Ci,4,2,"div",6),e.qZA()}if(2&t){const i=e.oxw();e.xp6(2),e.s9C("title",e.lcZ(3,5,"TILES.NEXTBESTACTION.MYUSAGE.HEADING")),e.xp6(2),e.Q6J("ngIf",i.showPanelAndBody),e.xp6(1),e.Q6J("ngIf",!i.showPanelAndBody),e.xp6(2),e.Oqu(e.lcZ(8,7,"TILES.NEXTBESTACTION.MYUSAGE.HEADING")),e.xp6(2),e.Q6J("ngIf",i.showPanelAndBody)}}function Oi(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"-"),e.qZA())}function Pi(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"+"),e.qZA())}function Ei(t,a){if(1&t&&(e.TgZ(0,"span",16),e.ALo(1,"translate"),e.ALo(2,"currency"),e.ALo(3,"translate"),e._uU(4),e.ALo(5,"translate"),e.ALo(6,"currency"),e.ALo(7,"translate"),e.qZA()),2&t){const i=e.oxw(2);e.cQ8("title","",e.lcZ(1,6,"TILES.NEXTBESTACTION.MYUSAGE.TITLE")," ",e.gM2(2,8,i.avgAmountSpent,"USD","symbol","1.2-2")," ",e.lcZ(3,13,"TILES.NEXTBESTACTION.MYUSAGE.TITLE1"),""),e.xp6(4),e.lnq("",e.lcZ(5,15,"TILES.NEXTBESTACTION.MYUSAGE.TITLE")," ",e.gM2(6,17,i.avgAmountSpent,"USD","symbol","1.2-2")," ",e.lcZ(7,22,"TILES.NEXTBESTACTION.MYUSAGE.TITLE1"),"")}}function bi(t,a){1&t&&(e.TgZ(0,"span",16),e.ALo(1,"translate"),e._uU(2),e.ALo(3,"translate"),e.qZA()),2&t&&(e.s9C("title",e.lcZ(1,2,"TILES.NEXTBESTACTION.MYUSAGE.LEARNMORE")),e.xp6(2),e.Oqu(e.lcZ(3,4,"TILES.NEXTBESTACTION.MYUSAGE.LEARNMORE")))}function Mi(t,a){1&t&&e._UZ(0,"nve-spinner")}function Ii(t,a){if(1&t&&(e.TgZ(0,"div",23),e._UZ(1,"amCharts",24),e.qZA()),2&t){const i=e.oxw(3);e.Udp("width",100,"%")("height",165,"px"),e.xp6(1),e.Udp("width",50,"%")("height",165,"px"),e.Q6J("id",i.id)("options",i._chart)}}function yi(t,a){1&t&&(e.TgZ(0,"div",11)(1,"div",12),e._uU(2),e.ALo(3,"translate"),e.qZA()()),2&t&&(e.xp6(2),e.Oqu(e.lcZ(3,1,"TILES.NEXTBESTACTION.MYUSAGE.NODATA")))}function Li(t,a){if(1&t){const i=e.EpF();e.TgZ(0,"button",25),e.NdJ("click",function(){e.CHM(i);const o=e.oxw(3);return e.KtG(o.openTOUComparison())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"TILES.NEXTBESTACTION.MYUSAGE.TOUCOMPARISON")," "))}function Zi(t,a){if(1&t&&(e.TgZ(0,"div"),e.YNc(1,Mi,1,0,"nve-spinner",6),e.TgZ(2,"div",17),e.YNc(3,Ii,2,10,"div",18),e.YNc(4,yi,4,3,"div",19),e.qZA(),e.TgZ(5,"div",9)(6,"div",11)(7,"div",20)(8,"button",21),e._uU(9),e.ALo(10,"translate"),e.qZA(),e.YNc(11,Li,3,3,"button",22),e.qZA()()()()),2&t){const i=e.oxw(2);e.xp6(1),e.Q6J("ngIf",i.isLoading),e.xp6(2),e.Q6J("ngIf",i.chartBoolean),e.xp6(1),e.Q6J("ngIf",!i.chartBoolean),e.xp6(4),e.Q6J("moveToPage","my-account/view-usage")("setPageToRoot",!0),e.xp6(1),e.hij(" ",e.lcZ(10,7,"TILES.NEXTBESTACTION.MYUSAGE.VIEWUSAGE")," "),e.xp6(2),e.Q6J("ngIf",i.eligibleForTouComparison&&i.touIsEnabled)}}function Si(t,a){if(1&t){const i=e.EpF();e.TgZ(0,"div",13)(1,"div",4)(2,"h2",14),e.NdJ("click",function(){e.CHM(i);const o=e.oxw();return e.KtG(o.onUserToggle())}),e.ALo(3,"translate"),e.YNc(4,Oi,2,0,"span",6),e.YNc(5,Pi,2,0,"span",6),e.TgZ(6,"span",7),e._uU(7),e.ALo(8,"translate"),e.qZA()(),e.YNc(9,Ei,8,24,"span",15),e.YNc(10,bi,4,6,"span",15),e.qZA(),e.YNc(11,Zi,12,9,"div",6),e.qZA()}if(2&t){const i=e.oxw();e.xp6(2),e.s9C("title",e.lcZ(3,7,"TILES.NEXTBESTACTION.MYUSAGE.HEADING")),e.xp6(2),e.Q6J("ngIf",i.showPanelAndBody),e.xp6(1),e.Q6J("ngIf",!i.showPanelAndBody),e.xp6(2),e.Oqu(e.lcZ(8,9,i.titleTitle)),e.xp6(2),e.Q6J("ngIf",i.costAvailable),e.xp6(1),e.Q6J("ngIf",!i.costAvailable),e.xp6(1),e.Q6J("ngIf",i.showPanelAndBody)}}let Ni=(()=>{var t;class a{constructor(n,o,l,r,p,u,x){this.widgetsService=n,this.translate=o,this.viewUsageService=l,this.userService=r,this.config=p,this.modalCtrl=u,this.touService=x,this.id="chartdiv",this.options="_chart",this.interval="weekly",this.endDate=new Date,this.startDateLL="",this.chartBoolean=!0,this.isChartReady=!1,this.isErrorOccured=!1,this.costAvailable=!1,this.avgAmountSpent=0,this.eligibleForTouComparison=!1,this.showPanelAndBody=!1,this.widgetId=7,this.titleTitle="PAGES.MYUSAGE.TITLE",this.isLoading=!1,this.isDataLoaded=!1,this.widgetsService.closeEventEmitter.subscribe(E=>{E!==this.widgetId&&this.showPanelAndBody&&this.togglePanelAndBody()})}set index(n){this.widgetIndex=n}ngOnInit(){this.widgetIndex<this.config.config.numberOfTilesOpenByDefault&&(this.showPanelAndBody=!0),this.touIsEnabled=this.config.config.features.touComparison.enabled,this.getChart()}togglePanelAndBody(){this.showPanelAndBody=!this.showPanelAndBody}onUserToggle(){this.togglePanelAndBody(),this.widgetsService.toggleWidgetEvent(this.widgetId),this.showPanelAndBody&&(this.isDataLoaded||this.getChart())}getChart(){void 0!==this.interval&&void 0!==this.endDate&&((new Date).getUTCHours()-8<16&&(this.endDate=new Date(this.endDate.getTime()-864e5)),this.endDate=re(this.endDate,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DD"),this.getChartData()),this.isDataLoaded=!0}getChartData(){this.viewUsageService.getChart({interval:this.interval,endDate:this.endDate,isRequestForTile:!0}).then(o=>{o.chart?o.isLastDataNotAvailable||(this.titleTitle="Electric and Gas Usage"===o.chartType?"PAGES.MYUSAGE.TITLE1":-1!==o.chartType.indexOf("Daily Usage (kWh)")?"PAGES.MYUSAGE.TITLE2":"PAGES.MYUSAGE.TITLE",this.chartBoolean=!0,this._chart=o.chart,void 0!==o.costAverage&&0!==o.costAverage?(this.avgAmountSpent=o.costAverage,this.costAvailable=!0):this.costAvailable=!1,this.touIsEnabled?this.getTouComparison():this.isLoading=!1):this.chartBoolean=!1,this.isChartReady=!0}).catch(o=>{this.isErrorOccured=!0,this.isLoading=!1})}getTouComparison(){this.touService.getTouComparison().then(n=>{this.touComparison=n,this.eligibleForTouComparison=!!this.touComparison.glrAB405Difference&&null!==this.touComparison.glrAB405Difference&&0!==this.touComparison.glrAB405Difference,this.isLoading=!1}
1).catch(n=>{this.eligibleForTouComparison=!1,this.isLoading=!1})}openTOUComparison(){this.modalCtrl.create({component:mi,componentProps:{touComparison:this.touComparison}}).then(n=>n.present())}}return(t=a).\u0275fac=function(n){return new(n||t)(e.Y36(Y.L),e.Y36(_.sK),e.Y36(De.q),e.Y36(f.K),e.Y36(T._),e.Y36(c.IN),e.Y36(he.Mw))},t.\u0275cmp=e.Xpm({type:t,selectors:[["nve-my-usage-tile"]],inputs:{index:"index"},decls:3,vars:2,consts:[[1,"widget-component"],["class","panel panel-default",4,"ngIf"],["class","panel panel-default","tabindex","0",4,"ngIf"],[1,"panel","panel-default"],[1,"panel-heading"],[3,"title","click"],[4,"ngIf"],[1,"panel-text"],["class","panel-body text-center",4,"ngIf"],[1,"panel-footer"],[1,"panel-body","text-center"],[1,"clearfix"],[1,"col-xs-12"],["tabindex","0",1,"panel","panel-default"],[1,"accent-color-red",3,"title","click"],[3,"title",4,"ngIf"],[3,"title"],[1,"panel-body","my-usage",2,"padding","15px 0 0 0"],["myUsageChart","","id","chartdiv",3,"width","height",4,"ngIf"],["class","clearfix",4,"ngIf"],[1,"col-xs-12",2,"text-align","right"],[1,"nv-btn","nv-btn-blue",2,"float","left",3,"moveToPage","setPageToRoot"],["class","nv-btn nv-btn-blue",3,"click",4,"ngIf"],["myUsageChart","","id","chartdiv"],[3,"id","options"],[1,"nv-btn","nv-btn-blue",3,"click"]],template:function(n,o){1&n&&(e.TgZ(0,"div",0),e.YNc(1,Ai,10,9,"div",1),e.YNc(2,Si,12,11,"div",2),e.qZA()),2&n&&(e.xp6(1),e.Q6J("ngIf",!o.isChartReady),e.xp6(1),e.Q6J("ngIf",o.isChartReady))},dependencies:[F.$,s.O5,H.a,Ti.E,_.X$,s.H9],encapsulation:2}),a})();var Di=d(10913),wi=d(51302);function Bi(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"-"),e.qZA())}function Ui(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"+"),e.qZA())}function Ri(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"MODALS.HBARATECOMP.MAYSAVE")))}function Yi(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"MODALS.HBARATECOMP.ONTOURATE")))}function qi(t,a){1&t&&(e.TgZ(0,"div")(1,"div",6),e._UZ(2,"nve-tou-hba-rate-comparison-widget"),e.qZA()())}let Fi=(()=>{var t;class a{constructor(n,o,l,r){this.widgetsService=n,this.config=o,this.touService=l,this.logger=r,this.showPanelAndBody=!1,this.widgetId=8,this.isLoading=!0,this.widgetsService.closeEventEmitter.subscribe(p=>{p!==this.widgetId&&this.showPanelAndBody&&this.togglePanelAndBody()})}set index(n){this.widgetIndex=n}ngOnInit(){var n=this;return(0,C.Z)(function*(){n.widgetIndex<n.config.config.numberOfTilesOpenByDefault&&(n.showPanelAndBody=!0);try{const o=yield n.touService.getTouEligibility();n.currentPlanStandardTou=!!(0,Di.m)(o).isTOU,n.isLoading=!1}catch(o){n.logger.error("Unexpected server error loading TOU Eligibility for Rate Options tile",o),n.isLoading=!1}})()}togglePanelAndBody(){this.showPanelAndBody=!this.showPanelAndBody}onUserToggle(){this.togglePanelAndBody(),this.widgetsService.toggleWidgetEvent(this.widgetId)}}return(t=a).\u0275fac=function(n){return new(n||t)(e.Y36(Y.L),e.Y36(T._),e.Y36(he.Mw),e.Y36(X.Y))},t.\u0275cmp=e.Xpm({type:t,selectors:[["nve-hba-rate-options-tile"]],inputs:{index:"index"},decls:11,vars:5,consts:[[1,"widget-component"],[1,"panel","panel-default"],[1,"panel-heading"],["tabindex","0",1,"accent-color-red",3,"click"],[4,"ngIf"],[1,"panel-text"],[1,"panel-body","panel-body-no-footer"]],template:function(n,o){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2",3),e.NdJ("click",function(){return o.onUserToggle()}),e.YNc(4,Bi,2,0,"span",4),e.YNc(5,Ui,2,0,"span",4),e.TgZ(6,"span",5),e._uU(7," RATE OPTIONS "),e.qZA()(),e.YNc(8,Ri,3,3,"span",4),e.YNc(9,Yi,3,3,"span",4),e.qZA(),e.YNc(10,qi,3,0,"div",4),e.qZA()()),2&n&&(e.xp6(4),e.Q6J("ngIf",o.showPanelAndBody),e.xp6(1),e.Q6J("ngIf",!o.showPanelAndBody),e.xp6(3),e.Q6J("ngIf",!o.isLoading&&!o.currentPlanStandardTou),e.xp6(1),e.Q6J("ngIf",!o.isLoading&&o.currentPlanStandardTou),e.xp6(1),e.Q6J("ngIf",o.showPanelAndBody))},dependencies:[s.O5,wi.K,_.X$]}),a})();function ki(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"-"),e.qZA())}function Ji(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"+"),e.qZA())}function Gi(t,a){if(1&t&&(e.TgZ(0,"div")(1,"div",11)(2,"div",12)(3,"b"),e._uU(4),e.qZA(),e._UZ(5,"a",13),e.qZA(),e.TgZ(6,"div",14)(7,"b"),e._uU(8),e.ALo(9,"translate"),e.qZA(),e._UZ(10,"a",13),e.qZA()(),e.TgZ(11,"div",11)(12,"div",15),e._uU(13),e.ALo(14,"date"),e._UZ(15,"a",13),e.qZA(),e.TgZ(16,"div",16)(17,"span",17)(18,"span",18),e._uU(19),e.ALo(20,"number"),e.ALo(21,"translate"),e.qZA()()()(),e.TgZ(22,"div",19)(23,"div",20)(24,"a",21),e._uU(25),e.ALo(26,"translate"),e.qZA()()()()),2&t){const i=a.$implicit;e.xp6(4),e.Oqu(i.description),e.xp6(4),e.AsE("",e.lcZ(9,9,"COMPONENTS.TILES.DEMANDTILE.MTR")," ",i.meterNumber,""),e.xp6(5),e.hij(" ",e.xi3(14,11,i.maxDemandDate,"medium")," "),e.xp6(6),e.AsE("",e.xi3(20,14,i.consumption,"1.1-2")," ",e.lcZ(21,17,"COMPONENTS.TILES.DEMANDTILE.KW"),""),e.xp6(5),e.Q6J("moveToPage","my-account/view-usage")("setPageToRoot",!0),e.xp6(1),e.Oqu(e.l
1cZ(26,19,"COMPONENTS.TILES.DEMANDTILE.VIEW"))}}function Qi(t,a){if(1&t&&(e.TgZ(0,"div")(1,"div",11)(2,"div",12)(3,"b"),e._uU(4),e.qZA(),e._UZ(5,"a",13),e.qZA(),e.TgZ(6,"div",14)(7,"b"),e._uU(8),e.qZA(),e._UZ(9,"a",13),e.qZA()(),e.TgZ(10,"div",11)(11,"div",20)(12,"span",17)(13,"span",18),e._uU(14),e.ALo(15,"number"),e.ALo(16,"translate"),e.qZA()()()(),e.TgZ(17,"div",19)(18,"div",20)(19,"a",21),e._uU(20),e.ALo(21,"translate"),e.qZA()()()()),2&t){const i=a.$implicit;e.xp6(4),e.Oqu(i.description),e.xp6(4),e.hij("Mtr# ",i.meterNumber,""),e.xp6(6),e.AsE("",e.xi3(15,7,i.consumption,"1.1-2")," ",e.lcZ(16,10,"COMPONENTS.TILES.DEMANDTILE.KWH"),""),e.xp6(5),e.Q6J("moveToPage","my-account/view-usage")("setPageToRoot",!0),e.xp6(1),e.Oqu(e.lcZ(21,12,"COMPONENTS.TILES.DEMANDTILE.VIEW"))}}function Hi(t,a){if(1&t&&(e.TgZ(0,"div")(1,"div",9),e.YNc(2,Gi,27,21,"div",10),e.YNc(3,Qi,22,14,"div",10),e.qZA()()),2&t){const i=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",i.demandByMeters),e.xp6(1),e.Q6J("ngForOf",i.consumptionByMeters)}}function ji(t,a){if(1&t){const i=e.EpF();e.TgZ(0,"div",3)(1,"div",4)(2,"h2",5),e.NdJ("click",function(){e.CHM(i);const o=e.oxw();return e.KtG(o.onUserToggle())}),e.ALo(3,"translate"),e.YNc(4,ki,2,0,"span",6),e.YNc(5,Ji,2,0,"span",6),e.TgZ(6,"span",7),e._uU(7),e.ALo(8,"translate"),e.qZA()(),e.TgZ(9,"span",8),e.ALo(10,"translate"),e._uU(11),e.ALo(12,"translate"),e.qZA()(),e.YNc(13,Hi,4,2,"div",6),e.qZA()}if(2&t){const i=e.oxw();e.xp6(2),e.s9C("title",e.lcZ(3,7,"COMPONENTS.TILES.DEMANDTILE.HEADING")),e.xp6(2),e.Q6J("ngIf",i.showPanelAndBody),e.xp6(1),e.Q6J("ngIf",!i.showPanelAndBody),e.xp6(2),e.Oqu(e.lcZ(8,9,"COMPONENTS.TILES.DEMANDTILE.HEADING")),e.xp6(2),e.s9C("title",e.lcZ(10,11,"COMPONENTS.TILES.DEMANDTILE.HEADING1")),e.xp6(2),e.Oqu(e.lcZ(12,13,"COMPONENTS.TILES.DEMANDTILE.HEADING1")),e.xp6(2),e.Q6J("ngIf",i.showPanelAndBody)}}function Wi(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"-"),e.qZA())}function Ki(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"+"),e.qZA())}function Xi(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"COMPONENTS.TILES.DEMANDTILE.STATICHEADING")))}function $i(t,a){1&t&&(e.TgZ(0,"div",27),e._UZ(1,"nve-spinner"),e.qZA())}function zi(t,a){1&t&&(e.TgZ(0,"div",27)(1,"div",11)(2,"div",28),e._uU(3),e.ALo(4,"translate"),e.qZA()()()),2&t&&(e.xp6(3),e.Oqu(e.lcZ(4,1,"COMPONENTS.TILES.DEMANDTILE.HEADING2")))}function Vi(t,a){if(1&t&&(e.TgZ(0,"div"),e.YNc(1,$i,2,0,"div",25),e.YNc(2,zi,5,3,"div",25),e._UZ(3,"div",26),e.qZA()),2&t){const i=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!i.isErrorOccured),e.xp6(1),e.Q6J("ngIf",i.isErrorOccured)}}function eo(t,a){if(1&t){const i=e.EpF();e.TgZ(0,"div",22)(1,"div",23)(2,"h2",24),e.NdJ("click",function(){e.CHM(i);const o=e.oxw();return e.KtG(o.onUserToggle())}),e.ALo(3,"translate"),e.YNc(4,Wi,2,0,"span",6),e.YNc(5,Ki,2,0,"span",6),e.TgZ(6,"span",7),e._uU(7),e.ALo(8,"translate"),e.qZA()(),e.YNc(9,Xi,3,3,"span",6),e.qZA(),e.YNc(10,Vi,4,2,"div",6),e.qZA()}if(2&t){const i=e.oxw();e.xp6(2),e.s9C("title",e.lcZ(3,6,"COMPONENTS.TILES.DEMANDTILE.DEMAND")),e.xp6(2),e.Q6J("ngIf",i.showPanelAndBody),e.xp6(1),e.Q6J("ngIf",!i.showPanelAndBody),e.xp6(2),e.Oqu(e.lcZ(8,8,"COMPONENTS.TILES.DEMANDTILE.DEMAND")),e.xp6(2),e.Q6J("ngIf",!i.showPanelAndBody||!i.isDataLoaded),e.xp6(1),e.Q6J("ngIf",i.showPanelAndBody)}}let to=(()=>{var t;class a{constructor(n,o,l){this.viewUsageService=n,this.widgetsService=o,this.config=l,this.consumptionByMeters=void 0,this.demandByMeters=void 0,this.isErrorOccured=!1,this.showPanelAndBody=!1,this.isDataLoaded=!1,this.widgetId=3,this.widgetsService.closeEventEmitter.subscribe(r=>{r!==this.widgetId&&this.showPanelAndBody&&this.togglePanelAndBody()})}set index(n){this.widgetIndex=n}ngOnInit(){this.widgetIndex<this.config.config.numberOfTilesOpenByDefault&&(this.showPanelAndBody=!0,this.getDemandTileDetails())}togglePanelAndBody(){this.showPanelAndBody=!this.showPanelAndBody,this.showPanelAndBody&&(this.widgetIndex<this.config.config.numberOfTilesOpenByDefault&&(this.showPanelAndBody=!0),this.isDataLoaded||this.getDemandTileDetails())}onUserToggle(){this.togglePanelAndBody(),this.widgetsService.toggleWidgetEvent(this.widgetId)}getDemandTileDetails(){this.viewUsageService.getDemandTileDetails().then(n=>
1{this.consumptionByMeters=n.consumptionByMeters,this.demandByMeters=n.demandByMeters,this.isDataLoaded=!0}).catch(n=>{this.isErrorOccured=!0})}viewMessageCenter(n){}}return(t=a).\u0275fac=function(n){return new(n||t)(e.Y36(De.q),e.Y36(Y.L),e.Y36(T._))},t.\u0275cmp=e.Xpm({type:t,selectors:[["nve-demand-tile"]],inputs:{index:"index"},decls:3,vars:2,consts:[[1,"widget-component"],["class","panel panel-default","tabindex","0",4,"ngIf"],["class","panel panel-default",4,"ngIf"],["tabindex","0",1,"panel","panel-default"],[1,"panel-heading","demand-heading"],[1,"accent-color-red","demand-title",3,"title","click"],[4,"ngIf"],[1,"panel-text"],[3,"title"],[1,"panel-body","panel-body-no-footer"],[4,"ngFor","ngForOf"],[1,"clearfix"],[1,"col-xs-6"],["href","#",1,"header-info-icon"],[1,"col-xs-6","text-right"],[1,"col-xs-8"],[1,"col-xs-4","text-right"],[2,"white-space","nowrap"],[1,"md-text"],[1,"clearfix","margin-bottom-15"],[1,"col-xs-12","text-right"],["tappable","",3,"moveToPage","setPageToRoot"],[1,"panel","panel-default"],[1,"panel-heading"],[3,"title","click"],["class","panel-body text-center",4,"ngIf"],[1,"panel-footer"],[1,"panel-body","text-center"],[1,"col-xs-12"]],template:function(n,o){1&n&&(e.TgZ(0,"div",0),e.YNc(1,ji,14,15,"div",1),e.YNc(2,eo,11,10,"div",2),e.qZA()),2&n&&(e.xp6(1),e.Q6J("ngIf",void 0!==o.demandByMeters&&!o.isErrorOccured),e.xp6(1),e.Q6J("ngIf",void 0===o.demandByMeters))}
1,dependencies:[F.$,s.sg,s.O5,H.a,_.X$,s.JJ,s.uU],encapsulation:2}),a})();var no=d(6849);function io(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"-"),e.qZA())}function oo(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"+"),e.qZA())}function ao(t,a){1&t&&(e.TgZ(0,"span",8),e.ALo(1,"translate"),e._uU(2),e.ALo(3,"translate"),e.qZA()),2&t&&(e.s9C("title",e.lcZ(1,2,"TILES.OUTAGE.NOOUTAGE")),e.xp6(2),e.Oqu(e.lcZ(3,4,"TILES.OUTAGE.NOOUTAGE")))}function lo(t,a){1&t&&(e.TgZ(0,"span",9),e.ALo(1,"translate"),e._uU(2),e.ALo(3,"translate"),e.qZA()),2&t&&(e.s9C("title",e.lcZ(1,2,"TILES.OUTAGE.VERIFIED")),e.xp6(2),e.Oqu(e.lcZ(3,4,"TILES.OUTAGE.VERIFIED")))}function so(t,a){1&t&&(e.TgZ(0,"span",9),e.ALo(1,"translate"),e._uU(2),e.ALo(3,"translate"),e.qZA()),2&t&&(e.s9C("title",e.lcZ(1,2,"TILES.OUTAGE.UNDERINVESTIGATION")),e.xp6(2),e.Oqu(e.lcZ(3,4,"TILES.OUTAGE.UNDERINVESTIGATION")))}function co(t,a){1&t&&(e.TgZ(0,"span",8),e.ALo(1,"translate"),e._uU(2),e.ALo(3,"translate"),e.qZA()),2&t&&(e.s9C("title",e.lcZ(1,2,"TILES.OUTAGE.STATICHEADING")),e.xp6(2),e.Oqu(e.lcZ(3,4,"TILES.OUTAGE.STATICHEADING")))}function ro(t,a){1&t&&(e.TgZ(0,"div",15),e._UZ(1,"nve-spinner"),e.qZA())}function po(t,a){if(1&t&&(e.TgZ(0,"div",13)(1,"div",13)(2,"div",18)(3,"b"),e._uU(4),e.qZA()(),e.TgZ(5,"div",19),e._uU(6),e.ALo(7,"translate"),e.qZA()(),e.TgZ(8,"div",20)(9,"div",14)(10,"span",21),e._uU(11),e.ALo(12,"translate"),e.qZA()()()()),2&t){const i=e.oxw(3);e.xp6(4),e.Oqu(i.accountNickName),e.xp6(2),e.Oqu(e.lcZ(7,3,"TILES.OUTAGE.NOOUTAGEMSG")),e.xp6(5),e.Oqu(e.l
1cZ(12,5,"TILES.OUTAGE.NOOUTAGEPROMOMSG"))}}function go(t,a){1&t&&(e.TgZ(0,"div",36),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"TILES.OUTAGE.OUTAGEREPORTED")," "))}function _o(t,a){1&t&&(e.TgZ(0,"div",36),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"TILES.OUTAGE.OUTAGESTARTTIME")," "))}function uo(t,a){1&t&&(e.ynx(0),e.TgZ(1,"div",36),e._uU(2),e.ALo(3,"translate"),e._UZ(4,"nve-tool-tip",37),e.qZA(),e.BQk()),2&t&&(e.xp6(2),e.hij(" ",e.lcZ(3,2,"TILES.OUTAGE.ETR")," "),e.xp6(2),e.Q6J("isToolTip",!0))}function mo(t,a){if(1&t&&(e.ynx(0),e.YNc(1,uo,5,4,"ng-container",31),e.BQk()),2&t){e.oxw();const i=e.MAs(29),n=e.oxw(3);e.xp6(1),e.Q6J("ngIf",n.unplanned)("ngIfElse",i)}}function To(t,a){1&t&&(e.TgZ(0,"div",36),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"TILES.OUTAGE.STATUS")," "))}function fo(t,a){1&t&&(e.TgZ(0,"div",36),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"TILES.OUTAGE.OUTAGEENDTIME")," "))}function vo(t,a){if(1&t&&(e.TgZ(0,"span")(1,"strong"),e._uU(2),e.qZA()()),2&t){const i=e.oxw(4);e.xp6(2),e.Oqu(i.etr)}}function ho(t,a){if(1&t&&(e.ynx(0),e.TgZ(1,"strong"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e._UZ(4,"br"),e.TgZ(5,"span")(6,"strong"),e._uU(7),e.qZA()(),e.BQk()),2&t){const i=e.oxw(5);e.xp6(2),e.Oqu(e.lcZ(3,2,"TILES.OUTAGE.POWERRESTORED")),e.xp6(5),e.Oqu(i.restoredTime)}}function xo(t,a){1&t&&(e.TgZ(0,"strong"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"TILES.OUTAGE.REEVALUATING")))}function Co(t,a){if(1&t&&(e.TgZ(0,"span"),e.YNc(1,ho,8,4,"ng-container",31),e.YNc(2,xo,3,3,"ng-template",null,38,e.W1O),e.qZA()),2&t){const i=e.MAs(3),n=e.oxw(4);e.xp6(1),e.Q6J("ngIf",n.isRestored)("ngIfElse",i)}}function Ao(t,a){if(1&t&&(e.TgZ(0,"div",27)(1,"div",36),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",30)(5,"span")(6,"strong"),e._uU(7),e.qZA()()()()),2&t){const i=e.oxw(4);e.xp6(2),e.hij(" ",e.lcZ(3,2,"TILES.OUTAGE.OUTAGECAUSE")," "),e.xp6(5),e.Oqu(i.outageCause)}}function Oo(t,a){if(1&t&&(e.TgZ(0,"div")(1,"div",22)(2,"div",23)(3,"div",24),e._UZ(4,"span",25),e.TgZ(5,"b"),e._uU(6),e.qZA()()(),e._UZ(7,"div",26),e.qZA(),e.TgZ(8,"div",27)(9,"div",23),e._uU(10),e.ALo(11,"translate"),e.qZA(),e.TgZ(12,"div",26)(13,"span")(14,"strong"),e._uU(15),e.qZA()()()(),e.TgZ(16,"div",27),e.YNc(17,go,3,3,"div",28),e.YNc(18,_o,3,3,"ng-template",null,29,e.W1O),e.TgZ(20,"div",30)(21,"span")(22,"strong"),e._uU(23),e.qZA()()()(),e.TgZ(24,"div",27),e.YNc(25,mo,2,2,"ng-container",31),e.YNc(26,To,3,3,"ng-template",null,32,e.W1O),e.YNc(28,fo,3,3,"ng-template",null,33,e.W1O),e.TgZ(30,"div",30),e.YNc(31,vo,3,1,"span",31),e.YNc(32,Co,4,2,"ng-template",null,34,e.W1O),e.qZA()(),e.YNc(34,Ao,8,4,"div",35),e.qZA()),2&t){const i=e.MAs(19),n=e.MAs(27),o=e.MAs(33),l=e.oxw(3);e.xp6(6),e.Oqu(l.accountNickName),e.xp6(4),e.hij(" ",e.lcZ(11,11,"TILES.OUTAGE.CUSTOMERSAFFECTED")," "),e.xp6(5),e.Oqu(l.customersAffected),e.xp6(2),e.Q6J("ngIf",l.unplanned)("ngIfElse",i),e.xp6(6),e.Oqu(l.reportedTime),e.xp6(2),e.Q6J("ngIf",!l.isRestored)("ngIfElse",n),e.xp6(6),e.Q6J("ngIf",!l.reEvaluatingETR)("ngIfElse",o),e.xp6(3),e.Q6J("ngIf",!l.isRestored)}}function Po(t,a){if(1&t&&(e.TgZ(0,"div",16),e.YNc(1,po,13,7,"div",17),e.YNc(2,Oo,35,13,"div",4),e.qZA()),2&t){const i=e.oxw(2);e.xp6(1),e.Q6J("ngIf",i.noOutage),e.xp6(1),e.Q6J("ngIf",!i.noOutage&&i.powerStatus)}}function Eo(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"TILES.OUTAGE.REPORTOUTAGEBUTTON")," "))}function bo(t,a){1&t&&(e._uU(0),e.ALo(1,"translate")),2&t&&e.hij(" ",e.lcZ(1,1,"TILES.OUTAGE.UPDATEMYOUTAGE")," ")}const Mo=function(){return["/outages-and-emergencies/report-an-outage"]},Io=function(){return{unplanned:"true"}};function yo(t,a){if(1&t&&(e.TgZ(0,"div")(1,"button",39),e.YNc(2,Eo,3,3,"span",31),e.YNc(3,bo,2,3,"ng-template",null,40,e.W1O),e.qZA()()),2&t){const i=e.MAs(4),n=e.oxw(2);e.xp6(1),e.Q6J("routerLink",e.DdM(4,Mo))("queryParams",e.DdM(5,Io)),e.xp6(1),e.Q6J("ngIf","ON"===n.powerStatus)("ngIfElse",i)}}function Lo(t,a){if(1&t&&(e.TgZ(0,"div"),e.YNc(1,ro,2,0,"div",10),e.YNc(2,Po,3,2,"div",11),e.TgZ(3,"div",12)(4,"div",13)(5,"div",14),e.YNc(6,yo,5,6,"div",4),e.qZA()()()()),2&t){const i=e.oxw();e.xp6(1),e.Q6J("ngIf",!i.powerStatus),e.xp6(1),e.Q6J("ngIf",i.powerStatus),e.xp6(4),e.Q6J("ngIf",i.unplanned||"ON"===i.powerStatus)}}let Zo=(()=>{var t;class a{constructor(n,o,l,r,p,u,x){this.widgetsService=n,this.outageCenterService=o,this.globalServiceErrorHandler=l,this.userService=r,this.navUtil=p,this.config=u,this.translateService=x,this.noOutage=!1,this.underInvestigation=!1,this.outageVerified=!1,this.isDataLoaded=!1,this.showPanelAndBody=!1,this.widgetId=9,this.reEvaluatingETR=!1,this.isRestored=!1,this.unplanned=!1,this.outageCause="",this.powerStatus="",this.customersAffected="",this.widgetsService.closeEventEmitter.subscribe(E=>{E!==this.widgetId&&this.showPanelAndBody&&this.togglePanelAndBody()})}set index(n){this.widgetIndex=n}ngOnInit(){var n=this;return(0,C.Z)(function*(){n.widgetIndex<3&&(n.showPanelAndBody=!0,yield n.initializeTile())})()}initializeTile(){var n=this;return(0,C.Z)(function*(){n.widgetIndex<n.config.config.numberOfTilesOpenByDefault&&(n.showPanelAndBody=!0),n.currentUser=n.userService.getUser(),n.currentAccountModel=n.currentUser.getCurrentAccount(),n.accountNickName=n.currentAccountModel.nickName||n.currentAccountModel.streetAddressLong;const o=n.currentUser.getCurrentAccount().accountNumber,l=yield n.outageCenterService.getRecentOutageStatus(o);if(l.isServerError&&n.globalServiceErrorHandler.showToast(l.messageText),n.powerStatus=l.powerStatus,"off"===l.powerStatus.toLowerCase()||l.outages.length>0){const r=l.outages[0];n.isRestored="y"===r.restored.toLowerCase(),n.restoredTime=r.restoreDate?re(r.restoreDate).format("hh:mm a MM/DD/YYYY"):"",n.reportedTime=re(r.startDate).format("hh:mm a MM/DD/YYYY"),void 0!==r.ert&&""!==r.ert?(n.etr=re(r.ert).format("hh:mm a MM/DD/YYYY"),n.reEvaluatingETR=new Date(r.ert)<new Date):n.etr=String(n.translateService.instant("COMPONENTS.INVESTIAGTEOUTAGE.NOTAVAILABLE")),n.unplanned="unplanned"===r.outageType.toLowerCase(),"under investigation"===r.cause.toLowerCase()?n.underInvestigation=!0:"verified"===r.status.toLowerCase()?n.outageVerified=!0:n.underInvestigation=!0,n.outageCause=r.cause?r.cause:String(n.translateService.instant("COMPONENTS.INVESTIAGTEOUTAGE.NOTAVAILABLE")),n.customersAffected=r.numberOfCustomers.toLocaleStr
1ing()}else n.noOutage=!0;n.isDataLoaded=!0})()}togglePanelAndBody(){var n=this;return(0,C.Z)(function*(){n.showPanelAndBody=!n.showPanelAndBody,n.showPanelAndBody&&(yield n.initializeTile())})()}onUserToggle(){this.togglePanelAndBody(),this.widgetsService.toggleWidgetEvent(this.widgetId)}reportOutage(){this.navUtil.navigate(L.$.outagesMapView,!0)}getOutageUpdate(){this.navUtil.navigate(L.$.outagesMapView,!0,{action:"getOutageUpdate"})}}return(t=a).\u0275fac=function(n){return new(n||t)(e.Y36(Y.L),e.Y36(no.n),e.Y36(W.o),e.Y36(f.K),e.Y36(M.H),e.Y36(T._),e.Y36(_.sK))},t.\u0275cmp=e.Xpm({type:t,selectors:[["nve-outages-tile"]],inputs:{index:"index"},decls:15,vars:13,consts:[[1,"widget-component"],["tabindex","0",1,"panel","panel-default"],[1,"panel-heading"],[1,"accent-color-red",3,"title","click"],[4,"ngIf"],[1,"panel-text"],[3,"title",4,"ngIf"],["class","accent-color-orange",3,"title",4,"ngIf"],[3,"title"],[1,"accent-color-orange",3,"title"],["class","panel-body text-center",4,"ngIf"],["class","panel-body",4,"ngIf"],[1,"panel-footer"],[1,"clearfix"],[1,"col-xs-12"],[1,"panel-body","text-center"],[1,"panel-body"],["class","clearfix",4,"ngIf"],[1,"col-xs-5","text-right"],[1,"col-xs-7","text-right"],[1,"clearfix","margin-top-15"],[1,"accent-green-color"],[1,"clearfix","margin-bottom-5"],[1,"col-xs-8","nve-div-table-cell","nopadding-right"],[1,"header-info-icon-alert","margin-bottom-10"],[1,"nve-icon","nve-icon-info"],[1,"col-xs-4","text-right","nve-div-table-cell","align-bottom","nopadding-left"],[1,"clearfix","margin-bottom-10"],["class","col-xs-6 nve-div-table-cell nopadding-right",4,"ngIf","ngIfElse"],["outageStartTime",""],[1,"col-xs-6","text-right","nve-div-table-cell","align-bottom","nopadding-left"],[4,"ngIf","ngIfElse"],["powerRestored",""],["outageEndTime",""],["reEvaluating",""],["class","clearfix margin-bottom-10",4,"ngIf"],[1,"col-xs-6","nve-div-table-cell","nopadding-right"],["type","ToolTipModalComponent","path","/tooltips/estimated-restoration-time.html",3,"isToolTip"],["reevaluatingText",""],[1,"nv-btn","nv-btn-blue",3,"routerLink","queryParams"],["updateOutage",""]],template:function(n,o){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2",3),e.NdJ("click",function(){return o.onUserToggle()}),e.ALo(4,"translate"),e.YNc(5,io,2,0,"span",4),e.YNc(6,oo,2,0,"span",4),e.TgZ(7,"span",5),e._uU(8),e.ALo(9,"translate"),e.qZA()(),e.YNc(10,ao,4,6,"span",6),e.YNc(11,lo,4,6,"span",7),e.YNc(12,so,4,6,"span",7),e.YNc(13,co,4,6,"span",6),e.qZA(),e.YNc(14,Lo,7,3,"div",4),e.qZA()()),2&n&&(e.xp6(3),e.s9C("title",e.lcZ(4,9,"TILES.OUTAGE.HEADING")),e.xp6(2),e.Q6J("ngIf",o.showPanelAndBody),e.xp6(1),e.Q6J("ngIf",!o.showPanelAndBody),e.xp6(2),e.hij(" ",e.lcZ(9,11,"TILES.OUTAGE.HEADING"),""),e.xp6(2),e.Q6J("ngIf",o.noOutage),e.xp6(1),e.Q6J("ngIf",o.outageVerified),e.xp6(1),e.Q6J("ngIf",o.underInvestigation),e.xp6(1),e.Q6J("ngIf",!o.showPanelAndBody&&!o.isDataLoaded),e.xp6(1),e.Q6J("ngIf",o.showPanelAndBody))},dependencies:[b.rH,F.$,ce.I,s.O5,_.X$],encapsulation:2}),a})();var So=d(42830);function No(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"-"),e.qZA())}function Do(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"+"),e.qZA())}function wo(t,a){if(1&t&&(e.TgZ(0,"span",10),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&t){const i=e.oxw(2);e.MGl("title","You have ",i.scheduledActivityCount," scheduled service activity."),e.xp6(1),e.lnq("",e.lcZ(2,4,"TILES.STARTSTOPSERVICE.TITLE")," ",i.scheduledActivityCount," ",e.lcZ(3,6,"TILES.STARTSTOPSERVICE.TITLE1"),"")}}function Bo(t,a){1&t&&(e.TgZ(0,"span",11),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"TILES.STARTSTOPSERVICE.HEADING1")))}function Uo(t,a){if(1&t&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&t){const i=a.$implicit;e.xp6(1),e.Oqu(i)}}function Ro(t,a){if(1&t&&(e.TgZ(0,"div",22)(1,"div",23),e.YNc(2,Uo,2,1,"p",24),e.qZA(),e.TgZ(3,"div",23)(4,"i"),e._uU(5),e.ALo(6,"translate"),e.TgZ(7,"a",25),e._uU(8),e.ALo(9,"translate"),e.qZA()()()()),2&t){const i=e.oxw(3);e.xp6(2),e.Q6J("ngForOf",i.scheduleMessage),e.xp6(3),e.hij("",e.lcZ(6,4,"TILES.STARTSTOPSERVICE.CLICKHERE")," "),e.xp6(2),e.Q6J("moveToPage","my-account/pending-service"),e.xp6(1),e.Oqu(e.l
1cZ(9,6,"TILES.STARTSTOPSERVICE.CANCEL"))}}function Yo(t,a){if(1&t&&(e.TgZ(0,"div")(1,"div",12),e.YNc(2,Ro,10,8,"div",13),e.TgZ(3,"div",14)(4,"div",15)(5,"div",16),e._UZ(6,"span",17)(7,"br"),e.TgZ(8,"button",18),e._uU(9),e.ALo(10,"translate"),e.qZA()()(),e.TgZ(11,"div",15)(12,"div",16),e._UZ(13,"span",19)(14,"br"),e.TgZ(15,"button",18),e._uU(16),e.ALo(17,"translate"),e.qZA()()(),e.TgZ(18,"div",15)(19,"div",16),e._UZ(20,"span",20)(21,"br"),e.TgZ(22,"button",18),e._uU(23),e.ALo(24,"translate"),e.qZA()()()()(),e._UZ(25,"div",21),e.qZA()),2&t){const i=e.oxw(2);e.xp6(2),e.Q6J("ngIf",i.scheduledActivityCount>0),e.xp6(6),e.Q6J("moveToPage","my-account/start-service"),e.xp6(1),e.hij(" ",e.lcZ(10,7,"TILES.STARTSTOPSERVICE.START")," "),e.xp6(6),e.Q6J("moveToPage","my-account/stop-service"),e.xp6(1),e.hij(" ",e.lcZ(17,9,"TILES.STARTSTOPSERVICE.STOP")," "),e.xp6(6),e.Q6J("moveToPage","my-account/move-service"),e.xp6(1),e.hij(" ",e.lcZ(24,11,"TILES.STARTSTOPSERVICE.MOVE")," ")}}function qo(t,a){if(1&t){const i=e.EpF();e.TgZ(0,"div",3)(1,"div",4)(2,"h2",5),e.NdJ("click",function(){e.CHM(i);const o=e.oxw();return e.KtG(o.onUserToggle())}),e.ALo(3,"translate"),e.YNc(4,No,2,0,"span",6),e.YNc(5,Do,2,0,"span",6),e.TgZ(6,"span",7),e._uU(7),e.ALo(8,"translate"),e.qZA()(),e.YNc(9,wo,4,8,"span",8),e.YNc(10,Bo,3,3,"span",9),e.qZA(),e.YNc(11,Yo,26,13,"div",6),e.qZA()}if(2&t){const i=e.oxw();e.xp6(2),e.s9C("title",e.lcZ(3,7,"TILES.STARTSTOPSERVICE.HEADING")),e.xp6(2),e.Q6J("ngIf",i.showPanelAndBody),e.xp6(1),e.Q6J("ngIf",!i.showPanelAndBody),e.xp6(2),e.Oqu(e.lcZ(8,9,"TILES.STARTSTOPSERVICE.HEADING")),e.xp6(2),e.Q6J("ngIf",i.scheduledActivityCount>0),e.xp6(1),e.Q6J("ngIf",0==i.scheduledActivityCount),e.xp6(1),e.Q6J("ngIf",i.showPanelAndBody)}}function Fo(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"-"),e.qZA())}function ko(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"+"),e.qZA())}function Jo(t,a){1&t&&(e.TgZ(0,"div")(1,"div",28)(2,"div",22)(3,"div",23),e._uU(4),e.ALo(5,"translate"),e.qZA()()(),e._UZ(6,"div",21),e.qZA()),2&t&&(e.xp6(4),e.Oqu(e.lcZ(5,1,"TILES.STARTSTOPSERVICE.WRONG")))}function Go(t,a){if(1&t){const i=e.EpF();e.TgZ(0,"div",26)(1,"div",4)(2,"h2",27),e.NdJ("click",function(){e.CHM(i);const o=e.oxw();return e.KtG(o.onUserToggle())}),e.ALo(3,"translate"),e.YNc(4,Fo,2,0,"span",6),e.YNc(5,ko,2,0,"span",6),e.TgZ(6,"span"),e._uU(7),e.ALo(8,"translate"),e.qZA()()(),e.YNc(9,Jo,7,3,"div",6),e.qZA()}if(2&t){const i=e.oxw();e.xp6(2),e.s9C("title",e.lcZ(3,5,"TILES.STARTSTOPSERVICE.HEADING")),e.xp6(2),e.Q6J("ngIf",i.showPanelAndBody),e.xp6(1),e.Q6J("ngIf",!i.showPanelAndBody),e.xp6(2),e.Oqu(e.lcZ(8,7,"TILES.STARTSTOPSERVICE.HEADING")),e.xp6(2),e.Q6J("ngIf",i.showPanelAndBody)}}let Qo=(()=>{var t;class a{constructor(n,o,l){this.widgetsService=n,this.startStopMoveService=o,this.config=l,this.startStopMoveDetails=void 0,this.scheduledActivityCount=0,this.scheduleMessage=[],this.isErrorOccured=!1,this.showPanelAndBody=!1,this.widgetId=11,this.isDataLoaded=!1,this.widgetsService.closeEventEmitter.subscribe(r=>{r!==this.widgetId&&this.showPanelAndBody&&this.togglePanelAndBody()})}set index(n){this.widgetIndex=n}ngOnInit(){this.widgetIndex<this.config.config.numberOfTilesOpenByDefault&&(this.showPanelAndBody=!0,this.getStartStopMoveTileDetails())}togglePanelAndBody(){this.showPanelAndBody=!this.showPanelAndBody,this.showPanelAndBody&&(this.isDataLoaded||this.getStartStopMoveTileDetails())}onUserToggle(){this.togglePanelAndBody(),this.widgetsService.toggleWidgetEvent(this.widgetId)}getStartStopMoveTileDetails(){this.startStopMoveService.getStartStopMoveTileDetails().then(n=>{this.startStopMoveDetails=n,null!=this.startStopMoveDetails.scheduledActivityCount&&(this.scheduledActivityCount=this.startStopMoveDetails.scheduledActivityCount),null!=this.startStopMoveDetails.scheduleMessage&&(this.scheduleMessage=this.startStopMoveDetails.scheduleMessage),this.isDataLoaded=!0}).catch(n=>{this.isErrorOccured=!0})}}return(t=a).\u0275fac=function(n){return new(n||t)(e.Y36(Y.L),e.Y36(So.Zm),e.Y36(T._))},t.\u0275cmp=e.Xpm({type:t,selectors:[["nve-start-stop-service-tile"]],inputs:{index:"index"},decls:3,vars:2,consts:[[1,"widget-component"],["class","panel panel-default","tabindex","0",4,"ngIf"],["class","panel panel-default",4,"ngIf"],["tabindex","0",1,"panel","panel-default"],[1,"panel-heading"],[1,"accent-color-red",3,"title","click"],[4,"ngIf"],[1,"panel-text"],[3,"title",4,"ngIf"],["title","You have no scheduled service activity.",4,"ngIf"],[3,"title"],["title","You have no scheduled service activity."],[1,"panel-body"],["class","clearfix",4,"ngIf"],[1,"clearfix","margin-top-15"],[1,"col-xs-4"],["align","center"],[1,"nve-icon","nve-icon-start-stop-service-18"],["csrDisable","","tappable","",1,"text-btn","text-underline",3,"moveToPage"],[1,"nve-icon","nve-icon-start-stop-service-16"],[1,"nve-icon","nve-icon-start-stop-service-17"],[1,"panel-footer"],[1,"clearfix"],[1,"col-xs-12"],[4,"ngFor","ngForOf"],["tappable","",3,"moveToPage"],[1,"panel","panel-default"],[3,"title","click"],[1,"panel-body","text-center"]],template:function(n,o){1&n&&(e.TgZ(0,"div",0),e.YNc(1,qo,12,11,"div",1),e.YNc(2,Go,10,9,"div",2),e.qZA()),2&n&&(e.xp6(1),e.Q6J("ngIf",!o.isErrorOccured),e.xp6(1),e.Q6J("ngIf",o.isErrorOccured))},dependencies:[s.sg,s.O5,H.a,$.$,_.X$],styles:[".scheduleMessage[_ngcontent-%COMP%] {\n margin-left: 15px;\n }"]}),a})();var Ho=d(35012),jo=d(11481);function Wo(t,a){1&t&&e._UZ(0,"span",14)}function Ko(t,a){1&t&&e._UZ(0,"span",15)}function Xo(t,a){if(1&t){const i=e.EpF();e.TgZ(0,"a",11),e.NdJ("click",function(){e.CHM(i);const o=e.oxw();return e.KtG(o.scroll())}),e.YNc(1,Wo,1,0,"span",12),e.YNc(2,Ko,1,0,"span",13),e.qZA()}if(2&t){const i=e.oxw();e.xp6(1),e.Q6J("ngIf",i.isScrollUp),e.xp6(1),e.Q6J("ngIf",!i.isScrollUp)}}function $o(t,a){if(1&t&&e._UZ(0,"iframe",16),2&t){const i=e.oxw();e.Q6J("src",i.iFrameURL,e.uOi)}}let zo=(()=>{var t;class a extends Z.W{constructor(n,o,l,r,p,u,x){super(n,l),this.modalCtrl=n,this.sanitizer=o,this.location=l,this.userService=r,this.smartThermostatService=p,this.appUtility=u,this.getThermostatType().then(E=>{E===this.smartThermostatService.ECOBEE&&this.appUtility.openNewTab(x.config.smartThermostat.ecobeeUrl),E===this.smartThermostatService.ECOFACTOR&&(this.iFrameURL=this.sanitizer.bypassSecurityTrustResourceUrl(x.config.smartThermostat.ecoFactorUrl))}).catch(E=>(console.log(E),Promise.reject("error")))}closeModal(){this.modalCtrl.dismiss()}getThermostatType(){var n=this;return(0,C.Z)(function*(){let o;try{let l=yield n.smartThermostatService.getSmartThermostatDetails(n.userService.user.userAccountNumber);return o=l.smartThermostatDetails?l.smartThermostatDetails.thermostatDetails.thermostatType:void 0,Promise.resolve(o)}catch(l){return console.log(l),Promise.reject(o)}})()}closeModalEvent(n){(13===n.keyCode||32===n.keyCode)&&this.closeModal()}}return(t=a).\u0275fac=function(n){return new(n||t)(e.Y36(c.IN),e.Y36(jo.H7),e.Y36(s.Ye),e.Y36(f.K),e.Y36(g.$),e.Y36(A.$0),e.Y36(T._))},t.\u0275cmp=e.Xpm({type:t,selectors:[["nve-eco-factor-modal"]],features:[e.qOj],decls:14,vars:5,consts:[[1,"nve-modal"],["mainDiv",""],["class","modal-scroll-btn flexible-modal",3,"click",4,"ngIf"],["padding","",1,"flexible-modal","modal
1-scroll-content","equal-payment-sign-in-modal"],["role","button","tabindex","0",1,"close-modal",3,"click","keypress"],[1,"ion-close-round"],[1,"modal-height-calc-wrapper"],[1,"clearfix"],[1,"col-xs-12","modal-title"],[1,"heading"],[3,"src",4,"ngIf"],[1,"modal-scroll-btn","flexible-modal",3,"click"],["class","ion-ios-arrow-down","title","Scroll To Bottom",4,"ngIf"],["class","ion-ios-arrow-up","title","Scroll To Top",4,"ngIf"],["title","Scroll To Bottom",1,"ion-ios-arrow-down"],["title","Scroll To Top",1,"ion-ios-arrow-up"],[3,"src"]],template:function(n,o){1&n&&(e.TgZ(0,"div",0)(1,"div",null,1),e.YNc(3,Xo,3,2,"a",2),e.TgZ(4,"div",3)(5,"a",4),e.NdJ("click",function(){return o.closeModal()})("keypress",function(r){return o.closeModalEvent(r)}),e._UZ(6,"span",5),e.qZA(),e.TgZ(7,"div",6)(8,"div",7)(9,"div",8)(10,"h1",9),e._uU(11),e.ALo(12,"translate"),e.qZA()()(),e.YNc(13,$o,1,1,"iframe",10),e.qZA()()()()),2&n&&(e.xp6(3),e.Q6J("ngIf",o.showScrollBtn),e.xp6(8),e.Oqu(e.lcZ(12,3,"COMPONENTS.ACCOUNTLISTDRAWER.HEADING")),e.xp6(2),e.Q6J("ngIf",o.iFrameURL))},dependencies:[s.O5,_.X$],encapsulation:2}),a})();function Vo(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"-"),e.qZA())}function ea(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"+"),e.qZA())}function ta(t,a){1&t&&(e.TgZ(0,"p"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"TILES.NEXTBESTACTION.MYTHERMOSTAT.HEADING1")," "))}function na(t,a){1&t&&(e.TgZ(0,"p"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"TILES.NEXTBESTACTION.MYTHERMOSTAT.INELIGIBLE")," "))}function ia(t,a){if(1&t&&(e._UZ(0,"p",18),e.ALo(1,"safe")),2&t){const i=e.oxw(3);e.Q6J("innerHTML",e.xi3(1,1,i.singleMessage.content,"html"),e.oJD)}}function oa(t,a){if(1&t){const i=e.EpF();e.TgZ(0,"button",19),e.NdJ("click",function(){e.CHM(i);const o=e.oxw(3);return e.KtG(o.smartThermoStatSlider())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"TILES.NEXTBESTACTION.MYTHERMOSTAT.CONTROL")," "))}const aa=function(t,a){return{accountNumber:t,eligibilityResponse:a}};function la(t,a){if(1&t&&(e.TgZ(0,"button",20),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t){const i=e.oxw(3);e.Q6J("moveToPage","my-account/smart-thermostat/landing")("moveToPageParam",e.WLB(6,aa,i.currentAccountNumber,i.smartThermostatPreEligibilityRes))("setPageToRoot",!1),e.xp6(1),e.hij(" ",e.lcZ(2,4,"TILES.NEXTBESTACTION.MYTHERMOSTAT.ENROLLTODAY")," ")}}function sa(t,a){if(1&t&&(e.TgZ(0,"div")(1,"div",9)(2,"div",10)(3,"div",11),e.YNc(4,ta,3,3,"p",6),e.YNc(5,na,3,3,"p",6),e.YNc(6,ia,2,4,"p",12),e.qZA(),e.TgZ(7,"div",11),e._UZ(8,"img",13),e.qZA()()(),e.TgZ(9,"div",14)(10,"div",10)(11,"div",11)(12,"div",15),e.YNc(13,oa,3,3,"button",16),e.YNc(14,la,3,9,"button",17),e.qZA()()()()()),2&t){const i=e.oxw(2);e.xp6(4),e.Q6J("ngIf",i.isEnrolled||i.isEligible),e.xp6(1),e.Q6J("ngIf",!i.isEnrolled&&!i.isEligible&&!i.isDRMSDown),e.xp6(1),e.Q6J("ngIf",!i.isEnrolled&&!i.isEligible&&i.isDRMSDown),e.xp6(7),e.Q6J("ngIf",i.isEnrolled),e.xp6(1),e.Q6J("ngIf",!i.isEnrolled&&i.isEligible)}}function ca(t,a){if(1&t){const i=e.EpF();e.TgZ(0,"div",3)(1,"div",4)(2,"h2",5),e.NdJ("click",function(){e.CHM(i);const o=e.oxw();return e.KtG(o.onUserToggle())}),e.ALo(3,"translate"),e.YNc(4,Vo,2,0,"span",6),e.YNc(5,ea,2,0,"span",6),e.TgZ(6,"span",7),e._uU(7),e.ALo(8,"translate"),e.qZA()(),e.TgZ(9,"span",8),e._uU(10),e.qZA()(),e.YNc(11,sa,15,5,"div",6),e.qZA()}if(2&t){const i=e.oxw();e.xp6(2),e.s9C("title",e.lcZ(3,7,"TILES.NEXTBESTACTION.MYTHERMOSTAT.HEADING")),e.xp6(2),e.Q6J("ngIf",i.showPanelAndBody),e.xp6(1),e.Q6J("ngIf",!i.showPanelAndBody),e.xp6(2),e.Oqu(e.lcZ(8,9,"TILES.NEXTBESTACTION.MYTHERMOSTAT.HEADING")),e.xp6(2),e.s9C("title",i.address),e.xp6(1),e.Oqu(i.address),e.xp6(1),e.Q6J("ngIf",i.showPanelAndBody)}}function ra(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"-"),e.qZA())}function da(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"+"),e.qZA())}function pa(t,a){1&t&&(e.TgZ(0,"span",8),e.ALo(1,"translate"),e._uU(2),e.ALo(3,"translate"),e.qZA()),2&t&&(e.s9C("title",e.lcZ(1,2,"TILES.NEXTBESTACTION.MYTHERMOSTAT.STATICHEADING")),e.xp6(2),e.Oqu(e.lcZ(3,4,"TILES.NEXTBESTACTION.MYTHERMOSTAT.STATICHEADING")))}function ga(t,a){1&t&&(e.TgZ(0,"div")(1,"div",24),e._UZ(2,"nve-spinner"),e.qZA(),e._UZ(3,"div",14),e.qZA())}function _a(t,a){if(1&t){const i=e.EpF();e.TgZ(0,"div",21)(1,"div",4)(2,"h2",22),e.NdJ("click",function(){e.CHM(i);const o=e.oxw();return e.KtG(o.onUserToggle())}),e.ALo(3,"translate"),e.YNc(4,ra,2,0,"span",6),e.YNc(5,da,2,0,"span",6),e.TgZ(6,"span",7),e._uU(7),e.ALo(8,"translate"),e.qZA()(),e.YNc(9,pa,4,6,"span",23),e.qZA(),e.YNc(10,ga,4,0,"div",6),e.qZA()}if(2&t){const i=e.oxw();e.xp6(2),e.s9C("title",e.lcZ(3,6,"TILES.NEXTBESTACTION.MYTHERMOSTAT.HEADING")),e.xp6(2),e.Q6J("ngIf",i.showPanelAndBody),e.xp6(1),e.Q6J("ngIf",!i.showPanelAndBody),e.xp6(2),e.Oqu(e.l
1cZ(8,8,"TILES.NEXTBESTACTION.MYTHERMOSTAT.HEADING")),e.xp6(2),e.Q6J("ngIf",!i.showPanelAndBody&&!i.isDataLoaded),e.xp6(1),e.Q6J("ngIf",i.showPanelAndBody)}}let ua=(()=>{var t;class a{constructor(n,o,l,r,p,u,x,E,D,R,q){this.widgetsService=n,this.modalCtrl=o,this.smartThermostatService=l,this.userService=r,this._window=p,this.globalServiceErrorHandler=u,this.appUtility=x,this.translateService=E,this.inAppBrowser=D,this.platform=R,this.config=q,this.isErrorOccured=!1,this.showLoader=!0,this.isMobile=!1,this.showPanelAndBody=!1,this.widgetId=6,this.kitchenTemperature="99\xb0F",this.upstairsBedroomTemperature=" 99\xb0F",this.address="",this.isEnrolled=!1,this.smartThermostatEnrollStatus=new Ho.gD,this.isDataLoaded=!1,this.isDRMSDown=!1,this.singleMessage=new ae.v,this.widgetsService.closeEventEmitter.subscribe(G=>{G!==this.widgetId&&this.showPanelAndBody&&this.togglePanelAndBody()}),this.smartThermostatligibilityCheckFlag=!1,this.isMobile=!this.platform.is("desktop")}set index(n){this.widgetIndex=n}ngOnInit(){this.widgetIndex<this.config.config.numberOfTilesOpenByDefault&&(this.showPanelAndBody=!0,this.initializeMyThermostatTile())}togglePanelAndBody(){this.showPanelAndBody=!this.showPanelAndBody,this.showPanelAndBody&&(this.widgetIndex<this.config.config.numberOfTilesOpenByDefault&&(this.showPanelAndBody=!0),this.isDataLoaded||this.initializeMyThermostatTile())}initializeMyThermostatTile(){this.currentUser=this.userService.getUser(),this.currentAccountModel=this.currentUser.getCurrentAccount(),this.address=this.currentAccountModel.streetAddressLong+", "+this.currentAccountModel.city+", NV "+this.currentAccountModel.zipCode,this.currentAccountNumber=this.currentAccountModel.accountNumber,this.checkPreEligibility()}onUserToggle(){this.togglePanelAndBody(),this.widgetsService.toggleWidgetEvent(this.widgetId)}showSignInModal(){this.modalCtrl.create({component:zo,componentProps:{updateUrl:!1}}).then(n=>n.present())}smartThermoStatSlider(){var n=this;return(0,C.Z)(function*(){try{if(!n.thermostatType){const o=z.c.isAccountFromNorth(n.userService.user.currentAccount.accountNumber)?z.c.NORTH_PHONE:z.c.SOUTH_PHONE;let l=yield n.smartThermostatService.getSmartThermostatDetails(n.userService.user.currentAccount.accountNumber,!0);l&&l.smartThermostatDetails&&l.smartThermostatDetails.thermostatDetails?n.thermostatType=l.smartThermostatDetails.thermostatDetails.thermostatType:l&&l.Error&&"THERMOSTAT_PROVISIONED"===l.Error.errorCode?n.globalServiceErrorHandler.showToast(n.translateService.instant("COMPONENTS.SMARTTHERMOSTAT.ERROR_THERMOSTAT_PROVISIONED")+o):l&&l.Fault&&l.Fault.faultstring?n.doAfterEligibilityCheckActions(l,!0):(n.thermostatType=void 0,n.globalServiceErrorHandler.showToast(n.translateService.instant("COMPONENTS.SMARTTHERMOSTAT.ERROR_THERMOSTAT_TYPE")+o))}if(n.isMobile){if(n.thermostatType===n.smartThermostatService.ECOFACTOR&&n._window.nativeWindow.open(n.config.config.smartThermostat.ecoFactorUrl,"NVEnergy"),n.thermostatType===n.smartThermostatService.ECOBEE){const o=n.inAppBrowser.create(n.config.config.smartThermostat.ecobeeUrl,"NVEnergy","location=yes");o.on("loadstop").subscribe(l=>{o.insertCSS({code:".section{min-width: auto !important;"})})}}else n.thermostatType&&(n.thermostatType===n.smartThermostatService.ECOBEE?n.appUtility.openNewTab(n.config.config.smartThermostat.ecobeeUrl):n.smartThermostatService.smartThermoStatEventEmitter.emit({thermostatType:n.thermostatType}))}catch(o){console.log(o)}})()}checkPreEligibility(){var n=this;this.smartThermostatService.checkPreEligibility(this.currentAccountNumber).then(function(){var o=(0,C.Z)(function*(l){if(n.smartThermostatPreEligibilityRes=l,n.smartThermostatEnrollStatus=l.checkStatusResponse,!l.error||l.checkStatusResponse&&l.checkStatusResponse.isActive){if(n.smartThermostatligibilityCheckFlag=!0,n.smartThermostatligibilityCheckFlag&&n.smartThermostatEnrollStatus.isNoRecords&&(n.isEnrolled=!1,n.isEligible=!0),n.smartThermostatligibilityCheckFlag&&(n.smartThermostatEnrollStatus.isActive||n.smartThermostatEnrollStatus.isApprovedOrProvision)){n.isEnrolled=!0,z.c.isAccountFromNorth(n.userService.user.currentAccount.accountNumber);let p=yield n.smartThermostatService.getSmartThermostatDetails(n.userService.user.userAccountNumber);n.thermostatType=p&&p.smartThermostatDetails&&p.smartThermostatDetails.thermostatDetails?p.smartThermostatDetails.thermostatDetails.thermostatType:void 0}n.showLoader=!1}else n.smartThermostatligibilityCheckFlag=!1,n.isEligible=!1,n.showLoader=!1,n.doAfterEligibilityCheckActions(l);n.isDataLoaded=!0});return function(l){return o.apply(this,arguments)}}()).catch(o=>{this.showLoader=!1,console.log(o)})}sliceMe(){this.widgetsService.sliceTileFromDashboard(Te.MYSMARTTHERMOSTATTILEID)}doAfterEligibilityCheckActions(n,o){if(o&&n.isDRMSDown){this.singleMessage.content=n.Fault.faultstring;let l=[];l.push(this.singleMessage),this.modalCtrl.create({component:se.g,componentProps:{errorMessages:l,updateUrl:!1}}).then(p=>p.present())}else n.error&&n.isDRMSDown&&(this.isDRMSDown=n.isDRMSDown,this.singleMessage.content=n.message)}}return(t=a).\u0275fac=function(n){return new(n||t)(e.Y36(Y.L),e.Y36(c.IN),e.Y36(g.$),e.Y36(f.K),e.Y36(Oe.X),e.Y36(W.o),e.Y36(A.$0),e.Y36(_.sK),e.Y36(P.i),e.Y36(oe.m),e.Y36(T._))},t.\u0275cmp=e.Xpm({type:t,selectors:[["nve-my-thermostat-tile"]],inputs:{index:"index"},decls:3,vars:2,consts:[[1,"widget-component"],["class","panel panel-default","tabindex","0",4,"ngIf"],["class","panel panel-default",4,"ngIf"],["tabindex","0",1,"panel","panel-default"],[1,"panel-heading"],[1,"accent-color-red",3,"title","click"],[4,"ngIf"],[1,"panel-text"],[3,"title"],[1,"panel-body"],[1,"clearfix"],[1,"col-xs-12"],[3,"innerHTML",4,"ngIf"],["src","assets/images/powershift-logo.png",1,"powershift-logo"],[1,"panel-footer"],[1,"col-xs-7","no-side-padding"],["class","nv-btn nv-btn-blue","csrDisable","",3,"click",4,"ngIf"],["class","nv-btn nv-btn-blue","csrDisable","",3,"moveToPage","moveToPageParam","setPageToRoot",4,"ngIf"],[3,"innerHTML"],["csrDisable","",1,"nv
1-btn","nv-btn-blue",3,"click"],["csrDisable","",1,"nv-btn","nv-btn-blue",3,"moveToPage","moveToPageParam","setPageToRoot"],[1,"panel","panel-default"],[3,"title","click"],[3,"title",4,"ngIf"],[1,"panel-body","text-center"]],template:function(n,o){1&n&&(e.TgZ(0,"div",0),e.YNc(1,ca,12,11,"div",1),e.YNc(2,_a,11,10,"div",2),e.qZA()),2&n&&(e.xp6(1),e.Q6J("ngIf",!o.showLoader),e.xp6(1),e.Q6J("ngIf",o.showLoader))},dependencies:[F.$,s.O5,H.a,$.$,_.X$,be.Q],styles:[".widget-component[_ngcontent-%COMP%] .powershift-logo[_ngcontent-%COMP%]{width:200px;height:auto;margin:10px auto 0;display:block}"]}),a})();var V=d(94670);let ma=(()=>{var t;class a{constructor(n,o,l){this.router=n,this.el=o,this.renderer=l}}return(t=a).\u0275fac=function(n){return new(n||t)(e.Y36(b.F0),e.Y36(e.SBq),e.Y36(e.Qsj))},t.\u0275dir=e.lG2({type:t,selectors:[["","WindowsDisAggregationTile",""]]}),a})();function Ta(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"-"),e.qZA())}function fa(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"+"),e.qZA())}function va(t,a){1&t&&(e.TgZ(0,"span",9),e.ALo(1,"translate"),e._uU(2),e.ALo(3,"translate"),e.qZA()),2&t&&(e.s9C("title",e.lcZ(1,2,"TILES.DISAGGREGATION.HEADER")),e.xp6(2),e.Oqu(e.lcZ(3,4,"TILES.DISAGGREGATION.HEADER")))}function ha(t,a){1&t&&(e.TgZ(0,"span",9),e.ALo(1,"translate"),e._uU(2),e.ALo(3,"translate"),e.qZA()),2&t&&(e.s9C("title",e.lcZ(1,2,"TILES.DISAGGREGATION.HEADER")),e.xp6(2),e.Oqu(e.lcZ(3,4,"TILES.DISAGGREGATION.HEADER")))}function xa(t,a){1&t&&(e.TgZ(0,"div",13)(1,"div",13)(2,"div",14)(3,"p"),e._uU(4),e.ALo(5,"translate"),e._UZ(6,"nve-tool-tip",16),e.qZA()()(),e.TgZ(7,"div",17)(8,"div",18)(9,"div",19)(10,"div",20)(11,"div",21),e._UZ(12,"span",22),e.qZA()()(),e.TgZ(13,"div",19)(14,"div",20)(15,"div",21),e._UZ(16,"span",23),e.qZA()()(),e.TgZ(17,"div",19)(18,"div",20)(19,"div",21),e._UZ(20,"span",24),e.qZA()()(),e.TgZ(21,"div",19)(22,"div",20)(23,"div",21),e._UZ(24,"span",25),e.qZA()()()()()()),2&t&&(e.xp6(4),e.hij(" ",e.lcZ(5,2,"TILES.DISAGGREGATION.HEADING")," "),e.xp6(2),e.Q6J("isToolTip",!0))}function Ca(t,a){if(1&t&&(e.TgZ(0,"div",30)(1,"div",21),e._UZ(2,"span",31),e.TgZ(3,"span",32),e._uU(4),e.qZA()(),e.TgZ(5,"span",33),e._uU(6),e.ALo(7,"translate"),e.qZA()()),2&t){const i=e.oxw().$implicit;e.xp6(4),e.hij(" ",i.value," "),e.xp6(2),e.Oqu(e.lcZ(7,2,"TILES.DISAGGREGATION.WHOLEHOME"))}}function Aa(t,a){if(1&t&&(e.TgZ(0,"div",30)(1,"div",21),e._UZ(2,"span",22),e.TgZ(3,"span",32),e._uU(4),e.qZA()(),e.TgZ(5,"span",33),e._uU(6),e.ALo(7,"translate"),e.qZA()()),2&t){const i=e.oxw().$implicit;e.xp6(4),e.hij(" ",i.value," "),e.xp6(2),e.Oqu(e.lcZ(7,2,"TILES.DISAGGREGATION.ALWAYSON"))}}function Oa(t,a){if(1&t&&(e.TgZ(0,"div",30)(1,"div",34),e._UZ(2,"span",23),e.TgZ(3,"span",32),e._uU(4),e.qZA()(),e.TgZ(5,"span",33),e._uU(6),e.ALo(7,"translate"),e.qZA()()),2&t){const i=e.oxw().$implicit;e.xp6(4),e.hij(" ",i.value," "),e.xp6(2),e.Oqu(e.lcZ(7,2,"TILES.DISAGGREGATION.HEATING"))}}function Pa(t,a){if(1&t&&(e.TgZ(0,"div",30)(1,"div",21),e._UZ(2,"span",24),e.TgZ(3,"span",32),e._uU(4),e.qZA()(),e.TgZ(5,"span",33),e._uU(6),e.ALo(7,"translate"),e.qZA()()),2&t){const i=e.oxw().$implicit;e.xp6(4),e.hij(" ",i.value," "),e.xp6(2),e.Oqu(e.lcZ(7,2,"TILES.DISAGGREGATION.POOL"))}}function Ea(t,a){if(1&t&&(e.TgZ(0,"div",30)(1,"div",21),e._UZ(2,"span",25),e.TgZ(3,"span",32),e._uU(4),e.qZA()(),e.TgZ(5,"span",33),e._uU(6),e.ALo(7,"translate"),e.qZA()()),2&t){const i=e.oxw().$implicit;e.xp6(4),e.hij(" ",i.value," "),e.xp6(2),e.Oqu(e.lcZ(7,2,"TILES.DISAGGREGATION.EV"))}}function ba(t,a){if(1&t&&(e.TgZ(0,"div",30)(1,"div",21),e._UZ(2,"span",35),e.TgZ(3,"span",32),e._uU(4),e.qZA()(),e.TgZ(5,"span",33),e._uU(6),e.ALo(7,"translate"),e.qZA()()),2&t){const i=e.oxw().$implicit;e.xp6(4),e.hij(" ",i.value," "),e.xp6(2),e.Oqu(e.lcZ(7,2,"TILES.DISAGGREGATION.COOKING"))}}function Ma(t,a){if(1&t&&(e.TgZ(0,"div",30)(1,"div",21),e._UZ(2,"span",36),e.TgZ(3,"span",32),e._uU(4),e.qZA()(),e.TgZ(5,"span",33),e._uU(6),e.ALo(7,"translate"),e.qZA()()),2&t){const i=e.oxw().$implicit;e.xp6(4),e.hij(" ",i.value," "),e.xp6(2),e.Oqu(e.lcZ(7,2,"TILES.DISAGGREGATION.COOLING"))}}function Ia(t,a){if(1&t&&(e.TgZ(0,"div",30)(1,"div",21),e._UZ(2,"
1span",37),e.TgZ(3,"span",32),e._uU(4),e.qZA()(),e.TgZ(5,"span",33),e._uU(6),e.ALo(7,"translate"),e.qZA()()),2&t){const i=e.oxw().$implicit;e.xp6(4),e.hij(" ",i.value," "),e.xp6(2),e.Oqu(e.lcZ(7,2,"TILES.DISAGGREGATION.LAUNDRY"))}}function ya(t,a){if(1&t&&(e.TgZ(0,"div",30)(1,"div",21),e._UZ(2,"span",38),e.TgZ(3,"span",32),e._uU(4),e.qZA()(),e.TgZ(5,"span",33),e._uU(6),e.ALo(7,"translate"),e.qZA()()),2&t){const i=e.oxw().$implicit;e.xp6(4),e.hij(" ",i.value," "),e.xp6(2),e.Oqu(e.lcZ(7,2,"TILES.DISAGGREGATION.ENTERTAIN"))}}function La(t,a){if(1&t&&(e.TgZ(0,"div",30)(1,"div",21),e._UZ(2,"span",39),e.TgZ(3,"span",32),e._uU(4),e.qZA()(),e.TgZ(5,"span",33),e._uU(6),e.ALo(7,"translate"),e.qZA()()),2&t){const i=e.oxw().$implicit;e.xp6(4),e.hij(" ",i.value," "),e.xp6(2),e.Oqu(e.lcZ(7,2,"TILES.DISAGGREGATION.LIGHTING"))}}function Za(t,a){if(1&t&&(e.TgZ(0,"div",30)(1,"div",21),e._UZ(2,"span",40),e.TgZ(3,"span",32),e._uU(4),e.qZA()(),e.TgZ(5,"span",33),e._uU(6),e.ALo(7,"translate"),e.qZA()()),2&t){const i=e.oxw().$implicit;e.xp6(4),e.hij(" ",i.value," "),e.xp6(2),e.Oqu(e.lcZ(7,2,"TILES.DISAGGREGATION.FRIDGE"))}}function Sa(t,a){if(1&t&&(e.TgZ(0,"div",30)(1,"div",21),e._UZ(2,"span",41),e.TgZ(3,"span",32),e._uU(4),e.qZA()(),e.TgZ(5,"span",33),e._uU(6),e.ALo(7,"translate"),e.qZA()()),2&t){const i=e.oxw().$implicit;e.xp6(4),e.hij(" ",i.value," "),e.xp6(2),e.Oqu(e.lcZ(7,2,"TILES.DISAGGREGATION.HEATER"))}}function Na(t,a){if(1&t&&(e.TgZ(0,"div",30)(1,"div",21),e._UZ(2,"span",42),e.TgZ(3,"span",32),e._uU(4),e.qZA()(),e.TgZ(5,"span",33),e._uU(6),e.ALo(7,"translate"),e.qZA()()),2&t){const i=e.oxw().$implicit;e.xp6(4),e.hij(" ",i.value," "),e.xp6(2),e.Oqu(e.lcZ(7,2,"TILES.DISAGGREGATION.GAS"))}}function Da(t,a){if(1&t&&(e.TgZ(0,"div",30)(1,"div",21),e._UZ(2,"span",43),e.TgZ(3,"span",32),e._uU(4),e.qZA()(),e.TgZ(5,"span",33),e._uU(6),e.ALo(7,"translate"),e.qZA()()),2&t){const i=e.oxw().$implicit;e.xp6(4),e.hij(" ",i.value," "),e.xp6(2),e.Oqu(e.lcZ(7,2,"TILES.DISAGGREGATION.OTHER"))}}function wa(t,a){if(1&t&&(e.TgZ(0,"div",28),e.YNc(1,Ca,8,4,"div",29),e.YNc(2,Aa,8,4,"div",29),e.YNc(3,Oa,8,4,"div",29),e.YNc(4,Pa,8,4,"div",29),e.YNc(5,Ea,8,4,"div",29),e.YNc(6,ba,8,4,"div",29),e.YNc(7,Ma,8,4,"div",29),e.YNc(8,Ia,8,4,"div",29),e.YNc(9,ya,8,4,"div",29),e.YNc(10,La,8,4,"div",29),e.YNc(11,Za,8,4,"div",29),e.YNc(12,Sa,8,4,"div",29),e.YNc(13,Na,8,4,"div",29),e.YNc(14,Da,8,4,"div",29),e.qZA()),2&t){const i=a.$implicit;e.xp6(1),e.Q6J("ngIf","wholeHome"==i.category),e.xp6(1),e.Q6J("ngIf","alwaysOn"==i.category),e.xp6(1),e.Q6J("ngIf","spaceHeating"==i.category),e.xp6(1),e.Q6J("ngIf","poolPump"==i.category),e.xp6(1),e.Q6J("ngIf","ev"==i.category),e.xp6(1),e.Q6J("ngIf","cooking"==i.category),e.xp6(1),e.Q6J("ngIf","cooling"==i.category),e.xp6(1),e.Q6J("ngIf","laundry"==i.category),e.xp6(1),e.Q6J("ngIf","entertainment"==i.category),e.xp6(1),e.Q6J("ngIf","lighting"==i.category),e.xp6(1),e.Q6J("ngIf","refrigeration"==i.category),e.xp6(1),e.Q6J("ngIf","waterHeating"==i.category),e.xp6(1),e.Q6J("ngIf","gas"==i.category),e.xp6(1),e.Q6J("ngIf","other"==i.category)}}function Ba(t,a){if(1&t&&(e.TgZ(0,"div",13)(1,"div",13)(2,"div",26)(3,"p"),e._uU(4),e.ALo(5,"translate"),e._UZ(6,"nve-tool-tip",16),e.qZA()()(),e.TgZ(7,"div",17)(8,"div",18),e.YNc(9,wa,15,14,"div",27),e.qZA()()()),2&t){const i=e.oxw(3);e.xp6(4),e.hij(" ",e.lcZ(5,3,"TILES.DISAGGREGATION.BODY"),""),e.xp6(2),e.Q6J("isToolTip",!0),e.xp6(3),e.Q6J("ngForOf",i.disaggregationTileResponse.finalArray)}}function Ua(t,a){if(1&t){const i=e.EpF();e.TgZ(0,"div")(1,"div",10),e.YNc(2,xa,25,4,"div",11),e.YNc(3,Ba,10,5,"div",11),e.qZA(),e.TgZ(4,"div",12)(5,"div",13)(6,"div",14)(7,"button",15),e.NdJ("click",function(){e.CHM(i);const o=e.oxw(2);return e.KtG(o.openBidgely())}),e._uU(8),e.ALo(9,"translate"),e.qZA()()()()()}if(2&t){const i=e.oxw(2);e.xp6(2),e.Q6J("ngIf",i.disaggregationTileResponse.showBlurredTiles),e.xp6(1),e.Q6J("ngIf",!i.disaggregationTileResponse.showBlurredTiles),e.xp6(5),e.hij(" ",e.lcZ(9,3,"TILES.DISAGGREGATION.SIGNIN")," ")}}function Ra(t,a){if(1&t){const i=e.EpF();e.TgZ(0,"div",3)(1,"div",4)(2,"h2",5),e.NdJ("click",function(){e.CHM(i);const o=e.oxw();return e.KtG(o.onUserToggle())}),e.ALo(3,"translate"),e.YNc(4,Ta,2,0,"span",6),e.YNc(5,fa,2,0,"span",6),e.TgZ(6,"span",7),e._uU(7),e.ALo(8,"translate"),e.qZA()(),e.YNc(9,va,4,6,"span",8),e.YNc(10,ha,4,6,"span",8),e.qZA(),e.YNc(11,Ua,10,5,"div",6),e.qZA()}if(2&t){const i=e.oxw();e.xp6(2),e.s9C("title",e.lcZ(3,7,"TILES.DISAGGREGATION.TITLE")),e.xp6(2),e.Q6J("ngIf",i.showPanelAndBody),e.xp6(1),e.Q6J("ngIf",!i.showPanelAndBody),e.xp6(2),e.Oqu(e.l
1cZ(8,9,"TILES.DISAGGREGATION.TITLE")),e.xp6(2),e.Q6J("ngIf",i.disaggregationTileResponse.showBlurredTiles),e.xp6(1),e.Q6J("ngIf",!i.disaggregationTileResponse.showBlurredTiles),e.xp6(1),e.Q6J("ngIf",i.showPanelAndBody)}}function Ya(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"-"),e.qZA())}function qa(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"+"),e.qZA())}function Fa(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"TILES.DISAGGREGATION.STATICHEADING")))}function ka(t,a){1&t&&(e.TgZ(0,"div",46),e._UZ(1,"nve-spinner"),e.qZA())}function Ja(t,a){1&t&&(e.TgZ(0,"div",46)(1,"div",13)(2,"div",14),e._uU(3),e.ALo(4,"translate"),e.qZA()()()),2&t&&(e.xp6(3),e.Oqu(e.lcZ(4,1,"GENERAL.SOMETHINGWRONGMSG1")))}function Ga(t,a){if(1&t&&(e.TgZ(0,"div"),e.YNc(1,ka,2,0,"div",45),e.YNc(2,Ja,5,3,"div",45),e._UZ(3,"div",12),e.qZA()),2&t){const i=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!i.isErrorOccured),e.xp6(1),e.Q6J("ngIf",i.isErrorOccured)}}function Qa(t,a){if(1&t){const i=e.EpF();e.TgZ(0,"div",44)(1,"div",4)(2,"h2",5),e.NdJ("click",function(){e.CHM(i);const o=e.oxw();return e.KtG(o.onUserToggle())}),e.ALo(3,"translate"),e.YNc(4,Ya,2,0,"span",6),e.YNc(5,qa,2,0,"span",6),e.TgZ(6,"span",7),e._uU(7),e.ALo(8,"translate"),e.qZA()(),e.YNc(9,Fa,3,3,"span",6),e.qZA(),e.YNc(10,Ga,4,2,"div",6),e.qZA()}if(2&t){const i=e.oxw();e.xp6(2),e.s9C("title",e.lcZ(3,6,"TILES.DISAGGREGATION.TITLE")),e.xp6(2),e.Q6J("ngIf",i.showPanelAndBody),e.xp6(1),e.Q6J("ngIf",!i.showPanelAndBody),e.xp6(2),e.hij(" ",e.lcZ(8,8,"TILES.DISAGGREGATION.TITLE"),""),e.xp6(2),e.Q6J("ngIf",!i.showPanelAndBody||!i.isDataLoaded),e.xp6(1),e.Q6J("ngIf",i.showPanelAndBody)}}let Ha=(()=>{var t;class a{constructor(n,o,l,r,p,u){this.widgetsService=n,this.bidgelyDisaggregationService=o,this.userService=l,this.currencyPipe=r,this.config=p,this.logger=u,this.isErrorOccured=!1,this.showPanelAndBody=!1,this.disaggregationTileResponse=void 0,this.widgetId=4,this.isDataLoaded=!1,this.hasPercent=!1,this.widgetsService.closeEventEmitter.subscribe(x=>{x!==this.widgetId&&this.showPanelAndBody&&this.togglePanelAndBody()})}set index(n){this.widgetIndex=n}ngOnInit(){var n,o;this.widgetIndex<this.config.config.numberOfTilesOpenByDefault&&(this.showPanelAndBody=!0,this.initializeTile());const l=null===(n=this.userService.user)||void 0===n||null===(o=n.currentAccount)||void 0===o?void 0:o.accountNumber;l&&this.bidgelyDisaggregationService.prefetchBidgelyRedirect(l)}initializeTile(){this.widgetIndex<this.config.config.numberOfTilesOpenByDefault&&(this.showPanelAndBody=!0),this.getDisaggregationTileDetails()}getDisaggregationTileDetails(){this.bidgelyDisaggregationService.getDisaggregationTileDetails().then(n=>{this.determineValues(n)}).catch(n=>{this.isErrorOccured=!0,this.logger.error("Error occurred while fetching response for getDisaggregationTileDetails from server.",n)})}togglePanelAndBody(){this.showPanelAndBody=!this.showPanelAndBody,this.showPanelAndBody&&(this.isDataLoaded||this.initializeTile())}onUserToggle(){this.togglePanelAndBody(),this.widgetsService.toggleWidgetEvent(this.widgetId)}openBidgely(){var n,o;const l=null===(n=this.userService.user)||void 0===n||null===(o=n.currentAccount)||void 0===o?void 0:o.accountNumber;this.bidgelyDisaggregationService.openBidgelyExternal(l)}determineValues(n){n.showPercent&&(this.hasPercent=!0),n.finalArray.forEach(o=>{o.value=this.hasPercent?o.percentage<1?"<1%":`${o.percentage}%`:o.cost<1?"<1$":this.currencyPipe.transform(o.cost,"USD",!0,"1.0-0")}),this.disaggregationTileResponse=n,this.isDataLoaded=!0}}return(t=a).\u0275fac=function(n){return new(n||t)(e.Y36(Y.L),e.Y36(V.zU),e.Y36(f.K),e.Y36(s.H9),e.Y36(T._),e.Y36(X.Y))},t.\u0275cmp=e.Xpm({type:t,selectors:[["nve-disaggregation-tile"]],inputs:{index:"index"},decls:3,vars:2,consts:[[1,"widget-component"],["class","panel panel-default","tabindex","0",4,"ngIf"],["class","panel panel-default",4,"ngIf"],["tabindex","0",1,"panel","panel-default"],[1,"panel-heading"],[1,"accent-color-red",3,"title","click"],[4,"ngIf"],[1,"panel-text"],[3,"title",4,"ngIf"],[3,"title"],[1,"panel-body",2,"overflow-y","hidden"],["class","clearfix",4,"ngIf"],[1,"panel-footer"],[1,"clearfix"],[1,"col-xs-12"],[1,"nv-btn","nv-btn-blue",3,"click"],["type","ToolTipModalComponent","path","/tooltips/ways-to-save.html",3,"isToolTip"],[1,"clearfix","margin-top-20"],[1,"col-xs-12",2,"padding-right","5px"],[1,"disaggregation-icon-wrapper-disable"],[1,"disaggregation-icon-tile","disaggregation-icon-disabled"],[1,"disaggregation-icon"],["WindowsDisAggregationTile","",1,"nve-icon","nve-icon-dis-plug"],["WindowsDisAggregationTile","",1,"nve-icon","nve-icon-dis-heating"],["WindowsDisAggregationTile","",1,"nve-icon","nve-icon-dis-pool-pump"],["WindowsDisAggregationTile","",1,"nve-icon","nve-icon-dis-ev2"],[1,"col-xs-12","dissagregation-tile-headings"],["class","disaggregation-icon-wrapper",4,"ngFor","ngForOf"],[1,"disaggregation-icon-wrapper"],["class","disaggregation-icon-tile",4,"ngIf"],[1,"disaggregation-icon-tile"],["WindowsDisAggregationTile","",1,"nve-icon","nve-icon-dis-house"],[1,"value"],[1,"disaggregation-text"],["WindowsDisAggregationTile","",1,"disaggregation-icon"],["WindowsDisAggregationTile","",1,"nve-icon","nve-icon-dis-oven"],["WindowsDisAggregationTile","",1,"nve-icon","nve-icon-dis-ac"],["WindowsDisAggregationTile","",1,"nve-icon","nve-icon-dis-washer"],["WindowsDisAggregationTile","",1,"nve-icon","nve-icon-dis-tv"],["WindowsDisAggregationTile","",1,"nve-icon","nve-icon-dis-lightbulb"],["WindowsDisAggregationTile","",1,"nve-icon","nve-icon-dis-refrigerator"],["WindowsDisAggregationTile","",1,"nve-icon","nve-icon-dis-water-heater"],["WindowsDisAggregationTile","",1,"nve-icon","nve-icon-dis-gas"],["WindowsDisAggregationTile","",1,"nve-icon","nve-icon-dis-other"],[1,"panel","panel-default"],["class","panel-body text-center",4,"ngIf"],[1,"panel-body","text-center"]],template:function(n,o){1&n&&(e.TgZ(0,"div",0),e.YNc(1,Ra,12,11,"div",1),e.YNc(2,Qa,11,10,"div",2),e.qZA()),2&n&&(e.xp6(1),e.Q6J("ngIf",null!=o.disaggregationTileResponse),e.xp6(1),e.Q6J("ngIf",null==o.disaggregationTileResponse))}
1,dependencies:[F.$,ce.I,s.sg,s.O5,ma,_.X$],styles:[".nve[_ngcontent-%COMP%] .radio-md[_ngcontent-%COMP%] .radio-checked[_ngcontent-%COMP%]{border-color:#d2c9c7}.nve[_ngcontent-%COMP%] .radio-md[_ngcontent-%COMP%] .radio-inner[_ngcontent-%COMP%]{top:3px;left:3px;width:12px;height:12px}.nve[_ngcontent-%COMP%] .radio-md[_ngcontent-%COMP%] .radio-icon[_ngcontent-%COMP%]{border-color:#d2c9c7;background:#ffffff}.nve[_ngcontent-%COMP%] .checkbox-md[_ngcontent-%COMP%] .checkbox-checked[_ngcontent-%COMP%]{border-color:#d2c9c7;background-color:#fff}.nve[_ngcontent-%COMP%] .checkbox-md[_ngcontent-%COMP%] .checkbox-icon[_ngcontent-%COMP%]{width:20px;height:20px;border-width:1px;border-style:solid;border-radius:1px;border-color:#d2c9c7;background-color:#fff}.nve[_ngcontent-%COMP%] .checkbox-md[_ngcontent-%COMP%] .checkbox-checked[_ngcontent-%COMP%] .checkbox-inner[_ngcontent-%COMP%]{top:0;left:7px;width:5px;height:14px}.nve[_ngcontent-%COMP%] .checkbox-md.checkbox-disabled[_ngcontent-%COMP%], .nve[_ngcontent-%COMP%] .item-md.item-checkbox-disabled[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{opacity:.6;pointer-events:none;background:#ccc}.nve[_ngcontent-%COMP%] .radio-md.radio-disabled[_ngcontent-%COMP%], .nve[_ngcontent-%COMP%] .item-md.item-radio-disabled[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{opacity:.6;pointer-events:none}.nve[_ngcontent-%COMP%] .radio-md.radio-disabled[_ngcontent-%COMP%] .radio-icon[_ngcontent-%COMP%], .nve[_ngcontent-%COMP%] .item-md.item-radio-disabled[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%] .radio-icon[_ngcontent-%COMP%]{background:#cccccc}.nve[_ngcontent-%COMP%] ion-radio.radio-disabled[_ngcontent-%COMP%]{opacity:.6;pointer-events:none}.nve[_ngcontent-%COMP%] ion-radio.radio-disabled[_ngcontent-%COMP%]::part(container){background:#cccccc}.nve[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-size:1em;font-weight:400;color:#000}.disaggregation-icon-wrapper[_ngcontent-%COMP%]{display:inline-block;width:25%;height:auto;padding:10px 5px 10px 0;vertical-align:top;box-sizing:border-box}.disaggregation-icon-wrapper[_ngcontent-%COMP%] .disaggregation-icon[_ngcontent-%COMP%]{margin:0 auto;background:#808285;border-radius:5px;padding:0 5px 3px;width:100%;text-align:center}.disaggregation-icon-wrapper[_ngcontent-%COMP%] .disaggregation-icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;width:100%}.disaggregation-icon-wrapper[_ngcontent-%COMP%] .disaggregation-icon[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{text-align:center;color:#fff;margin-top:0;font-size:1em;padding-top:5px}.disaggregation-icon-wrapper[_ngcontent-%COMP%] .disaggregation-icon[_ngcontent-%COMP%] .nve-icon[_ngcontent-%COMP%]{color:#fff;text-align:center;font-size:46px}.disaggregation-icon-wrapper[_ngcontent-%COMP%] .disaggregation-icon-tile.disaggregation-icon-disabled[_ngcontent-%COMP%] .disaggregation-icon[_ngcontent-%COMP%]{padding:12px 5px}.disaggregation-icon-wrapper[_ngcontent-%COMP%] .disaggregation-icon.blurred[_ngcontent-%COMP%], .disaggregation-icon-wrapper[_ngcontent-%COMP%] .disaggregation-text.blurred[_ngcontent-%COMP%]{filter:blur(2px);-webkit-filter:blur(2px);-moz-filter:blur(2px);-o-filter:blur(2px);-ms-filter:blur(2px)}.disaggregation-icon-wrapper[_ngcontent-%COMP%] .disaggregation-text[_ngcontent-%COMP%]{text-align:center;display:block;width:100%;line-height:1em;font-size:.8em;margin:5px 0 10px}@media (max-width: 340px){.disaggregation-icon-wrapper[_ngcontent-%COMP%] .disaggregation-text[_ngcontent-%COMP%]{font-size:.6em}}.disaggregation-icon-wrapper-disable[_ngcontent-%COMP%]{float:left;width:25%;height:auto;padding:10px 5px 10px 0;vertical-align:top;box-sizing:border-box}.disaggregation-icon-wrapper-disable[_ngcontent-%COMP%] .disaggregation-icon[_ngcontent-%COMP%]{margin:0 auto;background:#808285;border-radius:5px;padding:0 5px 3px;width:100%;text-align:center}.disaggregation-icon-wrapper-disable[_ngcontent-%COMP%] .disaggregation-icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;width:100%}.disaggregation-icon-wrapper-disable[_ngcontent-%COMP%] .disaggregation-icon[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{text-align:center;color:#fff;margin-top:0;font-size:1em;padding-top:5px}.disaggregation-icon-wrapper-disable[_ngcontent-%COMP%] .disaggregation-icon[_ngcontent-%COMP%] .nve-icon[_ngcontent-%COMP%]{color:#fff;text-align:center;font-size:46px}.disaggregation-icon-wrapper-disable[_ngcontent-%COMP%] .disaggregation-icon-tile.disaggregation-icon-disabled[_ngcontent-%COMP%] .disaggregation-icon[_ngcontent-%COMP%]{padding:12px 5px}.disaggregation-icon-wrapper-disable[_ngcontent-%COMP%] .disaggregation-icon.blurred[_ngcontent-%COMP%], .disaggregation-icon-wrapper-disable[_ngcontent-%COMP%] .disaggregation-text.blurred[_ngcontent-%COMP%]{filter:blur(2px);-webkit-filter:blur(2px);-moz-filter:blur(2px);-o-filter:blur(2px);-ms-filter:blur(2px)}.disaggregation-icon-wrapper-disable[_ngcontent-%COMP%] .disaggregation-text[_ngcontent-%COMP%]{text-align:center;display:block;width:100%;line-height:1em;font-size:.8em;margin:5px 0 10px}@media (max-width: 340px){.disaggregation-icon-wrapper-disable[_ngcontent-%COMP%] .disaggregation-text[_ngcontent-%COMP%]{font-size:.6em}}.dissagregation-tile-headings[_ngcontent-%COMP%]{padding-right:5px}.dissagregation-tile-headings[_ngcontent-%COMP%] .nve-icon[_ngcontent-%COMP%]{margin-right:0}.dissagregation-tile-headings[_ngcontent-%COMP%] .header-info-icon[_ngcontent-%COMP%]{left:0}"]}),a})();var ie=d(89976);const we="/about-nvenergy/rates-regulatory/daily-demand";let Ka=(()=>{var t;class a{constructor(n,o){this.http=n,this.logger=o,this.dailyDemandUrl="/daily-demand"}getDailyDemandAnnualCompare(n){return this.http.sendRequest(ie.a.POST,this.dailyDemandUrl+"/getDailyDemandAnnualCompare",void 0,null,!1,n).then(l=>{var r,p,u;const x=null!==(r=null==l?void 0:l.ResponseBody)&&void 0!==r?r:null==l||null===(p=l.error)||void 0===p||null===(u=p.error)||void 0===u?void 0:u.ResponseBody;return null!=l&&l.isSuccess&&"S"===(null==x?void 0:x.returnCode)?Promise.resolve(x):(this.logger.error("Error occurred while fetching response for getDailyDemandAnnualCompare from server.",l),Promise.reject(x))},l=>(this.logger.error("Unexpected Server Error occurred while fetching response for getDailyDemandAnnualCompare from server.",l),Promise.reject(void 0)))}}return(t=a).\u0275fac=function(n){return new(n||t)(e.LFG(fe.r),e.LFG
1(X.Y))},t.\u0275prov=e.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),a})();var Be=d(42311);function Xa(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"-"),e.qZA())}function $a(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"+"),e.qZA())}function za(t,a){if(1&t&&(e.TgZ(0,"span",7),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t){const i=e.oxw();e.xp6(1),e.Oqu(e.lcZ(2,1,i.labelKeyRoot+".TITLE"))}}function Va(t,a){if(1&t&&(e.TgZ(0,"span",8),e.ALo(1,"translate"),e._uU(2),e.ALo(3,"translate"),e.qZA()),2&t){const i=e.oxw();e.s9C("title",e.lcZ(1,2,i.labelKeyRoot+".HEADER")),e.xp6(2),e.Oqu(e.lcZ(3,4,i.labelKeyRoot+".HEADER"))}}function el(t,a){1&t&&(e.TgZ(0,"div",13),e._UZ(1,"nve-spinner"),e.qZA())}const tl=function(t,a){return{startDate:t,endDate:a}};function nl(t,a){if(1&t&&(e.TgZ(0,"div",14)(1,"div",15)(2,"strong"),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"div",16),e._uU(6),e.ALo(7,"currency"),e.qZA()(),e.TgZ(8,"div",15)(9,"strong"),e._uU(10),e.ALo(11,"translate"),e.qZA(),e.TgZ(12,"div",16),e._uU(13),e.ALo(14,"currency"),e.qZA()(),e.TgZ(15,"div",17)(16,"strong"),e._uU(17),e.ALo(18,"translate"),e.ALo(19,"currency"),e.qZA(),e._UZ(20,"nve-tool-tip",18),e.qZA(),e.TgZ(21,"div",19),e._uU(22),e.ALo(23,"translate"),e.ALo(24,"date"),e.ALo(25,"date"),e.qZA(),e.TgZ(26,"div",20)(27,"p"),e._uU(28),e.ALo(29,"translate"),e.qZA()()()),2&t){const i=e.oxw(2);e.xp6(3),e.Oqu(e.lcZ(4,10,"TILES.DAILYDEMANDCOMPARISON.CURRENTPLAN")),e.xp6(3),e.Oqu(e.gM2(7,12,i.currentPlanAmount,"USD","symbol","1.0-0")),e.xp6(4),e.Oqu(e.lcZ(11,17,i.labelKeyRoot+".DAILYDEMAND")),e.xp6(3),e.Oqu(e.gM2(14,19,i.dailyDemandAmount,"USD","symbol","1.0-0")),e.xp6(4),e.AsE("",e.lcZ(18,24,"TILES.DAILYDEMANDCOMPARISON.ESTIMATEDIFF")," ",e.gM2(19,26,i.estimatedDifference,"USD","symbol","1.0-0"),""),e.xp6(3),e.Q6J("path",i.estimateTooltipPath)("isToolTip",!0),e.xp6(2),e.hij(" ",e.xi3(23,31,"TILES.DAILYDEMANDCOMPARISON.DATERANGE",e.WLB(42,tl,e.xi3(24,34,i.compareStartDate,"MMM yyyy"),e.xi3(25,37,i.compareEndDate,"MMM yyyy")))," "),e.xp6(6),e.Oqu(e.lcZ(29,40,i.labelKeyRoot+".BODY"))}}function il(t,a){if(1&t&&(e.TgZ(0,"div",14)(1,"div",21)(2,"p"),e._uU(3),e.ALo(4,"translate"),e._UZ(5,"nve-tool-tip",18),e.qZA()()()),2&t){const i=e.oxw(2);e.xp6(3),e.hij(" ",e.lcZ(4,3,i.labelKeyRoot+".DATANOTAVAILABLE")," "),e.xp6(2),e.Q6J("path",i.dataNotAvailableTooltipPath)("isToolTip",!0)}}function ol(t,a){if(1&t){const i=e.EpF();e.TgZ(0,"button",26),e.NdJ("click",function(){e.CHM(i);const o=e.oxw(3);return e.KtG(o.openBidgely())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"TILES.DAILYDEMANDCOMPARISON.ENERGYINSIGHTSBUTTON")," "))}function al(t,a){if(1&t&&(e.TgZ(0,"div",22)(1,"div",14)(2,"div",23),e.YNc(3,ol,3,3,"button",24),e.TgZ(4,"a",25),e._uU(5),e.ALo(6,"translate"),e.qZA()()()()),2&t){const i=e.oxw(2);e.xp6(3),e.Q6J("ngIf",i.showBidgelyInsights),e.xp6(1),e.Q6J("href",i.faqsUrl,e.LSH),e.xp6(1),e.hij(" ",e.lcZ(6,3,i.labelKeyRoot+".DAILYDEMANDFAQS")," ")}}function ll(t,a){if(1&t&&(e.TgZ(0,"div")(1,"div",9),e.YNc(2,el,2,0,"div",10),e.YNc(3,nl,30,45,"div",11),e.YNc(4,il,6,5,"div",11),e.qZA(),e.YNc(5,al,7,5,"div",12),e.qZA()),2&t){const i=e.oxw();e.xp6(2),e.Q6J("ngIf",i.isLoading),e.xp6(1),e.Q6J("ngIf",!i.isLoading&&i.isDataAvailable),e.xp6(1),e.Q6J("ngIf",!i.isLoading&&!i.isDataAvailable),e.xp6(1),e.Q6J("ngIf",!i.isLoading)}}const Ue="TILES.DAILYDEMANDCOMPARISON";let pl=(()=>{var t;class a{constructor(n,o,l,r,p,u){this.widgetsService=n,this.bidgelyDisaggregationService=o,this.dailyDemandService=l,this.userService=r,this.localeService=p,this.config=u,this.showPanelAndBody=!1,this.widgetId=14,this.isLoading=!0,this.isDataAvailable=!1,this.widgetsService.closeEventEmitter.subscribe(x=>{x!==this.widgetId&&this.showPanelAndBody&&this.togglePanelAndBody()})}set index(n){this.widgetIndex=n}ngOnInit(){var n,o;this.widgetIndex<this.config.config.numberOfTilesOpenByDefault&&(this.showPanelAndBody=!0);const l=null===(n=this.userService.user)||void 0===n||null===(o=n.currentAccount)||void 0===o?void 0:o.accountNumber;l&&this.bidgelyDisaggregationService.prefetchBidgelyRedirect(l,V.KO),this.loadAnnualCompare(l)}get isNonResidential(){return!1===this.showBidgelyInsights}get labelKeyRoot(){return this.isNonResidential?`${Ue}.NONRES`:Ue}get estimateTooltipPath(){return this.isNonResidential?"/tooltips/monthly-demand.html":"/tooltips/daily-demand-solar.html"}get dataNotAvailableTooltipPath(){return this.isNonResidential?"/tooltips/monthly-demand-annual.html":"/tooltips/daily-demand-annual.html"}
1get faqsUrl(){var n;return(null===(n=this.localeService.locale)||void 0===n?void 0:n.frontEndUrl)+(this.isNonResidential?"/help/monthly-demand-faqs":we)}togglePanelAndBody(){this.showPanelAndBody=!this.showPanelAndBody}onUserToggle(){this.togglePanelAndBody(),this.widgetsService.toggleWidgetEvent(this.widgetId)}openBidgely(){var n,o;const l=null===(n=this.userService.user)||void 0===n||null===(o=n.currentAccount)||void 0===o?void 0:o.accountNumber;this.bidgelyDisaggregationService.openBidgelyExternal(l,V.KO)}loadAnnualCompare(n){this.dailyDemandService.getDailyDemandAnnualCompare(n).then(o=>{this.currentPlanAmount=Number(o.currentTotalBilling),this.dailyDemandAmount=Number(o.ddTotalBilling),this.compareStartDate=o.compareStartDate,this.compareEndDate=o.compareEndDate,this.estimatedDifference=Math.round(this.dailyDemandAmount)-Math.round(this.currentPlanAmount),this.showBidgelyInsights=o.showBidgelyInsights,this.isDataAvailable=!0}).catch(o=>{this.isDataAvailable=!1,this.showBidgelyInsights=null==o?void 0:o.showBidgelyInsights}).finally(()=>{this.isLoading=!1})}}return(t=a).\u0275fac=function(n){return new(n||t)(e.Y36(Y.L),e.Y36(V.zU),e.Y36(Ka),e.Y36(f.K),e.Y36(Be.O),e.Y36(T._))},t.\u0275cmp=e.Xpm({type:t,selectors:[["nve-daily-demand-comparison-tile"]],inputs:{index:"index"},decls:10,vars:8,consts:[[1,"widget-component"],["tabindex","0",1,"panel","panel-default"],[1,"panel-heading"],[1,"accent-color-red",3,"title","click"],[4,"ngIf"],["class","panel-text",4,"ngIf"],[3,"title",4,"ngIf"],[1,"panel-text"],[3,"title"],[1,"panel-body"],["class","nve-trigon-spinner-centered",4,"ngIf"],["class","clearfix",4,"ngIf"],["class","panel-footer",4,"ngIf"],[1,"nve-trigon-spinner-centered"],[1,"clearfix"],[1,"col-xs-6","text-center","daily-demand-comparison__column"],[1,"large-text"],[1,"col-xs-12","text-center","daily-demand-comparison__estimate"],["type","ToolTipModalComponent",3,"path","isToolTip"],[1,"col-xs-12","text-center","daily-demand-comparison__date-range"],[1,"col-xs-12","daily-demand-comparison__body"],[1,"col-xs-12"],[1,"panel-footer"],[1,"col-xs-12","daily-demand-comparison__actions"],["class","nv-btn nv-btn-blue",3,"click",4,"ngIf"],["rel","noopener noreferrer",3,"href"],[1,"nv-btn","nv-btn-blue",3,"click"]],template:function(n,o){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2",3),e.NdJ("click",function(){return o.onUserToggle()}),e.ALo(4,"translate"),e.YNc(5,Xa,2,0,"span",4),e.YNc(6,$a,2,0,"span",4),e.YNc(7,za,3,3,"span",5),e.qZA(),e.YNc(8,Va,4,6,"span",6),e.qZA(),e.YNc(9,ll,6,4,"div",4),e.qZA()()),2&n&&(e.xp6(3),e.s9C("title",e.lcZ(4,6,o.labelKeyRoot+".TITLE")),e.xp6(2),e.Q6J("ngIf",o.showPanelAndBody),e.xp6(1),e.Q6J("ngIf",!o.showPanelAndBody),e.xp6(1),e.Q6J("ngIf",!o.isLoading),e.xp6(1),e.Q6J("ngIf",!o.isLoading),e.xp6(1),e.Q6J("ngIf",o.showPanelAndBody))},dependencies:[F.$,ce.I,s.O5,_.X$,s.H9,s.uU],styles:[".nve[_ngcontent-%COMP%] .radio-md[_ngcontent-%COMP%] .radio-checked[_ngcontent-%COMP%]{border-color:#d2c9c7}.nve[_ngcontent-%COMP%] .radio-md[_ngcontent-%COMP%] .radio-inner[_ngcontent-%COMP%]{top:3px;left:3px;width:12px;height:12px}.nve[_ngcontent-%COMP%] .radio-md[_ngcontent-%COMP%] .radio-icon[_ngcontent-%COMP%]{border-color:#d2c9c7;background:#ffffff}.nve[_ngcontent-%COMP%] .checkbox-md[_ngcontent-%COMP%] .checkbox-checked[_ngcontent-%COMP%]{border-color:#d2c9c7;background-color:#fff}.nve[_ngcontent-%COMP%] .checkbox-md[_ngcontent-%COMP%] .checkbox-icon[_ngcontent-%COMP%]{width:20px;height:20px;border-width:1px;border-style:solid;border-radius:1px;border-color:#d2c9c7;background-color:#fff}.nve[_ngcontent-%COMP%] .checkbox-md[_ngcontent-%COMP%] .checkbox-checked[_ngcontent-%COMP%] .checkbox-inner[_ngcontent-%COMP%]{top:0;left:7px;width:5px;height:14px}.nve[_ngcontent-%COMP%] .checkbox-md.checkbox-disabled[_ngcontent-%COMP%], .nve[_ngcontent-%COMP%] .item-md.item-checkbox-disabled[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{opacity:.6;pointer-events:none;background:#ccc}.nve[_ngcontent-%COMP%] .radio-md.radio-disabled[_ngcontent-%COMP%], .nve[_ngcontent-%COMP%] .item-md.item-radio-disabled[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{opacity:.6;pointer-events:none}.nve[_ngcontent-%COMP%] .radio-md.radio-disabled[_ngcontent-%COMP%] .radio-icon[_ngcontent-%COMP%], .nve[_ng
1content-%COMP%] .item-md.item-radio-disabled[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%] .radio-icon[_ngcontent-%COMP%]{background:#cccccc}.nve[_ngcontent-%COMP%] ion-radio.radio-disabled[_ngcontent-%COMP%]{opacity:.6;pointer-events:none}.nve[_ngcontent-%COMP%] ion-radio.radio-disabled[_ngcontent-%COMP%]::part(container){background:#cccccc}.nve[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-size:1em;font-weight:400;color:#000}.daily-demand-comparison__column[_ngcontent-%COMP%]{margin-bottom:10px}.daily-demand-comparison__estimate[_ngcontent-%COMP%]{margin-top:20px}.daily-demand-comparison__date-range[_ngcontent-%COMP%]{font-style:italic;margin-top:5px}.daily-demand-comparison__body[_ngcontent-%COMP%]{margin-top:20px}.daily-demand-comparison__actions[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end}.daily-demand-comparison__actions[_ngcontent-%COMP%] .nv-btn[_ngcontent-%COMP%]{margin-right:auto}"]}),a})();function gl(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"-"),e.qZA())}function _l(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"+"),e.qZA())}function ul(t,a){if(1&t){const i=e.EpF();e.TgZ(0,"div")(1,"div",7)(2,"div",8)(3,"div",9)(4,"p"),e._uU(5),e.ALo(6,"translate"),e.qZA()(),e._UZ(7,"img",10),e.ALo(8,"translate"),e.qZA()(),e.TgZ(9,"div",11)(10,"div",8)(11,"div",12)(12,"button",13),e.NdJ("click",function(){e.CHM(i);const o=e.oxw();return e.KtG(o.openBidgely())}),e._uU(13),e.ALo(14,"translate"),e.qZA(),e.TgZ(15,"a",14),e._uU(16),e.ALo(17,"translate"),e.qZA()()()()()}if(2&t){const i=e.oxw();
1e.xp6(5),e.Oqu(e.lcZ(6,5,"TILES.DAILYDEMANDFIRSTLOOK.BODY")),e.xp6(2),e.s9C("alt",e.lcZ(8,7,"TILES.DAILYDEMANDFIRSTLOOK.PROMOIMGALT")),e.xp6(6),e.hij(" ",e.lcZ(14,9,"TILES.DAILYDEMANDFIRSTLOOK.SIGNIN")," "),e.xp6(2),e.Q6J("href",i.faqsUrl,e.LSH),e.xp6(1),e.hij(" ",e.lcZ(17,11,"TILES.DAILYDEMANDFIRSTLOOK.DAILYDEMANDFAQS")," ")}}let ml=(()=>{var t;class a{constructor(n,o,l,r,p){this.widgetsService=n,this.bidgelyDisaggregationService=o,this.userService=l,this.localeService=r,this.config=p,this.showPanelAndBody=!1,this.widgetId=13,this.widgetsService.closeEventEmitter.subscribe(u=>{u!==this.widgetId&&this.showPanelAndBody&&this.togglePanelAndBody()})}set index(n){this.widgetIndex=n}ngOnInit(){var n,o;this.widgetIndex<this.config.config.numberOfTilesOpenByDefault&&(this.showPanelAndBody=!0);const l=null===(n=this.userService.user)||void 0===n||null===(o=n.currentAccount)||void 0===o?void 0:o.accountNumber;l&&this.bidgelyDisaggregationService.prefetchBidgelyRedirect(l,V.KO)}get faqsUrl(){var n;return(null===(n=this.localeService.locale)||void 0===n?void 0:n.frontEndUrl)+we}togglePanelAndBody(){this.showPanelAndBody=!this.showPanelAndBody}onUserToggle(){this.togglePanelAndBody(),this.widgetsService.toggleWidgetEvent(this.widgetId)}openBidgely(){var n,o;const l=null===(n=this.userService.user)||void 0===n||null===(o=n.currentAccount)||void 0===o?void 0:o.accountNumber;this.bidgelyDisaggregationService.openBidgelyExternal(l,V.KO)}}return(t=a).\u0275fac=function(n){return new(n||t)(e.Y36(Y.L),e.Y36(V.zU),e.Y36(f.K),e.Y36(Be.O),e.Y36(T._))},t.\u0275cmp=e.Xpm({type:t,selectors:[["nve-daily-demand-first-look-tile"]],inputs:{index:"index"},decls:15,vars:15,consts:[[1,"widget-component"],["tabindex","0",1,"panel","panel-default"],[1,"panel-heading"],[1,"accent-color-red",3,"title","click"],[4,"ngIf"],[1,"panel-text"],[3,"title"],[1,"panel-body"],[1,"clearfix"],[1,"col-xs-12"],["src","assets/images/daily-demand-usage-promo.png",1,"img-responsive",3,"alt"],[1,"panel-footer"],[1,"col-xs-12","daily-demand-first-look__actions"],[1,"nv-btn","nv-btn-blue",3,"click"],["rel","noopener noreferrer",3,"href"]],template:function(n,o){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2",3),e.NdJ("click",function(){return o.onUserToggle()}),e.ALo(4,"translate"),e.YNc(5,gl,2,0,"span",4),e.YNc(6,_l,2,0,"span",4),e.TgZ(7,"span",5),e._uU(8),e.ALo(9,"translate"),e.qZA()(),e.TgZ(10,"span",6),e.ALo(11,"translate"),e._uU(12),e.ALo(13,"translate"),e.qZA()(),e.YNc(14,ul,18,13,"div",4),e.qZA()()),2&n&&(e.xp6(3),e.s9C("title",e.lcZ(4,7,"TILES.DAILYDEMANDFIRSTLOOK.TITLE")),e.xp6(2),e.Q6J("ngIf",o.showPanelAndBody),e.xp6(1),e.Q6J("ngIf",!o.showPanelAndBody),e.xp6(2),e.Oqu(e.lcZ(9,9,"TILES.DAILYDEMANDFIRSTLOOK.TITLE")),e.xp6(2),e.s9C("title",e.lcZ(11,11,"TILES.DAILYDEMANDFIRSTLOOK.HEADER")),e.xp6(2),e.Oqu(e.lcZ(13,13,"TILES.DAILYDEMANDFIRSTLOOK.HEADER")),e.xp6(2),e.Q6J("ngIf",o.showPanelAndBody))},dependencies:[s.O5,_.X$],styles:[".nve[_ngcontent-%COMP%] .radio-md[_ngcontent-%COMP%] .radio-checked[_ngcontent-%COMP%]{border-color:#d2c9c7}.nve[_ngcontent-%COMP%] .radio-md[_ngcontent-%COMP%] .radio-inner[_ngcontent-%COMP%]{top:3px;left:3px;width:12px;height:12px}.nve[_ngcontent-%COMP%] .radio-md[_ngcontent-%COMP%] .radio-icon[_ngcontent-%COMP%]{border-color:#d2c9c7;background:#ffffff}.nve[_ngcontent-%COMP%] .checkbox-md[_ngcontent-%COMP%] .checkbox-checked[_ngcontent-%COMP%]{border-color:#d2c9c7;background-color:#fff}.nve[_ngcontent-%COMP%] .checkbox-md[_ngcontent-%COMP%] .checkbox-icon[_ngcontent-%COMP%]{width:20px;height:20px;border-width:1px;border-style:solid;border-radius:1px;border-color:#d2c9c7;background-color:#fff}.nve[_ngcontent-%COMP%] .checkbox-md[_ngcontent-%COMP%] .checkbox-checked[_ngcontent-%COMP%] .checkbox-inner[_ngcontent-%COMP%]{top:0;left:7px;width:5px;height:14px}.nve[_ngcontent-%COMP%] .checkbox-md.checkbox-disabled[_ngcontent-%COMP%], .nve[_ngcontent-%COMP%] .item-md.item-checkbox-disabled[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{opacity:.6;pointer-events:none;background:#ccc}.nve[_ngcontent-%COMP%] .radio-md.radio-disabled[_ngcontent-%COMP%], .nve[_ng
1content-%COMP%] .item-md.item-radio-disabled[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{opacity:.6;pointer-events:none}.nve[_ngcontent-%COMP%] .radio-md.radio-disabled[_ngcontent-%COMP%] .radio-icon[_ngcontent-%COMP%], .nve[_ngcontent-%COMP%] .item-md.item-radio-disabled[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%] .radio-icon[_ngcontent-%COMP%]{background:#cccccc}.nve[_ngcontent-%COMP%] ion-radio.radio-disabled[_ngcontent-%COMP%]{opacity:.6;pointer-events:none}.nve[_ngcontent-%COMP%] ion-radio.radio-disabled[_ngcontent-%COMP%]::part(container){background:#cccccc}.nve[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-size:1em;font-weight:400;color:#000}.daily-demand-first-look__actions[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}"]}),a})();var Tl=d(87607),fl=d(29474);function vl(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"-"),e.qZA())}function hl(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"+"),e.qZA())}function xl(t,a){1&t&&(e.TgZ(0,"div")(1,"div",11),e._uU(2),e.ALo(3,"translate"),e.qZA()()),2&t&&(e.xp6(2),e.Oqu(e.lcZ(3,1,"GENERAL.SOMETHINGWRONGMSG1")))}function Cl(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"COMPONENTS.TILES.ACCOUNTPREFERENCES.FLATRATE")," "))}function Al(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"COMPONENTS.TILES.ACCOUNTPREFERENCES.BUSINESS")," "))}function Ol(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"COMPONENTS.TILES.ACCOUNTPREFERENCES.SUMMERSAVER")," "))}function Pl(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"COMPONENTS.TILES.ACCOUNTPREFERENCES.COVIDRELIEF")," "))}function El(t,a){if(1&t&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"currency"),e.qZA()),2&t){const i=e.oxw(6);e.xp6(1),e.hij(" ",e.gM2(2,1,i.eppPaymentData.eppFlatRate,"USD","symbol","1.0")," ")}}function bl(t,a){if(1&t&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"currency"),e.qZA()),2&t){const i=e.oxw(6);e.xp6(1),e.hij(" ",e.gM2(2,1,i.eppPaymentData.eppFlatRate,"USD","symbol","1.0")," ")}}function Ml(t,a){if(1&t&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"currency"),e.ALo(3,"currency"),e.qZA()),2&t){const i=e.oxw(6);e.xp6(1),e.AsE(" ",e.gM2(2,2,i.eppPaymentData.summerSaverEightMonthRate,"USD","symbol","1.0")," / ",e.gM2(3,7,i.eppPaymentData.eppSummerSaverFourMonthRate,"USD","symbol","1.0")," ")}}function Il(t,a){if(1&t&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"currency"),e.ALo(3,"currency"),e.qZA()),2&t){const i=e.oxw(6);e.xp6(1),e.AsE(" ",e.gM2(2,2,i.eppEligibilityResponse.covidEPPDiscountAmount,"USD","symbol","1.0")," / ",e.gM2(3,7,i.eppEligibilityResponse.covidEPPAmount,"USD","symbol","1.0")," ")}}const xe=function(t){return{accountNumber:t}};function yl(t,a){if(1&t&&(e.TgZ(0,"div",16)(1,"span"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,Cl,3,3,"span",6),e.YNc(5,Al,3,3,"span",6),e.YNc(6,Ol,3,3,"span",6),e.YNc(7,Pl,3,3,"span",6),e.TgZ(8,"div",17),e.YNc(9,El,3,6,"span",6),e.YNc(10,bl,3,6,"span",6),e.YNc(11,Ml,4,12,"span",6),e.YNc(12,Il,4,12,"span",6),e.TgZ(13,"span"),e._uU(14),e.ALo(15,"translate"),e.qZA(),e.TgZ(16,"button",18),e._uU(17),e.ALo(18,"translate"),e.qZA()()()),2&t){const i=e.oxw(5);e.xp6(2),e.hij("",e.lcZ(3,13,"COMPONENTS.TILES.ACCOUNTPREFERENCES.EQUALPAY")," - "),e.xp6(2),e.Q6J("ngIf","F"===i.eppEligibilityResponse.eppType&&"RS"===i.eppEligibilityResponse.accountTypeService),e.xp6(1),e.Q6J("ngIf","F"===i.eppEligibilityResponse.eppType&&"CS"===i.eppEligibilityResponse.accountTypeService),e.xp6(1),e.Q6J("ngIf","S"===i.eppEligibilityResponse.eppType),e.xp6(1),e.Q6J("ngIf","C"===i.eppEligibilityResponse.eppType),e.xp6(2),e.Q6J("ngIf","F"===i.eppEligibilityResponse.eppType&&"RS"===i.eppEligibilityResponse.accountTypeService),e.xp6(1),e.Q6J("ngIf","F"===i.eppEligibilityResponse.eppType&&"CS"===i.eppEligibilityResponse.accountTypeService),e.xp6(1),e.Q6J("ngIf","S"===i.eppEligibilityResponse.eppType),e.xp6(1),e.Q6J("ngIf","C"===i.eppEligibilityResponse.eppType),e.xp6(2),e.hij("",e.lcZ(15,15,"COMPONENTS.TILES.ACCOUNTPREFERENCES.PERMONTH")," "),e.xp6(2),e.Q6J("moveToPage","my-account/equal-payment-plan")("moveToPageParam",e.VKq(19,xe,i.currentAccountNumber)),e.xp6(1),e.hij(" ",e.lcZ(18,17,"COMPONENTS.TILES.ACCOUNTPREFERENCES.EDIT")," ")}}function Ll(t,a){if(1&t&&(e.TgZ(0,"div",16)(1,"span"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",17)(5,"span"),e._uU(6),e.ALo(7,"translate"),e.qZA(),e.TgZ(8,"button",18),e._uU(9),e.ALo(10,"translate"),e.qZA()()()),2&t){const i=e.oxw(5);
1e.xp6(2),e.Oqu(e.lcZ(3,5,"COMPONENTS.TILES.ACCOUNTPREFERENCES.FLEXPAY")),e.xp6(4),e.hij("",e.lcZ(7,7,"COMPONENTS.TILES.ACCOUNTPREFERENCES.ENABLED")," | "),e.xp6(2),e.Q6J("moveToPage","my-account/flexpay-cancel")("moveToPageParam",e.VKq(11,xe,i.currentAccountNumber)),e.xp6(1),e.hij(" ",e.lcZ(10,9,"COMPONENTS.TILES.ACCOUNTPREFERENCES.EDIT")," ")}}function Zl(t,a){if(1&t&&(e.TgZ(0,"div",16)(1,"span"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",17)(5,"span"),e._uU(6),e.ALo(7,"translate"),e.qZA(),e.TgZ(8,"button",18),e._uU(9),e.ALo(10,"translate"),e.qZA()()()),2&t){const i=e.oxw(5);e.xp6(2),e.Oqu(e.lcZ(3,5,"COMPONENTS.TILES.ACCOUNTPREFERENCES.AUTOMATICMONTHLYPAYMENTS")),e.xp6(4),e.hij("",e.lcZ(7,7,"COMPONENTS.TILES.ACCOUNTPREFERENCES.ENABLED")," | "),e.xp6(2),e.Q6J("moveToPage","my-account/automatic-monthly-payment-changes")("moveToPageParam",e.VKq(11,xe,i.currentAccountNumber)),e.xp6(1),e.hij(" ",e.lcZ(10,9,"COMPONENTS.TILES.ACCOUNTPREFERENCES.EDIT")," ")}}function Sl(t,a){1&t&&(e.TgZ(0,"div",17)(1,"span"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"button",22),e._uU(5),e.ALo(6,"translate"),e.qZA()()),2&t&&(e.xp6(2),e.hij("",e.lcZ(3,3,"COMPONENTS.TILES.ACCOUNTPREFERENCES.ENABLED")," | "),e.xp6(2),e.Q6J("moveToPage","my-account/time-of-use"),e.xp6(1),e.hij(" ",e.lcZ(6,5,"COMPONENTS.TILES.ACCOUNTPREFERENCES.EDIT")," "))}function Nl(t,a){1&t&&(e.TgZ(0,"div",17)(1,"span"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"button",22),e._uU(5),e.ALo(6,"translate"),e.qZA()()),2&t&&(e.xp6(2),e.hij("",e.lcZ(3,3,"COMPONENTS.TILES.ACCOUNTPREFERENCES.PENDING")," | "),e.xp6(2),e.Q6J("moveToPage","my-account/time-of-use"),e.xp6(1),e.hij(" ",e.lcZ(6,5,"COMPONENTS.TILES.ACCOUNTPREFERENCES.EDIT")," "))}function Dl(t,a){if(1&t&&e.YNc(0,Nl,7,7,"div",19),2&t){e.oxw();const i=e.MAs(8),n=e.oxw(5);e.Q6J("ngIf",n.touEligibility.pendingEnrollInd)("ngIfElse",i)}}function wl(t,a){1&t&&(e.TgZ(0,"div",17)(1,"span"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"button",22),e._uU(5),e.ALo(6,"translate"),e.qZA()()),2&t&&(e.xp6(2),e.hij("",e.lcZ(3,3,"COMPONENTS.TILES.ACCOUNTPREFERENCES.NOTENABLED")," | "),e.xp6(2),e.Q6J("moveToPage","my-account/time-of-use"),e.xp6(1),e.hij(" ",e.lcZ(6,5,"COMPONENTS.TILES.ACCOUNTPREFERENCES.ENROLL")," "))}function Bl(t,a){if(1&t&&(e.TgZ(0,"div",16)(1,"span"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,Sl,7,7,"div",19),e.YNc(5,Dl,1,2,"ng-template",null,20,e.W1O),e.YNc(7,wl,7,7,"ng-template",null,21,e.W1O),e.qZA()),2&t){const i=e.MAs(6),n=e.oxw(5);e.xp6(2),e.Oqu(e.lcZ(3,3,"COMPONENTS.TILES.ACCOUNTPREFERENCES.TIMEOFUSE")),e.xp6(2),e.Q6J("ngIf",n.touEligibility.isEnrolledInTou)("ngIfElse",i)}}const Ce=function(t){return{accountNumber:t,accordionToBeOpened:"programAndBilling"}};function Ul(t,a){if(1&t&&(e.TgZ(0,"div",16)(1,"span"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",17)(5,"span"),e._uU(6),e.ALo(7,"translate"),e.qZA(),e.TgZ(8,"button",18),e._uU(9),e.ALo(10,"translate"),e.qZA()()()),2&t){const i=e.oxw(5);e.xp6(2),e.Oqu(e.lcZ(3,5,"COMPONENTS.TILES.ACCOUNTPREFERENCES.PAPERLESSBILLING")),e.xp6(4),e.hij("",e.lcZ(7,7,"COMPONENTS.TILES.ACCOUNTPREFERENCES.ENABLED")," | "),e.xp6(2),e.Q6J("moveToPage","my-account/profile-and-preferences")("moveToPageParam",e.VKq(11,Ce,i.currentAccountNumber)),e.xp6(1),e.hij(" ",e.lcZ(10,9,"COMPONENTS.TILES.ACCOUNTPREFERENCES.EDIT")," ")}}function Rl(t,a){if(1&t&&(e.TgZ(0,"div",16)(1,"span"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",17)(5,"span"),e._uU(6),e.ALo(7,"translate"),e.qZA(),e.TgZ(8,"button",18),e._uU(9),e.ALo(10,"translate"),e.qZA()()()),2&t){const i=e.oxw(5);e.xp6(2),e.Oqu(e.lcZ(3,5,"COMPONENTS.TILES.ACCOUNTPREFERENCES.SELECTYOURDUEDATE")),e.xp6(4),e.hij("",e.lcZ(7,7,"COMPONENTS.TILES.ACCOUNTPREFERENCES.ENABLED")," | "),e.xp6(2),e.Q6J("moveToPage","my-account/profile-and-preferences")("moveToPageParam",e.VKq(11,Ce,i.currentAccountNumber)),e.xp6(1),e.hij(" ",e.lcZ(10,9,"COMPONENTS.TILES.ACCOUNTPREFERENCES.EDIT")," ")}}function Yl(t,a){if(1&t&&(e.TgZ(0,"div",16)(1,"span"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",17)(5,"span"),e._uU(6),e.ALo(7,"translate"),e.qZA(),e.TgZ(8,"button",18),e._uU(9),e.ALo(10,"translate"),e.qZA()()()),2&t){const i=e.oxw(5);
1e.xp6(2),e.Oqu(e.lcZ(3,5,"COMPONENTS.TILES.ACCOUNTPREFERENCES.LARGEFONTBILLSUMMARY")),e.xp6(4),e.hij("",e.lcZ(7,7,"COMPONENTS.TILES.ACCOUNTPREFERENCES.ENABLED")," | "),e.xp6(2),e.Q6J("moveToPage","my-account/profile-and-preferences")("moveToPageParam",e.VKq(11,Ce,i.currentAccountNumber)),e.xp6(1),e.hij(" ",e.lcZ(10,9,"COMPONENTS.TILES.ACCOUNTPREFERENCES.EDIT")," ")}}function ql(t,a){if(1&t&&(e.TgZ(0,"div")(1,"div",10),e.YNc(2,yl,19,21,"div",15),e.YNc(3,Ll,11,13,"div",15),e.YNc(4,Zl,11,13,"div",15),e.YNc(5,Bl,9,5,"div",15),e.YNc(6,Ul,11,13,"div",15),e.YNc(7,Rl,11,13,"div",15),e.YNc(8,Yl,11,13,"div",15),e.qZA()()),2&t){const i=a.$implicit,n=a.index,o=e.oxw(4);e.xp6(2),e.Q6J("ngIf","EqualPay"===i.name&&i.isCustomerEnrolled&&o.eppEligibilityResponse&&o.eppPaymentData),e.xp6(1),e.Q6J("ngIf","FlexPay"===i.name&&i.isCustomerEnrolled),e.xp6(1),e.Q6J("ngIf","AutomaticMonthlyPayment"===i.name&&i.isCustomerEnrolled),e.xp6(1),e.Q6J("ngIf",((null==o.touEligibility?null:o.touEligibility.isEligibleForTou)||(null==o.touEligibility?null:o.touEligibility.isEnrolledInTou))&&0===n),e.xp6(1),e.Q6J("ngIf","PaperlessBilling"===i.name&&i.isCustomerEnrolled),e.xp6(1),e.Q6J("ngIf","SelectDueDate"===i.name&&i.isCustomerEnrolled),e.xp6(1),e.Q6J("ngIf","LargeBillFontSummary"===i.name&&i.isCustomerEnrolled)}}function Fl(t,a){if(1&t&&(e.TgZ(0,"div"),e.YNc(1,ql,9,7,"div",14),e.qZA()),2&t){const i=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",i.enrolledProgramBillingOptions)}}const kl=function(t){return{nbaAccountNumber:t,accordionToBeOpened:"programAndBilling"}};function Jl(t,a){if(1&t&&(e.TgZ(0,"div")(1,"div",8),e.YNc(2,xl,4,3,"div",6),e.YNc(3,Fl,2,1,"div",6),e.qZA(),e.TgZ(4,"div",9)(5,"div",10)(6,"div",11)(7,"div",12)(8,"button",13),e._uU(9),e.ALo(10,"translate"),e.qZA()()()()()()),2&t){const i=e.oxw(2);e.xp6(2),e.Q6J("ngIf",!i.enrolledProgramBillingOptions),e.xp6(1),e.Q6J("ngIf",(null==i.enrolledProgramBillingOptions?null:i.enrolledProgramBillingOptions.length)>0),e.xp6(5),e.Q6J("setPageToRoot",!1)("moveToPage","my-account/profile-and-preferences")("moveToPageParam",e.VKq(8,kl,i.currentAccountNumber)),e.xp6(1),e.hij(" ",e.lcZ(10,6,"COMPONENTS.TILES.ACCOUNTPREFERENCES.VIEWMORE")," ")}}function Gl(t,a){if(1&t){const i=e.EpF();e.TgZ(0,"div",3)(1,"div",4)(2,"h2",5),e.NdJ("click",function(){e.CHM(i);const o=e.oxw();return e.KtG(o.onUserToggle())}),e.YNc(3,vl,2,0,"span",6),e.YNc(4,hl,2,0,"span",6),e.TgZ(5,"span",7),e._uU(6),e.ALo(7,"translate"),e.qZA()(),e.TgZ(8,"span"),e._uU(9),e.ALo(10,"translate"),e.qZA()(),e.YNc(11,Jl,11,10,"div",6),e.qZA()}if(2&t){const i=e.oxw();e.xp6(3),e.Q6J("ngIf",i.showPanelAndBody),e.xp6(1),e.Q6J("ngIf",!i.showPanelAndBody),e.xp6(2),e.Oqu(e.lcZ(7,5,"COMPONENTS.TILES.ACCOUNTPREFERENCES.HEADING1")),e.xp6(3),e.Oqu(e.lcZ(10,7,"COMPONENTS.TILES.ACCOUNTPREFERENCES.HEADING2")),e.xp6(2),e.Q6J("ngIf",i.showPanelAndBody)}}function Ql(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"-"),e.qZA())}function Hl(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"+"),e.qZA())}function jl(t,a){1&t&&(e.TgZ(0,"div")(1,"div",25),e._UZ(2,"nve-spinner"),e.qZA(),e._UZ(3,"div",9),e.qZA())}function Wl(t,a){if(1&t){const i=e.EpF();e.TgZ(0,"div",23)(1,"div",4)(2,"h2",24),e.NdJ("click",function(){e.CHM(i);const o=e.oxw();return e.KtG(o.onUserToggle())}),e.ALo(3,"translate"),e.YNc(4,Ql,2,0,"span",6),e.YNc(5,Hl,2,0,"span",6),e.TgZ(6,"span",7),e._uU(7),e.ALo(8,"translate"),e.qZA()(),e.TgZ(9,"span"),e._uU(10),e.ALo(11,"translate"),e.qZA()(),e.YNc(12,jl,4,0,"div",6),e.qZA()}if(2&t){const i=e.oxw();e.xp6(2),e.s9C("title",e.lcZ(3,6,"COMPONENTS.TILES.ACCOUNTPREFERENCES.HEADING1")),e.xp6(2),e.Q6J("ngIf",i.showPanelAndBody),e.xp6(1),e.Q6J("ngIf",!i.showPanelAndBody),e.xp6(2),e.Oqu(e.lcZ(8,8,"COMPONENTS.TILES.ACCOUNTPREFERENCES.HEADING1")),e.xp6(3),e.Oqu(e.lcZ(11,10,"COMPONENTS.TILES.ACCOUNTPREFERENCES.HEADING2")),e.xp6(2),e.Q6J("ngIf",i.showPanelAndBody)}}let Kl=(()=>{var t;class a{constructor(n,o,l,r,p,u,x,E){this.userService=n,this.equalPaymentPlanService=o,this.widgetsService=l,this.globalServiceErrorHandler=r,this.programAndBillingOptionsService=p,this.config=u,this.touService=x,this.logger=E,this.widgetId=12,this.showPanelAndBody=!1,this.showLoader=!0,this.isDataLoaded=!1,this.touEligibility=null,this.maxEnrolledOptionsOnAccountPrefTile=u.config.maxEnrolledOptionsOnAccountPrefTile,this.currentAccountNumber=this.userService.user.getCurrentAccount().accountNumber,this.widgetsService.closeEventEmitter.subscribe(D=>{D!==this.widgetId&&this.showPanelAndBody&&this.togglePanelAndBody()}),I.$.getInstance().myAccountOnDidEnter.subscribe(()=>{this.showPanelAndBody&&this.initializeTile()})}set index(n){this.widgetIndex=n}ngOnInit(){this.maxEnrolledOptionsOnAccountPrefTile>0?this.widgetIndex<this.config.config.numberOfTilesOpenByDefault&&(this.showPanelAndBody=!0,this.initializeTile()):this.sliceMe()}initializeTile(){var n=this;return(0,C.Z)(function*(){let o;n.enrolledProgramBillingOptions=null,n.showLoader=!0;try{[n.touEligibility,o]=yield Promise.all([n.touService.getTouEligibility(),n.programAndBillingOptionsService.retrieveEnrolledProgramBillingOptions("accountPreferencesTile",n.maxEnrolledOptionsOnAccountPrefTile)])}catch(l){return n.logger.error("error getting data for account preferences tile",l),n.showLoader=!1,void(n.isDataLoaded=!1)}n.enrolledProgramBillingOptions=o.ResponseBody;for(let l=0;l<n.enrolledProgramBillingOptions.length;l++)if("EqualPay"===n.enrolledProgramBillingOptions[l].name){yield n.checkEligibility();break}n.showLoader=!1,n.isDataLoaded=!0})()}checkEligibility(){var n=this;return(0,C.Z)(function*(){try{const o=n.userService.getUser(),l=yield n.equalPaymentPlanService.getBillingOverviewData("",o.getUserAccountNumber(),!0);
1n.eppEligibilityResponse=l.eppEligibilityResponse,n.eppPaymentData=l.eppPaymentRates}catch(o){n.globalServiceErrorHandler.showToast()}})()}togglePanelAndBody(){this.showPanelAndBody=!this.showPanelAndBody,this.showPanelAndBody&&(this.isDataLoaded||this.initializeTile())}onUserToggle(){this.togglePanelAndBody(),this.widgetsService.toggleWidgetEvent(this.widgetId)}sliceMe(){this.widgetsService.sliceTileFromDashboard(Te.ACCOUNTPREFERENCESTILEID)}}return(t=a).\u0275fac=function(n){return new(n||t)(e.Y36(f.K),e.Y36(Tl.w),e.Y36(Y.L),e.Y36(W.o),e.Y36(fl.S),e.Y36(T._),e.Y36(he.Mw),e.Y36(X.Y))},t.\u0275cmp=e.Xpm({type:t,selectors:[["nve-account-preferences-tile"]],inputs:{index:"index"},decls:3,vars:2,consts:[[1,"widget-component","account-preferences-tile"],["class","panel panel-default","tabindex","0",4,"ngIf"],["class","panel panel-default",4,"ngIf"],["tabindex","0",1,"panel","panel-default"],[1,"panel-heading"],["title","ACCOUNT PREFERENCES TILE",1,"accent-color-red",3,"click"],[4,"ngIf"],[1,"panel-text"],[1,"panel-body"],[1,"panel-footer"],[1,"clearfix"],[1,"col-xs-12"],[1,"col-xs-7","no-side-padding"],[1,"nv-btn","nv-btn-blue",3,"setPageToRoot","moveToPage","moveToPageParam"],[4,"ngFor","ngForOf"],["class","col-xs-12 clearfix margin-bottom-15",4,"ngIf"],[1,"col-xs-12","clearfix","margin-bottom-15"],[1,"float-right","text-right","nopadding-left"],["tappable","","csrDisable","",1,"text-btn","text-underline",3,"moveToPage","moveToPageParam"],["class","float-right text-right nopadding-left",4,"ngIf","ngIfElse"],["notEnrolledInTou",""],["notPendingTOUEnrollment",""],["tappable","",1,"text-btn","text-underline",3,"moveToPage"],[1,"panel","panel-default"],[3,"title","click"],[1,"panel-body","text-center"]],template:function(n,o){1&n&&(e.TgZ(0,"div",0),e.YNc(1,Gl,12,9,"div",1),e.YNc(2,Wl,13,12,"div",2),e.qZA()),2&n&&(e.xp6(1),e.Q6J("ngIf",!o.showLoader),e.xp6(1),e.Q6J("ngIf",o.showLoader))},dependencies:[F.$,s.sg,s.O5,H.a,$.$,_.X$,s.H9],styles:['.nve[_ngcontent-%COMP%] .radio-md[_ngcontent-%COMP%] .radio-checked[_ngcontent-%COMP%]{border-color:#d2c9c7}.nve[_ngcontent-%COMP%] .radio-md[_ngcontent-%COMP%] .radio-inner[_ngcontent-%COMP%]{top:3px;left:3px;width:12px;height:12px}.nve[_ngcontent-%COMP%] .radio-md[_ngcontent-%COMP%] .radio-icon[_ngcontent-%COMP%]{border-color:#d2c9c7;background:#ffffff}.nve[_ngcontent-%COMP%] .checkbox-md[_ngcontent-%COMP%] .checkbox-checked[_ngcontent-%COMP%]{border-color:#d2c9c7;background-color:#fff}.nve[_ngcontent-%COMP%] .checkbox-md[_ngcontent-%COMP%] .checkbox-icon[_ngcontent-%COMP%]{width:20px;height:20px;border-width:1px;border-style:solid;border-radius:1px;border-color:#d2c9c7;background-color:#fff}.nve[_ngcontent-%COMP%] .checkbox-md[_ngcontent-%COMP%] .checkbox-checked[_ngcontent-%COMP%] .checkbox-inner[_ngcontent-%COMP%]{top:0;left:7px;width:5px;height:14px}.nve[_ngcontent-%COMP%] .checkbox-md.checkbox-disabled[_ngcontent-%COMP%], .nve[_ngcontent-%COMP%] .item-md.item-checkbox-disabled[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{opacity:.6;pointer-events:none;background:#ccc}.nve[_ngcontent-%COMP%] .radio-md.radio-disabled[_ngcontent-%COMP%], .nve[_ngcontent-%COMP%] .item-md.item-radio-disabled[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{opacity:.6;pointer-events:none}.nve[_ngcontent-%COMP%] .radio-md.radio-disabled[_ngcontent-%COMP%] .radio-icon[_ngcontent-%COMP%], .nve[_ngcontent-%COMP%] .item-md.item-radio-disabled[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%] .radio-icon[_ngcontent-%COMP%]{background:#cccccc}.nve[_ngcontent-%COMP%] ion-radio.radio-disabled[_ngcontent-%COMP%]{opacity:.6;pointer-events:none}.nve[_ngcontent-%COMP%] ion-radio.radio-disabled[_ngcontent-%COMP%]::part(container){background:#cccccc}.nve[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-size:1em;font-weight:400;color:#000}.account-preferences-tile[_ngcontent-%COMP%] .important-notification[_ngcontent-%COMP%]{font-weight:700;padding-left:30px;position:relative}.account-preferences-tile[_ngcontent-%COMP%] .important-notification[_ngcontent-%COMP%]:before{content:"\\e903";font-family:nve-iconset;font-size:24px;font-weight:400;position:absolute;top:0;left:0;color:#de5243}@media (max-width: 767px){.account-preferences-tile[_ngcontent-%COMP%] .panel-footer[_ngcontent-%COMP%]{padding-top:0!important}}.account-preferences-tile[_ngcontent-%COMP%] .nopadding-left[_ngcontent-%COMP%]{padding-left:0!important}.account-preferences-tile[_ngcontent-%COMP%] .margin-bottom-15[_ngcontent-%COMP%]{margin-bottom:15px!important}']}),a})();const Xl=["currentBillTile"];function $l(t,a){if(1&t&&(e.TgZ(0,"div"),e._UZ(1,"nve-current-bill-tile",2,3),e.qZA()),2&t){const i=e.oxw();e.xp6(1),e.Q6J("index",i.widgetIndex)}}function zl(t,a){if(1&t&&(e.TgZ(0,"div"),e._UZ(1,"nve-project-next-bill-tile",2),e.qZA()),2&t){const i=e.oxw();e.xp6(1),e.Q6J("index",i.widgetIndex)}}function Vl(t,a){if(1&t&&(e.TgZ(0,"div"),e._UZ(1,"nve-notification-tile",2),e.qZA()),2&t){const i=e.oxw();e.xp6(1),e.Q6J("index",i.widgetIndex)}}function es(t,a){if(1&t&&(e.TgZ(0,"div"),e._UZ(1,"nve-billing-tile",2),e.qZA()),2&t){const i=e.oxw();e.xp6(1),e.Q6J("index",i.widgetIndex)}}function ts(t,a){if(1&t&&(e.TgZ(0,"div"),e._UZ(1,"nve-my-usage-tile",2),e.qZA()),2&t){const i=e.oxw();e.xp6(1),e.Q6J("index",i.widgetIndex)}}function ns(t,a){if(1&t&&(e.TgZ(0,"div"),e._UZ(1,"nve-my-thermostat-tile",2),e.qZA()),2&t){const i=e.oxw();e.xp6(1),e.Q6J("index",i.widgetIndex)}}function is(t,a){if(1&t&&(e.TgZ(0,"div"),e._UZ(1,"nve-next-best-action-tile",4),e.qZA()),2&t){const i=e.oxw();e.xp6(1),e.Q6J("index",i.widgetIndex)("program",i.nbaFirstTileProgramName)}
1}function os(t,a){if(1&t&&(e.TgZ(0,"div"),e._UZ(1,"nve-outages-tile",2),e.qZA()),2&t){const i=e.oxw();e.xp6(1),e.Q6J("index",i.widgetIndex)}}function as(t,a){if(1&t&&(e.TgZ(0,"div"),e._UZ(1,"nve-start-stop-service-tile",2),e.qZA()),2&t){const i=e.oxw();e.xp6(1),e.Q6J("index",i.widgetIndex)}}function ls(t,a){if(1&t&&(e.TgZ(0,"div"),e._UZ(1,"nve-flexpay-tile",2),e.qZA()),2&t){const i=e.oxw();e.xp6(1),e.Q6J("index",i.widgetIndex)}}function ss(t,a){if(1&t&&(e.TgZ(0,"div"),e._UZ(1,"nve-bill-forecast-tile",2),e.qZA()),2&t){const i=e.oxw();e.xp6(1),e.Q6J("index",i.widgetIndex)}}function cs(t,a){if(1&t&&(e.TgZ(0,"div"),e._UZ(1,"nve-demand-tile",2),e.qZA()),2&t){const i=e.oxw();e.xp6(1),e.Q6J("index",i.widgetIndex)}}function rs(t,a){if(1&t&&(e.TgZ(0,"div"),e._UZ(1,"nve-disaggregation-tile",2),e.qZA()),2&t){const i=e.oxw();e.xp6(1),e.Q6J("index",i.widgetIndex)}}function ds(t,a){if(1&t&&(e.TgZ(0,"div"),e._UZ(1,"nve-daily-demand-first-look-tile",2),e.qZA()),2&t){const i=e.oxw();e.xp6(1),e.Q6J("index",i.widgetIndex)}}function ps(t,a){if(1&t&&(e.TgZ(0,"div"),e._UZ(1,"nve-daily-demand-comparison-tile",2),e.qZA()),2&t){const i=e.oxw();e.xp6(1),e.Q6J("index",i.widgetIndex)}}function gs(t,a){if(1&t&&(e.TgZ(0,"div"),e._UZ(1,"nve-equalpay-tile",2),e.qZA()),2&t){const i=e.oxw();e.xp6(1),e.Q6J("index",i.widgetIndex)}}function _s(t,a){if(1&t&&(e.TgZ(0,"div"),e._UZ(1,"nve-account-preferences-tile",2),e.qZA()),2&t){const i=e.oxw();e.xp6(1),e.Q6J("index",i.widgetIndex)}}function us(t,a){if(1&t&&(e.TgZ(0,"div"),e._UZ(1,"nve-hba-rate-options-tile",2),e.qZA()),2&t){const i=e.oxw();e.xp6(1),e.Q6J("index",i.widgetIndex)}}let ms=(()=>{var t;class a{constructor(n,o){this.platform=n,this.platforms=o,this.isMobile=!1,this.widgets=Te,this.nbaFirstTileProgramName=void 0}set id(n){this.widgetId=n}set index(n){this.widgetIndex=n}ngOnInit(){(this.platform.is("mobile")||this.platform.is("mobileweb"))&&!this.platform.is("ipad")&&(this.isMobile=!0),"nbaFirstTile"===this.widgetId&&(console.log("(nba) platforms: ",this.platforms.platforms()),console.log("(nba) nbaFirstTileProgramName: ",this.nbaFirstTileProgramName),console.log("(nba) widgetId: ",this.widgetId))}}return(t=a).\u0275fac=function(n){return new(n||t)(e.Y36(oe.m),e.Y36(c.t4))},t.\u0275cmp=e.Xpm({type:t,selectors:[["nve-widget"]],viewQuery:function(n,o){if(1&n&&e.Gf(Xl,5),2&n){let l;e.iGM(l=e.CRH())&&(o.currentBillTile=l.first)}},inputs:{nbaFirstTileProgramName:"nbaFirstTileProgramName",id:"id",index:"index"},decls:19,vars:18,consts:[[1,"widget-container"],[4,"ngIf"],[3,"index"],["currentBillTile",""],["nbaTileId","0",3,"index","program"]],template:function(n,o){1&n&&(e.TgZ(0,"div",0),e.YNc(1,$l,3,1,"div",1),e.YNc(2,zl,2,1,"div",1),e.YNc(3,Vl,2,1,"div",1),e.YNc(4,es,2,1,"div",1),e.YNc(5,ts,2,1,"div",1),e.YNc(6,ns,2,1,"div",1),e.YNc(7,is,2,2,"div",1),e.YNc(8,os,2,1,"div",1),e.YNc(9,as,2,1,"div",1),e.YNc(10,ls,2,1,"div",1),e.YNc(11,ss,2,1,"div",1),e.YNc(12,cs,2,1,"div",1),e.YNc(13,rs,2,1,"div",1),e.YNc(14,ds,2,1,"div",1),e.YNc(15,ps,2,1,"div",1),e.YNc(16,gs,2,1,"div",1),e.YNc(17,_s,2,1,"div",1),e.YNc(18,us,2,1,"div",1),e.qZA()),2&n&&(e.xp6(1),e.Q6J("ngIf",o.widgetId==o.widgets.CURRENTBILLTILEID),e.xp6(1),e.Q6J("ngIf",o.widgetId==o.widgets.PROJECTEDBILLTILEID),e.xp6(1),e.Q6J("ngIf",o.widgetId==o.widgets.NOTIFICATIONTILEID),e.xp6(1),e.Q6J("ngIf",o.widgetId==o.widgets.BILLINGTILEID),e.xp6(1),e.Q6J("ngIf",o.widgetId==o.widgets.MYUSAGETILEID),e.xp6(1),e.Q6J("ngIf",o.widgetId==o.widgets.MYSMARTTHERMOSTATTILEID),e.xp6(1),e.Q6J("ngIf",o.widgetId==o.widgets.NBAFIRSTILEID),e.xp6(1),e.Q6J("ngIf",o.widgetId==o.widgets.OUTAGESTILEID),e.xp6(1),e.Q6J("ngIf",o.widgetId==o.widgets.STARTSTOPMOVETILEID),e.xp6(1),e.Q6J("ngIf",o.widgetId==o.widgets.FLEXPAYENROLLEDTILEID||o.widgetId==o.widgets.FLEXPAYINCOMPLETETILEID),e.xp6(1),e.Q6J("ngIf",o.widgetId==o.widgets.BILLFORECASTTILEID),e.xp6(1),e.Q6J("ngIf",o.widgetId==o.widgets.DEMANDTILEID),e.xp6(1),e.Q6J("ngIf",o.widgetId==o.widgets.DISAGGREGATIONTILEID),e.xp6(1),e.Q6J("ngIf",o.widgetId==o.widgets.DAILYDEMANDFIRSTLOOKTILEID),e.xp6(1),e.Q6J("ngIf",o.widgetId==o.widgets.DAILYDEMANDCOMPARISONTILEID),e.xp6(1),e.Q6J("ngIf",o.widgetId==o.widgets.EQUALPAYTILEID),e.xp6(1),e.Q6J("ngIf",o.widgetId==o.widgets.ACCOUNTPREFERENCESTILEID),e.xp6(1),e.Q6J("ngIf",o.widgetId==o.widgets.HBARATEOPTIONS))},dependencies:[s.O5,Me.a,pt,Rt,Xt,vn,Yn,ri,Ni,Fi,to,Zo,Qo,ua,Ha,pl,ml,Kl],encapsulation:2}),a})();const Ts=["widgets"];function fs(t,a){1&t&&(e.TgZ(0,"div",6)(1,"h1",9),e._uU(2),e.ALo(3,"translate"),e.qZA()()),2&t&&(e.xp6(2),e.hij(" ",e.lcZ(3,1,"COMPONENTS.MYACCOUNT.LOADING")," "))}function vs(t,a){1&t&&e.GkF(0)}const hs=function(t){return{nickname:t}};function xs(t,a){if(1&t&&(e.TgZ(0,"h1",17),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t){const i=e.oxw(3);e.xp6(1),e.hij(" ",e.xi3(2,1,"COMPONENTS.LOGIN.DASHBOARD_NICKNAME",e.VKq(4,hs,i.userName))," ")}}function Cs(t,a){1&t&&(e.TgZ(0,"h1",17),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.Oqu(e.l
1cZ(2,1,"COMPONENTS.LOGIN.DASHBOARD")))}function As(t,a){if(1&t&&(e.TgZ(0,"div",12),e.YNc(1,vs,1,0,"ng-container",14),e.YNc(2,xs,3,6,"ng-template",null,15,e.W1O),e.YNc(4,Cs,3,3,"ng-template",null,16,e.W1O),e.qZA()),2&t){const i=e.MAs(3),n=e.MAs(5),o=e.oxw(2);e.xp6(1),e.Q6J("ngIf",o.userName)("ngIfThen",i)("ngIfElse",n)}}function Os(t,a){if(1&t){const i=e.EpF();e.TgZ(0,"button",21),e.NdJ("click",function(){e.CHM(i);const o=e.oxw(3);return e.KtG(o.toggleRearrangeable())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"COMPONENTS.MYACCOUNT.REARRANGE")," "))}function Ps(t,a){1&t&&(e.TgZ(0,"span"),e._uU(1,"|"),e.qZA())}function Es(t,a){if(1&t&&(e.TgZ(0,"div",18),e.YNc(1,Os,3,3,"button",19),e.YNc(2,Ps,2,0,"span",7),e.TgZ(3,"a",20),e._uU(4),e.ALo(5,"translate"),e.qZA()()),2&t){const i=e.oxw(2);e.xp6(1),e.Q6J("ngIf",i.isDataAvailable&&!i.isErrorOccured),e.xp6(1),e.Q6J("ngIf",i.isDataAvailable&&!i.isErrorOccured),e.xp6(1),e.Q6J("moveToPage","my-account/profile-and-preferences")("setPageToRoot",!0),e.xp6(1),e.Oqu(e.lcZ(5,5,"COMPONENTS.MYACCOUNT.PROFILE"))}}function bs(t,a){if(1&t){const i=e.EpF();e.TgZ(0,"div",18)(1,"a",22),e.NdJ("click",function(){e.CHM(i);const o=e.oxw(2);return e.KtG(o.cancel())}),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"span"),e._uU(5,"|"),e.qZA(),e.TgZ(6,"a",23),e.NdJ("click",function(){e.CHM(i);const o=e.oxw(2);return e.KtG(o.rearrangeWidgets())}),e._uU(7),e.ALo(8,"translate"),e.qZA()()}2&t&&(e.xp6(2),e.Oqu(e.lcZ(3,2,"COMPONENTS.MYACCOUNT.CANCEL")),e.xp6(5),e.Oqu(e.l
1cZ(8,4,"COMPONENTS.MYACCOUNT.DONE")))}function Ms(t,a){if(1&t&&(e.TgZ(0,"div",10),e.YNc(1,As,6,3,"div",11),e.TgZ(2,"div",12),e.YNc(3,Es,6,7,"div",13),e.YNc(4,bs,9,6,"div",13),e.qZA()()),2&t){const i=e.oxw();e.xp6(1),e.Q6J("ngIf",void 0!==i.user.currentAccount),e.xp6(2),e.Q6J("ngIf",!i.isRearrangeable),e.xp6(1),e.Q6J("ngIf",i.isRearrangeable&&!i.isErrorOccured)}}function Is(t,a){if(1&t&&(e.TgZ(0,"div")(1,"div",27),e._UZ(2,"img",28)(3,"div",29)(4,"nve-widget",30,31),e.qZA()()),2&t){const i=e.oxw(),n=i.index,o=i.$implicit,l=e.oxw(2);e.xp6(4),e.Q6J("index",n)("id",o.name)("nbaFirstTileProgramName",l.nbaFirstTileProgramName)}}function ys(t,a){if(1&t&&(e.TgZ(0,"div",26),e.YNc(1,Is,6,3,"div",7),e.qZA()),2&t){const i=a.$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!("nbaFirstTile"===i.name&&void 0===n.nbaFirstTileProgramName))}}function Ls(t,a){if(1&t){const i=e.EpF();e.TgZ(0,"div")(1,"div",24),e.NdJ("dragulaModelChange",function(o){e.CHM(i);const l=e.oxw();return e.KtG(l.widgetArray=o)}),e.YNc(2,ys,2,1,"div",25),e.qZA()()}if(2&t){const i=e.oxw();e.xp6(1),e.Q6J("dragula","widget")("dragulaModel",i.widgetArray),e.xp6(1),e.Q6J("ngForOf",i.widgetArray)}}const Zs=function(t){return{clear:t}};function Ss(t,a){if(1&t&&(e.TgZ(0,"div")(1,"div",34),e._UZ(2,"nve-widget",35,31),e.qZA()()),2&t){const i=e.oxw(),n=i.index,o=i.$implicit,l=e.oxw(2);e.xp6(1),e.Q6J("ngClass",e.VKq(4,Zs,n%3==0)),e.xp6(1),e.Q6J("index",n)("id",o.name)("nbaFirstTileProgramName",l.nbaFirstTileProgramName)}}function Ns(t,a){if(1&t&&(e.TgZ(0,"div"),e.YNc(1,Ss,4,6,"div",7),e.qZA()),2&t){const i=a.$implicit,n=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!("nbaFirstTile"===i.name&&void 0===n.nbaFirstTileProgramName))}}function Ds(t,a){if(1&t&&(e.TgZ(0,"div")(1,"div",32),e.YNc(2,Ns,2,1,"div",33),e.qZA()()),2&t){const i=e.oxw();e.xp6(2),e.Q6J("ngForOf",i.widgetArray)}}function ws(t,a){1&t&&(e.TgZ(0,"div",36),e._UZ(1,"nve-spinner"),e.qZA())}function Bs(t,a){1&t&&(e.TgZ(0,"div",36),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"COMPONENTS.MYACCOUNT.WRONG")," "))}const Us=function(t){return{"background-image":t}};let Rs=(()=>{var t;class a{constructor(n,o,l,r,p,u,x,E,D,R,q,G,ee,fc,vc,hc,xc,Cc,Ac,Ae){var te=this;this.titleCasePipe=n,this.inAppBrowser=o,this.widgetService=l,this.userService=r,this.accountListService=p,this.globalServiceErrorHandler=u,this.nextBestActionService=x,this.cookieStorage=E,this.localStorage=D,this.homeContentService=R,this.appUtil=q,this.storageUtility=G,this.navUtil=ee,this.smartThermostatService=fc,this.window=vc,this.modalController=hc,this.impactByCovid19Service=xc,this.platformService=Cc,this.config=Ac,this.logger=Ae,this.widgetArray=void 0,this.widgetComponentArray=void 0,this.tempWidgetArray=null,this.onChanged=new j.X(null),this.isDataAvailable=!1,this.isRearrangeable=!1,this.isErrorOccured=!1,this.nbaProgramList=void 0,this.nbaFirstTileProgramName=void 0,this.nbaProgramIndex=0,this.userName="",this.myAccountService=I.$.getInstance(),this.user=this.userService.getUser(),this.account=this.user.getCurrentAccount(),this.updateBackgroun
1dImage(),(this.platformService.is("ios")||this.platformService.is("android"))&&this.storageUtility.location.subscribe(()=>{this.updateBackgroundImage()}),this.userName=this.getUsername(),this.myAccountService.onRefreshWidgetList.pipe((0,k.h)(ge=>!0===ge)).subscribe((0,C.Z)(function*(){Ae.debug("updating widgets"),te.widgetService.getWidgetSequence().then(ge=>{te.widgetArray=ge,te.tempWidgetArray=Object.assign([],ge),te.isDataAvailable=!0,Ae.debug("this.widgetArray",te.widgetArray)}).catch(ge=>{te.isErrorOccured=!0,te.globalServiceErrorHandler.showToast()})}))}ngAfterViewInit(){this.widgets.changes.subscribe(()=>{this.widgetComponentArray=this.widgets.toArray()}),this.myAccountService.myAccountOnDidEnter.subscribe(()=>{!0===this.smartThermostatService.activateThermostatDrawer&&this.openThermostatDrawer()})}addProgramToClosedList(n,o){"0"===n.nbaTileId&&o.push(this.nbaFirstTileProgramName);const l=JSON.stringify(o),r="closedNBAProgramsList_"+this.account.accountNumber;this.platformService.is("hybrid")&&this.platformService.is("ios")?this.localStorage.set(r,l):this.cookieStorage.setCookie(r,l)}updateWidgets(){this.account&&(!this.currentAccount||this.account.accountNumber!=this.currentAccount.accountNumber)&&(this.currentAccount=Object.assign({},this.account),this.widgetService.getWidgetSequence().then(n=>{this.widgetArray=n,this.tempWidgetArray=Object.assign([],n),this.isDataAvailable=!0,this.onChanged.next(!0)}).catch(n=>{this.isErrorOccured=!0,this.globalServiceErrorHandler.showToast()}))}getUsername(){let n="";if(!this.user&&!this.user.isLoggedIn)return n;const o=this.userService.getUser().getCurrentAccount();return o.nickName?n=this.userService.getUser().getCurrentAccount().nickName:"M"===o.billType&&(this.user.userNickname?n=this.titleCasePipe.transform(this.user.userNickname):this.user.firstName?n=this.titleCasePipe.transform(this.user.firstName):this.user.lastName&&(n=this.titleCasePipe.transform(this.user.lastName))),n=n.toLowerCase(),n.indexOf("&")>=0&&(n=n.replace("&","&")),n=(new s.rS).transform(n),n}ngOnInit(){var n=this;return(0,C.Z)(function*(){n.openThermostatDrawer(),n.initializeWidgets()})()}initializeWidgets(){var n=this;this.updateWidgets(),this.getNBAProgramList(),this.accountReadySubscriber=this.accountListService.accountReadyEmitter.subscribe(o=>{this.account=o.currentAccount,this.updateWidgets(),this.getNBAProgramList(),this.userName=this.getUsername()}),this.accountSwitchSubscriber=this.accountListService.accountSwitchedEventEmitter.subscribe(o=>{this.account=o,this.updateWidgets(),this.getNBAProgramList(),this.userName=this.getUsername()}),this.nextBestActionService.closeNBASuggestionEvent.subscribe(function(){var o=(0,C.Z)(function*(l){let r=[];const p="closedNBAProgramsList_"+n.account.accountNumber;let u;u=n.platformService.is("ios")?yield n.localStorage.get(p):n.cookieStorage.getCookie(p),null!==u&&""!==u&&(r=JSON.parse(u)),n.addProgramToClosedList(l,r),"0"===l.nbaTileId&&(n.nbaProgramIndex++,n.nbaFirstTileProgramName=n.nbaProgramIndex<=n.nbaProgramList.length-1?n.nbaProgramList[n.nbaProgramIndex].program:void 0)});return function(l){return o.apply(this,arguments)}}()),this.widgetService.sliceTile.subscribe(o=>{const l=this.widgetArray.findIndex(r=>r.name===o);l>0&&this.widgetArray.splice(l,1)})}getNBAProgramList(){var n=this;this.nextBestActionService.getProgramRankList().then(function(){var o=(0,C.Z)(function*(l){let r;n.nbaProgramIndex=0,n.nbaProgramList=[];const p="closedNBAProgramsList_"+n.account.accountNumber;let u;if(u=n.platformService.is("ios")?yield n.localStorage.get(p):n.cookieStorage.getCookie(p),u){r=JSON.parse(u);for(const x in l)-1===r.findIndex(E=>E===l[x].program)&&n.nbaProgramList.push(l[x])}else n.nbaProgramList=l;(n.nbaProgramIndex<=n.nbaProgramList.length-2||n.nbaProgramIndex<=n.nbaProgramList.length-1)&&(n.nbaFirstTileProgramName=n.nbaProgramList[n.nbaProgramIndex].program)});return function(l){return o.apply(this,arguments)}}()).catch(o=>{this.globalServiceErrorHandler.showToast()})}openSmartThermostatDrawer(){var n=this;return(0,C.Z)(function*(){if(!n.smartThermostatService.showSmartThermostatLogin&&n.userService.isLoggedIn()){n.smartThermostatService.showSmartThermostatLogin=!0;try{const o=yield n.getThermostatType();if(o===n.smartThermostatService.ECOBEE||o===n.smartThermostatService.ECOFACTOR)if(n.platformService.is("desktop"))o===n.smartThermostatService.ECOBEE?n.openSmartThermostatRedirectModal(o):n.smartThermostatService.openSmartThermoStatEventEmitter.emit({thermostatType:o});else if(n.platformService.is("hybrid")){if(o===n.smartThermostatService.ECOFACTOR&&n.window.nativeWindow.open(n.config.config.smartThermostat.ecoFactorUrl,"NVEnergy"),o===n.smartThermostatService.ECOBEE){const l=n.inAppBrowser.create(n.config.config.smartThermostat.ecobeeUrl,"NVEnergy","location=yes");l.on("loadstop").subscribe(r=>{l.insertCSS({code:".section{min-width: auto !important;"})})}}else n.openSmartThermostatRedirectModal(o);else n.navUtil.navigate(L.$.smartThermostat.landing,!0);n.smartThermostatService.showSmartThermostatLogin=!1}catch(o){n.smartThermostatService.showSmartThermostatLogin=!1,console.log(o),n.navUtil.navigate(L.$.smartThermostat.landing,!0)}}})()}openSmartThermostatRedirectModal(n){this.smartThermostatService.activateThermostatDrawer=!1,this.smartThermostatService.isRedirectModalActive||(this.smartThermostatService.isRedirectModalActive=!0,this.modalController.create({component:w,componentProps:{thermostatType:n,updateUrl:!1}}).then(l=>l.present().then(()=>l.onDidDismiss().then(r=>{this.smartThermostatService.isRedirectModalActive=!1}))))}getThermostatType(){var n=this;return(0,C.Z)(function*(){try{let o;const l=yield n.smartThermostatService.getSmartThermostatDetails(n.userService.user.userAccountNumber);return o=l&&l.smartThermostatDetails&&l.smartThermostatDetails.thermostatDetails?l.smartThermostatDetails.thermostatDetails.thermostatType:void 0,Promise.resolve(o)}catch(o){console.log(o)}})()}ngOnDestroy(){this.accountSwitchSubscriber&&this.accountSwitchSubscriber.unsubscribe(),this.accountReadySubscriber&&this.accountReadySubscriber.unsubscribe(),this.navUtil.queryParams=void 0}toggleRearrangeable(){this.isRearrangeable=!this.isRearrangeable,setTimeout(()=>{const n=document.getElementsByClassName("widget-container");if(n&&n.length>0)for(let o=0;o<n.length;o++)n[o].addEventListener("touchmove",l=>{this.isRearrangeable&&l.preventDefault()},{passive:!1})},500),this.navUtil.menuGestureEventEmitter.emit(!this.isRearrangeable)}cancel(){this.widgetArray=this.tempWidgetArray.slice(),this.isRearrangeable=!this.isRearrangeable,this.navUtil.menuGestureEventEmitter.emit(!this.isRearrangeable)}rearrangeWidgets(){this.widgetArray&&this.widgetArray.length>0&&this.widgetService.updateWidgetSequence(this.widgetArray).catch(n=>{this.globalServiceErrorHandler.showToast()}),this.toggleRearrangeable()}toggleRearrangeableEvent(n){(13===n.keyCode||32===n.keyCode)&&this.toggleRearrangeable()}isEmpty(n){return null==n||0===n.length}rearrangeWidgetsEvent(n){(13===n.keyCode||32===n.keyCode)&&this.rearrangeWidgets()}
1updateBackgroundImage(){this.backgroundImageUrl=this.homeContentService.backgroundImageURL,this.backgroundImageUrl||(this.backgroundImageUrl=this.appUtil.updateUrl("/publish/content/dam/nvenergy/images/southern-nv-Fire-v3_deposit_5227651.jpg")),this.homeContentService.getBackgroundImage().then(n=>{n&&(this.backgroundImageUrl=this.appUtil.updateUrl(n),this.homeContentService.backgroundImageURL=this.backgroundImageUrl)}).catch(()=>{console.log("there was an error fetching the background-image url based on zipcode")})}openThermostatDrawer(){this.smartThermostatService.activateThermostatDrawer&&setTimeout(()=>{if(this.impactByCovid19Service.isCovid19ModalTriggered){const n=this.impactByCovid19Service.covid19ModalClosed.subscribe(()=>{this.openSmartThermostatDrawer(),n.unsubscribe()})}else this.openSmartThermostatDrawer()},1e3)}}return(t=a).\u0275fac=function(n){return new(n||t)(e.Y36(s.rS),e.Y36(P.i),e.Y36(Y.L),e.Y36(f.K),e.Y36(h.x),e.Y36(W.o),e.Y36(ne.E),e.Y36(Ye.e),e.Y36(qe.V),e.Y36(N.K),e.Y36(A.$0),e.Y36(A.Ux),e.Y36(M.H),e.Y36(g.$),e.Y36(Oe.X),e.Y36(c.IN),e.Y36(J.l),e.Y36(oe.m),e.Y36(T._),e.Y36(X.Y))},t.\u0275cmp=e.Xpm({type:t,selectors:[["nve-widgets-group"]],viewQuery:function(n,o){if(1&n&&e.Gf(Ts,5),2&n){let l;e.iGM(l=e.CRH())&&(o.widgets=l)}},decls:11,vars:9,consts:[[1,"tiles-background",3,"ngStyle"],[1,"tiles-background-container"],[1,"clearfix","row-in-mobile"],[1,"col-xs-12"],["class","clearfix",4,"ngIf"],["class","clearfix account-dash-header",4,"ngIf"],[1,"clearfix"],[4,"ngIf"],["class","nve-trigon-spinner-centered",4,"ngIf"],["data-swiftype-index","false",1,"heading"],[1,"clearfix","account-dash-header"],["class","col-lg-6 col-md-6 col-sm-6 col-xs-12",4,"ngIf"],[1,"col-lg-6","col-md-6","col-sm-6","col-xs-12"],["class","menu-dashboard",4,"ngIf"],[4,"ngIf","ngIfThen","ngIfElse"],["userNameWelcome",""],["noUserNameWelcome",""],["id","welcome"],[1,"menu-dashboard"],["class","dashboard-button align-right text-btn-white","csrDisable","",3,"click",4,"ngIf"],["tappable","",1,"dashboard-button",3,"moveToPage","setPageToRoot"],["csrDisable","",1,"dashboard-button","align-right","text-btn-white",3,"click"],[1,"dashboard-button","cancel",3,"click"],[1,"dashboard-button",3,"click"],[1,"widget-group","clearfix",3,"dragula","dragulaModel","dragulaModelChange"],["class","col-lg-4 col-md-6 col-sm-6 col-xs-12 widget-group-inner",4,"ngFor","ngForOf"],[1,"col-lg-4","col-md-6","col-sm-6","col-xs-12","widget-group-inner"],[1,"drag-arrow-panel"],["src","assets/images/rearrange.png","width","75px","height","75px",1,"rearrange-icon"],[1,"panel-backdrop"],[1,"widget","widgetinactive",3,"index","id","nbaFirstTileProgramName"],["widgets",""],[1,"widget-group","clearfix"],[4,"ngFor","ngForOf"],[1,"col-lg-4","col-md-6","col-sm-6","col-xs-12","widget-group-inner",3,"ngClass"],[1,"widget",3,"index","id","nbaFirstTileProgramName"],[1,"nve-trigon-spinner-centered"]],template:function(n,o){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),e.YNc(4,fs,4,3,"div",4),e.YNc(5,Ms,5,3,"div",5),e.qZA()(),e.TgZ(6,"div",6),e.YNc(7,Ls,3,3,"div",7),e.YNc(8,Ds,3,1,"div",7),e.qZA()(),e.YNc(9,ws,2,0,"div",8),e.YNc(10,Bs,3,3,"div",8),e.qZA()),2&n&&(e.Q6J("ngStyle",e.VKq(7,Us,"url("+o.backgroundImageUrl+")")),e.xp6(4),e.Q6J("ngIf",null==o.account),e.xp6(1),e.Q6J("ngIf",null!=o.account),e.xp6(2),e.Q6J("ngIf",o.isDataAvailable&&o.isRearrangeable),e.xp6(1),e.Q6J("ngIf",o.isDataAvailable&&!o.isRearrangeable),e.xp6(1),e.Q6J("ngIf",!o.isDataAvailable&&!o.isErrorOccured),e.xp6(1),e.Q6J("ngIf",!o.isDataAvailable&&o.isErrorOccured))},dependencies:[F.$,s.mk,s.sg,s.O5,s.PC,H.a,$.$,Pe.sW,ms,_.X$],styles:["@media only screen and (min-width: 1200px){.clear[_ngcontent-%COMP%]{clear:left}}button.text-btn[_ngcontent-%COMP%]{font-weight:400;color:#fff}button.text-btn[_ngcontent-%COMP%]:hover{opacity:1;text-decoration:underline}"]}),a})();var Ys=d(50132),pe=d(37244),qs=d(80660),Fs=d(86147);let ks=(()=>{var t;class a{constructor(n,o,l){this.http=n,this.userService=o,this.logger=l,this.profileAndPreferencesUrl="/profileAndPreferences",this.authUrl="/auth"}getMFAEnrolledPhone(){return this.http.sendRequest(ie.a.GET,"/factors/SMS/isEnrolled").then(o=>o.isSuccess?Promise.resolve(o.ResponseBody):Promise.reject("")).catch(o=>(this.logger.error("Error occured while fetching MFA Enabled phone details from server.",o),Promise.reject("")))}updateNickName(n,o){return this.http.sendRequest(ie.a.POST,this.profileAndPreferencesUrl+"/updateAccountNickName",n,null,!1,o).then(r=>r.isSuccess?Promise.resolve(r.ResponseBody):Promise.reject("")).catch(r=>(this.logger.error("Error occured while updating nickname in server.",r),Promise.reject("")))}updatePrimaryAccount(n,o){return this.http.sendRequest(ie.a.POST,this.profileAndPreferencesUrl+"/updatePrimaryAccount",JSON.stringify({billType:n}),null,!1,o).then(p=>p.isSuccess?Promise.resolve(p.ResponseBody):Promise.reject("")).catch(p=>(this.logger.error("Error occured while updating primary account in server.",p),Promise.reject("")))}updateProfile(n,o){return this.http.sendRequest(ie.a.POST,this.profileAndPreferencesUrl+"/updateprofile",n,null,!1,o).then(r=>(this.logger.debug(r),r.isSuccess?Promise.resolve(r.ResponseBody):Promise.reject(r.ResponseBody))).catch(r=>(this.logger.error("Error occured while validating old password in server.",r),Promise.reject(r)))}updateEmail(n){return this.http.sendRequest(ie.a.POST,this.profileAndPreferencesUrl+"/updateEmail",{updateEmail:{userId:this.userService.user.userNickname&&this.userService.user.userNickname.length>0?this.userService.user.userNickname:this.userService.user.firstName,email:n}}).then(r=>r.isSuccess?(this.userService.user.email.emailAddress=n,Promise.resolve(!0)):r.ResponseBody?Promise.reject(r.ResponseBody):Promise.resolve(!1)).catch(r=>(this.logger.error("Error occured while updating email in server.",r),Promise.reject("")))}decodeHTML(n){const o=document.createElement("div");return o.innerHTML=n,o.innerHTML}}return(t=a).\u0275fac=function(n){return new(n||t)(e.LFG(fe.r),e.LFG
1(f.K),e.LFG(X.Y))},t.\u0275prov=e.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),a})();var Re=d(5277),Js=d(95838);function Gs(t,a){1&t&&e._UZ(0,"span",10)}function Qs(t,a){1&t&&e._UZ(0,"span",11)}function Hs(t,a){if(1&t){const i=e.EpF();e.TgZ(0,"a",7),e.NdJ("click",function(){e.CHM(i);const o=e.oxw();return e.KtG(o.scroll())}),e.YNc(1,Gs,1,0,"span",8),e.YNc(2,Qs,1,0,"span",9),e.qZA()}if(2&t){const i=e.oxw();e.xp6(1),e.Q6J("ngIf",i.isScrollUp),e.xp6(1),e.Q6J("ngIf",!i.isScrollUp)}}function js(t,a){1&t&&(e.TgZ(0,"h1",25),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"COMPONENTS.PAPERLESS_BILLING_MODAL.PROMO.PROMO_TITLE_AMP")," "))}function Ws(t,a){1&t&&(e.TgZ(0,"h1",25),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"COMPONENTS.PAPERLESS_BILLING_MODAL.PROMO.PROMO_TITLE")," "))}function Ks(t,a){if(1&t&&(e.TgZ(0,"div",17)(1,"div",18),e._UZ(2,"img",26),e.qZA()()),2&t){const i=e.oxw(2);e.xp6(2),e.s9C("src",i.illustrationImageURL,e.LSH)}}function Xs(t,a){1&t&&(e.TgZ(0,"h3")(1,"b"),e._uU(2),e.ALo(3,"translate"),e.qZA()()),2&t&&(e.xp6(2),e.Oqu(e.lcZ(3,1,"COMPONENTS.PAPERLESS_BILLING_MODAL.PROMO.PROMO_SUBTITLE_AMP")))}function $s(t,a){1&t&&(e.TgZ(0,"h3")(1,"b"),e._uU(2),e.ALo(3,"translate"),e.qZA()()),2&t&&(e.xp6(2),e.Oqu(e.lcZ(3,1,"COMPONENTS.PAPERLESS_BILLING_MODAL.PROMO.PROMO_SUBTITLE")))}function zs(t,a){if(1&t&&(e.TgZ(0,"div",27)(1,"div",28)(2,"div",18),e._UZ(3,"img",29),e.qZA()()()),2&t){const i=e.oxw(2);e.xp6(3),e.s9C("src",i.illustrationImageURL,e.LSH)}}function Vs(t,a){if(1&t){const i=e.EpF();e.TgZ(0,"div")(1,"div",12)(2,"div",13)(3,"div",14),e.YNc(4,js,3,3,"h1",15),e.YNc(5,Ws,3,3,"h1",15),e.qZA()(),e.YNc(6,Ks,3,1,"div",16),e.TgZ(7,"div",17)(8,"div",18),e.YNc(9,Xs,4,3,"h3",6),e.YNc(10,$s,4,3,"h3",6),e.qZA()(),e.TgZ(11,"div",17)(12,"div",18)(13,"p"),e._uU(14),e.ALo(15,"translate"),e.qZA()()()(),e.YNc(16,zs,4,1,"div",19),e.TgZ(17,"div",20)(18,"div",21)(19,"button",22),e.NdJ("click",function(){e.CHM(i);const o=e.oxw();return e.KtG(o.dontAskMeAgain())}),e._uU(20),e.ALo(21,"translate"),e.qZA(),e.TgZ(22,"button",23),e.NdJ("click",function(){e.CHM(i);const o=e.oxw();return e.KtG(o.goToStep("verifyEmailStep"))}),e._uU(23),e.ALo(24,"translate"),e.qZA(),e.TgZ(25,"button",24),e.NdJ("click",function(){e.CHM(i);const o=e.oxw();return e.KtG(o.dismiss())}),e._uU(26),e.ALo(27,"translate"),e.qZA()()()()}if(2&t){const i=e.oxw();e.xp6(4),e.Q6J("ngIf",i.isEnrolledInAMP),e.xp6(1),e.Q6J("ngIf",!i.isEnrolledInAMP),e.xp6(1),e.Q6J("ngIf",i.isMobileDevice),e.xp6(3),e.Q6J("ngIf",i.isEnrolledInAMP),e.xp6(1),e.Q6J("ngIf",!i.isEnrolledInAMP),e.xp6(4),e.hij(" ",e.lcZ(15,10,"COMPONENTS.PAPERLESS_BILLING_MODAL.PROMO.PROMO_DESCRIPTION")," "),e.xp6(2),e.Q6J("ngIf",!i.isMobileDevice),e.xp6(4),e.hij(" ",e.lcZ(21,12,"COMPONENTS.MFA_MODAL.PROMO.DONT_ASK_ME_AGAIN")," "),e.xp6(3),e.hij(" ",e.lcZ(24,14,"COMPONENTS.PAPERLESS_BILLING_MODAL.PROMO.GO_PAPERLESS")," "),e.xp6(3),e.hij(" ",e.lcZ(27,16,"COMPONENTS.PAPERLESS_BILLING_MODAL.PROMO.NOT_NOW")," ")}}function ec(t,a){if(1&t){const i=e.EpF();e.TgZ(0,"div")(1,"div",12)(2,"div",13)(3,"div",14)(4,"h1",25),e._uU(5),e.ALo(6,"translate"),e.qZA()()(),e.TgZ(7,"div",17)(8,"div",18)(9,"p"),e._uU(10),e.ALo(11,"translate"),e.ALo(12,"translate"),e.qZA()()()(),e.TgZ(13,"div",20)(14,"div",21)(15,"button",22),e.NdJ("click",function(){e.CHM(i);const o=e.oxw();return e.KtG(o.goToStep("updateEmail"))}),e._uU(16),e.ALo(17,"translate"),e.qZA(),e.TgZ(18,"button",30),e.NdJ("click",function(){e.CHM(i);const o=e.oxw();return e.KtG(o.onEmailVerified())}),e._uU(19),e.ALo(20,"translate"),e.qZA()()()()}if(2&t){const i=e.oxw();e.xp6(5),e.hij(" ",e.lcZ(6,6,"COMPONENTS.PAPERLESS_BILLING_MODAL.PROMO.REVIEW_EMAIL")," "),e.xp6(5),e.lnq(" ",e.lcZ(11,8,"COMPONENTS.PAPERLESS_BILLING_MODAL.PROMO.IS")," ",i.emailAddress," ",e.lcZ(12,10,"COMPONENTS.PAPERLESS_BILLING_MODAL.PROMO.REV_EMAIL_DESC")," "),e.xp6(6),e.hij(" ",e.lcZ(17,12,"COMPONENTS.PAPERLESS_BILLING_MODAL.PROMO.NO_UPDATE_EMAIL")," "),e.xp6(3),e.hij(" ",e.lcZ(20,14,"COMPONENTS.PAPERLESS_BILLING_MODAL.PROMO.YES_CORRECT")," ")}}function tc(t,a){1&t&&(e.TgZ(0,"p",40),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"COMPONENTS.PROFILEANDPREFERENCES.COMMUNICATION.EMAIL.EXCEEDSLENGTH")," "))}function nc(t,a){if(1&t&&(e.TgZ(0,"p",41),e._uU(1),e.qZA()),2&t){const i=e.oxw(3);e.uIk("aria-label",i.emailUpdateForm.get("email").errors.error),e.xp6(1),e.hij(" ",i.emailUpdateForm.get("email").errors.error," ")}}function ic(t,a){if(1&t&&(e.TgZ(0,"div",37),e.YNc(1,tc,3,3,"p",38),e.YNc(2,nc,2,2,"p",39),e.qZA()),2&t){const i=e.oxw(2);e.xp6(1),e.Q6J("ngIf",null==i.emailUpdateForm.get("email").errors?null:i.emailUpdateForm.get("email").errors.maxlength),e.xp6(1),e.Q6J("ngIf",i.emailUpdateForm.get("email").hasError("error"))}}function oc(t,a){if(1&t){const i=e.EpF();e.TgZ(0,"div")(1,"div",31)(2,"div",13)(3,"div",14)(4,"h1",25),e._uU(5),e.ALo(6,"translate"),e.qZA()()(),e.TgZ(7,"div",17)(8,"form",32)(9,"div",33)(10,"p"),e._uU(11),e.ALo(12,"translate"),e.qZA()(),e.TgZ(13,"div",34)(14,"p"),e._uU(15),e.ALo(16,"translate"),e.qZA(),e.TgZ(17,"input",35),e.NdJ("ngModelChange",function(o){e.CHM(i);const l=e.oxw();return e.KtG(l.emailAddress=o)}),e.qZA()(),e.YNc(18,ic,3,2,"div",36),e.TgZ(19,"div",20)(20,"div",21)(21,"button",22),e.NdJ("click",function(){e.CHM(i);const o=e.oxw();return e.KtG(o.goToStep("verifyEmailStep"))}),e._uU(22),e.ALo(23,"translate"),e.qZA(),e.TgZ(24,"button",23),e.NdJ("click",function(){e.CHM(i);const o=e.oxw();return e.KtG(o.onUpdateEmail())}),e._uU(25),e.ALo(26,"translate"),e.qZA()()()()()()()}if(2&t){const i=e.oxw();e.xp6(5),e.hij(" ",e.lcZ(6,10,"COMPONENTS.PAPERLESS_BILLING_MODAL.PROMO.UPDATE_EMAIL")," "),e.xp6(3),e.Q6J("formGroup",i.emailUpdateForm),e.xp6(3),e.hij(" ",e.lcZ(12,12,"COMPONENTS.PAPERLESS_BILLING_MODAL.PROMO.EMAIL_INPUT_MSG")," "),e.xp6(4),e.Oqu(e.l
1cZ(16,14,"COMPONENTS.PROFILEANDPREFERENCES.MYPROFILE.EMAIL")),e.xp6(2),e.ekj("error",i.emailUpdateForm.get("email").dirty&&i.emailUpdateForm.get("email").hasError("error")),e.Q6J("ngModel",i.emailAddress),e.xp6(1),e.Q6J("ngIf",i.emailUpdateForm.get("email").dirty),e.xp6(4),e.hij(" ",e.lcZ(23,16,"COMPONENTS.PAPERLESS_BILLING_MODAL.PROMO.GO_BACK")," "),e.xp6(3),e.hij(" ",e.lcZ(26,18,"COMPONENTS.PAPERLESS_BILLING_MODAL.PROMO.UPDATE_EMAIL")," ")}}function ac(t,a){if(1&t){const i=e.EpF();e.TgZ(0,"div")(1,"div",42)(2,"div",13)(3,"div",14)(4,"h1",25),e._uU(5),e.ALo(6,"translate"),e.qZA()()(),e.TgZ(7,"div",17)(8,"div",18)(9,"p"),e._uU(10),e.ALo(11,"translate"),e.qZA()()(),e.TgZ(12,"div",20)(13,"div",21)(14,"button",23),e.NdJ("click",function(){e.CHM(i);const o=e.oxw();return e.KtG(o.dismiss())}),e._uU(15),e.ALo(16,"translate"),e.qZA()()()()()}2&t&&(e.xp6(5),e.hij(" ",e.lcZ(6,3,"COMPONENTS.PAPERLESS_BILLING_MODAL.PROMO.CONFIRMATION")," "),e.xp6(5),e.hij(" ",e.lcZ(11,5,"COMPONENTS.PAPERLESS_BILLING_MODAL.PROMO.CONFIRMATION_MSG")," "),e.xp6(5),e.hij(" ",e.lcZ(16,7,"COMPONENTS.PAPERLESS_BILLING_MODAL.PROMO.DONE")," "))}let lc=(()=>{var t;class a extends Z.W{constructor(n,o,l,r,p,u,x,E,D,R){super(n,o),this.appUtil=l,this.userService=r,this.paperlessBillingService=p,this.logger=u,this.formBuilder=x,this.formValidatorUtility=E,this.myProfileService=D,this.navParams=R,this.isMobileDevice=!1,this.illustrationImage="paperless-promo-modal.png",this.currentStep="initialStep",this.illustrationImageURL=this.appUtil.updateUrl("/assets/images/"+this.illustrationImage),this.emailAddress=this.userService.getUser().getEmail().emailAddress}ngOnInit(){this.emailUpdateForm=this.formBuilder.group({email:[this.emailAddress,[O.kI.minLength(1),O.kI.maxLength(90),this.formValidatorUtility.EmailRegExValidator(!0)]]}),this.isEnrolledInAMP=this.navParams.get("isEnrolledInAMP")}dontAskMeAgain(){this.paperlessBillingService.setPaperlessPromoAlertShowFlag(),this.dismiss()}goToStep(n){this.currentStep=n}onUpdateEmail(){var n=this;return(0,C.Z)(function*(){!0===(yield n.myProfileService.updateEmail(n.emailAddress))&&n.onEmailVerified()})()}onEmailVerified(){var n=this;return(0,C.Z)(function*(){const o=n.userService.getUser().currentAccount,l=new qs.H;l.actionCode="CREATE",l.billType=o.billType,l.serviceAddress=o.streetAddressLong,l.email=n.emailAddress;try{const r=yield n.paperlessBillingService.updateBillDeliveryMethod(l,o.accountNumber);r.isUpdateSuccessFully?n.currentStep="confirmation":n.logger.error("Changing bill delivery failed to update",r)}catch(r){n.logger.error("Unexpected server error changing bill delivery for paperless modal",r)}})()}dismiss(){this.modalCtrl.dismiss()}}return(t=a).\u0275fac=function(n){return new(n||t)(e.Y36(c.IN),e.Y36(s.Ye),e.Y36(le.$),e.Y36(f.K),e.Y36(Re.x),e.Y36(X.Y),e.Y36(O.QS),e.Y36(Fs.u),e.Y36(ks),e.Y36(c.X1))},t.\u0275cmp=e.Xpm({type:t,selectors:[["ng-component"]],features:[e.qOj],decls:11,vars:5,consts:[["analyticsEvent","paperless_promo_shown_dashboard",1,"nve-modal"],["class","modal-scroll-btn flexible-modal",3,"click",4,"ngIf"],[1,"flexible-modal","modal-scroll-content"],["tabindex","0","aria-label","close","role","button",1,"close-modal",3,"click"],[1,"ion-close-round"],[1,"modal-height-calc-wrapper","modal-scroll-content"],[4,"ngIf"],[1,"modal-scroll-btn","flexible-modal",3,"click"],["class","ion-ios-arrow-down","title","Scroll To Bottom",4,"ngIf"],["class","ion-ios-arrow-up","title","Scroll To Top",4,"ngIf"],["title","Scroll To Bottom",1,"ion-ios-arrow-down"],["title","Scroll To Top",1,"ion-ios-arrow-up"],[1,"col-md-8","padding-left-0"],["role","alertdialog","aria-labelledby","msgHeading","tabindex","0",1,"clearfix"],["id","msgHeading",1,"col-xs-12"],["class","heading margin-top-0",4,"ngIf"],["class","col-xs-12 no-col-padding",4,"ngIf"],[1,"col-xs-12","no-col-padding"],[1,"clearfix"],["class","col-md-4",4,"ngIf"],[1,"col-xs-12","margin-top-30"],[1,"bottom-nav"],["csrDisable","",1,"nv-btn","nv-btn-white","nv-btn-border-blue",3,"click"],[1,"nv-btn","nv-btn-blue","nv-btn-go",3,"click"],[1,"nv-btn","nv-btn-transparent-blue","nv-btn-cancel",3,"click"],[1,"heading","margin-top-0"],["alt","Paperless Promo Illustration",1,"promo-image-mobile",3,"src"],[1,"col-md-4"],[1,"col-xs-12","paperless-illustration","no-col-padding","padding-right-0"],["alt","Paperless Promo Illustration",3,"src"],["csrDisable","",1,"nv
1-btn","nv-btn-blue","nv-btn-go",3,"click"],[1,"col-md-12","padding-left-0"],["novalidate","",3,"formGroup"],[1,"col-xs-12","margin-top-15"],[1,"col-lg-4","col-md-6","col-sm-6","margin-top-15"],["role","form","tabindex","0","aria-label","Please Enter a valid Email","type","text","formControlName","email",1,"form-control",3,"ngModel","ngModelChange"],["class","col-xs-12",4,"ngIf"],[1,"col-xs-12"],["class","validation-form-error","attr.aria-label","Email Max Length Error",4,"ngIf"],["class","validation-form-error",4,"ngIf"],["attr.aria-label","Email Max Length Error",1,"validation-form-error"],[1,"validation-form-error"],["analyticsEvent","paperless_promo_enrolled_dashboard",1,"col-md-12","padding-left-0"]],template:function(n,o){1&n&&(e.TgZ(0,"ion-modal-view",0)(1,"div"),e.YNc(2,Hs,3,2,"a",1),e.TgZ(3,"div",2)(4,"a",3),e.NdJ("click",function(){return o.dismiss()}),e._UZ(5,"span",4),e.qZA(),e.TgZ(6,"div",5),e.YNc(7,Vs,28,18,"div",6),e.YNc(8,ec,21,16,"div",6),e.YNc(9,oc,27,20,"div",6),e.YNc(10,ac,17,9,"div",6),e.qZA()()()()),2&n&&(e.xp6(2),e.Q6J("ngIf",o.showScrollBtn),e.xp6(5),e.Q6J("ngIf","initialStep"===o.currentStep),e.xp6(1),e.Q6J("ngIf","verifyEmailStep"===o.currentStep),e.xp6(1),e.Q6J("ngIf","updateEmail"===o.currentStep),e.xp6(1),e.Q6J("ngIf","confirmation"===o.currentStep))},dependencies:[$.$,Js.K,s.O5,O._Y,O.Fj,O.JJ,O.JL,O.sg,O.u,_.X$],styles:[".margin-top-0[_ngcontent-%COMP%]{margin-top:0}.padding-left-0[_ngcontent-%COMP%]{padding-left:0}.padding-right-0[_ngcontent-%COMP%]{padding-right:0}.promo-image-mobile[_ngcontent-%COMP%]{width:100%;height:100%}.paperless-illustration[_ngcontent-%COMP%] div[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{float:right}@media (max-width: 991px){.paperless-illustration[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:auto;text-align:center}.paperless-illustration[_ngcontent-%COMP%] div[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{float:none}}"]}),a})();var sc=d(84604);let cc=(()=>{var t;class a{constructor(n,o,l,r,p,u,x){this.modalCtrl=n,this.paperlessBillingService=l,this.userService=r,this.accountListService=p,this.initialModalService=u,this.navUtil=x,this.isEnrolledInAMP=!1,this.logger=new X.f(o,"PaperlessBillingModalService"),this.userService.userChanged.subscribe(E=>this.onUserChanged(E)),this.modalSubscription=this.initialModalService.activeModal$.subscribe(E=>{E===pe.w.PPLS&&this.showPaperlessBillingModal()}),this.initialModalService.reinitializeModals$.subscribe(()=>{this.loadPaperlessBillingInfo()})}onUserChanged(n){var o=this;return(0,C.Z)(function*(){var l;if(n instanceof sc.m)return;if(!n||!n.isLoggedIn||!n.userID){if(!n||!n.isLoggedIn)return void o.logger.warn("Paperless Billing Invalid user",{user:n});o.onAccountReady()}let p,r=!1;null!==(l=n.currentAccount)&&void 0!==l&&l.accountNumber?(o.currentAccountNumber=n.currentAccount.accountNumber,o.loadPaperlessBillingInfo()):(r=!0,o.onAccountSwitched());try{p=o.userService.isMultiAccount()}catch(u){p=!1}p&&!r&&o.onAccountSwitched()})()}onAccountReady(){this.accountListService.accountReadyEmitter.subscribe(n=>{var o;const l=null===(o=n.currentAccount)||void 0===o?void 0:o.accountNumber;l!==this.currentAccountNumber&&(this.currentAccountNumber=l,this.loadPaperlessBillingInfo())})}onAccountSwitched(){this.accountListService.accountSwitchedEventEmitter.subscribe(n=>{const o=null==n?void 0:n.accountNumber;o!==this.currentAccountNumber&&(this.currentAccountNumber=o,this.loadPaperlessBillingInfo())})}loadPaperlessBillingInfo(){var n=this;return(0,C.Z)(function*(){let o,l;try{[o,l]=yield Promise.all([n.getPaperlessBillingEligibility(),n.getPaperlessPromoAlertShowFlag()])}catch(p){return void n.logger.error("Unexpected server error fetching Paperless Billing data",p)}n.isEnrolledInAMP=o.isEnrolledInAMP;const r=n.navUtil.queryParams;null!=r&&r.paperless&&(l=!1),n.initialModalService.setModalState(pe.w.PPLS,!0,!0===o.isEligible&&!1===o.switchOnOff&&!l)})()}getPaperlessBillingEligibility(){var n=this;return(0,C.Z)(function*(){try{const o=yield n.paperlessBillingService.retrieveAccountOverview(n.currentAccountNumber);return Promise.resolve(o)}catch(o){return n.logger.error("Unexpected error fetching Paperless Billing Eligibility",o),Promise.reject("")}})()}getPaperlessPromoAlertShowFlag(){var n=this;return(0,C.Z)(function*(){try{const l=(yield n.paperlessBillingService.getPaperlessPromoAlertShowFlag()).paperlessModalDontShow;return Promise.resolve(l)}catch(o){return n.logger.error("Unexpected error checking paperlessModalDontShow",o),Promise.reject("")}})()}showPaperlessBillingModal(){var n=this;return(0,C.Z)(function*(){n.logger.debug("showPaperlessBillingModal");const o={isEnrolledInAMP:n.isEnrolledInAMP},l=yield n.modalCtrl.create({component:lc,componentProps:o});
1l.onDidDismiss().then(function(){var r=(0,C.Z)(function*(p){console.log("on paperless billing modal dismiss",p)});return function(p){return r.apply(this,arguments)}}()),yield l.present()})()}}return(t=a).\u0275fac=function(n){return new(n||t)(e.LFG(c.IN),e.LFG(X.Y),e.LFG(Re.x),e.LFG(f.K),e.LFG(h.x),e.LFG(pe.O),e.LFG(M.H))},t.\u0275prov=e.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),a})();var rc=d(41498);const dc=["widgetsGroup"];function pc(t,a){if(1&t){const i=e.EpF();e.TgZ(0,"a",3),e.NdJ("click",function(){e.CHM(i);const o=e.oxw();return e.KtG(o.scroll())}),e.TgZ(1,"div",4),e._uU(2),e.ALo(3,"translate"),e._UZ(4,"span",5),e.qZA()()}if(2&t){const i=e.oxw();e.ekj("invisible",!i.showButton),e.xp6(2),e.hij(" ",e.lcZ(3,3,"PAGES.MYACCOUNTPAGE.MORE")," ")}}const gc=[{path:"",component:(()=>{var t;class a{constructor(n,o,l,r,p,u,x,E,D){this.platform=n,this.changeDetectorRef=o,this.navUtil=l,this.smartThermostatService=r,this.route=p,this.alertService=u,this.touHbaRateComparisonService=x,this.paperlessBillingModalService=E,this.initialModalService=D,this.showButton=!1,this.isMobile=!1,this.scrollPosition=0,this.buttonToggleHeight=500,this.navUtil.getQueryParams();const R=this.navUtil.queryParams;null!=R&&R.paperless&&this.initialModalService.setPaperlessBillingCampaign(),this.route.queryParams.subscribe(q=>{var G;"thermostatdrawer"===(null===(G=q.navigateTo)||void 0===G?void 0:G.toLowerCase())&&(this.smartThermostatService.activateThermostatDrawer=!0,this.navUtil.navigate(L.$.myAccount,!1,{thermostatDrawer:!0}))}),this.platform.platform.ready().then(()=>{this.isMobile=this.platform.is("ios")||this.platform.is("android")||this.platform.is("mobileweb")})}ionViewWillEnter(){this.navUtil.setAppRoot(),I.$.getInstance().myAccountDidEnter(),this.widgetsGroup.onChanged.subscribe(o=>{o&&(this.showButton=!0)}),document.querySelector(".page-content-wrapper").addEventListener("scroll",o=>this.detectScroll(o)),this.initialModalService.reinitializationRequired()&&this.initialModalService.handleReinitializeModals()}ionViewWillLeave(){document.querySelector(".page-content-wrapper").removeEventListener("scroll",n=>this.detectScroll(n)),this.alertService.emitDeleteAlertEvent([S.J.ROUTEGUARD001.id])}detectScroll(n){var o=this;return(0,C.Z)(function*(){o.showButton=n.target.scrollTop<o.buttonToggleHeight&&o.isMobile,o.changeDetectorRef.detectChanges()})()}scroll(){const n=document.querySelector(".page-content-wrapper");n.scrollTo({top:n.scrollHeight,behavior:"smooth"})}}return(t=a).\u0275fac=function(n){return new(n||t)(e.Y36(oe.m),e.Y36(e.sBO),e.Y36(M.H),e.Y36(g.$),e.Y36(b.gz),e.Y36(Ys.c),e.Y36(rc.i),e.Y36(cc),e.Y36(pe.O))},t.\u0275cmp=e.Xpm({type:t,selectors:[["ng-component"]],viewQuery:function(n,o){if(1&n&&e.Gf(dc,5),2&n){let l;e.iGM(l=e.CRH())&&(o.widgetsGroup=l.first)}},decls:5,vars:1,consts:[["id","my-account"],["widgetsGroup",""],[3,"invisible","click",4,"ngIf"],[3,"click"],[1,"more-scroll"],[1,"ion-ios-arrow-down"]],template:function(n,o){1&n&&(e.TgZ(0,"div",0)(1,"div"),e._UZ(2,"nve-widgets-group",null,1),e.qZA()(),e.YNc(4,pc,5,5,"a",2)),2&n&&(e.xp6(4),e.Q6J("ngIf",o.isMobile))},dependencies:[s.O5,Rs,_.X$],styles:[".nve[_ngcontent-%COMP%] .radio-md[_ngcontent-%COMP%] .radio-checked[_ngcontent-%COMP%]{border-color:#d2c9c7}.nve[_ngcontent-%COMP%] .radio-md[_ngcontent-%COMP%] .radio-inner[_ngcontent-%COMP%]{top:3px;left:3px;width:12px;height:12px}.nve[_ngcontent-%COMP%] .radio-md[_ngcontent-%COMP%] .radio-icon[_ngcontent-%COMP%]{border-color:#d2c9c7;background:#ffffff}.nve[_ngcontent-%COMP%] .checkbox-md[_ngcontent-%COMP%] .checkbox-checked[_ngcontent-%COMP%]{border-color:#d2c9c7;background-color:#fff}.nve[_ngcontent-%COMP%] .checkbox-md[_ngcontent-%COMP%] .checkbox-icon[_ngcontent-%COMP%]{width:20px;height:20px;border-width:1px;border-style:solid;border-radius:1px;border-color:#d2c9c7;background-color:#fff}.nve[_ngcontent-%COMP%] .checkbox-md[_ngcontent-%COMP%] .checkbox-checked[_ngcontent-%COMP%] .checkbox-inner[_ngcontent-%COMP%]{top:0;left:7px;width:5px;height:14px}.nve[_ngcontent-%COMP%] .checkbox-md.checkbox-disabled[_ngcontent-%COMP%], .nve[_ng
1content-%COMP%] .item-md.item-checkbox-disabled[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{opacity:.6;pointer-events:none;background:#ccc}.nve[_ngcontent-%COMP%] .radio-md.radio-disabled[_ngcontent-%COMP%], .nve[_ngcontent-%COMP%] .item-md.item-radio-disabled[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{opacity:.6;pointer-events:none}.nve[_ngcontent-%COMP%] .radio-md.radio-disabled[_ngcontent-%COMP%] .radio-icon[_ngcontent-%COMP%], .nve[_ngcontent-%COMP%] .item-md.item-radio-disabled[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%] .radio-icon[_ngcontent-%COMP%]{background:#cccccc}.nve[_ngcontent-%COMP%] ion-radio.radio-disabled[_ngcontent-%COMP%]{opacity:.6;pointer-events:none}.nve[_ngcontent-%COMP%] ion-radio.radio-disabled[_ngcontent-%COMP%]::part(container){background:#cccccc}.nve[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-size:1em;font-weight:400;color:#000}#my-account[_ngcontent-%COMP%]{overflow-y:auto;overflow-x:hidden}@media (min-width: 1024px){.more-scroll[_ngcontent-%COMP%]{visibility:hidden}}@media (max-width: 1023px){.more-scroll[_ngcontent-%COMP%]{visibility:visible}}"]}),a})()}];let _c=(()=>{var t;class a{}return(t=a).\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[b.Bz.forChild(gc),b.Bz]}),a})();var uc=d(29026),mc=d(49512);let Tc=(()=>{var t;class a{}return(t=a).\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({providers:[s.H9],imports:[_c,mc.m,s.ez,b.Bz,_.aw,y.o,Pe.qE.forRoot(),O.UX,O.u5,uc.D,Me.a,v]}),a})()},64355:(Q,B,d)=>{"use strict";d.d(B,{W:()=>O});var s=d(55062);let O=(()=>{var c;class _{transform(e){return e&&e<0?"$"+Math.abs(e).toFixed(2):0==e?"$0.00":"$"+Math.abs(e).toFixed(2)+" CR"}}return(c=_).\u0275fac=function(e){return new(e||c)},c.\u0275pipe=s.Yjl({name:"flexpaycredit",type:c,pure:!1}),_})()},71047:(Q,B,d)=>{"use strict";d.d(B,{$:()=>c});var s=d(591),O=d(55062);let c=(()=>{var _;class y{constructor(){this.refreshCurrentBillTileSubject=new s.X(!1),this.refreshWidgetListSubject=new s.X(!1),this.myAccountWillEnterSubject=new s.X(!1)}static getInstance(){return null==y.instance&&(y.isCreating=!0,y.instance=new y,y.isCreating=!1),y.instance}refreshCurrentBillTile(){this.refreshCurrentBillTileSubject.next(!0)}refreshWidgetList(){this.refreshWidgetListSubject.next(!0)}myAccountDidEnter(){this.myAccountWillEnterSubject.next(!0)}get onRefreshCurrentBillTile(){return this.refreshCurrentBillTileSubject.asObservable()}get onRefreshWidgetList(){return this.refreshWidgetListSubject.asObservable()}get myAccountOnDidEnter(){return this.myAccountWillEnterSubject.asObservable()}}return(_=y).isCreating=!1,_.\u0275fac=function(v){return new(v||_)},_.\u0275prov=O.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),y})()},80660:(Q,B,d)=>{"use strict";d.d(B,{H:()=>s});class s{}},16418:(Q,B,d)=>{"use strict";d.d(B,{r:()=>s});let s=(()=>{var O;class c{}return(O=c).SPINNER='\n <html>\n <head>\n <style>\n .loading-spinner-container {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n z-index: 999;\n top: 50%;\n position: absolute;\n }\n .loading-spin .loading {\n background: transparent;\n width: 2em;\n height: 2em;\n position: relative;\n margin:0 auto;\n }\n .loading-spin .loading:after {\n display: block;\n content: "";\n border-radius: 50%;\n height: 2px;\n width: 2px;\n position: absolute;\n margin: auto;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n box-shadow: 10px 0 0 2px #333, 7px 7px 0 2px #999, 0 10px 0 2px #999, -7p
1x 7px 0 2px #999, -10px 0 0 2px #999, -7px -7px 0 2px #999, 0 -10px 0 2px #333, 7px -7px 0 2px #111;\n -webkit-animation: rotate 1s steps(8) infinite;\n -o-animation: rotate 1s steps(8) infinite;\n animation: rotate 1s steps(8) infinite;\n }\n @keyframes rotate {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n }\n </style>\n </head>\n <body>\n <div class="loading-spinner-container">\n <div class="loading-spin">\n <div class="loading"></div>\n </div>\n </div>\n </body>\n </html>',O.SPINNER_MSG1='\n <html>\n <head>\n <style>\n .loading-spinner-container {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n z-index: 999;\n top: 50%;\n position: absolute;\n }\n .loading-spin .loading {\n background: transparent;\n width: 2em;\n height: 2em;\n position: relative;\n margin:0 auto;\n }\n .loading-spin .loading:after {\n display: block;\n content: "";\n border-radius: 50%;\n height: 2px;\n width: 2px;\n position: absolute;\n margin: auto;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n box-shadow: 10px 0 0 2px #333, 7px 7px 0 2px #999, 0 10px 0 2px #999, -7px 7px 0 2px #999, -10px 0 0 2px #999, -7px -7px 0 2px #999, 0 -10px 0 2px #333, 7px -7px 0 2px #111;\n -webkit-animation: rotate 1s steps(8) infinite;\n -o-animation: rotate 1s steps(8) infinite;\n animation: rotate 1s steps(8) infinite;\n }\n @keyframes rotate {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n }\n </style>\n </head>\n <body>\n <div class="loading-spinner-container">\n <div class="loading-spin">\n <div class="loading"></div>\n <div>',O.SPINNER_MSG2="</div>\n </div>\n </div>\n </body>\n </html>",c})()},19305:function(Q,B){var d,O;void 0!==(O="function"==typeof(d=function(){return function c(_,y,e){var Z,A,v=window,b="application/octet-stream",C=e||b,S=_,L=!y&&!e&&S,M=document.createElement("a"),j=function(m){return String(m)},k=v.Blob||v.MozBlob||v.WebKitBlob||j,P=y||"download";if(k=k.call?k.bind(v):Blob,"true"===String(this)&&(C=(S=[S,C])[0],S=S[1]),L&&L.length<2048&&/https:\/\/+([a-z0-9\-])+\.nvenergy+\.com\//gm.test(L)&&(P=L.split("/").pop().split("?")[0],M.href=L,-1!==M.href.indexOf(L))){var T=new XMLHttpRequest;return T.open("GET",L,!0),T.responseType="blob",T.onload=function(m){c(m.target.response,P,b)},setTimeout(function(){T.send()},0),T}if(/^data\:[\w+\-]+\/[\w+\-]+[,;]/.test(S)){if(!(S.length>2096103.424&&k!==j))return navigator.msSaveBlob?navigator.msSaveBlob(U(S),P):K(S);C=(S=U(S)).type||b}function U(m){for(var w=m.split(/[:;,]/),I=w[1],f=("base64"==w[2]?atob:decodeURIComponent)(w.pop()),N=f.length,J=0,ne=new Uint8Array(N);J<N;++J)ne[J]=f.charCodeAt(J);return new k([ne],{type:I})}function K(m,w){if("download"in M)return M.href=m,M.setAttribute("download",P),M.className="download-js-link",M.innerHTML="downloading...",M.style.display="none",document.body.appendChild(M),setTimeout(function(){M.click(),document.body.removeChild(M),!0===w&&setTimeout(function(){v.URL.revokeObjectURL(M.href)},250)},66),!0;if(/(Version)\/(\d+)\.(\d+)(?:\.(\d+))?.*Safari\//.test(navigator.userAgent))return m=m.replace(/^data:([\w\/\-\+]+)/,b),window.open(m)||confirm("Displaying New Document\n\nUse Save As... to download, then click back to return to this page.")&&(location.href=m),!0;var I=document.createElement("iframe");document.body.appendChild(I),w||(m="data:"+m.replace(/^data:([\w\/\-\+]+)/,b)),I.src=m,setTimeout(function(){document.body.removeChild(I)},333)}if(Z=S instanceof k?S:new k([S],{type:C}),navigator.msSaveBlob)return navigator.msSaveBlob(Z,P);
1if(v.URL)K(v.URL.createObjectURL(Z),!0);else{if("string"==typeof Z||Z.constructor===j)try{return K("data:"+C+";base64,"+v.btoa(Z))}catch(m){return K("data:"+C+","+encodeURIComponent(Z))}try{(A=new FileReader).onload=function(m){K(this.result)},A.readAsDataURL(Z)}catch(m){console.error("Error read as data URL",m)}}return!0}})?d.apply(B,[]):d)&&(Q.exports=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.