PageSourceSearch

https://ahnbohyun-fc.com/assets/UpdatePersonalInformation-ChUtsYE2.js

js ahnbohyun-fc.com collected 2026-10-09 00:36:56 UTC 3,502 bytes, 1 lines download raw bytes

1import{r as o,j as e}from"./vendor-react-CYOoHjOf.js";import{j as P}from"./vendor-redux-BXotTMQH.js";import{F as R}from"./FormikTextField-wLZ9yJXR.js";import{c as M,u as E,F as O,a as m}from"./create-user.helpers-0CeOOF45.js";import{i as v,h as T,n as N,bP as g,b as A,a as U,bQ as _,bR as B,bS as p,al as D,v as K,T as i,ad as L,k as C,bT as G,bK as k,b1 as w,bu as Y,t as z}from"./index-NXCSpy0w.js";import{R as H}from"./ReturnButton-C43vaIAe.js";import{A as V}from"./auth.errors-DTnZIWtF.js";import{U as W,G as q,B as Q,P as J,A as X}from"./UsernameForm-Z0r2Whdn.js";import{aK as a}from"./vendor-mui-A_M4pNO3.js";import"./vendor-lodash-Cp5T_Ztg.js";import"./Lazy-BVOBDO3o.js";import"./form-validate-BSI3dMt8.js";import"./vendor-axios-BLlBCaos.js";import"./vendor-auth-DXBuXNeD.js";import"./vendor-motion-CwbUqb9k.js";import"./FormikCheckbox-BChVHxZL.js";import"./google-maps-api-helpers-BfTl6iAE.js";import"./render-number-array-BTMNKAXM.js";import"./FormikRadioGroup-CtsfdQxG.js";const Z=()=>{const n=v(),f=T(),h=N(),b=o.useRef(!!h.state?.validateOnMount),l=g(),{fanclubMemberId:s,isFreeMember:x}=A(),u=U(t=>t.auth.fanclubPersonalInfo),r=u?.data?.fanclubMember?.personalInfo,[c,I]=o.useState(!0),S=M(u?.data?.fanclubMember?u.data.fanclubMember:null,null,u?.data?.countryOfResidences??null,x),y=o.useMemo(()=>{const t=sessionStorage.getItem(_),d=sessionStorage.getItem(B);return t&&d!=="NFC_MP_250"?t:p.PERSONAL_INFORMATION},[]),j=(t,{setSubmitting:d})=>{s&&n(r?G({fanclubSiteId:l,fanclubMemberId:s,data:m(t,!0,!0,!0)}):k({fanclubSiteId:l,fanclubMemberId:s,data:m(t)})).then(P).then(()=>{f.push(p.PERSONAL_INFORMATION),n(w({withIcon:!0,snackbarType:Y.SUCCESS,message:V.MSGNFMP25001}))}).catch(F=>z({error:F,dispatch:n})).finally(()=>d(!1))};return o.useEffect(()=>{s&&c&&n(D({fanclubSiteId:l,fanclubMemberId:s})).finally(()=>I(!1))},[n,s,c,l]),o.useEffect(()=>{window.history.replaceState({},document.title)},[]),c?e.jsx(K,{isFullScreen:!0}):e.jsxs(a,{p:6,maxWidth:553,mx:"auto",children:[e.jsx(H,{path:y}),e.jsx(a,{mb:6,mt:3.5,children:e.jsx(i,{variant:"h5",children:r?"個人情報の変更":"個人情報の入力"})}),!r&&e.jsx(a,{mb:7,children:e.jsxs(i,{variant:"body2",children:["個人情報の追加入力が必要です。",e.jsx("br",{})," 以下の項目をご入力ください。"]})}),e.jsx(R,{validateOnMount:!0,initialValues:S,validationSchema:E,onSubmit:j,initialTouched:b.current?{fanclubMember:{personalInfo:{firstName:!0,lastName:!0,firstNameKana:!0,lastNameKana:!0,gender:!0,birthdayYear:!0,birthdayMonth:!0,birthdayDate:!0,phoneNumber:!0,countryOfResidence:!0,postCode:!0,prefecture:!0,addressCity:!0,address1:!0,address2:!0}}}:void 0,children:({isSubmitting:t})=>e.jsxs(O,{formId:"formUpdate",children:[e.jsx(W,{}),e.jsx(q,{}),r?.birthdayDate?e.jsxs(a,{mb:8,children:[e.jsxs(a,{display:"flex",alignItems:"center",mb:1,children:[e.jsx(i,{variant:"h6",children:"生年月日"}),e.jsxs(a,{color:"error.main",display:"flex",alignItems:"center",ml:2,fontSize:18,children:[e.jsx(L,{iconKey:"InfoIcon",fontSize:"inherit"}),e.jsx(a,{ml:1,children:e.jsx(i,{variant:"caption",children:"登録後は変更できません"})})]})]}),e.jsxs(i,{variant:"body2",children:[r?.birthdayYear,"年",r?.birthdayMonth,"月",r?.birthdayDate,"日"]})]}):e.jsx(Q,{}),e.jsx(J,{}),e.jsx(X,{}),e.jsx(a,{pb:12,children:e.jsx(C,{color:"primary",variant:"contained",fullWidth:!0,disabledWithOpacity:!0,size:"large",disabled:t,type:"submit",children:"保存"})})]})})]})},Ie=o.memo(Z);export{Ie 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.