PageSourceSearch

https://app.pazaros.com/assets/ForgotPassword-D8l4D05_.js

js pazaros.com collected 2026-10-02 01:41:12 UTC 3,605 bytes, 1 lines download raw bytes

1import{o as k}from"./rolldown-runtime-ifEikEFx.js";import{it as I}from"./react-vendor-CM1iR3-9.js";import{Dt as n,On as v,St as z,it as E,qt as _,st as r,zt as w}from"./antd-vendor-D7gwNWgM.js";import{m as S}from"./query-vendor-Cvd8942y.js";import{t as f}from"./axios-1rPGlmHN.js";import{Ft as N,kr as p}from"./icons-vendor-CSnqyHkR.js";import{t as l}from"./HIcon-hlKShEDM.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};a.SENTRY_RELEASE={id:"[email protected]+202610012304"};var s=new a.Error().stack;s&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[s]="38039b03-5231-4b41-818d-9894fcc13f17",a._sentryDebugIdIdentifier="sentry-dbid-38039b03-5231-4b41-818d-9894fcc13f17")}catch{}})();var d=k(v(),1),e=S(),q=()=>{const[a,s]=(0,d.useState)(!1),[c,g]=(0,d.useState)(!1),[m,y]=(0,d.useState)(""),u=I(),{message:t}=w.useApp(),[h]=r.useForm(),x=async i=>{try{s(!0),await f.post("/api/users/forgot-password",{email:i.email}),y(i.email),g(!0),t.success("Şifre sıfırlama bağlantısı e-posta adresinize gönderildi")}catch(o){const j=o?.response?.data?.message||"Bir hata oluştu. Lütfen tekrar deneyin.";t.error(j)}finally{s(!1)}},b=async()=>{try{s(!0),await f.post("/api/users/forgot-password",{email:m}),t.success("Şifre sıfırlama bağlantısı tekrar gönderildi")}catch(i){const o=i?.response?.data?.message||"Bir hata oluştu. Lütfen tekrar deneyin.";t.error(o)}finally{s(!1)}};return(0,e.jsx)("div",{className:"auth-container",children:(0,e.jsxs)(z,{className:"auth-card animate-slideIn",styles:{body:{padding:"24px"}},children:[(0,e.jsxs)("div",{className:"auth-header",children:[(0,e.jsx)("h1",{className:"auth-title",children:"Pazaros"}),(0,e.jsx)("p",{className:"auth-subtitle",children:"Şifremi Unuttum"})]}),c?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(_,{title:"E-posta Gönderildi",description:(0,e.jsxs)("div",{children:[(0,e.jsxs)("p",{children:[(0,e.jsx)("strong",{children:m})," adresine bir şifre sıfırlama bağlantısı gönderdik."]}),(0,e.jsx)("p",{style:{marginTop:12},children:"Lütfen e-posta kutunuzu kontrol edin ve bağlantıya tıklayarak şifrenizi sıfırlayın. E-postayı görmüyorsanız spam klasörünüzü kontrol edin."})]}),type:"success",showIcon:!0,style:{marginBottom:24}}),(0,e.jsx)(n,{type:"default",loading:a,onClick:b,block:!0,style:{marginBottom:16},children:"E-postayı Tekrar Gönder"}),(0,e.jsx)(n,{type:"link",icon:(0,e.jsx)(l,{icon:p}),onClick:()=>u("/login"),block:!0,children:"Giriş sayfasına dön"})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{className:"auth-info-box",children:(0,e.jsx)("p",{className:"auth-info-text",children:"E-posta adresinizi girin, size şifrenizi sıfırlamanız için bir bağlantı gönderelim. Bağlantı 1 saat boyunca geçerli olacaktır."})}),(0,e.jsxs)(r,{form:h,name:"forgot-password",onFinish:x,layout:"vertical",size:"large",validateTrigger:"onBlur",children:[(0,e.jsx)(r.Item,{name:"email",rules:[{required:!0,message:"Lütfen e-posta adresinizi girin!"},{type:"email",message:"Geçerli bir e-posta adresi girin!"}],validateFirst:!0,children:(0,e.jsx)(E,{prefix:(0,e.jsx)(l,{icon:N}),placeholder:"E-posta"})}),(0,e.jsx)(r.Item,{children:(0,e.jsx)(n,{type:"primary",htmlType:"submit",loading:a,block:!0,children:"Şifre Sıfırlama Bağlantısı Gönder"})}),(0,e.jsx)(r.Item,{style:{marginBottom:0,textAlign:"center"},children:(0,e.jsx)(n,{type:"link",icon:(0,e.jsx)(l,{icon:p}),onClick:()=>u("/login"),style:{marginTop:16},children:"Giriş sayfasına dön"})})]})]})]})})};export{q 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.