@getmicdrop/venue-calendar 4.3.49 → 4.3.50

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 (59) hide show
  1. package/README.md +818 -818
  2. package/dist/{CartView-CVKiyVOl.js → CartView-CqEvLqcY.js} +26 -26
  3. package/dist/{Checkout-CylGX5N6.js → Checkout-kqd7pwt8.js} +5 -5
  4. package/dist/{Checkout-BIau3rG4.js → Checkout-xNDWtRm4.js} +7 -7
  5. package/dist/{CheckoutTimer-DZ6F5dzh.js → CheckoutTimer-B5TjKUG4.js} +1 -1
  6. package/dist/{CollectionView-CGBHaoZ4.js → CollectionView-CiXDrCP-.js} +3 -3
  7. package/dist/{Event-D1NTFNzv.js → Event-BQxHv-o0.js} +4 -4
  8. package/dist/{EventPage-DmMzUsSw.js → EventPage-i0e9Ips0.js} +4 -4
  9. package/dist/{RecommendationsRail-DFL2WV70.js → RecommendationsRail-tD2S6OIO.js} +1 -1
  10. package/dist/{SeriesPage-CMrrm_XY.js → SeriesPage-B8GyXngM.js} +2 -2
  11. package/dist/{Success-hWdOedro.js → Success-C2GgrwlB.js} +6 -6
  12. package/dist/{ViewTicketsEmbed-DEOXlEri.js → ViewTicketsEmbed-cn4JCf10.js} +122 -126
  13. package/dist/api/api.cjs +1 -1
  14. package/dist/api/api.mjs +0 -2
  15. package/dist/api/checkout-availability.d.ts +4 -1
  16. package/dist/api/gate-password-cache.d.ts +4 -3
  17. package/dist/api/gift-cards.d.ts +1 -0
  18. package/dist/api/route-manifest.d.ts +21 -4
  19. package/dist/api/transformers/collection.d.ts +0 -5
  20. package/dist/api/transformers/event.d.ts +0 -1
  21. package/dist/api/transformers/index.d.ts +14 -18
  22. package/dist/api/transformers/series.d.ts +0 -5
  23. package/dist/api/transformers/venue.d.ts +1 -0
  24. package/dist/{api-BqDkZFK5.js → api-Dvs4Mzxe.js} +116 -219
  25. package/dist/{constants-MMSOmBOv.js → constants-CJyMUKEX.js} +3 -45
  26. package/dist/{event-transform-CJLXVtwq.js → event-transform-Cvr7dDpq.js} +158 -55
  27. package/dist/{i18n-CbpdmhA9.js → i18n-DMOn4Sr8.js} +2 -2
  28. package/dist/{showcase-state-options-DxMKyehO.js → showcase-state-options-Da1QiMDF.js} +3 -49
  29. package/dist/types/index.d.ts +575 -575
  30. package/dist/{utils-CBt88H2f.js → utils-CJ3W3Iul.js} +1 -1
  31. package/dist/venue-calendar.es.js +1015 -1015
  32. package/dist/venue-calendar.iife.js +55 -55
  33. package/dist/venue-calendar.umd.js +50 -50
  34. package/package.json +220 -220
  35. package/src/lib/theme.js +222 -222
  36. /package/dist/locales/{4.3.49 → 4.3.50}/flow/de.js +0 -0
  37. /package/dist/locales/{4.3.49 → 4.3.50}/flow/es.js +0 -0
  38. /package/dist/locales/{4.3.49 → 4.3.50}/flow/fr.js +0 -0
  39. /package/dist/locales/{4.3.49 → 4.3.50}/flow/id.js +0 -0
  40. /package/dist/locales/{4.3.49 → 4.3.50}/flow/it.js +0 -0
  41. /package/dist/locales/{4.3.49 → 4.3.50}/flow/ja.js +0 -0
  42. /package/dist/locales/{4.3.49 → 4.3.50}/flow/ko.js +0 -0
  43. /package/dist/locales/{4.3.49 → 4.3.50}/flow/nl.js +0 -0
  44. /package/dist/locales/{4.3.49 → 4.3.50}/flow/pl.js +0 -0
  45. /package/dist/locales/{4.3.49 → 4.3.50}/flow/pt-br.js +0 -0
  46. /package/dist/locales/{4.3.49 → 4.3.50}/flow/tr.js +0 -0
  47. /package/dist/locales/{4.3.49 → 4.3.50}/flow/zh.js +0 -0
  48. /package/dist/locales/{4.3.49 → 4.3.50}/main/de.js +0 -0
  49. /package/dist/locales/{4.3.49 → 4.3.50}/main/es.js +0 -0
  50. /package/dist/locales/{4.3.49 → 4.3.50}/main/fr.js +0 -0
  51. /package/dist/locales/{4.3.49 → 4.3.50}/main/id.js +0 -0
  52. /package/dist/locales/{4.3.49 → 4.3.50}/main/it.js +0 -0
  53. /package/dist/locales/{4.3.49 → 4.3.50}/main/ja.js +0 -0
  54. /package/dist/locales/{4.3.49 → 4.3.50}/main/ko.js +0 -0
  55. /package/dist/locales/{4.3.49 → 4.3.50}/main/nl.js +0 -0
  56. /package/dist/locales/{4.3.49 → 4.3.50}/main/pl.js +0 -0
  57. /package/dist/locales/{4.3.49 → 4.3.50}/main/pt-br.js +0 -0
  58. /package/dist/locales/{4.3.49 → 4.3.50}/main/tr.js +0 -0
  59. /package/dist/locales/{4.3.49 → 4.3.50}/main/zh.js +0 -0
@@ -1,39 +1,39 @@
1
1
  import { E as e } from "./Button-klwKgfhG.js";
2
2
  import { C as t } from "./scarcity-nbBD95Iy.js";
3
3
  import { A as n, M as r, O as i, _ as a, c as o, g as s, l as c, v as l, x as u, z as d } from "./defaultLabels-BSBaNwtj.js";
4
- import { B as f, L as p, M as ee, N as m, P as h, R as g, U as _, b as te, c as ne } from "./orders-B7_DrFsF.js";
4
+ import { B as f, L as p, M as m, N as h, P as g, R as _, U as v, b as ee, c as y } from "./orders-B7_DrFsF.js";
5
5
  //#region node_modules/@getmicdrop/svelte-components/dist/transforms/ticket.js
6
- var v = {
6
+ var b = {
7
7
  EVERYWHERE: 0,
8
8
  ONLINE_ONLY: 1,
9
9
  BOX_OFFICE_ONLY: 2
10
- }, y = {
10
+ }, x = {
11
11
  VISIBLE: 0,
12
12
  HIDDEN: 1,
13
13
  PROMO_ONLY: 2
14
14
  };
15
- function b(e) {
15
+ function S(e) {
16
16
  return e.soldOut === !0 ? 0 : e.remainingCapacity == null ? e.quantityRemaining == null ? e.quantity == null ? e.sold != null && e.totalCapacity != null ? Math.max(0, e.totalCapacity - e.sold) : 0 : e.quantity : e.quantityRemaining : e.remainingCapacity;
17
17
  }
18
- function x(e, t) {
18
+ function C(e, t) {
19
19
  return e.totalCapacity ?? e.quantity ?? t;
20
20
  }
21
- function S(e) {
21
+ function te(e) {
22
22
  let t = n(), r = a(e.effectiveSalesBegin, e.salesBegin, e.saleStartDate) ?? null, i = a(e.effectiveSalesEnd, e.salesEnd, e.saleEndDate) ?? null, o = u(r), c = u(i);
23
23
  if (!l(r) && !o) return "scheduled";
24
24
  if (!l(i) && !c) return "sales_ended";
25
25
  if (o && s(t, o) < 0) return "scheduled";
26
26
  if (c && s(t, c) > 0) return "sales_ended";
27
27
  if (e.soldOut === !0) return "sold_out";
28
- let d = b(e), f = x(e, d);
28
+ let d = S(e), f = C(e, d);
29
29
  return d === 0 ? "sold_out" : f > 0 && d / f < .1 ? "low" : "on_sale";
30
30
  }
31
- function C(e, t = {}) {
31
+ function ne(e, t = {}) {
32
32
  if (!Array.isArray(e)) return [];
33
33
  let n = e;
34
- return t.excludeDoorOnly && (n = n.filter((e) => e.salesChannel !== v.BOX_OFFICE_ONLY)), t.publicOnly && (n = n.filter((e) => e.visibility === y.VISIBLE)), n;
34
+ return t.excludeDoorOnly && (n = n.filter((e) => e.salesChannel !== b.BOX_OFFICE_ONLY)), t.publicOnly && (n = n.filter((e) => e.visibility === x.VISIBLE)), n;
35
35
  }
36
- function w(e) {
36
+ function re(e) {
37
37
  if (!Array.isArray(e) || e.length === 0) return {
38
38
  totalRemaining: 0,
39
39
  totalCapacity: 0,
@@ -41,8 +41,8 @@ function w(e) {
41
41
  };
42
42
  let t = 0, n = 0;
43
43
  for (let r of e) {
44
- let e = b(r);
45
- t += e, n += x(r, e);
44
+ let e = S(r);
45
+ t += e, n += C(r, e);
46
46
  }
47
47
  return {
48
48
  totalRemaining: t,
@@ -50,29 +50,29 @@ function w(e) {
50
50
  isSoldOut: t === 0
51
51
  };
52
52
  }
53
- function re(e) {
53
+ function ie(e) {
54
54
  if (!Array.isArray(e) || e.length === 0) return 0;
55
55
  let t = e.map((e) => Number(e.price ?? e.ticketPrice)).filter((e) => Number.isFinite(e) && e > 0);
56
56
  return t.length > 0 ? Math.min(...t) : 0;
57
57
  }
58
58
  //#endregion
59
59
  //#region node_modules/@getmicdrop/svelte-components/dist/transforms/event.js
60
- function ie(e) {
60
+ function ae(e) {
61
61
  return e.availableTickets || e.available_tickets || e.tickets || [];
62
62
  }
63
- function T(e) {
64
- if (!e || !(e.isHidden === !0 || typeof e.visibility == "number" && e.visibility >= y.HIDDEN) || e.salesChannel === v.BOX_OFFICE_ONLY) return !1;
63
+ function w(e) {
64
+ if (!e || !(e.isHidden === !0 || typeof e.visibility == "number" && e.visibility >= x.HIDDEN) || e.salesChannel === b.BOX_OFFICE_ONLY) return !1;
65
65
  let t = n(), r = a(e.effectiveSalesBegin, e.salesBegin, e.salesStart, e.saleBegin, e.onSaleStart, e.saleStartDate), i = a(e.effectiveSalesEnd, e.salesEnd, e.saleEnd, e.onSaleEnd, e.saleEndDate), o = u(r), c = u(i);
66
66
  if (!l(r) && !o || !l(i) && !c || o && s(o, t) > 0 || c && s(c, t) < 0) return !1;
67
67
  let d = e.remainingCapacity ?? e.quantityRemaining ?? e.quantity;
68
68
  return !(e.soldOut || d != null && d <= 0);
69
69
  }
70
- function ae(e) {
71
- return e ? e.hasHiddenTickets === !0 || ie(e).some(T) : !1;
70
+ function oe(e) {
71
+ return e ? e.hasHiddenTickets === !0 || ae(e).some(w) : !1;
72
72
  }
73
73
  //#endregion
74
74
  //#region node_modules/@getmicdrop/svelte-components/dist/errors/classes/NotFoundError.js
75
- var E = class extends i {
75
+ var T = class extends i {
76
76
  constructor(e, t) {
77
77
  let n = t ? `${e} with ID ${t} not found` : `${e} not found`;
78
78
  super(n, "NOT_FOUND", {
@@ -87,125 +87,22 @@ var E = class extends i {
87
87
  getUserMessage(e) {
88
88
  return c(e)?.fromCode?.(this.code) || o(this.resourceType.toLowerCase());
89
89
  }
90
- }, D = {
91
- primary: "#0284fe",
92
- secondary: "#1d4ed8",
93
- tertiary: "#2563eb"
94
- }, O = {
95
- 50: "#f9fafb",
96
- 100: "#f3f4f6",
97
- 200: "#e5e7eb",
98
- 300: "#d1d5db",
99
- 400: "#9ca3af",
100
- 500: "#6b7280",
101
- 600: "#4b5563",
102
- 700: "#374151",
103
- 800: "#1f2937",
104
- 900: "#111827"
105
- }, k = {
106
- text: {
107
- primary: O[900],
108
- secondary: O[500],
109
- muted: O[400],
110
- inverted: "#ffffff"
111
- },
112
- background: {
113
- primary: "#ffffff",
114
- secondary: O[50],
115
- tertiary: O[100],
116
- dark: O[800],
117
- darker: O[900]
118
- },
119
- border: {
120
- default: O[200],
121
- strong: O[300],
122
- muted: O[100],
123
- light: "#e0e0e0"
124
- },
125
- success: "#16a34a",
126
- error: "#ef4444",
127
- warning: "#f59e0b",
128
- info: "#3b82f6"
129
- }, A = {
130
- blue: {
131
- 200: "#bfdbfe",
132
- 500: "#3b82f6",
133
- 600: "#2563eb",
134
- 700: "#1d4ed8"
135
- },
136
- red: {
137
- 500: "#ef4444",
138
- 600: "#dc2626",
139
- 700: "#b91c1c"
140
- },
141
- green: {
142
- 500: "#22c55e",
143
- 600: "#16a34a",
144
- emerald: "#10b981",
145
- emeraldDark: "#059669"
146
- },
147
- amber: { 500: "#f59e0b" },
148
- orange: { 500: "#f97316" },
149
- violet: {
150
- 400: "#a78bfa",
151
- 500: "#8b5cf6",
152
- 700: "#6d28d9"
153
- },
154
- pink: { 500: "#ec4899" },
155
- lime: { 500: "#84cc16" },
156
- indigo: { 500: "#6366f1" },
157
- cyan: {
158
- 400: "#22d3ee",
159
- 500: "#06b6d4",
160
- 600: "#0891b2"
161
- },
162
- teal: {
163
- 400: "#2dd4bf",
164
- 500: "#14b8a6"
165
- },
166
- sky: {
167
- 400: "#45b7d1",
168
- light: "#4ecdc4"
169
- },
170
- mint: {
171
- 500: "#98d8c8",
172
- 600: "#96ceb4"
173
- },
174
- plum: "#dda0dd",
175
- yellow: {
176
- 500: "#f7dc6f",
177
- 300: "#ffeaa7"
178
- },
179
- coral: "#ff6b6b"
180
- }, j = { defaultThemePrimary: "#7c3aed" }, oe = {
181
- blue: D.tertiary,
182
- black: "#000000",
183
- darkGray: O[700],
184
- gray: "#666666",
185
- lightGray: O[400],
186
- white: k.background.primary,
187
- offWhite: "#fafafa",
188
- lightBorder: O[200],
189
- border: "#cccccc",
190
- orange: k.warning,
191
- red: k.error,
192
- green: A.green[500]
193
- }, M = e("VC");
194
- function se(e, t) {
90
+ }, E = e("VC");
91
+ function D(e, t) {
195
92
  if (e === 404) return "Promo code isn't valid.";
196
93
  let n = (t ?? "").toLowerCase();
197
94
  return e === 400 ? n.includes("not yet active") ? "Promo code doesn't apply." : n.includes("expired") ? "Promo code expired." : n.includes("limit") ? "Promo code has reached its limit." : "Promo code isn't valid." : "Failed to validate code";
198
95
  }
199
- async function ce(e, t) {
96
+ async function O(e, t) {
200
97
  try {
201
98
  if (!t || !t.trim()) return {
202
99
  valid: !1,
203
100
  error: "Promo code is required"
204
101
  };
205
- let n = encodeURIComponent(t.trim()), r = await m(`/promo-codes/validate/${e}/${n}`);
102
+ let n = encodeURIComponent(t.trim()), r = await h(`/promo-codes/validate/${e}/${n}`);
206
103
  if (!r.success) return {
207
104
  valid: !1,
208
- error: se(r.statusCode, r.error)
105
+ error: D(r.statusCode, r.error)
209
106
  };
210
107
  let i = r.data;
211
108
  return {
@@ -220,31 +117,31 @@ async function ce(e, t) {
220
117
  applyToTicketIds: i.applyToTicketIds
221
118
  };
222
119
  } catch (e) {
223
- return M.error("Error validating promo code:", e), {
120
+ return E.error("Error validating promo code:", e), {
224
121
  valid: !1,
225
122
  error: "Network error validating code"
226
123
  };
227
124
  }
228
125
  }
229
- async function le(e) {
126
+ async function se(e) {
230
127
  try {
231
- let t = await m(`/promo-codes/check/${e}`);
128
+ let t = await h(`/promo-codes/check/${e}`);
232
129
  return !t.success || t.data.hasPromoCodes === !0;
233
130
  } catch (e) {
234
- return M.error("Error checking promo codes availability:", e), !0;
131
+ return E.error("Error checking promo codes availability:", e), !0;
235
132
  }
236
133
  }
237
- async function ue(e, t, n) {
134
+ async function ce(e, t, n) {
238
135
  try {
239
136
  let r = { promoCode: t };
240
137
  n && Object.keys(n).length > 0 && (r.productQuantities = n);
241
- let i = await h(`${p()}/cart/${e}/apply-promo`, r);
138
+ let i = await g(`${p()}/cart/${e}/apply-promo`, r);
242
139
  return i.success ? { success: !0 } : {
243
140
  success: !1,
244
141
  error: i.error || "Failed to apply promo code"
245
142
  };
246
143
  } catch (e) {
247
- return M.error("Error applying promo code:", e), {
144
+ return E.error("Error applying promo code:", e), {
248
145
  success: !1,
249
146
  error: "Network error applying code"
250
147
  };
@@ -252,78 +149,78 @@ async function ue(e, t, n) {
252
149
  }
253
150
  //#endregion
254
151
  //#region src/lib/api/result.ts
255
- function N(e) {
152
+ function k(e) {
256
153
  return {
257
154
  ok: !0,
258
155
  data: e
259
156
  };
260
157
  }
261
- function P(e) {
158
+ function A(e) {
262
159
  return {
263
160
  ok: !1,
264
161
  error: e
265
162
  };
266
163
  }
267
- function F(e) {
164
+ function j(e) {
268
165
  return {
269
166
  ok: !1,
270
167
  error: e,
271
168
  notFound: !0
272
169
  };
273
170
  }
274
- function de(e, t) {
171
+ function le(e, t) {
275
172
  return e.ok ? e.data : t;
276
173
  }
277
174
  //#endregion
278
175
  //#region src/lib/api/route-manifest.ts
279
- var I = "/api/v2/public", L = "/api/orders/v2/public", R = "/api/orders/v2", z = "00000000-0000-0000-0000-000000000000";
280
- `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}`, `${I}`, `${I}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}`, `${I}`, `${I}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}`, `${I}`, `${I}`, `${I}`, `${I}${z}`, `${L}`, `${L}`, `${L}`, `${L}${z}`, `${L}`, `${L}${z}`, `${L}`, `${L}${z}`, `${L}`, `${L}${z}`, `${L}`, `${L}${z}`, `${L}`, `${L}${z}`, `${L}`, `${L}${z}`, `${L}`, `${L}${z}`, `${R}`, `${R}`, `${L}`, `${L}`, `${L}`, `${L}`, `${I}`, `${I}${z}`, `${I}`, `${I}`;
176
+ var M = "/api/v2/public", N = "/api/orders/v2/public", P = "/api/orders/v2", F = "00000000-0000-0000-0000-000000000000";
177
+ `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}`, `${M}`, `${M}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}`, `${M}`, `${M}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}`, `${M}`, `${M}`, `${M}`, `${M}${F}`, `${N}`, `${N}`, `${N}`, `${N}${F}`, `${N}`, `${N}${F}`, `${N}`, `${N}${F}`, `${N}`, `${N}${F}`, `${N}`, `${N}${F}`, `${N}`, `${N}${F}`, `${N}`, `${N}${F}`, `${N}`, `${N}${F}`, `${P}`, `${P}`, `${N}`, `${N}`, `${N}`, `${N}`, `${M}`, `${M}${F}`, `${M}`, `${M}`;
281
178
  //#endregion
282
179
  //#region src/lib/api/events.ts
283
- var B = e("VC"), V = /* @__PURE__ */ new Map();
284
- async function H(e, t = fetch, n) {
180
+ var I = e("VC"), L = /* @__PURE__ */ new Map();
181
+ async function R(e, t = fetch, n) {
285
182
  let r = n ? `${e}:pw` : String(e);
286
183
  if (t === fetch) {
287
- let e = V.get(r);
184
+ let e = L.get(r);
288
185
  if (e) return e;
289
186
  }
290
187
  let i = (async () => {
291
188
  try {
292
- let r = await t(n ? `${g()}/events/${e}?password=${encodeURIComponent(n)}` : `${g()}/events/${e}`);
293
- if (!r.ok) return r.status === 404 ? F("event_not_found") : (B.error(`Failed to fetch event details: ${r.status}`), P("event_fetch_failed"));
189
+ let r = await t(n ? `${_()}/events/${e}?password=${encodeURIComponent(n)}` : `${_()}/events/${e}`);
190
+ if (!r.ok) return r.status === 404 ? j("event_not_found") : (I.error(`Failed to fetch event details: ${r.status}`), A("event_fetch_failed"));
294
191
  let i = await r.json();
295
- return i ? N(i) : F("event_not_found");
192
+ return i ? k(i) : j("event_not_found");
296
193
  } catch (e) {
297
- return B.error("Error fetching event details:", e), P("event_fetch_failed");
194
+ return I.error("Error fetching event details:", e), A("event_fetch_failed");
298
195
  }
299
196
  })();
300
- return t === fetch && (V.set(r, i), i.finally(() => {
301
- V.get(r) === i && V.delete(r);
197
+ return t === fetch && (L.set(r, i), i.finally(() => {
198
+ L.get(r) === i && L.delete(r);
302
199
  })), i;
303
200
  }
304
- async function fe(e, t = fetch, n) {
305
- let r = await H(e, t, n);
201
+ async function z(e, t = fetch, n) {
202
+ let r = await R(e, t, n);
306
203
  return r.ok ? r.data : null;
307
204
  }
308
- async function U(e, t, n = (e) => e) {
205
+ async function B(e, t, n = (e) => e) {
309
206
  try {
310
207
  let r = await f(e);
311
- return r ? N(n(r)) : (B.error(`Failed to load (${t}): network or server error`), P(t));
208
+ return r ? k(n(r)) : (I.error(`Failed to load (${t}): network or server error`), A(t));
312
209
  } catch (e) {
313
- return B.error(`Error loading (${t}):`, e), P(t);
210
+ return I.error(`Error loading (${t}):`, e), A(t);
314
211
  }
315
212
  }
316
- function pe(e) {
213
+ function V(e) {
317
214
  return Array.isArray(e) ? e : [];
318
215
  }
319
- async function W(e, t) {
216
+ async function H(e, t) {
320
217
  let n = t?.trim(), r = n ? `?promoCode=${encodeURIComponent(n)}` : "";
321
- return U(`${g()}/tickets/event/${e}${r}`, "tickets_fetch_failed", pe);
218
+ return B(`${_()}/tickets/event/${e}${r}`, "tickets_fetch_failed", V);
322
219
  }
323
- async function me(e, t) {
324
- return de(await W(e, t), []);
220
+ async function U(e, t) {
221
+ return le(await H(e, t), []);
325
222
  }
326
- function he(e) {
223
+ function W(e) {
327
224
  return Array.isArray(e) ? e : Array.isArray(e.events) ? e.events : [];
328
225
  }
329
226
  var G = /* @__PURE__ */ new Map();
@@ -332,90 +229,90 @@ function K(e, t, n) {
332
229
  let t = G.get(e);
333
230
  if (t) return t;
334
231
  }
335
- let r = U(e, t, (e) => he(e));
232
+ let r = B(e, t, (e) => W(e));
336
233
  return G.set(e, r), r.finally(() => {
337
234
  G.get(e) === r && G.delete(e);
338
235
  }), r;
339
236
  }
340
- async function ge(e, t, n, r) {
341
- return K(`${g()}/events/venue/${e}/month/${t}/${n}`, "month_events_fetch_failed", r);
237
+ async function ue(e, t, n, r) {
238
+ return K(`${_()}/events/venue/${e}/month/${t}/${n}`, "month_events_fetch_failed", r);
342
239
  }
343
- async function _e(e, t, n, r) {
344
- return K(`${g()}/events/organization/${e}/month/${t}/${n}`, "org_month_events_fetch_failed", r);
240
+ async function de(e, t, n, r) {
241
+ return K(`${_()}/events/organization/${e}/month/${t}/${n}`, "org_month_events_fetch_failed", r);
345
242
  }
346
- async function ve(e, t) {
347
- return U(`${g()}/series/${e}/occurrences?venueId=${t}`, "series_cta_fetch_failed");
243
+ async function fe(e, t) {
244
+ return B(`${_()}/series/${e}/occurrences?venueId=${t}`, "series_cta_fetch_failed");
348
245
  }
349
- async function ye(e, t) {
350
- let n = await ve(e, t);
246
+ async function pe(e, t) {
247
+ let n = await fe(e, t);
351
248
  return n.ok ? n.data : null;
352
249
  }
353
- async function be(e, t) {
250
+ async function me(e, t) {
354
251
  try {
355
- let n = t ? `?slug=${encodeURIComponent(t)}` : "", r = await f(`${g()}/resolve/${encodeURIComponent(String(e))}${n}`);
356
- if (!r || !r.type) throw new E("entity", String(e));
252
+ let n = t ? `?slug=${encodeURIComponent(t)}` : "", r = await f(`${_()}/resolve/${encodeURIComponent(String(e))}${n}`);
253
+ if (!r || !r.type) throw new T("entity", String(e));
357
254
  return r;
358
255
  } catch (e) {
359
- return B.error("Error resolving public entity:", e), null;
256
+ return I.error("Error resolving public entity:", e), null;
360
257
  }
361
258
  }
362
- async function xe(e, t) {
259
+ async function he(e, t) {
363
260
  try {
364
- let n = t ? `${g()}/collections/${e}?password=${encodeURIComponent(t)}` : `${g()}/collections/${e}`, r = await f(n);
365
- if (!r) throw new E("collection", String(e));
261
+ let n = t ? `${_()}/collections/${e}?password=${encodeURIComponent(t)}` : `${_()}/collections/${e}`, r = await f(n);
262
+ if (!r) throw new T("collection", String(e));
366
263
  return r;
367
264
  } catch (e) {
368
- return B.error("Error fetching collection:", e), null;
265
+ return I.error("Error fetching collection:", e), null;
369
266
  }
370
267
  }
371
- async function Se(e, t) {
268
+ async function ge(e, t) {
372
269
  try {
373
- let n = await f(`${g()}/events/${e}/check-password`, {
270
+ let n = await f(`${_()}/events/${e}/check-password`, {
374
271
  method: "POST",
375
272
  headers: { "Content-Type": "application/json" },
376
273
  body: JSON.stringify({ password: t })
377
274
  });
378
275
  return typeof n == "boolean" ? { valid: n } : { valid: n?.valid === !0 };
379
276
  } catch (e) {
380
- return B.error("Error checking event password:", e), { valid: !1 };
277
+ return I.error("Error checking event password:", e), { valid: !1 };
381
278
  }
382
279
  }
383
280
  //#endregion
384
281
  //#region src/lib/navigation.ts
385
- function Ce(e, t) {
386
- let n = _();
282
+ function _e(e, t) {
283
+ let n = v();
387
284
  return t ? `${n}/e/${e}-${t}` : `${n}/e/${e}`;
388
285
  }
389
- function we(e, t, n) {
286
+ function ve(e, t, n) {
390
287
  let r = n?.toString(), i = t ? `/e/${e}-${t}` : `/e/${e}`;
391
- return `${_()}${i}${r ? `?${r}` : ""}`;
288
+ return `${v()}${i}${r ? `?${r}` : ""}`;
392
289
  }
393
- var Te = "get-micdrop.com";
290
+ var ye = "get-micdrop.com";
394
291
  function q(e) {
395
292
  let t = typeof e == "string" ? e.trim() : "";
396
- return t ? `https://${encodeURIComponent(t)}.${Te}` : "";
293
+ return t ? `https://${encodeURIComponent(t)}.${ye}` : "";
397
294
  }
398
- function Ee(e) {
295
+ function be(e) {
399
296
  let t = q(e);
400
297
  return t ? `${t}/gift-cards/buy` : "";
401
298
  }
402
- function De(e, t, n) {
299
+ function xe(e, t, n) {
403
300
  let r = n?.toString();
404
301
  return `/${e}/${t}${r ? `?${r}` : ""}`;
405
302
  }
406
- function Oe(e) {
303
+ function Se(e) {
407
304
  return `/${e}`;
408
305
  }
409
- function ke(e) {
410
- return `${_()}/${e}`;
306
+ function Ce(e) {
307
+ return `${v()}/${e}`;
411
308
  }
412
309
  function J(e, t) {
413
310
  return `/${e}/${t}/checkout`;
414
311
  }
415
- function Ae(e) {
312
+ function we(e) {
416
313
  return `/?${e.toString()}`;
417
314
  }
418
- function je(e, t, n = {}) {
315
+ function Te(e, t, n = {}) {
419
316
  let r = `${J(e, t)}/success`, i = new URLSearchParams();
420
317
  n.orderId && i.set("orderId", n.orderId), n.ticketCount && n.ticketCount > 0 && i.set("tickets", String(n.ticketCount));
421
318
  let a = i.toString();
@@ -424,20 +321,20 @@ function je(e, t, n = {}) {
424
321
  //#endregion
425
322
  //#region src/lib/api/venues.ts
426
323
  var Y = e("VC");
427
- async function Me(e) {
324
+ async function Ee(e) {
428
325
  try {
429
326
  if (!e) return Y.warn("getVenue called without venueId"), null;
430
- let t = await m(`/venues/${e}`);
327
+ let t = await h(`/venues/${e}`);
431
328
  return t.success ? t.data ?? null : (Y.error(`Failed to fetch venue: ${t.statusCode}`), null);
432
329
  } catch (e) {
433
330
  return Y.error("Error fetching venue:", e), null;
434
331
  }
435
332
  }
436
- async function Ne(e) {
333
+ async function De(e) {
437
334
  let t = q(e);
438
335
  if (!t) return !1;
439
336
  try {
440
- let e = await m(`/sites/by-host/${encodeURIComponent(new URL(t).host)}`);
337
+ let e = await h(`/sites/by-host/${encodeURIComponent(new URL(t).host)}`);
441
338
  return !!(e.success && e.data);
442
339
  } catch (e) {
443
340
  return Y.warn("hasPublishedSite failed:", e), !1;
@@ -448,16 +345,16 @@ async function Ne(e) {
448
345
  function X(e, t) {
449
346
  return e == null || t(e);
450
347
  }
451
- function Pe(e) {
348
+ function Oe(e) {
452
349
  if (typeof e != "object" || !e) return !1;
453
350
  let t = e;
454
351
  return t.valid === !0 && Number.isInteger(t.appliedAmount) && typeof t.remainingTotal == "number" && Number.isFinite(t.remainingTotal) && X(t.giftCardCode, (e) => typeof e == "string") && X(t.giftCardBalance, (e) => typeof e == "number" && Number.isFinite(e)) && X(t.fullyCoveredByCard, (e) => typeof e == "boolean");
455
352
  }
456
- var Fe = "We couldn't apply that gift card. Please try again.";
353
+ var ke = "We couldn't apply that gift card. Please try again.";
457
354
  function Z(e) {
458
- if (!Pe(e)) return {
355
+ if (!Oe(e)) return {
459
356
  valid: !1,
460
- error: Fe
357
+ error: ke
461
358
  };
462
359
  let t = e, n = r(d(t.appliedAmount)), i = t.remainingTotal, a = t.fullyCoveredByCard ?? i <= 0, o = !a;
463
360
  return {
@@ -474,9 +371,9 @@ function Z(e) {
474
371
  //#endregion
475
372
  //#region src/lib/api/gift-cards.ts
476
373
  var Q = e("VC");
477
- async function Ie(e, t) {
374
+ async function Ae(e, t) {
478
375
  try {
479
- let n = await h(`${p()}/cart/${e}/apply-gift-card`, { giftCardCode: t });
376
+ let n = await g(`${p()}/cart/${e}/apply-gift-card`, { giftCardCode: t });
480
377
  if (!n.success) return n.statusCode === 429 ? {
481
378
  valid: !1,
482
379
  error: "Too many attempts. Please wait a moment and try again."
@@ -493,9 +390,9 @@ async function Ie(e, t) {
493
390
  };
494
391
  }
495
392
  }
496
- async function Le(e, t) {
393
+ async function je(e, t) {
497
394
  try {
498
- let n = t?.giftCardId ? { giftCardId: t.giftCardId } : t?.code ? { giftCardCode: t.code } : null, r = await ee(`${p()}/cart/${e}/gift-card`, n ? { body: JSON.stringify(n) } : void 0);
395
+ let n = t?.giftCardId ? { giftCardId: t.giftCardId } : t?.code ? { giftCardCode: t.code } : null, r = await m(`${p()}/cart/${e}/gift-card`, n ? { body: JSON.stringify(n) } : void 0);
499
396
  if (!r.success) return Q.error("Remove gift card failed:", r.error), {
500
397
  success: !1,
501
398
  error: r.error || "Failed to remove gift card"
@@ -512,10 +409,10 @@ async function Le(e, t) {
512
409
  };
513
410
  }
514
411
  }
515
- async function Re(e, n, r) {
516
- let i = ne(r);
412
+ async function Me(e, n, r) {
413
+ let i = y(r);
517
414
  try {
518
- let r = await h(`${p()}/cart/${e}/complete-gift-card-payment`, {
415
+ let r = await g(`${p()}/cart/${e}/complete-gift-card-payment`, {
519
416
  customerName: t(n.firstName, n.lastName),
520
417
  customerEmail: n.email,
521
418
  firstName: n.firstName,
@@ -524,7 +421,7 @@ async function Re(e, n, r) {
524
421
  phoneNumber: n.phoneNumber || null,
525
422
  questionAnswer: n.questionAnswer || "",
526
423
  mailingList: n.mailingList || !1,
527
- attribution: te(),
424
+ attribution: ee(),
528
425
  ...i ? { locale: i } : {}
529
426
  });
530
427
  return r.success ? {
@@ -545,11 +442,11 @@ async function Re(e, n, r) {
545
442
  //#endregion
546
443
  //#region src/lib/api/waitlist.ts
547
444
  var $ = e("VC");
548
- async function ze(e, t, n = null, r = !1) {
445
+ async function Ne(e, t, n = null, r = !1) {
549
446
  try {
550
447
  let i = { email: t };
551
448
  n && r && (i.phone = n, i.smsOptIn = !0);
552
- let a = await h(`/events/${e}/waitlist`, i);
449
+ let a = await g(`/events/${e}/waitlist`, i);
553
450
  return a.success ? {
554
451
  success: !0,
555
452
  updated: a.data?.updated,
@@ -565,9 +462,9 @@ async function ze(e, t, n = null, r = !1) {
565
462
  };
566
463
  }
567
464
  }
568
- async function Be(e, t) {
465
+ async function Pe(e, t) {
569
466
  try {
570
- let n = await h(`/checkout/validate-token/${e}`, { email: t });
467
+ let n = await g(`/checkout/validate-token/${e}`, { email: t });
571
468
  return n.success ? {
572
469
  valid: !0,
573
470
  eventId: n.data?.eventId ?? 0,
@@ -585,9 +482,9 @@ async function Be(e, t) {
585
482
  };
586
483
  }
587
484
  }
588
- async function Ve(e, t) {
485
+ async function Fe(e, t) {
589
486
  try {
590
- let n = await h(`/waitlist/requeue/${e}`, { email: t });
487
+ let n = await g(`/waitlist/requeue/${e}`, { email: t });
591
488
  return n.success ? { success: !0 } : {
592
489
  success: !1,
593
490
  errorCode: n.error
@@ -599,14 +496,14 @@ async function Ve(e, t) {
599
496
  };
600
497
  }
601
498
  }
602
- async function He(e) {
499
+ async function Ie(e) {
603
500
  let t = {
604
501
  waitlistEnabled: !1,
605
502
  soldOut: !1,
606
503
  gated: !1
607
504
  };
608
505
  try {
609
- let n = await m(`/events/${e}/waitlist/status`);
506
+ let n = await h(`/events/${e}/waitlist/status`);
610
507
  return n.success ? {
611
508
  waitlistEnabled: !!n.data?.waitlistEnabled,
612
509
  soldOut: !!n.data?.soldOut,
@@ -616,9 +513,9 @@ async function He(e) {
616
513
  return $.error("getWaitlistStatus error:", e), t;
617
514
  }
618
515
  }
619
- function Ue(e) {
516
+ function Le(e) {
620
517
  let t = String(e % 60).padStart(2, "0");
621
518
  return e >= 3600 ? `${Math.floor(e / 3600)}:${String(Math.floor(e % 3600 / 60)).padStart(2, "0")}:${t}` : `${Math.floor(e / 60)}:${t}`;
622
519
  }
623
520
  //#endregion
624
- export { le as A, w as B, W as C, _e as D, ge as E, k as F, C as H, oe as I, ae as L, A as M, j as N, be as O, O as P, T as R, me as S, ye as T, re as U, S as V, De as _, Be as a, Se as b, Le as c, je as d, J as f, Ce as g, we as h, Ve as i, ce as j, ue as k, Me as l, Oe as m, He as n, Ie as o, ke as p, ze as r, Re as s, Ue as t, Ne as u, Ee as v, xe as w, fe as x, Ae as y, y as z };
521
+ export { se as A, H as C, de as D, ue as E, re as F, te as I, ne as L, oe as M, w as N, me as O, x as P, ie as R, U as S, pe as T, xe as _, Pe as a, ge as b, je as c, Te as d, J as f, _e as g, ve as h, Fe as i, O as j, ce as k, Ee as l, Se as m, Ie as n, Ae as o, Ce as p, Ne as r, Me as s, Le as t, De as u, be as v, he as w, z as x, we as y };