@digital-b2c/coreui-kit 0.11.24 → 0.13.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 +676 -201
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +499 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +59 -3
- package/dist/index.d.ts +59 -3
- package/dist/index.mjs +673 -201
- package/dist/index.mjs.map +1 -1
- package/dist/types/global.d.ts +25 -25
- package/package.json +100 -100
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var clsx16 = require('clsx');
|
|
4
4
|
var jsxRuntime = require('react/jsx-runtime');
|
|
5
5
|
var React66 = 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 clsx16__default = /*#__PURE__*/_interopDefault(clsx16);
|
|
16
16
|
var React66__default = /*#__PURE__*/_interopDefault(React66);
|
|
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: clsx16__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: clsx16__default.default(className, Picture_module_default["image-mobile"])
|
|
78
78
|
}, rest)
|
|
79
79
|
)
|
|
80
80
|
] });
|
|
@@ -405,11 +405,12 @@ var Button_module_default = {
|
|
|
405
405
|
ghost: "Button_module_ghost",
|
|
406
406
|
nofill: "Button_module_nofill",
|
|
407
407
|
nofillblack: "Button_module_nofillblack",
|
|
408
|
+
navnofillblack: "Button_module_navnofillblack",
|
|
409
|
+
active: "Button_module_active",
|
|
408
410
|
grey: "Button_module_grey",
|
|
409
411
|
shiny: "Button_module_shiny",
|
|
410
412
|
rotateGradient: "Button_module_rotateGradient",
|
|
411
413
|
tabbutton: "Button_module_tabbutton",
|
|
412
|
-
active: "Button_module_active",
|
|
413
414
|
icon: "Button_module_icon",
|
|
414
415
|
logo: "Button_module_logo"
|
|
415
416
|
};
|
|
@@ -439,7 +440,7 @@ var Button = (_a) => {
|
|
|
439
440
|
]);
|
|
440
441
|
const isLink = !!href;
|
|
441
442
|
const props = __spreadValues(__spreadValues({
|
|
442
|
-
className:
|
|
443
|
+
className: clsx16__default.default(
|
|
443
444
|
Button_module_default.button,
|
|
444
445
|
variant ? Button_module_default[variant] : null,
|
|
445
446
|
{ [Button_module_default.fullWidth]: !!fullWidth },
|
|
@@ -671,7 +672,7 @@ var BrandsStrip = ({
|
|
|
671
672
|
"div",
|
|
672
673
|
{
|
|
673
674
|
ref: containerRef,
|
|
674
|
-
className:
|
|
675
|
+
className: clsx16__default.default(
|
|
675
676
|
BrandsStrip_module_default.brandsStrip,
|
|
676
677
|
BrandsStrip_module_default[variant],
|
|
677
678
|
{ [BrandsStrip_module_default.small]: size === "small" },
|
|
@@ -680,13 +681,13 @@ var BrandsStrip = ({
|
|
|
680
681
|
onMouseEnter: handleMouseEnter,
|
|
681
682
|
onMouseLeave: handleMouseLeave,
|
|
682
683
|
children: [
|
|
683
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
684
|
-
title && logos.length === 1 && /* @__PURE__ */ jsxRuntime.jsx("h2", { className:
|
|
684
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx16__default.default(BrandsStrip_module_default.container, { [BrandsStrip_module_default.blurred]: show && logos.length > 1 }), children: [
|
|
685
|
+
title && logos.length === 1 && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: clsx16__default.default("body", BrandsStrip_module_default.title), children: title }),
|
|
685
686
|
logos.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
686
687
|
"div",
|
|
687
688
|
{
|
|
688
689
|
ref: marqueeRef,
|
|
689
|
-
className:
|
|
690
|
+
className: clsx16__default.default(BrandsStrip_module_default.logos, { [BrandsStrip_module_default.marqueeGSAP]: shouldAnimate }),
|
|
690
691
|
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}`))
|
|
691
692
|
}
|
|
692
693
|
)
|
|
@@ -733,7 +734,7 @@ var Container_module_default = {
|
|
|
733
734
|
var Container = React66.forwardRef(
|
|
734
735
|
(_a, ref) => {
|
|
735
736
|
var _b = _a, { children, className } = _b, props = __objRest(_b, ["children", "className"]);
|
|
736
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", __spreadProps(__spreadValues({ ref, className:
|
|
737
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", __spreadProps(__spreadValues({ ref, className: clsx16__default.default(Container_module_default.container, className) }, props), { children }));
|
|
737
738
|
}
|
|
738
739
|
);
|
|
739
740
|
Container.displayName = "Container";
|
|
@@ -774,14 +775,14 @@ var Card = ({
|
|
|
774
775
|
ConditionalWrapper,
|
|
775
776
|
__spreadProps(__spreadValues({
|
|
776
777
|
ref,
|
|
777
|
-
className:
|
|
778
|
+
className: clsx16__default.default(Card_module_default.card, Card_module_default[variant], className),
|
|
778
779
|
wrapper: Anchor,
|
|
779
780
|
fallback: "div",
|
|
780
781
|
condition: isLink
|
|
781
782
|
}, href ? { href, isExternal } : {}), {
|
|
782
783
|
children: [
|
|
783
784
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: Card_module_default.logoContainer, children: [
|
|
784
|
-
(logo == null ? void 0 : logo.src) ? /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className:
|
|
785
|
+
(logo == null ? void 0 : logo.src) ? /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: clsx16__default.default(Card_module_default.logo, isLink && Card_module_default.hideLogo) }, logo)) : icon && /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: icon, className: clsx16__default.default(Card_module_default.logo, isLink && Card_module_default.hideLogo) }),
|
|
785
786
|
isLink && /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "tiltedRightWhite", className: Card_module_default.logoHover })
|
|
786
787
|
] }),
|
|
787
788
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: Card_module_default.content, children: [
|
|
@@ -816,10 +817,10 @@ var CountingCard = ({ className, title, count, image, children }) => {
|
|
|
816
817
|
title: CountingCardTitle
|
|
817
818
|
});
|
|
818
819
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
819
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
820
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx16__default.default(CountingCard_module_default["counting-card"], className), children: [
|
|
820
821
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: CountingCard_module_default.content, children: [
|
|
821
822
|
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "body", children: titleNode }),
|
|
822
|
-
count && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
823
|
+
count && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx16__default.default(CountingCard_module_default.count, "h1"), children: count })
|
|
823
824
|
] }),
|
|
824
825
|
image && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: CountingCard_module_default.logo }, image))
|
|
825
826
|
] });
|
|
@@ -905,7 +906,7 @@ function FilterBar({
|
|
|
905
906
|
"button",
|
|
906
907
|
{
|
|
907
908
|
type: "button",
|
|
908
|
-
className:
|
|
909
|
+
className: clsx16__default.default(FilterBar_module_default.chip, view === "grid" && FilterBar_module_default.active),
|
|
909
910
|
onClick: () => onViewChange("grid"),
|
|
910
911
|
"aria-pressed": view === "grid",
|
|
911
912
|
children: [
|
|
@@ -918,7 +919,7 @@ function FilterBar({
|
|
|
918
919
|
"button",
|
|
919
920
|
{
|
|
920
921
|
type: "button",
|
|
921
|
-
className:
|
|
922
|
+
className: clsx16__default.default(FilterBar_module_default.chip, view === "list" && FilterBar_module_default.active),
|
|
922
923
|
onClick: () => onViewChange("list"),
|
|
923
924
|
"aria-pressed": view === "list",
|
|
924
925
|
children: [
|
|
@@ -932,7 +933,7 @@ function FilterBar({
|
|
|
932
933
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
933
934
|
"div",
|
|
934
935
|
{
|
|
935
|
-
className:
|
|
936
|
+
className: clsx16__default.default(
|
|
936
937
|
FilterBar_module_default.dropdownWrapper,
|
|
937
938
|
isMobile && searchState === "open" && FilterBar_module_default.filterFaded,
|
|
938
939
|
isMobile && searchState === "closing" && FilterBar_module_default.filterFading
|
|
@@ -943,7 +944,7 @@ function FilterBar({
|
|
|
943
944
|
"button",
|
|
944
945
|
{
|
|
945
946
|
type: "button",
|
|
946
|
-
className:
|
|
947
|
+
className: clsx16__default.default(FilterBar_module_default.chip, filterValue !== "all" && FilterBar_module_default.active),
|
|
947
948
|
onClick: () => setOpenDropdown(openDropdown === "filter" ? null : "filter"),
|
|
948
949
|
"aria-expanded": openDropdown === "filter",
|
|
949
950
|
children: [
|
|
@@ -958,7 +959,7 @@ function FilterBar({
|
|
|
958
959
|
type: "button",
|
|
959
960
|
role: "option",
|
|
960
961
|
"aria-selected": filterValue === opt.value,
|
|
961
|
-
className:
|
|
962
|
+
className: clsx16__default.default(
|
|
962
963
|
FilterBar_module_default.dropdownOption,
|
|
963
964
|
filterValue === opt.value && FilterBar_module_default.selected
|
|
964
965
|
),
|
|
@@ -979,7 +980,7 @@ function FilterBar({
|
|
|
979
980
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
980
981
|
"div",
|
|
981
982
|
{
|
|
982
|
-
className:
|
|
983
|
+
className: clsx16__default.default(
|
|
983
984
|
FilterBar_module_default.dropdownWrapper,
|
|
984
985
|
isMobile && searchState === "open" && FilterBar_module_default.filterFaded,
|
|
985
986
|
isMobile && searchState === "closing" && FilterBar_module_default.filterFading
|
|
@@ -1005,7 +1006,7 @@ function FilterBar({
|
|
|
1005
1006
|
type: "button",
|
|
1006
1007
|
role: "option",
|
|
1007
1008
|
"aria-selected": sortValue === opt.value,
|
|
1008
|
-
className:
|
|
1009
|
+
className: clsx16__default.default(
|
|
1009
1010
|
FilterBar_module_default.dropdownOption,
|
|
1010
1011
|
sortValue === opt.value && FilterBar_module_default.selected
|
|
1011
1012
|
),
|
|
@@ -1023,7 +1024,7 @@ function FilterBar({
|
|
|
1023
1024
|
searchState !== "closed" ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1024
1025
|
"div",
|
|
1025
1026
|
{
|
|
1026
|
-
className:
|
|
1027
|
+
className: clsx16__default.default(
|
|
1027
1028
|
FilterBar_module_default.searchExpanded,
|
|
1028
1029
|
searchState === "closing" && FilterBar_module_default.searchCollapsing
|
|
1029
1030
|
),
|
|
@@ -1105,9 +1106,9 @@ var InfoCard = ({ className, title, subtitle, icon, badge, children }) => {
|
|
|
1105
1106
|
});
|
|
1106
1107
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
1107
1108
|
const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
|
|
1108
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
1109
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx16__default.default(InfoCard_module_default["info-card"], { [InfoCard_module_default.hasIcon]: !!icon }, className), children: [
|
|
1109
1110
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: InfoCard_module_default.header, children: [
|
|
1110
|
-
icon ? /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: icon }) : badge ? /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1111
|
+
icon ? /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: icon }) : badge ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx16__default.default(InfoCard_module_default.badge, "h4"), children: badge }) : null,
|
|
1111
1112
|
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h4", children: titleNode })
|
|
1112
1113
|
] }),
|
|
1113
1114
|
subtitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "body", children: subtitleNode })
|
|
@@ -1172,7 +1173,7 @@ var Pagination = ({
|
|
|
1172
1173
|
};
|
|
1173
1174
|
const prevPage = activePage === 1 ? loop ? totalPages : 1 : activePage - 1;
|
|
1174
1175
|
const nextPage = activePage === totalPages ? loop ? 1 : totalPages : activePage + 1;
|
|
1175
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
1176
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx16__default.default(Pagination_module_default.pagination, className), children: [
|
|
1176
1177
|
!disableArrows && (renderLink ? renderLink({
|
|
1177
1178
|
page: prevPage,
|
|
1178
1179
|
className: Pagination_module_default.prev,
|
|
@@ -1190,7 +1191,7 @@ var Pagination = ({
|
|
|
1190
1191
|
)),
|
|
1191
1192
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: Pagination_module_default.pages, children: Array.from({ length: totalPages }, (_, i) => {
|
|
1192
1193
|
const page = i + 1;
|
|
1193
|
-
const pageClassName =
|
|
1194
|
+
const pageClassName = clsx16__default.default(Pagination_module_default.page, {
|
|
1194
1195
|
[Pagination_module_default.active]: activePage === page,
|
|
1195
1196
|
[Pagination_module_default.number]: hasNumber
|
|
1196
1197
|
});
|
|
@@ -1241,7 +1242,7 @@ var PracticeCard_module_default = {
|
|
|
1241
1242
|
};
|
|
1242
1243
|
var PracticeCard = ({ className, title, cta, image }) => {
|
|
1243
1244
|
const { url: href, isExternal } = cta != null ? cta : {};
|
|
1244
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1245
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx16__default.default(PracticeCard_module_default["practice-card"], className), children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1245
1246
|
ConditionalWrapper,
|
|
1246
1247
|
__spreadProps(__spreadValues({
|
|
1247
1248
|
className: PracticeCard_module_default.wrapper,
|
|
@@ -1252,7 +1253,7 @@ var PracticeCard = ({ className, title, cta, image }) => {
|
|
|
1252
1253
|
children: [
|
|
1253
1254
|
image && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: PracticeCard_module_default.background }, image)),
|
|
1254
1255
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: PracticeCard_module_default.container, children: [
|
|
1255
|
-
title && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1256
|
+
title && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx16__default.default(PracticeCard_module_default.title, "h3"), children: title }),
|
|
1256
1257
|
href && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: PracticeCard_module_default.cta, children: [
|
|
1257
1258
|
/* @__PURE__ */ jsxRuntime.jsx(Icon, { className: PracticeCard_module_default.ctaRest, type: "right" }),
|
|
1258
1259
|
/* @__PURE__ */ jsxRuntime.jsx(Icon, { className: PracticeCard_module_default.ctaHover, type: "tiltedRight" })
|
|
@@ -1266,6 +1267,7 @@ var PracticeCard = ({ className, title, cta, image }) => {
|
|
|
1266
1267
|
// src/components/ResourceCardItem/ResourceCardItem.module.scss
|
|
1267
1268
|
var ResourceCardItem_module_default = {
|
|
1268
1269
|
cardLink: "ResourceCardItem_module_cardLink",
|
|
1270
|
+
"global-search": "ResourceCardItem_module_global-search",
|
|
1269
1271
|
cardGrid: "ResourceCardItem_module_cardGrid",
|
|
1270
1272
|
cardBody: "ResourceCardItem_module_cardBody",
|
|
1271
1273
|
cardIconTitle: "ResourceCardItem_module_cardIconTitle",
|
|
@@ -1279,24 +1281,46 @@ var ResourceCardItem_module_default = {
|
|
|
1279
1281
|
cardList: "ResourceCardItem_module_cardList",
|
|
1280
1282
|
cardListLeft: "ResourceCardItem_module_cardListLeft",
|
|
1281
1283
|
cardListRight: "ResourceCardItem_module_cardListRight",
|
|
1282
|
-
notificationDot: "ResourceCardItem_module_notificationDot"
|
|
1283
|
-
|
|
1284
|
+
notificationDot: "ResourceCardItem_module_notificationDot",
|
|
1285
|
+
iconWrapper: "ResourceCardItem_module_iconWrapper"
|
|
1286
|
+
};
|
|
1287
|
+
var ResourceCardItem = ({ item, view, variant, renderLink }) => {
|
|
1284
1288
|
const hasHref = Boolean(item.href);
|
|
1285
|
-
const
|
|
1289
|
+
const isGlobalSearchVariant = variant === "global-search";
|
|
1290
|
+
const linkProps = hasHref ? {
|
|
1291
|
+
href: item.href,
|
|
1292
|
+
target: "_blank",
|
|
1293
|
+
rel: "noopener noreferrer",
|
|
1294
|
+
className: clsx16__default.default("news-card-link", ResourceCardItem_module_default["news-card-link"]),
|
|
1295
|
+
"aria-label": item.title
|
|
1296
|
+
} : null;
|
|
1297
|
+
const cardLink = linkProps && isGlobalSearchVariant ? renderLink ? renderLink(__spreadProps(__spreadValues({}, linkProps), {
|
|
1298
|
+
className: clsx16__default.default(ResourceCardItem_module_default.cardLink, isGlobalSearchVariant && ResourceCardItem_module_default[variant]),
|
|
1299
|
+
children: null
|
|
1300
|
+
})) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
1301
|
+
"a",
|
|
1302
|
+
__spreadProps(__spreadValues({}, linkProps), {
|
|
1303
|
+
className: clsx16__default.default(ResourceCardItem_module_default.cardLink, isGlobalSearchVariant && ResourceCardItem_module_default[variant])
|
|
1304
|
+
})
|
|
1305
|
+
) : null;
|
|
1306
|
+
const linkWrapper = ({ children }) => /* @__PURE__ */ jsxRuntime.jsx("a", __spreadProps(__spreadValues({}, linkProps), { tabIndex: isGlobalSearchVariant ? -1 : 0, children }));
|
|
1286
1307
|
if (view === "grid") {
|
|
1287
|
-
return /* @__PURE__ */ jsxRuntime.
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
/* @__PURE__ */ jsxRuntime.jsx("
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1308
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("article", { className: clsx16__default.default(ResourceCardItem_module_default.cardGrid, isGlobalSearchVariant && ResourceCardItem_module_default[variant]), children: [
|
|
1309
|
+
cardLink,
|
|
1310
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: ResourceCardItem_module_default.cardBody, children: [
|
|
1311
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
1312
|
+
/* @__PURE__ */ jsxRuntime.jsx(ConditionalWrapper, { condition: hasHref, wrapper: linkWrapper, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: ResourceCardItem_module_default.cardIconTitle, children: [
|
|
1313
|
+
/* @__PURE__ */ jsxRuntime.jsx(Icon, { type: item.type === "pdf" ? "pdf" : "externalLink", size: 33 }),
|
|
1314
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: ResourceCardItem_module_default.cardTitle, children: item.title })
|
|
1315
|
+
] }) }),
|
|
1316
|
+
item.bodyText && /* @__PURE__ */ jsxRuntime.jsx("div", { className: ResourceCardItem_module_default.cardBodyTextGrid, children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: ResourceCardItem_module_default.cardBodyText, children: item.bodyText }) })
|
|
1317
|
+
] }),
|
|
1318
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: ResourceCardItem_module_default.cardMeta, children: [
|
|
1319
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: ResourceCardItem_module_default.cardDate, children: item.date }),
|
|
1320
|
+
item.hasNotification && /* @__PURE__ */ jsxRuntime.jsx("span", { className: ResourceCardItem_module_default.notificationDot, "aria-label": "New" })
|
|
1321
|
+
] })
|
|
1298
1322
|
] })
|
|
1299
|
-
] })
|
|
1323
|
+
] });
|
|
1300
1324
|
}
|
|
1301
1325
|
return /* @__PURE__ */ jsxRuntime.jsxs("article", { className: ResourceCardItem_module_default.cardList, children: [
|
|
1302
1326
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: ResourceCardItem_module_default.cardListLeft, children: [
|
|
@@ -1346,7 +1370,7 @@ var Sidebar = ({
|
|
|
1346
1370
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1347
1371
|
"li",
|
|
1348
1372
|
{
|
|
1349
|
-
className:
|
|
1373
|
+
className: clsx16__default.default(Sidebar_module_default.sidebarItem, i === selectedIndex && Sidebar_module_default.active),
|
|
1350
1374
|
role: "button",
|
|
1351
1375
|
tabIndex: 0,
|
|
1352
1376
|
"aria-pressed": i === selectedIndex,
|
|
@@ -1403,7 +1427,7 @@ var UpcomingEventCard = ({
|
|
|
1403
1427
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1404
1428
|
"article",
|
|
1405
1429
|
{
|
|
1406
|
-
className:
|
|
1430
|
+
className: clsx16__default.default(
|
|
1407
1431
|
"card",
|
|
1408
1432
|
UpcomingEventCard_module_default["event-card"],
|
|
1409
1433
|
UpcomingEventCard_module_default[direction],
|
|
@@ -1411,26 +1435,26 @@ var UpcomingEventCard = ({
|
|
|
1411
1435
|
className
|
|
1412
1436
|
),
|
|
1413
1437
|
children: [
|
|
1414
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
1415
|
-
showImage && image && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadProps(__spreadValues({}, image), { className:
|
|
1438
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx16__default.default("card-content", UpcomingEventCard_module_default["event-card-content"]), children: [
|
|
1439
|
+
showImage && image && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadProps(__spreadValues({}, image), { className: clsx16__default.default("card-image", UpcomingEventCard_module_default["event-card-image"]) })),
|
|
1416
1440
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1417
1441
|
"div",
|
|
1418
1442
|
{
|
|
1419
|
-
className:
|
|
1443
|
+
className: clsx16__default.default(
|
|
1420
1444
|
"card-text-content",
|
|
1421
1445
|
UpcomingEventCard_module_default["event-card-text-content"],
|
|
1422
1446
|
(!showImage || !hasImage) && UpcomingEventCard_module_default["event-card-show-image"]
|
|
1423
1447
|
),
|
|
1424
1448
|
children: [
|
|
1425
1449
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: UpcomingEventCard_module_default.date, children: date }),
|
|
1426
|
-
title && /* @__PURE__ */ jsxRuntime.jsx("h3", { className:
|
|
1450
|
+
title && /* @__PURE__ */ jsxRuntime.jsx("h3", { className: clsx16__default.default("card-text-title"), children: title }),
|
|
1427
1451
|
location && /* @__PURE__ */ jsxRuntime.jsx("span", { className: UpcomingEventCard_module_default.location, children: location }),
|
|
1428
|
-
description && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1452
|
+
description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx16__default.default("card-text-description", UpcomingEventCard_module_default.description), children: description }),
|
|
1429
1453
|
cta && cta.url && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1430
1454
|
Button,
|
|
1431
1455
|
{
|
|
1432
1456
|
variant: "secondary",
|
|
1433
|
-
className:
|
|
1457
|
+
className: clsx16__default.default(
|
|
1434
1458
|
"card-cta",
|
|
1435
1459
|
UpcomingEventCard_module_default["event-card-cta"],
|
|
1436
1460
|
!hasCTAandImage && UpcomingEventCard_module_default.hidden
|
|
@@ -1449,12 +1473,12 @@ var UpcomingEventCard = ({
|
|
|
1449
1473
|
cta && cta.url && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1450
1474
|
"div",
|
|
1451
1475
|
{
|
|
1452
|
-
className:
|
|
1476
|
+
className: clsx16__default.default("card-footer", UpcomingEventCard_module_default["event-card-footer"], hasImage && UpcomingEventCard_module_default.hidden),
|
|
1453
1477
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1454
1478
|
Button,
|
|
1455
1479
|
{
|
|
1456
1480
|
variant: "secondary",
|
|
1457
|
-
className:
|
|
1481
|
+
className: clsx16__default.default("card-cta", UpcomingEventCard_module_default["event-card-cta"]),
|
|
1458
1482
|
fullWidth: isBelowMobile,
|
|
1459
1483
|
href: cta.url,
|
|
1460
1484
|
icon: cta.icon,
|
|
@@ -1502,7 +1526,7 @@ var Badge = React66.forwardRef(
|
|
|
1502
1526
|
"live",
|
|
1503
1527
|
"clickable"
|
|
1504
1528
|
]);
|
|
1505
|
-
const classes =
|
|
1529
|
+
const classes = clsx16__default.default(
|
|
1506
1530
|
Badge_module_default.badge,
|
|
1507
1531
|
Badge_module_default[variant],
|
|
1508
1532
|
Badge_module_default[size],
|
|
@@ -1513,7 +1537,7 @@ var Badge = React66.forwardRef(
|
|
|
1513
1537
|
className
|
|
1514
1538
|
);
|
|
1515
1539
|
const content = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1516
|
-
icon && /* @__PURE__ */ jsxRuntime.jsx(Icon, __spreadValues({ className:
|
|
1540
|
+
icon && /* @__PURE__ */ jsxRuntime.jsx(Icon, __spreadValues({ className: clsx16__default.default("badge-icon", Badge_module_default["badge-icon"]) }, icon)),
|
|
1517
1541
|
!iconOnly && /* @__PURE__ */ jsxRuntime.jsx("span", { className: Badge_module_default.label, children })
|
|
1518
1542
|
] });
|
|
1519
1543
|
if (clickable) {
|
|
@@ -1594,7 +1618,7 @@ var Input = React66.forwardRef(
|
|
|
1594
1618
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1595
1619
|
"div",
|
|
1596
1620
|
{
|
|
1597
|
-
className:
|
|
1621
|
+
className: clsx16__default.default(
|
|
1598
1622
|
"input-field",
|
|
1599
1623
|
Input_module_default["input-field"],
|
|
1600
1624
|
{
|
|
@@ -1608,17 +1632,17 @@ var Input = React66.forwardRef(
|
|
|
1608
1632
|
"label",
|
|
1609
1633
|
{
|
|
1610
1634
|
htmlFor: inputId,
|
|
1611
|
-
className:
|
|
1635
|
+
className: clsx16__default.default("input-label", Input_module_default.label, {
|
|
1612
1636
|
["sr-only"]: hideLabel
|
|
1613
1637
|
}),
|
|
1614
1638
|
children: [
|
|
1615
1639
|
label,
|
|
1616
|
-
required && /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
1640
|
+
required && /* @__PURE__ */ jsxRuntime.jsx("span", { className: clsx16__default.default("input-required", Input_module_default.required), "aria-hidden": "true", children: "*" })
|
|
1617
1641
|
]
|
|
1618
1642
|
}
|
|
1619
1643
|
),
|
|
1620
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
1621
|
-
startAdornment && /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
1644
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx16__default.default("input-wrapper", Input_module_default.wrapper), children: [
|
|
1645
|
+
startAdornment && /* @__PURE__ */ jsxRuntime.jsx("span", { className: clsx16__default.default("input-adornment", Input_module_default.adornment), "aria-hidden": "true", children: startAdornment }),
|
|
1622
1646
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1623
1647
|
"input",
|
|
1624
1648
|
__spreadValues({
|
|
@@ -1629,7 +1653,7 @@ var Input = React66.forwardRef(
|
|
|
1629
1653
|
disabled,
|
|
1630
1654
|
"aria-invalid": !!error,
|
|
1631
1655
|
"aria-describedby": describedBy || void 0,
|
|
1632
|
-
className:
|
|
1656
|
+
className: clsx16__default.default(
|
|
1633
1657
|
"input",
|
|
1634
1658
|
Input_module_default.input,
|
|
1635
1659
|
{
|
|
@@ -1640,11 +1664,11 @@ var Input = React66.forwardRef(
|
|
|
1640
1664
|
)
|
|
1641
1665
|
}, props)
|
|
1642
1666
|
),
|
|
1643
|
-
endAdornment && /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
1644
|
-
endAction && /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
1667
|
+
endAdornment && /* @__PURE__ */ jsxRuntime.jsx("span", { className: clsx16__default.default("input-adornment", Input_module_default.adornment), "aria-hidden": "true", children: endAdornment }),
|
|
1668
|
+
endAction && /* @__PURE__ */ jsxRuntime.jsx("span", { className: clsx16__default.default("input-end-action"), children: endAction })
|
|
1645
1669
|
] }),
|
|
1646
|
-
helperText && !error && /* @__PURE__ */ jsxRuntime.jsx("p", { id: helperTextId, className:
|
|
1647
|
-
error && /* @__PURE__ */ jsxRuntime.jsx("p", { id: errorId, className:
|
|
1670
|
+
helperText && !error && /* @__PURE__ */ jsxRuntime.jsx("p", { id: helperTextId, className: clsx16__default.default("input-helper-text", Input_module_default["helper-text"]), children: helperText }),
|
|
1671
|
+
error && /* @__PURE__ */ jsxRuntime.jsx("p", { id: errorId, className: clsx16__default.default("input-error", Input_module_default.error), role: "alert", children: error })
|
|
1648
1672
|
]
|
|
1649
1673
|
}
|
|
1650
1674
|
);
|
|
@@ -1684,14 +1708,14 @@ var NewsCard = ({
|
|
|
1684
1708
|
href: cta.url,
|
|
1685
1709
|
target: cta.isExternal ? "_blank" : void 0,
|
|
1686
1710
|
rel: cta.isExternal ? "noopener noreferrer" : void 0,
|
|
1687
|
-
className:
|
|
1711
|
+
className: clsx16__default.default("news-card-link", NewsCard_module_default["news-card-link"]),
|
|
1688
1712
|
"aria-label": `${title}${cta.label ? ` \u2014 ${cta.label}` : ""}`
|
|
1689
1713
|
} : null;
|
|
1690
1714
|
const cardLink = linkProps ? renderLink ? renderLink(__spreadProps(__spreadValues({}, linkProps), { children: null })) : /* @__PURE__ */ jsxRuntime.jsx("a", __spreadValues({}, linkProps)) : null;
|
|
1691
1715
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1692
1716
|
"article",
|
|
1693
1717
|
{
|
|
1694
|
-
className:
|
|
1718
|
+
className: clsx16__default.default(
|
|
1695
1719
|
"news-card",
|
|
1696
1720
|
NewsCard_module_default["news-card"],
|
|
1697
1721
|
NewsCard_module_default[`news-card--${direction}`],
|
|
@@ -1699,28 +1723,28 @@ var NewsCard = ({
|
|
|
1699
1723
|
),
|
|
1700
1724
|
children: [
|
|
1701
1725
|
cardLink,
|
|
1702
|
-
image && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadProps(__spreadValues({}, image), { className:
|
|
1726
|
+
image && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadProps(__spreadValues({}, image), { className: clsx16__default.default("news-card-image", NewsCard_module_default["news-card-image"]) })),
|
|
1703
1727
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1704
1728
|
"div",
|
|
1705
1729
|
{
|
|
1706
|
-
className:
|
|
1730
|
+
className: clsx16__default.default("news-card-content", NewsCard_module_default["news-card-content"]),
|
|
1707
1731
|
style: {
|
|
1708
1732
|
"--no-image-padding": image && image.src ? 0 : "1rem"
|
|
1709
1733
|
},
|
|
1710
1734
|
children: [
|
|
1711
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
1712
|
-
/* @__PURE__ */ jsxRuntime.jsx(Badge, { className:
|
|
1713
|
-
/* @__PURE__ */ jsxRuntime.jsx("time", { dateTime: date.value, className:
|
|
1735
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx16__default.default("news-card-top-content", NewsCard_module_default["news-card-top-content"]), children: [
|
|
1736
|
+
/* @__PURE__ */ jsxRuntime.jsx(Badge, { className: clsx16__default.default("news-card-badge", NewsCard_module_default["news-card-badge"]), children: tag }),
|
|
1737
|
+
/* @__PURE__ */ jsxRuntime.jsx("time", { dateTime: date.value, className: clsx16__default.default("news-card-date", NewsCard_module_default["news-card-date"]), children: date.label })
|
|
1714
1738
|
] }),
|
|
1715
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
1716
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className:
|
|
1717
|
-
typeof description === "string" ? /* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
1739
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx16__default.default("news-card-main-content", NewsCard_module_default["news-card-main-content"]), children: [
|
|
1740
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: clsx16__default.default("news-card-title", NewsCard_module_default["news-card-title"]), children: title }),
|
|
1741
|
+
typeof description === "string" ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: clsx16__default.default("news-card-description", NewsCard_module_default["news-card-description"]), children: description }) : description
|
|
1718
1742
|
] }),
|
|
1719
|
-
cta && cta.url && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1743
|
+
cta && cta.url && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx16__default.default("news-card-cta-wrapper", NewsCard_module_default["news-card-cta-wrapper"]), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1720
1744
|
Button,
|
|
1721
1745
|
{
|
|
1722
1746
|
variant: "secondary",
|
|
1723
|
-
className:
|
|
1747
|
+
className: clsx16__default.default("news-card-cta", NewsCard_module_default["news-card-cta"]),
|
|
1724
1748
|
href: cta.url,
|
|
1725
1749
|
icon: cta.icon,
|
|
1726
1750
|
isExternal: cta == null ? void 0 : cta.isExternal,
|
|
@@ -1751,7 +1775,7 @@ var BlogPostContent = ({ className, body, children }) => {
|
|
|
1751
1775
|
body: BlogPostContentBody
|
|
1752
1776
|
});
|
|
1753
1777
|
const bodyNode = (_a = slots.body) != null ? _a : body;
|
|
1754
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1778
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx16__default.default("blog-post-content", BlogPostContent_module_default["blog-post-content"], className), children: bodyNode });
|
|
1755
1779
|
};
|
|
1756
1780
|
|
|
1757
1781
|
// src/components/BlogPostContent/index.ts
|
|
@@ -1837,13 +1861,13 @@ var CardCollection = ({
|
|
|
1837
1861
|
Container,
|
|
1838
1862
|
{
|
|
1839
1863
|
ref: container,
|
|
1840
|
-
className:
|
|
1864
|
+
className: clsx16__default.default(CardCollection_module_default["card-collection"], CardCollection_module_default[variant], className),
|
|
1841
1865
|
children: [
|
|
1842
1866
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: CardCollection_module_default.content, children: [
|
|
1843
1867
|
titleNode && /* @__PURE__ */ jsxRuntime.jsx("h2", { children: titleNode }),
|
|
1844
1868
|
subtitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "subheading", children: subtitleNode })
|
|
1845
1869
|
] }),
|
|
1846
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: CardCollection_module_default.wrapper, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
1870
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: CardCollection_module_default.wrapper, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx16__default.default(CardCollection_module_default.cardWrapper, { [CardCollection_module_default["is-expanded"]]: isExpanded }), children: [
|
|
1847
1871
|
visibleCards.map((card, key) => /* @__PURE__ */ jsxRuntime.jsx(Card2, __spreadValues({ className: CardCollection_module_default.card, variant: theme }, card), key)),
|
|
1848
1872
|
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(
|
|
1849
1873
|
Card2,
|
|
@@ -1944,7 +1968,7 @@ var ContactModule = ({
|
|
|
1944
1968
|
},
|
|
1945
1969
|
{ scope: containerRef, dependencies: [blurred, animateBlur] }
|
|
1946
1970
|
);
|
|
1947
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref: containerRef, className:
|
|
1971
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref: containerRef, className: clsx16__default.default(ContactModule_module_default["contact-module"], className), children: [
|
|
1948
1972
|
blurred && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1949
1973
|
"div",
|
|
1950
1974
|
{
|
|
@@ -1959,8 +1983,8 @@ var ContactModule = ({
|
|
|
1959
1983
|
/* @__PURE__ */ jsxRuntime.jsxs(Container, { className: ContactModule_module_default.container, children: [
|
|
1960
1984
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: ContactModule_module_default.wrapper, children: [
|
|
1961
1985
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: ContactModule_module_default.content, children: [
|
|
1962
|
-
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1963
|
-
subtitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1986
|
+
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx16__default.default(ContactModule_module_default.title, "h1"), children: titleNode }),
|
|
1987
|
+
subtitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx16__default.default(ContactModule_module_default.subtitle, "subheading"), children: subtitleNode })
|
|
1964
1988
|
] }),
|
|
1965
1989
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: ContactModule_module_default["cta-wrapper"], children: ctas == null ? void 0 : ctas.map((cta, key) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1966
1990
|
Button,
|
|
@@ -2029,7 +2053,7 @@ var Footer = ({
|
|
|
2029
2053
|
disclaimer: FooterDisclaimer
|
|
2030
2054
|
});
|
|
2031
2055
|
const titleNode = (_a = slots.disclaimer) != null ? _a : disclaimer;
|
|
2032
|
-
return /* @__PURE__ */ jsxRuntime.jsx("footer", { className:
|
|
2056
|
+
return /* @__PURE__ */ jsxRuntime.jsx("footer", { className: clsx16__default.default(Footer_module_default.footer, className), children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: Footer_module_default.container, children: [
|
|
2033
2057
|
supportContacts.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: Footer_module_default["support-section"], children: [
|
|
2034
2058
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: Footer_module_default["support-heading"], children: "SUPPORT" }),
|
|
2035
2059
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: Footer_module_default.support, children: supportColumns.map((column, colIdx) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: Footer_module_default["support-column"], children: column.map((group, i) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: Footer_module_default["support-group"], children: [
|
|
@@ -2058,7 +2082,7 @@ var Footer = ({
|
|
|
2058
2082
|
index
|
|
2059
2083
|
) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: Footer_module_default["supporter-link-primary"], children: /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({}, supporter.image)) }, index)
|
|
2060
2084
|
) }) }),
|
|
2061
|
-
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
2085
|
+
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx16__default.default(Footer_module_default.disclaimer, "p"), children: titleNode }),
|
|
2062
2086
|
copyright && /* @__PURE__ */ jsxRuntime.jsx("p", { className: Footer_module_default.copyright, children: copyright })
|
|
2063
2087
|
] }),
|
|
2064
2088
|
navigationLinks.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("nav", { className: Footer_module_default["bottom-right"], children: /* @__PURE__ */ jsxRuntime.jsx("ul", { className: Footer_module_default["nav-list"], children: navigationLinks.map((link) => /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -2084,7 +2108,7 @@ var LogoBar_module_default = {
|
|
|
2084
2108
|
};
|
|
2085
2109
|
var LogoBar = ({ className, items }) => {
|
|
2086
2110
|
if (!items || items.length === 0) return null;
|
|
2087
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
2111
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx16__default.default(LogoBar_module_default.logoBar, className), children: items.map((item, key) => {
|
|
2088
2112
|
return /* @__PURE__ */ jsxRuntime.jsx(Anchor, { href: item.url, isExternal: item.isExternal, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: LogoBar_module_default.logoWrapper, children: [
|
|
2089
2113
|
item.logo && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: LogoBar_module_default.logo }, item.logo)),
|
|
2090
2114
|
item.hoverLogo && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: LogoBar_module_default.logoHover }, item.hoverLogo))
|
|
@@ -2156,7 +2180,7 @@ var HeroBanner = ({
|
|
|
2156
2180
|
});
|
|
2157
2181
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
2158
2182
|
const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
|
|
2159
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
2183
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx16__default.default(HeroBanner_module_default.heroBanner, HeroBanner_module_default[variant], className), children: [
|
|
2160
2184
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: HeroBanner_module_default.container, children: [
|
|
2161
2185
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: HeroBanner_module_default.banner, children: [
|
|
2162
2186
|
(titleNode || subtitleNode) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: HeroBanner_module_default.text, children: [
|
|
@@ -2166,7 +2190,7 @@ var HeroBanner = ({
|
|
|
2166
2190
|
{
|
|
2167
2191
|
tag: "h2",
|
|
2168
2192
|
promoteToH1,
|
|
2169
|
-
className:
|
|
2193
|
+
className: clsx16__default.default(HeroBanner_module_default.title, vBannerPodcast ? "h3" : "h1"),
|
|
2170
2194
|
children: titleNode
|
|
2171
2195
|
}
|
|
2172
2196
|
),
|
|
@@ -2175,7 +2199,7 @@ var HeroBanner = ({
|
|
|
2175
2199
|
{
|
|
2176
2200
|
tag: "div",
|
|
2177
2201
|
promoteToH1: promoteToH1 && !titleNode,
|
|
2178
|
-
className:
|
|
2202
|
+
className: clsx16__default.default(HeroBanner_module_default.subtitle, "subheading"),
|
|
2179
2203
|
children: subtitleNode
|
|
2180
2204
|
}
|
|
2181
2205
|
)
|
|
@@ -2252,7 +2276,7 @@ var HeroBannerCarousel = ({
|
|
|
2252
2276
|
const [swiperInstance, setSwiperInstance] = React66.useState(null);
|
|
2253
2277
|
const [activeIndex, setActiveIndex] = React66.useState(0);
|
|
2254
2278
|
if (!items.length) return null;
|
|
2255
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
2279
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx16__default.default(HeroBannerCarousel_module_default.heroBannerCarousel, className), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: HeroBannerCarousel_module_default.inner, children: [
|
|
2256
2280
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: HeroBannerCarousel_module_default.swiperContainer, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2257
2281
|
react$1.Swiper,
|
|
2258
2282
|
{
|
|
@@ -2299,7 +2323,7 @@ var HeroBannerCarousel = ({
|
|
|
2299
2323
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: HeroBannerCarousel_module_default.pagination, children: items.map((_, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2300
2324
|
"button",
|
|
2301
2325
|
{
|
|
2302
|
-
className:
|
|
2326
|
+
className: clsx16__default.default(HeroBannerCarousel_module_default.dot, index === activeIndex && HeroBannerCarousel_module_default.dotActive),
|
|
2303
2327
|
onClick: () => swiperInstance == null ? void 0 : swiperInstance.slideTo(index),
|
|
2304
2328
|
"aria-label": `Go to slide ${index + 1}`
|
|
2305
2329
|
},
|
|
@@ -2379,7 +2403,7 @@ var AccordionItem = ({
|
|
|
2379
2403
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2380
2404
|
"div",
|
|
2381
2405
|
{
|
|
2382
|
-
className:
|
|
2406
|
+
className: clsx16__default.default(
|
|
2383
2407
|
Accordion_module_default.accordionItem,
|
|
2384
2408
|
{
|
|
2385
2409
|
[Accordion_module_default.accordionItemOpen]: isOpen
|
|
@@ -2390,18 +2414,18 @@ var AccordionItem = ({
|
|
|
2390
2414
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
2391
2415
|
"button",
|
|
2392
2416
|
{
|
|
2393
|
-
className:
|
|
2417
|
+
className: clsx16__default.default(Accordion_module_default.accordionHeader, {
|
|
2394
2418
|
[Accordion_module_default.accordionHeaderOpen]: isOpen
|
|
2395
2419
|
}),
|
|
2396
2420
|
onClick: handleToggle,
|
|
2397
2421
|
"aria-expanded": isOpen,
|
|
2398
2422
|
"aria-label": `Toggle ${title}`,
|
|
2399
2423
|
children: [
|
|
2400
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: Accordion_module_default.accordionHeaderLeft, children: /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
2424
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: Accordion_module_default.accordionHeaderLeft, children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: clsx16__default.default("body", Accordion_module_default.accordionTitle), children: title }) }),
|
|
2401
2425
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2402
2426
|
"span",
|
|
2403
2427
|
{
|
|
2404
|
-
className:
|
|
2428
|
+
className: clsx16__default.default(Accordion_module_default.accordionChevron, {
|
|
2405
2429
|
[Accordion_module_default.accordionChevronOpen]: isOpen
|
|
2406
2430
|
}),
|
|
2407
2431
|
children: isOpen ? /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "filledChevronUpBlack", size: 40 }) : /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "circleChevronDown", size: 40 })
|
|
@@ -2453,7 +2477,7 @@ var Accordion = ({
|
|
|
2453
2477
|
if (items.length === 0) {
|
|
2454
2478
|
return null;
|
|
2455
2479
|
}
|
|
2456
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
2480
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx16__default.default(Accordion_module_default.accordion, className), children: items.map((item) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2457
2481
|
AccordionItem,
|
|
2458
2482
|
{
|
|
2459
2483
|
id: item.id,
|
|
@@ -2543,7 +2567,7 @@ var InternalBrandsTab = (props) => {
|
|
|
2543
2567
|
};
|
|
2544
2568
|
})) || [];
|
|
2545
2569
|
}, [tabs]);
|
|
2546
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(Container, { className:
|
|
2570
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: clsx16__default.default(InternalBrandsTab_module_default.internalBrandsTab, className), children: [
|
|
2547
2571
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: InternalBrandsTab_module_default.textsContainer, children: [
|
|
2548
2572
|
title && /* @__PURE__ */ jsxRuntime.jsx(Text, { tag: "h2", className: InternalBrandsTab_module_default.title, children: title }),
|
|
2549
2573
|
subTitle && /* @__PURE__ */ jsxRuntime.jsx("div", { className: InternalBrandsTab_module_default.subTitle, children: subTitle })
|
|
@@ -2559,7 +2583,7 @@ var InternalBrandsTab = (props) => {
|
|
|
2559
2583
|
},
|
|
2560
2584
|
index
|
|
2561
2585
|
)) }),
|
|
2562
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
2586
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx16__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: [
|
|
2563
2587
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: InternalBrandsTab_module_default.topContent, children: [
|
|
2564
2588
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
2565
2589
|
((_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 }),
|
|
@@ -2656,22 +2680,22 @@ var MiniBanner = ({
|
|
|
2656
2680
|
const titleNode = (_b = slots.title) != null ? _b : title;
|
|
2657
2681
|
const subtitleNode = (_c = slots.subtitle) != null ? _c : subtitle;
|
|
2658
2682
|
const goBackNode = slots == null ? void 0 : slots.goBack;
|
|
2659
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
2683
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx16__default.default(MiniBanner_module_default.minibanner, MiniBanner_module_default[variant], className), children: [
|
|
2660
2684
|
((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)),
|
|
2661
2685
|
/* @__PURE__ */ jsxRuntime.jsx(Container, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: MiniBanner_module_default.wrapper, children: [
|
|
2662
2686
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: MiniBanner_module_default.textContainer, children: [
|
|
2663
2687
|
(logo == null ? void 0 : logo.src) && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: MiniBanner_module_default.logo }, logo)),
|
|
2664
|
-
pretitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
2688
|
+
pretitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx16__default.default(MiniBanner_module_default.pretitle, "small"), children: pretitleNode }),
|
|
2665
2689
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: MiniBanner_module_default.headingWrapper, children: [
|
|
2666
2690
|
goBackNode ? React66__default.default.cloneElement(goBackNode, {
|
|
2667
|
-
className:
|
|
2691
|
+
className: clsx16__default.default("back-button", MiniBanner_module_default["back-button"])
|
|
2668
2692
|
}) : null,
|
|
2669
|
-
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
2693
|
+
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx16__default.default(MiniBanner_module_default.title, isMiniBannerTextLeft ? "h1" : "h4"), children: titleNode })
|
|
2670
2694
|
] }),
|
|
2671
2695
|
subtitleNode && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2672
2696
|
"div",
|
|
2673
2697
|
{
|
|
2674
|
-
className:
|
|
2698
|
+
className: clsx16__default.default(MiniBanner_module_default.title, {
|
|
2675
2699
|
subheading: isMiniBannerNoBG || isMiniBannerTextLeft,
|
|
2676
2700
|
h1: !isMiniBannerNoBG && !isMiniBannerTextLeft
|
|
2677
2701
|
}),
|
|
@@ -2743,14 +2767,14 @@ var MiniSectionCta = ({
|
|
|
2743
2767
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2744
2768
|
"div",
|
|
2745
2769
|
{
|
|
2746
|
-
className:
|
|
2770
|
+
className: clsx16__default.default(MiniSectionCta_module_default.miniSectionCta, MiniSectionCta_module_default[variant], theme && MiniSectionCta_module_default[theme], className),
|
|
2747
2771
|
children: /* @__PURE__ */ jsxRuntime.jsx(Container, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: MiniSectionCta_module_default.wrapper, children: [
|
|
2748
2772
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: MiniSectionCta_module_default.col, children: [
|
|
2749
2773
|
titleNode && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: variant === "BgColorBlack" || variant === "BgColorGrey" ? "h3" : "h2", children: titleNode }),
|
|
2750
2774
|
subtitleNode && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2751
2775
|
"div",
|
|
2752
2776
|
{
|
|
2753
|
-
className:
|
|
2777
|
+
className: clsx16__default.default(MiniSectionCta_module_default.subtitle, variant === "infoCallout" ? "h4" : "subheading"),
|
|
2754
2778
|
children: subtitleNode
|
|
2755
2779
|
}
|
|
2756
2780
|
)
|
|
@@ -2776,6 +2800,424 @@ var MiniSectionCta2 = Object.assign(MiniSectionCta, {
|
|
|
2776
2800
|
Title: MiniSectionCtaTitle,
|
|
2777
2801
|
Subtitle: MiniSectionCtaSubtitle
|
|
2778
2802
|
});
|
|
2803
|
+
function useIntersectionObserver({
|
|
2804
|
+
animateOnce = false,
|
|
2805
|
+
options = {}
|
|
2806
|
+
} = {}) {
|
|
2807
|
+
const observeRef = React66.useRef(null);
|
|
2808
|
+
const [isVisible, setIsVisible] = React66.useState(false);
|
|
2809
|
+
if (typeof IntersectionObserver === "undefined") {
|
|
2810
|
+
console.warn("IntersectionObserver is not supported in this browser.");
|
|
2811
|
+
return { observeRef, isVisible: true };
|
|
2812
|
+
}
|
|
2813
|
+
React66.useEffect(() => {
|
|
2814
|
+
const currentRef = observeRef.current;
|
|
2815
|
+
if (!currentRef) return;
|
|
2816
|
+
const observer = new IntersectionObserver((entries) => {
|
|
2817
|
+
const entry = entries[0];
|
|
2818
|
+
if (!entry) return;
|
|
2819
|
+
setIsVisible(entry.isIntersecting);
|
|
2820
|
+
if (entry.isIntersecting && animateOnce) {
|
|
2821
|
+
observer.disconnect();
|
|
2822
|
+
}
|
|
2823
|
+
}, options);
|
|
2824
|
+
observer.observe(currentRef);
|
|
2825
|
+
return () => {
|
|
2826
|
+
observer.disconnect();
|
|
2827
|
+
};
|
|
2828
|
+
}, [observeRef, animateOnce, options]);
|
|
2829
|
+
return { observeRef, isVisible };
|
|
2830
|
+
}
|
|
2831
|
+
var useIsAtTop = () => {
|
|
2832
|
+
const [isAtTop, setIsAtTop] = React66.useState(true);
|
|
2833
|
+
React66.useEffect(() => {
|
|
2834
|
+
const handleScroll = () => setIsAtTop(window.scrollY === 0);
|
|
2835
|
+
window.addEventListener("scroll", handleScroll, { passive: true });
|
|
2836
|
+
return () => window.removeEventListener("scroll", handleScroll);
|
|
2837
|
+
}, []);
|
|
2838
|
+
return isAtTop;
|
|
2839
|
+
};
|
|
2840
|
+
|
|
2841
|
+
// src/widgets/Navigation/Navigation.module.scss
|
|
2842
|
+
var Navigation_module_default = {
|
|
2843
|
+
dropdownTitle: "Navigation_module_dropdownTitle",
|
|
2844
|
+
dropdownLink: "Navigation_module_dropdownLink",
|
|
2845
|
+
dropdownDescription: "Navigation_module_dropdownDescription",
|
|
2846
|
+
mobileItemLink: "Navigation_module_mobileItemLink",
|
|
2847
|
+
mobileItemTrigger: "Navigation_module_mobileItemTrigger",
|
|
2848
|
+
mobileSubLink: "Navigation_module_mobileSubLink",
|
|
2849
|
+
navigationWrapper: "Navigation_module_navigationWrapper",
|
|
2850
|
+
dropdownOpen: "Navigation_module_dropdownOpen",
|
|
2851
|
+
variantTransparent: "Navigation_module_variantTransparent",
|
|
2852
|
+
transparent: "Navigation_module_transparent",
|
|
2853
|
+
navigation: "Navigation_module_navigation",
|
|
2854
|
+
upperNav: "Navigation_module_upperNav",
|
|
2855
|
+
mainLogo: "Navigation_module_mainLogo",
|
|
2856
|
+
mainLogoLink: "Navigation_module_mainLogoLink",
|
|
2857
|
+
upperRight: "Navigation_module_upperRight",
|
|
2858
|
+
lowerNav: "Navigation_module_lowerNav",
|
|
2859
|
+
lowerNavItem: "Navigation_module_lowerNavItem",
|
|
2860
|
+
overlay: "Navigation_module_overlay",
|
|
2861
|
+
dropdownTrigger: "Navigation_module_dropdownTrigger",
|
|
2862
|
+
dropdownTriggerOpen: "Navigation_module_dropdownTriggerOpen",
|
|
2863
|
+
dropdownPanel: "Navigation_module_dropdownPanel",
|
|
2864
|
+
dropdownPanelOpen: "Navigation_module_dropdownPanelOpen",
|
|
2865
|
+
dropdownInner: "Navigation_module_dropdownInner",
|
|
2866
|
+
dropdownLinks: "Navigation_module_dropdownLinks",
|
|
2867
|
+
dropdownLinkContainer: "Navigation_module_dropdownLinkContainer",
|
|
2868
|
+
dropdownInfo: "Navigation_module_dropdownInfo",
|
|
2869
|
+
mainLogoMobile: "Navigation_module_mainLogoMobile",
|
|
2870
|
+
hamburgerButton: "Navigation_module_hamburgerButton",
|
|
2871
|
+
mobileMenu: "Navigation_module_mobileMenu",
|
|
2872
|
+
mobileMenuOpen: "Navigation_module_mobileMenuOpen",
|
|
2873
|
+
mobileMenuHeader: "Navigation_module_mobileMenuHeader",
|
|
2874
|
+
mobileMenuItems: "Navigation_module_mobileMenuItems",
|
|
2875
|
+
mobileItem: "Navigation_module_mobileItem",
|
|
2876
|
+
mobileItemChevron: "Navigation_module_mobileItemChevron",
|
|
2877
|
+
mobileItemChevronOpen: "Navigation_module_mobileItemChevronOpen",
|
|
2878
|
+
mobileSubItems: "Navigation_module_mobileSubItems",
|
|
2879
|
+
mobileSubItemsOpen: "Navigation_module_mobileSubItemsOpen",
|
|
2880
|
+
mobileSubItemsInner: "Navigation_module_mobileSubItemsInner",
|
|
2881
|
+
mobileMenuCtas: "Navigation_module_mobileMenuCtas"
|
|
2882
|
+
};
|
|
2883
|
+
var NavigationDesktop = ({
|
|
2884
|
+
navigationItems,
|
|
2885
|
+
isTransparent,
|
|
2886
|
+
onDropdownOpenChange
|
|
2887
|
+
}) => {
|
|
2888
|
+
var _a;
|
|
2889
|
+
const [activeDropdown, setActiveDropdown] = React66.useState(null);
|
|
2890
|
+
const closeTimer = React66.useRef(null);
|
|
2891
|
+
const dropdownWrapperRefs = React66.useRef([]);
|
|
2892
|
+
const baseId = React66.useId();
|
|
2893
|
+
const setDropdown = (index) => {
|
|
2894
|
+
setActiveDropdown(index);
|
|
2895
|
+
onDropdownOpenChange == null ? void 0 : onDropdownOpenChange(index !== null);
|
|
2896
|
+
};
|
|
2897
|
+
const handleDropdownEnter = (index) => {
|
|
2898
|
+
if (closeTimer.current) clearTimeout(closeTimer.current);
|
|
2899
|
+
setDropdown(index);
|
|
2900
|
+
};
|
|
2901
|
+
const handleDropdownLeave = () => {
|
|
2902
|
+
closeTimer.current = setTimeout(() => setDropdown(null), 100);
|
|
2903
|
+
};
|
|
2904
|
+
const handleDropdownBlur = (e, index) => {
|
|
2905
|
+
if (!e.currentTarget.contains(e.relatedTarget)) {
|
|
2906
|
+
if (activeDropdown === index) setDropdown(null);
|
|
2907
|
+
}
|
|
2908
|
+
};
|
|
2909
|
+
const handleTriggerKeyDown = (e, index) => {
|
|
2910
|
+
if (e.key === "Escape") {
|
|
2911
|
+
setDropdown(null);
|
|
2912
|
+
} else if ((e.key === "Enter" || e.key === " ") && activeDropdown !== index) {
|
|
2913
|
+
e.preventDefault();
|
|
2914
|
+
setDropdown(index);
|
|
2915
|
+
}
|
|
2916
|
+
};
|
|
2917
|
+
const handleDropdownKeyDown = (e, index) => {
|
|
2918
|
+
var _a2, _b;
|
|
2919
|
+
if (e.key === "Escape") {
|
|
2920
|
+
setDropdown(null);
|
|
2921
|
+
(_b = (_a2 = dropdownWrapperRefs.current[index]) == null ? void 0 : _a2.querySelector("button")) == null ? void 0 : _b.focus();
|
|
2922
|
+
}
|
|
2923
|
+
};
|
|
2924
|
+
if (!((_a = navigationItems == null ? void 0 : navigationItems.items) == null ? void 0 : _a.length)) return null;
|
|
2925
|
+
return /* @__PURE__ */ jsxRuntime.jsx("ul", { className: Navigation_module_default.lowerNav, children: navigationItems.items.map((item, index) => {
|
|
2926
|
+
var _a2, _b, _c;
|
|
2927
|
+
const panelId = `${baseId}-panel-${index}`;
|
|
2928
|
+
const isOpen = activeDropdown === index;
|
|
2929
|
+
return item.type === "dropdown" ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2930
|
+
"li",
|
|
2931
|
+
{
|
|
2932
|
+
className: Navigation_module_default.lowerNavItem,
|
|
2933
|
+
ref: (el) => {
|
|
2934
|
+
dropdownWrapperRefs.current[index] = el;
|
|
2935
|
+
},
|
|
2936
|
+
onBlur: (e) => handleDropdownBlur(e, index),
|
|
2937
|
+
children: [
|
|
2938
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2939
|
+
Button,
|
|
2940
|
+
{
|
|
2941
|
+
variant: "navnofillblack",
|
|
2942
|
+
className: clsx16__default.default(Navigation_module_default.dropdownTrigger, { [Navigation_module_default.dropdownTriggerOpen]: isOpen }),
|
|
2943
|
+
icon: isTransparent ? "downChevronWhite" : "downChevronBlack",
|
|
2944
|
+
isActive: isOpen,
|
|
2945
|
+
"aria-expanded": isOpen,
|
|
2946
|
+
"aria-haspopup": "true",
|
|
2947
|
+
"aria-controls": panelId,
|
|
2948
|
+
onMouseEnter: () => handleDropdownEnter(index),
|
|
2949
|
+
onMouseLeave: handleDropdownLeave,
|
|
2950
|
+
onClick: () => setDropdown(isOpen ? null : index),
|
|
2951
|
+
onKeyDown: (e) => handleTriggerKeyDown(e, index),
|
|
2952
|
+
children: item.title
|
|
2953
|
+
}
|
|
2954
|
+
),
|
|
2955
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2956
|
+
"div",
|
|
2957
|
+
{
|
|
2958
|
+
id: panelId,
|
|
2959
|
+
className: clsx16__default.default(Navigation_module_default.dropdownPanel, { [Navigation_module_default.dropdownPanelOpen]: isOpen }),
|
|
2960
|
+
"aria-hidden": !isOpen,
|
|
2961
|
+
onMouseEnter: () => handleDropdownEnter(index),
|
|
2962
|
+
onMouseLeave: handleDropdownLeave,
|
|
2963
|
+
onKeyDown: (e) => handleDropdownKeyDown(e, index),
|
|
2964
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: Navigation_module_default.dropdownInner, children: [
|
|
2965
|
+
/* @__PURE__ */ jsxRuntime.jsx("ul", { className: Navigation_module_default.dropdownLinks, children: item.items.map(
|
|
2966
|
+
(subItem, i) => {
|
|
2967
|
+
var _a3, _b2;
|
|
2968
|
+
return subItem.type === "link" ? /* @__PURE__ */ jsxRuntime.jsx("li", { className: Navigation_module_default.dropdownLinkContainer, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2969
|
+
"a",
|
|
2970
|
+
{
|
|
2971
|
+
href: (_a3 = subItem.cta) == null ? void 0 : _a3.url,
|
|
2972
|
+
className: Navigation_module_default.dropdownLink,
|
|
2973
|
+
tabIndex: isOpen ? void 0 : -1,
|
|
2974
|
+
children: (_b2 = subItem.cta) == null ? void 0 : _b2.label
|
|
2975
|
+
}
|
|
2976
|
+
) }, i) : null;
|
|
2977
|
+
}
|
|
2978
|
+
) }),
|
|
2979
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: Navigation_module_default.dropdownInfo, children: [
|
|
2980
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: Navigation_module_default.dropdownTitle, children: item.title }),
|
|
2981
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: Navigation_module_default.dropdownDescription, children: item.description })
|
|
2982
|
+
] })
|
|
2983
|
+
] })
|
|
2984
|
+
}
|
|
2985
|
+
)
|
|
2986
|
+
]
|
|
2987
|
+
},
|
|
2988
|
+
index
|
|
2989
|
+
) : /* @__PURE__ */ jsxRuntime.jsx("li", { className: Navigation_module_default.lowerNavItem, children: /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "navnofillblack", href: (_a2 = item.cta) == null ? void 0 : _a2.url, isExternal: (_b = item.cta) == null ? void 0 : _b.isExternal, children: (_c = item.cta) == null ? void 0 : _c.label }) }, index);
|
|
2990
|
+
}) });
|
|
2991
|
+
};
|
|
2992
|
+
var NavigationLogo = ({
|
|
2993
|
+
mainLogo,
|
|
2994
|
+
homeCta,
|
|
2995
|
+
className,
|
|
2996
|
+
onClick,
|
|
2997
|
+
logoAlt = "Home"
|
|
2998
|
+
}) => {
|
|
2999
|
+
if (!mainLogo) return null;
|
|
3000
|
+
if (homeCta) {
|
|
3001
|
+
return /* @__PURE__ */ jsxRuntime.jsx("a", { href: homeCta, className: Navigation_module_default.mainLogoLink, onClick, "aria-label": logoAlt, children: /* @__PURE__ */ jsxRuntime.jsx(Picture, { className, src: mainLogo, alt: logoAlt || "" }) });
|
|
3002
|
+
}
|
|
3003
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Picture, { className, src: mainLogo, alt: logoAlt });
|
|
3004
|
+
};
|
|
3005
|
+
var NavigationCtas = ({
|
|
3006
|
+
loginCta,
|
|
3007
|
+
rightButton,
|
|
3008
|
+
loginVariant,
|
|
3009
|
+
className
|
|
3010
|
+
}) => {
|
|
3011
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className, children: [
|
|
3012
|
+
(loginCta == null ? void 0 : loginCta.label) && /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: loginVariant, href: loginCta.url, isExternal: loginCta.isExternal, children: loginCta.label }),
|
|
3013
|
+
(rightButton == null ? void 0 : rightButton.label) && /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "primary", href: rightButton.url, isExternal: rightButton.isExternal, children: rightButton.label })
|
|
3014
|
+
] });
|
|
3015
|
+
};
|
|
3016
|
+
var NavigationMobile = ({
|
|
3017
|
+
id,
|
|
3018
|
+
navigationItems,
|
|
3019
|
+
mainLogo,
|
|
3020
|
+
homeCta,
|
|
3021
|
+
loginCta,
|
|
3022
|
+
rightButton,
|
|
3023
|
+
isOpen,
|
|
3024
|
+
onClose
|
|
3025
|
+
}) => {
|
|
3026
|
+
var _a;
|
|
3027
|
+
const [expanded, setExpanded] = React66.useState([]);
|
|
3028
|
+
const baseId = React66.useId();
|
|
3029
|
+
const toggleExpanded = (index) => {
|
|
3030
|
+
setExpanded((prev) => prev.includes(index) ? prev.filter((i) => i !== index) : [...prev, index]);
|
|
3031
|
+
};
|
|
3032
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3033
|
+
"div",
|
|
3034
|
+
{
|
|
3035
|
+
id,
|
|
3036
|
+
className: clsx16__default.default(Navigation_module_default.mobileMenu, isOpen && Navigation_module_default.mobileMenuOpen),
|
|
3037
|
+
role: "dialog",
|
|
3038
|
+
"aria-modal": "true",
|
|
3039
|
+
"aria-label": "Navigation menu",
|
|
3040
|
+
"aria-hidden": !isOpen,
|
|
3041
|
+
children: [
|
|
3042
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: Navigation_module_default.mobileMenuHeader, children: [
|
|
3043
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3044
|
+
NavigationLogo,
|
|
3045
|
+
{
|
|
3046
|
+
mainLogo,
|
|
3047
|
+
homeCta,
|
|
3048
|
+
className: Navigation_module_default.mainLogoMobile,
|
|
3049
|
+
onClick: onClose
|
|
3050
|
+
}
|
|
3051
|
+
),
|
|
3052
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3053
|
+
"button",
|
|
3054
|
+
{
|
|
3055
|
+
type: "button",
|
|
3056
|
+
className: Navigation_module_default.hamburgerButton,
|
|
3057
|
+
onClick: onClose,
|
|
3058
|
+
"aria-label": "Close navigation menu",
|
|
3059
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "xBlack", size: 24, "aria-hidden": "true" })
|
|
3060
|
+
}
|
|
3061
|
+
)
|
|
3062
|
+
] }),
|
|
3063
|
+
/* @__PURE__ */ jsxRuntime.jsx("ul", { className: Navigation_module_default.mobileMenuItems, children: (_a = navigationItems == null ? void 0 : navigationItems.items) == null ? void 0 : _a.map((item, index) => {
|
|
3064
|
+
var _a2, _b;
|
|
3065
|
+
const subMenuId = `${baseId}-submenu-${index}`;
|
|
3066
|
+
const isExpanded = expanded.includes(index);
|
|
3067
|
+
return item.type === "dropdown" ? /* @__PURE__ */ jsxRuntime.jsxs("li", { className: Navigation_module_default.mobileItem, children: [
|
|
3068
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
3069
|
+
"button",
|
|
3070
|
+
{
|
|
3071
|
+
type: "button",
|
|
3072
|
+
className: Navigation_module_default.mobileItemTrigger,
|
|
3073
|
+
onClick: () => toggleExpanded(index),
|
|
3074
|
+
"aria-expanded": isExpanded,
|
|
3075
|
+
"aria-controls": subMenuId,
|
|
3076
|
+
children: [
|
|
3077
|
+
item.title,
|
|
3078
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3079
|
+
"span",
|
|
3080
|
+
{
|
|
3081
|
+
className: clsx16__default.default(
|
|
3082
|
+
Navigation_module_default.mobileItemChevron,
|
|
3083
|
+
isExpanded && Navigation_module_default.mobileItemChevronOpen
|
|
3084
|
+
),
|
|
3085
|
+
"aria-hidden": "true",
|
|
3086
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "downChevronBlack", size: 24 })
|
|
3087
|
+
}
|
|
3088
|
+
)
|
|
3089
|
+
]
|
|
3090
|
+
}
|
|
3091
|
+
),
|
|
3092
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3093
|
+
"div",
|
|
3094
|
+
{
|
|
3095
|
+
id: subMenuId,
|
|
3096
|
+
className: clsx16__default.default(Navigation_module_default.mobileSubItems, isExpanded && Navigation_module_default.mobileSubItemsOpen),
|
|
3097
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("ul", { className: Navigation_module_default.mobileSubItemsInner, children: item.items.map(
|
|
3098
|
+
(subItem, i) => {
|
|
3099
|
+
var _a3, _b2;
|
|
3100
|
+
return subItem.type === "link" ? /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3101
|
+
"a",
|
|
3102
|
+
{
|
|
3103
|
+
href: (_a3 = subItem.cta) == null ? void 0 : _a3.url,
|
|
3104
|
+
className: Navigation_module_default.mobileSubLink,
|
|
3105
|
+
onClick: onClose,
|
|
3106
|
+
children: (_b2 = subItem.cta) == null ? void 0 : _b2.label
|
|
3107
|
+
}
|
|
3108
|
+
) }, i) : null;
|
|
3109
|
+
}
|
|
3110
|
+
) })
|
|
3111
|
+
}
|
|
3112
|
+
)
|
|
3113
|
+
] }, index) : /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx("a", { href: (_a2 = item.cta) == null ? void 0 : _a2.url, className: Navigation_module_default.mobileItemLink, onClick: onClose, children: (_b = item.cta) == null ? void 0 : _b.label }) }, index);
|
|
3114
|
+
}) }),
|
|
3115
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3116
|
+
NavigationCtas,
|
|
3117
|
+
{
|
|
3118
|
+
className: Navigation_module_default.mobileMenuCtas,
|
|
3119
|
+
loginCta,
|
|
3120
|
+
rightButton,
|
|
3121
|
+
loginVariant: "nofillblack"
|
|
3122
|
+
}
|
|
3123
|
+
)
|
|
3124
|
+
]
|
|
3125
|
+
}
|
|
3126
|
+
);
|
|
3127
|
+
};
|
|
3128
|
+
var Navigation2 = (props) => {
|
|
3129
|
+
const { className, variant, homeCta, loginCta, mainLogo, rightButton, navigationItems } = props;
|
|
3130
|
+
const [isHovered, setIsHovered] = React66.useState(false);
|
|
3131
|
+
const [hasOpenDropdown, setHasOpenDropdown] = React66.useState(false);
|
|
3132
|
+
const [isMobileMenuOpen, setIsMobileMenuOpen] = React66.useState(false);
|
|
3133
|
+
const isAtTop = useIsAtTop();
|
|
3134
|
+
const { is } = useViewPort_default();
|
|
3135
|
+
const mobileMenuId = React66.useId();
|
|
3136
|
+
const isTabletBelow = is("tablet", "below");
|
|
3137
|
+
const isTransparent = variant === "transparent" && isAtTop && !isHovered && !hasOpenDropdown;
|
|
3138
|
+
React66.useEffect(() => {
|
|
3139
|
+
document.body.style.overflow = isMobileMenuOpen ? "hidden" : "";
|
|
3140
|
+
return () => {
|
|
3141
|
+
document.body.style.overflow = "";
|
|
3142
|
+
};
|
|
3143
|
+
}, [isMobileMenuOpen]);
|
|
3144
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
3145
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3146
|
+
"div",
|
|
3147
|
+
{
|
|
3148
|
+
className: clsx16__default.default(
|
|
3149
|
+
Navigation_module_default.navigationWrapper,
|
|
3150
|
+
variant === "transparent" && Navigation_module_default.variantTransparent,
|
|
3151
|
+
isTransparent && Navigation_module_default.transparent,
|
|
3152
|
+
hasOpenDropdown && !isTabletBelow && Navigation_module_default.dropdownOpen
|
|
3153
|
+
),
|
|
3154
|
+
onMouseEnter: () => setIsHovered(true),
|
|
3155
|
+
onMouseLeave: () => setIsHovered(false),
|
|
3156
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("nav", { className: clsx16__default.default(Navigation_module_default.navigation, className), "aria-label": "Main", children: [
|
|
3157
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: Navigation_module_default.upperNav, children: [
|
|
3158
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3159
|
+
NavigationLogo,
|
|
3160
|
+
{
|
|
3161
|
+
mainLogo,
|
|
3162
|
+
homeCta,
|
|
3163
|
+
className: clsx16__default.default(Navigation_module_default.mainLogo, isTabletBelow && Navigation_module_default.mainLogoMobile)
|
|
3164
|
+
}
|
|
3165
|
+
),
|
|
3166
|
+
isTabletBelow ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
3167
|
+
"button",
|
|
3168
|
+
{
|
|
3169
|
+
type: "button",
|
|
3170
|
+
className: Navigation_module_default.hamburgerButton,
|
|
3171
|
+
onClick: () => setIsMobileMenuOpen(true),
|
|
3172
|
+
"aria-label": "Open navigation menu",
|
|
3173
|
+
"aria-haspopup": "dialog",
|
|
3174
|
+
"aria-expanded": isMobileMenuOpen,
|
|
3175
|
+
"aria-controls": mobileMenuId,
|
|
3176
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3177
|
+
Icon,
|
|
3178
|
+
{
|
|
3179
|
+
type: isTransparent ? "menuWhite" : "menuBlack",
|
|
3180
|
+
size: 24,
|
|
3181
|
+
"aria-hidden": "true"
|
|
3182
|
+
}
|
|
3183
|
+
)
|
|
3184
|
+
}
|
|
3185
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
3186
|
+
NavigationCtas,
|
|
3187
|
+
{
|
|
3188
|
+
className: Navigation_module_default.upperRight,
|
|
3189
|
+
loginCta,
|
|
3190
|
+
rightButton,
|
|
3191
|
+
loginVariant: isTransparent ? "ghost" : "nofillblack"
|
|
3192
|
+
}
|
|
3193
|
+
)
|
|
3194
|
+
] }),
|
|
3195
|
+
isTabletBelow ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
3196
|
+
NavigationMobile,
|
|
3197
|
+
{
|
|
3198
|
+
id: mobileMenuId,
|
|
3199
|
+
navigationItems,
|
|
3200
|
+
mainLogo,
|
|
3201
|
+
homeCta,
|
|
3202
|
+
loginCta,
|
|
3203
|
+
rightButton,
|
|
3204
|
+
isOpen: isMobileMenuOpen,
|
|
3205
|
+
onClose: () => setIsMobileMenuOpen(false)
|
|
3206
|
+
}
|
|
3207
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
3208
|
+
NavigationDesktop,
|
|
3209
|
+
{
|
|
3210
|
+
navigationItems,
|
|
3211
|
+
isTransparent,
|
|
3212
|
+
onDropdownOpenChange: setHasOpenDropdown
|
|
3213
|
+
}
|
|
3214
|
+
)
|
|
3215
|
+
] })
|
|
3216
|
+
}
|
|
3217
|
+
),
|
|
3218
|
+
hasOpenDropdown && !isTabletBelow && /* @__PURE__ */ jsxRuntime.jsx("div", { className: Navigation_module_default.overlay, "aria-hidden": "true" })
|
|
3219
|
+
] });
|
|
3220
|
+
};
|
|
2779
3221
|
var PracticePathCardsFooter = ({ children }) => {
|
|
2780
3222
|
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
|
|
2781
3223
|
};
|
|
@@ -2815,7 +3257,7 @@ var PracticePathCards = ({
|
|
|
2815
3257
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
2816
3258
|
const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
|
|
2817
3259
|
const footerNode = (_c = slots.footer) != null ? _c : footer;
|
|
2818
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
3260
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx16__default.default(PracticePathCards_module_default["practice-path-cards"], className), children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: PracticePathCards_module_default.container, children: [
|
|
2819
3261
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: PracticePathCards_module_default.wrapper, children: [
|
|
2820
3262
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: PracticePathCards_module_default.content, children: [
|
|
2821
3263
|
titleNode && /* @__PURE__ */ jsxRuntime.jsx("h2", { children: titleNode }),
|
|
@@ -2869,8 +3311,8 @@ var Teaser5050With3Text = ({
|
|
|
2869
3311
|
title: Teaser5050With3TextTitle
|
|
2870
3312
|
});
|
|
2871
3313
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
2872
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
2873
|
-
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
3314
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx16__default.default(Teaser5050With3Text_module_default["teaser5050-3text"], Teaser5050With3Text_module_default[variant], className), children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: Teaser5050With3Text_module_default.container, children: [
|
|
3315
|
+
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx16__default.default(Teaser5050With3Text_module_default.title, "h3"), children: titleNode }),
|
|
2874
3316
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: Teaser5050With3Text_module_default.content, children: [
|
|
2875
3317
|
/* @__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)) }),
|
|
2876
3318
|
image && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: Teaser5050With3Text_module_default.image }, image))
|
|
@@ -2920,12 +3362,12 @@ var Teaser5050WithCta = ({
|
|
|
2920
3362
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2921
3363
|
"div",
|
|
2922
3364
|
{
|
|
2923
|
-
className:
|
|
3365
|
+
className: clsx16__default.default(Teaser5050WithCta_module_default.teaser5050, Teaser5050WithCta_module_default[variant], className),
|
|
2924
3366
|
style: { backgroundColor: bgColor ? bgColor : "#ffffff" },
|
|
2925
3367
|
children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: Teaser5050WithCta_module_default.container, children: [
|
|
2926
3368
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: Teaser5050WithCta_module_default.wrapper, children: [
|
|
2927
3369
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: Teaser5050WithCta_module_default.content, children: [
|
|
2928
|
-
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
3370
|
+
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx16__default.default(Teaser5050WithCta_module_default.title, "h3"), children: titleNode }),
|
|
2929
3371
|
subtitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "subheading", children: subtitleNode })
|
|
2930
3372
|
] }),
|
|
2931
3373
|
(ctas == null ? void 0 : ctas.length) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: Teaser5050WithCta_module_default.ctaWrapper, children: ctas.map((cta, key) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -2977,7 +3419,7 @@ var Carousel = (_a) => {
|
|
|
2977
3419
|
},
|
|
2978
3420
|
role: "region",
|
|
2979
3421
|
"aria-label": ariaLabel,
|
|
2980
|
-
className:
|
|
3422
|
+
className: clsx16__default.default(Carousel_module_default.carousel, className),
|
|
2981
3423
|
spaceBetween: 0,
|
|
2982
3424
|
slidesPerView: "auto",
|
|
2983
3425
|
modules: [modules.FreeMode, modules.A11y],
|
|
@@ -2987,7 +3429,7 @@ var Carousel = (_a) => {
|
|
|
2987
3429
|
children: slides.map((slide, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2988
3430
|
react$1.SwiperSlide,
|
|
2989
3431
|
{
|
|
2990
|
-
className:
|
|
3432
|
+
className: clsx16__default.default(Carousel_module_default["carousel-item"], props.slideClass),
|
|
2991
3433
|
children: slide
|
|
2992
3434
|
},
|
|
2993
3435
|
index
|
|
@@ -3037,13 +3479,13 @@ var EventList = ({
|
|
|
3037
3479
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3038
3480
|
"div",
|
|
3039
3481
|
{
|
|
3040
|
-
className:
|
|
3482
|
+
className: clsx16__default.default("event-list-module", EventList_module_default["event-list-module"], className),
|
|
3041
3483
|
style: {
|
|
3042
3484
|
backgroundColor
|
|
3043
3485
|
},
|
|
3044
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className:
|
|
3486
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: clsx16__default.default(EventList_module_default["event-list-container"]), children: [
|
|
3045
3487
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: EventList_module_default["event-list-header-container"], children: [
|
|
3046
|
-
titleNode && /* @__PURE__ */ jsxRuntime.jsx("h2", { className:
|
|
3488
|
+
titleNode && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: clsx16__default.default(EventList_module_default["event-list-title"]), children: titleNode }),
|
|
3047
3489
|
cta && cta.url && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3048
3490
|
Button,
|
|
3049
3491
|
{
|
|
@@ -3060,7 +3502,7 @@ var EventList = ({
|
|
|
3060
3502
|
Carousel,
|
|
3061
3503
|
{
|
|
3062
3504
|
"aria-label": "Upcoming events",
|
|
3063
|
-
wrapperClass:
|
|
3505
|
+
wrapperClass: clsx16__default.default(EventList_module_default["carousel-wrapper"], EventList_module_default[variant]),
|
|
3064
3506
|
slideClass: EventList_module_default["carousel-list-item"],
|
|
3065
3507
|
spaceBetween: 16,
|
|
3066
3508
|
slides: items.map((item) => {
|
|
@@ -3068,7 +3510,7 @@ var EventList = ({
|
|
|
3068
3510
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3069
3511
|
UpcomingEventCard,
|
|
3070
3512
|
__spreadValues({
|
|
3071
|
-
className:
|
|
3513
|
+
className: clsx16__default.default(EventList_module_default["event-card"]),
|
|
3072
3514
|
direction: "vertical",
|
|
3073
3515
|
showImage: false
|
|
3074
3516
|
}, item),
|
|
@@ -3081,17 +3523,17 @@ var EventList = ({
|
|
|
3081
3523
|
"ul",
|
|
3082
3524
|
{
|
|
3083
3525
|
"aria-label": "Upcoming events",
|
|
3084
|
-
className:
|
|
3526
|
+
className: clsx16__default.default(EventList_module_default["event-list-wrapper"], EventList_module_default["horizontal"], EventList_module_default[variant]),
|
|
3085
3527
|
children: items == null ? void 0 : items.map((item, index) => {
|
|
3086
3528
|
var _a2, _b, _c;
|
|
3087
3529
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3088
3530
|
"li",
|
|
3089
3531
|
{
|
|
3090
|
-
className:
|
|
3532
|
+
className: clsx16__default.default(EventList_module_default["card-list-item"]),
|
|
3091
3533
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3092
3534
|
UpcomingEventCard,
|
|
3093
3535
|
__spreadProps(__spreadValues({}, item), {
|
|
3094
|
-
className:
|
|
3536
|
+
className: clsx16__default.default(EventList_module_default["card-item"]),
|
|
3095
3537
|
showImage: false,
|
|
3096
3538
|
direction: "vertical"
|
|
3097
3539
|
})
|
|
@@ -3106,7 +3548,7 @@ var EventList = ({
|
|
|
3106
3548
|
"ul",
|
|
3107
3549
|
{
|
|
3108
3550
|
"aria-label": "Upcoming events",
|
|
3109
|
-
className:
|
|
3551
|
+
className: clsx16__default.default(EventList_module_default["event-list-wrapper"], EventList_module_default[listDirection]),
|
|
3110
3552
|
children: items == null ? void 0 : items.map((item, index) => {
|
|
3111
3553
|
var _a2, _b, _c;
|
|
3112
3554
|
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);
|
|
@@ -3154,9 +3596,9 @@ var TextEvent = (props) => {
|
|
|
3154
3596
|
});
|
|
3155
3597
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
3156
3598
|
const richTextNode = (_b = slots.richText) != null ? _b : richText;
|
|
3157
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(Container, { className:
|
|
3599
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: clsx16__default.default(TextEvent_module_default.textEvent, className), children: [
|
|
3158
3600
|
/* @__PURE__ */ jsxRuntime.jsx(Text, { tag: "h2", className: TextEvent_module_default.title, children: titleNode }),
|
|
3159
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
3601
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx16__default.default(TextEvent_module_default.richText, TextEvent_module_default[variant != null ? variant : ""]), children: richTextNode })
|
|
3160
3602
|
] });
|
|
3161
3603
|
};
|
|
3162
3604
|
|
|
@@ -3187,7 +3629,7 @@ var TextBody = (props) => {
|
|
|
3187
3629
|
});
|
|
3188
3630
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
3189
3631
|
const bodyNode = (_b = slots.body) != null ? _b : body;
|
|
3190
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(Container, { className:
|
|
3632
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: clsx16__default.default(TextBody_module_default.textBody, className), children: [
|
|
3191
3633
|
titleNode && /* @__PURE__ */ jsxRuntime.jsx(Text, { tag: "h2", className: TextBody_module_default.title, children: titleNode }),
|
|
3192
3634
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: TextBody_module_default.body, children: bodyNode })
|
|
3193
3635
|
] });
|
|
@@ -3230,7 +3672,7 @@ var TextCenterCtaInBottom = ({
|
|
|
3230
3672
|
});
|
|
3231
3673
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
3232
3674
|
const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
|
|
3233
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
3675
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx16__default.default(TextCenterCtaInBottom_module_default.textCenterCta, className), children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: TextCenterCtaInBottom_module_default.container, children: [
|
|
3234
3676
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: TextCenterCtaInBottom_module_default.content, children: [
|
|
3235
3677
|
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: TextCenterCtaInBottom_module_default.title, children: titleNode }),
|
|
3236
3678
|
subtitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: TextCenterCtaInBottom_module_default.subtitle, children: subtitleNode })
|
|
@@ -3238,7 +3680,7 @@ var TextCenterCtaInBottom = ({
|
|
|
3238
3680
|
!!(ctas == null ? void 0 : ctas.length) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3239
3681
|
"div",
|
|
3240
3682
|
{
|
|
3241
|
-
className:
|
|
3683
|
+
className: clsx16__default.default(
|
|
3242
3684
|
TextCenterCtaInBottom_module_default.ctaWrapper,
|
|
3243
3685
|
ctas.every((cta) => !cta.label && cta.logo) && TextCenterCtaInBottom_module_default.iconOnly
|
|
3244
3686
|
),
|
|
@@ -3350,7 +3792,7 @@ var ResourcesGridList = ({
|
|
|
3350
3792
|
const safeCurrentPage = Math.min(currentPage, totalPages);
|
|
3351
3793
|
const pageStart = (safeCurrentPage - 1) * ITEMS_PER_PAGE;
|
|
3352
3794
|
const paginatedItems = displayedItems.slice(pageStart, pageStart + ITEMS_PER_PAGE);
|
|
3353
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref: widgetRef, className:
|
|
3795
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref: widgetRef, className: clsx16__default.default(ResourcesGridList_module_default.widget, className), children: [
|
|
3354
3796
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3355
3797
|
FilterBar,
|
|
3356
3798
|
{
|
|
@@ -3369,7 +3811,7 @@ var ResourcesGridList = ({
|
|
|
3369
3811
|
isMobile && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3370
3812
|
"div",
|
|
3371
3813
|
{
|
|
3372
|
-
className:
|
|
3814
|
+
className: clsx16__default.default(
|
|
3373
3815
|
ResourcesGridList_module_default.mobileSidebarOverlay,
|
|
3374
3816
|
isSidebarOpen && ResourcesGridList_module_default.mobileSidebarOverlayOpen
|
|
3375
3817
|
),
|
|
@@ -3380,7 +3822,7 @@ var ResourcesGridList = ({
|
|
|
3380
3822
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3381
3823
|
"li",
|
|
3382
3824
|
{
|
|
3383
|
-
className:
|
|
3825
|
+
className: clsx16__default.default(
|
|
3384
3826
|
ResourcesGridList_module_default.mobileSidebarItem,
|
|
3385
3827
|
i === selectedCategory && ResourcesGridList_module_default.active
|
|
3386
3828
|
),
|
|
@@ -3425,7 +3867,7 @@ var ResourcesGridList = ({
|
|
|
3425
3867
|
onSelect: handleSelectCategory
|
|
3426
3868
|
}
|
|
3427
3869
|
),
|
|
3428
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
3870
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx16__default.default(ResourcesGridList_module_default.cardsArea, ResourcesGridList_module_default[view]), children: paginatedItems.map((item) => /* @__PURE__ */ jsxRuntime.jsx(ResourceCardItem, { item, view }, item.id)) })
|
|
3429
3871
|
] }),
|
|
3430
3872
|
totalPages > 1 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3431
3873
|
Pagination,
|
|
@@ -3458,7 +3900,7 @@ var Grid = ({
|
|
|
3458
3900
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3459
3901
|
Component,
|
|
3460
3902
|
{
|
|
3461
|
-
className:
|
|
3903
|
+
className: clsx16__default.default("grid", Grid_module_default.grid, className),
|
|
3462
3904
|
role,
|
|
3463
3905
|
"aria-label": ariaLabel,
|
|
3464
3906
|
"aria-labelledby": ariaLabelledBy,
|
|
@@ -3483,7 +3925,7 @@ var GridItem = ({
|
|
|
3483
3925
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3484
3926
|
Component,
|
|
3485
3927
|
{
|
|
3486
|
-
className:
|
|
3928
|
+
className: clsx16__default.default("grid-item", Grid_module_default["grid-item"], className),
|
|
3487
3929
|
role,
|
|
3488
3930
|
"aria-label": ariaLabel,
|
|
3489
3931
|
"aria-labelledby": ariaLabelledBy,
|
|
@@ -3531,13 +3973,13 @@ var BlogCardGrid = ({
|
|
|
3531
3973
|
title: BlogCardGridTitle
|
|
3532
3974
|
});
|
|
3533
3975
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
3534
|
-
const content = /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
3535
|
-
title && /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
3536
|
-
titleNode && typeof titleNode === "string" ? /* @__PURE__ */ jsxRuntime.jsx(Text, { tag: "h4", className:
|
|
3537
|
-
cta && (cta == null ? void 0 : cta.url) && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
3976
|
+
const content = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx16__default.default("wrapper", BlogCardGrid_module_default["wrapper"]), children: [
|
|
3977
|
+
title && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx16__default.default("header-container", BlogCardGrid_module_default["header-container"]), children: [
|
|
3978
|
+
titleNode && typeof titleNode === "string" ? /* @__PURE__ */ jsxRuntime.jsx(Text, { tag: "h4", className: clsx16__default.default("title", BlogCardGrid_module_default["title"]), children: titleNode }) : titleNode,
|
|
3979
|
+
cta && (cta == null ? void 0 : cta.url) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx16__default.default("cta-wrapper", BlogCardGrid_module_default["cta-wrapper"]), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3538
3980
|
Button,
|
|
3539
3981
|
{
|
|
3540
|
-
className:
|
|
3982
|
+
className: clsx16__default.default("cta", BlogCardGrid_module_default["cta"]),
|
|
3541
3983
|
variant: "nofillblack",
|
|
3542
3984
|
href: cta.url,
|
|
3543
3985
|
isExternal: cta == null ? void 0 : cta.isExternal,
|
|
@@ -3563,11 +4005,11 @@ var BlogCardGrid = ({
|
|
|
3563
4005
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3564
4006
|
"div",
|
|
3565
4007
|
{
|
|
3566
|
-
className:
|
|
4008
|
+
className: clsx16__default.default("blog-card-grid", BlogCardGrid_module_default["blog-card-grid"], className),
|
|
3567
4009
|
style: {
|
|
3568
4010
|
backgroundColor
|
|
3569
4011
|
},
|
|
3570
|
-
children: hasContainer ? /* @__PURE__ */ jsxRuntime.jsx(Container, { className:
|
|
4012
|
+
children: hasContainer ? /* @__PURE__ */ jsxRuntime.jsx(Container, { className: clsx16__default.default("container", BlogCardGrid_module_default["container"]), children: content }) : content
|
|
3571
4013
|
}
|
|
3572
4014
|
);
|
|
3573
4015
|
};
|
|
@@ -3614,13 +4056,13 @@ var FeaturedNewsHighlights = ({
|
|
|
3614
4056
|
const sideCards = items.slice(1);
|
|
3615
4057
|
const isVariantHome = variant === "home";
|
|
3616
4058
|
const isBelowTablet = is("tablet", "below");
|
|
3617
|
-
const content = /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
3618
|
-
title && cta && /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
4059
|
+
const content = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx16__default.default("wrapper", FeaturedNewsHighlights_module_default["wrapper"]), children: [
|
|
4060
|
+
title && cta && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx16__default.default("header-container", FeaturedNewsHighlights_module_default["header-container"]), children: [
|
|
3619
4061
|
titleNode && typeof titleNode === "string" ? /* @__PURE__ */ jsxRuntime.jsx(Text, { tag: "h2", children: titleNode }) : titleNode,
|
|
3620
|
-
cta && (cta == null ? void 0 : cta.url) && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
4062
|
+
cta && (cta == null ? void 0 : cta.url) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx16__default.default("cta-wrapper", FeaturedNewsHighlights_module_default["cta-wrapper"]), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3621
4063
|
Button,
|
|
3622
4064
|
{
|
|
3623
|
-
className:
|
|
4065
|
+
className: clsx16__default.default("cta", FeaturedNewsHighlights_module_default["cta"]),
|
|
3624
4066
|
variant: "nofillblack",
|
|
3625
4067
|
href: cta.url,
|
|
3626
4068
|
isExternal: cta == null ? void 0 : cta.isExternal,
|
|
@@ -3632,9 +4074,9 @@ var FeaturedNewsHighlights = ({
|
|
|
3632
4074
|
isVariantHome && isBelowTablet && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3633
4075
|
Carousel,
|
|
3634
4076
|
{
|
|
3635
|
-
className:
|
|
4077
|
+
className: clsx16__default.default("carousel", FeaturedNewsHighlights_module_default["carousel"]),
|
|
3636
4078
|
"aria-label": "featured news",
|
|
3637
|
-
wrapperClass:
|
|
4079
|
+
wrapperClass: clsx16__default.default(FeaturedNewsHighlights_module_default["carousel-wrapper"]),
|
|
3638
4080
|
slideClass: FeaturedNewsHighlights_module_default["carousel-list-item"],
|
|
3639
4081
|
spaceBetween: 16,
|
|
3640
4082
|
slides: items.map((item, index) => {
|
|
@@ -3643,22 +4085,22 @@ var FeaturedNewsHighlights = ({
|
|
|
3643
4085
|
NewsCard,
|
|
3644
4086
|
__spreadProps(__spreadValues({}, item), {
|
|
3645
4087
|
direction: "vertical",
|
|
3646
|
-
className:
|
|
4088
|
+
className: clsx16__default.default("carousel-news-card", FeaturedNewsHighlights_module_default["carousel-news-card"])
|
|
3647
4089
|
}),
|
|
3648
4090
|
(_a2 = item == null ? void 0 : item.title) != null ? _a2 : index
|
|
3649
4091
|
);
|
|
3650
4092
|
})
|
|
3651
4093
|
}
|
|
3652
4094
|
),
|
|
3653
|
-
(!isVariantHome || isVariantHome && !isBelowTablet) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
4095
|
+
(!isVariantHome || isVariantHome && !isBelowTablet) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx16__default.default("content-wrapper", FeaturedNewsHighlights_module_default["content-wrapper"]), children: [
|
|
3654
4096
|
featuredCard && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3655
4097
|
NewsCard,
|
|
3656
4098
|
__spreadProps(__spreadValues({}, featuredCard), {
|
|
3657
|
-
className:
|
|
4099
|
+
className: clsx16__default.default("featured-card", FeaturedNewsHighlights_module_default["featured-card"]),
|
|
3658
4100
|
renderLink
|
|
3659
4101
|
})
|
|
3660
4102
|
),
|
|
3661
|
-
sideCards && sideCards.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
4103
|
+
sideCards && sideCards.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx16__default.default("side-content", FeaturedNewsHighlights_module_default["side-content"]), children: sideCards.map((card, index) => {
|
|
3662
4104
|
var _a2;
|
|
3663
4105
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3664
4106
|
NewsCard,
|
|
@@ -3674,11 +4116,11 @@ var FeaturedNewsHighlights = ({
|
|
|
3674
4116
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3675
4117
|
"div",
|
|
3676
4118
|
{
|
|
3677
|
-
className:
|
|
4119
|
+
className: clsx16__default.default("featured-news-higlights", FeaturedNewsHighlights_module_default["featured-news-higlights"], className),
|
|
3678
4120
|
style: {
|
|
3679
4121
|
backgroundColor
|
|
3680
4122
|
},
|
|
3681
|
-
children: hasContainer ? /* @__PURE__ */ jsxRuntime.jsx(Container, { className:
|
|
4123
|
+
children: hasContainer ? /* @__PURE__ */ jsxRuntime.jsx(Container, { className: clsx16__default.default("container", FeaturedNewsHighlights_module_default["container"]), children: content }) : content
|
|
3682
4124
|
}
|
|
3683
4125
|
);
|
|
3684
4126
|
};
|
|
@@ -3722,23 +4164,23 @@ var NewsCardList = ({
|
|
|
3722
4164
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3723
4165
|
"div",
|
|
3724
4166
|
{
|
|
3725
|
-
className:
|
|
4167
|
+
className: clsx16__default.default("news-card-list", NewsCardList_module_default["news-card-list"], className),
|
|
3726
4168
|
style: {
|
|
3727
4169
|
backgroundColor
|
|
3728
4170
|
},
|
|
3729
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className:
|
|
3730
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
4171
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: clsx16__default.default("container", NewsCardList_module_default["container"]), children: [
|
|
4172
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx16__default.default("wrapper", NewsCardList_module_default["wrapper"]), children: [
|
|
3731
4173
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3732
4174
|
Input,
|
|
3733
4175
|
__spreadValues({
|
|
3734
|
-
className:
|
|
4176
|
+
className: clsx16__default.default("search-input", NewsCardList_module_default["search-input"]),
|
|
3735
4177
|
startAdornment: /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "search" }),
|
|
3736
4178
|
placeholder: "Search News",
|
|
3737
4179
|
endAction: searchValue ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
3738
4180
|
Button,
|
|
3739
4181
|
{
|
|
3740
4182
|
variant: "nofillblack",
|
|
3741
|
-
className:
|
|
4183
|
+
className: clsx16__default.default(NewsCardList_module_default["end-action-button"]),
|
|
3742
4184
|
"aria-label": "Search",
|
|
3743
4185
|
onClick: onSearchSubmit ? () => onSearchSubmit(searchValue || "") : void 0,
|
|
3744
4186
|
children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "rightBlack" })
|
|
@@ -3750,7 +4192,7 @@ var NewsCardList = ({
|
|
|
3750
4192
|
} : void 0
|
|
3751
4193
|
}, searchInputProps)
|
|
3752
4194
|
),
|
|
3753
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
4195
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx16__default.default("card-wrapper", NewsCardList_module_default["card-wrapper"]), children: [
|
|
3754
4196
|
currentPage === 1 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3755
4197
|
FeaturedNewsHighlights2,
|
|
3756
4198
|
{
|
|
@@ -3764,7 +4206,7 @@ var NewsCardList = ({
|
|
|
3764
4206
|
] })
|
|
3765
4207
|
] }),
|
|
3766
4208
|
paginationNode ? React66__default.default.cloneElement(paginationNode, {
|
|
3767
|
-
className:
|
|
4209
|
+
className: clsx16__default.default("pagination", NewsCardList_module_default["pagination"])
|
|
3768
4210
|
}) : null
|
|
3769
4211
|
] })
|
|
3770
4212
|
}
|
|
@@ -3809,15 +4251,15 @@ var BlogPost = ({
|
|
|
3809
4251
|
});
|
|
3810
4252
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
3811
4253
|
const bodyNode = (_b = slots.body) != null ? _b : body;
|
|
3812
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
3813
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
4254
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx16__default.default("blog-post", BlogPost_module_default["blog-post"], className), children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: clsx16__default.default("container", BlogPost_module_default["container"]), children: [
|
|
4255
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx16__default.default("header", BlogPost_module_default["header"]), children: [
|
|
3814
4256
|
titleNode && typeof titleNode === "string" ? /* @__PURE__ */ jsxRuntime.jsx(Text, { tag: "h1", children: titleNode }) : titleNode,
|
|
3815
|
-
image && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadProps(__spreadValues({}, image), { className:
|
|
4257
|
+
image && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadProps(__spreadValues({}, image), { className: clsx16__default.default("image", BlogPost_module_default["image"]) }))
|
|
3816
4258
|
] }),
|
|
3817
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
3818
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
4259
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx16__default.default("content", BlogPost_module_default["content"]), children: [
|
|
4260
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx16__default.default("content-top", BlogPost_module_default["content-top"]), children: [
|
|
3819
4261
|
/* @__PURE__ */ jsxRuntime.jsx(Badge, { size: "sm", children: tag }),
|
|
3820
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className:
|
|
4262
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: clsx16__default.default("content-date", BlogPost_module_default["content-date"]), children: [
|
|
3821
4263
|
"Published ",
|
|
3822
4264
|
/* @__PURE__ */ jsxRuntime.jsx("time", { dateTime: date.value, children: date.label })
|
|
3823
4265
|
] })
|
|
@@ -3830,7 +4272,7 @@ var BlogPost = ({
|
|
|
3830
4272
|
title: "More News",
|
|
3831
4273
|
items: relatedArticles,
|
|
3832
4274
|
hasContainer: false,
|
|
3833
|
-
className:
|
|
4275
|
+
className: clsx16__default.default("related-articles", BlogPost_module_default["related-articles"])
|
|
3834
4276
|
}
|
|
3835
4277
|
)
|
|
3836
4278
|
] }) });
|
|
@@ -3878,22 +4320,22 @@ var BlogSearchResultsList = ({
|
|
|
3878
4320
|
});
|
|
3879
4321
|
const searchNode = (_a = slots.search) != null ? _a : searchResult;
|
|
3880
4322
|
const paginationNode = slots.pagination;
|
|
3881
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
3882
|
-
typeof searchNode === "string" ? /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
3883
|
-
className:
|
|
4323
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx16__default.default("search-results-list", BlogSearchResultsList_module_default["search-results-list"], className), children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: clsx16__default.default("container", BlogSearchResultsList_module_default["container"]), children: [
|
|
4324
|
+
typeof searchNode === "string" ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: clsx16__default.default("search-result", BlogSearchResultsList_module_default["search-result"]), children: searchNode }) : React66__default.default.isValidElement(searchNode) ? React66__default.default.cloneElement(searchNode, {
|
|
4325
|
+
className: clsx16__default.default("search-result", BlogSearchResultsList_module_default["search-result"])
|
|
3884
4326
|
}) : null,
|
|
3885
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
4327
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx16__default.default("wrapper", BlogSearchResultsList_module_default["wrapper"]), children: [
|
|
3886
4328
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3887
4329
|
Input,
|
|
3888
4330
|
__spreadValues({
|
|
3889
|
-
className:
|
|
4331
|
+
className: clsx16__default.default("search-input", BlogSearchResultsList_module_default["search-input"]),
|
|
3890
4332
|
startAdornment: /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "search" }),
|
|
3891
4333
|
placeholder: "Search News",
|
|
3892
4334
|
endAction: searchValue ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
3893
4335
|
Button,
|
|
3894
4336
|
{
|
|
3895
4337
|
variant: "nofillblack",
|
|
3896
|
-
className:
|
|
4338
|
+
className: clsx16__default.default(BlogSearchResultsList_module_default["end-action-button"]),
|
|
3897
4339
|
"aria-label": "Search",
|
|
3898
4340
|
onClick: () => onSearchSubmit(searchValue),
|
|
3899
4341
|
children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "rightBlack" })
|
|
@@ -3908,7 +4350,7 @@ var BlogSearchResultsList = ({
|
|
|
3908
4350
|
/* @__PURE__ */ jsxRuntime.jsx(BlogCardGrid2, { items, hasContainer: false, renderLink })
|
|
3909
4351
|
] }),
|
|
3910
4352
|
paginationNode ? React66__default.default.cloneElement(paginationNode, {
|
|
3911
|
-
className:
|
|
4353
|
+
className: clsx16__default.default("pagination", BlogSearchResultsList_module_default["pagination"])
|
|
3912
4354
|
}) : null
|
|
3913
4355
|
] }) });
|
|
3914
4356
|
};
|
|
@@ -3918,34 +4360,64 @@ var BlogSearchResultsList2 = Object.assign(BlogSearchResultsList, {
|
|
|
3918
4360
|
Search: BlogSearchResultsListSearch,
|
|
3919
4361
|
Pagination: BlogSearchResultsListPagination
|
|
3920
4362
|
});
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
4363
|
+
|
|
4364
|
+
// src/widgets/GlobalSearchResultsList/GlobalSearchResultsList.module.scss
|
|
4365
|
+
var GlobalSearchResultsList_module_default = {
|
|
4366
|
+
"search-results-list": "GlobalSearchResultsList_module_search-results-list",
|
|
4367
|
+
container: "GlobalSearchResultsList_module_container",
|
|
4368
|
+
"search-result": "GlobalSearchResultsList_module_search-result",
|
|
4369
|
+
wrapper: "GlobalSearchResultsList_module_wrapper",
|
|
4370
|
+
pagination: "GlobalSearchResultsList_module_pagination"
|
|
4371
|
+
};
|
|
4372
|
+
var GlobalSearchResultsListPagination = ({
|
|
4373
|
+
children
|
|
4374
|
+
}) => {
|
|
4375
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
|
|
4376
|
+
};
|
|
4377
|
+
var GlobalSearchResultsListSearch = ({ children }) => {
|
|
4378
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
|
|
4379
|
+
};
|
|
4380
|
+
var GlobalSearchResultsList = ({
|
|
4381
|
+
items,
|
|
4382
|
+
searchResult,
|
|
4383
|
+
className,
|
|
4384
|
+
renderLink,
|
|
4385
|
+
children
|
|
4386
|
+
}) => {
|
|
4387
|
+
var _a;
|
|
4388
|
+
const slots = resolveCompoundSlots(children, {
|
|
4389
|
+
search: GlobalSearchResultsListSearch,
|
|
4390
|
+
pagination: GlobalSearchResultsListPagination
|
|
4391
|
+
});
|
|
4392
|
+
const searchNode = (_a = slots.search) != null ? _a : searchResult;
|
|
4393
|
+
const paginationNode = slots.pagination;
|
|
4394
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx16__default.default("search-results-list", GlobalSearchResultsList_module_default["search-results-list"], className), children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: clsx16__default.default("container", GlobalSearchResultsList_module_default["container"]), children: [
|
|
4395
|
+
typeof searchNode === "string" ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: clsx16__default.default("search-result", GlobalSearchResultsList_module_default["search-result"]), children: searchNode }) : React66__default.default.isValidElement(searchNode) ? React66__default.default.cloneElement(searchNode, {
|
|
4396
|
+
className: clsx16__default.default("search-result", GlobalSearchResultsList_module_default["search-result"])
|
|
4397
|
+
}) : null,
|
|
4398
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx16__default.default("wrapper", GlobalSearchResultsList_module_default["wrapper"]), children: /* @__PURE__ */ jsxRuntime.jsx(Grid, { role: "list", columns: 3, children: items.map((item, index) => {
|
|
4399
|
+
var _a2;
|
|
4400
|
+
return /* @__PURE__ */ jsxRuntime.jsx(GridItem, { colSpan: { md: 3 }, role: "listitem", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4401
|
+
ResourceCardItem,
|
|
4402
|
+
{
|
|
4403
|
+
item,
|
|
4404
|
+
view: "grid",
|
|
4405
|
+
variant: "global-search",
|
|
4406
|
+
renderLink
|
|
4407
|
+
}
|
|
4408
|
+
) }, (_a2 = item.title) != null ? _a2 : index);
|
|
4409
|
+
}) }) }),
|
|
4410
|
+
paginationNode ? React66__default.default.cloneElement(paginationNode, {
|
|
4411
|
+
className: clsx16__default.default("pagination", GlobalSearchResultsList_module_default["pagination"])
|
|
4412
|
+
}) : null
|
|
4413
|
+
] }) });
|
|
4414
|
+
};
|
|
4415
|
+
|
|
4416
|
+
// src/widgets/GlobalSearchResultsList/index.ts
|
|
4417
|
+
var GlobalSearchResultsList2 = Object.assign(GlobalSearchResultsList, {
|
|
4418
|
+
Search: GlobalSearchResultsListSearch,
|
|
4419
|
+
Pagination: GlobalSearchResultsListPagination
|
|
4420
|
+
});
|
|
3949
4421
|
|
|
3950
4422
|
exports.Anchor = Anchor;
|
|
3951
4423
|
exports.Badge = Badge;
|
|
@@ -3965,6 +4437,7 @@ exports.EventList = EventList2;
|
|
|
3965
4437
|
exports.FeaturedNewsHighlights = FeaturedNewsHighlights2;
|
|
3966
4438
|
exports.FilterBar = FilterBar;
|
|
3967
4439
|
exports.Footer = Footer;
|
|
4440
|
+
exports.GlobalSearchResultsList = GlobalSearchResultsList2;
|
|
3968
4441
|
exports.HeroBanner = HeroBanner2;
|
|
3969
4442
|
exports.HeroBannerCarousel = HeroBannerCarousel;
|
|
3970
4443
|
exports.Icon = Icon;
|
|
@@ -3973,6 +4446,7 @@ exports.Input = Input;
|
|
|
3973
4446
|
exports.InternalBrandsTab = InternalBrandsTab2;
|
|
3974
4447
|
exports.MiniBanner = MiniBanner2;
|
|
3975
4448
|
exports.MiniSectionCta = MiniSectionCta2;
|
|
4449
|
+
exports.Navigation = Navigation2;
|
|
3976
4450
|
exports.NewsCard = NewsCard;
|
|
3977
4451
|
exports.NewsCardList = NewsCardList2;
|
|
3978
4452
|
exports.Pagination = Pagination;
|
|
@@ -3991,5 +4465,6 @@ exports.UpcomingEventCard = UpcomingEventCard;
|
|
|
3991
4465
|
exports.resolveCompoundSlots = resolveCompoundSlots;
|
|
3992
4466
|
exports.svgs = svgs;
|
|
3993
4467
|
exports.useIntersectionObserver = useIntersectionObserver;
|
|
4468
|
+
exports.useIsAtTop = useIsAtTop;
|
|
3994
4469
|
//# sourceMappingURL=index.cjs.map
|
|
3995
4470
|
//# sourceMappingURL=index.cjs.map
|