@getmicdrop/venue-calendar 4.3.138 → 4.3.139
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 +895 -840
- package/dist/AddOnCard-Dlt_4lut.js +475 -0
- package/dist/{Button-B_gbGd63.js → Button-Ch5dRGa2.js} +1 -1
- package/dist/{Button-B1cBhdtC.js → Button-DpeQSoQ7.js} +58 -45
- package/dist/Calendar-CNWS2xiR.js +396 -0
- package/dist/CalendarFoundryView-B5puOxH5.js +16431 -0
- package/dist/{ChartBlock-DcsCXfX8.js → ChartBlock-vihMKVdW.js} +2 -2
- package/dist/Checkout-B2FvX6Af.js +1070 -0
- package/dist/Checkout-y0x-v-XH.js +1995 -0
- package/dist/{ChevronDownOutline-kFgRY2cg.js → CloseOutline-Bh9UO94v.js} +2 -2
- package/dist/{CollectionView-C0vDg5oJ.js → CollectionView-CcLlV-1f.js} +22 -24
- package/dist/{CropImage-BWYeQXXA.js → CropImage-DqLAGy5s.js} +6 -6
- package/dist/{DatePicker-v-4ijT8N.js → DatePicker-D20Te0JY.js} +222 -215
- package/dist/{Event-vlu8IAxh.js → Event-DoIU0o6C.js} +799 -796
- package/dist/{EventCard-puoh3xag.js → EventCard-B8MYLyIW.js} +1 -1
- package/dist/EventPage-DM4tjCcL.js +1298 -0
- package/dist/{FilterChipGroup-DUGvOaRI.js → FilterChipGroup-BCjc7-pE.js} +1 -1
- package/dist/{ImageUploader-CKrf5amy.js → ImageUploader-BzxKIyLN.js} +324 -375
- package/dist/{Input-BQk4itex.js → Input-Bp5EgI1F.js} +5 -3
- package/dist/Modal-C6EXgkuF.js +159 -0
- package/dist/{ModalFooter-gFaDKsfj.js → ModalFooter-C4TD3-zP.js} +1 -1
- package/dist/{ModalTitle-CS5AGwrU.js → ModalTitle-BP4Bm3sA.js} +1 -1
- package/dist/{PasswordInput-C65GqxdF.js → PasswordInput-BlzSrkPs.js} +1 -1
- package/dist/{PhoneInput-Dj1I3bEn.js → PhoneInput-_ByjRGQ0.js} +2 -2
- package/dist/{RecommendationsRail-DC5qX1ei.js → RecommendationsRail-BDNnbL-p.js} +53 -50
- package/dist/{Search-BE64QcmK.js → Search-vhGEpog6.js} +1 -1
- package/dist/SeriesPage-YE8czX1M.js +32 -0
- package/dist/{SkeletonLoader-DfW0N9R3.js → SkeletonLoader-Beh2izdy.js} +1 -1
- package/dist/Spinner-DgubkWKo.js +88 -0
- package/dist/{Success-D3CrUeka.js → Success-CN5HB8gN.js} +164 -166
- package/dist/{TimePicker-HYzPI_Dc.js → TimePicker-BDuy9Ap8.js} +1 -1
- package/dist/{ViewTicketsEmbed-DzUCgtA3.js → ViewTicketsEmbed-DvoMIiKJ.js} +9 -10
- package/dist/{address-field-BwGHcMKY.js → address-field-DOalICpt.js} +2 -2
- package/dist/{allowlist-Bt1BHhNd.js → allowlist-DinkGF2L.js} +77 -68
- package/dist/api/api.cjs +1 -1
- package/dist/api/api.mjs +320 -297
- package/dist/api/client.d.ts +14 -53
- package/dist/api/events.d.ts +15 -1
- package/dist/api/result.d.ts +9 -0
- package/dist/{api-CRHFSJDI.js → api-CsAx0rmV.js} +150 -145
- package/dist/{avatar-picker-field-CSF5okeM.js → avatar-picker-field-CV4vRxTB.js} +14 -14
- package/dist/{checkoutState-BDNjJRMG.js → checkoutState-DSx7g3Vy.js} +12 -21
- package/dist/{client-BIN_q-of.js → client-SaDt6559.js} +18 -12
- package/dist/{constants-DrFV2oht.js → constants-sRRJh0u-.js} +1 -1
- package/dist/{date-field-3tgOYbzF.js → date-field-DylJx0y7.js} +9 -9
- package/dist/{date-range-field-D0Aq9me9.js → date-range-field-BOV1V2ab.js} +7 -7
- package/dist/{de-CUrE_4a4.js → de-CzkX3H3B.js} +1 -0
- package/dist/{defaultLabels-CybwJCNn.js → defaultLabels-DLK6rq4q.js} +1 -0
- package/dist/{defaults-B5wyre5O.js → defaults-Cbuin1WS.js} +2 -3
- package/dist/{es-B2-z2Kft.js → es-BOLzv8eD.js} +1 -0
- package/dist/{event-CEg17hts.js → event-ClsLWtR0.js} +1 -1
- package/dist/{event-transform-DqFigNQg.js → event-transform-Cs63X0hI.js} +42 -42
- package/dist/{eventStatusStream-DK5fWCTB.js → eventStatusStream-BAh5nJP2.js} +1 -1
- package/dist/{field-rules-CKFFB16Q.js → field-rules-Yb2JY1qT.js} +1 -1
- package/dist/{file-field-2mPz4Da-.js → file-field-Dwo80kDg.js} +4 -4
- package/dist/format-CehusdDg.js +1718 -0
- package/dist/{formatters-CzKNRUwz.js → formatters-DUWbI_Eg.js} +25 -35
- package/dist/{fr-CiePVIlj.js → fr-DYTIBBXo.js} +1 -0
- package/dist/{href-DpbLXQ4c.js → href-BXhNawil.js} +1 -1
- package/dist/i18n-BNF6a-QA.js +720 -0
- package/dist/i18n-F_QOaHVh.js +26 -0
- package/dist/{id-Ttw95_7t.js → id-CIyIkGhH.js} +1 -0
- package/dist/{image-field-B8x0WQ2j.js → image-field-DeLzsJlz.js} +2 -2
- package/dist/{it-CBbXcFY1.js → it-CF4Db_nK.js} +1 -0
- package/dist/{ja-B2Tag7J3.js → ja-5-7WNHD1.js} +1 -0
- package/dist/{ko-CcTn4lAi.js → ko-huIzHR3W.js} +1 -0
- package/dist/locales/4.3.139/main/de.js +1 -0
- package/dist/locales/4.3.139/main/es.js +1 -0
- package/dist/locales/4.3.139/main/fr.js +1 -0
- package/dist/locales/4.3.139/main/id.js +1 -0
- package/dist/locales/4.3.139/main/it.js +1 -0
- package/dist/locales/4.3.139/main/ja.js +1 -0
- package/dist/locales/4.3.139/main/ko.js +1 -0
- package/dist/locales/4.3.139/main/nl.js +1 -0
- package/dist/locales/4.3.139/main/pl.js +1 -0
- package/dist/locales/4.3.139/main/pt-br.js +1 -0
- package/dist/locales/4.3.139/main/tr.js +1 -0
- package/dist/locales/4.3.139/main/zh.js +1 -0
- package/dist/look-island.svelte-D87MvHNy.js +1296 -0
- package/dist/{look-names-JI6GE-Zj.js → look-names-B9MywEzX.js} +68 -58
- package/dist/looks/4.3.139/AddOnCard-CKdkGcHH.js +1 -0
- package/dist/looks/4.3.139/Checkout-D7CaFYTE.js +1 -0
- package/dist/looks/4.3.139/Checkout-DuP46PMi.js +3 -0
- package/dist/looks/4.3.139/CollectionView-CWm57JCx.js +1 -0
- package/dist/looks/4.3.139/Event-ePupb4qY.js +8 -0
- package/dist/looks/4.3.139/EventPage-CgexXhEU.js +1 -0
- package/dist/looks/4.3.139/RecommendationsRail-Bz-Mj_r4.js +2 -0
- package/dist/looks/4.3.139/SeriesPage-DI2uFF0Y.js +1 -0
- package/dist/looks/4.3.139/Success-BkMzmgmc.js +3 -0
- package/dist/looks/4.3.139/ViewTicketsEmbed-CbEJwRry.js +1 -0
- package/dist/looks/4.3.139/_vc-foundry-calendar-stub-BVbAFEK2.js +1 -0
- package/dist/looks/4.3.139/buyerEmail-CqCYa9UL.js +1 -0
- package/dist/looks/4.3.139/constants-CU_ZgyQu.js +3 -0
- package/dist/looks/4.3.139/defaults-B46SFFK4.js +2 -0
- package/dist/looks/4.3.139/dist-BWGSqtWN.js +1 -0
- package/dist/looks/4.3.139/eventStatusStream-CW5lJwsa.js +10 -0
- package/dist/looks/4.3.139/first-core-DrYq9wBy.js +151 -0
- package/dist/looks/4.3.139/first-mount.svelte-DFSLaJWm.js +1 -0
- package/dist/looks/4.3.139/first-seo-DvHuCXT6.js +1 -0
- package/dist/looks/4.3.139/first.js +1 -0
- package/dist/looks/4.3.139/full-widget-DDBk3i4U.js +2 -0
- package/dist/looks/4.3.139/gate-password-cache-D4Zls6QM.js +1 -0
- package/dist/looks/4.3.139/i18n-DRaFNYsQ.js +1 -0
- package/dist/looks/4.3.139/listing-BSaRTkxW.js +1 -0
- package/dist/looks/4.3.139/loaders.runtime-BNG8O6-A.js +1 -0
- package/dist/looks/4.3.139/looks.js +1 -0
- package/dist/looks/4.3.139/modalManager.svelte-CqQWYz9Y.js +1 -0
- package/dist/looks/4.3.139/rolldown-runtime-4tVxZq34.js +1 -0
- package/dist/looks/4.3.139/serverTotals-Bu1fAPLB.js +1 -0
- package/dist/looks/4.3.139/showcase-state-options-CpCMAKVD.js +1 -0
- package/dist/looks/4.3.139/utils-pGRhH4A-.js +1 -0
- package/dist/{media-field-HieD0ye0.js → media-field-PW8ye6EL.js} +2 -2
- package/dist/modalManager.svelte-BHE0t9q3.js +79 -0
- package/dist/{multiselect-field-CJ4lUJyS.js → multiselect-field-CmocFs5f.js} +2 -2
- package/dist/navigation-B8rkS2On.js +348 -0
- package/dist/{nl-DeIqgjIs.js → nl-B1dv1lqk.js} +1 -0
- package/dist/{number-field-D5GkkGLB.js → number-field-CUD936Ai.js} +3 -3
- package/dist/{numeric-filter-field-CRWZFu_P.js → numeric-filter-field-BmgSYhOt.js} +3 -3
- package/dist/{password-field-DdOHXEOo.js → password-field-BfvcZUi_.js} +1 -1
- package/dist/{phone-field-BaYmp56f.js → phone-field-DO0U_YZ6.js} +17 -18
- package/dist/{pixels-BXXzmoCb.js → pixels-ipedGW6i.js} +7 -7
- package/dist/{pl-Bm2FcD5y.js → pl-DLlM_IPo.js} +1 -0
- package/dist/{pt-br-XS1Lsa6z.js → pt-br-8V3mf7pu.js} +1 -0
- package/dist/repeating-field-BwtJ6VS1.js +488 -0
- package/dist/{richtext-field-KmUytgBW.js → richtext-field-DvLCxPvq.js} +2 -2
- package/dist/{datetime-BlEsN_-8.js → scarcity-DfQvyhJP.js} +74 -85
- package/dist/{searchable-select-field-DettZRav.js → searchable-select-field-zuIqfoQM.js} +17 -17
- package/dist/{select-field-Wc4gAtou.js → select-field-DNNN-a9q.js} +6 -6
- package/dist/seo/HostSeoController.d.ts +13 -0
- package/dist/seo/seo.cjs +1 -1
- package/dist/seo/seo.mjs +18 -11
- package/dist/{serverTotals-COsx7Mc5.js → serverTotals-BprgDwOw.js} +1 -1
- package/dist/{showcase-state-options-CHGUaZtl.js → showcase-state-options-bKRf48yz.js} +2 -2
- package/dist/{time-field-CnxZcziR.js → time-field-DmPCoppV.js} +2 -2
- package/dist/{to-event-card-props-C9v9dspT.js → to-event-card-props-KVcCJ2JF.js} +34 -34
- package/dist/{tr-zKAbMfgi.js → tr-DiUEV65j.js} +1 -0
- package/dist/{tree-picker-field-aqux58EQ.js → tree-picker-field-BJwSFAqm.js} +8 -8
- package/dist/types/index.d.ts +3 -0
- package/dist/{utils-AIszIHUb.js → utils-x8YXRKvr.js} +12 -12
- package/dist/venue-BjLCg-PW.js +38 -0
- package/dist/venue-calendar.css +1 -1
- package/dist/venue-calendar.es.js +1655 -1539
- package/dist/venue-calendar.iife.js +1 -54
- package/dist/venue-calendar.umd.js +69 -63
- package/dist/{widget-key-context-BrWW0fyM.js → widget-key-context-dHM9FiuJ.js} +8 -37
- package/dist/{zh-DHfgJplH.js → zh-Cej2EPQt.js} +1 -0
- package/package.json +2 -2
- package/src/lib/constants/scarcity.ts +1 -2
- package/dist/AddOnCard-DEAC26HA.js +0 -348
- package/dist/BlockPlaceholder-BKfoE795.js +0 -59
- package/dist/Calendar-9xskvKUf.js +0 -395
- package/dist/CalendarFoundryView-DbxZNmY7.js +0 -16356
- package/dist/CartView-DMINN6bY.js +0 -2200
- package/dist/Checkbox-sObkYRdj.js +0 -60
- package/dist/Checkout-H9RGBU9D.js +0 -1071
- package/dist/Checkout-VnochAZE.js +0 -1967
- package/dist/CheckoutTimer-mjcYR3XU.js +0 -42
- package/dist/EventPage-DycxjX5Z.js +0 -1301
- package/dist/Modal-DOpDiAwN.js +0 -102
- package/dist/ScarcityBadge-BAaV2CIY.js +0 -141
- package/dist/SeriesPage-Cx89s2B6.js +0 -34
- package/dist/Skeleton-B6qB_udJ.js +0 -31
- package/dist/Spinner-Bj4dr9kO.js +0 -19
- package/dist/Textarea-BDcuBI13.js +0 -72
- package/dist/__SKIP_NAVIGATION__-Znm_vYcG.js +0 -5
- package/dist/__SKIP_PATHS__-Bzzrca_a.js +0 -5
- package/dist/calendar-Cdu8fCIt.js +0 -111
- package/dist/cta-qbcIt5Gh.js +0 -116
- package/dist/format-CypC4vWs.js +0 -1587
- package/dist/heic-to-BoLfsr3l.js +0 -70
- package/dist/i18n-B_TWnExv.js +0 -495
- package/dist/i18n-CSaUFnlD.js +0 -26
- package/dist/instant-BkZCSGDm.js +0 -162
- package/dist/labels-D8LN8lY7.js +0 -227
- package/dist/locales/4.3.138/main/de.js +0 -1
- package/dist/locales/4.3.138/main/es.js +0 -1
- package/dist/locales/4.3.138/main/fr.js +0 -1
- package/dist/locales/4.3.138/main/id.js +0 -1
- package/dist/locales/4.3.138/main/it.js +0 -1
- package/dist/locales/4.3.138/main/ja.js +0 -1
- package/dist/locales/4.3.138/main/ko.js +0 -1
- package/dist/locales/4.3.138/main/nl.js +0 -1
- package/dist/locales/4.3.138/main/pl.js +0 -1
- package/dist/locales/4.3.138/main/pt-br.js +0 -1
- package/dist/locales/4.3.138/main/tr.js +0 -1
- package/dist/locales/4.3.138/main/zh.js +0 -1
- package/dist/look-island.svelte-B7UH_QVv.js +0 -1270
- package/dist/looks/4.3.138/looks.js +0 -248
- package/dist/modalManager.svelte-BvyrTI6p.js +0 -51
- package/dist/navigation-DpqP-ahJ.js +0 -241
- package/dist/repeating-field-B4OhsaGB.js +0 -488
- package/dist/venue-DLkL7xdj.js +0 -12
- /package/dist/checkout-libs/{4.3.138 → 4.3.139}/phone.js +0 -0
- /package/dist/checkout-libs/{4.3.138 → 4.3.139}/qrcode.js +0 -0
- /package/dist/locales/{4.3.138 → 4.3.139}/flow/de.js +0 -0
- /package/dist/locales/{4.3.138 → 4.3.139}/flow/es.js +0 -0
- /package/dist/locales/{4.3.138 → 4.3.139}/flow/fr.js +0 -0
- /package/dist/locales/{4.3.138 → 4.3.139}/flow/id.js +0 -0
- /package/dist/locales/{4.3.138 → 4.3.139}/flow/it.js +0 -0
- /package/dist/locales/{4.3.138 → 4.3.139}/flow/ja.js +0 -0
- /package/dist/locales/{4.3.138 → 4.3.139}/flow/ko.js +0 -0
- /package/dist/locales/{4.3.138 → 4.3.139}/flow/nl.js +0 -0
- /package/dist/locales/{4.3.138 → 4.3.139}/flow/pl.js +0 -0
- /package/dist/locales/{4.3.138 → 4.3.139}/flow/pt-br.js +0 -0
- /package/dist/locales/{4.3.138 → 4.3.139}/flow/tr.js +0 -0
- /package/dist/locales/{4.3.138 → 4.3.139}/flow/zh.js +0 -0
- /package/dist/looks/{4.3.138 → 4.3.139}/micdrop-wordmark-BYMG6vLR.svg +0 -0
- /package/dist/looks/{4.3.138 → 4.3.139}/microphone-Ccv4r-kd.webp +0 -0
- /package/dist/looks/{4.3.138 → 4.3.139}/superuser-CZF6a5gO.webp +0 -0
- /package/dist/looks/{4.3.138 → 4.3.139}/treasury-DUE7lZzT.webp +0 -0
- /package/dist/looks/{4.3.138 → 4.3.139}/user-image-yuS4errP.svg +0 -0
|
@@ -1,395 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./classNames-CPSQ9uy4.js";
|
|
2
|
-
import { i as t } from "./Button-B1cBhdtC.js";
|
|
3
|
-
import { i as n, r, t as i } from "./typography-CKwYSv07.js";
|
|
4
|
-
import { s as a } from "./transitions-DST-mWoo.js";
|
|
5
|
-
import { f as o, g as s, i as c, n as l, r as u, u as d, v as f } from "./calendar-Cdu8fCIt.js";
|
|
6
|
-
import { r as ee } from "./keyboard-Dk2PfrEz.js";
|
|
7
|
-
import { c as te } from "./portalContainment-DSZUw-No.js";
|
|
8
|
-
import { t as ne } from "./portal-BSuo4flQ.js";
|
|
9
|
-
import { t as re } from "./floatingPosition-BCUPmGCN.js";
|
|
10
|
-
import { t as p } from "./clickOutside-D448uRpo.js";
|
|
11
|
-
import { i as ie, s as m, t as h } from "./to-event-card-props-C9v9dspT.js";
|
|
12
|
-
import { t as ae } from "./Grid-DRRXcWRE.js";
|
|
13
|
-
import { t as g } from "./EmptyState-BhK78ogy.js";
|
|
14
|
-
import { t as _ } from "./EventCard-puoh3xag.js";
|
|
15
|
-
import { t as v } from "./defaultLabels-CybwJCNn.js";
|
|
16
|
-
import "svelte/internal/disclose-version";
|
|
17
|
-
import * as y from "svelte/internal/client";
|
|
18
|
-
import { SvelteMap as oe } from "svelte/reactivity";
|
|
19
|
-
import { onDestroy as b, onMount as x } from "svelte";
|
|
20
|
-
// node_modules/@getmicdrop/svelte-components/dist/primitives/Popover/Popover.svelte
|
|
21
|
-
var S = y.from_html("<div role=\"dialog\" data-popover-panel=\"\"><!></div>"), se = y.from_html("<div class=\"relative inline-block\"><!> <!></div>");
|
|
22
|
-
function C(t, n) {
|
|
23
|
-
y.push(n, !0);
|
|
24
|
-
let r = y.prop(n, "open", 15, !1), i = y.prop(n, "placement", 3, "bottom-end"), o = y.prop(n, "class", 3, ""), s = y.state(void 0), c = y.state(void 0), l = y.derived(() => /(?:^|[\s:!])-?z-/.test(o())), u = y.derived(() => y.get(l) ? void 0 : te.modalContent);
|
|
25
|
-
function d() {
|
|
26
|
-
y.get(l) && y.get(c) && (y.get(c).style.zIndex = "");
|
|
27
|
-
}
|
|
28
|
-
let f = {
|
|
29
|
-
bottom: "top",
|
|
30
|
-
top: "bottom",
|
|
31
|
-
left: "right",
|
|
32
|
-
right: "left"
|
|
33
|
-
}, ee = {
|
|
34
|
-
start: "left",
|
|
35
|
-
end: "right"
|
|
36
|
-
}, ie = y.state(void 0), m = y.derived(() => {
|
|
37
|
-
let [e, t = "start"] = (y.get(ie) ?? i()).split("-"), n = f[e] ?? "top";
|
|
38
|
-
return e === "top" || e === "bottom" ? `${n} ${ee[t] ?? "left"}` : `${n} ${t === "end" ? "bottom" : "top"}`;
|
|
39
|
-
});
|
|
40
|
-
function h() {
|
|
41
|
-
r() && (r(!1), n.onclose?.());
|
|
42
|
-
}
|
|
43
|
-
function ae() {
|
|
44
|
-
r(!r()), r() || n.onclose?.();
|
|
45
|
-
}
|
|
46
|
-
function g(e) {
|
|
47
|
-
r() && e.key === "Escape" && !e.defaultPrevented && (e.preventDefault(), h());
|
|
48
|
-
}
|
|
49
|
-
x(() => {
|
|
50
|
-
document.addEventListener("keydown", g);
|
|
51
|
-
}), b(() => {
|
|
52
|
-
typeof document < "u" && document.removeEventListener("keydown", g);
|
|
53
|
-
});
|
|
54
|
-
var _ = se(), v = y.child(_);
|
|
55
|
-
y.snippet(v, () => n.trigger, () => ({
|
|
56
|
-
toggle: ae,
|
|
57
|
-
open: r()
|
|
58
|
-
}));
|
|
59
|
-
var oe = y.sibling(v, 2), C = (t) => {
|
|
60
|
-
var r = S();
|
|
61
|
-
let l;
|
|
62
|
-
var f = y.child(r);
|
|
63
|
-
y.snippet(f, () => n.children), y.reset(r), y.bind_this(r, (e) => y.set(c, e), () => y.get(c)), y.action(r, (e, t) => re?.(e, t), () => ({
|
|
64
|
-
reference: y.get(s),
|
|
65
|
-
placement: i(),
|
|
66
|
-
offset: 4,
|
|
67
|
-
layer: "modalContent",
|
|
68
|
-
onComputed: ({ placement: e }) => {
|
|
69
|
-
y.set(ie, e, !0), d();
|
|
70
|
-
}
|
|
71
|
-
})), y.action(r, (e) => ne?.(e)), y.template_effect((e) => {
|
|
72
|
-
y.set_class(r, 1, e), y.set_attribute(r, "aria-label", n.ariaLabel), l = y.set_style(r, "", l, { "z-index": y.get(u) });
|
|
73
|
-
}, [() => y.clsx(e("rounded-lg border border-border bg-popover text-popover-foreground shadow-lg", o()))]), y.transition(3, r, () => a, () => ({ origin: y.get(m) })), y.append(t, r);
|
|
74
|
-
};
|
|
75
|
-
y.if(oe, (e) => {
|
|
76
|
-
r() && e(C);
|
|
77
|
-
}), y.reset(_), y.bind_this(_, (e) => y.set(s, e), () => y.get(s)), y.action(_, (e, t) => p?.(e, t), () => h), y.append(t, _), y.pop();
|
|
78
|
-
}
|
|
79
|
-
// src/components/Calendar/Calendar.svelte
|
|
80
|
-
var ce = y.from_html("<div style=\"display:contents\" data-testid=\"calendar-event\"><!></div>"), le = y.from_html("<div role=\"gridcell\"><div> </div> <!></div>"), ue = y.from_html("<div class=\"month-grid svelte-1twddf5\" role=\"grid\"></div>"), de = y.from_html("<div> </div>"), fe = y.from_html("<button type=\"button\" data-testid=\"calendar-day\"><span> </span></button>"), pe = y.from_html("<div class=\"mini-grid svelte-1twddf5\" role=\"grid\"></div>"), me = y.from_html("<li class=\"list-none\"><!></li>"), he = 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);
|
|
81
|
-
function ge(e, a) {
|
|
82
|
-
y.push(a, !0), y.prop(a, "isScheduledBtn", 3, !1), y.prop(a, "eventCalendar", 3, !1), y.prop(a, "embedCalendar", 3, !1);
|
|
83
|
-
let te = y.prop(a, "currentYear", 19, () => s().getFullYear()), ne = y.prop(a, "currentMonth", 19, () => s().getMonth()), re = y.prop(a, "currentevents", 19, () => []);
|
|
84
|
-
y.prop(a, "showPartialPreview", 3, !0);
|
|
85
|
-
let p = y.prop(a, "labels", 3, v), b = y.prop(a, "locale", 3, "en-US"), x = y.prop(a, "eventDetails", 3, null), S = y.prop(a, "size", 3, "M"), se = y.prop(a, "posterFit", 3, "fit"), C = y.prop(a, "posterBackdrop", 3, "blur"), ge = y.derived(te), _e = y.derived(ne), w = o(s()), T = y.derived(() => d(y.get(ge), y.get(_e), 1)), ve = y.derived(() => f(y.get(T), {
|
|
86
|
-
month: "long",
|
|
87
|
-
year: "numeric"
|
|
88
|
-
}, b())), ye = y.derived(() => {
|
|
89
|
-
let e = new Intl.DateTimeFormat(b(), { weekday: "short" }), t = new Intl.DateTimeFormat(b(), { weekday: "narrow" });
|
|
90
|
-
return c(s()).map((n) => ({
|
|
91
|
-
short: e.format(n),
|
|
92
|
-
narrow: t.format(n)
|
|
93
|
-
}));
|
|
94
|
-
});
|
|
95
|
-
function E(e, t) {
|
|
96
|
-
return u(e.getFullYear(), e.getMonth()).map(({ day: e, inMonth: n, isToday: r }) => {
|
|
97
|
-
let i = o(e);
|
|
98
|
-
return {
|
|
99
|
-
localDay: e,
|
|
100
|
-
day: e.getDate(),
|
|
101
|
-
date: i,
|
|
102
|
-
groupedEvents: n ? m(t.get(i) ?? []) : [],
|
|
103
|
-
isOutsideMonth: !n,
|
|
104
|
-
isPast: i < w,
|
|
105
|
-
isToday: n && r
|
|
106
|
-
};
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
function be(e) {
|
|
110
|
-
return e.instances.every((e) => ie(e)?.type === "past");
|
|
111
|
-
}
|
|
112
|
-
function xe(e) {
|
|
113
|
-
return e.groupedEvents.some((e) => !be(e));
|
|
114
|
-
}
|
|
115
|
-
let D = y.derived(() => {
|
|
116
|
-
let e = new oe();
|
|
117
|
-
for (let t of re()) e.has(t.date) || e.set(t.date, []), e.get(t.date).push(t);
|
|
118
|
-
return e;
|
|
119
|
-
}), O = y.derived(() => E(y.get(T), y.get(D))), Se = y.derived(() => E(l(y.get(T), -1), y.get(D))), Ce = y.derived(() => E(l(y.get(T), 1), y.get(D))), k = y.state(0), A = y.state(0), j = 0, we = 0, M = 0, N = 0, P = 0, F = y.state(!1), I = y.state(0), L = y.state(!1), R = y.state(!1), z = null, B = y.state(!1), V = y.state(null), H = y.state(null);
|
|
120
|
-
function Te() {
|
|
121
|
-
return y.get(V)?.offsetWidth || y.get(H)?.offsetWidth || 320;
|
|
122
|
-
}
|
|
123
|
-
y.user_effect(() => {
|
|
124
|
-
if (typeof window > "u") return;
|
|
125
|
-
let e = window.matchMedia("(prefers-reduced-motion: reduce)");
|
|
126
|
-
y.set(B, e.matches, !0);
|
|
127
|
-
let t = (e) => y.set(B, e.matches, !0);
|
|
128
|
-
return e.addEventListener("change", t), () => e.removeEventListener("change", t);
|
|
129
|
-
});
|
|
130
|
-
function Ee(e, t, n) {
|
|
131
|
-
if (y.get(R) || y.get(B)) {
|
|
132
|
-
t?.();
|
|
133
|
-
return;
|
|
134
|
-
}
|
|
135
|
-
y.set(R, !0);
|
|
136
|
-
let r = n || Te();
|
|
137
|
-
y.set(I, e === 1 ? -r : r, !0), z = window.setTimeout(() => {
|
|
138
|
-
z = null, y.set(L, !0), requestAnimationFrame(() => {
|
|
139
|
-
t?.(), y.set(I, 0), y.set(R, !1), requestAnimationFrame(() => {
|
|
140
|
-
y.set(L, !1);
|
|
141
|
-
});
|
|
142
|
-
});
|
|
143
|
-
}, 320);
|
|
144
|
-
}
|
|
145
|
-
async function De(e, t) {
|
|
146
|
-
Ee(e, t);
|
|
147
|
-
}
|
|
148
|
-
function Oe(e) {
|
|
149
|
-
y.get(R) && (z !== null && (clearTimeout(z), z = null), y.set(R, !1), y.set(L, !1)), j = e.touches[0].clientX, we = e.touches[0].clientY, M = j, N = e.timeStamp, P = 0, y.set(F, !1), y.set(I, 0);
|
|
150
|
-
}
|
|
151
|
-
function ke(e) {
|
|
152
|
-
if (!j || y.get(R)) return;
|
|
153
|
-
let t = e.touches[0].clientX, n = e.touches[0].clientY, r = j - t, i = we - n, a = e.timeStamp;
|
|
154
|
-
if (!y.get(F) && Math.abs(r) > 10) {
|
|
155
|
-
if (Math.abs(r) > Math.abs(i)) y.set(F, !0);
|
|
156
|
-
else {
|
|
157
|
-
j = 0;
|
|
158
|
-
return;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
if (y.get(F)) {
|
|
162
|
-
e.preventDefault();
|
|
163
|
-
let n = a - N;
|
|
164
|
-
n > 0 && (P = (M - t) / n), M = t, N = a, y.set(I, -r * .95);
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
function U(e) {
|
|
168
|
-
if (!j || !y.get(F) || y.get(R)) {
|
|
169
|
-
j = 0, y.set(F, !1);
|
|
170
|
-
return;
|
|
171
|
-
}
|
|
172
|
-
let n = e.currentTarget?.offsetWidth || Te(), r = Math.abs(y.get(I)) / n > .08, i = Math.abs(P) > .2, o = y.get(I) > 0 ? -1 : 1;
|
|
173
|
-
r || i ? (t("medium"), Ee(o, () => o === 1 ? a.onswipeNext?.() : a.onswipePrev?.(), n)) : y.set(I, 0), j = 0, y.set(F, !1), P = 0;
|
|
174
|
-
}
|
|
175
|
-
let W = y.state(""), G = y.state("");
|
|
176
|
-
function Ae(e) {
|
|
177
|
-
let t = [
|
|
178
|
-
"ArrowLeft",
|
|
179
|
-
"ArrowRight",
|
|
180
|
-
"ArrowUp",
|
|
181
|
-
"ArrowDown"
|
|
182
|
-
].includes(e.key), n = ee(e);
|
|
183
|
-
if (!t && !n || !y.get(G)) return;
|
|
184
|
-
let r = y.get(O).findIndex((e) => e.date === y.get(G));
|
|
185
|
-
if (r === -1) return;
|
|
186
|
-
if (n) {
|
|
187
|
-
e.preventDefault();
|
|
188
|
-
let t = y.get(O)[r];
|
|
189
|
-
xe(t) && (y.set(W, t.date, !0), a.ondaySelect?.({
|
|
190
|
-
date: t.date,
|
|
191
|
-
events: t.groupedEvents
|
|
192
|
-
}));
|
|
193
|
-
return;
|
|
194
|
-
}
|
|
195
|
-
let i = r;
|
|
196
|
-
e.key === "ArrowLeft" ? i = r - 1 : e.key === "ArrowRight" ? i = r + 1 : e.key === "ArrowUp" ? i = r - 7 : e.key === "ArrowDown" && (i = r + 7), !(i < 0 || i >= y.get(O).length) && (e.preventDefault(), y.set(G, y.get(O)[i].date, !0), queueMicrotask(() => {
|
|
197
|
-
document.querySelector(`[data-current-page] [data-cell-date="${y.get(O)[i].date}"]`)?.focus();
|
|
198
|
-
}));
|
|
199
|
-
}
|
|
200
|
-
y.user_effect(() => {
|
|
201
|
-
if (y.get(G) && y.get(O).some((e) => e.date === y.get(G))) return;
|
|
202
|
-
if (y.get(K) && y.get(O).some((e) => e.date === y.get(K))) {
|
|
203
|
-
y.set(G, y.get(K), !0);
|
|
204
|
-
return;
|
|
205
|
-
}
|
|
206
|
-
let e = y.get(O).find((e) => e.isToday);
|
|
207
|
-
if (e) {
|
|
208
|
-
y.set(G, e.date, !0);
|
|
209
|
-
return;
|
|
210
|
-
}
|
|
211
|
-
let t = y.get(O).find((e) => !e.isOutsideMonth && e.groupedEvents.length > 0);
|
|
212
|
-
if (t) {
|
|
213
|
-
y.set(G, t.date, !0);
|
|
214
|
-
return;
|
|
215
|
-
}
|
|
216
|
-
let n = y.get(O).find((e) => !e.isOutsideMonth);
|
|
217
|
-
n && y.set(G, n.date, !0);
|
|
218
|
-
});
|
|
219
|
-
function je(e) {
|
|
220
|
-
return !!e && y.get(O).some((t) => t.date === e && !t.isOutsideMonth);
|
|
221
|
-
}
|
|
222
|
-
let K = y.derived(() => je(y.get(W)) ? y.get(W) : je(w) ? w : ""), Me = y.derived(() => !!y.get(W) && y.get(K) === y.get(W)), Ne = y.derived(() => y.get(Me) ? m(y.get(D).get(y.get(W)) ?? []) : y.get(O).filter((e) => !e.isOutsideMonth && e.date >= w).flatMap((e) => e.groupedEvents));
|
|
223
|
-
var Pe = { animateMonthTransition: De }, Fe = he(), q = y.first_child(Fe);
|
|
224
|
-
{
|
|
225
|
-
let e = (e, t = y.noop, r = y.noop, i = y.noop) => {
|
|
226
|
-
var o = ue();
|
|
227
|
-
y.each(o, 21, t, (e) => `${e.date}|${e.isOutsideMonth ? "O" : "I"}`, (e, t) => {
|
|
228
|
-
var r = le();
|
|
229
|
-
let i;
|
|
230
|
-
var o = y.child(r), s = y.only_child(o, !0), c = y.sibling(o, 2);
|
|
231
|
-
y.each(c, 17, () => y.get(t).groupedEvents, (e) => e.event.eventID, (e, t) => {
|
|
232
|
-
let n = y.derived(() => {
|
|
233
|
-
let { pillEvents: e, ...n } = h(y.get(t), p(), b(), x(), {
|
|
234
|
-
posterFit: se(),
|
|
235
|
-
posterBackdrop: C()
|
|
236
|
-
});
|
|
237
|
-
return {
|
|
238
|
-
pillEvents: e,
|
|
239
|
-
card: n
|
|
240
|
-
};
|
|
241
|
-
}), r = y.derived(() => be(y.get(t)));
|
|
242
|
-
var i = ce(), o = y.child(i);
|
|
243
|
-
{
|
|
244
|
-
let e = y.derived(() => y.get(r) ? [] : y.get(n).card.pills);
|
|
245
|
-
_(o, y.spread_props({ pillVariant: "primary" }, () => y.get(n).card, {
|
|
246
|
-
get pills() {
|
|
247
|
-
return y.get(e);
|
|
248
|
-
},
|
|
249
|
-
layout: "micro",
|
|
250
|
-
density: "micro",
|
|
251
|
-
hideDate: !0,
|
|
252
|
-
onclick: () => a.oneventClick?.(y.get(t).event),
|
|
253
|
-
onpillclick: (e) => a.oneventClick?.(y.get(n).pillEvents[e] ?? y.get(t).event)
|
|
254
|
-
}));
|
|
255
|
-
}
|
|
256
|
-
y.reset(i), y.template_effect(() => i.inert = y.get(r)), y.append(e, i);
|
|
257
|
-
}), y.reset(r), y.template_effect(() => {
|
|
258
|
-
i = y.set_class(r, 1, "day-cell svelte-1twddf5", null, i, {
|
|
259
|
-
"day-cell--outside": y.get(t).isOutsideMonth,
|
|
260
|
-
"day-cell--past": y.get(t).isPast,
|
|
261
|
-
"day-cell--today": y.get(t).isToday
|
|
262
|
-
}), y.set_class(o, 1, `day-num ${n.eyebrow ?? ""}`, "svelte-1twddf5"), y.set_text(s, y.get(t).day);
|
|
263
|
-
}), y.append(e, r);
|
|
264
|
-
}), y.reset(o), y.template_effect(() => y.set_attribute(o, "aria-label", r())), y.bind_element_size(o, "offsetHeight", (e) => {
|
|
265
|
-
i() && y.set(k, e, !0);
|
|
266
|
-
}), y.append(e, o);
|
|
267
|
-
};
|
|
268
|
-
var J = y.child(q);
|
|
269
|
-
y.each(J, 21, () => y.get(ye), y.index, (e, t) => {
|
|
270
|
-
var r = de(), i = y.only_child(r, !0);
|
|
271
|
-
y.template_effect(() => {
|
|
272
|
-
y.set_class(r, 1, `dow-cell ${n.eyebrow ?? ""}`, "svelte-1twddf5"), y.set_text(i, y.get(t).short);
|
|
273
|
-
}), y.append(e, r);
|
|
274
|
-
}), y.reset(J);
|
|
275
|
-
var Ie = y.sibling(J, 2);
|
|
276
|
-
let t;
|
|
277
|
-
var Y = y.child(Ie);
|
|
278
|
-
let r, i;
|
|
279
|
-
var Le = y.child(Y);
|
|
280
|
-
e(Le, () => y.get(Se), () => "prev", () => !1);
|
|
281
|
-
var Re = y.sibling(Le, 2);
|
|
282
|
-
e(Re, () => y.get(O), () => y.get(ve), () => !0), e(y.sibling(Re, 2), () => y.get(Ce), () => "next", () => !1), y.reset(Y), y.reset(Ie), y.reset(q), y.bind_this(q, (e) => y.set(V, e), () => y.get(V)), y.template_effect(() => {
|
|
283
|
-
t = y.set_style(Ie, "", t, { height: y.get(k) ? `${y.get(k)}px` : void 0 }), r = y.set_class(Y, 1, "swipe-track svelte-1twddf5", null, r, {
|
|
284
|
-
"swipe-track--swiping": y.get(F),
|
|
285
|
-
"swipe-track--snapping": y.get(L)
|
|
286
|
-
}), i = y.set_style(Y, "", i, { transform: `translate3d(calc(-100% / 3 + ${y.get(I) ?? ""}px), 0, 0)` });
|
|
287
|
-
});
|
|
288
|
-
}
|
|
289
|
-
var X = y.sibling(q, 2);
|
|
290
|
-
{
|
|
291
|
-
let e = (e, t = y.noop, o = y.noop, s = y.noop) => {
|
|
292
|
-
var c = pe();
|
|
293
|
-
y.each(c, 21, t, (e) => `${e.date}|${e.isOutsideMonth ? "O" : "I"}`, (e, t) => {
|
|
294
|
-
let o = y.derived(() => xe(y.get(t))), c = y.derived(() => y.get(t).date === y.get(K));
|
|
295
|
-
var l = fe();
|
|
296
|
-
let u;
|
|
297
|
-
var d = y.child(l), f = y.only_child(d, !0);
|
|
298
|
-
y.reset(l), y.template_effect(() => {
|
|
299
|
-
u = y.set_class(l, 1, `mini-cell ${n.label ?? ""} ${(y.get(c) ? r.heavy : y.get(o) ? r.strong : "") ?? ""}`, "svelte-1twddf5", u, {
|
|
300
|
-
"mini-cell--outside": y.get(t).isOutsideMonth,
|
|
301
|
-
"mini-cell--past": y.get(t).isPast,
|
|
302
|
-
"mini-cell--today": y.get(t).isToday,
|
|
303
|
-
"mini-cell--selected": y.get(c) && y.get(Me),
|
|
304
|
-
"mini-cell--has-events": y.get(o)
|
|
305
|
-
}), y.set_attribute(l, "aria-disabled", !y.get(o)), y.set_attribute(l, "tabindex", s() && y.get(G) === y.get(t).date ? 0 : -1), y.set_attribute(l, "data-cell-date", y.get(t).date), y.set_attribute(l, "aria-label", `${y.get(t).day ?? ""} ${y.get(o) ? `· ${y.get(t).groupedEvents.length} event${y.get(t).groupedEvents.length === 1 ? "" : "s"}` : ""}`), y.set_attribute(l, "aria-pressed", y.get(c)), y.set_class(d, 1, `mini-day ${i.none ?? ""}`, "svelte-1twddf5"), y.set_text(f, y.get(t).day);
|
|
306
|
-
}), y.delegated("click", l, function(...e) {
|
|
307
|
-
(y.get(o) ? () => {
|
|
308
|
-
y.set(W, y.get(t).date, !0), y.set(G, y.get(t).date, !0), a.ondaySelect?.({
|
|
309
|
-
date: y.get(t).date,
|
|
310
|
-
events: y.get(t).groupedEvents
|
|
311
|
-
});
|
|
312
|
-
} : void 0)?.apply(this, e);
|
|
313
|
-
}), y.append(e, l);
|
|
314
|
-
}), y.reset(c), y.template_effect(() => {
|
|
315
|
-
y.set_attribute(c, "aria-label", o()), y.set_attribute(c, "data-current-page", s() ? "" : void 0);
|
|
316
|
-
}), y.bind_element_size(c, "offsetHeight", (e) => {
|
|
317
|
-
s() && y.set(A, e, !0);
|
|
318
|
-
}), y.append(e, c);
|
|
319
|
-
};
|
|
320
|
-
var Z = y.child(X);
|
|
321
|
-
y.each(Z, 21, () => y.get(ye), y.index, (e, t) => {
|
|
322
|
-
var r = de(), i = y.only_child(r, !0);
|
|
323
|
-
y.template_effect(() => {
|
|
324
|
-
y.set_class(r, 1, `dow-cell ${n.eyebrow ?? ""}`, "svelte-1twddf5"), y.set_text(i, y.get(t).narrow);
|
|
325
|
-
}), y.append(e, r);
|
|
326
|
-
}), y.reset(Z);
|
|
327
|
-
var Q = y.sibling(Z, 2);
|
|
328
|
-
let t;
|
|
329
|
-
var $ = y.child(Q);
|
|
330
|
-
let o, s;
|
|
331
|
-
var ze = y.child($);
|
|
332
|
-
e(ze, () => y.get(Se), () => "prev", () => !1);
|
|
333
|
-
var Be = y.sibling(ze, 2);
|
|
334
|
-
e(Be, () => y.get(O), () => y.get(ve), () => !0), e(y.sibling(Be, 2), () => y.get(Ce), () => "next", () => !1), y.reset($), y.reset(Q);
|
|
335
|
-
var Ve = y.sibling(Q, 2), He = y.child(Ve), Ue = (e) => {
|
|
336
|
-
ae(e, {
|
|
337
|
-
cols: "1",
|
|
338
|
-
gap: "2",
|
|
339
|
-
as: "ul",
|
|
340
|
-
children: (e, t) => {
|
|
341
|
-
var n = y.comment(), r = y.first_child(n);
|
|
342
|
-
y.each(r, 17, () => y.get(Ne), (e) => e.event.eventID, (e, t) => {
|
|
343
|
-
let n = y.derived(() => {
|
|
344
|
-
let { pillEvents: e, ...n } = h(y.get(t), p(), b(), x(), {
|
|
345
|
-
posterFit: se(),
|
|
346
|
-
posterBackdrop: C()
|
|
347
|
-
});
|
|
348
|
-
return {
|
|
349
|
-
pillEvents: e,
|
|
350
|
-
card: n
|
|
351
|
-
};
|
|
352
|
-
});
|
|
353
|
-
var r = me(), i = y.child(r);
|
|
354
|
-
_(i, y.spread_props({ pillVariant: "primary" }, () => y.get(n).card, {
|
|
355
|
-
layout: "horizontal",
|
|
356
|
-
density: "compact",
|
|
357
|
-
get hideDate() {
|
|
358
|
-
return y.get(Me);
|
|
359
|
-
},
|
|
360
|
-
onclick: () => a.oneventClick?.(y.get(t).event),
|
|
361
|
-
onpillclick: (e) => a.oneventClick?.(y.get(n).pillEvents[e] ?? y.get(t).event)
|
|
362
|
-
})), y.reset(r), y.append(e, r);
|
|
363
|
-
}), y.append(e, n);
|
|
364
|
-
},
|
|
365
|
-
$$slots: { default: !0 }
|
|
366
|
-
});
|
|
367
|
-
}, We = (e) => {
|
|
368
|
-
{
|
|
369
|
-
let t = y.derived(() => p().noUpcomingEvents || "No upcoming events");
|
|
370
|
-
g(e, { get message() {
|
|
371
|
-
return y.get(t);
|
|
372
|
-
} });
|
|
373
|
-
}
|
|
374
|
-
};
|
|
375
|
-
y.if(He, (e) => {
|
|
376
|
-
y.get(Ne).length > 0 ? e(Ue) : e(We, -1);
|
|
377
|
-
}), y.reset(Ve), y.reset(X), y.bind_this(X, (e) => y.set(H, e), () => y.get(H)), y.template_effect(() => {
|
|
378
|
-
t = y.set_style(Q, "", t, { height: y.get(A) ? `${y.get(A)}px` : void 0 }), o = y.set_class($, 1, "swipe-track svelte-1twddf5", null, o, {
|
|
379
|
-
"swipe-track--swiping": y.get(F),
|
|
380
|
-
"swipe-track--snapping": y.get(L)
|
|
381
|
-
}), s = y.set_style($, "", s, { transform: `translate3d(calc(-100% / 3 + ${y.get(I) ?? ""}px), 0, 0)` });
|
|
382
|
-
});
|
|
383
|
-
}
|
|
384
|
-
return y.template_effect(() => {
|
|
385
|
-
y.set_attribute(q, "data-size", S()), y.set_attribute(X, "data-size", S());
|
|
386
|
-
}), y.delegated("touchstart", q, Oe, void 0, !0), y.delegated("touchmove", q, ke, void 0, !0), y.delegated("touchend", q, U), y.event("touchcancel", q, U), y.delegated("touchstart", X, Oe, void 0, !0), y.delegated("touchmove", X, ke, void 0, !0), y.delegated("touchend", X, U), y.event("touchcancel", X, U), y.delegated("keydown", X, Ae), y.append(e, Fe), y.pop(Pe);
|
|
387
|
-
}
|
|
388
|
-
y.delegate([
|
|
389
|
-
"touchstart",
|
|
390
|
-
"touchmove",
|
|
391
|
-
"touchend",
|
|
392
|
-
"keydown",
|
|
393
|
-
"click"
|
|
394
|
-
]);
|
|
395
|
-
export { C as n, ge as t };
|