PageSourceSearch

https://itomiku-fc.jp/assets/DeleteAccountScreen-CnU1QST_.js

js itomiku-fc.jp collected 2026-09-25 08:27:24 UTC 4,106 bytes, 1 lines download raw bytes

1import{s as M,j as t,T as b,l as O,m as N,n as i,o as d,C as T,p as w,q as D,t as L,v as A,w as k,x as C,r as o,y as B,z as U,E as W,f as G,F as _,G as $,H as J,I as V,J as q,K as z,M as P,N as H,O as K,k as X}from"./index-Dbs4T2cU.js";import{R as y}from"./ReturnButton-iqWhkyd6.js";import{F as Q,a as Y}from"./FormikTextField-D4set4PP.js";import{I as Z}from"./InputPassword-B2GbMDJz.js";import{s as tt,S,c as g}from"./account.helpers-HJyiu3Jo.js";import{e as st}from"./auth-niconico-DVzROP80.js";import"./TextField-CEv5e5nm.js";import"./useFormControl-DXTz4kan.js";import"./form-validate-1257gOZk.js";const v="AccountDeleteNotice",m={title:`${v}-title`,content:`${v}-content`},et=M("div")(({theme:s})=>({[`& .${m.title}`]:{marginTop:s.spacing(3),marginBottom:s.spacing(6)}})),at=M("div")(({theme:s})=>({[`& .${m.content}`]:{marginBottom:s.spacing(10)}})),nt=({returnButton:s})=>t.jsxs(t.Fragment,{children:[t.jsx(y,{variant:"text",text:s.text,path:s.path}),t.jsx(et,{className:m.title,children:t.jsx(b,{variant:"h5",children:"アカウント削除"})}),t.jsxs(at,{className:m.content,children:[t.jsx(b,{marginBottom:20,variant:"body2",children:"コンビニ決済・Pay-easyの入金待ち状態から5日間は、アカウント削除できません。"}),t.jsx(b,{variant:"body2",children:"ご案内の手順に沿ってお支払い手続きをお願いいたします。"})]})]}),rt=({fanclubMemberId:s,fanclubSiteId:h,returnButton:c})=>{const F=O(),p=N(),a=(n,e)=>p(L({fanclubSiteId:h,fanclubMemberId:s,passwordAccount:n})).then(A).then(x=>{x?F.push(k.DELETE_ACCOUNT_CONFIRM,{password:n.password}):e.setFieldError("password",C.MSGCM004)}).catch(()=>e.setFieldError("password",C.MSGCM004));return t.jsxs(t.Fragment,{children:[t.jsx(y,{variant:"text",text:c.text,path:c.path}),t.jsx(i,{mt:3,mb:6,children:t.jsx(d,{variant:"h5",children:"アカウント削除"})}),t.jsx(i,{mb:10,children:t.jsxs(d,{variant:"body2",children:["パスワードを入力し、”次へ”を押すとアカウント削除手続きへ進みます。",t.jsx("br",{}),"本当にアカウントを削除しますか?"]})}),t.jsx(Q,{initialValues:{password:""},validationSchema:tt,onSubmit:a,children:({isSubmitting:n})=>t.jsxs(Y,{children:[t.jsx(Z,{fullWidth:!0,name:"password",customLabel:"パスワード",placeholder:"パスワードを入力"}),t.jsx(i,{mt:2,children:t.jsx(T,{variant:"body2",withFixedColor:!0,ReactRouterDomLinkProps:{to:w.REISSUE_PASSWORD},children:"パスワードを忘れた場合"})}),t.jsx(i,{mt:10,children:t.jsx(D,{type:"submit",fullWidth:!0,disabled:n,variant:"contained",color:"secondary",children:"次へ"})})]})})]})},it=({returnButton:s})=>t.jsxs(t.Fragment,{children:[t.jsx(y,{variant:"text",text:s.text,path:s.path}),t.jsx(i,{mt:3,mb:6,children:t.jsx(d,{variant:"h5",children:"アカウント削除"})}),t.jsx(i,{mb:10,children:t.jsx(d,{variant:"body2",children:"会員プランに入会中のため、アカウントを削除することができません。先に退会手続きをしてください。"})})]}),ft=()=>{const[s,h]=o.useState(!0),[c,F]=o.useState(!1),{keyCloakUserId:p}=B(),a=N(),n=U(),{fanclubMemberRegisterStatus:e}=W(j=>j.account),x=!!e?.isWaitingPayment,{fanclubMemberId:r}=G(),l=_(),E=$();J();const I=X(),R=o.useMemo(()=>e?.fanclubSpecificProfile?.activeFanclubMembership?.fanclubBillingPlan,[e?.fanclubSpecificProfile?.activeFanclubMembership?.fanclubBillingPlan,c,I]);V.useEffect(()=>{r&&l&&a(q({fanclubSiteId:l,fanclubMemberId:r})).then(A).catch(j=>z({error:j,dispatch:a})).finally(()=>h(!1))},[a,l,r]),o.useEffect(()=>{},[a,E,r,I]);const f=n.state?.from,u=o.useMemo(()=>f===P.ACCOUNT_INFORMATION?{path:P.ACCOUNT_INFORMATION,text:"アカウント情報"}:null,[f]);return f!==P.ACCOUNT_INFORMATION||!u||st(p)?t.jsx(H,{notFound:!0}):s?t.jsx(K,{isFullScreen:!0}):e?x?t.jsx(S,{className:g.wrapper,children:t.jsx(nt,{returnButton:u})}):R?t.jsx(S,{className:g.wrapper,children:t.jsx(it,{returnButton:u})}):t.jsx(S,{className:g.wrapper,children:r&&t.jsx(rt,{fanclubSiteId:l,fanclubMemberId:r,returnButton:u})}):t.jsx("div",{children:"Error..."})};export{ft 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.