@getmicdrop/venue-calendar 4.3.73 → 4.3.75

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 (53) hide show
  1. package/dist/{AddOnCard-B4a8u09b.js → AddOnCard-BBCcY_e0.js} +2 -2
  2. package/dist/{CalendarFoundryView-f11EZ_p7.js → CalendarFoundryView-wE9hH-9r.js} +74 -61
  3. package/dist/CartView-aUQ6j-W8.js +2293 -0
  4. package/dist/{Checkout-B-CBtsR_.js → Checkout-C70GBKMD.js} +4 -4
  5. package/dist/{Checkout-DTZb9iDK.js → Checkout-CepFrHrZ.js} +10 -10
  6. package/dist/{CollectionView-D5YuX3BE.js → CollectionView-CxZ75bdk.js} +4 -4
  7. package/dist/{Event-DXRrCUe0.js → Event-DkJsuswT.js} +10 -10
  8. package/dist/{EventPage-EaRdi8oG.js → EventPage-3MeGAFET.js} +71 -71
  9. package/dist/Input-1RrhLDEl.js +313 -0
  10. package/dist/{PasswordInput-D-vqwd1R.js → PasswordInput-D_QnFlHJ.js} +20 -17
  11. package/dist/{PhoneInput-CHMAaBfv.js → PhoneInput-MqTljyak.js} +65 -65
  12. package/dist/{RecommendationsRail-DZiYj4KP.js → RecommendationsRail-CE-CKTEs.js} +1 -1
  13. package/dist/{ScarcityBadge-DI3e8o-w.js → ScarcityBadge-C3aryt_E.js} +1 -1
  14. package/dist/{SeriesPage-Bzp_rl25.js → SeriesPage-i3fdk4f9.js} +2 -2
  15. package/dist/{Success-C7vl_A39.js → Success-DIr704Wp.js} +4 -4
  16. package/dist/{api-DOG9kmjP.js → api-DpAf4w7Q.js} +150 -144
  17. package/dist/{event-transform-CL4pk66Q.js → event-transform-DfsYkBnu.js} +12 -12
  18. package/dist/{i18n-D9WV_ljM.js → i18n-B1RZttz7.js} +3 -3
  19. package/dist/seo/HostSeoController.d.ts +18 -0
  20. package/dist/seo/seo.cjs +1 -1
  21. package/dist/seo/seo.mjs +22 -15
  22. package/dist/{utils-skxxaoOa.js → utils-Bqh66dCa.js} +1 -1
  23. package/dist/venue-calendar.css +1 -1
  24. package/dist/venue-calendar.es.js +775 -739
  25. package/dist/venue-calendar.iife.js +33 -33
  26. package/dist/venue-calendar.umd.js +23 -23
  27. package/package.json +2 -2
  28. package/dist/CartView-dsyre6R-.js +0 -2293
  29. package/dist/Input-CIMsqGtu.js +0 -313
  30. /package/dist/locales/{4.3.73 → 4.3.75}/flow/de.js +0 -0
  31. /package/dist/locales/{4.3.73 → 4.3.75}/flow/es.js +0 -0
  32. /package/dist/locales/{4.3.73 → 4.3.75}/flow/fr.js +0 -0
  33. /package/dist/locales/{4.3.73 → 4.3.75}/flow/id.js +0 -0
  34. /package/dist/locales/{4.3.73 → 4.3.75}/flow/it.js +0 -0
  35. /package/dist/locales/{4.3.73 → 4.3.75}/flow/ja.js +0 -0
  36. /package/dist/locales/{4.3.73 → 4.3.75}/flow/ko.js +0 -0
  37. /package/dist/locales/{4.3.73 → 4.3.75}/flow/nl.js +0 -0
  38. /package/dist/locales/{4.3.73 → 4.3.75}/flow/pl.js +0 -0
  39. /package/dist/locales/{4.3.73 → 4.3.75}/flow/pt-br.js +0 -0
  40. /package/dist/locales/{4.3.73 → 4.3.75}/flow/tr.js +0 -0
  41. /package/dist/locales/{4.3.73 → 4.3.75}/flow/zh.js +0 -0
  42. /package/dist/locales/{4.3.73 → 4.3.75}/main/de.js +0 -0
  43. /package/dist/locales/{4.3.73 → 4.3.75}/main/es.js +0 -0
  44. /package/dist/locales/{4.3.73 → 4.3.75}/main/fr.js +0 -0
  45. /package/dist/locales/{4.3.73 → 4.3.75}/main/id.js +0 -0
  46. /package/dist/locales/{4.3.73 → 4.3.75}/main/it.js +0 -0
  47. /package/dist/locales/{4.3.73 → 4.3.75}/main/ja.js +0 -0
  48. /package/dist/locales/{4.3.73 → 4.3.75}/main/ko.js +0 -0
  49. /package/dist/locales/{4.3.73 → 4.3.75}/main/nl.js +0 -0
  50. /package/dist/locales/{4.3.73 → 4.3.75}/main/pl.js +0 -0
  51. /package/dist/locales/{4.3.73 → 4.3.75}/main/pt-br.js +0 -0
  52. /package/dist/locales/{4.3.73 → 4.3.75}/main/tr.js +0 -0
  53. /package/dist/locales/{4.3.73 → 4.3.75}/main/zh.js +0 -0
@@ -2,11 +2,11 @@ import { g as e } from "./sizing-B7ixYndz.js";
2
2
  import { C as t } from "./datetime-BYlsFaDk.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-CnrhTu2u.js";
4
4
  import { n as u, r as d } from "./Button-BmS_sz0q.js";
5
- import { F as f, N as p, P as m, R as h, V as g, W as _, l as ee, x as te, z as v } from "./orders-B-c1HnI7.js";
5
+ import { F as f, N as ee, P as p, R as m, V as h, W as g, l as te, x as ne, z as _ } from "./orders-B-c1HnI7.js";
6
6
  //#region node_modules/@getmicdrop/svelte-components/dist/utils/liveAnnouncer.js
7
- var y = null;
8
- function ne() {
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, {
7
+ var v = null;
8
+ function y() {
9
+ return v && document.body.contains(v) ? v : (v = document.createElement("div"), v.id = "a11y-live-region", v.setAttribute("role", "status"), v.setAttribute("aria-live", "polite"), v.setAttribute("aria-atomic", "true"), v.className = "sr-only", Object.assign(v.style, {
10
10
  position: "absolute",
11
11
  width: "1px",
12
12
  height: "1px",
@@ -16,16 +16,16 @@ function ne() {
16
16
  clip: "rect(0, 0, 0, 0)",
17
17
  whiteSpace: "nowrap",
18
18
  border: "0"
19
- }), document.body.appendChild(y), y);
19
+ }), document.body.appendChild(v), v);
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 = y();
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 re(e = 500) {
29
29
  let t = null;
30
30
  return (n, r) => {
31
31
  t && clearTimeout(t), t = setTimeout(() => {
@@ -35,37 +35,37 @@ 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 ie(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 ae(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
- function ae(e) {
68
+ function oe(e) {
69
69
  if (!Array.isArray(e) || e.length === 0) return {
70
70
  totalRemaining: 0,
71
71
  totalCapacity: 0,
@@ -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,
@@ -82,29 +82,29 @@ function ae(e) {
82
82
  isSoldOut: t === 0
83
83
  };
84
84
  }
85
- function E(e) {
85
+ function se(e) {
86
86
  if (!Array.isArray(e) || e.length === 0) return 0;
87
87
  let t = e.map((e) => Number(e.price ?? e.ticketPrice)).filter((e) => Number.isFinite(e) && e > 0);
88
88
  return t.length > 0 ? Math.min(...t) : 0;
89
89
  }
90
90
  //#endregion
91
91
  //#region node_modules/@getmicdrop/svelte-components/dist/transforms/event.js
92
- function D(e) {
92
+ function ce(e) {
93
93
  return e.availableTickets || e.available_tickets || e.tickets || [];
94
94
  }
95
- function O(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 T(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 k(e) {
103
- return e ? e.hasHiddenTickets === !0 || D(e).some(O) : !1;
102
+ function le(e) {
103
+ return e ? e.hasHiddenTickets === !0 || ce(e).some(T) : !1;
104
104
  }
105
105
  //#endregion
106
106
  //#region node_modules/@getmicdrop/svelte-components/dist/errors/classes/NotFoundError.js
107
- var A = class extends u {
107
+ var E = class extends u {
108
108
  constructor(e, t) {
109
109
  let n = t ? `${e} with ID ${t} not found` : `${e} not found`;
110
110
  super(n, "NOT_FOUND", {
@@ -119,22 +119,22 @@ var A = class extends u {
119
119
  getUserMessage(e) {
120
120
  return s(e)?.fromCode?.(this.code) || a(this.resourceType.toLowerCase());
121
121
  }
122
- }, j = e("VC");
123
- function oe(e, t) {
122
+ }, D = e("VC");
123
+ function ue(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";
127
127
  }
128
- async function se(e, t) {
128
+ async function O(e, t) {
129
129
  try {
130
130
  if (!t || !t.trim()) return {
131
131
  valid: !1,
132
132
  error: "Promo code is required"
133
133
  };
134
- let n = encodeURIComponent(t.trim()), r = await m(`/promo-codes/validate/${e}/${n}`);
134
+ let n = encodeURIComponent(t.trim()), r = await p(`/promo-codes/validate/${e}/${n}`);
135
135
  if (!r.success) return {
136
136
  valid: !1,
137
- error: oe(r.statusCode, r.error)
137
+ error: ue(r.statusCode, r.error)
138
138
  };
139
139
  let i = r.data;
140
140
  return {
@@ -149,31 +149,31 @@ async function se(e, t) {
149
149
  applyToTicketIds: i.applyToTicketIds
150
150
  };
151
151
  } catch (e) {
152
- return j.error("Error validating promo code:", e), {
152
+ return D.error("Error validating promo code:", e), {
153
153
  valid: !1,
154
154
  error: "Network error validating code"
155
155
  };
156
156
  }
157
157
  }
158
- async function ce(e) {
158
+ async function k(e) {
159
159
  try {
160
- let t = await m(`/promo-codes/check/${e}`);
160
+ let t = await p(`/promo-codes/check/${e}`);
161
161
  return !t.success || t.data.hasPromoCodes === !0;
162
162
  } catch (e) {
163
- return j.error("Error checking promo codes availability:", e), !0;
163
+ return D.error("Error checking promo codes availability:", e), !0;
164
164
  }
165
165
  }
166
- async function le(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(`${h()}/cart/${e}/apply-promo`, r);
170
+ let i = await f(`${m()}/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"
174
174
  };
175
175
  } catch (e) {
176
- return j.error("Error applying promo code:", e), {
176
+ return D.error("Error applying promo code:", e), {
177
177
  success: !1,
178
178
  error: "Network error applying code"
179
179
  };
@@ -181,78 +181,84 @@ async function le(e, t, n) {
181
181
  }
182
182
  //#endregion
183
183
  //#region src/lib/api/result.ts
184
- function M(e) {
184
+ function A(e) {
185
185
  return {
186
186
  ok: !0,
187
187
  data: e
188
188
  };
189
189
  }
190
- function N(e) {
190
+ function j(e) {
191
191
  return {
192
192
  ok: !1,
193
193
  error: e
194
194
  };
195
195
  }
196
- function P(e) {
196
+ function M(e) {
197
197
  return {
198
198
  ok: !1,
199
199
  error: e,
200
200
  notFound: !0
201
201
  };
202
202
  }
203
- function ue(e, t) {
203
+ function N(e, t) {
204
204
  return e.ok ? e.data : t;
205
205
  }
206
206
  //#endregion
207
207
  //#region src/lib/api/route-manifest.ts
208
- var F = "/api/v2/public", I = "/api/orders/v2/public", L = "/api/orders/v2", R = "00000000-0000-0000-0000-000000000000";
209
- `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}`, `${F}`, `${F}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}`, `${F}`, `${F}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}`, `${F}`, `${F}`, `${F}`, `${F}${R}`, `${I}`, `${I}`, `${I}`, `${I}${R}`, `${I}`, `${I}${R}`, `${I}`, `${I}${R}`, `${I}`, `${I}${R}`, `${I}`, `${I}${R}`, `${I}`, `${I}${R}`, `${I}`, `${I}${R}`, `${I}`, `${I}${R}`, `${L}`, `${L}`, `${I}`, `${I}`, `${I}`, `${I}`, `${I}`, `${I}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}`;
208
+ var P = "/api/v2/public", F = "/api/orders/v2/public", I = "/api/orders/v2", L = "00000000-0000-0000-0000-000000000000";
209
+ `${P}`, `${P}${L}`, `${P}`, `${P}${L}`, `${P}`, `${P}${L}`, `${P}`, `${P}${L}`, `${P}`, `${P}${L}`, `${P}`, `${P}${L}`, `${P}`, `${P}${L}`, `${P}`, `${P}${L}`, `${P}`, `${P}${L}`, `${P}`, `${P}`, `${P}`, `${P}`, `${P}`, `${P}${L}`, `${P}`, `${P}${L}`, `${P}`, `${P}${L}`, `${P}`, `${P}${L}`, `${P}`, `${P}${L}`, `${P}`, `${P}${L}`, `${P}`, `${P}${L}`, `${P}`, `${P}${L}`, `${P}`, `${P}${L}`, `${P}`, `${P}${L}`, `${P}`, `${P}`, `${P}`, `${P}${L}`, `${P}`, `${P}${L}`, `${P}`, `${P}${L}`, `${P}`, `${P}${L}`, `${P}`, `${P}${L}`, `${P}`, `${P}${L}`, `${P}`, `${P}${L}`, `${P}`, `${P}`, `${P}`, `${P}${L}`, `${P}`, `${P}${L}`, `${P}`, `${P}${L}`, `${P}`, `${P}${L}`, `${P}`, `${P}${L}`, `${P}`, `${P}${L}`, `${P}`, `${P}`, `${P}`, `${P}`, `${P}`, `${P}${L}`, `${P}`, `${P}${L}`, `${P}`, `${P}${L}`, `${P}`, `${P}${L}`, `${P}`, `${P}`, `${P}`, `${P}`, `${P}`, `${P}${L}`, `${F}`, `${F}`, `${F}`, `${F}${L}`, `${F}`, `${F}${L}`, `${F}`, `${F}${L}`, `${F}`, `${F}${L}`, `${F}`, `${F}${L}`, `${F}`, `${F}${L}`, `${F}`, `${F}${L}`, `${F}`, `${F}${L}`, `${I}`, `${I}`, `${F}`, `${F}`, `${F}`, `${F}`, `${F}`, `${F}${L}`, `${P}`, `${P}${L}`, `${P}`, `${P}`;
210
210
  //#endregion
211
211
  //#region src/lib/api/events.ts
212
- var z = e("VC"), B = /* @__PURE__ */ new Map();
213
- async function V(e, t = fetch, n) {
212
+ var R = e("VC"), z = /* @__PURE__ */ new Map();
213
+ async function B(e, t = fetch, n) {
214
214
  let r = n ? `${e}:pw` : String(e);
215
215
  if (t === fetch) {
216
- let e = B.get(r);
216
+ let e = z.get(r);
217
217
  if (e) return e;
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}`);
222
- if (!r.ok) return r.status === 404 ? P("event_not_found") : (z.error(`Failed to fetch event details: ${r.status}`), N("event_fetch_failed"));
221
+ let r = await t(n ? `${_()}/events/${e}?password=${encodeURIComponent(n)}` : `${_()}/events/${e}`);
222
+ if (!r.ok) return r.status === 404 ? M("event_not_found") : (R.error(`Failed to fetch event details: ${r.status}`), j("event_fetch_failed"));
223
223
  let i = await r.json();
224
- return i ? M(i) : P("event_not_found");
224
+ return i ? A(i) : M("event_not_found");
225
225
  } catch (e) {
226
- return z.error("Error fetching event details:", e), N("event_fetch_failed");
226
+ return R.error("Error fetching event details:", e), j("event_fetch_failed");
227
227
  }
228
228
  })();
229
- return t === fetch && (B.set(r, i), i.finally(() => {
230
- B.get(r) === i && B.delete(r);
229
+ return t === fetch && (z.set(r, i), i.finally(() => {
230
+ z.get(r) === i && z.delete(r);
231
231
  })), i;
232
232
  }
233
- async function H(e, t = fetch, n) {
234
- let r = await V(e, t, n);
233
+ async function V(e, t = fetch, n) {
234
+ let r = await B(e, t, n);
235
235
  return r.ok ? r.data : null;
236
236
  }
237
- async function U(e, t, n = (e) => e) {
237
+ async function H(e, t, n = (e) => e) {
238
238
  try {
239
- let r = await g(e);
240
- return r ? M(n(r)) : (z.error(`Failed to load (${t}): network or server error`), N(t));
239
+ let r = await h(e);
240
+ return r ? A(n(r)) : (R.error(`Failed to load (${t}): network or server error`), j(t));
241
241
  } catch (e) {
242
- return z.error(`Error loading (${t}):`, e), N(t);
242
+ return R.error(`Error loading (${t}):`, e), j(t);
243
243
  }
244
244
  }
245
- function de(e) {
245
+ function U(e) {
246
246
  return Array.isArray(e) ? e : [];
247
247
  }
248
248
  async function W(e, t) {
249
249
  let n = t?.trim(), r = n ? `?promoCode=${encodeURIComponent(n)}` : "";
250
- return U(`${v()}/tickets/event/${e}${r}`, "tickets_fetch_failed", de);
250
+ return H(`${_()}/tickets/event/${e}${r}`, "tickets_fetch_failed", U);
251
251
  }
252
252
  async function fe(e, t) {
253
- return ue(await W(e, t), []);
253
+ return N(await W(e, t), []);
254
254
  }
255
- function pe(e) {
255
+ async function pe(e) {
256
+ return e ? H(`${_()}/venues/organization/${e}`, "venues_fetch_failed", U) : (R.warn("fetchAllVenues called without orgId"), j("venues_missing_org_id"));
257
+ }
258
+ async function me(e) {
259
+ return N(await pe(e), []);
260
+ }
261
+ function he(e) {
256
262
  return Array.isArray(e) ? e : Array.isArray(e.events) ? e.events : [];
257
263
  }
258
264
  var G = /* @__PURE__ */ new Map();
@@ -261,132 +267,132 @@ function K(e, t, n) {
261
267
  let t = G.get(e);
262
268
  if (t) return t;
263
269
  }
264
- let r = U(e, t, (e) => pe(e));
270
+ let r = H(e, t, (e) => he(e));
265
271
  return G.set(e, r), r.finally(() => {
266
272
  G.get(e) === r && G.delete(e);
267
273
  }), r;
268
274
  }
269
- async function me(e, t, n, r) {
270
- return K(`${v()}/events/venue/${e}/month/${t}/${n}`, "month_events_fetch_failed", r);
275
+ async function ge(e, t, n, r) {
276
+ return K(`${_()}/events/venue/${e}/month/${t}/${n}`, "month_events_fetch_failed", r);
271
277
  }
272
- async function he(e, t, n, r) {
273
- return K(`${v()}/events/organization/${e}/month/${t}/${n}`, "org_month_events_fetch_failed", r);
278
+ async function _e(e, t, n, r) {
279
+ return K(`${_()}/events/organization/${e}/month/${t}/${n}`, "org_month_events_fetch_failed", r);
274
280
  }
275
- async function ge(e, t) {
276
- return U(`${v()}/series/${e}/occurrences?venueId=${t}`, "series_cta_fetch_failed");
281
+ async function q(e, t) {
282
+ return H(`${_()}/series/${e}/occurrences?venueId=${t}`, "series_cta_fetch_failed");
277
283
  }
278
- async function _e(e, t) {
279
- let n = await ge(e, t);
284
+ async function ve(e, t) {
285
+ let n = await q(e, t);
280
286
  return n.ok ? n.data : null;
281
287
  }
282
- async function ve(e, t) {
288
+ async function ye(e, t) {
283
289
  try {
284
- let n = t ? `?slug=${encodeURIComponent(t)}` : "", r = await g(`${v()}/resolve/${encodeURIComponent(String(e))}${n}`);
285
- if (!r || !r.type) throw new A("entity", String(e));
290
+ let n = t ? `?slug=${encodeURIComponent(t)}` : "", r = await h(`${_()}/resolve/${encodeURIComponent(String(e))}${n}`);
291
+ if (!r || !r.type) throw new E("entity", String(e));
286
292
  return r;
287
293
  } catch (e) {
288
- return z.error("Error resolving public entity:", e), null;
294
+ return R.error("Error resolving public entity:", e), null;
289
295
  }
290
296
  }
291
- async function ye(e, t) {
297
+ async function be(e, t) {
292
298
  try {
293
- let n = t ? `${v()}/collections/${e}?password=${encodeURIComponent(t)}` : `${v()}/collections/${e}`, r = await g(n);
294
- if (!r) throw new A("collection", String(e));
299
+ let n = t ? `${_()}/collections/${e}?password=${encodeURIComponent(t)}` : `${_()}/collections/${e}`, r = await h(n);
300
+ if (!r) throw new E("collection", String(e));
295
301
  return r;
296
302
  } catch (e) {
297
- return z.error("Error fetching collection:", e), null;
303
+ return R.error("Error fetching collection:", e), null;
298
304
  }
299
305
  }
300
- async function be(e, t) {
306
+ async function xe(e, t) {
301
307
  try {
302
- let n = await g(`${v()}/events/${e}/check-password`, {
308
+ let n = await h(`${_()}/events/${e}/check-password`, {
303
309
  method: "POST",
304
310
  headers: { "Content-Type": "application/json" },
305
311
  body: JSON.stringify({ password: t })
306
312
  });
307
313
  return typeof n == "boolean" ? { valid: n } : { valid: n?.valid === !0 };
308
314
  } catch (e) {
309
- return z.error("Error checking event password:", e), { valid: !1 };
315
+ return R.error("Error checking event password:", e), { valid: !1 };
310
316
  }
311
317
  }
312
318
  //#endregion
313
319
  //#region src/lib/navigation.ts
314
- function xe(e, t) {
315
- let n = _();
320
+ function Se(e, t) {
321
+ let n = g();
316
322
  return t ? `${n}/e/${e}-${t}` : `${n}/e/${e}`;
317
323
  }
318
- function Se(e, t, n) {
324
+ function Ce(e, t, n) {
319
325
  let r = n?.toString(), i = t ? `/e/${e}-${t}` : `/e/${e}`;
320
- return `${_()}${i}${r ? `?${r}` : ""}`;
326
+ return `${g()}${i}${r ? `?${r}` : ""}`;
321
327
  }
322
- var Ce = "get-micdrop.com";
323
- function q(e) {
328
+ var we = "get-micdrop.com";
329
+ function J(e) {
324
330
  let t = typeof e == "string" ? e.trim() : "";
325
- return t ? `https://${encodeURIComponent(t)}.${Ce}` : "";
331
+ return t ? `https://${encodeURIComponent(t)}.${we}` : "";
326
332
  }
327
- function we(e) {
328
- let t = q(e);
333
+ function Te(e) {
334
+ let t = J(e);
329
335
  return t ? `${t}/gift-cards/buy` : "";
330
336
  }
331
- function Te(e, t, n) {
337
+ function Ee(e, t, n) {
332
338
  let r = n?.toString();
333
339
  return `/${e}/${t}${r ? `?${r}` : ""}`;
334
340
  }
335
- function Ee(e) {
341
+ function De(e) {
336
342
  return `/${e}`;
337
343
  }
338
- function De(e) {
339
- return `${_()}/${e}`;
344
+ function Oe(e) {
345
+ return `${g()}/${e}`;
340
346
  }
341
- function J(e, t) {
347
+ function Y(e, t) {
342
348
  return `/${e}/${t}/checkout`;
343
349
  }
344
- function Oe(e) {
350
+ function ke(e) {
345
351
  return `/?${e.toString()}`;
346
352
  }
347
- function ke(e, t, n = {}) {
348
- let r = `${J(e, t)}/success`, i = new URLSearchParams();
353
+ function Ae(e, t, n = {}) {
354
+ let r = `${Y(e, t)}/success`, i = new URLSearchParams();
349
355
  n.orderId && i.set("orderId", n.orderId), n.ticketCount && n.ticketCount > 0 && i.set("tickets", String(n.ticketCount));
350
356
  let a = i.toString();
351
357
  return a ? `${r}?${a}` : r;
352
358
  }
353
359
  //#endregion
354
360
  //#region src/lib/api/venues.ts
355
- var Y = e("VC");
356
- async function Ae(e) {
361
+ var X = e("VC");
362
+ async function je(e) {
357
363
  try {
358
- if (!e) return Y.warn("getVenue called without venueId"), null;
359
- let t = await m(`/venues/${e}`);
360
- return t.success ? t.data ?? null : (Y.error(`Failed to fetch venue: ${t.statusCode}`), null);
364
+ if (!e) return X.warn("getVenue called without venueId"), null;
365
+ let t = await p(`/venues/${e}`);
366
+ return t.success ? t.data ?? null : (X.error(`Failed to fetch venue: ${t.statusCode}`), null);
361
367
  } catch (e) {
362
- return Y.error("Error fetching venue:", e), null;
368
+ return X.error("Error fetching venue:", e), null;
363
369
  }
364
370
  }
365
- async function je(e) {
366
- let t = q(e);
371
+ async function Me(e) {
372
+ let t = J(e);
367
373
  if (!t) return !1;
368
374
  try {
369
- let e = await m(`/sites/by-host/${encodeURIComponent(new URL(t).host)}`);
375
+ let e = await p(`/sites/by-host/${encodeURIComponent(new URL(t).host)}`);
370
376
  return !!(e.success && e.data);
371
377
  } catch (e) {
372
- return Y.warn("hasPublishedSite failed:", e), !1;
378
+ return X.warn("hasPublishedSite failed:", e), !1;
373
379
  }
374
380
  }
375
381
  //#endregion
376
382
  //#region src/lib/api/transformers/giftCard.ts
377
- function X(e, t) {
383
+ function Z(e, t) {
378
384
  return e == null || t(e);
379
385
  }
380
- function Me(e) {
386
+ function Ne(e) {
381
387
  if (typeof e != "object" || !e) return !1;
382
388
  let t = e;
383
- 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");
389
+ 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");
384
390
  }
385
- var Ne = "We couldn't apply that gift card. Please try again.";
386
- function Pe(e) {
387
- if (!Me(e)) return {
391
+ var Pe = "We couldn't apply that gift card. Please try again.";
392
+ function Fe(e) {
393
+ if (!Ne(e)) return {
388
394
  valid: !1,
389
- error: Ne
395
+ error: Pe
390
396
  };
391
397
  let t = e, i = n(r(t.appliedAmount)), a = t.remainingTotal, o = t.fullyCoveredByCard ?? a <= 0, s = !o;
392
398
  return {
@@ -402,30 +408,30 @@ function Pe(e) {
402
408
  }
403
409
  //#endregion
404
410
  //#region src/lib/api/gift-cards.ts
405
- var Z = e("VC");
406
- async function Fe(e, t) {
411
+ var Q = e("VC");
412
+ async function Ie(e, t) {
407
413
  try {
408
- let n = await f(`${h()}/cart/${e}/apply-gift-card`, { giftCardCode: t });
414
+ let n = await f(`${m()}/cart/${e}/apply-gift-card`, { giftCardCode: t });
409
415
  if (!n.success) return n.statusCode === 429 ? {
410
416
  valid: !1,
411
417
  error: "Too many attempts. Please wait a moment and try again."
412
- } : (Z.error("Apply gift card failed:", n.error), {
418
+ } : (Q.error("Apply gift card failed:", n.error), {
413
419
  valid: !1,
414
420
  error: n.error || "Invalid gift card code"
415
421
  });
416
- let r = Pe(n.data);
417
- return r.valid || Z.error("Apply gift card returned an unusable payload:", n.data), r;
422
+ let r = Fe(n.data);
423
+ return r.valid || Q.error("Apply gift card returned an unusable payload:", n.data), r;
418
424
  } catch (e) {
419
- return Z.error("applyGiftCard error:", e), {
425
+ return Q.error("applyGiftCard error:", e), {
420
426
  valid: !1,
421
427
  error: "Network error. Please check your connection and try again."
422
428
  };
423
429
  }
424
430
  }
425
- async function Q(e, t) {
431
+ async function Le(e, t) {
426
432
  try {
427
- let n = t?.giftCardId ? { giftCardId: t.giftCardId } : t?.code ? { giftCardCode: t.code } : null, r = await p(`${h()}/cart/${e}/gift-card`, n ? { body: JSON.stringify(n) } : void 0);
428
- if (!r.success) return Z.error("Remove gift card failed:", r.error), {
433
+ 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);
434
+ if (!r.success) return Q.error("Remove gift card failed:", r.error), {
429
435
  success: !1,
430
436
  error: r.error || "Failed to remove gift card"
431
437
  };
@@ -435,16 +441,16 @@ async function Q(e, t) {
435
441
  ...typeof a == "number" ? { remainingTotal: a } : {}
436
442
  };
437
443
  } catch (e) {
438
- return Z.error("removeGiftCard error:", e), {
444
+ return Q.error("removeGiftCard error:", e), {
439
445
  success: !1,
440
446
  error: "Network error. Please check your connection and try again."
441
447
  };
442
448
  }
443
449
  }
444
- async function Ie(e, n, r) {
445
- let i = ee(r);
450
+ async function Re(e, n, r) {
451
+ let i = te(r);
446
452
  try {
447
- let r = await f(`${h()}/cart/${e}/complete-gift-card-payment`, {
453
+ let r = await f(`${m()}/cart/${e}/complete-gift-card-payment`, {
448
454
  customerName: t(n.firstName, n.lastName),
449
455
  customerEmail: n.email,
450
456
  firstName: n.firstName,
@@ -453,19 +459,19 @@ async function Ie(e, n, r) {
453
459
  phoneNumber: n.phoneNumber || null,
454
460
  questionAnswer: n.questionAnswer || "",
455
461
  mailingList: n.mailingList || !1,
456
- attribution: te(),
462
+ attribution: ne(),
457
463
  ...i ? { locale: i } : {}
458
464
  });
459
465
  return r.success ? {
460
466
  success: !0,
461
467
  orderId: r.data?.orderId,
462
468
  confirmationNumber: r.data?.confirmationNumber
463
- } : (Z.error("Complete gift card payment failed:", r.error), {
469
+ } : (Q.error("Complete gift card payment failed:", r.error), {
464
470
  success: !1,
465
471
  error: r.error || "Failed to complete payment"
466
472
  });
467
473
  } catch (e) {
468
- return Z.error("completeGiftCardPayment error:", e), {
474
+ return Q.error("completeGiftCardPayment error:", e), {
469
475
  success: !1,
470
476
  error: "Network error. Please check your connection and try again."
471
477
  };
@@ -473,8 +479,8 @@ async function Ie(e, n, r) {
473
479
  }
474
480
  //#endregion
475
481
  //#region src/lib/api/cart-addons.ts
476
- var Le = e("VC");
477
- async function Re(e, t) {
482
+ var ze = e("VC");
483
+ async function Be(e, t) {
478
484
  let n = (e) => ({
479
485
  success: !1,
480
486
  error: e,
@@ -489,7 +495,7 @@ async function Re(e, t) {
489
495
  !Number.isNaN(t) && n > 0 && (r[t] = n);
490
496
  }
491
497
  try {
492
- let t = await f(`${h()}/cart/${e}/add-ons`, { addOnQuantities: r });
498
+ let t = await f(`${m()}/cart/${e}/add-ons`, { addOnQuantities: r });
493
499
  if (!t.success) return n(t.error || null);
494
500
  let i = t.data || {};
495
501
  return {
@@ -500,13 +506,13 @@ async function Re(e, t) {
500
506
  repriced: i.repriced === !0
501
507
  };
502
508
  } catch (e) {
503
- return Le.error("updateCartAddOns error:", e), n(null);
509
+ return ze.error("updateCartAddOns error:", e), n(null);
504
510
  }
505
511
  }
506
512
  //#endregion
507
513
  //#region src/lib/api/waitlist.ts
508
514
  var $ = e("VC");
509
- async function ze(e, t, n = null, r = !1) {
515
+ async function Ve(e, t, n = null, r = !1) {
510
516
  try {
511
517
  let i = { email: t };
512
518
  n && r && (i.phone = n, i.smsOptIn = !0);
@@ -526,7 +532,7 @@ async function ze(e, t, n = null, r = !1) {
526
532
  };
527
533
  }
528
534
  }
529
- async function Be(e, t) {
535
+ async function He(e, t) {
530
536
  try {
531
537
  let n = await f(`/checkout/validate-token/${e}`, { email: t });
532
538
  return n.success ? {
@@ -546,7 +552,7 @@ async function Be(e, t) {
546
552
  };
547
553
  }
548
554
  }
549
- async function Ve(e, t) {
555
+ async function Ue(e, t) {
550
556
  try {
551
557
  let n = await f(`/waitlist/requeue/${e}`, { email: t });
552
558
  return n.success ? { success: !0 } : {
@@ -560,14 +566,14 @@ async function Ve(e, t) {
560
566
  };
561
567
  }
562
568
  }
563
- async function He(e) {
569
+ async function We(e) {
564
570
  let t = {
565
571
  waitlistEnabled: !1,
566
572
  soldOut: !1,
567
573
  gated: !1
568
574
  };
569
575
  try {
570
- let n = await m(`/events/${e}/waitlist/status`);
576
+ let n = await p(`/events/${e}/waitlist/status`);
571
577
  return n.success ? {
572
578
  waitlistEnabled: !!n.data?.waitlistEnabled,
573
579
  soldOut: !!n.data?.soldOut,
@@ -577,9 +583,9 @@ async function He(e) {
577
583
  return $.error("getWaitlistStatus error:", e), t;
578
584
  }
579
585
  }
580
- function Ue(e) {
586
+ function Ge(e) {
581
587
  let t = String(e % 60).padStart(2, "0");
582
588
  return e >= 3600 ? `${Math.floor(e / 3600)}:${String(Math.floor(e % 3600 / 60)).padStart(2, "0")}:${t}` : `${Math.floor(e / 60)}:${t}`;
583
589
  }
584
590
  //#endregion
585
- export { le as A, b as B, fe as C, me as D, _e as E, C as F, ae as I, re as L, se as M, k as N, he as O, O as P, ie as R, H as S, ye as T, x as V, xe as _, Be as a, Oe as b, Ie as c, je as d, ke as f, Se as g, Ee as h, Ve as i, ce as j, ve as k, Q as l, De as m, He as n, Re as o, J as p, ze as r, Fe as s, Ue as t, Ae as u, Te as v, W as w, be as x, we as y, E as z };
591
+ export { ye as A, se as B, V as C, ve as D, be as E, T as F, re as H, S as I, oe as L, k as M, O as N, ge as O, le as P, ie as R, me as S, W as T, b as V, Se as _, He as a, ke as b, Re as c, Me as d, Ae as f, Ce as g, De as h, Ue as i, de as j, _e as k, Le as l, Oe as m, We as n, Be as o, Y as p, Ve as r, Ie as s, Ge as t, je as u, Ee as v, fe as w, xe as x, Te as y, ae as z };