1function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _createClass(t,e,n){return e&&_defineProperties(t.prototype,e),n&&_defineProperties(t,n),t}(window.webpackJsonp=window.webpackJsonp||[]).push([[24],{"lq/1":function(t,e,n){"use strict";n.r(e),n.d(e,"UpdateContactPageModule",(function(){return g}));var r,a,o,i=n("ofXK"),s=n("3Pt+"),c=n("TEn/"),u=n("tyNb"),b=n("mrSG"),l=n("82KL"),d=n("fXoL"),p=n("mzw/"),m=n("Kcv+"),f=[{path:"",component:(r=function(){function t(e,n,r,a,o){_classCallCheck(this,t),this.formBuilder=e,this.alertController=n,this.registerService=r,this.dataStoreService=a,this.router=o,this.updateContactForm=this.formBuilder.group({contactName:new s.b("",{validators:[s.l.required],updateOn:"blur"}),address:new s.b("",{validators:[s.l.required],updateOn:"blur"}),contactNumber:new s.b("",{validators:[s.l.required,Object(l.a)()],updateOn:"blur"})})}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.buttonLabel="Update my details";var e=this.dataStoreService.getCurrentContactDetails();e&&e.get().toPromise().then((function(e){return Object(b.a)(t,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.updateContactForm.patchValue(Object.assign({},e.data()));case 1:case"end":return t.stop()}}),t,this)})))}))}},{key:"confirmUpdate",value:function(){return Object(b.a)(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.updateContactForm.invalid&&this.updateContactForm.dirty){t.next=6;break}return t.next=3,this.alertController.create({message:"Please complete the form.",buttons:[{text:"Ok"}]});case 3:t.sent.present(),t.next=9;break;case 6:return t.next=8,this.alertController.create({message:"Update your details?",buttons:[{text:"Yes",handler:function(){e.updateContact()}},{text:"No"}]});case 8:t.sent.present();case 9:case"end":return t.stop()}}),t,this)})))}},{key:"updateContact",value:function(){return Object(b.a)(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e,n,r=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.buttonLabel="Saving. Please wait...",this.disabled=!0,e=!1,n="test",this.registerService.updateContact(this.updateContactForm.value.contactName,this.updateContactForm.value.address,this.updateContactForm.value.contactNumber).then((function(){n="Successfully updated.",e=!0})).catch((function(t){console.log(t),n="Error!"})).finally((function(){return Object(b.a)(r,void 0,void 0,regeneratorRuntime.mark((function t(){var r=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.alertController.create({message:n,buttons:[{text:"Ok",handler:function(){e&&(r.updateContactForm.reset(),r.router.navigate(["/tabs/main-page"]))}}]});case 2:t.sent.present(),this.buttonLabel="Update My Details",this.disabled=!1;case 5:case"end":return t.stop()}}),t,this)})))}));case 3:case"end":return t.stop()}}),t,this)})))}}]),t}(),r.\u0275fac=function(t){return new(t||r)(d.Lb(s.a),d.Lb(c.a),d.Lb(p.a),d.Lb(m.a),d.Lb(u.g))},r.\u0275cmp=d.Fb({type:r,selectors:[["app-update-contact"]],decls:32,vars:3,consts:[["slot","start"],["defaultHref","tabs"],["name","arrow-back-outline"],["slot","start","height","70px","width","75px","src","assets/icon/logo.png",2,"margin-left","40px"],[2,"text-align","center","margin-left","-75px"],[3,"formGroup","ngSubmit"],["formControlName","contactName","placeholder","Enter name of contact"],["formControlName","address","placeholder","Enter address of contact"],["formControlName","contactNumber","placeholder"," e.g. +63999999999"],["lines","none"],["type","submit",1,"shadow",2,"width","350px","margin-left","60px",3,"disabled"]],template:function(t,e){1&t&&(d.Ob(0,"ion-header"),d.Ob(1,"ion-toolbar"),d.Ob(2,"ion-buttons",0),d.Ob(3,"ion-back-button",1),d.Mb(4,"ion-icon",2),d.Nb(),d.Nb(),d.Mb(5,"img",3),d.Ob(6,"ion-title",4),d.gc(7,"Update My Details"),d.Nb(),d.Nb(),d.Nb(),d.Ob(8,"
1ion-content"),d.Ob(9,"form",5),d.Vb("ngSubmit",(function(){return e.confirmUpdate()})),d.Ob(10,"ion-item"),d.Ob(11,"ion-label"),d.gc(12,"Contact Name"),d.Nb(),d.Nb(),d.Ob(13,"ion-item"),d.Mb(14,"ion-input",6),d.Nb(),d.Ob(15,"ion-item"),d.Ob(16,"ion-label"),d.gc(17,"Address"),d.Nb(),d.Nb(),d.Ob(18,"ion-item"),d.Mb(19,"ion-input",7),d.Nb(),d.Ob(20,"ion-item"),d.Ob(21,"ion-label"),d.gc(22,"Contact Number"),d.Nb(),d.Nb(),d.Ob(23,"ion-item"),d.Mb(24,"ion-input",8),d.Nb(),d.Mb(25,"ion-item",9),d.Mb(26,"ion-item",9),d.Ob(27,"ion-grid"),d.Ob(28,"ion-row"),d.Ob(29,"ion-col"),d.Ob(30,"ion-button",10),d.gc(31),d.Nb(),d.Nb(),d.Nb(),d.Nb(),d.Nb(),d.Nb()),2&t&&(d.Ab(9),d.Zb("formGroup",e.updateContactForm),d.Ab(21),d.Zb("disabled",e.disabled),d.Ab(1),d.hc(e.buttonLabel))},directives:[c.l,c.A,c.g,c.d,c.e,c.m,c.y,c.i,s.m,s.h,s.d,c.o,c.p,c.n,c.G,s.g,s.c,c.k,c.r,c.h,c.f],styles:[""]}),r)}],h=((o=function t(){_classCallCheck(this,t)}).\u0275mod=d.Jb({type:o}),o.\u0275inj=d.Ib({factory:function(t){return new(t||o)},imports:[[u.i.forChild(f)],u.i]}),o),g=((a=function t(){_classCallCheck(this,t)}).\u0275mod=d.Jb({type:a}),a.\u0275inj=d.Ib({factory:function(t){return new(t||a)},imports:[[i.b,s.e,c.B,h,s.k]]}),a)}}]);
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.