(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,55764,e=>{"use strict";var r=e.i(43476),s=e.i(71645),t=e.i(75157);let a=(0,s.forwardRef)(({className:e,...s},a)=>(0,r.jsx)("input",{ref:a,className:(0,t.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),...s}));a.displayName="Input",e.s(["Input",0,a])},10204,e=>{"use strict";var r=e.i(43476),s=e.i(75157);e.s(["Label",0,function({className:e,...t}){return(0,r.jsx)("label",{className:(0,s.cn)("mb-1.5 block text-sm font-semibold text-[var(--ink)]",e),...t})}])},75186,e=>{"use strict";var r=e.i(43476),s=e.i(71645);let t=(0,e.i(75254).default)("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);var a=e.i(31278),i=e.i(95187);let n=(0,i.createServerReference)("608f91e66f2b12e46b90fb6e97db4b925580735f64",i.callServer,void 0,i.findSourceMapURL,"changePasswordAction");var o=e.i(19455),l=e.i(55764),d=e.i(10204);e.s(["ChangePasswordForm",0,function(){let[e,i,c]=(0,s.useActionState)(n,{});return(0,r.jsxs)("form",{action:i,className:"grid gap-5",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(d.Label,{children:"كلمة المرور الجديدة"}),(0,r.jsx)(l.Input,{name:"password",type:"password",dir:"ltr",minLength:6,autoComplete:"new-password",required:!0})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)(d.Label,{children:"تأكيد كلمة المرور"}),(0,r.jsx)(l.Input,{name:"confirmation",type:"password",dir:"ltr",minLength:6,autoComplete:"new-password",required:!0})]}),e.error?(0,r.jsx)("p",{className:"rounded-md bg-[#fae5e5] px-4 py-3 text-sm font-semibold text-[#922f31]",children:e.error}):null,e.success?(0,r.jsx)("p",{className:"rounded-md bg-[#e2f3e9] px-4 py-3 text-sm font-semibold text-[#17613b]",children:e.success}):null,(0,r.jsxs)(o.Button,{type:"submit",disabled:c,children:[c?(0,r.jsx)(a.Loader2,{className:"animate-spin",size:18}):(0,r.jsx)(t,{size:18})," ",c?"جارٍ تحديث كلمة المرور...":"تحديث كلمة المرور"]})]})}],75186)}]);