@getmicdrop/venue-calendar 4.3.53 → 4.3.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ArrowLeftIcon-BLnCtSTd.js → ArrowLeftIcon-DjqiKzR8.js} +1 -1
- package/dist/{Badge-LGtxYPTv.js → Badge-BsWJrQII.js} +9 -9
- package/dist/{BlockPlaceholder-BhPJo2P8.js → BlockPlaceholder-CgZr2Euq.js} +2 -2
- package/dist/{Button-D8b2gDS8.js → Button-AZ8OLQqj.js} +16 -15
- package/dist/{Button-DZ_ZJIeL.js → Button-B8GiiO44.js} +589 -803
- package/dist/Calendar-CS_RqyU_.js +486 -0
- package/dist/{CalendarFoundryView-CEEJ8nkK.js → CalendarFoundryView-BLHPU4ry.js} +5791 -7311
- package/dist/{CalendarIcon-CLbs06CG.js → CalendarIcon-D9Z9YFz6.js} +1 -1
- package/dist/{CartView-BN-EnU8O.js → CartView-DTXoQTOC.js} +262 -261
- package/dist/{ChartBlock-CQuNi0uN.js → ChartBlock-CaxNJtrg.js} +3 -3
- package/dist/{Checkout-dBGyhMQD.js → Checkout-B8ZkBxF_.js} +24 -24
- package/dist/{Checkout-BLfHdJ4t.js → Checkout-QIxYrkeK.js} +26 -26
- package/dist/{CheckoutTimer-DnHjYAv-.js → CheckoutTimer-CyN-mQCP.js} +3 -3
- package/dist/{ChevronDownIcon-BIGPSika.js → ChevronDownIcon-D9I-5bmz.js} +1 -1
- package/dist/ChevronDownOutline-D7YDiKBF.js +13 -0
- package/dist/{ClockIcon-D5mFK2c-.js → ClockIcon-C7nkbmvv.js} +1 -1
- package/dist/{CloseIcon-Bf4yqVV0.js → CloseIcon-DPdjPdoi.js} +1 -1
- package/dist/{CollectionView-H_aMs6Zm.js → CollectionView-CkKwCXQj.js} +11 -11
- package/dist/{CropImage-BFJ61OWR.js → CropImage-9r61-nLv.js} +47 -46
- package/dist/{EmptyState-Dak003WV.js → EmptyState-DxahojFY.js} +6 -6
- package/dist/{Event-BYW026V7.js → Event-BfWRG4dm.js} +499 -497
- package/dist/EventPage-dCTHvk7P.js +1201 -0
- package/dist/ExclamationCircleOutline-D3XbhOwM.js +13 -0
- package/dist/{Heading-BFFV1cuP.js → Heading-CZMbiuFu.js} +4 -4
- package/dist/Input-CDw-j5fQ.js +292 -0
- package/dist/{MailIcon-BO5Ou19Y.js → MailIcon-C__hyCKr.js} +1 -1
- package/dist/{Modal-JNeuI7zx.js → Modal-D6NKikBr.js} +2 -2
- package/dist/ModalFooter-ngqovl_z.js +377 -0
- package/dist/{ModalHeader-BNxKfIP7.js → ModalHeader-CI7Ev4MQ.js} +2 -2
- package/dist/{PasswordInput-DaJbFgg5.js → PasswordInput-D3Pwparw.js} +2 -2
- package/dist/PhoneInput-oGG1WJii.js +1568 -0
- package/dist/{RecommendationsRail-DBadchEC.js → RecommendationsRail-DPxl9JCm.js} +9 -9
- package/dist/{ScarcityBadge-Bi5eRig2.js → ScarcityBadge-BXn6HM_K.js} +24 -24
- package/dist/{SeriesPage-DnArOhpy.js → SeriesPage-B7z1yoAK.js} +7 -7
- package/dist/{Spinner-UI821bAt.js → Spinner-6UtYyNcF.js} +3 -3
- package/dist/{Success-BKfN0O0W.js → Success-BzuOliUV.js} +19 -19
- package/dist/{TagIcon-BWLYSGkG.js → TagIcon-DwWcRiXS.js} +1 -1
- package/dist/{Textarea-CdxxGwCO.js → Textarea-CyfWw1Zf.js} +1 -1
- package/dist/{ViewTicketsEmbed-saRT7Ac-.js → ViewTicketsEmbed-BE8iTUF9.js} +28 -28
- package/dist/{WarningCircleIcon-CyE_Th8p.js → WarningCircleIcon-C2fJjhKf.js} +18 -28
- package/dist/{WarningTriIcon-D1jwyRhA.js → WarningTriIcon-OqM9Rfwq.js} +1 -1
- package/dist/{action-test-id-DYsZDRVM.js → action-test-id-DJZiaKrZ.js} +3 -3
- package/dist/{api-CAGahqGT.js → api-BsBSvoNj.js} +5 -5
- package/dist/{copyToClipboard-NTWYm45i.js → copyToClipboard-CL9BmJA4.js} +1 -1
- package/dist/createErrorGate.svelte-DwTTmYou.js +83 -0
- package/dist/{defaultLabels-CAOGfi3n.js → defaultLabels-BaVkGLw4.js} +14 -14
- package/dist/{defaults-CPjpHdep.js → defaults-BHXY6s4i.js} +2 -2
- package/dist/{event-transform-tDqIHrb0.js → event-transform-oLpmof1H.js} +4 -4
- package/dist/{event-BoPSP9Wq.js → event-xgg-eiTq.js} +1 -1
- package/dist/{eventStatusStream-Cw6cAXYK.js → eventStatusStream-BIxriEut.js} +2 -2
- package/dist/floatingPosition-DXLeLxPY.js +846 -0
- package/dist/{href-DUImPiNg.js → href-DO3HKeJp.js} +3 -3
- package/dist/{i18n-urZE8FDd.js → i18n-8EWq-WHv.js} +2 -2
- package/dist/{i18n-DvVKV8xP.js → i18n-JpkI3lvS.js} +5 -5
- package/dist/{imageOptimizer-Bz54wwZL.js → imageOptimizer-Bb09jR0m.js} +56 -54
- package/dist/{keyboard-WUqlYI2l.js → keyboard-Crrnn87b.js} +1 -1
- package/dist/{order-totals-2arQgl1W.js → order-totals-5X0jD77w.js} +3 -3
- package/dist/{orders-DKH_Ff_F.js → orders--luy9Lyn.js} +19 -19
- package/dist/{createErrorGate.svelte-B1UBm7Je.js → phoneUtils-CS66SHie.js} +607 -686
- package/dist/{pixels-CoTj8WW9.js → pixels-FefBmhJt.js} +3 -3
- package/dist/portal-BZBgqs8B.js +98 -0
- package/dist/{promo-77n6yQJ5.js → promo-BNwWtZjP.js} +1 -1
- package/dist/{scarcity-CSQqP7r6.js → scarcity-CR1Pa81F.js} +2 -2
- package/dist/{serverTotals-CygpqxZO.js → serverTotals-DeOPPRj6.js} +1 -1
- package/dist/{showcase-state-options-BSIYaeAC.js → showcase-state-options-BGmvUaQ_.js} +1 -1
- package/dist/sizing-CFDo_qh_.js +216 -0
- package/dist/{to-event-card-props-CcTZVm_k.js → to-event-card-props-DLOxO2oP.js} +10 -10
- package/dist/{utils-CPYwV5uR.js → utils-BFaSYuNA.js} +3 -3
- package/dist/venue-calendar.es.js +50 -50
- package/dist/venue-calendar.iife.js +2 -2
- package/dist/venue-calendar.umd.js +50 -50
- package/package.json +2 -2
- package/dist/Calendar-D1d210pe.js +0 -1327
- package/dist/EventPage-DqTynzsn.js +0 -1199
- package/dist/Input-BlLlXJhw.js +0 -301
- package/dist/ModalFooter-CZYeaLby.js +0 -471
- /package/dist/locales/{4.3.53 → 4.3.55}/flow/de.js +0 -0
- /package/dist/locales/{4.3.53 → 4.3.55}/flow/es.js +0 -0
- /package/dist/locales/{4.3.53 → 4.3.55}/flow/fr.js +0 -0
- /package/dist/locales/{4.3.53 → 4.3.55}/flow/id.js +0 -0
- /package/dist/locales/{4.3.53 → 4.3.55}/flow/it.js +0 -0
- /package/dist/locales/{4.3.53 → 4.3.55}/flow/ja.js +0 -0
- /package/dist/locales/{4.3.53 → 4.3.55}/flow/ko.js +0 -0
- /package/dist/locales/{4.3.53 → 4.3.55}/flow/nl.js +0 -0
- /package/dist/locales/{4.3.53 → 4.3.55}/flow/pl.js +0 -0
- /package/dist/locales/{4.3.53 → 4.3.55}/flow/pt-br.js +0 -0
- /package/dist/locales/{4.3.53 → 4.3.55}/flow/tr.js +0 -0
- /package/dist/locales/{4.3.53 → 4.3.55}/flow/zh.js +0 -0
- /package/dist/locales/{4.3.53 → 4.3.55}/main/de.js +0 -0
- /package/dist/locales/{4.3.53 → 4.3.55}/main/es.js +0 -0
- /package/dist/locales/{4.3.53 → 4.3.55}/main/fr.js +0 -0
- /package/dist/locales/{4.3.53 → 4.3.55}/main/id.js +0 -0
- /package/dist/locales/{4.3.53 → 4.3.55}/main/it.js +0 -0
- /package/dist/locales/{4.3.53 → 4.3.55}/main/ja.js +0 -0
- /package/dist/locales/{4.3.53 → 4.3.55}/main/ko.js +0 -0
- /package/dist/locales/{4.3.53 → 4.3.55}/main/nl.js +0 -0
- /package/dist/locales/{4.3.53 → 4.3.55}/main/pl.js +0 -0
- /package/dist/locales/{4.3.53 → 4.3.55}/main/pt-br.js +0 -0
- /package/dist/locales/{4.3.53 → 4.3.55}/main/tr.js +0 -0
- /package/dist/locales/{4.3.53 → 4.3.55}/main/zh.js +0 -0
|
@@ -0,0 +1,486 @@
|
|
|
1
|
+
import { i as e } from "./Button-B8GiiO44.js";
|
|
2
|
+
import { r as t, s as n } from "./keyboard-Crrnn87b.js";
|
|
3
|
+
import { d as r, m as i, p as a } from "./sizing-CFDo_qh_.js";
|
|
4
|
+
import { A as o, H as s, I as c, K as l, O as u, R as d, W as f, k as p } from "./scarcity-CR1Pa81F.js";
|
|
5
|
+
import { s as ee, t as te } from "./z-index-Bo0dqmiq.js";
|
|
6
|
+
import { t as ne } from "./defaultLabels-BaVkGLw4.js";
|
|
7
|
+
import { t as re } from "./portal-BZBgqs8B.js";
|
|
8
|
+
import { n as m, t as h } from "./floatingPosition-DXLeLxPY.js";
|
|
9
|
+
import { t as ie } from "./Grid-kuP6V0GW.js";
|
|
10
|
+
import { t as g } from "./EmptyState-DxahojFY.js";
|
|
11
|
+
import { i as _, r as v, s as ae, t as oe } from "./to-event-card-props-DLOxO2oP.js";
|
|
12
|
+
import "svelte/internal/disclose-version";
|
|
13
|
+
import * as y from "svelte/internal/client";
|
|
14
|
+
import { SvelteMap as se } from "svelte/reactivity";
|
|
15
|
+
import { onDestroy as b, onMount as x } from "svelte";
|
|
16
|
+
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/ChevronLeftOutline.svelte
|
|
17
|
+
var S = y.from_svg("<svg aria-hidden=\"true\" fill=\"none\" stroke-width=\"2\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M15.75 19.5L8.25 12l7.5-7.5\"></path></svg>");
|
|
18
|
+
function C(e, t) {
|
|
19
|
+
let n = y.prop(t, "size", 3, "24"), r = y.prop(t, "color", 3, "currentColor"), i = y.prop(t, "class", 3, "");
|
|
20
|
+
var a = S();
|
|
21
|
+
y.template_effect(() => {
|
|
22
|
+
y.set_class(a, 0, y.clsx(i())), y.set_attribute(a, "width", n()), y.set_attribute(a, "height", n()), y.set_attribute(a, "stroke", r());
|
|
23
|
+
}), y.append(e, a);
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/ChevronRightOutline.svelte
|
|
27
|
+
var ce = y.from_svg("<svg aria-hidden=\"true\" fill=\"none\" stroke-width=\"2\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M8.25 4.5l7.5 7.5-7.5 7.5\"></path></svg>");
|
|
28
|
+
function le(e, t) {
|
|
29
|
+
let n = y.prop(t, "size", 3, "24"), r = y.prop(t, "color", 3, "currentColor"), i = y.prop(t, "class", 3, "");
|
|
30
|
+
var a = ce();
|
|
31
|
+
y.template_effect(() => {
|
|
32
|
+
y.set_class(a, 0, y.clsx(i())), y.set_attribute(a, "width", n()), y.set_attribute(a, "height", n()), y.set_attribute(a, "stroke", r());
|
|
33
|
+
}), y.append(e, a);
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
36
|
+
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/SearchIcon.svelte
|
|
37
|
+
var w = y.from_svg("<path d=\"M168,112a56,56,0,1,1-56-56A56,56,0,0,1,168,112Zm61.66,117.66a8,8,0,0,1-11.32,0l-50.06-50.07a88,88,0,1,1,11.32-11.31l50.06,50.06A8,8,0,0,1,229.66,229.66ZM112,184a72,72,0,1,0-72-72A72.08,72.08,0,0,0,112,184Z\"></path>"), T = y.from_svg("<circle cx=\"112\" cy=\"112\" r=\"80\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></circle><line x1=\"168.57\" y1=\"168.57\" x2=\"224\" y2=\"224\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></line>", 1), ue = y.from_svg("<svg aria-hidden=\"true\" viewBox=\"0 0 256 256\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\"><!></svg>");
|
|
38
|
+
function E(e, t) {
|
|
39
|
+
y.push(t, !0);
|
|
40
|
+
let n = y.prop(t, "size", 3, "24"), r = y.prop(t, "color", 3, "currentColor"), i = y.prop(t, "class", 3, ""), a = l(), o = y.derived(() => t.weight ?? a?.weight ?? "regular");
|
|
41
|
+
var s = ue();
|
|
42
|
+
let c;
|
|
43
|
+
var u = y.child(s), d = (e) => {
|
|
44
|
+
var t = w();
|
|
45
|
+
y.append(e, t);
|
|
46
|
+
}, f = (e) => {
|
|
47
|
+
var t = T();
|
|
48
|
+
y.next(), y.append(e, t);
|
|
49
|
+
};
|
|
50
|
+
y.if(u, (e) => {
|
|
51
|
+
y.get(o) === "fill" ? e(d) : e(f, -1);
|
|
52
|
+
}), y.reset(s), y.template_effect(() => {
|
|
53
|
+
y.set_class(s, 0, y.clsx(i())), y.set_attribute(s, "width", n()), y.set_attribute(s, "height", n()), c = y.set_style(s, "", c, { color: r() === "currentColor" ? void 0 : r() });
|
|
54
|
+
}), y.append(e, s), y.pop();
|
|
55
|
+
}
|
|
56
|
+
//#endregion
|
|
57
|
+
//#region node_modules/@getmicdrop/svelte-components/dist/utils/clickOutside.js
|
|
58
|
+
function D(e, t) {
|
|
59
|
+
let n = (t) => {
|
|
60
|
+
if (e.contains(t)) return !0;
|
|
61
|
+
let n = /* @__PURE__ */ new Set();
|
|
62
|
+
for (let r = t; r;) {
|
|
63
|
+
let t = m(r);
|
|
64
|
+
if (t && !n.has(t)) {
|
|
65
|
+
if (e.contains(t)) return !0;
|
|
66
|
+
n.add(t), r = t;
|
|
67
|
+
continue;
|
|
68
|
+
}
|
|
69
|
+
r = r.parentElement;
|
|
70
|
+
}
|
|
71
|
+
return !1;
|
|
72
|
+
}, r = (e) => {
|
|
73
|
+
n(e.target) || t();
|
|
74
|
+
};
|
|
75
|
+
return document.addEventListener("mousedown", r, !0), { destroy() {
|
|
76
|
+
document.removeEventListener("mousedown", r, !0);
|
|
77
|
+
} };
|
|
78
|
+
}
|
|
79
|
+
//#endregion
|
|
80
|
+
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Popover/Popover.svelte
|
|
81
|
+
var O = y.from_html("<div role=\"dialog\" data-popover-panel=\"\"><!></div>"), k = y.from_html("<div class=\"relative inline-block\"><!> <!></div>");
|
|
82
|
+
function A(e, t) {
|
|
83
|
+
y.push(t, !0);
|
|
84
|
+
let r = y.prop(t, "open", 15, !1), i = y.prop(t, "placement", 3, "bottom-end"), a = y.prop(t, "class", 3, ""), o = y.state(void 0), s = y.state(void 0), c = y.derived(() => /(?:^|[\s:!])-?z-/.test(a())), l = y.derived(() => y.get(c) ? void 0 : te.modalContent);
|
|
85
|
+
function u() {
|
|
86
|
+
y.get(c) && y.get(s) && (y.get(s).style.zIndex = "");
|
|
87
|
+
}
|
|
88
|
+
let d = {
|
|
89
|
+
bottom: "top",
|
|
90
|
+
top: "bottom",
|
|
91
|
+
left: "right",
|
|
92
|
+
right: "left"
|
|
93
|
+
}, f = {
|
|
94
|
+
start: "left",
|
|
95
|
+
end: "right"
|
|
96
|
+
}, p = y.state(void 0), ne = y.derived(() => {
|
|
97
|
+
let [e, t = "start"] = (y.get(p) ?? i()).split("-"), n = d[e] ?? "top";
|
|
98
|
+
return e === "top" || e === "bottom" ? `${n} ${f[t] ?? "left"}` : `${n} ${t === "end" ? "bottom" : "top"}`;
|
|
99
|
+
});
|
|
100
|
+
function m() {
|
|
101
|
+
r() && (r(!1), t.onclose?.());
|
|
102
|
+
}
|
|
103
|
+
function ie() {
|
|
104
|
+
r(!r()), r() || t.onclose?.();
|
|
105
|
+
}
|
|
106
|
+
function g(e) {
|
|
107
|
+
!r() || e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), m());
|
|
108
|
+
}
|
|
109
|
+
x(() => {
|
|
110
|
+
document.addEventListener("keydown", g);
|
|
111
|
+
}), b(() => {
|
|
112
|
+
typeof document < "u" && document.removeEventListener("keydown", g);
|
|
113
|
+
});
|
|
114
|
+
var _ = k(), v = y.child(_);
|
|
115
|
+
y.snippet(v, () => t.trigger, () => ({
|
|
116
|
+
toggle: ie,
|
|
117
|
+
open: r()
|
|
118
|
+
}));
|
|
119
|
+
var ae = y.sibling(v, 2), oe = (e) => {
|
|
120
|
+
var r = O();
|
|
121
|
+
let c;
|
|
122
|
+
var d = y.child(r);
|
|
123
|
+
y.snippet(d, () => t.children), y.reset(r), y.bind_this(r, (e) => y.set(s, e), () => y.get(s)), y.action(r, (e, t) => h?.(e, t), () => ({
|
|
124
|
+
reference: y.get(o),
|
|
125
|
+
placement: i(),
|
|
126
|
+
offset: 4,
|
|
127
|
+
layer: "modalContent",
|
|
128
|
+
onComputed: ({ placement: e }) => {
|
|
129
|
+
y.set(p, e, !0), u();
|
|
130
|
+
}
|
|
131
|
+
})), y.action(r, (e) => re?.(e)), y.template_effect((e) => {
|
|
132
|
+
y.set_class(r, 1, e), y.set_attribute(r, "aria-label", t.ariaLabel), c = y.set_style(r, "", c, { "z-index": y.get(l) });
|
|
133
|
+
}, [() => y.clsx(n("rounded-lg border border-border bg-popover text-popover-foreground shadow-lg", a()))]), y.transition(3, r, () => ee, () => ({ origin: y.get(ne) })), y.append(e, r);
|
|
134
|
+
};
|
|
135
|
+
y.if(ae, (e) => {
|
|
136
|
+
r() && e(oe);
|
|
137
|
+
}), y.reset(_), y.bind_this(_, (e) => y.set(o, e), () => y.get(o)), y.action(_, (e, t) => D?.(e, t), () => m), y.append(e, _), y.pop();
|
|
138
|
+
}
|
|
139
|
+
//#endregion
|
|
140
|
+
//#region src/components/Calendar/Calendar.svelte
|
|
141
|
+
var de = y.from_html("<div role=\"row\"><span role=\"gridcell\"> </span></div>"), fe = y.from_html("<div style=\"display:contents\" data-testid=\"calendar-event\"><!></div>"), pe = y.from_html("<div role=\"gridcell\"><div> </div> <!></div>"), me = y.from_html("<div class=\"month-grid svelte-1twddf5\" role=\"grid\"></div>"), he = y.from_html("<div> </div>"), ge = y.from_html("<button type=\"button\" data-testid=\"calendar-day\"><span> </span></button>"), _e = y.from_html("<div class=\"mini-grid svelte-1twddf5\" role=\"grid\"></div>"), ve = y.from_html("<li class=\"list-none\"><!></li>"), ye = y.from_html("<div class=\"hidden lg:block calendar-swipe-host svelte-1twddf5\"><div class=\"dow-row svelte-1twddf5\" aria-hidden=\"true\"></div> <div class=\"swipe-viewport svelte-1twddf5\"><div><!> <!> <!></div></div></div> <div class=\"lg:hidden calendar-swipe-host svelte-1twddf5\"><div class=\"dow-row svelte-1twddf5\" aria-hidden=\"true\"></div> <div class=\"swipe-viewport svelte-1twddf5\"><div><!> <!> <!></div></div> <div class=\"mt-4\" data-testid=\"calendar-month-list\"><!></div></div>", 1);
|
|
142
|
+
function j(n, l) {
|
|
143
|
+
y.push(l, !0), y.prop(l, "isScheduledBtn", 3, !1), y.prop(l, "eventCalendar", 3, !1), y.prop(l, "embedCalendar", 3, !1);
|
|
144
|
+
let ee = y.prop(l, "currentYear", 19, () => s().getFullYear()), te = y.prop(l, "currentMonth", 19, () => s().getMonth()), re = y.prop(l, "currentevents", 19, () => []);
|
|
145
|
+
y.prop(l, "showPartialPreview", 3, !0);
|
|
146
|
+
let m = y.prop(l, "labels", 3, ne), h = y.prop(l, "locale", 3, "en-US"), b = y.prop(l, "eventDetails", 3, null), x = y.prop(l, "size", 3, "M"), S = y.prop(l, "posterFit", 3, "fit"), C = y.prop(l, "posterBackdrop", 3, "blur"), ce = y.derived(ee), le = y.derived(te), w = d(s()), T = y.derived(() => c(y.get(ce), y.get(le), 1)), ue = y.derived(() => f(y.get(T), {
|
|
147
|
+
month: "long",
|
|
148
|
+
year: "numeric"
|
|
149
|
+
}, h())), E = y.derived(() => {
|
|
150
|
+
let e = new Intl.DateTimeFormat(h(), { weekday: "short" }), t = new Intl.DateTimeFormat(h(), { weekday: "narrow" });
|
|
151
|
+
return o(s()).map((n) => ({
|
|
152
|
+
short: e.format(n),
|
|
153
|
+
narrow: t.format(n)
|
|
154
|
+
}));
|
|
155
|
+
});
|
|
156
|
+
function D(e, t) {
|
|
157
|
+
return p(e.getFullYear(), e.getMonth()).map(({ day: e, inMonth: n, isToday: r }) => {
|
|
158
|
+
let i = d(e);
|
|
159
|
+
return {
|
|
160
|
+
localDay: e,
|
|
161
|
+
day: e.getDate(),
|
|
162
|
+
date: i,
|
|
163
|
+
groupedEvents: n ? _(t.get(i) ?? []) : [],
|
|
164
|
+
isOutsideMonth: !n,
|
|
165
|
+
isToday: n && r
|
|
166
|
+
};
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
function O(e) {
|
|
170
|
+
let t = [];
|
|
171
|
+
for (let n = 0; n < e.length; n += 7) {
|
|
172
|
+
let r = e.slice(n, n + 7), i = r.every((e) => e.date < w && e.groupedEvents.length === 0);
|
|
173
|
+
t.push({
|
|
174
|
+
week: r,
|
|
175
|
+
folded: i
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
let n = [];
|
|
179
|
+
for (let e = 0; e < t.length; e++) {
|
|
180
|
+
if (!t[e].folded) {
|
|
181
|
+
for (let r of t[e].week) n.push({ cell: r });
|
|
182
|
+
continue;
|
|
183
|
+
}
|
|
184
|
+
let r = t[e].week[0];
|
|
185
|
+
for (; t[e + 1]?.folded;) e++;
|
|
186
|
+
let i = t[e].week[6], a = (e) => f(e, {
|
|
187
|
+
month: "short",
|
|
188
|
+
day: "numeric"
|
|
189
|
+
}, h());
|
|
190
|
+
n.push({ strip: {
|
|
191
|
+
key: `strip|${r.date}`,
|
|
192
|
+
label: `${a(r.localDay)} – ${a(i.localDay)}`
|
|
193
|
+
} });
|
|
194
|
+
}
|
|
195
|
+
return n;
|
|
196
|
+
}
|
|
197
|
+
let k = y.derived(() => {
|
|
198
|
+
let e = new se();
|
|
199
|
+
for (let t of re()) v(t)?.type !== "cancelled" && (e.has(t.date) || e.set(t.date, []), e.get(t.date).push(t));
|
|
200
|
+
return e;
|
|
201
|
+
}), A = y.derived(() => D(y.get(T), y.get(k))), j = y.derived(() => D(u(y.get(T), -1), y.get(k))), be = y.derived(() => D(u(y.get(T), 1), y.get(k))), M = y.state(0), N = y.state(0), xe = y.derived(() => O(y.get(A))), Se = y.derived(() => O(y.get(j))), Ce = y.derived(() => O(y.get(be))), P = 0, we = 0, Te = 0, Ee = 0, F = 0, I = y.state(!1), L = y.state(0), R = y.state(!1), z = y.state(!1), B = null, V = y.state(!1), H = y.state(null), U = y.state(null);
|
|
202
|
+
function De() {
|
|
203
|
+
return y.get(H)?.offsetWidth || y.get(U)?.offsetWidth || 320;
|
|
204
|
+
}
|
|
205
|
+
y.user_effect(() => {
|
|
206
|
+
if (typeof window > "u") return;
|
|
207
|
+
let e = window.matchMedia("(prefers-reduced-motion: reduce)");
|
|
208
|
+
y.set(V, e.matches, !0);
|
|
209
|
+
let t = (e) => y.set(V, e.matches, !0);
|
|
210
|
+
return e.addEventListener("change", t), () => e.removeEventListener("change", t);
|
|
211
|
+
});
|
|
212
|
+
function Oe(e, t, n) {
|
|
213
|
+
if (y.get(z)) {
|
|
214
|
+
t?.();
|
|
215
|
+
return;
|
|
216
|
+
}
|
|
217
|
+
if (y.get(V)) {
|
|
218
|
+
t?.();
|
|
219
|
+
return;
|
|
220
|
+
}
|
|
221
|
+
y.set(z, !0);
|
|
222
|
+
let r = n || De();
|
|
223
|
+
y.set(L, e === 1 ? -r : r, !0), B = window.setTimeout(() => {
|
|
224
|
+
B = null, y.set(R, !0), requestAnimationFrame(() => {
|
|
225
|
+
t?.(), y.set(L, 0), y.set(z, !1), requestAnimationFrame(() => {
|
|
226
|
+
y.set(R, !1);
|
|
227
|
+
});
|
|
228
|
+
});
|
|
229
|
+
}, 320);
|
|
230
|
+
}
|
|
231
|
+
async function ke(e, t) {
|
|
232
|
+
Oe(e, t);
|
|
233
|
+
}
|
|
234
|
+
function Ae(e) {
|
|
235
|
+
y.get(z) && (B !== null && (clearTimeout(B), B = null), y.set(z, !1), y.set(R, !1)), P = e.touches[0].clientX, we = e.touches[0].clientY, Te = P, Ee = e.timeStamp, F = 0, y.set(I, !1), y.set(L, 0);
|
|
236
|
+
}
|
|
237
|
+
function je(e) {
|
|
238
|
+
if (!P || y.get(z)) return;
|
|
239
|
+
let t = e.touches[0].clientX, n = e.touches[0].clientY, r = P - t, i = we - n, a = e.timeStamp;
|
|
240
|
+
if (!y.get(I) && Math.abs(r) > 10) {
|
|
241
|
+
if (Math.abs(r) > Math.abs(i)) y.set(I, !0);
|
|
242
|
+
else {
|
|
243
|
+
P = 0;
|
|
244
|
+
return;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
if (y.get(I)) {
|
|
248
|
+
e.preventDefault();
|
|
249
|
+
let n = a - Ee;
|
|
250
|
+
n > 0 && (F = (Te - t) / n), Te = t, Ee = a, y.set(L, -r * .95);
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
function W(t) {
|
|
254
|
+
if (!P || !y.get(I) || y.get(z)) {
|
|
255
|
+
P = 0, y.set(I, !1);
|
|
256
|
+
return;
|
|
257
|
+
}
|
|
258
|
+
let n = t.currentTarget?.offsetWidth || De(), r = Math.abs(y.get(L)) / n > .08, i = Math.abs(F) > .2, a = y.get(L) > 0 ? -1 : 1;
|
|
259
|
+
r || i ? (e("medium"), Oe(a, () => a === 1 ? l.onswipeNext?.() : l.onswipePrev?.(), n)) : y.set(L, 0), P = 0, y.set(I, !1), F = 0;
|
|
260
|
+
}
|
|
261
|
+
let G = y.state(""), K = y.state("");
|
|
262
|
+
function Me(e) {
|
|
263
|
+
let n = [
|
|
264
|
+
"ArrowLeft",
|
|
265
|
+
"ArrowRight",
|
|
266
|
+
"ArrowUp",
|
|
267
|
+
"ArrowDown"
|
|
268
|
+
].includes(e.key), r = t(e);
|
|
269
|
+
if (!n && !r || !y.get(K)) return;
|
|
270
|
+
let i = y.get(A).findIndex((e) => e.date === y.get(K));
|
|
271
|
+
if (i === -1) return;
|
|
272
|
+
if (r) {
|
|
273
|
+
e.preventDefault();
|
|
274
|
+
let t = y.get(A)[i];
|
|
275
|
+
t.groupedEvents.length > 0 && (y.set(G, t.date, !0), l.ondaySelect?.({
|
|
276
|
+
date: t.date,
|
|
277
|
+
events: t.groupedEvents
|
|
278
|
+
}));
|
|
279
|
+
return;
|
|
280
|
+
}
|
|
281
|
+
let a = i;
|
|
282
|
+
e.key === "ArrowLeft" ? a = i - 1 : e.key === "ArrowRight" ? a = i + 1 : e.key === "ArrowUp" ? a = i - 7 : e.key === "ArrowDown" && (a = i + 7), !(a < 0 || a >= y.get(A).length) && (e.preventDefault(), y.set(K, y.get(A)[a].date, !0), queueMicrotask(() => {
|
|
283
|
+
document.querySelector(`[data-current-page] [data-cell-date="${y.get(A)[a].date}"]`)?.focus();
|
|
284
|
+
}));
|
|
285
|
+
}
|
|
286
|
+
y.user_effect(() => {
|
|
287
|
+
if (y.get(K) && y.get(A).some((e) => e.date === y.get(K))) return;
|
|
288
|
+
if (y.get(q) && y.get(A).some((e) => e.date === y.get(q))) {
|
|
289
|
+
y.set(K, y.get(q), !0);
|
|
290
|
+
return;
|
|
291
|
+
}
|
|
292
|
+
let e = y.get(A).find((e) => e.isToday);
|
|
293
|
+
if (e) {
|
|
294
|
+
y.set(K, e.date, !0);
|
|
295
|
+
return;
|
|
296
|
+
}
|
|
297
|
+
let t = y.get(A).find((e) => !e.isOutsideMonth && e.groupedEvents.length > 0);
|
|
298
|
+
if (t) {
|
|
299
|
+
y.set(K, t.date, !0);
|
|
300
|
+
return;
|
|
301
|
+
}
|
|
302
|
+
let n = y.get(A).find((e) => !e.isOutsideMonth);
|
|
303
|
+
n && y.set(K, n.date, !0);
|
|
304
|
+
});
|
|
305
|
+
function Ne(e) {
|
|
306
|
+
return !!e && y.get(A).some((t) => t.date === e && !t.isOutsideMonth);
|
|
307
|
+
}
|
|
308
|
+
let q = y.derived(() => Ne(y.get(G)) ? y.get(G) : Ne(w) ? w : ""), J = y.derived(() => !!y.get(G) && y.get(q) === y.get(G)), Pe = y.derived(() => y.get(J) ? _(y.get(k).get(y.get(G)) ?? []) : y.get(A).filter((e) => !e.isOutsideMonth && e.date >= w).flatMap((e) => e.groupedEvents));
|
|
309
|
+
var Fe = { animateMonthTransition: ke }, Ie = ye(), Y = y.first_child(Ie);
|
|
310
|
+
{
|
|
311
|
+
let e = (e, t = y.noop, n = y.noop, r = y.noop) => {
|
|
312
|
+
var a = me();
|
|
313
|
+
y.each(a, 21, t, ({ cell: e, strip: t }) => t ? t.key : `${e.date}|${e.isOutsideMonth ? "O" : "I"}`, (e, t) => {
|
|
314
|
+
let n = () => y.get(t).cell, r = () => y.get(t).strip;
|
|
315
|
+
var a = y.comment(), o = y.first_child(a), s = (e) => {
|
|
316
|
+
var t = de(), n = y.child(t), a = y.child(n, !0);
|
|
317
|
+
y.reset(n), y.reset(t), y.template_effect(() => {
|
|
318
|
+
y.set_class(t, 1, `past-strip ${i.caption ?? ""}`, "svelte-1twddf5"), y.set_text(a, r().label);
|
|
319
|
+
}), y.append(e, t);
|
|
320
|
+
}, c = (e) => {
|
|
321
|
+
var t = pe();
|
|
322
|
+
let r;
|
|
323
|
+
var a = y.child(t), o = y.child(a, !0);
|
|
324
|
+
y.reset(a);
|
|
325
|
+
var s = y.sibling(a, 2);
|
|
326
|
+
y.each(s, 17, () => n().groupedEvents, (e) => e.event.eventID, (e, t) => {
|
|
327
|
+
let n = y.derived(() => {
|
|
328
|
+
let { pillEvents: e, ...n } = oe(y.get(t), m(), h(), b(), {
|
|
329
|
+
posterFit: S(),
|
|
330
|
+
posterBackdrop: C()
|
|
331
|
+
});
|
|
332
|
+
return {
|
|
333
|
+
pillEvents: e,
|
|
334
|
+
card: n
|
|
335
|
+
};
|
|
336
|
+
});
|
|
337
|
+
var r = fe(), i = y.child(r);
|
|
338
|
+
ae(i, y.spread_props({ pillVariant: "primary" }, () => y.get(n).card, {
|
|
339
|
+
layout: "micro",
|
|
340
|
+
density: "micro",
|
|
341
|
+
hideDate: !0,
|
|
342
|
+
onclick: () => l.oneventClick?.(y.get(t).event),
|
|
343
|
+
onpillclick: (e) => l.oneventClick?.(y.get(n).pillEvents[e] ?? y.get(t).event)
|
|
344
|
+
})), y.reset(r), y.append(e, r);
|
|
345
|
+
}), y.reset(t), y.template_effect(() => {
|
|
346
|
+
r = y.set_class(t, 1, "day-cell svelte-1twddf5", null, r, {
|
|
347
|
+
"day-cell--outside": n().isOutsideMonth,
|
|
348
|
+
"day-cell--today": n().isToday
|
|
349
|
+
}), y.set_class(a, 1, `day-num ${i.eyebrow ?? ""}`, "svelte-1twddf5"), y.set_text(o, n().day);
|
|
350
|
+
}), y.append(e, t);
|
|
351
|
+
};
|
|
352
|
+
y.if(o, (e) => {
|
|
353
|
+
r() ? e(s) : e(c, -1);
|
|
354
|
+
}), y.append(e, a);
|
|
355
|
+
}), y.reset(a), y.template_effect(() => y.set_attribute(a, "aria-label", n())), y.bind_element_size(a, "offsetHeight", (e) => {
|
|
356
|
+
r() && y.set(M, e, !0);
|
|
357
|
+
}), y.append(e, a);
|
|
358
|
+
};
|
|
359
|
+
var Le = y.child(Y);
|
|
360
|
+
y.each(Le, 21, () => y.get(E), y.index, (e, t) => {
|
|
361
|
+
var n = he(), r = y.child(n, !0);
|
|
362
|
+
y.reset(n), y.template_effect(() => {
|
|
363
|
+
y.set_class(n, 1, `dow-cell ${i.eyebrow ?? ""}`, "svelte-1twddf5"), y.set_text(r, y.get(t).short);
|
|
364
|
+
}), y.append(e, n);
|
|
365
|
+
}), y.reset(Le);
|
|
366
|
+
var Re = y.sibling(Le, 2);
|
|
367
|
+
let t;
|
|
368
|
+
var X = y.child(Re);
|
|
369
|
+
let n, r;
|
|
370
|
+
var ze = y.child(X);
|
|
371
|
+
e(ze, () => y.get(Se), () => "prev", () => !1);
|
|
372
|
+
var Be = y.sibling(ze, 2);
|
|
373
|
+
e(Be, () => y.get(xe), () => y.get(ue), () => !0), e(y.sibling(Be, 2), () => y.get(Ce), () => "next", () => !1), y.reset(X), y.reset(Re), y.reset(Y), y.bind_this(Y, (e) => y.set(H, e), () => y.get(H)), y.template_effect(() => {
|
|
374
|
+
t = y.set_style(Re, "", t, { height: y.get(M) ? `${y.get(M)}px` : void 0 }), n = y.set_class(X, 1, "swipe-track svelte-1twddf5", null, n, {
|
|
375
|
+
"swipe-track--swiping": y.get(I),
|
|
376
|
+
"swipe-track--snapping": y.get(R)
|
|
377
|
+
}), r = y.set_style(X, "", r, { transform: `translate3d(calc(-100% / 3 + ${y.get(L) ?? ""}px), 0, 0)` });
|
|
378
|
+
});
|
|
379
|
+
}
|
|
380
|
+
var Z = y.sibling(Y, 2);
|
|
381
|
+
{
|
|
382
|
+
let e = (e, t = y.noop, n = y.noop, o = y.noop) => {
|
|
383
|
+
var s = _e();
|
|
384
|
+
y.each(s, 21, t, (e) => `${e.date}|${e.isOutsideMonth ? "O" : "I"}`, (e, t) => {
|
|
385
|
+
let n = y.derived(() => y.get(t).groupedEvents.length > 0), s = y.derived(() => y.get(t).date === y.get(q));
|
|
386
|
+
var c = ge();
|
|
387
|
+
let u;
|
|
388
|
+
var d = y.child(c), f = y.child(d, !0);
|
|
389
|
+
y.reset(d), y.reset(c), y.template_effect(() => {
|
|
390
|
+
u = y.set_class(c, 1, `mini-cell ${i.label ?? ""} ${(y.get(s) ? a.heavy : y.get(n) ? a.strong : "") ?? ""}`, "svelte-1twddf5", u, {
|
|
391
|
+
"mini-cell--outside": y.get(t).isOutsideMonth,
|
|
392
|
+
"mini-cell--today": y.get(t).isToday,
|
|
393
|
+
"mini-cell--selected": y.get(s) && y.get(J),
|
|
394
|
+
"mini-cell--has-events": y.get(n)
|
|
395
|
+
}), y.set_attribute(c, "aria-disabled", !y.get(n)), y.set_attribute(c, "tabindex", o() && y.get(K) === y.get(t).date ? 0 : -1), y.set_attribute(c, "data-cell-date", y.get(t).date), y.set_attribute(c, "aria-label", `${y.get(t).day ?? ""} ${y.get(n) ? `· ${y.get(t).groupedEvents.length} event${y.get(t).groupedEvents.length === 1 ? "" : "s"}` : ""}`), y.set_attribute(c, "aria-pressed", y.get(s)), y.set_class(d, 1, `mini-day ${r.none ?? ""}`, "svelte-1twddf5"), y.set_text(f, y.get(t).day);
|
|
396
|
+
}), y.delegated("click", c, function(...e) {
|
|
397
|
+
(y.get(n) ? () => {
|
|
398
|
+
y.set(G, y.get(t).date, !0), y.set(K, y.get(t).date, !0), l.ondaySelect?.({
|
|
399
|
+
date: y.get(t).date,
|
|
400
|
+
events: y.get(t).groupedEvents
|
|
401
|
+
});
|
|
402
|
+
} : void 0)?.apply(this, e);
|
|
403
|
+
}), y.append(e, c);
|
|
404
|
+
}), y.reset(s), y.template_effect(() => {
|
|
405
|
+
y.set_attribute(s, "aria-label", n()), y.set_attribute(s, "data-current-page", o() ? "" : void 0);
|
|
406
|
+
}), y.bind_element_size(s, "offsetHeight", (e) => {
|
|
407
|
+
o() && y.set(N, e, !0);
|
|
408
|
+
}), y.append(e, s);
|
|
409
|
+
};
|
|
410
|
+
var Ve = y.child(Z);
|
|
411
|
+
y.each(Ve, 21, () => y.get(E), y.index, (e, t) => {
|
|
412
|
+
var n = he(), r = y.child(n, !0);
|
|
413
|
+
y.reset(n), y.template_effect(() => {
|
|
414
|
+
y.set_class(n, 1, `dow-cell ${i.eyebrow ?? ""}`, "svelte-1twddf5"), y.set_text(r, y.get(t).narrow);
|
|
415
|
+
}), y.append(e, n);
|
|
416
|
+
}), y.reset(Ve);
|
|
417
|
+
var Q = y.sibling(Ve, 2);
|
|
418
|
+
let t;
|
|
419
|
+
var $ = y.child(Q);
|
|
420
|
+
let n, o;
|
|
421
|
+
var He = y.child($);
|
|
422
|
+
e(He, () => y.get(j), () => "prev", () => !1);
|
|
423
|
+
var Ue = y.sibling(He, 2);
|
|
424
|
+
e(Ue, () => y.get(A), () => y.get(ue), () => !0), e(y.sibling(Ue, 2), () => y.get(be), () => "next", () => !1), y.reset($), y.reset(Q);
|
|
425
|
+
var We = y.sibling(Q, 2), Ge = y.child(We), Ke = (e) => {
|
|
426
|
+
ie(e, {
|
|
427
|
+
cols: "1",
|
|
428
|
+
gap: "2",
|
|
429
|
+
as: "ul",
|
|
430
|
+
children: (e, t) => {
|
|
431
|
+
var n = y.comment(), r = y.first_child(n);
|
|
432
|
+
y.each(r, 17, () => y.get(Pe), (e) => e.event.eventID, (e, t) => {
|
|
433
|
+
let n = y.derived(() => {
|
|
434
|
+
let { pillEvents: e, ...n } = oe(y.get(t), m(), h(), b(), {
|
|
435
|
+
posterFit: S(),
|
|
436
|
+
posterBackdrop: C()
|
|
437
|
+
});
|
|
438
|
+
return {
|
|
439
|
+
pillEvents: e,
|
|
440
|
+
card: n
|
|
441
|
+
};
|
|
442
|
+
});
|
|
443
|
+
var r = ve(), i = y.child(r);
|
|
444
|
+
ae(i, y.spread_props({ pillVariant: "primary" }, () => y.get(n).card, {
|
|
445
|
+
layout: "horizontal",
|
|
446
|
+
density: "compact",
|
|
447
|
+
get hideDate() {
|
|
448
|
+
return y.get(J);
|
|
449
|
+
},
|
|
450
|
+
onclick: () => l.oneventClick?.(y.get(t).event),
|
|
451
|
+
onpillclick: (e) => l.oneventClick?.(y.get(n).pillEvents[e] ?? y.get(t).event)
|
|
452
|
+
})), y.reset(r), y.append(e, r);
|
|
453
|
+
}), y.append(e, n);
|
|
454
|
+
},
|
|
455
|
+
$$slots: { default: !0 }
|
|
456
|
+
});
|
|
457
|
+
}, qe = (e) => {
|
|
458
|
+
{
|
|
459
|
+
let t = y.derived(() => m().noUpcomingEvents || "No upcoming events");
|
|
460
|
+
g(e, { get message() {
|
|
461
|
+
return y.get(t);
|
|
462
|
+
} });
|
|
463
|
+
}
|
|
464
|
+
};
|
|
465
|
+
y.if(Ge, (e) => {
|
|
466
|
+
y.get(Pe).length > 0 ? e(Ke) : e(qe, -1);
|
|
467
|
+
}), y.reset(We), y.reset(Z), y.bind_this(Z, (e) => y.set(U, e), () => y.get(U)), y.template_effect(() => {
|
|
468
|
+
t = y.set_style(Q, "", t, { height: y.get(N) ? `${y.get(N)}px` : void 0 }), n = y.set_class($, 1, "swipe-track svelte-1twddf5", null, n, {
|
|
469
|
+
"swipe-track--swiping": y.get(I),
|
|
470
|
+
"swipe-track--snapping": y.get(R)
|
|
471
|
+
}), o = y.set_style($, "", o, { transform: `translate3d(calc(-100% / 3 + ${y.get(L) ?? ""}px), 0, 0)` });
|
|
472
|
+
});
|
|
473
|
+
}
|
|
474
|
+
return y.template_effect(() => {
|
|
475
|
+
y.set_attribute(Y, "data-size", x()), y.set_attribute(Z, "data-size", x());
|
|
476
|
+
}), y.delegated("touchstart", Y, Ae, void 0, !0), y.delegated("touchmove", Y, je, void 0, !0), y.delegated("touchend", Y, W), y.event("touchcancel", Y, W), y.delegated("touchstart", Z, Ae, void 0, !0), y.delegated("touchmove", Z, je, void 0, !0), y.delegated("touchend", Z, W), y.event("touchcancel", Z, W), y.delegated("keydown", Z, Me), y.append(n, Ie), y.pop(Fe);
|
|
477
|
+
}
|
|
478
|
+
y.delegate([
|
|
479
|
+
"touchstart",
|
|
480
|
+
"touchmove",
|
|
481
|
+
"touchend",
|
|
482
|
+
"keydown",
|
|
483
|
+
"click"
|
|
484
|
+
]);
|
|
485
|
+
//#endregion
|
|
486
|
+
export { le as a, E as i, A as n, C as o, D as r, j as t };
|