module.exports=[66718,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(68114);let e=(0,c.forwardRef)(({className:a,...c},e)=>(0,b.jsx)("input",{ref:e,className:(0,d.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)]",a),...c}));e.displayName="Input",a.s(["Input",0,e])},70430,a=>{"use strict";var b=a.i(87924),c=a.i(68114);a.s(["Label",0,function({className:a,...d}){return(0,b.jsx)("label",{className:(0,c.cn)("mb-1.5 block text-sm font-semibold text-[var(--ink)]",a),...d})}])},52944,a=>{"use strict";var b=a.i(87924),c=a.i(72131);let d=(0,a.i(70106).default)("ImagePlus",[["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}],["path",{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5",key:"1ue2ih"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]]);var e=a.i(66718),f=a.i(70430);a.s(["ImageUploadField",0,function({id:a,name:g,label:h,required:i=!1}){let[j,k]=(0,c.useState)(null),l=a??g;return(0,b.jsxs)("div",{className:"min-w-0",children:[(0,b.jsx)(f.Label,{htmlFor:l,children:h}),(0,b.jsxs)("div",{className:"grid min-w-0 gap-3 rounded-md border border-[var(--border)] bg-[var(--surface-muted)] p-3",children:[(0,b.jsx)("div",{className:"grid aspect-[16/9] place-items-center overflow-hidden rounded-md border border-dashed bg-white",children:j?(0,b.jsx)("img",{src:j,alt:`معاينة ${h}`,className:"h-full w-full object-contain"}):(0,b.jsxs)("div",{className:"grid justify-items-center gap-2 text-xs font-semibold text-[var(--ink-faint)]",children:[(0,b.jsx)(d,{size:24,"aria-hidden":!0}),"معاينة الصورة"]})}),(0,b.jsx)(e.Input,{id:l,name:g,type:"file",accept:".jpg,.jpeg,.png,.webp,image/jpeg,image/png,image/webp",required:i,className:"min-w-0 bg-white",onChange:a=>{let b=a.currentTarget.files?.[0];if(!b)return void k(null);let c=new FileReader;c.onload=()=>k("string"==typeof c.result?c.result:null),c.readAsDataURL(b)}})]})]})}],52944)}];

//# sourceMappingURL=src_components_1bn3n90._.js.map