1import{a as b}from"./chunk-A5EUQQC7.js";import{$ as y,$d as Y,$e as H,Ad as W,Ba as i,Ca as r,Cd as S,Da as m,Eb as D,Ha as k,He as q,Ia as v,Ja as u,S as f,Td as T,Ua as n,W as w,X as h,Xe as A,_b as I,_d as R,aa as g,be as x,bf as O,ce as V,de as B,eb as C,ge as G,je as F,ma as s,me as j,na as _,rb as E,rd as N,ta as d,tb as L,va as p,ve as P,zc as M}from"./chunk-UKO5M5N4.js";var K=e=>({"is-invalid":e});function Q(e,o){if(e&1&&m(0,"fa-icon",17),e&2){let t=u(2);p("icon",t.faSearch)}}function X(e,o){e&1&&m(0,"i",18)}function Z(e,o){e&1&&(i(0,"div",20)(1,"p",21),n(2," Good news! Your property is in our supply area. "),r()())}function $(e,o){e&1&&(i(0,"div")(1,"p",22),n(2," Sorry we haven't been able to find a match for that postcode. "),r()())}function ee(e,o){e&1&&(i(0,"p",22),n(1," Sorry we believe that this postcode is outside of our area, you can "),i(2,"a",24)(3,"u"),n(4,"check here"),r()(),n(5," to see who is listed as your correct water company. If you are sure that the property is supplied by South East Water then get in touch with us via Live Chat or "),i(6,"a",25)(7,"u"),n(8,"0333 000 0001"),r()(),n(9,". "),r())}function te(e,o){if(e&1&&(i(0,"div"),d(1,ee,10,0,"p",23),r()),e&2){let t=u(3);s(),p("ngIf",t.company==="SEW")}}function oe(e,o){e&1&&(i(0,"div")(1,"p",22),n(2," We don't have a match for this property, you can "),i(3,"a",24)(4,"u"),n(5,"check here"),r()(),n(6," to see who is listed as your correct water company. If it is a new build then please tick the box below to proceed. "),r(),i(7,"div",26)(8,"div",27)(9,"div",12)(10,"div",28),m(11,"input",29),i(12,"label",30),n(13," This is a new build property "),r()()()()()())}function re(e,o){e&1&&(i(0,"div")(1,"h2"),n(2,"Next steps"),r(),m(3,"hr"),i(4,"h3",31),n(5,"New customers"),r(),i(6,"p"),n(7," Welcome to our area and congratulations on your move! You can set up your account quickly and easily by completing our new to area form "),i(8,"a",32),n(9,"here"),r(),n(10,". "),r(),i(11,"h3",31),n(12,"Existing customers"),r(),i(13,"p"),n(14," Existing customer on the move? Simply login or sign up for My Account and use our handy form. Click "),i(15,"a",33),n(16,"here"),r(),n(17," to return to the login page. "),r()()),e&2&&(s(8),p("pageScrollDuration",100),s(7),p("pageScrollDuration",100))}function ie(e,o){if(e&1&&(i(0,"div"),d(1,Z,3,0,"div",19)(2,$,3,0,"div",5)(3,te,2,1,"div",5)(4,oe,14,0,"div",5)(5,re,18,2,"div",5),r()),e&2){let t=u(2);s(),p("ngIf",!(t.propertyReference!=null&&t.propertyReference.startsWith("GB"))&&t.postCodeDistrictMatch==="yes"&&t.propertyLookups.length>0),s(),p("ngIf",t.propertyLookups.length<=0),s(),p("ngIf",t.postCodeDistrictMatch==="no"&&t.propertyLookups.length>0),s(),p("ngIf",t.postCodeDistrictMatch==="yes"&&(t.propertyReference==null?null:t.propertyReference.startsWith("GB"))&&t.propertyLookups.length>0),s(),p("ngIf",(!(t.propertyReference!=null&&t.propertyReference.startsWith("GB"))&&t.postCodeDistrictMatch==="yes"||(t.propertyReference==null?null:t.propertyReference.startsWith("GB"))&&t.form.get("addressNewBuild").value===!0)&&t.propertyLookups.length>0)}}function ne(e,o){if(e&1){let t=k();i(0,"form",6)(1,"div",7)(2,"h2")(3,"label",8),n(4,"Enter your postcode"),r()(),m(5,"hr"),i(6,"div",9)(7,"div",10)(8,"input",11),v("keydown.enter",function(a){return y(t),g(a.preventDefault())})("change",function(a){y(t);let c=u();return g(c.form.patchValue({postcode:a.target.value.toUpperCase()}))}),r()(),i(9,"div",12)(10,"button",13),v("click",function(){y(t);let a=u();return g(a.propertyLookup())}),n(11," Search "),d(12,Q,1,1,"fa-icon",14)(13,X,1,0,"i",15),r()()(),m(14,"app-input-error-message",16),r(),d(15,ie,6,5,"div",5),r()}if(e&2){let t=u();p("formGroup",t.form),s(8),p("ngClass",C(7,K,t.submitted&&t.form.get("postcode").errors)),s(2),p("disabled",t.form.get("postcode").errors||t.lookupLoading),s(2),p("ngIf",!t.lookupLoading),s(),p("ngIf",t.lookupLoading),s(),p("displayErrorIf",t.submitted&&t.form.get("postcode").errors),s(),p("ngIf",t.propertyLookupSearch&&!t.lookupLoading)}}function pe(e,o){e&1&&(i(0,"p"),n(1,"Sorry this form isn't available"),r())}var z=(()=>{let o=class o{constructor(l,a){this.fb=l,this.propertyLookupService=a,this.company=I.company,this.submitted=!1,this.faSearch=M,this.showNoLookupTriedError=!0,this.lookupLoading=!1,this.propertyLookupSearch=!1,this.postcode=null,this.propertyReference=null,this.debug=!1}ngOnInit(){this.form=this.fb.group({propertySearchResult:null,postcode:[null,[x.required,x.minLength(5)]],addressNewBuild:!1})}propertyLookup(){this.showNoLookupTriedError=!1,this.lookupLoading=!0,this.propertyLookupSearch&&(this.propertyLookupSearch=!1,this.lookupLoading=!0,this.postcode=null,this.propertyReference=null,this.form.get("propertySearchResult").reset(),this.form.get("addressNewBuild").patchValue(!1),this.propertyLookups=null,this.postCodeDistrictMatch=""),this.propertyLookupSearch=!0;let l=this.form.get("postcode").value;this.propertyLookupService.getProperties(l,null).subscribe(c=>{this.debug&&console.log("result: ",c),this.propertyLookups=c.data.propertyLookups,this.postCodeDistrictMatch=c.data.postCodeDistrictMatch,this.propertyLookups.length>0&&(this.propertyReference=this.propertyLookups[0].propertyReference),this.lookupLoading=!1},c=>{this.debug&&console.error(c),this.lookupLoading=!1})}};o.\u0275fac=function(a){return new(a||o)(_(P),_(H))},o.\u0275cmp=w({type:o,selectors:[["app-do-you-supply-my-water"]],decls:6,vars:3,consts:[[3,"pageHeader"],[1,"bg-primary-light"],[1,"container","px-3","py-8","mx-auto"],[1,"form-wrap"],[3,"formGroup",4,"ngIf"],[4,"ngIf"],[3,"formGroup"],[1,"form-group","mb-3"],["for","postcode",1,"required","mb-0"],[1,"form-row"],[1,"col-sm-4"],["formControlName","postcode","name","postcode","id","postcode","type","text","autocomplete","postal-code","aria-describedby","postcodeError",1,"form-control","font-weight-bold","text-uppercase","mb-3",3,"keydown.enter","change","ngClass"],[1,"col-auto"],["type","button",1,"btn","btn-primary","mb-3","font-weight-bold",3,"click","disabled"],[3,"icon",4,"ngIf"],["class","fas fa-spinner-third fa-spin",4,"ngIf"],["errorMsg","Please enter a valid postcode","id","postcodeError",3,"displayErrorIf"],[3,"icon"],[1,"fas","fa-spinner-third","fa-spin"],["class","mb-4",4,"ngIf"],[1,"mb-4"],[1,"callout","bg-success","callout-success","text-black","font-weight-bold"],[1,"callout","bg-warning","callout-warning","text-black","font-weight-bold"],["class",` 2 callout 3 bg-warning 4 callout-warning 5 text-black 6 font-weight-bold 7 `,4,"ngIf"],["href","https://www.water.org.uk/advice-for-customers/find-your-supplier/",1,"text-dark"],["href","tel:0333 000 0001",1,"text-dark"],[1,"form-group"],[1,"form-row","pt-3"],[1,"custom-control","custom-checkbox"],["type","checkbox","formControlName","addressNewBuild","name","addressNewBuild","i
7d","addressNewBuild",1,"custom-control-input"],["for","addressNewBuild",1,"custom-control-label","font-weight-bold"],[1,"mb-0"],["routerLink","../new-to-area","pageScroll","","href","#topnav",3,"pageScrollDuration"],["routerLink","/","pageScroll","","href","#topnav",3,"pageScrollDuration"]],template:function(a,c){a&1&&(m(0,"app-page-head-logged-out",0),i(1,"section",1)(2,"div",2)(3,"div",3),d(4,ne,16,9,"form",4)(5,pe,2,0,"p",5),r()()()),a&2&&(p("pageHeader","Do you supply my water?"),s(4),p("ngIf",c.company==="SEW"),s(),p("ngIf",c.company!=="SEW"))},dependencies:[E,L,W,A,q,G,Y,R,V,B,F,j,N,T]});let e=o;return e})();var ae=[{path:"",component:z,resolve:{settings:b}}],J=(()=>{let o=class o{};o.\u0275fac=function(a){return new(a||o)},o.\u0275mod=h({type:o}),o.\u0275inj=f({providers:[b],imports:[S.forChild(ae),S]});let e=o;return e})();var Ie=(()=>{let o=class o{};o.\u0275fac=function(a){return new(a||o)},o.\u0275mod=h({type:o}),o.\u0275inj=f({imports:[D,J,O]});let e=o;return e})();export{Ie as DoYouSupplyMyWaterModule};
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.