1import{b as D,r as n,j as x,B as I,L as P,I as N,c as F,d as U,f as X}from"./index-CjJlg5IG.js";import{P as O,v as Q}from"./PasswordRequirements-Dexwc6hO.js";import{A as Y}from"./AuthSplitLayout-CyWCkoSV.js";import{H as L}from"./typography-hRCJH4ul.js";import{C as V}from"./circle-check-BKipjJTc.js";import{A as T}from"./arrow-right-DmQ2DNU3.js";import{A}from"./arrow-left-COFtAqdF.js";import{M as W}from"./mail-COlebbYx.js";import{E}from"./eye-off-C9L_jTXM.js";import{E as B}from"./eye-Dy-AuY_p.js";(function(e,s){const a=c,t=e();for(;;)try{if(parseInt(a(319))/1*(parseInt(a(310))/2)+-parseInt(a(325))/3*(-parseInt(a(272))/4)+-parseInt(a(247))/5+parseInt(a(328))/6*(-parseInt(a(278))/7)+parseInt(a(254))/8+-parseInt(a(270))/9*(parseInt(a(281))/10)+parseInt(a(303))/11===s)break;t.push(t.shift())}catch{t.push(t.shift())}})(b,276774);const $=(function(){let e=!0;return function(s,a){const t=e?function(){const o=c;if(a){const h=a[o(263)](s,arguments);return a=null,h}}:function(){};return e=!1,t}})(),_=$(void 0,function(){const e=c;return _.toString()[e(287)](e(324))[e(288)]()[e(268)](_)[e(287)](e(324))});_();function c(e,s){const a=b();return c=function(t,o){return t=t-245,a[t]},c(e,s)}function b(){const e=["label","restore access","354BNvBHY","Show password","value","new-password","message","auth.resetPassword","mb-8 flex items-center gap-2 lg:hidden","email","Hide password","1801kIGsst","Enter your email and new password. We'll send a verification link to confirm the change.","/TikHub_Logo_No_Background.png","[email protected]","mb-8 rounded-lg border border-success/20 bg-success/10 px-4 py-3 text-sm text-success","(((.+)+)+)+$","771051dFDvpH","auth.email","target","30oXmeXl","font-semibold text-lg tracking-tight text-foreground","text","2507455iqQfnD","confirm-password","mb-8","auth.tryAgain","auth.backToLogin","password","h-4 w-4","409576pwVpNT","auth.passwordMismatch","å¯ç é置失败ï¼è¯·éè¯ã","Reset your password,","è¾å
¥æ¨çé®ç®±åæ°å¯ç ï¼æä»¬å°åééªè¯é¾æ¥å°æ¨çé®ç®±ä»¥ç¡®è®¤æ´æ¹ã","mt-8 text-center text-sm text-muted-foreground","privacy","æ¾ç¤ºå¯ç ","div","apply","h-6 w-6 text-success","resetPassword","button","w-full","constructor","common.success","140031PTTxFn","éèå¯ç ","4GsMXPl","span","text-sm font-medium text-foreground","ACCOUNT SECURITY","inline-flex items-center gap-1.5 font-medium text-foreground hover:underline underline-offset-4","h-11 pl-9 pr-10","685986UvGaGl","relative","h-7 w-auto","270ybjghd","text-center","absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground transition-colors","idle","TikHub","img","search","toString","success","space-y-5","submit","mb-2","common.processing","length","pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground","æ¢å¤å®å
¨è®¿é®","auth.enterEmailAndPassword","space-y-1.5","/login","mb-6 rounded-lg border border-destructive/20 bg-destructive/10 px-4 py-3 text-sm text-destructive","éç½®å¯ç ï¼","h-3.5 w-3.5","11674927QPjLTS","â¢â¢â¢â¢â¢â¢â¢â¢","h-4 w-4 animate-spin","curious","common.error"];return b=function(){return e},b()}function oe(){const e=c,{t:s,language:a}=D(),t=a==="zh",[o,h]=n.useState(""),[f,w]=n.useState(""),[g,y]=n.useState(""),[i,H]=n.useState(!1),[d,R]=n.useState(!1),[v,S]=n.useState(!1),[q,k]=n.useState(!1),[p,u]=n.useState(null),[C,m]=n.useState(!1),M=n.useMemo(()=>{const r=c;return p?"error":r(i||d?260:C?306:284)},[p,i,d,C]),G=async r=>{const l=c;if(r.preventDefault(),u(null),f!==g){u(s(l(255)));return}if(Q(f)[l(294)]>0){u(s("auth.passwordNotMeetRequirements"));return}S(!0);try{const j=await X[l(265)]({email:o,new_password:f,confirm_password:g});j.status===l(289)?k(!0):u(j[l(314)]||s(l(307)))}catch{u(t?l(256):"Password reset failed, please retry.")}finally{S(!1)}},z={eyebrowPhrases:t?["è´¦æ·å®å
¨"]:[e(275)],headlinePre:e(t?301:257),headlineFocus:e(t?296:309),subhead:e(t?258:320)};return x.jsxs(Y,{panel:z,interactionState:M,children:[x.jsxs("div",{className:e(316),children:[x.jsx(e(286),{src:e(321),alt:"TikHub",className:e(280)}),x.jsx(e(273),{className:e(245),children:e(285)})]}),q?x.jsxs(e(262),{children:[x.jsx(e(262),{className:"w-12 h-12 rounded-full flex items-center justify-center mb-6 bg-success/10",children:x.jsx(V,{className:e(264)})}),x.jsx(L,{className:e(292),children:s(e(269))}),x.jsx(e(262),{className:e(323),children:s("auth.resetEmailSent",{email:o})}),x.jsxs(I,{onClick:()=>{k(!1),w(""),y(""),u(null)},size:"lg",className:"w-full mb-4",children:[s(e(250)),x.jsx(T,{className:e(253)})]}),x.jsx(e(262),{className:e(282),children:x.jsxs(P,{to:e(299),className:"inline-flex items-center gap-1.5 text-sm text-muted-foreground hover:text-foreground hover:underline underline-offset-4",children:[x.jsx(A,{className:e(302)}),s(e(251))]})})]}):x.jsxs(x.Fragment,{children:[x.jsxs(e(262),{className:e(249),children:[x.jsx(L,{className:e(292),children:s(e(315))}),x.jsx("p",{className:"text-sm text-muted-foreground",children:s(e(297))})]}),p&&x.jsx("div",{className:e(300),children:p}),x.jsxs("form",{onSubmit:G,className:e(290),children:[x.jsxs(e(262),{className:e(298),children:[x.jsx("label",{htmlFor:e(317),className:"text-sm font-medium text-foreground",children:s(e(326))}),x.jsxs(e(262),{className:e(279),children:[x.jsx(W,{className:e(295)}),x.jsx(N,{id:e(317),type:"email",autoComplete:"email",placeholder:e(322),value:o,onChange:r=>h(r[e(327)][e(312)]),onFocus:()=>m(!0),onBlur:()=>m(!1),required:!0,className:"h-11 pl-9"})]})]}),x.jsxs(e(262),{className:e(298),children:[x.jsx(e(308),{htmlFor:e(313),className:"text-sm font-medium text-foreground",children:s("auth.newPassword")}),x.jsxs(e(262),{className:"relative",children:[x.jsx(F,{className:e(295)}),x.jsx(N,{id:"new-password",type:e(i?246:252),autoComplete:e(313),placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢",value:f,onChange:r=>w(r.target[e(312)]),onFocus:()=>m(!0),onBlur:()=>m(!1),required:!0,minLength:9,className:e(277)}),x.jsx("button",{type:e(266),onClick:()=>H(!i),className:e(283),"aria-label":i?e(t?271:318):t?"æ¾ç¤ºå¯ç ":e(311),children:i?x.jsx(E,{className:e(253)}):x.jsx(B,{className:e(253)})})]}),x.jsx(O,{password:f})]}),x.jsxs(e(262),{className:e(298),children:[x.jsx(e(308),{htmlFor:e(248),className:e(274),children:s("auth.confirmPassword")}),x.jsxs(e(262),{className:e(279),children:[x.jsx(F,{className:e(295)}),x.jsx(N,{id:e(248),type:e(d?246:252),autoComplete:e(313),placeholder:e(304),value:g,onChange:r=>y(r[e(327)][e(312)]),onFocus:()=>m(!0),onBlur:()=>m(!1),required:!0,minLength:9,className:e(277)}),x.jsx(e(266),{type:e(266),onClick:()=>R(!d),className:e(283),"aria-label":e(d?t?271:318:t?261:311),children:d?x.jsx(E,{className:e(253)}):x.jsx(B,{className:e(253)})})]})]}
1),x.jsx(I,{type:e(291),disabled:v,size:"lg",className:e(267),children:v?x.jsxs(x.Fragment,{children:[x.jsx(U,{className:e(305)}),s(e(293))]}):x.jsxs(x.Fragment,{children:[s(e(315)),x.jsx(T,{className:e(253)})]})})]}),x.jsx("p",{className:e(259),children:x.jsxs(P,{to:e(299),className:e(276),children:[x.jsx(A,{className:"h-3.5 w-3.5"}),s("auth.backToLogin")]})})]})]})}export{oe as default};
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.