PageSourceSearch

https://meetsmore.com/assets/ResetPassword-DHLlyzBr.js

js meetsmore.com collected 2026-09-24 09:09:18 UTC 2,694 bytes, 1 lines download raw bytes

1import{e as f,o as y,u as b,ln as h,be as x,oX as k,r as M,j as s,aO as j,R as v,L as E,ck as P,cl as S,cg as _,m as T,bo as I,g as R,oW as D,am as z}from"./index-DkpLsOxt.js";import{M as B,H as W}from"./index-C8x4I9EJ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"23d597f"},e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=(function(r){for(var a=1;a<arguments.length;a++){var o=arguments[a];if(o!=null)for(var d in o)o.hasOwnProperty(d)&&(r[d]=o[d])}return r})({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:meetsmore-web-app-key":!0});var i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="028ad4ae-6a55-441c-a89e-b0e93d4fd99f",e._sentryDebugIdIdentifier="sentry-dbid-028ad4ae-6a55-441c-a89e-b0e93d4fd99f")}catch{}})();const A=T(e=>({main:{padding:e.spacing(2.5),width:"70vw",maxWidth:640,margin:e.spacing(3.75,"auto"),background:e.palette.common.white,borderStyle:"solid",borderColor:e.palette.grey[300],borderWidth:1,[e.breakpoints.down("sm")]:{width:"100%",maxWidth:"initial",borderWidth:"1px 0"}},submitButton:{margin:e.spacing(2,0),width:"100%",height:50},passwordError:{color:e.palette.error.main,marginBottom:e.spacing(2)}})),N=()=>{const e=f(),i=A(),r=y(),a=b(t=>t.auth.user),{isOrganizationUser:o}=h(),[d]=x(),l=d.get("redirectTo"),[u]=k(),p=async({newpassword:t})=>{var c;try{const n=await u({userResetPasswordDto:{userId:R(a.id),resetToken:a.resetToken,newPassword:t}}).unwrap();if(!n.token)throw new Error("不明なエラーが発生しました");if(await r(D({token:n.token})),l){e(l,{replace:!0});return}e(o?"/organizations/requests/new":"/")}catch(n){const g=((c=n==null?void 0:n.data)==null?void 0:c.message)||"不明なエラーが発生しました";await r(z(g))}},w=t=>I(t.newpassword,"newpassword"),m=!(a!=null&&a.isProductProvider);return M.useLayoutEffect(()=>{a.email||e("/account/info",{replace:!0})},[]),s.jsxs(B,{header:s.jsx(W,{to:a.pro&&m?"/pros/setting":"/account",children:"パスワードを編集"}),children:[s.jsx(j,{children:s.jsx("title",{children:"パスワードを編集"})}),s.jsx("div",{className:i.main,children:s.jsx(v,{onSubmit:p,validate:w,children:({handleSubmit:t,submitting:c})=>s.jsxs("form",{onSubmit:t,children:[s.jsx(E,{name:"newpassword",component:P,label:"新しいパスワード",type:"password"}),s.jsx(S,{variant:"contained",type:"submit",disabled:c,color:"primary",className:i.submitButton,children:c?s.jsx(_,{size:20,color:"secondary"}):"パスワードを設定する"})]})})})]})};export{N 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.