PageSourceSearch

https://www.nvenergy.com/7807.b00b0b000c758a47.js

js nvenergy.com collected 2026-09-24 09:33:22 UTC 53,018 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[7807],{27720:(S,y,h)=>{h.d(y,{L:()=>N});var n=h(55062),b=h(24006);let O=(()=>{var r;class C{convertToDatePickerDateModel(o){return"isRange"in o?o:{isRange:!1,singleDate:{date:{year:o.date.year,month:o.date.month,day:o.date.day}}}}}return(r=C).\u0275fac=function(o){return new(o||r)},r.\u0275prov=n.Yz7({token:r,factory:r.\u0275fac}),C})();var D=h(36895),T=h(96619);const g=["dp"],e=function(r,C){return{btnclearenabled:r,btncleardisabled:C}};function f(r,C){if(1&r){const d=n.EpF();n.TgZ(0,"button",10),n.NdJ("click",function(){n.CHM(d),n.oxw();const p=n.MAs(2);return n.KtG(p.clearDate())}),n._UZ(1,"span",11),n.qZA()}if(2&r){const d=n.oxw(2);n.Q6J("ngClass",n.WLB(2,e,!d.disabled,d.disabled))("disabled",d.disabled)}}const v=function(r,C){return{btnpickerenabled:r,btnpickerdisabled:C}};function P(r,C){if(1&r){const d=n.EpF();n.TgZ(0,"div",3)(1,"input",4,5),n.NdJ("dateChanged",function(p){n.CHM(d);const _=n.oxw();return n.KtG(_.onDateChanged(p))})("inputFieldChanged",function(p){n.CHM(d);const _=n.oxw();return n.KtG(_.onInputFieldChanged(p))})("ngModelChange",function(p){n.CHM(d);const _=n.oxw();return n.KtG(_.model=p)}),n.qZA(),n.TgZ(3,"div",6),n.YNc(4,f,2,5,"button",7),n.TgZ(5,"button",8),n.NdJ("click",function(){n.CHM(d);const p=n.MAs(2);return n.KtG(p.toggleCalendar())}),n._UZ(6,"span",9),n.qZA()()()}if(2&r){const d=n.MAs(2),o=n.oxw();n.xp6(1),n.Q6J("readonly",!o.editableDateField)("options",o.options)("placeholder",o.placeholder)("ngModel",o.model),n.xp6(3),n.Q6J("ngIf",d.isDateValid()),n.xp6(1),n.Q6J("ngClass",n.WLB(7,v,!o.disabled,o.disabled))("disabled",o.disabled)}}function u(r,C){if(1&r){const d=n.EpF();n.TgZ(0,"div")(1,"input",12,5),n.NdJ("dateChanged",function(p){n.CHM(d);const _=n.oxw();return n.KtG(_.onDateChanged(p))})("ngModelChange",function(p){n.CHM(d);const _=n.oxw();return n.KtG(_.model=p)})("inputFieldChanged",function(p){n.CHM(d);const _=n.oxw();return n.KtG(_.onInputFieldChanged(p))}),n.qZA()()}if(2&r){const d=n.oxw();n.xp6(1),n.Q6J("options",d.options)("placeholder",d.placeholder)("ngModel",d.model)}}const M=function(r,C,d){return{border:r,height:C,display:d}},A=()=>{};let N=(()=>{var r;class C{constructor(o){this.datePickerModelFormatter=o,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 n.vpe,this.valueChanged=new n.vpe,this.inputFieldChanged=new n.vpe,this.onChange=()=>A,this.onTouch=()=>A}get model(){return this.dateModel}set model(o){o!==this.dateModel&&(this.dateModel=o)}set value(o){void 0!==(o=this.datePickerModelFormatter.convertToDatePickerDateModel(o))&&(this.model=o,this.onChange(o),this.onTouch(o))}onDateChanged(o){this.dateChanged.emit(null==o?void 0:o.singleDate),this.valueChanged.emit(o),this.inputFieldChanged.emit({value:null==o?void 0:o.singleDate.formatted,valid:!0,dateFormat:this.options.dateFormat}),this.value=o,this.inputText=o.singleDate.formatted}writeValue(o){o&&o!==this.value&&(this.value=o)}registerOnChange(o){this.onChange=o}registerOnTouched(o){this.onTouch=o}clearDate(){this.dp.clearDate()}onInputFieldChanged(o){o.value!==this.inputText&&(this.inputText=o.value,this.inputFieldChanged.emit(o))}openCalendar(){this.dp.openCalendar()}closeCalendar(){this.dp.closeCalendar()}toggleCalendar(){this.dp.toggleCalendar()}}return(r=C).\u0275fac=function(o){return new(o||r)(n.Y36(O))},r.\u0275cmp=n.Xpm({type:r,selectors:[["nve-date-picker"]],viewQuery:function(o,p){if(1&o&&n.Gf(g,5),2&o){let _;n.iGM(_=n.CRH())&&(p.dp=_.first)}},inputs:{options:"options",placeholder:"placeholder",disabled:"disabled",editableDateField:"editableDateField"},outputs:{dateChanged:"dateChanged",valueChanged:"valueChanged",inputFieldChanged:"inputFieldChanged"},features:[n._Bn([{provide:b.JU,useExisting:(0,n.Gpc)(()=>r),multi:!0},O])],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(o,p){1&o&&(n.TgZ(0,"div",0),n.YNc(1,P,7,10,"div",1),n.YNc(2,u,3,3,"div",2),n.qZA()),2&o&&(n.Q6J("ngStyle",n.kEZ(3,M,p.options.inline?"none":null,p.options.inline?"237px":null,p.options.inline?"block":"inl
1ine")),n.xp6(1),n.Q6J("ngIf",!p.options.inline),n.xp6(1),n.Q6J("ngIf",p.options.inline))},dependencies:[D.mk,D.O5,D.PC,b.Fj,b.JJ,b.On,T.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}}']}),C})()},57807:(S,y,h)=>{h.d(y,{Z:()=>ee});var n=h(15439),b=h(4980),O=h(50132),D=h(61213),T=h(33792),g=h(35399),e=h(55062),f=h(75834),v=h(89383),P=h(90603),u=h(36895),M=h(92697),A=h(6766),N=h(15083),r=h(24006),C=h(97670);function d(i,c){if(1&i&&(e.TgZ(0,"option",8),e._uU(1),e.qZA()),2&i){const s=c.$implicit;e.s9C("value",c.index),e.zWS("aria-label","select ",s.fuelType,":",s.meterNumber,""),e.xp6(1),e.AsE(" ",s.fuelType,":",s.meterNumber," ")}}function o(i,c){if(1&i){const s=e.EpF();e.TgZ(0,"div",5)(1,"select",6),e.NdJ("change",function(){e.CHM(s);const a=e.oxw();return e.KtG(a.emitMeterNumber())})("ngModelChange",function(a){e.CHM(s);const l=e.oxw();return e.KtG(l.meterIndex=a)}),e.YNc(2,d,2,5,"option",7),e.qZA()()}if(2&i){const s=e.oxw();e.xp6(1),e.Q6J("ngModel",s.meterIndex),e.xp6(1),e.Q6J("ngForOf",s.meterList)}}function p(i,c){1&i&&(e.TgZ(0,"div",5)(1,"select",9)(2,"option",10),e._uU(3),e.ALo(4,"translate"),e.qZA()()()),2&i&&(e.xp6(3),e.hij(" ",e.lcZ(4,1,"COMPONENTS.VIEWUSAGE.METERSELECTION.NOMETER")," "))}function _(i,c){if(1&i&&(e.TgZ(0,"option",8),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i){const s=c.$implicit;e.Q6J("value",s),e.xp6(1),e.hij(" ",e.lcZ(2,2,"COMPONENTS.VIEWUSAGE.CHARTS."+s)," ")}}function k(i,c){if(1&i){const s=e.EpF();e.TgZ(0,"div",5)(1,"select",11),e.NdJ("change",function(){e.CHM(s);const a=e.oxw();return e.KtG(a.emitChartType())})("ngModelChange",function(a){e.CHM(s);const l=e.oxw();return e.KtG(l.seletedChartType=a)}),e.YNc(2,_,3,4,"option",7),e.qZA()()}if(2&i){const s=e.oxw();e.xp6(1),e.Q6J("ngModel",s.seletedChartType),e.xp6(1),e.Q6J("ngForOf",s.chartTypes)}}const w=function(i,c){return{startDateLL:i,endDateLL:c}};let L=(()=>{var i;class c{constructor(t,a){this.globalServiceErrorHandler=t,this.viewUsageService=a,this.meterList=void 0,this.previousMeterNumber=0,this.meterNumber=void 0,this.meterIndex=0,this.meterAvailable=!1,this.showChartTypes=!1,this.selectedMeterNumber=new e.vpe,this.chartTypes=["NET_METERING","BATTERY_AND_GRID"],this.seletedChartType="DEFAULT"}set selectedStartValue(t){this.startValue=t}set selectedEndDatelValue(t){this.endValue=t}ngOnInit(){this.getMeterList()}getMeterList(){this.viewUsageService.getMeterList().then(t=>{void 0===t.errorCode?(this.meterAvailable=!0,this.meterList=t,this.meterNumber=this.meterList[this.meterIndex],this.validateBatteryGridEligibility(),this.emitMeterNumber()):(this.meterAvailable=!1,this.emitMeterNumber(t.errorMessage))}).catch(t=>{this.globalServiceErrorHandler.showToast()})}emitMeterNumber(t){void 0===t?(this.meterNumber=this.meterList[this.meterIndex],this.validateBatteryGridEligibility(),this.selectedMeterNumber.emit({selectedMeterNumber:this.meterNumber,selectedChartType:this.seletedChartType})):this.selectedMeterNumber.emit({errMessage:t})}emitChartType(){this.selectedMeterNumber.emit({selectedMeterNumber:this.meterNumber,selectedChartType:this.seletedChartType})}validateBatteryGridEligibility(){"N"===this.meterList[this.meterIndex].meterType?(this.showChartTypes=!0,this.seletedChartType="NET_METERING"):(this.showChartTypes=!1,this.seletedChartType="DEFAULT")}}return(i=c).\u0275fac=function(t){return new(t||i)(e.Y36(f.o),e.Y36(T.q))},i.\u0275cmp=e.Xpm({type:i,selectors:[["nve-meter-selection"]],inputs:{selectedStartValue:"selectedStartValue",selectedEndDatelValue:"selectedEndDatelValue"},outputs:{selectedMeterNumber:"selectedMeterNumber"},decls:10,vars:12,consts:[[1,"col-md-3","col-sm-4","col-xs-12"],["class","select-wrapper",4,"ngIf"],[1,"col-md-3","col-sm-4","col-xs-12","small-padding-top"],["tappable","",1,"",3,"moveToPage","moveToPageParam","setPageToRoot"],[1,"nve-icon","nve-icon-download"],[1,"select-wrapper"],["aria-label","press up key to select any one option","role","listbox",1,"form-control","view-usage-chart-select",3,"ngModel","change","ngModelChange"],["role","option","tabindex","0",3,"value",4,"ngFor","ngForOf"],["role","option","tabindex","0",3,"value"],["aria-label","no meter available","role","listbox",1,"form-control"],["selected","","role","option"],["aria-label","press up key to select any one option","role","listbox",1,"form-control",3,"ngModel","change","ngModelChange"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.YNc(1,o,3,2,"div",1),e.YNc(2,p,5,3,"div",1),e.qZA(),e.TgZ(3,"div",0),e.YNc(4,k,3,2,"div",1),e.qZA(),e.TgZ(5,"div",2)(6,"a",3),e._UZ(7,"span",4),e._uU(8),e.ALo(9,"translate"),e.qZA()()),2&t&&(e.xp6(1),e.Q6J("ngIf",a.meterAvailable),e.xp6(1),e.Q6J("ngIf",!a.meterAvailable),e.xp6(2),e.Q6J("ngIf",a.showChartTypes),e.xp6(2),e.Q6J("moveToPage","my-account/download-usage")("moveToPageParam",e.WLB(9,w,a.startValue,a.endValue))("setPageToRoot",!1),e.xp6(2),e.hij(" ",e.lcZ(9,7,"COMPONENTS.VIEWUSAGE.METERSELECTION.DOWNLOADUSAGE"),""))},dependencies:[u.sg,u.O5,r.YN,r.Kr,r.EJ,r.JJ,r.On,C.a,v.X$],encapsulation:2}),c})();function Z(i,c){1&i&&(e._UZ(0,"ion-radio",19),e.ALo(1,"translate"),e.ALo(2,"translate")),2&i&&e.uIk("aria-label",e.lcZ(1,2,"COMPONENTS.VIEWUSAGE.INTERVALSPECIFICATION.15MIN"))("title",e.lcZ(2,4,"COMPONENTS.VIEWUSAGE.INTERVALSPECIFICATION.15MIN"))}function V(i,c){1&i&&(e.TgZ(0,"ion-label",8),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.Oqu(e.l
1cZ(2,1,"COMPONENTS.VIEWUSAGE.INTERVALSPECIFICATION.15MIN")))}function F(i,c){1&i&&(e.TgZ(0,"option",20),e.ALo(1,"translate"),e._uU(2),e.ALo(3,"translate"),e.qZA()),2&i&&(e.uIk("aria-label",e.lcZ(1,2,"COMPONENTS.VIEWUSAGE.INTERVALSPECIFICATION.15MIN")),e.xp6(2),e.hij(" ",e.lcZ(3,4,"COMPONENTS.VIEWUSAGE.INTERVALSPECIFICATION.15MIN")," "))}let U=(()=>{var i;class c{constructor(){this.selectedInterval=new e.vpe,this.accountFeedInterval=void 0,this.interval="weekly",this.emitInterval()}set selectedFuelType(t){this.fuelType=t,"15min"===this.interval&&(this.interval="weekly",this.emitInterval())}ngOnInit(){(null!=this.accountFeedInterval||null!=this.accountFeedInterval)&&(this.interval="monthly",this.emitInterval())}updateSelection(t){this.interval=t.detail.value,this.emitInterval()}emitInterval(){this.selectedInterval.emit({selectedInterval:this.interval})}}return(i=c).\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["nve-interval-specification"]],inputs:{selectedFuelType:"selectedFuelType",accountFeedInterval:"accountFeedInterval"},outputs:{selectedInterval:"selectedInterval"},decls:49,vars:56,consts:[["aria-label","checkbox, select a interval","tabindex","0",1,"interval-specification","hidden-sm","hidden-xs","col-xs-12","margin-top-15"],[1,"col-xs-2"],[1,"ion-no-padding"],[1,"radioSelectListBlock","horizontal",3,"value","ionChange"],[1,"field"],["mode","md","value","15min",4,"ngIf"],["class","label label-md",4,"ngIf"],["mode","md","value","daily"],[1,"label","label-md"],["mode","md","value","weekly"],["mode","md","value","monthly"],[1,"interval-specification","visible-sm","visible-xs"],[1,"viewLabel"],[1,"select-wrapper"],["aria-label","press up key to select a interval","role","listbox",1,"form-control","view-usage-chart-select",3,"ngModel","change","ngModelChange"],["role","option","value","15min",4,"ngIf"],["role","option","value","daily"],["role","option","value","weekly"],["role","option","value","monthly"],["mode","md","value","15min"],["role","option","value","15min"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0)(1,"p",1),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"ion-list",2)(5,"ion-radio-group",3),e.NdJ("ionChange",function(m){return a.updateSelection(m)}),e.TgZ(6,"div",4),e.YNc(7,Z,3,6,"ion-radio",5),e.YNc(8,V,3,3,"ion-label",6),e.qZA(),e.TgZ(9,"div",4),e._UZ(10,"ion-radio",7),e.ALo(11,"translate"),e.ALo(12,"translate"),e.TgZ(13,"ion-label",8),e._uU(14),e.ALo(15,"translate"),e.qZA()(),e.TgZ(16,"div",4),e._UZ(17,"ion-radio",9),e.ALo(18,"translate"),e.ALo(19,"translate"),e.TgZ(20,"ion-label",8),e._uU(21),e.ALo(22,"translate"),e.qZA()(),e.TgZ(23,"div",4),e._UZ(24,"ion-radio",10),e.ALo(25,"translate"),e.ALo(26,"translate"),e.TgZ(27,"ion-label",8),e._uU(28),e.ALo(29,"translate"),e.qZA()()()()(),e.TgZ(30,"div",11)(31,"p",12),e._uU(32),e.ALo(33,"translate"),e.qZA(),e.TgZ(34,"div",13)(35,"select",14),e.NdJ("change",function(){return a.emitInterval()})("ngModelChange",function(m){return a.interval=m}),e.YNc(36,F,4,6,"option",15),e.TgZ(37,"option",16),e.ALo(38,"translate"),e._uU(39),e.ALo(40,"translate"),e.qZA(),e.TgZ(41,"option",17),e.ALo(42,"translate"),e._uU(43),e.ALo(44,"translate"),e.qZA(),e.TgZ(45,"option",18),e.ALo(46,"translate"),e._uU(47),e.ALo(48,"translate"),e.qZA()()()()),2&t&&(e.xp6(2),e.hij("",e.lcZ(3,22,"COMPONENTS.VIEWUSAGE.INTERVALSPECIFICATION.VIEW"),":"),e.xp6(3),e.s9C("value",a.interval),e.xp6(2),e.Q6J("ngIf","Gas"!==a.fuelType),e.xp6(1),e.Q6J("ngIf","Gas"!==a.fuelType),e.xp6(2),e.uIk("aria-label",e.lcZ(11,24,"COMPONENTS.VIEWUSAGE.INTERVALSPECIFICATION.DAY"))("title",e.lcZ(12,26,"COMPONENTS.VIEWUSAGE.INTERVALSPECIFICATION.DAY")),e.xp6(4),e.Oqu(e.lcZ(15,28,"COMPONENTS.VIEWUSAGE.INTERVALSPECIFICATION.DAY")),e.xp6(3),e.uIk("aria-label",e.lcZ(18,30,"COMPONENTS.VIEWUSAGE.INTERVALSPECIFICATION.WEEK"))("title",e.lcZ(19,32,"COMPONENTS.VIEWUSAGE.INTERVALSPECIFICATION.WEEK")),e.xp6(4),e.Oqu(e.lcZ(22,34,"COMPONENTS.VIEWUSAGE.INTERVALSPECIFICATION.WEEK")),e.xp6(3),e.uIk("aria-label",e.lcZ(25,36,"COMPONENTS.VIEWUSAGE.INTERVALSPECIFICATION.MONTH"))("title",e.lcZ(26,38,"COMPONENTS.VIEWUSAGE.INTERVALSPECIFICATION.MONTH")),e.xp6(4),e.Oqu(e.l
1cZ(29,40,"COMPONENTS.VIEWUSAGE.INTERVALSPECIFICATION.MONTH")),e.xp6(4),e.hij("",e.lcZ(33,42,"COMPONENTS.VIEWUSAGE.INTERVALSPECIFICATION.VIEW"),":"),e.xp6(3),e.Q6J("ngModel",a.interval),e.xp6(1),e.Q6J("ngIf","Gas"!==a.fuelType),e.xp6(1),e.uIk("aria-label",e.lcZ(38,44,"COMPONENTS.VIEWUSAGE.INTERVALSPECIFICATION.DAY")),e.xp6(2),e.hij(" ",e.lcZ(40,46,"COMPONENTS.VIEWUSAGE.INTERVALSPECIFICATION.DAY")," "),e.xp6(2),e.uIk("aria-label",e.lcZ(42,48,"COMPONENTS.VIEWUSAGE.INTERVALSPECIFICATION.WEEK")),e.xp6(2),e.hij(" ",e.lcZ(44,50,"COMPONENTS.VIEWUSAGE.INTERVALSPECIFICATION.WEEK")," "),e.xp6(2),e.uIk("aria-label",e.lcZ(46,52,"COMPONENTS.VIEWUSAGE.INTERVALSPECIFICATION.MONTH")),e.xp6(2),e.hij(" ",e.lcZ(48,54,"COMPONENTS.VIEWUSAGE.INTERVALSPECIFICATION.MONTH")," "))},dependencies:[u.O5,r.YN,r.Kr,r.EJ,r.JJ,r.On,v.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}.radio-md[_ngcontent-%COMP%]{position:relative;display:inline-block}.item-cover[_ngcontent-%COMP%]{top:0;position:absolute;width:100%;height:100%;background:0 0;cursor:pointer}.nve[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{font-size:1em;font-weight:400;color:#000}.interval-specification[_ngcontent-%COMP%]{margin-top:20px}.radioSelectListBlock.horizontal[_ngcontent-%COMP%]   .field[_ngcontent-%COMP%]{display:inline-flex;margin-right:1em;vertical-align:top;padding-top:0}ion-label[_ngcontent-%COMP%]{padding-bottom:.2em}"]}),c})();var J=h(27720);let R=(()=>{var i;class c{constructor(){this.selectedEndDate=new e.vpe(!0),this.disableNextButton=!1,this.disablePrevButton=!1,this.myDatePickerOptions={dateFormat:"mm/dd/yyyy",firstDayOfWeek:"su",inline:!1,selectorHeight:"231px",selectorWidth:"262px",markCurrentMonth:!1,markCurrentYear:!1,viewChangeAnimation:!1,openSelectorTopOfInput:!0},this.accountFeedEndDate=void 0,this.value={},this.endDate=new Date,this.selectedDate=this.endDate=n(this.endDate,"YYYY-MM-DDTHH:mm:ss").subtract(1,"day").format("MM/DD/YYYY"),this.selectedInterval="weekly",this.previousSelectedInterval="weekly",this.todayDate=this.selectedDate,this.validStartDate=n().subtract(2,"years").format("MM/DD/YYYY"),this.nextExpectedDate=n(this.selectedDate,"MM-DD-YYYY").add(7,"days"),this.prevtExpectedDate=n(this.selectedDate,"MM-DD-YYYY").subtract(7,"days"),this.isNextDateValid(),this.isPrevDateValid()}set selectedIntervalValue(t){this.selectedInterval=t,this.calculateNextExpectedDate(
1),this.calculatePrevExpectedDate()}set disableDayBefore(t){t?this.disableDayBeforeInCalendar():this.setValidEndDates()}set selectedMeter(t){t&&this.disableDateForMeter(t)}get datePickerValue(){return this.value}set datePickerValue(t){t!==this.value&&(this.value=t)}ngOnInit(){(void 0!==this.accountFeedEndDate||void 0!==this.accountFeedEndDate)&&(this.endDate=this.accountFeedEndDate,this.selectedDate=this.endDate=n(this.endDate,"YYYY-MM-DDTHH:mm:ss").format("MM/DD/YYYY"),this.selectedInterval="monthly",this.previousSelectedInterval="monthly",this.todayDate=this.selectedDate,this.validStartDate=n().subtract(2,"years").format("MM/DD/YYYY"),this.nextExpectedDate=n(this.selectedDate,"MM-DD-YYYY").add(1,"months"),this.prevtExpectedDate=n(this.selectedDate,"MM-DD-YYYY").subtract(1,"months")),this.updateDatePickerValue(),this.setValidEndDates(),this.setValidStartDates(),this.emitEndDate()}setValidStartDates(t){let a;const l=n().subtract(2,"years");a=t&&t.isAfter(l)?t.subtract(1,"days"):l,this.validStartDate=a;const m=JSON.parse(JSON.stringify(this.myDatePickerOptions));m.disableUntil={year:a.year(),month:a.month()+1,day:a.date()},this.myDatePickerOptions=m}disableDateForMeter(t){const a=n(t.meterInstallDate);if(a.isAfter(n(this.endDate))&&(this.selectedDate=this.formatDate(a.format("YYYY-MM-DD")),this.endDate=this.formatDate1(this.selectedDate)),null!=t.meterRemovalDate&&t.meterRemovalDate.length>0){const l=n(t.meterRemovalDate).subtract(1,"days"),m=JSON.parse(JSON.stringify(this.myDatePickerOptions));m.disableSince={year:l.year(),month:l.month()+1,day:l.date()+1},this.myDatePickerOptions=m,this.setValidStartDates(a),this.todayDate=this.formatDate(l.format("YYYY-MM-DD")),l.isBefore(n(this.endDate))&&(this.selectedDate=this.formatDate(l.format("YYYY-MM-DD")),this.endDate=this.formatDate1(this.selectedDate),this.emitEndDate()),this.calculateNextExpectedDate(),this.calculatePrevExpectedDate()}else this.setValidEndDates(),this.setValidStartDates(a),this.emitEndDate(),this.todayDate=n().subtract(1,"days").format("MM/DD/YYYY"),this.calculateNextExpectedDate(),this.calculatePrevExpectedDate();this.updateDatePickerValue()}setValidEndDates(){const t=n(),a=JSON.parse(JSON.stringify(this.myDatePickerOptions));a.disableSince={year:t.year(),month:t.month()+1,day:t.date()},this.myDatePickerOptions=a}previous(){const t=new Date(this.currentValue);"15min"===this.selectedInterval||"daily"===this.selectedInterval?t.setDate(t.getDate()-1):"weekly"===this.selectedInterval?t.setDate(t.getDate()-7):t.setMonth(t.getMonth()-1),this.setDate(t)}next(){const t=new Date(this.currentValue);"15min"===this.selectedInterval||"daily"===this.selectedInterval?t.setDate(t.getDate()+1):"weekly"===this.selectedInterval?t.setDate(t.getDate()+7):t.setMonth(t.getMonth()+1),this.setDate(t)}calculateNextExpectedDate(){this.nextExpectedDate="15min"===this.selectedInterval||"daily"===this.selectedInterval?n(this.endDate).add(1,"days"):"weekly"===this.selectedInterval?n(this.endDate).add(1,"week"):n(this.endDate).add(1,"months"),this.isNextDateValid()}calculatePrevExpectedDate(){this.prevtExpectedDate="15min"===this.selectedInterval||"daily"===this.selectedInterval?n(this.endDate).subtract(1,"days"):"weekly"===this.selectedInterval?n(this.endDate).subtract(1,"week"):n(this.endDate).subtract(1,"months"),this.isPrevDateValid()}isNextDateValid(){this.disableNextButton=!!n(this.todayDate).isBefore(this.nextExpectedDate)}isPrevDateValid(){this.disablePrevButton=!!n(this.validStartDate).isAfter(this.prevtExpectedDate)}formatDate(t){if(null!=t&&void 0!==t&&""!==t){const a=t.split("-");return a[1]+"/"+a[2]+"/"+a[0]}return""}formatDate1(t){if(null!=t&&void 0!==t&&""!==t){const a=t.split("/");return a[2]+"-"+a[0]+"-"+a[1]}return""}disableDayBeforeInCalendar(){this.selectedDate=this.endDate=n().subtract(2,"days").format("MM/DD/YYYY"),this.todayDate=this.selectedDate;const t=n().subtract(1,"days"),a=JSON.parse(JSON.stringify(this.myDatePickerOptions));a.disableSince={year:t.year(),month:t.month()+1,day:t.date()},this.myDatePickerOptions=a,this.emitEndDate(),this.calculateNextExpectedDate(
1),this.calculatePrevExpectedDate(),this.updateDatePickerValue()}emitEndDate(){this.selectedEndDate.emit({selectedEndDate:this.endDate})}getCopyOfOptions(t){return JSON.parse(JSON.stringify(t))}updateDatePickerValue(){const t=this.selectedDate.split("/");this.datePickerValue={date:{year:+t[2],month:+t[0],day:+t[1]}}}onInputFieldChanged(t){if(!t.valid)return;const a=t.value.split("/"),l=new Date(a[2],a[0]-1,a[1]);this.setDate(l)}setDate(t){this.currentValue!==t&&(this.currentValue=t,this.endDate=((i,c="-")=>[i.getFullYear(),(i.getMonth()+1).toString().padStart(2,"0"),i.getDate().toString().padStart(2,"0")].join(c))(t),this.selectedDate=`${t.getMonth()+1}/${t.getDate()}/${t.getFullYear()}`,this.datePickerValue={date:{year:t.getFullYear(),month:t.getMonth()+1,day:t.getDate()}},this.calculateNextExpectedDate(),this.calculatePrevExpectedDate(),this.emitEndDate())}}return(i=c).\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["nve-end-date-specification"]],inputs:{selectedIntervalValue:"selectedIntervalValue",accountFeedEndDate:"accountFeedEndDate",disableDayBefore:"disableDayBefore",selectedMeter:"selectedMeter"},outputs:{selectedEndDate:"selectedEndDate"},decls:11,vars:10,consts:[[1,"clearfix","end-date-specification"],[1,"col-xs-12","no-padding-row-mobile"],[1,"date-picker-ending-label"],[3,"ngModel","editableDateField","options","ngModelChange","inputFieldChanged"],[1,"end-date-elem"],[1,"nv-btn","nv-btn-transparent",3,"disabled","click"],[1,"ion-ios-arrow-back"],[1,"ion-ios-arrow-forward"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"label",2),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"nve-date-picker",3),e.NdJ("ngModelChange",function(m){return a.datePickerValue=m})("inputFieldChanged",function(m){return a.onInputFieldChanged(m)}),e.qZA(),e.TgZ(6,"div",4)(7,"button",5),e.NdJ("click",function(){return a.previous()}),e._UZ(8,"span",6),e.qZA(),e.TgZ(9,"button",5),e.NdJ("click",function(){return a.next()}),e._UZ(10,"span",7),e.qZA()()()()),2&t&&(e.xp6(3),e.hij("",e.lcZ(4,8,"COMPONENTS.VIEWUSAGE.ENDDATESPECIFICATION.ENDING"),":"),e.xp6(2),e.Q6J("ngModel",a.datePickerValue)("editableDateField",!0)("options",a.myDatePickerOptions),e.xp6(2),e.Q2q("aria-label","select previous ",a.selectedInterval,""),e.Q6J("disabled",a.disablePrevButton),e.xp6(2),e.Q2q("aria-label","select next ",a.selectedInterval,""),e.Q6J("disabled",a.disableNextButton))},dependencies:[r.JJ,r.On,J.L,v.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}.end-date-specification[_ngcontent-%COMP%]   .end-date-elem[_ngcontent-%COMP%]{margin-right:5px;display:inline;
1max-width:200px;padding-right:0}.end-date-specification[_ngcontent-%COMP%]   .end-date-elem[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:first-child{padding-right:15px}@media (max-width: 767px){.end-date-specification[_ngcontent-%COMP%]   .end-date-elem[_ngcontent-%COMP%]{display:block;margin-top:10px}}.end-date-specification[_ngcontent-%COMP%]     .mydp{top:10px}.end-date-specification[_ngcontent-%COMP%]   .nv-btn[_ngcontent-%COMP%]{min-width:25px;color:#008dc9;padding:7px 12px;font-size:20px}@media (max-width: 1023px){.end-date-specification[_ngcontent-%COMP%]{margin-top:20px}.end-date-specification[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:first-child{padding-left:0}}@media (max-width: 767px){.end-date-specification[_ngcontent-%COMP%]   .date-picker-ending-label[_ngcontent-%COMP%]{display:block}.end-date-specification[_ngcontent-%COMP%]   .end-date-elem[_ngcontent-%COMP%]{display:inline!important}}.end-date-specification[_ngcontent-%COMP%]   .no-padding-row-mobile[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{padding-right:3px}"]}),c})();function G(i,c){if(1&i&&(e.TgZ(0,"div",15),e._UZ(1,"amCharts",16),e.qZA()),2&i){const s=e.oxw();e.Udp("width",100,"%")("height",600,"px"),e.xp6(1),e.Udp("width",50,"%")("height",600,"px"),e.Q6J("id",s.id)("options",s._chart)}}function W(i,c){1&i&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"COMPONENTS.VIEWUSAGE.CHARTS.PLEASECHANGEYOURREQUESTPARAMETER")))}function H(i,c){if(1&i&&(e.TgZ(0,"div",17),e._uU(1),e.ALo(2,"translate"),e._UZ(3,"br"),e.YNc(4,W,3,3,"span",18),e.qZA()),2&i){const s=e.oxw();e.Udp("width",100,"%")("height",600,"px"),e.xp6(1),e.hij(" ",e.lcZ(2,6,"COMPONENTS.VIEWUSAGE.CHARTS.NODATATODISPLAY"),""),e.xp6(3),e.Q6J("ngIf",!s.meterError)}}function B(i,c){1&i&&(e.TgZ(0,"div",17),e._uU(1),e.ALo(2,"translate"),e._UZ(3,"br"),e._uU(4),e.ALo(5,"translate"),e.qZA()),2&i&&(e.Udp("width",100,"%")("height",600,"px"),e.xp6(1),e.hij(" ",e.lcZ(2,6,"COMPONENTS.VIEWUSAGE.CHARTS.DATELESSERTHANTWOTEARS"),""),e.xp6(3),e.hij(" ",e.lcZ(5,8,"COMPONENTS.VIEWUSAGE.CHARTS.UPDATEENDDATE")," "))}function Q(i,c){1&i&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"COMPONENTS.VIEWUSAGE.CHARTS.HOURS")," "))}function q(i,c){1&i&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"COMPONENTS.VIEWUSAGE.CHARTS.MINUTES")," "))}function z(i,c){if(1&i&&(e.TgZ(0,"p",19),e._uU(1),e.ALo(2,"translate"),e.YNc(3,Q,3,3,"span",18),e.YNc(4,q,3,3,"span",18),e._UZ(5,"nve-tool-tip",20),e.qZA()),2&i){const s=e.oxw();e.xp6(1),e.AsE(" * ",e.lcZ(2,5,"COMPONENTS.VIEWUSAGE.CHARTS.MISSING_DATA")," ",s.missingDataLine," "),e.xp6(2),e.Q6J("ngIf","daily"===s.interval),e.xp6(1),e.Q6J("ngIf","15min"===s.interval),e.xp6(1),e.Q6J("isToolTip",!0)}}function j(i,c){1&i&&(e.TgZ(0,"div",17),e._UZ(1,"nve-spinner"),e.qZA())}function K(i,c){if(1&i){const s=e.EpF();e.TgZ(0,"a",23),e.NdJ("click",function(){e.CHM(s);const a=e.oxw(2);return e.KtG(a.netUsageDetailsToggle())}),e._UZ(1,"span",24),e._uU(2),e.ALo(3,"translate"),e.qZA()}2&i&&(e.xp6(2),e.hij(" ",e.lcZ(3,1,"COMPONENTS.VIEWUSAGE.CHARTS.HIDEENERGY")," "))}function $(i,c){if(1&i){const s=e.EpF();e.TgZ(0,"a",23),e.NdJ("click",function(){e.CHM(s);const a=e.oxw(2);return e.KtG(a.netUsageDetailsToggle())}),e._UZ(1,"span",25),e._uU(2),e.ALo(3,"translate"),e.qZA()}2&i&&(e.xp6(2),e.hij(" ",e.lcZ(3,1,"COMPONENTS.VIEWUSAGE.CHARTS.SHOWENERGY")," "))}function X(i,c){if(1&i&&(e.TgZ(0,"div",21),e.YNc(1,K,4,3,"a",22),e.YNc(2,$,4,3,"a",22),e.qZA()),2&i){const s=e.oxw();e.xp6(1),e.Q6J("ngIf",!s.hideDetailInNet),e.xp6(1),e.Q6J("ngIf",s.hideDetailInNet)}}let ee=(()=>{var i;class c{constructor(t,a,l,m,I,x,E){this.globalServiceErrorHandler=t,this.viewUsageService=a,this.userService=l,this.alertService=m,this.changeDetectorRef=I,this.translateService=x,this.platform=E,this.id="chartdiv-page",this.interval="weekly",this.fuelType="Electric",this.startDateLL="",this.chartBoolean=!0,this.isInValidDate=!0,this.loadingChart=!0,this.alert=new b.h,this.constants={},this.isNetUsage=!1,this.meterError=!1,this.resizedChart=!0,this.isLastDataNotAvailable=!1,this.chartType_actualDailyUsage="Daily Usage (kWh)",this.iosSelectTriggered=!1,this.accountFeedEndDate=void 0,this.accountFeedStartDate=void 0,this.accountFeedInterval=void 0,this.interval="weekly",this.alert.id="",this.alert.message="",this.alert.title=this.alertTitle,this.alert.type="error",this.hideDetailInNet=!1,this.chartType=this.chartType_actualDailyUsage,this.alertTitle=String(this.translateService.instant("COMPONENTS.VIEWUSAGE.CHARTS.ALERTTITLE")),this.chartTypeLabel=String(this.translateService.instant("COMPONENTS.VIEWUSAGE.CHARTS.ACTUALDAILYUSAG
1E")),this.selectedChartType=""}ngOnInit(){void 0!==this.accountFeedEndDate&&(this.endDate=this.accountFeedEndDate,this.interval=this.accountFeedInterval="monthly"),this.getTranslatedValues(),this.getChartData(),window.addEventListener("resize",()=>{this.resizedChart=!1,setTimeout(()=>{this.resizedChart=!0},0)})}ngAfterViewInit(){if(this.platform.is("ios")){document.querySelector(".btnpicker").addEventListener("click",()=>{this.iosSelectTriggered=!0});let t=document.querySelectorAll(".view-usage-chart-select");t[0]&&(t[0].addEventListener("click",()=>{this.iosSelectTriggered=!1,t[0].focus()}),t[0].addEventListener("focusin",()=>{this.iosSelectTriggered&&t[0].blur()})),t[1]&&(t[1].addEventListener("click",()=>{this.iosSelectTriggered=!1,t[1].focus()}),t[1].addEventListener("focusin",()=>{this.iosSelectTriggered&&t[1].blur()})),console.log(t)}}ngOnDestroy(){this.alertService.emitDeleteAlertEvent([g.J.VU001.id,g.J.VU002.id])}getTranslatedValues(){this.translateService.get(["ALERTS.CHARTS"]).subscribe(t=>{this.constants=t["ALERTS.CHARTS"]?t["ALERTS.CHARTS"]:{}})}getChartData(){void 0!==this.meterObject&&(this.endDate===new Date&&(this.endDate=new Date(this.endDate),(new Date).getUTCHours()-8<16&&(this.endDate=new Date(this.endDate.getTime()-864e5))),this.endDate=n(this.endDate).format("YYYY-MM-DD"),this.loadingChart=!0,this.payload={interval:this.interval,meterNumber:this.meterObject.meterNumber,endDate:this.endDate,isRequestForTile:!1,hideDetailInNet:this.hideDetailInNet,accountFeedStartDate:this.accountFeedStartDate,chartSelection:this.selectedChartType},this.viewUsageService.getChart(this.payload).then(l=>{l.chart?(void 0!==l.isLastDataNotAvailable&&(this.isLastDataNotAvailable=l.isLastDataNotAvailable),this.alertService.emitDeleteAlertEvent([g.J.VU001.id]),this.chartBoolean=!0,this._chart=l.chart,this.chartType=l.chartType,this.isNetUsage=-1!==this.chartType.indexOf("Net Usage (kWh)")||-1!==this.chartType.indexOf("Net value with Time of Use (kWh)")||-1!==this.chartType.indexOf("Storage"),this.chartTypeLabel=l.chartTypeLabel,this.processMissingData()):(this.chartBoolean=!1,this.alert.id=g.J.VU001.id,this.alert.message=this.constants.NODATATODISPLAY,this.alertService.emitNewAlertEvent(this.alert),this.chartType=this.chartType_actualDailyUsage,this.chartTypeLabel=String(this.translateService.instant("COMPONENTS.VIEWUSAGE.CHARTS.ACTUALDAILYUSAGE")),this.isNetUsage=!1),this.loadingChart=!1,this.accountFeedStartDate=void 0}).catch(l=>{this.globalServiceErrorHandler.showToast()}))}processMissingData(){var t,a;this.missingDataLine="";let l=null===(t=this._chart)||void 0===t||null===(a=t.legend)||void 0===a?void 0:a.data;const m="Missing Data",I=null==l?void 0:l.findIndex(x=>{var E;return null==x||null===(E=x.title)||void 0===E?void 0:E.startsWith(m)});I>-1&&(this.missingDataLine=l[I].title.replace(m,""),this._chart.legend.data=l.filter((x,E)=>E!==I))}selectedInterval(t){this.interval=t.selectedInterval,this.calculateStartDate(),this.checkValidDate()}selectedEndDate(t){this.endDate=t.selectedEndDate,this.endDateLL=n(this.endDate).format("LL"),this.calculateStartDate(),this.checkValidDate()}selectedMeterNumber(t){void 0!==t.selectedMeterNumber?(this.meterError=!1,this.meterObject=t.selectedMeterNumber,this.selectedChartType=t.selectedChartType,this.fuelType=this.meterObject.fuelType,this.checkValidDate()):(this.chartBoolean=!1,this.loadingChart=!1,this.meterError=!0,this.errorMessage=t.errMessage)}calculateStartDate(){this.startDateLL=void 0!==this.accountFeedStartDate?n(this.accountFeedStartDate).format("LL")+" - ":"15min"===this.interval||"daily"==this.interval?"":"weekly"===this.interval?n(this.endDate).subtract(6,"days").format("LL")+" - ":n(this.endDate).subtract(30,"days").format("LL")+" - ",this.changeDetectorRef.detectChanges()}checkValidDate(){n(new Date).diff(n(this.endDate),"years")<2?(this.isInValidDate=!1,this.alertService.emitDeleteAlertEvent([g.J.VU002.id]),this.getChartData()):(this.alert.id=g.J.VU002.id,this.alert.message=this.constants.STARTINGDATEGREATER,this.alertService.emitNewAlertEvent(this.alert),this.chartBoolean=!1,this.isInValidDate=!0,this.loadingChart=!1)}netUsageDetailsToggle(){this.hideDetailInNet=!this.hideDetailInNet,this.getChartData()}}return(i=c).\u0275fac=function(t){return new(t||i)(e.Y36(f.o),e.Y36(T.q),e.Y36(D.K),e.Y36(O.c),e.Y36(e.sBO),e.Y36(v.sK),e.Y36(P.t4))},i.\u0275cmp=e.Xpm({type:i,selectors:[["nve-charts"]],inputs:{accountFeedEndDate:["endDate","accountFeedEndDate"],accountFeedStartDate:["startDate","accountFeedStartDate"]},decls:23,vars:17,consts:[[1,"clearfix","row-in-mobile"],[1,"col-sm-12"],[1,"heading"],[1,"chartdiv-wrapper"],["id","chartdiv-page",3,"width","height",4,"ngIf"],["class","no-chart-data",3,"width","height",4,"ngIf"],["id","missing-data-info",4,"ngIf"],["class","no-chart-data",4,"ngIf"],[1,"controls-below-chart"],[1,"col-lg-6","col-md-6","col-sm-12"],[3,"accountFeedInterval","selectedFuelType","selectedInterval"],[3,"accountFeedEndDate","selectedMeter","selectedIntervalValue","disableDayBefore","selectedEndDate"],[1,"clearfix","row-in-mobile","meter-selection"],[3,"selectedStartValue","selectedEndDatelValue","selectedMeterNumber"],["class","col-md-3 col-sm-4 col-xs-12 small-padding-top right",4,"ngIf"],["id","chartdiv-page"],[3,"id","options"],[1,"n
1o-chart-data"],[4,"ngIf"],["id","missing-data-info"],["type","ToolTipModalComponent","path","/tooltips/missing-usage-data.html",3,"isToolTip"],[1,"col-md-3","col-sm-4","col-xs-12","small-padding-top","right"],[3,"click",4,"ngIf"],[3,"click"],[1,"ion-eye-disabled"],[1,"ion-eye"]],template:function(t,a){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"h1",2),e._uU(3),e.qZA(),e.TgZ(4,"p"),e._uU(5),e.qZA()()(),e.TgZ(6,"div",0)(7,"div",1)(8,"div",3),e.YNc(9,G,2,10,"div",4),e.YNc(10,H,5,8,"div",5),e.YNc(11,B,6,10,"div",5),e.YNc(12,z,6,7,"p",6),e.YNc(13,j,2,0,"div",7),e.qZA()()(),e.TgZ(14,"div",8)(15,"div",0)(16,"div",9)(17,"nve-interval-specification",10),e.NdJ("selectedInterval",function(m){return a.selectedInterval(m)}),e.qZA()(),e.TgZ(18,"div",9)(19,"nve-end-date-specification",11),e.NdJ("selectedEndDate",function(m){return a.selectedEndDate(m)}),e.qZA()()(),e.TgZ(20,"div",12)(21,"nve-meter-selection",13),e.NdJ("selectedMeterNumber",function(m){return a.selectedMeterNumber(m)}),e.qZA(),e.YNc(22,X,3,2,"div",14),e.qZA()()),2&t&&(e.xp6(3),e.Oqu(a.chartTypeLabel),e.xp6(2),e.AsE("",a.startDateLL,"",a.endDateLL,""),e.xp6(4),e.Q6J("ngIf",a.chartBoolean&&!a.loadingChart&&a.resizedChart),e.xp6(1),e.Q6J("ngIf",!a.chartBoolean&&!a.loadingChart&&(!a.isInValidDate||a.meterError)),e.xp6(1),e.Q6J("ngIf",!a.chartBoolean&&a.isInValidDate&&!a.loadingChart),e.xp6(1),e.Q6J("ngIf",a.chartBoolean&&!a.loadingChart&&a.missingDataLine),e.xp6(1),e.Q6J("ngIf",a.loadingChart),e.xp6(4),e.Q6J("accountFeedInterval",a.accountFeedInterval)("selectedFuelType",a.fuelType),e.xp6(2),e.Q6J("accountFeedEndDate",a.accountFeedEndDate)("selectedMeter",a.meterObject)("selectedIntervalValue",a.interval)("disableDayBefore",a.isLastDataNotAvailable),e.xp6(2),e.Q6J("selectedStartValue",a.startDateLL)("selectedEndDatelValue",a.endDateLL),e.xp6(1),e.Q6J("ngIf",a.isNetUsage))},dependencies:[u.O5,M.E,A.$,N.I,L,U,R,v.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}.chartdiv-wrapper[_ngcontent-%COMP%]{padding:20px 20px 10px;border:1px solid #cccccc;width:100%;margin-bottom:15px}.chartdiv-wrapper[_ngcontent-%COMP%]   .no-chart-data[_ngcontent-%COMP%]{text-align:center;padding-top:250px;padding-bottom:250px;font-size:18px;min-height:600px}@media (max-width: 767px){.chartdiv-wrapper[_ngcontent-%COMP%]{padding:5px;font-size:.5em}}#missing-data-info[_ngcontent-%COMP%]{font-size:.9em}@media (max-width: 767px){#missing-data-info[_ngcontent-%COMP%]{font-size:1.9em}}.controls-below-chart[_ngcontent-%COMP%], .controls-below-chart[_ngcontent-%COMP%]   .interval-specification[_ngcontent-%COMP%]{margin-top:20px}.controls-below-chart[_ngcontent-%COMP%]   .viewLabel[_ngcontent-%COMP%]{color:#000;font-size:16px;font-weight:400;line-height:normal;margin-bottom:15px}.meter-selection[_ngcontent-%COMP%]{margin-top:20px}"]}),c})()},92697:(S,y,h)=>{h.d(y,{E:()=>b});var n=h(55062);let b=(()=>{var O;class D{constructor(){this.checkForBrowser()}
1ngOnChanges(g){g.id&&(this.id=g.id.currentValue),g.options&&g.options.currentValue&&(this.options=g.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(g){if(AmCharts.isReady)this.chart=AmCharts.makeChart(this.id,this.options),this.chart.legendHover&&this.chart.legend&&this.addLegendHoverText(),g&&this.chart.validateNow(!0,!1);else try{console.log("AmChartsDirective","Invoking handleLoad"),AmCharts.handleLoad()}catch(e){console.log("AmChartsDirective","Error handling for handleLoad",JSON.stringify(e))}finally{this.chart=AmCharts.makeChart(this.id,this.options),this.chart&&this.chart.legendHover&&this.chart.legend&&this.addLegendHoverText(),this.chart&&g&&this.chart.validateNow(!0,!1)}}ngOnDestroy(){this.chart&&this.chart.clear()}addLegendHoverText(){var g=this;this.chart.legend.balloon={item:!1,wrapper:null,container:null,mousemove:this.chart.handleMouseMove,titles:{}},this.chart.addListener("drawn",e=>{let f=document.getElementsByClassName("amcharts-legend-div")[0];f.classList.add("overflow-hide"),e.chart.legend.balloon.wrapper=document.createElement("div"),e.chart.legend.balloon.wrapper.className="amcharts-legend-balloon",e.chart.legend.balloon.container=document.createElement("div"),e.chart.legend.balloon.wrapper.appendChild(e.chart.legend.balloon.container),f.appendChild(e.chart.legend.balloon.wrapper);let v=e.chart.graphs.length;for(let M=0;M<v;M++){var P=e.chart.graphs[M];e.chart.legend.balloon.titles[P.id]=P.legendHoverText}}),this.chart.legend.addListener("rollOverItem",e=>{e.chart.legend.balloon.item=e.dataItem;let f=g.chart.legend.balloon,v=f.titles[e.dataItem.id]||e.dataItem.text,P=document.getElementsByClassName("amcharts-legend-div")[0].offsetWidth;if(v&&""!=v.trim()){let u,M;f.wrapper=document.getElementsByClassName("amcharts-legend-balloon")[0],f.container=f.wrapper.firstChild,f.container.style.borderColor=e.dataItem.lineColorR||e.dataItem.color,f.container.innerHTML=v,f.wrapper.className="amcharts-legend-balloon active-balloon",g.isEdge?(u=e.event.x-100,M=e.event.offsetY):g.isFirefox?(u=e.event.layerX,M=e.event.layerY):g.isIE?(u=e.event.x,M=e.event.y):(u=e.event.offsetX,M=e.event.offsetY),f.wrapper.style.left=u+"px",f.wrapper.style.top=M-f.container.offsetHeight-10+"px",document.getElementsByClassName("amcharts-legend-balloon")[0].childNodes[0].style.left=u<75?"0":u+75>P?"-100%":"-50%"}}),this.chart.legend.addListener("rollOutItem",e=>{e.chart.legend.balloon.item=!1,e.chart.legend.balloon.wrapper.className="amcharts-legend-balloon"})}}return(O=D).\u0275fac=function(g){return new(g||O)},O.\u0275dir=n.lG2({type:O,selectors:[["amCharts"]],inputs:{id:"id",options:"options"},features:[n.TTD]}),D})()}}]);

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.