import{j as r}from"./vendor-query-BSpUEUJE.js";import{B as i,a as t}from"./index-DVdSf46I.js";import{C as m}from"./calendar-BjYdwRhe.js";import{p as d,q as l,C as p,r as c}from"./Index-CsHtvMhJ.js";import{f as x}from"./vendor-date-BDZqQjIb.js";const C=({value:s,onChange:e,placeholder:o="اختر التاريخ",disabled:a,className:n})=>r.jsxs(d,{children:[r.jsx(l,{asChild:!0,children:r.jsxs(i,{variant:"outline",className:t("w-[150px] justify-start text-right font-normal",!s&&"text-muted-foreground",n),children:[r.jsx(p,{className:"mr-2 h-4 w-4"}),s?x(s,"yyyy-MM-dd"):r.jsx("span",{children:o})]})}),r.jsx(c,{className:"w-auto p-0",align:"end",side:"bottom",children:r.jsx(m,{mode:"single",selected:s,onSelect:e,initialFocus:!0,disabled:a,className:t("p-3 pointer-events-auto")})})]});export{C as D};
