@getmicdrop/venue-calendar 4.0.95 → 4.0.97

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 (81) hide show
  1. package/README.md +740 -740
  2. package/dist/CartView-C3CM_of4.js +2360 -0
  3. package/dist/CartView-C3CM_of4.js.map +1 -0
  4. package/dist/{Checkout-BA43iGDc.js → Checkout-C-M3GkqC.js} +420 -408
  5. package/dist/Checkout-C-M3GkqC.js.map +1 -0
  6. package/dist/{Checkout-BV5f49vY.js → Checkout-DlwrJNFl.js} +8 -4
  7. package/dist/Checkout-DlwrJNFl.js.map +1 -0
  8. package/dist/{CheckoutTimer-KyKyInco.js → CheckoutTimer-BGpTXav2.js} +5 -5
  9. package/dist/CheckoutTimer-BGpTXav2.js.map +1 -0
  10. package/dist/{ClockIcon-BD24dBol.js → ClockIcon-CbUBc37W.js} +2 -2
  11. package/dist/ClockIcon-CbUBc37W.js.map +1 -0
  12. package/dist/{CollectionView-CKIxku9-.js → CollectionView-C8jLl4ZF.js} +22 -22
  13. package/dist/CollectionView-C8jLl4ZF.js.map +1 -0
  14. package/dist/{Event-BPdt1Io5.js → Event-BIxmGbtN.js} +503 -499
  15. package/dist/Event-BIxmGbtN.js.map +1 -0
  16. package/dist/EventPage-CfFdjshw.js +566 -0
  17. package/dist/EventPage-CfFdjshw.js.map +1 -0
  18. package/dist/{Heading-pQuVpBrL.js → Heading-BftmeVf1.js} +10 -10
  19. package/dist/Heading-BftmeVf1.js.map +1 -0
  20. package/dist/ScarcityBadge-Cj7ihi0s.js +165 -0
  21. package/dist/ScarcityBadge-Cj7ihi0s.js.map +1 -0
  22. package/dist/{SeriesPage-vw7Hva9F.js → SeriesPage-LSLEq-VI.js} +7 -7
  23. package/dist/SeriesPage-LSLEq-VI.js.map +1 -0
  24. package/dist/{Spinner-BfFZMaDP.js → Spinner-D6pWJ-VV.js} +2 -2
  25. package/dist/Spinner-D6pWJ-VV.js.map +1 -0
  26. package/dist/{Success-Cjj6CC4w.js → Success-BwzdTBRN.js} +19 -9
  27. package/dist/Success-BwzdTBRN.js.map +1 -0
  28. package/dist/{Text-CT79Zi5n.js → Text-DvAmz2c4.js} +2 -2
  29. package/dist/Text-DvAmz2c4.js.map +1 -0
  30. package/dist/{VenueCalendar-Cz7_VBC6.js → VenueCalendar-ZIexgvtu.js} +2238 -2206
  31. package/dist/VenueCalendar-ZIexgvtu.js.map +1 -0
  32. package/dist/{ViewTicketsEmbed-BvCfoKY3.js → ViewTicketsEmbed-Ex-uXFdv.js} +80 -80
  33. package/dist/ViewTicketsEmbed-Ex-uXFdv.js.map +1 -0
  34. package/dist/api/api/transformers/event.d.ts +6 -4
  35. package/dist/api/api.cjs +1 -1
  36. package/dist/api/api.cjs.map +1 -1
  37. package/dist/api/api.mjs +254 -260
  38. package/dist/api/api.mjs.map +1 -1
  39. package/dist/api/types.d.ts +447 -447
  40. package/dist/{data-toggle-store.svelte-BHwbM34q.js → data-toggle-store.svelte-CIisuuz8.js} +2 -2
  41. package/dist/data-toggle-store.svelte-CIisuuz8.js.map +1 -0
  42. package/dist/{labels-_x9WkVuZ.js → labels-CGPu9d2k.js} +45 -55
  43. package/dist/labels-CGPu9d2k.js.map +1 -0
  44. package/dist/{modalManager.svelte-Csm1WlvP.js → modalManager.svelte-CDhdha2m.js} +2 -2
  45. package/dist/modalManager.svelte-CDhdha2m.js.map +1 -0
  46. package/dist/seo/seo.cjs.map +1 -1
  47. package/dist/seo/seo.mjs.map +1 -1
  48. package/dist/{transform-WRPgSKLN.js → transform-ati8Nk1h.js} +2 -2
  49. package/dist/transform-ati8Nk1h.js.map +1 -0
  50. package/dist/types/index.d.ts +454 -454
  51. package/dist/venue-calendar.css +1 -1
  52. package/dist/venue-calendar.es.js +10 -10
  53. package/dist/venue-calendar.iife.js +39 -39
  54. package/dist/venue-calendar.iife.js.map +1 -1
  55. package/dist/venue-calendar.umd.js +34 -34
  56. package/dist/venue-calendar.umd.js.map +1 -1
  57. package/package.json +179 -173
  58. package/src/lib/theme.js +222 -222
  59. package/dist/CartView-Cq0DU1Cy.js +0 -2385
  60. package/dist/CartView-Cq0DU1Cy.js.map +0 -1
  61. package/dist/Checkout-BA43iGDc.js.map +0 -1
  62. package/dist/Checkout-BV5f49vY.js.map +0 -1
  63. package/dist/CheckoutTimer-KyKyInco.js.map +0 -1
  64. package/dist/ClockIcon-BD24dBol.js.map +0 -1
  65. package/dist/CollectionView-CKIxku9-.js.map +0 -1
  66. package/dist/Event-BPdt1Io5.js.map +0 -1
  67. package/dist/EventPage-DRnTMGTK.js +0 -575
  68. package/dist/EventPage-DRnTMGTK.js.map +0 -1
  69. package/dist/Heading-pQuVpBrL.js.map +0 -1
  70. package/dist/ScarcityBadge-DoYdujCs.js +0 -167
  71. package/dist/ScarcityBadge-DoYdujCs.js.map +0 -1
  72. package/dist/SeriesPage-vw7Hva9F.js.map +0 -1
  73. package/dist/Spinner-BfFZMaDP.js.map +0 -1
  74. package/dist/Success-Cjj6CC4w.js.map +0 -1
  75. package/dist/Text-CT79Zi5n.js.map +0 -1
  76. package/dist/VenueCalendar-Cz7_VBC6.js.map +0 -1
  77. package/dist/ViewTicketsEmbed-BvCfoKY3.js.map +0 -1
  78. package/dist/data-toggle-store.svelte-BHwbM34q.js.map +0 -1
  79. package/dist/labels-_x9WkVuZ.js.map +0 -1
  80. package/dist/modalManager.svelte-Csm1WlvP.js.map +0 -1
  81. package/dist/transform-WRPgSKLN.js.map +0 -1
package/dist/api/api.mjs CHANGED
@@ -1,35 +1,35 @@
1
1
  import { createLogger as $ } from "@getmicdrop/svelte-components/utils/logger";
2
- import { getLocalStorage as ue, setLocalStorage as le, getSessionStorage as Y, setSessionStorage as de, createLogger as fe, AppError as N, formatCurrency as me, resolveImageUrl as K } from "@getmicdrop/svelte-components";
2
+ import { getLocalStorage as ue, setLocalStorage as le, getSessionStorage as Y, setSessionStorage as de, createLogger as fe, AppError as N, formatCurrency as me, asUSD as pe, resolveImageUrl as K } from "@getmicdrop/svelte-components";
3
3
  import { formatLocal as L } from "@getmicdrop/svelte-components/datetime";
4
- import { isHiddenTicketPurchasable as pe } from "@getmicdrop/svelte-components/transforms";
4
+ import { isHiddenTicketPurchasable as ye } from "@getmicdrop/svelte-components/transforms";
5
5
  import "@getmicdrop/svelte-components/utils/timezones";
6
- const q = $("VC"), ye = {
6
+ const q = $("VC"), ge = {
7
7
  baseUrl: "https://get-micdrop.com",
8
8
  timeout: 3e4,
9
9
  retries: 2,
10
10
  retryDelay: 500,
11
11
  onError: (t) => q.error("API Error:", t)
12
12
  };
13
- let p = { ...ye };
14
- function ct(t) {
13
+ let p = { ...ge };
14
+ function ut(t) {
15
15
  p = { ...p, ...t };
16
16
  }
17
- function ut() {
17
+ function lt() {
18
18
  return { ...p };
19
19
  }
20
20
  function c() {
21
21
  return `${p.baseUrl}/api/v2/public`;
22
22
  }
23
- function lt() {
23
+ function dt() {
24
24
  return `${p.baseUrl}/api/public`;
25
25
  }
26
- function R() {
26
+ function A() {
27
27
  return `${p.baseUrl}/api/orders/v2/public`;
28
28
  }
29
- async function dt() {
29
+ async function ft() {
30
30
  return "";
31
31
  }
32
- const ge = (t) => new Promise((e) => setTimeout(e, t));
32
+ const ve = (t) => new Promise((e) => setTimeout(e, t));
33
33
  async function Z(t, e, r) {
34
34
  const n = (e.method || "GET").toUpperCase(), s = n === "GET" || n === "HEAD" ? r.retries + 1 : 1;
35
35
  let o;
@@ -48,20 +48,20 @@ async function Z(t, e, r) {
48
48
  } finally {
49
49
  clearTimeout(T), y && k && y.removeEventListener("abort", k);
50
50
  }
51
- i < s && await ge(r.retryDelay * Math.pow(2, i - 1));
51
+ i < s && await ve(r.retryDelay * Math.pow(2, i - 1));
52
52
  }
53
53
  throw o;
54
54
  }
55
55
  async function C(t, e) {
56
56
  return F("GET", t, void 0, e);
57
57
  }
58
- async function f(t, e, r) {
58
+ async function m(t, e, r) {
59
59
  return F("POST", t, e, r);
60
60
  }
61
- async function ft(t, e, r) {
61
+ async function mt(t, e, r) {
62
62
  return F("PUT", t, e, r);
63
63
  }
64
- async function ve(t, e) {
64
+ async function he(t, e) {
65
65
  return F("DELETE", t, void 0, e);
66
66
  }
67
67
  async function F(t, e, r, n) {
@@ -93,7 +93,7 @@ async function F(t, e, r, n) {
93
93
  ), { success: !1, error: o };
94
94
  }
95
95
  }
96
- async function A(t, e) {
96
+ async function P(t, e) {
97
97
  try {
98
98
  const r = await Z(
99
99
  t,
@@ -109,7 +109,7 @@ async function A(t, e) {
109
109
  return q.error("API request error:", r), null;
110
110
  }
111
111
  }
112
- function he(t) {
112
+ function _e(t) {
113
113
  const e = t ?? {};
114
114
  return {
115
115
  ticketID: Number(e.TicketID ?? e.ticketID ?? 0),
@@ -120,8 +120,8 @@ function he(t) {
120
120
  status: String(e.Status ?? e.status ?? "")
121
121
  };
122
122
  }
123
- function _e(t) {
124
- const e = t ?? {}, r = e.UUID ?? e.uuid ?? "", n = Number(e.EventID ?? e.eventID ?? 0), a = e.Status ?? e.status ?? "", s = e.ExpiresAt ?? e.expiresAt ?? "", i = (e.Reservations ?? e.reservations ?? []).map(he);
123
+ function we(t) {
124
+ const e = t ?? {}, r = e.UUID ?? e.uuid ?? "", n = Number(e.EventID ?? e.eventID ?? 0), a = e.Status ?? e.status ?? "", s = e.ExpiresAt ?? e.expiresAt ?? "", i = (e.Reservations ?? e.reservations ?? []).map(_e);
125
125
  return { uuid: r, eventID: n, status: a, expiresAt: s, reservations: i };
126
126
  }
127
127
  const X = [
@@ -130,7 +130,7 @@ const X = [
130
130
  "utmCampaign",
131
131
  "utmContent",
132
132
  "utmTerm"
133
- ], we = {
133
+ ], ke = {
134
134
  utmSource: "utm_source",
135
135
  utmMedium: "utm_medium",
136
136
  utmCampaign: "utm_campaign",
@@ -140,19 +140,19 @@ const X = [
140
140
  function te(t) {
141
141
  return t ? t.trim().toLowerCase().replace(/\s+/g, "_") : "";
142
142
  }
143
- function ke(t) {
143
+ function be(t) {
144
144
  const e = {};
145
145
  for (const r of X)
146
146
  e[r] = te(t[r]);
147
147
  return e.utmSource || (e.utmSource = ee), e;
148
148
  }
149
- function be(t) {
149
+ function $e(t) {
150
150
  const e = {};
151
151
  for (const r of X)
152
- e[r] = t.get(we[r]);
153
- return ke(e);
152
+ e[r] = t.get(ke[r]);
153
+ return be(e);
154
154
  }
155
- function $e() {
155
+ function Ce() {
156
156
  if (typeof window > "u") return !0;
157
157
  try {
158
158
  return window.self === window.top;
@@ -160,27 +160,27 @@ function $e() {
160
160
  return !1;
161
161
  }
162
162
  }
163
- function Ce() {
164
- const t = typeof window < "u", e = $e(), r = t ? window.location.search : "", n = (typeof document < "u" ? document.referrer : "") ?? "", a = t && e ? window.location.href : "";
163
+ function Pe() {
164
+ const t = typeof window < "u", e = Ce(), r = t ? window.location.search : "", n = (typeof document < "u" ? document.referrer : "") ?? "", a = t && e ? window.location.href : "";
165
165
  return {
166
- utm: be(new URLSearchParams(r)),
166
+ utm: $e(new URLSearchParams(r)),
167
167
  referrer: n || "",
168
168
  pageUrl: a || ""
169
169
  };
170
170
  }
171
171
  let Te = !1;
172
- function Pe() {
172
+ function Ie() {
173
173
  return typeof window < "u" && typeof window.__tcfapi == "function";
174
174
  }
175
175
  function Se() {
176
- return Pe();
176
+ return Ie();
177
177
  }
178
- function Ie() {
178
+ function Ee() {
179
179
  return Se() ? Te : !0;
180
180
  }
181
- const H = "micdrop_session_id", W = "micdrop_visitor_id", Ee = /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
182
- function Re(t) {
183
- return typeof t == "string" && Ee.test(t);
181
+ const H = "micdrop_session_id", W = "micdrop_visitor_id", Re = /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
182
+ function Ae(t) {
183
+ return typeof t == "string" && Re.test(t);
184
184
  }
185
185
  function re() {
186
186
  const t = typeof crypto < "u" ? crypto : void 0;
@@ -195,27 +195,27 @@ function re() {
195
195
  for (let n = 0; n < 16; n++) r.push(e[n].toString(16).padStart(2, "0"));
196
196
  return `${r[0]}${r[1]}${r[2]}${r[3]}-${r[4]}${r[5]}-${r[6]}${r[7]}-${r[8]}${r[9]}-${r[10]}${r[11]}${r[12]}${r[13]}${r[14]}${r[15]}`;
197
197
  }
198
- function Ae() {
198
+ function De() {
199
199
  let t = Y(H);
200
200
  return t || (t = re(), de(H, t)), t;
201
201
  }
202
- function De() {
203
- if (!Ie()) return null;
202
+ function Ne() {
203
+ if (!Ee()) return null;
204
204
  const t = ue(W);
205
- if (Re(t)) return t;
205
+ if (Ae(t)) return t;
206
206
  const e = re();
207
207
  return le(W, e), e;
208
208
  }
209
- const Ne = "micdrop_attribution";
210
- function Ue() {
211
- const t = Y(Ne);
209
+ const Ue = "micdrop_attribution";
210
+ function xe() {
211
+ const t = Y(Ue);
212
212
  return !t || !t.utm || typeof t.utm.utmSource != "string" ? null : t;
213
213
  }
214
214
  function U() {
215
- const e = Ue() ?? Ce();
215
+ const e = xe() ?? Pe();
216
216
  return {
217
- sessionId: Ae(),
218
- visitorId: De(),
217
+ sessionId: De(),
218
+ visitorId: Ne(),
219
219
  utmSource: e.utm.utmSource,
220
220
  utmMedium: e.utm.utmMedium,
221
221
  utmCampaign: e.utm.utmCampaign,
@@ -226,10 +226,10 @@ function U() {
226
226
  }
227
227
  fe("tracking");
228
228
  const d = $("VC");
229
- async function mt(t, e, r) {
229
+ async function pt(t, e, r) {
230
230
  try {
231
- const n = await f(
232
- `${R()}/cart/${t}/payment-intent`,
231
+ const n = await m(
232
+ `${A()}/cart/${t}/payment-intent`,
233
233
  {
234
234
  productQuantities: e,
235
235
  ...r && Object.keys(r).length > 0 ? { donationAmounts: r } : {},
@@ -249,15 +249,15 @@ async function mt(t, e, r) {
249
249
  return d.error("createPaymentIntent error:", n), null;
250
250
  }
251
251
  }
252
- async function pt(t, e) {
252
+ async function yt(t, e) {
253
253
  if (!t) return null;
254
254
  try {
255
255
  const r = await C(
256
- `${R()}/cart/${t}`
256
+ `${A()}/cart/${t}`
257
257
  );
258
258
  if (!r.success)
259
259
  return null;
260
- const { uuid: n, eventID: a, status: s, expiresAt: o, reservations: i } = _e(
260
+ const { uuid: n, eventID: a, status: s, expiresAt: o, reservations: i } = we(
261
261
  r.data
262
262
  );
263
263
  return s !== "reserved" && s !== "active" || e !== void 0 && a !== Number(e) ? null : { uuid: n, eventID: a, status: s, expiresAt: o, reservations: i };
@@ -265,7 +265,7 @@ async function pt(t, e) {
265
265
  return d.error("getCartByUUID error:", r), null;
266
266
  }
267
267
  }
268
- async function yt(t, e, r) {
268
+ async function gt(t, e, r) {
269
269
  try {
270
270
  const n = {};
271
271
  for (const [o, i] of Object.entries(e)) {
@@ -278,7 +278,7 @@ async function yt(t, e, r) {
278
278
  const u = typeof o == "number" ? o : parseInt(o, 10);
279
279
  !Number.isNaN(u) && i > 0 && (a[u] = i);
280
280
  }
281
- const s = await fetch(`${R()}/cart/${t}`, {
281
+ const s = await fetch(`${A()}/cart/${t}`, {
282
282
  method: "PUT",
283
283
  headers: { "Content-Type": "application/json" },
284
284
  credentials: "include",
@@ -296,9 +296,9 @@ async function yt(t, e, r) {
296
296
  return d.error("updateCartQuantities error:", n), !1;
297
297
  }
298
298
  }
299
- async function gt(t) {
299
+ async function vt(t) {
300
300
  try {
301
- const e = await f(
301
+ const e = await m(
302
302
  `${c()}/orders/complete/${t}`
303
303
  );
304
304
  return e.success ? {
@@ -312,9 +312,9 @@ async function gt(t) {
312
312
  return d.error("Error completing reservation:", e), { success: !1, error: "Network error completing reservation" };
313
313
  }
314
314
  }
315
- async function vt(t) {
315
+ async function ht(t) {
316
316
  try {
317
- const e = await f(
317
+ const e = await m(
318
318
  `${c()}/orders/cancel/${t}`
319
319
  );
320
320
  return e.success ? {
@@ -328,9 +328,9 @@ async function vt(t) {
328
328
  return d.error("Error cancelling reservation:", e), { success: !1, error: "Network error cancelling reservation" };
329
329
  }
330
330
  }
331
- async function ht(t, e) {
331
+ async function _t(t, e) {
332
332
  try {
333
- const r = await f(
333
+ const r = await m(
334
334
  `${c()}/orders/create`,
335
335
  // attribution (MISSION-TRUTH C2) rides on cart-create additively.
336
336
  { eventID: t, promoCode: e, attribution: U() }
@@ -340,12 +340,12 @@ async function ht(t, e) {
340
340
  return d.error("createOrder error:", r), null;
341
341
  }
342
342
  }
343
- async function _t(t) {
344
- return A(`${c()}/orders/${t}`);
343
+ async function wt(t) {
344
+ return P(`${c()}/orders/${t}`);
345
345
  }
346
- async function wt(t, e) {
346
+ async function kt(t, e) {
347
347
  try {
348
- const r = await f(`${R()}/validatePaymentIntent/${t}`, {
348
+ const r = await m(`${A()}/validatePaymentIntent/${t}`, {
349
349
  ...e,
350
350
  attribution: U()
351
351
  });
@@ -370,9 +370,9 @@ async function wt(t, e) {
370
370
  return d.error("validatePaymentIntent error:", r), null;
371
371
  }
372
372
  }
373
- async function kt(t) {
373
+ async function bt(t) {
374
374
  try {
375
- const e = await f(`${c()}/orders/extend-session`, { orderUuid: t });
375
+ const e = await m(`${c()}/orders/extend-session`, { orderUuid: t });
376
376
  if (!e.success)
377
377
  return {
378
378
  success: !1,
@@ -389,7 +389,7 @@ async function kt(t) {
389
389
  return d.error("Error extending checkout session:", e), { success: !1, error: "Network error extending session" };
390
390
  }
391
391
  }
392
- async function bt(t) {
392
+ async function $t(t) {
393
393
  try {
394
394
  const e = await C(
395
395
  `${c()}/orders/session/${t}`
@@ -412,9 +412,9 @@ async function bt(t) {
412
412
  return d.error("Error getting session status:", e), { error: "Network error getting session status" };
413
413
  }
414
414
  }
415
- async function $t(t = { eventID: "" }) {
415
+ async function Ct(t = { eventID: "" }) {
416
416
  try {
417
- const e = await f(
417
+ const e = await m(
418
418
  `${c()}/orders/create`,
419
419
  // attribution (MISSION-TRUTH C2) rides on cart-create additively.
420
420
  { ...t, attribution: U() }
@@ -424,7 +424,7 @@ async function $t(t = { eventID: "" }) {
424
424
  return d.error("initiateOrder error:", e), null;
425
425
  }
426
426
  }
427
- async function Ct(t) {
427
+ async function Pt(t) {
428
428
  if (typeof window > "u") return;
429
429
  const e = new URLSearchParams(window.location.search), r = te(e.get("utm_source")) || ee;
430
430
  try {
@@ -435,7 +435,7 @@ async function Ct(t) {
435
435
  d.error("UTM tracking failed:", n);
436
436
  }
437
437
  }
438
- const V = $("VC"), xe = () => R();
438
+ const V = $("VC"), Oe = () => A();
439
439
  async function Tt(t, e) {
440
440
  try {
441
441
  if (!e || !e.trim())
@@ -459,7 +459,7 @@ async function Tt(t, e) {
459
459
  return V.error("Error validating promo code:", r), { valid: !1, error: "Network error validating code" };
460
460
  }
461
461
  }
462
- async function Pt(t) {
462
+ async function It(t) {
463
463
  try {
464
464
  const e = await C(
465
465
  `/promo-codes/check/${t}`
@@ -471,8 +471,8 @@ async function Pt(t) {
471
471
  }
472
472
  async function St(t, e) {
473
473
  try {
474
- const r = await f(
475
- `${xe()}/cart/${t}/apply-promo`,
474
+ const r = await m(
475
+ `${Oe()}/cart/${t}/apply-promo`,
476
476
  { promoCode: e }
477
477
  );
478
478
  return r.success ? { success: !0 } : {
@@ -483,9 +483,9 @@ async function St(t, e) {
483
483
  return V.error("Error applying promo code:", r), { success: !1, error: "Network error applying code" };
484
484
  }
485
485
  }
486
- async function It(t) {
486
+ async function Et(t) {
487
487
  try {
488
- const e = await f(`/orders/${t}/remove-promo`);
488
+ const e = await m(`/orders/${t}/remove-promo`);
489
489
  return e.success ? { success: !0 } : {
490
490
  success: !1,
491
491
  error: e.error || "Failed to remove promo code"
@@ -494,7 +494,7 @@ async function It(t) {
494
494
  return V.error("Error removing promo code:", e), { success: !1, error: "Network error removing code" };
495
495
  }
496
496
  }
497
- function Oe(t) {
497
+ function Fe(t) {
498
498
  const e = t ?? {};
499
499
  return {
500
500
  performers: Array.isArray(e.performers) ? e.performers : [],
@@ -510,17 +510,17 @@ function b(t) {
510
510
  function Q(t) {
511
511
  return { ok: !1, error: t, notFound: !0 };
512
512
  }
513
- function Et(t) {
513
+ function Rt(t) {
514
514
  return t.ok;
515
515
  }
516
- function Rt(t) {
516
+ function At(t) {
517
517
  return !t.ok;
518
518
  }
519
519
  function D(t, e) {
520
520
  return t.ok ? t.data : e;
521
521
  }
522
- const m = $("VC"), O = /* @__PURE__ */ new Map();
523
- async function Fe(t, e = fetch, r) {
522
+ const f = $("VC"), O = /* @__PURE__ */ new Map();
523
+ async function Ve(t, e = fetch, r) {
524
524
  const n = r ? `${t}:pw` : String(t);
525
525
  if (e === fetch) {
526
526
  const s = O.get(n);
@@ -530,121 +530,121 @@ async function Fe(t, e = fetch, r) {
530
530
  try {
531
531
  const s = r ? `${c()}/events/${t}?password=${encodeURIComponent(r)}` : `${c()}/events/${t}`, o = await e(s);
532
532
  if (!o.ok)
533
- return o.status === 404 ? Q("event_not_found") : (m.error(`Failed to fetch event details: ${o.status}`), b("event_fetch_failed"));
533
+ return o.status === 404 ? Q("event_not_found") : (f.error(`Failed to fetch event details: ${o.status}`), b("event_fetch_failed"));
534
534
  const i = await o.json();
535
535
  return i ? ne(i) : Q("event_not_found");
536
536
  } catch (s) {
537
- return m.error("Error fetching event details:", s), b("event_fetch_failed");
537
+ return f.error("Error fetching event details:", s), b("event_fetch_failed");
538
538
  }
539
539
  })();
540
540
  return e === fetch && (O.set(n, a), a.finally(() => {
541
541
  O.get(n) === a && O.delete(n);
542
542
  })), a;
543
543
  }
544
- async function At(t, e = fetch, r) {
545
- const n = await Fe(t, e, r);
544
+ async function Dt(t, e = fetch, r) {
545
+ const n = await Ve(t, e, r);
546
546
  return n.ok ? n.data : null;
547
547
  }
548
548
  async function w(t, e, r = (n) => n) {
549
549
  try {
550
- const n = await A(t);
551
- return n ? ne(r(n)) : (m.error(`Failed to load (${e}): network or server error`), b(e));
550
+ const n = await P(t);
551
+ return n ? ne(r(n)) : (f.error(`Failed to load (${e}): network or server error`), b(e));
552
552
  } catch (n) {
553
- return m.error(`Error loading (${e}):`, n), b(e);
553
+ return f.error(`Error loading (${e}):`, n), b(e);
554
554
  }
555
555
  }
556
556
  function G(t) {
557
557
  return Array.isArray(t) ? t : [];
558
558
  }
559
- async function Ve(t) {
559
+ async function Le(t) {
560
560
  return w(
561
561
  `${c()}/tickets/event/${t}`,
562
562
  "tickets_fetch_failed",
563
563
  G
564
564
  );
565
565
  }
566
- async function Dt(t) {
567
- return D(await Ve(t), []);
566
+ async function Nt(t) {
567
+ return D(await Le(t), []);
568
568
  }
569
- async function Le(t) {
569
+ async function qe(t) {
570
570
  return t ? w(
571
571
  `${c()}/events/${t}/performers`,
572
572
  "performers_fetch_failed",
573
- (e) => Oe(e)
574
- ) : (m.warn("fetchEventPerformers called without eventId"), b("performers_missing_event_id"));
573
+ (e) => Fe(e)
574
+ ) : (f.warn("fetchEventPerformers called without eventId"), b("performers_missing_event_id"));
575
575
  }
576
- async function Nt(t) {
577
- return D(await Le(t), {
576
+ async function Ut(t) {
577
+ return D(await qe(t), {
578
578
  performers: [],
579
579
  showPerformers: !1
580
580
  });
581
581
  }
582
- async function qe(t) {
582
+ async function Me(t) {
583
583
  return t ? w(
584
584
  `${c()}/venues/organization/${t}`,
585
585
  "venues_fetch_failed",
586
586
  G
587
- ) : (m.warn("fetchAllVenues called without orgId"), b("venues_missing_org_id"));
587
+ ) : (f.warn("fetchAllVenues called without orgId"), b("venues_missing_org_id"));
588
588
  }
589
- async function Ut(t) {
590
- return D(await qe(t), []);
589
+ async function xt(t) {
590
+ return D(await Me(t), []);
591
591
  }
592
- async function Me(t) {
592
+ async function Ge(t) {
593
593
  return t ? w(
594
594
  `${c()}/events/venue/${t}`,
595
595
  "venue_events_fetch_failed",
596
596
  G
597
- ) : (m.warn("fetchVenueEvents called without venueId"), b("venue_events_missing_venue_id"));
597
+ ) : (f.warn("fetchVenueEvents called without venueId"), b("venue_events_missing_venue_id"));
598
598
  }
599
- async function xt(t) {
600
- return D(await Me(t), []);
599
+ async function Ot(t) {
600
+ return D(await Ge(t), []);
601
601
  }
602
602
  function ae(t) {
603
603
  return Array.isArray(t) ? t : Array.isArray(t.events) ? t.events : [];
604
604
  }
605
- async function Ge(t, e, r) {
605
+ async function je(t, e, r) {
606
606
  return w(
607
607
  `${c()}/events/venue/${t}/month/${e}/${r}`,
608
608
  "month_events_fetch_failed",
609
609
  (n) => ae(n)
610
610
  );
611
611
  }
612
- async function Ot(t, e, r) {
613
- return D(await Ge(t, e, r), []);
612
+ async function Ft(t, e, r) {
613
+ return D(await je(t, e, r), []);
614
614
  }
615
- async function je(t, e, r) {
615
+ async function ze(t, e, r) {
616
616
  return w(
617
617
  `${c()}/events/organization/${t}/month/${e}/${r}`,
618
618
  "org_month_events_fetch_failed",
619
619
  (n) => ae(n)
620
620
  );
621
621
  }
622
- async function Ft(t, e, r) {
623
- return D(await je(t, e, r), []);
622
+ async function Vt(t, e, r) {
623
+ return D(await ze(t, e, r), []);
624
624
  }
625
- async function ze(t) {
625
+ async function Be(t) {
626
626
  return w(
627
627
  `${c()}/series/${t}/occurrences`,
628
628
  "series_occurrences_fetch_failed"
629
629
  );
630
630
  }
631
- async function Vt(t) {
632
- const e = await ze(t);
631
+ async function Lt(t) {
632
+ const e = await Be(t);
633
633
  return e.ok ? e.data : null;
634
634
  }
635
- async function Be(t, e) {
635
+ async function He(t, e) {
636
636
  return w(
637
637
  `${c()}/series/${t}/occurrences?venueId=${e}`,
638
638
  "series_cta_fetch_failed"
639
639
  );
640
640
  }
641
- async function Lt(t, e) {
642
- const r = await Be(t, e);
641
+ async function qt(t, e) {
642
+ const r = await He(t, e);
643
643
  return r.ok ? r.data : null;
644
644
  }
645
- async function qt(t, e) {
645
+ async function Mt(t, e) {
646
646
  try {
647
- const r = e ? `?slug=${encodeURIComponent(e)}` : "", n = await A(
647
+ const r = e ? `?slug=${encodeURIComponent(e)}` : "", n = await P(
648
648
  `${c()}/resolve/${encodeURIComponent(String(t))}${r}`
649
649
  );
650
650
  if (!n || !n.type)
@@ -654,12 +654,12 @@ async function qt(t, e) {
654
654
  );
655
655
  return n;
656
656
  } catch (r) {
657
- return m.error("Error resolving public entity:", r), null;
657
+ return f.error("Error resolving public entity:", r), null;
658
658
  }
659
659
  }
660
- async function Mt(t) {
660
+ async function Gt(t) {
661
661
  try {
662
- const e = await A(
662
+ const e = await P(
663
663
  `${c()}/series/${t}/page`
664
664
  );
665
665
  if (!e)
@@ -669,12 +669,12 @@ async function Mt(t) {
669
669
  );
670
670
  return e;
671
671
  } catch (e) {
672
- return m.error("Error fetching series page:", e), null;
672
+ return f.error("Error fetching series page:", e), null;
673
673
  }
674
674
  }
675
- async function Gt(t, e) {
675
+ async function jt(t, e) {
676
676
  try {
677
- const r = e ? `${c()}/collections/${t}?password=${encodeURIComponent(e)}` : `${c()}/collections/${t}`, n = await A(r);
677
+ const r = e ? `${c()}/collections/${t}?password=${encodeURIComponent(e)}` : `${c()}/collections/${t}`, n = await P(r);
678
678
  if (!n)
679
679
  throw new N(
680
680
  "Failed to fetch collection",
@@ -682,72 +682,69 @@ async function Gt(t, e) {
682
682
  );
683
683
  return n;
684
684
  } catch (r) {
685
- return m.error("Error fetching collection:", r), null;
685
+ return f.error("Error fetching collection:", r), null;
686
686
  }
687
687
  }
688
- async function jt(t, e) {
688
+ async function zt(t, e) {
689
689
  try {
690
690
  const r = encodeURIComponent(e);
691
- return (await A(
691
+ return (await P(
692
692
  `${c()}/collections/${t}/check-password/${r}`
693
693
  ))?.valid === !0;
694
694
  } catch (r) {
695
- return m.error("Error checking collection password:", r), !1;
695
+ return f.error("Error checking collection password:", r), !1;
696
696
  }
697
697
  }
698
- async function zt(t, e) {
698
+ async function Bt(t, e) {
699
699
  try {
700
- const r = await f(
701
- `${c()}/events/${t}/check-password`,
702
- { password: e }
700
+ const r = encodeURIComponent(e), n = await P(
701
+ `${c()}/events/${t}/check-password/${r}`
703
702
  );
704
- if (!r.success) return { valid: !1 };
705
- const n = r.data;
706
- return typeof n == "boolean" ? { valid: n } : { valid: n.valid === !0 };
703
+ return typeof n == "boolean" ? { valid: n } : { valid: n?.valid === !0 };
707
704
  } catch (r) {
708
- return m.error("Error checking event password:", r), { valid: !1 };
705
+ return f.error("Error checking event password:", r), { valid: !1 };
709
706
  }
710
707
  }
711
- async function Bt(t, e) {
708
+ async function Ht(t, e) {
712
709
  try {
713
710
  const r = e ? `${c()}/events/venue/${e}` : t ? `${c()}/venues/organization/${t}` : `${c()}/health`;
714
711
  return (await fetch(r, {
715
712
  method: "HEAD"
716
713
  })).ok;
717
714
  } catch (r) {
718
- return m.error("Network connection test failed:", r), !1;
715
+ return f.error("Network connection test failed:", r), !1;
719
716
  }
720
717
  }
721
- const E = $("VC");
722
- async function He(t) {
718
+ const R = $("VC");
719
+ async function We(t) {
723
720
  try {
724
721
  if (!t)
725
- return E.warn("getVenue called without venueId"), null;
722
+ return R.warn("getVenue called without venueId"), null;
726
723
  const e = await C(`/venues/${t}`);
727
- return e.success ? e.data ?? null : (E.error(`Failed to fetch venue: ${e.statusCode}`), null);
724
+ return e.success ? e.data ?? null : (R.error(`Failed to fetch venue: ${e.statusCode}`), null);
728
725
  } catch (e) {
729
- return E.error("Error fetching venue:", e), null;
726
+ return R.error("Error fetching venue:", e), null;
730
727
  }
731
728
  }
732
- async function Ht(t) {
733
- const e = await He(t);
729
+ async function Wt(t) {
730
+ const e = await We(t);
734
731
  return e ? {
735
732
  serviceFeePercentage: e.serviceFeePercentage ?? 0,
736
733
  serviceFeeCents: e.serviceFeeCents ?? 0,
737
734
  taxPercentage: e.taxPercentage ?? 0
738
735
  } : null;
739
736
  }
740
- async function Wt(t) {
737
+ async function Qt(t) {
741
738
  try {
742
739
  if (!t)
743
- return E.warn("getVenueBySlug called without slug"), null;
740
+ return R.warn("getVenueBySlug called without slug"), null;
744
741
  const e = encodeURIComponent(t), r = await C(`/venues/slug/${e}`);
745
- return r.success ? r.data ?? null : (E.error(`Failed to fetch venue by slug: ${r.statusCode}`), null);
742
+ return r.success ? r.data ?? null : (R.error(`Failed to fetch venue by slug: ${r.statusCode}`), null);
746
743
  } catch (e) {
747
- return E.error("Error fetching venue by slug:", e), null;
744
+ return R.error("Error fetching venue by slug:", e), null;
748
745
  }
749
746
  }
750
- function We(t) {
747
+ function Qe(t) {
751
748
  const e = t ?? {}, r = (e.appliedAmount ?? 0) / 100, n = e.remainingTotal ?? 0, a = e.fullyCoveredByCard ?? n <= 0, s = !a;
752
749
  return {
753
750
  valid: !0,
@@ -760,11 +757,11 @@ function We(t) {
760
757
  requiresStripe: s
761
758
  };
762
759
  }
763
- const h = $("VC"), Qe = "https://get-micdrop.com", Je = `${Qe}/api/orders/v2`, j = () => R();
764
- async function Qt(t) {
760
+ const h = $("VC"), Je = "https://get-micdrop.com", Ye = `${Je}/api/orders/v2`, j = () => A();
761
+ async function Jt(t) {
765
762
  try {
766
- const e = await f(
767
- `${Je}/gift-cards`,
763
+ const e = await m(
764
+ `${Ye}/gift-cards`,
768
765
  t
769
766
  );
770
767
  if (!e.success)
@@ -777,13 +774,13 @@ async function Qt(t) {
777
774
  return h.error("Gift card purchase creation error:", e), null;
778
775
  }
779
776
  }
780
- async function Jt(t, e) {
777
+ async function Yt(t, e) {
781
778
  try {
782
- const r = await f(
779
+ const r = await m(
783
780
  `${j()}/cart/${t}/apply-gift-card`,
784
781
  { giftCardCode: e }
785
782
  );
786
- return r.success ? We(r.data) : r.statusCode === 429 ? {
783
+ return r.success ? Qe(r.data) : r.statusCode === 429 ? {
787
784
  valid: !1,
788
785
  error: "Too many attempts. Please wait a moment and try again."
789
786
  } : (h.error("Apply gift card failed:", r.error), {
@@ -797,9 +794,9 @@ async function Jt(t, e) {
797
794
  };
798
795
  }
799
796
  }
800
- async function Yt(t, e) {
797
+ async function Kt(t, e) {
801
798
  try {
802
- const r = await ve(
799
+ const r = await he(
803
800
  `${j()}/cart/${t}/gift-card`,
804
801
  e ? { body: JSON.stringify({ giftCardCode: e }) } : void 0
805
802
  );
@@ -814,9 +811,9 @@ async function Yt(t, e) {
814
811
  };
815
812
  }
816
813
  }
817
- async function Kt(t, e) {
814
+ async function Zt(t, e) {
818
815
  try {
819
- const r = await f(`${j()}/cart/${t}/complete-gift-card-payment`, {
816
+ const r = await m(`${j()}/cart/${t}/complete-gift-card-payment`, {
820
817
  firstName: e.firstName,
821
818
  lastName: e.lastName,
822
819
  email: e.email,
@@ -841,18 +838,18 @@ async function Kt(t, e) {
841
838
  };
842
839
  }
843
840
  }
844
- const M = $("VC"), Ye = {
841
+ const M = $("VC"), Ke = {
845
842
  waitlist_not_enabled: "Waitlist is not available for this event",
846
843
  event_not_found: "Event not found",
847
844
  invalid_phone: "Please enter a valid phone number",
848
845
  already_purchased: "You have already purchased tickets for this event",
849
846
  phone_already_registered: "This phone number is already on the waitlist"
850
847
  };
851
- async function Zt(t, e, r = null, n = !1) {
848
+ async function Xt(t, e, r = null, n = !1) {
852
849
  try {
853
850
  const a = { email: e };
854
851
  r && n && (a.phone = r, a.smsOptIn = !0);
855
- const s = await f(
852
+ const s = await m(
856
853
  `/events/${t}/waitlist`,
857
854
  a
858
855
  );
@@ -861,7 +858,7 @@ async function Zt(t, e, r = null, n = !1) {
861
858
  updated: s.data?.updated
862
859
  } : (M.error("Join waitlist failed:", s.error), {
863
860
  success: !1,
864
- error: Ye[s.error ?? ""] || "Failed to join waitlist. Please try again."
861
+ error: Ke[s.error ?? ""] || "Failed to join waitlist. Please try again."
865
862
  });
866
863
  } catch (a) {
867
864
  return M.error("joinWaitlist error:", a), {
@@ -870,7 +867,7 @@ async function Zt(t, e, r = null, n = !1) {
870
867
  };
871
868
  }
872
869
  }
873
- async function Xt(t) {
870
+ async function er(t) {
874
871
  const e = {
875
872
  waitlistEnabled: !1,
876
873
  soldOut: !1,
@@ -889,7 +886,7 @@ async function Xt(t) {
889
886
  return M.error("getWaitlistStatus error:", r), e;
890
887
  }
891
888
  }
892
- function er(t, e, r = {}) {
889
+ function tr(t, e, r = {}) {
893
890
  const {
894
891
  cancelled: n = !1,
895
892
  isRegistration: a = !1,
@@ -900,7 +897,7 @@ function er(t, e, r = {}) {
900
897
  const i = t.endDateTime || t.startDateTime;
901
898
  if (i && new Date(i) < o)
902
899
  return { text: "Sales ended", disabled: !0, reason: "event_past" };
903
- const u = t?.hasPurchasableHiddenTickets === !0 || Array.isArray(e) && e.some(pe), T = (e || []).filter(
900
+ const u = t?.hasPurchasableHiddenTickets === !0 || Array.isArray(e) && e.some(ye), T = (e || []).filter(
904
901
  (l) => l.salesChannel !== 2 && !l.isHidden && !(typeof l.visibility == "number" && l.visibility >= 2)
905
902
  );
906
903
  if (T.length === 0)
@@ -915,9 +912,9 @@ function er(t, e, r = {}) {
915
912
  };
916
913
  let y = !1, k = !0, g = !0, v = null;
917
914
  for (const l of T) {
918
- const P = l.salesBegin || l.salesStart || l.saleBegin || l.onSaleStart, x = l.salesEnd || l.saleEnd || l.onSaleEnd, S = l.remainingCapacity ?? l.quantityRemaining ?? l.quantity, _ = l.soldOut || S != null && S <= 0, I = P ? new Date(P) > o : !1, z = x ? new Date(x) < o : !1;
919
- if (!_ && !I && !z && (y = !0), _ || (k = !1), I || (g = !1), I && P && !_ && !z) {
920
- const B = new Date(P);
915
+ const I = l.salesBegin || l.salesStart || l.saleBegin || l.onSaleStart, x = l.salesEnd || l.saleEnd || l.onSaleEnd, S = l.remainingCapacity ?? l.quantityRemaining ?? l.quantity, _ = l.soldOut || S != null && S <= 0, E = I ? new Date(I) > o : !1, z = x ? new Date(x) < o : !1;
916
+ if (!_ && !E && !z && (y = !0), _ || (k = !1), E || (g = !1), E && I && !_ && !z) {
917
+ const B = new Date(I);
921
918
  (!v || B < v) && (v = B);
922
919
  }
923
920
  }
@@ -934,13 +931,13 @@ function er(t, e, r = {}) {
934
931
  disabled: !1,
935
932
  reason: "hidden_only"
936
933
  };
937
- const l = v.getTime() - o.getTime(), P = l / (1e3 * 60 * 60), x = l / (1e3 * 60 * 60 * 24), S = (I) => L(
938
- I,
934
+ const l = v.getTime() - o.getTime(), I = l / (1e3 * 60 * 60), x = l / (1e3 * 60 * 60 * 24), S = (E) => L(
935
+ E,
939
936
  { hour: "numeric", minute: "2-digit", hour12: !0 },
940
937
  "en-US"
941
938
  );
942
939
  let _;
943
- return P < 24 ? _ = S(v) : x <= 7 ? _ = L(
940
+ return I < 24 ? _ = S(v) : x <= 7 ? _ = L(
944
941
  v,
945
942
  { weekday: "short", hour: "numeric", minute: "2-digit", hour12: !0 },
946
943
  "en-US"
@@ -1007,31 +1004,28 @@ function oe(t) {
1007
1004
  updatedAt: e.updatedAt || e.updated_at
1008
1005
  };
1009
1006
  }
1010
- const tr = se, rr = oe;
1011
- function nr(t) {
1012
- const e = oe(t), r = e.uuid.split("-")[0] || e.uuid;
1007
+ const rr = se, nr = oe;
1008
+ function ar(t) {
1009
+ const e = oe(t), r = e.uuid.split("-")[0] || e.uuid, n = Number(e.totalAmount);
1013
1010
  return {
1014
1011
  orderId: e.uuid,
1015
1012
  displayOrderId: r,
1016
1013
  email: e.customerEmail,
1017
1014
  customerName: [e.customerFirstName, e.customerLastName].filter(Boolean).join(" "),
1018
1015
  total: e.totalAmount,
1019
- formattedTotal: `${me(
1020
- e.totalAmount / 100
1021
- /* FIXME(canonical-cleanup:toFixed): this cast bypasses the brand boundary; replace with toCents/toUSD at the API-response-transform layer. */
1022
- )}`,
1016
+ formattedTotal: `${me(pe(Number.isFinite(n) ? n / 100 : 0))}`,
1023
1017
  ticketCount: e.purchasedTickets.length,
1024
1018
  status: e.status
1025
1019
  };
1026
1020
  }
1027
- function Ke(t) {
1021
+ function Ze(t) {
1028
1022
  return K(t, { cdn: !0 });
1029
1023
  }
1030
1024
  function J(t) {
1031
1025
  const e = t.imageUrl || t.imageURL || t.image_url || t.image || "";
1032
- return Ke(e);
1026
+ return Ze(e);
1033
1027
  }
1034
- function Ze(t) {
1028
+ function Xe(t) {
1035
1029
  switch (t) {
1036
1030
  case "available":
1037
1031
  case "sold_out":
@@ -1042,10 +1036,10 @@ function Ze(t) {
1042
1036
  return null;
1043
1037
  }
1044
1038
  }
1045
- function Xe(t) {
1039
+ function et(t) {
1046
1040
  const e = t.ctaState || t.cta_state;
1047
1041
  if (e) {
1048
- const o = Ze(e);
1042
+ const o = Xe(e);
1049
1043
  if (o)
1050
1044
  return o;
1051
1045
  }
@@ -1116,7 +1110,7 @@ function ce(t) {
1116
1110
  minPrice: e.minPrice ?? e.min_price ?? s,
1117
1111
  maxPrice: e.maxPrice ?? e.max_price ?? o,
1118
1112
  ctaText: e.ctaText || e.cta_text,
1119
- ctaState: Xe(e),
1113
+ ctaState: et(e),
1120
1114
  showPerformers: e.showPerformers ?? e.show_performers,
1121
1115
  eventSeriesId: e.eventSeriesId || e.event_series_id,
1122
1116
  seriesInstanceNumber: e.seriesInstanceNumber || e.series_instance_number,
@@ -1150,11 +1144,11 @@ function ce(t) {
1150
1144
  purchasedTickets: e.purchasedTickets
1151
1145
  };
1152
1146
  }
1153
- const ar = ie, sr = ce, or = ce;
1154
- function et(t) {
1147
+ const sr = ie, or = ce, ir = ce;
1148
+ function tt(t) {
1155
1149
  return K(t, { cdn: !0 });
1156
1150
  }
1157
- function tt(t) {
1151
+ function rt(t) {
1158
1152
  const e = t, r = e.logoUrl || e.logo_url || e.logo;
1159
1153
  return {
1160
1154
  id: e.id || e.ID || 0,
@@ -1167,15 +1161,15 @@ function tt(t) {
1167
1161
  zipCode: e.zipCode || e.zip_code,
1168
1162
  country: e.country,
1169
1163
  timezone: e.timezone || e.time_zone,
1170
- logoUrl: et(r),
1164
+ logoUrl: tt(r),
1171
1165
  serviceFeePercentage: e.serviceFeePercentage ?? e.service_fee_percentage ?? 0,
1172
1166
  serviceFeeCents: e.serviceFeeCents ?? e.service_fee_cents ?? 0,
1173
1167
  taxPercentage: e.taxPercentage ?? e.tax_percentage ?? 0,
1174
1168
  organizationId: e.organizationId || e.organization_id
1175
1169
  };
1176
1170
  }
1177
- const ir = tt;
1178
- function cr(t) {
1171
+ const cr = rt;
1172
+ function ur(t) {
1179
1173
  const e = t;
1180
1174
  return {
1181
1175
  serviceFeePercentage: e.serviceFeePercentage ?? e.service_fee_percentage ?? 0,
@@ -1183,89 +1177,89 @@ function cr(t) {
1183
1177
  taxPercentage: e.taxPercentage ?? e.tax_percentage ?? 0
1184
1178
  };
1185
1179
  }
1186
- function ur(t) {
1180
+ function lr(t) {
1187
1181
  return [t.address, t.city, t.state, t.zipCode].filter(
1188
1182
  Boolean
1189
1183
  ).join(", ");
1190
1184
  }
1191
1185
  export {
1192
- ve as apiDelete,
1186
+ he as apiDelete,
1193
1187
  C as apiGet,
1194
- f as apiPost,
1195
- ft as apiPut,
1196
- Jt as applyGiftCard,
1188
+ m as apiPost,
1189
+ mt as apiPut,
1190
+ Yt as applyGiftCard,
1197
1191
  St as applyPromoCode,
1198
- Xe as calculateCtaState,
1199
- vt as cancelReservation,
1200
- jt as checkCollectionPassword,
1201
- zt as checkEventPassword,
1202
- Kt as completeGiftCardPayment,
1203
- gt as completeReservation,
1204
- er as computeCtaState,
1205
- ct as configureApi,
1206
- Qt as createGiftCardPurchase,
1207
- ht as createOrder,
1208
- mt as createPaymentIntent,
1192
+ et as calculateCtaState,
1193
+ ht as cancelReservation,
1194
+ zt as checkCollectionPassword,
1195
+ Bt as checkEventPassword,
1196
+ Zt as completeGiftCardPayment,
1197
+ vt as completeReservation,
1198
+ tr as computeCtaState,
1199
+ ut as configureApi,
1200
+ Jt as createGiftCardPurchase,
1201
+ _t as createOrder,
1202
+ pt as createPaymentIntent,
1209
1203
  b as err,
1210
1204
  Q as errNotFound,
1211
- kt as extendCheckoutSession,
1212
- cr as extractVenueFees,
1213
- Ut as fetchAllVenues,
1214
- qe as fetchAllVenuesResult,
1215
- At as fetchEventDetails,
1216
- Fe as fetchEventDetailsResult,
1217
- Nt as fetchEventPerformers,
1218
- Le as fetchEventPerformersResult,
1219
- Dt as fetchEventTickets,
1220
- Ve as fetchEventTicketsResult,
1221
- Gt as fetchPublicCollection,
1222
- Lt as fetchSeriesOccurrences,
1223
- Be as fetchSeriesOccurrencesResult,
1224
- Mt as fetchSeriesPage,
1225
- xt as fetchVenueEvents,
1226
- Me as fetchVenueEventsResult,
1227
- ur as formatVenueAddress,
1228
- ut as getApiConfig,
1229
- Ke as getCDNImageUrl,
1230
- pt as getCartByUUID,
1231
- dt as getClientIP,
1205
+ bt as extendCheckoutSession,
1206
+ ur as extractVenueFees,
1207
+ xt as fetchAllVenues,
1208
+ Me as fetchAllVenuesResult,
1209
+ Dt as fetchEventDetails,
1210
+ Ve as fetchEventDetailsResult,
1211
+ Ut as fetchEventPerformers,
1212
+ qe as fetchEventPerformersResult,
1213
+ Nt as fetchEventTickets,
1214
+ Le as fetchEventTicketsResult,
1215
+ jt as fetchPublicCollection,
1216
+ qt as fetchSeriesOccurrences,
1217
+ He as fetchSeriesOccurrencesResult,
1218
+ Gt as fetchSeriesPage,
1219
+ Ot as fetchVenueEvents,
1220
+ Ge as fetchVenueEventsResult,
1221
+ lr as formatVenueAddress,
1222
+ lt as getApiConfig,
1223
+ Ze as getCDNImageUrl,
1224
+ yt as getCartByUUID,
1225
+ ft as getClientIP,
1232
1226
  J as getEventImageUrl,
1233
- lt as getLegacyPublicUrl,
1234
- Ot as getMonthEvents,
1235
- Ge as getMonthEventsResult,
1236
- _t as getOrder,
1237
- R as getOrdersV2Url,
1238
- Ft as getOrgMonthEvents,
1239
- je as getOrgMonthEventsResult,
1227
+ dt as getLegacyPublicUrl,
1228
+ Ft as getMonthEvents,
1229
+ je as getMonthEventsResult,
1230
+ wt as getOrder,
1231
+ A as getOrdersV2Url,
1232
+ Vt as getOrgMonthEvents,
1233
+ ze as getOrgMonthEventsResult,
1240
1234
  c as getPublicBaseUrl,
1241
- Vt as getSeriesOccurrences,
1242
- ze as getSeriesOccurrencesResult,
1243
- bt as getSessionStatus,
1244
- He as getVenue,
1245
- Wt as getVenueBySlug,
1246
- Ht as getVenueFees,
1247
- Xt as getWaitlistStatus,
1248
- Pt as hasPromoCodes,
1249
- $t as initiateOrder,
1250
- Rt as isErr,
1251
- Et as isOk,
1252
- Zt as joinWaitlist,
1235
+ Lt as getSeriesOccurrences,
1236
+ Be as getSeriesOccurrencesResult,
1237
+ $t as getSessionStatus,
1238
+ We as getVenue,
1239
+ Qt as getVenueBySlug,
1240
+ Wt as getVenueFees,
1241
+ er as getWaitlistStatus,
1242
+ It as hasPromoCodes,
1243
+ Ct as initiateOrder,
1244
+ At as isErr,
1245
+ Rt as isOk,
1246
+ Xt as joinWaitlist,
1253
1247
  ne as ok,
1254
- Yt as removeGiftCard,
1255
- It as removePromoCode,
1256
- qt as resolvePublicEntity,
1257
- Bt as testNetworkConnection,
1258
- Ct as trackUTMSource,
1259
- ar as transformAvailableTicket,
1260
- sr as transformEvent,
1261
- or as transformEventData,
1262
- rr as transformOrder,
1263
- nr as transformOrderForDisplay,
1264
- tr as transformTicket,
1265
- ir as transformVenue,
1248
+ Kt as removeGiftCard,
1249
+ Et as removePromoCode,
1250
+ Mt as resolvePublicEntity,
1251
+ Ht as testNetworkConnection,
1252
+ Pt as trackUTMSource,
1253
+ sr as transformAvailableTicket,
1254
+ or as transformEvent,
1255
+ ir as transformEventData,
1256
+ nr as transformOrder,
1257
+ ar as transformOrderForDisplay,
1258
+ rr as transformTicket,
1259
+ cr as transformVenue,
1266
1260
  D as unwrapOr,
1267
- yt as updateCartQuantities,
1268
- wt as validatePaymentIntent,
1261
+ gt as updateCartQuantities,
1262
+ kt as validatePaymentIntent,
1269
1263
  Tt as validatePromoCode
1270
1264
  };
1271
1265
  //# sourceMappingURL=api.mjs.map