PageSourceSearch

https://meetrix.ai/assets/login-b307d705.js

js meetrix.ai collected 2026-10-05 12:14:59 UTC 4,979 bytes, 1 lines download raw bytes

1import{u as P,a as w,b as k,j as e,S as o,B as i,T as s,c as y,I as j,D as M,P as C,L as h,A as E,d as $,e as L,f as R,r as F,g as z,h as I,i as D,o as q,k as _,l as G,R as S,m as H,n as J,p as O,F as U,H as X,M as V,W as Y}from"./index-e5f8d168.js";import{B as K}from"./bg-effect-container-1f2d93c2.js";function N({onContinueWithEmail:n}){const{t}=P(),x=w(),a=k().get("returnTo"),g=!1,l=p=>{const d=`${E.baseUrl}/auth/${p}`;return a?`${d}?next=${encodeURIComponent(a)}`:d},u=()=>{window.location.href=l("microsoft")},m=()=>{window.location.href=l("google")},c=e.jsxs(o,{spacing:2,alignItems:"center",children:[e.jsx(i,{component:"img",src:x.palette.mode==="light"?"/logo/logo.svg":"/logo/meetrix white logo.svg",width:60}),e.jsx(s,{sx:{fontSize:"2vh",fontWeight:"700",mb:1},children:t("auth.login.title")}),e.jsx(y,{variant:"outlined",fullWidth:!0,sx:{p:"8px 20px"},onClick:u,children:e.jsxs(o,{direction:"row",alignItems:"center",spacing:1.5,children:[e.jsx(j,{icon:"logos:microsoft-icon",width:20,height:20}),e.jsx(s,{variant:"body1",children:t("auth.login.continueWithMicrosoft")})]})}),e.jsx(y,{variant:"outlined",fullWidth:!0,sx:{p:"8px 20px"},onClick:m,children:e.jsxs(o,{direction:"row",alignItems:"center",spacing:1.5,children:[e.jsx(j,{icon:"logos:google-icon",width:21,height:21}),e.jsx(s,{variant:"body1",children:t("auth.login.continueWithGoogle")})]})}),e.jsx(M,{sx:{width:"100%",color:"text.secondary"},children:"or"}),e.jsx(s,{variant:"caption",sx:{color:"text.secondary",cursor:"pointer","&:hover":{textDecoration:"underline"}},onClick:n,children:t("auth.login.continueWithDifferentEmail")})]});return e.jsxs(o,{spacing:2,sx:{width:"100%",position:"relative",zIndex:99999},children:[e.jsx(i,{children:e.jsxs(C,{sx:{paddingY:"2.5vh",width:"100%",boxShadow:"0 42.4px 61.31px rgba(0, 0, 0, 0.08)",paddingX:"4vh",borderRadius:"15px"},children:[!!g,c]})}),e.jsxs(o,{direction:"row",justifyContent:"center",spacing:2,sx:{mt:2},children:[e.jsx(h,{color:"text.secondary",href:"https://meetrix.ai/privacy-policy",target:"_blank",children:t("common.privacyPolicy")}),e.jsx(i,{sx:{width:"1px",height:"20px",backgroundColor:"divider"}}),e.jsx(h,{color:"text.secondary",href:"https://meetrix.ai/terms",target:"_blank",children:t("common.termsOfService")})]})]})}function Q(){const{login:n}=$(),{t}=P(),x=L(),r=R(),[a,g]=F.useState(""),l=w(),u=z().shape({email:I().required(t("auth.login.emailRequired")).email(t("auth.login.emailInvalid")),password:I().required(t("auth.login.passwordRequired"))}),m={email:"",password:""},c=D({resolver:q(u),defaultValues:m}),{handleSubmit:p,formState:{isSubmitting:d}}=c,T=k(),W=_(T.get("returnTo")),v=p(async b=>{try{await n(b.email,b.password),x.push(W)}catch(f){g(typeof f=="string"?f:f.message)}}),A=!1,B=e.jsxs(o,{spacing:2,alignItems:"center",children:[e.jsx(i,{component:"img",src:l.palette.mode==="light"?"/logo/logo.svg":"/logo/meetrix white logo.svg",width:60}),e.jsx(s,{sx:{fontSize:"2vh",fontWeight:"700",mb:4},children:t("auth.login.title")}),!!a&&e.jsx(G,{severity:"error",sx:{mb:1.5,width:"100%",mt:-.7},children:t("auth.login.invalidCredentials")}),e.jsx(S,{placeholder:t("auth.login.emailPlaceholder"),InputLabelProps:{shrink:!0},name:"email",label:t("auth.login.email"),sx:{mb:1}}),e.jsx(S,{InputLabelProps:{shrink:!0},name:"password",placeholder:t("auth.login.passwordPlaceholder"),label:t("auth.login.password"),type:r.value?"text":"password",InputProps:{endAdornment:e.jsx(H,{position:"end",children:e.jsx(J,{onClick:r.onToggle,edge:"end",children:e.jsx(j,{icon:r.value?"solar:eye-bold":"solar:eye-closed-bold"})})})},sx:{mb:4}}),e.jsx(O,{fullWidth:!0,color:"inherit",size:"large",type:"submit",variant:"contained",loading:d,onSubmit:v,sx:{color:"#fff !important",background:"linear-gradient(to bottom,#ef447f,#e32868)","& span.MuiLoadingButton-loadingIndicator":{color:"#fff !important"}},children:t("auth.login.submit")})]});return e.jsxs(o,{spacing:2,sx:{width:"100%",position:"relative",zIndex:9999999999999},children:[e.jsx(i,{children:e.jsxs(C,{sx:{paddingY:"2.5vh",width:"100%",boxShadow:"0 42.4px 61.31px rgba(0, 0, 0, 0.08)",paddingX:"4vh",borderRadius:"15p
1x"},children:[!!A,e.jsx(U,{methods:c,onSubmit:v,children:B})]})}),e.jsxs(o,{direction:"row",justifyContent:"center",spacing:2,sx:{mt:2},children:[e.jsx(h,{color:"text.secondary",href:"https://meetrix.ai/privacy-policy",target:"_blank",children:t("common.privacyPolicy")}),e.jsx(i,{sx:{width:"1px",height:"20px",backgroundColor:"divider"}}),e.jsx(h,{color:"text.secondary",href:"https://meetrix.ai/terms",target:"_blank",children:t("common.termsOfService")})]})]})}function Z(){F.useState(window.location.pathname.includes("register")?"2":"1");const n=R(!0);return L(),w(),e.jsxs(e.Fragment,{children:[e.jsx(X,{}),e.jsx(K,{}),n.value?e.jsx(N,{onContinueWithEmail:n.onFalse}):e.jsx(Q,{}),e.jsx(V,{})]})}function oe(){return e.jsxs(e.Fragment,{children:[e.jsx(Y,{children:e.jsx("title",{children:"MeetriX | Login"})}),e.jsx(Z,{})]})}export{oe 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.