@digital-b2c/coreui-kit 0.10.1 → 0.11.0
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/LICENSE.txt +21 -21
- package/README.md +52 -52
- package/dist/index.cjs +1164 -444
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +961 -326
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +199 -24
- package/dist/index.d.ts +199 -24
- package/dist/index.mjs +1156 -444
- package/dist/index.mjs.map +1 -1
- package/dist/types/global.d.ts +25 -25
- package/package.json +100 -99
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import clsx15 from 'clsx';
|
|
2
2
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
3
|
-
import React62, { forwardRef, useRef, useState, useCallback, useMemo, Children, isValidElement, useEffect } from 'react';
|
|
3
|
+
import React62, { forwardRef, useId, useRef, useState, useCallback, useMemo, Children, isValidElement, useEffect } from 'react';
|
|
4
4
|
import gsap$1, { gsap } from 'gsap';
|
|
5
5
|
import { useGSAP } from '@gsap/react';
|
|
6
6
|
import { ScrollTrigger } from 'gsap/ScrollTrigger';
|
|
@@ -58,7 +58,7 @@ var Picture = (_a) => {
|
|
|
58
58
|
__spreadValues({
|
|
59
59
|
src: desktop.src,
|
|
60
60
|
alt: desktop.alt,
|
|
61
|
-
className:
|
|
61
|
+
className: clsx15(className, Picture_module_default["image-desktop"])
|
|
62
62
|
}, rest)
|
|
63
63
|
),
|
|
64
64
|
/* @__PURE__ */ jsx(
|
|
@@ -66,21 +66,19 @@ var Picture = (_a) => {
|
|
|
66
66
|
__spreadValues({
|
|
67
67
|
src: (_b2 = mobile == null ? void 0 : mobile.src) != null ? _b2 : desktop.src,
|
|
68
68
|
alt: (_c = mobile == null ? void 0 : mobile.alt) != null ? _c : desktop.alt,
|
|
69
|
-
className:
|
|
69
|
+
className: clsx15(className, Picture_module_default["image-mobile"])
|
|
70
70
|
}, rest)
|
|
71
71
|
)
|
|
72
72
|
] });
|
|
73
73
|
};
|
|
74
74
|
var Anchor = (_a) => {
|
|
75
|
-
var _b = _a, { children, isExternal } = _b, props = __objRest(_b, ["children", "isExternal"]);
|
|
76
|
-
|
|
77
|
-
"
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
})
|
|
83
|
-
);
|
|
75
|
+
var _b = _a, { children, isExternal, renderLink } = _b, props = __objRest(_b, ["children", "isExternal", "renderLink"]);
|
|
76
|
+
const anchorProps = __spreadProps(__spreadValues({}, props), {
|
|
77
|
+
target: isExternal ? "_blank" : void 0,
|
|
78
|
+
rel: isExternal ? "noopener noreferrer" : void 0
|
|
79
|
+
});
|
|
80
|
+
if (renderLink) return /* @__PURE__ */ jsx(Fragment, { children: renderLink(__spreadProps(__spreadValues({}, anchorProps), { children })) });
|
|
81
|
+
return /* @__PURE__ */ jsx("a", __spreadProps(__spreadValues({}, anchorProps), { children }));
|
|
84
82
|
};
|
|
85
83
|
var ConditionalWrapper = (_a) => {
|
|
86
84
|
var _b = _a, {
|
|
@@ -411,7 +409,8 @@ var Button = (_a) => {
|
|
|
411
409
|
isExternal,
|
|
412
410
|
icon,
|
|
413
411
|
logo,
|
|
414
|
-
isActive
|
|
412
|
+
isActive,
|
|
413
|
+
renderLink
|
|
415
414
|
} = _b, rest = __objRest(_b, [
|
|
416
415
|
"className",
|
|
417
416
|
"children",
|
|
@@ -421,18 +420,19 @@ var Button = (_a) => {
|
|
|
421
420
|
"isExternal",
|
|
422
421
|
"icon",
|
|
423
422
|
"logo",
|
|
424
|
-
"isActive"
|
|
423
|
+
"isActive",
|
|
424
|
+
"renderLink"
|
|
425
425
|
]);
|
|
426
426
|
const isLink = !!href;
|
|
427
427
|
const props = __spreadValues(__spreadValues({
|
|
428
|
-
className:
|
|
428
|
+
className: clsx15(
|
|
429
429
|
Button_module_default.button,
|
|
430
430
|
variant ? Button_module_default[variant] : null,
|
|
431
431
|
{ [Button_module_default.fullWidth]: !!fullWidth },
|
|
432
432
|
{ [Button_module_default.active]: !!isActive },
|
|
433
433
|
className
|
|
434
434
|
)
|
|
435
|
-
}, isLink ? { href, isExternal } : {}), rest);
|
|
435
|
+
}, isLink ? { href, isExternal, renderLink } : {}), rest);
|
|
436
436
|
return /* @__PURE__ */ jsxs(ConditionalWrapper, __spreadProps(__spreadValues({ wrapper: Anchor, fallback: "button", condition: isLink }, props), { children: [
|
|
437
437
|
children,
|
|
438
438
|
isExternal && /* @__PURE__ */ jsx("span", { className: "sr-only", children: "(opens in a new tab)" }),
|
|
@@ -657,7 +657,7 @@ var BrandsStrip = ({
|
|
|
657
657
|
"div",
|
|
658
658
|
{
|
|
659
659
|
ref: containerRef,
|
|
660
|
-
className:
|
|
660
|
+
className: clsx15(
|
|
661
661
|
BrandsStrip_module_default.brandsStrip,
|
|
662
662
|
BrandsStrip_module_default[variant],
|
|
663
663
|
{ [BrandsStrip_module_default.small]: size === "small" },
|
|
@@ -666,13 +666,13 @@ var BrandsStrip = ({
|
|
|
666
666
|
onMouseEnter: handleMouseEnter,
|
|
667
667
|
onMouseLeave: handleMouseLeave,
|
|
668
668
|
children: [
|
|
669
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
670
|
-
title && logos.length === 1 && /* @__PURE__ */ jsx("h2", { className:
|
|
669
|
+
/* @__PURE__ */ jsxs("div", { className: clsx15(BrandsStrip_module_default.container, { [BrandsStrip_module_default.blurred]: show && logos.length > 1 }), children: [
|
|
670
|
+
title && logos.length === 1 && /* @__PURE__ */ jsx("h2", { className: clsx15("body", BrandsStrip_module_default.title), children: title }),
|
|
671
671
|
logos.length > 0 && /* @__PURE__ */ jsx(
|
|
672
672
|
"div",
|
|
673
673
|
{
|
|
674
674
|
ref: marqueeRef,
|
|
675
|
-
className:
|
|
675
|
+
className: clsx15(BrandsStrip_module_default.logos, { [BrandsStrip_module_default.marqueeGSAP]: shouldAnimate }),
|
|
676
676
|
children: duplicatedLogos.map((logo, index) => /* @__PURE__ */ jsx("div", { className: BrandsStrip_module_default.logoWrapper, children: /* @__PURE__ */ jsx(Picture, __spreadValues({ className: BrandsStrip_module_default.logo }, logo)) }, `${logo.alt}-${index}`))
|
|
677
677
|
}
|
|
678
678
|
)
|
|
@@ -719,7 +719,7 @@ var Container_module_default = {
|
|
|
719
719
|
var Container = forwardRef(
|
|
720
720
|
(_a, ref) => {
|
|
721
721
|
var _b = _a, { children, className } = _b, props = __objRest(_b, ["children", "className"]);
|
|
722
|
-
return /* @__PURE__ */ jsx("div", __spreadProps(__spreadValues({ ref, className:
|
|
722
|
+
return /* @__PURE__ */ jsx("div", __spreadProps(__spreadValues({ ref, className: clsx15(Container_module_default.container, className) }, props), { children }));
|
|
723
723
|
}
|
|
724
724
|
);
|
|
725
725
|
Container.displayName = "Container";
|
|
@@ -760,14 +760,14 @@ var Card = ({
|
|
|
760
760
|
ConditionalWrapper,
|
|
761
761
|
__spreadProps(__spreadValues({
|
|
762
762
|
ref,
|
|
763
|
-
className:
|
|
763
|
+
className: clsx15(Card_module_default.card, Card_module_default[variant], className),
|
|
764
764
|
wrapper: Anchor,
|
|
765
765
|
fallback: "div",
|
|
766
766
|
condition: isLink
|
|
767
767
|
}, href ? { href, isExternal } : {}), {
|
|
768
768
|
children: [
|
|
769
769
|
/* @__PURE__ */ jsxs("div", { className: Card_module_default.logoContainer, children: [
|
|
770
|
-
(logo == null ? void 0 : logo.src) ? /* @__PURE__ */ jsx(Picture, __spreadValues({ className:
|
|
770
|
+
(logo == null ? void 0 : logo.src) ? /* @__PURE__ */ jsx(Picture, __spreadValues({ className: clsx15(Card_module_default.logo, isLink && Card_module_default.hideLogo) }, logo)) : icon && /* @__PURE__ */ jsx(Icon, { type: icon, className: clsx15(Card_module_default.logo, isLink && Card_module_default.hideLogo) }),
|
|
771
771
|
isLink && /* @__PURE__ */ jsx(Icon, { type: "tiltedRightWhite", className: Card_module_default.logoHover })
|
|
772
772
|
] }),
|
|
773
773
|
/* @__PURE__ */ jsxs("div", { className: Card_module_default.content, children: [
|
|
@@ -802,10 +802,10 @@ var CountingCard = ({ className, title, count, image, children }) => {
|
|
|
802
802
|
title: CountingCardTitle
|
|
803
803
|
});
|
|
804
804
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
805
|
-
return /* @__PURE__ */ jsxs("div", { className:
|
|
805
|
+
return /* @__PURE__ */ jsxs("div", { className: clsx15(CountingCard_module_default["counting-card"], className), children: [
|
|
806
806
|
/* @__PURE__ */ jsxs("div", { className: CountingCard_module_default.content, children: [
|
|
807
807
|
titleNode && /* @__PURE__ */ jsx("div", { className: "body", children: titleNode }),
|
|
808
|
-
count && /* @__PURE__ */ jsx("div", { className:
|
|
808
|
+
count && /* @__PURE__ */ jsx("div", { className: clsx15(CountingCard_module_default.count, "h1"), children: count })
|
|
809
809
|
] }),
|
|
810
810
|
image && /* @__PURE__ */ jsx(Picture, __spreadValues({ className: CountingCard_module_default.logo }, image))
|
|
811
811
|
] });
|
|
@@ -831,7 +831,8 @@ var FilterBar_module_default = {
|
|
|
831
831
|
searchInput: "FilterBar_module_searchInput",
|
|
832
832
|
searchClear: "FilterBar_module_searchClear",
|
|
833
833
|
dropdownPanel: "FilterBar_module_dropdownPanel",
|
|
834
|
-
|
|
834
|
+
filterFaded: "FilterBar_module_filterFaded",
|
|
835
|
+
filterFading: "FilterBar_module_filterFading",
|
|
835
836
|
dropdownOption: "FilterBar_module_dropdownOption",
|
|
836
837
|
selected: "FilterBar_module_selected"
|
|
837
838
|
};
|
|
@@ -860,7 +861,6 @@ function FilterBar({
|
|
|
860
861
|
const [searchState, setSearchState] = useState("closed");
|
|
861
862
|
const filterRef = useRef(null);
|
|
862
863
|
const sortRef = useRef(null);
|
|
863
|
-
const searchRef = useRef(null);
|
|
864
864
|
const searchInputRef = useRef(null);
|
|
865
865
|
const closeSearch = () => {
|
|
866
866
|
setSearchState("closing");
|
|
@@ -873,10 +873,9 @@ function FilterBar({
|
|
|
873
873
|
};
|
|
874
874
|
useEffect(() => {
|
|
875
875
|
const handleMouseDown = (e) => {
|
|
876
|
-
var _a, _b
|
|
876
|
+
var _a, _b;
|
|
877
877
|
const target = e.target;
|
|
878
|
-
if (((_a = filterRef.current) == null ? void 0 : _a.contains(target)) || ((_b = sortRef.current) == null ? void 0 : _b.contains(target))
|
|
879
|
-
return;
|
|
878
|
+
if (((_a = filterRef.current) == null ? void 0 : _a.contains(target)) || ((_b = sortRef.current) == null ? void 0 : _b.contains(target))) return;
|
|
880
879
|
setOpenDropdown(null);
|
|
881
880
|
};
|
|
882
881
|
document.addEventListener("mousedown", handleMouseDown);
|
|
@@ -886,17 +885,13 @@ function FilterBar({
|
|
|
886
885
|
var _a;
|
|
887
886
|
if (searchState === "open") (_a = searchInputRef.current) == null ? void 0 : _a.focus();
|
|
888
887
|
}, [searchState]);
|
|
889
|
-
useEffect(() => {
|
|
890
|
-
var _a;
|
|
891
|
-
if (openDropdown === "search") (_a = searchInputRef.current) == null ? void 0 : _a.focus();
|
|
892
|
-
}, [openDropdown]);
|
|
893
888
|
return /* @__PURE__ */ jsxs("div", { className: FilterBar_module_default.filterBar, children: [
|
|
894
889
|
/* @__PURE__ */ jsxs("div", { className: FilterBar_module_default.viewToggle, children: [
|
|
895
890
|
/* @__PURE__ */ jsxs(
|
|
896
891
|
"button",
|
|
897
892
|
{
|
|
898
893
|
type: "button",
|
|
899
|
-
className:
|
|
894
|
+
className: clsx15(FilterBar_module_default.chip, view === "grid" && FilterBar_module_default.active),
|
|
900
895
|
onClick: () => onViewChange("grid"),
|
|
901
896
|
"aria-pressed": view === "grid",
|
|
902
897
|
children: [
|
|
@@ -909,7 +904,7 @@ function FilterBar({
|
|
|
909
904
|
"button",
|
|
910
905
|
{
|
|
911
906
|
type: "button",
|
|
912
|
-
className:
|
|
907
|
+
className: clsx15(FilterBar_module_default.chip, view === "list" && FilterBar_module_default.active),
|
|
913
908
|
onClick: () => onViewChange("list"),
|
|
914
909
|
"aria-pressed": view === "list",
|
|
915
910
|
children: [
|
|
@@ -920,90 +915,108 @@ function FilterBar({
|
|
|
920
915
|
)
|
|
921
916
|
] }),
|
|
922
917
|
/* @__PURE__ */ jsxs("div", { className: FilterBar_module_default.filterActions, children: [
|
|
923
|
-
/* @__PURE__ */ jsxs(
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
filterValue === opt.value && FilterBar_module_default.selected
|
|
918
|
+
/* @__PURE__ */ jsxs(
|
|
919
|
+
"div",
|
|
920
|
+
{
|
|
921
|
+
className: clsx15(
|
|
922
|
+
FilterBar_module_default.dropdownWrapper,
|
|
923
|
+
isMobile && searchState === "open" && FilterBar_module_default.filterFaded,
|
|
924
|
+
isMobile && searchState === "closing" && FilterBar_module_default.filterFading
|
|
925
|
+
),
|
|
926
|
+
ref: filterRef,
|
|
927
|
+
children: [
|
|
928
|
+
/* @__PURE__ */ jsxs(
|
|
929
|
+
"button",
|
|
930
|
+
{
|
|
931
|
+
type: "button",
|
|
932
|
+
className: clsx15(FilterBar_module_default.chip, filterValue !== "all" && FilterBar_module_default.active),
|
|
933
|
+
onClick: () => setOpenDropdown(openDropdown === "filter" ? null : "filter"),
|
|
934
|
+
"aria-expanded": openDropdown === "filter",
|
|
935
|
+
children: [
|
|
936
|
+
/* @__PURE__ */ jsx(Icon, { type: "filter", size: 20, "aria-hidden": "true" }),
|
|
937
|
+
!isMobile && /* @__PURE__ */ jsx("span", { className: FilterBar_module_default.chipLabel, children: "Filter" })
|
|
938
|
+
]
|
|
939
|
+
}
|
|
946
940
|
),
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
941
|
+
openDropdown === "filter" && /* @__PURE__ */ jsx("div", { className: FilterBar_module_default.dropdownPanel, role: "listbox", "aria-label": "Filter by type", children: FILTER_OPTIONS.map((opt) => /* @__PURE__ */ jsxs(
|
|
942
|
+
"button",
|
|
943
|
+
{
|
|
944
|
+
type: "button",
|
|
945
|
+
role: "option",
|
|
946
|
+
"aria-selected": filterValue === opt.value,
|
|
947
|
+
className: clsx15(
|
|
948
|
+
FilterBar_module_default.dropdownOption,
|
|
949
|
+
filterValue === opt.value && FilterBar_module_default.selected
|
|
950
|
+
),
|
|
951
|
+
onClick: () => {
|
|
952
|
+
onFilterChange(filterValue === opt.value ? "all" : opt.value);
|
|
953
|
+
setOpenDropdown(null);
|
|
954
|
+
},
|
|
955
|
+
children: [
|
|
956
|
+
/* @__PURE__ */ jsx(Icon, { type: opt.icon, size: 20, "aria-hidden": "true" }),
|
|
957
|
+
opt.label
|
|
958
|
+
]
|
|
959
|
+
},
|
|
960
|
+
opt.value
|
|
961
|
+
)) })
|
|
962
|
+
]
|
|
963
|
+
}
|
|
964
|
+
),
|
|
965
|
+
/* @__PURE__ */ jsxs(
|
|
966
|
+
"div",
|
|
967
|
+
{
|
|
968
|
+
className: clsx15(
|
|
969
|
+
FilterBar_module_default.dropdownWrapper,
|
|
970
|
+
isMobile && searchState === "open" && FilterBar_module_default.filterFaded,
|
|
971
|
+
isMobile && searchState === "closing" && FilterBar_module_default.filterFading
|
|
972
|
+
),
|
|
973
|
+
ref: sortRef,
|
|
974
|
+
children: [
|
|
975
|
+
/* @__PURE__ */ jsxs(
|
|
976
|
+
"button",
|
|
977
|
+
{
|
|
978
|
+
type: "button",
|
|
979
|
+
className: FilterBar_module_default.chip,
|
|
980
|
+
onClick: () => setOpenDropdown(openDropdown === "sort" ? null : "sort"),
|
|
981
|
+
"aria-expanded": openDropdown === "sort",
|
|
982
|
+
children: [
|
|
983
|
+
/* @__PURE__ */ jsx(Icon, { type: "internalFilter", size: 20, "aria-hidden": "true" }),
|
|
984
|
+
!isMobile && /* @__PURE__ */ jsx("span", { className: FilterBar_module_default.chipLabel, children: "Sort" })
|
|
985
|
+
]
|
|
986
|
+
}
|
|
982
987
|
),
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
988
|
+
openDropdown === "sort" && /* @__PURE__ */ jsx("div", { className: FilterBar_module_default.dropdownPanel, role: "listbox", "aria-label": "Sort by", children: SORT_OPTIONS.map((opt) => /* @__PURE__ */ jsx(
|
|
989
|
+
"button",
|
|
990
|
+
{
|
|
991
|
+
type: "button",
|
|
992
|
+
role: "option",
|
|
993
|
+
"aria-selected": sortValue === opt.value,
|
|
994
|
+
className: clsx15(
|
|
995
|
+
FilterBar_module_default.dropdownOption,
|
|
996
|
+
sortValue === opt.value && FilterBar_module_default.selected
|
|
997
|
+
),
|
|
998
|
+
onClick: () => {
|
|
999
|
+
onSortChange(opt.value);
|
|
1000
|
+
setOpenDropdown(null);
|
|
1001
|
+
},
|
|
1002
|
+
children: opt.label
|
|
1003
|
+
},
|
|
1004
|
+
opt.value
|
|
1005
|
+
)) })
|
|
1006
|
+
]
|
|
1007
|
+
}
|
|
1008
|
+
),
|
|
1009
|
+
searchState !== "closed" ? /* @__PURE__ */ jsxs(
|
|
1010
|
+
"div",
|
|
1011
|
+
{
|
|
1012
|
+
className: clsx15(
|
|
1013
|
+
FilterBar_module_default.searchExpanded,
|
|
1014
|
+
searchState === "closing" && FilterBar_module_default.searchCollapsing
|
|
1005
1015
|
),
|
|
1006
|
-
|
|
1016
|
+
onAnimationEnd: () => {
|
|
1017
|
+
if (searchState === "closing") setSearchState("closed");
|
|
1018
|
+
},
|
|
1019
|
+
children: [
|
|
1007
1020
|
/* @__PURE__ */ jsx("span", { className: FilterBar_module_default.searchIconInner, children: /* @__PURE__ */ jsx(Icon, { type: "search", size: 20, "aria-hidden": "true" }) }),
|
|
1008
1021
|
/* @__PURE__ */ jsx(
|
|
1009
1022
|
"input",
|
|
@@ -1017,8 +1030,11 @@ function FilterBar({
|
|
|
1017
1030
|
onKeyDown: (e) => {
|
|
1018
1031
|
if (e.key === "Escape") {
|
|
1019
1032
|
if (searchValue) clearSearch();
|
|
1020
|
-
else
|
|
1033
|
+
else closeSearch();
|
|
1021
1034
|
}
|
|
1035
|
+
},
|
|
1036
|
+
onBlur: () => {
|
|
1037
|
+
if (!searchValue) closeSearch();
|
|
1022
1038
|
}
|
|
1023
1039
|
}
|
|
1024
1040
|
),
|
|
@@ -1028,64 +1044,28 @@ function FilterBar({
|
|
|
1028
1044
|
type: "button",
|
|
1029
1045
|
className: FilterBar_module_default.searchClear,
|
|
1030
1046
|
"aria-label": "Clear search",
|
|
1047
|
+
onMouseDown: (e) => e.preventDefault(),
|
|
1031
1048
|
onClick: clearSearch,
|
|
1032
1049
|
children: /* @__PURE__ */ jsx(Icon, { type: "xBlack", size: 16, "aria-hidden": "true" })
|
|
1033
1050
|
}
|
|
1034
1051
|
)
|
|
1035
|
-
]
|
|
1036
|
-
|
|
1037
|
-
) :
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
"
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
}
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
"input",
|
|
1053
|
-
{
|
|
1054
|
-
ref: searchInputRef,
|
|
1055
|
-
type: "text",
|
|
1056
|
-
className: FilterBar_module_default.searchInput,
|
|
1057
|
-
placeholder: "Search\u2026",
|
|
1058
|
-
value: searchValue,
|
|
1059
|
-
onChange: (e) => onSearchChange(e.target.value),
|
|
1060
|
-
onKeyDown: (e) => {
|
|
1061
|
-
if (e.key === "Escape") {
|
|
1062
|
-
if (searchValue) clearSearch();
|
|
1063
|
-
else closeSearch();
|
|
1064
|
-
}
|
|
1065
|
-
},
|
|
1066
|
-
onBlur: () => {
|
|
1067
|
-
if (!searchValue) closeSearch();
|
|
1068
|
-
}
|
|
1069
|
-
}
|
|
1070
|
-
),
|
|
1071
|
-
searchValue && /* @__PURE__ */ jsx(
|
|
1072
|
-
"button",
|
|
1073
|
-
{
|
|
1074
|
-
type: "button",
|
|
1075
|
-
className: FilterBar_module_default.searchClear,
|
|
1076
|
-
"aria-label": "Clear search",
|
|
1077
|
-
onMouseDown: (e) => e.preventDefault(),
|
|
1078
|
-
onClick: clearSearch,
|
|
1079
|
-
children: /* @__PURE__ */ jsx(Icon, { type: "xBlack", size: 16, "aria-hidden": "true" })
|
|
1080
|
-
}
|
|
1081
|
-
)
|
|
1082
|
-
]
|
|
1083
|
-
}
|
|
1084
|
-
)
|
|
1085
|
-
) : /* @__PURE__ */ jsxs("button", { type: "button", className: FilterBar_module_default.chip, onClick: () => setSearchState("open"), children: [
|
|
1086
|
-
/* @__PURE__ */ jsx(Icon, { type: "search", size: 20, "aria-hidden": "true" }),
|
|
1087
|
-
/* @__PURE__ */ jsx("span", { className: FilterBar_module_default.chipLabel, children: "Search" })
|
|
1088
|
-
] })
|
|
1052
|
+
]
|
|
1053
|
+
}
|
|
1054
|
+
) : /* @__PURE__ */ jsxs(
|
|
1055
|
+
"button",
|
|
1056
|
+
{
|
|
1057
|
+
type: "button",
|
|
1058
|
+
className: FilterBar_module_default.chip,
|
|
1059
|
+
onClick: () => {
|
|
1060
|
+
setOpenDropdown(null);
|
|
1061
|
+
setSearchState("open");
|
|
1062
|
+
},
|
|
1063
|
+
children: [
|
|
1064
|
+
/* @__PURE__ */ jsx(Icon, { type: "search", size: 20, "aria-hidden": "true" }),
|
|
1065
|
+
!isMobile && /* @__PURE__ */ jsx("span", { className: FilterBar_module_default.chipLabel, children: "Search" })
|
|
1066
|
+
]
|
|
1067
|
+
}
|
|
1068
|
+
)
|
|
1089
1069
|
] })
|
|
1090
1070
|
] });
|
|
1091
1071
|
}
|
|
@@ -1111,9 +1091,9 @@ var InfoCard = ({ className, title, subtitle, icon, badge, children }) => {
|
|
|
1111
1091
|
});
|
|
1112
1092
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
1113
1093
|
const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
|
|
1114
|
-
return /* @__PURE__ */ jsxs("div", { className:
|
|
1094
|
+
return /* @__PURE__ */ jsxs("div", { className: clsx15(InfoCard_module_default["info-card"], { [InfoCard_module_default.hasIcon]: !!icon }, className), children: [
|
|
1115
1095
|
/* @__PURE__ */ jsxs("div", { className: InfoCard_module_default.header, children: [
|
|
1116
|
-
icon ? /* @__PURE__ */ jsx(Icon, { type: icon }) : badge ? /* @__PURE__ */ jsx("div", { className:
|
|
1096
|
+
icon ? /* @__PURE__ */ jsx(Icon, { type: icon }) : badge ? /* @__PURE__ */ jsx("div", { className: clsx15(InfoCard_module_default.badge, "h4"), children: badge }) : null,
|
|
1117
1097
|
titleNode && /* @__PURE__ */ jsx("div", { className: "h4", children: titleNode })
|
|
1118
1098
|
] }),
|
|
1119
1099
|
subtitleNode && /* @__PURE__ */ jsx("div", { className: "body", children: subtitleNode })
|
|
@@ -1175,7 +1155,7 @@ var Pagination = ({
|
|
|
1175
1155
|
setActivePage(page);
|
|
1176
1156
|
onPageChange == null ? void 0 : onPageChange(page);
|
|
1177
1157
|
};
|
|
1178
|
-
return /* @__PURE__ */ jsxs("div", { className:
|
|
1158
|
+
return /* @__PURE__ */ jsxs("div", { className: clsx15(Pagination_module_default.pagination, className), children: [
|
|
1179
1159
|
!disableArrows && /* @__PURE__ */ jsx(
|
|
1180
1160
|
"button",
|
|
1181
1161
|
{
|
|
@@ -1192,7 +1172,7 @@ var Pagination = ({
|
|
|
1192
1172
|
"button",
|
|
1193
1173
|
{
|
|
1194
1174
|
onClick: () => goToPage(page),
|
|
1195
|
-
className:
|
|
1175
|
+
className: clsx15(Pagination_module_default.page, {
|
|
1196
1176
|
[Pagination_module_default.active]: activePage === page,
|
|
1197
1177
|
[Pagination_module_default.number]: hasNumber
|
|
1198
1178
|
}),
|
|
@@ -1228,7 +1208,7 @@ var PracticeCard_module_default = {
|
|
|
1228
1208
|
};
|
|
1229
1209
|
var PracticeCard = ({ className, title, cta, image }) => {
|
|
1230
1210
|
const { url: href, isExternal } = cta != null ? cta : {};
|
|
1231
|
-
return /* @__PURE__ */ jsx("div", { className:
|
|
1211
|
+
return /* @__PURE__ */ jsx("div", { className: clsx15(PracticeCard_module_default["practice-card"], className), children: /* @__PURE__ */ jsxs(
|
|
1232
1212
|
ConditionalWrapper,
|
|
1233
1213
|
__spreadProps(__spreadValues({
|
|
1234
1214
|
className: PracticeCard_module_default.wrapper,
|
|
@@ -1239,7 +1219,7 @@ var PracticeCard = ({ className, title, cta, image }) => {
|
|
|
1239
1219
|
children: [
|
|
1240
1220
|
image && /* @__PURE__ */ jsx(Picture, __spreadValues({ className: PracticeCard_module_default.background }, image)),
|
|
1241
1221
|
/* @__PURE__ */ jsxs("div", { className: PracticeCard_module_default.container, children: [
|
|
1242
|
-
title && /* @__PURE__ */ jsx("div", { className:
|
|
1222
|
+
title && /* @__PURE__ */ jsx("div", { className: clsx15(PracticeCard_module_default.title, "h3"), children: title }),
|
|
1243
1223
|
href && /* @__PURE__ */ jsxs("div", { className: PracticeCard_module_default.cta, children: [
|
|
1244
1224
|
/* @__PURE__ */ jsx(Icon, { className: PracticeCard_module_default.ctaRest, type: "right" }),
|
|
1245
1225
|
/* @__PURE__ */ jsx(Icon, { className: PracticeCard_module_default.ctaHover, type: "tiltedRight" })
|
|
@@ -1329,7 +1309,7 @@ var Sidebar = ({
|
|
|
1329
1309
|
return /* @__PURE__ */ jsxs(
|
|
1330
1310
|
"li",
|
|
1331
1311
|
{
|
|
1332
|
-
className:
|
|
1312
|
+
className: clsx15(Sidebar_module_default.sidebarItem, i === selectedIndex && Sidebar_module_default.active),
|
|
1333
1313
|
role: "button",
|
|
1334
1314
|
tabIndex: 0,
|
|
1335
1315
|
"aria-pressed": i === selectedIndex,
|
|
@@ -1350,126 +1330,480 @@ var Sidebar = ({
|
|
|
1350
1330
|
}) }) });
|
|
1351
1331
|
};
|
|
1352
1332
|
|
|
1353
|
-
// src/components/
|
|
1354
|
-
var
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
var CardCollectionTitle = ({ children }) => {
|
|
1370
|
-
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
1371
|
-
};
|
|
1372
|
-
var CardCollectionSubtitle = ({ children }) => {
|
|
1373
|
-
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
1374
|
-
};
|
|
1375
|
-
|
|
1376
|
-
// src/widgets/CardCollection/CardCollection.module.scss
|
|
1377
|
-
var CardCollection_module_default = {
|
|
1378
|
-
"card-collection": "CardCollection_module_card-collection",
|
|
1379
|
-
content: "CardCollection_module_content",
|
|
1380
|
-
wrapper: "CardCollection_module_wrapper",
|
|
1381
|
-
cardWrapper: "CardCollection_module_cardWrapper",
|
|
1382
|
-
threeCols: "CardCollection_module_threeCols",
|
|
1383
|
-
fourCols: "CardCollection_module_fourCols",
|
|
1384
|
-
examCard: "CardCollection_module_examCard",
|
|
1385
|
-
"reveal-wrapper": "CardCollection_module_reveal-wrapper",
|
|
1386
|
-
"reveal-inner": "CardCollection_module_reveal-inner",
|
|
1387
|
-
card: "CardCollection_module_card",
|
|
1388
|
-
"is-expanded": "CardCollection_module_is-expanded",
|
|
1389
|
-
cta: "CardCollection_module_cta"
|
|
1333
|
+
// src/components/UpcomingEventCard/UpcomingEventCard.module.scss
|
|
1334
|
+
var UpcomingEventCard_module_default = {
|
|
1335
|
+
"event-card": "UpcomingEventCard_module_event-card",
|
|
1336
|
+
"event-card-content": "UpcomingEventCard_module_event-card-content",
|
|
1337
|
+
"event-card-image": "UpcomingEventCard_module_event-card-image",
|
|
1338
|
+
"event-card-text-content": "UpcomingEventCard_module_event-card-text-content",
|
|
1339
|
+
date: "UpcomingEventCard_module_date",
|
|
1340
|
+
location: "UpcomingEventCard_module_location",
|
|
1341
|
+
description: "UpcomingEventCard_module_description",
|
|
1342
|
+
"event-card-footer": "UpcomingEventCard_module_event-card-footer",
|
|
1343
|
+
horizontal: "UpcomingEventCard_module_horizontal",
|
|
1344
|
+
"event-card-show-image": "UpcomingEventCard_module_event-card-show-image",
|
|
1345
|
+
"event-card-cta": "UpcomingEventCard_module_event-card-cta",
|
|
1346
|
+
hidden: "UpcomingEventCard_module_hidden",
|
|
1347
|
+
"cta-without-image": "UpcomingEventCard_module_cta-without-image",
|
|
1348
|
+
vertical: "UpcomingEventCard_module_vertical"
|
|
1390
1349
|
};
|
|
1391
|
-
var
|
|
1350
|
+
var UpcomingEventCard = ({
|
|
1392
1351
|
className,
|
|
1393
|
-
|
|
1394
|
-
|
|
1352
|
+
image,
|
|
1353
|
+
date,
|
|
1395
1354
|
title,
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1355
|
+
location,
|
|
1356
|
+
description,
|
|
1357
|
+
cta,
|
|
1358
|
+
direction = "horizontal",
|
|
1359
|
+
showImage = true
|
|
1400
1360
|
}) => {
|
|
1401
|
-
|
|
1402
|
-
const
|
|
1403
|
-
const
|
|
1404
|
-
const
|
|
1405
|
-
const
|
|
1406
|
-
const slots = resolveCompoundSlots(children, {
|
|
1407
|
-
title: CardCollectionTitle,
|
|
1408
|
-
subtitle: CardCollectionSubtitle
|
|
1409
|
-
});
|
|
1410
|
-
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
1411
|
-
const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
|
|
1412
|
-
const isExamCard = variant === "examCard";
|
|
1413
|
-
const visibleCards = isExamCard ? cards.slice(0, 8) : cards;
|
|
1414
|
-
const hiddenCards = isExamCard ? cards.slice(8) : [];
|
|
1415
|
-
const { contextSafe } = useGSAP({ scope: container });
|
|
1416
|
-
const handleShowMore = useCallback(() => {
|
|
1417
|
-
contextSafe(() => {
|
|
1418
|
-
setIsExpanded(true);
|
|
1419
|
-
const tl = gsap$1.timeline({ defaults: { ease: "power3.inOut" } });
|
|
1420
|
-
tl.to(`.${CardCollection_module_default.cta}`, {
|
|
1421
|
-
opacity: 0,
|
|
1422
|
-
y: 20,
|
|
1423
|
-
duration: 0.3,
|
|
1424
|
-
display: "none"
|
|
1425
|
-
}).to(`.${CardCollection_module_default.cardWrapper}`, { height: "auto", duration: 0.2 }, "<").to(
|
|
1426
|
-
revealWrapper.current,
|
|
1427
|
-
{
|
|
1428
|
-
height: "auto",
|
|
1429
|
-
duration: 0.3
|
|
1430
|
-
},
|
|
1431
|
-
"-=0.1"
|
|
1432
|
-
).from(
|
|
1433
|
-
extraCard.current,
|
|
1434
|
-
{
|
|
1435
|
-
opacity: 0,
|
|
1436
|
-
y: 30,
|
|
1437
|
-
duration: 0.3,
|
|
1438
|
-
clearProps: "all"
|
|
1439
|
-
},
|
|
1440
|
-
"-=0.3"
|
|
1441
|
-
);
|
|
1442
|
-
})();
|
|
1443
|
-
}, [contextSafe]);
|
|
1361
|
+
const { is } = useViewPort_default();
|
|
1362
|
+
const hasCtaWithoutImage = cta && cta.url && !image;
|
|
1363
|
+
const hasCTAandImage = Boolean(cta && cta.url && image);
|
|
1364
|
+
const hasImage = Boolean(image);
|
|
1365
|
+
const isBelowMobile = is("mobile-l", "below");
|
|
1444
1366
|
return /* @__PURE__ */ jsxs(
|
|
1445
|
-
|
|
1367
|
+
"article",
|
|
1446
1368
|
{
|
|
1447
|
-
|
|
1448
|
-
|
|
1369
|
+
className: clsx15(
|
|
1370
|
+
"card",
|
|
1371
|
+
UpcomingEventCard_module_default["event-card"],
|
|
1372
|
+
UpcomingEventCard_module_default[direction],
|
|
1373
|
+
hasCtaWithoutImage && UpcomingEventCard_module_default["cta-without-image"],
|
|
1374
|
+
className
|
|
1375
|
+
),
|
|
1449
1376
|
children: [
|
|
1450
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
/* @__PURE__ */ jsx("div", { className: CardCollection_module_default.wrapper, children: /* @__PURE__ */ jsxs("div", { className: clsx25(CardCollection_module_default.cardWrapper, { [CardCollection_module_default["is-expanded"]]: isExpanded }), children: [
|
|
1455
|
-
visibleCards.map((card, key) => /* @__PURE__ */ jsx(Card2, __spreadValues({ className: CardCollection_module_default.card, variant: theme }, card), key)),
|
|
1456
|
-
isExamCard && hiddenCards.length > 0 && /* @__PURE__ */ jsx("div", { ref: revealWrapper, className: CardCollection_module_default["reveal-wrapper"], children: /* @__PURE__ */ jsx("div", { className: CardCollection_module_default["reveal-inner"], children: hiddenCards.map((card, key) => /* @__PURE__ */ jsx(
|
|
1457
|
-
Card2,
|
|
1458
|
-
__spreadValues({
|
|
1459
|
-
ref: extraCard,
|
|
1460
|
-
className: CardCollection_module_default.card,
|
|
1461
|
-
variant: theme
|
|
1462
|
-
}, card),
|
|
1463
|
-
key
|
|
1464
|
-
)) }) }),
|
|
1465
|
-
isExamCard && !isExpanded && ctaLabel && /* @__PURE__ */ jsx(
|
|
1466
|
-
Button,
|
|
1377
|
+
/* @__PURE__ */ jsxs("div", { className: clsx15("card-content", UpcomingEventCard_module_default["event-card-content"]), children: [
|
|
1378
|
+
showImage && image && /* @__PURE__ */ jsx(Picture, __spreadProps(__spreadValues({}, image), { className: clsx15("card-image", UpcomingEventCard_module_default["event-card-image"]) })),
|
|
1379
|
+
/* @__PURE__ */ jsxs(
|
|
1380
|
+
"div",
|
|
1467
1381
|
{
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1382
|
+
className: clsx15(
|
|
1383
|
+
"card-text-content",
|
|
1384
|
+
UpcomingEventCard_module_default["event-card-text-content"],
|
|
1385
|
+
(!showImage || !hasImage) && UpcomingEventCard_module_default["event-card-show-image"]
|
|
1386
|
+
),
|
|
1387
|
+
children: [
|
|
1388
|
+
/* @__PURE__ */ jsx("span", { className: UpcomingEventCard_module_default.date, children: date }),
|
|
1389
|
+
title && /* @__PURE__ */ jsx("h3", { className: clsx15("card-text-title"), children: title }),
|
|
1390
|
+
location && /* @__PURE__ */ jsx("span", { className: UpcomingEventCard_module_default.location, children: location }),
|
|
1391
|
+
description && /* @__PURE__ */ jsx("div", { className: clsx15("card-text-description", UpcomingEventCard_module_default.description), children: description }),
|
|
1392
|
+
cta && cta.url && /* @__PURE__ */ jsx(
|
|
1393
|
+
Button,
|
|
1394
|
+
{
|
|
1395
|
+
variant: "secondary",
|
|
1396
|
+
className: clsx15(
|
|
1397
|
+
"card-cta",
|
|
1398
|
+
UpcomingEventCard_module_default["event-card-cta"],
|
|
1399
|
+
!hasCTAandImage && UpcomingEventCard_module_default.hidden
|
|
1400
|
+
),
|
|
1401
|
+
fullWidth: isBelowMobile,
|
|
1402
|
+
href: cta.url,
|
|
1403
|
+
icon: cta.icon,
|
|
1404
|
+
isExternal: cta == null ? void 0 : cta.isExternal,
|
|
1405
|
+
children: cta.label
|
|
1406
|
+
}
|
|
1407
|
+
)
|
|
1408
|
+
]
|
|
1409
|
+
}
|
|
1410
|
+
)
|
|
1411
|
+
] }),
|
|
1412
|
+
cta && cta.url && /* @__PURE__ */ jsx(
|
|
1413
|
+
"div",
|
|
1414
|
+
{
|
|
1415
|
+
className: clsx15("card-footer", UpcomingEventCard_module_default["event-card-footer"], hasImage && UpcomingEventCard_module_default.hidden),
|
|
1416
|
+
children: /* @__PURE__ */ jsx(
|
|
1417
|
+
Button,
|
|
1418
|
+
{
|
|
1419
|
+
variant: "secondary",
|
|
1420
|
+
className: clsx15("card-cta", UpcomingEventCard_module_default["event-card-cta"]),
|
|
1421
|
+
fullWidth: isBelowMobile,
|
|
1422
|
+
href: cta.url,
|
|
1423
|
+
icon: cta.icon,
|
|
1424
|
+
isExternal: cta == null ? void 0 : cta.isExternal,
|
|
1425
|
+
children: cta.label
|
|
1426
|
+
}
|
|
1427
|
+
)
|
|
1428
|
+
}
|
|
1429
|
+
)
|
|
1430
|
+
]
|
|
1431
|
+
}
|
|
1432
|
+
);
|
|
1433
|
+
};
|
|
1434
|
+
|
|
1435
|
+
// src/components/Badge/Badge.module.scss
|
|
1436
|
+
var Badge_module_default = {
|
|
1437
|
+
badge: "Badge_module_badge",
|
|
1438
|
+
default: "Badge_module_default",
|
|
1439
|
+
sm: "Badge_module_sm",
|
|
1440
|
+
"badge-icon": "Badge_module_badge-icon",
|
|
1441
|
+
md: "Badge_module_md",
|
|
1442
|
+
clickable: "Badge_module_clickable",
|
|
1443
|
+
label: "Badge_module_label",
|
|
1444
|
+
icon: "Badge_module_icon",
|
|
1445
|
+
iconOnly: "Badge_module_iconOnly"
|
|
1446
|
+
};
|
|
1447
|
+
var Badge = forwardRef(
|
|
1448
|
+
(_a, ref) => {
|
|
1449
|
+
var _b = _a, {
|
|
1450
|
+
children,
|
|
1451
|
+
className,
|
|
1452
|
+
variant = "default",
|
|
1453
|
+
size = "md",
|
|
1454
|
+
icon,
|
|
1455
|
+
iconOnly = false,
|
|
1456
|
+
live = "off",
|
|
1457
|
+
clickable = false
|
|
1458
|
+
} = _b, props = __objRest(_b, [
|
|
1459
|
+
"children",
|
|
1460
|
+
"className",
|
|
1461
|
+
"variant",
|
|
1462
|
+
"size",
|
|
1463
|
+
"icon",
|
|
1464
|
+
"iconOnly",
|
|
1465
|
+
"live",
|
|
1466
|
+
"clickable"
|
|
1467
|
+
]);
|
|
1468
|
+
const classes = clsx15(
|
|
1469
|
+
Badge_module_default.badge,
|
|
1470
|
+
Badge_module_default[variant],
|
|
1471
|
+
Badge_module_default[size],
|
|
1472
|
+
{
|
|
1473
|
+
[Badge_module_default.iconOnly]: iconOnly,
|
|
1474
|
+
[Badge_module_default.clickable]: clickable
|
|
1475
|
+
},
|
|
1476
|
+
className
|
|
1477
|
+
);
|
|
1478
|
+
const content = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1479
|
+
icon && /* @__PURE__ */ jsx(Icon, __spreadValues({ className: clsx15("badge-icon", Badge_module_default["badge-icon"]) }, icon)),
|
|
1480
|
+
!iconOnly && /* @__PURE__ */ jsx("span", { className: Badge_module_default.label, children })
|
|
1481
|
+
] });
|
|
1482
|
+
if (clickable) {
|
|
1483
|
+
return /* @__PURE__ */ jsx(
|
|
1484
|
+
"button",
|
|
1485
|
+
__spreadProps(__spreadValues({
|
|
1486
|
+
ref,
|
|
1487
|
+
type: "button",
|
|
1488
|
+
className: classes
|
|
1489
|
+
}, props), {
|
|
1490
|
+
children: content
|
|
1491
|
+
})
|
|
1492
|
+
);
|
|
1493
|
+
}
|
|
1494
|
+
return /* @__PURE__ */ jsx(
|
|
1495
|
+
"span",
|
|
1496
|
+
__spreadProps(__spreadValues({
|
|
1497
|
+
ref,
|
|
1498
|
+
className: classes,
|
|
1499
|
+
role: "status",
|
|
1500
|
+
"aria-live": live
|
|
1501
|
+
}, props), {
|
|
1502
|
+
children: content
|
|
1503
|
+
})
|
|
1504
|
+
);
|
|
1505
|
+
}
|
|
1506
|
+
);
|
|
1507
|
+
Badge.displayName = "Badge";
|
|
1508
|
+
|
|
1509
|
+
// src/components/Input/Input.module.scss
|
|
1510
|
+
var Input_module_default = {
|
|
1511
|
+
"input-field": "Input_module_input-field",
|
|
1512
|
+
label: "Input_module_label",
|
|
1513
|
+
required: "Input_module_required",
|
|
1514
|
+
wrapper: "Input_module_wrapper",
|
|
1515
|
+
input: "Input_module_input",
|
|
1516
|
+
adornment: "Input_module_adornment",
|
|
1517
|
+
"helper-text": "Input_module_helper-text",
|
|
1518
|
+
error: "Input_module_error",
|
|
1519
|
+
"input-field--error": "Input_module_input-field--error",
|
|
1520
|
+
"input-field--disabled": "Input_module_input-field--disabled"};
|
|
1521
|
+
var Input = forwardRef(
|
|
1522
|
+
(_a, ref) => {
|
|
1523
|
+
var _b = _a, {
|
|
1524
|
+
id,
|
|
1525
|
+
label,
|
|
1526
|
+
helperText,
|
|
1527
|
+
error,
|
|
1528
|
+
required,
|
|
1529
|
+
disabled,
|
|
1530
|
+
className,
|
|
1531
|
+
inputClassName,
|
|
1532
|
+
startAdornment,
|
|
1533
|
+
endAdornment,
|
|
1534
|
+
endAction,
|
|
1535
|
+
hideLabel = false,
|
|
1536
|
+
type = "text"
|
|
1537
|
+
} = _b, props = __objRest(_b, [
|
|
1538
|
+
"id",
|
|
1539
|
+
"label",
|
|
1540
|
+
"helperText",
|
|
1541
|
+
"error",
|
|
1542
|
+
"required",
|
|
1543
|
+
"disabled",
|
|
1544
|
+
"className",
|
|
1545
|
+
"inputClassName",
|
|
1546
|
+
"startAdornment",
|
|
1547
|
+
"endAdornment",
|
|
1548
|
+
"endAction",
|
|
1549
|
+
"hideLabel",
|
|
1550
|
+
"type"
|
|
1551
|
+
]);
|
|
1552
|
+
const generatedId = useId();
|
|
1553
|
+
const inputId = id || generatedId;
|
|
1554
|
+
const helperTextId = `${inputId}-helper`;
|
|
1555
|
+
const errorId = `${inputId}-error`;
|
|
1556
|
+
const describedBy = [helperText ? helperTextId : null, error ? errorId : null].filter(Boolean).join(" ");
|
|
1557
|
+
return /* @__PURE__ */ jsxs(
|
|
1558
|
+
"div",
|
|
1559
|
+
{
|
|
1560
|
+
className: clsx15(
|
|
1561
|
+
"input-field",
|
|
1562
|
+
Input_module_default["input-field"],
|
|
1563
|
+
{
|
|
1564
|
+
[Input_module_default["input-field--disabled"]]: disabled,
|
|
1565
|
+
[Input_module_default["input-field--error"]]: !!error
|
|
1566
|
+
},
|
|
1567
|
+
className
|
|
1568
|
+
),
|
|
1569
|
+
children: [
|
|
1570
|
+
label && /* @__PURE__ */ jsxs(
|
|
1571
|
+
"label",
|
|
1572
|
+
{
|
|
1573
|
+
htmlFor: inputId,
|
|
1574
|
+
className: clsx15("input-label", Input_module_default.label, {
|
|
1575
|
+
["sr-only"]: hideLabel
|
|
1576
|
+
}),
|
|
1577
|
+
children: [
|
|
1578
|
+
label,
|
|
1579
|
+
required && /* @__PURE__ */ jsx("span", { className: clsx15("input-required", Input_module_default.required), "aria-hidden": "true", children: "*" })
|
|
1580
|
+
]
|
|
1581
|
+
}
|
|
1582
|
+
),
|
|
1583
|
+
/* @__PURE__ */ jsxs("div", { className: clsx15("input-wrapper", Input_module_default.wrapper), children: [
|
|
1584
|
+
startAdornment && /* @__PURE__ */ jsx("span", { className: clsx15("input-adornment", Input_module_default.adornment), "aria-hidden": "true", children: startAdornment }),
|
|
1585
|
+
/* @__PURE__ */ jsx(
|
|
1586
|
+
"input",
|
|
1587
|
+
__spreadValues({
|
|
1588
|
+
ref,
|
|
1589
|
+
id: inputId,
|
|
1590
|
+
type,
|
|
1591
|
+
required,
|
|
1592
|
+
disabled,
|
|
1593
|
+
"aria-invalid": !!error,
|
|
1594
|
+
"aria-describedby": describedBy || void 0,
|
|
1595
|
+
className: clsx15(
|
|
1596
|
+
"input",
|
|
1597
|
+
Input_module_default.input,
|
|
1598
|
+
{
|
|
1599
|
+
[Input_module_default["input--with-start-adornment"]]: !!startAdornment,
|
|
1600
|
+
[Input_module_default["input--with-end-adornment"]]: !!endAdornment
|
|
1601
|
+
},
|
|
1602
|
+
inputClassName
|
|
1603
|
+
)
|
|
1604
|
+
}, props)
|
|
1605
|
+
),
|
|
1606
|
+
endAdornment && /* @__PURE__ */ jsx("span", { className: clsx15("input-adornment", Input_module_default.adornment), "aria-hidden": "true", children: endAdornment }),
|
|
1607
|
+
endAction && /* @__PURE__ */ jsx("span", { className: clsx15("input-end-action"), children: endAction })
|
|
1608
|
+
] }),
|
|
1609
|
+
helperText && !error && /* @__PURE__ */ jsx("p", { id: helperTextId, className: clsx15("input-helper-text", Input_module_default["helper-text"]), children: helperText }),
|
|
1610
|
+
error && /* @__PURE__ */ jsx("p", { id: errorId, className: clsx15("input-error", Input_module_default.error), role: "alert", children: error })
|
|
1611
|
+
]
|
|
1612
|
+
}
|
|
1613
|
+
);
|
|
1614
|
+
}
|
|
1615
|
+
);
|
|
1616
|
+
Input.displayName = "Input";
|
|
1617
|
+
|
|
1618
|
+
// src/components/NewsCard/NewsCard.module.scss
|
|
1619
|
+
var NewsCard_module_default = {
|
|
1620
|
+
"news-card": "NewsCard_module_news-card",
|
|
1621
|
+
"news-card-link": "NewsCard_module_news-card-link",
|
|
1622
|
+
"news-card-cta": "NewsCard_module_news-card-cta",
|
|
1623
|
+
"news-card-image": "NewsCard_module_news-card-image",
|
|
1624
|
+
"news-card-content": "NewsCard_module_news-card-content",
|
|
1625
|
+
"news-card-top-content": "NewsCard_module_news-card-top-content",
|
|
1626
|
+
"news-card-badge": "NewsCard_module_news-card-badge",
|
|
1627
|
+
"news-card-date": "NewsCard_module_news-card-date",
|
|
1628
|
+
"news-card-main-content": "NewsCard_module_news-card-main-content",
|
|
1629
|
+
"news-card-title": "NewsCard_module_news-card-title",
|
|
1630
|
+
"news-card-description": "NewsCard_module_news-card-description",
|
|
1631
|
+
"news-card-cta-wrapper": "NewsCard_module_news-card-cta-wrapper",
|
|
1632
|
+
"news-card--vertical": "NewsCard_module_news-card--vertical",
|
|
1633
|
+
"news-card--horizontal": "NewsCard_module_news-card--horizontal"
|
|
1634
|
+
};
|
|
1635
|
+
var NewsCard = ({
|
|
1636
|
+
className,
|
|
1637
|
+
image,
|
|
1638
|
+
date,
|
|
1639
|
+
description,
|
|
1640
|
+
tag,
|
|
1641
|
+
title,
|
|
1642
|
+
cta,
|
|
1643
|
+
direction = "vertical",
|
|
1644
|
+
renderLink
|
|
1645
|
+
}) => {
|
|
1646
|
+
const linkProps = cta && cta.url ? {
|
|
1647
|
+
href: cta.url,
|
|
1648
|
+
target: cta.isExternal ? "_blank" : void 0,
|
|
1649
|
+
rel: cta.isExternal ? "noopener noreferrer" : void 0,
|
|
1650
|
+
className: clsx15("news-card-link", NewsCard_module_default["news-card-link"]),
|
|
1651
|
+
"aria-label": `${title}${cta.label ? ` \u2014 ${cta.label}` : ""}`
|
|
1652
|
+
} : null;
|
|
1653
|
+
const cardLink = linkProps ? renderLink ? renderLink(__spreadProps(__spreadValues({}, linkProps), { children: null })) : /* @__PURE__ */ jsx("a", __spreadValues({}, linkProps)) : null;
|
|
1654
|
+
return /* @__PURE__ */ jsxs(
|
|
1655
|
+
"article",
|
|
1656
|
+
{
|
|
1657
|
+
className: clsx15(
|
|
1658
|
+
"news-card",
|
|
1659
|
+
NewsCard_module_default["news-card"],
|
|
1660
|
+
NewsCard_module_default[`news-card--${direction}`],
|
|
1661
|
+
className
|
|
1662
|
+
),
|
|
1663
|
+
children: [
|
|
1664
|
+
cardLink,
|
|
1665
|
+
image && /* @__PURE__ */ jsx(Picture, __spreadProps(__spreadValues({}, image), { className: clsx15("news-card-image", NewsCard_module_default["news-card-image"]) })),
|
|
1666
|
+
/* @__PURE__ */ jsxs(
|
|
1667
|
+
"div",
|
|
1668
|
+
{
|
|
1669
|
+
className: clsx15("news-card-content", NewsCard_module_default["news-card-content"]),
|
|
1670
|
+
style: {
|
|
1671
|
+
"--no-image-padding": image && image.src ? 0 : "1rem"
|
|
1672
|
+
},
|
|
1673
|
+
children: [
|
|
1674
|
+
/* @__PURE__ */ jsxs("div", { className: clsx15("news-card-top-content", NewsCard_module_default["news-card-top-content"]), children: [
|
|
1675
|
+
/* @__PURE__ */ jsx(Badge, { className: clsx15("news-card-badge", NewsCard_module_default["news-card-badge"]), children: tag }),
|
|
1676
|
+
/* @__PURE__ */ jsx("time", { dateTime: date.value, className: clsx15("news-card-date", NewsCard_module_default["news-card-date"]), children: date.label })
|
|
1677
|
+
] }),
|
|
1678
|
+
/* @__PURE__ */ jsxs("div", { className: clsx15("news-card-main-content", NewsCard_module_default["news-card-main-content"]), children: [
|
|
1679
|
+
/* @__PURE__ */ jsx("h3", { className: clsx15("news-card-title", NewsCard_module_default["news-card-title"]), children: title }),
|
|
1680
|
+
typeof description === "string" ? /* @__PURE__ */ jsx("p", { className: clsx15("news-card-description", NewsCard_module_default["news-card-description"]), children: description }) : description
|
|
1681
|
+
] }),
|
|
1682
|
+
cta && cta.url && /* @__PURE__ */ jsx("div", { className: clsx15("news-card-cta-wrapper", NewsCard_module_default["news-card-cta-wrapper"]), children: /* @__PURE__ */ jsx(
|
|
1683
|
+
Button,
|
|
1684
|
+
{
|
|
1685
|
+
variant: "secondary",
|
|
1686
|
+
className: clsx15("news-card-cta", NewsCard_module_default["news-card-cta"]),
|
|
1687
|
+
href: cta.url,
|
|
1688
|
+
icon: cta.icon,
|
|
1689
|
+
isExternal: cta == null ? void 0 : cta.isExternal,
|
|
1690
|
+
"aria-hidden": "true",
|
|
1691
|
+
tabIndex: -1,
|
|
1692
|
+
renderLink: renderLink ? (props) => renderLink(__spreadProps(__spreadValues({}, props), { tabIndex: -1 })) : void 0,
|
|
1693
|
+
children: cta.label
|
|
1694
|
+
}
|
|
1695
|
+
) })
|
|
1696
|
+
]
|
|
1697
|
+
}
|
|
1698
|
+
)
|
|
1699
|
+
]
|
|
1700
|
+
}
|
|
1701
|
+
);
|
|
1702
|
+
};
|
|
1703
|
+
var CardCollectionTitle = ({ children }) => {
|
|
1704
|
+
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
1705
|
+
};
|
|
1706
|
+
var CardCollectionSubtitle = ({ children }) => {
|
|
1707
|
+
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
1708
|
+
};
|
|
1709
|
+
|
|
1710
|
+
// src/widgets/CardCollection/CardCollection.module.scss
|
|
1711
|
+
var CardCollection_module_default = {
|
|
1712
|
+
"card-collection": "CardCollection_module_card-collection",
|
|
1713
|
+
content: "CardCollection_module_content",
|
|
1714
|
+
wrapper: "CardCollection_module_wrapper",
|
|
1715
|
+
cardWrapper: "CardCollection_module_cardWrapper",
|
|
1716
|
+
threeCols: "CardCollection_module_threeCols",
|
|
1717
|
+
fourCols: "CardCollection_module_fourCols",
|
|
1718
|
+
examCard: "CardCollection_module_examCard",
|
|
1719
|
+
"reveal-wrapper": "CardCollection_module_reveal-wrapper",
|
|
1720
|
+
"reveal-inner": "CardCollection_module_reveal-inner",
|
|
1721
|
+
card: "CardCollection_module_card",
|
|
1722
|
+
"is-expanded": "CardCollection_module_is-expanded",
|
|
1723
|
+
cta: "CardCollection_module_cta"
|
|
1724
|
+
};
|
|
1725
|
+
var CardCollection = ({
|
|
1726
|
+
className,
|
|
1727
|
+
variant = "default",
|
|
1728
|
+
theme = "dark",
|
|
1729
|
+
title,
|
|
1730
|
+
subtitle,
|
|
1731
|
+
cards = [],
|
|
1732
|
+
ctaLabel,
|
|
1733
|
+
children
|
|
1734
|
+
}) => {
|
|
1735
|
+
var _a, _b;
|
|
1736
|
+
const container = useRef(null);
|
|
1737
|
+
const revealWrapper = useRef(null);
|
|
1738
|
+
const extraCard = useRef(null);
|
|
1739
|
+
const [isExpanded, setIsExpanded] = useState(false);
|
|
1740
|
+
const slots = resolveCompoundSlots(children, {
|
|
1741
|
+
title: CardCollectionTitle,
|
|
1742
|
+
subtitle: CardCollectionSubtitle
|
|
1743
|
+
});
|
|
1744
|
+
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
1745
|
+
const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
|
|
1746
|
+
const isExamCard = variant === "examCard";
|
|
1747
|
+
const visibleCards = isExamCard ? cards.slice(0, 8) : cards;
|
|
1748
|
+
const hiddenCards = isExamCard ? cards.slice(8) : [];
|
|
1749
|
+
const { contextSafe } = useGSAP({ scope: container });
|
|
1750
|
+
const handleShowMore = useCallback(() => {
|
|
1751
|
+
contextSafe(() => {
|
|
1752
|
+
setIsExpanded(true);
|
|
1753
|
+
const tl = gsap$1.timeline({ defaults: { ease: "power3.inOut" } });
|
|
1754
|
+
tl.to(`.${CardCollection_module_default.cta}`, {
|
|
1755
|
+
opacity: 0,
|
|
1756
|
+
y: 20,
|
|
1757
|
+
duration: 0.3,
|
|
1758
|
+
display: "none"
|
|
1759
|
+
}).to(`.${CardCollection_module_default.cardWrapper}`, { height: "auto", duration: 0.2 }, "<").to(
|
|
1760
|
+
revealWrapper.current,
|
|
1761
|
+
{
|
|
1762
|
+
height: "auto",
|
|
1763
|
+
duration: 0.3
|
|
1764
|
+
},
|
|
1765
|
+
"-=0.1"
|
|
1766
|
+
).from(
|
|
1767
|
+
extraCard.current,
|
|
1768
|
+
{
|
|
1769
|
+
opacity: 0,
|
|
1770
|
+
y: 30,
|
|
1771
|
+
duration: 0.3,
|
|
1772
|
+
clearProps: "all"
|
|
1773
|
+
},
|
|
1774
|
+
"-=0.3"
|
|
1775
|
+
);
|
|
1776
|
+
})();
|
|
1777
|
+
}, [contextSafe]);
|
|
1778
|
+
return /* @__PURE__ */ jsxs(
|
|
1779
|
+
Container,
|
|
1780
|
+
{
|
|
1781
|
+
ref: container,
|
|
1782
|
+
className: clsx15(CardCollection_module_default["card-collection"], CardCollection_module_default[variant], className),
|
|
1783
|
+
children: [
|
|
1784
|
+
/* @__PURE__ */ jsxs("div", { className: CardCollection_module_default.content, children: [
|
|
1785
|
+
titleNode && /* @__PURE__ */ jsx("h2", { children: titleNode }),
|
|
1786
|
+
subtitleNode && /* @__PURE__ */ jsx("div", { className: "subheading", children: subtitleNode })
|
|
1787
|
+
] }),
|
|
1788
|
+
/* @__PURE__ */ jsx("div", { className: CardCollection_module_default.wrapper, children: /* @__PURE__ */ jsxs("div", { className: clsx15(CardCollection_module_default.cardWrapper, { [CardCollection_module_default["is-expanded"]]: isExpanded }), children: [
|
|
1789
|
+
visibleCards.map((card, key) => /* @__PURE__ */ jsx(Card2, __spreadValues({ className: CardCollection_module_default.card, variant: theme }, card), key)),
|
|
1790
|
+
isExamCard && hiddenCards.length > 0 && /* @__PURE__ */ jsx("div", { ref: revealWrapper, className: CardCollection_module_default["reveal-wrapper"], children: /* @__PURE__ */ jsx("div", { className: CardCollection_module_default["reveal-inner"], children: hiddenCards.map((card, key) => /* @__PURE__ */ jsx(
|
|
1791
|
+
Card2,
|
|
1792
|
+
__spreadValues({
|
|
1793
|
+
ref: extraCard,
|
|
1794
|
+
className: CardCollection_module_default.card,
|
|
1795
|
+
variant: theme
|
|
1796
|
+
}, card),
|
|
1797
|
+
key
|
|
1798
|
+
)) }) }),
|
|
1799
|
+
isExamCard && !isExpanded && ctaLabel && /* @__PURE__ */ jsx(
|
|
1800
|
+
Button,
|
|
1801
|
+
{
|
|
1802
|
+
variant: "secondary",
|
|
1803
|
+
icon: "downChevronBlack",
|
|
1804
|
+
className: CardCollection_module_default.cta,
|
|
1805
|
+
onClick: handleShowMore,
|
|
1806
|
+
children: ctaLabel
|
|
1473
1807
|
}
|
|
1474
1808
|
)
|
|
1475
1809
|
] }) })
|
|
@@ -1552,7 +1886,7 @@ var ContactModule = ({
|
|
|
1552
1886
|
},
|
|
1553
1887
|
{ scope: containerRef, dependencies: [blurred, animateBlur] }
|
|
1554
1888
|
);
|
|
1555
|
-
return /* @__PURE__ */ jsxs("div", { ref: containerRef, className:
|
|
1889
|
+
return /* @__PURE__ */ jsxs("div", { ref: containerRef, className: clsx15(ContactModule_module_default["contact-module"], className), children: [
|
|
1556
1890
|
blurred && /* @__PURE__ */ jsx(
|
|
1557
1891
|
"div",
|
|
1558
1892
|
{
|
|
@@ -1567,8 +1901,8 @@ var ContactModule = ({
|
|
|
1567
1901
|
/* @__PURE__ */ jsxs(Container, { className: ContactModule_module_default.container, children: [
|
|
1568
1902
|
/* @__PURE__ */ jsxs("div", { className: ContactModule_module_default.wrapper, children: [
|
|
1569
1903
|
/* @__PURE__ */ jsxs("div", { className: ContactModule_module_default.content, children: [
|
|
1570
|
-
titleNode && /* @__PURE__ */ jsx("div", { className:
|
|
1571
|
-
subtitleNode && /* @__PURE__ */ jsx("div", { className:
|
|
1904
|
+
titleNode && /* @__PURE__ */ jsx("div", { className: clsx15(ContactModule_module_default.title, "h1"), children: titleNode }),
|
|
1905
|
+
subtitleNode && /* @__PURE__ */ jsx("div", { className: clsx15(ContactModule_module_default.subtitle, "subheading"), children: subtitleNode })
|
|
1572
1906
|
] }),
|
|
1573
1907
|
/* @__PURE__ */ jsx("div", { className: ContactModule_module_default["cta-wrapper"], children: ctas == null ? void 0 : ctas.map((cta, key) => /* @__PURE__ */ jsx(
|
|
1574
1908
|
Button,
|
|
@@ -1629,7 +1963,7 @@ var Footer = ({
|
|
|
1629
1963
|
disclaimer: FooterDisclaimer
|
|
1630
1964
|
});
|
|
1631
1965
|
const titleNode = (_a = slots.disclaimer) != null ? _a : disclaimer;
|
|
1632
|
-
return /* @__PURE__ */ jsx("footer", { className:
|
|
1966
|
+
return /* @__PURE__ */ jsx("footer", { className: clsx15(Footer_module_default.footer, className), children: /* @__PURE__ */ jsxs(Container, { className: Footer_module_default.container, children: [
|
|
1633
1967
|
/* @__PURE__ */ jsxs("div", { className: Footer_module_default.bottom, children: [
|
|
1634
1968
|
/* @__PURE__ */ jsxs("div", { className: Footer_module_default["bottom-left"], children: [
|
|
1635
1969
|
supporters.length > 0 && /* @__PURE__ */ jsx("div", { className: Footer_module_default.supporters, children: /* @__PURE__ */ jsx("div", { className: Footer_module_default["supporters-logos"], children: supporters.map(
|
|
@@ -1645,7 +1979,7 @@ var Footer = ({
|
|
|
1645
1979
|
index
|
|
1646
1980
|
) : /* @__PURE__ */ jsx("div", { className: Footer_module_default["supporter-link-primary"], children: /* @__PURE__ */ jsx(Picture, __spreadValues({}, supporter.image)) }, index)
|
|
1647
1981
|
) }) }),
|
|
1648
|
-
titleNode && /* @__PURE__ */ jsx("div", { className:
|
|
1982
|
+
titleNode && /* @__PURE__ */ jsx("div", { className: clsx15(Footer_module_default.disclaimer, "p"), children: titleNode }),
|
|
1649
1983
|
copyright && /* @__PURE__ */ jsx("p", { className: Footer_module_default.copyright, children: copyright })
|
|
1650
1984
|
] }),
|
|
1651
1985
|
columns.length > 0 && /* @__PURE__ */ jsx("nav", { className: Footer_module_default["bottom-right"], children: columns.map((column, colIndex) => /* @__PURE__ */ jsx("ul", { className: Footer_module_default["nav-list"], children: column.map((link) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
|
|
@@ -1661,6 +1995,23 @@ var Footer = ({
|
|
|
1661
1995
|
children
|
|
1662
1996
|
] }) });
|
|
1663
1997
|
};
|
|
1998
|
+
|
|
1999
|
+
// src/components/LogoBar/LogoBar.module.scss
|
|
2000
|
+
var LogoBar_module_default = {
|
|
2001
|
+
logoBar: "LogoBar_module_logoBar",
|
|
2002
|
+
logoWrapper: "LogoBar_module_logoWrapper",
|
|
2003
|
+
logo: "LogoBar_module_logo",
|
|
2004
|
+
logoHover: "LogoBar_module_logoHover"
|
|
2005
|
+
};
|
|
2006
|
+
var LogoBar = ({ className, items }) => {
|
|
2007
|
+
if (!items || items.length === 0) return null;
|
|
2008
|
+
return /* @__PURE__ */ jsx("div", { className: clsx15(LogoBar_module_default.logoBar, className), children: items.map((item, key) => {
|
|
2009
|
+
return /* @__PURE__ */ jsx(Anchor, { href: item.url, isExternal: item.isExternal, children: /* @__PURE__ */ jsxs("div", { className: LogoBar_module_default.logoWrapper, children: [
|
|
2010
|
+
item.logo && /* @__PURE__ */ jsx(Picture, __spreadValues({ className: LogoBar_module_default.logo }, item.logo)),
|
|
2011
|
+
item.hoverLogo && /* @__PURE__ */ jsx(Picture, __spreadValues({ className: LogoBar_module_default.logoHover }, item.hoverLogo))
|
|
2012
|
+
] }) }, key);
|
|
2013
|
+
}) });
|
|
2014
|
+
};
|
|
1664
2015
|
var Text = (_a) => {
|
|
1665
2016
|
var _b = _a, { tag = "p", promoteToH1 = false, ref, children } = _b, props = __objRest(_b, ["tag", "promoteToH1", "ref", "children"]);
|
|
1666
2017
|
const Component = promoteToH1 ? "h1" : tag;
|
|
@@ -1726,7 +2077,7 @@ var HeroBanner = ({
|
|
|
1726
2077
|
});
|
|
1727
2078
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
1728
2079
|
const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
|
|
1729
|
-
return /* @__PURE__ */ jsxs("div", { className:
|
|
2080
|
+
return /* @__PURE__ */ jsxs("div", { className: clsx15(HeroBanner_module_default.heroBanner, HeroBanner_module_default[variant], className), children: [
|
|
1730
2081
|
/* @__PURE__ */ jsxs("div", { className: HeroBanner_module_default.container, children: [
|
|
1731
2082
|
/* @__PURE__ */ jsxs("div", { className: HeroBanner_module_default.banner, children: [
|
|
1732
2083
|
(titleNode || subtitleNode) && /* @__PURE__ */ jsxs("div", { className: HeroBanner_module_default.text, children: [
|
|
@@ -1736,7 +2087,7 @@ var HeroBanner = ({
|
|
|
1736
2087
|
{
|
|
1737
2088
|
tag: "h2",
|
|
1738
2089
|
promoteToH1,
|
|
1739
|
-
className:
|
|
2090
|
+
className: clsx15(HeroBanner_module_default.title, vBannerPodcast ? "h3" : "h1"),
|
|
1740
2091
|
children: titleNode
|
|
1741
2092
|
}
|
|
1742
2093
|
),
|
|
@@ -1745,7 +2096,7 @@ var HeroBanner = ({
|
|
|
1745
2096
|
{
|
|
1746
2097
|
tag: "div",
|
|
1747
2098
|
promoteToH1: promoteToH1 && !titleNode,
|
|
1748
|
-
className:
|
|
2099
|
+
className: clsx15(HeroBanner_module_default.subtitle, "subheading"),
|
|
1749
2100
|
children: subtitleNode
|
|
1750
2101
|
}
|
|
1751
2102
|
)
|
|
@@ -1822,7 +2173,7 @@ var HeroBannerCarousel = ({
|
|
|
1822
2173
|
const [swiperInstance, setSwiperInstance] = useState(null);
|
|
1823
2174
|
const [activeIndex, setActiveIndex] = useState(0);
|
|
1824
2175
|
if (!items.length) return null;
|
|
1825
|
-
return /* @__PURE__ */ jsx("div", { className:
|
|
2176
|
+
return /* @__PURE__ */ jsx("div", { className: clsx15(HeroBannerCarousel_module_default.heroBannerCarousel, className), children: /* @__PURE__ */ jsxs("div", { className: HeroBannerCarousel_module_default.inner, children: [
|
|
1826
2177
|
/* @__PURE__ */ jsx("div", { className: HeroBannerCarousel_module_default.swiperContainer, children: /* @__PURE__ */ jsx(
|
|
1827
2178
|
Swiper,
|
|
1828
2179
|
{
|
|
@@ -1869,7 +2220,7 @@ var HeroBannerCarousel = ({
|
|
|
1869
2220
|
/* @__PURE__ */ jsx("div", { className: HeroBannerCarousel_module_default.pagination, children: items.map((_, index) => /* @__PURE__ */ jsx(
|
|
1870
2221
|
"button",
|
|
1871
2222
|
{
|
|
1872
|
-
className:
|
|
2223
|
+
className: clsx15(HeroBannerCarousel_module_default.dot, index === activeIndex && HeroBannerCarousel_module_default.dotActive),
|
|
1873
2224
|
onClick: () => swiperInstance == null ? void 0 : swiperInstance.slideTo(index),
|
|
1874
2225
|
"aria-label": `Go to slide ${index + 1}`
|
|
1875
2226
|
},
|
|
@@ -1949,7 +2300,7 @@ var AccordionItem = ({
|
|
|
1949
2300
|
return /* @__PURE__ */ jsxs(
|
|
1950
2301
|
"div",
|
|
1951
2302
|
{
|
|
1952
|
-
className:
|
|
2303
|
+
className: clsx15(
|
|
1953
2304
|
Accordion_module_default.accordionItem,
|
|
1954
2305
|
{
|
|
1955
2306
|
[Accordion_module_default.accordionItemOpen]: isOpen
|
|
@@ -1960,18 +2311,18 @@ var AccordionItem = ({
|
|
|
1960
2311
|
/* @__PURE__ */ jsxs(
|
|
1961
2312
|
"button",
|
|
1962
2313
|
{
|
|
1963
|
-
className:
|
|
2314
|
+
className: clsx15(Accordion_module_default.accordionHeader, {
|
|
1964
2315
|
[Accordion_module_default.accordionHeaderOpen]: isOpen
|
|
1965
2316
|
}),
|
|
1966
2317
|
onClick: handleToggle,
|
|
1967
2318
|
"aria-expanded": isOpen,
|
|
1968
2319
|
"aria-label": `Toggle ${title}`,
|
|
1969
2320
|
children: [
|
|
1970
|
-
/* @__PURE__ */ jsx("div", { className: Accordion_module_default.accordionHeaderLeft, children: /* @__PURE__ */ jsx("span", { className:
|
|
2321
|
+
/* @__PURE__ */ jsx("div", { className: Accordion_module_default.accordionHeaderLeft, children: /* @__PURE__ */ jsx("span", { className: clsx15("body", Accordion_module_default.accordionTitle), children: title }) }),
|
|
1971
2322
|
/* @__PURE__ */ jsx(
|
|
1972
2323
|
"span",
|
|
1973
2324
|
{
|
|
1974
|
-
className:
|
|
2325
|
+
className: clsx15(Accordion_module_default.accordionChevron, {
|
|
1975
2326
|
[Accordion_module_default.accordionChevronOpen]: isOpen
|
|
1976
2327
|
}),
|
|
1977
2328
|
children: isOpen ? /* @__PURE__ */ jsx(Icon, { type: "filledChevronUpBlack", size: 40 }) : /* @__PURE__ */ jsx(Icon, { type: "circleChevronDown", size: 40 })
|
|
@@ -2023,7 +2374,7 @@ var Accordion = ({
|
|
|
2023
2374
|
if (items.length === 0) {
|
|
2024
2375
|
return null;
|
|
2025
2376
|
}
|
|
2026
|
-
return /* @__PURE__ */ jsx("div", { className:
|
|
2377
|
+
return /* @__PURE__ */ jsx("div", { className: clsx15(Accordion_module_default.accordion, className), children: items.map((item) => /* @__PURE__ */ jsx(
|
|
2027
2378
|
AccordionItem,
|
|
2028
2379
|
{
|
|
2029
2380
|
id: item.id,
|
|
@@ -2113,7 +2464,7 @@ var InternalBrandsTab = (props) => {
|
|
|
2113
2464
|
};
|
|
2114
2465
|
})) || [];
|
|
2115
2466
|
}, [tabs]);
|
|
2116
|
-
return /* @__PURE__ */ jsxs(Container, { className:
|
|
2467
|
+
return /* @__PURE__ */ jsxs(Container, { className: clsx15(InternalBrandsTab_module_default.internalBrandsTab, className), children: [
|
|
2117
2468
|
/* @__PURE__ */ jsxs("div", { className: InternalBrandsTab_module_default.textsContainer, children: [
|
|
2118
2469
|
title && /* @__PURE__ */ jsx(Text, { tag: "h2", className: InternalBrandsTab_module_default.title, children: title }),
|
|
2119
2470
|
subTitle && /* @__PURE__ */ jsx("div", { className: InternalBrandsTab_module_default.subTitle, children: subTitle })
|
|
@@ -2129,7 +2480,7 @@ var InternalBrandsTab = (props) => {
|
|
|
2129
2480
|
},
|
|
2130
2481
|
index
|
|
2131
2482
|
)) }),
|
|
2132
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
2483
|
+
/* @__PURE__ */ jsx("div", { className: clsx15(InternalBrandsTab_module_default.contentArea), children: ((_a = tabs == null ? void 0 : tabs[activeIndex]) == null ? void 0 : _a.topContent) && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2133
2484
|
/* @__PURE__ */ jsxs("div", { className: InternalBrandsTab_module_default.topContent, children: [
|
|
2134
2485
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
2135
2486
|
((_b = tabs[activeIndex].topContent) == null ? void 0 : _b.title) && /* @__PURE__ */ jsx("p", { className: InternalBrandsTab_module_default.topContentTitle, children: (_c = tabs[activeIndex].topContent) == null ? void 0 : _c.title }),
|
|
@@ -2220,17 +2571,17 @@ var MiniBanner = ({
|
|
|
2220
2571
|
const pretitleNode = (_a = slots.pretitle) != null ? _a : pretitle;
|
|
2221
2572
|
const titleNode = (_b = slots.title) != null ? _b : title;
|
|
2222
2573
|
const subtitleNode = (_c = slots.subtitle) != null ? _c : subtitle;
|
|
2223
|
-
return /* @__PURE__ */ jsxs("div", { className:
|
|
2574
|
+
return /* @__PURE__ */ jsxs("div", { className: clsx15(MiniBanner_module_default.minibanner, MiniBanner_module_default[variant], className), children: [
|
|
2224
2575
|
((background == null ? void 0 : background.src) || ((_d = background == null ? void 0 : background.desktop) == null ? void 0 : _d.src) || ((_e = background == null ? void 0 : background.mobile) == null ? void 0 : _e.src)) && /* @__PURE__ */ jsx(Picture, __spreadValues({ className: MiniBanner_module_default.background }, background)),
|
|
2225
2576
|
/* @__PURE__ */ jsxs("div", { className: MiniBanner_module_default.wrapper, children: [
|
|
2226
2577
|
/* @__PURE__ */ jsxs("div", { className: MiniBanner_module_default.textContainer, children: [
|
|
2227
2578
|
(logo == null ? void 0 : logo.src) && /* @__PURE__ */ jsx(Picture, __spreadValues({ className: MiniBanner_module_default.logo }, logo)),
|
|
2228
|
-
pretitleNode && /* @__PURE__ */ jsx("div", { className:
|
|
2229
|
-
/* @__PURE__ */ jsx("div", { className: MiniBanner_module_default.headingWrapper, children: titleNode && /* @__PURE__ */ jsx("div", { className:
|
|
2579
|
+
pretitleNode && /* @__PURE__ */ jsx("div", { className: clsx15(MiniBanner_module_default.pretitle, "small"), children: pretitleNode }),
|
|
2580
|
+
/* @__PURE__ */ jsx("div", { className: MiniBanner_module_default.headingWrapper, children: titleNode && /* @__PURE__ */ jsx("div", { className: clsx15(MiniBanner_module_default.title, isMiniBannerTextLeft ? "h1" : "h4"), children: titleNode }) }),
|
|
2230
2581
|
subtitleNode && /* @__PURE__ */ jsx(
|
|
2231
2582
|
"div",
|
|
2232
2583
|
{
|
|
2233
|
-
className:
|
|
2584
|
+
className: clsx15(MiniBanner_module_default.title, {
|
|
2234
2585
|
subheading: isMiniBannerNoBG || isMiniBannerTextLeft,
|
|
2235
2586
|
h1: !isMiniBannerNoBG && !isMiniBannerTextLeft
|
|
2236
2587
|
}),
|
|
@@ -2301,14 +2652,14 @@ var MiniSectionCta = ({
|
|
|
2301
2652
|
return /* @__PURE__ */ jsx(
|
|
2302
2653
|
"div",
|
|
2303
2654
|
{
|
|
2304
|
-
className:
|
|
2655
|
+
className: clsx15(MiniSectionCta_module_default.miniSectionCta, MiniSectionCta_module_default[variant], theme && MiniSectionCta_module_default[theme], className),
|
|
2305
2656
|
children: /* @__PURE__ */ jsx(Container, { children: /* @__PURE__ */ jsxs("div", { className: MiniSectionCta_module_default.wrapper, children: [
|
|
2306
2657
|
/* @__PURE__ */ jsxs("div", { className: MiniSectionCta_module_default.col, children: [
|
|
2307
2658
|
titleNode && /* @__PURE__ */ jsx("h2", { className: variant === "BgColorBlack" || variant === "BgColorGrey" ? "h3" : "h2", children: titleNode }),
|
|
2308
2659
|
subtitleNode && /* @__PURE__ */ jsx(
|
|
2309
2660
|
"div",
|
|
2310
2661
|
{
|
|
2311
|
-
className:
|
|
2662
|
+
className: clsx15(MiniSectionCta_module_default.subtitle, variant === "infoCallout" ? "h4" : "subheading"),
|
|
2312
2663
|
children: subtitleNode
|
|
2313
2664
|
}
|
|
2314
2665
|
)
|
|
@@ -2373,7 +2724,7 @@ var PracticePathCards = ({
|
|
|
2373
2724
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
2374
2725
|
const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
|
|
2375
2726
|
const footerNode = (_c = slots.footer) != null ? _c : footer;
|
|
2376
|
-
return /* @__PURE__ */ jsx("div", { className:
|
|
2727
|
+
return /* @__PURE__ */ jsx("div", { className: clsx15(PracticePathCards_module_default["practice-path-cards"], className), children: /* @__PURE__ */ jsxs(Container, { className: PracticePathCards_module_default.container, children: [
|
|
2377
2728
|
/* @__PURE__ */ jsxs("div", { className: PracticePathCards_module_default.wrapper, children: [
|
|
2378
2729
|
/* @__PURE__ */ jsxs("div", { className: PracticePathCards_module_default.content, children: [
|
|
2379
2730
|
titleNode && /* @__PURE__ */ jsx("h2", { children: titleNode }),
|
|
@@ -2427,8 +2778,8 @@ var Teaser5050With3Text = ({
|
|
|
2427
2778
|
title: Teaser5050With3TextTitle
|
|
2428
2779
|
});
|
|
2429
2780
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
2430
|
-
return /* @__PURE__ */ jsx("div", { className:
|
|
2431
|
-
titleNode && /* @__PURE__ */ jsx("div", { className:
|
|
2781
|
+
return /* @__PURE__ */ jsx("div", { className: clsx15(Teaser5050With3Text_module_default["teaser5050-3text"], Teaser5050With3Text_module_default[variant], className), children: /* @__PURE__ */ jsxs(Container, { className: Teaser5050With3Text_module_default.container, children: [
|
|
2782
|
+
titleNode && /* @__PURE__ */ jsx("div", { className: clsx15(Teaser5050With3Text_module_default.title, "h3"), children: titleNode }),
|
|
2432
2783
|
/* @__PURE__ */ jsxs("div", { className: Teaser5050With3Text_module_default.content, children: [
|
|
2433
2784
|
/* @__PURE__ */ jsx("div", { className: Teaser5050With3Text_module_default.cards, children: cards == null ? void 0 : cards.map((card, key) => /* @__PURE__ */ jsx(InfoCard2, __spreadValues({}, card), key)) }),
|
|
2434
2785
|
image && /* @__PURE__ */ jsx(Picture, __spreadValues({ className: Teaser5050With3Text_module_default.image }, image))
|
|
@@ -2478,12 +2829,12 @@ var Teaser5050WithCta = ({
|
|
|
2478
2829
|
return /* @__PURE__ */ jsx(
|
|
2479
2830
|
"div",
|
|
2480
2831
|
{
|
|
2481
|
-
className:
|
|
2832
|
+
className: clsx15(Teaser5050WithCta_module_default.teaser5050, Teaser5050WithCta_module_default[variant], className),
|
|
2482
2833
|
style: { backgroundColor: bgColor ? bgColor : "#ffffff" },
|
|
2483
2834
|
children: /* @__PURE__ */ jsxs(Container, { className: Teaser5050WithCta_module_default.container, children: [
|
|
2484
2835
|
/* @__PURE__ */ jsxs("div", { className: Teaser5050WithCta_module_default.wrapper, children: [
|
|
2485
2836
|
/* @__PURE__ */ jsxs("div", { className: Teaser5050WithCta_module_default.content, children: [
|
|
2486
|
-
titleNode && /* @__PURE__ */ jsx("div", { className:
|
|
2837
|
+
titleNode && /* @__PURE__ */ jsx("div", { className: clsx15(Teaser5050WithCta_module_default.title, "h3"), children: titleNode }),
|
|
2487
2838
|
subtitleNode && /* @__PURE__ */ jsx("div", { className: "subheading", children: subtitleNode })
|
|
2488
2839
|
] }),
|
|
2489
2840
|
(ctas == null ? void 0 : ctas.length) && /* @__PURE__ */ jsx("div", { className: Teaser5050WithCta_module_default.ctaWrapper, children: ctas.map((cta, key) => /* @__PURE__ */ jsx(
|
|
@@ -2511,110 +2862,10 @@ var Teaser5050WithCta2 = Object.assign(Teaser5050WithCta, {
|
|
|
2511
2862
|
Subtitle: Teaser5050WithCtaSubtitle
|
|
2512
2863
|
});
|
|
2513
2864
|
|
|
2514
|
-
// src/components/
|
|
2515
|
-
var
|
|
2516
|
-
|
|
2517
|
-
"event-card-content": "UpcomingEventCard_module_event-card-content",
|
|
2518
|
-
"event-card-image": "UpcomingEventCard_module_event-card-image",
|
|
2519
|
-
"event-card-text-content": "UpcomingEventCard_module_event-card-text-content",
|
|
2520
|
-
date: "UpcomingEventCard_module_date",
|
|
2521
|
-
location: "UpcomingEventCard_module_location",
|
|
2522
|
-
description: "UpcomingEventCard_module_description",
|
|
2523
|
-
"event-card-footer": "UpcomingEventCard_module_event-card-footer",
|
|
2524
|
-
horizontal: "UpcomingEventCard_module_horizontal",
|
|
2525
|
-
"event-card-show-image": "UpcomingEventCard_module_event-card-show-image",
|
|
2526
|
-
"event-card-cta": "UpcomingEventCard_module_event-card-cta",
|
|
2527
|
-
hidden: "UpcomingEventCard_module_hidden",
|
|
2528
|
-
"cta-without-image": "UpcomingEventCard_module_cta-without-image",
|
|
2529
|
-
vertical: "UpcomingEventCard_module_vertical"
|
|
2865
|
+
// src/components/Carousel/Carousel.module.scss
|
|
2866
|
+
var Carousel_module_default = {
|
|
2867
|
+
carousel: "Carousel_module_carousel"
|
|
2530
2868
|
};
|
|
2531
|
-
var UpcomingEventCard = ({
|
|
2532
|
-
className,
|
|
2533
|
-
image,
|
|
2534
|
-
date,
|
|
2535
|
-
title,
|
|
2536
|
-
location,
|
|
2537
|
-
description,
|
|
2538
|
-
cta,
|
|
2539
|
-
direction = "horizontal",
|
|
2540
|
-
showImage = true
|
|
2541
|
-
}) => {
|
|
2542
|
-
const { is } = useViewPort_default();
|
|
2543
|
-
const hasCtaWithoutImage = cta && cta.url && !image;
|
|
2544
|
-
const hasCTAandImage = Boolean(cta && cta.url && image);
|
|
2545
|
-
const hasImage = Boolean(image);
|
|
2546
|
-
const isBelowMobile = is("mobile-l", "below");
|
|
2547
|
-
return /* @__PURE__ */ jsxs(
|
|
2548
|
-
"article",
|
|
2549
|
-
{
|
|
2550
|
-
className: clsx25(
|
|
2551
|
-
"card",
|
|
2552
|
-
UpcomingEventCard_module_default["event-card"],
|
|
2553
|
-
UpcomingEventCard_module_default[direction],
|
|
2554
|
-
hasCtaWithoutImage && UpcomingEventCard_module_default["cta-without-image"],
|
|
2555
|
-
className
|
|
2556
|
-
),
|
|
2557
|
-
children: [
|
|
2558
|
-
/* @__PURE__ */ jsxs("div", { className: clsx25("card-content", UpcomingEventCard_module_default["event-card-content"]), children: [
|
|
2559
|
-
showImage && image && /* @__PURE__ */ jsx(Picture, __spreadProps(__spreadValues({}, image), { className: clsx25("card-image", UpcomingEventCard_module_default["event-card-image"]) })),
|
|
2560
|
-
/* @__PURE__ */ jsxs(
|
|
2561
|
-
"div",
|
|
2562
|
-
{
|
|
2563
|
-
className: clsx25(
|
|
2564
|
-
"card-text-content",
|
|
2565
|
-
UpcomingEventCard_module_default["event-card-text-content"],
|
|
2566
|
-
(!showImage || !hasImage) && UpcomingEventCard_module_default["event-card-show-image"]
|
|
2567
|
-
),
|
|
2568
|
-
children: [
|
|
2569
|
-
/* @__PURE__ */ jsx("span", { className: UpcomingEventCard_module_default.date, children: date }),
|
|
2570
|
-
title && /* @__PURE__ */ jsx("h3", { className: clsx25("card-text-title"), children: title }),
|
|
2571
|
-
location && /* @__PURE__ */ jsx("span", { className: UpcomingEventCard_module_default.location, children: location }),
|
|
2572
|
-
description && /* @__PURE__ */ jsx("div", { className: clsx25("card-text-description", UpcomingEventCard_module_default.description), children: description }),
|
|
2573
|
-
cta && cta.url && /* @__PURE__ */ jsx(
|
|
2574
|
-
Button,
|
|
2575
|
-
{
|
|
2576
|
-
variant: "secondary",
|
|
2577
|
-
className: clsx25(
|
|
2578
|
-
"card-cta",
|
|
2579
|
-
UpcomingEventCard_module_default["event-card-cta"],
|
|
2580
|
-
!hasCTAandImage && UpcomingEventCard_module_default.hidden
|
|
2581
|
-
),
|
|
2582
|
-
fullWidth: isBelowMobile,
|
|
2583
|
-
href: cta.url,
|
|
2584
|
-
icon: cta.icon,
|
|
2585
|
-
isExternal: cta == null ? void 0 : cta.isExternal,
|
|
2586
|
-
children: cta.label
|
|
2587
|
-
}
|
|
2588
|
-
)
|
|
2589
|
-
]
|
|
2590
|
-
}
|
|
2591
|
-
)
|
|
2592
|
-
] }),
|
|
2593
|
-
cta && cta.url && /* @__PURE__ */ jsx(
|
|
2594
|
-
"div",
|
|
2595
|
-
{
|
|
2596
|
-
className: clsx25("card-footer", UpcomingEventCard_module_default["event-card-footer"], hasImage && UpcomingEventCard_module_default.hidden),
|
|
2597
|
-
children: /* @__PURE__ */ jsx(
|
|
2598
|
-
Button,
|
|
2599
|
-
{
|
|
2600
|
-
variant: "secondary",
|
|
2601
|
-
className: clsx25("card-cta", UpcomingEventCard_module_default["event-card-cta"]),
|
|
2602
|
-
fullWidth: isBelowMobile,
|
|
2603
|
-
href: cta.url,
|
|
2604
|
-
icon: cta.icon,
|
|
2605
|
-
isExternal: cta == null ? void 0 : cta.isExternal,
|
|
2606
|
-
children: cta.label
|
|
2607
|
-
}
|
|
2608
|
-
)
|
|
2609
|
-
}
|
|
2610
|
-
)
|
|
2611
|
-
]
|
|
2612
|
-
}
|
|
2613
|
-
);
|
|
2614
|
-
};
|
|
2615
|
-
|
|
2616
|
-
// src/components/Carousel/Carousel.module.scss
|
|
2617
|
-
var Carousel_module_default = {};
|
|
2618
2869
|
var Carousel = (_a) => {
|
|
2619
2870
|
var _b = _a, {
|
|
2620
2871
|
slides,
|
|
@@ -2635,7 +2886,7 @@ var Carousel = (_a) => {
|
|
|
2635
2886
|
},
|
|
2636
2887
|
role: "region",
|
|
2637
2888
|
"aria-label": ariaLabel,
|
|
2638
|
-
className:
|
|
2889
|
+
className: clsx15(Carousel_module_default.carousel, className),
|
|
2639
2890
|
spaceBetween: 0,
|
|
2640
2891
|
slidesPerView: "auto",
|
|
2641
2892
|
modules: [FreeMode, A11y],
|
|
@@ -2645,7 +2896,7 @@ var Carousel = (_a) => {
|
|
|
2645
2896
|
children: slides.map((slide, index) => /* @__PURE__ */ jsx(
|
|
2646
2897
|
SwiperSlide,
|
|
2647
2898
|
{
|
|
2648
|
-
className:
|
|
2899
|
+
className: clsx15(Carousel_module_default["carousel-item"], props.slideClass),
|
|
2649
2900
|
children: slide
|
|
2650
2901
|
},
|
|
2651
2902
|
index
|
|
@@ -2695,13 +2946,13 @@ var EventList = ({
|
|
|
2695
2946
|
return /* @__PURE__ */ jsx(
|
|
2696
2947
|
"div",
|
|
2697
2948
|
{
|
|
2698
|
-
className:
|
|
2949
|
+
className: clsx15("event-list-module", EventList_module_default["event-list-module"], className),
|
|
2699
2950
|
style: {
|
|
2700
2951
|
backgroundColor
|
|
2701
2952
|
},
|
|
2702
|
-
children: /* @__PURE__ */ jsxs(Container, { className:
|
|
2953
|
+
children: /* @__PURE__ */ jsxs(Container, { className: clsx15(EventList_module_default["event-list-container"]), children: [
|
|
2703
2954
|
/* @__PURE__ */ jsxs("div", { className: EventList_module_default["event-list-header-container"], children: [
|
|
2704
|
-
titleNode && /* @__PURE__ */ jsx("h2", { className:
|
|
2955
|
+
titleNode && /* @__PURE__ */ jsx("h2", { className: clsx15(EventList_module_default["event-list-title"]), children: titleNode }),
|
|
2705
2956
|
cta && cta.url && /* @__PURE__ */ jsx(
|
|
2706
2957
|
Button,
|
|
2707
2958
|
{
|
|
@@ -2718,7 +2969,7 @@ var EventList = ({
|
|
|
2718
2969
|
Carousel,
|
|
2719
2970
|
{
|
|
2720
2971
|
"aria-label": "Upcoming events",
|
|
2721
|
-
wrapperClass:
|
|
2972
|
+
wrapperClass: clsx15(EventList_module_default["carousel-wrapper"], EventList_module_default[variant]),
|
|
2722
2973
|
slideClass: EventList_module_default["carousel-list-item"],
|
|
2723
2974
|
spaceBetween: 16,
|
|
2724
2975
|
slides: items.map((item) => {
|
|
@@ -2726,7 +2977,7 @@ var EventList = ({
|
|
|
2726
2977
|
return /* @__PURE__ */ jsx(
|
|
2727
2978
|
UpcomingEventCard,
|
|
2728
2979
|
__spreadValues({
|
|
2729
|
-
className:
|
|
2980
|
+
className: clsx15(EventList_module_default["event-card"]),
|
|
2730
2981
|
direction: "vertical",
|
|
2731
2982
|
showImage: false
|
|
2732
2983
|
}, item),
|
|
@@ -2739,17 +2990,17 @@ var EventList = ({
|
|
|
2739
2990
|
"ul",
|
|
2740
2991
|
{
|
|
2741
2992
|
"aria-label": "Upcoming events",
|
|
2742
|
-
className:
|
|
2993
|
+
className: clsx15(EventList_module_default["event-list-wrapper"], EventList_module_default["horizontal"], EventList_module_default[variant]),
|
|
2743
2994
|
children: items == null ? void 0 : items.map((item, index) => {
|
|
2744
2995
|
var _a2, _b, _c;
|
|
2745
2996
|
return /* @__PURE__ */ jsx(
|
|
2746
2997
|
"li",
|
|
2747
2998
|
{
|
|
2748
|
-
className:
|
|
2999
|
+
className: clsx15(EventList_module_default["card-list-item"]),
|
|
2749
3000
|
children: /* @__PURE__ */ jsx(
|
|
2750
3001
|
UpcomingEventCard,
|
|
2751
3002
|
__spreadProps(__spreadValues({}, item), {
|
|
2752
|
-
className:
|
|
3003
|
+
className: clsx15(EventList_module_default["card-item"]),
|
|
2753
3004
|
showImage: false,
|
|
2754
3005
|
direction: "vertical"
|
|
2755
3006
|
})
|
|
@@ -2764,7 +3015,7 @@ var EventList = ({
|
|
|
2764
3015
|
"ul",
|
|
2765
3016
|
{
|
|
2766
3017
|
"aria-label": "Upcoming events",
|
|
2767
|
-
className:
|
|
3018
|
+
className: clsx15(EventList_module_default["event-list-wrapper"], EventList_module_default[listDirection]),
|
|
2768
3019
|
children: items == null ? void 0 : items.map((item, index) => {
|
|
2769
3020
|
var _a2, _b, _c;
|
|
2770
3021
|
return /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(UpcomingEventCard, __spreadProps(__spreadValues({}, item), { direction: cardDirection })) }, (_c = (_b = (_a2 = item.title) != null ? _a2 : item.date) != null ? _b : item.location) != null ? _c : index);
|
|
@@ -2789,6 +3040,7 @@ var TextEvent_module_default = {
|
|
|
2789
3040
|
textEvent: "TextEvent_module_textEvent",
|
|
2790
3041
|
richText: "TextEvent_module_richText",
|
|
2791
3042
|
h4: "TextEvent_module_h4",
|
|
3043
|
+
h5: "TextEvent_module_h5",
|
|
2792
3044
|
subheading: "TextEvent_module_subheading",
|
|
2793
3045
|
body: "TextEvent_module_body",
|
|
2794
3046
|
small: "TextEvent_module_small",
|
|
@@ -2811,9 +3063,9 @@ var TextEvent = (props) => {
|
|
|
2811
3063
|
});
|
|
2812
3064
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
2813
3065
|
const richTextNode = (_b = slots.richText) != null ? _b : richText;
|
|
2814
|
-
return /* @__PURE__ */ jsxs(Container, { className:
|
|
3066
|
+
return /* @__PURE__ */ jsxs(Container, { className: clsx15(TextEvent_module_default.textEvent, className), children: [
|
|
2815
3067
|
/* @__PURE__ */ jsx(Text, { tag: "h2", className: TextEvent_module_default.title, children: titleNode }),
|
|
2816
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
3068
|
+
/* @__PURE__ */ jsx("div", { className: clsx15(TextEvent_module_default.richText, TextEvent_module_default[variant != null ? variant : ""]), children: richTextNode })
|
|
2817
3069
|
] });
|
|
2818
3070
|
};
|
|
2819
3071
|
|
|
@@ -2844,7 +3096,7 @@ var TextBody = (props) => {
|
|
|
2844
3096
|
});
|
|
2845
3097
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
2846
3098
|
const bodyNode = (_b = slots.body) != null ? _b : body;
|
|
2847
|
-
return /* @__PURE__ */ jsxs(Container, { className:
|
|
3099
|
+
return /* @__PURE__ */ jsxs(Container, { className: clsx15(TextBody_module_default.textBody, className), children: [
|
|
2848
3100
|
titleNode && /* @__PURE__ */ jsx(Text, { tag: "h2", className: TextBody_module_default.title, children: titleNode }),
|
|
2849
3101
|
/* @__PURE__ */ jsx("div", { className: TextBody_module_default.body, children: bodyNode })
|
|
2850
3102
|
] });
|
|
@@ -2887,7 +3139,7 @@ var TextCenterCtaInBottom = ({
|
|
|
2887
3139
|
});
|
|
2888
3140
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
2889
3141
|
const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
|
|
2890
|
-
return /* @__PURE__ */ jsx("div", { className:
|
|
3142
|
+
return /* @__PURE__ */ jsx("div", { className: clsx15(TextCenterCtaInBottom_module_default.textCenterCta, className), children: /* @__PURE__ */ jsxs(Container, { className: TextCenterCtaInBottom_module_default.container, children: [
|
|
2891
3143
|
/* @__PURE__ */ jsxs("div", { className: TextCenterCtaInBottom_module_default.content, children: [
|
|
2892
3144
|
titleNode && /* @__PURE__ */ jsx("div", { className: TextCenterCtaInBottom_module_default.title, children: titleNode }),
|
|
2893
3145
|
subtitleNode && /* @__PURE__ */ jsx("div", { className: TextCenterCtaInBottom_module_default.subtitle, children: subtitleNode })
|
|
@@ -2895,7 +3147,7 @@ var TextCenterCtaInBottom = ({
|
|
|
2895
3147
|
!!(ctas == null ? void 0 : ctas.length) && /* @__PURE__ */ jsx(
|
|
2896
3148
|
"div",
|
|
2897
3149
|
{
|
|
2898
|
-
className:
|
|
3150
|
+
className: clsx15(
|
|
2899
3151
|
TextCenterCtaInBottom_module_default.ctaWrapper,
|
|
2900
3152
|
ctas.every((cta) => !cta.label && cta.logo) && TextCenterCtaInBottom_module_default.iconOnly
|
|
2901
3153
|
),
|
|
@@ -2993,7 +3245,7 @@ var ResourcesGridList = ({
|
|
|
2993
3245
|
const safeCurrentPage = Math.min(currentPage, totalPages);
|
|
2994
3246
|
const pageStart = (safeCurrentPage - 1) * ITEMS_PER_PAGE;
|
|
2995
3247
|
const paginatedItems = displayedItems.slice(pageStart, pageStart + ITEMS_PER_PAGE);
|
|
2996
|
-
return /* @__PURE__ */ jsxs("div", { className:
|
|
3248
|
+
return /* @__PURE__ */ jsxs("div", { className: clsx15(ResourcesGridList_module_default.widget, className), children: [
|
|
2997
3249
|
/* @__PURE__ */ jsx(
|
|
2998
3250
|
FilterBar,
|
|
2999
3251
|
{
|
|
@@ -3012,7 +3264,7 @@ var ResourcesGridList = ({
|
|
|
3012
3264
|
isMobile && /* @__PURE__ */ jsxs(
|
|
3013
3265
|
"div",
|
|
3014
3266
|
{
|
|
3015
|
-
className:
|
|
3267
|
+
className: clsx15(
|
|
3016
3268
|
ResourcesGridList_module_default.mobileSidebarOverlay,
|
|
3017
3269
|
isSidebarOpen && ResourcesGridList_module_default.mobileSidebarOverlayOpen
|
|
3018
3270
|
),
|
|
@@ -3023,7 +3275,7 @@ var ResourcesGridList = ({
|
|
|
3023
3275
|
return /* @__PURE__ */ jsxs(
|
|
3024
3276
|
"li",
|
|
3025
3277
|
{
|
|
3026
|
-
className:
|
|
3278
|
+
className: clsx15(
|
|
3027
3279
|
ResourcesGridList_module_default.mobileSidebarItem,
|
|
3028
3280
|
i === selectedCategory && ResourcesGridList_module_default.active
|
|
3029
3281
|
),
|
|
@@ -3068,7 +3320,7 @@ var ResourcesGridList = ({
|
|
|
3068
3320
|
onSelect: handleSelectCategory
|
|
3069
3321
|
}
|
|
3070
3322
|
),
|
|
3071
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
3323
|
+
/* @__PURE__ */ jsx("div", { className: clsx15(ResourcesGridList_module_default.cardsArea, ResourcesGridList_module_default[view]), children: paginatedItems.map((item, i) => {
|
|
3072
3324
|
var _a2;
|
|
3073
3325
|
return /* @__PURE__ */ jsx(ResourceCardItem, { item, view }, (_a2 = item.title) != null ? _a2 : i);
|
|
3074
3326
|
}) })
|
|
@@ -3085,6 +3337,466 @@ var ResourcesGridList = ({
|
|
|
3085
3337
|
)
|
|
3086
3338
|
] });
|
|
3087
3339
|
};
|
|
3340
|
+
|
|
3341
|
+
// src/components/Grid/Grid.module.scss
|
|
3342
|
+
var Grid_module_default = {
|
|
3343
|
+
grid: "Grid_module_grid",
|
|
3344
|
+
"grid-item": "Grid_module_grid-item"
|
|
3345
|
+
};
|
|
3346
|
+
var Grid = ({
|
|
3347
|
+
children,
|
|
3348
|
+
columns,
|
|
3349
|
+
gap,
|
|
3350
|
+
className,
|
|
3351
|
+
as: Component = "div",
|
|
3352
|
+
role,
|
|
3353
|
+
ariaLabel,
|
|
3354
|
+
ariaLabelledBy
|
|
3355
|
+
}) => {
|
|
3356
|
+
return /* @__PURE__ */ jsx(
|
|
3357
|
+
Component,
|
|
3358
|
+
{
|
|
3359
|
+
className: clsx15("grid", Grid_module_default.grid, className),
|
|
3360
|
+
role,
|
|
3361
|
+
"aria-label": ariaLabel,
|
|
3362
|
+
"aria-labelledby": ariaLabelledBy,
|
|
3363
|
+
style: {
|
|
3364
|
+
"--grid-columns": columns,
|
|
3365
|
+
"--grid-gap": typeof gap === "number" ? `${gap}px` : gap
|
|
3366
|
+
},
|
|
3367
|
+
children
|
|
3368
|
+
}
|
|
3369
|
+
);
|
|
3370
|
+
};
|
|
3371
|
+
var GridItem = ({
|
|
3372
|
+
children,
|
|
3373
|
+
colSpan,
|
|
3374
|
+
rowSpan,
|
|
3375
|
+
className,
|
|
3376
|
+
as: Component = "div",
|
|
3377
|
+
role,
|
|
3378
|
+
ariaLabel,
|
|
3379
|
+
ariaLabelledBy
|
|
3380
|
+
}) => {
|
|
3381
|
+
return /* @__PURE__ */ jsx(
|
|
3382
|
+
Component,
|
|
3383
|
+
{
|
|
3384
|
+
className: clsx15("grid-item", Grid_module_default["grid-item"], className),
|
|
3385
|
+
role,
|
|
3386
|
+
"aria-label": ariaLabel,
|
|
3387
|
+
"aria-labelledby": ariaLabelledBy,
|
|
3388
|
+
style: {
|
|
3389
|
+
"--col-xl": colSpan == null ? void 0 : colSpan.xl,
|
|
3390
|
+
"--col-lg": colSpan == null ? void 0 : colSpan.lg,
|
|
3391
|
+
"--col-md": colSpan == null ? void 0 : colSpan.md,
|
|
3392
|
+
"--col-ml": colSpan == null ? void 0 : colSpan.ml,
|
|
3393
|
+
"--col-mm": colSpan == null ? void 0 : colSpan.mm,
|
|
3394
|
+
"--col-xs": colSpan == null ? void 0 : colSpan.xs,
|
|
3395
|
+
"--row-xl": rowSpan == null ? void 0 : rowSpan.xl,
|
|
3396
|
+
"--row-lg": rowSpan == null ? void 0 : rowSpan.lg,
|
|
3397
|
+
"--row-md": rowSpan == null ? void 0 : rowSpan.md,
|
|
3398
|
+
"--row-ml": rowSpan == null ? void 0 : rowSpan.ml,
|
|
3399
|
+
"--row-mm": rowSpan == null ? void 0 : rowSpan.mm,
|
|
3400
|
+
"--row-xs": rowSpan == null ? void 0 : rowSpan.xs
|
|
3401
|
+
},
|
|
3402
|
+
children
|
|
3403
|
+
}
|
|
3404
|
+
);
|
|
3405
|
+
};
|
|
3406
|
+
|
|
3407
|
+
// src/widgets/BlogCardGrid/BlogCardGrid.module.scss
|
|
3408
|
+
var BlogCardGrid_module_default = {
|
|
3409
|
+
"blog-card-grid": "BlogCardGrid_module_blog-card-grid",
|
|
3410
|
+
wrapper: "BlogCardGrid_module_wrapper"
|
|
3411
|
+
};
|
|
3412
|
+
var BlogCardGridTitle = ({ children }) => {
|
|
3413
|
+
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
3414
|
+
};
|
|
3415
|
+
var BlogCardGrid = ({
|
|
3416
|
+
title,
|
|
3417
|
+
items,
|
|
3418
|
+
backgroundColor,
|
|
3419
|
+
cta,
|
|
3420
|
+
className,
|
|
3421
|
+
hasContainer = true,
|
|
3422
|
+
gridProps,
|
|
3423
|
+
gridItemProps,
|
|
3424
|
+
renderLink,
|
|
3425
|
+
children
|
|
3426
|
+
}) => {
|
|
3427
|
+
var _a;
|
|
3428
|
+
const slots = resolveCompoundSlots(children, {
|
|
3429
|
+
title: BlogCardGridTitle
|
|
3430
|
+
});
|
|
3431
|
+
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
3432
|
+
const content = /* @__PURE__ */ jsxs("div", { className: clsx15("wrapper", BlogCardGrid_module_default["wrapper"]), children: [
|
|
3433
|
+
title && /* @__PURE__ */ jsxs("div", { className: clsx15("header-container", BlogCardGrid_module_default["header-container"]), children: [
|
|
3434
|
+
titleNode && typeof titleNode === "string" ? /* @__PURE__ */ jsx(Text, { tag: "h4", className: clsx15("title", BlogCardGrid_module_default["title"]), children: titleNode }) : titleNode,
|
|
3435
|
+
cta && (cta == null ? void 0 : cta.url) && /* @__PURE__ */ jsx("div", { className: clsx15("cta-wrapper", BlogCardGrid_module_default["cta-wrapper"]), children: /* @__PURE__ */ jsx(
|
|
3436
|
+
Button,
|
|
3437
|
+
{
|
|
3438
|
+
className: clsx15("cta", BlogCardGrid_module_default["cta"]),
|
|
3439
|
+
variant: "nofillblack",
|
|
3440
|
+
href: cta.url,
|
|
3441
|
+
isExternal: cta == null ? void 0 : cta.isExternal,
|
|
3442
|
+
icon: cta == null ? void 0 : cta.icon,
|
|
3443
|
+
children: cta == null ? void 0 : cta.label
|
|
3444
|
+
}
|
|
3445
|
+
) })
|
|
3446
|
+
] }),
|
|
3447
|
+
/* @__PURE__ */ jsx(Grid, __spreadProps(__spreadValues({ role: "list", columns: 3 }, gridProps), { children: items.map((item, index) => {
|
|
3448
|
+
var _a2;
|
|
3449
|
+
return /* @__PURE__ */ jsx(
|
|
3450
|
+
GridItem,
|
|
3451
|
+
__spreadProps(__spreadValues({
|
|
3452
|
+
colSpan: { md: 3 },
|
|
3453
|
+
role: "listitem"
|
|
3454
|
+
}, gridItemProps), {
|
|
3455
|
+
children: /* @__PURE__ */ jsx(NewsCard, __spreadProps(__spreadValues({}, item), { renderLink }))
|
|
3456
|
+
}),
|
|
3457
|
+
(_a2 = item.title) != null ? _a2 : index
|
|
3458
|
+
);
|
|
3459
|
+
}) }))
|
|
3460
|
+
] });
|
|
3461
|
+
return /* @__PURE__ */ jsx(
|
|
3462
|
+
"div",
|
|
3463
|
+
{
|
|
3464
|
+
className: clsx15("blog-card-grid", BlogCardGrid_module_default["blog-card-grid"], className),
|
|
3465
|
+
style: {
|
|
3466
|
+
backgroundColor
|
|
3467
|
+
},
|
|
3468
|
+
children: hasContainer ? /* @__PURE__ */ jsx(Container, { className: clsx15("container", BlogCardGrid_module_default["container"]), children: content }) : content
|
|
3469
|
+
}
|
|
3470
|
+
);
|
|
3471
|
+
};
|
|
3472
|
+
|
|
3473
|
+
// src/widgets/BlogCardGrid/index.ts
|
|
3474
|
+
var BlogCardGrid2 = Object.assign(BlogCardGrid, {
|
|
3475
|
+
Title: BlogCardGridTitle
|
|
3476
|
+
});
|
|
3477
|
+
|
|
3478
|
+
// src/widgets/FeaturedNewsHighlights/FeaturedNewsHighlights.module.scss
|
|
3479
|
+
var FeaturedNewsHighlights_module_default = {
|
|
3480
|
+
"featured-news-higlights": "FeaturedNewsHighlights_module_featured-news-higlights",
|
|
3481
|
+
wrapper: "FeaturedNewsHighlights_module_wrapper",
|
|
3482
|
+
"header-container": "FeaturedNewsHighlights_module_header-container",
|
|
3483
|
+
"content-wrapper": "FeaturedNewsHighlights_module_content-wrapper",
|
|
3484
|
+
"featured-card": "FeaturedNewsHighlights_module_featured-card",
|
|
3485
|
+
"side-content": "FeaturedNewsHighlights_module_side-content",
|
|
3486
|
+
carousel: "FeaturedNewsHighlights_module_carousel",
|
|
3487
|
+
"carousel-wrapper": "FeaturedNewsHighlights_module_carousel-wrapper",
|
|
3488
|
+
"carousel-list-item": "FeaturedNewsHighlights_module_carousel-list-item",
|
|
3489
|
+
"carousel-news-card": "FeaturedNewsHighlights_module_carousel-news-card"
|
|
3490
|
+
};
|
|
3491
|
+
var FeaturedNewsHighlightsTitle = ({ children }) => {
|
|
3492
|
+
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
3493
|
+
};
|
|
3494
|
+
var FeaturedNewsHighlights = ({
|
|
3495
|
+
variant,
|
|
3496
|
+
title,
|
|
3497
|
+
items,
|
|
3498
|
+
backgroundColor,
|
|
3499
|
+
cta,
|
|
3500
|
+
className,
|
|
3501
|
+
hasContainer = true,
|
|
3502
|
+
renderLink,
|
|
3503
|
+
children
|
|
3504
|
+
}) => {
|
|
3505
|
+
var _a;
|
|
3506
|
+
const { is } = useViewPort_default();
|
|
3507
|
+
const slots = resolveCompoundSlots(children, {
|
|
3508
|
+
title: FeaturedNewsHighlightsTitle
|
|
3509
|
+
});
|
|
3510
|
+
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
3511
|
+
const featuredCard = items.at(0);
|
|
3512
|
+
const sideCards = items.slice(1);
|
|
3513
|
+
const isVariantHome = variant === "home";
|
|
3514
|
+
const isBelowTablet = is("tablet", "below");
|
|
3515
|
+
const content = /* @__PURE__ */ jsxs("div", { className: clsx15("wrapper", FeaturedNewsHighlights_module_default["wrapper"]), children: [
|
|
3516
|
+
title && cta && /* @__PURE__ */ jsxs("div", { className: clsx15("header-container", FeaturedNewsHighlights_module_default["header-container"]), children: [
|
|
3517
|
+
titleNode && typeof titleNode === "string" ? /* @__PURE__ */ jsx(Text, { tag: "h2", children: titleNode }) : titleNode,
|
|
3518
|
+
cta && (cta == null ? void 0 : cta.url) && /* @__PURE__ */ jsx("div", { className: clsx15("cta-wrapper", FeaturedNewsHighlights_module_default["cta-wrapper"]), children: /* @__PURE__ */ jsx(
|
|
3519
|
+
Button,
|
|
3520
|
+
{
|
|
3521
|
+
className: clsx15("cta", FeaturedNewsHighlights_module_default["cta"]),
|
|
3522
|
+
variant: "nofillblack",
|
|
3523
|
+
href: cta.url,
|
|
3524
|
+
isExternal: cta == null ? void 0 : cta.isExternal,
|
|
3525
|
+
icon: cta == null ? void 0 : cta.icon,
|
|
3526
|
+
children: cta == null ? void 0 : cta.label
|
|
3527
|
+
}
|
|
3528
|
+
) })
|
|
3529
|
+
] }),
|
|
3530
|
+
isVariantHome && isBelowTablet && /* @__PURE__ */ jsx(
|
|
3531
|
+
Carousel,
|
|
3532
|
+
{
|
|
3533
|
+
className: clsx15("carousel", FeaturedNewsHighlights_module_default["carousel"]),
|
|
3534
|
+
"aria-label": "featured news",
|
|
3535
|
+
wrapperClass: clsx15(FeaturedNewsHighlights_module_default["carousel-wrapper"]),
|
|
3536
|
+
slideClass: FeaturedNewsHighlights_module_default["carousel-list-item"],
|
|
3537
|
+
spaceBetween: 16,
|
|
3538
|
+
slides: items.map((item, index) => {
|
|
3539
|
+
var _a2;
|
|
3540
|
+
return /* @__PURE__ */ jsx(
|
|
3541
|
+
NewsCard,
|
|
3542
|
+
__spreadProps(__spreadValues({}, item), {
|
|
3543
|
+
direction: "vertical",
|
|
3544
|
+
className: clsx15("carousel-news-card", FeaturedNewsHighlights_module_default["carousel-news-card"])
|
|
3545
|
+
}),
|
|
3546
|
+
(_a2 = item == null ? void 0 : item.title) != null ? _a2 : index
|
|
3547
|
+
);
|
|
3548
|
+
})
|
|
3549
|
+
}
|
|
3550
|
+
),
|
|
3551
|
+
(!isVariantHome || isVariantHome && !isBelowTablet) && /* @__PURE__ */ jsxs("div", { className: clsx15("content-wrapper", FeaturedNewsHighlights_module_default["content-wrapper"]), children: [
|
|
3552
|
+
featuredCard && /* @__PURE__ */ jsx(
|
|
3553
|
+
NewsCard,
|
|
3554
|
+
__spreadProps(__spreadValues({}, featuredCard), {
|
|
3555
|
+
className: clsx15("featured-card", FeaturedNewsHighlights_module_default["featured-card"]),
|
|
3556
|
+
renderLink
|
|
3557
|
+
})
|
|
3558
|
+
),
|
|
3559
|
+
sideCards && sideCards.length > 0 && /* @__PURE__ */ jsx("div", { className: clsx15("side-content", FeaturedNewsHighlights_module_default["side-content"]), children: sideCards.map((card, index) => {
|
|
3560
|
+
var _a2;
|
|
3561
|
+
return /* @__PURE__ */ jsx(
|
|
3562
|
+
NewsCard,
|
|
3563
|
+
__spreadProps(__spreadValues({}, card), {
|
|
3564
|
+
direction: "horizontal",
|
|
3565
|
+
renderLink
|
|
3566
|
+
}),
|
|
3567
|
+
(_a2 = card == null ? void 0 : card.title) != null ? _a2 : index
|
|
3568
|
+
);
|
|
3569
|
+
}) })
|
|
3570
|
+
] })
|
|
3571
|
+
] });
|
|
3572
|
+
return /* @__PURE__ */ jsx(
|
|
3573
|
+
"div",
|
|
3574
|
+
{
|
|
3575
|
+
className: clsx15("featured-news-higlights", FeaturedNewsHighlights_module_default["featured-news-higlights"], className),
|
|
3576
|
+
style: {
|
|
3577
|
+
backgroundColor
|
|
3578
|
+
},
|
|
3579
|
+
children: hasContainer ? /* @__PURE__ */ jsx(Container, { className: clsx15("container", FeaturedNewsHighlights_module_default["container"]), children: content }) : content
|
|
3580
|
+
}
|
|
3581
|
+
);
|
|
3582
|
+
};
|
|
3583
|
+
|
|
3584
|
+
// src/widgets/FeaturedNewsHighlights/index.ts
|
|
3585
|
+
var FeaturedNewsHighlights2 = Object.assign(FeaturedNewsHighlights, {
|
|
3586
|
+
Title: FeaturedNewsHighlightsTitle
|
|
3587
|
+
});
|
|
3588
|
+
|
|
3589
|
+
// src/widgets/NewsCardList/NewsCardList.module.scss
|
|
3590
|
+
var NewsCardList_module_default = {
|
|
3591
|
+
"news-card-list": "NewsCardList_module_news-card-list",
|
|
3592
|
+
container: "NewsCardList_module_container",
|
|
3593
|
+
wrapper: "NewsCardList_module_wrapper",
|
|
3594
|
+
"search-input": "NewsCardList_module_search-input",
|
|
3595
|
+
"end-action-button": "NewsCardList_module_end-action-button",
|
|
3596
|
+
pagination: "NewsCardList_module_pagination"
|
|
3597
|
+
};
|
|
3598
|
+
var NewsCardList = ({
|
|
3599
|
+
items,
|
|
3600
|
+
backgroundColor,
|
|
3601
|
+
className,
|
|
3602
|
+
currentPage,
|
|
3603
|
+
totalPages = 0,
|
|
3604
|
+
searchValue,
|
|
3605
|
+
onPageChange,
|
|
3606
|
+
onSearchChange,
|
|
3607
|
+
onSearchSubmit,
|
|
3608
|
+
searchInputProps,
|
|
3609
|
+
renderLink
|
|
3610
|
+
}) => {
|
|
3611
|
+
const featuredCards = items.slice(0, 4);
|
|
3612
|
+
const cards = currentPage !== 1 ? items : items.slice(4);
|
|
3613
|
+
return /* @__PURE__ */ jsx(
|
|
3614
|
+
"div",
|
|
3615
|
+
{
|
|
3616
|
+
className: clsx15("news-card-list", NewsCardList_module_default["news-card-list"], className),
|
|
3617
|
+
style: {
|
|
3618
|
+
backgroundColor
|
|
3619
|
+
},
|
|
3620
|
+
children: /* @__PURE__ */ jsxs(Container, { className: clsx15("container", NewsCardList_module_default["container"]), children: [
|
|
3621
|
+
/* @__PURE__ */ jsxs("div", { className: clsx15("wrapper", NewsCardList_module_default["wrapper"]), children: [
|
|
3622
|
+
/* @__PURE__ */ jsx(
|
|
3623
|
+
Input,
|
|
3624
|
+
__spreadValues({
|
|
3625
|
+
className: clsx15("search-input", NewsCardList_module_default["search-input"]),
|
|
3626
|
+
startAdornment: /* @__PURE__ */ jsx(Icon, { type: "search" }),
|
|
3627
|
+
placeholder: "Search News",
|
|
3628
|
+
endAction: /* @__PURE__ */ jsx(
|
|
3629
|
+
Button,
|
|
3630
|
+
{
|
|
3631
|
+
variant: "nofillblack",
|
|
3632
|
+
className: clsx15(NewsCardList_module_default["end-action-button"]),
|
|
3633
|
+
"aria-label": "Search",
|
|
3634
|
+
onClick: onSearchSubmit ? () => onSearchSubmit(searchValue || "") : void 0,
|
|
3635
|
+
children: /* @__PURE__ */ jsx(Icon, { type: "rightBlack" })
|
|
3636
|
+
}
|
|
3637
|
+
),
|
|
3638
|
+
value: searchValue,
|
|
3639
|
+
onChange: onSearchChange ? (e) => {
|
|
3640
|
+
onSearchChange(e.target.value);
|
|
3641
|
+
} : void 0
|
|
3642
|
+
}, searchInputProps)
|
|
3643
|
+
),
|
|
3644
|
+
currentPage === 1 && /* @__PURE__ */ jsx(
|
|
3645
|
+
FeaturedNewsHighlights2,
|
|
3646
|
+
{
|
|
3647
|
+
items: featuredCards,
|
|
3648
|
+
backgroundColor: "#fff",
|
|
3649
|
+
hasContainer: false,
|
|
3650
|
+
renderLink
|
|
3651
|
+
}
|
|
3652
|
+
),
|
|
3653
|
+
/* @__PURE__ */ jsx(BlogCardGrid2, { items: cards, hasContainer: false, renderLink })
|
|
3654
|
+
] }),
|
|
3655
|
+
totalPages ? /* @__PURE__ */ jsx(
|
|
3656
|
+
Pagination,
|
|
3657
|
+
{
|
|
3658
|
+
currentPage: currentPage || 1,
|
|
3659
|
+
totalPages: totalPages || 0,
|
|
3660
|
+
onPageChange,
|
|
3661
|
+
className: clsx15("pagination", NewsCardList_module_default["pagination"]),
|
|
3662
|
+
hasNumber: true
|
|
3663
|
+
}
|
|
3664
|
+
) : null
|
|
3665
|
+
] })
|
|
3666
|
+
}
|
|
3667
|
+
);
|
|
3668
|
+
};
|
|
3669
|
+
|
|
3670
|
+
// src/widgets/BlogPost/BlogPost.module.scss
|
|
3671
|
+
var BlogPost_module_default = {
|
|
3672
|
+
"blog-post": "BlogPost_module_blog-post",
|
|
3673
|
+
container: "BlogPost_module_container",
|
|
3674
|
+
header: "BlogPost_module_header",
|
|
3675
|
+
image: "BlogPost_module_image",
|
|
3676
|
+
content: "BlogPost_module_content",
|
|
3677
|
+
"content-top": "BlogPost_module_content-top",
|
|
3678
|
+
"related-articles": "BlogPost_module_related-articles"
|
|
3679
|
+
};
|
|
3680
|
+
var BlogPostTitle = ({ children }) => {
|
|
3681
|
+
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
3682
|
+
};
|
|
3683
|
+
var BlogPostBody = ({ children }) => {
|
|
3684
|
+
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
3685
|
+
};
|
|
3686
|
+
var BlogPost = ({
|
|
3687
|
+
title,
|
|
3688
|
+
description: body,
|
|
3689
|
+
image,
|
|
3690
|
+
date,
|
|
3691
|
+
tag,
|
|
3692
|
+
relatedArticles,
|
|
3693
|
+
className,
|
|
3694
|
+
children
|
|
3695
|
+
}) => {
|
|
3696
|
+
var _a, _b;
|
|
3697
|
+
const slots = resolveCompoundSlots(children, {
|
|
3698
|
+
title: BlogPostTitle,
|
|
3699
|
+
body: BlogPostBody
|
|
3700
|
+
});
|
|
3701
|
+
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
3702
|
+
const bodyNode = (_b = slots.body) != null ? _b : body;
|
|
3703
|
+
return /* @__PURE__ */ jsx("div", { className: clsx15("blog-post", BlogPost_module_default["blog-post"], className), children: /* @__PURE__ */ jsxs(Container, { className: clsx15("container", BlogPost_module_default["container"]), children: [
|
|
3704
|
+
/* @__PURE__ */ jsxs("div", { className: clsx15("header", BlogPost_module_default["header"]), children: [
|
|
3705
|
+
titleNode && typeof titleNode === "string" ? /* @__PURE__ */ jsx(Text, { tag: "h1", children: titleNode }) : titleNode,
|
|
3706
|
+
image && /* @__PURE__ */ jsx(Picture, __spreadProps(__spreadValues({}, image), { className: clsx15("image", BlogPost_module_default["image"]) }))
|
|
3707
|
+
] }),
|
|
3708
|
+
/* @__PURE__ */ jsxs("div", { className: clsx15("content", BlogPost_module_default["content"]), children: [
|
|
3709
|
+
/* @__PURE__ */ jsxs("div", { className: clsx15("content-top", BlogPost_module_default["content-top"]), children: [
|
|
3710
|
+
/* @__PURE__ */ jsx(Badge, { size: "sm", children: tag }),
|
|
3711
|
+
/* @__PURE__ */ jsxs("span", { className: clsx15("content-date", BlogPost_module_default["content-date"]), children: [
|
|
3712
|
+
"Published ",
|
|
3713
|
+
/* @__PURE__ */ jsx("time", { dateTime: date.value, children: date.label })
|
|
3714
|
+
] })
|
|
3715
|
+
] }),
|
|
3716
|
+
bodyNode
|
|
3717
|
+
] }),
|
|
3718
|
+
relatedArticles && relatedArticles.length > 0 && /* @__PURE__ */ jsx(
|
|
3719
|
+
BlogCardGrid2,
|
|
3720
|
+
{
|
|
3721
|
+
title: "More News",
|
|
3722
|
+
items: relatedArticles,
|
|
3723
|
+
hasContainer: false,
|
|
3724
|
+
className: clsx15("related-articles", BlogPost_module_default["related-articles"])
|
|
3725
|
+
}
|
|
3726
|
+
)
|
|
3727
|
+
] }) });
|
|
3728
|
+
};
|
|
3729
|
+
|
|
3730
|
+
// src/widgets/BlogPost/index.ts
|
|
3731
|
+
var BlogPost2 = Object.assign(BlogPost, {
|
|
3732
|
+
Title: BlogPostTitle,
|
|
3733
|
+
Body: BlogPostBody
|
|
3734
|
+
});
|
|
3735
|
+
var BlogSearchResultsListSearch = ({ children }) => {
|
|
3736
|
+
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
3737
|
+
};
|
|
3738
|
+
|
|
3739
|
+
// src/widgets/BlogSearchResultsList/BlogSearchResultsList.module.scss
|
|
3740
|
+
var BlogSearchResultsList_module_default = {
|
|
3741
|
+
"search-results-list": "BlogSearchResultsList_module_search-results-list",
|
|
3742
|
+
container: "BlogSearchResultsList_module_container",
|
|
3743
|
+
"search-result": "BlogSearchResultsList_module_search-result",
|
|
3744
|
+
wrapper: "BlogSearchResultsList_module_wrapper",
|
|
3745
|
+
"search-input": "BlogSearchResultsList_module_search-input",
|
|
3746
|
+
"end-action-button": "BlogSearchResultsList_module_end-action-button"
|
|
3747
|
+
};
|
|
3748
|
+
var BlogSearchResultsList = ({
|
|
3749
|
+
items,
|
|
3750
|
+
searchResult,
|
|
3751
|
+
onSearchChange,
|
|
3752
|
+
onSearchSubmit,
|
|
3753
|
+
searchValue,
|
|
3754
|
+
className,
|
|
3755
|
+
children
|
|
3756
|
+
}) => {
|
|
3757
|
+
var _a;
|
|
3758
|
+
const slots = resolveCompoundSlots(children, {
|
|
3759
|
+
search: BlogSearchResultsListSearch
|
|
3760
|
+
});
|
|
3761
|
+
const searchNode = (_a = slots.search) != null ? _a : searchResult;
|
|
3762
|
+
return /* @__PURE__ */ jsx("div", { className: clsx15("search-results-list", BlogSearchResultsList_module_default["search-results-list"], className), children: /* @__PURE__ */ jsxs(Container, { className: clsx15("container", BlogSearchResultsList_module_default["container"]), children: [
|
|
3763
|
+
searchNode && typeof searchNode === "string" ? /* @__PURE__ */ jsxs("span", { className: clsx15("search-result", BlogSearchResultsList_module_default["search-result"]), children: [
|
|
3764
|
+
'Search results for "',
|
|
3765
|
+
searchNode,
|
|
3766
|
+
'":'
|
|
3767
|
+
] }) : searchNode,
|
|
3768
|
+
/* @__PURE__ */ jsxs("div", { className: clsx15("wrapper", BlogSearchResultsList_module_default["wrapper"]), children: [
|
|
3769
|
+
/* @__PURE__ */ jsx(
|
|
3770
|
+
Input,
|
|
3771
|
+
{
|
|
3772
|
+
className: clsx15("search-input", BlogSearchResultsList_module_default["search-input"]),
|
|
3773
|
+
startAdornment: /* @__PURE__ */ jsx(Icon, { type: "search" }),
|
|
3774
|
+
placeholder: "Search News",
|
|
3775
|
+
endAction: /* @__PURE__ */ jsx(
|
|
3776
|
+
Button,
|
|
3777
|
+
{
|
|
3778
|
+
variant: "nofillblack",
|
|
3779
|
+
className: clsx15(BlogSearchResultsList_module_default["end-action-button"]),
|
|
3780
|
+
"aria-label": "Search",
|
|
3781
|
+
onClick: () => onSearchSubmit(searchValue),
|
|
3782
|
+
children: /* @__PURE__ */ jsx(Icon, { type: "rightBlack" })
|
|
3783
|
+
}
|
|
3784
|
+
),
|
|
3785
|
+
value: searchValue,
|
|
3786
|
+
onChange: (e) => {
|
|
3787
|
+
onSearchChange(e.target.value);
|
|
3788
|
+
}
|
|
3789
|
+
}
|
|
3790
|
+
),
|
|
3791
|
+
/* @__PURE__ */ jsx(BlogCardGrid2, { items, hasContainer: false })
|
|
3792
|
+
] })
|
|
3793
|
+
] }) });
|
|
3794
|
+
};
|
|
3795
|
+
|
|
3796
|
+
// src/widgets/BlogSearchResultsList/index.ts
|
|
3797
|
+
var BlogSearchResultsList2 = Object.assign(BlogSearchResultsList, {
|
|
3798
|
+
Search: BlogSearchResultsListSearch
|
|
3799
|
+
});
|
|
3088
3800
|
function useIntersectionObserver({
|
|
3089
3801
|
animateOnce = false,
|
|
3090
3802
|
options = {}
|
|
@@ -3114,6 +3826,6 @@ function useIntersectionObserver({
|
|
|
3114
3826
|
return { observeRef, isVisible };
|
|
3115
3827
|
}
|
|
3116
3828
|
|
|
3117
|
-
export { Anchor, BrandsStrip, Button, Card2 as Card, CardCollection2 as CardCollection, ConditionalWrapper, ContactModule2 as ContactModule, Container, CountingCard2 as CountingCard, EventList2 as EventList, FilterBar, Footer, HeroBanner2 as HeroBanner, HeroBannerCarousel, Icon, InfoCard2 as InfoCard, InternalBrandsTab2 as InternalBrandsTab,
|
|
3829
|
+
export { Anchor, Badge, BlogCardGrid2 as BlogCardGrid, BlogPost2 as BlogPost, BlogSearchResultsList2 as BlogSearchResultsList, BrandsStrip, Button, Card2 as Card, CardCollection2 as CardCollection, ConditionalWrapper, ContactModule2 as ContactModule, Container, CountingCard2 as CountingCard, EventList2 as EventList, FeaturedNewsHighlights2 as FeaturedNewsHighlights, FilterBar, Footer, HeroBanner2 as HeroBanner, HeroBannerCarousel, Icon, InfoCard2 as InfoCard, Input, InternalBrandsTab2 as InternalBrandsTab, MiniBanner2 as MiniBanner, MiniSectionCta2 as MiniSectionCta, NewsCard, NewsCardList, Pagination, Picture, PracticeCard, PracticePathCards2 as PracticePathCards, ResourceCardItem, ResourcesGridList, Sidebar, Teaser5050With3Text2 as Teaser5050With3Text, Teaser5050WithCta2 as Teaser5050WithCta, TextBody2 as TextBody, TextCenterCtaInBottom2 as TextCenterCtaInBottom, TextEvent2 as TextEvent, UpcomingEventCard, resolveCompoundSlots, svgs, useIntersectionObserver };
|
|
3118
3830
|
//# sourceMappingURL=index.mjs.map
|
|
3119
3831
|
//# sourceMappingURL=index.mjs.map
|