1import{c as P,r as o,j as e,I as v,J as j,B as u,K as k,h as d,N as M,Q as V,T as C,i as _,V as B,W as N,Y as L,Z as R,m as T,n as w,x as D,D as I,_ as q,v as J,M as O,$ as W,a0 as Q,F as $}from"./index-C4LWZPK9.js";import{B as z,S as H}from"./shirt-4iC2uprA.js";import{U as K}from"./users-DL5nkPsl.js";/** 2 * @license lucide-react v0.475.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const Y=[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z",key:"1fy3hk"}]],Z=P("Bookmark",Y);function X({redirectTo:p="/"}){const[t,m]=o.useState("signin"),[a,g]=o.useState(""),[r,l]=o.useState(""),[c,h]=o.useState(""),[f,A]=o.useState(""),[y,i]=o.useState(""),[b,x]=o.useState(!1),S=async()=>{try{const s=await d.auth.me(),n=JSON.stringify({user:s,isAuthenticated:!0,ts:Date.now()});localStorage.setItem("goby_remember_me","true"),localStorage.setItem("goby_auth_cache",n)}catch{}},E=async s=>{s.preventDefault(),i(""),x(!0);try{await d.auth.loginViaEmailPassword(a,r),await S(),window.location.href=p}catch(n){i(n.message||"Invalid email or password")}finally{x(!1)}},G=async s=>{if(s.preventDefault(),i(""),r!==c){i("Passwords do not match");return}x(!0);try{await d.auth.register({email:a,password:r}),m("otp")}catch(n){i(n.message||"Registration failed")}finally{x(!1)}},U=async s=>{s.preventDefault(),i(""),x(!0);try{const n=await d.auth.verifyOtp({email:a,otpCode:f});d.auth.setToken(n.access_token),await S(),window.location.href=p}catch(n){i(n.message||"Invalid code")}finally{x(!1)}},F=()=>{d.auth.loginWithProvider("google",p)};return e.jsx("div",{className:"bg-card border border-border rounded-2xl p-6 w-full max-w-sm mx-auto shadow-xl",children:t==="otp"?e.jsxs("form",{onSubmit:U,className:"space-y-4",children:[e.jsxs("div",{className:"text-center mb-4",children:[e.jsx("p",{className:"font-semibold text-lg",children:"Check your email"}),e.jsxs("p",{className:"text-sm text-muted-foreground mt-1",children:["We sent a code to ",e.jsx("span",{className:"text-foreground font-medium",children:a})]})]}),y&&e.jsx("div",{className:"p-3 rounded-lg bg-destructive/10 text-destructive text-sm",children:y}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(v,{children:"Verification Code"}),e.jsx(j,{autoFocus:!0,placeholder:"6-digit code",value:f,onChange:s=>A(s.target.value),className:"h-11 text-center text-lg tracking-widest",required:!0})]}),e.jsx(u,{type:"submit",className:"w-full h-11",disabled:b,children:b?e.jsx(k,{className:"w-4 h-4 animate-spin"}):"Verify & Sign In"}),e.jsx("button",{type:"button",onClick:()=>d.auth.resendOtp(a),className:"w-full text-xs text-muted-foreground hover:text-primary transition-colors",children:"Resend code"})]}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex rounded-lg bg-secondary/50 p-1 mb-5",children:[e.jsx("button",{onClick:()=>{m("signin"),i("")},className:`flex-1 py-1.5 text-sm font-medium rounded-md transition-colors ${t==="signin"?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"}`,children:"Sign In"}),e.jsx("button",{onClick:()=>{m("register"),i("")},className:`flex-1 py-1.5 text-sm font-medium rounded-md transition-colors ${t==="register"?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"}`,children:"Sign Up"})]}),e.jsxs(u,{variant:"outline",className:"w-full h-10 text-sm mb-4",onClick:F,children:[e.jsx(M,{className:"w-4 h-4 mr-2"}),"Continue with Google"]}),e.jsxs("div",{className:"relative mb-4",children:[e.jsx("div",{className:"absolute inset-0 flex items-center",children:e.jsx("div",{className:"w-full border-t border-border"})}),e.jsx("div",{className:"relative flex justify-center text-xs uppercase",children:e.jsx("span",{className:"bg-card px-2 text-muted-foreground",children:"or"})})]}),y&&e.jsx("div",{className:"mb-3 p-3 rounded-lg bg-destructive/10 text-destructive text-sm",children:y}),e.jsxs("form",{onSubmit:t==="signin"?E:G,className:"space-y-3",children:[e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(v,{children:"Email"}),e.jsxs("div",{className:"relative",children:[e.jsx(V,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e.jsx(j,{type:"email",autoComplete:"email",placeholder:"[email protected]",value:a,onChange:s=>g(s.target.value),className:"pl-9 h-10",required:!0})]})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(v,{children:"Password"}),e.jsxs("div",{className:"relative",children:[e.jsx(C,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e.jsx(j,{type:"password",autoComplete:t==="signin"?"current-password":"new-password",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢",value:r,onChange:s=>l(s.target.value),className:"pl-9 h-10",required:!0})]})]}),t==="register"&&e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(v,{children:"Confirm Password"}),e.jsxs("div",{className:"relative",children:[e.jsx(C,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e.jsx(j,{type:"password",autoComplete:"new-password",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢",value:c,onChange:s=>h(s.target.value),className:"pl-9 h-10",required:!0})]})]}),e.jsx(u,{type:"submit",className:"w-full h-10",disabled:b,children:b?e.jsx(k,{className:"w-4 h-4 animate-spin"}):t==="signin"?"Sign In":"Create Account"})]}),t==="signin"&&e.jsx("p",{className:"text-center mt-3",children:e.jsx("a",{href:"/forgot-password",className:"text-xs text-muted-foreground hover:text-primary transition-colors",children:"Forgot password?"})})]})})}const ee=[{icon:q,title:"Create Video Mixes",desc:"Build mood-based video collections from any content on Goby TV"},{icon:J,title:"Share with Community",desc:"Publish your mixes for others to discover and enjoy"}
6,{icon:O,title:"Goby Chat",desc:"Join film discussions with fellow viewers in real time"},{icon:W,title:"Personal Calendar",desc:"Schedule viewing times and set reminders for new episodes"},{icon:z,title:"Watch Reminders",desc:"Get notified about new content and community activity"},{icon:H,title:"Monthly Giveaways",desc:"Enter raffles for exclusive Goby merchandise every month"},{icon:Q,title:"Ad Mining",desc:"Play interactive brand games to earn ad-free viewing across Goby TV"},{icon:$,title:"Artist Directory",desc:"Send messages directly to your favorite Goby creators"},{icon:Z,title:"Jam List",desc:"Save videos to your personal watchlist anytime"}];function re(){const{user:p,isAuthenticated:t}=_(),m=B(),[a,g]=o.useState(!1);if(o.useEffect(()=>{t&&m("/deep-diver/app",{replace:!0})},[t,m]),t)return null;const r=()=>{g(!0),window.scrollTo({top:0,behavior:"smooth"})};return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsxs("div",{className:"bg-secondary/60 border-b border-border sticky top-16 z-40",children:[e.jsxs("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8 py-3 flex items-center justify-between gap-4 flex-wrap",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(N,{className:"w-4 h-4 text-primary"}),e.jsx("span",{className:"text-sm font-medium",children:"Deep Diver"}),e.jsx("span",{className:"text-sm text-muted-foreground",children:"â Sign in to access all features"})]}),e.jsxs(u,{variant:"outline",className:"gap-2 h-9 border-primary/40 text-primary hover:bg-primary/10",onClick:()=>g(l=>!l),children:["Sign In / Sign Up",a?e.jsx(L,{className:"w-4 h-4"}):e.jsx(R,{className:"w-4 h-4"})]})]}),e.jsx(T,{children:a&&e.jsx(w.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.25},className:"overflow-hidden border-t border-border",children:e.jsx("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8 py-6 flex justify-center",children:e.jsx(X,{redirectTo:"/deep-diver/app"})})})})]}),e.jsx("div",{className:"pt-16 pb-16 px-4 sm:px-6 lg:px-8 max-w-5xl mx-auto text-center",children:e.jsxs(w.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},children:[e.jsx("div",{className:"w-20 h-20 rounded-2xl bg-primary/20 flex items-center justify-center mx-auto mb-6",children:e.jsx(N,{className:"w-10 h-10 text-primary"})}),e.jsx("h1",{className:"text-5xl sm:text-6xl font-display font-bold mb-4",children:"Deep Diver"}),e.jsx("p",{className:"text-xl text-muted-foreground mb-8 max-w-2xl mx-auto",children:"Unlock exclusive features and join the ultimate film community. Free forever â earn ad-free viewing by playing Ad Mining games."}),e.jsxs(u,{onClick:r,className:"bg-primary hover:bg-primary/90 gap-2 px-8 py-6 text-lg",children:[e.jsx(N,{className:"w-5 h-5"})," Sign Up Free â It's Quick"]})]})}),e.jsx("div",{className:"py-16 px-4 sm:px-6 lg:px-8 bg-secondary/30 border-y border-border",children:e.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[e.jsx("h2",{className:"text-3xl font-display font-bold mb-8",children:"How to Unlock"}),e.jsx("div",{className:"grid sm:grid-cols-3 gap-6",children:[{step:"1",title:"Sign Up",desc:"Create a free Goby TV account â takes 30 seconds"},{step:"2",title:"Play Ad Mining Games",desc:"Complete interactive brand games to earn 3 weeks of ad-free viewing"},{step:"3",title:"Get Full Access",desc:"All Deep Diver features unlock automatically â forever free"}].map(({step:l,title:c,desc:h})=>e.jsx(D,{className:"bg-card/50 border-border",children:e.jsxs(I,{className:"p-6 text-center",children:[e.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/20 flex items-center justify-center mx-auto mb-4",children:e.jsx("span",{className:"text-xl font-bold text-primary",children:l})}),e.jsx("h3",{className:"font-semibold text-lg mb-2",children:c}),e.jsx("p",{className:"text-muted-foreground text-sm",children:h})]})},l))})]})}),e.jsxs("div",{className:"py-20 px-4 sm:px-6 lg:px-8 max-w-6xl mx-auto",children:[e.jsx("h2",{className:"text-3xl font-display font-bold text-center mb-4",children:"Exclusive Features"}),e.jsxs("p",{className:"text-center text-muted-foreground mb-12",children:["Everything below unlocks free when you sign up. Earn ad-free viewing through Ad Mining."," ",e.jsx("button",{onClick:r,className:"text-primary hover:underline font-medium",children:"Sign up to get started â"})]}),e.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-6",children:ee.map(({icon:l,title:c,desc:h},f)=>e.jsx(w.div,{initial:{opacity:0,y:20}
6,animate:{opacity:1,y:0},transition:{duration:.5,delay:f*.07},children:e.jsx(D,{className:"bg-card/50 border-border hover:border-primary/30 transition-colors h-full cursor-pointer",onClick:r,children:e.jsxs(I,{className:"p-6",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl bg-primary/10 flex items-center justify-center mb-4",children:e.jsx(l,{className:"w-6 h-6 text-primary"})}),e.jsx("h3",{className:"font-semibold text-lg mb-2",children:c}),e.jsx("p",{className:"text-muted-foreground text-sm",children:h}),e.jsxs("p",{className:"text-xs text-muted-foreground/50 mt-3 flex items-center gap-1",children:[e.jsx(C,{className:"w-3 h-3"})," Sign up to unlock"]})]})})},c))})]}),e.jsx("div",{className:"py-20 px-4 sm:px-6 lg:px-8 bg-gradient-to-b from-secondary/50 to-background",children:e.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[e.jsx("h2",{className:"text-4xl font-display font-bold mb-6",children:"Ready to Dive Deeper?"}),e.jsx("p",{className:"text-lg text-muted-foreground mb-8",children:"Join thousands of film enthusiasts already part of the Deep Diver community."}),e.jsxs(u,{onClick:r,className:"bg-primary hover:bg-primary/90 gap-2 px-8 py-6 text-lg",children:[e.jsx(K,{className:"w-5 h-5"})," Sign Up Free"]}),e.jsxs("p",{className:"mt-8 text-sm text-muted-foreground",children:["Questions?"," ",e.jsx("a",{href:"mailto:[email protected]",className:"text-primary hover:underline font-medium",children:"[email protected]"})]})]})})]})}export{re 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.