PageSourceSearch

https://blackhillsenergy.com/my-account/chunk-HX5FJVAD.js

js blackhillsenergy.com collected 2026-10-02 14:43:53 UTC 14,159 bytes, 1 lines download raw bytes

1import"./chunk-6POBTKC7.js";import{A as S,B as j,C as i,Cc as N,D as o,E as P,F as W,G as Y,Gd as R,Ge as $,H as B,I as L,Id as Q,Ie as Z,J as c,P as q,Q as n,R as M,S as g,Sc as J,Uc as K,Zb as _,_b as z,af as ee,ee as X,g as U,gc as v,ge as E,i as b,j as F,lf as te,nd as T,o as u,q as l,r as p,rc as f,s as D,t as I,va as y,w as d,wa as A,wd as G,x as m,y as h,ya as V,z as x}from"./chunk-OP7R46C4.js";import"./chunk-TSRGIXR5.js";function se(e,a){if(e&1&&(i(0,"div",9),n(1),o()),e&2){let t=c(4).$implicit;u(),g(" ",t.premiseInfoDetails.premiseList.length," service addresses ")}}function de(e,a){if(e&1&&(i(0,"div",9),n(1),o()),e&2){let t=a.$implicit;u(),g(" ",t," ")}}function me(e,a){if(e&1&&x(0,de,2,1,"div",9,h),e&2){let t=a.$implicit;S(t.address)}}function ue(e,a){if(e&1&&x(0,me,2,0,null,null,h),e&2){let t=c(4).$implicit;S(t.premiseInfoDetails.premiseList)}}function pe(e,a){if(e&1&&d(0,se,2,1,"div",9)(1,ue,2,0),e&2){let t=c(3).$implicit;m(t.premiseInfoDetails.premiseList.length>1?0:1)}}function _e(e,a){e&1&&(i(0,"div",9),n(1," No service address "),o())}function ve(e,a){}function fe(e,a){e&1&&(i(0,"div",11),n(1," ACCOUNT CLOSED "),o())}function Ce(e,a){e&1&&(i(0,"div",11),n(1," ACCOUNT OFFLINE "),o(),i(2,"div",11),n(3," To access, "),i(4,"bhe-customer-service-phone-link",12),n(5,"call "),P(6,"bhe-customer-service-phone-number"),n(7,"."),o()())}function he(e,a){if(e&1&&d(0,fe,2,0,"div",11)(1,Ce,8,0),e&2){let t=c(3).$implicit;m(t.isOffline?1:0)}}function xe(e,a){if(e&1){let t=B();i(0,"div",5),L("click",function(){b(t);let s=c(2).$implicit,C=c(2);return F(C.removeAccountSelected(s.accountId))}),i(1,"div",6)(2,"div",7)(3,"div",8),n(4),o()(),i(5,"div",7),d(6,pe,2,1)(7,_e,2,0,"div",9),o(),i(8,"div",10),d(9,ve,0,0)(10,he,2,1),o()()()}if(e&2){let t=c(2).$implicit;q(t.isOffline?"info-list":"click-list"),u(4),M(t.accountId),u(2),m(t.premiseInfoDetails&&t.premiseInfoDetails.premiseList?6:7),u(3),m(t.accountInfoDetails.currentAmountDue!==0||!t.isOffline&&!t.isClosed?9:10)}}function Se(e,a){if(e&1&&(i(0,"div",13)(1,"div",6)(2,"div",7)(3,"div",8),n(4),o()(),i(5,"div",7)(6,"div",9),n(7,"ACCOUNT RESTRICTED"),o()(),i(8,"div",10)(9,"div",11),n(10," To access, "),i(11,"bhe-customer-service-phone-link",12),n(12,"call "),P(13,"bhe-customer-service-phone-number"),n(14,"."),o()()()()()),e&2){let t=c(4).$implicit;u(4),M(t.accountId)}}function ge(e,a){if(e&1&&(i(0,"div",13)(1,"div",6)(2,"div",7)(3,"div",8),n(4),o()(),i(5,"div",7)(6,"div",9),n(7,"ACCOUNT ERROR"),o()(),i(8,"div",10)(9,"div",11),n(10," This account number couldn't be found. "),i(11,"bhe-customer-service-phone-link",12),n(12,"Call "),P(13,"bhe-customer-service-phone-number"),o(),n(14," with any questions regarding this account. "),o()()()()),e&2){let t=c(4).$implicit;u(4),M(t.accountId)}}function Ie(e,a){if(e&1&&d(0,Se,15,1,"div",13)(1,ge,15,1,"div",13),e&2){let t=c(3).$implicit;m(t&&t.isRestricted?0:1)}}function ye(e,a){if(e&1&&d(0,Ie,2,1),e&2){let t=c(2).$implicit,r=c(2);m(r.accountLoadFailed.has(t.accountId)?0:-1)}}function Ae(e,a){if(e&1&&d(0,xe,11,5,"div",4)(1,ye,1,1),e&2){let t=c().$implicit;m(t!=null&&t.accountInfoDetails&&!t.isRestricted?0:1)}}function Te(e,a){if(e&1&&d(0,Ae,2,1),e&2){let t=a.$implicit,r=c(2);m(r.filteredAccounts.has(t.accountId)?0:-1)}}function Re(e,a){if(e&1&&x(0,Te,1,1,null,null,h),e&2){let t=c();S(t.accountSelectionInfo)}}function Ee(e,a){e&1&&(i(0,"div",14),n(1," Error loading account information "),o())}function ke(e,a){if(e&1&&d(0,Ee,2,0,"div",14),e&2){let t=c();m(!t.isLoading&&t.nbrValidAccounts===0?0:-1)}}var ne=(()=>{class e{constructor(t,r,s,C){this.router=t,this.headerService=r,this.userService=s,this.cpState=C,this.accountLoadFailed=new Set,this.accountSelectionInfo=[],this.filteredAccounts=new Set,this.nbrValidAccounts=0,this.isLoading=!1,this.accountLoadFailed=new Set,this.filteredAccounts=new Set(this.cpState.userProfile.accounts.map(w=>w.accountNumber??"")),this.loadUserAccounts(),this.headerService.setTheme(v.orange),this.headerService.setTitle("Your accounts"),this.headerService.setType(_.close),this.headerService.setCloseAction(()=>{this.router.navigateByUrl("/account-selector")})}removeAccountSelected(t){this.cpState.accountId=t,this.router.navigateByUrl("/user/remove-account/confirm")}loadUserAccounts(){this.isLoading=!0,this.userService.getUserAccounts().subscribe({next:t=>{this.isLoading=!1,t?.length&&t[0]&&(this.accountSelectionInfo=t,this.accountLoadFailed=new Set,this.filteredAccounts=new Set(this.accountSelectionInfo.map(r=>r.accountId)),this.accountSelectionInfo.forEach(r=>
1{r&&!r.accountInfoDetails&&this.accountLoadFailed.add(r.accountId)}),this.nbrValidAccounts=this.accountSelectionInfo.length)},error:()=>{this.router.navigateByUrl("/system-unavailable")}})}static{this.\u0275fac=function(r){return new(r||e)(l(y),l(f),l($),l(E))}}static{this.\u0275cmp=p({type:e,selectors:[["app-remove-account"]],standalone:!1,decls:7,vars:2,consts:[[3,"bheSpinner"],[1,"container-md"],[1,"page-header"],[1,"content-container"],[3,"class"],[3,"click"],[1,"list-column-container"],[1,"list-label"],[1,"list-item-header"],[1,"list-subtitle"],[1,"list-value"],[1,"list-caption"],[1,"nowrap"],[1,"info-list"],[1,"section-header"]],template:function(r,s){r&1&&(i(0,"section",0)(1,"div",1)(2,"div",2),n(3," Which account would you like to remove? "),o(),i(4,"div",3),d(5,Re,2,0)(6,ke,1,1),o()()()),r&2&&(j("bheSpinner",s.isLoading),u(5),m(!s.isLoading&&s.nbrValidAccounts?5:6))},dependencies:[N,J,K],encapsulation:2})}}return e})();function we(e,a){if(e&1&&n(0),e&2){let t=c(4);g(" ",t.accountPremises.premiseList.length," service addresses ")}}function be(e,a){if(e&1&&n(0),e&2){let t=a.$implicit;g(" ",t," ")}}function Fe(e,a){if(e&1&&x(0,be,1,1,null,null,h),e&2){let t=a.$implicit;S(t.address)}}function Le(e,a){if(e&1&&x(0,Fe,2,0,null,null,h),e&2){let t=c(4);S(t.accountPremises.premiseList)}}function Ue(e,a){if(e&1&&(i(0,"div",8),d(1,we,1,1)(2,Le,2,0),o()),e&2){let t=c(3);u(),m(t.accountPremises.premiseList.length&&t.accountPremises.premiseList.length>1?1:2)}}function De(e,a){if(e&1&&(i(0,"div",3)(1,"div",7),n(2),o(),d(3,Ue,3,1,"div",8),o()),e&2){let t=c(2);u(2),g(" ",t.accountId," "),u(),m(t.accountPremises?3:-1)}}function je(e,a){if(e&1){let t=B();i(0,"div",1)(1,"div",2),n(2," Are you sure you'd like to remove this account? "),o(),d(3,De,4,2,"div",3),i(4,"div",3)(5,"div",4),L("click",function(){b(t);let s=c();return F(s.confirmRemoveAccount())}),i(6,"div",5)(7,"div",6)(8,"b"),n(9,"Yes,"),o(),n(10," remove this account. "),o()()(),i(11,"div",4),L("click",function(){b(t);let s=c();return F(s.abortRemoveAccount())}),i(12,"div",5)(13,"div",6)(14,"b"),n(15,"No,"),o(),n(16," don't remove this account. "),o()()()()()}if(e&2){let t=c();u(3),m(t.accountId?3:-1)}}var oe=(()=>{class e{constructor(t,r,s,C,w){this.router=t,this.headerService=r,this.premiseService=s,this.userService=C,this.cpState=w,this.accountId="",this.accountPremises=null,this.isLoading=!1,this.cpState.accountId=z.zeroPadAccountNumber(this.cpState.accountId)??null,this.accountId=this.cpState.accountId,this.getAccountPremises(),this.headerService.setTheme(v.orange),this.headerService.setTitle("Remove account"),this.headerService.setType(_.close),this.headerService.setCloseAction(()=>{this.cpState.accountId=null,this.router.navigateByUrl("/user/remove-account")})}getAccountPremises(){this.isLoading=!0,this.premiseService.getAccountPremises(this.accountId).subscribe({next:t=>{this.accountPremises=t,this.isLoading=!1},error:()=>{this.accountPremises=null,this.isLoading=!1}})}abortRemoveAccount(){this.cpState.accountId=null,this.router.navigateByUrl("/account-selector")}confirmRemoveAccount(){this.userService.deleteUserAccount(this.accountId).subscribe({next:()=>{this.userService.getUserProfile().subscribe({next:t=>{this.cpState.accountId=null,t?(this.cpState.userProfile=t,this.userService.fetchUserAccounts(!0),this.router.navigateByUrl("/account-selector")):(this.cpState.userProfile=null,this.router.navigateByUrl("/error"))},error:()=>{this.cpState.accountId=null,this.router.navigateByUrl("/system-unavailable")}})},error:()=>{this.cpState.accountId=null,this.router.navigateByUrl("/error")}})}static{this.\u0275fac=function(r){return new(r||e)(l(y),l(f),l(Z),l($),l(E))}}static{this.\u0275cmp=p({type:e,selectors:[["app-remove-account-confirm"]],standalone:!1,decls:2,vars:2,consts:[[3,"bheSpinner"],[1,"container-sm"],[1,"page-header"],[1,"content-container"],[1,"click-list",3,"click"],[1,"list-label"],[1,"list-title"],[1,"header-text"],[1,"list-subtitle"]],template:function(r,s){r&1&&(i(0,"section",0),d(1,je,17,1,"div",1),o()),r&2&&(j("bheSpinner",s.isLoading),u(),m(s.isLoading?-1:1))},dependencies:[N],encapsulation:2})}}return e})();var re=(()=>{class e extends T{constructor(t,r){super(),this.headerService=t,r.regForwardUrl="/programs/apo",this.headerService.setTheme(v.orange),this.headerService.setTitle("Sign up"),this.headerService.setType(_.close),this.headerService.setCloseAction(()=>{r.clearAllWorkflowState(),window.location.href="/"})}static{this.\u0275fac=function(r){return new(r||e)(l(f),l(R))}}static{this.\u0275cmp=p({type:e,selectors:[["app-apo-register"]],standalone:!1,features:[I],decls:19,vars:0,consts:[[1,"container-sm"],[1,"page-header"],[1,"paragraph-container"],[1,"content-container"],["routerLink","/login",1,"click-list"],[1,"list-label"],[1,"list-item-header"],[1,"list-subtitle"],["routerLink","/user/registration",1,"click-list"]],template:function(r,s){r&1&&(i(0,"section")(1,"div",0)(2,"div",1),n(3," Let's get you signed up for Annual Price Option. "),o(),i(4,"div",2),n(5," To enroll in APO, we'll need to link the program to your natural gas account. If you have an online account, you can log in to enroll. If you don't have an online account, you can sign up and enroll. "),o(),i(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6),n(10," Log in "),o(),i(11,"div",7),n(12," I have an online account. "),o()()(),i(13,"div",8)(14,"div",5)(15,"div",6),n(16," Register "),o(),i(17,"div",7),n(18," I need to sign up for an online account before I join. "),o()()()()()())},dependencies:[A],encapsulation:2})}}return e})();var ae=(()=>{class e extends T{constructor(t,r){super(),this.headerService=t,r.regForwardUrl="/programs/green-forward/address",this.headerService.setTheme(v.orange),this.headerService.setTitle("Sign up"),this.headerService.setType(_.close),this.headerService.setCloseAction(()=>{r.clearAllWorkflowState(),window.location.href="/"})}static{this.\u0275fac=function(r){return new(r||e)(l(f),l(R))}}static{this.\u0275cmp=p({type:e,selectors:[["app-gf-register"]],standalone:!1,features:[I],decls:19,vars:0,consts:[[1,"container-sm"],[1,"page-header"],[1,"paragraph-container"],[1,"content-container"],["routerLink","/login",1,"click-list"],[1,"list-label"],[1,"list-item-header"],[1,"list-subtitle"],["routerLink","/user/registration",1,"click-list"]],template:function(r,s){r&1&&(i(0,"section")(1,"div",0)(2,"div",1),n(3," Let's get you signed up for Green Forward. "),o(),i(4,"div",2),n(5," To enroll in Green Forward, we'll need to link the program to your natural gas account. If you have an online account, you can log in to enroll. If you don't have an online account, you can sign up and enroll. "),o(),i(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6),n(10," Log in "),o(),i(11,"div",7),n(12," I have an online account. "),o()()(),i(13,"div",8)(14,"div",5)(15,"div",6),n(16," Register "),o(),i(17,"div",7),n(18," I need to sign up for an online account before I join. "),o()()()()()())},dependencies:[A],encapsulation:2})}}return e})();var ce=(()=>{class e extends T{constructor(t,r,s,C,w){super(),this.headerService=t,this.router=r,this.programsState=s,this.cpState=C,C.regForwardUrl=X.serviceGuardStartPg,this.headerService.setTheme(v.orange),this.headerService.setTitle("Sign up"),this.headerService.setType(_.close),this.headerService.setCloseAction(()=>{w.clearAllWorkflowState(),window.location.href="/"})}static{this.\u0275fac=function(r){return new(r||e)(l(f),l(y),l(ee),l(E),l(R))}}static{this.\u0275cmp=p({type:e,selectors:[["app-sg-register"]],standalone:!1,features:[I],decls:27,vars:0,consts:[[1,"container-sm"],[1,"page-header"],[1,"content-container"],["routerLink","/login",1,"click-list"],[1,"list-label"],[1,"list-item-header"],[1,"list-subtitle"],["routerLink","/service-guard/start-existing",1,"click-list"],["routerLink","/service-guard/start-new",1,"click-list"]],template:function(r,s){r&1&&(i(0,"section"),W(1),i(2,"div",0)(3,"div",1),n(4," Let's get you signed up for Service Guard "),o(),i(5,"div",2),n(6," To enroll in Service Guard, we'll need to link the program to your natural gas account if you have one. If you have an existing online profile you can log in to enroll. If you don't have an online profile, you can create one to enroll or start you Service Guard plan as a brand new customer. "),o()(),Y(),i(7,"div",0)(8,"div",2)(9,"div",3)(10,"div",4)(11,"div",5),n(12," Existing customer - Log in "),o(),i(13,"div",6),n(14," I am a Black Hills Energy customer and have an online profile. "),o()()(),i(15,"div",7)(16,"div",4)(17,"div",5),n(18," Existing customer - Need to create an online profile "),o(),i(19,"div",6),n(20," I am a Black Hills Energy customer but need to sign up for an online profile before I join. "),o()()(),i(21,"div",8)(22,"div",4)(23,"div",5),n(24," New customer - Need to create an online profile "),o(),i(25,"div",6),n(26," I am brand new to Black Hills Energy. "),o()()()()()())},dependencies:[A],encapsulation:2})}}return e})();var Pe=[{path:"registration/apo",component:re},{path:"registration/green-forward",component:ae},{path:"registration/service-guard",component:ce},{path:"remove-account",component:ne,canActivate:[G]},{path:"remove-account/confirm",component:oe,canActivate:[G]},{path:"",loadChildren:()=>Q}],le=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=D({type:e})}static{this.\u0275inj=U({imports:[V.forChild(Pe),V]})}}return e})();var Ft=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=D({type:e})}static{this.\u0275inj=U({imports:[te,le]})}}return e})();export{Ft as CpUserModule};

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.