PageSourceSearch

https://cs.deepspot.com/chunk-3H4DGIVO.js

js deepspot.com collected 2026-09-25 05:51:56 UTC 4,882 bytes, 1 lines download raw bytes

1import{a as oe}from"./chunk-XHFJMPHX.js";import"./chunk-TKPWKBO7.js";import{b as se}from"./chunk-7F7CQ3T6.js";import"./chunk-3KIBFUOB.js";import"./chunk-FVGWHIUL.js";import"./chunk-7LSWWGQ6.js";import"./chunk-KJFVSVJV.js";import"./chunk-QEQWDA2S.js";import"./chunk-GSD2THDV.js";import"./chunk-GL7ZQ2Q2.js";import"./chunk-M5JFYNO2.js";import{a as X}from"./chunk-VRQCEM3N.js";import"./chunk-R4RIFPS7.js";import"./chunk-LQPVC6TE.js";import{a as ne}from"./chunk-4CDZQ573.js";import{a as re}from"./chunk-YKAJZNUN.js";import"./chunk-OOFERXZQ.js";import"./chunk-GMC3N5PH.js";import"./chunk-YFKTF63F.js";import"./chunk-MIQ3WWTD.js";import{n as Z,o as ee}from"./chunk-M7UMP5MP.js";import{b as ae}from"./chunk-6QHN7KUF.js";import"./chunk-YKTLTD6Y.js";import{a as S}from"./chunk-J6ROVGCM.js";import"./chunk-QW6RBYKP.js";import{d as U,f as O,g as z,k as H,p as J,q as K,s as g,u as Q}from"./chunk-PQJAW7X6.js";import{a as _}from"./chunk-6VUZ4OH3.js";import{a as Y}from"./chunk-QUXFE72Y.js";import"./chunk-VHQPUEP2.js";import"./chunk-YS6IX3SW.js";import"./chunk-UG5DMWGE.js";import{a as b}from"./chunk-FND3TOHC.js";import"./chunk-YNU7DYGR.js";import{c as P}from"./chunk-LXXGNWFD.js";import"./chunk-KMBBXQPR.js";import"./chunk-5DD2CBKU.js";import"./chunk-55B7ITJS.js";import"./chunk-U33HOEWS.js";import{a as W}from"./chunk-FDYDQEX6.js";import"./chunk-VZCVVUL4.js";import"./chunk-BQZZT5L5.js";import"./chunk-7QNKW7A4.js";import{a as ie,b as R}from"./chunk-XTUA4MTS.js";import"./chunk-XKUODX4J.js";import{k as w,m as C}from"./chunk-6RBB6QDM.js";import{k as x,l as te,n as I}from"./chunk-YBP2R3LC.js";import{S as G,l as q,v as V}from"./chunk-GGQGPQGW.js";import{$b as f,Cc as v,Dc as y,Eb as u,Ec as $,Yb as s,Zb as n,_b as a,dc as T,ec as D,gc as M,i as F,ib as o,j as A,lc as L,nc as h,qa as E,ra as j,rb as r,s as B,yb as k}from"./chunk-JYRWMYEW.js";import"./chunk-NMDLJX5Q.js";function de(i,d){if(i&1&&(n(0,"small",12),v(1),a()),i&2){let e=h(2).$implicit;o(),y(e("common.form.passwordRequired"))}}function pe(i,d){if(i&1&&(T(0),u(1,de,2,1,"small",11),D()),i&2){let e=d.ngIf;o(),s("ngIf",e.required)}}function le(i,d){if(i&1){let e=M();n(0,"div",1)(1,"xspot-app-auth-navigation",2),f(2,"xspot-app-language-currency-select",3),a(),n(3,"div",4)(4,"h3",5),v(5),a(),n(6,"p"),v(7),a(),n(8,"form",6),L("submit",function(){E(e);let m=h();return j(m.resetPassword())}),n(9,"div",7),f(10,"xspot-app-password",8),u(11,pe,2,1,"ng-container",9),a(),f(12,"p-button",10),a()()()}if(i&2){let e=d.$implicit,t=h();o(),s("hasBackButton",!1),o(),s("useCircleButton",!0),o(3),y(e("auth.resetPassword")),o(2),$(" ",e("auth.resetPasswordDescription")," "),o(),s("formGroup",t.resetPasswordForm),o(3),s("ngIf",t.passwordControl.touched&&t.passwordControl.errors),o(),s("disabled",t.resetPasswordForm.invalid)("label",e("auth.next"))("loading",t.isLoading)}}var De=(()=>{let i=class N{get passwordControl(){return this.resetPasswordForm.controls.password}constructor(e,t,m,c,p,l,me,ce){this.authService=e,this.store=t,this.fb=m,this.route=c,this.actions$=p,this.router=l,this.notificationService=me,this.sessionIdService=ce,this.isLoading=!1,this.resetPasswordForm=this.fb.group({password:this.fb.control(W.empty,[U.required])})}ngOnInit(){B([this.route.queryParams,this.authService.isAuthenticated$,this.authService.accessToken$]).pipe(R(this)).subscribe(([e,t,m])=>{let c=e.userId,p=e.token;if(!c||!p)throw new Error("userid or user-token is null or empty");if(this.userId=c,this.token=p,t){let l=Y(m);l.userId&&l.userId!==c&&(this.store.dispatch(new b.Logout),this.sessionIdService.clearSessionId())}}),this.actions$.pipe(R(this),te(b.ResetPasswordConfirm)).subscribe(()=>{this.notificationService.showSuccessNotification("notification.success.auth.resetPasswordSuccess"),this.router.navigate(["/auth"])})}resetPassword(){if(this.resetPasswordForm.invalid){X(this.resetPasswordForm);return}let{password:e}=this.resetPasswordForm.value;if(!e)throw new Error("Password is required");this.store.dispatch(new b.ResetPasswordConfirm({userId:this.userId,token:this.token,newPassword:e})),this.isLoading=!0}static{this.\u0275fac=function(t){return new(t||N)(r(P),r(I),r(g),r(w),r(x),r(C),r(_),r(S))}}static{this.\u0275cmp=k({type:N,selectors:[["xspot-app-reset-password-confirm"]],decls:1,vars:0,consts:[["class","p-4",4,"transloco"],[1,"p-4"],[3,"hasBackButton"],[3,"useCircleButton"],[1,"flex","flex-column","gap-4"],[1,"text-2xl"],[1,"flex","flex-column","gap-4",3,"submit","formGroup"],[1,"form-control"],["formControlName","password"],[4,"ngIf"],["type","submit","styleClass","w-full border-round-lg",3,"disabled","label","loading"],["class","text-error",4,"ngIf"],[1,"text-error"]],template:function(t,m){t&1&&u(0,le,13,9,"div",0)},dependencies:[V,q,ne,oe,ee,Z,G,se,Q,H,O,z,K,J,ae,re],encapsulation:2})}};return i=F([ie(),A("design:paramtypes",[P,I,g,w,x,C,_,S])],i),i})();export{De as ResetPasswordConfirmComponent};

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.