PageSourceSearch

https://meetsmore.com/assets/SignupPage-CLQ2VcAg.js

js meetsmore.com collected 2026-09-24 09:07:27 UTC 4,366 bytes, 1 lines download raw bytes

1import{o as S,e as E,f as M,u as b,s as R,by as N,j as e,S as x,aO as A,b6 as T,B as F,R as O,bz as L,L as g,bk as f,T as j,bl as D,bA as P,bB as B,O as C,t as V,bm as z,bC as U,bD as W,bo as G,bp as q,bE as H,br as w,bF as K,bG as Y}from"./index-DkpLsOxt.js";import{u as $}from"./useInviteActivationRedirect-DrMsHrjm.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};s.SENTRY_RELEASE={id:"23d597f"},s._sentryModuleMetadata=s._sentryModuleMetadata||{},s._sentryModuleMetadata[new s.Error().stack]=(function(r){for(var m=1;m<arguments.length;m++){var c=arguments[m];if(c!=null)for(var o in c)c.hasOwnProperty(o)&&(r[o]=c[o])}return r})({},s._sentryModuleMetadata[new s.Error().stack],{"_sentryBundlerPluginAppKey:meetsmore-web-app-key":!0});var l=new s.Error().stack;l&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[l]="2cb8f7ea-d019-4c95-bc7b-ca7e6d033e54",s._sentryDebugIdIdentifier="sentry-dbid-2cb8f7ea-d019-4c95-bc7b-ca7e6d033e54")}catch{}})();const J=s=>({...q(s.email),...G(s.password),...s.lastname?{}:{lastname:"必須項目です"}}),Q=s=>l=>({email:K(l.email)||Y(l.email,r=>s.change("email",r))});function ee(){var y;const s=S(),l=E(),r=M(),m=$(),c=b(R),o=b(i=>{var n,a;return(n=i.auth)!=null&&n.user.isGuest?(a=i.auth)==null?void 0:a.user._id:null}),d=b(i=>{var n;return(n=i.auth)==null?void 0:n.user}),p=b(i=>{var n;return(n=i.auth)==null?void 0:n.invitedFromOrganization}),h=N(d,p)?p==null?void 0:p.inviteToken:void 0,k=!!(d!=null&&d.pendingEmail),v=()=>r.state&&r.state.from||"/",_=i=>{const n={...i,...o&&{guestUserId:o},...h&&{inviteToken:h}};return s(H(n)).then(a=>{var t;m((t=a==null?void 0:a.user)==null?void 0:t.inviteRequestResult,{shouldShowTutorial:!0})||l(v())}).catch(a=>{var u,t;return a.status===410?{email:"このアカウントは退会済みです"}:a.status===409?{email:"このアドレスはすでに利用されています"}:a.status===422?{email:"staging環境ではミツモアドメイン(@meetsmore.com)以外のメールアドレスを登録できません。"}:a.status===400&&((u=a.data)!=null&&u.errors)?a.data.errors:a.status===403?{[w]:((t=a.data)==null?void 0:t.message)||"登録に失敗しました"}:{[w]:"登録に失敗しました"}})},I=!c&&!o;return e.jsxs(x,{padding:"layout",space:"md",className:"pb-lg",children:[e.jsxs(A,{children:[e.jsx("title",{children:"ユーザー登録"}),e.jsx("link",{rel:"canonical",href:`${T}/signup`})]}),e.jsx(F,{padding:{sm:"lg",md:"xl"},backgroundColor:"white",rounded:"sm",shadow:"sm",className:"mx-auto w-full sm:max-w-span-lg-6",children:e.jsx(O,{onSubmit:_,validate:J,mutators:{setFieldData:L},initialValues:{email:((y=r.state)==null?void 0:y.email)??(d==null?void 0:d.pendingEmail)??void 0},children:({form:i,handleSubmit:n,submitting:a,submitError:u})=>e.jsx("form",{name:"login",onSubmit:t=>void n(t),children:e.jsxs(x,{space:"md",children:[e.jsxs(x,{space:"xs",children:[e.jsx(g,{name:"email",parse:t=>(t||"").trim(),render:t=>e.jsx(f,{...t,label:"メールアドレス",type:"email",className:"signupEmail",disabled:!!h&&k})}),e.jsx(j,{fontSize:"caption",wrap:"pretty",color:"secondary",className:"tracking-tighter",children:"[email protected]からのメールが受信できるように設定をご確認ください。"})]}),e.jsx(g,{name:"password",render:t=>e.jsx(D,{...t,label:"パスワード",className:"signupPassword"})}),e.jsx(g,{name:"lastname",render:t=>e.jsx(f,{...t,label:"姓",type:"text",placeholder:"例:山田",className:"signupLastname"})}),e.jsx(g,{name:"firstname",render:t=>e.jsx(f,{...t,label:"名",type:"text",placeholder:"例:太郎",className:"signupFirstname"})}),e.jsx(P,{label:"登録する"}),e.jsx(B,{initialValue:!0,name:"marketingOptIn",label:"ミツモアからのお知らせ、おトクな情報を受け取る"}),e.jsx(C,{trackPath:"click_signup_in_signup_page",buttonComponent:V,variant:"primary",size:"md",type:"submit",className:"signupSubmit",disabled:a,children:"登録する"}),u&&e.jsx(j,{fontSize:"sm",color:"error",children:u}),e.jsx(z,{to:"/login",className:"mmlink text-center",children:"すでにアカウントをお持ちの方はこちら"}),e.jsx(U,{warn:Q(i),form:i})]})})})}),I&&e.jsx("a",{href:W,className:"mmlink text-center text-sm",children:"事業者の方はこちら"})]})}
1export{ee 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.