1import{r as u,j as t}from"./vendor-react-CYOoHjOf.js";import{j as p}from"./vendor-redux-BXotTMQH.js";import{F as E,a as j}from"./FormikTextField-wLZ9yJXR.js";import{I as h}from"./InputPassword-DEEn31F-.js";import{H as R,D as b,h as g,n as D,a as A,bX as L,i as y,bY as i,bZ as W,t as f,j as l,ar as F,v as _,T as C,b_ as V,q as O,o as v,b$ as N,z as T}from"./index-NXCSpy0w.js";import{g as P}from"./form-validate-BSI3dMt8.js";import{aK as c,aI as S,aV as k}from"./vendor-mui-A_M4pNO3.js";import"./vendor-lodash-Cp5T_Ztg.js";import"./vendor-axios-BLlBCaos.js";import"./vendor-auth-DXBuXNeD.js";import"./vendor-motion-CwbUqb9k.js";const G=P({}).when("newPassword",(s,n)=>s?n.equals([s],b.MSGCM006):n),M=R({newPassword:P({}),newPasswordConfirm:G}),X={newPassword:"",newPasswordConfirm:""},H=()=>{const s=g(),n=D(),r=new URLSearchParams(n.search).get("token"),d=A(a=>a.app.fanclubSiteInfo?.platformId)===L.CHPL,e=y(),[w,m]=u.useState(!0);if(u.useEffect(()=>{if(r&&!d){let a=i.VALID;e(W(r)).then(p).then(o=>{a=o.status}).catch(o=>{f({error:o,dispatch:e}),a=i.INVALID}).finally(()=>{m(!1),a!==i.VALID&&s.push(a===i.INVALID?l.RENEW_PASSWORD_EXPIRED:l.REISSUE_PASSWORD_EXPIRED)})}else m(!1)},[e,s,r,d]),!r)return t.jsx(F,{to:l.RENEW_PASSWORD_EXPIRED});if(w)return t.jsx(_,{isFullScreen:!0});const x=({newPassword:a},{setSubmitting:o})=>{e(V({data:{otp:r,newPassword:a},fanclubSiteId:v(),fanclubGroupId:O()})).then(p).then(()=>{N()&&e(T()),s.push(l.RENEW_PASSWORD_COMPLETE)}).catch(I=>{f({error:I,dispatch:e})}).finally(()=>o(!1))};return t.jsxs(c,{p:6,mx:"auto",maxWidth:552,children:[t.jsx(c,{mb:6,children:t.jsx(C,{variant:"h5",children:"ãã¹ã¯ã¼ãåè¨å®"})}),t.jsx(E,{initialValues:X,validationSchema:M,onSubmit:x,children:t.jsxs(j,{children:[t.jsx(h,{fullWidth:!0,name:"newPassword",customLabel:"æ°ãããã¹ã¯ã¼ã",placeholder:"æ°ãããã¹ã¯ã¼ããå
¥å",helperText:t.jsx(S,{variant:"caption",color:"textSecondary",children:"ã¹ãã¼ã¹ãæ©ç¨®ä¾åæåãå«ãããåè§è±æ°è¨å·8ã32æå以å
ã§å
¥åãã¦ãã ãããè¨å·ãå©ç¨å¯è½ã§ãã"})}),t.jsx(c,{mt:2,children:t.jsx(h,{fullWidth:!0,name:"newPasswordConfirm",customLabel:"æ°ãããã¹ã¯ã¼ãï¼ç¢ºèªï¼",placeholder:"æ°ãããã¹ã¯ã¼ããå
¥å(確èª)"})}),t.jsx(c,{my:10,children:t.jsx(S,{variant:"caption",color:"textSecondary",children:"夿´ããã¨ä»ã®å
¨ã¦ã®ãã©ã¦ã¶ãã¢ããªã§ãã°ã¢ã¦ãããã¾ã"})}),t.jsx(k,{size:"large",color:"primary",variant:"contained",fullWidth:!0,type:"submit",children:"夿´"})]})})]})},st=u.memo(H);export{st 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.