@uptrademedia/site-kit 1.0.28 → 1.0.30

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 (53) hide show
  1. package/dist/{chunk-FRSN2JKU.js → chunk-6NTMCSHP.js} +15 -18
  2. package/dist/chunk-6NTMCSHP.js.map +1 -0
  3. package/dist/{chunk-WMOA3332.js → chunk-FOBATMSH.js} +70 -55
  4. package/dist/chunk-FOBATMSH.js.map +1 -0
  5. package/dist/{chunk-HHAJAANV.mjs → chunk-L474IOHD.mjs} +198 -38
  6. package/dist/chunk-L474IOHD.mjs.map +1 -0
  7. package/dist/{chunk-K2PERQLP.mjs → chunk-MLY7AWHG.mjs} +70 -55
  8. package/dist/chunk-MLY7AWHG.mjs.map +1 -0
  9. package/dist/{chunk-JOAULVQB.mjs → chunk-WG2SI2UN.mjs} +15 -18
  10. package/dist/chunk-WG2SI2UN.mjs.map +1 -0
  11. package/dist/{chunk-RM4XFDE6.js → chunk-WNCM4GNY.js} +198 -38
  12. package/dist/chunk-WNCM4GNY.js.map +1 -0
  13. package/dist/commerce/index.d.mts +4 -2
  14. package/dist/commerce/index.d.ts +4 -2
  15. package/dist/commerce/index.js +39 -39
  16. package/dist/commerce/index.mjs +1 -1
  17. package/dist/index.d.mts +1 -1
  18. package/dist/index.d.ts +1 -1
  19. package/dist/index.js +42 -36
  20. package/dist/index.js.map +1 -1
  21. package/dist/index.mjs +18 -12
  22. package/dist/index.mjs.map +1 -1
  23. package/dist/{routing-D6bSzuw-.d.ts → routing-CHmSC8p0.d.ts} +1 -1
  24. package/dist/{routing-nObgWX16.d.mts → routing-Cy9vtQq8.d.mts} +1 -1
  25. package/dist/seo/index.d.mts +28 -28
  26. package/dist/seo/index.d.ts +28 -28
  27. package/dist/seo/index.js +98 -245
  28. package/dist/seo/index.js.map +1 -1
  29. package/dist/seo/index.mjs +27 -224
  30. package/dist/seo/index.mjs.map +1 -1
  31. package/dist/seo/register-sitemap-cli.js +3 -3
  32. package/dist/seo/register-sitemap-cli.mjs +2 -2
  33. package/dist/seo/server.d.mts +2 -2
  34. package/dist/seo/server.d.ts +2 -2
  35. package/dist/seo/server.js +185 -44
  36. package/dist/seo/server.js.map +1 -1
  37. package/dist/seo/server.mjs +183 -2
  38. package/dist/seo/server.mjs.map +1 -1
  39. package/dist/{api-EXKDAYGB.mjs → server-api-3HJLLZB7.mjs} +3 -3
  40. package/dist/server-api-3HJLLZB7.mjs.map +1 -0
  41. package/dist/{api-HBENRDUH.js → server-api-RM25RPFH.js} +20 -20
  42. package/dist/server-api-RM25RPFH.js.map +1 -0
  43. package/dist/{types-Cb9d3lkc.d.mts → types-CwyWiHtq.d.mts} +22 -11
  44. package/dist/{types-Cb9d3lkc.d.ts → types-CwyWiHtq.d.ts} +22 -11
  45. package/package.json +1 -1
  46. package/dist/api-EXKDAYGB.mjs.map +0 -1
  47. package/dist/api-HBENRDUH.js.map +0 -1
  48. package/dist/chunk-FRSN2JKU.js.map +0 -1
  49. package/dist/chunk-HHAJAANV.mjs.map +0 -1
  50. package/dist/chunk-JOAULVQB.mjs.map +0 -1
  51. package/dist/chunk-K2PERQLP.mjs.map +0 -1
  52. package/dist/chunk-RM4XFDE6.js.map +0 -1
  53. package/dist/chunk-WMOA3332.js.map +0 -1
@@ -3356,6 +3356,12 @@ var ListIcon = () => /* @__PURE__ */ jsxRuntime.jsxs("svg", { xmlns: "http://www
3356
3356
  /* @__PURE__ */ jsxRuntime.jsx("line", { x1: "3", y1: "12", x2: "3.01", y2: "12" }),
3357
3357
  /* @__PURE__ */ jsxRuntime.jsx("line", { x1: "3", y1: "18", x2: "3.01", y2: "18" })
3358
3358
  ] });
3359
+ var GridIcon = () => /* @__PURE__ */ jsxRuntime.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
3360
+ /* @__PURE__ */ jsxRuntime.jsx("rect", { x: "3", y: "3", width: "7", height: "7" }),
3361
+ /* @__PURE__ */ jsxRuntime.jsx("rect", { x: "14", y: "3", width: "7", height: "7" }),
3362
+ /* @__PURE__ */ jsxRuntime.jsx("rect", { x: "14", y: "14", width: "7", height: "7" }),
3363
+ /* @__PURE__ */ jsxRuntime.jsx("rect", { x: "3", y: "14", width: "7", height: "7" })
3364
+ ] });
3359
3365
  var ClockIcon = () => /* @__PURE__ */ jsxRuntime.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
3360
3366
  /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "12", cy: "12", r: "10" }),
3361
3367
  /* @__PURE__ */ jsxRuntime.jsx("polyline", { points: "12 6 12 12 16 14" })
@@ -3364,9 +3370,11 @@ var LocationIcon = () => /* @__PURE__ */ jsxRuntime.jsxs("svg", { xmlns: "http:/
3364
3370
  /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z" }),
3365
3371
  /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "12", cy: "10", r: "3" })
3366
3372
  ] });
3373
+ var DEFAULT_VIEWS = ["list", "grid", "calendar"];
3367
3374
  function EventsWidget({
3368
3375
  events: propEvents,
3369
3376
  defaultView = "list",
3377
+ availableViews = DEFAULT_VIEWS,
3370
3378
  showViewToggle = true,
3371
3379
  title,
3372
3380
  subtitle,
@@ -3390,7 +3398,10 @@ function EventsWidget({
3390
3398
  eventCardClassName = "",
3391
3399
  modalClassName = ""
3392
3400
  }) {
3393
- const [viewMode, setViewMode] = React5.useState(defaultView);
3401
+ const views = availableViews.length > 0 ? availableViews : DEFAULT_VIEWS;
3402
+ const resolvedDefault = views.includes(defaultView) ? defaultView : views[0];
3403
+ const [viewMode, setViewMode] = React5.useState(resolvedDefault);
3404
+ const effectiveView = views.includes(viewMode) ? viewMode : views[0];
3394
3405
  const [events, setEvents] = React5.useState(propEvents || []);
3395
3406
  const [loading, setLoading] = React5.useState(!propEvents);
3396
3407
  const [error, setError] = React5.useState(null);
@@ -3510,7 +3521,7 @@ function EventsWidget({
3510
3521
  ] })
3511
3522
  ] });
3512
3523
  }
3513
- const displayEvents = viewMode === "list" ? events.slice(0, limit) : events;
3524
+ const displayEvents = effectiveView === "list" || effectiveView === "grid" ? events.slice(0, limit) : events;
3514
3525
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `site-kit-events-widget ${className}`, children: [
3515
3526
  (title || subtitle || showViewToggle) && /* @__PURE__ */ jsxRuntime.jsxs(
3516
3527
  "div",
@@ -3541,7 +3552,7 @@ function EventsWidget({
3541
3552
  borderRadius: "0.5rem"
3542
3553
  },
3543
3554
  children: [
3544
- /* @__PURE__ */ jsxRuntime.jsxs(
3555
+ views.includes("list") && /* @__PURE__ */ jsxRuntime.jsxs(
3545
3556
  "button",
3546
3557
  {
3547
3558
  onClick: () => setViewMode("list"),
@@ -3566,7 +3577,32 @@ function EventsWidget({
3566
3577
  ]
3567
3578
  }
3568
3579
  ),
3569
- /* @__PURE__ */ jsxRuntime.jsxs(
3580
+ views.includes("grid") && /* @__PURE__ */ jsxRuntime.jsxs(
3581
+ "button",
3582
+ {
3583
+ onClick: () => setViewMode("grid"),
3584
+ style: {
3585
+ display: "flex",
3586
+ alignItems: "center",
3587
+ gap: "0.5rem",
3588
+ padding: "0.5rem 1rem",
3589
+ border: "none",
3590
+ borderRadius: "0.375rem",
3591
+ background: viewMode === "grid" ? "#fff" : "transparent",
3592
+ color: viewMode === "grid" ? "#1f2937" : "#6b7280",
3593
+ fontWeight: 500,
3594
+ fontSize: "0.875rem",
3595
+ cursor: "pointer",
3596
+ boxShadow: viewMode === "grid" ? "0 1px 2px rgba(0,0,0,0.05)" : "none",
3597
+ transition: "all 150ms"
3598
+ },
3599
+ children: [
3600
+ /* @__PURE__ */ jsxRuntime.jsx(GridIcon, {}),
3601
+ "Grid"
3602
+ ]
3603
+ }
3604
+ ),
3605
+ views.includes("calendar") && /* @__PURE__ */ jsxRuntime.jsxs(
3570
3606
  "button",
3571
3607
  {
3572
3608
  onClick: () => setViewMode("calendar"),
@@ -3597,10 +3633,11 @@ function EventsWidget({
3597
3633
  ]
3598
3634
  }
3599
3635
  ),
3600
- viewMode === "list" ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `site-kit-events-list ${listClassName}`, children: [
3636
+ effectiveView === "list" ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `site-kit-events-list ${listClassName}`, children: [
3601
3637
  /* @__PURE__ */ jsxRuntime.jsx("div", { style: { display: "flex", flexDirection: "column", gap: "1rem" }, children: displayEvents.map((eventItem) => {
3602
3638
  const nextSchedule = eventItem.next_schedule || eventItem.schedules?.[0];
3603
3639
  const isFree = !eventItem.price || eventItem.price === 0;
3640
+ const imageUrl = eventItem.featured_image_url;
3604
3641
  return /* @__PURE__ */ jsxRuntime.jsxs(
3605
3642
  "div",
3606
3643
  {
@@ -3608,14 +3645,15 @@ function EventsWidget({
3608
3645
  onClick: () => nextSchedule && handleEventClick(eventItem, nextSchedule),
3609
3646
  style: {
3610
3647
  display: "flex",
3611
- flexDirection: "column",
3612
- gap: "0.75rem",
3613
- padding: "1.25rem",
3648
+ flexDirection: "row",
3649
+ gap: 0,
3650
+ padding: 0,
3614
3651
  background: "#fff",
3615
3652
  border: "1px solid #e5e7eb",
3616
3653
  borderRadius: "0.75rem",
3617
3654
  cursor: nextSchedule ? "pointer" : "default",
3618
- transition: "all 150ms"
3655
+ transition: "all 150ms",
3656
+ overflow: "hidden"
3619
3657
  },
3620
3658
  onMouseEnter: (e) => {
3621
3659
  if (nextSchedule) {
@@ -3628,38 +3666,160 @@ function EventsWidget({
3628
3666
  e.currentTarget.style.boxShadow = "none";
3629
3667
  },
3630
3668
  children: [
3631
- /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "flex-start", gap: "1rem" }, children: [
3632
- /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { flex: 1 }, children: [
3633
- /* @__PURE__ */ jsxRuntime.jsx("h3", { style: { margin: 0, fontSize: "1.125rem", fontWeight: 600, color: "#1f2937" }, children: eventItem.name }),
3634
- eventItem.short_description && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { margin: "0.5rem 0 0", color: "#6b7280", fontSize: "0.875rem", lineHeight: 1.5 }, children: eventItem.short_description })
3669
+ /* @__PURE__ */ jsxRuntime.jsx("div", { style: {
3670
+ width: "160px",
3671
+ minWidth: "160px",
3672
+ flexShrink: 0,
3673
+ background: "#f3f4f6"
3674
+ }, children: imageUrl ? /* @__PURE__ */ jsxRuntime.jsx(
3675
+ "img",
3676
+ {
3677
+ src: imageUrl,
3678
+ alt: eventItem.name,
3679
+ style: {
3680
+ width: "100%",
3681
+ height: "100%",
3682
+ minHeight: "120px",
3683
+ objectFit: "cover",
3684
+ display: "block"
3685
+ }
3686
+ }
3687
+ ) : /* @__PURE__ */ jsxRuntime.jsx("div", { style: {
3688
+ width: "100%",
3689
+ minHeight: "120px",
3690
+ display: "flex",
3691
+ alignItems: "center",
3692
+ justifyContent: "center",
3693
+ color: "#9ca3af"
3694
+ }, children: /* @__PURE__ */ jsxRuntime.jsx(CalendarIcon, {}) }) }),
3695
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { flex: 1, display: "flex", flexDirection: "column", gap: "0.75rem", padding: "1.25rem" }, children: [
3696
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "flex-start", gap: "1rem" }, children: [
3697
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { flex: 1 }, children: [
3698
+ /* @__PURE__ */ jsxRuntime.jsx("h3", { style: { margin: 0, fontSize: "1.125rem", fontWeight: 600, color: "#1f2937" }, children: eventItem.name }),
3699
+ eventItem.short_description && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { margin: "0.5rem 0 0", color: "#6b7280", fontSize: "0.875rem", lineHeight: 1.5 }, children: eventItem.short_description })
3700
+ ] }),
3701
+ eventItem.price_is_public && /* @__PURE__ */ jsxRuntime.jsx("div", { style: {
3702
+ padding: "0.375rem 0.75rem",
3703
+ background: isFree ? "#dcfce7" : "#dbeafe",
3704
+ color: isFree ? "#166534" : "#1e40af",
3705
+ borderRadius: "9999px",
3706
+ fontSize: "0.875rem",
3707
+ fontWeight: 600,
3708
+ whiteSpace: "nowrap"
3709
+ }, children: isFree ? "Free" : formatPrice(eventItem.price ?? 0, eventItem.currency) })
3710
+ ] }),
3711
+ nextSchedule && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", flexWrap: "wrap", gap: "1rem", fontSize: "0.875rem", color: "#6b7280" }, children: [
3712
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { style: { display: "flex", alignItems: "center", gap: "0.375rem" }, children: [
3713
+ /* @__PURE__ */ jsxRuntime.jsx(CalendarIcon, {}),
3714
+ formatDate(nextSchedule.starts_at)
3715
+ ] }),
3716
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { style: { display: "flex", alignItems: "center", gap: "0.375rem" }, children: [
3717
+ /* @__PURE__ */ jsxRuntime.jsx(ClockIcon, {}),
3718
+ formatTime(nextSchedule.starts_at)
3719
+ ] }),
3720
+ eventItem.location && /* @__PURE__ */ jsxRuntime.jsxs("span", { style: { display: "flex", alignItems: "center", gap: "0.375rem" }, children: [
3721
+ /* @__PURE__ */ jsxRuntime.jsx(LocationIcon, {}),
3722
+ eventItem.location
3723
+ ] }),
3724
+ nextSchedule.spots_remaining !== null && nextSchedule.spots_remaining !== void 0 && /* @__PURE__ */ jsxRuntime.jsx("span", { style: {
3725
+ color: nextSchedule.spots_remaining < 5 ? "#dc2626" : "#6b7280",
3726
+ fontWeight: nextSchedule.spots_remaining < 5 ? 500 : 400
3727
+ }, children: nextSchedule.spots_remaining === 0 ? "Sold Out" : `${nextSchedule.spots_remaining} spots left` })
3728
+ ] })
3729
+ ] })
3730
+ ]
3731
+ },
3732
+ eventItem.id
3733
+ );
3734
+ }) }),
3735
+ showViewAll && events.length > limit && /* @__PURE__ */ jsxRuntime.jsx("div", { style: { textAlign: "center", marginTop: "1.5rem" }, children: /* @__PURE__ */ jsxRuntime.jsx(
3736
+ "a",
3737
+ {
3738
+ href: viewAllUrl,
3739
+ style: {
3740
+ display: "inline-block",
3741
+ padding: "0.75rem 1.5rem",
3742
+ background: "#f3f4f6",
3743
+ color: "#1f2937",
3744
+ borderRadius: "0.5rem",
3745
+ textDecoration: "none",
3746
+ fontWeight: 500,
3747
+ fontSize: "0.875rem",
3748
+ transition: "all 150ms"
3749
+ },
3750
+ children: viewAllText
3751
+ }
3752
+ ) })
3753
+ ] }) : effectiveView === "grid" ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `site-kit-events-grid ${listClassName}`, children: [
3754
+ /* @__PURE__ */ jsxRuntime.jsx("div", { style: {
3755
+ display: "grid",
3756
+ gridTemplateColumns: "repeat(auto-fill, minmax(280px, 1fr))",
3757
+ gap: "1.25rem"
3758
+ }, children: displayEvents.map((eventItem) => {
3759
+ const nextSchedule = eventItem.next_schedule || eventItem.schedules?.[0];
3760
+ const isFree = !eventItem.price || eventItem.price === 0;
3761
+ const imageUrl = eventItem.featured_image_url;
3762
+ return /* @__PURE__ */ jsxRuntime.jsxs(
3763
+ "div",
3764
+ {
3765
+ className: `site-kit-event-card site-kit-event-card--grid ${eventCardClassName}`,
3766
+ onClick: () => nextSchedule && handleEventClick(eventItem, nextSchedule),
3767
+ style: {
3768
+ position: "relative",
3769
+ minHeight: "220px",
3770
+ borderRadius: "0.75rem",
3771
+ overflow: "hidden",
3772
+ cursor: nextSchedule ? "pointer" : "default",
3773
+ transition: "all 150ms",
3774
+ border: "1px solid #e5e7eb"
3775
+ },
3776
+ onMouseEnter: (e) => {
3777
+ if (nextSchedule) {
3778
+ e.currentTarget.style.boxShadow = "0 10px 25px -5px rgba(0, 0, 0, 0.15)";
3779
+ e.currentTarget.style.transform = "translateY(-2px)";
3780
+ }
3781
+ },
3782
+ onMouseLeave: (e) => {
3783
+ e.currentTarget.style.boxShadow = "none";
3784
+ e.currentTarget.style.transform = "none";
3785
+ },
3786
+ children: [
3787
+ /* @__PURE__ */ jsxRuntime.jsx("div", { style: {
3788
+ position: "absolute",
3789
+ inset: 0,
3790
+ background: imageUrl ? `linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.35) 45%, rgba(0,0,0,0.15) 70%), url(${imageUrl}) center/cover` : "linear-gradient(135deg, #4b5563 0%, #6b7280 100%)"
3791
+ } }),
3792
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { style: {
3793
+ position: "relative",
3794
+ height: "100%",
3795
+ display: "flex",
3796
+ flexDirection: "column",
3797
+ justifyContent: "flex-end",
3798
+ padding: "1.25rem",
3799
+ color: "#fff"
3800
+ }, children: [
3801
+ /* @__PURE__ */ jsxRuntime.jsx("h3", { style: { margin: 0, fontSize: "1.125rem", fontWeight: 600, color: "#fff", textShadow: "0 1px 2px rgba(0,0,0,0.5)" }, children: eventItem.name }),
3802
+ eventItem.short_description && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { margin: "0.25rem 0 0", fontSize: "0.8125rem", opacity: 0.95, lineHeight: 1.4, overflow: "hidden", textOverflow: "ellipsis", maxHeight: "2.8em" }, children: eventItem.short_description }),
3803
+ nextSchedule && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", flexWrap: "wrap", gap: "0.75rem", marginTop: "0.75rem", fontSize: "0.8125rem", opacity: 0.95 }, children: [
3804
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { style: { display: "flex", alignItems: "center", gap: "0.25rem" }, children: [
3805
+ /* @__PURE__ */ jsxRuntime.jsx(CalendarIcon, {}),
3806
+ formatDate(nextSchedule.starts_at)
3807
+ ] }),
3808
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { style: { display: "flex", alignItems: "center", gap: "0.25rem" }, children: [
3809
+ /* @__PURE__ */ jsxRuntime.jsx(ClockIcon, {}),
3810
+ formatTime(nextSchedule.starts_at)
3811
+ ] }),
3812
+ nextSchedule.spots_remaining !== null && nextSchedule.spots_remaining !== void 0 && /* @__PURE__ */ jsxRuntime.jsx("span", { children: nextSchedule.spots_remaining === 0 ? "Sold Out" : `${nextSchedule.spots_remaining} spots left` })
3635
3813
  ] }),
3636
3814
  eventItem.price_is_public && /* @__PURE__ */ jsxRuntime.jsx("div", { style: {
3637
- padding: "0.375rem 0.75rem",
3638
- background: isFree ? "#dcfce7" : "#dbeafe",
3639
- color: isFree ? "#166534" : "#1e40af",
3815
+ marginTop: "0.5rem",
3816
+ display: "inline-block",
3817
+ padding: "0.25rem 0.5rem",
3818
+ background: "rgba(255,255,255,0.2)",
3640
3819
  borderRadius: "9999px",
3641
3820
  fontSize: "0.875rem",
3642
- fontWeight: 600,
3643
- whiteSpace: "nowrap"
3821
+ fontWeight: 600
3644
3822
  }, children: isFree ? "Free" : formatPrice(eventItem.price ?? 0, eventItem.currency) })
3645
- ] }),
3646
- nextSchedule && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", flexWrap: "wrap", gap: "1rem", fontSize: "0.875rem", color: "#6b7280" }, children: [
3647
- /* @__PURE__ */ jsxRuntime.jsxs("span", { style: { display: "flex", alignItems: "center", gap: "0.375rem" }, children: [
3648
- /* @__PURE__ */ jsxRuntime.jsx(CalendarIcon, {}),
3649
- formatDate(nextSchedule.starts_at)
3650
- ] }),
3651
- /* @__PURE__ */ jsxRuntime.jsxs("span", { style: { display: "flex", alignItems: "center", gap: "0.375rem" }, children: [
3652
- /* @__PURE__ */ jsxRuntime.jsx(ClockIcon, {}),
3653
- formatTime(nextSchedule.starts_at)
3654
- ] }),
3655
- eventItem.location && /* @__PURE__ */ jsxRuntime.jsxs("span", { style: { display: "flex", alignItems: "center", gap: "0.375rem" }, children: [
3656
- /* @__PURE__ */ jsxRuntime.jsx(LocationIcon, {}),
3657
- eventItem.location
3658
- ] }),
3659
- nextSchedule.spots_remaining !== null && nextSchedule.spots_remaining !== void 0 && /* @__PURE__ */ jsxRuntime.jsx("span", { style: {
3660
- color: nextSchedule.spots_remaining < 5 ? "#dc2626" : "#6b7280",
3661
- fontWeight: nextSchedule.spots_remaining < 5 ? 500 : 400
3662
- }, children: nextSchedule.spots_remaining === 0 ? "Sold Out" : `${nextSchedule.spots_remaining} spots left` })
3663
3823
  ] })
3664
3824
  ]
3665
3825
  },
@@ -3760,5 +3920,5 @@ exports.getSpotsRemaining = getSpotsRemaining;
3760
3920
  exports.isEventSoldOut = isEventSoldOut;
3761
3921
  exports.registerForEvent = registerForEvent;
3762
3922
  exports.useEventModal = useEventModal;
3763
- //# sourceMappingURL=chunk-RM4XFDE6.js.map
3764
- //# sourceMappingURL=chunk-RM4XFDE6.js.map
3923
+ //# sourceMappingURL=chunk-WNCM4GNY.js.map
3924
+ //# sourceMappingURL=chunk-WNCM4GNY.js.map