"use client"
import{j as t}from"./chunk-6DIYJ56I.mjs";import{cva as p}from"class-variance-authority";import{Calendar as g,ChevronDown as l}from"lucide-react";import{jsx as r,jsxs as c}from"react/jsx-runtime";var d=p(["group peer flex cursor-pointer appearance-none items-center gap-x-2 truncate rounded-md border px-3 h-10 outline-none transition-all text-sm","bg-white border-gray-200 text-gray-900 placeholder-gray-400 transition-all","disabled:pointer-events-none disabled:bg-gray-100 disabled:text-gray-400","focus-visible:border-gray-500 data-[state=open]:border-gray-500 data-[state=open]:ring-4 data-[state=open]:ring-gray-200"],{variants:{hasError:{true:"ring-2 ring-red-200 border-red-500"}}}),m=({ref:o,className:n,children:e,placeholder:a,hasError:s,...i})=>c("button",{ref:o,className:t(d({hasError:s}),n),...i,children:[r(g,{className:t("h-4 w-4 shrink-0 text-gray-400",!!e&&"text-gray-900")}),r("span",{className:"flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-left text-gray-900",children:e||(a?r("span",{className:"text-gray-400",children:a}):null)}),r(l,{className:"h-4 w-4 flex-shrink-0 text-gray-400 transition-transform duration-75 group-data-[state=open]:rotate-180"})]});m.displayName="DatePicker.Trigger";export{m as a};
