@tenerife.music/ui 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (143) hide show
  1. package/dist/ThemeProvider-CaUX_Jam.cjs +2 -0
  2. package/dist/ThemeProvider-ltuW-773.js +1227 -0
  3. package/dist/animation/index.d.ts +9 -0
  4. package/dist/animation/index.d.ts.map +1 -0
  5. package/dist/animation/presets.d.ts +304 -0
  6. package/dist/animation/presets.d.ts.map +1 -0
  7. package/dist/animation/tas.d.ts +80 -0
  8. package/dist/animation/tas.d.ts.map +1 -0
  9. package/dist/animation/types.d.ts +106 -0
  10. package/dist/animation/types.d.ts.map +1 -0
  11. package/dist/animation/utils.d.ts +7 -0
  12. package/dist/animation/utils.d.ts.map +1 -0
  13. package/dist/components/SectionBuilder.d.ts +37 -0
  14. package/dist/components/SectionBuilder.d.ts.map +1 -0
  15. package/dist/components/SectionBuilder.presets.d.ts +229 -0
  16. package/dist/components/SectionBuilder.presets.d.ts.map +1 -0
  17. package/dist/components/SectionBuilder.types.d.ts +327 -0
  18. package/dist/components/SectionBuilder.types.d.ts.map +1 -0
  19. package/dist/components/auth/ProfileCard.d.ts.map +1 -1
  20. package/dist/components/cards/EventCard.d.ts +32 -31
  21. package/dist/components/cards/EventCard.d.ts.map +1 -1
  22. package/dist/components/cards/VenueCard.d.ts +32 -33
  23. package/dist/components/cards/VenueCard.d.ts.map +1 -1
  24. package/dist/components/data/List.d.ts.map +1 -1
  25. package/dist/components/data/Table.d.ts.map +1 -1
  26. package/dist/components/data/Timeline.d.ts.map +1 -1
  27. package/dist/components/feedback/Alert.d.ts +1 -1
  28. package/dist/components/feedback/Alert.d.ts.map +1 -1
  29. package/dist/components/feedback/Progress.d.ts.map +1 -1
  30. package/dist/components/filters/FilterSelect.d.ts.map +1 -1
  31. package/dist/components/image/Image.d.ts.map +1 -1
  32. package/dist/components/layout/Box.d.ts +82 -0
  33. package/dist/components/layout/Box.d.ts.map +1 -0
  34. package/dist/components/layout/Container.d.ts.map +1 -1
  35. package/dist/components/layout/Flex.d.ts +27 -6
  36. package/dist/components/layout/Flex.d.ts.map +1 -1
  37. package/dist/components/layout/Grid.d.ts +42 -3
  38. package/dist/components/layout/Grid.d.ts.map +1 -1
  39. package/dist/components/layout/Navbar.d.ts +2 -2
  40. package/dist/components/layout/Navbar.d.ts.map +1 -1
  41. package/dist/components/layout/Section.d.ts.map +1 -1
  42. package/dist/components/layout/Stack.d.ts +21 -4
  43. package/dist/components/layout/Stack.d.ts.map +1 -1
  44. package/dist/components/layout/index.d.ts +15 -0
  45. package/dist/components/layout/index.d.ts.map +1 -0
  46. package/dist/components/layout/layout.types.d.ts +92 -0
  47. package/dist/components/layout/layout.types.d.ts.map +1 -0
  48. package/dist/components/menus/DropdownMenu.d.ts.map +1 -1
  49. package/dist/components/menus/NavigationMenu.d.ts.map +1 -1
  50. package/dist/components/menus/Tabs.d.ts.map +1 -1
  51. package/dist/components/modals/ConfirmDialog.d.ts +2 -2
  52. package/dist/components/modals/ConfirmDialog.d.ts.map +1 -1
  53. package/dist/components/modals/Modal.d.ts.map +1 -1
  54. package/dist/components/modals/SimpleModal.d.ts +3 -1
  55. package/dist/components/modals/SimpleModal.d.ts.map +1 -1
  56. package/dist/components/navigation/Breadcrumbs.d.ts +1 -0
  57. package/dist/components/navigation/Breadcrumbs.d.ts.map +1 -1
  58. package/dist/components/navigation/Pagination.d.ts +1 -0
  59. package/dist/components/navigation/Pagination.d.ts.map +1 -1
  60. package/dist/components/overlays/OverlayPortal.d.ts.map +1 -1
  61. package/dist/components/overlays/Popover.d.ts +4 -4
  62. package/dist/components/overlays/Popover.d.ts.map +1 -1
  63. package/dist/components/overlays/Tooltip.d.ts +2 -2
  64. package/dist/components/overlays/Tooltip.d.ts.map +1 -1
  65. package/dist/components/primitives/Badge.d.ts +1 -1
  66. package/dist/components/primitives/Badge.d.ts.map +1 -1
  67. package/dist/components/primitives/Card.d.ts.map +1 -1
  68. package/dist/components/primitives/Divider.d.ts.map +1 -1
  69. package/dist/components/primitives/Label.d.ts.map +1 -1
  70. package/dist/components/primitives/Link.d.ts +4 -2
  71. package/dist/components/primitives/Link.d.ts.map +1 -1
  72. package/dist/components/primitives/ThemeSwitch.d.ts +2 -2
  73. package/dist/components/primitives/ThemeSwitch.d.ts.map +1 -1
  74. package/dist/components/primitives/Typography.d.ts +2 -2
  75. package/dist/components/primitives/Typography.d.ts.map +1 -1
  76. package/dist/components/search/SearchBar.d.ts.map +1 -1
  77. package/dist/components/sections/ArticlesSection.d.ts +14 -4
  78. package/dist/components/sections/ArticlesSection.d.ts.map +1 -1
  79. package/dist/components/sections/CTASection.d.ts +38 -0
  80. package/dist/components/sections/CTASection.d.ts.map +1 -0
  81. package/dist/components/sections/FeatureSection.d.ts +34 -0
  82. package/dist/components/sections/FeatureSection.d.ts.map +1 -0
  83. package/dist/components/sections/HeroSection.d.ts +28 -0
  84. package/dist/components/sections/HeroSection.d.ts.map +1 -0
  85. package/dist/components/sections/TrendingSection.d.ts +15 -3
  86. package/dist/components/sections/TrendingSection.d.ts.map +1 -1
  87. package/dist/components/toasts/Toast.d.ts +1 -1
  88. package/dist/components/toasts/Toast.d.ts.map +1 -1
  89. package/dist/components/toasts/ToastProvider.d.ts.map +1 -1
  90. package/dist/components/ui/button.d.ts +4 -2
  91. package/dist/components/ui/button.d.ts.map +1 -1
  92. package/dist/components/ui/card.d.ts.map +1 -1
  93. package/dist/components/ui/dialog.d.ts.map +1 -1
  94. package/dist/components/ui/input.d.ts.map +1 -1
  95. package/dist/components/ui/label.d.ts.map +1 -1
  96. package/dist/components/ui/tooltip.d.ts.map +1 -1
  97. package/dist/index.cjs +1 -1
  98. package/dist/index.d.ts +27 -18
  99. package/dist/index.d.ts.map +1 -1
  100. package/dist/index.mjs +3897 -2372
  101. package/dist/lib/a11y.d.ts +16 -0
  102. package/dist/lib/a11y.d.ts.map +1 -0
  103. package/dist/lib/responsive-props.d.ts +64 -0
  104. package/dist/lib/responsive-props.d.ts.map +1 -0
  105. package/dist/motion-4SRNkZlz.cjs +2 -0
  106. package/dist/motion-CuHacXY1.js +722 -0
  107. package/dist/test/animation-utils.d.ts +60 -0
  108. package/dist/test/animation-utils.d.ts.map +1 -0
  109. package/dist/theme/ThemeProvider.d.ts +19 -8
  110. package/dist/theme/ThemeProvider.d.ts.map +1 -1
  111. package/dist/theme/applyMode.d.ts +11 -2
  112. package/dist/theme/applyMode.d.ts.map +1 -1
  113. package/dist/theme/index.cjs +1 -1
  114. package/dist/theme/index.d.ts +3 -0
  115. package/dist/theme/index.d.ts.map +1 -1
  116. package/dist/theme/index.mjs +236 -101
  117. package/dist/theme/loader.d.ts +64 -0
  118. package/dist/theme/loader.d.ts.map +1 -0
  119. package/dist/theme/registry.d.ts +71 -0
  120. package/dist/theme/registry.d.ts.map +1 -0
  121. package/dist/theme/schema.d.ts +125 -0
  122. package/dist/theme/schema.d.ts.map +1 -0
  123. package/dist/themes/brand_engine.d.ts +102 -0
  124. package/dist/themes/brand_engine.d.ts.map +1 -0
  125. package/dist/themes/index.d.ts +3 -0
  126. package/dist/themes/index.d.ts.map +1 -1
  127. package/dist/themes/minimal.d.ts +7 -0
  128. package/dist/themes/minimal.d.ts.map +1 -0
  129. package/dist/themes/neon.d.ts +7 -0
  130. package/dist/themes/neon.d.ts.map +1 -0
  131. package/dist/themes/types.d.ts +220 -5
  132. package/dist/themes/types.d.ts.map +1 -1
  133. package/dist/tokens/css-variables.d.ts +21 -0
  134. package/dist/tokens/css-variables.d.ts.map +1 -1
  135. package/dist/tokens/index.cjs +3 -3
  136. package/dist/tokens/index.mjs +295 -551
  137. package/dist/tokens/motion.d.ts +77 -0
  138. package/dist/tokens/motion.d.ts.map +1 -1
  139. package/package.json +20 -7
  140. package/dist/applyMode-Bh7sEqT6.js +0 -144
  141. package/dist/applyMode-DCenL-Bg.cjs +0 -2
  142. package/dist/colors-BGRiFoSZ.cjs +0 -2
  143. package/dist/colors-ClemXPPi.js +0 -377
package/dist/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ee=require("./colors-BGRiFoSZ.cjs"),j=require("./tokens/index.cjs"),Ce=require("./radius-Cz6tayZG.cjs"),a=require("react/jsx-runtime"),A=require("class-variance-authority"),g=require("react"),Tr=require("clsx"),Dr=require("tailwind-merge"),rt=require("@radix-ui/react-slot"),Er=require("@radix-ui/react-label"),E=require("lucide-react"),se=require("./applyMode-DCenL-Bg.cjs"),Pr=require("@radix-ui/react-dialog"),Rr=require("@radix-ui/react-dropdown-menu"),qr=require("@radix-ui/react-navigation-menu"),Or=require("@radix-ui/react-tabs"),Fr=require("@radix-ui/react-select"),Vr=require("react-dom"),Wr=require("@radix-ui/react-popover"),Ir=require("@radix-ui/react-tooltip");function te(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const m=te(g),at=te(Er),M=te(Pr),k=te(Rr),_=te(qr),le=te(Or),P=te(Fr),fe=te(Wr),je=te(Ir);function l(...e){return Dr.twMerge(Tr.clsx(e))}function nt(e){return new Intl.DateTimeFormat("en-US",{month:"long",day:"numeric",year:"numeric"}).format(new Date(e))}function ot(e){return new Intl.DateTimeFormat("en-US",{hour:"numeric",minute:"2-digit",hour12:!0}).format(new Date(e))}function zr(e){return`${nt(e)} at ${ot(e)}`}function Lr(){return Math.random().toString(36).substr(2,9)}function _r(e,t){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>e(...n),t)}}function Br(e,t){let r;return(...n)=>{r||(e(...n),r=!0,setTimeout(()=>r=!1,t))}}const st=A.cva("inline-flex items-center rounded-full border px-xs py-xs 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 hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Yr({className:e,variant:t,...r}){return a.jsx("div",{className:l(st({variant:t}),e),...r})}const it=A.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),L=m.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},s)=>{const i=n?rt.Slot:"button";return a.jsx(i,{className:l(it({variant:t,size:r,className:e})),ref:s,...o})});L.displayName="Button";const K=m.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:l("rounded-xl border bg-card text-card-foreground shadow",e),...t}));K.displayName="Card";const dt=m.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:l("flex flex-col space-y-xs p-lg",e),...t}));dt.displayName="CardHeader";const lt=m.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:l("font-semibold leading-none tracking-tight",e),...t}));lt.displayName="CardTitle";const ct=m.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:l("text-sm text-muted-foreground",e),...t}));ct.displayName="CardDescription";const Z=m.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:l("p-lg pt-0",e),...t}));Z.displayName="CardContent";const ut=m.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:l("flex items-center p-lg pt-0",e),...t}));ut.displayName="CardFooter";const mt=m.forwardRef(({className:e,orientation:t="horizontal",variant:r="solid",...n},o)=>{const s={solid:"border-solid",dashed:"border-dashed",dotted:"border-dotted"};return a.jsx("div",{ref:o,className:l("border-border",t==="horizontal"?`w-full border-t ${s[r]}`:`h-full border-l ${s[r]}`,e),...n})});mt.displayName="Divider";const pe=m.forwardRef(({className:e,type:t,...r},n)=>a.jsx("input",{type:t,className:l("flex h-9 w-full rounded-md border border-input bg-transparent px-sm py-xs text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...r}));pe.displayName="Input";const $r=A.cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ne=m.forwardRef(({className:e,...t},r)=>a.jsx(at.Root,{ref:r,className:l($r(),e),...t}));ne.displayName=at.Root.displayName;const ft=A.cva("inline-flex items-center justify-center whitespace-nowrap text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"text-primary hover:text-primary/80 underline-offset-4 hover:underline",destructive:"text-destructive hover:text-destructive/80 underline-offset-4 hover:underline",ghost:"text-foreground hover:text-accent-foreground hover:bg-accent rounded-md px-sm py-sm",secondary:"text-secondary-foreground underline-offset-4 hover:underline",button:"bg-primary text-primary-foreground hover:bg-primary/90 rounded-md","button-outline":"border border-input bg-background hover:bg-accent hover:text-accent-foreground rounded-md","button-secondary":"bg-secondary text-secondary-foreground hover:bg-secondary/80 rounded-md"},size:{default:"h-10 px-md py-sm",sm:"h-9 px-sm",lg:"h-11 px-8",icon:"h-10 w-10",none:"h-auto px-0 py-0"}},defaultVariants:{variant:"default",size:"none"}}),oe=m.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},s)=>{const i=n?rt.Slot:"a";return a.jsx(i,{className:l(ft({variant:t,size:r,className:e})),ref:s,...o})});oe.displayName="Link";const pt="tm_mode",ht="tm_mode",gt="theme",xt="data-mode",bt="data-theme",Hr="dark";function wt(e){var o,s;if(((s=(o=globalThis.process)==null?void 0:o.env)==null?void 0:s.NODE_ENV)==="production"||typeof document>"u")return;const r=document.documentElement,n={"data-mode":r.getAttribute(xt),"data-theme":r.getAttribute(bt),darkClass:r.classList.contains(Hr),"--background":getComputedStyle(r).getPropertyValue("--background"),"--tm-primary":getComputedStyle(r).getPropertyValue("--tm-primary")};console.log("[theme-switch]",e,n)}function Ar(e){var n;if(typeof document>"u")return;const r=`; ${document.cookie}`.split(`; ${e}=`);if(r.length===2)return(n=r.pop())==null?void 0:n.split(";")[0]}function Xe(){var n,o;if(typeof document>"u")return"day";const e=document.documentElement.getAttribute(xt);if(e==="day"||e==="night")return e;const t=document.documentElement.getAttribute(bt);if(t==="day"||t==="night")return t;try{const s=window.localStorage.getItem(ht);if(s==="day"||s==="night")return s;const i=window.localStorage.getItem(gt);if(i==="dark")return"night";if(i==="light")return"day"}catch{}const r=Ar(pt);return r==="day"||r==="night"?r:typeof window<"u"&&((o=(n=window.matchMedia)==null?void 0:n.call(window,"(prefers-color-scheme: dark)"))==null?void 0:o.matches)?"night":"day"}function Qe(e){se.applyDocumentMode(e);try{window.localStorage.setItem(ht,e),window.localStorage.setItem(gt,e==="night"?"dark":"light")}catch{}const t=new Date;t.setFullYear(t.getFullYear()+1),document.cookie=`${pt}=${e};expires=${t.toUTCString()};path=/;SameSite=Lax`,wt(`persist:${e}`)}const Gr=({className:e,size:t="md",variant:r="default"})=>{const[n,o]=g.useState(()=>Xe());g.useEffect(()=>{const i=Xe();o(i),Qe(i),wt(`initial:${i}`)},[]);const s=()=>{o(i=>{const d=i==="night"?"day":"night";return Qe(d),d})};return a.jsx(L,{onClick:s,variant:r,size:t==="sm"?"sm":t==="lg"?"lg":"default",className:l(t==="sm"?"h-8 w-8":t==="lg"?"h-12 w-12":"h-10 w-10",e),"aria-label":`Switch to ${n==="night"?"day":"night"} theme`,type:"button",children:n==="night"?a.jsx(E.Sun,{className:"h-4 w-4"}):a.jsx(E.Moon,{className:"h-4 w-4"})})},H=({className:e,children:t,as:r,level:n=1})=>{const o=r||`h${n}`,s={1:"text-4xl font-bold tracking-tight",2:"text-3xl font-bold tracking-tight",3:"text-2xl font-bold tracking-tight",4:"text-xl font-semibold tracking-tight",5:"text-lg font-semibold tracking-tight",6:"text-base font-semibold tracking-tight"};return a.jsx(o,{className:l(s[n],e),children:t})},C=({className:e,children:t,size:r="base",weight:n="normal",color:o="default"})=>{const s={xs:"text-xs",sm:"text-sm",base:"text-base",lg:"text-lg",xl:"text-xl"},i={normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"},d={default:"text-foreground",muted:"text-muted-foreground",primary:"text-primary",destructive:"text-destructive"};return a.jsx("span",{className:l(s[r],i[n],d[o],e),children:t})},Xr=({className:e,children:t,...r})=>a.jsx("p",{className:l("leading-7 [&:not(:first-child)]:mt-lg",e),children:a.jsx(C,{...r,children:t})}),Qr=({className:e,children:t})=>a.jsx("code",{className:l("relative rounded bg-muted px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold",e),children:t}),Ur=({className:e,children:t})=>a.jsx("blockquote",{className:l("mt-lg border-l-2 pl-lg italic",e),children:t}),yt=A.cva("mx-auto px-md",{variants:{size:{sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl","2xl":"max-w-2xl","3xl":"max-w-3xl","4xl":"max-w-4xl","5xl":"max-w-5xl","6xl":"max-w-6xl","7xl":"max-w-7xl",full:"max-w-full"},padding:{none:"px-0",sm:"px-sm",md:"px-md",lg:"px-lg",xl:"px-xl"}},defaultVariants:{size:"7xl",padding:"md"}}),vt=m.forwardRef(({className:e,size:t,padding:r,...n},o)=>a.jsx("div",{ref:o,className:l(yt({size:t,padding:r,className:e})),...n}));vt.displayName="Container";const jt=A.cva("flex",{variants:{direction:{row:"flex-row","row-reverse":"flex-row-reverse",column:"flex-col","column-reverse":"flex-col-reverse"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap","wrap-reverse":"flex-wrap-reverse"},justify:{start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},align:{start:"items-start",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"},gap:{0:"gap-0",1:"gap-xs",2:"gap-sm",3:"gap-sm",4:"gap-md",5:"gap-md",6:"gap-lg",8:"gap-xl",10:"gap-2xl",12:"gap-2xl",16:"gap-3xl",20:"gap-4xl",24:"gap-5xl"}},defaultVariants:{direction:"row",wrap:"nowrap",justify:"start",align:"start",gap:0}}),Nt=m.forwardRef(({className:e,direction:t,wrap:r,justify:n,align:o,gap:s,...i},d)=>a.jsx("div",{ref:d,className:l(jt({direction:t,wrap:r,justify:n,align:o,gap:s,className:e})),...i}));Nt.displayName="Flex";const Jr=({className:e,left:t,right:r,children:n})=>a.jsx("footer",{className:l("w-full border-t bg-background px-md py-lg",e),children:a.jsxs("div",{className:"flex w-full items-center justify-between",children:[t&&a.jsx("div",{className:"flex items-center",children:t}),n&&a.jsx("div",{className:"flex items-center",children:n}),r&&a.jsx("div",{className:"flex items-center",children:r})]})}),St=A.cva("grid",{variants:{cols:{1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",12:"grid-cols-12",none:"grid-cols-none"},rows:{1:"grid-rows-1",2:"grid-rows-2",3:"grid-rows-3",4:"grid-rows-4",5:"grid-rows-5",6:"grid-rows-6",none:"grid-rows-none"},gap:{0:"gap-0",1:"gap-xs",2:"gap-sm",3:"gap-sm",4:"gap-md",5:"gap-md",6:"gap-lg",8:"gap-xl",10:"gap-2xl",12:"gap-2xl",16:"gap-3xl",20:"gap-4xl",24:"gap-5xl"},flow:{row:"grid-flow-row",col:"grid-flow-col",dense:"grid-flow-dense","row-dense":"grid-flow-row-dense","col-dense":"grid-flow-col-dense"}},defaultVariants:{cols:1,rows:"none",gap:0,flow:"row"}}),Ct=m.forwardRef(({className:e,cols:t,rows:r,gap:n,flow:o,...s},i)=>a.jsx("div",{ref:i,className:l(St({cols:t,rows:r,gap:n,flow:o,className:e})),...s}));Ct.displayName="Grid";const Kr=({dayLabel:e,nightLabel:t,dayDescription:r,nightDescription:n,className:o})=>{if(!e||e.trim()==="")throw new Error('ModeHero: "dayLabel" prop is required and cannot be empty');if(!t||t.trim()==="")throw new Error('ModeHero: "nightLabel" prop is required and cannot be empty');if(!r||r.trim()==="")throw new Error('ModeHero: "dayDescription" prop is required and cannot be empty');if(!n||n.trim()==="")throw new Error('ModeHero: "nightDescription" prop is required and cannot be empty');return a.jsx("div",{className:l("rounded-lg bg-gradient-to-r from-blue-500 to-purple-600 p-8 text-white",o),children:a.jsxs("div",{className:"mx-auto max-w-4xl text-center",children:[a.jsx(H,{level:1,className:"mb-md text-4xl font-bold",children:"Tenerife Music Platform"}),a.jsx(C,{size:"xl",className:"mb-8",children:"Discover amazing music events in Tenerife"}),a.jsxs("div",{className:"grid grid-cols-1 gap-lg md:grid-cols-2",children:[a.jsx(K,{className:"border-white/20 bg-white/10 backdrop-blur-sm",children:a.jsxs(Z,{className:"p-lg",children:[a.jsx(H,{level:3,className:"mb-sm text-2xl font-semibold",children:e}),a.jsx(C,{className:"text-white/80",children:r})]})}),a.jsx(K,{className:"border-white/20 bg-white/10 backdrop-blur-sm",children:a.jsxs(Z,{className:"p-lg",children:[a.jsx(H,{level:3,className:"mb-sm text-2xl font-semibold",children:t}),a.jsx(C,{className:"text-white/80",children:n})]})})]})]})})},Zr=({className:e,left:t,right:r,children:n})=>a.jsxs("nav",{className:l("flex w-full items-center justify-between px-md py-sm",e),children:[t&&a.jsx("div",{className:"flex items-center",children:t}),n&&a.jsx("div",{className:"flex items-center",children:n}),r&&a.jsx("div",{className:"flex items-center",children:r})]}),ea=({className:e,children:t,padding:r="md",background:n="default",as:o="section"})=>{const s={none:"",sm:"py-md",md:"py-xl",lg:"py-3xl",xl:"py-4xl"},i={default:"",muted:"bg-muted",card:"bg-card"};return a.jsx(o,{className:l("w-full",s[r],i[n],e),children:t})},kt=A.cva("flex flex-col",{variants:{spacing:{0:"space-y-0",1:"space-y-xs",2:"space-y-sm",3:"space-y-sm",4:"space-y-md",5:"space-y-md",6:"space-y-lg",8:"space-y-xl",10:"space-y-2xl",12:"space-y-2xl",16:"space-y-3xl",20:"space-y-4xl",24:"space-y-5xl"},align:{start:"items-start",end:"items-end",center:"items-center",stretch:"items-stretch"},justify:{start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around"}},defaultVariants:{spacing:4,align:"stretch",justify:"start"}}),Mt=m.forwardRef(({className:e,spacing:t,align:r,justify:n,...o},s)=>a.jsx("div",{ref:s,className:l(kt({spacing:t,align:r,justify:n,className:e})),...o}));Mt.displayName="Stack";const Tt=M.Root,ta=M.Trigger,Dt=M.Portal,ra=M.Close,Pe=m.forwardRef(({className:e,...t},r)=>a.jsx(M.Overlay,{ref:r,className:l("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",e),...t}));Pe.displayName=M.Overlay.displayName;const Re=m.forwardRef(({className:e,children:t,...r},n)=>a.jsxs(Dt,{children:[a.jsx(Pe,{}),a.jsxs(M.Content,{ref:n,className:l("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-md border bg-background p-lg shadow-lg duration-200 sm:rounded-lg",e),...r,children:[t,a.jsxs(M.Close,{className:"absolute right-md top-md rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[a.jsx(E.X,{className:"h-4 w-4"}),a.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Re.displayName=M.Content.displayName;const qe=({className:e,...t})=>a.jsx("div",{className:l("flex flex-col space-y-xs text-center sm:text-left",e),...t});qe.displayName="ModalHeader";const Oe=({className:e,...t})=>a.jsx("div",{className:l("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-sm",e),...t});Oe.displayName="ModalFooter";const Fe=m.forwardRef(({className:e,...t},r)=>a.jsx(M.Title,{ref:r,className:l("text-lg font-semibold leading-none tracking-tight",e),...t}));Fe.displayName=M.Title.displayName;const Ve=m.forwardRef(({className:e,...t},r)=>a.jsx(M.Description,{ref:r,className:l("text-sm text-muted-foreground",e),...t}));Ve.displayName=M.Description.displayName;function Et({isOpen:e,onClose:t,onConfirm:r,title:n,description:o,confirmText:s,cancelText:i,loadingText:d,variant:c="default",isLoading:u=!1}){if(!n||n.trim()==="")throw new Error('ConfirmDialog: "title" prop is required and cannot be empty');if(!o||o.trim()==="")throw new Error('ConfirmDialog: "description" prop is required and cannot be empty');if(!s||s.trim()==="")throw new Error('ConfirmDialog: "confirmText" prop is required and cannot be empty');if(!i||i.trim()==="")throw new Error('ConfirmDialog: "cancelText" prop is required and cannot be empty');const f=()=>{r(),t()};return a.jsx(Tt,{open:e,onOpenChange:t,children:a.jsxs(Re,{children:[a.jsxs(qe,{children:[a.jsx(Fe,{children:n}),a.jsx(Ve,{children:o})]}),a.jsxs(Oe,{children:[a.jsx(L,{variant:"outline",onClick:t,disabled:u,children:i}),a.jsx(L,{variant:c,onClick:f,disabled:u,children:u&&d||s})]})]})})}function aa(){const[e,t]=m.useState({isOpen:!1}),r=m.useCallback(s=>{t({isOpen:!0,...s})},[]),n=m.useCallback(()=>{t({isOpen:!1})},[]),o=m.useMemo(()=>a.jsx(Et,{isOpen:e.isOpen,onClose:n,onConfirm:e.onConfirm||(()=>{}),title:e.title||"",description:e.description||"",confirmText:e.confirmText||"",cancelText:e.cancelText||"",loadingText:e.loadingText,variant:e.variant}),[e,n]);return{showConfirm:r,hideConfirm:n,ConfirmDialog:o}}function na(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,s;for(s=0;s<n.length;s++)o=n[s],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var oa=["color"],sa=g.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=na(e,oa);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),g.createElement("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:n,fillRule:"evenodd",clipRule:"evenodd"}))});const ia=M.Root,da=M.Portal,Pt=m.forwardRef(({className:e,...t},r)=>a.jsx(M.Overlay,{ref:r,className:l("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",e),...t}));Pt.displayName=M.Overlay.displayName;const Rt=m.forwardRef(({className:e,children:t,...r},n)=>a.jsxs(da,{children:[a.jsx(Pt,{}),a.jsxs(M.Content,{ref:n,className:l("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-md border bg-background p-lg shadow-lg duration-200 sm:rounded-lg",e),...r,children:[t,a.jsxs(M.Close,{className:"absolute right-md top-md rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground","aria-label":"Close dialog",children:[a.jsx(sa,{className:"h-4 w-4","aria-hidden":"true"}),a.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Rt.displayName=M.Content.displayName;const qt=({className:e,...t})=>a.jsx("div",{className:l("flex flex-col space-y-xs text-center sm:text-left",e),...t});qt.displayName="DialogHeader";const Ot=m.forwardRef(({className:e,...t},r)=>a.jsx(M.Title,{ref:r,className:l("text-lg font-semibold leading-none tracking-tight",e),...t}));Ot.displayName=M.Title.displayName;const Ft=m.forwardRef(({className:e,...t},r)=>a.jsx(M.Description,{ref:r,className:l("text-sm text-muted-foreground",e),...t}));Ft.displayName=M.Description.displayName;const la=({isOpen:e,onClose:t,title:r,description:n,children:o,className:s,...i})=>a.jsx(ia,{open:e,onOpenChange:d=>!d&&t(),children:a.jsxs(Rt,{className:l("max-w-md",s),...i,children:[(r||n)&&a.jsxs(qt,{children:[r&&a.jsx(Ot,{children:r}),n&&a.jsx(Ft,{children:n})]}),o]})});function ca(e=!1){const[t,r]=g.useState({isOpen:e,data:void 0}),n=g.useCallback(i=>{r({isOpen:!0,data:i})},[]),o=g.useCallback(()=>{r(i=>({...i,isOpen:!1}))},[]),s=g.useCallback(()=>{r(i=>({...i,isOpen:!i.isOpen}))},[]);return{isOpen:t.isOpen,data:t.data,open:n,close:o,toggle:s}}function Vt(){const[e,t]=g.useState({}),r=g.useCallback((d,c)=>{t(u=>({...u,[d]:{isOpen:!0,data:c}}))},[]),n=g.useCallback(d=>{t(c=>({...c,[d]:{isOpen:!1,data:void 0}}))},[]),o=g.useCallback(d=>{t(c=>{var u,f;return{...c,[d]:{isOpen:!((u=c[d])!=null&&u.isOpen),data:(f=c[d])==null?void 0:f.data}}})},[]),s=g.useCallback(d=>{var c;return((c=e[d])==null?void 0:c.isOpen)||!1},[e]),i=g.useCallback(d=>{var c;return(c=e[d])==null?void 0:c.data},[e]);return{openModal:r,closeModal:n,toggleModal:o,isModalOpen:s,getModalData:i}}const Wt=g.createContext(void 0);function ua({children:e}){const t=Vt();return a.jsx(Wt.Provider,{value:t,children:e})}function It(){const e=g.useContext(Wt);if(e===void 0)throw new Error("useModalContext must be used within a ModalProvider");return e}function ma(e,t){return function(n){const{openModal:o,closeModal:s,toggleModal:i,isModalOpen:d,getModalData:c}=It(),u={[`${t}Open`]:()=>o(t),[`${t}Close`]:()=>s(t),[`${t}Toggle`]:()=>i(t),[`is${t}Open`]:d(t),[`${t}Data`]:c(t)};return a.jsx(e,{...n,...u})}}const fa=({isOpen:e,onClose:t,title:r,children:n,className:o,...s})=>e?a.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",...s,children:[a.jsx("div",{className:"fixed inset-0 bg-black/50",onClick:t,"aria-label":"Close modal",role:"button",tabIndex:0,onKeyDown:i=>{(i.key==="Escape"||i.key==="Enter"||i.key===" ")&&(i.preventDefault(),t())}}),a.jsxs("div",{className:l("relative mx-4 w-full max-w-md rounded-lg border bg-card shadow-lg",o),children:[r&&a.jsx("div",{className:"border-b p-6",children:a.jsx("h2",{className:"text-lg font-semibold",children:r})}),a.jsx("div",{className:"p-6",children:n})]})]}):null,pa=k.Root,ha=k.Trigger,ga=k.Group,xa=k.Portal,ba=k.Sub,wa=k.RadioGroup,zt=m.forwardRef(({className:e,inset:t,children:r,...n},o)=>a.jsxs(k.SubTrigger,{ref:o,className:l("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...n,children:[r,a.jsx(E.ChevronRight,{className:"ml-auto h-4 w-4"})]}));zt.displayName=k.SubTrigger.displayName;const Lt=m.forwardRef(({className:e,...t},r)=>a.jsx(k.SubContent,{ref:r,className:l("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg",e),...t}));Lt.displayName=k.SubContent.displayName;const _t=m.forwardRef(({className:e,sideOffset:t=4,...r},n)=>a.jsx(k.Portal,{children:a.jsx(k.Content,{ref:n,sideOffset:t,className:l("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",e),...r})}));_t.displayName=k.Content.displayName;const Bt=m.forwardRef(({className:e,inset:t,...r},n)=>a.jsx(k.Item,{ref:n,className:l("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...r}));Bt.displayName=k.Item.displayName;const Yt=m.forwardRef(({className:e,children:t,checked:r,...n},o)=>a.jsxs(k.CheckboxItem,{ref:o,className:l("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:r,...n,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(k.ItemIndicator,{children:a.jsx(E.Check,{className:"h-4 w-4"})})}),t]}));Yt.displayName=k.CheckboxItem.displayName;const $t=m.forwardRef(({className:e,children:t,...r},n)=>a.jsxs(k.RadioItem,{ref:n,className:l("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(k.ItemIndicator,{children:a.jsx(E.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));$t.displayName=k.RadioItem.displayName;const Ht=m.forwardRef(({className:e,inset:t,...r},n)=>a.jsx(k.Label,{ref:n,className:l("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));Ht.displayName=k.Label.displayName;const At=m.forwardRef(({className:e,...t},r)=>a.jsx(k.Separator,{ref:r,className:l("-mx-1 my-1 h-px bg-muted",e),...t}));At.displayName=k.Separator.displayName;const Gt=({className:e,...t})=>a.jsx("span",{className:l("ml-auto text-xs tracking-widest opacity-60",e),...t});Gt.displayName="DropdownMenuShortcut";const Xt=m.forwardRef(({className:e,children:t,...r},n)=>a.jsxs(_.Root,{ref:n,className:l("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...r,children:[t,a.jsx(We,{})]}));Xt.displayName=_.Root.displayName;const Qt=m.forwardRef(({className:e,...t},r)=>a.jsx(_.List,{ref:r,className:l("group flex flex-1 list-none items-center justify-center space-x-xs",e),...t}));Qt.displayName=_.List.displayName;const ya=_.Item,Ut=A.cva("group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-md py-sm text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"),Jt=m.forwardRef(({className:e,children:t,...r},n)=>a.jsxs(_.Trigger,{ref:n,className:l(Ut(),"group",e),...r,children:[t," ",a.jsx(E.ChevronDown,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));Jt.displayName=_.Trigger.displayName;const Kt=m.forwardRef(({className:e,...t},r)=>a.jsx(_.Content,{ref:r,className:l("data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 left-0 top-0 w-full md:absolute md:w-auto",e),...t}));Kt.displayName=_.Content.displayName;const va=_.Link,We=m.forwardRef(({className:e,...t},r)=>a.jsx("div",{className:l("absolute left-0 top-full flex justify-center"),children:a.jsx(_.Viewport,{className:l("origin-top-center data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:r,...t})}));We.displayName=_.Viewport.displayName;const Zt=m.forwardRef(({className:e,...t},r)=>a.jsx(_.Indicator,{ref:r,className:l("data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden",e),...t,children:a.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));Zt.displayName=_.Indicator.displayName;const ja=le.Root,er=m.forwardRef(({className:e,...t},r)=>a.jsx(le.List,{ref:r,className:l("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));er.displayName=le.List.displayName;const tr=m.forwardRef(({className:e,...t},r)=>a.jsx(le.Trigger,{ref:r,className:l("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...t}));tr.displayName=le.Trigger.displayName;const rr=m.forwardRef(({className:e,...t},r)=>a.jsx(le.Content,{ref:r,className:l("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));rr.displayName=le.Content.displayName;function U(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function de(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const ar=6048e5,Na=864e5;let Sa={};function ke(){return Sa}function ye(e,t){var d,c,u,f;const r=ke(),n=(t==null?void 0:t.weekStartsOn)??((c=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:c.weekStartsOn)??r.weekStartsOn??((f=(u=r.locale)==null?void 0:u.options)==null?void 0:f.weekStartsOn)??0,o=U(e),s=o.getDay(),i=(s<n?7:0)+s-n;return o.setDate(o.getDate()-i),o.setHours(0,0,0,0),o}function Se(e){return ye(e,{weekStartsOn:1})}function nr(e){const t=U(e),r=t.getFullYear(),n=de(e,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);const o=Se(n),s=de(e,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const i=Se(s);return t.getTime()>=o.getTime()?r+1:t.getTime()>=i.getTime()?r:r-1}function Ue(e){const t=U(e);return t.setHours(0,0,0,0),t}function Je(e){const t=U(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function Ca(e,t){const r=Ue(e),n=Ue(t),o=+r-Je(r),s=+n-Je(n);return Math.round((o-s)/Na)}function ka(e){const t=nr(e),r=de(e,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),Se(r)}function Ma(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Ta(e){if(!Ma(e)&&typeof e!="number")return!1;const t=U(e);return!isNaN(Number(t))}function Da(e){const t=U(e),r=de(e,0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}const Ea={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Pa=(e,t,r)=>{let n;const o=Ea[e];return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function De(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const Ra={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},qa={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Oa={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Fa={date:De({formats:Ra,defaultWidth:"full"}),time:De({formats:qa,defaultWidth:"full"}),dateTime:De({formats:Oa,defaultWidth:"full"})},Va={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Wa=(e,t,r,n)=>Va[e];function be(e){return(t,r)=>{const n=r!=null&&r.context?String(r.context):"standalone";let o;if(n==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,d=r!=null&&r.width?String(r.width):i;o=e.formattingValues[d]||e.formattingValues[i]}else{const i=e.defaultWidth,d=r!=null&&r.width?String(r.width):e.defaultWidth;o=e.values[d]||e.values[i]}const s=e.argumentCallback?e.argumentCallback(t):t;return o[s]}}const Ia={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},za={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},La={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},_a={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Ba={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Ya={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},$a=(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Ha={ordinalNumber:$a,era:be({values:Ia,defaultWidth:"wide"}),quarter:be({values:za,defaultWidth:"wide",argumentCallback:e=>e-1}),month:be({values:La,defaultWidth:"wide"}),day:be({values:_a,defaultWidth:"wide"}),dayPeriod:be({values:Ba,defaultWidth:"wide",formattingValues:Ya,defaultFormattingWidth:"wide"})};function we(e){return(t,r={})=>{const n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],s=t.match(o);if(!s)return null;const i=s[0],d=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(d)?Ga(d,p=>p.test(i)):Aa(d,p=>p.test(i));let u;u=e.valueCallback?e.valueCallback(c):c,u=r.valueCallback?r.valueCallback(u):u;const f=t.slice(i.length);return{value:u,rest:f}}}function Aa(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function Ga(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function Xa(e){return(t,r={})=>{const n=t.match(e.matchPattern);if(!n)return null;const o=n[0],s=t.match(e.parsePattern);if(!s)return null;let i=e.valueCallback?e.valueCallback(s[0]):s[0];i=r.valueCallback?r.valueCallback(i):i;const d=t.slice(o.length);return{value:i,rest:d}}}const Qa=/^(\d+)(th|st|nd|rd)?/i,Ua=/\d+/i,Ja={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Ka={any:[/^b/i,/^(a|c)/i]},Za={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},en={any:[/1/i,/2/i,/3/i,/4/i]},tn={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},rn={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},an={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},nn={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},on={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},sn={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},dn={ordinalNumber:Xa({matchPattern:Qa,parsePattern:Ua,valueCallback:e=>parseInt(e,10)}),era:we({matchPatterns:Ja,defaultMatchWidth:"wide",parsePatterns:Ka,defaultParseWidth:"any"}),quarter:we({matchPatterns:Za,defaultMatchWidth:"wide",parsePatterns:en,defaultParseWidth:"any",valueCallback:e=>e+1}),month:we({matchPatterns:tn,defaultMatchWidth:"wide",parsePatterns:rn,defaultParseWidth:"any"}),day:we({matchPatterns:an,defaultMatchWidth:"wide",parsePatterns:nn,defaultParseWidth:"any"}),dayPeriod:we({matchPatterns:on,defaultMatchWidth:"any",parsePatterns:sn,defaultParseWidth:"any"})},ln={code:"en-US",formatDistance:Pa,formatLong:Fa,formatRelative:Wa,localize:Ha,match:dn,options:{weekStartsOn:0,firstWeekContainsDate:1}};function cn(e){const t=U(e);return Ca(t,Da(t))+1}function un(e){const t=U(e),r=+Se(t)-+ka(t);return Math.round(r/ar)+1}function or(e,t){var f,p,v,h;const r=U(e),n=r.getFullYear(),o=ke(),s=(t==null?void 0:t.firstWeekContainsDate)??((p=(f=t==null?void 0:t.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??o.firstWeekContainsDate??((h=(v=o.locale)==null?void 0:v.options)==null?void 0:h.firstWeekContainsDate)??1,i=de(e,0);i.setFullYear(n+1,0,s),i.setHours(0,0,0,0);const d=ye(i,t),c=de(e,0);c.setFullYear(n,0,s),c.setHours(0,0,0,0);const u=ye(c,t);return r.getTime()>=d.getTime()?n+1:r.getTime()>=u.getTime()?n:n-1}function mn(e,t){var d,c,u,f;const r=ke(),n=(t==null?void 0:t.firstWeekContainsDate)??((c=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:c.firstWeekContainsDate)??r.firstWeekContainsDate??((f=(u=r.locale)==null?void 0:u.options)==null?void 0:f.firstWeekContainsDate)??1,o=or(e,t),s=de(e,0);return s.setFullYear(o,0,n),s.setHours(0,0,0,0),ye(s,t)}function fn(e,t){const r=U(e),n=+ye(r,t)-+mn(r,t);return Math.round(n/ar)+1}function N(e,t){const r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}const ae={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return N(t==="yy"?n%100:n,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):N(r+1,2)},d(e,t){return N(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return N(e.getHours()%12||12,t.length)},H(e,t){return N(e.getHours(),t.length)},m(e,t){return N(e.getMinutes(),t.length)},s(e,t){return N(e.getSeconds(),t.length)},S(e,t){const r=t.length,n=e.getMilliseconds(),o=Math.trunc(n*Math.pow(10,r-3));return N(o,t.length)}},ue={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Ke={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){const n=e.getFullYear(),o=n>0?n:1-n;return r.ordinalNumber(o,{unit:"year"})}return ae.y(e,t)},Y:function(e,t,r,n){const o=or(e,n),s=o>0?o:1-o;if(t==="YY"){const i=s%100;return N(i,2)}return t==="Yo"?r.ordinalNumber(s,{unit:"year"}):N(s,t.length)},R:function(e,t){const r=nr(e);return N(r,t.length)},u:function(e,t){const r=e.getFullYear();return N(r,t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return N(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return N(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return ae.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return N(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const o=fn(e,n);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):N(o,t.length)},I:function(e,t,r){const n=un(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):N(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):ae.d(e,t)},D:function(e,t,r){const n=cn(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):N(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const o=e.getDay(),s=(o-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return N(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const o=e.getDay(),s=(o-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return N(s,t.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),o=n===0?7:n;switch(t){case"i":return String(o);case"ii":return N(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let o;switch(n===12?o=ue.noon:n===0?o=ue.midnight:o=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let o;switch(n>=17?o=ue.evening:n>=12?o=ue.afternoon:n>=4?o=ue.morning:o=ue.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return ae.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):ae.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):N(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):N(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):ae.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):ae.s(e,t)},S:function(e,t){return ae.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return et(n);case"XXXX":case"XX":return ie(n);case"XXXXX":case"XXX":default:return ie(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return et(n);case"xxxx":case"xx":return ie(n);case"xxxxx":case"xxx":default:return ie(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Ze(n,":");case"OOOO":default:return"GMT"+ie(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Ze(n,":");case"zzzz":default:return"GMT"+ie(n,":")}},t:function(e,t,r){const n=Math.trunc(e.getTime()/1e3);return N(n,t.length)},T:function(e,t,r){const n=e.getTime();return N(n,t.length)}};function Ze(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),o=Math.trunc(n/60),s=n%60;return s===0?r+String(o):r+String(o)+t+N(s,2)}function et(e,t){return e%60===0?(e>0?"-":"+")+N(Math.abs(e)/60,2):ie(e,t)}function ie(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),o=N(Math.trunc(n/60),2),s=N(n%60,2);return r+o+t+s}const tt=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},sr=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},pn=(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],o=r[2];if(!o)return tt(e,t);let s;switch(n){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;case"PPPP":default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",tt(n,t)).replace("{{time}}",sr(o,t))},hn={p:sr,P:pn},gn=/^D+$/,xn=/^Y+$/,bn=["D","DD","YY","YYYY"];function wn(e){return gn.test(e)}function yn(e){return xn.test(e)}function vn(e,t,r){const n=jn(e,t,r);if(console.warn(n),bn.includes(e))throw new RangeError(n)}function jn(e,t,r){const n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Nn=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Sn=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Cn=/^'([^]*?)'?$/,kn=/''/g,Mn=/[a-zA-Z]/;function Ee(e,t,r){var f,p,v,h;const n=ke(),o=n.locale??ln,s=n.firstWeekContainsDate??((p=(f=n.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??1,i=n.weekStartsOn??((h=(v=n.locale)==null?void 0:v.options)==null?void 0:h.weekStartsOn)??0,d=U(e);if(!Ta(d))throw new RangeError("Invalid time value");let c=t.match(Sn).map(x=>{const b=x[0];if(b==="p"||b==="P"){const S=hn[b];return S(x,o.formatLong)}return x}).join("").match(Nn).map(x=>{if(x==="''")return{isToken:!1,value:"'"};const b=x[0];if(b==="'")return{isToken:!1,value:Tn(x)};if(Ke[b])return{isToken:!0,value:x};if(b.match(Mn))throw new RangeError("Format string contains an unescaped latin alphabet character `"+b+"`");return{isToken:!1,value:x}});o.localize.preprocessor&&(c=o.localize.preprocessor(d,c));const u={firstWeekContainsDate:s,weekStartsOn:i,locale:o};return c.map(x=>{if(!x.isToken)return x.value;const b=x.value;(yn(b)||wn(b))&&vn(b,t,String(e));const S=Ke[b[0]];return S(d,b,o.localize,u)}).join("")}function Tn(e){const t=e.match(Cn);return t?t[1].replace(kn,"'"):e}function Ie({value:e,onChange:t,placeholder:r,selectDateRangeLabel:n,clearLabel:o,closeLabel:s,className:i,disabled:d=!1}){if(!r||r.trim()==="")throw new Error('DateRangePicker: "placeholder" prop is required and cannot be empty');if(!n||n.trim()==="")throw new Error('DateRangePicker: "selectDateRangeLabel" prop is required and cannot be empty');if(!o||o.trim()==="")throw new Error('DateRangePicker: "clearLabel" prop is required and cannot be empty');if(!s||s.trim()==="")throw new Error('DateRangePicker: "closeLabel" prop is required and cannot be empty');const[c,u]=m.useState(!1),f=h=>h.from?h.to?`${Ee(h.from,"LLL dd, y")} - ${Ee(h.to,"LLL dd, y")}`:Ee(h.from,"LLL dd, y"):r,p=h=>{if(!h){t({from:void 0,to:void 0});return}!e.from||e.from&&e.to?t({from:h,to:void 0}):e.from&&!e.to&&(h<e.from?t({from:h,to:e.from}):t({from:e.from,to:h}),u(!1))},v=()=>{t({from:void 0,to:void 0})};return a.jsxs("div",{className:l("relative",i),children:[a.jsxs(L,{variant:"outline",className:l("w-full justify-start text-left font-normal",!e.from&&"text-muted-foreground"),onClick:()=>u(!c),disabled:d,children:[a.jsx(E.Calendar,{className:"mr-sm h-4 w-4"}),f(e)]}),c&&a.jsx("div",{className:"absolute left-0 top-full z-50 mt-xs w-full rounded-md border bg-popover p-sm shadow-lg",children:a.jsxs("div",{className:"space-y-sm",children:[a.jsx("div",{className:"text-sm font-medium",children:n}),a.jsxs("div",{className:"grid grid-cols-7 gap-xs text-xs",children:[["S","M","T","W","T","F","S"].map(h=>a.jsx("div",{className:"p-sm text-center font-medium text-muted-foreground",children:h},h)),Array.from({length:35},(h,x)=>{const b=new Date;b.setDate(b.getDate()-b.getDay()+x);const S=e.from&&b.toDateString()===e.from.toDateString()||e.to&&b.toDateString()===e.to.toDateString(),T=e.from&&e.to&&b>e.from&&b<e.to;return a.jsx("button",{className:l("h-8 w-8 rounded text-sm hover:bg-accent",S&&"bg-primary text-primary-foreground",T&&"bg-accent/50"),onClick:()=>p(b),children:b.getDate()},x)})]}),a.jsxs("div",{className:"flex justify-between pt-sm",children:[a.jsx(L,{variant:"outline",size:"sm",onClick:v,children:o}),a.jsx(L,{variant:"outline",size:"sm",onClick:()=>u(!1),children:s})]})]})})]})}function Dn(e={from:void 0,to:void 0}){const[t,r]=m.useState(e),n=m.useCallback(i=>{r(i)},[]),o=m.useCallback(()=>{r({from:void 0,to:void 0})},[]),s=t.from&&t.to;return{range:t,setDateRange:n,clearRange:o,isRangeComplete:s}}const ir=P.Root,En=P.Group,dr=P.Value,ze=m.forwardRef(({className:e,children:t,...r},n)=>a.jsxs(P.Trigger,{ref:n,className:l("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-sm py-sm text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...r,children:[t,a.jsx(P.Icon,{asChild:!0,children:a.jsx(E.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));ze.displayName=P.Trigger.displayName;const Le=m.forwardRef(({className:e,...t},r)=>a.jsx(P.ScrollUpButton,{ref:r,className:l("flex cursor-default items-center justify-center py-xs",e),...t,children:a.jsx(E.ChevronUp,{className:"h-4 w-4"})}));Le.displayName=P.ScrollUpButton.displayName;const _e=m.forwardRef(({className:e,...t},r)=>a.jsx(P.ScrollDownButton,{ref:r,className:l("flex cursor-default items-center justify-center py-xs",e),...t,children:a.jsx(E.ChevronDown,{className:"h-4 w-4"})}));_e.displayName=P.ScrollDownButton.displayName;const Be=m.forwardRef(({className:e,children:t,position:r="popper",...n},o)=>a.jsx(P.Portal,{children:a.jsxs(P.Content,{ref:o,className:l("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...n,children:[a.jsx(Le,{}),a.jsx(P.Viewport,{className:l("p-xs",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),a.jsx(_e,{})]})}));Be.displayName=P.Content.displayName;const lr=m.forwardRef(({className:e,...t},r)=>a.jsx(P.Label,{ref:r,className:l("py-xs pl-8 pr-sm text-sm font-semibold",e),...t}));lr.displayName=P.Label.displayName;const Ye=m.forwardRef(({className:e,children:t,...r},n)=>a.jsxs(P.Item,{ref:n,className:l("relative flex w-full cursor-default select-none items-center rounded-sm py-xs pl-8 pr-sm text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[a.jsx("span",{className:"absolute left-sm flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(P.ItemIndicator,{children:a.jsx(E.Check,{className:"h-4 w-4"})})}),a.jsx(P.ItemText,{children:t})]}));Ye.displayName=P.Item.displayName;const cr=m.forwardRef(({className:e,...t},r)=>a.jsx(P.Separator,{ref:r,className:l("-mx-xs my-xs h-px bg-muted",e),...t}));cr.displayName=P.Separator.displayName;function ve({value:e,onValueChange:t,options:r,placeholder:n,label:o,className:s}){if(!n||n.trim()==="")throw new Error('FilterSelect: "placeholder" prop is required and cannot be empty');const i=r.filter(d=>d.value!==""&&d.value!==null);return a.jsxs("div",{className:l("space-y-sm",s),children:[o&&a.jsx("label",{className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:o}),a.jsxs(ir,{value:e||void 0,onValueChange:t,children:[a.jsx(ze,{children:a.jsx(dr,{placeholder:n})}),a.jsx(Be,{children:i.map(d=>!d.value||d.value===""?null:a.jsx(Ye,{value:d.value,children:a.jsxs("div",{className:"flex w-full items-center justify-between",children:[a.jsx("span",{children:d.label}),d.count!==void 0&&a.jsxs("span",{className:"ml-sm text-xs text-muted-foreground",children:["(",d.count,")"]})]})},d.value))})]})]})}function ur({value:e,onChange:t,min:r,max:n,step:o,currency:s,priceRangeLabel:i,minLabel:d,maxLabel:c,anyPriceLabel:u,clearLabel:f,minAriaLabel:p,maxAriaLabel:v,className:h}){var G,z;if(typeof r!="number"||isNaN(r))throw new Error('PriceRangeSlider: "min" prop is required and must be a number');if(typeof n!="number"||isNaN(n))throw new Error('PriceRangeSlider: "max" prop is required and must be a number');if(typeof o!="number"||isNaN(o)||o<=0)throw new Error('PriceRangeSlider: "step" prop is required and must be a positive number');if(!s||s.trim()==="")throw new Error('PriceRangeSlider: "currency" prop is required and cannot be empty');if(!i||i.trim()==="")throw new Error('PriceRangeSlider: "priceRangeLabel" prop is required and cannot be empty');if(!d||d.trim()==="")throw new Error('PriceRangeSlider: "minLabel" prop is required and cannot be empty');if(!c||c.trim()==="")throw new Error('PriceRangeSlider: "maxLabel" prop is required and cannot be empty');if(!u||u.trim()==="")throw new Error('PriceRangeSlider: "anyPriceLabel" prop is required and cannot be empty');if(!f||f.trim()==="")throw new Error('PriceRangeSlider: "clearLabel" prop is required and cannot be empty');if(!p||p.trim()==="")throw new Error('PriceRangeSlider: "minAriaLabel" prop is required and cannot be empty');if(!v||v.trim()==="")throw new Error('PriceRangeSlider: "maxAriaLabel" prop is required and cannot be empty');const x=m.useId(),b=m.useId(),[S,T]=m.useState(((G=e.min)==null?void 0:G.toString())||""),[w,y]=m.useState(((z=e.max)==null?void 0:z.toString())||"");m.useEffect(()=>{var R,q;T(((R=e.min)==null?void 0:R.toString())||""),y(((q=e.max)==null?void 0:q.toString())||"")},[e.min,e.max]);const B=R=>{const q=R.target.value;T(q);const D=q===""?null:Math.max(r,parseInt(q)||r),O=e.max?Math.min(n,e.max):null;D!==null&&O!==null&&D>O?t({min:D,max:D}):t({min:D,max:O})},W=R=>{const q=R.target.value;y(q);const D=q===""?null:Math.min(n,parseInt(q)||n),O=e.min?Math.max(r,e.min):null;O!==null&&D!==null&&O>D?t({min:D,max:D}):t({min:O,max:D})},V=(R,q)=>{if(R==="min"){const D=Math.max(r,Math.min(n,q)),O=e.max?Math.max(D,e.max):null;t({min:D,max:O})}else{const D=Math.max(r,Math.min(n,q)),O=e.min?Math.min(D,e.min):null;t({min:O,max:D})}},Y=()=>{T(""),y(""),t({min:null,max:null})},F=e.min||r,I=e.max||n;return a.jsxs("div",{className:l("space-y-md",h),children:[a.jsxs("div",{className:"space-y-sm",children:[a.jsx(ne,{children:i}),a.jsxs("div",{className:"flex items-center space-x-sm",children:[a.jsxs("div",{className:"flex-1",children:[a.jsx(ne,{htmlFor:x,className:"text-xs text-muted-foreground",children:d}),a.jsxs("div",{className:"relative",children:[a.jsx("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-sm text-muted-foreground",children:s}),a.jsx(pe,{id:x,name:`min-price-${x}`,type:"number",value:S,onChange:B,placeholder:r.toString(),min:r,max:n,step:o,className:"pl-8"})]})]}),a.jsxs("div",{className:"flex-1",children:[a.jsx(ne,{htmlFor:b,className:"text-xs text-muted-foreground",children:c}),a.jsxs("div",{className:"relative",children:[a.jsx("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-sm text-muted-foreground",children:s}),a.jsx(pe,{id:b,name:`max-price-${b}`,type:"number",value:w,onChange:W,placeholder:n.toString(),min:r,max:n,step:o,className:"pl-8"})]})]})]})]}),a.jsxs("div",{className:"space-y-sm",children:[a.jsxs("div",{className:"relative",children:[a.jsx("input",{type:"range",id:`${x}-slider`,name:`min-price-slider-${x}`,min:r,max:n,step:o,value:F,onChange:R=>V("min",parseInt(R.target.value)),className:"slider-thumb absolute h-2 w-full cursor-pointer appearance-none bg-transparent","aria-label":p}),a.jsx("input",{type:"range",id:`${b}-slider`,name:`max-price-slider-${b}`,min:r,max:n,step:o,value:I,onChange:R=>V("max",parseInt(R.target.value)),className:"slider-thumb absolute h-2 w-full cursor-pointer appearance-none bg-transparent","aria-label":v}),a.jsx("div",{className:"h-2 rounded-full bg-muted",children:a.jsx("div",{className:"h-2 rounded-full bg-primary",style:{left:`${(F-r)/(n-r)*100}%`,width:`${(I-F)/(n-r)*100}%`}})})]}),a.jsxs("div",{className:"flex justify-between text-xs text-muted-foreground",children:[a.jsxs("span",{children:[s,r]}),a.jsxs("span",{children:[s,n]})]})]}),a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsx("span",{className:"text-sm text-muted-foreground",children:e.min!==null||e.max!==null?`${s}${e.min||r} - ${s}${e.max||n}`:u}),a.jsx("button",{type:"button",onClick:Y,className:"text-xs text-muted-foreground hover:text-foreground",children:f})]})]})}function Pn(e={min:null,max:null}){const[t,r]=m.useState(e),n=m.useCallback(i=>{r(i)},[]),o=m.useCallback(()=>{r({min:null,max:null})},[]),s=t.min!==null||t.max!==null;return{range:t,setPriceRange:n,clearRange:o,isRangeSet:s}}function Rn(e,t){const[r,n]=g.useState(e);return g.useEffect(()=>{const o=setTimeout(()=>{n(e)},t);return()=>{clearTimeout(o)}},[e,t]),r}function Me({value:e,onChange:t,onClear:r,placeholder:n,showClearButton:o=!0,debounceMs:s=300,className:i,id:d,name:c,...u}){const f=m.useId(),p=d||f,v=c||`search-input-${p}`;if(!n||n.trim()==="")throw new Error('SearchInput: "placeholder" prop is required and cannot be empty');const[h,x]=m.useState(e),b=Rn(h,s);m.useEffect(()=>{x(e)},[e]),m.useEffect(()=>{t(b)},[b,t]);const S=w=>{const y=w.target.value;x(y)},T=()=>{x(""),t(""),r==null||r()};return a.jsxs("div",{className:l("relative",i),children:[a.jsx(E.Search,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground","aria-hidden":"true"}),a.jsx(pe,{...u,id:p,name:v,value:h,onChange:S,placeholder:n,className:"pl-10 pr-10"}),o&&h&&a.jsx(L,{type:"button",variant:"ghost",size:"icon",className:"absolute right-1 top-1/2 h-6 w-6 -translate-y-1/2",onClick:T,"aria-label":"Clear search",children:a.jsx(E.X,{className:"h-3 w-3","aria-hidden":"true"})})]})}function qn(e=""){const[t,r]=m.useState(e),[n,o]=m.useState(e);m.useEffect(()=>{const i=setTimeout(()=>{o(t)},300);return()=>clearTimeout(i)},[t]);const s=m.useCallback(()=>{r(""),o("")},[]);return{search:t,debouncedSearch:n,setSearch:r,clearSearch:s}}const On=()=>(console.warn("useFilterManager: This is a mock implementation. Use the actual hook from apps/web/src/stores/useFiltersStore"),{search:"",category:"",tags:[],dateRange:{start:null,end:null},priceRange:{min:null,max:null},sortBy:"date",sortOrder:"desc",setSearch:e=>{},setCategory:e=>{},setTags:e=>{},addTag:e=>{},removeTag:e=>{},setDateRange:(e,t)=>{},setPriceRange:(e,t)=>{},setSorting:(e,t)=>{},resetFilters:()=>{},getActiveFiltersCount:()=>0,getFilterSummary:()=>[],hasActiveFilters:!1,clearAllFilters:()=>{}});function mr({className:e,showSearch:t=!0,showCategory:r=!0,showDateRange:n=!0,showPriceRange:o=!0,showSorting:s=!0,categories:i=[],sortOptions:d,searchPlaceholder:c,filtersLabel:u,clearAllLabel:f,categoryLabel:p,allCategoriesLabel:v,dateRangeLabel:h,anyDateLabel:x,dateSelectDateRangeLabel:b,dateClearLabel:S,dateCloseLabel:T,sortByLabel:w,sortAscLabel:y,sortDescLabel:B,sortByPlaceholder:W,activeFiltersLabel:V,priceRangeLabel:Y,priceMinLabel:F,priceMaxLabel:I,priceAnyLabel:G,priceClearLabel:z,priceMinAriaLabel:R,priceMaxAriaLabel:q,onFiltersChange:D}){if(!d||d.length===0)throw new Error('FilterBar: "sortOptions" prop is required and cannot be empty');if(!c||c.trim()==="")throw new Error('FilterBar: "searchPlaceholder" prop is required and cannot be empty');if(!u||u.trim()==="")throw new Error('FilterBar: "filtersLabel" prop is required and cannot be empty');if(!f||f.trim()==="")throw new Error('FilterBar: "clearAllLabel" prop is required and cannot be empty');if(!p||p.trim()==="")throw new Error('FilterBar: "categoryLabel" prop is required and cannot be empty');if(!v||v.trim()==="")throw new Error('FilterBar: "allCategoriesLabel" prop is required and cannot be empty');if(!h||h.trim()==="")throw new Error('FilterBar: "dateRangeLabel" prop is required and cannot be empty');if(!x||x.trim()==="")throw new Error('FilterBar: "anyDateLabel" prop is required and cannot be empty');if(!b||b.trim()==="")throw new Error('FilterBar: "dateSelectDateRangeLabel" prop is required and cannot be empty');if(!S||S.trim()==="")throw new Error('FilterBar: "dateClearLabel" prop is required and cannot be empty');if(!T||T.trim()==="")throw new Error('FilterBar: "dateCloseLabel" prop is required and cannot be empty');if(!w||w.trim()==="")throw new Error('FilterBar: "sortByLabel" prop is required and cannot be empty');if(!y||y.trim()==="")throw new Error('FilterBar: "sortAscLabel" prop is required and cannot be empty');if(!B||B.trim()==="")throw new Error('FilterBar: "sortDescLabel" prop is required and cannot be empty');if(!W||W.trim()==="")throw new Error('FilterBar: "sortByPlaceholder" prop is required and cannot be empty');if(!V||V.trim()==="")throw new Error('FilterBar: "activeFiltersLabel" prop is required and cannot be empty');if(!Y||Y.trim()==="")throw new Error('FilterBar: "priceRangeLabel" prop is required and cannot be empty');if(!F||F.trim()==="")throw new Error('FilterBar: "priceMinLabel" prop is required and cannot be empty');if(!I||I.trim()==="")throw new Error('FilterBar: "priceMaxLabel" prop is required and cannot be empty');if(!G||G.trim()==="")throw new Error('FilterBar: "priceAnyLabel" prop is required and cannot be empty');if(!z||z.trim()==="")throw new Error('FilterBar: "priceClearLabel" prop is required and cannot be empty');if(!R||R.trim()==="")throw new Error('FilterBar: "priceMinAriaLabel" prop is required and cannot be empty');if(!q||q.trim()==="")throw new Error('FilterBar: "priceMaxAriaLabel" prop is required and cannot be empty');const{search:O,category:he,dateRange:ce,priceRange:ge,sortBy:X,sortOrder:Q,setSearch:xe,setCategory:re,setDateRange:Ne,setPriceRange:Te,hasActiveFilters:Ge}=On();m.useEffect(()=>{D&&D({search:O,category:he,dateRange:ce,priceRange:ge,sortBy:X,sortOrder:Q})},[O,he,ce,ge,X,Q,D]);const kr=$=>{Ne($.from||null,$.to||null)},Mr=$=>{Te($.min,$.max)};return a.jsxs("div",{className:l("space-y-md",e),children:[a.jsxs("div",{className:"flex flex-col gap-md sm:flex-row",children:[t&&a.jsx("div",{className:"flex-1",children:a.jsx(Me,{value:O,onChange:xe,placeholder:c})}),Ge]}),a.jsxs("div",{className:"grid grid-cols-1 gap-md sm:grid-cols-2 lg:grid-cols-4",children:[r&&i.length>0&&a.jsx(ve,{value:he,onValueChange:re,options:i,label:p,placeholder:v}),n&&a.jsxs("div",{className:"space-y-sm",children:[a.jsx("label",{className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:h}),a.jsx(Ie,{value:{from:ce.start||void 0,to:ce.end||void 0},onChange:kr,placeholder:x,selectDateRangeLabel:b,clearLabel:S,closeLabel:T})]}),o&&a.jsx(ur,{value:ge,onChange:Mr,min:0,max:500,step:10,currency:"€",priceRangeLabel:Y,minLabel:F,maxLabel:I,anyPriceLabel:G,clearLabel:z,minAriaLabel:R,maxAriaLabel:q}),s&&a.jsxs("div",{className:"space-y-sm",children:[a.jsx("label",{className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:w}),a.jsx(ve,{value:`${X}-${Q}`,onValueChange:$=>{const[yo,vo]=$.split("-")},options:d.map($=>({value:`${$.value}-asc`,label:`${$.label} ${y}`})).concat(d.map($=>({value:`${$.value}-desc`,label:`${$.label} ${B}`}))),placeholder:W})]})]}),Ge]})}function Fn({className:e,...t}){return a.jsx(mr,{className:l("space-y-sm",e),...t})}const Vn=({searchLabel:e,searchPlaceholder:t,searchValue:r,onSearchChange:n,dateLabel:o,datePlaceholder:s,dateSelectDateRangeLabel:i,dateClearLabel:d,dateCloseLabel:c,dateValue:u,onDateChange:f,genreLabel:p,genrePlaceholder:v,genreOptions:h,genreValue:x,onGenreChange:b,venueLabel:S,venuePlaceholder:T,venueOptions:w,venueValue:y,onVenueChange:B,className:W})=>{if(!e||e.trim()==="")throw new Error('SearchFilters: "searchLabel" prop is required and cannot be empty');if(!t||t.trim()==="")throw new Error('SearchFilters: "searchPlaceholder" prop is required and cannot be empty');if(!o||o.trim()==="")throw new Error('SearchFilters: "dateLabel" prop is required and cannot be empty');if(!s||s.trim()==="")throw new Error('SearchFilters: "datePlaceholder" prop is required and cannot be empty');if(!i||i.trim()==="")throw new Error('SearchFilters: "dateSelectDateRangeLabel" prop is required and cannot be empty');if(!d||d.trim()==="")throw new Error('SearchFilters: "dateClearLabel" prop is required and cannot be empty');if(!c||c.trim()==="")throw new Error('SearchFilters: "dateCloseLabel" prop is required and cannot be empty');if(!p||p.trim()==="")throw new Error('SearchFilters: "genreLabel" prop is required and cannot be empty');if(!v||v.trim()==="")throw new Error('SearchFilters: "genrePlaceholder" prop is required and cannot be empty');if(!h||h.length===0)throw new Error('SearchFilters: "genreOptions" prop is required and cannot be empty');if(!S||S.trim()==="")throw new Error('SearchFilters: "venueLabel" prop is required and cannot be empty');if(!T||T.trim()==="")throw new Error('SearchFilters: "venuePlaceholder" prop is required and cannot be empty');if(!w||w.length===0)throw new Error('SearchFilters: "venueOptions" prop is required and cannot be empty');return a.jsx("div",{className:l("rounded-lg bg-background p-lg shadow-lg",W),children:a.jsxs("div",{className:"grid grid-cols-1 gap-md md:grid-cols-2 lg:grid-cols-4",children:[a.jsxs("div",{children:[a.jsx("label",{className:"mb-sm block text-sm font-medium",children:e}),a.jsx(Me,{placeholder:t,value:r,onChange:n})]}),a.jsxs("div",{children:[a.jsx("label",{className:"mb-sm block text-sm font-medium",children:o}),a.jsx(Ie,{value:u,onChange:f,placeholder:s,selectDateRangeLabel:i,clearLabel:d,closeLabel:c})]}),a.jsxs("div",{children:[a.jsx("label",{className:"mb-sm block text-sm font-medium",children:p}),a.jsx(ve,{placeholder:v,value:x,options:h,onValueChange:b})]}),a.jsxs("div",{children:[a.jsx("label",{className:"mb-sm block text-sm font-medium",children:S}),a.jsx(ve,{placeholder:T,value:y,options:w,onValueChange:B})]})]})})};function Wn(){const[e,t]=g.useState([]),r=g.useCallback(i=>{t(d=>d.filter(c=>c.id!==i))},[]),n=g.useCallback(i=>{const d=Math.random().toString(36).substr(2,9),c={id:d,duration:5e3,...i};return t(u=>[...u,c]),c.duration&&c.duration>0&&setTimeout(()=>{r(d)},c.duration),d},[r]),o=g.useCallback(()=>{t([])},[]),s=g.useCallback((i,d)=>{t(c=>c.map(u=>u.id===i?{...u,...d}:u))},[]);return{toasts:e,toast:n,dismiss:r,dismissAll:o,updateToast:s}}const fr=A.cva("group pointer-events-auto relative flex w-full items-center justify-between space-x-sm overflow-hidden rounded-md border p-md pr-lg shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{type:{default:"border bg-background text-foreground",success:"border-success/20 bg-success/10 text-success-foreground",error:"border-error/20 bg-error/10 text-error-foreground",warning:"border-warning/20 bg-warning/10 text-warning-foreground",info:"border-info/20 bg-info/10 text-info-foreground"}},defaultVariants:{type:"default"}}),In=A.cva("h-4 w-4 flex-shrink-0",{variants:{type:{default:"text-foreground",success:"text-success",error:"text-error",warning:"text-warning",info:"text-info"}},defaultVariants:{type:"default"}}),zn=e=>{switch(e){case"success":return E.CheckCircle;case"error":return E.AlertCircle;case"warning":return E.AlertTriangle;case"info":return E.Info;default:return E.Info}},$e=m.forwardRef(({className:e,toast:t,onDismiss:r,type:n=t.type,...o},s)=>{const i=zn(t.type);return a.jsxs("div",{ref:s,className:l(fr({type:n,className:e})),...o,children:[a.jsxs("div",{className:"flex flex-1 items-start space-x-sm",children:[a.jsx(i,{className:l(In({type:t.type}))}),a.jsxs("div",{className:"flex-1 space-y-xs",children:[t.title&&a.jsx("div",{className:"text-sm font-semibold",children:t.title}),t.description&&a.jsx("div",{className:"text-sm opacity-90",children:t.description}),t.action&&a.jsx("div",{className:"mt-sm",children:a.jsx(L,{variant:"outline",size:"sm",onClick:t.action.onClick,className:"h-8 px-xs text-xs",children:t.action.label})})]})]}),a.jsx(L,{variant:"ghost",size:"icon",className:"absolute right-xs top-xs h-6 w-6 rounded-md p-xs text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100",onClick:()=>r(t.id),children:a.jsx(E.X,{className:"h-4 w-4"})})]})});$e.displayName="Toast";const pr=g.createContext(void 0);function Ln({children:e,position:t="top-right",maxToasts:r=5}){const n=Wn(),{toasts:o,toast:s,dismiss:i,dismissAll:d,updateToast:c}=n,u=o.slice(-r),f={"top-left":"top-4 left-4","top-center":"top-4 left-1/2 -translate-x-1/2","top-right":"top-4 right-4","bottom-left":"bottom-4 left-4","bottom-center":"bottom-4 left-1/2 -translate-x-1/2","bottom-right":"bottom-4 right-4"};return a.jsxs(pr.Provider,{value:{toast:s,dismiss:i,dismissAll:d,updateToast:c},children:[e,a.jsx(Bn,{position:t,positionClasses:f[t],children:u.map(p=>a.jsx($e,{toast:p,onDismiss:i},p.id))})]})}function hr(){const e=g.useContext(pr);if(e===void 0)throw new Error("useToastContext must be used within a ToastProvider");return e}function _n(){const{toast:e,dismiss:t,dismissAll:r,updateToast:n}=hr();return{toast:e,dismiss:t,dismissAll:r,updateToast:n,success:o=>e({...o,type:"success"}),error:o=>e({...o,type:"error"}),warning:o=>e({...o,type:"warning"}),info:o=>e({...o,type:"info"})}}function Bn({children:e,positionClasses:t}){return a.jsx("div",{className:l("fixed z-[100] flex max-h-screen w-full flex-col-reverse p-0 sm:flex-col",t),style:{pointerEvents:"none"},children:a.jsx("div",{className:"pointer-events-auto flex flex-col gap-2",children:e})})}function Yn({children:e,container:t,className:r,style:n}){const[o,s]=m.useState(!1);if(m.useEffect(()=>{s(!0)},[]),!o)return null;const i=t||document.body;return Vr.createPortal(a.jsx("div",{className:l("fixed inset-0 z-50",r),style:n,children:e}),i)}function $n({onClick:e,className:t,style:r}){return a.jsx("div",{className:l("absolute inset-0 bg-black/50 backdrop-blur-sm",t),style:r,onClick:e})}function Hn({children:e,className:t,style:r,position:n="center"}){const o={center:"flex items-center justify-center",top:"flex justify-center pt-8",bottom:"flex justify-center pb-8",left:"flex items-center pl-8",right:"flex items-center pr-8","top-left":"flex justify-start items-start pt-8 pl-8","top-right":"flex justify-end items-start pt-8 pr-8","bottom-left":"flex justify-start items-end pb-8 pl-8","bottom-right":"flex justify-end items-end pb-8 pr-8"};return a.jsx("div",{className:l("relative h-full min-h-screen w-full",o[n],t),style:r,children:e})}const gr=fe.Root,xr=fe.Trigger,An=fe.Anchor,br=A.cva("z-50 w-72 rounded-md border bg-popover p-md text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",{variants:{variant:{default:"bg-popover text-popover-foreground border-border",destructive:"border-destructive/50 text-destructive bg-destructive/10",warning:"border-warning/50 text-warning-foreground bg-warning/10",success:"border-success/50 text-success-foreground bg-success/10",info:"border-info/50 text-info-foreground bg-info/10"},size:{sm:"w-48 p-sm",md:"w-72 p-md",lg:"w-96 p-lg",xl:"w-[32rem] p-xl"}},defaultVariants:{variant:"default",size:"md"}}),He=m.forwardRef(({className:e,variant:t,size:r,align:n="center",sideOffset:o=4,...s},i)=>a.jsx(fe.Portal,{children:a.jsx(fe.Content,{ref:i,align:n,sideOffset:o,className:l(br({variant:t,size:r,className:e})),...s})}));He.displayName=fe.Content.displayName;function Gn({children:e,content:t,variant:r,size:n,side:o="bottom",align:s="center",sideOffset:i,alignOffset:d,open:c,onOpenChange:u,modal:f=!0,closeOnInteractOutside:p=!0}){return a.jsxs(gr,{open:c,onOpenChange:u,modal:f,children:[a.jsx(xr,{asChild:!0,children:e}),a.jsx(He,{variant:r,size:n,side:o,align:s,sideOffset:i,alignOffset:d,onInteractOutside:p?void 0:v=>v.preventDefault(),children:t})]})}const wr=je.Provider,yr=je.Root,vr=je.Trigger,jr=A.cva("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",{variants:{variant:{default:"bg-popover text-popover-foreground border-border",destructive:"border-destructive/50 text-destructive bg-destructive/10",warning:"border-warning/50 text-warning-foreground bg-warning/10",success:"border-success/50 text-success-foreground bg-success/10",info:"border-info/50 text-info-foreground bg-info/10"}},defaultVariants:{variant:"default"}}),Ae=m.forwardRef(({className:e,variant:t,sideOffset:r=4,...n},o)=>a.jsx(je.Content,{ref:o,sideOffset:r,className:l(jr({variant:t,className:e})),...n}));Ae.displayName=je.Content.displayName;function Xn({children:e,content:t,variant:r,side:n="top",align:o="center",sideOffset:s,alignOffset:i,delayDuration:d=400,skipDelayDuration:c=300,disableHoverableContent:u=!1,open:f,onOpenChange:p}){return a.jsx(wr,{delayDuration:d,skipDelayDuration:c,children:a.jsxs(yr,{open:f,onOpenChange:p,children:[a.jsx(vr,{asChild:!0,children:e}),a.jsx(Ae,{variant:r,side:n,align:o,sideOffset:s,alignOffset:i,children:t})]})})}const Qn=({variant:e="info",title:t,description:r,className:n})=>{const o={success:"bg-success/10 border-success/20 text-success-foreground",error:"bg-error/10 border-error/20 text-error-foreground",warning:"bg-warning/10 border-warning/20 text-warning-foreground",info:"bg-info/10 border-info/20 text-info-foreground"};return a.jsxs("div",{className:l("rounded-lg border p-4",o[e],n),children:[t&&a.jsx(H,{level:4,className:"mb-2 font-semibold",children:t}),r&&a.jsx(C,{size:"sm",children:r})]})},Un=({value:e,max:t=100,className:r})=>{const n=Math.min(100,Math.max(0,e/t*100));return a.jsx("div",{className:l("h-2 w-full rounded-full bg-secondary",r),children:a.jsx("div",{className:"h-2 rounded-full bg-primary transition-all duration-300",style:{width:`${n}%`}})})},J=({className:e})=>a.jsx("div",{className:l("animate-pulse rounded bg-muted",e)}),Jn={none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl","2xl":"rounded-2xl","3xl":"rounded-3xl",full:"rounded-full"},Kn={none:"shadow-none",sm:"shadow-sm",base:"shadow",md:"shadow-md",lg:"shadow-lg",xl:"shadow-xl","2xl":"shadow-2xl",inner:"shadow-inner"},Zn={square:"aspect-square",video:"aspect-video",photo:"aspect-[4/3]",wide:"aspect-[16/9]"},Nr=g.forwardRef(({className:e,wrapperClassName:t,radius:r="none",shadow:n="none",aspectRatio:o,fallbackSrc:s,showSkeleton:i=!1,src:d,onLoadingComplete:c,onError:u,onLoad:f,fill:p,alt:v="",...h},x)=>{const[b,S]=g.useState(!1),[T,w]=g.useState(!1),[y,B]=g.useState(d),W=g.useRef(!1),V=g.useRef(0),Y=g.useRef(!0),F=g.useRef(null),I=d&&d.trim()!==""?d:void 0,G=s&&s.trim()!==""?s:void 0,z=G&&G!==I?G:void 0,R=g.useCallback(X=>{const Q=X.currentTarget,xe=V.current;if(!(!Y.current||!F.current||Q!==F.current)&&(S(!0),c))try{const re=Q.naturalWidth,Ne=Q.naturalHeight;if(V.current!==xe)return;if(re===0||Ne===0){if(w(!0),S(!1),!u)return;try{u(X)}catch(Te){console.error("Error in onError callback:",Te)}return}c({naturalWidth:re,naturalHeight:Ne})}catch(re){console.error("Error in onLoadingComplete callback:",re)}},[c,u]),q=g.useCallback(X=>{const Q=X.currentTarget,xe=V.current;if(!(!Y.current||!F.current||Q!==F.current)&&V.current===xe){if(z&&!W.current&&y!==z){W.current=!0,B(z),w(!1),S(!1),V.current+=1;return}if(w(!0),S(!1),u)try{u(X)}catch(re){console.error("Error in onError callback:",re)}}},[z,y,u]);g.useEffect(()=>{I!==y&&(B(I),S(!1),w(!1),W.current=!1,V.current+=1)},[I,y]),g.useEffect(()=>(Y.current=!0,()=>{Y.current=!1}),[]);const D=l("relative",r!=="none"&&Jn[r],n!=="none"&&Kn[n],r!=="none"&&"overflow-hidden",o&&(Zn[o]||(typeof o=="string"&&/^\d+\/\d+$/.test(o.trim())?`aspect-[${o.trim()}]`:o)),p&&"w-full h-full",t),O=l((p||r!=="none")&&"object-cover",p&&"absolute inset-0 w-full h-full",e),he=i&&!b&&!T&&y,ce=g.useCallback(X=>{if(R(X),f)try{f(X)}catch(Q){console.error("Error in onLoad callback:",Q)}},[R,f]),ge=y||z;return a.jsxs("div",{ref:x,className:D,children:[he&&a.jsx(J,{className:"absolute inset-0 z-10 h-full w-full"}),ge?a.jsx("img",{...h,ref:F,src:y,alt:v,className:O,onLoad:ce,onError:q}):null]})});Nr.displayName="Image";const eo=({items:e,className:t})=>a.jsx("nav",{className:l("flex items-center space-x-sm text-sm",t),children:e.map((r,n)=>a.jsxs(g.Fragment,{children:[n>0&&a.jsx(E.ChevronRight,{className:"h-4 w-4 text-muted-foreground"}),r.href?a.jsx(oe,{href:r.href,className:"text-muted-foreground transition-colors hover:text-foreground",children:r.label}):a.jsx("span",{className:"font-medium text-foreground",children:r.label})]},n))}),to=({currentPage:e,totalPages:t,onPageChange:r,className:n})=>{const o=()=>{const i=[],d=[];for(let c=Math.max(2,e-2);c<=Math.min(t-1,e+2);c++)i.push(c);return e-2>2?d.push(1,"..."):d.push(1),d.push(...i),e+2<t-1?d.push("...",t):d.push(t),d};return a.jsxs("nav",{className:l("flex items-center space-x-xs",n),children:[a.jsx("button",{onClick:()=>r(e-1),disabled:e===1,className:"rounded-md border border-input bg-background p-sm hover:bg-accent disabled:cursor-not-allowed disabled:opacity-50",children:a.jsx(E.ChevronLeft,{className:"h-4 w-4"})}),o().map((s,i)=>a.jsx(g.Fragment,{children:s==="..."?a.jsx("span",{className:"px-sm py-sm text-muted-foreground",children:"..."}):a.jsx("button",{onClick:()=>r(s),className:l("rounded-md border px-sm py-sm transition-colors",s===e?"border-primary bg-primary text-primary-foreground":"border-input bg-background hover:bg-accent"),children:s})},i)),a.jsx("button",{onClick:()=>r(e+1),disabled:e===t,className:"rounded-md border border-input bg-background p-sm hover:bg-accent disabled:cursor-not-allowed disabled:opacity-50",children:a.jsx(E.ChevronRight,{className:"h-4 w-4"})})]})},ro=({items:e,className:t})=>a.jsx("div",{className:l("space-y-sm",t),children:e.map(r=>a.jsxs("div",{className:"rounded-lg border p-md transition-colors hover:bg-muted/50",children:[a.jsx("h3",{className:"font-medium text-foreground",children:r.title}),r.description&&a.jsx("p",{className:"mt-xs text-sm text-muted-foreground",children:r.description})]},r.id))}),ao=({data:e,columns:t,rowKey:r,className:n})=>a.jsx("div",{className:l("overflow-x-auto",n),children:a.jsxs("table",{className:"w-full border-collapse",children:[a.jsx("thead",{children:a.jsx("tr",{className:"border-b",children:t.map(o=>a.jsx("th",{className:"p-sm text-left font-medium text-muted-foreground",children:o.title},String(o.key)))})}),a.jsx("tbody",{children:e.map(o=>a.jsx("tr",{className:"border-b hover:bg-muted/50",children:t.map(s=>a.jsx("td",{className:"p-sm",children:s.render?s.render(o[s.key],o):String(o[s.key])},String(s.key)))},String(o[r])))})]})}),no=({items:e,className:t})=>a.jsx("div",{className:l("space-y-lg",t),children:e.map((r,n)=>a.jsxs("div",{className:"relative flex",children:[a.jsxs("div",{className:"flex flex-col items-center",children:[a.jsx("div",{className:"h-3 w-3 rounded-full border-2 border-background bg-primary"}),n<e.length-1&&a.jsx("div",{className:"mt-sm h-12 w-px bg-border"})]}),a.jsxs("div",{className:"ml-md flex-1",children:[a.jsx(H,{level:3,className:"font-medium",children:r.title}),a.jsx(C,{size:"sm",color:"muted",children:r.date}),r.description&&a.jsx(C,{size:"sm",color:"muted",className:"mt-xs",children:r.description})]})]},r.id))}),oo=({event:e,className:t,featured:r,showImage:n,getTicketsLabel:o,trendingBadgeText:s})=>{var h,x,b,S,T,w,y,B,W,V,Y,F,I;const i=typeof(e==null?void 0:e.name)=="string"?e.name:((h=e==null?void 0:e.name)==null?void 0:h.en)||((x=e==null?void 0:e.name)==null?void 0:x.es)||((b=e==null?void 0:e.name)==null?void 0:b.ru)||"",d=typeof(e==null?void 0:e.description)=="string"?e.description:((S=e==null?void 0:e.description)==null?void 0:S.en)||((T=e==null?void 0:e.description)==null?void 0:T.es)||((w=e==null?void 0:e.description)==null?void 0:w.ru)||"",c=(e==null?void 0:e.start_date)||"",u=typeof((y=e==null?void 0:e.venue_id)==null?void 0:y.name)=="string"?e.venue_id.name:((W=(B=e==null?void 0:e.venue_id)==null?void 0:B.name)==null?void 0:W.en)||((Y=(V=e==null?void 0:e.venue_id)==null?void 0:V.name)==null?void 0:Y.es)||((I=(F=e==null?void 0:e.venue_id)==null?void 0:F.name)==null?void 0:I.ru)||"";let f="";const p=e==null?void 0:e.price;if(typeof p=="string")f=p;else if(typeof(e==null?void 0:e.price)=="object"&&(e==null?void 0:e.price)!==null){const G=e.price,{min:z=0,max:R="∞"}=G;f=`€${z} - €${R}`}const v=e==null?void 0:e.image;return a.jsxs(K,{className:l("animate-fade-in-up shadow-elevation-md hover:shadow-elevation-xl group relative overflow-hidden border-transparent transition-all duration-normal hover:border-primary/20",r&&"ring-2 ring-primary/50",t),children:[r&&a.jsx("div",{className:"absolute right-3 top-3 z-10",children:a.jsx("span",{className:"shadow-elevation-lg inline-flex items-center rounded-full bg-gradient-to-r from-accent-500 to-primary-600 px-xs py-xs text-xs font-semibold text-white",children:s})}),n&&a.jsxs("div",{className:"relative h-48 w-full overflow-hidden rounded-t-lg bg-gradient-to-br from-surface-elevated1 to-surface-elevated2",children:[v?a.jsx("img",{src:v,alt:i,className:"h-full w-full object-cover transition-transform duration-slow group-hover:scale-110"}):a.jsx("div",{className:"flex h-full w-full items-center justify-center",children:a.jsx("svg",{className:"h-16 w-16 text-muted-foreground",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 10l4.553-2.276A1 1 0 0121 8.618v6.764a1 1 0 01-1.447.894L15 14M5 18h8a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v8a2 2 0 002 2z"})})}),a.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 via-transparent to-transparent opacity-0 transition-opacity duration-normal group-hover:opacity-100"})]}),a.jsxs(Z,{className:"p-md",children:[a.jsx(H,{level:3,className:"mb-xs line-clamp-2 text-lg font-bold transition-colors group-hover:text-primary",children:e!=null&&e.slug?a.jsx(oe,{href:`/events/${e.slug}`,variant:"ghost",size:"none",children:i}):i}),a.jsx(C,{size:"sm",color:"muted",className:"mb-sm line-clamp-2",children:d}),a.jsxs("div",{className:"mb-sm flex flex-col gap-xs",children:[a.jsxs("div",{className:"flex items-center gap-xs text-xs text-muted-foreground",children:[a.jsx("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})}),a.jsx(C,{size:"xs",color:"muted",children:c})]}),a.jsxs("div",{className:"flex items-center gap-xs text-xs text-muted-foreground",children:[a.jsxs("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:[a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"}),a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 11a3 3 0 11-6 0 3 3 0 016 0z"})]}),a.jsx(C,{size:"xs",color:"muted",className:"line-clamp-1",children:u})]})]}),a.jsx("div",{className:"border-t border-border pt-sm",children:e!=null&&e.ticket_url?a.jsxs(oe,{href:e.ticket_url,className:"shadow-elevation-md hover:shadow-elevation-lg inline-flex w-full transform items-center justify-center bg-gradient-to-r from-accent-500 to-primary-600 px-md py-xs font-semibold text-white transition-all duration-normal hover:scale-105 hover:from-accent-600 hover:to-primary-700",target:"_blank",rel:"noopener noreferrer",children:[o,a.jsx("svg",{className:"ml-xs h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M14 5l7 7m0 0l-7 7m7-7H3"})})]}):a.jsx("div",{className:"text-right",children:a.jsx(C,{size:"lg",weight:"bold",className:"bg-gradient-to-r from-accent-500 to-primary-600 bg-clip-text text-transparent",children:f})})})]})]})},so=({venue:e,className:t,featured:r,showImage:n,eventsLabel:o,popularBadgeText:s,capacityLabel:i})=>{var h,x;if(typeof r!="boolean")throw new Error('VenueCard: "featured" prop is required and must be a boolean');if(typeof n!="boolean")throw new Error('VenueCard: "showImage" prop is required and must be a boolean');if(!o||o.trim()==="")throw new Error('VenueCard: "eventsLabel" prop is required and cannot be empty');if(!s||s.trim()==="")throw new Error('VenueCard: "popularBadgeText" prop is required and cannot be empty');if(!i||i.trim()==="")throw new Error('VenueCard: "capacityLabel" prop is required and cannot be empty');const d=typeof(e==null?void 0:e.name)=="string"?e.name:(h=e==null?void 0:e.name)==null?void 0:h.en;if(!d||d.trim()==="")throw new Error("VenueCard: venue.name is required and cannot be empty");const c=typeof(e==null?void 0:e.description)=="string"?e.description:(x=e==null?void 0:e.description)==null?void 0:x.en;if(!c||c.trim()==="")throw new Error("VenueCard: venue.description is required and cannot be empty");const u=typeof(e==null?void 0:e.location)=="string"?e.location:e==null?void 0:e.address;if(!u||u.trim()==="")throw new Error("VenueCard: venue.location or venue.address is required and cannot be empty");const f=e==null?void 0:e.capacity;if(!f||f.trim()==="")throw new Error("VenueCard: venue.capacity is required and cannot be empty");const p=e==null?void 0:e.image,v=(e==null?void 0:e.events_count)||0;return a.jsxs(K,{className:l("animate-fade-in-up group relative overflow-hidden border-transparent shadow-md transition-all duration-300 hover:border-primary/20 hover:shadow-xl",r&&"ring-2 ring-primary/50",t),children:[r&&a.jsx("div",{className:"absolute right-sm top-sm z-10",children:a.jsx("span",{className:"inline-flex items-center rounded-full bg-gradient-to-r from-accent to-primary px-xs py-xs text-xs font-semibold text-primary-foreground shadow-lg",children:s})}),n&&a.jsxs("div",{className:"relative h-48 w-full overflow-hidden rounded-t-lg bg-gradient-to-br from-muted to-muted/50",children:[p?a.jsx("img",{src:p,alt:d,className:"h-full w-full object-cover transition-transform duration-500 group-hover:scale-110"}):a.jsx("div",{className:"flex h-full w-full items-center justify-center",children:a.jsx("svg",{className:"h-16 w-16 text-muted",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4"})})}),a.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 via-transparent to-transparent opacity-0 transition-opacity duration-300 group-hover:opacity-100"})]}),a.jsxs(Z,{className:"p-md",children:[a.jsx(H,{level:3,className:"mb-sm line-clamp-2 text-lg font-bold transition-colors group-hover:text-primary",children:e!=null&&e.slug?a.jsx(oe,{href:`/venues/${e.slug}`,variant:"ghost",size:"none",children:d}):d}),a.jsx(C,{size:"sm",color:"muted",className:"mb-sm line-clamp-2",children:c}),a.jsx("div",{className:"mb-sm flex flex-col gap-sm",children:a.jsxs("div",{className:"flex items-center gap-sm text-xs text-muted-foreground",children:[a.jsxs("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:[a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"}),a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 11a3 3 0 11-6 0 3 3 0 016 0z"})]}),a.jsx(C,{size:"xs",color:"muted",className:"line-clamp-1",children:u})]})}),a.jsx("div",{className:"border-t border-border pt-sm",children:a.jsxs("div",{className:"flex items-center justify-between text-xs",children:[v>0&&a.jsxs("div",{className:"flex items-center gap-xs font-medium text-primary",children:[a.jsx("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 10l4.553-2.276A1 1 0 0121 8.618v6.764a1 1 0 01-1.447.894L15 14M5 18h8a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v8a2 2 0 002 2z"})}),a.jsxs(C,{size:"xs",color:"primary",weight:"medium",children:[v," ",o]})]}),f&&a.jsxs("div",{className:"flex items-center gap-xs text-muted-foreground",children:[a.jsx("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"})}),a.jsxs(C,{size:"xs",color:"muted",children:[i," ",f]})]})]})})]})]})},me=({id:e,name:t,label:r,type:n="text",placeholder:o,value:s,onChange:i,error:d,helperText:c,className:u,...f})=>{const p=s??"";return a.jsxs("div",{className:l("space-y-sm",u),children:[r&&a.jsx(ne,{htmlFor:e,className:"block",children:r}),a.jsx(pe,{id:e,name:t,type:n,placeholder:o,value:p,onChange:v=>i==null?void 0:i(v.target.value),...f}),c&&!d&&a.jsx(C,{size:"sm",color:"muted",children:c}),d&&a.jsx(C,{size:"sm",color:"destructive",children:d})]})},io=({id:e,name:t,label:r,placeholder:n,options:o=[],value:s,onChange:i,error:d,className:c})=>{const u=s??"";return a.jsxs("div",{className:l("space-y-sm",c),children:[r&&a.jsx(ne,{htmlFor:e,className:"block",children:r}),a.jsxs("select",{id:e,name:t,value:u,onChange:f=>i==null?void 0:i(f.target.value),className:"w-full rounded-md border border-input bg-background px-sm py-sm",children:[n&&a.jsx("option",{value:"",disabled:!0,children:n}),o.map(f=>a.jsx("option",{value:f.value,children:f.label},f.value))]}),d&&a.jsx(C,{size:"sm",color:"destructive",children:d})]})},lo=({id:e,name:t,label:r,placeholder:n,value:o,onChange:s,error:i,rows:d=4,className:c,...u})=>{const f=o??"";return a.jsxs("div",{className:l("space-y-sm",c),children:[r&&a.jsx(ne,{htmlFor:e,className:"block",children:r}),a.jsx("textarea",{id:e,name:t,placeholder:n,value:f,onChange:p=>s==null?void 0:s(p.target.value),className:"w-full rounded-md border border-input bg-background px-sm py-sm",rows:d,...u}),i&&a.jsx(C,{size:"sm",color:"destructive",children:i})]})},co=({emailLabel:e,emailPlaceholder:t,passwordLabel:r,passwordPlaceholder:n,loginButtonText:o,className:s})=>{if(!e||e.trim()==="")throw new Error('LoginForm: "emailLabel" prop is required and cannot be empty');if(!t||t.trim()==="")throw new Error('LoginForm: "emailPlaceholder" prop is required and cannot be empty');if(!r||r.trim()==="")throw new Error('LoginForm: "passwordLabel" prop is required and cannot be empty');if(!n||n.trim()==="")throw new Error('LoginForm: "passwordPlaceholder" prop is required and cannot be empty');if(!o||o.trim()==="")throw new Error('LoginForm: "loginButtonText" prop is required and cannot be empty');return a.jsxs("div",{className:l("space-y-md",s),children:[a.jsx(me,{label:e,placeholder:t}),a.jsx(me,{label:r,placeholder:n}),a.jsx(L,{className:"w-full",children:o})]})},uo=({name:e,email:t,avatar:r,className:n})=>{if(!e||e.trim()==="")throw new Error('ProfileCard: "name" prop is required and cannot be empty');if(!t||t.trim()==="")throw new Error('ProfileCard: "email" prop is required and cannot be empty');return a.jsx(K,{className:l("shadow-md",n),children:a.jsxs(Z,{className:"p-md",children:[r&&a.jsx("div",{className:"mb-md h-16 w-16 rounded-full bg-muted"}),a.jsx(H,{level:3,className:"mb-sm text-lg font-semibold",children:e}),a.jsx(C,{color:"muted",children:t})]})})},mo=({nameLabel:e,namePlaceholder:t,emailLabel:r,emailPlaceholder:n,passwordLabel:o,passwordPlaceholder:s,registerButtonText:i,className:d})=>{if(!e||e.trim()==="")throw new Error('RegisterForm: "nameLabel" prop is required and cannot be empty');if(!t||t.trim()==="")throw new Error('RegisterForm: "namePlaceholder" prop is required and cannot be empty');if(!r||r.trim()==="")throw new Error('RegisterForm: "emailLabel" prop is required and cannot be empty');if(!n||n.trim()==="")throw new Error('RegisterForm: "emailPlaceholder" prop is required and cannot be empty');if(!o||o.trim()==="")throw new Error('RegisterForm: "passwordLabel" prop is required and cannot be empty');if(!s||s.trim()==="")throw new Error('RegisterForm: "passwordPlaceholder" prop is required and cannot be empty');if(!i||i.trim()==="")throw new Error('RegisterForm: "registerButtonText" prop is required and cannot be empty');return a.jsxs("div",{className:l("space-y-md",d),children:[a.jsx(me,{label:e,placeholder:t}),a.jsx(me,{label:r,placeholder:n}),a.jsx(me,{label:o,placeholder:s}),a.jsx(L,{className:"w-full",children:i})]})},fo=({title:e,content:t,className:r})=>{if(!e||e.trim()==="")throw new Error('Dashboard: "title" prop is required and cannot be empty');if(!t||t.trim()==="")throw new Error('Dashboard: "content" prop is required and cannot be empty');return a.jsx(K,{className:l("shadow-md",r),children:a.jsxs(Z,{className:"p-lg",children:[a.jsx(H,{level:2,className:"mb-md",children:e}),a.jsx(C,{color:"muted",children:t})]})})},po=({title:e,content:t,className:r})=>{if(!e||e.trim()==="")throw new Error('UserManagement: "title" prop is required and cannot be empty');if(!t||t.trim()==="")throw new Error('UserManagement: "content" prop is required and cannot be empty');return a.jsx(K,{className:l("shadow-md",r),children:a.jsxs(Z,{className:"p-lg",children:[a.jsx(H,{level:2,className:"mb-md",children:e}),a.jsx(C,{color:"muted",children:t})]})})},ho=({placeholder:e,className:t,onSearch:r,suggestions:n=[],onSuggestionSelect:o})=>{if(!e||e.trim()==="")throw new Error('SearchBar: "placeholder" prop is required and cannot be empty');const[s,i]=g.useState(""),[d,c]=g.useState(!1),[u,f]=g.useState(-1),p=g.useRef(null),v=w=>{i(w),f(-1),r&&r(w)},h=()=>{c(!0)},x=w=>{setTimeout(()=>{var y;(y=p.current)!=null&&y.contains(document.activeElement)||(c(!1),f(-1))},200)},b=w=>{if(n.length!==0)if(w.key==="ArrowDown")w.preventDefault(),f(y=>y<n.length-1?y+1:y);else if(w.key==="ArrowUp")w.preventDefault(),f(y=>y>0?y-1:-1);else if(w.key==="Enter"&&u>=0&&u<n.length){w.preventDefault();const y=n[u];y&&(i(y),v(y),o==null||o(y),c(!1))}else w.key==="Escape"&&(c(!1),f(-1))},S=w=>{i(w),v(w),o==null||o(w),c(!1)};g.useEffect(()=>{const w=y=>{p.current&&!p.current.contains(y.target)&&(c(!1),f(-1))};return document.addEventListener("mousedown",w),()=>document.removeEventListener("mousedown",w)},[]);const T=n.filter(w=>w.toLowerCase().includes(s.toLowerCase()));return a.jsxs("div",{ref:p,className:l("relative w-full max-w-sm",t),children:[a.jsx(Me,{placeholder:e,value:s,onChange:v,onFocus:h,onBlur:x,onKeyDown:b,className:l("transition-all duration-200","focus:ring-2 focus:ring-primary focus:ring-offset-2","hover:border-primary/50",d&&"border-primary shadow-sm")}),d&&T.length>0&&a.jsx("div",{className:"absolute z-50 mt-1 max-h-60 w-full overflow-auto rounded-md border bg-popover shadow-lg",children:T.map((w,y)=>a.jsx(L,{type:"button",variant:"ghost",onClick:()=>S(w),className:l("w-full justify-start px-md py-sm text-sm",y===u&&"bg-accent text-accent-foreground"),children:w},w))})]})},go=({articles:e,readMoreLabel:t,className:r})=>{if(!t||t.trim()==="")throw new Error('ArticlesSection: "readMoreLabel" prop is required and cannot be empty');return a.jsx("div",{className:l("space-y-lg",r),children:e.map(n=>a.jsxs("article",{className:"rounded-lg border p-lg transition-shadow hover:shadow-md",children:[n.image&&a.jsx("div",{className:"mb-md h-48 w-full rounded-md bg-muted"}),a.jsxs("div",{className:"space-y-sm",children:[a.jsx(H,{level:2,className:"text-xl font-semibold",children:a.jsx(oe,{href:`/news/${n.slug}`,variant:"ghost",size:"none",className:"hover:text-primary",children:n.title})}),n.description&&a.jsx(C,{color:"muted",children:n.description}),n.date&&a.jsx(C,{size:"sm",color:"muted",children:n.date}),a.jsxs(oe,{href:`/news/${n.slug}`,variant:"default",size:"none",className:"inline-flex items-center",children:[t," →"]})]})]},n.slug))})},xo=({events:e,limit:t,loading:r,title:n,loadingText:o,contentText:s,className:i,...d})=>{if(!Array.isArray(e))throw new Error('TrendingSection: "events" prop is required and must be an array');if(typeof t!="number"||isNaN(t)||t<0)throw new Error('TrendingSection: "limit" prop is required and must be a non-negative number');if(typeof r!="boolean")throw new Error('TrendingSection: "loading" prop is required and must be a boolean');if(!n||n.trim()==="")throw new Error('TrendingSection: "title" prop is required and cannot be empty');if(!o||o.trim()==="")throw new Error('TrendingSection: "loadingText" prop is required and cannot be empty');if(!s||s.trim()==="")throw new Error('TrendingSection: "contentText" prop is required and cannot be empty');return a.jsx(K,{className:l("shadow-md",i),...d,children:a.jsxs(Z,{className:"p-lg",children:[a.jsx(H,{level:2,className:"mb-md",children:n}),r?a.jsx(C,{color:"muted",children:o}):a.jsx(C,{color:"muted",children:s})]})})},bo=({className:e})=>a.jsx("div",{className:l("flex h-6 w-6 items-center justify-center rounded-full bg-primary",e),children:a.jsx("span",{className:"text-sm text-white",children:"↑"})}),wo=({ariaLabel:e,dataTestId:t,className:r,languages:n,value:o,defaultValue:s,disabled:i,onLanguageChange:d})=>{if(!e||e.trim()==="")throw new Error('LanguageSelector: "ariaLabel" prop is required and cannot be empty');if(!t||t.trim()==="")throw new Error('LanguageSelector: "dataTestId" prop is required and cannot be empty');if(!n||n.length===0)throw new Error('LanguageSelector: "languages" prop is required and cannot be empty');const c=g.useMemo(()=>n,[n]),u=()=>{if(o!==void 0)return o;if(s&&c.some(h=>h.code===s))return s;if(c.length===0)throw new Error("LanguageSelector: languages array must contain at least one option");return c[0].code},[f,p]=g.useState(u);g.useEffect(()=>{o!==void 0&&o!==f&&p(o)},[o,f]);const v=h=>{const x=h.target.value;o===void 0&&p(x),d==null||d(x)};return a.jsx("select",{value:o??f,onChange:v,disabled:i,className:l("rounded-md border border-input bg-background px-sm py-sm text-sm",i&&"cursor-not-allowed opacity-70",r),"aria-label":e,"data-testid":t,children:c.map(({code:h,label:x})=>a.jsx("option",{value:h,children:x},h))})},Sr=({className:e})=>a.jsxs("div",{className:l("rounded-lg bg-background p-md shadow-md",e),children:[a.jsx(J,{className:"mb-md h-48 w-full"}),a.jsx(J,{className:"mb-sm h-6 w-3/4"}),a.jsx(J,{className:"mb-sm h-4 w-full"}),a.jsx(J,{className:"h-4 w-1/2"})]}),Cr=({className:e})=>a.jsxs("div",{className:l("rounded-lg bg-background p-md shadow-md",e),children:[a.jsx(J,{className:"mb-md h-48 w-full"}),a.jsx(J,{className:"mb-sm h-6 w-3/4"}),a.jsx(J,{className:"mb-sm h-4 w-full"}),a.jsx(J,{className:"h-4 w-1/2"})]});exports.accentColors=ee.accentColors;exports.baseColors=ee.baseColors;exports.colorCSSVariables=ee.colorCSSVariables;exports.cssVariableColorTokens=ee.cssVariableColorTokens;exports.primaryColors=ee.primaryColors;exports.secondaryColors=ee.secondaryColors;exports.semanticColors=ee.semanticColors;exports.surfaceColors=ee.surfaceColors;exports.tailwindThemeColors=ee.tailwindThemeColors;exports.textColors=ee.textColors;exports.accentColoredShadows=j.accentColoredShadows;exports.allCSSVariables=j.allCSSVariables;exports.allCSSVariablesCSS=j.allCSSVariablesCSS;exports.animations=j.animations;exports.componentShadowMapping=j.componentShadowMapping;exports.durations=j.durations;exports.easings=j.easings;exports.elevationShadows=j.elevationShadows;exports.focusRings=j.focusRings;exports.fontFamily=j.fontFamily;exports.fontSize=j.fontSize;exports.fontWeight=j.fontWeight;exports.generateCSSVariablesCSS=j.generateCSSVariablesCSS;exports.glowEffects=j.glowEffects;exports.keyframes=j.keyframes;exports.layoutSpacing=j.layoutSpacing;exports.letterSpacing=j.letterSpacing;exports.lineHeight=j.lineHeight;exports.motionCSSVariables=j.motionCSSVariables;exports.primaryColoredShadows=j.primaryColoredShadows;exports.reducedMotion=j.reducedMotion;exports.semanticSpacing=j.semanticSpacing;exports.shadowCSSVariables=j.shadowCSSVariables;exports.spacing=j.spacing;exports.spacingCSSVariables=j.spacingCSSVariables;exports.tailwindMotionConfig=j.tailwindMotionConfig;exports.tailwindShadowConfig=j.tailwindShadowConfig;exports.tailwindSpacingConfig=j.tailwindSpacingConfig;exports.tailwindTypographyConfig=j.tailwindTypographyConfig;exports.textStyles=j.textStyles;exports.tokenSystemSummary=j.tokenSystemSummary;exports.transitions=j.transitions;exports.typographyCSSVariables=j.typographyCSSVariables;exports.borderRadius=Ce.borderRadius;exports.componentRadius=Ce.componentRadius;exports.radiusCSSVariables=Ce.radiusCSSVariables;exports.tailwindRadiusConfig=Ce.tailwindRadiusConfig;exports.applyDocumentMode=se.applyDocumentMode;exports.applyDocumentTheme=se.applyDocumentTheme;exports.getInitialMode=se.getInitialMode;exports.getInitialTheme=se.getInitialTheme;exports.loadThemeOverride=se.loadThemeOverride;exports.persistMode=se.persistMode;exports.persistTheme=se.persistTheme;exports.Alert=Qn;exports.ArticlesSection=go;exports.Badge=Yr;exports.Blockquote=Ur;exports.Breadcrumbs=eo;exports.Button=L;exports.Card=K;exports.CardContent=Z;exports.CardDescription=ct;exports.CardFooter=ut;exports.CardHeader=dt;exports.CardTitle=lt;exports.Code=Qr;exports.ConfirmDialog=Et;exports.Container=vt;exports.CustomDialog=la;exports.Dashboard=fo;exports.DateRangePicker=Ie;exports.Divider=mt;exports.DropdownMenu=pa;exports.DropdownMenuCheckboxItem=Yt;exports.DropdownMenuContent=_t;exports.DropdownMenuGroup=ga;exports.DropdownMenuItem=Bt;exports.DropdownMenuLabel=Ht;exports.DropdownMenuPortal=xa;exports.DropdownMenuRadioGroup=wa;exports.DropdownMenuRadioItem=$t;exports.DropdownMenuSeparator=At;exports.DropdownMenuShortcut=Gt;exports.DropdownMenuSub=ba;exports.DropdownMenuSubContent=Lt;exports.DropdownMenuSubTrigger=zt;exports.DropdownMenuTrigger=ha;exports.EventCard=oo;exports.EventCardSkeleton=Sr;exports.EventCardSkeletonUI=Sr;exports.FilterBar=mr;exports.FilterBarCompact=Fn;exports.FilterSelect=ve;exports.Flex=Nt;exports.Footer=Jr;exports.FormInput=me;exports.FormSelect=io;exports.FormTextarea=lo;exports.Grid=Ct;exports.Heading=H;exports.Image=Nr;exports.Input=pe;exports.Label=ne;exports.LanguageSelector=wo;exports.Link=oe;exports.List=ro;exports.LoginForm=co;exports.Modal=Tt;exports.ModalClose=ra;exports.ModalContent=Re;exports.ModalDescription=Ve;exports.ModalFooter=Oe;exports.ModalHeader=qe;exports.ModalOverlay=Pe;exports.ModalPortal=Dt;exports.ModalProvider=ua;exports.ModalTitle=Fe;exports.ModalTrigger=ta;exports.ModeHero=Kr;exports.Navbar=Zr;exports.NavigationMenu=Xt;exports.NavigationMenuContent=Kt;exports.NavigationMenuIndicator=Zt;exports.NavigationMenuItem=ya;exports.NavigationMenuLink=va;exports.NavigationMenuList=Qt;exports.NavigationMenuTrigger=Jt;exports.NavigationMenuViewport=We;exports.OverlayBackdrop=$n;exports.OverlayContainer=Hn;exports.OverlayPortal=Yn;exports.Pagination=to;exports.Paragraph=Xr;exports.Popover=gr;exports.PopoverAnchor=An;exports.PopoverContent=He;exports.PopoverTrigger=xr;exports.PopoverWrapper=Gn;exports.PriceRangeSlider=ur;exports.ProfileCard=uo;exports.Progress=Un;exports.RegisterForm=mo;exports.SearchBar=ho;exports.SearchFilters=Vn;exports.SearchInput=Me;exports.Section=ea;exports.Select=ir;exports.SelectContent=Be;exports.SelectGroup=En;exports.SelectItem=Ye;exports.SelectLabel=lr;exports.SelectScrollDownButton=_e;exports.SelectScrollUpButton=Le;exports.SelectSeparator=cr;exports.SelectTrigger=ze;exports.SelectValue=dr;exports.SimpleModal=fa;exports.Skeleton=J;exports.Stack=Mt;exports.Table=ao;exports.Tabs=ja;exports.TabsContent=rr;exports.TabsList=er;exports.TabsTrigger=tr;exports.Text=C;exports.ThemeSwitch=Gr;exports.Timeline=no;exports.Toast=$e;exports.ToastProvider=Ln;exports.Tooltip=yr;exports.TooltipContent=Ae;exports.TooltipProvider=wr;exports.TooltipTrigger=vr;exports.TooltipWrapper=Xn;exports.TrendingIcon=bo;exports.TrendingSection=xo;exports.UserManagement=po;exports.VenueCard=so;exports.VenueCardSkeleton=Cr;exports.VenueCardSkeletonUI=Cr;exports.badgeVariants=st;exports.buttonVariants=it;exports.cn=l;exports.containerVariants=yt;exports.debounce=_r;exports.flexVariants=jt;exports.formatDate=nt;exports.formatDateTime=zr;exports.formatTime=ot;exports.generateId=Lr;exports.gridVariants=St;exports.linkVariants=ft;exports.navigationMenuTriggerStyle=Ut;exports.popoverContentVariants=br;exports.stackVariants=kt;exports.throttle=Br;exports.toastVariants=fr;exports.tooltipContentVariants=jr;exports.useConfirmDialog=aa;exports.useDateRange=Dn;exports.useModal=ca;exports.useModalContext=It;exports.useModalManager=Vt;exports.usePriceRange=Pn;exports.useSearch=qn;exports.useToast=_n;exports.useToastContext=hr;exports.withModal=ma;
2
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("./motion-4SRNkZlz.cjs"),V=require("./tokens/index.cjs"),$e=require("./radius-Cz6tayZG.cjs"),a=require("react/jsx-runtime"),re=require("class-variance-authority"),g=require("react"),Kr=require("clsx"),Zr=require("tailwind-merge"),Dt=require("@radix-ui/react-slot"),ea=require("@radix-ui/react-label"),L=require("lucide-react"),ie=require("./ThemeProvider-CaUX_Jam.cjs"),he=require("framer-motion"),ta=require("@radix-ui/react-dialog"),ra=require("react-dom"),aa=require("@radix-ui/react-popover"),na=require("@radix-ui/react-tooltip"),sa=require("@radix-ui/react-dropdown-menu"),oa=require("@radix-ui/react-navigation-menu"),ia=require("@radix-ui/react-tabs"),da=require("@radix-ui/react-select");function xe(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const p=xe(g),Tt=xe(ea),k=xe(ta),De=xe(aa),Ie=xe(na),q=xe(sa),ee=xe(oa),je=xe(ia),A=xe(da);function c(...e){return Zr.twMerge(Kr.clsx(e))}function Et(e){return new Intl.DateTimeFormat("en-US",{month:"long",day:"numeric",year:"numeric"}).format(new Date(e))}function Pt(e){return new Intl.DateTimeFormat("en-US",{hour:"numeric",minute:"2-digit",hour12:!0}).format(new Date(e))}function la(e){return`${Et(e)} at ${Pt(e)}`}function ca(){return Math.random().toString(36).substr(2,9)}function ua(e,t){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>e(...n),t)}}function ma(e,t){let r;return(...n)=>{r||(e(...n),r=!0,setTimeout(()=>r=!1,t))}}const Rt=re.cva("inline-flex items-center rounded-full border px-xs py-xs text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{primary:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",accent:"border-transparent bg-accent text-accent-foreground hover:bg-accent/80",outline:"text-foreground border-border",ghost:"border-transparent bg-transparent text-foreground hover:bg-accent/10",link:"border-transparent bg-transparent text-primary hover:text-primary/80 underline-offset-4 hover:underline",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80"}},defaultVariants:{variant:"primary"}});function ha({className:e,variant:t,...r}){return a.jsx("div",{className:c(Rt({variant:t}),e),...r})}const Ot=re.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{primary:"bg-primary text-primary-foreground shadow hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",accent:"bg-accent text-accent-foreground shadow-sm hover:bg-accent/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90"},size:{xs:"h-7 rounded-md px-xs py-xs text-xs",sm:"h-8 rounded-md px-sm py-xs text-xs",md:"h-9 rounded-md px-md py-sm text-sm",lg:"h-10 rounded-md px-lg py-sm text-sm",xl:"h-11 rounded-md px-xl py-md text-base",icon:"h-9 w-9"}},defaultVariants:{variant:"primary",size:"md"}}),J=p.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,leftIcon:s,rightIcon:o,children:d,...i},l)=>{const u=n?Dt.Slot:"button";return a.jsxs(u,{className:c(Ot({variant:t,size:r,className:e})),ref:l,...i,children:[s&&a.jsx("span",{className:"inline-flex items-center",children:s}),d,o&&a.jsx("span",{className:"inline-flex items-center",children:o})]})});J.displayName="Button";const se=p.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:c("rounded-xl border bg-card text-card-foreground shadow",e),...t}));se.displayName="Card";const Ft=p.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:c("flex flex-col space-y-xs p-lg",e),...t}));Ft.displayName="CardHeader";const qt=p.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:c("font-semibold leading-none tracking-tight",e),...t}));qt.displayName="CardTitle";const Vt=p.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:c("text-sm text-muted-foreground",e),...t}));Vt.displayName="CardDescription";const oe=p.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:c("p-lg pt-0",e),...t}));oe.displayName="CardContent";const It=p.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:c("flex items-center p-lg pt-0",e),...t}));It.displayName="CardFooter";const Lt=p.forwardRef(({className:e,orientation:t="horizontal",variant:r="solid",...n},s)=>{const o={solid:"border-solid",dashed:"border-dashed",dotted:"border-dotted"};return a.jsx("div",{ref:s,className:c("border-border",t==="horizontal"?`w-full border-t ${o[r]}`:`h-full border-l ${o[r]}`,e),...n})});Lt.displayName="Divider";const Te=p.forwardRef(({className:e,type:t,...r},n)=>a.jsx("input",{type:t,className:c("flex h-9 w-full rounded-md border border-input bg-transparent px-sm py-xs text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...r}));Te.displayName="Input";const pa=re.cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),be=p.forwardRef(({className:e,...t},r)=>a.jsx(Tt.Root,{ref:r,className:c(pa(),e),...t}));be.displayName=Tt.Root.displayName;const Bt=re.cva("inline-flex items-center justify-center whitespace-nowrap text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{primary:"text-primary hover:text-primary/80 underline-offset-4 hover:underline",secondary:"text-secondary-foreground underline-offset-4 hover:underline",accent:"text-accent-foreground hover:text-accent-foreground/80 underline-offset-4 hover:underline",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground rounded-md px-md py-sm",ghost:"text-foreground hover:text-accent-foreground hover:bg-accent rounded-md px-sm py-sm",link:"text-primary underline-offset-4 hover:underline",destructive:"text-destructive hover:text-destructive/80 underline-offset-4 hover:underline"},size:{xs:"h-7 text-xs px-xs py-xs",sm:"h-8 text-xs px-sm py-xs",md:"h-9 text-sm px-md py-sm",lg:"h-10 text-sm px-lg py-sm",xl:"h-11 text-base px-xl py-md"}},defaultVariants:{variant:"link",size:"md"}}),pe=p.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,leftIcon:s,rightIcon:o,children:d,...i},l)=>{const u=n?Dt.Slot:"a";return a.jsxs(u,{className:c(Bt({variant:t,size:r,className:e})),ref:l,...i,children:[s&&a.jsx("span",{className:"inline-flex items-center",children:s}),d,o&&a.jsx("span",{className:"inline-flex items-center",children:o})]})});pe.displayName="Link";const zt="tm_mode",Wt="tm_mode",_t="theme",At="data-mode",$t="data-theme",xa="dark";function Ht(e){var s,o;if(((o=(s=globalThis.process)==null?void 0:s.env)==null?void 0:o.NODE_ENV)==="production"||typeof document>"u")return;const r=document.documentElement,n={"data-mode":r.getAttribute(At),"data-theme":r.getAttribute($t),darkClass:r.classList.contains(xa),"--background":getComputedStyle(r).getPropertyValue("--background"),"--tm-primary":getComputedStyle(r).getPropertyValue("--tm-primary")};console.log("[theme-switch]",e,n)}function fa(e){var n;if(typeof document>"u")return;const r=`; ${document.cookie}`.split(`; ${e}=`);if(r.length===2)return(n=r.pop())==null?void 0:n.split(";")[0]}function bt(){var n,s;if(typeof document>"u")return"day";const e=document.documentElement.getAttribute(At);if(e==="day"||e==="night")return e;const t=document.documentElement.getAttribute($t);if(t==="day"||t==="night")return t;if(typeof window<"u")try{const o=window.localStorage.getItem(Wt);if(o==="day"||o==="night")return o;const d=window.localStorage.getItem(_t);if(d==="dark")return"night";if(d==="light")return"day"}catch{}const r=fa(zt);return r==="day"||r==="night"?r:typeof window<"u"&&((s=(n=window.matchMedia)==null?void 0:n.call(window,"(prefers-color-scheme: dark)"))==null?void 0:s.matches)?"night":"day"}function yt(e){if(typeof document>"u")return;if(ie.applyDocumentMode(e),typeof window<"u")try{window.localStorage.setItem(Wt,e),window.localStorage.setItem(_t,e==="night"?"dark":"light")}catch{}const t=new Date;t.setFullYear(t.getFullYear()+1),document.cookie=`${zt}=${e};expires=${t.toUTCString()};path=/;SameSite=Lax`,Ht(`persist:${e}`)}const ba=({className:e,size:t="md",variant:r="primary"})=>{const n=g.useContext(ie.ThemeContext),[s,o]=g.useState(()=>n?n.mode:bt());g.useEffect(()=>{if(n)o(n.mode);else{const l=bt();o(l),yt(l),Ht(`initial:${l}`)}},[n]);const d=()=>{n?(n.toggleMode(),o(n.mode==="night"?"day":"night")):o(l=>{const u=l==="night"?"day":"night";return yt(u),u})};let i="md";return t==="xs"?i="xs":t==="sm"?i="sm":t==="lg"?i="lg":t==="xl"&&(i="xl"),a.jsx(J,{onClick:d,variant:r,size:i,className:c(e),"aria-label":`Switch to ${s==="night"?"day":"night"} mode`,type:"button",children:s==="night"?a.jsx(L.Sun,{className:"h-4 w-4"}):a.jsx(L.Moon,{className:"h-4 w-4"})})},Y=({className:e,children:t,as:r,level:n=1})=>{const s=r||`h${n}`,o={1:"text-4xl font-bold tracking-tight",2:"text-3xl font-bold tracking-tight",3:"text-2xl font-bold tracking-tight",4:"text-xl font-semibold tracking-tight",5:"text-lg font-semibold tracking-tight",6:"text-md font-semibold tracking-tight"};return a.jsx(s,{className:c(o[n],e),children:t})},M=({className:e,children:t,size:r="md",weight:n="normal",variant:s})=>{const o={xs:"text-xs",sm:"text-sm",md:"text-base",lg:"text-lg",xl:"text-xl"},d={normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"},i={primary:"text-primary",secondary:"text-secondary-foreground",accent:"text-accent-foreground",outline:"text-foreground",ghost:"text-foreground",link:"text-primary hover:underline",destructive:"text-destructive",muted:"text-muted-foreground"};return a.jsx("span",{className:c(o[r],d[n],s&&i[s],e),children:t})},ya=({className:e,children:t,...r})=>a.jsx("p",{className:c("leading-7 [&:not(:first-child)]:mt-lg",e),children:a.jsx(M,{...r,children:t})}),wa=({className:e,children:t})=>a.jsx("code",{className:c("relative rounded bg-muted px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold",e),children:t}),va=({className:e,children:t})=>a.jsx("blockquote",{className:c("mt-lg border-l-2 pl-lg italic",e),children:t});function Ne(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function me(e){if(typeof e=="number")return e%1!==0?`var(--spacing-${e.toString().replace(".","-")})`:`var(--spacing-${e})`;if(e==="none")return"var(--spacing-none)";if(e.includes("-")&&!e.startsWith("--")){const t=e.split("-");if(t.length>=2){const r=t[0],n=t.slice(1).join("-");if(r&&["section","container","grid","stack","component"].includes(r))return`var(--layout-${r}-${n})`}}return`var(--spacing-${e})`}function Yt(e){return`var(--radius-${e})`}function ga(e){return e.startsWith("hsl(")||e.startsWith("var(")?e:`var(--${e})`}function ce(e){return me(e)}function ja(e){return Yt(e)}function Na(e){return e.startsWith("hsl(")||e.startsWith("var(")?e:ga(e)}function ae(e,t,r){return e?Ne(e)?e.base!==void 0?t(e.base):e.sm!==void 0?t(e.sm):e.md!==void 0?t(e.md):r:t(e):r}function Sa(e){return e.initial!==void 0||e.animate!==void 0||e.exit!==void 0||e.transition!==void 0||e.whileHover!==void 0||e.whileFocus!==void 0||e.whileTap!==void 0||e.whileDrag!==void 0||e.whileInView!==void 0}const Le=p.forwardRef(({p:e,px:t,py:r,pt:n,pr:s,pb:o,pl:d,m:i,mx:l,my:u,mt:m,mr:f,mb:y,ml:h,bg:b,radius:w,as:j="div",className:N,style:x,initial:v,animate:$,exit:B,transition:O,whileHover:F,whileFocus:P,whileTap:I,whileDrag:z,whileInView:W,viewport:T,...R},C)=>{const S={};e?S.padding=ae(e,ce):((n||r)&&(S.paddingTop=ae(n||r,ce)),(s||t)&&(S.paddingRight=ae(s||t,ce)),(o||r)&&(S.paddingBottom=ae(o||r,ce)),(d||t)&&(S.paddingLeft=ae(d||t,ce))),i?S.margin=ae(i,ce):((m||u)&&(S.marginTop=ae(m||u,ce)),(f||l)&&(S.marginRight=ae(f||l,ce)),(y||u)&&(S.marginBottom=ae(y||u,ce)),(h||l)&&(S.marginLeft=ae(h||l,ce))),b&&(S.backgroundColor=ae(b,Na)),w&&(S.borderRadius=ae(w,ja));const te={...S,...x},K=Sa({initial:v,animate:$,exit:B,transition:O,whileHover:F,whileFocus:P,whileTap:I,whileDrag:z,whileInView:W}),Z=K?{initial:v,animate:$,exit:B,transition:O,whileHover:F,whileFocus:P,whileTap:I,whileDrag:z,whileInView:W,viewport:T}:{};if(K&&j==="div"){const{onDrag:U,onDragStart:ye,onDragEnd:le,onAnimationStart:Se,onAnimationEnd:Ee,onAnimationIteration:Be,...ze}=R,Pe=ze;return a.jsx(he.motion.div,{ref:C,className:N,style:te,...Z,...Pe})}const G=j;return a.jsx(G,{ref:C,className:N,style:te,...R})});Le.displayName="Box";const Gt=re.cva("mx-auto px-md",{variants:{size:{sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl","2xl":"max-w-2xl","3xl":"max-w-3xl","4xl":"max-w-4xl","5xl":"max-w-5xl","6xl":"max-w-6xl","7xl":"max-w-7xl",full:"max-w-full"},padding:{none:"px-0",sm:"px-sm",md:"px-md",lg:"px-lg",xl:"px-xl"}},defaultVariants:{size:"7xl",padding:"md"}}),Ut=p.forwardRef(({className:e,size:t,padding:r,...n},s)=>a.jsx("div",{ref:s,className:c(Gt({size:t,padding:r,className:e})),...n}));Ut.displayName="Container";const Xt=re.cva("flex",{variants:{direction:{row:"flex-row","row-reverse":"flex-row-reverse",column:"flex-col","column-reverse":"flex-col-reverse"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap","wrap-reverse":"flex-wrap-reverse"},justify:{start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},align:{start:"items-start",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"}},defaultVariants:{direction:"row",wrap:"nowrap",justify:"start",align:"start"}});function Ma(e){return e.initial!==void 0||e.animate!==void 0||e.exit!==void 0||e.transition!==void 0||e.whileHover!==void 0||e.whileFocus!==void 0||e.whileTap!==void 0||e.whileDrag!==void 0||e.whileInView!==void 0}function Ca(e,t){if(e==null)return t;if(Ne(e)){let r;return e.base!==void 0?r=e.base:e.sm!==void 0?r=e.sm:e.md!==void 0&&(r=e.md),r!==void 0?me(r):t}return me(e===0?0:e)}function We(e){if(e!=null)return Ne(e)?e.base||e.sm||e.md||e.lg||e.xl||e["2xl"]||void 0:e}const He=p.forwardRef(({className:e,direction:t,wrap:r,justify:n,align:s,gap:o,style:d,initial:i,animate:l,exit:u,transition:m,whileHover:f,whileFocus:y,whileTap:h,whileDrag:b,whileInView:w,viewport:j,...N},x)=>{const v=We(t),$=We(r),B=We(n),O=We(s),F={};o!==void 0&&(F.gap=Ca(o,"0"));const P={...F,...d},I=Ma({initial:i,animate:l,exit:u,transition:m,whileHover:f,whileFocus:y,whileTap:h,whileDrag:b,whileInView:w}),z=I?{initial:i,animate:l,exit:u,transition:m,whileHover:f,whileFocus:y,whileTap:h,whileDrag:b,whileInView:w,viewport:j}:{},W=c(Xt({direction:v,wrap:$,justify:B,align:O}),e);if(I){const{onDrag:T,onDragStart:R,onDragEnd:C,onAnimationStart:S,onAnimationEnd:te,onAnimationIteration:K,...Z}=N,G=Z;return a.jsx(he.motion.div,{ref:x,className:W,style:P,...z,...G})}return a.jsx("div",{ref:x,className:W,style:P,...N})});He.displayName="Flex";const ka=({className:e,left:t,right:r,children:n})=>a.jsx("footer",{className:c("w-full border-t bg-background px-md py-lg",e),children:a.jsxs("div",{className:"flex w-full items-center justify-between",children:[t&&a.jsx("div",{className:"flex items-center",children:t}),n&&a.jsx("div",{className:"flex items-center",children:n}),r&&a.jsx("div",{className:"flex items-center",children:r})]})}),Qt=re.cva("grid",{variants:{cols:{1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",12:"grid-cols-12",none:"grid-cols-none"},rows:{1:"grid-rows-1",2:"grid-rows-2",3:"grid-rows-3",4:"grid-rows-4",5:"grid-rows-5",6:"grid-rows-6",none:"grid-rows-none"},align:{start:"items-start",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"},justify:{start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},flow:{row:"grid-flow-row",col:"grid-flow-col",dense:"grid-flow-dense","row-dense":"grid-flow-row-dense","col-dense":"grid-flow-col-dense"}},defaultVariants:{cols:1,rows:"none",align:"stretch",justify:"start",flow:"row"}});function Re(e){if(e!=null)return Ne(e)?e.base||e.sm||e.md||e.lg||e.xl||e["2xl"]||void 0:e}function Da(e,t){if(e==null)return t;if(Ne(e)){let r;return e.base!==void 0?r=e.base:e.sm!==void 0?r=e.sm:e.md!==void 0&&(r=e.md),r!==void 0?me(r):t}return me(e===0?0:e)}function Ta(e){return e.initial!==void 0||e.animate!==void 0||e.exit!==void 0||e.transition!==void 0||e.whileHover!==void 0||e.whileFocus!==void 0||e.whileTap!==void 0||e.whileDrag!==void 0||e.whileInView!==void 0}const Ke=p.forwardRef(({className:e,cols:t,md:r,lg:n,xl:s,rows:o,gap:d,align:i,justify:l,flow:u,style:m,initial:f,animate:y,exit:h,transition:b,whileHover:w,whileFocus:j,whileTap:N,whileDrag:x,whileInView:v,viewport:$,...B},O)=>{const F=Re(t),P=Re(o),I=Re(i),z=Re(l),W=Re(u),T=r||n||s,C=[F?`grid-cols-${F}`:"grid-cols-1",r&&`md:grid-cols-${r}`,n&&`lg:grid-cols-${n}`,s&&`xl:grid-cols-${s}`].filter(Boolean).join(" "),S={};d!==void 0&&(S.gap=Da(d,"0"));const te={...S,...m},K=Qt({cols:T?void 0:F,rows:P,align:I,justify:z,flow:W}),Z=Ta({initial:f,animate:y,exit:h,transition:b,whileHover:w,whileFocus:j,whileTap:N,whileDrag:x,whileInView:v}),G=Z?{initial:f,animate:y,exit:h,transition:b,whileHover:w,whileFocus:j,whileTap:N,whileDrag:x,whileInView:v,viewport:$}:{},U=c(K,T&&C,e);if(Z){const{onDrag:ye,onDragStart:le,onDragEnd:Se,onAnimationStart:Ee,onAnimationEnd:Be,onAnimationIteration:ze,...Pe}=B,X=Pe;return a.jsx(he.motion.div,{ref:O,className:U,style:te,...G,...X})}return a.jsx("div",{ref:O,className:U,style:te,...B})});Ke.displayName="Grid";const Ea=({dayLabel:e,nightLabel:t,dayDescription:r,nightDescription:n,className:s})=>{if(!e||e.trim()==="")throw new Error('ModeHero: "dayLabel" prop is required and cannot be empty');if(!t||t.trim()==="")throw new Error('ModeHero: "nightLabel" prop is required and cannot be empty');if(!r||r.trim()==="")throw new Error('ModeHero: "dayDescription" prop is required and cannot be empty');if(!n||n.trim()==="")throw new Error('ModeHero: "nightDescription" prop is required and cannot be empty');return a.jsx("div",{className:c("rounded-lg bg-gradient-to-r from-primary to-accent p-lg text-primary-foreground",s),children:a.jsxs("div",{className:"mx-auto max-w-4xl text-center",children:[a.jsx(Y,{level:1,className:"mb-md text-4xl font-bold",children:"Tenerife Music Platform"}),a.jsx(M,{size:"xl",className:"mb-8",children:"Discover amazing music events in Tenerife"}),a.jsxs("div",{className:"grid grid-cols-1 gap-lg md:grid-cols-2",children:[a.jsx(se,{className:"border-white/20 bg-white/10 backdrop-blur-sm",children:a.jsxs(oe,{className:"p-lg",children:[a.jsx(Y,{level:3,className:"mb-sm text-2xl font-semibold",children:e}),a.jsx(M,{className:"text-white/80",children:r})]})}),a.jsx(se,{className:"border-white/20 bg-white/10 backdrop-blur-sm",children:a.jsxs(oe,{className:"p-lg",children:[a.jsx(Y,{level:3,className:"mb-sm text-2xl font-semibold",children:t}),a.jsx(M,{className:"text-white/80",children:n})]})})]})]})})},Pa=({className:e,left:t,right:r,children:n,ariaLabel:s="Primary navigation",...o})=>a.jsxs("nav",{className:c("flex w-full items-center justify-between px-md py-sm",e),"aria-label":s,...o,children:[t&&a.jsx("div",{className:"flex items-center",children:t}),n&&a.jsx("div",{className:"flex items-center",children:n}),r&&a.jsx("div",{className:"flex items-center",children:r})]}),Ra=({className:e,children:t,padding:r="md",background:n="default",as:s="section"})=>{const o={none:"",sm:"py-md",md:"py-xl",lg:"py-3xl",xl:"py-4xl"},d={default:"",muted:"bg-muted",card:"bg-card"};return a.jsx(s,{className:c("w-full",o[r],d[n],e),children:t})},Jt=re.cva("flex flex-col",{variants:{align:{start:"items-start",end:"items-end",center:"items-center",stretch:"items-stretch"},justify:{start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around"}},defaultVariants:{align:"stretch",justify:"start"}});function Ue(e){if(e!=null)return Ne(e)?e.base||e.sm||e.md||e.lg||e.xl||e["2xl"]||void 0:e}function Oa(e,t){if(e==null)return t;if(Ne(e)){let r;return e.base!==void 0?r=e.base:e.sm!==void 0?r=e.sm:e.md!==void 0&&(r=e.md),r!==void 0?me(r):t}return me(e===0?0:e)}function Fa(e){return e.initial!==void 0||e.animate!==void 0||e.exit!==void 0||e.transition!==void 0||e.whileHover!==void 0||e.whileFocus!==void 0||e.whileTap!==void 0||e.whileDrag!==void 0||e.whileInView!==void 0}const Ze=p.forwardRef(({className:e,direction:t,spacing:r,align:n,justify:s,style:o,initial:d,animate:i,exit:l,transition:u,whileHover:m,whileFocus:f,whileTap:y,whileDrag:h,whileInView:b,viewport:w,...j},N)=>{const x=Ue(t),v=Ue(n),$=Ue(s),B=x==="horizontal",O={};r!==void 0&&(O.gap=Oa(r,"0")),B&&(O.flexDirection="row");const F={...O,...o},P=Fa({initial:d,animate:i,exit:l,transition:u,whileHover:m,whileFocus:f,whileTap:y,whileDrag:h,whileInView:b}),I=P?{initial:d,animate:i,exit:l,transition:u,whileHover:m,whileFocus:f,whileTap:y,whileDrag:h,whileInView:b,viewport:w}:{},z=c(Jt({align:v,justify:$}),e);if(P){const{onDrag:W,onDragStart:T,onDragEnd:R,onAnimationStart:C,onAnimationEnd:S,onAnimationIteration:te,...K}=j,Z=K;return a.jsx(he.motion.div,{ref:N,className:z,style:F,...I,...Z})}return a.jsx("div",{ref:N,className:z,style:F,...j})});Ze.displayName="Stack";function _(e){if(e===!0)return!0;if(e===!1||typeof window>"u")return!1;try{return window.matchMedia("(prefers-reduced-motion: reduce)").matches}catch{return!1}}function wt(e,t,r){return _(r)?E.reducedMotion.spring:e&&e in E.springs?{...E.springs[e],...t}:{...E.springs.default,...t}}function vt(e){const r={linear:"linear","ease-in":"easeIn","ease-out":"easeOut","ease-in-out":"easeInOut",ease:"ease"}[e];if(r)return r;const n=e.match(/cubic-bezier\(([^)]+)\)/);if(n&&n[1]){const s=n[1].split(",").map(o=>parseFloat(o.trim())).filter(o=>!isNaN(o));if(s.length===4)return s}return e}function gt(e){const t=e.match(/(\d+(?:\.\d+)?)(ms|s)/);if(!t||!t[1])return;const r=parseFloat(t[1]);if(!(isNaN(r)||r<0))return t[2]==="s"?r:r/1e3}function H(e={}){const{duration:t,easing:r,delay:n,spring:s,reduceMotion:o}=e;if(_(o))return{duration:0,ease:"linear",delay:0};if(s){const l={...typeof s=="string"?wt(s,void 0,o):wt(void 0,s,o)};return delete l.duration,delete l.ease,n!==void 0&&!isNaN(n)&&n>=0&&(l.delay=n/1e3),l}const d={type:"tween"};if(t){let i;if(typeof t=="string"){const l=t in E.durations?E.durations[t]:t;i=gt(l),i===void 0&&t in E.durations&&process.env.NODE_ENV==="development"&&console.warn(`[TAS] Failed to parse duration token "${t}" value "${l}". Using default timing.`)}else if(typeof t=="number")!isNaN(t)&&t>=0&&(i=t/1e3);else{const l=E.durations[t];l&&typeof l=="string"&&(i=gt(l))}i!==void 0&&i>=0&&!isNaN(i)&&(d.duration=i)}if(r)if(typeof r=="string")d.ease=vt(r);else{const i=E.easings[r];i&&(d.ease=vt(i))}return n!==void 0&&!isNaN(n)&&n>=0&&(d.delay=n/1e3),d}const Q={fadeIn:e=>({initial:_(e==null?void 0:e.reducedMotion)?{}:{opacity:0},animate:{opacity:1},transition:H({duration:(e==null?void 0:e.duration)||"normal",easing:typeof(e==null?void 0:e.ease)=="string"?e.ease:"ease-out",delay:e==null?void 0:e.delay,reduceMotion:e==null?void 0:e.reducedMotion})}),fadeOut:e=>({initial:_(e==null?void 0:e.reducedMotion)?{}:{opacity:1},animate:{opacity:0},transition:H({duration:(e==null?void 0:e.duration)||"fast",easing:typeof(e==null?void 0:e.ease)=="string"?e.ease:"ease-in",delay:e==null?void 0:e.delay,reduceMotion:e==null?void 0:e.reducedMotion})}),fadeInUp:e=>{const t=_(e==null?void 0:e.reducedMotion),r=(e==null?void 0:e.distance)||20;return{initial:t?{}:{opacity:0,y:r},animate:{opacity:1,y:0},transition:H({duration:(e==null?void 0:e.duration)||"normal",easing:typeof(e==null?void 0:e.ease)=="string"?e.ease:"ease-out",spring:e==null?void 0:e.spring,delay:e==null?void 0:e.delay,reduceMotion:e==null?void 0:e.reducedMotion})}},fadeInDown:e=>{const t=_(e==null?void 0:e.reducedMotion),r=(e==null?void 0:e.distance)||20;return{initial:t?{}:{opacity:0,y:-r},animate:{opacity:1,y:0},transition:H({duration:(e==null?void 0:e.duration)||"normal",easing:typeof(e==null?void 0:e.ease)=="string"?e.ease:"ease-out",spring:e==null?void 0:e.spring,delay:e==null?void 0:e.delay,reduceMotion:e==null?void 0:e.reducedMotion})}},fadeInLeft:e=>{const t=_(e==null?void 0:e.reducedMotion),r=(e==null?void 0:e.distance)||20;return{initial:t?{}:{opacity:0,x:-r},animate:{opacity:1,x:0},transition:H({duration:(e==null?void 0:e.duration)||"normal",easing:typeof(e==null?void 0:e.ease)=="string"?e.ease:"ease-out",spring:e==null?void 0:e.spring,delay:e==null?void 0:e.delay,reduceMotion:e==null?void 0:e.reducedMotion})}},fadeInRight:e=>{const t=_(e==null?void 0:e.reducedMotion),r=(e==null?void 0:e.distance)||20;return{initial:t?{}:{opacity:0,x:r},animate:{opacity:1,x:0},transition:H({duration:(e==null?void 0:e.duration)||"normal",easing:typeof(e==null?void 0:e.ease)=="string"?e.ease:"ease-out",spring:e==null?void 0:e.spring,delay:e==null?void 0:e.delay,reduceMotion:e==null?void 0:e.reducedMotion})}}},Ce={slideInUp:e=>{const t=_(e==null?void 0:e.reducedMotion),r=(e==null?void 0:e.distance)||100;return{initial:t?{}:{y:r,opacity:0},animate:{y:0,opacity:1},transition:H({duration:(e==null?void 0:e.duration)||"normal",easing:typeof(e==null?void 0:e.ease)=="string"?e.ease:"ease-out",spring:(e==null?void 0:e.spring)||"gentle",delay:e==null?void 0:e.delay,reduceMotion:e==null?void 0:e.reducedMotion})}},slideInDown:e=>{const t=_(e==null?void 0:e.reducedMotion),r=(e==null?void 0:e.distance)||100;return{initial:t?{}:{y:-r,opacity:0},animate:{y:0,opacity:1},transition:H({duration:(e==null?void 0:e.duration)||"normal",easing:typeof(e==null?void 0:e.ease)=="string"?e.ease:"ease-out",spring:(e==null?void 0:e.spring)||"gentle",delay:e==null?void 0:e.delay,reduceMotion:e==null?void 0:e.reducedMotion})}},slideInLeft:e=>{const t=_(e==null?void 0:e.reducedMotion),r=(e==null?void 0:e.distance)||100;return{initial:t?{}:{x:-r,opacity:0},animate:{x:0,opacity:1},transition:H({duration:(e==null?void 0:e.duration)||"normal",easing:typeof(e==null?void 0:e.ease)=="string"?e.ease:"ease-out",spring:(e==null?void 0:e.spring)||"gentle",delay:e==null?void 0:e.delay,reduceMotion:e==null?void 0:e.reducedMotion})}},slideInRight:e=>{const t=_(e==null?void 0:e.reducedMotion),r=(e==null?void 0:e.distance)||100;return{initial:t?{}:{x:r,opacity:0},animate:{x:0,opacity:1},transition:H({duration:(e==null?void 0:e.duration)||"normal",easing:typeof(e==null?void 0:e.ease)=="string"?e.ease:"ease-out",spring:(e==null?void 0:e.spring)||"gentle",delay:e==null?void 0:e.delay,reduceMotion:e==null?void 0:e.reducedMotion})}},slideOutUp:e=>{const t=_(e==null?void 0:e.reducedMotion),r=(e==null?void 0:e.distance)||100;return{initial:{y:0,opacity:1},exit:t?{}:{y:-r,opacity:0},transition:H({duration:(e==null?void 0:e.duration)||"fast",easing:typeof(e==null?void 0:e.ease)=="string"?e.ease:"ease-in",delay:e==null?void 0:e.delay,reduceMotion:e==null?void 0:e.reducedMotion})}},slideOutDown:e=>{const t=_(e==null?void 0:e.reducedMotion),r=(e==null?void 0:e.distance)||100;return{initial:{y:0,opacity:1},exit:t?{}:{y:r,opacity:0},transition:H({duration:(e==null?void 0:e.duration)||"fast",easing:typeof(e==null?void 0:e.ease)=="string"?e.ease:"ease-in",delay:e==null?void 0:e.delay,reduceMotion:e==null?void 0:e.reducedMotion})}},slideOutLeft:e=>{const t=_(e==null?void 0:e.reducedMotion),r=(e==null?void 0:e.distance)||100;return{initial:{x:0,opacity:1},exit:t?{}:{x:-r,opacity:0},transition:H({duration:(e==null?void 0:e.duration)||"fast",easing:typeof(e==null?void 0:e.ease)=="string"?e.ease:"ease-in",delay:e==null?void 0:e.delay,reduceMotion:e==null?void 0:e.reducedMotion})}},slideOutRight:e=>{const t=_(e==null?void 0:e.reducedMotion),r=(e==null?void 0:e.distance)||100;return{initial:{x:0,opacity:1},exit:t?{}:{x:r,opacity:0},transition:H({duration:(e==null?void 0:e.duration)||"fast",easing:typeof(e==null?void 0:e.ease)=="string"?e.ease:"ease-in",delay:e==null?void 0:e.delay,reduceMotion:e==null?void 0:e.reducedMotion})}}},ve={scaleIn:e=>{const t=_(e==null?void 0:e.reducedMotion),r=(e==null?void 0:e.scale)||.95;return{initial:t?{}:{scale:r,opacity:0},animate:{scale:1,opacity:1},transition:H({duration:(e==null?void 0:e.duration)||"normal",easing:typeof(e==null?void 0:e.ease)=="string"?e.ease:"ease-out",spring:(e==null?void 0:e.spring)||"gentle",delay:e==null?void 0:e.delay,reduceMotion:e==null?void 0:e.reducedMotion})}},scaleOut:e=>{const t=_(e==null?void 0:e.reducedMotion),r=(e==null?void 0:e.scale)||.95;return{initial:{scale:1,opacity:1},exit:t?{}:{scale:r,opacity:0},transition:H({duration:(e==null?void 0:e.duration)||"fast",easing:typeof(e==null?void 0:e.ease)=="string"?e.ease:"ease-in",delay:e==null?void 0:e.delay,reduceMotion:e==null?void 0:e.reducedMotion})}},scaleUp:e=>{const t=_(e==null?void 0:e.reducedMotion),r=(e==null?void 0:e.scale)||1.05;return{whileHover:t?{}:{scale:r},transition:H({duration:(e==null?void 0:e.duration)||"fast",easing:typeof(e==null?void 0:e.ease)=="string"?e.ease:"ease-out",spring:(e==null?void 0:e.spring)||"gentle",reduceMotion:e==null?void 0:e.reducedMotion})}},scaleDown:e=>{const t=_(e==null?void 0:e.reducedMotion),r=(e==null?void 0:e.scale)||.95;return{whileTap:t?{}:{scale:r},transition:H({duration:(e==null?void 0:e.duration)||"fast",easing:typeof(e==null?void 0:e.ease)=="string"?e.ease:"ease-out",reduceMotion:e==null?void 0:e.reducedMotion})}}},Xe={hoverLift:e=>{const t=_(e==null?void 0:e.reducedMotion),r=(e==null?void 0:e.scale)||1.05,n=(e==null?void 0:e.y)??-5;return{whileHover:t?{}:{scale:r,y:n},transition:H({duration:(e==null?void 0:e.duration)||"fast",easing:typeof(e==null?void 0:e.ease)=="string"?e.ease:"ease-out",spring:(e==null?void 0:e.spring)||"gentle",reduceMotion:e==null?void 0:e.reducedMotion})}},hoverScale:e=>{const t=_(e==null?void 0:e.reducedMotion),r=(e==null?void 0:e.scale)||1.05;return{whileHover:t?{}:{scale:r},transition:H({duration:(e==null?void 0:e.duration)||"fast",easing:typeof(e==null?void 0:e.ease)=="string"?e.ease:"ease-out",spring:(e==null?void 0:e.spring)||"gentle",reduceMotion:e==null?void 0:e.reducedMotion})}},tapScale:e=>{const t=_(e==null?void 0:e.reducedMotion),r=(e==null?void 0:e.scale)||.95;return{whileTap:t?{}:{scale:r},transition:H({duration:(e==null?void 0:e.duration)||"fast",easing:typeof(e==null?void 0:e.ease)=="string"?e.ease:"ease-out",reduceMotion:e==null?void 0:e.reducedMotion})}}},Kt=k.Root,qa=k.Trigger,Zt=k.Portal,Va=k.Close,et=p.forwardRef(({className:e,...t},r)=>{const n=Q.fadeIn({duration:"normal"}),s=Q.fadeOut({duration:"fast"});return a.jsx(k.Overlay,{ref:r,...t,asChild:!0,children:a.jsx(he.motion.div,{className:c("fixed inset-0 z-50 bg-black/80",e),initial:n.initial,animate:n.animate,exit:s.exit,transition:n.transition})})});et.displayName=k.Overlay.displayName;const tt=p.forwardRef(({className:e,children:t,...r},n)=>{const s={...Q.fadeIn({duration:"normal"}),...ve.scaleIn({scale:.95,duration:"normal"})},o={...Q.fadeOut({duration:"fast"}),...ve.scaleOut({scale:.95,duration:"fast"})};return a.jsxs(Zt,{children:[a.jsx(et,{}),a.jsx(k.Content,{ref:n,...r,asChild:!0,children:a.jsxs(he.motion.div,{className:c("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-md border bg-background p-lg shadow-lg sm:rounded-lg",e),initial:s.initial,animate:s.animate,exit:o.exit,transition:s.transition,children:[t,a.jsxs(k.Close,{className:"absolute right-md top-md rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[a.jsx(L.X,{className:"h-4 w-4"}),a.jsx("span",{className:"sr-only",children:"Close"})]})]})})]})});tt.displayName=k.Content.displayName;const rt=({className:e,...t})=>a.jsx("div",{className:c("flex flex-col space-y-xs text-center sm:text-left",e),...t});rt.displayName="ModalHeader";const at=({className:e,...t})=>a.jsx("div",{className:c("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-sm",e),...t});at.displayName="ModalFooter";const nt=p.forwardRef(({className:e,...t},r)=>a.jsx(k.Title,{ref:r,className:c("text-lg font-semibold leading-none tracking-tight",e),...t}));nt.displayName=k.Title.displayName;const st=p.forwardRef(({className:e,...t},r)=>a.jsx(k.Description,{ref:r,className:c("text-sm text-muted-foreground",e),...t}));st.displayName=k.Description.displayName;function er({isOpen:e,onClose:t,onConfirm:r,title:n,description:s,confirmText:o,cancelText:d,loadingText:i,variant:l="primary",isLoading:u=!1}){if(!n||n.trim()==="")throw new Error('ConfirmDialog: "title" prop is required and cannot be empty');if(!s||s.trim()==="")throw new Error('ConfirmDialog: "description" prop is required and cannot be empty');if(!o||o.trim()==="")throw new Error('ConfirmDialog: "confirmText" prop is required and cannot be empty');if(!d||d.trim()==="")throw new Error('ConfirmDialog: "cancelText" prop is required and cannot be empty');const m=()=>{r(),t()};return a.jsx(Kt,{open:e,onOpenChange:t,children:a.jsxs(tt,{children:[a.jsxs(rt,{children:[a.jsx(nt,{children:n}),a.jsx(st,{children:s})]}),a.jsxs(at,{children:[a.jsx(J,{variant:"outline",onClick:t,disabled:u,children:d}),a.jsx(J,{variant:l,onClick:m,disabled:u,children:u&&i||o})]})]})})}function Ia(){const[e,t]=p.useState({isOpen:!1}),r=p.useCallback(o=>{t({isOpen:!0,...o})},[]),n=p.useCallback(()=>{t({isOpen:!1})},[]),s=p.useMemo(()=>a.jsx(er,{isOpen:e.isOpen,onClose:n,onConfirm:e.onConfirm||(()=>{}),title:e.title||"",description:e.description||"",confirmText:e.confirmText||"",cancelText:e.cancelText||"",loadingText:e.loadingText,variant:e.variant}),[e,n]);return{showConfirm:r,hideConfirm:n,ConfirmDialog:s}}function La(e,t){if(e==null)return{};var r={},n=Object.keys(e),s,o;for(o=0;o<n.length;o++)s=n[o],!(t.indexOf(s)>=0)&&(r[s]=e[s]);return r}var Ba=["color"],za=g.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,s=La(e,Ba);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s,{ref:t}),g.createElement("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:n,fillRule:"evenodd",clipRule:"evenodd"}))});const Wa=k.Root,_a=k.Portal,tr=p.forwardRef(({className:e,...t},r)=>a.jsx(k.Overlay,{ref:r,className:c("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",e),...t}));tr.displayName=k.Overlay.displayName;const rr=p.forwardRef(({className:e,children:t,...r},n)=>a.jsxs(_a,{children:[a.jsx(tr,{}),a.jsxs(k.Content,{ref:n,className:c("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-md border bg-background p-lg shadow-lg duration-200 sm:rounded-lg",e),...r,children:[t,a.jsxs(k.Close,{className:"absolute right-md top-md rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground","aria-label":"Close dialog",children:[a.jsx(za,{className:"h-4 w-4","aria-hidden":"true"}),a.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));rr.displayName=k.Content.displayName;const ar=({className:e,...t})=>a.jsx("div",{className:c("flex flex-col space-y-xs text-center sm:text-left",e),...t});ar.displayName="DialogHeader";const nr=p.forwardRef(({className:e,...t},r)=>a.jsx(k.Title,{ref:r,className:c("text-lg font-semibold leading-none tracking-tight",e),...t}));nr.displayName=k.Title.displayName;const sr=p.forwardRef(({className:e,...t},r)=>a.jsx(k.Description,{ref:r,className:c("text-sm text-muted-foreground",e),...t}));sr.displayName=k.Description.displayName;const Aa=({isOpen:e,onClose:t,title:r,description:n,children:s,className:o,...d})=>a.jsx(Wa,{open:e,onOpenChange:i=>!i&&t(),children:a.jsxs(rr,{className:c("max-w-md",o),...d,children:[(r||n)&&a.jsxs(ar,{children:[r&&a.jsx(nr,{children:r}),n&&a.jsx(sr,{children:n})]}),s]})});function $a(e=!1){const[t,r]=g.useState({isOpen:e,data:void 0}),n=g.useCallback(d=>{r({isOpen:!0,data:d})},[]),s=g.useCallback(()=>{r(d=>({...d,isOpen:!1}))},[]),o=g.useCallback(()=>{r(d=>({...d,isOpen:!d.isOpen}))},[]);return{isOpen:t.isOpen,data:t.data,open:n,close:s,toggle:o}}function or(){const[e,t]=g.useState({}),r=g.useCallback((i,l)=>{t(u=>({...u,[i]:{isOpen:!0,data:l}}))},[]),n=g.useCallback(i=>{t(l=>({...l,[i]:{isOpen:!1,data:void 0}}))},[]),s=g.useCallback(i=>{t(l=>{var u,m;return{...l,[i]:{isOpen:!((u=l[i])!=null&&u.isOpen),data:(m=l[i])==null?void 0:m.data}}})},[]),o=g.useCallback(i=>{var l;return((l=e[i])==null?void 0:l.isOpen)||!1},[e]),d=g.useCallback(i=>{var l;return(l=e[i])==null?void 0:l.data},[e]);return{openModal:r,closeModal:n,toggleModal:s,isModalOpen:o,getModalData:d}}const ir=g.createContext(void 0);function Ha({children:e}){const t=or();return a.jsx(ir.Provider,{value:t,children:e})}function dr(){const e=g.useContext(ir);if(e===void 0)throw new Error("useModalContext must be used within a ModalProvider");return e}function Ya(e,t){return function(n){const{openModal:s,closeModal:o,toggleModal:d,isModalOpen:i,getModalData:l}=dr(),u={[`${t}Open`]:()=>s(t),[`${t}Close`]:()=>o(t),[`${t}Toggle`]:()=>d(t),[`is${t}Open`]:i(t),[`${t}Data`]:l(t)};return a.jsx(e,{...n,...u})}}const _e="focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background transition-shadow",Ga=({isOpen:e,onClose:t,title:r,description:n,children:s,className:o,hideCloseButton:d=!1,...i})=>{const l=g.useId(),u=g.useId();return a.jsx(k.Root,{open:e,onOpenChange:m=>{m||t()},children:a.jsxs(k.Portal,{children:[a.jsx(k.Overlay,{"aria-hidden":"true",className:"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-40 bg-black/50 backdrop-blur-sm"}),a.jsxs(k.Content,{"aria-modal":"true","aria-labelledby":r?l:void 0,"aria-describedby":n?u:void 0,className:c("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=open]:zoom-in-95 data-[state=closed]:zoom-out-95 shadow-elevation-xl fixed left-1/2 top-1/2 z-50 w-[calc(100%-2rem)] max-w-md -translate-x-1/2 -translate-y-1/2 rounded-lg border bg-card focus:outline-none",o),...i,children:[r&&a.jsx(k.Title,{id:l,className:"border-b px-6 py-4 text-lg font-semibold text-foreground",children:r}),a.jsxs("div",{className:"p-6",children:[n&&a.jsx(k.Description,{id:u,className:"mb-4 text-sm text-muted-foreground",children:n}),s]}),!d&&a.jsxs(k.Close,{className:c("absolute right-4 top-4 rounded-full p-1 text-muted-foreground transition-colors hover:text-foreground",_e),children:[a.jsx(L.X,{className:"h-4 w-4","aria-hidden":"true"}),a.jsx("span",{className:"sr-only",children:"Close modal"})]})]})]})})};function Ua({children:e,container:t,className:r,style:n}){const[s,o]=p.useState(!1);if(p.useEffect(()=>{o(!0)},[]),!s||typeof document>"u")return null;const d=t||document.body;return ra.createPortal(a.jsx("div",{className:c("fixed inset-0 z-50",r),style:n,children:e}),d)}function Xa({onClick:e,className:t,style:r}){return a.jsx("div",{className:c("absolute inset-0 bg-black/50 backdrop-blur-sm",t),style:r,onClick:e})}function Qa({children:e,className:t,style:r,position:n="center"}){const s={center:"flex items-center justify-center",top:"flex justify-center pt-8",bottom:"flex justify-center pb-8",left:"flex items-center pl-8",right:"flex items-center pr-8","top-left":"flex justify-start items-start pt-8 pl-8","top-right":"flex justify-end items-start pt-8 pr-8","bottom-left":"flex justify-start items-end pb-8 pl-8","bottom-right":"flex justify-end items-end pb-8 pr-8"};return a.jsx("div",{className:c("relative h-full min-h-screen w-full",s[n],t),style:r,children:e})}const lr=De.Root,cr=De.Trigger,Ja=De.Anchor,ur=re.cva("z-50 w-72 rounded-md border bg-popover p-md text-popover-foreground shadow-md outline-none",{variants:{variant:{primary:"bg-popover text-popover-foreground border-border",secondary:"border-secondary/50 text-secondary-foreground bg-secondary/10",accent:"border-accent/50 text-accent-foreground bg-accent/10",outline:"bg-background text-foreground border-border",ghost:"bg-transparent text-foreground border-transparent",link:"bg-transparent text-primary border-transparent",destructive:"border-destructive/50 text-destructive bg-destructive/10"},size:{xs:"w-40 p-xs",sm:"w-48 p-sm",md:"w-72 p-md",lg:"w-96 p-lg",xl:"w-[32rem] p-xl"}},defaultVariants:{variant:"primary",size:"md"}}),ot=p.forwardRef(({className:e,variant:t,size:r,align:n="center",sideOffset:s=4,...o},d)=>{const i={...Q.fadeIn({duration:"normal"}),...ve.scaleIn({scale:.95,duration:"normal"})},l={...Q.fadeOut({duration:"fast"}),...ve.scaleOut({scale:.95,duration:"fast"})};return a.jsx(De.Portal,{children:a.jsx(De.Content,{ref:d,align:n,sideOffset:s,...o,asChild:!0,children:a.jsx(he.motion.div,{className:c(ur({variant:t,size:r,className:e})),initial:i.initial,animate:i.animate,exit:l.exit,transition:i.transition,children:o.children})})})});ot.displayName=De.Content.displayName;function Ka({children:e,content:t,variant:r,size:n,side:s="bottom",align:o="center",sideOffset:d,alignOffset:i,open:l,onOpenChange:u,modal:m=!0,closeOnInteractOutside:f=!0}){return a.jsxs(lr,{open:l,onOpenChange:u,modal:m,children:[a.jsx(cr,{asChild:!0,children:e}),a.jsx(ot,{variant:r,size:n,side:s,align:o,sideOffset:d,alignOffset:i,onInteractOutside:f?void 0:y=>y.preventDefault(),children:t})]})}const mr=Ie.Provider,hr=Ie.Root,pr=Ie.Trigger,xr=re.cva("z-50 overflow-hidden rounded-md border bg-popover px-sm py-xs text-sm text-popover-foreground shadow-md",{variants:{variant:{primary:"bg-popover text-popover-foreground border-border",secondary:"border-secondary/50 text-secondary-foreground bg-secondary/10",accent:"border-accent/50 text-accent-foreground bg-accent/10",outline:"bg-background text-foreground border-border",ghost:"bg-transparent text-foreground border-transparent",link:"bg-transparent text-primary border-transparent",destructive:"border-destructive/50 text-destructive bg-destructive/10"}},defaultVariants:{variant:"primary"}}),it=p.forwardRef(({className:e,variant:t,sideOffset:r=4,...n},s)=>{const o={...Q.fadeIn({duration:"normal"}),...ve.scaleIn({scale:.95,duration:"normal"})},d={...Q.fadeOut({duration:"fast"}),...ve.scaleOut({scale:.95,duration:"fast"})};return a.jsx(Ie.Content,{ref:s,sideOffset:r,...n,asChild:!0,children:a.jsx(he.motion.div,{className:c(xr({variant:t,className:e})),initial:o.initial,animate:o.animate,exit:d.exit,transition:o.transition,children:n.children})})});it.displayName=Ie.Content.displayName;function Za({children:e,content:t,variant:r,side:n="top",align:s="center",sideOffset:o,alignOffset:d,delayDuration:i=400,skipDelayDuration:l=300,disableHoverableContent:u=!1,open:m,onOpenChange:f}){return a.jsx(mr,{delayDuration:i,skipDelayDuration:l,children:a.jsxs(hr,{open:m,onOpenChange:f,children:[a.jsx(pr,{asChild:!0,children:e}),a.jsx(it,{variant:r,side:n,align:s,sideOffset:o,alignOffset:d,children:t})]})})}const en=q.Root,tn=q.Trigger,rn=q.Group,an=q.Portal,nn=q.Sub,sn=q.RadioGroup,fr=p.forwardRef(({className:e,inset:t,children:r,...n},s)=>a.jsxs(q.SubTrigger,{ref:s,className:c("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...n,children:[r,a.jsx(L.ChevronRight,{className:"ml-auto h-4 w-4"})]}));fr.displayName=q.SubTrigger.displayName;const br=p.forwardRef(({className:e,...t},r)=>a.jsx(q.SubContent,{ref:r,className:c("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg",e),...t}));br.displayName=q.SubContent.displayName;const yr=p.forwardRef(({className:e,sideOffset:t=4,...r},n)=>a.jsx(q.Portal,{children:a.jsx(q.Content,{ref:n,sideOffset:t,className:c("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",e),...r})}));yr.displayName=q.Content.displayName;const wr=p.forwardRef(({className:e,inset:t,...r},n)=>a.jsx(q.Item,{ref:n,className:c("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...r}));wr.displayName=q.Item.displayName;const vr=p.forwardRef(({className:e,children:t,checked:r,...n},s)=>a.jsxs(q.CheckboxItem,{ref:s,className:c("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:r,...n,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(q.ItemIndicator,{children:a.jsx(L.Check,{className:"h-4 w-4"})})}),t]}));vr.displayName=q.CheckboxItem.displayName;const gr=p.forwardRef(({className:e,children:t,...r},n)=>a.jsxs(q.RadioItem,{ref:n,className:c("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(q.ItemIndicator,{children:a.jsx(L.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));gr.displayName=q.RadioItem.displayName;const jr=p.forwardRef(({className:e,inset:t,...r},n)=>a.jsx(q.Label,{ref:n,className:c("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));jr.displayName=q.Label.displayName;const Nr=p.forwardRef(({className:e,...t},r)=>a.jsx(q.Separator,{ref:r,className:c("-mx-1 my-1 h-px bg-muted",e),...t}));Nr.displayName=q.Separator.displayName;const Sr=({className:e,...t})=>a.jsx("span",{className:c("ml-auto text-xs tracking-widest opacity-60",e),...t});Sr.displayName="DropdownMenuShortcut";const Mr=p.forwardRef(({className:e,children:t,...r},n)=>a.jsxs(ee.Root,{ref:n,className:c("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...r,children:[t,a.jsx(dt,{})]}));Mr.displayName=ee.Root.displayName;const Cr=p.forwardRef(({className:e,...t},r)=>a.jsx(ee.List,{ref:r,className:c("group flex flex-1 list-none items-center justify-center space-x-xs",e),...t}));Cr.displayName=ee.List.displayName;const on=ee.Item,kr=re.cva("group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-md py-sm text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"),Dr=p.forwardRef(({className:e,children:t,...r},n)=>a.jsxs(ee.Trigger,{ref:n,className:c(kr(),"group",e),...r,children:[t," ",a.jsx(L.ChevronDown,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));Dr.displayName=ee.Trigger.displayName;const Tr=p.forwardRef(({className:e,...t},r)=>a.jsx(ee.Content,{ref:r,className:c("data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 left-0 top-0 w-full md:absolute md:w-auto",e),...t}));Tr.displayName=ee.Content.displayName;const dn=ee.Link,dt=p.forwardRef(({className:e,...t},r)=>a.jsx("div",{className:c("absolute left-0 top-full flex justify-center"),children:a.jsx(ee.Viewport,{className:c("origin-top-center data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:r,...t})}));dt.displayName=ee.Viewport.displayName;const Er=p.forwardRef(({className:e,...t},r)=>a.jsx(ee.Indicator,{ref:r,className:c("data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden",e),...t,children:a.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));Er.displayName=ee.Indicator.displayName;const ln=je.Root,Pr=p.forwardRef(({className:e,...t},r)=>a.jsx(je.List,{ref:r,className:c("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));Pr.displayName=je.List.displayName;const Rr=p.forwardRef(({className:e,...t},r)=>a.jsx(je.Trigger,{ref:r,className:c("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-[background-color,color,box-shadow] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...t}));Rr.displayName=je.Trigger.displayName;const Or=p.forwardRef(({className:e,...t},r)=>a.jsx(je.Content,{ref:r,className:c("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));Or.displayName=je.Content.displayName;function de(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function ge(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const Fr=6048e5,cn=864e5;let un={};function Ye(){return un}function qe(e,t){var i,l,u,m;const r=Ye(),n=(t==null?void 0:t.weekStartsOn)??((l=(i=t==null?void 0:t.locale)==null?void 0:i.options)==null?void 0:l.weekStartsOn)??r.weekStartsOn??((m=(u=r.locale)==null?void 0:u.options)==null?void 0:m.weekStartsOn)??0,s=de(e),o=s.getDay(),d=(o<n?7:0)+o-n;return s.setDate(s.getDate()-d),s.setHours(0,0,0,0),s}function Ae(e){return qe(e,{weekStartsOn:1})}function qr(e){const t=de(e),r=t.getFullYear(),n=ge(e,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);const s=Ae(n),o=ge(e,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);const d=Ae(o);return t.getTime()>=s.getTime()?r+1:t.getTime()>=d.getTime()?r:r-1}function jt(e){const t=de(e);return t.setHours(0,0,0,0),t}function Nt(e){const t=de(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function mn(e,t){const r=jt(e),n=jt(t),s=+r-Nt(r),o=+n-Nt(n);return Math.round((s-o)/cn)}function hn(e){const t=qr(e),r=ge(e,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),Ae(r)}function pn(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function xn(e){if(!pn(e)&&typeof e!="number")return!1;const t=de(e);return!isNaN(Number(t))}function fn(e){const t=de(e),r=ge(e,0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}const bn={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},yn=(e,t,r)=>{let n;const s=bn[e];return typeof s=="string"?n=s:t===1?n=s.one:n=s.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function Qe(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const wn={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},vn={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},gn={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},jn={date:Qe({formats:wn,defaultWidth:"full"}),time:Qe({formats:vn,defaultWidth:"full"}),dateTime:Qe({formats:gn,defaultWidth:"full"})},Nn={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Sn=(e,t,r,n)=>Nn[e];function Oe(e){return(t,r)=>{const n=r!=null&&r.context?String(r.context):"standalone";let s;if(n==="formatting"&&e.formattingValues){const d=e.defaultFormattingWidth||e.defaultWidth,i=r!=null&&r.width?String(r.width):d;s=e.formattingValues[i]||e.formattingValues[d]}else{const d=e.defaultWidth,i=r!=null&&r.width?String(r.width):e.defaultWidth;s=e.values[i]||e.values[d]}const o=e.argumentCallback?e.argumentCallback(t):t;return s[o]}}const Mn={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Cn={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},kn={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Dn={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Tn={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},En={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Pn=(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Rn={ordinalNumber:Pn,era:Oe({values:Mn,defaultWidth:"wide"}),quarter:Oe({values:Cn,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Oe({values:kn,defaultWidth:"wide"}),day:Oe({values:Dn,defaultWidth:"wide"}),dayPeriod:Oe({values:Tn,defaultWidth:"wide",formattingValues:En,defaultFormattingWidth:"wide"})};function Fe(e){return(t,r={})=>{const n=r.width,s=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(s);if(!o)return null;const d=o[0],i=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(i)?Fn(i,f=>f.test(d)):On(i,f=>f.test(d));let u;u=e.valueCallback?e.valueCallback(l):l,u=r.valueCallback?r.valueCallback(u):u;const m=t.slice(d.length);return{value:u,rest:m}}}function On(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function Fn(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function qn(e){return(t,r={})=>{const n=t.match(e.matchPattern);if(!n)return null;const s=n[0],o=t.match(e.parsePattern);if(!o)return null;let d=e.valueCallback?e.valueCallback(o[0]):o[0];d=r.valueCallback?r.valueCallback(d):d;const i=t.slice(s.length);return{value:d,rest:i}}}const Vn=/^(\d+)(th|st|nd|rd)?/i,In=/\d+/i,Ln={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Bn={any:[/^b/i,/^(a|c)/i]},zn={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Wn={any:[/1/i,/2/i,/3/i,/4/i]},_n={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},An={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},$n={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Hn={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Yn={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Gn={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Un={ordinalNumber:qn({matchPattern:Vn,parsePattern:In,valueCallback:e=>parseInt(e,10)}),era:Fe({matchPatterns:Ln,defaultMatchWidth:"wide",parsePatterns:Bn,defaultParseWidth:"any"}),quarter:Fe({matchPatterns:zn,defaultMatchWidth:"wide",parsePatterns:Wn,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Fe({matchPatterns:_n,defaultMatchWidth:"wide",parsePatterns:An,defaultParseWidth:"any"}),day:Fe({matchPatterns:$n,defaultMatchWidth:"wide",parsePatterns:Hn,defaultParseWidth:"any"}),dayPeriod:Fe({matchPatterns:Yn,defaultMatchWidth:"any",parsePatterns:Gn,defaultParseWidth:"any"})},Xn={code:"en-US",formatDistance:yn,formatLong:jn,formatRelative:Sn,localize:Rn,match:Un,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Qn(e){const t=de(e);return mn(t,fn(t))+1}function Jn(e){const t=de(e),r=+Ae(t)-+hn(t);return Math.round(r/Fr)+1}function Vr(e,t){var m,f,y,h;const r=de(e),n=r.getFullYear(),s=Ye(),o=(t==null?void 0:t.firstWeekContainsDate)??((f=(m=t==null?void 0:t.locale)==null?void 0:m.options)==null?void 0:f.firstWeekContainsDate)??s.firstWeekContainsDate??((h=(y=s.locale)==null?void 0:y.options)==null?void 0:h.firstWeekContainsDate)??1,d=ge(e,0);d.setFullYear(n+1,0,o),d.setHours(0,0,0,0);const i=qe(d,t),l=ge(e,0);l.setFullYear(n,0,o),l.setHours(0,0,0,0);const u=qe(l,t);return r.getTime()>=i.getTime()?n+1:r.getTime()>=u.getTime()?n:n-1}function Kn(e,t){var i,l,u,m;const r=Ye(),n=(t==null?void 0:t.firstWeekContainsDate)??((l=(i=t==null?void 0:t.locale)==null?void 0:i.options)==null?void 0:l.firstWeekContainsDate)??r.firstWeekContainsDate??((m=(u=r.locale)==null?void 0:u.options)==null?void 0:m.firstWeekContainsDate)??1,s=Vr(e,t),o=ge(e,0);return o.setFullYear(s,0,n),o.setHours(0,0,0,0),qe(o,t)}function Zn(e,t){const r=de(e),n=+qe(r,t)-+Kn(r,t);return Math.round(n/Fr)+1}function D(e,t){const r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}const fe={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return D(t==="yy"?n%100:n,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):D(r+1,2)},d(e,t){return D(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return D(e.getHours()%12||12,t.length)},H(e,t){return D(e.getHours(),t.length)},m(e,t){return D(e.getMinutes(),t.length)},s(e,t){return D(e.getSeconds(),t.length)},S(e,t){const r=t.length,n=e.getMilliseconds(),s=Math.trunc(n*Math.pow(10,r-3));return D(s,t.length)}},Me={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},St={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){const n=e.getFullYear(),s=n>0?n:1-n;return r.ordinalNumber(s,{unit:"year"})}return fe.y(e,t)},Y:function(e,t,r,n){const s=Vr(e,n),o=s>0?s:1-s;if(t==="YY"){const d=o%100;return D(d,2)}return t==="Yo"?r.ordinalNumber(o,{unit:"year"}):D(o,t.length)},R:function(e,t){const r=qr(e);return D(r,t.length)},u:function(e,t){const r=e.getFullYear();return D(r,t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return D(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return D(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return fe.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return D(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const s=Zn(e,n);return t==="wo"?r.ordinalNumber(s,{unit:"week"}):D(s,t.length)},I:function(e,t,r){const n=Jn(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):D(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):fe.d(e,t)},D:function(e,t,r){const n=Qn(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):D(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const s=e.getDay(),o=(s-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return D(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(s,{width:"short",context:"formatting"});case"eeee":default:return r.day(s,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const s=e.getDay(),o=(s-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return D(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(s,{width:"narrow",context:"standalone"});case"cccccc":return r.day(s,{width:"short",context:"standalone"});case"cccc":default:return r.day(s,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),s=n===0?7:n;switch(t){case"i":return String(s);case"ii":return D(s,t.length);case"io":return r.ordinalNumber(s,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const s=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let s;switch(n===12?s=Me.noon:n===0?s=Me.midnight:s=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let s;switch(n>=17?s=Me.evening:n>=12?s=Me.afternoon:n>=4?s=Me.morning:s=Me.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return fe.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):fe.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):D(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):D(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):fe.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):fe.s(e,t)},S:function(e,t){return fe.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return Ct(n);case"XXXX":case"XX":return we(n);case"XXXXX":case"XXX":default:return we(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return Ct(n);case"xxxx":case"xx":return we(n);case"xxxxx":case"xxx":default:return we(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Mt(n,":");case"OOOO":default:return"GMT"+we(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Mt(n,":");case"zzzz":default:return"GMT"+we(n,":")}},t:function(e,t,r){const n=Math.trunc(e.getTime()/1e3);return D(n,t.length)},T:function(e,t,r){const n=e.getTime();return D(n,t.length)}};function Mt(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),s=Math.trunc(n/60),o=n%60;return o===0?r+String(s):r+String(s)+t+D(o,2)}function Ct(e,t){return e%60===0?(e>0?"-":"+")+D(Math.abs(e)/60,2):we(e,t)}function we(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),s=D(Math.trunc(n/60),2),o=D(n%60,2);return r+s+t+o}const kt=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Ir=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},es=(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],s=r[2];if(!s)return kt(e,t);let o;switch(n){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",kt(n,t)).replace("{{time}}",Ir(s,t))},ts={p:Ir,P:es},rs=/^D+$/,as=/^Y+$/,ns=["D","DD","YY","YYYY"];function ss(e){return rs.test(e)}function os(e){return as.test(e)}function is(e,t,r){const n=ds(e,t,r);if(console.warn(n),ns.includes(e))throw new RangeError(n)}function ds(e,t,r){const n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const ls=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,cs=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,us=/^'([^]*?)'?$/,ms=/''/g,hs=/[a-zA-Z]/;function Je(e,t,r){var m,f,y,h;const n=Ye(),s=n.locale??Xn,o=n.firstWeekContainsDate??((f=(m=n.locale)==null?void 0:m.options)==null?void 0:f.firstWeekContainsDate)??1,d=n.weekStartsOn??((h=(y=n.locale)==null?void 0:y.options)==null?void 0:h.weekStartsOn)??0,i=de(e);if(!xn(i))throw new RangeError("Invalid time value");let l=t.match(cs).map(b=>{const w=b[0];if(w==="p"||w==="P"){const j=ts[w];return j(b,s.formatLong)}return b}).join("").match(ls).map(b=>{if(b==="''")return{isToken:!1,value:"'"};const w=b[0];if(w==="'")return{isToken:!1,value:ps(b)};if(St[w])return{isToken:!0,value:b};if(w.match(hs))throw new RangeError("Format string contains an unescaped latin alphabet character `"+w+"`");return{isToken:!1,value:b}});s.localize.preprocessor&&(l=s.localize.preprocessor(i,l));const u={firstWeekContainsDate:o,weekStartsOn:d,locale:s};return l.map(b=>{if(!b.isToken)return b.value;const w=b.value;(os(w)||ss(w))&&is(w,t,String(e));const j=St[w[0]];return j(i,w,s.localize,u)}).join("")}function ps(e){const t=e.match(us);return t?t[1].replace(ms,"'"):e}function lt({value:e,onChange:t,placeholder:r,selectDateRangeLabel:n,clearLabel:s,closeLabel:o,className:d,disabled:i=!1}){if(!r||r.trim()==="")throw new Error('DateRangePicker: "placeholder" prop is required and cannot be empty');if(!n||n.trim()==="")throw new Error('DateRangePicker: "selectDateRangeLabel" prop is required and cannot be empty');if(!s||s.trim()==="")throw new Error('DateRangePicker: "clearLabel" prop is required and cannot be empty');if(!o||o.trim()==="")throw new Error('DateRangePicker: "closeLabel" prop is required and cannot be empty');const[l,u]=p.useState(!1),m=h=>h.from?h.to?`${Je(h.from,"LLL dd, y")} - ${Je(h.to,"LLL dd, y")}`:Je(h.from,"LLL dd, y"):r,f=h=>{if(!h){t({from:void 0,to:void 0});return}!e.from||e.from&&e.to?t({from:h,to:void 0}):e.from&&!e.to&&(h<e.from?t({from:h,to:e.from}):t({from:e.from,to:h}),u(!1))},y=()=>{t({from:void 0,to:void 0})};return a.jsxs("div",{className:c("relative",d),children:[a.jsxs(J,{variant:"outline",className:c("w-full justify-start text-left font-normal",!e.from&&"text-muted-foreground"),onClick:()=>u(!l),disabled:i,children:[a.jsx(L.Calendar,{className:"mr-sm h-4 w-4"}),m(e)]}),l&&a.jsx("div",{className:"absolute left-0 top-full z-50 mt-xs w-full rounded-md border bg-popover p-sm shadow-lg",children:a.jsxs("div",{className:"space-y-sm",children:[a.jsx("div",{className:"text-sm font-medium",children:n}),a.jsxs("div",{className:"grid grid-cols-7 gap-xs text-xs",children:[["S","M","T","W","T","F","S"].map(h=>a.jsx("div",{className:"p-sm text-center font-medium text-muted-foreground",children:h},h)),Array.from({length:35},(h,b)=>{const w=new Date;w.setDate(w.getDate()-w.getDay()+b);const j=e.from&&w.toDateString()===e.from.toDateString()||e.to&&w.toDateString()===e.to.toDateString(),N=e.from&&e.to&&w>e.from&&w<e.to;return a.jsx("button",{className:c("h-8 w-8 rounded text-sm hover:bg-accent",j&&"bg-primary text-primary-foreground",N&&"bg-accent/50"),onClick:()=>f(w),children:w.getDate()},b)})]}),a.jsxs("div",{className:"flex justify-between pt-sm",children:[a.jsx(J,{variant:"outline",size:"sm",onClick:y,children:s}),a.jsx(J,{variant:"outline",size:"sm",onClick:()=>u(!1),children:o})]})]})})]})}function xs(e={from:void 0,to:void 0}){const[t,r]=p.useState(e),n=p.useCallback(d=>{r(d)},[]),s=p.useCallback(()=>{r({from:void 0,to:void 0})},[]),o=t.from&&t.to;return{range:t,setDateRange:n,clearRange:s,isRangeComplete:o}}const Lr=A.Root,fs=A.Group,Br=A.Value,ct=p.forwardRef(({className:e,children:t,...r},n)=>a.jsxs(A.Trigger,{ref:n,className:c("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-sm py-sm text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...r,children:[t,a.jsx(A.Icon,{asChild:!0,children:a.jsx(L.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));ct.displayName=A.Trigger.displayName;const ut=p.forwardRef(({className:e,...t},r)=>a.jsx(A.ScrollUpButton,{ref:r,className:c("flex cursor-default items-center justify-center py-xs",e),...t,children:a.jsx(L.ChevronUp,{className:"h-4 w-4"})}));ut.displayName=A.ScrollUpButton.displayName;const mt=p.forwardRef(({className:e,...t},r)=>a.jsx(A.ScrollDownButton,{ref:r,className:c("flex cursor-default items-center justify-center py-xs",e),...t,children:a.jsx(L.ChevronDown,{className:"h-4 w-4"})}));mt.displayName=A.ScrollDownButton.displayName;const ht=p.forwardRef(({className:e,children:t,position:r="popper",...n},s)=>a.jsx(A.Portal,{children:a.jsxs(A.Content,{ref:s,className:c("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...n,children:[a.jsx(ut,{}),a.jsx(A.Viewport,{className:c("p-xs",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),a.jsx(mt,{})]})}));ht.displayName=A.Content.displayName;const zr=p.forwardRef(({className:e,...t},r)=>a.jsx(A.Label,{ref:r,className:c("py-xs pl-8 pr-sm text-sm font-semibold",e),...t}));zr.displayName=A.Label.displayName;const pt=p.forwardRef(({className:e,children:t,...r},n)=>a.jsxs(A.Item,{ref:n,className:c("relative flex w-full cursor-default select-none items-center rounded-sm py-xs pl-8 pr-sm text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[a.jsx("span",{className:"absolute left-sm flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(A.ItemIndicator,{children:a.jsx(L.Check,{className:"h-4 w-4"})})}),a.jsx(A.ItemText,{children:t})]}));pt.displayName=A.Item.displayName;const Wr=p.forwardRef(({className:e,...t},r)=>a.jsx(A.Separator,{ref:r,className:c("-mx-xs my-xs h-px bg-muted",e),...t}));Wr.displayName=A.Separator.displayName;function Ve({value:e,onValueChange:t,options:r,placeholder:n,label:s,className:o}){if(!n||n.trim()==="")throw new Error('FilterSelect: "placeholder" prop is required and cannot be empty');const d=r.filter(i=>i.value!==""&&i.value!==null);return a.jsxs("div",{className:c("space-y-sm",o),children:[s&&a.jsx("label",{className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:s}),a.jsxs(Lr,{value:e||void 0,onValueChange:t,children:[a.jsx(ct,{children:a.jsx(Br,{placeholder:n})}),a.jsx(ht,{children:d.map(i=>!i.value||i.value===""?null:a.jsx(pt,{value:i.value,children:a.jsxs("div",{className:"flex w-full items-center justify-between",children:[a.jsx("span",{children:i.label}),i.count!==void 0&&a.jsxs("span",{className:"ml-sm text-xs text-muted-foreground",children:["(",i.count,")"]})]})},i.value))})]})]})}function _r({value:e,onChange:t,min:r,max:n,step:s,currency:o,priceRangeLabel:d,minLabel:i,maxLabel:l,anyPriceLabel:u,clearLabel:m,minAriaLabel:f,maxAriaLabel:y,className:h}){var z,W;if(typeof r!="number"||isNaN(r))throw new Error('PriceRangeSlider: "min" prop is required and must be a number');if(typeof n!="number"||isNaN(n))throw new Error('PriceRangeSlider: "max" prop is required and must be a number');if(typeof s!="number"||isNaN(s)||s<=0)throw new Error('PriceRangeSlider: "step" prop is required and must be a positive number');if(!o||o.trim()==="")throw new Error('PriceRangeSlider: "currency" prop is required and cannot be empty');if(!d||d.trim()==="")throw new Error('PriceRangeSlider: "priceRangeLabel" prop is required and cannot be empty');if(!i||i.trim()==="")throw new Error('PriceRangeSlider: "minLabel" prop is required and cannot be empty');if(!l||l.trim()==="")throw new Error('PriceRangeSlider: "maxLabel" prop is required and cannot be empty');if(!u||u.trim()==="")throw new Error('PriceRangeSlider: "anyPriceLabel" prop is required and cannot be empty');if(!m||m.trim()==="")throw new Error('PriceRangeSlider: "clearLabel" prop is required and cannot be empty');if(!f||f.trim()==="")throw new Error('PriceRangeSlider: "minAriaLabel" prop is required and cannot be empty');if(!y||y.trim()==="")throw new Error('PriceRangeSlider: "maxAriaLabel" prop is required and cannot be empty');const b=p.useId(),w=p.useId(),[j,N]=p.useState(((z=e.min)==null?void 0:z.toString())||""),[x,v]=p.useState(((W=e.max)==null?void 0:W.toString())||"");p.useEffect(()=>{var T,R;N(((T=e.min)==null?void 0:T.toString())||""),v(((R=e.max)==null?void 0:R.toString())||"")},[e.min,e.max]);const $=T=>{const R=T.target.value;N(R);const C=R===""?null:Math.max(r,parseInt(R)||r),S=e.max?Math.min(n,e.max):null;C!==null&&S!==null&&C>S?t({min:C,max:C}):t({min:C,max:S})},B=T=>{const R=T.target.value;v(R);const C=R===""?null:Math.min(n,parseInt(R)||n),S=e.min?Math.max(r,e.min):null;S!==null&&C!==null&&S>C?t({min:C,max:C}):t({min:S,max:C})},O=(T,R)=>{if(T==="min"){const C=Math.max(r,Math.min(n,R)),S=e.max?Math.max(C,e.max):null;t({min:C,max:S})}else{const C=Math.max(r,Math.min(n,R)),S=e.min?Math.min(C,e.min):null;t({min:S,max:C})}},F=()=>{N(""),v(""),t({min:null,max:null})},P=e.min||r,I=e.max||n;return a.jsxs("div",{className:c("space-y-md",h),children:[a.jsxs("div",{className:"space-y-sm",children:[a.jsx(be,{children:d}),a.jsxs("div",{className:"flex items-center space-x-sm",children:[a.jsxs("div",{className:"flex-1",children:[a.jsx(be,{htmlFor:b,className:"text-xs text-muted-foreground",children:i}),a.jsxs("div",{className:"relative",children:[a.jsx("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-sm text-muted-foreground",children:o}),a.jsx(Te,{id:b,name:`min-price-${b}`,type:"number",value:j,onChange:$,placeholder:r.toString(),min:r,max:n,step:s,className:"pl-8"})]})]}),a.jsxs("div",{className:"flex-1",children:[a.jsx(be,{htmlFor:w,className:"text-xs text-muted-foreground",children:l}),a.jsxs("div",{className:"relative",children:[a.jsx("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-sm text-muted-foreground",children:o}),a.jsx(Te,{id:w,name:`max-price-${w}`,type:"number",value:x,onChange:B,placeholder:n.toString(),min:r,max:n,step:s,className:"pl-8"})]})]})]})]}),a.jsxs("div",{className:"space-y-sm",children:[a.jsxs("div",{className:"relative",children:[a.jsx("input",{type:"range",id:`${b}-slider`,name:`min-price-slider-${b}`,min:r,max:n,step:s,value:P,onChange:T=>O("min",parseInt(T.target.value)),className:"slider-thumb absolute h-2 w-full cursor-pointer appearance-none bg-transparent","aria-label":f}),a.jsx("input",{type:"range",id:`${w}-slider`,name:`max-price-slider-${w}`,min:r,max:n,step:s,value:I,onChange:T=>O("max",parseInt(T.target.value)),className:"slider-thumb absolute h-2 w-full cursor-pointer appearance-none bg-transparent","aria-label":y}),a.jsx("div",{className:"h-2 rounded-full bg-muted",children:a.jsx("div",{className:"h-2 rounded-full bg-primary",style:{left:`${(P-r)/(n-r)*100}%`,width:`${(I-P)/(n-r)*100}%`}})})]}),a.jsxs("div",{className:"flex justify-between text-xs text-muted-foreground",children:[a.jsxs("span",{children:[o,r]}),a.jsxs("span",{children:[o,n]})]})]}),a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsx("span",{className:"text-sm text-muted-foreground",children:e.min!==null||e.max!==null?`${o}${e.min||r} - ${o}${e.max||n}`:u}),a.jsx("button",{type:"button",onClick:F,className:"text-xs text-muted-foreground hover:text-foreground",children:m})]})]})}function bs(e={min:null,max:null}){const[t,r]=p.useState(e),n=p.useCallback(d=>{r(d)},[]),s=p.useCallback(()=>{r({min:null,max:null})},[]),o=t.min!==null||t.max!==null;return{range:t,setPriceRange:n,clearRange:s,isRangeSet:o}}function ys(e,t){const[r,n]=g.useState(e);return g.useEffect(()=>{const s=setTimeout(()=>{n(e)},t);return()=>{clearTimeout(s)}},[e,t]),r}function Ge({value:e,onChange:t,onClear:r,placeholder:n,showClearButton:s=!0,debounceMs:o=300,className:d,id:i,name:l,...u}){const m=p.useId(),f=i||m,y=l||`search-input-${f}`;if(!n||n.trim()==="")throw new Error('SearchInput: "placeholder" prop is required and cannot be empty');const[h,b]=p.useState(e),w=ys(h,o);p.useEffect(()=>{b(e)},[e]),p.useEffect(()=>{t(w)},[w,t]);const j=x=>{const v=x.target.value;b(v)},N=()=>{b(""),t(""),r==null||r()};return a.jsxs("div",{className:c("relative",d),children:[a.jsx(L.Search,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground","aria-hidden":"true"}),a.jsx(Te,{...u,id:f,name:y,value:h,onChange:j,placeholder:n,className:"pl-10 pr-10"}),s&&h&&a.jsx(J,{type:"button",variant:"ghost",size:"icon",className:"absolute right-1 top-1/2 h-6 w-6 -translate-y-1/2",onClick:N,"aria-label":"Clear search",children:a.jsx(L.X,{className:"h-3 w-3","aria-hidden":"true"})})]})}function ws(e=""){const[t,r]=p.useState(e),[n,s]=p.useState(e);p.useEffect(()=>{const d=setTimeout(()=>{s(t)},300);return()=>clearTimeout(d)},[t]);const o=p.useCallback(()=>{r(""),s("")},[]);return{search:t,debouncedSearch:n,setSearch:r,clearSearch:o}}const vs=()=>(console.warn("useFilterManager: This is a mock implementation. Use the actual hook from apps/web/src/stores/useFiltersStore"),{search:"",category:"",tags:[],dateRange:{start:null,end:null},priceRange:{min:null,max:null},sortBy:"date",sortOrder:"desc",setSearch:e=>{},setCategory:e=>{},setTags:e=>{},addTag:e=>{},removeTag:e=>{},setDateRange:(e,t)=>{},setPriceRange:(e,t)=>{},setSorting:(e,t)=>{},resetFilters:()=>{},getActiveFiltersCount:()=>0,getFilterSummary:()=>[],hasActiveFilters:!1,clearAllFilters:()=>{}});function Ar({className:e,showSearch:t=!0,showCategory:r=!0,showDateRange:n=!0,showPriceRange:s=!0,showSorting:o=!0,categories:d=[],sortOptions:i,searchPlaceholder:l,filtersLabel:u,clearAllLabel:m,categoryLabel:f,allCategoriesLabel:y,dateRangeLabel:h,anyDateLabel:b,dateSelectDateRangeLabel:w,dateClearLabel:j,dateCloseLabel:N,sortByLabel:x,sortAscLabel:v,sortDescLabel:$,sortByPlaceholder:B,activeFiltersLabel:O,priceRangeLabel:F,priceMinLabel:P,priceMaxLabel:I,priceAnyLabel:z,priceClearLabel:W,priceMinAriaLabel:T,priceMaxAriaLabel:R,onFiltersChange:C}){if(!i||i.length===0)throw new Error('FilterBar: "sortOptions" prop is required and cannot be empty');if(!l||l.trim()==="")throw new Error('FilterBar: "searchPlaceholder" prop is required and cannot be empty');if(!u||u.trim()==="")throw new Error('FilterBar: "filtersLabel" prop is required and cannot be empty');if(!m||m.trim()==="")throw new Error('FilterBar: "clearAllLabel" prop is required and cannot be empty');if(!f||f.trim()==="")throw new Error('FilterBar: "categoryLabel" prop is required and cannot be empty');if(!y||y.trim()==="")throw new Error('FilterBar: "allCategoriesLabel" prop is required and cannot be empty');if(!h||h.trim()==="")throw new Error('FilterBar: "dateRangeLabel" prop is required and cannot be empty');if(!b||b.trim()==="")throw new Error('FilterBar: "anyDateLabel" prop is required and cannot be empty');if(!w||w.trim()==="")throw new Error('FilterBar: "dateSelectDateRangeLabel" prop is required and cannot be empty');if(!j||j.trim()==="")throw new Error('FilterBar: "dateClearLabel" prop is required and cannot be empty');if(!N||N.trim()==="")throw new Error('FilterBar: "dateCloseLabel" prop is required and cannot be empty');if(!x||x.trim()==="")throw new Error('FilterBar: "sortByLabel" prop is required and cannot be empty');if(!v||v.trim()==="")throw new Error('FilterBar: "sortAscLabel" prop is required and cannot be empty');if(!$||$.trim()==="")throw new Error('FilterBar: "sortDescLabel" prop is required and cannot be empty');if(!B||B.trim()==="")throw new Error('FilterBar: "sortByPlaceholder" prop is required and cannot be empty');if(!O||O.trim()==="")throw new Error('FilterBar: "activeFiltersLabel" prop is required and cannot be empty');if(!F||F.trim()==="")throw new Error('FilterBar: "priceRangeLabel" prop is required and cannot be empty');if(!P||P.trim()==="")throw new Error('FilterBar: "priceMinLabel" prop is required and cannot be empty');if(!I||I.trim()==="")throw new Error('FilterBar: "priceMaxLabel" prop is required and cannot be empty');if(!z||z.trim()==="")throw new Error('FilterBar: "priceAnyLabel" prop is required and cannot be empty');if(!W||W.trim()==="")throw new Error('FilterBar: "priceClearLabel" prop is required and cannot be empty');if(!T||T.trim()==="")throw new Error('FilterBar: "priceMinAriaLabel" prop is required and cannot be empty');if(!R||R.trim()==="")throw new Error('FilterBar: "priceMaxAriaLabel" prop is required and cannot be empty');const{search:S,category:te,dateRange:K,priceRange:Z,sortBy:G,sortOrder:U,setSearch:ye,setCategory:le,setDateRange:Se,setPriceRange:Ee,hasActiveFilters:Be}=vs();p.useEffect(()=>{C&&C({search:S,category:te,dateRange:K,priceRange:Z,sortBy:G,sortOrder:U})},[S,te,K,Z,G,U,C]);const ze=X=>{Se(X.from||null,X.to||null)},Pe=X=>{Ee(X.min,X.max)};return a.jsxs("div",{className:c("space-y-md",e),children:[a.jsxs("div",{className:"flex flex-col gap-md sm:flex-row",children:[t&&a.jsx("div",{className:"flex-1",children:a.jsx(Ge,{value:S,onChange:ye,placeholder:l})}),Be]}),a.jsxs("div",{className:"grid grid-cols-1 gap-md sm:grid-cols-2 lg:grid-cols-4",children:[r&&d.length>0&&a.jsx(Ve,{value:te,onValueChange:le,options:d,label:f,placeholder:y}),n&&a.jsxs("div",{className:"space-y-sm",children:[a.jsx("label",{className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:h}),a.jsx(lt,{value:{from:K.start||void 0,to:K.end||void 0},onChange:ze,placeholder:b,selectDateRangeLabel:w,clearLabel:j,closeLabel:N})]}),s&&a.jsx(_r,{value:Z,onChange:Pe,min:0,max:500,step:10,currency:"€",priceRangeLabel:F,minLabel:P,maxLabel:I,anyPriceLabel:z,clearLabel:W,minAriaLabel:T,maxAriaLabel:R}),o&&a.jsxs("div",{className:"space-y-sm",children:[a.jsx("label",{className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:x}),a.jsx(Ve,{value:`${G}-${U}`,onValueChange:X=>{const[ho,po]=X.split("-")},options:i.map(X=>({value:`${X.value}-asc`,label:`${X.label} ${v}`})).concat(i.map(X=>({value:`${X.value}-desc`,label:`${X.label} ${$}`}))),placeholder:B})]})]}),Be]})}function gs({className:e,...t}){return a.jsx(Ar,{className:c("space-y-sm",e),...t})}const js=({searchLabel:e,searchPlaceholder:t,searchValue:r,onSearchChange:n,dateLabel:s,datePlaceholder:o,dateSelectDateRangeLabel:d,dateClearLabel:i,dateCloseLabel:l,dateValue:u,onDateChange:m,genreLabel:f,genrePlaceholder:y,genreOptions:h,genreValue:b,onGenreChange:w,venueLabel:j,venuePlaceholder:N,venueOptions:x,venueValue:v,onVenueChange:$,className:B})=>{if(!e||e.trim()==="")throw new Error('SearchFilters: "searchLabel" prop is required and cannot be empty');if(!t||t.trim()==="")throw new Error('SearchFilters: "searchPlaceholder" prop is required and cannot be empty');if(!s||s.trim()==="")throw new Error('SearchFilters: "dateLabel" prop is required and cannot be empty');if(!o||o.trim()==="")throw new Error('SearchFilters: "datePlaceholder" prop is required and cannot be empty');if(!d||d.trim()==="")throw new Error('SearchFilters: "dateSelectDateRangeLabel" prop is required and cannot be empty');if(!i||i.trim()==="")throw new Error('SearchFilters: "dateClearLabel" prop is required and cannot be empty');if(!l||l.trim()==="")throw new Error('SearchFilters: "dateCloseLabel" prop is required and cannot be empty');if(!f||f.trim()==="")throw new Error('SearchFilters: "genreLabel" prop is required and cannot be empty');if(!y||y.trim()==="")throw new Error('SearchFilters: "genrePlaceholder" prop is required and cannot be empty');if(!h||h.length===0)throw new Error('SearchFilters: "genreOptions" prop is required and cannot be empty');if(!j||j.trim()==="")throw new Error('SearchFilters: "venueLabel" prop is required and cannot be empty');if(!N||N.trim()==="")throw new Error('SearchFilters: "venuePlaceholder" prop is required and cannot be empty');if(!x||x.length===0)throw new Error('SearchFilters: "venueOptions" prop is required and cannot be empty');return a.jsx("div",{className:c("rounded-lg bg-background p-lg shadow-lg",B),children:a.jsxs("div",{className:"grid grid-cols-1 gap-md md:grid-cols-2 lg:grid-cols-4",children:[a.jsxs("div",{children:[a.jsx("label",{className:"mb-sm block text-sm font-medium",children:e}),a.jsx(Ge,{placeholder:t,value:r,onChange:n})]}),a.jsxs("div",{children:[a.jsx("label",{className:"mb-sm block text-sm font-medium",children:s}),a.jsx(lt,{value:u,onChange:m,placeholder:o,selectDateRangeLabel:d,clearLabel:i,closeLabel:l})]}),a.jsxs("div",{children:[a.jsx("label",{className:"mb-sm block text-sm font-medium",children:f}),a.jsx(Ve,{placeholder:y,value:b,options:h,onValueChange:w})]}),a.jsxs("div",{children:[a.jsx("label",{className:"mb-sm block text-sm font-medium",children:j}),a.jsx(Ve,{placeholder:N,value:v,options:x,onValueChange:$})]})]})})},ke=({id:e,name:t,label:r,type:n="text",placeholder:s,value:o,onChange:d,error:i,helperText:l,className:u,...m})=>{const f=o??"";return a.jsxs("div",{className:c("space-y-sm",u),children:[r&&a.jsx(be,{htmlFor:e,className:"block",children:r}),a.jsx(Te,{id:e,name:t,type:n,placeholder:s,value:f,onChange:y=>d==null?void 0:d(y.target.value),...m}),l&&!i&&a.jsx(M,{size:"sm",variant:"muted",children:l}),i&&a.jsx(M,{size:"sm",variant:"destructive",children:i})]})},Ns=({id:e,name:t,label:r,placeholder:n,options:s=[],value:o,onChange:d,error:i,className:l})=>{const u=o??"";return a.jsxs("div",{className:c("space-y-sm",l),children:[r&&a.jsx(be,{htmlFor:e,className:"block",children:r}),a.jsxs("select",{id:e,name:t,value:u,onChange:m=>d==null?void 0:d(m.target.value),className:"w-full rounded-md border border-input bg-background px-sm py-sm",children:[n&&a.jsx("option",{value:"",disabled:!0,children:n}),s.map(m=>a.jsx("option",{value:m.value,children:m.label},m.value))]}),i&&a.jsx(M,{size:"sm",variant:"destructive",children:i})]})},Ss=({id:e,name:t,label:r,placeholder:n,value:s,onChange:o,error:d,rows:i=4,className:l,...u})=>{const m=s??"";return a.jsxs("div",{className:c("space-y-sm",l),children:[r&&a.jsx(be,{htmlFor:e,className:"block",children:r}),a.jsx("textarea",{id:e,name:t,placeholder:n,value:m,onChange:f=>o==null?void 0:o(f.target.value),className:"w-full rounded-md border border-input bg-background px-sm py-sm",rows:i,...u}),d&&a.jsx(M,{size:"sm",variant:"destructive",children:d})]})},Ms=({variant:e="primary",title:t,description:r,className:n})=>{const s={primary:"bg-primary/10 border-primary/20 text-primary-foreground",secondary:"bg-secondary/10 border-secondary/20 text-secondary-foreground",accent:"bg-accent/10 border-accent/20 text-accent-foreground",outline:"bg-background border-border text-foreground",ghost:"bg-transparent border-transparent text-foreground",link:"bg-transparent border-transparent text-primary",destructive:"bg-destructive/10 border-destructive/20 text-destructive-foreground"};return a.jsxs("div",{className:c("rounded-lg border p-md",s[e],n),children:[t&&a.jsx(Y,{level:4,className:"mb-sm font-semibold",children:t}),r&&a.jsx(M,{size:"sm",children:r})]})},Cs=({value:e,max:t=100,className:r})=>{const n=Math.min(100,Math.max(0,e/t*100));return a.jsx("div",{className:c("h-2 w-full rounded-full bg-secondary",r),children:a.jsx("div",{className:"h-2 rounded-full bg-primary transition-[width] duration-normal",style:{width:`${n}%`}})})},ue=({className:e})=>a.jsx("div",{className:c("animate-pulse rounded bg-muted",e)});function ks(){const[e,t]=g.useState([]),r=g.useCallback(d=>{t(i=>i.filter(l=>l.id!==d))},[]),n=g.useCallback(d=>{const i=Math.random().toString(36).substr(2,9),l={id:i,duration:5e3,...d};return t(u=>[...u,l]),l.duration&&l.duration>0&&setTimeout(()=>{r(i)},l.duration),i},[r]),s=g.useCallback(()=>{t([])},[]),o=g.useCallback((d,i)=>{t(l=>l.map(u=>u.id===d?{...u,...i}:u))},[]);return{toasts:e,toast:n,dismiss:r,dismissAll:s,updateToast:o}}const $r=re.cva("group pointer-events-auto relative flex w-full items-center justify-between space-x-sm overflow-hidden rounded-md border p-md pr-lg shadow-lg transition-[transform,border-color,box-shadow] data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none",{variants:{type:{default:"border bg-background text-foreground",success:"border-accent/20 bg-accent/10 text-accent-foreground",error:"border-destructive/20 bg-destructive/10 text-destructive-foreground",warning:"border-secondary/20 bg-secondary/10 text-secondary-foreground",info:"border-primary/20 bg-primary/10 text-primary-foreground",primary:"border-primary/20 bg-primary/10 text-primary-foreground",accent:"border-accent/20 bg-accent/10 text-accent-foreground",destructive:"border-destructive/20 bg-destructive/10 text-destructive-foreground",secondary:"border-secondary/20 bg-secondary/10 text-secondary-foreground"}},defaultVariants:{type:"default"}}),Ds=re.cva("h-4 w-4 flex-shrink-0",{variants:{type:{default:"text-foreground",success:"text-accent",error:"text-destructive",warning:"text-secondary",info:"text-primary",primary:"text-primary",accent:"text-accent",destructive:"text-destructive",secondary:"text-secondary"}},defaultVariants:{type:"default"}}),Ts=e=>{switch(e){case"success":return L.CheckCircle;case"error":return L.AlertCircle;case"warning":return L.AlertTriangle;case"info":return L.Info;default:return L.Info}},xt=p.forwardRef(({className:e,toast:t,onDismiss:r,type:n=t.type,...s},o)=>{const d=Ts(t.type),i={...Q.fadeIn({duration:"normal"}),...Ce.slideInDown({distance:100,duration:"normal"})},l={...Q.fadeOut({duration:"fast"}),...Ce.slideOutRight({distance:100,duration:"fast"})};return a.jsxs(he.motion.div,{ref:o,className:c($r({type:n,className:e})),initial:i.initial,animate:i.animate,exit:l.exit,transition:i.transition,layout:!0,...s,children:[a.jsxs("div",{className:"flex flex-1 items-start space-x-sm",children:[a.jsx(d,{className:c(Ds({type:t.type}))}),a.jsxs("div",{className:"flex-1 space-y-xs",children:[t.title&&a.jsx("div",{className:"text-sm font-semibold",children:t.title}),t.description&&a.jsx("div",{className:"text-sm opacity-90",children:t.description}),t.action&&a.jsx("div",{className:"mt-sm",children:a.jsx(J,{variant:"outline",size:"sm",onClick:t.action.onClick,className:"h-8 px-xs text-xs",children:t.action.label})})]})]}),a.jsx(J,{variant:"ghost",size:"icon",className:"absolute right-xs top-xs h-6 w-6 rounded-md p-xs text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100",onClick:()=>r(t.id),children:a.jsx(L.X,{className:"h-4 w-4"})})]})});xt.displayName="Toast";const Hr=g.createContext(void 0);function Es({children:e,position:t="top-right",maxToasts:r=5}){const n=ks(),{toasts:s,toast:o,dismiss:d,dismissAll:i,updateToast:l}=n,u=s.slice(-r),m={"top-left":"top-4 left-4","top-center":"top-4 left-1/2 -translate-x-1/2","top-right":"top-4 right-4","bottom-left":"bottom-4 left-4","bottom-center":"bottom-4 left-1/2 -translate-x-1/2","bottom-right":"bottom-4 right-4"};return a.jsxs(Hr.Provider,{value:{toast:o,dismiss:d,dismissAll:i,updateToast:l},children:[e,a.jsx(Rs,{position:t,positionClasses:m[t],children:a.jsx(he.AnimatePresence,{mode:"popLayout",children:u.map(f=>a.jsx(xt,{toast:f,onDismiss:d},f.id))})})]})}function Yr(){const e=g.useContext(Hr);if(e===void 0)throw new Error("useToastContext must be used within a ToastProvider");return e}function Ps(){const{toast:e,dismiss:t,dismissAll:r,updateToast:n}=Yr();return{toast:e,dismiss:t,dismissAll:r,updateToast:n,success:s=>e({...s,type:"success"}),error:s=>e({...s,type:"error"}),warning:s=>e({...s,type:"warning"}),info:s=>e({...s,type:"info"})}}function Rs({children:e,positionClasses:t}){return a.jsx("div",{className:c("fixed z-[100] flex max-h-screen w-full flex-col-reverse p-0 sm:flex-col",t),style:{pointerEvents:"none"},children:a.jsx("div",{className:"pointer-events-auto flex flex-col gap-2",children:e})})}const Os=({items:e,className:t,ariaLabel:r="Breadcrumb"})=>{const n=e.length-1;return a.jsx("nav",{className:c("text-sm",t),"aria-label":r,children:a.jsx("ol",{className:"flex items-center space-x-sm",children:e.map((s,o)=>{const d=o===n;return a.jsxs("li",{className:"flex items-center",children:[o>0&&a.jsx(L.ChevronRight,{className:"mx-1 h-4 w-4 text-muted-foreground","aria-hidden":"true"}),s.href&&!d?a.jsx(pe,{href:s.href,className:"text-muted-foreground transition-colors hover:text-foreground",children:s.label}):a.jsx("span",{className:"font-medium text-foreground","aria-current":d?"page":void 0,children:s.label})]},`${s.label}-${o}`)})})})},Fs=({currentPage:e,totalPages:t,onPageChange:r,className:n,ariaLabel:s="Pagination"})=>{const o=Math.max(1,t),d=1,i=o,l=y=>Math.min(Math.max(y,d),i),u=()=>{const h=[],b=[];for(let w=Math.max(2,e-2);w<=Math.min(i-1,e+2);w++)h.push(w);return e-2>2?b.push(d,"..."):b.push(d),b.push(...h),e+2<i-1?b.push("...",i):i!==d&&b.push(i),b},m=y=>{const h=l(y);h!==e&&r(h)},f="rounded-md border border-input bg-background px-sm py-sm text-sm transition-colors hover:bg-accent disabled:cursor-not-allowed disabled:opacity-50";return a.jsxs("nav",{className:c("flex items-center space-x-xs",n),"aria-label":s,children:[a.jsxs("button",{type:"button",onClick:()=>m(e-1),disabled:e===d,className:c(f,_e),"aria-label":"Previous page","aria-disabled":e===d,children:[a.jsx(L.ChevronLeft,{className:"h-4 w-4","aria-hidden":"true"}),a.jsx("span",{className:"sr-only",children:"Previous"})]}),u().map((y,h)=>a.jsx(g.Fragment,{children:y==="..."?a.jsx("span",{className:"px-sm py-sm text-muted-foreground","aria-hidden":"true",children:"…"}):a.jsx("button",{type:"button",onClick:()=>m(y),className:c(f,_e,y===e?"border-primary bg-primary text-primary-foreground":"border-input bg-background hover:bg-accent"),"aria-label":`Go to page ${y}`,"aria-current":y===e?"page":void 0,children:y})},`${y}-${h}`)),a.jsxs("button",{type:"button",onClick:()=>m(e+1),disabled:e===i,className:c(f,_e),"aria-label":"Next page","aria-disabled":e===i,children:[a.jsx(L.ChevronRight,{className:"h-4 w-4","aria-hidden":"true"}),a.jsx("span",{className:"sr-only",children:"Next"})]})]})},qs=({items:e,className:t})=>a.jsx("div",{className:c("space-y-sm",t),children:e.map(r=>a.jsxs("div",{className:"rounded-lg border p-md transition-colors hover:bg-muted/50",children:[a.jsx("h3",{className:"font-medium text-foreground",children:r.title}),r.description&&a.jsx("p",{className:"mt-xs text-sm text-muted-foreground",children:r.description})]},r.id))}),Vs=({data:e,columns:t,rowKey:r,className:n})=>a.jsx("div",{className:c("overflow-x-auto",n),children:a.jsxs("table",{className:"w-full border-collapse",children:[a.jsx("thead",{children:a.jsx("tr",{className:"border-b",children:t.map(s=>a.jsx("th",{className:"p-sm text-left font-medium text-muted-foreground",children:s.title},String(s.key)))})}),a.jsx("tbody",{children:e.map(s=>a.jsx("tr",{className:"border-b hover:bg-muted/50",children:t.map(o=>a.jsx("td",{className:"p-sm",children:o.render?o.render(s[o.key],s):String(s[o.key])},String(o.key)))},String(s[r])))})]})}),Is=({items:e,className:t})=>a.jsx("div",{className:c("space-y-lg",t),children:e.map((r,n)=>a.jsxs("div",{className:"relative flex",children:[a.jsxs("div",{className:"flex flex-col items-center",children:[a.jsx("div",{className:"h-3 w-3 rounded-full border-2 border-background bg-primary"}),n<e.length-1&&a.jsx("div",{className:"mt-sm h-12 w-px bg-border"})]}),a.jsxs("div",{className:"ml-md flex-1",children:[a.jsx(Y,{level:3,className:"font-medium",children:r.title}),a.jsx(M,{size:"sm",variant:"muted",children:r.date}),r.description&&a.jsx(M,{size:"sm",variant:"muted",className:"mt-xs",children:r.description})]})]},r.id))});function Ls(e){if(e){if(typeof e=="object")return e;switch(e){case"fadeIn":return Q.fadeIn();case"fadeInUp":return Q.fadeInUp();case"fadeInDown":return Q.fadeInDown();case"fadeInLeft":return Q.fadeInLeft();case"fadeInRight":return Q.fadeInRight();case"slideInUp":return Ce.slideInUp();case"slideInDown":return Ce.slideInDown();case"slideInLeft":return Ce.slideInLeft();case"slideInRight":return Ce.slideInRight();case"scaleIn":return ve.scaleIn();default:return}}}function Bs(e){if(e){if(typeof e=="object")return e;switch(e){case"hoverLift":return Xe.hoverLift();case"hoverScale":return Xe.hoverScale();case"tapScale":return Xe.tapScale();default:return}}}function ft(e){if(!e)return{};const t=Ls(e.animation),r=Bs(e.hoverAnimation),n=e.animationProps||{};return{...t,...r,...n,whileHover:(r==null?void 0:r.whileHover)||n.whileHover||(t==null?void 0:t.whileHover),whileTap:(r==null?void 0:r.whileTap)||n.whileTap||(t==null?void 0:t.whileTap),transition:n.transition||(r==null?void 0:r.transition)||(t==null?void 0:t.transition)}}const zs=({title:e,description:t,date:r,venueName:n,price:s,imageUrl:o,href:d,ticketUrl:i,featured:l=!1,showImage:u=!0,getTicketsLabel:m,featuredBadgeText:f,className:y,animation:h})=>{const b=ft({animation:(h==null?void 0:h.animation)||"fadeInUp",hoverAnimation:(h==null?void 0:h.hoverAnimation)||"hoverLift",animationProps:h==null?void 0:h.animationProps});return a.jsx(Le,{...b,children:a.jsxs(se,{className:c("shadow-elevation-md hover:shadow-elevation-xl group relative overflow-hidden border-transparent transition-[border-color,box-shadow] duration-normal hover:border-primary/20",l&&"ring-2 ring-primary/50",y),children:[l&&f&&a.jsx("div",{className:"absolute right-3 top-3 z-10",children:a.jsx("span",{className:"shadow-elevation-lg inline-flex items-center rounded-full bg-gradient-to-r from-accent-500 to-primary-600 px-xs py-xs text-xs font-semibold text-white",children:f})}),u&&a.jsxs("div",{className:"relative h-[var(--spacing-3xl)] w-full overflow-hidden rounded-t-lg bg-gradient-to-br from-surface-elevated1 to-surface-elevated2",children:[o?a.jsx("img",{src:o,alt:e,className:"h-full w-full object-cover transition-transform duration-slow group-hover:scale-110"}):a.jsx("div",{className:"flex h-full w-full items-center justify-center",children:a.jsx("svg",{className:"h-16 w-16 text-muted-foreground",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 10l4.553-2.276A1 1 0 0121 8.618v6.764a1 1 0 01-1.447.894L15 14M5 18h8a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v8a2 2 0 002 2z"})})}),a.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 via-transparent to-transparent opacity-0 transition-opacity duration-normal group-hover:opacity-100"})]}),a.jsxs(oe,{className:"p-md",children:[a.jsx(Y,{level:3,className:"mb-xs line-clamp-2 text-lg font-bold transition-colors group-hover:text-primary",children:d?a.jsx(pe,{href:d,variant:"ghost",children:e}):e}),t&&a.jsx(M,{size:"sm",variant:"muted",className:"mb-sm line-clamp-2",children:t}),a.jsxs("div",{className:"mb-sm flex flex-col gap-xs",children:[r&&a.jsxs("div",{className:"flex items-center gap-xs text-xs text-muted-foreground",children:[a.jsx("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})}),a.jsx(M,{size:"xs",variant:"muted",children:r})]}),n&&a.jsxs("div",{className:"flex items-center gap-xs text-xs text-muted-foreground",children:[a.jsxs("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:[a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"}),a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 11a3 3 0 11-6 0 3 3 0 016 0z"})]}),a.jsx(M,{size:"xs",variant:"muted",className:"line-clamp-1",children:n})]})]}),a.jsxs("div",{className:"border-t border-border pt-sm",children:[i&&a.jsxs(pe,{href:i,className:"shadow-elevation-md hover:shadow-elevation-lg inline-flex w-full transform items-center justify-center bg-gradient-to-r from-accent-500 to-primary-600 px-md py-xs font-semibold text-white transition-[transform,box-shadow,background-color] duration-normal hover:scale-105 hover:from-accent-600 hover:to-primary-700",target:"_blank",rel:"noopener noreferrer",children:[m,a.jsx("svg",{className:"ml-xs h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M14 5l7 7m0 0l-7 7m7-7H3"})})]}),!i&&s&&a.jsx("div",{className:"text-right",children:a.jsx(M,{size:"lg",weight:"bold",className:"bg-gradient-to-r from-accent-500 to-primary-600 bg-clip-text text-transparent",children:s})})]})]})]})})},Ws=({name:e,description:t,location:r,capacity:n,imageUrl:s,href:o,eventsCount:d=0,featured:i=!1,showImage:l=!0,eventsLabel:u,popularBadgeText:m,capacityLabel:f,className:y,animation:h})=>{if(!e||e.trim()==="")throw new Error('VenueCard: "name" prop is required and cannot be empty');if(!u||u.trim()==="")throw new Error('VenueCard: "eventsLabel" prop is required and cannot be empty');if(!f||f.trim()==="")throw new Error('VenueCard: "capacityLabel" prop is required and cannot be empty');const b=ft({animation:(h==null?void 0:h.animation)||"fadeInUp",hoverAnimation:(h==null?void 0:h.hoverAnimation)||"hoverLift",animationProps:h==null?void 0:h.animationProps});return a.jsx(Le,{...b,children:a.jsxs(se,{className:c("group relative overflow-hidden border-transparent shadow-md transition-[border-color,box-shadow] duration-normal hover:border-primary/20 hover:shadow-xl",i&&"ring-2 ring-primary/50",y),children:[i&&m&&a.jsx("div",{className:"absolute right-sm top-sm z-10",children:a.jsx("span",{className:"inline-flex items-center rounded-full bg-gradient-to-r from-accent to-primary px-xs py-xs text-xs font-semibold text-primary-foreground shadow-lg",children:m})}),l&&a.jsxs("div",{className:"relative h-[var(--spacing-3xl)] w-full overflow-hidden rounded-t-lg bg-gradient-to-br from-muted to-muted/50",children:[s?a.jsx("img",{src:s,alt:e,className:"h-full w-full object-cover transition-transform duration-slow group-hover:scale-110"}):a.jsx("div",{className:"flex h-full w-full items-center justify-center",children:a.jsx("svg",{className:"h-16 w-16 text-muted",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4"})})}),a.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 via-transparent to-transparent opacity-0 transition-opacity duration-normal group-hover:opacity-100"})]}),a.jsxs(oe,{className:"p-md",children:[a.jsx(Y,{level:3,className:"mb-sm line-clamp-2 text-lg font-bold transition-colors group-hover:text-primary",children:o?a.jsx(pe,{href:o,variant:"ghost",children:e}):e}),t&&a.jsx(M,{size:"sm",variant:"muted",className:"mb-sm line-clamp-2",children:t}),r&&a.jsx("div",{className:"mb-sm flex flex-col gap-sm",children:a.jsxs("div",{className:"flex items-center gap-sm text-xs text-muted-foreground",children:[a.jsxs("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:[a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"}),a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 11a3 3 0 11-6 0 3 3 0 016 0z"})]}),a.jsx(M,{size:"xs",variant:"muted",className:"line-clamp-1",children:r})]})}),a.jsx("div",{className:"border-t border-border pt-sm",children:a.jsxs("div",{className:"flex items-center justify-between text-xs",children:[d>0&&a.jsxs("div",{className:"flex items-center gap-xs font-medium text-primary",children:[a.jsx("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 10l4.553-2.276A1 1 0 0121 8.618v6.764a1 1 0 01-1.447.894L15 14M5 18h8a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v8a2 2 0 002 2z"})}),a.jsxs(M,{size:"xs",variant:"primary",weight:"medium",children:[d," ",u]})]}),n&&a.jsxs("div",{className:"flex items-center gap-xs text-muted-foreground",children:[a.jsx("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"})}),a.jsxs(M,{size:"xs",variant:"muted",children:[f," ",n]})]})]})})]})]})})};function _s(e){if(!e||e.type==="none")return{};if(e.type==="surface"){const r={base:"hsl(var(--surface-base))",elevated1:"hsl(var(--surface-elevated1))",elevated2:"hsl(var(--surface-elevated2))",elevated3:"hsl(var(--surface-elevated3))",overlay:"hsl(var(--surface-overlay))",glass:"hsl(var(--surface-glass))"}[e.variant];if(r)return{style:{backgroundColor:r}};if(e.variant==="base")return{bg:"background"};if(e.variant==="elevated1"||e.variant==="elevated2")return{bg:"card"};if(e.variant==="elevated3")return{bg:"muted"}}return e.type==="color"?typeof e.value=="string"?{bg:e.value}:{bg:e.value.base||e.value.sm||e.value.md||"background"}:{}}function As(e){return e?{p:e.padding,px:e.paddingX,py:e.paddingY,m:e.margin,mx:e.marginX,my:e.marginY}:{}}function $s(e){return typeof e=="object"&&e!==null&&!p.isValidElement(e)&&"type"in e&&(e.type==="text"||e.type==="media"||e.type==="actions")}function ne(e){if(!e)return null;if($s(e)){if(e.type==="text"){const{content:t,typography:r,className:n}=e,s=r||{};if(typeof t=="string"){if(s.level)return a.jsx(Y,{level:s.level,className:c(n,s.className),children:t});if(s.size&&["2xl","3xl","4xl","5xl"].includes(s.size)){const i={"2xl":3,"3xl":2,"4xl":1,"5xl":1};return a.jsx(Y,{level:i[s.size]||3,className:c(n,s.className),children:t})}const o=s.size&&["xs","sm","md","lg","xl"].includes(s.size)?s.size:"md",d=s.variant&&s.variant!=="default"?s.variant:void 0;return a.jsx(M,{size:o,variant:d,className:c(n,s.className),children:t})}return a.jsx("div",{className:n,children:t})}if(e.type==="media"){const{content:t,className:r,aspectRatio:n}=e;return a.jsx("div",{className:c("w-full",r),style:n?{aspectRatio:n}:void 0,children:t})}if(e.type==="actions"){const{content:t,align:r,justify:n,gap:s,className:o}=e;return a.jsx(He,{align:r,justify:n,gap:s,className:c("flex-wrap",o),children:t})}}if(typeof e=="string")return a.jsx(M,{children:e});if(typeof e=="object"&&e!==null&&!p.isValidElement(e)&&"content"in e){const{content:t,className:r,style:n}=e;return typeof t=="string"?a.jsx("div",{className:r,style:n,children:a.jsx(M,{children:t})}):a.jsx("div",{className:r,style:n,children:t})}return e}function Hs(e){const{imagePosition:t="right",direction:r,gap:n="lg",align:s="center",justify:o="start",left:d,right:i,media:l}=e,u=(r==null?void 0:r.base)==="column"?"column":"row",m=t!=="left";return a.jsx(He,{direction:r||(u==="column"?"column":"row"),gap:n,align:s,justify:o,wrap:"wrap",children:m?a.jsxs(a.Fragment,{children:[d&&a.jsx("div",{className:"min-w-0 flex-1",children:ne(d)}),l&&a.jsx("div",{className:c("min-w-0 flex-1",t==="left"&&"order-first"),children:ne(l)}),i&&a.jsx("div",{className:"min-w-0 flex-1",children:ne(i)})]}):a.jsxs(a.Fragment,{children:[l&&a.jsx("div",{className:"min-w-0 flex-1",children:ne(l)}),d&&a.jsx("div",{className:"min-w-0 flex-1",children:ne(d)}),i&&a.jsx("div",{className:"min-w-0 flex-1",children:ne(i)})]})})}function Ys(e){const{columns:t=3,rows:r,gap:n="lg",align:s="stretch",justify:o="start",items:d,itemRenderer:i}=e;return a.jsx(Ke,{cols:t,rows:r,gap:n,align:s,justify:o,children:d.map((l,u)=>{const m=i?i(l,u):ne(l);return a.jsx(p.Fragment,{children:m},u)})})}function Gs(e){const{direction:t="vertical",gap:r="md",align:n="stretch",justify:s="start",items:o}=e;return a.jsx(Ze,{direction:t,spacing:r,align:n,justify:s,children:o.map((d,i)=>a.jsx(p.Fragment,{children:ne(d)},i))})}function Us(e){if(!e||!e.type)throw new Error("SectionBuilder: layout configuration is required");switch(e.type){case"split":!e.left&&!e.right&&!e.media&&console.warn("SectionBuilder: Split layout should have at least one of: left, right, or media");break;case"grid":if(!Array.isArray(e.items)||e.items.length===0)throw new Error("SectionBuilder: Grid layout requires a non-empty items array");break;case"stacked":if(!Array.isArray(e.items)||e.items.length===0)throw new Error("SectionBuilder: Stacked layout requires a non-empty items array");break}}function Xs(e){if(!e)throw new Error("SectionBuilder: config is required");if(!e.layout)throw new Error("SectionBuilder: layout configuration is required");Us(e.layout)}function Qs(e){switch(e.type){case"split":return Hs(e);case"grid":return Ys(e);case"stacked":return Gs(e);default:const t=e;throw new Error(`Unknown layout type: ${t.type}`)}}const Gr=p.forwardRef(({config:e,layout:t,background:r,spacing:n,radius:s,slots:o,className:d,style:i,as:l="section","aria-label":u,animation:m,...f},y)=>{const h=e||{layout:t,background:r,spacing:n,radius:s,slots:o};if(process.env.NODE_ENV!=="production")try{Xs(h)}catch(C){console.error("SectionBuilder validation error:",C)}const{layout:b,background:w,spacing:j,radius:N,slots:x}=h,v=_s(w),$=As(j),B=ft(m),O=N?{borderRadius:Yt(typeof N=="string"?N:N.base||"md")}:void 0,F=p.useMemo(()=>x!=null&&x.header?ne(x.header):null,[x==null?void 0:x.header]),P=p.useMemo(()=>x!=null&&x.body?ne(x.body):null,[x==null?void 0:x.body]),I=p.useMemo(()=>x!=null&&x.footer?ne(x.footer):null,[x==null?void 0:x.footer]),z=p.useMemo(()=>x!=null&&x.overlay?ne(x.overlay):null,[x==null?void 0:x.overlay]),W=Qs(b),T={...v.style,...O,...i},R=l;return a.jsx(R,{ref:y,"aria-label":u,className:c("relative",d),style:T,...f,children:a.jsxs(Le,{bg:v.bg,...$,...B,className:"relative w-full",style:v.style,children:[F&&a.jsx("div",{className:"mb-lg",children:F}),P&&a.jsx("div",{className:"mb-lg",children:P}),W,I&&a.jsx("div",{className:"mt-lg",children:I}),z&&a.jsx("div",{className:"pointer-events-none absolute inset-0 z-10 flex items-center justify-center",children:z})]})})});Gr.displayName="SectionBuilder";const Js=({articles:e,readMoreLabel:t,className:r})=>{if(!t||t.trim()==="")throw new Error('ArticlesSection: "readMoreLabel" prop is required and cannot be empty');return a.jsx("div",{className:c("space-y-lg",r),children:e.map((n,s)=>a.jsxs("article",{className:"rounded-lg border p-lg transition-shadow hover:shadow-md",children:[n.imageUrl&&a.jsx("div",{className:"mb-md h-[var(--spacing-3xl)] w-full rounded-md bg-muted"}),a.jsxs("div",{className:"space-y-sm",children:[a.jsx(Y,{level:2,className:"text-xl font-semibold",children:a.jsx(pe,{href:n.href,variant:"ghost",className:"hover:text-primary",children:n.title})}),n.description&&a.jsx(M,{variant:"muted",children:n.description}),n.date&&a.jsx(M,{size:"sm",variant:"muted",children:n.date}),a.jsxs(pe,{href:n.href,variant:"primary",className:"inline-flex items-center",children:[t," →"]})]})]},n.href||s))})},Ur=({headline:e,description:t,primaryAction:r,secondaryAction:n,layout:s="centered",className:o})=>{const d=s==="centered",i=(l,u)=>{if(!l)return null;const m=l.variant||(u?"primary":"outline"),f="lg";return l.href?a.jsx(pe,{href:l.href,variant:m,size:f,children:l.label}):a.jsx(J,{variant:m,size:f,onClick:l.onClick,children:l.label})};return a.jsx("section",{className:c("w-full bg-muted py-xl transition-colors",o),"aria-label":"Call to action section",children:a.jsx("div",{className:"container mx-auto px-lg",children:a.jsxs("div",{className:c(d?"mx-auto max-w-3xl text-center":"grid grid-cols-1 gap-lg md:grid-cols-2 md:items-center"),children:[a.jsxs("div",{className:c("space-y-md",d&&"flex flex-col items-center"),children:[a.jsx(Y,{level:2,className:c("font-bold tracking-tight",d?"text-3xl md:text-4xl":"text-2xl md:text-3xl"),children:e}),t&&a.jsx(M,{size:d?"lg":"md",variant:"muted",className:c(d?"max-w-2xl":"max-w-none"),children:t})]}),(r||n)&&a.jsxs("div",{className:c("flex flex-wrap gap-md",d?"justify-center":"justify-start md:justify-end"),children:[r&&i(r,!0),n&&i(n,!1)]})]})})})};Ur.displayName="CTASection";const Xr=({features:e,title:t,description:r,columns:n=3,className:s})=>{if(!Array.isArray(e)||e.length===0)return null;const o={1:"grid-cols-1",2:"grid-cols-1 md:grid-cols-2",3:"grid-cols-1 md:grid-cols-2 lg:grid-cols-3",4:"grid-cols-1 md:grid-cols-2 lg:grid-cols-4"};return a.jsx("section",{className:c("w-full py-xl",s),"aria-label":"Features section",children:a.jsxs("div",{className:"container mx-auto px-lg",children:[(t||r)&&a.jsxs("header",{className:"mb-xl text-center",children:[t&&a.jsx(Y,{level:2,className:"mb-md",children:t}),r&&a.jsx(M,{size:"lg",variant:"muted",className:"mx-auto max-w-2xl",children:r})]}),a.jsx("div",{className:c("grid gap-lg",o[n]),children:e.map((d,i)=>a.jsx(se,{className:"transition-shadow hover:shadow-md",children:a.jsx(oe,{className:"p-lg",children:a.jsxs("div",{className:"space-y-md",children:[a.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-lg bg-primary/10 text-primary",children:d.icon}),a.jsx(Y,{level:3,className:"text-xl font-semibold",children:d.title}),a.jsx(M,{variant:"muted",className:"leading-relaxed",children:d.description})]})})},i))})]})})};Xr.displayName="FeatureSection";const Qr=({variant:e="full-width",title:t,description:r,actions:n,media:s,className:o,background:d="default"})=>{const i={default:"bg-background",muted:"bg-muted",card:"bg-card"},l=e==="split";return a.jsx("section",{className:c("w-full transition-colors",i[d],o),"aria-label":"Hero section",children:a.jsxs("div",{className:c("container mx-auto px-lg py-xl",l?"grid grid-cols-1 gap-lg md:grid-cols-2 md:items-center lg:gap-xl":"flex flex-col items-center justify-center text-center"),children:[a.jsxs("div",{className:c("flex flex-col",l?"space-y-md":"max-w-3xl space-y-lg"),children:[a.jsxs("header",{className:"space-y-md",children:[a.jsx(Y,{level:1,className:c("font-bold tracking-tight",l?"text-3xl md:text-4xl lg:text-5xl":"text-4xl md:text-5xl lg:text-6xl"),children:t}),r&&a.jsx(M,{size:l?"lg":"xl",variant:"muted",className:c(l?"max-w-none":"mx-auto max-w-2xl"),children:r})]}),n&&a.jsx("div",{className:c("flex flex-wrap gap-md",l?"justify-start":"justify-center"),children:n})]}),s&&a.jsx("div",{className:c("flex items-center justify-center",l?"order-first md:order-last":"mt-lg"),children:a.jsx("div",{className:"w-full max-w-full overflow-hidden rounded-lg",children:s})})]})})};Qr.displayName="HeroSection";const Ks=({events:e,limit:t,loading:r,title:n,loadingText:s,contentText:o,className:d,...i})=>{if(!Array.isArray(e))throw new Error('TrendingSection: "events" prop is required and must be an array');if(typeof t!="number"||isNaN(t)||t<0)throw new Error('TrendingSection: "limit" prop is required and must be a non-negative number');if(typeof r!="boolean")throw new Error('TrendingSection: "loading" prop is required and must be a boolean');if(!n||n.trim()==="")throw new Error('TrendingSection: "title" prop is required and cannot be empty');if(!s||s.trim()==="")throw new Error('TrendingSection: "loadingText" prop is required and cannot be empty');if(!o||o.trim()==="")throw new Error('TrendingSection: "contentText" prop is required and cannot be empty');return a.jsx(se,{className:c("shadow-md",d),...i,children:a.jsxs(oe,{className:"p-lg",children:[a.jsx(Y,{level:2,className:"mb-md",children:n}),r?a.jsx(M,{variant:"muted",children:s}):a.jsx(M,{variant:"muted",children:o})]})})},Zs=({className:e})=>a.jsxs("div",{className:c("rounded-lg bg-background p-md shadow-md",e),children:[a.jsx(ue,{className:"mb-md h-48 w-full"}),a.jsx(ue,{className:"mb-sm h-6 w-3/4"}),a.jsx(ue,{className:"mb-sm h-4 w-full"}),a.jsx(ue,{className:"h-4 w-1/2"})]}),eo=({className:e})=>a.jsxs("div",{className:c("rounded-lg bg-background p-md shadow-md",e),children:[a.jsx(ue,{className:"mb-md h-48 w-full"}),a.jsx(ue,{className:"mb-sm h-6 w-3/4"}),a.jsx(ue,{className:"mb-sm h-4 w-full"}),a.jsx(ue,{className:"h-4 w-1/2"})]}),to=({placeholder:e,className:t,onSearch:r,suggestions:n=[],onSuggestionSelect:s})=>{if(!e||e.trim()==="")throw new Error('SearchBar: "placeholder" prop is required and cannot be empty');const[o,d]=g.useState(""),[i,l]=g.useState(!1),[u,m]=g.useState(-1),f=g.useRef(null),y=x=>{d(x),m(-1),r&&r(x)},h=()=>{l(!0)},b=x=>{setTimeout(()=>{var v;typeof document<"u"&&!((v=f.current)!=null&&v.contains(document.activeElement))&&(l(!1),m(-1))},200)},w=x=>{if(n.length!==0)if(x.key==="ArrowDown")x.preventDefault(),m(v=>v<n.length-1?v+1:v);else if(x.key==="ArrowUp")x.preventDefault(),m(v=>v>0?v-1:-1);else if(x.key==="Enter"&&u>=0&&u<n.length){x.preventDefault();const v=n[u];v&&(d(v),y(v),s==null||s(v),l(!1))}else x.key==="Escape"&&(l(!1),m(-1))},j=x=>{d(x),y(x),s==null||s(x),l(!1)};g.useEffect(()=>{if(typeof document>"u")return;const x=v=>{f.current&&!f.current.contains(v.target)&&(l(!1),m(-1))};return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[]);const N=n.filter(x=>x.toLowerCase().includes(o.toLowerCase()));return a.jsxs("div",{ref:f,className:c("relative w-full max-w-sm",t),children:[a.jsx(Ge,{placeholder:e,value:o,onChange:y,onFocus:h,onBlur:b,onKeyDown:w,className:c("transition-[border-color,box-shadow] duration-fast","focus:ring-2 focus:ring-primary focus:ring-offset-2","hover:border-primary/50",i&&"border-primary shadow-sm")}),i&&N.length>0&&a.jsx("div",{className:"absolute z-50 mt-1 max-h-60 w-full overflow-auto rounded-md border bg-popover shadow-lg",children:N.map((x,v)=>a.jsx(J,{type:"button",variant:"ghost",onClick:()=>j(x),className:c("w-full justify-start px-md py-sm text-sm",v===u&&"bg-accent text-accent-foreground"),children:x},x))})]})},ro={none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl","2xl":"rounded-2xl","3xl":"rounded-3xl",full:"rounded-full"},ao={none:"shadow-none",sm:"shadow-sm",base:"shadow",md:"shadow-md",lg:"shadow-lg",xl:"shadow-xl","2xl":"shadow-2xl",inner:"shadow-inner"},no={square:"aspect-square",video:"aspect-video",photo:"aspect-[4/3]",wide:"aspect-[16/9]"},Jr=g.forwardRef(({className:e,wrapperClassName:t,radius:r="none",shadow:n="none",aspectRatio:s,fallbackSrc:o,showSkeleton:d=!1,src:i,onLoadingComplete:l,onError:u,onLoad:m,fill:f,alt:y="",...h},b)=>{const[w,j]=g.useState(!1),[N,x]=g.useState(!1),[v,$]=g.useState(i),B=g.useRef(!1),O=g.useRef(0),F=g.useRef(!0),P=g.useRef(null),I=i&&i.trim()!==""?i:void 0,z=o&&o.trim()!==""?o:void 0,W=z&&z!==I?z:void 0,T=g.useCallback(G=>{const U=G.currentTarget,ye=O.current;if(!(!F.current||!P.current||U!==P.current)&&(j(!0),l))try{const le=U.naturalWidth,Se=U.naturalHeight;if(O.current!==ye)return;if(le===0||Se===0){if(x(!0),j(!1),!u)return;try{u(G)}catch(Ee){console.error("Error in onError callback:",Ee)}return}l({naturalWidth:le,naturalHeight:Se})}catch(le){console.error("Error in onLoadingComplete callback:",le)}},[l,u]),R=g.useCallback(G=>{const U=G.currentTarget,ye=O.current;if(!(!F.current||!P.current||U!==P.current)&&O.current===ye){if(W&&!B.current&&v!==W){B.current=!0,$(W),x(!1),j(!1),O.current+=1;return}if(x(!0),j(!1),u)try{u(G)}catch(le){console.error("Error in onError callback:",le)}}},[W,v,u]);g.useEffect(()=>{I!==v&&($(I),j(!1),x(!1),B.current=!1,O.current+=1)},[I,v]),g.useEffect(()=>(F.current=!0,()=>{F.current=!1}),[]);const C=c("relative",r!=="none"&&ro[r],n!=="none"&&ao[n],r!=="none"&&"overflow-hidden",s&&(no[s]||(typeof s=="string"&&/^\d+\/\d+$/.test(s.trim())?`aspect-[${s.trim()}]`:s)),f&&"w-full h-full",t),S=c((f||r!=="none")&&"object-cover",f&&"absolute inset-0 w-full h-full",e),te=d&&!w&&!N&&v,K=g.useCallback(G=>{if(T(G),m)try{m(G)}catch(U){console.error("Error in onLoad callback:",U)}},[T,m]),Z=v||W;return a.jsxs("div",{ref:b,className:C,children:[te&&a.jsx(ue,{className:"absolute inset-0 z-10 h-full w-full"}),Z?a.jsx("img",{...h,ref:P,src:v,alt:y,className:S,onLoad:K,onError:R}):null]})});Jr.displayName="Image";const so=({className:e})=>a.jsx("div",{className:c("flex h-6 w-6 items-center justify-center rounded-full bg-primary",e),children:a.jsx("span",{className:"text-sm text-white",children:"↑"})}),oo=({ariaLabel:e,dataTestId:t,className:r,languages:n,value:s,defaultValue:o,disabled:d,onLanguageChange:i})=>{if(!e||e.trim()==="")throw new Error('LanguageSelector: "ariaLabel" prop is required and cannot be empty');if(!t||t.trim()==="")throw new Error('LanguageSelector: "dataTestId" prop is required and cannot be empty');if(!n||n.length===0)throw new Error('LanguageSelector: "languages" prop is required and cannot be empty');const l=g.useMemo(()=>n,[n]),u=()=>{if(s!==void 0)return s;if(o&&l.some(h=>h.code===o))return o;if(l.length===0)throw new Error("LanguageSelector: languages array must contain at least one option");return l[0].code},[m,f]=g.useState(u);g.useEffect(()=>{s!==void 0&&s!==m&&f(s)},[s,m]);const y=h=>{const b=h.target.value;s===void 0&&f(b),i==null||i(b)};return a.jsx("select",{value:s??m,onChange:y,disabled:d,className:c("rounded-md border border-input bg-background px-sm py-sm text-sm",d&&"cursor-not-allowed opacity-70",r),"aria-label":e,"data-testid":t,children:l.map(({code:h,label:b})=>a.jsx("option",{value:h,children:b},h))})},io=({emailLabel:e,emailPlaceholder:t,passwordLabel:r,passwordPlaceholder:n,loginButtonText:s,className:o})=>{if(!e||e.trim()==="")throw new Error('LoginForm: "emailLabel" prop is required and cannot be empty');if(!t||t.trim()==="")throw new Error('LoginForm: "emailPlaceholder" prop is required and cannot be empty');if(!r||r.trim()==="")throw new Error('LoginForm: "passwordLabel" prop is required and cannot be empty');if(!n||n.trim()==="")throw new Error('LoginForm: "passwordPlaceholder" prop is required and cannot be empty');if(!s||s.trim()==="")throw new Error('LoginForm: "loginButtonText" prop is required and cannot be empty');return a.jsxs("div",{className:c("space-y-md",o),children:[a.jsx(ke,{label:e,placeholder:t}),a.jsx(ke,{label:r,placeholder:n}),a.jsx(J,{className:"w-full",children:s})]})},lo=({name:e,email:t,avatar:r,className:n})=>{if(!e||e.trim()==="")throw new Error('ProfileCard: "name" prop is required and cannot be empty');if(!t||t.trim()==="")throw new Error('ProfileCard: "email" prop is required and cannot be empty');return a.jsx(se,{className:c("shadow-md",n),children:a.jsxs(oe,{className:"p-md",children:[r&&a.jsx("div",{className:"mb-md h-[var(--spacing-md)] w-[var(--spacing-md)] rounded-full bg-muted"}),a.jsx(Y,{level:3,className:"mb-sm text-lg font-semibold",children:e}),a.jsx(M,{variant:"muted",children:t})]})})},co=({nameLabel:e,namePlaceholder:t,emailLabel:r,emailPlaceholder:n,passwordLabel:s,passwordPlaceholder:o,registerButtonText:d,className:i})=>{if(!e||e.trim()==="")throw new Error('RegisterForm: "nameLabel" prop is required and cannot be empty');if(!t||t.trim()==="")throw new Error('RegisterForm: "namePlaceholder" prop is required and cannot be empty');if(!r||r.trim()==="")throw new Error('RegisterForm: "emailLabel" prop is required and cannot be empty');if(!n||n.trim()==="")throw new Error('RegisterForm: "emailPlaceholder" prop is required and cannot be empty');if(!s||s.trim()==="")throw new Error('RegisterForm: "passwordLabel" prop is required and cannot be empty');if(!o||o.trim()==="")throw new Error('RegisterForm: "passwordPlaceholder" prop is required and cannot be empty');if(!d||d.trim()==="")throw new Error('RegisterForm: "registerButtonText" prop is required and cannot be empty');return a.jsxs("div",{className:c("space-y-md",i),children:[a.jsx(ke,{label:e,placeholder:t}),a.jsx(ke,{label:r,placeholder:n}),a.jsx(ke,{label:s,placeholder:o}),a.jsx(J,{className:"w-full",children:d})]})},uo=({title:e,content:t,className:r})=>{if(!e||e.trim()==="")throw new Error('Dashboard: "title" prop is required and cannot be empty');if(!t||t.trim()==="")throw new Error('Dashboard: "content" prop is required and cannot be empty');return a.jsx(se,{className:c("shadow-md",r),children:a.jsxs(oe,{className:"p-lg",children:[a.jsx(Y,{level:2,className:"mb-md",children:e}),a.jsx(M,{variant:"muted",children:t})]})})},mo=({title:e,content:t,className:r})=>{if(!e||e.trim()==="")throw new Error('UserManagement: "title" prop is required and cannot be empty');if(!t||t.trim()==="")throw new Error('UserManagement: "content" prop is required and cannot be empty');return a.jsx(se,{className:c("shadow-md",r),children:a.jsxs(oe,{className:"p-lg",children:[a.jsx(Y,{level:2,className:"mb-md",children:e}),a.jsx(M,{variant:"muted",children:t})]})})};exports.accentColors=E.accentColors;exports.animations=E.animations;exports.baseColors=E.baseColors;exports.colorCSSVariables=E.colorCSSVariables;exports.cssVariableColorTokens=E.cssVariableColorTokens;exports.durations=E.durations;exports.easings=E.easings;exports.keyframes=E.keyframes;exports.motionCSSVariables=E.motionCSSVariables;exports.primaryColors=E.primaryColors;exports.reducedMotion=E.reducedMotion;exports.secondaryColors=E.secondaryColors;exports.semanticColors=E.semanticColors;exports.springs=E.springs;exports.surfaceColors=E.surfaceColors;exports.tailwindMotionConfig=E.tailwindMotionConfig;exports.tailwindThemeColors=E.tailwindThemeColors;exports.textColors=E.textColors;exports.transitions=E.transitions;exports.accentColoredShadows=V.accentColoredShadows;exports.allCSSVariables=V.allCSSVariables;exports.allCSSVariablesCSS=V.allCSSVariablesCSS;exports.componentShadowMapping=V.componentShadowMapping;exports.elevationShadows=V.elevationShadows;exports.focusRings=V.focusRings;exports.fontFamily=V.fontFamily;exports.fontSize=V.fontSize;exports.fontWeight=V.fontWeight;exports.generateCSSVariablesCSS=V.generateCSSVariablesCSS;exports.glowEffects=V.glowEffects;exports.layoutSpacing=V.layoutSpacing;exports.letterSpacing=V.letterSpacing;exports.lineHeight=V.lineHeight;exports.primaryColoredShadows=V.primaryColoredShadows;exports.semanticSpacing=V.semanticSpacing;exports.shadowCSSVariables=V.shadowCSSVariables;exports.spacing=V.spacing;exports.spacingCSSVariables=V.spacingCSSVariables;exports.tailwindShadowConfig=V.tailwindShadowConfig;exports.tailwindSpacingConfig=V.tailwindSpacingConfig;exports.tailwindTypographyConfig=V.tailwindTypographyConfig;exports.textStyles=V.textStyles;exports.tokenSystemSummary=V.tokenSystemSummary;exports.typographyCSSVariables=V.typographyCSSVariables;exports.borderRadius=$e.borderRadius;exports.componentRadius=$e.componentRadius;exports.radiusCSSVariables=$e.radiusCSSVariables;exports.tailwindRadiusConfig=$e.tailwindRadiusConfig;exports.applyDocumentMode=ie.applyDocumentMode;exports.applyDocumentTheme=ie.applyDocumentTheme;exports.getInitialBrand=ie.getInitialBrand;exports.getInitialMode=ie.getInitialMode;exports.getInitialTheme=ie.getInitialTheme;exports.loadThemeOverride=ie.loadThemeOverride;exports.persistBrand=ie.persistBrand;exports.persistMode=ie.persistMode;exports.persistTheme=ie.persistTheme;exports.Alert=Ms;exports.ArticlesSection=Js;exports.Badge=ha;exports.Blockquote=va;exports.Box=Le;exports.Breadcrumbs=Os;exports.Button=J;exports.CTASection=Ur;exports.Card=se;exports.CardContent=oe;exports.CardDescription=Vt;exports.CardFooter=It;exports.CardHeader=Ft;exports.CardTitle=qt;exports.Code=wa;exports.ConfirmDialog=er;exports.Container=Ut;exports.CustomDialog=Aa;exports.Dashboard=uo;exports.DateRangePicker=lt;exports.Divider=Lt;exports.DropdownMenu=en;exports.DropdownMenuCheckboxItem=vr;exports.DropdownMenuContent=yr;exports.DropdownMenuGroup=rn;exports.DropdownMenuItem=wr;exports.DropdownMenuLabel=jr;exports.DropdownMenuPortal=an;exports.DropdownMenuRadioGroup=sn;exports.DropdownMenuRadioItem=gr;exports.DropdownMenuSeparator=Nr;exports.DropdownMenuShortcut=Sr;exports.DropdownMenuSub=nn;exports.DropdownMenuSubContent=br;exports.DropdownMenuSubTrigger=fr;exports.DropdownMenuTrigger=tn;exports.EventCard=zs;exports.EventCardSkeleton=Zs;exports.FeatureSection=Xr;exports.FilterBar=Ar;exports.FilterBarCompact=gs;exports.FilterSelect=Ve;exports.Flex=He;exports.Footer=ka;exports.FormInput=ke;exports.FormSelect=Ns;exports.FormTextarea=Ss;exports.Grid=Ke;exports.Heading=Y;exports.HeroSection=Qr;exports.Image=Jr;exports.Input=Te;exports.Label=be;exports.LanguageSelector=oo;exports.Link=pe;exports.List=qs;exports.LoginForm=io;exports.Modal=Kt;exports.ModalClose=Va;exports.ModalContent=tt;exports.ModalDescription=st;exports.ModalFooter=at;exports.ModalHeader=rt;exports.ModalOverlay=et;exports.ModalPortal=Zt;exports.ModalProvider=Ha;exports.ModalTitle=nt;exports.ModalTrigger=qa;exports.ModeHero=Ea;exports.Navbar=Pa;exports.NavigationMenu=Mr;exports.NavigationMenuContent=Tr;exports.NavigationMenuIndicator=Er;exports.NavigationMenuItem=on;exports.NavigationMenuLink=dn;exports.NavigationMenuList=Cr;exports.NavigationMenuTrigger=Dr;exports.NavigationMenuViewport=dt;exports.OverlayBackdrop=Xa;exports.OverlayContainer=Qa;exports.OverlayPortal=Ua;exports.Pagination=Fs;exports.Paragraph=ya;exports.Popover=lr;exports.PopoverAnchor=Ja;exports.PopoverContent=ot;exports.PopoverTrigger=cr;exports.PopoverWrapper=Ka;exports.PriceRangeSlider=_r;exports.ProfileCard=lo;exports.Progress=Cs;exports.RegisterForm=co;exports.SearchBar=to;exports.SearchFilters=js;exports.SearchInput=Ge;exports.Section=Ra;exports.SectionBuilder=Gr;exports.Select=Lr;exports.SelectContent=ht;exports.SelectGroup=fs;exports.SelectItem=pt;exports.SelectLabel=zr;exports.SelectScrollDownButton=mt;exports.SelectScrollUpButton=ut;exports.SelectSeparator=Wr;exports.SelectTrigger=ct;exports.SelectValue=Br;exports.SimpleModal=Ga;exports.Skeleton=ue;exports.Stack=Ze;exports.Table=Vs;exports.Tabs=ln;exports.TabsContent=Or;exports.TabsList=Pr;exports.TabsTrigger=Rr;exports.Text=M;exports.ThemeSwitch=ba;exports.Timeline=Is;exports.Toast=xt;exports.ToastProvider=Es;exports.Tooltip=hr;exports.TooltipContent=it;exports.TooltipProvider=mr;exports.TooltipTrigger=pr;exports.TooltipWrapper=Za;exports.TrendingIcon=so;exports.TrendingSection=Ks;exports.UserManagement=mo;exports.VenueCard=Ws;exports.VenueCardSkeleton=eo;exports.badgeVariants=Rt;exports.buttonVariants=Ot;exports.cn=c;exports.containerVariants=Gt;exports.debounce=ua;exports.flexVariants=Xt;exports.formatDate=Et;exports.formatDateTime=la;exports.formatTime=Pt;exports.generateId=ca;exports.gridVariants=Qt;exports.linkVariants=Bt;exports.navigationMenuTriggerStyle=kr;exports.popoverContentVariants=ur;exports.stackVariants=Jt;exports.throttle=ma;exports.toastVariants=$r;exports.tooltipContentVariants=xr;exports.useConfirmDialog=Ia;exports.useDateRange=xs;exports.useModal=$a;exports.useModalContext=dr;exports.useModalManager=or;exports.usePriceRange=bs;exports.useSearch=ws;exports.useToast=Ps;exports.useToastContext=Yr;exports.withModal=Ya;