cortex-react-components 1.12.0 → 1.12.1

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.
Files changed (37) hide show
  1. package/dist/{chunk-LKMZ5ROU.mjs → chunk-CQHNH3XJ.mjs} +1 -1
  2. package/dist/{chunk-IPHHUHS3.mjs → chunk-D43ENVPX.mjs} +1 -1
  3. package/dist/{chunk-WMZYFRHZ.mjs → chunk-FEBVOLWP.mjs} +1 -1
  4. package/dist/{chunk-LBKMUSVR.mjs → chunk-IE2A7UT3.mjs} +1 -1
  5. package/dist/chunk-LQZTCLMG.mjs +3 -0
  6. package/dist/{chunk-DSTWQW3O.mjs → chunk-O6V6PM4N.mjs} +1 -1
  7. package/dist/{chunk-JG5NJABD.mjs → chunk-W3RZEXMT.mjs} +1 -1
  8. package/dist/components/Cards/EventCard.js +1 -1
  9. package/dist/components/Cards/EventCard.mjs +1 -1
  10. package/dist/components/Cards/EventCard.stories.js +1 -1
  11. package/dist/components/Cards/EventCard.stories.mjs +1 -1
  12. package/dist/components/Cards/index.js +1 -1
  13. package/dist/components/Cards/index.mjs +1 -1
  14. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  15. package/dist/components/Menus/SidebarLeft.stories.mjs +1 -1
  16. package/dist/components/Menus/SidebarRight.mjs +1 -1
  17. package/dist/components/Menus/SidebarRight.stories.mjs +1 -1
  18. package/dist/components/Menus/index.mjs +1 -1
  19. package/dist/components/Pages/Documentation.mjs +1 -1
  20. package/dist/components/Pages/Documentation.stories.mjs +1 -1
  21. package/dist/components/Pages/IndexPage.mjs +1 -1
  22. package/dist/components/Pages/IndexPage.stories.mjs +1 -1
  23. package/dist/components/Pages/Intranet.js +1 -1
  24. package/dist/components/Pages/Intranet.mjs +1 -1
  25. package/dist/components/Pages/Intranet.stories.js +1 -1
  26. package/dist/components/Pages/Intranet.stories.mjs +1 -1
  27. package/dist/components/index.js +1 -1
  28. package/dist/components/index.mjs +1 -1
  29. package/dist/components/ui/index.mjs +1 -1
  30. package/dist/components/ui/sidebar.mjs +1 -1
  31. package/dist/globals.css +1 -1
  32. package/dist/index.js +1 -1
  33. package/dist/index.mjs +1 -1
  34. package/dist/metafile-cjs.json +1 -1
  35. package/dist/metafile-esm.json +1 -1
  36. package/package.json +1 -1
  37. package/dist/chunk-OD4RCKMK.mjs +0 -3
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as m}from"./chunk-3YZN4MJB.mjs";import{a as d}from"./chunk-LBKMUSVR.mjs";import{b as i,f as o}from"./chunk-IPHHUHS3.mjs";import{a as s}from"./chunk-XWTX2W5V.mjs";import{a as l}from"./chunk-72BBXZKW.mjs";import{jsx as e,jsxs as r}from"react/jsx-runtime";function n({...t}){return r("div",{className:"flex fixed flex-col w-screen h-screen max-h-screen overflow-auto overscroll-contain",children:[e(s,{...t.header}),r(i,{className:"top-14 mb-4 h-full max-h-[calc(100vh-3.5rem)] flex-1 flex-row overflow-y-clip",children:[e(d,{...t.sidebarLeft,className:"flex-none"}),e(o,{className:"grow overflow-hidden",children:r("div",{className:"max-h-full top-0 absolute max-w-full",children:[e("div",{"aria-hidden":"true",className:"inset-x-0 -z-10 transform-gpu overflow-hidden blur-3xl",children:e("div",{style:{clipPath:"polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)"},className:"relative left-[calc(50%-11rem)] aspect-[1155/678] w-[36.125rem] -translate-x-1/2 rotate-[30deg] bg-gradient-to-tr from-primary to-secondary opacity-30 sm:left-[calc(50%-30rem)] sm:w-[72.1875rem]"})}),e("div",{className:"absolute top-0 w-full",children:e("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:r("div",{className:"mx-auto max-w-2xl text-center pt-4",children:[e("h1",{className:"text-balance text-5xl font-semibold tracking-tight text-primary sm:text-7xl",children:"Anim aute id magna aliqua ad ad non deserunt sunt."}),e("p",{className:"mt-8 text-pretty text-lg font-medium text-gray-500 sm:text-xl/8",children:"Anim aute id magna aliqua ad ad non deserunt sunt. Qui irure qui lorem cupidatat commodo. Elit sunt amet fugiat veniam occaecat."}),e("div",{className:"mt-10 flex items-center justify-center gap-x-6",children:e("div",{className:"mt-6 px-10 grid grid-cols-1 gap-8 lg:grid-cols-3",children:t.tiles.map(a=>e(l,{url:a.slug,title:a.title,mainImage:a.mainImage,excerpt:a.excerpt},a.slug))})})]})})}),e("div",{"aria-hidden":"true",className:"absolute inset-x-0 top-[calc(100%-13rem)] -z-10 transform-gpu overflow-hidden blur-3xl sm:top-[calc(100%-30rem)]",children:e("div",{style:{clipPath:"polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)"},className:"relative left-[calc(50%+3rem)] aspect-[1155/678] w-[36.125rem] -translate-x-1/2 bg-gradient-to-tr from-[#ff80b5] to-[#9089fc] opacity-30 sm:left-[calc(50%+36rem)] sm:w-[72.1875rem]"})})]})})]}),e(m,{})]})}export{n as a};
4
+ import{a as m}from"./chunk-3YZN4MJB.mjs";import{a as d}from"./chunk-IE2A7UT3.mjs";import{b as i,f as o}from"./chunk-D43ENVPX.mjs";import{a as s}from"./chunk-XWTX2W5V.mjs";import{a as l}from"./chunk-72BBXZKW.mjs";import{jsx as e,jsxs as r}from"react/jsx-runtime";function n({...t}){return r("div",{className:"flex fixed flex-col w-screen h-screen max-h-screen overflow-auto overscroll-contain",children:[e(s,{...t.header}),r(i,{className:"top-14 mb-4 h-full max-h-[calc(100vh-3.5rem)] flex-1 flex-row overflow-y-clip",children:[e(d,{...t.sidebarLeft,className:"flex-none"}),e(o,{className:"grow overflow-hidden",children:r("div",{className:"max-h-full top-0 absolute max-w-full",children:[e("div",{"aria-hidden":"true",className:"inset-x-0 -z-10 transform-gpu overflow-hidden blur-3xl",children:e("div",{style:{clipPath:"polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)"},className:"relative left-[calc(50%-11rem)] aspect-[1155/678] w-[36.125rem] -translate-x-1/2 rotate-[30deg] bg-gradient-to-tr from-primary to-secondary opacity-30 sm:left-[calc(50%-30rem)] sm:w-[72.1875rem]"})}),e("div",{className:"absolute top-0 w-full",children:e("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:r("div",{className:"mx-auto max-w-2xl text-center pt-4",children:[e("h1",{className:"text-balance text-5xl font-semibold tracking-tight text-primary sm:text-7xl",children:"Anim aute id magna aliqua ad ad non deserunt sunt."}),e("p",{className:"mt-8 text-pretty text-lg font-medium text-gray-500 sm:text-xl/8",children:"Anim aute id magna aliqua ad ad non deserunt sunt. Qui irure qui lorem cupidatat commodo. Elit sunt amet fugiat veniam occaecat."}),e("div",{className:"mt-10 flex items-center justify-center gap-x-6",children:e("div",{className:"mt-6 px-10 grid grid-cols-1 gap-8 lg:grid-cols-3",children:t.tiles.map(a=>e(l,{url:a.slug,title:a.title,mainImage:a.mainImage,excerpt:a.excerpt},a.slug))})})]})})}),e("div",{"aria-hidden":"true",className:"absolute inset-x-0 top-[calc(100%-13rem)] -z-10 transform-gpu overflow-hidden blur-3xl sm:top-[calc(100%-30rem)]",children:e("div",{style:{clipPath:"polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)"},className:"relative left-[calc(50%+3rem)] aspect-[1155/678] w-[36.125rem] -translate-x-1/2 bg-gradient-to-tr from-[#ff80b5] to-[#9089fc] opacity-30 sm:left-[calc(50%+36rem)] sm:w-[72.1875rem]"})})]})})]}),e(m,{})]})}export{n as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as N}from"./chunk-Y5VTKEKS.mjs";import{a as E,f as T}from"./chunk-CGBVZQYY.mjs";import{a as C}from"./chunk-BSQVKZCW.mjs";import{a as M}from"./chunk-QOIH63J3.mjs";import{a as I,b as H,c as P,d as B}from"./chunk-OAOCXXC2.mjs";import{b as L}from"./chunk-GLEWUUGS.mjs";import{a as i}from"./chunk-NIQ4466A.mjs";import{a as _}from"./chunk-FRWX5YES.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=_(),[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(I,{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(E,{open:p,onOpenChange:b,...s,children:o(T,{"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(L,{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(M,{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(N,{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(H,{children:[o(P,{asChild:!0,children:v}),o(B,{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};
4
+ import{a as C}from"./chunk-BSQVKZCW.mjs";import{a as N}from"./chunk-Y5VTKEKS.mjs";import{a as E,f as T}from"./chunk-CGBVZQYY.mjs";import{a as M}from"./chunk-QOIH63J3.mjs";import{a as I,b as H,c as P,d as B}from"./chunk-OAOCXXC2.mjs";import{b as L}from"./chunk-GLEWUUGS.mjs";import{a as i}from"./chunk-NIQ4466A.mjs";import{a as _}from"./chunk-FRWX5YES.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=_(),[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(I,{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(E,{open:p,onOpenChange:b,...s,children:o(T,{"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(L,{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(M,{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(N,{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(H,{children:[o(P,{asChild:!0,children:v}),o(B,{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,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{c as v,h as w,i as B,j as P,k as T,l as s,m as b,o as u,p as o,q as n,r as p,v as g,w as y,x as M}from"./chunk-IPHHUHS3.mjs";import{a as C}from"./chunk-BSQVKZCW.mjs";import{a as d,b as c,c as m}from"./chunk-YNCJATT7.mjs";import{a as h}from"./chunk-5VW5YOZB.mjs";import{PencilLine as z,ChevronDown as x,FilePlus as E,Edit as H,Printer as _}from"lucide-react";import $ from"clsx";import{Fragment as A,jsx as e,jsxs as a}from"react/jsx-runtime";var q=()=>e(h,{iconName:"github",size:"10x"});function Z({relatedContent:i,tableOfContents:N,editorComponent:k,loading:S=!1,editMode:G=!1,onAddDocument:L,onEditDocument:O,onPrintDocument:D,onGithubClick:I,onNavClick:f,LinkComponent:R,...F}){let j=R?t=>e(R,{...t}):f?({item:t,children:r,...l})=>e("button",{onClick:()=>f&&f(t),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...l,children:r}):t=>e("a",{href:t.href,...t});return a(v,{side:"right",variant:"inset",...F,children:[a(w,{className:"border-b border-sidebar-border",children:[a(o,{className:"flex-row space-x-1",children:[e(n,{children:a(p,{onClick:L,children:[e(E,{})," ",e("span",{children:"Add Document"})]})}),I&&e(n,{children:e(p,{onClick:I,tooltip:"Open in GitHub",children:e(q,{})})})]}),a(o,{className:"flex-row space-x-1",children:[e(n,{className:"w-5/12",children:a(p,{onClick:()=>O(),variant:G?"outline":"default",className:$(G&&"text-accent"),children:[e(H,{})," ",e("span",{children:"Edit"})]})}),e(n,{className:"w-5/12",children:a(p,{onClick:D,children:[e(_,{})," ",e("span",{children:"Print"})]})})]})]}),k&&a(A,{children:[e(d,{defaultOpen:!0,className:"group/collapsible",children:a(s,{children:[e(b,{asChild:!0,children:a(c,{children:["Editor Controls",e(x,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),e(u,{children:e(m,{children:k})})]})}),e(P,{className:"mx-0"})]}),a(T,{className:"overflow-auto",children:[S&&a(A,{children:[a(s,{children:[e(b,{children:"Related Content"}),e(u,{children:e(o,{children:Array.from({length:3}).map((t,r)=>e(n,{children:e(C,{className:"bg-gray-200 w-full h-10"})},r))})})]}),a(s,{children:[e(b,{children:"Table of Contents"}),e(u,{children:e(o,{children:Array.from({length:3}).map((t,r)=>e(n,{children:e(C,{className:"bg-gray-200 w-full h-10"})},r))})})]})]}),i&&!S&&Object.keys(i).length>0&&e(d,{defaultOpen:!0,className:"group/collapsible",children:a(s,{children:[e(b,{asChild:!0,children:a(c,{children:["Related Content",e(x,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),e(u,{children:e(m,{children:e(o,{children:i&&Object.keys(i).map(t=>a(n,{children:[a("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",t.charAt(0).toUpperCase()+t.slice(1)]}),t&&i[t]&&e(g,{children:i[t].map(r=>e(y,{children:e(M,{asChild:!0,isActive:!1,size:"sm",children:a(j,{href:r.url,item:r,className:"flex justify-between items-center w-full text-xs",children:[e("span",{children:r.label}),r.type==="note"&&e(z,{className:"ml-2 text-gray-400 !important",size:16}),r.type==="draft"&&e(h,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},r.label))})]},t))})})})]})}),N&&!S&&e(d,{defaultOpen:!0,className:"group/collapsible",children:a(s,{children:[e(b,{asChild:!0,children:a(c,{children:["Table of Contents",e(x,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),e(u,{children:e(m,{children:e(o,{children:N.map(t=>{var r;return a(n,{children:[e(p,{asChild:!0,children:e("a",{href:`#${t.url}`,className:"text-xs",children:t.title})}),(r=t.items)!=null&&r.length?e(g,{children:t.items.map(l=>e(y,{children:e(M,{asChild:!0,isActive:l.isActive,size:"sm",children:e("a",{href:`#${l.url}`,className:"flex justify-between items-center w-full text-xs",children:e("span",{children:l.title})})})},l.title))}):null]},t.title)})})})})]})})]}),e(B,{})]})}export{Z as a};
4
+ import{c as v,h as w,i as B,j as P,k as T,l as s,m as b,o as u,p as o,q as n,r as p,v as g,w as y,x as M}from"./chunk-D43ENVPX.mjs";import{a as C}from"./chunk-BSQVKZCW.mjs";import{a as d,b as c,c as m}from"./chunk-YNCJATT7.mjs";import{a as h}from"./chunk-5VW5YOZB.mjs";import{PencilLine as z,ChevronDown as x,FilePlus as E,Edit as H,Printer as _}from"lucide-react";import $ from"clsx";import{Fragment as A,jsx as e,jsxs as a}from"react/jsx-runtime";var q=()=>e(h,{iconName:"github",size:"10x"});function Z({relatedContent:i,tableOfContents:N,editorComponent:k,loading:S=!1,editMode:G=!1,onAddDocument:L,onEditDocument:O,onPrintDocument:D,onGithubClick:I,onNavClick:f,LinkComponent:R,...F}){let j=R?t=>e(R,{...t}):f?({item:t,children:r,...l})=>e("button",{onClick:()=>f&&f(t),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...l,children:r}):t=>e("a",{href:t.href,...t});return a(v,{side:"right",variant:"inset",...F,children:[a(w,{className:"border-b border-sidebar-border",children:[a(o,{className:"flex-row space-x-1",children:[e(n,{children:a(p,{onClick:L,children:[e(E,{})," ",e("span",{children:"Add Document"})]})}),I&&e(n,{children:e(p,{onClick:I,tooltip:"Open in GitHub",children:e(q,{})})})]}),a(o,{className:"flex-row space-x-1",children:[e(n,{className:"w-5/12",children:a(p,{onClick:()=>O(),variant:G?"outline":"default",className:$(G&&"text-accent"),children:[e(H,{})," ",e("span",{children:"Edit"})]})}),e(n,{className:"w-5/12",children:a(p,{onClick:D,children:[e(_,{})," ",e("span",{children:"Print"})]})})]})]}),k&&a(A,{children:[e(d,{defaultOpen:!0,className:"group/collapsible",children:a(s,{children:[e(b,{asChild:!0,children:a(c,{children:["Editor Controls",e(x,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),e(u,{children:e(m,{children:k})})]})}),e(P,{className:"mx-0"})]}),a(T,{className:"overflow-auto",children:[S&&a(A,{children:[a(s,{children:[e(b,{children:"Related Content"}),e(u,{children:e(o,{children:Array.from({length:3}).map((t,r)=>e(n,{children:e(C,{className:"bg-gray-200 w-full h-10"})},r))})})]}),a(s,{children:[e(b,{children:"Table of Contents"}),e(u,{children:e(o,{children:Array.from({length:3}).map((t,r)=>e(n,{children:e(C,{className:"bg-gray-200 w-full h-10"})},r))})})]})]}),i&&!S&&Object.keys(i).length>0&&e(d,{defaultOpen:!0,className:"group/collapsible",children:a(s,{children:[e(b,{asChild:!0,children:a(c,{children:["Related Content",e(x,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),e(u,{children:e(m,{children:e(o,{children:i&&Object.keys(i).map(t=>a(n,{children:[a("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",t.charAt(0).toUpperCase()+t.slice(1)]}),t&&i[t]&&e(g,{children:i[t].map(r=>e(y,{children:e(M,{asChild:!0,isActive:!1,size:"sm",children:a(j,{href:r.url,item:r,className:"flex justify-between items-center w-full text-xs",children:[e("span",{children:r.label}),r.type==="note"&&e(z,{className:"ml-2 text-gray-400 !important",size:16}),r.type==="draft"&&e(h,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},r.label))})]},t))})})})]})}),N&&!S&&e(d,{defaultOpen:!0,className:"group/collapsible",children:a(s,{children:[e(b,{asChild:!0,children:a(c,{children:["Table of Contents",e(x,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),e(u,{children:e(m,{children:e(o,{children:N.map(t=>{var r;return a(n,{children:[e(p,{asChild:!0,children:e("a",{href:`#${t.url}`,className:"text-xs",children:t.title})}),(r=t.items)!=null&&r.length?e(g,{children:t.items.map(l=>e(y,{children:e(M,{asChild:!0,isActive:l.isActive,size:"sm",children:e("a",{href:`#${l.url}`,className:"flex justify-between items-center w-full text-xs",children:e("span",{children:l.title})})})},l.title))}):null]},t.title)})})})})]})})]}),e(B,{})]})}export{Z as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{c as k,h as R,i as v,k as S,l as f,o as x,p as u,q as c,r as y,s as w,v as P,w as B,x as L}from"./chunk-IPHHUHS3.mjs";import{a as n}from"./chunk-BSQVKZCW.mjs";import{a as g,b as N,c as M}from"./chunk-YNCJATT7.mjs";import{ChevronRight as A}from"lucide-react";import T from"clsx";import{Fragment as H,jsx as e,jsxs as i}from"react/jsx-runtime";function J({mainNav:o,secondaryNav:l,title:b,subTitle:a,pathName:p,menuHeading:d,onNavClick:s,loading:r=!1,LinkComponent:h,...F}){let C=h?t=>e(h,{...t}):s?({href:t,children:m,...I})=>e("button",{onClick:()=>s&&s(t),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...I,children:m}):t=>e("a",{...t});return i(k,{...F,variant:"inset",children:[e(R,{children:e(u,{children:e(c,{children:r?i("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[e(n,{className:"bg-gray-200 my-2 w-full h-7"}),e(n,{className:"bg-gray-200 w-3/4 my-2 h-5"})]}):i("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[e("span",{className:"truncate font-semibold",children:b}),a&&e("span",{className:"truncate text-sm",children:a})]})})})}),r&&i(S,{children:[e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"})]}),i(S,{children:[o&&!r&&o.map((t,m)=>e(G,{subNav:t,pathName:p,Link:C},m)),e(f,{className:"mt-auto",children:e(x,{children:e(u,{children:l&&!r&&l.map(t=>e(c,{children:e(y,{asChild:!0,size:"sm",children:i(C,{href:t.url||"",children:[t.icon&&e(t.icon,{}),e("span",{children:t.label})]})})},t.label))})})})]}),e(v,{})]})}function G({subNav:o,pathName:l,Link:b}){var d,s;let a=o,p=!1;return a.links&&a.links.map(r=>{r.url===l&&(p=!0)}),e(g,{defaultOpen:!0,className:"group/collapsible",children:e(f,{className:"py-0",children:e(u,{children:e(g,{asChild:!0,defaultOpen:a.isActive,children:i(c,{children:[e(y,{asChild:!0,tooltip:a.label,className:T(p&&"font-bold text-accent"),children:i(b,{href:a.url,children:[a.icon&&e(a.icon,{}),e("span",{children:a.label})]})}),(d=a.links)!=null&&d.length?i(H,{children:[e(N,{asChild:!0,children:i(w,{className:"data-[state=open]:rotate-90",children:[e(A,{}),e("span",{className:"sr-only",children:"Toggle"})]})}),e(M,{children:e(P,{children:(s=a.links)==null?void 0:s.map(r=>e(B,{children:e(L,{asChild:!0,className:T(r.url===l&&"font-bold text-accent"),children:e(b,{href:r.url,children:e("span",{children:r.label})})})},r.label))})})]}):null]})},a.label)})})})}export{J as a};
4
+ import{c as k,h as R,i as v,k as S,l as f,o as x,p as u,q as c,r as y,s as w,v as P,w as B,x as L}from"./chunk-D43ENVPX.mjs";import{a as n}from"./chunk-BSQVKZCW.mjs";import{a as g,b as N,c as M}from"./chunk-YNCJATT7.mjs";import{ChevronRight as A}from"lucide-react";import T from"clsx";import{Fragment as H,jsx as e,jsxs as i}from"react/jsx-runtime";function J({mainNav:o,secondaryNav:l,title:b,subTitle:a,pathName:p,menuHeading:d,onNavClick:s,loading:r=!1,LinkComponent:h,...F}){let C=h?t=>e(h,{...t}):s?({href:t,children:m,...I})=>e("button",{onClick:()=>s&&s(t),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...I,children:m}):t=>e("a",{...t});return i(k,{...F,variant:"inset",children:[e(R,{children:e(u,{children:e(c,{children:r?i("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[e(n,{className:"bg-gray-200 my-2 w-full h-7"}),e(n,{className:"bg-gray-200 w-3/4 my-2 h-5"})]}):i("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[e("span",{className:"truncate font-semibold",children:b}),a&&e("span",{className:"truncate text-sm",children:a})]})})})}),r&&i(S,{children:[e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"})]}),i(S,{children:[o&&!r&&o.map((t,m)=>e(G,{subNav:t,pathName:p,Link:C},m)),e(f,{className:"mt-auto",children:e(x,{children:e(u,{children:l&&!r&&l.map(t=>e(c,{children:e(y,{asChild:!0,size:"sm",children:i(C,{href:t.url||"",children:[t.icon&&e(t.icon,{}),e("span",{children:t.label})]})})},t.label))})})})]}),e(v,{})]})}function G({subNav:o,pathName:l,Link:b}){var d,s;let a=o,p=!1;return a.links&&a.links.map(r=>{r.url===l&&(p=!0)}),e(g,{defaultOpen:!0,className:"group/collapsible",children:e(f,{className:"py-0",children:e(u,{children:e(g,{asChild:!0,defaultOpen:a.isActive,children:i(c,{children:[e(y,{asChild:!0,tooltip:a.label,className:T(p&&"font-bold text-accent"),children:i(b,{href:a.url,children:[a.icon&&e(a.icon,{}),e("span",{children:a.label})]})}),(d=a.links)!=null&&d.length?i(H,{children:[e(N,{asChild:!0,children:i(w,{className:"data-[state=open]:rotate-90",children:[e(A,{}),e("span",{className:"sr-only",children:"Toggle"})]})}),e(M,{children:e(P,{children:(s=a.links)==null?void 0:s.map(r=>e(B,{children:e(L,{asChild:!0,className:T(r.url===l&&"font-bold text-accent"),children:e(b,{href:r.url,children:e("span",{children:r.label})})})},r.label))})})]}):null]})},a.label)})})})}export{J as a};
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+
3
+ import{a as i,b as m,c as d}from"./chunk-SBM5HULF.mjs";import{b as p}from"./chunk-Q6SEVCRG.mjs";import{a as v,b as g,c as h,e as w}from"./chunk-D76EO57Z.mjs";import{CalendarDays as b,Cake as C,Award as f,PartyPopper as N}from"lucide-react";import{jsx as a,jsxs as e}from"react/jsx-runtime";function k({eventType:r="birthday",date:n="",title:s="",description:o="",avatarSrc:c}){let y=t=>{switch(t){case"birthday":return a(C,{className:"h-4 w-4"});case"workAnniversary":return a(f,{className:"h-4 w-4"});case"companyEvent":return a(N,{className:"h-4 w-4"});default:return a(b,{className:"h-4 w-4"})}},l=t=>{switch(t){case"birthday":return"bg-brand-one";case"workAnniversary":return"bg-brand-two";case"companyEvent":return"bg-brand-three";default:return"from-gray-500 to-slate-500"}};return e(v,{className:`w-full max-w-md overflow-hidden bg-gradient-to-br ${l(r)}`,children:[e(g,{className:"flex flex-row items-center gap-3 text-white",children:[c&&e(i,{className:"h-14 w-14 border-2 border-white",children:[a(m,{src:c,alt:s||"Event"}),a(d,{className:"bg-white text-gray-900",children:s?s.charAt(0).toUpperCase():"?"})]}),e("div",{className:"flex flex-col",children:[a(h,{className:"text-xl",children:s||"Untitled Event"}),e("p",{className:"text-sm text-white/80",children:[a(b,{className:"mr-1 inline-block h-4 w-4"}),n?new Date(n).toLocaleDateString():"Date not specified"]})]})]}),e(w,{className:"bg-white bg-opacity-80 p-4",children:[o&&a("p",{className:"mb-2 text-sm text-gray-700",children:o}),e(p,{variant:"secondary",className:`${l(r)} text-white/80`,children:[y(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};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as d,b as o,c as i,d as t,e as m,f as l}from"./chunk-AWFQEK7A.mjs";import{a as b}from"./chunk-3YZN4MJB.mjs";import{a as p}from"./chunk-LBKMUSVR.mjs";import{a as S}from"./chunk-WMZYFRHZ.mjs";import{b as s,d as c,f as u}from"./chunk-IPHHUHS3.mjs";import{a as n}from"./chunk-Y5VTKEKS.mjs";import{a as f}from"./chunk-XWTX2W5V.mjs";import{jsx as e,jsxs as r}from"react/jsx-runtime";function h({...a}){return r("div",{className:"flex fixed flex-col w-screen h-screen max-h-screen overflow-auto overscroll-contain",children:[e(f,{...a.header}),r(s,{className:"top-14 mb-4 h-full max-h-[calc(100vh-3.5rem)] flex-1 flex-row overflow-y-clip",children:[e(p,{...a.sidebarLeft,className:"flex-none"}),r(u,{className:"grow overflow-hidden",children:[e("header",{className:"flex h-16 shrink-0 items-center gap-2",children:r("div",{className:"flex items-center gap-2 px-4",children:[e(c,{className:"-ml-1"}),e(n,{orientation:"vertical",className:"mr-2 h-4"}),e(d,{children:r(o,{children:[e(i,{className:"hidden md:block",children:e(t,{href:"#",children:"Building Your Application"})}),e(l,{className:"hidden md:block"}),e(i,{children:e(m,{children:"Data Fetching"})})]})})]})}),r("div",{className:"flex flex-1 flex-col gap-4 p-4 pt-0",children:[r("div",{className:"grid auto-rows-min gap-4 md:grid-cols-3",children:[e("div",{className:"aspect-video rounded-xl bg-muted/50"}),e("div",{className:"aspect-video rounded-xl bg-muted/50"}),e("div",{className:"aspect-video rounded-xl bg-muted/50"})]}),e("div",{className:"flex-1 rounded-xl bg-muted/50 md:min-h-min"})]})]}),e(S,{...a.sidebarRight,className:"flex-none"})]}),e(b,{})]})}export{h as a};
4
+ import{a as d,b as o,c as i,d as t,e as m,f as l}from"./chunk-AWFQEK7A.mjs";import{a as b}from"./chunk-3YZN4MJB.mjs";import{a as p}from"./chunk-IE2A7UT3.mjs";import{a as S}from"./chunk-FEBVOLWP.mjs";import{b as s,d as c,f as u}from"./chunk-D43ENVPX.mjs";import{a as n}from"./chunk-Y5VTKEKS.mjs";import{a as f}from"./chunk-XWTX2W5V.mjs";import{jsx as e,jsxs as r}from"react/jsx-runtime";function h({...a}){return r("div",{className:"flex fixed flex-col w-screen h-screen max-h-screen overflow-auto overscroll-contain",children:[e(f,{...a.header}),r(s,{className:"top-14 mb-4 h-full max-h-[calc(100vh-3.5rem)] flex-1 flex-row overflow-y-clip",children:[e(p,{...a.sidebarLeft,className:"flex-none"}),r(u,{className:"grow overflow-hidden",children:[e("header",{className:"flex h-16 shrink-0 items-center gap-2",children:r("div",{className:"flex items-center gap-2 px-4",children:[e(c,{className:"-ml-1"}),e(n,{orientation:"vertical",className:"mr-2 h-4"}),e(d,{children:r(o,{children:[e(i,{className:"hidden md:block",children:e(t,{href:"#",children:"Building Your Application"})}),e(l,{className:"hidden md:block"}),e(i,{children:e(m,{children:"Data Fetching"})})]})})]})}),r("div",{className:"flex flex-1 flex-col gap-4 p-4 pt-0",children:[r("div",{className:"grid auto-rows-min gap-4 md:grid-cols-3",children:[e("div",{className:"aspect-video rounded-xl bg-muted/50"}),e("div",{className:"aspect-video rounded-xl bg-muted/50"}),e("div",{className:"aspect-video rounded-xl bg-muted/50"})]}),e("div",{className:"flex-1 rounded-xl bg-muted/50 md:min-h-min"})]})]}),e(S,{...a.sidebarRight,className:"flex-none"})]}),e(b,{})]})}export{h as a};
@@ -1 +1 @@
1
- import{a as m}from"./chunk-YPP62UKD.mjs";import{a as x}from"./chunk-XWTX2W5V.mjs";import{a as s}from"./chunk-OD4RCKMK.mjs";import{a as o}from"./chunk-VZXLXNVY.mjs";import{a as d}from"./chunk-IQPZEEYJ.mjs";import{a}from"./chunk-72BBXZKW.mjs";import{Fragment as n,jsx as e,jsxs as l}from"react/jsx-runtime";function p({...t}){return e(n,{children:l("div",{className:"flex min-h-full flex-col",children:[e("div",{className:"relative isolate"}),e(x,{...t.header}),e(d,{...t.motd}),l("div",{className:"mx-auto w-full max-w-screen-2xl grow lg:flex xl:px-2",children:[l("div",{className:"flex-1 xl:flex",children:[e("div",{className:"border-b border-gray-200 px-4 py-6 sm:px-6 lg:pl-8 xl:w-64 xl:shrink-0 xl:border-b-0 xl:border-r xl:pl-6",children:t.customers.map((r,i)=>e("div",{className:"py-2 w-full flex justify-center",children:e(o,{...r})},i))}),l("div",{className:"px-4 py-4 sm:px-6 lg:pl-8 xl:flex-1 xl:pl-6",children:[l("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:[e(a,{mainImage:"/placeholder/ai.png",title:"AI Enablement",color:"primary"}),e(a,{mainImage:"/placeholder/finops.png",title:"FinOps",color:"primary2"}),e(a,{mainImage:"/placeholder/metahuman.png",title:"Metahumans",color:"primary3"})]}),e("h1",{className:"text-balance text-3xl m-5 font-semibold tracking-tight text-primary sm:text-5xl",children:"News & Updates"}),e(m,{})]})]}),l("div",{className:"shrink-0 border-t border-gray-200 px-4 py-4 sm:px-4 lg:w-96 lg:border-l lg:border-t-0 lg:pr-8 xl:pr-6",children:[e("div",{className:"mx-auto max-w-7xl",children:l("div",{className:"relative isolate overflow-hidden bg-gradient-to-br from-gray-900 via-brand-one to-brand-two px-2 py-4 text-center shadow-2xl sm:rounded-xl sm:px-2",children:[e("h2",{className:"text-balance text-xl font-semibold tracking-tight text-white sm:text-2xl",children:"Ways of working"}),e("p",{className:"mx-3 mt-4 max-w-xl text-pretty text-lg/8 text-gray-300",children:"Guides, Templates and Tools to help you work smarter."}),e("div",{className:"mt-4 flex items-center justify-center gap-x-6",children:e("a",{href:"#",className:"rounded-md bg-white px-3.5 py-2.5 text-sm font-semibold text-gray-900 shadow-sm hover:bg-accent focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white",children:"Get started"})})]})}),e("div",{className:"mx-auto max-w-7xl flex flex-col items-center",children:t.events.map((r,i)=>e("div",{className:"py-2 w-full flex justify-center",children:e(s,{...r})},i))})]})]})]})})}export{p as a};
1
+ import{a as m}from"./chunk-YPP62UKD.mjs";import{a as x}from"./chunk-XWTX2W5V.mjs";import{a as s}from"./chunk-LQZTCLMG.mjs";import{a as o}from"./chunk-VZXLXNVY.mjs";import{a as d}from"./chunk-IQPZEEYJ.mjs";import{a}from"./chunk-72BBXZKW.mjs";import{Fragment as n,jsx as e,jsxs as l}from"react/jsx-runtime";function p({...t}){return e(n,{children:l("div",{className:"flex min-h-full flex-col",children:[e("div",{className:"relative isolate"}),e(x,{...t.header}),e(d,{...t.motd}),l("div",{className:"mx-auto w-full max-w-screen-2xl grow lg:flex xl:px-2",children:[l("div",{className:"flex-1 xl:flex",children:[e("div",{className:"border-b border-gray-200 px-4 py-6 sm:px-6 lg:pl-8 xl:w-64 xl:shrink-0 xl:border-b-0 xl:border-r xl:pl-6",children:t.customers.map((r,i)=>e("div",{className:"py-2 w-full flex justify-center",children:e(o,{...r})},i))}),l("div",{className:"px-4 py-4 sm:px-6 lg:pl-8 xl:flex-1 xl:pl-6",children:[l("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:[e(a,{mainImage:"/placeholder/ai.png",title:"AI Enablement",color:"primary"}),e(a,{mainImage:"/placeholder/finops.png",title:"FinOps",color:"primary2"}),e(a,{mainImage:"/placeholder/metahuman.png",title:"Metahumans",color:"primary3"})]}),e("h1",{className:"text-balance text-3xl m-5 font-semibold tracking-tight text-primary sm:text-5xl",children:"News & Updates"}),e(m,{})]})]}),l("div",{className:"shrink-0 border-t border-gray-200 px-4 py-4 sm:px-4 lg:w-96 lg:border-l lg:border-t-0 lg:pr-8 xl:pr-6",children:[e("div",{className:"mx-auto max-w-7xl",children:l("div",{className:"relative isolate overflow-hidden bg-gradient-to-br from-gray-900 via-brand-one to-brand-two px-2 py-4 text-center shadow-2xl sm:rounded-xl sm:px-2",children:[e("h2",{className:"text-balance text-xl font-semibold tracking-tight text-white sm:text-2xl",children:"Ways of working"}),e("p",{className:"mx-3 mt-4 max-w-xl text-pretty text-lg/8 text-gray-300",children:"Guides, Templates and Tools to help you work smarter."}),e("div",{className:"mt-4 flex items-center justify-center gap-x-6",children:e("a",{href:"#",className:"rounded-md bg-white px-3.5 py-2.5 text-sm font-semibold text-gray-900 shadow-sm hover:bg-accent focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white",children:"Get started"})})]})}),e("div",{className:"mx-auto max-w-7xl flex flex-col items-center",children:t.events.map((r,i)=>e("div",{className:"py-2 w-full flex justify-center",children:e(s,{...r})},i))})]})]})]})})}export{p as a};
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  'use client'
3
3
 
4
- "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});
4
+ "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"bg-brand-one";case"workAnniversary":return"bg-brand-two";case"companyEvent":return"bg-brand-three";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:`${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 +1 @@
1
- import{a}from"../../chunk-OD4RCKMK.mjs";import"../../chunk-SBM5HULF.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-D76EO57Z.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-D2WXBUVJ.mjs";export{a as EventCard};
1
+ import{a}from"../../chunk-LQZTCLMG.mjs";import"../../chunk-SBM5HULF.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-D76EO57Z.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-D2WXBUVJ.mjs";export{a as EventCard};
@@ -2,4 +2,4 @@
2
2
  "use strict";
3
3
  "use strict";
4
4
 
5
- "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});
5
+ "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"bg-brand-one";case"workAnniversary":return"bg-brand-two";case"companyEvent":return"bg-brand-three";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:`${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 +1 @@
1
- import{a as t}from"../../chunk-OD4RCKMK.mjs";import"../../chunk-SBM5HULF.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-D76EO57Z.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-D2WXBUVJ.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-LQZTCLMG.mjs";import"../../chunk-SBM5HULF.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-D76EO57Z.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-D2WXBUVJ.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};