PageSourceSearch

https://familycarehospitals.com/60.2fad633408023fe69399.js

js familycarehospitals.com collected 2026-10-04 22:06:38 UTC 10,674 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkfamily_care_website=self.webpackChunkfamily_care_website||[]).push([[60],{4060:(P,a,l)=>{l.r(a),l.d(a,{DeleteAccountModule:()=>D});var d=l(8583),r=l(3679),u=l(6983),p=l(1841),e=l(7716),g=l(2290),m=l(9897),h=l(9082);function b(n,s){1&n&&e._UZ(0,"span",18)}function f(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"h3",10),e._uU(2,"Delete Account"),e.qZA(),e.TgZ(3,"p",11),e._uU(4," Enter your registered mobile number to proceed with account deletion. "),e.qZA(),e.TgZ(5,"form",12),e.TgZ(6,"div",13),e.TgZ(7,"label",14),e._uU(8,"Mobile Number"),e.qZA(),e._UZ(9,"input",15),e.qZA(),e.TgZ(10,"button",16),e.NdJ("click",function(){return e.CHM(t),e.oxw().onSendOtp()}),e.YNc(11,b,1,0,"span",17),e._uU(12," Send OTP "),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(5),e.Q6J("formGroup",t.phoneForm),e.xp6(5),e.Q6J("disabled",t.loading),e.xp6(1),e.Q6J("ngIf",t.loading)}}function _(n,s){1&n&&e._UZ(0,"span",18)}function x(n,s){if(1&n&&(e.TgZ(0,"span",25),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.AsE(" Resend OTP in ",t.timer.m,":",t.timer.s<10?"0"+t.timer.s:t.timer.s," ")}}function Z(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"a",26),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).resendOtp()}),e._uU(1," Resend OTP "),e.qZA()}}function A(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"h3",10),e._uU(2,"Verify OTP"),e.qZA(),e.TgZ(3,"p",11),e._uU(4," Enter the 4-digit OTP sent to "),e.TgZ(5,"strong"),e._uU(6),e.qZA(),e.qZA(),e.TgZ(7,"form",12),e.TgZ(8,"div",13),e.TgZ(9,"label",14),e._uU(10,"OTP"),e.qZA(),e._UZ(11,"input",19),e.qZA(),e.TgZ(12,"button",16),e.NdJ("click",function(){return e.CHM(t),e.oxw().onVerifyOtp()}),e.YNc(13,_,1,0,"span",17),e._uU(14," Verify OTP "),e.qZA(),e.TgZ(15,"div",20),e.YNc(16,x,2,2,"span",21),e.YNc(17,Z,2,0,"a",22),e.qZA(),e.TgZ(18,"div",23),e.TgZ(19,"a",24),e.NdJ("click",function(){return e.CHM(t),e.oxw().step="phone"}),e._uU(20,"Change Number"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(6),e.Oqu(t.mobile),e.xp6(1),e.Q6J("formGroup",t.otpForm),e.xp6(5),e.Q6J("disabled",t.loading),e.xp6(1),e.Q6J("ngIf",t.loading),e.xp6(3),e.Q6J("ngIf",t.resendDisabled),e.xp6(1),e.Q6J("ngIf",!t.resendDisabled)}}function T(n,s){1&n&&e._UZ(0,"span",18)}
1function v(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"h3",27),e._uU(2,"Are you sure?"),e.qZA(),e.TgZ(3,"p",28),e._uU(4," This action is "),e.TgZ(5,"strong"),e._uU(6,"permanent"),e.qZA(),e._uU(7," and cannot be undone. "),e.qZA(),e.TgZ(8,"ul",29),e.TgZ(9,"li"),e._uU(10,"All your medical records will be deleted"),e.qZA(),e.TgZ(11,"li"),e._uU(12,"Your appointment history will be removed"),e.qZA(),e.TgZ(13,"li"),e._uU(14,"Your pharmacy orders will no longer be accessible"),e.qZA(),e.TgZ(15,"li"),e._uU(16,"Any active subscriptions will be cancelled"),e.qZA(),e.qZA(),e.TgZ(17,"button",30),e.NdJ("click",function(){return e.CHM(t),e.oxw().onDeleteAccount()}),e.YNc(18,T,1,0,"span",17),e._uU(19," Yes, Delete My Account "),e.qZA(),e.TgZ(20,"button",31),e.NdJ("click",function(){return e.CHM(t),e.oxw().step="phone"}),e._uU(21," Cancel "),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(17),e.Q6J("disabled",t.loading),e.xp6(1),e.Q6J("ngIf",t.loading)}}function y(n,s){1&n&&(e.TgZ(0,"div"),e.TgZ(1,"div",32),e.TgZ(2,"div",33),e._uU(3,"\u2713"),e.qZA(),e.TgZ(4,"h3",34),e._uU(5,"Request Processed"),e.qZA(),e.TgZ(6,"p",35),e._uU(7," Your account delete request is sent to admin. We're sorry to see you go. "),e.qZA(),e.TgZ(8,"a",36),e._uU(9,"Go to Home"),e.qZA(),e.qZA(),e.qZA())}const C=[{path:"",component:(()=>{class n{constructor(t,i,o,c,O){this.fb=t,this.http=i,this.toastr=o,this.globalService=c,this.sharedService=O,this.step="phone",this.userId="",this.mobile="",this.loading=!1,this.timer={m:1,s:0},this.resendDisabled=!0,this.userToken="",this.phoneForm=this.fb.group({phone:["",[r.kI.required,r.kI.minLength(10),r.kI.maxLength(10)]]}),this.otpForm=this.fb.group({otp:["",[r.kI.required,r.kI.minLength(4),r.kI.maxLength(4)]]})}onSendOtp(){const t=this.phoneForm.controls.phone.value;if(!t||10!==t.length)return void this.toastr.error("Please enter a valid 10-digit mobile number");this.loading=!0,this.mobile=t;const i=this.globalService.base_path_api()+"user/loginViaPhone";this.http.post(i,{phone:t}).subscribe(o=>{this.loading=!1,o&&!1===o.success?this.toastr.error(o.msg||"Unable to proceed."):o&&o.data&&o.data._id?(this.userId=o.data._id,this.step="otp",this.startTimer(),this.toastr.success("OTP sent to your mobile number")):this.toastr.error("Account not found with this number")},o=>{this.loading=!1;const c=null==o?void 0:o.error;this.toastr.error(c&&104===c.code?c.msg||"This account has been deleted.":403===o.status?"This account has been deleted or is restricted.":"Something went wrong. Please try again.")})}onVerifyOtp(){const t=this.otpForm.controls.otp.value;if(!t||4!==t.length)return void this.toastr.error("Please enter a valid 4-digit OTP");this.loading=!0;const i=this.globalService.base_path_api()+"user/verify";this.http.post(i,{id:this.userId,phone:this.mobile,otp:t}).subscribe(c=>{this.loading=!1,c&&c.token?(this.userToken=c.token,this.step="confirm"):this.toastr.error("Invalid OTP. Please try again.")},c=>{this.loading=!1,this.toastr.error(400===c.status?"Invalid OTP. Please try again.":"Something went wrong. Please try again.")})}onDeleteAccount(){this.loading=!0;const t=this.globalService.base_path_api()+"user/requestAccountDeletion",i=(new p.WM).set("Authorization",this.userToken);this.http.post(t,{},{headers:i}).subscribe(()=>{this.loading=!1,localStorage.clear(),this.sharedService.userdata.next(null),this.step="done",this.toastr.success("Account delete request sent to admin")},()=>{this.loading=!1,this.toastr.error("Failed to delete account. Please try again.")})}resendOtp(){if(!this.resendDisabled){this.loading=!0;const t=this.globalService.base_path_api()+"user/resendotpforsignup";this.http.post(t,{id:this.userId,phone:this.mobile}).subscribe(()=>{this.loading=!1,this.toastr.success("OTP resent successfully"),this.startTimer()},()=>{this.loading=!1,this.toastr.error("Failed to resend OTP")})}}startTimer(){this.resendDisabled=!0,this.timer={m:1,s:0},this.timerInterval&&clearInterval(this.timerInterval),this.timerInterval=setInterval(()=>{if(0===this.timer.s){if(0===this.timer.m)return clearInterval(this.timerInterval),void(this.resendDisabled=!1);this.timer.m--,this.timer.s=59}else this.timer.s--},1e3)}ngOnDestroy(){this.timerInterval&&clearInterval(this.timerInterval)}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(r.qu),e.Y36(p.eN),e.Y36(g._W),e.Y36(m.U),e.Y36(h.F))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-delete-account"]],decls:16,vars:4,consts:[[1,"delete-account-page"],[1,"container"],[1,"row","justify-content-center","align-items-center","min-vh-100"],[1,"col-md-5"],[1,"text-center","mb-4"],["src","../../../assets/logo/fch_logo_at your service always_no_slogan-01.png","alt","Family Care Hospitals",2,"max-width","180px"],[1,"card","shadow"],[1,"card-body","py-5","px-4"],[4,"ngIf"],[1,"text-center","text-muted","mt-3",2,"font-size","12px"],[1,"text-center","mb-2"],[1,"text-center","text-muted","mb-4"],[3,"formGroup"],[1,"mb-3"],[1,"form-label","fw-bold"],["type","tel","formControlName","phone","placeholder","Enter 10-digit mobile number","maxlength","10",1,"form-control","input-style"],[1,"btn","btn-danger","w-100","mt-2",3,"disabled","click"],["class","spinner-border spinner-border-sm me-2",4,"ngIf"],[1,"spinner-border","spinner-border-sm","me-2"],["type","tel","formControlName","otp","placeholder","- - - -","maxlength","4",1,"form-control","input-style","text-center","otp-input",2,"letter-spacing","12px","font-size","24px"],[1,"text-center","mt-3"],["class","text-muted",4,"ngIf"],["class","resend-link",3,"click",4,"ngIf"],[1,"text-center","mt-2"],[1,"back-link",3,"click"],[1,"text-muted"],[1,"resend-link",3,"click"],[1,"text-center","text-danger","mb-2"],[1,"text-center","text-muted","mb-2"],[1,"warning-list","mb-4"],[1,"btn","btn-danger","w-100","mb-2",3,"disabled","click"],[1,"btn","btn-outline-secondary","w-100",3,"click"],[1,"text-center"],[1,"success-icon","mb-3"],[1,"mb-2"],[1,"text-muted","mb-4"],["href","/",1,"btn","btn-primary"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"div",3),e.TgZ(4,"div",4),e._UZ(5,"img",5),e.qZA(),e.TgZ(6,"div",6),e.TgZ(7,"div",7),e.YNc(8,f,13,3,"div",8),e.YNc(9,A,21,6,"div",8),e.YNc(10,v,22,2,"div",8),e.YNc(11,y,10,0,"div",8),e.qZA(),e.qZA(),e.TgZ(12,"p",9),e._uU(13," If you face any issues, contact us at "),e.TgZ(14,"strong"),e._uU(15,"022 4162 0832"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(8),e.Q6J("ngIf","phone"===i.step),e.xp6(1),e.Q6J("ngIf","otp"===i.step),e.xp6(1),e.Q6J("ngIf","confirm"===i.step),e.xp6(1),e.Q6J("ngIf","done"===i.step))},directives:[d.O5,r._Y,r.JL,r.sg,r.Fj,r.JJ,r.u,r.nD],styles:[".delete-account-page[_ngcontent-%COMP%]{background:linear-gradient(135deg,#fff5f5 0%,#ffffff 100%);min-height:100vh}.card[_ngcontent-%COMP%]{border:none;border-radius:12px}.input-style[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:8px;padding:12px 16px;font-size:16px;transition:border-color .2s}.input-style[_ngcontent-%COMP%]:focus{border-color:#e44b4b;box-shadow:0 0 0 3px #e44b4b1a}.btn-danger[_ngcontent-%COMP%]{background-color:#e44b4b;border-color:#e44b4b;padding:12px;font-size:16px;border-radius:8px}.btn-danger[_ngcontent-%COMP%]:hover{background-color:#c93c3c;border-color:#c93c3c}.btn-danger[_ngcontent-%COMP%]:disabled{opacity:.7}.btn-primary[_ngcontent-%COMP%]{background-color:#e44b4b;border-color:#e44b4b;padding:10px 30px;border-radius:8px}.btn-primary[_ngcontent-%COMP%]:hover{background-color:#c93c3c}.btn-outline-secondary[_ngcontent-%COMP%]{padding:12px;font-size:16px;border-radius:8px}.warning-list[_ngcontent-%COMP%]{padding-left:20px}.warning-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{color:#666;margin-bottom:8px;font-size:14px}.resend-link[_ngcontent-%COMP%]{color:#e44b4b;cursor:pointer;font-weight:500;text-decoration:underline}.back-link[_ngcontent-%COMP%]{color:#666;cursor:pointer;font-size:14px;text-decoration:underline}.success-icon[_ngcontent-%COMP%]{width:80px;height:80px;background:#28a745;color:#fff;border-radius:50%;font-size:40px;
1display:flex;align-items:center;justify-content:center;margin:0 auto}"]}),n})()}];let q=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[u.Bz.forChild(C)],u.Bz]}),n})(),D=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[d.ez,r.UX,q]]}),n})()}}]);

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.