PageSourceSearch

https://ttb.org/5098.1213915548fc5b3f.js

js ttb.org collected 2026-09-24 09:36:35 UTC 5,262 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[5098],{45098(R,h,s){s.d(h,{DeleteUserAccountPage:()=>U});var u=s(55537),c=s(44923),_=s(49458),d=s(99788),p=s(61e3),m=s(47762),v=s(15346),o=s(83534),r=s(30299),e=s(10599),P=s(68554),g=s(20995);function E(n,x){if(1&n){const t=e.RV6();e.j41(0,"ion-card",5)(1,"div",6)(2,"h5",7),e.EFF(3),e.nI1(4,"translate"),e.j41(5,"span",8),e.EFF(6),e.k0s(),e.EFF(7),e.nI1(8,"translate"),e.k0s()(),e.j41(9,"div",9)(10,"ion-button",10),e.bIt("click",function(){r.eBV(t);const a=e.XpG();return r.Njj(a.deleteUserProfile())}),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"ion-button",11),e.bIt("click",function(){r.eBV(t);const a=e.XpG();return r.Njj(a.onClickPage())}),e.EFF(14),e.nI1(15,"translate"),e.k0s()()()}if(2&n){const t=e.XpG();e.R7$(3),e.SpI(" ",e.bMT(4,5,"Are_you_sure_you_want_to_delete")),e.R7$(3),e.JRh(t.user_name),e.R7$(),e.SpI("",e.bMT(8,7,"account?")," "),e.R7$(4),e.JRh(e.bMT(12,9,"PROFILE.yes")),e.R7$(3),e.SpI(" ",e.bMT(15,11,"PROFILE.no"))}}let U=(()=>{class n{constructor(t,i,a,f,D,C,M,O,I,b){this.observable_service=t,this.route=i,this.router=a,this.app_theme_service=f,this.auth_service=D,this.app_service=C,this.common_component_service=M,this.appThemeService=O,this.translateService=I,this.ism_auth_service=b,this.login_user=!1,this.loginUser=!1,this.station_id="",this.user_name="",this.home_page=[],this.payload={donor_id:"",station_id:""},this.route.params.subscribe(l=>{this.station_id=l.station_id}),this.observable_service.user_login_status.subscribe(l=>{if(localStorage.getItem("loginUserData")){const T=localStorage.getItem("loginUserData");this.user_data=JSON.parse(T)}this.handleLoginStatus(l)})}ionViewWillEnter(){this.translateService.get("ALERTS").subscribe(t=>{this.alert_message=t})}handleLoginStatus(t){setTimeout(()=>{t?this.getUserDetails():this.station_id&&!localStorage.getItem("loginUserData")?this.goToLoginPage():this.station_id&&localStorage.getItem("loginUserData")&&this.user_data.station_id.toString()===this.station_id.toString()?this.getUserDetails():this.station_id&&localStorage.getItem("loginUserData")&&this.user_data.station_id.toString()!==this.station_id.toString()&&this.goToLoginPage()},500)}performFullAuthReset(){this.auth_service.logoutUser(),localStorage.removeItem("access_token"),this.ism_auth_service.resetAuthFlowForSignup(),this.observable_service.setLoginStatus({status:!1,data:null})}deleteUserProfile(){this.payload.station_id=this.station_id,this.payload.donor_id=this.user_data.id,localStorage.getItem("loginUserData")?this.auth_service.deleteProfile(this.payload).subscribe(t=>{t.status?(this.performFullAuthReset(),this.common_component_service.presentToast("bottom",this.alert_message.ACCOUNT_DELETED_SUCCESSFULLY,"success"),setTimeout(()=>{this.router.navigate(["/auth-main"],{replaceUrl:!0})},500)):(this.performFullAuthReset(),this.common_component_service.presentToast("bottom",t.message,"warning"),this.router.navigate(["/auth-main"],{replaceUrl:!0}))}):(this.login_user=!1,this.performFullAuthReset(),this.router.navigate(["/auth-main"],{replaceUrl:!0}))}onClickPage(){this.app_service.navigation(this.home_page[0].id,this.home_page[0].name)}goToLoginPage(){this.router.navigate(["/auth-main"],{skipLocationChange:!0})}getUserDetails(){const t=localStorage.getItem("loginUserData");this.user_data=JSON.parse(t),this.user_name=this.user_data.first_last_name,this.observable_service.station_detail.subscribe(i=>{this.home_page=i.pages.filter(a=>"Home"===a.name&&"home"===a.page_type)})}static{this.\u0275fac=function(i){return new(i||n)(e.rXU(P.s),e.rXU(g.nX),e.rXU(g.Ix),e.rXU(c.g),e.rXU(d.u),e.rXU(p.d),e.rXU(m.F),e.rXU(c.g),e.rXU(_.c$),e.rXU(v.x))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-delete-user-account"]],decls:5,vars:5,consts:[[3,"fullscreen"],[1,"page-wrapper"],[1,"ion-justify-content-center"],[3,"size","sizeMd","sizeLg"],["class","cCard cCard--login",4,"ngIf"],[1,"cCard","cCard--login"],[1,"ion-text-center","mb-30"],[1,"no-uppercase"],[1,"blue-text"],[1,"ion-margin-bottom","flex-row"],["color","primary","fill","solid","expand","block","size","large",1,"rounded-1","full-width",3,"click"],["color","primary","fill","solid","size","large",1,"rounded-1","full-width",3,"click"]],template:function(i,a){1&i&&(e.j41(0,"ion-content",0)(1,"div",1)(2,"ion-row",2)(3,"ion-col",3),e.DNE(4,E,16,13,"ion-card",4),e.k0s()()()()),2&i&&(e.Y8G("fullscreen",!0),e.R7$(3),e.Y8G("size",12)("sizeMd",8)("sizeLg",6),e.R7$(),e.Y8G("ngIf",""!==a.user_name))},dependencies:[o.W9,o.ln,o.hU,o.b_,o.Jm,u.bT,_.h,_.D9],styles:[".cCard--login[_ngcontent-%COMP%]{padding:55px 60px 40px;border-radius:20px;width:500px;margin:80px auto 0}@media screen and (max-width:575.98px){.cCard--login[_ngcontent-%COMP%]{width:100%;margin-top:40px;padding:30px 20px}}.cCard--login[_ngcontent-%COMP%]   .imgDiv[_ngcontent-%COMP%]{width:200
1px;height:70px}.cCard--login[_ngcontent-%COMP%]   .blue-text[_ngcontent-%COMP%]{color:#00f}.cCard--login[_ngcontent-%COMP%]   .flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center}.cCard--login[_ngcontent-%COMP%]   .full-width[_ngcontent-%COMP%]{width:100%}.cCard--login[_ngcontent-%COMP%]   .no-uppercase[_ngcontent-%COMP%]{text-transform:none}"]})}}return 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.