@getmicdrop/venue-calendar 4.3.121 → 4.3.123
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 +22 -0
- package/dist/{AddOnCard-jj59e855.js → AddOnCard-nTlOLRHQ.js} +21 -21
- package/dist/{ArrowLeftIcon-t-CY0sbi.js → ArrowLeftIcon-D5-uNI0U.js} +2 -2
- package/dist/{BlockPlaceholder-BmEZ68_q.js → BlockPlaceholder-CuoGXCMh.js} +4 -4
- package/dist/{Button-VUB2WJ88.js → Button-BLmw_oMF.js} +11 -11
- package/dist/{Button-B58iYo_t.js → Button-DoHESV6k.js} +5 -5
- package/dist/{Calendar-hxcQBkTF.js → Calendar-C9hahXIM.js} +142 -161
- package/dist/{CalendarFoundryView-CSAKDe-F.js → CalendarFoundryView-Cv-ICYi9.js} +1475 -1473
- package/dist/{CalendarIcon-B5JWs0gm.js → CalendarIcon-5pe0K5ma.js} +2 -2
- package/dist/{CartView-CF2y1JDa.js → CartView-CXp67TQT.js} +287 -284
- package/dist/{ChartBlock-SYOAO1s_.js → ChartBlock-VVDwIPue.js} +36 -36
- package/dist/{CheckIcon-BSwoGox7.js → CheckIcon-FxQwEejD.js} +2 -2
- package/dist/{Checkbox-BtJwg_CF.js → Checkbox-Cn1nEBOm.js} +1 -1
- package/dist/{Checkout-2h2K3-bE.js → Checkout-BOftqs3v.js} +383 -381
- package/dist/Checkout-DQrcjCeh.js +1934 -0
- package/dist/{CheckoutTimer-Bpt5gPyA.js → CheckoutTimer-DPuy8TpI.js} +7 -7
- package/dist/{ChevronDownIcon-CVZ0usBx.js → ChevronDownIcon-ADsji-Ia.js} +2 -2
- package/dist/{ChevronDownOutline-D7YDiKBF.js → ChevronDownOutline-CAboOQwi.js} +1 -1
- package/dist/ChevronRightOutline-BWIIgG7O.js +23 -0
- package/dist/{CloseIcon-DUnvWXUY.js → CloseIcon-BgvYIos-.js} +3 -3
- package/dist/{CloseOutline-qpVa62mu.js → CloseOutline-BJtQbSqD.js} +1 -1
- package/dist/{CollectionView-XdNMvMtn.js → CollectionView-Ds3iGZYx.js} +8 -8
- package/dist/{CropImage-C8W_Xb_V.js → CropImage-Cvl-yxAB.js} +15 -15
- package/dist/{EmptyState-CMFePII9.js → EmptyState-BXE5HfzR.js} +2 -2
- package/dist/{Event-B_9T21du.js → Event-C8Y3zpPM.js} +620 -534
- package/dist/EventCard-DGnCiMw9.js +175 -0
- package/dist/{EventPage-BMnKpciU.js → EventPage-DjP9llB-.js} +294 -270
- package/dist/{ExclamationCircleOutline-D3XbhOwM.js → ExclamationCircleOutline-CmH69h0L.js} +1 -1
- package/dist/{action-test-id-7RXdHucW.js → FallbackBlock-C_-N8OKB.js} +72 -72
- package/dist/{Grid-kuP6V0GW.js → Grid-BKWXQEkM.js} +2 -2
- package/dist/{Heading-vOVPxhJF.js → Heading-CrJEsrFE.js} +4 -4
- package/dist/{Input-BXZmvQ0p.js → Input-komF5aTV.js} +10 -10
- package/dist/{LiveRegion-D9Me4kBs.js → LiveRegion-B_OI5McX.js} +2 -2
- package/dist/{LocationIcon-E-7CQh4E.js → LocationIcon-D7SbJ6q_.js} +3 -3
- package/dist/{Modal-kG0LKgMZ.js → Modal-_a_bJbko.js} +3 -3
- package/dist/{ModalFooter-CM5RDuvB.js → ModalFooter-CJPDF8Zl.js} +15 -15
- package/dist/{ModalHeader-DBVXezSL.js → ModalHeader-B3K9xN0J.js} +3 -3
- package/dist/{PasswordInput-DzXNIwRc.js → PasswordInput-C-SJ5Oix.js} +7 -7
- package/dist/{PhoneInput-DnmN_L03.js → PhoneInput-CYg7S7S7.js} +13 -13
- package/dist/{RecommendationsRail-DrzM8h2r.js → RecommendationsRail-QP0CJ7-3.js} +71 -68
- package/dist/{ScarcityBadge-DjzrzvId.js → ScarcityBadge-Cawy-u79.js} +7 -7
- package/dist/{SeriesPage-Ds_FEEZW.js → SeriesPage-BXLOd-gT.js} +3 -3
- package/dist/{Spinner-B2rdbspc.js → Spinner-DMSIvUd3.js} +3 -3
- package/dist/{Success-Dkak0iM9.js → Success-DCJLQx8J.js} +178 -175
- package/dist/{TagIcon-BY8tK_qA.js → TagIcon-CwCUhnam.js} +2 -2
- package/dist/{Text-CqjLjIF8.js → Text-uKiMcqy6.js} +1 -1
- package/dist/{Textarea-Cymhixzd.js → Textarea-DHm4GHH9.js} +3 -3
- package/dist/{ViewTicketsEmbed-B_fqalQh.js → ViewTicketsEmbed-Cblb2S6M.js} +24 -23
- package/dist/{WarningCircleIcon-C5Lc7qkF.js → WarningCircleIcon-ClRHaffl.js} +4 -4
- package/dist/{WarningTriIcon-BM8qc9xx.js → WarningTriIcon-zhqOKjq8.js} +2 -2
- package/dist/adapter-DwqQNwIc.js +164 -0
- package/dist/api--R8K0DjS.js +489 -0
- package/dist/{browser-DxdP6IWt.js → browser-o9TsPy0d.js} +1 -1
- package/dist/checkoutState-BtNPT28I.js +198 -0
- package/dist/client-CS0e2JHE.js +262 -0
- package/dist/{constants-C6MZgb2S.js → constants-lKAMwRvZ.js} +5 -1
- package/dist/{controlAria-CGb-KeRn.js → controlAria-DSrMfxwY.js} +2 -2
- package/dist/{copyToClipboard-F-akSgaF.js → copyToClipboard-198pSFq9.js} +3 -3
- package/dist/{createErrorGate.svelte-CEGaIQeI.js → createErrorGate.svelte-D96YnnB4.js} +5 -5
- package/dist/cta-bYAHgtET.js +116 -0
- package/dist/{datetime-BnKG6Hjm.js → datetime-B0mHwpmb.js} +53 -53
- package/dist/{de-BHcAXwnM.js → de-C3szl-Vf.js} +10 -4
- package/dist/{de-BPmqZ6ao.js → de-CX7o2WAr.js} +5 -1
- package/dist/{defaultLabels-BbNEEsF7.js → defaultLabels-C8IfDtR9.js} +210 -240
- package/dist/{defaults-CgsFJvJ2.js → defaults-vPJmFph1.js} +7 -7
- package/dist/{dist-bwbfGPKR.js → dist-xFB1K0Ua.js} +2 -2
- package/dist/{es-BV3Sgeg-.js → es-DS1-fjU8.js} +5 -1
- package/dist/{es-DZ3yceh-.js → es-QnJXFKEx.js} +10 -4
- package/dist/{event-DfqUhl5j.js → event-Cn1I6eqc.js} +2 -2
- package/dist/{event-transform-Bk1IoYh5.js → event-transform-DqzYVPvy.js} +18 -18
- package/dist/{eventStatusStream-CE0PwO0c.js → eventStatusStream-D27L0zB8.js} +2 -2
- package/dist/{filepond-plugin-file-validate-size-DNnItZ84.js → filepond-plugin-file-validate-size-DSfmFeGz.js} +1 -1
- package/dist/{filepond-plugin-file-validate-type-CUMTkI8X.js → filepond-plugin-file-validate-type-C44EKcE7.js} +1 -1
- package/dist/{filepond-plugin-image-exif-orientation-GEwHZTBU.js → filepond-plugin-image-exif-orientation-DNdFnriO.js} +1 -1
- package/dist/{filepond-plugin-image-preview-DKfgAnVa.js → filepond-plugin-image-preview-BVewVSQZ.js} +1 -1
- package/dist/{floatingPosition-XIv5DYuP.js → floatingPosition-TQ0h6TbT.js} +6 -6
- package/dist/{fr-Dyi163Vk.js → fr-BVgQDC6c.js} +10 -4
- package/dist/{fr-BJ0VQGEj.js → fr-CN3PiNzU.js} +5 -1
- package/dist/{href-CfWGAmkP.js → href-Cl_PNVlB.js} +24 -24
- package/dist/i18n-BsgEaeHp.js +497 -0
- package/dist/i18n-SDe3ZEhB.js +28 -0
- package/dist/{id-CVXaHHqU.js → id-CPG4tPVY.js} +5 -1
- package/dist/{id-DvFRZVAm.js → id-DCcXxLEY.js} +10 -4
- package/dist/{imageOptimizer-B3fj8_30.js → imageOptimizer-C8racBby.js} +11 -11
- package/dist/{imageUrl-xyMedKrE.js → imageUrl-ClaMf08i.js} +1 -1
- package/dist/{it-C0lzsHje.js → it-CjwnCYFF.js} +5 -1
- package/dist/{it-Bh05tcLv.js → it-CufAwhe3.js} +10 -4
- package/dist/{ja-Dl2r6tQ6.js → ja-C2uiNCJX.js} +5 -1
- package/dist/{ja-CU4PQS4j.js → ja-CMa_nsLY.js} +10 -4
- package/dist/{keyboard-DhCcdIyh.js → keyboard-enDXh6xy.js} +4 -4
- package/dist/{ko-DINqFSE1.js → ko-Bh97byDf.js} +5 -1
- package/dist/{ko-DDk6EdWm.js → ko-BwJHUjqS.js} +10 -4
- package/dist/{lazyOnce-CCfEO1xG.js → lazyOnce-BL5svIPP.js} +1 -1
- package/dist/locales/{4.3.121 → 4.3.123}/flow/de.js +1 -1
- package/dist/locales/{4.3.121 → 4.3.123}/flow/es.js +1 -1
- package/dist/locales/{4.3.121 → 4.3.123}/flow/fr.js +1 -1
- package/dist/locales/{4.3.121 → 4.3.123}/flow/id.js +1 -1
- package/dist/locales/{4.3.121 → 4.3.123}/flow/it.js +1 -1
- package/dist/locales/{4.3.121 → 4.3.123}/flow/ja.js +1 -1
- package/dist/locales/{4.3.121 → 4.3.123}/flow/ko.js +1 -1
- package/dist/locales/{4.3.121 → 4.3.123}/flow/nl.js +1 -1
- package/dist/locales/{4.3.121 → 4.3.123}/flow/pl.js +1 -1
- package/dist/locales/{4.3.121 → 4.3.123}/flow/pt-br.js +1 -1
- package/dist/locales/{4.3.121 → 4.3.123}/flow/tr.js +1 -1
- package/dist/locales/{4.3.121 → 4.3.123}/flow/zh.js +1 -1
- package/dist/locales/4.3.123/main/de.js +1 -0
- package/dist/locales/4.3.123/main/es.js +1 -0
- package/dist/locales/4.3.123/main/fr.js +1 -0
- package/dist/locales/4.3.123/main/id.js +1 -0
- package/dist/locales/4.3.123/main/it.js +1 -0
- package/dist/locales/4.3.123/main/ja.js +1 -0
- package/dist/locales/4.3.123/main/ko.js +1 -0
- package/dist/locales/4.3.123/main/nl.js +1 -0
- package/dist/locales/4.3.123/main/pl.js +1 -0
- package/dist/locales/4.3.123/main/pt-br.js +1 -0
- package/dist/locales/4.3.123/main/tr.js +1 -0
- package/dist/locales/4.3.123/main/zh.js +1 -0
- package/dist/look-island.svelte-Dr-Vl_J1.js +1279 -0
- package/dist/looks/4.3.123/looks.js +226 -0
- package/dist/looks/4.3.123/micdrop-wordmark-BYMG6vLR.svg +1 -0
- package/dist/looks/4.3.123/microphone-Ccv4r-kd.webp +0 -0
- package/dist/looks/4.3.123/superuser-CZF6a5gO.webp +0 -0
- package/dist/looks/4.3.123/treasury-DUE7lZzT.webp +0 -0
- package/dist/looks/4.3.123/user-image-yuS4errP.svg +9 -0
- package/dist/{modalManager.svelte-Cz_6x1Qd.js → modalManager.svelte-BUU99uSO.js} +1 -1
- package/dist/navigation-DlpJzq1c.js +176 -0
- package/dist/{nl-DOSKYHSx.js → nl-BQALrtyB.js} +10 -4
- package/dist/{nl-D92n5tHa.js → nl-ve_OaXOQ.js} +5 -1
- package/dist/normalizers-B8Ruvrlh.js +44 -0
- package/dist/{phoneUtils-CS66SHie.js → phoneUtils-CQvpvMDO.js} +50 -50
- package/dist/{pixels-Bu5-BISs.js → pixels-BZQYpQU0.js} +3 -3
- package/dist/{pl-BlZHcnlS.js → pl-BHBBOz2I.js} +5 -1
- package/dist/{pl-CkLEymA2.js → pl-DaPcPjBE.js} +10 -4
- package/dist/{portal-D-oaEWsY.js → portal-CLBp645_.js} +2 -2
- package/dist/{portalContainment-CeAVqIb-.js → portalContainment-Dz0y6lW6.js} +2 -2
- package/dist/{pt-br-BHuCQSM-.js → pt-br-BxdP86Vr.js} +10 -4
- package/dist/{pt-br-BrxthY0b.js → pt-br-D30dkLzU.js} +5 -1
- package/dist/seo/seo.mjs +9 -9
- package/dist/{serverTotals-B8SJCzxE.js → serverTotals-F3SRKn1I.js} +6 -6
- package/dist/{showcase-state-options-KO_TYk3I.js → showcase-state-options-DRCOUibv.js} +3 -3
- package/dist/{sizing-B7ixYndz.js → sizing-DFjg7-wy.js} +3 -3
- package/dist/{sortable.esm--ZtTTTPp.js → sortable.esm-RsK3eRs6.js} +1 -1
- package/dist/{src-DZgagYE3.js → src-DJtQCBFq.js} +1 -1
- package/dist/to-event-card-props-CBtlDgMr.js +205 -0
- package/dist/{tr-BnAdi4HO.js → tr-CFVBCuqV.js} +5 -1
- package/dist/{tr-Bvc34ODh.js → tr-CSfagpI3.js} +10 -4
- package/dist/types/index.d.ts +21 -4
- package/dist/utils-BXiwc_cU.js +219 -0
- package/dist/venue-calendar.css +1 -1
- package/dist/venue-calendar.es.js +1591 -1895
- package/dist/venue-calendar.iife.js +35 -35
- package/dist/venue-calendar.umd.js +175 -54
- package/dist/widget-key-context-litAkRgC.js +744 -0
- package/dist/{zh-K0hOzZ3G.js → zh-DWMcKVLH.js} +10 -4
- package/dist/{zh-Tg1OTvWs.js → zh-DeEOoOFR.js} +5 -1
- package/package.json +3 -3
- package/src/lib/theme.js +222 -222
- package/dist/Checkout-BFu5dTw_.js +0 -1933
- package/dist/api-BEYkGabB.js +0 -654
- package/dist/i18n-B705OXZp.js +0 -28
- package/dist/i18n-BoMUWcCq.js +0 -608
- package/dist/locales/4.3.121/main/de.js +0 -1
- package/dist/locales/4.3.121/main/es.js +0 -1
- package/dist/locales/4.3.121/main/fr.js +0 -1
- package/dist/locales/4.3.121/main/id.js +0 -1
- package/dist/locales/4.3.121/main/it.js +0 -1
- package/dist/locales/4.3.121/main/ja.js +0 -1
- package/dist/locales/4.3.121/main/ko.js +0 -1
- package/dist/locales/4.3.121/main/nl.js +0 -1
- package/dist/locales/4.3.121/main/pl.js +0 -1
- package/dist/locales/4.3.121/main/pt-br.js +0 -1
- package/dist/locales/4.3.121/main/tr.js +0 -1
- package/dist/locales/4.3.121/main/zh.js +0 -1
- package/dist/to-event-card-props-DYIfPN8e.js +0 -379
- package/dist/utils-NMx3aPDk.js +0 -412
- package/dist/widget-key-context-D2zj4sp5.js +0 -988
|
@@ -0,0 +1,1279 @@
|
|
|
1
|
+
import { m as e, p as t } from "./sizing-DFjg7-wy.js";
|
|
2
|
+
import { B as n, H as r, J as i, K as a, N as o, P as s, _ as c, a as l, d as u, f as d, h as f, i as p, n as m, s as h, t as g } from "./datetime-B0mHwpmb.js";
|
|
3
|
+
import { t as _ } from "./ArrowLeftIcon-D5-uNI0U.js";
|
|
4
|
+
import { L as v, _ as y, f as b, h as x, i as S, t as C, u as w } from "./defaultLabels-C8IfDtR9.js";
|
|
5
|
+
import { t as T } from "./Button-BLmw_oMF.js";
|
|
6
|
+
import { _ as E, p as D } from "./client-CS0e2JHE.js";
|
|
7
|
+
import { n as O, r as k, t as A } from "./adapter-DwqQNwIc.js";
|
|
8
|
+
import { t as j } from "./EmptyState-BXE5HfzR.js";
|
|
9
|
+
import { _ as M, g as N, i as ee } from "./navigation-DlpJzq1c.js";
|
|
10
|
+
import { n as P, t as F } from "./event-transform-DqzYVPvy.js";
|
|
11
|
+
import { a as I, i as L, n as R, o as z, t as B } from "./to-event-card-props-CBtlDgMr.js";
|
|
12
|
+
import { t as te } from "./cta-bYAHgtET.js";
|
|
13
|
+
import { s as ne } from "./checkoutState-BtNPT28I.js";
|
|
14
|
+
import "svelte/internal/disclose-version";
|
|
15
|
+
import * as V from "svelte/internal/client";
|
|
16
|
+
import { mount as H, unmount as re } from "svelte";
|
|
17
|
+
//#region src/lib/browse-widgets/show-price.ts
|
|
18
|
+
var U = { kind: "none" };
|
|
19
|
+
function W(e, { allIn: t }) {
|
|
20
|
+
let n = e.filter((e) => !e.soldOut);
|
|
21
|
+
if (n.length === 0) return U;
|
|
22
|
+
let r = n.filter((e) => !e.payWhatYouWant);
|
|
23
|
+
if (r.length === 0) return { kind: "pwyw" };
|
|
24
|
+
if (r.some((e) => e.price === 0)) return { kind: "free" };
|
|
25
|
+
let i = r.map((e) => ({
|
|
26
|
+
amount: t ? f(e) : e.price,
|
|
27
|
+
fee: e.fee ?? null
|
|
28
|
+
})).filter((e) => e.amount !== null && e.amount > 0);
|
|
29
|
+
if (i.length === 0) return U;
|
|
30
|
+
let a = Math.min(...i.map((e) => e.amount));
|
|
31
|
+
if (new Set(i.map((e) => e.amount)).size > 1 || r.length < n.length) return {
|
|
32
|
+
kind: "from",
|
|
33
|
+
amount: a
|
|
34
|
+
};
|
|
35
|
+
let o = i[0].fee;
|
|
36
|
+
return {
|
|
37
|
+
kind: "one",
|
|
38
|
+
amount: a,
|
|
39
|
+
fee: t && o !== null && o > 0 ? o : null
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function ie(e, t) {
|
|
43
|
+
return W(e.filter((e) => ae(e)).flatMap((e) => e.tickets ?? []), t);
|
|
44
|
+
}
|
|
45
|
+
function ae(e) {
|
|
46
|
+
let t = L(e)?.type;
|
|
47
|
+
return !t || t === "scarcity";
|
|
48
|
+
}
|
|
49
|
+
function oe(e, t = C) {
|
|
50
|
+
switch (e.kind) {
|
|
51
|
+
case "none": return null;
|
|
52
|
+
case "free": return {
|
|
53
|
+
text: t.free || "Free",
|
|
54
|
+
fee: null
|
|
55
|
+
};
|
|
56
|
+
case "pwyw": return {
|
|
57
|
+
text: t.payWhatYouWant || "Pay what you want",
|
|
58
|
+
fee: null
|
|
59
|
+
};
|
|
60
|
+
case "from": return {
|
|
61
|
+
text: (t.fromPrice || "From {price}").replace("{price}", d(e.amount)),
|
|
62
|
+
fee: null
|
|
63
|
+
};
|
|
64
|
+
case "one": return {
|
|
65
|
+
text: d(e.amount),
|
|
66
|
+
fee: e.fee === null ? null : (t.inclFee || "incl. {fee} fee").replace("{fee}", d(e.fee))
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
//#endregion
|
|
71
|
+
//#region src/lib/browse-widgets/show-action.ts
|
|
72
|
+
function se(e, t = C) {
|
|
73
|
+
let { status: n, badge: r, price: i } = e, a = (e = !1) => ({
|
|
74
|
+
badge: r,
|
|
75
|
+
button: null,
|
|
76
|
+
buttonText: null,
|
|
77
|
+
showPrice: !1,
|
|
78
|
+
dim: e
|
|
79
|
+
}), o = (e = !1) => ({
|
|
80
|
+
...a(e),
|
|
81
|
+
button: "details",
|
|
82
|
+
buttonText: t.eventDetails || "Event details"
|
|
83
|
+
});
|
|
84
|
+
switch (n) {
|
|
85
|
+
case "cancelled": return o(!0);
|
|
86
|
+
case "postponed": return o();
|
|
87
|
+
case "sales_ended":
|
|
88
|
+
case "past": return a();
|
|
89
|
+
case "sold_out": return e.waitlist ? {
|
|
90
|
+
...a(),
|
|
91
|
+
button: "waitlist",
|
|
92
|
+
buttonText: t.joinWaitlist || "Join waitlist"
|
|
93
|
+
} : o();
|
|
94
|
+
case "coming_soon": return {
|
|
95
|
+
...a(),
|
|
96
|
+
badge: {
|
|
97
|
+
text: e.onSaleDate ? (t.onSaleOn || "On sale {date}").replace("{date}", e.onSaleDate) : t.statusComingSoon || "Coming soon",
|
|
98
|
+
variant: R("coming_soon")
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
if (i.kind === "none") return a();
|
|
103
|
+
let s = i.kind === "free";
|
|
104
|
+
return {
|
|
105
|
+
badge: r,
|
|
106
|
+
button: s ? "reserve" : "get-tickets",
|
|
107
|
+
buttonText: s ? t.reserveASpot || "Reserve a spot" : t.getTickets || "Get tickets",
|
|
108
|
+
showPrice: !0,
|
|
109
|
+
dim: !1
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
function ce(e, t) {
|
|
113
|
+
return e.button ? t || e.button === "waitlist" || e.button === "details" : !1;
|
|
114
|
+
}
|
|
115
|
+
//#endregion
|
|
116
|
+
//#region src/lib/browse-widgets/look-show.ts
|
|
117
|
+
function le(e) {
|
|
118
|
+
return M(e ?? [], {
|
|
119
|
+
excludeDoorOnly: !0,
|
|
120
|
+
publicOnly: !0
|
|
121
|
+
}).map((e) => ({
|
|
122
|
+
price: u(e.price),
|
|
123
|
+
fee: u(e.fee),
|
|
124
|
+
soldOut: e.remainingCapacity != null && e.remainingCapacity <= 0,
|
|
125
|
+
payWhatYouWant: ne(e)
|
|
126
|
+
}));
|
|
127
|
+
}
|
|
128
|
+
function G(e, t = !0) {
|
|
129
|
+
if (t === !1) return;
|
|
130
|
+
let n;
|
|
131
|
+
for (let t of M(e ?? [], {
|
|
132
|
+
excludeDoorOnly: !0,
|
|
133
|
+
publicOnly: !0
|
|
134
|
+
})) {
|
|
135
|
+
let e = N(t);
|
|
136
|
+
if (e === "scheduled" || e === "sales_ended" || !((u(t.price) ?? 0) > 0)) continue;
|
|
137
|
+
let r = t.remainingCapacity ?? 0, i = t.totalCapacity ?? t.quantity ?? t.remainingCapacity ?? 0, a = c(r, i);
|
|
138
|
+
(a === "urgent" || a === "low") && (!n || a === "urgent" && !n.urgent) && (n = {
|
|
139
|
+
pool: {
|
|
140
|
+
remaining: r,
|
|
141
|
+
total: i
|
|
142
|
+
},
|
|
143
|
+
urgent: a === "urgent"
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
return n?.pool;
|
|
147
|
+
}
|
|
148
|
+
function K(e, t) {
|
|
149
|
+
let n = y(t);
|
|
150
|
+
if (n) return M(e ?? [], {
|
|
151
|
+
excludeDoorOnly: !0,
|
|
152
|
+
publicOnly: !0
|
|
153
|
+
}).map((e) => e.effectiveSalesBegin || e.salesBegin).filter((e) => typeof e == "string" && e.length > 0).filter((e) => {
|
|
154
|
+
let t = y(e);
|
|
155
|
+
return t !== null && b(t, n) > 0;
|
|
156
|
+
}).sort()[0];
|
|
157
|
+
}
|
|
158
|
+
function q(e, t) {
|
|
159
|
+
if (!t || e !== "on_sale") return e;
|
|
160
|
+
let { reason: n } = te(t, t.availableTickets);
|
|
161
|
+
return n === "coming_soon" ? "coming_soon" : n === "sales_ended" ? "sales_ended" : e;
|
|
162
|
+
}
|
|
163
|
+
function ue(e, t = x()) {
|
|
164
|
+
let n = new Map(e.map((e) => [e.id, e]));
|
|
165
|
+
return A(e.map((e) => P(e, { mode: F.BROWSE }))).map((e) => {
|
|
166
|
+
let r = n.get(e.eventID);
|
|
167
|
+
return {
|
|
168
|
+
...e,
|
|
169
|
+
status: q(e.status, r),
|
|
170
|
+
tickets: le(r?.availableTickets),
|
|
171
|
+
scarcestTicket: G(r?.availableTickets, r?.displayTicketsLeft),
|
|
172
|
+
waitlist: r?.waitlistEnabled === !0,
|
|
173
|
+
onSaleAt: K(r?.availableTickets, t)
|
|
174
|
+
};
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
function de({ show: e, showTimes: t, parts: n, layout: r, labels: i, locale: a }) {
|
|
178
|
+
let o = [];
|
|
179
|
+
e.stageName && (n.doors || n.time) && r !== "tile" && o.push(e.stageName);
|
|
180
|
+
let s = n.doors ? p(e.doorsOpenTime, e.timeZone, a) : "";
|
|
181
|
+
return s && o.push((i.doorsAtTime || "Doors {time}").replace("{time}", s)), n.time && r !== "board" && t.forEach((e, t) => o.push(t === 0 ? (i.showAtTime || "Show {time}").replace("{time}", e) : e)), o;
|
|
182
|
+
}
|
|
183
|
+
//#endregion
|
|
184
|
+
//#region src/lib/browse-widgets/LookCard.svelte
|
|
185
|
+
var fe = V.from_html("<span><!></span>"), pe = V.from_html("<span aria-hidden=\"true\"><span class=\"look-card__poster-blank-text svelte-1qztns5\"> </span></span>"), me = V.from_html("<div class=\"look-card__poster svelte-1qztns5\"><!> <!></div>"), he = V.from_html("<h3><a class=\"look-card__link svelte-1qztns5\"> </a></h3>"), ge = V.from_html("<span class=\"look-card__fact svelte-1qztns5\"> </span>"), _e = V.from_html("<p></p>"), J = V.from_html("<p> </p>"), ve = V.from_html("<!> <!>", 1), ye = V.from_html("<span> </span>"), be = V.from_html("<p class=\"look-card__price m-0 svelte-1qztns5\"><span> </span> <!></p>"), xe = V.from_html("<span class=\"look-card__button svelte-1qztns5\"><!></span>"), Se = V.from_html("<div class=\"look-card__buy svelte-1qztns5\"><!> <!></div>"), Ce = V.from_html("<div class=\"look-card__body svelte-1qztns5\"><!> <p> </p> <!> <!> <!></div> <!>", 1), we = V.from_html("<p class=\"look-card__when m-0 svelte-1qztns5\"><span> </span> <span> </span> <span> </span></p>"), Te = V.from_html("<!> <!> <div class=\"look-card__body svelte-1qztns5\"><!> <!> <!></div> <!>", 1), Ee = V.from_html("<p> <!></p>"), De = V.from_html("<!> <!> <div class=\"look-card__body svelte-1qztns5\"><!> <!> <!> <!> <!></div> <!>", 1), Oe = V.from_html("<span class=\"look-card__tile-time svelte-1qztns5\"> </span>"), ke = V.from_html("<span class=\"look-card__tile-times tone-secondary svelte-1qztns5\"></span>"), Ae = V.from_html("<a class=\"look-card__tile-action tone-brand svelte-1qztns5\"> </a>"), je = V.from_html("<!> <!> <p><!> <a class=\"look-card__link look-card__tile-title tone-primary svelte-1qztns5\"> </a> <!></p>", 1), Me = V.from_html("<!> <div class=\"look-card__body svelte-1qztns5\"><!> <!> <!> <!> <!></div> <!>", 1), Ne = V.from_html("<article class=\"look-card svelte-1qztns5\"><div class=\"look-card__frame svelte-1qztns5\"><!></div></article>"), Pe = {
|
|
186
|
+
hash: "svelte-1qztns5",
|
|
187
|
+
code: ".look-card.svelte-1qztns5 {\n /* Local stacking: the stretched title link covers the card, the button\n and badge sit above it so their own clicks land. */--look-z-link: 1;--look-z-above: 2;--look-pad: 1rem;--look-gap: 0.5rem;--look-thumb: 6rem;container-type:inline-size;position:relative;min-width:0;height:100%;overflow:hidden;color:hsl(var(--text-primary));background-color:hsl(var(--card));border:1px solid hsl(var(--border));border-radius:var(--radius-card);transition:border-color var(--motion-fast);}.look-card.svelte-1qztns5:hover {border-color:hsl(var(--text-secondary));}.look-card[data-size='S'].svelte-1qztns5 {--look-pad: 0.75rem;--look-gap: 0.25rem;--look-thumb: 4.5rem;}.look-card[data-size='L'].svelte-1qztns5 {--look-pad: 1.5rem;--look-gap: 0.625rem;--look-thumb: 8rem;}.look-card[data-dim='true'].svelte-1qztns5 .look-card__poster:where(.svelte-1qztns5),\n .look-card[data-dim='true'].svelte-1qztns5 .look-card__title:where(.svelte-1qztns5) {opacity:0.55;}.look-card__frame.svelte-1qztns5 {display:flex;flex-direction:column;height:100%;}.look-card__body.svelte-1qztns5 {display:flex;flex:1;flex-direction:column;gap:var(--look-gap);min-width:0;}\n\n /* === Title: wraps as far as it needs, never clipped === */.look-card__title.svelte-1qztns5 {overflow-wrap:anywhere;hyphens:auto;}.look-card__link.svelte-1qztns5 {color:inherit;text-decoration:none;}.look-card__link.svelte-1qztns5::before {content:'';position:absolute;inset:0;z-index:var(--look-z-link);}.look-card__link.svelte-1qztns5:focus-visible {outline:none;}.look-card.svelte-1qztns5:has(.look-card__link:where(.svelte-1qztns5):focus-visible) {outline:2px solid var(--color-focus-ring, hsl(var(--brand-primary)));outline-offset:2px;}\n\n /* === Facts: wrap between facts, never inside one === */.look-card__facts.svelte-1qztns5 {display:flex;flex-wrap:wrap;gap:0 0.75rem;}.look-card__fact.svelte-1qztns5 {white-space:nowrap;}\n\n /* A narrow card gives each fact its own line, by rule, not only once the\n line runs out of room. */\n @container (width < 22.5rem) {.look-card__facts.svelte-1qztns5 {flex-direction:column;}\n }.look-card__who.svelte-1qztns5 {overflow-wrap:anywhere;}.look-card__desc.svelte-1qztns5 {display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;}\n\n /* === Badge: own row, or the poster's corner === */.look-card__badge.svelte-1qztns5 {display:flex;}.look-card__badge--poster.svelte-1qztns5 {position:absolute;top:0.5rem;left:0.5rem;z-index:var(--look-z-above);}\n\n /* === Poster === */.look-card__poster.svelte-1qztns5 {position:relative;flex:none;aspect-ratio:16 / 9;overflow:hidden;background-color:hsl(var(--muted));}.look-card__poster .look-card__poster-fill {width:100%;height:100%;}\n\n /* The name stops at three lines with an ellipsis, EventCard's fallback\n rule. The box is 16:9 at any width, so the type scales with the box's\n width (cqw) until three lines always fit its height: 3 lines at\n 1.25 × 11cqw is 41.25cqw of a 56.25cqw-tall box. */.look-card__poster-blank.svelte-1qztns5 {container-type:inline-size;display:flex;align-items:center;justify-content:center;height:100%;text-align:center;overflow-wrap:anywhere;background-color:color-mix(\n in srgb,\n hsl(var(--brand-primary)) 14%,\n hsl(var(--bg-tertiary))\n );}.look-card__poster-blank-text.svelte-1qztns5 {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;padding-inline:min(0.75rem, 6cqw);font-size:min(1em, 11cqw);line-height:1.25;}\n\n /* === Price and button: side by side while they fit, then stacked === */.look-card__buy.svelte-1qztns5 {position:relative;z-index:var(--look-z-above);display:flex;flex-wrap:wrap;gap:0.75rem 1rem;align-items:center;justify-content:space-between;pointer-events:none;}.look-card__buy.svelte-1qztns5 > :where(.svelte-1qztns5) {pointer-events:auto;}.look-card__price.svelte-1qztns5 {display:flex;flex-direction:column;min-width:0;}.look-card__price.svelte-1qztns5 span:where(.svelte-1qztns5):first-child {line-height:1.1;}.look-card__fee.svelte-1qztns5 {white-space:nowrap;}.look-card__button.svelte-1qztns5 {display:flex;flex:none;}\n\n /* The label is one line: the button is as wide as its words, and the buy\n row stacks before it would squeeze them. */.look-card__button.svelte-1qztns5 a {white-space:nowrap;}\n\n /* ---------- stack: poster on top ---------- */.look-card[data-layout='stack'].svelte-1qztns5 .look-card__body:where(.svelte-1qztns5) {padding:var(--look-pad) var(--look-pad) 0;}.look-card[data-layout='stack'].svelte-1qztns5 .look-card__buy:where(.svelte-1qztns5) {margin-top:auto;padding:var(--look-gap) var(--look-pad) var(--look-pad);}.look-card[data-layout='stack'].svelte-1qztns5 .look-card__body:where(.svelte-1qztns5):last-child {padding-bottom:var(--look-pad);}\n\n @container (width < 15rem) {.look-card[data-layout='stack'].svelte-1qztns5 .look-card__button:where(.svelte-1qztns5) {flex:1 1 100%;}.look-card[data-layout='stack'].svelte-1qztns5 .look-card__button:where(.svelte-1qztns5) a {flex:1;}\n }\n\n /* An L card wide enough puts the poster beside the words. */\n @container (width >= 40rem) {.look-card[data-layout='stack'][data-size='L'][data-poster='true'].svelte-1qztns5\n .look-card__frame:where(.svelte-1qztns5) {display:grid;grid-template-rows:auto 1fr;grid-template-columns:minmax(0, 1.1fr) minmax(0, 1fr);}.look-card[data-layout='stack'][data-size='L'][data-poster='true'].svelte-1qztns5\n .look-card__poster:where(.svelte-1qztns5) {grid-row:1 / span 2;align-self:start;}.look-card[data-layout='stack'][data-size='L'][data-poster='true'].svelte-1qztns5\n .look-card__buy:where(.svelte-1qztns5) {grid-column:2;}\n }\n\n /* ---------- row: poster left, buy column right ---------- */.look-card[data-layout='row'].svelte-1qztns5 .look-card__frame:where(.svelte-1qztns5) {display:grid;grid-template-columns:auto minmax(0, 1fr);gap:var(--look-gap) calc(var(--look-gap) * 2);align-items:center;padding:calc(var(--look-pad) * 0.75);}.look-card[data-layout='row'][data-poster='false'].svelte-1qztns5 .look-card__frame:where(.svelte-1qztns5) {grid-template-columns:minmax(0, 1fr);}.look-card[data-layout='row'].svelte-1qztns5 .look-card__poster:where(.svelte-1qztns5) {align-self:start;width:var(--look-thumb);border-radius:0.5rem;}.look-card[data-layout='row'].svelte-1qztns5 .look-card__buy:where(.svelte-1qztns5) {grid-column:1 / -1;}\n\n @container (width >= 34rem) {.look-card[data-layout='row'].svelte-1qztns5 .look-card__frame:where(.svelte-1qztns5) {grid-template-columns:auto minmax(0, 1fr) auto;}.look-card[data-layout='row'][data-poster='false'].svelte-1qztns5 .look-card__frame:where(.svelte-1qztns5) {grid-template-columns:minmax(0, 1fr) auto;}.look-card[data-layout='row'].svelte-1qztns5 .look-card__buy:where(.svelte-1qztns5) {grid-column:auto;flex-direction:column;align-items:flex-end;text-align:right;}.look-card[data-layout='row'].svelte-1qztns5 .look-card__price:where(.svelte-1qztns5) {align-items:flex-end;}\n }\n\n @container (width < 22rem) {\n /* A large thumb would leave the text a sliver beside it. */.look-card[data-layout='row'].svelte-1qztns5 .look-card__poster:where(.svelte-1qztns5) {width:min(var(--look-thumb), 5rem);}.look-card[data-layout='row'].svelte-1qztns5 .look-card__button:where(.svelte-1qztns5) {flex:1 1 100%;}.look-card[data-layout='row'].svelte-1qztns5 .look-card__button:where(.svelte-1qztns5) a {flex:1;}\n }\n\n /* ---------- board: the time leads ----------\n Narrow: the time on its own line, poster and words side by side, price\n and button below them with the button full width. Wide: one row, each\n part in its own named column, so a part switched off leaves no empty\n column for the next part to slide into. */.look-card[data-layout='board'].svelte-1qztns5 .look-card__frame:where(.svelte-1qztns5) {display:grid;grid-template-columns:auto minmax(0, 1fr);grid-template-areas:'time time'\n 'poster body'\n 'buy buy';gap:var(--look-gap) calc(var(--look-gap) * 2);align-items:center;padding:var(--look-pad);}.look-card[data-layout='board'][data-poster='false'].svelte-1qztns5 .look-card__frame:where(.svelte-1qztns5) {grid-template-columns:minmax(0, 1fr);grid-template-areas:'time'\n 'body'\n 'buy';}.look-card[data-layout='board'].svelte-1qztns5 .look-card__time:where(.svelte-1qztns5) {grid-area:time;white-space:nowrap;}.look-card[data-layout='board'].svelte-1qztns5 .look-card__poster:where(.svelte-1qztns5) {grid-area:poster;align-self:start;width:var(--look-thumb);border-radius:0.5rem;}.look-card[data-layout='board'].svelte-1qztns5 .look-card__body:where(.svelte-1qztns5) {grid-area:body;}.look-card[data-layout='board'].svelte-1qztns5 .look-card__buy:where(.svelte-1qztns5) {grid-area:buy;}.look-card[data-layout='board'].svelte-1qztns5 .look-card__button:where(.svelte-1qztns5) {flex:1 1 100%;}.look-card[data-layout='board'].svelte-1qztns5 .look-card__button:where(.svelte-1qztns5) a {flex:1;}.look-card__period.svelte-1qztns5 {margin-left:0.25rem;}\n\n /* One row once the words keep a real column beside the time, poster and\n buy column; an L card needs more room for its larger parts. */\n @container (width >= 36rem) {.look-card[data-layout='board'].svelte-1qztns5:not([data-size='L']) .look-card__frame:where(.svelte-1qztns5) {grid-template-columns:var(--board-cols);grid-template-areas:var(--board-areas);}\n }\n\n @container (width >= 46rem) {.look-card[data-layout='board'][data-size='L'].svelte-1qztns5 .look-card__frame:where(.svelte-1qztns5) {grid-template-columns:var(--board-cols);grid-template-areas:var(--board-areas);}\n }.look-card[data-layout='board'].svelte-1qztns5 {--board-cols: 7.5rem auto minmax(0, 1fr) auto;--board-areas: 'time poster body buy';}.look-card[data-layout='board'][data-time='false'].svelte-1qztns5 {--board-cols: auto minmax(0, 1fr) auto;--board-areas: 'poster body buy';}.look-card[data-layout='board'][data-poster='false'].svelte-1qztns5 {--board-cols: 7.5rem minmax(0, 1fr) auto;--board-areas: 'time body buy';}.look-card[data-layout='board'][data-poster='false'][data-time='false'].svelte-1qztns5 {--board-cols: minmax(0, 1fr) auto;--board-areas: 'body buy';}\n\n @container (width >= 36rem) {.look-card[data-layout='board'].svelte-1qztns5:not([data-size='L']) .look-card__buy:where(.svelte-1qztns5) {flex-direction:column;align-items:flex-end;}.look-card[data-layout='board'].svelte-1qztns5:not([data-size='L']) .look-card__button:where(.svelte-1qztns5) {flex:none;}\n }\n\n @container (width >= 46rem) {.look-card[data-layout='board'][data-size='L'].svelte-1qztns5 .look-card__buy:where(.svelte-1qztns5) {flex-direction:column;align-items:flex-end;}.look-card[data-layout='board'][data-size='L'].svelte-1qztns5 .look-card__button:where(.svelte-1qztns5) {flex:none;}\n }\n\n /* ---------- ticket: the date set big ---------- */.look-card[data-layout='ticket'].svelte-1qztns5 .look-card__frame:where(.svelte-1qztns5) {gap:1rem;padding:calc(var(--look-pad) * 1.25);}.look-card[data-layout='ticket'].svelte-1qztns5 .look-card__bigdate:where(.svelte-1qztns5) {overflow-wrap:anywhere;}.look-card[data-layout='ticket'].svelte-1qztns5 .look-card__buy:where(.svelte-1qztns5) {padding-top:1rem;border-top:1px solid hsl(var(--border));}\n\n @container (width < 24rem) {.look-card[data-layout='ticket'].svelte-1qztns5 .look-card__button:where(.svelte-1qztns5) {flex:1 1 100%;}.look-card[data-layout='ticket'].svelte-1qztns5 .look-card__button:where(.svelte-1qztns5) a {flex:1;}\n }\n\n /* ---------- strip: one line ---------- */.look-card[data-layout='strip'].svelte-1qztns5 .look-card__frame:where(.svelte-1qztns5) {display:flex;flex-flow:row wrap;gap:0.75rem 1rem;align-items:center;padding:0.75rem;}.look-card[data-layout='strip'].svelte-1qztns5 .look-card__when:where(.svelte-1qztns5) {display:flex;flex:none;flex-direction:column;align-items:center;min-width:3.5rem;line-height:1.1;}.look-card[data-layout='strip'].svelte-1qztns5 .look-card__poster:where(.svelte-1qztns5) {width:5.5rem;border-radius:0.375rem;}.look-card[data-layout='strip'].svelte-1qztns5 .look-card__body:where(.svelte-1qztns5) {flex:1 1 12rem;}\n\n /* Narrow: the poster shrinks to a thumb rather than leaving. */\n @container (width < 30rem) {.look-card[data-layout='strip'].svelte-1qztns5 .look-card__poster:where(.svelte-1qztns5) {width:3.5rem;}\n }\n\n @container (width < 20rem) {.look-card[data-layout='strip'].svelte-1qztns5 .look-card__buy:where(.svelte-1qztns5),\n .look-card[data-layout='strip'].svelte-1qztns5 .look-card__button:where(.svelte-1qztns5) {flex:1 1 100%;}.look-card[data-layout='strip'].svelte-1qztns5 .look-card__button:where(.svelte-1qztns5) a {flex:1;}\n }\n\n /* ---------- tile: a show inside a calendar day ---------- */.look-card[data-layout='tile'].svelte-1qztns5 {border-radius:0.375rem;}.look-card[data-layout='tile'].svelte-1qztns5 .look-card__frame:where(.svelte-1qztns5) {gap:0.25rem;padding:0.25rem;}.look-card[data-layout='tile'].svelte-1qztns5 .look-card__poster:where(.svelte-1qztns5) {border-radius:0.25rem;}.look-card__tile-text.svelte-1qztns5 {display:flex;flex-direction:column;gap:0.125rem;overflow-wrap:anywhere;}.look-card__tile-action.svelte-1qztns5 {position:relative;z-index:var(--look-z-above);text-decoration:underline;}.look-card__tile-title.svelte-1qztns5 {font-weight:600;}\n\n /* A day square is always narrow: each fact on its own line, as on a card\n under 22.5rem. */.look-card__tile-times.svelte-1qztns5 {display:flex;flex-direction:column;}.look-card__tile-time.svelte-1qztns5 {white-space:nowrap;}\n\n @media (prefers-reduced-motion: reduce) {.look-card.svelte-1qztns5 {transition:none;}\n }"
|
|
188
|
+
};
|
|
189
|
+
function Y(n, r) {
|
|
190
|
+
V.push(r, !0), V.append_styles(n, Pe);
|
|
191
|
+
let i = (e, t) => {
|
|
192
|
+
let n = V.derived_safe_equal(() => V.fallback(t?.(), !1));
|
|
193
|
+
var r = V.comment(), i = V.first_child(r), a = (e) => {
|
|
194
|
+
var t = fe();
|
|
195
|
+
let r;
|
|
196
|
+
var i = V.child(t);
|
|
197
|
+
{
|
|
198
|
+
let e = V.derived(() => V.get(n) ? "default" : "outlined");
|
|
199
|
+
S(i, {
|
|
200
|
+
as: "span",
|
|
201
|
+
get variant() {
|
|
202
|
+
return V.get(D).badge.variant;
|
|
203
|
+
},
|
|
204
|
+
size: "sm",
|
|
205
|
+
get tone() {
|
|
206
|
+
return V.get(e);
|
|
207
|
+
},
|
|
208
|
+
children: (e, t) => {
|
|
209
|
+
V.next();
|
|
210
|
+
var n = V.text();
|
|
211
|
+
V.template_effect(() => V.set_text(n, V.get(D).badge.text)), V.append(e, n);
|
|
212
|
+
},
|
|
213
|
+
$$slots: { default: !0 }
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
V.reset(t), V.template_effect(() => r = V.set_class(t, 1, "look-card__badge svelte-1qztns5", null, r, { "look-card__badge--poster": V.get(n) })), V.append(e, t);
|
|
217
|
+
};
|
|
218
|
+
V.if(i, (e) => {
|
|
219
|
+
V.get(D).badge && e(a);
|
|
220
|
+
}), V.append(e, r);
|
|
221
|
+
}, a = (t) => {
|
|
222
|
+
var n = V.comment(), r = V.first_child(n), a = (t) => {
|
|
223
|
+
var n = me(), r = V.child(n), a = (e) => {
|
|
224
|
+
v(e, {
|
|
225
|
+
get src() {
|
|
226
|
+
return V.get(w).imageUrl;
|
|
227
|
+
},
|
|
228
|
+
alt: "",
|
|
229
|
+
fit: "blur-backdrop",
|
|
230
|
+
branded: !1,
|
|
231
|
+
class: "look-card__poster-fill h-full"
|
|
232
|
+
});
|
|
233
|
+
}, o = (t) => {
|
|
234
|
+
var n = pe(), r = V.child(n), i = V.child(r, !0);
|
|
235
|
+
V.reset(r), V.reset(n), V.template_effect(() => {
|
|
236
|
+
V.set_class(n, 1, `look-card__poster-blank ${e.label ?? ""} tone-primary`, "svelte-1qztns5"), V.set_text(i, V.get(w).title);
|
|
237
|
+
}), V.append(t, n);
|
|
238
|
+
};
|
|
239
|
+
V.if(r, (e) => {
|
|
240
|
+
V.get(w).imageUrl ? e(a) : e(o, -1);
|
|
241
|
+
});
|
|
242
|
+
var s = V.sibling(r, 2), c = (e) => {
|
|
243
|
+
i(e, () => !0);
|
|
244
|
+
};
|
|
245
|
+
V.if(s, (e) => {
|
|
246
|
+
V.get(R) && e(c);
|
|
247
|
+
}), V.reset(n), V.append(t, n);
|
|
248
|
+
};
|
|
249
|
+
V.if(r, (e) => {
|
|
250
|
+
V.get(F) && e(a);
|
|
251
|
+
}), V.append(t, n);
|
|
252
|
+
}, o = (e, t = V.noop) => {
|
|
253
|
+
var n = he(), i = V.child(n), a = V.child(i, !0);
|
|
254
|
+
V.reset(i), V.reset(n), V.template_effect(() => {
|
|
255
|
+
V.set_class(n, 1, `look-card__title ${t() ?? ""} tone-primary m-0`, "svelte-1qztns5"), V.set_attribute(i, "href", V.get(A)), V.set_attribute(i, "target", r.target), V.set_attribute(i, "rel", r.target === "_blank" ? "noopener external" : "external"), V.set_attribute(i, "aria-label", V.get(w).ariaLabel), V.set_text(a, V.get(w).title);
|
|
256
|
+
}), V.delegated("click", i, G), V.append(e, n);
|
|
257
|
+
}, s = (e) => {
|
|
258
|
+
var t = V.comment(), n = V.first_child(t), r = (e) => {
|
|
259
|
+
var t = _e();
|
|
260
|
+
V.each(t, 21, () => V.get(M), V.index, (e, t) => {
|
|
261
|
+
var n = ge(), r = V.child(n, !0);
|
|
262
|
+
V.reset(n), V.template_effect(() => V.set_text(r, V.get(t))), V.append(e, n);
|
|
263
|
+
}), V.reset(t), V.template_effect(() => V.set_class(t, 1, `look-card__facts ${W[d()] ?? ""} tone-secondary m-0`, "svelte-1qztns5")), V.append(e, t);
|
|
264
|
+
};
|
|
265
|
+
V.if(n, (e) => {
|
|
266
|
+
V.get(M).length && e(r);
|
|
267
|
+
}), V.append(e, t);
|
|
268
|
+
}, c = (e) => {
|
|
269
|
+
var t = ve(), n = V.first_child(t), r = (e) => {
|
|
270
|
+
var t = J(), n = V.child(t, !0);
|
|
271
|
+
V.reset(t), V.template_effect(() => {
|
|
272
|
+
V.set_class(t, 1, `look-card__who ${W[d()] ?? ""} tone-primary m-0`, "svelte-1qztns5"), V.set_text(n, V.get(P));
|
|
273
|
+
}), V.append(e, t);
|
|
274
|
+
};
|
|
275
|
+
V.if(n, (e) => {
|
|
276
|
+
V.get(P) && e(r);
|
|
277
|
+
});
|
|
278
|
+
var i = V.sibling(n, 2), a = (e) => {
|
|
279
|
+
var t = J(), n = V.child(t, !0);
|
|
280
|
+
V.reset(t), V.template_effect(() => {
|
|
281
|
+
V.set_class(t, 1, `look-card__desc ${W[d()] ?? ""} tone-secondary m-0`, "svelte-1qztns5"), V.set_text(n, V.get(N));
|
|
282
|
+
}), V.append(e, t);
|
|
283
|
+
};
|
|
284
|
+
V.if(i, (e) => {
|
|
285
|
+
V.get(N) && e(a);
|
|
286
|
+
}), V.append(e, t);
|
|
287
|
+
}, u = (t) => {
|
|
288
|
+
let n = V.derived(() => ce(V.get(D), r.parts.button));
|
|
289
|
+
var i = V.comment(), a = V.first_child(i), o = (t) => {
|
|
290
|
+
var r = Se(), i = V.child(r), a = (t) => {
|
|
291
|
+
var n = be(), r = V.child(n), i = V.child(r, !0);
|
|
292
|
+
V.reset(r);
|
|
293
|
+
var a = V.sibling(r, 2), o = (t) => {
|
|
294
|
+
var n = ye(), r = V.child(n, !0);
|
|
295
|
+
V.reset(n), V.template_effect(() => {
|
|
296
|
+
V.set_class(n, 1, `look-card__fee ${e.caption ?? ""} tone-secondary`, "svelte-1qztns5"), V.set_text(r, V.get(O).fee);
|
|
297
|
+
}), V.append(t, n);
|
|
298
|
+
};
|
|
299
|
+
V.if(a, (e) => {
|
|
300
|
+
V.get(O).fee && e(o);
|
|
301
|
+
}), V.reset(n), V.template_effect(() => {
|
|
302
|
+
V.set_class(r, 1, `${ae[d()] ?? ""} tone-primary`, "svelte-1qztns5"), V.set_text(i, V.get(O).text);
|
|
303
|
+
}), V.append(t, n);
|
|
304
|
+
};
|
|
305
|
+
V.if(i, (e) => {
|
|
306
|
+
V.get(O) && e(a);
|
|
307
|
+
});
|
|
308
|
+
var o = V.sibling(i, 2), s = (e) => {
|
|
309
|
+
var t = xe(), n = V.child(t);
|
|
310
|
+
{
|
|
311
|
+
let e = V.derived(() => V.get(D).button === "get-tickets" || V.get(D).button === "reserve" ? "default" : "outline");
|
|
312
|
+
T(n, {
|
|
313
|
+
get href() {
|
|
314
|
+
return V.get(A);
|
|
315
|
+
},
|
|
316
|
+
get variant() {
|
|
317
|
+
return V.get(e);
|
|
318
|
+
},
|
|
319
|
+
get size() {
|
|
320
|
+
return le[d()];
|
|
321
|
+
},
|
|
322
|
+
onclick: G,
|
|
323
|
+
get "aria-label"() {
|
|
324
|
+
return `${V.get(D).buttonText ?? ""}: ${V.get(w).title ?? ""}`;
|
|
325
|
+
},
|
|
326
|
+
children: (e, t) => {
|
|
327
|
+
V.next();
|
|
328
|
+
var n = V.text();
|
|
329
|
+
V.template_effect(() => V.set_text(n, V.get(D).buttonText)), V.append(e, n);
|
|
330
|
+
},
|
|
331
|
+
$$slots: { default: !0 }
|
|
332
|
+
});
|
|
333
|
+
}
|
|
334
|
+
V.reset(t), V.append(e, t);
|
|
335
|
+
};
|
|
336
|
+
V.if(o, (e) => {
|
|
337
|
+
V.get(n) && e(s);
|
|
338
|
+
}), V.reset(r), V.append(t, r);
|
|
339
|
+
};
|
|
340
|
+
V.if(a, (e) => {
|
|
341
|
+
(V.get(O) || V.get(n)) && e(o);
|
|
342
|
+
}), V.append(t, i);
|
|
343
|
+
}, d = V.prop(r, "size", 3, "M"), f = V.prop(r, "layout", 3, "stack"), p = V.prop(r, "badgeOnPoster", 3, !0), m = V.prop(r, "allIn", 3, !0), _ = V.prop(r, "labels", 3, C), y = V.derived(() => r.instances?.length ? r.instances : [r.show]), b = V.derived(() => V.get(y).length > 1), x = V.derived(() => V.get(b) ? I(V.get(y), _()) : L(r.show, _())), w = V.derived(() => B({
|
|
344
|
+
event: r.show,
|
|
345
|
+
instances: V.get(y),
|
|
346
|
+
isSeries: V.get(b)
|
|
347
|
+
}, _(), r.locale, {
|
|
348
|
+
poster: r.parts.poster,
|
|
349
|
+
date: r.parts.date,
|
|
350
|
+
description: r.parts.description
|
|
351
|
+
})), E = V.derived(() => ie(V.get(y), { allIn: m() })), D = V.derived(() => se({
|
|
352
|
+
status: V.get(x)?.type ?? null,
|
|
353
|
+
badge: V.get(w).badge,
|
|
354
|
+
price: V.get(E),
|
|
355
|
+
waitlist: r.show.waitlist,
|
|
356
|
+
onSaleDate: r.show.onSaleAt ? g(r.show.onSaleAt, r.show.timeZone, r.locale) : null
|
|
357
|
+
}, _())), O = V.derived(() => r.parts.price && V.get(D).showPrice ? oe(V.get(E), _()) : null), A = V.derived(() => r.href ?? ee(r.show.eventID, r.show.slug ?? null)), j = V.derived(() => r.show.displayStartTime === !1 ? [] : V.get(y).map((e) => h(e.startDateTime, e.timeZone, r.locale)).filter(Boolean)), M = V.derived(() => de({
|
|
358
|
+
show: r.show,
|
|
359
|
+
showTimes: V.get(j),
|
|
360
|
+
parts: r.parts,
|
|
361
|
+
layout: f(),
|
|
362
|
+
labels: _(),
|
|
363
|
+
locale: r.locale
|
|
364
|
+
})), N = V.derived(() => {
|
|
365
|
+
let e = k(V.get(w).description, re);
|
|
366
|
+
return e && e !== V.get(w).title.trim() ? e : "";
|
|
367
|
+
}), P = V.derived(() => r.parts.performers && r.show.performerNames?.length ? r.show.performerNames.join(", ") : ""), F = V.derived(() => r.parts.poster && f() !== "ticket"), R = V.derived(() => p() && V.get(F) && f() === "stack"), z = V.derived(() => f() === "board" && r.parts.time && V.get(j).length > 0), te = (e) => l(e.startDateTime, e.timeZone, {
|
|
368
|
+
weekday: "long",
|
|
369
|
+
month: "short",
|
|
370
|
+
day: "numeric"
|
|
371
|
+
}, r.locale), ne = (e) => ({
|
|
372
|
+
weekday: l(e.startDateTime, e.timeZone, { weekday: "short" }, r.locale),
|
|
373
|
+
day: l(e.startDateTime, e.timeZone, { day: "numeric" }, r.locale),
|
|
374
|
+
month: l(e.startDateTime, e.timeZone, { month: "short" }, r.locale)
|
|
375
|
+
}), H = V.derived(() => {
|
|
376
|
+
let e = V.get(j)[0] ?? "", t = e.match(/^(.*\d)\s*(\D+)$/);
|
|
377
|
+
return t ? {
|
|
378
|
+
main: t[1],
|
|
379
|
+
period: t[2]
|
|
380
|
+
} : {
|
|
381
|
+
main: e,
|
|
382
|
+
period: ""
|
|
383
|
+
};
|
|
384
|
+
}), re = 220, U = {
|
|
385
|
+
S: `${e.label} ${t.strong}`,
|
|
386
|
+
M: e.subheading,
|
|
387
|
+
L: e.heading
|
|
388
|
+
}, W = {
|
|
389
|
+
S: e.caption,
|
|
390
|
+
M: e.body,
|
|
391
|
+
L: e.bodyLarge
|
|
392
|
+
}, ae = {
|
|
393
|
+
S: e.subheading,
|
|
394
|
+
M: e.heading,
|
|
395
|
+
L: e.title
|
|
396
|
+
}, le = {
|
|
397
|
+
S: "sm",
|
|
398
|
+
M: "md",
|
|
399
|
+
L: "lg"
|
|
400
|
+
};
|
|
401
|
+
function G(e) {
|
|
402
|
+
e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (r.onopen ? (e.preventDefault(), r.onopen(r.show)) : r.target === "_blank" && (e.preventDefault(), window.open(V.get(A), "_blank", "noopener")));
|
|
403
|
+
}
|
|
404
|
+
var K = Ne(), q = V.child(K), ue = V.child(q), Y = (t) => {
|
|
405
|
+
var n = Ce(), a = V.first_child(n), l = V.child(a);
|
|
406
|
+
i(l);
|
|
407
|
+
var d = V.sibling(l, 2), f = V.child(d, !0);
|
|
408
|
+
V.reset(d);
|
|
409
|
+
var p = V.sibling(d, 2);
|
|
410
|
+
o(p, () => e.subheading);
|
|
411
|
+
var m = V.sibling(p, 2);
|
|
412
|
+
s(m);
|
|
413
|
+
var h = V.sibling(m, 2);
|
|
414
|
+
c(h), V.reset(a);
|
|
415
|
+
var g = V.sibling(a, 2);
|
|
416
|
+
u(g), V.template_effect((t) => {
|
|
417
|
+
V.set_class(d, 1, `look-card__bigdate ${e.headline ?? ""} tone-primary m-0`, "svelte-1qztns5"), V.set_text(f, t);
|
|
418
|
+
}, [() => te(r.show)]), V.append(t, n);
|
|
419
|
+
}, Fe = (t) => {
|
|
420
|
+
var n = Te(), c = V.first_child(n), l = (t) => {
|
|
421
|
+
let n = V.derived(() => ne(r.show));
|
|
422
|
+
var i = we(), a = V.child(i), o = V.child(a, !0);
|
|
423
|
+
V.reset(a);
|
|
424
|
+
var s = V.sibling(a, 2), c = V.child(s, !0);
|
|
425
|
+
V.reset(s);
|
|
426
|
+
var l = V.sibling(s, 2), u = V.child(l, !0);
|
|
427
|
+
V.reset(l), V.reset(i), V.template_effect(() => {
|
|
428
|
+
V.set_class(a, 1, `${e.eyebrow ?? ""} tone-brand`, "svelte-1qztns5"), V.set_text(o, V.get(n).weekday), V.set_class(s, 1, `${e.title ?? ""} tone-primary`, "svelte-1qztns5"), V.set_text(c, V.get(n).day), V.set_class(l, 1, `${e.caption ?? ""} tone-secondary`, "svelte-1qztns5"), V.set_text(u, V.get(n).month);
|
|
429
|
+
}), V.append(t, i);
|
|
430
|
+
};
|
|
431
|
+
V.if(c, (e) => {
|
|
432
|
+
r.parts.date && e(l);
|
|
433
|
+
});
|
|
434
|
+
var f = V.sibling(c, 2);
|
|
435
|
+
a(f);
|
|
436
|
+
var p = V.sibling(f, 2), m = V.child(p);
|
|
437
|
+
i(m);
|
|
438
|
+
var h = V.sibling(m, 2);
|
|
439
|
+
o(h, () => U[d()]);
|
|
440
|
+
var g = V.sibling(h, 2);
|
|
441
|
+
s(g), V.reset(p);
|
|
442
|
+
var _ = V.sibling(p, 2);
|
|
443
|
+
u(_), V.append(t, n);
|
|
444
|
+
}, Ie = (t) => {
|
|
445
|
+
var n = De(), l = V.first_child(n), f = (t) => {
|
|
446
|
+
var n = Ee(), r = V.child(n, !0), i = V.sibling(r), a = (t) => {
|
|
447
|
+
var n = ye(), r = V.child(n, !0);
|
|
448
|
+
V.reset(n), V.template_effect(() => {
|
|
449
|
+
V.set_class(n, 1, `look-card__period ${e.label ?? ""} tone-secondary`, "svelte-1qztns5"), V.set_text(r, V.get(H).period);
|
|
450
|
+
}), V.append(t, n);
|
|
451
|
+
};
|
|
452
|
+
V.if(i, (e) => {
|
|
453
|
+
V.get(H).period && e(a);
|
|
454
|
+
}), V.reset(n), V.template_effect(() => {
|
|
455
|
+
V.set_class(n, 1, `look-card__time ${(d() === "S" ? e.title : e.headline) ?? ""} tone-primary m-0`, "svelte-1qztns5"), V.set_text(r, V.get(H).main);
|
|
456
|
+
}), V.append(t, n);
|
|
457
|
+
};
|
|
458
|
+
V.if(l, (e) => {
|
|
459
|
+
V.get(z) && e(f);
|
|
460
|
+
});
|
|
461
|
+
var p = V.sibling(l, 2);
|
|
462
|
+
a(p);
|
|
463
|
+
var m = V.sibling(p, 2), h = V.child(m);
|
|
464
|
+
i(h);
|
|
465
|
+
var g = V.sibling(h, 2);
|
|
466
|
+
o(g, () => U[d()]);
|
|
467
|
+
var _ = V.sibling(g, 2), v = (e) => {
|
|
468
|
+
var t = J(), n = V.child(t, !0);
|
|
469
|
+
V.reset(t), V.template_effect(() => {
|
|
470
|
+
V.set_class(t, 1, `${W[d()] ?? ""} tone-secondary m-0`, "svelte-1qztns5"), V.set_text(n, V.get(w).dateLabel);
|
|
471
|
+
}), V.append(e, t);
|
|
472
|
+
};
|
|
473
|
+
V.if(_, (e) => {
|
|
474
|
+
r.parts.date && V.get(w).dateLabel && e(v);
|
|
475
|
+
});
|
|
476
|
+
var y = V.sibling(_, 2);
|
|
477
|
+
s(y);
|
|
478
|
+
var b = V.sibling(y, 2);
|
|
479
|
+
c(b), V.reset(m);
|
|
480
|
+
var x = V.sibling(m, 2);
|
|
481
|
+
u(x), V.append(t, n);
|
|
482
|
+
}, Le = (t) => {
|
|
483
|
+
var n = je(), o = V.first_child(n);
|
|
484
|
+
a(o);
|
|
485
|
+
var s = V.sibling(o, 2);
|
|
486
|
+
i(s);
|
|
487
|
+
var c = V.sibling(s, 2), l = V.child(c), u = (e) => {
|
|
488
|
+
var t = ke();
|
|
489
|
+
V.each(t, 21, () => V.get(M), V.index, (e, t) => {
|
|
490
|
+
var n = Oe(), r = V.child(n, !0);
|
|
491
|
+
V.reset(n), V.template_effect(() => V.set_text(r, V.get(t))), V.append(e, n);
|
|
492
|
+
}), V.reset(t), V.append(e, t);
|
|
493
|
+
};
|
|
494
|
+
V.if(l, (e) => {
|
|
495
|
+
V.get(M).length && e(u);
|
|
496
|
+
});
|
|
497
|
+
var d = V.sibling(l, 2), f = V.child(d, !0);
|
|
498
|
+
V.reset(d);
|
|
499
|
+
var p = V.sibling(d, 2), m = (e) => {
|
|
500
|
+
var t = Ae(), n = V.child(t, !0);
|
|
501
|
+
V.reset(t), V.template_effect(() => {
|
|
502
|
+
V.set_attribute(t, "href", V.get(A)), V.set_attribute(t, "target", r.target), V.set_attribute(t, "rel", r.target === "_blank" ? "noopener external" : "external"), V.set_attribute(t, "aria-label", `${V.get(D).buttonText ?? ""}: ${V.get(w).title ?? ""}`), V.set_text(n, V.get(D).buttonText);
|
|
503
|
+
}), V.delegated("click", t, G), V.append(e, t);
|
|
504
|
+
}, h = V.derived(() => ce(V.get(D), !1));
|
|
505
|
+
V.if(p, (e) => {
|
|
506
|
+
V.get(h) && e(m);
|
|
507
|
+
}), V.reset(c), V.template_effect(() => {
|
|
508
|
+
V.set_class(c, 1, `look-card__tile-text ${e.caption ?? ""} m-0`, "svelte-1qztns5"), V.set_attribute(d, "href", V.get(A)), V.set_attribute(d, "target", r.target), V.set_attribute(d, "rel", r.target === "_blank" ? "noopener external" : "external"), V.set_attribute(d, "aria-label", V.get(w).ariaLabel), V.set_text(f, V.get(w).title);
|
|
509
|
+
}), V.delegated("click", d, G), V.append(t, n);
|
|
510
|
+
}, X = (t) => {
|
|
511
|
+
var n = Me(), r = V.first_child(n);
|
|
512
|
+
a(r);
|
|
513
|
+
var l = V.sibling(r, 2), f = V.child(l), p = (e) => {
|
|
514
|
+
i(e);
|
|
515
|
+
};
|
|
516
|
+
V.if(f, (e) => {
|
|
517
|
+
V.get(R) || e(p);
|
|
518
|
+
});
|
|
519
|
+
var m = V.sibling(f, 2), h = (t) => {
|
|
520
|
+
var n = J(), r = V.child(n, !0);
|
|
521
|
+
V.reset(n), V.template_effect(() => {
|
|
522
|
+
V.set_class(n, 1, `look-card__date ${e.eyebrow ?? ""} tone-secondary m-0`, "svelte-1qztns5"), V.set_text(r, V.get(w).dateLabel);
|
|
523
|
+
}), V.append(t, n);
|
|
524
|
+
};
|
|
525
|
+
V.if(m, (e) => {
|
|
526
|
+
V.get(w).dateLabel && e(h);
|
|
527
|
+
});
|
|
528
|
+
var g = V.sibling(m, 2);
|
|
529
|
+
o(g, () => U[d()]);
|
|
530
|
+
var _ = V.sibling(g, 2);
|
|
531
|
+
s(_);
|
|
532
|
+
var v = V.sibling(_, 2);
|
|
533
|
+
c(v), V.reset(l);
|
|
534
|
+
var y = V.sibling(l, 2);
|
|
535
|
+
u(y), V.append(t, n);
|
|
536
|
+
};
|
|
537
|
+
V.if(ue, (e) => {
|
|
538
|
+
f() === "ticket" ? e(Y) : f() === "strip" ? e(Fe, 1) : f() === "board" ? e(Ie, 2) : f() === "tile" ? e(Le, 3) : e(X, -1);
|
|
539
|
+
}), V.reset(q), V.reset(K), V.template_effect(() => {
|
|
540
|
+
V.set_attribute(K, "data-layout", f()), V.set_attribute(K, "data-size", d()), V.set_attribute(K, "data-dim", V.get(D).dim), V.set_attribute(K, "data-poster", V.get(F)), V.set_attribute(K, "data-time", V.get(z));
|
|
541
|
+
}), V.append(n, K), V.pop();
|
|
542
|
+
}
|
|
543
|
+
V.delegate(["click"]);
|
|
544
|
+
//#endregion
|
|
545
|
+
//#region src/lib/browse-widgets/LookMonth.svelte
|
|
546
|
+
var Fe = V.from_html("<div class=\"look-month__agenda-day svelte-2vsog9\"><h3> </h3> <!></div>"), Ie = V.from_html("<!> ", 1), Le = V.from_html("<div class=\"look-month__open svelte-2vsog9\"><span><!></span> <!></div>"), X = V.from_html("<p> </p>"), Re = V.from_html("<span><!></span>"), ze = V.from_html("<p> </p> <!> <!>", 1), Be = V.from_html("<div class=\"look-month__cell svelte-2vsog9\"><!></div>"), Ve = V.from_html("<div class=\"look-month svelte-2vsog9\"><div class=\"pt-1.5 pr-1.5\"><!></div> <!> <div class=\"look-month__grid svelte-2vsog9\" role=\"grid\"><!> <!></div> <div class=\"look-month__agenda svelte-2vsog9\"></div></div>"), He = {
|
|
547
|
+
hash: "svelte-2vsog9",
|
|
548
|
+
code: ".look-month.svelte-2vsog9 {display:grid;gap:0.75rem;}.look-month__grid.svelte-2vsog9 {display:grid;grid-template-columns:repeat(7, minmax(0, 1fr));overflow:hidden;border:1px solid hsl(var(--border));border-radius:var(--radius-card);}.look-month__weekday.svelte-2vsog9 {padding:0.5rem;border-bottom:1px solid hsl(var(--border));}.look-month__cell.svelte-2vsog9 {display:grid;gap:0.375rem;align-content:start;min-width:0;min-height:7rem;padding:0.375rem;border-right:1px solid hsl(var(--border));border-bottom:1px solid hsl(var(--border));}.look-month__cell.svelte-2vsog9:nth-of-type(7n) {border-right:0;}.look-month__cell[data-outside='true'].svelte-2vsog9 {background-color:hsl(var(--muted));}.look-month__cell[data-past='true'].svelte-2vsog9 {opacity:0.5;}.look-month__day.svelte-2vsog9 {color:hsl(var(--text-secondary));}.look-month__cell[data-today='true'].svelte-2vsog9 .look-month__day:where(.svelte-2vsog9) {color:hsl(var(--brand-primary));}.look-month__agenda.svelte-2vsog9 {display:none;gap:1rem;}.look-month__open.svelte-2vsog9 {display:grid;gap:0.75rem;justify-items:start;}.look-month__open.svelte-2vsog9 > .look-month__agenda-day:where(.svelte-2vsog9) {justify-self:stretch;}.look-month__grid[data-hidden='true'].svelte-2vsog9 {display:none;}.look-month__agenda-day.svelte-2vsog9 {display:grid;gap:0.5rem;}.look-month__agenda-day.svelte-2vsog9 h3[data-today='true']:where(.svelte-2vsog9) {color:hsl(var(--brand-primary));}\n\n /* Too narrow for seven readable squares: the month as a list. */\n @container (width < 40rem) {.look-month__grid.svelte-2vsog9,\n .look-month__open.svelte-2vsog9 {display:none;}.look-month__agenda.svelte-2vsog9 {display:grid;}\n }"
|
|
549
|
+
};
|
|
550
|
+
function Ue(t, c) {
|
|
551
|
+
V.push(c, !0), V.append_styles(t, He);
|
|
552
|
+
let u = V.prop(c, "allIn", 3, !0), d = V.prop(c, "labels", 3, C), f = V.prop(c, "today", 3, !1), p = V.derived(() => c.shows[0]?.timeZone ?? "America/Chicago"), h = V.derived(() => m(c.nowIso, V.get(p))), g = V.state(0), v = V.state(null), y = V.derived(() => {
|
|
553
|
+
let [e, t] = V.get(h).split("-").map(Number);
|
|
554
|
+
return n(e, t - 1 + V.get(g), 1);
|
|
555
|
+
}), b = V.derived(() => V.get(y).getFullYear()), x = V.derived(() => V.get(y).getMonth()), S = V.derived(() => {
|
|
556
|
+
let e = {};
|
|
557
|
+
for (let t of c.shows) (e[t.date] ??= []).push(t);
|
|
558
|
+
return e;
|
|
559
|
+
}), w = V.derived(() => o(V.get(b), V.get(x)).map(({ day: e, inMonth: t }) => {
|
|
560
|
+
let n = r(e);
|
|
561
|
+
return {
|
|
562
|
+
key: n,
|
|
563
|
+
day: e.getDate(),
|
|
564
|
+
inMonth: t,
|
|
565
|
+
isPast: n < V.get(h),
|
|
566
|
+
isToday: n === V.get(h),
|
|
567
|
+
groups: t ? z(V.get(S)[n] ?? []).map((e) => ({
|
|
568
|
+
show: e.event,
|
|
569
|
+
instances: e.instances
|
|
570
|
+
})) : []
|
|
571
|
+
};
|
|
572
|
+
})), E = V.derived(() => V.get(w).filter((e) => e.inMonth && !e.isPast && e.groups.length).slice(0, c.maxDays ?? V.get(w).length)), D = V.derived(() => V.get(w).find((e) => e.key === V.get(v) && e.inMonth && e.groups.length)), k = V.derived(() => s(a()).map((e) => i(e, { weekday: "short" }, c.locale))), A = (e) => ({
|
|
573
|
+
...e,
|
|
574
|
+
date: !1
|
|
575
|
+
}), j = (e) => l(e.startDateTime, e.timeZone, {
|
|
576
|
+
weekday: "long",
|
|
577
|
+
month: "short",
|
|
578
|
+
day: "numeric"
|
|
579
|
+
}, c.locale);
|
|
580
|
+
var M = Ve();
|
|
581
|
+
{
|
|
582
|
+
let t = (t, n = V.noop) => {
|
|
583
|
+
var r = Fe(), i = V.child(r), a = V.child(i, !0);
|
|
584
|
+
V.reset(i);
|
|
585
|
+
var o = V.sibling(i, 2);
|
|
586
|
+
V.each(o, 17, () => n().groups, (e) => e.show.eventID, (e, t) => {
|
|
587
|
+
{
|
|
588
|
+
let n = V.derived(() => A(c.parts));
|
|
589
|
+
Y(e, {
|
|
590
|
+
get show() {
|
|
591
|
+
return V.get(t).show;
|
|
592
|
+
},
|
|
593
|
+
get instances() {
|
|
594
|
+
return V.get(t).instances;
|
|
595
|
+
},
|
|
596
|
+
get parts() {
|
|
597
|
+
return V.get(n);
|
|
598
|
+
},
|
|
599
|
+
size: "S",
|
|
600
|
+
layout: "row",
|
|
601
|
+
get allIn() {
|
|
602
|
+
return u();
|
|
603
|
+
},
|
|
604
|
+
get target() {
|
|
605
|
+
return c.target;
|
|
606
|
+
},
|
|
607
|
+
get onopen() {
|
|
608
|
+
return c.onopen;
|
|
609
|
+
},
|
|
610
|
+
get labels() {
|
|
611
|
+
return d();
|
|
612
|
+
},
|
|
613
|
+
get locale() {
|
|
614
|
+
return c.locale;
|
|
615
|
+
}
|
|
616
|
+
});
|
|
617
|
+
}
|
|
618
|
+
}), V.reset(r), V.template_effect((t) => {
|
|
619
|
+
V.set_class(i, 1, `${e.label ?? ""} tone-primary m-0`, "svelte-2vsog9"), V.set_attribute(i, "data-today", n().isToday), V.set_text(a, t);
|
|
620
|
+
}, [() => n().isToday ? d().tonight || "Tonight" : j(n().groups[0].show)]), V.append(t, r);
|
|
621
|
+
};
|
|
622
|
+
var N = V.child(M), ee = V.child(N);
|
|
623
|
+
{
|
|
624
|
+
let e = V.derived(() => V.get(g) <= 0);
|
|
625
|
+
O(ee, {
|
|
626
|
+
get currentYear() {
|
|
627
|
+
return V.get(b);
|
|
628
|
+
},
|
|
629
|
+
get currentMonth() {
|
|
630
|
+
return V.get(x);
|
|
631
|
+
},
|
|
632
|
+
handlePrev: () => (V.set(g, V.get(g) - 1), V.set(v, null)),
|
|
633
|
+
handleNext: () => (V.set(g, V.get(g) + 1), V.set(v, null)),
|
|
634
|
+
handleToday: () => (V.set(g, 0), V.set(v, null)),
|
|
635
|
+
get disablePastNavigation() {
|
|
636
|
+
return V.get(e);
|
|
637
|
+
},
|
|
638
|
+
get labels() {
|
|
639
|
+
return d();
|
|
640
|
+
}
|
|
641
|
+
});
|
|
642
|
+
}
|
|
643
|
+
V.reset(N);
|
|
644
|
+
var P = V.sibling(N, 2), F = (e) => {
|
|
645
|
+
var n = Le(), r = V.child(n), i = V.child(r);
|
|
646
|
+
{
|
|
647
|
+
let e = V.derived(() => d().goBackToCalendar || "Go back to calendar");
|
|
648
|
+
T(i, {
|
|
649
|
+
variant: "ghost",
|
|
650
|
+
size: "xs",
|
|
651
|
+
onclick: () => V.set(v, null),
|
|
652
|
+
get "aria-label"() {
|
|
653
|
+
return V.get(e);
|
|
654
|
+
},
|
|
655
|
+
children: (e, t) => {
|
|
656
|
+
var n = Ie(), r = V.first_child(n);
|
|
657
|
+
_(r, { class: "size-4" });
|
|
658
|
+
var i = V.sibling(r);
|
|
659
|
+
V.template_effect(() => V.set_text(i, ` ${(d().goBack || "Go back") ?? ""}`)), V.append(e, n);
|
|
660
|
+
},
|
|
661
|
+
$$slots: { default: !0 }
|
|
662
|
+
});
|
|
663
|
+
}
|
|
664
|
+
V.reset(r);
|
|
665
|
+
var a = V.sibling(r, 2);
|
|
666
|
+
t(a, () => V.get(D)), V.reset(n), V.append(e, n);
|
|
667
|
+
};
|
|
668
|
+
V.if(P, (e) => {
|
|
669
|
+
V.get(D) && e(F);
|
|
670
|
+
});
|
|
671
|
+
var I = V.sibling(P, 2), L = V.child(I);
|
|
672
|
+
V.each(L, 16, () => V.get(k), (e) => e, (t, n) => {
|
|
673
|
+
var r = X(), i = V.child(r, !0);
|
|
674
|
+
V.reset(r), V.template_effect(() => {
|
|
675
|
+
V.set_class(r, 1, `look-month__weekday ${e.eyebrow ?? ""} tone-secondary m-0`, "svelte-2vsog9"), V.set_text(i, n);
|
|
676
|
+
}), V.append(t, r);
|
|
677
|
+
});
|
|
678
|
+
var R = V.sibling(L, 2);
|
|
679
|
+
V.each(R, 17, () => V.get(w), (e) => e.key, (t, n) => {
|
|
680
|
+
var r = Be(), i = V.child(r), a = (t) => {
|
|
681
|
+
var r = ze(), i = V.first_child(r), a = V.child(i, !0);
|
|
682
|
+
V.reset(i);
|
|
683
|
+
var o = V.sibling(i, 2);
|
|
684
|
+
V.each(o, 17, () => V.get(n).groups.slice(0, 2), (e) => e.show.eventID, (e, t) => {
|
|
685
|
+
{
|
|
686
|
+
let n = V.derived(() => A(c.parts));
|
|
687
|
+
Y(e, {
|
|
688
|
+
get show() {
|
|
689
|
+
return V.get(t).show;
|
|
690
|
+
},
|
|
691
|
+
get instances() {
|
|
692
|
+
return V.get(t).instances;
|
|
693
|
+
},
|
|
694
|
+
get parts() {
|
|
695
|
+
return V.get(n);
|
|
696
|
+
},
|
|
697
|
+
size: "S",
|
|
698
|
+
layout: "tile",
|
|
699
|
+
get allIn() {
|
|
700
|
+
return u();
|
|
701
|
+
},
|
|
702
|
+
get target() {
|
|
703
|
+
return c.target;
|
|
704
|
+
},
|
|
705
|
+
get onopen() {
|
|
706
|
+
return c.onopen;
|
|
707
|
+
},
|
|
708
|
+
get labels() {
|
|
709
|
+
return d();
|
|
710
|
+
},
|
|
711
|
+
get locale() {
|
|
712
|
+
return c.locale;
|
|
713
|
+
}
|
|
714
|
+
});
|
|
715
|
+
}
|
|
716
|
+
});
|
|
717
|
+
var s = V.sibling(o, 2), l = (e) => {
|
|
718
|
+
var t = Re(), r = V.child(t);
|
|
719
|
+
{
|
|
720
|
+
let e = V.derived(() => (d().nMore || "{n} more").replace("{n}", String(V.get(n).groups.length - 2)));
|
|
721
|
+
T(r, {
|
|
722
|
+
variant: "ghost",
|
|
723
|
+
size: "xs",
|
|
724
|
+
onclick: () => V.set(v, V.get(n).key, !0),
|
|
725
|
+
get "aria-label"() {
|
|
726
|
+
return V.get(e);
|
|
727
|
+
},
|
|
728
|
+
children: (e, t) => {
|
|
729
|
+
V.next();
|
|
730
|
+
var r = V.text();
|
|
731
|
+
V.template_effect(() => V.set_text(r, `+${V.get(n).groups.length - 2}`)), V.append(e, r);
|
|
732
|
+
},
|
|
733
|
+
$$slots: { default: !0 }
|
|
734
|
+
});
|
|
735
|
+
}
|
|
736
|
+
V.reset(t), V.append(e, t);
|
|
737
|
+
};
|
|
738
|
+
V.if(s, (e) => {
|
|
739
|
+
V.get(n).groups.length > 2 && e(l);
|
|
740
|
+
}), V.template_effect(() => {
|
|
741
|
+
V.set_class(i, 1, `look-month__day ${e.label ?? ""} m-0`, "svelte-2vsog9"), V.set_text(a, V.get(n).day);
|
|
742
|
+
}), V.append(t, r);
|
|
743
|
+
};
|
|
744
|
+
V.if(i, (e) => {
|
|
745
|
+
V.get(n).inMonth && e(a);
|
|
746
|
+
}), V.reset(r), V.template_effect(() => {
|
|
747
|
+
V.set_attribute(r, "data-outside", !V.get(n).inMonth), V.set_attribute(r, "data-past", V.get(n).isPast), V.set_attribute(r, "data-today", V.get(n).isToday);
|
|
748
|
+
}), V.append(t, r);
|
|
749
|
+
}), V.reset(I);
|
|
750
|
+
var B = V.sibling(I, 2);
|
|
751
|
+
V.each(B, 21, () => V.get(E), (e) => e.key, (e, n) => {
|
|
752
|
+
t(e, () => V.get(n));
|
|
753
|
+
}, (t) => {
|
|
754
|
+
var n = X(), r = V.child(n, !0);
|
|
755
|
+
V.reset(n), V.template_effect(() => {
|
|
756
|
+
V.set_class(n, 1, `${e.body ?? ""} tone-secondary m-0`, "svelte-2vsog9"), V.set_text(r, f() ? d().noShowsTonight || "No shows tonight" : d().noUpcomingEvents || "No upcoming events");
|
|
757
|
+
}), V.append(t, n);
|
|
758
|
+
}), V.reset(B), V.reset(M), V.template_effect((e) => {
|
|
759
|
+
V.set_attribute(I, "data-hidden", !!V.get(D)), V.set_attribute(I, "aria-label", e);
|
|
760
|
+
}, [() => i(V.get(y), {
|
|
761
|
+
month: "long",
|
|
762
|
+
year: "numeric"
|
|
763
|
+
}, c.locale)]);
|
|
764
|
+
}
|
|
765
|
+
V.append(t, M), V.pop();
|
|
766
|
+
}
|
|
767
|
+
//#endregion
|
|
768
|
+
//#region src/lib/browse-widgets/looks.ts
|
|
769
|
+
var Z = [
|
|
770
|
+
"poster",
|
|
771
|
+
"date",
|
|
772
|
+
"doors",
|
|
773
|
+
"time",
|
|
774
|
+
"description",
|
|
775
|
+
"performers",
|
|
776
|
+
"price",
|
|
777
|
+
"button"
|
|
778
|
+
], Q = (e) => Object.fromEntries(Z.map((t) => [t, e.includes(t)])), $ = [
|
|
779
|
+
{
|
|
780
|
+
id: "featured",
|
|
781
|
+
name: "Featured",
|
|
782
|
+
structure: "one",
|
|
783
|
+
style: "featured",
|
|
784
|
+
size: "L",
|
|
785
|
+
parts: Q([
|
|
786
|
+
"poster",
|
|
787
|
+
"date",
|
|
788
|
+
"doors",
|
|
789
|
+
"time",
|
|
790
|
+
"description",
|
|
791
|
+
"price",
|
|
792
|
+
"button"
|
|
793
|
+
])
|
|
794
|
+
},
|
|
795
|
+
{
|
|
796
|
+
id: "ticket",
|
|
797
|
+
name: "Ticket card",
|
|
798
|
+
structure: "one",
|
|
799
|
+
style: "ticket",
|
|
800
|
+
size: "L",
|
|
801
|
+
parts: Q([
|
|
802
|
+
"date",
|
|
803
|
+
"doors",
|
|
804
|
+
"time",
|
|
805
|
+
"price",
|
|
806
|
+
"button"
|
|
807
|
+
])
|
|
808
|
+
},
|
|
809
|
+
{
|
|
810
|
+
id: "strip",
|
|
811
|
+
name: "Strip",
|
|
812
|
+
structure: "one",
|
|
813
|
+
style: "strip",
|
|
814
|
+
size: "S",
|
|
815
|
+
parts: Q([
|
|
816
|
+
"poster",
|
|
817
|
+
"date",
|
|
818
|
+
"time",
|
|
819
|
+
"button"
|
|
820
|
+
])
|
|
821
|
+
},
|
|
822
|
+
{
|
|
823
|
+
id: "list",
|
|
824
|
+
name: "List",
|
|
825
|
+
structure: "list",
|
|
826
|
+
style: "day",
|
|
827
|
+
size: "M",
|
|
828
|
+
parts: Q([
|
|
829
|
+
"poster",
|
|
830
|
+
"time",
|
|
831
|
+
"price",
|
|
832
|
+
"button"
|
|
833
|
+
])
|
|
834
|
+
},
|
|
835
|
+
{
|
|
836
|
+
id: "board",
|
|
837
|
+
name: "Board",
|
|
838
|
+
structure: "list",
|
|
839
|
+
style: "board",
|
|
840
|
+
size: "M",
|
|
841
|
+
parts: Q([
|
|
842
|
+
"poster",
|
|
843
|
+
"time",
|
|
844
|
+
"performers",
|
|
845
|
+
"button"
|
|
846
|
+
])
|
|
847
|
+
},
|
|
848
|
+
{
|
|
849
|
+
id: "grid",
|
|
850
|
+
name: "Grid",
|
|
851
|
+
structure: "grid",
|
|
852
|
+
style: "cards",
|
|
853
|
+
size: "M",
|
|
854
|
+
parts: Q([
|
|
855
|
+
"poster",
|
|
856
|
+
"date",
|
|
857
|
+
"time",
|
|
858
|
+
"price",
|
|
859
|
+
"button"
|
|
860
|
+
])
|
|
861
|
+
},
|
|
862
|
+
{
|
|
863
|
+
id: "posters",
|
|
864
|
+
name: "Poster wall",
|
|
865
|
+
structure: "grid",
|
|
866
|
+
style: "posters",
|
|
867
|
+
size: "S",
|
|
868
|
+
parts: Q(["poster", "date"])
|
|
869
|
+
},
|
|
870
|
+
{
|
|
871
|
+
id: "calendar",
|
|
872
|
+
name: "Calendar",
|
|
873
|
+
structure: "calendar",
|
|
874
|
+
style: "month",
|
|
875
|
+
size: "M",
|
|
876
|
+
parts: Q(["poster", "time"])
|
|
877
|
+
}
|
|
878
|
+
];
|
|
879
|
+
function We(e) {
|
|
880
|
+
let t = Object.fromEntries(Z.map((e) => [e, { ok: !0 }]));
|
|
881
|
+
if (e === "month") {
|
|
882
|
+
let e = "A day square has no room for it; the show page has it";
|
|
883
|
+
t.date = {
|
|
884
|
+
ok: !1,
|
|
885
|
+
reason: "The month grid already shows the day"
|
|
886
|
+
}, t.description = {
|
|
887
|
+
ok: !1,
|
|
888
|
+
reason: e
|
|
889
|
+
}, t.performers = {
|
|
890
|
+
ok: !1,
|
|
891
|
+
reason: e
|
|
892
|
+
}, t.price = {
|
|
893
|
+
ok: !1,
|
|
894
|
+
reason: e
|
|
895
|
+
}, t.button = {
|
|
896
|
+
ok: !1,
|
|
897
|
+
reason: e
|
|
898
|
+
};
|
|
899
|
+
}
|
|
900
|
+
return e === "day" && (t.date = {
|
|
901
|
+
ok: !1,
|
|
902
|
+
reason: "The list already shows the day beside each group"
|
|
903
|
+
}), e === "ticket" && (t.poster = {
|
|
904
|
+
ok: !1,
|
|
905
|
+
reason: "The ticket card sets the date where the poster would go"
|
|
906
|
+
}, t.date = {
|
|
907
|
+
ok: !1,
|
|
908
|
+
reason: "The ticket card is the date"
|
|
909
|
+
}), e === "strip" && (t.description = {
|
|
910
|
+
ok: !1,
|
|
911
|
+
reason: "A strip is one line"
|
|
912
|
+
}, t.performers = {
|
|
913
|
+
ok: !1,
|
|
914
|
+
reason: "A strip is one line"
|
|
915
|
+
}), t;
|
|
916
|
+
}
|
|
917
|
+
function Ge(e, t) {
|
|
918
|
+
let n = We(e);
|
|
919
|
+
return Object.fromEntries(Z.map((e) => [e, t[e] && n[e].ok]));
|
|
920
|
+
}
|
|
921
|
+
function Ke(e, t = x()) {
|
|
922
|
+
return e.filter((e) => e.date >= m(t, e.timeZone)).sort((e, t) => e.startDateTime.localeCompare(t.startDateTime));
|
|
923
|
+
}
|
|
924
|
+
var qe = (e) => `look-${e.id}`;
|
|
925
|
+
$.map(qe);
|
|
926
|
+
function Je(e) {
|
|
927
|
+
let t = String(e ?? "").toLowerCase();
|
|
928
|
+
return t === "tonight" ? $.find((e) => e.id === "board") : $.find((e) => qe(e) === t);
|
|
929
|
+
}
|
|
930
|
+
var Ye = {
|
|
931
|
+
poster: "poster",
|
|
932
|
+
date: "date",
|
|
933
|
+
doors: "doorsTime",
|
|
934
|
+
time: "showTime",
|
|
935
|
+
description: "description",
|
|
936
|
+
performers: "performers",
|
|
937
|
+
price: "price",
|
|
938
|
+
button: "button"
|
|
939
|
+
}, Xe = /* @__PURE__ */ new Set([
|
|
940
|
+
"poster",
|
|
941
|
+
"date",
|
|
942
|
+
"description"
|
|
943
|
+
]);
|
|
944
|
+
function Ze(e, t) {
|
|
945
|
+
let n = t ?? {};
|
|
946
|
+
return Object.fromEntries(Z.map((t) => {
|
|
947
|
+
let r = n[Ye[t]];
|
|
948
|
+
return r === !1 ? [t, !1] : r === !0 && !Xe.has(t) ? [t, !0] : [t, e.parts[t]];
|
|
949
|
+
}));
|
|
950
|
+
}
|
|
951
|
+
//#endregion
|
|
952
|
+
//#region src/lib/browse-widgets/LookWidget.svelte
|
|
953
|
+
var Qe = V.from_html("<div class=\"look-widget__one svelte-1uisg1j\"><!></div>"), $e = V.from_html("<h3> </h3>"), et = V.from_html("<li><!></li>"), tt = V.from_html("<div class=\"look-widget__board-day svelte-1uisg1j\"><!> <h3> <span class=\"tone-secondary svelte-1uisg1j\"> </span></h3> <ul class=\"look-widget__stack svelte-1uisg1j\"></ul></div>"), nt = V.from_html("<div class=\"look-widget__board svelte-1uisg1j\"></div>"), rt = V.from_html("<div class=\"look-widget__day svelte-1uisg1j\"><p class=\"look-widget__rail m-0 svelte-1uisg1j\"><span> </span> <span> </span> <span> </span></p> <ul class=\"look-widget__stack svelte-1uisg1j\"></ul></div>"), it = V.from_html("<div class=\"look-widget__list svelte-1uisg1j\"></div>"), at = V.from_html("<ul class=\"look-widget__grid svelte-1uisg1j\"></ul>"), ot = V.from_html("<section class=\"look-widget svelte-1uisg1j\"><!></section>"), st = {
|
|
954
|
+
hash: "svelte-1uisg1j",
|
|
955
|
+
code: ".look-widget.svelte-1uisg1j {container-type:inline-size;width:100%;}.look-widget.svelte-1uisg1j ul:where(.svelte-1uisg1j) {margin:0;padding:0;list-style:none;}.look-widget__stack.svelte-1uisg1j {display:grid;gap:0.5rem;}\n\n /* One show: an L card stays readable on a wide page. */.look-widget__one.svelte-1uisg1j {max-width:48rem;}.look-widget[data-look='strip'].svelte-1uisg1j .look-widget__one:where(.svelte-1uisg1j) {max-width:none;}\n\n /* List: the day rail beside each day's cards, above them when narrow. */.look-widget__list.svelte-1uisg1j {display:grid;}.look-widget__day.svelte-1uisg1j {display:grid;grid-template-columns:3.5rem minmax(0, 1fr);gap:0.75rem;padding:0.875rem 0;border-top:1px solid hsl(var(--border));}.look-widget__day.svelte-1uisg1j:first-child {border-top:0;}.look-widget__rail.svelte-1uisg1j {display:flex;flex-direction:column;align-items:center;padding-top:0.25rem;line-height:1.1;}.look-widget__rail-day.svelte-1uisg1j {color:hsl(var(--text-primary));}.look-widget__rail[data-today='true'].svelte-1uisg1j .look-widget__rail-day:where(.svelte-1uisg1j) {color:hsl(var(--brand-primary));}\n\n @container (width < 22rem) {.look-widget__day.svelte-1uisg1j {grid-template-columns:minmax(0, 1fr);gap:0.5rem;}.look-widget__rail.svelte-1uisg1j {flex-direction:row;gap:0.375rem;align-items:baseline;}\n }\n\n /* Board: the first day leads, the rest follow under \"Coming up\". */.look-widget__board.svelte-1uisg1j {display:grid;gap:1.25rem;}.look-widget__board-day.svelte-1uisg1j {display:grid;gap:0.5rem;}.look-widget__day-title.svelte-1uisg1j span:where(.svelte-1uisg1j) {margin-left:0.375rem;font-weight:500;}.look-widget__coming.svelte-1uisg1j {margin-top:0.5rem;}\n\n /* Grid: as many columns as fit at the card size. */.look-widget__grid.svelte-1uisg1j {display:grid;grid-template-columns:repeat(auto-fill, minmax(var(--look-col), 1fr));gap:0.875rem;}.look-widget[data-size='S'].svelte-1uisg1j .look-widget__grid:where(.svelte-1uisg1j) {--look-col: 10rem;}.look-widget[data-size='M'].svelte-1uisg1j .look-widget__grid:where(.svelte-1uisg1j) {--look-col: 14rem;}.look-widget[data-size='L'].svelte-1uisg1j .look-widget__grid:where(.svelte-1uisg1j) {--look-col: 19rem;}\n\n /* Phone-width: one card across, a poster wall keeps two. */\n @container (width < 22rem) {.look-widget[data-size].svelte-1uisg1j .look-widget__grid:where(.svelte-1uisg1j) {--look-col: 100%;}.look-widget[data-size='S'].svelte-1uisg1j .look-widget__grid:where(.svelte-1uisg1j) {--look-col: 8rem;}\n\n /* A button's label never wraps, and an 8rem card is narrower than\n \"Reserve a spot\": with buttons on, two across only at 10rem each. */.look-widget[data-size='S'][data-button='true'].svelte-1uisg1j .look-widget__grid:where(.svelte-1uisg1j) {--look-col: 10rem;}\n }"
|
|
956
|
+
};
|
|
957
|
+
function ct(t, n) {
|
|
958
|
+
V.push(n, !0), V.append_styles(t, st);
|
|
959
|
+
let r = V.prop(n, "size", 3, "M"), i = V.prop(n, "today", 3, !1), a = V.prop(n, "allIn", 3, !0), o = V.prop(n, "labels", 3, C), s = V.prop(n, "nowIso", 19, x), c = V.derived(() => Ge(n.lookStyle, n.parts)), u = V.derived(() => i() ? Ke(n.shows, s()).filter((e) => e.date === m(s(), e.timeZone)) : Ke(n.shows, s())), d = V.derived(() => {
|
|
960
|
+
let e = z(V.get(u)).map((e) => ({
|
|
961
|
+
show: e.event,
|
|
962
|
+
instances: e.instances
|
|
963
|
+
}));
|
|
964
|
+
return n.maxItems ? e.slice(0, n.maxItems) : e;
|
|
965
|
+
});
|
|
966
|
+
function f(e) {
|
|
967
|
+
let t = [];
|
|
968
|
+
for (let n of e) {
|
|
969
|
+
let e = t.at(-1);
|
|
970
|
+
e && e.date === n.show.date ? e.items.push(n) : t.push({
|
|
971
|
+
date: n.show.date,
|
|
972
|
+
items: [n]
|
|
973
|
+
});
|
|
974
|
+
}
|
|
975
|
+
return t;
|
|
976
|
+
}
|
|
977
|
+
let p = V.derived(() => f((n.maxItems ? V.get(u).slice(0, n.maxItems) : V.get(u)).map((e) => ({
|
|
978
|
+
show: e,
|
|
979
|
+
instances: [e]
|
|
980
|
+
})))), h = (e) => ({
|
|
981
|
+
weekday: l(e.startDateTime, e.timeZone, { weekday: "short" }, n.locale),
|
|
982
|
+
day: l(e.startDateTime, e.timeZone, { day: "numeric" }, n.locale),
|
|
983
|
+
month: l(e.startDateTime, e.timeZone, { month: "short" }, n.locale)
|
|
984
|
+
}), g = (e) => w(e.startDateTime, e.timeZone ?? "America/Chicago"), _ = (e) => g(e) ? o().tonight || "Tonight" : l(e.startDateTime, e.timeZone, { weekday: "long" }, n.locale), v = (e) => l(e.startDateTime, e.timeZone, {
|
|
985
|
+
month: "short",
|
|
986
|
+
day: "numeric"
|
|
987
|
+
}, n.locale);
|
|
988
|
+
var y = ot(), b = V.child(y), S = (e) => {
|
|
989
|
+
Ue(e, {
|
|
990
|
+
get shows() {
|
|
991
|
+
return n.shows;
|
|
992
|
+
},
|
|
993
|
+
get parts() {
|
|
994
|
+
return V.get(c);
|
|
995
|
+
},
|
|
996
|
+
get allIn() {
|
|
997
|
+
return a();
|
|
998
|
+
},
|
|
999
|
+
get target() {
|
|
1000
|
+
return n.target;
|
|
1001
|
+
},
|
|
1002
|
+
get onopen() {
|
|
1003
|
+
return n.onopen;
|
|
1004
|
+
},
|
|
1005
|
+
get labels() {
|
|
1006
|
+
return o();
|
|
1007
|
+
},
|
|
1008
|
+
get locale() {
|
|
1009
|
+
return n.locale;
|
|
1010
|
+
},
|
|
1011
|
+
get nowIso() {
|
|
1012
|
+
return s();
|
|
1013
|
+
},
|
|
1014
|
+
get today() {
|
|
1015
|
+
return i();
|
|
1016
|
+
},
|
|
1017
|
+
get maxDays() {
|
|
1018
|
+
return n.maxItems;
|
|
1019
|
+
}
|
|
1020
|
+
});
|
|
1021
|
+
}, T = (e) => {
|
|
1022
|
+
{
|
|
1023
|
+
let t = V.derived(() => i() ? o().noShowsTonight || "No shows tonight" : o().noUpcomingEvents || "No upcoming events");
|
|
1024
|
+
j(e, { get message() {
|
|
1025
|
+
return V.get(t);
|
|
1026
|
+
} });
|
|
1027
|
+
}
|
|
1028
|
+
}, E = (e) => {
|
|
1029
|
+
let t = V.derived(() => V.get(d)[0]);
|
|
1030
|
+
var i = Qe(), s = V.child(i);
|
|
1031
|
+
{
|
|
1032
|
+
let e = V.derived(() => n.lookStyle === "ticket" ? "ticket" : n.lookStyle === "strip" ? "strip" : "stack");
|
|
1033
|
+
Y(s, {
|
|
1034
|
+
get show() {
|
|
1035
|
+
return V.get(t).show;
|
|
1036
|
+
},
|
|
1037
|
+
get instances() {
|
|
1038
|
+
return V.get(t).instances;
|
|
1039
|
+
},
|
|
1040
|
+
get parts() {
|
|
1041
|
+
return V.get(c);
|
|
1042
|
+
},
|
|
1043
|
+
get size() {
|
|
1044
|
+
return r();
|
|
1045
|
+
},
|
|
1046
|
+
get layout() {
|
|
1047
|
+
return V.get(e);
|
|
1048
|
+
},
|
|
1049
|
+
get allIn() {
|
|
1050
|
+
return a();
|
|
1051
|
+
},
|
|
1052
|
+
get target() {
|
|
1053
|
+
return n.target;
|
|
1054
|
+
},
|
|
1055
|
+
get onopen() {
|
|
1056
|
+
return n.onopen;
|
|
1057
|
+
},
|
|
1058
|
+
get labels() {
|
|
1059
|
+
return o();
|
|
1060
|
+
},
|
|
1061
|
+
get locale() {
|
|
1062
|
+
return n.locale;
|
|
1063
|
+
}
|
|
1064
|
+
});
|
|
1065
|
+
}
|
|
1066
|
+
V.reset(i), V.append(e, i);
|
|
1067
|
+
}, D = (t) => {
|
|
1068
|
+
var i = nt();
|
|
1069
|
+
V.each(i, 23, () => V.get(p), (e) => e.date, (t, i, s) => {
|
|
1070
|
+
var l = tt(), u = V.child(l), d = (t) => {
|
|
1071
|
+
var n = $e(), r = V.child(n, !0);
|
|
1072
|
+
V.reset(n), V.template_effect(() => {
|
|
1073
|
+
V.set_class(n, 1, `look-widget__coming ${e.eyebrow ?? ""} tone-secondary m-0`, "svelte-1uisg1j"), V.set_text(r, o().comingUp || "Coming up");
|
|
1074
|
+
}), V.append(t, n);
|
|
1075
|
+
};
|
|
1076
|
+
V.if(u, (e) => {
|
|
1077
|
+
V.get(s) === 1 && e(d);
|
|
1078
|
+
});
|
|
1079
|
+
var f = V.sibling(u, 2), p = V.child(f), m = V.sibling(p), h = V.child(m, !0);
|
|
1080
|
+
V.reset(m), V.reset(f);
|
|
1081
|
+
var g = V.sibling(f, 2);
|
|
1082
|
+
V.each(g, 21, () => V.get(i).items, (e) => e.show.eventID, (e, t) => {
|
|
1083
|
+
var i = et(), l = V.child(i);
|
|
1084
|
+
{
|
|
1085
|
+
let e = V.derived(() => V.get(s) === 0 ? V.get(c) : {
|
|
1086
|
+
...V.get(c),
|
|
1087
|
+
poster: !1,
|
|
1088
|
+
description: !1,
|
|
1089
|
+
performers: !1
|
|
1090
|
+
}), i = V.derived(() => V.get(s) === 0 ? r() : "S");
|
|
1091
|
+
Y(l, {
|
|
1092
|
+
get show() {
|
|
1093
|
+
return V.get(t).show;
|
|
1094
|
+
},
|
|
1095
|
+
get parts() {
|
|
1096
|
+
return V.get(e);
|
|
1097
|
+
},
|
|
1098
|
+
get size() {
|
|
1099
|
+
return V.get(i);
|
|
1100
|
+
},
|
|
1101
|
+
layout: "board",
|
|
1102
|
+
get allIn() {
|
|
1103
|
+
return a();
|
|
1104
|
+
},
|
|
1105
|
+
get target() {
|
|
1106
|
+
return n.target;
|
|
1107
|
+
},
|
|
1108
|
+
get onopen() {
|
|
1109
|
+
return n.onopen;
|
|
1110
|
+
},
|
|
1111
|
+
get labels() {
|
|
1112
|
+
return o();
|
|
1113
|
+
},
|
|
1114
|
+
get locale() {
|
|
1115
|
+
return n.locale;
|
|
1116
|
+
}
|
|
1117
|
+
});
|
|
1118
|
+
}
|
|
1119
|
+
V.reset(i), V.append(e, i);
|
|
1120
|
+
}), V.reset(g), V.reset(l), V.template_effect((t, n) => {
|
|
1121
|
+
V.set_attribute(l, "data-lead", V.get(s) === 0), V.set_class(f, 1, `look-widget__day-title ${(V.get(s) === 0 ? e.heading : e.label) ?? ""} tone-primary m-0`, "svelte-1uisg1j"), V.set_text(p, `${t ?? ""} `), V.set_text(h, n);
|
|
1122
|
+
}, [() => _(V.get(i).items[0].show), () => v(V.get(i).items[0].show)]), V.append(t, l);
|
|
1123
|
+
}), V.reset(i), V.append(t, i);
|
|
1124
|
+
}, O = (t) => {
|
|
1125
|
+
var i = it();
|
|
1126
|
+
V.each(i, 21, () => f(V.get(d)), (e) => e.date, (t, i) => {
|
|
1127
|
+
let s = V.derived(() => h(V.get(i).items[0].show));
|
|
1128
|
+
var l = rt(), u = V.child(l), d = V.child(u), f = V.child(d, !0);
|
|
1129
|
+
V.reset(d);
|
|
1130
|
+
var p = V.sibling(d, 2), m = V.child(p, !0);
|
|
1131
|
+
V.reset(p);
|
|
1132
|
+
var _ = V.sibling(p, 2), v = V.child(_, !0);
|
|
1133
|
+
V.reset(_), V.reset(u);
|
|
1134
|
+
var y = V.sibling(u, 2);
|
|
1135
|
+
V.each(y, 21, () => V.get(i).items, (e) => e.show.eventID, (e, t) => {
|
|
1136
|
+
var i = et();
|
|
1137
|
+
Y(V.child(i), {
|
|
1138
|
+
get show() {
|
|
1139
|
+
return V.get(t).show;
|
|
1140
|
+
},
|
|
1141
|
+
get instances() {
|
|
1142
|
+
return V.get(t).instances;
|
|
1143
|
+
},
|
|
1144
|
+
get parts() {
|
|
1145
|
+
return V.get(c);
|
|
1146
|
+
},
|
|
1147
|
+
get size() {
|
|
1148
|
+
return r();
|
|
1149
|
+
},
|
|
1150
|
+
layout: "row",
|
|
1151
|
+
get allIn() {
|
|
1152
|
+
return a();
|
|
1153
|
+
},
|
|
1154
|
+
get target() {
|
|
1155
|
+
return n.target;
|
|
1156
|
+
},
|
|
1157
|
+
get onopen() {
|
|
1158
|
+
return n.onopen;
|
|
1159
|
+
},
|
|
1160
|
+
get labels() {
|
|
1161
|
+
return o();
|
|
1162
|
+
},
|
|
1163
|
+
get locale() {
|
|
1164
|
+
return n.locale;
|
|
1165
|
+
}
|
|
1166
|
+
}), V.reset(i), V.append(e, i);
|
|
1167
|
+
}), V.reset(y), V.reset(l), V.template_effect((t) => {
|
|
1168
|
+
V.set_attribute(u, "data-today", t), V.set_class(d, 1, `${e.eyebrow ?? ""} tone-secondary`, "svelte-1uisg1j"), V.set_text(f, V.get(s).weekday), V.set_class(p, 1, `look-widget__rail-day ${e.title ?? ""}`, "svelte-1uisg1j"), V.set_text(m, V.get(s).day), V.set_class(_, 1, `${e.caption ?? ""} tone-secondary`, "svelte-1uisg1j"), V.set_text(v, V.get(s).month);
|
|
1169
|
+
}, [() => g(V.get(i).items[0].show)]), V.append(t, l);
|
|
1170
|
+
}), V.reset(i), V.append(t, i);
|
|
1171
|
+
}, k = (e) => {
|
|
1172
|
+
var t = at();
|
|
1173
|
+
V.each(t, 21, () => V.get(d), (e) => e.show.eventID, (e, t) => {
|
|
1174
|
+
var i = et(), s = V.child(i);
|
|
1175
|
+
{
|
|
1176
|
+
let e = V.derived(() => n.lookStyle !== "posters");
|
|
1177
|
+
Y(s, {
|
|
1178
|
+
get show() {
|
|
1179
|
+
return V.get(t).show;
|
|
1180
|
+
},
|
|
1181
|
+
get instances() {
|
|
1182
|
+
return V.get(t).instances;
|
|
1183
|
+
},
|
|
1184
|
+
get parts() {
|
|
1185
|
+
return V.get(c);
|
|
1186
|
+
},
|
|
1187
|
+
get size() {
|
|
1188
|
+
return r();
|
|
1189
|
+
},
|
|
1190
|
+
layout: "stack",
|
|
1191
|
+
get badgeOnPoster() {
|
|
1192
|
+
return V.get(e);
|
|
1193
|
+
},
|
|
1194
|
+
get allIn() {
|
|
1195
|
+
return a();
|
|
1196
|
+
},
|
|
1197
|
+
get target() {
|
|
1198
|
+
return n.target;
|
|
1199
|
+
},
|
|
1200
|
+
get onopen() {
|
|
1201
|
+
return n.onopen;
|
|
1202
|
+
},
|
|
1203
|
+
get labels() {
|
|
1204
|
+
return o();
|
|
1205
|
+
},
|
|
1206
|
+
get locale() {
|
|
1207
|
+
return n.locale;
|
|
1208
|
+
}
|
|
1209
|
+
});
|
|
1210
|
+
}
|
|
1211
|
+
V.reset(i), V.append(e, i);
|
|
1212
|
+
}), V.reset(t), V.append(e, t);
|
|
1213
|
+
};
|
|
1214
|
+
V.if(b, (e) => {
|
|
1215
|
+
n.structure === "calendar" ? e(S) : V.get(d).length === 0 ? e(T, 1) : n.structure === "one" ? e(E, 2) : n.structure === "list" && n.lookStyle === "board" ? e(D, 3) : n.structure === "list" ? e(O, 4) : n.structure === "grid" && e(k, 5);
|
|
1216
|
+
}), V.reset(y), V.template_effect(() => {
|
|
1217
|
+
V.set_attribute(y, "data-structure", n.structure), V.set_attribute(y, "data-look", n.lookStyle), V.set_attribute(y, "data-size", r()), V.set_attribute(y, "data-button", V.get(c).button);
|
|
1218
|
+
}), V.append(t, y), V.pop();
|
|
1219
|
+
}
|
|
1220
|
+
//#endregion
|
|
1221
|
+
//#region src/lib/browse-widgets/LookView.svelte
|
|
1222
|
+
var lt = /* @__PURE__ */ new Set([
|
|
1223
|
+
"$$slots",
|
|
1224
|
+
"$$events",
|
|
1225
|
+
"$$legacy",
|
|
1226
|
+
"view",
|
|
1227
|
+
"feed",
|
|
1228
|
+
"eventDetails"
|
|
1229
|
+
]);
|
|
1230
|
+
function ut(e, t) {
|
|
1231
|
+
V.push(t, !0);
|
|
1232
|
+
let n = V.rest_props(t, lt), r = V.derived(() => Je(t.view)), i = V.derived(() => V.get(r) ? ue(t.feed) : []);
|
|
1233
|
+
var a = V.comment(), o = V.first_child(a), s = (e) => {
|
|
1234
|
+
{
|
|
1235
|
+
let a = V.derived(() => Ze(V.get(r), t.eventDetails));
|
|
1236
|
+
ct(e, V.spread_props({
|
|
1237
|
+
get shows() {
|
|
1238
|
+
return V.get(i);
|
|
1239
|
+
},
|
|
1240
|
+
get structure() {
|
|
1241
|
+
return V.get(r).structure;
|
|
1242
|
+
},
|
|
1243
|
+
get lookStyle() {
|
|
1244
|
+
return V.get(r).style;
|
|
1245
|
+
},
|
|
1246
|
+
get parts() {
|
|
1247
|
+
return V.get(a);
|
|
1248
|
+
}
|
|
1249
|
+
}, () => n));
|
|
1250
|
+
}
|
|
1251
|
+
};
|
|
1252
|
+
V.if(o, (e) => {
|
|
1253
|
+
V.get(r) && e(s);
|
|
1254
|
+
}), V.append(e, a), V.pop();
|
|
1255
|
+
}
|
|
1256
|
+
//#endregion
|
|
1257
|
+
//#region src/lib/browse-widgets/look-island.svelte.js
|
|
1258
|
+
function dt(e, t, n = {}) {
|
|
1259
|
+
n.siteOrigin && D() !== n.siteOrigin && E(n.siteOrigin);
|
|
1260
|
+
let r = V.state(t), i = {};
|
|
1261
|
+
for (let e of Object.keys(t)) Object.defineProperty(i, e, {
|
|
1262
|
+
enumerable: !0,
|
|
1263
|
+
get: () => V.get(r)[e]
|
|
1264
|
+
});
|
|
1265
|
+
let a = H(ut, {
|
|
1266
|
+
target: e,
|
|
1267
|
+
props: i
|
|
1268
|
+
});
|
|
1269
|
+
return {
|
|
1270
|
+
update(e) {
|
|
1271
|
+
V.set(r, e);
|
|
1272
|
+
},
|
|
1273
|
+
destroy() {
|
|
1274
|
+
re(a);
|
|
1275
|
+
}
|
|
1276
|
+
};
|
|
1277
|
+
}
|
|
1278
|
+
//#endregion
|
|
1279
|
+
export { dt as mountLook };
|