@getmicdrop/venue-calendar 4.3.30 → 4.3.31

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-CtdwX2SN.js} +2597 -2555
  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.31}/flow/de.js +1 -1
  51. package/dist/locales/{4.3.30 → 4.3.31}/flow/es.js +1 -1
  52. package/dist/locales/{4.3.30 → 4.3.31}/flow/fr.js +1 -1
  53. package/dist/locales/{4.3.30 → 4.3.31}/flow/id.js +1 -1
  54. package/dist/locales/{4.3.30 → 4.3.31}/flow/it.js +1 -1
  55. package/dist/locales/{4.3.30 → 4.3.31}/flow/ja.js +1 -1
  56. package/dist/locales/{4.3.30 → 4.3.31}/flow/ko.js +1 -1
  57. package/dist/locales/{4.3.30 → 4.3.31}/flow/nl.js +1 -1
  58. package/dist/locales/{4.3.30 → 4.3.31}/flow/pl.js +1 -1
  59. package/dist/locales/{4.3.30 → 4.3.31}/flow/pt-br.js +1 -1
  60. package/dist/locales/{4.3.30 → 4.3.31}/flow/tr.js +1 -1
  61. package/dist/locales/{4.3.30 → 4.3.31}/flow/zh.js +1 -1
  62. package/dist/locales/{4.3.30 → 4.3.31}/main/de.js +1 -1
  63. package/dist/locales/{4.3.30 → 4.3.31}/main/es.js +1 -1
  64. package/dist/locales/{4.3.30 → 4.3.31}/main/fr.js +1 -1
  65. package/dist/locales/{4.3.30 → 4.3.31}/main/id.js +1 -1
  66. package/dist/locales/{4.3.30 → 4.3.31}/main/it.js +1 -1
  67. package/dist/locales/{4.3.30 → 4.3.31}/main/ja.js +1 -1
  68. package/dist/locales/{4.3.30 → 4.3.31}/main/ko.js +1 -1
  69. package/dist/locales/{4.3.30 → 4.3.31}/main/nl.js +1 -1
  70. package/dist/locales/{4.3.30 → 4.3.31}/main/pl.js +1 -1
  71. package/dist/locales/{4.3.30 → 4.3.31}/main/pt-br.js +1 -1
  72. package/dist/locales/{4.3.30 → 4.3.31}/main/tr.js +1 -1
  73. package/dist/locales/{4.3.30 → 4.3.31}/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 +27 -27
  96. package/dist/venue-calendar.umd.js +33 -33
  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,37 +1,37 @@
1
1
  import { E as e } from "./Button-klwKgfhG.js";
2
- import { w as t } from "./scarcity-Dgvp7aCF.js";
3
- import { A as n, M as r, O as i, _ as a, c as o, g as s, l as c, v as l, x as u, z as d } from "./defaultLabels-BgBbv_Mu.js";
4
- import { A as f, F as p, I as m, M as h, R as g, c as ee, j as _, y as te } from "./orders-BQRru8sl.js";
2
+ import { w as t } from "./scarcity-s5fHFJHw.js";
3
+ import { A as n, M as r, O as i, _ as a, c as o, g as s, l as c, v as l, x as u, z as d } from "./defaultLabels-Dh-_xfOC.js";
4
+ import { I as f, L as p, M as m, N as h, c as g, j as _, y as ee, z as v } from "./orders-C3kxHt8s.js";
5
5
  //#region node_modules/@getmicdrop/svelte-components/dist/transforms/ticket.js
6
- var v = {
6
+ var y = {
7
7
  EVERYWHERE: 0,
8
8
  ONLINE_ONLY: 1,
9
9
  BOX_OFFICE_ONLY: 2
10
- }, y = {
10
+ }, b = {
11
11
  VISIBLE: 0,
12
12
  HIDDEN: 1,
13
13
  PROMO_ONLY: 2
14
14
  };
15
- function b(e) {
15
+ function x(e) {
16
16
  return e.soldOut === !0 ? 0 : e.remainingCapacity == null ? e.quantityRemaining == null ? e.quantity == null ? e.sold != null && e.totalCapacity != null ? Math.max(0, e.totalCapacity - e.sold) : 0 : e.quantity : e.quantityRemaining : e.remainingCapacity;
17
17
  }
18
- function x(e, t) {
18
+ function S(e, t) {
19
19
  return e.totalCapacity ?? e.quantity ?? t;
20
20
  }
21
- function S(e) {
21
+ function te(e) {
22
22
  let t = n(), r = a(e.effectiveSalesBegin, e.salesBegin, e.saleStartDate) ?? null, i = a(e.effectiveSalesEnd, e.salesEnd, e.saleEndDate) ?? null, o = u(r), c = u(i);
23
23
  if (!l(r) && !o) return "scheduled";
24
24
  if (!l(i) && !c) return "sales_ended";
25
25
  if (o && s(t, o) < 0) return "scheduled";
26
26
  if (c && s(t, c) > 0) return "sales_ended";
27
27
  if (e.soldOut === !0) return "sold_out";
28
- let d = b(e), f = x(e, d);
28
+ let d = x(e), f = S(e, d);
29
29
  return d === 0 ? "sold_out" : f > 0 && d / f < .1 ? "low" : "on_sale";
30
30
  }
31
31
  function ne(e, t = {}) {
32
32
  if (!Array.isArray(e)) return [];
33
33
  let n = e;
34
- return t.excludeDoorOnly && (n = n.filter((e) => e.salesChannel !== v.BOX_OFFICE_ONLY)), t.publicOnly && (n = n.filter((e) => e.visibility === y.VISIBLE)), n;
34
+ return t.excludeDoorOnly && (n = n.filter((e) => e.salesChannel !== y.BOX_OFFICE_ONLY)), t.publicOnly && (n = n.filter((e) => e.visibility === b.VISIBLE)), n;
35
35
  }
36
36
  function C(e) {
37
37
  if (!Array.isArray(e) || e.length === 0) return {
@@ -41,8 +41,8 @@ function C(e) {
41
41
  };
42
42
  let t = 0, n = 0;
43
43
  for (let r of e) {
44
- let e = b(r);
45
- t += e, n += x(r, e);
44
+ let e = x(r);
45
+ t += e, n += S(r, e);
46
46
  }
47
47
  return {
48
48
  totalRemaining: t,
@@ -61,7 +61,7 @@ function T(e) {
61
61
  return e.availableTickets || e.available_tickets || e.tickets || [];
62
62
  }
63
63
  function E(e) {
64
- if (!e || !(e.isHidden === !0 || typeof e.visibility == "number" && e.visibility >= y.PROMO_ONLY) || e.salesChannel === v.BOX_OFFICE_ONLY) return !1;
64
+ if (!e || !(e.isHidden === !0 || typeof e.visibility == "number" && e.visibility >= b.HIDDEN) || e.salesChannel === y.BOX_OFFICE_ONLY) return !1;
65
65
  let t = n(), r = a(e.effectiveSalesBegin, e.salesBegin, e.salesStart, e.saleBegin, e.onSaleStart, e.saleStartDate), i = a(e.effectiveSalesEnd, e.salesEnd, e.saleEnd, e.onSaleEnd, e.saleEndDate), o = u(r), c = u(i);
66
66
  if (!l(r) && !o || !l(i) && !c || o && s(o, t) > 0 || c && s(c, t) < 0) return !1;
67
67
  let d = e.remainingCapacity ?? e.quantityRemaining ?? e.quantity;
@@ -177,7 +177,7 @@ var D = class extends i {
177
177
  300: "#ffeaa7"
178
178
  },
179
179
  coral: "#ff6b6b"
180
- }, j = { defaultThemePrimary: "#7c3aed" }, M = {
180
+ }, j = { defaultThemePrimary: "#7c3aed" }, ae = {
181
181
  blue: ie.tertiary,
182
182
  black: "#000000",
183
183
  darkGray: O[700],
@@ -190,22 +190,22 @@ var D = class extends i {
190
190
  orange: k.warning,
191
191
  red: k.error,
192
192
  green: A.green[500]
193
- }, N = e("VC");
194
- function ae(e, t) {
193
+ }, M = e("VC");
194
+ function oe(e, t) {
195
195
  if (e === 404) return "Promo code isn't valid.";
196
196
  let n = (t ?? "").toLowerCase();
197
197
  return e === 400 ? n.includes("not yet active") ? "Promo code doesn't apply." : n.includes("expired") ? "Promo code expired." : n.includes("limit") ? "Promo code has reached its limit." : "Promo code isn't valid." : "Failed to validate code";
198
198
  }
199
- async function oe(e, t) {
199
+ async function se(e, t) {
200
200
  try {
201
201
  if (!t || !t.trim()) return {
202
202
  valid: !1,
203
203
  error: "Promo code is required"
204
204
  };
205
- let n = encodeURIComponent(t.trim()), r = await _(`/promo-codes/validate/${e}/${n}`);
205
+ let n = encodeURIComponent(t.trim()), r = await m(`/promo-codes/validate/${e}/${n}`);
206
206
  if (!r.success) return {
207
207
  valid: !1,
208
- error: ae(r.statusCode, r.error)
208
+ error: oe(r.statusCode, r.error)
209
209
  };
210
210
  let i = r.data;
211
211
  return {
@@ -220,31 +220,31 @@ async function oe(e, t) {
220
220
  applyToTicketIds: i.applyToTicketIds
221
221
  };
222
222
  } catch (e) {
223
- return N.error("Error validating promo code:", e), {
223
+ return M.error("Error validating promo code:", e), {
224
224
  valid: !1,
225
225
  error: "Network error validating code"
226
226
  };
227
227
  }
228
228
  }
229
- async function se(e) {
229
+ async function ce(e) {
230
230
  try {
231
- let t = await _(`/promo-codes/check/${e}`);
231
+ let t = await m(`/promo-codes/check/${e}`);
232
232
  return !t.success || t.data.hasPromoCodes === !0;
233
233
  } catch (e) {
234
- return N.error("Error checking promo codes availability:", e), !0;
234
+ return M.error("Error checking promo codes availability:", e), !0;
235
235
  }
236
236
  }
237
- async function ce(e, t, n) {
237
+ async function le(e, t, n) {
238
238
  try {
239
239
  let r = { promoCode: t };
240
240
  n && Object.keys(n).length > 0 && (r.productQuantities = n);
241
- let i = await h(`${p()}/cart/${e}/apply-promo`, r);
241
+ let i = await h(`${f()}/cart/${e}/apply-promo`, r);
242
242
  return i.success ? { success: !0 } : {
243
243
  success: !1,
244
244
  error: i.error || "Failed to apply promo code"
245
245
  };
246
246
  } catch (e) {
247
- return N.error("Error applying promo code:", e), {
247
+ return M.error("Error applying promo code:", e), {
248
248
  success: !1,
249
249
  error: "Network error applying code"
250
250
  };
@@ -252,26 +252,26 @@ async function ce(e, t, n) {
252
252
  }
253
253
  //#endregion
254
254
  //#region src/lib/api/result.ts
255
- function P(e) {
255
+ function N(e) {
256
256
  return {
257
257
  ok: !0,
258
258
  data: e
259
259
  };
260
260
  }
261
- function F(e) {
261
+ function P(e) {
262
262
  return {
263
263
  ok: !1,
264
264
  error: e
265
265
  };
266
266
  }
267
- function I(e) {
267
+ function F(e) {
268
268
  return {
269
269
  ok: !1,
270
270
  error: e,
271
271
  notFound: !0
272
272
  };
273
273
  }
274
- function le(e, t) {
274
+ function I(e, t) {
275
275
  return e.ok ? e.data : t;
276
276
  }
277
277
  //#endregion
@@ -289,12 +289,12 @@ async function U(e, t = fetch, n) {
289
289
  }
290
290
  let i = (async () => {
291
291
  try {
292
- let r = await t(n ? `${m()}/events/${e}?password=${encodeURIComponent(n)}` : `${m()}/events/${e}`);
293
- if (!r.ok) return r.status === 404 ? I("event_not_found") : (V.error(`Failed to fetch event details: ${r.status}`), F("event_fetch_failed"));
292
+ let r = await t(n ? `${p()}/events/${e}?password=${encodeURIComponent(n)}` : `${p()}/events/${e}`);
293
+ if (!r.ok) return r.status === 404 ? F("event_not_found") : (V.error(`Failed to fetch event details: ${r.status}`), P("event_fetch_failed"));
294
294
  let i = await r.json();
295
- return i ? P(i) : I("event_not_found");
295
+ return i ? N(i) : F("event_not_found");
296
296
  } catch (e) {
297
- return V.error("Error fetching event details:", e), F("event_fetch_failed");
297
+ return V.error("Error fetching event details:", e), P("event_fetch_failed");
298
298
  }
299
299
  })();
300
300
  return t === fetch && (H.set(r, i), i.finally(() => {
@@ -307,10 +307,10 @@ async function W(e, t = fetch, n) {
307
307
  }
308
308
  async function G(e, t, n = (e) => e) {
309
309
  try {
310
- let r = await g(e);
311
- return r ? P(n(r)) : (V.error(`Failed to load (${t}): network or server error`), F(t));
310
+ let r = await v(e);
311
+ return r ? N(n(r)) : (V.error(`Failed to load (${t}): network or server error`), P(t));
312
312
  } catch (e) {
313
- return V.error(`Error loading (${t}):`, e), F(t);
313
+ return V.error(`Error loading (${t}):`, e), P(t);
314
314
  }
315
315
  }
316
316
  function ue(e) {
@@ -318,59 +318,59 @@ function ue(e) {
318
318
  }
319
319
  async function K(e, t) {
320
320
  let n = t?.trim(), r = n ? `?promoCode=${encodeURIComponent(n)}` : "";
321
- return G(`${m()}/tickets/event/${e}${r}`, "tickets_fetch_failed", ue);
321
+ return G(`${p()}/tickets/event/${e}${r}`, "tickets_fetch_failed", ue);
322
322
  }
323
323
  async function de(e, t) {
324
- return le(await K(e, t), []);
324
+ return I(await K(e, t), []);
325
325
  }
326
- function fe(e) {
326
+ function q(e) {
327
327
  return Array.isArray(e) ? e : Array.isArray(e.events) ? e.events : [];
328
328
  }
329
- var q = /* @__PURE__ */ new Map();
330
- function J(e, t, n) {
329
+ var J = /* @__PURE__ */ new Map();
330
+ function Y(e, t, n) {
331
331
  if (!n?.fresh) {
332
- let t = q.get(e);
332
+ let t = J.get(e);
333
333
  if (t) return t;
334
334
  }
335
- let r = G(e, t, (e) => fe(e));
336
- return q.set(e, r), r.finally(() => {
337
- q.get(e) === r && q.delete(e);
335
+ let r = G(e, t, (e) => q(e));
336
+ return J.set(e, r), r.finally(() => {
337
+ J.get(e) === r && J.delete(e);
338
338
  }), r;
339
339
  }
340
+ async function fe(e, t, n, r) {
341
+ return Y(`${p()}/events/venue/${e}/month/${t}/${n}`, "month_events_fetch_failed", r);
342
+ }
340
343
  async function pe(e, t, n, r) {
341
- return J(`${m()}/events/venue/${e}/month/${t}/${n}`, "month_events_fetch_failed", r);
344
+ return Y(`${p()}/events/organization/${e}/month/${t}/${n}`, "org_month_events_fetch_failed", r);
342
345
  }
343
- async function me(e, t, n, r) {
344
- return J(`${m()}/events/organization/${e}/month/${t}/${n}`, "org_month_events_fetch_failed", r);
346
+ async function me(e, t) {
347
+ return G(`${p()}/series/${e}/occurrences?venueId=${t}`, "series_cta_fetch_failed");
345
348
  }
346
349
  async function he(e, t) {
347
- return G(`${m()}/series/${e}/occurrences?venueId=${t}`, "series_cta_fetch_failed");
348
- }
349
- async function ge(e, t) {
350
- let n = await he(e, t);
350
+ let n = await me(e, t);
351
351
  return n.ok ? n.data : null;
352
352
  }
353
- async function _e(e, t) {
353
+ async function ge(e, t) {
354
354
  try {
355
- let n = t ? `?slug=${encodeURIComponent(t)}` : "", r = await g(`${m()}/resolve/${encodeURIComponent(String(e))}${n}`);
355
+ let n = t ? `?slug=${encodeURIComponent(t)}` : "", r = await v(`${p()}/resolve/${encodeURIComponent(String(e))}${n}`);
356
356
  if (!r || !r.type) throw new D("entity", String(e));
357
357
  return r;
358
358
  } catch (e) {
359
359
  return V.error("Error resolving public entity:", e), null;
360
360
  }
361
361
  }
362
- async function ve(e, t) {
362
+ async function _e(e, t) {
363
363
  try {
364
- let n = t ? `${m()}/collections/${e}?password=${encodeURIComponent(t)}` : `${m()}/collections/${e}`, r = await g(n);
364
+ let n = t ? `${p()}/collections/${e}?password=${encodeURIComponent(t)}` : `${p()}/collections/${e}`, r = await v(n);
365
365
  if (!r) throw new D("collection", String(e));
366
366
  return r;
367
367
  } catch (e) {
368
368
  return V.error("Error fetching collection:", e), null;
369
369
  }
370
370
  }
371
- async function ye(e, t) {
371
+ async function ve(e, t) {
372
372
  try {
373
- let n = await g(`${m()}/events/${e}/check-password`, {
373
+ let n = await v(`${p()}/events/${e}/check-password`, {
374
374
  method: "POST",
375
375
  headers: { "Content-Type": "application/json" },
376
376
  body: JSON.stringify({ password: t })
@@ -382,31 +382,31 @@ async function ye(e, t) {
382
382
  }
383
383
  //#endregion
384
384
  //#region src/lib/api/venues.ts
385
- var Y = e("VC");
386
- async function be(e) {
385
+ var X = e("VC");
386
+ async function ye(e) {
387
387
  try {
388
- if (!e) return Y.warn("getVenue called without venueId"), null;
389
- let t = await _(`/venues/${e}`);
390
- return t.success ? t.data ?? null : (Y.error(`Failed to fetch venue: ${t.statusCode}`), null);
388
+ if (!e) return X.warn("getVenue called without venueId"), null;
389
+ let t = await m(`/venues/${e}`);
390
+ return t.success ? t.data ?? null : (X.error(`Failed to fetch venue: ${t.statusCode}`), null);
391
391
  } catch (e) {
392
- return Y.error("Error fetching venue:", e), null;
392
+ return X.error("Error fetching venue:", e), null;
393
393
  }
394
394
  }
395
395
  //#endregion
396
396
  //#region src/lib/api/transformers/giftCard.ts
397
- function X(e, t) {
397
+ function Z(e, t) {
398
398
  return e == null || t(e);
399
399
  }
400
- function xe(e) {
400
+ function be(e) {
401
401
  if (typeof e != "object" || !e) return !1;
402
402
  let t = e;
403
- return t.valid === !0 && Number.isInteger(t.appliedAmount) && typeof t.remainingTotal == "number" && Number.isFinite(t.remainingTotal) && X(t.giftCardCode, (e) => typeof e == "string") && X(t.giftCardBalance, (e) => typeof e == "number" && Number.isFinite(e)) && X(t.fullyCoveredByCard, (e) => typeof e == "boolean");
403
+ return t.valid === !0 && Number.isInteger(t.appliedAmount) && typeof t.remainingTotal == "number" && Number.isFinite(t.remainingTotal) && Z(t.giftCardCode, (e) => typeof e == "string") && Z(t.giftCardBalance, (e) => typeof e == "number" && Number.isFinite(e)) && Z(t.fullyCoveredByCard, (e) => typeof e == "boolean");
404
404
  }
405
- var Se = "We couldn't apply that gift card. Please try again.";
406
- function Ce(e) {
407
- if (!xe(e)) return {
405
+ var xe = "We couldn't apply that gift card. Please try again.";
406
+ function Se(e) {
407
+ if (!be(e)) return {
408
408
  valid: !1,
409
- error: Se
409
+ error: xe
410
410
  };
411
411
  let t = e, n = r(d(t.appliedAmount)), i = t.remainingTotal, a = t.fullyCoveredByCard ?? i <= 0, o = !a;
412
412
  return {
@@ -422,30 +422,30 @@ function Ce(e) {
422
422
  }
423
423
  //#endregion
424
424
  //#region src/lib/api/gift-cards.ts
425
- var Z = e("VC");
426
- async function we(e, t) {
425
+ var Q = e("VC");
426
+ async function Ce(e, t) {
427
427
  try {
428
- let n = await h(`${p()}/cart/${e}/apply-gift-card`, { giftCardCode: t });
428
+ let n = await h(`${f()}/cart/${e}/apply-gift-card`, { giftCardCode: t });
429
429
  if (!n.success) return n.statusCode === 429 ? {
430
430
  valid: !1,
431
431
  error: "Too many attempts. Please wait a moment and try again."
432
- } : (Z.error("Apply gift card failed:", n.error), {
432
+ } : (Q.error("Apply gift card failed:", n.error), {
433
433
  valid: !1,
434
434
  error: n.error || "Invalid gift card code"
435
435
  });
436
- let r = Ce(n.data);
437
- return r.valid || Z.error("Apply gift card returned an unusable payload:", n.data), r;
436
+ let r = Se(n.data);
437
+ return r.valid || Q.error("Apply gift card returned an unusable payload:", n.data), r;
438
438
  } catch (e) {
439
- return Z.error("applyGiftCard error:", e), {
439
+ return Q.error("applyGiftCard error:", e), {
440
440
  valid: !1,
441
441
  error: "Network error. Please check your connection and try again."
442
442
  };
443
443
  }
444
444
  }
445
- async function Te(e, t) {
445
+ async function we(e, t) {
446
446
  try {
447
- let n = t?.giftCardId ? { giftCardId: t.giftCardId } : t?.code ? { giftCardCode: t.code } : null, r = await f(`${p()}/cart/${e}/gift-card`, n ? { body: JSON.stringify(n) } : void 0);
448
- if (!r.success) return Z.error("Remove gift card failed:", r.error), {
447
+ let n = t?.giftCardId ? { giftCardId: t.giftCardId } : t?.code ? { giftCardCode: t.code } : null, r = await _(`${f()}/cart/${e}/gift-card`, n ? { body: JSON.stringify(n) } : void 0);
448
+ if (!r.success) return Q.error("Remove gift card failed:", r.error), {
449
449
  success: !1,
450
450
  error: r.error || "Failed to remove gift card"
451
451
  };
@@ -455,16 +455,16 @@ async function Te(e, t) {
455
455
  ...typeof a == "number" ? { remainingTotal: a } : {}
456
456
  };
457
457
  } catch (e) {
458
- return Z.error("removeGiftCard error:", e), {
458
+ return Q.error("removeGiftCard error:", e), {
459
459
  success: !1,
460
460
  error: "Network error. Please check your connection and try again."
461
461
  };
462
462
  }
463
463
  }
464
- async function Ee(e, n, r) {
465
- let i = ee(r);
464
+ async function Te(e, n, r) {
465
+ let i = g(r);
466
466
  try {
467
- let r = await h(`${p()}/cart/${e}/complete-gift-card-payment`, {
467
+ let r = await h(`${f()}/cart/${e}/complete-gift-card-payment`, {
468
468
  customerName: t(n.firstName, n.lastName),
469
469
  customerEmail: n.email,
470
470
  firstName: n.firstName,
@@ -473,19 +473,19 @@ async function Ee(e, n, r) {
473
473
  phoneNumber: n.phoneNumber || null,
474
474
  questionAnswer: n.questionAnswer || "",
475
475
  mailingList: n.mailingList || !1,
476
- attribution: te(),
476
+ attribution: ee(),
477
477
  ...i ? { locale: i } : {}
478
478
  });
479
479
  return r.success ? {
480
480
  success: !0,
481
481
  orderId: r.data?.orderId,
482
482
  confirmationNumber: r.data?.confirmationNumber
483
- } : (Z.error("Complete gift card payment failed:", r.error), {
483
+ } : (Q.error("Complete gift card payment failed:", r.error), {
484
484
  success: !1,
485
485
  error: r.error || "Failed to complete payment"
486
486
  });
487
487
  } catch (e) {
488
- return Z.error("completeGiftCardPayment error:", e), {
488
+ return Q.error("completeGiftCardPayment error:", e), {
489
489
  success: !1,
490
490
  error: "Network error. Please check your connection and try again."
491
491
  };
@@ -493,8 +493,8 @@ async function Ee(e, n, r) {
493
493
  }
494
494
  //#endregion
495
495
  //#region src/lib/api/waitlist.ts
496
- var Q = e("VC");
497
- async function De(e, t, n = null, r = !1) {
496
+ var $ = e("VC");
497
+ async function Ee(e, t, n = null, r = !1) {
498
498
  try {
499
499
  let i = { email: t };
500
500
  n && r && (i.phone = n, i.smsOptIn = !0);
@@ -503,18 +503,18 @@ async function De(e, t, n = null, r = !1) {
503
503
  success: !0,
504
504
  updated: a.data?.updated,
505
505
  position: a.data?.position
506
- } : (Q.error("Join waitlist failed:", a.error), {
506
+ } : ($.error("Join waitlist failed:", a.error), {
507
507
  success: !1,
508
508
  errorCode: a.error || "join_failed"
509
509
  });
510
510
  } catch (e) {
511
- return Q.error("joinWaitlist error:", e), {
511
+ return $.error("joinWaitlist error:", e), {
512
512
  success: !1,
513
513
  errorCode: "network_error"
514
514
  };
515
515
  }
516
516
  }
517
- async function Oe(e, t) {
517
+ async function De(e, t) {
518
518
  try {
519
519
  let n = await h(`/checkout/validate-token/${e}`, { email: t });
520
520
  return n.success ? {
@@ -527,14 +527,14 @@ async function Oe(e, t) {
527
527
  errorCode: n.error
528
528
  };
529
529
  } catch (e) {
530
- return Q.error("validateWaitlistToken error:", e), {
530
+ return $.error("validateWaitlistToken error:", e), {
531
531
  valid: !1,
532
532
  eventId: 0,
533
533
  errorCode: "invalid_token"
534
534
  };
535
535
  }
536
536
  }
537
- async function $(e, t) {
537
+ async function Oe(e, t) {
538
538
  try {
539
539
  let n = await h(`/waitlist/requeue/${e}`, { email: t });
540
540
  return n.success ? { success: !0 } : {
@@ -542,7 +542,7 @@ async function $(e, t) {
542
542
  errorCode: n.error
543
543
  };
544
544
  } catch (e) {
545
- return Q.error("requeueWaitlistToFront error:", e), {
545
+ return $.error("requeueWaitlistToFront error:", e), {
546
546
  success: !1,
547
547
  errorCode: "internal_error"
548
548
  };
@@ -555,14 +555,14 @@ async function ke(e) {
555
555
  gated: !1
556
556
  };
557
557
  try {
558
- let n = await _(`/events/${e}/waitlist/status`);
558
+ let n = await m(`/events/${e}/waitlist/status`);
559
559
  return n.success ? {
560
560
  waitlistEnabled: !!n.data?.waitlistEnabled,
561
561
  soldOut: !!n.data?.soldOut,
562
562
  gated: !!n.data?.gated
563
563
  } : t;
564
564
  } catch (e) {
565
- return Q.error("getWaitlistStatus error:", e), t;
565
+ return $.error("getWaitlistStatus error:", e), t;
566
566
  }
567
567
  }
568
568
  function Ae(e) {
@@ -570,4 +570,4 @@ function Ae(e) {
570
570
  return e >= 3600 ? `${Math.floor(e / 3600)}:${String(Math.floor(e % 3600 / 60)).padStart(2, "0")}:${t}` : `${Math.floor(e / 60)}:${t}`;
571
571
  }
572
572
  //#endregion
573
- export { C as A, j as C, re as D, M as E, ne as M, w as N, E as O, A as S, k as T, me as _, Oe as a, se as b, Te as c, W as d, de as f, pe as g, ge as h, $ as i, S as j, y as k, be as l, ve as m, ke as n, we as o, K as p, De as r, Ee as s, Ae as t, ye as u, _e as v, O as w, oe as x, ce as y };
573
+ export { C as A, j as C, re as D, ae as E, ne as M, w as N, E as O, A as S, k as T, pe as _, De as a, ce as b, we as c, W as d, de as f, fe as g, he as h, Oe as i, te as j, b as k, ye as l, _e as m, ke as n, Ce as o, K as p, Ee as r, Te as s, Ae as t, ve as u, ge as v, O as w, se as x, le as y };
@@ -1,4 +1,4 @@
1
- import { C as e, S as t, T as n, w as r } from "./api-Cjp9Xhh9.js";
1
+ import { C as e, S as t, T as n, w as r } from "./api-Cnjfq1es.js";
2
2
  //#region src/lib/core/theme-engine.js
3
3
  var i = {
4
4
  primary: e.defaultThemePrimary,
@@ -58,12 +58,14 @@ var a = {
58
58
  includesFees: "Includes",
59
59
  fees: "fees",
60
60
  fee: "fee",
61
- eventCancelled: "Cancelled",
61
+ eventCancelled: "Canceled",
62
62
  eventEnded: "Event ended",
63
63
  salesEnded: "Sales ended",
64
+ unlocked: "Unlocked",
65
+ discountApplied: "Discount applied",
64
66
  salesPaused: "Sales paused",
65
67
  noTicketsAvailable: "No tickets available",
66
- reasonEventCancelled: "This event has been cancelled",
68
+ reasonEventCancelled: "This event has been canceled",
67
69
  reasonEventPast: "This event has already happened",
68
70
  reasonNoTickets: "There are no tickets configured for this event",
69
71
  reasonSoldOutWaitlist: "All tickets are claimed. Join the waitlist to be notified",
@@ -1,4 +1,4 @@
1
- import { q as e } from "./scarcity-Dgvp7aCF.js";
1
+ import { q as e } from "./scarcity-s5fHFJHw.js";
2
2
  import "svelte/internal/disclose-version";
3
3
  import * as t from "svelte/internal/client";
4
4
  //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/LocationIcon.svelte
@@ -198,7 +198,9 @@ var e = {
198
198
  recommendationSimilarShow: "Ähnliche Show",
199
199
  recommendationSameNight: "Gleicher Wochentag",
200
200
  recommendationYouMightLike: "Das könnte dir auch gefallen",
201
- recommendationFeatured: "Empfohlen"
201
+ recommendationFeatured: "Empfohlen",
202
+ unlocked: "Freigeschaltet",
203
+ discountApplied: "Rabatt angewendet"
202
204
  };
203
205
  //#endregion
204
206
  export { e as de };
@@ -513,7 +513,10 @@ var e = {
513
513
  somethingWentWrong: "Etwas ist schiefgelaufen. Bitte versuche es gleich noch einmal",
514
514
  orderNumberLine: "Bestellung {orderNumber}",
515
515
  questionsPrompt: "Fragen?",
516
- opensInGoogleMaps: "(wird in Google Maps geöffnet)"
516
+ opensInGoogleMaps: "(wird in Google Maps geöffnet)",
517
+ purchaseGiftCard: "Gutschein kaufen",
518
+ giftDetails: "Geschenkdetails",
519
+ continueToPayment: "Weiter zur Zahlung"
517
520
  };
518
521
  //#endregion
519
522
  export { e as de };
@@ -2119,7 +2119,7 @@ var In = {
2119
2119
  statusSoldOut: "Sold out",
2120
2120
  statusSellingFast: "Selling fast",
2121
2121
  statusAlmostSoldOut: "Almost sold out",
2122
- statusCancelled: "Cancelled",
2122
+ statusCancelled: "Canceled",
2123
2123
  statusPostponed: "Postponed",
2124
2124
  statusPastEvent: "Past event",
2125
2125
  statusSalesEnded: "Sales ended",
@@ -2208,6 +2208,9 @@ var In = {
2208
2208
  micdropAriaLabel: "MicDrop - Event ticketing platform",
2209
2209
  giftCardsLink: "Gift cards",
2210
2210
  giftCardsLinkAriaLabel: "Buy a gift card for this venue",
2211
+ purchaseGiftCard: "Purchase a gift card",
2212
+ giftDetails: "Gift details",
2213
+ continueToPayment: "Continue to payment",
2211
2214
  datePickerToday: "Today",
2212
2215
  datePickerClear: "Clear",
2213
2216
  pastDatesNotAvailable: "Past dates are not available",
@@ -2236,17 +2239,17 @@ var In = {
2236
2239
  collectionPrivateTitle: "This collection is private",
2237
2240
  collectionPrivateDescription: "Please enter the password to view this collection",
2238
2241
  viewCollection: "View collection",
2239
- eventCancelledTitle: "This event has been cancelled",
2242
+ eventCancelledTitle: "This event has been canceled",
2240
2243
  eventCancelledMessage: "We're sorry, but this event is no longer taking place",
2241
2244
  eventCancelledRefund: "Refund information:",
2242
2245
  eventCancelledRefundDetails: "If you purchased tickets, a full refund will be processed automatically to your original payment method within 5-10 business days. Check your email for confirmation",
2243
2246
  learnMore: "Learn more",
2244
- cancelledRefundAuto: "If your event is cancelled, we'll automatically refund the credit card used for purchase* (usually within 30 business days of the cancellation announcement)",
2247
+ cancelledRefundAuto: "If your event is canceled, we'll automatically refund the credit card used for purchase* (usually within 30 business days of the cancellation announcement)",
2245
2248
  cancelledRefundBoxOffice: "Bought your tickets at the venue's box office? Please take the tickets directly to the box office for a refund",
2246
2249
  cancelledRefundFootnote: "*Please note that we cannot submit the refund to an alternate card. If your credit card number has changed since you made the purchase this should not impact your ability to receive the refund",
2247
- eventCanceledTitle: "Event cancelled",
2250
+ eventCanceledTitle: "Event canceled",
2248
2251
  eventPostponedTitle: "Event postponed",
2249
- eventCanceledBody: "This event was cancelled — you weren't charged",
2252
+ eventCanceledBody: "This event was canceled — you weren't charged",
2250
2253
  eventPostponedBody: "Sales are paused while this show is rescheduled — you weren't charged",
2251
2254
  backToEvents: "Back to events",
2252
2255
  eventHasEnded: "Event has ended",
@@ -2265,7 +2268,7 @@ var In = {
2265
2268
  venue: "Venue",
2266
2269
  opensInGoogleMaps: "(opens in Google Maps)",
2267
2270
  generalAdmission: "General admission",
2268
- eventCancelled: "Event cancelled",
2271
+ eventCancelled: "Event canceled",
2269
2272
  salesEnded: "Sales ended",
2270
2273
  soldOut: "Sold out",
2271
2274
  joinWaitlist: "Join waitlist",
@@ -198,7 +198,9 @@ var e = {
198
198
  recommendationSimilarShow: "Espectáculo similar",
199
199
  recommendationSameNight: "Mismo día de la semana",
200
200
  recommendationYouMightLike: "También te puede gustar",
201
- recommendationFeatured: "Destacado"
201
+ recommendationFeatured: "Destacado",
202
+ unlocked: "Desbloqueado",
203
+ discountApplied: "Descuento aplicado"
202
204
  };
203
205
  //#endregion
204
206
  export { e as es };
@@ -513,7 +513,10 @@ var e = {
513
513
  somethingWentWrong: "Algo salió mal. Inténtalo de nuevo en un momento",
514
514
  orderNumberLine: "Pedido {orderNumber}",
515
515
  questionsPrompt: "¿Preguntas?",
516
- opensInGoogleMaps: "(se abre en Google Maps)"
516
+ opensInGoogleMaps: "(se abre en Google Maps)",
517
+ purchaseGiftCard: "Comprar tarjeta de regalo",
518
+ giftDetails: "Detalles del regalo",
519
+ continueToPayment: "Continuar al pago"
517
520
  };
518
521
  //#endregion
519
522
  export { e as es };
@@ -1,7 +1,7 @@
1
- import { d as e, f as t, i as n, l as r, s as i } from "./scarcity-Dgvp7aCF.js";
2
- import { C as a } from "./defaultLabels-BgBbv_Mu.js";
3
- import { l as o, u as s } from "./navigation-Dh-hGmN9.js";
4
- import { A as c, D as l, M as u, N as d, j as f, w as p } from "./api-Cjp9Xhh9.js";
1
+ import { d as e, f as t, i as n, l as r, s as i } from "./scarcity-s5fHFJHw.js";
2
+ import { C as a } from "./defaultLabels-Dh-_xfOC.js";
3
+ import { l as o, u as s } from "./navigation-DXoNc6j6.js";
4
+ import { A as c, D as l, M as u, N as d, j as f, w as p } from "./api-Cnjfq1es.js";
5
5
  //#region src/lib/utils/event-transform.js
6
6
  var m = "data:image/svg+xml," + encodeURIComponent(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 300" fill="none">
7
7
  <rect width="200" height="300" fill="${p[200]}"/>
@@ -95,7 +95,7 @@ function w(e, t, r, i) {
95
95
  } else {
96
96
  let t = u(e.availableTickets || [], {
97
97
  excludeDoorOnly: !0,
98
- publicOnly: !1
98
+ publicOnly: !0
99
99
  });
100
100
  o = c(t);
101
101
  }