@getlupa/client 0.7.0-alpha-8 → 0.7.0-alpha-9

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.
@@ -16798,15 +16798,16 @@ var __vue_render__$z = function () {
16798
16798
  },
16799
16799
  [
16800
16800
  _c("span", { staticClass: "lupa-badge-title" }, [
16801
+ _vm.image ? _c("img", { attrs: { src: _vm.image } }) : _vm._e(),
16801
16802
  _vm.badge.titleText
16802
- ? _c("span", [_vm._v(" " + _vm._s(_vm.badge.titleText))])
16803
+ ? _c("span", [_vm._v("\n " + _vm._s(_vm.badge.titleText))])
16803
16804
  : _vm._e(),
16804
- _vm._v(" "),
16805
- _vm.image ? _c("img", { attrs: { src: _vm.image } }) : _vm._e(),
16806
- ]),
16807
- _c("span", { staticClass: "lupa-badge-full-text" }, [
16808
- _vm._v(_vm._s(_vm.badge.additionalText)),
16809
16805
  ]),
16806
+ _vm.badge.additionalText
16807
+ ? _c("span", { staticClass: "lupa-badge-full-text" }, [
16808
+ _vm._v(_vm._s(_vm.badge.additionalText)),
16809
+ ])
16810
+ : _vm._e(),
16810
16811
  ]
16811
16812
  )
16812
16813
  };
@@ -16842,60 +16843,16 @@ __vue_render__$z._withStripped = true;
16842
16843
  undefined
16843
16844
  );
16844
16845
 
16845
- const test = [
16846
- {
16847
- background_color: "#4b80eb",
16848
- head_text: "Įsigykite iš anksto!",
16849
- key: "17-25176-prod",
16850
- prod_color: "#ffffff",
16851
- text: "",
16852
- __typename: "Label",
16853
- },
16854
- {
16855
- background_color: "#88022A",
16856
- head_text: null,
16857
- key: "14-25176-prod",
16858
- prod_color: "#ffffff",
16859
- text: "Naujiena",
16860
- __typename: "Label",
16861
- },
16862
- {
16863
- background_color: "#C9247C",
16864
- head_text: "Top",
16865
- key: "15-25176-prod",
16866
- prod_color: "#ffffff",
16867
- text: "Top prekė",
16868
- __typename: "Label",
16869
- },
16870
- {
16871
- background_color: "#f8eaee",
16872
- head_text: null,
16873
- key: "19-25176-prod",
16874
- prod_color: "#730324",
16875
- text: "Su Pegaso kortele",
16876
- __typename: "Label",
16877
- },
16878
- {
16879
- background_color: "#F5A623",
16880
- head_text: "Greitai",
16881
- key: "18-25176-prod",
16882
- prod_color: "#ffffff",
16883
- text: "Pasirodys prekyboje",
16884
- __typename: "Label",
16885
- },
16886
- ];
16887
16846
  let SearchResultGeneratedBadges = class SearchResultGeneratedBadges extends Vue$1 {
16888
16847
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
16889
16848
  get badgeField() {
16890
- // return (
16891
- // (this.options.generate?.key &&
16892
- // this.options.product[this.options.generate?.key ?? ""] &&
16893
- // Array.isArray(
16894
- // this.options.product[this.options.generate?.key ?? ""]
16895
- // )) ??
16896
- // []
16897
- // );
16898
- return test;
16849
+ var _a, _b, _c, _d, _e, _f, _g;
16850
+ const fieldHasBadges = ((_a = this.options.generate) === null || _a === void 0 ? void 0 : _a.key) &&
16851
+ this.options.product[(_c = (_b = this.options.generate) === null || _b === void 0 ? void 0 : _b.key) !== null && _c !== void 0 ? _c : ""] &&
16852
+ Array.isArray(this.options.product[(_e = (_d = this.options.generate) === null || _d === void 0 ? void 0 : _d.key) !== null && _e !== void 0 ? _e : ""]);
16853
+ return fieldHasBadges
16854
+ ? this.options.product[(_g = (_f = this.options.generate) === null || _f === void 0 ? void 0 : _f.key) !== null && _g !== void 0 ? _g : ""]
16855
+ : [];
16899
16856
  }
16900
16857
  get keyMap() {
16901
16858
  var _a, _b;
@@ -16794,15 +16794,16 @@ var __vue_render__$z = function () {
16794
16794
  },
16795
16795
  [
16796
16796
  _c("span", { staticClass: "lupa-badge-title" }, [
16797
+ _vm.image ? _c("img", { attrs: { src: _vm.image } }) : _vm._e(),
16797
16798
  _vm.badge.titleText
16798
- ? _c("span", [_vm._v(" " + _vm._s(_vm.badge.titleText))])
16799
+ ? _c("span", [_vm._v("\n " + _vm._s(_vm.badge.titleText))])
16799
16800
  : _vm._e(),
16800
- _vm._v(" "),
16801
- _vm.image ? _c("img", { attrs: { src: _vm.image } }) : _vm._e(),
16802
- ]),
16803
- _c("span", { staticClass: "lupa-badge-full-text" }, [
16804
- _vm._v(_vm._s(_vm.badge.additionalText)),
16805
16801
  ]),
16802
+ _vm.badge.additionalText
16803
+ ? _c("span", { staticClass: "lupa-badge-full-text" }, [
16804
+ _vm._v(_vm._s(_vm.badge.additionalText)),
16805
+ ])
16806
+ : _vm._e(),
16806
16807
  ]
16807
16808
  )
16808
16809
  };
@@ -16838,60 +16839,16 @@ __vue_render__$z._withStripped = true;
16838
16839
  undefined
16839
16840
  );
16840
16841
 
16841
- const test = [
16842
- {
16843
- background_color: "#4b80eb",
16844
- head_text: "Įsigykite iš anksto!",
16845
- key: "17-25176-prod",
16846
- prod_color: "#ffffff",
16847
- text: "",
16848
- __typename: "Label",
16849
- },
16850
- {
16851
- background_color: "#88022A",
16852
- head_text: null,
16853
- key: "14-25176-prod",
16854
- prod_color: "#ffffff",
16855
- text: "Naujiena",
16856
- __typename: "Label",
16857
- },
16858
- {
16859
- background_color: "#C9247C",
16860
- head_text: "Top",
16861
- key: "15-25176-prod",
16862
- prod_color: "#ffffff",
16863
- text: "Top prekė",
16864
- __typename: "Label",
16865
- },
16866
- {
16867
- background_color: "#f8eaee",
16868
- head_text: null,
16869
- key: "19-25176-prod",
16870
- prod_color: "#730324",
16871
- text: "Su Pegaso kortele",
16872
- __typename: "Label",
16873
- },
16874
- {
16875
- background_color: "#F5A623",
16876
- head_text: "Greitai",
16877
- key: "18-25176-prod",
16878
- prod_color: "#ffffff",
16879
- text: "Pasirodys prekyboje",
16880
- __typename: "Label",
16881
- },
16882
- ];
16883
16842
  let SearchResultGeneratedBadges = class SearchResultGeneratedBadges extends Vue$1 {
16884
16843
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
16885
16844
  get badgeField() {
16886
- // return (
16887
- // (this.options.generate?.key &&
16888
- // this.options.product[this.options.generate?.key ?? ""] &&
16889
- // Array.isArray(
16890
- // this.options.product[this.options.generate?.key ?? ""]
16891
- // )) ??
16892
- // []
16893
- // );
16894
- return test;
16845
+ var _a, _b, _c, _d, _e, _f, _g;
16846
+ const fieldHasBadges = ((_a = this.options.generate) === null || _a === void 0 ? void 0 : _a.key) &&
16847
+ this.options.product[(_c = (_b = this.options.generate) === null || _b === void 0 ? void 0 : _b.key) !== null && _c !== void 0 ? _c : ""] &&
16848
+ Array.isArray(this.options.product[(_e = (_d = this.options.generate) === null || _d === void 0 ? void 0 : _d.key) !== null && _e !== void 0 ? _e : ""]);
16849
+ return fieldHasBadges
16850
+ ? this.options.product[(_g = (_f = this.options.generate) === null || _f === void 0 ? void 0 : _f.key) !== null && _g !== void 0 ? _g : ""]
16851
+ : [];
16895
16852
  }
16896
16853
  get keyMap() {
16897
16854
  var _a, _b;