@getmicdrop/venue-calendar 4.3.45 → 4.3.47
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/{Checkout-CAQUpU6x.js → Checkout-BIau3rG4.js} +1 -1
- package/dist/{Checkout-mG4ozhno.js → Checkout-CylGX5N6.js} +1 -1
- package/dist/{CollectionView-CYInIxUP.js → CollectionView-DExSgG2n.js} +1 -1
- package/dist/{Event-D-_CpWv4.js → Event-WTh30vvl.js} +1 -1
- package/dist/{EventPage-BkM8lsWw.js → EventPage-DcR5wsQZ.js} +1 -1
- package/dist/{SeriesPage-9xsOQ72y.js → SeriesPage-Bl33IAf-.js} +1 -1
- package/dist/{Success-8q-4SfIs.js → Success-BgY4ljvC.js} +1 -1
- package/dist/api/api.cjs +1 -1
- package/dist/api/api.mjs +364 -356
- package/dist/{i18n-D-nByq5F.js → i18n-CbpdmhA9.js} +20 -12
- package/dist/venue-calendar.es.js +10 -10
- package/dist/venue-calendar.iife.js +3 -3
- package/dist/venue-calendar.umd.js +2 -2
- package/package.json +2 -2
- /package/dist/locales/{4.3.45 → 4.3.47}/flow/de.js +0 -0
- /package/dist/locales/{4.3.45 → 4.3.47}/flow/es.js +0 -0
- /package/dist/locales/{4.3.45 → 4.3.47}/flow/fr.js +0 -0
- /package/dist/locales/{4.3.45 → 4.3.47}/flow/id.js +0 -0
- /package/dist/locales/{4.3.45 → 4.3.47}/flow/it.js +0 -0
- /package/dist/locales/{4.3.45 → 4.3.47}/flow/ja.js +0 -0
- /package/dist/locales/{4.3.45 → 4.3.47}/flow/ko.js +0 -0
- /package/dist/locales/{4.3.45 → 4.3.47}/flow/nl.js +0 -0
- /package/dist/locales/{4.3.45 → 4.3.47}/flow/pl.js +0 -0
- /package/dist/locales/{4.3.45 → 4.3.47}/flow/pt-br.js +0 -0
- /package/dist/locales/{4.3.45 → 4.3.47}/flow/tr.js +0 -0
- /package/dist/locales/{4.3.45 → 4.3.47}/flow/zh.js +0 -0
- /package/dist/locales/{4.3.45 → 4.3.47}/main/de.js +0 -0
- /package/dist/locales/{4.3.45 → 4.3.47}/main/es.js +0 -0
- /package/dist/locales/{4.3.45 → 4.3.47}/main/fr.js +0 -0
- /package/dist/locales/{4.3.45 → 4.3.47}/main/id.js +0 -0
- /package/dist/locales/{4.3.45 → 4.3.47}/main/it.js +0 -0
- /package/dist/locales/{4.3.45 → 4.3.47}/main/ja.js +0 -0
- /package/dist/locales/{4.3.45 → 4.3.47}/main/ko.js +0 -0
- /package/dist/locales/{4.3.45 → 4.3.47}/main/nl.js +0 -0
- /package/dist/locales/{4.3.45 → 4.3.47}/main/pl.js +0 -0
- /package/dist/locales/{4.3.45 → 4.3.47}/main/pt-br.js +0 -0
- /package/dist/locales/{4.3.45 → 4.3.47}/main/tr.js +0 -0
- /package/dist/locales/{4.3.45 → 4.3.47}/main/zh.js +0 -0
|
@@ -25,7 +25,7 @@ function C(e, t, n = {}) {
|
|
|
25
25
|
disabled: !0,
|
|
26
26
|
reason: "event_past"
|
|
27
27
|
};
|
|
28
|
-
let l = (e?.salesStatus || "").trim().toLowerCase();
|
|
28
|
+
let l = (e?.salesStatus || "").trim().toLowerCase(), u = l === "not_started";
|
|
29
29
|
if (l === "paused") return {
|
|
30
30
|
text: "Sales paused",
|
|
31
31
|
disabled: !0,
|
|
@@ -36,7 +36,7 @@ function C(e, t, n = {}) {
|
|
|
36
36
|
disabled: !0,
|
|
37
37
|
reason: "sales_ended"
|
|
38
38
|
};
|
|
39
|
-
let
|
|
39
|
+
let d = e?.hasPurchasableHiddenTickets === !0 || Array.isArray(t) && t.some(y), f = () => d ? {
|
|
40
40
|
text: i ? "Reserve a spot" : "Get tickets",
|
|
41
41
|
disabled: !1,
|
|
42
42
|
reason: "hidden_only"
|
|
@@ -49,9 +49,9 @@ function C(e, t, n = {}) {
|
|
|
49
49
|
disabled: !0,
|
|
50
50
|
reason: "sold_out"
|
|
51
51
|
};
|
|
52
|
-
if (l === "sold_out") return
|
|
53
|
-
let
|
|
54
|
-
if (
|
|
52
|
+
if (l === "sold_out") return f();
|
|
53
|
+
let m = (t || []).filter((e) => e.salesChannel !== 2 && !e.isHidden && !(typeof e.visibility == "number" && e.visibility >= b.HIDDEN));
|
|
54
|
+
if (m.length === 0) return d ? {
|
|
55
55
|
text: i ? "Reserve a spot" : "Get tickets",
|
|
56
56
|
disabled: !1,
|
|
57
57
|
reason: "hidden_only"
|
|
@@ -60,24 +60,32 @@ function C(e, t, n = {}) {
|
|
|
60
60
|
disabled: !0,
|
|
61
61
|
reason: "no_tickets"
|
|
62
62
|
};
|
|
63
|
-
let
|
|
64
|
-
for (let e of
|
|
63
|
+
let _ = !1, v = !0, x = !0, S = null;
|
|
64
|
+
for (let e of m) {
|
|
65
65
|
let t = g(e.salesBegin || e.salesStart || e.saleBegin || e.onSaleStart), n = g(e.salesEnd || e.saleEnd || e.onSaleEnd), r = e.remainingCapacity ?? e.quantityRemaining ?? e.quantity, i = e.soldOut || r != null && r <= 0, a = t ? p(t, o) > 0 : !1, s = n ? p(n, o) < 0 : !1;
|
|
66
|
-
!i && !a && !s && (
|
|
66
|
+
!i && !a && !s && (_ = !0), i || (v = !1), a || (x = !1), a && t && !i && !s && (!S || p(t, S) < 0) && (S = t);
|
|
67
67
|
}
|
|
68
|
-
return
|
|
68
|
+
return u && _ ? d ? {
|
|
69
|
+
text: i ? "Reserve a spot" : "Get tickets",
|
|
70
|
+
disabled: !1,
|
|
71
|
+
reason: "hidden_only"
|
|
72
|
+
} : {
|
|
73
|
+
text: "On sale soon",
|
|
74
|
+
disabled: !0,
|
|
75
|
+
reason: "coming_soon"
|
|
76
|
+
} : _ ? {
|
|
69
77
|
text: i ? "Reserve a spot" : "Get tickets",
|
|
70
78
|
disabled: !1,
|
|
71
79
|
reason: "available"
|
|
72
|
-
} :
|
|
80
|
+
} : x && S ? d ? {
|
|
73
81
|
text: i ? "Reserve a spot" : "Get tickets",
|
|
74
82
|
disabled: !1,
|
|
75
83
|
reason: "hidden_only"
|
|
76
84
|
} : {
|
|
77
|
-
text: `On sale ${w(
|
|
85
|
+
text: `On sale ${w(S, p(S, o), [e.timezone, e.timeZone].find((e) => !!e && h(e)))}`,
|
|
78
86
|
disabled: !0,
|
|
79
87
|
reason: "coming_soon"
|
|
80
|
-
} :
|
|
88
|
+
} : v ? f() : d ? {
|
|
81
89
|
text: i ? "Reserve a spot" : "Get tickets",
|
|
82
90
|
disabled: !1,
|
|
83
91
|
reason: "hidden_only"
|
|
@@ -1904,7 +1904,7 @@ function Dr(t, n) {
|
|
|
1904
1904
|
}
|
|
1905
1905
|
}
|
|
1906
1906
|
async function hn(e) {
|
|
1907
|
-
e === "series" ? K.get(Qe) || K.set(Qe, (await import("./SeriesPage-
|
|
1907
|
+
e === "series" ? K.get(Qe) || K.set(Qe, (await import("./SeriesPage-Bl33IAf-.js")).default, !0) : e === "collection" ? K.get($e) || K.set($e, (await import("./CollectionView-DExSgG2n.js")).default, !0) : K.get(We) || K.set(We, (await import("./EventPage-DcR5wsQZ.js")).default, !0);
|
|
1908
1908
|
}
|
|
1909
1909
|
async function Q({ type: e, id: t, slug: n = "", data: r = null, initialEventData: i = null, pushHash: a = !0 }) {
|
|
1910
1910
|
Le++, K.set(W, {
|
|
@@ -1965,7 +1965,7 @@ function Dr(t, n) {
|
|
|
1965
1965
|
block: "start",
|
|
1966
1966
|
behavior: "auto"
|
|
1967
1967
|
});
|
|
1968
|
-
}), K.get(nt) || K.set(nt, (await import("./Checkout-
|
|
1968
|
+
}), K.get(nt) || K.set(nt, (await import("./Checkout-BIau3rG4.js")).default, !0);
|
|
1969
1969
|
}
|
|
1970
1970
|
async function xn(e) {
|
|
1971
1971
|
Le++, K.set(G, e || {}, !0), K.set(U, "success"), typeof window < "u" && requestAnimationFrame(() => {
|
|
@@ -1973,7 +1973,7 @@ function Dr(t, n) {
|
|
|
1973
1973
|
block: "start",
|
|
1974
1974
|
behavior: "auto"
|
|
1975
1975
|
});
|
|
1976
|
-
}), K.get(rt) || K.set(rt, (await import("./Success-
|
|
1976
|
+
}), K.get(rt) || K.set(rt, (await import("./Success-BgY4ljvC.js")).default, !0);
|
|
1977
1977
|
}
|
|
1978
1978
|
function Sn() {
|
|
1979
1979
|
K.get(W) ? Q({
|
|
@@ -3357,7 +3357,7 @@ if (typeof window < "u" && typeof HTMLElement < "u") {
|
|
|
3357
3357
|
}
|
|
3358
3358
|
//#endregion
|
|
3359
3359
|
//#region src/lib/VenueCalendar.js
|
|
3360
|
-
var ri = "4.3.
|
|
3360
|
+
var ri = "4.3.47", ii = t("VenueCalendar"), ai = null;
|
|
3361
3361
|
function oi(e = {}) {
|
|
3362
3362
|
typeof e.onError == "function" && (ai = e.onError, j({ onError: (t) => {
|
|
3363
3363
|
try {
|
|
@@ -3388,14 +3388,14 @@ function li(e, t) {
|
|
|
3388
3388
|
return ci.has(e) || ci.set(e, t()), ci.get(e);
|
|
3389
3389
|
}
|
|
3390
3390
|
var $ = {
|
|
3391
|
-
EventPage: () => li("EventPage", () => import("./EventPage-
|
|
3392
|
-
Checkout: () => li("Checkout", () => import("./Checkout-
|
|
3393
|
-
Success: () => li("Success", () => import("./Success-
|
|
3391
|
+
EventPage: () => li("EventPage", () => import("./EventPage-DcR5wsQZ.js").then((e) => e.default)),
|
|
3392
|
+
Checkout: () => li("Checkout", () => import("./Checkout-BIau3rG4.js").then((e) => e.default)),
|
|
3393
|
+
Success: () => li("Success", () => import("./Success-BgY4ljvC.js").then((e) => e.default)),
|
|
3394
3394
|
CartView: () => li("CartView", () => import("./CartView-CVKiyVOl.js").then((e) => e.default)),
|
|
3395
3395
|
ViewTicketsEmbed: () => li("ViewTicketsEmbed", () => import("./ViewTicketsEmbed-DEOXlEri.js").then((e) => e.default)),
|
|
3396
|
-
CheckoutMain: () => li("CheckoutMain", () => import("./Checkout-
|
|
3397
|
-
SeriesPage: () => li("SeriesPage", () => import("./SeriesPage-
|
|
3398
|
-
CollectionView: () => li("CollectionView", () => import("./CollectionView-
|
|
3396
|
+
CheckoutMain: () => li("CheckoutMain", () => import("./Checkout-CylGX5N6.js").then((e) => e.default)),
|
|
3397
|
+
SeriesPage: () => li("SeriesPage", () => import("./SeriesPage-Bl33IAf-.js").then((e) => e.default)),
|
|
3398
|
+
CollectionView: () => li("CollectionView", () => import("./CollectionView-DExSgG2n.js").then((e) => e.default))
|
|
3399
3399
|
};
|
|
3400
3400
|
function ui(e, t) {
|
|
3401
3401
|
let n;
|