@getmicdrop/venue-calendar 4.3.111 → 4.3.112

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 (65) hide show
  1. package/dist/{AddOnCard-DpOBDI9b.js → AddOnCard-D_d9UHNs.js} +64 -64
  2. package/dist/{ArrowLeftIcon-C_zVqV6t.js → ArrowLeftIcon-Bs7mUb9F.js} +1 -1
  3. package/dist/{BlockPlaceholder-DzMU967I.js → BlockPlaceholder-BgUO-Q5N.js} +1 -1
  4. package/dist/{Calendar-BoaDTy3W.js → Calendar-BMGUJww4.js} +23 -23
  5. package/dist/{CalendarFoundryView-BjOBcBxO.js → CalendarFoundryView-D4glgsR8.js} +614 -614
  6. package/dist/{CalendarIcon-BVyCicqG.js → CalendarIcon-29_IwvHT.js} +1 -1
  7. package/dist/{CartView-BRigpJWl.js → CartView-IpUUucvW.js} +252 -252
  8. package/dist/{Checkout-CBB_BrkW.js → Checkout-BhqL-kmQ.js} +11 -11
  9. package/dist/{Checkout-BWRhw-cI.js → Checkout-JGthqqs-.js} +17 -17
  10. package/dist/{CheckoutTimer-B_bbKzpt.js → CheckoutTimer-BYmPa5AI.js} +1 -1
  11. package/dist/{ChevronDownIcon-CqKYBZhG.js → ChevronDownIcon-Denff3IQ.js} +1 -1
  12. package/dist/{CloseIcon-BhTQvxHn.js → CloseIcon-BnwP0Nx3.js} +1 -1
  13. package/dist/{CollectionView-BBP2uTOg.js → CollectionView-DlkRy1E6.js} +4 -4
  14. package/dist/{Event-BSw_iPJ0.js → Event-BlER5lob.js} +194 -194
  15. package/dist/{EventPage-BTSrJvp0.js → EventPage-DSkb5f6a.js} +18 -18
  16. package/dist/{Input-xj8FOiHB.js → Input-CvK81EKX.js} +1 -1
  17. package/dist/{MailIcon-BaaO5yAE.js → MailIcon-DdNZD4Cv.js} +1 -1
  18. package/dist/{PasswordInput-B_473cLh.js → PasswordInput-CJ7o73tQ.js} +1 -1
  19. package/dist/{RecommendationsRail-S1I8syg9.js → RecommendationsRail-DDbHjhC_.js} +4 -4
  20. package/dist/{ScarcityBadge-C-VEn2fs.js → ScarcityBadge-BiseR8MX.js} +3 -3
  21. package/dist/{SeriesPage-cOjGzgq0.js → SeriesPage-qLLiHJSN.js} +2 -2
  22. package/dist/{Success-BJmyj-C9.js → Success-TfcsaUGL.js} +20 -20
  23. package/dist/{TagIcon-78loB6Ff.js → TagIcon-DtX06EKe.js} +1 -1
  24. package/dist/{WarningCircleIcon-BlA4oF-K.js → WarningCircleIcon-BEbthCpd.js} +1 -1
  25. package/dist/{WarningTriIcon-B9M_X71V.js → WarningTriIcon-Ba68mCD0.js} +1 -1
  26. package/dist/api/api.cjs +1 -1
  27. package/dist/api/api.mjs +1 -0
  28. package/dist/{api-CoAKej3S.js → api-OjCXecbx.js} +206 -152
  29. package/dist/{copyToClipboard-GCd8x6uN.js → copyToClipboard-pMnstOiv.js} +1 -1
  30. package/dist/{createErrorGate.svelte-D6SJK51n.js → createErrorGate.svelte-DgREjCbj.js} +1 -1
  31. package/dist/{datetime-DWmAPk9U.js → datetime-vgtbUysw.js} +61 -42
  32. package/dist/{event-transform-C5c5HKWF.js → event-transform-Dgb8zlg2.js} +15 -15
  33. package/dist/{href-CZPFcjzy.js → href-Dv7vLRDA.js} +1 -1
  34. package/dist/{i18n-dZGBYr5W.js → i18n-B-mcjNXL.js} +95 -95
  35. package/dist/to-event-card-props-BquqSDuB.js +383 -0
  36. package/dist/{utils-XAD2Mb21.js → utils-Baq55Xy_.js} +1 -1
  37. package/dist/venue-calendar.es.js +498 -546
  38. package/dist/venue-calendar.iife.js +26 -26
  39. package/dist/venue-calendar.umd.js +50 -50
  40. package/package.json +1 -1
  41. package/dist/to-event-card-props-DfSOYeKe.js +0 -402
  42. /package/dist/locales/{4.3.111 → 4.3.112}/flow/de.js +0 -0
  43. /package/dist/locales/{4.3.111 → 4.3.112}/flow/es.js +0 -0
  44. /package/dist/locales/{4.3.111 → 4.3.112}/flow/fr.js +0 -0
  45. /package/dist/locales/{4.3.111 → 4.3.112}/flow/id.js +0 -0
  46. /package/dist/locales/{4.3.111 → 4.3.112}/flow/it.js +0 -0
  47. /package/dist/locales/{4.3.111 → 4.3.112}/flow/ja.js +0 -0
  48. /package/dist/locales/{4.3.111 → 4.3.112}/flow/ko.js +0 -0
  49. /package/dist/locales/{4.3.111 → 4.3.112}/flow/nl.js +0 -0
  50. /package/dist/locales/{4.3.111 → 4.3.112}/flow/pl.js +0 -0
  51. /package/dist/locales/{4.3.111 → 4.3.112}/flow/pt-br.js +0 -0
  52. /package/dist/locales/{4.3.111 → 4.3.112}/flow/tr.js +0 -0
  53. /package/dist/locales/{4.3.111 → 4.3.112}/flow/zh.js +0 -0
  54. /package/dist/locales/{4.3.111 → 4.3.112}/main/de.js +0 -0
  55. /package/dist/locales/{4.3.111 → 4.3.112}/main/es.js +0 -0
  56. /package/dist/locales/{4.3.111 → 4.3.112}/main/fr.js +0 -0
  57. /package/dist/locales/{4.3.111 → 4.3.112}/main/id.js +0 -0
  58. /package/dist/locales/{4.3.111 → 4.3.112}/main/it.js +0 -0
  59. /package/dist/locales/{4.3.111 → 4.3.112}/main/ja.js +0 -0
  60. /package/dist/locales/{4.3.111 → 4.3.112}/main/ko.js +0 -0
  61. /package/dist/locales/{4.3.111 → 4.3.112}/main/nl.js +0 -0
  62. /package/dist/locales/{4.3.111 → 4.3.112}/main/pl.js +0 -0
  63. /package/dist/locales/{4.3.111 → 4.3.112}/main/pt-br.js +0 -0
  64. /package/dist/locales/{4.3.111 → 4.3.112}/main/tr.js +0 -0
  65. /package/dist/locales/{4.3.111 → 4.3.112}/main/zh.js +0 -0
@@ -1,4 +1,4 @@
1
- import { K as e } from "./datetime-DWmAPk9U.js";
1
+ import { Y as e } from "./datetime-vgtbUysw.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
@@ -1,4 +1,4 @@
1
- import { K as e } from "./datetime-DWmAPk9U.js";
1
+ import { Y as e } from "./datetime-vgtbUysw.js";
2
2
  import "svelte/internal/disclose-version";
3
3
  import * as t from "svelte/internal/client";
4
4
  import { getContext as n, hasContext as r, setContext as i } from "svelte";
@@ -149,25 +149,25 @@ function F(e, t, n = "en-US") {
149
149
  currency: "USD"
150
150
  }, new Intl.NumberFormat(n, r).format(e);
151
151
  }
152
- function I(e) {
152
+ function le(e) {
153
153
  if (e == null) return "";
154
154
  let t = e;
155
155
  return Number.isFinite(t) ? (t / 100).toFixed(2) : "";
156
156
  }
157
- function L(e) {
157
+ function ue(e) {
158
158
  return e == null ? null : e instanceof Date ? isNaN(e.getTime()) ? null : e : u(e);
159
159
  }
160
- function R(e, t) {
160
+ function I(e, t) {
161
161
  return new Intl.DateTimeFormat("en-US", {
162
162
  hour: "numeric",
163
163
  minute: "2-digit",
164
164
  timeZone: t
165
165
  }).format(e);
166
166
  }
167
- function z(n, r = {}) {
167
+ function L(n, r = {}) {
168
168
  let a = r.timeZone;
169
169
  if (a !== void 0 && !i(a)) throw new t(`Invalid timezone: ${a}`, e.INVALID_TIMEZONE, { timezone: a });
170
- let o = L(n);
170
+ let o = ue(n);
171
171
  if (!o) return "";
172
172
  let c = d(), l = o.getTime() - c.getTime(), u = Math.round(l / 6e4), f = l / 36e5, p = r.locale || "en-US";
173
173
  if (u > 0 && u < 60) {
@@ -184,7 +184,7 @@ function z(n, r = {}) {
184
184
  return t === null ? null : T(t);
185
185
  }, h = m(o), g = m(c);
186
186
  if (h && g && j(h, A(g, 1))) {
187
- let e = R(o, a);
187
+ let e = I(o, a);
188
188
  return (r.tomorrowAtTime || "tomorrow at {time}").replace("{time}", e);
189
189
  }
190
190
  let _ = l / 864e5;
@@ -192,7 +192,7 @@ function z(n, r = {}) {
192
192
  let e = new Intl.DateTimeFormat(p, {
193
193
  weekday: "long",
194
194
  timeZone: a
195
- }).format(o), t = R(o, a);
195
+ }).format(o), t = I(o, a);
196
196
  return (r.onDayAtTime || "on {day} at {time}").replace("{day}", e).replace("{time}", t);
197
197
  }
198
198
  let v = new Intl.DateTimeFormat(p, {
@@ -202,7 +202,7 @@ function z(n, r = {}) {
202
202
  }).format(o);
203
203
  return (r.onDate || "on {date}").replace("{date}", v);
204
204
  }
205
- function B(e, t, n = "en-US") {
205
+ function R(e, t, n = "en-US") {
206
206
  if (e == null) return "";
207
207
  let r = typeof t == "string";
208
208
  return new Intl.NumberFormat(r ? t : n, {
@@ -212,14 +212,14 @@ function B(e, t, n = "en-US") {
212
212
  ...r ? void 0 : t
213
213
  }).format(e);
214
214
  }
215
- function V(e, t) {
215
+ function z(e, t) {
216
216
  let n = e?.trim() || "", r = t?.trim() || "";
217
217
  return n && r ? `${n} ${r}` : n || r || "";
218
218
  }
219
- function H(e) {
219
+ function B(e) {
220
220
  return e.replace(/\D/g, "").replace(/(.{4})/g, "$1 ").trim();
221
221
  }
222
- function U(e) {
222
+ function V(e) {
223
223
  switch (e) {
224
224
  case "flat":
225
225
  case "cents": return console.warn(`[normalizeChargeType] Legacy serviceFeeChargeType "${e}" received -- use "fixed"`), "fixed";
@@ -231,6 +231,25 @@ function U(e) {
231
231
  }
232
232
  }
233
233
  //#endregion
234
+ //#region node_modules/@getmicdrop/svelte-components/dist/routing/slug.js
235
+ var H = 70;
236
+ function U(e) {
237
+ return e.normalize("NFKD").replace(/[\u0300-\u036f]/g, "").toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "").slice(0, H).replace(/-+$/g, "");
238
+ }
239
+ //#endregion
240
+ //#region src/lib/url-manager/params.ts
241
+ function de(e) {
242
+ let t = e.indexOf("-"), n = t === -1 ? e : e.substring(0, t);
243
+ return /^\d+$/.test(n) ? {
244
+ id: n,
245
+ slug: t === -1 ? "" : e.substring(t + 1)
246
+ } : null;
247
+ }
248
+ function fe(e) {
249
+ let t = e.id || e.eventID || 0, n = e.slug || U(e.name || "");
250
+ return `#${t}${n ? "-" + n : ""}`;
251
+ }
252
+ //#endregion
234
253
  //#region src/lib/constants/scarcity.ts
235
254
  var W = {
236
255
  URGENT_PCT: 10,
@@ -239,12 +258,12 @@ var W = {
239
258
  ABSOLUTE_FLOOR: 5,
240
259
  LOW_ABSOLUTE_FLOOR: 6,
241
260
  ABSOLUTE_CAP: 30
242
- }, le = { CLAIM_ON_UNTOUCHED_POOL: !0 };
261
+ }, pe = { CLAIM_ON_UNTOUCHED_POOL: !0 };
243
262
  function G(e, t, n) {
244
263
  let { ABSOLUTE_CAP: r } = W, i = r / t * 100, a = n / t * 100;
245
264
  return Math.max(Math.min(e, i), a);
246
265
  }
247
- function ue(e, t, n = le) {
266
+ function me(e, t, n = pe) {
248
267
  if (t <= 0) return "plenty";
249
268
  if (e <= 0) return "sold-out";
250
269
  if (!n.CLAIM_ON_UNTOUCHED_POOL && e >= t) return "plenty";
@@ -253,10 +272,10 @@ function ue(e, t, n = le) {
253
272
  }
254
273
  //#endregion
255
274
  //#region src/lib/core/datetime.js
256
- var K = /* @__PURE__ */ new Map(), de = 64;
257
- function fe(e, t) {
275
+ var K = /* @__PURE__ */ new Map(), he = 64;
276
+ function ge(e, t) {
258
277
  let n = `${e}|${JSON.stringify(t)}`, r = K.get(n);
259
- return r ? (K.delete(n), K.set(n, r), r) : (r = new Intl.DateTimeFormat(e, t), K.set(n, r), K.size > de && K.delete(K.keys().next().value), r);
278
+ return r ? (K.delete(n), K.set(n, r), r) : (r = new Intl.DateTimeFormat(e, t), K.set(n, r), K.size > he && K.delete(K.keys().next().value), r);
260
279
  }
261
280
  function q(e) {
262
281
  if (e == null) return null;
@@ -267,54 +286,54 @@ function J(e) {
267
286
  let t = q(e?.price);
268
287
  return t === null ? null : t === 0 ? 0 : P(t + (q(e?.fee) ?? 0));
269
288
  }
270
- function pe(e, t = l) {
271
- return Y(J(e), t);
289
+ function _e(e, t = l) {
290
+ return X(J(e), t);
272
291
  }
273
- function me(e) {
292
+ function Y(e) {
274
293
  return F(e, {
275
294
  minimumFractionDigits: Number.isInteger(e) ? 0 : 2,
276
295
  maximumFractionDigits: 2
277
296
  });
278
297
  }
279
- function Y(e, t = l) {
298
+ function X(e, t = l) {
280
299
  return e == null ? "—" : e <= 0 ? t.free || "Free" : F(e);
281
300
  }
282
- function X(e) {
301
+ function Z(e) {
283
302
  if (e == null || e === "" || typeof e != "string" && typeof e != "number" && !(e instanceof Date)) return null;
284
303
  let t = new Date(e);
285
304
  return isNaN(t.getTime()) ? null : t;
286
305
  }
287
- function Z(e, t, r, i) {
288
- let a = X(e);
306
+ function Q(e, t, r, i) {
307
+ let a = Z(e);
289
308
  if (!a) return "";
290
309
  let o = c(t) ? t : n;
291
- return fe(i || "en-US", {
310
+ return ge(i || "en-US", {
292
311
  ...r,
293
312
  timeZone: o
294
313
  }).format(a);
295
314
  }
296
- function Q(e, t) {
297
- return Z(e, t, {
315
+ function ve(e, t) {
316
+ return Q(e, t, {
298
317
  year: "numeric",
299
318
  month: "2-digit",
300
319
  day: "2-digit"
301
320
  }, "en-CA");
302
321
  }
303
322
  function $(e, t, n) {
304
- return Z(e, t, {
323
+ return Q(e, t, {
305
324
  hour: "numeric",
306
325
  minute: "2-digit",
307
326
  hour12: !0
308
327
  }, n);
309
328
  }
310
- function he(e, t, n, r) {
329
+ function ye(e, t, n, r) {
311
330
  let i = $(e, n, r);
312
331
  if (!t) return i;
313
332
  let a = $(t, n, r);
314
333
  return i && a ? `${i} - ${a}` : i;
315
334
  }
316
- function ge(e, t, r) {
317
- if (!X(e)) return {
335
+ function be(e, t, r) {
336
+ if (!Z(e)) return {
318
337
  day: "",
319
338
  month: "",
320
339
  date: 0,
@@ -322,36 +341,36 @@ function ge(e, t, r) {
322
341
  };
323
342
  let i = c(t) ? t : n;
324
343
  return {
325
- day: Z(e, i, { weekday: "short" }, r),
326
- month: Z(e, i, { month: "short" }, r),
327
- date: parseInt(Z(e, i, { day: "numeric" }, "en-US"), 10),
328
- year: parseInt(Z(e, i, { year: "numeric" }, "en-US"), 10)
344
+ day: Q(e, i, { weekday: "short" }, r),
345
+ month: Q(e, i, { month: "short" }, r),
346
+ date: parseInt(Q(e, i, { day: "numeric" }, "en-US"), 10),
347
+ year: parseInt(Q(e, i, { year: "numeric" }, "en-US"), 10)
329
348
  };
330
349
  }
331
- function _e(e, t, n) {
332
- return Z(e, t, {
350
+ function xe(e, t, n) {
351
+ return Q(e, t, {
333
352
  weekday: "short",
334
353
  month: "short",
335
354
  day: "numeric"
336
355
  }, n);
337
356
  }
338
- function ve(e, t, n) {
339
- return Z(e, t, {
357
+ function Se(e, t, n) {
358
+ return Q(e, t, {
340
359
  weekday: "long",
341
360
  year: "numeric",
342
361
  month: "long",
343
362
  day: "numeric"
344
363
  }, n);
345
364
  }
346
- function ye(e, t, n) {
347
- return Z(e, t, {
365
+ function Ce(e, t, n) {
366
+ return Q(e, t, {
348
367
  weekday: "long",
349
368
  month: "long",
350
369
  day: "numeric"
351
370
  }, n);
352
371
  }
353
- function be(e, t, n) {
372
+ function we(e, t, n) {
354
373
  return e == null || e === "" ? "" : typeof e == "string" && /^\d{1,2}:\d{2}\s*(AM|PM)$/i.test(e) ? e : $(e, t, n) || (typeof e == "string" ? e : "");
355
374
  }
356
375
  //#endregion
357
- export { ae as A, te as B, V as C, A as D, P as E, j as F, h as G, E as H, w as I, g as K, T as L, N as M, M as N, ee as O, oe as P, D as R, se as S, U as T, ne as U, C as V, y as W, ce as _, Z as a, H as b, he as c, me as d, Y as f, ue as g, W as h, ye as i, k as j, ie as k, ge as l, J as m, Q as n, $ as o, pe as p, be as r, ve as s, _e as t, q as u, I as v, z as w, F as x, B as y, O as z };
376
+ export { A, T as B, B as C, L as D, z as E, N as F, E as G, O as H, M as I, h as J, ne as K, oe as L, ie as M, ae as N, V as O, k as P, j as R, R as S, se as T, te as U, D as V, C as W, g as Y, fe as _, Q as a, ce as b, ye as c, Y as d, X as f, me as g, W as h, Ce as i, ee as j, P as k, be as l, J as m, ve as n, $ as o, _e as p, y as q, we as r, Se as s, xe as t, q as u, de as v, F as w, le as x, U as y, w as z };
@@ -1,6 +1,6 @@
1
- import { a as e, c as t, l as n, n as r, o as i } from "./datetime-DWmAPk9U.js";
1
+ import { a as e, c as t, l as n, n as r, o as i } from "./datetime-vgtbUysw.js";
2
2
  import { C as a } from "./defaultLabels-CsRGNP7f.js";
3
- import { B as o, L as s, P as c, R as l, z as u } from "./api-CoAKej3S.js";
3
+ import { B as o, F as s, R as c, V as l, z as u } from "./api-OjCXecbx.js";
4
4
  import { t as d } from "./imageUrl-vujmjpQq.js";
5
5
  import { t as f } from "./event-BgWCbt13.js";
6
6
  //#region src/lib/constants/colors.ts
@@ -188,20 +188,20 @@ function E(e, t = { mode: T.DETAIL }) {
188
188
  return n === T.BROWSE ? D(e, r, s, i) : O(e, r, s, i, o);
189
189
  }
190
190
  function D(e, t, n, i) {
191
- let a = t.startDateTime ? r(t.startDateTime, i) : "", o;
191
+ let a = t.startDateTime ? r(t.startDateTime, i) : "", l;
192
192
  if (typeof t.ticketsRemaining == "number" && typeof t.ticketsTotal == "number") {
193
193
  let e = t.ticketsRemaining, n = t.ticketsTotal;
194
- o = {
194
+ l = {
195
195
  totalRemaining: e,
196
196
  totalCapacity: n,
197
197
  isSoldOut: n > 0 && e <= 0
198
198
  };
199
199
  } else {
200
- let t = u(e.availableTickets || [], {
200
+ let t = o(e.availableTickets || [], {
201
201
  excludeDoorOnly: !0,
202
202
  publicOnly: !0
203
203
  });
204
- o = s(t);
204
+ l = c(t);
205
205
  }
206
206
  return {
207
207
  ...n,
@@ -213,10 +213,10 @@ function D(e, t, n, i) {
213
213
  description: t.description || t.eventSummary || "",
214
214
  venueId: t.venueId,
215
215
  eventSeriesId: t.eventSeriesId || null,
216
- ticketsRemaining: o.totalRemaining,
217
- ticketsTotal: o.totalCapacity,
218
- isSoldOut: o.isSoldOut,
219
- hasPurchasableHiddenTickets: c(e),
216
+ ticketsRemaining: l.totalRemaining,
217
+ ticketsTotal: l.totalCapacity,
218
+ isSoldOut: l.isSoldOut,
219
+ hasPurchasableHiddenTickets: s(e),
220
220
  stageId: t.stageId ?? null,
221
221
  eventCategoryTypes: t.eventCategoryTypes ?? null,
222
222
  ageRestriction: t.ageRestriction ?? null,
@@ -232,8 +232,8 @@ function D(e, t, n, i) {
232
232
  function O(e, t, n, r, i) {
233
233
  let a = (e.availableTickets || []).map((e) => ({
234
234
  ...e,
235
- status: l(e)
236
- })), s = u(a, {
235
+ status: u(e)
236
+ })), c = o(a, {
237
237
  excludeDoorOnly: !1,
238
238
  publicOnly: !0
239
239
  }), d = w(t.startDateTime, r);
@@ -250,14 +250,14 @@ function O(e, t, n, r, i) {
250
250
  location: t.venue?.googleLocationNameCache || t.venue?.address || "",
251
251
  ...d,
252
252
  coverImage: i,
253
- price: o(e.availableTickets),
253
+ price: l(e.availableTickets),
254
254
  status: t.status || "On Sale",
255
255
  eventSummary: t.eventSummary,
256
256
  password: t.password,
257
257
  availableTickets: a,
258
- publicTickets: s,
258
+ publicTickets: c,
259
259
  ...e.addOns ? { addOns: e.addOns } : {},
260
- hasPurchasableHiddenTickets: c(e),
260
+ hasPurchasableHiddenTickets: s(e),
261
261
  doorsOpenTime: t.doorsOpenTime,
262
262
  venue: t.venue,
263
263
  venueID: t.venueId,
@@ -1,6 +1,6 @@
1
1
  import { s as e } from "./keyboard-DhCcdIyh.js";
2
2
  import { p as t } from "./sizing-B7ixYndz.js";
3
- import { K as n } from "./datetime-DWmAPk9U.js";
3
+ import { Y as n } from "./datetime-vgtbUysw.js";
4
4
  import { V as r } from "./defaultLabels-CsRGNP7f.js";
5
5
  import { n as i } from "./Grid-kuP6V0GW.js";
6
6
  import "svelte/internal/disclose-version";