@getmicdrop/venue-calendar 4.3.35 → 4.3.37

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 (46) hide show
  1. package/dist/{CalendarFoundryView-BytAeaqk.js → CalendarFoundryView-BWaOYwqK.js} +2364 -2142
  2. package/dist/{CartView-BVAj8ns8.js → CartView-bcOiHkc9.js} +8 -8
  3. package/dist/{Checkout-Cw_mvXUd.js → Checkout-CBKPSWLo.js} +4 -4
  4. package/dist/{Checkout-DFoOLl6K.js → Checkout-CQkHV2jG.js} +4 -4
  5. package/dist/{CheckoutTimer-BDxy_Fou.js → CheckoutTimer-BYQ43W8T.js} +1 -1
  6. package/dist/{CollectionView-BRJKmgmu.js → CollectionView-5CycNo4A.js} +3 -3
  7. package/dist/{Event-CJZetg3I.js → Event-Bz4DLlpB.js} +4 -4
  8. package/dist/{EventPage-Bt5872Cp.js → EventPage-6-7R9qrl.js} +4 -4
  9. package/dist/{RecommendationsRail-DcIHxWHf.js → RecommendationsRail-Cb--XCvg.js} +1 -1
  10. package/dist/{SeriesPage-ByxpytgT.js → SeriesPage-BalCscZf.js} +2 -2
  11. package/dist/{Success-CFbOlDG7.js → Success-DtScq6E2.js} +6 -6
  12. package/dist/api/api.cjs +1 -1
  13. package/dist/api/api.mjs +250 -255
  14. package/dist/{api-DRQ3j7AT.js → api-D0rw6nGg.js} +100 -101
  15. package/dist/{constants-YYsgll7v.js → constants-B3kqqQpi.js} +1 -1
  16. package/dist/{event-transform-BchpSia3.js → event-transform-D0mzpOzE.js} +1 -1
  17. package/dist/{i18n-1R1ah9KT.js → i18n-DInkJ-RH.js} +170 -170
  18. package/dist/{utils-DvGzK5Cl.js → utils-KGYASlkk.js} +1 -1
  19. package/dist/venue-calendar.es.js +14 -14
  20. package/dist/venue-calendar.iife.js +55 -55
  21. package/dist/venue-calendar.umd.js +21 -21
  22. package/package.json +2 -2
  23. /package/dist/locales/{4.3.35 → 4.3.37}/flow/de.js +0 -0
  24. /package/dist/locales/{4.3.35 → 4.3.37}/flow/es.js +0 -0
  25. /package/dist/locales/{4.3.35 → 4.3.37}/flow/fr.js +0 -0
  26. /package/dist/locales/{4.3.35 → 4.3.37}/flow/id.js +0 -0
  27. /package/dist/locales/{4.3.35 → 4.3.37}/flow/it.js +0 -0
  28. /package/dist/locales/{4.3.35 → 4.3.37}/flow/ja.js +0 -0
  29. /package/dist/locales/{4.3.35 → 4.3.37}/flow/ko.js +0 -0
  30. /package/dist/locales/{4.3.35 → 4.3.37}/flow/nl.js +0 -0
  31. /package/dist/locales/{4.3.35 → 4.3.37}/flow/pl.js +0 -0
  32. /package/dist/locales/{4.3.35 → 4.3.37}/flow/pt-br.js +0 -0
  33. /package/dist/locales/{4.3.35 → 4.3.37}/flow/tr.js +0 -0
  34. /package/dist/locales/{4.3.35 → 4.3.37}/flow/zh.js +0 -0
  35. /package/dist/locales/{4.3.35 → 4.3.37}/main/de.js +0 -0
  36. /package/dist/locales/{4.3.35 → 4.3.37}/main/es.js +0 -0
  37. /package/dist/locales/{4.3.35 → 4.3.37}/main/fr.js +0 -0
  38. /package/dist/locales/{4.3.35 → 4.3.37}/main/id.js +0 -0
  39. /package/dist/locales/{4.3.35 → 4.3.37}/main/it.js +0 -0
  40. /package/dist/locales/{4.3.35 → 4.3.37}/main/ja.js +0 -0
  41. /package/dist/locales/{4.3.35 → 4.3.37}/main/ko.js +0 -0
  42. /package/dist/locales/{4.3.35 → 4.3.37}/main/nl.js +0 -0
  43. /package/dist/locales/{4.3.35 → 4.3.37}/main/pl.js +0 -0
  44. /package/dist/locales/{4.3.35 → 4.3.37}/main/pt-br.js +0 -0
  45. /package/dist/locales/{4.3.35 → 4.3.37}/main/tr.js +0 -0
  46. /package/dist/locales/{4.3.35 → 4.3.37}/main/zh.js +0 -0
@@ -1,39 +1,39 @@
1
1
  import { E as e } from "./Button-klwKgfhG.js";
2
2
  import { w as t } from "./scarcity-CwnIxi1J.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-Zp9QbN37.js";
4
- import { H as f, I as p, L as m, M as h, N as g, c as ee, j as _, y as te, z as v } from "./orders-jQz7QFjK.js";
4
+ import { H as f, I as p, L as m, M as h, N as g, c as _, j as v, y as ee, z as y } from "./orders-jQz7QFjK.js";
5
5
  //#region node_modules/@getmicdrop/svelte-components/dist/transforms/ticket.js
6
- var y = {
6
+ var b = {
7
7
  EVERYWHERE: 0,
8
8
  ONLINE_ONLY: 1,
9
9
  BOX_OFFICE_ONLY: 2
10
- }, b = {
10
+ }, x = {
11
11
  VISIBLE: 0,
12
12
  HIDDEN: 1,
13
13
  PROMO_ONLY: 2
14
14
  };
15
- function x(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 S(e, t) {
18
+ function C(e, t) {
19
19
  return e.totalCapacity ?? e.quantity ?? t;
20
20
  }
21
- function C(e) {
21
+ function w(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 = x(e), f = S(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 ne(e, t = {}) {
31
+ function T(e, t = {}) {
32
32
  if (!Array.isArray(e)) return [];
33
33
  let n = e;
34
- return t.excludeDoorOnly && (n = n.filter((e) => e.salesChannel !== y.BOX_OFFICE_ONLY)), t.publicOnly && (n = n.filter((e) => e.visibility === b.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 re(e) {
36
+ function te(e) {
37
37
  if (!Array.isArray(e) || e.length === 0) return {
38
38
  totalRemaining: 0,
39
39
  totalCapacity: 0,
@@ -41,8 +41,8 @@ function re(e) {
41
41
  };
42
42
  let t = 0, n = 0;
43
43
  for (let r of e) {
44
- let e = x(r);
45
- t += e, n += S(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 re(e) {
50
50
  isSoldOut: t === 0
51
51
  };
52
52
  }
53
- function ie(e) {
53
+ function ne(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 ae(e) {
60
+ function re(e) {
61
61
  return e.availableTickets || e.available_tickets || e.tickets || [];
62
62
  }
63
- function w(e) {
64
- if (!e || !(e.isHidden === !0 || typeof e.visibility == "number" && e.visibility >= b.HIDDEN) || e.salesChannel === y.BOX_OFFICE_ONLY) return !1;
63
+ function E(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 oe(e) {
71
- return e ? e.hasHiddenTickets === !0 || ae(e).some(w) : !1;
70
+ function ie(e) {
71
+ return e ? e.hasHiddenTickets === !0 || re(e).some(E) : !1;
72
72
  }
73
73
  //#endregion
74
74
  //#region node_modules/@getmicdrop/svelte-components/dist/errors/classes/NotFoundError.js
75
- var T = class extends i {
75
+ var D = 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,11 +87,11 @@ var T = class extends i {
87
87
  getUserMessage(e) {
88
88
  return c(e)?.fromCode?.(this.code) || o(this.resourceType.toLowerCase());
89
89
  }
90
- }, se = {
90
+ }, O = {
91
91
  primary: "#0284fe",
92
92
  secondary: "#1d4ed8",
93
93
  tertiary: "#2563eb"
94
- }, E = {
94
+ }, k = {
95
95
  50: "#f9fafb",
96
96
  100: "#f3f4f6",
97
97
  200: "#e5e7eb",
@@ -102,31 +102,31 @@ var T = class extends i {
102
102
  700: "#374151",
103
103
  800: "#1f2937",
104
104
  900: "#111827"
105
- }, D = {
105
+ }, A = {
106
106
  text: {
107
- primary: E[900],
108
- secondary: E[500],
109
- muted: E[400],
107
+ primary: k[900],
108
+ secondary: k[500],
109
+ muted: k[400],
110
110
  inverted: "#ffffff"
111
111
  },
112
112
  background: {
113
113
  primary: "#ffffff",
114
- secondary: E[50],
115
- tertiary: E[100],
116
- dark: E[800],
117
- darker: E[900]
114
+ secondary: k[50],
115
+ tertiary: k[100],
116
+ dark: k[800],
117
+ darker: k[900]
118
118
  },
119
119
  border: {
120
- default: E[200],
121
- strong: E[300],
122
- muted: E[100],
120
+ default: k[200],
121
+ strong: k[300],
122
+ muted: k[100],
123
123
  light: "#e0e0e0"
124
124
  },
125
125
  success: "#16a34a",
126
126
  error: "#ef4444",
127
127
  warning: "#f59e0b",
128
128
  info: "#3b82f6"
129
- }, O = {
129
+ }, j = {
130
130
  blue: {
131
131
  200: "#bfdbfe",
132
132
  500: "#3b82f6",
@@ -177,26 +177,26 @@ var T = class extends i {
177
177
  300: "#ffeaa7"
178
178
  },
179
179
  coral: "#ff6b6b"
180
- }, ce = { defaultThemePrimary: "#7c3aed" }, k = {
181
- blue: se.tertiary,
180
+ }, ae = { defaultThemePrimary: "#7c3aed" }, oe = {
181
+ blue: O.tertiary,
182
182
  black: "#000000",
183
- darkGray: E[700],
183
+ darkGray: k[700],
184
184
  gray: "#666666",
185
- lightGray: E[400],
186
- white: D.background.primary,
185
+ lightGray: k[400],
186
+ white: A.background.primary,
187
187
  offWhite: "#fafafa",
188
- lightBorder: E[200],
188
+ lightBorder: k[200],
189
189
  border: "#cccccc",
190
- orange: D.warning,
191
- red: D.error,
192
- green: O.green[500]
193
- }, A = e("VC");
194
- function j(e, t) {
190
+ orange: A.warning,
191
+ red: A.error,
192
+ green: j.green[500]
193
+ }, M = e("VC");
194
+ function se(e, t) {
195
195
  if (e === 404) return "Promo code isn't valid.";
196
196
  let n = (t ?? "").toLowerCase();
197
197
  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
198
  }
199
- async function M(e, t) {
199
+ async function ce(e, t) {
200
200
  try {
201
201
  if (!t || !t.trim()) return {
202
202
  valid: !1,
@@ -205,7 +205,7 @@ async function M(e, t) {
205
205
  let n = encodeURIComponent(t.trim()), r = await h(`/promo-codes/validate/${e}/${n}`);
206
206
  if (!r.success) return {
207
207
  valid: !1,
208
- error: j(r.statusCode, r.error)
208
+ error: se(r.statusCode, r.error)
209
209
  };
210
210
  let i = r.data;
211
211
  return {
@@ -220,7 +220,7 @@ async function M(e, t) {
220
220
  applyToTicketIds: i.applyToTicketIds
221
221
  };
222
222
  } catch (e) {
223
- return A.error("Error validating promo code:", e), {
223
+ return M.error("Error validating promo code:", e), {
224
224
  valid: !1,
225
225
  error: "Network error validating code"
226
226
  };
@@ -231,7 +231,7 @@ async function le(e) {
231
231
  let t = await h(`/promo-codes/check/${e}`);
232
232
  return !t.success || t.data.hasPromoCodes === !0;
233
233
  } catch (e) {
234
- return A.error("Error checking promo codes availability:", e), !0;
234
+ return M.error("Error checking promo codes availability:", e), !0;
235
235
  }
236
236
  }
237
237
  async function ue(e, t, n) {
@@ -244,7 +244,7 @@ async function ue(e, t, n) {
244
244
  error: i.error || "Failed to apply promo code"
245
245
  };
246
246
  } catch (e) {
247
- return A.error("Error applying promo code:", e), {
247
+ return M.error("Error applying promo code:", e), {
248
248
  success: !1,
249
249
  error: "Network error applying code"
250
250
  };
@@ -307,7 +307,7 @@ async function fe(e, t = fetch, n) {
307
307
  }
308
308
  async function U(e, t, n = (e) => e) {
309
309
  try {
310
- let r = await v(e);
310
+ let r = await y(e);
311
311
  return r ? N(n(r)) : (B.error(`Failed to load (${t}): network or server error`), P(t));
312
312
  } catch (e) {
313
313
  return B.error(`Error loading (${t}):`, e), P(t);
@@ -350,27 +350,27 @@ async function ye(e, t) {
350
350
  let n = await ve(e, t);
351
351
  return n.ok ? n.data : null;
352
352
  }
353
- async function q(e, t) {
353
+ async function be(e, t) {
354
354
  try {
355
- let n = t ? `?slug=${encodeURIComponent(t)}` : "", r = await v(`${m()}/resolve/${encodeURIComponent(String(e))}${n}`);
356
- if (!r || !r.type) throw new T("entity", String(e));
355
+ let n = t ? `?slug=${encodeURIComponent(t)}` : "", r = await y(`${m()}/resolve/${encodeURIComponent(String(e))}${n}`);
356
+ if (!r || !r.type) throw new D("entity", String(e));
357
357
  return r;
358
358
  } catch (e) {
359
359
  return B.error("Error resolving public entity:", e), null;
360
360
  }
361
361
  }
362
- async function be(e, t) {
362
+ async function xe(e, t) {
363
363
  try {
364
- let n = t ? `${m()}/collections/${e}?password=${encodeURIComponent(t)}` : `${m()}/collections/${e}`, r = await v(n);
365
- if (!r) throw new T("collection", String(e));
364
+ let n = t ? `${m()}/collections/${e}?password=${encodeURIComponent(t)}` : `${m()}/collections/${e}`, r = await y(n);
365
+ if (!r) throw new D("collection", String(e));
366
366
  return r;
367
367
  } catch (e) {
368
368
  return B.error("Error fetching collection:", e), null;
369
369
  }
370
370
  }
371
- async function xe(e, t) {
371
+ async function Se(e, t) {
372
372
  try {
373
- let n = await v(`${m()}/events/${e}/check-password`, {
373
+ let n = await y(`${m()}/events/${e}/check-password`, {
374
374
  method: "POST",
375
375
  headers: { "Content-Type": "application/json" },
376
376
  body: JSON.stringify({ password: t })
@@ -382,83 +382,82 @@ async function xe(e, t) {
382
382
  }
383
383
  //#endregion
384
384
  //#region src/lib/navigation.ts
385
- function Se(e, t) {
385
+ function Ce(e, t) {
386
386
  let n = f();
387
387
  return t ? `${n}/e/${e}-${t}` : `${n}/e/${e}`;
388
388
  }
389
- function Ce(e, t, n) {
389
+ function we(e, t, n) {
390
390
  let r = n?.toString(), i = t ? `/e/${e}-${t}` : `/e/${e}`;
391
391
  return `${f()}${i}${r ? `?${r}` : ""}`;
392
392
  }
393
- function J(e) {
393
+ var Te = "get-micdrop.com";
394
+ function q(e) {
394
395
  let t = typeof e == "string" ? e.trim() : "";
395
- if (!t) return "";
396
- let n = new URL(f());
397
- return `${n.protocol}//${encodeURIComponent(t)}.${n.hostname.replace(/^www\./, "")}`;
396
+ return t ? `https://${encodeURIComponent(t)}.${Te}` : "";
398
397
  }
399
- function we(e) {
400
- let t = J(e);
398
+ function Ee(e) {
399
+ let t = q(e);
401
400
  return t ? `${t}/gift-cards/buy` : "";
402
401
  }
403
- function Te(e, t, n) {
402
+ function De(e, t, n) {
404
403
  let r = n?.toString();
405
404
  return `/${e}/${t}${r ? `?${r}` : ""}`;
406
405
  }
407
- function Ee(e) {
406
+ function Oe(e) {
408
407
  return `/${e}`;
409
408
  }
410
- function De(e) {
409
+ function ke(e) {
411
410
  return `${f()}/${e}`;
412
411
  }
413
- function Y(e, t) {
412
+ function J(e, t) {
414
413
  return `/${e}/${t}/checkout`;
415
414
  }
416
- function Oe(e) {
415
+ function Ae(e) {
417
416
  return `/?${e.toString()}`;
418
417
  }
419
- function ke(e, t, n = {}) {
420
- let r = `${Y(e, t)}/success`, i = new URLSearchParams();
418
+ function je(e, t, n = {}) {
419
+ let r = `${J(e, t)}/success`, i = new URLSearchParams();
421
420
  n.orderId && i.set("orderId", n.orderId), n.ticketCount && n.ticketCount > 0 && i.set("tickets", String(n.ticketCount));
422
421
  let a = i.toString();
423
422
  return a ? `${r}?${a}` : r;
424
423
  }
425
424
  //#endregion
426
425
  //#region src/lib/api/venues.ts
427
- var X = e("VC");
428
- async function Ae(e) {
426
+ var Y = e("VC");
427
+ async function Me(e) {
429
428
  try {
430
- if (!e) return X.warn("getVenue called without venueId"), null;
429
+ if (!e) return Y.warn("getVenue called without venueId"), null;
431
430
  let t = await h(`/venues/${e}`);
432
- return t.success ? t.data ?? null : (X.error(`Failed to fetch venue: ${t.statusCode}`), null);
431
+ return t.success ? t.data ?? null : (Y.error(`Failed to fetch venue: ${t.statusCode}`), null);
433
432
  } catch (e) {
434
- return X.error("Error fetching venue:", e), null;
433
+ return Y.error("Error fetching venue:", e), null;
435
434
  }
436
435
  }
437
- async function je(e) {
438
- let t = J(e);
436
+ async function Ne(e) {
437
+ let t = q(e);
439
438
  if (!t) return !1;
440
439
  try {
441
440
  let e = await h(`/sites/by-host/${encodeURIComponent(new URL(t).host)}`);
442
441
  return !!(e.success && e.data);
443
442
  } catch (e) {
444
- return X.warn("hasPublishedSite failed:", e), !1;
443
+ return Y.warn("hasPublishedSite failed:", e), !1;
445
444
  }
446
445
  }
447
446
  //#endregion
448
447
  //#region src/lib/api/transformers/giftCard.ts
449
- function Z(e, t) {
448
+ function X(e, t) {
450
449
  return e == null || t(e);
451
450
  }
452
- function Me(e) {
451
+ function Pe(e) {
453
452
  if (typeof e != "object" || !e) return !1;
454
453
  let t = e;
455
- 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");
454
+ 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");
456
455
  }
457
- var Ne = "We couldn't apply that gift card. Please try again.";
458
- function Pe(e) {
459
- if (!Me(e)) return {
456
+ var Fe = "We couldn't apply that gift card. Please try again.";
457
+ function Z(e) {
458
+ if (!Pe(e)) return {
460
459
  valid: !1,
461
- error: Ne
460
+ error: Fe
462
461
  };
463
462
  let t = e, n = r(d(t.appliedAmount)), i = t.remainingTotal, a = t.fullyCoveredByCard ?? i <= 0, o = !a;
464
463
  return {
@@ -475,7 +474,7 @@ function Pe(e) {
475
474
  //#endregion
476
475
  //#region src/lib/api/gift-cards.ts
477
476
  var Q = e("VC");
478
- async function Fe(e, t) {
477
+ async function Ie(e, t) {
479
478
  try {
480
479
  let n = await g(`${p()}/cart/${e}/apply-gift-card`, { giftCardCode: t });
481
480
  if (!n.success) return n.statusCode === 429 ? {
@@ -485,7 +484,7 @@ async function Fe(e, t) {
485
484
  valid: !1,
486
485
  error: n.error || "Invalid gift card code"
487
486
  });
488
- let r = Pe(n.data);
487
+ let r = Z(n.data);
489
488
  return r.valid || Q.error("Apply gift card returned an unusable payload:", n.data), r;
490
489
  } catch (e) {
491
490
  return Q.error("applyGiftCard error:", e), {
@@ -494,9 +493,9 @@ async function Fe(e, t) {
494
493
  };
495
494
  }
496
495
  }
497
- async function Ie(e, t) {
496
+ async function Le(e, t) {
498
497
  try {
499
- let n = t?.giftCardId ? { giftCardId: t.giftCardId } : t?.code ? { giftCardCode: t.code } : null, r = await _(`${p()}/cart/${e}/gift-card`, n ? { body: JSON.stringify(n) } : void 0);
498
+ let n = t?.giftCardId ? { giftCardId: t.giftCardId } : t?.code ? { giftCardCode: t.code } : null, r = await v(`${p()}/cart/${e}/gift-card`, n ? { body: JSON.stringify(n) } : void 0);
500
499
  if (!r.success) return Q.error("Remove gift card failed:", r.error), {
501
500
  success: !1,
502
501
  error: r.error || "Failed to remove gift card"
@@ -513,8 +512,8 @@ async function Ie(e, t) {
513
512
  };
514
513
  }
515
514
  }
516
- async function Le(e, n, r) {
517
- let i = ee(r);
515
+ async function Re(e, n, r) {
516
+ let i = _(r);
518
517
  try {
519
518
  let r = await g(`${p()}/cart/${e}/complete-gift-card-payment`, {
520
519
  customerName: t(n.firstName, n.lastName),
@@ -525,7 +524,7 @@ async function Le(e, n, r) {
525
524
  phoneNumber: n.phoneNumber || null,
526
525
  questionAnswer: n.questionAnswer || "",
527
526
  mailingList: n.mailingList || !1,
528
- attribution: te(),
527
+ attribution: ee(),
529
528
  ...i ? { locale: i } : {}
530
529
  });
531
530
  return r.success ? {
@@ -546,7 +545,7 @@ async function Le(e, n, r) {
546
545
  //#endregion
547
546
  //#region src/lib/api/waitlist.ts
548
547
  var $ = e("VC");
549
- async function Re(e, t, n = null, r = !1) {
548
+ async function ze(e, t, n = null, r = !1) {
550
549
  try {
551
550
  let i = { email: t };
552
551
  n && r && (i.phone = n, i.smsOptIn = !0);
@@ -566,7 +565,7 @@ async function Re(e, t, n = null, r = !1) {
566
565
  };
567
566
  }
568
567
  }
569
- async function ze(e, t) {
568
+ async function Be(e, t) {
570
569
  try {
571
570
  let n = await g(`/checkout/validate-token/${e}`, { email: t });
572
571
  return n.success ? {
@@ -586,7 +585,7 @@ async function ze(e, t) {
586
585
  };
587
586
  }
588
587
  }
589
- async function Be(e, t) {
588
+ async function Ve(e, t) {
590
589
  try {
591
590
  let n = await g(`/waitlist/requeue/${e}`, { email: t });
592
591
  return n.success ? { success: !0 } : {
@@ -600,7 +599,7 @@ async function Be(e, t) {
600
599
  };
601
600
  }
602
601
  }
603
- async function Ve(e) {
602
+ async function He(e) {
604
603
  let t = {
605
604
  waitlistEnabled: !1,
606
605
  soldOut: !1,
@@ -617,9 +616,9 @@ async function Ve(e) {
617
616
  return $.error("getWaitlistStatus error:", e), t;
618
617
  }
619
618
  }
620
- function He(e) {
619
+ function Ue(e) {
621
620
  let t = String(e % 60).padStart(2, "0");
622
621
  return e >= 3600 ? `${Math.floor(e / 3600)}:${String(Math.floor(e % 3600 / 60)).padStart(2, "0")}:${t}` : `${Math.floor(e / 60)}:${t}`;
623
622
  }
624
623
  //#endregion
625
- export { le as A, re as B, W as C, _e as D, ge as E, D as F, ne as H, k as I, oe as L, O as M, ce as N, q as O, E as P, w as R, me as S, ye as T, ie as U, C as V, Te as _, ze as a, xe as b, Ie as c, ke as d, Y as f, Se as g, Ce as h, Be as i, M as j, ue as k, Ae as l, Ee as m, Ve as n, Fe as o, De as p, Re as r, Le as s, He as t, je as u, we as v, be as w, fe as x, Oe as y, b as z };
624
+ export { le as A, te as B, W as C, _e as D, ge as E, A as F, T as H, oe as I, ie as L, j as M, ae as N, be as O, k as P, E as R, me as S, ye as T, ne as U, w 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, x as z };
@@ -1,4 +1,4 @@
1
- import { F as e, M as t, N as n, P as r } from "./api-DRQ3j7AT.js";
1
+ import { F as e, M as t, N as n, P as r } from "./api-D0rw6nGg.js";
2
2
  //#region src/lib/core/theme-engine.js
3
3
  var i = {
4
4
  primary: n.defaultThemePrimary,
@@ -1,7 +1,7 @@
1
1
  import { d as e, f as t, i as n, l as r, s as i } from "./scarcity-CwnIxi1J.js";
2
2
  import { C as a } from "./defaultLabels-Zp9QbN37.js";
3
3
  import { n as o, t as s } from "./event-c9mHeEJz.js";
4
- import { B as c, H as l, L as u, P as d, U as f, V as p } from "./api-DRQ3j7AT.js";
4
+ import { B as c, H as l, L as u, P as d, U as f, V as p } from "./api-D0rw6nGg.js";
5
5
  //#region src/lib/utils/event-transform.js
6
6
  var m = "data:image/svg+xml," + encodeURIComponent(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 300" fill="none">
7
7
  <rect width="200" height="300" fill="${d[200]}"/>