PageSourceSearch

https://astomo-st.com/assets/Dwc4SLvj.js

js astomo-st.com collected 2026-10-05 07:52:16 UTC 3,206 bytes, 2 lines download raw bytes

1import{r as d,c as p,j as s,a,m as g,B as u,T as h}from"./aPm1gOS0.js";import{Y as A,O as C,N as c,R as o,P as y,a2 as l,a as E,T,u as f,n as L,a3 as S,c as I,i as x,a4 as M,D as N,e as O,g as k,h as D}from"./QEHjKmOG.js";import{P}from"./C9GOC-iF.js";import{d as U}from"./BhNUT8Xp.js";import"./PE8KZyAE.js";import"./CLt15_r2.js";import"./DbT2gxom.js";import"./dzSK6Ihc.js";const _=()=>"/v1/login/lastAttempt",v=async t=>A(_(),{...t,method:"GET"});class w{state;constructor(e){this.state=e}}let r=!1;const R=async()=>{for(;r;)await C(100);try{r=!0;const t=await v({headers:await c.inject().createHeader()});return t.status!==200?null:new w({...t.data,loginAttemptedAt:new Date(t.data.loginAttemptedAt)})}catch(t){return c.isNetworkError(t)||c.inject().handleException(t),null}finally{r=!1}},j=()=>{const[t,e]=d.useState();return{model:t,fetch:async()=>{const n=await R();if(n)return e(n),n}}},b={SUCCESS:"成功",FAILURE:"失敗"},m={menuItemContainer:t=>p({padding:t.spacing(3),borderBottom:`1px solid ${t.palette.secondary[400]}`}),menuItem:()=>p({display:"flex",justifyContent:"space-between",alignItems:"center"})},F=[{title:"登録口座/お客様情報 変更",onClick:()=>y.goToUpdateAccount({isAccountAvailable:!0}),type:"click",requiredAccount:!0},{title:"ログインID 変更",onClick:l.inject().goToEmailChange,type:"click"},{title:"パスワード変更",onClick:l.inject().goToPasswordChange,type:"click"},{title:"パスキー設定",onClick:l.inject().gotoMFASetting,type:"click"},{title:o.DOCUMENTS.title,path:o.DOCUMENTS.path,type:"internal"},{title:o.SPECIFIC_ACCOUNT_TRADES.title,path:o.SPECIFIC_ACCOUNT_TRADES.path,type:"internal"},{title:o.SECURITY_TOKEN_DOCUMENTS.title,path:o.SECURITY_TOKEN_DOCUMENTS.path,type:"internal"},{title:o.BROKERAGE_DOCUMENTS.title,path:o.BROKERAGE_DOCUMENTS.path,type:"internal"},{title:"ヘルプサイト",path:"https://support.astomo-st.com/",type:"external"}],Y=t=>s(u,{css:m.menuItem,children:[t.title,t.type==="external"?a(S,{color:"secondary",width:"16px",height:"16px"}):a(I,{color:"secondary",width:"16px",height:"16px"})]}),B=t=>s(u,{children:[a(P,{title:o.MY_PAGE.title}),s(g,{children:[F.filter(e=>!e.requiredAccount||t.isAccountAvailable).map(e=>{const{title:i,...n}=e;return a(E,{underline:"none",customCss:m.menuItemContainer,...n,children:a(Y,{title:i,type:e.type})},e.title)}),a(u,{sx:e=>({mt:e.spacing(3),display:"flex",justifyContent:"center"}),children:a(T,{type:"click",onClick:()=>l.inject().signOut(),customCss:f.textCenter(),children:"ログアウト"})}),s(h,{mt:4,textAlign:"center",mb:3,variant:"body2",children:["前回ログイン試行日時:",L(t.lastLoginAttempt.state.loginAttemptedAt,"YYYY/MM/DD HH:mm")," ",b[t.lastLoginAttempt.state.status]]})]})]}),G=()=>{const{addLoadingId:t,removeLoadingId:e}=x(),i=M(),n=j();return d.useEffect(()=>{t("myPage"),Promise.all([i.fetch(),n.fetch()]).finally(()=>{e("myPage")})},[]),n.model===void 0||i.model===void 0?null:a(B,{lastLoginAttempt:n.model,isAccountAvailable:i.model.checkIsAvailable()})},Q=()=>a(D,{header:a(k,{}),footer:a(O,{}),globalNavigation:a(N,{}),pattern:"oneColumn",hoc:U,children:a(G,{})});export{G as Container,Q as MyPage};
2//# sourceMappingURL=Dwc4SLvj.js.map

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.