1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,28803,e=>{"use strict";var r=e.i(43476),a=e.i(71645),t=e.i(22016),l=e.i(5594),s=e.i(18566);let n="#6F6B8A",i="w-full rounded-[10px] border border-[var(--color-lavender-soft)] bg-white px-3.5 py-3 text-[14.5px] text-[var(--color-ink)] outline-none transition focus:border-[var(--color-primary)] focus:shadow-[0_0_0_3px_rgba(140,138,232,.18)]";function o(e){return e.replace(/İ/g,"i").replace(/I/g,"i").replace(/ı/g,"i").toLowerCase().normalize("NFD").replace(/[Ì-ͯ]/g,"").replace(/\s+/g,".").replace(/[^a-z0-9._-]/g,"").slice(0,30)}function d(e){return o(e.split("@")[0]??"")}function c(e,r){return"/"!==r?`${e}?from=${encodeURIComponent(r)}`:e}function m(e){if("/"!==e)return e;let r=document.cookie.match(/(?:^|; )oo_donus=([^;]+)/);if(!r)return"/";document.cookie="oo_donus=; Max-Age=0; path=/";try{let e=decodeURIComponent(r[1]);if(e.startsWith("/")&&!e.startsWith("//"))return e}catch{}return"/"}function p({label:e,required:a,hint:t,error:l,children:s}){return(0,r.jsxs)("label",{className:"block",children:[(0,r.jsxs)("span",{className:"mb-1.5 block text-[10.5px] font-semibold ",style:{color:"#6F6B8A"},children:[e,a&&(0,r.jsx)("span",{className:"text-[var(--color-primary-hover)]",children:" *"}),t&&(0,r.jsxs)("span",{style:{color:"#9C98B4"},children:[" ",t]})]}),s,l&&(0,r.jsx)(x,{msg:l})]})}function x({msg:e}){return(0,r.jsx)("p",{className:"mt-1 text-[11px] text-[var(--color-danger-700)]",children:e})}function u(){return(0,r.jsx)("svg",{width:"16",height:"19",viewBox:"0 0 814 1000","aria-hidden":"true",children:(0,r.jsx)("path",{fill:"#fff",d:"M788.1 340.9c-5.8 4.5-108.2 62.2-108.2 190.5 0 148.4 130.3 200.9 134.2 202.2-.6 3.2-20.7 71.9-68.7 141.9-42.8 61.6-87.5 123.1-155.5 123.1s-85.5-39.5-164-39.5c-76.5 0-103.7 40.8-165.9 40.8s-105.6-57-155.5-127C46.7 790.7 0 663 0 541.8c0-194.4 126.4-297.5 250.8-297.5 66.1 0 121.2 43.4 162.7 43.4 39.5 0 101.1-46 176.3-46 28.5 0 130.9 2.6 198.3 99.2zm-234-181.5c31.1-36.9 53.1-88.1 53.1-139.3 0-7.1-.6-14.3-1.9-20.1-50.6 1.9-110.8 33.7-147.1 75.8-28.5 32.4-55.1 83.6-55.1 135.5 0 7.8 1.3 15.6 1.9 18.1 3.2.6 8.4 1.3 13.6 1.3 45.4 0 102.5-30.4 135.5-71.3z"})})}function h(){return(0,r.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 48 48","aria-hidden":"true",children:[(0,r.jsx)("path",{fill:"#EA4335",d:"M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z"}),(0,r.jsx)("path",{fill:"#4285F4",d:"M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z"}),(0,r.jsx)("path",{fill:"#FBBC05",d:"M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z"}),(0,r.jsx)("path",{fill:"#34A853",d:"M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z"})]})}e.s(["AuthForm",0,function({mode:e,from:g="/",notice:f,initialLoginId:b="",initialError:y,googlePrefill:v}){let j=(0,s.useRouter)(),k=g.startsWith("/")&&!g.startsWith("//")?g:"/",N="login"===e,w="register"===e,C="reset"===e,S=w&&!!v,_=v?.saglayici==="apple"?"Apple":"Google",[z,A]=(0,a.useState)(!1),[F,B]=(0,a.useState)(y??null),[O,K]=(0,a.useState)(null),[T,q]=(0,a.useState)(!1),[G,M]=(0,a.useState)(b),[R,U]=(0,a.useState)(""),[E,I]=(0,a.useState)(!1),[L,$]=(0,a.useState)(null),[P,D]=(0,a.useState)(""),[H,W]=(0,a.useState)(v?[v.ad,v.soyad].filter(Boolean).join(" "):""),[J,V]=(0,a.useState)(v?.eposta??""),[Y,Z]=(0,a.useState)(v?d(v.eposta):""),[Q,X]=(0,a.useState)(!1),[ee,er]=(0,a.useState)(""),[ea,et]=(0,a.useState)(""),[el,es]=(0,a.useState)(!1),[en,ei]=(0,a.useState)({});async function eo(e){e.preventDefault(),B(null),K(null),A(!0);try{if(N){let e=await fetch("/api/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:G,password:R,...P?{otpKod:P}:{}})}),r=await e.json().catch(()=>({}));if(!e.ok)return void B(r.error??"GiriÅ baÅarısız.");if(r.otpRequired){$(r.eposta??"e-posta adresiniz"),D("");return}window.location.assign(m(k));return}if(C){let e=await fetch("/api/auth/forgot-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({emailOrUsername:G})}
1),r=await e.json().catch(()=>({}));if(!e.ok)return void B(r.error??"İstek gönderilemedi.");I(!0)}else{ei({});let e=H.trim().split(/\s+/).filter(Boolean);if(e.length<2)return void ei({firstName:"Ad ve soyadınızı girin."});let r=e[0],a=e.slice(1).join(" "),t=await fetch(S?"/api/auth/google-kayit":"/api/auth/register",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(S?{firstName:r,lastName:a,username:Y,school:ee,phone:ea,sozlesmeOnay:el}:{firstName:r,lastName:a,email:J,username:Y,school:ee,phone:ea,password:R,sozlesmeOnay:el})}),l=await t.json().catch(()=>({}));if(422===t.status&&l.errors)return void ei(l.errors);if(!t.ok){B(l.error??"Kayıt tamamlanamadı."),K(l.code??null);return}if(l.autoLogin)return void window.location.assign(m(k));{let e=new URLSearchParams;"/"!==k&&e.set("from",k),e.set("mesaj","kayit-tamam"),j.replace(`/login?${e.toString()}`)}}}catch(e){B(e instanceof Error?e.message:"Beklenmeyen bir hata oluÅtu.")}finally{A(!1)}}let ed=C?"Åifreni sıfırla":N?"Tekrar hoÅ geldin":S?"Hesabını tamamla":"Aramıza katıl",ec=C?E?"Tekrar gönder":"Sıfırlama baÄlantısı gönder":N?"GiriÅ yap":S?"Kaydı tamamla":"Hesabımı oluÅtur",em=N?G.length>0&&R.length>0:!C||G.trim().length>0;return(0,r.jsx)("div",{className:"flex min-h-[calc(100vh-13rem)] items-center justify-center px-2 py-6 text-[var(--color-ink)]",children:(0,r.jsxs)("div",{className:"w-full max-w-[480px]",children:[(0,r.jsxs)("div",{className:"mb-[18px] flex items-center justify-between gap-4",children:[(0,r.jsx)(t.default,{href:"/",className:"text-[12px] font-semibold text-[var(--color-ink-soft)] no-underline",children:"â Ana sayfa"}),(0,r.jsxs)("span",{className:"flex items-center gap-2 text-[11px] font-semibold text-[var(--color-ink-soft)]",children:[(0,r.jsxs)("svg",{width:"11",height:"13",viewBox:"0 0 12 14",fill:"none",stroke:"#3E7D5A",strokeWidth:"1.6","aria-hidden":"true",children:[(0,r.jsx)("rect",{x:"1",y:"6",width:"10",height:"7",rx:"1.6"}),(0,r.jsx)("path",{d:"M3.5 6V4.5a2.5 2.5 0 0 1 5 0V6"})]}),"Güvenli giriŠ· SSL"]})]}),(0,r.jsxs)("section",{className:"rounded-[20px] border border-[var(--color-lavender-soft)] bg-[var(--color-card)] px-6 sm:px-11 pb-[34px] pt-8 shadow-[0_24px_70px_rgba(140,138,232,.22)]",children:[(0,r.jsx)("h1",{className:"m-0 text-center text-[27px] font-bold tracking-[-.02em]",children:ed}),C&&(0,r.jsx)("p",{className:"mx-0 mb-0 mt-2.5 text-center text-sm leading-[1.55]",style:{color:n},children:"Kayıtlı e-posta adresini gir â sana Åifre sıfırlama baÄlantısı gönderelim."}),S&&(0,r.jsxs)("p",{className:"mx-0 mb-0 mt-2.5 text-center text-sm leading-[1.55]",style:{color:n},children:[_," hesabın doÄrulandı. Son bir adım: kullanıcı adını seç, sözleÅmeyi onayla â hepsi bu. Åifre gerekmez; giriÅlerini"," ",_," ile yaparsın."]}),S&&v?.relay&&(0,r.jsx)("p",{className:"mx-0 mb-0 mt-2.5 rounded-[10px] bg-[#F6F5FB] px-3.5 py-2.5 text-center text-[12.5px] leading-[1.55]",style:{color:n},children:'Apple, gerçek adresin yerine gizli bir aktarma adresi verdi (â¦@privaterelay.appleid.com). Sorun deÄil: e-postalarımız bu adres üzerinden sana ulaÅır. Gerçek adresini kullanmak istersen geri dönüp Apple ekranında "E-postamı PaylaÅ"ı seçebilirsin.'}),(N||w&&!S)&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("a",{href:`/api/auth/google${"/"!==k?`?from=${encodeURIComponent(k)}`:""}`,className:"mt-[22px] flex w-full items-center justify-center gap-2.5 rounded-[10px] border-[1.5px] border-[var(--color-lavender-soft)] bg-white px-4 py-3 text-[14.5px] font-semibold text-[var(--color-ink)] no-underline transition hover:border-[var(--color-primary)] hover:shadow-[0_0_0_3px_rgba(140,138,232,.14)]",children:[(0,r.jsx)(h,{}),"Google ile devam et"]}),(0,r.jsxs)("a",{href:`/api/auth/apple${"/"!==k?`?from=${encodeURIComponent(k)}`:""}`,className:"mt-2.5 flex w-full items-center justify-center gap-2.5 rounded-[10px] border-[1.5px] border-black bg-black px-4 py-3 text-[14.5px] font-semibold text-white no-underline transition hover:bg-[#1d1d1f]",children:[(0,r.jsx)(u,{}),"Apple ile devam et"]}),(0,r.jsxs)("div",{className:"mt-[18px] flex items-center gap-3 text-[11px] font-semibold",style:{color:"#9
1C98B4"},children:[(0,r.jsx)("span",{className:"h-px flex-1 bg-[var(--color-lavender-soft)]"}),"veya e-postayla",(0,r.jsx)("span",{className:"h-px flex-1 bg-[var(--color-lavender-soft)]"})]})]}),(0,r.jsxs)("form",{onSubmit:eo,className:N||w&&!S?"mt-[18px] flex flex-col gap-[15px]":"mt-[26px] flex flex-col gap-[15px]",autoComplete:w?"on":"off",children:[w&&(0,r.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3.5",children:[(0,r.jsx)(p,{label:"Ad soyad",required:!0,error:en.firstName||en.lastName,children:(0,r.jsx)("input",{type:"text",value:H,onChange:e=>W(e.target.value),required:!0,placeholder:"AyÅe Yılmaz",autoComplete:"name",className:i})}),(0,r.jsx)(p,{label:"E-posta",required:!0,error:en.email,children:(0,r.jsx)("input",{type:"email",value:J,onChange:e=>{V(e.target.value),Q||Z(d(e.target.value))},required:!0,readOnly:S,placeholder:"[email protected]",autoComplete:"email",className:i+(S?" cursor-not-allowed bg-[#F6F5FB] text-[var(--color-ink-soft)]":"")})})]}),w?(0,r.jsx)(p,{label:"Kullanıcı adı",required:!0,error:en.username,children:(0,r.jsx)("input",{type:"text",value:Y,onChange:e=>{X(!0),Z(o(e.target.value))},required:!0,minLength:3,placeholder:"ayseogretmen",autoComplete:"username",className:i})}):(0,r.jsx)(p,{label:N?"Kullanıcı adı veya e-posta":"E-posta veya kullanıcı adı",required:!0,error:en.email,children:(0,r.jsx)("input",{type:"text",value:G,onChange:e=>M(e.target.value),required:!0,autoFocus:!0,placeholder:N?"kullanıcı adı veya [email protected]":"[email protected]",autoComplete:"username",className:i})}),!C&&!S&&(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"mb-1.5 flex items-baseline justify-between gap-3",children:[(0,r.jsxs)("label",{className:"text-[10.5px] font-semibold ",style:{color:"#6F6B8A"},children:["Åifre ",(0,r.jsx)("span",{className:"text-[var(--color-primary-hover)]",children:"*"})]}),N&&(0,r.jsx)(t.default,{href:"/forgot-password",className:"text-xs font-medium text-[var(--color-primary-hover)] no-underline",children:"Åifremi unuttum"})]}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("input",{type:T?"text":"password",value:R,onChange:e=>U(e.target.value),required:!0,minLength:w?8:void 0,placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢",autoComplete:w?"new-password":"current-password",className:i+" pr-[76px]"}),(0,r.jsx)("button",{type:"button",onClick:()=>q(e=>!e),tabIndex:-1,className:"absolute right-2.5 top-1/2 -translate-y-1/2 cursor-pointer border-none bg-transparent px-1.5 py-1 text-[10.5px] font-semibold text-[var(--color-ink-muted)] hover:text-[var(--color-ink)]",children:T?"Gizle":"Göster"})]}),w&&(0,r.jsx)("div",{className:"mt-1.5 text-xs",style:{color:"#9C98B4"},children:"En az 8 karakter; bir büyük harf ve bir rakam önerilir."}),!w&&en.password&&(0,r.jsx)(x,{msg:en.password})]}),w&&(0,r.jsxs)(r.Fragment,{children:[en.password&&(0,r.jsx)(x,{msg:en.password}),(0,r.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3.5",children:[(0,r.jsx)(p,{label:"Okul",hint:"â opsiyonel",children:(0,r.jsx)("input",{type:"text",value:ee,onChange:e=>er(e.target.value),placeholder:"Okulunuzun adı",className:i})}),(0,r.jsx)(p,{label:"Telefon",hint:"â opsiyonel",children:(0,r.jsx)("input",{type:"tel",inputMode:"tel",value:ea,onChange:e=>et(e.target.value.replace(/[^\d+\s]/g,"").slice(0,20)),placeholder:"05__ ___ __ __",className:i})})]}),(0,r.jsxs)("label",{className:"flex cursor-pointer gap-2.5 text-[12.5px] leading-[1.55]",style:{color:n},children:[(0,r.jsx)("input",{type:"checkbox",checked:el,onChange:e=>es(e.target.checked),required:!0,className:"mt-0.5 h-[15px] w-[15px] flex-none accent-[#8C8AE8]"}),(0,r.jsxs)("span",{children:[(0,r.jsx)(t.default,{href:"/kullanim-sozlesmesi",target:"_blank",className:"text-[var(--color-primary-hover)] no-underline",children:"Ãyelik SözleÅmesi"}),"'ni ve"," ",(0,r.jsx)(t.default,{href:"/gizlilik-politikasi",target:"_blank",className:"text-[var(--color-primary-hover)] no-underline",children:"KVKK Aydınlatma Metni"}),"'ni"," ",l.ONAY_CUMLESI_KAYIT.replace(/^Ãyelik SözleÅmesi'ni ve KVKK Aydınlatma Metni'ni /,"")," ",(0,r.jsx)("span",{className:"text-[var(--color-primary-hover)]",children:"*"})]})]})]}),N&&L&&(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"flex gap-2.5 rounded-[11px] border border-[rgba(155,212,177,.6)] bg-[rgba(155,212,177,.15)] px-4 py-3 text-[13.5px] leading-[1.55] text-[var(--color-success-700)]",children:[(0,r.jsx)("span",{className:"text-xs font-semibold",children:"â"}),(0,r.jsxs)("span",{children:["Yeni bir cihazdan giriÅ yapıyorsun. Hesap güvenliÄi için"," ",(0,r.jsx)("strong",{children:L})," adresine 6 haneli bir kod gönderdik; 10 dakika geçerlidir. Spam/gereksiz klasörünü de kontrol etmeyi unutma."]})]}),(0,r.jsx)(p,{label:"DoÄrulama kodu",required:!0,children:(0,r.jsx)("input",{type:"text",inputMode:"numeric",value:P,onChange:e=>D(e.target.value.replace(/\D/g,"").slice(0,6)),required:!0,minLength:6,autoFocus:!0,placeholder:"______",className:i+" tracking-[6px]"})})]}),C&&E&&(0,r.jsxs)("div",{className:"flex gap-2.5 rounded-[11px] border border-[rgba(155,212,177,.6)] bg-[rgba(155,212,177,.15)] px-4 py-3 text-[13.5px] leading-[1.55] text-[var(--color-success-700)]",children:[(0,r.jsx)("span",{className:"text-xs font-semibold",children:"â"}),(0,r.jsxs)("span",{children:["BaÄlantı gönderildi; birkaç dakika içinde"," ",(0,r.jsx)("strong",{children:"[email protected]"})," adresinden gelir ve 30 dakika geçerlidir. Gelen kutunda yoksa"," ",/hotmail|outlook|live\.|msn|windowslive/i.test(G)?(0,r.jsxs)(r.Fragment,{children:["sol menüdeki ",(0,r.jsx)("strong",{children:"Gereksiz E-posta (Junk)"})," ","klasörüne mutlaka bak; Hotmail ve Outlook bizim maili sıkça oraya koyuyor."]}):/gmail/i.test(G)?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("strong",{children:"Spam"})," klasörüne ve"," ",(0,r.jsx)("strong",{children:"Tanıtımlar"})," sekmesine mutlaka bak."]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("strong",{children:"spam/gereksiz klasörüne"})," mutlaka bak."]})," ","Orada da yoksa büyük ihtimalle farklı bir e-posta adresiyle kayıtlısın:"," ",(0,r.jsx)("a",{href:"https://wa.me/905334307999?text="+encodeURIComponent("Merhaba, Åifre sıfırlama maili gelmedi. DenediÄim adres: "+G),target:"_blank",rel:"noopener noreferrer",className:"font-semibold underline decoration-[rgba(155,212,177,.6)] underline-offset-2",children:"WhatsApp'tan yaz"}),", kayıtlı adresini hemen bulalım."]})]}),F&&(0,r.jsxs)("div",{role:"alert",className:"rounded-[10px] border border-[var(--color-danger-100)] bg-[var(--color-danger-50)] px-3.5 py-2.5 text-sm text-[var(--color-danger-700)]",children:[F,w&&O?.includes("email-exists")&&(0,r.jsxs)("div",{className:"mt-2.5 flex flex-wrap gap-2",children:[(0,r.jsx)(t.default,{href:c("/login",k),className:"rounded-full bg-[var(--color-primary)] px-4 py-2 text-[12.5px] font-bold text-white no-underline transition-colors hover:bg-[var(--color-primary-hover)]",children:"GiriÅ yap"}),(0,r.jsx)(t.default,{href:`/forgot-password?email=${encodeURIComponent(J)}`,className:"rounded-full border-[1.5px] border-[var(--color-lavender-soft)] bg-white px-4 py-2 text-[12.5px] font-bold text-[var(--color-ink-soft)] no-underline transition-colors hover:border-[var(--color-primary)]",children:"Åifremi bilmiyorum, sıfırla"})]})]}),f&&!F&&(0,r.jsxs)("div",{className:"flex gap-2.5 rounded-[11px] border border-[rgba(155,212,177,.6)] bg-[rgba(155,212,177,.15)] px-4 py-3 text-[13.5px] leading-[1.55] text-[var(--color-success-700)]",children:[(0,r.jsx)("span",{className:"text-xs font-semibold",children:"â"}),f]}),(0,r.jsxs)("button",{type:"submit",disabled:z||!em,className:"oo-btn oo-btn-primary mt-0.5 w-full !py-3.5 !text-[15px] disabled:cursor-not-allowed",children:[z?"Lütfen bekleyinâ¦":ec," ",(0,r.jsx)("span",{children:"â"})]})]}),(0,r.jsx)("div",{className:"mt-6 border-t border-[var(--color-lavender-soft)] pt-5 text-center text-sm",style:{color:n},children:C?(0,r.jsxs)(r.Fragment,{children:["Åifreni hatırladın mı?"," ",(0,r.jsx)(t.default,{href:c("/login",k),className:"font-semibold text-[var(--color-primary-hover)] no-underline",children:"GiriÅ yap"})]}):N?(0,r.jsxs)(r.Fragment,{children:["Hesabın yok mu?"," ",(0,r.jsx)(t.default,{href:c("/register",k),className:"font-semibold text-[var(--color-primary-hover)] no-underline",children:"Kayıt ol"})]}):(0,r.jsxs)(r.Fragment,{children:["Zaten hesabın var mı?"," ",(0,r.jsx)(t.default,{href:c("/login",k),className:"font-semibold text-[var(--color-primary-hover)] no-underline",children:"GiriÅ yap"})]})})]}),(0,r.jsx)("div",{className:"mt-4 text-center text-[9.5px] font-semibold ",style:{color:"#9
1C98B4"},children:"2016'dan bu yana 30 bin+ öÄretmen"})]})})}])}]);
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.