PageSourceSearch

https://login.app.ivry.jp/assets/edit-main-CyvSWH58.js

js ivry.jp collected 2026-09-24 09:15:15 UTC 6,062 bytes, 1 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`0d684a29d77692548d5de54fc3a464ccde02f330`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`e57ea83c-9a1f-477f-9e4d-c6b7accb87f2`,e._sentryDebugIdIdentifier=`sentry-dbid-e57ea83c-9a1f-477f-9e4d-c6b7accb87f2`)}catch{}})();import{B as e,H as t}from"./utils-DnP2dzd4.js";import{a as n,f as r,u as i}from"./components-BvMDCxVp.js";import{t as a}from"./jsx-runtime-BNBhkZzq.js";import{t as o}from"./compiler-runtime-zoDU0zOl.js";import{t as s}from"./title-DqAQwQor.js";import{t as c}from"./FormHeader-CRKecyr3.js";import{t as l}from"./password-BY_r5cD6.js";import{t as u}from"./Pending-DzDGWSfI.js";import{t as d}from"./Stack-Cddo9l6k.js";import{r as f,t as p}from"./apiClient-1QKhtWeL.js";import{t as m}from"./primaryLink-BJYiQGuz.js";import{t as h}from"./submit-BVcWFiVs.js";import"./edit-client-loader-DwfQF_N1.js";import"./edit-client-middleware-Cy01H9Lj.js";var g=t(e(),1),_=o(),v={hiddenEmail:`_hiddenEmail_e9n32_1`},y=a(),b=e=>{let t=(0,_.c)(43),{phase:n,isReplaceMode:r,email:i,error:a,confirmError:o,submitPassword:s}=e,[f,p]=(0,g.useState)(``),[b,x]=(0,g.useState)(``);if(n===`completed`){let e=r?`パスワードを変更しました`:`パスワードを設定しました`,n;t[0]===e?n=t[1]:(n=(0,y.jsx)(c,{title:e,children:`新しいパスワードでログインできるようになりました。`}),t[0]=e,t[1]=n);let i;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,y.jsx)(m,{href:`/login`,children:`ログイン画面へ`}),t[2]=i):i=t[2];let a;return t[3]===n?a=t[4]:(a=(0,y.jsxs)(y.Fragment,{children:[n,i]}),t[3]=n,t[4]=a),a}if(n===`already_enrolled`){let e=a?.detail??`既存のパスワードを変更する場合は認証情報の管理画面から行ってください。`,n;t[5]===e?n=t[6]:(n=(0,y.jsx)(c,{title:`パスワードはすでに設定されています`,children:e}),t[5]=e,t[6]=n);let r;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,y.jsx)(m,{href:`/login`,children:`ログイン画面へ`}),t[7]=r):r=t[7];let i;return t[8]===n?i=t[9]:(i=(0,y.jsxs)(y.Fragment,{children:[n,r]}),t[8]=n,t[9]=i),i}if(n===`stale_session`){let e=a?.detail??`パスワードを変更する前にもう一度ログインしてください。`,n;t[10]===e?n=t[11]:(n=(0,y.jsx)(c,{title:`セッションの有効期限が切れました`,children:e}),t[10]=e,t[11]=n);let r;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,y.jsx)(m,{href:`/login`,children:`ログインする`}),t[12]=r):r=t[12];let i;return t[13]===n?i=t[14]:(i=(0,y.jsxs)(y.Fragment,{children:[n,r]}),t[13]=n,t[14]=i),i}if(n===`unauthenticated`){let e;return t[15]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,y.jsx)(u,{message:`ログイン画面に移動しています…`}),t[15]=e):e=t[15],e}let S=r?`パスワードの変更`:`パスワードの再設定`,C;t[16]===S?C=t[17]:(C=(0,y.jsx)(c,{title:S}),t[16]=S,t[17]=C);let w;t[18]!==f||t[19]!==b||t[20]!==s?(w=()=>s(f,b),t[18]=f,t[19]=b,t[20]=s,t[21]=w):w=t[21];let T;t[22]===i?T=t[23]:(T=i&&(0,y.jsx)(`input`,{type:`email`,name:`email`,autoComplete:`username`,value:i,readOnly:!0,tabIndex:-1,"aria-hidden":`true`,className:v.hiddenEmail}),t[22]=i,t[23]=T);let E;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(E=e=>p(e.target.value),t[24]=E):E=t[24];let D=a?.title,O;t[25]!==f||t[26]!==D?(O=(0,y.jsx)(l,{label:`新しいパスワード`,name:`new-password`,autoComplete:`new-password`,value:f,onChange:E,error:D,policyCheck:!0}),t[25]=f,t[26]=D,t[27]=O):O=t[27];let k;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(k=e=>x(e.target.value),t[28]=k):k=t[28];let A=o??void 0,j;t[29]!==b||t[30]!==A?(j=(0,y.jsx)(l,{label:`新しいパスワード(確認用)`,name:`new-password-confirm`,autoComplete:`new-password`,value:b,onChange:k,error:A}),t[29]=b,t[30]=A,t[31]=j):j=t[31];let M;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,y.jsx)(h,{children:`変更する`}),t[32]=M):M=t[32];let N;t[33]!==j||t[34]!==O?(N=(0,y.jsxs)(d,{gap:`m`,fullWidth:!0,children:[O,j,M]}),t[33]=j,t[34]=O,t[35]=N):N=t[35];let P;t[36]!==N||t[37]!==w||t[38]!==T?(P=(0,y.jsxs)(`form`,{action:w,children:[T,N]}),t[36]=N,t[37]=w,t[38]=T,t[39]=P):P=t[39];let F;return t[40]!==P||t[41]!==C?(F=(0,y.jsxs)(y.Fragment,{children:[C,P]}),t[40]=P,t[41]=C,t[42]=F):F=t[42],F};function x(e){return[{title:s(`パスワードの再設定`)}]}function S(e,t){return t===401?e.type?.includes(`stepup-authentication-required`)?`stale_session`:`unauthenticated`:t===409&&e.type?.includes(`already-enrolled`)?`already_enrolled`:`error`}var C=n(function(e){let t=(0,_.c)(16),{loaderData:n}=e,[a,o]=(0,g.useState)(`editing`),[s,c]=(0,g.useState)(null),[l,u]=(0,g.useState)(null),d;t[0]!==n.credentialId||t[1]!==n.replacement?(d=async(e,t)=>{if(c(null),u(null),e.length===0){c({title:`新しいパスワードを入力してください。`});return}if(e!==t){u(`パスワードと確認用パスワードが一致しません。`);return}let{data:r,error:i,response:a}=await p.POST(`/v1/login/password_credentials`,{body:{password:e,replace_credential_id:n.replacement?n.credentialId??void 0:void 0}});if(i){f(i)?(c(i),o(S(i,a.status))):(c({title:`パスワードの変更に失敗しました。`}),o(`error`));return}r&&o(`completed`)},t[0]=n.credentialId,t[1]=n.replacement,t[2]=d):d=t[2];let m=d,h=r(),v=i(),x,C;t[3]!==v.pathname||t[4]!==v.search||t[5]!==h||t[6]!==a?(x=()=>{(a===`unauthenticated`||a===`stale_session`)&&h(`/login?new_session=true&continue=${encodeURIComponent(v.pathname+v.search)}`)},C=[a,h,v.pathname,v.search],t[3]=v.pathname,t[4]=v.search,t[5]=h,t[6]=a,t[7]=x,t[8]=C):(x=t[7],C=t[8]),(0,g.useEffect)(x,C);let w;return t[9]!==l||t[10]!==s||t[11]!==n.email||t[12]!==n.replacement||t[13]!==a||t[14]!==m?(w=(0,y.jsx)(b,{phase:a,isReplaceMode:n.replacement,email:n.email,error:s,confirmError:l,submitPassword:m}),t[9]=l,t[10]=s,t[11]=n.email,t[12]=n.replacement,t[13]=a,t[14]=m,t[15]=w):w=t[15],w});
1export{C as default,x as meta};

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.