@digital-b2c/coreui-kit 0.4.1 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +487 -103
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +544 -40
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +63 -11
- package/dist/index.d.ts +63 -11
- package/dist/index.mjs +486 -105
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -2
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import clsx19 from 'clsx';
|
|
2
2
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
3
|
-
import React52, {
|
|
4
|
-
import { gsap } from 'gsap';
|
|
5
|
-
import { ScrollTrigger } from 'gsap/ScrollTrigger';
|
|
3
|
+
import React52, { forwardRef, Children, isValidElement, useRef, useState, useCallback, useMemo, useEffect } from 'react';
|
|
4
|
+
import gsap$1, { gsap } from 'gsap';
|
|
6
5
|
import { useGSAP } from '@gsap/react';
|
|
6
|
+
import { ScrollTrigger } from 'gsap/ScrollTrigger';
|
|
7
|
+
import { Swiper, SwiperSlide } from 'swiper/react';
|
|
8
|
+
import { FreeMode } from 'swiper/modules';
|
|
9
|
+
import 'swiper/css';
|
|
7
10
|
|
|
8
11
|
var __defProp = Object.defineProperty;
|
|
9
12
|
var __defProps = Object.defineProperties;
|
|
@@ -55,7 +58,7 @@ var Picture = (_a) => {
|
|
|
55
58
|
__spreadValues({
|
|
56
59
|
src: desktop.src,
|
|
57
60
|
alt: desktop.alt,
|
|
58
|
-
className:
|
|
61
|
+
className: clsx19(className, Picture_module_default["image-desktop"])
|
|
59
62
|
}, rest)
|
|
60
63
|
),
|
|
61
64
|
/* @__PURE__ */ jsx(
|
|
@@ -63,7 +66,7 @@ var Picture = (_a) => {
|
|
|
63
66
|
__spreadValues({
|
|
64
67
|
src: (_b2 = mobile == null ? void 0 : mobile.src) != null ? _b2 : desktop.src,
|
|
65
68
|
alt: (_c = mobile == null ? void 0 : mobile.alt) != null ? _c : desktop.alt,
|
|
66
|
-
className:
|
|
69
|
+
className: clsx19(className, Picture_module_default["image-mobile"])
|
|
67
70
|
}, rest)
|
|
68
71
|
)
|
|
69
72
|
] });
|
|
@@ -377,7 +380,7 @@ var Button = (_a) => {
|
|
|
377
380
|
]);
|
|
378
381
|
const isLink = !!href;
|
|
379
382
|
const props = __spreadValues(__spreadValues({
|
|
380
|
-
className:
|
|
383
|
+
className: clsx19(
|
|
381
384
|
Button_module_default.button,
|
|
382
385
|
variant ? Button_module_default[variant] : null,
|
|
383
386
|
{ [Button_module_default.fullWidth]: !!fullWidth },
|
|
@@ -486,9 +489,7 @@ var BrandsStrip_module_default = {
|
|
|
486
489
|
title: "BrandsStrip_module_title",
|
|
487
490
|
blurred: "BrandsStrip_module_blurred",
|
|
488
491
|
logos: "BrandsStrip_module_logos",
|
|
489
|
-
|
|
490
|
-
scrollIndividual: "BrandsStrip_module_scrollIndividual",
|
|
491
|
-
paused: "BrandsStrip_module_paused",
|
|
492
|
+
marqueeGSAP: "BrandsStrip_module_marqueeGSAP",
|
|
492
493
|
logo: "BrandsStrip_module_logo",
|
|
493
494
|
cta: "BrandsStrip_module_cta"
|
|
494
495
|
};
|
|
@@ -498,37 +499,136 @@ var BrandsStrip = ({
|
|
|
498
499
|
title,
|
|
499
500
|
logos = [],
|
|
500
501
|
cta,
|
|
501
|
-
size
|
|
502
|
-
animate = false
|
|
502
|
+
size
|
|
503
503
|
}) => {
|
|
504
504
|
const [show, setShow] = useState(false);
|
|
505
|
+
const [shouldAnimate, setShouldAnimate] = useState(false);
|
|
505
506
|
const { is } = useViewPort_default();
|
|
506
507
|
const isTabletBelow = is("tablet", "below");
|
|
507
|
-
const
|
|
508
|
+
const containerRef = useRef(null);
|
|
509
|
+
const marqueeRef = useRef(null);
|
|
510
|
+
const timeline = useRef(null);
|
|
511
|
+
const horizontalLoop = (items, config) => {
|
|
512
|
+
const itemsArray = gsap$1.utils.toArray(items);
|
|
513
|
+
const cfg = config || {};
|
|
514
|
+
const tl = gsap$1.timeline({
|
|
515
|
+
repeat: cfg.repeat,
|
|
516
|
+
paused: cfg.paused,
|
|
517
|
+
defaults: { ease: "none" },
|
|
518
|
+
onReverseComplete: () => tl.totalTime(tl.rawTime() + tl.duration() * 100)
|
|
519
|
+
});
|
|
520
|
+
const length = itemsArray.length;
|
|
521
|
+
const startX = itemsArray[0].offsetLeft;
|
|
522
|
+
const widths = [];
|
|
523
|
+
const xPercents = [];
|
|
524
|
+
const pixelsPerSecond = (cfg.speed || 1) * 100;
|
|
525
|
+
const snap = cfg.snap === false ? (v) => v : gsap$1.utils.snap(cfg.snap || 1);
|
|
526
|
+
gsap$1.set(itemsArray, {
|
|
527
|
+
xPercent: (i, target) => {
|
|
528
|
+
const w = widths[i] = parseFloat(gsap$1.getProperty(target, "width", "px"));
|
|
529
|
+
xPercents[i] = snap(
|
|
530
|
+
parseFloat(gsap$1.getProperty(target, "x", "px")) / w * 100 + gsap$1.getProperty(target, "xPercent")
|
|
531
|
+
);
|
|
532
|
+
return xPercents[i];
|
|
533
|
+
}
|
|
534
|
+
});
|
|
535
|
+
gsap$1.set(itemsArray, { x: 0 });
|
|
536
|
+
const totalWidth = itemsArray[length - 1].offsetLeft + xPercents[length - 1] / 100 * widths[length - 1] - startX + itemsArray[length - 1].offsetWidth * gsap$1.getProperty(itemsArray[length - 1], "scaleX") + (parseFloat(cfg.paddingRight) || 0);
|
|
537
|
+
for (let i = 0; i < length; i++) {
|
|
538
|
+
const item = itemsArray[i];
|
|
539
|
+
const curX = xPercents[i] / 100 * widths[i];
|
|
540
|
+
const distanceToStart = item.offsetLeft - startX;
|
|
541
|
+
const distanceToLoop = distanceToStart + widths[i] * gsap$1.getProperty(item, "scaleX");
|
|
542
|
+
tl.to(
|
|
543
|
+
item,
|
|
544
|
+
{
|
|
545
|
+
xPercent: snap((curX - distanceToLoop) / widths[i] * 100),
|
|
546
|
+
duration: distanceToLoop / pixelsPerSecond
|
|
547
|
+
},
|
|
548
|
+
0
|
|
549
|
+
).fromTo(
|
|
550
|
+
item,
|
|
551
|
+
{ xPercent: snap((curX - distanceToLoop + totalWidth) / widths[i] * 100) },
|
|
552
|
+
{
|
|
553
|
+
xPercent: xPercents[i],
|
|
554
|
+
duration: (totalWidth - distanceToLoop) / pixelsPerSecond,
|
|
555
|
+
immediateRender: false
|
|
556
|
+
},
|
|
557
|
+
distanceToLoop / pixelsPerSecond
|
|
558
|
+
).add("label" + i, distanceToStart / pixelsPerSecond);
|
|
559
|
+
}
|
|
560
|
+
return tl;
|
|
561
|
+
};
|
|
562
|
+
useGSAP(
|
|
563
|
+
() => {
|
|
564
|
+
const refreshCalculations = () => {
|
|
565
|
+
if (!marqueeRef.current || !containerRef.current || logos.length === 0) return;
|
|
566
|
+
const items = gsap$1.utils.toArray(marqueeRef.current.children);
|
|
567
|
+
if (items.length === 0) return;
|
|
568
|
+
const itemWidth = items[0].clientWidth;
|
|
569
|
+
const calculatedTotalWidth = shouldAnimate ? itemWidth * items.length + 120 * (items.length - 1) / 2 : itemWidth * items.length + 120 * (items.length - 1);
|
|
570
|
+
const containerWidth = containerRef.current.clientWidth;
|
|
571
|
+
if (containerWidth === 0) {
|
|
572
|
+
requestAnimationFrame(refreshCalculations);
|
|
573
|
+
return;
|
|
574
|
+
}
|
|
575
|
+
if (containerWidth < calculatedTotalWidth) {
|
|
576
|
+
setShouldAnimate(true);
|
|
577
|
+
const ctx = gsap$1.context(() => {
|
|
578
|
+
const loop = horizontalLoop(items, {
|
|
579
|
+
repeat: -1,
|
|
580
|
+
speed: 1,
|
|
581
|
+
paddingRight: 120
|
|
582
|
+
});
|
|
583
|
+
timeline.current = loop;
|
|
584
|
+
}, containerRef);
|
|
585
|
+
return () => ctx.revert();
|
|
586
|
+
}
|
|
587
|
+
};
|
|
588
|
+
refreshCalculations();
|
|
589
|
+
},
|
|
590
|
+
{ scope: containerRef, dependencies: [logos] }
|
|
591
|
+
);
|
|
592
|
+
const handleMouseEnter = () => {
|
|
593
|
+
setShow(true);
|
|
594
|
+
if (timeline.current) {
|
|
595
|
+
timeline.current.pause();
|
|
596
|
+
}
|
|
597
|
+
};
|
|
598
|
+
const handleMouseLeave = () => {
|
|
599
|
+
setShow(false);
|
|
600
|
+
if (timeline.current) {
|
|
601
|
+
timeline.current.play();
|
|
602
|
+
}
|
|
603
|
+
};
|
|
604
|
+
const duplicatedLogos = useMemo(() => {
|
|
605
|
+
if (logos.length === 0) return [];
|
|
606
|
+
if (!shouldAnimate) return [...logos];
|
|
607
|
+
return [...logos, ...logos];
|
|
608
|
+
}, [logos]);
|
|
508
609
|
return /* @__PURE__ */ jsxs(
|
|
509
610
|
"div",
|
|
510
611
|
{
|
|
511
|
-
|
|
612
|
+
ref: containerRef,
|
|
613
|
+
className: clsx19(
|
|
512
614
|
BrandsStrip_module_default.brandsStrip,
|
|
513
615
|
BrandsStrip_module_default[variant],
|
|
514
616
|
{ [BrandsStrip_module_default.small]: size === "small" },
|
|
515
617
|
className
|
|
516
618
|
),
|
|
517
|
-
onMouseEnter:
|
|
518
|
-
onMouseLeave:
|
|
519
|
-
style: { "--total-items": logos.length },
|
|
619
|
+
onMouseEnter: handleMouseEnter,
|
|
620
|
+
onMouseLeave: handleMouseLeave,
|
|
520
621
|
children: [
|
|
521
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
522
|
-
title && logos.length
|
|
523
|
-
logos.length > 0 && /* @__PURE__ */ jsx(
|
|
622
|
+
/* @__PURE__ */ jsxs("div", { className: clsx19(BrandsStrip_module_default.container, { [BrandsStrip_module_default.blurred]: show && logos.length > 1 }), children: [
|
|
623
|
+
title && logos.length === 1 && /* @__PURE__ */ jsx("h2", { className: clsx19("body", BrandsStrip_module_default.title), children: title }),
|
|
624
|
+
logos.length > 0 && /* @__PURE__ */ jsx(
|
|
524
625
|
"div",
|
|
525
626
|
{
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
children: /* @__PURE__ */ jsx(Picture, __spreadValues({ className: BrandsStrip_module_default.logo }, logo))
|
|
529
|
-
}
|
|
530
|
-
|
|
531
|
-
)) })
|
|
627
|
+
ref: marqueeRef,
|
|
628
|
+
className: clsx19(BrandsStrip_module_default.logos, { [BrandsStrip_module_default.marqueeGSAP]: shouldAnimate }),
|
|
629
|
+
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}`))
|
|
630
|
+
}
|
|
631
|
+
)
|
|
532
632
|
] }),
|
|
533
633
|
cta && show && logos.length > 1 && /* @__PURE__ */ jsx(
|
|
534
634
|
Button,
|
|
@@ -568,34 +668,38 @@ function resolveCompoundSlots(children, slots) {
|
|
|
568
668
|
// src/components/Card/Card.module.scss
|
|
569
669
|
var Card_module_default = {
|
|
570
670
|
card: "Card_module_card",
|
|
571
|
-
logo: "Card_module_logo"
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
/* @__PURE__ */ jsxs("div", { className: Card_module_default.
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
671
|
+
logo: "Card_module_logo",
|
|
672
|
+
subtitle: "Card_module_subtitle"
|
|
673
|
+
};
|
|
674
|
+
var Card = forwardRef(
|
|
675
|
+
({ className, title, subtitle, cta, icon, logo, children }, ref) => {
|
|
676
|
+
var _a, _b;
|
|
677
|
+
const slots = resolveCompoundSlots(children, {
|
|
678
|
+
title: CardTitle,
|
|
679
|
+
subtitle: CardSubtitle
|
|
680
|
+
});
|
|
681
|
+
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
682
|
+
const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
|
|
683
|
+
return /* @__PURE__ */ jsxs("div", { ref, className: clsx19(Card_module_default.card, className), children: [
|
|
684
|
+
(logo == null ? void 0 : logo.src) ? /* @__PURE__ */ jsx(Picture, __spreadValues({ className: Card_module_default.logo }, logo)) : icon && /* @__PURE__ */ jsx(Icon, { type: icon, className: Card_module_default.logo }),
|
|
685
|
+
/* @__PURE__ */ jsxs("div", { className: Card_module_default.content, children: [
|
|
686
|
+
titleNode && /* @__PURE__ */ jsx("h3", { className: "h4", children: titleNode }),
|
|
687
|
+
subtitleNode && /* @__PURE__ */ jsx("div", { className: Card_module_default.subtitle, children: subtitleNode })
|
|
688
|
+
] }),
|
|
689
|
+
cta && /* @__PURE__ */ jsx(
|
|
690
|
+
Button,
|
|
691
|
+
{
|
|
692
|
+
href: cta.url,
|
|
693
|
+
isExternal: cta.isExternal,
|
|
694
|
+
variant: "secondary",
|
|
695
|
+
icon: cta.url ? "rightBlack" : void 0,
|
|
696
|
+
children: cta.label
|
|
697
|
+
}
|
|
698
|
+
)
|
|
699
|
+
] });
|
|
700
|
+
}
|
|
701
|
+
);
|
|
702
|
+
Card.displayName = "Card";
|
|
599
703
|
|
|
600
704
|
// src/components/Card/index.ts
|
|
601
705
|
var Card2 = Object.assign(Card, {
|
|
@@ -618,10 +722,10 @@ var CountingCard = ({ className, title, count, image, children }) => {
|
|
|
618
722
|
title: CountingCardTitle
|
|
619
723
|
});
|
|
620
724
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
621
|
-
return /* @__PURE__ */ jsxs("div", { className:
|
|
725
|
+
return /* @__PURE__ */ jsxs("div", { className: clsx19(CountingCard_module_default["counting-card"], className), children: [
|
|
622
726
|
/* @__PURE__ */ jsxs("div", { className: CountingCard_module_default.content, children: [
|
|
623
727
|
titleNode && /* @__PURE__ */ jsx("div", { className: "body", children: titleNode }),
|
|
624
|
-
count && /* @__PURE__ */ jsx("div", { className:
|
|
728
|
+
count && /* @__PURE__ */ jsx("div", { className: clsx19(CountingCard_module_default.count, "h1"), children: count })
|
|
625
729
|
] }),
|
|
626
730
|
image && /* @__PURE__ */ jsx(Picture, __spreadValues({ className: CountingCard_module_default.logo }, image))
|
|
627
731
|
] });
|
|
@@ -653,9 +757,9 @@ var InfoCard = ({ className, title, subtitle, icon, badge, children }) => {
|
|
|
653
757
|
});
|
|
654
758
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
655
759
|
const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
|
|
656
|
-
return /* @__PURE__ */ jsxs("div", { className:
|
|
760
|
+
return /* @__PURE__ */ jsxs("div", { className: clsx19(InfoCard_module_default["info-card"], { [InfoCard_module_default.hasIcon]: !!icon }, className), children: [
|
|
657
761
|
/* @__PURE__ */ jsxs("div", { className: InfoCard_module_default.header, children: [
|
|
658
|
-
icon ? /* @__PURE__ */ jsx(Icon, { type: icon }) : badge ? /* @__PURE__ */ jsx("div", { className:
|
|
762
|
+
icon ? /* @__PURE__ */ jsx(Icon, { type: icon }) : badge ? /* @__PURE__ */ jsx("div", { className: clsx19(InfoCard_module_default.badge, "h4"), children: badge }) : null,
|
|
659
763
|
titleNode && /* @__PURE__ */ jsx("div", { className: "h4", children: titleNode })
|
|
660
764
|
] }),
|
|
661
765
|
subtitleNode && /* @__PURE__ */ jsx("div", { className: "body", children: subtitleNode })
|
|
@@ -717,7 +821,7 @@ var Pagination = ({
|
|
|
717
821
|
setActivePage(page);
|
|
718
822
|
onPageChange == null ? void 0 : onPageChange(page);
|
|
719
823
|
};
|
|
720
|
-
return /* @__PURE__ */ jsxs("div", { className:
|
|
824
|
+
return /* @__PURE__ */ jsxs("div", { className: clsx19(Pagination_module_default.pagination, className), children: [
|
|
721
825
|
!disableArrows && /* @__PURE__ */ jsx(
|
|
722
826
|
"button",
|
|
723
827
|
{
|
|
@@ -734,7 +838,7 @@ var Pagination = ({
|
|
|
734
838
|
"button",
|
|
735
839
|
{
|
|
736
840
|
onClick: () => goToPage(page),
|
|
737
|
-
className:
|
|
841
|
+
className: clsx19(Pagination_module_default.page, {
|
|
738
842
|
[Pagination_module_default.active]: activePage === page,
|
|
739
843
|
[Pagination_module_default.number]: hasNumber
|
|
740
844
|
}),
|
|
@@ -761,10 +865,13 @@ var Pagination = ({
|
|
|
761
865
|
var Container_module_default = {
|
|
762
866
|
container: "Container_module_container"
|
|
763
867
|
};
|
|
764
|
-
var Container = (
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
};
|
|
868
|
+
var Container = forwardRef(
|
|
869
|
+
(_a, ref) => {
|
|
870
|
+
var _b = _a, { children, className } = _b, props = __objRest(_b, ["children", "className"]);
|
|
871
|
+
return /* @__PURE__ */ jsx("div", __spreadProps(__spreadValues({ ref, className: clsx19(Container_module_default.container, className) }, props), { children }));
|
|
872
|
+
}
|
|
873
|
+
);
|
|
874
|
+
Container.displayName = "Container";
|
|
768
875
|
|
|
769
876
|
// src/components/PracticeCard/PracticeCard.module.scss
|
|
770
877
|
var PracticeCard_module_default = {
|
|
@@ -779,7 +886,7 @@ var PracticeCard_module_default = {
|
|
|
779
886
|
};
|
|
780
887
|
var PracticeCard = ({ className, title, cta, image }) => {
|
|
781
888
|
const { url: href, isExternal } = cta != null ? cta : {};
|
|
782
|
-
return /* @__PURE__ */ jsx("div", { className:
|
|
889
|
+
return /* @__PURE__ */ jsx("div", { className: clsx19(PracticeCard_module_default["practice-card"], className), children: /* @__PURE__ */ jsxs(
|
|
783
890
|
ConditionalWrapper,
|
|
784
891
|
__spreadProps(__spreadValues({
|
|
785
892
|
className: PracticeCard_module_default.wrapper,
|
|
@@ -790,7 +897,7 @@ var PracticeCard = ({ className, title, cta, image }) => {
|
|
|
790
897
|
children: [
|
|
791
898
|
image && /* @__PURE__ */ jsx(Picture, __spreadValues({ className: PracticeCard_module_default.background }, image)),
|
|
792
899
|
/* @__PURE__ */ jsxs("div", { className: PracticeCard_module_default.container, children: [
|
|
793
|
-
title && /* @__PURE__ */ jsx("div", { className:
|
|
900
|
+
title && /* @__PURE__ */ jsx("div", { className: clsx19(PracticeCard_module_default.title, "h3"), children: title }),
|
|
794
901
|
href && /* @__PURE__ */ jsxs("div", { className: PracticeCard_module_default.cta, children: [
|
|
795
902
|
/* @__PURE__ */ jsx(Icon, { className: PracticeCard_module_default.ctaRest, type: "right" }),
|
|
796
903
|
/* @__PURE__ */ jsx(Icon, { className: PracticeCard_module_default.ctaHover, type: "tiltedRight" })
|
|
@@ -812,31 +919,94 @@ var CardCollection_module_default = {
|
|
|
812
919
|
"card-collection": "CardCollection_module_card-collection",
|
|
813
920
|
content: "CardCollection_module_content",
|
|
814
921
|
wrapper: "CardCollection_module_wrapper",
|
|
922
|
+
cardWrapper: "CardCollection_module_cardWrapper",
|
|
815
923
|
threeCols: "CardCollection_module_threeCols",
|
|
816
|
-
examCard: "CardCollection_module_examCard"
|
|
924
|
+
examCard: "CardCollection_module_examCard",
|
|
925
|
+
"reveal-wrapper": "CardCollection_module_reveal-wrapper",
|
|
926
|
+
"reveal-inner": "CardCollection_module_reveal-inner",
|
|
927
|
+
card: "CardCollection_module_card",
|
|
928
|
+
"is-expanded": "CardCollection_module_is-expanded",
|
|
929
|
+
cta: "CardCollection_module_cta"
|
|
817
930
|
};
|
|
818
931
|
var CardCollection = ({
|
|
819
932
|
className,
|
|
820
933
|
variant = "default",
|
|
821
934
|
title,
|
|
822
935
|
subtitle,
|
|
823
|
-
cards,
|
|
936
|
+
cards = [],
|
|
937
|
+
ctaLabel,
|
|
824
938
|
children
|
|
825
939
|
}) => {
|
|
826
940
|
var _a, _b;
|
|
941
|
+
const container = useRef(null);
|
|
942
|
+
const revealWrapper = useRef(null);
|
|
943
|
+
const extraCard = useRef(null);
|
|
944
|
+
const [isExpanded, setIsExpanded] = useState(false);
|
|
827
945
|
const slots = resolveCompoundSlots(children, {
|
|
828
946
|
title: CardCollectionTitle,
|
|
829
947
|
subtitle: CardCollectionSubtitle
|
|
830
948
|
});
|
|
831
949
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
832
950
|
const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
951
|
+
const isExamCard = variant === "examCard";
|
|
952
|
+
const visibleCards = isExamCard ? cards.slice(0, 8) : cards;
|
|
953
|
+
const hiddenCards = isExamCard ? cards.slice(8) : [];
|
|
954
|
+
const { contextSafe } = useGSAP({ scope: container });
|
|
955
|
+
const handleShowMore = useCallback(() => {
|
|
956
|
+
contextSafe(() => {
|
|
957
|
+
setIsExpanded(true);
|
|
958
|
+
const tl = gsap$1.timeline({ defaults: { ease: "power3.inOut" } });
|
|
959
|
+
tl.to(`.${CardCollection_module_default.cta}`, {
|
|
960
|
+
opacity: 0,
|
|
961
|
+
y: 20,
|
|
962
|
+
duration: 0.3,
|
|
963
|
+
display: "none"
|
|
964
|
+
}).to(`.${CardCollection_module_default.cardWrapper}`, { height: "auto", duration: 0.2 }, "<").to(
|
|
965
|
+
revealWrapper.current,
|
|
966
|
+
{
|
|
967
|
+
height: "auto",
|
|
968
|
+
duration: 0.3
|
|
969
|
+
},
|
|
970
|
+
"-=0.1"
|
|
971
|
+
).from(
|
|
972
|
+
extraCard.current,
|
|
973
|
+
{
|
|
974
|
+
opacity: 0,
|
|
975
|
+
y: 30,
|
|
976
|
+
duration: 0.3,
|
|
977
|
+
clearProps: "all"
|
|
978
|
+
},
|
|
979
|
+
"-=0.3"
|
|
980
|
+
);
|
|
981
|
+
})();
|
|
982
|
+
}, [contextSafe]);
|
|
983
|
+
return /* @__PURE__ */ jsxs(
|
|
984
|
+
Container,
|
|
985
|
+
{
|
|
986
|
+
ref: container,
|
|
987
|
+
className: clsx19(CardCollection_module_default["card-collection"], CardCollection_module_default[variant], className),
|
|
988
|
+
children: [
|
|
989
|
+
/* @__PURE__ */ jsxs("div", { className: CardCollection_module_default.content, children: [
|
|
990
|
+
titleNode && /* @__PURE__ */ jsx("h2", { children: titleNode }),
|
|
991
|
+
subtitleNode && /* @__PURE__ */ jsx("div", { className: "subheading", children: subtitleNode })
|
|
992
|
+
] }),
|
|
993
|
+
/* @__PURE__ */ jsx("div", { className: CardCollection_module_default.wrapper, children: /* @__PURE__ */ jsxs("div", { className: clsx19(CardCollection_module_default.cardWrapper, { [CardCollection_module_default["is-expanded"]]: isExpanded }), children: [
|
|
994
|
+
visibleCards.map((card, key) => /* @__PURE__ */ jsx(Card2, __spreadValues({ className: CardCollection_module_default.card }, card), key)),
|
|
995
|
+
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(Card2, __spreadValues({ ref: extraCard, className: CardCollection_module_default.card }, card), key)) }) }),
|
|
996
|
+
isExamCard && !isExpanded && ctaLabel && /* @__PURE__ */ jsx(
|
|
997
|
+
Button,
|
|
998
|
+
{
|
|
999
|
+
variant: "secondary",
|
|
1000
|
+
icon: "downChevronBlack",
|
|
1001
|
+
className: CardCollection_module_default.cta,
|
|
1002
|
+
onClick: handleShowMore,
|
|
1003
|
+
children: ctaLabel
|
|
1004
|
+
}
|
|
1005
|
+
)
|
|
1006
|
+
] }) })
|
|
1007
|
+
]
|
|
1008
|
+
}
|
|
1009
|
+
);
|
|
840
1010
|
};
|
|
841
1011
|
|
|
842
1012
|
// src/widgets/CardCollection/index.ts
|
|
@@ -913,7 +1083,7 @@ var ContactModule = ({
|
|
|
913
1083
|
},
|
|
914
1084
|
{ scope: containerRef, dependencies: [blurred, animateBlur] }
|
|
915
1085
|
);
|
|
916
|
-
return /* @__PURE__ */ jsxs("div", { ref: containerRef, className:
|
|
1086
|
+
return /* @__PURE__ */ jsxs("div", { ref: containerRef, className: clsx19(ContactModule_module_default["contact-module"], className), children: [
|
|
917
1087
|
blurred && /* @__PURE__ */ jsx(
|
|
918
1088
|
"div",
|
|
919
1089
|
{
|
|
@@ -928,8 +1098,8 @@ var ContactModule = ({
|
|
|
928
1098
|
/* @__PURE__ */ jsxs(Container, { className: ContactModule_module_default.container, children: [
|
|
929
1099
|
/* @__PURE__ */ jsxs("div", { className: ContactModule_module_default.wrapper, children: [
|
|
930
1100
|
/* @__PURE__ */ jsxs("div", { className: ContactModule_module_default.content, children: [
|
|
931
|
-
titleNode && /* @__PURE__ */ jsx("div", { className:
|
|
932
|
-
subtitleNode && /* @__PURE__ */ jsx("div", { className:
|
|
1101
|
+
titleNode && /* @__PURE__ */ jsx("div", { className: clsx19(ContactModule_module_default.title, "h1"), children: titleNode }),
|
|
1102
|
+
subtitleNode && /* @__PURE__ */ jsx("div", { className: clsx19(ContactModule_module_default.subtitle, "subheading"), children: subtitleNode })
|
|
933
1103
|
] }),
|
|
934
1104
|
/* @__PURE__ */ jsx("div", { className: ContactModule_module_default["cta-wrapper"], children: ctas == null ? void 0 : ctas.map((cta, key) => /* @__PURE__ */ jsx(
|
|
935
1105
|
Button,
|
|
@@ -953,6 +1123,75 @@ var ContactModule2 = Object.assign(ContactModule, {
|
|
|
953
1123
|
Title: ContactModuleTitle,
|
|
954
1124
|
Subtitle: ContactModuleSubtitle
|
|
955
1125
|
});
|
|
1126
|
+
var FooterDisclaimer = ({ children }) => {
|
|
1127
|
+
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
1128
|
+
};
|
|
1129
|
+
|
|
1130
|
+
// src/widgets/Footer/Footer.module.scss
|
|
1131
|
+
var Footer_module_default = {
|
|
1132
|
+
footer: "Footer_module_footer",
|
|
1133
|
+
container: "Footer_module_container",
|
|
1134
|
+
bottom: "Footer_module_bottom",
|
|
1135
|
+
"bottom-left": "Footer_module_bottom-left",
|
|
1136
|
+
"bottom-right": "Footer_module_bottom-right",
|
|
1137
|
+
supporters: "Footer_module_supporters",
|
|
1138
|
+
"supporters-logos": "Footer_module_supporters-logos",
|
|
1139
|
+
"supporter-link-primary": "Footer_module_supporter-link-primary",
|
|
1140
|
+
"supporter-link": "Footer_module_supporter-link",
|
|
1141
|
+
disclaimer: "Footer_module_disclaimer",
|
|
1142
|
+
copyright: "Footer_module_copyright",
|
|
1143
|
+
"nav-list": "Footer_module_nav-list",
|
|
1144
|
+
"nav-link": "Footer_module_nav-link"
|
|
1145
|
+
};
|
|
1146
|
+
var Footer = ({
|
|
1147
|
+
className,
|
|
1148
|
+
supporters = [],
|
|
1149
|
+
navigationLinks = [],
|
|
1150
|
+
disclaimer,
|
|
1151
|
+
copyright,
|
|
1152
|
+
children
|
|
1153
|
+
}) => {
|
|
1154
|
+
var _a;
|
|
1155
|
+
const columns = [];
|
|
1156
|
+
for (let i = 0; i < navigationLinks.length; i += 5) {
|
|
1157
|
+
columns.push(navigationLinks.slice(i, i + 5));
|
|
1158
|
+
}
|
|
1159
|
+
const slots = resolveCompoundSlots(children, {
|
|
1160
|
+
disclaimer: FooterDisclaimer
|
|
1161
|
+
});
|
|
1162
|
+
const titleNode = (_a = slots.disclaimer) != null ? _a : disclaimer;
|
|
1163
|
+
return /* @__PURE__ */ jsx("footer", { className: clsx19(Footer_module_default.footer, className), children: /* @__PURE__ */ jsxs(Container, { className: Footer_module_default.container, children: [
|
|
1164
|
+
/* @__PURE__ */ jsxs("div", { className: Footer_module_default.bottom, children: [
|
|
1165
|
+
/* @__PURE__ */ jsxs("div", { className: Footer_module_default["bottom-left"], children: [
|
|
1166
|
+
supporters.length > 0 && /* @__PURE__ */ jsx("div", { className: Footer_module_default.supporters, children: /* @__PURE__ */ jsx("div", { className: Footer_module_default["supporters-logos"], children: supporters.map(
|
|
1167
|
+
(supporter, index) => supporter.href ? /* @__PURE__ */ jsx(
|
|
1168
|
+
"a",
|
|
1169
|
+
{
|
|
1170
|
+
href: supporter.href,
|
|
1171
|
+
target: "_blank",
|
|
1172
|
+
rel: "noopener noreferrer",
|
|
1173
|
+
className: Footer_module_default["supporter-link"],
|
|
1174
|
+
children: /* @__PURE__ */ jsx(Picture, __spreadValues({}, supporter.image))
|
|
1175
|
+
},
|
|
1176
|
+
index
|
|
1177
|
+
) : /* @__PURE__ */ jsx("div", { className: Footer_module_default["supporter-link-primary"], children: /* @__PURE__ */ jsx(Picture, __spreadValues({}, supporter.image)) }, index)
|
|
1178
|
+
) }) }),
|
|
1179
|
+
titleNode && /* @__PURE__ */ jsx("div", { className: clsx19(Footer_module_default.disclaimer, "p"), children: titleNode }),
|
|
1180
|
+
copyright && /* @__PURE__ */ jsx("p", { className: Footer_module_default.copyright, children: copyright })
|
|
1181
|
+
] }),
|
|
1182
|
+
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(
|
|
1183
|
+
"a",
|
|
1184
|
+
__spreadProps(__spreadValues({
|
|
1185
|
+
href: link.href,
|
|
1186
|
+
className: Footer_module_default["nav-link"]
|
|
1187
|
+
}, link.isExternal ? { target: "_blank", rel: "noopener noreferrer" } : {}), {
|
|
1188
|
+
children: link.label
|
|
1189
|
+
})
|
|
1190
|
+
) }, link.label)) }, colIndex)) })
|
|
1191
|
+
] }),
|
|
1192
|
+
children
|
|
1193
|
+
] }) });
|
|
1194
|
+
};
|
|
956
1195
|
var HeroBannerTitle = ({ children }) => {
|
|
957
1196
|
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
958
1197
|
};
|
|
@@ -998,22 +1237,20 @@ var HeroBanner = ({
|
|
|
998
1237
|
var _a, _b;
|
|
999
1238
|
const { is } = useViewPort_default();
|
|
1000
1239
|
const isTabletBelow = is("tablet", "below");
|
|
1001
|
-
const isDesktopBelow = is("desktop", "below");
|
|
1002
1240
|
const vPageHeroBanner = variant === "pageHeroBanner";
|
|
1003
1241
|
const vBannerPodcast = variant === "bannerPodcast";
|
|
1004
|
-
const animated = brands && brands.logos && brands.logos.length >= 4 && isDesktopBelow;
|
|
1005
1242
|
const slots = resolveCompoundSlots(children, {
|
|
1006
1243
|
title: HeroBannerTitle,
|
|
1007
1244
|
subtitle: HeroBannerSubtitle
|
|
1008
1245
|
});
|
|
1009
1246
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
1010
1247
|
const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
|
|
1011
|
-
return /* @__PURE__ */ jsxs("div", { className:
|
|
1248
|
+
return /* @__PURE__ */ jsxs("div", { className: clsx19(HeroBanner_module_default.heroBanner, HeroBanner_module_default[variant], className), children: [
|
|
1012
1249
|
/* @__PURE__ */ jsxs("div", { className: HeroBanner_module_default.container, children: [
|
|
1013
1250
|
/* @__PURE__ */ jsxs("div", { className: HeroBanner_module_default.banner, children: [
|
|
1014
1251
|
(titleNode || subtitleNode) && /* @__PURE__ */ jsxs("div", { className: HeroBanner_module_default.text, children: [
|
|
1015
|
-
titleNode && /* @__PURE__ */ jsx("h1", { className:
|
|
1016
|
-
subtitleNode && /* @__PURE__ */ jsx("div", { className:
|
|
1252
|
+
titleNode && /* @__PURE__ */ jsx("h1", { className: clsx19(HeroBanner_module_default.title, "h1"), children: titleNode }),
|
|
1253
|
+
subtitleNode && /* @__PURE__ */ jsx("div", { className: clsx19(HeroBanner_module_default.subtitle, "subtitle"), children: subtitleNode })
|
|
1017
1254
|
] }),
|
|
1018
1255
|
cta && cta.length > 0 && !vBannerPodcast && /* @__PURE__ */ jsx("div", { className: HeroBanner_module_default.ctaContainer, children: cta.slice(0, 2).map((cta2, key) => {
|
|
1019
1256
|
return /* @__PURE__ */ jsx(
|
|
@@ -1036,8 +1273,7 @@ var HeroBanner = ({
|
|
|
1036
1273
|
__spreadValues({
|
|
1037
1274
|
className: HeroBanner_module_default.brandsStrip,
|
|
1038
1275
|
variant: "light",
|
|
1039
|
-
size: isTabletBelow || vPageHeroBanner ? "small" : void 0
|
|
1040
|
-
animate: animated
|
|
1276
|
+
size: isTabletBelow || vPageHeroBanner ? "small" : void 0
|
|
1041
1277
|
}, brands)
|
|
1042
1278
|
),
|
|
1043
1279
|
backgroundImage && /* @__PURE__ */ jsx(Picture, __spreadValues({ className: HeroBanner_module_default.backgroundImage }, backgroundImage))
|
|
@@ -1068,32 +1304,72 @@ var MiniBannerSubtitle = ({ children }) => {
|
|
|
1068
1304
|
var MiniBanner_module_default = {
|
|
1069
1305
|
minibanner: "MiniBanner_module_minibanner",
|
|
1070
1306
|
background: "MiniBanner_module_background",
|
|
1071
|
-
|
|
1072
|
-
|
|
1307
|
+
textContainer: "MiniBanner_module_textContainer",
|
|
1308
|
+
logo: "MiniBanner_module_logo",
|
|
1309
|
+
headingWrapper: "MiniBanner_module_headingWrapper",
|
|
1310
|
+
title: "MiniBanner_module_title",
|
|
1311
|
+
ctaContainer: "MiniBanner_module_ctaContainer",
|
|
1312
|
+
miniBannerNoBG: "MiniBanner_module_miniBannerNoBG",
|
|
1313
|
+
miniBannerTextLeft: "MiniBanner_module_miniBannerTextLeft"
|
|
1314
|
+
};
|
|
1315
|
+
var MiniBannerPreTitle = ({ children }) => {
|
|
1316
|
+
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
1073
1317
|
};
|
|
1074
1318
|
var MiniBanner = ({
|
|
1075
1319
|
className,
|
|
1076
1320
|
variant = "default",
|
|
1321
|
+
pretitle,
|
|
1077
1322
|
title,
|
|
1078
1323
|
subtitle,
|
|
1079
1324
|
logo,
|
|
1080
1325
|
background,
|
|
1326
|
+
cta,
|
|
1081
1327
|
children
|
|
1082
1328
|
}) => {
|
|
1083
|
-
var _a, _b;
|
|
1329
|
+
var _a, _b, _c, _d, _e;
|
|
1084
1330
|
const slots = resolveCompoundSlots(children, {
|
|
1331
|
+
pretitle: MiniBannerPreTitle,
|
|
1085
1332
|
title: MiniBannerTitle,
|
|
1086
1333
|
subtitle: MiniBannerSubtitle
|
|
1087
1334
|
});
|
|
1088
|
-
const
|
|
1089
|
-
const
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1335
|
+
const { is } = useViewPort_default();
|
|
1336
|
+
const isTabletBelow = is("tablet", "below");
|
|
1337
|
+
const isMiniBannerNoBG = variant === "miniBannerNoBG";
|
|
1338
|
+
const isMiniBannerTextLeft = variant === "miniBannerTextLeft";
|
|
1339
|
+
const pretitleNode = (_a = slots.pretitle) != null ? _a : pretitle;
|
|
1340
|
+
const titleNode = (_b = slots.title) != null ? _b : title;
|
|
1341
|
+
const subtitleNode = (_c = slots.subtitle) != null ? _c : subtitle;
|
|
1342
|
+
return /* @__PURE__ */ jsxs(Container, { className: clsx19(MiniBanner_module_default.minibanner, MiniBanner_module_default[variant], className), children: [
|
|
1343
|
+
((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)),
|
|
1344
|
+
/* @__PURE__ */ jsxs("div", { className: MiniBanner_module_default.textContainer, children: [
|
|
1345
|
+
(logo == null ? void 0 : logo.src) && /* @__PURE__ */ jsx(Picture, __spreadValues({ className: MiniBanner_module_default.logo }, logo)),
|
|
1346
|
+
pretitleNode && /* @__PURE__ */ jsx("div", { className: "small", children: pretitleNode }),
|
|
1347
|
+
/* @__PURE__ */ jsx("div", { className: MiniBanner_module_default.headingWrapper, children: titleNode && /* @__PURE__ */ jsx("div", { className: clsx19(MiniBanner_module_default.title, isMiniBannerTextLeft ? "h1" : "h4"), children: titleNode }) }),
|
|
1348
|
+
subtitleNode && /* @__PURE__ */ jsx(
|
|
1349
|
+
"div",
|
|
1350
|
+
{
|
|
1351
|
+
className: clsx19(MiniBanner_module_default.title, {
|
|
1352
|
+
subheading: isMiniBannerNoBG || isMiniBannerTextLeft,
|
|
1353
|
+
h1: !isMiniBannerNoBG && !isMiniBannerTextLeft
|
|
1354
|
+
}),
|
|
1355
|
+
children: subtitleNode
|
|
1356
|
+
}
|
|
1357
|
+
)
|
|
1358
|
+
] }),
|
|
1359
|
+
cta && cta.length > 0 && /* @__PURE__ */ jsx("div", { className: MiniBanner_module_default.ctaContainer, children: cta.slice(0, 2).map((cta2, key) => {
|
|
1360
|
+
return /* @__PURE__ */ jsx(
|
|
1361
|
+
Button,
|
|
1362
|
+
{
|
|
1363
|
+
href: cta2.url,
|
|
1364
|
+
isExternal: cta2.isExternal,
|
|
1365
|
+
variant: "secondary",
|
|
1366
|
+
fullWidth: isTabletBelow,
|
|
1367
|
+
logo: cta2.logo,
|
|
1368
|
+
children: cta2.label
|
|
1369
|
+
},
|
|
1370
|
+
key
|
|
1371
|
+
);
|
|
1372
|
+
}) })
|
|
1097
1373
|
] });
|
|
1098
1374
|
};
|
|
1099
1375
|
|
|
@@ -1136,13 +1412,13 @@ var MiniSectionCta = ({
|
|
|
1136
1412
|
});
|
|
1137
1413
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
1138
1414
|
const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
|
|
1139
|
-
return /* @__PURE__ */ jsx("div", { className:
|
|
1415
|
+
return /* @__PURE__ */ jsx("div", { className: clsx19(MiniSectionCta_module_default.miniSectionCta, MiniSectionCta_module_default[variant], className), children: /* @__PURE__ */ jsx(Container, { children: /* @__PURE__ */ jsxs("div", { className: MiniSectionCta_module_default.wrapper, children: [
|
|
1140
1416
|
/* @__PURE__ */ jsxs("div", { className: MiniSectionCta_module_default.col, children: [
|
|
1141
1417
|
titleNode && /* @__PURE__ */ jsx("h2", { className: variant === "BgColorBlack" || variant === "BgColorGrey" ? "h3" : "h2", children: titleNode }),
|
|
1142
1418
|
subtitleNode && /* @__PURE__ */ jsx(
|
|
1143
1419
|
"div",
|
|
1144
1420
|
{
|
|
1145
|
-
className:
|
|
1421
|
+
className: clsx19(MiniSectionCta_module_default.subtitle, variant === "infoCallout" ? "h4" : "subheading"),
|
|
1146
1422
|
children: subtitleNode
|
|
1147
1423
|
}
|
|
1148
1424
|
)
|
|
@@ -1205,7 +1481,7 @@ var PracticePathCards = ({
|
|
|
1205
1481
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
1206
1482
|
const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
|
|
1207
1483
|
const footerNode = (_c = slots.footer) != null ? _c : footer;
|
|
1208
|
-
return /* @__PURE__ */ jsx("div", { className:
|
|
1484
|
+
return /* @__PURE__ */ jsx("div", { className: clsx19(PracticePathCards_module_default["practice-path-cards"], className), children: /* @__PURE__ */ jsxs(Container, { className: PracticePathCards_module_default.container, children: [
|
|
1209
1485
|
/* @__PURE__ */ jsxs("div", { className: PracticePathCards_module_default.wrapper, children: [
|
|
1210
1486
|
/* @__PURE__ */ jsxs("div", { className: PracticePathCards_module_default.content, children: [
|
|
1211
1487
|
titleNode && /* @__PURE__ */ jsx("h2", { children: titleNode }),
|
|
@@ -1259,8 +1535,8 @@ var Teaser5050With3Text = ({
|
|
|
1259
1535
|
title: Teaser5050With3TextTitle
|
|
1260
1536
|
});
|
|
1261
1537
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
1262
|
-
return /* @__PURE__ */ jsx("div", { className:
|
|
1263
|
-
titleNode && /* @__PURE__ */ jsx("div", { className:
|
|
1538
|
+
return /* @__PURE__ */ jsx("div", { className: clsx19(Teaser5050With3Text_module_default["teaser5050-3text"], Teaser5050With3Text_module_default[variant], className), children: /* @__PURE__ */ jsxs(Container, { className: Teaser5050With3Text_module_default.container, children: [
|
|
1539
|
+
titleNode && /* @__PURE__ */ jsx("div", { className: clsx19(Teaser5050With3Text_module_default.title, "h3"), children: titleNode }),
|
|
1264
1540
|
/* @__PURE__ */ jsxs("div", { className: Teaser5050With3Text_module_default.content, children: [
|
|
1265
1541
|
/* @__PURE__ */ jsx("div", { className: Teaser5050With3Text_module_default.cards, children: cards == null ? void 0 : cards.map((card, key) => /* @__PURE__ */ jsx(InfoCard2, __spreadValues({}, card), key)) }),
|
|
1266
1542
|
image && /* @__PURE__ */ jsx(Picture, __spreadValues({ className: Teaser5050With3Text_module_default.image }, image))
|
|
@@ -1305,10 +1581,10 @@ var Teaser5050WithCta = ({
|
|
|
1305
1581
|
});
|
|
1306
1582
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
1307
1583
|
const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
|
|
1308
|
-
return /* @__PURE__ */ jsx("div", { className:
|
|
1584
|
+
return /* @__PURE__ */ jsx("div", { className: clsx19(Teaser5050WithCta_module_default.teaser5050, Teaser5050WithCta_module_default[variant], className), children: /* @__PURE__ */ jsxs(Container, { className: Teaser5050WithCta_module_default.container, children: [
|
|
1309
1585
|
/* @__PURE__ */ jsxs("div", { className: Teaser5050WithCta_module_default.wrapper, children: [
|
|
1310
1586
|
/* @__PURE__ */ jsxs("div", { className: Teaser5050WithCta_module_default.content, children: [
|
|
1311
|
-
titleNode && /* @__PURE__ */ jsx("div", { className:
|
|
1587
|
+
titleNode && /* @__PURE__ */ jsx("div", { className: clsx19(Teaser5050WithCta_module_default.title, "h3"), children: titleNode }),
|
|
1312
1588
|
subtitleNode && /* @__PURE__ */ jsx("div", { className: "subheading", children: subtitleNode })
|
|
1313
1589
|
] }),
|
|
1314
1590
|
cta && /* @__PURE__ */ jsx(
|
|
@@ -1331,6 +1607,111 @@ var Teaser5050WithCta2 = Object.assign(Teaser5050WithCta, {
|
|
|
1331
1607
|
Title: Teaser5050WithCtaTitle,
|
|
1332
1608
|
Subtitle: Teaser5050WithCtaSubtitle
|
|
1333
1609
|
});
|
|
1610
|
+
|
|
1611
|
+
// src/components/UpcomingEventCard/UpcomingEventCard.module.scss
|
|
1612
|
+
var UpcomingEventCard_module_default = {
|
|
1613
|
+
hidden: "UpcomingEventCard_module_hidden",
|
|
1614
|
+
image: "UpcomingEventCard_module_image",
|
|
1615
|
+
"text-content": "UpcomingEventCard_module_text-content",
|
|
1616
|
+
cta: "UpcomingEventCard_module_cta",
|
|
1617
|
+
date: "UpcomingEventCard_module_date",
|
|
1618
|
+
location: "UpcomingEventCard_module_location",
|
|
1619
|
+
description: "UpcomingEventCard_module_description"
|
|
1620
|
+
};
|
|
1621
|
+
var UpcomingEventCard = ({
|
|
1622
|
+
className,
|
|
1623
|
+
image,
|
|
1624
|
+
date,
|
|
1625
|
+
title,
|
|
1626
|
+
location,
|
|
1627
|
+
description,
|
|
1628
|
+
cta
|
|
1629
|
+
}) => {
|
|
1630
|
+
const { is } = useViewPort_default();
|
|
1631
|
+
const hasCtaWithoutImage = cta && cta.url && !image;
|
|
1632
|
+
const isBelowTablet = is("tablet", "below");
|
|
1633
|
+
const isBelowMobile = is("mobile-l", "below");
|
|
1634
|
+
return /* @__PURE__ */ jsxs("article", { className: clsx19(className), children: [
|
|
1635
|
+
image && /* @__PURE__ */ jsx(Picture, __spreadProps(__spreadValues({}, image), { className: clsx19(UpcomingEventCard_module_default.image, className) })),
|
|
1636
|
+
hasCtaWithoutImage && /* @__PURE__ */ jsx(Button, { variant: "secondary", className: clsx19(isBelowTablet && UpcomingEventCard_module_default.hidden), href: cta.url, children: cta.label }),
|
|
1637
|
+
/* @__PURE__ */ jsxs("div", { className: clsx19(UpcomingEventCard_module_default["text-content"], className), children: [
|
|
1638
|
+
/* @__PURE__ */ jsx("span", { className: UpcomingEventCard_module_default.date, children: date }),
|
|
1639
|
+
title && /* @__PURE__ */ jsx("h3", { children: title }),
|
|
1640
|
+
location && /* @__PURE__ */ jsx("span", { className: UpcomingEventCard_module_default.location, children: location }),
|
|
1641
|
+
description && /* @__PURE__ */ jsx("div", { className: UpcomingEventCard_module_default.description, children: description }),
|
|
1642
|
+
cta && cta.url && /* @__PURE__ */ jsx(
|
|
1643
|
+
Button,
|
|
1644
|
+
{
|
|
1645
|
+
variant: "secondary",
|
|
1646
|
+
className: clsx19(!isBelowTablet && !image && UpcomingEventCard_module_default.hidden, UpcomingEventCard_module_default.cta),
|
|
1647
|
+
fullWidth: isBelowMobile,
|
|
1648
|
+
href: cta.url,
|
|
1649
|
+
children: cta.label
|
|
1650
|
+
}
|
|
1651
|
+
)
|
|
1652
|
+
] })
|
|
1653
|
+
] });
|
|
1654
|
+
};
|
|
1655
|
+
|
|
1656
|
+
// src/components/Carousel/Carousel.module.scss
|
|
1657
|
+
var Carousel_module_default = {
|
|
1658
|
+
"carousel-item": "Carousel_module_carousel-item"
|
|
1659
|
+
};
|
|
1660
|
+
var Carousel = (_a) => {
|
|
1661
|
+
var _b = _a, { slides, className } = _b, props = __objRest(_b, ["slides", "className"]);
|
|
1662
|
+
return /* @__PURE__ */ jsx(
|
|
1663
|
+
Swiper,
|
|
1664
|
+
__spreadProps(__spreadValues({
|
|
1665
|
+
className: clsx19(Carousel_module_default.carousel, className),
|
|
1666
|
+
spaceBetween: 0,
|
|
1667
|
+
slidesPerView: 1,
|
|
1668
|
+
modules: [FreeMode],
|
|
1669
|
+
freeMode: { enabled: true, sticky: false, momentum: true },
|
|
1670
|
+
wrapperTag: "ul",
|
|
1671
|
+
loop: false
|
|
1672
|
+
}, props), {
|
|
1673
|
+
children: slides.map((slide, index) => /* @__PURE__ */ jsx(SwiperSlide, { tag: "li", className: Carousel_module_default["carousel-item"], children: slide }, index))
|
|
1674
|
+
})
|
|
1675
|
+
);
|
|
1676
|
+
};
|
|
1677
|
+
|
|
1678
|
+
// src/widgets/EventList/EventList.module.scss
|
|
1679
|
+
var EventList_module_default = {
|
|
1680
|
+
grey: "EventList_module_grey",
|
|
1681
|
+
"header-container": "EventList_module_header-container"
|
|
1682
|
+
};
|
|
1683
|
+
var EventListTitle = ({ children }) => {
|
|
1684
|
+
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
1685
|
+
};
|
|
1686
|
+
var EventList = ({ className, title, items, cta, variant, children }) => {
|
|
1687
|
+
var _a;
|
|
1688
|
+
const { is } = useViewPort_default();
|
|
1689
|
+
const slots = resolveCompoundSlots(children, {
|
|
1690
|
+
title: EventListTitle
|
|
1691
|
+
});
|
|
1692
|
+
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
1693
|
+
const isBelowTablet = is("tablet", "below");
|
|
1694
|
+
return /* @__PURE__ */ jsxs("section", { className: clsx19(EventList_module_default.section, variant && EventList_module_default[variant], className), children: [
|
|
1695
|
+
/* @__PURE__ */ jsxs("div", { className: EventList_module_default["header-container"], children: [
|
|
1696
|
+
titleNode && /* @__PURE__ */ jsx("h2", { children: titleNode }),
|
|
1697
|
+
cta && cta.url && /* @__PURE__ */ jsx(Button, { className: EventList_module_default.cta, variant: "nofillblack", href: cta.url, icon: "rightBlack", children: cta.label })
|
|
1698
|
+
] }),
|
|
1699
|
+
variant === "grey" && isBelowTablet && /* @__PURE__ */ jsx(
|
|
1700
|
+
Carousel,
|
|
1701
|
+
{
|
|
1702
|
+
className: EventList_module_default[variant],
|
|
1703
|
+
slides: items.map((item) => /* @__PURE__ */ jsx(UpcomingEventCard, __spreadValues({ className: variant }, item), item.title))
|
|
1704
|
+
}
|
|
1705
|
+
),
|
|
1706
|
+
variant === "grey" && !isBelowTablet && /* @__PURE__ */ jsx("ul", { className: clsx19(EventList_module_default[variant]), children: items == null ? void 0 : items.map((item, index) => /* @__PURE__ */ jsx("li", { className: variant, children: /* @__PURE__ */ jsx(UpcomingEventCard, __spreadProps(__spreadValues({}, item), { className: variant })) }, index)) }),
|
|
1707
|
+
!variant && /* @__PURE__ */ jsx("ul", { children: items == null ? void 0 : items.map((item, index) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(UpcomingEventCard, __spreadValues({}, item)) }, index)) })
|
|
1708
|
+
] });
|
|
1709
|
+
};
|
|
1710
|
+
|
|
1711
|
+
// src/widgets/EventList/index.ts
|
|
1712
|
+
var EventList2 = Object.assign(EventList, {
|
|
1713
|
+
Title: EventListTitle
|
|
1714
|
+
});
|
|
1334
1715
|
function useIntersectionObserver({
|
|
1335
1716
|
animateOnce = false,
|
|
1336
1717
|
options = {}
|
|
@@ -1360,6 +1741,6 @@ function useIntersectionObserver({
|
|
|
1360
1741
|
return { observeRef, isVisible };
|
|
1361
1742
|
}
|
|
1362
1743
|
|
|
1363
|
-
export { Anchor, BrandsStrip, Button, Card2 as Card, CardCollection2 as CardCollection, ConditionalWrapper, ContactModule2 as ContactModule, Container, CountingCard2 as CountingCard, HeroBanner2 as HeroBanner, Icon, InfoCard2 as InfoCard, MiniBanner2 as MiniBanner, MiniSectionCta2 as MiniSectionCta, Pagination, Picture, PracticeCard, PracticePathCards2 as PracticePathCards, Teaser5050With3Text2 as Teaser5050With3Text, Teaser5050WithCta2 as Teaser5050WithCta, resolveCompoundSlots, svgs, useIntersectionObserver };
|
|
1744
|
+
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, Icon, InfoCard2 as InfoCard, MiniBanner2 as MiniBanner, MiniSectionCta2 as MiniSectionCta, Pagination, Picture, PracticeCard, PracticePathCards2 as PracticePathCards, Teaser5050With3Text2 as Teaser5050With3Text, Teaser5050WithCta2 as Teaser5050WithCta, resolveCompoundSlots, svgs, useIntersectionObserver };
|
|
1364
1745
|
//# sourceMappingURL=index.mjs.map
|
|
1365
1746
|
//# sourceMappingURL=index.mjs.map
|