PageSourceSearch

https://www.clappins.com/chunk-FEHHYILI.js

js clappins.com collected 2026-10-07 02:42:25 UTC 3,692 bytes, 1 lines download raw bytes

1import{b as H,c as Q,e as j}from"./chunk-KIJSWYXO.js";import{Ba as V,R as E,S as R,V as W,Y as T,Z as D,_ as B,ba as I,da as p,ga as L,ha as k,la as q,pa as A,ra as G,ya as O}from"./chunk-T7FTO4ZT.js";import{wc as N}from"./chunk-N3JPRHSX.js";import{N as M,P as F}from"./chunk-GXUYPSLH.js";import{Ea as P,Fc as y,Nb as x,Ob as s,Pb as l,Ub as g,Vb as o,Vc as b,Wb as a,Xb as d,fc as _,lb as n,oa as c,sc as S,uc as m,wc as v,xb as w}from"./chunk-L5EHHOG3.js";import"./chunk-LWLSKGAV.js";import{a as h,b as C}from"./chunk-66YHNWRR.js";function U(i,e){i&1&&d(0,"i",8)}function J(i,e){i&1&&d(0,"i",9)}function K(i,e){i&1&&(o(0,"span",14),m(1,"\u5FC5\u586B"),a())}function X(i,e){i&1&&(o(0,"span"),m(1),a()),i&2&&(n(),v("\u81F3\u5C11",e.requiredLength,"\u78BC"))}function Y(i,e){if(i&1&&(o(0,"mat-error"),d(1,"i",13),s(2,K,2,0,"span",14),s(3,X,2,1,"span"),a()),i&2){let r,t=e;n(2),l(t.required?2:-1),n(),l((r=t.minlength)?3:-1,r)}}function Z(i,e){i&1&&(o(0,"div",12),d(1,"i",15),a())}var u=class u{constructor(){this.fb=c(O);this.route=c(M);this.router=c(F);this.form=this.fb.group({email:[this.route.snapshot.queryParams.email,[p.required,p.email]],code:[this.route.snapshot.queryParams.pwd,[p.required]],password:["",[p.required,p.minLength(8)]]});this.state=P({hidePW:!1,processing:!1});this.hidePW=b(()=>this.state().hidePW);this.processing=b(()=>this.state().processing);this.changePwGQL=c(N);this.toggleHidePW=()=>this.state.update(e=>C(h({},e),{hidePW:!e.hidePW}));this.changePW=()=>{this.form.invalid||(this.state.update(e=>C(h({},e),{processing:!0})),this.changePwGQL.mutate({email:this.form.value.email,code:this.form.value.code,password:this.form.value.password}).subscribe(()=>{this.router.navigate(["/"]),this.state.update(e=>C(h({},e),{processing:!1}))}))}}};u.\u0275fac=function(r){return new(r||u)},u.\u0275cmp=w({type:u,selectors:[["clappins-reset-password"]],features:[y([{provide:T,useValue:{appearance:"outline"}}])],decls:20,vars:11,consts:[[1,"form-field","x-padding"],[1,"x-padding","flex","min-h-[80vh]","items-center","justify-center","bg-white"],[1,"w-full","md:max-w-lg",3,"ngSubmit","formGroup"],[1,"mb-12","text-center","text-xl","font-medium"],[1,"mb-12","text-center","text-xl","font-medium","text-gray-500"],[1,"mb-24","block"],["matInput","","name","password","formControlName","password","autocomplete","new-password","autofocus","",3,"type"],["matSuffix","","type","button",3,"click"],[1,"ph","ph-eye"],[1,"ph","ph-eye-slash"],[1,"text-center"],["type","submit",1,"bn","bn-default"],[1,"absolute","left-1/2","top-1/2","-translate-x-1/2","-translate-y-1/2"],[1,"ph","ph-warning","mr-1"],[1,"mr-2"],[1,"ph","ph-circle-notch","block","animate-spin","text-2xl"]],template:function(r,t){if(r&1&&(o(0,"div",0)(1,"div",1)(2,"form",2),_("ngSubmit",function(){return t.changePW()}),o(3,"div",3),m(4,"\u91CD\u8A2D\u5BC6\u78BC"),a(),o(5,"div",4),m(6),a(),o(7,"mat-form-field",5)(8,"mat-label"),m(9,"\u5BC6\u78BC"),a(),d(10,"input",6),o(11,"button",7),_("click",function(){return t.toggleHidePW()}),s(12,U,1,0,"i",8),s(13,J,1,0,"i",9),a(),s(14,Y,4,2,"mat-error"),a(),o(15,"div",10)(16,"button",11),s(17,Z,2,0,"div",12),o(18,"span"),m(19,"\u78BA\u5B9A"),a()()()()()()),r&2){let f;n(2),g("formGroup",t.form),n(4),v(" ",t.form.controls.email.value," "),n(4),g("type",t.hidePW()?"password":"text"),n(),x("aria-label","Hide password")("aria-pressed",t.hidePW()),n(),l(t.hidePW()?-1:12),n(),l(t.hidePW()?13:-1),n(),l((f=t.form.controls.password.errors)?14:-1,f),n(3),l(t.processing()?17:-1),n(),S("invisible",t.processing())}},dependencies:[V,q,I,L,k,A,G,B,D,E,R,W,Q,H,j],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0});var z=u;export{z as ResetPasswordComponent};

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.