@getmicdrop/venue-calendar 4.3.110 → 4.3.112

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 (65) hide show
  1. package/dist/{AddOnCard-DpOBDI9b.js → AddOnCard-D_d9UHNs.js} +64 -64
  2. package/dist/{ArrowLeftIcon-C_zVqV6t.js → ArrowLeftIcon-Bs7mUb9F.js} +1 -1
  3. package/dist/{BlockPlaceholder-DzMU967I.js → BlockPlaceholder-BgUO-Q5N.js} +1 -1
  4. package/dist/{Calendar-BoaDTy3W.js → Calendar-BMGUJww4.js} +23 -23
  5. package/dist/{CalendarFoundryView-BjOBcBxO.js → CalendarFoundryView-D4glgsR8.js} +614 -614
  6. package/dist/{CalendarIcon-BVyCicqG.js → CalendarIcon-29_IwvHT.js} +1 -1
  7. package/dist/{CartView-BRigpJWl.js → CartView-IpUUucvW.js} +252 -252
  8. package/dist/{Checkout-CBB_BrkW.js → Checkout-BhqL-kmQ.js} +11 -11
  9. package/dist/{Checkout-BWRhw-cI.js → Checkout-JGthqqs-.js} +17 -17
  10. package/dist/{CheckoutTimer-B_bbKzpt.js → CheckoutTimer-BYmPa5AI.js} +1 -1
  11. package/dist/{ChevronDownIcon-CqKYBZhG.js → ChevronDownIcon-Denff3IQ.js} +1 -1
  12. package/dist/{CloseIcon-BhTQvxHn.js → CloseIcon-BnwP0Nx3.js} +1 -1
  13. package/dist/{CollectionView-BBP2uTOg.js → CollectionView-DlkRy1E6.js} +4 -4
  14. package/dist/{Event-BSw_iPJ0.js → Event-BlER5lob.js} +194 -194
  15. package/dist/{EventPage-BTSrJvp0.js → EventPage-DSkb5f6a.js} +18 -18
  16. package/dist/{Input-xj8FOiHB.js → Input-CvK81EKX.js} +1 -1
  17. package/dist/{MailIcon-BaaO5yAE.js → MailIcon-DdNZD4Cv.js} +1 -1
  18. package/dist/{PasswordInput-B_473cLh.js → PasswordInput-CJ7o73tQ.js} +1 -1
  19. package/dist/{RecommendationsRail-S1I8syg9.js → RecommendationsRail-DDbHjhC_.js} +4 -4
  20. package/dist/{ScarcityBadge-C-VEn2fs.js → ScarcityBadge-BiseR8MX.js} +3 -3
  21. package/dist/{SeriesPage-cOjGzgq0.js → SeriesPage-qLLiHJSN.js} +2 -2
  22. package/dist/{Success-CZXSz6kP.js → Success-TfcsaUGL.js} +221 -208
  23. package/dist/{TagIcon-78loB6Ff.js → TagIcon-DtX06EKe.js} +1 -1
  24. package/dist/{WarningCircleIcon-BlA4oF-K.js → WarningCircleIcon-BEbthCpd.js} +1 -1
  25. package/dist/{WarningTriIcon-B9M_X71V.js → WarningTriIcon-Ba68mCD0.js} +1 -1
  26. package/dist/api/api.cjs +1 -1
  27. package/dist/api/api.mjs +1 -0
  28. package/dist/{api-CoAKej3S.js → api-OjCXecbx.js} +206 -152
  29. package/dist/{copyToClipboard-GCd8x6uN.js → copyToClipboard-pMnstOiv.js} +1 -1
  30. package/dist/{createErrorGate.svelte-D6SJK51n.js → createErrorGate.svelte-DgREjCbj.js} +1 -1
  31. package/dist/{datetime-DWmAPk9U.js → datetime-vgtbUysw.js} +61 -42
  32. package/dist/{event-transform-C5c5HKWF.js → event-transform-Dgb8zlg2.js} +15 -15
  33. package/dist/{href-CZPFcjzy.js → href-Dv7vLRDA.js} +1 -1
  34. package/dist/{i18n-dZGBYr5W.js → i18n-B-mcjNXL.js} +95 -95
  35. package/dist/to-event-card-props-BquqSDuB.js +383 -0
  36. package/dist/{utils-XAD2Mb21.js → utils-Baq55Xy_.js} +1 -1
  37. package/dist/venue-calendar.es.js +499 -546
  38. package/dist/venue-calendar.iife.js +27 -27
  39. package/dist/venue-calendar.umd.js +53 -53
  40. package/package.json +1 -1
  41. package/dist/to-event-card-props-DfSOYeKe.js +0 -402
  42. /package/dist/locales/{4.3.110 → 4.3.112}/flow/de.js +0 -0
  43. /package/dist/locales/{4.3.110 → 4.3.112}/flow/es.js +0 -0
  44. /package/dist/locales/{4.3.110 → 4.3.112}/flow/fr.js +0 -0
  45. /package/dist/locales/{4.3.110 → 4.3.112}/flow/id.js +0 -0
  46. /package/dist/locales/{4.3.110 → 4.3.112}/flow/it.js +0 -0
  47. /package/dist/locales/{4.3.110 → 4.3.112}/flow/ja.js +0 -0
  48. /package/dist/locales/{4.3.110 → 4.3.112}/flow/ko.js +0 -0
  49. /package/dist/locales/{4.3.110 → 4.3.112}/flow/nl.js +0 -0
  50. /package/dist/locales/{4.3.110 → 4.3.112}/flow/pl.js +0 -0
  51. /package/dist/locales/{4.3.110 → 4.3.112}/flow/pt-br.js +0 -0
  52. /package/dist/locales/{4.3.110 → 4.3.112}/flow/tr.js +0 -0
  53. /package/dist/locales/{4.3.110 → 4.3.112}/flow/zh.js +0 -0
  54. /package/dist/locales/{4.3.110 → 4.3.112}/main/de.js +0 -0
  55. /package/dist/locales/{4.3.110 → 4.3.112}/main/es.js +0 -0
  56. /package/dist/locales/{4.3.110 → 4.3.112}/main/fr.js +0 -0
  57. /package/dist/locales/{4.3.110 → 4.3.112}/main/id.js +0 -0
  58. /package/dist/locales/{4.3.110 → 4.3.112}/main/it.js +0 -0
  59. /package/dist/locales/{4.3.110 → 4.3.112}/main/ja.js +0 -0
  60. /package/dist/locales/{4.3.110 → 4.3.112}/main/ko.js +0 -0
  61. /package/dist/locales/{4.3.110 → 4.3.112}/main/nl.js +0 -0
  62. /package/dist/locales/{4.3.110 → 4.3.112}/main/pl.js +0 -0
  63. /package/dist/locales/{4.3.110 → 4.3.112}/main/pt-br.js +0 -0
  64. /package/dist/locales/{4.3.110 → 4.3.112}/main/tr.js +0 -0
  65. /package/dist/locales/{4.3.110 → 4.3.112}/main/zh.js +0 -0
@@ -1,12 +1,12 @@
1
1
  import { g as e } from "./sizing-B7ixYndz.js";
2
- import { C as t } from "./datetime-DWmAPk9U.js";
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
- import { n as u, r as d } from "./Button-VUB2WJ88.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-BWVwv3P0.js";
2
+ import { E as t, v as n } from "./datetime-vgtbUysw.js";
3
+ import { A as r, L as i, _ as a, c as o, g as s, l as c, v as l, x as u } from "./defaultLabels-CsRGNP7f.js";
4
+ import { n as d, r as f } from "./Button-VUB2WJ88.js";
5
+ import { F as p, G as m, N as h, P as g, R as _, U as ee, V as v, l as te, x as ne, z as y } from "./orders-BWVwv3P0.js";
6
6
  //#region node_modules/@getmicdrop/svelte-components/dist/utils/liveAnnouncer.js
7
- var y = null;
7
+ var b = null;
8
8
  function re() {
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, {
9
+ return b && document.body.contains(b) ? b : (b = document.createElement("div"), b.id = "a11y-live-region", b.setAttribute("role", "status"), b.setAttribute("aria-live", "polite"), b.setAttribute("aria-atomic", "true"), b.className = "sr-only", Object.assign(b.style, {
10
10
  position: "absolute",
11
11
  width: "1px",
12
12
  height: "1px",
@@ -16,54 +16,54 @@ function re() {
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(b), b);
20
20
  }
21
- function b(e, t = {}) {
21
+ function x(e, t = {}) {
22
22
  if (typeof document > "u") return;
23
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 ie(e = 500) {
28
+ function S(e = 500) {
29
29
  let t = null;
30
30
  return (n, r) => {
31
31
  t && clearTimeout(t), t = setTimeout(() => {
32
- b(n, r), t = null;
32
+ x(n, r), t = null;
33
33
  }, e);
34
34
  };
35
35
  }
36
36
  //#endregion
37
37
  //#region node_modules/@getmicdrop/svelte-components/dist/transforms/ticket.js
38
- var x = {
38
+ var C = {
39
39
  EVERYWHERE: 0,
40
40
  ONLINE_ONLY: 1,
41
41
  BOX_OFFICE_ONLY: 2
42
- }, S = {
42
+ }, w = {
43
43
  VISIBLE: 0,
44
44
  HIDDEN: 1,
45
45
  PROMO_ONLY: 2
46
46
  };
47
- function C(e) {
47
+ function T(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 w(e, t) {
50
+ function E(e, t) {
51
51
  return e.totalCapacity ?? e.quantity ?? t;
52
52
  }
53
- function T(e) {
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
- if (!c(n) && !a) return "scheduled";
56
- if (!c(r) && !s) return "sales_ended";
57
- if (a && o(t, a) < 0) return "scheduled";
58
- if (s && o(t, s) > 0) return "sales_ended";
53
+ function D(e) {
54
+ let t = f(), n = a(e.effectiveSalesBegin, e.salesBegin, e.saleStartDate) ?? null, r = a(e.effectiveSalesEnd, e.salesEnd, e.saleEndDate) ?? null, i = u(n), o = u(r);
55
+ if (!l(n) && !i) return "scheduled";
56
+ if (!l(r) && !o) return "sales_ended";
57
+ if (i && s(t, i) < 0) return "scheduled";
58
+ if (o && s(t, o) > 0) return "sales_ended";
59
59
  if (e.soldOut === !0) return "sold_out";
60
- let u = C(e), f = w(e, u);
61
- return u === 0 ? "sold_out" : f > 0 && u / f < .1 ? "low" : "on_sale";
60
+ let c = T(e), d = E(e, c);
61
+ return c === 0 ? "sold_out" : d > 0 && c / d < .1 ? "low" : "on_sale";
62
62
  }
63
- function E(e, t = {}) {
63
+ function ie(e, t = {}) {
64
64
  if (!Array.isArray(e)) return [];
65
65
  let n = e;
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;
66
+ return t.excludeDoorOnly && (n = n.filter((e) => e.salesChannel !== C.BOX_OFFICE_ONLY)), t.publicOnly && (n = n.filter((e) => e.visibility === w.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 = C(r);
77
- t += e, n += w(r, e);
76
+ let e = T(r);
77
+ t += e, n += E(r, e);
78
78
  }
79
79
  return {
80
80
  totalRemaining: t,
@@ -92,19 +92,19 @@ function oe(e) {
92
92
  function se(e) {
93
93
  return e.availableTickets || e.available_tickets || e.tickets || [];
94
94
  }
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
- 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
- if (!c(n) && !a || !c(r) && !s || a && o(a, t) > 0 || s && o(s, t) < 0) return !1;
99
- let u = e.remainingCapacity ?? e.quantityRemaining ?? e.quantity;
100
- return !(e.soldOut || u != null && u <= 0);
95
+ function O(e) {
96
+ if (!e || !(e.isHidden === !0 || typeof e.visibility == "number" && e.visibility >= w.HIDDEN) || e.salesChannel === C.BOX_OFFICE_ONLY) return !1;
97
+ let t = f(), n = a(e.effectiveSalesBegin, e.salesBegin, e.salesStart, e.saleBegin, e.onSaleStart, e.saleStartDate), r = a(e.effectiveSalesEnd, e.salesEnd, e.saleEnd, e.onSaleEnd, e.saleEndDate), i = u(n), o = u(r);
98
+ if (!l(n) && !i || !l(r) && !o || i && s(i, t) > 0 || o && s(o, t) < 0) return !1;
99
+ let c = e.remainingCapacity ?? e.quantityRemaining ?? e.quantity;
100
+ return !(e.soldOut || c != null && c <= 0);
101
101
  }
102
- function ce(e) {
103
- return e ? e.hasHiddenTickets === !0 || se(e).some(D) : !1;
102
+ function k(e) {
103
+ return e ? e.hasHiddenTickets === !0 || se(e).some(O) : !1;
104
104
  }
105
105
  //#endregion
106
106
  //#region node_modules/@getmicdrop/svelte-components/dist/errors/classes/NotFoundError.js
107
- var O = class extends u {
107
+ var A = class extends d {
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", {
@@ -117,24 +117,74 @@ var O = class extends u {
117
117
  }), this.name = "NotFoundError", this.resourceType = e, this.resourceId = t;
118
118
  }
119
119
  getUserMessage(e) {
120
- return s(e)?.fromCode?.(this.code) || a(this.resourceType.toLowerCase());
120
+ return c(e)?.fromCode?.(this.code) || o(this.resourceType.toLowerCase());
121
+ }
122
+ }, j = 0;
123
+ function ce() {
124
+ return j > 0;
125
+ }
126
+ var le = class {
127
+ onNavigate;
128
+ handleHashChange;
129
+ prevEntityKey;
130
+ counted;
131
+ constructor(e) {
132
+ this.onNavigate = e.onNavigate, this.counted = !1, this.prevEntityKey = this.getEntityKey(), this.handleHashChange = () => {
133
+ let e = this.getEntityKey();
134
+ e !== this.prevEntityKey && (this.prevEntityKey = e, this.onNavigate(this.readState()));
135
+ }, typeof window < "u" && (window.addEventListener("hashchange", this.handleHashChange), j++, this.counted = !0);
136
+ }
137
+ readState() {
138
+ return typeof window > "u" ? {
139
+ entity: null,
140
+ month: null
141
+ } : {
142
+ entity: this.readEntityFromHash(),
143
+ month: new URLSearchParams(window.location.search).get("m") || null
144
+ };
145
+ }
146
+ pushEntity(e, t) {
147
+ if (typeof window > "u") return;
148
+ let n = `#${e}${t ? "-" + t : ""}`;
149
+ this.prevEntityKey = `${e}`, this.replaceHash(n);
150
+ }
151
+ pushListing() {
152
+ typeof window > "u" || (this.prevEntityKey = "", this.replaceHash(""));
153
+ }
154
+ setMonth(e) {
155
+ if (typeof window > "u") return;
156
+ let t = new URL(window.location.href);
157
+ t.searchParams.set("m", e), window.history.replaceState({ micdrop: !0 }, "", t.toString());
158
+ }
159
+ destroy() {
160
+ typeof window < "u" && window.removeEventListener("hashchange", this.handleHashChange), this.counted && (this.counted = !1, j--);
161
+ }
162
+ readEntityFromHash() {
163
+ return n((window.location.hash || "").replace(/^#/, ""));
121
164
  }
122
- }, k = e("VC");
123
- function A(e, t) {
165
+ replaceHash(e) {
166
+ let t = new URL(window.location.href);
167
+ t.hash = e, window.history.replaceState({ micdrop: !0 }, "", t.toString());
168
+ }
169
+ getEntityKey() {
170
+ return typeof window > "u" ? "" : this.readEntityFromHash()?.id ?? "";
171
+ }
172
+ }, M = e("VC");
173
+ function ue(e, t) {
124
174
  if (e === 404) return "Promo code isn't valid.";
125
175
  let n = (t ?? "").toLowerCase();
126
176
  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
177
  }
128
- async function le(e, t) {
178
+ async function de(e, t) {
129
179
  try {
130
180
  if (!t || !t.trim()) return {
131
181
  valid: !1,
132
182
  error: "Promo code is required"
133
183
  };
134
- let n = encodeURIComponent(t.trim()), r = await m(`/promo-codes/validate/${e}/${n}`);
184
+ let n = encodeURIComponent(t.trim()), r = await g(`/promo-codes/validate/${e}/${n}`);
135
185
  if (!r.success) return {
136
186
  valid: !1,
137
- error: A(r.statusCode, r.error)
187
+ error: ue(r.statusCode, r.error)
138
188
  };
139
189
  let i = r.data;
140
190
  return {
@@ -149,31 +199,31 @@ async function le(e, t) {
149
199
  applyToTicketIds: i.applyToTicketIds
150
200
  };
151
201
  } catch (e) {
152
- return k.error("Error validating promo code:", e), {
202
+ return M.error("Error validating promo code:", e), {
153
203
  valid: !1,
154
204
  error: "Network error validating code"
155
205
  };
156
206
  }
157
207
  }
158
- async function ue(e) {
208
+ async function fe(e) {
159
209
  try {
160
- let t = await m(`/promo-codes/check/${e}`);
210
+ let t = await g(`/promo-codes/check/${e}`);
161
211
  return !t.success || t.data.hasPromoCodes === !0;
162
212
  } catch (e) {
163
- return k.error("Error checking promo codes availability:", e), !0;
213
+ return M.error("Error checking promo codes availability:", e), !0;
164
214
  }
165
215
  }
166
- async function de(e, t, n) {
216
+ async function pe(e, t, n) {
167
217
  try {
168
218
  let r = { promoCode: t };
169
219
  n && Object.keys(n).length > 0 && (r.productQuantities = n);
170
- let i = await f(`${h()}/cart/${e}/apply-promo`, r);
220
+ let i = await p(`${_()}/cart/${e}/apply-promo`, r);
171
221
  return i.success ? { success: !0 } : {
172
222
  success: !1,
173
223
  error: i.error || "Failed to apply promo code"
174
224
  };
175
225
  } catch (e) {
176
- return k.error("Error applying promo code:", e), {
226
+ return M.error("Error applying promo code:", e), {
177
227
  success: !1,
178
228
  error: "Network error applying code"
179
229
  };
@@ -181,65 +231,65 @@ async function de(e, t, n) {
181
231
  }
182
232
  //#endregion
183
233
  //#region src/lib/api/result.ts
184
- function j(e) {
234
+ function N(e) {
185
235
  return {
186
236
  ok: !0,
187
237
  data: e
188
238
  };
189
239
  }
190
- function M(e) {
240
+ function P(e) {
191
241
  return {
192
242
  ok: !1,
193
243
  error: e
194
244
  };
195
245
  }
196
- function N(e) {
246
+ function F(e) {
197
247
  return {
198
248
  ok: !1,
199
249
  error: e,
200
250
  notFound: !0
201
251
  };
202
252
  }
203
- function P(e, t) {
253
+ function I(e, t) {
204
254
  return e.ok ? e.data : t;
205
255
  }
206
256
  //#endregion
207
257
  //#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}`;
258
+ var L = "/api/v2/public", R = "/api/orders/v2/public", z = "/api/orders/v2", B = "00000000-0000-0000-0000-000000000000";
259
+ `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}`, `${L}`, `${L}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}`, `${L}`, `${L}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}`, `${L}`, `${L}`, `${L}`, `${L}${B}`, `${R}`, `${R}`, `${R}`, `${R}${B}`, `${R}`, `${R}${B}`, `${R}`, `${R}${B}`, `${R}`, `${R}${B}`, `${R}`, `${R}${B}`, `${R}`, `${R}${B}`, `${R}`, `${R}${B}`, `${R}`, `${R}${B}`, `${z}`, `${z}`, `${R}`, `${R}`, `${R}`, `${R}`, `${R}`, `${R}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}`;
210
260
  //#endregion
211
261
  //#region src/lib/api/events.ts
212
- var z = e("VC"), B = /* @__PURE__ */ new Map();
213
- async function V(e, t = fetch, n) {
262
+ var V = e("VC"), H = /* @__PURE__ */ new Map();
263
+ async function me(e, t = fetch, n) {
214
264
  let r = n ? `${e}:pw` : String(e);
215
265
  if (t === fetch) {
216
- let e = B.get(r);
266
+ let e = H.get(r);
217
267
  if (e) return e;
218
268
  }
219
269
  let i = (async () => {
220
270
  try {
221
- let r = await t(n ? `${v()}/events/${e}?password=${encodeURIComponent(n)}` : `${v()}/events/${e}`, { headers: g() });
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"));
271
+ let r = await t(n ? `${y()}/events/${e}?password=${encodeURIComponent(n)}` : `${y()}/events/${e}`, { headers: ee() });
272
+ if (!r.ok) return r.status === 404 ? F("event_not_found") : (V.error(`Failed to fetch event details: ${r.status}`), P("event_fetch_failed"));
223
273
  let i = await r.json();
224
- return i ? j(i) : N("event_not_found");
274
+ return i ? N(i) : F("event_not_found");
225
275
  } catch (e) {
226
- return z.error("Error fetching event details:", e), M("event_fetch_failed");
276
+ return V.error("Error fetching event details:", e), P("event_fetch_failed");
227
277
  }
228
278
  })();
229
- return t === fetch && (B.set(r, i), i.finally(() => {
230
- B.get(r) === i && B.delete(r);
279
+ return t === fetch && (H.set(r, i), i.finally(() => {
280
+ H.get(r) === i && H.delete(r);
231
281
  })), i;
232
282
  }
233
- async function H(e, t = fetch, n) {
234
- let r = await V(e, t, n);
283
+ async function he(e, t = fetch, n) {
284
+ let r = await me(e, t, n);
235
285
  return r.ok ? r.data : null;
236
286
  }
237
287
  async function U(e, t, n = (e) => e) {
238
288
  try {
239
- let r = await _(e);
240
- return r ? j(n(r)) : (z.error(`Failed to load (${t}): network or server error`), M(t));
289
+ let r = await v(e);
290
+ return r ? N(n(r)) : (V.error(`Failed to load (${t}): network or server error`), P(t));
241
291
  } catch (e) {
242
- return z.error(`Error loading (${t}):`, e), M(t);
292
+ return V.error(`Error loading (${t}):`, e), P(t);
243
293
  }
244
294
  }
245
295
  function W(e) {
@@ -247,18 +297,18 @@ function W(e) {
247
297
  }
248
298
  async function G(e, t) {
249
299
  let n = t?.trim(), r = n ? `?promoCode=${encodeURIComponent(n)}` : "";
250
- return U(`${v()}/tickets/event/${e}${r}`, "tickets_fetch_failed", W);
300
+ return U(`${y()}/tickets/event/${e}${r}`, "tickets_fetch_failed", W);
251
301
  }
252
- async function fe(e, t) {
253
- return P(await G(e, t), []);
302
+ async function ge(e, t) {
303
+ return I(await G(e, t), []);
254
304
  }
255
- async function pe(e) {
256
- return e ? U(`${v()}/venues/organization/${e}`, "venues_fetch_failed", W) : (z.warn("fetchAllVenues called without orgId"), M("venues_missing_org_id"));
305
+ async function _e(e) {
306
+ return e ? U(`${y()}/venues/organization/${e}`, "venues_fetch_failed", W) : (V.warn("fetchAllVenues called without orgId"), P("venues_missing_org_id"));
257
307
  }
258
- async function me(e) {
259
- return P(await pe(e), []);
308
+ async function ve(e) {
309
+ return I(await _e(e), []);
260
310
  }
261
- function he(e) {
311
+ function ye(e) {
262
312
  return Array.isArray(e) ? e : Array.isArray(e.events) ? e.events : [];
263
313
  }
264
314
  var K = /* @__PURE__ */ new Map();
@@ -267,116 +317,120 @@ function q(e, t, n) {
267
317
  let t = K.get(e);
268
318
  if (t) return t;
269
319
  }
270
- let r = U(e, t, (e) => he(e));
320
+ let r = U(e, t, (e) => ye(e));
271
321
  return K.set(e, r), r.finally(() => {
272
322
  K.get(e) === r && K.delete(e);
273
323
  }), r;
274
324
  }
275
- async function ge(e, t, n, r) {
276
- return q(`${v()}/events/venue/${e}/month/${t}/${n}`, "month_events_fetch_failed", r);
325
+ async function be(e, t, n, r) {
326
+ return q(`${y()}/events/venue/${e}/month/${t}/${n}`, "month_events_fetch_failed", r);
277
327
  }
278
- async function _e(e, t, n, r) {
279
- return q(`${v()}/events/organization/${e}/month/${t}/${n}`, "org_month_events_fetch_failed", r);
328
+ async function xe(e, t, n, r) {
329
+ return q(`${y()}/events/organization/${e}/month/${t}/${n}`, "org_month_events_fetch_failed", r);
280
330
  }
281
- async function ve(e, t) {
282
- return U(`${v()}/series/${e}/occurrences?venueId=${t}`, "series_cta_fetch_failed");
331
+ async function Se(e, t) {
332
+ return U(`${y()}/series/${e}/occurrences?venueId=${t}`, "series_cta_fetch_failed");
283
333
  }
284
- async function ye(e, t) {
285
- let n = await ve(e, t);
334
+ async function Ce(e, t) {
335
+ let n = await Se(e, t);
286
336
  return n.ok ? n.data : null;
287
337
  }
288
- async function be(e, t) {
338
+ async function we(e, t) {
289
339
  try {
290
- let n = t ? `?slug=${encodeURIComponent(t)}` : "", r = await _(`${v()}/resolve/${encodeURIComponent(String(e))}${n}`);
291
- if (!r || !r.type) throw new O("entity", String(e));
340
+ let n = t ? `?slug=${encodeURIComponent(t)}` : "", r = await v(`${y()}/resolve/${encodeURIComponent(String(e))}${n}`);
341
+ if (!r || !r.type) throw new A("entity", String(e));
292
342
  return r;
293
343
  } catch (e) {
294
- return z.error("Error resolving public entity:", e), null;
344
+ return V.error("Error resolving public entity:", e), null;
295
345
  }
296
346
  }
297
- async function xe(e, t) {
347
+ async function Te(e, t) {
298
348
  try {
299
- let n = t ? `${v()}/collections/${e}?password=${encodeURIComponent(t)}` : `${v()}/collections/${e}`, r = await _(n);
300
- if (!r) throw new O("collection", String(e));
349
+ let n = t ? `${y()}/collections/${e}?password=${encodeURIComponent(t)}` : `${y()}/collections/${e}`, r = await v(n);
350
+ if (!r) throw new A("collection", String(e));
301
351
  return r;
302
352
  } catch (e) {
303
- return z.error("Error fetching collection:", e), null;
353
+ return V.error("Error fetching collection:", e), null;
304
354
  }
305
355
  }
306
- async function Se(e, t) {
356
+ async function Ee(e, t) {
307
357
  try {
308
- let n = await _(`${v()}/events/${e}/check-password`, {
358
+ let n = await v(`${y()}/events/${e}/check-password`, {
309
359
  method: "POST",
310
360
  headers: { "Content-Type": "application/json" },
311
361
  body: JSON.stringify({ password: t })
312
362
  });
313
363
  return typeof n == "boolean" ? { valid: n } : { valid: n?.valid === !0 };
314
364
  } catch (e) {
315
- return z.error("Error checking event password:", e), { valid: !1 };
365
+ return V.error("Error checking event password:", e), { valid: !1 };
316
366
  }
317
367
  }
318
368
  //#endregion
319
369
  //#region src/lib/navigation.ts
320
- function Ce(e, t) {
321
- let n = p();
322
- return t ? `${n}/e/${e}-${t}` : `${n}/e/${e}`;
370
+ function De(e, t) {
371
+ let n = t ? `${e}-${t}` : `${e}`;
372
+ if (typeof window < "u" && ce()) {
373
+ let { origin: e, pathname: t, search: r } = window.location;
374
+ return `${e}${t}${r}#${n}`;
375
+ }
376
+ return `${m()}/e/${n}`;
323
377
  }
324
- function we(e, t, n) {
378
+ function Oe(e, t, n) {
325
379
  let r = n?.toString(), i = t ? `/e/${e}-${t}` : `/e/${e}`;
326
- return `${p()}${i}${r ? `?${r}` : ""}`;
380
+ return `${m()}${i}${r ? `?${r}` : ""}`;
327
381
  }
328
- var Te = "get-micdrop.com";
382
+ var ke = "get-micdrop.com";
329
383
  function J(e) {
330
384
  let t = typeof e == "string" ? e.trim() : "";
331
- return t ? `https://${encodeURIComponent(t)}.${Te}` : "";
385
+ return t ? `https://${encodeURIComponent(t)}.${ke}` : "";
332
386
  }
333
- function Ee(e) {
387
+ function Ae(e) {
334
388
  let t = J(e);
335
389
  return t ? `${t}/gift-cards/buy` : "";
336
390
  }
337
- function De(e, t, n) {
391
+ function je(e, t, n) {
338
392
  let r = n?.toString();
339
393
  return `/${e}/${t}${r ? `?${r}` : ""}`;
340
394
  }
341
- function Oe(e) {
395
+ function Me(e) {
342
396
  return `/${e}`;
343
397
  }
344
- function ke(e) {
345
- return `${p()}/${e}`;
398
+ function Ne(e) {
399
+ return `${m()}/${e}`;
346
400
  }
347
- function Ae(e, t) {
401
+ function Pe(e, t) {
348
402
  return `/${e}/${t}/checkout`;
349
403
  }
350
- function je(e) {
404
+ function Fe(e) {
351
405
  return `/?${e.toString()}`;
352
406
  }
353
- function Me(e) {
407
+ function Ie(e) {
354
408
  let t = new URLSearchParams();
355
409
  e.orderId && t.set("orderId", e.orderId), e.ticketCount && e.ticketCount > 0 && t.set("tickets", String(e.ticketCount));
356
410
  let n = t.toString();
357
411
  return n ? `?${n}` : "";
358
412
  }
359
- function Ne(e, t, n = {}) {
413
+ function Le(e, t, n = {}) {
360
414
  let r = t ? `/e/${e}-${t}` : `/e/${e}`;
361
- return `${p()}${r}/tickets/checkout/success${Me(n)}`;
415
+ return `${m()}${r}/tickets/checkout/success${Ie(n)}`;
362
416
  }
363
417
  //#endregion
364
418
  //#region src/lib/api/venues.ts
365
419
  var Y = e("VC");
366
- async function Pe(e) {
420
+ async function Re(e) {
367
421
  try {
368
422
  if (!e) return Y.warn("getVenue called without venueId"), null;
369
- let t = await m(`/venues/${e}`);
423
+ let t = await g(`/venues/${e}`);
370
424
  return t.success ? t.data ?? null : (Y.error(`Failed to fetch venue: ${t.statusCode}`), null);
371
425
  } catch (e) {
372
426
  return Y.error("Error fetching venue:", e), null;
373
427
  }
374
428
  }
375
- async function Fe(e) {
429
+ async function ze(e) {
376
430
  let t = J(e);
377
431
  if (!t) return !1;
378
432
  try {
379
- let e = await m(`/sites/by-host/${encodeURIComponent(new URL(t).host)}`);
433
+ let e = await g(`/sites/by-host/${encodeURIComponent(new URL(t).host)}`);
380
434
  return !!(e.success && e.data);
381
435
  } catch (e) {
382
436
  return Y.warn("hasPublishedSite failed:", e), !1;
@@ -387,35 +441,35 @@ async function Fe(e) {
387
441
  function X(e, t) {
388
442
  return e == null || t(e);
389
443
  }
390
- function Ie(e) {
444
+ function Be(e) {
391
445
  if (typeof e != "object" || !e) return !1;
392
446
  let t = e;
393
447
  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
448
  }
395
- var Le = "We couldn't apply that gift card. Please try again.";
396
- function Re(e) {
397
- if (!Ie(e)) return {
449
+ var Ve = "We couldn't apply that gift card. Please try again.";
450
+ function He(e) {
451
+ if (!Be(e)) return {
398
452
  valid: !1,
399
- error: Le
453
+ error: Ve
400
454
  };
401
- let t = e, i = n(r(t.appliedAmount)), a = t.remainingTotal, o = t.fullyCoveredByCard ?? a <= 0, s = !o;
455
+ let t = e, n = r(i(t.appliedAmount)), a = t.remainingTotal, o = t.fullyCoveredByCard ?? a <= 0, s = !o;
402
456
  return {
403
457
  valid: !0,
404
458
  giftCardCode: t.giftCardCode ?? void 0,
405
- giftCardAmount: i,
459
+ giftCardAmount: n,
406
460
  giftCardBalance: t.giftCardBalance ?? void 0,
407
461
  paymentType: o ? "gift_card_only" : "split",
408
462
  stripeAmount: a,
409
- orderTotal: i + a,
463
+ orderTotal: n + a,
410
464
  requiresStripe: s
411
465
  };
412
466
  }
413
467
  //#endregion
414
468
  //#region src/lib/api/gift-cards.ts
415
469
  var Z = e("VC");
416
- async function ze(e, t) {
470
+ async function Ue(e, t) {
417
471
  try {
418
- let n = await f(`${h()}/cart/${e}/apply-gift-card`, { giftCardCode: t });
472
+ let n = await p(`${_()}/cart/${e}/apply-gift-card`, { giftCardCode: t });
419
473
  if (!n.success) return n.statusCode === 429 ? {
420
474
  valid: !1,
421
475
  error: "Too many attempts. Please wait a moment and try again."
@@ -423,7 +477,7 @@ async function ze(e, t) {
423
477
  valid: !1,
424
478
  error: n.error || "Invalid gift card code"
425
479
  });
426
- let r = Re(n.data);
480
+ let r = He(n.data);
427
481
  return r.valid || Z.error("Apply gift card returned an unusable payload:", n.data), r;
428
482
  } catch (e) {
429
483
  return Z.error("applyGiftCard error:", e), {
@@ -432,9 +486,9 @@ async function ze(e, t) {
432
486
  };
433
487
  }
434
488
  }
435
- async function Be(e, t) {
489
+ async function Q(e, t) {
436
490
  try {
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);
491
+ let n = t?.giftCardId ? { giftCardId: t.giftCardId } : t?.code ? { giftCardCode: t.code } : null, r = await h(`${_()}/cart/${e}/gift-card`, n ? { body: JSON.stringify(n) } : void 0);
438
492
  if (!r.success) return Z.error("Remove gift card failed:", r.error), {
439
493
  success: !1,
440
494
  error: r.error || "Failed to remove gift card"
@@ -451,10 +505,10 @@ async function Be(e, t) {
451
505
  };
452
506
  }
453
507
  }
454
- async function Ve(e, n, r) {
508
+ async function We(e, n, r) {
455
509
  let i = te(r);
456
510
  try {
457
- let r = await f(`${h()}/cart/${e}/complete-gift-card-payment`, {
511
+ let r = await p(`${_()}/cart/${e}/complete-gift-card-payment`, {
458
512
  customerName: t(n.firstName, n.lastName),
459
513
  customerEmail: n.email,
460
514
  firstName: n.firstName,
@@ -483,8 +537,8 @@ async function Ve(e, n, r) {
483
537
  }
484
538
  //#endregion
485
539
  //#region src/lib/api/cart-addons.ts
486
- var He = e("VC");
487
- async function Ue(e, t) {
540
+ var Ge = e("VC");
541
+ async function Ke(e, t) {
488
542
  let n = (e) => ({
489
543
  success: !1,
490
544
  error: e,
@@ -499,7 +553,7 @@ async function Ue(e, t) {
499
553
  !Number.isNaN(t) && n > 0 && (r[t] = n);
500
554
  }
501
555
  try {
502
- let t = await f(`${h()}/cart/${e}/add-ons`, { addOnQuantities: r });
556
+ let t = await p(`${_()}/cart/${e}/add-ons`, { addOnQuantities: r });
503
557
  if (!t.success) return n(t.error || null);
504
558
  let i = t.data || {};
505
559
  return {
@@ -510,35 +564,35 @@ async function Ue(e, t) {
510
564
  repriced: i.repriced === !0
511
565
  };
512
566
  } catch (e) {
513
- return He.error("updateCartAddOns error:", e), n(null);
567
+ return Ge.error("updateCartAddOns error:", e), n(null);
514
568
  }
515
569
  }
516
570
  //#endregion
517
571
  //#region src/lib/api/waitlist.ts
518
- var Q = e("VC");
519
- async function We(e, t, n = null, r = !1) {
572
+ var $ = e("VC");
573
+ async function qe(e, t, n = null, r = !1) {
520
574
  try {
521
575
  let i = { email: t };
522
576
  n && r && (i.phone = n, i.smsOptIn = !0);
523
- let a = await f(`/events/${e}/waitlist`, i);
577
+ let a = await p(`/events/${e}/waitlist`, i);
524
578
  return a.success ? {
525
579
  success: !0,
526
580
  updated: a.data?.updated,
527
581
  position: a.data?.position
528
- } : (Q.error("Join waitlist failed:", a.error), {
582
+ } : ($.error("Join waitlist failed:", a.error), {
529
583
  success: !1,
530
584
  errorCode: a.error || "join_failed"
531
585
  });
532
586
  } catch (e) {
533
- return Q.error("joinWaitlist error:", e), {
587
+ return $.error("joinWaitlist error:", e), {
534
588
  success: !1,
535
589
  errorCode: "network_error"
536
590
  };
537
591
  }
538
592
  }
539
- async function Ge(e, t) {
593
+ async function Je(e, t) {
540
594
  try {
541
- let n = await f(`/checkout/validate-token/${e}`, { email: t });
595
+ let n = await p(`/checkout/validate-token/${e}`, { email: t });
542
596
  return n.success ? {
543
597
  valid: !0,
544
598
  eventId: n.data?.eventId ?? 0,
@@ -549,47 +603,47 @@ async function Ge(e, t) {
549
603
  errorCode: n.error
550
604
  };
551
605
  } catch (e) {
552
- return Q.error("validateWaitlistToken error:", e), {
606
+ return $.error("validateWaitlistToken error:", e), {
553
607
  valid: !1,
554
608
  eventId: 0,
555
609
  errorCode: "invalid_token"
556
610
  };
557
611
  }
558
612
  }
559
- async function $(e, t) {
613
+ async function Ye(e, t) {
560
614
  try {
561
- let n = await f(`/waitlist/requeue/${e}`, { email: t });
615
+ let n = await p(`/waitlist/requeue/${e}`, { email: t });
562
616
  return n.success ? { success: !0 } : {
563
617
  success: !1,
564
618
  errorCode: n.error
565
619
  };
566
620
  } catch (e) {
567
- return Q.error("requeueWaitlistToFront error:", e), {
621
+ return $.error("requeueWaitlistToFront error:", e), {
568
622
  success: !1,
569
623
  errorCode: "internal_error"
570
624
  };
571
625
  }
572
626
  }
573
- async function Ke(e) {
627
+ async function Xe(e) {
574
628
  let t = {
575
629
  waitlistEnabled: !1,
576
630
  soldOut: !1,
577
631
  gated: !1
578
632
  };
579
633
  try {
580
- let n = await m(`/events/${e}/waitlist/status`);
634
+ let n = await g(`/events/${e}/waitlist/status`);
581
635
  return n.success ? {
582
636
  waitlistEnabled: !!n.data?.waitlistEnabled,
583
637
  soldOut: !!n.data?.soldOut,
584
638
  gated: !!n.data?.gated
585
639
  } : t;
586
640
  } catch (e) {
587
- return Q.error("getWaitlistStatus error:", e), t;
641
+ return $.error("getWaitlistStatus error:", e), t;
588
642
  }
589
643
  }
590
- function qe(e) {
644
+ function Ze(e) {
591
645
  let t = String(e % 60).padStart(2, "0");
592
646
  return e >= 3600 ? `${Math.floor(e / 3600)}:${String(Math.floor(e % 3600 / 60)).padStart(2, "0")}:${t}` : `${Math.floor(e / 60)}:${t}`;
593
647
  }
594
648
  //#endregion
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 };
649
+ export { we as A, ie as B, he as C, Ce as D, Te as E, k as F, x as H, O as I, w as L, fe as M, de as N, be as O, le as P, ae as R, ve as S, G as T, S as U, oe as V, je as _, Je as a, Fe as b, We as c, ze as d, Pe as f, De as g, Oe as h, Ye as i, pe as j, xe as k, Q as l, Me as m, Xe as n, Ke as o, Ne as p, qe as r, Ue as s, Ze as t, Re as u, Ae as v, ge as w, Ee as x, Le as y, D as z };