@imj_media/imj-ui 1.0.31 → 1.0.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/imj-ui.cjs CHANGED
@@ -1 +1,8 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),He=require("react"),Be=require("@radix-ui/react-accordion"),p=require("lucide-react"),Fe=require("clsx"),Ge=require("tailwind-merge"),Ue=require("@radix-ui/react-alert-dialog"),Ee=require("@radix-ui/react-slot"),N=require("class-variance-authority"),Je=require("@radix-ui/react-avatar"),Ke=require("react-day-picker"),Qe=require("date-fns/locale"),We=require("@radix-ui/react-checkbox"),Xe=require("@radix-ui/react-dialog"),w=require("@radix-ui/react-icons"),Ye=require("@radix-ui/react-dropdown-menu"),Ze=require("@radix-ui/react-label"),$e=require("@radix-ui/react-popover"),et=require("@radix-ui/react-select"),tt=require("@radix-ui/react-switch");function u(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,n.get?n:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const r=u(He),f=u(Be),m=u(Ue),x=u(Je),D=u(We),i=u(Xe),l=u(Ye),A=u(Ze),h=u($e),d=u(et),R=u(tt);function s(...e){return Ge.twMerge(Fe.clsx(e))}const at=f.Root,_=r.forwardRef(({className:e,...t},a)=>o.jsx(f.Item,{ref:a,className:s("border-b",e),...t}));_.displayName="AccordionItem";const I=r.forwardRef(({className:e,children:t,...a},n)=>o.jsx(f.Header,{className:"flex",children:o.jsxs(f.Trigger,{ref:n,className:s("flex flex-1 items-center justify-between py-4 font-medium transition-all [&[data-state=open]>svg]:rotate-180",e),...a,children:[t,o.jsx(p.ChevronDown,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));I.displayName=f.Trigger.displayName;const M=r.forwardRef(({className:e,children:t,...a},n)=>o.jsx(f.Content,{ref:n,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...a,children:o.jsx("div",{className:s("pb-4 pt-0",e),children:t})}));M.displayName=f.Content.displayName;const g=N.cva("inline-flex items-center gap-1 justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-white shadow hover:opacity-70",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",success:"bg-success-regular text-white shadow-sm hover:opacity-70",danger:"bg-danger-regular text-white shadow-sm hover:opacity-70",warning:"bg-warning-regular text-white shadow-sm hover:opacity-70"},size:{default:"h-[2.5rem] px-2 py-2",sm:"h-[2rem] rounded-md px-3 text-xs",lg:"h-[2.5rem] rounded-md px-8",icon:"h-[2.25rem] w-[2.25rem]"}},defaultVariants:{variant:"default",size:"default"}}),z=r.forwardRef(({className:e,variant:t,size:a,asChild:n=!1,...c},b)=>{const y=n?Ee.Slot:"button";return o.jsx(y,{className:s(g({variant:t,size:a,className:e})),ref:b,...c})});z.displayName="Button";const ot=m.Root,st=m.Trigger,V=m.Portal,C=r.forwardRef(({className:e,...t},a)=>o.jsx(m.Overlay,{className:s("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:a}));C.displayName=m.Overlay.displayName;const q=r.forwardRef(({className:e,...t},a)=>o.jsxs(V,{children:[o.jsx(C,{}),o.jsx(m.Content,{ref:a,className:s("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...t})]}));q.displayName=m.Content.displayName;const L=({className:e,...t})=>o.jsx("div",{className:s("flex flex-col space-y-2 text-center sm:text-left",e),...t});L.displayName="AlertDialogHeader";const O=({className:e,...t})=>o.jsx("div",{className:s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});O.displayName="AlertDialogFooter";const H=r.forwardRef(({className:e,...t},a)=>o.jsx(m.Title,{ref:a,className:s("text-lg font-semibold",e),...t}));H.displayName=m.Title.displayName;const B=r.forwardRef(({className:e,...t},a)=>o.jsx(m.Description,{ref:a,className:s("text-sm text-muted-foreground",e),...t}));B.displayName=m.Description.displayName;const F=r.forwardRef(({className:e,...t},a)=>o.jsx(m.Action,{ref:a,className:s(g(),e),...t}));F.displayName=m.Action.displayName;const G=r.forwardRef(({className:e,...t},a)=>o.jsx(m.Cancel,{ref:a,className:s(g({variant:"outline"}),"mt-0",e),...t}));G.displayName=m.Cancel.displayName;const U=r.forwardRef(({className:e,...t},a)=>o.jsx(x.Root,{ref:a,className:s("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));U.displayName=x.Root.displayName;const E=r.forwardRef(({className:e,...t},a)=>o.jsx(x.Image,{ref:a,className:s("aspect-square h-full w-full",e),...t}));E.displayName=x.Image.displayName;const J=r.forwardRef(({className:e,...t},a)=>o.jsx(x.Fallback,{ref:a,className:s("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));J.displayName=x.Fallback.displayName;const rt=N.cva("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function nt({className:e,variant:t,...a}){return o.jsx("div",{className:s(rt({variant:t}),e),...a})}function K({className:e,classNames:t,showOutsideDays:a=!0,...n}){return o.jsx(Ke.DayPicker,{locale:Qe.es,showOutsideDays:a,className:s("p-3 bg-white border-none",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:s(g({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day:s(g({variant:"ghost"}),"h-9 w-9 p-0 font-normal aria-selected:opacity-100"),day_range_end:"day-range-end",day_selected:"bg-primary text-white hover:bg-primary hover:text-white focus:bg-primary focus:text-white",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},components:{IconLeft:({...c})=>o.jsx(p.ChevronLeft,{className:"h-4 w-4"}),IconRight:({...c})=>o.jsx(p.ChevronRight,{className:"h-4 w-4"})},...n})}K.displayName="Calendar";const Q=r.forwardRef(({className:e,...t},a)=>o.jsx(D.Root,{ref:a,className:s("peer h-4 w-4 shrink-0 rounded-sm border-[0.5px] border-black-light ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-white data-[state=checked]:text-primary-foreground",e),...t,children:o.jsx(D.Indicator,{className:s("flex items-center justify-center text-current"),children:o.jsx(p.Check,{className:"h-4 w-4"})})}));Q.displayName=D.Root.displayName;const it=i.Root,lt=i.Trigger,W=i.Portal,dt=i.Close,P=r.forwardRef(({className:e,...t},a)=>o.jsx(i.Overlay,{ref:a,className:s("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));P.displayName=i.Overlay.displayName;const X=r.forwardRef(({className:e,children:t,classNameOverlay:a,classNameClose:n,classNameIcon:c,isButtonClose:b=!0,...y},j)=>o.jsxs(W,{children:[o.jsx(P,{forceMount:!0,className:a}),o.jsxs(i.Content,{ref:j,className:s("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...y,children:[t,b&&o.jsxs(i.Close,{className:s("absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",n),children:[o.jsx(w.Cross2Icon,{className:s("h-4 w-4",c)}),o.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));X.displayName=i.Content.displayName;const Y=({className:e,...t})=>o.jsx("div",{className:s("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Y.displayName="DialogHeader";const Z=({className:e,...t})=>o.jsx("div",{className:s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Z.displayName="DialogFooter";const $=r.forwardRef(({className:e,...t},a)=>o.jsx(i.Title,{ref:a,className:s("text-lg font-semibold leading-none tracking-tight",e),...t}));$.displayName=i.Title.displayName;const ee=r.forwardRef(({className:e,...t},a)=>o.jsx(i.Description,{ref:a,className:s("text-sm text-muted-foreground",e),...t}));ee.displayName=i.Description.displayName;const ct=i.Root,mt=i.Trigger,te=i.Portal,pt=i.Close,T=r.forwardRef(({className:e,...t},a)=>o.jsx(i.Overlay,{ref:a,className:s("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));T.displayName=i.Overlay.displayName;const ae=r.forwardRef(({classNameContent:e,children:t,classNameOverlay:a,classNameClose:n,classNameIcon:c,isButtonClose:b=!0,...y},j)=>o.jsxs(te,{children:[o.jsx(T,{forceMount:!0,className:a}),o.jsxs(i.Content,{ref:j,className:s("fixed left-[50%] top-[50%] z-50 grid p-4 bg-white translate-x-[-50%] translate-y-[-50%] border shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",e),...y,children:[t,b&&o.jsxs(i.Close,{className:s("absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",n),children:[o.jsx(w.Cross2Icon,{className:s("h-4 w-4",c)}),o.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));ae.displayName=i.Content.displayName;const oe=({className:e,...t})=>o.jsx("div",{className:s("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});oe.displayName="DialogHeader";const se=({className:e,...t})=>o.jsx("div",{className:s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});se.displayName="DialogFooter";const re=r.forwardRef(({className:e,...t},a)=>o.jsx(i.Title,{ref:a,className:s("text-lg font-semibold leading-none tracking-tight",e),...t}));re.displayName=i.Title.displayName;const ne=r.forwardRef(({className:e,...t},a)=>o.jsx(i.Description,{ref:a,className:s("text-sm text-muted-foreground",e),...t}));ne.displayName=i.Description.displayName;const ut=l.Root,ft=l.Trigger,gt=l.Group,xt=l.Portal,bt=l.Sub,yt=l.RadioGroup,ie=r.forwardRef(({className:e,inset:t,children:a,...n},c)=>o.jsxs(l.SubTrigger,{ref:c,className:s("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...n,children:[a,o.jsx(p.ChevronRight,{className:"ml-auto"})]}));ie.displayName=l.SubTrigger.displayName;const le=r.forwardRef(({className:e,...t},a)=>o.jsx(l.SubContent,{ref:a,className:s("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));le.displayName=l.SubContent.displayName;const de=r.forwardRef(({className:e,sideOffset:t=4,...a},n)=>o.jsx(l.Portal,{children:o.jsx(l.Content,{ref:n,sideOffset:t,className:s("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));de.displayName=l.Content.displayName;const ce=r.forwardRef(({className:e,inset:t,...a},n)=>o.jsx(l.Item,{ref:n,className:s("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...a}));ce.displayName=l.Item.displayName;const me=r.forwardRef(({className:e,children:t,checked:a,...n},c)=>o.jsxs(l.CheckboxItem,{ref:c,className:s("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:a,...n,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(l.ItemIndicator,{children:o.jsx(p.Check,{className:"h-4 w-4"})})}),t]}));me.displayName=l.CheckboxItem.displayName;const pe=r.forwardRef(({className:e,children:t,...a},n)=>o.jsxs(l.RadioItem,{ref:n,className:s("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(l.ItemIndicator,{children:o.jsx(p.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));pe.displayName=l.RadioItem.displayName;const ue=r.forwardRef(({className:e,inset:t,...a},n)=>o.jsx(l.Label,{ref:n,className:s("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));ue.displayName=l.Label.displayName;const fe=r.forwardRef(({className:e,...t},a)=>o.jsx(l.Separator,{ref:a,className:s("-mx-1 my-1 h-px bg-muted",e),...t}));fe.displayName=l.Separator.displayName;const ge=({className:e,...t})=>o.jsx("span",{className:s("ml-auto text-xs tracking-widest opacity-60",e),...t});ge.displayName="DropdownMenuShortcut";const ht=N.cva("flex h-8 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",{variants:{variant:{ghost:"bg-white/10 border-zinc-300 text-white font-medium"}}}),xe=r.forwardRef(({className:e,variant:t,type:a,...n},c)=>o.jsx("input",{type:a,className:s(ht({variant:t,className:e})),ref:c,...n}));xe.displayName="Input";const wt=N.cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),be=r.forwardRef(({className:e,...t},a)=>o.jsx(A.Root,{ref:a,className:s(wt(),e),...t}));be.displayName=A.Root.displayName;const ye=({className:e,...t})=>o.jsx("nav",{role:"navigation","aria-label":"pagination",className:s("mx-auto flex w-full justify-center",e),...t});ye.displayName="Pagination";const he=r.forwardRef(({className:e,...t},a)=>o.jsx("ul",{ref:a,className:s("flex flex-row items-center gap-1",e),...t}));he.displayName="PaginationContent";const we=r.forwardRef(({className:e,...t},a)=>o.jsx("li",{ref:a,className:s("",e),...t}));we.displayName="PaginationItem";const v=({className:e,isActive:t,size:a="icon",...n})=>o.jsx("a",{"aria-current":t?"page":void 0,className:s(g({variant:t?"outline":"ghost",size:a}),e),...n});v.displayName="PaginationLink";const Ne=({className:e,...t})=>o.jsx(v,{"aria-label":"Go to previous page",size:"default",className:s("gap-1 pl-2.5",e),...t,children:o.jsx(w.ChevronLeftIcon,{className:"h-4 w-4"})});Ne.displayName="PaginationPrevious";const ve=({className:e,...t})=>o.jsx(v,{"aria-label":"Go to next page",size:"default",className:s("gap-1 pr-2.5",e),...t,children:o.jsx(w.ChevronRightIcon,{className:"h-4 w-4"})});ve.displayName="PaginationNext";const je=({className:e,...t})=>o.jsxs("span",{"aria-hidden":!0,className:s("flex h-9 w-9 items-center justify-center",e),...t,children:[o.jsx(w.DotsHorizontalIcon,{className:"h-4 w-4"}),o.jsx("span",{className:"sr-only",children:"More pages"})]});je.displayName="PaginationEllipsis";const Nt=h.Root,vt=h.Trigger,De=r.forwardRef(({className:e,align:t="center",sideOffset:a=4,...n},c)=>o.jsx(h.Portal,{children:o.jsx(h.Content,{ref:c,align:t,sideOffset:a,className:s("z-50 w-72 rounded-md border border-black-light bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));De.displayName=h.Content.displayName;const jt=d.Root,Dt=d.Group,Rt=d.Value,Re=r.forwardRef(({className:e,children:t,...a},n)=>o.jsxs(d.Trigger,{ref:n,className:s("flex h-[2.5rem] w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...a,children:[t,o.jsx(d.Icon,{asChild:!0,children:o.jsx(p.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));Re.displayName=d.Trigger.displayName;const S=r.forwardRef(({className:e,...t},a)=>o.jsx(d.ScrollUpButton,{ref:a,className:s("flex cursor-default items-center justify-center py-1",e),...t,children:o.jsx(p.ChevronUp,{className:"h-4 w-4"})}));S.displayName=d.ScrollUpButton.displayName;const k=r.forwardRef(({className:e,...t},a)=>o.jsx(d.ScrollDownButton,{ref:a,className:s("flex cursor-default items-center justify-center py-1",e),...t,children:o.jsx(p.ChevronDown,{className:"h-4 w-4"})}));k.displayName=d.ScrollDownButton.displayName;const Ce=r.forwardRef(({className:e,children:t,position:a="popper",...n},c)=>o.jsx(d.Portal,{children:o.jsxs(d.Content,{ref:c,className:s("relative z-50 max-h-[24rem] min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:a,...n,children:[o.jsx(S,{}),o.jsx(d.Viewport,{className:s("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),o.jsx(k,{})]})}));Ce.displayName=d.Content.displayName;const Pe=r.forwardRef(({className:e,...t},a)=>o.jsx(d.Label,{ref:a,className:s("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));Pe.displayName=d.Label.displayName;const Te=r.forwardRef(({className:e,children:t,...a},n)=>o.jsxs(d.Item,{ref:n,className:s("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[o.jsx("span",{className:"absolute left-2 flex h-[0.875rem] w-[0.875rem] items-center justify-center",children:o.jsx(d.ItemIndicator,{children:o.jsx(p.Check,{className:"h-4 w-4"})})}),o.jsx(d.ItemText,{children:t})]}));Te.displayName=d.Item.displayName;const Se=r.forwardRef(({className:e,...t},a)=>o.jsx(d.Separator,{ref:a,className:s("-mx-1 my-1 h-px bg-muted",e),...t}));Se.displayName=d.Separator.displayName;const ke=r.forwardRef(({className:e,...t},a)=>o.jsx(R.Root,{className:s("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-silver transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-white data-[state=unchecked]:bg-white",e),...t,ref:a,children:o.jsx(R.Thumb,{className:s("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:bg-black-light data-[state=checked]:bg-primary data-[state=unchecked]:translate-x-0")})}));ke.displayName=R.Root.displayName;const Ae=r.forwardRef(({className:e,...t},a)=>o.jsx("div",{className:"relative w-full overflow-auto",children:o.jsx("table",{ref:a,className:s("w-full caption-bottom text-sm",e),...t})}));Ae.displayName="Table";const _e=r.forwardRef(({className:e,...t},a)=>o.jsx("thead",{ref:a,className:s("[&_tr]:border-b",e),...t}));_e.displayName="TableHeader";const Ie=r.forwardRef(({className:e,...t},a)=>o.jsx("tbody",{ref:a,className:s("[&_tr:last-child]:border-0",e),...t}));Ie.displayName="TableBody";const Me=r.forwardRef(({className:e,...t},a)=>o.jsx("tfoot",{ref:a,className:s("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));Me.displayName="TableFooter";const ze=r.forwardRef(({className:e,...t},a)=>o.jsx("tr",{ref:a,className:s("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));ze.displayName="TableRow";const Ve=r.forwardRef(({className:e,...t},a)=>o.jsx("th",{ref:a,className:s("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));Ve.displayName="TableHead";const qe=r.forwardRef(({className:e,...t},a)=>o.jsx("td",{ref:a,className:s("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));qe.displayName="TableCell";const Le=r.forwardRef(({className:e,...t},a)=>o.jsx("caption",{ref:a,className:s("mt-4 text-sm text-muted-foreground",e),...t}));Le.displayName="TableCaption";const Oe=r.forwardRef(({className:e,...t},a)=>o.jsx("textarea",{className:s("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...t}));Oe.displayName="Textarea";exports.Accordion=at;exports.AccordionContent=M;exports.AccordionItem=_;exports.AccordionTrigger=I;exports.AlertDialog=ot;exports.AlertDialogAction=F;exports.AlertDialogCancel=G;exports.AlertDialogContent=q;exports.AlertDialogDescription=B;exports.AlertDialogFooter=O;exports.AlertDialogHeader=L;exports.AlertDialogOverlay=C;exports.AlertDialogPortal=V;exports.AlertDialogTitle=H;exports.AlertDialogTrigger=st;exports.Avatar=U;exports.AvatarFallback=J;exports.AvatarImage=E;exports.Badge=nt;exports.Button=z;exports.Calendar=K;exports.Checkbox=Q;exports.Dialog=it;exports.DialogClose=dt;exports.DialogCloseV2=pt;exports.DialogContent=X;exports.DialogContentV2=ae;exports.DialogDescription=ee;exports.DialogDescriptionV2=ne;exports.DialogFooter=Z;exports.DialogFooterV2=se;exports.DialogHeader=Y;exports.DialogHeaderV2=oe;exports.DialogOverlay=P;exports.DialogOverlayV2=T;exports.DialogPortal=W;exports.DialogPortalV2=te;exports.DialogTitle=$;exports.DialogTitleV2=re;exports.DialogTrigger=lt;exports.DialogTriggerV2=mt;exports.DialogV2=ct;exports.DropdownMenu=ut;exports.DropdownMenuCheckboxItem=me;exports.DropdownMenuContent=de;exports.DropdownMenuGroup=gt;exports.DropdownMenuItem=ce;exports.DropdownMenuLabel=ue;exports.DropdownMenuPortal=xt;exports.DropdownMenuRadioGroup=yt;exports.DropdownMenuRadioItem=pe;exports.DropdownMenuSeparator=fe;exports.DropdownMenuShortcut=ge;exports.DropdownMenuSub=bt;exports.DropdownMenuSubContent=le;exports.DropdownMenuSubTrigger=ie;exports.DropdownMenuTrigger=ft;exports.Input=xe;exports.Label=be;exports.Pagination=ye;exports.PaginationContent=he;exports.PaginationEllipsis=je;exports.PaginationItem=we;exports.PaginationLink=v;exports.PaginationNext=ve;exports.PaginationPrevious=Ne;exports.Popover=Nt;exports.PopoverContent=De;exports.PopoverTrigger=vt;exports.Select=jt;exports.SelectContent=Ce;exports.SelectGroup=Dt;exports.SelectItem=Te;exports.SelectLabel=Pe;exports.SelectScrollDownButton=k;exports.SelectScrollUpButton=S;exports.SelectSeparator=Se;exports.SelectTrigger=Re;exports.SelectValue=Rt;exports.Switch=ke;exports.Table=Ae;exports.TableBody=Ie;exports.TableCaption=Le;exports.TableCell=qe;exports.TableFooter=Me;exports.TableHead=Ve;exports.TableHeader=_e;exports.TableRow=ze;exports.Textarea=Oe;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),N=require("react"),nt=require("@radix-ui/react-accordion"),p=require("lucide-react"),it=require("clsx"),lt=require("tailwind-merge"),dt=require("@radix-ui/react-alert-dialog"),ct=require("@radix-ui/react-slot"),_=require("class-variance-authority"),mt=require("@radix-ui/react-avatar"),ut=require("react-day-picker"),pt=require("date-fns/locale"),ft=require("@radix-ui/react-checkbox"),gt=require("@radix-ui/react-dialog"),R=require("@radix-ui/react-icons"),xt=require("@radix-ui/react-dropdown-menu"),wt=require("@radix-ui/react-label"),bt=require("@radix-ui/react-popover"),ht=require("@radix-ui/react-select"),yt=require("@radix-ui/react-switch"),M=require("@imj_media/tasks-modules");function f(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const r=f(N),h=f(nt),u=f(dt),j=f(mt),z=f(ft),i=f(gt),l=f(xt),G=f(wt),C=f(bt),d=f(ht),F=f(yt);function s(...e){return lt.twMerge(it.clsx(e))}const Nt=h.Root,$=r.forwardRef(({className:e,...t},o)=>a.jsx(h.Item,{ref:o,className:s("border-b",e),...t}));$.displayName="AccordionItem";const U=r.forwardRef(({className:e,children:t,...o},n)=>a.jsx(h.Header,{className:"flex",children:a.jsxs(h.Trigger,{ref:n,className:s("flex flex-1 items-center justify-between py-4 font-medium transition-all [&[data-state=open]>svg]:rotate-180",e),...o,children:[t,a.jsx(p.ChevronDown,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));U.displayName=h.Trigger.displayName;const W=r.forwardRef(({className:e,children:t,...o},n)=>a.jsx(h.Content,{ref:n,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...o,children:a.jsx("div",{className:s("pb-4 pt-0",e),children:t})}));W.displayName=h.Content.displayName;const v=_.cva("inline-flex items-center gap-1 justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-white shadow hover:opacity-70",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",success:"bg-success-regular text-white shadow-sm hover:opacity-70",danger:"bg-danger-regular text-white shadow-sm hover:opacity-70",warning:"bg-warning-regular text-white shadow-sm hover:opacity-70"},size:{default:"h-[2.5rem] px-2 py-2",sm:"h-[2rem] rounded-md px-3 text-xs",lg:"h-[2.5rem] rounded-md px-8",icon:"h-[2.25rem] w-[2.25rem]"}},defaultVariants:{variant:"default",size:"default"}}),J=r.forwardRef(({className:e,variant:t,size:o,asChild:n=!1,...m},x)=>{const w=n?ct.Slot:"button";return a.jsx(w,{className:s(v({variant:t,size:o,className:e})),ref:x,...m})});J.displayName="Button";const vt=u.Root,jt=u.Trigger,K=u.Portal,V=r.forwardRef(({className:e,...t},o)=>a.jsx(u.Overlay,{className:s("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:o}));V.displayName=u.Overlay.displayName;const Q=r.forwardRef(({className:e,...t},o)=>a.jsxs(K,{children:[a.jsx(V,{}),a.jsx(u.Content,{ref:o,className:s("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...t})]}));Q.displayName=u.Content.displayName;const X=({className:e,...t})=>a.jsx("div",{className:s("flex flex-col space-y-2 text-center sm:text-left",e),...t});X.displayName="AlertDialogHeader";const Y=({className:e,...t})=>a.jsx("div",{className:s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Y.displayName="AlertDialogFooter";const Z=r.forwardRef(({className:e,...t},o)=>a.jsx(u.Title,{ref:o,className:s("text-lg font-semibold",e),...t}));Z.displayName=u.Title.displayName;const ee=r.forwardRef(({className:e,...t},o)=>a.jsx(u.Description,{ref:o,className:s("text-sm text-muted-foreground",e),...t}));ee.displayName=u.Description.displayName;const te=r.forwardRef(({className:e,...t},o)=>a.jsx(u.Action,{ref:o,className:s(v(),e),...t}));te.displayName=u.Action.displayName;const ae=r.forwardRef(({className:e,...t},o)=>a.jsx(u.Cancel,{ref:o,className:s(v({variant:"outline"}),"mt-0",e),...t}));ae.displayName=u.Cancel.displayName;const oe=r.forwardRef(({className:e,...t},o)=>a.jsx(j.Root,{ref:o,className:s("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));oe.displayName=j.Root.displayName;const se=r.forwardRef(({className:e,...t},o)=>a.jsx(j.Image,{ref:o,className:s("aspect-square h-full w-full",e),...t}));se.displayName=j.Image.displayName;const re=r.forwardRef(({className:e,...t},o)=>a.jsx(j.Fallback,{ref:o,className:s("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));re.displayName=j.Fallback.displayName;const Dt=_.cva("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function kt({className:e,variant:t,...o}){return a.jsx("div",{className:s(Dt({variant:t}),e),...o})}function ne({className:e,classNames:t,showOutsideDays:o=!0,...n}){return a.jsx(ut.DayPicker,{locale:pt.es,showOutsideDays:o,className:s("p-3 bg-white border-none",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:s(v({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day:s(v({variant:"ghost"}),"h-9 w-9 p-0 font-normal aria-selected:opacity-100"),day_range_end:"day-range-end",day_selected:"bg-primary text-white hover:bg-primary hover:text-white focus:bg-primary focus:text-white",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},components:{IconLeft:({...m})=>a.jsx(p.ChevronLeft,{className:"h-4 w-4"}),IconRight:({...m})=>a.jsx(p.ChevronRight,{className:"h-4 w-4"})},...n})}ne.displayName="Calendar";const ie=r.forwardRef(({className:e,...t},o)=>a.jsx(z.Root,{ref:o,className:s("peer h-4 w-4 shrink-0 rounded-sm border-[0.5px] border-black-light ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-white data-[state=checked]:text-primary-foreground",e),...t,children:a.jsx(z.Indicator,{className:s("flex items-center justify-center text-current"),children:a.jsx(p.Check,{className:"h-4 w-4"})})}));ie.displayName=z.Root.displayName;const Ct=i.Root,Rt=i.Trigger,le=i.Portal,Tt=i.Close,O=r.forwardRef(({className:e,...t},o)=>a.jsx(i.Overlay,{ref:o,className:s("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));O.displayName=i.Overlay.displayName;const de=r.forwardRef(({className:e,children:t,classNameOverlay:o,classNameClose:n,classNameIcon:m,isButtonClose:x=!0,...w},D)=>a.jsxs(le,{children:[a.jsx(O,{forceMount:!0,className:o}),a.jsxs(i.Content,{ref:D,className:s("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...w,children:[t,x&&a.jsxs(i.Close,{className:s("absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",n),children:[a.jsx(R.Cross2Icon,{className:s("h-4 w-4",m)}),a.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));de.displayName=i.Content.displayName;const ce=({className:e,...t})=>a.jsx("div",{className:s("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});ce.displayName="DialogHeader";const me=({className:e,...t})=>a.jsx("div",{className:s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});me.displayName="DialogFooter";const ue=r.forwardRef(({className:e,...t},o)=>a.jsx(i.Title,{ref:o,className:s("text-lg font-semibold leading-none tracking-tight",e),...t}));ue.displayName=i.Title.displayName;const pe=r.forwardRef(({className:e,...t},o)=>a.jsx(i.Description,{ref:o,className:s("text-sm text-muted-foreground",e),...t}));pe.displayName=i.Description.displayName;const Pt=i.Root,St=i.Trigger,fe=i.Portal,_t=i.Close,L=r.forwardRef(({className:e,...t},o)=>a.jsx(i.Overlay,{ref:o,className:s("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));L.displayName=i.Overlay.displayName;const ge=r.forwardRef(({classNameContent:e,children:t,classNameOverlay:o,classNameClose:n,classNameIcon:m,isButtonClose:x=!0,...w},D)=>a.jsxs(fe,{children:[a.jsx(L,{forceMount:!0,className:o}),a.jsxs(i.Content,{ref:D,className:s("fixed left-[50%] top-[50%] z-50 grid p-4 bg-white translate-x-[-50%] translate-y-[-50%] border shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",e),...w,children:[t,x&&a.jsxs(i.Close,{className:s("absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",n),children:[a.jsx(R.Cross2Icon,{className:s("h-4 w-4",m)}),a.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));ge.displayName=i.Content.displayName;const xe=({className:e,...t})=>a.jsx("div",{className:s("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});xe.displayName="DialogHeader";const we=({className:e,...t})=>a.jsx("div",{className:s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});we.displayName="DialogFooter";const be=r.forwardRef(({className:e,...t},o)=>a.jsx(i.Title,{ref:o,className:s("text-lg font-semibold leading-none tracking-tight",e),...t}));be.displayName=i.Title.displayName;const he=r.forwardRef(({className:e,...t},o)=>a.jsx(i.Description,{ref:o,className:s("text-sm text-muted-foreground",e),...t}));he.displayName=i.Description.displayName;const At=l.Root,It=l.Trigger,Mt=l.Group,zt=l.Portal,Ft=l.Sub,Vt=l.RadioGroup,ye=r.forwardRef(({className:e,inset:t,children:o,...n},m)=>a.jsxs(l.SubTrigger,{ref:m,className:s("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...n,children:[o,a.jsx(p.ChevronRight,{className:"ml-auto"})]}));ye.displayName=l.SubTrigger.displayName;const Ne=r.forwardRef(({className:e,...t},o)=>a.jsx(l.SubContent,{ref:o,className:s("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Ne.displayName=l.SubContent.displayName;const ve=r.forwardRef(({className:e,sideOffset:t=4,...o},n)=>a.jsx(l.Portal,{children:a.jsx(l.Content,{ref:n,sideOffset:t,className:s("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));ve.displayName=l.Content.displayName;const je=r.forwardRef(({className:e,inset:t,...o},n)=>a.jsx(l.Item,{ref:n,className:s("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...o}));je.displayName=l.Item.displayName;const De=r.forwardRef(({className:e,children:t,checked:o,...n},m)=>a.jsxs(l.CheckboxItem,{ref:m,className:s("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:o,...n,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(l.ItemIndicator,{children:a.jsx(p.Check,{className:"h-4 w-4"})})}),t]}));De.displayName=l.CheckboxItem.displayName;const ke=r.forwardRef(({className:e,children:t,...o},n)=>a.jsxs(l.RadioItem,{ref:n,className:s("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...o,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(l.ItemIndicator,{children:a.jsx(p.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));ke.displayName=l.RadioItem.displayName;const Ce=r.forwardRef(({className:e,inset:t,...o},n)=>a.jsx(l.Label,{ref:n,className:s("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));Ce.displayName=l.Label.displayName;const Re=r.forwardRef(({className:e,...t},o)=>a.jsx(l.Separator,{ref:o,className:s("-mx-1 my-1 h-px bg-muted",e),...t}));Re.displayName=l.Separator.displayName;const Te=({className:e,...t})=>a.jsx("span",{className:s("ml-auto text-xs tracking-widest opacity-60",e),...t});Te.displayName="DropdownMenuShortcut";const Ot=_.cva("flex h-8 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",{variants:{variant:{ghost:"bg-white/10 border-zinc-300 text-white font-medium"}}}),Pe=r.forwardRef(({className:e,variant:t,type:o,...n},m)=>a.jsx("input",{type:o,className:s(Ot({variant:t,className:e})),ref:m,...n}));Pe.displayName="Input";const Lt=_.cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Se=r.forwardRef(({className:e,...t},o)=>a.jsx(G.Root,{ref:o,className:s(Lt(),e),...t}));Se.displayName=G.Root.displayName;const _e=({className:e,...t})=>a.jsx("nav",{role:"navigation","aria-label":"pagination",className:s("mx-auto flex w-full justify-center",e),...t});_e.displayName="Pagination";const Ae=r.forwardRef(({className:e,...t},o)=>a.jsx("ul",{ref:o,className:s("flex flex-row items-center gap-1",e),...t}));Ae.displayName="PaginationContent";const Ie=r.forwardRef(({className:e,...t},o)=>a.jsx("li",{ref:o,className:s("",e),...t}));Ie.displayName="PaginationItem";const A=({className:e,isActive:t,size:o="icon",...n})=>a.jsx("a",{"aria-current":t?"page":void 0,className:s(v({variant:t?"outline":"ghost",size:o}),e),...n});A.displayName="PaginationLink";const Me=({className:e,...t})=>a.jsx(A,{"aria-label":"Go to previous page",size:"default",className:s("gap-1 pl-2.5",e),...t,children:a.jsx(R.ChevronLeftIcon,{className:"h-4 w-4"})});Me.displayName="PaginationPrevious";const ze=({className:e,...t})=>a.jsx(A,{"aria-label":"Go to next page",size:"default",className:s("gap-1 pr-2.5",e),...t,children:a.jsx(R.ChevronRightIcon,{className:"h-4 w-4"})});ze.displayName="PaginationNext";const Fe=({className:e,...t})=>a.jsxs("span",{"aria-hidden":!0,className:s("flex h-9 w-9 items-center justify-center",e),...t,children:[a.jsx(R.DotsHorizontalIcon,{className:"h-4 w-4"}),a.jsx("span",{className:"sr-only",children:"More pages"})]});Fe.displayName="PaginationEllipsis";const qt=C.Root,Et=C.Trigger,Ve=r.forwardRef(({className:e,align:t="center",sideOffset:o=4,...n},m)=>a.jsx(C.Portal,{children:a.jsx(C.Content,{ref:m,align:t,sideOffset:o,className:s("z-50 w-72 rounded-md border border-black-light bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));Ve.displayName=C.Content.displayName;const Bt=d.Root,Ht=d.Group,Gt=d.Value,Oe=r.forwardRef(({className:e,children:t,...o},n)=>a.jsxs(d.Trigger,{ref:n,className:s("flex h-[2.5rem] w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...o,children:[t,a.jsx(d.Icon,{asChild:!0,children:a.jsx(p.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));Oe.displayName=d.Trigger.displayName;const q=r.forwardRef(({className:e,...t},o)=>a.jsx(d.ScrollUpButton,{ref:o,className:s("flex cursor-default items-center justify-center py-1",e),...t,children:a.jsx(p.ChevronUp,{className:"h-4 w-4"})}));q.displayName=d.ScrollUpButton.displayName;const E=r.forwardRef(({className:e,...t},o)=>a.jsx(d.ScrollDownButton,{ref:o,className:s("flex cursor-default items-center justify-center py-1",e),...t,children:a.jsx(p.ChevronDown,{className:"h-4 w-4"})}));E.displayName=d.ScrollDownButton.displayName;const Le=r.forwardRef(({className:e,children:t,position:o="popper",...n},m)=>a.jsx(d.Portal,{children:a.jsxs(d.Content,{ref:m,className:s("relative z-50 max-h-[24rem] min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:o,...n,children:[a.jsx(q,{}),a.jsx(d.Viewport,{className:s("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),a.jsx(E,{})]})}));Le.displayName=d.Content.displayName;const qe=r.forwardRef(({className:e,...t},o)=>a.jsx(d.Label,{ref:o,className:s("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));qe.displayName=d.Label.displayName;const Ee=r.forwardRef(({className:e,children:t,...o},n)=>a.jsxs(d.Item,{ref:n,className:s("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...o,children:[a.jsx("span",{className:"absolute left-2 flex h-[0.875rem] w-[0.875rem] items-center justify-center",children:a.jsx(d.ItemIndicator,{children:a.jsx(p.Check,{className:"h-4 w-4"})})}),a.jsx(d.ItemText,{children:t})]}));Ee.displayName=d.Item.displayName;const Be=r.forwardRef(({className:e,...t},o)=>a.jsx(d.Separator,{ref:o,className:s("-mx-1 my-1 h-px bg-muted",e),...t}));Be.displayName=d.Separator.displayName;const He=r.forwardRef(({className:e,...t},o)=>a.jsx(F.Root,{className:s("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-silver transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-white data-[state=unchecked]:bg-white",e),...t,ref:o,children:a.jsx(F.Thumb,{className:s("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:bg-black-light data-[state=checked]:bg-primary data-[state=unchecked]:translate-x-0")})}));He.displayName=F.Root.displayName;const Ge=r.forwardRef(({className:e,...t},o)=>a.jsx("div",{className:"relative w-full overflow-auto",children:a.jsx("table",{ref:o,className:s("w-full caption-bottom text-sm",e),...t})}));Ge.displayName="Table";const $e=r.forwardRef(({className:e,...t},o)=>a.jsx("thead",{ref:o,className:s("[&_tr]:border-b",e),...t}));$e.displayName="TableHeader";const Ue=r.forwardRef(({className:e,...t},o)=>a.jsx("tbody",{ref:o,className:s("[&_tr:last-child]:border-0",e),...t}));Ue.displayName="TableBody";const We=r.forwardRef(({className:e,...t},o)=>a.jsx("tfoot",{ref:o,className:s("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));We.displayName="TableFooter";const Je=r.forwardRef(({className:e,...t},o)=>a.jsx("tr",{ref:o,className:s("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));Je.displayName="TableRow";const Ke=r.forwardRef(({className:e,...t},o)=>a.jsx("th",{ref:o,className:s("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));Ke.displayName="TableHead";const Qe=r.forwardRef(({className:e,...t},o)=>a.jsx("td",{ref:o,className:s("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));Qe.displayName="TableCell";const Xe=r.forwardRef(({className:e,...t},o)=>a.jsx("caption",{ref:o,className:s("mt-4 text-sm text-muted-foreground",e),...t}));Xe.displayName="TableCaption";const Ye=r.forwardRef(({className:e,...t},o)=>a.jsx("textarea",{className:s("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...t}));Ye.displayName="Textarea";const k={silver:{silver_dark:" #E9E9E9"},black:{black_light:"#929292",black_medium:"#4F4F4F"}},$t=({isOpen:e,initialValue:t,onClose:o,options:n,onSelect:m,placeholderDropdown:x="Seleccione una opción",placeholderInput:w="Texto ejemplo",className:D="",selectClassName:Ze="",containerOptionsClassName:et="",optionClassName:tt="",fields:T})=>{const I=N.useRef(null),y=c=>typeof c=="string"?c:T?c[T.nombre]:c.nombre,[g,P]=N.useState(!1),[B,S]=N.useState(""),[H,at]=N.useState(t?typeof t=="string"?t:y(t):null);N.useEffect(()=>{const c=b=>{I.current&&!I.current.contains(b.target)&&(P(!1),S(""),o&&o())};return document.addEventListener("mousedown",c),()=>{document.removeEventListener("mousedown",c)}},[o]);const ot=c=>typeof c=="string"?null:T?c[T.id]:c.id,st=n.filter(c=>{var b;return(b=y(c))==null?void 0:b.toLowerCase().includes(B.toLowerCase())});return e?a.jsxs("div",{className:`tw-relative tw-group ${D}`,ref:I,children:[a.jsxs("button",{id:"dropdown-button",className:`tw-inline-flex tw-justify-center tw-w-full tw-px-4 tw-py-2 tw-text-sm tw-font-medium tw-text-gray-700 tw-bg-[#FAFAFA] tw-border
2
+ tw-border-[#EFEFEF] tw-rounded-[4px] tw-shadow-sm tw-focus:outline-none tw-focus:ring-2 tw-focus:ring-offset-2
3
+ tw-focus:ring-offset-gray-100 tw-focus:ring-blue-500 tw-justify-between tw-items-center tw-transition-all tw-duration-200 tw-ease-in-out
4
+ ${g&&"tw-border-[#3658C1] tw-shadow-[0px_1px_4px_0px_rgba(37,37,37,0.20)_inset]"} ${Ze}`,onClick:()=>{P(!g),S(""),o&&g&&o()},children:[a.jsx("span",{className:`tw-mr-2 tw-text-[14px] tw-font-normal tw-text-left ${g?"tw-text-black-black_regular":"tw-text-black-black_light"}`,children:H??x}),a.jsx(M.Icons,{icon:"angle_up_outline",size:"xs",color:g?k.black.black_medium:k.black.black_light,strokeWidth:5,className:`tw-transition-transform tw-duration-200 ${g?"tw-rotate-180":"tw-rotate-0"}`})]}),g&&a.jsxs("div",{className:`tw-w-full tw-absolute tw-right-0 tw-rounded-[4px] tw-bg-[#F5F5F5]
5
+ tw-p-[8px] tw-space-y-1 tw-shadow-[0px_1px_4px_0px_rgba(37,37,37,0.20)] tw-max-h-[500px] tw-overflow-y-auto tw-z-20 ${et}`,children:[a.jsxs("div",{className:"tw-flex tw-items-center tw-gap-2 tw-mb-[18px]",children:[a.jsxs("div",{className:"tw-relative tw-w-full",children:[a.jsx("input",{className:`tw-block tw-w-full tw-pl-12 tw-pr-4 tw-py-2 tw-text-black-black_regular placeholder:tw-text-[#929292]
6
+ tw-text-[10px] tw-font-normal tw-border tw-rounded-[8px] tw-border-[#E9E9E9] tw-focus:outline-none `,type:"text",placeholder:w,value:B,onChange:c=>S(c.target.value),autoComplete:"off"}),a.jsx("div",{className:"tw-absolute tw-top-[8px] tw-left-[10px] ",children:a.jsx(M.Icons,{icon:"search",size:"xs",color:k.black.black_light,style:{width:"16px",height:"16px"}})})]}),a.jsx(M.Icons,{icon:"x_outline",size:"xs",strokeWidth:6,color:k.black.black_medium,style:{width:"16px",height:"16px",cursor:"pointer"},onClick:()=>{P(!1),S(""),o&&g&&o()},className:"tw-mt-[2px]"})]}),st.map((c,b)=>a.jsxs("div",{children:[a.jsx("a",{href:"#",className:`tw-block tw-px-[18px] tw-py-[8px] tw-text-[14px] tw-font-normal
7
+ tw-cursor-pointer tw-rounded-md tw-transition-all tw-duration-200 tw-ease-in-out
8
+ hover:tw-bg-[#E1EBF9] hover:tw-text-[#334990] ${y(c)===H?"tw-text-[#334990] tw-bg-[#E1EBF9]":"tw-text-gray-gray_medium"} ${tt}`,onClick:rt=>{rt.preventDefault(),m(y(c),ot(c),b),at(y(c)),P(!1)},children:y(c)}),a.jsx("div",{style:{width:"100%",height:"1px",backgroundColor:k.silver.silver_dark}})]},b))]})]}):null};exports.Accordion=Nt;exports.AccordionContent=W;exports.AccordionItem=$;exports.AccordionTrigger=U;exports.AlertDialog=vt;exports.AlertDialogAction=te;exports.AlertDialogCancel=ae;exports.AlertDialogContent=Q;exports.AlertDialogDescription=ee;exports.AlertDialogFooter=Y;exports.AlertDialogHeader=X;exports.AlertDialogOverlay=V;exports.AlertDialogPortal=K;exports.AlertDialogTitle=Z;exports.AlertDialogTrigger=jt;exports.Avatar=oe;exports.AvatarFallback=re;exports.AvatarImage=se;exports.Badge=kt;exports.Button=J;exports.Calendar=ne;exports.Checkbox=ie;exports.Dialog=Ct;exports.DialogClose=Tt;exports.DialogCloseV2=_t;exports.DialogContent=de;exports.DialogContentV2=ge;exports.DialogDescription=pe;exports.DialogDescriptionV2=he;exports.DialogFooter=me;exports.DialogFooterV2=we;exports.DialogHeader=ce;exports.DialogHeaderV2=xe;exports.DialogOverlay=O;exports.DialogOverlayV2=L;exports.DialogPortal=le;exports.DialogPortalV2=fe;exports.DialogTitle=ue;exports.DialogTitleV2=be;exports.DialogTrigger=Rt;exports.DialogTriggerV2=St;exports.DialogV2=Pt;exports.DropDownSearch=$t;exports.DropdownMenu=At;exports.DropdownMenuCheckboxItem=De;exports.DropdownMenuContent=ve;exports.DropdownMenuGroup=Mt;exports.DropdownMenuItem=je;exports.DropdownMenuLabel=Ce;exports.DropdownMenuPortal=zt;exports.DropdownMenuRadioGroup=Vt;exports.DropdownMenuRadioItem=ke;exports.DropdownMenuSeparator=Re;exports.DropdownMenuShortcut=Te;exports.DropdownMenuSub=Ft;exports.DropdownMenuSubContent=Ne;exports.DropdownMenuSubTrigger=ye;exports.DropdownMenuTrigger=It;exports.Input=Pe;exports.Label=Se;exports.Pagination=_e;exports.PaginationContent=Ae;exports.PaginationEllipsis=Fe;exports.PaginationItem=Ie;exports.PaginationLink=A;exports.PaginationNext=ze;exports.PaginationPrevious=Me;exports.Popover=qt;exports.PopoverContent=Ve;exports.PopoverTrigger=Et;exports.Select=Bt;exports.SelectContent=Le;exports.SelectGroup=Ht;exports.SelectItem=Ee;exports.SelectLabel=qe;exports.SelectScrollDownButton=E;exports.SelectScrollUpButton=q;exports.SelectSeparator=Be;exports.SelectTrigger=Oe;exports.SelectValue=Gt;exports.Switch=He;exports.Table=Ge;exports.TableBody=Ue;exports.TableCaption=Xe;exports.TableCell=Qe;exports.TableFooter=We;exports.TableHead=Ke;exports.TableHeader=$e;exports.TableRow=Je;exports.Textarea=Ye;