@asante-org/leybold-design-system 1.2.1 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -3,7 +3,7 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
3
3
  import { faArrowLeft, faArrowLeftLong, faArrowRight, faArrowRightLong, faChevronRight, faChevronLeft, faArrowUpRightFromSquare, faGlobe, faXmark as faXmark$1 } from '@fortawesome/free-solid-svg-icons';
4
4
  import { faInstagram, faYoutube, faLinkedinIn, faXTwitter, faFacebookF } from '@fortawesome/free-brands-svg-icons';
5
5
  import { faChevronRight as faChevronRight$1, faArrowUpRightFromSquare as faArrowUpRightFromSquare$1 } from '@fortawesome/pro-solid-svg-icons';
6
- import { ProductDetailsCard, AlgoliaDynamicSearchRaw, QrForm } from '@asantemedia-org/edwardsvacuum-design-system';
6
+ import { ProductDetailsCard, AlgoliaDynamicSearchRaw, QrForm } from '@asante-org/edwardsvacuum-design-system';
7
7
 
8
8
  function _extends() {
9
9
  return _extends = Object.assign ? Object.assign.bind() : function (n) {
@@ -54,7 +54,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
54
54
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
55
55
  };
56
56
 
57
- var styles$k = {"button":"Button-module__button___18Bed","button--primary":"Button-module__button--primary___VuF-P","button--disabled":"Button-module__button--disabled___IuOY8","button--secondary":"Button-module__button--secondary___lD5E3","button--solid-grey":"Button-module__button--solid-grey___oRbEy","button--solid-black":"Button-module__button--solid-black___1Ma5K","button--solid-white":"Button-module__button--solid-white___bE-Z0","button--outlined-grey":"Button-module__button--outlined-grey___xWGbB","button--outlined-black":"Button-module__button--outlined-black___qfX5o","button--outlined-white":"Button-module__button--outlined-white___QLXNP","button--link-text":"Button-module__button--link-text___R2kun","button__icon":"Button-module__button__icon___hlcHo","button--link-text-alt":"Button-module__button--link-text-alt___1p7wH","button--external-link":"Button-module__button--external-link___Mhxuk","button--carousel-arrow-left":"Button-module__button--carousel-arrow-left___Wx-Jo","button--carousel-arrow-right":"Button-module__button--carousel-arrow-right___3ZtgT","button__icon__default":"Button-module__button__icon__default___0qlF1","button__icon__hover":"Button-module__button__icon__hover___3xPGT","button--extra-small":"Button-module__button--extra-small___R0QTM","button--small":"Button-module__button--small___ADJQe","button--medium":"Button-module__button--medium___ZuR4Z","button--large":"Button-module__button--large___-FaV5","button__icon--left":"Button-module__button__icon--left___wMCeH","button__icon--right":"Button-module__button__icon--right___-pGHl"};
57
+ var styles$l = {"button":"Button-module__button___18Bed","button--primary":"Button-module__button--primary___VuF-P","button--disabled":"Button-module__button--disabled___IuOY8","button--secondary":"Button-module__button--secondary___lD5E3","button--solid-grey":"Button-module__button--solid-grey___oRbEy","button--solid-black":"Button-module__button--solid-black___1Ma5K","button--solid-white":"Button-module__button--solid-white___bE-Z0","button--outlined-grey":"Button-module__button--outlined-grey___xWGbB","button--outlined-black":"Button-module__button--outlined-black___qfX5o","button--outlined-white":"Button-module__button--outlined-white___QLXNP","button--link-text":"Button-module__button--link-text___R2kun","button__icon":"Button-module__button__icon___hlcHo","button--link-text-alt":"Button-module__button--link-text-alt___1p7wH","button--external-link":"Button-module__button--external-link___Mhxuk","button--carousel-arrow-left":"Button-module__button--carousel-arrow-left___Wx-Jo","button--carousel-arrow-right":"Button-module__button--carousel-arrow-right___3ZtgT","button__icon__default":"Button-module__button__icon__default___0qlF1","button__icon__hover":"Button-module__button__icon__hover___3xPGT","button--extra-small":"Button-module__button--extra-small___R0QTM","button--small":"Button-module__button--small___ADJQe","button--medium":"Button-module__button--medium___ZuR4Z","button--large":"Button-module__button--large___-FaV5","button__icon--left":"Button-module__button__icon--left___wMCeH","button__icon--right":"Button-module__button__icon--right___-pGHl"};
58
58
 
59
59
  function getDefaultExportFromCjs (x) {
60
60
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
@@ -218,8 +218,8 @@ var Button = function (_a) {
218
218
  var isIconOnly = variant === "carousel-arrow-left" || variant === "carousel-arrow-right";
219
219
  var isCarouselLeft = variant === "carousel-arrow-left";
220
220
  var isCarouselRight = variant === "carousel-arrow-right";
221
- var buttonClasses = classNames(styles$k.button, styles$k["button--".concat(cssVariant)], styles$k["button--".concat(size)], (_b = {}, _b[styles$k["button--disabled"]] = disabled, _b), className);
222
- var iconClasses = classNames(styles$k.button__icon, styles$k["button__icon--".concat(iconPosition)]);
221
+ var buttonClasses = classNames(styles$l.button, styles$l["button--".concat(cssVariant)], styles$l["button--".concat(size)], (_b = {}, _b[styles$l["button--disabled"]] = disabled, _b), className);
222
+ var iconClasses = classNames(styles$l.button__icon, styles$l["button__icon--".concat(iconPosition)]);
223
223
  // Generate accessible label for icon-only buttons
224
224
  var accessibleLabel = ariaLabel || (isIconOnly ? variant === "carousel-arrow-left" ? "Previous" : "Next" : undefined);
225
225
  return /*#__PURE__*/React.createElement("button", _extends({
@@ -228,29 +228,29 @@ var Button = function (_a) {
228
228
  disabled: disabled,
229
229
  onClick: onClick,
230
230
  "aria-label": accessibleLabel,
231
- "data-force-state": props['data-force-state']
231
+ "data-force-state": props["data-force-state"]
232
232
  }, props), !isIconOnly && children, isCarouselLeft && /*#__PURE__*/React.createElement("span", {
233
233
  className: iconClasses
234
234
  }, /*#__PURE__*/React.createElement(FontAwesomeIcon, {
235
235
  icon: faArrowLeft,
236
- className: styles$k.button__icon__default
236
+ className: styles$l.button__icon__default
237
237
  }), /*#__PURE__*/React.createElement(FontAwesomeIcon, {
238
238
  icon: faArrowLeftLong,
239
- className: styles$k.button__icon__hover
239
+ className: styles$l.button__icon__hover
240
240
  })), isCarouselRight && /*#__PURE__*/React.createElement("span", {
241
241
  className: iconClasses
242
242
  }, /*#__PURE__*/React.createElement(FontAwesomeIcon, {
243
243
  icon: faArrowRight,
244
- className: styles$k.button__icon__default
244
+ className: styles$l.button__icon__default
245
245
  }), /*#__PURE__*/React.createElement(FontAwesomeIcon, {
246
246
  icon: faArrowRightLong,
247
- className: styles$k.button__icon__hover
247
+ className: styles$l.button__icon__hover
248
248
  })), !isIconOnly && iconElement && /*#__PURE__*/React.createElement("span", {
249
249
  className: iconClasses
250
250
  }, iconElement));
251
251
  };
252
252
 
253
- var styles$j = {"footer":"Footer-module__footer___Oavyx","footer--mobile":"Footer-module__footer--mobile___9HQC-","footer__container":"Footer-module__footer__container___ohvnm","footer__links":"Footer-module__footer__links___DdVK8","footer__linkGroup":"Footer-module__footer__linkGroup___1B7JA","footer__linkList":"Footer-module__footer__linkList___j-DWF","footer__linkHeading":"Footer-module__footer__linkHeading___LtE6X","footer__link":"Footer-module__footer__link___G5HPW","footer__cta":"Footer-module__footer__cta___MRJLr","footer__socialIcons":"Footer-module__footer__socialIcons___j0aRp","footer__socialIcon":"Footer-module__footer__socialIcon___1uVTm","footer__countrySelector":"Footer-module__footer__countrySelector___pVtN5","footer__bottom":"Footer-module__footer__bottom___77bPL","footer__bottomLeft":"Footer-module__footer__bottomLeft___tlst1","footer__bottomLinks":"Footer-module__footer__bottomLinks___s22h7","footer__bottomLink":"Footer-module__footer__bottomLink___SLzwY","footer__copyright":"Footer-module__footer__copyright___4bZOF","footer__brandSection":"Footer-module__footer__brandSection___BBr5f","footer__logo":"Footer-module__footer__logo___mv-9M","footer__leftCol":"Footer-module__footer__leftCol___vmKNN","footer__motto":"Footer-module__footer__motto___QtB2m","footer__main":"Footer-module__footer__main___NSU9d","footer__badge":"Footer-module__footer__badge___faejb","footer__badgeIcon":"Footer-module__footer__badgeIcon___xJ519","footer__badgeText":"Footer-module__footer__badgeText___imXgG","footer__linkText":"Footer-module__footer__linkText___Gc18Z","footer__linkIcon":"Footer-module__footer__linkIcon___IZzJM","footer__countrySelectorIcon":"Footer-module__footer__countrySelectorIcon___hhEd4"};
253
+ var styles$k = {"footer":"Footer-module__footer___Oavyx","footer--mobile":"Footer-module__footer--mobile___9HQC-","footer__container":"Footer-module__footer__container___ohvnm","footer__links":"Footer-module__footer__links___DdVK8","footer__linkGroup":"Footer-module__footer__linkGroup___1B7JA","footer__linkList":"Footer-module__footer__linkList___j-DWF","footer__linkHeading":"Footer-module__footer__linkHeading___LtE6X","footer__link":"Footer-module__footer__link___G5HPW","footer__cta":"Footer-module__footer__cta___MRJLr","footer__socialIcons":"Footer-module__footer__socialIcons___j0aRp","footer__socialIcon":"Footer-module__footer__socialIcon___1uVTm","footer__countrySelector":"Footer-module__footer__countrySelector___pVtN5","footer__bottom":"Footer-module__footer__bottom___77bPL","footer__bottomLeft":"Footer-module__footer__bottomLeft___tlst1","footer__bottomLinks":"Footer-module__footer__bottomLinks___s22h7","footer__bottomLink":"Footer-module__footer__bottomLink___SLzwY","footer__copyright":"Footer-module__footer__copyright___4bZOF","footer__brandSection":"Footer-module__footer__brandSection___BBr5f","footer__logo":"Footer-module__footer__logo___mv-9M","footer__leftCol":"Footer-module__footer__leftCol___vmKNN","footer__motto":"Footer-module__footer__motto___QtB2m","footer__main":"Footer-module__footer__main___NSU9d","footer__badge":"Footer-module__footer__badge___faejb","footer__badgeIcon":"Footer-module__footer__badgeIcon___xJ519","footer__badgeText":"Footer-module__footer__badgeText___imXgG","footer__linkText":"Footer-module__footer__linkText___Gc18Z","footer__linkIcon":"Footer-module__footer__linkIcon___IZzJM","footer__countrySelectorIcon":"Footer-module__footer__countrySelectorIcon___hhEd4"};
254
254
 
255
255
  /**
256
256
  * External link icon (↗) for footer links that open in new tabs
@@ -323,7 +323,7 @@ var FooterLink = function (_a) {
323
323
  className = _a.className,
324
324
  _b = _a.variant,
325
325
  variant = _b === void 0 ? 'default' : _b;
326
- var baseClass = variant === 'bottom' ? styles$j.footer__bottomLink : styles$j.footer__link;
326
+ var baseClass = variant === 'bottom' ? styles$k.footer__bottomLink : styles$k.footer__link;
327
327
  var linkClasses = classNames(baseClass, className);
328
328
  var handleClick = function (e) {
329
329
  if (item.onClick) {
@@ -339,9 +339,9 @@ var FooterLink = function (_a) {
339
339
  target: '_blank',
340
340
  rel: 'noopener noreferrer'
341
341
  }), /*#__PURE__*/React.createElement("span", {
342
- className: styles$j.footer__linkText
342
+ className: styles$k.footer__linkText
343
343
  }, item.label), item.external && /*#__PURE__*/React.createElement("span", {
344
- className: styles$j.footer__linkIcon
344
+ className: styles$k.footer__linkIcon
345
345
  }, /*#__PURE__*/React.createElement(ExternalLinkIcon, {
346
346
  size: 15
347
347
  })));
@@ -352,11 +352,11 @@ var FooterLinkGroup = function (_a) {
352
352
  className = _a.className,
353
353
  children = _a.children;
354
354
  return /*#__PURE__*/React.createElement("div", {
355
- className: classNames(styles$j.footer__linkGroup, className)
355
+ className: classNames(styles$k.footer__linkGroup, className)
356
356
  }, /*#__PURE__*/React.createElement("h3", {
357
- className: styles$j.footer__linkHeading
357
+ className: styles$k.footer__linkHeading
358
358
  }, heading), /*#__PURE__*/React.createElement("ul", {
359
- className: styles$j.footer__linkList
359
+ className: styles$k.footer__linkList
360
360
  }, links.map(function (link, index) {
361
361
  return /*#__PURE__*/React.createElement("li", {
362
362
  key: index
@@ -369,12 +369,12 @@ var FooterSocialIcons = function (_a) {
369
369
  var links = _a.links,
370
370
  className = _a.className;
371
371
  return /*#__PURE__*/React.createElement("div", {
372
- className: classNames(styles$j.footer__socialIcons, className)
372
+ className: classNames(styles$k.footer__socialIcons, className)
373
373
  }, links.map(function (link, index) {
374
374
  return /*#__PURE__*/React.createElement("a", {
375
375
  key: index,
376
376
  href: link.href,
377
- className: styles$j.footer__socialIcon,
377
+ className: styles$k.footer__socialIcon,
378
378
  "aria-label": link.ariaLabel,
379
379
  target: "_blank",
380
380
  rel: "noopener noreferrer"
@@ -386,7 +386,7 @@ var FooterSocialIcons = function (_a) {
386
386
  var FooterSocialIcon = function (_a) {
387
387
  var platform = _a.platform,
388
388
  className = _a.className;
389
- var iconClasses = classNames(styles$j.footer__socialIcon, className);
389
+ var iconClasses = classNames(styles$k.footer__socialIcon, className);
390
390
  return /*#__PURE__*/React.createElement("span", {
391
391
  className: iconClasses
392
392
  }, /*#__PURE__*/React.createElement(SocialIconComponent, {
@@ -399,11 +399,11 @@ var FooterBottom = function (_a) {
399
399
  countrySelector = _a.countrySelector,
400
400
  className = _a.className;
401
401
  return /*#__PURE__*/React.createElement("div", {
402
- className: classNames(styles$j.footer__bottom, className)
402
+ className: classNames(styles$k.footer__bottom, className)
403
403
  }, /*#__PURE__*/React.createElement("div", {
404
- className: styles$j.footer__bottomLeft
404
+ className: styles$k.footer__bottomLeft
405
405
  }, /*#__PURE__*/React.createElement("div", {
406
- className: styles$j.footer__bottomLinks
406
+ className: styles$k.footer__bottomLinks
407
407
  }, links.map(function (link, index) {
408
408
  return /*#__PURE__*/React.createElement(FooterLink, {
409
409
  key: index,
@@ -411,12 +411,12 @@ var FooterBottom = function (_a) {
411
411
  variant: "bottom"
412
412
  });
413
413
  })), /*#__PURE__*/React.createElement("p", {
414
- className: styles$j.footer__copyright
414
+ className: styles$k.footer__copyright
415
415
  }, copyright)), countrySelector && /*#__PURE__*/React.createElement("a", {
416
416
  href: countrySelector.href || '#',
417
- className: styles$j.footer__countrySelector
417
+ className: styles$k.footer__countrySelector
418
418
  }, countrySelector.showIcon !== false && /*#__PURE__*/React.createElement("span", {
419
- className: styles$j.footer__countrySelectorIcon
419
+ className: styles$k.footer__countrySelectorIcon
420
420
  }, /*#__PURE__*/React.createElement(FontAwesomeIcon, {
421
421
  icon: faGlobe
422
422
  })), countrySelector.label));
@@ -449,13 +449,13 @@ var Footer = function (_a) {
449
449
  countrySelector = _a.countrySelector,
450
450
  className = _a.className;
451
451
  var isMobile = variant === 'mobile';
452
- var footerClasses = classNames(styles$j.footer, isMobile && styles$j['footer--mobile'], className);
452
+ var footerClasses = classNames(styles$k.footer, isMobile && styles$k['footer--mobile'], className);
453
453
  var LogoWrapper = logo.href ? 'a' : 'div';
454
454
  var logoProps = logo.href ? {
455
455
  href: logo.href,
456
- className: styles$j.footer__logo
456
+ className: styles$k.footer__logo
457
457
  } : {
458
- className: styles$j.footer__logo
458
+ className: styles$k.footer__logo
459
459
  };
460
460
  // Logo + Motto + Badge component (used in both layouts)
461
461
  var LogoSection = function () {
@@ -463,17 +463,17 @@ var Footer = function (_a) {
463
463
  src: logo.src,
464
464
  alt: logo.alt
465
465
  })), /*#__PURE__*/React.createElement("div", {
466
- className: styles$j.footer__leftCol
466
+ className: styles$k.footer__leftCol
467
467
  }, /*#__PURE__*/React.createElement("h2", {
468
- className: styles$j.footer__motto
468
+ className: styles$k.footer__motto
469
469
  }, motto), atlasCopcoBadge && /*#__PURE__*/React.createElement("div", {
470
- className: styles$j.footer__badge
470
+ className: styles$k.footer__badge
471
471
  }, atlasCopcoBadge.showIcon !== false && /*#__PURE__*/React.createElement("span", {
472
- className: styles$j.footer__badgeIcon
472
+ className: styles$k.footer__badgeIcon
473
473
  }, /*#__PURE__*/React.createElement(AtlasCopcoIcon, {
474
474
  size: 14
475
475
  })), /*#__PURE__*/React.createElement("span", {
476
- className: styles$j.footer__badgeText
476
+ className: styles$k.footer__badgeText
477
477
  }, atlasCopcoBadge.text))));
478
478
  };
479
479
  // Mobile layout: Links at top, logo/motto at bottom
@@ -481,9 +481,9 @@ var Footer = function (_a) {
481
481
  return /*#__PURE__*/React.createElement("footer", {
482
482
  className: footerClasses
483
483
  }, /*#__PURE__*/React.createElement("div", {
484
- className: styles$j.footer__container
484
+ className: styles$k.footer__container
485
485
  }, /*#__PURE__*/React.createElement("div", {
486
- className: styles$j.footer__links
486
+ className: styles$k.footer__links
487
487
  }, /*#__PURE__*/React.createElement(FooterLinkGroup, {
488
488
  heading: quickLinksHeading,
489
489
  links: quickLinks
@@ -491,7 +491,7 @@ var Footer = function (_a) {
491
491
  heading: contactHeading,
492
492
  links: contactLinks
493
493
  })), contactFormButton && /*#__PURE__*/React.createElement("div", {
494
- className: styles$j.footer__cta
494
+ className: styles$k.footer__cta
495
495
  }, /*#__PURE__*/React.createElement("a", {
496
496
  href: contactFormButton.href,
497
497
  style: {
@@ -510,33 +510,33 @@ var Footer = function (_a) {
510
510
  copyright: copyright,
511
511
  countrySelector: countrySelector
512
512
  }), /*#__PURE__*/React.createElement("div", {
513
- className: styles$j.footer__brandSection
513
+ className: styles$k.footer__brandSection
514
514
  }, /*#__PURE__*/React.createElement(LogoSection, null))));
515
515
  }
516
516
  // Desktop layout: Logo at top, 3-column main content
517
517
  return /*#__PURE__*/React.createElement("footer", {
518
518
  className: footerClasses
519
519
  }, /*#__PURE__*/React.createElement("div", {
520
- className: styles$j.footer__container
520
+ className: styles$k.footer__container
521
521
  }, /*#__PURE__*/React.createElement(LogoWrapper, logoProps, /*#__PURE__*/React.createElement("img", {
522
522
  src: logo.src,
523
523
  alt: logo.alt
524
524
  })), /*#__PURE__*/React.createElement("div", {
525
- className: styles$j.footer__main
525
+ className: styles$k.footer__main
526
526
  }, /*#__PURE__*/React.createElement("div", {
527
- className: styles$j.footer__leftCol
527
+ className: styles$k.footer__leftCol
528
528
  }, /*#__PURE__*/React.createElement("h2", {
529
- className: styles$j.footer__motto
529
+ className: styles$k.footer__motto
530
530
  }, motto), atlasCopcoBadge && /*#__PURE__*/React.createElement("div", {
531
- className: styles$j.footer__badge
531
+ className: styles$k.footer__badge
532
532
  }, atlasCopcoBadge.showIcon !== false && /*#__PURE__*/React.createElement("span", {
533
- className: styles$j.footer__badgeIcon
533
+ className: styles$k.footer__badgeIcon
534
534
  }, /*#__PURE__*/React.createElement(AtlasCopcoIcon, {
535
535
  size: 14
536
536
  })), /*#__PURE__*/React.createElement("span", {
537
- className: styles$j.footer__badgeText
537
+ className: styles$k.footer__badgeText
538
538
  }, atlasCopcoBadge.text))), /*#__PURE__*/React.createElement("div", {
539
- className: styles$j.footer__links
539
+ className: styles$k.footer__links
540
540
  }, /*#__PURE__*/React.createElement(FooterLinkGroup, {
541
541
  heading: quickLinksHeading,
542
542
  links: quickLinks
@@ -552,7 +552,7 @@ var Footer = function (_a) {
552
552
  })));
553
553
  };
554
554
 
555
- var styles$i = {"pagination":"Pagination-module__pagination___Kih79","dividerLine":"Pagination-module__dividerLine___85LAX","paginationList":"Pagination-module__paginationList___-lZpm","paginationItem":"Pagination-module__paginationItem___VsGFa","pageButton":"Pagination-module__pageButton___b6UNF","pageButtonActive":"Pagination-module__pageButtonActive___D9m18","navButton":"Pagination-module__navButton___ZCIai","navButtonDisabled":"Pagination-module__navButtonDisabled___IZK8H","navIcon":"Pagination-module__navIcon___-BVJ3","ellipsis":"Pagination-module__ellipsis___iAsGN","ellipsisText":"Pagination-module__ellipsisText___fd6u1"};
555
+ var styles$j = {"pagination":"Pagination-module__pagination___Kih79","dividerLine":"Pagination-module__dividerLine___85LAX","paginationList":"Pagination-module__paginationList___-lZpm","paginationItem":"Pagination-module__paginationItem___VsGFa","pageButton":"Pagination-module__pageButton___b6UNF","pageButtonActive":"Pagination-module__pageButtonActive___D9m18","navButton":"Pagination-module__navButton___ZCIai","navButtonDisabled":"Pagination-module__navButtonDisabled___IZK8H","navIcon":"Pagination-module__navIcon___-BVJ3","ellipsis":"Pagination-module__ellipsis___iAsGN","ellipsisText":"Pagination-module__ellipsisText___fd6u1"};
556
556
 
557
557
  var PaginationItem = function (_a) {
558
558
  var page = _a.page,
@@ -571,12 +571,12 @@ var PaginationItem = function (_a) {
571
571
  }
572
572
  };
573
573
  return /*#__PURE__*/React.createElement("li", {
574
- className: styles$i.paginationItem
574
+ className: styles$j.paginationItem
575
575
  }, /*#__PURE__*/React.createElement("button", {
576
576
  type: "button",
577
577
  onClick: handleClick,
578
578
  onKeyDown: handleKeyDown,
579
- className: "".concat(styles$i.pageButton, " ").concat(isActive ? styles$i.pageButtonActive : "", " ").concat(className || ""),
579
+ className: "".concat(styles$j.pageButton, " ").concat(isActive ? styles$j.pageButtonActive : "", " ").concat(className || ""),
580
580
  "aria-current": isActive ? "page" : undefined,
581
581
  "aria-label": "Page ".concat(page),
582
582
  disabled: isActive,
@@ -600,18 +600,18 @@ var PaginationButton = function (_a) {
600
600
  }
601
601
  };
602
602
  return /*#__PURE__*/React.createElement("li", {
603
- className: styles$i.paginationItem
603
+ className: styles$j.paginationItem
604
604
  }, /*#__PURE__*/React.createElement("button", {
605
605
  type: "button",
606
606
  onClick: onClick,
607
607
  onKeyDown: handleKeyDown,
608
608
  disabled: disabled,
609
- className: "".concat(styles$i.navButton, " ").concat(styles$i["navButton--".concat(direction)], " ").concat(disabled ? styles$i.navButtonDisabled : "", " ").concat(className || ""),
609
+ className: "".concat(styles$j.navButton, " ").concat(styles$j["navButton--".concat(direction)], " ").concat(disabled ? styles$j.navButtonDisabled : "", " ").concat(className || ""),
610
610
  "aria-label": ariaLabel || label,
611
611
  tabIndex: disabled ? -1 : 0
612
612
  }, /*#__PURE__*/React.createElement("span", null, label), direction === "next" && /*#__PURE__*/React.createElement(FontAwesomeIcon, {
613
613
  icon: faChevronRight$1,
614
- className: styles$i.navIcon,
614
+ className: styles$j.navIcon,
615
615
  "aria-hidden": "true"
616
616
  })));
617
617
  };
@@ -619,10 +619,10 @@ var PaginationButton = function (_a) {
619
619
  var PaginationEllipsis = function (_a) {
620
620
  var className = _a.className;
621
621
  return /*#__PURE__*/React.createElement("li", {
622
- className: "".concat(styles$i.paginationItem, " ").concat(styles$i.ellipsis),
622
+ className: "".concat(styles$j.paginationItem, " ").concat(styles$j.ellipsis),
623
623
  "aria-hidden": "true"
624
624
  }, /*#__PURE__*/React.createElement("span", {
625
- className: "".concat(styles$i.ellipsisText, " ").concat(className || "")
625
+ className: "".concat(styles$j.ellipsisText, " ").concat(className || "")
626
626
  }, "..."));
627
627
  };
628
628
 
@@ -707,13 +707,13 @@ var Pagination = function (_a) {
707
707
  return null;
708
708
  }
709
709
  return /*#__PURE__*/React.createElement("nav", {
710
- className: "".concat(styles$i.pagination, " ").concat(className || ""),
710
+ className: "".concat(styles$j.pagination, " ").concat(className || ""),
711
711
  "aria-label": ariaLabel,
712
712
  role: "navigation"
713
713
  }, /*#__PURE__*/React.createElement("div", {
714
- className: styles$i.dividerLine
714
+ className: styles$j.dividerLine
715
715
  }), /*#__PURE__*/React.createElement("ul", {
716
- className: styles$i.paginationList
716
+ className: styles$j.paginationList
717
717
  }, showPrevious && /*#__PURE__*/React.createElement(PaginationButton, {
718
718
  label: previousLabel,
719
719
  disabled: currentPage === 1,
@@ -741,9 +741,9 @@ var Pagination = function (_a) {
741
741
  })));
742
742
  };
743
743
 
744
- var styles$h = {"productCard":"ProductCardHorizontal-module__productCard___Nl4jK","productWrapper":"ProductCardHorizontal-module__productWrapper___gs8fn","withImage":"ProductCardHorizontal-module__withImage___pPFw2","productTitle":"ProductCardHorizontal-module__productTitle___xBuu7","productPrice":"ProductCardHorizontal-module__productPrice___lf32A","productImage":"ProductCardHorizontal-module__productImage___sQsUO","productId":"ProductCardHorizontal-module__productId___3oOQV","productTitleDescriptionWrapper":"ProductCardHorizontal-module__productTitleDescriptionWrapper___Obv-j","productPriceCtaWrapper":"ProductCardHorizontal-module__productPriceCtaWrapper___Npkfl","productArrowIcon":"ProductCardHorizontal-module__productArrowIcon___1-A76"};
744
+ var styles$i = {"productCard":"ProductCardHorizontal-module__productCard___Nl4jK","productWrapper":"ProductCardHorizontal-module__productWrapper___gs8fn","withImage":"ProductCardHorizontal-module__withImage___pPFw2","withPlaceholder":"ProductCardHorizontal-module__withPlaceholder___x8IUh","productTitle":"ProductCardHorizontal-module__productTitle___xBuu7","productPrice":"ProductCardHorizontal-module__productPrice___lf32A","productImage":"ProductCardHorizontal-module__productImage___sQsUO","placeholderImage":"ProductCardHorizontal-module__placeholderImage___kT1sp","productId":"ProductCardHorizontal-module__productId___3oOQV","productTitleDescriptionWrapper":"ProductCardHorizontal-module__productTitleDescriptionWrapper___Obv-j","productPriceCtaWrapper":"ProductCardHorizontal-module__productPriceCtaWrapper___Npkfl","productArrowIcon":"ProductCardHorizontal-module__productArrowIcon___1-A76"};
745
745
 
746
- var styles$g = {"imageContainer":"Image-module__imageContainer___iD5Kd","loading":"Image-module__loading___Sh1zO","image":"Image-module__image___1pa50","error":"Image-module__error___0LGZ2","skeleton":"Image-module__skeleton___0bGS6","shimmer":"Image-module__shimmer___aanrl","errorState":"Image-module__errorState___TjV-8","errorIcon":"Image-module__errorIcon___QCKvj","errorText":"Image-module__errorText___Q8pnb"};
746
+ var styles$h = {"imageContainer":"Image-module__imageContainer___iD5Kd","loading":"Image-module__loading___Sh1zO","image":"Image-module__image___1pa50","error":"Image-module__error___0LGZ2","skeleton":"Image-module__skeleton___0bGS6","shimmer":"Image-module__shimmer___aanrl","errorState":"Image-module__errorState___TjV-8","errorIcon":"Image-module__errorIcon___QCKvj","errorText":"Image-module__errorText___Q8pnb"};
747
747
 
748
748
  var Image = function (_a) {
749
749
  var src = _a.src,
@@ -814,15 +814,15 @@ var Image = function (_a) {
814
814
  objectPosition: objectPosition
815
815
  };
816
816
  return /*#__PURE__*/React.createElement("div", {
817
- className: "".concat(styles$g.imageContainer, " ").concat(className, " ").concat(isLoading ? styles$g.loading : "", " ").concat(hasError ? styles$g.error : ""),
817
+ className: "".concat(styles$h.imageContainer, " ").concat(className, " ").concat(isLoading ? styles$h.loading : "", " ").concat(hasError ? styles$h.error : ""),
818
818
  style: containerStyle
819
819
  }, isLoading && /*#__PURE__*/React.createElement("div", {
820
- className: styles$g.skeleton,
820
+ className: styles$h.skeleton,
821
821
  "aria-hidden": "true"
822
822
  }, /*#__PURE__*/React.createElement("div", {
823
- className: styles$g.shimmer
823
+ className: styles$h.shimmer
824
824
  })), hasError && !fallbackSrc ? /*#__PURE__*/React.createElement("div", {
825
- className: styles$g.errorState,
825
+ className: styles$h.errorState,
826
826
  role: "img",
827
827
  "aria-label": alt || "Image failed to load"
828
828
  }, /*#__PURE__*/React.createElement("svg", {
@@ -833,7 +833,7 @@ var Image = function (_a) {
833
833
  strokeWidth: "1.5",
834
834
  strokeLinecap: "round",
835
835
  strokeLinejoin: "round",
836
- className: styles$g.errorIcon,
836
+ className: styles$h.errorIcon,
837
837
  "aria-hidden": "true"
838
838
  }, /*#__PURE__*/React.createElement("rect", {
839
839
  x: "3",
@@ -849,7 +849,7 @@ var Image = function (_a) {
849
849
  }), /*#__PURE__*/React.createElement("polyline", {
850
850
  points: "21 15 16 10 5 21"
851
851
  })), /*#__PURE__*/React.createElement("span", {
852
- className: styles$g.errorText
852
+ className: styles$h.errorText
853
853
  }, "Image unavailable")) : /*#__PURE__*/React.createElement("img", _extends({
854
854
  src: currentSrc
855
855
  }, accessibilityProps, {
@@ -859,7 +859,7 @@ var Image = function (_a) {
859
859
  decoding: decoding,
860
860
  onLoad: handleLoad,
861
861
  onError: handleError,
862
- className: styles$g.image,
862
+ className: styles$h.image,
863
863
  style: imageStyle,
864
864
  srcSet: srcSet,
865
865
  sizes: sizes
@@ -877,67 +877,94 @@ const faArrowUpRight = {
877
877
  icon: [384, 512, [], "e09f", "M328 96c13.3 0 24 10.7 24 24l0 240c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-182.1L73 409c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l231-231L88 144c-13.3 0-24-10.7-24-24s10.7-24 24-24l240 0z"]
878
878
  };
879
879
 
880
+ var PLACEHOLDER_INDICATOR = "?placeholder-storybook";
881
+ var PLACEHOLDER_SVG = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"440\" height=\"133\" viewBox=\"218.446 219.139 440 133\" role=\"img\" aria-label=\"Leybold placeholder logo\"><g fill=\"#ffff\"><path d=\"M290.317,313.442h37.784v12.782h-53.654v-70.62h15.87V313.442z\"/><path d=\"M386.309,310.883c-3.912,12.593-15.135,16.722-24.761,16.722c-15.878,0-28.046-7.084-28.046-28.62c0-6.296,2.322-26.458,26.98-26.458c11.116,0,26.457,4.917,26.457,28.819v2.457h-38.626c0.428,3.935,1.274,12.785,13.232,12.785c4.125,0,8.356-1.965,9.521-5.704L386.309,310.883L386.309,310.883z M371.709,294.852c-0.85-8.456-6.666-11.017-11.434-11.017c-6.979,0-10.686,4.129-11.532,11.017H371.709z\"/><path d=\"M423.556,325.343c-6.986,19.374-8.892,21.932-21.799,21.932c-2.014,0-4.553-0.096-6.665-0.194v-11.02c0.629,0.104,1.582,0.197,2.854,0.197c5.397,0,8.36-0.688,9.737-7.864l-20.741-54.488h16.508l12.062,38.553h0.209l11.539-38.553h15.658L423.556,325.343z\"/><path d=\"M463.54,280.689h0.213c2.328-3.344,6.775-8.164,16.297-8.164c12.385,0,23.389,8.854,23.389,26.949c0,14.359-6.98,28.129-23.703,28.129c-6.141,0-12.701-2.067-16.299-7.968h-0.211v6.589h-14.498v-70.62h14.812V280.689z M475.604,284.427c-10.158,0-12.701,8.455-12.701,16.815c0,7.773,3.707,15.049,13.129,15.049c9.521,0,12.168-9.641,12.168-15.83C488.198,292.192,485.02,284.427,475.604,284.427z\"/><path d=\"M538.094,327.604c-15.141,0-28.787-8.652-28.787-27.542c0-18.881,13.646-27.536,28.787-27.536c15.129,0,28.785,8.655,28.785,27.536C566.88,318.95,553.223,327.604,538.094,327.604z M538.094,284.129c-11.434,0-13.547,9.244-13.547,15.934c0,6.691,2.113,15.939,13.547,15.939c11.426,0,13.547-9.248,13.547-15.939C551.641,293.373,549.52,284.129,538.094,284.129z\"/><path d=\"M588.811,326.225h-14.814v-70.62h14.814V326.225z\"/><path d=\"M651.969,326.225h-14.5v-6.589h-0.213c-3.598,5.898-10.156,7.968-16.295,7.968c-16.727,0-23.703-13.77-23.703-28.129c0-18.097,11.004-26.949,23.381-26.949c9.523,0,13.975,4.82,16.295,8.164h0.221v-25.085h14.814V326.225z M624.663,316.291c9.418,0,13.121-7.273,13.121-15.05c0-8.359-2.537-16.814-12.703-16.814c-9.416,0-12.592,7.767-12.592,16.034C612.49,306.651,615.135,316.291,624.663,316.291z\"/></g><g fill=\"#ffff\"><path d=\"M268.323,226.771h-41.551v39.685C230.996,246.516,247.442,230.811,268.323,226.771z\"/><path d=\"M226.771,286.726v39.688h41.551C247.442,322.371,230.996,306.67,226.771,286.726z\"/><path d=\"M331.122,266.455V226.77h-41.552C310.449,230.811,326.892,246.516,331.122,266.455z\"/></g></svg>";
882
+ var PLACEHOLDER_IMAGE_DATA_URI = "data:image/svg+xml,".concat(encodeURIComponent(PLACEHOLDER_SVG));
883
+ var isPlaceholderImg = function (url) {
884
+ return !!url && url.includes(PLACEHOLDER_INDICATOR);
885
+ };
880
886
  var ProductCardHorizontal = function (_a) {
881
887
  _a.id;
882
888
  var imageUrl = _a.imageUrl,
889
+ _b = _a.showProductImage,
890
+ showProductImage = _b === void 0 ? true : _b,
883
891
  url = _a.url,
884
892
  title = _a.title;
885
893
  _a.description;
886
894
  var price = _a.price,
887
895
  productId = _a.productId,
888
896
  button = _a.button,
889
- _b = _a.className,
890
- className = _b === void 0 ? "" : _b;
897
+ utm = _a.utm,
898
+ _c = _a.className,
899
+ className = _c === void 0 ? "" : _c,
900
+ style = _a.style,
901
+ code = _a.code,
902
+ showProductPrice = _a.showProductPrice;
891
903
  if (!title) {
892
904
  return null;
893
905
  }
906
+ console.log("Rendering ProductCardHorizontal with props:", {
907
+ showProductPrice: showProductPrice,
908
+ price: price
909
+ });
910
+ var hasPlaceholderImage = showProductImage && (!imageUrl || isPlaceholderImg(imageUrl));
911
+ var productImage = hasPlaceholderImage ? PLACEHOLDER_IMAGE_DATA_URI : imageUrl;
912
+ var href = !utm || url && url.indexOf("utm") > -1 ? url : url + "?utm_source=".concat(utm.utmSource, "&utm_medium=").concat(utm.utmMedium, "&utm_campaign=").concat(utm.utmCampaign);
894
913
  return /*#__PURE__*/React.createElement("a", {
895
- href: url,
896
- className: "".concat(styles$h.productCard, " ").concat(className),
914
+ href: href,
915
+ className: "".concat(styles$i.productCard, " ").concat(className),
897
916
  "aria-label": "View product: ".concat(title)
898
917
  }, /*#__PURE__*/React.createElement("div", {
899
- className: "".concat(styles$h.productWrapper, " ").concat(imageUrl ? styles$h.withImage : "")
900
- }, imageUrl && /*#__PURE__*/React.createElement("div", {
901
- className: styles$h.productImage
918
+ className: "".concat(styles$i.productWrapper, " ").concat(showProductImage ? hasPlaceholderImage ? styles$i.withPlaceholder : styles$i.withImage : ""),
919
+ style: style
920
+ }, showProductImage && /*#__PURE__*/React.createElement("div", {
921
+ className: styles$i.productImage
902
922
  }, /*#__PURE__*/React.createElement(Image, {
903
- src: imageUrl,
904
- alt: title
923
+ src: productImage || PLACEHOLDER_IMAGE_DATA_URI,
924
+ alt: title,
925
+ className: hasPlaceholderImage ? styles$i.placeholderImage : "",
926
+ objectFit: hasPlaceholderImage ? "contain" : "cover",
927
+ fallbackSrc: PLACEHOLDER_IMAGE_DATA_URI
905
928
  })), /*#__PURE__*/React.createElement("div", {
906
- className: styles$h.productTitleDescriptionWrapper
929
+ className: styles$i.productTitleDescriptionWrapper
907
930
  }, /*#__PURE__*/React.createElement("h3", {
908
- className: styles$h.productTitle
909
- }, title), productId && /*#__PURE__*/React.createElement("p", {
910
- className: styles$h.productId
911
- }, productId)), /*#__PURE__*/React.createElement("div", {
912
- className: styles$h.productPriceCtaWrapper
931
+ className: styles$i.productTitle
932
+ }, title), productId || code ? /*#__PURE__*/React.createElement("p", {
933
+ className: styles$i.productId
934
+ }, productId || code) : null), /*#__PURE__*/React.createElement("div", {
935
+ className: styles$i.productPriceCtaWrapper
913
936
  }, /*#__PURE__*/React.createElement("p", {
914
- className: styles$h.productPrice
915
- }, price || " "), button ? /*#__PURE__*/React.createElement(Button, {
916
- className: styles$h.productButton,
937
+ className: styles$i.productPrice
938
+ }, showProductPrice ? price || "" : ""), button ? /*#__PURE__*/React.createElement(Button, {
939
+ className: styles$i.productButton,
917
940
  onClick: button.onClick,
918
941
  size: "extra-small"
919
942
  }, button.label) : /*#__PURE__*/React.createElement(FontAwesomeIcon, {
920
943
  icon: faArrowUpRight,
921
- className: styles$h.productArrowIcon,
944
+ className: styles$i.productArrowIcon,
922
945
  "aria-hidden": "true"
923
946
  }))));
924
947
  };
925
948
  // Alias for backward compatibility
926
949
  var ProductCardHorizontalParts = ProductCardHorizontal;
927
950
 
928
- var styles$f = {"productDetails":"ProductCardDetails-module__productDetails___-sx2l","spareCard":"ProductCardDetails-module__spareCard___vC1Ju"};
951
+ var styles$g = {"productDetails":"ProductCardDetails-module__productDetails___-sx2l","spareCard":"ProductCardDetails-module__spareCard___vC1Ju"};
929
952
 
930
953
  // Adapter to map design system props to ProductCardHorizontalParts props
931
954
  var SpareCardAdapter = function (props) {
932
955
  var spare = props.spare,
933
956
  rest = __rest(props, ["spare"]);
934
957
  return /*#__PURE__*/React.createElement(ProductCardHorizontalParts, {
935
- className: styles$f.spareCard,
958
+ className: styles$g.spareCard,
936
959
  url: (spare === null || spare === void 0 ? void 0 : spare.url) || (spare === null || spare === void 0 ? void 0 : spare.link) || "#",
937
960
  title: (spare === null || spare === void 0 ? void 0 : spare.name) || (spare === null || spare === void 0 ? void 0 : spare.title) || "",
938
961
  description: (spare === null || spare === void 0 ? void 0 : spare.description) || "",
939
- price: (spare === null || spare === void 0 ? void 0 : spare.priceValue) || (spare === null || spare === void 0 ? void 0 : spare.price) || "",
940
- imageUrl: (spare === null || spare === void 0 ? void 0 : spare["img-product"]) || (spare === null || spare === void 0 ? void 0 : spare.image) || "",
962
+ price: (spare === null || spare === void 0 ? void 0 : spare.priceValue) || (spare === null || spare === void 0 ? void 0 : spare.price) || (props === null || props === void 0 ? void 0 : props.productPrice) || ""
963
+ // imageUrl={spare?.["img-product"] || spare?.image || ""}
964
+ ,
965
+ utm: props.utm,
966
+ showProductPrice: props.showProductPrice,
967
+ showProductImage: false,
941
968
  button: {
942
969
  label: rest.cta || "View Product",
943
970
  onClick: function () {
@@ -956,10 +983,14 @@ var ProductCardDetails = function (_a) {
956
983
  code = _a.code,
957
984
  facets = _a.facets,
958
985
  hit = _a.hit,
986
+ utm = _a.utm,
959
987
  _b = _a.className,
960
988
  className = _b === void 0 ? "" : _b,
961
989
  ProductCardComponent = _a.ProductCardComponent,
962
- hidespares = _a.hidespares;
990
+ hidespares = _a.hidespares,
991
+ showProductPrice = _a.showProductPrice,
992
+ _c = _a.showProductImage,
993
+ showProductImage = _c === void 0 ? true : _c;
963
994
  // Build the hit object expected by ProductDetailsCard
964
995
  var hitData = hit || {
965
996
  id: id,
@@ -970,22 +1001,140 @@ var ProductCardDetails = function (_a) {
970
1001
  image: imageUrl
971
1002
  };
972
1003
  return /*#__PURE__*/React.createElement("div", {
973
- className: styles$f.productDetails
1004
+ className: styles$g.productDetails
974
1005
  }, /*#__PURE__*/React.createElement(ProductDetailsCard, {
975
1006
  className: "".concat(className),
976
1007
  title: title,
977
- imageUrl: imageUrl,
1008
+ imageUrl: showProductImage ? imageUrl : "",
978
1009
  imageAlt: title,
979
1010
  hit: hitData,
1011
+ utm: utm,
980
1012
  facets: facets,
981
1013
  usePlainClasses: true,
982
1014
  ProductCardComponent: ProductCardComponent || SpareCardAdapter,
983
- hidespares: hidespares
1015
+ hidespares: hidespares,
1016
+ showProductPrice: showProductPrice,
1017
+ showProductImage: showProductImage
984
1018
  }));
985
1019
  };
986
1020
 
1021
+ var ContentCardBase = function (_a) {
1022
+ var title = _a.title,
1023
+ variant = _a.variant,
1024
+ url = _a.url,
1025
+ imageUrl = _a.imageUrl,
1026
+ category = _a.category,
1027
+ meta = _a.meta,
1028
+ excerpt = _a.excerpt,
1029
+ _b = _a.className,
1030
+ className = _b === void 0 ? "" : _b,
1031
+ style = _a.style,
1032
+ ariaLabel = _a.ariaLabel,
1033
+ contentMetaClassName = _a.contentMetaClassName,
1034
+ contentCategoryClassName = _a.contentCategoryClassName,
1035
+ contentMetaTextClassName = _a.contentMetaTextClassName,
1036
+ contentTitleClassName = _a.contentTitleClassName,
1037
+ contentExcerptClassName = _a.contentExcerptClassName;
1038
+ console.log("variant in ContentCardBase:", variant);
1039
+ var fallbackImage = "/assets/list-card.png";
1040
+ var isCareerView = variant === "career-view";
1041
+ var defaultAriaLabel = isCareerView ? "View career opportunity: ".concat(title) : "View content: ".concat(title);
1042
+ return /*#__PURE__*/React.createElement("a", {
1043
+ href: url,
1044
+ className: className,
1045
+ style: style,
1046
+ "aria-label": ariaLabel || defaultAriaLabel
1047
+ }, imageUrl && /*#__PURE__*/React.createElement("div", {
1048
+ className: "content-card-image-wrapper"
1049
+ }, /*#__PURE__*/React.createElement(Image, {
1050
+ src: imageUrl,
1051
+ alt: title,
1052
+ className: "content-card-image",
1053
+ aspectRatio: "16 / 9",
1054
+ loading: "lazy",
1055
+ decoding: "async",
1056
+ fallbackSrc: fallbackImage
1057
+ })), isCareerView ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("h3", {
1058
+ className: contentTitleClassName
1059
+ }, title), category && /*#__PURE__*/React.createElement("span", {
1060
+ className: contentCategoryClassName
1061
+ }, category), meta && /*#__PURE__*/React.createElement("span", {
1062
+ className: contentMetaTextClassName
1063
+ }, meta), /*#__PURE__*/React.createElement(Button, {
1064
+ "aria-label": ariaLabel || defaultAriaLabel,
1065
+ variant: "link-text-alt",
1066
+ className: "career-button"
1067
+ }, "See more")) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
1068
+ className: contentMetaClassName
1069
+ }, category && /*#__PURE__*/React.createElement("span", {
1070
+ className: contentCategoryClassName
1071
+ }, category), meta && /*#__PURE__*/React.createElement("span", {
1072
+ className: contentMetaTextClassName
1073
+ }, meta)), /*#__PURE__*/React.createElement("h3", {
1074
+ className: contentTitleClassName
1075
+ }, title), excerpt && /*#__PURE__*/React.createElement("p", {
1076
+ className: contentExcerptClassName
1077
+ }, excerpt), /*#__PURE__*/React.createElement(Button, {
1078
+ "aria-label": ariaLabel || defaultAriaLabel
1079
+ }, "Read More")));
1080
+ };
1081
+
1082
+ var styles$f = {"contentCard":"ContentCardVertical-module__contentCard___EoYej","contentCard--instant-view":"ContentCardVertical-module__contentCard--instant-view___dsIUf","contentCard--results-view":"ContentCardVertical-module__contentCard--results-view___6mSHQ","contentMeta":"ContentCardVertical-module__contentMeta___l2GtO","contentCategory":"ContentCardVertical-module__contentCategory___78vrj","contentMetaText":"ContentCardVertical-module__contentMetaText___Rl-ln","contentTitle":"ContentCardVertical-module__contentTitle___rEiHm","contentExcerpt":"ContentCardVertical-module__contentExcerpt___5Gb2G"};
1083
+
1084
+ var ContentCardVertical = function (_a) {
1085
+ var id = _a.id,
1086
+ title = _a.title,
1087
+ url = _a.url,
1088
+ imageUrl = _a.imageUrl,
1089
+ category = _a.category,
1090
+ meta = _a.meta,
1091
+ excerpt = _a.excerpt,
1092
+ _b = _a.className,
1093
+ className = _b === void 0 ? "" : _b,
1094
+ variant = _a.variant;
1095
+ var cardClasses = classNames(styles$f.contentCard, styles$f["contentCard--".concat(variant)], className);
1096
+ console.log("Rendering ContentCardVertical with variant:", variant);
1097
+ return /*#__PURE__*/React.createElement(ContentCardBase, {
1098
+ id: id,
1099
+ variant: variant,
1100
+ title: title,
1101
+ url: url,
1102
+ imageUrl: imageUrl,
1103
+ category: category,
1104
+ meta: meta,
1105
+ excerpt: excerpt,
1106
+ className: cardClasses,
1107
+ contentMetaClassName: styles$f.contentMeta,
1108
+ contentCategoryClassName: styles$f.contentCategory,
1109
+ contentMetaTextClassName: styles$f.contentMetaText,
1110
+ contentTitleClassName: styles$f.contentTitle,
1111
+ contentExcerptClassName: styles$f.contentExcerpt
1112
+ });
1113
+ };
1114
+
987
1115
  // Adapter component that maps props from AlgoliaDynamicSearchRaw to ProductCardHorizontal
988
1116
  // AlgoliaDynamicSearchRaw passes: title, cardLink, productPrice, cta, hit (original data)
1117
+ var cardAdapter = function (props) {
1118
+ var hit = props.hit,
1119
+ title = props.title,
1120
+ cardLink = props.cardLink,
1121
+ productPrice = props.productPrice;
1122
+ props.cta;
1123
+ var showProductPrice = props.showProductPrice,
1124
+ className = props.className,
1125
+ queryType = props.queryType;
1126
+ return /*#__PURE__*/React.createElement(ContentCardVertical, {
1127
+ id: (hit === null || hit === void 0 ? void 0 : hit.id) || "",
1128
+ variant: queryType && queryType === "careers" ? "career-view" : "content-view",
1129
+ title: title || (hit === null || hit === void 0 ? void 0 : hit.title) || "",
1130
+ url: cardLink || (hit === null || hit === void 0 ? void 0 : hit.link) || "#",
1131
+ imageUrl: (hit === null || hit === void 0 ? void 0 : hit.image) || "",
1132
+ category: (hit === null || hit === void 0 ? void 0 : hit.category) || "",
1133
+ meta: showProductPrice ? productPrice || (hit === null || hit === void 0 ? void 0 : hit.price) || "" : "",
1134
+ excerpt: (hit === null || hit === void 0 ? void 0 : hit.description) || "",
1135
+ className: className
1136
+ });
1137
+ };
989
1138
  var ProductCardAdapter = function (props) {
990
1139
  var hit = props.hit,
991
1140
  title = props.title,
@@ -993,19 +1142,22 @@ var ProductCardAdapter = function (props) {
993
1142
  productPrice = props.productPrice,
994
1143
  cta = props.cta,
995
1144
  showProductPrice = props.showProductPrice,
1145
+ showProductImage = props.showProductImage,
996
1146
  className = props.className,
997
- code = props.code;
998
- console.log(props);
1147
+ code = props.code,
1148
+ utm = props.utm;
999
1149
  // Get values from direct props or fallback to hit object
1000
1150
  var url = cardLink || (hit === null || hit === void 0 ? void 0 : hit.link) || "#";
1001
- var imageUrl = "";
1151
+ var imageUrl = (hit === null || hit === void 0 ? void 0 : hit.image) || "";
1002
1152
  var price = showProductPrice ? productPrice || (hit === null || hit === void 0 ? void 0 : hit.price) || "" : "";
1003
1153
  var productTitle = title || (hit === null || hit === void 0 ? void 0 : hit.title) || "";
1004
1154
  var productCode = code || (hit === null || hit === void 0 ? void 0 : hit.code) || "";
1005
1155
  var buttonLabel = cta || "View Product";
1006
1156
  return /*#__PURE__*/React.createElement(ProductCardHorizontalParts, {
1007
1157
  imageUrl: imageUrl,
1158
+ showProductImage: showProductImage,
1008
1159
  url: url,
1160
+ utm: utm,
1009
1161
  title: productTitle,
1010
1162
  description: productCode,
1011
1163
  price: price,
@@ -1015,7 +1167,12 @@ var ProductCardAdapter = function (props) {
1015
1167
  return window.open(url, "_blank");
1016
1168
  }
1017
1169
  },
1018
- className: className
1170
+ className: className,
1171
+ style: __assign({}, showProductImage ? {
1172
+ minHeight: "130px"
1173
+ } : {}),
1174
+ code: productCode,
1175
+ showProductPrice: showProductPrice
1019
1176
  });
1020
1177
  };
1021
1178
  var ProductCardDetailsAdapter = function (props) {
@@ -1024,9 +1181,11 @@ var ProductCardDetailsAdapter = function (props) {
1024
1181
  props.cardLink;
1025
1182
  var productPrice = props.productPrice;
1026
1183
  props.cta;
1027
- props.showProductPrice;
1028
- var className = props.className,
1184
+ var showProductPrice = props.showProductPrice,
1185
+ showProductImage = props.showProductImage,
1186
+ className = props.className,
1029
1187
  code = props.code,
1188
+ utm = props.utm,
1030
1189
  facets = props.facets,
1031
1190
  related_products = props.related_products,
1032
1191
  hidespares = props.hidespares;
@@ -1040,16 +1199,43 @@ var ProductCardDetailsAdapter = function (props) {
1040
1199
  price: (hit === null || hit === void 0 ? void 0 : hit.price) || "" || productPrice,
1041
1200
  code: (hit === null || hit === void 0 ? void 0 : hit.code) || "" || code,
1042
1201
  hit: hit,
1202
+ utm: utm,
1043
1203
  className: className,
1044
1204
  facets: facets,
1045
1205
  relatedProducts: (hit === null || hit === void 0 ? void 0 : hit.related_products) || related_products,
1046
- hidespares: hidespares
1206
+ hidespares: hidespares,
1207
+ showProductPrice: showProductPrice,
1208
+ showProductImage: showProductImage
1047
1209
  });
1048
1210
  };
1211
+ var ButtonAdapter = function (props) {
1212
+ var label = props.label,
1213
+ onClick = props.onClick,
1214
+ className = props.className;
1215
+ return /*#__PURE__*/React.createElement(Button, {
1216
+ className: className,
1217
+ onClick: onClick
1218
+ }, label);
1219
+ };
1049
1220
  var AlgoliaDynamicSearchLeybold = function (props) {
1221
+ var parentComponentProps = {
1222
+ queryType: props === null || props === void 0 ? void 0 : props.queryType,
1223
+ showProductPrice: props === null || props === void 0 ? void 0 : props.showProductPrice,
1224
+ showProductImage: props === null || props === void 0 ? void 0 : props.showProductImage,
1225
+ hitCta: props === null || props === void 0 ? void 0 : props.hitCta,
1226
+ hidespares: props === null || props === void 0 ? void 0 : props.hidespares
1227
+ };
1050
1228
  var innerComponents = {
1051
- ProductCard: ProductCardAdapter,
1052
- ProductDetailsCard: ProductCardDetailsAdapter
1229
+ Card: function (innerProps) {
1230
+ return cardAdapter(__assign(__assign({}, parentComponentProps), innerProps));
1231
+ },
1232
+ ProductCard: function (innerProps) {
1233
+ return ProductCardAdapter(__assign(__assign({}, parentComponentProps), innerProps));
1234
+ },
1235
+ ProductDetailsCard: function (innerProps) {
1236
+ return ProductCardDetailsAdapter(__assign(__assign({}, parentComponentProps), innerProps));
1237
+ },
1238
+ Button: ButtonAdapter
1053
1239
  };
1054
1240
  return /*#__PURE__*/React.createElement(AlgoliaDynamicSearchRaw, _extends({}, props, {
1055
1241
  innerComponents: innerComponents
@@ -1373,8 +1559,8 @@ var SearchBar = function (_a) {
1373
1559
  var styles$c = {"contentCard":"ContentCardHorizontal-module__contentCard___l-Kim","contentCard--instant-view":"ContentCardHorizontal-module__contentCard--instant-view___4wK9-","contentExcerpt":"ContentCardHorizontal-module__contentExcerpt___tqg1v","contentCard--results-view":"ContentCardHorizontal-module__contentCard--results-view___oBP2u","contentMeta":"ContentCardHorizontal-module__contentMeta___rEW-X","contentCategory":"ContentCardHorizontal-module__contentCategory___NssVD","contentMetaText":"ContentCardHorizontal-module__contentMetaText___muYBN","contentTitle":"ContentCardHorizontal-module__contentTitle___54gEo"};
1374
1560
 
1375
1561
  var ContentCardHorizontal = function (_a) {
1376
- _a.id;
1377
- var title = _a.title,
1562
+ var id = _a.id,
1563
+ title = _a.title,
1378
1564
  url = _a.url,
1379
1565
  category = _a.category,
1380
1566
  meta = _a.meta,
@@ -1384,21 +1570,20 @@ var ContentCardHorizontal = function (_a) {
1384
1570
  _c = _a.variant,
1385
1571
  variant = _c === void 0 ? "instant-view" : _c;
1386
1572
  var cardClasses = classNames(styles$c.contentCard, styles$c["contentCard--".concat(variant)], className);
1387
- return /*#__PURE__*/React.createElement("a", {
1388
- href: url,
1573
+ return /*#__PURE__*/React.createElement(ContentCardBase, {
1574
+ id: id,
1575
+ title: title,
1576
+ url: url,
1577
+ category: category,
1578
+ meta: meta,
1579
+ excerpt: excerpt,
1389
1580
  className: cardClasses,
1390
- "aria-label": "View content: ".concat(title)
1391
- }, /*#__PURE__*/React.createElement("div", {
1392
- className: styles$c.contentMeta
1393
- }, category && /*#__PURE__*/React.createElement("span", {
1394
- className: styles$c.contentCategory
1395
- }, category), meta && /*#__PURE__*/React.createElement("span", {
1396
- className: styles$c.contentMetaText
1397
- }, meta)), /*#__PURE__*/React.createElement("h3", {
1398
- className: styles$c.contentTitle
1399
- }, title), excerpt && /*#__PURE__*/React.createElement("p", {
1400
- className: styles$c.contentExcerpt
1401
- }, excerpt));
1581
+ contentMetaClassName: styles$c.contentMeta,
1582
+ contentCategoryClassName: styles$c.contentCategory,
1583
+ contentMetaTextClassName: styles$c.contentMetaText,
1584
+ contentTitleClassName: styles$c.contentTitle,
1585
+ contentExcerptClassName: styles$c.contentExcerpt
1586
+ });
1402
1587
  };
1403
1588
 
1404
1589
  var styles$b = {"instantResultsLayout":"InstantResults-module__instantResultsLayout___oy-o4","columnsGrid":"InstantResults-module__columnsGrid___bHRUM","resultsColumn":"InstantResults-module__resultsColumn___ZBSlT","columnHeader":"InstantResults-module__columnHeader___VYYhi","showingText":"InstantResults-module__showingText___lECiA","seeAllButton":"InstantResults-module__seeAllButton___xEDAX","chevronIcon":"InstantResults-module__chevronIcon___bjb3q","resultsList":"InstantResults-module__resultsList___7s3PT","divider":"InstantResults-module__divider___Ky6zK","loadingState":"InstantResults-module__loadingState___l0fMq","errorState":"InstantResults-module__errorState___hTBbE","spinner":"InstantResults-module__spinner___85jF-"};
@@ -2855,5 +3040,5 @@ var SearchTriggerButton = function (_a) {
2855
3040
  }, label));
2856
3041
  };
2857
3042
 
2858
- export { AlgoliaDynamicSearchLeybold as AlgoliaDynamicSearch, AlgoliaDynamicSearchLeybold, AppliedFilterTag, AppliedFilters, Button, ContentCardHorizontal, FederatedInstantResultsLayout, FederatedResultsView, FederatedSearchExperience, FilterAccordion, FilterItem, FilterSearch, FiltersPanel, Footer, FooterBottom, FooterLink, FooterLinkGroup, FooterSocialIcon, FooterSocialIcons, ModalCloseButton, Pagination, PaginationButton, PaginationEllipsis, PaginationItem, ProductCardHorizontal, ProductCardVertical, QrFormLeybold as QrForm, QrFormLeybold, ResultsColumn, ResultsCount, ResultsList, SearchBar, SearchIcon, SearchInput, SearchModal, SearchSubmitButton, SearchTriggerButton, SeeAllLinkButton };
3043
+ export { AlgoliaDynamicSearchLeybold as AlgoliaDynamicSearch, AlgoliaDynamicSearchLeybold, AppliedFilterTag, AppliedFilters, Button, ContentCardBase, ContentCardHorizontal, FederatedInstantResultsLayout, FederatedResultsView, FederatedSearchExperience, FilterAccordion, FilterItem, FilterSearch, FiltersPanel, Footer, FooterBottom, FooterLink, FooterLinkGroup, FooterSocialIcon, FooterSocialIcons, ModalCloseButton, Pagination, PaginationButton, PaginationEllipsis, PaginationItem, ProductCardHorizontal, ProductCardVertical, QrFormLeybold as QrForm, QrFormLeybold, ResultsColumn, ResultsCount, ResultsList, SearchBar, SearchIcon, SearchInput, SearchModal, SearchSubmitButton, SearchTriggerButton, SeeAllLinkButton };
2859
3044
  //# sourceMappingURL=index.esm.js.map