@asantemedia-org/edwardsvacuum-design-system 1.6.29 → 1.6.30

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
@@ -453,27 +453,25 @@ var ProductDetailsCard = function (_a) {
453
453
  }) : hit[facet.name]);
454
454
  })))), /*#__PURE__*/React.createElement("div", {
455
455
  className: "cmp-card--type-product_details__spares-list"
456
- }, hit.spares && /*#__PURE__*/React.createElement(AccordionSection, {
456
+ }, hit.spares && hit.spares.length > 0 && /*#__PURE__*/React.createElement(AccordionSection, {
457
457
  title: "Spares & Parts",
458
458
  className: "folding-spares-holder"
459
459
  }, /*#__PURE__*/React.createElement("ul", {
460
460
  className: "folding-spares-list"
461
- }, hit.spares && hit.spares.map(function (spare, index) {
462
- var args = {
461
+ }, hit.spares.map(function (spare, index) {
462
+ return /*#__PURE__*/React.createElement("li", {
463
+ key: spare.objectID || spare.code || index
464
+ }, /*#__PURE__*/React.createElement(ProductCard, {
463
465
  cardStyle: "type-card-product",
464
466
  className: "cmp-card",
465
467
  title: spare.name,
466
- imageUrl: spare.image,
468
+ imageUrl: spare['img-product'] || spare.image,
467
469
  imageAlt: spare.name,
468
- onClick: function () {},
469
- productPrice: spare.price,
470
+ productPrice: spare.priceValue || spare.price,
470
471
  showProductPrice: false,
471
- cardLink: spare.link,
472
+ cardLink: spare.url || spare.link,
472
473
  cta: "Go to webshop"
473
- };
474
- return /*#__PURE__*/React.createElement("li", {
475
- key: index
476
- }, /*#__PURE__*/React.createElement(ProductCard, args));
474
+ }));
477
475
  })))));
478
476
  };
479
477