@getlupa/vue 0.1.8 → 0.2.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.
@@ -1718,7 +1718,21 @@ const escapeHtml = (value) => {
1718
1718
  if (!value) {
1719
1719
  return "";
1720
1720
  }
1721
- return value.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#039;");
1721
+ let output = "";
1722
+ let isSkip = false;
1723
+ value.split(/(<del>.*?<\/del>)/g).forEach((segment) => {
1724
+ if (segment.startsWith("<del>") && segment.endsWith("</del>")) {
1725
+ output += segment;
1726
+ isSkip = true;
1727
+ }
1728
+ if (!isSkip) {
1729
+ output += segment.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#039;");
1730
+ }
1731
+ if (isSkip) {
1732
+ isSkip = false;
1733
+ }
1734
+ });
1735
+ return output;
1722
1736
  };
1723
1737
  const initAnalyticsTracking = (analyticsOptions) => {
1724
1738
  try {
@@ -3000,8 +3014,8 @@ const useSearchBoxStore = defineStore("searchBox", () => {
3000
3014
  });
3001
3015
  const _hoisted_1$12 = { id: "lupa-search-box-input-container" };
3002
3016
  const _hoisted_2$I = { class: "lupa-input-clear" };
3003
- const _hoisted_3$u = { id: "lupa-search-box-input" };
3004
- const _hoisted_4$n = ["value"];
3017
+ const _hoisted_3$v = { id: "lupa-search-box-input" };
3018
+ const _hoisted_4$o = ["value"];
3005
3019
  const _hoisted_5$c = ["placeholder"];
3006
3020
  const _hoisted_6$6 = {
3007
3021
  key: 0,
@@ -3091,12 +3105,12 @@ const _sfc_main$1a = /* @__PURE__ */ vue.defineComponent({
3091
3105
  onClick: clear
3092
3106
  }, null, 2)
3093
3107
  ]),
3094
- vue.createElementVNode("div", _hoisted_3$u, [
3108
+ vue.createElementVNode("div", _hoisted_3$v, [
3095
3109
  vue.createElementVNode("input", {
3096
3110
  class: "lupa-hint",
3097
3111
  value: showHint.value ? suggestedValue.value.item.suggestion : "",
3098
3112
  disabled: ""
3099
- }, null, 8, _hoisted_4$n),
3113
+ }, null, 8, _hoisted_4$o),
3100
3114
  vue.withDirectives(vue.createElementVNode("input", vue.mergeProps({
3101
3115
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
3102
3116
  }, inputAttributes.value, {
@@ -3258,12 +3272,12 @@ const _hoisted_2$G = {
3258
3272
  "data-cy": "lupa-suggestion-value",
3259
3273
  class: "lupa-suggestion-value"
3260
3274
  };
3261
- const _hoisted_3$t = {
3275
+ const _hoisted_3$u = {
3262
3276
  key: 2,
3263
3277
  class: "lupa-suggestion-facet",
3264
3278
  "data-cy": "lupa-suggestion-facet"
3265
3279
  };
3266
- const _hoisted_4$m = {
3280
+ const _hoisted_4$n = {
3267
3281
  class: "lupa-suggestion-facet-label",
3268
3282
  "data-cy": "lupa-suggestion-facet-label"
3269
3283
  };
@@ -3308,8 +3322,8 @@ const _sfc_main$16 = /* @__PURE__ */ vue.defineComponent({
3308
3322
  "data-cy": "lupa-suggestion-value",
3309
3323
  innerHTML: _ctx.suggestion.displayHighlight
3310
3324
  }, null, 8, _hoisted_1$$)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$G, vue.toDisplayString(_ctx.suggestion.display), 1)),
3311
- _ctx.suggestion.facet ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$t, [
3312
- vue.createElementVNode("span", _hoisted_4$m, vue.toDisplayString(facetLabel.value), 1),
3325
+ _ctx.suggestion.facet ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$u, [
3326
+ vue.createElementVNode("span", _hoisted_4$n, vue.toDisplayString(facetLabel.value), 1),
3313
3327
  vue.createElementVNode("span", _hoisted_5$b, vue.toDisplayString(_ctx.suggestion.facet.title), 1)
3314
3328
  ])) : vue.createCommentVNode("", true)
3315
3329
  ]);
@@ -3710,8 +3724,8 @@ const _sfc_main$_ = /* @__PURE__ */ vue.defineComponent({
3710
3724
  });
3711
3725
  const _hoisted_1$U = ["innerHTML"];
3712
3726
  const _hoisted_2$D = { key: 0 };
3713
- const _hoisted_3$s = { key: 1 };
3714
- const _hoisted_4$l = { class: "lupa-search-box-custom-label" };
3727
+ const _hoisted_3$t = { key: 1 };
3728
+ const _hoisted_4$m = { class: "lupa-search-box-custom-label" };
3715
3729
  const _hoisted_5$a = { class: "lupa-search-box-custom-text" };
3716
3730
  const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
3717
3731
  __name: "SearchBoxProductCustom",
@@ -3743,8 +3757,8 @@ const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
3743
3757
  key: 1,
3744
3758
  class: [className.value, "lupa-search-box-product-custom"]
3745
3759
  }, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
3746
- !label.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$D, vue.toDisplayString(text.value), 1)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$s, [
3747
- vue.createElementVNode("div", _hoisted_4$l, vue.toDisplayString(label.value), 1),
3760
+ !label.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$D, vue.toDisplayString(text.value), 1)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$t, [
3761
+ vue.createElementVNode("div", _hoisted_4$m, vue.toDisplayString(label.value), 1),
3748
3762
  vue.createElementVNode("div", _hoisted_5$a, vue.toDisplayString(text.value), 1)
3749
3763
  ]))
3750
3764
  ], 16));
@@ -3969,7 +3983,7 @@ const useSearchResultStore = defineStore("searchResult", () => {
3969
3983
  });
3970
3984
  const _hoisted_1$S = { class: "lupa-search-box-add-to-cart-wrapper" };
3971
3985
  const _hoisted_2$C = { class: "lupa-search-box-product-addtocart" };
3972
- const _hoisted_3$r = ["onClick", "disabled"];
3986
+ const _hoisted_3$s = ["onClick", "disabled"];
3973
3987
  const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
3974
3988
  __name: "SearchBoxProductAddToCart",
3975
3989
  props: {
@@ -4005,7 +4019,7 @@ const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
4005
4019
  "data-cy": "lupa-add-to-cart",
4006
4020
  type: "button",
4007
4021
  disabled: !inStockValue.value || loading.value
4008
- }, vue.toDisplayString(label.value), 11, _hoisted_3$r)
4022
+ }, vue.toDisplayString(label.value), 11, _hoisted_3$s)
4009
4023
  ])
4010
4024
  ]);
4011
4025
  };
@@ -4139,8 +4153,8 @@ const useTrackingStore = defineStore("tracking", () => {
4139
4153
  });
4140
4154
  const _hoisted_1$R = ["href"];
4141
4155
  const _hoisted_2$B = { class: "lupa-search-box-product-image-section" };
4142
- const _hoisted_3$q = { class: "lupa-search-box-product-details-section" };
4143
- const _hoisted_4$k = {
4156
+ const _hoisted_3$r = { class: "lupa-search-box-product-details-section" };
4157
+ const _hoisted_4$l = {
4144
4158
  key: 0,
4145
4159
  class: "lupa-search-box-product-add-to-cart-section"
4146
4160
  };
@@ -4249,7 +4263,7 @@ const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
4249
4263
  }, null, 8, ["item", "element", "labels", "link"]);
4250
4264
  }), 128))
4251
4265
  ]),
4252
- vue.createElementVNode("div", _hoisted_3$q, [
4266
+ vue.createElementVNode("div", _hoisted_3$r, [
4253
4267
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(detailElements.value, (element) => {
4254
4268
  return vue.openBlock(), vue.createBlock(_sfc_main$W, {
4255
4269
  class: "lupa-search-box-product-element",
@@ -4261,7 +4275,7 @@ const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
4261
4275
  }, null, 8, ["item", "element", "labels", "link"]);
4262
4276
  }), 128))
4263
4277
  ]),
4264
- addToCartElement.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$k, [
4278
+ addToCartElement.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$l, [
4265
4279
  vue.createVNode(_sfc_main$W, {
4266
4280
  class: "lupa-search-box-product-element",
4267
4281
  item: _ctx.item,
@@ -4400,8 +4414,8 @@ const _hoisted_2$A = {
4400
4414
  class: "lupa-main-panel",
4401
4415
  "data-cy": "lupa-main-panel"
4402
4416
  };
4403
- const _hoisted_3$p = ["data-cy"];
4404
- const _hoisted_4$j = {
4417
+ const _hoisted_3$q = ["data-cy"];
4418
+ const _hoisted_4$k = {
4405
4419
  key: 1,
4406
4420
  id: "lupa-search-box-panel"
4407
4421
  };
@@ -4555,7 +4569,7 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadVa
4555
4569
  key: "0"
4556
4570
  } : void 0
4557
4571
  ]), 1064, ["panel", "options", "debounce", "inputValue", "labels"])) : vue.createCommentVNode("", true)
4558
- ], 10, _hoisted_3$p);
4572
+ ], 10, _hoisted_3$q);
4559
4573
  }), 128))
4560
4574
  ]),
4561
4575
  vue.createVNode(_sfc_main$19, {
@@ -4563,7 +4577,7 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadVa
4563
4577
  showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
4564
4578
  onGoToResults: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("go-to-results"))
4565
4579
  }, null, 8, ["labels", "showTotalCount"])
4566
- ])) : displayHistory.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$j, [
4580
+ ])) : displayHistory.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$k, [
4567
4581
  vue.createVNode(_sfc_main$17, {
4568
4582
  options: _ctx.options.history,
4569
4583
  history: history.value,
@@ -4947,11 +4961,11 @@ const _hoisted_2$y = {
4947
4961
  key: 0,
4948
4962
  "data-cy": "suggested-search-text-label"
4949
4963
  };
4950
- const _hoisted_3$o = {
4964
+ const _hoisted_3$p = {
4951
4965
  key: 1,
4952
4966
  "data-cy": "did-you-mean-label"
4953
4967
  };
4954
- const _hoisted_4$i = { key: 1 };
4968
+ const _hoisted_4$j = { key: 1 };
4955
4969
  const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
4956
4970
  __name: "SearchResultsDidYouMean",
4957
4971
  props: {
@@ -4994,7 +5008,7 @@ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
4994
5008
  ]);
4995
5009
  }), 128))
4996
5010
  ])) : vue.createCommentVNode("", true),
4997
- didYouMeanValue.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$o, [
5011
+ didYouMeanValue.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$p, [
4998
5012
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.labels.didYouMean.split(" "), (label, index) => {
4999
5013
  return vue.openBlock(), vue.createElementBlock("span", { key: index }, [
5000
5014
  label.includes("{1}") ? (vue.openBlock(), vue.createElementBlock("span", {
@@ -5002,7 +5016,7 @@ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
5002
5016
  class: "lupa-did-you-mean lupa-highlighted-search-text",
5003
5017
  "data-cy": "did-you-mean-value",
5004
5018
  onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
5005
- }, vue.toDisplayString(didYouMeanValue.value) + " ", 1)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$i, vue.toDisplayString(label) + " ", 1))
5019
+ }, vue.toDisplayString(didYouMeanValue.value) + " ", 1)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$j, vue.toDisplayString(label) + " ", 1))
5006
5020
  ]);
5007
5021
  }), 128))
5008
5022
  ])) : vue.createCommentVNode("", true)
@@ -5048,11 +5062,11 @@ const _hoisted_1$L = {
5048
5062
  "data-cy": "lupa-result-page-title"
5049
5063
  };
5050
5064
  const _hoisted_2$w = { key: 0 };
5051
- const _hoisted_3$n = {
5065
+ const _hoisted_3$o = {
5052
5066
  key: 1,
5053
5067
  class: "lupa-results-total-count"
5054
5068
  };
5055
- const _hoisted_4$h = ["innerHTML"];
5069
+ const _hoisted_4$i = ["innerHTML"];
5056
5070
  const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
5057
5071
  __name: "SearchResultsTitle",
5058
5072
  props: {
@@ -5091,7 +5105,7 @@ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
5091
5105
  showSearchTitle.value ? (vue.openBlock(), vue.createElementBlock("h1", _hoisted_1$L, [
5092
5106
  vue.createTextVNode(vue.toDisplayString(_ctx.options.labels.searchResults), 1),
5093
5107
  queryText.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$w, "'" + vue.toDisplayString(queryText.value) + "'", 1)) : vue.createCommentVNode("", true),
5094
- showProductCount.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$n, "(" + vue.toDisplayString(vue.unref(totalItems)) + ")", 1)) : vue.createCommentVNode("", true)
5108
+ showProductCount.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$o, "(" + vue.toDisplayString(vue.unref(totalItems)) + ")", 1)) : vue.createCommentVNode("", true)
5095
5109
  ])) : vue.createCommentVNode("", true),
5096
5110
  _ctx.showSummary ? (vue.openBlock(), vue.createBlock(_sfc_main$P, {
5097
5111
  key: 1,
@@ -5101,7 +5115,7 @@ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
5101
5115
  key: 2,
5102
5116
  class: "lupa-result-page-description-top",
5103
5117
  innerHTML: descriptionTop.value
5104
- }, null, 8, _hoisted_4$h)) : vue.createCommentVNode("", true)
5118
+ }, null, 8, _hoisted_4$i)) : vue.createCommentVNode("", true)
5105
5119
  ]);
5106
5120
  };
5107
5121
  }
@@ -5111,7 +5125,7 @@ const _hoisted_2$v = {
5111
5125
  class: "lupa-current-filter-label",
5112
5126
  "data-cy": "lupa-current-filter-label"
5113
5127
  };
5114
- const _hoisted_3$m = {
5128
+ const _hoisted_3$n = {
5115
5129
  class: "lupa-current-filter-value",
5116
5130
  "data-cy": "lupa-current-filter-value"
5117
5131
  };
@@ -5133,7 +5147,7 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
5133
5147
  onClick: handleClick
5134
5148
  }, "⨉"),
5135
5149
  vue.createElementVNode("div", _hoisted_2$v, vue.toDisplayString(_ctx.filter.label) + ": ", 1),
5136
- vue.createElementVNode("div", _hoisted_3$m, vue.toDisplayString(_ctx.filter.value), 1)
5150
+ vue.createElementVNode("div", _hoisted_3$n, vue.toDisplayString(_ctx.filter.value), 1)
5137
5151
  ]);
5138
5152
  };
5139
5153
  }
@@ -5143,11 +5157,11 @@ const _hoisted_2$u = {
5143
5157
  key: 0,
5144
5158
  class: "lupa-filter-count"
5145
5159
  };
5146
- const _hoisted_3$l = {
5160
+ const _hoisted_3$m = {
5147
5161
  key: 0,
5148
5162
  class: "filter-values"
5149
5163
  };
5150
- const _hoisted_4$g = { class: "lupa-current-filter-list" };
5164
+ const _hoisted_4$h = { class: "lupa-current-filter-list" };
5151
5165
  const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
5152
5166
  __name: "CurrentFilters",
5153
5167
  props: {
@@ -5212,8 +5226,8 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
5212
5226
  class: vue.normalizeClass(["lupa-filter-title-caret", isOpen.value && "open"])
5213
5227
  }, null, 2)) : vue.createCommentVNode("", true)
5214
5228
  ]),
5215
- !_ctx.expandable || isOpen.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$l, [
5216
- vue.createElementVNode("div", _hoisted_4$g, [
5229
+ !_ctx.expandable || isOpen.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$m, [
5230
+ vue.createElementVNode("div", _hoisted_4$h, [
5217
5231
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(displayFilters), (filter) => {
5218
5232
  return vue.openBlock(), vue.createBlock(_sfc_main$N, {
5219
5233
  key: filter.key + "_" + filter.value,
@@ -5280,8 +5294,8 @@ const _hoisted_1$H = {
5280
5294
  "data-cy": "lupa-category-filter"
5281
5295
  };
5282
5296
  const _hoisted_2$t = { class: "lupa-category-back" };
5283
- const _hoisted_3$k = ["href"];
5284
- const _hoisted_4$f = ["href"];
5297
+ const _hoisted_3$l = ["href"];
5298
+ const _hoisted_4$g = ["href"];
5285
5299
  const _hoisted_5$9 = { class: "lupa-child-category-list" };
5286
5300
  const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
5287
5301
  __name: "CategoryFilter",
@@ -5376,7 +5390,7 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
5376
5390
  "data-cy": "lupa-category-back",
5377
5391
  href: backUrlLink.value,
5378
5392
  onClick: handleNavigationBack
5379
- }, vue.toDisplayString(backTitle.value), 9, _hoisted_3$k)) : vue.createCommentVNode("", true)
5393
+ }, vue.toDisplayString(backTitle.value), 9, _hoisted_3$l)) : vue.createCommentVNode("", true)
5380
5394
  ]),
5381
5395
  vue.createElementVNode("div", {
5382
5396
  class: vue.normalizeClass(["lupa-current-category", { "lupa-current-category-active": isActive }])
@@ -5386,7 +5400,7 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
5386
5400
  href: parentUrlLink.value,
5387
5401
  class: vue.normalizeClass({ "lupa-title-category": !hasBackButton.value }),
5388
5402
  onClick: handleNavigationParent
5389
- }, vue.toDisplayString(parentTitle.value), 11, _hoisted_4$f)
5403
+ }, vue.toDisplayString(parentTitle.value), 11, _hoisted_4$g)
5390
5404
  ], 2),
5391
5405
  vue.createElementVNode("div", _hoisted_5$9, [
5392
5406
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(categoryChildren.value, (child) => {
@@ -5406,12 +5420,12 @@ const _hoisted_1$G = {
5406
5420
  "data-cy": "lupa-search-result-facet-term-values"
5407
5421
  };
5408
5422
  const _hoisted_2$s = ["placeholder"];
5409
- const _hoisted_3$j = { class: "lupa-terms-list" };
5410
- const _hoisted_4$e = ["onClick"];
5423
+ const _hoisted_3$k = { class: "lupa-terms-list" };
5424
+ const _hoisted_4$f = ["onClick"];
5411
5425
  const _hoisted_5$8 = { class: "lupa-term-checkbox-wrapper" };
5412
5426
  const _hoisted_6$5 = { class: "lupa-term-checkbox-label" };
5413
5427
  const _hoisted_7$5 = { class: "lupa-term-label" };
5414
- const _hoisted_8$2 = {
5428
+ const _hoisted_8$1 = {
5415
5429
  key: 0,
5416
5430
  class: "lupa-term-count"
5417
5431
  };
@@ -5496,7 +5510,7 @@ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
5496
5510
  }, null, 8, _hoisted_2$s)), [
5497
5511
  [vue.vModelText, termFilter.value]
5498
5512
  ]) : vue.createCommentVNode("", true),
5499
- vue.createElementVNode("div", _hoisted_3$j, [
5513
+ vue.createElementVNode("div", _hoisted_3$k, [
5500
5514
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(displayValues.value, (item) => {
5501
5515
  return vue.openBlock(), vue.createElementBlock("div", {
5502
5516
  class: vue.normalizeClass(["lupa-facet-term", { checked: isChecked(item) }]),
@@ -5511,9 +5525,9 @@ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
5511
5525
  ]),
5512
5526
  vue.createElementVNode("div", _hoisted_6$5, [
5513
5527
  vue.createElementVNode("span", _hoisted_7$5, vue.toDisplayString(item.title), 1),
5514
- _ctx.options.showDocumentCount ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_8$2, "(" + vue.toDisplayString(item.count) + ")", 1)) : vue.createCommentVNode("", true)
5528
+ _ctx.options.showDocumentCount ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_8$1, "(" + vue.toDisplayString(item.count) + ")", 1)) : vue.createCommentVNode("", true)
5515
5529
  ])
5516
- ], 10, _hoisted_4$e);
5530
+ ], 10, _hoisted_4$f);
5517
5531
  }), 128))
5518
5532
  ]),
5519
5533
  displayShowMore.value ? (vue.openBlock(), vue.createElementBlock("div", {
@@ -6509,18 +6523,18 @@ const _hoisted_2$r = {
6509
6523
  key: 0,
6510
6524
  class: "lupa-stats-facet-summary"
6511
6525
  };
6512
- const _hoisted_3$i = {
6526
+ const _hoisted_3$j = {
6513
6527
  key: 1,
6514
6528
  class: "lupa-stats-facet-summary-input"
6515
6529
  };
6516
- const _hoisted_4$d = {
6530
+ const _hoisted_4$e = {
6517
6531
  key: 0,
6518
6532
  class: "lupa-stats-range-label"
6519
6533
  };
6520
6534
  const _hoisted_5$7 = { class: "lupa-stats-from" };
6521
6535
  const _hoisted_6$4 = ["max", "min", "pattern"];
6522
6536
  const _hoisted_7$4 = { key: 0 };
6523
- const _hoisted_8$1 = /* @__PURE__ */ vue.createElementVNode("div", { class: "lupa-stats-separator" }, null, -1);
6537
+ const _hoisted_8 = /* @__PURE__ */ vue.createElementVNode("div", { class: "lupa-stats-separator" }, null, -1);
6524
6538
  const _hoisted_9 = {
6525
6539
  key: 0,
6526
6540
  class: "lupa-stats-range-label"
@@ -6681,9 +6695,9 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
6681
6695
  };
6682
6696
  return (_ctx, _cache) => {
6683
6697
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$F, [
6684
- !isInputVisible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$r, vue.toDisplayString(statsSummary.value), 1)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$i, [
6698
+ !isInputVisible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$r, vue.toDisplayString(statsSummary.value), 1)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$j, [
6685
6699
  vue.createElementVNode("div", null, [
6686
- rangeLabelFrom.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$d, vue.toDisplayString(rangeLabelFrom.value), 1)) : vue.createCommentVNode("", true),
6700
+ rangeLabelFrom.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$e, vue.toDisplayString(rangeLabelFrom.value), 1)) : vue.createCommentVNode("", true),
6687
6701
  vue.createElementVNode("div", _hoisted_5$7, [
6688
6702
  vue.withDirectives(vue.createElementVNode("input", {
6689
6703
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
@@ -6703,7 +6717,7 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
6703
6717
  isPrice.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_7$4, vue.toDisplayString(currency.value), 1)) : vue.createCommentVNode("", true)
6704
6718
  ])
6705
6719
  ]),
6706
- _hoisted_8$1,
6720
+ _hoisted_8,
6707
6721
  vue.createElementVNode("div", null, [
6708
6722
  rangeLabelTo.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_9, vue.toDisplayString(rangeLabelTo.value), 1)) : vue.createCommentVNode("", true),
6709
6723
  vue.createElementVNode("div", _hoisted_10, [
@@ -6746,8 +6760,8 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
6746
6760
  });
6747
6761
  const _hoisted_1$E = { class: "lupa-term-checkbox-wrapper" };
6748
6762
  const _hoisted_2$q = { class: "lupa-term-checkbox-label" };
6749
- const _hoisted_3$h = { class: "lupa-term-label" };
6750
- const _hoisted_4$c = {
6763
+ const _hoisted_3$i = { class: "lupa-term-label" };
6764
+ const _hoisted_4$d = {
6751
6765
  key: 0,
6752
6766
  class: "lupa-term-count"
6753
6767
  };
@@ -6807,8 +6821,8 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
6807
6821
  }, null, 2)
6808
6822
  ]),
6809
6823
  vue.createElementVNode("div", _hoisted_2$q, [
6810
- vue.createElementVNode("span", _hoisted_3$h, vue.toDisplayString(_ctx.item.title) + vue.toDisplayString(" "), 1),
6811
- _ctx.options.showDocumentCount ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$c, "(" + vue.toDisplayString(_ctx.item.count) + ")", 1)) : vue.createCommentVNode("", true)
6824
+ vue.createElementVNode("span", _hoisted_3$i, vue.toDisplayString(_ctx.item.title) + vue.toDisplayString(" "), 1),
6825
+ _ctx.options.showDocumentCount ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$d, "(" + vue.toDisplayString(_ctx.item.count) + ")", 1)) : vue.createCommentVNode("", true)
6812
6826
  ])
6813
6827
  ]),
6814
6828
  showChildren.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$6, [
@@ -6832,7 +6846,7 @@ const _hoisted_1$D = {
6832
6846
  "data-cy": "lupa-search-result-facet-term-values"
6833
6847
  };
6834
6848
  const _hoisted_2$p = { key: 0 };
6835
- const _hoisted_3$g = ["placeholder"];
6849
+ const _hoisted_3$h = ["placeholder"];
6836
6850
  const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
6837
6851
  __name: "HierarchyFacet",
6838
6852
  props: {
@@ -6890,7 +6904,7 @@ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
6890
6904
  "data-cy": "lupa-term-filter",
6891
6905
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
6892
6906
  placeholder: _ctx.options.labels.facetFilter
6893
- }, null, 8, _hoisted_3$g), [
6907
+ }, null, 8, _hoisted_3$h), [
6894
6908
  [vue.vModelText, termFilter.value]
6895
6909
  ])
6896
6910
  ])) : vue.createCommentVNode("", true),
@@ -7243,8 +7257,8 @@ const _hoisted_1$y = {
7243
7257
  class: "lupa-mobile-filter-sidebar"
7244
7258
  };
7245
7259
  const _hoisted_2$m = ["onClick"];
7246
- const _hoisted_3$f = { class: "lupa-mobile-sidebar-content" };
7247
- const _hoisted_4$b = { class: "lupa-sidebar-top" };
7260
+ const _hoisted_3$g = { class: "lupa-mobile-sidebar-content" };
7261
+ const _hoisted_4$c = { class: "lupa-sidebar-top" };
7248
7262
  const _hoisted_5$5 = { class: "lupa-sidebar-title" };
7249
7263
  const _hoisted_6$3 = {
7250
7264
  key: 0,
@@ -7282,8 +7296,8 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
7282
7296
  class: "lupa-sidebar-close",
7283
7297
  onClick: vue.withModifiers(handleMobileToggle, ["stop"])
7284
7298
  }, null, 8, _hoisted_2$m),
7285
- vue.createElementVNode("div", _hoisted_3$f, [
7286
- vue.createElementVNode("div", _hoisted_4$b, [
7299
+ vue.createElementVNode("div", _hoisted_3$g, [
7300
+ vue.createElementVNode("div", _hoisted_4$c, [
7287
7301
  vue.createElementVNode("div", _hoisted_5$5, [
7288
7302
  vue.createTextVNode(vue.toDisplayString(sidebarTitle.value) + " ", 1),
7289
7303
  isFilterCountVisible.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_6$3, vue.toDisplayString(vue.unref(currentFilterCount)), 1)) : vue.createCommentVNode("", true)
@@ -7306,11 +7320,11 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
7306
7320
  });
7307
7321
  const _hoisted_1$x = { id: "lupa-search-results-breadcrumbs" };
7308
7322
  const _hoisted_2$l = ["href", "onClick"];
7309
- const _hoisted_3$e = {
7323
+ const _hoisted_3$f = {
7310
7324
  key: 1,
7311
7325
  class: "lupa-search-results-breadcrumb-text"
7312
7326
  };
7313
- const _hoisted_4$a = { key: 2 };
7327
+ const _hoisted_4$b = { key: 2 };
7314
7328
  const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
7315
7329
  __name: "SearchResultsBreadcrumbs",
7316
7330
  props: {
@@ -7350,8 +7364,8 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
7350
7364
  var _a;
7351
7365
  return handleNavigation(e, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
7352
7366
  }
7353
- }, vue.toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$l)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$e, vue.toDisplayString(getLabel(breadcrumb.label)), 1)),
7354
- index < breadcrumbsValue.value.length - 1 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$a, " / ")) : vue.createCommentVNode("", true)
7367
+ }, vue.toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$l)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$f, vue.toDisplayString(getLabel(breadcrumb.label)), 1)),
7368
+ index < breadcrumbsValue.value.length - 1 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$b, " / ")) : vue.createCommentVNode("", true)
7355
7369
  ]);
7356
7370
  }), 128))
7357
7371
  ]);
@@ -7451,8 +7465,8 @@ const _hoisted_2$k = {
7451
7465
  key: 0,
7452
7466
  class: "lupa-page-number-separator"
7453
7467
  };
7454
- const _hoisted_3$d = ["onClick"];
7455
- const _hoisted_4$9 = {
7468
+ const _hoisted_3$e = ["onClick"];
7469
+ const _hoisted_4$a = {
7456
7470
  key: 0,
7457
7471
  class: "lupa-page-number-separator"
7458
7472
  };
@@ -7540,10 +7554,10 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
7540
7554
  page === _ctx.options.selectedPage ? "lupa-page-number-selected" : ""
7541
7555
  ]),
7542
7556
  "data-cy": "lupa-page-number"
7543
- }, vue.toDisplayString(page), 11, _hoisted_3$d);
7557
+ }, vue.toDisplayString(page), 11, _hoisted_3$e);
7544
7558
  }), 128)),
7545
7559
  showLastPage.value ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
7546
- showLastPageSeparator.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$9, "...")) : vue.createCommentVNode("", true),
7560
+ showLastPageSeparator.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$a, "...")) : vue.createCommentVNode("", true),
7547
7561
  vue.createElementVNode("div", {
7548
7562
  class: "lupa-page-number lupa-page-number-last",
7549
7563
  onClick: _cache[2] || (_cache[2] = () => {
@@ -7567,7 +7581,7 @@ const _hoisted_1$s = {
7567
7581
  "data-cy": "lupa-search-results-page-size"
7568
7582
  };
7569
7583
  const _hoisted_2$j = { id: "lupa-select" };
7570
- const _hoisted_3$c = { class: "lupa-select-label" };
7584
+ const _hoisted_3$d = { class: "lupa-select-label" };
7571
7585
  const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
7572
7586
  __name: "SearchResultsPageSize",
7573
7587
  props: {
@@ -7587,7 +7601,7 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
7587
7601
  return (_ctx, _cache) => {
7588
7602
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$s, [
7589
7603
  vue.createElementVNode("div", _hoisted_2$j, [
7590
- vue.createElementVNode("label", _hoisted_3$c, vue.toDisplayString(_ctx.label), 1),
7604
+ vue.createElementVNode("label", _hoisted_3$d, vue.toDisplayString(_ctx.label), 1),
7591
7605
  vue.createElementVNode("select", {
7592
7606
  class: "lupa-select-dropdown",
7593
7607
  "data-cy": "lupa-page-size-select-dropdown",
@@ -7609,8 +7623,8 @@ const _hoisted_1$r = {
7609
7623
  class: "lupa-search-results-sort"
7610
7624
  };
7611
7625
  const _hoisted_2$i = { id: "lupa-select" };
7612
- const _hoisted_3$b = { class: "lupa-select-label" };
7613
- const _hoisted_4$8 = ["value"];
7626
+ const _hoisted_3$c = { class: "lupa-select-label" };
7627
+ const _hoisted_4$9 = ["value"];
7614
7628
  const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
7615
7629
  __name: "SearchResultsSort",
7616
7630
  props: {
@@ -7655,7 +7669,7 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
7655
7669
  return (_ctx, _cache) => {
7656
7670
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$r, [
7657
7671
  vue.createElementVNode("div", _hoisted_2$i, [
7658
- vue.createElementVNode("label", _hoisted_3$b, vue.toDisplayString(_ctx.options.label), 1),
7672
+ vue.createElementVNode("label", _hoisted_3$c, vue.toDisplayString(_ctx.options.label), 1),
7659
7673
  vue.withDirectives(vue.createElementVNode("select", {
7660
7674
  class: "lupa-select-dropdown",
7661
7675
  "data-cy": "lupa-sort-select-dropdown",
@@ -7667,7 +7681,7 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
7667
7681
  return vue.openBlock(), vue.createElementBlock("option", {
7668
7682
  key: option.key,
7669
7683
  value: option.key
7670
- }, vue.toDisplayString(option.label), 9, _hoisted_4$8);
7684
+ }, vue.toDisplayString(option.label), 9, _hoisted_4$9);
7671
7685
  }), 128))
7672
7686
  ], 544), [
7673
7687
  [vue.vModelSelect, selectedKey.value]
@@ -7679,8 +7693,8 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
7679
7693
  });
7680
7694
  const _hoisted_1$q = { class: "lupa-toolbar-left" };
7681
7695
  const _hoisted_2$h = { key: 1 };
7682
- const _hoisted_3$a = { key: 3 };
7683
- const _hoisted_4$7 = { key: 5 };
7696
+ const _hoisted_3$b = { key: 3 };
7697
+ const _hoisted_4$8 = { key: 5 };
7684
7698
  const _hoisted_5$4 = { class: "lupa-toolbar-right" };
7685
7699
  const _hoisted_6$2 = { key: 1 };
7686
7700
  const _hoisted_7$2 = { key: 3 };
@@ -7788,13 +7802,13 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
7788
7802
  label: searchSummaryLabel.value,
7789
7803
  clearable: vue.unref(hasAnyFilter) && showFilterClear.value,
7790
7804
  onClear: handleClearAll
7791
- }, null, 8, ["label", "clearable"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$a)),
7805
+ }, null, 8, ["label", "clearable"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$b)),
7792
7806
  displayPageSelect.value ? (vue.openBlock(), vue.createBlock(_sfc_main$w, {
7793
7807
  key: 4,
7794
7808
  options: paginationOptions.value.pageSelect,
7795
7809
  "last-page-label": paginationOptions.value.labels.showMore,
7796
7810
  "first-page-label": paginationOptions.value.labels.showLess
7797
- }, null, 8, ["options", "last-page-label", "first-page-label"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$7))
7811
+ }, null, 8, ["options", "last-page-label", "first-page-label"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$8))
7798
7812
  ]),
7799
7813
  vue.createElementVNode("div", _hoisted_5$4, [
7800
7814
  vue.createVNode(_sfc_main$x, {
@@ -7815,8 +7829,60 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
7815
7829
  };
7816
7830
  }
7817
7831
  });
7818
- const _hoisted_1$p = { class: "lupa-generated-badges" };
7832
+ const _hoisted_1$p = { class: "lupa-badge-title" };
7833
+ const _hoisted_2$g = ["src"];
7834
+ const _hoisted_3$a = { key: 1 };
7835
+ const _hoisted_4$7 = {
7836
+ key: 0,
7837
+ class: "lupa-badge-full-text"
7838
+ };
7819
7839
  const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
7840
+ __name: "SearchResultGeneratedBadge",
7841
+ props: {
7842
+ options: {},
7843
+ badge: {}
7844
+ },
7845
+ setup(__props) {
7846
+ const props = __props;
7847
+ const image = vue.computed(() => {
7848
+ var _a, _b, _c;
7849
+ return (_c = (_b = (_a = props.options.generate) == null ? void 0 : _a.image) == null ? void 0 : _b.call(_a, props.badge)) != null ? _c : "";
7850
+ });
7851
+ const showTitle = vue.computed(() => {
7852
+ var _a, _b, _c;
7853
+ return (_c = (_b = (_a = props.options.generate) == null ? void 0 : _a.showTitle) == null ? void 0 : _b.call(_a, props.badge)) != null ? _c : true;
7854
+ });
7855
+ const hasAdditionalText = vue.computed(() => {
7856
+ var _a, _b;
7857
+ return Boolean((_a = props.badge) == null ? void 0 : _a.additionalText) && typeof ((_b = props.badge) == null ? void 0 : _b.additionalText) === "string";
7858
+ });
7859
+ const hasTitleText = vue.computed(() => {
7860
+ var _a, _b;
7861
+ return Boolean((_a = props.badge) == null ? void 0 : _a.titleText) && typeof ((_b = props.badge) == null ? void 0 : _b.titleText) === "string";
7862
+ });
7863
+ const customClassName = vue.computed(() => {
7864
+ var _a, _b, _c;
7865
+ return (_c = (_b = (_a = props.options.generate) == null ? void 0 : _a.customClass) == null ? void 0 : _b.call(_a, props.badge)) != null ? _c : "";
7866
+ });
7867
+ return (_ctx, _cache) => {
7868
+ return vue.openBlock(), vue.createElementBlock("div", {
7869
+ class: vue.normalizeClass(["lupa-dynamic-badge", customClassName.value]),
7870
+ style: vue.normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
7871
+ }, [
7872
+ vue.createElementVNode("span", _hoisted_1$p, [
7873
+ image.value ? (vue.openBlock(), vue.createElementBlock("img", {
7874
+ key: 0,
7875
+ src: image.value
7876
+ }, null, 8, _hoisted_2$g)) : vue.createCommentVNode("", true),
7877
+ hasTitleText.value && showTitle.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$a, vue.toDisplayString(_ctx.badge.titleText), 1)) : vue.createCommentVNode("", true)
7878
+ ]),
7879
+ hasAdditionalText.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$7, vue.toDisplayString(_ctx.badge.additionalText), 1)) : vue.createCommentVNode("", true)
7880
+ ], 6);
7881
+ };
7882
+ }
7883
+ });
7884
+ const _hoisted_1$o = { class: "lupa-generated-badges" };
7885
+ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
7820
7886
  __name: "SearchResultGeneratedBadges",
7821
7887
  props: {
7822
7888
  options: {}
@@ -7842,10 +7908,9 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
7842
7908
  })).filter((b) => Boolean(b.id));
7843
7909
  });
7844
7910
  return (_ctx, _cache) => {
7845
- const _component_SearchResultGeneratedBadge = vue.resolveComponent("SearchResultGeneratedBadge");
7846
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$p, [
7911
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$o, [
7847
7912
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(badges.value, (badge) => {
7848
- return vue.openBlock(), vue.createBlock(_component_SearchResultGeneratedBadge, {
7913
+ return vue.openBlock(), vue.createBlock(_sfc_main$s, {
7849
7914
  key: badge.id,
7850
7915
  badge,
7851
7916
  options: _ctx.options
@@ -7855,8 +7920,8 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
7855
7920
  };
7856
7921
  }
7857
7922
  });
7858
- const _hoisted_1$o = ["innerHTML"];
7859
- const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
7923
+ const _hoisted_1$n = ["innerHTML"];
7924
+ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
7860
7925
  __name: "CustomBadge",
7861
7926
  props: {
7862
7927
  badge: {}
@@ -7875,12 +7940,12 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
7875
7940
  return vue.openBlock(), vue.createElementBlock("div", {
7876
7941
  class: vue.normalizeClass(className.value),
7877
7942
  innerHTML: text.value
7878
- }, null, 10, _hoisted_1$o);
7943
+ }, null, 10, _hoisted_1$n);
7879
7944
  };
7880
7945
  }
7881
7946
  });
7882
- const _hoisted_1$n = { class: "lupa-text-badges" };
7883
- const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
7947
+ const _hoisted_1$m = { class: "lupa-text-badges" };
7948
+ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
7884
7949
  __name: "TextBadge",
7885
7950
  props: {
7886
7951
  badge: {}
@@ -7895,7 +7960,7 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
7895
7960
  return badges.value.slice(0, props.badge.maxItems);
7896
7961
  });
7897
7962
  return (_ctx, _cache) => {
7898
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$n, [
7963
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$m, [
7899
7964
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(displayBadges.value, (item) => {
7900
7965
  return vue.openBlock(), vue.createElementBlock("div", {
7901
7966
  class: "lupa-badge lupa-text-badge",
@@ -7906,9 +7971,9 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
7906
7971
  };
7907
7972
  }
7908
7973
  });
7909
- const _hoisted_1$m = { class: "lupa-image-badges" };
7910
- const _hoisted_2$g = ["src"];
7911
- const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
7974
+ const _hoisted_1$l = { class: "lupa-image-badges" };
7975
+ const _hoisted_2$f = ["src"];
7976
+ const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
7912
7977
  __name: "ImageBadge",
7913
7978
  props: {
7914
7979
  badge: {}
@@ -7928,7 +7993,7 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
7928
7993
  return `${props.badge.rootImageUrl}${src}`;
7929
7994
  };
7930
7995
  return (_ctx, _cache) => {
7931
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$m, [
7996
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$l, [
7932
7997
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(displayBadges.value, (item) => {
7933
7998
  return vue.openBlock(), vue.createElementBlock("div", {
7934
7999
  class: "lupa-badge lupa-image-badge",
@@ -7936,22 +8001,22 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
7936
8001
  }, [
7937
8002
  vue.createElementVNode("img", {
7938
8003
  src: getImageUrl(item)
7939
- }, null, 8, _hoisted_2$g)
8004
+ }, null, 8, _hoisted_2$f)
7940
8005
  ]);
7941
8006
  }), 128))
7942
8007
  ]);
7943
8008
  };
7944
8009
  }
7945
8010
  });
7946
- const _hoisted_1$l = { id: "lupa-search-results-badges" };
8011
+ const _hoisted_1$k = { id: "lupa-search-results-badges" };
7947
8012
  const __default__$1 = {
7948
8013
  components: {
7949
- CustomBadge: _sfc_main$r,
7950
- TextBadge: _sfc_main$q,
7951
- ImageBadge: _sfc_main$p
8014
+ CustomBadge: _sfc_main$q,
8015
+ TextBadge: _sfc_main$p,
8016
+ ImageBadge: _sfc_main$o
7952
8017
  }
7953
8018
  };
7954
- const _sfc_main$o = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, __default__$1), {
8019
+ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, __default__$1), {
7955
8020
  __name: "SearchResultsBadgeWrapper",
7956
8021
  props: {
7957
8022
  position: {},
@@ -7997,7 +8062,7 @@ const _sfc_main$o = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadVa
7997
8062
  }
7998
8063
  };
7999
8064
  return (_ctx, _cache) => {
8000
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$l, [
8065
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$k, [
8001
8066
  vue.createElementVNode("div", {
8002
8067
  id: "lupa-badges",
8003
8068
  class: vue.normalizeClass(anchorPosition.value)
@@ -8008,7 +8073,7 @@ const _sfc_main$o = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadVa
8008
8073
  badge
8009
8074
  }, null, 8, ["badge"]);
8010
8075
  }), 128)),
8011
- _ctx.position === "card" ? (vue.openBlock(), vue.createBlock(_sfc_main$s, {
8076
+ positionValue.value === "card" ? (vue.openBlock(), vue.createBlock(_sfc_main$r, {
8012
8077
  key: 0,
8013
8078
  options: _ctx.options
8014
8079
  }, null, 8, ["options"])) : vue.createCommentVNode("", true)
@@ -8017,7 +8082,7 @@ const _sfc_main$o = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadVa
8017
8082
  };
8018
8083
  }
8019
8084
  }));
8020
- const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
8085
+ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
8021
8086
  __name: "SearchResultsProductImage",
8022
8087
  props: {
8023
8088
  item: {},
@@ -8034,14 +8099,14 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
8034
8099
  };
8035
8100
  }
8036
8101
  });
8037
- const _hoisted_1$k = ["innerHTML"];
8038
- const _hoisted_2$f = ["title"];
8102
+ const _hoisted_1$j = ["innerHTML"];
8103
+ const _hoisted_2$e = ["title"];
8039
8104
  const _hoisted_3$9 = {
8040
8105
  key: 0,
8041
8106
  class: "lupa-search-results-product-title-text"
8042
8107
  };
8043
8108
  const _hoisted_4$6 = ["href"];
8044
- const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
8109
+ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
8045
8110
  __name: "SearchResultsProductTitle",
8046
8111
  props: {
8047
8112
  item: {},
@@ -8074,7 +8139,7 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
8074
8139
  class: "lupa-search-results-product-title",
8075
8140
  style: vue.normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
8076
8141
  innerHTML: title.value
8077
- }, null, 12, _hoisted_1$k)) : (vue.openBlock(), vue.createElementBlock("div", {
8142
+ }, null, 12, _hoisted_1$j)) : (vue.openBlock(), vue.createElementBlock("div", {
8078
8143
  key: 1,
8079
8144
  class: "lupa-search-results-product-title",
8080
8145
  style: vue.normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
@@ -8087,12 +8152,12 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
8087
8152
  class: "lupa-search-results-product-title-text lupa-title-link",
8088
8153
  onClick: handleNavigation
8089
8154
  }, vue.toDisplayString(title.value), 9, _hoisted_4$6)) : vue.createCommentVNode("", true)
8090
- ], 12, _hoisted_2$f));
8155
+ ], 12, _hoisted_2$e));
8091
8156
  };
8092
8157
  }
8093
8158
  });
8094
- const _hoisted_1$j = ["innerHTML"];
8095
- const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
8159
+ const _hoisted_1$i = ["innerHTML"];
8160
+ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
8096
8161
  __name: "SearchResultsProductDescription",
8097
8162
  props: {
8098
8163
  item: {},
@@ -8116,7 +8181,7 @@ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
8116
8181
  class: "lupa-search-results-product-description",
8117
8182
  style: vue.normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
8118
8183
  innerHTML: description.value
8119
- }, null, 12, _hoisted_1$j)) : (vue.openBlock(), vue.createElementBlock("div", {
8184
+ }, null, 12, _hoisted_1$i)) : (vue.openBlock(), vue.createElementBlock("div", {
8120
8185
  key: 1,
8121
8186
  class: "lupa-search-results-product-description",
8122
8187
  style: vue.normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
@@ -8124,15 +8189,15 @@ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
8124
8189
  };
8125
8190
  }
8126
8191
  });
8127
- const _hoisted_1$i = { id: "lupa-search-results-rating" };
8128
- const _hoisted_2$e = { class: "lupa-ratings" };
8192
+ const _hoisted_1$h = { id: "lupa-search-results-rating" };
8193
+ const _hoisted_2$d = { class: "lupa-ratings" };
8129
8194
  const _hoisted_3$8 = { class: "lupa-ratings-base" };
8130
8195
  const _hoisted_4$5 = ["innerHTML"];
8131
8196
  const _hoisted_5$3 = { class: "lupa-rating-wrapper" };
8132
8197
  const _hoisted_6$1 = ["innerHTML"];
8133
8198
  const _hoisted_7$1 = ["href"];
8134
8199
  const STAR_COUNT = 5;
8135
- const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
8200
+ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
8136
8201
  __name: "SearchResultsProductRating",
8137
8202
  props: {
8138
8203
  item: {},
@@ -8163,8 +8228,8 @@ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
8163
8228
  return generateLink(props.options.links.ratingDetails, props.item);
8164
8229
  });
8165
8230
  return (_ctx, _cache) => {
8166
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$i, [
8167
- vue.createElementVNode("div", _hoisted_2$e, [
8231
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$h, [
8232
+ vue.createElementVNode("div", _hoisted_2$d, [
8168
8233
  vue.createElementVNode("div", _hoisted_3$8, [
8169
8234
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(baseStars.value, (star, index) => {
8170
8235
  return vue.openBlock(), vue.createElementBlock("div", {
@@ -8197,11 +8262,11 @@ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
8197
8262
  };
8198
8263
  }
8199
8264
  });
8200
- const _hoisted_1$h = {
8265
+ const _hoisted_1$g = {
8201
8266
  class: "lupa-search-results-product-regular-price",
8202
8267
  "data-cy": "lupa-search-results-product-regular-price"
8203
8268
  };
8204
- const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
8269
+ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
8205
8270
  __name: "SearchResultsProductRegularPrice",
8206
8271
  props: {
8207
8272
  item: {},
@@ -8219,15 +8284,15 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
8219
8284
  );
8220
8285
  });
8221
8286
  return (_ctx, _cache) => {
8222
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$h, vue.toDisplayString(price.value), 1);
8287
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$g, vue.toDisplayString(price.value), 1);
8223
8288
  };
8224
8289
  }
8225
8290
  });
8226
- const _hoisted_1$g = {
8291
+ const _hoisted_1$f = {
8227
8292
  class: "lupa-search-results-product-price",
8228
8293
  "data-cy": "lupa-search-results-product-price"
8229
8294
  };
8230
- const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
8295
+ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
8231
8296
  __name: "SearchResultsProductPrice",
8232
8297
  props: {
8233
8298
  item: {},
@@ -8245,16 +8310,16 @@ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
8245
8310
  );
8246
8311
  });
8247
8312
  return (_ctx, _cache) => {
8248
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$g, [
8313
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$f, [
8249
8314
  vue.createElementVNode("strong", null, vue.toDisplayString(price.value), 1)
8250
8315
  ]);
8251
8316
  };
8252
8317
  }
8253
8318
  });
8254
- const _hoisted_1$f = { class: "lupa-search-results-add-to-cart-wrapper" };
8255
- const _hoisted_2$d = { class: "lupa-search-results-product-addtocart" };
8319
+ const _hoisted_1$e = { class: "lupa-search-results-add-to-cart-wrapper" };
8320
+ const _hoisted_2$c = { class: "lupa-search-results-product-addtocart" };
8256
8321
  const _hoisted_3$7 = ["onClick", "disabled"];
8257
- const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
8322
+ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
8258
8323
  __name: "SearchResultsProductAddToCart",
8259
8324
  props: {
8260
8325
  item: {},
@@ -8281,8 +8346,8 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
8281
8346
  loading.value = false;
8282
8347
  });
8283
8348
  return (_ctx, _cache) => {
8284
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$f, [
8285
- vue.createElementVNode("div", _hoisted_2$d, [
8349
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$e, [
8350
+ vue.createElementVNode("div", _hoisted_2$c, [
8286
8351
  vue.createElementVNode("button", {
8287
8352
  onClick: vue.withModifiers(handleClick, ["stop"]),
8288
8353
  class: vue.normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
@@ -8294,12 +8359,12 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
8294
8359
  };
8295
8360
  }
8296
8361
  });
8297
- const _hoisted_1$e = ["innerHTML"];
8298
- const _hoisted_2$c = { key: 0 };
8362
+ const _hoisted_1$d = ["innerHTML"];
8363
+ const _hoisted_2$b = { key: 0 };
8299
8364
  const _hoisted_3$6 = { key: 1 };
8300
8365
  const _hoisted_4$4 = { class: "lupa-search-box-custom-label" };
8301
8366
  const _hoisted_5$2 = { class: "lupa-search-box-custom-text" };
8302
- const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
8367
+ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
8303
8368
  __name: "SearchResultsProductCustom",
8304
8369
  props: {
8305
8370
  item: {},
@@ -8337,11 +8402,11 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
8337
8402
  key: 0,
8338
8403
  class: className.value,
8339
8404
  innerHTML: text.value
8340
- }, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$e)) : (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
8405
+ }, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$d)) : (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
8341
8406
  key: 1,
8342
8407
  class: className.value
8343
8408
  }, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
8344
- !label.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$c, vue.toDisplayString(text.value), 1)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$6, [
8409
+ !label.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$b, vue.toDisplayString(text.value), 1)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$6, [
8345
8410
  vue.createElementVNode("div", _hoisted_4$4, vue.toDisplayString(label.value), 1),
8346
8411
  vue.createElementVNode("div", _hoisted_5$2, vue.toDisplayString(text.value), 1)
8347
8412
  ]))
@@ -8349,8 +8414,8 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
8349
8414
  };
8350
8415
  }
8351
8416
  });
8352
- const _hoisted_1$d = ["innerHTML"];
8353
- const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
8417
+ const _hoisted_1$c = ["innerHTML"];
8418
+ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
8354
8419
  __name: "SearchResultsProductCustomHtmlElement",
8355
8420
  props: {
8356
8421
  item: {},
@@ -8374,15 +8439,15 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
8374
8439
  return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
8375
8440
  class: className.value,
8376
8441
  innerHTML: text.value
8377
- }, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$d);
8442
+ }, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$c);
8378
8443
  };
8379
8444
  }
8380
8445
  });
8381
- const _hoisted_1$c = { id: "lupa-search-results-rating" };
8382
- const _hoisted_2$b = ["innerHTML"];
8446
+ const _hoisted_1$b = { id: "lupa-search-results-rating" };
8447
+ const _hoisted_2$a = ["innerHTML"];
8383
8448
  const _hoisted_3$5 = { class: "lupa-ratings" };
8384
8449
  const _hoisted_4$3 = ["href"];
8385
- const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
8450
+ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
8386
8451
  __name: "SearchResultsProductSingleStarRating",
8387
8452
  props: {
8388
8453
  item: {},
@@ -8410,11 +8475,11 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
8410
8475
  return RATING_STAR_HTML;
8411
8476
  });
8412
8477
  return (_ctx, _cache) => {
8413
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$c, [
8478
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$b, [
8414
8479
  vue.createElementVNode("div", {
8415
8480
  innerHTML: star.value,
8416
8481
  class: "lupa-rating lupa-rating-highlighted"
8417
- }, null, 8, _hoisted_2$b),
8482
+ }, null, 8, _hoisted_2$a),
8418
8483
  vue.createElementVNode("div", _hoisted_3$5, vue.toDisplayString(rating.value), 1),
8419
8484
  vue.createElementVNode("a", {
8420
8485
  href: ratingLink.value,
@@ -8426,19 +8491,19 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
8426
8491
  });
8427
8492
  const __default__ = {
8428
8493
  components: {
8429
- SearchResultsProductImage: _sfc_main$n,
8430
- SearchResultsProductTitle: _sfc_main$m,
8431
- SearchResultsProductDescription: _sfc_main$l,
8432
- SearchResultsProductRating: _sfc_main$k,
8433
- SearchResultsProductRegularPrice: _sfc_main$j,
8434
- SearchResultsProductPrice: _sfc_main$i,
8435
- SearchResultsProductAddToCart: _sfc_main$h,
8436
- SearchResultsProductCustom: _sfc_main$g,
8437
- SearchResultsProductCustomHtmlElement: _sfc_main$f,
8438
- SearchResultsProductSingleStarRating: _sfc_main$e
8439
- }
8440
- };
8441
- const _sfc_main$d = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, __default__), {
8494
+ SearchResultsProductImage: _sfc_main$m,
8495
+ SearchResultsProductTitle: _sfc_main$l,
8496
+ SearchResultsProductDescription: _sfc_main$k,
8497
+ SearchResultsProductRating: _sfc_main$j,
8498
+ SearchResultsProductRegularPrice: _sfc_main$i,
8499
+ SearchResultsProductPrice: _sfc_main$h,
8500
+ SearchResultsProductAddToCart: _sfc_main$g,
8501
+ SearchResultsProductCustom: _sfc_main$f,
8502
+ SearchResultsProductCustomHtmlElement: _sfc_main$e,
8503
+ SearchResultsProductSingleStarRating: _sfc_main$d
8504
+ }
8505
+ };
8506
+ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, __default__), {
8442
8507
  __name: "SearchResultsProductCardElement",
8443
8508
  props: {
8444
8509
  item: {},
@@ -8508,13 +8573,13 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadVa
8508
8573
  };
8509
8574
  }
8510
8575
  }));
8511
- const _hoisted_1$b = ["href"];
8512
- const _hoisted_2$a = {
8576
+ const _hoisted_1$a = ["href"];
8577
+ const _hoisted_2$9 = {
8513
8578
  key: 0,
8514
8579
  class: "lupa-out-of-stock"
8515
8580
  };
8516
8581
  const _hoisted_3$4 = { class: "lupa-search-result-product-details-section" };
8517
- const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
8582
+ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
8518
8583
  __name: "SearchResultsProductCard",
8519
8584
  props: {
8520
8585
  product: {},
@@ -8659,7 +8724,7 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
8659
8724
  class: vue.normalizeClass(["lupa-search-result-product-card", !isInStock.value ? "lupa-out-of-stock" : ""]),
8660
8725
  onClick: handleClick
8661
8726
  }, [
8662
- vue.createVNode(_sfc_main$o, { options: badgesOptions.value }, null, 8, ["options"]),
8727
+ vue.createVNode(_sfc_main$n, { options: badgesOptions.value }, null, 8, ["options"]),
8663
8728
  vue.createElementVNode("div", {
8664
8729
  class: vue.normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
8665
8730
  }, [
@@ -8669,7 +8734,7 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
8669
8734
  onClick: handleNavigation
8670
8735
  }, [
8671
8736
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(imageElements.value, (element) => {
8672
- return vue.openBlock(), vue.createBlock(_sfc_main$d, {
8737
+ return vue.openBlock(), vue.createBlock(_sfc_main$c, {
8673
8738
  class: "lupa-search-results-product-element",
8674
8739
  item: _ctx.product,
8675
8740
  element,
@@ -8679,16 +8744,16 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
8679
8744
  link: link.value
8680
8745
  }, null, 8, ["item", "element", "labels", "inStock", "link"]);
8681
8746
  }), 128)),
8682
- vue.createVNode(_sfc_main$o, {
8747
+ vue.createVNode(_sfc_main$n, {
8683
8748
  options: badgesOptions.value,
8684
8749
  position: "image",
8685
8750
  class: "lupa-image-badges"
8686
8751
  }, null, 8, ["options"]),
8687
- ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$a, vue.toDisplayString(labels.value.outOfStock), 1)) : vue.createCommentVNode("", true)
8688
- ], 8, _hoisted_1$b),
8752
+ ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$9, vue.toDisplayString(labels.value.outOfStock), 1)) : vue.createCommentVNode("", true)
8753
+ ], 8, _hoisted_1$a),
8689
8754
  vue.createElementVNode("div", _hoisted_3$4, [
8690
8755
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(detailElements.value, (element) => {
8691
- return vue.openBlock(), vue.createBlock(_sfc_main$d, {
8756
+ return vue.openBlock(), vue.createBlock(_sfc_main$c, {
8692
8757
  class: "lupa-search-results-product-element",
8693
8758
  item: _ctx.product,
8694
8759
  element,
@@ -8706,7 +8771,7 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
8706
8771
  class: vue.normalizeClass("lupa-element-group-" + group)
8707
8772
  }, [
8708
8773
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(getGroupElements(group), (element) => {
8709
- return vue.openBlock(), vue.createBlock(_sfc_main$d, {
8774
+ return vue.openBlock(), vue.createBlock(_sfc_main$c, {
8710
8775
  class: "lupa-search-results-product-element",
8711
8776
  item: _ctx.product,
8712
8777
  element,
@@ -8724,42 +8789,6 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
8724
8789
  };
8725
8790
  }
8726
8791
  });
8727
- const _hoisted_1$a = { id: "lupa-similar-query-text-component" };
8728
- const _hoisted_2$9 = ["data-cy"];
8729
- const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
8730
- __name: "SimilarQueryText",
8731
- props: {
8732
- similarQuery: {},
8733
- label: {}
8734
- },
8735
- setup(__props) {
8736
- const props = __props;
8737
- const searchResultStore = useSearchResultStore();
8738
- const { searchResult } = storeToRefs(searchResultStore);
8739
- const searchText = vue.computed(() => searchResult.value.searchText);
8740
- const count = vue.computed(() => {
8741
- return props.similarQuery.count;
8742
- });
8743
- const insertValue = (text, query) => {
8744
- return text.includes("{1}") ? addParamsToLabel(text, query).split(" ") : text.split(" ");
8745
- };
8746
- const getStyle = (text) => {
8747
- return !props.similarQuery.query.includes(text) ? "lupa-similar-query-crossed" : "";
8748
- };
8749
- return (_ctx, _cache) => {
8750
- return vue.openBlock(), vue.createElementBlock("span", _hoisted_1$a, [
8751
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(insertValue(_ctx.label, searchText.value), (text, index) => {
8752
- return vue.openBlock(), vue.createElementBlock("span", {
8753
- key: index,
8754
- class: vue.normalizeClass(getStyle(text)),
8755
- "data-cy": getStyle(text)
8756
- }, vue.toDisplayString(text) + " ", 11, _hoisted_2$9);
8757
- }), 128)),
8758
- vue.createTextVNode("(" + vue.toDisplayString(count.value) + ") ", 1)
8759
- ]);
8760
- };
8761
- }
8762
- });
8763
8792
  const _hoisted_1$9 = {
8764
8793
  id: "lupa-search-results-similar-queries",
8765
8794
  "data-cy": "lupa-search-results-similar-queries"
@@ -8770,10 +8799,9 @@ const _hoisted_3$3 = {
8770
8799
  "data-cy": "lupa-similar-query-label"
8771
8800
  };
8772
8801
  const _hoisted_4$2 = ["onClick"];
8773
- const _hoisted_5$1 = { key: 1 };
8774
- const _hoisted_6 = { key: 1 };
8775
- const _hoisted_7 = { class: "lupa-similar-query-value" };
8776
- const _hoisted_8 = {
8802
+ const _hoisted_5$1 = ["innerHTML"];
8803
+ const _hoisted_6 = { key: 0 };
8804
+ const _hoisted_7 = {
8777
8805
  class: "lupa-products",
8778
8806
  "data-cy": "lupa-products"
8779
8807
  };
@@ -8793,6 +8821,13 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
8793
8821
  const getDocumentKey = (index, product) => {
8794
8822
  return getProductKey(`${index}`, product, props.productCardOptions.idKey);
8795
8823
  };
8824
+ const similarQueryLabel = vue.computed(() => {
8825
+ var _a, _b;
8826
+ return (_b = (_a = props.labels.similarQuery) == null ? void 0 : _a.replace("{1}", "")) != null ? _b : "";
8827
+ });
8828
+ const getSimilarQueryContent = (displayQuery) => {
8829
+ return escapeHtml(displayQuery);
8830
+ };
8796
8831
  const goToResults = ({
8797
8832
  searchText,
8798
8833
  facet
@@ -8805,27 +8840,22 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
8805
8840
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(similarQueries.value, (similarQuery, index) => {
8806
8841
  return vue.openBlock(), vue.createElementBlock("div", { key: index }, [
8807
8842
  vue.createElementVNode("div", _hoisted_3$3, [
8808
- !similarQuery.aiSuggestions ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 0 }, vue.renderList(_ctx.labels.similarQuery.split(" "), (label, index2) => {
8809
- return vue.openBlock(), vue.createElementBlock("span", { key: index2 }, [
8810
- label.includes("{1}") ? (vue.openBlock(), vue.createElementBlock("span", {
8811
- key: 0,
8812
- onClick: ($event) => goToResults({ searchText: similarQuery.query }),
8813
- class: "lupa-similar-query-value lupa-similar-query-link",
8814
- "data-cy": "lupa-similar-query-value"
8815
- }, [
8816
- vue.createVNode(_sfc_main$b, {
8817
- label,
8818
- similarQuery
8819
- }, null, 8, ["label", "similarQuery"])
8820
- ], 8, _hoisted_4$2)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_5$1, vue.toDisplayString(label) + " ", 1))
8821
- ]);
8822
- }), 128)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_6, [
8823
- vue.createElementVNode("span", _hoisted_7, vue.toDisplayString(_ctx.labels.aiSuggestions), 1)
8824
- ]))
8843
+ vue.createElementVNode("span", null, vue.toDisplayString(similarQueryLabel.value), 1),
8844
+ vue.createElementVNode("span", {
8845
+ id: "lupa-similar-query-text-component",
8846
+ class: "lupa-similar-query-value lupa-similar-query-link",
8847
+ onClick: ($event) => goToResults({ searchText: similarQuery.query }),
8848
+ "data-cy": "lupa-similar-query-value"
8849
+ }, [
8850
+ vue.createElementVNode("span", {
8851
+ innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
8852
+ }, null, 8, _hoisted_5$1),
8853
+ similarQuery.count ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_6, " (" + vue.toDisplayString(similarQuery.count) + ")", 1)) : vue.createCommentVNode("", true)
8854
+ ], 8, _hoisted_4$2)
8825
8855
  ]),
8826
- vue.createElementVNode("div", _hoisted_8, [
8856
+ vue.createElementVNode("div", _hoisted_7, [
8827
8857
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(similarQuery.items, (product, index2) => {
8828
- return vue.openBlock(), vue.createBlock(_sfc_main$c, {
8858
+ return vue.openBlock(), vue.createBlock(_sfc_main$b, {
8829
8859
  style: vue.normalizeStyle(_ctx.columnSize),
8830
8860
  key: getDocumentKey(index2, product),
8831
8861
  product,
@@ -8922,7 +8952,7 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
8922
8952
  return hasResults.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$8, [
8923
8953
  vue.createElementVNode("div", _hoisted_2$7, [
8924
8954
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(visibleItems.value, (item, index) => {
8925
- return vue.openBlock(), vue.createBlock(_sfc_main$c, {
8955
+ return vue.openBlock(), vue.createBlock(_sfc_main$b, {
8926
8956
  key: index,
8927
8957
  product: item,
8928
8958
  options: _ctx.panel,
@@ -9144,7 +9174,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
9144
9174
  options: productCardOptions.value
9145
9175
  });
9146
9176
  }), 128)) : (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 1 }, vue.renderList(vue.unref(searchResult).items, (product, index) => {
9147
- return vue.openBlock(), vue.createBlock(_sfc_main$c, {
9177
+ return vue.openBlock(), vue.createBlock(_sfc_main$b, {
9148
9178
  style: vue.normalizeStyle(columnSize.value),
9149
9179
  key: getProductKeyAction(index, product),
9150
9180
  product,
@@ -15942,7 +15972,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
15942
15972
  key: getProductKeyAction(index, product)
15943
15973
  }, {
15944
15974
  default: vue.withCtx(() => [
15945
- vue.createVNode(_sfc_main$c, {
15975
+ vue.createVNode(_sfc_main$b, {
15946
15976
  product,
15947
15977
  options: _ctx.options,
15948
15978
  "click-tracking-settings": clickTrackingSettings.value