@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.
- package/dist/{ArrowLeftIcon-DQ-h5PcH.js → ArrowLeftIcon-CxZXP_IT.js} +1 -1
- package/dist/{Badge-M6qZyfTF.js → Badge-Bv_MT-Vt.js} +10 -9
- package/dist/BlockPlaceholder-HZ6Coko5.js +52 -0
- package/dist/Button-C4uFgl7L.js +2141 -0
- package/dist/{Calendar-BX22svpz.js → Calendar-BKefLfIt.js} +292 -290
- package/dist/CalendarFoundryView-tDmFCrJ3.js +22292 -0
- package/dist/{CalendarIcon-DR197Ioz.js → CalendarIcon-CLGR_zlO.js} +1 -1
- package/dist/{CartView-B2VtVvZM.js → CartView-CHFlfWS9.js} +651 -644
- package/dist/{Checkout-BTqfjvDp.js → Checkout-C-A4t1eE.js} +92 -91
- package/dist/Checkout-CRX7dcRr.js +1807 -0
- package/dist/{CheckoutTimer-Cng5tcGO.js → CheckoutTimer-d3KUbevy.js} +5 -5
- package/dist/{ChevronDownIcon-C_RiK-BW.js → ChevronDownIcon-YtBeSqjf.js} +1 -1
- package/dist/{ClockIcon-BOJENuPq.js → ClockIcon-a9tJQ5El.js} +1 -1
- package/dist/{CloseIcon-Rc7tpX2a.js → CloseIcon-DSURK5co.js} +1 -1
- package/dist/CloseOutline-qpVa62mu.js +13 -0
- package/dist/{CollectionView-A1zP8yz5.js → CollectionView-BiBMllyw.js} +13 -12
- package/dist/CropImage-B0tj2_uN.js +404 -0
- package/dist/Event-1ZJVzqFN.js +3034 -0
- package/dist/{EventPage-hxrPKPhm.js → EventPage-C7K2yA4v.js} +168 -167
- package/dist/{Heading-B7VYbbfJ.js → Heading-Dfo3bjyn.js} +4 -3
- package/dist/Image-B3cEndLZ.js +87 -0
- package/dist/Input-DkYIFK4J.js +487 -0
- package/dist/{MailIcon-rxvK4Wga.js → MailIcon-DIrQpcGo.js} +1 -1
- package/dist/{Modal-BVD2O8hd.js → Modal-DrA1swbF.js} +2 -2
- package/dist/{ModalFooter-CfboEe1M.js → ModalFooter-r1NQNG9P.js} +59 -57
- package/dist/{PasswordInput-BAlq2j97.js → PasswordInput-DB4qa7kS.js} +4 -4
- package/dist/{ScarcityBadge-h7ygRD_C.js → ScarcityBadge-BJOm7_Ho.js} +4 -4
- package/dist/{SeriesPage-D-cwUNZM.js → SeriesPage-JVmqUSax.js} +5 -5
- package/dist/{Spinner-ChTN7t75.js → Spinner-BwiDys7C.js} +3 -3
- package/dist/{Success-CIAX5zmz.js → Success-DAE6gPZM.js} +77 -76
- package/dist/{TagIcon-V0qMu9wS.js → TagIcon-CrTNd8qE.js} +1 -1
- package/dist/{ViewTicketsEmbed-By-IcUJZ.js → ViewTicketsEmbed-Zx-mvP2p.js} +60 -59
- package/dist/{WarningCircleIcon-D32h6VDr.js → WarningCircleIcon-C5-op3Cy.js} +1 -1
- package/dist/{WarningTriIcon-BPDrCiKU.js → WarningTriIcon-BxIQn7c2.js} +1 -1
- package/dist/{__SKIP_PATHS__-DirqE5Xe.js → __SKIP_PATHS__-DyyiXBgB.js} +1 -1
- package/dist/api/types.d.ts +528 -528
- package/dist/{browser-25hnscei.js → browser-Um8Y6K99.js} +7 -7
- package/dist/{colors-5ifWyP6H.js → colors-MuuDk6KF.js} +30 -29
- package/dist/{constants-Dcj3kgZE.js → constants-CqrJv6nM.js} +73 -73
- package/dist/{copyToClipboard-CNxFW3ni.js → copyToClipboard-CTS9Wtmo.js} +1 -1
- package/dist/{createI18n-08XGDh1_.js → createI18n-DBUVdZra.js} +1 -1
- package/dist/{event-Cp5D4ctZ.js → event-BrptLro8.js} +1 -1
- package/dist/{event-transform-DSuEpMxr.js → event-transform-jFmHl0Qp.js} +4 -4
- package/dist/{eventStatusStream-CIZVH5Lp.js → eventStatusStream-D04pcbuu.js} +2 -2
- package/dist/{allowlist-BiUmz2AF.js → href-C8WGnROy.js} +21 -4
- package/dist/{i18n-CEeBd5Hi.js → i18n-CcJmTGJP.js} +11 -11
- package/dist/imageOptimizer-CB3wKJU8.js +47 -0
- package/dist/{labels-CtyfffZI.js → labels-Q4CaHsVM.js} +1 -1
- package/dist/{modalManager.svelte-BH-QJm9M.js → modalManager.svelte-qcVxl7C5.js} +2 -2
- package/dist/{order-totals-hcdvbJvw.js → order-totals-BImtvmoh.js} +15 -13
- package/dist/{orders-tzTe2hNM.js → orders-C8kt6c-E.js} +20 -19
- package/dist/{Input-W-QE9nWi.js → phoneUtils-FnBDCqO0.js} +694 -1132
- package/dist/{pixels-7kl8Fcjl.js → pixels-MEc7WYiV.js} +8 -7
- package/dist/{promo-BrMcoTYh.js → promo-DtLZRskK.js} +3 -3
- package/dist/{serverTotals-CpRaEe9K.js → serverTotals-BO126TTd.js} +1 -1
- package/dist/{shareCopyFeedback.svelte-DsyhrfiP.js → shareCopyFeedback.svelte-Dko8NIbm.js} +25 -25
- package/dist/{showcase-state-options-B2XfybZq.js → showcase-state-options-BoJxiEsg.js} +1 -1
- package/dist/sortable.esm--ZtTTTPp.js +1451 -0
- package/dist/timezones-C5l0SSHK.js +2030 -0
- package/dist/{to-event-card-props-VPne8W4I.js → to-event-card-props-BAHzloEA.js} +24 -23
- package/dist/{utils-DJVlBMbw.js → utils-Ts4-U13Y.js} +3 -3
- package/dist/venue-calendar.css +1 -1
- package/dist/venue-calendar.es.js +200 -199
- package/dist/venue-calendar.iife.js +63 -62
- package/dist/venue-calendar.umd.js +60 -59
- package/dist/z-index-B0Vk_Mp1.js +27 -0
- package/package.json +220 -220
- package/dist/BlockPlaceholder-IOcqxTx2.js +0 -62
- package/dist/CalendarFoundryView-Ct39xn0Q.js +0 -23561
- package/dist/Checkout-CXcjQfbc.js +0 -1805
- package/dist/Event-C_0lUZvV.js +0 -3040
- package/dist/Image-DBJAfLYe.js +0 -81
- package/dist/cancel-Cq2Q8qW7.js +0 -59
- package/dist/timezones-Cq1mLtfM.js +0 -4170
- /package/dist/locales/{4.2.2 → 4.2.3}/flow/de.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.3}/flow/es.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.3}/flow/fr.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.3}/flow/id.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.3}/flow/it.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.3}/flow/ja.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.3}/flow/ko.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.3}/flow/nl.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.3}/flow/pl.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.3}/flow/pt-br.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.3}/flow/tr.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.3}/flow/zh.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.3}/main/de.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.3}/main/es.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.3}/main/fr.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.3}/main/id.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.3}/main/it.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.3}/main/ja.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.3}/main/ko.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.3}/main/nl.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.3}/main/pl.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.3}/main/pt-br.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.3}/main/tr.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.3}/main/zh.js +0 -0
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
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 =
|
|
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(
|
|
162
|
+
function k(e) {
|
|
162
163
|
let n = D();
|
|
163
|
-
if (!(!n || !
|
|
164
|
+
if (!(!n || !e) && (O(n), !E)) {
|
|
164
165
|
E = !0;
|
|
165
166
|
try {
|
|
166
|
-
h(`${T}${encodeURIComponent(
|
|
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 =
|
|
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 {
|
|
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:
|
|
25
|
-
return e(
|
|
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,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { J as i, a, m as o } from "./constants-
|
|
3
|
-
import { t as s } from "./copyToClipboard-
|
|
4
|
-
import { r as c, t as l } from "./event-
|
|
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 _(
|
|
46
|
-
let n =
|
|
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 =
|
|
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 = (
|
|
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 =
|
|
75
|
+
})), p = e.venue?.location || e.venue?.googleLocationNameCache || "";
|
|
76
76
|
return {
|
|
77
|
-
id:
|
|
78
|
-
title:
|
|
77
|
+
id: e.id,
|
|
78
|
+
title: e.title || "",
|
|
79
79
|
slug: "",
|
|
80
|
-
description:
|
|
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:
|
|
89
|
-
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:
|
|
99
|
+
disclaimer: e.venue?.disclaimer || void 0,
|
|
100
100
|
status: "on_sale",
|
|
101
|
-
eventSeriesId:
|
|
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(
|
|
157
|
-
let i =
|
|
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 =
|
|
160
|
-
if (c &&
|
|
161
|
-
let l =
|
|
162
|
-
return l &&
|
|
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(
|
|
179
|
-
let n = l(
|
|
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 =
|
|
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 || "",
|