@getmicdrop/venue-calendar 4.3.119 → 4.3.121
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/README.md +818 -818
- package/dist/{AddOnCard-BGFpF6uw.js → AddOnCard-jj59e855.js} +5 -5
- package/dist/{ArrowLeftIcon-pPaJkbnp.js → ArrowLeftIcon-t-CY0sbi.js} +1 -1
- package/dist/{BlockPlaceholder-BgLtwJnm.js → BlockPlaceholder-BmEZ68_q.js} +1 -1
- package/dist/Calendar-hxcQBkTF.js +463 -0
- package/dist/{CalendarFoundryView-CZ36wO24.js → CalendarFoundryView-CSAKDe-F.js} +19 -19
- package/dist/{CalendarIcon-C_6MSRyE.js → CalendarIcon-B5JWs0gm.js} +1 -1
- package/dist/{CartView-9YSoRvTw.js → CartView-CF2y1JDa.js} +719 -716
- package/dist/{CheckIcon-sr8D0z-b.js → CheckIcon-BSwoGox7.js} +1 -1
- package/dist/{Checkout-BLkYIKoR.js → Checkout-2h2K3-bE.js} +378 -378
- package/dist/{Checkout-BS3r4Qii.js → Checkout-BFu5dTw_.js} +328 -328
- package/dist/{CheckoutTimer-DY1NKJXP.js → CheckoutTimer-Bpt5gPyA.js} +2 -2
- package/dist/{ChevronDownIcon-Co6rRQp-.js → ChevronDownIcon-CVZ0usBx.js} +1 -1
- package/dist/{CloseIcon-DpRE5O8y.js → CloseIcon-DUnvWXUY.js} +1 -1
- package/dist/CollectionView-XdNMvMtn.js +141 -0
- package/dist/{Event-DUq4tYBE.js → Event-B_9T21du.js} +684 -680
- package/dist/EventPage-BMnKpciU.js +1201 -0
- package/dist/{Input-CsHb9Z8e.js → Input-BXZmvQ0p.js} +1 -1
- package/dist/{LocationIcon-Dxk7snUC.js → LocationIcon-E-7CQh4E.js} +1 -1
- package/dist/{PasswordInput-BlL0w_yr.js → PasswordInput-DzXNIwRc.js} +1 -1
- package/dist/{RecommendationsRail-Dq9t0T02.js → RecommendationsRail-DrzM8h2r.js} +124 -124
- package/dist/{ScarcityBadge-Bj_YMxz4.js → ScarcityBadge-DjzrzvId.js} +4 -4
- package/dist/{SeriesPage-CaPTQRSo.js → SeriesPage-Ds_FEEZW.js} +2 -2
- package/dist/{Spinner-BgdjQygI.js → Spinner-B2rdbspc.js} +1 -1
- package/dist/{Success-tXgS0BXp.js → Success-Dkak0iM9.js} +201 -201
- package/dist/{TagIcon-Kq7_bapx.js → TagIcon-BY8tK_qA.js} +1 -1
- package/dist/ViewTicketsEmbed-B_fqalQh.js +660 -0
- package/dist/{WarningCircleIcon-BdbAYYi4.js → WarningCircleIcon-C5Lc7qkF.js} +1 -1
- package/dist/{WarningTriIcon-D8otatZe.js → WarningTriIcon-BM8qc9xx.js} +1 -1
- package/dist/api/api.cjs +1 -1
- package/dist/api/api.mjs +258 -252
- package/dist/api/cart-addons.d.ts +2 -1
- package/dist/api/checkout-availability.d.ts +2 -25
- package/dist/api/client.d.ts +4 -7
- package/dist/api/events.d.ts +23 -22
- package/dist/api/gift-cards.d.ts +7 -6
- package/dist/api/orders.d.ts +13 -12
- package/dist/api/promo.d.ts +5 -4
- package/dist/api/surge-queue.d.ts +5 -34
- package/dist/api/venues.d.ts +5 -4
- package/dist/api/waitlist.d.ts +5 -9
- package/dist/{api-DG7ztpYi.js → api-BEYkGabB.js} +174 -169
- package/dist/{copyToClipboard-DSangJpP.js → copyToClipboard-F-akSgaF.js} +1 -1
- package/dist/{createErrorGate.svelte-CEBpRAmr.js → createErrorGate.svelte-CEGaIQeI.js} +1 -1
- package/dist/{datetime-YTw6PkGP.js → datetime-BnKG6Hjm.js} +1 -1
- package/dist/{de-CbwqVvg6.js → de-BHcAXwnM.js} +0 -1
- package/dist/{defaultLabels-CsRGNP7f.js → defaultLabels-BbNEEsF7.js} +0 -1
- package/dist/{defaults-UDvnrGu0.js → defaults-CgsFJvJ2.js} +2 -2
- package/dist/{es-Dxqulvec.js → es-DZ3yceh-.js} +0 -1
- package/dist/{event-CW18bU9h.js → event-DfqUhl5j.js} +1 -1
- package/dist/{event-transform-CyRMeKW_.js → event-transform-Bk1IoYh5.js} +4 -4
- package/dist/{eventStatusStream-Cf7PaLka.js → eventStatusStream-CE0PwO0c.js} +9 -9
- package/dist/{fr-0aCE52FE.js → fr-Dyi163Vk.js} +0 -1
- package/dist/{href-yqxAPbkW.js → href-CfWGAmkP.js} +3 -3
- package/dist/i18n-B705OXZp.js +28 -0
- package/dist/{i18n-MF3q-UBI.js → i18n-BoMUWcCq.js} +4 -4
- package/dist/{id-7ClY2Dwb.js → id-DvFRZVAm.js} +0 -1
- package/dist/{it-z-heX6Hy.js → it-Bh05tcLv.js} +0 -1
- package/dist/{ja-ecBzr5l9.js → ja-CU4PQS4j.js} +0 -1
- package/dist/{ko-Blnq1Wc_.js → ko-DDk6EdWm.js} +0 -1
- package/dist/locales/4.3.121/main/de.js +1 -0
- package/dist/locales/4.3.121/main/es.js +1 -0
- package/dist/locales/4.3.121/main/fr.js +1 -0
- package/dist/locales/4.3.121/main/id.js +1 -0
- package/dist/locales/4.3.121/main/it.js +1 -0
- package/dist/locales/4.3.121/main/ja.js +1 -0
- package/dist/locales/4.3.121/main/ko.js +1 -0
- package/dist/locales/4.3.121/main/nl.js +1 -0
- package/dist/locales/4.3.121/main/pl.js +1 -0
- package/dist/locales/4.3.121/main/pt-br.js +1 -0
- package/dist/locales/4.3.121/main/tr.js +1 -0
- package/dist/locales/4.3.121/main/zh.js +1 -0
- package/dist/{nl-Bm2Lee3j.js → nl-DOSKYHSx.js} +0 -1
- package/dist/{pixels-BAPQbj_Y.js → pixels-Bu5-BISs.js} +8 -8
- package/dist/{pl-DIp-gYhF.js → pl-CkLEymA2.js} +0 -1
- package/dist/{pt-br-BmcVsgbQ.js → pt-br-BHuCQSM-.js} +0 -1
- package/dist/{serverTotals-D57U4Nju.js → serverTotals-B8SJCzxE.js} +1 -1
- package/dist/{showcase-state-options-zfQoPg37.js → showcase-state-options-KO_TYk3I.js} +1 -1
- package/dist/{to-event-card-props-Dn1eDOiJ.js → to-event-card-props-DYIfPN8e.js} +9 -13
- package/dist/{tr-BshxS2DN.js → tr-Bvc34ODh.js} +0 -1
- package/dist/{utils-CdNe7KGe.js → utils-NMx3aPDk.js} +82 -78
- package/dist/venue-calendar.css +1 -1
- package/dist/venue-calendar.es.js +1445 -1445
- package/dist/venue-calendar.iife.js +31 -31
- package/dist/venue-calendar.umd.js +52 -52
- package/dist/{orders-BWVwv3P0.js → widget-key-context-D2zj4sp5.js} +221 -213
- package/dist/{zh-B06ZsUNX.js → zh-K0hOzZ3G.js} +0 -1
- package/package.json +1 -1
- package/src/lib/theme.js +222 -222
- package/dist/Calendar-S2Es6EKK.js +0 -486
- package/dist/CollectionView-DyFDlCmo.js +0 -138
- package/dist/EventPage-m5SlifRu.js +0 -1200
- package/dist/ViewTicketsEmbed-BnuypZ1H.js +0 -660
- package/dist/i18n-B-AwhAMH.js +0 -28
- package/dist/locales/4.3.119/main/de.js +0 -1
- package/dist/locales/4.3.119/main/es.js +0 -1
- package/dist/locales/4.3.119/main/fr.js +0 -1
- package/dist/locales/4.3.119/main/id.js +0 -1
- package/dist/locales/4.3.119/main/it.js +0 -1
- package/dist/locales/4.3.119/main/ja.js +0 -1
- package/dist/locales/4.3.119/main/ko.js +0 -1
- package/dist/locales/4.3.119/main/nl.js +0 -1
- package/dist/locales/4.3.119/main/pl.js +0 -1
- package/dist/locales/4.3.119/main/pt-br.js +0 -1
- package/dist/locales/4.3.119/main/tr.js +0 -1
- package/dist/locales/4.3.119/main/zh.js +0 -1
- /package/dist/locales/{4.3.119 → 4.3.121}/flow/de.js +0 -0
- /package/dist/locales/{4.3.119 → 4.3.121}/flow/es.js +0 -0
- /package/dist/locales/{4.3.119 → 4.3.121}/flow/fr.js +0 -0
- /package/dist/locales/{4.3.119 → 4.3.121}/flow/id.js +0 -0
- /package/dist/locales/{4.3.119 → 4.3.121}/flow/it.js +0 -0
- /package/dist/locales/{4.3.119 → 4.3.121}/flow/ja.js +0 -0
- /package/dist/locales/{4.3.119 → 4.3.121}/flow/ko.js +0 -0
- /package/dist/locales/{4.3.119 → 4.3.121}/flow/nl.js +0 -0
- /package/dist/locales/{4.3.119 → 4.3.121}/flow/pl.js +0 -0
- /package/dist/locales/{4.3.119 → 4.3.121}/flow/pt-br.js +0 -0
- /package/dist/locales/{4.3.119 → 4.3.121}/flow/tr.js +0 -0
- /package/dist/locales/{4.3.119 → 4.3.121}/flow/zh.js +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as e, d as t, h as n, m as r, p as i, v as a } from "./sizing-B7ixYndz.js";
|
|
2
2
|
import { t as o } from "./ExclamationCircleOutline-D3XbhOwM.js";
|
|
3
|
-
import { w as s } from "./datetime-
|
|
3
|
+
import { w as s } from "./datetime-BnKG6Hjm.js";
|
|
4
4
|
import { l as c, u as l, y as u } from "./portalContainment-CeAVqIb-.js";
|
|
5
5
|
import { n as ee, t as d } from "./controlAria-CGb-KeRn.js";
|
|
6
6
|
import "svelte/internal/disclose-version";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { X as e } from "./datetime-
|
|
1
|
+
import { X as e } from "./datetime-BnKG6Hjm.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/DownloadIcon.svelte
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { v as e } from "./sizing-B7ixYndz.js";
|
|
2
|
-
import { t } from "./Input-
|
|
2
|
+
import { t } from "./Input-BXZmvQ0p.js";
|
|
3
3
|
import { l as n, u as r, y as i } from "./portalContainment-CeAVqIb-.js";
|
|
4
4
|
import { t as a } from "./lazyOnce-CCfEO1xG.js";
|
|
5
5
|
import "svelte/internal/disclose-version";
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { X as e, d as t, n } from "./datetime-
|
|
2
|
-
import { t as r } from "./copyToClipboard-
|
|
3
|
-
import { C as i, O as a, g as o, x as s } from "./defaultLabels-
|
|
1
|
+
import { X as e, d as t, n } from "./datetime-BnKG6Hjm.js";
|
|
2
|
+
import { t as r } from "./copyToClipboard-F-akSgaF.js";
|
|
3
|
+
import { C as i, O as a, g as o, x as s } from "./defaultLabels-BbNEEsF7.js";
|
|
4
4
|
import { r as c } from "./Button-VUB2WJ88.js";
|
|
5
|
-
import {
|
|
6
|
-
import { L as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { a as
|
|
10
|
-
import { n as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
5
|
+
import { J as l, U as u, V as d, n as f } from "./widget-key-context-D2zj4sp5.js";
|
|
6
|
+
import { L as p } from "./api-BEYkGabB.js";
|
|
7
|
+
import { t as m } from "./Heading-vOVPxhJF.js";
|
|
8
|
+
import { t as h } from "./Grid-kuP6V0GW.js";
|
|
9
|
+
import { a as g, o as _, t as v } from "./to-event-card-props-DYIfPN8e.js";
|
|
10
|
+
import { n as y } from "./imageUrl-xyMedKrE.js";
|
|
11
|
+
import { t as b } from "./event-DfqUhl5j.js";
|
|
12
|
+
import { t as x } from "./venue-BBoZBuhu.js";
|
|
13
13
|
import "svelte/internal/disclose-version";
|
|
14
|
-
import * as
|
|
14
|
+
import * as S from "svelte/internal/client";
|
|
15
15
|
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/ExportIcon.svelte
|
|
16
|
-
var
|
|
17
|
-
function
|
|
18
|
-
|
|
19
|
-
let r =
|
|
20
|
-
var c =
|
|
16
|
+
var C = S.from_svg("<path d=\"M216,112v96a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V112A16,16,0,0,1,56,96h64v48a8,8,0,0,0,16,0V96h64A16,16,0,0,1,216,112ZM136,43.31l26.34,26.35a8,8,0,0,0,11.32-11.32l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,93.66,69.66L120,43.31V96h16Z\"></path>"), w = S.from_svg("<path d=\"M176,104h24a8,8,0,0,1,8,8v96a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V112a8,8,0,0,1,8-8H80\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></path><polyline points=\"88 64 128 24 168 64\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></polyline><line x1=\"128\" y1=\"24\" x2=\"128\" y2=\"136\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></line>", 1), T = S.from_svg("<svg aria-hidden=\"true\" viewBox=\"0 0 256 256\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\"><!></svg>");
|
|
17
|
+
function E(t, n) {
|
|
18
|
+
S.push(n, !0);
|
|
19
|
+
let r = S.prop(n, "size", 3, "24"), i = S.prop(n, "color", 3, "currentColor"), a = S.prop(n, "class", 3, ""), o = e(), s = S.derived(() => n.weight ?? o?.weight ?? "regular");
|
|
20
|
+
var c = T();
|
|
21
21
|
let l;
|
|
22
|
-
var u =
|
|
23
|
-
var t = S();
|
|
24
|
-
x.append(e, t);
|
|
25
|
-
}, f = (e) => {
|
|
22
|
+
var u = S.child(c), d = (e) => {
|
|
26
23
|
var t = C();
|
|
27
|
-
|
|
24
|
+
S.append(e, t);
|
|
25
|
+
}, f = (e) => {
|
|
26
|
+
var t = w();
|
|
27
|
+
S.next(2), S.append(e, t);
|
|
28
28
|
};
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}),
|
|
32
|
-
|
|
33
|
-
}),
|
|
29
|
+
S.if(u, (e) => {
|
|
30
|
+
S.get(s) === "fill" ? e(d) : e(f, -1);
|
|
31
|
+
}), S.reset(c), S.template_effect(() => {
|
|
32
|
+
S.set_class(c, 0, S.clsx(a())), S.set_attribute(c, "width", r()), S.set_attribute(c, "height", r()), l = S.set_style(c, "", l, { color: i() === "currentColor" ? void 0 : i() });
|
|
33
|
+
}), S.append(t, c), S.pop();
|
|
34
34
|
}
|
|
35
35
|
//#endregion
|
|
36
36
|
//#region src/lib/api/transformers/address.ts
|
|
37
|
-
function
|
|
37
|
+
function D(e) {
|
|
38
38
|
if (!e) return [];
|
|
39
39
|
let t = e.split(",").map((e) => e.trim());
|
|
40
40
|
if (t.length < 2) return [e];
|
|
@@ -45,17 +45,17 @@ function E(e) {
|
|
|
45
45
|
}
|
|
46
46
|
return [t[0], t.slice(1).join(", ")];
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function O(e) {
|
|
49
49
|
return e ? `https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(e)}` : "";
|
|
50
50
|
}
|
|
51
51
|
//#endregion
|
|
52
52
|
//#region src/lib/api/transformers/faq.ts
|
|
53
|
-
var
|
|
54
|
-
function
|
|
53
|
+
var k = "FAQ", A = 40, j = /^q\s*[:.)-]\s*/i, M = /^a\s*[:.)-]\s*/i;
|
|
54
|
+
function N(e) {
|
|
55
55
|
if (Array.isArray(e)) return e.map((e) => ({
|
|
56
56
|
question: String(e?.question ?? "").trim(),
|
|
57
57
|
answer: String(e?.answer ?? "").trim()
|
|
58
|
-
})).filter((e) => e.question || e.answer).slice(0,
|
|
58
|
+
})).filter((e) => e.question || e.answer).slice(0, A);
|
|
59
59
|
if (typeof e != "string") return [];
|
|
60
60
|
let t = e.trim();
|
|
61
61
|
if (!t) return [];
|
|
@@ -63,33 +63,33 @@ function M(e) {
|
|
|
63
63
|
if (n.length === 0) return [];
|
|
64
64
|
let r = [], i = null;
|
|
65
65
|
for (let e of n) {
|
|
66
|
-
let t =
|
|
66
|
+
let t = j.test(e), n = M.test(e);
|
|
67
67
|
if (t || !n && e.endsWith("?")) {
|
|
68
68
|
i && r.push(i), i = {
|
|
69
|
-
question: e.replace(
|
|
69
|
+
question: e.replace(j, "").trim(),
|
|
70
70
|
answer: ""
|
|
71
71
|
};
|
|
72
72
|
continue;
|
|
73
73
|
}
|
|
74
|
-
let a = e.replace(
|
|
74
|
+
let a = e.replace(M, "").trim();
|
|
75
75
|
if (!i) {
|
|
76
76
|
i = {
|
|
77
|
-
question:
|
|
77
|
+
question: k,
|
|
78
78
|
answer: a
|
|
79
79
|
};
|
|
80
80
|
continue;
|
|
81
81
|
}
|
|
82
82
|
i.answer = i.answer ? `${i.answer}\n${a}` : a;
|
|
83
83
|
}
|
|
84
|
-
return i && r.push(i), r.some((e) => e.question !==
|
|
85
|
-
question:
|
|
84
|
+
return i && r.push(i), r.some((e) => e.question !== k) ? r.filter((e) => e.question || e.answer).slice(0, A) : [{
|
|
85
|
+
question: k,
|
|
86
86
|
answer: n.join("\n")
|
|
87
87
|
}];
|
|
88
88
|
}
|
|
89
89
|
//#endregion
|
|
90
90
|
//#region src/lib/api/transformers/series.ts
|
|
91
|
-
function
|
|
92
|
-
let t = e.seriesId ?? e.id ?? 0, r = e, a = i(e.timeZone || r.timezone || r.time_zone), o =
|
|
91
|
+
function P(e) {
|
|
92
|
+
let t = e.seriesId ?? e.id ?? 0, r = e, a = i(e.timeZone || r.timezone || r.time_zone), o = y(e.image || "", { cdn: !0 }), s = (e.occurrences || []).map((e) => {
|
|
93
93
|
let t = e.venue, n = t ? [t.name, t.stageName].filter(Boolean).join(" — ") : "", r = t ? t.googleLocationNameCache || [
|
|
94
94
|
t.address,
|
|
95
95
|
t.city,
|
|
@@ -107,7 +107,7 @@ function N(e) {
|
|
|
107
107
|
...n ? { venueName: n } : {},
|
|
108
108
|
...r ? { venueAddress: r } : {}
|
|
109
109
|
};
|
|
110
|
-
}), c = e.occurrences?.[0], l = c?.startDateTime ? n(c.startDateTime, a) : "", u =
|
|
110
|
+
}), c = e.occurrences?.[0], l = c?.startDateTime ? n(c.startDateTime, a) : "", u = N(e.venue?.faq), d = (e.performers || []).map((e, t) => ({
|
|
111
111
|
id: t + 1,
|
|
112
112
|
displayName: e.displayName || [e.firstName, e.lastName].filter(Boolean).join(" "),
|
|
113
113
|
profileImage: e.profileImage || void 0
|
|
@@ -136,7 +136,7 @@ function N(e) {
|
|
|
136
136
|
tickets: [],
|
|
137
137
|
faqs: u,
|
|
138
138
|
disclaimer: e.venue?.disclaimer || void 0,
|
|
139
|
-
...
|
|
139
|
+
...x(e.venue),
|
|
140
140
|
status: "on_sale",
|
|
141
141
|
eventSeriesId: t,
|
|
142
142
|
seriesOccurrences: s,
|
|
@@ -144,23 +144,23 @@ function N(e) {
|
|
|
144
144
|
isRegistrationEvent: !1,
|
|
145
145
|
totalTicketsRemaining: 0,
|
|
146
146
|
totalTicketsCapacity: 0,
|
|
147
|
-
venueAddressLines:
|
|
148
|
-
googleMapsUrl:
|
|
147
|
+
venueAddressLines: D(f),
|
|
148
|
+
googleMapsUrl: O(f)
|
|
149
149
|
};
|
|
150
150
|
}
|
|
151
151
|
//#endregion
|
|
152
152
|
//#region src/lib/api/transformers/collection.ts
|
|
153
|
-
function
|
|
153
|
+
function F(e) {
|
|
154
154
|
let t = (e.events || []).map((e) => ({
|
|
155
155
|
id: e.id,
|
|
156
156
|
name: e.title || "",
|
|
157
157
|
slug: e.slug || "",
|
|
158
|
-
image:
|
|
158
|
+
image: y(e.image || "", { cdn: !0 }),
|
|
159
159
|
startDateTime: e.startDateTime || "",
|
|
160
160
|
status: e.status || "on_sale",
|
|
161
161
|
timezone: e.timeZone || e.timezone || e.venue?.timeZone || e.venue?.timezone || "",
|
|
162
162
|
venueName: e.venue?.name || ""
|
|
163
|
-
})), n =
|
|
163
|
+
})), n = y(e.coverImage || "", { cdn: !0 });
|
|
164
164
|
return {
|
|
165
165
|
id: e.id,
|
|
166
166
|
title: e.collectionTitle || "",
|
|
@@ -195,7 +195,7 @@ function P(e) {
|
|
|
195
195
|
}
|
|
196
196
|
//#endregion
|
|
197
197
|
//#region src/lib/public-calendar-flow/transform.ts
|
|
198
|
-
function
|
|
198
|
+
function I(e) {
|
|
199
199
|
let t = c(), n = e.remainingCapacity ?? e.quantityRemaining ?? e.quantity ?? 0, r = e.salesBegin || e.salesStart || e.saleBegin || e.onSaleStart, i = e.salesEnd || e.saleEnd || e.onSaleEnd;
|
|
200
200
|
if (n <= 0) return "sold_out";
|
|
201
201
|
let a = s(i);
|
|
@@ -203,7 +203,7 @@ function F(e) {
|
|
|
203
203
|
let l = s(r);
|
|
204
204
|
return l && o(l, t) > 0 ? "coming_soon" : "on_sale";
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function L(e, t, n = !1) {
|
|
207
207
|
let r = (e || "").toLowerCase().replace(/\s+/g, "_");
|
|
208
208
|
if (r === "cancelled" || r === "canceled") return "cancelled";
|
|
209
209
|
if (r === "postponed") return "postponed";
|
|
@@ -217,8 +217,8 @@ function I(e, t, n = !1) {
|
|
|
217
217
|
}
|
|
218
218
|
return r === "sold_out" || r === "soldout" ? "sold_out" : r === "coming_soon" || r === "comingsoon" ? "coming_soon" : r === "sales_ended" || r === "salesended" ? "sales_ended" : "on_sale";
|
|
219
219
|
}
|
|
220
|
-
function
|
|
221
|
-
let r =
|
|
220
|
+
function R(e) {
|
|
221
|
+
let r = b(e), a = r.venue || {}, o = i(r.timeZone || r.timezone || a.timeZone || a.timezone), s = (e.availableTickets || []).map((e) => ({
|
|
222
222
|
id: e.id || e.ID,
|
|
223
223
|
name: e.name || e.title || "",
|
|
224
224
|
description: e.description || void 0,
|
|
@@ -228,14 +228,14 @@ function L(e) {
|
|
|
228
228
|
quantityTotal: e.totalCapacity ?? e.total ?? e.sectionCapacity ?? e.quantity ?? 0,
|
|
229
229
|
minPerOrder: e.minPerOrder ?? e.minQuantity ?? 1,
|
|
230
230
|
maxPerOrder: e.maxPerOrder ?? e.maxQuantity ?? 10,
|
|
231
|
-
status:
|
|
231
|
+
status: I(e),
|
|
232
232
|
salesStartDate: e.salesBegin || e.salesStart || e.saleBegin || e.onSaleStart || void 0,
|
|
233
233
|
salesEndDate: e.salesEnd || e.saleEnd || e.onSaleEnd || void 0,
|
|
234
234
|
isDonation: e.type === 2 || e.ticketType === 2 || e.isDonation === !0,
|
|
235
|
-
isHidden: e.isHidden === !0 || typeof e.visibility == "number" && e.visibility >=
|
|
235
|
+
isHidden: e.isHidden === !0 || typeof e.visibility == "number" && e.visibility >= p.HIDDEN,
|
|
236
236
|
ticketType: e.type || e.ticketType || void 0,
|
|
237
237
|
sectionName: e.sectionName || e.section || void 0
|
|
238
|
-
})), c = s.filter((e) => !e.isHidden && !e.isDonation && e.status === "on_sale"), l = c.reduce((e, t) => e + t.quantityAvailable, 0), u = c.reduce((e, t) => e + t.quantityTotal, 0), d = e.hasPurchasableHiddenTickets === !0,
|
|
238
|
+
})), c = s.filter((e) => !e.isHidden && !e.isDonation && e.status === "on_sale"), l = c.reduce((e, t) => e + t.quantityAvailable, 0), u = c.reduce((e, t) => e + t.quantityTotal, 0), d = e.hasPurchasableHiddenTickets === !0, f = L(r.status, s, d), m = e.image || e.imageUrl || e.image_url || "", h = m.startsWith("http") ? m : y(m, { cdn: !0 }), g = {
|
|
239
239
|
id: a.id || a.ID || 0,
|
|
240
240
|
name: a.name || a.googleLocationNameCache || "",
|
|
241
241
|
address: a.address || a.googleLocationNameCache || "",
|
|
@@ -249,7 +249,7 @@ function L(e) {
|
|
|
249
249
|
displayName: e.displayName || e.name || "",
|
|
250
250
|
profileImage: e.avatar || e.profileImage || void 0,
|
|
251
251
|
role: e.role || void 0
|
|
252
|
-
})),
|
|
252
|
+
})), v = r.faqs ? N(r.faqs) : N(a.faq), S = (r.showtimes || []).filter((e) => e.published !== !1).map((e, t) => ({
|
|
253
253
|
id: e.id ?? e.eventId ?? t + 1,
|
|
254
254
|
slug: e.slug || "",
|
|
255
255
|
startDateTime: e.startDateTime || e.startTime || "",
|
|
@@ -274,10 +274,10 @@ function L(e) {
|
|
|
274
274
|
performers: _,
|
|
275
275
|
tickets: s,
|
|
276
276
|
...Array.isArray(e.addOns) && e.addOns.length > 0 ? { addOns: e.addOns } : {},
|
|
277
|
-
faqs:
|
|
277
|
+
faqs: v,
|
|
278
278
|
disclaimer: r.disclaimer || a.disclaimer || void 0,
|
|
279
|
-
...
|
|
280
|
-
status:
|
|
279
|
+
...x(a),
|
|
280
|
+
status: f,
|
|
281
281
|
salesStatus: r.salesStatus || void 0,
|
|
282
282
|
...d ? { hasPurchasableHiddenTickets: !0 } : {},
|
|
283
283
|
eventSeriesId: r.eventSeriesId || void 0,
|
|
@@ -295,28 +295,28 @@ function L(e) {
|
|
|
295
295
|
displayTicketsLeft: r.displayTicketsLeft ?? !0,
|
|
296
296
|
summary: r.eventSummary || void 0,
|
|
297
297
|
postSalesMessage: r.postSalesMessage || void 0,
|
|
298
|
-
...
|
|
298
|
+
...V(f, r),
|
|
299
299
|
collectionId: r.collectionId || void 0,
|
|
300
|
-
venueAddressLines:
|
|
301
|
-
googleMapsUrl:
|
|
300
|
+
venueAddressLines: D(a.address || a.googleLocationNameCache || ""),
|
|
301
|
+
googleMapsUrl: O(a.address || a.googleLocationNameCache || "")
|
|
302
302
|
};
|
|
303
303
|
}
|
|
304
|
-
function R(e) {
|
|
305
|
-
return N(e);
|
|
306
|
-
}
|
|
307
304
|
function z(e) {
|
|
308
305
|
return P(e);
|
|
309
306
|
}
|
|
310
|
-
function B(e
|
|
307
|
+
function B(e) {
|
|
308
|
+
return F(e);
|
|
309
|
+
}
|
|
310
|
+
function V(e, t) {
|
|
311
311
|
let n = e === "cancelled" ? t.canceledReason : e === "postponed" ? t.postponedReason : void 0;
|
|
312
312
|
return n?.trim() ? { stateMessage: n.trim() } : {};
|
|
313
313
|
}
|
|
314
314
|
//#endregion
|
|
315
315
|
//#region src/lib/public-calendar-flow/shareEventLink.ts
|
|
316
|
-
async function V(e, t) {
|
|
317
|
-
return await H(e, t) ? "shared" : await r(e) ? "copied" : "failed";
|
|
318
|
-
}
|
|
319
316
|
async function H(e, t) {
|
|
317
|
+
return await U(e, t) ? "shared" : await r(e) ? "copied" : "failed";
|
|
318
|
+
}
|
|
319
|
+
async function U(e, t) {
|
|
320
320
|
if (typeof navigator > "u" || typeof navigator.share != "function") return !1;
|
|
321
321
|
try {
|
|
322
322
|
return await navigator.share(t ? {
|
|
@@ -327,7 +327,7 @@ async function H(e, t) {
|
|
|
327
327
|
return e?.name === "AbortError";
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
|
-
function
|
|
330
|
+
function W(e, t, n) {
|
|
331
331
|
let r = encodeURIComponent(e), i = encodeURIComponent(n), a = encodeURIComponent(`${n} ${e}`);
|
|
332
332
|
return {
|
|
333
333
|
messages: `sms:&body=${a}`,
|
|
@@ -339,26 +339,26 @@ function U(e, t, n) {
|
|
|
339
339
|
}
|
|
340
340
|
//#endregion
|
|
341
341
|
//#region src/lib/public-calendar-flow/shareCopyFeedback.svelte.ts
|
|
342
|
-
function
|
|
343
|
-
let t =
|
|
342
|
+
function G({ copiedMs: e = 2500 } = {}) {
|
|
343
|
+
let t = S.state("idle"), n = S.state(""), i;
|
|
344
344
|
async function a(e, t) {
|
|
345
|
-
s(await
|
|
345
|
+
s(await H(e, t), e);
|
|
346
346
|
}
|
|
347
347
|
async function o(e) {
|
|
348
348
|
s(await r(e) ? "copied" : "failed", e);
|
|
349
349
|
}
|
|
350
350
|
function s(r, a) {
|
|
351
|
-
r === "copied" ? (
|
|
351
|
+
r === "copied" ? (S.set(n, ""), S.set(t, "copied"), clearTimeout(i), i = setTimeout(() => S.set(t, "idle"), e)) : r === "failed" && (clearTimeout(i), S.set(t, "failed"), S.set(n, a, !0));
|
|
352
352
|
}
|
|
353
353
|
function c() {
|
|
354
354
|
clearTimeout(i);
|
|
355
355
|
}
|
|
356
356
|
return {
|
|
357
357
|
get copyState() {
|
|
358
|
-
return
|
|
358
|
+
return S.get(t);
|
|
359
359
|
},
|
|
360
360
|
get copyFailedUrl() {
|
|
361
|
-
return
|
|
361
|
+
return S.get(n);
|
|
362
362
|
},
|
|
363
363
|
share: a,
|
|
364
364
|
copy: o,
|
|
@@ -367,19 +367,19 @@ function W({ copiedMs: e = 2500 } = {}) {
|
|
|
367
367
|
}
|
|
368
368
|
//#endregion
|
|
369
369
|
//#region src/lib/api/recommendations.ts
|
|
370
|
-
var
|
|
371
|
-
function
|
|
370
|
+
var K = /* @__PURE__ */ new Map();
|
|
371
|
+
function q(e, t = "event_page", n) {
|
|
372
372
|
if (!e) return Promise.resolve([]);
|
|
373
|
-
let r = `${d()}/events/${e}/recommendations?surface=${t}`, i = n || l() || "", a = `${r}|${i}`, o =
|
|
373
|
+
let r = `${d()}/events/${e}/recommendations?surface=${t}`, i = n || l() || "", a = `${r}|${i}`, o = K.get(a);
|
|
374
374
|
if (o) return o;
|
|
375
375
|
let s = u(r, { widgetKey: i || void 0 }).then((e) => e?.recommendations ?? [], () => []);
|
|
376
|
-
|
|
377
|
-
let c = () =>
|
|
376
|
+
K.set(a, s);
|
|
377
|
+
let c = () => K.delete(a);
|
|
378
378
|
return s.then(c, c), s;
|
|
379
379
|
}
|
|
380
380
|
//#endregion
|
|
381
381
|
//#region src/lib/public-calendar-flow/recommendation-cards.ts
|
|
382
|
-
function
|
|
382
|
+
function J(e) {
|
|
383
383
|
return e.filter((e) => !!e.startsAt).map((e) => ({
|
|
384
384
|
eventID: e.eventId,
|
|
385
385
|
name: e.title,
|
|
@@ -395,21 +395,21 @@ function q(e) {
|
|
|
395
395
|
}
|
|
396
396
|
//#endregion
|
|
397
397
|
//#region src/lib/public-calendar-flow/RecommendationsRail.svelte
|
|
398
|
-
var
|
|
399
|
-
function
|
|
400
|
-
|
|
401
|
-
let n =
|
|
402
|
-
|
|
398
|
+
var Y = S.from_html("<span class=\"self-start rounded-full bg-status-info-bg px-2 py-0.5 text-status-info-text\" data-testid=\"recommendation-why\"> </span>"), X = S.from_html("<div class=\"flex flex-col gap-2\"><!> <!></div>"), Z = S.from_html("<section data-testid=\"recommendations-rail\"><div class=\"mb-4\"><!></div> <!></section>");
|
|
399
|
+
function Q(e, t) {
|
|
400
|
+
S.push(t, !0);
|
|
401
|
+
let n = S.prop(t, "surface", 3, "event_page"), r = S.prop(t, "locale", 3, "en"), i = S.prop(t, "widgetKey", 19, f), a = S.state(S.proxy([]));
|
|
402
|
+
S.user_effect(() => {
|
|
403
403
|
let e = t.eventId, r = !0;
|
|
404
|
-
return
|
|
405
|
-
r && e === t.eventId &&
|
|
404
|
+
return q(e, n(), i()).then((n) => {
|
|
405
|
+
r && e === t.eventId && S.set(a, n, !0);
|
|
406
406
|
}), () => {
|
|
407
407
|
r = !1;
|
|
408
408
|
};
|
|
409
409
|
});
|
|
410
|
-
let
|
|
411
|
-
function
|
|
412
|
-
let n =
|
|
410
|
+
let o = S.derived(() => g(J(S.get(a))));
|
|
411
|
+
function s(e) {
|
|
412
|
+
let n = c(e);
|
|
413
413
|
if (!n) return "";
|
|
414
414
|
switch (n.rule) {
|
|
415
415
|
case "performer": return t.labels.recommendationFromTonightsLineup;
|
|
@@ -420,68 +420,68 @@ function Z(e, t) {
|
|
|
420
420
|
default: return "";
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
|
-
function s(e) {
|
|
424
|
-
return x.get(i).find((t) => t.eventId === e.eventID);
|
|
425
|
-
}
|
|
426
423
|
function c(e) {
|
|
427
|
-
|
|
424
|
+
return S.get(a).find((t) => t.eventId === e.eventID);
|
|
425
|
+
}
|
|
426
|
+
function l(e) {
|
|
427
|
+
let n = c(e)?.url;
|
|
428
428
|
if (n) {
|
|
429
429
|
window.location.assign(n);
|
|
430
430
|
return;
|
|
431
431
|
}
|
|
432
432
|
t.onselect?.(e);
|
|
433
433
|
}
|
|
434
|
-
var
|
|
435
|
-
var n =
|
|
436
|
-
|
|
434
|
+
var u = S.comment(), d = S.first_child(u), p = (e) => {
|
|
435
|
+
var n = Z(), i = S.child(n), a = S.child(i);
|
|
436
|
+
m(a, {
|
|
437
437
|
size: "xl",
|
|
438
438
|
weight: "semibold",
|
|
439
439
|
children: (e, n) => {
|
|
440
|
-
|
|
441
|
-
var r =
|
|
442
|
-
|
|
440
|
+
S.next();
|
|
441
|
+
var r = S.text();
|
|
442
|
+
S.template_effect(() => S.set_text(r, t.labels.recommendationsHeading)), S.append(e, r);
|
|
443
443
|
},
|
|
444
444
|
$$slots: { default: !0 }
|
|
445
|
-
}),
|
|
446
|
-
var
|
|
447
|
-
|
|
445
|
+
}), S.reset(i);
|
|
446
|
+
var c = S.sibling(i, 2);
|
|
447
|
+
h(c, {
|
|
448
448
|
cols: "auto",
|
|
449
449
|
minWidth: "240px",
|
|
450
450
|
gap: "6",
|
|
451
451
|
children: (e, n) => {
|
|
452
|
-
var i =
|
|
453
|
-
|
|
454
|
-
let i =
|
|
455
|
-
let { pillEvents: e, ...i } =
|
|
452
|
+
var i = S.comment(), a = S.first_child(i);
|
|
453
|
+
S.each(a, 17, () => S.get(o), (e) => e.event.eventID, (e, n) => {
|
|
454
|
+
let i = S.derived(() => {
|
|
455
|
+
let { pillEvents: e, ...i } = v(S.get(n), t.labels, r());
|
|
456
456
|
return {
|
|
457
457
|
_pillEvents: e,
|
|
458
458
|
card: i
|
|
459
459
|
};
|
|
460
460
|
});
|
|
461
|
-
var a =
|
|
462
|
-
|
|
461
|
+
var a = X(), o = S.child(a);
|
|
462
|
+
_(o, S.spread_props(() => S.get(i).card, {
|
|
463
463
|
layout: "vertical",
|
|
464
464
|
density: "standard",
|
|
465
465
|
get placeholderImage() {
|
|
466
466
|
return t.placeholderImage;
|
|
467
467
|
},
|
|
468
|
-
onclick: () =>
|
|
468
|
+
onclick: () => l(S.get(n).event)
|
|
469
469
|
}));
|
|
470
|
-
var
|
|
471
|
-
var t =
|
|
472
|
-
|
|
473
|
-
}, d =
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
}),
|
|
477
|
-
}),
|
|
470
|
+
var c = S.sibling(o, 2), u = (e) => {
|
|
471
|
+
var t = Y(), r = S.child(t, !0);
|
|
472
|
+
S.reset(t), S.template_effect((e) => S.set_text(r, e), [() => s(S.get(n).event)]), S.append(e, t);
|
|
473
|
+
}, d = S.derived(() => s(S.get(n).event));
|
|
474
|
+
S.if(c, (e) => {
|
|
475
|
+
S.get(d) && e(u);
|
|
476
|
+
}), S.reset(a), S.append(e, a);
|
|
477
|
+
}), S.append(e, i);
|
|
478
478
|
},
|
|
479
479
|
$$slots: { default: !0 }
|
|
480
|
-
}),
|
|
480
|
+
}), S.reset(n), S.append(e, n);
|
|
481
481
|
};
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
}),
|
|
482
|
+
S.if(d, (e) => {
|
|
483
|
+
S.get(o).length > 0 && e(p);
|
|
484
|
+
}), S.append(e, u), S.pop();
|
|
485
485
|
}
|
|
486
486
|
//#endregion
|
|
487
|
-
export {
|
|
487
|
+
export { R as a, E as c, U as i, G as n, B as o, W as r, z as s, Q as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { X as e, _ as t } from "./datetime-
|
|
2
|
-
import { t as n } from "./WarningCircleIcon-
|
|
3
|
-
import { A as r, I as i, N as a, i as o, j as s, t as c } from "./defaultLabels-
|
|
4
|
-
import { U as l } from "./api-
|
|
1
|
+
import { X as e, _ as t } from "./datetime-BnKG6Hjm.js";
|
|
2
|
+
import { t as n } from "./WarningCircleIcon-C5Lc7qkF.js";
|
|
3
|
+
import { A as r, I as i, N as a, i as o, j as s, t as c } from "./defaultLabels-BbNEEsF7.js";
|
|
4
|
+
import { U as l } from "./api-BEYkGabB.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/SubtractIcon.svelte
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as e } from "./Event-
|
|
1
|
+
import { t as e } from "./Event-B_9T21du.js";
|
|
2
2
|
import { g as t } from "./sizing-B7ixYndz.js";
|
|
3
|
-
import { s as n } from "./RecommendationsRail-
|
|
3
|
+
import { s as n } from "./RecommendationsRail-DrzM8h2r.js";
|
|
4
4
|
import { t as r } from "./__SKIP_NAVIGATION__-AOx8SI54.js";
|
|
5
5
|
import { t as i } from "./__SKIP_PATHS__-C0ixDSSm.js";
|
|
6
6
|
import "svelte/internal/disclose-version";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l as e, v as t } from "./sizing-B7ixYndz.js";
|
|
2
|
-
import { G as n } from "./defaultLabels-
|
|
2
|
+
import { G as n } from "./defaultLabels-BbNEEsF7.js";
|
|
3
3
|
import "svelte/internal/disclose-version";
|
|
4
4
|
import * as r from "svelte/internal/client";
|
|
5
5
|
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Spinner/Spinner.svelte
|