@digital-b2c/coreui-kit 0.10.0 → 0.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +446 -493
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +446 -437
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +55 -24
- package/dist/index.d.ts +55 -24
- package/dist/index.mjs +443 -493
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var clsx25 = require('clsx');
|
|
4
4
|
var jsxRuntime = require('react/jsx-runtime');
|
|
5
5
|
var React62 = require('react');
|
|
6
6
|
var gsap = require('gsap');
|
|
@@ -12,7 +12,7 @@ require('swiper/css');
|
|
|
12
12
|
|
|
13
13
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var clsx25__default = /*#__PURE__*/_interopDefault(clsx25);
|
|
16
16
|
var React62__default = /*#__PURE__*/_interopDefault(React62);
|
|
17
17
|
var gsap__default = /*#__PURE__*/_interopDefault(gsap);
|
|
18
18
|
|
|
@@ -66,7 +66,7 @@ var Picture = (_a) => {
|
|
|
66
66
|
__spreadValues({
|
|
67
67
|
src: desktop.src,
|
|
68
68
|
alt: desktop.alt,
|
|
69
|
-
className:
|
|
69
|
+
className: clsx25__default.default(className, Picture_module_default["image-desktop"])
|
|
70
70
|
}, rest)
|
|
71
71
|
),
|
|
72
72
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -74,7 +74,7 @@ var Picture = (_a) => {
|
|
|
74
74
|
__spreadValues({
|
|
75
75
|
src: (_b2 = mobile == null ? void 0 : mobile.src) != null ? _b2 : desktop.src,
|
|
76
76
|
alt: (_c = mobile == null ? void 0 : mobile.alt) != null ? _c : desktop.alt,
|
|
77
|
-
className:
|
|
77
|
+
className: clsx25__default.default(className, Picture_module_default["image-mobile"])
|
|
78
78
|
}, rest)
|
|
79
79
|
)
|
|
80
80
|
] });
|
|
@@ -433,7 +433,7 @@ var Button = (_a) => {
|
|
|
433
433
|
]);
|
|
434
434
|
const isLink = !!href;
|
|
435
435
|
const props = __spreadValues(__spreadValues({
|
|
436
|
-
className:
|
|
436
|
+
className: clsx25__default.default(
|
|
437
437
|
Button_module_default.button,
|
|
438
438
|
variant ? Button_module_default[variant] : null,
|
|
439
439
|
{ [Button_module_default.fullWidth]: !!fullWidth },
|
|
@@ -665,7 +665,7 @@ var BrandsStrip = ({
|
|
|
665
665
|
"div",
|
|
666
666
|
{
|
|
667
667
|
ref: containerRef,
|
|
668
|
-
className:
|
|
668
|
+
className: clsx25__default.default(
|
|
669
669
|
BrandsStrip_module_default.brandsStrip,
|
|
670
670
|
BrandsStrip_module_default[variant],
|
|
671
671
|
{ [BrandsStrip_module_default.small]: size === "small" },
|
|
@@ -674,13 +674,13 @@ var BrandsStrip = ({
|
|
|
674
674
|
onMouseEnter: handleMouseEnter,
|
|
675
675
|
onMouseLeave: handleMouseLeave,
|
|
676
676
|
children: [
|
|
677
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
678
|
-
title && logos.length === 1 && /* @__PURE__ */ jsxRuntime.jsx("h2", { className:
|
|
677
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx25__default.default(BrandsStrip_module_default.container, { [BrandsStrip_module_default.blurred]: show && logos.length > 1 }), children: [
|
|
678
|
+
title && logos.length === 1 && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: clsx25__default.default("body", BrandsStrip_module_default.title), children: title }),
|
|
679
679
|
logos.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
680
680
|
"div",
|
|
681
681
|
{
|
|
682
682
|
ref: marqueeRef,
|
|
683
|
-
className:
|
|
683
|
+
className: clsx25__default.default(BrandsStrip_module_default.logos, { [BrandsStrip_module_default.marqueeGSAP]: shouldAnimate }),
|
|
684
684
|
children: duplicatedLogos.map((logo, index) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: BrandsStrip_module_default.logoWrapper, children: /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: BrandsStrip_module_default.logo }, logo)) }, `${logo.alt}-${index}`))
|
|
685
685
|
}
|
|
686
686
|
)
|
|
@@ -727,7 +727,7 @@ var Container_module_default = {
|
|
|
727
727
|
var Container = React62.forwardRef(
|
|
728
728
|
(_a, ref) => {
|
|
729
729
|
var _b = _a, { children, className } = _b, props = __objRest(_b, ["children", "className"]);
|
|
730
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", __spreadProps(__spreadValues({ ref, className:
|
|
730
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", __spreadProps(__spreadValues({ ref, className: clsx25__default.default(Container_module_default.container, className) }, props), { children }));
|
|
731
731
|
}
|
|
732
732
|
);
|
|
733
733
|
Container.displayName = "Container";
|
|
@@ -768,14 +768,14 @@ var Card = ({
|
|
|
768
768
|
ConditionalWrapper,
|
|
769
769
|
__spreadProps(__spreadValues({
|
|
770
770
|
ref,
|
|
771
|
-
className:
|
|
771
|
+
className: clsx25__default.default(Card_module_default.card, Card_module_default[variant], className),
|
|
772
772
|
wrapper: Anchor,
|
|
773
773
|
fallback: "div",
|
|
774
774
|
condition: isLink
|
|
775
775
|
}, href ? { href, isExternal } : {}), {
|
|
776
776
|
children: [
|
|
777
777
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: Card_module_default.logoContainer, children: [
|
|
778
|
-
(logo == null ? void 0 : logo.src) ? /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className:
|
|
778
|
+
(logo == null ? void 0 : logo.src) ? /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: clsx25__default.default(Card_module_default.logo, isLink && Card_module_default.hideLogo) }, logo)) : icon && /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: icon, className: clsx25__default.default(Card_module_default.logo, isLink && Card_module_default.hideLogo) }),
|
|
779
779
|
isLink && /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "tiltedRightWhite", className: Card_module_default.logoHover })
|
|
780
780
|
] }),
|
|
781
781
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: Card_module_default.content, children: [
|
|
@@ -810,10 +810,10 @@ var CountingCard = ({ className, title, count, image, children }) => {
|
|
|
810
810
|
title: CountingCardTitle
|
|
811
811
|
});
|
|
812
812
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
813
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
813
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx25__default.default(CountingCard_module_default["counting-card"], className), children: [
|
|
814
814
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: CountingCard_module_default.content, children: [
|
|
815
815
|
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "body", children: titleNode }),
|
|
816
|
-
count && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
816
|
+
count && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx25__default.default(CountingCard_module_default.count, "h1"), children: count })
|
|
817
817
|
] }),
|
|
818
818
|
image && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: CountingCard_module_default.logo }, image))
|
|
819
819
|
] });
|
|
@@ -823,6 +823,260 @@ var CountingCard = ({ className, title, count, image, children }) => {
|
|
|
823
823
|
var CountingCard2 = Object.assign(CountingCard, {
|
|
824
824
|
Title: CountingCardTitle
|
|
825
825
|
});
|
|
826
|
+
|
|
827
|
+
// src/components/FilterBar/FilterBar.module.scss
|
|
828
|
+
var FilterBar_module_default = {
|
|
829
|
+
filterBar: "FilterBar_module_filterBar",
|
|
830
|
+
viewToggle: "FilterBar_module_viewToggle",
|
|
831
|
+
filterActions: "FilterBar_module_filterActions",
|
|
832
|
+
chip: "FilterBar_module_chip",
|
|
833
|
+
active: "FilterBar_module_active",
|
|
834
|
+
chipLabel: "FilterBar_module_chipLabel",
|
|
835
|
+
dropdownWrapper: "FilterBar_module_dropdownWrapper",
|
|
836
|
+
searchExpanded: "FilterBar_module_searchExpanded",
|
|
837
|
+
searchCollapsing: "FilterBar_module_searchCollapsing",
|
|
838
|
+
searchIconInner: "FilterBar_module_searchIconInner",
|
|
839
|
+
searchInput: "FilterBar_module_searchInput",
|
|
840
|
+
searchClear: "FilterBar_module_searchClear",
|
|
841
|
+
dropdownPanel: "FilterBar_module_dropdownPanel",
|
|
842
|
+
filterFaded: "FilterBar_module_filterFaded",
|
|
843
|
+
filterFading: "FilterBar_module_filterFading",
|
|
844
|
+
dropdownOption: "FilterBar_module_dropdownOption",
|
|
845
|
+
selected: "FilterBar_module_selected"
|
|
846
|
+
};
|
|
847
|
+
var FILTER_OPTIONS = [
|
|
848
|
+
{ value: "link", label: "Link", icon: "externalLink" },
|
|
849
|
+
{ value: "pdf", label: "PDF", icon: "pdf" }
|
|
850
|
+
];
|
|
851
|
+
var SORT_OPTIONS = [
|
|
852
|
+
{ value: "latest", label: "Latest" },
|
|
853
|
+
{ value: "oldest", label: "Oldest" },
|
|
854
|
+
{ value: "az", label: "A \u2192 Z" },
|
|
855
|
+
{ value: "za", label: "Z \u2192 A" }
|
|
856
|
+
];
|
|
857
|
+
function FilterBar({
|
|
858
|
+
view,
|
|
859
|
+
onViewChange,
|
|
860
|
+
isMobile,
|
|
861
|
+
filterValue,
|
|
862
|
+
onFilterChange,
|
|
863
|
+
sortValue,
|
|
864
|
+
onSortChange,
|
|
865
|
+
searchValue,
|
|
866
|
+
onSearchChange
|
|
867
|
+
}) {
|
|
868
|
+
const [openDropdown, setOpenDropdown] = React62.useState(null);
|
|
869
|
+
const [searchState, setSearchState] = React62.useState("closed");
|
|
870
|
+
const filterRef = React62.useRef(null);
|
|
871
|
+
const sortRef = React62.useRef(null);
|
|
872
|
+
const searchInputRef = React62.useRef(null);
|
|
873
|
+
const closeSearch = () => {
|
|
874
|
+
setSearchState("closing");
|
|
875
|
+
onSearchChange("");
|
|
876
|
+
};
|
|
877
|
+
const clearSearch = () => {
|
|
878
|
+
var _a;
|
|
879
|
+
onSearchChange("");
|
|
880
|
+
(_a = searchInputRef.current) == null ? void 0 : _a.focus();
|
|
881
|
+
};
|
|
882
|
+
React62.useEffect(() => {
|
|
883
|
+
const handleMouseDown = (e) => {
|
|
884
|
+
var _a, _b;
|
|
885
|
+
const target = e.target;
|
|
886
|
+
if (((_a = filterRef.current) == null ? void 0 : _a.contains(target)) || ((_b = sortRef.current) == null ? void 0 : _b.contains(target))) return;
|
|
887
|
+
setOpenDropdown(null);
|
|
888
|
+
};
|
|
889
|
+
document.addEventListener("mousedown", handleMouseDown);
|
|
890
|
+
return () => document.removeEventListener("mousedown", handleMouseDown);
|
|
891
|
+
}, []);
|
|
892
|
+
React62.useEffect(() => {
|
|
893
|
+
var _a;
|
|
894
|
+
if (searchState === "open") (_a = searchInputRef.current) == null ? void 0 : _a.focus();
|
|
895
|
+
}, [searchState]);
|
|
896
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: FilterBar_module_default.filterBar, children: [
|
|
897
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: FilterBar_module_default.viewToggle, children: [
|
|
898
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
899
|
+
"button",
|
|
900
|
+
{
|
|
901
|
+
type: "button",
|
|
902
|
+
className: clsx25__default.default(FilterBar_module_default.chip, view === "grid" && FilterBar_module_default.active),
|
|
903
|
+
onClick: () => onViewChange("grid"),
|
|
904
|
+
"aria-pressed": view === "grid",
|
|
905
|
+
children: [
|
|
906
|
+
/* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "grid", size: 20, "aria-hidden": "true" }),
|
|
907
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: FilterBar_module_default.chipLabel, children: "Grid" })
|
|
908
|
+
]
|
|
909
|
+
}
|
|
910
|
+
),
|
|
911
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
912
|
+
"button",
|
|
913
|
+
{
|
|
914
|
+
type: "button",
|
|
915
|
+
className: clsx25__default.default(FilterBar_module_default.chip, view === "list" && FilterBar_module_default.active),
|
|
916
|
+
onClick: () => onViewChange("list"),
|
|
917
|
+
"aria-pressed": view === "list",
|
|
918
|
+
children: [
|
|
919
|
+
/* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "list", size: 20, "aria-hidden": "true" }),
|
|
920
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: FilterBar_module_default.chipLabel, children: "List" })
|
|
921
|
+
]
|
|
922
|
+
}
|
|
923
|
+
)
|
|
924
|
+
] }),
|
|
925
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: FilterBar_module_default.filterActions, children: [
|
|
926
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
927
|
+
"div",
|
|
928
|
+
{
|
|
929
|
+
className: clsx25__default.default(
|
|
930
|
+
FilterBar_module_default.dropdownWrapper,
|
|
931
|
+
isMobile && searchState === "open" && FilterBar_module_default.filterFaded,
|
|
932
|
+
isMobile && searchState === "closing" && FilterBar_module_default.filterFading
|
|
933
|
+
),
|
|
934
|
+
ref: filterRef,
|
|
935
|
+
children: [
|
|
936
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
937
|
+
"button",
|
|
938
|
+
{
|
|
939
|
+
type: "button",
|
|
940
|
+
className: clsx25__default.default(FilterBar_module_default.chip, filterValue !== "all" && FilterBar_module_default.active),
|
|
941
|
+
onClick: () => setOpenDropdown(openDropdown === "filter" ? null : "filter"),
|
|
942
|
+
"aria-expanded": openDropdown === "filter",
|
|
943
|
+
children: [
|
|
944
|
+
/* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "filter", size: 20, "aria-hidden": "true" }),
|
|
945
|
+
!isMobile && /* @__PURE__ */ jsxRuntime.jsx("span", { className: FilterBar_module_default.chipLabel, children: "Filter" })
|
|
946
|
+
]
|
|
947
|
+
}
|
|
948
|
+
),
|
|
949
|
+
openDropdown === "filter" && /* @__PURE__ */ jsxRuntime.jsx("div", { className: FilterBar_module_default.dropdownPanel, role: "listbox", "aria-label": "Filter by type", children: FILTER_OPTIONS.map((opt) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
950
|
+
"button",
|
|
951
|
+
{
|
|
952
|
+
type: "button",
|
|
953
|
+
role: "option",
|
|
954
|
+
"aria-selected": filterValue === opt.value,
|
|
955
|
+
className: clsx25__default.default(
|
|
956
|
+
FilterBar_module_default.dropdownOption,
|
|
957
|
+
filterValue === opt.value && FilterBar_module_default.selected
|
|
958
|
+
),
|
|
959
|
+
onClick: () => {
|
|
960
|
+
onFilterChange(filterValue === opt.value ? "all" : opt.value);
|
|
961
|
+
setOpenDropdown(null);
|
|
962
|
+
},
|
|
963
|
+
children: [
|
|
964
|
+
/* @__PURE__ */ jsxRuntime.jsx(Icon, { type: opt.icon, size: 20, "aria-hidden": "true" }),
|
|
965
|
+
opt.label
|
|
966
|
+
]
|
|
967
|
+
},
|
|
968
|
+
opt.value
|
|
969
|
+
)) })
|
|
970
|
+
]
|
|
971
|
+
}
|
|
972
|
+
),
|
|
973
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
974
|
+
"div",
|
|
975
|
+
{
|
|
976
|
+
className: clsx25__default.default(
|
|
977
|
+
FilterBar_module_default.dropdownWrapper,
|
|
978
|
+
isMobile && searchState === "open" && FilterBar_module_default.filterFaded,
|
|
979
|
+
isMobile && searchState === "closing" && FilterBar_module_default.filterFading
|
|
980
|
+
),
|
|
981
|
+
ref: sortRef,
|
|
982
|
+
children: [
|
|
983
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
984
|
+
"button",
|
|
985
|
+
{
|
|
986
|
+
type: "button",
|
|
987
|
+
className: FilterBar_module_default.chip,
|
|
988
|
+
onClick: () => setOpenDropdown(openDropdown === "sort" ? null : "sort"),
|
|
989
|
+
"aria-expanded": openDropdown === "sort",
|
|
990
|
+
children: [
|
|
991
|
+
/* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "internalFilter", size: 20, "aria-hidden": "true" }),
|
|
992
|
+
!isMobile && /* @__PURE__ */ jsxRuntime.jsx("span", { className: FilterBar_module_default.chipLabel, children: "Sort" })
|
|
993
|
+
]
|
|
994
|
+
}
|
|
995
|
+
),
|
|
996
|
+
openDropdown === "sort" && /* @__PURE__ */ jsxRuntime.jsx("div", { className: FilterBar_module_default.dropdownPanel, role: "listbox", "aria-label": "Sort by", children: SORT_OPTIONS.map((opt) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
997
|
+
"button",
|
|
998
|
+
{
|
|
999
|
+
type: "button",
|
|
1000
|
+
role: "option",
|
|
1001
|
+
"aria-selected": sortValue === opt.value,
|
|
1002
|
+
className: clsx25__default.default(
|
|
1003
|
+
FilterBar_module_default.dropdownOption,
|
|
1004
|
+
sortValue === opt.value && FilterBar_module_default.selected
|
|
1005
|
+
),
|
|
1006
|
+
onClick: () => {
|
|
1007
|
+
onSortChange(opt.value);
|
|
1008
|
+
setOpenDropdown(null);
|
|
1009
|
+
},
|
|
1010
|
+
children: opt.label
|
|
1011
|
+
},
|
|
1012
|
+
opt.value
|
|
1013
|
+
)) })
|
|
1014
|
+
]
|
|
1015
|
+
}
|
|
1016
|
+
),
|
|
1017
|
+
searchState !== "closed" ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1018
|
+
"div",
|
|
1019
|
+
{
|
|
1020
|
+
className: clsx25__default.default(
|
|
1021
|
+
FilterBar_module_default.searchExpanded,
|
|
1022
|
+
searchState === "closing" && FilterBar_module_default.searchCollapsing
|
|
1023
|
+
),
|
|
1024
|
+
onAnimationEnd: () => {
|
|
1025
|
+
if (searchState === "closing") setSearchState("closed");
|
|
1026
|
+
},
|
|
1027
|
+
children: [
|
|
1028
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: FilterBar_module_default.searchIconInner, children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "search", size: 20, "aria-hidden": "true" }) }),
|
|
1029
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1030
|
+
"input",
|
|
1031
|
+
{
|
|
1032
|
+
ref: searchInputRef,
|
|
1033
|
+
type: "text",
|
|
1034
|
+
className: FilterBar_module_default.searchInput,
|
|
1035
|
+
placeholder: "Search\u2026",
|
|
1036
|
+
value: searchValue,
|
|
1037
|
+
onChange: (e) => onSearchChange(e.target.value),
|
|
1038
|
+
onKeyDown: (e) => {
|
|
1039
|
+
if (e.key === "Escape") {
|
|
1040
|
+
if (searchValue) clearSearch();
|
|
1041
|
+
else closeSearch();
|
|
1042
|
+
}
|
|
1043
|
+
},
|
|
1044
|
+
onBlur: () => {
|
|
1045
|
+
if (!searchValue) closeSearch();
|
|
1046
|
+
}
|
|
1047
|
+
}
|
|
1048
|
+
),
|
|
1049
|
+
searchValue && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1050
|
+
"button",
|
|
1051
|
+
{
|
|
1052
|
+
type: "button",
|
|
1053
|
+
className: FilterBar_module_default.searchClear,
|
|
1054
|
+
"aria-label": "Clear search",
|
|
1055
|
+
onMouseDown: (e) => e.preventDefault(),
|
|
1056
|
+
onClick: clearSearch,
|
|
1057
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "xBlack", size: 16, "aria-hidden": "true" })
|
|
1058
|
+
}
|
|
1059
|
+
)
|
|
1060
|
+
]
|
|
1061
|
+
}
|
|
1062
|
+
) : /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1063
|
+
"button",
|
|
1064
|
+
{
|
|
1065
|
+
type: "button",
|
|
1066
|
+
className: FilterBar_module_default.chip,
|
|
1067
|
+
onClick: () => {
|
|
1068
|
+
setOpenDropdown(null);
|
|
1069
|
+
setSearchState("open");
|
|
1070
|
+
},
|
|
1071
|
+
children: [
|
|
1072
|
+
/* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "search", size: 20, "aria-hidden": "true" }),
|
|
1073
|
+
!isMobile && /* @__PURE__ */ jsxRuntime.jsx("span", { className: FilterBar_module_default.chipLabel, children: "Search" })
|
|
1074
|
+
]
|
|
1075
|
+
}
|
|
1076
|
+
)
|
|
1077
|
+
] })
|
|
1078
|
+
] });
|
|
1079
|
+
}
|
|
826
1080
|
var InfoCardTitle = ({ children }) => {
|
|
827
1081
|
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
|
|
828
1082
|
};
|
|
@@ -845,9 +1099,9 @@ var InfoCard = ({ className, title, subtitle, icon, badge, children }) => {
|
|
|
845
1099
|
});
|
|
846
1100
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
847
1101
|
const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
|
|
848
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
1102
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx25__default.default(InfoCard_module_default["info-card"], { [InfoCard_module_default.hasIcon]: !!icon }, className), children: [
|
|
849
1103
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: InfoCard_module_default.header, children: [
|
|
850
|
-
icon ? /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: icon }) : badge ? /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1104
|
+
icon ? /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: icon }) : badge ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx25__default.default(InfoCard_module_default.badge, "h4"), children: badge }) : null,
|
|
851
1105
|
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h4", children: titleNode })
|
|
852
1106
|
] }),
|
|
853
1107
|
subtitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "body", children: subtitleNode })
|
|
@@ -909,7 +1163,7 @@ var Pagination = ({
|
|
|
909
1163
|
setActivePage(page);
|
|
910
1164
|
onPageChange == null ? void 0 : onPageChange(page);
|
|
911
1165
|
};
|
|
912
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
1166
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx25__default.default(Pagination_module_default.pagination, className), children: [
|
|
913
1167
|
!disableArrows && /* @__PURE__ */ jsxRuntime.jsx(
|
|
914
1168
|
"button",
|
|
915
1169
|
{
|
|
@@ -926,7 +1180,7 @@ var Pagination = ({
|
|
|
926
1180
|
"button",
|
|
927
1181
|
{
|
|
928
1182
|
onClick: () => goToPage(page),
|
|
929
|
-
className:
|
|
1183
|
+
className: clsx25__default.default(Pagination_module_default.page, {
|
|
930
1184
|
[Pagination_module_default.active]: activePage === page,
|
|
931
1185
|
[Pagination_module_default.number]: hasNumber
|
|
932
1186
|
}),
|
|
@@ -962,7 +1216,7 @@ var PracticeCard_module_default = {
|
|
|
962
1216
|
};
|
|
963
1217
|
var PracticeCard = ({ className, title, cta, image }) => {
|
|
964
1218
|
const { url: href, isExternal } = cta != null ? cta : {};
|
|
965
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1219
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx25__default.default(PracticeCard_module_default["practice-card"], className), children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
966
1220
|
ConditionalWrapper,
|
|
967
1221
|
__spreadProps(__spreadValues({
|
|
968
1222
|
className: PracticeCard_module_default.wrapper,
|
|
@@ -973,7 +1227,7 @@ var PracticeCard = ({ className, title, cta, image }) => {
|
|
|
973
1227
|
children: [
|
|
974
1228
|
image && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: PracticeCard_module_default.background }, image)),
|
|
975
1229
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: PracticeCard_module_default.container, children: [
|
|
976
|
-
title && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1230
|
+
title && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx25__default.default(PracticeCard_module_default.title, "h3"), children: title }),
|
|
977
1231
|
href && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: PracticeCard_module_default.cta, children: [
|
|
978
1232
|
/* @__PURE__ */ jsxRuntime.jsx(Icon, { className: PracticeCard_module_default.ctaRest, type: "right" }),
|
|
979
1233
|
/* @__PURE__ */ jsxRuntime.jsx(Icon, { className: PracticeCard_module_default.ctaHover, type: "tiltedRight" })
|
|
@@ -984,6 +1238,106 @@ var PracticeCard = ({ className, title, cta, image }) => {
|
|
|
984
1238
|
) });
|
|
985
1239
|
};
|
|
986
1240
|
|
|
1241
|
+
// src/components/ResourceCardItem/ResourceCardItem.module.scss
|
|
1242
|
+
var ResourceCardItem_module_default = {
|
|
1243
|
+
cardLink: "ResourceCardItem_module_cardLink",
|
|
1244
|
+
cardGrid: "ResourceCardItem_module_cardGrid",
|
|
1245
|
+
cardBody: "ResourceCardItem_module_cardBody",
|
|
1246
|
+
cardIconTitle: "ResourceCardItem_module_cardIconTitle",
|
|
1247
|
+
cardTitle: "ResourceCardItem_module_cardTitle",
|
|
1248
|
+
cardMeta: "ResourceCardItem_module_cardMeta",
|
|
1249
|
+
cardDate: "ResourceCardItem_module_cardDate",
|
|
1250
|
+
cardList: "ResourceCardItem_module_cardList",
|
|
1251
|
+
cardListLeft: "ResourceCardItem_module_cardListLeft",
|
|
1252
|
+
cardListRight: "ResourceCardItem_module_cardListRight",
|
|
1253
|
+
notificationDot: "ResourceCardItem_module_notificationDot",
|
|
1254
|
+
iconWrapper: "ResourceCardItem_module_iconWrapper"
|
|
1255
|
+
};
|
|
1256
|
+
var ResourceIcon = ({ image, type }) => {
|
|
1257
|
+
if (!image) return null;
|
|
1258
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: ResourceCardItem_module_default.iconWrapper, children: /* @__PURE__ */ jsxRuntime.jsx("img", { src: image, alt: type != null ? type : "", width: 32, height: 32 }) });
|
|
1259
|
+
};
|
|
1260
|
+
var ResourceCardItem = ({ item, view }) => {
|
|
1261
|
+
const hasHref = Boolean(item.href);
|
|
1262
|
+
const linkWrapper = ({ children }) => /* @__PURE__ */ jsxRuntime.jsx("a", { href: item.href, className: ResourceCardItem_module_default.cardLink, target: "_blank", rel: "noopener noreferrer", children });
|
|
1263
|
+
if (view === "grid") {
|
|
1264
|
+
return /* @__PURE__ */ jsxRuntime.jsx("article", { className: ResourceCardItem_module_default.cardGrid, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: ResourceCardItem_module_default.cardBody, children: [
|
|
1265
|
+
/* @__PURE__ */ jsxRuntime.jsx(ConditionalWrapper, { condition: hasHref, wrapper: linkWrapper, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: ResourceCardItem_module_default.cardIconTitle, children: [
|
|
1266
|
+
/* @__PURE__ */ jsxRuntime.jsx(ResourceIcon, { image: item.image, type: item.type }),
|
|
1267
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: ResourceCardItem_module_default.cardTitle, children: item.title })
|
|
1268
|
+
] }) }),
|
|
1269
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: ResourceCardItem_module_default.cardMeta, children: [
|
|
1270
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: ResourceCardItem_module_default.cardDate, children: item.date }),
|
|
1271
|
+
item.hasNotification && /* @__PURE__ */ jsxRuntime.jsx("span", { className: ResourceCardItem_module_default.notificationDot, "aria-label": "New" })
|
|
1272
|
+
] })
|
|
1273
|
+
] }) });
|
|
1274
|
+
}
|
|
1275
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("article", { className: ResourceCardItem_module_default.cardList, children: [
|
|
1276
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: ResourceCardItem_module_default.cardListLeft, children: [
|
|
1277
|
+
item.hasNotification && /* @__PURE__ */ jsxRuntime.jsx("span", { className: ResourceCardItem_module_default.notificationDot, "aria-label": "New" }),
|
|
1278
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: ResourceCardItem_module_default.cardDate, children: item.date })
|
|
1279
|
+
] }),
|
|
1280
|
+
/* @__PURE__ */ jsxRuntime.jsx(ConditionalWrapper, { condition: hasHref, wrapper: linkWrapper, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: ResourceCardItem_module_default.cardListRight, children: [
|
|
1281
|
+
/* @__PURE__ */ jsxRuntime.jsx(ResourceIcon, { image: item.image, type: item.type }),
|
|
1282
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: ResourceCardItem_module_default.cardTitle, children: item.title })
|
|
1283
|
+
] }) })
|
|
1284
|
+
] });
|
|
1285
|
+
};
|
|
1286
|
+
|
|
1287
|
+
// src/components/Sidebar/Sidebar.module.scss
|
|
1288
|
+
var Sidebar_module_default = {
|
|
1289
|
+
sidebar: "Sidebar_module_sidebar",
|
|
1290
|
+
sidebarItem: "Sidebar_module_sidebarItem",
|
|
1291
|
+
active: "Sidebar_module_active",
|
|
1292
|
+
sidebarMobile: "Sidebar_module_sidebarMobile",
|
|
1293
|
+
hamburger: "Sidebar_module_hamburger",
|
|
1294
|
+
notificationDot: "Sidebar_module_notificationDot"
|
|
1295
|
+
};
|
|
1296
|
+
var Sidebar = ({
|
|
1297
|
+
categories,
|
|
1298
|
+
isMobile,
|
|
1299
|
+
onToggle,
|
|
1300
|
+
selectedIndex,
|
|
1301
|
+
onSelect
|
|
1302
|
+
}) => {
|
|
1303
|
+
if (isMobile) {
|
|
1304
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: Sidebar_module_default.sidebarMobile, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1305
|
+
"button",
|
|
1306
|
+
{
|
|
1307
|
+
type: "button",
|
|
1308
|
+
className: Sidebar_module_default.hamburger,
|
|
1309
|
+
"aria-label": "Open categories",
|
|
1310
|
+
onClick: onToggle,
|
|
1311
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "menuBlack", size: 20, "aria-hidden": "true" })
|
|
1312
|
+
}
|
|
1313
|
+
) });
|
|
1314
|
+
}
|
|
1315
|
+
return /* @__PURE__ */ jsxRuntime.jsx("nav", { className: Sidebar_module_default.sidebar, "aria-label": "Resource categories", children: /* @__PURE__ */ jsxRuntime.jsx("ul", { children: categories.map((cat, i) => {
|
|
1316
|
+
var _a;
|
|
1317
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1318
|
+
"li",
|
|
1319
|
+
{
|
|
1320
|
+
className: clsx25__default.default(Sidebar_module_default.sidebarItem, i === selectedIndex && Sidebar_module_default.active),
|
|
1321
|
+
role: "button",
|
|
1322
|
+
tabIndex: 0,
|
|
1323
|
+
"aria-pressed": i === selectedIndex,
|
|
1324
|
+
onClick: () => onSelect(i),
|
|
1325
|
+
onKeyDown: (e) => {
|
|
1326
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
1327
|
+
e.preventDefault();
|
|
1328
|
+
onSelect(i);
|
|
1329
|
+
}
|
|
1330
|
+
},
|
|
1331
|
+
children: [
|
|
1332
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: cat.label }),
|
|
1333
|
+
cat.hasNotification && /* @__PURE__ */ jsxRuntime.jsx("span", { className: Sidebar_module_default.notificationDot, "aria-label": "New" })
|
|
1334
|
+
]
|
|
1335
|
+
},
|
|
1336
|
+
(_a = cat.label) != null ? _a : i
|
|
1337
|
+
);
|
|
1338
|
+
}) }) });
|
|
1339
|
+
};
|
|
1340
|
+
|
|
987
1341
|
// src/components/LogoBar/LogoBar.module.scss
|
|
988
1342
|
var LogoBar_module_default = {
|
|
989
1343
|
logoBar: "LogoBar_module_logoBar",
|
|
@@ -993,7 +1347,7 @@ var LogoBar_module_default = {
|
|
|
993
1347
|
};
|
|
994
1348
|
var LogoBar = ({ className, items }) => {
|
|
995
1349
|
if (!items || items.length === 0) return null;
|
|
996
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1350
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx25__default.default(LogoBar_module_default.logoBar, className), children: items.map((item, key) => {
|
|
997
1351
|
return /* @__PURE__ */ jsxRuntime.jsx(Anchor, { href: item.url, isExternal: item.isExternal, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: LogoBar_module_default.logoWrapper, children: [
|
|
998
1352
|
item.logo && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: LogoBar_module_default.logo }, item.logo)),
|
|
999
1353
|
item.hoverLogo && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: LogoBar_module_default.logoHover }, item.hoverLogo))
|
|
@@ -1079,13 +1433,13 @@ var CardCollection = ({
|
|
|
1079
1433
|
Container,
|
|
1080
1434
|
{
|
|
1081
1435
|
ref: container,
|
|
1082
|
-
className:
|
|
1436
|
+
className: clsx25__default.default(CardCollection_module_default["card-collection"], CardCollection_module_default[variant], className),
|
|
1083
1437
|
children: [
|
|
1084
1438
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: CardCollection_module_default.content, children: [
|
|
1085
1439
|
titleNode && /* @__PURE__ */ jsxRuntime.jsx("h2", { children: titleNode }),
|
|
1086
1440
|
subtitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "subheading", children: subtitleNode })
|
|
1087
1441
|
] }),
|
|
1088
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: CardCollection_module_default.wrapper, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
1442
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: CardCollection_module_default.wrapper, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx25__default.default(CardCollection_module_default.cardWrapper, { [CardCollection_module_default["is-expanded"]]: isExpanded }), children: [
|
|
1089
1443
|
visibleCards.map((card, key) => /* @__PURE__ */ jsxRuntime.jsx(Card2, __spreadValues({ className: CardCollection_module_default.card, variant: theme }, card), key)),
|
|
1090
1444
|
isExamCard && hiddenCards.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { ref: revealWrapper, className: CardCollection_module_default["reveal-wrapper"], children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: CardCollection_module_default["reveal-inner"], children: hiddenCards.map((card, key) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1091
1445
|
Card2,
|
|
@@ -1186,7 +1540,7 @@ var ContactModule = ({
|
|
|
1186
1540
|
},
|
|
1187
1541
|
{ scope: containerRef, dependencies: [blurred, animateBlur] }
|
|
1188
1542
|
);
|
|
1189
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref: containerRef, className:
|
|
1543
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref: containerRef, className: clsx25__default.default(ContactModule_module_default["contact-module"], className), children: [
|
|
1190
1544
|
blurred && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1191
1545
|
"div",
|
|
1192
1546
|
{
|
|
@@ -1201,8 +1555,8 @@ var ContactModule = ({
|
|
|
1201
1555
|
/* @__PURE__ */ jsxRuntime.jsxs(Container, { className: ContactModule_module_default.container, children: [
|
|
1202
1556
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: ContactModule_module_default.wrapper, children: [
|
|
1203
1557
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: ContactModule_module_default.content, children: [
|
|
1204
|
-
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1205
|
-
subtitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1558
|
+
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx25__default.default(ContactModule_module_default.title, "h1"), children: titleNode }),
|
|
1559
|
+
subtitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx25__default.default(ContactModule_module_default.subtitle, "subheading"), children: subtitleNode })
|
|
1206
1560
|
] }),
|
|
1207
1561
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: ContactModule_module_default["cta-wrapper"], children: ctas == null ? void 0 : ctas.map((cta, key) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1208
1562
|
Button,
|
|
@@ -1263,7 +1617,7 @@ var Footer = ({
|
|
|
1263
1617
|
disclaimer: FooterDisclaimer
|
|
1264
1618
|
});
|
|
1265
1619
|
const titleNode = (_a = slots.disclaimer) != null ? _a : disclaimer;
|
|
1266
|
-
return /* @__PURE__ */ jsxRuntime.jsx("footer", { className:
|
|
1620
|
+
return /* @__PURE__ */ jsxRuntime.jsx("footer", { className: clsx25__default.default(Footer_module_default.footer, className), children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: Footer_module_default.container, children: [
|
|
1267
1621
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: Footer_module_default.bottom, children: [
|
|
1268
1622
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: Footer_module_default["bottom-left"], children: [
|
|
1269
1623
|
supporters.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: Footer_module_default.supporters, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: Footer_module_default["supporters-logos"], children: supporters.map(
|
|
@@ -1279,7 +1633,7 @@ var Footer = ({
|
|
|
1279
1633
|
index
|
|
1280
1634
|
) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: Footer_module_default["supporter-link-primary"], children: /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({}, supporter.image)) }, index)
|
|
1281
1635
|
) }) }),
|
|
1282
|
-
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1636
|
+
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx25__default.default(Footer_module_default.disclaimer, "p"), children: titleNode }),
|
|
1283
1637
|
copyright && /* @__PURE__ */ jsxRuntime.jsx("p", { className: Footer_module_default.copyright, children: copyright })
|
|
1284
1638
|
] }),
|
|
1285
1639
|
columns.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("nav", { className: Footer_module_default["bottom-right"], children: columns.map((column, colIndex) => /* @__PURE__ */ jsxRuntime.jsx("ul", { className: Footer_module_default["nav-list"], children: column.map((link) => /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1345,7 +1699,7 @@ var HeroBanner = ({
|
|
|
1345
1699
|
var _a, _b;
|
|
1346
1700
|
const { is } = useViewPort_default();
|
|
1347
1701
|
const isTabletBelow = is("tablet", "below");
|
|
1348
|
-
const
|
|
1702
|
+
const vMainHeroBanner = variant === "mainHeroBanner";
|
|
1349
1703
|
const vBannerPodcast = variant === "bannerPodcast";
|
|
1350
1704
|
const isTitleLogo = (logo == null ? void 0 : logo.variant) === "titleLogo";
|
|
1351
1705
|
const GRADIENT_BANDS = [
|
|
@@ -1360,7 +1714,7 @@ var HeroBanner = ({
|
|
|
1360
1714
|
});
|
|
1361
1715
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
1362
1716
|
const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
|
|
1363
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
1717
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx25__default.default(HeroBanner_module_default.heroBanner, HeroBanner_module_default[variant], className), children: [
|
|
1364
1718
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: HeroBanner_module_default.container, children: [
|
|
1365
1719
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: HeroBanner_module_default.banner, children: [
|
|
1366
1720
|
(titleNode || subtitleNode) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: HeroBanner_module_default.text, children: [
|
|
@@ -1370,7 +1724,7 @@ var HeroBanner = ({
|
|
|
1370
1724
|
{
|
|
1371
1725
|
tag: "h2",
|
|
1372
1726
|
promoteToH1,
|
|
1373
|
-
className:
|
|
1727
|
+
className: clsx25__default.default(HeroBanner_module_default.title, vBannerPodcast ? "h3" : "h1"),
|
|
1374
1728
|
children: titleNode
|
|
1375
1729
|
}
|
|
1376
1730
|
),
|
|
@@ -1379,7 +1733,7 @@ var HeroBanner = ({
|
|
|
1379
1733
|
{
|
|
1380
1734
|
tag: "div",
|
|
1381
1735
|
promoteToH1: promoteToH1 && !titleNode,
|
|
1382
|
-
className:
|
|
1736
|
+
className: clsx25__default.default(HeroBanner_module_default.subtitle, "subheading"),
|
|
1383
1737
|
children: subtitleNode
|
|
1384
1738
|
}
|
|
1385
1739
|
)
|
|
@@ -1390,7 +1744,7 @@ var HeroBanner = ({
|
|
|
1390
1744
|
{
|
|
1391
1745
|
href: cta2.url,
|
|
1392
1746
|
isExternal: cta2.isExternal,
|
|
1393
|
-
variant: key % 2 ?
|
|
1747
|
+
variant: key % 2 ? vMainHeroBanner && !isTabletBelow ? "grey" : "nofill" : "primary",
|
|
1394
1748
|
fullWidth: isTabletBelow,
|
|
1395
1749
|
logo: cta2.logo,
|
|
1396
1750
|
children: cta2.label
|
|
@@ -1406,7 +1760,7 @@ var HeroBanner = ({
|
|
|
1406
1760
|
__spreadValues({
|
|
1407
1761
|
className: HeroBanner_module_default.brandsStrip,
|
|
1408
1762
|
variant: "light",
|
|
1409
|
-
size: isTabletBelow ||
|
|
1763
|
+
size: isTabletBelow || vMainHeroBanner ? void 0 : "small"
|
|
1410
1764
|
}, brands)
|
|
1411
1765
|
),
|
|
1412
1766
|
backgroundImage && !vBannerPodcast && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: HeroBanner_module_default.backgroundImage }, backgroundImage))
|
|
@@ -1456,7 +1810,7 @@ var HeroBannerCarousel = ({
|
|
|
1456
1810
|
const [swiperInstance, setSwiperInstance] = React62.useState(null);
|
|
1457
1811
|
const [activeIndex, setActiveIndex] = React62.useState(0);
|
|
1458
1812
|
if (!items.length) return null;
|
|
1459
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1813
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx25__default.default(HeroBannerCarousel_module_default.heroBannerCarousel, className), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: HeroBannerCarousel_module_default.inner, children: [
|
|
1460
1814
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: HeroBannerCarousel_module_default.swiperContainer, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1461
1815
|
react$1.Swiper,
|
|
1462
1816
|
{
|
|
@@ -1503,7 +1857,7 @@ var HeroBannerCarousel = ({
|
|
|
1503
1857
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: HeroBannerCarousel_module_default.pagination, children: items.map((_, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1504
1858
|
"button",
|
|
1505
1859
|
{
|
|
1506
|
-
className:
|
|
1860
|
+
className: clsx25__default.default(HeroBannerCarousel_module_default.dot, index === activeIndex && HeroBannerCarousel_module_default.dotActive),
|
|
1507
1861
|
onClick: () => swiperInstance == null ? void 0 : swiperInstance.slideTo(index),
|
|
1508
1862
|
"aria-label": `Go to slide ${index + 1}`
|
|
1509
1863
|
},
|
|
@@ -1583,7 +1937,7 @@ var AccordionItem = ({
|
|
|
1583
1937
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1584
1938
|
"div",
|
|
1585
1939
|
{
|
|
1586
|
-
className:
|
|
1940
|
+
className: clsx25__default.default(
|
|
1587
1941
|
Accordion_module_default.accordionItem,
|
|
1588
1942
|
{
|
|
1589
1943
|
[Accordion_module_default.accordionItemOpen]: isOpen
|
|
@@ -1594,18 +1948,18 @@ var AccordionItem = ({
|
|
|
1594
1948
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1595
1949
|
"button",
|
|
1596
1950
|
{
|
|
1597
|
-
className:
|
|
1951
|
+
className: clsx25__default.default(Accordion_module_default.accordionHeader, {
|
|
1598
1952
|
[Accordion_module_default.accordionHeaderOpen]: isOpen
|
|
1599
1953
|
}),
|
|
1600
1954
|
onClick: handleToggle,
|
|
1601
1955
|
"aria-expanded": isOpen,
|
|
1602
1956
|
"aria-label": `Toggle ${title}`,
|
|
1603
1957
|
children: [
|
|
1604
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: Accordion_module_default.accordionHeaderLeft, children: /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
1958
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: Accordion_module_default.accordionHeaderLeft, children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: clsx25__default.default("body", Accordion_module_default.accordionTitle), children: title }) }),
|
|
1605
1959
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1606
1960
|
"span",
|
|
1607
1961
|
{
|
|
1608
|
-
className:
|
|
1962
|
+
className: clsx25__default.default(Accordion_module_default.accordionChevron, {
|
|
1609
1963
|
[Accordion_module_default.accordionChevronOpen]: isOpen
|
|
1610
1964
|
}),
|
|
1611
1965
|
children: isOpen ? /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "filledChevronUpBlack", size: 40 }) : /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "circleChevronDown", size: 40 })
|
|
@@ -1657,7 +2011,7 @@ var Accordion = ({
|
|
|
1657
2011
|
if (items.length === 0) {
|
|
1658
2012
|
return null;
|
|
1659
2013
|
}
|
|
1660
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
2014
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx25__default.default(Accordion_module_default.accordion, className), children: items.map((item) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1661
2015
|
AccordionItem,
|
|
1662
2016
|
{
|
|
1663
2017
|
id: item.id,
|
|
@@ -1747,7 +2101,7 @@ var InternalBrandsTab = (props) => {
|
|
|
1747
2101
|
};
|
|
1748
2102
|
})) || [];
|
|
1749
2103
|
}, [tabs]);
|
|
1750
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(Container, { className:
|
|
2104
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: clsx25__default.default(InternalBrandsTab_module_default.internalBrandsTab, className), children: [
|
|
1751
2105
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: InternalBrandsTab_module_default.textsContainer, children: [
|
|
1752
2106
|
title && /* @__PURE__ */ jsxRuntime.jsx(Text, { tag: "h2", className: InternalBrandsTab_module_default.title, children: title }),
|
|
1753
2107
|
subTitle && /* @__PURE__ */ jsxRuntime.jsx("div", { className: InternalBrandsTab_module_default.subTitle, children: subTitle })
|
|
@@ -1763,7 +2117,7 @@ var InternalBrandsTab = (props) => {
|
|
|
1763
2117
|
},
|
|
1764
2118
|
index
|
|
1765
2119
|
)) }),
|
|
1766
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
2120
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx25__default.default(InternalBrandsTab_module_default.contentArea), children: ((_a = tabs == null ? void 0 : tabs[activeIndex]) == null ? void 0 : _a.topContent) && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1767
2121
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: InternalBrandsTab_module_default.topContent, children: [
|
|
1768
2122
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
1769
2123
|
((_b = tabs[activeIndex].topContent) == null ? void 0 : _b.title) && /* @__PURE__ */ jsxRuntime.jsx("p", { className: InternalBrandsTab_module_default.topContentTitle, children: (_c = tabs[activeIndex].topContent) == null ? void 0 : _c.title }),
|
|
@@ -1854,17 +2208,17 @@ var MiniBanner = ({
|
|
|
1854
2208
|
const pretitleNode = (_a = slots.pretitle) != null ? _a : pretitle;
|
|
1855
2209
|
const titleNode = (_b = slots.title) != null ? _b : title;
|
|
1856
2210
|
const subtitleNode = (_c = slots.subtitle) != null ? _c : subtitle;
|
|
1857
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
2211
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx25__default.default(MiniBanner_module_default.minibanner, MiniBanner_module_default[variant], className), children: [
|
|
1858
2212
|
((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__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: MiniBanner_module_default.background }, background)),
|
|
1859
2213
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: MiniBanner_module_default.wrapper, children: [
|
|
1860
2214
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: MiniBanner_module_default.textContainer, children: [
|
|
1861
2215
|
(logo == null ? void 0 : logo.src) && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: MiniBanner_module_default.logo }, logo)),
|
|
1862
|
-
pretitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1863
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: MiniBanner_module_default.headingWrapper, children: titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
2216
|
+
pretitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx25__default.default(MiniBanner_module_default.pretitle, "small"), children: pretitleNode }),
|
|
2217
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: MiniBanner_module_default.headingWrapper, children: titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx25__default.default(MiniBanner_module_default.title, isMiniBannerTextLeft ? "h1" : "h4"), children: titleNode }) }),
|
|
1864
2218
|
subtitleNode && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1865
2219
|
"div",
|
|
1866
2220
|
{
|
|
1867
|
-
className:
|
|
2221
|
+
className: clsx25__default.default(MiniBanner_module_default.title, {
|
|
1868
2222
|
subheading: isMiniBannerNoBG || isMiniBannerTextLeft,
|
|
1869
2223
|
h1: !isMiniBannerNoBG && !isMiniBannerTextLeft
|
|
1870
2224
|
}),
|
|
@@ -1935,14 +2289,14 @@ var MiniSectionCta = ({
|
|
|
1935
2289
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1936
2290
|
"div",
|
|
1937
2291
|
{
|
|
1938
|
-
className:
|
|
2292
|
+
className: clsx25__default.default(MiniSectionCta_module_default.miniSectionCta, MiniSectionCta_module_default[variant], theme && MiniSectionCta_module_default[theme], className),
|
|
1939
2293
|
children: /* @__PURE__ */ jsxRuntime.jsx(Container, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: MiniSectionCta_module_default.wrapper, children: [
|
|
1940
2294
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: MiniSectionCta_module_default.col, children: [
|
|
1941
2295
|
titleNode && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: variant === "BgColorBlack" || variant === "BgColorGrey" ? "h3" : "h2", children: titleNode }),
|
|
1942
2296
|
subtitleNode && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1943
2297
|
"div",
|
|
1944
2298
|
{
|
|
1945
|
-
className:
|
|
2299
|
+
className: clsx25__default.default(MiniSectionCta_module_default.subtitle, variant === "infoCallout" ? "h4" : "subheading"),
|
|
1946
2300
|
children: subtitleNode
|
|
1947
2301
|
}
|
|
1948
2302
|
)
|
|
@@ -2007,7 +2361,7 @@ var PracticePathCards = ({
|
|
|
2007
2361
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
2008
2362
|
const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
|
|
2009
2363
|
const footerNode = (_c = slots.footer) != null ? _c : footer;
|
|
2010
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
2364
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx25__default.default(PracticePathCards_module_default["practice-path-cards"], className), children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: PracticePathCards_module_default.container, children: [
|
|
2011
2365
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: PracticePathCards_module_default.wrapper, children: [
|
|
2012
2366
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: PracticePathCards_module_default.content, children: [
|
|
2013
2367
|
titleNode && /* @__PURE__ */ jsxRuntime.jsx("h2", { children: titleNode }),
|
|
@@ -2061,8 +2415,8 @@ var Teaser5050With3Text = ({
|
|
|
2061
2415
|
title: Teaser5050With3TextTitle
|
|
2062
2416
|
});
|
|
2063
2417
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
2064
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
2065
|
-
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
2418
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx25__default.default(Teaser5050With3Text_module_default["teaser5050-3text"], Teaser5050With3Text_module_default[variant], className), children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: Teaser5050With3Text_module_default.container, children: [
|
|
2419
|
+
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx25__default.default(Teaser5050With3Text_module_default.title, "h3"), children: titleNode }),
|
|
2066
2420
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: Teaser5050With3Text_module_default.content, children: [
|
|
2067
2421
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: Teaser5050With3Text_module_default.cards, children: cards == null ? void 0 : cards.map((card, key) => /* @__PURE__ */ jsxRuntime.jsx(InfoCard2, __spreadValues({}, card), key)) }),
|
|
2068
2422
|
image && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: Teaser5050With3Text_module_default.image }, image))
|
|
@@ -2112,12 +2466,12 @@ var Teaser5050WithCta = ({
|
|
|
2112
2466
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2113
2467
|
"div",
|
|
2114
2468
|
{
|
|
2115
|
-
className:
|
|
2469
|
+
className: clsx25__default.default(Teaser5050WithCta_module_default.teaser5050, Teaser5050WithCta_module_default[variant], className),
|
|
2116
2470
|
style: { backgroundColor: bgColor ? bgColor : "#ffffff" },
|
|
2117
2471
|
children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: Teaser5050WithCta_module_default.container, children: [
|
|
2118
2472
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: Teaser5050WithCta_module_default.wrapper, children: [
|
|
2119
2473
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: Teaser5050WithCta_module_default.content, children: [
|
|
2120
|
-
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
2474
|
+
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx25__default.default(Teaser5050WithCta_module_default.title, "h3"), children: titleNode }),
|
|
2121
2475
|
subtitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "subheading", children: subtitleNode })
|
|
2122
2476
|
] }),
|
|
2123
2477
|
(ctas == null ? void 0 : ctas.length) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: Teaser5050WithCta_module_default.ctaWrapper, children: ctas.map((cta, key) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -2181,7 +2535,7 @@ var UpcomingEventCard = ({
|
|
|
2181
2535
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2182
2536
|
"article",
|
|
2183
2537
|
{
|
|
2184
|
-
className:
|
|
2538
|
+
className: clsx25__default.default(
|
|
2185
2539
|
"card",
|
|
2186
2540
|
UpcomingEventCard_module_default["event-card"],
|
|
2187
2541
|
UpcomingEventCard_module_default[direction],
|
|
@@ -2189,26 +2543,26 @@ var UpcomingEventCard = ({
|
|
|
2189
2543
|
className
|
|
2190
2544
|
),
|
|
2191
2545
|
children: [
|
|
2192
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
2193
|
-
showImage && image && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadProps(__spreadValues({}, image), { className:
|
|
2546
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx25__default.default("card-content", UpcomingEventCard_module_default["event-card-content"]), children: [
|
|
2547
|
+
showImage && image && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadProps(__spreadValues({}, image), { className: clsx25__default.default("card-image", UpcomingEventCard_module_default["event-card-image"]) })),
|
|
2194
2548
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
2195
2549
|
"div",
|
|
2196
2550
|
{
|
|
2197
|
-
className:
|
|
2551
|
+
className: clsx25__default.default(
|
|
2198
2552
|
"card-text-content",
|
|
2199
2553
|
UpcomingEventCard_module_default["event-card-text-content"],
|
|
2200
2554
|
(!showImage || !hasImage) && UpcomingEventCard_module_default["event-card-show-image"]
|
|
2201
2555
|
),
|
|
2202
2556
|
children: [
|
|
2203
2557
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: UpcomingEventCard_module_default.date, children: date }),
|
|
2204
|
-
title && /* @__PURE__ */ jsxRuntime.jsx("h3", { className:
|
|
2558
|
+
title && /* @__PURE__ */ jsxRuntime.jsx("h3", { className: clsx25__default.default("card-text-title"), children: title }),
|
|
2205
2559
|
location && /* @__PURE__ */ jsxRuntime.jsx("span", { className: UpcomingEventCard_module_default.location, children: location }),
|
|
2206
|
-
description && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
2560
|
+
description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx25__default.default("card-text-description", UpcomingEventCard_module_default.description), children: description }),
|
|
2207
2561
|
cta && cta.url && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2208
2562
|
Button,
|
|
2209
2563
|
{
|
|
2210
2564
|
variant: "secondary",
|
|
2211
|
-
className:
|
|
2565
|
+
className: clsx25__default.default(
|
|
2212
2566
|
"card-cta",
|
|
2213
2567
|
UpcomingEventCard_module_default["event-card-cta"],
|
|
2214
2568
|
!hasCTAandImage && UpcomingEventCard_module_default.hidden
|
|
@@ -2227,12 +2581,12 @@ var UpcomingEventCard = ({
|
|
|
2227
2581
|
cta && cta.url && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2228
2582
|
"div",
|
|
2229
2583
|
{
|
|
2230
|
-
className:
|
|
2584
|
+
className: clsx25__default.default("card-footer", UpcomingEventCard_module_default["event-card-footer"], hasImage && UpcomingEventCard_module_default.hidden),
|
|
2231
2585
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2232
2586
|
Button,
|
|
2233
2587
|
{
|
|
2234
2588
|
variant: "secondary",
|
|
2235
|
-
className:
|
|
2589
|
+
className: clsx25__default.default("card-cta", UpcomingEventCard_module_default["event-card-cta"]),
|
|
2236
2590
|
fullWidth: isBelowMobile,
|
|
2237
2591
|
href: cta.url,
|
|
2238
2592
|
icon: cta.icon,
|
|
@@ -2269,7 +2623,7 @@ var Carousel = (_a) => {
|
|
|
2269
2623
|
},
|
|
2270
2624
|
role: "region",
|
|
2271
2625
|
"aria-label": ariaLabel,
|
|
2272
|
-
className:
|
|
2626
|
+
className: clsx25__default.default(Carousel_module_default.carousel, className),
|
|
2273
2627
|
spaceBetween: 0,
|
|
2274
2628
|
slidesPerView: "auto",
|
|
2275
2629
|
modules: [modules.FreeMode, modules.A11y],
|
|
@@ -2279,7 +2633,7 @@ var Carousel = (_a) => {
|
|
|
2279
2633
|
children: slides.map((slide, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2280
2634
|
react$1.SwiperSlide,
|
|
2281
2635
|
{
|
|
2282
|
-
className:
|
|
2636
|
+
className: clsx25__default.default(Carousel_module_default["carousel-item"], props.slideClass),
|
|
2283
2637
|
children: slide
|
|
2284
2638
|
},
|
|
2285
2639
|
index
|
|
@@ -2329,13 +2683,13 @@ var EventList = ({
|
|
|
2329
2683
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2330
2684
|
"div",
|
|
2331
2685
|
{
|
|
2332
|
-
className:
|
|
2686
|
+
className: clsx25__default.default("event-list-module", EventList_module_default["event-list-module"], className),
|
|
2333
2687
|
style: {
|
|
2334
2688
|
backgroundColor
|
|
2335
2689
|
},
|
|
2336
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className:
|
|
2690
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: clsx25__default.default(EventList_module_default["event-list-container"]), children: [
|
|
2337
2691
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: EventList_module_default["event-list-header-container"], children: [
|
|
2338
|
-
titleNode && /* @__PURE__ */ jsxRuntime.jsx("h2", { className:
|
|
2692
|
+
titleNode && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: clsx25__default.default(EventList_module_default["event-list-title"]), children: titleNode }),
|
|
2339
2693
|
cta && cta.url && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2340
2694
|
Button,
|
|
2341
2695
|
{
|
|
@@ -2352,7 +2706,7 @@ var EventList = ({
|
|
|
2352
2706
|
Carousel,
|
|
2353
2707
|
{
|
|
2354
2708
|
"aria-label": "Upcoming events",
|
|
2355
|
-
wrapperClass:
|
|
2709
|
+
wrapperClass: clsx25__default.default(EventList_module_default["carousel-wrapper"], EventList_module_default[variant]),
|
|
2356
2710
|
slideClass: EventList_module_default["carousel-list-item"],
|
|
2357
2711
|
spaceBetween: 16,
|
|
2358
2712
|
slides: items.map((item) => {
|
|
@@ -2360,7 +2714,7 @@ var EventList = ({
|
|
|
2360
2714
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2361
2715
|
UpcomingEventCard,
|
|
2362
2716
|
__spreadValues({
|
|
2363
|
-
className:
|
|
2717
|
+
className: clsx25__default.default(EventList_module_default["event-card"]),
|
|
2364
2718
|
direction: "vertical",
|
|
2365
2719
|
showImage: false
|
|
2366
2720
|
}, item),
|
|
@@ -2373,17 +2727,17 @@ var EventList = ({
|
|
|
2373
2727
|
"ul",
|
|
2374
2728
|
{
|
|
2375
2729
|
"aria-label": "Upcoming events",
|
|
2376
|
-
className:
|
|
2730
|
+
className: clsx25__default.default(EventList_module_default["event-list-wrapper"], EventList_module_default["horizontal"], EventList_module_default[variant]),
|
|
2377
2731
|
children: items == null ? void 0 : items.map((item, index) => {
|
|
2378
2732
|
var _a2, _b, _c;
|
|
2379
2733
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2380
2734
|
"li",
|
|
2381
2735
|
{
|
|
2382
|
-
className:
|
|
2736
|
+
className: clsx25__default.default(EventList_module_default["card-list-item"]),
|
|
2383
2737
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2384
2738
|
UpcomingEventCard,
|
|
2385
2739
|
__spreadProps(__spreadValues({}, item), {
|
|
2386
|
-
className:
|
|
2740
|
+
className: clsx25__default.default(EventList_module_default["card-item"]),
|
|
2387
2741
|
showImage: false,
|
|
2388
2742
|
direction: "vertical"
|
|
2389
2743
|
})
|
|
@@ -2398,7 +2752,7 @@ var EventList = ({
|
|
|
2398
2752
|
"ul",
|
|
2399
2753
|
{
|
|
2400
2754
|
"aria-label": "Upcoming events",
|
|
2401
|
-
className:
|
|
2755
|
+
className: clsx25__default.default(EventList_module_default["event-list-wrapper"], EventList_module_default[listDirection]),
|
|
2402
2756
|
children: items == null ? void 0 : items.map((item, index) => {
|
|
2403
2757
|
var _a2, _b, _c;
|
|
2404
2758
|
return /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx(UpcomingEventCard, __spreadProps(__spreadValues({}, item), { direction: cardDirection })) }, (_c = (_b = (_a2 = item.title) != null ? _a2 : item.date) != null ? _b : item.location) != null ? _c : index);
|
|
@@ -2445,9 +2799,9 @@ var TextEvent = (props) => {
|
|
|
2445
2799
|
});
|
|
2446
2800
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
2447
2801
|
const richTextNode = (_b = slots.richText) != null ? _b : richText;
|
|
2448
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(Container, { className:
|
|
2802
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: clsx25__default.default(TextEvent_module_default.textEvent, className), children: [
|
|
2449
2803
|
/* @__PURE__ */ jsxRuntime.jsx(Text, { tag: "h2", className: TextEvent_module_default.title, children: titleNode }),
|
|
2450
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
2804
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx25__default.default(TextEvent_module_default.richText, TextEvent_module_default[variant != null ? variant : ""]), children: richTextNode })
|
|
2451
2805
|
] });
|
|
2452
2806
|
};
|
|
2453
2807
|
|
|
@@ -2478,7 +2832,7 @@ var TextBody = (props) => {
|
|
|
2478
2832
|
});
|
|
2479
2833
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
2480
2834
|
const bodyNode = (_b = slots.body) != null ? _b : body;
|
|
2481
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(Container, { className:
|
|
2835
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: clsx25__default.default(TextBody_module_default.textBody, className), children: [
|
|
2482
2836
|
titleNode && /* @__PURE__ */ jsxRuntime.jsx(Text, { tag: "h2", className: TextBody_module_default.title, children: titleNode }),
|
|
2483
2837
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: TextBody_module_default.body, children: bodyNode })
|
|
2484
2838
|
] });
|
|
@@ -2521,7 +2875,7 @@ var TextCenterCtaInBottom = ({
|
|
|
2521
2875
|
});
|
|
2522
2876
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
2523
2877
|
const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
|
|
2524
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
2878
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx25__default.default(TextCenterCtaInBottom_module_default.textCenterCta, className), children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: TextCenterCtaInBottom_module_default.container, children: [
|
|
2525
2879
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: TextCenterCtaInBottom_module_default.content, children: [
|
|
2526
2880
|
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: TextCenterCtaInBottom_module_default.title, children: titleNode }),
|
|
2527
2881
|
subtitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: TextCenterCtaInBottom_module_default.subtitle, children: subtitleNode })
|
|
@@ -2529,7 +2883,7 @@ var TextCenterCtaInBottom = ({
|
|
|
2529
2883
|
!!(ctas == null ? void 0 : ctas.length) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2530
2884
|
"div",
|
|
2531
2885
|
{
|
|
2532
|
-
className:
|
|
2886
|
+
className: clsx25__default.default(
|
|
2533
2887
|
TextCenterCtaInBottom_module_default.ctaWrapper,
|
|
2534
2888
|
ctas.every((cta) => !cta.label && cta.logo) && TextCenterCtaInBottom_module_default.iconOnly
|
|
2535
2889
|
),
|
|
@@ -2559,425 +2913,19 @@ var TextCenterCtaInBottom2 = Object.assign(TextCenterCtaInBottom, {
|
|
|
2559
2913
|
// src/widgets/ResourcesGridList/ResourcesGridList.module.scss
|
|
2560
2914
|
var ResourcesGridList_module_default = {
|
|
2561
2915
|
widget: "ResourcesGridList_module_widget",
|
|
2562
|
-
filterBar: "ResourcesGridList_module_filterBar",
|
|
2563
|
-
viewToggle: "ResourcesGridList_module_viewToggle",
|
|
2564
|
-
filterActions: "ResourcesGridList_module_filterActions",
|
|
2565
|
-
chip: "ResourcesGridList_module_chip",
|
|
2566
|
-
active: "ResourcesGridList_module_active",
|
|
2567
|
-
chipLabel: "ResourcesGridList_module_chipLabel",
|
|
2568
|
-
dropdownWrapper: "ResourcesGridList_module_dropdownWrapper",
|
|
2569
|
-
searchExpanded: "ResourcesGridList_module_searchExpanded",
|
|
2570
|
-
searchExpand: "ResourcesGridList_module_searchExpand",
|
|
2571
|
-
searchCollapsing: "ResourcesGridList_module_searchCollapsing",
|
|
2572
|
-
searchCollapse: "ResourcesGridList_module_searchCollapse",
|
|
2573
|
-
searchIconInner: "ResourcesGridList_module_searchIconInner",
|
|
2574
|
-
searchInput: "ResourcesGridList_module_searchInput",
|
|
2575
|
-
searchClear: "ResourcesGridList_module_searchClear",
|
|
2576
|
-
dropdownPanel: "ResourcesGridList_module_dropdownPanel",
|
|
2577
|
-
searchPanel: "ResourcesGridList_module_searchPanel",
|
|
2578
|
-
dropdownOption: "ResourcesGridList_module_dropdownOption",
|
|
2579
|
-
selected: "ResourcesGridList_module_selected",
|
|
2580
2916
|
content: "ResourcesGridList_module_content",
|
|
2581
2917
|
mobileSidebarOverlay: "ResourcesGridList_module_mobileSidebarOverlay",
|
|
2582
2918
|
mobileSidebarOverlayOpen: "ResourcesGridList_module_mobileSidebarOverlayOpen",
|
|
2583
2919
|
mobileCategoriesPanel: "ResourcesGridList_module_mobileCategoriesPanel",
|
|
2584
2920
|
mobileCategoriesList: "ResourcesGridList_module_mobileCategoriesList",
|
|
2585
2921
|
mobileSidebarItem: "ResourcesGridList_module_mobileSidebarItem",
|
|
2922
|
+
active: "ResourcesGridList_module_active",
|
|
2586
2923
|
mobileSidebarCloseColumn: "ResourcesGridList_module_mobileSidebarCloseColumn",
|
|
2587
|
-
sidebar: "ResourcesGridList_module_sidebar",
|
|
2588
|
-
sidebarItem: "ResourcesGridList_module_sidebarItem",
|
|
2589
|
-
sidebarMobile: "ResourcesGridList_module_sidebarMobile",
|
|
2590
2924
|
hamburger: "ResourcesGridList_module_hamburger",
|
|
2591
2925
|
cardsArea: "ResourcesGridList_module_cardsArea",
|
|
2592
2926
|
grid: "ResourcesGridList_module_grid",
|
|
2593
2927
|
list: "ResourcesGridList_module_list",
|
|
2594
|
-
|
|
2595
|
-
cardGrid: "ResourcesGridList_module_cardGrid",
|
|
2596
|
-
cardBody: "ResourcesGridList_module_cardBody",
|
|
2597
|
-
cardIconTitle: "ResourcesGridList_module_cardIconTitle",
|
|
2598
|
-
cardTitle: "ResourcesGridList_module_cardTitle",
|
|
2599
|
-
cardMeta: "ResourcesGridList_module_cardMeta",
|
|
2600
|
-
cardDate: "ResourcesGridList_module_cardDate",
|
|
2601
|
-
cardList: "ResourcesGridList_module_cardList",
|
|
2602
|
-
cardListLeft: "ResourcesGridList_module_cardListLeft",
|
|
2603
|
-
cardListRight: "ResourcesGridList_module_cardListRight",
|
|
2604
|
-
notificationDot: "ResourcesGridList_module_notificationDot",
|
|
2605
|
-
iconWrapper: "ResourcesGridList_module_iconWrapper",
|
|
2606
|
-
pagination: "ResourcesGridList_module_pagination",
|
|
2607
|
-
pageArrow: "ResourcesGridList_module_pageArrow",
|
|
2608
|
-
pageDotActive: "ResourcesGridList_module_pageDotActive",
|
|
2609
|
-
pageDot: "ResourcesGridList_module_pageDot"
|
|
2610
|
-
};
|
|
2611
|
-
var FILTER_OPTIONS = [
|
|
2612
|
-
{ value: "link", label: "Link", icon: "externalLink" },
|
|
2613
|
-
{ value: "pdf", label: "PDF", icon: "pdf" }
|
|
2614
|
-
];
|
|
2615
|
-
var SORT_OPTIONS = [
|
|
2616
|
-
{ value: "latest", label: "Latest" },
|
|
2617
|
-
{ value: "oldest", label: "Oldest" },
|
|
2618
|
-
{ value: "az", label: "A \u2192 Z" },
|
|
2619
|
-
{ value: "za", label: "Z \u2192 A" }
|
|
2620
|
-
];
|
|
2621
|
-
function FilterBar({
|
|
2622
|
-
view,
|
|
2623
|
-
onViewChange,
|
|
2624
|
-
isMobile,
|
|
2625
|
-
filterValue,
|
|
2626
|
-
onFilterChange,
|
|
2627
|
-
sortValue,
|
|
2628
|
-
onSortChange,
|
|
2629
|
-
searchValue,
|
|
2630
|
-
onSearchChange
|
|
2631
|
-
}) {
|
|
2632
|
-
const [openDropdown, setOpenDropdown] = React62.useState(null);
|
|
2633
|
-
const [searchState, setSearchState] = React62.useState("closed");
|
|
2634
|
-
const filterRef = React62.useRef(null);
|
|
2635
|
-
const sortRef = React62.useRef(null);
|
|
2636
|
-
const searchRef = React62.useRef(null);
|
|
2637
|
-
const searchInputRef = React62.useRef(null);
|
|
2638
|
-
const closeSearch = () => {
|
|
2639
|
-
setSearchState("closing");
|
|
2640
|
-
onSearchChange("");
|
|
2641
|
-
};
|
|
2642
|
-
const clearSearch = () => {
|
|
2643
|
-
var _a;
|
|
2644
|
-
onSearchChange("");
|
|
2645
|
-
(_a = searchInputRef.current) == null ? void 0 : _a.focus();
|
|
2646
|
-
};
|
|
2647
|
-
React62.useEffect(() => {
|
|
2648
|
-
const handleMouseDown = (e) => {
|
|
2649
|
-
var _a, _b, _c;
|
|
2650
|
-
const target = e.target;
|
|
2651
|
-
if (((_a = filterRef.current) == null ? void 0 : _a.contains(target)) || ((_b = sortRef.current) == null ? void 0 : _b.contains(target)) || ((_c = searchRef.current) == null ? void 0 : _c.contains(target)))
|
|
2652
|
-
return;
|
|
2653
|
-
setOpenDropdown(null);
|
|
2654
|
-
};
|
|
2655
|
-
document.addEventListener("mousedown", handleMouseDown);
|
|
2656
|
-
return () => document.removeEventListener("mousedown", handleMouseDown);
|
|
2657
|
-
}, []);
|
|
2658
|
-
React62.useEffect(() => {
|
|
2659
|
-
var _a;
|
|
2660
|
-
if (searchState === "open") (_a = searchInputRef.current) == null ? void 0 : _a.focus();
|
|
2661
|
-
}, [searchState]);
|
|
2662
|
-
React62.useEffect(() => {
|
|
2663
|
-
var _a;
|
|
2664
|
-
if (openDropdown === "search") (_a = searchInputRef.current) == null ? void 0 : _a.focus();
|
|
2665
|
-
}, [openDropdown]);
|
|
2666
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: ResourcesGridList_module_default.filterBar, children: [
|
|
2667
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: ResourcesGridList_module_default.viewToggle, children: [
|
|
2668
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
2669
|
-
"button",
|
|
2670
|
-
{
|
|
2671
|
-
type: "button",
|
|
2672
|
-
className: clsx23__default.default(ResourcesGridList_module_default.chip, view === "grid" && ResourcesGridList_module_default.active),
|
|
2673
|
-
onClick: () => onViewChange("grid"),
|
|
2674
|
-
"aria-pressed": view === "grid",
|
|
2675
|
-
children: [
|
|
2676
|
-
/* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "grid", size: 20, "aria-hidden": "true" }),
|
|
2677
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: ResourcesGridList_module_default.chipLabel, children: "Grid" })
|
|
2678
|
-
]
|
|
2679
|
-
}
|
|
2680
|
-
),
|
|
2681
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
2682
|
-
"button",
|
|
2683
|
-
{
|
|
2684
|
-
type: "button",
|
|
2685
|
-
className: clsx23__default.default(ResourcesGridList_module_default.chip, view === "list" && ResourcesGridList_module_default.active),
|
|
2686
|
-
onClick: () => onViewChange("list"),
|
|
2687
|
-
"aria-pressed": view === "list",
|
|
2688
|
-
children: [
|
|
2689
|
-
/* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "list", size: 20, "aria-hidden": "true" }),
|
|
2690
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: ResourcesGridList_module_default.chipLabel, children: "List" })
|
|
2691
|
-
]
|
|
2692
|
-
}
|
|
2693
|
-
)
|
|
2694
|
-
] }),
|
|
2695
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: ResourcesGridList_module_default.filterActions, children: [
|
|
2696
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: ResourcesGridList_module_default.dropdownWrapper, ref: filterRef, children: [
|
|
2697
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
2698
|
-
"button",
|
|
2699
|
-
{
|
|
2700
|
-
type: "button",
|
|
2701
|
-
className: clsx23__default.default(ResourcesGridList_module_default.chip, filterValue !== "all" && ResourcesGridList_module_default.active),
|
|
2702
|
-
onClick: () => setOpenDropdown(openDropdown === "filter" ? null : "filter"),
|
|
2703
|
-
"aria-expanded": openDropdown === "filter",
|
|
2704
|
-
children: [
|
|
2705
|
-
/* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "filter", size: 20, "aria-hidden": "true" }),
|
|
2706
|
-
!isMobile && /* @__PURE__ */ jsxRuntime.jsx("span", { className: ResourcesGridList_module_default.chipLabel, children: "Filter" })
|
|
2707
|
-
]
|
|
2708
|
-
}
|
|
2709
|
-
),
|
|
2710
|
-
openDropdown === "filter" && /* @__PURE__ */ jsxRuntime.jsx("div", { className: ResourcesGridList_module_default.dropdownPanel, role: "listbox", "aria-label": "Filter by type", children: FILTER_OPTIONS.map((opt) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2711
|
-
"button",
|
|
2712
|
-
{
|
|
2713
|
-
type: "button",
|
|
2714
|
-
role: "option",
|
|
2715
|
-
"aria-selected": filterValue === opt.value,
|
|
2716
|
-
className: clsx23__default.default(
|
|
2717
|
-
ResourcesGridList_module_default.dropdownOption,
|
|
2718
|
-
filterValue === opt.value && ResourcesGridList_module_default.selected
|
|
2719
|
-
),
|
|
2720
|
-
onClick: () => {
|
|
2721
|
-
onFilterChange(filterValue === opt.value ? "all" : opt.value);
|
|
2722
|
-
setOpenDropdown(null);
|
|
2723
|
-
},
|
|
2724
|
-
children: [
|
|
2725
|
-
/* @__PURE__ */ jsxRuntime.jsx(Icon, { type: opt.icon, size: 20, "aria-hidden": "true" }),
|
|
2726
|
-
opt.label
|
|
2727
|
-
]
|
|
2728
|
-
},
|
|
2729
|
-
opt.value
|
|
2730
|
-
)) })
|
|
2731
|
-
] }),
|
|
2732
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: ResourcesGridList_module_default.dropdownWrapper, ref: sortRef, children: [
|
|
2733
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
2734
|
-
"button",
|
|
2735
|
-
{
|
|
2736
|
-
type: "button",
|
|
2737
|
-
className: ResourcesGridList_module_default.chip,
|
|
2738
|
-
onClick: () => setOpenDropdown(openDropdown === "sort" ? null : "sort"),
|
|
2739
|
-
"aria-expanded": openDropdown === "sort",
|
|
2740
|
-
children: [
|
|
2741
|
-
/* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "internalFilter", size: 20, "aria-hidden": "true" }),
|
|
2742
|
-
!isMobile && /* @__PURE__ */ jsxRuntime.jsx("span", { className: ResourcesGridList_module_default.chipLabel, children: "Sort" })
|
|
2743
|
-
]
|
|
2744
|
-
}
|
|
2745
|
-
),
|
|
2746
|
-
openDropdown === "sort" && /* @__PURE__ */ jsxRuntime.jsx("div", { className: ResourcesGridList_module_default.dropdownPanel, role: "listbox", "aria-label": "Sort by", children: SORT_OPTIONS.map((opt) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2747
|
-
"button",
|
|
2748
|
-
{
|
|
2749
|
-
type: "button",
|
|
2750
|
-
role: "option",
|
|
2751
|
-
"aria-selected": sortValue === opt.value,
|
|
2752
|
-
className: clsx23__default.default(
|
|
2753
|
-
ResourcesGridList_module_default.dropdownOption,
|
|
2754
|
-
sortValue === opt.value && ResourcesGridList_module_default.selected
|
|
2755
|
-
),
|
|
2756
|
-
onClick: () => {
|
|
2757
|
-
onSortChange(opt.value);
|
|
2758
|
-
setOpenDropdown(null);
|
|
2759
|
-
},
|
|
2760
|
-
children: opt.label
|
|
2761
|
-
},
|
|
2762
|
-
opt.value
|
|
2763
|
-
)) })
|
|
2764
|
-
] }),
|
|
2765
|
-
isMobile ? (
|
|
2766
|
-
/* Mobile — popup panel, mirroring the Filter/Sort dropdowns */
|
|
2767
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: ResourcesGridList_module_default.dropdownWrapper, ref: searchRef, children: [
|
|
2768
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2769
|
-
"button",
|
|
2770
|
-
{
|
|
2771
|
-
type: "button",
|
|
2772
|
-
className: clsx23__default.default(ResourcesGridList_module_default.chip, searchValue !== "" && ResourcesGridList_module_default.active),
|
|
2773
|
-
onClick: () => setOpenDropdown(openDropdown === "search" ? null : "search"),
|
|
2774
|
-
"aria-expanded": openDropdown === "search",
|
|
2775
|
-
"aria-label": "Search",
|
|
2776
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "search", size: 20, "aria-hidden": "true" })
|
|
2777
|
-
}
|
|
2778
|
-
),
|
|
2779
|
-
openDropdown === "search" && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: ResourcesGridList_module_default.searchPanel, children: [
|
|
2780
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: ResourcesGridList_module_default.searchIconInner, children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "search", size: 20, "aria-hidden": "true" }) }),
|
|
2781
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2782
|
-
"input",
|
|
2783
|
-
{
|
|
2784
|
-
ref: searchInputRef,
|
|
2785
|
-
type: "text",
|
|
2786
|
-
className: ResourcesGridList_module_default.searchInput,
|
|
2787
|
-
placeholder: "Search\u2026",
|
|
2788
|
-
value: searchValue,
|
|
2789
|
-
onChange: (e) => onSearchChange(e.target.value),
|
|
2790
|
-
onKeyDown: (e) => {
|
|
2791
|
-
if (e.key === "Escape") {
|
|
2792
|
-
if (searchValue) clearSearch();
|
|
2793
|
-
else setOpenDropdown(null);
|
|
2794
|
-
}
|
|
2795
|
-
}
|
|
2796
|
-
}
|
|
2797
|
-
),
|
|
2798
|
-
searchValue && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2799
|
-
"button",
|
|
2800
|
-
{
|
|
2801
|
-
type: "button",
|
|
2802
|
-
className: ResourcesGridList_module_default.searchClear,
|
|
2803
|
-
"aria-label": "Clear search",
|
|
2804
|
-
onClick: clearSearch,
|
|
2805
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "xBlack", size: 16, "aria-hidden": "true" })
|
|
2806
|
-
}
|
|
2807
|
-
)
|
|
2808
|
-
] })
|
|
2809
|
-
] })
|
|
2810
|
-
) : searchState !== "closed" ? (
|
|
2811
|
-
/* Desktop — animated inline expand */
|
|
2812
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
2813
|
-
"div",
|
|
2814
|
-
{
|
|
2815
|
-
className: clsx23__default.default(
|
|
2816
|
-
ResourcesGridList_module_default.searchExpanded,
|
|
2817
|
-
searchState === "closing" && ResourcesGridList_module_default.searchCollapsing
|
|
2818
|
-
),
|
|
2819
|
-
onAnimationEnd: () => {
|
|
2820
|
-
if (searchState === "closing") setSearchState("closed");
|
|
2821
|
-
},
|
|
2822
|
-
children: [
|
|
2823
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: ResourcesGridList_module_default.searchIconInner, children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "search", size: 20, "aria-hidden": "true" }) }),
|
|
2824
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2825
|
-
"input",
|
|
2826
|
-
{
|
|
2827
|
-
ref: searchInputRef,
|
|
2828
|
-
type: "text",
|
|
2829
|
-
className: ResourcesGridList_module_default.searchInput,
|
|
2830
|
-
placeholder: "Search\u2026",
|
|
2831
|
-
value: searchValue,
|
|
2832
|
-
onChange: (e) => onSearchChange(e.target.value),
|
|
2833
|
-
onKeyDown: (e) => {
|
|
2834
|
-
if (e.key === "Escape") {
|
|
2835
|
-
if (searchValue) clearSearch();
|
|
2836
|
-
else closeSearch();
|
|
2837
|
-
}
|
|
2838
|
-
},
|
|
2839
|
-
onBlur: () => {
|
|
2840
|
-
if (!searchValue) closeSearch();
|
|
2841
|
-
}
|
|
2842
|
-
}
|
|
2843
|
-
),
|
|
2844
|
-
searchValue && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2845
|
-
"button",
|
|
2846
|
-
{
|
|
2847
|
-
type: "button",
|
|
2848
|
-
className: ResourcesGridList_module_default.searchClear,
|
|
2849
|
-
"aria-label": "Clear search",
|
|
2850
|
-
onMouseDown: (e) => e.preventDefault(),
|
|
2851
|
-
onClick: clearSearch,
|
|
2852
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "xBlack", size: 16, "aria-hidden": "true" })
|
|
2853
|
-
}
|
|
2854
|
-
)
|
|
2855
|
-
]
|
|
2856
|
-
}
|
|
2857
|
-
)
|
|
2858
|
-
) : /* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", className: ResourcesGridList_module_default.chip, onClick: () => setSearchState("open"), children: [
|
|
2859
|
-
/* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "search", size: 20, "aria-hidden": "true" }),
|
|
2860
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: ResourcesGridList_module_default.chipLabel, children: "Search" })
|
|
2861
|
-
] })
|
|
2862
|
-
] })
|
|
2863
|
-
] });
|
|
2864
|
-
}
|
|
2865
|
-
var Sidebar = ({
|
|
2866
|
-
categories,
|
|
2867
|
-
isMobile,
|
|
2868
|
-
onToggle,
|
|
2869
|
-
selectedIndex,
|
|
2870
|
-
onSelect
|
|
2871
|
-
}) => {
|
|
2872
|
-
if (isMobile) {
|
|
2873
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: ResourcesGridList_module_default.sidebarMobile, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2874
|
-
"button",
|
|
2875
|
-
{
|
|
2876
|
-
type: "button",
|
|
2877
|
-
className: ResourcesGridList_module_default.hamburger,
|
|
2878
|
-
"aria-label": "Open categories",
|
|
2879
|
-
onClick: onToggle,
|
|
2880
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "menuBlack", size: 20, "aria-hidden": "true" })
|
|
2881
|
-
}
|
|
2882
|
-
) });
|
|
2883
|
-
}
|
|
2884
|
-
return /* @__PURE__ */ jsxRuntime.jsx("nav", { className: ResourcesGridList_module_default.sidebar, "aria-label": "Resource categories", children: /* @__PURE__ */ jsxRuntime.jsx("ul", { children: categories.map((cat, i) => {
|
|
2885
|
-
var _a;
|
|
2886
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2887
|
-
"li",
|
|
2888
|
-
{
|
|
2889
|
-
className: clsx23__default.default(ResourcesGridList_module_default.sidebarItem, i === selectedIndex && ResourcesGridList_module_default.active),
|
|
2890
|
-
role: "button",
|
|
2891
|
-
tabIndex: 0,
|
|
2892
|
-
"aria-pressed": i === selectedIndex,
|
|
2893
|
-
onClick: () => onSelect(i),
|
|
2894
|
-
onKeyDown: (e) => {
|
|
2895
|
-
if (e.key === "Enter" || e.key === " ") {
|
|
2896
|
-
e.preventDefault();
|
|
2897
|
-
onSelect(i);
|
|
2898
|
-
}
|
|
2899
|
-
},
|
|
2900
|
-
children: [
|
|
2901
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { children: cat.label }),
|
|
2902
|
-
cat.hasNotification && /* @__PURE__ */ jsxRuntime.jsx("span", { className: ResourcesGridList_module_default.notificationDot, "aria-label": "New" })
|
|
2903
|
-
]
|
|
2904
|
-
},
|
|
2905
|
-
(_a = cat.label) != null ? _a : i
|
|
2906
|
-
);
|
|
2907
|
-
}) }) });
|
|
2908
|
-
};
|
|
2909
|
-
var ResourceIcon = ({ image, type }) => {
|
|
2910
|
-
if (!image) return null;
|
|
2911
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: ResourcesGridList_module_default.iconWrapper, children: /* @__PURE__ */ jsxRuntime.jsx("img", { src: image, alt: type != null ? type : "", width: 32, height: 32 }) });
|
|
2912
|
-
};
|
|
2913
|
-
var ResourceCardItem = ({ item, view }) => {
|
|
2914
|
-
const hasHref = Boolean(item.href);
|
|
2915
|
-
const linkWrapper = ({ children }) => /* @__PURE__ */ jsxRuntime.jsx("a", { href: item.href, className: ResourcesGridList_module_default.cardLink, target: "_blank", rel: "noopener noreferrer", children });
|
|
2916
|
-
if (view === "grid") {
|
|
2917
|
-
return /* @__PURE__ */ jsxRuntime.jsx("article", { className: ResourcesGridList_module_default.cardGrid, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: ResourcesGridList_module_default.cardBody, children: [
|
|
2918
|
-
/* @__PURE__ */ jsxRuntime.jsx(ConditionalWrapper, { condition: hasHref, wrapper: linkWrapper, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: ResourcesGridList_module_default.cardIconTitle, children: [
|
|
2919
|
-
/* @__PURE__ */ jsxRuntime.jsx(ResourceIcon, { image: item.image, type: item.type }),
|
|
2920
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: ResourcesGridList_module_default.cardTitle, children: item.title })
|
|
2921
|
-
] }) }),
|
|
2922
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: ResourcesGridList_module_default.cardMeta, children: [
|
|
2923
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: ResourcesGridList_module_default.cardDate, children: item.date }),
|
|
2924
|
-
item.hasNotification && /* @__PURE__ */ jsxRuntime.jsx("span", { className: ResourcesGridList_module_default.notificationDot, "aria-label": "New" })
|
|
2925
|
-
] })
|
|
2926
|
-
] }) });
|
|
2927
|
-
}
|
|
2928
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("article", { className: ResourcesGridList_module_default.cardList, children: [
|
|
2929
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: ResourcesGridList_module_default.cardListLeft, children: [
|
|
2930
|
-
item.hasNotification && /* @__PURE__ */ jsxRuntime.jsx("span", { className: ResourcesGridList_module_default.notificationDot, "aria-label": "New" }),
|
|
2931
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: ResourcesGridList_module_default.cardDate, children: item.date })
|
|
2932
|
-
] }),
|
|
2933
|
-
/* @__PURE__ */ jsxRuntime.jsx(ConditionalWrapper, { condition: hasHref, wrapper: linkWrapper, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: ResourcesGridList_module_default.cardListRight, children: [
|
|
2934
|
-
/* @__PURE__ */ jsxRuntime.jsx(ResourceIcon, { image: item.image, type: item.type }),
|
|
2935
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: ResourcesGridList_module_default.cardTitle, children: item.title })
|
|
2936
|
-
] }) })
|
|
2937
|
-
] });
|
|
2938
|
-
};
|
|
2939
|
-
var Pagination3 = ({ currentPage, totalPages, onPageChange }) => {
|
|
2940
|
-
const isFirst = currentPage <= 1;
|
|
2941
|
-
const isLast = currentPage >= totalPages;
|
|
2942
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: ResourcesGridList_module_default.pagination, "aria-label": "Pagination", children: [
|
|
2943
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2944
|
-
"button",
|
|
2945
|
-
{
|
|
2946
|
-
type: "button",
|
|
2947
|
-
className: ResourcesGridList_module_default.pageArrow,
|
|
2948
|
-
"aria-label": "Previous page",
|
|
2949
|
-
disabled: isFirst,
|
|
2950
|
-
onClick: () => onPageChange(currentPage - 1),
|
|
2951
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "chevronLeftBlack", size: 32, "aria-hidden": "true" })
|
|
2952
|
-
}
|
|
2953
|
-
),
|
|
2954
|
-
Array.from({ length: totalPages }, (_, i) => {
|
|
2955
|
-
const page = i + 1;
|
|
2956
|
-
const isActive = page === currentPage;
|
|
2957
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2958
|
-
"button",
|
|
2959
|
-
{
|
|
2960
|
-
type: "button",
|
|
2961
|
-
className: clsx23__default.default(isActive ? ResourcesGridList_module_default.pageDotActive : ResourcesGridList_module_default.pageDot),
|
|
2962
|
-
"aria-label": `Page ${page}`,
|
|
2963
|
-
"aria-current": isActive ? "page" : void 0,
|
|
2964
|
-
onClick: () => onPageChange(page)
|
|
2965
|
-
},
|
|
2966
|
-
page
|
|
2967
|
-
);
|
|
2968
|
-
}),
|
|
2969
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2970
|
-
"button",
|
|
2971
|
-
{
|
|
2972
|
-
type: "button",
|
|
2973
|
-
className: ResourcesGridList_module_default.pageArrow,
|
|
2974
|
-
"aria-label": "Next page",
|
|
2975
|
-
disabled: isLast,
|
|
2976
|
-
onClick: () => onPageChange(currentPage + 1),
|
|
2977
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "chevronRightBlack", size: 32, "aria-hidden": "true" })
|
|
2978
|
-
}
|
|
2979
|
-
)
|
|
2980
|
-
] });
|
|
2928
|
+
notificationDot: "ResourcesGridList_module_notificationDot"
|
|
2981
2929
|
};
|
|
2982
2930
|
var ITEMS_PER_PAGE = 12;
|
|
2983
2931
|
var ResourcesGridList = ({
|
|
@@ -3033,7 +2981,7 @@ var ResourcesGridList = ({
|
|
|
3033
2981
|
const safeCurrentPage = Math.min(currentPage, totalPages);
|
|
3034
2982
|
const pageStart = (safeCurrentPage - 1) * ITEMS_PER_PAGE;
|
|
3035
2983
|
const paginatedItems = displayedItems.slice(pageStart, pageStart + ITEMS_PER_PAGE);
|
|
3036
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
2984
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx25__default.default(ResourcesGridList_module_default.widget, className), children: [
|
|
3037
2985
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3038
2986
|
FilterBar,
|
|
3039
2987
|
{
|
|
@@ -3052,7 +3000,7 @@ var ResourcesGridList = ({
|
|
|
3052
3000
|
isMobile && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3053
3001
|
"div",
|
|
3054
3002
|
{
|
|
3055
|
-
className:
|
|
3003
|
+
className: clsx25__default.default(
|
|
3056
3004
|
ResourcesGridList_module_default.mobileSidebarOverlay,
|
|
3057
3005
|
isSidebarOpen && ResourcesGridList_module_default.mobileSidebarOverlayOpen
|
|
3058
3006
|
),
|
|
@@ -3063,7 +3011,7 @@ var ResourcesGridList = ({
|
|
|
3063
3011
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3064
3012
|
"li",
|
|
3065
3013
|
{
|
|
3066
|
-
className:
|
|
3014
|
+
className: clsx25__default.default(
|
|
3067
3015
|
ResourcesGridList_module_default.mobileSidebarItem,
|
|
3068
3016
|
i === selectedCategory && ResourcesGridList_module_default.active
|
|
3069
3017
|
),
|
|
@@ -3108,18 +3056,20 @@ var ResourcesGridList = ({
|
|
|
3108
3056
|
onSelect: handleSelectCategory
|
|
3109
3057
|
}
|
|
3110
3058
|
),
|
|
3111
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
3059
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx25__default.default(ResourcesGridList_module_default.cardsArea, ResourcesGridList_module_default[view]), children: paginatedItems.map((item, i) => {
|
|
3112
3060
|
var _a2;
|
|
3113
3061
|
return /* @__PURE__ */ jsxRuntime.jsx(ResourceCardItem, { item, view }, (_a2 = item.title) != null ? _a2 : i);
|
|
3114
3062
|
}) })
|
|
3115
3063
|
] }),
|
|
3116
3064
|
totalPages > 1 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3117
|
-
|
|
3065
|
+
Pagination,
|
|
3118
3066
|
{
|
|
3119
3067
|
currentPage: safeCurrentPage,
|
|
3120
3068
|
totalPages,
|
|
3069
|
+
loop: false,
|
|
3121
3070
|
onPageChange: setCurrentPage
|
|
3122
|
-
}
|
|
3071
|
+
},
|
|
3072
|
+
`${selectedCategory}-${filterValue}-${sortValue}-${searchQuery}`
|
|
3123
3073
|
)
|
|
3124
3074
|
] });
|
|
3125
3075
|
};
|
|
@@ -3162,6 +3112,7 @@ exports.ContactModule = ContactModule2;
|
|
|
3162
3112
|
exports.Container = Container;
|
|
3163
3113
|
exports.CountingCard = CountingCard2;
|
|
3164
3114
|
exports.EventList = EventList2;
|
|
3115
|
+
exports.FilterBar = FilterBar;
|
|
3165
3116
|
exports.Footer = Footer;
|
|
3166
3117
|
exports.HeroBanner = HeroBanner2;
|
|
3167
3118
|
exports.HeroBannerCarousel = HeroBannerCarousel;
|
|
@@ -3175,7 +3126,9 @@ exports.Pagination = Pagination;
|
|
|
3175
3126
|
exports.Picture = Picture;
|
|
3176
3127
|
exports.PracticeCard = PracticeCard;
|
|
3177
3128
|
exports.PracticePathCards = PracticePathCards2;
|
|
3129
|
+
exports.ResourceCardItem = ResourceCardItem;
|
|
3178
3130
|
exports.ResourcesGridList = ResourcesGridList;
|
|
3131
|
+
exports.Sidebar = Sidebar;
|
|
3179
3132
|
exports.Teaser5050With3Text = Teaser5050With3Text2;
|
|
3180
3133
|
exports.Teaser5050WithCta = Teaser5050WithCta2;
|
|
3181
3134
|
exports.TextBody = TextBody2;
|