@getmicdrop/venue-calendar 4.3.37 → 4.3.39

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 (103) hide show
  1. package/dist/{ArrowLeftIcon-bH5d6LQO.js → ArrowLeftIcon-BMuyNOqe.js} +1 -1
  2. package/dist/{BlockPlaceholder-yXhu9HrQ.js → BlockPlaceholder-CUusOhOf.js} +1 -1
  3. package/dist/{Calendar-BjE02HrG.js → Calendar-Dy-jZDff.js} +3 -3
  4. package/dist/{CalendarFoundryView-BWaOYwqK.js → CalendarFoundryView-BWyEe7Xe.js} +23 -23
  5. package/dist/{CalendarIcon-Cg9UUTeu.js → CalendarIcon-B1JasL-W.js} +1 -1
  6. package/dist/{CartView-bcOiHkc9.js → CartView-CyU9g9ss.js} +21 -21
  7. package/dist/{Checkbox-24CWEsty.js → Checkbox-BtJwg_CF.js} +1 -0
  8. package/dist/{Checkout-CQkHV2jG.js → Checkout-BGXlW2j2.js} +15 -21
  9. package/dist/{Checkout-CBKPSWLo.js → Checkout-DrP1KLR_.js} +19 -19
  10. package/dist/{CheckoutTimer-BYQ43W8T.js → CheckoutTimer-CAKT63di.js} +3 -3
  11. package/dist/{ChevronDownIcon-BA40Kl0C.js → ChevronDownIcon--mG1fNDx.js} +1 -1
  12. package/dist/{ClockIcon-DjC-doTv.js → ClockIcon-B8ahXV8G.js} +1 -1
  13. package/dist/{CloseIcon-BdwmaxDK.js → CloseIcon-C9guTa4C.js} +1 -1
  14. package/dist/{CollectionView-5CycNo4A.js → CollectionView-BhBCM-01.js} +6 -6
  15. package/dist/{CropImage-Ct6MRg_a.js → CropImage-BFtvLjTE.js} +1 -1
  16. package/dist/{Event-Bz4DLlpB.js → Event-DyX1UrZe.js} +18 -18
  17. package/dist/EventPage-DxyEqU7R.js +1184 -0
  18. package/dist/{Input-o-1w57H2.js → Input-DNzDcf6I.js} +1 -1
  19. package/dist/{MailIcon-DCMMhuHr.js → MailIcon-Cf77TYiB.js} +1 -1
  20. package/dist/{PasswordInput-zX7J--jb.js → PasswordInput-C-BH1Do3.js} +1 -1
  21. package/dist/{RecommendationsRail-Cb--XCvg.js → RecommendationsRail-CG0vCtgJ.js} +8 -8
  22. package/dist/{ScarcityBadge-CwYWJOsJ.js → ScarcityBadge-D0D6Hqp0.js} +3 -3
  23. package/dist/{SeriesPage-BalCscZf.js → SeriesPage-D9_Nn8gF.js} +3 -3
  24. package/dist/{Success-DtScq6E2.js → Success-Db843hJe.js} +25 -25
  25. package/dist/{TagIcon-CkfQvNGi.js → TagIcon-DUY8KSZ0.js} +1 -1
  26. package/dist/{ViewTicketsEmbed-KbA05I2k.js → ViewTicketsEmbed-rdcE9aPB.js} +5 -5
  27. package/dist/{WarningCircleIcon-Iq24pJJf.js → WarningCircleIcon-C1-Aj9ut.js} +1 -1
  28. package/dist/{WarningTriIcon-Dw5GnHpq.js → WarningTriIcon-BrwQ58VB.js} +1 -1
  29. package/dist/api/api.cjs +1 -1
  30. package/dist/api/api.mjs +1 -1
  31. package/dist/api/authHeaders.d.ts +25 -0
  32. package/dist/api/checkout-availability.d.ts +71 -0
  33. package/dist/api/gate-password-cache.d.ts +60 -0
  34. package/dist/api/recommendations.d.ts +35 -0
  35. package/dist/api/surge-queue.d.ts +133 -0
  36. package/dist/api/types.d.ts +435 -556
  37. package/dist/{api-D0rw6nGg.js → api-DDVVRbC-.js} +73 -73
  38. package/dist/{constants-B3kqqQpi.js → constants-7hsFMWgp.js} +1 -1
  39. package/dist/{copyToClipboard-C3IBl2Z1.js → copyToClipboard-4LAkJ_1y.js} +1 -1
  40. package/dist/{de-BY5vJUGN.js → de-DD9e2eok.js} +21 -3
  41. package/dist/{defaultLabels-Zp9QbN37.js → defaultLabels-BkjXKQDd.js} +20 -2
  42. package/dist/{defaults-BMbXcKP9.js → defaults-DthmKRyG.js} +2 -2
  43. package/dist/{es-jUq9nrJk.js → es-CHuPO3ex.js} +21 -3
  44. package/dist/{event-c9mHeEJz.js → event-Dew6DCL7.js} +1 -1
  45. package/dist/{event-transform-D0mzpOzE.js → event-transform-CbFR1hRl.js} +4 -4
  46. package/dist/{eventStatusStream-dDHNTEOf.js → eventStatusStream-DTshTZoI.js} +1 -1
  47. package/dist/{fr-BhVwmvlV.js → fr-Ctu5i20f.js} +21 -3
  48. package/dist/{href-1o0O9xTA.js → href-B4azVXj-.js} +2 -2
  49. package/dist/i18n--YZExMpe.js +28 -0
  50. package/dist/{i18n-DInkJ-RH.js → i18n-srcm-H61.js} +6 -6
  51. package/dist/{id-CWU5ZvLv.js → id-DKYW7qEJ.js} +21 -3
  52. package/dist/imageOptimizer-Cf0BbZJ7.js +220 -0
  53. package/dist/{it-wlDmN3hH.js → it-DPWCuCsJ.js} +21 -3
  54. package/dist/{ja-DpA7hJaC.js → ja-CNSRW1XM.js} +21 -3
  55. package/dist/{ko-DdWLaFvo.js → ko--itQbcHD.js} +21 -3
  56. package/dist/locales/{4.3.37 → 4.3.39}/main/de.js +1 -1
  57. package/dist/locales/{4.3.37 → 4.3.39}/main/es.js +1 -1
  58. package/dist/locales/{4.3.37 → 4.3.39}/main/fr.js +1 -1
  59. package/dist/locales/{4.3.37 → 4.3.39}/main/id.js +1 -1
  60. package/dist/locales/{4.3.37 → 4.3.39}/main/it.js +1 -1
  61. package/dist/locales/{4.3.37 → 4.3.39}/main/ja.js +1 -1
  62. package/dist/locales/{4.3.37 → 4.3.39}/main/ko.js +1 -1
  63. package/dist/locales/{4.3.37 → 4.3.39}/main/nl.js +1 -1
  64. package/dist/locales/{4.3.37 → 4.3.39}/main/pl.js +1 -1
  65. package/dist/locales/{4.3.37 → 4.3.39}/main/pt-br.js +1 -1
  66. package/dist/locales/{4.3.37 → 4.3.39}/main/tr.js +1 -1
  67. package/dist/locales/{4.3.37 → 4.3.39}/main/zh.js +1 -1
  68. package/dist/{nl-BwxAfMRa.js → nl-BoZA1-rw.js} +21 -3
  69. package/dist/{order-totals-BEUOdkCb.js → order-totals-DFE6UVG4.js} +3 -3
  70. package/dist/{orders-jQz7QFjK.js → orders-DABdaHOy.js} +167 -166
  71. package/dist/{phoneUtils-CbiDWdEC.js → phoneUtils-CxLRaM5n.js} +1 -1
  72. package/dist/{pixels-DnbRn43e.js → pixels-BVOE_JFH.js} +8 -8
  73. package/dist/{pl-CuRdwJXc.js → pl-tC8ayoR2.js} +21 -3
  74. package/dist/{promo-BrstveEs.js → promo-B3Tj0iQF.js} +1 -1
  75. package/dist/{pt-br-BUWJLxKf.js → pt-br-CTMA1wMi.js} +21 -3
  76. package/dist/{scarcity-CwnIxi1J.js → scarcity-DqbDh1cS.js} +1 -1
  77. package/dist/seo/types.d.ts +137 -156
  78. package/dist/{serverTotals-D2-FzkdS.js → serverTotals-ClEUVCOz.js} +1 -1
  79. package/dist/{showcase-state-options-CDOHpho6.js → showcase-state-options-Dwn2NLOM.js} +1 -1
  80. package/dist/{to-event-card-props-ChcFQ_rl.js → to-event-card-props-CRaeqRxY.js} +2 -2
  81. package/dist/{tr-DTe5Urub.js → tr-CuaYXuAQ.js} +21 -3
  82. package/dist/{utils-KGYASlkk.js → utils-kRsfuFcG.js} +53 -53
  83. package/dist/venue-calendar.css +1 -1
  84. package/dist/venue-calendar.es.js +499 -490
  85. package/dist/venue-calendar.iife.js +56 -56
  86. package/dist/venue-calendar.umd.js +56 -56
  87. package/dist/{zh-BnBN3ggx.js → zh-Bcr7RKpt.js} +21 -3
  88. package/package.json +2 -2
  89. package/dist/EventPage-6-7R9qrl.js +0 -1184
  90. package/dist/i18n-i-1mHdch.js +0 -28
  91. package/dist/imageOptimizer-DkJp4tei.js +0 -140
  92. /package/dist/locales/{4.3.37 → 4.3.39}/flow/de.js +0 -0
  93. /package/dist/locales/{4.3.37 → 4.3.39}/flow/es.js +0 -0
  94. /package/dist/locales/{4.3.37 → 4.3.39}/flow/fr.js +0 -0
  95. /package/dist/locales/{4.3.37 → 4.3.39}/flow/id.js +0 -0
  96. /package/dist/locales/{4.3.37 → 4.3.39}/flow/it.js +0 -0
  97. /package/dist/locales/{4.3.37 → 4.3.39}/flow/ja.js +0 -0
  98. /package/dist/locales/{4.3.37 → 4.3.39}/flow/ko.js +0 -0
  99. /package/dist/locales/{4.3.37 → 4.3.39}/flow/nl.js +0 -0
  100. /package/dist/locales/{4.3.37 → 4.3.39}/flow/pl.js +0 -0
  101. /package/dist/locales/{4.3.37 → 4.3.39}/flow/pt-br.js +0 -0
  102. /package/dist/locales/{4.3.37 → 4.3.39}/flow/tr.js +0 -0
  103. /package/dist/locales/{4.3.37 → 4.3.39}/flow/zh.js +0 -0
@@ -1,39 +1,39 @@
1
1
  import { E as e } from "./Button-klwKgfhG.js";
2
- import { w as t } from "./scarcity-CwnIxi1J.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-Zp9QbN37.js";
4
- import { H as f, I as p, L as m, M as h, N as g, c as _, j as v, y as ee, z as y } from "./orders-jQz7QFjK.js";
2
+ import { w as t } from "./scarcity-DqbDh1cS.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-BkjXKQDd.js";
4
+ import { B as f, L as p, M as ee, N as m, P as h, R as g, U as _, b as te, c as ne } from "./orders-DABdaHOy.js";
5
5
  //#region node_modules/@getmicdrop/svelte-components/dist/transforms/ticket.js
6
- var b = {
6
+ var v = {
7
7
  EVERYWHERE: 0,
8
8
  ONLINE_ONLY: 1,
9
9
  BOX_OFFICE_ONLY: 2
10
- }, x = {
10
+ }, y = {
11
11
  VISIBLE: 0,
12
12
  HIDDEN: 1,
13
13
  PROMO_ONLY: 2
14
14
  };
15
- function S(e) {
15
+ function b(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 C(e, t) {
18
+ function x(e, t) {
19
19
  return e.totalCapacity ?? e.quantity ?? t;
20
20
  }
21
- function w(e) {
21
+ function S(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 = S(e), f = C(e, d);
28
+ let d = b(e), f = x(e, d);
29
29
  return d === 0 ? "sold_out" : f > 0 && d / f < .1 ? "low" : "on_sale";
30
30
  }
31
- function T(e, t = {}) {
31
+ function C(e, t = {}) {
32
32
  if (!Array.isArray(e)) return [];
33
33
  let n = e;
34
- return t.excludeDoorOnly && (n = n.filter((e) => e.salesChannel !== b.BOX_OFFICE_ONLY)), t.publicOnly && (n = n.filter((e) => e.visibility === x.VISIBLE)), n;
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;
35
35
  }
36
- function te(e) {
36
+ function w(e) {
37
37
  if (!Array.isArray(e) || e.length === 0) return {
38
38
  totalRemaining: 0,
39
39
  totalCapacity: 0,
@@ -41,8 +41,8 @@ function te(e) {
41
41
  };
42
42
  let t = 0, n = 0;
43
43
  for (let r of e) {
44
- let e = S(r);
45
- t += e, n += C(r, e);
44
+ let e = b(r);
45
+ t += e, n += x(r, e);
46
46
  }
47
47
  return {
48
48
  totalRemaining: t,
@@ -50,29 +50,29 @@ function te(e) {
50
50
  isSoldOut: t === 0
51
51
  };
52
52
  }
53
- function ne(e) {
53
+ function re(e) {
54
54
  if (!Array.isArray(e) || e.length === 0) return 0;
55
55
  let t = e.map((e) => Number(e.price ?? e.ticketPrice)).filter((e) => Number.isFinite(e) && e > 0);
56
56
  return t.length > 0 ? Math.min(...t) : 0;
57
57
  }
58
58
  //#endregion
59
59
  //#region node_modules/@getmicdrop/svelte-components/dist/transforms/event.js
60
- function re(e) {
60
+ function ie(e) {
61
61
  return e.availableTickets || e.available_tickets || e.tickets || [];
62
62
  }
63
- function E(e) {
64
- if (!e || !(e.isHidden === !0 || typeof e.visibility == "number" && e.visibility >= x.HIDDEN) || e.salesChannel === b.BOX_OFFICE_ONLY) return !1;
63
+ function T(e) {
64
+ if (!e || !(e.isHidden === !0 || typeof e.visibility == "number" && e.visibility >= y.HIDDEN) || e.salesChannel === v.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;
68
68
  return !(e.soldOut || d != null && d <= 0);
69
69
  }
70
- function ie(e) {
71
- return e ? e.hasHiddenTickets === !0 || re(e).some(E) : !1;
70
+ function ae(e) {
71
+ return e ? e.hasHiddenTickets === !0 || ie(e).some(T) : !1;
72
72
  }
73
73
  //#endregion
74
74
  //#region node_modules/@getmicdrop/svelte-components/dist/errors/classes/NotFoundError.js
75
- var D = class extends i {
75
+ var E = class extends i {
76
76
  constructor(e, t) {
77
77
  let n = t ? `${e} with ID ${t} not found` : `${e} not found`;
78
78
  super(n, "NOT_FOUND", {
@@ -87,11 +87,11 @@ var D = class extends i {
87
87
  getUserMessage(e) {
88
88
  return c(e)?.fromCode?.(this.code) || o(this.resourceType.toLowerCase());
89
89
  }
90
- }, O = {
90
+ }, D = {
91
91
  primary: "#0284fe",
92
92
  secondary: "#1d4ed8",
93
93
  tertiary: "#2563eb"
94
- }, k = {
94
+ }, O = {
95
95
  50: "#f9fafb",
96
96
  100: "#f3f4f6",
97
97
  200: "#e5e7eb",
@@ -102,31 +102,31 @@ var D = class extends i {
102
102
  700: "#374151",
103
103
  800: "#1f2937",
104
104
  900: "#111827"
105
- }, A = {
105
+ }, k = {
106
106
  text: {
107
- primary: k[900],
108
- secondary: k[500],
109
- muted: k[400],
107
+ primary: O[900],
108
+ secondary: O[500],
109
+ muted: O[400],
110
110
  inverted: "#ffffff"
111
111
  },
112
112
  background: {
113
113
  primary: "#ffffff",
114
- secondary: k[50],
115
- tertiary: k[100],
116
- dark: k[800],
117
- darker: k[900]
114
+ secondary: O[50],
115
+ tertiary: O[100],
116
+ dark: O[800],
117
+ darker: O[900]
118
118
  },
119
119
  border: {
120
- default: k[200],
121
- strong: k[300],
122
- muted: k[100],
120
+ default: O[200],
121
+ strong: O[300],
122
+ muted: O[100],
123
123
  light: "#e0e0e0"
124
124
  },
125
125
  success: "#16a34a",
126
126
  error: "#ef4444",
127
127
  warning: "#f59e0b",
128
128
  info: "#3b82f6"
129
- }, j = {
129
+ }, A = {
130
130
  blue: {
131
131
  200: "#bfdbfe",
132
132
  500: "#3b82f6",
@@ -177,19 +177,19 @@ var D = class extends i {
177
177
  300: "#ffeaa7"
178
178
  },
179
179
  coral: "#ff6b6b"
180
- }, ae = { defaultThemePrimary: "#7c3aed" }, oe = {
181
- blue: O.tertiary,
180
+ }, j = { defaultThemePrimary: "#7c3aed" }, oe = {
181
+ blue: D.tertiary,
182
182
  black: "#000000",
183
- darkGray: k[700],
183
+ darkGray: O[700],
184
184
  gray: "#666666",
185
- lightGray: k[400],
186
- white: A.background.primary,
185
+ lightGray: O[400],
186
+ white: k.background.primary,
187
187
  offWhite: "#fafafa",
188
- lightBorder: k[200],
188
+ lightBorder: O[200],
189
189
  border: "#cccccc",
190
- orange: A.warning,
191
- red: A.error,
192
- green: j.green[500]
190
+ orange: k.warning,
191
+ red: k.error,
192
+ green: A.green[500]
193
193
  }, M = e("VC");
194
194
  function se(e, t) {
195
195
  if (e === 404) return "Promo code isn't valid.";
@@ -202,7 +202,7 @@ async function ce(e, t) {
202
202
  valid: !1,
203
203
  error: "Promo code is required"
204
204
  };
205
- let n = encodeURIComponent(t.trim()), r = await h(`/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
208
  error: se(r.statusCode, r.error)
@@ -228,7 +228,7 @@ async function ce(e, t) {
228
228
  }
229
229
  async function le(e) {
230
230
  try {
231
- let t = await h(`/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
234
  return M.error("Error checking promo codes availability:", e), !0;
@@ -238,7 +238,7 @@ async function ue(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 g(`${p()}/cart/${e}/apply-promo`, r);
241
+ let i = await h(`${p()}/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"
@@ -289,7 +289,7 @@ async function H(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}`);
292
+ let r = await t(n ? `${g()}/events/${e}?password=${encodeURIComponent(n)}` : `${g()}/events/${e}`);
293
293
  if (!r.ok) return r.status === 404 ? F("event_not_found") : (B.error(`Failed to fetch event details: ${r.status}`), P("event_fetch_failed"));
294
294
  let i = await r.json();
295
295
  return i ? N(i) : F("event_not_found");
@@ -307,7 +307,7 @@ async function fe(e, t = fetch, n) {
307
307
  }
308
308
  async function U(e, t, n = (e) => e) {
309
309
  try {
310
- let r = await y(e);
310
+ let r = await f(e);
311
311
  return r ? N(n(r)) : (B.error(`Failed to load (${t}): network or server error`), P(t));
312
312
  } catch (e) {
313
313
  return B.error(`Error loading (${t}):`, e), P(t);
@@ -318,7 +318,7 @@ function pe(e) {
318
318
  }
319
319
  async function W(e, t) {
320
320
  let n = t?.trim(), r = n ? `?promoCode=${encodeURIComponent(n)}` : "";
321
- return U(`${m()}/tickets/event/${e}${r}`, "tickets_fetch_failed", pe);
321
+ return U(`${g()}/tickets/event/${e}${r}`, "tickets_fetch_failed", pe);
322
322
  }
323
323
  async function me(e, t) {
324
324
  return de(await W(e, t), []);
@@ -338,13 +338,13 @@ function K(e, t, n) {
338
338
  }), r;
339
339
  }
340
340
  async function ge(e, t, n, r) {
341
- return K(`${m()}/events/venue/${e}/month/${t}/${n}`, "month_events_fetch_failed", r);
341
+ return K(`${g()}/events/venue/${e}/month/${t}/${n}`, "month_events_fetch_failed", r);
342
342
  }
343
343
  async function _e(e, t, n, r) {
344
- return K(`${m()}/events/organization/${e}/month/${t}/${n}`, "org_month_events_fetch_failed", r);
344
+ return K(`${g()}/events/organization/${e}/month/${t}/${n}`, "org_month_events_fetch_failed", r);
345
345
  }
346
346
  async function ve(e, t) {
347
- return U(`${m()}/series/${e}/occurrences?venueId=${t}`, "series_cta_fetch_failed");
347
+ return U(`${g()}/series/${e}/occurrences?venueId=${t}`, "series_cta_fetch_failed");
348
348
  }
349
349
  async function ye(e, t) {
350
350
  let n = await ve(e, t);
@@ -352,8 +352,8 @@ async function ye(e, t) {
352
352
  }
353
353
  async function be(e, t) {
354
354
  try {
355
- let n = t ? `?slug=${encodeURIComponent(t)}` : "", r = await y(`${m()}/resolve/${encodeURIComponent(String(e))}${n}`);
356
- if (!r || !r.type) throw new D("entity", String(e));
355
+ let n = t ? `?slug=${encodeURIComponent(t)}` : "", r = await f(`${g()}/resolve/${encodeURIComponent(String(e))}${n}`);
356
+ if (!r || !r.type) throw new E("entity", String(e));
357
357
  return r;
358
358
  } catch (e) {
359
359
  return B.error("Error resolving public entity:", e), null;
@@ -361,8 +361,8 @@ async function be(e, t) {
361
361
  }
362
362
  async function xe(e, t) {
363
363
  try {
364
- let n = t ? `${m()}/collections/${e}?password=${encodeURIComponent(t)}` : `${m()}/collections/${e}`, r = await y(n);
365
- if (!r) throw new D("collection", String(e));
364
+ let n = t ? `${g()}/collections/${e}?password=${encodeURIComponent(t)}` : `${g()}/collections/${e}`, r = await f(n);
365
+ if (!r) throw new E("collection", String(e));
366
366
  return r;
367
367
  } catch (e) {
368
368
  return B.error("Error fetching collection:", e), null;
@@ -370,7 +370,7 @@ async function xe(e, t) {
370
370
  }
371
371
  async function Se(e, t) {
372
372
  try {
373
- let n = await y(`${m()}/events/${e}/check-password`, {
373
+ let n = await f(`${g()}/events/${e}/check-password`, {
374
374
  method: "POST",
375
375
  headers: { "Content-Type": "application/json" },
376
376
  body: JSON.stringify({ password: t })
@@ -383,12 +383,12 @@ async function Se(e, t) {
383
383
  //#endregion
384
384
  //#region src/lib/navigation.ts
385
385
  function Ce(e, t) {
386
- let n = f();
386
+ let n = _();
387
387
  return t ? `${n}/e/${e}-${t}` : `${n}/e/${e}`;
388
388
  }
389
389
  function we(e, t, n) {
390
390
  let r = n?.toString(), i = t ? `/e/${e}-${t}` : `/e/${e}`;
391
- return `${f()}${i}${r ? `?${r}` : ""}`;
391
+ return `${_()}${i}${r ? `?${r}` : ""}`;
392
392
  }
393
393
  var Te = "get-micdrop.com";
394
394
  function q(e) {
@@ -407,7 +407,7 @@ function Oe(e) {
407
407
  return `/${e}`;
408
408
  }
409
409
  function ke(e) {
410
- return `${f()}/${e}`;
410
+ return `${_()}/${e}`;
411
411
  }
412
412
  function J(e, t) {
413
413
  return `/${e}/${t}/checkout`;
@@ -427,7 +427,7 @@ var Y = e("VC");
427
427
  async function Me(e) {
428
428
  try {
429
429
  if (!e) return Y.warn("getVenue called without venueId"), null;
430
- let t = await h(`/venues/${e}`);
430
+ let t = await m(`/venues/${e}`);
431
431
  return t.success ? t.data ?? null : (Y.error(`Failed to fetch venue: ${t.statusCode}`), null);
432
432
  } catch (e) {
433
433
  return Y.error("Error fetching venue:", e), null;
@@ -437,7 +437,7 @@ async function Ne(e) {
437
437
  let t = q(e);
438
438
  if (!t) return !1;
439
439
  try {
440
- let e = await h(`/sites/by-host/${encodeURIComponent(new URL(t).host)}`);
440
+ let e = await m(`/sites/by-host/${encodeURIComponent(new URL(t).host)}`);
441
441
  return !!(e.success && e.data);
442
442
  } catch (e) {
443
443
  return Y.warn("hasPublishedSite failed:", e), !1;
@@ -476,7 +476,7 @@ function Z(e) {
476
476
  var Q = e("VC");
477
477
  async function Ie(e, t) {
478
478
  try {
479
- let n = await g(`${p()}/cart/${e}/apply-gift-card`, { giftCardCode: t });
479
+ let n = await h(`${p()}/cart/${e}/apply-gift-card`, { giftCardCode: t });
480
480
  if (!n.success) return n.statusCode === 429 ? {
481
481
  valid: !1,
482
482
  error: "Too many attempts. Please wait a moment and try again."
@@ -495,7 +495,7 @@ async function Ie(e, t) {
495
495
  }
496
496
  async function Le(e, t) {
497
497
  try {
498
- let n = t?.giftCardId ? { giftCardId: t.giftCardId } : t?.code ? { giftCardCode: t.code } : null, r = await v(`${p()}/cart/${e}/gift-card`, n ? { body: JSON.stringify(n) } : void 0);
498
+ let n = t?.giftCardId ? { giftCardId: t.giftCardId } : t?.code ? { giftCardCode: t.code } : null, r = await ee(`${p()}/cart/${e}/gift-card`, n ? { body: JSON.stringify(n) } : void 0);
499
499
  if (!r.success) return Q.error("Remove gift card failed:", r.error), {
500
500
  success: !1,
501
501
  error: r.error || "Failed to remove gift card"
@@ -513,9 +513,9 @@ async function Le(e, t) {
513
513
  }
514
514
  }
515
515
  async function Re(e, n, r) {
516
- let i = _(r);
516
+ let i = ne(r);
517
517
  try {
518
- let r = await g(`${p()}/cart/${e}/complete-gift-card-payment`, {
518
+ let r = await h(`${p()}/cart/${e}/complete-gift-card-payment`, {
519
519
  customerName: t(n.firstName, n.lastName),
520
520
  customerEmail: n.email,
521
521
  firstName: n.firstName,
@@ -524,7 +524,7 @@ async function Re(e, n, r) {
524
524
  phoneNumber: n.phoneNumber || null,
525
525
  questionAnswer: n.questionAnswer || "",
526
526
  mailingList: n.mailingList || !1,
527
- attribution: ee(),
527
+ attribution: te(),
528
528
  ...i ? { locale: i } : {}
529
529
  });
530
530
  return r.success ? {
@@ -549,7 +549,7 @@ async function ze(e, t, n = null, r = !1) {
549
549
  try {
550
550
  let i = { email: t };
551
551
  n && r && (i.phone = n, i.smsOptIn = !0);
552
- let a = await g(`/events/${e}/waitlist`, i);
552
+ let a = await h(`/events/${e}/waitlist`, i);
553
553
  return a.success ? {
554
554
  success: !0,
555
555
  updated: a.data?.updated,
@@ -567,7 +567,7 @@ async function ze(e, t, n = null, r = !1) {
567
567
  }
568
568
  async function Be(e, t) {
569
569
  try {
570
- let n = await g(`/checkout/validate-token/${e}`, { email: t });
570
+ let n = await h(`/checkout/validate-token/${e}`, { email: t });
571
571
  return n.success ? {
572
572
  valid: !0,
573
573
  eventId: n.data?.eventId ?? 0,
@@ -587,7 +587,7 @@ async function Be(e, t) {
587
587
  }
588
588
  async function Ve(e, t) {
589
589
  try {
590
- let n = await g(`/waitlist/requeue/${e}`, { email: t });
590
+ let n = await h(`/waitlist/requeue/${e}`, { email: t });
591
591
  return n.success ? { success: !0 } : {
592
592
  success: !1,
593
593
  errorCode: n.error
@@ -606,7 +606,7 @@ async function He(e) {
606
606
  gated: !1
607
607
  };
608
608
  try {
609
- let n = await h(`/events/${e}/waitlist/status`);
609
+ let n = await m(`/events/${e}/waitlist/status`);
610
610
  return n.success ? {
611
611
  waitlistEnabled: !!n.data?.waitlistEnabled,
612
612
  soldOut: !!n.data?.soldOut,
@@ -621,4 +621,4 @@ function Ue(e) {
621
621
  return e >= 3600 ? `${Math.floor(e / 3600)}:${String(Math.floor(e % 3600 / 60)).padStart(2, "0")}:${t}` : `${Math.floor(e / 60)}:${t}`;
622
622
  }
623
623
  //#endregion
624
- export { le as A, te as B, W as C, _e as D, ge as E, A as F, T as H, oe as I, ie as L, j as M, ae as N, be as O, k as P, E as R, me as S, ye as T, ne as U, w as V, De as _, Be as a, Se as b, Le as c, je as d, J as f, Ce as g, we as h, Ve as i, ce as j, ue as k, Me as l, Oe as m, He as n, Ie as o, ke as p, ze as r, Re as s, Ue as t, Ne as u, Ee as v, xe as w, fe as x, Ae as y, x as z };
624
+ export { le as A, w as B, W as C, _e as D, ge as E, k as F, C as H, oe as I, ae as L, A as M, j as N, be as O, O as P, T as R, me as S, ye as T, re as U, S as V, De as _, Be as a, Se as b, Le as c, je as d, J as f, Ce as g, we as h, Ve as i, ce as j, ue as k, Me as l, Oe as m, He as n, Ie as o, ke as p, ze as r, Re as s, Ue as t, Ne as u, Ee as v, xe as w, fe as x, Ae as y, y as z };
@@ -1,4 +1,4 @@
1
- import { F as e, M as t, N as n, P as r } from "./api-D0rw6nGg.js";
1
+ import { F as e, M as t, N as n, P as r } from "./api-DDVVRbC-.js";
2
2
  //#region src/lib/core/theme-engine.js
3
3
  var i = {
4
4
  primary: n.defaultThemePrimary,
@@ -1,4 +1,4 @@
1
- import { q as e } from "./scarcity-CwnIxi1J.js";
1
+ import { q as e } from "./scarcity-DqbDh1cS.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
@@ -337,8 +337,6 @@ var e = {
337
337
  cardDeclinedSuggestion: "Bitte versuche eine andere Karte oder wende dich für weitere Informationen an deine Bank",
338
338
  cardDoNotHonorMessage: "Deine Bank hat diese Karte abgelehnt",
339
339
  cardDoNotHonorSuggestion: "Versuche eine andere Karte oder ruf deine Bank an",
340
- cardFraudMessage: "Deine Bank hat diese Zahlung markiert",
341
- cardFraudSuggestion: "Versuche eine andere Karte",
342
340
  paymentConnectionErrorMessage: "Keine Verbindung zum Zahlungsserver möglich",
343
341
  paymentConnectionErrorSuggestion: "Bitte prüfe deine Internetverbindung und versuche es erneut",
344
342
  tooManyAttemptsTitle: "Zu viele Versuche",
@@ -520,7 +518,27 @@ var e = {
520
518
  opensInGoogleMaps: "(wird in Google Maps geöffnet)",
521
519
  purchaseGiftCard: "Gutschein kaufen",
522
520
  giftDetails: "Geschenkdetails",
523
- continueToPayment: "Weiter zur Zahlung"
521
+ continueToPayment: "Weiter zur Zahlung",
522
+ giftCardForVenue: "für {venue}",
523
+ giftCardYourInformation: "Deine Angaben",
524
+ giftCardYourName: "Dein Name",
525
+ giftCardYourNamePlaceholder: "Namen eingeben",
526
+ giftCardYourNameRequired: "Bitte gib deinen Namen ein",
527
+ giftCardYourEmail: "Deine E-Mail-Adresse",
528
+ giftCardYourEmailPlaceholder: "E-Mail-Adresse eingeben",
529
+ giftCardYourEmailRequired: "Bitte gib deine E-Mail-Adresse ein",
530
+ giftCardConfirmationEmailHelp: "Die Bestätigung wird an diese E-Mail-Adresse gesendet",
531
+ giftCardCreatePurchaseFailed: "Kauf konnte nicht erstellt werden. Bitte versuche es erneut",
532
+ giftCardOrderSummary: "Bestellübersicht",
533
+ giftCardAmount: "Gutscheinbetrag",
534
+ giftCardRecipient: "Empfänger",
535
+ giftCardDelivery: "Zustellung",
536
+ giftCardDeliveryScheduled: "Geplant",
537
+ giftCardDeliveryImmediate: "Sofort",
538
+ giftCardPaymentDetails: "Zahlungsdetails",
539
+ giftCardBack: "Zurück",
540
+ giftCardPayAmount: "{amount} bezahlen",
541
+ giftCardPaymentFailed: "Zahlung fehlgeschlagen. Bitte versuche es erneut"
524
542
  };
525
543
  //#endregion
526
544
  export { e as de };
@@ -2211,6 +2211,26 @@ var In = {
2211
2211
  purchaseGiftCard: "Purchase a gift card",
2212
2212
  giftDetails: "Gift details",
2213
2213
  continueToPayment: "Continue to payment",
2214
+ giftCardForVenue: "for {venue}",
2215
+ giftCardYourInformation: "Your information",
2216
+ giftCardYourName: "Your name",
2217
+ giftCardYourNamePlaceholder: "Enter your name",
2218
+ giftCardYourNameRequired: "Your name is required",
2219
+ giftCardYourEmail: "Your email",
2220
+ giftCardYourEmailPlaceholder: "Enter your email",
2221
+ giftCardYourEmailRequired: "Your email is required",
2222
+ giftCardConfirmationEmailHelp: "Confirmation will be sent to this email",
2223
+ giftCardCreatePurchaseFailed: "Failed to create purchase. Please try again",
2224
+ giftCardOrderSummary: "Order summary",
2225
+ giftCardAmount: "Gift card amount",
2226
+ giftCardRecipient: "Recipient",
2227
+ giftCardDelivery: "Delivery",
2228
+ giftCardDeliveryScheduled: "Scheduled",
2229
+ giftCardDeliveryImmediate: "Immediate",
2230
+ giftCardPaymentDetails: "Payment details",
2231
+ giftCardBack: "Back",
2232
+ giftCardPayAmount: "Pay {amount}",
2233
+ giftCardPaymentFailed: "Payment failed. Please try again",
2214
2234
  datePickerToday: "Today",
2215
2235
  datePickerClear: "Clear",
2216
2236
  pastDatesNotAvailable: "Past dates are not available",
@@ -2469,8 +2489,6 @@ var In = {
2469
2489
  cardDeclinedSuggestion: "Please try a different card or contact your bank for more information",
2470
2490
  cardDoNotHonorMessage: "Your bank declined this card",
2471
2491
  cardDoNotHonorSuggestion: "Try another card or call your bank",
2472
- cardFraudMessage: "Your bank flagged this payment",
2473
- cardFraudSuggestion: "Try another card",
2474
2492
  paymentConnectionErrorMessage: "We couldn't connect to the payment server",
2475
2493
  paymentConnectionErrorSuggestion: "Please check your internet connection and try again",
2476
2494
  tooManyAttemptsTitle: "Too many attempts",
@@ -1,6 +1,6 @@
1
1
  import { n as e } from "./rolldown-runtime-DtPi1Y-2.js";
2
- import { C as t, f as n, p as r, u as i } from "./defaultLabels-Zp9QbN37.js";
3
- import { L as a } from "./orders-jQz7QFjK.js";
2
+ import { C as t, f as n, p as r, u as i } from "./defaultLabels-BkjXKQDd.js";
3
+ import { R as a } from "./orders-DABdaHOy.js";
4
4
  import { t as o } from "./browser-DxdP6IWt.js";
5
5
  //#region src/lib/view-tickets/defaults.ts
6
6
  var s = /* @__PURE__ */ e(o(), 1);
@@ -338,8 +338,6 @@ var e = {
338
338
  cardDeclinedSuggestion: "Prueba con otra tarjeta o contacta con tu banco para más información",
339
339
  cardDoNotHonorMessage: "Tu banco rechazó esta tarjeta",
340
340
  cardDoNotHonorSuggestion: "Prueba con otra tarjeta o llama a tu banco",
341
- cardFraudMessage: "Tu banco marcó este pago",
342
- cardFraudSuggestion: "Prueba con otra tarjeta",
343
341
  paymentConnectionErrorMessage: "No pudimos conectarnos con el servidor de pago",
344
342
  paymentConnectionErrorSuggestion: "Comprueba tu conexión a internet e inténtalo de nuevo",
345
343
  tooManyAttemptsTitle: "Demasiados intentos",
@@ -520,7 +518,27 @@ var e = {
520
518
  opensInGoogleMaps: "(se abre en Google Maps)",
521
519
  purchaseGiftCard: "Comprar tarjeta de regalo",
522
520
  giftDetails: "Detalles del regalo",
523
- continueToPayment: "Continuar al pago"
521
+ continueToPayment: "Continuar al pago",
522
+ giftCardForVenue: "para {venue}",
523
+ giftCardYourInformation: "Tus datos",
524
+ giftCardYourName: "Tu nombre",
525
+ giftCardYourNamePlaceholder: "Escribe tu nombre",
526
+ giftCardYourNameRequired: "Tu nombre es obligatorio",
527
+ giftCardYourEmail: "Tu correo electrónico",
528
+ giftCardYourEmailPlaceholder: "Escribe tu correo electrónico",
529
+ giftCardYourEmailRequired: "El correo electrónico es obligatorio",
530
+ giftCardConfirmationEmailHelp: "Enviaremos la confirmación a este correo",
531
+ giftCardCreatePurchaseFailed: "No se pudo procesar la compra. Inténtalo de nuevo",
532
+ giftCardOrderSummary: "Resumen de la compra",
533
+ giftCardAmount: "Importe de la tarjeta de regalo",
534
+ giftCardRecipient: "Destinatario",
535
+ giftCardDelivery: "Entrega",
536
+ giftCardDeliveryScheduled: "Programada",
537
+ giftCardDeliveryImmediate: "Inmediata",
538
+ giftCardPaymentDetails: "Datos de pago",
539
+ giftCardBack: "Volver",
540
+ giftCardPayAmount: "Pagar {amount}",
541
+ giftCardPaymentFailed: "El pago no se pudo procesar. Inténtalo de nuevo"
524
542
  };
525
543
  //#endregion
526
544
  export { e as es };
@@ -1,4 +1,4 @@
1
- import { x as e } from "./defaultLabels-Zp9QbN37.js";
1
+ import { x as e } from "./defaultLabels-BkjXKQDd.js";
2
2
  //#region node_modules/@getmicdrop/svelte-components/dist/utils/imageUrl.js
3
3
  function t(e, t) {
4
4
  if (typeof e == "string") return e;
@@ -1,7 +1,7 @@
1
- import { d as e, f as t, i as n, l as r, s as i } from "./scarcity-CwnIxi1J.js";
2
- import { C as a } from "./defaultLabels-Zp9QbN37.js";
3
- import { n as o, t as s } from "./event-c9mHeEJz.js";
4
- import { B as c, H as l, L as u, P as d, U as f, V as p } from "./api-D0rw6nGg.js";
1
+ import { d as e, f as t, i as n, l as r, s as i } from "./scarcity-DqbDh1cS.js";
2
+ import { C as a } from "./defaultLabels-BkjXKQDd.js";
3
+ import { n as o, t as s } from "./event-Dew6DCL7.js";
4
+ import { B as c, H as l, L as u, P as d, U as f, V as p } from "./api-DDVVRbC-.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="${d[200]}"/>
@@ -1,5 +1,5 @@
1
1
  import { E as e } from "./Button-klwKgfhG.js";
2
- import { L as t, U as n } from "./orders-jQz7QFjK.js";
2
+ import { R as t, W as n } from "./orders-DABdaHOy.js";
3
3
  //#region src/lib/public-calendar-flow/eventStatusStream.ts
4
4
  var r = e("VC"), i = /* @__PURE__ */ new Set([
5
5
  "canceled",
@@ -337,8 +337,6 @@ var e = {
337
337
  cardDeclinedSuggestion: "Veuillez essayer une autre carte ou contacter votre banque pour plus d'informations",
338
338
  cardDoNotHonorMessage: "Votre banque a refusé cette carte",
339
339
  cardDoNotHonorSuggestion: "Essayez une autre carte ou appelez votre banque",
340
- cardFraudMessage: "Votre banque a signalé ce paiement",
341
- cardFraudSuggestion: "Essayez une autre carte",
342
340
  paymentConnectionErrorMessage: "Impossible de se connecter au serveur de paiement",
343
341
  paymentConnectionErrorSuggestion: "Veuillez vérifier votre connexion internet et réessayer",
344
342
  tooManyAttemptsTitle: "Trop de tentatives",
@@ -520,7 +518,27 @@ var e = {
520
518
  opensInGoogleMaps: "(s'ouvre dans Google Maps)",
521
519
  purchaseGiftCard: "Acheter une carte cadeau",
522
520
  giftDetails: "Détails du cadeau",
523
- continueToPayment: "Continuer vers le paiement"
521
+ continueToPayment: "Continuer vers le paiement",
522
+ giftCardForVenue: "pour {venue}",
523
+ giftCardYourInformation: "Vos informations",
524
+ giftCardYourName: "Votre nom",
525
+ giftCardYourNamePlaceholder: "Entrez votre nom",
526
+ giftCardYourNameRequired: "Votre nom est requis",
527
+ giftCardYourEmail: "Votre e-mail",
528
+ giftCardYourEmailPlaceholder: "Entrez votre e-mail",
529
+ giftCardYourEmailRequired: "Votre e-mail est requis",
530
+ giftCardConfirmationEmailHelp: "La confirmation sera envoyée à cette adresse",
531
+ giftCardCreatePurchaseFailed: "Échec de la commande. Veuillez réessayer",
532
+ giftCardOrderSummary: "Récapitulatif de la commande",
533
+ giftCardAmount: "Montant de la carte cadeau",
534
+ giftCardRecipient: "Destinataire",
535
+ giftCardDelivery: "Envoi",
536
+ giftCardDeliveryScheduled: "Programmé",
537
+ giftCardDeliveryImmediate: "Immédiat",
538
+ giftCardPaymentDetails: "Détails du paiement",
539
+ giftCardBack: "Retour",
540
+ giftCardPayAmount: "Payer {amount}",
541
+ giftCardPaymentFailed: "Échec du paiement. Veuillez réessayer"
524
542
  };
525
543
  //#endregion
526
544
  export { e as fr };
@@ -1,6 +1,6 @@
1
1
  import { S as e } from "./Button-klwKgfhG.js";
2
- import { q as t } from "./scarcity-CwnIxi1J.js";
3
- import { U as n } from "./defaultLabels-Zp9QbN37.js";
2
+ import { q as t } from "./scarcity-DqbDh1cS.js";
3
+ import { U as n } from "./defaultLabels-BkjXKQDd.js";
4
4
  import "svelte/internal/disclose-version";
5
5
  import * as r from "svelte/internal/client";
6
6
  //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/CheckCircleIcon.svelte
@@ -0,0 +1,28 @@
1
+ import { t as e } from "./defaultLabels-BkjXKQDd.js";
2
+ import { l as t } from "./orders-DABdaHOy.js";
3
+ //#endregion
4
+ //#region src/lib/i18n/index.js
5
+ var n = t({
6
+ defaults: e,
7
+ locales: { en: e },
8
+ loaders: {
9
+ es: () => import("./es-CHuPO3ex.js").then((e) => e.es),
10
+ fr: () => import("./fr-Ctu5i20f.js").then((e) => e.fr),
11
+ "pt-br": () => import("./pt-br-CTMA1wMi.js").then((e) => e.pt_br),
12
+ pt: () => import("./pt-br-CTMA1wMi.js").then((e) => e.pt_br),
13
+ de: () => import("./de-DD9e2eok.js").then((e) => e.de),
14
+ ja: () => import("./ja-CNSRW1XM.js").then((e) => e.ja),
15
+ zh: () => import("./zh-Bcr7RKpt.js").then((e) => e.zh),
16
+ ko: () => import("./ko--itQbcHD.js").then((e) => e.ko),
17
+ it: () => import("./it-DPWCuCsJ.js").then((e) => e.it),
18
+ nl: () => import("./nl-BoZA1-rw.js").then((e) => e.nl),
19
+ tr: () => import("./tr-CuaYXuAQ.js").then((e) => e.tr),
20
+ id: () => import("./id-DKYW7qEJ.js").then((e) => e.id),
21
+ pl: () => import("./pl-tC8ayoR2.js").then((e) => e.pl)
22
+ }
23
+ });
24
+ n.resolveLocale;
25
+ var r = n.getLabelsForLocale, i = n.loadLocale;
26
+ n.listLocales;
27
+ //#endregion
28
+ export { i as n, r as t };