(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[626],{63:function(e,r,t){Promise.resolve().then(t.bind(t,6374))},7150:function(e,r,t){"use strict";t.d(r,{k:function(){return a},x:function(){return i}}),t(3079);var n=t(2119),a=(0,n.$)("e2b7e182c04b0fb32712ad7ea8dae85c3cba03f7"),i=(0,n.$)("ffac26fda3fa71e39a735fd04976d4fa0a13d6a6")},6374:function(e,r,t){"use strict";t.r(r),t.d(r,{default:function(){return s}});var n=t(7437),a=t(2265),i=t(7150);function s(){let[e,r]=(0,a.useState)(""),t=async e=>{try{r(""),await (0,i.x)(e)}catch(e){r(e instanceof Error?e.message:"حدث خطأ. يرجى المحاولة مرة أخرى.")}};return(0,n.jsx)("div",{style:{height:"100vh",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"var(--bg-color)"},children:(0,n.jsxs)("div",{className:"card",style:{maxWidth:"400px",width:"100%",padding:"2rem",textAlign:"center"},children:[(0,n.jsx)("h2",{style:{marginBottom:"0.5rem",color:"var(--primary-color)"},children:"تسجيل الدخول"}),(0,n.jsx)("p",{style:{color:"var(--text-gray)",marginBottom:"2rem"},children:"نظام إدارة الموارد ERP"}),e&&(0,n.jsx)("div",{style:{padding:"0.75rem",backgroundColor:"#fdecea",color:"var(--danger)",borderRadius:"4px",marginBottom:"1rem",border:"1px solid var(--danger)"},children:e}),(0,n.jsxs)("form",{action:t,style:{textAlign:"left"},children:[(0,n.jsxs)("div",{className:"form-group",children:[(0,n.jsx)("label",{children:"اسم المستخدم"}),(0,n.jsx)("input",{type:"text",name:"username",className:"form-control",dir:"ltr",autoFocus:!0,required:!0})]}),(0,n.jsxs)("div",{className:"form-group",style:{marginBottom:"2rem"},children:[(0,n.jsx)("label",{children:"كلمة المرور"}),(0,n.jsx)("input",{type:"password",name:"password",className:"form-control",dir:"ltr",required:!0})]}),(0,n.jsx)("button",{type:"submit",className:"btn btn-primary",style:{width:"100%",justifyContent:"center",padding:"0.8rem",fontSize:"1.1rem"},children:"دخول للنظام"})]}),(0,n.jsxs)("div",{style:{marginTop:"1.5rem",fontSize:"0.85rem",color:"var(--text-gray)"},children:["\xa9 ",new Date().getFullYear()," جميع الحقوق محفوظة"]})]})})}},2119:function(e,r,t){"use strict";Object.defineProperty(r,"$",{enumerable:!0,get:function(){return a}});let n=t(3079);function a(e){let{createServerReference:r}=t(6671);return r(e,n.callServer)}}},function(e){e.O(0,[478,117,744],function(){return e(e.s=63)}),_N_E=e.O()}]);