PageSourceSearch

https://myaccount.southeastwater.co.uk/chunk-H6ZNIBG7.js

js southeastwater.co.uk collected 2026-10-03 21:19:42 UTC 10,788 bytes, 1 lines download raw bytes

1import{a as oe}from"./chunk-EMNRMHET.js";import{a as W}from"./chunk-A5EUQQC7.js";import{$ as T,$a as O,Ad as z,Ba as r,Ca as p,Cd as U,Da as f,Dc as G,Dd as $,De as se,Ed as H,Ha as S,Ia as b,Ja as g,Jd as B,Na as I,Nd as Y,S as y,Sd as J,Td as K,Ua as c,Ud as Q,Va as x,W as F,Wa as V,X as w,_a as A,_b as R,aa as v,ab as M,bc as D,bf as re,ce as X,fe as Z,ja as E,ma as o,na as _,ne as ee,oe as te,pe as ie,qe as ne,rb as N,rd as P,sb as j,ta as h,tb as q,va as l,wd as L,z as k}from"./chunk-UKO5M5N4.js";function ce(e,i){if(e&1){let n=S();r(0,"section",4)(1,"alert",5)(2,"div",6)(3,"div",7),f(4,"fa-icon",8),p(),r(5,"div",9)(6,"h4"),c(7," Fancy some FREE water saving devices? It\u2019s a no-brainer! "),p(),r(8,"p"),c(9," Are you a savvy saver? Or perhaps you just care about doing your bit for the environment? Whatever your reasons for wanting to save water, we salute you! Get your hands on some FREE water saving devices by clicking on the link below "),p(),r(10,"a",10),b("click",function(){T(n);let t=g();return v(t.logAlert("savewatersavemoney"))}),c(11,"Give me free stuff"),p()()()()()}if(e&2){let n=g();o(4),l("icon",n.faGlobeEurope)}}function me(e,i){e&1&&(r(0,"div",22)(1,"h4",23),c(2,"Well done \u2013 you've committed to these already!"),p()())}function de(e,i){if(e&1){let n=S();r(0,"div",24)(1,"div",25),f(2,"img",26),r(3,"div",27)(4,"strong"),c(5),p(),r(6,"p",28),c(7),p()(),r(8,"div",29)(9,"div",30)(10,"button",31),b("click",function(){let t=T(n).$implicit,a=g(2);return v(a.withdrawn(t))}),f(11,"i",32),c(12," Remove"),p()()()()()}if(e&2){let n=i.$implicit,s=i.index,t=g(2);l("ngClass",t.signedUpTopTips.length>1&&(t.signedUpTopTips==null?null:t.signedUpTopTips.length)<4?"col-lg-"+12/(t.signedUpTopTips==null?null:t.signedUpTopTips.length)+" col-md-"+12/(t.signedUpTopTips==null?null:t.signedUpTopTips.length):(t.signedUpTopTips==null?null:t.signedUpTopTips.length)==1?"col-lg-6 col-md-6":"col-sm-6 col-md-4 col-lg-3"),o(),l("ngClass",s==0?"shadow-lg":""),o(),I("src","../../assets/img/",n.imageName,"",E),o(3),x(n.wstTitle),o(2),x(n.description)}}function ue(e,i){e&1&&(r(0,"div",33)(1,"a",34),c(2,"Got time to answer a few questions so we can personalise your experience and tailor messages to you?"),p()()),e&2&&(o(),l("pageScrollDuration",100))}function ge(e,i){e&1&&(r(0,"div",33),c(1," You've already answered questions to help us understand you better, to update "),r(2,"a",34),c(3,"click here"),p()()),e&2&&(o(2),l("pageScrollDuration",100))}function fe(e,i){if(e&1&&(r(0,"option",35),c(1),p()),e&2){let n=i.$implicit;l("ngValue",n.label),o(),V(" show: ",n.label," ")}}function he(e,i){if(e&1){let n=S();r(0,"button",42),b("click",function(){T(n);let t=g().$implicit,a=g(2);return v(a.signUp(t))}),f(1,"i",43),c(2," Sign me up"),p()}}function Te(e,i){e&1&&(r(0,"div",44),f(1,"i",45),c(2," You've signed up"),p())}function ve(e,i){if(e&1&&(r(0,"div",36)(1,"div",25),f(2,"img",26),r(3,"div",37)(4,"h5",38),c(5),p(),r(6,"p",28),c(7),p()(),r(8,"div",39),h(9,he,3,0,"button",40)(10,Te,3,0,"div",41),p()()()),e&2){let n=i.$implicit,s=i.index;o(),l("ngClass",s==0?"shadow-lg":""),o(),I("src","../../assets/img/",n.imageName,"",E),o(3),x(n.wstTitle),o(2),x(n.description),o(2),l("ngIf",!n.signedUp),o(),l("ngIf",n.signedUp)}}function _e(e,i){if(e&1){let n=S();r(0,"section",11)(1,"div",12),h(2,me,3,0,"div",13)(3,de,13,6,"div",14),p(),r(4,"div",15)(5,"div",16),h(6,ue,3,1,"div",17)(7,ge,4,1,"div",17),p(),r(8,"div",18)(9,"select",19),M("ngModelChange",function(t){T(n);let a=g();return O(a.filter,t)||(a.filter=t),v(t)}),b("change",function(){T(n);let t=g();return v(t.changeTopTips())}),h(10,fe,2,2,"option",20),p()()(),r(11,"div",12),h(12,ve,11,7,"div",21),p()()}if(e&2){let n=g();o(2),l("ngIf",n.signedUpTopTips&&n.signedUpTopTips.length>0),o(),l("ngForOf",n.signedUpTopTips),o(3),l("ngIf",!n.questionAnswered),o(),l("ngIf",n.questionAnswered),o(2),A("ngModel",n.filter),o(),l("ngForOf",n.topTipsSelect),o(2),l("ngForOf",n.topTips)}}function Se(e,i){if(e&1&&f(0,"app-campaign",46),e&2){let n=i.$implicit;l("campaign",n)}}var ae=(()=>{let i=class i{constructor(s,t,a,m,d){this.customerService=s,this.preferencesService=t,this.spinner=a,this.spinnerSevice=m,this.analyticsService=d,this.faGlobeEurope=G,this.topTips=[],this.featuredTopTips=[],this.popularTopTips=[],this.relevantTopTips=[],this.signedUpTopTips=[],this.topTipsSelect=[{label:"featured",active:!0,selected:!0},{label:"relevant",active:!0,selected:!1},{label:"popular",active:!0,selected:!1}],this.campaigns=[],this.faLightBulbOn=D,this.questionAnswered=!1,this.company=R.company}ngOnInit(){this.customerSubscription=this.customerService.customerChange.subscribe(s=>{this.customer=s,this.customer?.waterSavingsTopTips!=this.featuredTopTips&&this.getTips(),this.alerts=this.customerService.getAlerts("waterSavingsTips"),this.campaigns=this.customerService.getCampaigns("waterSavingsTips")}),this.customer=this.customerService.getCustomer(),this.customer&&this.customer.waterSavingsTopTips!=this.featuredTopTips&&this.getTips(),this.alerts=this.customerService.getAlerts("waterSavingTips"),this.campaigns=this.customerService.getCampaigns("waterSavingTips")}getTips(){this.topTips=[],this.featuredTopTips=[],this.popularTopTips=[],this.relevantTopTips=[],this.signedUpTopTips=[];let s=[],t=[],a=0,m=!1;if(this.questionAnswered=!1,this.averageWaterUses=this.customer?.averageWaterUses,this.averageWaterUses?.forEach(d=>{d.calculationType!="default"&&(this.questionAnswered=!0)}),this.customer?.waterSavingsTopTips&&this.customer?.waterSavingsTopTips.length>0){this.customer?.waterSavingsTopTips.forEach(u=>{u.signedUp&&this.signedUpTopTips.push(u),this.popularTopTips.length<1?this.popularTopTips.push(u):(a=0,m=!1,s=this.popularTopTips,s.forEac
1h(C=>{u.popularCount>C.popularCount&&!m?(this.popularTopTips.splice(a,0,u),m=!0):a++}),m||(this.popularTopTips.push(u),m=!0)),this.relevantTopTips.length<1?this.relevantTopTips.push(u):(a=0,m=!1,t=this.relevantTopTips,t.forEach(C=>{u.relevantCount>C.relevantCount&&!m&&(this.relevantTopTips.splice(a,0,u),m=!0),a++}),m||(this.relevantTopTips.push(u),m=!0))}),this.popularTopTips=s,this.featuredTopTips=this.customer?.waterSavingsTopTips;let d="";this.featuredTopTips&&this.featuredTopTips.length>0&&(!this.filter||this.filter=="featured")&&(this.topTips=this.featuredTopTips,d="featured"),this.relevantTopTips&&this.relevantTopTips.length>0&&(!this.filter||this.filter=="relevant")&&(this.topTips=this.relevantTopTips,d="relevant"),this.popularTopTips&&this.popularTopTips.length>0&&(!this.filter||this.filter=="popular")&&(this.topTips=this.popularTopTips,d="popular"),this.topTipsSelect[0].selected=d==="featured",this.topTipsSelect[1].selected=d==="relevant",this.topTipsSelect[2].selected=d==="popular",this.filter||(this.filter=d),this.topTipsSelect[0].active=this.featuredTopTips.length>0,this.topTipsSelect[1].active=this.relevantTopTips.length>0,this.topTipsSelect[2].active=this.popularTopTips.length>0}}changeTopTips(){let s="";this.filter==="featured"&&(this.topTips=this.featuredTopTips,s="featured"),this.filter==="relevant"&&(this.topTips=this.relevantTopTips,s="relevant"),this.filter==="popular"&&(this.topTips=this.popularTopTips,s="popular")}signUp(s){this.spinnerSevice.setSpinnerDescription("signing you up ..."),this.spinner.show();let t=[];t.push(s),s.signedUp=!0,this.preferencesService.getWaterSavingsTopTipsUpdateResponse(t).subscribe(a=>{this.spinner.hide()})}withdrawn(s){this.spinnerSevice.setSpinnerDescription("removing ..."),this.spinner.show();let t=[];t.push(s),s.signedUp=!1,this.getTips(),this.preferencesService.getWaterSavingsTopTipsUpdateResponse(t).subscribe(a=>{this.spinner.hide()})}logAlert(s){this.analyticsService.selectPromotion(null,s,s)}};i.\u0275fac=function(t){return new(t||i)(_(B),_(se),_($),_(H),_(Y))},i.\u0275cmp=F({type:i,selectors:[["app-water-savings-tips"]],decls:5,vars:6,consts:[[3,"alerts","showWelcome","pageHeader"],["class","container p-0 mt-3 mb-3",4,"ngIf"],["class","container mt-3 mb-3",4,"ngIf"],[3,"campaign",4,"ngFor","ngForOf"],[1,"container","p-0","mt-3","mb-3"],["type","success mt-4","role","alert"],[1,"row","vertical-align"],[1,"col-lg-2",".d-none",".d-sm-block","text-center","px-5","py-2"],["size","4x",3,"icon"],[1,"col-lg-10","text-center","text-lg-left"],["href","https://www.savewatersavemoney.co.uk/southeast/free-water-saving-products?utm_source=MyAccount&utm_medium=devices",1,"btn","btn-info","float-right","mt-auto","mb-1","mr-2",3,"click"],[1,"container","mt-3","mb-3"],[1,"row","justify-content-center"],["class","col-12",4,"ngIf"],["class","mb-5",3,"ngClass",4,"ngFor","ngForOf"],[1,"row","mb-5"],[1,"col-md-9"],["class","pt-2",4,"ngIf"],[1,"col-md-3"],["aria-describedby","filter by","name","filter","id","filter","required","",1,"form-control","form-control-sm",3,"ngModelChange","change","ngModel"],[3,"ngValue",4,"ngFor","ngForOf"],["class","col-lg-4 mb-5",4,"ngFor","ngForOf"],[1,"col-12"],[1,"text-center"],[1,"mb-5",3,"ngClass"],[1,"card","h-100","text-white","bg-info",3,"ngClass"],["alt","...",1,"card-img",3,"src"],[1,"card-body","p-2"],[1,"card-text"],[1,"card-footer","p-2"],[1,"btn-group","w-100"],[1,"btn","btn-sm","btn-danger",3,"click"],[1,"fas","fa-trash-alt","mr-0"],[1,"pt-2"],["routerLink","/preferences/data","href","#topnav","pageScroll","",3,"pageScrollDuration"],[3,"ngValue"],[1,"col-lg-4","mb-5"],[1,"card-body"],[1,"card-title"],[1,"card-footer"],["class","btn btn-success btn-block btn-lg",3,"click",4,"ngIf"],["class","btn btn-primary btn-block btn-lg px-1 disabled",4,"ngIf"],[1,"btn","btn-success","btn-block","btn-lg",3,"click"],[1,"fal","fa-hand-pointer"],[1,"btn","btn-primary","btn-block","btn-lg","px-1","disabled"],[1,"fal","fa-thumbs-up"],[3,"campaign"]],template:function(t,a){t&1&&(f(0,"app-page-head",0),h(1,ce,12,1,"section",1)(2,_e,13,7,"section",2),r(3,"section"),h(4,Se,1,1,"app-campaign",3),p()),t&2&&(l("alerts",a.alerts)("showWelcome",!1)("pageHeader","Water saving tips"),o(),l("ngIf",a.company==="SEW"),o(),l("ngIf",!0),o(2),l("ngForOf",a.campaigns))},dependencies:[z,J,Q,N,j,q,te,ie,ee,X,ne,Z,P,L,K],styles:[".card-notify-year[_ngcontent-%COMP%]{position:absolute;right:-10px;top:-20px;background:#f44;border-radius:50%;text-align:center;color:#fff;font-size:14px;width:50px;height:50px;padding:15px 0 0}"]});let e=i;return e})();var be=()=>k(e=>e?!0:["auth/login"]),xe=[{path:"",component:ae,data:{authGuardPipe:be},canActivate:[oe],resolve:{settings:W}}],le=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=w({type:i}),i.\u0275inj=y({providers:[W],imports:[U.forChild(xe),U]});let e=i;return e})();var Je=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=w({type:i}),i.\u0275inj=y({imports:[le,re]});let e=i;return e})();export{Je as WaterSavingsTipsModule};

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.