1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6390],{20529:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/password",function(){return r(49745)}])},26427:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var o=r(6029),s=r(41735),a=r(13782),n=r(16603),i=r(34730),l=r(84588),d=r(79761);let c=s.default.div.withConfig({displayName:"layout-general__LayoutWrapper",componentId:"sc-167ad54-0"})(["display:flex;flex-direction:column;min-height:100vh;"]),u=s.default.main.withConfig({displayName:"layout-general__Main",componentId:"sc-167ad54-1"})(["flex:1;overflow:hidden;"]);function p(e){let{children:t,title:r,description:s,imageUrl:p,path:h,breadcrumbs:f,onCompleteReadingHandle:g}=e,x=r?"".concat(r," - ").concat(a.z):r;return(0,o.jsxs)(c,{children:[(0,o.jsx)(i.A,{title:x,description:s,imageUrl:p,path:h}),f&&f.length>0&&(0,o.jsx)(d.A,{id:"breadcrumb",data:(0,n.Wt)(f)}),(0,o.jsx)(l.A,{}),(0,o.jsx)(u,{children:t})]})}},49745:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSP:()=>b,default:()=>j});var o=r(6029),s=r(81278),a=r(55729),n=r(41735),i=r(26427),l=r(59662);let d=n.default.div.withConfig({displayName:"password__PageWrapper",componentId:"sc-96ad7f6c-0"})(["background-color:",";min-height:100vh;display:flex;align-items:center;justify-content:center;padding:20px;"],e=>{let{theme:t}=e;return t.colors.grayscale[95]}),c=n.default.div.withConfig({displayName:"password__Card",componentId:"sc-96ad7f6c-1"})(["background-color:white;border-radius:12px;padding:24px;box-shadow:0 2px 8px rgba(0,0,0,0.1);width:100%;max-width:320px;"]),u=n.default.h2.withConfig({displayName:"password__Title",componentId:"sc-96ad7f6c-2"})(["font-size:18px;font-weight:700;line-height:1.5;color:",";text-align:center;margin:0 0 16px;"],e=>{let{theme:t}=e;return t.colors.primary[20]}),p=n.default.form.withConfig({displayName:"password__Form",componentId:"sc-96ad7f6c-3"})(["display:flex;flex-direction:column;gap:16px;"]),h=n.default.div.withConfig({displayName:"password__PasswordWrapper",componentId:"sc-96ad7f6c-4"})(["position:relative;"]),f=n.default.input.withConfig({displayName:"password__PasswordInput",componentId:"sc-96ad7f6c-5"})(["width:100%;padding:12px 48px 12px 16px;font-size:16px;line-height:1.5;color:",";background-color:white;border:1px solid ",";border-radius:4px;&:focus{outline:none;border-color:",";}"],e=>{let{theme:t}=e;return t.colors.grayscale[0]},e=>{let{theme:t}=e;return t.colors.grayscale[80]},e=>{let{theme:t}=e;return t.colors.primary[20]}),g=n.default.button.withConfig({displayName:"password__ToggleButton",componentId:"sc-96ad7f6c-6"})(["position:absolute;right:12px;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer;padding:4px;display:flex;align-items:center;justify-content:center;color:",";&:hover{color:",";}"],e=>{let{theme:t}=e;return t.colors.grayscale[60]},e=>{let{theme:t}=e;return t.colors.grayscale[40]}),x=n.default.button.withConfig({displayName:"password__SubmitButton",componentId:"sc-96ad7f6c-7"})(["width:100%;padding:12px 20px;font-size:16px;font-weight:700;line-height:1.5;color:white;background-color:",";border:none;border-radius:4px;cursor:pointer;transition:background-color 0.2s ease;&:hover{background-color:",";}&:disabled{background-color:",";cursor:not-allowed;}"],e=>{let{theme:t}=e;return t.colors.primary[40]},e=>{let{theme:t}=e;return t.colors.primary[0]},e=>{let{theme:t}=e;return t.colors.grayscale[60]}),m=n.default.div.withConfig({displayName:"password__ErrorMessage",componentId:"sc-96ad7f6c-8"})(["font-size:14px;line-height:1.5;color:",";text-align:center;"],e=>{let{theme:t}=e;return t.colors.error.d}),w=()=>(0,o.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[(0,o.jsx)("path",{d:"M10 4C4.5 4 1 10 1 10s3.5 6 9 6 9-6 9-6-3.5-6-9-6z"}),(0,o.jsx)("circle",{cx:"10",cy:"10",r:"3"})]}),y=()=>(0,o.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[(0,o.jsx)("path",{d:"M10 4C4.5 4 1 10 1 10s3.5 6 9 6 9-6 9-6-3.5-6-9-6z"}),(0,o.jsx)("circle",{cx:"10",cy:"10",r:"3"}),(0,o.jsx)("path",{d:"M3 17L17 3"})]}),_=()=>{let e=(0,s.useRouter)(),{email:t}=e.query,{signInWithEmail:r,error:n,clearError:i,needsRegistration:_,member:b}=(0,l.A)(),[j,v]=(0,a.useState)(""),[C,k]=(0,a.useState)(!1),[N,I]=(0,a.useState)(!1),[S,z]=(0,a.useState)(!1);(0,a.useEffect)(()=>{S&&(_?e.push("/auth/register?email=".concat(encodeURIComponent(t))):b&&e.push("/auth/login-result?success=true"))},[S,_,b,t,e]);let E=async o=>{if(o.preventDefault(),j.trim()&&t){I(!0),i();try{await r(t,j)?z(!0):e.push("/auth/login-result?success=false")}catch(t){e.push("/auth/login-result?success=false")}finally{I(!1)}}};return(0,o.jsx)(d,{children:(0,o.jsxs)(c,{children:[(0,o.jsx)(u,{children:"è«è¼¸å
¥å¯ç¢¼"}),(0,o.jsxs)(p,{onSubmit:E,children:[(0,o.jsxs)(h,{children:[(0,o.jsx)(f,{type:C?"text":"password",value:j,onChange:e=>v(e.target.value),disabled:N,autoFocus:!0}),(0,o.jsx)(g,{type:"button",onClick:()=>k(!C),"aria-label":C?"é±èå¯ç¢¼":"顯示å¯ç¢¼",children:C?(0,o.jsx)(y,{}):(0,o.jsx)(w,{})})]}),n&&(0,o.jsx)(m,{children:n}),(0,o.jsx)(x,{type:"submit",disabled:N||!j.trim(),children:"ç»å
¥"})]})]})})};_.getLayout=function(e){return(0,o.jsx)(i.A,{title:"輸å
¥å¯ç¢¼ - ç°å¢è³è¨ä¸å¿",description:"輸å
¥å¯ç¢¼ç»å
¥",children:e})};var b=!0;let j=_}},e=>{e.O(0,[4254,742,6063,636,6593,8792],()=>e(e.s=20529)),_N_E=e.O()}]);
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.