PageSourceSearch

https://avudex.com/_next/static/chunks/app/(auth)/login/page-15170afabcca5698.js?dpl=c573bf3d

js avudex.com collected 2026-10-02 01:24:30 UTC 9,949 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[72],{42347:(e,r,a)=>{"use strict";a.r(r),a.d(r,{default:()=>k,dynamic:()=>N});var s=a(95155),t=a(12115),i=a(73321),l=a(98500),n=a.n(l),d=a(28713),o=a(89239),c=a(80723);let m=(0,a(78340).A)("monitor-smartphone",[["path",{d:"M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8",key:"10dyio"}],["path",{d:"M10 19v-3.96 3.15",key:"1irgej"}],["path",{d:"M7 19h5",key:"qswx4l"}],["rect",{width:"6",height:"10",x:"16",y:"12",rx:"2",key:"1egngj"}]]);var x=a(44478),h=a(92289),p=a(66609),u=a(7954),g=a(39845),f=a(24822),b=a(99003),j=a(33546),v=a(55636),y=a(41463);let N="force-dynamic";function w(){let[e,r]=(0,t.useState)(!1),[l,N]=(0,t.useState)(""),w=(0,i.useRouter)(),k=(0,i.useSearchParams)(),_=(0,g.q)(k.get("redirect")),z="session_superseded"===k.get("reason"),C=(0,d.U)(),{register:A,handleSubmit:S,formState:{errors:E}}=(0,b.mN)({resolver:(0,j.u)(v.X5),defaultValues:{email:"",password:""}}),G=async e=>{r(!0),N("");try{let{data:r,error:s}=await C.auth.signInWithPassword({email:e.email,password:e.password});if(s){if("Email not confirmed"===s.message){p.o.error("Email adresiniz hen\xfcz doğrulanmamış",{description:"Doğrulama sayfasına y\xf6nlendiriliyorsunuz...",duration:4e3}),setTimeout(()=>{w.push(`/verify-email?email=${encodeURIComponent(e.email)}`)},1500);return}N("Invalid login credentials"===s.message?"Email veya şifre hatalı":s.message);return}if(r.user){await fetch("/api/auth/sync-user",{method:"POST",headers:{"Content-Type":"application/json"}}),await fetch("/api/auth/activate-session",{method:"POST"});try{let{broadcastSessionEvent:e}=await a.e(7023).then(a.bind(a,77023));e("SESSION_ACTIVATED")}catch{}p.o.success("Giriş başarılı! Y\xf6nlendiriliyorsunuz..."),w.push(_)}}catch(e){console.error("❌ Login error:",e),N("Giriş yapılamadı. L\xfctfen tekrar deneyin.")}finally{r(!1)}},L=async()=>{r(!0),N("");try{let e=y.env.NEXT_PUBLIC_AUTH_CALLBACK_URL||`${window.location.origin}/api/auth/callback`,a=new URL(e);_&&a.searchParams.set("next",_);let{error:s}=await C.auth.signInWithOAuth({provider:"google",options:{redirectTo:a.toString(),queryParams:{access_type:"offline",prompt:"consent"}}});s&&(N("Google ile giriş yapılamadı"),r(!1))}catch(e){console.error("❌ Google login error:",e),N("Google ile giriş yapılamadı"),r(!1)}};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"gradient-bg"}),(0,s.jsx)("main",{className:"min-h-screen flex items-start justify-center px-4 pt-4 pb-12",children:(0,s.jsxs)("div",{className:"w-full max-w-[420px]",children:[(0,s.jsx)("div",{className:"mb-3",children:(0,s.jsxs)(n(),{href:"/",className:"inline-flex items-center gap-1.5 text-xs text-muted-foreground hover:text-primary transition-colors",children:[(0,s.jsx)(c.A,{className:"w-3 h-3"}),"Ana Sayfa"]})}),(0,s.jsxs)("div",{className:"glass-card rounded-xl p-4 sm:p-5",children:[z&&(0,s.jsx)("div",{className:"mb-3 p-3 bg-indigo-50 dark:bg-indigo-950/30 border border-indigo-200 dark:border-indigo-800/60 rounded-lg",children:(0,s.jsxs)("div",{className:"flex items-start gap-2",children:[(0,s.jsx)(m,{className:"w-4 h-4 text-indigo-500 mt-0.5 shrink-0"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-xs font-medium text-indigo-700 dark:text-indigo-300",children:"Oturumunuz Başka Bir Cihazdan Devralındı"}),(0,s.jsx)("p",{className:"text-[11px] text-indigo-600/80 dark:text-indigo-400/80 mt-0.5",children:"Bu hesaba farklı bir cihaz veya tarayıcıdan giriş yapıldı. G\xfcvenliğiniz i\xe7in bu oturum sonlandırıldı."})]})]})}),(0,s.jsxs)("div",{className:"text-center mb-2",children:[(0,s.jsx)("div",{className:"inline-flex w-10 h-10 rounded-full bg-gradient-to-r from-primary to-purple-500 items-center justify-center mb-2",children:(0,s.jsx)(x.A,{className:"w-5 h-5 text-white"})}),(0,s.jsx)("h1",{className:"text-xl font-bold gradient-text mb-0.5",children:"Hoş Geldiniz"}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground/80",children:"Hesabınıza giriş yapın"})]}),l&&(0,s.jsx)("div",{className:"mb-3 p-2.5 bg-red-50 dark:bg-red-950/30 border border-red-200 dark:border-red-800 rounded-lg",children:(0,s.jsx)("p",{className:"text-xs text-red-600 dark:text-red-400 text-center font-medium",children:l})}),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.$,{type:"button",onClick:L,disabled:e,className:"w-full h-11 rounded-xl text-sm font-medium   bg-white dark:bg-slate-900   hover:bg-slate-50 dark:hover:bg-slate-800   border-2 border-slate-200 dark:border-slate-700   hover:border-slate-300 dark:hover:border-slate-600   shadow-[0_1px_3px_rgba(0,0,0,0.12),0_1px_2px_rgba(0,0,0,0.08)]   hover:shadow-[0_4px_6px_rgba(0,0,0,0.12),0_2px_4px_rgba(0,0,0,0.08)]   transition-all duration-200   hover:scale-[1.01]   active:scale-[0.99]",children:e?(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("div",{className:"w-4 h-4 border-2 border-slate-300 border-t-slate-600 rounded-full animate-spin"}
1),(0,s.jsx)("span",{className:"text-xs text-slate-600 dark:text-slate-300",children:"Y\xf6nlendiriliyor..."})]}):(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsxs)("svg",{className:"w-5 h-5",viewBox:"0 0 24 24",children:[(0,s.jsx)("path",{fill:"#4285F4",d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"}),(0,s.jsx)("path",{fill:"#34A853",d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"}),(0,s.jsx)("path",{fill:"#FBBC05",d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"}),(0,s.jsx)("path",{fill:"#EA4335",d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"})]}),(0,s.jsx)("span",{className:"text-slate-700 dark:text-slate-200 font-medium",children:"Google ile Giriş Yap"})]})}),(0,s.jsx)("div",{className:"relative my-4",children:(0,s.jsxs)("div",{className:"flex items-center justify-center gap-3",children:[(0,s.jsx)("svg",{className:"w-3 h-3 text-muted-foreground/25 rotate-90",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"})}),(0,s.jsx)("div",{className:"w-[40%] border-t border-border/10"}),(0,s.jsx)("span",{className:"text-xs text-muted-foreground/40 font-normal whitespace-nowrap",children:"veya email ile"}),(0,s.jsx)("div",{className:"w-[40%] border-t border-border/10"}),(0,s.jsx)("svg",{className:"w-3 h-3 text-muted-foreground/25 -rotate-90",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"})})]})})]}),(0,s.jsxs)("form",{onSubmit:S(G),className:"space-y-1.5",children:[(0,s.jsxs)("div",{className:"space-y-1",children:[(0,s.jsx)(u.l,{id:"email",label:"Email Adresi",type:"email",icon:(0,s.jsx)(h.A,{className:"w-4 h-4"}),disabled:e,autoFocus:!0,...A("email")}),E.email&&(0,s.jsx)("p",{className:"text-[10px] text-red-500 ml-1",children:E.email.message})]}),(0,s.jsxs)("div",{className:"space-y-1",children:[(0,s.jsx)(f.W,{id:"password",label:"Şifre",disabled:e,...A("password")}),E.password&&(0,s.jsx)("p",{className:"text-[10px] text-red-500 ml-1",children:E.password.message})]}),(0,s.jsx)("div",{className:"flex justify-end mt-1",children:(0,s.jsx)(n(),{href:"/reset-password",className:"text-[11px] text-primary/70 hover:text-primary underline decoration-1 hover:decoration-2 underline-offset-2 transition-all",children:"Şifrenizi mi unuttunuz?"})}),(0,s.jsx)(o.$,{type:"submit",disabled:e,className:"w-full btn-primary text-white font-semibold h-11 rounded-xl text-sm shadow-sm hover:shadow-md transition-all",children:e?(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("div",{className:"w-4 h-4 border-2 border-white/30 border-t-white rounded-full animate-spin"}),(0,s.jsx)("span",{className:"text-xs",children:"Giriş yapılıyor..."})]}):"Email ile Giriş Yap"})]}),(0,s.jsx)("div",{className:"mt-4 text-center",children:(0,s.jsxs)("p",{className:"text-[11px] text-muted-foreground/70",children:["Hesabınız yok mu?"," ",(0,s.jsx)(n(),{href:"/personal/dashboard"!==_?`/register?redirect=${encodeURIComponent(_)}`:"/register",className:"text-primary hover:underline font-semibold",children:"Kayıt Olun"})]})}),(0,s.jsx)("div",{className:"mt-4 pt-3 border-t border-border/40 text-center",children:(0,s.jsxs)("p",{className:"text-[10px] text-muted-foreground/60 leading-tight",children:[(0,s.jsx)(n(),{href:"/kullanim-kosullari",target:"_blank",rel:"noopener noreferrer",className:"hover:text-primary transition-colors",children:"Kullanım Koşulları"})," • ",(0,s.jsx)(n(),{href:"/gizlilik-politikasi",target:"_blank",rel:"noopener noreferrer",className:"hover:text-primary transition-colors",children:"Gizlilik"})," • ",(0,s.jsx)(n(),{href:"/kvkk-aydinlatma",target:"_blank",rel:"noopener noreferrer",className:"hover:text-primary transition-colors",children:"KVKK"})]})})]})]})})]})}function k(){return(0,s.jsx)(t.Suspense,{fallback:(0,s.jsx)("div",{className:"min-h-screen flex items-center justify-center",children:(0,s.jsx)("div",{className:"w-16 h-16 border-4 border-primary/30 border-t-primary rounded-full animate-spin"})}),children:(0,s.jsx)(w,{})})}},44478:(e,r,a)=>{"use strict";a.d(r,{A:()=>s});let s=(0,a(78340).A)("shield-check",[["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",ke
1y:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},69904:(e,r,a)=>{Promise.resolve().then(a.bind(a,42347))}},e=>{e.O(0,[4215,8500,6609,7828,6228,9338,1930,2629,5711,9239,7451,8441,3794,7358],()=>e(e.s=69904)),_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.