PageSourceSearch

https://app.ausha.co/assets/login-BmYTRtSb.js

js ausha.co collected 2026-09-24 08:24:22 UTC 7,541 bytes, 2 lines download raw bytes

1import{i as R,a1 as W,a2 as P,o as b,w as c,G as M,c as d,e as O,u as w,y as G,r as p,d as D,h as z,j as e,S as H,C as h,k as L,l as f,T as v,m as x,R as g,B as K,p as I,t as V,A as j,F as u,N as $,a0 as y,n as U,a3 as X,a4 as Z,_ as Q}from"./index-DUWMLp_A.js";import{A as Y,L as J}from"./LoginSideIllustration-DB1KDzEW.js";import{G as ee,F as se}from"./GoogleButton-kpwVkW7N.js";import{s as oe}from"./authPodcastNameStorageService-DOxgVFhf.js";import{A as ne}from"./AushaLogo-B3MqNR67.js";import"./index-DTBBfLhl.js";import"./providerService-Mi9YHUhp.js";import"./logo-white-DjD7pK7p.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:"03512784fd78c0db53b8a0e370b452e2333ce80d"};var o=new s.Error().stack;o&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[o]="59d517bc-cb66-4648-ad43-c6e03392ef63",s._sentryDebugIdIdentifier="sentry-dbid-59d517bc-cb66-4648-ad43-c6e03392ef63")}catch{}})();const ae=b({accessToken:c(),expiresIn:M(),refreshToken:c(),tokenType:c()}),ie=async({formData:s,invitationToken:o,invitationShow:i})=>{const t=await W(P.decamelizeKeys({...s,...o&&{invitationToken:o},...i&&{invitationShow:i}}));return ae.parse(t)},te=()=>R({mutationFn:ie}),re=()=>b({email:O(d.isEmail()).min(1,d.required()),password:c().min(1,d.required())}),le="Form__Form__form__lLppaxku",ce="Form__Form__passwordLabelRow__lLppaxku",A={form:le,passwordLabelRow:ce},N=I("/_unauthenticated/login"),de=()=>{const{t:s}=w(),o=N.useSearch(),i=N.useNavigate(),t=re(),F=te(),{login:S}=G(),[B,m]=p.useState(!1),E=o.email&&o.show&&o.token,q=o.email?.replace(/ /g,"+"),{control:_,handleSubmit:k,setError:T}=D({defaultValues:{email:q||"",password:""},resolver:z(t)}),C=r=>{m(!0),F.mutate({formData:r,invitationToken:o.token||null,invitationShow:o.show||null},{onError:a=>{m(!1);const l=a;l.response?.status===403&&V.alert(s("x7O55C",{description:"SSO login is required for this email domain.",default:"Pour ce domaine d’adresse email, la connexion via SSO est requise."})),l.response?.status===422&&T("email",{type:"invalid",message:s("MRFPXn",{description:"The credentials you have entered are incorrect",default:"Les identifiants que vous avez rentrés sont incorrects"})})},onSuccess:async a=>{const l=await S(a,o.redirect||"/app/channel");i({to:l})}})};return e.jsx("form",{className:A.form,onSubmit:k(C),children:e.jsxs(H,{$gap:"2rem",children:[e.jsx(h,{control:_,name:"email",render:({field:r,fieldState:a})=>e.jsxs(L,{children:[e.jsx(f,{htmlFor:"login-email-input",children:s("vKwPMl",{description:"Email address",default:"Adresse e-mail"})}),e.jsx(v,{...r,id:"login-email-input",isInvalid:!!a.invalid,placeholder:s("+RBKJ9",{description:"[email protected]",default:"[email protected]"}),isReadOnly:!!E,"data-testid":"login-email-input",autoFocus:!0}),a.error&&e.jsx(x,{children:a.error.message})]})}),e.jsx(h,{control:_,name:"password",render:({field:r,fieldState:a})=>e.jsxs(L,{children:[e.jsxs("div",{className:A.passwordLabelRow,children:[e.jsx(f,{htmlFor:"login-password-input",children:s("ZVILrU",{description:"Password",default:"Mot de passe"})}),e.jsx(g,{to:"/password-recovery",tabIndex:-1,children:s("2oHcL9",{description:"Forgot your password?",default:"Mot de passe oublié ?"})})]}),e.jsx(v,{...r,id:"login-password-input",type:"password",autoComplete:"current-password",isInvalid:!!a.invalid,placeholder:s("hYQMvn",{description:"8 characters minimum",default:"8 caractères minimum"}),"data-testid":"login-password-input"}),a.error&&e.jsx(x,{children:a.error.message})]})}),e.jsx(K,{type:"submit",isLoading:B,"data-testid":"login-submit",children:s("uaRvSg",{description:"Log in",default:"Se connecter"})})]})})},ue="Login__Login__loginWrapper__v7dqgN9B",pe="Login__Login__container__v7dqgN9B",ge="Login__Login__left__v7dqgN9B",me="Login__Login__innerLeft__v7dqgN9B",_e="Login__Login__header__v7dqgN9B",he="Login__Login__logoAndTitle__v7dqgN9B",Le="Login__Login__logo__v7dqgN9B",fe="Login__Login__title__v7dqgN9B",ve="Login__Login__signupCallToAction__v7dqgN9B",xe="Login__Login__thirdPartyLoginWrapper__v7dqgN9B",je="Login__Login__separator__v7dqgN9B",ye="Login__Login__line__v7dqgN9B",Ae="Login__Login__right__v7dqgN9B",Ne="Login__Login__instructionsInnerWrapper__v7dqgN9B",be="Login__Login__aushaForAllIllustrationWrapper__v7dqgN9B",we="Login__Login__ssoIcon__v7dqgN9B",n={loginWrapper:ue,container:pe,left:ge,innerLeft:me,header:_e,logoAndTitle:he,logo:Le,title:fe,signupCallToAction:ve,thirdPartyLoginWrapper:xe,separator:je,line:ye,right:Ae,instructionsInnerWrapper:Ne,aushaForAllIllustrationWrapper:be,ssoIcon:we},Ie=I("/_unauthenticated/login"),Fe=()=>{const{t:s}=w(),o=Ie.useSearch(),i=o.email&&o.show&&o.token,t=o.error==="loginas_failed";return p.useEffect(()=>(document.title=s("SHaFmW",{description:"Ausha - Login",default:"Ausha - Connexion"}),()=>{document.title="Ausha"}),[s]),p.useEffect(()=>{o.podcast_name&&oe(o.podcast_name)},[o.podcast_name]),e.jsxs("div",{className:n.loginWrapper,children:[e.jsx("div",{className:Q(n.container,n.left),children:e.jsxs("div",{className:n.innerLeft,children:[t&&e.jsx(j,{variant:"alert",icon:e.jsx(u,{icon:$}
1),children:s("NT4/Ef",{description:"LoginAs failed, please try again.",default:"LoginAs echoué, merci de réessayer."})}),e.jsxs("div",{className:n.header,children:[e.jsxs("div",{className:n.logoAndTitle,children:[e.jsx(ne,{isComplete:!0,isColored:!0,className:n.logo}),e.jsx("h1",{className:n.title,"data-testid":"login-heading",children:y?s("sa2NqI",{description:"Good to see you again!",default:"Heureux de vous revoir !"}):s("uaRvSg",{description:"Log in",default:"Se connecter"})})]}),e.jsxs("div",{className:n.signupCallToAction,children:[s("93wH6r",{description:"Don't have an account yet?",default:"Vous n’avez pas encore de compte ?"}),e.jsx(g,{to:"/register",search:o,"data-testid":"register-page-link",children:s("pXZVpi",{description:"Create an account",default:"Créer un compte"})})]})]}),i?e.jsx(j,{variant:"info",icon:e.jsx(u,{icon:X}),description:s("9LGcRe",{description:"Simply register or log in if you already have an account. See you soon!",default:"Il ne reste plus qu'à vous inscrire, ou à vous connecter si vous avez déjà un compte. À très vite !"}),children:e.jsx(U,{i18nKey:"CuC8nr",description:"{name} is inviting you to join Ausha. {linebreak}",default:"{name} vous invite à rejoindre Ausha.<linebreak />",components:{linebreak:e.jsx("p",{})},variables:{name:o.name||o.showname}})}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:n.thirdPartyLoginWrapper,children:[e.jsx(ee,{label:s("lokUZL",{description:"Log in with Google",default:"Se connecter avec Google"})}),e.jsx(se,{label:s("X3BcuU",{description:"Log in with Facebook",default:"Se connecter avec Facebook"}),rounded:!0}),e.jsx(g,{to:"/sso",variant:"button-tertiary","data-testid":"sso-page-link",startIcon:e.jsx(u,{icon:Z,className:n.ssoIcon}),children:s("8MFviG",{description:"Log in with SSO",default:"Connexion via SSO"})})]}),e.jsxs("div",{className:n.separator,children:[e.jsx("span",{className:n.line}),s("BSd0Bm",{description:"Or log in by email",default:"Ou connectez-vous par e-mail"}),e.jsx("span",{className:n.line})]})]}),e.jsx(de,{})]})}),e.jsx("div",{className:`${n.container} ${n.right}`,children:y?e.jsx("div",{className:n.aushaForAllIllustrationWrapper,children:e.jsx(Y,{})}):e.jsx("div",{className:n.instructionsInnerWrapper,children:e.jsx(J,{})})})]})},Pe=Fe;export{Pe as component};
2//# sourceMappingURL=login-BmYTRtSb.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.