@getmicdrop/venue-calendar 4.0.96 → 4.0.97

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 (80) hide show
  1. package/README.md +740 -740
  2. package/dist/CartView-C3CM_of4.js +2360 -0
  3. package/dist/CartView-C3CM_of4.js.map +1 -0
  4. package/dist/{Checkout-SGb68I5A.js → Checkout-C-M3GkqC.js} +337 -337
  5. package/dist/Checkout-C-M3GkqC.js.map +1 -0
  6. package/dist/{Checkout-DFEzsNwm.js → Checkout-DlwrJNFl.js} +3 -3
  7. package/dist/Checkout-DlwrJNFl.js.map +1 -0
  8. package/dist/{CheckoutTimer-BUlr4C7O.js → CheckoutTimer-BGpTXav2.js} +5 -5
  9. package/dist/CheckoutTimer-BGpTXav2.js.map +1 -0
  10. package/dist/{ClockIcon-CI96OiJj.js → ClockIcon-CbUBc37W.js} +2 -2
  11. package/dist/ClockIcon-CbUBc37W.js.map +1 -0
  12. package/dist/{CollectionView-kDS8R_bu.js → CollectionView-C8jLl4ZF.js} +40 -40
  13. package/dist/CollectionView-C8jLl4ZF.js.map +1 -0
  14. package/dist/{Event-DUViqNEG.js → Event-BIxmGbtN.js} +15 -11
  15. package/dist/Event-BIxmGbtN.js.map +1 -0
  16. package/dist/EventPage-CfFdjshw.js +566 -0
  17. package/dist/EventPage-CfFdjshw.js.map +1 -0
  18. package/dist/{Heading-DtOhaDMn.js → Heading-BftmeVf1.js} +2 -2
  19. package/dist/Heading-BftmeVf1.js.map +1 -0
  20. package/dist/ScarcityBadge-Cj7ihi0s.js +165 -0
  21. package/dist/ScarcityBadge-Cj7ihi0s.js.map +1 -0
  22. package/dist/{SeriesPage-BPDSiLWH.js → SeriesPage-LSLEq-VI.js} +7 -7
  23. package/dist/SeriesPage-LSLEq-VI.js.map +1 -0
  24. package/dist/{Spinner-BUWcjtbI.js → Spinner-D6pWJ-VV.js} +2 -2
  25. package/dist/Spinner-D6pWJ-VV.js.map +1 -0
  26. package/dist/{Success-6kCesfnC.js → Success-BwzdTBRN.js} +11 -7
  27. package/dist/Success-BwzdTBRN.js.map +1 -0
  28. package/dist/{Text-B5MZ6L1O.js → Text-DvAmz2c4.js} +2 -2
  29. package/dist/Text-DvAmz2c4.js.map +1 -0
  30. package/dist/{VenueCalendar-BRTDpyWV.js → VenueCalendar-ZIexgvtu.js} +2130 -2104
  31. package/dist/VenueCalendar-ZIexgvtu.js.map +1 -0
  32. package/dist/{ViewTicketsEmbed-BgIXGtz6.js → ViewTicketsEmbed-Ex-uXFdv.js} +80 -80
  33. package/dist/ViewTicketsEmbed-Ex-uXFdv.js.map +1 -0
  34. package/dist/api/api.cjs +1 -1
  35. package/dist/api/api.cjs.map +1 -1
  36. package/dist/api/api.mjs +74 -77
  37. package/dist/api/api.mjs.map +1 -1
  38. package/dist/api/types.d.ts +447 -447
  39. package/dist/{data-toggle-store.svelte-D3w7V3t9.js → data-toggle-store.svelte-CIisuuz8.js} +2 -2
  40. package/dist/data-toggle-store.svelte-CIisuuz8.js.map +1 -0
  41. package/dist/{labels-wyDolzF_.js → labels-CGPu9d2k.js} +48 -58
  42. package/dist/labels-CGPu9d2k.js.map +1 -0
  43. package/dist/{modalManager.svelte-DBBSS3Zi.js → modalManager.svelte-CDhdha2m.js} +2 -2
  44. package/dist/modalManager.svelte-CDhdha2m.js.map +1 -0
  45. package/dist/seo/seo.cjs.map +1 -1
  46. package/dist/seo/seo.mjs.map +1 -1
  47. package/dist/{transform-Bcl3riJb.js → transform-ati8Nk1h.js} +2 -2
  48. package/dist/transform-ati8Nk1h.js.map +1 -0
  49. package/dist/types/index.d.ts +454 -454
  50. package/dist/venue-calendar.css +1 -1
  51. package/dist/venue-calendar.es.js +10 -10
  52. package/dist/venue-calendar.iife.js +39 -39
  53. package/dist/venue-calendar.iife.js.map +1 -1
  54. package/dist/venue-calendar.umd.js +34 -34
  55. package/dist/venue-calendar.umd.js.map +1 -1
  56. package/package.json +179 -176
  57. package/src/lib/theme.js +222 -222
  58. package/dist/CartView-DC-YjxhJ.js +0 -2380
  59. package/dist/CartView-DC-YjxhJ.js.map +0 -1
  60. package/dist/Checkout-DFEzsNwm.js.map +0 -1
  61. package/dist/Checkout-SGb68I5A.js.map +0 -1
  62. package/dist/CheckoutTimer-BUlr4C7O.js.map +0 -1
  63. package/dist/ClockIcon-CI96OiJj.js.map +0 -1
  64. package/dist/CollectionView-kDS8R_bu.js.map +0 -1
  65. package/dist/Event-DUViqNEG.js.map +0 -1
  66. package/dist/EventPage-CbYWOehC.js +0 -575
  67. package/dist/EventPage-CbYWOehC.js.map +0 -1
  68. package/dist/Heading-DtOhaDMn.js.map +0 -1
  69. package/dist/ScarcityBadge-CBKc57di.js +0 -167
  70. package/dist/ScarcityBadge-CBKc57di.js.map +0 -1
  71. package/dist/SeriesPage-BPDSiLWH.js.map +0 -1
  72. package/dist/Spinner-BUWcjtbI.js.map +0 -1
  73. package/dist/Success-6kCesfnC.js.map +0 -1
  74. package/dist/Text-B5MZ6L1O.js.map +0 -1
  75. package/dist/VenueCalendar-BRTDpyWV.js.map +0 -1
  76. package/dist/ViewTicketsEmbed-BgIXGtz6.js.map +0 -1
  77. package/dist/data-toggle-store.svelte-D3w7V3t9.js.map +0 -1
  78. package/dist/labels-wyDolzF_.js.map +0 -1
  79. package/dist/modalManager.svelte-DBBSS3Zi.js.map +0 -1
  80. package/dist/transform-Bcl3riJb.js.map +0 -1
package/dist/api/api.mjs CHANGED
@@ -23,7 +23,7 @@ function c() {
23
23
  function dt() {
24
24
  return `${p.baseUrl}/api/public`;
25
25
  }
26
- function R() {
26
+ function A() {
27
27
  return `${p.baseUrl}/api/orders/v2/public`;
28
28
  }
29
29
  async function ft() {
@@ -55,7 +55,7 @@ async function Z(t, e, r) {
55
55
  async function C(t, e) {
56
56
  return F("GET", t, void 0, e);
57
57
  }
58
- async function f(t, e, r) {
58
+ async function m(t, e, r) {
59
59
  return F("POST", t, e, r);
60
60
  }
61
61
  async function mt(t, e, r) {
@@ -93,7 +93,7 @@ async function F(t, e, r, n) {
93
93
  ), { success: !1, error: o };
94
94
  }
95
95
  }
96
- async function A(t, e) {
96
+ async function P(t, e) {
97
97
  try {
98
98
  const r = await Z(
99
99
  t,
@@ -160,7 +160,7 @@ function Ce() {
160
160
  return !1;
161
161
  }
162
162
  }
163
- function Te() {
163
+ function Pe() {
164
164
  const t = typeof window < "u", e = Ce(), r = t ? window.location.search : "", n = (typeof document < "u" ? document.referrer : "") ?? "", a = t && e ? window.location.href : "";
165
165
  return {
166
166
  utm: $e(new URLSearchParams(r)),
@@ -168,15 +168,15 @@ function Te() {
168
168
  pageUrl: a || ""
169
169
  };
170
170
  }
171
- let Pe = !1;
172
- function Se() {
171
+ let Te = !1;
172
+ function Ie() {
173
173
  return typeof window < "u" && typeof window.__tcfapi == "function";
174
174
  }
175
- function Ie() {
176
- return Se();
175
+ function Se() {
176
+ return Ie();
177
177
  }
178
178
  function Ee() {
179
- return Ie() ? Pe : !0;
179
+ return Se() ? Te : !0;
180
180
  }
181
181
  const H = "micdrop_session_id", W = "micdrop_visitor_id", Re = /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
182
182
  function Ae(t) {
@@ -212,7 +212,7 @@ function xe() {
212
212
  return !t || !t.utm || typeof t.utm.utmSource != "string" ? null : t;
213
213
  }
214
214
  function U() {
215
- const e = xe() ?? Te();
215
+ const e = xe() ?? Pe();
216
216
  return {
217
217
  sessionId: De(),
218
218
  visitorId: Ne(),
@@ -228,8 +228,8 @@ fe("tracking");
228
228
  const d = $("VC");
229
229
  async function pt(t, e, r) {
230
230
  try {
231
- const n = await f(
232
- `${R()}/cart/${t}/payment-intent`,
231
+ const n = await m(
232
+ `${A()}/cart/${t}/payment-intent`,
233
233
  {
234
234
  productQuantities: e,
235
235
  ...r && Object.keys(r).length > 0 ? { donationAmounts: r } : {},
@@ -253,7 +253,7 @@ async function yt(t, e) {
253
253
  if (!t) return null;
254
254
  try {
255
255
  const r = await C(
256
- `${R()}/cart/${t}`
256
+ `${A()}/cart/${t}`
257
257
  );
258
258
  if (!r.success)
259
259
  return null;
@@ -278,7 +278,7 @@ async function gt(t, e, r) {
278
278
  const u = typeof o == "number" ? o : parseInt(o, 10);
279
279
  !Number.isNaN(u) && i > 0 && (a[u] = i);
280
280
  }
281
- const s = await fetch(`${R()}/cart/${t}`, {
281
+ const s = await fetch(`${A()}/cart/${t}`, {
282
282
  method: "PUT",
283
283
  headers: { "Content-Type": "application/json" },
284
284
  credentials: "include",
@@ -298,7 +298,7 @@ async function gt(t, e, r) {
298
298
  }
299
299
  async function vt(t) {
300
300
  try {
301
- const e = await f(
301
+ const e = await m(
302
302
  `${c()}/orders/complete/${t}`
303
303
  );
304
304
  return e.success ? {
@@ -314,7 +314,7 @@ async function vt(t) {
314
314
  }
315
315
  async function ht(t) {
316
316
  try {
317
- const e = await f(
317
+ const e = await m(
318
318
  `${c()}/orders/cancel/${t}`
319
319
  );
320
320
  return e.success ? {
@@ -330,7 +330,7 @@ async function ht(t) {
330
330
  }
331
331
  async function _t(t, e) {
332
332
  try {
333
- const r = await f(
333
+ const r = await m(
334
334
  `${c()}/orders/create`,
335
335
  // attribution (MISSION-TRUTH C2) rides on cart-create additively.
336
336
  { eventID: t, promoCode: e, attribution: U() }
@@ -341,11 +341,11 @@ async function _t(t, e) {
341
341
  }
342
342
  }
343
343
  async function wt(t) {
344
- return A(`${c()}/orders/${t}`);
344
+ return P(`${c()}/orders/${t}`);
345
345
  }
346
346
  async function kt(t, e) {
347
347
  try {
348
- const r = await f(`${R()}/validatePaymentIntent/${t}`, {
348
+ const r = await m(`${A()}/validatePaymentIntent/${t}`, {
349
349
  ...e,
350
350
  attribution: U()
351
351
  });
@@ -372,7 +372,7 @@ async function kt(t, e) {
372
372
  }
373
373
  async function bt(t) {
374
374
  try {
375
- const e = await f(`${c()}/orders/extend-session`, { orderUuid: t });
375
+ const e = await m(`${c()}/orders/extend-session`, { orderUuid: t });
376
376
  if (!e.success)
377
377
  return {
378
378
  success: !1,
@@ -414,7 +414,7 @@ async function $t(t) {
414
414
  }
415
415
  async function Ct(t = { eventID: "" }) {
416
416
  try {
417
- const e = await f(
417
+ const e = await m(
418
418
  `${c()}/orders/create`,
419
419
  // attribution (MISSION-TRUTH C2) rides on cart-create additively.
420
420
  { ...t, attribution: U() }
@@ -424,7 +424,7 @@ async function Ct(t = { eventID: "" }) {
424
424
  return d.error("initiateOrder error:", e), null;
425
425
  }
426
426
  }
427
- async function Tt(t) {
427
+ async function Pt(t) {
428
428
  if (typeof window > "u") return;
429
429
  const e = new URLSearchParams(window.location.search), r = te(e.get("utm_source")) || ee;
430
430
  try {
@@ -435,8 +435,8 @@ async function Tt(t) {
435
435
  d.error("UTM tracking failed:", n);
436
436
  }
437
437
  }
438
- const V = $("VC"), Oe = () => R();
439
- async function Pt(t, e) {
438
+ const V = $("VC"), Oe = () => A();
439
+ async function Tt(t, e) {
440
440
  try {
441
441
  if (!e || !e.trim())
442
442
  return { valid: !1, error: "Promo code is required" };
@@ -459,7 +459,7 @@ async function Pt(t, e) {
459
459
  return V.error("Error validating promo code:", r), { valid: !1, error: "Network error validating code" };
460
460
  }
461
461
  }
462
- async function St(t) {
462
+ async function It(t) {
463
463
  try {
464
464
  const e = await C(
465
465
  `/promo-codes/check/${t}`
@@ -469,9 +469,9 @@ async function St(t) {
469
469
  return V.error("Error checking promo codes availability:", e), !0;
470
470
  }
471
471
  }
472
- async function It(t, e) {
472
+ async function St(t, e) {
473
473
  try {
474
- const r = await f(
474
+ const r = await m(
475
475
  `${Oe()}/cart/${t}/apply-promo`,
476
476
  { promoCode: e }
477
477
  );
@@ -485,7 +485,7 @@ async function It(t, e) {
485
485
  }
486
486
  async function Et(t) {
487
487
  try {
488
- const e = await f(`/orders/${t}/remove-promo`);
488
+ const e = await m(`/orders/${t}/remove-promo`);
489
489
  return e.success ? { success: !0 } : {
490
490
  success: !1,
491
491
  error: e.error || "Failed to remove promo code"
@@ -519,7 +519,7 @@ function At(t) {
519
519
  function D(t, e) {
520
520
  return t.ok ? t.data : e;
521
521
  }
522
- const m = $("VC"), O = /* @__PURE__ */ new Map();
522
+ const f = $("VC"), O = /* @__PURE__ */ new Map();
523
523
  async function Ve(t, e = fetch, r) {
524
524
  const n = r ? `${t}:pw` : String(t);
525
525
  if (e === fetch) {
@@ -530,11 +530,11 @@ async function Ve(t, e = fetch, r) {
530
530
  try {
531
531
  const s = r ? `${c()}/events/${t}?password=${encodeURIComponent(r)}` : `${c()}/events/${t}`, o = await e(s);
532
532
  if (!o.ok)
533
- return o.status === 404 ? Q("event_not_found") : (m.error(`Failed to fetch event details: ${o.status}`), b("event_fetch_failed"));
533
+ return o.status === 404 ? Q("event_not_found") : (f.error(`Failed to fetch event details: ${o.status}`), b("event_fetch_failed"));
534
534
  const i = await o.json();
535
535
  return i ? ne(i) : Q("event_not_found");
536
536
  } catch (s) {
537
- return m.error("Error fetching event details:", s), b("event_fetch_failed");
537
+ return f.error("Error fetching event details:", s), b("event_fetch_failed");
538
538
  }
539
539
  })();
540
540
  return e === fetch && (O.set(n, a), a.finally(() => {
@@ -547,10 +547,10 @@ async function Dt(t, e = fetch, r) {
547
547
  }
548
548
  async function w(t, e, r = (n) => n) {
549
549
  try {
550
- const n = await A(t);
551
- return n ? ne(r(n)) : (m.error(`Failed to load (${e}): network or server error`), b(e));
550
+ const n = await P(t);
551
+ return n ? ne(r(n)) : (f.error(`Failed to load (${e}): network or server error`), b(e));
552
552
  } catch (n) {
553
- return m.error(`Error loading (${e}):`, n), b(e);
553
+ return f.error(`Error loading (${e}):`, n), b(e);
554
554
  }
555
555
  }
556
556
  function G(t) {
@@ -571,7 +571,7 @@ async function qe(t) {
571
571
  `${c()}/events/${t}/performers`,
572
572
  "performers_fetch_failed",
573
573
  (e) => Fe(e)
574
- ) : (m.warn("fetchEventPerformers called without eventId"), b("performers_missing_event_id"));
574
+ ) : (f.warn("fetchEventPerformers called without eventId"), b("performers_missing_event_id"));
575
575
  }
576
576
  async function Ut(t) {
577
577
  return D(await qe(t), {
@@ -584,7 +584,7 @@ async function Me(t) {
584
584
  `${c()}/venues/organization/${t}`,
585
585
  "venues_fetch_failed",
586
586
  G
587
- ) : (m.warn("fetchAllVenues called without orgId"), b("venues_missing_org_id"));
587
+ ) : (f.warn("fetchAllVenues called without orgId"), b("venues_missing_org_id"));
588
588
  }
589
589
  async function xt(t) {
590
590
  return D(await Me(t), []);
@@ -594,7 +594,7 @@ async function Ge(t) {
594
594
  `${c()}/events/venue/${t}`,
595
595
  "venue_events_fetch_failed",
596
596
  G
597
- ) : (m.warn("fetchVenueEvents called without venueId"), b("venue_events_missing_venue_id"));
597
+ ) : (f.warn("fetchVenueEvents called without venueId"), b("venue_events_missing_venue_id"));
598
598
  }
599
599
  async function Ot(t) {
600
600
  return D(await Ge(t), []);
@@ -644,7 +644,7 @@ async function qt(t, e) {
644
644
  }
645
645
  async function Mt(t, e) {
646
646
  try {
647
- const r = e ? `?slug=${encodeURIComponent(e)}` : "", n = await A(
647
+ const r = e ? `?slug=${encodeURIComponent(e)}` : "", n = await P(
648
648
  `${c()}/resolve/${encodeURIComponent(String(t))}${r}`
649
649
  );
650
650
  if (!n || !n.type)
@@ -654,12 +654,12 @@ async function Mt(t, e) {
654
654
  );
655
655
  return n;
656
656
  } catch (r) {
657
- return m.error("Error resolving public entity:", r), null;
657
+ return f.error("Error resolving public entity:", r), null;
658
658
  }
659
659
  }
660
660
  async function Gt(t) {
661
661
  try {
662
- const e = await A(
662
+ const e = await P(
663
663
  `${c()}/series/${t}/page`
664
664
  );
665
665
  if (!e)
@@ -669,12 +669,12 @@ async function Gt(t) {
669
669
  );
670
670
  return e;
671
671
  } catch (e) {
672
- return m.error("Error fetching series page:", e), null;
672
+ return f.error("Error fetching series page:", e), null;
673
673
  }
674
674
  }
675
675
  async function jt(t, e) {
676
676
  try {
677
- const r = e ? `${c()}/collections/${t}?password=${encodeURIComponent(e)}` : `${c()}/collections/${t}`, n = await A(r);
677
+ const r = e ? `${c()}/collections/${t}?password=${encodeURIComponent(e)}` : `${c()}/collections/${t}`, n = await P(r);
678
678
  if (!n)
679
679
  throw new N(
680
680
  "Failed to fetch collection",
@@ -682,30 +682,27 @@ async function jt(t, e) {
682
682
  );
683
683
  return n;
684
684
  } catch (r) {
685
- return m.error("Error fetching collection:", r), null;
685
+ return f.error("Error fetching collection:", r), null;
686
686
  }
687
687
  }
688
688
  async function zt(t, e) {
689
689
  try {
690
690
  const r = encodeURIComponent(e);
691
- return (await A(
691
+ return (await P(
692
692
  `${c()}/collections/${t}/check-password/${r}`
693
693
  ))?.valid === !0;
694
694
  } catch (r) {
695
- return m.error("Error checking collection password:", r), !1;
695
+ return f.error("Error checking collection password:", r), !1;
696
696
  }
697
697
  }
698
698
  async function Bt(t, e) {
699
699
  try {
700
- const r = await f(
701
- `${c()}/events/${t}/check-password`,
702
- { password: e }
700
+ const r = encodeURIComponent(e), n = await P(
701
+ `${c()}/events/${t}/check-password/${r}`
703
702
  );
704
- if (!r.success) return { valid: !1 };
705
- const n = r.data;
706
- return typeof n == "boolean" ? { valid: n } : { valid: n.valid === !0 };
703
+ return typeof n == "boolean" ? { valid: n } : { valid: n?.valid === !0 };
707
704
  } catch (r) {
708
- return m.error("Error checking event password:", r), { valid: !1 };
705
+ return f.error("Error checking event password:", r), { valid: !1 };
709
706
  }
710
707
  }
711
708
  async function Ht(t, e) {
@@ -715,18 +712,18 @@ async function Ht(t, e) {
715
712
  method: "HEAD"
716
713
  })).ok;
717
714
  } catch (r) {
718
- return m.error("Network connection test failed:", r), !1;
715
+ return f.error("Network connection test failed:", r), !1;
719
716
  }
720
717
  }
721
- const E = $("VC");
718
+ const R = $("VC");
722
719
  async function We(t) {
723
720
  try {
724
721
  if (!t)
725
- return E.warn("getVenue called without venueId"), null;
722
+ return R.warn("getVenue called without venueId"), null;
726
723
  const e = await C(`/venues/${t}`);
727
- return e.success ? e.data ?? null : (E.error(`Failed to fetch venue: ${e.statusCode}`), null);
724
+ return e.success ? e.data ?? null : (R.error(`Failed to fetch venue: ${e.statusCode}`), null);
728
725
  } catch (e) {
729
- return E.error("Error fetching venue:", e), null;
726
+ return R.error("Error fetching venue:", e), null;
730
727
  }
731
728
  }
732
729
  async function Wt(t) {
@@ -740,11 +737,11 @@ async function Wt(t) {
740
737
  async function Qt(t) {
741
738
  try {
742
739
  if (!t)
743
- return E.warn("getVenueBySlug called without slug"), null;
740
+ return R.warn("getVenueBySlug called without slug"), null;
744
741
  const e = encodeURIComponent(t), r = await C(`/venues/slug/${e}`);
745
- return r.success ? r.data ?? null : (E.error(`Failed to fetch venue by slug: ${r.statusCode}`), null);
742
+ return r.success ? r.data ?? null : (R.error(`Failed to fetch venue by slug: ${r.statusCode}`), null);
746
743
  } catch (e) {
747
- return E.error("Error fetching venue by slug:", e), null;
744
+ return R.error("Error fetching venue by slug:", e), null;
748
745
  }
749
746
  }
750
747
  function Qe(t) {
@@ -760,10 +757,10 @@ function Qe(t) {
760
757
  requiresStripe: s
761
758
  };
762
759
  }
763
- const h = $("VC"), Je = "https://get-micdrop.com", Ye = `${Je}/api/orders/v2`, j = () => R();
760
+ const h = $("VC"), Je = "https://get-micdrop.com", Ye = `${Je}/api/orders/v2`, j = () => A();
764
761
  async function Jt(t) {
765
762
  try {
766
- const e = await f(
763
+ const e = await m(
767
764
  `${Ye}/gift-cards`,
768
765
  t
769
766
  );
@@ -779,7 +776,7 @@ async function Jt(t) {
779
776
  }
780
777
  async function Yt(t, e) {
781
778
  try {
782
- const r = await f(
779
+ const r = await m(
783
780
  `${j()}/cart/${t}/apply-gift-card`,
784
781
  { giftCardCode: e }
785
782
  );
@@ -816,7 +813,7 @@ async function Kt(t, e) {
816
813
  }
817
814
  async function Zt(t, e) {
818
815
  try {
819
- const r = await f(`${j()}/cart/${t}/complete-gift-card-payment`, {
816
+ const r = await m(`${j()}/cart/${t}/complete-gift-card-payment`, {
820
817
  firstName: e.firstName,
821
818
  lastName: e.lastName,
822
819
  email: e.email,
@@ -852,7 +849,7 @@ async function Xt(t, e, r = null, n = !1) {
852
849
  try {
853
850
  const a = { email: e };
854
851
  r && n && (a.phone = r, a.smsOptIn = !0);
855
- const s = await f(
852
+ const s = await m(
856
853
  `/events/${t}/waitlist`,
857
854
  a
858
855
  );
@@ -915,9 +912,9 @@ function tr(t, e, r = {}) {
915
912
  };
916
913
  let y = !1, k = !0, g = !0, v = null;
917
914
  for (const l of T) {
918
- const P = l.salesBegin || l.salesStart || l.saleBegin || l.onSaleStart, x = l.salesEnd || l.saleEnd || l.onSaleEnd, S = l.remainingCapacity ?? l.quantityRemaining ?? l.quantity, _ = l.soldOut || S != null && S <= 0, I = P ? new Date(P) > o : !1, z = x ? new Date(x) < o : !1;
919
- if (!_ && !I && !z && (y = !0), _ || (k = !1), I || (g = !1), I && P && !_ && !z) {
920
- const B = new Date(P);
915
+ const I = l.salesBegin || l.salesStart || l.saleBegin || l.onSaleStart, x = l.salesEnd || l.saleEnd || l.onSaleEnd, S = l.remainingCapacity ?? l.quantityRemaining ?? l.quantity, _ = l.soldOut || S != null && S <= 0, E = I ? new Date(I) > o : !1, z = x ? new Date(x) < o : !1;
916
+ if (!_ && !E && !z && (y = !0), _ || (k = !1), E || (g = !1), E && I && !_ && !z) {
917
+ const B = new Date(I);
921
918
  (!v || B < v) && (v = B);
922
919
  }
923
920
  }
@@ -934,13 +931,13 @@ function tr(t, e, r = {}) {
934
931
  disabled: !1,
935
932
  reason: "hidden_only"
936
933
  };
937
- const l = v.getTime() - o.getTime(), P = l / (1e3 * 60 * 60), x = l / (1e3 * 60 * 60 * 24), S = (I) => L(
938
- I,
934
+ const l = v.getTime() - o.getTime(), I = l / (1e3 * 60 * 60), x = l / (1e3 * 60 * 60 * 24), S = (E) => L(
935
+ E,
939
936
  { hour: "numeric", minute: "2-digit", hour12: !0 },
940
937
  "en-US"
941
938
  );
942
939
  let _;
943
- return P < 24 ? _ = S(v) : x <= 7 ? _ = L(
940
+ return I < 24 ? _ = S(v) : x <= 7 ? _ = L(
944
941
  v,
945
942
  { weekday: "short", hour: "numeric", minute: "2-digit", hour12: !0 },
946
943
  "en-US"
@@ -1188,10 +1185,10 @@ function lr(t) {
1188
1185
  export {
1189
1186
  he as apiDelete,
1190
1187
  C as apiGet,
1191
- f as apiPost,
1188
+ m as apiPost,
1192
1189
  mt as apiPut,
1193
1190
  Yt as applyGiftCard,
1194
- It as applyPromoCode,
1191
+ St as applyPromoCode,
1195
1192
  et as calculateCtaState,
1196
1193
  ht as cancelReservation,
1197
1194
  zt as checkCollectionPassword,
@@ -1231,7 +1228,7 @@ export {
1231
1228
  Ft as getMonthEvents,
1232
1229
  je as getMonthEventsResult,
1233
1230
  wt as getOrder,
1234
- R as getOrdersV2Url,
1231
+ A as getOrdersV2Url,
1235
1232
  Vt as getOrgMonthEvents,
1236
1233
  ze as getOrgMonthEventsResult,
1237
1234
  c as getPublicBaseUrl,
@@ -1242,7 +1239,7 @@ export {
1242
1239
  Qt as getVenueBySlug,
1243
1240
  Wt as getVenueFees,
1244
1241
  er as getWaitlistStatus,
1245
- St as hasPromoCodes,
1242
+ It as hasPromoCodes,
1246
1243
  Ct as initiateOrder,
1247
1244
  At as isErr,
1248
1245
  Rt as isOk,
@@ -1252,7 +1249,7 @@ export {
1252
1249
  Et as removePromoCode,
1253
1250
  Mt as resolvePublicEntity,
1254
1251
  Ht as testNetworkConnection,
1255
- Tt as trackUTMSource,
1252
+ Pt as trackUTMSource,
1256
1253
  sr as transformAvailableTicket,
1257
1254
  or as transformEvent,
1258
1255
  ir as transformEventData,
@@ -1263,6 +1260,6 @@ export {
1263
1260
  D as unwrapOr,
1264
1261
  gt as updateCartQuantities,
1265
1262
  kt as validatePaymentIntent,
1266
- Pt as validatePromoCode
1263
+ Tt as validatePromoCode
1267
1264
  };
1268
1265
  //# sourceMappingURL=api.mjs.map