1import{c as x,d as k}from"./chunk-4MHYHNBE.js";import{b as D,d as T,e as L,f as q}from"./chunk-B4HBB6J6.js";import{$e as P,Ae as v,Da as A,Fg as R,Gd as y,Nf as U,R as E,dh as S,eh as p,fh as M,ka as m,na as h,sa as u,ta as j,ua as d,v as C,va as s,yf as F}from"./chunk-ADQO3XXX.js";var _=new d("UserProfileNormalizer"),ee=new d("UserProfileSerializer"),te=new d("UserSerializer"),re=new d("UserSignUpSerializer"),ie=new d("TitleNormalizer"),I=class{},f=(()=>{let e=class e{constructor(t){this.userProfileAdapter=t}update(t,r){return this.userProfileAdapter.update(t,r)}register(t){return this.userProfileAdapter.register(t)}registerGuest(t,r){return this.userProfileAdapter.registerGuest(t,r)}requestForgotPasswordEmail(t){return this.userProfileAdapter.requestForgotPasswordEmail(t)}resetPassword(t,r){return this.userProfileAdapter.resetPassword(t,r)}updateEmail(t,r,n){return this.userProfileAdapter.updateEmail(t,r,n)}updatePassword(t,r,n){return this.userProfileAdapter.updatePassword(t,r,n)}remove(t){return this.userProfileAdapter.close(t)}getTitles(){return this.userProfileAdapter.loadTitles()}};e.\u0275fac=function(r){return new(r||e)(s(I))},e.\u0275prov=u({token:e,factory:e.\u0275fac});let i=e;return i})(),G=(()=>{let e=class e{constructor(t,r,n){this.userIdService=t,this.userProfileConnector=r,this.command=n,this.updateCommand=this.command.create(o=>this.userIdService.takeUserId(!0).pipe(m(a=>this.userProfileConnector.updateEmail(a,o.password,o.newUid))),{strategy:S.Queue})}update(t,r){return this.updateCommand.execute({password:t,newUid:r})}};e.\u0275fac=function(r){return new(r||e)(s(v),s(f),s(p))},e.\u0275prov=u({token:e,factory:e.\u0275fac});let i=e;return i})(),N=(()=>{let e=class e{constructor(t,r,n){this.userProfileConnector=t,this.userIdService=r,this.command=n,this.updateCommand=this.command.create(o=>this.userIdService.takeUserId(!0).pipe(E(1),m(a=>this.userProfileConnector.updatePassword(a,o.oldPassword,o.newPassword)))),this.resetCommand=this.command.create(o=>this.userProfileConnector.resetPassword(o.token,o.password)),this.requestForgotPasswordEmailCommand=this.command.create(o=>this.userProfileConnector.requestForgotPasswordEmail(o.email))}update(t,r){return this.updateCommand.execute({oldPassword:t,newPassword:r})}reset(t,r){return this.resetCommand.execute({token:t,password:r})}requestForgotPasswordEmail(t){return this.requestForgotPasswordEmailCommand.execute({email:t})}};e.\u0275fac=function(r){return new(r||e)(s(f),s(v),s(p))},e.\u0275prov=u({token:e,factory:e.\u0275fac});let i=e;return i})(),w=(()=>{let e=class e{constructor(t,r,n,o,a,c,g){this.userAccountService=t,this.authService=r,this.userProfileConnector=n,this.eventService=o,this.userIdService=a,this.query=c,this.command=g,this.updateCommand=this.command.create(l=>this.userIdService.takeUserId(!0).pipe(m(z=>this.userProfileConnector.update(z,l.details).pipe(h(()=>{this.eventService.dispatch({user:l.details},k)})))),{strategy:S.Queue}),this.closeCommand=this.command.create(()=>this.userIdService.takeUserId(!0).pipe(m(l=>this.userProfileConnector.remove(l).pipe(h(()=>this.authService.logout()))))),this.titleQuery=this.query.create(()=>this.userProfileConnector.getTitles(),{reloadOn:[R]})}get(){return this.userAccountService.get()}update(t){return this.updateCommand.execute({details:t})}close(){return this.closeCommand.execute(void 0)}getTitles(){return this.titleQuery.get().pipe(C(t=>t??[]))}};e.\u0275fac=function(r){return new(r||e)(s(x),s(P),s(f),s(F),s(v),s(M),s(p))},e.\u0275prov=u({token:e,factory:e.\u0275fac});let i=e;return i})(),b=(()=>{let e=class e{constructor(t,r,n,o,a){this.userProfile=t,this.userConnector=r,this.authService=n,this.command=o,this.store=a,this.registerCommand=this.command.create(({user:c})=>this.userConnector.register(c).pipe(h(()=>{this.store.dispatch(new U.RegisterUserSuccess)}))),this.registerGuestCommand=this.command.create(c=>this.userConnector.registerGuest(c.guid,c.password).pipe(h(g=>{this.authService.loginWithCredentials(g.uid,c.password)})))}register(t){return this.registerCommand.execute({user:t})}registerGuest(t,r){return this.registerGuestCommand.execute({guid:t,password:r})}getTitles(){return this.userProfile.getTitles()}};e.\u0275fac=function(r){return new(r||e)(s(w),s(f),s(P),s(p),s(y))},e.\u0275prov=u({token:e,factory:e.\u0275fac});let i=e;return i})(),O=[G,N,w,b,{provide:T,useExisting:G},{provide:L,useExisting:N},{provide:D,useExisting:w},{provide:q,useExisting:b}],se=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=A({type:e}),e.\u0275inj=j({providers:[f,...O]});let i=e;return i})();export{_ as a,ee as b,re as c,ie as d,I as e,f,w as g,se as h};
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.