PageSourceSearch

https://nickz.ai/assets/js/LoginForm-C7HTQoYu.js

js nickz.ai collected 2026-10-05 14:20:45 UTC 25,602 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/js/NoticeModal-BBiCs4r_.js","assets/js/vendor-react-DejgYtBM.js","assets/js/vendor-semi-D8d7bTtM.js","assets/js/index-BeIIFw6E.js","assets/js/vendor-icons-EJvJ5X-w.js","assets/js/vendor-motion-Chfy_MiU.js","assets/js/i18nField-BKdpiJH6.js","assets/js/i18nFieldCore-CS3IirKt.js","assets/js/noticeI18n-CXa-dBKj.js","assets/js/marked.esm-B28mcIGu.js","assets/css/vendor-semi-o4lF_xks.css","assets/css/index-D0vqlaxj.css"])))=>i.map(i=>d[i]);
2import{u as e,a as t,U as s,S as a,G as l,H as i,ah as n,y as r,z as o,s as c,_ as d,B as u,w as m,A as h,E as g,F as x,D as p,X as f,Q as j,R as b,T as y}from"./index-BeIIFw6E.js";import{j as v,u as _,r as w,f as N,R as k,L as S,C,G as z,K as I,J as E,E as T,D as M}from"./vendor-react-DejgYtBM.js";import{am as A,z as F,an as q,B,H as D,ao as O,T as P,a as L,o as H,v as R,ap as V,M as J}from"./vendor-semi-D8d7bTtM.js";import{_ as U}from"./index-BOZr6JVI.js";import{T as W}from"./index-KF7PEnkU.js";import{C as G}from"./Captcha-DqOlJ3BU.js";import{P as $}from"./login-Dg1edWbp.js";import{B as K,H as Z,ap as Q,aU as X,aV as Y,G as ee,I as te,bm as se}from"./vendor-icons-EJvJ5X-w.js";import{M as ae}from"./index-B_PxGnmD.js";import"./vendor-motion-Chfy_MiU.js";import"./captchaCrypto-qWW2iG_E.js";import"./vendor-3d-DLEs90f1.js";const le=e=>{function t(){return v.jsxs("svg",{t:"1723135116886",className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"10969",width:"20",height:"20",children:[v.jsx("path",{d:"M512 960C265 960 64 759 64 512S265 64 512 64s448 201 448 448-201 448-448 448z m0-882.6c-239.7 0-434.6 195-434.6 434.6s195 434.6 434.6 434.6 434.6-195 434.6-434.6S751.7 77.4 512 77.4z","p-id":"10970",fill:"#2c2c2c",stroke:"#2c2c2c","stroke-width":"60"}),v.jsx("path",{d:"M197.7 512c0-78.3 31.6-98.8 87.2-98.8 56.2 0 87.2 20.5 87.2 98.8s-31 98.8-87.2 98.8c-55.7 0-87.2-20.5-87.2-98.8z m130.4 0c0-46.8-7.8-64.5-43.2-64.5-35.2 0-42.9 17.7-42.9 64.5 0 47.1 7.8 63.7 42.9 63.7 35.4 0 43.2-16.6 43.2-63.7zM409.7 415.9h42.1V608h-42.1V415.9zM653.9 512c0 74.2-37.1 96.1-93.6 96.1h-65.9V415.9h65.9c56.5 0 93.6 16.1 93.6 96.1z m-43.5 0c0-49.3-17.7-60.6-52.3-60.6h-21.6v120.7h21.6c35.4 0 52.3-13.3 52.3-60.1zM686.5 512c0-74.2 36.3-98.8 92.7-98.8 18.3 0 33.2 2.2 44.8 6.4v36.3c-11.9-4.2-26-6.6-42.1-6.6-34.6 0-49.8 15.5-49.8 62.6 0 50.1 15.2 62.6 49.3 62.6 15.8 0 30.2-2.2 44.8-7.5v36c-11.3 4.7-28.5 8-46.8 8-56.1-0.2-92.9-18.7-92.9-99z","p-id":"10971",fill:"#2c2c2c",stroke:"#2c2c2c","stroke-width":"20"})]})}return v.jsx(A,{svg:v.jsx(t,{})})},ie=()=>{function e(){return v.jsxs("svg",{t:"1709714447384",className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5091",width:"20",height:"20",children:[v.jsx("path",{d:"M690.1 377.4c5.9 0 11.8 0.2 17.6 0.5-24.4-128.7-158.3-227.1-319.9-227.1C209 150.8 64 271.4 64 420.2c0 81.1 43.6 154.2 111.9 203.6 5.5 3.9 9.1 10.3 9.1 17.6 0 2.4-0.5 4.6-1.1 6.9-5.5 20.3-14.2 52.8-14.6 54.3-0.7 2.6-1.7 5.2-1.7 7.9 0 5.9 4.8 10.8 10.8 10.8 2.3 0 4.2-0.9 6.2-2l70.9-40.9c5.3-3.1 11-5 17.2-5 3.2 0 6.4 0.5 9.5 1.4 33.1 9.5 68.8 14.8 105.7 14.8 6 0 11.9-0.1 17.8-0.4-7.1-21-10.9-43.1-10.9-66 0-135.8 132.2-245.8 295.3-245.8z m-194.3-86.5c23.8 0 43.2 19.3 43.2 43.1s-19.3 43.1-43.2 43.1c-23.8 0-43.2-19.3-43.2-43.1s19.4-43.1 43.2-43.1z m-215.9 86.2c-23.8 0-43.2-19.3-43.2-43.1s19.3-43.1 43.2-43.1 43.2 19.3 43.2 43.1-19.4 43.1-43.2 43.1z","p-id":"5092"}),v.jsx("path",{d:"M866.7 792.7c56.9-41.2 93.2-102 93.2-169.7 0-124-120.8-224.5-269.9-224.5-149 0-269.9 100.5-269.9 224.5S540.9 847.5 690 847.5c30.8 0 60.6-4.4 88.1-12.3 2.6-0.8 5.2-1.2 7.9-1.2 5.2 0 9.9 1.6 14.3 4.1l59.1 34c1.7 1 3.3 1.7 5.2 1.7 2.4 0 4.7-0.9 6.4-2.6 1.7-1.7 2.6-4 2.6-6.4 0-2.2-0.9-4.4-1.4-6.6-0.3-1.2-7.6-28.3-12.2-45.3-0.5-1.9-0.9-3.8-0.9-5.7 0.1-5.9 3.1-11.2 7.6-14.5zM600.2 587.2c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9c0 19.8-16.2 35.9-36 35.9z m179.9 0c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9c-0.1 19.8-16.2 35.9-36 35.9z","p-id":"5093"})]})}return v.jsx("div",{children:v.jsx(A,{svg:v.jsx(e,{})})})},ne=e=>{function t(){return v.jsx("svg",{className:"icon",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",...e,children:v.jsxs("g",{id:"linuxdo_icon","data-name":"linuxdo_icon",children:[v.jsx("path",{d:"m7.44,0s.09,0,.13,0c.09,0,.19,0,.28,0,.14,0,.29,0,.43,0,.09,0,.18,0,.27,0q.12,0,.25,0t.26.08c.15.03.29.06.44.08,1.97.38,3.78,1.47,4.95,3.11.04.06.09.12.13.18.67.96,1.15,2.11,1.3,3.28q0,.19.09.26c0,.15,0,.29,0,.44,0,.04,0,.09,0,.13,0,.09,0,.19,0,.28,0,.14,0,.29,0,.43,0,.09,0,.18,0,.27,0,.08,0,.17,0,.25q0,.19-.08.26c-.03.15-.06.29-.08.44-.38,1.97-1.47,3.78-3.11,4.95-.06.04-.12.09-.18.13-.96.67-2.11,1.15-3.28,1.3q-.19,0-.26.09c-.15,0-.29,0-.44,0-.04,0-.09,0-.13,0-.09,0-.19,0-.28,0-.14,0-.29,0-.43,0-.09,0-.18,0-.27,0-.08,0-.17,0-.25,0q-.19,0-.26-.08c-.15-.03-.29-.06-.44-.08-1.97-.38-3.78-1.47-4.95-3.11q-.07-.09-.13-.18c-.67-.96-1.15-2.11-1.3-3.28q0-.19-.09-.26c0-.15,0-.29,0-.44,0-.04,0-.09,0-.13,0-.09,0-.19,0-.28,0-.14,0-.29,0-.43,0-.09,0-.18,0-.27,0-.08,0-.17,0-.25q0-.19.08-.26c.03-.15.06-.29.08-.44.38-1.97,1.47-3.78,3.11-4.95.06-.04.12-.09.18-.13C4.42.73,5.57.26,6.74.1,7,.07,7.15,0,7.44,0Z",fill:"#EFEFEF"}),v.jsx("path",{d:"m1.27,11.33h13.45c-.94,1.89-2.51,3.21-4.51,3.88-1.99.59-3.96.37-5.8-.57-1.25-.7-2.67-1.9-3.14-3.3Z",fill:"#FEB005"}),v.jsx("path",{d:"m12.54,1.99c.87.7,1.82,1.59,2.18,2.68H1.27c.87-1.74,2.33-3.13,4.2-3.78,2.44-.79,5-.47,7.07,1.1Z",fill:"#1D1D1F"})]})})}return v.jsx(A,{svg:v.jsx(t,{})})},re=k.lazy(()=>d(()=>import("./NoticeModal-BBiCs4r_.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]))),oe=()=>{let d=_();const{t:oe,i18n:ce}=e(),de=t(),ue=w.useRef(null),[me,he]=w.useState({username:"",password:"",wechat_verification_code:"",phone:"",sms_code:""}),{username:ge,password:xe,phone:pe,sms_code:fe}=me,[je]=N(),[be,ye]=w.useState(!1),[ve,_e]=w.useContext(s),[we]=w.useContext(a),[Ne,ke]=w.useState(!1),[Se,Ce]=w.useState(""),[ze,Ie]=w.useState(""),[Ee,Te]=w.useState(!1),[Me,Ae]=w.useState(!1),[Fe,qe]=w.useState(!1),[Be,De]=w.useState(!1),[Oe,Pe]=w.useState(!1),[Le,He]=w.useState(null),[Re,Ve]=w.useState(null),[Je,Ue]=w.useState(!1),[We,Ge]=w.useState(""),[$e,Ke]=w.useState(!1),[Ze,Qe]=w.useState(0),Xe=we?.status?.announcements||[],Ye=e=>`${e?.publishDate||""}-${(e?.content||"").slice(0,30)}`,et=()=>{if(!Xe.length)return 0;const e=localStorage.getItem("notice_close_date")===(new Date).toDateString();let t=[];try{t=JSON.parse(localStorage.getItem("notice_read_keys"))||[]}
2catch(l){t=[]}const s=new Set(t),a=Xe.filter(e=>!s.has(Ye(e))).length;return e&&0===a?0:a},tt=()=>Ke(!0),st=l(),at=i(),lt=n(),[it,nt]=w.useState(!1),[rt,ot]=w.useState(!1),[ct,dt]=w.useState(!1),[ut,mt]=w.useState(!1),[ht,gt]=w.useState(!1),[xt,pt]=w.useState(!1),[ft,jt]=w.useState(!1),[bt,yt]=w.useState(!1),[vt,_t]=w.useState(!1),[wt,Nt]=w.useState(!1),[kt,St]=w.useState(""),[Ct,zt]=w.useState("password"),[It,Et]=w.useState(!1),[Tt,Mt]=w.useState(!1),[At,Ft]=w.useState(0),[qt,Bt]=w.useState(!1);w.useEffect(()=>{if(At<=0)return;const e=setTimeout(()=>{Ft(e=>e<=1?(Mt(!1),0):e-1)},1e3);return()=>clearTimeout(e)},[At]);const Dt=e=>{ce.changeLanguage(e)},Ot=r(),Pt=o(),Lt=ce.language&&ce.language.startsWith("zh")?we?.status?.system_name||Pt||"中转 API":we?.status?.server_name_en||we?.status?.system_name_en||Pt||"New API",Ht=()=>{if(!we?.status?.server_address)return!0;try{return window.location.hostname===new URL(we.status.server_address).hostname}catch(e){return console.error("域名检查出错:",e),!0}},Rt=()=>{we?.status?.server_address&&(Ge(we.status.server_address),Ue(!0))};w.useEffect(()=>{Qe(et())},[Xe]),w.useEffect(()=>{const e=e=>{"notice_read_keys"!==e.key&&"notice_close_date"!==e.key||Qe(et())},t=()=>{Qe(et())};return window.addEventListener("storage",e),window.addEventListener("localStorageUpdated",t),()=>{window.removeEventListener("storage",e),window.removeEventListener("localStorageUpdated",t)}},[Xe]),w.useEffect(()=>{we?.status?.turnstile_check&&(ke(!0),Ce(we.status.turnstile_site_key))},[we?.status]),w.useEffect(()=>{je.get("expired")&&c(oe("未登录或登录已过期,请重新登录"))},[]);const Vt=(e=!1)=>{if(Ht()){if(!e&&!Fe)return Pe(!0),He("wechat"),void De(!0);nt(!0),Te(!0),nt(!1)}else Rt()};function Jt(e,t){he(s=>({...s,[e]:t}))}async function Ut(e){if(!Fe)return Pe(!0),He("sms"),void De(!0);if(pe&&fe)if(Ne&&""===ze)u(oe("请稍后几秒重试,Turnstile 正在检查用户环境!"));else if(!we?.status?.captcha_login_enabled||kt){Bt(!0);try{const e=localStorage.getItem("aff"),t=localStorage.getItem("channel"),s={phone:pe,code:fe,captcha_token:kt};e&&(s.aff_code=e),t&&(s.channel=t),s.baidu_click={bd_vid:localStorage.getItem("bd_vid")||"",baidu_userid:localStorage.getItem("baidu_userid")||"",plan_id:localStorage.getItem("baidu_planid")||"",unit_id:localStorage.getItem("baidu_unitid")||"",keyword_id:localStorage.getItem("baidu_keywordid")||"",creative:localStorage.getItem("baidu_creative")||"",match_type:localStorage.getItem("baidu_matchtype")||"",equipment_type:localStorage.getItem("baidu_equipment_type")||"",longtail:localStorage.getItem("baidu_longtail")||"",crowd_id:localStorage.getItem("baidu_crowdid")||"",city:localStorage.getItem("baidu_loc_enc_utf8")||""};const a=await h.post(`/api/user/sms/login?turnstile=${ze}`,s),{success:l,message:i,data:n}=a.data;if(l){_e({type:"login",payload:n}),localStorage.setItem("user",JSON.stringify(n)),g(n),x(),m(oe("登录成功!"));const e=je.get("redirect");d(e&&e.startsWith("/console")?e:"/console")}else c(i)}catch(t){c(oe("登录失败,请重试"))}finally{Bt(!1),St("")}}else u(oe("请先完成滑块人机验证"));else c(oe("请输入手机号和验证码"))}async function Wt(e,t=null,s=!1){if(!s&&!Fe)return Pe(!0),He("email"),void De(!0);if(Ne&&""===ze)return void u(oe("请稍后几秒重试,Turnstile 正在检查用户环境!"));const a=t||kt;if(!we?.status?.captcha_login_enabled||a){ye(!0),jt(!0);try{if(ge&&xe){const e=await h.post(`/api/user/login?turnstile=${ze}`,{username:ge,password:xe,captcha_token:a}),{success:t,message:s,data:l}=e.data;if(t){p(),_e({type:"login",payload:l}),g(l),x(),m(oe("登录成功!")),"function"==typeof window.trackAnalyticsEvent&&window.trackAnalyticsEvent("login",{method:"password"}),"root"===ge&&"123456"===xe&&J.error({title:oe("您正在使用默认密码!"),content:oe("请立刻修改默认密码!"),centered:!0});const e=je.get("redirect");d(e&&e.startsWith("/console")?e:"/console")}else c(s)}else c(oe("请输入用户名和密码!"))}catch(l){c(oe("登录失败,请重试"))}finally{jt(!1),St("")}}else u(oe("请先完成滑块人机验证"))}const Gt=async(e,t=!1)=>
2{if(!Ht())return void Rt();if(!t&&!Fe)return Pe(!0),He("telegram"),Ve(e),void De(!0);const s={};["id","first_name","last_name","username","photo_url","auth_date","hash","lang"]?.forEach(t=>{e[t]&&(s[t]=e[t])});try{const e=await h.get("/api/oauth/telegram/login",{params:s}),{success:t,message:a,data:l}=e.data;t?(p(),_e({type:"login",payload:l}),g(l),x(),localStorage.setItem("user",JSON.stringify(l)),m(oe("登录成功!")),"function"==typeof window.trackAnalyticsEvent&&window.trackAnalyticsEvent("login",{method:"telegram"}),d("/")):c(a)}catch(a){c(oe("登录失败,请重试"))}},$t=(e="",t=!1)=>{if(Ht()){if(!t&&!Fe)return Pe(!0),He("github"),void De(!0);ot(!0);try{f(we?.status?.github_client_id,!1,e)}finally{setTimeout(()=>ot(!1),3e3)}}else Rt()},Kt=(e="",t=!1)=>{if(Ht()){if(!t&&!Fe)return Pe(!0),He("google"),void De(!0);dt(!0);try{j(we?.status?.google_client_id,!1,e)}finally{setTimeout(()=>dt(!1),3e3)}}else Rt()},Zt=(e="",t=!1)=>{if(Ht()){if(!t&&!Fe)return Pe(!0),He("oidc"),void De(!0);mt(!0);try{b(we?.status?.oidc_authorization_endpoint,we?.status?.oidc_client_id)}finally{setTimeout(()=>mt(!1),3e3)}}else Rt()},Qt=(e=!1)=>{if(Ht()){if(!e&&!Fe)return Pe(!0),He("linuxdo"),void De(!0);gt(!0);try{y(we?.status?.linuxdo_client_id)}finally{setTimeout(()=>gt(!1),3e3)}}else Rt()};return v.jsxs("div",{className:"login-root",children:[de?v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"blur-ball",style:{top:"120px",right:"-80px",transform:"none",zIndex:"1",backgroundColor:"#eece50ff",opacity:.3}}),v.jsx("div",{className:"blur-ball",style:{top:"120px",left:"-120px",zIndex:"1",backgroundColor:"#9db7e0ff",opacity:.3}})]}):v.jsx(v.Fragment,{}),$e&&v.jsx(k.Suspense,{fallback:null,children:v.jsx(re,{visible:$e,onClose:()=>{if(Ke(!1),Xe.length){let t=[];try{t=JSON.parse(localStorage.getItem("notice_read_keys"))||[]}catch(e){t=[]}const s=Array.from(new Set([...t,...Xe.map(Ye)]));localStorage.setItem("notice_read_keys",JSON.stringify(s))}Qe(0),window.dispatchEvent(new Event("localStorageUpdated"))},isMobile:de,defaultTab:Ze>0?"system":"inApp",unreadKeys:(()=>{if(!Xe.length)return[];let e=[];try{e=JSON.parse(localStorage.getItem("notice_read_keys"))||[]}catch(s){e=[]}const t=new Set(e);return Xe.filter(e=>!t.has(Ye(e))).map(Ye)})()})}),v.jsxs("div",{className:"login-lang-switch",children:[Ze>0?v.jsx(F,{content:oe("系统公告"),position:"bottom",children:v.jsx(q,{count:Ze,type:"danger",overflowCount:99,children:v.jsx(B,{icon:v.jsx(K,{size:18,style:{color:"hsl(var(--primary))"}}),"aria-label":oe("系统公告"),onClick:tt,theme:"borderless",type:"tertiary",className:"login-notice-btn !p-1.5 !rounded-full"})})}):v.jsx(F,{content:oe("系统公告"),position:"bottom",children:v.jsx(B,{icon:v.jsx(K,{size:18,style:{color:"hsl(var(--primary))"}}),"aria-label":oe("系统公告"),onClick:tt,theme:"borderless",type:"tertiary",className:"login-notice-btn !p-1.5 !rounded-full"})}),v.jsx(S,{to:"/",className:"login-home-btn","aria-label":oe("返回首页"),children:v.jsx(Z,{size:20})}),v.jsx(D,{position:"bottomRight",render:v.jsxs(D.Menu,{className:"!bg-popover/95 !border-border !shadow-lg !rounded-lg",children:[v.jsxs(D.Item,{onClick:()=>lt("light"),className:"!flex !items-center !gap-2 !px-3 !py-1.5 !text-sm !text-foreground "+("light"===st?"!bg-primary-light-default !font-semibold":"hover:!bg-fill-default"),children:[v.jsx(Y,{size:15}),v.jsx("span",{children:oe("浅色")})]}),v.jsxs(D.Item,{onClick:()=>lt("dark"),className:"!flex !items-center !gap-2 !px-3 !py-1.5 !text-sm !text-foreground "+("dark"===st?"!bg-primary-light-default !font-semibold":"hover:!bg-fill-default"),children:[v.jsx(X,{size:15}),v.jsx("span",{children:oe("深色")})]}),v.jsxs(D.Item,{onClick:()=>lt("auto"),className:"!flex !items-center !gap-2 !px-3 !py-1.5 !text-sm !text-foreground "+("auto"===st?"!bg-primary-light-default !font-semibold":"hover:!bg-fill-default"),children:[v.jsx(Q,{size:15}),v.jsx("span",{children:oe("跟随系统")})]})]}),children:v.jsx(B,{icon:"auto"===st?v.jsx(Q,{size:18,style:{color:"hsl(var(--primary))"}}):"dark"===at?v.jsx(X,{size:18,style:{color:"hsl(var(--primary))"}}):v.jsx(Y,{size:18,style:{color:"hsl(var(--primary))"}}),"aria-label":oe("切换主题"),theme:"borderless",type:"tertiary",className:"!p-1.5 !rounded-full"})}),v.jsx(D,{position:"bottomRight",render:v.jsxs(D.Menu,{className:"!bg-popover/95 !border-border !shadow-lg !rounded-lg",children:[v.jsxs(D.Item,{onClick:()=>Dt("zh"),className:"!flex !items-center !gap-2 !px-3 !py-1.5 !text-sm !text-foreground hover:!bg-fill-default",children:[v.jsx(C,{title:oe("中文"),className:"!w-5 !h-auto"}),v.jsx("span",{children:"中文"})]}),v.jsxs(D.Item,{onClick:()=>Dt("en"),className:"!flex !items-center !gap-2 !px-3 !py-1.5 !text-sm !text-foreground hover:!bg-fill-default",children:[v.jsx(z,{title:"English",className:"!w-5 !h-auto"}),v.jsx("span",{children:"English"})]}),v.jsxs(D.Item,{onClick:()=>Dt("ko"),className:"!flex !items-center !gap-2 !px-3 !py-1.5 !text-sm !text-foreground hover:!bg-fill-default",children:[v.jsx(I,{title:"한국어",className:"!w-5 !h-auto"}),v.jsx("span",{children:"한국어"})]}),v.jsxs(D.Item,{onClick:()=>Dt("ja"),className:"!flex !items-center !gap-2 !px-3 !py-1.5 !text-sm !text-foreground hover:!bg-fill-default",children:[v.jsx(E,{title:oe("日本語"),className:"!w-5 !h-auto"}),v.jsx("span",{children:"日本語"})]}),v.jsxs(D.Item,{onClick:()=>Dt("es"),className:"!flex !items-center !gap-2 !px-3 !py-1.5 !text-sm !text-foreground hover:!bg-fill-default",children:[v.jsx(T,{title:"Español",className:"!w-5 !h-auto"}),v.jsx("span",{children:"Español"})]}),v.jsxs(D.Item,{onClick:()=>Dt("de"),className:"!flex !items-center !gap-2 !px-3 !py-1.5 !text-sm !text-foreground hover:!bg-fill-default",children:[v.jsx(M,{title:"Deutsch",className:"!w-5 !h-auto"}),v.jsx("span",{children:"Deutsch"})]})]}),children:v.jsx("button",{className:"login-lang-btn","aria-label":oe("切换语言"),children:v.jsx("img",{src:"/login-images/translate-01.png",alt:"translate"})})})]}),v.jsx("section",{className:"promo-panel","aria-label":oe("宣传区"),ref:ue,children:v.jsx($,{systemName:Lt})}),v.jsx("section",{className:"login-panel","aria-label":oe("登录区"),children:v.jsx("div",{className:"login-card-wrap",style:{zIndex:"2"},children:v.jsx("div",{className:"login-card-inner",children:v.jsxs("div",{className:"login-card",children:[v.jsxs("div",{className:"login-card-head",children:[v.jsx(S,{to:"/",className:"login-head-brand-link",children:v.jsxs("div",{className:"login-head-brand",children:[v.jsx("img",{src:Ot,alt:"logo",className:"login-head-brand-icon"}),v.jsx("span",{className:"login-head-brand-name",children:Lt})]})}),v.jsx(O,{heading:3,className:"!text-foreground",children:oe("用户登录")})]}),v.jsxs("div",{className:"login-card-body",children:[v.jsxs(P,{type:"line",activeKey:Ct,onChange:e=>zt(e),className:"mb-4",children:[v.jsx(L,{tab:oe("密码登录"),itemKey:"password",children:v.jsxs(H,{
2className:"space-y-3 login-form",children:[v.jsx(H.Input,{label:oe("用户名或邮箱"),placeholder:oe("请输入您的用户名或邮箱地址"),name:"username",size:"large",value:ge,onChange:e=>Jt("username",e)}),v.jsx(H.Input,{field:"password",label:oe("密码"),placeholder:oe("请输入您的密码"),name:"password",mode:"password",size:"large",value:xe,onChange:e=>Jt("password",e)})]})}),v.jsxs("div",{className:"pt-2 flex items-center justify-between",children:[v.jsxs(R,{checked:Fe,onChange:e=>{qe(e.target.checked)},className:"text-sm text-gray-400",children:[v.jsx("span",{className:"text-[#999999]",children:oe("我已阅读并同意")}),v.jsx(V,{link:!0,className:"ml-1",style:{background:"linear-gradient(to right, #46ACFF, #0084FF)",WebkitBackgroundClip:"text",backgroundClip:"text",WebkitTextFillColor:"transparent",display:"inline-block"},onClick:e=>{e.stopPropagation(),De(!0)},children:oe("《用户协议》")})]}),v.jsx(B,{theme:"borderless",type:"tertiary",className:"link-gradient",size:"small",onClick:()=>{yt(!0),d("/reset"),yt(!1)},loading:bt,children:oe("忘记密码?")})]}),Ne&&v.jsx("div",{className:"flex justify-center pt-4 pb-2",children:v.jsx(U,{sitekey:Se,onVerify:e=>{Ie(e)}})})]}),v.jsx("div",{className:"space-y-2 pt-2",children:Fe?"sms"===Ct?v.jsx(B,{theme:"solid",className:"w-full !rounded-full gradient-btn",type:"primary",htmlType:"button",size:"large",loading:qt,onClick:()=>Ut(),children:oe("登录")}):we?.status?.captcha_login_enabled?v.jsx(G,{onBeforeShow:()=>me.username&&me.password?!Ne||""!==ze||(u(oe("请稍后几秒重试,Turnstile 正在检查用户环境!")),!1):(c(oe("请输入邮箱和密码")),!1),onVerified:e=>{St(e),Wt(0,e)},disabled:ft,children:v.jsx(B,{theme:"solid",className:"w-full !rounded-full gradient-btn",type:"primary",htmlType:"button",size:"large",loading:ft,children:oe("登录")})}):v.jsx(B,{theme:"solid",className:"w-full !rounded-full gradient-btn",type:"primary",htmlType:"button",size:"large",loading:ft,onClick:()=>Wt(),children:oe("登录")}):v.jsx(B,{theme:"solid",className:"w-full !rounded-full gradient-btn",type:"primary",htmlType:"button",size:"large",loading:"password"===Ct?ft:qt,onClick:()=>{Pe(!0),He("password"===Ct?"email":"sms"),De(!0)},children:oe("登录")})}),v.jsxs("div",{className:"third-icons",children:[we?.status?.wechat_login&&v.jsx("button",{className:"third-btn","aria-label":"WeChat",onClick:Vt,children:v.jsx(A,{svg:v.jsx(ie,{}),style:{color:"#07C160"}})}),we?.status?.github_oauth&&v.jsx("button",{className:"third-btn","aria-label":"GitHub",onClick:()=>$t(),children:v.jsx(A,{svg:v.jsx(ee,{size:16})})}),we?.status?.google_oauth&&v.jsx("button",{className:"third-btn","aria-label":"Google",onClick:()=>Kt(),children:v.jsxs("svg",{viewBox:"0 0 24 24",width:"1em",height:"1em",fill:"currentColor",children:[v.jsx("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z",fill:"#4285F4"}),v.jsx("path",{d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z",fill:"#34A853"}),v.jsx("path",{d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z",fill:"#FBBC05"}),v.jsx("path",{d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z",fill:"#EA4335"})]})}),we?.status?.oidc_enabled&&v.jsx("button",{className:"third-btn","aria-label":"OIDC",onClick:()=>Zt(),children:v.jsx(A,{svg:v.jsx(le,{}),style:{color:"#E95420"}})}),we?.status?.linuxdo_oauth&&v.jsx("button",{className:"third-btn","aria-label":"LinuxDO",onClick:()=>Qt(),children:v.jsx(A,{svg:v.jsx(ne,{}),style:{color:"#E95420"}})}),we?.status?.telegram_oauth&&v.jsx("div",{className:"third-btn scale-75",children:v.jsx(W,{dataOnauth:Gt,botName:we?.status?.telegram_bot_name})})]})]})]})})})}),v.jsxs(J,{title:oe("微信扫码登录"),visible:Ee,maskClosable:!0,onOk:async()=>{if(Ne&&""===ze)u(oe("请稍后几秒重试,Turnstile 正在检查用户环境!"));else{Nt(!0);try{const e=await h.get(`/api/oauth/wechat?code=${me.wechat_verification_code}`),{success:t,message:s,data:a}=e.data;t?(p(),_e({type:"login",payload:a}),g(a),x(),d("/"),m(oe("登录成功!")),"function"==typeof window.trackAnalyticsEvent&&window.trackAnalyticsEvent("login",{method:"wechat"}),Te(!1)):c(s)}catch(e){c(oe("登录失败,请重试"))}finally{Nt(!1)}}},onCancel:()=>Te(!1),okText:oe("登录"),size:"small",centered:!0,okButtonProps:{loading:wt},children:[v.jsx("div",{className:"flex flex-col items-center",children:v.jsx("img",{src:we?.status?.wechat_qrcode,alt:oe("微信二维码"),className:"mb-4"})}),v.jsx("div",{className:"text-center mb-4",children:v.jsx("p",{children:oe("微信扫码关注公众号,输入「验证码」获取验证码(三分钟内有效)")})}),v.jsx(H,{size:"large",children:v.jsx(H.Input,{field:"wechat_verification_code",placeholder:oe("验证码"),label:oe("验证码"),value:me.wechat_verification_code,onChange:e=>Jt("wechat_verification_code",e)})}),Ne&&v.jsx("div",{className:"flex justify-center mt-4",children:v.jsx(U,{sitekey:Se,onVerify:e=>{Ie(e)}})})]}),v.jsx(J,{visible:Je,onCancel:()=>Ue(!1),footer:null,width:400,centered:!0,closable:!1,bodyStyle:{padding:0},children:v.jsxs("div",{className:"p-8",children:[v.jsx("div",{className:"flex justify-center mb-6",children:v.jsx("div",{className:"w-16 h-16 rounded-full bg-fill-default flex items-center justify-center",children:v.jsx(te,{size:32,className:"text-foreground
2/80"})})}),v.jsxs("div",{className:"text-center mb-6",children:[v.jsx(O,{heading:4,className:"mb-2 text-foreground",children:oe("快捷登录提示")}),v.jsx(V,{className:"text-muted-foreground",children:oe("当前子节点不支持快捷登录,请前往主节点使用")})]}),v.jsxs("div",{className:"bg-fill-subtle border border-border rounded-lg p-4 mb-6 cursor-pointer hover:bg-fill-default transition-colors",onClick:()=>{navigator.clipboard.writeText(We),m(oe("主站地址已复制到剪贴板"))},children:[v.jsx(V,{type:"secondary",size:"small",className:"block mb-1",children:oe("主站地址")}),v.jsx(V,{className:"text-primary font-medium",children:We})]}),v.jsxs("div",{className:"flex gap-3",children:[v.jsx(B,{onClick:()=>Ue(!1),size:"large",type:"tertiary",block:!0,children:oe("稍后再说")}),v.jsx(B,{type:"primary",onClick:()=>{if(We)try{const e=new URL(We),t=localStorage.getItem("bd_vid"),s=localStorage.getItem("channel"),a=localStorage.getItem("aff");t&&e.searchParams.set("bd_vid",t),s&&e.searchParams.set("channel",s),a&&e.searchParams.set("aff",a),[["userid","baidu_userid"],["planid","baidu_planid"],["unitid","baidu_unitid"],["keywordid","baidu_keywordid"],["creative","baidu_creative"],["matchtype","baidu_matchtype"],["equipment_type","baidu_equipment_type"],["longtail","baidu_longtail"],["crowdid","baidu_crowdid"],["loc_enc_utf8","baidu_loc_enc_utf8"]].forEach(([t,s])=>{const a=localStorage.getItem(s);a&&e.searchParams.set(t,a)}),window.location.href=e.toString()}catch{window.location.href=We}},size:"large",icon:v.jsx(se,{size:16}),block:!0,children:oe("前往主站")})]})]})}),v.jsx(J,{title:oe("用户协议"),visible:Be,onCancel:()=>De(!1),footer:[v.jsx(B,{type:"primary",onClick:()=>{qe(!0),De(!1),Pe(!1),"email"===Le?Wt(0,null,!0):"sms"===Le?Ut():"wechat"===Le?Vt(!0):"github"===Le?$t("",!0):"google"===Le?Kt("",!0):"oidc"===Le?Zt("",!0):"linuxdo"===Le?Qt(!0):"telegram"===Le&&Gt(Re,!0),He(null),Ve(null)},children:oe("同意并继续")},"agree")],width:600,centered:!0,bodyStyle:{overflow:"auto",maxHeight:"60vh",padding:"16px"},children:we?.status?.disclaimer?v.jsx(ae,{children:we.status.disclaimer}):v.jsx(V,{children:oe("暂无用户协议")})})]})};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.