1import{w as h,c as x,u as f,b as _,d as j,R as m,r as k}from"./chunk-62JRHF6Z-DLi-nzGV.js";import{j as r}from"./jsx-runtime-CMtOy79-.js";import{b as E}from"./index-DFMdCBri.js";import{u as T,L as R,a as L,b,O as S,c as v,S as y}from"./login-Cqd9P6-r.js";import"./debug-build-l0sNRNKZ.js";import"./index-BnWSpTke.js";import{W as w,b as C,d as P,e as D}from"./index-CFmgUUkV.js";import{a as I,R as W}from"./index-DKZRMsfb.js";import{C as B}from"./index-D3iE6DzP.js";import"./index-PtNIZioY.js";import{T as M}from"./TrackLogo-yEN9pros.js";import"./react-google-recaptcha-v3.esm-Bp6d2bOv.js";import"./index-B5B0jf7G.js";import"./UserPreferencesContext-DQsltELw.js";import{G as O}from"./index-CPgtRK_e.js";import{L as G}from"./index-D4EFLCPQ.js";import{u as q}from"./ErrorContext-C9xNcTS0.js";import{u as A}from"./cn-ikUPuW0X-C3kDHISo.js";import{T as F}from"./Trans-BgILn3Y-.js";import"./analytics-BqfSOKaQ.js";import"./exports-BI7RTcps.js";import"./button-C3R2gXH6-iOA6-TXt.js";import"./index-DN4zZDgj.js";import"./environment-DWQ6JMN2.js";import"./urls-CRX10EKY.js";import"./validation-CfWloSAy.js";import"./parse-DKdc-Xzd.js";import"./index-Dg3M0mci.js";import"./index-DgsrlLi2.js";import"./index-BUi5ApwA.js";import"./index-BHu6jOdq.js";import"./index-B6MqE1TB.js";import"./index-kBnDltqr.js";import"./preload-helper-g9XYu9ea.js";import"./index-BLRwmU0c.js";import"./social-_MoYtw3u.js";import"./terms-CcKD2SXT.js";import"./legalLinks-DHcttEx9.js";import"./ButtonForProduct-DLYkiare.js";import"./ErrorList-Cj2cPExy.js";import"./theme-client-lvDsQHz2.js";import"./cookies-Bp65zTbl.js";import"./chunk-ZA36QIGN-Bz9sHgmW.js";import"./cookies-client-CTUUgIG5.js";import"./index-ozlAvmQr.js";import"./TogglLogo-CrzMiXp2.js";import"./context-BWbT0-1L.js";const Br=({data:a})=>[{title:"Login | Toggl Track"},{tagName:"link",rel:"canonical",href:a?.canonicalUrl},{name:"viewport",content:"width=device-width,initial-scale=1.0 maximum-scale=1.0,user-scalable=no"}],Mr=({actionResult:a})=>!a?.oauthRedirect,Or=x(function(){return r.jsx(O,{})}),Gr=h(function(){const{t:i}=A(),t=f(),o=_(),[e]=j(),s=t?.oauthRedirect||o?.oauthRedirect;E(s);const p=T(),[n,u]=m.useState(""),l=m.useCallback(g=>{u(g.target.value)},[]),{setError:c,error:d}=q();return k.useEffect(()=>{o?.error&&c(o.error)},[o,c]),s?r.jsx(G,{}):r.jsx(B,{children:r.jsxs(w,{children:[r.jsxs(C,{children:[r.jsx(P,{children:r.jsx(M,{})}),r.jsxs(D,{children:[r.jsx(I,{children:t.isInvitation?i("welcome_to_toggl_track"):r.jsx(F,{t:i,components:{action:r.jsx(W,{})},children:"log_in_and_actionget_trackingaction"})}),t.isInvitation&&r.jsx(R,{children:i("use_your_toggl_account_credentials_to_join_your_team_in_toggl_track")})]}),r.jsx(L,{error:d||o?.error,searchParams:e,product:"track"})]}),r.jsx(b,{data:o,isInvitation:t.isInvitation,onEmailChange:l,product:"track",searchParams:e}),r.jsx(S,{email:n,product:"track",action:"login",actionData:{successRedirectTo:t.requestedRedirectTo},hasSocials:!0,hasSSO:!0,hasPasskey:p}),t.isInvitation?r.jsx(v,{product:"track"}):r.jsx(y,{email:n,product:"track",searchParams:e})]})})});export{Or as ErrorBoundary,Gr as default,Br as meta,Mr as shouldRevalidate};
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.