(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3132],{926:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),!function(e,r){for(var t in r)Object.defineProperty(e,t,{enumerable:!0,get:r[t]})}(r,{callServer:function(){return n.callServer},createServerReference:function(){return s.createServerReference},findSourceMapURL:function(){return a.findSourceMapURL}});let n=t(1209),a=t(5153),s=t(7197)},5944:(e,r,t)=>{"use strict";t.d(r,{PasswordForm:()=>o});var n=t(5155),a=t(2115),s=t(926);let l=(0,s.createServerReference)("6083347c6e0a1617686184568a7a2860b77239cf5d",s.callServer,void 0,s.findSourceMapURL,"changePasswordAction");var i=t(9662);function o(){let[e,r]=(0,a.useActionState)(l,{});return(0,n.jsxs)("form",{action:r,className:"space-y-5",children:[e.error&&(0,n.jsx)("p",{className:"rounded-xl border border-red-200 bg-red-50 px-4 py-3 text-sm text-red-700",children:e.error}),e.ok&&(0,n.jsx)("p",{className:"rounded-xl bg-brand-50 px-4 py-3 text-sm text-brand-700",children:"Parolanız başarıyla g\xfcncellendi."}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"current",className:"mb-1.5 block text-sm font-medium text-ink-soft",children:"Mevcut parola"}),(0,n.jsx)("input",{id:"current",name:"current",type:"password",autoComplete:"current-password",required:!0,className:"admin-input w-full"})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"next",className:"mb-1.5 block text-sm font-medium text-ink-soft",children:"Yeni parola"}),(0,n.jsx)("input",{id:"next",name:"next",type:"password",autoComplete:"new-password",required:!0,className:"admin-input w-full"}),(0,n.jsx)("p",{className:"mt-1 text-xs text-ink-mute",children:"En az 6 karakter."})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"confirm",className:"mb-1.5 block text-sm font-medium text-ink-soft",children:"Yeni parola (tekrar)"}),(0,n.jsx)("input",{id:"confirm",name:"confirm",type:"password",autoComplete:"new-password",required:!0,className:"admin-input w-full"})]}),(0,n.jsx)(i.SubmitButton,{children:"Parolayı G\xfcncelle"})]})}},8383:(e,r,t)=>{Promise.resolve().then(t.bind(t,5944))},9662:(e,r,t)=>{"use strict";t.d(r,{SubmitButton:()=>s});var n=t(5155),a=t(7650);function s(e){let{children:r="Kaydet"}=e,{pending:t}=(0,a.useFormStatus)();return(0,n.jsx)("button",{type:"submit",disabled:t,className:"inline-flex items-center justify-center gap-2 rounded-full bg-brand-600 px-7 py-3 text-sm font-semibold text-cream-50 transition-colors hover:bg-brand-700 disabled:cursor-not-allowed disabled:opacity-60",children:t?"Kaydediliyor…":r})}}},e=>{e.O(0,[8441,1255,7358],()=>e(e.s=8383)),_N_E=e.O()}]);