@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.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import clsx22 from 'clsx';
|
|
2
2
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
3
|
-
import
|
|
3
|
+
import React62, { forwardRef, useRef, useState, useCallback, useMemo, Children, isValidElement, useEffect } from 'react';
|
|
4
4
|
import gsap$1, { gsap } from 'gsap';
|
|
5
5
|
import { useGSAP } from '@gsap/react';
|
|
6
6
|
import { ScrollTrigger } from 'gsap/ScrollTrigger';
|
|
@@ -58,7 +58,7 @@ var Picture = (_a) => {
|
|
|
58
58
|
__spreadValues({
|
|
59
59
|
src: desktop.src,
|
|
60
60
|
alt: desktop.alt,
|
|
61
|
-
className:
|
|
61
|
+
className: clsx22(className, Picture_module_default["image-desktop"])
|
|
62
62
|
}, rest)
|
|
63
63
|
),
|
|
64
64
|
/* @__PURE__ */ jsx(
|
|
@@ -66,7 +66,7 @@ var Picture = (_a) => {
|
|
|
66
66
|
__spreadValues({
|
|
67
67
|
src: (_b2 = mobile == null ? void 0 : mobile.src) != null ? _b2 : desktop.src,
|
|
68
68
|
alt: (_c = mobile == null ? void 0 : mobile.alt) != null ? _c : desktop.alt,
|
|
69
|
-
className:
|
|
69
|
+
className: clsx22(className, Picture_module_default["image-mobile"])
|
|
70
70
|
}, rest)
|
|
71
71
|
)
|
|
72
72
|
] });
|
|
@@ -193,6 +193,8 @@ var SvgIconFilledChevronRight = (props) => /* @__PURE__ */ jsx("svg", __spreadPr
|
|
|
193
193
|
var icon_filled_chevron_right_default = SvgIconFilledChevronRight;
|
|
194
194
|
var SvgIconFilledChevronUp = (props) => /* @__PURE__ */ 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__ */ 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" }) }));
|
|
195
195
|
var icon_filled_chevron_up_default = SvgIconFilledChevronUp;
|
|
196
|
+
var SvgIconFilledChevronUpBlack = (props) => /* @__PURE__ */ 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__ */ 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" }) }));
|
|
197
|
+
var icon_filled_chevron_up_black_default = SvgIconFilledChevronUpBlack;
|
|
196
198
|
var SvgIconLeftWhite = (props) => /* @__PURE__ */ jsxs("svg", __spreadProps(__spreadValues({ width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props), { children: [
|
|
197
199
|
/* @__PURE__ */ jsx("mask", { id: "mask0_2379_35929", style: {
|
|
198
200
|
maskType: "alpha"
|
|
@@ -226,7 +228,12 @@ var SvgIconTiltedRightBlack = (props) => /* @__PURE__ */ jsxs("svg", __spreadPro
|
|
|
226
228
|
/* @__PURE__ */ jsx("g", { mask: "url(#mask0_901_1704)", children: /* @__PURE__ */ 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" }) })
|
|
227
229
|
] }));
|
|
228
230
|
var icon_tilted_right_black_default = SvgIconTiltedRightBlack;
|
|
229
|
-
var SvgIconTiltedRightWhite = (props) => /* @__PURE__ */
|
|
231
|
+
var SvgIconTiltedRightWhite = (props) => /* @__PURE__ */ jsxs("svg", __spreadProps(__spreadValues({ width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props), { children: [
|
|
232
|
+
/* @__PURE__ */ jsx("mask", { id: "mask0_901_1706", style: {
|
|
233
|
+
maskType: "alpha"
|
|
234
|
+
}, maskUnits: "userSpaceOnUse", x: 0, y: 0, width: 24, height: 24, children: /* @__PURE__ */ jsx("rect", { width: 24, height: 24, fill: "#D9D9D9" }) }),
|
|
235
|
+
/* @__PURE__ */ jsx("g", { mask: "url(#mask0_901_1706)", children: /* @__PURE__ */ 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" }) })
|
|
236
|
+
] }));
|
|
230
237
|
var icon_tilted_right_white_default = SvgIconTiltedRightWhite;
|
|
231
238
|
var SvgIconUpChevronUpWhite = (props) => /* @__PURE__ */ 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__ */ jsx("path", { d: "M6 15L12 9L18 15", stroke: "white", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }) }));
|
|
232
239
|
var icon_up_chevron_up_white_default = SvgIconUpChevronUpWhite;
|
|
@@ -272,6 +279,30 @@ var SvgIconXWhite = (props) => /* @__PURE__ */ jsxs("svg", __spreadProps(__sprea
|
|
|
272
279
|
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "clip0_942_1878", children: /* @__PURE__ */ jsx("rect", { width: 24, height: 24, fill: "white" }) }) })
|
|
273
280
|
] }));
|
|
274
281
|
var icon_x_white_default = SvgIconXWhite;
|
|
282
|
+
var SvgIconFilter = (props) => /* @__PURE__ */ 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__ */ 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" }) }));
|
|
283
|
+
var icon_filter_default = SvgIconFilter;
|
|
284
|
+
var SvgIconInternalFilter = (props) => /* @__PURE__ */ 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__ */ jsx("path", { d: "M3 18V16H9V18H3ZM3 13V11H15V13H3ZM3 8V6H21V8H3Z", fill: "#080808" }) }));
|
|
285
|
+
var icon_internal_filter_default = SvgIconInternalFilter;
|
|
286
|
+
var SvgIconSearch = (props) => /* @__PURE__ */ 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__ */ 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" }) }));
|
|
287
|
+
var icon_search_default = SvgIconSearch;
|
|
288
|
+
var SvgIconGrid = (props) => /* @__PURE__ */ 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__ */ 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" }) }));
|
|
289
|
+
var icon_grid_default = SvgIconGrid;
|
|
290
|
+
var SvgIconList = (props) => /* @__PURE__ */ 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__ */ 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" }) }));
|
|
291
|
+
var icon_list_default = SvgIconList;
|
|
292
|
+
var SvgIconChevronLeftBlack = (props) => /* @__PURE__ */ 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__ */ 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" }) }));
|
|
293
|
+
var icon_chevron_left_black_default = SvgIconChevronLeftBlack;
|
|
294
|
+
var SvgIconChevronRightBlack = (props) => /* @__PURE__ */ 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__ */ 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" }) }));
|
|
295
|
+
var icon_chevron_right_black_default = SvgIconChevronRightBlack;
|
|
296
|
+
var SvgIconPdf = (props) => /* @__PURE__ */ jsxs("svg", __spreadProps(__spreadValues({ width: 33, height: 32, viewBox: "0 0 33 32", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props), { children: [
|
|
297
|
+
/* @__PURE__ */ jsx("g", { clipPath: "url(#clip0_7870_13608)", children: /* @__PURE__ */ 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" }) }),
|
|
298
|
+
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "clip0_7870_13608", children: /* @__PURE__ */ jsx("rect", { width: 33, height: 31.7308, fill: "white" }) }) })
|
|
299
|
+
] }));
|
|
300
|
+
var icon_pdf_default = SvgIconPdf;
|
|
301
|
+
var SvgIconExternalLink = (props) => /* @__PURE__ */ jsxs("svg", __spreadProps(__spreadValues({ width: 33, height: 33, viewBox: "0 0 33 33", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props), { children: [
|
|
302
|
+
/* @__PURE__ */ 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" }),
|
|
303
|
+
/* @__PURE__ */ 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" })
|
|
304
|
+
] }));
|
|
305
|
+
var icon_external_link_default = SvgIconExternalLink;
|
|
275
306
|
var svgs = {
|
|
276
307
|
/* Card */
|
|
277
308
|
ads: icon_ads_default,
|
|
@@ -292,6 +323,8 @@ var svgs = {
|
|
|
292
323
|
tech: icon_tech_default,
|
|
293
324
|
work: icon_work_default,
|
|
294
325
|
workhome: icon_workhome_default,
|
|
326
|
+
pdf: icon_pdf_default,
|
|
327
|
+
externalLink: icon_external_link_default,
|
|
295
328
|
/* Button */
|
|
296
329
|
blankCheckbox: icon_blank_checkbox_default,
|
|
297
330
|
blankCheckboxWhite: icon_blank_checkbox_white_default,
|
|
@@ -307,6 +340,7 @@ var svgs = {
|
|
|
307
340
|
filledChevronLeft: icon_filled_chevron_left_default,
|
|
308
341
|
filledChevronRight: icon_filled_chevron_right_default,
|
|
309
342
|
filledChevronUp: icon_filled_chevron_up_default,
|
|
343
|
+
filledChevronUpBlack: icon_filled_chevron_up_black_default,
|
|
310
344
|
leftWhite: icon_left_white_default,
|
|
311
345
|
mailBlack: icon_mail_black_default,
|
|
312
346
|
rightBlack: icon_right_black_default,
|
|
@@ -317,6 +351,13 @@ var svgs = {
|
|
|
317
351
|
upChevronWhite: icon_up_chevron_white_default,
|
|
318
352
|
watchBlack: icon_watch_black_default,
|
|
319
353
|
watchWhite: icon_watch_white_default,
|
|
354
|
+
filter: icon_filter_default,
|
|
355
|
+
internalFilter: icon_internal_filter_default,
|
|
356
|
+
search: icon_search_default,
|
|
357
|
+
grid: icon_grid_default,
|
|
358
|
+
list: icon_list_default,
|
|
359
|
+
chevronLeftBlack: icon_chevron_left_black_default,
|
|
360
|
+
chevronRightBlack: icon_chevron_right_black_default,
|
|
320
361
|
/* Dropdown */
|
|
321
362
|
chevronDefault: icon_chevron_default_default,
|
|
322
363
|
chevronHovered: icon_chevron_hovered_default,
|
|
@@ -329,7 +370,7 @@ var svgs = {
|
|
|
329
370
|
xBlack: icon_x_black_default,
|
|
330
371
|
xWhite: icon_x_white_default
|
|
331
372
|
};
|
|
332
|
-
var Icon =
|
|
373
|
+
var Icon = React62.memo(
|
|
333
374
|
(_a) => {
|
|
334
375
|
var _b = _a, { type, size } = _b, props = __objRest(_b, ["type", "size"]);
|
|
335
376
|
if (type) {
|
|
@@ -355,6 +396,8 @@ var Button_module_default = {
|
|
|
355
396
|
grey: "Button_module_grey",
|
|
356
397
|
shiny: "Button_module_shiny",
|
|
357
398
|
rotateGradient: "Button_module_rotateGradient",
|
|
399
|
+
tabbutton: "Button_module_tabbutton",
|
|
400
|
+
active: "Button_module_active",
|
|
358
401
|
icon: "Button_module_icon",
|
|
359
402
|
logo: "Button_module_logo"
|
|
360
403
|
};
|
|
@@ -367,7 +410,8 @@ var Button = (_a) => {
|
|
|
367
410
|
href,
|
|
368
411
|
isExternal,
|
|
369
412
|
icon,
|
|
370
|
-
logo
|
|
413
|
+
logo,
|
|
414
|
+
isActive
|
|
371
415
|
} = _b, rest = __objRest(_b, [
|
|
372
416
|
"className",
|
|
373
417
|
"children",
|
|
@@ -376,14 +420,16 @@ var Button = (_a) => {
|
|
|
376
420
|
"href",
|
|
377
421
|
"isExternal",
|
|
378
422
|
"icon",
|
|
379
|
-
"logo"
|
|
423
|
+
"logo",
|
|
424
|
+
"isActive"
|
|
380
425
|
]);
|
|
381
426
|
const isLink = !!href;
|
|
382
427
|
const props = __spreadValues(__spreadValues({
|
|
383
|
-
className:
|
|
428
|
+
className: clsx22(
|
|
384
429
|
Button_module_default.button,
|
|
385
430
|
variant ? Button_module_default[variant] : null,
|
|
386
431
|
{ [Button_module_default.fullWidth]: !!fullWidth },
|
|
432
|
+
{ [Button_module_default.active]: !!isActive },
|
|
387
433
|
className
|
|
388
434
|
)
|
|
389
435
|
}, isLink ? { href, isExternal } : {}), rest);
|
|
@@ -611,7 +657,7 @@ var BrandsStrip = ({
|
|
|
611
657
|
"div",
|
|
612
658
|
{
|
|
613
659
|
ref: containerRef,
|
|
614
|
-
className:
|
|
660
|
+
className: clsx22(
|
|
615
661
|
BrandsStrip_module_default.brandsStrip,
|
|
616
662
|
BrandsStrip_module_default[variant],
|
|
617
663
|
{ [BrandsStrip_module_default.small]: size === "small" },
|
|
@@ -620,13 +666,13 @@ var BrandsStrip = ({
|
|
|
620
666
|
onMouseEnter: handleMouseEnter,
|
|
621
667
|
onMouseLeave: handleMouseLeave,
|
|
622
668
|
children: [
|
|
623
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
624
|
-
title && logos.length === 1 && /* @__PURE__ */ jsx("h2", { className:
|
|
669
|
+
/* @__PURE__ */ jsxs("div", { className: clsx22(BrandsStrip_module_default.container, { [BrandsStrip_module_default.blurred]: show && logos.length > 1 }), children: [
|
|
670
|
+
title && logos.length === 1 && /* @__PURE__ */ jsx("h2", { className: clsx22("body", BrandsStrip_module_default.title), children: title }),
|
|
625
671
|
logos.length > 0 && /* @__PURE__ */ jsx(
|
|
626
672
|
"div",
|
|
627
673
|
{
|
|
628
674
|
ref: marqueeRef,
|
|
629
|
-
className:
|
|
675
|
+
className: clsx22(BrandsStrip_module_default.logos, { [BrandsStrip_module_default.marqueeGSAP]: shouldAnimate }),
|
|
630
676
|
children: duplicatedLogos.map((logo, index) => /* @__PURE__ */ jsx("div", { className: BrandsStrip_module_default.logoWrapper, children: /* @__PURE__ */ jsx(Picture, __spreadValues({ className: BrandsStrip_module_default.logo }, logo)) }, `${logo.alt}-${index}`))
|
|
631
677
|
}
|
|
632
678
|
)
|
|
@@ -673,7 +719,7 @@ var Container_module_default = {
|
|
|
673
719
|
var Container = forwardRef(
|
|
674
720
|
(_a, ref) => {
|
|
675
721
|
var _b = _a, { children, className } = _b, props = __objRest(_b, ["children", "className"]);
|
|
676
|
-
return /* @__PURE__ */ jsx("div", __spreadProps(__spreadValues({ ref, className:
|
|
722
|
+
return /* @__PURE__ */ jsx("div", __spreadProps(__spreadValues({ ref, className: clsx22(Container_module_default.container, className) }, props), { children }));
|
|
677
723
|
}
|
|
678
724
|
);
|
|
679
725
|
Container.displayName = "Container";
|
|
@@ -685,7 +731,10 @@ var Card_module_default = {
|
|
|
685
731
|
content: "Card_module_content",
|
|
686
732
|
subtitle: "Card_module_subtitle",
|
|
687
733
|
light: "Card_module_light",
|
|
688
|
-
|
|
734
|
+
logoContainer: "Card_module_logoContainer",
|
|
735
|
+
logo: "Card_module_logo",
|
|
736
|
+
logoHover: "Card_module_logoHover",
|
|
737
|
+
hideLogo: "Card_module_hideLogo"
|
|
689
738
|
};
|
|
690
739
|
var Card = ({
|
|
691
740
|
className,
|
|
@@ -706,17 +755,21 @@ var Card = ({
|
|
|
706
755
|
});
|
|
707
756
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
708
757
|
const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
|
|
758
|
+
const isLink = !!(href && !label);
|
|
709
759
|
return /* @__PURE__ */ jsxs(
|
|
710
760
|
ConditionalWrapper,
|
|
711
761
|
__spreadProps(__spreadValues({
|
|
712
762
|
ref,
|
|
713
|
-
className:
|
|
763
|
+
className: clsx22(Card_module_default.card, Card_module_default[variant], className),
|
|
714
764
|
wrapper: Anchor,
|
|
715
765
|
fallback: "div",
|
|
716
|
-
condition:
|
|
766
|
+
condition: isLink
|
|
717
767
|
}, href ? { href, isExternal } : {}), {
|
|
718
768
|
children: [
|
|
719
|
-
|
|
769
|
+
/* @__PURE__ */ jsxs("div", { className: Card_module_default.logoContainer, children: [
|
|
770
|
+
(logo == null ? void 0 : logo.src) ? /* @__PURE__ */ jsx(Picture, __spreadValues({ className: clsx22(Card_module_default.logo, isLink && Card_module_default.hideLogo) }, logo)) : icon && /* @__PURE__ */ jsx(Icon, { type: icon, className: clsx22(Card_module_default.logo, isLink && Card_module_default.hideLogo) }),
|
|
771
|
+
isLink && /* @__PURE__ */ jsx(Icon, { type: "tiltedRightWhite", className: Card_module_default.logoHover })
|
|
772
|
+
] }),
|
|
720
773
|
/* @__PURE__ */ jsxs("div", { className: Card_module_default.content, children: [
|
|
721
774
|
titleNode && /* @__PURE__ */ jsx("h3", { className: "h4", children: titleNode }),
|
|
722
775
|
subtitleNode && /* @__PURE__ */ jsx("div", { className: Card_module_default.subtitle, children: subtitleNode })
|
|
@@ -749,10 +802,10 @@ var CountingCard = ({ className, title, count, image, children }) => {
|
|
|
749
802
|
title: CountingCardTitle
|
|
750
803
|
});
|
|
751
804
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
752
|
-
return /* @__PURE__ */ jsxs("div", { className:
|
|
805
|
+
return /* @__PURE__ */ jsxs("div", { className: clsx22(CountingCard_module_default["counting-card"], className), children: [
|
|
753
806
|
/* @__PURE__ */ jsxs("div", { className: CountingCard_module_default.content, children: [
|
|
754
807
|
titleNode && /* @__PURE__ */ jsx("div", { className: "body", children: titleNode }),
|
|
755
|
-
count && /* @__PURE__ */ jsx("div", { className:
|
|
808
|
+
count && /* @__PURE__ */ jsx("div", { className: clsx22(CountingCard_module_default.count, "h1"), children: count })
|
|
756
809
|
] }),
|
|
757
810
|
image && /* @__PURE__ */ jsx(Picture, __spreadValues({ className: CountingCard_module_default.logo }, image))
|
|
758
811
|
] });
|
|
@@ -784,9 +837,9 @@ var InfoCard = ({ className, title, subtitle, icon, badge, children }) => {
|
|
|
784
837
|
});
|
|
785
838
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
786
839
|
const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
|
|
787
|
-
return /* @__PURE__ */ jsxs("div", { className:
|
|
840
|
+
return /* @__PURE__ */ jsxs("div", { className: clsx22(InfoCard_module_default["info-card"], { [InfoCard_module_default.hasIcon]: !!icon }, className), children: [
|
|
788
841
|
/* @__PURE__ */ jsxs("div", { className: InfoCard_module_default.header, children: [
|
|
789
|
-
icon ? /* @__PURE__ */ jsx(Icon, { type: icon }) : badge ? /* @__PURE__ */ jsx("div", { className:
|
|
842
|
+
icon ? /* @__PURE__ */ jsx(Icon, { type: icon }) : badge ? /* @__PURE__ */ jsx("div", { className: clsx22(InfoCard_module_default.badge, "h4"), children: badge }) : null,
|
|
790
843
|
titleNode && /* @__PURE__ */ jsx("div", { className: "h4", children: titleNode })
|
|
791
844
|
] }),
|
|
792
845
|
subtitleNode && /* @__PURE__ */ jsx("div", { className: "body", children: subtitleNode })
|
|
@@ -848,7 +901,7 @@ var Pagination = ({
|
|
|
848
901
|
setActivePage(page);
|
|
849
902
|
onPageChange == null ? void 0 : onPageChange(page);
|
|
850
903
|
};
|
|
851
|
-
return /* @__PURE__ */ jsxs("div", { className:
|
|
904
|
+
return /* @__PURE__ */ jsxs("div", { className: clsx22(Pagination_module_default.pagination, className), children: [
|
|
852
905
|
!disableArrows && /* @__PURE__ */ jsx(
|
|
853
906
|
"button",
|
|
854
907
|
{
|
|
@@ -865,7 +918,7 @@ var Pagination = ({
|
|
|
865
918
|
"button",
|
|
866
919
|
{
|
|
867
920
|
onClick: () => goToPage(page),
|
|
868
|
-
className:
|
|
921
|
+
className: clsx22(Pagination_module_default.page, {
|
|
869
922
|
[Pagination_module_default.active]: activePage === page,
|
|
870
923
|
[Pagination_module_default.number]: hasNumber
|
|
871
924
|
}),
|
|
@@ -901,7 +954,7 @@ var PracticeCard_module_default = {
|
|
|
901
954
|
};
|
|
902
955
|
var PracticeCard = ({ className, title, cta, image }) => {
|
|
903
956
|
const { url: href, isExternal } = cta != null ? cta : {};
|
|
904
|
-
return /* @__PURE__ */ jsx("div", { className:
|
|
957
|
+
return /* @__PURE__ */ jsx("div", { className: clsx22(PracticeCard_module_default["practice-card"], className), children: /* @__PURE__ */ jsxs(
|
|
905
958
|
ConditionalWrapper,
|
|
906
959
|
__spreadProps(__spreadValues({
|
|
907
960
|
className: PracticeCard_module_default.wrapper,
|
|
@@ -912,7 +965,7 @@ var PracticeCard = ({ className, title, cta, image }) => {
|
|
|
912
965
|
children: [
|
|
913
966
|
image && /* @__PURE__ */ jsx(Picture, __spreadValues({ className: PracticeCard_module_default.background }, image)),
|
|
914
967
|
/* @__PURE__ */ jsxs("div", { className: PracticeCard_module_default.container, children: [
|
|
915
|
-
title && /* @__PURE__ */ jsx("div", { className:
|
|
968
|
+
title && /* @__PURE__ */ jsx("div", { className: clsx22(PracticeCard_module_default.title, "h3"), children: title }),
|
|
916
969
|
href && /* @__PURE__ */ jsxs("div", { className: PracticeCard_module_default.cta, children: [
|
|
917
970
|
/* @__PURE__ */ jsx(Icon, { className: PracticeCard_module_default.ctaRest, type: "right" }),
|
|
918
971
|
/* @__PURE__ */ jsx(Icon, { className: PracticeCard_module_default.ctaHover, type: "tiltedRight" })
|
|
@@ -1001,13 +1054,13 @@ var CardCollection = ({
|
|
|
1001
1054
|
Container,
|
|
1002
1055
|
{
|
|
1003
1056
|
ref: container,
|
|
1004
|
-
className:
|
|
1057
|
+
className: clsx22(CardCollection_module_default["card-collection"], CardCollection_module_default[variant], className),
|
|
1005
1058
|
children: [
|
|
1006
1059
|
/* @__PURE__ */ jsxs("div", { className: CardCollection_module_default.content, children: [
|
|
1007
1060
|
titleNode && /* @__PURE__ */ jsx("h2", { children: titleNode }),
|
|
1008
1061
|
subtitleNode && /* @__PURE__ */ jsx("div", { className: "subheading", children: subtitleNode })
|
|
1009
1062
|
] }),
|
|
1010
|
-
/* @__PURE__ */ jsx("div", { className: CardCollection_module_default.wrapper, children: /* @__PURE__ */ jsxs("div", { className:
|
|
1063
|
+
/* @__PURE__ */ jsx("div", { className: CardCollection_module_default.wrapper, children: /* @__PURE__ */ jsxs("div", { className: clsx22(CardCollection_module_default.cardWrapper, { [CardCollection_module_default["is-expanded"]]: isExpanded }), children: [
|
|
1011
1064
|
visibleCards.map((card, key) => /* @__PURE__ */ jsx(Card2, __spreadValues({ className: CardCollection_module_default.card, variant: theme }, card), key)),
|
|
1012
1065
|
isExamCard && hiddenCards.length > 0 && /* @__PURE__ */ jsx("div", { ref: revealWrapper, className: CardCollection_module_default["reveal-wrapper"], children: /* @__PURE__ */ jsx("div", { className: CardCollection_module_default["reveal-inner"], children: hiddenCards.map((card, key) => /* @__PURE__ */ jsx(
|
|
1013
1066
|
Card2,
|
|
@@ -1108,7 +1161,7 @@ var ContactModule = ({
|
|
|
1108
1161
|
},
|
|
1109
1162
|
{ scope: containerRef, dependencies: [blurred, animateBlur] }
|
|
1110
1163
|
);
|
|
1111
|
-
return /* @__PURE__ */ jsxs("div", { ref: containerRef, className:
|
|
1164
|
+
return /* @__PURE__ */ jsxs("div", { ref: containerRef, className: clsx22(ContactModule_module_default["contact-module"], className), children: [
|
|
1112
1165
|
blurred && /* @__PURE__ */ jsx(
|
|
1113
1166
|
"div",
|
|
1114
1167
|
{
|
|
@@ -1123,8 +1176,8 @@ var ContactModule = ({
|
|
|
1123
1176
|
/* @__PURE__ */ jsxs(Container, { className: ContactModule_module_default.container, children: [
|
|
1124
1177
|
/* @__PURE__ */ jsxs("div", { className: ContactModule_module_default.wrapper, children: [
|
|
1125
1178
|
/* @__PURE__ */ jsxs("div", { className: ContactModule_module_default.content, children: [
|
|
1126
|
-
titleNode && /* @__PURE__ */ jsx("div", { className:
|
|
1127
|
-
subtitleNode && /* @__PURE__ */ jsx("div", { className:
|
|
1179
|
+
titleNode && /* @__PURE__ */ jsx("div", { className: clsx22(ContactModule_module_default.title, "h1"), children: titleNode }),
|
|
1180
|
+
subtitleNode && /* @__PURE__ */ jsx("div", { className: clsx22(ContactModule_module_default.subtitle, "subheading"), children: subtitleNode })
|
|
1128
1181
|
] }),
|
|
1129
1182
|
/* @__PURE__ */ jsx("div", { className: ContactModule_module_default["cta-wrapper"], children: ctas == null ? void 0 : ctas.map((cta, key) => /* @__PURE__ */ jsx(
|
|
1130
1183
|
Button,
|
|
@@ -1185,7 +1238,7 @@ var Footer = ({
|
|
|
1185
1238
|
disclaimer: FooterDisclaimer
|
|
1186
1239
|
});
|
|
1187
1240
|
const titleNode = (_a = slots.disclaimer) != null ? _a : disclaimer;
|
|
1188
|
-
return /* @__PURE__ */ jsx("footer", { className:
|
|
1241
|
+
return /* @__PURE__ */ jsx("footer", { className: clsx22(Footer_module_default.footer, className), children: /* @__PURE__ */ jsxs(Container, { className: Footer_module_default.container, children: [
|
|
1189
1242
|
/* @__PURE__ */ jsxs("div", { className: Footer_module_default.bottom, children: [
|
|
1190
1243
|
/* @__PURE__ */ jsxs("div", { className: Footer_module_default["bottom-left"], children: [
|
|
1191
1244
|
supporters.length > 0 && /* @__PURE__ */ jsx("div", { className: Footer_module_default.supporters, children: /* @__PURE__ */ jsx("div", { className: Footer_module_default["supporters-logos"], children: supporters.map(
|
|
@@ -1201,7 +1254,7 @@ var Footer = ({
|
|
|
1201
1254
|
index
|
|
1202
1255
|
) : /* @__PURE__ */ jsx("div", { className: Footer_module_default["supporter-link-primary"], children: /* @__PURE__ */ jsx(Picture, __spreadValues({}, supporter.image)) }, index)
|
|
1203
1256
|
) }) }),
|
|
1204
|
-
titleNode && /* @__PURE__ */ jsx("div", { className:
|
|
1257
|
+
titleNode && /* @__PURE__ */ jsx("div", { className: clsx22(Footer_module_default.disclaimer, "p"), children: titleNode }),
|
|
1205
1258
|
copyright && /* @__PURE__ */ jsx("p", { className: Footer_module_default.copyright, children: copyright })
|
|
1206
1259
|
] }),
|
|
1207
1260
|
columns.length > 0 && /* @__PURE__ */ jsx("nav", { className: Footer_module_default["bottom-right"], children: columns.map((column, colIndex) => /* @__PURE__ */ jsx("ul", { className: Footer_module_default["nav-list"], children: column.map((link) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
|
|
@@ -1270,12 +1323,12 @@ var HeroBanner = ({
|
|
|
1270
1323
|
});
|
|
1271
1324
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
1272
1325
|
const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
|
|
1273
|
-
return /* @__PURE__ */ jsxs("div", { className:
|
|
1326
|
+
return /* @__PURE__ */ jsxs("div", { className: clsx22(HeroBanner_module_default.heroBanner, HeroBanner_module_default[variant], className), children: [
|
|
1274
1327
|
/* @__PURE__ */ jsxs("div", { className: HeroBanner_module_default.container, children: [
|
|
1275
1328
|
/* @__PURE__ */ jsxs("div", { className: HeroBanner_module_default.banner, children: [
|
|
1276
1329
|
(titleNode || subtitleNode) && /* @__PURE__ */ jsxs("div", { className: HeroBanner_module_default.text, children: [
|
|
1277
|
-
titleNode && /* @__PURE__ */ jsx("h1", { className:
|
|
1278
|
-
subtitleNode && /* @__PURE__ */ jsx("div", { className:
|
|
1330
|
+
titleNode && /* @__PURE__ */ jsx("h1", { className: clsx22(HeroBanner_module_default.title, "h1"), children: titleNode }),
|
|
1331
|
+
subtitleNode && /* @__PURE__ */ jsx("div", { className: clsx22(HeroBanner_module_default.subtitle, "subtitle"), children: subtitleNode })
|
|
1279
1332
|
] }),
|
|
1280
1333
|
cta && cta.length > 0 && !vBannerPodcast && /* @__PURE__ */ jsx("div", { className: HeroBanner_module_default.ctaContainer, children: cta.slice(0, 2).map((cta2, key) => {
|
|
1281
1334
|
return /* @__PURE__ */ jsx(
|
|
@@ -1353,7 +1406,7 @@ var HeroBannerCarousel = ({
|
|
|
1353
1406
|
const [swiperInstance, setSwiperInstance] = useState(null);
|
|
1354
1407
|
const [activeIndex, setActiveIndex] = useState(0);
|
|
1355
1408
|
if (!items.length) return null;
|
|
1356
|
-
return /* @__PURE__ */ jsx("div", { className:
|
|
1409
|
+
return /* @__PURE__ */ jsx("div", { className: clsx22(HeroBannerCarousel_module_default.heroBannerCarousel, className), children: /* @__PURE__ */ jsxs("div", { className: HeroBannerCarousel_module_default.inner, children: [
|
|
1357
1410
|
/* @__PURE__ */ jsx("div", { className: HeroBannerCarousel_module_default.swiperContainer, children: /* @__PURE__ */ jsx(
|
|
1358
1411
|
Swiper,
|
|
1359
1412
|
{
|
|
@@ -1400,7 +1453,7 @@ var HeroBannerCarousel = ({
|
|
|
1400
1453
|
/* @__PURE__ */ jsx("div", { className: HeroBannerCarousel_module_default.pagination, children: items.map((_, index) => /* @__PURE__ */ jsx(
|
|
1401
1454
|
"button",
|
|
1402
1455
|
{
|
|
1403
|
-
className:
|
|
1456
|
+
className: clsx22(HeroBannerCarousel_module_default.dot, index === activeIndex && HeroBannerCarousel_module_default.dotActive),
|
|
1404
1457
|
onClick: () => swiperInstance == null ? void 0 : swiperInstance.slideTo(index),
|
|
1405
1458
|
"aria-label": `Go to slide ${index + 1}`
|
|
1406
1459
|
},
|
|
@@ -1419,6 +1472,296 @@ var HeroBannerCarousel = ({
|
|
|
1419
1472
|
] })
|
|
1420
1473
|
] }) });
|
|
1421
1474
|
};
|
|
1475
|
+
var Text = (_a) => {
|
|
1476
|
+
var _b = _a, { tag = "p", promoteToH1 = false, ref, children } = _b, props = __objRest(_b, ["tag", "promoteToH1", "ref", "children"]);
|
|
1477
|
+
const Component = promoteToH1 ? "h1" : tag;
|
|
1478
|
+
return /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({ ref }, props), { children }));
|
|
1479
|
+
};
|
|
1480
|
+
Text.displayName = "Text";
|
|
1481
|
+
|
|
1482
|
+
// src/components/Accordion/Accordion.module.scss
|
|
1483
|
+
var Accordion_module_default = {
|
|
1484
|
+
accordionTitle: "Accordion_module_accordionTitle",
|
|
1485
|
+
accordion: "Accordion_module_accordion",
|
|
1486
|
+
accordionItem: "Accordion_module_accordionItem",
|
|
1487
|
+
accordionItemOpen: "Accordion_module_accordionItemOpen",
|
|
1488
|
+
accordionHeader: "Accordion_module_accordionHeader",
|
|
1489
|
+
accordionHeaderLeft: "Accordion_module_accordionHeaderLeft",
|
|
1490
|
+
accordionChevron: "Accordion_module_accordionChevron",
|
|
1491
|
+
accordionContent: "Accordion_module_accordionContent",
|
|
1492
|
+
accordionContentInner: "Accordion_module_accordionContentInner"
|
|
1493
|
+
};
|
|
1494
|
+
var AccordionItem = ({
|
|
1495
|
+
id,
|
|
1496
|
+
title,
|
|
1497
|
+
children,
|
|
1498
|
+
isOpen = false,
|
|
1499
|
+
onToggle,
|
|
1500
|
+
className
|
|
1501
|
+
}) => {
|
|
1502
|
+
const contentRef = useRef(null);
|
|
1503
|
+
const contentInnerRef = useRef(null);
|
|
1504
|
+
const timelineRef = useRef(null);
|
|
1505
|
+
const [contentHeight, setContentHeight] = useState(0);
|
|
1506
|
+
useEffect(() => {
|
|
1507
|
+
if (contentInnerRef.current) {
|
|
1508
|
+
setContentHeight(contentInnerRef.current.scrollHeight);
|
|
1509
|
+
}
|
|
1510
|
+
}, [children]);
|
|
1511
|
+
useEffect(() => {
|
|
1512
|
+
if (contentRef.current && contentHeight > 0) {
|
|
1513
|
+
if (timelineRef.current) {
|
|
1514
|
+
timelineRef.current.kill();
|
|
1515
|
+
}
|
|
1516
|
+
const tl = gsap$1.timeline({
|
|
1517
|
+
defaults: { duration: 0.25, ease: "power2.inOut" }
|
|
1518
|
+
});
|
|
1519
|
+
if (isOpen) {
|
|
1520
|
+
tl.to(contentRef.current, {
|
|
1521
|
+
height: contentHeight,
|
|
1522
|
+
duration: 0.25,
|
|
1523
|
+
ease: "power2.inOut",
|
|
1524
|
+
clearProps: "height"
|
|
1525
|
+
});
|
|
1526
|
+
} else {
|
|
1527
|
+
tl.to(contentRef.current, {
|
|
1528
|
+
height: 0,
|
|
1529
|
+
duration: 0.25,
|
|
1530
|
+
ease: "power2.inOut"
|
|
1531
|
+
});
|
|
1532
|
+
}
|
|
1533
|
+
timelineRef.current = tl;
|
|
1534
|
+
}
|
|
1535
|
+
}, [isOpen, contentHeight]);
|
|
1536
|
+
const handleToggle = () => {
|
|
1537
|
+
onToggle == null ? void 0 : onToggle(id);
|
|
1538
|
+
};
|
|
1539
|
+
return /* @__PURE__ */ jsxs(
|
|
1540
|
+
"div",
|
|
1541
|
+
{
|
|
1542
|
+
className: clsx22(
|
|
1543
|
+
Accordion_module_default.accordionItem,
|
|
1544
|
+
{
|
|
1545
|
+
[Accordion_module_default.accordionItemOpen]: isOpen
|
|
1546
|
+
},
|
|
1547
|
+
className
|
|
1548
|
+
),
|
|
1549
|
+
children: [
|
|
1550
|
+
/* @__PURE__ */ jsxs(
|
|
1551
|
+
"button",
|
|
1552
|
+
{
|
|
1553
|
+
className: clsx22(Accordion_module_default.accordionHeader, {
|
|
1554
|
+
[Accordion_module_default.accordionHeaderOpen]: isOpen
|
|
1555
|
+
}),
|
|
1556
|
+
onClick: handleToggle,
|
|
1557
|
+
"aria-expanded": isOpen,
|
|
1558
|
+
"aria-label": `Toggle ${title}`,
|
|
1559
|
+
children: [
|
|
1560
|
+
/* @__PURE__ */ jsx("div", { className: Accordion_module_default.accordionHeaderLeft, children: /* @__PURE__ */ jsx("span", { className: clsx22("body", Accordion_module_default.accordionTitle), children: title }) }),
|
|
1561
|
+
/* @__PURE__ */ jsx(
|
|
1562
|
+
"span",
|
|
1563
|
+
{
|
|
1564
|
+
className: clsx22(Accordion_module_default.accordionChevron, {
|
|
1565
|
+
[Accordion_module_default.accordionChevronOpen]: isOpen
|
|
1566
|
+
}),
|
|
1567
|
+
children: isOpen ? /* @__PURE__ */ jsx(Icon, { type: "filledChevronUpBlack", size: 40 }) : /* @__PURE__ */ jsx(Icon, { type: "circleChevronDown", size: 40 })
|
|
1568
|
+
}
|
|
1569
|
+
)
|
|
1570
|
+
]
|
|
1571
|
+
}
|
|
1572
|
+
),
|
|
1573
|
+
/* @__PURE__ */ jsx(
|
|
1574
|
+
"div",
|
|
1575
|
+
{
|
|
1576
|
+
ref: contentRef,
|
|
1577
|
+
className: Accordion_module_default.accordionContent,
|
|
1578
|
+
style: {
|
|
1579
|
+
overflow: "hidden",
|
|
1580
|
+
height: 0
|
|
1581
|
+
},
|
|
1582
|
+
children: /* @__PURE__ */ jsx("div", { ref: contentInnerRef, className: Accordion_module_default.accordionContentInner, children })
|
|
1583
|
+
}
|
|
1584
|
+
)
|
|
1585
|
+
]
|
|
1586
|
+
}
|
|
1587
|
+
);
|
|
1588
|
+
};
|
|
1589
|
+
var Accordion = ({
|
|
1590
|
+
className,
|
|
1591
|
+
items = [],
|
|
1592
|
+
defaultOpenIds = [],
|
|
1593
|
+
allowMultiple = false,
|
|
1594
|
+
onItemToggle
|
|
1595
|
+
}) => {
|
|
1596
|
+
const [openIds, setOpenIds] = useState(defaultOpenIds);
|
|
1597
|
+
const handleToggle = (id) => {
|
|
1598
|
+
setOpenIds((prev) => {
|
|
1599
|
+
let newOpenIds;
|
|
1600
|
+
if (prev.includes(id)) {
|
|
1601
|
+
newOpenIds = prev.filter((itemId) => itemId !== id);
|
|
1602
|
+
} else {
|
|
1603
|
+
if (allowMultiple) {
|
|
1604
|
+
newOpenIds = [...prev, id];
|
|
1605
|
+
} else {
|
|
1606
|
+
newOpenIds = [id];
|
|
1607
|
+
}
|
|
1608
|
+
}
|
|
1609
|
+
onItemToggle == null ? void 0 : onItemToggle(id, !prev.includes(id));
|
|
1610
|
+
return newOpenIds;
|
|
1611
|
+
});
|
|
1612
|
+
};
|
|
1613
|
+
if (items.length === 0) {
|
|
1614
|
+
return null;
|
|
1615
|
+
}
|
|
1616
|
+
return /* @__PURE__ */ jsx("div", { className: clsx22(Accordion_module_default.accordion, className), children: items.map((item) => /* @__PURE__ */ jsx(
|
|
1617
|
+
AccordionItem,
|
|
1618
|
+
{
|
|
1619
|
+
id: item.id,
|
|
1620
|
+
title: item.title,
|
|
1621
|
+
isOpen: openIds.includes(item.id),
|
|
1622
|
+
onToggle: handleToggle,
|
|
1623
|
+
children: item.content
|
|
1624
|
+
},
|
|
1625
|
+
item.id
|
|
1626
|
+
)) });
|
|
1627
|
+
};
|
|
1628
|
+
|
|
1629
|
+
// src/widgets/InternalBrandsTab/InternalBrandsTab.module.scss
|
|
1630
|
+
var InternalBrandsTab_module_default = {
|
|
1631
|
+
internalBrandsTab: "InternalBrandsTab_module_internalBrandsTab",
|
|
1632
|
+
textsContainer: "InternalBrandsTab_module_textsContainer",
|
|
1633
|
+
subTitle: "InternalBrandsTab_module_subTitle",
|
|
1634
|
+
contentArea: "InternalBrandsTab_module_contentArea",
|
|
1635
|
+
topContent: "InternalBrandsTab_module_topContent",
|
|
1636
|
+
topContentTitle: "InternalBrandsTab_module_topContentTitle",
|
|
1637
|
+
topContentLongText: "InternalBrandsTab_module_topContentLongText",
|
|
1638
|
+
accordionTopContent: "InternalBrandsTab_module_accordionTopContent",
|
|
1639
|
+
bottomContent: "InternalBrandsTab_module_bottomContent",
|
|
1640
|
+
bottomContentLeftSide: "InternalBrandsTab_module_bottomContentLeftSide",
|
|
1641
|
+
bottomContentTitle: "InternalBrandsTab_module_bottomContentTitle",
|
|
1642
|
+
bottomContentRightSide: "InternalBrandsTab_module_bottomContentRightSide",
|
|
1643
|
+
bottomContentQuote: "InternalBrandsTab_module_bottomContentQuote",
|
|
1644
|
+
accordionBottomContent: "InternalBrandsTab_module_accordionBottomContent",
|
|
1645
|
+
bottomContentTextList: "InternalBrandsTab_module_bottomContentTextList",
|
|
1646
|
+
title: "InternalBrandsTab_module_title",
|
|
1647
|
+
tabWrapper: "InternalBrandsTab_module_tabWrapper",
|
|
1648
|
+
tabButtonsRow: "InternalBrandsTab_module_tabButtonsRow",
|
|
1649
|
+
topContentCta: "InternalBrandsTab_module_topContentCta",
|
|
1650
|
+
topContentRightSide: "InternalBrandsTab_module_topContentRightSide",
|
|
1651
|
+
bottomContentIcon: "InternalBrandsTab_module_bottomContentIcon",
|
|
1652
|
+
topContentCtaContainer: "InternalBrandsTab_module_topContentCtaContainer"
|
|
1653
|
+
};
|
|
1654
|
+
var InternalBrandsTab = (props) => {
|
|
1655
|
+
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;
|
|
1656
|
+
const { title, subTitle, className, tabs } = props;
|
|
1657
|
+
const [activeIndex, setActiveIndex] = useState(0);
|
|
1658
|
+
const { is } = useViewPort_default();
|
|
1659
|
+
const isTabletBelow = is("tablet", "below");
|
|
1660
|
+
const accordionItems = useMemo(() => {
|
|
1661
|
+
return (tabs == null ? void 0 : tabs.map((tab, index) => {
|
|
1662
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2, _m2, _n2;
|
|
1663
|
+
return {
|
|
1664
|
+
id: index,
|
|
1665
|
+
title: tab.tabTitle || "",
|
|
1666
|
+
content: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1667
|
+
tab.topContent && /* @__PURE__ */ jsxs("div", { className: InternalBrandsTab_module_default.accordionTopContent, children: [
|
|
1668
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
1669
|
+
((_a2 = tab.topContent) == null ? void 0 : _a2.title) && /* @__PURE__ */ jsx("p", { className: InternalBrandsTab_module_default.topContentTitle, children: tab.topContent.title }),
|
|
1670
|
+
((_b2 = tab.topContent) == null ? void 0 : _b2.longText) && /* @__PURE__ */ jsx("div", { className: InternalBrandsTab_module_default.topContentLongText, children: tab.topContent.longText }),
|
|
1671
|
+
((_c2 = tab.topContent) == null ? void 0 : _c2.cta) && /* @__PURE__ */ jsx("div", { className: InternalBrandsTab_module_default.topContentCtaContainer, children: /* @__PURE__ */ jsx(
|
|
1672
|
+
Button,
|
|
1673
|
+
{
|
|
1674
|
+
className: InternalBrandsTab_module_default.topContentCta,
|
|
1675
|
+
variant: "primary",
|
|
1676
|
+
href: (_d2 = tab.topContent.cta) == null ? void 0 : _d2.url,
|
|
1677
|
+
isExternal: (_e2 = tab.topContent.cta) == null ? void 0 : _e2.isExternal,
|
|
1678
|
+
logo: (_f2 = tab.topContent.cta) == null ? void 0 : _f2.logo,
|
|
1679
|
+
children: (_g2 = tab.topContent.cta) == null ? void 0 : _g2.label
|
|
1680
|
+
}
|
|
1681
|
+
) })
|
|
1682
|
+
] }),
|
|
1683
|
+
/* @__PURE__ */ jsx("div", { children: ((_h2 = tab.topContent) == null ? void 0 : _h2.rightSideText) && /* @__PURE__ */ jsx("div", { className: InternalBrandsTab_module_default.topContentRightSide, children: tab.topContent.rightSideText }) })
|
|
1684
|
+
] }),
|
|
1685
|
+
tab.bottomContent && /* @__PURE__ */ jsxs("div", { className: InternalBrandsTab_module_default.accordionBottomContent, children: [
|
|
1686
|
+
/* @__PURE__ */ jsxs("div", { className: InternalBrandsTab_module_default.bottomContentLeftSide, children: [
|
|
1687
|
+
((_i2 = tab.bottomContent) == null ? void 0 : _i2.title) && /* @__PURE__ */ jsx("p", { className: InternalBrandsTab_module_default.bottomContentTitle, children: tab.bottomContent.title }),
|
|
1688
|
+
((_j2 = tab.bottomContent) == null ? void 0 : _j2.textList) && /* @__PURE__ */ jsx("div", { className: InternalBrandsTab_module_default.bottomContentTextList, children: tab.bottomContent.textList })
|
|
1689
|
+
] }),
|
|
1690
|
+
/* @__PURE__ */ jsxs("div", { className: InternalBrandsTab_module_default.bottomContentRightSide, children: [
|
|
1691
|
+
((_k2 = tab.bottomContent) == null ? void 0 : _k2.icon) && /* @__PURE__ */ jsx(
|
|
1692
|
+
Picture,
|
|
1693
|
+
{
|
|
1694
|
+
src: (_l2 = tab.bottomContent.icon) == null ? void 0 : _l2.src,
|
|
1695
|
+
alt: (_m2 = tab.bottomContent.icon) == null ? void 0 : _m2.alt,
|
|
1696
|
+
className: InternalBrandsTab_module_default.bottomContentIcon
|
|
1697
|
+
}
|
|
1698
|
+
),
|
|
1699
|
+
((_n2 = tab.bottomContent) == null ? void 0 : _n2.quote) && /* @__PURE__ */ jsx("div", { className: InternalBrandsTab_module_default.bottomContentQuote, children: tab.bottomContent.quote })
|
|
1700
|
+
] })
|
|
1701
|
+
] })
|
|
1702
|
+
] })
|
|
1703
|
+
};
|
|
1704
|
+
})) || [];
|
|
1705
|
+
}, [tabs]);
|
|
1706
|
+
return /* @__PURE__ */ jsxs(Container, { className: clsx22(InternalBrandsTab_module_default.internalBrandsTab, className), children: [
|
|
1707
|
+
/* @__PURE__ */ jsxs("div", { className: InternalBrandsTab_module_default.textsContainer, children: [
|
|
1708
|
+
title && /* @__PURE__ */ jsx(Text, { tag: "h2", className: InternalBrandsTab_module_default.title, children: title }),
|
|
1709
|
+
subTitle && /* @__PURE__ */ jsx("div", { className: InternalBrandsTab_module_default.subTitle, children: subTitle })
|
|
1710
|
+
] }),
|
|
1711
|
+
isTabletBelow ? /* @__PURE__ */ jsx(Accordion, { items: accordionItems, allowMultiple: true, defaultOpenIds: [] }) : /* @__PURE__ */ jsxs("div", { className: InternalBrandsTab_module_default.tabWrapper, children: [
|
|
1712
|
+
/* @__PURE__ */ jsx("div", { className: InternalBrandsTab_module_default.tabButtonsRow, children: tabs == null ? void 0 : tabs.map(({ tabTitle }, index) => /* @__PURE__ */ jsx(
|
|
1713
|
+
Button,
|
|
1714
|
+
{
|
|
1715
|
+
variant: "tabbutton",
|
|
1716
|
+
onClick: () => setActiveIndex(index),
|
|
1717
|
+
isActive: activeIndex === index,
|
|
1718
|
+
children: tabTitle
|
|
1719
|
+
},
|
|
1720
|
+
index
|
|
1721
|
+
)) }),
|
|
1722
|
+
/* @__PURE__ */ jsx("div", { className: clsx22(InternalBrandsTab_module_default.contentArea), children: ((_a = tabs == null ? void 0 : tabs[activeIndex]) == null ? void 0 : _a.topContent) && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1723
|
+
/* @__PURE__ */ jsxs("div", { className: InternalBrandsTab_module_default.topContent, children: [
|
|
1724
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
1725
|
+
((_b = tabs[activeIndex].topContent) == null ? void 0 : _b.title) && /* @__PURE__ */ jsx("p", { className: InternalBrandsTab_module_default.topContentTitle, children: (_c = tabs[activeIndex].topContent) == null ? void 0 : _c.title }),
|
|
1726
|
+
((_d = tabs[activeIndex].topContent) == null ? void 0 : _d.longText) && /* @__PURE__ */ jsx("div", { className: InternalBrandsTab_module_default.topContentLongText, children: (_e = tabs[activeIndex].topContent) == null ? void 0 : _e.longText }),
|
|
1727
|
+
((_f = tabs[activeIndex].topContent) == null ? void 0 : _f.cta) && /* @__PURE__ */ jsx(
|
|
1728
|
+
Button,
|
|
1729
|
+
{
|
|
1730
|
+
className: InternalBrandsTab_module_default.topContentCta,
|
|
1731
|
+
variant: "primary",
|
|
1732
|
+
href: (_h = (_g = tabs[activeIndex].topContent) == null ? void 0 : _g.cta) == null ? void 0 : _h.url,
|
|
1733
|
+
isExternal: (_j = (_i = tabs[activeIndex].topContent) == null ? void 0 : _i.cta) == null ? void 0 : _j.isExternal,
|
|
1734
|
+
logo: (_l = (_k = tabs[activeIndex].topContent) == null ? void 0 : _k.cta) == null ? void 0 : _l.logo,
|
|
1735
|
+
children: (_n = (_m = tabs[activeIndex].topContent) == null ? void 0 : _m.cta) == null ? void 0 : _n.label
|
|
1736
|
+
}
|
|
1737
|
+
)
|
|
1738
|
+
] }),
|
|
1739
|
+
/* @__PURE__ */ jsx("div", { children: ((_o = tabs[activeIndex].topContent) == null ? void 0 : _o.rightSideText) && /* @__PURE__ */ jsx("div", { className: InternalBrandsTab_module_default.topContentRightSide, children: (_p = tabs[activeIndex].topContent) == null ? void 0 : _p.rightSideText }) })
|
|
1740
|
+
] }),
|
|
1741
|
+
/* @__PURE__ */ jsxs("div", { className: InternalBrandsTab_module_default.bottomContent, children: [
|
|
1742
|
+
/* @__PURE__ */ jsxs("div", { className: InternalBrandsTab_module_default.bottomContentLeftSide, children: [
|
|
1743
|
+
((_q = tabs[activeIndex].bottomContent) == null ? void 0 : _q.title) && /* @__PURE__ */ jsx("p", { className: InternalBrandsTab_module_default.bottomContentTitle, children: (_r = tabs[activeIndex].bottomContent) == null ? void 0 : _r.title }),
|
|
1744
|
+
((_s = tabs[activeIndex].bottomContent) == null ? void 0 : _s.textList) && /* @__PURE__ */ jsx("div", { className: InternalBrandsTab_module_default.bottomContentTextList, children: (_t = tabs[activeIndex].bottomContent) == null ? void 0 : _t.textList })
|
|
1745
|
+
] }),
|
|
1746
|
+
/* @__PURE__ */ jsxs("div", { className: InternalBrandsTab_module_default.bottomContentRightSide, children: [
|
|
1747
|
+
((_u = tabs[activeIndex].bottomContent) == null ? void 0 : _u.icon) && /* @__PURE__ */ jsx(
|
|
1748
|
+
Picture,
|
|
1749
|
+
{
|
|
1750
|
+
src: (_w = (_v = tabs[activeIndex].bottomContent) == null ? void 0 : _v.icon) == null ? void 0 : _w.src,
|
|
1751
|
+
alt: (_y = (_x = tabs[activeIndex].bottomContent) == null ? void 0 : _x.icon) == null ? void 0 : _y.alt,
|
|
1752
|
+
className: InternalBrandsTab_module_default.bottomContentIcon
|
|
1753
|
+
}
|
|
1754
|
+
),
|
|
1755
|
+
((_z = tabs[activeIndex].bottomContent) == null ? void 0 : _z.quote) && /* @__PURE__ */ jsx("div", { className: InternalBrandsTab_module_default.bottomContentQuote, children: (_A = tabs[activeIndex].bottomContent) == null ? void 0 : _A.quote })
|
|
1756
|
+
] })
|
|
1757
|
+
] })
|
|
1758
|
+
] }) })
|
|
1759
|
+
] })
|
|
1760
|
+
] });
|
|
1761
|
+
};
|
|
1762
|
+
|
|
1763
|
+
// src/widgets/InternalBrandsTab/index.tsx
|
|
1764
|
+
var InternalBrandsTab2 = Object.assign(InternalBrandsTab, {});
|
|
1422
1765
|
var MiniBannerTitle = ({ children }) => {
|
|
1423
1766
|
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
1424
1767
|
};
|
|
@@ -1467,17 +1810,17 @@ var MiniBanner = ({
|
|
|
1467
1810
|
const pretitleNode = (_a = slots.pretitle) != null ? _a : pretitle;
|
|
1468
1811
|
const titleNode = (_b = slots.title) != null ? _b : title;
|
|
1469
1812
|
const subtitleNode = (_c = slots.subtitle) != null ? _c : subtitle;
|
|
1470
|
-
return /* @__PURE__ */ jsxs("div", { className:
|
|
1813
|
+
return /* @__PURE__ */ jsxs("div", { className: clsx22(MiniBanner_module_default.minibanner, MiniBanner_module_default[variant], className), children: [
|
|
1471
1814
|
((background == null ? void 0 : background.src) || ((_d = background == null ? void 0 : background.desktop) == null ? void 0 : _d.src) || ((_e = background == null ? void 0 : background.mobile) == null ? void 0 : _e.src)) && /* @__PURE__ */ jsx(Picture, __spreadValues({ className: MiniBanner_module_default.background }, background)),
|
|
1472
1815
|
/* @__PURE__ */ jsxs("div", { className: MiniBanner_module_default.wrapper, children: [
|
|
1473
1816
|
/* @__PURE__ */ jsxs("div", { className: MiniBanner_module_default.textContainer, children: [
|
|
1474
1817
|
(logo == null ? void 0 : logo.src) && /* @__PURE__ */ jsx(Picture, __spreadValues({ className: MiniBanner_module_default.logo }, logo)),
|
|
1475
|
-
pretitleNode && /* @__PURE__ */ jsx("div", { className:
|
|
1476
|
-
/* @__PURE__ */ jsx("div", { className: MiniBanner_module_default.headingWrapper, children: titleNode && /* @__PURE__ */ jsx("div", { className:
|
|
1818
|
+
pretitleNode && /* @__PURE__ */ jsx("div", { className: clsx22(MiniBanner_module_default.pretitle, "small"), children: pretitleNode }),
|
|
1819
|
+
/* @__PURE__ */ jsx("div", { className: MiniBanner_module_default.headingWrapper, children: titleNode && /* @__PURE__ */ jsx("div", { className: clsx22(MiniBanner_module_default.title, isMiniBannerTextLeft ? "h1" : "h4"), children: titleNode }) }),
|
|
1477
1820
|
subtitleNode && /* @__PURE__ */ jsx(
|
|
1478
1821
|
"div",
|
|
1479
1822
|
{
|
|
1480
|
-
className:
|
|
1823
|
+
className: clsx22(MiniBanner_module_default.title, {
|
|
1481
1824
|
subheading: isMiniBannerNoBG || isMiniBannerTextLeft,
|
|
1482
1825
|
h1: !isMiniBannerNoBG && !isMiniBannerTextLeft
|
|
1483
1826
|
}),
|
|
@@ -1548,14 +1891,14 @@ var MiniSectionCta = ({
|
|
|
1548
1891
|
return /* @__PURE__ */ jsx(
|
|
1549
1892
|
"div",
|
|
1550
1893
|
{
|
|
1551
|
-
className:
|
|
1894
|
+
className: clsx22(MiniSectionCta_module_default.miniSectionCta, MiniSectionCta_module_default[variant], theme && MiniSectionCta_module_default[theme], className),
|
|
1552
1895
|
children: /* @__PURE__ */ jsx(Container, { children: /* @__PURE__ */ jsxs("div", { className: MiniSectionCta_module_default.wrapper, children: [
|
|
1553
1896
|
/* @__PURE__ */ jsxs("div", { className: MiniSectionCta_module_default.col, children: [
|
|
1554
1897
|
titleNode && /* @__PURE__ */ jsx("h2", { className: variant === "BgColorBlack" || variant === "BgColorGrey" ? "h3" : "h2", children: titleNode }),
|
|
1555
1898
|
subtitleNode && /* @__PURE__ */ jsx(
|
|
1556
1899
|
"div",
|
|
1557
1900
|
{
|
|
1558
|
-
className:
|
|
1901
|
+
className: clsx22(MiniSectionCta_module_default.subtitle, variant === "infoCallout" ? "h4" : "subheading"),
|
|
1559
1902
|
children: subtitleNode
|
|
1560
1903
|
}
|
|
1561
1904
|
)
|
|
@@ -1620,7 +1963,7 @@ var PracticePathCards = ({
|
|
|
1620
1963
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
1621
1964
|
const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
|
|
1622
1965
|
const footerNode = (_c = slots.footer) != null ? _c : footer;
|
|
1623
|
-
return /* @__PURE__ */ jsx("div", { className:
|
|
1966
|
+
return /* @__PURE__ */ jsx("div", { className: clsx22(PracticePathCards_module_default["practice-path-cards"], className), children: /* @__PURE__ */ jsxs(Container, { className: PracticePathCards_module_default.container, children: [
|
|
1624
1967
|
/* @__PURE__ */ jsxs("div", { className: PracticePathCards_module_default.wrapper, children: [
|
|
1625
1968
|
/* @__PURE__ */ jsxs("div", { className: PracticePathCards_module_default.content, children: [
|
|
1626
1969
|
titleNode && /* @__PURE__ */ jsx("h2", { children: titleNode }),
|
|
@@ -1674,8 +2017,8 @@ var Teaser5050With3Text = ({
|
|
|
1674
2017
|
title: Teaser5050With3TextTitle
|
|
1675
2018
|
});
|
|
1676
2019
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
1677
|
-
return /* @__PURE__ */ jsx("div", { className:
|
|
1678
|
-
titleNode && /* @__PURE__ */ jsx("div", { className:
|
|
2020
|
+
return /* @__PURE__ */ jsx("div", { className: clsx22(Teaser5050With3Text_module_default["teaser5050-3text"], Teaser5050With3Text_module_default[variant], className), children: /* @__PURE__ */ jsxs(Container, { className: Teaser5050With3Text_module_default.container, children: [
|
|
2021
|
+
titleNode && /* @__PURE__ */ jsx("div", { className: clsx22(Teaser5050With3Text_module_default.title, "h3"), children: titleNode }),
|
|
1679
2022
|
/* @__PURE__ */ jsxs("div", { className: Teaser5050With3Text_module_default.content, children: [
|
|
1680
2023
|
/* @__PURE__ */ jsx("div", { className: Teaser5050With3Text_module_default.cards, children: cards == null ? void 0 : cards.map((card, key) => /* @__PURE__ */ jsx(InfoCard2, __spreadValues({}, card), key)) }),
|
|
1681
2024
|
image && /* @__PURE__ */ jsx(Picture, __spreadValues({ className: Teaser5050With3Text_module_default.image }, image))
|
|
@@ -1725,12 +2068,12 @@ var Teaser5050WithCta = ({
|
|
|
1725
2068
|
return /* @__PURE__ */ jsx(
|
|
1726
2069
|
"div",
|
|
1727
2070
|
{
|
|
1728
|
-
className:
|
|
2071
|
+
className: clsx22(Teaser5050WithCta_module_default.teaser5050, Teaser5050WithCta_module_default[variant], className),
|
|
1729
2072
|
style: { backgroundColor: bgColor ? bgColor : "#ffffff" },
|
|
1730
2073
|
children: /* @__PURE__ */ jsxs(Container, { className: Teaser5050WithCta_module_default.container, children: [
|
|
1731
2074
|
/* @__PURE__ */ jsxs("div", { className: Teaser5050WithCta_module_default.wrapper, children: [
|
|
1732
2075
|
/* @__PURE__ */ jsxs("div", { className: Teaser5050WithCta_module_default.content, children: [
|
|
1733
|
-
titleNode && /* @__PURE__ */ jsx("div", { className:
|
|
2076
|
+
titleNode && /* @__PURE__ */ jsx("div", { className: clsx22(Teaser5050WithCta_module_default.title, "h3"), children: titleNode }),
|
|
1734
2077
|
subtitleNode && /* @__PURE__ */ jsx("div", { className: "subheading", children: subtitleNode })
|
|
1735
2078
|
] }),
|
|
1736
2079
|
(ctas == null ? void 0 : ctas.length) && /* @__PURE__ */ jsx("div", { className: Teaser5050WithCta_module_default.ctaWrapper, children: ctas.map((cta, key) => /* @__PURE__ */ jsx(
|
|
@@ -1794,7 +2137,7 @@ var UpcomingEventCard = ({
|
|
|
1794
2137
|
return /* @__PURE__ */ jsxs(
|
|
1795
2138
|
"article",
|
|
1796
2139
|
{
|
|
1797
|
-
className:
|
|
2140
|
+
className: clsx22(
|
|
1798
2141
|
"card",
|
|
1799
2142
|
UpcomingEventCard_module_default["event-card"],
|
|
1800
2143
|
UpcomingEventCard_module_default[direction],
|
|
@@ -1802,26 +2145,26 @@ var UpcomingEventCard = ({
|
|
|
1802
2145
|
className
|
|
1803
2146
|
),
|
|
1804
2147
|
children: [
|
|
1805
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
1806
|
-
showImage && image && /* @__PURE__ */ jsx(Picture, __spreadProps(__spreadValues({}, image), { className:
|
|
2148
|
+
/* @__PURE__ */ jsxs("div", { className: clsx22("card-content", UpcomingEventCard_module_default["event-card-content"]), children: [
|
|
2149
|
+
showImage && image && /* @__PURE__ */ jsx(Picture, __spreadProps(__spreadValues({}, image), { className: clsx22("card-image", UpcomingEventCard_module_default["event-card-image"]) })),
|
|
1807
2150
|
/* @__PURE__ */ jsxs(
|
|
1808
2151
|
"div",
|
|
1809
2152
|
{
|
|
1810
|
-
className:
|
|
2153
|
+
className: clsx22(
|
|
1811
2154
|
"card-text-content",
|
|
1812
2155
|
UpcomingEventCard_module_default["event-card-text-content"],
|
|
1813
2156
|
(!showImage || !hasImage) && UpcomingEventCard_module_default["event-card-show-image"]
|
|
1814
2157
|
),
|
|
1815
2158
|
children: [
|
|
1816
2159
|
/* @__PURE__ */ jsx("span", { className: UpcomingEventCard_module_default.date, children: date }),
|
|
1817
|
-
title && /* @__PURE__ */ jsx("h3", { className:
|
|
2160
|
+
title && /* @__PURE__ */ jsx("h3", { className: clsx22("card-text-title"), children: title }),
|
|
1818
2161
|
location && /* @__PURE__ */ jsx("span", { className: UpcomingEventCard_module_default.location, children: location }),
|
|
1819
|
-
description && /* @__PURE__ */ jsx("div", { className:
|
|
2162
|
+
description && /* @__PURE__ */ jsx("div", { className: clsx22("card-text-description", UpcomingEventCard_module_default.description), children: description }),
|
|
1820
2163
|
cta && cta.url && /* @__PURE__ */ jsx(
|
|
1821
2164
|
Button,
|
|
1822
2165
|
{
|
|
1823
2166
|
variant: "secondary",
|
|
1824
|
-
className:
|
|
2167
|
+
className: clsx22(
|
|
1825
2168
|
"card-cta",
|
|
1826
2169
|
UpcomingEventCard_module_default["event-card-cta"],
|
|
1827
2170
|
!hasCTAandImage && UpcomingEventCard_module_default.hidden
|
|
@@ -1840,12 +2183,12 @@ var UpcomingEventCard = ({
|
|
|
1840
2183
|
cta && cta.url && /* @__PURE__ */ jsx(
|
|
1841
2184
|
"div",
|
|
1842
2185
|
{
|
|
1843
|
-
className:
|
|
2186
|
+
className: clsx22("card-footer", UpcomingEventCard_module_default["event-card-footer"], hasImage && UpcomingEventCard_module_default.hidden),
|
|
1844
2187
|
children: /* @__PURE__ */ jsx(
|
|
1845
2188
|
Button,
|
|
1846
2189
|
{
|
|
1847
2190
|
variant: "secondary",
|
|
1848
|
-
className:
|
|
2191
|
+
className: clsx22("card-cta", UpcomingEventCard_module_default["event-card-cta"]),
|
|
1849
2192
|
fullWidth: isBelowMobile,
|
|
1850
2193
|
href: cta.url,
|
|
1851
2194
|
icon: cta.icon,
|
|
@@ -1882,7 +2225,7 @@ var Carousel = (_a) => {
|
|
|
1882
2225
|
},
|
|
1883
2226
|
role: "region",
|
|
1884
2227
|
"aria-label": ariaLabel,
|
|
1885
|
-
className:
|
|
2228
|
+
className: clsx22(Carousel_module_default.carousel, className),
|
|
1886
2229
|
spaceBetween: 0,
|
|
1887
2230
|
slidesPerView: "auto",
|
|
1888
2231
|
modules: [FreeMode, A11y],
|
|
@@ -1892,7 +2235,7 @@ var Carousel = (_a) => {
|
|
|
1892
2235
|
children: slides.map((slide, index) => /* @__PURE__ */ jsx(
|
|
1893
2236
|
SwiperSlide,
|
|
1894
2237
|
{
|
|
1895
|
-
className:
|
|
2238
|
+
className: clsx22(Carousel_module_default["carousel-item"], props.slideClass),
|
|
1896
2239
|
children: slide
|
|
1897
2240
|
},
|
|
1898
2241
|
index
|
|
@@ -1942,13 +2285,13 @@ var EventList = ({
|
|
|
1942
2285
|
return /* @__PURE__ */ jsx(
|
|
1943
2286
|
"div",
|
|
1944
2287
|
{
|
|
1945
|
-
className:
|
|
2288
|
+
className: clsx22("event-list-module", EventList_module_default["event-list-module"], className),
|
|
1946
2289
|
style: {
|
|
1947
2290
|
backgroundColor
|
|
1948
2291
|
},
|
|
1949
|
-
children: /* @__PURE__ */ jsxs(Container, { className:
|
|
2292
|
+
children: /* @__PURE__ */ jsxs(Container, { className: clsx22(EventList_module_default["event-list-container"]), children: [
|
|
1950
2293
|
/* @__PURE__ */ jsxs("div", { className: EventList_module_default["event-list-header-container"], children: [
|
|
1951
|
-
titleNode && /* @__PURE__ */ jsx("h2", { className:
|
|
2294
|
+
titleNode && /* @__PURE__ */ jsx("h2", { className: clsx22(EventList_module_default["event-list-title"]), children: titleNode }),
|
|
1952
2295
|
cta && cta.url && /* @__PURE__ */ jsx(
|
|
1953
2296
|
Button,
|
|
1954
2297
|
{
|
|
@@ -1965,7 +2308,7 @@ var EventList = ({
|
|
|
1965
2308
|
Carousel,
|
|
1966
2309
|
{
|
|
1967
2310
|
"aria-label": "Upcoming events",
|
|
1968
|
-
wrapperClass:
|
|
2311
|
+
wrapperClass: clsx22(EventList_module_default["carousel-wrapper"], EventList_module_default[variant]),
|
|
1969
2312
|
slideClass: EventList_module_default["carousel-list-item"],
|
|
1970
2313
|
spaceBetween: 16,
|
|
1971
2314
|
slides: items.map((item) => {
|
|
@@ -1973,7 +2316,7 @@ var EventList = ({
|
|
|
1973
2316
|
return /* @__PURE__ */ jsx(
|
|
1974
2317
|
UpcomingEventCard,
|
|
1975
2318
|
__spreadValues({
|
|
1976
|
-
className:
|
|
2319
|
+
className: clsx22(EventList_module_default["event-card"]),
|
|
1977
2320
|
direction: "vertical",
|
|
1978
2321
|
showImage: false
|
|
1979
2322
|
}, item),
|
|
@@ -1986,17 +2329,17 @@ var EventList = ({
|
|
|
1986
2329
|
"ul",
|
|
1987
2330
|
{
|
|
1988
2331
|
"aria-label": "Upcoming events",
|
|
1989
|
-
className:
|
|
2332
|
+
className: clsx22(EventList_module_default["event-list-wrapper"], EventList_module_default["horizontal"], EventList_module_default[variant]),
|
|
1990
2333
|
children: items == null ? void 0 : items.map((item, index) => {
|
|
1991
2334
|
var _a2, _b, _c;
|
|
1992
2335
|
return /* @__PURE__ */ jsx(
|
|
1993
2336
|
"li",
|
|
1994
2337
|
{
|
|
1995
|
-
className:
|
|
2338
|
+
className: clsx22(EventList_module_default["card-list-item"]),
|
|
1996
2339
|
children: /* @__PURE__ */ jsx(
|
|
1997
2340
|
UpcomingEventCard,
|
|
1998
2341
|
__spreadProps(__spreadValues({}, item), {
|
|
1999
|
-
className:
|
|
2342
|
+
className: clsx22(EventList_module_default["card-item"]),
|
|
2000
2343
|
showImage: false,
|
|
2001
2344
|
direction: "vertical"
|
|
2002
2345
|
})
|
|
@@ -2011,7 +2354,7 @@ var EventList = ({
|
|
|
2011
2354
|
"ul",
|
|
2012
2355
|
{
|
|
2013
2356
|
"aria-label": "Upcoming events",
|
|
2014
|
-
className:
|
|
2357
|
+
className: clsx22(EventList_module_default["event-list-wrapper"], EventList_module_default[listDirection]),
|
|
2015
2358
|
children: items == null ? void 0 : items.map((item, index) => {
|
|
2016
2359
|
var _a2, _b, _c;
|
|
2017
2360
|
return /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(UpcomingEventCard, __spreadProps(__spreadValues({}, item), { direction: cardDirection })) }, (_c = (_b = (_a2 = item.title) != null ? _a2 : item.date) != null ? _b : item.location) != null ? _c : index);
|
|
@@ -2027,12 +2370,6 @@ var EventList = ({
|
|
|
2027
2370
|
var EventList2 = Object.assign(EventList, {
|
|
2028
2371
|
Title: EventListTitle
|
|
2029
2372
|
});
|
|
2030
|
-
var Text = (_a) => {
|
|
2031
|
-
var _b = _a, { tag = "p", promoteToH1 = false, ref, children } = _b, props = __objRest(_b, ["tag", "promoteToH1", "ref", "children"]);
|
|
2032
|
-
const Component = promoteToH1 ? "h1" : tag;
|
|
2033
|
-
return /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({ ref }, props), { children }));
|
|
2034
|
-
};
|
|
2035
|
-
Text.displayName = "Text";
|
|
2036
2373
|
|
|
2037
2374
|
// src/widgets/TextEvent/TextEvent.module.scss
|
|
2038
2375
|
var TextEvent_module_default = {
|
|
@@ -2064,9 +2401,9 @@ var TextEvent = (props) => {
|
|
|
2064
2401
|
});
|
|
2065
2402
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
2066
2403
|
const richTextNode = (_b = slots.richText) != null ? _b : richText;
|
|
2067
|
-
return /* @__PURE__ */ jsxs(Container, { className:
|
|
2404
|
+
return /* @__PURE__ */ jsxs(Container, { className: clsx22(TextEvent_module_default.textEvent, className), children: [
|
|
2068
2405
|
/* @__PURE__ */ jsx(Text, { tag: "h2", className: TextEvent_module_default.title, children: titleNode }),
|
|
2069
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
2406
|
+
/* @__PURE__ */ jsx("div", { className: clsx22(TextEvent_module_default.richText, TextEvent_module_default[variant != null ? variant : ""]), children: richTextNode })
|
|
2070
2407
|
] });
|
|
2071
2408
|
};
|
|
2072
2409
|
|
|
@@ -2097,7 +2434,7 @@ var TextBody = (props) => {
|
|
|
2097
2434
|
});
|
|
2098
2435
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
2099
2436
|
const bodyNode = (_b = slots.body) != null ? _b : body;
|
|
2100
|
-
return /* @__PURE__ */ jsxs(Container, { className:
|
|
2437
|
+
return /* @__PURE__ */ jsxs(Container, { className: clsx22(TextBody_module_default.textBody, className), children: [
|
|
2101
2438
|
titleNode && /* @__PURE__ */ jsx(Text, { tag: "h2", className: TextBody_module_default.title, children: titleNode }),
|
|
2102
2439
|
/* @__PURE__ */ jsx("div", { className: TextBody_module_default.body, children: bodyNode })
|
|
2103
2440
|
] });
|
|
@@ -2140,7 +2477,7 @@ var TextCenterCtaInBottom = ({
|
|
|
2140
2477
|
});
|
|
2141
2478
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
2142
2479
|
const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
|
|
2143
|
-
return /* @__PURE__ */ jsx("div", { className:
|
|
2480
|
+
return /* @__PURE__ */ jsx("div", { className: clsx22(TextCenterCtaInBottom_module_default.textCenterCta, className), children: /* @__PURE__ */ jsxs(Container, { className: TextCenterCtaInBottom_module_default.container, children: [
|
|
2144
2481
|
/* @__PURE__ */ jsxs("div", { className: TextCenterCtaInBottom_module_default.content, children: [
|
|
2145
2482
|
titleNode && /* @__PURE__ */ jsx("div", { className: TextCenterCtaInBottom_module_default.title, children: titleNode }),
|
|
2146
2483
|
subtitleNode && /* @__PURE__ */ jsx("div", { className: TextCenterCtaInBottom_module_default.subtitle, children: subtitleNode })
|
|
@@ -2148,7 +2485,7 @@ var TextCenterCtaInBottom = ({
|
|
|
2148
2485
|
!!(ctas == null ? void 0 : ctas.length) && /* @__PURE__ */ jsx(
|
|
2149
2486
|
"div",
|
|
2150
2487
|
{
|
|
2151
|
-
className:
|
|
2488
|
+
className: clsx22(
|
|
2152
2489
|
TextCenterCtaInBottom_module_default.ctaWrapper,
|
|
2153
2490
|
ctas.every((cta) => !cta.label && cta.logo) && TextCenterCtaInBottom_module_default.iconOnly
|
|
2154
2491
|
),
|
|
@@ -2174,6 +2511,381 @@ var TextCenterCtaInBottom2 = Object.assign(TextCenterCtaInBottom, {
|
|
|
2174
2511
|
Title: TextCenterCtaInBottomTitle,
|
|
2175
2512
|
Subtitle: TextCenterCtaInBottomSubtitle
|
|
2176
2513
|
});
|
|
2514
|
+
|
|
2515
|
+
// src/widgets/ResourcesGridList/ResourcesGridList.module.scss
|
|
2516
|
+
var ResourcesGridList_module_default = {
|
|
2517
|
+
widget: "ResourcesGridList_module_widget",
|
|
2518
|
+
filterBar: "ResourcesGridList_module_filterBar",
|
|
2519
|
+
viewToggle: "ResourcesGridList_module_viewToggle",
|
|
2520
|
+
filterActions: "ResourcesGridList_module_filterActions",
|
|
2521
|
+
chip: "ResourcesGridList_module_chip",
|
|
2522
|
+
active: "ResourcesGridList_module_active",
|
|
2523
|
+
chipLabel: "ResourcesGridList_module_chipLabel",
|
|
2524
|
+
dropdownWrapper: "ResourcesGridList_module_dropdownWrapper",
|
|
2525
|
+
searchExpanded: "ResourcesGridList_module_searchExpanded",
|
|
2526
|
+
searchExpand: "ResourcesGridList_module_searchExpand",
|
|
2527
|
+
searchCollapsing: "ResourcesGridList_module_searchCollapsing",
|
|
2528
|
+
searchCollapse: "ResourcesGridList_module_searchCollapse",
|
|
2529
|
+
searchIconInner: "ResourcesGridList_module_searchIconInner",
|
|
2530
|
+
searchInput: "ResourcesGridList_module_searchInput",
|
|
2531
|
+
dropdownPanel: "ResourcesGridList_module_dropdownPanel",
|
|
2532
|
+
dropdownOption: "ResourcesGridList_module_dropdownOption",
|
|
2533
|
+
selected: "ResourcesGridList_module_selected",
|
|
2534
|
+
content: "ResourcesGridList_module_content",
|
|
2535
|
+
mobileSidebarOverlay: "ResourcesGridList_module_mobileSidebarOverlay",
|
|
2536
|
+
mobileSidebarOverlayOpen: "ResourcesGridList_module_mobileSidebarOverlayOpen",
|
|
2537
|
+
mobileCategoriesPanel: "ResourcesGridList_module_mobileCategoriesPanel",
|
|
2538
|
+
mobileCategoriesList: "ResourcesGridList_module_mobileCategoriesList",
|
|
2539
|
+
mobileSidebarItem: "ResourcesGridList_module_mobileSidebarItem",
|
|
2540
|
+
mobileSidebarCloseColumn: "ResourcesGridList_module_mobileSidebarCloseColumn",
|
|
2541
|
+
sidebar: "ResourcesGridList_module_sidebar",
|
|
2542
|
+
sidebarItem: "ResourcesGridList_module_sidebarItem",
|
|
2543
|
+
sidebarMobile: "ResourcesGridList_module_sidebarMobile",
|
|
2544
|
+
hamburger: "ResourcesGridList_module_hamburger",
|
|
2545
|
+
cardsArea: "ResourcesGridList_module_cardsArea",
|
|
2546
|
+
grid: "ResourcesGridList_module_grid",
|
|
2547
|
+
list: "ResourcesGridList_module_list",
|
|
2548
|
+
cardGrid: "ResourcesGridList_module_cardGrid",
|
|
2549
|
+
cardBody: "ResourcesGridList_module_cardBody",
|
|
2550
|
+
cardIconTitle: "ResourcesGridList_module_cardIconTitle",
|
|
2551
|
+
cardTitle: "ResourcesGridList_module_cardTitle",
|
|
2552
|
+
cardMeta: "ResourcesGridList_module_cardMeta",
|
|
2553
|
+
cardDate: "ResourcesGridList_module_cardDate",
|
|
2554
|
+
cardList: "ResourcesGridList_module_cardList",
|
|
2555
|
+
cardListLeft: "ResourcesGridList_module_cardListLeft",
|
|
2556
|
+
cardListRight: "ResourcesGridList_module_cardListRight",
|
|
2557
|
+
notificationDot: "ResourcesGridList_module_notificationDot",
|
|
2558
|
+
iconWrapper: "ResourcesGridList_module_iconWrapper",
|
|
2559
|
+
pagination: "ResourcesGridList_module_pagination",
|
|
2560
|
+
pageArrow: "ResourcesGridList_module_pageArrow",
|
|
2561
|
+
pageDotActive: "ResourcesGridList_module_pageDotActive",
|
|
2562
|
+
pageDot: "ResourcesGridList_module_pageDot"
|
|
2563
|
+
};
|
|
2564
|
+
var FILTER_OPTIONS = [
|
|
2565
|
+
{ value: "link", label: "Link", icon: "externalLink" },
|
|
2566
|
+
{ value: "pdf", label: "PDF", icon: "pdf" }
|
|
2567
|
+
];
|
|
2568
|
+
var SORT_OPTIONS = [
|
|
2569
|
+
{ value: "latest", label: "Latest" },
|
|
2570
|
+
{ value: "oldest", label: "Oldest" },
|
|
2571
|
+
{ value: "az", label: "A \u2192 Z" },
|
|
2572
|
+
{ value: "za", label: "Z \u2192 A" }
|
|
2573
|
+
];
|
|
2574
|
+
function FilterBar({
|
|
2575
|
+
view,
|
|
2576
|
+
onViewChange,
|
|
2577
|
+
isMobile,
|
|
2578
|
+
filterValue,
|
|
2579
|
+
onFilterChange,
|
|
2580
|
+
sortValue,
|
|
2581
|
+
onSortChange
|
|
2582
|
+
}) {
|
|
2583
|
+
const [openDropdown, setOpenDropdown] = useState(null);
|
|
2584
|
+
const [searchState, setSearchState] = useState("closed");
|
|
2585
|
+
const [searchQuery, setSearchQuery] = useState("");
|
|
2586
|
+
const filterRef = useRef(null);
|
|
2587
|
+
const sortRef = useRef(null);
|
|
2588
|
+
const searchInputRef = useRef(null);
|
|
2589
|
+
const closeSearch = () => {
|
|
2590
|
+
setSearchState("closing");
|
|
2591
|
+
setSearchQuery("");
|
|
2592
|
+
};
|
|
2593
|
+
useEffect(() => {
|
|
2594
|
+
const handleMouseDown = (e) => {
|
|
2595
|
+
var _a, _b;
|
|
2596
|
+
const target = e.target;
|
|
2597
|
+
if (((_a = filterRef.current) == null ? void 0 : _a.contains(target)) || ((_b = sortRef.current) == null ? void 0 : _b.contains(target))) return;
|
|
2598
|
+
setOpenDropdown(null);
|
|
2599
|
+
};
|
|
2600
|
+
document.addEventListener("mousedown", handleMouseDown);
|
|
2601
|
+
return () => document.removeEventListener("mousedown", handleMouseDown);
|
|
2602
|
+
}, []);
|
|
2603
|
+
useEffect(() => {
|
|
2604
|
+
var _a;
|
|
2605
|
+
if (searchState === "open") (_a = searchInputRef.current) == null ? void 0 : _a.focus();
|
|
2606
|
+
}, [searchState]);
|
|
2607
|
+
return /* @__PURE__ */ jsxs("div", { className: ResourcesGridList_module_default.filterBar, children: [
|
|
2608
|
+
/* @__PURE__ */ jsxs("div", { className: ResourcesGridList_module_default.viewToggle, children: [
|
|
2609
|
+
/* @__PURE__ */ jsxs(
|
|
2610
|
+
"button",
|
|
2611
|
+
{
|
|
2612
|
+
type: "button",
|
|
2613
|
+
className: clsx22(ResourcesGridList_module_default.chip, view === "grid" && ResourcesGridList_module_default.active),
|
|
2614
|
+
onClick: () => onViewChange("grid"),
|
|
2615
|
+
"aria-pressed": view === "grid",
|
|
2616
|
+
children: [
|
|
2617
|
+
/* @__PURE__ */ jsx(Icon, { type: "grid", size: 20, "aria-hidden": "true" }),
|
|
2618
|
+
/* @__PURE__ */ jsx("span", { className: ResourcesGridList_module_default.chipLabel, children: "Grid" })
|
|
2619
|
+
]
|
|
2620
|
+
}
|
|
2621
|
+
),
|
|
2622
|
+
/* @__PURE__ */ jsxs(
|
|
2623
|
+
"button",
|
|
2624
|
+
{
|
|
2625
|
+
type: "button",
|
|
2626
|
+
className: clsx22(ResourcesGridList_module_default.chip, view === "list" && ResourcesGridList_module_default.active),
|
|
2627
|
+
onClick: () => onViewChange("list"),
|
|
2628
|
+
"aria-pressed": view === "list",
|
|
2629
|
+
children: [
|
|
2630
|
+
/* @__PURE__ */ jsx(Icon, { type: "list", size: 20, "aria-hidden": "true" }),
|
|
2631
|
+
/* @__PURE__ */ jsx("span", { className: ResourcesGridList_module_default.chipLabel, children: "List" })
|
|
2632
|
+
]
|
|
2633
|
+
}
|
|
2634
|
+
)
|
|
2635
|
+
] }),
|
|
2636
|
+
/* @__PURE__ */ jsxs("div", { className: ResourcesGridList_module_default.filterActions, children: [
|
|
2637
|
+
/* @__PURE__ */ jsxs("div", { className: ResourcesGridList_module_default.dropdownWrapper, ref: filterRef, children: [
|
|
2638
|
+
/* @__PURE__ */ jsxs(
|
|
2639
|
+
"button",
|
|
2640
|
+
{
|
|
2641
|
+
type: "button",
|
|
2642
|
+
className: clsx22(ResourcesGridList_module_default.chip, filterValue !== "all" && ResourcesGridList_module_default.active),
|
|
2643
|
+
onClick: () => setOpenDropdown(openDropdown === "filter" ? null : "filter"),
|
|
2644
|
+
"aria-expanded": openDropdown === "filter",
|
|
2645
|
+
children: [
|
|
2646
|
+
/* @__PURE__ */ jsx(Icon, { type: "filter", size: 20, "aria-hidden": "true" }),
|
|
2647
|
+
!isMobile && /* @__PURE__ */ jsx("span", { className: ResourcesGridList_module_default.chipLabel, children: "Filter" })
|
|
2648
|
+
]
|
|
2649
|
+
}
|
|
2650
|
+
),
|
|
2651
|
+
openDropdown === "filter" && /* @__PURE__ */ jsx("div", { className: ResourcesGridList_module_default.dropdownPanel, role: "listbox", "aria-label": "Filter by type", children: FILTER_OPTIONS.map((opt) => /* @__PURE__ */ jsxs(
|
|
2652
|
+
"button",
|
|
2653
|
+
{
|
|
2654
|
+
type: "button",
|
|
2655
|
+
role: "option",
|
|
2656
|
+
"aria-selected": filterValue === opt.value,
|
|
2657
|
+
className: clsx22(
|
|
2658
|
+
ResourcesGridList_module_default.dropdownOption,
|
|
2659
|
+
filterValue === opt.value && ResourcesGridList_module_default.selected
|
|
2660
|
+
),
|
|
2661
|
+
onClick: () => {
|
|
2662
|
+
onFilterChange(filterValue === opt.value ? "all" : opt.value);
|
|
2663
|
+
setOpenDropdown(null);
|
|
2664
|
+
},
|
|
2665
|
+
children: [
|
|
2666
|
+
/* @__PURE__ */ jsx(Icon, { type: opt.icon, size: 20, "aria-hidden": "true" }),
|
|
2667
|
+
opt.label
|
|
2668
|
+
]
|
|
2669
|
+
},
|
|
2670
|
+
opt.value
|
|
2671
|
+
)) })
|
|
2672
|
+
] }),
|
|
2673
|
+
/* @__PURE__ */ jsxs("div", { className: ResourcesGridList_module_default.dropdownWrapper, ref: sortRef, children: [
|
|
2674
|
+
/* @__PURE__ */ jsxs(
|
|
2675
|
+
"button",
|
|
2676
|
+
{
|
|
2677
|
+
type: "button",
|
|
2678
|
+
className: ResourcesGridList_module_default.chip,
|
|
2679
|
+
onClick: () => setOpenDropdown(openDropdown === "sort" ? null : "sort"),
|
|
2680
|
+
"aria-expanded": openDropdown === "sort",
|
|
2681
|
+
children: [
|
|
2682
|
+
/* @__PURE__ */ jsx(Icon, { type: "internalFilter", size: 20, "aria-hidden": "true" }),
|
|
2683
|
+
!isMobile && /* @__PURE__ */ jsx("span", { className: ResourcesGridList_module_default.chipLabel, children: "Sort" })
|
|
2684
|
+
]
|
|
2685
|
+
}
|
|
2686
|
+
),
|
|
2687
|
+
openDropdown === "sort" && /* @__PURE__ */ jsx("div", { className: ResourcesGridList_module_default.dropdownPanel, role: "listbox", "aria-label": "Sort by", children: SORT_OPTIONS.map((opt) => /* @__PURE__ */ jsx(
|
|
2688
|
+
"button",
|
|
2689
|
+
{
|
|
2690
|
+
type: "button",
|
|
2691
|
+
role: "option",
|
|
2692
|
+
"aria-selected": sortValue === opt.value,
|
|
2693
|
+
className: clsx22(
|
|
2694
|
+
ResourcesGridList_module_default.dropdownOption,
|
|
2695
|
+
sortValue === opt.value && ResourcesGridList_module_default.selected
|
|
2696
|
+
),
|
|
2697
|
+
onClick: () => {
|
|
2698
|
+
onSortChange(opt.value);
|
|
2699
|
+
setOpenDropdown(null);
|
|
2700
|
+
},
|
|
2701
|
+
children: opt.label
|
|
2702
|
+
},
|
|
2703
|
+
opt.value
|
|
2704
|
+
)) })
|
|
2705
|
+
] }),
|
|
2706
|
+
searchState !== "closed" ? /* @__PURE__ */ jsxs(
|
|
2707
|
+
"div",
|
|
2708
|
+
{
|
|
2709
|
+
className: clsx22(
|
|
2710
|
+
ResourcesGridList_module_default.searchExpanded,
|
|
2711
|
+
searchState === "closing" && ResourcesGridList_module_default.searchCollapsing
|
|
2712
|
+
),
|
|
2713
|
+
onAnimationEnd: () => {
|
|
2714
|
+
if (searchState === "closing") setSearchState("closed");
|
|
2715
|
+
},
|
|
2716
|
+
children: [
|
|
2717
|
+
/* @__PURE__ */ jsx("span", { className: ResourcesGridList_module_default.searchIconInner, children: /* @__PURE__ */ jsx(Icon, { type: "search", size: 20, "aria-hidden": "true" }) }),
|
|
2718
|
+
/* @__PURE__ */ jsx(
|
|
2719
|
+
"input",
|
|
2720
|
+
{
|
|
2721
|
+
ref: searchInputRef,
|
|
2722
|
+
type: "text",
|
|
2723
|
+
className: ResourcesGridList_module_default.searchInput,
|
|
2724
|
+
placeholder: "Search\u2026",
|
|
2725
|
+
value: searchQuery,
|
|
2726
|
+
onChange: (e) => setSearchQuery(e.target.value),
|
|
2727
|
+
onKeyDown: (e) => {
|
|
2728
|
+
if (e.key === "Escape") closeSearch();
|
|
2729
|
+
},
|
|
2730
|
+
onBlur: closeSearch
|
|
2731
|
+
}
|
|
2732
|
+
)
|
|
2733
|
+
]
|
|
2734
|
+
}
|
|
2735
|
+
) : /* @__PURE__ */ jsxs("button", { type: "button", className: ResourcesGridList_module_default.chip, onClick: () => setSearchState("open"), children: [
|
|
2736
|
+
/* @__PURE__ */ jsx(Icon, { type: "search", size: 20, "aria-hidden": "true" }),
|
|
2737
|
+
!isMobile && /* @__PURE__ */ jsx("span", { className: ResourcesGridList_module_default.chipLabel, children: "Search" })
|
|
2738
|
+
] })
|
|
2739
|
+
] })
|
|
2740
|
+
] });
|
|
2741
|
+
}
|
|
2742
|
+
var Sidebar = ({ categories, isMobile, onToggle }) => {
|
|
2743
|
+
if (isMobile) {
|
|
2744
|
+
return /* @__PURE__ */ jsx("div", { className: ResourcesGridList_module_default.sidebarMobile, children: /* @__PURE__ */ jsx(
|
|
2745
|
+
"button",
|
|
2746
|
+
{
|
|
2747
|
+
type: "button",
|
|
2748
|
+
className: ResourcesGridList_module_default.hamburger,
|
|
2749
|
+
"aria-label": "Open categories",
|
|
2750
|
+
onClick: onToggle,
|
|
2751
|
+
children: /* @__PURE__ */ jsx(Icon, { type: "menuBlack", size: 20, "aria-hidden": "true" })
|
|
2752
|
+
}
|
|
2753
|
+
) });
|
|
2754
|
+
}
|
|
2755
|
+
return /* @__PURE__ */ jsx("nav", { className: ResourcesGridList_module_default.sidebar, "aria-label": "Resource categories", children: /* @__PURE__ */ jsx("ul", { children: categories.map((cat, i) => {
|
|
2756
|
+
var _a;
|
|
2757
|
+
return /* @__PURE__ */ jsxs(
|
|
2758
|
+
"li",
|
|
2759
|
+
{
|
|
2760
|
+
className: clsx22(ResourcesGridList_module_default.sidebarItem, cat.active && ResourcesGridList_module_default.active),
|
|
2761
|
+
children: [
|
|
2762
|
+
/* @__PURE__ */ jsx("span", { children: cat.label }),
|
|
2763
|
+
cat.hasNotification && /* @__PURE__ */ jsx("span", { className: ResourcesGridList_module_default.notificationDot, "aria-label": "New" })
|
|
2764
|
+
]
|
|
2765
|
+
},
|
|
2766
|
+
(_a = cat.label) != null ? _a : i
|
|
2767
|
+
);
|
|
2768
|
+
}) }) });
|
|
2769
|
+
};
|
|
2770
|
+
var ResourceIcon = ({ type }) => /* @__PURE__ */ jsx("div", { className: ResourcesGridList_module_default.iconWrapper, children: /* @__PURE__ */ jsx(Icon, { type: type === "pdf" ? "pdf" : "externalLink", size: 32, "aria-hidden": "true" }) });
|
|
2771
|
+
var ResourceCardItem = ({ item, view }) => {
|
|
2772
|
+
if (view === "grid") {
|
|
2773
|
+
return /* @__PURE__ */ jsx("article", { className: ResourcesGridList_module_default.cardGrid, children: /* @__PURE__ */ jsxs("div", { className: ResourcesGridList_module_default.cardBody, children: [
|
|
2774
|
+
/* @__PURE__ */ jsxs("div", { className: ResourcesGridList_module_default.cardIconTitle, children: [
|
|
2775
|
+
/* @__PURE__ */ jsx(ResourceIcon, { type: item.type }),
|
|
2776
|
+
/* @__PURE__ */ jsx("span", { className: ResourcesGridList_module_default.cardTitle, children: item.title })
|
|
2777
|
+
] }),
|
|
2778
|
+
/* @__PURE__ */ jsxs("div", { className: ResourcesGridList_module_default.cardMeta, children: [
|
|
2779
|
+
/* @__PURE__ */ jsx("span", { className: ResourcesGridList_module_default.cardDate, children: item.date }),
|
|
2780
|
+
item.hasNotification && /* @__PURE__ */ jsx("span", { className: ResourcesGridList_module_default.notificationDot, "aria-label": "New" })
|
|
2781
|
+
] })
|
|
2782
|
+
] }) });
|
|
2783
|
+
}
|
|
2784
|
+
return /* @__PURE__ */ jsxs("article", { className: ResourcesGridList_module_default.cardList, children: [
|
|
2785
|
+
/* @__PURE__ */ jsxs("div", { className: ResourcesGridList_module_default.cardListLeft, children: [
|
|
2786
|
+
/* @__PURE__ */ jsx("span", { className: ResourcesGridList_module_default.cardDate, children: item.date }),
|
|
2787
|
+
item.hasNotification && /* @__PURE__ */ jsx("span", { className: ResourcesGridList_module_default.notificationDot, "aria-label": "New" })
|
|
2788
|
+
] }),
|
|
2789
|
+
/* @__PURE__ */ jsxs("div", { className: ResourcesGridList_module_default.cardListRight, children: [
|
|
2790
|
+
/* @__PURE__ */ jsx(ResourceIcon, { type: item.type }),
|
|
2791
|
+
/* @__PURE__ */ jsx("span", { className: ResourcesGridList_module_default.cardTitle, children: item.title })
|
|
2792
|
+
] })
|
|
2793
|
+
] });
|
|
2794
|
+
};
|
|
2795
|
+
var Pagination3 = () => /* @__PURE__ */ jsxs("div", { className: ResourcesGridList_module_default.pagination, "aria-label": "Pagination", children: [
|
|
2796
|
+
/* @__PURE__ */ jsx("button", { type: "button", className: ResourcesGridList_module_default.pageArrow, "aria-label": "Previous page", children: /* @__PURE__ */ jsx(Icon, { type: "chevronLeftBlack", size: 32, "aria-hidden": "true" }) }),
|
|
2797
|
+
/* @__PURE__ */ jsx("span", { className: ResourcesGridList_module_default.pageDotActive, "aria-current": "page" }),
|
|
2798
|
+
/* @__PURE__ */ jsx("span", { className: ResourcesGridList_module_default.pageDot }),
|
|
2799
|
+
/* @__PURE__ */ jsx("span", { className: ResourcesGridList_module_default.pageDot }),
|
|
2800
|
+
/* @__PURE__ */ jsx("button", { type: "button", className: ResourcesGridList_module_default.pageArrow, "aria-label": "Next page", children: /* @__PURE__ */ jsx(Icon, { type: "chevronRightBlack", size: 32, "aria-hidden": "true" }) })
|
|
2801
|
+
] });
|
|
2802
|
+
var ResourcesGridList = ({
|
|
2803
|
+
className,
|
|
2804
|
+
items = [],
|
|
2805
|
+
categories = [],
|
|
2806
|
+
defaultView = "grid",
|
|
2807
|
+
defaultFilter = "all",
|
|
2808
|
+
defaultSort = "latest"
|
|
2809
|
+
}) => {
|
|
2810
|
+
const [view, setView] = useState(defaultView);
|
|
2811
|
+
const [isSidebarOpen, setIsSidebarOpen] = useState(false);
|
|
2812
|
+
const [filterValue, setFilterValue] = useState(defaultFilter);
|
|
2813
|
+
const [sortValue, setSortValue] = useState(defaultSort);
|
|
2814
|
+
const { is } = useViewPort_default();
|
|
2815
|
+
const isMobile = is("tablet", "below");
|
|
2816
|
+
const displayedItems = [...items].filter((item) => filterValue === "all" || item.type === filterValue).sort((a, b) => {
|
|
2817
|
+
if (sortValue === "latest") return new Date(b.date).getTime() - new Date(a.date).getTime();
|
|
2818
|
+
if (sortValue === "oldest") return new Date(a.date).getTime() - new Date(b.date).getTime();
|
|
2819
|
+
if (sortValue === "az") return a.title.localeCompare(b.title);
|
|
2820
|
+
if (sortValue === "za") return b.title.localeCompare(a.title);
|
|
2821
|
+
return 0;
|
|
2822
|
+
});
|
|
2823
|
+
return /* @__PURE__ */ jsxs("div", { className: clsx22(ResourcesGridList_module_default.widget, className), children: [
|
|
2824
|
+
/* @__PURE__ */ jsx(
|
|
2825
|
+
FilterBar,
|
|
2826
|
+
{
|
|
2827
|
+
view,
|
|
2828
|
+
onViewChange: setView,
|
|
2829
|
+
isMobile,
|
|
2830
|
+
filterValue,
|
|
2831
|
+
onFilterChange: setFilterValue,
|
|
2832
|
+
sortValue,
|
|
2833
|
+
onSortChange: setSortValue
|
|
2834
|
+
}
|
|
2835
|
+
),
|
|
2836
|
+
/* @__PURE__ */ jsxs("div", { className: ResourcesGridList_module_default.content, children: [
|
|
2837
|
+
isMobile && /* @__PURE__ */ jsxs(
|
|
2838
|
+
"div",
|
|
2839
|
+
{
|
|
2840
|
+
className: clsx22(
|
|
2841
|
+
ResourcesGridList_module_default.mobileSidebarOverlay,
|
|
2842
|
+
isSidebarOpen && ResourcesGridList_module_default.mobileSidebarOverlayOpen
|
|
2843
|
+
),
|
|
2844
|
+
"aria-hidden": !isSidebarOpen,
|
|
2845
|
+
children: [
|
|
2846
|
+
/* @__PURE__ */ jsx("nav", { className: ResourcesGridList_module_default.mobileCategoriesPanel, "aria-label": "Resource categories", children: /* @__PURE__ */ jsx("ul", { className: ResourcesGridList_module_default.mobileCategoriesList, children: categories.map((cat, i) => {
|
|
2847
|
+
var _a;
|
|
2848
|
+
return /* @__PURE__ */ jsxs(
|
|
2849
|
+
"li",
|
|
2850
|
+
{
|
|
2851
|
+
className: clsx22(ResourcesGridList_module_default.mobileSidebarItem, cat.active && ResourcesGridList_module_default.active),
|
|
2852
|
+
children: [
|
|
2853
|
+
/* @__PURE__ */ jsx("span", { children: cat.label }),
|
|
2854
|
+
cat.hasNotification && /* @__PURE__ */ jsx("span", { className: ResourcesGridList_module_default.notificationDot, "aria-label": "New" })
|
|
2855
|
+
]
|
|
2856
|
+
},
|
|
2857
|
+
(_a = cat.label) != null ? _a : i
|
|
2858
|
+
);
|
|
2859
|
+
}) }) }),
|
|
2860
|
+
/* @__PURE__ */ jsx("div", { className: ResourcesGridList_module_default.mobileSidebarCloseColumn, children: /* @__PURE__ */ jsx(
|
|
2861
|
+
"button",
|
|
2862
|
+
{
|
|
2863
|
+
type: "button",
|
|
2864
|
+
className: ResourcesGridList_module_default.hamburger,
|
|
2865
|
+
"aria-label": "Close categories",
|
|
2866
|
+
onClick: () => setIsSidebarOpen(false),
|
|
2867
|
+
children: /* @__PURE__ */ jsx(Icon, { type: "xBlack", size: 20, "aria-hidden": "true" })
|
|
2868
|
+
}
|
|
2869
|
+
) })
|
|
2870
|
+
]
|
|
2871
|
+
}
|
|
2872
|
+
),
|
|
2873
|
+
/* @__PURE__ */ jsx(
|
|
2874
|
+
Sidebar,
|
|
2875
|
+
{
|
|
2876
|
+
categories,
|
|
2877
|
+
isMobile,
|
|
2878
|
+
onToggle: () => setIsSidebarOpen(true)
|
|
2879
|
+
}
|
|
2880
|
+
),
|
|
2881
|
+
/* @__PURE__ */ jsx("div", { className: clsx22(ResourcesGridList_module_default.cardsArea, ResourcesGridList_module_default[view]), children: displayedItems.map((item, i) => {
|
|
2882
|
+
var _a;
|
|
2883
|
+
return /* @__PURE__ */ jsx(ResourceCardItem, { item, view }, (_a = item.title) != null ? _a : i);
|
|
2884
|
+
}) })
|
|
2885
|
+
] }),
|
|
2886
|
+
/* @__PURE__ */ jsx(Pagination3, {})
|
|
2887
|
+
] });
|
|
2888
|
+
};
|
|
2177
2889
|
function useIntersectionObserver({
|
|
2178
2890
|
animateOnce = false,
|
|
2179
2891
|
options = {}
|
|
@@ -2203,6 +2915,6 @@ function useIntersectionObserver({
|
|
|
2203
2915
|
return { observeRef, isVisible };
|
|
2204
2916
|
}
|
|
2205
2917
|
|
|
2206
|
-
export { Anchor, BrandsStrip, Button, Card2 as Card, CardCollection2 as CardCollection, ConditionalWrapper, ContactModule2 as ContactModule, Container, CountingCard2 as CountingCard, EventList2 as EventList, Footer, HeroBanner2 as HeroBanner, HeroBannerCarousel, Icon, InfoCard2 as InfoCard, MiniBanner2 as MiniBanner, MiniSectionCta2 as MiniSectionCta, Pagination, Picture, PracticeCard, PracticePathCards2 as PracticePathCards, Teaser5050With3Text2 as Teaser5050With3Text, Teaser5050WithCta2 as Teaser5050WithCta, TextBody2 as TextBody, TextCenterCtaInBottom2 as TextCenterCtaInBottom, TextEvent2 as TextEvent, resolveCompoundSlots, svgs, useIntersectionObserver };
|
|
2918
|
+
export { Anchor, BrandsStrip, Button, Card2 as Card, CardCollection2 as CardCollection, ConditionalWrapper, ContactModule2 as ContactModule, Container, CountingCard2 as CountingCard, EventList2 as EventList, Footer, HeroBanner2 as HeroBanner, HeroBannerCarousel, Icon, InfoCard2 as InfoCard, InternalBrandsTab2 as InternalBrandsTab, MiniBanner2 as MiniBanner, MiniSectionCta2 as MiniSectionCta, Pagination, Picture, PracticeCard, PracticePathCards2 as PracticePathCards, ResourcesGridList, Teaser5050With3Text2 as Teaser5050With3Text, Teaser5050WithCta2 as Teaser5050WithCta, TextBody2 as TextBody, TextCenterCtaInBottom2 as TextCenterCtaInBottom, TextEvent2 as TextEvent, resolveCompoundSlots, svgs, useIntersectionObserver };
|
|
2207
2919
|
//# sourceMappingURL=index.mjs.map
|
|
2208
2920
|
//# sourceMappingURL=index.mjs.map
|