@digital-b2c/coreui-kit 0.7.5 → 0.8.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 +822 -108
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1861 -851
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +63 -2
- package/dist/index.d.ts +63 -2
- package/dist/index.mjs +793 -81
- package/dist/index.mjs.map +1 -1
- package/dist/types/global.d.ts +25 -25
- package/package.json +100 -100
package/dist/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var clsx22 = require('clsx');
|
|
4
4
|
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
-
var
|
|
5
|
+
var React62 = require('react');
|
|
6
6
|
var gsap = require('gsap');
|
|
7
7
|
var react = require('@gsap/react');
|
|
8
8
|
var ScrollTrigger = require('gsap/ScrollTrigger');
|
|
@@ -12,8 +12,8 @@ require('swiper/css');
|
|
|
12
12
|
|
|
13
13
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
14
|
|
|
15
|
-
var
|
|
16
|
-
var
|
|
15
|
+
var clsx22__default = /*#__PURE__*/_interopDefault(clsx22);
|
|
16
|
+
var React62__default = /*#__PURE__*/_interopDefault(React62);
|
|
17
17
|
var gsap__default = /*#__PURE__*/_interopDefault(gsap);
|
|
18
18
|
|
|
19
19
|
var __defProp = Object.defineProperty;
|
|
@@ -66,7 +66,7 @@ var Picture = (_a) => {
|
|
|
66
66
|
__spreadValues({
|
|
67
67
|
src: desktop.src,
|
|
68
68
|
alt: desktop.alt,
|
|
69
|
-
className:
|
|
69
|
+
className: clsx22__default.default(className, Picture_module_default["image-desktop"])
|
|
70
70
|
}, rest)
|
|
71
71
|
),
|
|
72
72
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -74,7 +74,7 @@ var Picture = (_a) => {
|
|
|
74
74
|
__spreadValues({
|
|
75
75
|
src: (_b2 = mobile == null ? void 0 : mobile.src) != null ? _b2 : desktop.src,
|
|
76
76
|
alt: (_c = mobile == null ? void 0 : mobile.alt) != null ? _c : desktop.alt,
|
|
77
|
-
className:
|
|
77
|
+
className: clsx22__default.default(className, Picture_module_default["image-mobile"])
|
|
78
78
|
}, rest)
|
|
79
79
|
)
|
|
80
80
|
] });
|
|
@@ -201,6 +201,8 @@ var SvgIconFilledChevronRight = (props) => /* @__PURE__ */ jsxRuntime.jsx("svg",
|
|
|
201
201
|
var icon_filled_chevron_right_default = SvgIconFilledChevronRight;
|
|
202
202
|
var SvgIconFilledChevronUp = (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", __spreadProps(__spreadValues({ width: 38, height: 38, viewBox: "0 0 38 38", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props), { children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M19 13.9267L12.1629 20.7642L13.6787 22.2379L19 16.9162L24.3213 22.2379L25.8371 20.7642L19 13.9267ZM18.9971 3C21.1986 3 23.2712 3.41993 25.2147 4.25979C27.1583 5.09965 28.855 6.24407 30.3048 7.69305C31.7544 9.14232 32.8994 10.8383 33.7398 12.7811C34.5799 14.7238 35 16.7958 35 18.9971C35 21.2101 34.5801 23.2902 33.7402 25.2375C32.9004 27.1847 31.7559 28.8785 30.3069 30.3187C28.8577 31.759 27.1617 32.8994 25.2189 33.7398C23.2762 34.5799 21.2042 35 19.0029 35C16.7899 35 14.7098 34.5801 12.7625 33.7402C10.8153 32.9004 9.12154 31.7606 7.68126 30.3208C6.24098 28.8811 5.10063 27.1881 4.26021 25.2417C3.42007 23.2953 3 21.2157 3 19.0029C3 16.8014 3.41993 14.7288 4.25979 12.7853C5.09965 10.8417 6.23944 9.14498 7.67916 7.69516C9.11888 6.24562 10.8119 5.10063 12.7583 4.26021C14.7047 3.42007 16.7843 3 18.9971 3Z", fill: "white" }) }));
|
|
203
203
|
var icon_filled_chevron_up_default = SvgIconFilledChevronUp;
|
|
204
|
+
var SvgIconFilledChevronUpBlack = (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", __spreadProps(__spreadValues({ width: 32, height: 32, viewBox: "-4 -4 40 40", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props), { children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M16 10.9267L9.16295 17.7642L10.6787 19.2379L16 13.9162L21.3213 19.2379L22.8371 17.7642L16 10.9267ZM15.9971 0C18.1986 0 20.2712 0.419928 22.2147 1.25979C24.1583 2.09965 25.855 3.24407 27.3048 4.69305C28.7544 6.14232 29.8994 7.83831 30.7398 9.78105C31.5799 11.7238 32 13.7958 32 15.9971C32 18.2101 31.5801 20.2902 30.7402 22.2375C29.9004 24.1847 28.7559 25.8785 27.3069 27.3187C25.8577 28.759 24.1617 29.8994 22.2189 30.7398C20.2762 31.5799 18.2042 32 16.0029 32C13.7899 32 11.7098 31.5801 9.76253 30.7402C7.8153 29.9004 6.12154 28.7606 4.68126 27.3208C3.24098 25.8811 2.10063 24.1881 1.26021 22.2417C0.420071 20.2953 0 18.2157 0 16.0029C0 13.8014 0.419928 11.7288 1.25979 9.78526C2.09965 7.84168 3.23944 6.14498 4.67916 4.69516C6.11888 3.24562 7.81193 2.10063 9.75832 1.26021C11.7047 0.420071 13.7843 0 15.9971 0Z", fill: "#080808" }) }));
|
|
205
|
+
var icon_filled_chevron_up_black_default = SvgIconFilledChevronUpBlack;
|
|
204
206
|
var SvgIconLeftWhite = (props) => /* @__PURE__ */ jsxRuntime.jsxs("svg", __spreadProps(__spreadValues({ width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props), { children: [
|
|
205
207
|
/* @__PURE__ */ jsxRuntime.jsx("mask", { id: "mask0_2379_35929", style: {
|
|
206
208
|
maskType: "alpha"
|
|
@@ -234,7 +236,12 @@ var SvgIconTiltedRightBlack = (props) => /* @__PURE__ */ jsxRuntime.jsxs("svg",
|
|
|
234
236
|
/* @__PURE__ */ jsxRuntime.jsx("g", { mask: "url(#mask0_901_1704)", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M17.656 14.8283L15.6407 14.7929V9.77246L7.04936 18.3638L5.63514 16.9496L14.2265 8.35825L9.20603 8.35825L9.17068 6.34299H17.656V14.8283Z", fill: "#080808" }) })
|
|
235
237
|
] }));
|
|
236
238
|
var icon_tilted_right_black_default = SvgIconTiltedRightBlack;
|
|
237
|
-
var SvgIconTiltedRightWhite = (props) => /* @__PURE__ */ jsxRuntime.
|
|
239
|
+
var SvgIconTiltedRightWhite = (props) => /* @__PURE__ */ jsxRuntime.jsxs("svg", __spreadProps(__spreadValues({ width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props), { children: [
|
|
240
|
+
/* @__PURE__ */ jsxRuntime.jsx("mask", { id: "mask0_901_1706", style: {
|
|
241
|
+
maskType: "alpha"
|
|
242
|
+
}, maskUnits: "userSpaceOnUse", x: 0, y: 0, width: 24, height: 24, children: /* @__PURE__ */ jsxRuntime.jsx("rect", { width: 24, height: 24, fill: "#D9D9D9" }) }),
|
|
243
|
+
/* @__PURE__ */ jsxRuntime.jsx("g", { mask: "url(#mask0_901_1706)", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M17.656 14.8283L15.6407 14.7929V9.77246L7.04936 18.3638L5.63514 16.9496L14.2265 8.35825L9.20603 8.35825L9.17068 6.34299H17.656V14.8283Z", fill: "white" }) })
|
|
244
|
+
] }));
|
|
238
245
|
var icon_tilted_right_white_default = SvgIconTiltedRightWhite;
|
|
239
246
|
var SvgIconUpChevronUpWhite = (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: "M6 15L12 9L18 15", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }) }));
|
|
240
247
|
var icon_up_chevron_up_white_default = SvgIconUpChevronUpWhite;
|
|
@@ -280,6 +287,30 @@ var SvgIconXWhite = (props) => /* @__PURE__ */ jsxRuntime.jsxs("svg", __spreadPr
|
|
|
280
287
|
/* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsx("clipPath", { id: "clip0_942_1878", children: /* @__PURE__ */ jsxRuntime.jsx("rect", { width: 24, height: 24, fill: "white" }) }) })
|
|
281
288
|
] }));
|
|
282
289
|
var icon_x_white_default = SvgIconXWhite;
|
|
290
|
+
var SvgIconFilter = (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: "M10.9991 20C10.7158 20 10.4783 19.9042 10.2866 19.7125C10.0949 19.5208 9.9991 19.2833 9.9991 19V13L4.1991 5.6C3.9491 5.26667 3.9116 4.91667 4.0866 4.55C4.2616 4.18333 4.56577 4 4.9991 4H18.9991C19.4324 4 19.7366 4.18333 19.9116 4.55C20.0866 4.91667 20.0491 5.26667 19.7991 5.6L13.9991 13V19C13.9991 19.2833 13.9033 19.5208 13.7116 19.7125C13.5199 19.9042 13.2824 20 12.9991 20H10.9991Z", fill: "#080808" }) }));
|
|
291
|
+
var icon_filter_default = SvgIconFilter;
|
|
292
|
+
var SvgIconInternalFilter = (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: "M3 18V16H9V18H3ZM3 13V11H15V13H3ZM3 8V6H21V8H3Z", fill: "#080808" }) }));
|
|
293
|
+
var icon_internal_filter_default = SvgIconInternalFilter;
|
|
294
|
+
var SvgIconSearch = (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: "M19.9 20.9746L13.325 14.3996C12.825 14.8329 12.242 15.1704 11.576 15.4121C10.91 15.6538 10.2013 15.7746 9.45 15.7746C7.64733 15.7746 6.12167 15.1496 4.873 13.8996C3.62433 12.6496 3 11.1413 3 9.37461C3 7.60794 3.625 6.09961 4.875 4.84961C6.125 3.59961 7.6375 2.97461 9.4125 2.97461C11.1875 2.97461 12.6958 3.59961 13.9375 4.84961C15.1792 6.09961 15.8 7.60919 15.8 9.37836C15.8 10.0925 15.6833 10.7829 15.45 11.4496C15.2167 12.1163 14.8667 12.7413 14.4 13.3246L21 19.8746L19.9 20.9746ZM9.425 14.2746C10.7792 14.2746 11.9303 13.7954 12.8783 12.8371C13.8261 11.8788 14.3 10.7246 14.3 9.37461C14.3 8.02461 13.8261 6.87044 12.8783 5.91211C11.9303 4.95378 10.7792 4.47461 9.425 4.47461C8.057 4.47461 6.89417 4.95378 5.9365 5.91211C4.97883 6.87044 4.5 8.02461 4.5 9.37461C4.5 10.7246 4.97883 11.8788 5.9365 12.8371C6.89417 13.7954 8.057 14.2746 9.425 14.2746Z", fill: "#080808" }) }));
|
|
295
|
+
var icon_search_default = SvgIconSearch;
|
|
296
|
+
var SvgIconGrid = (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: "M5 21C4.45 21 3.97917 20.8042 3.5875 20.4125C3.19583 20.0208 3 19.55 3 19V5C3 4.45 3.19583 3.97917 3.5875 3.5875C3.97917 3.19583 4.45 3 5 3H19C19.55 3 20.0208 3.19583 20.4125 3.5875C20.8042 3.97917 21 4.45 21 5V19C21 19.55 20.8042 20.0208 20.4125 20.4125C20.0208 20.8042 19.55 21 19 21H5ZM5 19H8.325V15.675H5V19ZM10.325 19H13.675V15.675H10.325V19ZM15.675 19H19V15.675H15.675V19ZM5 13.675H8.325V10.325H5V13.675ZM10.325 13.675H13.675V10.325H10.325V13.675ZM15.675 13.675H19V10.325H15.675V13.675ZM5 8.325H8.325V5H5V8.325ZM10.325 8.325H13.675V5H10.325V8.325ZM15.675 8.325H19V5H15.675V8.325Z", fill: "#080808" }) }));
|
|
297
|
+
var icon_grid_default = SvgIconGrid;
|
|
298
|
+
var SvgIconList = (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", __spreadProps(__spreadValues({ width: 18, height: 18, viewBox: "0 -4 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props), { children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M4 2V0H18V2H4ZM4 6V4H18V6H4ZM4 10V8H18V10H4ZM1 2C0.716667 2 0.479167 1.90417 0.2875 1.7125C0.0958333 1.52083 0 1.28333 0 1C0 0.716667 0.0958333 0.479167 0.2875 0.2875C0.479167 0.0958333 0.716667 0 1 0C1.28333 0 1.52083 0.0958333 1.7125 0.2875C1.90417 0.479167 2 0.716667 2 1C2 1.28333 1.90417 1.52083 1.7125 1.7125C1.52083 1.90417 1.28333 2 1 2ZM1 6C0.716667 6 0.479167 5.90417 0.2875 5.7125C0.0958333 5.52083 0 5.28333 0 5C0 4.71667 0.0958333 4.47917 0.2875 4.2875C0.479167 4.09583 0.716667 4 1 4C1.28333 4 1.52083 4.09583 1.7125 4.2875C1.90417 4.47917 2 4.71667 2 5C2 5.28333 1.90417 5.52083 1.7125 5.7125C1.52083 5.90417 1.28333 6 1 6ZM1 10C0.716667 10 0.479167 9.90417 0.2875 9.7125C0.0958333 9.52083 0 9.28333 0 9C0 8.71667 0.0958333 8.47917 0.2875 8.2875C0.479167 8.09583 0.716667 8 1 8C1.28333 8 1.52083 8.09583 1.7125 8.2875C1.90417 8.47917 2 8.71667 2 9C2 9.28333 1.90417 9.52083 1.7125 9.7125C1.52083 9.90417 1.28333 10 1 10Z", fill: "#080808" }) }));
|
|
299
|
+
var icon_list_default = SvgIconList;
|
|
300
|
+
var SvgIconChevronLeftBlack = (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: "M17.5186 22.8324L25.0399 30.3532L26.6609 28.6858L20.8071 22.8324L26.6609 16.979L25.0399 15.3117L17.5186 22.8324ZM5.49922 22.8357C5.49922 20.414 5.96114 18.1341 6.88499 15.9962C7.80883 13.8583 9.0677 11.9919 10.6616 10.3971C12.2558 8.8026 14.1214 7.54312 16.2584 6.61865C18.3954 5.6945 20.6746 5.23242 23.096 5.23242C25.5303 5.23242 27.8185 5.69434 29.9604 6.61819C32.1024 7.54204 33.9655 8.8009 35.5498 10.3948C37.1341 11.989 38.3885 13.8546 39.313 15.9916C40.2371 18.1286 40.6992 20.4078 40.6992 22.8292C40.6992 25.2635 40.2373 27.5517 39.3135 29.6936C38.3896 31.8356 37.1358 33.6987 35.5521 35.283C33.9685 36.8673 32.1061 38.1217 29.9651 39.0462C27.824 39.9703 25.5365 40.4324 23.1025 40.4324C20.6808 40.4324 18.4009 39.9705 16.263 39.0467C14.1251 38.1228 12.2587 36.869 10.6639 35.2853C9.0694 33.7017 7.80991 31.8393 6.88545 29.6983C5.9613 27.5573 5.49922 25.2697 5.49922 22.8357Z", fill: "#080808" }) }));
|
|
301
|
+
var icon_chevron_left_black_default = SvgIconChevronLeftBlack;
|
|
302
|
+
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" }) }));
|
|
303
|
+
var icon_chevron_right_black_default = SvgIconChevronRightBlack;
|
|
304
|
+
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: [
|
|
305
|
+
/* @__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" }) }),
|
|
306
|
+
/* @__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" }) }) })
|
|
307
|
+
] }));
|
|
308
|
+
var icon_pdf_default = SvgIconPdf;
|
|
309
|
+
var SvgIconExternalLink = (props) => /* @__PURE__ */ jsxRuntime.jsxs("svg", __spreadProps(__spreadValues({ width: 33, height: 33, viewBox: "0 0 33 33", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props), { children: [
|
|
310
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M13.5215 17.8754C14.1612 18.6649 14.9773 19.3181 15.9146 19.7907C16.8518 20.2634 17.8882 20.5445 18.9535 20.6149C20.0187 20.6853 21.088 20.5434 22.0886 20.1989C23.0892 19.8543 23.9979 19.3152 24.7529 18.6179L29.2217 14.4929C30.5784 13.1963 31.3291 11.4597 31.3121 9.65706C31.2952 7.85445 30.5119 6.13012 29.131 4.85544C27.7501 3.58076 25.882 2.85772 23.9292 2.84206C21.9764 2.82639 20.095 3.51935 18.6903 4.77169L16.1283 7.12294", stroke: "#949494", strokeWidth: 2.5, strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
311
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M19.4784 15.1242C18.8387 14.3348 18.0226 13.6816 17.0853 13.2089C16.1481 12.7363 15.1117 12.4552 14.0464 12.3848C12.9812 12.3143 11.912 12.4562 10.9113 12.8008C9.91068 13.1453 9.00202 13.6845 8.24697 14.3817L3.77822 18.5067C2.42152 19.8034 1.67081 21.54 1.68778 23.3426C1.70475 25.1452 2.48804 26.8695 3.86894 28.1442C5.24985 29.4189 7.11788 30.1419 9.0707 30.1576C11.0235 30.1733 12.9049 29.4803 14.3096 28.228L16.8568 25.8767", stroke: "#949494", strokeWidth: 2.5, strokeLinecap: "round", strokeLinejoin: "round" })
|
|
312
|
+
] }));
|
|
313
|
+
var icon_external_link_default = SvgIconExternalLink;
|
|
283
314
|
var svgs = {
|
|
284
315
|
/* Card */
|
|
285
316
|
ads: icon_ads_default,
|
|
@@ -300,6 +331,8 @@ var svgs = {
|
|
|
300
331
|
tech: icon_tech_default,
|
|
301
332
|
work: icon_work_default,
|
|
302
333
|
workhome: icon_workhome_default,
|
|
334
|
+
pdf: icon_pdf_default,
|
|
335
|
+
externalLink: icon_external_link_default,
|
|
303
336
|
/* Button */
|
|
304
337
|
blankCheckbox: icon_blank_checkbox_default,
|
|
305
338
|
blankCheckboxWhite: icon_blank_checkbox_white_default,
|
|
@@ -315,6 +348,7 @@ var svgs = {
|
|
|
315
348
|
filledChevronLeft: icon_filled_chevron_left_default,
|
|
316
349
|
filledChevronRight: icon_filled_chevron_right_default,
|
|
317
350
|
filledChevronUp: icon_filled_chevron_up_default,
|
|
351
|
+
filledChevronUpBlack: icon_filled_chevron_up_black_default,
|
|
318
352
|
leftWhite: icon_left_white_default,
|
|
319
353
|
mailBlack: icon_mail_black_default,
|
|
320
354
|
rightBlack: icon_right_black_default,
|
|
@@ -325,6 +359,13 @@ var svgs = {
|
|
|
325
359
|
upChevronWhite: icon_up_chevron_white_default,
|
|
326
360
|
watchBlack: icon_watch_black_default,
|
|
327
361
|
watchWhite: icon_watch_white_default,
|
|
362
|
+
filter: icon_filter_default,
|
|
363
|
+
internalFilter: icon_internal_filter_default,
|
|
364
|
+
search: icon_search_default,
|
|
365
|
+
grid: icon_grid_default,
|
|
366
|
+
list: icon_list_default,
|
|
367
|
+
chevronLeftBlack: icon_chevron_left_black_default,
|
|
368
|
+
chevronRightBlack: icon_chevron_right_black_default,
|
|
328
369
|
/* Dropdown */
|
|
329
370
|
chevronDefault: icon_chevron_default_default,
|
|
330
371
|
chevronHovered: icon_chevron_hovered_default,
|
|
@@ -337,7 +378,7 @@ var svgs = {
|
|
|
337
378
|
xBlack: icon_x_black_default,
|
|
338
379
|
xWhite: icon_x_white_default
|
|
339
380
|
};
|
|
340
|
-
var Icon =
|
|
381
|
+
var Icon = React62__default.default.memo(
|
|
341
382
|
(_a) => {
|
|
342
383
|
var _b = _a, { type, size } = _b, props = __objRest(_b, ["type", "size"]);
|
|
343
384
|
if (type) {
|
|
@@ -363,6 +404,8 @@ var Button_module_default = {
|
|
|
363
404
|
grey: "Button_module_grey",
|
|
364
405
|
shiny: "Button_module_shiny",
|
|
365
406
|
rotateGradient: "Button_module_rotateGradient",
|
|
407
|
+
tabbutton: "Button_module_tabbutton",
|
|
408
|
+
active: "Button_module_active",
|
|
366
409
|
icon: "Button_module_icon",
|
|
367
410
|
logo: "Button_module_logo"
|
|
368
411
|
};
|
|
@@ -375,7 +418,8 @@ var Button = (_a) => {
|
|
|
375
418
|
href,
|
|
376
419
|
isExternal,
|
|
377
420
|
icon,
|
|
378
|
-
logo
|
|
421
|
+
logo,
|
|
422
|
+
isActive
|
|
379
423
|
} = _b, rest = __objRest(_b, [
|
|
380
424
|
"className",
|
|
381
425
|
"children",
|
|
@@ -384,14 +428,16 @@ var Button = (_a) => {
|
|
|
384
428
|
"href",
|
|
385
429
|
"isExternal",
|
|
386
430
|
"icon",
|
|
387
|
-
"logo"
|
|
431
|
+
"logo",
|
|
432
|
+
"isActive"
|
|
388
433
|
]);
|
|
389
434
|
const isLink = !!href;
|
|
390
435
|
const props = __spreadValues(__spreadValues({
|
|
391
|
-
className:
|
|
436
|
+
className: clsx22__default.default(
|
|
392
437
|
Button_module_default.button,
|
|
393
438
|
variant ? Button_module_default[variant] : null,
|
|
394
439
|
{ [Button_module_default.fullWidth]: !!fullWidth },
|
|
440
|
+
{ [Button_module_default.active]: !!isActive },
|
|
395
441
|
className
|
|
396
442
|
)
|
|
397
443
|
}, isLink ? { href, isExternal } : {}), rest);
|
|
@@ -443,21 +489,21 @@ var getDeviceType = (width) => {
|
|
|
443
489
|
return "desktop";
|
|
444
490
|
};
|
|
445
491
|
var useViewPort = () => {
|
|
446
|
-
const [device, setDevice] =
|
|
492
|
+
const [device, setDevice] = React62.useState(
|
|
447
493
|
() => typeof window !== "undefined" ? getDeviceType(window.innerWidth) : "desktop"
|
|
448
494
|
);
|
|
449
|
-
const getOtherDevices =
|
|
495
|
+
const getOtherDevices = React62.useCallback(
|
|
450
496
|
(list, what, includeSelf = false) => {
|
|
451
497
|
const deviceIndex = list.indexOf(what) + (!includeSelf ? 1 : 0);
|
|
452
498
|
return [...list].slice(deviceIndex);
|
|
453
499
|
},
|
|
454
500
|
[]
|
|
455
501
|
);
|
|
456
|
-
const onWindowResize =
|
|
502
|
+
const onWindowResize = React62.useCallback(() => {
|
|
457
503
|
setDevice(getDeviceType(window.innerWidth));
|
|
458
504
|
}, []);
|
|
459
505
|
const onWindowResizeDebounce = useDebounce_default(onWindowResize, 100);
|
|
460
|
-
|
|
506
|
+
React62.useEffect(() => {
|
|
461
507
|
window.addEventListener("resize", onWindowResizeDebounce);
|
|
462
508
|
return () => window.removeEventListener("resize", onWindowResizeDebounce);
|
|
463
509
|
}, [onWindowResizeDebounce]);
|
|
@@ -510,13 +556,13 @@ var BrandsStrip = ({
|
|
|
510
556
|
cta,
|
|
511
557
|
size
|
|
512
558
|
}) => {
|
|
513
|
-
const [show, setShow] =
|
|
514
|
-
const [shouldAnimate, setShouldAnimate] =
|
|
559
|
+
const [show, setShow] = React62.useState(false);
|
|
560
|
+
const [shouldAnimate, setShouldAnimate] = React62.useState(false);
|
|
515
561
|
const { is } = useViewPort_default();
|
|
516
562
|
const isTabletBelow = is("tablet", "below");
|
|
517
|
-
const containerRef =
|
|
518
|
-
const marqueeRef =
|
|
519
|
-
const timeline =
|
|
563
|
+
const containerRef = React62.useRef(null);
|
|
564
|
+
const marqueeRef = React62.useRef(null);
|
|
565
|
+
const timeline = React62.useRef(null);
|
|
520
566
|
const horizontalLoop = (items, config) => {
|
|
521
567
|
const itemsArray = gsap__default.default.utils.toArray(items);
|
|
522
568
|
const cfg = config || {};
|
|
@@ -610,7 +656,7 @@ var BrandsStrip = ({
|
|
|
610
656
|
timeline.current.play();
|
|
611
657
|
}
|
|
612
658
|
};
|
|
613
|
-
const duplicatedLogos =
|
|
659
|
+
const duplicatedLogos = React62.useMemo(() => {
|
|
614
660
|
if (logos.length === 0) return [];
|
|
615
661
|
if (!shouldAnimate) return [...logos];
|
|
616
662
|
return [...logos, ...logos];
|
|
@@ -619,7 +665,7 @@ var BrandsStrip = ({
|
|
|
619
665
|
"div",
|
|
620
666
|
{
|
|
621
667
|
ref: containerRef,
|
|
622
|
-
className:
|
|
668
|
+
className: clsx22__default.default(
|
|
623
669
|
BrandsStrip_module_default.brandsStrip,
|
|
624
670
|
BrandsStrip_module_default[variant],
|
|
625
671
|
{ [BrandsStrip_module_default.small]: size === "small" },
|
|
@@ -628,13 +674,13 @@ var BrandsStrip = ({
|
|
|
628
674
|
onMouseEnter: handleMouseEnter,
|
|
629
675
|
onMouseLeave: handleMouseLeave,
|
|
630
676
|
children: [
|
|
631
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
632
|
-
title && logos.length === 1 && /* @__PURE__ */ jsxRuntime.jsx("h2", { className:
|
|
677
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx22__default.default(BrandsStrip_module_default.container, { [BrandsStrip_module_default.blurred]: show && logos.length > 1 }), children: [
|
|
678
|
+
title && logos.length === 1 && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: clsx22__default.default("body", BrandsStrip_module_default.title), children: title }),
|
|
633
679
|
logos.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
634
680
|
"div",
|
|
635
681
|
{
|
|
636
682
|
ref: marqueeRef,
|
|
637
|
-
className:
|
|
683
|
+
className: clsx22__default.default(BrandsStrip_module_default.logos, { [BrandsStrip_module_default.marqueeGSAP]: shouldAnimate }),
|
|
638
684
|
children: duplicatedLogos.map((logo, index) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: BrandsStrip_module_default.logoWrapper, children: /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: BrandsStrip_module_default.logo }, logo)) }, `${logo.alt}-${index}`))
|
|
639
685
|
}
|
|
640
686
|
)
|
|
@@ -663,8 +709,8 @@ var CardSubtitle = ({ children }) => {
|
|
|
663
709
|
};
|
|
664
710
|
function resolveCompoundSlots(children, slots) {
|
|
665
711
|
const resolved = {};
|
|
666
|
-
|
|
667
|
-
if (!
|
|
712
|
+
React62.Children.forEach(children, (child) => {
|
|
713
|
+
if (!React62.isValidElement(child)) return;
|
|
668
714
|
Object.entries(slots).forEach(([key, Component]) => {
|
|
669
715
|
if (child.type === Component) {
|
|
670
716
|
resolved[key] = child.props.children;
|
|
@@ -678,10 +724,10 @@ function resolveCompoundSlots(children, slots) {
|
|
|
678
724
|
var Container_module_default = {
|
|
679
725
|
container: "Container_module_container"
|
|
680
726
|
};
|
|
681
|
-
var Container =
|
|
727
|
+
var Container = React62.forwardRef(
|
|
682
728
|
(_a, ref) => {
|
|
683
729
|
var _b = _a, { children, className } = _b, props = __objRest(_b, ["children", "className"]);
|
|
684
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", __spreadProps(__spreadValues({ ref, className:
|
|
730
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", __spreadProps(__spreadValues({ ref, className: clsx22__default.default(Container_module_default.container, className) }, props), { children }));
|
|
685
731
|
}
|
|
686
732
|
);
|
|
687
733
|
Container.displayName = "Container";
|
|
@@ -693,7 +739,10 @@ var Card_module_default = {
|
|
|
693
739
|
content: "Card_module_content",
|
|
694
740
|
subtitle: "Card_module_subtitle",
|
|
695
741
|
light: "Card_module_light",
|
|
696
|
-
|
|
742
|
+
logoContainer: "Card_module_logoContainer",
|
|
743
|
+
logo: "Card_module_logo",
|
|
744
|
+
logoHover: "Card_module_logoHover",
|
|
745
|
+
hideLogo: "Card_module_hideLogo"
|
|
697
746
|
};
|
|
698
747
|
var Card = ({
|
|
699
748
|
className,
|
|
@@ -714,17 +763,21 @@ var Card = ({
|
|
|
714
763
|
});
|
|
715
764
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
716
765
|
const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
|
|
766
|
+
const isLink = !!(href && !label);
|
|
717
767
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
718
768
|
ConditionalWrapper,
|
|
719
769
|
__spreadProps(__spreadValues({
|
|
720
770
|
ref,
|
|
721
|
-
className:
|
|
771
|
+
className: clsx22__default.default(Card_module_default.card, Card_module_default[variant], className),
|
|
722
772
|
wrapper: Anchor,
|
|
723
773
|
fallback: "div",
|
|
724
|
-
condition:
|
|
774
|
+
condition: isLink
|
|
725
775
|
}, href ? { href, isExternal } : {}), {
|
|
726
776
|
children: [
|
|
727
|
-
|
|
777
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: Card_module_default.logoContainer, children: [
|
|
778
|
+
(logo == null ? void 0 : logo.src) ? /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: clsx22__default.default(Card_module_default.logo, isLink && Card_module_default.hideLogo) }, logo)) : icon && /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: icon, className: clsx22__default.default(Card_module_default.logo, isLink && Card_module_default.hideLogo) }),
|
|
779
|
+
isLink && /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "tiltedRightWhite", className: Card_module_default.logoHover })
|
|
780
|
+
] }),
|
|
728
781
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: Card_module_default.content, children: [
|
|
729
782
|
titleNode && /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "h4", children: titleNode }),
|
|
730
783
|
subtitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: Card_module_default.subtitle, children: subtitleNode })
|
|
@@ -757,10 +810,10 @@ var CountingCard = ({ className, title, count, image, children }) => {
|
|
|
757
810
|
title: CountingCardTitle
|
|
758
811
|
});
|
|
759
812
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
760
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
813
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx22__default.default(CountingCard_module_default["counting-card"], className), children: [
|
|
761
814
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: CountingCard_module_default.content, children: [
|
|
762
815
|
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "body", children: titleNode }),
|
|
763
|
-
count && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
816
|
+
count && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx22__default.default(CountingCard_module_default.count, "h1"), children: count })
|
|
764
817
|
] }),
|
|
765
818
|
image && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: CountingCard_module_default.logo }, image))
|
|
766
819
|
] });
|
|
@@ -792,9 +845,9 @@ var InfoCard = ({ className, title, subtitle, icon, badge, children }) => {
|
|
|
792
845
|
});
|
|
793
846
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
794
847
|
const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
|
|
795
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
848
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx22__default.default(InfoCard_module_default["info-card"], { [InfoCard_module_default.hasIcon]: !!icon }, className), children: [
|
|
796
849
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: InfoCard_module_default.header, children: [
|
|
797
|
-
icon ? /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: icon }) : badge ? /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
850
|
+
icon ? /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: icon }) : badge ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx22__default.default(InfoCard_module_default.badge, "h4"), children: badge }) : null,
|
|
798
851
|
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h4", children: titleNode })
|
|
799
852
|
] }),
|
|
800
853
|
subtitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "body", children: subtitleNode })
|
|
@@ -826,7 +879,7 @@ var Pagination = ({
|
|
|
826
879
|
disableArrows = false,
|
|
827
880
|
onPageChange
|
|
828
881
|
}) => {
|
|
829
|
-
const [activePage, setActivePage] =
|
|
882
|
+
const [activePage, setActivePage] = React62.useState(currentPage);
|
|
830
883
|
const goToPage = (page) => {
|
|
831
884
|
if (page < 1 || page > totalPages) return;
|
|
832
885
|
setActivePage(page);
|
|
@@ -856,7 +909,7 @@ var Pagination = ({
|
|
|
856
909
|
setActivePage(page);
|
|
857
910
|
onPageChange == null ? void 0 : onPageChange(page);
|
|
858
911
|
};
|
|
859
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
912
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx22__default.default(Pagination_module_default.pagination, className), children: [
|
|
860
913
|
!disableArrows && /* @__PURE__ */ jsxRuntime.jsx(
|
|
861
914
|
"button",
|
|
862
915
|
{
|
|
@@ -873,7 +926,7 @@ var Pagination = ({
|
|
|
873
926
|
"button",
|
|
874
927
|
{
|
|
875
928
|
onClick: () => goToPage(page),
|
|
876
|
-
className:
|
|
929
|
+
className: clsx22__default.default(Pagination_module_default.page, {
|
|
877
930
|
[Pagination_module_default.active]: activePage === page,
|
|
878
931
|
[Pagination_module_default.number]: hasNumber
|
|
879
932
|
}),
|
|
@@ -909,7 +962,7 @@ var PracticeCard_module_default = {
|
|
|
909
962
|
};
|
|
910
963
|
var PracticeCard = ({ className, title, cta, image }) => {
|
|
911
964
|
const { url: href, isExternal } = cta != null ? cta : {};
|
|
912
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
965
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx22__default.default(PracticeCard_module_default["practice-card"], className), children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
913
966
|
ConditionalWrapper,
|
|
914
967
|
__spreadProps(__spreadValues({
|
|
915
968
|
className: PracticeCard_module_default.wrapper,
|
|
@@ -920,7 +973,7 @@ var PracticeCard = ({ className, title, cta, image }) => {
|
|
|
920
973
|
children: [
|
|
921
974
|
image && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: PracticeCard_module_default.background }, image)),
|
|
922
975
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: PracticeCard_module_default.container, children: [
|
|
923
|
-
title && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
976
|
+
title && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx22__default.default(PracticeCard_module_default.title, "h3"), children: title }),
|
|
924
977
|
href && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: PracticeCard_module_default.cta, children: [
|
|
925
978
|
/* @__PURE__ */ jsxRuntime.jsx(Icon, { className: PracticeCard_module_default.ctaRest, type: "right" }),
|
|
926
979
|
/* @__PURE__ */ jsxRuntime.jsx(Icon, { className: PracticeCard_module_default.ctaHover, type: "tiltedRight" })
|
|
@@ -963,10 +1016,10 @@ var CardCollection = ({
|
|
|
963
1016
|
children
|
|
964
1017
|
}) => {
|
|
965
1018
|
var _a, _b;
|
|
966
|
-
const container =
|
|
967
|
-
const revealWrapper =
|
|
968
|
-
const extraCard =
|
|
969
|
-
const [isExpanded, setIsExpanded] =
|
|
1019
|
+
const container = React62.useRef(null);
|
|
1020
|
+
const revealWrapper = React62.useRef(null);
|
|
1021
|
+
const extraCard = React62.useRef(null);
|
|
1022
|
+
const [isExpanded, setIsExpanded] = React62.useState(false);
|
|
970
1023
|
const slots = resolveCompoundSlots(children, {
|
|
971
1024
|
title: CardCollectionTitle,
|
|
972
1025
|
subtitle: CardCollectionSubtitle
|
|
@@ -977,7 +1030,7 @@ var CardCollection = ({
|
|
|
977
1030
|
const visibleCards = isExamCard ? cards.slice(0, 8) : cards;
|
|
978
1031
|
const hiddenCards = isExamCard ? cards.slice(8) : [];
|
|
979
1032
|
const { contextSafe } = react.useGSAP({ scope: container });
|
|
980
|
-
const handleShowMore =
|
|
1033
|
+
const handleShowMore = React62.useCallback(() => {
|
|
981
1034
|
contextSafe(() => {
|
|
982
1035
|
setIsExpanded(true);
|
|
983
1036
|
const tl = gsap__default.default.timeline({ defaults: { ease: "power3.inOut" } });
|
|
@@ -1009,13 +1062,13 @@ var CardCollection = ({
|
|
|
1009
1062
|
Container,
|
|
1010
1063
|
{
|
|
1011
1064
|
ref: container,
|
|
1012
|
-
className:
|
|
1065
|
+
className: clsx22__default.default(CardCollection_module_default["card-collection"], CardCollection_module_default[variant], className),
|
|
1013
1066
|
children: [
|
|
1014
1067
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: CardCollection_module_default.content, children: [
|
|
1015
1068
|
titleNode && /* @__PURE__ */ jsxRuntime.jsx("h2", { children: titleNode }),
|
|
1016
1069
|
subtitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "subheading", children: subtitleNode })
|
|
1017
1070
|
] }),
|
|
1018
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: CardCollection_module_default.wrapper, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
1071
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: CardCollection_module_default.wrapper, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx22__default.default(CardCollection_module_default.cardWrapper, { [CardCollection_module_default["is-expanded"]]: isExpanded }), children: [
|
|
1019
1072
|
visibleCards.map((card, key) => /* @__PURE__ */ jsxRuntime.jsx(Card2, __spreadValues({ className: CardCollection_module_default.card, variant: theme }, card), key)),
|
|
1020
1073
|
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(
|
|
1021
1074
|
Card2,
|
|
@@ -1081,8 +1134,8 @@ var ContactModule = ({
|
|
|
1081
1134
|
animateBlur = true
|
|
1082
1135
|
}) => {
|
|
1083
1136
|
var _a, _b;
|
|
1084
|
-
const containerRef =
|
|
1085
|
-
const blurRef =
|
|
1137
|
+
const containerRef = React62.useRef(null);
|
|
1138
|
+
const blurRef = React62.useRef(null);
|
|
1086
1139
|
const slots = resolveCompoundSlots(children, {
|
|
1087
1140
|
title: ContactModuleTitle,
|
|
1088
1141
|
subtitle: ContactModuleSubtitle
|
|
@@ -1116,7 +1169,7 @@ var ContactModule = ({
|
|
|
1116
1169
|
},
|
|
1117
1170
|
{ scope: containerRef, dependencies: [blurred, animateBlur] }
|
|
1118
1171
|
);
|
|
1119
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref: containerRef, className:
|
|
1172
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref: containerRef, className: clsx22__default.default(ContactModule_module_default["contact-module"], className), children: [
|
|
1120
1173
|
blurred && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1121
1174
|
"div",
|
|
1122
1175
|
{
|
|
@@ -1131,8 +1184,8 @@ var ContactModule = ({
|
|
|
1131
1184
|
/* @__PURE__ */ jsxRuntime.jsxs(Container, { className: ContactModule_module_default.container, children: [
|
|
1132
1185
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: ContactModule_module_default.wrapper, children: [
|
|
1133
1186
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: ContactModule_module_default.content, children: [
|
|
1134
|
-
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1135
|
-
subtitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1187
|
+
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx22__default.default(ContactModule_module_default.title, "h1"), children: titleNode }),
|
|
1188
|
+
subtitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx22__default.default(ContactModule_module_default.subtitle, "subheading"), children: subtitleNode })
|
|
1136
1189
|
] }),
|
|
1137
1190
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: ContactModule_module_default["cta-wrapper"], children: ctas == null ? void 0 : ctas.map((cta, key) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1138
1191
|
Button,
|
|
@@ -1193,7 +1246,7 @@ var Footer = ({
|
|
|
1193
1246
|
disclaimer: FooterDisclaimer
|
|
1194
1247
|
});
|
|
1195
1248
|
const titleNode = (_a = slots.disclaimer) != null ? _a : disclaimer;
|
|
1196
|
-
return /* @__PURE__ */ jsxRuntime.jsx("footer", { className:
|
|
1249
|
+
return /* @__PURE__ */ jsxRuntime.jsx("footer", { className: clsx22__default.default(Footer_module_default.footer, className), children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: Footer_module_default.container, children: [
|
|
1197
1250
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: Footer_module_default.bottom, children: [
|
|
1198
1251
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: Footer_module_default["bottom-left"], children: [
|
|
1199
1252
|
supporters.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: Footer_module_default.supporters, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: Footer_module_default["supporters-logos"], children: supporters.map(
|
|
@@ -1209,7 +1262,7 @@ var Footer = ({
|
|
|
1209
1262
|
index
|
|
1210
1263
|
) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: Footer_module_default["supporter-link-primary"], children: /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({}, supporter.image)) }, index)
|
|
1211
1264
|
) }) }),
|
|
1212
|
-
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1265
|
+
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx22__default.default(Footer_module_default.disclaimer, "p"), children: titleNode }),
|
|
1213
1266
|
copyright && /* @__PURE__ */ jsxRuntime.jsx("p", { className: Footer_module_default.copyright, children: copyright })
|
|
1214
1267
|
] }),
|
|
1215
1268
|
columns.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("nav", { className: Footer_module_default["bottom-right"], children: columns.map((column, colIndex) => /* @__PURE__ */ jsxRuntime.jsx("ul", { className: Footer_module_default["nav-list"], children: column.map((link) => /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1278,12 +1331,12 @@ var HeroBanner = ({
|
|
|
1278
1331
|
});
|
|
1279
1332
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
1280
1333
|
const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
|
|
1281
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
1334
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx22__default.default(HeroBanner_module_default.heroBanner, HeroBanner_module_default[variant], className), children: [
|
|
1282
1335
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: HeroBanner_module_default.container, children: [
|
|
1283
1336
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: HeroBanner_module_default.banner, children: [
|
|
1284
1337
|
(titleNode || subtitleNode) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: HeroBanner_module_default.text, children: [
|
|
1285
|
-
titleNode && /* @__PURE__ */ jsxRuntime.jsx("h1", { className:
|
|
1286
|
-
subtitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1338
|
+
titleNode && /* @__PURE__ */ jsxRuntime.jsx("h1", { className: clsx22__default.default(HeroBanner_module_default.title, "h1"), children: titleNode }),
|
|
1339
|
+
subtitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx22__default.default(HeroBanner_module_default.subtitle, "subtitle"), children: subtitleNode })
|
|
1287
1340
|
] }),
|
|
1288
1341
|
cta && cta.length > 0 && !vBannerPodcast && /* @__PURE__ */ jsxRuntime.jsx("div", { className: HeroBanner_module_default.ctaContainer, children: cta.slice(0, 2).map((cta2, key) => {
|
|
1289
1342
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1358,10 +1411,10 @@ var HeroBannerCarousel = ({
|
|
|
1358
1411
|
}) => {
|
|
1359
1412
|
const { is } = useViewPort_default();
|
|
1360
1413
|
const isMobile = is("tablet", "below");
|
|
1361
|
-
const [swiperInstance, setSwiperInstance] =
|
|
1362
|
-
const [activeIndex, setActiveIndex] =
|
|
1414
|
+
const [swiperInstance, setSwiperInstance] = React62.useState(null);
|
|
1415
|
+
const [activeIndex, setActiveIndex] = React62.useState(0);
|
|
1363
1416
|
if (!items.length) return null;
|
|
1364
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1417
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx22__default.default(HeroBannerCarousel_module_default.heroBannerCarousel, className), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: HeroBannerCarousel_module_default.inner, children: [
|
|
1365
1418
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: HeroBannerCarousel_module_default.swiperContainer, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1366
1419
|
react$1.Swiper,
|
|
1367
1420
|
{
|
|
@@ -1408,7 +1461,7 @@ var HeroBannerCarousel = ({
|
|
|
1408
1461
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: HeroBannerCarousel_module_default.pagination, children: items.map((_, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1409
1462
|
"button",
|
|
1410
1463
|
{
|
|
1411
|
-
className:
|
|
1464
|
+
className: clsx22__default.default(HeroBannerCarousel_module_default.dot, index === activeIndex && HeroBannerCarousel_module_default.dotActive),
|
|
1412
1465
|
onClick: () => swiperInstance == null ? void 0 : swiperInstance.slideTo(index),
|
|
1413
1466
|
"aria-label": `Go to slide ${index + 1}`
|
|
1414
1467
|
},
|
|
@@ -1427,6 +1480,296 @@ var HeroBannerCarousel = ({
|
|
|
1427
1480
|
] })
|
|
1428
1481
|
] }) });
|
|
1429
1482
|
};
|
|
1483
|
+
var Text = (_a) => {
|
|
1484
|
+
var _b = _a, { tag = "p", promoteToH1 = false, ref, children } = _b, props = __objRest(_b, ["tag", "promoteToH1", "ref", "children"]);
|
|
1485
|
+
const Component = promoteToH1 ? "h1" : tag;
|
|
1486
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Component, __spreadProps(__spreadValues({ ref }, props), { children }));
|
|
1487
|
+
};
|
|
1488
|
+
Text.displayName = "Text";
|
|
1489
|
+
|
|
1490
|
+
// src/components/Accordion/Accordion.module.scss
|
|
1491
|
+
var Accordion_module_default = {
|
|
1492
|
+
accordionTitle: "Accordion_module_accordionTitle",
|
|
1493
|
+
accordion: "Accordion_module_accordion",
|
|
1494
|
+
accordionItem: "Accordion_module_accordionItem",
|
|
1495
|
+
accordionItemOpen: "Accordion_module_accordionItemOpen",
|
|
1496
|
+
accordionHeader: "Accordion_module_accordionHeader",
|
|
1497
|
+
accordionHeaderLeft: "Accordion_module_accordionHeaderLeft",
|
|
1498
|
+
accordionChevron: "Accordion_module_accordionChevron",
|
|
1499
|
+
accordionContent: "Accordion_module_accordionContent",
|
|
1500
|
+
accordionContentInner: "Accordion_module_accordionContentInner"
|
|
1501
|
+
};
|
|
1502
|
+
var AccordionItem = ({
|
|
1503
|
+
id,
|
|
1504
|
+
title,
|
|
1505
|
+
children,
|
|
1506
|
+
isOpen = false,
|
|
1507
|
+
onToggle,
|
|
1508
|
+
className
|
|
1509
|
+
}) => {
|
|
1510
|
+
const contentRef = React62.useRef(null);
|
|
1511
|
+
const contentInnerRef = React62.useRef(null);
|
|
1512
|
+
const timelineRef = React62.useRef(null);
|
|
1513
|
+
const [contentHeight, setContentHeight] = React62.useState(0);
|
|
1514
|
+
React62.useEffect(() => {
|
|
1515
|
+
if (contentInnerRef.current) {
|
|
1516
|
+
setContentHeight(contentInnerRef.current.scrollHeight);
|
|
1517
|
+
}
|
|
1518
|
+
}, [children]);
|
|
1519
|
+
React62.useEffect(() => {
|
|
1520
|
+
if (contentRef.current && contentHeight > 0) {
|
|
1521
|
+
if (timelineRef.current) {
|
|
1522
|
+
timelineRef.current.kill();
|
|
1523
|
+
}
|
|
1524
|
+
const tl = gsap__default.default.timeline({
|
|
1525
|
+
defaults: { duration: 0.25, ease: "power2.inOut" }
|
|
1526
|
+
});
|
|
1527
|
+
if (isOpen) {
|
|
1528
|
+
tl.to(contentRef.current, {
|
|
1529
|
+
height: contentHeight,
|
|
1530
|
+
duration: 0.25,
|
|
1531
|
+
ease: "power2.inOut",
|
|
1532
|
+
clearProps: "height"
|
|
1533
|
+
});
|
|
1534
|
+
} else {
|
|
1535
|
+
tl.to(contentRef.current, {
|
|
1536
|
+
height: 0,
|
|
1537
|
+
duration: 0.25,
|
|
1538
|
+
ease: "power2.inOut"
|
|
1539
|
+
});
|
|
1540
|
+
}
|
|
1541
|
+
timelineRef.current = tl;
|
|
1542
|
+
}
|
|
1543
|
+
}, [isOpen, contentHeight]);
|
|
1544
|
+
const handleToggle = () => {
|
|
1545
|
+
onToggle == null ? void 0 : onToggle(id);
|
|
1546
|
+
};
|
|
1547
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1548
|
+
"div",
|
|
1549
|
+
{
|
|
1550
|
+
className: clsx22__default.default(
|
|
1551
|
+
Accordion_module_default.accordionItem,
|
|
1552
|
+
{
|
|
1553
|
+
[Accordion_module_default.accordionItemOpen]: isOpen
|
|
1554
|
+
},
|
|
1555
|
+
className
|
|
1556
|
+
),
|
|
1557
|
+
children: [
|
|
1558
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1559
|
+
"button",
|
|
1560
|
+
{
|
|
1561
|
+
className: clsx22__default.default(Accordion_module_default.accordionHeader, {
|
|
1562
|
+
[Accordion_module_default.accordionHeaderOpen]: isOpen
|
|
1563
|
+
}),
|
|
1564
|
+
onClick: handleToggle,
|
|
1565
|
+
"aria-expanded": isOpen,
|
|
1566
|
+
"aria-label": `Toggle ${title}`,
|
|
1567
|
+
children: [
|
|
1568
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: Accordion_module_default.accordionHeaderLeft, children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: clsx22__default.default("body", Accordion_module_default.accordionTitle), children: title }) }),
|
|
1569
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1570
|
+
"span",
|
|
1571
|
+
{
|
|
1572
|
+
className: clsx22__default.default(Accordion_module_default.accordionChevron, {
|
|
1573
|
+
[Accordion_module_default.accordionChevronOpen]: isOpen
|
|
1574
|
+
}),
|
|
1575
|
+
children: isOpen ? /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "filledChevronUpBlack", size: 40 }) : /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "circleChevronDown", size: 40 })
|
|
1576
|
+
}
|
|
1577
|
+
)
|
|
1578
|
+
]
|
|
1579
|
+
}
|
|
1580
|
+
),
|
|
1581
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1582
|
+
"div",
|
|
1583
|
+
{
|
|
1584
|
+
ref: contentRef,
|
|
1585
|
+
className: Accordion_module_default.accordionContent,
|
|
1586
|
+
style: {
|
|
1587
|
+
overflow: "hidden",
|
|
1588
|
+
height: 0
|
|
1589
|
+
},
|
|
1590
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { ref: contentInnerRef, className: Accordion_module_default.accordionContentInner, children })
|
|
1591
|
+
}
|
|
1592
|
+
)
|
|
1593
|
+
]
|
|
1594
|
+
}
|
|
1595
|
+
);
|
|
1596
|
+
};
|
|
1597
|
+
var Accordion = ({
|
|
1598
|
+
className,
|
|
1599
|
+
items = [],
|
|
1600
|
+
defaultOpenIds = [],
|
|
1601
|
+
allowMultiple = false,
|
|
1602
|
+
onItemToggle
|
|
1603
|
+
}) => {
|
|
1604
|
+
const [openIds, setOpenIds] = React62.useState(defaultOpenIds);
|
|
1605
|
+
const handleToggle = (id) => {
|
|
1606
|
+
setOpenIds((prev) => {
|
|
1607
|
+
let newOpenIds;
|
|
1608
|
+
if (prev.includes(id)) {
|
|
1609
|
+
newOpenIds = prev.filter((itemId) => itemId !== id);
|
|
1610
|
+
} else {
|
|
1611
|
+
if (allowMultiple) {
|
|
1612
|
+
newOpenIds = [...prev, id];
|
|
1613
|
+
} else {
|
|
1614
|
+
newOpenIds = [id];
|
|
1615
|
+
}
|
|
1616
|
+
}
|
|
1617
|
+
onItemToggle == null ? void 0 : onItemToggle(id, !prev.includes(id));
|
|
1618
|
+
return newOpenIds;
|
|
1619
|
+
});
|
|
1620
|
+
};
|
|
1621
|
+
if (items.length === 0) {
|
|
1622
|
+
return null;
|
|
1623
|
+
}
|
|
1624
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx22__default.default(Accordion_module_default.accordion, className), children: items.map((item) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1625
|
+
AccordionItem,
|
|
1626
|
+
{
|
|
1627
|
+
id: item.id,
|
|
1628
|
+
title: item.title,
|
|
1629
|
+
isOpen: openIds.includes(item.id),
|
|
1630
|
+
onToggle: handleToggle,
|
|
1631
|
+
children: item.content
|
|
1632
|
+
},
|
|
1633
|
+
item.id
|
|
1634
|
+
)) });
|
|
1635
|
+
};
|
|
1636
|
+
|
|
1637
|
+
// src/widgets/InternalBrandsTab/InternalBrandsTab.module.scss
|
|
1638
|
+
var InternalBrandsTab_module_default = {
|
|
1639
|
+
internalBrandsTab: "InternalBrandsTab_module_internalBrandsTab",
|
|
1640
|
+
textsContainer: "InternalBrandsTab_module_textsContainer",
|
|
1641
|
+
subTitle: "InternalBrandsTab_module_subTitle",
|
|
1642
|
+
contentArea: "InternalBrandsTab_module_contentArea",
|
|
1643
|
+
topContent: "InternalBrandsTab_module_topContent",
|
|
1644
|
+
topContentTitle: "InternalBrandsTab_module_topContentTitle",
|
|
1645
|
+
topContentLongText: "InternalBrandsTab_module_topContentLongText",
|
|
1646
|
+
accordionTopContent: "InternalBrandsTab_module_accordionTopContent",
|
|
1647
|
+
bottomContent: "InternalBrandsTab_module_bottomContent",
|
|
1648
|
+
bottomContentLeftSide: "InternalBrandsTab_module_bottomContentLeftSide",
|
|
1649
|
+
bottomContentTitle: "InternalBrandsTab_module_bottomContentTitle",
|
|
1650
|
+
bottomContentRightSide: "InternalBrandsTab_module_bottomContentRightSide",
|
|
1651
|
+
bottomContentQuote: "InternalBrandsTab_module_bottomContentQuote",
|
|
1652
|
+
accordionBottomContent: "InternalBrandsTab_module_accordionBottomContent",
|
|
1653
|
+
bottomContentTextList: "InternalBrandsTab_module_bottomContentTextList",
|
|
1654
|
+
title: "InternalBrandsTab_module_title",
|
|
1655
|
+
tabWrapper: "InternalBrandsTab_module_tabWrapper",
|
|
1656
|
+
tabButtonsRow: "InternalBrandsTab_module_tabButtonsRow",
|
|
1657
|
+
topContentCta: "InternalBrandsTab_module_topContentCta",
|
|
1658
|
+
topContentRightSide: "InternalBrandsTab_module_topContentRightSide",
|
|
1659
|
+
bottomContentIcon: "InternalBrandsTab_module_bottomContentIcon",
|
|
1660
|
+
topContentCtaContainer: "InternalBrandsTab_module_topContentCtaContainer"
|
|
1661
|
+
};
|
|
1662
|
+
var InternalBrandsTab = (props) => {
|
|
1663
|
+
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;
|
|
1664
|
+
const { title, subTitle, className, tabs } = props;
|
|
1665
|
+
const [activeIndex, setActiveIndex] = React62.useState(0);
|
|
1666
|
+
const { is } = useViewPort_default();
|
|
1667
|
+
const isTabletBelow = is("tablet", "below");
|
|
1668
|
+
const accordionItems = React62.useMemo(() => {
|
|
1669
|
+
return (tabs == null ? void 0 : tabs.map((tab, index) => {
|
|
1670
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2, _m2, _n2;
|
|
1671
|
+
return {
|
|
1672
|
+
id: index,
|
|
1673
|
+
title: tab.tabTitle || "",
|
|
1674
|
+
content: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1675
|
+
tab.topContent && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: InternalBrandsTab_module_default.accordionTopContent, children: [
|
|
1676
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
1677
|
+
((_a2 = tab.topContent) == null ? void 0 : _a2.title) && /* @__PURE__ */ jsxRuntime.jsx("p", { className: InternalBrandsTab_module_default.topContentTitle, children: tab.topContent.title }),
|
|
1678
|
+
((_b2 = tab.topContent) == null ? void 0 : _b2.longText) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: InternalBrandsTab_module_default.topContentLongText, children: tab.topContent.longText }),
|
|
1679
|
+
((_c2 = tab.topContent) == null ? void 0 : _c2.cta) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: InternalBrandsTab_module_default.topContentCtaContainer, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1680
|
+
Button,
|
|
1681
|
+
{
|
|
1682
|
+
className: InternalBrandsTab_module_default.topContentCta,
|
|
1683
|
+
variant: "primary",
|
|
1684
|
+
href: (_d2 = tab.topContent.cta) == null ? void 0 : _d2.url,
|
|
1685
|
+
isExternal: (_e2 = tab.topContent.cta) == null ? void 0 : _e2.isExternal,
|
|
1686
|
+
logo: (_f2 = tab.topContent.cta) == null ? void 0 : _f2.logo,
|
|
1687
|
+
children: (_g2 = tab.topContent.cta) == null ? void 0 : _g2.label
|
|
1688
|
+
}
|
|
1689
|
+
) })
|
|
1690
|
+
] }),
|
|
1691
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { children: ((_h2 = tab.topContent) == null ? void 0 : _h2.rightSideText) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: InternalBrandsTab_module_default.topContentRightSide, children: tab.topContent.rightSideText }) })
|
|
1692
|
+
] }),
|
|
1693
|
+
tab.bottomContent && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: InternalBrandsTab_module_default.accordionBottomContent, children: [
|
|
1694
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: InternalBrandsTab_module_default.bottomContentLeftSide, children: [
|
|
1695
|
+
((_i2 = tab.bottomContent) == null ? void 0 : _i2.title) && /* @__PURE__ */ jsxRuntime.jsx("p", { className: InternalBrandsTab_module_default.bottomContentTitle, children: tab.bottomContent.title }),
|
|
1696
|
+
((_j2 = tab.bottomContent) == null ? void 0 : _j2.textList) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: InternalBrandsTab_module_default.bottomContentTextList, children: tab.bottomContent.textList })
|
|
1697
|
+
] }),
|
|
1698
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: InternalBrandsTab_module_default.bottomContentRightSide, children: [
|
|
1699
|
+
((_k2 = tab.bottomContent) == null ? void 0 : _k2.icon) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1700
|
+
Picture,
|
|
1701
|
+
{
|
|
1702
|
+
src: (_l2 = tab.bottomContent.icon) == null ? void 0 : _l2.src,
|
|
1703
|
+
alt: (_m2 = tab.bottomContent.icon) == null ? void 0 : _m2.alt,
|
|
1704
|
+
className: InternalBrandsTab_module_default.bottomContentIcon
|
|
1705
|
+
}
|
|
1706
|
+
),
|
|
1707
|
+
((_n2 = tab.bottomContent) == null ? void 0 : _n2.quote) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: InternalBrandsTab_module_default.bottomContentQuote, children: tab.bottomContent.quote })
|
|
1708
|
+
] })
|
|
1709
|
+
] })
|
|
1710
|
+
] })
|
|
1711
|
+
};
|
|
1712
|
+
})) || [];
|
|
1713
|
+
}, [tabs]);
|
|
1714
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: clsx22__default.default(InternalBrandsTab_module_default.internalBrandsTab, className), children: [
|
|
1715
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: InternalBrandsTab_module_default.textsContainer, children: [
|
|
1716
|
+
title && /* @__PURE__ */ jsxRuntime.jsx(Text, { tag: "h2", className: InternalBrandsTab_module_default.title, children: title }),
|
|
1717
|
+
subTitle && /* @__PURE__ */ jsxRuntime.jsx("div", { className: InternalBrandsTab_module_default.subTitle, children: subTitle })
|
|
1718
|
+
] }),
|
|
1719
|
+
isTabletBelow ? /* @__PURE__ */ jsxRuntime.jsx(Accordion, { items: accordionItems, allowMultiple: true, defaultOpenIds: [] }) : /* @__PURE__ */ jsxRuntime.jsxs("div", { className: InternalBrandsTab_module_default.tabWrapper, children: [
|
|
1720
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: InternalBrandsTab_module_default.tabButtonsRow, children: tabs == null ? void 0 : tabs.map(({ tabTitle }, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1721
|
+
Button,
|
|
1722
|
+
{
|
|
1723
|
+
variant: "tabbutton",
|
|
1724
|
+
onClick: () => setActiveIndex(index),
|
|
1725
|
+
isActive: activeIndex === index,
|
|
1726
|
+
children: tabTitle
|
|
1727
|
+
},
|
|
1728
|
+
index
|
|
1729
|
+
)) }),
|
|
1730
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx22__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: [
|
|
1731
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: InternalBrandsTab_module_default.topContent, children: [
|
|
1732
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
1733
|
+
((_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 }),
|
|
1734
|
+
((_d = tabs[activeIndex].topContent) == null ? void 0 : _d.longText) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: InternalBrandsTab_module_default.topContentLongText, children: (_e = tabs[activeIndex].topContent) == null ? void 0 : _e.longText }),
|
|
1735
|
+
((_f = tabs[activeIndex].topContent) == null ? void 0 : _f.cta) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1736
|
+
Button,
|
|
1737
|
+
{
|
|
1738
|
+
className: InternalBrandsTab_module_default.topContentCta,
|
|
1739
|
+
variant: "primary",
|
|
1740
|
+
href: (_h = (_g = tabs[activeIndex].topContent) == null ? void 0 : _g.cta) == null ? void 0 : _h.url,
|
|
1741
|
+
isExternal: (_j = (_i = tabs[activeIndex].topContent) == null ? void 0 : _i.cta) == null ? void 0 : _j.isExternal,
|
|
1742
|
+
logo: (_l = (_k = tabs[activeIndex].topContent) == null ? void 0 : _k.cta) == null ? void 0 : _l.logo,
|
|
1743
|
+
children: (_n = (_m = tabs[activeIndex].topContent) == null ? void 0 : _m.cta) == null ? void 0 : _n.label
|
|
1744
|
+
}
|
|
1745
|
+
)
|
|
1746
|
+
] }),
|
|
1747
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { children: ((_o = tabs[activeIndex].topContent) == null ? void 0 : _o.rightSideText) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: InternalBrandsTab_module_default.topContentRightSide, children: (_p = tabs[activeIndex].topContent) == null ? void 0 : _p.rightSideText }) })
|
|
1748
|
+
] }),
|
|
1749
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: InternalBrandsTab_module_default.bottomContent, children: [
|
|
1750
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: InternalBrandsTab_module_default.bottomContentLeftSide, children: [
|
|
1751
|
+
((_q = tabs[activeIndex].bottomContent) == null ? void 0 : _q.title) && /* @__PURE__ */ jsxRuntime.jsx("p", { className: InternalBrandsTab_module_default.bottomContentTitle, children: (_r = tabs[activeIndex].bottomContent) == null ? void 0 : _r.title }),
|
|
1752
|
+
((_s = tabs[activeIndex].bottomContent) == null ? void 0 : _s.textList) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: InternalBrandsTab_module_default.bottomContentTextList, children: (_t = tabs[activeIndex].bottomContent) == null ? void 0 : _t.textList })
|
|
1753
|
+
] }),
|
|
1754
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: InternalBrandsTab_module_default.bottomContentRightSide, children: [
|
|
1755
|
+
((_u = tabs[activeIndex].bottomContent) == null ? void 0 : _u.icon) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1756
|
+
Picture,
|
|
1757
|
+
{
|
|
1758
|
+
src: (_w = (_v = tabs[activeIndex].bottomContent) == null ? void 0 : _v.icon) == null ? void 0 : _w.src,
|
|
1759
|
+
alt: (_y = (_x = tabs[activeIndex].bottomContent) == null ? void 0 : _x.icon) == null ? void 0 : _y.alt,
|
|
1760
|
+
className: InternalBrandsTab_module_default.bottomContentIcon
|
|
1761
|
+
}
|
|
1762
|
+
),
|
|
1763
|
+
((_z = tabs[activeIndex].bottomContent) == null ? void 0 : _z.quote) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: InternalBrandsTab_module_default.bottomContentQuote, children: (_A = tabs[activeIndex].bottomContent) == null ? void 0 : _A.quote })
|
|
1764
|
+
] })
|
|
1765
|
+
] })
|
|
1766
|
+
] }) })
|
|
1767
|
+
] })
|
|
1768
|
+
] });
|
|
1769
|
+
};
|
|
1770
|
+
|
|
1771
|
+
// src/widgets/InternalBrandsTab/index.tsx
|
|
1772
|
+
var InternalBrandsTab2 = Object.assign(InternalBrandsTab, {});
|
|
1430
1773
|
var MiniBannerTitle = ({ children }) => {
|
|
1431
1774
|
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
|
|
1432
1775
|
};
|
|
@@ -1475,17 +1818,17 @@ var MiniBanner = ({
|
|
|
1475
1818
|
const pretitleNode = (_a = slots.pretitle) != null ? _a : pretitle;
|
|
1476
1819
|
const titleNode = (_b = slots.title) != null ? _b : title;
|
|
1477
1820
|
const subtitleNode = (_c = slots.subtitle) != null ? _c : subtitle;
|
|
1478
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
1821
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx22__default.default(MiniBanner_module_default.minibanner, MiniBanner_module_default[variant], className), children: [
|
|
1479
1822
|
((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)),
|
|
1480
1823
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: MiniBanner_module_default.wrapper, children: [
|
|
1481
1824
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: MiniBanner_module_default.textContainer, children: [
|
|
1482
1825
|
(logo == null ? void 0 : logo.src) && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: MiniBanner_module_default.logo }, logo)),
|
|
1483
|
-
pretitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1484
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: MiniBanner_module_default.headingWrapper, children: titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1826
|
+
pretitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx22__default.default(MiniBanner_module_default.pretitle, "small"), children: pretitleNode }),
|
|
1827
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: MiniBanner_module_default.headingWrapper, children: titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx22__default.default(MiniBanner_module_default.title, isMiniBannerTextLeft ? "h1" : "h4"), children: titleNode }) }),
|
|
1485
1828
|
subtitleNode && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1486
1829
|
"div",
|
|
1487
1830
|
{
|
|
1488
|
-
className:
|
|
1831
|
+
className: clsx22__default.default(MiniBanner_module_default.title, {
|
|
1489
1832
|
subheading: isMiniBannerNoBG || isMiniBannerTextLeft,
|
|
1490
1833
|
h1: !isMiniBannerNoBG && !isMiniBannerTextLeft
|
|
1491
1834
|
}),
|
|
@@ -1556,14 +1899,14 @@ var MiniSectionCta = ({
|
|
|
1556
1899
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1557
1900
|
"div",
|
|
1558
1901
|
{
|
|
1559
|
-
className:
|
|
1902
|
+
className: clsx22__default.default(MiniSectionCta_module_default.miniSectionCta, MiniSectionCta_module_default[variant], theme && MiniSectionCta_module_default[theme], className),
|
|
1560
1903
|
children: /* @__PURE__ */ jsxRuntime.jsx(Container, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: MiniSectionCta_module_default.wrapper, children: [
|
|
1561
1904
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: MiniSectionCta_module_default.col, children: [
|
|
1562
1905
|
titleNode && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: variant === "BgColorBlack" || variant === "BgColorGrey" ? "h3" : "h2", children: titleNode }),
|
|
1563
1906
|
subtitleNode && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1564
1907
|
"div",
|
|
1565
1908
|
{
|
|
1566
|
-
className:
|
|
1909
|
+
className: clsx22__default.default(MiniSectionCta_module_default.subtitle, variant === "infoCallout" ? "h4" : "subheading"),
|
|
1567
1910
|
children: subtitleNode
|
|
1568
1911
|
}
|
|
1569
1912
|
)
|
|
@@ -1628,7 +1971,7 @@ var PracticePathCards = ({
|
|
|
1628
1971
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
1629
1972
|
const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
|
|
1630
1973
|
const footerNode = (_c = slots.footer) != null ? _c : footer;
|
|
1631
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1974
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx22__default.default(PracticePathCards_module_default["practice-path-cards"], className), children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: PracticePathCards_module_default.container, children: [
|
|
1632
1975
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: PracticePathCards_module_default.wrapper, children: [
|
|
1633
1976
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: PracticePathCards_module_default.content, children: [
|
|
1634
1977
|
titleNode && /* @__PURE__ */ jsxRuntime.jsx("h2", { children: titleNode }),
|
|
@@ -1682,8 +2025,8 @@ var Teaser5050With3Text = ({
|
|
|
1682
2025
|
title: Teaser5050With3TextTitle
|
|
1683
2026
|
});
|
|
1684
2027
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
1685
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1686
|
-
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
2028
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx22__default.default(Teaser5050With3Text_module_default["teaser5050-3text"], Teaser5050With3Text_module_default[variant], className), children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: Teaser5050With3Text_module_default.container, children: [
|
|
2029
|
+
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx22__default.default(Teaser5050With3Text_module_default.title, "h3"), children: titleNode }),
|
|
1687
2030
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: Teaser5050With3Text_module_default.content, children: [
|
|
1688
2031
|
/* @__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)) }),
|
|
1689
2032
|
image && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: Teaser5050With3Text_module_default.image }, image))
|
|
@@ -1733,12 +2076,12 @@ var Teaser5050WithCta = ({
|
|
|
1733
2076
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1734
2077
|
"div",
|
|
1735
2078
|
{
|
|
1736
|
-
className:
|
|
2079
|
+
className: clsx22__default.default(Teaser5050WithCta_module_default.teaser5050, Teaser5050WithCta_module_default[variant], className),
|
|
1737
2080
|
style: { backgroundColor: bgColor ? bgColor : "#ffffff" },
|
|
1738
2081
|
children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: Teaser5050WithCta_module_default.container, children: [
|
|
1739
2082
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: Teaser5050WithCta_module_default.wrapper, children: [
|
|
1740
2083
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: Teaser5050WithCta_module_default.content, children: [
|
|
1741
|
-
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
2084
|
+
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx22__default.default(Teaser5050WithCta_module_default.title, "h3"), children: titleNode }),
|
|
1742
2085
|
subtitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "subheading", children: subtitleNode })
|
|
1743
2086
|
] }),
|
|
1744
2087
|
(ctas == null ? void 0 : ctas.length) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: Teaser5050WithCta_module_default.ctaWrapper, children: ctas.map((cta, key) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1802,7 +2145,7 @@ var UpcomingEventCard = ({
|
|
|
1802
2145
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1803
2146
|
"article",
|
|
1804
2147
|
{
|
|
1805
|
-
className:
|
|
2148
|
+
className: clsx22__default.default(
|
|
1806
2149
|
"card",
|
|
1807
2150
|
UpcomingEventCard_module_default["event-card"],
|
|
1808
2151
|
UpcomingEventCard_module_default[direction],
|
|
@@ -1810,26 +2153,26 @@ var UpcomingEventCard = ({
|
|
|
1810
2153
|
className
|
|
1811
2154
|
),
|
|
1812
2155
|
children: [
|
|
1813
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
1814
|
-
showImage && image && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadProps(__spreadValues({}, image), { className:
|
|
2156
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx22__default.default("card-content", UpcomingEventCard_module_default["event-card-content"]), children: [
|
|
2157
|
+
showImage && image && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadProps(__spreadValues({}, image), { className: clsx22__default.default("card-image", UpcomingEventCard_module_default["event-card-image"]) })),
|
|
1815
2158
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1816
2159
|
"div",
|
|
1817
2160
|
{
|
|
1818
|
-
className:
|
|
2161
|
+
className: clsx22__default.default(
|
|
1819
2162
|
"card-text-content",
|
|
1820
2163
|
UpcomingEventCard_module_default["event-card-text-content"],
|
|
1821
2164
|
(!showImage || !hasImage) && UpcomingEventCard_module_default["event-card-show-image"]
|
|
1822
2165
|
),
|
|
1823
2166
|
children: [
|
|
1824
2167
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: UpcomingEventCard_module_default.date, children: date }),
|
|
1825
|
-
title && /* @__PURE__ */ jsxRuntime.jsx("h3", { className:
|
|
2168
|
+
title && /* @__PURE__ */ jsxRuntime.jsx("h3", { className: clsx22__default.default("card-text-title"), children: title }),
|
|
1826
2169
|
location && /* @__PURE__ */ jsxRuntime.jsx("span", { className: UpcomingEventCard_module_default.location, children: location }),
|
|
1827
|
-
description && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
2170
|
+
description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx22__default.default("card-text-description", UpcomingEventCard_module_default.description), children: description }),
|
|
1828
2171
|
cta && cta.url && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1829
2172
|
Button,
|
|
1830
2173
|
{
|
|
1831
2174
|
variant: "secondary",
|
|
1832
|
-
className:
|
|
2175
|
+
className: clsx22__default.default(
|
|
1833
2176
|
"card-cta",
|
|
1834
2177
|
UpcomingEventCard_module_default["event-card-cta"],
|
|
1835
2178
|
!hasCTAandImage && UpcomingEventCard_module_default.hidden
|
|
@@ -1848,12 +2191,12 @@ var UpcomingEventCard = ({
|
|
|
1848
2191
|
cta && cta.url && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1849
2192
|
"div",
|
|
1850
2193
|
{
|
|
1851
|
-
className:
|
|
2194
|
+
className: clsx22__default.default("card-footer", UpcomingEventCard_module_default["event-card-footer"], hasImage && UpcomingEventCard_module_default.hidden),
|
|
1852
2195
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1853
2196
|
Button,
|
|
1854
2197
|
{
|
|
1855
2198
|
variant: "secondary",
|
|
1856
|
-
className:
|
|
2199
|
+
className: clsx22__default.default("card-cta", UpcomingEventCard_module_default["event-card-cta"]),
|
|
1857
2200
|
fullWidth: isBelowMobile,
|
|
1858
2201
|
href: cta.url,
|
|
1859
2202
|
icon: cta.icon,
|
|
@@ -1890,7 +2233,7 @@ var Carousel = (_a) => {
|
|
|
1890
2233
|
},
|
|
1891
2234
|
role: "region",
|
|
1892
2235
|
"aria-label": ariaLabel,
|
|
1893
|
-
className:
|
|
2236
|
+
className: clsx22__default.default(Carousel_module_default.carousel, className),
|
|
1894
2237
|
spaceBetween: 0,
|
|
1895
2238
|
slidesPerView: "auto",
|
|
1896
2239
|
modules: [modules.FreeMode, modules.A11y],
|
|
@@ -1900,7 +2243,7 @@ var Carousel = (_a) => {
|
|
|
1900
2243
|
children: slides.map((slide, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1901
2244
|
react$1.SwiperSlide,
|
|
1902
2245
|
{
|
|
1903
|
-
className:
|
|
2246
|
+
className: clsx22__default.default(Carousel_module_default["carousel-item"], props.slideClass),
|
|
1904
2247
|
children: slide
|
|
1905
2248
|
},
|
|
1906
2249
|
index
|
|
@@ -1950,13 +2293,13 @@ var EventList = ({
|
|
|
1950
2293
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1951
2294
|
"div",
|
|
1952
2295
|
{
|
|
1953
|
-
className:
|
|
2296
|
+
className: clsx22__default.default("event-list-module", EventList_module_default["event-list-module"], className),
|
|
1954
2297
|
style: {
|
|
1955
2298
|
backgroundColor
|
|
1956
2299
|
},
|
|
1957
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className:
|
|
2300
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: clsx22__default.default(EventList_module_default["event-list-container"]), children: [
|
|
1958
2301
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: EventList_module_default["event-list-header-container"], children: [
|
|
1959
|
-
titleNode && /* @__PURE__ */ jsxRuntime.jsx("h2", { className:
|
|
2302
|
+
titleNode && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: clsx22__default.default(EventList_module_default["event-list-title"]), children: titleNode }),
|
|
1960
2303
|
cta && cta.url && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1961
2304
|
Button,
|
|
1962
2305
|
{
|
|
@@ -1973,7 +2316,7 @@ var EventList = ({
|
|
|
1973
2316
|
Carousel,
|
|
1974
2317
|
{
|
|
1975
2318
|
"aria-label": "Upcoming events",
|
|
1976
|
-
wrapperClass:
|
|
2319
|
+
wrapperClass: clsx22__default.default(EventList_module_default["carousel-wrapper"], EventList_module_default[variant]),
|
|
1977
2320
|
slideClass: EventList_module_default["carousel-list-item"],
|
|
1978
2321
|
spaceBetween: 16,
|
|
1979
2322
|
slides: items.map((item) => {
|
|
@@ -1981,7 +2324,7 @@ var EventList = ({
|
|
|
1981
2324
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1982
2325
|
UpcomingEventCard,
|
|
1983
2326
|
__spreadValues({
|
|
1984
|
-
className:
|
|
2327
|
+
className: clsx22__default.default(EventList_module_default["event-card"]),
|
|
1985
2328
|
direction: "vertical",
|
|
1986
2329
|
showImage: false
|
|
1987
2330
|
}, item),
|
|
@@ -1994,17 +2337,17 @@ var EventList = ({
|
|
|
1994
2337
|
"ul",
|
|
1995
2338
|
{
|
|
1996
2339
|
"aria-label": "Upcoming events",
|
|
1997
|
-
className:
|
|
2340
|
+
className: clsx22__default.default(EventList_module_default["event-list-wrapper"], EventList_module_default["horizontal"], EventList_module_default[variant]),
|
|
1998
2341
|
children: items == null ? void 0 : items.map((item, index) => {
|
|
1999
2342
|
var _a2, _b, _c;
|
|
2000
2343
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2001
2344
|
"li",
|
|
2002
2345
|
{
|
|
2003
|
-
className:
|
|
2346
|
+
className: clsx22__default.default(EventList_module_default["card-list-item"]),
|
|
2004
2347
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2005
2348
|
UpcomingEventCard,
|
|
2006
2349
|
__spreadProps(__spreadValues({}, item), {
|
|
2007
|
-
className:
|
|
2350
|
+
className: clsx22__default.default(EventList_module_default["card-item"]),
|
|
2008
2351
|
showImage: false,
|
|
2009
2352
|
direction: "vertical"
|
|
2010
2353
|
})
|
|
@@ -2019,7 +2362,7 @@ var EventList = ({
|
|
|
2019
2362
|
"ul",
|
|
2020
2363
|
{
|
|
2021
2364
|
"aria-label": "Upcoming events",
|
|
2022
|
-
className:
|
|
2365
|
+
className: clsx22__default.default(EventList_module_default["event-list-wrapper"], EventList_module_default[listDirection]),
|
|
2023
2366
|
children: items == null ? void 0 : items.map((item, index) => {
|
|
2024
2367
|
var _a2, _b, _c;
|
|
2025
2368
|
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);
|
|
@@ -2035,12 +2378,6 @@ var EventList = ({
|
|
|
2035
2378
|
var EventList2 = Object.assign(EventList, {
|
|
2036
2379
|
Title: EventListTitle
|
|
2037
2380
|
});
|
|
2038
|
-
var Text = (_a) => {
|
|
2039
|
-
var _b = _a, { tag = "p", promoteToH1 = false, ref, children } = _b, props = __objRest(_b, ["tag", "promoteToH1", "ref", "children"]);
|
|
2040
|
-
const Component = promoteToH1 ? "h1" : tag;
|
|
2041
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Component, __spreadProps(__spreadValues({ ref }, props), { children }));
|
|
2042
|
-
};
|
|
2043
|
-
Text.displayName = "Text";
|
|
2044
2381
|
|
|
2045
2382
|
// src/widgets/TextEvent/TextEvent.module.scss
|
|
2046
2383
|
var TextEvent_module_default = {
|
|
@@ -2072,9 +2409,9 @@ var TextEvent = (props) => {
|
|
|
2072
2409
|
});
|
|
2073
2410
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
2074
2411
|
const richTextNode = (_b = slots.richText) != null ? _b : richText;
|
|
2075
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(Container, { className:
|
|
2412
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: clsx22__default.default(TextEvent_module_default.textEvent, className), children: [
|
|
2076
2413
|
/* @__PURE__ */ jsxRuntime.jsx(Text, { tag: "h2", className: TextEvent_module_default.title, children: titleNode }),
|
|
2077
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
2414
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx22__default.default(TextEvent_module_default.richText, TextEvent_module_default[variant != null ? variant : ""]), children: richTextNode })
|
|
2078
2415
|
] });
|
|
2079
2416
|
};
|
|
2080
2417
|
|
|
@@ -2105,7 +2442,7 @@ var TextBody = (props) => {
|
|
|
2105
2442
|
});
|
|
2106
2443
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
2107
2444
|
const bodyNode = (_b = slots.body) != null ? _b : body;
|
|
2108
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(Container, { className:
|
|
2445
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: clsx22__default.default(TextBody_module_default.textBody, className), children: [
|
|
2109
2446
|
titleNode && /* @__PURE__ */ jsxRuntime.jsx(Text, { tag: "h2", className: TextBody_module_default.title, children: titleNode }),
|
|
2110
2447
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: TextBody_module_default.body, children: bodyNode })
|
|
2111
2448
|
] });
|
|
@@ -2148,7 +2485,7 @@ var TextCenterCtaInBottom = ({
|
|
|
2148
2485
|
});
|
|
2149
2486
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
2150
2487
|
const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
|
|
2151
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
2488
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx22__default.default(TextCenterCtaInBottom_module_default.textCenterCta, className), children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: TextCenterCtaInBottom_module_default.container, children: [
|
|
2152
2489
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: TextCenterCtaInBottom_module_default.content, children: [
|
|
2153
2490
|
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: TextCenterCtaInBottom_module_default.title, children: titleNode }),
|
|
2154
2491
|
subtitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: TextCenterCtaInBottom_module_default.subtitle, children: subtitleNode })
|
|
@@ -2156,7 +2493,7 @@ var TextCenterCtaInBottom = ({
|
|
|
2156
2493
|
!!(ctas == null ? void 0 : ctas.length) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2157
2494
|
"div",
|
|
2158
2495
|
{
|
|
2159
|
-
className:
|
|
2496
|
+
className: clsx22__default.default(
|
|
2160
2497
|
TextCenterCtaInBottom_module_default.ctaWrapper,
|
|
2161
2498
|
ctas.every((cta) => !cta.label && cta.logo) && TextCenterCtaInBottom_module_default.iconOnly
|
|
2162
2499
|
),
|
|
@@ -2182,17 +2519,392 @@ var TextCenterCtaInBottom2 = Object.assign(TextCenterCtaInBottom, {
|
|
|
2182
2519
|
Title: TextCenterCtaInBottomTitle,
|
|
2183
2520
|
Subtitle: TextCenterCtaInBottomSubtitle
|
|
2184
2521
|
});
|
|
2522
|
+
|
|
2523
|
+
// src/widgets/ResourcesGridList/ResourcesGridList.module.scss
|
|
2524
|
+
var ResourcesGridList_module_default = {
|
|
2525
|
+
widget: "ResourcesGridList_module_widget",
|
|
2526
|
+
filterBar: "ResourcesGridList_module_filterBar",
|
|
2527
|
+
viewToggle: "ResourcesGridList_module_viewToggle",
|
|
2528
|
+
filterActions: "ResourcesGridList_module_filterActions",
|
|
2529
|
+
chip: "ResourcesGridList_module_chip",
|
|
2530
|
+
active: "ResourcesGridList_module_active",
|
|
2531
|
+
chipLabel: "ResourcesGridList_module_chipLabel",
|
|
2532
|
+
dropdownWrapper: "ResourcesGridList_module_dropdownWrapper",
|
|
2533
|
+
searchExpanded: "ResourcesGridList_module_searchExpanded",
|
|
2534
|
+
searchExpand: "ResourcesGridList_module_searchExpand",
|
|
2535
|
+
searchCollapsing: "ResourcesGridList_module_searchCollapsing",
|
|
2536
|
+
searchCollapse: "ResourcesGridList_module_searchCollapse",
|
|
2537
|
+
searchIconInner: "ResourcesGridList_module_searchIconInner",
|
|
2538
|
+
searchInput: "ResourcesGridList_module_searchInput",
|
|
2539
|
+
dropdownPanel: "ResourcesGridList_module_dropdownPanel",
|
|
2540
|
+
dropdownOption: "ResourcesGridList_module_dropdownOption",
|
|
2541
|
+
selected: "ResourcesGridList_module_selected",
|
|
2542
|
+
content: "ResourcesGridList_module_content",
|
|
2543
|
+
mobileSidebarOverlay: "ResourcesGridList_module_mobileSidebarOverlay",
|
|
2544
|
+
mobileSidebarOverlayOpen: "ResourcesGridList_module_mobileSidebarOverlayOpen",
|
|
2545
|
+
mobileCategoriesPanel: "ResourcesGridList_module_mobileCategoriesPanel",
|
|
2546
|
+
mobileCategoriesList: "ResourcesGridList_module_mobileCategoriesList",
|
|
2547
|
+
mobileSidebarItem: "ResourcesGridList_module_mobileSidebarItem",
|
|
2548
|
+
mobileSidebarCloseColumn: "ResourcesGridList_module_mobileSidebarCloseColumn",
|
|
2549
|
+
sidebar: "ResourcesGridList_module_sidebar",
|
|
2550
|
+
sidebarItem: "ResourcesGridList_module_sidebarItem",
|
|
2551
|
+
sidebarMobile: "ResourcesGridList_module_sidebarMobile",
|
|
2552
|
+
hamburger: "ResourcesGridList_module_hamburger",
|
|
2553
|
+
cardsArea: "ResourcesGridList_module_cardsArea",
|
|
2554
|
+
grid: "ResourcesGridList_module_grid",
|
|
2555
|
+
list: "ResourcesGridList_module_list",
|
|
2556
|
+
cardGrid: "ResourcesGridList_module_cardGrid",
|
|
2557
|
+
cardBody: "ResourcesGridList_module_cardBody",
|
|
2558
|
+
cardIconTitle: "ResourcesGridList_module_cardIconTitle",
|
|
2559
|
+
cardTitle: "ResourcesGridList_module_cardTitle",
|
|
2560
|
+
cardMeta: "ResourcesGridList_module_cardMeta",
|
|
2561
|
+
cardDate: "ResourcesGridList_module_cardDate",
|
|
2562
|
+
cardList: "ResourcesGridList_module_cardList",
|
|
2563
|
+
cardListLeft: "ResourcesGridList_module_cardListLeft",
|
|
2564
|
+
cardListRight: "ResourcesGridList_module_cardListRight",
|
|
2565
|
+
notificationDot: "ResourcesGridList_module_notificationDot",
|
|
2566
|
+
iconWrapper: "ResourcesGridList_module_iconWrapper",
|
|
2567
|
+
pagination: "ResourcesGridList_module_pagination",
|
|
2568
|
+
pageArrow: "ResourcesGridList_module_pageArrow",
|
|
2569
|
+
pageDotActive: "ResourcesGridList_module_pageDotActive",
|
|
2570
|
+
pageDot: "ResourcesGridList_module_pageDot"
|
|
2571
|
+
};
|
|
2572
|
+
var FILTER_OPTIONS = [
|
|
2573
|
+
{ value: "link", label: "Link", icon: "externalLink" },
|
|
2574
|
+
{ value: "pdf", label: "PDF", icon: "pdf" }
|
|
2575
|
+
];
|
|
2576
|
+
var SORT_OPTIONS = [
|
|
2577
|
+
{ value: "latest", label: "Latest" },
|
|
2578
|
+
{ value: "oldest", label: "Oldest" },
|
|
2579
|
+
{ value: "az", label: "A \u2192 Z" },
|
|
2580
|
+
{ value: "za", label: "Z \u2192 A" }
|
|
2581
|
+
];
|
|
2582
|
+
function FilterBar({
|
|
2583
|
+
view,
|
|
2584
|
+
onViewChange,
|
|
2585
|
+
isMobile,
|
|
2586
|
+
filterValue,
|
|
2587
|
+
onFilterChange,
|
|
2588
|
+
sortValue,
|
|
2589
|
+
onSortChange
|
|
2590
|
+
}) {
|
|
2591
|
+
const [openDropdown, setOpenDropdown] = React62.useState(null);
|
|
2592
|
+
const [searchState, setSearchState] = React62.useState("closed");
|
|
2593
|
+
const [searchQuery, setSearchQuery] = React62.useState("");
|
|
2594
|
+
const filterRef = React62.useRef(null);
|
|
2595
|
+
const sortRef = React62.useRef(null);
|
|
2596
|
+
const searchInputRef = React62.useRef(null);
|
|
2597
|
+
const closeSearch = () => {
|
|
2598
|
+
setSearchState("closing");
|
|
2599
|
+
setSearchQuery("");
|
|
2600
|
+
};
|
|
2601
|
+
React62.useEffect(() => {
|
|
2602
|
+
const handleMouseDown = (e) => {
|
|
2603
|
+
var _a, _b;
|
|
2604
|
+
const target = e.target;
|
|
2605
|
+
if (((_a = filterRef.current) == null ? void 0 : _a.contains(target)) || ((_b = sortRef.current) == null ? void 0 : _b.contains(target))) return;
|
|
2606
|
+
setOpenDropdown(null);
|
|
2607
|
+
};
|
|
2608
|
+
document.addEventListener("mousedown", handleMouseDown);
|
|
2609
|
+
return () => document.removeEventListener("mousedown", handleMouseDown);
|
|
2610
|
+
}, []);
|
|
2611
|
+
React62.useEffect(() => {
|
|
2612
|
+
var _a;
|
|
2613
|
+
if (searchState === "open") (_a = searchInputRef.current) == null ? void 0 : _a.focus();
|
|
2614
|
+
}, [searchState]);
|
|
2615
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: ResourcesGridList_module_default.filterBar, children: [
|
|
2616
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: ResourcesGridList_module_default.viewToggle, children: [
|
|
2617
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
2618
|
+
"button",
|
|
2619
|
+
{
|
|
2620
|
+
type: "button",
|
|
2621
|
+
className: clsx22__default.default(ResourcesGridList_module_default.chip, view === "grid" && ResourcesGridList_module_default.active),
|
|
2622
|
+
onClick: () => onViewChange("grid"),
|
|
2623
|
+
"aria-pressed": view === "grid",
|
|
2624
|
+
children: [
|
|
2625
|
+
/* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "grid", size: 20, "aria-hidden": "true" }),
|
|
2626
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: ResourcesGridList_module_default.chipLabel, children: "Grid" })
|
|
2627
|
+
]
|
|
2628
|
+
}
|
|
2629
|
+
),
|
|
2630
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
2631
|
+
"button",
|
|
2632
|
+
{
|
|
2633
|
+
type: "button",
|
|
2634
|
+
className: clsx22__default.default(ResourcesGridList_module_default.chip, view === "list" && ResourcesGridList_module_default.active),
|
|
2635
|
+
onClick: () => onViewChange("list"),
|
|
2636
|
+
"aria-pressed": view === "list",
|
|
2637
|
+
children: [
|
|
2638
|
+
/* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "list", size: 20, "aria-hidden": "true" }),
|
|
2639
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: ResourcesGridList_module_default.chipLabel, children: "List" })
|
|
2640
|
+
]
|
|
2641
|
+
}
|
|
2642
|
+
)
|
|
2643
|
+
] }),
|
|
2644
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: ResourcesGridList_module_default.filterActions, children: [
|
|
2645
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: ResourcesGridList_module_default.dropdownWrapper, ref: filterRef, children: [
|
|
2646
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
2647
|
+
"button",
|
|
2648
|
+
{
|
|
2649
|
+
type: "button",
|
|
2650
|
+
className: clsx22__default.default(ResourcesGridList_module_default.chip, filterValue !== "all" && ResourcesGridList_module_default.active),
|
|
2651
|
+
onClick: () => setOpenDropdown(openDropdown === "filter" ? null : "filter"),
|
|
2652
|
+
"aria-expanded": openDropdown === "filter",
|
|
2653
|
+
children: [
|
|
2654
|
+
/* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "filter", size: 20, "aria-hidden": "true" }),
|
|
2655
|
+
!isMobile && /* @__PURE__ */ jsxRuntime.jsx("span", { className: ResourcesGridList_module_default.chipLabel, children: "Filter" })
|
|
2656
|
+
]
|
|
2657
|
+
}
|
|
2658
|
+
),
|
|
2659
|
+
openDropdown === "filter" && /* @__PURE__ */ jsxRuntime.jsx("div", { className: ResourcesGridList_module_default.dropdownPanel, role: "listbox", "aria-label": "Filter by type", children: FILTER_OPTIONS.map((opt) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2660
|
+
"button",
|
|
2661
|
+
{
|
|
2662
|
+
type: "button",
|
|
2663
|
+
role: "option",
|
|
2664
|
+
"aria-selected": filterValue === opt.value,
|
|
2665
|
+
className: clsx22__default.default(
|
|
2666
|
+
ResourcesGridList_module_default.dropdownOption,
|
|
2667
|
+
filterValue === opt.value && ResourcesGridList_module_default.selected
|
|
2668
|
+
),
|
|
2669
|
+
onClick: () => {
|
|
2670
|
+
onFilterChange(filterValue === opt.value ? "all" : opt.value);
|
|
2671
|
+
setOpenDropdown(null);
|
|
2672
|
+
},
|
|
2673
|
+
children: [
|
|
2674
|
+
/* @__PURE__ */ jsxRuntime.jsx(Icon, { type: opt.icon, size: 20, "aria-hidden": "true" }),
|
|
2675
|
+
opt.label
|
|
2676
|
+
]
|
|
2677
|
+
},
|
|
2678
|
+
opt.value
|
|
2679
|
+
)) })
|
|
2680
|
+
] }),
|
|
2681
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: ResourcesGridList_module_default.dropdownWrapper, ref: sortRef, children: [
|
|
2682
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
2683
|
+
"button",
|
|
2684
|
+
{
|
|
2685
|
+
type: "button",
|
|
2686
|
+
className: ResourcesGridList_module_default.chip,
|
|
2687
|
+
onClick: () => setOpenDropdown(openDropdown === "sort" ? null : "sort"),
|
|
2688
|
+
"aria-expanded": openDropdown === "sort",
|
|
2689
|
+
children: [
|
|
2690
|
+
/* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "internalFilter", size: 20, "aria-hidden": "true" }),
|
|
2691
|
+
!isMobile && /* @__PURE__ */ jsxRuntime.jsx("span", { className: ResourcesGridList_module_default.chipLabel, children: "Sort" })
|
|
2692
|
+
]
|
|
2693
|
+
}
|
|
2694
|
+
),
|
|
2695
|
+
openDropdown === "sort" && /* @__PURE__ */ jsxRuntime.jsx("div", { className: ResourcesGridList_module_default.dropdownPanel, role: "listbox", "aria-label": "Sort by", children: SORT_OPTIONS.map((opt) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2696
|
+
"button",
|
|
2697
|
+
{
|
|
2698
|
+
type: "button",
|
|
2699
|
+
role: "option",
|
|
2700
|
+
"aria-selected": sortValue === opt.value,
|
|
2701
|
+
className: clsx22__default.default(
|
|
2702
|
+
ResourcesGridList_module_default.dropdownOption,
|
|
2703
|
+
sortValue === opt.value && ResourcesGridList_module_default.selected
|
|
2704
|
+
),
|
|
2705
|
+
onClick: () => {
|
|
2706
|
+
onSortChange(opt.value);
|
|
2707
|
+
setOpenDropdown(null);
|
|
2708
|
+
},
|
|
2709
|
+
children: opt.label
|
|
2710
|
+
},
|
|
2711
|
+
opt.value
|
|
2712
|
+
)) })
|
|
2713
|
+
] }),
|
|
2714
|
+
searchState !== "closed" ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2715
|
+
"div",
|
|
2716
|
+
{
|
|
2717
|
+
className: clsx22__default.default(
|
|
2718
|
+
ResourcesGridList_module_default.searchExpanded,
|
|
2719
|
+
searchState === "closing" && ResourcesGridList_module_default.searchCollapsing
|
|
2720
|
+
),
|
|
2721
|
+
onAnimationEnd: () => {
|
|
2722
|
+
if (searchState === "closing") setSearchState("closed");
|
|
2723
|
+
},
|
|
2724
|
+
children: [
|
|
2725
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: ResourcesGridList_module_default.searchIconInner, children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "search", size: 20, "aria-hidden": "true" }) }),
|
|
2726
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2727
|
+
"input",
|
|
2728
|
+
{
|
|
2729
|
+
ref: searchInputRef,
|
|
2730
|
+
type: "text",
|
|
2731
|
+
className: ResourcesGridList_module_default.searchInput,
|
|
2732
|
+
placeholder: "Search\u2026",
|
|
2733
|
+
value: searchQuery,
|
|
2734
|
+
onChange: (e) => setSearchQuery(e.target.value),
|
|
2735
|
+
onKeyDown: (e) => {
|
|
2736
|
+
if (e.key === "Escape") closeSearch();
|
|
2737
|
+
},
|
|
2738
|
+
onBlur: closeSearch
|
|
2739
|
+
}
|
|
2740
|
+
)
|
|
2741
|
+
]
|
|
2742
|
+
}
|
|
2743
|
+
) : /* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", className: ResourcesGridList_module_default.chip, onClick: () => setSearchState("open"), children: [
|
|
2744
|
+
/* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "search", size: 20, "aria-hidden": "true" }),
|
|
2745
|
+
!isMobile && /* @__PURE__ */ jsxRuntime.jsx("span", { className: ResourcesGridList_module_default.chipLabel, children: "Search" })
|
|
2746
|
+
] })
|
|
2747
|
+
] })
|
|
2748
|
+
] });
|
|
2749
|
+
}
|
|
2750
|
+
var Sidebar = ({ categories, isMobile, onToggle }) => {
|
|
2751
|
+
if (isMobile) {
|
|
2752
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: ResourcesGridList_module_default.sidebarMobile, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2753
|
+
"button",
|
|
2754
|
+
{
|
|
2755
|
+
type: "button",
|
|
2756
|
+
className: ResourcesGridList_module_default.hamburger,
|
|
2757
|
+
"aria-label": "Open categories",
|
|
2758
|
+
onClick: onToggle,
|
|
2759
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "menuBlack", size: 20, "aria-hidden": "true" })
|
|
2760
|
+
}
|
|
2761
|
+
) });
|
|
2762
|
+
}
|
|
2763
|
+
return /* @__PURE__ */ jsxRuntime.jsx("nav", { className: ResourcesGridList_module_default.sidebar, "aria-label": "Resource categories", children: /* @__PURE__ */ jsxRuntime.jsx("ul", { children: categories.map((cat, i) => {
|
|
2764
|
+
var _a;
|
|
2765
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2766
|
+
"li",
|
|
2767
|
+
{
|
|
2768
|
+
className: clsx22__default.default(ResourcesGridList_module_default.sidebarItem, cat.active && ResourcesGridList_module_default.active),
|
|
2769
|
+
children: [
|
|
2770
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: cat.label }),
|
|
2771
|
+
cat.hasNotification && /* @__PURE__ */ jsxRuntime.jsx("span", { className: ResourcesGridList_module_default.notificationDot, "aria-label": "New" })
|
|
2772
|
+
]
|
|
2773
|
+
},
|
|
2774
|
+
(_a = cat.label) != null ? _a : i
|
|
2775
|
+
);
|
|
2776
|
+
}) }) });
|
|
2777
|
+
};
|
|
2778
|
+
var ResourceIcon = ({ type }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: ResourcesGridList_module_default.iconWrapper, children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: type === "pdf" ? "pdf" : "externalLink", size: 32, "aria-hidden": "true" }) });
|
|
2779
|
+
var ResourceCardItem = ({ item, view }) => {
|
|
2780
|
+
if (view === "grid") {
|
|
2781
|
+
return /* @__PURE__ */ jsxRuntime.jsx("article", { className: ResourcesGridList_module_default.cardGrid, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: ResourcesGridList_module_default.cardBody, children: [
|
|
2782
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: ResourcesGridList_module_default.cardIconTitle, children: [
|
|
2783
|
+
/* @__PURE__ */ jsxRuntime.jsx(ResourceIcon, { type: item.type }),
|
|
2784
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: ResourcesGridList_module_default.cardTitle, children: item.title })
|
|
2785
|
+
] }),
|
|
2786
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: ResourcesGridList_module_default.cardMeta, children: [
|
|
2787
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: ResourcesGridList_module_default.cardDate, children: item.date }),
|
|
2788
|
+
item.hasNotification && /* @__PURE__ */ jsxRuntime.jsx("span", { className: ResourcesGridList_module_default.notificationDot, "aria-label": "New" })
|
|
2789
|
+
] })
|
|
2790
|
+
] }) });
|
|
2791
|
+
}
|
|
2792
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("article", { className: ResourcesGridList_module_default.cardList, children: [
|
|
2793
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: ResourcesGridList_module_default.cardListLeft, children: [
|
|
2794
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: ResourcesGridList_module_default.cardDate, children: item.date }),
|
|
2795
|
+
item.hasNotification && /* @__PURE__ */ jsxRuntime.jsx("span", { className: ResourcesGridList_module_default.notificationDot, "aria-label": "New" })
|
|
2796
|
+
] }),
|
|
2797
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: ResourcesGridList_module_default.cardListRight, children: [
|
|
2798
|
+
/* @__PURE__ */ jsxRuntime.jsx(ResourceIcon, { type: item.type }),
|
|
2799
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: ResourcesGridList_module_default.cardTitle, children: item.title })
|
|
2800
|
+
] })
|
|
2801
|
+
] });
|
|
2802
|
+
};
|
|
2803
|
+
var Pagination3 = () => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: ResourcesGridList_module_default.pagination, "aria-label": "Pagination", children: [
|
|
2804
|
+
/* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", className: ResourcesGridList_module_default.pageArrow, "aria-label": "Previous page", children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "chevronLeftBlack", size: 32, "aria-hidden": "true" }) }),
|
|
2805
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: ResourcesGridList_module_default.pageDotActive, "aria-current": "page" }),
|
|
2806
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: ResourcesGridList_module_default.pageDot }),
|
|
2807
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: ResourcesGridList_module_default.pageDot }),
|
|
2808
|
+
/* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", className: ResourcesGridList_module_default.pageArrow, "aria-label": "Next page", children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "chevronRightBlack", size: 32, "aria-hidden": "true" }) })
|
|
2809
|
+
] });
|
|
2810
|
+
var ResourcesGridList = ({
|
|
2811
|
+
className,
|
|
2812
|
+
items = [],
|
|
2813
|
+
categories = [],
|
|
2814
|
+
defaultView = "grid",
|
|
2815
|
+
defaultFilter = "all",
|
|
2816
|
+
defaultSort = "latest"
|
|
2817
|
+
}) => {
|
|
2818
|
+
const [view, setView] = React62.useState(defaultView);
|
|
2819
|
+
const [isSidebarOpen, setIsSidebarOpen] = React62.useState(false);
|
|
2820
|
+
const [filterValue, setFilterValue] = React62.useState(defaultFilter);
|
|
2821
|
+
const [sortValue, setSortValue] = React62.useState(defaultSort);
|
|
2822
|
+
const { is } = useViewPort_default();
|
|
2823
|
+
const isMobile = is("tablet", "below");
|
|
2824
|
+
const displayedItems = [...items].filter((item) => filterValue === "all" || item.type === filterValue).sort((a, b) => {
|
|
2825
|
+
if (sortValue === "latest") return new Date(b.date).getTime() - new Date(a.date).getTime();
|
|
2826
|
+
if (sortValue === "oldest") return new Date(a.date).getTime() - new Date(b.date).getTime();
|
|
2827
|
+
if (sortValue === "az") return a.title.localeCompare(b.title);
|
|
2828
|
+
if (sortValue === "za") return b.title.localeCompare(a.title);
|
|
2829
|
+
return 0;
|
|
2830
|
+
});
|
|
2831
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx22__default.default(ResourcesGridList_module_default.widget, className), children: [
|
|
2832
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2833
|
+
FilterBar,
|
|
2834
|
+
{
|
|
2835
|
+
view,
|
|
2836
|
+
onViewChange: setView,
|
|
2837
|
+
isMobile,
|
|
2838
|
+
filterValue,
|
|
2839
|
+
onFilterChange: setFilterValue,
|
|
2840
|
+
sortValue,
|
|
2841
|
+
onSortChange: setSortValue
|
|
2842
|
+
}
|
|
2843
|
+
),
|
|
2844
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: ResourcesGridList_module_default.content, children: [
|
|
2845
|
+
isMobile && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2846
|
+
"div",
|
|
2847
|
+
{
|
|
2848
|
+
className: clsx22__default.default(
|
|
2849
|
+
ResourcesGridList_module_default.mobileSidebarOverlay,
|
|
2850
|
+
isSidebarOpen && ResourcesGridList_module_default.mobileSidebarOverlayOpen
|
|
2851
|
+
),
|
|
2852
|
+
"aria-hidden": !isSidebarOpen,
|
|
2853
|
+
children: [
|
|
2854
|
+
/* @__PURE__ */ jsxRuntime.jsx("nav", { className: ResourcesGridList_module_default.mobileCategoriesPanel, "aria-label": "Resource categories", children: /* @__PURE__ */ jsxRuntime.jsx("ul", { className: ResourcesGridList_module_default.mobileCategoriesList, children: categories.map((cat, i) => {
|
|
2855
|
+
var _a;
|
|
2856
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2857
|
+
"li",
|
|
2858
|
+
{
|
|
2859
|
+
className: clsx22__default.default(ResourcesGridList_module_default.mobileSidebarItem, cat.active && ResourcesGridList_module_default.active),
|
|
2860
|
+
children: [
|
|
2861
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: cat.label }),
|
|
2862
|
+
cat.hasNotification && /* @__PURE__ */ jsxRuntime.jsx("span", { className: ResourcesGridList_module_default.notificationDot, "aria-label": "New" })
|
|
2863
|
+
]
|
|
2864
|
+
},
|
|
2865
|
+
(_a = cat.label) != null ? _a : i
|
|
2866
|
+
);
|
|
2867
|
+
}) }) }),
|
|
2868
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: ResourcesGridList_module_default.mobileSidebarCloseColumn, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2869
|
+
"button",
|
|
2870
|
+
{
|
|
2871
|
+
type: "button",
|
|
2872
|
+
className: ResourcesGridList_module_default.hamburger,
|
|
2873
|
+
"aria-label": "Close categories",
|
|
2874
|
+
onClick: () => setIsSidebarOpen(false),
|
|
2875
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "xBlack", size: 20, "aria-hidden": "true" })
|
|
2876
|
+
}
|
|
2877
|
+
) })
|
|
2878
|
+
]
|
|
2879
|
+
}
|
|
2880
|
+
),
|
|
2881
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2882
|
+
Sidebar,
|
|
2883
|
+
{
|
|
2884
|
+
categories,
|
|
2885
|
+
isMobile,
|
|
2886
|
+
onToggle: () => setIsSidebarOpen(true)
|
|
2887
|
+
}
|
|
2888
|
+
),
|
|
2889
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx22__default.default(ResourcesGridList_module_default.cardsArea, ResourcesGridList_module_default[view]), children: displayedItems.map((item, i) => {
|
|
2890
|
+
var _a;
|
|
2891
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ResourceCardItem, { item, view }, (_a = item.title) != null ? _a : i);
|
|
2892
|
+
}) })
|
|
2893
|
+
] }),
|
|
2894
|
+
/* @__PURE__ */ jsxRuntime.jsx(Pagination3, {})
|
|
2895
|
+
] });
|
|
2896
|
+
};
|
|
2185
2897
|
function useIntersectionObserver({
|
|
2186
2898
|
animateOnce = false,
|
|
2187
2899
|
options = {}
|
|
2188
2900
|
} = {}) {
|
|
2189
|
-
const observeRef =
|
|
2190
|
-
const [isVisible, setIsVisible] =
|
|
2901
|
+
const observeRef = React62.useRef(null);
|
|
2902
|
+
const [isVisible, setIsVisible] = React62.useState(false);
|
|
2191
2903
|
if (typeof IntersectionObserver === "undefined") {
|
|
2192
2904
|
console.warn("IntersectionObserver is not supported in this browser.");
|
|
2193
2905
|
return { observeRef, isVisible: true };
|
|
2194
2906
|
}
|
|
2195
|
-
|
|
2907
|
+
React62.useEffect(() => {
|
|
2196
2908
|
const currentRef = observeRef.current;
|
|
2197
2909
|
if (!currentRef) return;
|
|
2198
2910
|
const observer = new IntersectionObserver((entries) => {
|
|
@@ -2226,12 +2938,14 @@ exports.HeroBanner = HeroBanner2;
|
|
|
2226
2938
|
exports.HeroBannerCarousel = HeroBannerCarousel;
|
|
2227
2939
|
exports.Icon = Icon;
|
|
2228
2940
|
exports.InfoCard = InfoCard2;
|
|
2941
|
+
exports.InternalBrandsTab = InternalBrandsTab2;
|
|
2229
2942
|
exports.MiniBanner = MiniBanner2;
|
|
2230
2943
|
exports.MiniSectionCta = MiniSectionCta2;
|
|
2231
2944
|
exports.Pagination = Pagination;
|
|
2232
2945
|
exports.Picture = Picture;
|
|
2233
2946
|
exports.PracticeCard = PracticeCard;
|
|
2234
2947
|
exports.PracticePathCards = PracticePathCards2;
|
|
2948
|
+
exports.ResourcesGridList = ResourcesGridList;
|
|
2235
2949
|
exports.Teaser5050With3Text = Teaser5050With3Text2;
|
|
2236
2950
|
exports.Teaser5050WithCta = Teaser5050WithCta2;
|
|
2237
2951
|
exports.TextBody = TextBody2;
|