@getmicdrop/venue-calendar 4.2.3 → 4.2.5

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 (102) hide show
  1. package/dist/{ArrowLeftIcon-CxZXP_IT.js → ArrowLeftIcon-BxKUPFOE.js} +1 -1
  2. package/dist/{Badge-Bv_MT-Vt.js → Badge-M6qZyfTF.js} +9 -10
  3. package/dist/BlockPlaceholder-CLdS2Y-c.js +62 -0
  4. package/dist/{Calendar-BKefLfIt.js → Calendar-DwNhbEQY.js} +290 -292
  5. package/dist/CalendarFoundryView-BX5mT6NY.js +23561 -0
  6. package/dist/{CalendarIcon-CLGR_zlO.js → CalendarIcon-jLckZ_4N.js} +1 -1
  7. package/dist/{CartView-CHFlfWS9.js → CartView-B61KRyFq.js} +644 -651
  8. package/dist/Checkout-CoExiUba.js +1809 -0
  9. package/dist/{Checkout-C-A4t1eE.js → Checkout-DlQ2x3L6.js} +97 -97
  10. package/dist/{CheckoutTimer-d3KUbevy.js → CheckoutTimer-Cv9iQj2d.js} +5 -5
  11. package/dist/{ChevronDownIcon-YtBeSqjf.js → ChevronDownIcon-DiZxxS3e.js} +1 -1
  12. package/dist/{ClockIcon-a9tJQ5El.js → ClockIcon-BrWavNGl.js} +1 -1
  13. package/dist/{CloseIcon-DSURK5co.js → CloseIcon-Cmddp2PA.js} +1 -1
  14. package/dist/{CollectionView-BiBMllyw.js → CollectionView-DpkF55yD.js} +12 -13
  15. package/dist/Event-CzNN2jRR.js +3040 -0
  16. package/dist/{EventPage-C7K2yA4v.js → EventPage-DnKNNWk8.js} +167 -168
  17. package/dist/{Heading-Dfo3bjyn.js → Heading-B7VYbbfJ.js} +3 -4
  18. package/dist/Image-DBJAfLYe.js +81 -0
  19. package/dist/{phoneUtils-FnBDCqO0.js → Input-DsWjpYtc.js} +1132 -694
  20. package/dist/{MailIcon-DIrQpcGo.js → MailIcon-gpZMGdBK.js} +1 -1
  21. package/dist/{Modal-DrA1swbF.js → Modal-D4AUdrz8.js} +2 -2
  22. package/dist/{ModalFooter-r1NQNG9P.js → ModalFooter-8Di4-qKC.js} +57 -59
  23. package/dist/{PasswordInput-DB4qa7kS.js → PasswordInput-Buk60yEf.js} +4 -4
  24. package/dist/{ScarcityBadge-BJOm7_Ho.js → ScarcityBadge-DgrS89hq.js} +4 -4
  25. package/dist/{SeriesPage-JVmqUSax.js → SeriesPage-BCovOJ6a.js} +5 -5
  26. package/dist/{Spinner-BwiDys7C.js → Spinner-ChTN7t75.js} +3 -3
  27. package/dist/{Success-DAE6gPZM.js → Success-BRufJqwQ.js} +80 -81
  28. package/dist/{TagIcon-CrTNd8qE.js → TagIcon-C0uTQgU8.js} +1 -1
  29. package/dist/{ViewTicketsEmbed-Zx-mvP2p.js → ViewTicketsEmbed-CfagtvVL.js} +66 -67
  30. package/dist/{WarningCircleIcon-C5-op3Cy.js → WarningCircleIcon-B2hkUrvV.js} +1 -1
  31. package/dist/{WarningTriIcon-BxIQn7c2.js → WarningTriIcon-Boy4IW6-.js} +1 -1
  32. package/dist/{__SKIP_PATHS__-DyyiXBgB.js → __SKIP_PATHS__-DPK-YB-V.js} +1 -1
  33. package/dist/{href-C8WGnROy.js → allowlist-Cu2kP6jt.js} +4 -21
  34. package/dist/api/api.cjs +1 -1
  35. package/dist/api/api.mjs +182 -165
  36. package/dist/api/client.d.ts +16 -0
  37. package/dist/api/events.d.ts +21 -2
  38. package/dist/api/types.d.ts +17 -0
  39. package/dist/{browser-Um8Y6K99.js → browser-25hnscei.js} +7 -7
  40. package/dist/cancel-gqtaw6SK.js +59 -0
  41. package/dist/{colors-MuuDk6KF.js → colors-B9hMXv8l.js} +118 -108
  42. package/dist/{constants-CqrJv6nM.js → constants-DBwdjnEU.js} +77 -74
  43. package/dist/{copyToClipboard-CTS9Wtmo.js → copyToClipboard-BDa2_uNf.js} +1 -1
  44. package/dist/{createI18n-DBUVdZra.js → createI18n-08XGDh1_.js} +1 -1
  45. package/dist/{event-BrptLro8.js → event-Cp5D4ctZ.js} +1 -1
  46. package/dist/{event-transform-jFmHl0Qp.js → event-transform-BFJTgtU9.js} +4 -4
  47. package/dist/{eventStatusStream-D04pcbuu.js → eventStatusStream-SyvhRCtk.js} +6 -6
  48. package/dist/{i18n-CcJmTGJP.js → i18n-4ZGOM8hY.js} +11 -11
  49. package/dist/{labels-Q4CaHsVM.js → labels-99RC9gAv.js} +1 -1
  50. package/dist/{modalManager.svelte-qcVxl7C5.js → modalManager.svelte-BdNsCq6n.js} +2 -2
  51. package/dist/{order-totals-BImtvmoh.js → order-totals-CQ0V7Fdc.js} +13 -15
  52. package/dist/{orders-C8kt6c-E.js → orders-oRqSQXSf.js} +209 -199
  53. package/dist/{pixels-MEc7WYiV.js → pixels-DycN_8bu.js} +7 -8
  54. package/dist/{promo-DtLZRskK.js → promo-BrMcoTYh.js} +3 -3
  55. package/dist/{serverTotals-BO126TTd.js → serverTotals-CpRaEe9K.js} +1 -1
  56. package/dist/{shareCopyFeedback.svelte-Dko8NIbm.js → shareCopyFeedback.svelte-D314p5oA.js} +25 -25
  57. package/dist/{showcase-state-options-BoJxiEsg.js → showcase-state-options-B2XfybZq.js} +1 -1
  58. package/dist/timezones-Cq1mLtfM.js +4170 -0
  59. package/dist/{to-event-card-props-BAHzloEA.js → to-event-card-props-BNBWYYPo.js} +23 -24
  60. package/dist/{utils-Ts4-U13Y.js → utils-CrlClQxc.js} +30 -30
  61. package/dist/venue-calendar.css +1 -1
  62. package/dist/venue-calendar.es.js +1292 -1154
  63. package/dist/venue-calendar.iife.js +63 -64
  64. package/dist/venue-calendar.umd.js +59 -60
  65. package/package.json +220 -220
  66. package/dist/BlockPlaceholder-HZ6Coko5.js +0 -52
  67. package/dist/Button-C4uFgl7L.js +0 -2141
  68. package/dist/CalendarFoundryView-tDmFCrJ3.js +0 -22292
  69. package/dist/Checkout-CRX7dcRr.js +0 -1807
  70. package/dist/CloseOutline-qpVa62mu.js +0 -13
  71. package/dist/CropImage-B0tj2_uN.js +0 -404
  72. package/dist/Event-1ZJVzqFN.js +0 -3034
  73. package/dist/Image-B3cEndLZ.js +0 -87
  74. package/dist/Input-DkYIFK4J.js +0 -487
  75. package/dist/imageOptimizer-CB3wKJU8.js +0 -47
  76. package/dist/sortable.esm--ZtTTTPp.js +0 -1451
  77. package/dist/timezones-C5l0SSHK.js +0 -2030
  78. package/dist/z-index-B0Vk_Mp1.js +0 -27
  79. /package/dist/locales/{4.2.3 → 4.2.5}/flow/de.js +0 -0
  80. /package/dist/locales/{4.2.3 → 4.2.5}/flow/es.js +0 -0
  81. /package/dist/locales/{4.2.3 → 4.2.5}/flow/fr.js +0 -0
  82. /package/dist/locales/{4.2.3 → 4.2.5}/flow/id.js +0 -0
  83. /package/dist/locales/{4.2.3 → 4.2.5}/flow/it.js +0 -0
  84. /package/dist/locales/{4.2.3 → 4.2.5}/flow/ja.js +0 -0
  85. /package/dist/locales/{4.2.3 → 4.2.5}/flow/ko.js +0 -0
  86. /package/dist/locales/{4.2.3 → 4.2.5}/flow/nl.js +0 -0
  87. /package/dist/locales/{4.2.3 → 4.2.5}/flow/pl.js +0 -0
  88. /package/dist/locales/{4.2.3 → 4.2.5}/flow/pt-br.js +0 -0
  89. /package/dist/locales/{4.2.3 → 4.2.5}/flow/tr.js +0 -0
  90. /package/dist/locales/{4.2.3 → 4.2.5}/flow/zh.js +0 -0
  91. /package/dist/locales/{4.2.3 → 4.2.5}/main/de.js +0 -0
  92. /package/dist/locales/{4.2.3 → 4.2.5}/main/es.js +0 -0
  93. /package/dist/locales/{4.2.3 → 4.2.5}/main/fr.js +0 -0
  94. /package/dist/locales/{4.2.3 → 4.2.5}/main/id.js +0 -0
  95. /package/dist/locales/{4.2.3 → 4.2.5}/main/it.js +0 -0
  96. /package/dist/locales/{4.2.3 → 4.2.5}/main/ja.js +0 -0
  97. /package/dist/locales/{4.2.3 → 4.2.5}/main/ko.js +0 -0
  98. /package/dist/locales/{4.2.3 → 4.2.5}/main/nl.js +0 -0
  99. /package/dist/locales/{4.2.3 → 4.2.5}/main/pl.js +0 -0
  100. /package/dist/locales/{4.2.3 → 4.2.5}/main/pt-br.js +0 -0
  101. /package/dist/locales/{4.2.3 → 4.2.5}/main/tr.js +0 -0
  102. /package/dist/locales/{4.2.3 → 4.2.5}/main/zh.js +0 -0
@@ -1,8 +1,7 @@
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";
1
+ import { I as e, tt as t } from "./timezones-Cq1mLtfM.js";
2
+ import { _ as n, v as r, x as i } from "./orders-oRqSQXSf.js";
4
3
  //#region src/lib/embed-bridge.js
5
- var a = e("embed-bridge"), o = "micdrop-calendar", s = Object.freeze({
4
+ var a = t("embed-bridge"), o = "micdrop-calendar", s = Object.freeze({
6
5
  NAVIGATION: "MICDROP_NAVIGATION",
7
6
  RESIZE: "MICDROP_RESIZE",
8
7
  CHECKOUT_COMPLETE: "MICDROP_CHECKOUT_COMPLETE",
@@ -159,12 +158,12 @@ function O(e) {
159
158
  e.dataLayer.push(t);
160
159
  };
161
160
  }
162
- function k(e) {
161
+ function k(t) {
163
162
  let n = D();
164
- if (!(!n || !e) && (O(n), !E)) {
163
+ if (!(!n || !t) && (O(n), !E)) {
165
164
  E = !0;
166
165
  try {
167
- h(`${T}${encodeURIComponent(e)}`), n.gtag?.("js", t()), n.gtag?.("config", e);
166
+ h(`${T}${encodeURIComponent(t)}`), n.gtag?.("js", e()), n.gtag?.("config", t);
168
167
  } catch {}
169
168
  }
170
169
  }
@@ -202,7 +201,7 @@ function j(e) {
202
201
  }
203
202
  //#endregion
204
203
  //#region src/lib/pixels/dispatcher.ts
205
- var M = e("pixels"), N = 1e3, P = 300, F = 100, I = {
204
+ var M = t("pixels"), N = 1e3, P = 300, F = 100, I = {
206
205
  metaPixelId: null,
207
206
  ga4MeasurementId: null
208
207
  }, L = !1, R = [], z = null;
@@ -1,4 +1,4 @@
1
- import { O as e, P as t, j as n, k as r } from "./timezones-C5l0SSHK.js";
1
+ import { R as e, V as t, W as n, z as r } from "./timezones-Cq1mLtfM.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: t }) => n(r(s(e, c, l)), t));
25
- return e(t(u));
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));
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 { F as e, O as t } from "./timezones-C5l0SSHK.js";
1
+ import { G as e, R as t } from "./timezones-Cq1mLtfM.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 { 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";
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-DBwdjnEU.js";
3
+ import { t as s } from "./copyToClipboard-BDa2_uNf.js";
4
+ import { r as c, t as l } from "./event-Cp5D4ctZ.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 _(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) => {
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) => {
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 _(e) {
60
60
  ...n ? { venueName: n } : {},
61
61
  ...r ? { venueAddress: r } : {}
62
62
  };
63
- }), s = e.occurrences?.[0], l = s?.startDateTime ? a(s.startDateTime, r) : "", u = e.venue?.faq, d = [];
63
+ }), s = t.occurrences?.[0], l = s?.startDateTime ? a(s.startDateTime, r) : "", u = t.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 _(e) {
68
68
  question: "FAQ",
69
69
  answer: u
70
70
  }]);
71
- let f = (e.performers || []).map((e, t) => ({
71
+ let f = (t.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 = e.venue?.location || e.venue?.googleLocationNameCache || "";
75
+ })), p = t.venue?.location || t.venue?.googleLocationNameCache || "";
76
76
  return {
77
- id: e.id,
78
- title: e.title || "",
77
+ id: t.id,
78
+ title: t.title || "",
79
79
  slug: "",
80
- description: e.description || e.eventSummary || "",
80
+ description: t.description || t.eventSummary || "",
81
81
  date: l,
82
82
  startDateTime: s?.startDateTime || "",
83
83
  endDateTime: s?.endDateTime || "",
@@ -85,8 +85,8 @@ function _(e) {
85
85
  timezone: r,
86
86
  imageUrl: i,
87
87
  venue: {
88
- id: e.venue?.id || 0,
89
- name: e.venue?.name || "",
88
+ id: t.venue?.id || 0,
89
+ name: t.venue?.name || "",
90
90
  address: p,
91
91
  timezone: r,
92
92
  serviceFeePercentage: 0,
@@ -96,9 +96,9 @@ function _(e) {
96
96
  performers: f,
97
97
  tickets: [],
98
98
  faqs: d,
99
- disclaimer: e.venue?.disclaimer || void 0,
99
+ disclaimer: t.venue?.disclaimer || void 0,
100
100
  status: "on_sale",
101
- eventSeriesId: e.id,
101
+ eventSeriesId: t.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(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;
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;
158
158
  if (a <= 0) return "sold_out";
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";
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";
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(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) => ({
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) => ({
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(e) {
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 = e.hasPurchasableHiddenTickets === !0, m = b(n.status, s, p), _ = e.image || e.imageUrl || e.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 = t.hasPurchasableHiddenTickets === !0, m = b(n.status, s, p), _ = t.image || t.imageUrl || t.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 { T as e, t } from "./timezones-C5l0SSHK.js";
1
+ import { F as e, t } from "./timezones-Cq1mLtfM.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) {