@getlupa/client 0.12.3 → 0.12.4

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.
@@ -35577,13 +35577,13 @@ let SearchResultsProductCard = class SearchResultsProductCard extends Vue$1 {
35577
35577
  }
35578
35578
  get elementGroups() {
35579
35579
  var _a;
35580
- return (_a = this.options.elements) === null || _a === void 0 ? void 0 : _a.map((e) => e.group).filter((g) => Boolean(g));
35580
+ return [
35581
+ ...new Set((_a = this.options.elements) === null || _a === void 0 ? void 0 : _a.map((e) => e.group).filter((g) => Boolean(g))),
35582
+ ];
35581
35583
  }
35582
35584
  getGroupElements(group) {
35583
35585
  var _a, _b;
35584
- return [
35585
- ...new Set((_b = (_a = this.options.elements) === null || _a === void 0 ? void 0 : _a.filter((e) => e.group === group)) !== null && _b !== void 0 ? _b : []),
35586
- ];
35586
+ return (_b = (_a = this.options.elements) === null || _a === void 0 ? void 0 : _a.filter((e) => e.group === group)) !== null && _b !== void 0 ? _b : [];
35587
35587
  }
35588
35588
  mounted() {
35589
35589
  this.checkIfIsInStock();
@@ -35573,13 +35573,13 @@ let SearchResultsProductCard = class SearchResultsProductCard extends Vue$1 {
35573
35573
  }
35574
35574
  get elementGroups() {
35575
35575
  var _a;
35576
- return (_a = this.options.elements) === null || _a === void 0 ? void 0 : _a.map((e) => e.group).filter((g) => Boolean(g));
35576
+ return [
35577
+ ...new Set((_a = this.options.elements) === null || _a === void 0 ? void 0 : _a.map((e) => e.group).filter((g) => Boolean(g))),
35578
+ ];
35577
35579
  }
35578
35580
  getGroupElements(group) {
35579
35581
  var _a, _b;
35580
- return [
35581
- ...new Set((_b = (_a = this.options.elements) === null || _a === void 0 ? void 0 : _a.filter((e) => e.group === group)) !== null && _b !== void 0 ? _b : []),
35582
- ];
35582
+ return (_b = (_a = this.options.elements) === null || _a === void 0 ? void 0 : _a.filter((e) => e.group === group)) !== null && _b !== void 0 ? _b : [];
35583
35583
  }
35584
35584
  mounted() {
35585
35585
  this.checkIfIsInStock();