PageSourceSearch

https://dash.crawlbyte.ai/assets/index-Rxv0kZPR.js

js crawlbyte.ai collected 2026-10-05 11:57:08 UTC 5,999 bytes, 17 lines download raw bytes

1import{b as h,u as f,e as g,j as e,a as u,C as w,F as b,B as l,a6 as v,a7 as j,s as y,a8 as N}from"./index-B2-egUJm.js";import{I as o}from"./input-CalWhTtf.js";import{L as d}from"./label-Cb-_NkPs.js";import{F as k,a as C,e as L,f as c}from"./index.esm-nVxBsWlT.js";import{r as F,e as I}from"./validationHelpers-C0v6nAiU.js";import{A as S}from"./arrow-right-CFp61QcY.js";import"./index-BAsM_1i2.js";try{let s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new s.Error().stack;i&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[i]="f9442f7c-472e-4e8b-b1f7-0f4429b66c85",s._sentryDebugIdIdentifier="sentry-dbid-f9442f7c-472e-4e8b-b1f7-0f4429b66c85")}catch{}const A=C().shape({email:I(),password:F("Password")});function E({className:s,...i}){const n=h(),{sendRequest:m}=f(),p=g(),x=async(t,{setSubmitting:r})=>{try{const a=await m({endpoint:"auth/login",method:"post",data:{email:t.email,password:t.password},successStatuses:[200],successMessage:"Login successful"});if(!a)return;a!=null&&a.user&&p(v(a.user)),j(n,"/")}catch(a){y(a)}finally{r(!1)}};return e.jsx("div",{className:u("flex flex-col gap-6",s),...i,children:e.jsx(w,{className:"overflow-hidden p-0 border-none w-full max-w-md mx-auto",children:e.jsx(b,{className:"p-0",children:e.jsx(k,{initialValues:{email:"",password:""},validationSchema:A,onSubmit:x,children:({isSubmitting:t,errors:r,touched:a})=>e.jsx(L,{className:"p-6 md:p-8",children:e.jsxs("div",{className:"flex flex-col gap-6",children:[e.jsxs("div",{className:"flex flex-col items-center text-center space-y-1.5",children:[e.jsx("h1",{className:"text-3xl font-semibold tracking-tight",children:"Sign In"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Log in to your Crawlbyte Account"})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(d,{htmlFor:"email",children:"Email"}),e.jsx(c,{as:o,id:"email",name:"email",type:"email",placeholder:"[email protected]"}),r.email&&a.email&&e.jsx("div",{className:"text-sm text-red-500",children:r.email})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(d,{htmlFor:"password",children:"Password"}),e.jsx("span",{onClick:()=>n("/auth/forgot-password"),className:"text-xs text-primary hover:underline cursor-pointer",children:"Reset Password"})]}),e.jsx(c,{as:o,id:"password",name:"password",type:"password",placeholder:"Enter your password"}),r.password&&a.password&&e.jsx("div",{className:"text-sm text-red-500",children:r.password})]}),e.jsx(l,{type:"submit",className:"w-full transition-all duration-200 ease-out hover:scale-[1.02] hover:shadow-lg",variant:"default",disabled:t,icon:e.jsx(S,{}),children:t?"Logging in...":"Login"}),e.jsx("div",{className:"after:border-border relative text-center text-sm after:absolute after:inset-0 after:top-1/2 after:z-0 after:flex after:items-center after:border-t",children:e.jsx("span",{className:"bg-card text-muted-foreground relative z-10 px-2",children:"or continue with"})}),e.jsx("div",{className:"grid grid-cols-1 gap-4",children:e.jsxs(l,{variant:"outline",type:"button",className:"w-full",onClick:()=>{window.location.href="/api/auth/google/redirect"},children:[e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:e.jsx("path",{d:"M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z",fill:"currentColor"})}),e.jsx("span",{className:"sr-only",children:"Login with Google"})]})}),e.jsx(l,{variant:"link",type:"button",className:"text-sm text-primary underline-offset-4",onClick:()=>n("/auth/register"),children:"Don't have an account? Sign up"}),e.jsxs("p",{className:"text-center",style:{fontSize:"12px",color:"rgba(30, 40, 35, 0.45)"},children:["By logging in, you agree to our"," ",e.jsx("a",{href:"https://crawlbyte.ai/terms-of-service",target:"_blank",rel:"noopener noreferrer",className:"no-underline hover:underline hover:text-primary transition-colors",children:"Terms of Service"})," ","and"," ",e.jsx("a",{href:"https://crawlbyte.ai/privacy-policy",target:"_blank",rel:"noopener noreferrer",className:"no-underline hover:underline hover:text-primary transition-colors",children:"Privacy Policy"}),"."]})]})})})})})})}function q(){return e.jsxs("div",{className:"relative flex min-h-svh flex-col items-center justify-center bg-gradient-to-b from-[#8AABAB] via-[#9FC0BE] to-[#7D9E9E] p-6 md:p-10 overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0 pointer-events-none animate-in fade-in duration-[800ms]",style:{backgroundImage:`
2            repeating-linear-gradient(
3              45deg,
4              transparent,
5              transparent 80px,
6              rgba(50, 70, 65, 0.06) 80px,
7              rgba(50, 70, 65, 0.06) 81px
8            ),
9            repeating-linear-gradient(
10              -45deg,
11              transparent,
12              transparent 80px,
13              rgba(50, 70, 65, 0.06) 80px,
14              rgba(50, 70, 65, 0.06) 81px
15            )
16          `}}),e.jsx("div",{className:"absolute pointer-events-none",style:{width:"50vw",height:"50vw",minWidth:"400px",minHeight:"400px",background:"radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 70%)",filter:"blur(60px)"}}),e.jsxs("div",{className:"relative z-10 w-full max-w-sm md:max-w-3xl animate-in fade-in duration-[800ms]",children:[e.jsx("div",{className:"mb-6 text-center animate-in fade-in duration-300 delay-100",children:e.jsx("p",{className:"text-base font-medium tracking-wide",style:{color:"rgba(30, 50, 45, 0.55)"},children:"crawl. automate. scale."})}),e.jsx(E,{})]}),e.jsx(N,{position:"top-right"})]})}
16export{q as default};
17//# sourceMappingURL=index-Rxv0kZPR.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.