@getmicdrop/venue-calendar 4.3.30 → 4.3.32

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 (100) hide show
  1. package/dist/{ArrowLeftIcon-BEoyQzGt.js → ArrowLeftIcon-Bg70__J7.js} +1 -1
  2. package/dist/{BlockPlaceholder-BEiQTRGx.js → BlockPlaceholder-CsW21FJP.js} +1 -1
  3. package/dist/{Calendar-D27gfN0x.js → Calendar-Cdj7mgsh.js} +60 -60
  4. package/dist/{CalendarFoundryView-Dy1wY7cG.js → CalendarFoundryView-DsijGTFw.js} +2614 -2572
  5. package/dist/{CalendarIcon-DxOagkl5.js → CalendarIcon-BONrcnBR.js} +1 -1
  6. package/dist/{CartView-B_DCNrDS.js → CartView-B-Jz3AUi.js} +22 -22
  7. package/dist/{Checkout-CS5GDkWc.js → Checkout-BkH_iHrr.js} +26 -26
  8. package/dist/{Checkout-Ud28q5Hy.js → Checkout-DmVSDgG4.js} +25 -23
  9. package/dist/{CheckoutTimer-BP6B5azC.js → CheckoutTimer-BINY0A3o.js} +3 -3
  10. package/dist/{ChevronDownIcon-DIQAmQyH.js → ChevronDownIcon-SmP1R44t.js} +1 -1
  11. package/dist/{ClockIcon-CVPj8q7F.js → ClockIcon-DSlKAM02.js} +1 -1
  12. package/dist/{CloseIcon-BQm8Xs1P.js → CloseIcon-DQQHlbD5.js} +1 -1
  13. package/dist/{CollectionView-ACiii1J5.js → CollectionView-TQsQUheR.js} +6 -6
  14. package/dist/{Event-BJlo9YTD.js → Event-DH8R-4F_.js} +114 -114
  15. package/dist/{EventPage-D1ajrjlw.js → EventPage-Bwnpa90Z.js} +15 -15
  16. package/dist/{Input-Bpq_mV4s.js → Input-Ycz9fDhr.js} +1 -1
  17. package/dist/{MailIcon-Wrsqe_uW.js → MailIcon-CR2KJ_jI.js} +1 -1
  18. package/dist/{PasswordInput-eMxkf9IC.js → PasswordInput-C4CTTEqA.js} +1 -1
  19. package/dist/{RecommendationsRail-CdP6VhHT.js → RecommendationsRail-CsCk1LQe.js} +15 -15
  20. package/dist/{ScarcityBadge-D1IzCyTk.js → ScarcityBadge-DsUZ2xMX.js} +3 -3
  21. package/dist/{SeriesPage-Pq0b5Jfu.js → SeriesPage-D4fTZsB4.js} +3 -3
  22. package/dist/{Success-3_2VxjV6.js → Success-BRR_lRnL.js} +21 -21
  23. package/dist/{TagIcon-DAHUalS9.js → TagIcon-D3CUh74q.js} +1 -1
  24. package/dist/{ViewTicketsEmbed-B0agtnsM.js → ViewTicketsEmbed-ZK8Iq5rE.js} +12 -12
  25. package/dist/{WarningCircleIcon-u-Y8M0N1.js → WarningCircleIcon-tYCc94E0.js} +1 -1
  26. package/dist/{WarningTriIcon-DroD8KGE.js → WarningTriIcon-DqbXc4oC.js} +1 -1
  27. package/dist/{api-Cjp9Xhh9.js → api-Cnjfq1es.js} +100 -100
  28. package/dist/{constants-D4j-SbUf.js → constants-D-R13SyT.js} +5 -3
  29. package/dist/{copyToClipboard-CX0-qsMi.js → copyToClipboard-B1J1SpWg.js} +1 -1
  30. package/dist/{de-BeTte2sb.js → de-CrMbvuuV.js} +3 -1
  31. package/dist/{de-Jg2pbAJN.js → de-U0ENh7uA.js} +4 -1
  32. package/dist/{defaultLabels-BgBbv_Mu.js → defaultLabels-Dh-_xfOC.js} +9 -6
  33. package/dist/{es-vzC7Y0yK.js → es-CmbcTI7U.js} +3 -1
  34. package/dist/{es-CcYV23YF.js → es-DA7o9qj2.js} +4 -1
  35. package/dist/{event-transform-B608JYyE.js → event-transform-hOHeTQOK.js} +5 -5
  36. package/dist/{eventStatusStream-uZrfQOCm.js → eventStatusStream-B5ixh-sc.js} +5 -5
  37. package/dist/{fr-DqLLRK8z.js → fr-CAQjiRpV.js} +3 -1
  38. package/dist/{fr-2hbBUueN.js → fr-DgPjnuZh.js} +4 -1
  39. package/dist/{href-EZSiOTvJ.js → href-CNC_6xMv.js} +2 -2
  40. package/dist/{i18n-IC1KXPJh.js → i18n-DpEd_A_A.js} +20 -20
  41. package/dist/i18n-ch8did0h.js +28 -0
  42. package/dist/{id-YWXdncCA.js → id-Bz5RjCc1.js} +3 -1
  43. package/dist/{id-42eHQdTZ.js → id-DQfIcnYa.js} +4 -1
  44. package/dist/{it-CT1Yl7lC.js → it-CqEyhG5r.js} +4 -1
  45. package/dist/{it-Cun7MBPu.js → it-wMX0iXW-.js} +3 -1
  46. package/dist/{ja-FpN4x6ay.js → ja-BHzUvYMy.js} +3 -1
  47. package/dist/{ja-rdY01kpT.js → ja-Cd0WASnp.js} +4 -1
  48. package/dist/{ko-DzIwez8Z.js → ko-DWXNKxCw.js} +4 -1
  49. package/dist/{ko-CbeYW3Mt.js → ko-hy8WDqbp.js} +3 -1
  50. package/dist/locales/{4.3.30 → 4.3.32}/flow/de.js +1 -1
  51. package/dist/locales/{4.3.30 → 4.3.32}/flow/es.js +1 -1
  52. package/dist/locales/{4.3.30 → 4.3.32}/flow/fr.js +1 -1
  53. package/dist/locales/{4.3.30 → 4.3.32}/flow/id.js +1 -1
  54. package/dist/locales/{4.3.30 → 4.3.32}/flow/it.js +1 -1
  55. package/dist/locales/{4.3.30 → 4.3.32}/flow/ja.js +1 -1
  56. package/dist/locales/{4.3.30 → 4.3.32}/flow/ko.js +1 -1
  57. package/dist/locales/{4.3.30 → 4.3.32}/flow/nl.js +1 -1
  58. package/dist/locales/{4.3.30 → 4.3.32}/flow/pl.js +1 -1
  59. package/dist/locales/{4.3.30 → 4.3.32}/flow/pt-br.js +1 -1
  60. package/dist/locales/{4.3.30 → 4.3.32}/flow/tr.js +1 -1
  61. package/dist/locales/{4.3.30 → 4.3.32}/flow/zh.js +1 -1
  62. package/dist/locales/{4.3.30 → 4.3.32}/main/de.js +1 -1
  63. package/dist/locales/{4.3.30 → 4.3.32}/main/es.js +1 -1
  64. package/dist/locales/{4.3.30 → 4.3.32}/main/fr.js +1 -1
  65. package/dist/locales/{4.3.30 → 4.3.32}/main/id.js +1 -1
  66. package/dist/locales/{4.3.30 → 4.3.32}/main/it.js +1 -1
  67. package/dist/locales/{4.3.30 → 4.3.32}/main/ja.js +1 -1
  68. package/dist/locales/{4.3.30 → 4.3.32}/main/ko.js +1 -1
  69. package/dist/locales/{4.3.30 → 4.3.32}/main/nl.js +1 -1
  70. package/dist/locales/{4.3.30 → 4.3.32}/main/pl.js +1 -1
  71. package/dist/locales/{4.3.30 → 4.3.32}/main/pt-br.js +1 -1
  72. package/dist/locales/{4.3.30 → 4.3.32}/main/tr.js +1 -1
  73. package/dist/locales/{4.3.30 → 4.3.32}/main/zh.js +1 -1
  74. package/dist/{navigation-Dh-hGmN9.js → navigation-DXoNc6j6.js} +2 -2
  75. package/dist/{nl-BOKQEcVS.js → nl-Cm90TgfO.js} +4 -1
  76. package/dist/{nl-Bp9iDZLQ.js → nl-a59DlSFb.js} +3 -1
  77. package/dist/{order-totals-CfYOfTyw.js → order-totals-l5tnNv6l.js} +3 -3
  78. package/dist/{orders-BQRru8sl.js → orders-C3kxHt8s.js} +159 -156
  79. package/dist/{phoneUtils-DK8ry3Ji.js → phoneUtils-ByD5Mtwg.js} +1 -1
  80. package/dist/{pixels-CAgpvPd8.js → pixels-DFRBkP2l.js} +8 -8
  81. package/dist/{pl-Bq365vrl.js → pl-Dmn5DPMF.js} +3 -1
  82. package/dist/{pl-BbTUCBtu.js → pl-cnMynnV0.js} +4 -1
  83. package/dist/{promo-aAygcEn7.js → promo-C5E38yvy.js} +1 -1
  84. package/dist/{pt-br-DqZvFINr.js → pt-br-DA_CwwjY.js} +3 -1
  85. package/dist/{pt-br-yx3E3bTo.js → pt-br-Dolwtivp.js} +4 -1
  86. package/dist/{scarcity-Dgvp7aCF.js → scarcity-s5fHFJHw.js} +1 -1
  87. package/dist/{serverTotals-96Luutwl.js → serverTotals-nOfn0tJD.js} +1 -1
  88. package/dist/{showcase-state-options-DcNFRj34.js → showcase-state-options-BMxEymob.js} +1 -1
  89. package/dist/{to-event-card-props-djxhqexI.js → to-event-card-props-BGgDK-2C.js} +94 -124
  90. package/dist/{tr-B0X8dT0r.js → tr-CSMHipgJ.js} +4 -1
  91. package/dist/{tr-D-gAL87g.js → tr-DM96GLXF.js} +3 -1
  92. package/dist/{utils-CDgMSeSc.js → utils-BQ5FDP3S.js} +52 -52
  93. package/dist/venue-calendar.css +1 -1
  94. package/dist/venue-calendar.es.js +907 -907
  95. package/dist/venue-calendar.iife.js +52 -52
  96. package/dist/venue-calendar.umd.js +34 -34
  97. package/dist/{zh-_x9bdFXs.js → zh-BplFGzz_.js} +4 -1
  98. package/dist/{zh-DcBHN9JC.js → zh-CdWAelYB.js} +3 -1
  99. package/package.json +2 -2
  100. package/dist/i18n-BZAWUSFx.js +0 -28
@@ -1,5 +1,5 @@
1
1
  import { D as e, E as t, O as n } from "./Button-klwKgfhG.js";
2
- import { M as r, O as i, a, o, z as s } from "./defaultLabels-BgBbv_Mu.js";
2
+ import { M as r, O as i, a, o, z as s } from "./defaultLabels-Dh-_xfOC.js";
3
3
  import * as c from "svelte/internal/client";
4
4
  //#region node_modules/@getmicdrop/svelte-components/dist/errors/classes/ApiError.js
5
5
  var l = class e extends i {
@@ -72,49 +72,49 @@ function te(e, t) {
72
72
  e.removeItem(t);
73
73
  } catch {}
74
74
  }
75
- function p(e, t, n) {
75
+ function ne(e, t, n) {
76
76
  return f(u(e), t, n);
77
77
  }
78
- function ne(e, t, n) {
78
+ function re(e, t, n) {
79
79
  return ee(u(e), t, n);
80
80
  }
81
- function re(e, t) {
81
+ function ie(e, t) {
82
82
  te(u(e), t);
83
83
  }
84
- function m(e, t = null) {
85
- return p("local", e, t);
86
- }
87
- function h(e, t) {
84
+ function ae(e, t = null) {
88
85
  return ne("local", e, t);
89
86
  }
90
- function ie(e) {
91
- re("local", e);
87
+ function p(e, t) {
88
+ return re("local", e, t);
92
89
  }
93
- function g(e, t = null) {
94
- return p("session", e, t);
90
+ function oe(e) {
91
+ ie("local", e);
95
92
  }
96
- function _(e, t) {
93
+ function m(e, t = null) {
97
94
  return ne("session", e, t);
98
95
  }
99
- function ae(e) {
100
- re("session", e);
96
+ function h(e, t) {
97
+ return re("session", e, t);
98
+ }
99
+ function se(e) {
100
+ ie("session", e);
101
101
  }
102
102
  //#endregion
103
103
  //#region src/lib/config.js
104
- var oe = t("VC:config", { enabled: !0 }), v = null;
105
- function se(e) {
104
+ var ce = t("VC:config", { enabled: !0 }), g = null;
105
+ function le(e) {
106
106
  let t = e || null;
107
- v && t && t !== v && 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."), v = t;
107
+ g && t && t !== g && ce.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;
108
108
  }
109
- function ce() {
110
- if (v) return v;
109
+ function _() {
110
+ if (g) return g;
111
111
  }
112
- var le = null;
112
+ var v = null;
113
113
  function ue(e) {
114
- le = typeof e == "string" && e.trim() ? e.trim() : null;
114
+ v = typeof e == "string" && e.trim() ? e.trim() : null;
115
115
  }
116
116
  function de() {
117
- return (le || w().baseUrl || "").replace(/\/+$/, "");
117
+ return (v || w().baseUrl || "").replace(/\/+$/, "");
118
118
  }
119
119
  function fe(e) {}
120
120
  var y = {
@@ -145,7 +145,7 @@ function ge(e) {
145
145
  }
146
146
  var _e = "ABORTED";
147
147
  function S(e, t) {
148
- let n = t || ce();
148
+ let n = t || _();
149
149
  return n ? {
150
150
  ...e,
151
151
  "X-Widget-Key": n
@@ -189,7 +189,7 @@ function E() {
189
189
  return `${C.baseUrl}/api/orders/v2/public`;
190
190
  }
191
191
  var xe = (e) => new Promise((t) => setTimeout(t, e));
192
- async function Se(e, t, n) {
192
+ async function D(e, t, n) {
193
193
  let r = (t.method || "GET").toUpperCase(), i = r === "GET" || r === "HEAD" ? n.retries + 1 : 1, a;
194
194
  for (let r = 1; r <= i; r++) {
195
195
  let o = new AbortController(), s = setTimeout(() => o.abort(), n.timeout), c = t.signal, l;
@@ -210,21 +210,21 @@ async function Se(e, t, n) {
210
210
  }
211
211
  throw a;
212
212
  }
213
- async function D(e, t) {
214
- return k("GET", e, void 0, t);
213
+ async function O(e, t) {
214
+ return A("GET", e, void 0, t);
215
215
  }
216
- async function O(e, t, n) {
217
- return k("POST", e, t, n);
216
+ async function k(e, t, n) {
217
+ return A("POST", e, t, n);
218
218
  }
219
- async function Ce(e, t) {
220
- return k("DELETE", e, void 0, t);
219
+ async function Se(e, t) {
220
+ return A("DELETE", e, void 0, t);
221
221
  }
222
- async function k(e, t, n, r) {
222
+ async function A(e, t, n, r) {
223
223
  let i = t.startsWith("http") || t.startsWith("/api/") ? t : `${T()}${t}`, { widgetKey: a, suppressOnError: o, headers: s, ...c } = r ?? {}, l = (e) => {
224
224
  o || C.onError(e);
225
225
  };
226
226
  try {
227
- let t = await Se(i, {
227
+ let t = await D(i, {
228
228
  method: e,
229
229
  headers: S({
230
230
  "Content-Type": "application/json",
@@ -261,15 +261,15 @@ async function k(e, t, n, r) {
261
261
  };
262
262
  }
263
263
  }
264
- async function we(e, t) {
265
- return O(`${T()}/tax-preview`, e, {
264
+ async function Ce(e, t) {
265
+ return k(`${T()}/tax-preview`, e, {
266
266
  signal: t?.signal,
267
267
  suppressOnError: t?.suppressOnError ?? !0
268
268
  });
269
269
  }
270
- async function Te(e, t) {
270
+ async function we(e, t) {
271
271
  try {
272
- let n = e.startsWith(C.baseUrl), { widgetKey: r, ...i } = t ?? {}, a = await Se(e, {
272
+ let n = e.startsWith(C.baseUrl), { widgetKey: r, ...i } = t ?? {}, a = await D(e, {
273
273
  ...i,
274
274
  ...n ? { headers: S(i.headers, r) } : {}
275
275
  }, C);
@@ -284,55 +284,55 @@ async function Te(e, t) {
284
284
  }
285
285
  //#endregion
286
286
  //#region src/lib/tracking/normalize.ts
287
- var Ee = [
287
+ var j = [
288
288
  "utmSource",
289
289
  "utmMedium",
290
290
  "utmCampaign",
291
291
  "utmContent",
292
292
  "utmTerm"
293
- ], De = {
293
+ ], Te = {
294
294
  utmSource: "utm_source",
295
295
  utmMedium: "utm_medium",
296
296
  utmCampaign: "utm_campaign",
297
297
  utmContent: "utm_content",
298
298
  utmTerm: "utm_term"
299
- }, Oe = "direct";
300
- function ke(e) {
299
+ }, M = "direct";
300
+ function N(e) {
301
301
  return e ? e.trim().toLowerCase().replace(/\s+/g, "_") : "";
302
302
  }
303
- function Ae(e) {
303
+ function Ee(e) {
304
304
  let t = {};
305
- for (let n of Ee) t[n] = ke(e[n]);
306
- return t.utmSource ||= Oe, t;
305
+ for (let n of j) t[n] = N(e[n]);
306
+ return t.utmSource ||= M, t;
307
307
  }
308
- function je(e) {
308
+ function De(e) {
309
309
  let t = {};
310
- for (let n of Ee) t[n] = e.get(De[n]);
311
- return Ae(t);
310
+ for (let n of j) t[n] = e.get(Te[n]);
311
+ return Ee(t);
312
312
  }
313
- function Me(e) {
313
+ function P(e) {
314
314
  return !!e.utmSource && e.utmSource !== "direct";
315
315
  }
316
316
  //#endregion
317
317
  //#region src/lib/tracking/context.ts
318
- var A = null, j = null, M = {
318
+ var F = null, I = null, L = {
319
319
  search: null,
320
320
  referrer: null,
321
321
  pageUrl: null
322
322
  };
323
- function Ne(e) {
324
- e.widgetId !== void 0 && (A = e.widgetId || null), e.venueId !== void 0 && (j = e.venueId ?? null);
323
+ function Oe(e) {
324
+ e.widgetId !== void 0 && (F = e.widgetId || null), e.venueId !== void 0 && (I = e.venueId ?? null);
325
325
  }
326
- function Pe(e) {
327
- e.search !== void 0 && (M.search = e.search === null ? null : e.search instanceof URLSearchParams ? e.search.toString() : e.search), e.referrer !== void 0 && (M.referrer = e.referrer), e.pageUrl !== void 0 && (M.pageUrl = e.pageUrl);
326
+ function ke(e) {
327
+ e.search !== void 0 && (L.search = e.search === null ? null : e.search instanceof URLSearchParams ? e.search.toString() : e.search), e.referrer !== void 0 && (L.referrer = e.referrer), e.pageUrl !== void 0 && (L.pageUrl = e.pageUrl);
328
328
  }
329
- function Fe() {
330
- return A;
329
+ function Ae() {
330
+ return F;
331
331
  }
332
- function Ie() {
333
- return j;
332
+ function je() {
333
+ return I;
334
334
  }
335
- function Le() {
335
+ function Me() {
336
336
  if (typeof window > "u") return !0;
337
337
  try {
338
338
  return window.self === window.top;
@@ -340,57 +340,60 @@ function Le() {
340
340
  return !1;
341
341
  }
342
342
  }
343
- function N() {
344
- let e = typeof window < "u", t = Le(), n = M.search ?? (e ? window.location.search : ""), r = M.referrer ?? (typeof document < "u" ? document.referrer : "") ?? "", i = M.pageUrl ?? (e && t ? window.location.href : "");
343
+ function R() {
344
+ let e = typeof window < "u", t = Me(), n = L.search ?? (e ? window.location.search : ""), r = L.referrer ?? (typeof document < "u" ? document.referrer : "") ?? "", i = L.pageUrl ?? (e && t ? window.location.href : "");
345
345
  return {
346
- utm: je(new URLSearchParams(n)),
346
+ utm: De(new URLSearchParams(n)),
347
347
  referrer: r || "",
348
348
  pageUrl: i || ""
349
349
  };
350
350
  }
351
- function Re() {
351
+ function Ne() {
352
352
  if (typeof navigator > "u") return "desktop";
353
353
  let e = navigator.userAgent.toLowerCase();
354
354
  return /ipad|tablet|playbook|silk/.test(e) ? "tablet" : /mobile|iphone|ipod|android.*mobile|windows phone|blackberry/.test(e) ? "mobile" : /android/.test(e) ? "tablet" : "desktop";
355
355
  }
356
356
  //#endregion
357
357
  //#region src/lib/tracking/consent.ts
358
- var P = null, F = !1, I = !1, ze = !1;
359
- function Be(e) {
360
- P = e;
358
+ var z = null, B = !1, V = !1, H = !1;
359
+ function Pe(e) {
360
+ z = e;
361
361
  }
362
- function Ve(e) {
363
- F = e;
362
+ function Fe(e) {
363
+ B = e;
364
364
  }
365
- function L() {
366
- return ze;
365
+ function Ie(e) {
366
+ H = e;
367
367
  }
368
- function R() {
368
+ function U() {
369
+ return H;
370
+ }
371
+ function Le() {
369
372
  return typeof window < "u" && typeof window.__tcfapi == "function";
370
373
  }
371
- function z() {
374
+ function W() {
372
375
  return typeof navigator < "u" && navigator.globalPrivacyControl === !0;
373
376
  }
374
- function He() {
375
- return P === null ? R() || z() : P;
377
+ function Re() {
378
+ return H ? !0 : z === null ? Le() || W() : z;
376
379
  }
377
- function B() {
378
- return !He() || F;
380
+ function G() {
381
+ return H ? !1 : !Re() || B;
379
382
  }
380
- function Ue() {
381
- if (I || !R()) return;
382
- I = !0;
383
+ function ze() {
384
+ if (V || !Le()) return;
385
+ V = !0;
383
386
  let e = window.__tcfapi;
384
387
  try {
385
388
  e("addEventListener", 2, (e, t) => {
386
389
  if (!(!t || !e)) {
387
390
  if (e.gdprApplies === !1) {
388
- z() || (F = !0);
391
+ W() || (B = !0);
389
392
  return;
390
393
  }
391
394
  if (e.eventStatus === "tcloaded" || e.eventStatus === "useractioncomplete") {
392
395
  let t = e.purpose?.consents;
393
- F = !!t && Object.values(t).some(Boolean);
396
+ B = !!t && Object.values(t).some(Boolean);
394
397
  }
395
398
  }
396
399
  });
@@ -398,11 +401,11 @@ function Ue() {
398
401
  }
399
402
  //#endregion
400
403
  //#region src/lib/tracking/identity.ts
401
- var V = "micdrop_session_id", H = "micdrop_visitor_id", We = /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
402
- function U(e) {
403
- return typeof e == "string" && We.test(e);
404
+ var Be = "micdrop_session_id", K = "micdrop_visitor_id", Ve = /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
405
+ function He(e) {
406
+ return typeof e == "string" && Ve.test(e);
404
407
  }
405
- function W() {
408
+ function Ue() {
406
409
  let e = typeof crypto < "u" ? crypto : void 0;
407
410
  if (e?.randomUUID) return e.randomUUID();
408
411
  let t = /* @__PURE__ */ new Uint8Array(16);
@@ -413,20 +416,20 @@ function W() {
413
416
  for (let e = 0; e < 16; e++) n.push(t[e].toString(16).padStart(2, "0"));
414
417
  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]}`;
415
418
  }
416
- function G() {
417
- let e = g(V);
418
- return e || (e = W(), _(V, e)), e;
419
+ function We() {
420
+ let e = m(Be);
421
+ return e || (e = Ue(), h(Be, e)), e;
419
422
  }
420
423
  function Ge(e) {
421
- let t = m(H);
422
- if (U(t)) return {
424
+ let t = ae(K);
425
+ if (He(t)) return {
423
426
  id: t,
424
427
  createdAt: e,
425
428
  migrated: !0
426
429
  };
427
430
  if (t && typeof t == "object") {
428
431
  let { id: n, createdAt: r } = t;
429
- if (!U(n)) return null;
432
+ if (!He(n)) return null;
430
433
  let i = typeof r == "number" && Number.isFinite(r), a = i ? Math.min(r, e) : e;
431
434
  return {
432
435
  id: n,
@@ -436,15 +439,15 @@ function Ge(e) {
436
439
  }
437
440
  return null;
438
441
  }
439
- function K() {
440
- if (!B()) return null;
442
+ function q() {
443
+ if (!G()) return null;
441
444
  let e = Date.now(), t = Ge(e);
442
- if (t && e - t.createdAt < 34128e6) return t.migrated && h(H, {
445
+ if (t && e - t.createdAt < 34128e6) return t.migrated && p(K, {
443
446
  id: t.id,
444
447
  createdAt: t.createdAt
445
448
  }), t.id;
446
- let n = W();
447
- return h(H, {
449
+ let n = Ue();
450
+ return p(K, {
448
451
  id: n,
449
452
  createdAt: e
450
453
  }), n;
@@ -462,25 +465,25 @@ function qe(e, t) {
462
465
  }
463
466
  }
464
467
  function Je(e) {
465
- return Me(e.utm) || qe(e.referrer, e.pageUrl);
468
+ return P(e.utm) || qe(e.referrer, e.pageUrl);
466
469
  }
467
470
  function Ye() {
468
- let e = g(Ke);
471
+ let e = m(Ke);
469
472
  return !e || !e.utm || typeof e.utm.utmSource != "string" ? null : e;
470
473
  }
471
- function Xe(e = N()) {
474
+ function Xe(e = R()) {
472
475
  let t = Je(e), n = Ye();
473
- !t && n || _(Ke, {
476
+ !t && n || h(Ke, {
474
477
  utm: e.utm,
475
478
  referrer: e.referrer,
476
479
  marketing: t
477
480
  });
478
481
  }
479
- function q() {
480
- let e = Ye() ?? N();
482
+ function J() {
483
+ let e = Ye() ?? R();
481
484
  return {
482
- sessionId: G(),
483
- visitorId: K(),
485
+ sessionId: We(),
486
+ visitorId: q(),
484
487
  utmSource: e.utm.utmSource,
485
488
  utmMedium: e.utm.utmMedium,
486
489
  utmCampaign: e.utm.utmCampaign,
@@ -529,27 +532,27 @@ function it(e, t, n, r, i, a, o, s = "") {
529
532
  ];
530
533
  return s && l.push(s), l.join(":");
531
534
  }
532
- function J(e) {
535
+ function at(e) {
533
536
  if (e == null || e === "") return null;
534
537
  let t = Number(e);
535
538
  return Number.isFinite(t) ? t : null;
536
539
  }
537
- function at(e) {
538
- let t = g(nt, []) ?? [];
540
+ function ot(e) {
541
+ let t = m(nt, []) ?? [];
539
542
  if (t.includes(e)) return !0;
540
543
  let n = [...t, e];
541
- return _(nt, n.length > rt ? n.slice(-300) : n), !1;
544
+ return h(nt, n.length > rt ? n.slice(-300) : n), !1;
542
545
  }
543
546
  async function Y(e, { eventId: t = null, widgetId: n, venueId: r, error: i } = {}) {
544
- if (typeof window > "u" || L()) return;
545
- let a = N();
546
- if (Xe(a), e === "link_click" && !Me(a.utm)) return;
547
- let o = G(), s = n === void 0 ? Fe() : n;
548
- if (!tt.has(e) && at(it(e, t, s, a.utm.utmSource, a.utm.utmCampaign, o, a.pageUrl, i ? `${i.stage}:${i.errName}` : ""))) return;
549
- let c = r === void 0 ? Ie() : r, l = B(), u = {
547
+ if (typeof window > "u" || U()) return;
548
+ let a = R();
549
+ if (Xe(a), e === "link_click" && !P(a.utm)) return;
550
+ let o = We(), s = n === void 0 ? Ae() : n;
551
+ if (!tt.has(e) && ot(it(e, t, s, a.utm.utmSource, a.utm.utmCampaign, o, a.pageUrl, i ? `${i.stage}:${i.errName}` : ""))) return;
552
+ let c = r === void 0 ? je() : r, l = G(), u = {
550
553
  eventType: e,
551
- eventId: J(t),
552
- venueId: J(c),
554
+ eventId: at(t),
555
+ venueId: at(c),
553
556
  widgetId: s,
554
557
  utmSource: a.utm.utmSource,
555
558
  utmMedium: a.utm.utmMedium,
@@ -557,8 +560,8 @@ async function Y(e, { eventId: t = null, widgetId: n, venueId: r, error: i } = {
557
560
  utmContent: a.utm.utmContent,
558
561
  utmTerm: a.utm.utmTerm,
559
562
  sessionId: o,
560
- visitorId: K(),
561
- deviceType: Re(),
563
+ visitorId: q(),
564
+ deviceType: Ne(),
562
565
  referrer: l ? a.referrer : "",
563
566
  pageUrl: l ? a.pageUrl : "",
564
567
  ...i ? {
@@ -577,33 +580,33 @@ async function Y(e, { eventId: t = null, widgetId: n, venueId: r, error: i } = {
577
580
  Ze.error(`Beacon '${e}' failed:`, t);
578
581
  }
579
582
  }
580
- var ot = (e, t) => Y("link_click", {
583
+ var st = (e, t) => Y("link_click", {
581
584
  widgetId: e,
582
585
  venueId: t
583
- }), st = (e, t) => Y("widget_load", {
586
+ }), ct = (e, t) => Y("widget_load", {
584
587
  widgetId: e,
585
588
  venueId: t
586
- }), ct = (e, t) => Y("list_view", {
589
+ }), lt = (e, t) => Y("list_view", {
587
590
  widgetId: e,
588
591
  venueId: t
589
- }), lt = (e, t, n) => Y("event_view", {
592
+ }), ut = (e, t, n) => Y("event_view", {
590
593
  eventId: e,
591
594
  widgetId: t,
592
595
  venueId: n
593
- }), ut = (e, t, n) => Y("add_to_cart", {
596
+ }), dt = (e, t, n) => Y("add_to_cart", {
594
597
  eventId: e,
595
598
  widgetId: t,
596
599
  venueId: n
597
- }), dt = (e, t, n) => Y("checkout_started", {
600
+ }), ft = (e, t, n) => Y("checkout_started", {
598
601
  eventId: e,
599
602
  widgetId: t,
600
603
  venueId: n
601
- }), ft = (e, t, n) => Y("purchase", {
604
+ }), pt = (e, t, n) => Y("purchase", {
602
605
  eventId: e,
603
606
  widgetId: t,
604
607
  venueId: n
605
608
  });
606
- function pt(e, t, n, r) {
609
+ function mt(e, t, n, r) {
607
610
  try {
608
611
  Y("widget_error", {
609
612
  widgetId: n,
@@ -617,7 +620,7 @@ function pt(e, t, n, r) {
617
620
  }
618
621
  //#endregion
619
622
  //#region src/lib/api/transformers/cart.ts
620
- function mt(e) {
623
+ function ht(e) {
621
624
  let t = e ?? {};
622
625
  return {
623
626
  ticketID: Number(t.TicketID ?? t.ticketID ?? 0),
@@ -626,7 +629,7 @@ function mt(e) {
626
629
  status: String(t.Status ?? t.status ?? "")
627
630
  };
628
631
  }
629
- function ht(e) {
632
+ function gt(e) {
630
633
  let t = e ?? {}, n = t.Amount ?? t.amount, i = Number(n);
631
634
  return {
632
635
  giftCardId: Number(t.GiftCardID ?? t.giftCardId ?? 0),
@@ -634,24 +637,24 @@ function ht(e) {
634
637
  amount: n == null || !Number.isFinite(i) ? null : r(s(i))
635
638
  };
636
639
  }
637
- function gt(e) {
640
+ function _t(e) {
638
641
  let t = e ?? {};
639
642
  return {
640
643
  uuid: t.UUID ?? t.uuid ?? "",
641
644
  eventID: Number(t.EventID ?? t.eventID ?? 0),
642
645
  status: t.Status ?? t.status ?? "",
643
646
  expiresAt: t.ExpiresAt ?? t.expiresAt ?? "",
644
- reservations: (t.Reservations ?? t.reservations ?? []).map(mt),
645
- giftCards: (t.GiftCards ?? t.giftCards ?? []).map(ht)
647
+ reservations: (t.Reservations ?? t.reservations ?? []).map(ht),
648
+ giftCards: (t.GiftCards ?? t.giftCards ?? []).map(gt)
646
649
  };
647
650
  }
648
651
  //#endregion
649
652
  //#region src/lib/i18n/localeLoader.svelte.js
650
653
  var X = c.state(0);
651
- function _t() {
654
+ function vt() {
652
655
  return c.get(X);
653
656
  }
654
- function vt() {
657
+ function yt() {
655
658
  c.set(X, c.get(X) + 1);
656
659
  }
657
660
  //#endregion
@@ -659,7 +662,7 @@ function vt() {
659
662
  function Z() {
660
663
  return typeof navigator > "u" ? null : navigator.language || navigator.userLanguage || null;
661
664
  }
662
- function yt({ defaults: e, locales: t = {}, loaders: r = {} }) {
665
+ function bt({ defaults: e, locales: t = {}, loaders: r = {} }) {
663
666
  let i = t.en ?? e, a = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
664
667
  function s(e) {
665
668
  return t[e] ? t[e] : a.has(e) ? a.get(e) : null;
@@ -670,11 +673,11 @@ function yt({ defaults: e, locales: t = {}, loaders: r = {} }) {
670
673
  if (o.has(e)) return o.get(e);
671
674
  let n = r[e];
672
675
  if (!n) return Promise.resolve(null);
673
- let i = Promise.resolve().then(n).then((t) => (a.set(e, t), vt(), t));
676
+ let i = Promise.resolve().then(n).then((t) => (a.set(e, t), yt(), t));
674
677
  return i.catch(() => o.delete(e)), o.set(e, i), i;
675
678
  }
676
679
  function l(e) {
677
- if (_t(), !e || typeof e != "string") return {
680
+ if (vt(), !e || typeof e != "string") return {
678
681
  labels: i,
679
682
  locale: "en"
680
683
  };
@@ -719,7 +722,7 @@ function yt({ defaults: e, locales: t = {}, loaders: r = {} }) {
719
722
  }
720
723
  //#endregion
721
724
  //#region src/lib/i18n/localeSpec.js
722
- var bt = [
725
+ var xt = [
723
726
  [
724
727
  "es",
725
728
  "es",
@@ -786,23 +789,23 @@ var bt = [
786
789
  "pl"
787
790
  ]
788
791
  ];
789
- Array.from(new Set(bt.map(([, e]) => e)));
792
+ Array.from(new Set(xt.map(([, e]) => e)));
790
793
  //#endregion
791
794
  //#region src/lib/i18n/buyerLocale.ts
792
- var xt = new Map([["en", "en"], ...bt.map(([e]) => [e, e === "pt" || e === "pt-br" ? "pt-BR" : e])]);
795
+ var St = new Map([["en", "en"], ...xt.map(([e]) => [e, e === "pt" || e === "pt-br" ? "pt-BR" : e])]);
793
796
  function Q(e) {
794
797
  let t = e || Z();
795
798
  if (!t || typeof t != "string") return;
796
799
  let n = t.toLowerCase();
797
- return xt.get(n) ?? xt.get(n.split("-")[0]);
800
+ return St.get(n) ?? St.get(n.split("-")[0]);
798
801
  }
799
802
  //#endregion
800
803
  //#region src/lib/api/orders.ts
801
804
  var $ = t("VC");
802
- async function St(e, t, n, r, i) {
805
+ async function Ct(e, t, n, r, i) {
803
806
  let a = Q(i);
804
807
  try {
805
- let i = await O(`${E()}/cart/${e}/payment-intent`, {
808
+ let i = await k(`${E()}/cart/${e}/payment-intent`, {
806
809
  productQuantities: t,
807
810
  ...n && Object.keys(n).length > 0 ? { donationAmounts: n } : {},
808
811
  ...r ? {
@@ -813,7 +816,7 @@ async function St(e, t, n, r, i) {
813
816
  questionAnswer: r.questionAnswer ?? "",
814
817
  mailingList: r.mailingList ?? !1
815
818
  } : {},
816
- attribution: q(),
819
+ attribution: J(),
817
820
  ...a ? { locale: a } : {}
818
821
  });
819
822
  if (!i.success) throw $.error("Payment intent creation failed:", i.error), new l(i.error || "Failed to create payment intent", i.statusCode ?? 0, {
@@ -825,12 +828,12 @@ async function St(e, t, n, r, i) {
825
828
  return $.error("createPaymentIntent error:", e), null;
826
829
  }
827
830
  }
828
- async function Ct(e, t) {
831
+ async function wt(e, t) {
829
832
  if (!e) return null;
830
833
  try {
831
- let n = await D(`${E()}/cart/${e}`);
834
+ let n = await O(`${E()}/cart/${e}`);
832
835
  if (!n.success) return null;
833
- let { uuid: r, eventID: i, status: a, expiresAt: o, reservations: s, giftCards: c } = gt(n.data);
836
+ let { uuid: r, eventID: i, status: a, expiresAt: o, reservations: s, giftCards: c } = _t(n.data);
834
837
  return a !== "reserved" && a !== "active" || t !== void 0 && i !== Number(t) ? null : {
835
838
  uuid: r,
836
839
  eventID: i,
@@ -843,7 +846,7 @@ async function Ct(e, t) {
843
846
  return $.error("getCartByUUID error:", e), null;
844
847
  }
845
848
  }
846
- async function wt(e, t, n) {
849
+ async function Tt(e, t, n) {
847
850
  try {
848
851
  let r = {};
849
852
  for (let [e, n] of Object.entries(t)) {
@@ -872,9 +875,9 @@ async function wt(e, t, n) {
872
875
  return $.error("updateCartQuantities error:", e), !1;
873
876
  }
874
877
  }
875
- async function Tt(e, t = "") {
878
+ async function Et(e, t = "") {
876
879
  try {
877
- let n = await O(`${T()}/orders/${e}/refund`, { message: t });
880
+ let n = await k(`${T()}/orders/${e}/refund`, { message: t });
878
881
  return n.success ? { success: !0 } : ($.error("Refund request failed:", n.error), {
879
882
  success: !1,
880
883
  error: n.error || "Failed to submit refund request"
@@ -886,12 +889,12 @@ async function Tt(e, t = "") {
886
889
  };
887
890
  }
888
891
  }
889
- async function Et(e, t, n) {
892
+ async function Dt(e, t, n) {
890
893
  let r = Q(n);
891
894
  try {
892
- let n = await O(`${E()}/validatePaymentIntent/${e}`, {
895
+ let n = await k(`${E()}/validatePaymentIntent/${e}`, {
893
896
  ...t,
894
- attribution: q(),
897
+ attribution: J(),
895
898
  ...r ? { locale: r } : {}
896
899
  });
897
900
  if (!n.success) return $.error("Payment validation failed:", n.error), {
@@ -914,9 +917,9 @@ async function Et(e, t, n) {
914
917
  return $.error("validatePaymentIntent error:", e), null;
915
918
  }
916
919
  }
917
- async function Dt(e) {
920
+ async function Ot(e) {
918
921
  try {
919
- let t = await O(`${T()}/orders/extend-session`, { orderUuid: e });
922
+ let t = await k(`${T()}/orders/extend-session`, { orderUuid: e });
920
923
  if (!t.success) return {
921
924
  success: !1,
922
925
  error: t.error || "Failed to extend session",
@@ -935,9 +938,9 @@ async function Dt(e) {
935
938
  };
936
939
  }
937
940
  }
938
- async function Ot(e) {
941
+ async function kt(e) {
939
942
  try {
940
- let t = await D(`${T()}/orders/session/${e}`);
943
+ let t = await O(`${T()}/orders/session/${e}`);
941
944
  if (!t.success) return {
942
945
  error: t.error || "No active session found",
943
946
  notFound: t.statusCode === 404
@@ -956,4 +959,4 @@ async function Ot(e) {
956
959
  }
957
960
  }
958
961
  //#endregion
959
- export { l as $, Ce as A, me as B, Ve as C, Ne as D, Pe as E, E as F, fe as G, ce as H, T as I, g as J, se as K, he as L, O as M, be as N, Oe as O, w as P, _ as Q, Te as R, L as S, Ue as T, pe as U, de as V, ue as W, ae as X, ie as Y, h as Z, pt as _, Tt as a, K as b, Q as c, ut as d, dt as f, ft as g, ct as h, Ot as i, D as j, ke as k, yt as l, ot as m, Dt as n, wt as o, lt as p, m as q, Ct as r, Et as s, St as t, Z as u, st as v, Be as w, B as x, q as y, we as z };
962
+ export { h as $, N as A, Ce as B, Fe as C, ke as D, ze as E, w as F, ue as G, de as H, E as I, ae as J, fe as K, T as L, O as M, k as N, Oe as O, be as P, p as Q, he as R, U as S, Ie as T, _ as U, me as V, pe as W, oe as X, m as Y, se as Z, mt as _, Et as a, q as b, Q as c, dt as d, l as et, ft as f, pt as g, lt as h, kt as i, Se as j, M as k, bt as l, st as m, Ot as n, Tt as o, ut as p, le as q, wt as r, Dt as s, Ct as t, Z as u, ct as v, Pe as w, G as x, J as y, we as z };