1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="1f7dacde-f24c-43b3-808b-628a55a65dd3",e._sentryDebugIdIdentifier="sentry-dbid-1f7dacde-f24c-43b3-808b-628a55a65dd3")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2896],{32923:(e,r,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/update-password",function(){return t(95097)}])},92013:(e,r,t)=>{"use strict";t.d(r,{A:()=>n});let n=(0,t(2009).A)("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]])},95097:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>v});var n=t(23798),s=t(11307),a=t(4033),d=t(26194),l=t(85685),o=t(813);let i="ãã¹ã¯ã¼ãã¯8æå以ä¸ã§ãè±åã¨æ°åãå«ãã¦ãã ããã",c="ç¡å¹ãªãªã³ã¯ã§ãããã¹ã¯ã¼ããªã»ãããå度ã試ããã ããã",u=e=>"string"==typeof e&&e.length>=8&&/[A-Za-z]/.test(e)&&/\d/.test(e),h=(e,r,t)=>e.get(t)||r.get(t)||"";var f=t(92013),p=t(98425),m=t(77714),x=t(8272),b=t.n(x),y=t(81131),k=t(21462),g=t(12173),w=t(15104);function v(){let[e,r]=(0,k.useState)(""),[t,x]=(0,k.useState)(""),[v,j]=(0,k.useState)(!1),[_,N]=(0,k.useState)(!1),[R,D]=(0,k.useState)(!1),[S,A]=(0,k.useState)(null),[P,C]=(0,k.useState)(null),T=(0,y.useRouter)(),E=(0,l.P)(),{t:z,i18n:I}=(0,g.Bd)(),M="prizm"===E?"ããªãºã ãã£ãã -Prizm Chat-":(0,o.Xq)(I.language);(0,k.useEffect)(()=>{if(!T.isReady)return;let{credential:e,errorDescription:r}=((e,r)=>{let t=h(e,r,"error_description")||null;if(t)return{credential:null,errorDescription:t};let n=h(e,r,"access_token");if(n)return{credential:{kind:"token",accessToken:n,refreshToken:h(e,r,"refresh_token")},errorDescription:null};let s=h(e,r,"code");if(s)return{credential:{kind:"code",code:s},errorDescription:null};let a=h(e,r,"token_hash"),d=h(e,r,"type");return a&&"recovery"===d?{credential:{kind:"otp",tokenHash:a,type:"recovery"},errorDescription:null}:"1"===h(e,r,"recovery")?{credential:{kind:"cookie"},errorDescription:null}:{credential:null,errorDescription:null}})(new URLSearchParams(window.location.search),new URLSearchParams(window.location.hash.slice(1)));if(!e){C(null),A(r||c);return}C({credential:e}),A(null)},[T.isReady]);let O=async()=>{if(e!==t)return void w.oR.error("ãã¹ã¯ã¼ããä¸è´ãã¾ããã");if(!u(e))return void w.oR.error(i);D(!0);try{if(!(null==P?void 0:P.credential))return void w.oR.error(c);let r=await fetch("/api/auth/update-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:e,...(e=>{if(!e)return{};switch(e.kind){case"token":return{access_token:e.accessToken,refresh_token:e.refreshToken};case"code":return{code:e.code};case"otp":return{token_hash:e.tokenHash,type:e.type};case"cookie":return{recovery:!0}}})(P.credential)})});if(r.ok)w.oR.success("ãã¹ã¯ã¼ããæ´æ°ãã¾ããã"),T.push("/auth/signin");else{let e=await r.json();w.oR.error(e.error||"ãã¹ã¯ã¼ãã®æ´æ°ã«å¤±æãã¾ããã")}}catch(e){console.error("[UpdatePassword] Error:",e),w.oR.error("ãã¹ã¯ã¼ãã®æ´æ°ä¸ã«ã¨ã©ã¼ãçºçãã¾ããã")}finally{D(!1)}};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(b(),{children:(0,n.jsx)("title",{children:"".concat(z("ãã¹ã¯ã¼ãã®æ´æ°")," | ").concat(M)})}),(0,n.jsx)("div",{className:"bg-muted-foreground",children:(0,n.jsx)("div",{className:"content mx-auto flex h-dvh flex-col items-center justify-center bg-gradient-to-b from-black/30 to-transparent p-4 font-nitalagoRuika",children:(0,n.jsxs)("div",{className:"w-full max-w-md rounded-lg bg-white/90 p-6 backdrop-blur-sm",children:[(0,n.jsx)("h1",{className:"mb-6 text-center text-2xl font-bold",children:z("ãã¹ã¯ã¼ãã®æ´æ°")}),S?(0,n.jsx)("div",{className:"mb-4 rounded-md bg-red-100 p-4 text-red-700",children:S}):(0,n.jsxs)("div",{className:"space-y-4",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(d.J,{htmlFor:"password",children:z("æ°ãããã¹ã¯ã¼ã")}),(0,n.jsxs)("div",{className:"mt-2 flex items-center rounded-md border border-gray-300 bg-background",children:[(0,n.jsx)(a.p,{id:"password",type:v?"text":"password",value:e,onCh
1ange:e=>r(e.target.value),placeholder:z("æ°ãããã¹ã¯ã¼ã"),className:"w-full border-none bg-transparent p-2",disabled:R}),(0,n.jsx)(s.$,{variant:"link",onClick:e=>{e.preventDefault(),j(!v)},children:v?(0,n.jsx)(f.A,{}):(0,n.jsx)(p.A,{})})]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)(d.J,{htmlFor:"confirmPassword",children:z("æ°ãããã¹ã¯ã¼ãï¼ç¢ºèªï¼")}),(0,n.jsxs)("div",{className:"mt-2 flex items-center rounded-md border border-gray-300 bg-background",children:[(0,n.jsx)(a.p,{id:"confirmPassword",type:_?"text":"password",value:t,onChange:e=>x(e.target.value),placeholder:z("æ°ãããã¹ã¯ã¼ãï¼ç¢ºèªï¼"),className:"w-full border-none bg-transparent p-2",disabled:R}),(0,n.jsx)(s.$,{variant:"link",onClick:e=>{e.preventDefault(),N(!_)},children:_?(0,n.jsx)(f.A,{}):(0,n.jsx)(p.A,{})})]})]}),e.length>0&&!u(e)&&(0,n.jsx)("div",{className:"text-sm text-red-600",children:z(i)}),e&&t&&e!==t&&(0,n.jsx)("div",{className:"text-sm text-red-600",children:z("ãã¹ã¯ã¼ããä¸è´ãã¾ããã")}),(0,n.jsxs)(s.$,{onClick:O,className:"w-full",disabled:R||!e||!t||e!==t||!u(e),children:[R?(0,n.jsx)(m.A,{className:"mr-2 size-4 animate-spin"}):null,z("ãã¹ã¯ã¼ããæ´æ°")]})]})]})})})]})}},98425:(e,r,t)=>{"use strict";t.d(r,{A:()=>n});let n=(0,t(2009).A)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=32923)),_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.