1import{a as Z}from"./chunk-6BNV67EF.js";import{a as ce}from"./chunk-EMNRMHET.js";import{a as k}from"./chunk-A5EUQQC7.js";import{$ as h,Ad as $,Ba as a,Ca as p,Cd as _,Da as u,Fe as pe,Gd as z,Ha as S,Hc as V,Ia as C,Ja as d,Jd as K,Kd as X,Nd as J,Od as Q,S as f,Sd as ee,Td as te,Ua as c,Ud as ie,W as L,Wa as x,X as y,Xa as P,Ya as E,Yd as ne,_b as b,aa as v,ac as O,bf as le,db as A,de as re,ec as w,ee as oe,ge as ae,hc as U,jc as N,ma as o,na as g,nc as R,oe as se,pc as F,pe as me,rb as D,rd as G,sb as H,sc as j,ta as l,tb as T,uc as B,va as r,wd as Y,xc as W,yc as q,z as I,za as M}from"./chunk-UKO5M5N4.js";var ve=()=>["/aqualerter-map"];function Se(t,n){if(t&1&&(a(0,"section",3)(1,"alert",22)(2,"div",23)(3,"div",24),u(4,"fa-icon",25),p(),a(5,"div",26)(6,"p",27),c(7," We are aware of an issue affecting customers in your area, to get the latest information go to your personalised AquAlerter map. "),p()(),a(8,"div",28)(9,"button",29),c(10," AquAlerter Map "),p()()()()()),t&2){let i=d();o(4),r("icon",i.faMapMarker),o(5),r("routerLink",A(3,ve))("pageScrollDuration",100)}}function Ce(t,n){if(t&1&&u(0,"app-campaign",30),t&2){let i=n.$implicit;r("campaign",i)}}function be(t,n){t&1&&(a(0,"span"),c(1," (moved out) "),p())}function _e(t,n){if(t&1&&(a(0,"div")(1,"div",31)(2,"div",9)(3,"div",32)(4,"h5",33),c(5,"Customer Reference"),p(),c(6),p(),a(7,"div",32)(8,"h5",33),c(9,"Supply Address"),p(),c(10),l(11,be,2,0,"span",34),p()()()()),t&2){let i=d();M("card ",i.company==="MUA"?"border-secondary-light":"border-primary"," border"),o(6),P(" ",i.customerPropertyLinks[0]==null?null:i.customerPropertyLinks[0].customerReference,"-",i.customer==null?null:i.customer.checkDigit," "),o(4),x(" ",i.customerPropertyLinks[0]==null?null:i.customerPropertyLinks[0].address," "),o(),r("ngIf",!(i.customerPropertyLinks[0]!=null&&i.customerPropertyLinks[0].propertyReference))}}function ke(t,n){t&1&&(a(0,"span"),c(1," (old account)"),p())}function Ie(t,n){if(t&1&&(a(0,"option",38),c(1),l(2,ke,2,0,"span",34),p()),t&2){let i=n.$implicit,s=n.index,m=d(2);r("value",s)("selected",m.selectedPropertyIndex===s)("ngClass",i.active?"":"text-muted"),o(),E(" Address: ",i==null?null:i.address," - Customer Reference: ",i==null?null:i.customerReference,"-",m.customer==null?null:m.customer.checkDigit," "),o(),r("ngIf",!(i!=null&&i.propertyReference))}}function Le(t,n){if(t&1){let i=S();a(0,"form",35)(1,"select",36),C("change",function(m){h(i);let e=d();return v(e.onChangeCustomerProperty(m.target.value))}),l(2,Ie,3,7,"option",37),p()()}if(t&2){let i=d();o(2),r("ngForOf",i.customerPropertyLinks)}}function Me(t,n){t&1&&u(0,"i",43)}function xe(t,n){t&1&&u(0,"i",44)}function Pe(t,n){t&1&&(a(0,"span"),c(1,"Water usage"),p())}function Ee(t,n){t&1&&(a(0,"span"),c(1,"Your supply"),p())}function Ae(t,n){if(t&1&&(a(0,"div",39)(1,"div",11),l(2,Me,1,0,"i",40)(3,xe,1,0,"i",41),a(4,"a",42),l(5,Pe,2,0,"span",34)(6,Ee,2,0,"span",34),p()()()),t&2){let i=d();o(),r("ngClass",i.company==="LMH"?"bg-dark":i.company==="MUA"?"bg-secondary-light":i.company==="ICOSA"?"btn-active":"btn-primary"),o(),r("ngIf",i.company!=="LMH"),o(),r("ngIf",i.company==="LMH"),o(),r("ngClass",i.company==="LMH"?"btn-active":"btn-dark")("routerLink",(i.customer==null?null:i.customer.supplyType)==="MEASURED"?"/usage":"/supply")("pageScrollDuration",100),o(),r("ngIf",(i.customer==null?null:i.customer.supplyType)==="MEASURED"),o(),r("ngIf",(i.customer==null?null:i.customer.supplyType)!=="MEASURED")}}function De(t,n){if(t&1&&(a(0,"div",39)(1,"div",11),u(2,"i",45),a(3,"a",46),c(4,"Provide reading"),p()()()),t&2){let i=d();o(),r("ngClass",i.company==="LMH"?"bg-dark":i.company==="MUA"?"bg-secondary-light":i.company==="ICOSA"?"btn-active":"btn-primary"),o(2),r("ngClass",i.company==="LMH"?"btn-active":"btn-dark")("pageScrollDuration",100)}}function He(t,n){if(t&1&&u(0,"app-campaign",30),t&2){let i=n.$implicit;r("campaign",i)}}function Te(t,n){if(t&1){let i=S();a(0,"app-dynamic-form",47),C("status",function(m){h(i);let e=d();return v(e.getMessage(m))}),p()}}var de=(()=>{let n=class n{constructor(s,m,e,fe,ye,he){this.customerService=s,this.customerPropertyLinkService=m,this.userService=e,this.analyticsService=fe,this.propertyService=ye,this.getIncidentsService=he,this.faPiggyBank=j,this.faMoneyBill=w,this.faTachometerAlt=q,this.faBoxOpen=N,this.faWallet=R,this.faChartBar=U,this.faUserCog=F,this.faThumbsUp=V,this.faHome=B,this.faComments=O,this.faMapMarker=W,this.campaigns=[],this.campaignstop=[],this.company=b.company,this.application=b.application}ngOnInit(){if(this.analyticsService.pageView("home","./home","home page"),this.customerSubscription=this.customerService.customerChange.subscribe(s=>{this.customer=s,this.alerts=this.customerService.getAlerts("home"),this.campaigns=this.customerService.getCampaigns("home"),this.campaignstop=this.customerService.getCampaigns("home-top")}),this.customer=this.customerService.getCustomer(),this.alerts=this.customerService.getAlerts("home"),this.campaigns=this.customerService.getCampaigns("home"),this.campaignstop=this.customerService.getCampaigns("home-top"),this.userSubscription=this.userService.userChange.subscribe(s=>{this.user=s}),this.user=this.userService.getUser(),this.customerPropertyLinkSubscription=this.customerPropertyLinkService.customerPropertyLinksChange.subscribe(s=>{this.customerPropertyLinks=s;let m=-1;for(let e of this.customerPropertyLinks)m++,e.active&&(this.selectedPropertyIndex=m)}),this.customerPropertyLinks=this.customerPropertyLinkService.getCustomerPropertyLinks(),this.customerPropertyLinks||this.customerPropertyLinkService.retryCustomerPropertyLink(),this.customerPropertyLinks){let s=-1;for(let m of this.customerPropertyLinks)s++,m.active&&(this.selectedPropertyIndex=s)}this.propertySubscription=this.propertyService.propertyChange.subscribe(s=>{this.property=s,this.propertyIncidents===void 0&&this.company==="SEW"&&this.application==="MYACCOUNT"&&(this.incidentSubscription=this.getIncidentsService.getIncidents(this.property.propertyReference).subscribe(m=>{this.propertyIncidents=m.data,this.propertyIncidents!==void 0&&this.propertyIncidents.incidents.length>1&&(this.showIncidentBanner=this.propertyIncidents.incidents.some(e=>e.incidentType==="INTERRUPTION"))}))})}getMessage(s){this.shownDataCapture=s}ngOnDestroy(){this.customerSubscription.unsubscribe(),this.userSubscription.unsubscribe(),this.customerPropertyLinkSubscription.unsubscribe(),this.propertyIncidents!==void 0&&this.company==="SEW"&&this.application==="MYACCOUNT"&&this.incidentSubscription.unsubscribe(),this.propertySubscription.unsubscribe()}onChangeCustomerProperty(s){this.customerPropertyLinkService.setActive(s),this.selectedPropertyIndex=s,this.propertyIncidents=void 0}};n.\u0275fac=function(m){return new(m||n)(g(K),g(z),g(X),g(J),g(Q),g(Z))},n.\u0275cmp=L({type:n,selectors:[["app-home"]],decls:40,vars:27,consts:[[3,"alerts","showWelcome"],["class","container",4,"ngIf"],[3,"campaign",4,"ngFor","ngForOf"],[1,"container"],[3,"class",4,"ngIf"],["class","form",4,"ngIf"],[3,"showMainSection"],[1,"quick-links","mt-8","mt-md-10","mb-4","mb-md-8"],[1,"text-center"],[1,"row"],[1,"q-link","mt-4",3,"ngClass"],[1,"q-link-body","d-flex","flex-column","justify-content-center","h-100","text-center",3,"ngClass"],[1,"fal","fa-file-invoice","text-light"],["routerLink","../payments-and-bills","href","#topnav","pageScroll","",1,"nav-link","nav-item","btn","mt-6",3,"ngClass","pageScrollDuration"],["class","col-xl-4 col-md-6 q-link mt-4",4,"ngIf"],[1,"fal","fa-home","text-light"],["routerLink","../moving-home","href","#topnav","pageScroll","",1,"nav-link","nav-item","btn","mt-6",3,"ngClass","pageScrollDuration"],[1,"fal","fa-user-cog","text-light"],["routerLink","../preferences","href","#topnav","pageScroll","",1,"nav-link","nav-item","btn","mt-6",3,"ngClass","pageScrollDuration"],[1,"fal","fa-comments","text-light"],["routerLink","../contact-us","href","#topnav","pageScroll","",1,"nav-link","nav-item","btn","mt-6",3,"ngClass","pageScrollDuration"],[3,"status",4,"ngIf"],["type","warning mt-4","role","alert"],[1,"row","vertical-align"],[1,"col-lg-2",".d-none",".d-sm-block","text-center","px-5","py-2","align-self-center"],["size","4x",3,"icon"],[1,"col-lg-7","text-center","text-lg-left","align-self-center"],[1,"mb-2","lead"],[1,"col-lg-3","text-center","align-self-center"],["type","button","href","#topnav","pageScroll","",1,"mt-auto","btn","btn-block","btn-dark",3,"routerLink","pageScrollDuration"],[3,"campaign"],[1,"card-body","py-2"],[1,"col-md-6"],[1,"mb-0"],[4,"ngIf"],[1,"form"],["id","exampleFormControlSelect1",1,"form-control",3,"change"],[3,"value","selected","ngClass",4,"ngFor","ngForOf"],[3,"value","selected","ngClass"],[1,"col-xl-4","col-md-6","q-link","mt-4"],["class","fal fa-hand-holding-water text-light",4,"ngIf"],["class","fal fa-burn text-light",4,"ngIf"],["href","#topnav","pageScroll","",1,"nav-link","nav-item","btn","mt-6",3,"ngClass","routerLink","pageScrollDuration"],[1,"fal","fa-hand-holding-water","text-light"],[1,"fal","fa-burn","text-light"],[1,"fal","fa-tachometer-alt","text-light"],["routerLink","../submit-meter-reading","href","#topnav","pageScroll","",1,"nav-link","nav-item","btn","mt-6",3,"ngClass","pageScrollDuration"],[3,"status"]],template:function(m,e){m&1&&(u(0,"app-page-head",0),l(1,Se,11,4,"section",1),a(2,"section"),l(3,Ce,1,1,"app-campaign",2),p(),a(4,"section")(5,"div",3),l(6,_e,12,7,"div",4)(7,Le,3,1,"form",5),u(8,"app-customer-key-data",6),p()(),a(9,"section")(10,"div",3)(11,"div",7)(12,"h3",8),c(13,"What would you like to do?"),p(),a(14,"div",9)(15,"div",10)(16,"div",11),u(17,"i",12),a(18,"a",13),c(19,"Payment and bills"),p()()(),l(20,Ae,7,8,"div",14),a(21,"div",10)(22,"div",11),u(23,"i",15),a(24,"a",16),c(25,"Moving home"),p()()(),l(26,De,5,3,"div",14),a(27,"div",10)(28,"div",11),u(29,"i",17),a(30,"a",18),c(31,"Account settings"),p()()(),a(32,"div",10)(33,"div",11),u(34,"i",19),a(35,"a",20),c(36,"Get in touch"),p()()()()()()(),a(37,"section"),l(38,He,1,1,"app-campaign",2),p(),l(39,Te,1,0,"app-dynamic-form",21)),m&2&&(r("alerts",e.alerts)("showWelcome",!0),o(),r("ngIf",e.company==="SEW"&&e.showIncidentBanner),o(2),r("ngForOf",e.campaignstop),o(3),r("ngIf",e.customerPropertyLinks&&e.customerPropertyLinks.length==1),o(),r("ngIf",e.customerPropertyLinks&&e.customerPropertyLinks.length>1),o(),r("showMainSection",!0),o(7),r("ngClass",e.customer!=null&&e.customer.movedOutDate?"col-md-6":"col-xl-4 col-md-6"),o(),r("ngClass",e.company==="LMH"?"bg-dark":e.company==="MUA"?"bg-secondary-light":e.company==="ICOSA"?"btn-active":"btn-primary"),o(2),r("ngClass",e.company==="LMH"?"btn-active":"btn-dark")("pageScrollDuration",100),o(2),r("ngIf",!(e.customer!=null&&e.customer.movedOutDate)),o(),r("ngClass",e.customer!=null&&e.customer.movedOutDate?"col-md-6":"col-xl-4 col-md-6"),o(),r("ngClass",e.company==="LMH"?"bg-dark":e.company==="MUA"?"bg-secondary-light":e.company==="ICOSA"?"btn-active":"btn-primary"),o(2),r("ngClass",e.company==="LMH"?"btn-active":"btn-dark")("pageScrollDuration",100),o(2),r("ngIf",!(e.customer!=null&&e.customer.movedOutDate)&&(e.customer==null?null:e.customer.supplyType)==="MEASURED"),o(),r("ngClass",(e.customer==null?null:e.customer.supplyType)==="MEASURED"&&!(e.customer!=null&&e.customer.movedOutDate)?"col-xl-4 col-md-6":"col-md-6"),o(),r("ngClass",e.company==="LMH"?"bg-dark":e.company==="MUA"?"bg-secondary-light":e.company==="ICOSA"?"btn-active":"btn-primary"),o(2),r("ngClass",e.company==="LMH"?"btn-active":"btn-dark")("pageScrollDuration",100),o(2),r("ngClass",(e.customer==null?null:e.customer.supplyType)==="MEASURED"&&!(e.customer!=null&&e.customer.movedOutDate)?"col-xl-4 col-md-6":"col-md-6"),o(),r("ngClass",e.company==="LMH"?"bg-dark":e.company==="MUA"?"bg-secondary-light":e.company==="ICOSA"?"btn-active":"btn-primary"),o(2),r("ngClass",e.company==="LMH"?"btn-active":"btn-dark")("pageScrollDuration",100),o(3),r("ngForOf",e.campaigns),o(),r("ngIf",e.customer==null?null:e.customer.questions))},dependencies:[$,ee,ie,ne,D,H,T,ae,se,me,re,oe,G,Y,te,pe],styles:['.border-3[_ngcontent-%COMP%]{border-width:3px!important}#campaign[_ngcontent-%COMP%]{background-image:url("./media/winter-BX2BA2HP.jpg");width:100%;height:auto;background-size:cover}']});let t=n;return t})();var Oe=()=>I(t=>t?!0:["auth/login"]),we=[{path:"",component:de,data:{authGuardPipe:Oe},canActivate:[ce],resolve:{settings:k}}],ge=(()=>{let n=class n{};n.\u0275fac=function(m){return new(m||n)},n.\u0275mod=y({type:n}),n.\u0275inj=f({providers:[k],imports:[_.forChild(we),_]});let t=n;return t})();
1var Ct=(()=>{let n=class n{};n.\u0275fac=function(m){return new(m||n)},n.\u0275mod=y({type:n}),n.\u0275inj=f({imports:[ge,le]});let t=n;return t})();export{Ct as HomeModule};
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.