PageSourceSearch

https://tab9.me/_next/static/chunks/app/login/page-66e36068825e63d2.js

js tab9.me collected 2026-10-02 02:01:04 UTC 14,108 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4520],{10489:(e,t,a)=>{"use strict";a.d(t,{b:()=>o});var r=a(12115),s=a(97602),i=a(95155),l=r.forwardRef((e,t)=>(0,i.jsx)(s.sG.label,{...e,ref:t,onMouseDown:t=>{var a;t.target.closest("button, input, select, textarea")||(null==(a=e.onMouseDown)||a.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));l.displayName="Label";var o=l},17910:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(71847).A)("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]])},20063:(e,t,a)=>{"use strict";var r=a(47260);a.o(r,"useParams")&&a.d(t,{useParams:function(){return r.useParams}}),a.o(r,"usePathname")&&a.d(t,{usePathname:function(){return r.usePathname}}),a.o(r,"useRouter")&&a.d(t,{useRouter:function(){return r.useRouter}}),a.o(r,"useSearchParams")&&a.d(t,{useSearchParams:function(){return r.useSearchParams}})},23664:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(71847).A)("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]])},33789:(e,t,a)=>{"use strict";a.d(t,{p:()=>l});var r=a(95155),s=a(12115),i=a(36102);let l=s.forwardRef((e,t)=>{let{className:a,type:s,...l}=e;return(0,r.jsx)("input",{type:s,className:(0,i.cn)("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",a),ref:t,...l})});l.displayName="Input"},36102:(e,t,a)=>{"use strict";a.d(t,{cn:()=>i});var r=a(2821),s=a(75889);function i(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return(0,s.QP)((0,r.$)(t))}},45404:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>A});var r=a(95155),s=a(12115),i=a(20063),l=a(28291),o=a(33789),n=a(97003),d=a(90235),c=a(17910),u=a(59865),m=a(23664),h=a(99708),x=a(70532),b=a(57828),p=a(52987),f=a(66119),v=a(18720),g=a(36102),y=a(15239),k=a(52619),w=a.n(k);let j=()=>(0,r.jsx)("div",{className:"absolute inset-0 -z-10 overflow-hidden bg-gradient-to-br from-slate-50 via-blue-50 to-purple-50 dark:from-black dark:via-gray-900 dark:to-black",children:(0,r.jsxs)("div",{className:"absolute inset-0 z-0",children:[(0,r.jsx)("div",{className:"absolute inset-0 bg-white/40 dark:bg-black/60"}),(0,r.jsx)("div",{className:"absolute top-1/4 left-1/4 w-96 h-96 bg-gradient-to-r from-pink-500/20 via-purple-500/20 to-blue-500/20 rounded-full blur-3xl animate-pulse",style:{animationDuration:"4s"}}),(0,r.jsx)("div",{className:"absolute bottom-1/4 right-1/4 w-80 h-80 bg-gradient-to-r from-green-500/20 via-yellow-500/20 to-orange-500/20 rounded-full blur-3xl animate-pulse",style:{animationDelay:"2s",animationDuration:"5s"}}),(0,r.jsx)("div",{className:"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-64 h-64 bg-gradient-to-r from-blue-500/15 via-purple-500/15 to-pink-500/15 rounded-full blur-2xl animate-bounce",style:{animationDuration:"8s"}}),(0,r.jsx)("div",{className:"absolute top-20 right-20 opacity-10 dark:opacity-20",children:(0,r.jsx)(c.A,{className:"w-12 h-12 text-pink-500 animate-pulse",style:{animationDuration:"3s"}})}),(0,r.jsx)("div",{className:"absolute bottom-20 left-20 opacity-10 dark:opacity-20",children:(0,r.jsx)(u.A,{className:"w-16 h-16 text-purple-500 animate-pulse",style:{animationDelay:"1s",animationDuration:"4s"}})}),(0,r.jsx)("div",{className:"absolute top-1/3 right-10 opacity-10 dark:opacity-20",children:(0,r.jsx)(m.A,{className:"w-8 h-8 text-blue-500 animate-pulse",style:{animationDelay:"2s",animationDuration:"2.5s"}})})]})});function N(){let e=(0,i.useRouter)(),t=(0,i.useSearchParams)(),{signIn:a}=(0,l.E)(),[c,u]=(0,s.useState)(""),[k,N]=(0,s.useState)(""),[A,P]=(0,s.useState)(!1),[S,D]=(0,s.use
1State)(null),[M,C]=(0,s.useState)(!1),z=async r=>{r.preventDefault(),C(!0),D(null);try{let r=await a(c,k);if(r&&r.data&&!r.error){v.toast.success("Welcome back!");let a=t.get("redirect"),r=t.get("returnTo");a?e.push(a):r?e.push(r):e.push("/dashboard")}else{var s;D((null==r||null==(s=r.error)?void 0:s.message)||"Invalid credentials. Please check your email and password.")}}catch(e){console.error("Login error:",e),D("An unexpected error occurred. Please try again.")}finally{C(!1)}};return(0,r.jsxs)("div",{className:"min-h-screen flex flex-col items-center justify-center p-4 relative",children:[(0,r.jsx)(j,{}),(0,r.jsx)(f.P.div,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.6},className:"mb-12",children:(0,r.jsx)("div",{className:"flex items-center justify-center",children:(0,r.jsxs)("div",{className:"w-16 h-16 bg-gradient-to-br from-primary/30 to-primary/10 rounded-2xl flex items-center justify-center border-2 border-slate-200/50 dark:border-white/20 shadow-lg",children:[(0,r.jsx)(y.default,{src:"/logo-dark.svg",alt:"tab9.me logo",width:40,height:40,className:"dark:hidden rounded-lg"}),(0,r.jsx)(y.default,{src:"/logo-light.svg",alt:"tab9.me logo",width:40,height:40,className:"hidden dark:block rounded-lg"})]})})}),(0,r.jsx)("div",{className:"z-10 w-full max-w-md",children:(0,r.jsxs)(f.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.2},children:[(0,r.jsxs)("div",{className:"bg-white/90 dark:bg-black/20 backdrop-blur-xl border border-white/20 dark:border-white/10 rounded-3xl shadow-2xl p-8",children:[(0,r.jsxs)("div",{className:"text-center mb-8",children:[(0,r.jsx)("h2",{className:"text-3xl font-bold text-slate-900 dark:text-white mb-3",children:"Welcome Back!"}),(0,r.jsx)("p",{className:"text-slate-700 dark:text-white/70",children:"Sign in to access your workspace"})]}),(0,r.jsxs)("form",{onSubmit:z,className:"space-y-6",children:[(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(d.J,{htmlFor:"email",className:"text-slate-700 dark:text-white/70 font-medium",children:"Email Address"}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(m.A,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 w-5 h-5 text-slate-400"}),(0,r.jsx)(o.p,{id:"email",type:"email",placeholder:"[email protected]",value:c,onChange:e=>u(e.target.value),className:"pl-10 h-12 bg-white/80 dark:bg-black/20 border-2 border-slate-300/50 dark:border-white/20 focus-visible:ring-2 focus-visible:ring-pink-500 focus-visible:border-pink-400 rounded-xl shadow-sm",required:!0,disabled:M,autoComplete:"email"})]})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)(d.J,{htmlFor:"password",className:"text-slate-700 dark:text-white/70 font-medium",children:"Password"}),(0,r.jsx)(w(),{href:"/auth/forgot-password",className:"text-sm text-pink-600 dark:text-pink-400 hover:text-pink-700 dark:hover:text-pink-300 font-medium transition-colors",children:"Forgot password?"})]}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(h.A,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 w-5 h-5 text-slate-400"}),(0,r.jsx)(o.p,{id:"password",type:A?"text":"password",placeholder:"Enter your password",value:k,onChange:e=>N(e.target.value),className:"pl-10 pr-10 h-12 bg-white/80 dark:bg-black/20 border-2 border-slate-300/50 dark:border-white/20 focus-visible:ring-2 focus-visible:ring-pink-500 focus-visible:border-pink-400 rounded-xl shadow-sm",required:!0,disabled:M,autoComplete:"current-password"}),(0,r.jsx)("button",{type:"button",onClick:()=>P(!A),className:"absolute right-3 top-1/2 transform -translate-y-1/2 text-slate-400 hover:text-slate-600 dark:hover:text-white/60 transition-colors",children:A?(0,r.jsx)(x.A,{className:"w-5 h-5"}):(0,r.jsx)(b.A,{className:"w-5 h-5"})})]})]}),S&&(0,r.jsx)(f.P.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},className:"bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 rounded-xl p-4",children:(0,r.jsx)("p",{className:"text-red-800 dark:text-red-200 text-sm font-medium",children:S})}),(0,r.jsx)(n.$,{type:"submit",className:(0,g.cn)("w-full h-14 text-lg font-bold transition-all duration-500 relative overflow-hidden rounded-xl","bg-gradient-to-r from-pink-500 via-purple-500 via-blue-500 via-green-500 via-yellow-500 to-pink-500 bg-[length:200%_auto] animate-gradient-x text-white shadow-xl","hover:from-pink-400 hover:via-purple-400 hover:via-blue-400 hover:via-green-400 hover:via-yellow-400 hover:to-pink-400 hover:shadow-2xl hover:scale-105","disabled:opacity-50 disabled:cursor-not-allowed disabled:transform-none","border-0 transform active:scale-95"),disabled:M||!c||!k,children:M?(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("div",{className:"w-5 h-5 border-2 border-white/30 border-t-white rounded-full animate-spin"}),"Signing In..."]}):(0,r.jsxs)("div",{className:"flex items-center gap-2",children:["Sign In",(0,r.jsx)(p.A,{className:"w-5 h-5"})]})})]}),(0,r.jsxs)("div",{className:"relative my-6",children:[(0,r.jsx)("div",{className:"absolute inset-0 flex items-center",children:(0,r.jsx)("div",{className:"w-full border-t border-slate-200 dark:border-white/10"})}),(0,r.jsx)("div",{className:"relative flex justify-center text-sm",children:(0,r.jsx)("span",{className:"px-4 bg-white/90 dark:bg-black/20 text-slate-500 dark:text-white/50",children:"New to tab9.me?"})})]}),(0,r.jsx)(n.$,{type:"button",variant:"outline",onClick:()=>e.push("/guestmode"),className:"w-full h-12 bg-white/50 dark:bg-black/10 border-2 border-slate-300/50 dark:border-white/20 hover:bg-white/70 dark:hover:bg-black/20 text-slate-700 dark:text-white/70 font-medium rounded-xl transition-all duration-300",children:"Try Guest Mode"})]}),(0,r.jsx)("div",{className:"text-center mt-6",children:(0,r.jsxs)("p",{className:"text-slate-600 dar
1k:text-white/60",children:["Don't have an account?"," ",(0,r.jsx)(w(),{href:"/signup",className:"text-pink-600 dark:text-pink-400 hover:text-pink-700 dark:hover:text-pink-300 font-medium transition-colors",children:"Create account"})]})})]})})]})}function A(){return(0,r.jsx)(s.Suspense,{fallback:(0,r.jsx)("div",{className:"min-h-screen flex items-center justify-center",children:(0,r.jsx)("div",{className:"animate-pulse text-muted-foreground",children:"Loading..."})}),children:(0,r.jsx)(N,{})})}},52987:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(71847).A)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},57828:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(71847).A)("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},59865:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(71847).A)("LogIn",[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]])},70532:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(71847).A)("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]])},86001:(e,t,a)=>{Promise.resolve().then(a.bind(a,45404))},90235:(e,t,a)=>{"use strict";a.d(t,{J:()=>d});var r=a(95155),s=a(12115),i=a(10489),l=a(83101),o=a(36102);let n=(0,l.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(i.b,{ref:t,className:(0,o.cn)(n(),a),...s})});d.displayName=i.b.displayName},97003:(e,t,a)=>{"use strict";a.d(t,{$:()=>d});var r=a(95155),s=a(12115),i=a(32467),l=a(83101),o=a(36102);let n=(0,l.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),d=s.forwardRef((e,t)=>{let{className:a,variant:s,size:l,asChild:d=!1,...c}=e,u=d?i.DX:"button";return(0,r.jsx)(u,{className:(0,o.cn)(n({variant:s,size:l,className:a})),ref:t,...c})});d.displayName="Button"},97602:(e,t,a)=>{"use strict";a.d(t,{hO:()=>n,sG:()=>o});var r=a(12115),s=a(47650),i=a(32467),l=a(95155),o=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let a=r.forwardRef((e,a)=>{let{asChild:r,...s}=e,o=r?i.DX:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,l.jsx)(o,{...s,ref:a})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});function n(e,t){e&&s.flushSync(()=>e.dispatchEvent(t))}},99708:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(71847).A)("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])}},e=>{e.O(0,[9779,6119,9698,1157,5239,8720,8291,8441,1255,7358],()=>e(e.s=86001)),_N_E=e.O()}]);

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.