@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,6 +1,6 @@
1
1
  import { E as e } from "./Button-klwKgfhG.js";
2
- import { A as t, J as n, L as r, M as i, N as a, Q as o, X as s, et as c } from "./orders-jQz7QFjK.js";
3
- import "./event-transform-D0mzpOzE.js";
2
+ import { $ as t, N as n, P as r, R as i, Y as a, Z as o, j as s, tt as c } from "./orders-DABdaHOy.js";
3
+ import "./event-transform-CbFR1hRl.js";
4
4
  //#region node_modules/js-cookie/dist/js.cookie.mjs
5
5
  function l(e) {
6
6
  for (var t = 1; t < arguments.length; t++) {
@@ -82,19 +82,19 @@ function E() {
82
82
  };
83
83
  }
84
84
  function D(e) {
85
- let t = {}, r = {}, i = [], a = "", c = 0, l = {};
85
+ let n = {}, r = {}, i = [], s = "", c = 0, l = {};
86
86
  if (typeof window > "u") return {
87
- quantities: t,
87
+ quantities: n,
88
88
  donationAmounts: r,
89
89
  addOnQuantities: l,
90
- promocode: a,
90
+ promocode: s,
91
91
  promoDiscountAmount: c,
92
92
  tickets: i
93
93
  };
94
- let u = n(y(e), null);
94
+ let u = a(y(e), null);
95
95
  if (!u) {
96
- let t = n(b(e), null);
97
- t && (u = t, o(y(e), t), s(b(e)));
96
+ let n = a(b(e), null);
97
+ n && (u = n, t(y(e), n), o(b(e)));
98
98
  }
99
99
  if (u) return {
100
100
  quantities: u.quantities || {},
@@ -105,27 +105,27 @@ function D(e) {
105
105
  tickets: u.tickets || []
106
106
  };
107
107
  try {
108
- t = JSON.parse(m(`checkout-quantities-${e}`) || "{}");
108
+ n = JSON.parse(m(`checkout-quantities-${e}`) || "{}");
109
109
  } catch (e) {
110
- g.warn("Failed to parse checkout quantities cookie:", e), t = {};
110
+ g.warn("Failed to parse checkout quantities cookie:", e), n = {};
111
111
  }
112
112
  try {
113
113
  i = JSON.parse(m(`checkout-tickets-${e}`) || "[]");
114
114
  } catch (e) {
115
115
  g.warn("Failed to parse checkout tickets cookie:", e), i = [];
116
116
  }
117
- return a = m(`checkout-promocode-${e}`) || "", c = parseFloat(m(`checkout-promo-discount-${e}`) || "0"), (Object.keys(t).length > 0 || i.length > 0 || a) && (A({
117
+ return s = m(`checkout-promocode-${e}`) || "", c = parseFloat(m(`checkout-promo-discount-${e}`) || "0"), (Object.keys(n).length > 0 || i.length > 0 || s) && (A({
118
118
  eventID: e,
119
- quantities: t,
119
+ quantities: n,
120
120
  donationAmounts: r,
121
- promocode: a,
121
+ promocode: s,
122
122
  promoDiscountAmount: c,
123
123
  tickets: i
124
124
  }), O(e)), {
125
- quantities: t,
125
+ quantities: n,
126
126
  donationAmounts: r,
127
127
  addOnQuantities: l,
128
- promocode: a,
128
+ promocode: s,
129
129
  promoDiscountAmount: c,
130
130
  tickets: i
131
131
  };
@@ -134,9 +134,9 @@ function O(e) {
134
134
  h(`checkout-quantities-${e}`), h(`checkout-tickets-${e}`), h(`checkout-promocode-${e}`), h(`checkout-promo-discount-${e}`);
135
135
  }
136
136
  function k(e) {
137
- s(y(e)), s(b(e)), O(e), h(`checkout-promo-discount-type-${e}`), h(`checkout-promo-reveal-${e}`), h(`checkout-promo-reveal-ids-${e}`), h(`checkout-promo-ticket-ids-${e}`);
137
+ o(y(e)), o(b(e)), O(e), h(`checkout-promo-discount-type-${e}`), h(`checkout-promo-reveal-${e}`), h(`checkout-promo-reveal-ids-${e}`), h(`checkout-promo-ticket-ids-${e}`);
138
138
  }
139
- function A({ eventID: e, quantities: t, donationAmounts: n, addOnQuantities: r, promocode: i, promoDiscountAmount: a, tickets: s }) {
139
+ function A({ eventID: e, quantities: n, donationAmounts: r, addOnQuantities: i, promocode: a, promoDiscountAmount: o, tickets: s }) {
140
140
  if (typeof window > "u") return;
141
141
  let c = (s || []).map((e) => ({
142
142
  ID: e.ID,
@@ -146,30 +146,30 @@ function A({ eventID: e, quantities: t, donationAmounts: n, addOnQuantities: r,
146
146
  visibility: e.visibility,
147
147
  salesChannel: e.salesChannel
148
148
  })), l = {
149
- quantities: t || {},
150
- donationAmounts: n || {},
151
- addOnQuantities: r || {},
152
- promocode: i || "",
153
- promoDiscountAmount: a || 0,
149
+ quantities: n || {},
150
+ donationAmounts: r || {},
151
+ addOnQuantities: i || {},
152
+ promocode: a || "",
153
+ promoDiscountAmount: o || 0,
154
154
  tickets: c,
155
155
  updatedAt: Date.now()
156
156
  };
157
- o(y(e), l);
157
+ t(y(e), l);
158
158
  }
159
159
  function j(e) {
160
160
  if (!e) return null;
161
- let t = n(x(e), null);
162
- if (t != null) return P(t);
163
- let r = n(S(e), null);
161
+ let n = a(x(e), null);
162
+ if (n != null) return P(n);
163
+ let r = a(S(e), null);
164
164
  if (r == null) return null;
165
165
  let i = P(r);
166
- return i != null && (o(x(e), i), s(S(e))), i;
166
+ return i != null && (t(x(e), i), o(S(e))), i;
167
167
  }
168
- function M(e, t) {
169
- !e || !Number.isFinite(t) || o(x(e), t);
168
+ function M(e, n) {
169
+ !e || !Number.isFinite(n) || t(x(e), n);
170
170
  }
171
171
  function N(e) {
172
- e && (s(x(e)), s(S(e)));
172
+ e && (o(x(e)), o(S(e)));
173
173
  }
174
174
  function P(e) {
175
175
  let t = typeof e == "number" ? e : parseInt(e, 10);
@@ -187,13 +187,13 @@ async function te(e) {
187
187
  }
188
188
  var F = (e) => _(`queue-token-${e}`);
189
189
  function I(e) {
190
- return n(F(e), null);
190
+ return a(F(e), null);
191
191
  }
192
- function L(e, t) {
193
- t && o(F(e), t);
192
+ function L(e, n) {
193
+ n && t(F(e), n);
194
194
  }
195
195
  function R(e) {
196
- s(F(e));
196
+ o(F(e));
197
197
  }
198
198
  //#endregion
199
199
  //#region src/lib/api/surge-queue.ts
@@ -229,7 +229,7 @@ function J(e) {
229
229
  }
230
230
  async function Y(e) {
231
231
  try {
232
- let t = await i(`/events/${e}/queue`);
232
+ let t = await n(`/events/${e}/queue`);
233
233
  return t.success ? {
234
234
  armed: t.data?.armed === !0,
235
235
  mode: G(t.data?.mode),
@@ -242,7 +242,7 @@ async function Y(e) {
242
242
  }
243
243
  async function X(e) {
244
244
  try {
245
- let t = await a(`/events/${e}/queue/join`, {});
245
+ let t = await r(`/events/${e}/queue/join`, {});
246
246
  if (!t.success) return {
247
247
  success: !1,
248
248
  errorCode: t.errorCode || "queue_unavailable",
@@ -271,21 +271,21 @@ async function Z(e, t) {
271
271
  errorCode: B
272
272
  };
273
273
  try {
274
- let n = await i(`/events/${e}/queue/status?token=${encodeURIComponent(t)}`);
275
- if (!n.success) return {
274
+ let r = await n(`/events/${e}/queue/status?token=${encodeURIComponent(t)}`);
275
+ if (!r.success) return {
276
276
  success: !1,
277
- errorCode: n.errorCode || "queue_unavailable",
278
- statusCode: n.statusCode
277
+ errorCode: r.errorCode || "queue_unavailable",
278
+ statusCode: r.statusCode
279
279
  };
280
- let r = J(n.data);
281
- return r ? {
280
+ let i = J(r.data);
281
+ return i ? {
282
282
  success: !0,
283
- entry: r,
284
- statusCode: n.statusCode
283
+ entry: i,
284
+ statusCode: r.statusCode
285
285
  } : {
286
286
  success: !1,
287
287
  errorCode: B,
288
- statusCode: n.statusCode
288
+ statusCode: r.statusCode
289
289
  };
290
290
  } catch (e) {
291
291
  return z.error("getQueueStatus error:", e), {
@@ -297,7 +297,7 @@ async function Z(e, t) {
297
297
  async function ne(e, t) {
298
298
  if (!t) return { released: !1 };
299
299
  try {
300
- return { released: (await a(`/events/${e}/queue/leave`, { token: t }, {
300
+ return { released: (await r(`/events/${e}/queue/leave`, { token: t }, {
301
301
  keepalive: !0,
302
302
  suppressOnError: !0
303
303
  })).data?.released === !0 };
@@ -330,7 +330,7 @@ async function ae() {
330
330
  }
331
331
  async function oe(e) {
332
332
  try {
333
- let t = await i(`/venues/${e}`);
333
+ let t = await n(`/venues/${e}`);
334
334
  if (!t.success) throw new c(t.error ?? `API error: ${t.statusCode}`, t.statusCode ?? 0, {
335
335
  endpoint: `/venues/${e}`,
336
336
  method: "GET"
@@ -342,13 +342,13 @@ async function oe(e) {
342
342
  }
343
343
  async function $(e = {}, t) {
344
344
  try {
345
- let n = await ae(), { eventID: r, quantities: i, donationAmounts: o, ...s } = e, c = i ? Object.fromEntries(Object.entries(i).map(([e, t]) => [parseInt(e, 10), t])) : {}, l = o ? Object.fromEntries(Object.entries(o).filter(([, e]) => parseFloat(String(e)) > 0).map(([e, t]) => [parseInt(e, 10), parseFloat(String(t))])) : void 0, u = {
345
+ let n = await ae(), { eventID: i, quantities: a, donationAmounts: o, ...s } = e, c = a ? Object.fromEntries(Object.entries(a).map(([e, t]) => [parseInt(e, 10), t])) : {}, l = o ? Object.fromEntries(Object.entries(o).filter(([, e]) => parseFloat(String(e)) > 0).map(([e, t]) => [parseInt(e, 10), parseFloat(String(t))])) : void 0, u = {
346
346
  purchaserIP: n,
347
- eventID: r ? parseInt(String(r), 10) : void 0,
347
+ eventID: i ? parseInt(String(i), 10) : void 0,
348
348
  quantities: c,
349
349
  ...l && Object.keys(l).length > 0 ? { donationAmounts: l } : {},
350
350
  ...s
351
- }, d = await a("/orders/create", u, t ? { headers: { "X-Queue-Token": t } } : void 0), f = d.data ?? {};
351
+ }, d = await r("/orders/create", u, t ? { headers: { "X-Queue-Token": t } } : void 0), f = d.data ?? {};
352
352
  if (!d.success || f.error) {
353
353
  let e = re(f.error) || (typeof f.message == "string" ? f.message : "") || d.error || "Order creation failed";
354
354
  if ((d.errorCode || ie(f.error)) === "QUEUE_REQUIRED") return {
@@ -380,7 +380,7 @@ async function $(e = {}, t) {
380
380
  }
381
381
  async function se(e) {
382
382
  try {
383
- let t = await i(`/orders/${e}`);
383
+ let t = await n(`/orders/${e}`);
384
384
  if (!t.success) {
385
385
  let n = t.error ?? `Failed to fetch order (${t.statusCode})`;
386
386
  throw Q.error("getOrder error response:", n), new c(n, t.statusCode ?? 0, {
@@ -397,9 +397,9 @@ async function se(e) {
397
397
  //#region src/lib/utils/utm.ts
398
398
  var ce = e("utm");
399
399
  async function le(e) {
400
- let n = new URLSearchParams(window.location.search), i = t(n.get("utm_source")) || "direct";
400
+ let t = new URLSearchParams(window.location.search), n = s(t.get("utm_source")) || "direct";
401
401
  try {
402
- await fetch(`${r()}/utm/${e}/${encodeURIComponent(i)}`);
402
+ await fetch(`${i()}/utm/${e}/${encodeURIComponent(n)}`);
403
403
  } catch (e) {
404
404
  ce.error("UTM tracking failed:", e);
405
405
  }