PageSourceSearch

https://xyc.ai/static/js/async/6449.a234b7e334.js

js xyc.ai collected 2026-10-05 14:40:05 UTC 5,746 bytes, 1 lines download raw bytes

1"use strict";(self.rspackChunknewapi_web=self.rspackChunknewapi_web||[]).push([[6449],{74657(e,s,a){a.d(s,{D:()=>o});var t=a(72361),l=a(3773),r=a(13260),i=a(14317);function n(e){let{className:s}=e;return(0,t.jsx)("svg",{"aria-hidden":!0,width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",className:`text-primary pointer-events-none absolute z-10 ${s??""}`,children:(0,t.jsx)("path",{d:"M6.5 1v11M1 6.5h11",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round"})})}function o(e){let{children:s,contentClassName:a,hideBottomGuide:o=!1}=e,{lang:d,selectLanguage:c}=(0,i.B)(),x=(0,l.P)(d);return(0,t.jsxs)("div",{className:"xycai-auth bg-background relative min-h-svh",lang:"zh"===d?"zh-CN":"en",dir:"ltr",children:[(0,t.jsx)(r.X,{lang:d,onLangChange:c,solid:!0}),(0,t.jsxs)("div",{className:"auth-layout-body flex w-full",children:[(0,t.jsxs)("div",{className:"relative flex w-full flex-col lg:w-[520px] lg:shrink-0 xl:w-[560px]",children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"bg-border pointer-events-none absolute top-6 bottom-6 left-7 hidden w-px lg:block"}),!o&&(0,t.jsx)("span",{"aria-hidden":!0,className:"bg-border pointer-events-none absolute right-0 bottom-24 left-3 hidden h-px lg:block"}),(0,t.jsx)(n,{className:"top-6 left-7 hidden -translate-x-1/2 -translate-y-1/2 lg:block"}),o?(0,t.jsx)(n,{className:"bottom-6 left-7 hidden -translate-x-1/2 translate-y-1/2 lg:block"}):(0,t.jsx)(n,{className:"bottom-24 left-7 hidden -translate-x-1/2 translate-y-1/2 lg:block"}),(0,t.jsx)("div",{className:"flex flex-1 flex-col justify-center px-6 py-10 sm:px-12",children:(0,t.jsx)("div",{className:a??"mx-auto w-full max-w-[360px] space-y-6",children:s})})]}),(0,t.jsxs)("div",{className:"border-border bg-background-secondary relative hidden flex-1 overflow-hidden border-l lg:block",children:[(0,t.jsxs)("div",{className:"relative z-10 max-w-[560px] px-14 pt-16",children:[(0,t.jsx)("h2",{className:"text-text-primary text-xl font-semibold",children:x.meta.title}),(0,t.jsx)("p",{className:"bg-primary text-primary-foreground mt-3 inline-block rounded-lg rounded-br-[14px] px-3.5 py-2 text-xs leading-relaxed font-medium [corner-shape:round_round_bevel_round]",children:x.hero.smartKeyBanner}),(0,t.jsx)("p",{className:"text-text-secondary mt-3 text-sm leading-relaxed",children:x.hero.description})]}),(0,t.jsxs)("div",{className:"auth-showcase-frame",children:[(0,t.jsxs)("div",{className:"auth-showcase-chrome",children:[(0,t.jsx)("span",{}),(0,t.jsx)("span",{}),(0,t.jsx)("span",{})]}),(0,t.jsx)("div",{className:"auth-showcase-body",style:{"--auth-showcase-image":"url('/auth-showcase-v2.png')"}})]}),(0,t.jsx)("p",{className:"text-text-tertiary absolute bottom-6 left-14 z-10 text-xs",children:"© 2025–2026 XycAi INC. 保留所有权利。"})]})]})]})}},77861(e,s,a){a.d(s,{L:()=>j});var t=a(72361),l=a(68413),r=a(82799),i=a(6702),n=a(20598),o=a(64577),d=a(3075),c=a(61631),x=a(36375),h=a(77405),m=a(46775),p=a(23780),u=a(54023),f=a(61309),w=a(74657);function j(e){let{email:s,token:a}=e,{t:j}=(0,i.Bd)(),b=(0,r.Z)(),[v,g]=(0,l.useState)(""),[N,y]=(0,l.useState)(!1),[k,C]=(0,l.useState)(!1),{secondsLeft:P,isActive:z,start:B}=(0,x.L)({initialSeconds:30}),L=!!(s&&a);async function S(){if(!L||!s||!a)return void n.oR.error(j("Invalid reset link, please request a new password reset"));B(),y(!0);try{let e=await o.FH.post("/api/user/reset",{email:s,token:a},{skipBusinessError:!0});if(e?.data?.success){let s=e.data.data;g(s),await (0,d.l)(s)?n.oR.success(j("Password reset and copied to clipboard: {{password}}",{password:s})):n.oR.success(j("Password reset: {{password}}",{password:s}))}}catch{}finally{y(!1)}}async function R(){!v||await (0,d.l)(v)&&(C(!0),n.oR.success(j("Password copied to clipboard: {{password}}",{password:v})),setTimeout(()=>C(!1),2e3))}return(0,t.jsx)(w.D,{children:(0,t.jsxs)("div",{className:"w-full space-y-8",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("h2",{className:"text-center text-2xl font-semibold tracking-tight sm:text-left",children:j("Reset password")}),(0,t.jsx)("p",{className:"text-muted-foreground text-left text-sm sm:text-base",children:v?j("auth.resetPasswordConfirm.success"):j("auth.resetPasswordConfirm.description")})]}),(0,t.jsxs)("div",{className:"space-y-4",children:[!L&&(0,t.jsx)(h.Fc,{variant:"destructive",children:(0,t.jsx)(h.TN,{children:j("Invalid reset link, please request a new password reset.")})}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(f.J,{htmlFor:"email",children:j("Email")}),(0,t.jsx)(u.p,{id:"email",type:"email",value:s||"",disabled:!0,placeholder:j("Waiting for email...")})]}),v&&(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(f.J,{htmlFor:"password",children:j("New password")}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(u.p,{id:"password",value:v,disabled:!0,className:"font-mono"}),(0,t.jsx)(m.$,{type:"button",size:"icon",variant:"outline",onClick:R,children:k?(0,t.jsx)(c.Srz,{className:"h-4 w-4"}):(0,t.jsx)(c.TdU,{className:"h-4 w-4"})})]}),(0,t.jsx)("p",{className:"text-muted-foreground text-xs",children:j("Password has been copied to clipboard")})]}),(0,t.jsx)(p.o,{size:"lg",className:"w-full justify-center",onClick:v?()=>b({to:"/sign-in",replace:!0}):S,disabled:!v&&(N||z||!L),children:v?j("auth.resetPasswordConfirm.backToLogin"):z?j("auth.resetPasswordConfirm.retry",{seconds:P}):j("auth.resetPasswordConfirm.confirm")}),!v&&(0,t.jsx)(m.$,{variant:"link",className:"w-full",onClick:()=>b({to:"/sign-in",replace:!0}),children:j("Back to login")})]})]})})}},71256(e,s,a){a.r(s),a.d(s,{component:()=>i});var t=a(72361),l=a(45064),r=a(77861);function i(){let e=(0,l.S)({from:"/(auth)/reset"});return(0,t.jsx)(r.L,{email:e?.email,token:e?.token})}}}]);

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.