@digital-b2c/coreui-kit 0.1.0 → 0.2.1

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 CHANGED
@@ -40,6 +40,38 @@ var __objRest = (source, exclude) => {
40
40
  }
41
41
  return target;
42
42
  };
43
+
44
+ // src/components/Picture/Picture.module.scss
45
+ var Picture_module_default = {
46
+ "image-desktop": "Picture_module_image-desktop",
47
+ "image-mobile": "Picture_module_image-mobile"
48
+ };
49
+ var Picture = (_a) => {
50
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
51
+ var _b2, _c;
52
+ if ("src" in props) {
53
+ return /* @__PURE__ */ jsxRuntime.jsx("img", __spreadValues({ className }, props));
54
+ }
55
+ const _a2 = props, { desktop, mobile } = _a2, rest = __objRest(_a2, ["desktop", "mobile"]);
56
+ return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
57
+ /* @__PURE__ */ jsxRuntime.jsx(
58
+ "img",
59
+ __spreadValues({
60
+ src: desktop.src,
61
+ alt: desktop.alt,
62
+ className: clsx3__default.default(className, Picture_module_default["image-desktop"])
63
+ }, rest)
64
+ ),
65
+ /* @__PURE__ */ jsxRuntime.jsx(
66
+ "img",
67
+ __spreadValues({
68
+ src: (_b2 = mobile == null ? void 0 : mobile.src) != null ? _b2 : desktop.src,
69
+ alt: (_c = mobile == null ? void 0 : mobile.alt) != null ? _c : desktop.alt,
70
+ className: clsx3__default.default(className, Picture_module_default["image-mobile"])
71
+ }, rest)
72
+ )
73
+ ] });
74
+ };
43
75
  var Anchor = (_a) => {
44
76
  var _b = _a, { children, isExternal } = _b, props = __objRest(_b, ["children", "isExternal"]);
45
77
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -288,7 +320,20 @@ var Icon = React__default.default.memo(
288
320
  Icon.displayName = "Icon";
289
321
 
290
322
  // src/components/Button/Button.module.scss
291
- var Button_module_default = {};
323
+ var Button_module_default = {
324
+ button: "Button_module_button",
325
+ fullWidth: "Button_module_fullWidth",
326
+ primary: "Button_module_primary",
327
+ secondary: "Button_module_secondary",
328
+ ghost: "Button_module_ghost",
329
+ nofill: "Button_module_nofill",
330
+ nofillblack: "Button_module_nofillblack",
331
+ grey: "Button_module_grey",
332
+ shiny: "Button_module_shiny",
333
+ rotateGradient: "Button_module_rotateGradient",
334
+ icon: "Button_module_icon",
335
+ logo: "Button_module_logo"
336
+ };
292
337
  var Button = (_a) => {
293
338
  var _b = _a, {
294
339
  className,
@@ -297,7 +342,8 @@ var Button = (_a) => {
297
342
  fullWidth,
298
343
  href,
299
344
  isExternal,
300
- icon
345
+ icon,
346
+ logo
301
347
  } = _b, rest = __objRest(_b, [
302
348
  "className",
303
349
  "children",
@@ -305,7 +351,8 @@ var Button = (_a) => {
305
351
  "fullWidth",
306
352
  "href",
307
353
  "isExternal",
308
- "icon"
354
+ "icon",
355
+ "logo"
309
356
  ]);
310
357
  const isLink = !!href;
311
358
  const props = __spreadValues(__spreadValues({
@@ -318,18 +365,202 @@ var Button = (_a) => {
318
365
  }, isLink ? { href, isExternal } : {}), rest);
319
366
  return /* @__PURE__ */ jsxRuntime.jsxs(ConditionalWrapper, __spreadProps(__spreadValues({ wrapper: Anchor, fallback: "button", condition: isLink }, props), { children: [
320
367
  children,
321
- icon && /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: icon })
368
+ logo ? /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: Button_module_default.logo }, logo)) : icon && /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: icon, className: Button_module_default.icon })
322
369
  ] }));
323
370
  };
324
371
 
372
+ // src/hooks/useDebounce.ts
373
+ var useDebounce = (fn, delay) => {
374
+ let timer;
375
+ return (...args) => {
376
+ if (timer) clearTimeout(timer);
377
+ timer = setTimeout(() => {
378
+ fn(...args);
379
+ }, delay);
380
+ };
381
+ };
382
+ var useDebounce_default = useDebounce;
383
+
384
+ // src/hooks/useViewPort.ts
385
+ var ORDER = [
386
+ "mobile-s",
387
+ "mobile-m",
388
+ "mobile-l",
389
+ "tablet",
390
+ "desktop",
391
+ "desktop-l",
392
+ "desktop-xl"
393
+ ];
394
+ var breakpointConditions = {
395
+ "mobile-s": (size) => size <= 320,
396
+ "mobile-m": (size) => size > 320 && size <= 375,
397
+ "mobile-l": (size) => size > 375 && size <= 425,
398
+ tablet: (size) => size > 425 && size <= 768,
399
+ desktop: (size) => size > 768 && size <= 1024,
400
+ "desktop-l": (size) => size > 1024 && size <= 1440,
401
+ "desktop-xl": (size) => size > 1440
402
+ };
403
+ var getDeviceType = (width) => {
404
+ for (const key in breakpointConditions) {
405
+ const deviceType = key;
406
+ if (breakpointConditions[deviceType](width)) {
407
+ return deviceType;
408
+ }
409
+ }
410
+ return "desktop";
411
+ };
412
+ var useViewPort = () => {
413
+ const [device, setDevice] = React.useState(
414
+ () => typeof window !== "undefined" ? getDeviceType(window.innerWidth) : "desktop"
415
+ );
416
+ const getOtherDevices = React.useCallback(
417
+ (list, what, includeSelf = false) => {
418
+ const deviceIndex = list.indexOf(what) + (!includeSelf ? 1 : 0);
419
+ return [...list].slice(deviceIndex);
420
+ },
421
+ []
422
+ );
423
+ const onWindowResize = React.useCallback(() => {
424
+ setDevice(getDeviceType(window.innerWidth));
425
+ }, []);
426
+ const onWindowResizeDebounce = useDebounce_default(onWindowResize, 100);
427
+ React.useEffect(() => {
428
+ window.addEventListener("resize", onWindowResizeDebounce);
429
+ return () => window.removeEventListener("resize", onWindowResizeDebounce);
430
+ }, [onWindowResizeDebounce]);
431
+ const is = (what, range) => {
432
+ const isArray = Array.isArray(what);
433
+ if (!range && !isArray) {
434
+ return what === device;
435
+ }
436
+ if (!range && isArray) {
437
+ return device ? what.includes(device) : false;
438
+ }
439
+ const list = range === "above" ? ORDER : [...ORDER].reverse();
440
+ const devices = getOtherDevices(list, what, true);
441
+ return device && devices.includes(device);
442
+ };
443
+ const isNot = (what) => !is(what);
444
+ const biggerThan = (what) => {
445
+ const devices = getOtherDevices(ORDER, what);
446
+ return device && devices.includes(device);
447
+ };
448
+ const smallerThan = (what) => {
449
+ const reverseOrder = [...ORDER].reverse();
450
+ const devices = getOtherDevices(reverseOrder, what);
451
+ return device && devices.includes(device);
452
+ };
453
+ return { is, isNot, biggerThan, smallerThan, device };
454
+ };
455
+ var useViewPort_default = useViewPort;
456
+
457
+ // src/components/BrandsStrip/BrandsStrip.module.scss
458
+ var BrandsStrip_module_default = {
459
+ brandsStrip: "BrandsStrip_module_brandsStrip",
460
+ light: "BrandsStrip_module_light",
461
+ dark: "BrandsStrip_module_dark",
462
+ small: "BrandsStrip_module_small",
463
+ logoWrapper: "BrandsStrip_module_logoWrapper",
464
+ container: "BrandsStrip_module_container",
465
+ title: "BrandsStrip_module_title",
466
+ blurred: "BrandsStrip_module_blurred",
467
+ logos: "BrandsStrip_module_logos",
468
+ marquee: "BrandsStrip_module_marquee",
469
+ scrollIndividual: "BrandsStrip_module_scrollIndividual",
470
+ paused: "BrandsStrip_module_paused",
471
+ logo: "BrandsStrip_module_logo",
472
+ cta: "BrandsStrip_module_cta"
473
+ };
474
+ var BrandsStrip = ({
475
+ className,
476
+ variant = "light",
477
+ title,
478
+ logos = [],
479
+ cta,
480
+ size,
481
+ animate = false
482
+ }) => {
483
+ const [show, setShow] = React.useState(false);
484
+ const { is } = useViewPort_default();
485
+ const isTabletBelow = is("tablet", "below");
486
+ const shouldAnimate = !title && animate;
487
+ return /* @__PURE__ */ jsxRuntime.jsxs(
488
+ "div",
489
+ {
490
+ className: clsx3__default.default(
491
+ BrandsStrip_module_default.brandsStrip,
492
+ BrandsStrip_module_default[variant],
493
+ { [BrandsStrip_module_default.small]: size === "small" },
494
+ className
495
+ ),
496
+ onMouseEnter: () => setShow(true),
497
+ onMouseLeave: () => setShow(false),
498
+ style: { "--total-items": logos.length },
499
+ children: [
500
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx3__default.default(BrandsStrip_module_default.container, { [BrandsStrip_module_default.blurred]: show && logos.length > 1 }), children: [
501
+ title && logos.length == 1 && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: clsx3__default.default("body", BrandsStrip_module_default.title), children: title }),
502
+ logos.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx3__default.default(BrandsStrip_module_default.logos, { [BrandsStrip_module_default.marquee]: shouldAnimate }), children: logos.map((logo, index) => /* @__PURE__ */ jsxRuntime.jsx(
503
+ "div",
504
+ {
505
+ className: clsx3__default.default(BrandsStrip_module_default.logoWrapper, { [BrandsStrip_module_default.paused]: show }),
506
+ style: { "--item-index": index },
507
+ children: /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: BrandsStrip_module_default.logo }, logo))
508
+ },
509
+ index
510
+ )) })
511
+ ] }),
512
+ cta && show && logos.length > 1 && /* @__PURE__ */ jsxRuntime.jsx(
513
+ Button,
514
+ {
515
+ className: BrandsStrip_module_default.cta,
516
+ variant: "secondary",
517
+ href: cta.url,
518
+ isExternal: cta.isExternal,
519
+ icon: "tiltedRightBlack",
520
+ fullWidth: isTabletBelow,
521
+ children: cta == null ? void 0 : cta.label
522
+ }
523
+ )
524
+ ]
525
+ }
526
+ );
527
+ };
528
+ var CardTitle = ({ children }) => {
529
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
530
+ };
531
+ var CardSubtitle = ({ children }) => {
532
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
533
+ };
534
+ function resolveCompoundSlots(children, slots) {
535
+ const resolved = {};
536
+ React.Children.forEach(children, (child) => {
537
+ if (!React.isValidElement(child)) return;
538
+ Object.entries(slots).forEach(([key, Component]) => {
539
+ if (child.type === Component) {
540
+ resolved[key] = child.props.children;
541
+ }
542
+ });
543
+ });
544
+ return resolved;
545
+ }
546
+
325
547
  // src/components/Card/Card.module.scss
326
- var Card_module_default = {};
327
- var Card = ({ className, title, subtitle, cta, icon }) => {
548
+ var Card_module_default = {
549
+ card: "Card_module_card"
550
+ };
551
+ var Card = ({ className, title, subtitle, cta, icon, children }) => {
552
+ var _a, _b;
553
+ const slots = resolveCompoundSlots(children, {
554
+ title: CardTitle,
555
+ subtitle: CardSubtitle
556
+ });
557
+ const titleNode = (_a = slots.title) != null ? _a : title;
558
+ const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
328
559
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx3__default.default(Card_module_default.card, className), children: [
329
560
  icon && /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: icon }),
330
561
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: Card_module_default.content, children: [
331
- /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "h4", children: title }),
332
- subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { children: subtitle })
562
+ titleNode && /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "h4", children: titleNode }),
563
+ subtitleNode && /* @__PURE__ */ jsxRuntime.jsx("p", { children: subtitleNode })
333
564
  ] }),
334
565
  cta && /* @__PURE__ */ jsxRuntime.jsx(
335
566
  Button,
@@ -344,61 +575,87 @@ var Card = ({ className, title, subtitle, cta, icon }) => {
344
575
  ] });
345
576
  };
346
577
 
347
- // src/components/Picture/Picture.module.scss
348
- var Picture_module_default = {};
349
- var Picture = (_a) => {
350
- var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
351
- var _b2, _c;
352
- if ("src" in props) {
353
- return /* @__PURE__ */ jsxRuntime.jsx("img", __spreadValues({ className }, props));
354
- }
355
- const _a2 = props, { desktop, mobile } = _a2, rest = __objRest(_a2, ["desktop", "mobile"]);
356
- return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
357
- /* @__PURE__ */ jsxRuntime.jsx(
358
- "img",
359
- __spreadValues({
360
- src: desktop.src,
361
- alt: desktop.alt,
362
- className: clsx3__default.default(className, Picture_module_default["image-desktop"])
363
- }, rest)
364
- ),
365
- /* @__PURE__ */ jsxRuntime.jsx(
366
- "img",
367
- __spreadValues({
368
- src: (_b2 = mobile == null ? void 0 : mobile.src) != null ? _b2 : desktop.src,
369
- alt: (_c = mobile == null ? void 0 : mobile.alt) != null ? _c : desktop.alt,
370
- className: clsx3__default.default(className, Picture_module_default["image-mobile"])
371
- }, rest)
372
- )
373
- ] });
578
+ // src/components/Card/index.ts
579
+ var Card2 = Object.assign(Card, {
580
+ Title: CardTitle,
581
+ Subtitle: CardSubtitle
582
+ });
583
+ var CountingCardTitle = ({ children }) => {
584
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
374
585
  };
375
586
 
376
587
  // src/components/CountingCard/CountingCard.module.scss
377
- var CountingCard_module_default = {};
378
- var CountingCard = ({ className, title, count, image }) => {
588
+ var CountingCard_module_default = {
589
+ "counting-card": "CountingCard_module_counting-card",
590
+ count: "CountingCard_module_count",
591
+ logo: "CountingCard_module_logo"
592
+ };
593
+ var CountingCard = ({ className, title, count, image, children }) => {
594
+ var _a;
595
+ const slots = resolveCompoundSlots(children, {
596
+ title: CountingCardTitle
597
+ });
598
+ const titleNode = (_a = slots.title) != null ? _a : title;
379
599
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx3__default.default(CountingCard_module_default["counting-card"], className), children: [
380
600
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: CountingCard_module_default.content, children: [
381
- title && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "body", children: title }),
601
+ titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "body", children: titleNode }),
382
602
  count && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx3__default.default(CountingCard_module_default.count, "h1"), children: count })
383
603
  ] }),
384
604
  image && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: CountingCard_module_default.logo }, image))
385
605
  ] });
386
606
  };
387
607
 
608
+ // src/components/CountingCard/index.ts
609
+ var CountingCard2 = Object.assign(CountingCard, {
610
+ Title: CountingCardTitle
611
+ });
612
+ var InfoCardTitle = ({ children }) => {
613
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
614
+ };
615
+ var InfoCardSubtitle = ({ children }) => {
616
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
617
+ };
618
+
388
619
  // src/components/InfoCard/InfoCard.module.scss
389
- var InfoCard_module_default = {};
390
- var InfoCard = ({ className, title, subtitle, icon, badge }) => {
620
+ var InfoCard_module_default = {
621
+ "info-card": "InfoCard_module_info-card",
622
+ header: "InfoCard_module_header",
623
+ badge: "InfoCard_module_badge",
624
+ hasIcon: "InfoCard_module_hasIcon"
625
+ };
626
+ var InfoCard = ({ className, title, subtitle, icon, badge, children }) => {
627
+ var _a, _b;
628
+ const slots = resolveCompoundSlots(children, {
629
+ title: InfoCardTitle,
630
+ subtitle: InfoCardSubtitle
631
+ });
632
+ const titleNode = (_a = slots.title) != null ? _a : title;
633
+ const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
391
634
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx3__default.default(InfoCard_module_default["info-card"], { [InfoCard_module_default.hasIcon]: !!icon }, className), children: [
392
635
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: InfoCard_module_default.header, children: [
393
636
  icon ? /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: icon }) : badge ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx3__default.default(InfoCard_module_default.badge, "h4"), children: badge }) : null,
394
- title && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h4", children: title })
637
+ titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h4", children: titleNode })
395
638
  ] }),
396
- subtitle && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "body", children: subtitle })
639
+ subtitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "body", children: subtitleNode })
397
640
  ] });
398
641
  };
399
642
 
643
+ // src/components/InfoCard/index.ts
644
+ var InfoCard2 = Object.assign(InfoCard, {
645
+ Title: InfoCardTitle,
646
+ Subtitle: InfoCardSubtitle
647
+ });
648
+
400
649
  // src/components/Pagination/Pagination.module.scss
401
- var Pagination_module_default = {};
650
+ var Pagination_module_default = {
651
+ pagination: "Pagination_module_pagination",
652
+ next: "Pagination_module_next",
653
+ prev: "Pagination_module_prev",
654
+ pages: "Pagination_module_pages",
655
+ page: "Pagination_module_page",
656
+ active: "Pagination_module_active",
657
+ number: "Pagination_module_number"
658
+ };
402
659
  var Pagination = ({
403
660
  className,
404
661
  totalPages,
@@ -479,43 +736,338 @@ var Pagination = ({
479
736
  };
480
737
 
481
738
  // src/components/primitives/Container/Container.module.scss
482
- var Container_module_default = {};
739
+ var Container_module_default = {
740
+ container: "Container_module_container"
741
+ };
483
742
  var Container = (_a) => {
484
743
  var _b = _a, { children, className } = _b, props = __objRest(_b, ["children", "className"]);
485
744
  return /* @__PURE__ */ jsxRuntime.jsx("div", __spreadProps(__spreadValues({ className: clsx3__default.default(Container_module_default.container, className) }, props), { children }));
486
745
  };
487
746
 
747
+ // src/components/PracticeCard/PracticeCard.module.scss
748
+ var PracticeCard_module_default = {
749
+ "practice-card": "PracticeCard_module_practice-card",
750
+ wrapper: "PracticeCard_module_wrapper",
751
+ background: "PracticeCard_module_background",
752
+ container: "PracticeCard_module_container",
753
+ title: "PracticeCard_module_title",
754
+ cta: "PracticeCard_module_cta",
755
+ ctaRest: "PracticeCard_module_ctaRest",
756
+ ctaHover: "PracticeCard_module_ctaHover"
757
+ };
758
+ var PracticeCard = ({ className, title, cta, image }) => {
759
+ const { url: href, isExternal } = cta != null ? cta : {};
760
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx3__default.default(PracticeCard_module_default["practice-card"], className), children: /* @__PURE__ */ jsxRuntime.jsxs(
761
+ ConditionalWrapper,
762
+ __spreadProps(__spreadValues({
763
+ className: PracticeCard_module_default.wrapper,
764
+ wrapper: Anchor,
765
+ fallback: "div",
766
+ condition: !!href
767
+ }, href ? { href, isExternal } : {}), {
768
+ children: [
769
+ image && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: PracticeCard_module_default.background }, image)),
770
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: PracticeCard_module_default.container, children: [
771
+ title && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx3__default.default(PracticeCard_module_default.title, "h3"), children: title }),
772
+ href && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: PracticeCard_module_default.cta, children: [
773
+ /* @__PURE__ */ jsxRuntime.jsx(Icon, { className: PracticeCard_module_default.ctaRest, type: "right" }),
774
+ /* @__PURE__ */ jsxRuntime.jsx(Icon, { className: PracticeCard_module_default.ctaHover, type: "tiltedRight" })
775
+ ] })
776
+ ] })
777
+ ]
778
+ })
779
+ ) });
780
+ };
781
+ var CardCollectionTitle = ({ children }) => {
782
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
783
+ };
784
+ var CardCollectionSubtitle = ({ children }) => {
785
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
786
+ };
787
+
488
788
  // src/widgets/CardCollection/CardCollection.module.scss
489
- var CardCollection_module_default = {};
789
+ var CardCollection_module_default = {
790
+ "card-collection": "CardCollection_module_card-collection",
791
+ content: "CardCollection_module_content",
792
+ wrapper: "CardCollection_module_wrapper",
793
+ threeCols: "CardCollection_module_threeCols",
794
+ examCard: "CardCollection_module_examCard"
795
+ };
490
796
  var CardCollection = ({
491
797
  className,
492
798
  variant = "default",
493
799
  title,
494
800
  subtitle,
495
- cards
801
+ cards,
802
+ children
496
803
  }) => {
804
+ var _a, _b;
805
+ const slots = resolveCompoundSlots(children, {
806
+ title: CardCollectionTitle,
807
+ subtitle: CardCollectionSubtitle
808
+ });
809
+ const titleNode = (_a = slots.title) != null ? _a : title;
810
+ const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
497
811
  return /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: clsx3__default.default(CardCollection_module_default["card-collection"], CardCollection_module_default[variant], className), children: [
498
812
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: CardCollection_module_default.content, children: [
499
- title && /* @__PURE__ */ jsxRuntime.jsx("h2", { children: title }),
500
- subtitle && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "subheading", children: subtitle })
813
+ titleNode && /* @__PURE__ */ jsxRuntime.jsx("h2", { children: titleNode }),
814
+ subtitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "subheading", children: subtitleNode })
501
815
  ] }),
502
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: CardCollection_module_default.wrapper, children: cards == null ? void 0 : cards.map((card, key) => /* @__PURE__ */ jsxRuntime.jsx(Card, __spreadValues({ className: CardCollection_module_default.card }, card), key)) })
816
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: CardCollection_module_default.wrapper, children: cards == null ? void 0 : cards.map((card, key) => /* @__PURE__ */ jsxRuntime.jsx(Card2, __spreadValues({ className: CardCollection_module_default.card }, card), key)) })
503
817
  ] });
504
818
  };
505
819
 
820
+ // src/widgets/CardCollection/index.ts
821
+ var CardCollection2 = Object.assign(CardCollection, {
822
+ Title: CardCollectionTitle,
823
+ Subtitle: CardCollectionSubtitle
824
+ });
825
+ var ContactModuleTitle = ({ children }) => {
826
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
827
+ };
828
+ var ContactModuleSubtitle = ({ children }) => {
829
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
830
+ };
831
+
832
+ // src/widgets/ContactModule/ContactModule.module.scss
833
+ var ContactModule_module_default = {
834
+ "contact-module": "ContactModule_module_contact-module",
835
+ container: "ContactModule_module_container",
836
+ wrapper: "ContactModule_module_wrapper",
837
+ content: "ContactModule_module_content",
838
+ "cta-wrapper": "ContactModule_module_cta-wrapper",
839
+ cta: "ContactModule_module_cta",
840
+ title: "ContactModule_module_title",
841
+ image: "ContactModule_module_image"
842
+ };
843
+ var ContactModule = ({
844
+ className,
845
+ children,
846
+ title,
847
+ subtitle,
848
+ ctas,
849
+ image,
850
+ blurred
851
+ }) => {
852
+ var _a, _b;
853
+ const slots = resolveCompoundSlots(children, {
854
+ title: ContactModuleTitle,
855
+ subtitle: ContactModuleSubtitle
856
+ });
857
+ const titleNode = (_a = slots.title) != null ? _a : title;
858
+ const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
859
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx3__default.default(ContactModule_module_default["contact-module"], { [ContactModule_module_default.blurred]: blurred }, className), children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: ContactModule_module_default.container, children: [
860
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: ContactModule_module_default.wrapper, children: [
861
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: ContactModule_module_default.content, children: [
862
+ titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx3__default.default(ContactModule_module_default.title, "h1"), children: titleNode }),
863
+ subtitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "subheading", children: subtitleNode })
864
+ ] }),
865
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: ContactModule_module_default["cta-wrapper"], children: ctas == null ? void 0 : ctas.map((cta, key) => /* @__PURE__ */ jsxRuntime.jsx(
866
+ Button,
867
+ {
868
+ className: ContactModule_module_default.cta,
869
+ href: cta.url,
870
+ isExternal: cta.isExternal,
871
+ variant: key % 2 === 0 ? "secondary" : "primary",
872
+ children: cta.label
873
+ },
874
+ key
875
+ )) })
876
+ ] }),
877
+ image && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: ContactModule_module_default.image }, image))
878
+ ] }) });
879
+ };
880
+
881
+ // src/widgets/ContactModule/index.ts
882
+ var ContactModule2 = Object.assign(ContactModule, {
883
+ Title: ContactModuleTitle,
884
+ Subtitle: ContactModuleSubtitle
885
+ });
886
+ var HeroBannerTitle = ({ children }) => {
887
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
888
+ };
889
+ var HeroBannerSubtitle = ({ children }) => {
890
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
891
+ };
892
+
893
+ // src/widgets/HeroBanner/HeroBanner.module.scss
894
+ var HeroBanner_module_default = {
895
+ heroBanner: "HeroBanner_module_heroBanner",
896
+ mainHeroBanner: "HeroBanner_module_mainHeroBanner",
897
+ container: "HeroBanner_module_container",
898
+ bannerPodcast: "HeroBanner_module_bannerPodcast",
899
+ banner: "HeroBanner_module_banner",
900
+ text: "HeroBanner_module_text",
901
+ title: "HeroBanner_module_title",
902
+ subtitle: "HeroBanner_module_subtitle",
903
+ logoWrapper: "HeroBanner_module_logoWrapper",
904
+ logo: "HeroBanner_module_logo",
905
+ horizontalGradient: "HeroBanner_module_horizontalGradient",
906
+ lensCrafters: "HeroBanner_module_lensCrafters",
907
+ forEyes: "HeroBanner_module_forEyes",
908
+ optical: "HeroBanner_module_optical",
909
+ pearleVision: "HeroBanner_module_pearleVision",
910
+ ctaContainer: "HeroBanner_module_ctaContainer",
911
+ brandsStrip: "HeroBanner_module_brandsStrip",
912
+ backgroundImage: "HeroBanner_module_backgroundImage",
913
+ scrollDown: "HeroBanner_module_scrollDown",
914
+ arrow: "HeroBanner_module_arrow"
915
+ };
916
+ var HeroBanner = ({
917
+ className,
918
+ variant = "pageHeroBanner",
919
+ title,
920
+ subtitle,
921
+ backgroundImage,
922
+ logo,
923
+ cta,
924
+ brands,
925
+ children
926
+ }) => {
927
+ var _a, _b;
928
+ const { is } = useViewPort_default();
929
+ const isTabletBelow = is("tablet", "below");
930
+ const isDesktopBelow = is("desktop", "below");
931
+ const vMainHeroBanner = variant === "mainHeroBanner";
932
+ const vBannerPodcast = variant === "bannerPodcast";
933
+ const animated = brands && brands.logos && brands.logos.length >= 4 && isDesktopBelow;
934
+ const slots = resolveCompoundSlots(children, {
935
+ title: HeroBannerTitle,
936
+ subtitle: HeroBannerSubtitle
937
+ });
938
+ const titleNode = (_a = slots.title) != null ? _a : title;
939
+ const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
940
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx3__default.default(HeroBanner_module_default.heroBanner, HeroBanner_module_default[variant], className), children: [
941
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: HeroBanner_module_default.container, children: [
942
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: HeroBanner_module_default.banner, children: [
943
+ (titleNode || subtitleNode) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: HeroBanner_module_default.text, children: [
944
+ titleNode && /* @__PURE__ */ jsxRuntime.jsx("h1", { className: clsx3__default.default(HeroBanner_module_default.title, "h1"), children: titleNode }),
945
+ subtitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx3__default.default(HeroBanner_module_default.subtitle, "subtitle"), children: subtitleNode })
946
+ ] }),
947
+ cta && cta.length > 0 && !vBannerPodcast && /* @__PURE__ */ jsxRuntime.jsx("div", { className: HeroBanner_module_default.ctaContainer, children: cta.slice(0, 2).map((cta2, key) => {
948
+ return /* @__PURE__ */ jsxRuntime.jsx(
949
+ Button,
950
+ {
951
+ href: cta2.url,
952
+ isExternal: cta2.isExternal,
953
+ variant: key % 2 ? vMainHeroBanner && !isTabletBelow ? "nofill" : "grey" : "primary",
954
+ fullWidth: isTabletBelow,
955
+ children: cta2.label
956
+ },
957
+ key
958
+ );
959
+ }) })
960
+ ] }),
961
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: HeroBanner_module_default.logoWrapper, children: logo && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: HeroBanner_module_default.logo }, logo)) }),
962
+ !vBannerPodcast && /* @__PURE__ */ jsxRuntime.jsx(
963
+ BrandsStrip,
964
+ __spreadValues({
965
+ className: HeroBanner_module_default.brandsStrip,
966
+ variant: "light",
967
+ size: isTabletBelow || vMainHeroBanner ? "small" : void 0,
968
+ animate: animated
969
+ }, brands)
970
+ ),
971
+ backgroundImage && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: HeroBanner_module_default.backgroundImage }, backgroundImage))
972
+ ] }),
973
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: HeroBanner_module_default.horizontalGradient, children: [
974
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: HeroBanner_module_default.lensCrafters }),
975
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: HeroBanner_module_default.forEyes }),
976
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: HeroBanner_module_default.optical }),
977
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: HeroBanner_module_default.pearleVision })
978
+ ] }),
979
+ !vBannerPodcast && /* @__PURE__ */ jsxRuntime.jsx("div", { className: HeroBanner_module_default.scrollDown, children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "downChevronBlack", className: HeroBanner_module_default.arrow }) })
980
+ ] });
981
+ };
982
+
983
+ // src/widgets/HeroBanner/index.ts
984
+ var HeroBanner2 = Object.assign(HeroBanner, {
985
+ Title: HeroBannerTitle,
986
+ Subtitle: HeroBannerSubtitle
987
+ });
988
+ var MiniBannerTitle = ({ children }) => {
989
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
990
+ };
991
+ var MiniBannerSubtitle = ({ children }) => {
992
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
993
+ };
994
+
995
+ // src/widgets/MiniBanner/MiniBanner.module.scss
996
+ var MiniBanner_module_default = {
997
+ minibanner: "MiniBanner_module_minibanner",
998
+ background: "MiniBanner_module_background",
999
+ container: "MiniBanner_module_container",
1000
+ miniBannerNoBG: "MiniBanner_module_miniBannerNoBG"
1001
+ };
1002
+ var MiniBanner = ({
1003
+ className,
1004
+ variant = "default",
1005
+ title,
1006
+ subtitle,
1007
+ logo,
1008
+ background,
1009
+ children
1010
+ }) => {
1011
+ var _a, _b;
1012
+ const slots = resolveCompoundSlots(children, {
1013
+ title: MiniBannerTitle,
1014
+ subtitle: MiniBannerSubtitle
1015
+ });
1016
+ const titleNode = (_a = slots.title) != null ? _a : title;
1017
+ const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
1018
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx3__default.default(MiniBanner_module_default.minibanner, MiniBanner_module_default[variant], className), children: [
1019
+ background && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: MiniBanner_module_default.background }, background)),
1020
+ /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: MiniBanner_module_default.container, children: [
1021
+ logo && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: MiniBanner_module_default.logo }, logo)),
1022
+ titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h4", children: titleNode }),
1023
+ subtitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: variant === "miniBannerNoBG" ? "subheading" : "h1", children: subtitleNode })
1024
+ ] })
1025
+ ] });
1026
+ };
1027
+
1028
+ // src/widgets/MiniBanner/index.ts
1029
+ var MiniBanner2 = Object.assign(MiniBanner, {
1030
+ Title: MiniBannerTitle,
1031
+ Subtitle: MiniBannerSubtitle
1032
+ });
1033
+ var MiniSectionCtaTitle = ({ children }) => {
1034
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
1035
+ };
1036
+ var MiniSectionCtaSubtitle = ({ children }) => {
1037
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
1038
+ };
1039
+
506
1040
  // src/widgets/MiniSectionCta/MiniSectionCta.module.scss
507
- var MiniSectionCta_module_default = {};
1041
+ var MiniSectionCta_module_default = {
1042
+ miniSectionCta: "MiniSectionCta_module_miniSectionCta",
1043
+ container: "MiniSectionCta_module_container",
1044
+ col: "MiniSectionCta_module_col",
1045
+ BgColorBlack: "MiniSectionCta_module_BgColorBlack",
1046
+ infoCallout: "MiniSectionCta_module_infoCallout",
1047
+ miniTextCenterCta: "MiniSectionCta_module_miniTextCenterCta",
1048
+ cta: "MiniSectionCta_module_cta",
1049
+ BgColorGrey: "MiniSectionCta_module_BgColorGrey",
1050
+ subtitle: "MiniSectionCta_module_subtitle"
1051
+ };
508
1052
  var MiniSectionCta = ({
509
1053
  className,
510
1054
  variant = "headerCTA",
511
1055
  title,
512
1056
  subtitle,
513
- cta
1057
+ cta,
1058
+ children
514
1059
  }) => {
1060
+ var _a, _b;
1061
+ const slots = resolveCompoundSlots(children, {
1062
+ title: MiniSectionCtaTitle,
1063
+ subtitle: MiniSectionCtaSubtitle
1064
+ });
1065
+ const titleNode = (_a = slots.title) != null ? _a : title;
1066
+ const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
515
1067
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx3__default.default(MiniSectionCta_module_default.miniSectionCta, MiniSectionCta_module_default[variant], className), children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: MiniSectionCta_module_default.container, children: [
516
1068
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: MiniSectionCta_module_default.col, children: [
517
- title && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: variant === "BgColorBlack" || variant === "BgColorGrey" ? "h3" : "h2", children: title }),
518
- subtitle && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx3__default.default(MiniSectionCta_module_default.subtitle, variant === "infoCallout" ? "h4" : "subheading"), children: subtitle })
1069
+ titleNode && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: variant === "BgColorBlack" || variant === "BgColorGrey" ? "h3" : "h2", children: titleNode }),
1070
+ subtitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx3__default.default(MiniSectionCta_module_default.subtitle, variant === "infoCallout" ? "h4" : "subheading"), children: subtitleNode })
519
1071
  ] }),
520
1072
  cta && /* @__PURE__ */ jsxRuntime.jsx("div", { className: MiniSectionCta_module_default.col, children: /* @__PURE__ */ jsxRuntime.jsx(
521
1073
  Button,
@@ -523,7 +1075,7 @@ var MiniSectionCta = ({
523
1075
  className: MiniSectionCta_module_default.cta,
524
1076
  href: cta.url,
525
1077
  isExternal: cta.isExternal,
526
- variant: "primary",
1078
+ variant: variant === "BgColorBlack" ? "shiny" : "primary",
527
1079
  icon: variant === "miniTextCenterCta" ? "tiltedRightWhite" : void 0,
528
1080
  children: cta.label
529
1081
  }
@@ -531,39 +1083,155 @@ var MiniSectionCta = ({
531
1083
  ] }) });
532
1084
  };
533
1085
 
1086
+ // src/widgets/MiniSectionCta/index.ts
1087
+ var MiniSectionCta2 = Object.assign(MiniSectionCta, {
1088
+ Title: MiniSectionCtaTitle,
1089
+ Subtitle: MiniSectionCtaSubtitle
1090
+ });
1091
+ var PracticePathCardsFooter = ({ children }) => {
1092
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
1093
+ };
1094
+ var PracticePathCardsSubtitle = ({ children }) => {
1095
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
1096
+ };
1097
+ var PracticePathCardsTitle = ({ children }) => {
1098
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
1099
+ };
1100
+
1101
+ // src/widgets/PracticePathCards/PracticePathCards.module.scss
1102
+ var PracticePathCards_module_default = {
1103
+ "practice-path-cards": "PracticePathCards_module_practice-path-cards",
1104
+ container: "PracticePathCards_module_container",
1105
+ wrapper: "PracticePathCards_module_wrapper",
1106
+ ctaWrapper: "PracticePathCards_module_ctaWrapper",
1107
+ cta: "PracticePathCards_module_cta",
1108
+ content: "PracticePathCards_module_content",
1109
+ cards: "PracticePathCards_module_cards",
1110
+ card: "PracticePathCards_module_card"
1111
+ };
1112
+ var PracticePathCards = ({
1113
+ className,
1114
+ children,
1115
+ cards,
1116
+ title,
1117
+ subtitle,
1118
+ footer,
1119
+ cta
1120
+ }) => {
1121
+ var _a, _b, _c;
1122
+ const slots = resolveCompoundSlots(children, {
1123
+ title: PracticePathCardsTitle,
1124
+ subtitle: PracticePathCardsSubtitle,
1125
+ footer: PracticePathCardsFooter
1126
+ });
1127
+ const titleNode = (_a = slots.title) != null ? _a : title;
1128
+ const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
1129
+ const footerNode = (_c = slots.footer) != null ? _c : footer;
1130
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx3__default.default(PracticePathCards_module_default["practice-path-cards"], className), children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: PracticePathCards_module_default.container, children: [
1131
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: PracticePathCards_module_default.wrapper, children: [
1132
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: PracticePathCards_module_default.content, children: [
1133
+ titleNode && /* @__PURE__ */ jsxRuntime.jsx("h2", { children: titleNode }),
1134
+ subtitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "subheading", children: subtitleNode })
1135
+ ] }),
1136
+ (cta == null ? void 0 : cta.url) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: PracticePathCards_module_default.ctaWrapper, children: /* @__PURE__ */ jsxRuntime.jsx(
1137
+ Button,
1138
+ {
1139
+ className: PracticePathCards_module_default.cta,
1140
+ variant: "secondary",
1141
+ href: cta.url,
1142
+ isExternal: cta == null ? void 0 : cta.isExternal,
1143
+ children: cta == null ? void 0 : cta.label
1144
+ }
1145
+ ) })
1146
+ ] }),
1147
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: PracticePathCards_module_default.cards, children: cards == null ? void 0 : cards.map((card, key) => /* @__PURE__ */ jsxRuntime.jsx(PracticeCard, __spreadValues({ className: PracticePathCards_module_default.card }, card), key)) }),
1148
+ footerNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "smallest", children: footerNode })
1149
+ ] }) });
1150
+ };
1151
+
1152
+ // src/widgets/PracticePathCards/index.ts
1153
+ var PracticePathCards2 = Object.assign(PracticePathCards, {
1154
+ Title: PracticePathCardsTitle,
1155
+ Subtitle: PracticePathCardsSubtitle,
1156
+ Footer: PracticePathCardsFooter
1157
+ });
1158
+ var Teaser5050With3TextTitle = ({ children }) => {
1159
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
1160
+ };
1161
+
534
1162
  // src/widgets/Teaser5050With3Text/Teaser5050With3Text.module.scss
535
- var Teaser5050With3Text_module_default = {};
1163
+ var Teaser5050With3Text_module_default = {
1164
+ "teaser5050-3text": "Teaser5050With3Text_module_teaser5050-3text",
1165
+ container: "Teaser5050With3Text_module_container",
1166
+ content: "Teaser5050With3Text_module_content",
1167
+ right: "Teaser5050With3Text_module_right",
1168
+ title: "Teaser5050With3Text_module_title",
1169
+ image: "Teaser5050With3Text_module_image"
1170
+ };
536
1171
  var Teaser5050With3Text = ({
537
1172
  className,
538
1173
  variant = "left",
539
1174
  title,
540
1175
  cards,
541
- image
1176
+ image,
1177
+ children
542
1178
  }) => {
1179
+ var _a;
1180
+ const slots = resolveCompoundSlots(children, {
1181
+ title: Teaser5050With3TextTitle
1182
+ });
1183
+ const titleNode = (_a = slots.title) != null ? _a : title;
543
1184
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx3__default.default(Teaser5050With3Text_module_default["teaser5050-3text"], Teaser5050With3Text_module_default[variant], className), children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: Teaser5050With3Text_module_default.container, children: [
544
- title && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx3__default.default(Teaser5050With3Text_module_default.title, "h3"), children: title }),
1185
+ titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx3__default.default(Teaser5050With3Text_module_default.title, "h3"), children: titleNode }),
545
1186
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: Teaser5050With3Text_module_default.content, children: [
546
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: Teaser5050With3Text_module_default.cards, children: cards == null ? void 0 : cards.map((card, key) => /* @__PURE__ */ jsxRuntime.jsx(InfoCard, __spreadValues({}, card), key)) }),
1187
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: Teaser5050With3Text_module_default.cards, children: cards == null ? void 0 : cards.map((card, key) => /* @__PURE__ */ jsxRuntime.jsx(InfoCard2, __spreadValues({}, card), key)) }),
547
1188
  image && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: Teaser5050With3Text_module_default.image }, image))
548
1189
  ] })
549
1190
  ] }) });
550
1191
  };
551
1192
 
1193
+ // src/widgets/Teaser5050With3Text/index.ts
1194
+ var Teaser5050With3Text2 = Object.assign(Teaser5050With3Text, {
1195
+ Title: Teaser5050With3TextTitle
1196
+ });
1197
+ var Teaser5050WithCtaTitle = ({ children }) => {
1198
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
1199
+ };
1200
+ var Teaser5050WithCtaSubtitle = ({ children }) => {
1201
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
1202
+ };
1203
+
552
1204
  // src/widgets/Teaser5050WithCta/Teaser5050WithCta.module.scss
553
- var Teaser5050WithCta_module_default = {};
1205
+ var Teaser5050WithCta_module_default = {
1206
+ teaser5050: "Teaser5050WithCta_module_teaser5050",
1207
+ container: "Teaser5050WithCta_module_container",
1208
+ right: "Teaser5050WithCta_module_right",
1209
+ wrapper: "Teaser5050WithCta_module_wrapper",
1210
+ title: "Teaser5050WithCta_module_title",
1211
+ image: "Teaser5050WithCta_module_image",
1212
+ cta: "Teaser5050WithCta_module_cta"
1213
+ };
554
1214
  var Teaser5050WithCta = ({
555
1215
  className,
556
1216
  variant = "left",
557
1217
  title,
558
1218
  subtitle,
559
1219
  cta,
560
- image
1220
+ image,
1221
+ children
561
1222
  }) => {
1223
+ var _a, _b;
1224
+ const slots = resolveCompoundSlots(children, {
1225
+ title: Teaser5050WithCtaTitle,
1226
+ subtitle: Teaser5050WithCtaSubtitle
1227
+ });
1228
+ const titleNode = (_a = slots.title) != null ? _a : title;
1229
+ const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
562
1230
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx3__default.default(Teaser5050WithCta_module_default.teaser5050, Teaser5050WithCta_module_default[variant], className), children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: Teaser5050WithCta_module_default.container, children: [
563
1231
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: Teaser5050WithCta_module_default.wrapper, children: [
564
1232
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: Teaser5050WithCta_module_default.content, children: [
565
- title && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx3__default.default(Teaser5050WithCta_module_default.title, "h3"), children: title }),
566
- subtitle && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "subheading", children: subtitle })
1233
+ titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx3__default.default(Teaser5050WithCta_module_default.title, "h3"), children: titleNode }),
1234
+ subtitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "subheading", children: subtitleNode })
567
1235
  ] }),
568
1236
  cta && /* @__PURE__ */ jsxRuntime.jsx(
569
1237
  Button,
@@ -580,20 +1248,32 @@ var Teaser5050WithCta = ({
580
1248
  ] }) });
581
1249
  };
582
1250
 
1251
+ // src/widgets/Teaser5050WithCta/index.ts
1252
+ var Teaser5050WithCta2 = Object.assign(Teaser5050WithCta, {
1253
+ Title: Teaser5050WithCtaTitle,
1254
+ Subtitle: Teaser5050WithCtaSubtitle
1255
+ });
1256
+
583
1257
  exports.Anchor = Anchor;
1258
+ exports.BrandsStrip = BrandsStrip;
584
1259
  exports.Button = Button;
585
- exports.Card = Card;
586
- exports.CardCollection = CardCollection;
1260
+ exports.Card = Card2;
1261
+ exports.CardCollection = CardCollection2;
587
1262
  exports.ConditionalWrapper = ConditionalWrapper;
1263
+ exports.ContactModule = ContactModule2;
588
1264
  exports.Container = Container;
589
- exports.CountingCard = CountingCard;
1265
+ exports.CountingCard = CountingCard2;
1266
+ exports.HeroBanner = HeroBanner2;
590
1267
  exports.Icon = Icon;
591
- exports.InfoCard = InfoCard;
592
- exports.MiniSectionCta = MiniSectionCta;
1268
+ exports.InfoCard = InfoCard2;
1269
+ exports.MiniBanner = MiniBanner2;
1270
+ exports.MiniSectionCta = MiniSectionCta2;
593
1271
  exports.Pagination = Pagination;
594
1272
  exports.Picture = Picture;
595
- exports.Teaser5050With3Text = Teaser5050With3Text;
596
- exports.Teaser5050WithCta = Teaser5050WithCta;
1273
+ exports.PracticeCard = PracticeCard;
1274
+ exports.PracticePathCards = PracticePathCards2;
1275
+ exports.Teaser5050With3Text = Teaser5050With3Text2;
1276
+ exports.Teaser5050WithCta = Teaser5050WithCta2;
597
1277
  exports.svgs = svgs;
598
1278
  //# sourceMappingURL=index.cjs.map
599
1279
  //# sourceMappingURL=index.cjs.map