cortex-react-components 1.4.1 → 1.4.2

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.
@@ -1 +1 @@
1
- import{a as H}from"./chunk-YAZZUJPQ.mjs";import{a as P,f as B}from"./chunk-RAZKAPLW.mjs";import{a as C}from"./chunk-RBF2IQIG.mjs";import{a as I}from"./chunk-G2GEVAGD.mjs";import{a as M}from"./chunk-FRWX5YES.mjs";import{a as E,b as T,c as _,d as L}from"./chunk-TNVXZARJ.mjs";import{b as N}from"./chunk-TLXHEFFH.mjs";import{a as i}from"./chunk-NIQ4466A.mjs";import*as r from"react";import{Slot as g}from"@radix-ui/react-slot";import{cva as A}from"class-variance-authority";import{PanelLeft as O}from"lucide-react";import{jsx as o,jsxs as S}from"react/jsx-runtime";var G="sidebar:state",K=60*60*24*7,V="16rem",$="18rem",U="3rem",W="b",D=r.createContext(null);function w(){let a=r.useContext(D);if(!a)throw new Error("useSidebar must be used within a SidebarProvider.");return a}var j=r.forwardRef(({defaultOpen:a=!0,open:e,onOpenChange:t,className:n,style:d,children:s,...u},m)=>{let c=M(),[p,b]=r.useState(!1),[v,k]=r.useState(a),f=e!=null?e:v,h=r.useCallback(l=>{if(t)return t==null?void 0:t(typeof l=="function"?l(f):l);k(l),document.cookie=`${G}=${f}; path=/; max-age=${K}`},[t,f]),x=r.useCallback(()=>c?b(l=>!l):h(l=>!l),[c,h,b]);r.useEffect(()=>{let l=R=>{R.key===W&&(R.metaKey||R.ctrlKey)&&(R.preventDefault(),x())};return window.addEventListener("keydown",l),()=>window.removeEventListener("keydown",l)},[x]);let y=f?"expanded":"collapsed",z=r.useMemo(()=>({state:y,open:f,setOpen:h,isMobile:c,openMobile:p,setOpenMobile:b,toggleSidebar:x}),[y,f,h,c,p,b,x]);return o(D.Provider,{value:z,children:o(E,{delayDuration:0,children:o("div",{style:{"--sidebar-width":V,"--sidebar-width-icon":U,...d},className:i("group/sidebar-wrapper flex w-full fixed has-[[data-variant=inset]]:bg-sidebar",n),ref:m,...u,children:s})})})});j.displayName="SidebarProvider";var q=r.forwardRef(({side:a="left",variant:e="sidebar",collapsible:t="offcanvas",className:n,children:d,...s},u)=>{let{isMobile:m,state:c,openMobile:p,setOpenMobile:b}=w();return t==="none"?o("div",{className:i("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",n),ref:u,...s,children:d}):m?o(P,{open:p,onOpenChange:b,...s,children:o(B,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":$},side:a,children:o("div",{className:"flex h-full w-full flex-col",children:d})})}):S("div",{ref:u,className:"group peer hidden md:block text-sidebar-foreground","data-state":c,"data-collapsible":c==="collapsed"?t:"","data-variant":e,"data-side":a,children:[o("div",{className:i("duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",e==="floating"||e==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),o("div",{className:i("duration-200 fixed top-14 bottom-0 z-10 hidden w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex",a==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",e==="floating"||e==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",n),...s,children:o("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:d})})]})});q.displayName="Sidebar";var F=r.forwardRef(({className:a,onClick:e,...t},n)=>{let{toggleSidebar:d}=w();return S(N,{ref:n,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:i("h-7 w-7",a),onClick:s=>{e==null||e(s),d()},...t,children:[o(O,{}),o("span",{className:"sr-only",children:"Toggle Sidebar"})]})});F.displayName="SidebarTrigger";var X=r.forwardRef(({className:a,...e},t)=>{let{toggleSidebar:n}=w();return o("button",{ref:t,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:n,title:"Toggle Sidebar",className:i("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",a),...e})});X.displayName="SidebarRail";var Y=r.forwardRef(({className:a,...e},t)=>o("main",{ref:t,className:i("flex flex-1 flex-col bg-background overflow-y-auto relative max-h-full","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",a),...e}));Y.displayName="SidebarInset";var J=r.forwardRef(({className:a,...e},t)=>o(I,{ref:t,"data-sidebar":"input",className:i("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",a),...e}));J.displayName="SidebarInput";var Q=r.forwardRef(({className:a,...e},t)=>o("div",{ref:t,"data-sidebar":"header",className:i("flex flex-col gap-2 p-2",a),...e}));Q.displayName="SidebarHeader";var Z=r.forwardRef(({className:a,...e},t)=>o("div",{ref:t,"data-sidebar":"footer",className:i("flex flex-col gap-2 p-2",a),...e}));Z.displayName="SidebarFooter";var ee=r.forwardRef(({className:a,...e},t)=>o(H,{ref:t,"data-sidebar":"separator",className:i("mx-2 w-auto bg-sidebar-border",a),...e}));ee.displayName="SidebarSeparator";var ae=r.forwardRef(({className:a,...e},t)=>o("div",{ref:t,"data-sidebar":"content",className:i("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",a),...e}));ae.displayName="SidebarContent";var te=r.forwardRef(({className:a,...e},t)=>o("div",{ref:t,"data-sidebar":"group",className:i("relative flex w-full min-w-0 flex-col p-2",a),...e}));te.displayName="SidebarGroup";var re=r.forwardRef(({className:a,asChild:e=!1,...t},n)=>o(e?g:"div",{ref:n,"data-sidebar":"group-label",className:i("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",a),...t}));re.displayName="SidebarGroupLabel";var oe=r.forwardRef(({className:a,asChild:e=!1,...t},n)=>o(e?g:"button",{ref:n,"data-sidebar":"group-action",className:i("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",a),...t}));oe.displayName="SidebarGroupAction";var ie=r.forwardRef(({className:a,...e},t)=>o("div",{ref:t,"data-sidebar":"group-content",className:i("w-full text-sm",a),...e}));ie.displayName="SidebarGroupContent";var ne=r.forwardRef(({className:a,...e},t)=>o("ul",{ref:t,"data-sidebar":"menu",className:i("flex w-full min-w-0 flex-col gap-1",a),...e}));ne.displayName="SidebarMenu";var de=r.forwardRef(({className:a,...e},t)=>o("li",{ref:t,"data-sidebar":"menu-item",className:i("group/menu-item relative",a),...e}));de.displayName="SidebarMenuItem";var se=A("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),le=r.forwardRef(({asChild:a=!1,isActive:e=!1,variant:t="default",size:n="default",tooltip:d,className:s,...u},m)=>{let c=a?g:"button",{isMobile:p,state:b}=w(),v=o(c,{ref:m,"data-sidebar":"menu-button","data-size":n,"data-active":e,className:i(se({variant:t,size:n}),s),...u});return d?(typeof d=="string"&&(d={children:d}),S(T,{children:[o(_,{asChild:!0,children:v}),o(L,{side:"right",align:"center",hidden:b!=="collapsed"||p,...d})]})):v});le.displayName="SidebarMenuButton";var ce=r.forwardRef(({className:a,asChild:e=!1,showOnHover:t=!1,...n},d)=>o(e?g:"button",{ref:d,"data-sidebar":"menu-action",className:i("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",t&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",a),...n}));ce.displayName="SidebarMenuAction";var be=r.forwardRef(({className:a,...e},t)=>o("div",{ref:t,"data-sidebar":"menu-badge",className:i("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",a),...e}));be.displayName="SidebarMenuBadge";var ue=r.forwardRef(({className:a,showIcon:e=!1,...t},n)=>{let d=r.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return S("div",{ref:n,"data-sidebar":"menu-skeleton",className:i("rounded-md h-8 flex gap-2 px-2 items-center",a),...t,children:[e&&o(C,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),o(C,{className:"h-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":d}})]})});ue.displayName="SidebarMenuSkeleton";var pe=r.forwardRef(({className:a,...e},t)=>o("ul",{ref:t,"data-sidebar":"menu-sub",className:i("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",a),...e}));pe.displayName="SidebarMenuSub";var fe=r.forwardRef(({...a},e)=>o("li",{ref:e,...a}));fe.displayName="SidebarMenuSubItem";var me=r.forwardRef(({asChild:a=!1,size:e="md",isActive:t,className:n,...d},s)=>o(a?g:"a",{ref:s,"data-sidebar":"menu-sub-button","data-size":e,"data-active":t,className:i("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",e==="sm"&&"text-xs",e==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",n),...d}));me.displayName="SidebarMenuSubButton";export{w as a,j as b,q as c,F as d,X as e,Y as f,J as g,Q as h,Z as i,ee as j,ae as k,te as l,re as m,oe as n,ie as o,ne as p,de as q,le as r,ce as s,be as t,ue as u,pe as v,fe as w,me as x};
1
+ import{a as C}from"./chunk-RBF2IQIG.mjs";import{a as H}from"./chunk-YAZZUJPQ.mjs";import{a as P,f as B}from"./chunk-RAZKAPLW.mjs";import{a as I}from"./chunk-G2GEVAGD.mjs";import{a as M}from"./chunk-FRWX5YES.mjs";import{a as E,b as T,c as _,d as L}from"./chunk-TNVXZARJ.mjs";import{b as N}from"./chunk-TLXHEFFH.mjs";import{a as i}from"./chunk-NIQ4466A.mjs";import*as r from"react";import{Slot as g}from"@radix-ui/react-slot";import{cva as A}from"class-variance-authority";import{PanelLeft as O}from"lucide-react";import{jsx as o,jsxs as S}from"react/jsx-runtime";var G="sidebar:state",K=60*60*24*7,V="16rem",$="18rem",U="3rem",W="b",D=r.createContext(null);function w(){let a=r.useContext(D);if(!a)throw new Error("useSidebar must be used within a SidebarProvider.");return a}var j=r.forwardRef(({defaultOpen:a=!0,open:e,onOpenChange:t,className:n,style:d,children:s,...u},m)=>{let c=M(),[p,b]=r.useState(!1),[v,k]=r.useState(a),f=e!=null?e:v,h=r.useCallback(l=>{if(t)return t==null?void 0:t(typeof l=="function"?l(f):l);k(l),document.cookie=`${G}=${f}; path=/; max-age=${K}`},[t,f]),x=r.useCallback(()=>c?b(l=>!l):h(l=>!l),[c,h,b]);r.useEffect(()=>{let l=R=>{R.key===W&&(R.metaKey||R.ctrlKey)&&(R.preventDefault(),x())};return window.addEventListener("keydown",l),()=>window.removeEventListener("keydown",l)},[x]);let y=f?"expanded":"collapsed",z=r.useMemo(()=>({state:y,open:f,setOpen:h,isMobile:c,openMobile:p,setOpenMobile:b,toggleSidebar:x}),[y,f,h,c,p,b,x]);return o(D.Provider,{value:z,children:o(E,{delayDuration:0,children:o("div",{style:{"--sidebar-width":V,"--sidebar-width-icon":U,...d},className:i("group/sidebar-wrapper flex w-full fixed has-[[data-variant=inset]]:bg-sidebar",n),ref:m,...u,children:s})})})});j.displayName="SidebarProvider";var q=r.forwardRef(({side:a="left",variant:e="sidebar",collapsible:t="offcanvas",className:n,children:d,...s},u)=>{let{isMobile:m,state:c,openMobile:p,setOpenMobile:b}=w();return t==="none"?o("div",{className:i("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",n),ref:u,...s,children:d}):m?o(P,{open:p,onOpenChange:b,...s,children:o(B,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":$},side:a,children:o("div",{className:"flex h-full w-full flex-col",children:d})})}):S("div",{ref:u,className:"group peer hidden md:block text-sidebar-foreground","data-state":c,"data-collapsible":c==="collapsed"?t:"","data-variant":e,"data-side":a,children:[o("div",{className:i("duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",e==="floating"||e==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),o("div",{className:i("duration-200 fixed top-14 bottom-0 z-10 hidden w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex",a==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",e==="floating"||e==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",n),...s,children:o("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:d})})]})});q.displayName="Sidebar";var F=r.forwardRef(({className:a,onClick:e,...t},n)=>{let{toggleSidebar:d}=w();return S(N,{ref:n,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:i("h-7 w-7",a),onClick:s=>{e==null||e(s),d()},...t,children:[o(O,{}),o("span",{className:"sr-only",children:"Toggle Sidebar"})]})});F.displayName="SidebarTrigger";var X=r.forwardRef(({className:a,...e},t)=>{let{toggleSidebar:n}=w();return o("button",{ref:t,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:n,title:"Toggle Sidebar",className:i("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",a),...e})});X.displayName="SidebarRail";var Y=r.forwardRef(({className:a,...e},t)=>o("main",{ref:t,className:i("flex flex-1 flex-col bg-background overflow-y-auto relative max-h-full","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",a),...e}));Y.displayName="SidebarInset";var J=r.forwardRef(({className:a,...e},t)=>o(I,{ref:t,"data-sidebar":"input",className:i("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",a),...e}));J.displayName="SidebarInput";var Q=r.forwardRef(({className:a,...e},t)=>o("div",{ref:t,"data-sidebar":"header",className:i("flex flex-col gap-2 p-2",a),...e}));Q.displayName="SidebarHeader";var Z=r.forwardRef(({className:a,...e},t)=>o("div",{ref:t,"data-sidebar":"footer",className:i("flex flex-col gap-2 p-2",a),...e}));Z.displayName="SidebarFooter";var ee=r.forwardRef(({className:a,...e},t)=>o(H,{ref:t,"data-sidebar":"separator",className:i("mx-2 w-auto bg-sidebar-border",a),...e}));ee.displayName="SidebarSeparator";var ae=r.forwardRef(({className:a,...e},t)=>o("div",{ref:t,"data-sidebar":"content",className:i("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",a),...e}));ae.displayName="SidebarContent";var te=r.forwardRef(({className:a,...e},t)=>o("div",{ref:t,"data-sidebar":"group",className:i("relative flex w-full min-w-0 flex-col p-2",a),...e}));te.displayName="SidebarGroup";var re=r.forwardRef(({className:a,asChild:e=!1,...t},n)=>o(e?g:"div",{ref:n,"data-sidebar":"group-label",className:i("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",a),...t}));re.displayName="SidebarGroupLabel";var oe=r.forwardRef(({className:a,asChild:e=!1,...t},n)=>o(e?g:"button",{ref:n,"data-sidebar":"group-action",className:i("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",a),...t}));oe.displayName="SidebarGroupAction";var ie=r.forwardRef(({className:a,...e},t)=>o("div",{ref:t,"data-sidebar":"group-content",className:i("w-full text-sm",a),...e}));ie.displayName="SidebarGroupContent";var ne=r.forwardRef(({className:a,...e},t)=>o("ul",{ref:t,"data-sidebar":"menu",className:i("flex w-full min-w-0 flex-col gap-1",a),...e}));ne.displayName="SidebarMenu";var de=r.forwardRef(({className:a,...e},t)=>o("li",{ref:t,"data-sidebar":"menu-item",className:i("group/menu-item relative",a),...e}));de.displayName="SidebarMenuItem";var se=A("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),le=r.forwardRef(({asChild:a=!1,isActive:e=!1,variant:t="default",size:n="default",tooltip:d,className:s,...u},m)=>{let c=a?g:"button",{isMobile:p,state:b}=w(),v=o(c,{ref:m,"data-sidebar":"menu-button","data-size":n,"data-active":e,className:i(se({variant:t,size:n}),s),...u});return d?(typeof d=="string"&&(d={children:d}),S(T,{children:[o(_,{asChild:!0,children:v}),o(L,{side:"right",align:"center",hidden:b!=="collapsed"||p,...d})]})):v});le.displayName="SidebarMenuButton";var ce=r.forwardRef(({className:a,asChild:e=!1,showOnHover:t=!1,...n},d)=>o(e?g:"button",{ref:d,"data-sidebar":"menu-action",className:i("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",t&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",a),...n}));ce.displayName="SidebarMenuAction";var be=r.forwardRef(({className:a,...e},t)=>o("div",{ref:t,"data-sidebar":"menu-badge",className:i("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",a),...e}));be.displayName="SidebarMenuBadge";var ue=r.forwardRef(({className:a,showIcon:e=!1,...t},n)=>{let d=r.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return S("div",{ref:n,"data-sidebar":"menu-skeleton",className:i("rounded-md h-8 flex gap-2 px-2 items-center",a),...t,children:[e&&o(C,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),o(C,{className:"h-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":d}})]})});ue.displayName="SidebarMenuSkeleton";var pe=r.forwardRef(({className:a,...e},t)=>o("ul",{ref:t,"data-sidebar":"menu-sub",className:i("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",a),...e}));pe.displayName="SidebarMenuSub";var fe=r.forwardRef(({...a},e)=>o("li",{ref:e,...a}));fe.displayName="SidebarMenuSubItem";var me=r.forwardRef(({asChild:a=!1,size:e="md",isActive:t,className:n,...d},s)=>o(a?g:"a",{ref:s,"data-sidebar":"menu-sub-button","data-size":e,"data-active":t,className:i("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",e==="sm"&&"text-xs",e==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",n),...d}));me.displayName="SidebarMenuSubButton";export{w as a,j as b,q as c,F as d,X as e,Y as f,J as g,Q as h,Z as i,ee as j,ae as k,te as l,re as m,oe as n,ie as o,ne as p,de as q,le as r,ce as s,be as t,ue as u,pe as v,fe as w,me as x};
@@ -1 +1 @@
1
- import{a as d}from"./chunk-6P7CY367.mjs";import{a as p}from"./chunk-6VGO3JR7.mjs";import{a as m}from"./chunk-NIQ4466A.mjs";import A from"next/link";import{Fragment as g}from"react";import{jsx as e,jsxs as s}from"react/jsx-runtime";var j=v=>{let{card:f,link:h}=d({}),{className:u,doc:N,relationTo:y,showCategories:a,title:b}=v,{slug:C,categories:t,meta:F,title:k}=N||{},{description:r,image:o}=F||{},i=t&&Array.isArray(t)&&t.length>0,l=b||k,w=r==null?void 0:r.replace(/\s/g," "),T=`/${y}/${C}`;return s("article",{className:m("border border-border rounded-lg overflow-hidden bg-card hover:cursor-pointer",u),ref:f.ref,children:[s("div",{className:"relative w-full ",children:[!o&&e("div",{className:"",children:"No image"}),o&&typeof o!="string"&&e(p,{resource:o,size:"33vw"})]}),s("div",{className:"p-4",children:[a&&i&&e("div",{className:"uppercase text-sm mb-4",children:a&&i&&e("div",{children:t==null?void 0:t.map((n,c)=>{if(typeof n=="object"){let{title:L}=n,P=L||"Untitled category",z=c===t.length-1;return s(g,{children:[P,!z&&e(g,{children:", \xA0"})]},c)}return null})})}),l&&e("div",{className:"prose",children:e("h3",{children:e(A,{className:"not-prose",href:T,ref:h.ref,children:l})})}),r&&e("div",{className:"mt-2",children:r&&e("p",{children:w})})]})]})};export{j as a};
1
+ import{a as p}from"./chunk-6VGO3JR7.mjs";import{a as d}from"./chunk-6P7CY367.mjs";import{a as m}from"./chunk-NIQ4466A.mjs";import A from"next/link";import{Fragment as g}from"react";import{jsx as e,jsxs as s}from"react/jsx-runtime";var j=v=>{let{card:f,link:h}=d({}),{className:u,doc:N,relationTo:y,showCategories:a,title:b}=v,{slug:C,categories:t,meta:F,title:k}=N||{},{description:r,image:o}=F||{},i=t&&Array.isArray(t)&&t.length>0,l=b||k,w=r==null?void 0:r.replace(/\s/g," "),T=`/${y}/${C}`;return s("article",{className:m("border border-border rounded-lg overflow-hidden bg-card hover:cursor-pointer",u),ref:f.ref,children:[s("div",{className:"relative w-full ",children:[!o&&e("div",{className:"",children:"No image"}),o&&typeof o!="string"&&e(p,{resource:o,size:"33vw"})]}),s("div",{className:"p-4",children:[a&&i&&e("div",{className:"uppercase text-sm mb-4",children:a&&i&&e("div",{children:t==null?void 0:t.map((n,c)=>{if(typeof n=="object"){let{title:L}=n,P=L||"Untitled category",z=c===t.length-1;return s(g,{children:[P,!z&&e(g,{children:", \xA0"})]},c)}return null})})}),l&&e("div",{className:"prose",children:e("h3",{children:e(A,{className:"not-prose",href:T,ref:h.ref,children:l})})}),r&&e("div",{className:"mt-2",children:r&&e("p",{children:w})})]})]})};export{j as a};
@@ -0,0 +1 @@
1
+ import{a as b,b as g,c as v}from"./chunk-IYOWTF4E.mjs";import{b as f}from"./chunk-NQ4FAZ5U.mjs";import{a as l,b as c,c as m,e as p}from"./chunk-MA5FR2EM.mjs";import{jsx as a,jsxs as t}from"react/jsx-runtime";function x({eventType:e="birthday",date:o="",title:r="",description:s="",avatarSrc:d}){let i=n=>{switch(n){case"birthday":return"from-brand-one-500 to-brand-one-800";case"workAnniversary":return"from-brand-two-500 to-brand-two-700";case"companyEvent":return"from-brand-two-300 to-brand-two-700";default:return"from-gray-500 to-slate-500"}};return t(l,{className:`w-full max-w-md overflow-hidden bg-gradient-to-br ${i(e)}`,children:[t(c,{className:"flex flex-row items-center gap-3 text-white",children:[d&&t(b,{className:"h-14 w-14 border-2 border-white",children:[a(g,{src:d,alt:r||"Event"}),a(v,{className:"bg-white text-gray-900",children:r?r.charAt(0).toUpperCase():"?"})]}),t("div",{className:"flex flex-col",children:[a(m,{className:"text-xl",children:r||"Untitled Event"}),a("p",{className:"text-sm text-white/80",children:o?new Date(o).toLocaleDateString():"Date not specified"})]})]}),t(p,{className:"bg-white bg-opacity-80 p-4",children:[s&&a("p",{className:"mb-2 text-sm text-gray-700",children:s}),a(f,{variant:"secondary",className:`bg-gradient-to-br ${i(e)} text-white/80`,children:a("span",{className:"ml-1",children:e?e.replace(/([a-z])([A-Z])/g,"$1 $2").split(" ").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join(" "):"Event"})})]})]})}export{x as a};
@@ -1 +1 @@
1
- import{a}from"../../chunk-7BP5RVYA.mjs";import"../../chunk-6P7CY367.mjs";import{c as r}from"../../chunk-EMNKQTUC.mjs";import"../../chunk-DYHP6A4B.mjs";import"../../chunk-CJTRVASG.mjs";import"../../chunk-VBYC64I2.mjs";import"../../chunk-6VGO3JR7.mjs";import"../../chunk-BZVOHDLV.mjs";import"../../chunk-OANFAQE4.mjs";import"../../chunk-NEW735FX.mjs";import"../../chunk-VI6PF7VY.mjs";import"../../chunk-PV4EARTR.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-TLXHEFFH.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-US547EKQ.mjs";import m from"clsx";import{jsx as o,jsxs as l}from"react/jsx-runtime";var g=i=>{let{className:n,docs:t,introContent:e}=i;return l("div",{className:m("container",n),children:[e&&o(r,{content:e,enableGutter:!1}),o("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-8 items-stretch",children:t==null?void 0:t.map((s,p)=>typeof s=="string"?null:o(a,{doc:s,relationTo:"posts",showCategories:!0},p))})]})};export{g as RelatedPosts};
1
+ import{a}from"../../chunk-FVGXBMFX.mjs";import{c as r}from"../../chunk-EMNKQTUC.mjs";import"../../chunk-DYHP6A4B.mjs";import"../../chunk-CJTRVASG.mjs";import"../../chunk-VBYC64I2.mjs";import"../../chunk-6VGO3JR7.mjs";import"../../chunk-BZVOHDLV.mjs";import"../../chunk-OANFAQE4.mjs";import"../../chunk-NEW735FX.mjs";import"../../chunk-VI6PF7VY.mjs";import"../../chunk-PV4EARTR.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-6P7CY367.mjs";import"../../chunk-TLXHEFFH.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-US547EKQ.mjs";import m from"clsx";import{jsx as o,jsxs as l}from"react/jsx-runtime";var g=i=>{let{className:n,docs:t,introContent:e}=i;return l("div",{className:m("container",n),children:[e&&o(r,{content:e,enableGutter:!1}),o("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-8 items-stretch",children:t==null?void 0:t.map((s,p)=>typeof s=="string"?null:o(a,{doc:s,relationTo:"posts",showCategories:!0},p))})]})};export{g as RelatedPosts};
@@ -1 +1 @@
1
- import{a as f}from"../../chunk-5JPWYRNZ.mjs";import{a as t}from"../../chunk-X42HILQB.mjs";import{a as e}from"../../chunk-QVT7M33X.mjs";import{a as r}from"../../chunk-EEMR5C75.mjs";import{a as o}from"../../chunk-PPQGQK27.mjs";import"../../chunk-OTS4QNQ2.mjs";import{a as m}from"../../chunk-5VU5KT3M.mjs";import"../../chunk-MA5FR2EM.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-US547EKQ.mjs";export{r as InfoTile,o as Insight,m as MOTD,t as OrgChart,e as ProposalSummary,f as WhyUs};
1
+ import{a as f}from"../../chunk-5JPWYRNZ.mjs";import{a as t}from"../../chunk-X42HILQB.mjs";import{a as e}from"../../chunk-QVT7M33X.mjs";import{a as r}from"../../chunk-EEMR5C75.mjs";import{a as o}from"../../chunk-PPQGQK27.mjs";import{a as m}from"../../chunk-5VU5KT3M.mjs";import"../../chunk-OTS4QNQ2.mjs";import"../../chunk-MA5FR2EM.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-US547EKQ.mjs";export{r as InfoTile,o as Insight,m as MOTD,t as OrgChart,e as ProposalSummary,f as WhyUs};
@@ -1 +1 @@
1
- "use strict";var Ne=Object.create;var $=Object.defineProperty;var Me=Object.getOwnPropertyDescriptor;var Pe=Object.getOwnPropertyNames;var ze=Object.getPrototypeOf,Ee=Object.prototype.hasOwnProperty;var Te=(e,r)=>{for(var t in r)$(e,t,{get:r[t],enumerable:!0})},me=(e,r,t,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of Pe(r))!Ee.call(e,a)&&a!==t&&$(e,a,{get:()=>r[a],enumerable:!(o=Me(r,a))||o.enumerable});return e};var J=(e,r,t)=>(t=e!=null?Ne(ze(e)):{},me(r||!e||!e.__esModule?$(t,"default",{value:e,enumerable:!0}):t,e)),Se=e=>me($({},"__esModule",{value:!0}),e);var fr={};Te(fr,{EventCard:()=>mr});module.exports=Se(fr);var T=J(require("react"));var Ce=require("clsx");var Q="-",Le=e=>{let r=Ge(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{let n=i.split(Q);return n[0]===""&&n.length!==1&&n.shift(),ge(n,r)||Ie(i)},getConflictingClassGroupIds:(i,n)=>{let u=t[i]||[];return n&&o[i]?[...u,...o[i]]:u}}},ge=(e,r)=>{var i;if(e.length===0)return r.classGroupId;let t=e[0],o=r.nextPart.get(t),a=o?ge(e.slice(1),o):void 0;if(a)return a;if(r.validators.length===0)return;let s=e.join(Q);return(i=r.validators.find(({validator:n})=>n(s)))==null?void 0:i.classGroupId},fe=/^\[(.+)\]$/,Ie=e=>{if(fe.test(e)){let r=fe.exec(e)[1],t=r==null?void 0:r.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}},Ge=e=>{let{theme:r,prefix:t}=e,o={nextPart:new Map,validators:[]};return Ve(Object.entries(e.classGroups),t).forEach(([s,i])=>{X(i,o,s,r)}),o},X=(e,r,t,o)=>{e.forEach(a=>{if(typeof a=="string"){let s=a===""?r:be(r,a);s.classGroupId=t;return}if(typeof a=="function"){if(He(a)){X(a(o),r,t,o);return}r.validators.push({validator:a,classGroupId:t});return}Object.entries(a).forEach(([s,i])=>{X(i,be(r,s),t,o)})})},be=(e,r)=>{let t=e;return r.split(Q).forEach(o=>{t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o)}),t},He=e=>e.isThemeGetter,Ve=(e,r)=>r?e.map(([t,o])=>{let a=o.map(s=>typeof s=="string"?r+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,n])=>[r+i,n])):s);return[t,a]}):e,Fe=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=new Map,o=new Map,a=(s,i)=>{t.set(s,i),r++,r>e&&(r=0,o=t,t=new Map)};return{get(s){let i=t.get(s);if(i!==void 0)return i;if((i=o.get(s))!==void 0)return a(s,i),i},set(s,i){t.has(s)?t.set(s,i):a(s,i)}}},he="!",We=e=>{let{separator:r,experimentalParseClassName:t}=e,o=r.length===1,a=r[0],s=r.length,i=n=>{let u=[],b=0,h=0,x;for(let p=0;p<n.length;p++){let g=n[p];if(b===0){if(g===a&&(o||n.slice(p,p+s)===r)){u.push(n.slice(h,p)),h=p+s;continue}if(g==="/"){x=p;continue}}g==="["?b++:g==="]"&&b--}let w=u.length===0?n:n.substring(h),k=w.startsWith(he),C=k?w.substring(1):w,f=x&&x>h?x-h:void 0;return{modifiers:u,hasImportantModifier:k,baseClassName:C,maybePostfixModifierPosition:f}};return t?n=>t({className:n,parseClassName:i}):i},De=e=>{if(e.length<=1)return e;let r=[],t=[];return e.forEach(o=>{o[0]==="["?(r.push(...t.sort(),o),t=[]):t.push(o)}),r.push(...t.sort()),r},_e=e=>({cache:Fe(e.cacheSize),parseClassName:We(e),...Le(e)}),$e=/\s+/,je=(e,r)=>{let{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:a}=r,s=[],i=e.trim().split($e),n="";for(let u=i.length-1;u>=0;u-=1){let b=i[u],{modifiers:h,hasImportantModifier:x,baseClassName:w,maybePostfixModifierPosition:k}=t(b),C=!!k,f=o(C?w.substring(0,k):w);if(!f){if(!C){n=b+(n.length>0?" "+n:n);continue}if(f=o(w),!f){n=b+(n.length>0?" "+n:n);continue}C=!1}let p=De(h).join(":"),g=x?p+he:p,v=g+f;if(s.includes(v))continue;s.push(v);let G=a(f,C);for(let E=0;E<G.length;++E){let W=G[E];s.push(g+W)}n=b+(n.length>0?" "+n:n)}return n};function Be(){let e=0,r,t,o="";for(;e<arguments.length;)(r=arguments[e++])&&(t=ye(r))&&(o&&(o+=" "),o+=t);return o}var ye=e=>{if(typeof e=="string")return e;let r,t="";for(let o=0;o<e.length;o++)e[o]&&(r=ye(e[o]))&&(t&&(t+=" "),t+=r);return t};function Ue(e,...r){let t,o,a,s=i;function i(u){let b=r.reduce((h,x)=>x(h),e());return t=_e(b),o=t.cache.get,a=t.cache.set,s=n,n(u)}function n(u){let b=o(u);if(b)return b;let h=je(u,t);return a(u,h),h}return function(){return s(Be.apply(null,arguments))}}var c=e=>{let r=t=>t[e]||[];return r.isThemeGetter=!0,r},ve=/^\[(?:([a-z-]+):)?(.+)\]$/i,qe=/^\d+\/\d+$/,Oe=new Set(["px","full","screen"]),Ze=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Je=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ke=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Xe=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Qe=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,A=e=>L(e)||Oe.has(e)||qe.test(e),P=e=>I(e,"length",ar),L=e=>!!e&&!Number.isNaN(Number(e)),K=e=>I(e,"number",L),V=e=>!!e&&Number.isInteger(Number(e)),Ye=e=>e.endsWith("%")&&L(e.slice(0,-1)),l=e=>ve.test(e),z=e=>Ze.test(e),er=new Set(["length","size","percentage"]),rr=e=>I(e,er,xe),tr=e=>I(e,"position",xe),or=new Set(["image","url"]),nr=e=>I(e,or,lr),sr=e=>I(e,"",ir),F=()=>!0,I=(e,r,t)=>{let o=ve.exec(e);return o?o[1]?typeof r=="string"?o[1]===r:r.has(o[1]):t(o[2]):!1},ar=e=>Je.test(e)&&!Ke.test(e),xe=()=>!1,ir=e=>Xe.test(e),lr=e=>Qe.test(e);var cr=()=>{let e=c("colors"),r=c("spacing"),t=c("blur"),o=c("brightness"),a=c("borderColor"),s=c("borderRadius"),i=c("borderSpacing"),n=c("borderWidth"),u=c("contrast"),b=c("grayscale"),h=c("hueRotate"),x=c("invert"),w=c("gap"),k=c("gradientColorStops"),C=c("gradientColorStopPositions"),f=c("inset"),p=c("margin"),g=c("opacity"),v=c("padding"),G=c("saturate"),E=c("scale"),W=c("sepia"),ae=c("skew"),ie=c("space"),le=c("translate"),U=()=>["auto","contain","none"],q=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto",l,r],d=()=>[l,r],ce=()=>["",A,P],D=()=>["auto",L,l],de=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],_=()=>["solid","dashed","dotted","double","none"],pe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Z=()=>["start","end","center","between","around","evenly","stretch"],H=()=>["","0",l],ue=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>[L,l];return{cacheSize:500,separator:":",theme:{colors:[F],spacing:[A,P],blur:["none","",z,l],brightness:R(),borderColor:[e],borderRadius:["none","","full",z,l],borderSpacing:d(),borderWidth:ce(),contrast:R(),grayscale:H(),hueRotate:R(),invert:H(),gap:d(),gradientColorStops:[e],gradientColorStopPositions:[Ye,P],inset:O(),margin:O(),opacity:R(),padding:d(),saturate:R(),scale:R(),sepia:H(),skew:R(),space:d(),translate:d()},classGroups:{aspect:[{aspect:["auto","square","video",l]}],container:["container"],columns:[{columns:[z]}],"break-after":[{"break-after":ue()}],"break-before":[{"break-before":ue()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...de(),l]}],overflow:[{overflow:q()}],"overflow-x":[{"overflow-x":q()}],"overflow-y":[{"overflow-y":q()}],overscroll:[{overscroll:U()}],"overscroll-x":[{"overscroll-x":U()}],"overscroll-y":[{"overscroll-y":U()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[f]}],"inset-y":[{"inset-y":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",V,l]}],basis:[{basis:O()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",l]}],grow:[{grow:H()}],shrink:[{shrink:H()}],order:[{order:["first","last","none",V,l]}],"grid-cols":[{"grid-cols":[F]}],"col-start-end":[{col:["auto",{span:["full",V,l]},l]}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":[F]}],"row-start-end":[{row:["auto",{span:[V,l]},l]}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",l]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",l]}],gap:[{gap:[w]}],"gap-x":[{"gap-x":[w]}],"gap-y":[{"gap-y":[w]}],"justify-content":[{justify:["normal",...Z()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Z(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Z(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],S:[{S:[p]}],mx:[{mx:[p]}],my:[{my:[p]}],ms:[{ms:[p]}],me:[{me:[p]}],mt:[{mt:[p]}],mr:[{mr:[p]}],mb:[{mb:[p]}],ml:[{ml:[p]}],"space-x":[{"space-x":[ie]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ie]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",l,r]}],"min-w":[{"min-w":[l,r,"min","max","fit"]}],"max-w":[{"max-w":[l,r,"none","full","min","max","fit","prose",{screen:[z]},z]}],h:[{h:[l,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[l,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[l,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[l,r,"auto","min","max","fit"]}],"font-size":[{text:["base",z,P]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",K]}],"font-family":[{font:[F]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",l]}],"line-clamp":[{"line-clamp":["none",L,K]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",A,l]}],"list-image":[{"list-image":["none",l]}],"list-style-type":[{list:["none","disc","decimal",l]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[..._(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",A,P]}],"underline-offset":[{"underline-offset":["auto",A,l]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:d()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",l]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",l]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...de(),tr]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",rr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},nr]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[k]}],"gradient-via":[{via:[k]}],"gradient-to":[{to:[k]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[n]}],"border-w-x":[{"border-x":[n]}],"border-w-y":[{"border-y":[n]}],"border-w-s":[{"border-s":[n]}],"border-w-e":[{"border-e":[n]}],"border-w-t":[{"border-t":[n]}],"border-w-r":[{"border-r":[n]}],"border-w-b":[{"border-b":[n]}],"border-w-l":[{"border-l":[n]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[..._(),"hidden"]}],"divide-x":[{"divide-x":[n]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[n]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:_()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",..._()]}],"outline-offset":[{"outline-offset":[A,l]}],"outline-w":[{outline:[A,P]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ce()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[A,P]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",z,sr]}],"shadow-color":[{shadow:[F]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...pe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":pe()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",z,l]}],grayscale:[{grayscale:[b]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[x]}],saturate:[{saturate:[G]}],sepia:[{sepia:[W]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[b]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[x]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[G]}],"backdrop-sepia":[{"backdrop-sepia":[W]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",l]}],duration:[{duration:R()}],ease:[{ease:["linear","in","out","in-out",l]}],delay:[{delay:R()}],animate:[{animate:["none","spin","ping","pulse","bounce",l]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[V,l]}],"translate-x":[{"translate-x":[le]}],"translate-y":[{"translate-y":[le]}],"skew-x":[{"skew-x":[ae]}],"skew-y":[{"skew-y":[ae]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",l]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",l]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-S":[{"scroll-S":d()}],"scroll-mx":[{"scroll-mx":d()}],"scroll-my":[{"scroll-my":d()}],"scroll-ms":[{"scroll-ms":d()}],"scroll-me":[{"scroll-me":d()}],"scroll-mt":[{"scroll-mt":d()}],"scroll-mr":[{"scroll-mr":d()}],"scroll-mb":[{"scroll-mb":d()}],"scroll-ml":[{"scroll-ml":d()}],"scroll-p":[{"scroll-p":d()}],"scroll-px":[{"scroll-px":d()}],"scroll-py":[{"scroll-py":d()}],"scroll-ps":[{"scroll-ps":d()}],"scroll-pe":[{"scroll-pe":d()}],"scroll-pt":[{"scroll-pt":d()}],"scroll-pr":[{"scroll-pr":d()}],"scroll-pb":[{"scroll-pb":d()}],"scroll-pl":[{"scroll-pl":d()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",l]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[A,P,K]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],S:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-S":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var we=Ue(cr);function y(...e){return we((0,Ce.clsx)(e))}var S=require("react/jsx-runtime"),Y=T.forwardRef(({className:e,...r},t)=>(0,S.jsx)("div",{ref:t,className:y("rounded-xl border bg-card text-card-foreground shadow",e),...r}));Y.displayName="Card";var ee=T.forwardRef(({className:e,...r},t)=>(0,S.jsx)("div",{ref:t,className:y("flex flex-col space-y-1.5 p-6",e),...r}));ee.displayName="CardHeader";var re=T.forwardRef(({className:e,...r},t)=>(0,S.jsx)("div",{ref:t,className:y("font-semibold leading-none tracking-tight",e),...r}));re.displayName="CardTitle";var dr=T.forwardRef(({className:e,...r},t)=>(0,S.jsx)("div",{ref:t,className:y("text-sm text-muted-foreground",e),...r}));dr.displayName="CardDescription";var te=T.forwardRef(({className:e,...r},t)=>(0,S.jsx)("div",{ref:t,className:y("p-6 pt-0",e),...r}));te.displayName="CardContent";var pr=T.forwardRef(({className:e,...r},t)=>(0,S.jsx)("div",{ref:t,className:y("flex items-center p-6 pt-0",e),...r}));pr.displayName="CardFooter";var j=J(require("react")),N=J(require("@radix-ui/react-avatar"));var oe=j.forwardRef(({className:e,...r},t)=>(0,S.jsx)(N.Root,{ref:t,className:y("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...r}));oe.displayName=N.Root.displayName;var ne=j.forwardRef(({className:e,...r},t)=>(0,S.jsx)(N.Image,{ref:t,className:y("aspect-square h-full w-full",e),...r}));ne.displayName=N.Image.displayName;var se=j.forwardRef(({className:e,...r},t)=>(0,S.jsx)(N.Fallback,{ref:t,className:y("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...r}));se.displayName=N.Fallback.displayName;var ke=require("class-variance-authority");var ur=(0,ke.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 hover:bg-primary/80",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 Re({className:e,variant:r,...t}){return(0,S.jsx)("div",{className:y(ur({variant:r}),e),...t})}var M=require("lucide-react");function mr({eventType:e="birthday",date:r="",title:t="",description:o="",avatarSrc:a}){let s=n=>{switch(n){case"birthday":return(0,S.jsx)(M.Cake,{className:"h-4 w-4"});case"workAnniversary":return(0,S.jsx)(M.Award,{className:"h-4 w-4"});case"companyEvent":return(0,S.jsx)(M.PartyPopper,{className:"h-4 w-4"});default:return(0,S.jsx)(M.CalendarDays,{className:"h-4 w-4"})}},i=n=>{switch(n){case"birthday":return"from-brand-one-500 to-brand-one-800";case"workAnniversary":return"from-brand-two-500 to-brand-two-700";case"companyEvent":return"from-brand-two-300 to-brand-two-700";default:return"from-gray-500 to-slate-500"}};return(0,S.jsxs)(Y,{className:`w-full max-w-md overflow-hidden bg-gradient-to-br ${i(e)}`,children:[(0,S.jsxs)(ee,{className:"flex flex-row items-center gap-3 text-white",children:[a&&(0,S.jsxs)(oe,{className:"h-14 w-14 border-2 border-white",children:[(0,S.jsx)(ne,{src:a,alt:t||"Event"}),(0,S.jsx)(se,{className:"bg-white text-gray-900",children:t?t.charAt(0).toUpperCase():"?"})]}),(0,S.jsxs)("div",{className:"flex flex-col",children:[(0,S.jsx)(re,{className:"text-xl",children:t||"Untitled Event"}),(0,S.jsxs)("p",{className:"text-sm text-white/80",children:[(0,S.jsx)(M.CalendarDays,{className:"mr-1 inline-block h-4 w-4"}),r?new Date(r).toLocaleDateString():"Date not specified"]})]})]}),(0,S.jsxs)(te,{className:"bg-white bg-opacity-80 p-4",children:[o&&(0,S.jsx)("p",{className:"mb-2 text-sm text-gray-700",children:o}),(0,S.jsxs)(Re,{variant:"secondary",className:`bg-gradient-to-br ${i(e)} text-white/80`,children:[s(e),(0,S.jsx)("span",{className:"ml-1",children:e?e.replace(/([a-z])([A-Z])/g,"$1 $2").split(" ").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join(" "):"Event"})]})]})]})}0&&(module.exports={EventCard});
1
+ "use strict";var Ae=Object.create;var $=Object.defineProperty;var Me=Object.getOwnPropertyDescriptor;var Ne=Object.getOwnPropertyNames;var Pe=Object.getPrototypeOf,ze=Object.prototype.hasOwnProperty;var Ee=(e,r)=>{for(var t in r)$(e,t,{get:r[t],enumerable:!0})},ue=(e,r,t,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of Ne(r))!ze.call(e,a)&&a!==t&&$(e,a,{get:()=>r[a],enumerable:!(o=Me(r,a))||o.enumerable});return e};var Z=(e,r,t)=>(t=e!=null?Ae(Pe(e)):{},ue(r||!e||!e.__esModule?$(t,"default",{value:e,enumerable:!0}):t,e)),Te=e=>ue($({},"__esModule",{value:!0}),e);var fr={};Ee(fr,{EventCard:()=>ur});module.exports=Te(fr);var E=Z(require("react"));var we=require("clsx");var X="-",Se=e=>{let r=Ie(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{let s=i.split(X);return s[0]===""&&s.length!==1&&s.shift(),be(s,r)||Le(i)},getConflictingClassGroupIds:(i,s)=>{let u=t[i]||[];return s&&o[i]?[...u,...o[i]]:u}}},be=(e,r)=>{var i;if(e.length===0)return r.classGroupId;let t=e[0],o=r.nextPart.get(t),a=o?be(e.slice(1),o):void 0;if(a)return a;if(r.validators.length===0)return;let n=e.join(X);return(i=r.validators.find(({validator:s})=>s(n)))==null?void 0:i.classGroupId},fe=/^\[(.+)\]$/,Le=e=>{if(fe.test(e)){let r=fe.exec(e)[1],t=r==null?void 0:r.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}},Ie=e=>{let{theme:r,prefix:t}=e,o={nextPart:new Map,validators:[]};return He(Object.entries(e.classGroups),t).forEach(([n,i])=>{K(i,o,n,r)}),o},K=(e,r,t,o)=>{e.forEach(a=>{if(typeof a=="string"){let n=a===""?r:me(r,a);n.classGroupId=t;return}if(typeof a=="function"){if(Ge(a)){K(a(o),r,t,o);return}r.validators.push({validator:a,classGroupId:t});return}Object.entries(a).forEach(([n,i])=>{K(i,me(r,n),t,o)})})},me=(e,r)=>{let t=e;return r.split(X).forEach(o=>{t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o)}),t},Ge=e=>e.isThemeGetter,He=(e,r)=>r?e.map(([t,o])=>{let a=o.map(n=>typeof n=="string"?r+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([i,s])=>[r+i,s])):n);return[t,a]}):e,Ve=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=new Map,o=new Map,a=(n,i)=>{t.set(n,i),r++,r>e&&(r=0,o=t,t=new Map)};return{get(n){let i=t.get(n);if(i!==void 0)return i;if((i=o.get(n))!==void 0)return a(n,i),i},set(n,i){t.has(n)?t.set(n,i):a(n,i)}}},ge="!",Fe=e=>{let{separator:r,experimentalParseClassName:t}=e,o=r.length===1,a=r[0],n=r.length,i=s=>{let u=[],m=0,g=0,x;for(let p=0;p<s.length;p++){let b=s[p];if(m===0){if(b===a&&(o||s.slice(p,p+n)===r)){u.push(s.slice(g,p)),g=p+n;continue}if(b==="/"){x=p;continue}}b==="["?m++:b==="]"&&m--}let w=u.length===0?s:s.substring(g),R=w.startsWith(ge),C=R?w.substring(1):w,f=x&&x>g?x-g:void 0;return{modifiers:u,hasImportantModifier:R,baseClassName:C,maybePostfixModifierPosition:f}};return t?s=>t({className:s,parseClassName:i}):i},We=e=>{if(e.length<=1)return e;let r=[],t=[];return e.forEach(o=>{o[0]==="["?(r.push(...t.sort(),o),t=[]):t.push(o)}),r.push(...t.sort()),r},_e=e=>({cache:Ve(e.cacheSize),parseClassName:Fe(e),...Se(e)}),$e=/\s+/,je=(e,r)=>{let{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:a}=r,n=[],i=e.trim().split($e),s="";for(let u=i.length-1;u>=0;u-=1){let m=i[u],{modifiers:g,hasImportantModifier:x,baseClassName:w,maybePostfixModifierPosition:R}=t(m),C=!!R,f=o(C?w.substring(0,R):w);if(!f){if(!C){s=m+(s.length>0?" "+s:s);continue}if(f=o(w),!f){s=m+(s.length>0?" "+s:s);continue}C=!1}let p=We(g).join(":"),b=x?p+ge:p,v=b+f;if(n.includes(v))continue;n.push(v);let I=a(f,C);for(let z=0;z<I.length;++z){let F=I[z];n.push(b+F)}s=m+(s.length>0?" "+s:s)}return s};function Be(){let e=0,r,t,o="";for(;e<arguments.length;)(r=arguments[e++])&&(t=he(r))&&(o&&(o+=" "),o+=t);return o}var he=e=>{if(typeof e=="string")return e;let r,t="";for(let o=0;o<e.length;o++)e[o]&&(r=he(e[o]))&&(t&&(t+=" "),t+=r);return t};function De(e,...r){let t,o,a,n=i;function i(u){let m=r.reduce((g,x)=>x(g),e());return t=_e(m),o=t.cache.get,a=t.cache.set,n=s,s(u)}function s(u){let m=o(u);if(m)return m;let g=je(u,t);return a(u,g),g}return function(){return n(Be.apply(null,arguments))}}var c=e=>{let r=t=>t[e]||[];return r.isThemeGetter=!0,r},ye=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ue=/^\d+\/\d+$/,qe=new Set(["px","full","screen"]),Oe=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ze=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Je=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ke=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Xe=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,A=e=>S(e)||qe.has(e)||Ue.test(e),N=e=>L(e,"length",sr),S=e=>!!e&&!Number.isNaN(Number(e)),J=e=>L(e,"number",S),H=e=>!!e&&Number.isInteger(Number(e)),Qe=e=>e.endsWith("%")&&S(e.slice(0,-1)),l=e=>ye.test(e),P=e=>Oe.test(e),Ye=new Set(["length","size","percentage"]),er=e=>L(e,Ye,ve),rr=e=>L(e,"position",ve),tr=new Set(["image","url"]),or=e=>L(e,tr,ir),nr=e=>L(e,"",ar),V=()=>!0,L=(e,r,t)=>{let o=ye.exec(e);return o?o[1]?typeof r=="string"?o[1]===r:r.has(o[1]):t(o[2]):!1},sr=e=>Ze.test(e)&&!Je.test(e),ve=()=>!1,ar=e=>Ke.test(e),ir=e=>Xe.test(e);var lr=()=>{let e=c("colors"),r=c("spacing"),t=c("blur"),o=c("brightness"),a=c("borderColor"),n=c("borderRadius"),i=c("borderSpacing"),s=c("borderWidth"),u=c("contrast"),m=c("grayscale"),g=c("hueRotate"),x=c("invert"),w=c("gap"),R=c("gradientColorStops"),C=c("gradientColorStopPositions"),f=c("inset"),p=c("margin"),b=c("opacity"),v=c("padding"),I=c("saturate"),z=c("scale"),F=c("sepia"),se=c("skew"),ae=c("space"),ie=c("translate"),D=()=>["auto","contain","none"],U=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto",l,r],d=()=>[l,r],le=()=>["",A,N],W=()=>["auto",S,l],ce=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],_=()=>["solid","dashed","dotted","double","none"],de=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],O=()=>["start","end","center","between","around","evenly","stretch"],G=()=>["","0",l],pe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>[S,l];return{cacheSize:500,separator:":",theme:{colors:[V],spacing:[A,N],blur:["none","",P,l],brightness:k(),borderColor:[e],borderRadius:["none","","full",P,l],borderSpacing:d(),borderWidth:le(),contrast:k(),grayscale:G(),hueRotate:k(),invert:G(),gap:d(),gradientColorStops:[e],gradientColorStopPositions:[Qe,N],inset:q(),margin:q(),opacity:k(),padding:d(),saturate:k(),scale:k(),sepia:G(),skew:k(),space:d(),translate:d()},classGroups:{aspect:[{aspect:["auto","square","video",l]}],container:["container"],columns:[{columns:[P]}],"break-after":[{"break-after":pe()}],"break-before":[{"break-before":pe()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...ce(),l]}],overflow:[{overflow:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-T":[{"overflow-T":U()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-T":[{"overscroll-T":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[f]}],"inset-T":[{"inset-T":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",H,l]}],basis:[{basis:q()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",l]}],grow:[{grow:G()}],shrink:[{shrink:G()}],order:[{order:["first","last","none",H,l]}],"grid-cols":[{"grid-cols":[V]}],"col-start-end":[{col:["auto",{span:["full",H,l]},l]}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":[V]}],"row-start-end":[{row:["auto",{span:[H,l]},l]}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",l]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",l]}],gap:[{gap:[w]}],"gap-x":[{"gap-x":[w]}],"gap-T":[{"gap-T":[w]}],"justify-content":[{justify:["normal",...O()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...O(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...O(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[p]}],mx:[{mx:[p]}],my:[{my:[p]}],ms:[{ms:[p]}],me:[{me:[p]}],mt:[{mt:[p]}],mr:[{mr:[p]}],mb:[{mb:[p]}],ml:[{ml:[p]}],"space-x":[{"space-x":[ae]}],"space-x-reverse":["space-x-reverse"],"space-T":[{"space-T":[ae]}],"space-T-reverse":["space-T-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",l,r]}],"min-w":[{"min-w":[l,r,"min","max","fit"]}],"max-w":[{"max-w":[l,r,"none","full","min","max","fit","prose",{screen:[P]},P]}],h:[{h:[l,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[l,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[l,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[l,r,"auto","min","max","fit"]}],"font-size":[{text:["base",P,N]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",J]}],"font-family":[{font:[V]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",l]}],"line-clamp":[{"line-clamp":["none",S,J]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",A,l]}],"list-image":[{"list-image":["none",l]}],"list-style-type":[{list:["none","disc","decimal",l]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[..._(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",A,N]}],"underline-offset":[{"underline-offset":["auto",A,l]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:d()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",l]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",l]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ce(),rr]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","T","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",er]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},or]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[R]}],"gradient-via":[{via:[R]}],"gradient-to":[{to:[R]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-T":[{"border-T":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[..._(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-T":[{"divide-T":[s]}],"divide-T-reverse":["divide-T-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:_()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-T":[{"border-T":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",..._()]}],"outline-offset":[{"outline-offset":[A,l]}],"outline-w":[{outline:[A,N]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:le()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[A,N]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",P,nr]}],"shadow-color":[{shadow:[V]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":[...de(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":de()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",P,l]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[g]}],invert:[{invert:[x]}],saturate:[{saturate:[I]}],sepia:[{sepia:[F]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[g]}],"backdrop-invert":[{"backdrop-invert":[x]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[I]}],"backdrop-sepia":[{"backdrop-sepia":[F]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-T":[{"border-spacing-T":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",l]}],duration:[{duration:k()}],ease:[{ease:["linear","in","out","in-out",l]}],delay:[{delay:k()}],animate:[{animate:["none","spin","ping","pulse","bounce",l]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[z]}],"scale-x":[{"scale-x":[z]}],"scale-T":[{"scale-T":[z]}],rotate:[{rotate:[H,l]}],"translate-x":[{"translate-x":[ie]}],"translate-T":[{"translate-T":[ie]}],"skew-x":[{"skew-x":[se]}],"skew-T":[{"skew-T":[se]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",l]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",l]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","T","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":d()}],"scroll-mx":[{"scroll-mx":d()}],"scroll-my":[{"scroll-my":d()}],"scroll-ms":[{"scroll-ms":d()}],"scroll-me":[{"scroll-me":d()}],"scroll-mt":[{"scroll-mt":d()}],"scroll-mr":[{"scroll-mr":d()}],"scroll-mb":[{"scroll-mb":d()}],"scroll-ml":[{"scroll-ml":d()}],"scroll-p":[{"scroll-p":d()}],"scroll-px":[{"scroll-px":d()}],"scroll-py":[{"scroll-py":d()}],"scroll-ps":[{"scroll-ps":d()}],"scroll-pe":[{"scroll-pe":d()}],"scroll-pt":[{"scroll-pt":d()}],"scroll-pr":[{"scroll-pr":d()}],"scroll-pb":[{"scroll-pb":d()}],"scroll-pl":[{"scroll-pl":d()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","T","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-T":[{"touch-pan":["T","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",l]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[A,N,J]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-T"],overscroll:["overscroll-x","overscroll-T"],inset:["inset-x","inset-T","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-T":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-T"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-T"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-T":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-T":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-T","touch-pz"],"touch-x":["touch"],"touch-T":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var xe=De(lr);function h(...e){return xe((0,we.clsx)(e))}var T=require("react/jsx-runtime"),Q=E.forwardRef(({className:e,...r},t)=>(0,T.jsx)("div",{ref:t,className:h("rounded-xl border bg-card text-card-foreground shadow",e),...r}));Q.displayName="Card";var Y=E.forwardRef(({className:e,...r},t)=>(0,T.jsx)("div",{ref:t,className:h("flex flex-col space-T-1.5 p-6",e),...r}));Y.displayName="CardHeader";var ee=E.forwardRef(({className:e,...r},t)=>(0,T.jsx)("div",{ref:t,className:h("font-semibold leading-none tracking-tight",e),...r}));ee.displayName="CardTitle";var cr=E.forwardRef(({className:e,...r},t)=>(0,T.jsx)("div",{ref:t,className:h("text-sm text-muted-foreground",e),...r}));cr.displayName="CardDescription";var re=E.forwardRef(({className:e,...r},t)=>(0,T.jsx)("div",{ref:t,className:h("p-6 pt-0",e),...r}));re.displayName="CardContent";var dr=E.forwardRef(({className:e,...r},t)=>(0,T.jsx)("div",{ref:t,className:h("flex items-center p-6 pt-0",e),...r}));dr.displayName="CardFooter";var j=Z(require("react")),M=Z(require("@radix-ui/react-avatar"));var te=j.forwardRef(({className:e,...r},t)=>(0,T.jsx)(M.Root,{ref:t,className:h("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...r}));te.displayName=M.Root.displayName;var oe=j.forwardRef(({className:e,...r},t)=>(0,T.jsx)(M.Image,{ref:t,className:h("aspect-square h-full w-full",e),...r}));oe.displayName=M.Image.displayName;var ne=j.forwardRef(({className:e,...r},t)=>(0,T.jsx)(M.Fallback,{ref:t,className:h("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...r}));ne.displayName=M.Fallback.displayName;var Ce=require("class-variance-authority");var pr=(0,Ce.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 hover:bg-primary/80",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 Re({className:e,variant:r,...t}){return(0,T.jsx)("div",{className:h(pr({variant:r}),e),...t})}function ur({eventType:e="birthday",date:r="",title:t="",description:o="",avatarSrc:a}){let n=i=>{switch(i){case"birthday":return"from-brand-one-500 to-brand-one-800";case"workAnniversary":return"from-brand-two-500 to-brand-two-700";case"companyEvent":return"from-brand-two-300 to-brand-two-700";default:return"from-gray-500 to-slate-500"}};return(0,T.jsxs)(Q,{className:`w-full max-w-md overflow-hidden bg-gradient-to-br ${n(e)}`,children:[(0,T.jsxs)(Y,{className:"flex flex-row items-center gap-3 text-white",children:[a&&(0,T.jsxs)(te,{className:"h-14 w-14 border-2 border-white",children:[(0,T.jsx)(oe,{src:a,alt:t||"Event"}),(0,T.jsx)(ne,{className:"bg-white text-gray-900",children:t?t.charAt(0).toUpperCase():"?"})]}),(0,T.jsxs)("div",{className:"flex flex-col",children:[(0,T.jsx)(ee,{className:"text-xl",children:t||"Untitled Event"}),(0,T.jsx)("p",{className:"text-sm text-white/80",children:r?new Date(r).toLocaleDateString():"Date not specified"})]})]}),(0,T.jsxs)(re,{className:"bg-white bg-opacity-80 p-4",children:[o&&(0,T.jsx)("p",{className:"mb-2 text-sm text-gray-700",children:o}),(0,T.jsx)(Re,{variant:"secondary",className:`bg-gradient-to-br ${n(e)} text-white/80`,children:(0,T.jsx)("span",{className:"ml-1",children:e?e.replace(/([a-z])([A-Z])/g,"$1 $2").split(" ").map(i=>i.charAt(0).toUpperCase()+i.slice(1)).join(" "):"Event"})})]})]})}0&&(module.exports={EventCard});
@@ -1 +1 @@
1
- import{a}from"../../chunk-VSTSYVKB.mjs";import"../../chunk-IYOWTF4E.mjs";import"../../chunk-NQ4FAZ5U.mjs";import"../../chunk-MA5FR2EM.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-US547EKQ.mjs";export{a as EventCard};
1
+ import{a}from"../../chunk-GVX5FTMW.mjs";import"../../chunk-IYOWTF4E.mjs";import"../../chunk-NQ4FAZ5U.mjs";import"../../chunk-MA5FR2EM.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-US547EKQ.mjs";export{a as EventCard};
@@ -1 +1 @@
1
- "use strict";var Ne=Object.create;var j=Object.defineProperty;var Pe=Object.getOwnPropertyDescriptor;var Ee=Object.getOwnPropertyNames;var Se=Object.getPrototypeOf,Te=Object.prototype.hasOwnProperty;var ze=(e,t)=>{for(var r in t)j(e,r,{get:t[r],enumerable:!0})},me=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Ee(t))!Te.call(e,s)&&s!==r&&j(e,s,{get:()=>t[s],enumerable:!(o=Pe(t,s))||o.enumerable});return e};var Z=(e,t,r)=>(r=e!=null?Ne(Se(e)):{},me(t||!e||!e.__esModule?j(r,"default",{value:e,enumerable:!0}):r,e)),Le=e=>me(j({},"__esModule",{value:!0}),e);var xt={};ze(xt,{Birthday:()=>bt,CompanyEvent:()=>ht,MinimalInfo:()=>vt,NoAvatar:()=>yt,WorkAnniversary:()=>gt,default:()=>ft});module.exports=Le(xt);var T=Z(require("react"));var Ce=require("clsx");var Y="-",Ie=e=>{let t=He(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{let n=i.split(Y);return n[0]===""&&n.length!==1&&n.shift(),ge(n,t)||Ge(i)},getConflictingClassGroupIds:(i,n)=>{let u=r[i]||[];return n&&o[i]?[...u,...o[i]]:u}}},ge=(e,t)=>{var i;if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),s=o?ge(e.slice(1),o):void 0;if(s)return s;if(t.validators.length===0)return;let a=e.join(Y);return(i=t.validators.find(({validator:n})=>n(a)))==null?void 0:i.classGroupId},fe=/^\[(.+)\]$/,Ge=e=>{if(fe.test(e)){let t=fe.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},He=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return We(Object.entries(e.classGroups),r).forEach(([a,i])=>{X(i,o,a,t)}),o},X=(e,t,r,o)=>{e.forEach(s=>{if(typeof s=="string"){let a=s===""?t:be(t,s);a.classGroupId=r;return}if(typeof s=="function"){if(Ve(s)){X(s(o),t,r,o);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([a,i])=>{X(i,be(t,a),r,o)})})},be=(e,t)=>{let r=e;return t.split(Y).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},Ve=e=>e.isThemeGetter,We=(e,t)=>t?e.map(([r,o])=>{let s=o.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([i,n])=>[t+i,n])):a);return[r,s]}):e,Be=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,s=(a,i)=>{r.set(a,i),t++,t>e&&(t=0,o=r,r=new Map)};return{get(a){let i=r.get(a);if(i!==void 0)return i;if((i=o.get(a))!==void 0)return s(a,i),i},set(a,i){r.has(a)?r.set(a,i):s(a,i)}}},he="!",Fe=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,s=t[0],a=t.length,i=n=>{let u=[],b=0,h=0,x;for(let p=0;p<n.length;p++){let g=n[p];if(b===0){if(g===s&&(o||n.slice(p,p+a)===t)){u.push(n.slice(h,p)),h=p+a;continue}if(g==="/"){x=p;continue}}g==="["?b++:g==="]"&&b--}let w=u.length===0?n:n.substring(h),k=w.startsWith(he),C=k?w.substring(1):w,f=x&&x>h?x-h:void 0;return{modifiers:u,hasImportantModifier:k,baseClassName:C,maybePostfixModifierPosition:f}};return r?n=>r({className:n,parseClassName:i}):i},_e=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t},je=e=>({cache:Be(e.cacheSize),parseClassName:Fe(e),...Ie(e)}),De=/\s+/,$e=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:s}=t,a=[],i=e.trim().split(De),n="";for(let u=i.length-1;u>=0;u-=1){let b=i[u],{modifiers:h,hasImportantModifier:x,baseClassName:w,maybePostfixModifierPosition:k}=r(b),C=!!k,f=o(C?w.substring(0,k):w);if(!f){if(!C){n=b+(n.length>0?" "+n:n);continue}if(f=o(w),!f){n=b+(n.length>0?" "+n:n);continue}C=!1}let p=_e(h).join(":"),g=x?p+he:p,v=g+f;if(a.includes(v))continue;a.push(v);let G=s(f,C);for(let S=0;S<G.length;++S){let B=G[S];a.push(g+B)}n=b+(n.length>0?" "+n:n)}return n};function Ue(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=ye(t))&&(o&&(o+=" "),o+=r);return o}var ye=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=ye(e[o]))&&(r&&(r+=" "),r+=t);return r};function Je(e,...t){let r,o,s,a=i;function i(u){let b=t.reduce((h,x)=>x(h),e());return r=je(b),o=r.cache.get,s=r.cache.set,a=n,n(u)}function n(u){let b=o(u);if(b)return b;let h=$e(u,r);return s(u,h),h}return function(){return a(Ue.apply(null,arguments))}}var c=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},ve=/^\[(?:([a-z-]+):)?(.+)\]$/i,Oe=/^\d+\/\d+$/,qe=new Set(["px","full","screen"]),Ze=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ke=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Xe=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ye=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Qe=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,R=e=>L(e)||qe.has(e)||Oe.test(e),P=e=>I(e,"length",it),L=e=>!!e&&!Number.isNaN(Number(e)),K=e=>I(e,"number",L),V=e=>!!e&&Number.isInteger(Number(e)),et=e=>e.endsWith("%")&&L(e.slice(0,-1)),l=e=>ve.test(e),E=e=>Ze.test(e),tt=new Set(["length","size","percentage"]),rt=e=>I(e,tt,xe),ot=e=>I(e,"position",xe),nt=new Set(["image","url"]),at=e=>I(e,nt,ct),st=e=>I(e,"",lt),W=()=>!0,I=(e,t,r)=>{let o=ve.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},it=e=>Ke.test(e)&&!Xe.test(e),xe=()=>!1,lt=e=>Ye.test(e),ct=e=>Qe.test(e);var dt=()=>{let e=c("colors"),t=c("spacing"),r=c("blur"),o=c("brightness"),s=c("borderColor"),a=c("borderRadius"),i=c("borderSpacing"),n=c("borderWidth"),u=c("contrast"),b=c("grayscale"),h=c("hueRotate"),x=c("invert"),w=c("gap"),k=c("gradientColorStops"),C=c("gradientColorStopPositions"),f=c("inset"),p=c("margin"),g=c("opacity"),v=c("padding"),G=c("saturate"),S=c("scale"),B=c("sepia"),se=c("skew"),ie=c("space"),le=c("translate"),U=()=>["auto","contain","none"],J=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto",l,t],d=()=>[l,t],ce=()=>["",R,P],F=()=>["auto",L,l],de=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],_=()=>["solid","dashed","dotted","double","none"],pe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],q=()=>["start","end","center","between","around","evenly","stretch"],H=()=>["","0",l],ue=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>[L,l];return{cacheSize:500,separator:":",theme:{colors:[W],spacing:[R,P],blur:["none","",E,l],brightness:A(),borderColor:[e],borderRadius:["none","","full",E,l],borderSpacing:d(),borderWidth:ce(),contrast:A(),grayscale:H(),hueRotate:A(),invert:H(),gap:d(),gradientColorStops:[e],gradientColorStopPositions:[et,P],inset:O(),margin:O(),opacity:A(),padding:d(),saturate:A(),scale:A(),sepia:H(),skew:A(),space:d(),translate:d()},classGroups:{aspect:[{aspect:["auto","square","video",l]}],container:["container"],columns:[{columns:[E]}],"break-after":[{"break-after":ue()}],"break-before":[{"break-before":ue()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...de(),l]}],overflow:[{overflow:J()}],"overflow-x":[{"overflow-x":J()}],"overflow-y":[{"overflow-y":J()}],overscroll:[{overscroll:U()}],"overscroll-x":[{"overscroll-x":U()}],"overscroll-y":[{"overscroll-y":U()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[f]}],"inset-y":[{"inset-y":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",V,l]}],basis:[{basis:O()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",l]}],grow:[{grow:H()}],shrink:[{shrink:H()}],order:[{order:["first","last","none",V,l]}],"grid-cols":[{"grid-cols":[W]}],"col-start-end":[{col:["auto",{span:["full",V,l]},l]}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":[W]}],"row-start-end":[{row:["auto",{span:[V,l]},l]}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",l]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",l]}],gap:[{gap:[w]}],"gap-x":[{"gap-x":[w]}],"gap-y":[{"gap-y":[w]}],"justify-content":[{justify:["normal",...q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...q(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],z:[{z:[p]}],mx:[{mx:[p]}],my:[{my:[p]}],ms:[{ms:[p]}],me:[{me:[p]}],mt:[{mt:[p]}],mr:[{mr:[p]}],mb:[{mb:[p]}],ml:[{ml:[p]}],"space-x":[{"space-x":[ie]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ie]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",l,t]}],"min-w":[{"min-w":[l,t,"min","max","fit"]}],"max-w":[{"max-w":[l,t,"none","full","min","max","fit","prose",{screen:[E]},E]}],h:[{h:[l,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[l,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[l,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[l,t,"auto","min","max","fit"]}],"font-size":[{text:["base",E,P]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",K]}],"font-family":[{font:[W]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",l]}],"line-clamp":[{"line-clamp":["none",L,K]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",R,l]}],"list-image":[{"list-image":["none",l]}],"list-style-type":[{list:["none","disc","decimal",l]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[..._(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",R,P]}],"underline-offset":[{"underline-offset":["auto",R,l]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:d()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",l]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",l]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...de(),ot]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",rt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},at]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[k]}],"gradient-via":[{via:[k]}],"gradient-to":[{to:[k]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[n]}],"border-w-x":[{"border-x":[n]}],"border-w-y":[{"border-y":[n]}],"border-w-s":[{"border-s":[n]}],"border-w-e":[{"border-e":[n]}],"border-w-t":[{"border-t":[n]}],"border-w-r":[{"border-r":[n]}],"border-w-b":[{"border-b":[n]}],"border-w-l":[{"border-l":[n]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[..._(),"hidden"]}],"divide-x":[{"divide-x":[n]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[n]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:_()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",..._()]}],"outline-offset":[{"outline-offset":[R,l]}],"outline-w":[{outline:[R,P]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ce()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[R,P]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",E,st]}],"shadow-color":[{shadow:[W]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...pe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":pe()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",E,l]}],grayscale:[{grayscale:[b]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[x]}],saturate:[{saturate:[G]}],sepia:[{sepia:[B]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[b]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[x]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[G]}],"backdrop-sepia":[{"backdrop-sepia":[B]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",l]}],duration:[{duration:A()}],ease:[{ease:["linear","in","out","in-out",l]}],delay:[{delay:A()}],animate:[{animate:["none","spin","ping","pulse","bounce",l]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[V,l]}],"translate-x":[{"translate-x":[le]}],"translate-y":[{"translate-y":[le]}],"skew-x":[{"skew-x":[se]}],"skew-y":[{"skew-y":[se]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",l]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",l]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-z":[{"scroll-z":d()}],"scroll-mx":[{"scroll-mx":d()}],"scroll-my":[{"scroll-my":d()}],"scroll-ms":[{"scroll-ms":d()}],"scroll-me":[{"scroll-me":d()}],"scroll-mt":[{"scroll-mt":d()}],"scroll-mr":[{"scroll-mr":d()}],"scroll-mb":[{"scroll-mb":d()}],"scroll-ml":[{"scroll-ml":d()}],"scroll-p":[{"scroll-p":d()}],"scroll-px":[{"scroll-px":d()}],"scroll-py":[{"scroll-py":d()}],"scroll-ps":[{"scroll-ps":d()}],"scroll-pe":[{"scroll-pe":d()}],"scroll-pt":[{"scroll-pt":d()}],"scroll-pr":[{"scroll-pr":d()}],"scroll-pb":[{"scroll-pb":d()}],"scroll-pl":[{"scroll-pl":d()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",l]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[R,P,K]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],z:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-z":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var we=Je(dt);function y(...e){return we((0,Ce.clsx)(e))}var z=require("react/jsx-runtime"),Q=T.forwardRef(({className:e,...t},r)=>(0,z.jsx)("div",{ref:r,className:y("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Q.displayName="Card";var ee=T.forwardRef(({className:e,...t},r)=>(0,z.jsx)("div",{ref:r,className:y("flex flex-col space-y-1.5 p-6",e),...t}));ee.displayName="CardHeader";var te=T.forwardRef(({className:e,...t},r)=>(0,z.jsx)("div",{ref:r,className:y("font-semibold leading-none tracking-tight",e),...t}));te.displayName="CardTitle";var pt=T.forwardRef(({className:e,...t},r)=>(0,z.jsx)("div",{ref:r,className:y("text-sm text-muted-foreground",e),...t}));pt.displayName="CardDescription";var re=T.forwardRef(({className:e,...t},r)=>(0,z.jsx)("div",{ref:r,className:y("p-6 pt-0",e),...t}));re.displayName="CardContent";var ut=T.forwardRef(({className:e,...t},r)=>(0,z.jsx)("div",{ref:r,className:y("flex items-center p-6 pt-0",e),...t}));ut.displayName="CardFooter";var D=Z(require("react")),M=Z(require("@radix-ui/react-avatar"));var oe=D.forwardRef(({className:e,...t},r)=>(0,$.jsx)(M.Root,{ref:r,className:y("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));oe.displayName=M.Root.displayName;var ne=D.forwardRef(({className:e,...t},r)=>(0,$.jsx)(M.Image,{ref:r,className:y("aspect-square h-full w-full",e),...t}));ne.displayName=M.Image.displayName;var ae=D.forwardRef(({className:e,...t},r)=>(0,$.jsx)(M.Fallback,{ref:r,className:y("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));ae.displayName=M.Fallback.displayName;var ke=require("class-variance-authority");var mt=(0,ke.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 hover:bg-primary/80",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 Ae({className:e,variant:t,...r}){return(0,z.jsx)("div",{className:y(mt({variant:t}),e),...r})}var N=require("lucide-react");function Me({eventType:e="birthday",date:t="",title:r="",description:o="",avatarSrc:s}){let a=n=>{switch(n){case"birthday":return(0,z.jsx)(N.Cake,{className:"h-4 w-4"});case"workAnniversary":return(0,z.jsx)(N.Award,{className:"h-4 w-4"});case"companyEvent":return(0,z.jsx)(N.PartyPopper,{className:"h-4 w-4"});default:return(0,z.jsx)(N.CalendarDays,{className:"h-4 w-4"})}},i=n=>{switch(n){case"birthday":return"from-brand-one-500 to-brand-one-800";case"workAnniversary":return"from-brand-two-500 to-brand-two-700";case"companyEvent":return"from-brand-two-300 to-brand-two-700";default:return"from-gray-500 to-slate-500"}};return(0,z.jsxs)(Q,{className:`w-full max-w-md overflow-hidden bg-gradient-to-br ${i(e)}`,children:[(0,z.jsxs)(ee,{className:"flex flex-row items-center gap-3 text-white",children:[s&&(0,z.jsxs)(oe,{className:"h-14 w-14 border-2 border-white",children:[(0,z.jsx)(ne,{src:s,alt:r||"Event"}),(0,z.jsx)(ae,{className:"bg-white text-gray-900",children:r?r.charAt(0).toUpperCase():"?"})]}),(0,z.jsxs)("div",{className:"flex flex-col",children:[(0,z.jsx)(te,{className:"text-xl",children:r||"Untitled Event"}),(0,z.jsxs)("p",{className:"text-sm text-white/80",children:[(0,z.jsx)(N.CalendarDays,{className:"mr-1 inline-block h-4 w-4"}),t?new Date(t).toLocaleDateString():"Date not specified"]})]})]}),(0,z.jsxs)(re,{className:"bg-white bg-opacity-80 p-4",children:[o&&(0,z.jsx)("p",{className:"mb-2 text-sm text-gray-700",children:o}),(0,z.jsxs)(Ae,{variant:"secondary",className:`bg-gradient-to-br ${i(e)} text-white/80`,children:[a(e),(0,z.jsx)("span",{className:"ml-1",children:e?e.replace(/([a-z])([A-Z])/g,"$1 $2").split(" ").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join(" "):"Event"})]})]})]})}var ft={title:"Cards/EventCard",component:Me,tags:["autodocs"],argTypes:{type:{control:"select",options:["birthday","work_anniversary","company_event"]},date:{control:"date"},title:{control:"text"},description:{control:"text"},avatarSrc:{control:"text"}}},bt={args:{eventType:"birthday",date:"2023-06-15",title:"John Doe's Birthday",description:"Wish John a happy birthday!",avatarSrc:"https://i.pravatar.cc/150?img=1"}},gt={args:{eventType:"workAnniversary",date:"2023-07-01",title:"Jane Smith's 5 Year Anniversary",description:"Congratulate Jane on 5 years with the company!",avatarSrc:"https://i.pravatar.cc/150?img=2"}},ht={args:{eventType:"companyEvent",date:"2023-08-10",title:"Summer Company Picnic",description:"Join us for food, games, and fun at the annual summer picnic!",avatarSrc:"https://i.pravatar.cc/150?img=3"}},yt={args:{eventType:"birthday",date:"2023-09-22",title:"Alex Johnson's Birthday",description:"Let's celebrate Alex's special day!"}},vt={args:{eventType:"companyEvent",date:"2023-10-31",title:"Halloween Party"}};0&&(module.exports={Birthday,CompanyEvent,MinimalInfo,NoAvatar,WorkAnniversary});
1
+ "use strict";var Me=Object.create;var _=Object.defineProperty;var Se=Object.getOwnPropertyDescriptor;var Ne=Object.getOwnPropertyNames;var Pe=Object.getPrototypeOf,Ee=Object.prototype.hasOwnProperty;var Te=(e,t)=>{for(var r in t)_(e,r,{get:t[r],enumerable:!0})},ue=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Ne(t))!Ee.call(e,s)&&s!==r&&_(e,s,{get:()=>t[s],enumerable:!(o=Se(t,s))||o.enumerable});return e};var q=(e,t,r)=>(r=e!=null?Me(Pe(e)):{},ue(t||!e||!e.__esModule?_(r,"default",{value:e,enumerable:!0}):r,e)),ze=e=>ue(_({},"__esModule",{value:!0}),e);var vt={};Te(vt,{Birthday:()=>ft,CompanyEvent:()=>gt,MinimalInfo:()=>yt,NoAvatar:()=>ht,WorkAnniversary:()=>bt,default:()=>mt});module.exports=ze(vt);var E=q(require("react"));var we=require("clsx");var X="-",Le=e=>{let t=Ge(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{let a=i.split(X);return a[0]===""&&a.length!==1&&a.shift(),be(a,t)||Ie(i)},getConflictingClassGroupIds:(i,a)=>{let u=r[i]||[];return a&&o[i]?[...u,...o[i]]:u}}},be=(e,t)=>{var i;if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),s=o?be(e.slice(1),o):void 0;if(s)return s;if(t.validators.length===0)return;let n=e.join(X);return(i=t.validators.find(({validator:a})=>a(n)))==null?void 0:i.classGroupId},me=/^\[(.+)\]$/,Ie=e=>{if(me.test(e)){let t=me.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Ge=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return Ve(Object.entries(e.classGroups),r).forEach(([n,i])=>{K(i,o,n,t)}),o},K=(e,t,r,o)=>{e.forEach(s=>{if(typeof s=="string"){let n=s===""?t:fe(t,s);n.classGroupId=r;return}if(typeof s=="function"){if(He(s)){K(s(o),t,r,o);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([n,i])=>{K(i,fe(t,n),r,o)})})},fe=(e,t)=>{let r=e;return t.split(X).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},He=e=>e.isThemeGetter,Ve=(e,t)=>t?e.map(([r,o])=>{let s=o.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([i,a])=>[t+i,a])):n);return[r,s]}):e,We=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,s=(n,i)=>{r.set(n,i),t++,t>e&&(t=0,o=r,r=new Map)};return{get(n){let i=r.get(n);if(i!==void 0)return i;if((i=o.get(n))!==void 0)return s(n,i),i},set(n,i){r.has(n)?r.set(n,i):s(n,i)}}},ge="!",Be=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,s=t[0],n=t.length,i=a=>{let u=[],f=0,g=0,x;for(let p=0;p<a.length;p++){let b=a[p];if(f===0){if(b===s&&(o||a.slice(p,p+n)===t)){u.push(a.slice(g,p)),g=p+n;continue}if(b==="/"){x=p;continue}}b==="["?f++:b==="]"&&f--}let w=u.length===0?a:a.substring(g),k=w.startsWith(ge),C=k?w.substring(1):w,m=x&&x>g?x-g:void 0;return{modifiers:u,hasImportantModifier:k,baseClassName:C,maybePostfixModifierPosition:m}};return r?a=>r({className:a,parseClassName:i}):i},Fe=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t},_e=e=>({cache:We(e.cacheSize),parseClassName:Be(e),...Le(e)}),je=/\s+/,De=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:s}=t,n=[],i=e.trim().split(je),a="";for(let u=i.length-1;u>=0;u-=1){let f=i[u],{modifiers:g,hasImportantModifier:x,baseClassName:w,maybePostfixModifierPosition:k}=r(f),C=!!k,m=o(C?w.substring(0,k):w);if(!m){if(!C){a=f+(a.length>0?" "+a:a);continue}if(m=o(w),!m){a=f+(a.length>0?" "+a:a);continue}C=!1}let p=Fe(g).join(":"),b=x?p+ge:p,v=b+m;if(n.includes(v))continue;n.push(v);let I=s(m,C);for(let P=0;P<I.length;++P){let W=I[P];n.push(b+W)}a=f+(a.length>0?" "+a:a)}return a};function $e(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=he(t))&&(o&&(o+=" "),o+=r);return o}var he=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=he(e[o]))&&(r&&(r+=" "),r+=t);return r};function Ue(e,...t){let r,o,s,n=i;function i(u){let f=t.reduce((g,x)=>x(g),e());return r=_e(f),o=r.cache.get,s=r.cache.set,n=a,a(u)}function a(u){let f=o(u);if(f)return f;let g=De(u,r);return s(u,g),g}return function(){return n($e.apply(null,arguments))}}var c=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},ye=/^\[(?:([a-z-]+):)?(.+)\]$/i,Je=/^\d+\/\d+$/,Oe=new Set(["px","full","screen"]),qe=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ze=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ke=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Xe=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ye=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,R=e=>z(e)||Oe.has(e)||Je.test(e),S=e=>L(e,"length",st),z=e=>!!e&&!Number.isNaN(Number(e)),Z=e=>L(e,"number",z),H=e=>!!e&&Number.isInteger(Number(e)),Qe=e=>e.endsWith("%")&&z(e.slice(0,-1)),l=e=>ye.test(e),N=e=>qe.test(e),et=new Set(["length","size","percentage"]),tt=e=>L(e,et,ve),rt=e=>L(e,"position",ve),ot=new Set(["image","url"]),nt=e=>L(e,ot,lt),at=e=>L(e,"",it),V=()=>!0,L=(e,t,r)=>{let o=ye.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},st=e=>Ze.test(e)&&!Ke.test(e),ve=()=>!1,it=e=>Xe.test(e),lt=e=>Ye.test(e);var ct=()=>{let e=c("colors"),t=c("spacing"),r=c("blur"),o=c("brightness"),s=c("borderColor"),n=c("borderRadius"),i=c("borderSpacing"),a=c("borderWidth"),u=c("contrast"),f=c("grayscale"),g=c("hueRotate"),x=c("invert"),w=c("gap"),k=c("gradientColorStops"),C=c("gradientColorStopPositions"),m=c("inset"),p=c("margin"),b=c("opacity"),v=c("padding"),I=c("saturate"),P=c("scale"),W=c("sepia"),ae=c("skew"),se=c("space"),ie=c("translate"),$=()=>["auto","contain","none"],U=()=>["auto","hidden","clip","visible","scroll"],J=()=>["auto",l,t],d=()=>[l,t],le=()=>["",R,S],B=()=>["auto",z,l],ce=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],F=()=>["solid","dashed","dotted","double","none"],de=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],O=()=>["start","end","center","between","around","evenly","stretch"],G=()=>["","0",l],pe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>[z,l];return{cacheSize:500,separator:":",theme:{colors:[V],spacing:[R,S],blur:["none","",N,l],brightness:A(),borderColor:[e],borderRadius:["none","","full",N,l],borderSpacing:d(),borderWidth:le(),contrast:A(),grayscale:G(),hueRotate:A(),invert:G(),gap:d(),gradientColorStops:[e],gradientColorStopPositions:[Qe,S],inset:J(),margin:J(),opacity:A(),padding:d(),saturate:A(),scale:A(),sepia:G(),skew:A(),space:d(),translate:d()},classGroups:{aspect:[{aspect:["auto","square","video",l]}],container:["container"],columns:[{columns:[N]}],"break-after":[{"break-after":pe()}],"break-before":[{"break-before":pe()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...ce(),l]}],overflow:[{overflow:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-T":[{"overflow-T":U()}],overscroll:[{overscroll:$()}],"overscroll-x":[{"overscroll-x":$()}],"overscroll-T":[{"overscroll-T":$()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-T":[{"inset-T":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",H,l]}],basis:[{basis:J()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",l]}],grow:[{grow:G()}],shrink:[{shrink:G()}],order:[{order:["first","last","none",H,l]}],"grid-cols":[{"grid-cols":[V]}],"col-start-end":[{col:["auto",{span:["full",H,l]},l]}],"col-start":[{"col-start":B()}],"col-end":[{"col-end":B()}],"grid-rows":[{"grid-rows":[V]}],"row-start-end":[{row:["auto",{span:[H,l]},l]}],"row-start":[{"row-start":B()}],"row-end":[{"row-end":B()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",l]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",l]}],gap:[{gap:[w]}],"gap-x":[{"gap-x":[w]}],"gap-T":[{"gap-T":[w]}],"justify-content":[{justify:["normal",...O()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...O(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...O(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[p]}],mx:[{mx:[p]}],my:[{my:[p]}],ms:[{ms:[p]}],me:[{me:[p]}],mt:[{mt:[p]}],mr:[{mr:[p]}],mb:[{mb:[p]}],ml:[{ml:[p]}],"space-x":[{"space-x":[se]}],"space-x-reverse":["space-x-reverse"],"space-T":[{"space-T":[se]}],"space-T-reverse":["space-T-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",l,t]}],"min-w":[{"min-w":[l,t,"min","max","fit"]}],"max-w":[{"max-w":[l,t,"none","full","min","max","fit","prose",{screen:[N]},N]}],h:[{h:[l,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[l,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[l,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[l,t,"auto","min","max","fit"]}],"font-size":[{text:["base",N,S]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Z]}],"font-family":[{font:[V]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",l]}],"line-clamp":[{"line-clamp":["none",z,Z]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",R,l]}],"list-image":[{"list-image":["none",l]}],"list-style-type":[{list:["none","disc","decimal",l]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...F(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",R,S]}],"underline-offset":[{"underline-offset":["auto",R,l]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:d()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",l]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",l]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ce(),rt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","T","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",tt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},nt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[k]}],"gradient-via":[{via:[k]}],"gradient-to":[{to:[k]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-T":[{"border-T":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[...F(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-T":[{"divide-T":[a]}],"divide-T-reverse":["divide-T-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:F()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-T":[{"border-T":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...F()]}],"outline-offset":[{"outline-offset":[R,l]}],"outline-w":[{outline:[R,S]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:le()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[R,S]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",N,at]}],"shadow-color":[{shadow:[V]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":[...de(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":de()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",N,l]}],grayscale:[{grayscale:[f]}],"hue-rotate":[{"hue-rotate":[g]}],invert:[{invert:[x]}],saturate:[{saturate:[I]}],sepia:[{sepia:[W]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[f]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[g]}],"backdrop-invert":[{"backdrop-invert":[x]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[I]}],"backdrop-sepia":[{"backdrop-sepia":[W]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-T":[{"border-spacing-T":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",l]}],duration:[{duration:A()}],ease:[{ease:["linear","in","out","in-out",l]}],delay:[{delay:A()}],animate:[{animate:["none","spin","ping","pulse","bounce",l]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[P]}],"scale-x":[{"scale-x":[P]}],"scale-T":[{"scale-T":[P]}],rotate:[{rotate:[H,l]}],"translate-x":[{"translate-x":[ie]}],"translate-T":[{"translate-T":[ie]}],"skew-x":[{"skew-x":[ae]}],"skew-T":[{"skew-T":[ae]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",l]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",l]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","T","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":d()}],"scroll-mx":[{"scroll-mx":d()}],"scroll-my":[{"scroll-my":d()}],"scroll-ms":[{"scroll-ms":d()}],"scroll-me":[{"scroll-me":d()}],"scroll-mt":[{"scroll-mt":d()}],"scroll-mr":[{"scroll-mr":d()}],"scroll-mb":[{"scroll-mb":d()}],"scroll-ml":[{"scroll-ml":d()}],"scroll-p":[{"scroll-p":d()}],"scroll-px":[{"scroll-px":d()}],"scroll-py":[{"scroll-py":d()}],"scroll-ps":[{"scroll-ps":d()}],"scroll-pe":[{"scroll-pe":d()}],"scroll-pt":[{"scroll-pt":d()}],"scroll-pr":[{"scroll-pr":d()}],"scroll-pb":[{"scroll-pb":d()}],"scroll-pl":[{"scroll-pl":d()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","T","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-T":[{"touch-pan":["T","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",l]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[R,S,Z]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-T"],overscroll:["overscroll-x","overscroll-T"],inset:["inset-x","inset-T","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-T":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-T"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-T"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-T":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-T":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-T","touch-pz"],"touch-x":["touch"],"touch-T":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var xe=Ue(ct);function h(...e){return xe((0,we.clsx)(e))}var T=require("react/jsx-runtime"),Y=E.forwardRef(({className:e,...t},r)=>(0,T.jsx)("div",{ref:r,className:h("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Y.displayName="Card";var Q=E.forwardRef(({className:e,...t},r)=>(0,T.jsx)("div",{ref:r,className:h("flex flex-col space-T-1.5 p-6",e),...t}));Q.displayName="CardHeader";var ee=E.forwardRef(({className:e,...t},r)=>(0,T.jsx)("div",{ref:r,className:h("font-semibold leading-none tracking-tight",e),...t}));ee.displayName="CardTitle";var dt=E.forwardRef(({className:e,...t},r)=>(0,T.jsx)("div",{ref:r,className:h("text-sm text-muted-foreground",e),...t}));dt.displayName="CardDescription";var te=E.forwardRef(({className:e,...t},r)=>(0,T.jsx)("div",{ref:r,className:h("p-6 pt-0",e),...t}));te.displayName="CardContent";var pt=E.forwardRef(({className:e,...t},r)=>(0,T.jsx)("div",{ref:r,className:h("flex items-center p-6 pt-0",e),...t}));pt.displayName="CardFooter";var j=q(require("react")),M=q(require("@radix-ui/react-avatar"));var re=j.forwardRef(({className:e,...t},r)=>(0,T.jsx)(M.Root,{ref:r,className:h("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));re.displayName=M.Root.displayName;var oe=j.forwardRef(({className:e,...t},r)=>(0,T.jsx)(M.Image,{ref:r,className:h("aspect-square h-full w-full",e),...t}));oe.displayName=M.Image.displayName;var ne=j.forwardRef(({className:e,...t},r)=>(0,T.jsx)(M.Fallback,{ref:r,className:h("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));ne.displayName=M.Fallback.displayName;var Ce=require("class-variance-authority");var ut=(0,Ce.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 hover:bg-primary/80",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 ke({className:e,variant:t,...r}){return(0,T.jsx)("div",{className:h(ut({variant:t}),e),...r})}function Re({eventType:e="birthday",date:t="",title:r="",description:o="",avatarSrc:s}){let n=i=>{switch(i){case"birthday":return"from-brand-one-500 to-brand-one-800";case"workAnniversary":return"from-brand-two-500 to-brand-two-700";case"companyEvent":return"from-brand-two-300 to-brand-two-700";default:return"from-gray-500 to-slate-500"}};return(0,T.jsxs)(Y,{className:`w-full max-w-md overflow-hidden bg-gradient-to-br ${n(e)}`,children:[(0,T.jsxs)(Q,{className:"flex flex-row items-center gap-3 text-white",children:[s&&(0,T.jsxs)(re,{className:"h-14 w-14 border-2 border-white",children:[(0,T.jsx)(oe,{src:s,alt:r||"Event"}),(0,T.jsx)(ne,{className:"bg-white text-gray-900",children:r?r.charAt(0).toUpperCase():"?"})]}),(0,T.jsxs)("div",{className:"flex flex-col",children:[(0,T.jsx)(ee,{className:"text-xl",children:r||"Untitled Event"}),(0,T.jsx)("p",{className:"text-sm text-white/80",children:t?new Date(t).toLocaleDateString():"Date not specified"})]})]}),(0,T.jsxs)(te,{className:"bg-white bg-opacity-80 p-4",children:[o&&(0,T.jsx)("p",{className:"mb-2 text-sm text-gray-700",children:o}),(0,T.jsx)(ke,{variant:"secondary",className:`bg-gradient-to-br ${n(e)} text-white/80`,children:(0,T.jsx)("span",{className:"ml-1",children:e?e.replace(/([a-z])([A-Z])/g,"$1 $2").split(" ").map(i=>i.charAt(0).toUpperCase()+i.slice(1)).join(" "):"Event"})})]})]})}var mt={title:"Cards/EventCard",component:Re,tags:["autodocs"],argTypes:{type:{control:"select",options:["birthday","work_anniversary","company_event"]},date:{control:"date"},title:{control:"text"},description:{control:"text"},avatarSrc:{control:"text"}}},ft={args:{eventType:"birthday",date:"2023-06-15",title:"John Doe's Birthday",description:"Wish John a happy birthday!",avatarSrc:"https://i.pravatar.cc/150?img=1"}},bt={args:{eventType:"workAnniversary",date:"2023-07-01",title:"Jane Smith's 5 Year Anniversary",description:"Congratulate Jane on 5 years with the company!",avatarSrc:"https://i.pravatar.cc/150?img=2"}},gt={args:{eventType:"companyEvent",date:"2023-08-10",title:"Summer Company Picnic",description:"Join us for food, games, and fun at the annual summer picnic!",avatarSrc:"https://i.pravatar.cc/150?img=3"}},ht={args:{eventType:"birthday",date:"2023-09-22",title:"Alex Johnson's Birthday",description:"Let's celebrate Alex's special day!"}},yt={args:{eventType:"companyEvent",date:"2023-10-31",title:"Halloween Party"}};0&&(module.exports={Birthday,CompanyEvent,MinimalInfo,NoAvatar,WorkAnniversary});
@@ -1 +1 @@
1
- import{a as t}from"../../chunk-VSTSYVKB.mjs";import"../../chunk-IYOWTF4E.mjs";import"../../chunk-NQ4FAZ5U.mjs";import"../../chunk-MA5FR2EM.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-US547EKQ.mjs";var a={title:"Cards/EventCard",component:t,tags:["autodocs"],argTypes:{type:{control:"select",options:["birthday","work_anniversary","company_event"]},date:{control:"date"},title:{control:"text"},description:{control:"text"},avatarSrc:{control:"text"}}},r={args:{eventType:"birthday",date:"2023-06-15",title:"John Doe's Birthday",description:"Wish John a happy birthday!",avatarSrc:"https://i.pravatar.cc/150?img=1"}},o={args:{eventType:"workAnniversary",date:"2023-07-01",title:"Jane Smith's 5 Year Anniversary",description:"Congratulate Jane on 5 years with the company!",avatarSrc:"https://i.pravatar.cc/150?img=2"}},n={args:{eventType:"companyEvent",date:"2023-08-10",title:"Summer Company Picnic",description:"Join us for food, games, and fun at the annual summer picnic!",avatarSrc:"https://i.pravatar.cc/150?img=3"}},i={args:{eventType:"birthday",date:"2023-09-22",title:"Alex Johnson's Birthday",description:"Let's celebrate Alex's special day!"}},s={args:{eventType:"companyEvent",date:"2023-10-31",title:"Halloween Party"}};export{r as Birthday,n as CompanyEvent,s as MinimalInfo,i as NoAvatar,o as WorkAnniversary,a as default};
1
+ import{a as t}from"../../chunk-GVX5FTMW.mjs";import"../../chunk-IYOWTF4E.mjs";import"../../chunk-NQ4FAZ5U.mjs";import"../../chunk-MA5FR2EM.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-US547EKQ.mjs";var a={title:"Cards/EventCard",component:t,tags:["autodocs"],argTypes:{type:{control:"select",options:["birthday","work_anniversary","company_event"]},date:{control:"date"},title:{control:"text"},description:{control:"text"},avatarSrc:{control:"text"}}},r={args:{eventType:"birthday",date:"2023-06-15",title:"John Doe's Birthday",description:"Wish John a happy birthday!",avatarSrc:"https://i.pravatar.cc/150?img=1"}},o={args:{eventType:"workAnniversary",date:"2023-07-01",title:"Jane Smith's 5 Year Anniversary",description:"Congratulate Jane on 5 years with the company!",avatarSrc:"https://i.pravatar.cc/150?img=2"}},n={args:{eventType:"companyEvent",date:"2023-08-10",title:"Summer Company Picnic",description:"Join us for food, games, and fun at the annual summer picnic!",avatarSrc:"https://i.pravatar.cc/150?img=3"}},i={args:{eventType:"birthday",date:"2023-09-22",title:"Alex Johnson's Birthday",description:"Let's celebrate Alex's special day!"}},s={args:{eventType:"companyEvent",date:"2023-10-31",title:"Halloween Party"}};export{r as Birthday,n as CompanyEvent,s as MinimalInfo,i as NoAvatar,o as WorkAnniversary,a as default};
@@ -1 +1 @@
1
- "use strict";var Ge=Object.create;var O=Object.defineProperty;var He=Object.getOwnPropertyDescriptor;var Fe=Object.getOwnPropertyNames;var De=Object.getPrototypeOf,Ve=Object.prototype.hasOwnProperty;var We=(e,r)=>{for(var t in r)O(e,t,{get:r[t],enumerable:!0})},be=(e,r,t,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of Fe(r))!Ve.call(e,a)&&a!==t&&O(e,a,{get:()=>r[a],enumerable:!(o=He(r,a))||o.enumerable});return e};var V=(e,r,t)=>(t=e!=null?Ge(De(e)):{},be(r||!e||!e.__esModule?O(t,"default",{value:e,enumerable:!0}):t,e)),$e=e=>be(O({},"__esModule",{value:!0}),e);var kr={};We(kr,{CustomerCard:()=>Ee,EventCard:()=>Le,FeatureCard:()=>ye});module.exports=$e(kr);var he=require("react/jsx-runtime"),_e=({type:e="solid",iconName:r="cloud",size:t="lg",className:o})=>{let a="fa-"+e+" ",s="fa-"+r,i=o!=null?o:"",n=a+s+" fa-"+t+" "+i;return(0,he.jsx)("i",{className:n})},ee=_e;var ye=({title:e,description:r,iconName:t,iconStyle:o,color:a})=>(0,he.jsxs)("div",{className:`rounded-3xl ${{green:"bg-green-500",blue:"bg-blue-400",navy:"bg-navy-700",red:"bg-red-500",yellow:"bg-yellow-500"}[a]} p-6 flex flex-col items-center text-center`,children:[(0,he.jsx)("div",{className:"w-12 h-12 ",children:(0,he.jsx)(ee,{type:o,iconName:t,className:"w-12 h-12 text-white"})}),(0,he.jsx)("h2",{className:"text-2xl font-bold text-white mb-2",children:e}),(0,he.jsx)("p",{className:"text-white text-sm",children:r})]});var Me=V(require("next/image")),ze=V(require("next/link"));var I=V(require("react"));var Pe=require("clsx");var oe="-",je=e=>{let r=Ue(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{let n=i.split(oe);return n[0]===""&&n.length!==1&&n.shift(),we(n,r)||Be(i)},getConflictingClassGroupIds:(i,n)=>{let u=t[i]||[];return n&&o[i]?[...u,...o[i]]:u}}},we=(e,r)=>{var i;if(e.length===0)return r.classGroupId;let t=e[0],o=r.nextPart.get(t),a=o?we(e.slice(1),o):void 0;if(a)return a;if(r.validators.length===0)return;let s=e.join(oe);return(i=r.validators.find(({validator:n})=>n(s)))==null?void 0:i.classGroupId},xe=/^\[(.+)\]$/,Be=e=>{if(xe.test(e)){let r=xe.exec(e)[1],t=r==null?void 0:r.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}},Ue=e=>{let{theme:r,prefix:t}=e,o={nextPart:new Map,validators:[]};return Oe(Object.entries(e.classGroups),t).forEach(([s,i])=>{te(i,o,s,r)}),o},te=(e,r,t,o)=>{e.forEach(a=>{if(typeof a=="string"){let s=a===""?r:ve(r,a);s.classGroupId=t;return}if(typeof a=="function"){if(qe(a)){te(a(o),r,t,o);return}r.validators.push({validator:a,classGroupId:t});return}Object.entries(a).forEach(([s,i])=>{te(i,ve(r,s),t,o)})})},ve=(e,r)=>{let t=e;return r.split(oe).forEach(o=>{t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o)}),t},qe=e=>e.isThemeGetter,Oe=(e,r)=>r?e.map(([t,o])=>{let a=o.map(s=>typeof s=="string"?r+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,n])=>[r+i,n])):s);return[t,a]}):e,Ze=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=new Map,o=new Map,a=(s,i)=>{t.set(s,i),r++,r>e&&(r=0,o=t,t=new Map)};return{get(s){let i=t.get(s);if(i!==void 0)return i;if((i=o.get(s))!==void 0)return a(s,i),i},set(s,i){t.has(s)?t.set(s,i):a(s,i)}}},Ce="!",Je=e=>{let{separator:r,experimentalParseClassName:t}=e,o=r.length===1,a=r[0],s=r.length,i=n=>{let u=[],g=0,h=0,v;for(let p=0;p<n.length;p++){let b=n[p];if(g===0){if(b===a&&(o||n.slice(p,p+s)===r)){u.push(n.slice(h,p)),h=p+s;continue}if(b==="/"){v=p;continue}}b==="["?g++:b==="]"&&g--}let w=u.length===0?n:n.substring(h),k=w.startsWith(Ce),C=k?w.substring(1):w,f=v&&v>h?v-h:void 0;return{modifiers:u,hasImportantModifier:k,baseClassName:C,maybePostfixModifierPosition:f}};return t?n=>t({className:n,parseClassName:i}):i},Ke=e=>{if(e.length<=1)return e;let r=[],t=[];return e.forEach(o=>{o[0]==="["?(r.push(...t.sort(),o),t=[]):t.push(o)}),r.push(...t.sort()),r},Xe=e=>({cache:Ze(e.cacheSize),parseClassName:Je(e),...je(e)}),Qe=/\s+/,Ye=(e,r)=>{let{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:a}=r,s=[],i=e.trim().split(Qe),n="";for(let u=i.length-1;u>=0;u-=1){let g=i[u],{modifiers:h,hasImportantModifier:v,baseClassName:w,maybePostfixModifierPosition:k}=t(g),C=!!k,f=o(C?w.substring(0,k):w);if(!f){if(!C){n=g+(n.length>0?" "+n:n);continue}if(f=o(w),!f){n=g+(n.length>0?" "+n:n);continue}C=!1}let p=Ke(h).join(":"),b=v?p+Ce:p,x=b+f;if(s.includes(x))continue;s.push(x);let F=a(f,C);for(let T=0;T<F.length;++T){let B=F[T];s.push(b+B)}n=g+(n.length>0?" "+n:n)}return n};function er(){let e=0,r,t,o="";for(;e<arguments.length;)(r=arguments[e++])&&(t=ke(r))&&(o&&(o+=" "),o+=t);return o}var ke=e=>{if(typeof e=="string")return e;let r,t="";for(let o=0;o<e.length;o++)e[o]&&(r=ke(e[o]))&&(t&&(t+=" "),t+=r);return t};function rr(e,...r){let t,o,a,s=i;function i(u){let g=r.reduce((h,v)=>v(h),e());return t=Xe(g),o=t.cache.get,a=t.cache.set,s=n,n(u)}function n(u){let g=o(u);if(g)return g;let h=Ye(u,t);return a(u,h),h}return function(){return s(er.apply(null,arguments))}}var c=e=>{let r=t=>t[e]||[];return r.isThemeGetter=!0,r},Re=/^\[(?:([a-z-]+):)?(.+)\]$/i,tr=/^\d+\/\d+$/,or=new Set(["px","full","screen"]),nr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,sr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ar=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ir=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,lr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,N=e=>G(e)||or.has(e)||tr.test(e),z=e=>H(e,"length",br),G=e=>!!e&&!Number.isNaN(Number(e)),re=e=>H(e,"number",G),W=e=>!!e&&Number.isInteger(Number(e)),cr=e=>e.endsWith("%")&&G(e.slice(0,-1)),l=e=>Re.test(e),E=e=>nr.test(e),dr=new Set(["length","size","percentage"]),pr=e=>H(e,dr,Ne),ur=e=>H(e,"position",Ne),mr=new Set(["image","url"]),fr=e=>H(e,mr,yr),gr=e=>H(e,"",hr),$=()=>!0,H=(e,r,t)=>{let o=Re.exec(e);return o?o[1]?typeof r=="string"?o[1]===r:r.has(o[1]):t(o[2]):!1},br=e=>sr.test(e)&&!ar.test(e),Ne=()=>!1,hr=e=>ir.test(e),yr=e=>lr.test(e);var xr=()=>{let e=c("colors"),r=c("spacing"),t=c("blur"),o=c("brightness"),a=c("borderColor"),s=c("borderRadius"),i=c("borderSpacing"),n=c("borderWidth"),u=c("contrast"),g=c("grayscale"),h=c("hueRotate"),v=c("invert"),w=c("gap"),k=c("gradientColorStops"),C=c("gradientColorStopPositions"),f=c("inset"),p=c("margin"),b=c("opacity"),x=c("padding"),F=c("saturate"),T=c("scale"),B=c("sepia"),ce=c("skew"),de=c("space"),pe=c("translate"),K=()=>["auto","contain","none"],X=()=>["auto","hidden","clip","visible","scroll"],Q=()=>["auto",l,r],d=()=>[l,r],ue=()=>["",N,z],U=()=>["auto",G,l],me=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],q=()=>["solid","dashed","dotted","double","none"],fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Y=()=>["start","end","center","between","around","evenly","stretch"],D=()=>["","0",l],ge=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>[G,l];return{cacheSize:500,separator:":",theme:{colors:[$],spacing:[N,z],blur:["none","",E,l],brightness:R(),borderColor:[e],borderRadius:["none","","full",E,l],borderSpacing:d(),borderWidth:ue(),contrast:R(),grayscale:D(),hueRotate:R(),invert:D(),gap:d(),gradientColorStops:[e],gradientColorStopPositions:[cr,z],inset:Q(),margin:Q(),opacity:R(),padding:d(),saturate:R(),scale:R(),sepia:D(),skew:R(),space:d(),translate:d()},classGroups:{aspect:[{aspect:["auto","square","video",l]}],container:["container"],columns:[{columns:[E]}],"break-after":[{"break-after":ge()}],"break-before":[{"break-before":ge()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...me(),l]}],overflow:[{overflow:X()}],"overflow-x":[{"overflow-x":X()}],"overflow-y":[{"overflow-y":X()}],overscroll:[{overscroll:K()}],"overscroll-x":[{"overscroll-x":K()}],"overscroll-y":[{"overscroll-y":K()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[f]}],"inset-y":[{"inset-y":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",W,l]}],basis:[{basis:Q()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",l]}],grow:[{grow:D()}],shrink:[{shrink:D()}],order:[{order:["first","last","none",W,l]}],"grid-cols":[{"grid-cols":[$]}],"col-start-end":[{col:["auto",{span:["full",W,l]},l]}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":[$]}],"row-start-end":[{row:["auto",{span:[W,l]},l]}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",l]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",l]}],gap:[{gap:[w]}],"gap-x":[{"gap-x":[w]}],"gap-y":[{"gap-y":[w]}],"justify-content":[{justify:["normal",...Y()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Y(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Y(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],he:[{he:[p]}],mx:[{mx:[p]}],my:[{my:[p]}],ms:[{ms:[p]}],me:[{me:[p]}],mt:[{mt:[p]}],mr:[{mr:[p]}],mb:[{mb:[p]}],ml:[{ml:[p]}],"space-x":[{"space-x":[de]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[de]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",l,r]}],"min-w":[{"min-w":[l,r,"min","max","fit"]}],"max-w":[{"max-w":[l,r,"none","full","min","max","fit","prose",{screen:[E]},E]}],h:[{h:[l,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[l,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[l,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[l,r,"auto","min","max","fit"]}],"font-size":[{text:["base",E,z]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",re]}],"font-family":[{font:[$]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",l]}],"line-clamp":[{"line-clamp":["none",G,re]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",N,l]}],"list-image":[{"list-image":["none",l]}],"list-style-type":[{list:["none","disc","decimal",l]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...q(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",N,z]}],"underline-offset":[{"underline-offset":["auto",N,l]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:d()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",l]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",l]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...me(),ur]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",pr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},fr]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[k]}],"gradient-via":[{via:[k]}],"gradient-to":[{to:[k]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[n]}],"border-w-x":[{"border-x":[n]}],"border-w-y":[{"border-y":[n]}],"border-w-s":[{"border-s":[n]}],"border-w-e":[{"border-e":[n]}],"border-w-t":[{"border-t":[n]}],"border-w-r":[{"border-r":[n]}],"border-w-b":[{"border-b":[n]}],"border-w-l":[{"border-l":[n]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[...q(),"hidden"]}],"divide-x":[{"divide-x":[n]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[n]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:q()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...q()]}],"outline-offset":[{"outline-offset":[N,l]}],"outline-w":[{outline:[N,z]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ue()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[N,z]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",E,gr]}],"shadow-color":[{shadow:[$]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":[...fe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":fe()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",E,l]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[v]}],saturate:[{saturate:[F]}],sepia:[{sepia:[B]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[v]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[F]}],"backdrop-sepia":[{"backdrop-sepia":[B]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",l]}],duration:[{duration:R()}],ease:[{ease:["linear","in","out","in-out",l]}],delay:[{delay:R()}],animate:[{animate:["none","spin","ping","pulse","bounce",l]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[T]}],"scale-x":[{"scale-x":[T]}],"scale-y":[{"scale-y":[T]}],rotate:[{rotate:[W,l]}],"translate-x":[{"translate-x":[pe]}],"translate-y":[{"translate-y":[pe]}],"skew-x":[{"skew-x":[ce]}],"skew-y":[{"skew-y":[ce]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",l]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",l]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-he":[{"scroll-he":d()}],"scroll-mx":[{"scroll-mx":d()}],"scroll-my":[{"scroll-my":d()}],"scroll-ms":[{"scroll-ms":d()}],"scroll-me":[{"scroll-me":d()}],"scroll-mt":[{"scroll-mt":d()}],"scroll-mr":[{"scroll-mr":d()}],"scroll-mb":[{"scroll-mb":d()}],"scroll-ml":[{"scroll-ml":d()}],"scroll-p":[{"scroll-p":d()}],"scroll-px":[{"scroll-px":d()}],"scroll-py":[{"scroll-py":d()}],"scroll-ps":[{"scroll-ps":d()}],"scroll-pe":[{"scroll-pe":d()}],"scroll-pt":[{"scroll-pt":d()}],"scroll-pr":[{"scroll-pr":d()}],"scroll-pb":[{"scroll-pb":d()}],"scroll-pl":[{"scroll-pl":d()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",l]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[N,z,re]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],he:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-he":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Ae=rr(xr);function y(...e){return Ae((0,Pe.clsx)(e))}var _=I.forwardRef(({className:e,...r},t)=>(0,he.jsx)("div",{ref:t,className:y("rounded-xl border bg-card text-card-foreground shadow",e),...r}));_.displayName="Card";var ne=I.forwardRef(({className:e,...r},t)=>(0,he.jsx)("div",{ref:t,className:y("flex flex-col space-y-1.5 p-6",e),...r}));ne.displayName="CardHeader";var se=I.forwardRef(({className:e,...r},t)=>(0,he.jsx)("div",{ref:t,className:y("font-semibold leading-none tracking-tight",e),...r}));se.displayName="CardTitle";var vr=I.forwardRef(({className:e,...r},t)=>(0,he.jsx)("div",{ref:t,className:y("text-sm text-muted-foreground",e),...r}));vr.displayName="CardDescription";var j=I.forwardRef(({className:e,...r},t)=>(0,he.jsx)("div",{ref:t,className:y("p-6 pt-0",e),...r}));j.displayName="CardContent";var wr=I.forwardRef(({className:e,...r},t)=>(0,he.jsx)("div",{ref:t,className:y("flex items-center p-6 pt-0",e),...r}));wr.displayName="CardFooter";function Ee({name:e,logo:r,href:t}){return(0,he.jsx)(_,{className:"w-full max-w-sm overflow-hidden transition-all duration-300 ring-0 hover:shadow-lg group",children:(0,he.jsxs)(ze.default,{href:t,className:"block",children:[(0,he.jsx)("div",{className:"bg-white p-2 flex items-center justify-center h-24",children:(0,he.jsx)("div",{className:"relative w-full h-full",children:r&&(0,he.jsx)(Me.default,{src:r,alt:`${e} logo`,layout:"fill",objectFit:"contain"})})}),(0,he.jsx)(j,{className:"p-3 flex items-center justify-center h-18 bg-gradient-to-br from-gray-900 via-brand-one to-gray-900",children:(0,he.jsx)("p",{className:"font-medium text-lg text-white text-center group-hover:scale-105 transition-transform duration-200 ease-in-out",children:e})})]})})}var Z=V(require("react")),P=V(require("@radix-ui/react-avatar"));var ae=Z.forwardRef(({className:e,...r},t)=>(0,he.jsx)(P.Root,{ref:t,className:y("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...r}));ae.displayName=P.Root.displayName;var ie=Z.forwardRef(({className:e,...r},t)=>(0,he.jsx)(P.Image,{ref:t,className:y("aspect-square h-full w-full",e),...r}));ie.displayName=P.Image.displayName;var le=Z.forwardRef(({className:e,...r},t)=>(0,he.jsx)(P.Fallback,{ref:t,className:y("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...r}));le.displayName=P.Fallback.displayName;var Te=require("class-variance-authority");var Cr=(0,Te.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 hover:bg-primary/80",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 Se({className:e,variant:r,...t}){return(0,he.jsx)("div",{className:y(Cr({variant:r}),e),...t})}var M=require("lucide-react");function Le({eventType:e="birthday",date:r="",title:t="",description:o="",avatarSrc:a}){let s=n=>{switch(n){case"birthday":return(0,he.jsx)(M.Cake,{className:"h-4 w-4"});case"workAnniversary":return(0,he.jsx)(M.Award,{className:"h-4 w-4"});case"companyEvent":return(0,he.jsx)(M.PartyPopper,{className:"h-4 w-4"});default:return(0,he.jsx)(M.CalendarDays,{className:"h-4 w-4"})}},i=n=>{switch(n){case"birthday":return"from-brand-one-500 to-brand-one-800";case"workAnniversary":return"from-brand-two-500 to-brand-two-700";case"companyEvent":return"from-brand-two-300 to-brand-two-700";default:return"from-gray-500 to-slate-500"}};return(0,he.jsxs)(_,{className:`w-full max-w-md overflow-hidden bg-gradient-to-br ${i(e)}`,children:[(0,he.jsxs)(ne,{className:"flex flex-row items-center gap-3 text-white",children:[a&&(0,he.jsxs)(ae,{className:"h-14 w-14 border-2 border-white",children:[(0,he.jsx)(ie,{src:a,alt:t||"Event"}),(0,he.jsx)(le,{className:"bg-white text-gray-900",children:t?t.charAt(0).toUpperCase():"?"})]}),(0,he.jsxs)("div",{className:"flex flex-col",children:[(0,he.jsx)(se,{className:"text-xl",children:t||"Untitled Event"}),(0,he.jsxs)("p",{className:"text-sm text-white/80",children:[(0,he.jsx)(M.CalendarDays,{className:"mr-1 inline-block h-4 w-4"}),r?new Date(r).toLocaleDateString():"Date not specified"]})]})]}),(0,he.jsxs)(j,{className:"bg-white bg-opacity-80 p-4",children:[o&&(0,he.jsx)("p",{className:"mb-2 text-sm text-gray-700",children:o}),(0,he.jsxs)(Se,{variant:"secondary",className:`bg-gradient-to-br ${i(e)} text-white/80`,children:[s(e),(0,he.jsx)("span",{className:"ml-1",children:e?e.replace(/([a-z])([he-Z])/g,"$1 $2").split(" ").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join(" "):"Event"})]})]})]})}0&&(module.exports={CustomerCard,EventCard,FeatureCard});
1
+ "use strict";var Le=Object.create;var q=Object.defineProperty;var Ge=Object.getOwnPropertyDescriptor;var He=Object.getOwnPropertyNames;var Fe=Object.getPrototypeOf,De=Object.prototype.hasOwnProperty;var Ve=(e,r)=>{for(var t in r)q(e,t,{get:r[t],enumerable:!0})},ge=(e,r,t,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let s of He(r))!De.call(e,s)&&s!==t&&q(e,s,{get:()=>r[s],enumerable:!(o=Ge(r,s))||o.enumerable});return e};var D=(e,r,t)=>(t=e!=null?Le(Fe(e)):{},ge(r||!e||!e.__esModule?q(t,"default",{value:e,enumerable:!0}):t,e)),We=e=>ge(q({},"__esModule",{value:!0}),e);var Cr={};Ve(Cr,{CustomerCard:()=>ze,EventCard:()=>Ie,FeatureCard:()=>he});module.exports=We(Cr);var be=require("react/jsx-runtime"),$e=({type:e="solid",iconName:r="cloud",size:t="lg",className:o})=>{let s="fa-"+e+" ",n="fa-"+r,i=o!=null?o:"",a=s+n+" fa-"+t+" "+i;return(0,be.jsx)("i",{className:a})},Y=$e;var he=({title:e,description:r,iconName:t,iconStyle:o,color:s})=>(0,be.jsxs)("div",{className:`rounded-3xl ${{green:"bg-green-500",blue:"bg-blue-400",navy:"bg-navy-700",red:"bg-red-500",yellow:"bg-yellow-500"}[s]} p-6 flex flex-col items-center text-center`,children:[(0,be.jsx)("div",{className:"w-12 h-12 ",children:(0,be.jsx)(Y,{type:o,iconName:t,className:"w-12 h-12 text-white"})}),(0,be.jsx)("h2",{className:"text-2xl font-bold text-white mb-2",children:e}),(0,be.jsx)("p",{className:"text-white text-sm",children:r})]});var Pe=D(require("next/image")),Me=D(require("next/link"));var S=D(require("react"));var Ne=require("clsx");var te="-",_e=e=>{let r=Be(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{let a=i.split(te);return a[0]===""&&a.length!==1&&a.shift(),ve(a,r)||je(i)},getConflictingClassGroupIds:(i,a)=>{let u=t[i]||[];return a&&o[i]?[...u,...o[i]]:u}}},ve=(e,r)=>{var i;if(e.length===0)return r.classGroupId;let t=e[0],o=r.nextPart.get(t),s=o?ve(e.slice(1),o):void 0;if(s)return s;if(r.validators.length===0)return;let n=e.join(te);return(i=r.validators.find(({validator:a})=>a(n)))==null?void 0:i.classGroupId},ye=/^\[(.+)\]$/,je=e=>{if(ye.test(e)){let r=ye.exec(e)[1],t=r==null?void 0:r.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}},Be=e=>{let{theme:r,prefix:t}=e,o={nextPart:new Map,validators:[]};return qe(Object.entries(e.classGroups),t).forEach(([n,i])=>{re(i,o,n,r)}),o},re=(e,r,t,o)=>{e.forEach(s=>{if(typeof s=="string"){let n=s===""?r:xe(r,s);n.classGroupId=t;return}if(typeof s=="function"){if(Ue(s)){re(s(o),r,t,o);return}r.validators.push({validator:s,classGroupId:t});return}Object.entries(s).forEach(([n,i])=>{re(i,xe(r,n),t,o)})})},xe=(e,r)=>{let t=e;return r.split(te).forEach(o=>{t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o)}),t},Ue=e=>e.isThemeGetter,qe=(e,r)=>r?e.map(([t,o])=>{let s=o.map(n=>typeof n=="string"?r+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([i,a])=>[r+i,a])):n);return[t,s]}):e,Oe=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=new Map,o=new Map,s=(n,i)=>{t.set(n,i),r++,r>e&&(r=0,o=t,t=new Map)};return{get(n){let i=t.get(n);if(i!==void 0)return i;if((i=o.get(n))!==void 0)return s(n,i),i},set(n,i){t.has(n)?t.set(n,i):s(n,i)}}},we="!",Ze=e=>{let{separator:r,experimentalParseClassName:t}=e,o=r.length===1,s=r[0],n=r.length,i=a=>{let u=[],f=0,b=0,v;for(let p=0;p<a.length;p++){let g=a[p];if(f===0){if(g===s&&(o||a.slice(p,p+n)===r)){u.push(a.slice(b,p)),b=p+n;continue}if(g==="/"){v=p;continue}}g==="["?f++:g==="]"&&f--}let w=u.length===0?a:a.substring(b),k=w.startsWith(we),C=k?w.substring(1):w,m=v&&v>b?v-b:void 0;return{modifiers:u,hasImportantModifier:k,baseClassName:C,maybePostfixModifierPosition:m}};return t?a=>t({className:a,parseClassName:i}):i},Je=e=>{if(e.length<=1)return e;let r=[],t=[];return e.forEach(o=>{o[0]==="["?(r.push(...t.sort(),o),t=[]):t.push(o)}),r.push(...t.sort()),r},Ke=e=>({cache:Oe(e.cacheSize),parseClassName:Ze(e),..._e(e)}),Xe=/\s+/,Qe=(e,r)=>{let{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:s}=r,n=[],i=e.trim().split(Xe),a="";for(let u=i.length-1;u>=0;u-=1){let f=i[u],{modifiers:b,hasImportantModifier:v,baseClassName:w,maybePostfixModifierPosition:k}=t(f),C=!!k,m=o(C?w.substring(0,k):w);if(!m){if(!C){a=f+(a.length>0?" "+a:a);continue}if(m=o(w),!m){a=f+(a.length>0?" "+a:a);continue}C=!1}let p=Je(b).join(":"),g=v?p+we:p,x=g+m;if(n.includes(x))continue;n.push(x);let H=s(m,C);for(let T=0;T<H.length;++T){let j=H[T];n.push(g+j)}a=f+(a.length>0?" "+a:a)}return a};function Ye(){let e=0,r,t,o="";for(;e<arguments.length;)(r=arguments[e++])&&(t=Ce(r))&&(o&&(o+=" "),o+=t);return o}var Ce=e=>{if(typeof e=="string")return e;let r,t="";for(let o=0;o<e.length;o++)e[o]&&(r=Ce(e[o]))&&(t&&(t+=" "),t+=r);return t};function er(e,...r){let t,o,s,n=i;function i(u){let f=r.reduce((b,v)=>v(b),e());return t=Ke(f),o=t.cache.get,s=t.cache.set,n=a,a(u)}function a(u){let f=o(u);if(f)return f;let b=Qe(u,t);return s(u,b),b}return function(){return n(Ye.apply(null,arguments))}}var c=e=>{let r=t=>t[e]||[];return r.isThemeGetter=!0,r},ke=/^\[(?:([a-z-]+):)?(.+)\]$/i,rr=/^\d+\/\d+$/,tr=new Set(["px","full","screen"]),or=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,nr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,sr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ar=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ir=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,A=e=>L(e)||tr.has(e)||rr.test(e),M=e=>G(e,"length",gr),L=e=>!!e&&!Number.isNaN(Number(e)),ee=e=>G(e,"number",L),V=e=>!!e&&Number.isInteger(Number(e)),lr=e=>e.endsWith("%")&&L(e.slice(0,-1)),l=e=>ke.test(e),z=e=>or.test(e),cr=new Set(["length","size","percentage"]),dr=e=>G(e,cr,Re),pr=e=>G(e,"position",Re),ur=new Set(["image","url"]),mr=e=>G(e,ur,hr),fr=e=>G(e,"",br),W=()=>!0,G=(e,r,t)=>{let o=ke.exec(e);return o?o[1]?typeof r=="string"?o[1]===r:r.has(o[1]):t(o[2]):!1},gr=e=>nr.test(e)&&!sr.test(e),Re=()=>!1,br=e=>ar.test(e),hr=e=>ir.test(e);var yr=()=>{let e=c("colors"),r=c("spacing"),t=c("blur"),o=c("brightness"),s=c("borderColor"),n=c("borderRadius"),i=c("borderSpacing"),a=c("borderWidth"),u=c("contrast"),f=c("grayscale"),b=c("hueRotate"),v=c("invert"),w=c("gap"),k=c("gradientColorStops"),C=c("gradientColorStopPositions"),m=c("inset"),p=c("margin"),g=c("opacity"),x=c("padding"),H=c("saturate"),T=c("scale"),j=c("sepia"),le=c("skew"),ce=c("space"),de=c("translate"),J=()=>["auto","contain","none"],K=()=>["auto","hidden","clip","visible","scroll"],X=()=>["auto",l,r],d=()=>[l,r],pe=()=>["",A,M],B=()=>["auto",L,l],ue=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],U=()=>["solid","dashed","dotted","double","none"],me=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Q=()=>["start","end","center","between","around","evenly","stretch"],F=()=>["","0",l],fe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>[L,l];return{cacheSize:500,separator:":",theme:{colors:[W],spacing:[A,M],blur:["none","",z,l],brightness:R(),borderColor:[e],borderRadius:["none","","full",z,l],borderSpacing:d(),borderWidth:pe(),contrast:R(),grayscale:F(),hueRotate:R(),invert:F(),gap:d(),gradientColorStops:[e],gradientColorStopPositions:[lr,M],inset:X(),margin:X(),opacity:R(),padding:d(),saturate:R(),scale:R(),sepia:F(),skew:R(),space:d(),translate:d()},classGroups:{aspect:[{aspect:["auto","square","video",l]}],container:["container"],columns:[{columns:[z]}],"break-after":[{"break-after":fe()}],"break-before":[{"break-before":fe()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...ue(),l]}],overflow:[{overflow:K()}],"overflow-x":[{"overflow-x":K()}],"overflow-be":[{"overflow-be":K()}],overscroll:[{overscroll:J()}],"overscroll-x":[{"overscroll-x":J()}],"overscroll-be":[{"overscroll-be":J()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-be":[{"inset-be":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",V,l]}],basis:[{basis:X()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",l]}],grow:[{grow:F()}],shrink:[{shrink:F()}],order:[{order:["first","last","none",V,l]}],"grid-cols":[{"grid-cols":[W]}],"col-start-end":[{col:["auto",{span:["full",V,l]},l]}],"col-start":[{"col-start":B()}],"col-end":[{"col-end":B()}],"grid-rows":[{"grid-rows":[W]}],"row-start-end":[{row:["auto",{span:[V,l]},l]}],"row-start":[{"row-start":B()}],"row-end":[{"row-end":B()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",l]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",l]}],gap:[{gap:[w]}],"gap-x":[{"gap-x":[w]}],"gap-be":[{"gap-be":[w]}],"justify-content":[{justify:["normal",...Q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Q(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[p]}],mx:[{mx:[p]}],my:[{my:[p]}],ms:[{ms:[p]}],me:[{me:[p]}],mt:[{mt:[p]}],mr:[{mr:[p]}],mb:[{mb:[p]}],ml:[{ml:[p]}],"space-x":[{"space-x":[ce]}],"space-x-reverse":["space-x-reverse"],"space-be":[{"space-be":[ce]}],"space-be-reverse":["space-be-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",l,r]}],"min-w":[{"min-w":[l,r,"min","max","fit"]}],"max-w":[{"max-w":[l,r,"none","full","min","max","fit","prose",{screen:[z]},z]}],h:[{h:[l,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[l,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[l,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[l,r,"auto","min","max","fit"]}],"font-size":[{text:["base",z,M]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ee]}],"font-family":[{font:[W]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",l]}],"line-clamp":[{"line-clamp":["none",L,ee]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",A,l]}],"list-image":[{"list-image":["none",l]}],"list-style-type":[{list:["none","disc","decimal",l]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...U(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",A,M]}],"underline-offset":[{"underline-offset":["auto",A,l]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:d()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",l]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",l]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ue(),pr]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","be","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",dr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},mr]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[k]}],"gradient-via":[{via:[k]}],"gradient-to":[{to:[k]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-be":[{"border-be":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...U(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-be":[{"divide-be":[a]}],"divide-be-reverse":["divide-be-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:U()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-be":[{"border-be":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...U()]}],"outline-offset":[{"outline-offset":[A,l]}],"outline-w":[{outline:[A,M]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:pe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[A,M]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",z,fr]}],"shadow-color":[{shadow:[W]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...me(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":me()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",z,l]}],grayscale:[{grayscale:[f]}],"hue-rotate":[{"hue-rotate":[b]}],invert:[{invert:[v]}],saturate:[{saturate:[H]}],sepia:[{sepia:[j]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[f]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[b]}],"backdrop-invert":[{"backdrop-invert":[v]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[H]}],"backdrop-sepia":[{"backdrop-sepia":[j]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-be":[{"border-spacing-be":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",l]}],duration:[{duration:R()}],ease:[{ease:["linear","in","out","in-out",l]}],delay:[{delay:R()}],animate:[{animate:["none","spin","ping","pulse","bounce",l]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[T]}],"scale-x":[{"scale-x":[T]}],"scale-be":[{"scale-be":[T]}],rotate:[{rotate:[V,l]}],"translate-x":[{"translate-x":[de]}],"translate-be":[{"translate-be":[de]}],"skew-x":[{"skew-x":[le]}],"skew-be":[{"skew-be":[le]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",l]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",l]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","be","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":d()}],"scroll-mx":[{"scroll-mx":d()}],"scroll-my":[{"scroll-my":d()}],"scroll-ms":[{"scroll-ms":d()}],"scroll-me":[{"scroll-me":d()}],"scroll-mt":[{"scroll-mt":d()}],"scroll-mr":[{"scroll-mr":d()}],"scroll-mb":[{"scroll-mb":d()}],"scroll-ml":[{"scroll-ml":d()}],"scroll-p":[{"scroll-p":d()}],"scroll-px":[{"scroll-px":d()}],"scroll-py":[{"scroll-py":d()}],"scroll-ps":[{"scroll-ps":d()}],"scroll-pe":[{"scroll-pe":d()}],"scroll-pt":[{"scroll-pt":d()}],"scroll-pr":[{"scroll-pr":d()}],"scroll-pb":[{"scroll-pb":d()}],"scroll-pl":[{"scroll-pl":d()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","be","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-be":[{"touch-pan":["be","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",l]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[A,M,ee]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-be"],overscroll:["overscroll-x","overscroll-be"],inset:["inset-x","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-be":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-be"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-be"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-be":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-be":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-be","touch-pz"],"touch-x":["touch"],"touch-be":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Ae=er(yr);function h(...e){return Ae((0,Ne.clsx)(e))}var $=S.forwardRef(({className:e,...r},t)=>(0,be.jsx)("div",{ref:t,className:h("rounded-xl border bg-card text-card-foreground shadow",e),...r}));$.displayName="Card";var oe=S.forwardRef(({className:e,...r},t)=>(0,be.jsx)("div",{ref:t,className:h("flex flex-col space-be-1.5 p-6",e),...r}));oe.displayName="CardHeader";var ne=S.forwardRef(({className:e,...r},t)=>(0,be.jsx)("div",{ref:t,className:h("font-semibold leading-none tracking-tight",e),...r}));ne.displayName="CardTitle";var xr=S.forwardRef(({className:e,...r},t)=>(0,be.jsx)("div",{ref:t,className:h("text-sm text-muted-foreground",e),...r}));xr.displayName="CardDescription";var _=S.forwardRef(({className:e,...r},t)=>(0,be.jsx)("div",{ref:t,className:h("p-6 pt-0",e),...r}));_.displayName="CardContent";var vr=S.forwardRef(({className:e,...r},t)=>(0,be.jsx)("div",{ref:t,className:h("flex items-center p-6 pt-0",e),...r}));vr.displayName="CardFooter";function ze({name:e,logo:r,href:t}){return(0,be.jsx)($,{className:"w-full max-w-sm overflow-hidden transition-all duration-300 ring-0 hover:shadow-lg group",children:(0,be.jsxs)(Me.default,{href:t,className:"block",children:[(0,be.jsx)("div",{className:"bg-white p-2 flex items-center justify-center h-24",children:(0,be.jsx)("div",{className:"relative w-full h-full",children:r&&(0,be.jsx)(Pe.default,{src:r,alt:`${e} logo`,layout:"fill",objectFit:"contain"})})}),(0,be.jsx)(_,{className:"p-3 flex items-center justify-center h-18 bg-gradient-to-br from-gray-900 via-brand-one to-gray-900",children:(0,be.jsx)("p",{className:"font-medium text-lg text-white text-center group-hover:scale-105 transition-transform duration-200 ease-in-out",children:e})})]})})}var O=D(require("react")),P=D(require("@radix-ui/react-avatar"));var se=O.forwardRef(({className:e,...r},t)=>(0,be.jsx)(P.Root,{ref:t,className:h("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...r}));se.displayName=P.Root.displayName;var ae=O.forwardRef(({className:e,...r},t)=>(0,be.jsx)(P.Image,{ref:t,className:h("aspect-square h-full w-full",e),...r}));ae.displayName=P.Image.displayName;var ie=O.forwardRef(({className:e,...r},t)=>(0,be.jsx)(P.Fallback,{ref:t,className:h("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...r}));ie.displayName=P.Fallback.displayName;var Te=require("class-variance-authority");var wr=(0,Te.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 hover:bg-primary/80",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 Ee({className:e,variant:r,...t}){return(0,be.jsx)("div",{className:h(wr({variant:r}),e),...t})}function Ie({eventType:e="birthday",date:r="",title:t="",description:o="",avatarSrc:s}){let n=i=>{switch(i){case"birthday":return"from-brand-one-500 to-brand-one-800";case"workAnniversary":return"from-brand-two-500 to-brand-two-700";case"companyEvent":return"from-brand-two-300 to-brand-two-700";default:return"from-gray-500 to-slate-500"}};return(0,be.jsxs)($,{className:`w-full max-w-md overflow-hidden bg-gradient-to-br ${n(e)}`,children:[(0,be.jsxs)(oe,{className:"flex flex-row items-center gap-3 text-white",children:[s&&(0,be.jsxs)(se,{className:"h-14 w-14 border-2 border-white",children:[(0,be.jsx)(ae,{src:s,alt:t||"Event"}),(0,be.jsx)(ie,{className:"bg-white text-gray-900",children:t?t.charAt(0).toUpperCase():"?"})]}),(0,be.jsxs)("div",{className:"flex flex-col",children:[(0,be.jsx)(ne,{className:"text-xl",children:t||"Untitled Event"}),(0,be.jsx)("p",{className:"text-sm text-white/80",children:r?new Date(r).toLocaleDateString():"Date not specified"})]})]}),(0,be.jsxs)(_,{className:"bg-white bg-opacity-80 p-4",children:[o&&(0,be.jsx)("p",{className:"mb-2 text-sm text-gray-700",children:o}),(0,be.jsx)(Ee,{variant:"secondary",className:`bg-gradient-to-br ${n(e)} text-white/80`,children:(0,be.jsx)("span",{className:"ml-1",children:e?e.replace(/([a-z])([A-be])/g,"$1 $2").split(" ").map(i=>i.charAt(0).toUpperCase()+i.slice(1)).join(" "):"Event"})})]})]})}0&&(module.exports={CustomerCard,EventCard,FeatureCard});
@@ -1 +1 @@
1
- import{a as r}from"../../chunk-IZJQUWAK.mjs";import{a as e}from"../../chunk-VSTSYVKB.mjs";import"../../chunk-IYOWTF4E.mjs";import{a as o}from"../../chunk-32RDLRVK.mjs";import"../../chunk-OTS4QNQ2.mjs";import"../../chunk-NQ4FAZ5U.mjs";import"../../chunk-MA5FR2EM.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-US547EKQ.mjs";export{r as CustomerCard,e as EventCard,o as FeatureCard};
1
+ import{a as o}from"../../chunk-32RDLRVK.mjs";import"../../chunk-OTS4QNQ2.mjs";import{a as r}from"../../chunk-IZJQUWAK.mjs";import{a as e}from"../../chunk-GVX5FTMW.mjs";import"../../chunk-IYOWTF4E.mjs";import"../../chunk-NQ4FAZ5U.mjs";import"../../chunk-MA5FR2EM.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-US547EKQ.mjs";export{r as CustomerCard,e as EventCard,o as FeatureCard};
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";import{a}from"../../../chunk-7BP5RVYA.mjs";import"../../../chunk-6P7CY367.mjs";import"../../../chunk-6VGO3JR7.mjs";import"../../../chunk-BZVOHDLV.mjs";import"../../../chunk-OANFAQE4.mjs";import"../../../chunk-44TDI42O.mjs";import"../../../chunk-NIQ4466A.mjs";import"../../../chunk-BOPZHZ27.mjs";import"../../../chunk-US547EKQ.mjs";export{a as Card};
2
+ "use strict";import{a}from"../../../chunk-FVGXBMFX.mjs";import"../../../chunk-6VGO3JR7.mjs";import"../../../chunk-BZVOHDLV.mjs";import"../../../chunk-OANFAQE4.mjs";import"../../../chunk-44TDI42O.mjs";import"../../../chunk-6P7CY367.mjs";import"../../../chunk-NIQ4466A.mjs";import"../../../chunk-BOPZHZ27.mjs";import"../../../chunk-US547EKQ.mjs";export{a as Card};
@@ -1 +1 @@
1
- import{a as p}from"../../../chunk-7BP5RVYA.mjs";import"../../../chunk-6P7CY367.mjs";import"../../../chunk-6VGO3JR7.mjs";import"../../../chunk-BZVOHDLV.mjs";import"../../../chunk-OANFAQE4.mjs";import"../../../chunk-44TDI42O.mjs";import{a as i}from"../../../chunk-NIQ4466A.mjs";import"../../../chunk-BOPZHZ27.mjs";import"../../../chunk-US547EKQ.mjs";import{jsx as o}from"react/jsx-runtime";var c=s=>{let{posts:r}=s;return o("div",{className:i("container"),children:o("div",{children:o("div",{className:"grid grid-cols-4 sm:grid-cols-8 lg:grid-cols-12 gap-y-4 gap-x-4 lg:gap-y-8 lg:gap-x-8 xl:gap-x-8",children:r==null?void 0:r.map((a,t)=>typeof a=="object"&&a!==null?o("div",{className:"col-span-4",children:o(p,{className:"h-full",doc:a,relationTo:"posts",showCategories:!0})},t):null)})})})};export{c as CollectionArchive};
1
+ import{a as p}from"../../../chunk-FVGXBMFX.mjs";import"../../../chunk-6VGO3JR7.mjs";import"../../../chunk-BZVOHDLV.mjs";import"../../../chunk-OANFAQE4.mjs";import"../../../chunk-44TDI42O.mjs";import"../../../chunk-6P7CY367.mjs";import{a as i}from"../../../chunk-NIQ4466A.mjs";import"../../../chunk-BOPZHZ27.mjs";import"../../../chunk-US547EKQ.mjs";import{jsx as o}from"react/jsx-runtime";var c=s=>{let{posts:r}=s;return o("div",{className:i("container"),children:o("div",{children:o("div",{className:"grid grid-cols-4 sm:grid-cols-8 lg:grid-cols-12 gap-y-4 gap-x-4 lg:gap-y-8 lg:gap-x-8 xl:gap-x-8",children:r==null?void 0:r.map((a,t)=>typeof a=="object"&&a!==null?o("div",{className:"col-span-4",children:o(p,{className:"h-full",doc:a,relationTo:"posts",showCategories:!0})},t):null)})})})};export{c as CollectionArchive};
@@ -1 +1 @@
1
- import{a as oe}from"../../chunk-BJYY3KBF.mjs";import{a as Uo,b as Wo,c as Xo,d as Yo,e as Zo,f as _o,g as $o}from"../../chunk-4PTHCL6I.mjs";import{a as te,b as ae}from"../../chunk-LVMTOUN5.mjs";import{a as ee,b as re}from"../../chunk-62HF5YVD.mjs";import{a as wo,b as vo,c as ho,d as Io,e as Bo,f as Ao,g as Po,h as Go,i as Ho,j as Lo,k as ko,l as yo,m as Fo,n as Vo,o as Eo,p as Ro,q as Oo,r as jo,s as qo,t as zo,u as Jo,v as Ko,w as No,x as Qo}from"../../chunk-JYZNBFY2.mjs";import{a as uo}from"../../chunk-YAZZUJPQ.mjs";import{a as So,b as bo,c as go,d as so,e as To,f as Do,g as Co,h as xo,i as fo,j as Mo}from"../../chunk-RAZKAPLW.mjs";import{a as co}from"../../chunk-RBF2IQIG.mjs";import{a as lo}from"../../chunk-G2GEVAGD.mjs";import{a as ue}from"../../chunk-LAIB3DU5.mjs";import{a as pe,b as de,c as me,d as le}from"../../chunk-RH5IBKKX.mjs";import{a as ne,b as ie}from"../../chunk-LE63372T.mjs";import{a as N,b as Q,c as U,d as W,e as X,f as Y,g as Z,h as _,i as $,j as oo,k as eo,l as ro,m as to,n as ao,o as no}from"../../chunk-E53JVQZX.mjs";import{a as io,b as po,c as mo}from"../../chunk-I5PVVLPG.mjs";import{a as k,b as y,c as F}from"../../chunk-4TIAA7YP.mjs";import{a as V,b as E,c as R,d as O,e as j,f as q,g as z,h as J,i as K}from"../../chunk-4NZ3SPPA.mjs";import{a as w,b as v,c as h}from"../../chunk-J3KUUMK4.mjs";import{a as I,b as B,c as A,d as P,e as G,f as H,g as L}from"../../chunk-3PLMWMUD.mjs";import{a as b,b as g,c as s,d as T,e as D,f as C,g as x,h as f,i as M,j as c}from"../../chunk-OQNGQGJV.mjs";import{a as l,b as u,c as S}from"../../chunk-IYOWTF4E.mjs";import{a as d,b as m}from"../../chunk-NQ4FAZ5U.mjs";import{a as o}from"../../chunk-FRWX5YES.mjs";import{c as e}from"../../chunk-CV7PH2KH.mjs";import{a,b as n,c as i,d as p}from"../../chunk-TNVXZARJ.mjs";import{a as r,b as t}from"../../chunk-TLXHEFFH.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-US547EKQ.mjs";export{w as Alert,h as AlertDescription,v as AlertTitle,l as Avatar,S as AvatarFallback,u as AvatarImage,m as Badge,I as Breadcrumb,L as BreadcrumbEllipsis,A as BreadcrumbItem,P as BreadcrumbLink,B as BreadcrumbList,G as BreadcrumbPage,H as BreadcrumbSeparator,t as Button,k as Collapsible,F as CollapsibleContent,y as CollapsibleTrigger,V as Command,E as CommandDialog,j as CommandEmpty,q as CommandGroup,R as CommandInput,J as CommandItem,O as CommandList,z as CommandSeparator,K as CommandShortcut,b as Dialog,T as DialogClose,C as DialogContent,c as DialogDescription,f as DialogFooter,x as DialogHeader,D as DialogOverlay,s as DialogPortal,M as DialogTitle,g as DialogTrigger,N as DropdownMenu,eo as DropdownMenuCheckboxItem,$ as DropdownMenuContent,U as DropdownMenuGroup,oo as DropdownMenuItem,to as DropdownMenuLabel,W as DropdownMenuPortal,Y as DropdownMenuRadioGroup,ro as DropdownMenuRadioItem,ao as DropdownMenuSeparator,no as DropdownMenuShortcut,X as DropdownMenuSub,_ as DropdownMenuSubContent,Z as DropdownMenuSubTrigger,Q as DropdownMenuTrigger,io as HoverCard,mo as HoverCardContent,po as HoverCardTrigger,lo as Input,ue as Label,pe as Popover,me as PopoverAnchor,le as PopoverContent,de as PopoverTrigger,ne as ScrollArea,ie as ScrollBar,uo as Separator,So as Sheet,go as SheetClose,Do as SheetContent,Mo as SheetDescription,xo as SheetFooter,Co as SheetHeader,To as SheetOverlay,so as SheetPortal,fo as SheetTitle,bo as SheetTrigger,ho as Sidebar,ko as SidebarContent,Ho as SidebarFooter,yo as SidebarGroup,Vo as SidebarGroupAction,Eo as SidebarGroupContent,Fo as SidebarGroupLabel,Go as SidebarHeader,Po as SidebarInput,Ao as SidebarInset,Ro as SidebarMenu,qo as SidebarMenuAction,zo as SidebarMenuBadge,jo as SidebarMenuButton,Oo as SidebarMenuItem,Jo as SidebarMenuSkeleton,Ko as SidebarMenuSub,Qo as SidebarMenuSubButton,No as SidebarMenuSubItem,vo as SidebarProvider,Bo as SidebarRail,Lo as SidebarSeparator,Io as SidebarTrigger,co as Skeleton,Xo as Toast,Yo as ToastAction,Zo as ToastClose,$o as ToastDescription,Uo as ToastProvider,_o as ToastTitle,Wo as ToastViewport,oe as Toaster,re as Toggle,te as ToggleGroup,ae as ToggleGroupItem,n as Tooltip,p as TooltipContent,a as TooltipProvider,i as TooltipTrigger,d as badgeVariants,r as buttonVariants,ee as toggleVariants,o as useIsMobile,wo as useSidebar,e as useToast};
1
+ import{a as te,b as ae}from"../../chunk-LVMTOUN5.mjs";import{a as ee,b as re}from"../../chunk-62HF5YVD.mjs";import{a as wo,b as vo,c as ho,d as Io,e as Bo,f as Ao,g as Po,h as Go,i as Ho,j as Lo,k as ko,l as yo,m as Fo,n as Vo,o as Eo,p as Ro,q as Oo,r as jo,s as qo,t as zo,u as Jo,v as Ko,w as No,x as Qo}from"../../chunk-3AD6SLX6.mjs";import{a as co}from"../../chunk-RBF2IQIG.mjs";import{a as oe}from"../../chunk-BJYY3KBF.mjs";import{a as Uo,b as Wo,c as Xo,d as Yo,e as Zo,f as _o,g as $o}from"../../chunk-4PTHCL6I.mjs";import{a as pe,b as de,c as me,d as le}from"../../chunk-RH5IBKKX.mjs";import{a as ne,b as ie}from"../../chunk-LE63372T.mjs";import{a as uo}from"../../chunk-YAZZUJPQ.mjs";import{a as So,b as bo,c as go,d as so,e as To,f as Do,g as Co,h as xo,i as fo,j as Mo}from"../../chunk-RAZKAPLW.mjs";import{a as io,b as po,c as mo}from"../../chunk-I5PVVLPG.mjs";import{a as lo}from"../../chunk-G2GEVAGD.mjs";import{a as ue}from"../../chunk-LAIB3DU5.mjs";import{a as k,b as y,c as F}from"../../chunk-4TIAA7YP.mjs";import{a as V,b as E,c as R,d as O,e as j,f as q,g as z,h as J,i as K}from"../../chunk-4NZ3SPPA.mjs";import{a as N,b as Q,c as U,d as W,e as X,f as Y,g as Z,h as _,i as $,j as oo,k as eo,l as ro,m as to,n as ao,o as no}from"../../chunk-E53JVQZX.mjs";import{a as I,b as B,c as A,d as P,e as G,f as H,g as L}from"../../chunk-3PLMWMUD.mjs";import{a as w,b as v,c as h}from"../../chunk-J3KUUMK4.mjs";import{a as b,b as g,c as s,d as T,e as D,f as C,g as x,h as f,i as M,j as c}from"../../chunk-OQNGQGJV.mjs";import{a as d,b as m,c as l}from"../../chunk-IYOWTF4E.mjs";import{a as u,b as S}from"../../chunk-NQ4FAZ5U.mjs";import{a as o}from"../../chunk-FRWX5YES.mjs";import{c as e}from"../../chunk-CV7PH2KH.mjs";import{a,b as n,c as i,d as p}from"../../chunk-TNVXZARJ.mjs";import{a as r,b as t}from"../../chunk-TLXHEFFH.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-US547EKQ.mjs";export{w as Alert,h as AlertDescription,v as AlertTitle,d as Avatar,l as AvatarFallback,m as AvatarImage,S as Badge,I as Breadcrumb,L as BreadcrumbEllipsis,A as BreadcrumbItem,P as BreadcrumbLink,B as BreadcrumbList,G as BreadcrumbPage,H as BreadcrumbSeparator,t as Button,k as Collapsible,F as CollapsibleContent,y as CollapsibleTrigger,V as Command,E as CommandDialog,j as CommandEmpty,q as CommandGroup,R as CommandInput,J as CommandItem,O as CommandList,z as CommandSeparator,K as CommandShortcut,b as Dialog,T as DialogClose,C as DialogContent,c as DialogDescription,f as DialogFooter,x as DialogHeader,D as DialogOverlay,s as DialogPortal,M as DialogTitle,g as DialogTrigger,N as DropdownMenu,eo as DropdownMenuCheckboxItem,$ as DropdownMenuContent,U as DropdownMenuGroup,oo as DropdownMenuItem,to as DropdownMenuLabel,W as DropdownMenuPortal,Y as DropdownMenuRadioGroup,ro as DropdownMenuRadioItem,ao as DropdownMenuSeparator,no as DropdownMenuShortcut,X as DropdownMenuSub,_ as DropdownMenuSubContent,Z as DropdownMenuSubTrigger,Q as DropdownMenuTrigger,io as HoverCard,mo as HoverCardContent,po as HoverCardTrigger,lo as Input,ue as Label,pe as Popover,me as PopoverAnchor,le as PopoverContent,de as PopoverTrigger,ne as ScrollArea,ie as ScrollBar,uo as Separator,So as Sheet,go as SheetClose,Do as SheetContent,Mo as SheetDescription,xo as SheetFooter,Co as SheetHeader,To as SheetOverlay,so as SheetPortal,fo as SheetTitle,bo as SheetTrigger,ho as Sidebar,ko as SidebarContent,Ho as SidebarFooter,yo as SidebarGroup,Vo as SidebarGroupAction,Eo as SidebarGroupContent,Fo as SidebarGroupLabel,Go as SidebarHeader,Po as SidebarInput,Ao as SidebarInset,Ro as SidebarMenu,qo as SidebarMenuAction,zo as SidebarMenuBadge,jo as SidebarMenuButton,Oo as SidebarMenuItem,Jo as SidebarMenuSkeleton,Ko as SidebarMenuSub,Qo as SidebarMenuSubButton,No as SidebarMenuSubItem,vo as SidebarProvider,Bo as SidebarRail,Lo as SidebarSeparator,Io as SidebarTrigger,co as Skeleton,Xo as Toast,Yo as ToastAction,Zo as ToastClose,$o as ToastDescription,Uo as ToastProvider,_o as ToastTitle,Wo as ToastViewport,oe as Toaster,re as Toggle,te as ToggleGroup,ae as ToggleGroupItem,n as Tooltip,p as TooltipContent,a as TooltipProvider,i as TooltipTrigger,u as badgeVariants,r as buttonVariants,ee as toggleVariants,o as useIsMobile,wo as useSidebar,e as useToast};
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x}from"../../chunk-JYZNBFY2.mjs";import"../../chunk-YAZZUJPQ.mjs";import"../../chunk-RAZKAPLW.mjs";import"../../chunk-RBF2IQIG.mjs";import"../../chunk-G2GEVAGD.mjs";import"../../chunk-FRWX5YES.mjs";import"../../chunk-TNVXZARJ.mjs";import"../../chunk-TLXHEFFH.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-US547EKQ.mjs";export{c as Sidebar,k as SidebarContent,i as SidebarFooter,l as SidebarGroup,n as SidebarGroupAction,o as SidebarGroupContent,m as SidebarGroupLabel,h as SidebarHeader,g as SidebarInput,f as SidebarInset,p as SidebarMenu,s as SidebarMenuAction,t as SidebarMenuBadge,r as SidebarMenuButton,q as SidebarMenuItem,u as SidebarMenuSkeleton,v as SidebarMenuSub,x as SidebarMenuSubButton,w as SidebarMenuSubItem,b as SidebarProvider,e as SidebarRail,j as SidebarSeparator,d as SidebarTrigger,a as useSidebar};
2
+ "use strict";import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x}from"../../chunk-3AD6SLX6.mjs";import"../../chunk-RBF2IQIG.mjs";import"../../chunk-YAZZUJPQ.mjs";import"../../chunk-RAZKAPLW.mjs";import"../../chunk-G2GEVAGD.mjs";import"../../chunk-FRWX5YES.mjs";import"../../chunk-TNVXZARJ.mjs";import"../../chunk-TLXHEFFH.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-US547EKQ.mjs";export{c as Sidebar,k as SidebarContent,i as SidebarFooter,l as SidebarGroup,n as SidebarGroupAction,o as SidebarGroupContent,m as SidebarGroupLabel,h as SidebarHeader,g as SidebarInput,f as SidebarInset,p as SidebarMenu,s as SidebarMenuAction,t as SidebarMenuBadge,r as SidebarMenuButton,q as SidebarMenuItem,u as SidebarMenuSkeleton,v as SidebarMenuSub,x as SidebarMenuSubButton,w as SidebarMenuSubItem,b as SidebarProvider,e as SidebarRail,j as SidebarSeparator,d as SidebarTrigger,a as useSidebar};
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "cortex-react-components",
3
3
  "author": "Cortex Reply",
4
4
  "private": false,
5
- "version": "1.4.1",
5
+ "version": "1.4.2",
6
6
  "description": "A library of React components with styles. Designed to seamlessly integrate with React and Next.js.",
7
7
  "license": "MPL-2.0",
8
8
  "main": "./dist/index.js",
@@ -1 +0,0 @@
1
- import{a as v,b,c as g}from"./chunk-IYOWTF4E.mjs";import{b as w}from"./chunk-NQ4FAZ5U.mjs";import{a as i,b as m,c as d,e as p}from"./chunk-MA5FR2EM.mjs";import{CalendarDays as h,Cake as y,Award as C,PartyPopper as N}from"lucide-react";import{jsx as a,jsxs as e}from"react/jsx-runtime";function k({eventType:r="birthday",date:s="",title:n="",description:o="",avatarSrc:c}){let f=t=>{switch(t){case"birthday":return a(y,{className:"h-4 w-4"});case"workAnniversary":return a(C,{className:"h-4 w-4"});case"companyEvent":return a(N,{className:"h-4 w-4"});default:return a(h,{className:"h-4 w-4"})}},l=t=>{switch(t){case"birthday":return"from-brand-one-500 to-brand-one-800";case"workAnniversary":return"from-brand-two-500 to-brand-two-700";case"companyEvent":return"from-brand-two-300 to-brand-two-700";default:return"from-gray-500 to-slate-500"}};return e(i,{className:`w-full max-w-md overflow-hidden bg-gradient-to-br ${l(r)}`,children:[e(m,{className:"flex flex-row items-center gap-3 text-white",children:[c&&e(v,{className:"h-14 w-14 border-2 border-white",children:[a(b,{src:c,alt:n||"Event"}),a(g,{className:"bg-white text-gray-900",children:n?n.charAt(0).toUpperCase():"?"})]}),e("div",{className:"flex flex-col",children:[a(d,{className:"text-xl",children:n||"Untitled Event"}),e("p",{className:"text-sm text-white/80",children:[a(h,{className:"mr-1 inline-block h-4 w-4"}),s?new Date(s).toLocaleDateString():"Date not specified"]})]})]}),e(p,{className:"bg-white bg-opacity-80 p-4",children:[o&&a("p",{className:"mb-2 text-sm text-gray-700",children:o}),e(w,{variant:"secondary",className:`bg-gradient-to-br ${l(r)} text-white/80`,children:[f(r),a("span",{className:"ml-1",children:r?r.replace(/([a-z])([A-Z])/g,"$1 $2").split(" ").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" "):"Event"})]})]})]})}export{k as a};