@getmicdrop/venue-calendar 4.2.2 → 4.2.3

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 (98) hide show
  1. package/dist/{ArrowLeftIcon-DQ-h5PcH.js → ArrowLeftIcon-CxZXP_IT.js} +1 -1
  2. package/dist/{Badge-M6qZyfTF.js → Badge-Bv_MT-Vt.js} +10 -9
  3. package/dist/BlockPlaceholder-HZ6Coko5.js +52 -0
  4. package/dist/Button-C4uFgl7L.js +2141 -0
  5. package/dist/{Calendar-BX22svpz.js → Calendar-BKefLfIt.js} +292 -290
  6. package/dist/CalendarFoundryView-tDmFCrJ3.js +22292 -0
  7. package/dist/{CalendarIcon-DR197Ioz.js → CalendarIcon-CLGR_zlO.js} +1 -1
  8. package/dist/{CartView-B2VtVvZM.js → CartView-CHFlfWS9.js} +651 -644
  9. package/dist/{Checkout-BTqfjvDp.js → Checkout-C-A4t1eE.js} +92 -91
  10. package/dist/Checkout-CRX7dcRr.js +1807 -0
  11. package/dist/{CheckoutTimer-Cng5tcGO.js → CheckoutTimer-d3KUbevy.js} +5 -5
  12. package/dist/{ChevronDownIcon-C_RiK-BW.js → ChevronDownIcon-YtBeSqjf.js} +1 -1
  13. package/dist/{ClockIcon-BOJENuPq.js → ClockIcon-a9tJQ5El.js} +1 -1
  14. package/dist/{CloseIcon-Rc7tpX2a.js → CloseIcon-DSURK5co.js} +1 -1
  15. package/dist/CloseOutline-qpVa62mu.js +13 -0
  16. package/dist/{CollectionView-A1zP8yz5.js → CollectionView-BiBMllyw.js} +13 -12
  17. package/dist/CropImage-B0tj2_uN.js +404 -0
  18. package/dist/Event-1ZJVzqFN.js +3034 -0
  19. package/dist/{EventPage-hxrPKPhm.js → EventPage-C7K2yA4v.js} +168 -167
  20. package/dist/{Heading-B7VYbbfJ.js → Heading-Dfo3bjyn.js} +4 -3
  21. package/dist/Image-B3cEndLZ.js +87 -0
  22. package/dist/Input-DkYIFK4J.js +487 -0
  23. package/dist/{MailIcon-rxvK4Wga.js → MailIcon-DIrQpcGo.js} +1 -1
  24. package/dist/{Modal-BVD2O8hd.js → Modal-DrA1swbF.js} +2 -2
  25. package/dist/{ModalFooter-CfboEe1M.js → ModalFooter-r1NQNG9P.js} +59 -57
  26. package/dist/{PasswordInput-BAlq2j97.js → PasswordInput-DB4qa7kS.js} +4 -4
  27. package/dist/{ScarcityBadge-h7ygRD_C.js → ScarcityBadge-BJOm7_Ho.js} +4 -4
  28. package/dist/{SeriesPage-D-cwUNZM.js → SeriesPage-JVmqUSax.js} +5 -5
  29. package/dist/{Spinner-ChTN7t75.js → Spinner-BwiDys7C.js} +3 -3
  30. package/dist/{Success-CIAX5zmz.js → Success-DAE6gPZM.js} +77 -76
  31. package/dist/{TagIcon-V0qMu9wS.js → TagIcon-CrTNd8qE.js} +1 -1
  32. package/dist/{ViewTicketsEmbed-By-IcUJZ.js → ViewTicketsEmbed-Zx-mvP2p.js} +60 -59
  33. package/dist/{WarningCircleIcon-D32h6VDr.js → WarningCircleIcon-C5-op3Cy.js} +1 -1
  34. package/dist/{WarningTriIcon-BPDrCiKU.js → WarningTriIcon-BxIQn7c2.js} +1 -1
  35. package/dist/{__SKIP_PATHS__-DirqE5Xe.js → __SKIP_PATHS__-DyyiXBgB.js} +1 -1
  36. package/dist/api/types.d.ts +528 -528
  37. package/dist/{browser-25hnscei.js → browser-Um8Y6K99.js} +7 -7
  38. package/dist/{colors-5ifWyP6H.js → colors-MuuDk6KF.js} +30 -29
  39. package/dist/{constants-Dcj3kgZE.js → constants-CqrJv6nM.js} +73 -73
  40. package/dist/{copyToClipboard-CNxFW3ni.js → copyToClipboard-CTS9Wtmo.js} +1 -1
  41. package/dist/{createI18n-08XGDh1_.js → createI18n-DBUVdZra.js} +1 -1
  42. package/dist/{event-Cp5D4ctZ.js → event-BrptLro8.js} +1 -1
  43. package/dist/{event-transform-DSuEpMxr.js → event-transform-jFmHl0Qp.js} +4 -4
  44. package/dist/{eventStatusStream-CIZVH5Lp.js → eventStatusStream-D04pcbuu.js} +2 -2
  45. package/dist/{allowlist-BiUmz2AF.js → href-C8WGnROy.js} +21 -4
  46. package/dist/{i18n-CEeBd5Hi.js → i18n-CcJmTGJP.js} +11 -11
  47. package/dist/imageOptimizer-CB3wKJU8.js +47 -0
  48. package/dist/{labels-CtyfffZI.js → labels-Q4CaHsVM.js} +1 -1
  49. package/dist/{modalManager.svelte-BH-QJm9M.js → modalManager.svelte-qcVxl7C5.js} +2 -2
  50. package/dist/{order-totals-hcdvbJvw.js → order-totals-BImtvmoh.js} +15 -13
  51. package/dist/{orders-tzTe2hNM.js → orders-C8kt6c-E.js} +20 -19
  52. package/dist/{Input-W-QE9nWi.js → phoneUtils-FnBDCqO0.js} +694 -1132
  53. package/dist/{pixels-7kl8Fcjl.js → pixels-MEc7WYiV.js} +8 -7
  54. package/dist/{promo-BrMcoTYh.js → promo-DtLZRskK.js} +3 -3
  55. package/dist/{serverTotals-CpRaEe9K.js → serverTotals-BO126TTd.js} +1 -1
  56. package/dist/{shareCopyFeedback.svelte-DsyhrfiP.js → shareCopyFeedback.svelte-Dko8NIbm.js} +25 -25
  57. package/dist/{showcase-state-options-B2XfybZq.js → showcase-state-options-BoJxiEsg.js} +1 -1
  58. package/dist/sortable.esm--ZtTTTPp.js +1451 -0
  59. package/dist/timezones-C5l0SSHK.js +2030 -0
  60. package/dist/{to-event-card-props-VPne8W4I.js → to-event-card-props-BAHzloEA.js} +24 -23
  61. package/dist/{utils-DJVlBMbw.js → utils-Ts4-U13Y.js} +3 -3
  62. package/dist/venue-calendar.css +1 -1
  63. package/dist/venue-calendar.es.js +200 -199
  64. package/dist/venue-calendar.iife.js +63 -62
  65. package/dist/venue-calendar.umd.js +60 -59
  66. package/dist/z-index-B0Vk_Mp1.js +27 -0
  67. package/package.json +220 -220
  68. package/dist/BlockPlaceholder-IOcqxTx2.js +0 -62
  69. package/dist/CalendarFoundryView-Ct39xn0Q.js +0 -23561
  70. package/dist/Checkout-CXcjQfbc.js +0 -1805
  71. package/dist/Event-C_0lUZvV.js +0 -3040
  72. package/dist/Image-DBJAfLYe.js +0 -81
  73. package/dist/cancel-Cq2Q8qW7.js +0 -59
  74. package/dist/timezones-Cq1mLtfM.js +0 -4170
  75. /package/dist/locales/{4.2.2 → 4.2.3}/flow/de.js +0 -0
  76. /package/dist/locales/{4.2.2 → 4.2.3}/flow/es.js +0 -0
  77. /package/dist/locales/{4.2.2 → 4.2.3}/flow/fr.js +0 -0
  78. /package/dist/locales/{4.2.2 → 4.2.3}/flow/id.js +0 -0
  79. /package/dist/locales/{4.2.2 → 4.2.3}/flow/it.js +0 -0
  80. /package/dist/locales/{4.2.2 → 4.2.3}/flow/ja.js +0 -0
  81. /package/dist/locales/{4.2.2 → 4.2.3}/flow/ko.js +0 -0
  82. /package/dist/locales/{4.2.2 → 4.2.3}/flow/nl.js +0 -0
  83. /package/dist/locales/{4.2.2 → 4.2.3}/flow/pl.js +0 -0
  84. /package/dist/locales/{4.2.2 → 4.2.3}/flow/pt-br.js +0 -0
  85. /package/dist/locales/{4.2.2 → 4.2.3}/flow/tr.js +0 -0
  86. /package/dist/locales/{4.2.2 → 4.2.3}/flow/zh.js +0 -0
  87. /package/dist/locales/{4.2.2 → 4.2.3}/main/de.js +0 -0
  88. /package/dist/locales/{4.2.2 → 4.2.3}/main/es.js +0 -0
  89. /package/dist/locales/{4.2.2 → 4.2.3}/main/fr.js +0 -0
  90. /package/dist/locales/{4.2.2 → 4.2.3}/main/id.js +0 -0
  91. /package/dist/locales/{4.2.2 → 4.2.3}/main/it.js +0 -0
  92. /package/dist/locales/{4.2.2 → 4.2.3}/main/ja.js +0 -0
  93. /package/dist/locales/{4.2.2 → 4.2.3}/main/ko.js +0 -0
  94. /package/dist/locales/{4.2.2 → 4.2.3}/main/nl.js +0 -0
  95. /package/dist/locales/{4.2.2 → 4.2.3}/main/pl.js +0 -0
  96. /package/dist/locales/{4.2.2 → 4.2.3}/main/pt-br.js +0 -0
  97. /package/dist/locales/{4.2.2 → 4.2.3}/main/tr.js +0 -0
  98. /package/dist/locales/{4.2.2 → 4.2.3}/main/zh.js +0 -0
@@ -1,7 +1,8 @@
1
- import { I as e, tt as t } from "./timezones-Cq1mLtfM.js";
2
- import { _ as n, v as r, x as i } from "./orders-tzTe2hNM.js";
1
+ import { x as e } from "./Button-C4uFgl7L.js";
2
+ import { E as t } from "./timezones-C5l0SSHK.js";
3
+ import { _ as n, v as r, x as i } from "./orders-C8kt6c-E.js";
3
4
  //#region src/lib/embed-bridge.js
4
- var a = t("embed-bridge"), o = "micdrop-calendar", s = Object.freeze({
5
+ var a = e("embed-bridge"), o = "micdrop-calendar", s = Object.freeze({
5
6
  NAVIGATION: "MICDROP_NAVIGATION",
6
7
  RESIZE: "MICDROP_RESIZE",
7
8
  CHECKOUT_COMPLETE: "MICDROP_CHECKOUT_COMPLETE",
@@ -158,12 +159,12 @@ function O(e) {
158
159
  e.dataLayer.push(t);
159
160
  };
160
161
  }
161
- function k(t) {
162
+ function k(e) {
162
163
  let n = D();
163
- if (!(!n || !t) && (O(n), !E)) {
164
+ if (!(!n || !e) && (O(n), !E)) {
164
165
  E = !0;
165
166
  try {
166
- h(`${T}${encodeURIComponent(t)}`), n.gtag?.("js", e()), n.gtag?.("config", t);
167
+ h(`${T}${encodeURIComponent(e)}`), n.gtag?.("js", t()), n.gtag?.("config", e);
167
168
  } catch {}
168
169
  }
169
170
  }
@@ -201,7 +202,7 @@ function j(e) {
201
202
  }
202
203
  //#endregion
203
204
  //#region src/lib/pixels/dispatcher.ts
204
- var M = t("pixels"), N = 1e3, P = 300, F = 100, I = {
205
+ var M = e("pixels"), N = 1e3, P = 300, F = 100, I = {
205
206
  metaPixelId: null,
206
207
  ga4MeasurementId: null
207
208
  }, L = !1, R = [], z = null;
@@ -1,4 +1,4 @@
1
- import { R as e, V as t, W as n, z as r } from "./timezones-Cq1mLtfM.js";
1
+ import { O as e, P as t, j as n, k as r } from "./timezones-C5l0SSHK.js";
2
2
  //#region src/lib/utils/promo.ts
3
3
  function i(e) {
4
4
  return e === "percentage" || e === "%";
@@ -21,8 +21,8 @@ function s(e, t, n) {
21
21
  function c(a, o, c, l) {
22
22
  if (!(c > 0)) return 0;
23
23
  if (!i(l)) return s(o, c, l);
24
- let u = a.filter(({ quantity: e }) => e > 0).map(({ unitPrice: e, quantity: n }) => t(r(s(e, c, l)), n));
25
- return e(n(u));
24
+ let u = a.filter(({ quantity: e }) => e > 0).map(({ unitPrice: e, quantity: t }) => n(r(s(e, c, l)), t));
25
+ return e(t(u));
26
26
  }
27
27
  //#endregion
28
28
  export { s as a, c as i, o as n, a as r, i as t };
@@ -1,4 +1,4 @@
1
- import { G as e, R as t } from "./timezones-Cq1mLtfM.js";
1
+ import { F as e, O as t } from "./timezones-C5l0SSHK.js";
2
2
  //#region node_modules/zod/v4/core/core.js
3
3
  var n;
4
4
  function r(e, t, n) {
@@ -1,7 +1,7 @@
1
- import { A as e, I as t, k as n, w as r } from "./timezones-Cq1mLtfM.js";
2
- import { J as i, a, m as o } from "./constants-Dcj3kgZE.js";
3
- import { t as s } from "./copyToClipboard-CNxFW3ni.js";
4
- import { r as c, t as l } from "./event-Cp5D4ctZ.js";
1
+ import { E as e, b as t, m as n, y as r } from "./timezones-C5l0SSHK.js";
2
+ import { J as i, a, m as o } from "./constants-CqrJv6nM.js";
3
+ import { t as s } from "./copyToClipboard-CTS9Wtmo.js";
4
+ import { r as c, t as l } from "./event-BrptLro8.js";
5
5
  import "svelte/internal/disclose-version";
6
6
  import * as u from "svelte/internal/client";
7
7
  //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/ExportIcon.svelte
@@ -42,8 +42,8 @@ function g(e) {
42
42
  }
43
43
  //#endregion
44
44
  //#region src/lib/api/transformers/series.ts
45
- function _(t) {
46
- let n = t, r = e(t.timeZone || n.timezone || n.time_zone || "UTC"), i = c(t.image || "", { cdn: !0 }), o = (t.occurrences || []).map((e) => {
45
+ function _(e) {
46
+ let n = e, r = t(e.timeZone || n.timezone || n.time_zone || "UTC"), i = c(e.image || "", { cdn: !0 }), o = (e.occurrences || []).map((e) => {
47
47
  let t = e.venue, n = t ? [t.name, t.stageName].filter(Boolean).join(" — ") : "", r = t ? t.googleLocationNameCache || [
48
48
  t.address,
49
49
  t.city,
@@ -60,7 +60,7 @@ function _(t) {
60
60
  ...n ? { venueName: n } : {},
61
61
  ...r ? { venueAddress: r } : {}
62
62
  };
63
- }), s = t.occurrences?.[0], l = s?.startDateTime ? a(s.startDateTime, r) : "", u = t.venue?.faq, d = [];
63
+ }), s = e.occurrences?.[0], l = s?.startDateTime ? a(s.startDateTime, r) : "", u = e.venue?.faq, d = [];
64
64
  Array.isArray(u) ? d = u.map((e) => ({
65
65
  question: e.question || "",
66
66
  answer: e.answer || ""
@@ -68,16 +68,16 @@ function _(t) {
68
68
  question: "FAQ",
69
69
  answer: u
70
70
  }]);
71
- let f = (t.performers || []).map((e, t) => ({
71
+ let f = (e.performers || []).map((e, t) => ({
72
72
  id: t + 1,
73
73
  displayName: e.displayName || [e.firstName, e.lastName].filter(Boolean).join(" "),
74
74
  profileImage: e.profileImage || void 0
75
- })), p = t.venue?.location || t.venue?.googleLocationNameCache || "";
75
+ })), p = e.venue?.location || e.venue?.googleLocationNameCache || "";
76
76
  return {
77
- id: t.id,
78
- title: t.title || "",
77
+ id: e.id,
78
+ title: e.title || "",
79
79
  slug: "",
80
- description: t.description || t.eventSummary || "",
80
+ description: e.description || e.eventSummary || "",
81
81
  date: l,
82
82
  startDateTime: s?.startDateTime || "",
83
83
  endDateTime: s?.endDateTime || "",
@@ -85,8 +85,8 @@ function _(t) {
85
85
  timezone: r,
86
86
  imageUrl: i,
87
87
  venue: {
88
- id: t.venue?.id || 0,
89
- name: t.venue?.name || "",
88
+ id: e.venue?.id || 0,
89
+ name: e.venue?.name || "",
90
90
  address: p,
91
91
  timezone: r,
92
92
  serviceFeePercentage: 0,
@@ -96,9 +96,9 @@ function _(t) {
96
96
  performers: f,
97
97
  tickets: [],
98
98
  faqs: d,
99
- disclaimer: t.venue?.disclaimer || void 0,
99
+ disclaimer: e.venue?.disclaimer || void 0,
100
100
  status: "on_sale",
101
- eventSeriesId: t.id,
101
+ eventSeriesId: e.id,
102
102
  seriesOccurrences: o,
103
103
  isPasswordProtected: !1,
104
104
  isRegistrationEvent: !1,
@@ -153,13 +153,13 @@ function v(e) {
153
153
  }
154
154
  //#endregion
155
155
  //#region src/lib/public-calendar-flow/transform.ts
156
- function y(e) {
157
- let i = t(), a = e.remainingCapacity ?? e.quantityRemaining ?? e.quantity ?? 0, o = e.salesBegin || e.salesStart || e.saleBegin || e.onSaleStart, s = e.salesEnd || e.saleEnd || e.onSaleEnd;
156
+ function y(t) {
157
+ let i = e(), a = t.remainingCapacity ?? t.quantityRemaining ?? t.quantity ?? 0, o = t.salesBegin || t.salesStart || t.saleBegin || t.onSaleStart, s = t.salesEnd || t.saleEnd || t.onSaleEnd;
158
158
  if (a <= 0) return "sold_out";
159
- let c = n(s);
160
- if (c && r(c, i) < 0) return "sales_ended";
161
- let l = n(o);
162
- return l && r(l, i) > 0 ? "coming_soon" : "on_sale";
159
+ let c = r(s);
160
+ if (c && n(c, i) < 0) return "sales_ended";
161
+ let l = r(o);
162
+ return l && n(l, i) > 0 ? "coming_soon" : "on_sale";
163
163
  }
164
164
  function b(e, t, n = !1) {
165
165
  let r = (e || "").toLowerCase().replace(/\s+/g, "_");
@@ -175,8 +175,8 @@ function b(e, t, n = !1) {
175
175
  }
176
176
  return r === "sold_out" || r === "soldout" ? "sold_out" : r === "coming_soon" || r === "comingsoon" ? "coming_soon" : r === "sales_ended" || r === "salesended" ? "sales_ended" : "on_sale";
177
177
  }
178
- function x(t) {
179
- let n = l(t), r = n.venue || {}, i = e(n.timeZone || n.timezone || r.timeZone || r.timezone || "UTC"), s = (t.availableTickets || []).map((e) => ({
178
+ function x(e) {
179
+ let n = l(e), r = n.venue || {}, i = t(n.timeZone || n.timezone || r.timeZone || r.timezone || "UTC"), s = (e.availableTickets || []).map((e) => ({
180
180
  id: e.id || e.ID,
181
181
  name: e.name || e.title || "",
182
182
  description: e.description || void 0,
@@ -193,7 +193,7 @@ function x(t) {
193
193
  isHidden: e.visibility === 2 || e.isHidden === !0,
194
194
  ticketType: e.type || e.ticketType || void 0,
195
195
  sectionName: e.sectionName || e.section || void 0
196
- })), u = s.filter((e) => !e.isHidden && !e.isDonation), d = u.reduce((e, t) => e + t.quantityAvailable, 0), f = u.reduce((e, t) => e + t.quantityTotal, 0), p = t.hasPurchasableHiddenTickets === !0, m = b(n.status, s, p), _ = t.image || t.imageUrl || t.image_url || "", v = _.startsWith("http") ? _ : c(_, { cdn: !0 }), x = {
196
+ })), u = s.filter((e) => !e.isHidden && !e.isDonation), d = u.reduce((e, t) => e + t.quantityAvailable, 0), f = u.reduce((e, t) => e + t.quantityTotal, 0), p = e.hasPurchasableHiddenTickets === !0, m = b(n.status, s, p), _ = e.image || e.imageUrl || e.image_url || "", v = _.startsWith("http") ? _ : c(_, { cdn: !0 }), x = {
197
197
  id: r.id || r.ID || 0,
198
198
  name: r.name || r.googleLocationNameCache || "",
199
199
  address: r.address || r.googleLocationNameCache || "",
@@ -1,4 +1,4 @@
1
- import { F as e, t } from "./timezones-Cq1mLtfM.js";
1
+ import { T as e, t } from "./timezones-C5l0SSHK.js";
2
2
  import * as n from "svelte/internal/client";
3
3
  //#region src/lib/public-calendar-flow/mock-data.ts
4
4
  function r(e, t, n = 0) {