PageSourceSearch

https://socialz.ai/_next/static/chunks/app/(auth)/login/page-39ff4138d584e583.js

js socialz.ai collected 2026-10-05 12:39:23 UTC 11,550 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4665],{83991:function(e,t,r){Promise.resolve().then(r.bind(r,34995))},39763:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(2265),a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let s=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),i=(e,t)=>{let r=(0,n.forwardRef)((r,i)=>{let{color:o="currentColor",size:l=24,strokeWidth:d=2,absoluteStrokeWidth:c,className:u="",children:f,...m}=r;return(0,n.createElement)("svg",{ref:i,...a,width:l,height:l,stroke:o,strokeWidth:c?24*Number(d)/Number(l):d,className:["lucide","lucide-".concat(s(e)),u].join(" "),...m},[...t.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...Array.isArray(f)?f:[f]])});return r.displayName="".concat(e),r}},32660:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(39763).Z)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},15863:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(39763).Z)("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},89345:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(39763).Z)("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"}]])},27648:function(e,t,r){"use strict";r.d(t,{default:function(){return a.a}});var n=r(72972),a=r.n(n)},99376:function(e,t,r){"use strict";var n=r(35475);r.o(n,"permanentRedirect")&&r.d(t,{permanentRedirect:function(){return n.permanentRedirect}}),r.o(n,"redirect")&&r.d(t,{redirect:function(){return n.redirect}}),r.o(n,"useParams")&&r.d(t,{useParams:function(){return n.useParams}}),r.o(n,"usePathname")&&r.d(t,{usePathname:function(){return n.usePathname}}),r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}}),r.o(n,"useSearchParams")&&r.d(t,{useSearchParams:function(){return n.useSearchParams}}),r.o(n,"useSelectedLayoutSegment")&&r.d(t,{useSelectedLayoutSegment:function(){return n.useSelectedLayoutSegment}})},34995:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return p}});var n=r(57437),a=r(2265),s=r(38706),i=r(99376),o=r(17095),l=r(12381),d=r(40279),c=r(79820),u=r(95937),f=r(89345),m=r(15863),h=r(32660),x=r(27648);function p(){let e=(0,s.T)("Account"),[t,r]=(0,a.useState)(""),[p,g]=(0,a.useState)(!1),[b,v]=(0,a.useState)(null),y=(0,i.useRouter)();(0,a.useEffect)(()=>{(async()=>{try{let e=await fetch("/api/auth/session-check",{method:"GET",credentials:"include"});e.ok&&(await e.json()).authenticated&&y.push("/dashboard")}catch(e){}})()},[y]);let N=async r=>{if(r.preventDefault(),g(!0),v(null),!t||!t.includes("@")){v({type:"error",text:e("auth.login.invalidEmail")}),g(!1);return}try{(await fetch("/api/auth/send-code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t})})).ok?(v({type:"success",text:e("auth.login.codeSent")}),setTimeout(()=>{y.push("/verify?email=".concat(encodeURIComponent(t)))},500)):v({type:"error",text:e("auth.login.sendFailed")})}catch(t){v({type:"error",text:e("auth.unexpectedError")})}finally{g(!1)}};return(0,n.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-[rgb(var(--theme-bg-primary))] px-4",children:(0,n.jsxs)("div",{className:"w-full max-w-md 
1space-y-6",children:[(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsxs)("h1",{className:"text-3xl font-bold tracking-tight text-[rgb(var(--theme-text-primary))]",children:[(0,n.jsx)("span",{className:"bg-gradient-to-r from-purple-600 to-pink-600 bg-clip-text",style:{color:"transparent",WebkitTextFillColor:"transparent"},children:o.siteConfig.brand.name}),(0,n.jsxs)("span",{className:"text-[rgb(var(--theme-text-primary))]",children:[" ",e("auth.dashboardLabel")]})]}),(0,n.jsx)("p",{className:"mt-2 text-[rgb(var(--theme-text-secondary))]",children:e("auth.login.subtitle")})]}),(0,n.jsxs)(c.Zb,{children:[(0,n.jsxs)(c.Ol,{children:[(0,n.jsx)(c.ll,{className:"text-center",children:e("auth.login.cardTitle")}),(0,n.jsx)(c.SZ,{className:"text-center",children:e("auth.login.cardDescription")})]}),(0,n.jsx)(c.aY,{children:(0,n.jsxs)("form",{onSubmit:N,className:"space-y-4",children:[(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)("label",{htmlFor:"email",className:"text-sm font-medium text-[rgb(var(--theme-text-secondary))]",children:e("auth.login.emailLabel")}),(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)(f.Z,{className:"absolute left-3 top-3 h-4 w-4 text-[rgb(var(--theme-text-tertiary))]"}),(0,n.jsx)(d.I,{id:"email",type:"email",placeholder:e("auth.login.emailPlaceholder"),value:t,onChange:e=>r(e.target.value),className:"pl-10",required:!0,disabled:p})]}),(0,n.jsx)("p",{className:"text-xs text-[rgb(var(--theme-text-tertiary))]",children:e("auth.login.emailHint")})]}),b&&(0,n.jsx)(u.bZ,{className:"error"===b.type?"border-red-200 bg-red-50":"border-green-200 bg-green-50",children:(0,n.jsx)(u.X,{className:"error"===b.type?"text-red-700":"text-green-700",children:b.text})}),(0,n.jsx)(l.Button,{type:"submit",className:"w-full bg-gradient-to-r from-purple-600 to-pink-600 hover:from-purple-700 hover:to-pink-700",disabled:p,children:p?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(m.Z,{className:"mr-2 h-4 w-4 animate-spin"}),e("auth.login.sendingButton")]}):e("auth.login.sendButton")})]})})]}),(0,n.jsx)("div",{className:"text-center",children:(0,n.jsxs)(x.default,{href:"/",className:"inline-flex items-center text-sm text-[rgb(var(--theme-text-secondary))] hover:text-[rgb(var(--theme-text-primary))] transition-colors",children:[(0,n.jsx)(h.Z,{className:"mr-1 h-4 w-4"}),e("auth.backToSite",{brand:o.siteConfig.brand.name})]})})]})})}},95937:function(e,t,r){"use strict";r.d(t,{X:function(){return d},bZ:function(){return l}});var n=r(57437),a=r(2265),s=r(90535),i=r(93448);let o=(0,s.j)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),l=a.forwardRef((e,t)=>{let{className:r,variant:a,...s}=e;return(0,n.jsx)("div",{ref:t,role:"alert",className:(0,i.cn)(o({variant:a}),r),...s})});l.displayName="Alert",a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("h5",{ref:t,className:(0,i.cn)("mb-1 font-medium leading-none tracking-tight",r),...a})}).displayName="AlertTitle";let d=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("div",{ref:t,className:(0,i.cn)("text-sm [&_p]:leading-relaxed",r),...a})});d.displayName="AlertDescription"},12381:function(e,t,r){"use strict";r.d(t,{Button:function(){return d},d:function(){return l}});var n=r(57437),a=r(2265),s=r(37053),i=r(90535),o=r(93448);let l=(0,i.j)("inline-flex items-center justify-center whitespace-nowrap rounded-lg text-sm font-medium ring-offset-background transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{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-[#1b2147] text-white hover:shadow-[inset_0_0_12px_rgba(124,58,237,0.3)] hover:bg-[#1f2550]",ghost:"border border-[#3a3f6b] text-[#d1d5ff] bg-transparent hover:bg-[#1b2147]/40 hover:border-[#4a4f7b]",link:"text-primary underline-offset-4 hover:underline",gradient:"bg-gradient-to-r from-brand-primary to-brand-secondary text-white hover:opacity-90 shadow-lg hover:shadow-xl transition-all"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-lg px-8",xl:"h-12 rounded-lg px-10 text-base",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),d=a.forwardRef((e,t)=>
1{let{className:r,variant:a,size:i,asChild:d=!1,loading:c=!1,icon:u,children:f,disabled:m,...h}=e;return(d&&s.g7,d)?(0,n.jsx)(s.g7,{className:(0,o.cn)(l({variant:a,size:i,className:r})),ref:t,...h,"data-disabled":m||c,children:f}):(0,n.jsxs)("button",{className:(0,o.cn)(l({variant:a,size:i,className:r})),ref:t,disabled:m||c,...h,children:[c&&(0,n.jsxs)("svg",{className:"-ml-1 mr-2 h-4 w-4 animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,n.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,n.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),!c&&u&&(0,n.jsx)("span",{className:"mr-2",children:u}),f]})});d.displayName="Button"},79820:function(e,t,r){"use strict";r.d(t,{Ol:function(){return o},SZ:function(){return d},Zb:function(){return i},aY:function(){return c},ll:function(){return l}});var n=r(57437),a=r(2265),s=r(93448);let i=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("div",{ref:t,className:(0,s.cn)("rounded-lg border bg-card text-card-foreground shadow-sm transition-all duration-200","hover:shadow-[0_0_15px_rgba(124,58,237,0.15)] hover:border-[rgb(var(--theme-border-hover))]",r),...a})});i.displayName="Card";let o=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("div",{ref:t,className:(0,s.cn)("flex flex-col space-y-1.5 p-6",r),...a})});o.displayName="CardHeader";let l=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("h3",{ref:t,className:(0,s.cn)("text-2xl font-semibold leading-none tracking-tight",r),...a})});l.displayName="CardTitle";let d=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("p",{ref:t,className:(0,s.cn)("text-sm text-muted-foreground",r),...a})});d.displayName="CardDescription";let c=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("div",{ref:t,className:(0,s.cn)("p-6 pt-0",r),...a})});c.displayName="CardContent",a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("div",{ref:t,className:(0,s.cn)("flex items-center p-6 pt-0",r),...a})}).displayName="CardFooter"},40279:function(e,t,r){"use strict";r.d(t,{I:function(){return i}});var n=r(57437),a=r(2265),s=r(93448);let i=a.forwardRef((e,t)=>{let{className:r,type:a,...i}=e;return(0,n.jsx)("input",{type:a,className:(0,s.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors 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-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",r),ref:t,...i})});i.displayName="Input"},93448:function(e,t,r){"use strict";r.d(t,{cn:function(){return s}});var n=r(61994),a=r(53335);function s(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,a.m6)((0,n.W)(t))}},38706:function(e,t,r){"use strict";r.d(t,{T:function(){return s}});var n=r(17637);function a(e,t){return(...e)=>{try{return t(...e)}catch{throw Error(void 0)}}}let s=a(0,n.T_);a(0,n.Gb)}},function(e){e.O(0,[5569,7637,2972,7095,2971,2117,1744],function(){return e(e.s=83991)}),_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.