@getmicdrop/venue-calendar 4.2.32 → 4.2.34

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 (119) hide show
  1. package/README.md +809 -809
  2. package/dist/{ArrowLeftIcon-B92-MN6-.js → ArrowLeftIcon-D2dcPIYB.js} +1 -1
  3. package/dist/{Badge-Bv_MT-Vt.js → Badge-Bk1dnG89.js} +1 -1
  4. package/dist/{BlockPlaceholder-DuE4xLS_.js → BlockPlaceholder-DJLtnBDw.js} +1 -1
  5. package/dist/{Calendar-CXq_H56Z.js → Calendar-CzvJjOKf.js} +19 -19
  6. package/dist/{CalendarFoundryView-DxQKDDgF.js → CalendarFoundryView-DWjYFSEw.js} +980 -960
  7. package/dist/{CalendarIcon-pJ01x71c.js → CalendarIcon-CkJFNFxp.js} +1 -1
  8. package/dist/{CartView-DRVzz2Jv.js → CartView-DidUQzO-.js} +532 -532
  9. package/dist/{Checkout-Cdw5BIfy.js → Checkout-1NyqTUI8.js} +129 -129
  10. package/dist/{Checkout-DmermPNB.js → Checkout-eIj6xGgL.js} +173 -173
  11. package/dist/{CheckoutTimer-Bz-HJhV2.js → CheckoutTimer-DFIHUIZl.js} +5 -5
  12. package/dist/{ChevronDownIcon-k93EaHQh.js → ChevronDownIcon-rsVUoX0r.js} +1 -1
  13. package/dist/{ClockIcon-hnrV9bwg.js → ClockIcon-CIwbKXZX.js} +1 -1
  14. package/dist/{CloseIcon-CdZ5mNTK.js → CloseIcon-B7HoEcON.js} +1 -1
  15. package/dist/{CollectionView-C15_ZzBb.js → CollectionView-Dt3NmdBh.js} +9 -10
  16. package/dist/{Event-B0IdtMpP.js → Event-B0hDsxnc.js} +377 -359
  17. package/dist/{EventPage-B4y4n5md.js → EventPage-De-7chl3.js} +124 -125
  18. package/dist/{Heading-Dfo3bjyn.js → Heading-CQlZrwry.js} +1 -1
  19. package/dist/{Image-B3cEndLZ.js → Image-T6dKIfNx.js} +1 -1
  20. package/dist/{Input-BntIoPeV.js → Input-8KhoOdg-.js} +1 -1
  21. package/dist/{MailIcon-CMyjGJ4_.js → MailIcon-CSR5vhKU.js} +1 -1
  22. package/dist/{Modal-B6BsMEaP.js → Modal-D3Otve45.js} +2 -2
  23. package/dist/{ModalFooter-D1XdQEhH.js → ModalFooter-fv8mC75I.js} +162 -147
  24. package/dist/{PasswordInput-C91gXtFY.js → PasswordInput-B_6cNrlw.js} +1 -1
  25. package/dist/{ScarcityBadge-C0YeWGkd.js → ScarcityBadge-CtHuWSRt.js} +23 -22
  26. package/dist/{SeriesPage-1ZZgy2K-.js → SeriesPage-BFYmtgoi.js} +4 -4
  27. package/dist/{Spinner-BwiDys7C.js → Spinner-fFAXvj_B.js} +1 -1
  28. package/dist/{Success-BxvH6W_x.js → Success-BIVQOUqu.js} +52 -52
  29. package/dist/{TagIcon-BkPcpKdu.js → TagIcon-Do5sN8xR.js} +1 -1
  30. package/dist/ViewTicketsEmbed-CbbE-8EX.js +727 -0
  31. package/dist/{WarningCircleIcon-D78IFaPY.js → WarningCircleIcon-DuqytsVW.js} +1 -1
  32. package/dist/{WarningTriIcon-6WbGCso4.js → WarningTriIcon-CW-j3Vwq.js} +1 -1
  33. package/dist/{__SKIP_PATHS__-tAxwP7_6.js → __SKIP_PATHS__-Chv7DW7h.js} +1 -1
  34. package/dist/api/api.cjs +1 -1
  35. package/dist/api/api.mjs +299 -209
  36. package/dist/api/gift-cards.d.ts +1 -1
  37. package/dist/api/orders.d.ts +2 -2
  38. package/dist/api/types.d.ts +554 -554
  39. package/dist/{colors-DbQNhbC_.js → colors-BND7shPA.js} +119 -117
  40. package/dist/constants-BYtFptYp.js +356 -0
  41. package/dist/{copyToClipboard-DAGJHhtn.js → copyToClipboard-CcwaUGGt.js} +1 -1
  42. package/dist/{de-BG-86m10.js → de-8N03rEoe.js} +4 -1
  43. package/dist/{de-BZpzzwT9.js → de-CgHrjezX.js} +57 -1
  44. package/dist/{timezones-C5l0SSHK.js → defaultLabels-CGMGBy-u.js} +501 -1
  45. package/dist/{es-9jwSoUSD.js → es-D6ThNLUc.js} +45 -1
  46. package/dist/{es-B1RPM3H_.js → es-tRMGbtbB.js} +4 -1
  47. package/dist/{event-v8d4wRpB.js → event-CbAGNxgd.js} +1 -1
  48. package/dist/{event-transform-lC22EDSL.js → event-transform-DnvOiDVn.js} +4 -4
  49. package/dist/{eventStatusStream-CopqZ2oa.js → eventStatusStream-BIn6Dzkw.js} +5 -5
  50. package/dist/{fr-B6FgrH9s.js → fr-DDnljtQz.js} +4 -1
  51. package/dist/{fr-fYY2O8Ab.js → fr-W0OOohju.js} +57 -1
  52. package/dist/{href-BH6l_kZx.js → href-D2-tmkMF.js} +2 -2
  53. package/dist/{i18n-CIVh_urJ.js → i18n-4k6uF1EX.js} +126 -126
  54. package/dist/i18n-FnFHQ5QU.js +28 -0
  55. package/dist/{id-CK7hal8E.js → id-BZshacSm.js} +4 -1
  56. package/dist/{id-But8qcA2.js → id-xgAFN1EH.js} +57 -1
  57. package/dist/{it-BdV8d4GZ.js → it-B6Rbpjec.js} +4 -1
  58. package/dist/{it-Cr9Quauw.js → it-BhuT9BcE.js} +57 -1
  59. package/dist/{ja-DKVQltc4.js → ja-Bmj-bPuM.js} +4 -1
  60. package/dist/{ja-CNXwg0_H.js → ja-yca07ASz.js} +57 -1
  61. package/dist/{ko-DtoIJliT.js → ko-Pfftd2u0.js} +57 -1
  62. package/dist/{ko-DpIk-4pN.js → ko-r-ecuHZ5.js} +4 -1
  63. package/dist/{labels-BUH8ouCu.js → labels-Cs7xp4ug.js} +1 -1
  64. package/dist/locales/{4.2.32 → 4.2.34}/flow/de.js +1 -1
  65. package/dist/locales/{4.2.32 → 4.2.34}/flow/es.js +1 -1
  66. package/dist/locales/{4.2.32 → 4.2.34}/flow/fr.js +1 -1
  67. package/dist/locales/{4.2.32 → 4.2.34}/flow/id.js +1 -1
  68. package/dist/locales/{4.2.32 → 4.2.34}/flow/it.js +1 -1
  69. package/dist/locales/{4.2.32 → 4.2.34}/flow/ja.js +1 -1
  70. package/dist/locales/{4.2.32 → 4.2.34}/flow/ko.js +1 -1
  71. package/dist/locales/{4.2.32 → 4.2.34}/flow/nl.js +1 -1
  72. package/dist/locales/{4.2.32 → 4.2.34}/flow/pl.js +1 -1
  73. package/dist/locales/{4.2.32 → 4.2.34}/flow/pt-br.js +1 -1
  74. package/dist/locales/{4.2.32 → 4.2.34}/flow/tr.js +1 -1
  75. package/dist/locales/{4.2.32 → 4.2.34}/flow/zh.js +1 -1
  76. package/dist/locales/{4.2.32 → 4.2.34}/main/de.js +1 -1
  77. package/dist/locales/{4.2.32 → 4.2.34}/main/es.js +1 -1
  78. package/dist/locales/{4.2.32 → 4.2.34}/main/fr.js +1 -1
  79. package/dist/locales/{4.2.32 → 4.2.34}/main/id.js +1 -1
  80. package/dist/locales/{4.2.32 → 4.2.34}/main/it.js +1 -1
  81. package/dist/locales/{4.2.32 → 4.2.34}/main/ja.js +1 -1
  82. package/dist/locales/{4.2.32 → 4.2.34}/main/ko.js +1 -1
  83. package/dist/locales/{4.2.32 → 4.2.34}/main/nl.js +1 -1
  84. package/dist/locales/{4.2.32 → 4.2.34}/main/pl.js +1 -1
  85. package/dist/locales/{4.2.32 → 4.2.34}/main/pt-br.js +1 -1
  86. package/dist/locales/{4.2.32 → 4.2.34}/main/tr.js +1 -1
  87. package/dist/locales/{4.2.32 → 4.2.34}/main/zh.js +1 -1
  88. package/dist/{modalManager.svelte-BLfn6RXD.js → modalManager.svelte-vILq6Thx.js} +2 -2
  89. package/dist/{nl-Dbs4YQMw.js → nl-CQEhSA2l.js} +57 -1
  90. package/dist/{nl-C-dVfidI.js → nl-CS1da1Bc.js} +4 -1
  91. package/dist/{order-totals-CeeD6GjZ.js → order-totals-CSDXY65z.js} +31 -31
  92. package/dist/{orders-BuGy4vpJ.js → orders-CH2nnS3m.js} +365 -209
  93. package/dist/{phoneUtils-BDV9Eggn.js → phoneUtils-BtJ3FhMK.js} +1 -1
  94. package/dist/{pixels-D6vqcuy2.js → pixels-BK7PGnme.js} +11 -11
  95. package/dist/{pl-CnFcI33y.js → pl-C2bkE2WA.js} +4 -1
  96. package/dist/{pl-Da6lsZXQ.js → pl-CyWqKYE8.js} +57 -1
  97. package/dist/{promo-DtLZRskK.js → promo-Cy4LPBAC.js} +3 -3
  98. package/dist/{pt-br-6QYijxa0.js → pt-br--DIxBDjz.js} +4 -1
  99. package/dist/{pt-br-D1wHabRR.js → pt-br-BC2I7f8-.js} +57 -1
  100. package/dist/seo/types.d.ts +156 -156
  101. package/dist/{serverTotals-t2UmKkhC.js → serverTotals-C3VhWitQ.js} +1 -1
  102. package/dist/{shareCopyFeedback.svelte-B-M53Wj2.js → shareCopyFeedback.svelte-DTl5jJ2n.js} +55 -55
  103. package/dist/{showcase-state-options-VZcqIjpF.js → showcase-state-options-CeCdn8_C.js} +1 -1
  104. package/dist/{to-event-card-props-CpXtfoKx.js → to-event-card-props-BmsDr8T3.js} +31 -31
  105. package/dist/{tr-Pv_m8usO.js → tr-Bk7x5MW7.js} +4 -1
  106. package/dist/{tr-CpN50zWw.js → tr-CNjaJc_1.js} +57 -1
  107. package/dist/types/index.d.ts +509 -509
  108. package/dist/{utils-CtqaTDLB.js → utils-pF15CnBe.js} +49 -49
  109. package/dist/venue-calendar.css +1 -1
  110. package/dist/venue-calendar.es.js +711 -735
  111. package/dist/venue-calendar.iife.js +60 -61
  112. package/dist/venue-calendar.umd.js +54 -55
  113. package/dist/{zh-CAAnH4T4.js → zh-C8kyVh24.js} +4 -1
  114. package/dist/{zh-CwlRq_aG.js → zh-DOeb3_A1.js} +57 -1
  115. package/package.json +3 -3
  116. package/src/lib/theme.js +222 -222
  117. package/dist/ViewTicketsEmbed-DVurn8FG.js +0 -690
  118. package/dist/constants-ENlpIS8i.js +0 -822
  119. package/dist/createI18n-DBUVdZra.js +0 -75
@@ -1,6 +1,6 @@
1
1
  import { x as e } from "./Button-C4uFgl7L.js";
2
- import { E as t, J as n, K as r, N as i, O as a, W as o, X as s, k as c } from "./orders-BuGy4vpJ.js";
3
- import "./event-transform-lC22EDSL.js";
2
+ import { $ as t, I as n, M as r, Y as i, Z as a, j as o, k as s, q as c } from "./orders-CH2nnS3m.js";
3
+ import "./event-transform-DnvOiDVn.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++) {
@@ -79,18 +79,18 @@ function T() {
79
79
  };
80
80
  }
81
81
  function E(e) {
82
- let t = {}, i = {}, a = [], s = "", c = 0;
82
+ let t = {}, n = {}, r = [], o = "", s = 0;
83
83
  if (typeof window > "u") return {
84
84
  quantities: t,
85
- donationAmounts: i,
86
- promocode: s,
87
- promoDiscountAmount: c,
88
- tickets: a
85
+ donationAmounts: n,
86
+ promocode: o,
87
+ promoDiscountAmount: s,
88
+ tickets: r
89
89
  };
90
- let l = o(y(e), null);
90
+ let l = c(y(e), null);
91
91
  if (!l) {
92
- let t = o(b(e), null);
93
- t && (l = t, n(y(e), t), r(b(e)));
92
+ let t = c(b(e), null);
93
+ t && (l = t, a(y(e), t), i(b(e)));
94
94
  }
95
95
  if (l) return {
96
96
  quantities: l.quantities || {},
@@ -105,32 +105,32 @@ function E(e) {
105
105
  g.warn("Failed to parse checkout quantities cookie:", e), t = {};
106
106
  }
107
107
  try {
108
- a = JSON.parse(m(`checkout-tickets-${e}`) || "[]");
108
+ r = JSON.parse(m(`checkout-tickets-${e}`) || "[]");
109
109
  } catch (e) {
110
- g.warn("Failed to parse checkout tickets cookie:", e), a = [];
110
+ g.warn("Failed to parse checkout tickets cookie:", e), r = [];
111
111
  }
112
- return s = m(`checkout-promocode-${e}`) || "", c = parseFloat(m(`checkout-promo-discount-${e}`) || "0"), (Object.keys(t).length > 0 || a.length > 0 || s) && (k({
112
+ return o = m(`checkout-promocode-${e}`) || "", s = parseFloat(m(`checkout-promo-discount-${e}`) || "0"), (Object.keys(t).length > 0 || r.length > 0 || o) && (k({
113
113
  eventID: e,
114
114
  quantities: t,
115
- donationAmounts: i,
116
- promocode: s,
117
- promoDiscountAmount: c,
118
- tickets: a
115
+ donationAmounts: n,
116
+ promocode: o,
117
+ promoDiscountAmount: s,
118
+ tickets: r
119
119
  }), D(e)), {
120
120
  quantities: t,
121
- donationAmounts: i,
122
- promocode: s,
123
- promoDiscountAmount: c,
124
- tickets: a
121
+ donationAmounts: n,
122
+ promocode: o,
123
+ promoDiscountAmount: s,
124
+ tickets: r
125
125
  };
126
126
  }
127
127
  function D(e) {
128
128
  h(`checkout-quantities-${e}`), h(`checkout-tickets-${e}`), h(`checkout-promocode-${e}`), h(`checkout-promo-discount-${e}`);
129
129
  }
130
130
  function O(e) {
131
- r(y(e)), r(b(e)), D(e), h(`checkout-promo-discount-type-${e}`), h(`checkout-promo-reveal-${e}`), h(`checkout-promo-reveal-ids-${e}`), h(`checkout-promo-ticket-ids-${e}`);
131
+ i(y(e)), i(b(e)), D(e), h(`checkout-promo-discount-type-${e}`), h(`checkout-promo-reveal-${e}`), h(`checkout-promo-reveal-ids-${e}`), h(`checkout-promo-ticket-ids-${e}`);
132
132
  }
133
- function k({ eventID: e, quantities: t, donationAmounts: r, promocode: i, promoDiscountAmount: a, tickets: o }) {
133
+ function k({ eventID: e, quantities: t, donationAmounts: n, promocode: r, promoDiscountAmount: i, tickets: o }) {
134
134
  if (typeof window > "u") return;
135
135
  let s = (o || []).map((e) => ({
136
136
  ID: e.ID,
@@ -141,28 +141,28 @@ function k({ eventID: e, quantities: t, donationAmounts: r, promocode: i, promoD
141
141
  salesChannel: e.salesChannel
142
142
  })), c = {
143
143
  quantities: t || {},
144
- donationAmounts: r || {},
145
- promocode: i || "",
146
- promoDiscountAmount: a || 0,
144
+ donationAmounts: n || {},
145
+ promocode: r || "",
146
+ promoDiscountAmount: i || 0,
147
147
  tickets: s,
148
148
  updatedAt: Date.now()
149
149
  };
150
- n(y(e), c);
150
+ a(y(e), c);
151
151
  }
152
152
  function A(e) {
153
153
  if (!e) return null;
154
- let t = o(x(e), null);
154
+ let t = c(x(e), null);
155
155
  if (t != null) return N(t);
156
- let i = o(S(e), null);
157
- if (i == null) return null;
158
- let a = N(i);
159
- return a != null && (n(x(e), a), r(S(e))), a;
156
+ let n = c(S(e), null);
157
+ if (n == null) return null;
158
+ let r = N(n);
159
+ return r != null && (a(x(e), r), i(S(e))), r;
160
160
  }
161
161
  function j(e, t) {
162
- !e || !Number.isFinite(t) || n(x(e), t);
162
+ !e || !Number.isFinite(t) || a(x(e), t);
163
163
  }
164
164
  function M(e) {
165
- e && (r(x(e)), r(S(e)));
165
+ e && (i(x(e)), i(S(e)));
166
166
  }
167
167
  function N(e) {
168
168
  let t = typeof e == "number" ? e : parseInt(e, 10);
@@ -196,25 +196,25 @@ async function R() {
196
196
  }
197
197
  async function z(e) {
198
198
  try {
199
- let t = await a(`/venues/${e}`);
200
- if (!t.success) throw new s(t.error ?? `API error: ${t.statusCode}`, t.statusCode ?? 0, {
199
+ let n = await o(`/venues/${e}`);
200
+ if (!n.success) throw new t(n.error ?? `API error: ${n.statusCode}`, n.statusCode ?? 0, {
201
201
  endpoint: `/venues/${e}`,
202
202
  method: "GET"
203
203
  });
204
- return t.data;
204
+ return n.data;
205
205
  } catch (e) {
206
206
  throw I.error("getVenueDetails error:", e), e;
207
207
  }
208
208
  }
209
209
  async function B(e = {}) {
210
210
  try {
211
- let t = await R(), { eventID: n, quantities: r, donationAmounts: i, ...a } = e, o = r ? Object.fromEntries(Object.entries(r).map(([e, t]) => [parseInt(e, 10), t])) : {}, s = i ? Object.fromEntries(Object.entries(i).filter(([, e]) => parseFloat(String(e)) > 0).map(([e, t]) => [parseInt(e, 10), parseFloat(String(t))])) : void 0, l = {
211
+ let t = await R(), { eventID: n, quantities: i, donationAmounts: a, ...o } = e, s = i ? Object.fromEntries(Object.entries(i).map(([e, t]) => [parseInt(e, 10), t])) : {}, c = a ? Object.fromEntries(Object.entries(a).filter(([, e]) => parseFloat(String(e)) > 0).map(([e, t]) => [parseInt(e, 10), parseFloat(String(t))])) : void 0, l = {
212
212
  purchaserIP: t,
213
213
  eventID: n ? parseInt(String(n), 10) : void 0,
214
- quantities: o,
215
- ...s && Object.keys(s).length > 0 ? { donationAmounts: s } : {},
216
- ...a
217
- }, u = await c("/orders/create", l), d = u.data ?? {};
214
+ quantities: s,
215
+ ...c && Object.keys(c).length > 0 ? { donationAmounts: c } : {},
216
+ ...o
217
+ }, u = await r("/orders/create", l), d = u.data ?? {};
218
218
  if (!u.success || d.error) {
219
219
  let e = L(d.error) || (typeof d.message == "string" ? d.message : "") || u.error || "Order creation failed", t = e.toLowerCase();
220
220
  return {
@@ -240,15 +240,15 @@ async function B(e = {}) {
240
240
  }
241
241
  async function V(e) {
242
242
  try {
243
- let t = await a(`/orders/${e}`);
244
- if (!t.success) {
245
- let n = t.error ?? `Failed to fetch order (${t.statusCode})`;
246
- throw I.error("getOrder error response:", n), new s(n, t.statusCode ?? 0, {
243
+ let n = await o(`/orders/${e}`);
244
+ if (!n.success) {
245
+ let r = n.error ?? `Failed to fetch order (${n.statusCode})`;
246
+ throw I.error("getOrder error response:", r), new t(r, n.statusCode ?? 0, {
247
247
  endpoint: `/orders/${e}`,
248
248
  method: "GET"
249
249
  });
250
250
  }
251
- return t.data;
251
+ return n.data;
252
252
  } catch (e) {
253
253
  throw I.error("getOrder error:", e), e;
254
254
  }
@@ -257,9 +257,9 @@ async function V(e) {
257
257
  //#region src/lib/utils/utm.ts
258
258
  var H = e("utm");
259
259
  async function U(e) {
260
- let n = new URLSearchParams(window.location.search), r = t(n.get("utm_source")) || "direct";
260
+ let t = new URLSearchParams(window.location.search), r = s(t.get("utm_source")) || "direct";
261
261
  try {
262
- await fetch(`${i()}/utm/${e}/${encodeURIComponent(r)}`);
262
+ await fetch(`${n()}/utm/${e}/${encodeURIComponent(r)}`);
263
263
  } catch (e) {
264
264
  H.error("UTM tracking failed:", e);
265
265
  }