(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,31278,e=>{"use strict";let r=(0,e.i(75254).default)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["Loader2",0,r],31278)},19455,e=>{"use strict";var r=e.i(43476),t=e.i(71645),i=e.i(75157);let a=(0,t.forwardRef)(({className:e,variant:t="primary",size:a="md",type:n="button",...s},d)=>(0,r.jsx)("button",{ref:d,type:n,className:(0,i.cn)("inline-flex max-w-full min-w-0 items-center justify-center gap-2 rounded-md text-center font-semibold leading-6 transition focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--focus)] disabled:pointer-events-none disabled:opacity-55",{"bg-[var(--primary)] text-white hover:bg-[var(--primary-strong)]":"primary"===t,"border border-[var(--border)] bg-white text-[var(--ink)] hover:bg-[var(--surface-muted)]":"secondary"===t,"text-[var(--ink-soft)] hover:bg-[var(--surface-muted)] hover:text-[var(--ink)]":"ghost"===t,"bg-[var(--danger)] text-white hover:bg-[#8f2f30]":"danger"===t,"min-h-9 px-3 py-1.5 text-sm":"sm"===a,"min-h-11 px-4 py-2 text-sm":"md"===a,"size-11 shrink-0 p-0":"icon"===a},e),...s}));a.displayName="Button",e.s(["Button",0,a])},95187,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={callServer:function(){return n.callServer},createServerReference:function(){return d.createServerReference},findSourceMapURL:function(){return s.findSourceMapURL}};for(var a in i)Object.defineProperty(t,a,{enumerable:!0,get:i[a]});let n=e.r(32120),s=e.r(92245),d=e.r(35326)},55764,e=>{"use strict";var r=e.i(43476),t=e.i(71645),i=e.i(75157);let a=(0,t.forwardRef)(({className:e,...t},a)=>(0,r.jsx)("input",{ref:a,className:(0,i.cn)("h-11 w-full min-w-0 rounded-md border border-[var(--border)] bg-white px-3 text-sm text-[var(--ink)] outline-none placeholder:text-[var(--ink-faint)] focus:border-[var(--primary)] focus:ring-2 focus:ring-[var(--focus)]",e),...t}));a.displayName="Input",e.s(["Input",0,a])},10204,e=>{"use strict";var r=e.i(43476),t=e.i(75157);e.s(["Label",0,function({className:e,...i}){return(0,r.jsx)("label",{className:(0,t.cn)("mb-1.5 block text-sm font-semibold text-[var(--ink)]",e),...i})}])},84290,e=>{"use strict";var r=e.i(43476),t=e.i(71645),i=e.i(31278);let a=(0,e.i(75254).default)("LogIn",[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]]);var n=e.i(95187);let s=(0,n.createServerReference)("60d9ef4e5666d27358add43b675d99d16c393374f1",n.callServer,void 0,n.findSourceMapURL,"loginAction");var d=e.i(19455),o=e.i(55764),l=e.i(10204);let c={};e.s(["LoginForm",0,function({configured:e}){let[n,u,m]=(0,t.useActionState)(s,c);return(0,r.jsxs)("form",{action:u,className:"grid gap-5",children:[e?null:(0,r.jsx)("p",{className:"rounded-md border-r-4 border-[#c98a22] bg-[#fff3dd] px-4 py-3 text-sm font-semibold leading-7 text-[#694716]",role:"status",children:"يلزم إضافة مفتاح Supabase العام إلى إعدادات الخادم قبل تسجيل الدخول."}),(0,r.jsxs)("div",{children:[(0,r.jsx)(l.Label,{htmlFor:"identifier",children:"البريد الإلكتروني أو رقم الهاتف"}),(0,r.jsx)(o.Input,{id:"identifier",name:"identifier",type:"text",dir:"ltr",inputMode:"text",autoComplete:"username",placeholder:"admin@example.org أو +249912345678",required:!0,disabled:!e})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)(l.Label,{htmlFor:"password",children:"كلمة المرور"}),(0,r.jsx)(o.Input,{id:"password",name:"password",type:"password",dir:"ltr",autoComplete:"current-password",minLength:6,required:!0,disabled:!e})]}),n.error?(0,r.jsx)("p",{className:"rounded-md bg-[#fae5e5] px-4 py-3 text-sm font-semibold text-[#922f31]",role:"alert",children:n.error}):null,(0,r.jsxs)(d.Button,{type:"submit",disabled:m||!e,children:[m?(0,r.jsx)(i.Loader2,{className:"animate-spin",size:18,"aria-hidden":!0}):(0,r.jsx)(a,{size:18,"aria-hidden":!0}),m?"جارٍ تسجيل الدخول...":"تسجيل الدخول"]})]})}],84290)}]);