(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2116],{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 a.createServerReference},findSourceMapURL:function(){return s.findSourceMapURL}});let n=t(1209),s=t(5153),a=t(7197)},7454:(e,r,t)=>{"use strict";t.d(r,{LoginForm:()=>o});var n=t(5155),s=t(2115),a=t(926);let i=(0,a.createServerReference)("600ccc0d470419a9d30754ca916cffe11947ad855e",a.callServer,void 0,a.findSourceMapURL,"loginAction");var l=t(9662);function o(e){let{next:r}=e,[t,a]=(0,s.useActionState)(i,{});return(0,n.jsxs)("form",{action:a,className:"space-y-4",children:[(0,n.jsx)("input",{type:"hidden",name:"next",value:r}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"username",className:"mb-1.5 block text-sm font-medium text-ink-soft",children:"Kullanıcı Adı"}),(0,n.jsx)("input",{id:"username",name:"username",type:"text",autoComplete:"username",required:!0,className:"admin-input w-full"})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"password",className:"mb-1.5 block text-sm font-medium text-ink-soft",children:"Parola"}),(0,n.jsx)("input",{id:"password",name:"password",type:"password",autoComplete:"current-password",required:!0,className:"admin-input w-full"})]}),t.error&&(0,n.jsx)("p",{className:"rounded-xl bg-red-50 px-4 py-3 text-sm text-red-700",children:t.error}),(0,n.jsx)("div",{className:"pt-2",children:(0,n.jsx)(l.SubmitButton,{children:"Giriş Yap"})})]})}},9170:(e,r,t)=>{Promise.resolve().then(t.bind(t,7454)),Promise.resolve().then(t.t.bind(t,2619,23))},9662:(e,r,t)=>{"use strict";t.d(r,{SubmitButton:()=>a});var n=t(5155),s=t(7650);function a(e){let{children:r="Kaydet"}=e,{pending:t}=(0,s.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,[2619,8441,1255,7358],()=>e(e.s=9170)),_N_E=e.O()}]);