@getmicdrop/venue-calendar 4.2.3 → 4.2.5

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 (102) hide show
  1. package/dist/{ArrowLeftIcon-CxZXP_IT.js → ArrowLeftIcon-BxKUPFOE.js} +1 -1
  2. package/dist/{Badge-Bv_MT-Vt.js → Badge-M6qZyfTF.js} +9 -10
  3. package/dist/BlockPlaceholder-CLdS2Y-c.js +62 -0
  4. package/dist/{Calendar-BKefLfIt.js → Calendar-DwNhbEQY.js} +290 -292
  5. package/dist/CalendarFoundryView-BX5mT6NY.js +23561 -0
  6. package/dist/{CalendarIcon-CLGR_zlO.js → CalendarIcon-jLckZ_4N.js} +1 -1
  7. package/dist/{CartView-CHFlfWS9.js → CartView-B61KRyFq.js} +644 -651
  8. package/dist/Checkout-CoExiUba.js +1809 -0
  9. package/dist/{Checkout-C-A4t1eE.js → Checkout-DlQ2x3L6.js} +97 -97
  10. package/dist/{CheckoutTimer-d3KUbevy.js → CheckoutTimer-Cv9iQj2d.js} +5 -5
  11. package/dist/{ChevronDownIcon-YtBeSqjf.js → ChevronDownIcon-DiZxxS3e.js} +1 -1
  12. package/dist/{ClockIcon-a9tJQ5El.js → ClockIcon-BrWavNGl.js} +1 -1
  13. package/dist/{CloseIcon-DSURK5co.js → CloseIcon-Cmddp2PA.js} +1 -1
  14. package/dist/{CollectionView-BiBMllyw.js → CollectionView-DpkF55yD.js} +12 -13
  15. package/dist/Event-CzNN2jRR.js +3040 -0
  16. package/dist/{EventPage-C7K2yA4v.js → EventPage-DnKNNWk8.js} +167 -168
  17. package/dist/{Heading-Dfo3bjyn.js → Heading-B7VYbbfJ.js} +3 -4
  18. package/dist/Image-DBJAfLYe.js +81 -0
  19. package/dist/{phoneUtils-FnBDCqO0.js → Input-DsWjpYtc.js} +1132 -694
  20. package/dist/{MailIcon-DIrQpcGo.js → MailIcon-gpZMGdBK.js} +1 -1
  21. package/dist/{Modal-DrA1swbF.js → Modal-D4AUdrz8.js} +2 -2
  22. package/dist/{ModalFooter-r1NQNG9P.js → ModalFooter-8Di4-qKC.js} +57 -59
  23. package/dist/{PasswordInput-DB4qa7kS.js → PasswordInput-Buk60yEf.js} +4 -4
  24. package/dist/{ScarcityBadge-BJOm7_Ho.js → ScarcityBadge-DgrS89hq.js} +4 -4
  25. package/dist/{SeriesPage-JVmqUSax.js → SeriesPage-BCovOJ6a.js} +5 -5
  26. package/dist/{Spinner-BwiDys7C.js → Spinner-ChTN7t75.js} +3 -3
  27. package/dist/{Success-DAE6gPZM.js → Success-BRufJqwQ.js} +80 -81
  28. package/dist/{TagIcon-CrTNd8qE.js → TagIcon-C0uTQgU8.js} +1 -1
  29. package/dist/{ViewTicketsEmbed-Zx-mvP2p.js → ViewTicketsEmbed-CfagtvVL.js} +66 -67
  30. package/dist/{WarningCircleIcon-C5-op3Cy.js → WarningCircleIcon-B2hkUrvV.js} +1 -1
  31. package/dist/{WarningTriIcon-BxIQn7c2.js → WarningTriIcon-Boy4IW6-.js} +1 -1
  32. package/dist/{__SKIP_PATHS__-DyyiXBgB.js → __SKIP_PATHS__-DPK-YB-V.js} +1 -1
  33. package/dist/{href-C8WGnROy.js → allowlist-Cu2kP6jt.js} +4 -21
  34. package/dist/api/api.cjs +1 -1
  35. package/dist/api/api.mjs +182 -165
  36. package/dist/api/client.d.ts +16 -0
  37. package/dist/api/events.d.ts +21 -2
  38. package/dist/api/types.d.ts +17 -0
  39. package/dist/{browser-Um8Y6K99.js → browser-25hnscei.js} +7 -7
  40. package/dist/cancel-gqtaw6SK.js +59 -0
  41. package/dist/{colors-MuuDk6KF.js → colors-B9hMXv8l.js} +118 -108
  42. package/dist/{constants-CqrJv6nM.js → constants-DBwdjnEU.js} +77 -74
  43. package/dist/{copyToClipboard-CTS9Wtmo.js → copyToClipboard-BDa2_uNf.js} +1 -1
  44. package/dist/{createI18n-DBUVdZra.js → createI18n-08XGDh1_.js} +1 -1
  45. package/dist/{event-BrptLro8.js → event-Cp5D4ctZ.js} +1 -1
  46. package/dist/{event-transform-jFmHl0Qp.js → event-transform-BFJTgtU9.js} +4 -4
  47. package/dist/{eventStatusStream-D04pcbuu.js → eventStatusStream-SyvhRCtk.js} +6 -6
  48. package/dist/{i18n-CcJmTGJP.js → i18n-4ZGOM8hY.js} +11 -11
  49. package/dist/{labels-Q4CaHsVM.js → labels-99RC9gAv.js} +1 -1
  50. package/dist/{modalManager.svelte-qcVxl7C5.js → modalManager.svelte-BdNsCq6n.js} +2 -2
  51. package/dist/{order-totals-BImtvmoh.js → order-totals-CQ0V7Fdc.js} +13 -15
  52. package/dist/{orders-C8kt6c-E.js → orders-oRqSQXSf.js} +209 -199
  53. package/dist/{pixels-MEc7WYiV.js → pixels-DycN_8bu.js} +7 -8
  54. package/dist/{promo-DtLZRskK.js → promo-BrMcoTYh.js} +3 -3
  55. package/dist/{serverTotals-BO126TTd.js → serverTotals-CpRaEe9K.js} +1 -1
  56. package/dist/{shareCopyFeedback.svelte-Dko8NIbm.js → shareCopyFeedback.svelte-D314p5oA.js} +25 -25
  57. package/dist/{showcase-state-options-BoJxiEsg.js → showcase-state-options-B2XfybZq.js} +1 -1
  58. package/dist/timezones-Cq1mLtfM.js +4170 -0
  59. package/dist/{to-event-card-props-BAHzloEA.js → to-event-card-props-BNBWYYPo.js} +23 -24
  60. package/dist/{utils-Ts4-U13Y.js → utils-CrlClQxc.js} +30 -30
  61. package/dist/venue-calendar.css +1 -1
  62. package/dist/venue-calendar.es.js +1292 -1154
  63. package/dist/venue-calendar.iife.js +63 -64
  64. package/dist/venue-calendar.umd.js +59 -60
  65. package/package.json +220 -220
  66. package/dist/BlockPlaceholder-HZ6Coko5.js +0 -52
  67. package/dist/Button-C4uFgl7L.js +0 -2141
  68. package/dist/CalendarFoundryView-tDmFCrJ3.js +0 -22292
  69. package/dist/Checkout-CRX7dcRr.js +0 -1807
  70. package/dist/CloseOutline-qpVa62mu.js +0 -13
  71. package/dist/CropImage-B0tj2_uN.js +0 -404
  72. package/dist/Event-1ZJVzqFN.js +0 -3034
  73. package/dist/Image-B3cEndLZ.js +0 -87
  74. package/dist/Input-DkYIFK4J.js +0 -487
  75. package/dist/imageOptimizer-CB3wKJU8.js +0 -47
  76. package/dist/sortable.esm--ZtTTTPp.js +0 -1451
  77. package/dist/timezones-C5l0SSHK.js +0 -2030
  78. package/dist/z-index-B0Vk_Mp1.js +0 -27
  79. /package/dist/locales/{4.2.3 → 4.2.5}/flow/de.js +0 -0
  80. /package/dist/locales/{4.2.3 → 4.2.5}/flow/es.js +0 -0
  81. /package/dist/locales/{4.2.3 → 4.2.5}/flow/fr.js +0 -0
  82. /package/dist/locales/{4.2.3 → 4.2.5}/flow/id.js +0 -0
  83. /package/dist/locales/{4.2.3 → 4.2.5}/flow/it.js +0 -0
  84. /package/dist/locales/{4.2.3 → 4.2.5}/flow/ja.js +0 -0
  85. /package/dist/locales/{4.2.3 → 4.2.5}/flow/ko.js +0 -0
  86. /package/dist/locales/{4.2.3 → 4.2.5}/flow/nl.js +0 -0
  87. /package/dist/locales/{4.2.3 → 4.2.5}/flow/pl.js +0 -0
  88. /package/dist/locales/{4.2.3 → 4.2.5}/flow/pt-br.js +0 -0
  89. /package/dist/locales/{4.2.3 → 4.2.5}/flow/tr.js +0 -0
  90. /package/dist/locales/{4.2.3 → 4.2.5}/flow/zh.js +0 -0
  91. /package/dist/locales/{4.2.3 → 4.2.5}/main/de.js +0 -0
  92. /package/dist/locales/{4.2.3 → 4.2.5}/main/es.js +0 -0
  93. /package/dist/locales/{4.2.3 → 4.2.5}/main/fr.js +0 -0
  94. /package/dist/locales/{4.2.3 → 4.2.5}/main/id.js +0 -0
  95. /package/dist/locales/{4.2.3 → 4.2.5}/main/it.js +0 -0
  96. /package/dist/locales/{4.2.3 → 4.2.5}/main/ja.js +0 -0
  97. /package/dist/locales/{4.2.3 → 4.2.5}/main/ko.js +0 -0
  98. /package/dist/locales/{4.2.3 → 4.2.5}/main/nl.js +0 -0
  99. /package/dist/locales/{4.2.3 → 4.2.5}/main/pl.js +0 -0
  100. /package/dist/locales/{4.2.3 → 4.2.5}/main/pt-br.js +0 -0
  101. /package/dist/locales/{4.2.3 → 4.2.5}/main/tr.js +0 -0
  102. /package/dist/locales/{4.2.3 → 4.2.5}/main/zh.js +0 -0
@@ -1,7 +1,6 @@
1
- import { x as e } from "./Button-C4uFgl7L.js";
2
- import { E as t, F as n, O as r, c as i, g as a, h as o, m as s, s as c, w as l, y as u } from "./timezones-C5l0SSHK.js";
3
- import { T as d } from "./constants-CqrJv6nM.js";
4
- import { A as f, D as p, E as m, M as h, O as g, h as ee, j as _ } from "./orders-C8kt6c-E.js";
1
+ import { E as e, G as t, I as n, P as r, R as i, T as a, _ as o, k as s, tt as c, v as l, w as u } from "./timezones-Cq1mLtfM.js";
2
+ import { T as d } from "./constants-DBwdjnEU.js";
3
+ import { D as f, E as p, M as m, O as h, P as g, h as ee, j as _ } from "./orders-oRqSQXSf.js";
5
4
  //#region node_modules/@getmicdrop/svelte-components/dist/transforms/ticket.js
6
5
  var v = {
7
6
  EVERYWHERE: 0,
@@ -18,14 +17,14 @@ function b(e) {
18
17
  function x(e, t) {
19
18
  return e.totalCapacity ?? e.quantity ?? t;
20
19
  }
21
- function te(e) {
22
- let n = t(), r = o(e.effectiveSalesBegin, e.salesBegin, e.saleStartDate) ?? null, i = o(e.effectiveSalesEnd, e.salesEnd, e.saleEndDate) ?? null, c = u(r), l = u(i);
23
- if (!a(r) && !c) return "scheduled";
24
- if (!a(i) && !l) return "sales_ended";
25
- if (c && s(n, c) < 0) return "scheduled";
26
- if (l && s(n, l) > 0) return "sales_ended";
27
- if (e.soldOut === !0) return "sold_out";
28
- let d = b(e), f = x(e, d);
20
+ function te(t) {
21
+ let r = n(), i = a(t.effectiveSalesBegin, t.salesBegin, t.saleStartDate) ?? null, o = a(t.effectiveSalesEnd, t.salesEnd, t.saleEndDate) ?? null, c = s(i), l = s(o);
22
+ if (!e(i) && !c) return "scheduled";
23
+ if (!e(o) && !l) return "sales_ended";
24
+ if (c && u(r, c) < 0) return "scheduled";
25
+ if (l && u(r, l) > 0) return "sales_ended";
26
+ if (t.soldOut === !0) return "sold_out";
27
+ let d = b(t), f = x(t, d);
29
28
  return d === 0 ? "sold_out" : f > 0 && d / f < .1 ? "low" : "on_sale";
30
29
  }
31
30
  function ne(e, t = {}) {
@@ -33,7 +32,7 @@ function ne(e, t = {}) {
33
32
  let n = e;
34
33
  return t.excludeDoorOnly && (n = n.filter((e) => e.salesChannel !== v.BOX_OFFICE_ONLY)), t.publicOnly && (n = n.filter((e) => e.visibility === y.VISIBLE)), n;
35
34
  }
36
- function re(e) {
35
+ function S(e) {
37
36
  if (!Array.isArray(e) || e.length === 0) return {
38
37
  totalRemaining: 0,
39
38
  totalCapacity: 0,
@@ -50,29 +49,29 @@ function re(e) {
50
49
  isSoldOut: t === 0
51
50
  };
52
51
  }
53
- function ie(e) {
52
+ function re(e) {
54
53
  if (!Array.isArray(e) || e.length === 0) return 0;
55
54
  let t = e.map((e) => Number(e.price ?? e.ticketPrice)).filter((e) => Number.isFinite(e) && e > 0);
56
55
  return t.length > 0 ? Math.min(...t) : 0;
57
56
  }
58
57
  //#endregion
59
58
  //#region node_modules/@getmicdrop/svelte-components/dist/transforms/event.js
60
- function ae(e) {
59
+ function ie(e) {
61
60
  return e.availableTickets || e.available_tickets || e.tickets || [];
62
61
  }
63
- function S(e) {
64
- if (!e || !(e.isHidden === !0 || typeof e.visibility == "number" && e.visibility >= y.PROMO_ONLY) || e.salesChannel === v.BOX_OFFICE_ONLY) return !1;
65
- let n = t(), r = o(e.effectiveSalesBegin, e.salesBegin, e.salesStart, e.saleBegin, e.onSaleStart, e.saleStartDate), i = o(e.effectiveSalesEnd, e.salesEnd, e.saleEnd, e.onSaleEnd, e.saleEndDate), c = u(r), l = u(i);
66
- if (!a(r) && !c || !a(i) && !l || c && s(c, n) > 0 || l && s(l, n) < 0) return !1;
67
- let d = e.remainingCapacity ?? e.quantityRemaining ?? e.quantity;
68
- return !(e.soldOut || d != null && d <= 0);
62
+ function C(t) {
63
+ if (!t || !(t.isHidden === !0 || typeof t.visibility == "number" && t.visibility >= y.PROMO_ONLY) || t.salesChannel === v.BOX_OFFICE_ONLY) return !1;
64
+ let r = n(), i = a(t.effectiveSalesBegin, t.salesBegin, t.salesStart, t.saleBegin, t.onSaleStart, t.saleStartDate), o = a(t.effectiveSalesEnd, t.salesEnd, t.saleEnd, t.onSaleEnd, t.saleEndDate), c = s(i), l = s(o);
65
+ if (!e(i) && !c || !e(o) && !l || c && u(c, r) > 0 || l && u(l, r) < 0) return !1;
66
+ let d = t.remainingCapacity ?? t.quantityRemaining ?? t.quantity;
67
+ return !(t.soldOut || d != null && d <= 0);
69
68
  }
70
- function oe(e) {
71
- return e ? e.hasHiddenTickets === !0 || ae(e).some(S) : !1;
69
+ function w(e) {
70
+ return e ? e.hasHiddenTickets === !0 || ie(e).some(C) : !1;
72
71
  }
73
72
  //#endregion
74
73
  //#region node_modules/@getmicdrop/svelte-components/dist/errors/classes/NotFoundError.js
75
- var C = class extends l {
74
+ var T = class extends r {
76
75
  constructor(e, t) {
77
76
  let n = t ? `${e} with ID ${t} not found` : `${e} not found`;
78
77
  super(n, "NOT_FOUND", {
@@ -85,16 +84,16 @@ var C = class extends l {
85
84
  }), this.name = "NotFoundError", this.resourceType = e, this.resourceId = t;
86
85
  }
87
86
  getUserMessage(e) {
88
- return i(e)?.fromCode?.(this.code) || c(this.resourceType.toLowerCase());
87
+ return l(e)?.fromCode?.(this.code) || o(this.resourceType.toLowerCase());
89
88
  }
90
- }, w = e("VC");
91
- async function se(e, t) {
89
+ }, E = c("VC");
90
+ async function ae(e, t) {
92
91
  try {
93
92
  if (!t || !t.trim()) return {
94
93
  valid: !1,
95
94
  error: "Promo code is required"
96
95
  };
97
- let n = encodeURIComponent(t.trim()), r = await p(`/promo-codes/validate/${e}/${n}`);
96
+ let n = encodeURIComponent(t.trim()), r = await f(`/promo-codes/validate/${e}/${n}`);
98
97
  if (!r.success) return r.statusCode === 404 ? {
99
98
  valid: !1,
100
99
  error: "Invalid promo code"
@@ -115,31 +114,31 @@ async function se(e, t) {
115
114
  applyToTicketIds: i.applyToTicketIds
116
115
  };
117
116
  } catch (e) {
118
- return w.error("Error validating promo code:", e), {
117
+ return E.error("Error validating promo code:", e), {
119
118
  valid: !1,
120
119
  error: "Network error validating code"
121
120
  };
122
121
  }
123
122
  }
124
- async function ce(e) {
123
+ async function oe(e) {
125
124
  try {
126
- let t = await p(`/promo-codes/check/${e}`);
125
+ let t = await f(`/promo-codes/check/${e}`);
127
126
  return !t.success || t.data.hasPromoCodes === !0;
128
127
  } catch (e) {
129
- return w.error("Error checking promo codes availability:", e), !0;
128
+ return E.error("Error checking promo codes availability:", e), !0;
130
129
  }
131
130
  }
132
- async function T(e, t, n) {
131
+ async function se(e, t, n) {
133
132
  try {
134
133
  let r = { promoCode: t };
135
134
  n && Object.keys(n).length > 0 && (r.productQuantities = n);
136
- let i = await g(`${f()}/cart/${e}/apply-promo`, r);
135
+ let i = await h(`${_()}/cart/${e}/apply-promo`, r);
137
136
  return i.success ? { success: !0 } : {
138
137
  success: !1,
139
138
  error: i.error || "Failed to apply promo code"
140
139
  };
141
140
  } catch (e) {
142
- return w.error("Error applying promo code:", e), {
141
+ return E.error("Error applying promo code:", e), {
143
142
  success: !1,
144
143
  error: "Network error applying code"
145
144
  };
@@ -147,65 +146,65 @@ async function T(e, t, n) {
147
146
  }
148
147
  //#endregion
149
148
  //#region src/lib/api/result.ts
150
- function E(e) {
149
+ function D(e) {
151
150
  return {
152
151
  ok: !0,
153
152
  data: e
154
153
  };
155
154
  }
156
- function D(e) {
155
+ function O(e) {
157
156
  return {
158
157
  ok: !1,
159
158
  error: e
160
159
  };
161
160
  }
162
- function O(e) {
161
+ function k(e) {
163
162
  return {
164
163
  ok: !1,
165
164
  error: e,
166
165
  notFound: !0
167
166
  };
168
167
  }
169
- function k(e, t) {
168
+ function A(e, t) {
170
169
  return e.ok ? e.data : t;
171
170
  }
172
171
  //#endregion
173
172
  //#region src/lib/api/route-manifest.ts
174
- var A = "/api/v2/public", j = "/api/orders/v2/public", M = "/api/orders/v2", N = "00000000-0000-0000-0000-000000000000";
175
- `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}`, `${A}`, `${A}`, `${A}`, `${A}`, `${A}`, `${A}${N}`, `${j}`, `${j}`, `${j}`, `${j}${N}`, `${j}`, `${j}${N}`, `${j}`, `${j}${N}`, `${j}`, `${j}${N}`, `${j}`, `${j}${N}`, `${j}`, `${j}${N}`, `${j}`, `${j}${N}`, `${j}`, `${j}${N}`, `${M}`, `${M}`, `${j}`, `${j}`, `${A}`, `${A}${N}`, `${A}`, `${A}`;
173
+ var j = "/api/v2/public", M = "/api/orders/v2/public", N = "/api/orders/v2", P = "00000000-0000-0000-0000-000000000000";
174
+ `${j}`, `${j}${P}`, `${j}`, `${j}${P}`, `${j}`, `${j}${P}`, `${j}`, `${j}${P}`, `${j}`, `${j}${P}`, `${j}`, `${j}${P}`, `${j}`, `${j}${P}`, `${j}`, `${j}${P}`, `${j}`, `${j}`, `${j}`, `${j}${P}`, `${j}`, `${j}${P}`, `${j}`, `${j}${P}`, `${j}`, `${j}${P}`, `${j}`, `${j}${P}`, `${j}`, `${j}${P}`, `${j}`, `${j}${P}`, `${j}`, `${j}${P}`, `${j}`, `${j}${P}`, `${j}`, `${j}${P}`, `${j}`, `${j}`, `${j}`, `${j}${P}`, `${j}`, `${j}${P}`, `${j}`, `${j}${P}`, `${j}`, `${j}${P}`, `${j}`, `${j}${P}`, `${j}`, `${j}${P}`, `${j}`, `${j}${P}`, `${j}`, `${j}`, `${j}`, `${j}${P}`, `${j}`, `${j}${P}`, `${j}`, `${j}${P}`, `${j}`, `${j}${P}`, `${j}`, `${j}${P}`, `${j}`, `${j}${P}`, `${j}`, `${j}`, `${j}`, `${j}`, `${j}`, `${j}`, `${j}`, `${j}${P}`, `${M}`, `${M}`, `${M}`, `${M}${P}`, `${M}`, `${M}${P}`, `${M}`, `${M}${P}`, `${M}`, `${M}${P}`, `${M}`, `${M}${P}`, `${M}`, `${M}${P}`, `${M}`, `${M}${P}`, `${M}`, `${M}${P}`, `${N}`, `${N}`, `${M}`, `${M}`, `${M}`, `${M}`, `${j}`, `${j}${P}`, `${j}`, `${j}`;
176
175
  //#endregion
177
176
  //#region src/lib/api/events.ts
178
- var P = e("VC"), F = /* @__PURE__ */ new Map();
179
- async function I(e, t = fetch, n) {
177
+ var F = c("VC"), I = /* @__PURE__ */ new Map();
178
+ async function ce(e, t = fetch, n) {
180
179
  let r = n ? `${e}:pw` : String(e);
181
180
  if (t === fetch) {
182
- let e = F.get(r);
181
+ let e = I.get(r);
183
182
  if (e) return e;
184
183
  }
185
184
  let i = (async () => {
186
185
  try {
187
- let r = await t(n ? `${_()}/events/${e}?password=${encodeURIComponent(n)}` : `${_()}/events/${e}`);
188
- if (!r.ok) return r.status === 404 ? O("event_not_found") : (P.error(`Failed to fetch event details: ${r.status}`), D("event_fetch_failed"));
186
+ let r = await t(n ? `${m()}/events/${e}?password=${encodeURIComponent(n)}` : `${m()}/events/${e}`);
187
+ if (!r.ok) return r.status === 404 ? k("event_not_found") : (F.error(`Failed to fetch event details: ${r.status}`), O("event_fetch_failed"));
189
188
  let i = await r.json();
190
- return i ? E(i) : O("event_not_found");
189
+ return i ? D(i) : k("event_not_found");
191
190
  } catch (e) {
192
- return P.error("Error fetching event details:", e), D("event_fetch_failed");
191
+ return F.error("Error fetching event details:", e), O("event_fetch_failed");
193
192
  }
194
193
  })();
195
- return t === fetch && (F.set(r, i), i.finally(() => {
196
- F.get(r) === i && F.delete(r);
194
+ return t === fetch && (I.set(r, i), i.finally(() => {
195
+ I.get(r) === i && I.delete(r);
197
196
  })), i;
198
197
  }
199
198
  async function L(e, t = fetch, n) {
200
- let r = await I(e, t, n);
199
+ let r = await ce(e, t, n);
201
200
  return r.ok ? r.data : null;
202
201
  }
203
202
  async function R(e, t, n = (e) => e) {
204
203
  try {
205
- let r = await h(e);
206
- return r ? E(n(r)) : (P.error(`Failed to load (${t}): network or server error`), D(t));
204
+ let r = await g(e);
205
+ return r ? D(n(r)) : (F.error(`Failed to load (${t}): network or server error`), O(t));
207
206
  } catch (e) {
208
- return P.error(`Error loading (${t}):`, e), D(t);
207
+ return F.error(`Error loading (${t}):`, e), O(t);
209
208
  }
210
209
  }
211
210
  function z(e) {
@@ -213,64 +212,75 @@ function z(e) {
213
212
  }
214
213
  async function B(e, t) {
215
214
  let n = t?.trim(), r = n ? `?promoCode=${encodeURIComponent(n)}` : "";
216
- return R(`${_()}/tickets/event/${e}${r}`, "tickets_fetch_failed", z);
215
+ return R(`${m()}/tickets/event/${e}${r}`, "tickets_fetch_failed", z);
217
216
  }
218
217
  async function V(e, t) {
219
- return k(await B(e, t), []);
218
+ return A(await B(e, t), []);
220
219
  }
221
220
  function H(e) {
222
221
  return Array.isArray(e) ? e : Array.isArray(e.events) ? e.events : [];
223
222
  }
224
- async function U(e, t, n) {
225
- return R(`${_()}/events/venue/${e}/month/${t}/${n}`, "month_events_fetch_failed", (e) => H(e));
223
+ var U = /* @__PURE__ */ new Map();
224
+ function W(e, t, n) {
225
+ if (!n?.fresh) {
226
+ let t = U.get(e);
227
+ if (t) return t;
228
+ }
229
+ let r = R(e, t, (e) => H(e));
230
+ return U.set(e, r), r.finally(() => {
231
+ U.get(e) === r && U.delete(e);
232
+ }), r;
233
+ }
234
+ async function G(e, t, n, r) {
235
+ return W(`${m()}/events/venue/${e}/month/${t}/${n}`, "month_events_fetch_failed", r);
226
236
  }
227
- async function W(e, t, n) {
228
- return R(`${_()}/events/organization/${e}/month/${t}/${n}`, "org_month_events_fetch_failed", (e) => H(e));
237
+ async function le(e, t, n, r) {
238
+ return W(`${m()}/events/organization/${e}/month/${t}/${n}`, "org_month_events_fetch_failed", r);
229
239
  }
230
- async function G(e, t) {
231
- return R(`${_()}/series/${e}/occurrences?venueId=${t}`, "series_cta_fetch_failed");
240
+ async function ue(e, t) {
241
+ return R(`${m()}/series/${e}/occurrences?venueId=${t}`, "series_cta_fetch_failed");
232
242
  }
233
- async function le(e, t) {
234
- let n = await G(e, t);
243
+ async function de(e, t) {
244
+ let n = await ue(e, t);
235
245
  return n.ok ? n.data : null;
236
246
  }
237
- async function ue(e, t) {
247
+ async function fe(e, t) {
238
248
  try {
239
- let n = t ? `?slug=${encodeURIComponent(t)}` : "", r = await h(`${_()}/resolve/${encodeURIComponent(String(e))}${n}`);
240
- if (!r || !r.type) throw new C("entity", String(e));
249
+ let n = t ? `?slug=${encodeURIComponent(t)}` : "", r = await g(`${m()}/resolve/${encodeURIComponent(String(e))}${n}`);
250
+ if (!r || !r.type) throw new T("entity", String(e));
241
251
  return r;
242
252
  } catch (e) {
243
- return P.error("Error resolving public entity:", e), null;
253
+ return F.error("Error resolving public entity:", e), null;
244
254
  }
245
255
  }
246
- async function de(e, t) {
256
+ async function pe(e, t) {
247
257
  try {
248
- let n = t ? `${_()}/collections/${e}?password=${encodeURIComponent(t)}` : `${_()}/collections/${e}`, r = await h(n);
249
- if (!r) throw new C("collection", String(e));
258
+ let n = t ? `${m()}/collections/${e}?password=${encodeURIComponent(t)}` : `${m()}/collections/${e}`, r = await g(n);
259
+ if (!r) throw new T("collection", String(e));
250
260
  return r;
251
261
  } catch (e) {
252
- return P.error("Error fetching collection:", e), null;
262
+ return F.error("Error fetching collection:", e), null;
253
263
  }
254
264
  }
255
- async function fe(e, t) {
265
+ async function me(e, t) {
256
266
  try {
257
- let n = await h(`${_()}/events/${e}/check-password`, {
267
+ let n = await g(`${m()}/events/${e}/check-password`, {
258
268
  method: "POST",
259
269
  headers: { "Content-Type": "application/json" },
260
270
  body: JSON.stringify({ password: t })
261
271
  });
262
272
  return typeof n == "boolean" ? { valid: n } : { valid: n?.valid === !0 };
263
273
  } catch (e) {
264
- return P.error("Error checking event password:", e), { valid: !1 };
274
+ return F.error("Error checking event password:", e), { valid: !1 };
265
275
  }
266
276
  }
267
277
  //#endregion
268
278
  //#region src/lib/api/venues.ts
269
- var K = e("VC");
270
- async function pe(e) {
279
+ var K = c("VC");
280
+ async function he(e) {
271
281
  try {
272
282
  if (!e) return K.warn("getVenue called without venueId"), null;
273
- let t = await p(`/venues/${e}`);
283
+ let t = await f(`/venues/${e}`);
274
284
  return t.success ? t.data ?? null : (K.error(`Failed to fetch venue: ${t.statusCode}`), null);
275
285
  } catch (e) {
276
286
  return K.error("Error fetching venue:", e), null;
@@ -281,35 +291,35 @@ async function pe(e) {
281
291
  function q(e, t) {
282
292
  return e == null || t(e);
283
293
  }
284
- function me(e) {
294
+ function ge(e) {
285
295
  if (typeof e != "object" || !e) return !1;
286
296
  let t = e;
287
297
  return t.valid === !0 && Number.isInteger(t.appliedAmount) && typeof t.remainingTotal == "number" && Number.isFinite(t.remainingTotal) && q(t.giftCardCode, (e) => typeof e == "string") && q(t.giftCardBalance, (e) => typeof e == "number" && Number.isFinite(e)) && q(t.fullyCoveredByCard, (e) => typeof e == "boolean");
288
298
  }
289
- var he = "We couldn't apply that gift card. Please try again.";
290
- function ge(e) {
291
- if (!me(e)) return {
299
+ var _e = "We couldn't apply that gift card. Please try again.";
300
+ function ve(e) {
301
+ if (!ge(e)) return {
292
302
  valid: !1,
293
- error: he
303
+ error: _e
294
304
  };
295
- let t = e, i = r(n(t.appliedAmount)), a = t.remainingTotal, o = t.fullyCoveredByCard ?? a <= 0, s = !o;
305
+ let n = e, r = i(t(n.appliedAmount)), a = n.remainingTotal, o = n.fullyCoveredByCard ?? a <= 0, s = !o;
296
306
  return {
297
307
  valid: !0,
298
- giftCardCode: t.giftCardCode ?? void 0,
299
- giftCardAmount: i,
300
- giftCardBalance: t.giftCardBalance ?? void 0,
308
+ giftCardCode: n.giftCardCode ?? void 0,
309
+ giftCardAmount: r,
310
+ giftCardBalance: n.giftCardBalance ?? void 0,
301
311
  paymentType: o ? "gift_card_only" : "split",
302
312
  stripeAmount: a,
303
- orderTotal: i + a,
313
+ orderTotal: r + a,
304
314
  requiresStripe: s
305
315
  };
306
316
  }
307
317
  //#endregion
308
318
  //#region src/lib/api/gift-cards.ts
309
- var J = e("VC");
310
- async function _e(e, t) {
319
+ var J = c("VC");
320
+ async function ye(e, t) {
311
321
  try {
312
- let n = await g(`${f()}/cart/${e}/apply-gift-card`, { giftCardCode: t });
322
+ let n = await h(`${_()}/cart/${e}/apply-gift-card`, { giftCardCode: t });
313
323
  if (!n.success) return n.statusCode === 429 ? {
314
324
  valid: !1,
315
325
  error: "Too many attempts. Please wait a moment and try again."
@@ -317,7 +327,7 @@ async function _e(e, t) {
317
327
  valid: !1,
318
328
  error: n.error || "Invalid gift card code"
319
329
  });
320
- let r = ge(n.data);
330
+ let r = ve(n.data);
321
331
  return r.valid || J.error("Apply gift card returned an unusable payload:", n.data), r;
322
332
  } catch (e) {
323
333
  return J.error("applyGiftCard error:", e), {
@@ -326,9 +336,9 @@ async function _e(e, t) {
326
336
  };
327
337
  }
328
338
  }
329
- async function ve(e, t) {
339
+ async function be(e, t) {
330
340
  try {
331
- let n = await m(`${f()}/cart/${e}/gift-card`, t ? { body: JSON.stringify({ giftCardCode: t }) } : void 0);
341
+ let n = await p(`${_()}/cart/${e}/gift-card`, t ? { body: JSON.stringify({ giftCardCode: t }) } : void 0);
332
342
  return n.success ? { success: !0 } : (J.error("Remove gift card failed:", n.error), {
333
343
  success: !1,
334
344
  error: n.error || "Failed to remove gift card"
@@ -340,9 +350,9 @@ async function ve(e, t) {
340
350
  };
341
351
  }
342
352
  }
343
- async function ye(e, t) {
353
+ async function xe(e, t) {
344
354
  try {
345
- let n = await g(`${f()}/cart/${e}/complete-gift-card-payment`, {
355
+ let n = await h(`${_()}/cart/${e}/complete-gift-card-payment`, {
346
356
  customerName: d(t.firstName, t.lastName),
347
357
  customerEmail: t.email,
348
358
  firstName: t.firstName,
@@ -369,24 +379,24 @@ async function ye(e, t) {
369
379
  }
370
380
  //#endregion
371
381
  //#region src/lib/api/waitlist.ts
372
- var Y = e("VC"), be = {
382
+ var Y = c("VC"), Se = {
373
383
  waitlist_not_enabled: "Waitlist is not available for this event",
374
384
  event_not_found: "Event not found",
375
385
  invalid_phone: "Please enter a valid phone number",
376
386
  already_purchased: "You have already purchased tickets for this event",
377
387
  phone_already_registered: "This phone number is already on the waitlist"
378
388
  };
379
- async function xe(e, t, n = null, r = !1) {
389
+ async function Ce(e, t, n = null, r = !1) {
380
390
  try {
381
391
  let i = { email: t };
382
392
  n && r && (i.phone = n, i.smsOptIn = !0);
383
- let a = await g(`/events/${e}/waitlist`, i);
393
+ let a = await h(`/events/${e}/waitlist`, i);
384
394
  return a.success ? {
385
395
  success: !0,
386
396
  updated: a.data?.updated
387
397
  } : (Y.error("Join waitlist failed:", a.error), {
388
398
  success: !1,
389
- error: be[a.error ?? ""] || "Failed to join waitlist. Please try again."
399
+ error: Se[a.error ?? ""] || "Failed to join waitlist. Please try again."
390
400
  });
391
401
  } catch (e) {
392
402
  return Y.error("joinWaitlist error:", e), {
@@ -395,9 +405,9 @@ async function xe(e, t, n = null, r = !1) {
395
405
  };
396
406
  }
397
407
  }
398
- async function Se(e, t) {
408
+ async function we(e, t) {
399
409
  try {
400
- let n = await g(`/checkout/validate-token/${e}`, { email: t });
410
+ let n = await h(`/checkout/validate-token/${e}`, { email: t });
401
411
  return n.success ? {
402
412
  valid: !0,
403
413
  eventId: n.data?.eventId ?? 0
@@ -414,14 +424,14 @@ async function Se(e, t) {
414
424
  };
415
425
  }
416
426
  }
417
- async function Ce(e) {
427
+ async function X(e) {
418
428
  let t = {
419
429
  waitlistEnabled: !1,
420
430
  soldOut: !1,
421
431
  gated: !1
422
432
  };
423
433
  try {
424
- let n = await p(`/events/${e}/waitlist/status`);
434
+ let n = await f(`/events/${e}/waitlist/status`);
425
435
  return n.success ? {
426
436
  waitlistEnabled: !!n.data?.waitlistEnabled,
427
437
  soldOut: !!n.data?.soldOut,
@@ -433,7 +443,7 @@ async function Ce(e) {
433
443
  }
434
444
  //#endregion
435
445
  //#region src/lib/constants/colors.ts
436
- var X = {
446
+ var Te = {
437
447
  primary: "#0284fe",
438
448
  secondary: "#1d4ed8",
439
449
  tertiary: "#2563eb"
@@ -523,8 +533,8 @@ var X = {
523
533
  300: "#ffeaa7"
524
534
  },
525
535
  coral: "#ff6b6b"
526
- }, we = { defaultThemePrimary: "#7c3aed" }, Te = {
527
- blue: X.tertiary,
536
+ }, Ee = { defaultThemePrimary: "#7c3aed" }, De = {
537
+ blue: Te.tertiary,
528
538
  black: "#000000",
529
539
  darkGray: Z[700],
530
540
  gray: "#666666",
@@ -538,4 +548,4 @@ var X = {
538
548
  green: $.green[500]
539
549
  };
540
550
  //#endregion
541
- export { ie as A, ce as C, re as D, S as E, te as O, T as S, oe as T, de as _, Te as a, W as b, Se as c, ve as d, pe as f, B as g, V as h, Q as i, ne as k, _e as l, L as m, we as n, Ce as o, fe as p, Z as r, xe as s, $ as t, ye as u, le as v, se as w, ue as x, U as y };
551
+ export { re as A, oe as C, S as D, C as E, te as O, se as S, w as T, pe as _, De as a, le as b, we as c, be as d, he as f, B as g, V as h, Q as i, ne as k, ye as l, L as m, Ee as n, X as o, me as p, Z as r, Ce as s, $ as t, xe as u, de as v, ae as w, fe as x, G as y };