@getmicdrop/venue-calendar 4.2.10 → 4.2.11

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/{CartView-Bka7Ouuf.js → CartView-DKEYzXBY.js} +11 -11
  2. package/dist/{Checkout-DH268Kso.js → Checkout-ClTYS0Sk.js} +12 -12
  3. package/dist/{Checkout-LkiR2I6U.js → Checkout-W22fMD3O.js} +264 -243
  4. package/dist/{CheckoutTimer-C4SBpf38.js → CheckoutTimer-C9tJJZC8.js} +1 -1
  5. package/dist/{CollectionView-CQ6BKmpp.js → CollectionView-CrbFmrTG.js} +4 -4
  6. package/dist/{Event-Dt-7Pau8.js → Event-BDXfT25f.js} +7 -7
  7. package/dist/{EventPage-CkziHztQ.js → EventPage-ZaARiPwa.js} +10 -10
  8. package/dist/{ScarcityBadge-hVqsuotm.js → ScarcityBadge-R32tzjFi.js} +1 -1
  9. package/dist/{SeriesPage-CtVo7ltY.js → SeriesPage-D06QOPK7.js} +3 -3
  10. package/dist/{Success-CgLRsVYC.js → Success-CvoORmAN.js} +15 -15
  11. package/dist/{ViewTicketsEmbed-CKucKt-W.js → ViewTicketsEmbed-C0QPIbpw.js} +6 -6
  12. package/dist/{__SKIP_PATHS__-BTbGfN80.js → __SKIP_PATHS__-DmdRxELE.js} +1 -1
  13. package/dist/api/api.cjs +1 -1
  14. package/dist/api/api.mjs +267 -252
  15. package/dist/api/gift-cards.d.ts +13 -3
  16. package/dist/api/orders.d.ts +12 -0
  17. package/dist/api/transformers/cart.d.ts +16 -1
  18. package/dist/{colors-fhDq0k7I.js → colors-Dk53YuNz.js} +80 -75
  19. package/dist/{event-transform-eNiddvbF.js → event-transform-DUqXNcXz.js} +1 -1
  20. package/dist/{eventStatusStream-sq6uPnMe.js → eventStatusStream-C5KadkMh.js} +1 -1
  21. package/dist/{i18n-Bk8x-2nR.js → i18n-nPKgIP_8.js} +2 -2
  22. package/dist/{labels-Djxn2Lvi.js → labels-YAwDbsF8.js} +1 -1
  23. package/dist/{orders-NZP81zYT.js → orders-xGH8-IQn.js} +264 -216
  24. package/dist/{pixels-BBruZizp.js → pixels-Hb-kLRzV.js} +8 -8
  25. package/dist/{utils-CAxbM_uh.js → utils-CcxQIxOO.js} +49 -49
  26. package/dist/venue-calendar.es.js +740 -740
  27. package/dist/venue-calendar.iife.js +57 -57
  28. package/dist/venue-calendar.umd.js +47 -47
  29. package/package.json +1 -1
  30. /package/dist/locales/{4.2.10 → 4.2.11}/flow/de.js +0 -0
  31. /package/dist/locales/{4.2.10 → 4.2.11}/flow/es.js +0 -0
  32. /package/dist/locales/{4.2.10 → 4.2.11}/flow/fr.js +0 -0
  33. /package/dist/locales/{4.2.10 → 4.2.11}/flow/id.js +0 -0
  34. /package/dist/locales/{4.2.10 → 4.2.11}/flow/it.js +0 -0
  35. /package/dist/locales/{4.2.10 → 4.2.11}/flow/ja.js +0 -0
  36. /package/dist/locales/{4.2.10 → 4.2.11}/flow/ko.js +0 -0
  37. /package/dist/locales/{4.2.10 → 4.2.11}/flow/nl.js +0 -0
  38. /package/dist/locales/{4.2.10 → 4.2.11}/flow/pl.js +0 -0
  39. /package/dist/locales/{4.2.10 → 4.2.11}/flow/pt-br.js +0 -0
  40. /package/dist/locales/{4.2.10 → 4.2.11}/flow/tr.js +0 -0
  41. /package/dist/locales/{4.2.10 → 4.2.11}/flow/zh.js +0 -0
  42. /package/dist/locales/{4.2.10 → 4.2.11}/main/de.js +0 -0
  43. /package/dist/locales/{4.2.10 → 4.2.11}/main/es.js +0 -0
  44. /package/dist/locales/{4.2.10 → 4.2.11}/main/fr.js +0 -0
  45. /package/dist/locales/{4.2.10 → 4.2.11}/main/id.js +0 -0
  46. /package/dist/locales/{4.2.10 → 4.2.11}/main/it.js +0 -0
  47. /package/dist/locales/{4.2.10 → 4.2.11}/main/ja.js +0 -0
  48. /package/dist/locales/{4.2.10 → 4.2.11}/main/ko.js +0 -0
  49. /package/dist/locales/{4.2.10 → 4.2.11}/main/nl.js +0 -0
  50. /package/dist/locales/{4.2.10 → 4.2.11}/main/pl.js +0 -0
  51. /package/dist/locales/{4.2.10 → 4.2.11}/main/pt-br.js +0 -0
  52. /package/dist/locales/{4.2.10 → 4.2.11}/main/tr.js +0 -0
  53. /package/dist/locales/{4.2.10 → 4.2.11}/main/zh.js +0 -0
@@ -1,7 +1,7 @@
1
1
  import { S as e, x as t } from "./Button-C4uFgl7L.js";
2
- import { a as n, i as r, w as i } from "./timezones-C5l0SSHK.js";
2
+ import { F as n, O as r, a as i, i as a, w as o } from "./timezones-C5l0SSHK.js";
3
3
  //#region node_modules/@getmicdrop/svelte-components/dist/errors/classes/ApiError.js
4
- var a = class e extends i {
4
+ var s = class e extends o {
5
5
  constructor(e, t, n = {}) {
6
6
  super(e, `API_${t}`, {
7
7
  status: t,
@@ -11,20 +11,20 @@ var a = class e extends i {
11
11
  }), this.name = "ApiError", this.endpoint = n.endpoint, this.method = n.method, this.requestId = n.requestId;
12
12
  }
13
13
  getUserMessage(e) {
14
- return n(this.status, this.message, e);
14
+ return i(this.status, this.message, e);
15
15
  }
16
16
  isRetryable() {
17
17
  return this.status >= 500 || this.status === 429;
18
18
  }
19
- static async fromResponse(t, n, i) {
20
- let a = `Request failed with status ${t.status}`, o;
19
+ static async fromResponse(t, n, r) {
20
+ let i = `Request failed with status ${t.status}`, o;
21
21
  try {
22
22
  let e = await t.json();
23
- a = r(e, a), o = e.details || e;
23
+ i = a(e, i), o = e.details || e;
24
24
  } catch {}
25
- return new e(a, t.status, {
25
+ return new e(i, t.status, {
26
26
  endpoint: n,
27
- method: i,
27
+ method: r,
28
28
  details: o,
29
29
  requestId: t.headers.get("x-request-id") || void 0
30
30
  });
@@ -32,7 +32,7 @@ var a = class e extends i {
32
32
  };
33
33
  //#endregion
34
34
  //#region node_modules/@getmicdrop/svelte-components/dist/utils/storage/storage.js
35
- function o(e) {
35
+ function c(e) {
36
36
  if (typeof window > "u") return null;
37
37
  try {
38
38
  return e === "local" ? window.localStorage : window.sessionStorage;
@@ -40,7 +40,7 @@ function o(e) {
40
40
  return null;
41
41
  }
42
42
  }
43
- function s(e, t) {
43
+ function l(e, t) {
44
44
  if (e == null || e === "") return t;
45
45
  try {
46
46
  return JSON.parse(e);
@@ -48,7 +48,7 @@ function s(e, t) {
48
48
  return t;
49
49
  }
50
50
  }
51
- function c(e, t, n) {
51
+ function ee(e, t, n) {
52
52
  if (!e) return n;
53
53
  let r;
54
54
  try {
@@ -56,9 +56,9 @@ function c(e, t, n) {
56
56
  } catch {
57
57
  return n;
58
58
  }
59
- return s(r, n);
59
+ return l(r, n);
60
60
  }
61
- function l(t, n, r) {
61
+ function te(t, n, r) {
62
62
  if (!t) return !1;
63
63
  try {
64
64
  return t.setItem(n, JSON.stringify(r)), !0;
@@ -66,91 +66,91 @@ function l(t, n, r) {
66
66
  return e.warn(`storage: failed to write "${n}"`, t), !1;
67
67
  }
68
68
  }
69
- function u(e, t) {
69
+ function ne(e, t) {
70
70
  if (e) try {
71
71
  e.removeItem(t);
72
72
  } catch {}
73
73
  }
74
+ function u(e, t, n) {
75
+ return ee(c(e), t, n);
76
+ }
74
77
  function d(e, t, n) {
75
- return c(o(e), t, n);
78
+ return te(c(e), t, n);
76
79
  }
77
- function f(e, t, n) {
78
- return l(o(e), t, n);
80
+ function f(e, t) {
81
+ ne(c(e), t);
79
82
  }
80
- function p(e, t) {
81
- u(o(e), t);
83
+ function re(e, t = null) {
84
+ return u("local", e, t);
82
85
  }
83
- function m(e, t = null) {
86
+ function p(e, t) {
84
87
  return d("local", e, t);
85
88
  }
86
- function h(e, t) {
87
- return f("local", e, t);
89
+ function ie(e) {
90
+ f("local", e);
88
91
  }
89
- function ee(e) {
90
- p("local", e);
92
+ function m(e, t = null) {
93
+ return u("session", e, t);
91
94
  }
92
- function g(e, t = null) {
95
+ function h(e, t) {
93
96
  return d("session", e, t);
94
97
  }
95
- function _(e, t) {
96
- return f("session", e, t);
97
- }
98
- function te(e) {
99
- p("session", e);
98
+ function ae(e) {
99
+ f("session", e);
100
100
  }
101
101
  //#endregion
102
102
  //#region src/lib/config.js
103
- var ne = t("VC:config", { enabled: !0 }), v = null;
104
- function re(e) {
103
+ var oe = t("VC:config", { enabled: !0 }), g = null;
104
+ function se(e) {
105
105
  let t = e || null;
106
- v && t && t !== v && ne.warn("[VC] setWidgetKey called again with a DIFFERENT key. The widget key is module-global, so every calendar on this page will now use the last one set — any element configured with the previous key will get 403s on its public reads and render empty. Give each element its own widget-key attribute (threaded per-instance) rather than calling setWidgetKey() more than once."), v = t;
106
+ g && t && t !== g && oe.warn("[VC] setWidgetKey called again with a DIFFERENT key. The widget key is module-global, so every calendar on this page will now use the last one set — any element configured with the previous key will get 403s on its public reads and render empty. Give each element its own widget-key attribute (threaded per-instance) rather than calling setWidgetKey() more than once."), g = t;
107
107
  }
108
- function y() {
109
- if (v) return v;
108
+ function _() {
109
+ if (g) return g;
110
110
  }
111
- var b = null;
112
- function ie(e) {
113
- b = typeof e == "string" && e.trim() ? e.trim() : null;
111
+ var v = null;
112
+ function ce(e) {
113
+ v = typeof e == "string" && e.trim() ? e.trim() : null;
114
114
  }
115
- function ae() {
116
- return (b || E().baseUrl || "").replace(/\/+$/, "");
115
+ function le() {
116
+ return (v || w().baseUrl || "").replace(/\/+$/, "");
117
117
  }
118
- function oe(e) {}
119
- var x = {
118
+ function ue(e) {}
119
+ var y = {
120
120
  postMessageOnSuccess: !1,
121
121
  postMessageTargetOrigin: null
122
122
  };
123
- function se(e = {}) {
124
- x = {
125
- ...x,
123
+ function de(e = {}) {
124
+ y = {
125
+ ...y,
126
126
  ...e
127
127
  };
128
128
  }
129
- function ce() {
130
- return { ...x };
129
+ function fe() {
130
+ return { ...y };
131
131
  }
132
132
  //#endregion
133
133
  //#region src/lib/api/client.ts
134
- var S = t("VC"), C = /* @__PURE__ */ new Set();
135
- function le(e) {
136
- return C.add(e), () => {
137
- C.delete(e);
134
+ var b = t("VC"), x = /* @__PURE__ */ new Set();
135
+ function pe(e) {
136
+ return x.add(e), () => {
137
+ x.delete(e);
138
138
  };
139
139
  }
140
- function ue(e) {
141
- if (e) for (let t of C) try {
140
+ function me(e) {
141
+ if (e) for (let t of x) try {
142
142
  t(e);
143
143
  } catch {}
144
144
  }
145
- var de = "ABORTED";
146
- function w(e, t) {
147
- let n = t || y();
145
+ var he = "ABORTED";
146
+ function S(e, t) {
147
+ let n = t || _();
148
148
  return n ? {
149
149
  ...e,
150
150
  "X-Widget-Key": n
151
151
  } : e;
152
152
  }
153
- function fe(e, t) {
153
+ function ge(e, t) {
154
154
  let n = `HTTP ${t}`;
155
155
  if (!e || typeof e != "object") return { message: n };
156
156
  let r = e, i = r.error && typeof r.error == "object" ? r.error : null, a = typeof r.code == "string" ? r.code : typeof i?.code == "string" ? i.code : void 0;
@@ -159,36 +159,36 @@ function fe(e, t) {
159
159
  code: a
160
160
  };
161
161
  }
162
- var pe = class extends Error {
162
+ var _e = class extends Error {
163
163
  code;
164
164
  statusCode;
165
165
  constructor(e, t, n) {
166
166
  super(e), this.name = "ApiRequestError", this.code = t, this.statusCode = n;
167
167
  }
168
- }, T = {
168
+ }, C = {
169
169
  baseUrl: "https://get-micdrop.com",
170
170
  timeout: 3e4,
171
171
  retries: 2,
172
172
  retryDelay: 500,
173
- onError: (e) => S.error("API Error:", e)
173
+ onError: (e) => b.error("API Error:", e)
174
174
  };
175
- function me(e) {
176
- T = {
177
- ...T,
175
+ function ve(e) {
176
+ C = {
177
+ ...C,
178
178
  ...e
179
179
  };
180
180
  }
181
- function E() {
182
- return { ...T };
181
+ function w() {
182
+ return { ...C };
183
183
  }
184
- function D() {
185
- return `${T.baseUrl}/api/v2/public`;
184
+ function T() {
185
+ return `${C.baseUrl}/api/v2/public`;
186
186
  }
187
- function O() {
188
- return `${T.baseUrl}/api/orders/v2/public`;
187
+ function E() {
188
+ return `${C.baseUrl}/api/orders/v2/public`;
189
189
  }
190
- var he = (e) => new Promise((t) => setTimeout(t, e));
191
- async function k(e, t, n) {
190
+ var ye = (e) => new Promise((t) => setTimeout(t, e));
191
+ async function D(e, t, n) {
192
192
  let r = (t.method || "GET").toUpperCase(), i = r === "GET" || r === "HEAD" ? n.retries + 1 : 1, a;
193
193
  for (let r = 1; r <= i; r++) {
194
194
  let o = new AbortController(), s = setTimeout(() => o.abort(), n.timeout), c = t.signal, l;
@@ -205,36 +205,36 @@ async function k(e, t, n) {
205
205
  } finally {
206
206
  clearTimeout(s), c && l && c.removeEventListener("abort", l);
207
207
  }
208
- r < i && await he(n.retryDelay * 2 ** (r - 1));
208
+ r < i && await ye(n.retryDelay * 2 ** (r - 1));
209
209
  }
210
210
  throw a;
211
211
  }
212
- async function A(e, t) {
213
- return M("GET", e, void 0, t);
212
+ async function O(e, t) {
213
+ return A("GET", e, void 0, t);
214
214
  }
215
- async function j(e, t, n) {
216
- return M("POST", e, t, n);
215
+ async function k(e, t, n) {
216
+ return A("POST", e, t, n);
217
217
  }
218
- async function ge(e, t) {
219
- return M("DELETE", e, void 0, t);
218
+ async function be(e, t) {
219
+ return A("DELETE", e, void 0, t);
220
220
  }
221
- async function M(e, t, n, r) {
222
- let i = t.startsWith("http") || t.startsWith("/api/") ? t : `${D()}${t}`, { widgetKey: a, suppressOnError: o, headers: s, ...c } = r ?? {}, l = (e) => {
223
- o || T.onError(e);
221
+ async function A(e, t, n, r) {
222
+ let i = t.startsWith("http") || t.startsWith("/api/") ? t : `${T()}${t}`, { widgetKey: a, suppressOnError: o, headers: s, ...c } = r ?? {}, l = (e) => {
223
+ o || C.onError(e);
224
224
  };
225
225
  try {
226
- let t = await k(i, {
226
+ let t = await D(i, {
227
227
  method: e,
228
- headers: w({
228
+ headers: S({
229
229
  "Content-Type": "application/json",
230
230
  ...s
231
231
  }, a),
232
232
  body: n === void 0 ? void 0 : JSON.stringify(n),
233
233
  ...c
234
- }, T);
234
+ }, C);
235
235
  if (!t.ok) {
236
- let { message: e, code: n } = fe(await t.json().catch(() => ({})), t.status);
237
- return l(new pe(e, n, t.status)), ue(n), {
236
+ let { message: e, code: n } = ge(await t.json().catch(() => ({})), t.status);
237
+ return l(new _e(e, n, t.status)), me(n), {
238
238
  success: !1,
239
239
  error: e,
240
240
  errorCode: n,
@@ -250,7 +250,7 @@ async function M(e, t, n, r) {
250
250
  if (r?.signal?.aborted) return {
251
251
  success: !1,
252
252
  error: "Request aborted",
253
- errorCode: de,
253
+ errorCode: he,
254
254
  aborted: !0
255
255
  };
256
256
  let t = e instanceof Error ? e.name === "AbortError" ? "Request timed out" : e.message : "Unknown error";
@@ -260,78 +260,78 @@ async function M(e, t, n, r) {
260
260
  };
261
261
  }
262
262
  }
263
- async function _e(e, t) {
264
- return j(`${D()}/tax-preview`, e, {
263
+ async function xe(e, t) {
264
+ return k(`${T()}/tax-preview`, e, {
265
265
  signal: t?.signal,
266
266
  suppressOnError: t?.suppressOnError ?? !0
267
267
  });
268
268
  }
269
- async function ve(e, t) {
269
+ async function Se(e, t) {
270
270
  try {
271
- let n = e.startsWith(T.baseUrl), { widgetKey: r, ...i } = t ?? {}, a = await k(e, {
271
+ let n = e.startsWith(C.baseUrl), { widgetKey: r, ...i } = t ?? {}, a = await D(e, {
272
272
  ...i,
273
- ...n ? { headers: w(i.headers, r) } : {}
274
- }, T);
273
+ ...n ? { headers: S(i.headers, r) } : {}
274
+ }, C);
275
275
  if (!a.ok) {
276
276
  let e = await a.json().catch(() => ({}));
277
- return S.error(`API request failed: ${a.status}`, e), null;
277
+ return b.error(`API request failed: ${a.status}`, e), null;
278
278
  }
279
279
  return a.json();
280
280
  } catch (e) {
281
- return S.error("API request error:", e), null;
281
+ return b.error("API request error:", e), null;
282
282
  }
283
283
  }
284
284
  //#endregion
285
285
  //#region src/lib/tracking/normalize.ts
286
- var N = [
286
+ var Ce = [
287
287
  "utmSource",
288
288
  "utmMedium",
289
289
  "utmCampaign",
290
290
  "utmContent",
291
291
  "utmTerm"
292
- ], ye = {
292
+ ], we = {
293
293
  utmSource: "utm_source",
294
294
  utmMedium: "utm_medium",
295
295
  utmCampaign: "utm_campaign",
296
296
  utmContent: "utm_content",
297
297
  utmTerm: "utm_term"
298
- }, P = "direct";
299
- function F(e) {
298
+ }, Te = "direct";
299
+ function j(e) {
300
300
  return e ? e.trim().toLowerCase().replace(/\s+/g, "_") : "";
301
301
  }
302
- function be(e) {
302
+ function Ee(e) {
303
303
  let t = {};
304
- for (let n of N) t[n] = F(e[n]);
305
- return t.utmSource ||= P, t;
304
+ for (let n of Ce) t[n] = j(e[n]);
305
+ return t.utmSource ||= Te, t;
306
306
  }
307
- function xe(e) {
307
+ function De(e) {
308
308
  let t = {};
309
- for (let n of N) t[n] = e.get(ye[n]);
310
- return be(t);
309
+ for (let n of Ce) t[n] = e.get(we[n]);
310
+ return Ee(t);
311
311
  }
312
- function I(e) {
312
+ function M(e) {
313
313
  return !!e.utmSource && e.utmSource !== "direct";
314
314
  }
315
315
  //#endregion
316
316
  //#region src/lib/tracking/context.ts
317
- var L = null, R = null, z = {
317
+ var N = null, P = null, F = {
318
318
  search: null,
319
319
  referrer: null,
320
320
  pageUrl: null
321
321
  };
322
- function Se(e) {
323
- e.widgetId !== void 0 && (L = e.widgetId || null), e.venueId !== void 0 && (R = e.venueId ?? null);
322
+ function Oe(e) {
323
+ e.widgetId !== void 0 && (N = e.widgetId || null), e.venueId !== void 0 && (P = e.venueId ?? null);
324
324
  }
325
- function Ce(e) {
326
- e.search !== void 0 && (z.search = e.search === null ? null : e.search instanceof URLSearchParams ? e.search.toString() : e.search), e.referrer !== void 0 && (z.referrer = e.referrer), e.pageUrl !== void 0 && (z.pageUrl = e.pageUrl);
325
+ function ke(e) {
326
+ e.search !== void 0 && (F.search = e.search === null ? null : e.search instanceof URLSearchParams ? e.search.toString() : e.search), e.referrer !== void 0 && (F.referrer = e.referrer), e.pageUrl !== void 0 && (F.pageUrl = e.pageUrl);
327
327
  }
328
- function we() {
329
- return L;
328
+ function Ae() {
329
+ return N;
330
330
  }
331
- function Te() {
332
- return R;
331
+ function je() {
332
+ return P;
333
333
  }
334
- function Ee() {
334
+ function Me() {
335
335
  if (typeof window > "u") return !0;
336
336
  try {
337
337
  return window.self === window.top;
@@ -339,57 +339,57 @@ function Ee() {
339
339
  return !1;
340
340
  }
341
341
  }
342
- function B() {
343
- let e = typeof window < "u", t = Ee(), n = z.search ?? (e ? window.location.search : ""), r = z.referrer ?? (typeof document < "u" ? document.referrer : "") ?? "", i = z.pageUrl ?? (e && t ? window.location.href : "");
342
+ function I() {
343
+ let e = typeof window < "u", t = Me(), n = F.search ?? (e ? window.location.search : ""), r = F.referrer ?? (typeof document < "u" ? document.referrer : "") ?? "", i = F.pageUrl ?? (e && t ? window.location.href : "");
344
344
  return {
345
- utm: xe(new URLSearchParams(n)),
345
+ utm: De(new URLSearchParams(n)),
346
346
  referrer: r || "",
347
347
  pageUrl: i || ""
348
348
  };
349
349
  }
350
- function De() {
350
+ function Ne() {
351
351
  if (typeof navigator > "u") return "desktop";
352
352
  let e = navigator.userAgent.toLowerCase();
353
353
  return /ipad|tablet|playbook|silk/.test(e) ? "tablet" : /mobile|iphone|ipod|android.*mobile|windows phone|blackberry/.test(e) ? "mobile" : /android/.test(e) ? "tablet" : "desktop";
354
354
  }
355
355
  //#endregion
356
356
  //#region src/lib/tracking/consent.ts
357
- var V = null, H = !1, U = !1, Oe = !1;
358
- function ke(e) {
359
- V = e;
357
+ var L = null, R = !1, z = !1, Pe = !1;
358
+ function Fe(e) {
359
+ L = e;
360
360
  }
361
- function Ae(e) {
362
- H = e;
361
+ function Ie(e) {
362
+ R = e;
363
363
  }
364
- function W() {
365
- return Oe;
364
+ function B() {
365
+ return Pe;
366
366
  }
367
- function G() {
367
+ function V() {
368
368
  return typeof window < "u" && typeof window.__tcfapi == "function";
369
369
  }
370
- function K() {
370
+ function H() {
371
371
  return typeof navigator < "u" && navigator.globalPrivacyControl === !0;
372
372
  }
373
- function je() {
374
- return V === null ? G() || K() : V;
373
+ function Le() {
374
+ return L === null ? V() || H() : L;
375
375
  }
376
- function q() {
377
- return !je() || H;
376
+ function U() {
377
+ return !Le() || R;
378
378
  }
379
- function Me() {
380
- if (U || !G()) return;
381
- U = !0;
379
+ function Re() {
380
+ if (z || !V()) return;
381
+ z = !0;
382
382
  let e = window.__tcfapi;
383
383
  try {
384
384
  e("addEventListener", 2, (e, t) => {
385
385
  if (!(!t || !e)) {
386
386
  if (e.gdprApplies === !1) {
387
- K() || (H = !0);
387
+ H() || (R = !0);
388
388
  return;
389
389
  }
390
390
  if (e.eventStatus === "tcloaded" || e.eventStatus === "useractioncomplete") {
391
391
  let t = e.purpose?.consents;
392
- H = !!t && Object.values(t).some(Boolean);
392
+ R = !!t && Object.values(t).some(Boolean);
393
393
  }
394
394
  }
395
395
  });
@@ -397,11 +397,11 @@ function Me() {
397
397
  }
398
398
  //#endregion
399
399
  //#region src/lib/tracking/identity.ts
400
- var J = "micdrop_session_id", Y = "micdrop_visitor_id", Ne = /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
401
- function Pe(e) {
402
- return typeof e == "string" && Ne.test(e);
400
+ var W = "micdrop_session_id", G = "micdrop_visitor_id", ze = /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
401
+ function K(e) {
402
+ return typeof e == "string" && ze.test(e);
403
403
  }
404
- function Fe() {
404
+ function q() {
405
405
  let e = typeof crypto < "u" ? crypto : void 0;
406
406
  if (e?.randomUUID) return e.randomUUID();
407
407
  let t = /* @__PURE__ */ new Uint8Array(16);
@@ -412,20 +412,20 @@ function Fe() {
412
412
  for (let e = 0; e < 16; e++) n.push(t[e].toString(16).padStart(2, "0"));
413
413
  return `${n[0]}${n[1]}${n[2]}${n[3]}-${n[4]}${n[5]}-${n[6]}${n[7]}-${n[8]}${n[9]}-${n[10]}${n[11]}${n[12]}${n[13]}${n[14]}${n[15]}`;
414
414
  }
415
- function Ie() {
416
- let e = g(J);
417
- return e || (e = Fe(), _(J, e)), e;
415
+ function J() {
416
+ let e = m(W);
417
+ return e || (e = q(), h(W, e)), e;
418
418
  }
419
- function Le(e) {
420
- let t = m(Y);
421
- if (Pe(t)) return {
419
+ function Be(e) {
420
+ let t = re(G);
421
+ if (K(t)) return {
422
422
  id: t,
423
423
  createdAt: e,
424
424
  migrated: !0
425
425
  };
426
426
  if (t && typeof t == "object") {
427
427
  let { id: n, createdAt: r } = t;
428
- if (!Pe(n)) return null;
428
+ if (!K(n)) return null;
429
429
  let i = typeof r == "number" && Number.isFinite(r), a = i ? Math.min(r, e) : e;
430
430
  return {
431
431
  id: n,
@@ -435,23 +435,23 @@ function Le(e) {
435
435
  }
436
436
  return null;
437
437
  }
438
- function X() {
439
- if (!q()) return null;
440
- let e = Date.now(), t = Le(e);
441
- if (t && e - t.createdAt < 34128e6) return t.migrated && h(Y, {
438
+ function Y() {
439
+ if (!U()) return null;
440
+ let e = Date.now(), t = Be(e);
441
+ if (t && e - t.createdAt < 34128e6) return t.migrated && p(G, {
442
442
  id: t.id,
443
443
  createdAt: t.createdAt
444
444
  }), t.id;
445
- let n = Fe();
446
- return h(Y, {
445
+ let n = q();
446
+ return p(G, {
447
447
  id: n,
448
448
  createdAt: e
449
449
  }), n;
450
450
  }
451
451
  //#endregion
452
452
  //#region src/lib/tracking/attribution-store.ts
453
- var Re = "micdrop_attribution";
454
- function ze(e, t) {
453
+ var X = "micdrop_attribution";
454
+ function Ve(e, t) {
455
455
  if (!e || !t) return !1;
456
456
  try {
457
457
  let n = new URL(e).host, r = new URL(t).host;
@@ -460,26 +460,26 @@ function ze(e, t) {
460
460
  return !1;
461
461
  }
462
462
  }
463
- function Be(e) {
464
- return I(e.utm) || ze(e.referrer, e.pageUrl);
463
+ function He(e) {
464
+ return M(e.utm) || Ve(e.referrer, e.pageUrl);
465
465
  }
466
- function Ve() {
467
- let e = g(Re);
466
+ function Ue() {
467
+ let e = m(X);
468
468
  return !e || !e.utm || typeof e.utm.utmSource != "string" ? null : e;
469
469
  }
470
- function He(e = B()) {
471
- let t = Be(e), n = Ve();
472
- !t && n || _(Re, {
470
+ function We(e = I()) {
471
+ let t = He(e), n = Ue();
472
+ !t && n || h(X, {
473
473
  utm: e.utm,
474
474
  referrer: e.referrer,
475
475
  marketing: t
476
476
  });
477
477
  }
478
478
  function Z() {
479
- let e = Ve() ?? B();
479
+ let e = Ue() ?? I();
480
480
  return {
481
- sessionId: Ie(),
482
- visitorId: X(),
481
+ sessionId: J(),
482
+ visitorId: Y(),
483
483
  utmSource: e.utm.utmSource,
484
484
  utmMedium: e.utm.utmMedium,
485
485
  utmCampaign: e.utm.utmCampaign,
@@ -490,7 +490,7 @@ function Z() {
490
490
  }
491
491
  //#endregion
492
492
  //#region src/lib/tracking/beacon.ts
493
- var Ue = t("tracking"), We = /* @__PURE__ */ new Set([
493
+ var Ge = t("tracking"), Ke = /* @__PURE__ */ new Set([
494
494
  "chunk_load_error",
495
495
  "type_error",
496
496
  "reference_error",
@@ -501,23 +501,23 @@ var Ue = t("tracking"), We = /* @__PURE__ */ new Set([
501
501
  "abort_error",
502
502
  "not_supported_error",
503
503
  "error"
504
- ]), Ge = "other";
505
- function Ke(e) {
504
+ ]), qe = "other";
505
+ function Je(e) {
506
506
  try {
507
507
  let t = e instanceof Error || e && typeof e == "object" && "name" in e ? String(e.name ?? "") : "", n = e && typeof e == "object" && "message" in e ? String(e.message ?? "") : "";
508
508
  if (t === "ChunkLoadError" || /dynamically imported module/i.test(n)) return "chunk_load_error";
509
509
  let r = t.replace(/([a-z0-9])([A-Z])/g, "$1_$2").toLowerCase().replace(/[^a-z0-9_]/g, "");
510
- return We.has(r) ? r : Ge;
510
+ return Ke.has(r) ? r : qe;
511
511
  } catch {
512
- return Ge;
512
+ return qe;
513
513
  }
514
514
  }
515
- var qe = /* @__PURE__ */ new Set([
515
+ var Ye = /* @__PURE__ */ new Set([
516
516
  "add_to_cart",
517
517
  "checkout_started",
518
518
  "purchase"
519
- ]), Je = "micdrop_tracked_beacons", Ye = 300;
520
- function Xe(e, t, n, r, i, a, o, s = "") {
519
+ ]), Xe = "micdrop_tracked_beacons", Ze = 300;
520
+ function Qe(e, t, n, r, i, a, o, s = "") {
521
521
  let c = n || `url:${o}`, l = [
522
522
  e,
523
523
  t ?? "",
@@ -528,27 +528,27 @@ function Xe(e, t, n, r, i, a, o, s = "") {
528
528
  ];
529
529
  return s && l.push(s), l.join(":");
530
530
  }
531
- function Ze(e) {
531
+ function $e(e) {
532
532
  if (e == null || e === "") return null;
533
533
  let t = Number(e);
534
534
  return Number.isFinite(t) ? t : null;
535
535
  }
536
- function Qe(e) {
537
- let t = g(Je, []) ?? [];
536
+ function et(e) {
537
+ let t = m(Xe, []) ?? [];
538
538
  if (t.includes(e)) return !0;
539
539
  let n = [...t, e];
540
- return _(Je, n.length > Ye ? n.slice(-300) : n), !1;
540
+ return h(Xe, n.length > Ze ? n.slice(-300) : n), !1;
541
541
  }
542
542
  async function Q(e, { eventId: t = null, widgetId: n, venueId: r, error: i } = {}) {
543
- if (typeof window > "u" || W()) return;
544
- let a = B();
545
- if (He(a), e === "link_click" && !I(a.utm)) return;
546
- let o = Ie(), s = n === void 0 ? we() : n;
547
- if (!qe.has(e) && Qe(Xe(e, t, s, a.utm.utmSource, a.utm.utmCampaign, o, a.pageUrl, i ? `${i.stage}:${i.errName}` : ""))) return;
548
- let c = r === void 0 ? Te() : r, l = q(), u = {
543
+ if (typeof window > "u" || B()) return;
544
+ let a = I();
545
+ if (We(a), e === "link_click" && !M(a.utm)) return;
546
+ let o = J(), s = n === void 0 ? Ae() : n;
547
+ if (!Ye.has(e) && et(Qe(e, t, s, a.utm.utmSource, a.utm.utmCampaign, o, a.pageUrl, i ? `${i.stage}:${i.errName}` : ""))) return;
548
+ let c = r === void 0 ? je() : r, l = U(), ee = {
549
549
  eventType: e,
550
- eventId: Ze(t),
551
- venueId: Ze(c),
550
+ eventId: $e(t),
551
+ venueId: $e(c),
552
552
  widgetId: s,
553
553
  utmSource: a.utm.utmSource,
554
554
  utmMedium: a.utm.utmMedium,
@@ -556,8 +556,8 @@ async function Q(e, { eventId: t = null, widgetId: n, venueId: r, error: i } = {
556
556
  utmContent: a.utm.utmContent,
557
557
  utmTerm: a.utm.utmTerm,
558
558
  sessionId: o,
559
- visitorId: X(),
560
- deviceType: De(),
559
+ visitorId: Y(),
560
+ deviceType: Ne(),
561
561
  referrer: l ? a.referrer : "",
562
562
  pageUrl: l ? a.pageUrl : "",
563
563
  ...i ? {
@@ -566,60 +566,90 @@ async function Q(e, { eventId: t = null, widgetId: n, venueId: r, error: i } = {
566
566
  } : {}
567
567
  };
568
568
  try {
569
- await fetch(`${D()}/track/pageview`, {
569
+ await fetch(`${T()}/track/pageview`, {
570
570
  method: "POST",
571
571
  headers: { "Content-Type": "application/json" },
572
- body: JSON.stringify(u),
572
+ body: JSON.stringify(ee),
573
573
  keepalive: !0
574
574
  });
575
575
  } catch (t) {
576
- Ue.error(`Beacon '${e}' failed:`, t);
576
+ Ge.error(`Beacon '${e}' failed:`, t);
577
577
  }
578
578
  }
579
- var $e = (e, t) => Q("link_click", {
579
+ var tt = (e, t) => Q("link_click", {
580
580
  widgetId: e,
581
581
  venueId: t
582
- }), et = (e, t) => Q("widget_load", {
582
+ }), nt = (e, t) => Q("widget_load", {
583
583
  widgetId: e,
584
584
  venueId: t
585
- }), tt = (e, t) => Q("list_view", {
585
+ }), rt = (e, t) => Q("list_view", {
586
586
  widgetId: e,
587
587
  venueId: t
588
- }), nt = (e, t, n) => Q("event_view", {
588
+ }), it = (e, t, n) => Q("event_view", {
589
589
  eventId: e,
590
590
  widgetId: t,
591
591
  venueId: n
592
- }), rt = (e, t, n) => Q("add_to_cart", {
592
+ }), at = (e, t, n) => Q("add_to_cart", {
593
593
  eventId: e,
594
594
  widgetId: t,
595
595
  venueId: n
596
- }), it = (e, t, n) => Q("checkout_started", {
596
+ }), ot = (e, t, n) => Q("checkout_started", {
597
597
  eventId: e,
598
598
  widgetId: t,
599
599
  venueId: n
600
- }), at = (e, t, n) => Q("purchase", {
600
+ }), st = (e, t, n) => Q("purchase", {
601
601
  eventId: e,
602
602
  widgetId: t,
603
603
  venueId: n
604
604
  });
605
- function ot(e, t, n, r) {
605
+ function ct(e, t, n, r) {
606
606
  try {
607
607
  Q("widget_error", {
608
608
  widgetId: n,
609
609
  venueId: r,
610
610
  error: {
611
- errName: Ke(e),
611
+ errName: Je(e),
612
612
  stage: t
613
613
  }
614
614
  }).catch(() => {});
615
615
  } catch {}
616
616
  }
617
617
  //#endregion
618
+ //#region src/lib/api/transformers/cart.ts
619
+ function lt(e) {
620
+ let t = e ?? {};
621
+ return {
622
+ ticketID: Number(t.TicketID ?? t.ticketID ?? 0),
623
+ quantity: Number(t.Quantity ?? t.quantity ?? 0),
624
+ priceAtReservation: Number(t.PriceAtReservation ?? t.priceAtReservation ?? 0),
625
+ status: String(t.Status ?? t.status ?? "")
626
+ };
627
+ }
628
+ function ut(e) {
629
+ let t = e ?? {}, i = t.Amount ?? t.amount, a = Number(i);
630
+ return {
631
+ giftCardId: Number(t.GiftCardID ?? t.giftCardId ?? 0),
632
+ maskedCode: String(t.MaskedCode ?? t.maskedCode ?? ""),
633
+ amount: i == null || !Number.isFinite(a) ? null : r(n(a))
634
+ };
635
+ }
636
+ function dt(e) {
637
+ let t = e ?? {};
638
+ return {
639
+ uuid: t.UUID ?? t.uuid ?? "",
640
+ eventID: Number(t.EventID ?? t.eventID ?? 0),
641
+ status: t.Status ?? t.status ?? "",
642
+ expiresAt: t.ExpiresAt ?? t.expiresAt ?? "",
643
+ reservations: (t.Reservations ?? t.reservations ?? []).map(lt),
644
+ giftCards: (t.GiftCards ?? t.giftCards ?? []).map(ut)
645
+ };
646
+ }
647
+ //#endregion
618
648
  //#region src/lib/api/orders.ts
619
649
  var $ = t("VC");
620
- async function st(e, t, n, r) {
650
+ async function ft(e, t, n, r) {
621
651
  try {
622
- let i = await j(`${O()}/cart/${e}/payment-intent`, {
652
+ let i = await k(`${E()}/cart/${e}/payment-intent`, {
623
653
  productQuantities: t,
624
654
  ...n && Object.keys(n).length > 0 ? { donationAmounts: n } : {},
625
655
  ...r ? {
@@ -630,8 +660,8 @@ async function st(e, t, n, r) {
630
660
  } : {},
631
661
  attribution: Z()
632
662
  });
633
- if (!i.success) throw $.error("Payment intent creation failed:", i.error), new a(i.error || "Failed to create payment intent", i.statusCode ?? 0, {
634
- endpoint: `${O()}/cart/${e}/payment-intent`,
663
+ if (!i.success) throw $.error("Payment intent creation failed:", i.error), new s(i.error || "Failed to create payment intent", i.statusCode ?? 0, {
664
+ endpoint: `${E()}/cart/${e}/payment-intent`,
635
665
  method: "POST"
636
666
  });
637
667
  return $.debug("Payment intent created:", i.data), i.data;
@@ -639,7 +669,25 @@ async function st(e, t, n, r) {
639
669
  return $.error("createPaymentIntent error:", e), null;
640
670
  }
641
671
  }
642
- async function ct(e, t, n) {
672
+ async function pt(e, t) {
673
+ if (!e) return null;
674
+ try {
675
+ let n = await O(`${E()}/cart/${e}`);
676
+ if (!n.success) return null;
677
+ let { uuid: r, eventID: i, status: a, expiresAt: o, reservations: s, giftCards: c } = dt(n.data);
678
+ return a !== "reserved" && a !== "active" || t !== void 0 && i !== Number(t) ? null : {
679
+ uuid: r,
680
+ eventID: i,
681
+ status: a,
682
+ expiresAt: o,
683
+ reservations: s,
684
+ giftCards: c
685
+ };
686
+ } catch (e) {
687
+ return $.error("getCartByUUID error:", e), null;
688
+ }
689
+ }
690
+ async function mt(e, t, n) {
643
691
  try {
644
692
  let r = {};
645
693
  for (let [e, n] of Object.entries(t)) {
@@ -651,7 +699,7 @@ async function ct(e, t, n) {
651
699
  let n = typeof e == "number" ? e : parseInt(e, 10);
652
700
  !Number.isNaN(n) && t > 0 && (i[n] = t);
653
701
  }
654
- let a = await fetch(`${O()}/cart/${e}`, {
702
+ let a = await fetch(`${E()}/cart/${e}`, {
655
703
  method: "PUT",
656
704
  headers: { "Content-Type": "application/json" },
657
705
  body: JSON.stringify({
@@ -668,9 +716,9 @@ async function ct(e, t, n) {
668
716
  return $.error("updateCartQuantities error:", e), !1;
669
717
  }
670
718
  }
671
- async function lt(e, t = "") {
719
+ async function ht(e, t = "") {
672
720
  try {
673
- let n = await j(`${D()}/orders/${e}/refund`, { message: t });
721
+ let n = await k(`${T()}/orders/${e}/refund`, { message: t });
674
722
  return n.success ? { success: !0 } : ($.error("Refund request failed:", n.error), {
675
723
  success: !1,
676
724
  error: n.error || "Failed to submit refund request"
@@ -682,9 +730,9 @@ async function lt(e, t = "") {
682
730
  };
683
731
  }
684
732
  }
685
- async function ut(e, t) {
733
+ async function gt(e, t) {
686
734
  try {
687
- let n = await j(`${O()}/validatePaymentIntent/${e}`, {
735
+ let n = await k(`${E()}/validatePaymentIntent/${e}`, {
688
736
  ...t,
689
737
  attribution: Z()
690
738
  });
@@ -708,9 +756,9 @@ async function ut(e, t) {
708
756
  return $.error("validatePaymentIntent error:", e), null;
709
757
  }
710
758
  }
711
- async function dt(e) {
759
+ async function _t(e) {
712
760
  try {
713
- let t = await j(`${D()}/orders/extend-session`, { orderUuid: e });
761
+ let t = await k(`${T()}/orders/extend-session`, { orderUuid: e });
714
762
  if (!t.success) return {
715
763
  success: !1,
716
764
  error: t.error || "Failed to extend session",
@@ -729,9 +777,9 @@ async function dt(e) {
729
777
  };
730
778
  }
731
779
  }
732
- async function ft(e) {
780
+ async function vt(e) {
733
781
  try {
734
- let t = await A(`${D()}/orders/session/${e}`);
782
+ let t = await O(`${T()}/orders/session/${e}`);
735
783
  if (!t.success) return {
736
784
  error: t.error || "No active session found",
737
785
  notFound: t.statusCode === 404
@@ -750,4 +798,4 @@ async function ft(e) {
750
798
  }
751
799
  }
752
800
  //#endregion
753
- export { E as A, ie as B, Se as C, A as D, ge as E, _e as F, ee as G, re as H, ce as I, _ as J, te as K, ae as L, D as M, le as N, j as O, ve as P, y as R, Ce as S, F as T, m as U, oe as V, g as W, a as Y, q as _, ct as a, ke as b, it as c, tt as d, at as f, X as g, Z as h, lt as i, O as j, me as k, nt as l, et as m, dt as n, ut as o, ot as p, h as q, ft as r, rt as s, st as t, $e as u, W as v, P as w, Me as x, Ae as y, se as z };
801
+ export { ve as A, de as B, ke as C, be as D, j as E, Se as F, m as G, ue as H, xe as I, p as J, ie as K, fe as L, E as M, T as N, O, pe as P, le as R, Re as S, Te as T, se as U, ce as V, re as W, s as X, h as Y, Y as _, ht as a, Ie as b, at as c, tt as d, rt as f, Z as g, nt as h, vt as i, w as j, k, ot as l, ct as m, _t as n, mt as o, st as p, ae as q, pt as r, gt as s, ft as t, it as u, U as v, Oe as w, Fe as x, B as y, _ as z };