module.exports=[46058,(a,b,c)=>{"use strict";function d(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(d=function(a){return a?c:b})(a)}c._=function(a,b){if(!b&&a&&a.__esModule)return a;if(null===a||"object"!=typeof a&&"function"!=typeof a)return{default:a};var c=d(b);if(c&&c.has(a))return c.get(a);var e={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in a)if("default"!==g&&Object.prototype.hasOwnProperty.call(a,g)){var h=f?Object.getOwnPropertyDescriptor(a,g):null;h&&(h.get||h.set)?Object.defineProperty(e,g,h):e[g]=a[g]}return e.default=a,c&&c.set(a,e),e}},39118,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={DEFAULT_SEGMENT_KEY:function(){return l},NOT_FOUND_SEGMENT_KEY:function(){return m},PAGE_SEGMENT_KEY:function(){return k},addSearchParamsIfPageSegment:function(){return i},computeSelectedLayoutSegment:function(){return j},getSegmentValue:function(){return f},getSelectedLayoutSegmentPath:function(){return function a(b,c,d=!0,e=[]){let g;if(d)g=b[1][c];else{let a=b[1];g=a.children??Object.values(a)[0]}if(!g)return e;let h=f(g[0]);return!h||h.startsWith(k)?e:(e.push(h),a(g,c,!1,e))}},isGroupSegment:function(){return g},isParallelRouteSegment:function(){return h}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});function f(a){return Array.isArray(a)?a[1]:a}function g(a){return"("===a[0]&&a.endsWith(")")}function h(a){return a.startsWith("@")&&"@children"!==a}function i(a,b){if(a.includes(k)){let a=JSON.stringify(b);return"{}"!==a?k+"?"+a:k}return a}function j(a,b){if(!a||0===a.length)return null;let c="children"===b?a[0]:a[a.length-1];return c===l?null:c}let k="__PAGE__",l="__DEFAULT__",m="/_not-found"},88644,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"InvariantError",{enumerable:!0,get:function(){return d}});class d extends Error{constructor(a,b){super(`Invariant: ${a.endsWith(".")?a:a+"."} This is a bug in Next.js.`,b),this.name="InvariantError"}}},54427,(a,b,c)=>{"use strict";function d(){let a,b,c=new Promise((c,d)=>{a=c,b=d});return{resolve:a,reject:b,promise:c}}Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"createPromiseWithResolvers",{enumerable:!0,get:function(){return d}})},88143,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(50944);a.s(["default",0,function(){let[a,e]=(0,c.useState)(""),[f,g]=(0,c.useState)(""),[h,i]=(0,c.useState)(!1),j=(0,d.useRouter)(),k=async b=>{if(b.preventDefault(),a.trim()){i(!0),g("");try{let b=await fetch("/api/auth",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:a})}),c=await b.json();c.ok?(j.push("/"),j.refresh()):g(c.error||"密码错误")}catch{g("网络错误")}finally{i(!1)}}};return(0,b.jsx)("div",{className:"min-h-screen flex items-center justify-center",style:{background:"var(--bg)"},children:(0,b.jsxs)("div",{className:"w-[360px]",children:[(0,b.jsxs)("div",{className:"text-center mb-8",children:[(0,b.jsx)("h1",{className:"text-[24px] font-semibold tracking-wide mb-1",children:"myWiki"}),(0,b.jsx)("p",{className:"text-[13px]",style:{color:"var(--muted)"},children:"请输入密码以继续"})]}),(0,b.jsxs)("form",{onSubmit:k,className:"bg-white rounded-xl p-6 shadow-sm border",style:{borderColor:"var(--border)"},children:[(0,b.jsx)("div",{className:"mb-4",children:(0,b.jsx)("input",{type:"password",value:a,onChange:a=>e(a.target.value),placeholder:"输入密码",autoFocus:!0,className:"w-full px-4 py-3 text-[14px] rounded-lg border focus:outline-none focus:ring-2 focus:ring-amber-200 focus:border-amber-300 transition-shadow",style:{borderColor:"var(--border)",background:"var(--bg)"}})}),f&&(0,b.jsx)("div",{className:"mb-4 px-3 py-2 rounded-lg bg-red-50 border border-red-200 text-[12px] text-red-600",children:f}),(0,b.jsx)("button",{type:"submit",disabled:!a.trim()||h,className:"w-full py-2.5 text-[14px] font-medium rounded-lg bg-gray-900 text-white hover:bg-gray-800 disabled:opacity-40 disabled:cursor-not-allowed transition-colors",children:h?"验证中...":"进入"})]}),(0,b.jsx)("p",{className:"text-center mt-4 text-[11px]",style:{color:"var(--muted)"},children:"密码有效期 7 天"})]})})}])}];

//# sourceMappingURL=_0tvev0q._.js.map