@digital-b2c/coreui-kit 0.16.2 → 0.17.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 +347 -296
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +85 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +58 -29
- package/dist/index.d.ts +58 -29
- package/dist/index.mjs +259 -210
- package/dist/index.mjs.map +1 -1
- package/dist/types/global.d.ts +25 -25
- package/package.json +100 -101
package/dist/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var clsx49 = require('clsx');
|
|
4
4
|
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
-
var
|
|
5
|
+
var React71 = require('react');
|
|
6
6
|
var gsap = require('gsap');
|
|
7
7
|
var react = require('@gsap/react');
|
|
8
8
|
var ScrollTrigger = require('gsap/ScrollTrigger');
|
|
@@ -13,8 +13,8 @@ var ReactPlayer = require('react-player');
|
|
|
13
13
|
|
|
14
14
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
15
|
|
|
16
|
-
var
|
|
17
|
-
var
|
|
16
|
+
var clsx49__default = /*#__PURE__*/_interopDefault(clsx49);
|
|
17
|
+
var React71__default = /*#__PURE__*/_interopDefault(React71);
|
|
18
18
|
var gsap__default = /*#__PURE__*/_interopDefault(gsap);
|
|
19
19
|
var ReactPlayer__default = /*#__PURE__*/_interopDefault(ReactPlayer);
|
|
20
20
|
|
|
@@ -68,7 +68,7 @@ var Picture = (_a) => {
|
|
|
68
68
|
__spreadValues({
|
|
69
69
|
src: desktop.src,
|
|
70
70
|
alt: desktop.alt,
|
|
71
|
-
className:
|
|
71
|
+
className: clsx49__default.default(className, Picture_module_default["image-desktop"])
|
|
72
72
|
}, rest)
|
|
73
73
|
),
|
|
74
74
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -76,7 +76,7 @@ var Picture = (_a) => {
|
|
|
76
76
|
__spreadValues({
|
|
77
77
|
src: (_b2 = mobile == null ? void 0 : mobile.src) != null ? _b2 : desktop.src,
|
|
78
78
|
alt: (_c = mobile == null ? void 0 : mobile.alt) != null ? _c : desktop.alt,
|
|
79
|
-
className:
|
|
79
|
+
className: clsx49__default.default(className, Picture_module_default["image-mobile"])
|
|
80
80
|
}, rest)
|
|
81
81
|
)
|
|
82
82
|
] });
|
|
@@ -321,6 +321,8 @@ var SvgIconChevronLeftBlack = (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", _
|
|
|
321
321
|
var icon_chevron_left_black_default = SvgIconChevronLeftBlack;
|
|
322
322
|
var SvgIconChevronRightBlack = (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", __spreadProps(__spreadValues({ width: 44, height: 44, viewBox: "0 0 44 44", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props), { children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M28.6806 23.1676L21.1594 15.6468L19.5383 17.3142L25.3922 23.1676L19.5383 29.021L21.1594 30.6883L28.6806 23.1676ZM40.7 23.1643C40.7 25.586 40.2381 27.8659 39.3142 30.0038C38.3904 32.1417 37.1315 34.0081 35.5376 35.6029C33.9435 37.1974 32.0779 38.4569 29.9408 39.3813C27.8038 40.3055 25.5246 40.7676 23.1032 40.7676C20.6689 40.7676 18.3807 40.3057 16.2388 39.3818C14.0968 38.458 12.2337 37.1991 10.6494 35.6052C9.06508 34.011 7.81069 32.1454 6.88623 30.0084C5.96208 27.8714 5.5 25.5922 5.5 23.1708C5.5 20.7365 5.96192 18.4483 6.88577 16.3064C7.80961 14.1644 9.06338 12.3013 10.6471 10.717C12.2308 9.13266 14.0931 7.87827 16.2341 6.95381C18.3752 6.02966 20.6627 5.56758 23.0968 5.56758C25.5185 5.56758 27.7983 6.0295 29.9362 6.95335C32.0741 7.87719 33.9405 9.13096 35.5353 10.7147C37.1298 12.2983 38.3893 14.1607 39.3138 16.3017C40.2379 18.4427 40.7 20.7303 40.7 23.1643Z", fill: "#080808" }) }));
|
|
323
323
|
var icon_chevron_right_black_default = SvgIconChevronRightBlack;
|
|
324
|
+
var SvgIconChevronRight = (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", __spreadProps(__spreadValues({ width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props), { children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M9 6L15 12L9 18", stroke: "#080808", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }) }));
|
|
325
|
+
var icon_chevron_right_default = SvgIconChevronRight;
|
|
324
326
|
var SvgIconPdf = (props) => /* @__PURE__ */ jsxRuntime.jsxs("svg", __spreadProps(__spreadValues({ width: 33, height: 32, viewBox: "0 0 33 32", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props), { children: [
|
|
325
327
|
/* @__PURE__ */ jsxRuntime.jsx("g", { clipPath: "url(#clip0_7870_13608)", children: /* @__PURE__ */ jsxRuntime.jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M28.875 8.92428V27.7644C28.875 28.8164 28.4404 29.8252 27.6668 30.5691C26.8932 31.3129 25.844 31.7308 24.75 31.7308H22.6875V29.7476H24.75C25.297 29.7476 25.8216 29.5387 26.2084 29.1667C26.5952 28.7948 26.8125 28.2904 26.8125 27.7644V8.92428H22.6875C21.867 8.92428 21.0801 8.61087 20.4999 8.05299C19.9197 7.49512 19.5938 6.73847 19.5938 5.94952V1.98317H8.25C7.70299 1.98317 7.17839 2.19211 6.79159 2.56403C6.4048 2.93595 6.1875 3.44038 6.1875 3.96635V21.8149H4.125V3.96635C4.125 2.91441 4.5596 1.90555 5.33318 1.16172C6.10677 0.417882 7.15598 0 8.25 0L19.5938 0L28.875 8.92428ZM3.3 23.5006H0V31.4313H1.63144V28.7699H3.28762C3.87887 28.7699 4.38212 28.6555 4.79737 28.4268C5.21675 28.1954 5.53506 27.8821 5.75231 27.4868C5.97875 27.0732 6.09297 26.6114 6.08438 26.1442C6.08438 25.6484 5.97575 25.2008 5.7585 24.8016C5.54086 24.4069 5.21207 24.079 4.80975 23.8556C4.39725 23.6176 3.894 23.4993 3.3 23.5006ZM4.42406 26.1442C4.43107 26.4054 4.37085 26.6643 4.24875 26.8978C4.13927 27.1012 3.96809 27.2679 3.75788 27.3757C3.51761 27.4895 3.25216 27.5453 2.98444 27.5383H1.62525V24.75H2.9865C3.43612 24.75 3.78813 24.8697 4.0425 25.109C4.29688 25.3509 4.42406 25.696 4.42406 26.1442ZM6.93412 23.5006V31.4313H9.94538C10.7731 31.4313 11.4593 31.2746 12.0038 30.9613C12.5548 30.6443 12.985 30.1652 13.2309 29.5949C13.5004 28.9999 13.6352 28.2834 13.6352 27.4451C13.6352 26.6122 13.5004 25.9016 13.2309 25.3132C12.9874 24.7497 12.5614 24.2768 12.0161 23.9647C11.4716 23.6553 10.7807 23.5006 9.94331 23.5006H6.93412ZM8.56556 24.7797H9.72675C10.2369 24.7797 10.6556 24.8802 10.9828 25.0812C11.3221 25.2964 11.5786 25.6127 11.7129 25.9816C11.8752 26.3808 11.9563 26.8786 11.9563 27.4749C11.9627 27.8704 11.9156 28.2651 11.8161 28.6489C11.7449 28.9524 11.6071 29.2378 11.4118 29.4858C11.2324 29.7082 10.9946 29.8807 10.7229 29.9856C10.4046 30.1 10.0665 30.1552 9.72675 30.1482H8.56556V24.7797ZM16.2855 28.2761V31.4313H14.6561V23.5006H19.9114V24.7956H16.2855V27.0108H19.5979V28.2761H16.2855Z", fill: "#949494" }) }),
|
|
326
328
|
/* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsx("clipPath", { id: "clip0_7870_13608", children: /* @__PURE__ */ jsxRuntime.jsx("rect", { width: 33, height: 31.7308, fill: "white" }) }) })
|
|
@@ -399,6 +401,7 @@ var svgs = {
|
|
|
399
401
|
list: icon_list_default,
|
|
400
402
|
chevronLeftBlack: icon_chevron_left_black_default,
|
|
401
403
|
chevronRightBlack: icon_chevron_right_black_default,
|
|
404
|
+
chevronRight: icon_chevron_right_default,
|
|
402
405
|
/* Dropdown */
|
|
403
406
|
chevronDefault: icon_chevron_default_default,
|
|
404
407
|
chevronHovered: icon_chevron_hovered_default,
|
|
@@ -412,7 +415,7 @@ var svgs = {
|
|
|
412
415
|
xWhite: icon_x_white_default,
|
|
413
416
|
user: icon_user_default
|
|
414
417
|
};
|
|
415
|
-
var Icon =
|
|
418
|
+
var Icon = React71__default.default.memo(
|
|
416
419
|
(_a) => {
|
|
417
420
|
var _b = _a, { type, size } = _b, props = __objRest(_b, ["type", "size"]);
|
|
418
421
|
if (type) {
|
|
@@ -441,6 +444,7 @@ var Button_module_default = {
|
|
|
441
444
|
shiny: "Button_module_shiny",
|
|
442
445
|
rotateGradient: "Button_module_rotateGradient",
|
|
443
446
|
tabbutton: "Button_module_tabbutton",
|
|
447
|
+
textmenu: "Button_module_textmenu",
|
|
444
448
|
icon: "Button_module_icon",
|
|
445
449
|
logo: "Button_module_logo"
|
|
446
450
|
};
|
|
@@ -470,7 +474,7 @@ var Button = (_a) => {
|
|
|
470
474
|
]);
|
|
471
475
|
const isLink = !!href;
|
|
472
476
|
const props = __spreadValues(__spreadValues({
|
|
473
|
-
className:
|
|
477
|
+
className: clsx49__default.default(
|
|
474
478
|
Button_module_default.button,
|
|
475
479
|
variant ? Button_module_default[variant] : null,
|
|
476
480
|
{ [Button_module_default.fullWidth]: !!fullWidth },
|
|
@@ -526,21 +530,21 @@ var getDeviceType = (width) => {
|
|
|
526
530
|
return "desktop";
|
|
527
531
|
};
|
|
528
532
|
var useViewPort = () => {
|
|
529
|
-
const [device, setDevice] =
|
|
533
|
+
const [device, setDevice] = React71.useState(
|
|
530
534
|
() => typeof window !== "undefined" ? getDeviceType(window.innerWidth) : "desktop"
|
|
531
535
|
);
|
|
532
|
-
const getOtherDevices =
|
|
536
|
+
const getOtherDevices = React71.useCallback(
|
|
533
537
|
(list, what, includeSelf = false) => {
|
|
534
538
|
const deviceIndex = list.indexOf(what) + (!includeSelf ? 1 : 0);
|
|
535
539
|
return [...list].slice(deviceIndex);
|
|
536
540
|
},
|
|
537
541
|
[]
|
|
538
542
|
);
|
|
539
|
-
const onWindowResize =
|
|
543
|
+
const onWindowResize = React71.useCallback(() => {
|
|
540
544
|
setDevice(getDeviceType(window.innerWidth));
|
|
541
545
|
}, []);
|
|
542
546
|
const onWindowResizeDebounce = useDebounce_default(onWindowResize, 100);
|
|
543
|
-
|
|
547
|
+
React71.useEffect(() => {
|
|
544
548
|
window.addEventListener("resize", onWindowResizeDebounce);
|
|
545
549
|
return () => window.removeEventListener("resize", onWindowResizeDebounce);
|
|
546
550
|
}, [onWindowResizeDebounce]);
|
|
@@ -593,13 +597,13 @@ var BrandsStrip = ({
|
|
|
593
597
|
cta,
|
|
594
598
|
size
|
|
595
599
|
}) => {
|
|
596
|
-
const [show, setShow] =
|
|
597
|
-
const [shouldAnimate, setShouldAnimate] =
|
|
600
|
+
const [show, setShow] = React71.useState(false);
|
|
601
|
+
const [shouldAnimate, setShouldAnimate] = React71.useState(false);
|
|
598
602
|
const { is } = useViewPort_default();
|
|
599
603
|
const isTabletBelow = is("tablet", "below");
|
|
600
|
-
const containerRef =
|
|
601
|
-
const marqueeRef =
|
|
602
|
-
const timeline =
|
|
604
|
+
const containerRef = React71.useRef(null);
|
|
605
|
+
const marqueeRef = React71.useRef(null);
|
|
606
|
+
const timeline = React71.useRef(null);
|
|
603
607
|
const horizontalLoop = (items, config) => {
|
|
604
608
|
const itemsArray = gsap__default.default.utils.toArray(items);
|
|
605
609
|
const cfg = config || {};
|
|
@@ -693,7 +697,7 @@ var BrandsStrip = ({
|
|
|
693
697
|
timeline.current.play();
|
|
694
698
|
}
|
|
695
699
|
};
|
|
696
|
-
const duplicatedLogos =
|
|
700
|
+
const duplicatedLogos = React71.useMemo(() => {
|
|
697
701
|
if (logos.length === 0) return [];
|
|
698
702
|
if (!shouldAnimate) return [...logos];
|
|
699
703
|
return [...logos, ...logos];
|
|
@@ -702,7 +706,7 @@ var BrandsStrip = ({
|
|
|
702
706
|
"div",
|
|
703
707
|
{
|
|
704
708
|
ref: containerRef,
|
|
705
|
-
className:
|
|
709
|
+
className: clsx49__default.default(
|
|
706
710
|
BrandsStrip_module_default.brandsStrip,
|
|
707
711
|
BrandsStrip_module_default[variant],
|
|
708
712
|
{ [BrandsStrip_module_default.small]: size === "small" },
|
|
@@ -711,13 +715,13 @@ var BrandsStrip = ({
|
|
|
711
715
|
onMouseEnter: handleMouseEnter,
|
|
712
716
|
onMouseLeave: handleMouseLeave,
|
|
713
717
|
children: [
|
|
714
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
715
|
-
title && logos.length === 1 && /* @__PURE__ */ jsxRuntime.jsx("h2", { className:
|
|
718
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx49__default.default(BrandsStrip_module_default.container, { [BrandsStrip_module_default.blurred]: show && logos.length > 1 }), children: [
|
|
719
|
+
title && logos.length === 1 && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: clsx49__default.default("body", BrandsStrip_module_default.title), children: title }),
|
|
716
720
|
logos.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
717
721
|
"div",
|
|
718
722
|
{
|
|
719
723
|
ref: marqueeRef,
|
|
720
|
-
className:
|
|
724
|
+
className: clsx49__default.default(BrandsStrip_module_default.logos, { [BrandsStrip_module_default.marqueeGSAP]: shouldAnimate }),
|
|
721
725
|
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}`))
|
|
722
726
|
}
|
|
723
727
|
)
|
|
@@ -746,8 +750,8 @@ var CardSubtitle = ({ children }) => {
|
|
|
746
750
|
};
|
|
747
751
|
function resolveCompoundSlots(children, slots) {
|
|
748
752
|
const resolved = {};
|
|
749
|
-
|
|
750
|
-
if (!
|
|
753
|
+
React71.Children.forEach(children, (child) => {
|
|
754
|
+
if (!React71.isValidElement(child)) return;
|
|
751
755
|
Object.entries(slots).forEach(([key, Component]) => {
|
|
752
756
|
if (child.type === Component) {
|
|
753
757
|
resolved[key] = child.props.children;
|
|
@@ -761,10 +765,10 @@ function resolveCompoundSlots(children, slots) {
|
|
|
761
765
|
var Container_module_default = {
|
|
762
766
|
container: "Container_module_container"
|
|
763
767
|
};
|
|
764
|
-
var Container =
|
|
768
|
+
var Container = React71.forwardRef(
|
|
765
769
|
(_a, ref) => {
|
|
766
770
|
var _b = _a, { children, className } = _b, props = __objRest(_b, ["children", "className"]);
|
|
767
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", __spreadProps(__spreadValues({ ref, className:
|
|
771
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", __spreadProps(__spreadValues({ ref, className: clsx49__default.default(Container_module_default.container, className) }, props), { children }));
|
|
768
772
|
}
|
|
769
773
|
);
|
|
770
774
|
Container.displayName = "Container";
|
|
@@ -805,14 +809,14 @@ var Card = ({
|
|
|
805
809
|
ConditionalWrapper,
|
|
806
810
|
__spreadProps(__spreadValues({
|
|
807
811
|
ref,
|
|
808
|
-
className:
|
|
812
|
+
className: clsx49__default.default(Card_module_default.card, Card_module_default[variant], className),
|
|
809
813
|
wrapper: Anchor,
|
|
810
814
|
fallback: "div",
|
|
811
815
|
condition: isLink
|
|
812
816
|
}, href ? { href, isExternal } : {}), {
|
|
813
817
|
children: [
|
|
814
818
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: Card_module_default.logoContainer, children: [
|
|
815
|
-
(logo == null ? void 0 : logo.src) ? /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className:
|
|
819
|
+
(logo == null ? void 0 : logo.src) ? /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: clsx49__default.default(Card_module_default.logo, isLink && Card_module_default.hideLogo) }, logo)) : icon && /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: icon, className: clsx49__default.default(Card_module_default.logo, isLink && Card_module_default.hideLogo) }),
|
|
816
820
|
isLink && /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "tiltedRightWhite", className: Card_module_default.logoHover })
|
|
817
821
|
] }),
|
|
818
822
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: Card_module_default.content, children: [
|
|
@@ -847,10 +851,10 @@ var CountingCard = ({ className, title, count, image, children }) => {
|
|
|
847
851
|
title: CountingCardTitle
|
|
848
852
|
});
|
|
849
853
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
850
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
854
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx49__default.default(CountingCard_module_default["counting-card"], className), children: [
|
|
851
855
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: CountingCard_module_default.content, children: [
|
|
852
856
|
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "body", children: titleNode }),
|
|
853
|
-
count && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
857
|
+
count && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx49__default.default(CountingCard_module_default.count, "h1"), children: count })
|
|
854
858
|
] }),
|
|
855
859
|
image && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: CountingCard_module_default.logo }, image))
|
|
856
860
|
] });
|
|
@@ -902,11 +906,11 @@ function FilterBar({
|
|
|
902
906
|
searchValue,
|
|
903
907
|
onSearchChange
|
|
904
908
|
}) {
|
|
905
|
-
const [openDropdown, setOpenDropdown] =
|
|
906
|
-
const [searchState, setSearchState] =
|
|
907
|
-
const filterRef =
|
|
908
|
-
const sortRef =
|
|
909
|
-
const searchInputRef =
|
|
909
|
+
const [openDropdown, setOpenDropdown] = React71.useState(null);
|
|
910
|
+
const [searchState, setSearchState] = React71.useState("closed");
|
|
911
|
+
const filterRef = React71.useRef(null);
|
|
912
|
+
const sortRef = React71.useRef(null);
|
|
913
|
+
const searchInputRef = React71.useRef(null);
|
|
910
914
|
const closeSearch = () => {
|
|
911
915
|
setSearchState("closing");
|
|
912
916
|
onSearchChange("");
|
|
@@ -916,7 +920,7 @@ function FilterBar({
|
|
|
916
920
|
onSearchChange("");
|
|
917
921
|
(_a = searchInputRef.current) == null ? void 0 : _a.focus();
|
|
918
922
|
};
|
|
919
|
-
|
|
923
|
+
React71.useEffect(() => {
|
|
920
924
|
const handleMouseDown = (e) => {
|
|
921
925
|
var _a, _b;
|
|
922
926
|
const target = e.target;
|
|
@@ -926,7 +930,7 @@ function FilterBar({
|
|
|
926
930
|
document.addEventListener("mousedown", handleMouseDown);
|
|
927
931
|
return () => document.removeEventListener("mousedown", handleMouseDown);
|
|
928
932
|
}, []);
|
|
929
|
-
|
|
933
|
+
React71.useEffect(() => {
|
|
930
934
|
var _a;
|
|
931
935
|
if (searchState === "open") (_a = searchInputRef.current) == null ? void 0 : _a.focus();
|
|
932
936
|
}, [searchState]);
|
|
@@ -936,7 +940,7 @@ function FilterBar({
|
|
|
936
940
|
"button",
|
|
937
941
|
{
|
|
938
942
|
type: "button",
|
|
939
|
-
className:
|
|
943
|
+
className: clsx49__default.default(FilterBar_module_default.chip, view === "grid" && FilterBar_module_default.active),
|
|
940
944
|
onClick: () => onViewChange("grid"),
|
|
941
945
|
"aria-pressed": view === "grid",
|
|
942
946
|
children: [
|
|
@@ -949,7 +953,7 @@ function FilterBar({
|
|
|
949
953
|
"button",
|
|
950
954
|
{
|
|
951
955
|
type: "button",
|
|
952
|
-
className:
|
|
956
|
+
className: clsx49__default.default(FilterBar_module_default.chip, view === "list" && FilterBar_module_default.active),
|
|
953
957
|
onClick: () => onViewChange("list"),
|
|
954
958
|
"aria-pressed": view === "list",
|
|
955
959
|
children: [
|
|
@@ -963,7 +967,7 @@ function FilterBar({
|
|
|
963
967
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
964
968
|
"div",
|
|
965
969
|
{
|
|
966
|
-
className:
|
|
970
|
+
className: clsx49__default.default(
|
|
967
971
|
FilterBar_module_default.dropdownWrapper,
|
|
968
972
|
isMobile && searchState === "open" && FilterBar_module_default.filterFaded,
|
|
969
973
|
isMobile && searchState === "closing" && FilterBar_module_default.filterFading
|
|
@@ -974,7 +978,7 @@ function FilterBar({
|
|
|
974
978
|
"button",
|
|
975
979
|
{
|
|
976
980
|
type: "button",
|
|
977
|
-
className:
|
|
981
|
+
className: clsx49__default.default(FilterBar_module_default.chip, filterValue !== "all" && FilterBar_module_default.active),
|
|
978
982
|
onClick: () => setOpenDropdown(openDropdown === "filter" ? null : "filter"),
|
|
979
983
|
"aria-expanded": openDropdown === "filter",
|
|
980
984
|
children: [
|
|
@@ -989,7 +993,7 @@ function FilterBar({
|
|
|
989
993
|
type: "button",
|
|
990
994
|
role: "option",
|
|
991
995
|
"aria-selected": filterValue === opt.value,
|
|
992
|
-
className:
|
|
996
|
+
className: clsx49__default.default(
|
|
993
997
|
FilterBar_module_default.dropdownOption,
|
|
994
998
|
filterValue === opt.value && FilterBar_module_default.selected
|
|
995
999
|
),
|
|
@@ -1010,7 +1014,7 @@ function FilterBar({
|
|
|
1010
1014
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1011
1015
|
"div",
|
|
1012
1016
|
{
|
|
1013
|
-
className:
|
|
1017
|
+
className: clsx49__default.default(
|
|
1014
1018
|
FilterBar_module_default.dropdownWrapper,
|
|
1015
1019
|
isMobile && searchState === "open" && FilterBar_module_default.filterFaded,
|
|
1016
1020
|
isMobile && searchState === "closing" && FilterBar_module_default.filterFading
|
|
@@ -1036,7 +1040,7 @@ function FilterBar({
|
|
|
1036
1040
|
type: "button",
|
|
1037
1041
|
role: "option",
|
|
1038
1042
|
"aria-selected": sortValue === opt.value,
|
|
1039
|
-
className:
|
|
1043
|
+
className: clsx49__default.default(
|
|
1040
1044
|
FilterBar_module_default.dropdownOption,
|
|
1041
1045
|
sortValue === opt.value && FilterBar_module_default.selected
|
|
1042
1046
|
),
|
|
@@ -1054,7 +1058,7 @@ function FilterBar({
|
|
|
1054
1058
|
searchState !== "closed" ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1055
1059
|
"div",
|
|
1056
1060
|
{
|
|
1057
|
-
className:
|
|
1061
|
+
className: clsx49__default.default(
|
|
1058
1062
|
FilterBar_module_default.searchExpanded,
|
|
1059
1063
|
searchState === "closing" && FilterBar_module_default.searchCollapsing
|
|
1060
1064
|
),
|
|
@@ -1136,9 +1140,9 @@ var InfoCard = ({ className, title, subtitle, icon, badge, children }) => {
|
|
|
1136
1140
|
});
|
|
1137
1141
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
1138
1142
|
const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
|
|
1139
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
1143
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx49__default.default(InfoCard_module_default["info-card"], { [InfoCard_module_default.hasIcon]: !!icon }, className), children: [
|
|
1140
1144
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: InfoCard_module_default.header, children: [
|
|
1141
|
-
icon ? /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: icon }) : badge ? /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1145
|
+
icon ? /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: icon }) : badge ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx49__default.default(InfoCard_module_default.badge, "h4"), children: badge }) : null,
|
|
1142
1146
|
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h4", children: titleNode })
|
|
1143
1147
|
] }),
|
|
1144
1148
|
subtitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "body", children: subtitleNode })
|
|
@@ -1202,7 +1206,7 @@ var Pagination = ({
|
|
|
1202
1206
|
hidePagesBorder = false,
|
|
1203
1207
|
renderLink
|
|
1204
1208
|
}) => {
|
|
1205
|
-
const [activePage, setActivePage] =
|
|
1209
|
+
const [activePage, setActivePage] = React71.useState(currentPage);
|
|
1206
1210
|
const goToPage = (page) => {
|
|
1207
1211
|
if (page < 1 || page > totalPages) return;
|
|
1208
1212
|
setActivePage(page);
|
|
@@ -1235,7 +1239,7 @@ var Pagination = ({
|
|
|
1235
1239
|
const prevPage = activePage === 1 ? loop ? totalPages : 1 : activePage - 1;
|
|
1236
1240
|
const nextPage = activePage === totalPages ? loop ? 1 : totalPages : activePage + 1;
|
|
1237
1241
|
const pageItems = showEllipsis ? getPaginationRange(totalPages, activePage, siblingCount, boundaryCount) : Array.from({ length: totalPages }, (_, i) => i + 1);
|
|
1238
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
1242
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx49__default.default(Pagination_module_default.pagination, className), children: [
|
|
1239
1243
|
!disableArrows && (renderLink ? renderLink({
|
|
1240
1244
|
page: prevPage,
|
|
1241
1245
|
className: Pagination_module_default.prev,
|
|
@@ -1256,12 +1260,12 @@ var Pagination = ({
|
|
|
1256
1260
|
return /* @__PURE__ */ jsxRuntime.jsx("span", { className: Pagination_module_default.dots, "aria-hidden": "true", children: "\u2026" }, `dots-${index}`);
|
|
1257
1261
|
}
|
|
1258
1262
|
const page = item;
|
|
1259
|
-
const pageClassName =
|
|
1263
|
+
const pageClassName = clsx49__default.default(Pagination_module_default.page, {
|
|
1260
1264
|
[Pagination_module_default.active]: activePage === page,
|
|
1261
1265
|
[Pagination_module_default.number]: hasNumber,
|
|
1262
1266
|
[Pagination_module_default["no-border"]]: hidePagesBorder
|
|
1263
1267
|
});
|
|
1264
|
-
return renderLink ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1268
|
+
return renderLink ? /* @__PURE__ */ jsxRuntime.jsx(React71.Fragment, { children: renderLink({
|
|
1265
1269
|
page,
|
|
1266
1270
|
className: pageClassName,
|
|
1267
1271
|
"aria-label": `Go to page ${page}`,
|
|
@@ -1308,7 +1312,7 @@ var PracticeCard_module_default = {
|
|
|
1308
1312
|
};
|
|
1309
1313
|
var PracticeCard = ({ className, title, cta, image }) => {
|
|
1310
1314
|
const { url: href, isExternal } = cta != null ? cta : {};
|
|
1311
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1315
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx49__default.default(PracticeCard_module_default["practice-card"], className), children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1312
1316
|
ConditionalWrapper,
|
|
1313
1317
|
__spreadProps(__spreadValues({
|
|
1314
1318
|
className: PracticeCard_module_default.wrapper,
|
|
@@ -1319,7 +1323,7 @@ var PracticeCard = ({ className, title, cta, image }) => {
|
|
|
1319
1323
|
children: [
|
|
1320
1324
|
image && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: PracticeCard_module_default.background }, image)),
|
|
1321
1325
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: PracticeCard_module_default.container, children: [
|
|
1322
|
-
title && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1326
|
+
title && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx49__default.default(PracticeCard_module_default.title, "h3"), children: title }),
|
|
1323
1327
|
href && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: PracticeCard_module_default.cta, children: [
|
|
1324
1328
|
/* @__PURE__ */ jsxRuntime.jsx(Icon, { className: PracticeCard_module_default.ctaRest, type: "right" }),
|
|
1325
1329
|
/* @__PURE__ */ jsxRuntime.jsx(Icon, { className: PracticeCard_module_default.ctaHover, type: "tiltedRight" })
|
|
@@ -1363,15 +1367,15 @@ var ResourceCardItem = ({ item, view, variant, renderLink }) => {
|
|
|
1363
1367
|
"aria-disabled": isRestricted
|
|
1364
1368
|
} : null;
|
|
1365
1369
|
const cardLink = linkProps && isGlobalSearchVariant ? renderLink ? renderLink(__spreadProps(__spreadValues({}, linkProps), {
|
|
1366
|
-
className:
|
|
1370
|
+
className: clsx49__default.default(ResourceCardItem_module_default.cardLink, isGlobalSearchVariant && ResourceCardItem_module_default[variant]),
|
|
1367
1371
|
children: null
|
|
1368
1372
|
})) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
1369
1373
|
"a",
|
|
1370
1374
|
__spreadProps(__spreadValues({}, linkProps), {
|
|
1371
|
-
className:
|
|
1375
|
+
className: clsx49__default.default(ResourceCardItem_module_default.cardLink, isGlobalSearchVariant && ResourceCardItem_module_default[variant])
|
|
1372
1376
|
})
|
|
1373
1377
|
) : null;
|
|
1374
|
-
const linkWrapper = ({ children }) => /* @__PURE__ */ jsxRuntime.jsx("a", __spreadProps(__spreadValues({}, linkProps), { tabIndex: isGlobalSearchVariant ? -1 : 0, className:
|
|
1378
|
+
const linkWrapper = ({ children }) => /* @__PURE__ */ jsxRuntime.jsx("a", __spreadProps(__spreadValues({}, linkProps), { tabIndex: isGlobalSearchVariant ? -1 : 0, className: clsx49__default.default(ResourceCardItem_module_default.cardLink), children }));
|
|
1375
1379
|
function getIcon() {
|
|
1376
1380
|
switch (item.type) {
|
|
1377
1381
|
case "pdf":
|
|
@@ -1388,7 +1392,7 @@ var ResourceCardItem = ({ item, view, variant, renderLink }) => {
|
|
|
1388
1392
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1389
1393
|
"article",
|
|
1390
1394
|
{
|
|
1391
|
-
className:
|
|
1395
|
+
className: clsx49__default.default(
|
|
1392
1396
|
ResourceCardItem_module_default.cardGrid,
|
|
1393
1397
|
isGlobalSearchVariant && ResourceCardItem_module_default[variant],
|
|
1394
1398
|
isGlobalSearchVariant && isRestricted ? ResourceCardItem_module_default["restricted"] : null
|
|
@@ -1472,7 +1476,7 @@ var Sidebar = ({
|
|
|
1472
1476
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1473
1477
|
"li",
|
|
1474
1478
|
{
|
|
1475
|
-
className:
|
|
1479
|
+
className: clsx49__default.default(Sidebar_module_default.sidebarItem, i === selectedIndex && Sidebar_module_default.active),
|
|
1476
1480
|
role: "button",
|
|
1477
1481
|
tabIndex: 0,
|
|
1478
1482
|
"aria-pressed": i === selectedIndex,
|
|
@@ -1530,7 +1534,7 @@ var UpcomingEventCard = ({
|
|
|
1530
1534
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1531
1535
|
"article",
|
|
1532
1536
|
{
|
|
1533
|
-
className:
|
|
1537
|
+
className: clsx49__default.default(
|
|
1534
1538
|
"card",
|
|
1535
1539
|
UpcomingEventCard_module_default["event-card"],
|
|
1536
1540
|
UpcomingEventCard_module_default[direction],
|
|
@@ -1538,26 +1542,26 @@ var UpcomingEventCard = ({
|
|
|
1538
1542
|
className
|
|
1539
1543
|
),
|
|
1540
1544
|
children: [
|
|
1541
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
1542
|
-
showImage && image && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadProps(__spreadValues({}, image), { className:
|
|
1545
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx49__default.default("card-content", UpcomingEventCard_module_default["event-card-content"]), children: [
|
|
1546
|
+
showImage && image && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadProps(__spreadValues({}, image), { className: clsx49__default.default("card-image", UpcomingEventCard_module_default["event-card-image"]) })),
|
|
1543
1547
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1544
1548
|
"div",
|
|
1545
1549
|
{
|
|
1546
|
-
className:
|
|
1550
|
+
className: clsx49__default.default(
|
|
1547
1551
|
"card-text-content",
|
|
1548
1552
|
UpcomingEventCard_module_default["event-card-text-content"],
|
|
1549
1553
|
(!showImage || !hasImage) && UpcomingEventCard_module_default["event-card-show-image"]
|
|
1550
1554
|
),
|
|
1551
1555
|
children: [
|
|
1552
1556
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: UpcomingEventCard_module_default.date, children: date }),
|
|
1553
|
-
title && /* @__PURE__ */ jsxRuntime.jsx("h3", { className:
|
|
1557
|
+
title && /* @__PURE__ */ jsxRuntime.jsx("h3", { className: clsx49__default.default("card-text-title"), children: title }),
|
|
1554
1558
|
location && /* @__PURE__ */ jsxRuntime.jsx("span", { className: UpcomingEventCard_module_default.location, children: location }),
|
|
1555
|
-
description && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1556
|
-
cta && cta.url && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1559
|
+
description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx49__default.default("card-text-description", UpcomingEventCard_module_default.description), children: description }),
|
|
1560
|
+
cta && cta.url && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx49__default.default("card-cta-wrapper", UpcomingEventCard_module_default["event-card-cta-wrapper"]), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1557
1561
|
Button,
|
|
1558
1562
|
{
|
|
1559
1563
|
variant: "secondary",
|
|
1560
|
-
className:
|
|
1564
|
+
className: clsx49__default.default(
|
|
1561
1565
|
"card-cta",
|
|
1562
1566
|
UpcomingEventCard_module_default["event-card-cta"],
|
|
1563
1567
|
!hasCTAandImage && UpcomingEventCard_module_default.hidden
|
|
@@ -1576,12 +1580,12 @@ var UpcomingEventCard = ({
|
|
|
1576
1580
|
cta && cta.url && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1577
1581
|
"div",
|
|
1578
1582
|
{
|
|
1579
|
-
className:
|
|
1583
|
+
className: clsx49__default.default("card-footer", UpcomingEventCard_module_default["event-card-footer"], hasImage && UpcomingEventCard_module_default.hidden),
|
|
1580
1584
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1581
1585
|
Button,
|
|
1582
1586
|
{
|
|
1583
1587
|
variant: "secondary",
|
|
1584
|
-
className:
|
|
1588
|
+
className: clsx49__default.default("card-cta", UpcomingEventCard_module_default["event-card-cta"]),
|
|
1585
1589
|
fullWidth: isBelowMobile,
|
|
1586
1590
|
href: cta.url,
|
|
1587
1591
|
icon: cta.icon,
|
|
@@ -1608,7 +1612,7 @@ var Badge_module_default = {
|
|
|
1608
1612
|
icon: "Badge_module_icon",
|
|
1609
1613
|
iconOnly: "Badge_module_iconOnly"
|
|
1610
1614
|
};
|
|
1611
|
-
var Badge =
|
|
1615
|
+
var Badge = React71.forwardRef(
|
|
1612
1616
|
(_a, ref) => {
|
|
1613
1617
|
var _b = _a, {
|
|
1614
1618
|
children,
|
|
@@ -1629,7 +1633,7 @@ var Badge = React70.forwardRef(
|
|
|
1629
1633
|
"live",
|
|
1630
1634
|
"clickable"
|
|
1631
1635
|
]);
|
|
1632
|
-
const classes =
|
|
1636
|
+
const classes = clsx49__default.default(
|
|
1633
1637
|
Badge_module_default.badge,
|
|
1634
1638
|
Badge_module_default[variant],
|
|
1635
1639
|
Badge_module_default[size],
|
|
@@ -1640,7 +1644,7 @@ var Badge = React70.forwardRef(
|
|
|
1640
1644
|
className
|
|
1641
1645
|
);
|
|
1642
1646
|
const content = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1643
|
-
icon && /* @__PURE__ */ jsxRuntime.jsx(Icon, __spreadValues({ className:
|
|
1647
|
+
icon && /* @__PURE__ */ jsxRuntime.jsx(Icon, __spreadValues({ className: clsx49__default.default("badge-icon", Badge_module_default["badge-icon"]) }, icon)),
|
|
1644
1648
|
!iconOnly && /* @__PURE__ */ jsxRuntime.jsx("span", { className: Badge_module_default.label, children })
|
|
1645
1649
|
] });
|
|
1646
1650
|
if (clickable) {
|
|
@@ -1682,7 +1686,7 @@ var Input_module_default = {
|
|
|
1682
1686
|
error: "Input_module_error",
|
|
1683
1687
|
"input-field--error": "Input_module_input-field--error",
|
|
1684
1688
|
"input-field--disabled": "Input_module_input-field--disabled"};
|
|
1685
|
-
var Input =
|
|
1689
|
+
var Input = React71.forwardRef(
|
|
1686
1690
|
(_a, ref) => {
|
|
1687
1691
|
var _b = _a, {
|
|
1688
1692
|
id,
|
|
@@ -1713,7 +1717,7 @@ var Input = React70.forwardRef(
|
|
|
1713
1717
|
"hideLabel",
|
|
1714
1718
|
"type"
|
|
1715
1719
|
]);
|
|
1716
|
-
const generatedId =
|
|
1720
|
+
const generatedId = React71.useId();
|
|
1717
1721
|
const inputId = id || generatedId;
|
|
1718
1722
|
const helperTextId = `${inputId}-helper`;
|
|
1719
1723
|
const errorId = `${inputId}-error`;
|
|
@@ -1721,7 +1725,7 @@ var Input = React70.forwardRef(
|
|
|
1721
1725
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1722
1726
|
"div",
|
|
1723
1727
|
{
|
|
1724
|
-
className:
|
|
1728
|
+
className: clsx49__default.default(
|
|
1725
1729
|
"input-field",
|
|
1726
1730
|
Input_module_default["input-field"],
|
|
1727
1731
|
{
|
|
@@ -1735,17 +1739,17 @@ var Input = React70.forwardRef(
|
|
|
1735
1739
|
"label",
|
|
1736
1740
|
{
|
|
1737
1741
|
htmlFor: inputId,
|
|
1738
|
-
className:
|
|
1742
|
+
className: clsx49__default.default("input-label", Input_module_default.label, {
|
|
1739
1743
|
["sr-only"]: hideLabel
|
|
1740
1744
|
}),
|
|
1741
1745
|
children: [
|
|
1742
1746
|
label,
|
|
1743
|
-
required && /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
1747
|
+
required && /* @__PURE__ */ jsxRuntime.jsx("span", { className: clsx49__default.default("input-required", Input_module_default.required), "aria-hidden": "true", children: "*" })
|
|
1744
1748
|
]
|
|
1745
1749
|
}
|
|
1746
1750
|
),
|
|
1747
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
1748
|
-
startAdornment && /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
1751
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx49__default.default("input-wrapper", Input_module_default.wrapper), children: [
|
|
1752
|
+
startAdornment && /* @__PURE__ */ jsxRuntime.jsx("span", { className: clsx49__default.default("input-adornment", Input_module_default.adornment), "aria-hidden": "true", children: startAdornment }),
|
|
1749
1753
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1750
1754
|
"input",
|
|
1751
1755
|
__spreadValues({
|
|
@@ -1756,7 +1760,7 @@ var Input = React70.forwardRef(
|
|
|
1756
1760
|
disabled,
|
|
1757
1761
|
"aria-invalid": !!error,
|
|
1758
1762
|
"aria-describedby": describedBy || void 0,
|
|
1759
|
-
className:
|
|
1763
|
+
className: clsx49__default.default(
|
|
1760
1764
|
"input",
|
|
1761
1765
|
Input_module_default.input,
|
|
1762
1766
|
{
|
|
@@ -1767,11 +1771,11 @@ var Input = React70.forwardRef(
|
|
|
1767
1771
|
)
|
|
1768
1772
|
}, props)
|
|
1769
1773
|
),
|
|
1770
|
-
endAdornment && /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
1771
|
-
endAction && /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
1774
|
+
endAdornment && /* @__PURE__ */ jsxRuntime.jsx("span", { className: clsx49__default.default("input-adornment", Input_module_default.adornment), "aria-hidden": "true", children: endAdornment }),
|
|
1775
|
+
endAction && /* @__PURE__ */ jsxRuntime.jsx("span", { className: clsx49__default.default("input-end-action"), children: endAction })
|
|
1772
1776
|
] }),
|
|
1773
|
-
helperText && !error && /* @__PURE__ */ jsxRuntime.jsx("p", { id: helperTextId, className:
|
|
1774
|
-
error && /* @__PURE__ */ jsxRuntime.jsx("p", { id: errorId, className:
|
|
1777
|
+
helperText && !error && /* @__PURE__ */ jsxRuntime.jsx("p", { id: helperTextId, className: clsx49__default.default("input-helper-text", Input_module_default["helper-text"]), children: helperText }),
|
|
1778
|
+
error && /* @__PURE__ */ jsxRuntime.jsx("p", { id: errorId, className: clsx49__default.default("input-error", Input_module_default.error), role: "alert", children: error })
|
|
1775
1779
|
]
|
|
1776
1780
|
}
|
|
1777
1781
|
);
|
|
@@ -1811,14 +1815,14 @@ var NewsCard = ({
|
|
|
1811
1815
|
href: cta.url,
|
|
1812
1816
|
target: cta.isExternal ? "_blank" : void 0,
|
|
1813
1817
|
rel: cta.isExternal ? "noopener noreferrer" : void 0,
|
|
1814
|
-
className:
|
|
1818
|
+
className: clsx49__default.default("news-card-link", NewsCard_module_default["news-card-link"]),
|
|
1815
1819
|
"aria-label": `${title}${cta.label ? ` \u2014 ${cta.label}` : ""}`
|
|
1816
1820
|
} : null;
|
|
1817
1821
|
const cardLink = linkProps ? renderLink ? renderLink(__spreadProps(__spreadValues({}, linkProps), { children: null })) : /* @__PURE__ */ jsxRuntime.jsx("a", __spreadValues({}, linkProps)) : null;
|
|
1818
1822
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1819
1823
|
"article",
|
|
1820
1824
|
{
|
|
1821
|
-
className:
|
|
1825
|
+
className: clsx49__default.default(
|
|
1822
1826
|
"news-card",
|
|
1823
1827
|
NewsCard_module_default["news-card"],
|
|
1824
1828
|
NewsCard_module_default[`news-card--${direction}`],
|
|
@@ -1826,28 +1830,28 @@ var NewsCard = ({
|
|
|
1826
1830
|
),
|
|
1827
1831
|
children: [
|
|
1828
1832
|
cardLink,
|
|
1829
|
-
image && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadProps(__spreadValues({}, image), { className:
|
|
1833
|
+
image && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadProps(__spreadValues({}, image), { className: clsx49__default.default("news-card-image", NewsCard_module_default["news-card-image"]) })),
|
|
1830
1834
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1831
1835
|
"div",
|
|
1832
1836
|
{
|
|
1833
|
-
className:
|
|
1837
|
+
className: clsx49__default.default("news-card-content", NewsCard_module_default["news-card-content"]),
|
|
1834
1838
|
style: {
|
|
1835
1839
|
"--no-image-padding": image && image.src ? 0 : "1rem"
|
|
1836
1840
|
},
|
|
1837
1841
|
children: [
|
|
1838
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
1839
|
-
/* @__PURE__ */ jsxRuntime.jsx(Badge, { className:
|
|
1840
|
-
/* @__PURE__ */ jsxRuntime.jsx("time", { dateTime: date.value, className:
|
|
1842
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx49__default.default("news-card-top-content", NewsCard_module_default["news-card-top-content"]), children: [
|
|
1843
|
+
/* @__PURE__ */ jsxRuntime.jsx(Badge, { className: clsx49__default.default("news-card-badge", NewsCard_module_default["news-card-badge"]), children: tag }),
|
|
1844
|
+
/* @__PURE__ */ jsxRuntime.jsx("time", { dateTime: date.value, className: clsx49__default.default("news-card-date", NewsCard_module_default["news-card-date"]), children: date.label })
|
|
1841
1845
|
] }),
|
|
1842
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
1843
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className:
|
|
1844
|
-
typeof description === "string" ? /* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
1846
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx49__default.default("news-card-main-content", NewsCard_module_default["news-card-main-content"]), children: [
|
|
1847
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: clsx49__default.default("news-card-title", NewsCard_module_default["news-card-title"]), children: title }),
|
|
1848
|
+
typeof description === "string" ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: clsx49__default.default("news-card-description", NewsCard_module_default["news-card-description"]), children: description }) : description
|
|
1845
1849
|
] }),
|
|
1846
|
-
cta && cta.url && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1850
|
+
cta && cta.url && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx49__default.default("news-card-cta-wrapper", NewsCard_module_default["news-card-cta-wrapper"]), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1847
1851
|
Button,
|
|
1848
1852
|
{
|
|
1849
1853
|
variant: "secondary",
|
|
1850
|
-
className:
|
|
1854
|
+
className: clsx49__default.default("news-card-cta", NewsCard_module_default["news-card-cta"]),
|
|
1851
1855
|
href: cta.url,
|
|
1852
1856
|
icon: cta.icon,
|
|
1853
1857
|
isExternal: cta == null ? void 0 : cta.isExternal,
|
|
@@ -1878,7 +1882,7 @@ var BlogPostContent = ({ className, body, children }) => {
|
|
|
1878
1882
|
body: BlogPostContentBody
|
|
1879
1883
|
});
|
|
1880
1884
|
const bodyNode = (_a = slots.body) != null ? _a : body;
|
|
1881
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1885
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx49__default.default("blog-post-content", BlogPostContent_module_default["blog-post-content"], className), children: bodyNode });
|
|
1882
1886
|
};
|
|
1883
1887
|
|
|
1884
1888
|
// src/components/BlogPostContent/index.ts
|
|
@@ -1904,10 +1908,10 @@ var Search = ({
|
|
|
1904
1908
|
className
|
|
1905
1909
|
}) => {
|
|
1906
1910
|
const isPill = variant === "pill";
|
|
1907
|
-
const [isOpen, setIsOpen] =
|
|
1908
|
-
const [query, setQuery] =
|
|
1909
|
-
const inputRef =
|
|
1910
|
-
|
|
1911
|
+
const [isOpen, setIsOpen] = React71.useState(isPill);
|
|
1912
|
+
const [query, setQuery] = React71.useState("");
|
|
1913
|
+
const inputRef = React71.useRef(null);
|
|
1914
|
+
React71.useEffect(() => {
|
|
1911
1915
|
var _a;
|
|
1912
1916
|
if (isOpen && !isPill) (_a = inputRef.current) == null ? void 0 : _a.focus();
|
|
1913
1917
|
}, [isOpen, isPill]);
|
|
@@ -1929,7 +1933,7 @@ var Search = ({
|
|
|
1929
1933
|
}
|
|
1930
1934
|
};
|
|
1931
1935
|
if (!isOpen) {
|
|
1932
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1936
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx49__default.default(Search_module_default.search, className), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1933
1937
|
"button",
|
|
1934
1938
|
{
|
|
1935
1939
|
type: "button",
|
|
@@ -1941,10 +1945,10 @@ var Search = ({
|
|
|
1941
1945
|
}
|
|
1942
1946
|
) });
|
|
1943
1947
|
}
|
|
1944
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1948
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx49__default.default(Search_module_default.search, className), children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1945
1949
|
"div",
|
|
1946
1950
|
{
|
|
1947
|
-
className:
|
|
1951
|
+
className: clsx49__default.default(
|
|
1948
1952
|
Search_module_default.searchField,
|
|
1949
1953
|
isPill ? Search_module_default.searchFieldPill : Search_module_default.searchFieldLine
|
|
1950
1954
|
),
|
|
@@ -1996,6 +2000,27 @@ var Search = ({
|
|
|
1996
2000
|
}
|
|
1997
2001
|
) });
|
|
1998
2002
|
};
|
|
2003
|
+
var ColTextMenu = ({
|
|
2004
|
+
label,
|
|
2005
|
+
url,
|
|
2006
|
+
isExternal,
|
|
2007
|
+
className,
|
|
2008
|
+
renderLink
|
|
2009
|
+
}) => {
|
|
2010
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2011
|
+
Button,
|
|
2012
|
+
{
|
|
2013
|
+
variant: "textmenu",
|
|
2014
|
+
href: url,
|
|
2015
|
+
isExternal,
|
|
2016
|
+
renderLink,
|
|
2017
|
+
icon: "chevronRight",
|
|
2018
|
+
className: clsx49__default.default("subheading", className),
|
|
2019
|
+
children: label
|
|
2020
|
+
}
|
|
2021
|
+
);
|
|
2022
|
+
};
|
|
2023
|
+
ColTextMenu.displayName = "ColTextMenu";
|
|
1999
2024
|
|
|
2000
2025
|
// src/components/UserMenu/UserMenu.module.scss
|
|
2001
2026
|
var UserMenu_module_default = {
|
|
@@ -2015,9 +2040,9 @@ var UserMenu_module_default = {
|
|
|
2015
2040
|
};
|
|
2016
2041
|
var UserMenu = ({ user, className, dropUp, fullWidth }) => {
|
|
2017
2042
|
var _a, _b, _c;
|
|
2018
|
-
const [isOpen, setIsOpen] =
|
|
2019
|
-
const wrapperRef =
|
|
2020
|
-
const closeTimer =
|
|
2043
|
+
const [isOpen, setIsOpen] = React71.useState(false);
|
|
2044
|
+
const wrapperRef = React71.useRef(null);
|
|
2045
|
+
const closeTimer = React71.useRef(null);
|
|
2021
2046
|
const hasMenu = !!((_a = user.menuItems) == null ? void 0 : _a.length);
|
|
2022
2047
|
const openMenu = () => {
|
|
2023
2048
|
if (closeTimer.current) clearTimeout(closeTimer.current);
|
|
@@ -2039,12 +2064,12 @@ var UserMenu = ({ user, className, dropUp, fullWidth }) => {
|
|
|
2039
2064
|
setIsOpen(false);
|
|
2040
2065
|
}
|
|
2041
2066
|
};
|
|
2042
|
-
|
|
2067
|
+
React71.useEffect(() => {
|
|
2043
2068
|
return () => {
|
|
2044
2069
|
if (closeTimer.current) clearTimeout(closeTimer.current);
|
|
2045
2070
|
};
|
|
2046
2071
|
}, []);
|
|
2047
|
-
|
|
2072
|
+
React71.useEffect(() => {
|
|
2048
2073
|
if (!isOpen) return;
|
|
2049
2074
|
const handleKey = (e) => {
|
|
2050
2075
|
if (e.key === "Escape") setIsOpen(false);
|
|
@@ -2070,7 +2095,7 @@ var UserMenu = ({ user, className, dropUp, fullWidth }) => {
|
|
|
2070
2095
|
/* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "downChevronBlack", size: 13, "aria-hidden": "true" })
|
|
2071
2096
|
] })
|
|
2072
2097
|
] });
|
|
2073
|
-
const rootClass =
|
|
2098
|
+
const rootClass = clsx49__default.default(UserMenu_module_default.userButton, fullWidth && UserMenu_module_default.fullWidth, className);
|
|
2074
2099
|
return user.url ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
2075
2100
|
"a",
|
|
2076
2101
|
{
|
|
@@ -2085,7 +2110,7 @@ var UserMenu = ({ user, className, dropUp, fullWidth }) => {
|
|
|
2085
2110
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2086
2111
|
"div",
|
|
2087
2112
|
{
|
|
2088
|
-
className:
|
|
2113
|
+
className: clsx49__default.default(UserMenu_module_default.userMenuWrapper, fullWidth && UserMenu_module_default.fullWidth, className),
|
|
2089
2114
|
ref: wrapperRef,
|
|
2090
2115
|
onPointerLeave: handlePointerLeave,
|
|
2091
2116
|
onBlur: handleBlur,
|
|
@@ -2107,7 +2132,7 @@ var UserMenu = ({ user, className, dropUp, fullWidth }) => {
|
|
|
2107
2132
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2108
2133
|
"span",
|
|
2109
2134
|
{
|
|
2110
|
-
className:
|
|
2135
|
+
className: clsx49__default.default(
|
|
2111
2136
|
UserMenu_module_default.userChevron,
|
|
2112
2137
|
dropUp && UserMenu_module_default.userChevronUp,
|
|
2113
2138
|
isOpen && UserMenu_module_default.userChevronOpen
|
|
@@ -2122,12 +2147,12 @@ var UserMenu = ({ user, className, dropUp, fullWidth }) => {
|
|
|
2122
2147
|
isOpen && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2123
2148
|
"div",
|
|
2124
2149
|
{
|
|
2125
|
-
className:
|
|
2150
|
+
className: clsx49__default.default(UserMenu_module_default.userMenu, dropUp && UserMenu_module_default.userMenuUp),
|
|
2126
2151
|
role: "menu",
|
|
2127
2152
|
onPointerEnter: handlePointerEnter,
|
|
2128
2153
|
onPointerLeave: handlePointerLeave,
|
|
2129
2154
|
children: (_c = user.menuItems) == null ? void 0 : _c.map((item, i) => {
|
|
2130
|
-
const itemClass =
|
|
2155
|
+
const itemClass = clsx49__default.default(
|
|
2131
2156
|
UserMenu_module_default.userMenuItem,
|
|
2132
2157
|
item.variant === "danger" && UserMenu_module_default.userMenuItemDanger
|
|
2133
2158
|
);
|
|
@@ -2171,7 +2196,7 @@ var UserMenu = ({ user, className, dropUp, fullWidth }) => {
|
|
|
2171
2196
|
var Loader_module_default = {
|
|
2172
2197
|
loader: "Loader_module_loader"};
|
|
2173
2198
|
var Loader = ({ className }) => {
|
|
2174
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
2199
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx49__default.default("loader", Loader_module_default["loader"], className) });
|
|
2175
2200
|
};
|
|
2176
2201
|
Loader.displayName = "Loader";
|
|
2177
2202
|
var CardCollectionTitle = ({ children }) => {
|
|
@@ -2207,10 +2232,10 @@ var CardCollection = ({
|
|
|
2207
2232
|
children
|
|
2208
2233
|
}) => {
|
|
2209
2234
|
var _a, _b;
|
|
2210
|
-
const container =
|
|
2211
|
-
const revealWrapper =
|
|
2212
|
-
const extraCard =
|
|
2213
|
-
const [isExpanded, setIsExpanded] =
|
|
2235
|
+
const container = React71.useRef(null);
|
|
2236
|
+
const revealWrapper = React71.useRef(null);
|
|
2237
|
+
const extraCard = React71.useRef(null);
|
|
2238
|
+
const [isExpanded, setIsExpanded] = React71.useState(false);
|
|
2214
2239
|
const slots = resolveCompoundSlots(children, {
|
|
2215
2240
|
title: CardCollectionTitle,
|
|
2216
2241
|
subtitle: CardCollectionSubtitle
|
|
@@ -2221,7 +2246,7 @@ var CardCollection = ({
|
|
|
2221
2246
|
const visibleCards = isExamCard ? cards.slice(0, 8) : cards;
|
|
2222
2247
|
const hiddenCards = isExamCard ? cards.slice(8) : [];
|
|
2223
2248
|
const { contextSafe } = react.useGSAP({ scope: container });
|
|
2224
|
-
const handleShowMore =
|
|
2249
|
+
const handleShowMore = React71.useCallback(() => {
|
|
2225
2250
|
contextSafe(() => {
|
|
2226
2251
|
setIsExpanded(true);
|
|
2227
2252
|
const tl = gsap__default.default.timeline({ defaults: { ease: "power3.inOut" } });
|
|
@@ -2253,13 +2278,13 @@ var CardCollection = ({
|
|
|
2253
2278
|
Container,
|
|
2254
2279
|
{
|
|
2255
2280
|
ref: container,
|
|
2256
|
-
className:
|
|
2281
|
+
className: clsx49__default.default(CardCollection_module_default["card-collection"], CardCollection_module_default[variant], className),
|
|
2257
2282
|
children: [
|
|
2258
2283
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: CardCollection_module_default.content, children: [
|
|
2259
2284
|
titleNode && /* @__PURE__ */ jsxRuntime.jsx("h2", { children: titleNode }),
|
|
2260
2285
|
subtitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "subheading", children: subtitleNode })
|
|
2261
2286
|
] }),
|
|
2262
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: CardCollection_module_default.wrapper, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
2287
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: CardCollection_module_default.wrapper, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx49__default.default(CardCollection_module_default.cardWrapper, { [CardCollection_module_default["is-expanded"]]: isExpanded }), children: [
|
|
2263
2288
|
visibleCards.map((card, key) => /* @__PURE__ */ jsxRuntime.jsx(Card2, __spreadValues({ className: CardCollection_module_default.card, variant: theme }, card), key)),
|
|
2264
2289
|
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(
|
|
2265
2290
|
Card2,
|
|
@@ -2325,8 +2350,8 @@ var ContactModule = ({
|
|
|
2325
2350
|
animateBlur = true
|
|
2326
2351
|
}) => {
|
|
2327
2352
|
var _a, _b;
|
|
2328
|
-
const containerRef =
|
|
2329
|
-
const blurRef =
|
|
2353
|
+
const containerRef = React71.useRef(null);
|
|
2354
|
+
const blurRef = React71.useRef(null);
|
|
2330
2355
|
const slots = resolveCompoundSlots(children, {
|
|
2331
2356
|
title: ContactModuleTitle,
|
|
2332
2357
|
subtitle: ContactModuleSubtitle
|
|
@@ -2360,7 +2385,7 @@ var ContactModule = ({
|
|
|
2360
2385
|
},
|
|
2361
2386
|
{ scope: containerRef, dependencies: [blurred, animateBlur] }
|
|
2362
2387
|
);
|
|
2363
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref: containerRef, className:
|
|
2388
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref: containerRef, className: clsx49__default.default(ContactModule_module_default["contact-module"], className), children: [
|
|
2364
2389
|
blurred && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2365
2390
|
"div",
|
|
2366
2391
|
{
|
|
@@ -2375,8 +2400,8 @@ var ContactModule = ({
|
|
|
2375
2400
|
/* @__PURE__ */ jsxRuntime.jsxs(Container, { className: ContactModule_module_default.container, children: [
|
|
2376
2401
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: ContactModule_module_default.wrapper, children: [
|
|
2377
2402
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: ContactModule_module_default.content, children: [
|
|
2378
|
-
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
2379
|
-
subtitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
2403
|
+
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx49__default.default(ContactModule_module_default.title, "h1"), children: titleNode }),
|
|
2404
|
+
subtitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx49__default.default(ContactModule_module_default.subtitle, "subheading"), children: subtitleNode })
|
|
2380
2405
|
] }),
|
|
2381
2406
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: ContactModule_module_default["cta-wrapper"], children: ctas == null ? void 0 : ctas.map((cta, key) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2382
2407
|
Button,
|
|
@@ -2445,7 +2470,7 @@ var Footer = ({
|
|
|
2445
2470
|
disclaimer: FooterDisclaimer
|
|
2446
2471
|
});
|
|
2447
2472
|
const titleNode = (_a = slots.disclaimer) != null ? _a : disclaimer;
|
|
2448
|
-
return /* @__PURE__ */ jsxRuntime.jsx("footer", { className:
|
|
2473
|
+
return /* @__PURE__ */ jsxRuntime.jsx("footer", { className: clsx49__default.default(Footer_module_default.footer, className), children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: Footer_module_default.container, children: [
|
|
2449
2474
|
supportContacts.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: Footer_module_default["support-section"], children: [
|
|
2450
2475
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: Footer_module_default["support-heading"], children: "SUPPORT" }),
|
|
2451
2476
|
/* @__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: [
|
|
@@ -2474,7 +2499,7 @@ var Footer = ({
|
|
|
2474
2499
|
index
|
|
2475
2500
|
) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: Footer_module_default["supporter-link-primary"], children: /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({}, supporter.image)) }, index)
|
|
2476
2501
|
) }) }),
|
|
2477
|
-
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
2502
|
+
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx49__default.default(Footer_module_default.disclaimer, "p"), children: titleNode }),
|
|
2478
2503
|
copyright && /* @__PURE__ */ jsxRuntime.jsx("p", { className: Footer_module_default.copyright, children: copyright })
|
|
2479
2504
|
] }),
|
|
2480
2505
|
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(
|
|
@@ -2500,7 +2525,7 @@ var LogoBar_module_default = {
|
|
|
2500
2525
|
};
|
|
2501
2526
|
var LogoBar = ({ className, items }) => {
|
|
2502
2527
|
if (!items || items.length === 0) return null;
|
|
2503
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
2528
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx49__default.default(LogoBar_module_default.logoBar, className), children: items.map((item, key) => {
|
|
2504
2529
|
return /* @__PURE__ */ jsxRuntime.jsx(Anchor, { href: item.url, isExternal: item.isExternal, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: LogoBar_module_default.logoWrapper, children: [
|
|
2505
2530
|
item.logo && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: LogoBar_module_default.logo }, item.logo)),
|
|
2506
2531
|
item.hoverLogo && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: LogoBar_module_default.logoHover }, item.hoverLogo))
|
|
@@ -2575,7 +2600,7 @@ var HeroBanner = ({
|
|
|
2575
2600
|
});
|
|
2576
2601
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
2577
2602
|
const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
|
|
2578
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
2603
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx49__default.default(HeroBanner_module_default.heroBanner, HeroBanner_module_default[variant], HeroBanner_module_default[type], className), children: [
|
|
2579
2604
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: HeroBanner_module_default.container, children: [
|
|
2580
2605
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: HeroBanner_module_default.banner, children: [
|
|
2581
2606
|
(titleNode || subtitleNode) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: HeroBanner_module_default.text, children: [
|
|
@@ -2585,7 +2610,7 @@ var HeroBanner = ({
|
|
|
2585
2610
|
{
|
|
2586
2611
|
tag: "h2",
|
|
2587
2612
|
promoteToH1,
|
|
2588
|
-
className:
|
|
2613
|
+
className: clsx49__default.default(HeroBanner_module_default.title, vBannerPodcast ? "h3" : "h1"),
|
|
2589
2614
|
children: titleNode
|
|
2590
2615
|
}
|
|
2591
2616
|
),
|
|
@@ -2594,7 +2619,7 @@ var HeroBanner = ({
|
|
|
2594
2619
|
{
|
|
2595
2620
|
tag: "div",
|
|
2596
2621
|
promoteToH1: promoteToH1 && !titleNode,
|
|
2597
|
-
className:
|
|
2622
|
+
className: clsx49__default.default(HeroBanner_module_default.subtitle, "subheading"),
|
|
2598
2623
|
children: subtitleNode
|
|
2599
2624
|
}
|
|
2600
2625
|
)
|
|
@@ -2668,10 +2693,10 @@ var HeroBannerCarousel = ({
|
|
|
2668
2693
|
}) => {
|
|
2669
2694
|
const { is } = useViewPort_default();
|
|
2670
2695
|
const isMobile = is("tablet", "below");
|
|
2671
|
-
const [swiperInstance, setSwiperInstance] =
|
|
2672
|
-
const [activeIndex, setActiveIndex] =
|
|
2696
|
+
const [swiperInstance, setSwiperInstance] = React71.useState(null);
|
|
2697
|
+
const [activeIndex, setActiveIndex] = React71.useState(0);
|
|
2673
2698
|
if (!items.length) return null;
|
|
2674
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
2699
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx49__default.default(HeroBannerCarousel_module_default.heroBannerCarousel, className), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: HeroBannerCarousel_module_default.inner, children: [
|
|
2675
2700
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: HeroBannerCarousel_module_default.swiperContainer, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2676
2701
|
react$1.Swiper,
|
|
2677
2702
|
{
|
|
@@ -2718,7 +2743,7 @@ var HeroBannerCarousel = ({
|
|
|
2718
2743
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: HeroBannerCarousel_module_default.pagination, children: items.map((_, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2719
2744
|
"button",
|
|
2720
2745
|
{
|
|
2721
|
-
className:
|
|
2746
|
+
className: clsx49__default.default(HeroBannerCarousel_module_default.dot, index === activeIndex && HeroBannerCarousel_module_default.dotActive),
|
|
2722
2747
|
onClick: () => swiperInstance == null ? void 0 : swiperInstance.slideTo(index),
|
|
2723
2748
|
"aria-label": `Go to slide ${index + 1}`
|
|
2724
2749
|
},
|
|
@@ -2758,16 +2783,16 @@ var AccordionItem = ({
|
|
|
2758
2783
|
onToggle,
|
|
2759
2784
|
className
|
|
2760
2785
|
}) => {
|
|
2761
|
-
const contentRef =
|
|
2762
|
-
const contentInnerRef =
|
|
2763
|
-
const timelineRef =
|
|
2764
|
-
const [contentHeight, setContentHeight] =
|
|
2765
|
-
|
|
2786
|
+
const contentRef = React71.useRef(null);
|
|
2787
|
+
const contentInnerRef = React71.useRef(null);
|
|
2788
|
+
const timelineRef = React71.useRef(null);
|
|
2789
|
+
const [contentHeight, setContentHeight] = React71.useState(0);
|
|
2790
|
+
React71.useEffect(() => {
|
|
2766
2791
|
if (contentInnerRef.current) {
|
|
2767
2792
|
setContentHeight(contentInnerRef.current.scrollHeight);
|
|
2768
2793
|
}
|
|
2769
2794
|
}, [children]);
|
|
2770
|
-
|
|
2795
|
+
React71.useEffect(() => {
|
|
2771
2796
|
if (contentRef.current && contentHeight > 0) {
|
|
2772
2797
|
if (timelineRef.current) {
|
|
2773
2798
|
timelineRef.current.kill();
|
|
@@ -2798,7 +2823,7 @@ var AccordionItem = ({
|
|
|
2798
2823
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2799
2824
|
"div",
|
|
2800
2825
|
{
|
|
2801
|
-
className:
|
|
2826
|
+
className: clsx49__default.default(
|
|
2802
2827
|
Accordion_module_default.accordionItem,
|
|
2803
2828
|
{
|
|
2804
2829
|
[Accordion_module_default.accordionItemOpen]: isOpen
|
|
@@ -2809,18 +2834,18 @@ var AccordionItem = ({
|
|
|
2809
2834
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
2810
2835
|
"button",
|
|
2811
2836
|
{
|
|
2812
|
-
className:
|
|
2837
|
+
className: clsx49__default.default(Accordion_module_default.accordionHeader, {
|
|
2813
2838
|
[Accordion_module_default.accordionHeaderOpen]: isOpen
|
|
2814
2839
|
}),
|
|
2815
2840
|
onClick: handleToggle,
|
|
2816
2841
|
"aria-expanded": isOpen,
|
|
2817
2842
|
"aria-label": `Toggle ${title}`,
|
|
2818
2843
|
children: [
|
|
2819
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: Accordion_module_default.accordionHeaderLeft, children: /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
2844
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: Accordion_module_default.accordionHeaderLeft, children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: clsx49__default.default("body", Accordion_module_default.accordionTitle), children: title }) }),
|
|
2820
2845
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2821
2846
|
"span",
|
|
2822
2847
|
{
|
|
2823
|
-
className:
|
|
2848
|
+
className: clsx49__default.default(Accordion_module_default.accordionChevron, {
|
|
2824
2849
|
[Accordion_module_default.accordionChevronOpen]: isOpen
|
|
2825
2850
|
}),
|
|
2826
2851
|
children: isOpen ? /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "filledChevronUpBlack", size: 40 }) : /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "circleChevronDown", size: 40 })
|
|
@@ -2852,7 +2877,7 @@ var Accordion = ({
|
|
|
2852
2877
|
allowMultiple = false,
|
|
2853
2878
|
onItemToggle
|
|
2854
2879
|
}) => {
|
|
2855
|
-
const [openIds, setOpenIds] =
|
|
2880
|
+
const [openIds, setOpenIds] = React71.useState(defaultOpenIds);
|
|
2856
2881
|
const handleToggle = (id) => {
|
|
2857
2882
|
setOpenIds((prev) => {
|
|
2858
2883
|
let newOpenIds;
|
|
@@ -2872,7 +2897,7 @@ var Accordion = ({
|
|
|
2872
2897
|
if (items.length === 0) {
|
|
2873
2898
|
return null;
|
|
2874
2899
|
}
|
|
2875
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
2900
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx49__default.default(Accordion_module_default.accordion, className), children: items.map((item) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2876
2901
|
AccordionItem,
|
|
2877
2902
|
{
|
|
2878
2903
|
id: item.id,
|
|
@@ -2913,10 +2938,10 @@ var InternalBrandsTab_module_default = {
|
|
|
2913
2938
|
var InternalBrandsTab = (props) => {
|
|
2914
2939
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A;
|
|
2915
2940
|
const { title, subTitle, className, tabs } = props;
|
|
2916
|
-
const [activeIndex, setActiveIndex] =
|
|
2941
|
+
const [activeIndex, setActiveIndex] = React71.useState(0);
|
|
2917
2942
|
const { is } = useViewPort_default();
|
|
2918
2943
|
const isTabletBelow = is("tablet", "below");
|
|
2919
|
-
const accordionItems =
|
|
2944
|
+
const accordionItems = React71.useMemo(() => {
|
|
2920
2945
|
return (tabs == null ? void 0 : tabs.map((tab, index) => {
|
|
2921
2946
|
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2, _m2, _n2;
|
|
2922
2947
|
return {
|
|
@@ -2962,7 +2987,7 @@ var InternalBrandsTab = (props) => {
|
|
|
2962
2987
|
};
|
|
2963
2988
|
})) || [];
|
|
2964
2989
|
}, [tabs]);
|
|
2965
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(Container, { className:
|
|
2990
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: clsx49__default.default(InternalBrandsTab_module_default.internalBrandsTab, className), children: [
|
|
2966
2991
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: InternalBrandsTab_module_default.textsContainer, children: [
|
|
2967
2992
|
title && /* @__PURE__ */ jsxRuntime.jsx(Text, { tag: "h2", className: InternalBrandsTab_module_default.title, children: title }),
|
|
2968
2993
|
subTitle && /* @__PURE__ */ jsxRuntime.jsx("div", { className: InternalBrandsTab_module_default.subTitle, children: subTitle })
|
|
@@ -2978,7 +3003,7 @@ var InternalBrandsTab = (props) => {
|
|
|
2978
3003
|
},
|
|
2979
3004
|
index
|
|
2980
3005
|
)) }),
|
|
2981
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
3006
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx49__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: [
|
|
2982
3007
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: InternalBrandsTab_module_default.topContent, children: [
|
|
2983
3008
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
2984
3009
|
((_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 }),
|
|
@@ -3076,22 +3101,22 @@ var MiniBanner = ({
|
|
|
3076
3101
|
const titleNode = (_b = slots.title) != null ? _b : title;
|
|
3077
3102
|
const subtitleNode = (_c = slots.subtitle) != null ? _c : subtitle;
|
|
3078
3103
|
const goBackNode = slots == null ? void 0 : slots.goBack;
|
|
3079
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
3104
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx49__default.default(MiniBanner_module_default.minibanner, MiniBanner_module_default[variant], className), children: [
|
|
3080
3105
|
((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)),
|
|
3081
|
-
/* @__PURE__ */ jsxRuntime.jsx(Container, { className:
|
|
3106
|
+
/* @__PURE__ */ jsxRuntime.jsx(Container, { className: clsx49__default.default(MiniBanner_module_default.container), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: MiniBanner_module_default.wrapper, children: [
|
|
3082
3107
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: MiniBanner_module_default.textContainer, children: [
|
|
3083
3108
|
(logo == null ? void 0 : logo.src) && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: MiniBanner_module_default.logo }, logo)),
|
|
3084
|
-
pretitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
3109
|
+
pretitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx49__default.default(MiniBanner_module_default.pretitle, "small"), children: pretitleNode }),
|
|
3085
3110
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: MiniBanner_module_default.headingWrapper, children: [
|
|
3086
|
-
goBackNode ?
|
|
3087
|
-
className:
|
|
3111
|
+
goBackNode ? React71__default.default.cloneElement(goBackNode, {
|
|
3112
|
+
className: clsx49__default.default("back-button", MiniBanner_module_default["back-button"])
|
|
3088
3113
|
}) : null,
|
|
3089
|
-
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
3114
|
+
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx49__default.default(MiniBanner_module_default.title, isMiniBannerTextLeft ? "h1" : "h4"), children: titleNode })
|
|
3090
3115
|
] }),
|
|
3091
3116
|
subtitleNode && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3092
3117
|
"div",
|
|
3093
3118
|
{
|
|
3094
|
-
className:
|
|
3119
|
+
className: clsx49__default.default(MiniBanner_module_default.title, {
|
|
3095
3120
|
subheading: isMiniBannerNoBG,
|
|
3096
3121
|
h1: !isMiniBannerNoBG && !isMiniBannerTextLeft,
|
|
3097
3122
|
h4: isMiniBannerTextLeft
|
|
@@ -3164,14 +3189,14 @@ var MiniSectionCta = ({
|
|
|
3164
3189
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3165
3190
|
"div",
|
|
3166
3191
|
{
|
|
3167
|
-
className:
|
|
3192
|
+
className: clsx49__default.default(MiniSectionCta_module_default.miniSectionCta, MiniSectionCta_module_default[variant], theme && MiniSectionCta_module_default[theme], className),
|
|
3168
3193
|
children: /* @__PURE__ */ jsxRuntime.jsx(Container, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: MiniSectionCta_module_default.wrapper, children: [
|
|
3169
3194
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: MiniSectionCta_module_default.col, children: [
|
|
3170
3195
|
titleNode && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: variant === "BgColorBlack" || variant === "BgColorGrey" ? "h3" : "h2", children: titleNode }),
|
|
3171
3196
|
subtitleNode && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3172
3197
|
"div",
|
|
3173
3198
|
{
|
|
3174
|
-
className:
|
|
3199
|
+
className: clsx49__default.default(MiniSectionCta_module_default.subtitle, variant === "infoCallout" ? "h4" : "subheading"),
|
|
3175
3200
|
children: subtitleNode
|
|
3176
3201
|
}
|
|
3177
3202
|
)
|
|
@@ -3198,8 +3223,8 @@ var MiniSectionCta2 = Object.assign(MiniSectionCta, {
|
|
|
3198
3223
|
Subtitle: MiniSectionCtaSubtitle
|
|
3199
3224
|
});
|
|
3200
3225
|
var useIsAtTop = () => {
|
|
3201
|
-
const [isAtTop, setIsAtTop] =
|
|
3202
|
-
|
|
3226
|
+
const [isAtTop, setIsAtTop] = React71.useState(true);
|
|
3227
|
+
React71.useEffect(() => {
|
|
3203
3228
|
const handleScroll = () => setIsAtTop(window.scrollY === 0);
|
|
3204
3229
|
window.addEventListener("scroll", handleScroll, { passive: true });
|
|
3205
3230
|
return () => window.removeEventListener("scroll", handleScroll);
|
|
@@ -3323,20 +3348,20 @@ var NavigationBrandBars = ({
|
|
|
3323
3348
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3324
3349
|
"div",
|
|
3325
3350
|
{
|
|
3326
|
-
className:
|
|
3351
|
+
className: clsx49__default.default(Navigation_module_default.brandBars, isUnfolded && Navigation_module_default.brandBarsUnfolded, className),
|
|
3327
3352
|
"aria-hidden": "true",
|
|
3328
3353
|
children: BRANDS.map((brand) => {
|
|
3329
3354
|
var _a;
|
|
3330
3355
|
const logo = brandLogos == null ? void 0 : brandLogos[brand.key];
|
|
3331
|
-
return /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
3356
|
+
return /* @__PURE__ */ jsxRuntime.jsx("span", { className: clsx49__default.default(Navigation_module_default.brandBar, brand.className), children: logo && /* @__PURE__ */ jsxRuntime.jsx("img", { className: Navigation_module_default.brandLogo, src: logo.src, alt: (_a = logo.alt) != null ? _a : brand.label }) }, brand.key);
|
|
3332
3357
|
})
|
|
3333
3358
|
}
|
|
3334
3359
|
);
|
|
3335
3360
|
};
|
|
3336
3361
|
var getPathname = () => typeof window === "undefined" ? "" : window.location.pathname;
|
|
3337
3362
|
var useActivePath = () => {
|
|
3338
|
-
const [pathname, setPathname] =
|
|
3339
|
-
|
|
3363
|
+
const [pathname, setPathname] = React71.useState(getPathname);
|
|
3364
|
+
React71.useEffect(() => {
|
|
3340
3365
|
const handlePopState = () => setPathname(getPathname());
|
|
3341
3366
|
window.addEventListener("popstate", handlePopState);
|
|
3342
3367
|
return () => window.removeEventListener("popstate", handlePopState);
|
|
@@ -3389,7 +3414,7 @@ var NavigationDesktop = ({
|
|
|
3389
3414
|
"a",
|
|
3390
3415
|
{
|
|
3391
3416
|
href: (_b = item.cta) == null ? void 0 : _b.url,
|
|
3392
|
-
className:
|
|
3417
|
+
className: clsx49__default.default(Navigation_module_default.navTabLink, isCurrent2 && Navigation_module_default.navTabActive),
|
|
3393
3418
|
"aria-current": isCurrent2 ? "page" : void 0,
|
|
3394
3419
|
target: ((_c = item.cta) == null ? void 0 : _c.isExternal) ? "_blank" : void 0,
|
|
3395
3420
|
rel: ((_d = item.cta) == null ? void 0 : _d.isExternal) ? "noopener noreferrer" : void 0,
|
|
@@ -3408,7 +3433,7 @@ var NavigationDesktop = ({
|
|
|
3408
3433
|
{
|
|
3409
3434
|
type: "button",
|
|
3410
3435
|
id: `${baseId}-trigger-${index}`,
|
|
3411
|
-
className:
|
|
3436
|
+
className: clsx49__default.default(
|
|
3412
3437
|
Navigation_module_default.navTabLink,
|
|
3413
3438
|
Navigation_module_default.navTabTrigger,
|
|
3414
3439
|
(isCurrent || isOpen) && Navigation_module_default.navTabActive,
|
|
@@ -3468,7 +3493,7 @@ var NavigationDropdown = ({
|
|
|
3468
3493
|
"div",
|
|
3469
3494
|
{
|
|
3470
3495
|
id: panelId,
|
|
3471
|
-
className:
|
|
3496
|
+
className: clsx49__default.default(Navigation_module_default.dropdownPanel, Navigation_module_default.dropdownPanelOpen),
|
|
3472
3497
|
onMouseEnter,
|
|
3473
3498
|
onMouseLeave,
|
|
3474
3499
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: Navigation_module_default.dropdownInner, children: [
|
|
@@ -3477,7 +3502,7 @@ var NavigationDropdown = ({
|
|
|
3477
3502
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3478
3503
|
"li",
|
|
3479
3504
|
{
|
|
3480
|
-
className:
|
|
3505
|
+
className: clsx49__default.default(Navigation_module_default.dropdownLinkItem, {
|
|
3481
3506
|
[Navigation_module_default.dropdownLinkSpacer]: sub.variant === "subMenuSpacer"
|
|
3482
3507
|
}),
|
|
3483
3508
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -3521,11 +3546,11 @@ var NavigationMobile = ({
|
|
|
3521
3546
|
loginCta,
|
|
3522
3547
|
rightButton
|
|
3523
3548
|
}) => {
|
|
3524
|
-
const [expanded, setExpanded] =
|
|
3525
|
-
const [supportsHover] =
|
|
3549
|
+
const [expanded, setExpanded] = React71.useState(null);
|
|
3550
|
+
const [supportsHover] = React71.useState(
|
|
3526
3551
|
() => typeof window !== "undefined" && window.matchMedia("(hover: hover)").matches
|
|
3527
3552
|
);
|
|
3528
|
-
const baseId =
|
|
3553
|
+
const baseId = React71.useId();
|
|
3529
3554
|
const toggleExpanded = (index) => {
|
|
3530
3555
|
setExpanded((prev) => prev === index ? null : index);
|
|
3531
3556
|
};
|
|
@@ -3549,7 +3574,7 @@ var NavigationMobile = ({
|
|
|
3549
3574
|
"div",
|
|
3550
3575
|
{
|
|
3551
3576
|
id,
|
|
3552
|
-
className:
|
|
3577
|
+
className: clsx49__default.default(Navigation_module_default.mobileMenu, isOpen && Navigation_module_default.mobileMenuOpen),
|
|
3553
3578
|
role: "dialog",
|
|
3554
3579
|
"aria-modal": "true",
|
|
3555
3580
|
"aria-label": "Navigation menu",
|
|
@@ -3595,7 +3620,7 @@ var NavigationMobile = ({
|
|
|
3595
3620
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3596
3621
|
"span",
|
|
3597
3622
|
{
|
|
3598
|
-
className:
|
|
3623
|
+
className: clsx49__default.default(
|
|
3599
3624
|
Navigation_module_default.mobileItemChevron,
|
|
3600
3625
|
isExpanded && Navigation_module_default.mobileItemChevronOpen
|
|
3601
3626
|
),
|
|
@@ -3610,7 +3635,7 @@ var NavigationMobile = ({
|
|
|
3610
3635
|
"div",
|
|
3611
3636
|
{
|
|
3612
3637
|
id: subMenuId,
|
|
3613
|
-
className:
|
|
3638
|
+
className: clsx49__default.default(Navigation_module_default.mobileSubItems, isExpanded && Navigation_module_default.mobileSubItemsOpen),
|
|
3614
3639
|
children: /* @__PURE__ */ jsxRuntime.jsx("ul", { className: Navigation_module_default.mobileSubItemsInner, children: item.items.map(
|
|
3615
3640
|
(subItem, i) => {
|
|
3616
3641
|
var _a2, _b2;
|
|
@@ -3618,7 +3643,7 @@ var NavigationMobile = ({
|
|
|
3618
3643
|
"a",
|
|
3619
3644
|
{
|
|
3620
3645
|
href: (_a2 = subItem.cta) == null ? void 0 : _a2.url,
|
|
3621
|
-
className:
|
|
3646
|
+
className: clsx49__default.default(
|
|
3622
3647
|
Navigation_module_default.mobileSubLink,
|
|
3623
3648
|
subItem.isActive && Navigation_module_default.mobileSubLinkActive
|
|
3624
3649
|
),
|
|
@@ -3649,7 +3674,7 @@ var NavigationMobile = ({
|
|
|
3649
3674
|
"div",
|
|
3650
3675
|
{
|
|
3651
3676
|
id,
|
|
3652
|
-
className:
|
|
3677
|
+
className: clsx49__default.default(Navigation_module_default.internalMobileMenu, isOpen && Navigation_module_default.internalMobileMenuOpen),
|
|
3653
3678
|
role: "dialog",
|
|
3654
3679
|
"aria-modal": "true",
|
|
3655
3680
|
"aria-label": "Navigation menu",
|
|
@@ -3708,7 +3733,7 @@ var NavigationMobile = ({
|
|
|
3708
3733
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3709
3734
|
"span",
|
|
3710
3735
|
{
|
|
3711
|
-
className:
|
|
3736
|
+
className: clsx49__default.default(
|
|
3712
3737
|
Navigation_module_default.internalMobileItemChevron,
|
|
3713
3738
|
isExpanded && Navigation_module_default.internalMobileItemChevronOpen
|
|
3714
3739
|
),
|
|
@@ -3723,7 +3748,7 @@ var NavigationMobile = ({
|
|
|
3723
3748
|
"div",
|
|
3724
3749
|
{
|
|
3725
3750
|
id: subMenuId,
|
|
3726
|
-
className:
|
|
3751
|
+
className: clsx49__default.default(
|
|
3727
3752
|
Navigation_module_default.internalMobileSubItems,
|
|
3728
3753
|
isExpanded && Navigation_module_default.internalMobileSubItemsOpen
|
|
3729
3754
|
),
|
|
@@ -3734,7 +3759,7 @@ var NavigationMobile = ({
|
|
|
3734
3759
|
"a",
|
|
3735
3760
|
{
|
|
3736
3761
|
href: (_a2 = sub.cta) == null ? void 0 : _a2.url,
|
|
3737
|
-
className:
|
|
3762
|
+
className: clsx49__default.default(
|
|
3738
3763
|
Navigation_module_default.internalMobileSubLink,
|
|
3739
3764
|
sub.isActive && Navigation_module_default.internalMobileSubLinkActive
|
|
3740
3765
|
),
|
|
@@ -3789,15 +3814,15 @@ var Navigation2 = (props) => {
|
|
|
3789
3814
|
brandLogos
|
|
3790
3815
|
} = props;
|
|
3791
3816
|
const isExternal = variant !== "internal";
|
|
3792
|
-
const [isHovered, setIsHovered] =
|
|
3793
|
-
const [openIndex, setOpenIndex] =
|
|
3794
|
-
const [isMobileMenuOpen, setIsMobileMenuOpen] =
|
|
3795
|
-
const navRef =
|
|
3796
|
-
const closeTimer =
|
|
3817
|
+
const [isHovered, setIsHovered] = React71.useState(false);
|
|
3818
|
+
const [openIndex, setOpenIndex] = React71.useState(null);
|
|
3819
|
+
const [isMobileMenuOpen, setIsMobileMenuOpen] = React71.useState(false);
|
|
3820
|
+
const navRef = React71.useRef(null);
|
|
3821
|
+
const closeTimer = React71.useRef(null);
|
|
3797
3822
|
const isAtTop = useIsAtTop();
|
|
3798
3823
|
const { is } = useViewPort_default();
|
|
3799
|
-
const mobileMenuId =
|
|
3800
|
-
const baseId =
|
|
3824
|
+
const mobileMenuId = React71.useId();
|
|
3825
|
+
const baseId = React71.useId();
|
|
3801
3826
|
const isTabletBelow = is("tablet", "below");
|
|
3802
3827
|
const dropdownOpen = openIndex !== null && !isTabletBelow;
|
|
3803
3828
|
const isTransparent = !!transparent && isAtTop && !isHovered && !dropdownOpen;
|
|
@@ -3844,13 +3869,13 @@ var Navigation2 = (props) => {
|
|
|
3844
3869
|
}
|
|
3845
3870
|
}
|
|
3846
3871
|
};
|
|
3847
|
-
|
|
3872
|
+
React71.useEffect(() => {
|
|
3848
3873
|
document.body.style.overflow = isMobileMenuOpen ? "hidden" : "";
|
|
3849
3874
|
return () => {
|
|
3850
3875
|
document.body.style.overflow = "";
|
|
3851
3876
|
};
|
|
3852
3877
|
}, [isMobileMenuOpen]);
|
|
3853
|
-
|
|
3878
|
+
React71.useEffect(() => {
|
|
3854
3879
|
if (!dropdownOpen) return;
|
|
3855
3880
|
const handleKey = (e) => {
|
|
3856
3881
|
if (e.key === "Escape") setOpenIndex(null);
|
|
@@ -3872,7 +3897,7 @@ var Navigation2 = (props) => {
|
|
|
3872
3897
|
const logo = mainLogo ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
3873
3898
|
Picture,
|
|
3874
3899
|
{
|
|
3875
|
-
className:
|
|
3900
|
+
className: clsx49__default.default(Navigation_module_default.logo, isTabletBelow && Navigation_module_default.logoMobile),
|
|
3876
3901
|
src: mainLogo,
|
|
3877
3902
|
alt: logoAlt
|
|
3878
3903
|
}
|
|
@@ -3882,7 +3907,7 @@ var Navigation2 = (props) => {
|
|
|
3882
3907
|
"nav",
|
|
3883
3908
|
{
|
|
3884
3909
|
ref: navRef,
|
|
3885
|
-
className:
|
|
3910
|
+
className: clsx49__default.default(
|
|
3886
3911
|
Navigation_module_default.Navigation,
|
|
3887
3912
|
dropdownOpen && Navigation_module_default.dropdownOpen,
|
|
3888
3913
|
// External-only transparent / hover treatment.
|
|
@@ -3902,7 +3927,7 @@ var Navigation2 = (props) => {
|
|
|
3902
3927
|
{
|
|
3903
3928
|
mainLogo,
|
|
3904
3929
|
homeCta,
|
|
3905
|
-
className:
|
|
3930
|
+
className: clsx49__default.default(Navigation_module_default.logo, isTabletBelow && Navigation_module_default.logoMobile)
|
|
3906
3931
|
}
|
|
3907
3932
|
) : logo,
|
|
3908
3933
|
isTabletBelow ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -4040,7 +4065,7 @@ var PracticePathCards = ({
|
|
|
4040
4065
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
4041
4066
|
const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
|
|
4042
4067
|
const footerNode = (_c = slots.footer) != null ? _c : footer;
|
|
4043
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
4068
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx49__default.default(PracticePathCards_module_default["practice-path-cards"], className), children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: PracticePathCards_module_default.container, children: [
|
|
4044
4069
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: PracticePathCards_module_default.wrapper, children: [
|
|
4045
4070
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: PracticePathCards_module_default.content, children: [
|
|
4046
4071
|
titleNode && /* @__PURE__ */ jsxRuntime.jsx("h2", { children: titleNode }),
|
|
@@ -4094,8 +4119,8 @@ var Teaser5050With3Text = ({
|
|
|
4094
4119
|
title: Teaser5050With3TextTitle
|
|
4095
4120
|
});
|
|
4096
4121
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
4097
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
4098
|
-
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
4122
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx49__default.default(Teaser5050With3Text_module_default["teaser5050-3text"], Teaser5050With3Text_module_default[variant], className), children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: Teaser5050With3Text_module_default.container, children: [
|
|
4123
|
+
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx49__default.default(Teaser5050With3Text_module_default.title, "h3"), children: titleNode }),
|
|
4099
4124
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: Teaser5050With3Text_module_default.content, children: [
|
|
4100
4125
|
/* @__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)) }),
|
|
4101
4126
|
image && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: Teaser5050With3Text_module_default.image }, image))
|
|
@@ -4145,12 +4170,12 @@ var Teaser5050WithCta = ({
|
|
|
4145
4170
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4146
4171
|
"div",
|
|
4147
4172
|
{
|
|
4148
|
-
className:
|
|
4173
|
+
className: clsx49__default.default(Teaser5050WithCta_module_default.teaser5050, Teaser5050WithCta_module_default[variant], className),
|
|
4149
4174
|
style: { backgroundColor: bgColor ? bgColor : "#ffffff" },
|
|
4150
4175
|
children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: Teaser5050WithCta_module_default.container, children: [
|
|
4151
4176
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: Teaser5050WithCta_module_default.wrapper, children: [
|
|
4152
4177
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: Teaser5050WithCta_module_default.content, children: [
|
|
4153
|
-
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
4178
|
+
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx49__default.default(Teaser5050WithCta_module_default.title, "h3"), children: titleNode }),
|
|
4154
4179
|
subtitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "subheading", children: subtitleNode })
|
|
4155
4180
|
] }),
|
|
4156
4181
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: Teaser5050WithCta_module_default.ctaWrapper, children: ctas.map((cta, key) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -4202,7 +4227,7 @@ var Carousel = (_a) => {
|
|
|
4202
4227
|
},
|
|
4203
4228
|
role: "region",
|
|
4204
4229
|
"aria-label": ariaLabel,
|
|
4205
|
-
className:
|
|
4230
|
+
className: clsx49__default.default(Carousel_module_default.carousel, className),
|
|
4206
4231
|
spaceBetween: 0,
|
|
4207
4232
|
slidesPerView: "auto",
|
|
4208
4233
|
modules: [modules.FreeMode, modules.A11y],
|
|
@@ -4212,7 +4237,7 @@ var Carousel = (_a) => {
|
|
|
4212
4237
|
children: slides.map((slide, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4213
4238
|
react$1.SwiperSlide,
|
|
4214
4239
|
{
|
|
4215
|
-
className:
|
|
4240
|
+
className: clsx49__default.default(Carousel_module_default["carousel-item"], props.slideClass),
|
|
4216
4241
|
children: slide
|
|
4217
4242
|
},
|
|
4218
4243
|
index
|
|
@@ -4269,13 +4294,13 @@ var EventList = ({
|
|
|
4269
4294
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4270
4295
|
"div",
|
|
4271
4296
|
{
|
|
4272
|
-
className:
|
|
4297
|
+
className: clsx49__default.default("event-list-module", EventList_module_default["event-list-module"], className),
|
|
4273
4298
|
style: {
|
|
4274
4299
|
backgroundColor
|
|
4275
4300
|
},
|
|
4276
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className:
|
|
4301
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: clsx49__default.default(EventList_module_default["event-list-container"]), children: [
|
|
4277
4302
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: EventList_module_default["event-list-header-container"], children: [
|
|
4278
|
-
titleNode && /* @__PURE__ */ jsxRuntime.jsx("h2", { className:
|
|
4303
|
+
titleNode && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: clsx49__default.default(EventList_module_default["event-list-title"]), children: titleNode }),
|
|
4279
4304
|
cta && cta.url && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4280
4305
|
Button,
|
|
4281
4306
|
{
|
|
@@ -4293,7 +4318,7 @@ var EventList = ({
|
|
|
4293
4318
|
Carousel,
|
|
4294
4319
|
{
|
|
4295
4320
|
"aria-label": "Upcoming events",
|
|
4296
|
-
wrapperClass:
|
|
4321
|
+
wrapperClass: clsx49__default.default(EventList_module_default["carousel-wrapper"], EventList_module_default[variant]),
|
|
4297
4322
|
slideClass: EventList_module_default["carousel-list-item"],
|
|
4298
4323
|
spaceBetween: 16,
|
|
4299
4324
|
slides: items.map((item) => {
|
|
@@ -4301,7 +4326,7 @@ var EventList = ({
|
|
|
4301
4326
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4302
4327
|
UpcomingEventCard,
|
|
4303
4328
|
__spreadValues({
|
|
4304
|
-
className:
|
|
4329
|
+
className: clsx49__default.default(EventList_module_default["event-card"]),
|
|
4305
4330
|
direction: "vertical",
|
|
4306
4331
|
showImage: false
|
|
4307
4332
|
}, item),
|
|
@@ -4314,7 +4339,7 @@ var EventList = ({
|
|
|
4314
4339
|
"ul",
|
|
4315
4340
|
{
|
|
4316
4341
|
"aria-label": "Upcoming events",
|
|
4317
|
-
className:
|
|
4342
|
+
className: clsx49__default.default(
|
|
4318
4343
|
EventList_module_default["event-list-wrapper"],
|
|
4319
4344
|
EventList_module_default["horizontal"],
|
|
4320
4345
|
EventList_module_default[variant]
|
|
@@ -4324,11 +4349,11 @@ var EventList = ({
|
|
|
4324
4349
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4325
4350
|
"li",
|
|
4326
4351
|
{
|
|
4327
|
-
className:
|
|
4352
|
+
className: clsx49__default.default(EventList_module_default["card-list-item"]),
|
|
4328
4353
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4329
4354
|
UpcomingEventCard,
|
|
4330
4355
|
__spreadProps(__spreadValues({}, item), {
|
|
4331
|
-
className:
|
|
4356
|
+
className: clsx49__default.default(EventList_module_default["card-item"]),
|
|
4332
4357
|
showImage: false,
|
|
4333
4358
|
direction: "vertical"
|
|
4334
4359
|
})
|
|
@@ -4343,7 +4368,7 @@ var EventList = ({
|
|
|
4343
4368
|
"ul",
|
|
4344
4369
|
{
|
|
4345
4370
|
"aria-label": "Upcoming events",
|
|
4346
|
-
className:
|
|
4371
|
+
className: clsx49__default.default(EventList_module_default["event-list-wrapper"], EventList_module_default[listDirection]),
|
|
4347
4372
|
children: items == null ? void 0 : items.map((item, index) => {
|
|
4348
4373
|
var _a2, _b, _c;
|
|
4349
4374
|
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);
|
|
@@ -4351,8 +4376,8 @@ var EventList = ({
|
|
|
4351
4376
|
}
|
|
4352
4377
|
)
|
|
4353
4378
|
] }),
|
|
4354
|
-
!isNotEmpty && emptyNode ?
|
|
4355
|
-
className:
|
|
4379
|
+
!isNotEmpty && emptyNode ? React71__default.default.cloneElement(emptyNode, {
|
|
4380
|
+
className: clsx49__default.default("empty-search-result", EventList_module_default["empty-search-result"])
|
|
4356
4381
|
}) : null
|
|
4357
4382
|
] })
|
|
4358
4383
|
}
|
|
@@ -4396,9 +4421,9 @@ var TextEvent = (props) => {
|
|
|
4396
4421
|
});
|
|
4397
4422
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
4398
4423
|
const richTextNode = (_b = slots.richText) != null ? _b : richText;
|
|
4399
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(Container, { className:
|
|
4424
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: clsx49__default.default(TextEvent_module_default.textEvent, className), children: [
|
|
4400
4425
|
/* @__PURE__ */ jsxRuntime.jsx(Text, { tag: "h2", className: TextEvent_module_default.title, children: titleNode }),
|
|
4401
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
4426
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx49__default.default(TextEvent_module_default.richText, TextEvent_module_default[variant != null ? variant : ""]), children: richTextNode })
|
|
4402
4427
|
] });
|
|
4403
4428
|
};
|
|
4404
4429
|
|
|
@@ -4429,7 +4454,7 @@ var TextBody = (props) => {
|
|
|
4429
4454
|
});
|
|
4430
4455
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
4431
4456
|
const bodyNode = (_b = slots.body) != null ? _b : body;
|
|
4432
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(Container, { className:
|
|
4457
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: clsx49__default.default(TextBody_module_default.textBody, className), children: [
|
|
4433
4458
|
titleNode && /* @__PURE__ */ jsxRuntime.jsx(Text, { tag: "h2", className: TextBody_module_default.title, children: titleNode }),
|
|
4434
4459
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: TextBody_module_default.body, children: bodyNode })
|
|
4435
4460
|
] });
|
|
@@ -4472,7 +4497,7 @@ var TextCenterCtaInBottom = ({
|
|
|
4472
4497
|
});
|
|
4473
4498
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
4474
4499
|
const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
|
|
4475
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
4500
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx49__default.default(TextCenterCtaInBottom_module_default.textCenterCta, className), children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: TextCenterCtaInBottom_module_default.container, children: [
|
|
4476
4501
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: TextCenterCtaInBottom_module_default.content, children: [
|
|
4477
4502
|
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: TextCenterCtaInBottom_module_default.title, children: titleNode }),
|
|
4478
4503
|
subtitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: TextCenterCtaInBottom_module_default.subtitle, children: subtitleNode })
|
|
@@ -4480,7 +4505,7 @@ var TextCenterCtaInBottom = ({
|
|
|
4480
4505
|
!!(ctas == null ? void 0 : ctas.length) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4481
4506
|
"div",
|
|
4482
4507
|
{
|
|
4483
|
-
className:
|
|
4508
|
+
className: clsx49__default.default(
|
|
4484
4509
|
TextCenterCtaInBottom_module_default.ctaWrapper,
|
|
4485
4510
|
ctas.every((cta) => !cta.label && cta.logo) && TextCenterCtaInBottom_module_default.iconOnly
|
|
4486
4511
|
),
|
|
@@ -4535,17 +4560,17 @@ var ResourcesGridList = ({
|
|
|
4535
4560
|
defaultSort = "latest"
|
|
4536
4561
|
}) => {
|
|
4537
4562
|
var _a;
|
|
4538
|
-
const [view, setView] =
|
|
4539
|
-
const [isSidebarOpen, setIsSidebarOpen] =
|
|
4540
|
-
const [filterValue, setFilterValue] =
|
|
4541
|
-
const [sortValue, setSortValue] =
|
|
4542
|
-
const [searchQuery, setSearchQuery] =
|
|
4543
|
-
const [currentPage, setCurrentPage] =
|
|
4544
|
-
const [selectedCategory, setSelectedCategory] =
|
|
4563
|
+
const [view, setView] = React71.useState(defaultView);
|
|
4564
|
+
const [isSidebarOpen, setIsSidebarOpen] = React71.useState(false);
|
|
4565
|
+
const [filterValue, setFilterValue] = React71.useState(defaultFilter);
|
|
4566
|
+
const [sortValue, setSortValue] = React71.useState(defaultSort);
|
|
4567
|
+
const [searchQuery, setSearchQuery] = React71.useState("");
|
|
4568
|
+
const [currentPage, setCurrentPage] = React71.useState(1);
|
|
4569
|
+
const [selectedCategory, setSelectedCategory] = React71.useState(() => {
|
|
4545
4570
|
const activeIndex = categories.findIndex((cat) => cat.active);
|
|
4546
4571
|
return activeIndex === -1 ? 0 : activeIndex;
|
|
4547
4572
|
});
|
|
4548
|
-
const widgetRef =
|
|
4573
|
+
const widgetRef = React71.useRef(null);
|
|
4549
4574
|
const { is } = useViewPort_default();
|
|
4550
4575
|
const isMobile = is("tablet", "below");
|
|
4551
4576
|
const selectedValue = (_a = categories[selectedCategory]) == null ? void 0 : _a.value;
|
|
@@ -4593,7 +4618,7 @@ var ResourcesGridList = ({
|
|
|
4593
4618
|
const safeCurrentPage = Math.min(currentPage, totalPages);
|
|
4594
4619
|
const pageStart = (safeCurrentPage - 1) * ITEMS_PER_PAGE;
|
|
4595
4620
|
const paginatedItems = displayedItems.slice(pageStart, pageStart + ITEMS_PER_PAGE);
|
|
4596
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref: widgetRef, className:
|
|
4621
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref: widgetRef, className: clsx49__default.default(ResourcesGridList_module_default.widget, className), children: [
|
|
4597
4622
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4598
4623
|
FilterBar,
|
|
4599
4624
|
{
|
|
@@ -4612,7 +4637,7 @@ var ResourcesGridList = ({
|
|
|
4612
4637
|
isMobile && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4613
4638
|
"div",
|
|
4614
4639
|
{
|
|
4615
|
-
className:
|
|
4640
|
+
className: clsx49__default.default(
|
|
4616
4641
|
ResourcesGridList_module_default.mobileSidebarOverlay,
|
|
4617
4642
|
isSidebarOpen && ResourcesGridList_module_default.mobileSidebarOverlayOpen
|
|
4618
4643
|
),
|
|
@@ -4623,7 +4648,7 @@ var ResourcesGridList = ({
|
|
|
4623
4648
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4624
4649
|
"li",
|
|
4625
4650
|
{
|
|
4626
|
-
className:
|
|
4651
|
+
className: clsx49__default.default(
|
|
4627
4652
|
ResourcesGridList_module_default.mobileSidebarItem,
|
|
4628
4653
|
i === selectedCategory && ResourcesGridList_module_default.active
|
|
4629
4654
|
),
|
|
@@ -4668,7 +4693,7 @@ var ResourcesGridList = ({
|
|
|
4668
4693
|
onSelect: handleSelectCategory
|
|
4669
4694
|
}
|
|
4670
4695
|
),
|
|
4671
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
4696
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx49__default.default(ResourcesGridList_module_default.cardsArea, ResourcesGridList_module_default[view]), children: paginatedItems.map((item) => /* @__PURE__ */ jsxRuntime.jsx(ResourceCardItem, { item, view }, item.id)) })
|
|
4672
4697
|
] }),
|
|
4673
4698
|
totalPages > 1 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4674
4699
|
Pagination,
|
|
@@ -4701,7 +4726,7 @@ var Grid = ({
|
|
|
4701
4726
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4702
4727
|
Component,
|
|
4703
4728
|
{
|
|
4704
|
-
className:
|
|
4729
|
+
className: clsx49__default.default("grid", Grid_module_default.grid, className),
|
|
4705
4730
|
role,
|
|
4706
4731
|
"aria-label": ariaLabel,
|
|
4707
4732
|
"aria-labelledby": ariaLabelledBy,
|
|
@@ -4726,7 +4751,7 @@ var GridItem = ({
|
|
|
4726
4751
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4727
4752
|
Component,
|
|
4728
4753
|
{
|
|
4729
|
-
className:
|
|
4754
|
+
className: clsx49__default.default("grid-item", Grid_module_default["grid-item"], className),
|
|
4730
4755
|
role,
|
|
4731
4756
|
"aria-label": ariaLabel,
|
|
4732
4757
|
"aria-labelledby": ariaLabelledBy,
|
|
@@ -4774,13 +4799,13 @@ var BlogCardGrid = ({
|
|
|
4774
4799
|
title: BlogCardGridTitle
|
|
4775
4800
|
});
|
|
4776
4801
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
4777
|
-
const content = /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
4778
|
-
title && /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
4779
|
-
titleNode && typeof titleNode === "string" ? /* @__PURE__ */ jsxRuntime.jsx(Text, { tag: "h4", className:
|
|
4780
|
-
cta && (cta == null ? void 0 : cta.url) && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
4802
|
+
const content = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx49__default.default("wrapper", BlogCardGrid_module_default["wrapper"]), children: [
|
|
4803
|
+
title && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx49__default.default("header-container", BlogCardGrid_module_default["header-container"]), children: [
|
|
4804
|
+
titleNode && typeof titleNode === "string" ? /* @__PURE__ */ jsxRuntime.jsx(Text, { tag: "h4", className: clsx49__default.default("title", BlogCardGrid_module_default["title"]), children: titleNode }) : titleNode,
|
|
4805
|
+
cta && (cta == null ? void 0 : cta.url) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx49__default.default("cta-wrapper", BlogCardGrid_module_default["cta-wrapper"]), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4781
4806
|
Button,
|
|
4782
4807
|
{
|
|
4783
|
-
className:
|
|
4808
|
+
className: clsx49__default.default("cta", BlogCardGrid_module_default["cta"]),
|
|
4784
4809
|
variant: "nofillblack",
|
|
4785
4810
|
href: cta.url,
|
|
4786
4811
|
isExternal: cta == null ? void 0 : cta.isExternal,
|
|
@@ -4806,11 +4831,11 @@ var BlogCardGrid = ({
|
|
|
4806
4831
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4807
4832
|
"div",
|
|
4808
4833
|
{
|
|
4809
|
-
className:
|
|
4834
|
+
className: clsx49__default.default("blog-card-grid", BlogCardGrid_module_default["blog-card-grid"], className),
|
|
4810
4835
|
style: {
|
|
4811
4836
|
backgroundColor
|
|
4812
4837
|
},
|
|
4813
|
-
children: hasContainer ? /* @__PURE__ */ jsxRuntime.jsx(Container, { className:
|
|
4838
|
+
children: hasContainer ? /* @__PURE__ */ jsxRuntime.jsx(Container, { className: clsx49__default.default("container", BlogCardGrid_module_default["container"]), children: content }) : content
|
|
4814
4839
|
}
|
|
4815
4840
|
);
|
|
4816
4841
|
};
|
|
@@ -4858,13 +4883,13 @@ var FeaturedNewsHighlights = ({
|
|
|
4858
4883
|
const sideCards = items.slice(1);
|
|
4859
4884
|
const isVariantHome = variant === "home";
|
|
4860
4885
|
const isBelowTablet = is("tablet", "below");
|
|
4861
|
-
const content = /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
4862
|
-
title && cta && /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
4886
|
+
const content = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx49__default.default("wrapper", FeaturedNewsHighlights_module_default["wrapper"]), children: [
|
|
4887
|
+
title && cta && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx49__default.default("header-container", FeaturedNewsHighlights_module_default["header-container"]), children: [
|
|
4863
4888
|
titleNode && typeof titleNode === "string" ? /* @__PURE__ */ jsxRuntime.jsx(Text, { tag: "h2", children: titleNode }) : titleNode,
|
|
4864
|
-
cta && (cta == null ? void 0 : cta.url) && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
4889
|
+
cta && (cta == null ? void 0 : cta.url) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx49__default.default("cta-wrapper", FeaturedNewsHighlights_module_default["cta-wrapper"]), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4865
4890
|
Button,
|
|
4866
4891
|
{
|
|
4867
|
-
className:
|
|
4892
|
+
className: clsx49__default.default("cta", FeaturedNewsHighlights_module_default["cta"]),
|
|
4868
4893
|
variant: "nofillblack",
|
|
4869
4894
|
href: cta.url,
|
|
4870
4895
|
isExternal: cta == null ? void 0 : cta.isExternal,
|
|
@@ -4876,9 +4901,9 @@ var FeaturedNewsHighlights = ({
|
|
|
4876
4901
|
isVariantHome && isBelowTablet && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4877
4902
|
Carousel,
|
|
4878
4903
|
{
|
|
4879
|
-
className:
|
|
4904
|
+
className: clsx49__default.default("carousel", FeaturedNewsHighlights_module_default["carousel"]),
|
|
4880
4905
|
"aria-label": "featured news",
|
|
4881
|
-
wrapperClass:
|
|
4906
|
+
wrapperClass: clsx49__default.default(FeaturedNewsHighlights_module_default["carousel-wrapper"]),
|
|
4882
4907
|
slideClass: FeaturedNewsHighlights_module_default["carousel-list-item"],
|
|
4883
4908
|
spaceBetween: 16,
|
|
4884
4909
|
slides: items.map((item, index) => {
|
|
@@ -4887,27 +4912,27 @@ var FeaturedNewsHighlights = ({
|
|
|
4887
4912
|
NewsCard,
|
|
4888
4913
|
__spreadProps(__spreadValues({}, item), {
|
|
4889
4914
|
direction: "vertical",
|
|
4890
|
-
className:
|
|
4915
|
+
className: clsx49__default.default("carousel-news-card", FeaturedNewsHighlights_module_default["carousel-news-card"])
|
|
4891
4916
|
}),
|
|
4892
4917
|
(_a2 = item == null ? void 0 : item.title) != null ? _a2 : index
|
|
4893
4918
|
);
|
|
4894
4919
|
})
|
|
4895
4920
|
}
|
|
4896
4921
|
),
|
|
4897
|
-
(!isVariantHome || isVariantHome && !isBelowTablet) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
4922
|
+
(!isVariantHome || isVariantHome && !isBelowTablet) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx49__default.default("content-wrapper", FeaturedNewsHighlights_module_default["content-wrapper"]), children: [
|
|
4898
4923
|
featuredCard && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4899
4924
|
NewsCard,
|
|
4900
4925
|
__spreadProps(__spreadValues({}, featuredCard), {
|
|
4901
|
-
className:
|
|
4926
|
+
className: clsx49__default.default("featured-card", FeaturedNewsHighlights_module_default["featured-card"]),
|
|
4902
4927
|
renderLink
|
|
4903
4928
|
})
|
|
4904
4929
|
),
|
|
4905
|
-
sideCards && sideCards.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
4930
|
+
sideCards && sideCards.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx49__default.default("side-content", FeaturedNewsHighlights_module_default["side-content"]), children: sideCards.map((card, index) => {
|
|
4906
4931
|
var _a2;
|
|
4907
4932
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4908
4933
|
NewsCard,
|
|
4909
4934
|
__spreadProps(__spreadValues({}, card), {
|
|
4910
|
-
className:
|
|
4935
|
+
className: clsx49__default.default("side-cards", FeaturedNewsHighlights_module_default["side-cards"]),
|
|
4911
4936
|
direction: "horizontal",
|
|
4912
4937
|
renderLink
|
|
4913
4938
|
}),
|
|
@@ -4919,11 +4944,11 @@ var FeaturedNewsHighlights = ({
|
|
|
4919
4944
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4920
4945
|
"div",
|
|
4921
4946
|
{
|
|
4922
|
-
className:
|
|
4947
|
+
className: clsx49__default.default("featured-news-higlights", FeaturedNewsHighlights_module_default["featured-news-higlights"], className),
|
|
4923
4948
|
style: {
|
|
4924
4949
|
backgroundColor
|
|
4925
4950
|
},
|
|
4926
|
-
children: hasContainer ? /* @__PURE__ */ jsxRuntime.jsx(Container, { className:
|
|
4951
|
+
children: hasContainer ? /* @__PURE__ */ jsxRuntime.jsx(Container, { className: clsx49__default.default("container", FeaturedNewsHighlights_module_default["container"]), children: content }) : content
|
|
4927
4952
|
}
|
|
4928
4953
|
);
|
|
4929
4954
|
};
|
|
@@ -4967,23 +4992,23 @@ var NewsCardList = ({
|
|
|
4967
4992
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4968
4993
|
"div",
|
|
4969
4994
|
{
|
|
4970
|
-
className:
|
|
4995
|
+
className: clsx49__default.default("news-card-list", NewsCardList_module_default["news-card-list"], className),
|
|
4971
4996
|
style: {
|
|
4972
4997
|
backgroundColor
|
|
4973
4998
|
},
|
|
4974
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className:
|
|
4975
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
4999
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: clsx49__default.default("container", NewsCardList_module_default["container"]), children: [
|
|
5000
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx49__default.default("wrapper", NewsCardList_module_default["wrapper"]), children: [
|
|
4976
5001
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4977
5002
|
Input,
|
|
4978
5003
|
__spreadValues({
|
|
4979
|
-
className:
|
|
5004
|
+
className: clsx49__default.default("search-input", NewsCardList_module_default["search-input"]),
|
|
4980
5005
|
startAdornment: /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "search" }),
|
|
4981
5006
|
placeholder: "Search News",
|
|
4982
5007
|
endAction: searchValue ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
4983
5008
|
Button,
|
|
4984
5009
|
{
|
|
4985
5010
|
variant: "nofillblack",
|
|
4986
|
-
className:
|
|
5011
|
+
className: clsx49__default.default(NewsCardList_module_default["end-action-button"]),
|
|
4987
5012
|
"aria-label": "Search",
|
|
4988
5013
|
onClick: onSearchSubmit ? () => onSearchSubmit(searchValue || "") : void 0,
|
|
4989
5014
|
children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "rightBlack" })
|
|
@@ -4995,7 +5020,7 @@ var NewsCardList = ({
|
|
|
4995
5020
|
} : void 0
|
|
4996
5021
|
}, searchInputProps)
|
|
4997
5022
|
),
|
|
4998
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
5023
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx49__default.default("card-wrapper", NewsCardList_module_default["card-wrapper"]), children: [
|
|
4999
5024
|
currentPage === 1 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5000
5025
|
FeaturedNewsHighlights2,
|
|
5001
5026
|
{
|
|
@@ -5008,8 +5033,8 @@ var NewsCardList = ({
|
|
|
5008
5033
|
/* @__PURE__ */ jsxRuntime.jsx(BlogCardGrid2, { items: cards, hasContainer: false, renderLink })
|
|
5009
5034
|
] })
|
|
5010
5035
|
] }),
|
|
5011
|
-
paginationNode ?
|
|
5012
|
-
className:
|
|
5036
|
+
paginationNode ? React71__default.default.cloneElement(paginationNode, {
|
|
5037
|
+
className: clsx49__default.default("pagination", NewsCardList_module_default["pagination"])
|
|
5013
5038
|
}) : null
|
|
5014
5039
|
] })
|
|
5015
5040
|
}
|
|
@@ -5054,15 +5079,15 @@ var BlogPost = ({
|
|
|
5054
5079
|
});
|
|
5055
5080
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
5056
5081
|
const bodyNode = (_b = slots.body) != null ? _b : body;
|
|
5057
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
5058
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
5082
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx49__default.default("blog-post", BlogPost_module_default["blog-post"], className), children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: clsx49__default.default("container", BlogPost_module_default["container"]), children: [
|
|
5083
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx49__default.default("header", BlogPost_module_default["header"]), children: [
|
|
5059
5084
|
titleNode && typeof titleNode === "string" ? /* @__PURE__ */ jsxRuntime.jsx(Text, { tag: "h1", children: titleNode }) : titleNode,
|
|
5060
|
-
image && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadProps(__spreadValues({}, image), { className:
|
|
5085
|
+
image && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadProps(__spreadValues({}, image), { className: clsx49__default.default("image", BlogPost_module_default["image"]) }))
|
|
5061
5086
|
] }),
|
|
5062
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
5063
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
5087
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx49__default.default("content", BlogPost_module_default["content"]), children: [
|
|
5088
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx49__default.default("content-top", BlogPost_module_default["content-top"]), children: [
|
|
5064
5089
|
/* @__PURE__ */ jsxRuntime.jsx(Badge, { size: "sm", children: tag }),
|
|
5065
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className:
|
|
5090
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: clsx49__default.default("content-date", BlogPost_module_default["content-date"]), children: [
|
|
5066
5091
|
"Published ",
|
|
5067
5092
|
/* @__PURE__ */ jsxRuntime.jsx("time", { dateTime: date.value, children: date.label })
|
|
5068
5093
|
] })
|
|
@@ -5075,7 +5100,7 @@ var BlogPost = ({
|
|
|
5075
5100
|
title: "More News",
|
|
5076
5101
|
items: relatedArticles,
|
|
5077
5102
|
hasContainer: false,
|
|
5078
|
-
className:
|
|
5103
|
+
className: clsx49__default.default("related-articles", BlogPost_module_default["related-articles"])
|
|
5079
5104
|
}
|
|
5080
5105
|
)
|
|
5081
5106
|
] }) });
|
|
@@ -5123,22 +5148,22 @@ var BlogSearchResultsList = ({
|
|
|
5123
5148
|
});
|
|
5124
5149
|
const searchNode = (_a = slots.search) != null ? _a : searchResult;
|
|
5125
5150
|
const paginationNode = slots.pagination;
|
|
5126
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
5127
|
-
typeof searchNode === "string" ? /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
5128
|
-
className:
|
|
5151
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx49__default.default("search-results-list", BlogSearchResultsList_module_default["search-results-list"], className), children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: clsx49__default.default("container", BlogSearchResultsList_module_default["container"]), children: [
|
|
5152
|
+
typeof searchNode === "string" ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: clsx49__default.default("search-result", BlogSearchResultsList_module_default["search-result"]), children: searchNode }) : React71__default.default.isValidElement(searchNode) ? React71__default.default.cloneElement(searchNode, {
|
|
5153
|
+
className: clsx49__default.default("search-result", BlogSearchResultsList_module_default["search-result"])
|
|
5129
5154
|
}) : null,
|
|
5130
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
5155
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx49__default.default("wrapper", BlogSearchResultsList_module_default["wrapper"]), children: [
|
|
5131
5156
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5132
5157
|
Input,
|
|
5133
5158
|
__spreadValues({
|
|
5134
|
-
className:
|
|
5159
|
+
className: clsx49__default.default("search-input", BlogSearchResultsList_module_default["search-input"]),
|
|
5135
5160
|
startAdornment: /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "search" }),
|
|
5136
5161
|
placeholder: "Search News",
|
|
5137
5162
|
endAction: searchValue ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
5138
5163
|
Button,
|
|
5139
5164
|
{
|
|
5140
5165
|
variant: "nofillblack",
|
|
5141
|
-
className:
|
|
5166
|
+
className: clsx49__default.default(BlogSearchResultsList_module_default["end-action-button"]),
|
|
5142
5167
|
"aria-label": "Search",
|
|
5143
5168
|
onClick: () => onSearchSubmit(searchValue),
|
|
5144
5169
|
children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "rightBlack" })
|
|
@@ -5152,8 +5177,8 @@ var BlogSearchResultsList = ({
|
|
|
5152
5177
|
),
|
|
5153
5178
|
/* @__PURE__ */ jsxRuntime.jsx(BlogCardGrid2, { items, hasContainer: false, renderLink })
|
|
5154
5179
|
] }),
|
|
5155
|
-
paginationNode ?
|
|
5156
|
-
className:
|
|
5180
|
+
paginationNode ? React71__default.default.cloneElement(paginationNode, {
|
|
5181
|
+
className: clsx49__default.default("pagination", BlogSearchResultsList_module_default["pagination"])
|
|
5157
5182
|
}) : null
|
|
5158
5183
|
] }) });
|
|
5159
5184
|
};
|
|
@@ -5194,11 +5219,11 @@ var GlobalSearchResultsList = ({
|
|
|
5194
5219
|
});
|
|
5195
5220
|
const searchNode = (_a = slots.search) != null ? _a : searchResult;
|
|
5196
5221
|
const paginationNode = slots.pagination;
|
|
5197
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
5198
|
-
typeof searchNode === "string" ? /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
5199
|
-
className:
|
|
5222
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx49__default.default("search-results-list", GlobalSearchResultsList_module_default["search-results-list"], className), children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: clsx49__default.default("container", GlobalSearchResultsList_module_default["container"]), children: [
|
|
5223
|
+
typeof searchNode === "string" ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: clsx49__default.default("search-result", GlobalSearchResultsList_module_default["search-result"]), children: searchNode }) : React71__default.default.isValidElement(searchNode) ? React71__default.default.cloneElement(searchNode, {
|
|
5224
|
+
className: clsx49__default.default("search-result", GlobalSearchResultsList_module_default["search-result"])
|
|
5200
5225
|
}) : null,
|
|
5201
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
5226
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx49__default.default("wrapper", GlobalSearchResultsList_module_default["wrapper"]), children: /* @__PURE__ */ jsxRuntime.jsx(Grid, { role: "list", columns: 3, children: items.map((item, index) => {
|
|
5202
5227
|
var _a2;
|
|
5203
5228
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5204
5229
|
GridItem,
|
|
@@ -5218,8 +5243,8 @@ var GlobalSearchResultsList = ({
|
|
|
5218
5243
|
item.title ? `${item.title}-${(_a2 = item == null ? void 0 : item.id) != null ? _a2 : index}` : index
|
|
5219
5244
|
);
|
|
5220
5245
|
}) }) }),
|
|
5221
|
-
paginationNode ?
|
|
5222
|
-
className:
|
|
5246
|
+
paginationNode ? React71__default.default.cloneElement(paginationNode, {
|
|
5247
|
+
className: clsx49__default.default("pagination", GlobalSearchResultsList_module_default["pagination"])
|
|
5223
5248
|
}) : null
|
|
5224
5249
|
] }) });
|
|
5225
5250
|
};
|
|
@@ -5257,10 +5282,10 @@ var TextCenterWithMedia = ({
|
|
|
5257
5282
|
children
|
|
5258
5283
|
}) => {
|
|
5259
5284
|
var _a;
|
|
5260
|
-
const [isOpen, setIsOpen] =
|
|
5261
|
-
const dialogRef =
|
|
5262
|
-
const videoRef =
|
|
5263
|
-
|
|
5285
|
+
const [isOpen, setIsOpen] = React71.useState(false);
|
|
5286
|
+
const dialogRef = React71.useRef(null);
|
|
5287
|
+
const videoRef = React71.useRef(null);
|
|
5288
|
+
React71.useEffect(() => {
|
|
5264
5289
|
var _a2, _b;
|
|
5265
5290
|
if (isOpen) {
|
|
5266
5291
|
(_a2 = dialogRef.current) == null ? void 0 : _a2.showModal();
|
|
@@ -5277,7 +5302,7 @@ var TextCenterWithMedia = ({
|
|
|
5277
5302
|
};
|
|
5278
5303
|
const slots = resolveCompoundSlots(children, { title: TextCenterWithMediaTitle });
|
|
5279
5304
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
5280
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("section", { className:
|
|
5305
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: clsx49__default.default(TextCenterWithMedia_module_default.textCenterWithMedia, className), children: [
|
|
5281
5306
|
/* @__PURE__ */ jsxRuntime.jsxs(Container, { children: [
|
|
5282
5307
|
titleNode && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "h2", children: titleNode }),
|
|
5283
5308
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: TextCenterWithMedia_module_default.thumbnailWrapper, children: thumbnail && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
@@ -5337,10 +5362,10 @@ var QuoteSectionBlock_module_default = {
|
|
|
5337
5362
|
var QuoteSectionBlock = ({ className, title, items = [] }) => {
|
|
5338
5363
|
const { is } = useViewPort_default();
|
|
5339
5364
|
const isMobile = is("tablet", "below");
|
|
5340
|
-
const [swiperInstance, setSwiperInstance] =
|
|
5341
|
-
const [activeIndex, setActiveIndex] =
|
|
5365
|
+
const [swiperInstance, setSwiperInstance] = React71.useState(null);
|
|
5366
|
+
const [activeIndex, setActiveIndex] = React71.useState(0);
|
|
5342
5367
|
if (!items.length) return null;
|
|
5343
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
5368
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx49__default.default(QuoteSectionBlock_module_default.quoteSectionBlock, className), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: QuoteSectionBlock_module_default.inner, children: [
|
|
5344
5369
|
title && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: QuoteSectionBlock_module_default.title, children: title }),
|
|
5345
5370
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: QuoteSectionBlock_module_default.swiperContainer, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5346
5371
|
react$1.Swiper,
|
|
@@ -5399,12 +5424,12 @@ var PageLoader = ({ className, children }) => {
|
|
|
5399
5424
|
logo: PageLoaderLogo
|
|
5400
5425
|
});
|
|
5401
5426
|
const logoNode = slots.logo;
|
|
5402
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Container, { className:
|
|
5403
|
-
logoNode ?
|
|
5404
|
-
className:
|
|
5427
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Container, { className: clsx49__default.default(PageLoader_module_default["container"], className), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx49__default.default("wrapper", PageLoader_module_default["wrapper"]), children: [
|
|
5428
|
+
logoNode ? React71__default.default.cloneElement(logoNode, {
|
|
5429
|
+
className: clsx49__default.default("image-logo", PageLoader_module_default["image-logo"])
|
|
5405
5430
|
}) : null,
|
|
5406
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
5407
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
5431
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx49__default.default("loader-wrapper", PageLoader_module_default["loader-wrapper"]), children: /* @__PURE__ */ jsxRuntime.jsx(Loader, {}) }),
|
|
5432
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: clsx49__default.default("loader-text", PageLoader_module_default["loader-text"]), children: "Loading..." })
|
|
5408
5433
|
] }) });
|
|
5409
5434
|
};
|
|
5410
5435
|
|
|
@@ -5412,17 +5437,41 @@ var PageLoader = ({ className, children }) => {
|
|
|
5412
5437
|
var PageLoader2 = Object.assign(PageLoader, {
|
|
5413
5438
|
Logo: PageLoaderLogo
|
|
5414
5439
|
});
|
|
5440
|
+
|
|
5441
|
+
// src/widgets/TwoColTextMenu/TwoColTextMenu.module.scss
|
|
5442
|
+
var TwoColTextMenu_module_default = {
|
|
5443
|
+
"two-col-text-menu": "TwoColTextMenu_module_two-col-text-menu",
|
|
5444
|
+
container: "TwoColTextMenu_module_container",
|
|
5445
|
+
grid: "TwoColTextMenu_module_grid",
|
|
5446
|
+
section: "TwoColTextMenu_module_section",
|
|
5447
|
+
heading: "TwoColTextMenu_module_heading",
|
|
5448
|
+
title: "TwoColTextMenu_module_title",
|
|
5449
|
+
list: "TwoColTextMenu_module_list"
|
|
5450
|
+
};
|
|
5451
|
+
var TwoColTextMenu = ({
|
|
5452
|
+
className,
|
|
5453
|
+
ariaLabel = "TwoColTextMenu",
|
|
5454
|
+
sections = [],
|
|
5455
|
+
renderLink
|
|
5456
|
+
}) => {
|
|
5457
|
+
if (sections.length === 0) return null;
|
|
5458
|
+
return /* @__PURE__ */ jsxRuntime.jsx("nav", { "aria-label": ariaLabel, className: clsx49__default.default(TwoColTextMenu_module_default["two-col-text-menu"], className), children: /* @__PURE__ */ jsxRuntime.jsx(Container, { className: TwoColTextMenu_module_default.container, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: TwoColTextMenu_module_default.grid, children: sections.map((section, index) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: TwoColTextMenu_module_default.section, children: [
|
|
5459
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: TwoColTextMenu_module_default.heading, children: /* @__PURE__ */ jsxRuntime.jsx("h2", { className: clsx49__default.default("h4", TwoColTextMenu_module_default.title), children: section.title }) }),
|
|
5460
|
+
/* @__PURE__ */ jsxRuntime.jsx("ul", { className: TwoColTextMenu_module_default.list, children: section.items.map((item, itemIndex) => /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx(ColTextMenu, __spreadProps(__spreadValues({}, item), { renderLink })) }, itemIndex)) })
|
|
5461
|
+
] }, index)) }) }) });
|
|
5462
|
+
};
|
|
5463
|
+
TwoColTextMenu.displayName = "TwoColTextMenu";
|
|
5415
5464
|
function useIntersectionObserver({
|
|
5416
5465
|
animateOnce = false,
|
|
5417
5466
|
options = {}
|
|
5418
5467
|
} = {}) {
|
|
5419
|
-
const observeRef =
|
|
5420
|
-
const [isVisible, setIsVisible] =
|
|
5468
|
+
const observeRef = React71.useRef(null);
|
|
5469
|
+
const [isVisible, setIsVisible] = React71.useState(false);
|
|
5421
5470
|
if (typeof IntersectionObserver === "undefined") {
|
|
5422
5471
|
console.warn("IntersectionObserver is not supported in this browser.");
|
|
5423
5472
|
return { observeRef, isVisible: true };
|
|
5424
5473
|
}
|
|
5425
|
-
|
|
5474
|
+
React71.useEffect(() => {
|
|
5426
5475
|
const currentRef = observeRef.current;
|
|
5427
5476
|
if (!currentRef) return;
|
|
5428
5477
|
const observer = new IntersectionObserver((entries) => {
|
|
@@ -5451,6 +5500,7 @@ exports.BrandsStrip = BrandsStrip;
|
|
|
5451
5500
|
exports.Button = Button;
|
|
5452
5501
|
exports.Card = Card2;
|
|
5453
5502
|
exports.CardCollection = CardCollection2;
|
|
5503
|
+
exports.ColTextMenu = ColTextMenu;
|
|
5454
5504
|
exports.ConditionalWrapper = ConditionalWrapper;
|
|
5455
5505
|
exports.ContactModule = ContactModule2;
|
|
5456
5506
|
exports.Container = Container;
|
|
@@ -5488,6 +5538,7 @@ exports.TextBody = TextBody2;
|
|
|
5488
5538
|
exports.TextCenterCtaInBottom = TextCenterCtaInBottom2;
|
|
5489
5539
|
exports.TextCenterWithMedia = TextCenterWithMedia2;
|
|
5490
5540
|
exports.TextEvent = TextEvent2;
|
|
5541
|
+
exports.TwoColTextMenu = TwoColTextMenu;
|
|
5491
5542
|
exports.UpcomingEventCard = UpcomingEventCard;
|
|
5492
5543
|
exports.UserMenu = UserMenu;
|
|
5493
5544
|
exports.resolveCompoundSlots = resolveCompoundSlots;
|