@getmicdrop/venue-calendar 4.3.92 → 4.3.94

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 (54) hide show
  1. package/dist/{AddOnCard-CoZxA8Ss.js → AddOnCard-DCKFn21s.js} +2 -2
  2. package/dist/{CalendarFoundryView-C_j409DI.js → CalendarFoundryView-CyyPVF96.js} +1 -1
  3. package/dist/{CartView-Dzje7N6m.js → CartView-CKipFgsW.js} +5 -5
  4. package/dist/{ChartBlock-BmkCI-vc.js → ChartBlock-BKubDZDP.js} +4 -1
  5. package/dist/{Checkout-D1De_3qe.js → Checkout-DEdXCYJd.js} +13 -13
  6. package/dist/{Checkout-BKEQIOYJ.js → Checkout-Dk2RtnG_.js} +7 -7
  7. package/dist/{CollectionView-KQcIi7Ov.js → CollectionView-B8UPI4kV.js} +3 -3
  8. package/dist/{Event-uaQkHUne.js → Event-DfLoC6EH.js} +6 -6
  9. package/dist/{EventPage-wvN2rQ7Z.js → EventPage-BXorHP0g.js} +8 -8
  10. package/dist/{RecommendationsRail-BUqK-9TQ.js → RecommendationsRail-DeiRJBX-.js} +2 -2
  11. package/dist/{ScarcityBadge-BKGJzuQn.js → ScarcityBadge-Bo7ILdv5.js} +1 -1
  12. package/dist/{SeriesPage-yn2TULyn.js → SeriesPage-Dimz6hR9.js} +2 -2
  13. package/dist/{Success-BiuvQueK.js → Success-Cxh6ocdz.js} +21 -21
  14. package/dist/{ViewTicketsEmbed-Bbtq90pG.js → ViewTicketsEmbed-CrPWLrcK.js} +3 -3
  15. package/dist/api/api.cjs +1 -1
  16. package/dist/api/api.mjs +94 -94
  17. package/dist/api/client.d.ts +29 -0
  18. package/dist/{api-c7gIPjjT.js → api-DAK-QNVZ.js} +112 -112
  19. package/dist/{defaults-Z_lKbqvf.js → defaults-D0DK9-0V.js} +1 -1
  20. package/dist/{event-transform-DnTfI9EZ.js → event-transform-2AkuKTGX.js} +1 -1
  21. package/dist/{eventStatusStream-BAx7uYiz.js → eventStatusStream-BpG0SCT-.js} +1 -1
  22. package/dist/{i18n-D7YN7gkj.js → i18n-Ba_Bqe_Y.js} +2 -2
  23. package/dist/{i18n-BpINnLyf.js → i18n-CCFiUzoX.js} +1 -1
  24. package/dist/{orders-2OEBLUMn.js → orders-2lTsorF-.js} +66 -66
  25. package/dist/{pixels-CZRDw2lY.js → pixels-X0-xsWmp.js} +1 -1
  26. package/dist/{utils-CttW5Ot0.js → utils-d34-d_aC.js} +59 -59
  27. package/dist/venue-calendar.es.js +765 -765
  28. package/dist/venue-calendar.iife.js +26 -26
  29. package/dist/venue-calendar.umd.js +50 -50
  30. package/package.json +2 -2
  31. /package/dist/locales/{4.3.92 → 4.3.94}/flow/de.js +0 -0
  32. /package/dist/locales/{4.3.92 → 4.3.94}/flow/es.js +0 -0
  33. /package/dist/locales/{4.3.92 → 4.3.94}/flow/fr.js +0 -0
  34. /package/dist/locales/{4.3.92 → 4.3.94}/flow/id.js +0 -0
  35. /package/dist/locales/{4.3.92 → 4.3.94}/flow/it.js +0 -0
  36. /package/dist/locales/{4.3.92 → 4.3.94}/flow/ja.js +0 -0
  37. /package/dist/locales/{4.3.92 → 4.3.94}/flow/ko.js +0 -0
  38. /package/dist/locales/{4.3.92 → 4.3.94}/flow/nl.js +0 -0
  39. /package/dist/locales/{4.3.92 → 4.3.94}/flow/pl.js +0 -0
  40. /package/dist/locales/{4.3.92 → 4.3.94}/flow/pt-br.js +0 -0
  41. /package/dist/locales/{4.3.92 → 4.3.94}/flow/tr.js +0 -0
  42. /package/dist/locales/{4.3.92 → 4.3.94}/flow/zh.js +0 -0
  43. /package/dist/locales/{4.3.92 → 4.3.94}/main/de.js +0 -0
  44. /package/dist/locales/{4.3.92 → 4.3.94}/main/es.js +0 -0
  45. /package/dist/locales/{4.3.92 → 4.3.94}/main/fr.js +0 -0
  46. /package/dist/locales/{4.3.92 → 4.3.94}/main/id.js +0 -0
  47. /package/dist/locales/{4.3.92 → 4.3.94}/main/it.js +0 -0
  48. /package/dist/locales/{4.3.92 → 4.3.94}/main/ja.js +0 -0
  49. /package/dist/locales/{4.3.92 → 4.3.94}/main/ko.js +0 -0
  50. /package/dist/locales/{4.3.92 → 4.3.94}/main/nl.js +0 -0
  51. /package/dist/locales/{4.3.92 → 4.3.94}/main/pl.js +0 -0
  52. /package/dist/locales/{4.3.92 → 4.3.94}/main/pt-br.js +0 -0
  53. /package/dist/locales/{4.3.92 → 4.3.94}/main/tr.js +0 -0
  54. /package/dist/locales/{4.3.92 → 4.3.94}/main/zh.js +0 -0
@@ -2,10 +2,10 @@ import { g as e } from "./sizing-B7ixYndz.js";
2
2
  import { C as t } from "./datetime-DWmAPk9U.js";
3
3
  import { A as n, L as r, _ as i, c as a, g as o, l as s, v as c, x as l } from "./defaultLabels-CsRGNP7f.js";
4
4
  import { n as u, r as d } from "./Button-VUB2WJ88.js";
5
- import { F as f, N as ee, P as p, R as m, V as h, W as g, l as _, x as te, z as v } from "./orders-2OEBLUMn.js";
5
+ import { F as f, G as p, N as ee, P as m, R as h, U as g, V as _, l as te, x as ne, z as v } from "./orders-2lTsorF-.js";
6
6
  //#region node_modules/@getmicdrop/svelte-components/dist/utils/liveAnnouncer.js
7
7
  var y = null;
8
- function ne() {
8
+ function re() {
9
9
  return y && document.body.contains(y) ? y : (y = document.createElement("div"), y.id = "a11y-live-region", y.setAttribute("role", "status"), y.setAttribute("aria-live", "polite"), y.setAttribute("aria-atomic", "true"), y.className = "sr-only", Object.assign(y.style, {
10
10
  position: "absolute",
11
11
  width: "1px",
@@ -20,12 +20,12 @@ function ne() {
20
20
  }
21
21
  function b(e, t = {}) {
22
22
  if (typeof document > "u") return;
23
- let { politeness: n = "polite", atomic: r = !0, delay: i = 100 } = t, a = ne();
23
+ let { politeness: n = "polite", atomic: r = !0, delay: i = 100 } = t, a = re();
24
24
  a.setAttribute("aria-live", n), a.setAttribute("aria-atomic", String(r)), a.textContent = "", setTimeout(() => {
25
25
  typeof document > "u" || !a.isConnected || (a.textContent = e);
26
26
  }, i);
27
27
  }
28
- function x(e = 500) {
28
+ function ie(e = 500) {
29
29
  let t = null;
30
30
  return (n, r) => {
31
31
  t && clearTimeout(t), t = setTimeout(() => {
@@ -35,35 +35,35 @@ function x(e = 500) {
35
35
  }
36
36
  //#endregion
37
37
  //#region node_modules/@getmicdrop/svelte-components/dist/transforms/ticket.js
38
- var S = {
38
+ var x = {
39
39
  EVERYWHERE: 0,
40
40
  ONLINE_ONLY: 1,
41
41
  BOX_OFFICE_ONLY: 2
42
- }, C = {
42
+ }, S = {
43
43
  VISIBLE: 0,
44
44
  HIDDEN: 1,
45
45
  PROMO_ONLY: 2
46
46
  };
47
- function w(e) {
47
+ function C(e) {
48
48
  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;
49
49
  }
50
- function T(e, t) {
50
+ function w(e, t) {
51
51
  return e.totalCapacity ?? e.quantity ?? t;
52
52
  }
53
- function re(e) {
53
+ function T(e) {
54
54
  let t = d(), n = i(e.effectiveSalesBegin, e.salesBegin, e.saleStartDate) ?? null, r = i(e.effectiveSalesEnd, e.salesEnd, e.saleEndDate) ?? null, a = l(n), s = l(r);
55
55
  if (!c(n) && !a) return "scheduled";
56
56
  if (!c(r) && !s) return "sales_ended";
57
57
  if (a && o(t, a) < 0) return "scheduled";
58
58
  if (s && o(t, s) > 0) return "sales_ended";
59
59
  if (e.soldOut === !0) return "sold_out";
60
- let u = w(e), f = T(e, u);
60
+ let u = C(e), f = w(e, u);
61
61
  return u === 0 ? "sold_out" : f > 0 && u / f < .1 ? "low" : "on_sale";
62
62
  }
63
- function ie(e, t = {}) {
63
+ function E(e, t = {}) {
64
64
  if (!Array.isArray(e)) return [];
65
65
  let n = e;
66
- return t.excludeDoorOnly && (n = n.filter((e) => e.salesChannel !== S.BOX_OFFICE_ONLY)), t.publicOnly && (n = n.filter((e) => e.visibility === C.VISIBLE)), n;
66
+ return t.excludeDoorOnly && (n = n.filter((e) => e.salesChannel !== x.BOX_OFFICE_ONLY)), t.publicOnly && (n = n.filter((e) => e.visibility === S.VISIBLE)), n;
67
67
  }
68
68
  function ae(e) {
69
69
  if (!Array.isArray(e) || e.length === 0) return {
@@ -73,8 +73,8 @@ function ae(e) {
73
73
  };
74
74
  let t = 0, n = 0;
75
75
  for (let r of e) {
76
- let e = w(r);
77
- t += e, n += T(r, e);
76
+ let e = C(r);
77
+ t += e, n += w(r, e);
78
78
  }
79
79
  return {
80
80
  totalRemaining: t,
@@ -92,15 +92,15 @@ function oe(e) {
92
92
  function se(e) {
93
93
  return e.availableTickets || e.available_tickets || e.tickets || [];
94
94
  }
95
- function E(e) {
96
- if (!e || !(e.isHidden === !0 || typeof e.visibility == "number" && e.visibility >= C.HIDDEN) || e.salesChannel === S.BOX_OFFICE_ONLY) return !1;
95
+ function D(e) {
96
+ if (!e || !(e.isHidden === !0 || typeof e.visibility == "number" && e.visibility >= S.HIDDEN) || e.salesChannel === x.BOX_OFFICE_ONLY) return !1;
97
97
  let t = d(), n = i(e.effectiveSalesBegin, e.salesBegin, e.salesStart, e.saleBegin, e.onSaleStart, e.saleStartDate), r = i(e.effectiveSalesEnd, e.salesEnd, e.saleEnd, e.onSaleEnd, e.saleEndDate), a = l(n), s = l(r);
98
98
  if (!c(n) && !a || !c(r) && !s || a && o(a, t) > 0 || s && o(s, t) < 0) return !1;
99
99
  let u = e.remainingCapacity ?? e.quantityRemaining ?? e.quantity;
100
100
  return !(e.soldOut || u != null && u <= 0);
101
101
  }
102
- function D(e) {
103
- return e ? e.hasHiddenTickets === !0 || se(e).some(E) : !1;
102
+ function ce(e) {
103
+ return e ? e.hasHiddenTickets === !0 || se(e).some(D) : !1;
104
104
  }
105
105
  //#endregion
106
106
  //#region node_modules/@getmicdrop/svelte-components/dist/errors/classes/NotFoundError.js
@@ -120,7 +120,7 @@ var O = class extends u {
120
120
  return s(e)?.fromCode?.(this.code) || a(this.resourceType.toLowerCase());
121
121
  }
122
122
  }, k = e("VC");
123
- function ce(e, t) {
123
+ function A(e, t) {
124
124
  if (e === 404) return "Promo code isn't valid.";
125
125
  let n = (t ?? "").toLowerCase();
126
126
  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";
@@ -131,10 +131,10 @@ async function le(e, t) {
131
131
  valid: !1,
132
132
  error: "Promo code is required"
133
133
  };
134
- let n = encodeURIComponent(t.trim()), r = await p(`/promo-codes/validate/${e}/${n}`);
134
+ let n = encodeURIComponent(t.trim()), r = await m(`/promo-codes/validate/${e}/${n}`);
135
135
  if (!r.success) return {
136
136
  valid: !1,
137
- error: ce(r.statusCode, r.error)
137
+ error: A(r.statusCode, r.error)
138
138
  };
139
139
  let i = r.data;
140
140
  return {
@@ -157,17 +157,17 @@ async function le(e, t) {
157
157
  }
158
158
  async function ue(e) {
159
159
  try {
160
- let t = await p(`/promo-codes/check/${e}`);
160
+ let t = await m(`/promo-codes/check/${e}`);
161
161
  return !t.success || t.data.hasPromoCodes === !0;
162
162
  } catch (e) {
163
163
  return k.error("Error checking promo codes availability:", e), !0;
164
164
  }
165
165
  }
166
- async function A(e, t, n) {
166
+ async function de(e, t, n) {
167
167
  try {
168
168
  let r = { promoCode: t };
169
169
  n && Object.keys(n).length > 0 && (r.productQuantities = n);
170
- let i = await f(`${m()}/cart/${e}/apply-promo`, r);
170
+ let i = await f(`${h()}/cart/${e}/apply-promo`, r);
171
171
  return i.success ? { success: !0 } : {
172
172
  success: !1,
173
173
  error: i.error || "Failed to apply promo code"
@@ -218,7 +218,7 @@ async function V(e, t = fetch, n) {
218
218
  }
219
219
  let i = (async () => {
220
220
  try {
221
- let r = await t(n ? `${v()}/events/${e}?password=${encodeURIComponent(n)}` : `${v()}/events/${e}`);
221
+ let r = await t(n ? `${v()}/events/${e}?password=${encodeURIComponent(n)}` : `${v()}/events/${e}`, { headers: g() });
222
222
  if (!r.ok) return r.status === 404 ? N("event_not_found") : (z.error(`Failed to fetch event details: ${r.status}`), M("event_fetch_failed"));
223
223
  let i = await r.json();
224
224
  return i ? j(i) : N("event_not_found");
@@ -236,7 +236,7 @@ async function H(e, t = fetch, n) {
236
236
  }
237
237
  async function U(e, t, n = (e) => e) {
238
238
  try {
239
- let r = await h(e);
239
+ let r = await _(e);
240
240
  return r ? j(n(r)) : (z.error(`Failed to load (${t}): network or server error`), M(t));
241
241
  } catch (e) {
242
242
  return z.error(`Error loading (${t}):`, e), M(t);
@@ -249,16 +249,16 @@ async function G(e, t) {
249
249
  let n = t?.trim(), r = n ? `?promoCode=${encodeURIComponent(n)}` : "";
250
250
  return U(`${v()}/tickets/event/${e}${r}`, "tickets_fetch_failed", W);
251
251
  }
252
- async function de(e, t) {
252
+ async function fe(e, t) {
253
253
  return P(await G(e, t), []);
254
254
  }
255
- async function fe(e) {
255
+ async function pe(e) {
256
256
  return e ? U(`${v()}/venues/organization/${e}`, "venues_fetch_failed", W) : (z.warn("fetchAllVenues called without orgId"), M("venues_missing_org_id"));
257
257
  }
258
- async function pe(e) {
259
- return P(await fe(e), []);
258
+ async function me(e) {
259
+ return P(await pe(e), []);
260
260
  }
261
- function me(e) {
261
+ function he(e) {
262
262
  return Array.isArray(e) ? e : Array.isArray(e.events) ? e.events : [];
263
263
  }
264
264
  var K = /* @__PURE__ */ new Map();
@@ -267,45 +267,45 @@ function q(e, t, n) {
267
267
  let t = K.get(e);
268
268
  if (t) return t;
269
269
  }
270
- let r = U(e, t, (e) => me(e));
270
+ let r = U(e, t, (e) => he(e));
271
271
  return K.set(e, r), r.finally(() => {
272
272
  K.get(e) === r && K.delete(e);
273
273
  }), r;
274
274
  }
275
- async function he(e, t, n, r) {
275
+ async function ge(e, t, n, r) {
276
276
  return q(`${v()}/events/venue/${e}/month/${t}/${n}`, "month_events_fetch_failed", r);
277
277
  }
278
- async function ge(e, t, n, r) {
278
+ async function _e(e, t, n, r) {
279
279
  return q(`${v()}/events/organization/${e}/month/${t}/${n}`, "org_month_events_fetch_failed", r);
280
280
  }
281
- async function _e(e, t) {
281
+ async function ve(e, t) {
282
282
  return U(`${v()}/series/${e}/occurrences?venueId=${t}`, "series_cta_fetch_failed");
283
283
  }
284
- async function ve(e, t) {
285
- let n = await _e(e, t);
284
+ async function ye(e, t) {
285
+ let n = await ve(e, t);
286
286
  return n.ok ? n.data : null;
287
287
  }
288
- async function ye(e, t) {
288
+ async function be(e, t) {
289
289
  try {
290
- let n = t ? `?slug=${encodeURIComponent(t)}` : "", r = await h(`${v()}/resolve/${encodeURIComponent(String(e))}${n}`);
290
+ let n = t ? `?slug=${encodeURIComponent(t)}` : "", r = await _(`${v()}/resolve/${encodeURIComponent(String(e))}${n}`);
291
291
  if (!r || !r.type) throw new O("entity", String(e));
292
292
  return r;
293
293
  } catch (e) {
294
294
  return z.error("Error resolving public entity:", e), null;
295
295
  }
296
296
  }
297
- async function be(e, t) {
297
+ async function xe(e, t) {
298
298
  try {
299
- let n = t ? `${v()}/collections/${e}?password=${encodeURIComponent(t)}` : `${v()}/collections/${e}`, r = await h(n);
299
+ let n = t ? `${v()}/collections/${e}?password=${encodeURIComponent(t)}` : `${v()}/collections/${e}`, r = await _(n);
300
300
  if (!r) throw new O("collection", String(e));
301
301
  return r;
302
302
  } catch (e) {
303
303
  return z.error("Error fetching collection:", e), null;
304
304
  }
305
305
  }
306
- async function J(e, t) {
306
+ async function Se(e, t) {
307
307
  try {
308
- let n = await h(`${v()}/events/${e}/check-password`, {
308
+ let n = await _(`${v()}/events/${e}/check-password`, {
309
309
  method: "POST",
310
310
  headers: { "Content-Type": "application/json" },
311
311
  body: JSON.stringify({ password: t })
@@ -317,86 +317,86 @@ async function J(e, t) {
317
317
  }
318
318
  //#endregion
319
319
  //#region src/lib/navigation.ts
320
- function xe(e, t) {
321
- let n = g();
320
+ function Ce(e, t) {
321
+ let n = p();
322
322
  return t ? `${n}/e/${e}-${t}` : `${n}/e/${e}`;
323
323
  }
324
- function Se(e, t, n) {
324
+ function we(e, t, n) {
325
325
  let r = n?.toString(), i = t ? `/e/${e}-${t}` : `/e/${e}`;
326
- return `${g()}${i}${r ? `?${r}` : ""}`;
326
+ return `${p()}${i}${r ? `?${r}` : ""}`;
327
327
  }
328
- var Ce = "get-micdrop.com";
329
- function Y(e) {
328
+ var Te = "get-micdrop.com";
329
+ function J(e) {
330
330
  let t = typeof e == "string" ? e.trim() : "";
331
- return t ? `https://${encodeURIComponent(t)}.${Ce}` : "";
331
+ return t ? `https://${encodeURIComponent(t)}.${Te}` : "";
332
332
  }
333
- function we(e) {
334
- let t = Y(e);
333
+ function Ee(e) {
334
+ let t = J(e);
335
335
  return t ? `${t}/gift-cards/buy` : "";
336
336
  }
337
- function Te(e, t, n) {
337
+ function De(e, t, n) {
338
338
  let r = n?.toString();
339
339
  return `/${e}/${t}${r ? `?${r}` : ""}`;
340
340
  }
341
- function Ee(e) {
341
+ function Oe(e) {
342
342
  return `/${e}`;
343
343
  }
344
- function De(e) {
345
- return `${g()}/${e}`;
344
+ function ke(e) {
345
+ return `${p()}/${e}`;
346
346
  }
347
- function Oe(e, t) {
347
+ function Ae(e, t) {
348
348
  return `/${e}/${t}/checkout`;
349
349
  }
350
- function ke(e) {
350
+ function je(e) {
351
351
  return `/?${e.toString()}`;
352
352
  }
353
- function Ae(e) {
353
+ function Me(e) {
354
354
  let t = new URLSearchParams();
355
355
  e.orderId && t.set("orderId", e.orderId), e.ticketCount && e.ticketCount > 0 && t.set("tickets", String(e.ticketCount));
356
356
  let n = t.toString();
357
357
  return n ? `?${n}` : "";
358
358
  }
359
- function je(e, t, n = {}) {
359
+ function Ne(e, t, n = {}) {
360
360
  let r = t ? `/e/${e}-${t}` : `/e/${e}`;
361
- return `${g()}${r}/tickets/checkout/success${Ae(n)}`;
361
+ return `${p()}${r}/tickets/checkout/success${Me(n)}`;
362
362
  }
363
363
  //#endregion
364
364
  //#region src/lib/api/venues.ts
365
- var X = e("VC");
366
- async function Me(e) {
365
+ var Y = e("VC");
366
+ async function Pe(e) {
367
367
  try {
368
- if (!e) return X.warn("getVenue called without venueId"), null;
369
- let t = await p(`/venues/${e}`);
370
- return t.success ? t.data ?? null : (X.error(`Failed to fetch venue: ${t.statusCode}`), null);
368
+ if (!e) return Y.warn("getVenue called without venueId"), null;
369
+ let t = await m(`/venues/${e}`);
370
+ return t.success ? t.data ?? null : (Y.error(`Failed to fetch venue: ${t.statusCode}`), null);
371
371
  } catch (e) {
372
- return X.error("Error fetching venue:", e), null;
372
+ return Y.error("Error fetching venue:", e), null;
373
373
  }
374
374
  }
375
- async function Ne(e) {
376
- let t = Y(e);
375
+ async function Fe(e) {
376
+ let t = J(e);
377
377
  if (!t) return !1;
378
378
  try {
379
- let e = await p(`/sites/by-host/${encodeURIComponent(new URL(t).host)}`);
379
+ let e = await m(`/sites/by-host/${encodeURIComponent(new URL(t).host)}`);
380
380
  return !!(e.success && e.data);
381
381
  } catch (e) {
382
- return X.warn("hasPublishedSite failed:", e), !1;
382
+ return Y.warn("hasPublishedSite failed:", e), !1;
383
383
  }
384
384
  }
385
385
  //#endregion
386
386
  //#region src/lib/api/transformers/giftCard.ts
387
- function Z(e, t) {
387
+ function X(e, t) {
388
388
  return e == null || t(e);
389
389
  }
390
- function Pe(e) {
390
+ function Ie(e) {
391
391
  if (typeof e != "object" || !e) return !1;
392
392
  let t = e;
393
- return t.valid === !0 && Number.isInteger(t.appliedAmount) && typeof t.remainingTotal == "number" && Number.isFinite(t.remainingTotal) && Z(t.giftCardCode, (e) => typeof e == "string") && Z(t.giftCardBalance, (e) => typeof e == "number" && Number.isFinite(e)) && Z(t.fullyCoveredByCard, (e) => typeof e == "boolean");
393
+ 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");
394
394
  }
395
- var Fe = "We couldn't apply that gift card. Please try again.";
396
- function Ie(e) {
397
- if (!Pe(e)) return {
395
+ var Le = "We couldn't apply that gift card. Please try again.";
396
+ function Re(e) {
397
+ if (!Ie(e)) return {
398
398
  valid: !1,
399
- error: Fe
399
+ error: Le
400
400
  };
401
401
  let t = e, i = n(r(t.appliedAmount)), a = t.remainingTotal, o = t.fullyCoveredByCard ?? a <= 0, s = !o;
402
402
  return {
@@ -412,30 +412,30 @@ function Ie(e) {
412
412
  }
413
413
  //#endregion
414
414
  //#region src/lib/api/gift-cards.ts
415
- var Q = e("VC");
416
- async function Le(e, t) {
415
+ var Z = e("VC");
416
+ async function ze(e, t) {
417
417
  try {
418
- let n = await f(`${m()}/cart/${e}/apply-gift-card`, { giftCardCode: t });
418
+ let n = await f(`${h()}/cart/${e}/apply-gift-card`, { giftCardCode: t });
419
419
  if (!n.success) return n.statusCode === 429 ? {
420
420
  valid: !1,
421
421
  error: "Too many attempts. Please wait a moment and try again."
422
- } : (Q.error("Apply gift card failed:", n.error), {
422
+ } : (Z.error("Apply gift card failed:", n.error), {
423
423
  valid: !1,
424
424
  error: n.error || "Invalid gift card code"
425
425
  });
426
- let r = Ie(n.data);
427
- return r.valid || Q.error("Apply gift card returned an unusable payload:", n.data), r;
426
+ let r = Re(n.data);
427
+ return r.valid || Z.error("Apply gift card returned an unusable payload:", n.data), r;
428
428
  } catch (e) {
429
- return Q.error("applyGiftCard error:", e), {
429
+ return Z.error("applyGiftCard error:", e), {
430
430
  valid: !1,
431
431
  error: "Network error. Please check your connection and try again."
432
432
  };
433
433
  }
434
434
  }
435
- async function Re(e, t) {
435
+ async function Be(e, t) {
436
436
  try {
437
- let n = t?.giftCardId ? { giftCardId: t.giftCardId } : t?.code ? { giftCardCode: t.code } : null, r = await ee(`${m()}/cart/${e}/gift-card`, n ? { body: JSON.stringify(n) } : void 0);
438
- if (!r.success) return Q.error("Remove gift card failed:", r.error), {
437
+ let n = t?.giftCardId ? { giftCardId: t.giftCardId } : t?.code ? { giftCardCode: t.code } : null, r = await ee(`${h()}/cart/${e}/gift-card`, n ? { body: JSON.stringify(n) } : void 0);
438
+ if (!r.success) return Z.error("Remove gift card failed:", r.error), {
439
439
  success: !1,
440
440
  error: r.error || "Failed to remove gift card"
441
441
  };
@@ -445,16 +445,16 @@ async function Re(e, t) {
445
445
  ...typeof a == "number" ? { remainingTotal: a } : {}
446
446
  };
447
447
  } catch (e) {
448
- return Q.error("removeGiftCard error:", e), {
448
+ return Z.error("removeGiftCard error:", e), {
449
449
  success: !1,
450
450
  error: "Network error. Please check your connection and try again."
451
451
  };
452
452
  }
453
453
  }
454
- async function ze(e, n, r) {
455
- let i = _(r);
454
+ async function Ve(e, n, r) {
455
+ let i = te(r);
456
456
  try {
457
- let r = await f(`${m()}/cart/${e}/complete-gift-card-payment`, {
457
+ let r = await f(`${h()}/cart/${e}/complete-gift-card-payment`, {
458
458
  customerName: t(n.firstName, n.lastName),
459
459
  customerEmail: n.email,
460
460
  firstName: n.firstName,
@@ -463,19 +463,19 @@ async function ze(e, n, r) {
463
463
  phoneNumber: n.phoneNumber || null,
464
464
  questionAnswer: n.questionAnswer || "",
465
465
  mailingList: n.mailingList || !1,
466
- attribution: te(),
466
+ attribution: ne(),
467
467
  ...i ? { locale: i } : {}
468
468
  });
469
469
  return r.success ? {
470
470
  success: !0,
471
471
  orderId: r.data?.orderId,
472
472
  confirmationNumber: r.data?.confirmationNumber
473
- } : (Q.error("Complete gift card payment failed:", r.error), {
473
+ } : (Z.error("Complete gift card payment failed:", r.error), {
474
474
  success: !1,
475
475
  error: r.error || "Failed to complete payment"
476
476
  });
477
477
  } catch (e) {
478
- return Q.error("completeGiftCardPayment error:", e), {
478
+ return Z.error("completeGiftCardPayment error:", e), {
479
479
  success: !1,
480
480
  error: "Network error. Please check your connection and try again."
481
481
  };
@@ -483,8 +483,8 @@ async function ze(e, n, r) {
483
483
  }
484
484
  //#endregion
485
485
  //#region src/lib/api/cart-addons.ts
486
- var Be = e("VC");
487
- async function Ve(e, t) {
486
+ var He = e("VC");
487
+ async function Ue(e, t) {
488
488
  let n = (e) => ({
489
489
  success: !1,
490
490
  error: e,
@@ -499,7 +499,7 @@ async function Ve(e, t) {
499
499
  !Number.isNaN(t) && n > 0 && (r[t] = n);
500
500
  }
501
501
  try {
502
- let t = await f(`${m()}/cart/${e}/add-ons`, { addOnQuantities: r });
502
+ let t = await f(`${h()}/cart/${e}/add-ons`, { addOnQuantities: r });
503
503
  if (!t.success) return n(t.error || null);
504
504
  let i = t.data || {};
505
505
  return {
@@ -510,13 +510,13 @@ async function Ve(e, t) {
510
510
  repriced: i.repriced === !0
511
511
  };
512
512
  } catch (e) {
513
- return Be.error("updateCartAddOns error:", e), n(null);
513
+ return He.error("updateCartAddOns error:", e), n(null);
514
514
  }
515
515
  }
516
516
  //#endregion
517
517
  //#region src/lib/api/waitlist.ts
518
- var $ = e("VC");
519
- async function He(e, t, n = null, r = !1) {
518
+ var Q = e("VC");
519
+ async function We(e, t, n = null, r = !1) {
520
520
  try {
521
521
  let i = { email: t };
522
522
  n && r && (i.phone = n, i.smsOptIn = !0);
@@ -525,18 +525,18 @@ async function He(e, t, n = null, r = !1) {
525
525
  success: !0,
526
526
  updated: a.data?.updated,
527
527
  position: a.data?.position
528
- } : ($.error("Join waitlist failed:", a.error), {
528
+ } : (Q.error("Join waitlist failed:", a.error), {
529
529
  success: !1,
530
530
  errorCode: a.error || "join_failed"
531
531
  });
532
532
  } catch (e) {
533
- return $.error("joinWaitlist error:", e), {
533
+ return Q.error("joinWaitlist error:", e), {
534
534
  success: !1,
535
535
  errorCode: "network_error"
536
536
  };
537
537
  }
538
538
  }
539
- async function Ue(e, t) {
539
+ async function Ge(e, t) {
540
540
  try {
541
541
  let n = await f(`/checkout/validate-token/${e}`, { email: t });
542
542
  return n.success ? {
@@ -549,14 +549,14 @@ async function Ue(e, t) {
549
549
  errorCode: n.error
550
550
  };
551
551
  } catch (e) {
552
- return $.error("validateWaitlistToken error:", e), {
552
+ return Q.error("validateWaitlistToken error:", e), {
553
553
  valid: !1,
554
554
  eventId: 0,
555
555
  errorCode: "invalid_token"
556
556
  };
557
557
  }
558
558
  }
559
- async function We(e, t) {
559
+ async function $(e, t) {
560
560
  try {
561
561
  let n = await f(`/waitlist/requeue/${e}`, { email: t });
562
562
  return n.success ? { success: !0 } : {
@@ -564,32 +564,32 @@ async function We(e, t) {
564
564
  errorCode: n.error
565
565
  };
566
566
  } catch (e) {
567
- return $.error("requeueWaitlistToFront error:", e), {
567
+ return Q.error("requeueWaitlistToFront error:", e), {
568
568
  success: !1,
569
569
  errorCode: "internal_error"
570
570
  };
571
571
  }
572
572
  }
573
- async function Ge(e) {
573
+ async function Ke(e) {
574
574
  let t = {
575
575
  waitlistEnabled: !1,
576
576
  soldOut: !1,
577
577
  gated: !1
578
578
  };
579
579
  try {
580
- let n = await p(`/events/${e}/waitlist/status`);
580
+ let n = await m(`/events/${e}/waitlist/status`);
581
581
  return n.success ? {
582
582
  waitlistEnabled: !!n.data?.waitlistEnabled,
583
583
  soldOut: !!n.data?.soldOut,
584
584
  gated: !!n.data?.gated
585
585
  } : t;
586
586
  } catch (e) {
587
- return $.error("getWaitlistStatus error:", e), t;
587
+ return Q.error("getWaitlistStatus error:", e), t;
588
588
  }
589
589
  }
590
- function Ke(e) {
590
+ function qe(e) {
591
591
  let t = String(e % 60).padStart(2, "0");
592
592
  return e >= 3600 ? `${Math.floor(e / 3600)}:${String(Math.floor(e % 3600 / 60)).padStart(2, "0")}:${t}` : `${Math.floor(e / 60)}:${t}`;
593
593
  }
594
594
  //#endregion
595
- export { ye as A, oe as B, H as C, ve as D, be as E, E as F, x as H, C as I, ae as L, ue as M, le as N, he as O, D as P, re as R, pe as S, G as T, b as V, Te as _, Ue as a, ke as b, ze as c, Ne as d, Oe as f, xe as g, Se as h, We as i, A as j, ge as k, Re as l, Ee as m, Ge as n, Ve as o, De as p, He as r, Le as s, Ke as t, Me as u, we as v, de as w, J as x, je as y, ie as z };
595
+ export { be as A, oe as B, H as C, ye as D, xe as E, D as F, ie as H, S as I, ae as L, ue as M, le as N, ge as O, ce as P, T as R, me as S, G as T, b as V, De as _, Ge as a, je as b, Ve as c, Fe as d, Ae as f, Ce as g, we as h, $ as i, de as j, _e as k, Be as l, Oe as m, Ke as n, Ue as o, ke as p, We as r, ze as s, qe as t, Pe as u, Ee as v, fe as w, Se as x, Ne as y, E as z };
@@ -1,6 +1,6 @@
1
1
  import { n as e } from "./rolldown-runtime-DtPi1Y-2.js";
2
2
  import { C as t, f as n, p as r, u as i } from "./defaultLabels-CsRGNP7f.js";
3
- import { z as a } from "./orders-2OEBLUMn.js";
3
+ import { z as a } from "./orders-2lTsorF-.js";
4
4
  import { t as o } from "./browser-DxdP6IWt.js";
5
5
  //#region src/lib/view-tickets/defaults.ts
6
6
  var s = /* @__PURE__ */ e(o(), 1);
@@ -1,6 +1,6 @@
1
1
  import { a as e, c as t, l as n, n as r, o as i } from "./datetime-DWmAPk9U.js";
2
2
  import { C as a } from "./defaultLabels-CsRGNP7f.js";
3
- import { B as o, L as s, P as c, R as l, z as u } from "./api-c7gIPjjT.js";
3
+ import { B as o, L as s, P as c, R as l, z as u } from "./api-DAK-QNVZ.js";
4
4
  import { t as d } from "./imageUrl-Bata3II2.js";
5
5
  import { t as f } from "./event-DEEMQ-U3.js";
6
6
  //#region src/lib/constants/colors.ts
@@ -1,5 +1,5 @@
1
1
  import { g as e } from "./sizing-B7ixYndz.js";
2
- import { G as t, z as n } from "./orders-2OEBLUMn.js";
2
+ import { K as t, z as n } from "./orders-2lTsorF-.js";
3
3
  //#region src/lib/public-calendar-flow/eventStatusStream.ts
4
4
  var r = e("VC"), i = /* @__PURE__ */ new Set([
5
5
  "canceled",
@@ -1,8 +1,8 @@
1
1
  import { E as e, W as t, d as n, f as r, g as i, h as a, m as o, x as s } from "./datetime-DWmAPk9U.js";
2
2
  import { B as c, S as l, d as u, f as d, g as f, u as p, w as m, x as h } from "./defaultLabels-CsRGNP7f.js";
3
3
  import { r as g } from "./Button-VUB2WJ88.js";
4
- import { u as _ } from "./orders-2OEBLUMn.js";
5
- import { F as v, I as y } from "./api-c7gIPjjT.js";
4
+ import { u as _ } from "./orders-2lTsorF-.js";
5
+ import { F as v, I as y } from "./api-DAK-QNVZ.js";
6
6
  import { t as b } from "./Text-CqjLjIF8.js";
7
7
  import { n as x } from "./constants-kDn3-fLS.js";
8
8
  import "svelte/internal/disclose-version";
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./defaultLabels-CsRGNP7f.js";
2
- import { u as t } from "./orders-2OEBLUMn.js";
2
+ import { u as t } from "./orders-2lTsorF-.js";
3
3
  //#endregion
4
4
  //#region src/lib/i18n/index.js
5
5
  var n = t({