@getmicdrop/venue-calendar 4.3.55 → 4.3.57

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 (85) hide show
  1. package/dist/{CalendarFoundryView-BLHPU4ry.js → CalendarFoundryView-DKZpskoX.js} +1535 -1466
  2. package/dist/{CartView-DTXoQTOC.js → CartView-Dz3Pet0D.js} +14 -14
  3. package/dist/Checkout-Bqe1P7Jr.js +1849 -0
  4. package/dist/{Checkout-B8ZkBxF_.js → Checkout-CFv2AX68.js} +363 -346
  5. package/dist/{CheckoutTimer-CyN-mQCP.js → CheckoutTimer-Ch4McYLj.js} +1 -1
  6. package/dist/{CollectionView-CkKwCXQj.js → CollectionView-BBRXKR7L.js} +3 -3
  7. package/dist/{Event-BfWRG4dm.js → Event-lTxMeEFL.js} +6 -6
  8. package/dist/{EventPage-dCTHvk7P.js → EventPage-Cqkelq-1.js} +10 -10
  9. package/dist/{RecommendationsRail-DPxl9JCm.js → RecommendationsRail-BAdqxvuS.js} +5 -5
  10. package/dist/{SeriesPage-B7z1yoAK.js → SeriesPage-iAbX0ZTM.js} +2 -2
  11. package/dist/Spinner-6QTo7mi8.js +19 -0
  12. package/dist/{Success-BzuOliUV.js → Success-B2T0Pbuw.js} +22 -22
  13. package/dist/{ViewTicketsEmbed-BE8iTUF9.js → ViewTicketsEmbed-D8SEO2Zw.js} +4 -4
  14. package/dist/api/api.cjs +1 -1
  15. package/dist/api/api.mjs +194 -178
  16. package/dist/api/index.d.ts +2 -2
  17. package/dist/api/orders.d.ts +48 -0
  18. package/dist/api/transformers/venue.d.ts +14 -1
  19. package/dist/{api-BsBSvoNj.js → api-DMjowaFJ.js} +26 -26
  20. package/dist/{constants-CJyMUKEX.js → constants-DC0xZ-Ja.js} +1 -0
  21. package/dist/{de-CFh1o4IO.js → de-DWVo-yVF.js} +1 -0
  22. package/dist/{defaults-BHXY6s4i.js → defaults-C6to4-1V.js} +1 -1
  23. package/dist/{es-By1tBWcL.js → es-D2JTgwLx.js} +1 -0
  24. package/dist/{event-transform-oLpmof1H.js → event-transform-BF1WYBSP.js} +1 -1
  25. package/dist/{eventStatusStream-BIxriEut.js → eventStatusStream-8vyVag0u.js} +5 -5
  26. package/dist/{fr-BF6a7cw7.js → fr-kMyKMhNC.js} +1 -0
  27. package/dist/{i18n-8EWq-WHv.js → i18n-jISDKw5F.js} +1 -1
  28. package/dist/{i18n-JpkI3lvS.js → i18n-toTFR5-t.js} +16 -16
  29. package/dist/{id-Lo_q281j.js → id-ePSZ9pc6.js} +1 -0
  30. package/dist/{it-CQcRIzL4.js → it-CBG5vN1f.js} +1 -0
  31. package/dist/{ja-DOzvvYpK.js → ja-BEOrhLFG.js} +1 -0
  32. package/dist/{ko-b-vWxFpt.js → ko-D8x_4jV4.js} +1 -0
  33. package/dist/locales/4.3.57/flow/de.js +1 -0
  34. package/dist/locales/4.3.57/flow/es.js +1 -0
  35. package/dist/locales/4.3.57/flow/fr.js +1 -0
  36. package/dist/locales/4.3.57/flow/id.js +1 -0
  37. package/dist/locales/4.3.57/flow/it.js +1 -0
  38. package/dist/locales/4.3.57/flow/ja.js +1 -0
  39. package/dist/locales/4.3.57/flow/ko.js +1 -0
  40. package/dist/locales/4.3.57/flow/nl.js +1 -0
  41. package/dist/locales/4.3.57/flow/pl.js +1 -0
  42. package/dist/locales/4.3.57/flow/pt-br.js +1 -0
  43. package/dist/locales/4.3.57/flow/tr.js +1 -0
  44. package/dist/locales/4.3.57/flow/zh.js +1 -0
  45. package/dist/{nl-Dazc9kaV.js → nl-Vc5Wd3re.js} +1 -0
  46. package/dist/{orders--luy9Lyn.js → orders-FcXWw6b-.js} +56 -40
  47. package/dist/{pixels-FefBmhJt.js → pixels-B85kohqd.js} +9 -9
  48. package/dist/{pl-tSyy-lx_.js → pl-Dnjh6Wpy.js} +1 -0
  49. package/dist/{pt-br-BxzrK97M.js → pt-br-BJa34BZo.js} +1 -0
  50. package/dist/{tr-DhAMB3UQ.js → tr-Do7HmDL7.js} +1 -0
  51. package/dist/types/index.d.ts +14 -0
  52. package/dist/{utils-BFaSYuNA.js → utils-DpC4fy4Z.js} +69 -69
  53. package/dist/{venue-CBos8YTa.js → venue-BBoZBuhu.js} +1 -0
  54. package/dist/venue-calendar.css +1 -1
  55. package/dist/venue-calendar.es.js +54 -54
  56. package/dist/venue-calendar.iife.js +31 -31
  57. package/dist/venue-calendar.umd.js +53 -53
  58. package/dist/{zh-C2-VLP_R.js → zh-Dn20V0BT.js} +1 -0
  59. package/package.json +2 -2
  60. package/dist/Checkout-QIxYrkeK.js +0 -1832
  61. package/dist/Spinner-6UtYyNcF.js +0 -16
  62. package/dist/locales/4.3.55/flow/de.js +0 -1
  63. package/dist/locales/4.3.55/flow/es.js +0 -1
  64. package/dist/locales/4.3.55/flow/fr.js +0 -1
  65. package/dist/locales/4.3.55/flow/id.js +0 -1
  66. package/dist/locales/4.3.55/flow/it.js +0 -1
  67. package/dist/locales/4.3.55/flow/ja.js +0 -1
  68. package/dist/locales/4.3.55/flow/ko.js +0 -1
  69. package/dist/locales/4.3.55/flow/nl.js +0 -1
  70. package/dist/locales/4.3.55/flow/pl.js +0 -1
  71. package/dist/locales/4.3.55/flow/pt-br.js +0 -1
  72. package/dist/locales/4.3.55/flow/tr.js +0 -1
  73. package/dist/locales/4.3.55/flow/zh.js +0 -1
  74. /package/dist/locales/{4.3.55 → 4.3.57}/main/de.js +0 -0
  75. /package/dist/locales/{4.3.55 → 4.3.57}/main/es.js +0 -0
  76. /package/dist/locales/{4.3.55 → 4.3.57}/main/fr.js +0 -0
  77. /package/dist/locales/{4.3.55 → 4.3.57}/main/id.js +0 -0
  78. /package/dist/locales/{4.3.55 → 4.3.57}/main/it.js +0 -0
  79. /package/dist/locales/{4.3.55 → 4.3.57}/main/ja.js +0 -0
  80. /package/dist/locales/{4.3.55 → 4.3.57}/main/ko.js +0 -0
  81. /package/dist/locales/{4.3.55 → 4.3.57}/main/nl.js +0 -0
  82. /package/dist/locales/{4.3.55 → 4.3.57}/main/pl.js +0 -0
  83. /package/dist/locales/{4.3.55 → 4.3.57}/main/pt-br.js +0 -0
  84. /package/dist/locales/{4.3.55 → 4.3.57}/main/tr.js +0 -0
  85. /package/dist/locales/{4.3.55 → 4.3.57}/main/zh.js +0 -0
@@ -1,6 +1,6 @@
1
1
  import { g as e } from "./sizing-CFDo_qh_.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--luy9Lyn.js";
3
- import "./event-transform-oLpmof1H.js";
2
+ import { F as t, M as n, P as r, Q as i, X as a, et as o, nt as s, z as c } from "./orders-FcXWw6b-.js";
3
+ import "./event-transform-BF1WYBSP.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 n = {}, r = {}, i = [], s = "", c = 0, l = {};
85
+ let t = {}, n = {}, r = [], s = "", c = 0, l = {};
86
86
  if (typeof window > "u") return {
87
- quantities: n,
88
- donationAmounts: r,
87
+ quantities: t,
88
+ donationAmounts: n,
89
89
  addOnQuantities: l,
90
90
  promocode: s,
91
91
  promoDiscountAmount: c,
92
- tickets: i
92
+ tickets: r
93
93
  };
94
94
  let u = a(y(e), null);
95
95
  if (!u) {
96
- let n = a(b(e), null);
97
- n && (u = n, t(y(e), n), o(b(e)));
96
+ let t = a(b(e), null);
97
+ t && (u = t, o(y(e), t), i(b(e)));
98
98
  }
99
99
  if (u) return {
100
100
  quantities: u.quantities || {},
@@ -105,38 +105,38 @@ function D(e) {
105
105
  tickets: u.tickets || []
106
106
  };
107
107
  try {
108
- n = JSON.parse(m(`checkout-quantities-${e}`) || "{}");
108
+ t = JSON.parse(m(`checkout-quantities-${e}`) || "{}");
109
109
  } catch (e) {
110
- g.warn("Failed to parse checkout quantities cookie:", e), n = {};
110
+ g.warn("Failed to parse checkout quantities cookie:", e), t = {};
111
111
  }
112
112
  try {
113
- i = JSON.parse(m(`checkout-tickets-${e}`) || "[]");
113
+ r = JSON.parse(m(`checkout-tickets-${e}`) || "[]");
114
114
  } catch (e) {
115
- g.warn("Failed to parse checkout tickets cookie:", e), i = [];
115
+ g.warn("Failed to parse checkout tickets cookie:", e), r = [];
116
116
  }
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({
117
+ return s = m(`checkout-promocode-${e}`) || "", c = parseFloat(m(`checkout-promo-discount-${e}`) || "0"), (Object.keys(t).length > 0 || r.length > 0 || s) && (A({
118
118
  eventID: e,
119
- quantities: n,
120
- donationAmounts: r,
119
+ quantities: t,
120
+ donationAmounts: n,
121
121
  promocode: s,
122
122
  promoDiscountAmount: c,
123
- tickets: i
123
+ tickets: r
124
124
  }), O(e)), {
125
- quantities: n,
126
- donationAmounts: r,
125
+ quantities: t,
126
+ donationAmounts: n,
127
127
  addOnQuantities: l,
128
128
  promocode: s,
129
129
  promoDiscountAmount: c,
130
- tickets: i
130
+ tickets: r
131
131
  };
132
132
  }
133
133
  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
- 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}`);
137
+ i(y(e)), i(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: n, donationAmounts: r, addOnQuantities: i, promocode: a, promoDiscountAmount: o, tickets: s }) {
139
+ function A({ eventID: e, quantities: t, donationAmounts: n, addOnQuantities: r, promocode: i, promoDiscountAmount: a, 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: n, donationAmounts: r, addOnQuantities: i,
146
146
  visibility: e.visibility,
147
147
  salesChannel: e.salesChannel
148
148
  })), l = {
149
- quantities: n || {},
150
- donationAmounts: r || {},
151
- addOnQuantities: i || {},
152
- promocode: a || "",
153
- promoDiscountAmount: o || 0,
149
+ quantities: t || {},
150
+ donationAmounts: n || {},
151
+ addOnQuantities: r || {},
152
+ promocode: i || "",
153
+ promoDiscountAmount: a || 0,
154
154
  tickets: c,
155
155
  updatedAt: Date.now()
156
156
  };
157
- t(y(e), l);
157
+ o(y(e), l);
158
158
  }
159
159
  function j(e) {
160
160
  if (!e) return null;
161
- let n = a(x(e), null);
162
- if (n != null) return P(n);
163
- let r = a(S(e), null);
164
- if (r == null) return null;
165
- let i = P(r);
166
- return i != null && (t(x(e), i), o(S(e))), i;
161
+ let t = a(x(e), null);
162
+ if (t != null) return P(t);
163
+ let n = a(S(e), null);
164
+ if (n == null) return null;
165
+ let r = P(n);
166
+ return r != null && (o(x(e), r), i(S(e))), r;
167
167
  }
168
- function M(e, n) {
169
- !e || !Number.isFinite(n) || t(x(e), n);
168
+ function M(e, t) {
169
+ !e || !Number.isFinite(t) || o(x(e), t);
170
170
  }
171
171
  function N(e) {
172
- e && (o(x(e)), o(S(e)));
172
+ e && (i(x(e)), i(S(e)));
173
173
  }
174
174
  function P(e) {
175
175
  let t = typeof e == "number" ? e : parseInt(e, 10);
@@ -189,11 +189,11 @@ var F = (e) => _(`queue-token-${e}`);
189
189
  function I(e) {
190
190
  return a(F(e), null);
191
191
  }
192
- function L(e, n) {
193
- n && t(F(e), n);
192
+ function L(e, t) {
193
+ t && o(F(e), t);
194
194
  }
195
195
  function R(e) {
196
- o(F(e));
196
+ i(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 n(`/events/${e}/queue`);
232
+ let t = await r(`/events/${e}/queue`);
233
233
  return t.success ? {
234
234
  armed: t.data?.armed === !0,
235
235
  mode: G(t.data?.mode),
@@ -242,21 +242,21 @@ async function Y(e) {
242
242
  }
243
243
  async function X(e) {
244
244
  try {
245
- let t = await r(`/events/${e}/queue/join`, {});
246
- if (!t.success) return {
245
+ let n = await t(`/events/${e}/queue/join`, {});
246
+ if (!n.success) return {
247
247
  success: !1,
248
- errorCode: t.errorCode || "queue_unavailable",
249
- statusCode: t.statusCode
248
+ errorCode: n.errorCode || "queue_unavailable",
249
+ statusCode: n.statusCode
250
250
  };
251
- let n = J(t.data);
252
- return n ? {
251
+ let r = J(n.data);
252
+ return r ? {
253
253
  success: !0,
254
- entry: n,
255
- statusCode: t.statusCode
254
+ entry: r,
255
+ statusCode: n.statusCode
256
256
  } : {
257
257
  success: !1,
258
258
  errorCode: B,
259
- statusCode: t.statusCode
259
+ statusCode: n.statusCode
260
260
  };
261
261
  } catch (e) {
262
262
  return z.error("joinQueue error:", e), {
@@ -271,21 +271,21 @@ async function Z(e, t) {
271
271
  errorCode: B
272
272
  };
273
273
  try {
274
- let r = await n(`/events/${e}/queue/status?token=${encodeURIComponent(t)}`);
275
- if (!r.success) return {
274
+ let n = await r(`/events/${e}/queue/status?token=${encodeURIComponent(t)}`);
275
+ if (!n.success) return {
276
276
  success: !1,
277
- errorCode: r.errorCode || "queue_unavailable",
278
- statusCode: r.statusCode
277
+ errorCode: n.errorCode || "queue_unavailable",
278
+ statusCode: n.statusCode
279
279
  };
280
- let i = J(r.data);
280
+ let i = J(n.data);
281
281
  return i ? {
282
282
  success: !0,
283
283
  entry: i,
284
- statusCode: r.statusCode
284
+ statusCode: n.statusCode
285
285
  } : {
286
286
  success: !1,
287
287
  errorCode: B,
288
- statusCode: r.statusCode
288
+ statusCode: n.statusCode
289
289
  };
290
290
  } catch (e) {
291
291
  return z.error("getQueueStatus error:", e), {
@@ -294,10 +294,10 @@ async function Z(e, t) {
294
294
  };
295
295
  }
296
296
  }
297
- async function ne(e, t) {
298
- if (!t) return { released: !1 };
297
+ async function ne(e, n) {
298
+ if (!n) return { released: !1 };
299
299
  try {
300
- return { released: (await r(`/events/${e}/queue/leave`, { token: t }, {
300
+ return { released: (await t(`/events/${e}/queue/leave`, { token: n }, {
301
301
  keepalive: !0,
302
302
  suppressOnError: !0
303
303
  })).data?.released === !0 };
@@ -330,8 +330,8 @@ async function ae() {
330
330
  }
331
331
  async function oe(e) {
332
332
  try {
333
- let t = await n(`/venues/${e}`);
334
- if (!t.success) throw new c(t.error ?? `API error: ${t.statusCode}`, t.statusCode ?? 0, {
333
+ let t = await r(`/venues/${e}`);
334
+ if (!t.success) throw new s(t.error ?? `API error: ${t.statusCode}`, t.statusCode ?? 0, {
335
335
  endpoint: `/venues/${e}`,
336
336
  method: "GET"
337
337
  });
@@ -340,15 +340,15 @@ async function oe(e) {
340
340
  throw Q.error("getVenueDetails error:", e), e;
341
341
  }
342
342
  }
343
- async function $(e = {}, t) {
343
+ async function $(e = {}, n) {
344
344
  try {
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
- purchaserIP: n,
345
+ let r = 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
+ purchaserIP: r,
347
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 r("/orders/create", u, t ? { headers: { "X-Queue-Token": t } } : void 0), f = d.data ?? {};
351
+ }, d = await t("/orders/create", u, n ? { headers: { "X-Queue-Token": n } } : 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,10 +380,10 @@ async function $(e = {}, t) {
380
380
  }
381
381
  async function se(e) {
382
382
  try {
383
- let t = await n(`/orders/${e}`);
383
+ let t = await r(`/orders/${e}`);
384
384
  if (!t.success) {
385
385
  let n = t.error ?? `Failed to fetch order (${t.statusCode})`;
386
- throw Q.error("getOrder error response:", n), new c(n, t.statusCode ?? 0, {
386
+ throw Q.error("getOrder error response:", n), new s(n, t.statusCode ?? 0, {
387
387
  endpoint: `/orders/${e}`,
388
388
  method: "GET"
389
389
  });
@@ -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 t = new URLSearchParams(window.location.search), n = s(t.get("utm_source")) || "direct";
400
+ let t = new URLSearchParams(window.location.search), r = n(t.get("utm_source")) || "direct";
401
401
  try {
402
- await fetch(`${i()}/utm/${e}/${encodeURIComponent(n)}`);
402
+ await fetch(`${c()}/utm/${e}/${encodeURIComponent(r)}`);
403
403
  } catch (e) {
404
404
  ce.error("UTM tracking failed:", e);
405
405
  }
@@ -5,6 +5,7 @@ function e(e) {
5
5
  askForPhoneAtCheckout: t.askForPhoneAtCheckout ?? !0,
6
6
  requiredPhoneAtCheckout: (t.askForPhoneAtCheckout ?? !0) && (t.requiredPhoneAtCheckout ?? !1),
7
7
  hasCustomCheckout: r,
8
+ requiredCustomCheckout: r && (t.requiredCustomCheckout ?? !1),
8
9
  questionPrompt: r ? n : void 0
9
10
  };
10
11
  }