(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4520],{348:(e,t,s)=>{"use strict";s.d(t,{MX:()=>r,mu:()=>a});let r="泰茂AI设计工作室",a={mark:"TM",title:r,subtitle:"中国鞋服箱包设计工作台",updatedAt:""}},3826:(e,t,s)=>{"use strict";s.d(t,{_:()=>l});var r=s(5155);let a=["\xa9 2026 Laurence. 本系统的功能设计、界面交互、业务流程、提示词编排、部署方案及相关实现内容，均为版权人原创成果并受著作权及相关法律保护。未经版权人书面授权，任何单位或个人不得以任何形式进行复制、镜像、拆解、反向分析、仿制、转售、再分发、盗版部署或用于未经许可的商业用途。","版权与授权事务联系：微信 Puretimi \xb7 邮箱 1154413@qq.com"],n=[{label:"Massmore",href:"https://massmore.org"},{label:"mtline.cc",href:"https://mtline.cc"}];function l({compact:e=!1}){return(0,r.jsxs)("div",{className:`copyright-notice ${e?"compact":""}`,"aria-label":"版权说明",children:[a.map(e=>(0,r.jsx)("p",{children:e},e)),(0,r.jsxs)("p",{className:"sponsor-line",children:[(0,r.jsx)("span",{children:"特别鸣谢算力赞助商："}),n.map((e,t)=>(0,r.jsxs)("span",{children:[t>0?" \xb7 ":" ",(0,r.jsx)("a",{href:e.href,target:"_blank",rel:"noreferrer",children:e.label})]},e.href))]})]})}},4159:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>u});var r=s(5155),a=s(2115),n=s(4645),l=s(8826),i=s(348),c=s(3826);function u(){let e=(0,n.useRouter)(),[t,s]=(0,a.useState)("admin"),[u,o]=(0,a.useState)("admin@123"),[h,d]=(0,a.useState)(!1),[p,m]=(0,a.useState)("");async function f(s){s.preventDefault(),d(!0),m("");try{let s=await fetch("/api/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:t,password:u})}),r=await (0,l.Q)(s);if(!s.ok)return void m(r.error||"登录失败");e.push("/"),e.refresh()}catch(e){m(e instanceof Error?e.message:"登录失败")}finally{d(!1)}}return(0,r.jsx)("main",{className:"auth-page",children:(0,r.jsxs)("div",{className:"auth-page-stack",children:[(0,r.jsxs)("div",{className:"glass-card auth-card",children:[(0,r.jsx)("h1",{children:i.MX}),(0,r.jsx)("p",{children:"内部登录"}),(0,r.jsxs)("form",{onSubmit:f,children:[(0,r.jsxs)("label",{children:["用户名",(0,r.jsx)("input",{value:t,onChange:e=>s(e.target.value),placeholder:"请输入用户名",autoComplete:"username"})]}),(0,r.jsxs)("label",{children:["密码",(0,r.jsx)("input",{type:"password",value:u,onChange:e=>o(e.target.value),placeholder:"请输入密码",autoComplete:"current-password"})]}),p?(0,r.jsx)("p",{className:"error-text",children:p}):null,(0,r.jsx)("button",{className:"primary-btn",type:"submit",disabled:h,children:h?"登录中...":"登录"})]})]}),(0,r.jsx)(c._,{})]})})}},7829:(e,t,s)=>{Promise.resolve().then(s.bind(s,4159))},8826:(e,t,s)=>{"use strict";function r(e){return e.trim().toLowerCase()}async function a(e){let t,s=await e.text(),a=e.headers.get("content-type")||"";if(t=r(s).slice(0,512),a.toLowerCase().includes("text/html")||t.startsWith("<!doctype html")||t.startsWith("<html")||t.includes("<body")||t.includes("</html>")){let e;if((e=r(s).slice(0,2048)).includes("login")||e.includes("sign in")||e.includes("sign-in")||e.includes("password")||e.includes("captcha")||e.includes("verify you are human")||e.includes("unauthorized"))throw Error("登录状态已失效，请重新登录后再试。");throw Error("接口返回异常页面，请检查 Base URL、API Key、模型名或服务状态。")}try{return JSON.parse(s)}catch{throw Error("接口返回格式异常，请检查接口配置或服务状态。")}}s.d(t,{Q:()=>a})}},e=>{e.O(0,[8441,3794,7358],()=>e(e.s=7829)),_N_E=e.O()}]);