1import{a as Pe}from"./chunk-B2BJOXUP.js";import{a as be}from"./chunk-I4PU3XMC.js";import{a as he,b as xe}from"./chunk-ZOU7JU4I.js";import{a as _e}from"./chunk-EMNRMHET.js";import{a as O}from"./chunk-A5EUQQC7.js";import{$ as g,Ab as N,Ac as te,Ad as le,Ba as n,Bb as U,Ca as i,Cb as Y,Cd as M,Da as y,Db as $,Gc as ne,Ha as x,Ia as b,Ic as ie,Ja as s,Jd as oe,Nd as re,Od as se,Rb as j,S as A,Sb as w,Sd as me,Se as fe,Td as pe,Ua as r,Ub as S,Ud as ce,Va as C,Vd as ue,W as F,Wa as f,Wb as E,Wd as de,We as ge,X as B,Xa as R,Xd as ye,_b as I,aa as v,bf as ve,db as T,ec as W,hb as u,hc as G,ia as P,ib as D,ic as z,jb as _,jc as X,kb as k,ma as l,na as h,nc as J,rb as H,rd as ae,sb as V,sc as K,ta as m,tb as q,tc as Q,va as o,vc as Z,yc as ee,z as L}from"./chunk-UKO5M5N4.js";var Te=()=>["/exemption-form"],ke=()=>["/surface-water-rebate"];function we(t,a){t&1&&(n(0,"div",15),r(1," Payment date "),i())}function Ee(t,a){t&1&&(n(0,"div",15),r(1," Payment due "),i())}function Me(t,a){if(t&1&&(y(0,"h1",19),u(1,"ordinalDay")),t&2){let e=s(2);o("innerHTML",D(1,1,e.customer==null||e.customer.paymentPlan==null?null:e.customer.paymentPlan.paymentDay),P)}}function Oe(t,a){t&1&&(n(0,"h1",20),r(1," On bill "),i())}function Le(t,a){t&1&&(n(0,"p"),r(1," Your payment is due when we raise a bill against your account "),i())}function Fe(t,a){t&1&&(n(0,"p"),r(1," Your payment is due on this day after we raise a bill against your account "),i())}function Re(t,a){t&1&&(n(0,"p"),r(1," You pay monthly and your payment is due on this day "),i())}function He(t,a){t&1&&(n(0,"p"),r(1," You currently spread your payments over two instalments "),i())}function Ve(t,a){t&1&&(n(0,"p"),r(1," You currently pay your bill in one single payment "),i())}function qe(t,a){t&1&&(n(0,"h3"),r(1," No payments due "),i())}function Ne(t,a){t&1&&(n(0,"span",21),r(1,"\xA3"),i())}function Ue(t,a){if(t&1&&(n(0,"span",22),r(1),u(2,"number"),i()),t&2){let e=s(2);l(),C(_(2,1,e.customer==null||e.customer.paymentPlan==null?null:e.customer.paymentPlan.nextPaymentAmount,"1.2-2"))}}function Ye(t,a){if(t&1&&(n(0,"p"),r(1),u(2,"date"),i()),t&2){let e=s(2);l(),f(" As you pay by Direct Debit we'll automatically take your payment on ",_(2,1,e.customer==null||e.customer.paymentPlan==null?null:e.customer.paymentPlan.nextPaymentDate,"dd MMM yyyy")," ")}}function $e(t,a){t&1&&(n(0,"p"),r(1," As you pay by Direct Debit we'll automatically take your payment when it's due "),i())}function je(t,a){if(t&1&&(n(0,"p"),r(1),u(2,"date"),i()),t&2){let e=s(2);l(),f(" As you do not pay by direct debit please pay us within 14 days of ",_(2,1,e.customer==null||e.customer.paymentPlan==null?null:e.customer.paymentPlan.nextPaymentDate,"dd MMM yyyy")," ")}}function We(t,a){t&1&&(n(0,"span",29),r(1,"\xA3"),i())}function Ge(t,a){if(t&1&&(n(0,"span",29),r(1),u(2,"number"),i()),t&2){let e=s().$implicit;l(),C(_(2,1,e==null?null:e.paymentAmount,"1.2-2"))}}function ze(t,a){if(t&1&&(n(0,"span",29),r(1),u(2,"date"),i()),t&2){let e=s().$implicit;l(),f(" within 14 days of ",_(2,1,e==null?null:e.paymentDate,"dd MMM yy"),"")}}function Xe(t,a){if(t&1&&(n(0,"div",27),m(1,We,2,0,"span",28)(2,Ge,3,4,"span",28)(3,ze,3,4,"span",28),i()),t&2){let e=a.$implicit;l(),o("ngIf",(e==null?null:e.paymentAmount)!=0),l(),o("ngIf",(e==null?null:e.paymentAmount)!=0),l(),o("ngIf",(e==null?null:e.paymentAmount)!=0)}}function Je(t,a){t&1&&(n(0,"p"),r(1," As you pay by direct debit your payments will be taken on or around the payment day you have chosen "),i())}function Ke(t,a){t&1&&(n(0,"p"),r(1," Please click on the Make Payment button to pay by card "),i())}function Qe(t,a){t&1&&(n(0,"p"),r(1," Please make a card payment on or before the date of when your payment is due "),i())}function Ze(t,a){if(t&1&&(n(0,"div",23)(1,"div",24)(2,"div",25),r(3,"Upcoming payments"),i(),n(4,"div",12),m(5,Xe,4,3,"div",26)(6,Je,2,0,"p",4)(7,Ke,2,0,"p",4)(8,Qe,2,0,"p",4),i()()()),t&2){let e=s(2);l(5),o("ngForOf",e.paymentsDue),l(),o("ngIf",(e.customer==null||e.customer.paymentPlan==null?null:e.customer.paymentPlan.paymentMethod)==="Bank Direct Debit"),l(),o("ngIf",(e.customer==null||e.customer.paymentPlan==null?null:e.customer.paymentPlan.paymentMethod)!=="Bank Direct Debit"&&e.company==="SEW"),l(),o("ngIf",(e.customer==null||e.customer.paymentPlan==null?null:e.customer.paymentPlan.paymentMethod)!=="Bank Direct Debit"&&e.company!=="SEW")}}function et(t,a){t&1&&(n(0,"span",29),r(1,"\xA3"),i())}function tt(t,a){if(t&1&&(n(0,"span",29),r(1),u(2,"number"),i()),t&2){let e=s().$implicit;l(),C(_(2,1,e==null?null:e.paymentAmount,"1.2-2"))}}function nt(t,a){if(t&1&&(n(0,"span",29),r(1),u(2,"date"),i()),t&2){let e=s().$implicit;l(),f(" on ",_(2,1,e==null?null:e.paymentDate,"dd MMM yy"),"")}}function it(t,a){if(t&1&&(n(0,"div",27),m(1,et,2,0,"span",28)(2,tt,3,4,"span",28)(3,nt,3,4,"span",28),i()),t&2){let e=a.$implicit;l(),o("ngIf",(e==null?null:e.paymentAmount)!=0),l(),o("ngIf",(e==null?null:e.paymentAmount)!=0),l(),o("ngIf",(e==null?null:e.paymentAmount)!=0)}}function at(t,a){t&1&&(n(0,"p"),r(1," As you pay by direct debit this overdue payment will be included in your next payment "),i())}function lt(t,a){t&1&&(n(0,"p"),r(1," Please click on the Make payment button to make a card payment. Need help paying your bill? Our teams are trained, discrete and happy to help. Request a callback at a time that suits you by clicking on the link below. "),i())}function ot(t,a){t&1&&(n(0,"p"),r(1," Please make a card payment. Need help paying your bill? Our teams are trained, discrete and happy to help. Request a callback at a time that suits you by clicking on the link below. "),i())}function rt(t,a){if(t&1){let e=x();n(0,"button",32),b("click",function(){g(e);let c=s(3);return v(c.onCallBack())}),r(1," Request a callback "),i()}if(t&2){let e=s(3);o("ngClass",e.company==="LMH"||e.company==="MTX"||e.company==="MUA"||e.company==="LEF"||e.company==="ICOSA"?"btn-dark":"btn-success")}}function st(t,a){if(t&1&&(n(0,"div",23)(1,"div",30)(2,"div",25),r(3,"Overdue payments"),i(),n(4,"div",12),m(5,it,4,3,"div",26)(6,at,2,0,"p",4)(7,lt,2,0,"p",4)(8,ot,2,0,"p",4)(9,rt,2,1,"button",31),i()()()),t&2){let e=s(2);l(),o("ngClass",e.company==="LMH"?"bg-primary":"bg-warning"),l(4),o("ngForOf",e.overduePaymentsDue),l(),o("ngIf",(e.customer==null||e.customer.paymentPlan==null?null:e.customer.paymentPlan.paymentMethod)==="Bank Direct Debit"),l(),o("ngIf",(e.customer==null||e.customer.paymentPlan==null?null:e.customer.paymentPlan.paymentMethod)!=="Bank Direct Debit"&&e.company==="SEW"),l(),o("ngIf",(e.customer==null||e.customer.paymentPlan==null?null:e.customer.paymentPlan.paymentMethod)!=="Bank Direct Debit"&&(e.company==="ICOSA"||e.company==="ESP"||e.company==="MTX"||e.company==="MUA"||e.company==="LEF")),l(),o("ngIf",(e.customer==null||e.customer.paymentPlan==null?null:e.customer.paymentPlan.paymentMethod)!=="Bank Direct Debit")}}function mt(t,a){if(t&1&&(n(0,"section",7)(1,"div",8)(2,"div",9)(3,"div",10),m(4,we,2,0,"div",11)(5,Ee,2,0,"div",11),n(6,"div",12),m(7,Me,2,3,"h1",13)(8,Oe,2,0,"h1",14)(9,Le,2,0,"p",4)(10,Fe,2,0,"p",4)(11,Re,2,0,"p",4)(12,He,2,0,"p",4)(13,Ve,2,0,"p",4),i()()(),n(14,"div",9)(15,"div",10)(16,"div",15),r(17,"Next payment"),i(),n(18,"div",12),m(19,qe,2,0,"h3",4)(20,Ne,2,0,"span",16)(21,Ue,3,4,"span",17)(22,Ye,3,4,"p",4)(23,$e,2,0,"p",4)(24,je,3,4,"p",4),i()()()(),n(25,"div",8),m(26,Ze,9,4,"div",18),i(),n(27,"div",8),m(28,st,10,6,"div",18),i()()),t&2){let e=s();l(4),o("ngIf",(e.customer==null||e.customer.paymentPlan==null?null:e.customer.paymentPlan.paymentDay)&&(e.customer==null||e.customer.paymentPlan==null?null:e.customer.paymentPlan.paymentDay)!="0"),l(),o("ngIf",!(!(e.customer==null||e.customer.paymentPlan==null)&&e.customer.paymentPlan.paymentDay)||(e.customer==null||e.customer.paymentPlan==null?null:e.customer.paymentPlan.paymentDay)=="0"),l(2),o("ngIf",(e.customer==null||e.customer.paymentPlan==null?null:e.customer.paymentPlan.paymentDay)&&(e.customer==null||e.customer.paymentPlan==null?null:e.customer.paymentPlan.paymentDay)!="0"),l(),o("ngIf",!(!(e.customer==null||e.customer.paymentPlan==null)&&e.customer.paymentPlan.paymentDay)||(e.customer==null||e.customer.paymentPlan==null?null:e.customer.paymentPlan.paymentDay)=="0"),l(),o("ngIf",(!(!(e.customer==null||e.customer.paymentPlan==null)&&e.customer.paymentPlan.paymentDay)||(e.customer==null||e.customer.paymentPlan==null?null:e.customer.paymentPlan.paymentDay)=="0")&&(e.customer==null||e.customer.paymentPlan==null?null:e.customer.paymentPlan.paymentType)==="Due At Billing"),l(),o("ngIf",(e.customer==null||e.customer.paymentPlan==null?null:e.customer.paymentPlan.paymentDay)&&(e.customer==null||e.customer.paymentPlan==null?null:e.customer.paymentPlan.paymentDay)!="0"&&(e.customer==null||e.customer.paymentPlan==null?null:e.customer.paymentPlan.paymentType)==="Due At Billing"),l(),o("ngIf",(e.customer==null||e.customer.paymentPlan==null?null:e.customer.paymentPlan.paymentDay)&&(e.customer==null||e.customer.paymentPlan==null?null:e.customer.paymentPlan.paymentDay)!="0"&&(e.customer==null||e.customer.paymentPlan==null?null:e.customer.paymentPlan.paymentType)!=="Due At Billing"&&(e.customer==null||e.customer.paymentPlan==null?null:e.customer.paymentPlan.paymentType)!=="Two Instalments"&&(e.customer==null||e.customer.paymentPlan==null?null:e.customer.paymentPlan.paymentType)!=="One Instalment"),l(),o("ngIf",(e.customer==null||e.customer.paymentPlan==null?null:e.customer.paymentPlan.paymentType)==="Two Instalments"),l(),o("ngIf",(e.customer==null||e.customer.paymentPlan==null?null:e.customer.paymentPlan.paymentType)==="One Instalment"),l(6),o("ngIf",(e.customer==null||e.customer.paymentPlan==null?null:e.customer.paymentPlan.nextPaymentAmount)==0),l(),o("ngIf",(e.customer==null||e.customer.paymentPlan==null?null:e.customer.paymentPlan.nextPaymentAmount)!=0),l(),o("ngIf",(e.customer==null||e.customer.paymentPlan==null?null:e.customer.paymentPlan.nextPaymentAmount)!=0),l(),o("ngIf",(e.customer==null||e.customer.paymentPlan==null?null:e.customer.paymentPlan.paymentMethod)==="Bank Direct Debit"&&(e.customer==null||e.customer.paymentPlan==null?null:e.customer.paymentPlan.nextPaymentDate)),l(),o("ngIf",(e.customer==null||e.customer.paymentPlan==null?null:e.customer.paymentPlan.paymentMethod)==="Bank Direct Debit"&&!(!(e.customer==null||e.customer.paymentPlan==null)&&e.customer.paymentPlan.nextPaymentDate)),l(),o("ngIf",(e.customer==null||e.customer.paymentPlan==null?null:e.customer.paymentPlan.nextPaymentAmount)!=0&&(e.customer==null||e.customer.paymentPlan==null?null:e.customer.paymentPlan.paymentMethod)!=="Bank Direct Debit"),l(2),o("ngIf",e.paymentsDue&&e.paymentsDue.length>0&&(e.customer==null||e.customer.paymentPlan==null?null:e.customer.paymentPlan.paymentMethod)!=="Bank Direct Debit"),l(2),o("ngIf",e.overduePaymentsDue&&e.overduePaymentsDue.length>0)}}function pt(t,a){t&1&&(n(0,"p",35),r(1," We are always here to help. You can request a call back from one of our team if you would you like to discu
1ss your account "),i())}function ct(t,a){if(t&1){let e=x();n(0,"button",44),b("click",function(){g(e);let c=s(2);return v(c.onCallBack())}),r(1," Request a callback "),i()}}function ut(t,a){t&1&&(n(0,"button",45),y(1,"i",46),r(2," Change payments "),i()),t&2&&o("pageScrollDuration",100)}function dt(t,a){if(t&1&&(n(0,"section",33)(1,"div",34)(2,"h2",35),r(3,"Other options"),i(),m(4,pt,2,0,"p",36),n(5,"div",34)(6,"div",37)(7,"div",8)(8,"div",38),m(9,ct,2,0,"button",39)(10,ut,3,1,"button",40),i(),n(11,"div",41)(12,"button",42),y(13,"i",43),r(14," Make payment "),i()()()()()()()),t&2){let e=s();o("ngClass",e.paymentsDue&&e.paymentsDue.length>0&&(e.customer==null||e.customer.paymentPlan==null?null:e.customer.paymentPlan.paymentMethod)!=="Bank Direct Debit"?"bg-secondary":"bg-info"),l(4),o("ngIf",e.customer==null?null:e.customer.specialArrangements),l(4),o("ngClass","col-md-6"),l(),o("ngIf",e.customer==null?null:e.customer.specialArrangements),l(),o("ngIf",!(e.customer!=null&&e.customer.specialArrangements)),l(2),o("pageScrollDuration",100)("disabled",(e.customer==null?null:e.customer.movedOutDate)&&(e.customer==null?null:e.customer.balance)<=0)}}function yt(t,a){if(t&1&&(n(0,"span",62),r(1),u(2,"date"),i()),t&2){let e=s(3);l(),C(_(2,1,e.customer==null?null:e.customer.nextBillingMonth,"MMMM yyyy"))}}function _t(t,a){t&1&&(n(0,"span",62),r(1,"April"),i())}function ft(t,a){if(t&1&&(n(0,"small",63),r(1),i()),t&2){let e=s(3);l(),R("Your meter is read and billed twice a year in ",e.customer==null?null:e.customer.billingMonth1," and ",e.customer==null?null:e.customer.billingMonth2,"")}}function gt(t,a){t&1&&(n(0,"small",63),r(1,"You are billed once a year in April"),i())}function vt(t,a){t&1&&(n(0,"small",63),r(1,"You are billed once a year in April"),i())}function ht(t,a){t&1&&(n(0,"small",63),r(1,"You are billed once a year in April"),i())}function xt(t,a){if(t&1&&(n(0,"div",8)(1,"div",57)(2,"div",58)(3,"h4",59),r(4,"Your next bill will be ready in"),i(),m(5,yt,3,4,"span",60)(6,_t,2,0,"span",60),y(7,"br"),m(8,ft,2,2,"small",61)(9,gt,2,0,"small",61)(10,vt,2,0,"small",61)(11,ht,2,0,"small",61),i()()()),t&2){let e=s(2);l(5),o("ngIf",e.customer==null?null:e.customer.nextBillingMonth),l(),o("ngIf",!(e.customer!=null&&e.customer.nextBillingMonth)),l(2),o("ngIf",(e.customer==null?null:e.customer.billingMonth1)&&(e.customer==null?null:e.customer.billingMonth2)),l(),o("ngIf",(e.customer==null?null:e.customer.billingMonth1)&&!(e.customer!=null&&e.customer.billingMonth2)),l(),o("ngIf",!(e.customer!=null&&e.customer.billingMonth1)&&(e.customer==null?null:e.customer.billingMonth2)),l(),o("ngIf",!(e.customer!=null&&e.customer.billingMonth1)&&!(e.customer!=null&&e.customer.billingMonth2))}}function bt(t,a){if(t&1){let e=x();n(0,"a",72),b("click",function(){g(e);let c=s().$implicit,d=s(2);return v(d.onGetBillPDF(c.billNo))}),n(1,"strong"),r(2,"Download bill "),y(3,"fa-icon",73),i()()}if(t&2){let e=s(3);l(3),o("icon",e.faDownload)}}function Pt(t,a){if(t&1){let e=x();n(0,"a",72),b("click",function(){g(e);let c=s().$implicit,d=s(2);return v(d.onGetUsageReportPDF(c.billNo))}),n(1,"strong"),r(2,"Usage Report "),y(3,"fa-icon",73),i()()}if(t&2){let e=s(3);l(3),o("icon",e.faDownload)}}function Ct(t,a){if(t&1&&(n(0,"span"),r(1),u(2,"absolute"),u(3,"currency"),i()),t&2){let e=s().$implicit;l(),f("+ ",_(3,3,D(2,1,e.grossAmount),"\xA3"),"")}}function St(t,a){if(t&1&&(n(0,"span"),r(1),u(2,"absolute"),u(3,"currency"),i()),t&2){let e=s().$implicit;l(),f("- ",_(3,3,D(2,1,e.grossAmount),"\xA3"),"")}}function At(t,a){if(t&1&&(n(0,"div"),r(1," +\xA0\xA3"),y(2,"span",70),u(3,"moneyPipe"),i()),t&2){let e=s().$implicit;l(2),o("innerHTML",_(3,1,e.grossAmount,!0),P)}}function Bt(t,a){if(t&1&&(n(0,"div"),r(1," -\xA0\xA3"),y(2,"span",70),u(3,"moneyPipe"),i()),t&2){let e=s().$implicit;l(2),o("innerHTML",_(3,1,e.grossAmount,!0),P)}}function Dt(t,a){if(t&1&&(n(0,"tr")(1,"td",64),r(2),u(3,"date"),y(4,"br"),n(5,"span",65),r(6),i(),y(7,"br"),m(8,bt,4,1,"a",66),y(9,"br"),m(10,Pt,4,1,"a",67),i(),n(11,"td",68),m(12,Ct,4,6,"span",4)(13,St,4,6,"span",4),n(14,"div",69),r(15," Balance: \xA3"),y(16,"span",70),u(17,"moneyPipe"),i()(),n(18,"td",71),m(19,At,4,4,"div",4),i(),n(20,"td",71),m(21,Bt,4,4,"div",4),i(),n(22,"td",71),r(23," \xA3"),y(24,"span",70),u(25,"moneyPipe"),i()()),t&2){let e=a.$implicit;o("@enterAnimation",void 0),l(2),f(" ",_(3,11,e.datePosted,"dd MMM yy")," "),l(4),C(e.transactionDescription),l(2),o("ngIf",(e.transactionType=="60"||e.transactionType=="50")&&e.billPrinted),l(2),o("ngIf",(e.transactionType=="60"||e.transactionType=="50")&&e.usageReport),l(2),o("ngIf",e.grossAmount<0),l(),o("ngIf",e.grossAmount>0),l(3),o("innerHTML",_(17,14,e.balance,!0),P),l(3),o("ngIf",e.grossAmount<0),l(2),o("ngIf",e.grossAmount>0),l(3),o("innerHTML",_(25,17,e.balance,!0),P)}}
1function It(t,a){if(t&1){let e=x();n(0,"button",74),b("click",function(){g(e);let c=s(2);return v(c.loadMore())}),r(1," Load more "),i()}t&2&&o("pageScrollDuration",1e3)}function Tt(t,a){t&1&&(n(0,"p",78),r(1," Thank you for your recent card payment, your account balance has been updated "),i())}function kt(t,a){t&1&&(n(0,"p",78),r(1," Please bear with us if you have made a card payment as it can take up to three workings days "),i())}function wt(t,a){if(t&1&&(n(0,"div",75)(1,"div",76),m(2,Tt,2,0,"p",77)(3,kt,2,0,"p",77),i()()),t&2){let e=s(2);l(2),o("ngIf",e.daysSinceLastPayment<=7&&(e.customer.paymentPlan==null?null:e.customer.paymentPlan.lastPaymentSource)==="Card payment"),l(),o("ngIf",e.customer.paymentPlan==null?null:e.customer.paymentPlan.cardPaymentJobExists)}}function Et(t,a){if(t&1&&(n(0,"section",47)(1,"div",34)(2,"div",37)(3,"h2",35),r(4,"Your payments and bills"),i(),m(5,xt,12,6,"div",48),n(6,"table",49)(7,"thead")(8,"tr")(9,"th"),r(10,"Date"),i(),n(11,"th",50),r(12,"in"),i(),n(13,"th",50),r(14,"out"),i(),n(15,"th",51),r(16,"amount"),i(),n(17,"th",50),r(18,"balance"),i()()(),n(19,"tbody"),m(20,Dt,26,20,"tr",52),u(21,"orderBy"),u(22,"slice"),i()(),n(23,"div",8)(24,"div",53),m(25,It,2,1,"button",54),i(),y(26,"div",55),i(),m(27,wt,4,2,"div",56),i()()()),t&2){let e=s();o("ngClass",e.company==="LMH"?"bg-primary":"bg-primary-light"),l(5),o("ngIf",!(e.customer!=null&&e.customer.movedOutDate)),l(15),o("ngForOf",k(22,9,k(21,5,e.transactionActivities,"sequenceNumber",!1),0,e.transRestrict)),l(5),o("ngIf",e.transactionActivities.length>e.transRestrict),l(2),o("ngIf",e.topUpPaymentTypes.indexOf(e.customer==null||e.customer.paymentPlan==null?null:e.customer.paymentPlan.paymentMethod.toUpperCase())>-1)}}function Mt(t,a){t&1&&(n(0,"button",82),r(1," Apply now "),i()),t&2&&o("routerLink",T(2,ke))("pageScrollDuration",100)}function Ot(t,a){t&1&&(n(0,"a",87),r(1," Apply now "),i())}function Lt(t,a){if(t&1&&(n(0,"div",84)(1,"div",80)(2,"h4"),r(3,"Surface water rebate"),i(),n(4,"p"),r(5," If the rain water that falls onto your property & runs from drainpipes, drives or paths doesn't enter a drain or a road gulley into a public sewer, you can apply for a rebate. "),i(),n(6,"div",81),m(7,Mt,2,3,"button",85)(8,Ot,2,0,"a",86),i()()()),t&2){let e=s(2);l(7),o("ngIf",e.sewerageProvider==="SOUTHERN"),l(),o("ngIf",e.sewerageProvider==="THAMES")}}
1function Ft(t,a){if(t&1&&(n(0,"section")(1,"div",34)(2,"div",8)(3,"div",79)(4,"div",80)(5,"h4"),r(6,"Not using your water for a while?"),i(),n(7,"p"),r(8," You may not need to pay if you're not using water at your property. This might be because the property is empty or the water supply isn't being used. "),i(),n(9,"div",81)(10,"button",82),r(11," Apply now "),i()()()(),m(12,Lt,9,2,"div",83),i()()()),t&2){let e=s();l(3),o("ngClass",e.company==="SEW"&&e.sewerageProvider!=="ICOSA"&&e.sewerageProvider!=="MTX"&&e.sewerageProvider!=="MUA"&&e.sewerageProvider!=="ESP"&&e.sewerageProvider!=="SEVERN"&&!(e.property!=null&&e.property.abated)?"col-md-6":"col-md-12"),l(7),o("routerLink",T(4,Te))("pageScrollDuration",100),l(2),o("ngIf",e.company==="SEW"&&e.sewerageProvider!=="ICOSA"&&e.sewerageProvider!=="MTX"&&e.sewerageProvider!=="MUA"&&e.sewerageProvider!=="ESP"&&e.sewerageProvider!=="SEVERN"&&!(e.property!=null&&e.property.abated))}}function Rt(t,a){if(t&1&&y(0,"app-campaign",89),t&2){let e=a.$implicit;o("campaign",e)}}function Ht(t,a){if(t&1&&(n(0,"section"),m(1,Rt,1,1,"app-campaign",88),i()),t&2){let e=s();l(),o("ngForOf",e.campaigns)}}function Vt(t,a){if(t&1){let e=x();n(0,"app-request-a-call-back",90),b("status",function(c){g(e);let d=s();return v(d.getMessage(c))}),i()}t&2&&o("defaultOption","Payment Plans")}var Se=(()=>{let a=class a{constructor(p,c,d,Be,De,Ie){this.transactionActivityService=p,this.paymentDueService=c,this.customerService=d,this.billService=Be,this.analyticsService=De,this.propertyService=Ie,this.faPiggyBank=K,this.faMoneyBill=W,this.faTachometerAlt=ee,this.faBoxOpen=X,this.faWallet=J,this.faChartBar=G,this.faCheckCircle=z,this.faTimesCircle=ne,this.faDownload=Q,this.faUsersCog=ie,this.faCreditCard=Z,this.faChevronLeft=te,this.topUpPaymentTypes=I.topUp,this.transactionActivities=[],this.paymentsDue=[],this.overduePaymentsDue=[],this.alerts=[],this.campaigns=[],this.requestACallBack=!1,this.company=I.company,this.sector=I.sector,this.url="https://payments.southeastwater.co.uk/sso",this.transRestrict=5,this.sewerageProvider="",this.supplyType=""}ngOnInit(){this.analyticsService.pageView("payment-and-bills","./payments-and-bills","payments and bills page"),this.transactionActivitySubscription=this.transactionActivityService.transactionActivitiesChange.subscribe(p=>{this.transactionActivities=p}),this.transactionActivities=this.transactionActivityService.getTransactionActivities(),this.paymentDueSubscription=this.paymentDueService.paymentsDueChange.subscribe(p=>{this.paymentsDue=p,this.splitOutOverdue()}),this.paymentsDue=this.paymentDueService.getPaymentsDue(),this.splitOutOverdue(),this.customerSubscription=this.customerService.customerChange.subscribe(p=>{this.customer=p,this.daysSinceLastPayment=(new Date().getTime()-new Date(this.customer?.paymentPlan?.lastPaymentDate).getTime())/(1e3*3600*24),this.alerts=this.customerService.getAlerts("paymentsandbills"),this.campaigns=this.customerService.getCampaigns("paymentsandbills"),this.getSupplyType()}),this.customer=this.customerService.getCustomer(),this.customer&&(this.daysSinceLastPayment=(new Date().getTime()-new Date(this.customer?.paymentPlan?.lastPaymentDate).getTime())/(1e3*3600*24)),this.alerts=this.customerService.getAlerts("paymentsandbills"),this.campaigns=this.customerService.getCampaigns("paymentsandbills"),this.propertySubscription=this.propertyService.propertyChange.subscribe(p=>{this.property=p,this.getSewerageProvider()})}onGetBillPDF(p){this.billService.getbillpdf(p.toString())}onGetUsageReportPDF(p){this.billService.getusagereportpdf(p,!1)}splitOutOverdue(){if(this.overduePaymentsDue=[],this.paymentsDue&&this.paymentsDue.length>0){let p;for(let c=this.paymentsDue.length;c>0;c--)p=this.paymentsDue[c-1],p.overduePayment!=0&&this.overduePaymentsDue.push(...this.paymentsDue.splice(c-1,1))}else this.overduePaymentsDue=[]}loadMore(){this.transRestrict=this.transRestrict+5,this.transactionActivities.length<this.transRestrict&&(this.transRestrict=this.transactionActivities.length)}onMakePayment(){window.open("https://payments.southeastwater.co.uk/","_blank")}getSewerageProvider(){this.property=this.propertyService.getProperty(),this.property&&(this.property.sewerageProvider?this.sewerageProvider=this.property.sewerageProvider.replace(/ .*/,""):this.sewerageProvider="")}getSupplyType(){this.customer=this.customerService.getCustomer(),this.customer&&(this.supplyType=this.customer.supplyType)}onCallBack(){this.requestACallBack=!0}ngOnDestroy(){this.transactionActivitySubscription.unsubscribe(),this.paymentDueSubscription.unsubscribe(),this.customerSubscription.unsubscribe()}getMessage(p){this.requestACallBack=!1}};a.\u0275fac=function(c){return new(c||a)(h(be),h(Pe),h(oe),h(ue),h(re),h(se))},a.\u0275cmp=F({type:a,selectors:[["app-payments-and-bills"]],decls:8,vars:9,consts:[[3,"alerts","showWelcome","pageHeader"],["class","container pb-8",4,"ngIf"],["class","mt-3",3,"ngClass",4,"ngIf"],[3,"ngClass",4,"ngIf"],[4,"ngIf"],[1,"bg-primary"],[3,"defaultOption","status",4,"ngIf"],[1,"container","pb-8"],[1,"row"],[1,"col-lg-6","mt-2"],[1,"card","bg-secondary","mb-4","text-center","text-white","h-100"],["class","card-header h4",4,"ngIf"],[1,"card-body"],["class","mb-0",3,"innerHTML",4,"ngIf"],["class","mb-0",4,"ngIf"],[1,"card-header","h4"],["class","h3 text-white mb-0",4,"ngIf"],["class","h1 text-white mb-2",4,"ngIf"],["class","col-lg-12 mt-2",4,"ngIf"],[1,"mb-0",3,"innerHTML"],[1,"mb-0"],[1,"h3","text-white","mb-0"],[1,"h1","text-white","mb-2"],[1,"col-lg-12","mt-2"],[1,"card","bg-info","mb-3","mb-4","text-center","text-danger","h-100"],[1,"card-header","h3"],["class","h3 badge badge-light",4,"ngFor","ngForOf"],[1,"h3","badge","badge-light"],["class","h4",4,"ngIf"],[1,"h4"],[1,"card","mb-3","mb-4","text-center","text-danger","h-100",3,"ngClass"],["class","btn btn-lg",3,"ngClass","click",4,"ngIf"],[1,"btn","btn-lg",3,"click","ngClass"],[1,"mt-3",3,"ngClass"],[1,"container","px-3","py-8","mx-auto"],[1,"text-center"],["class","text-center",4,"ngIf"],[1,"form-wrap"],[1,"my-3","bg-white",3,"ngClass"],["class","btn h-100 btn-lg btn-dark btn-block p-5",3,"click",4,"ngIf"],["class","btn h-100 btn-lg btn-dark btn-block p-5","routerLink","../payment-options-form","href","#topnav","pageScroll","",3,"pageScrollDuration",4,"ngIf"],[1,"col-md-6","my-3","bg-white"],["routerLink","../make-a-payment","href","#topnav","pageScroll","",1,"btn","h-100","btn-lg","btn-dark","btn-block","p-5",3,"pageScrollDuration","disabled"],[1,"far","fa-credit-card"],[1,"btn","h-100","btn-lg","btn-dark","btn-block","p-5",3,"click"],["routerLink","../payment-options-form","href","#topnav","pageScroll","",1,"btn","h-100","btn-lg","btn-dark","btn-block","p-5",3,"pageScrollDuration"],[1,"fas","fa-user-cog"],[3,"ngClass"],["class","row",4,"ngIf"],[1,"table"],[1,"text-right","d-none","d-md-table-cell"],[1,"text-right","d-md-none"],[4,"ngFor","ngForOf"],[1,"col-12"],["class","btn btn-dark btn-block p-4","id","loadMore","name","loadMore","href","#endList","pageScroll","",3,"pageScrollDuration","click",4,"ngIf"],["id","endList"],["class","row flex-md-nowrap align-items-center",4,"ngIf"],[1,"col-md-12","text-center"],[1,"px-3","py-2","h-100","border-bottom","border-top","border-secondary"],[1,"mb-1"],["class","h4 display-5",4,"ngIf"],["class","text-muted",4,"ngIf"],[1,"h4","display-5"],[1,"text-muted"],[1,"py-4"],[1,"text-dark","h5"],["style","cursor: pointer","class","text-success",3,"click",4,"ngIf"],["class","text-success","style","cursor: pointer",3,"click",4,"ngIf"],[1,"py-4","text-right","d-md-none"],[1,"d-block","d-sm-none","text-muted","small"],[3,"innerHTML"],[1,"py-4","text-right","d-none","d-md-table-cell","align-middle"],[1,"text-success",2,"cursor","pointer",3,"click"],["size","1x",1,"text-success",3,"icon"],["id","loadMore","name","loadMore","href","#endList","pageScroll","",1,"btn","btn-dark","btn-block","p-4",3,"click","pageScrollDuration"],[1,"row","flex-md-nowrap","align-items-center"],[1,"panel-description","col-12","text-center"],["class","callout callout-primary",4,"ngIf"],[1,"callout","callout-primary"],[1,"mt-5",3,"ngClass"],[1,"form-wrap","h-100","bg-info"],[1,"clearfix"],["type","button","mt-2","","href","#topnav","pageScroll","",1,"btn","btn-dark","btn-block",3,"routerLink","pageScrollDuration"],["class","mt-5 col-md-6",4,"ngIf"],[1,"mt-5","col-md-6"],["type","button","class","btn btn-dark btn-block","mt-2","","href","#topnav","pageScroll","",3,"routerLink","pageScrollDuration",4,"ngIf"],["class","btn btn-dark btn-block","mt-2","","href","https://www.thameswater.co.uk/help/account-and-billing/understand-your-bill/apply-for-a-surface-water-drainage-rebate",4,"ngIf"],["mt-2","","href","https://www.thameswater.co.uk/help/account-and-billing/understand-your-bill/apply-for-a-surface-water-drainage-rebate",1,"btn","btn-dark","btn-block"],[3,"campaign",4,"ngFor","ngForOf"],[3,"campaign"],[3,"status","defaultOption"]],template:function(c,d){c&1&&(y(0,"app-page-head",0),m(1,mt,29,17,"section",1)(2,dt,15,7,"section",2)(3,Et,28,13,"section",3)(4,Ft,13,5,"section",4)(5,Ht,2,1,"section",4),n(6,"section",5),m(7,Vt,1,1,"app-request-a-call-back",6),i()),c&2&&(o("alerts",d.alerts)("showWelcome",!1)("pageHeader","Payments & bills"),l(),o("ngIf",(d.customer==null?null:d.customer.paymentPlan)&&!d.requestACallBack),l(),o("ngIf",!d.requestACallBack),l(),o("ngIf",!d.requestACallBack),l(),o("ngIf",d.sector!=="ENERGY"),l(),o("ngIf",!d.requestACallBack),l(2),o("ngIf",d.requestACallBack))},dependencies:[le,me,ce,H,V,q,ge,ae,pe,$,U,Y,N,de,ye,fe,he],styles:[".vertical-align[_ngcontent-%COMP%]{display:flex;align-items:center}"],data:{animation:[j("enterAnimation",[E(":enter",[S({transform:"translateY(100%)",opacity:0}
1),w("500ms",S({transform:"translateY(0)",opacity:1,"overflow-y":"hidden"}))]),E(":leave",[S({transform:"translateX(0)",opacity:1}),w("500ms",S({transform:"translateX(100%)",opacity:0}))])])]}});let t=a;return t})();var qt=()=>L(t=>t?!0:["auth/login"]),Nt=[{path:"",component:Se,data:{authGuardPipe:qt},canActivate:[_e],resolve:{settings:O}}],Ae=(()=>{let a=class a{};a.\u0275fac=function(c){return new(c||a)},a.\u0275mod=B({type:a}),a.\u0275inj=A({providers:[O],imports:[M.forChild(Nt),M]});let t=a;return t})();var En=(()=>{let a=class a{};a.\u0275fac=function(c){return new(c||a)},a.\u0275mod=B({type:a}),a.\u0275inj=A({imports:[Ae,ve,xe]});let t=a;return t})();export{En as PaymentsAndBillsModule};
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.