@getlupa/vue 0.14.6 → 0.14.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.
@@ -2369,12 +2369,11 @@ var SearchBoxPanelType = /* @__PURE__ */ ((SearchBoxPanelType2) => {
2369
2369
  return SearchBoxPanelType2;
2370
2370
  })(SearchBoxPanelType || {});
2371
2371
  var BadgeType = /* @__PURE__ */ ((BadgeType2) => {
2372
- BadgeType2["DISCOUNTPERCENTAGE"] = "discountPercentage";
2373
- BadgeType2["DISCOUNTAMOUNT"] = "discountAmount";
2374
2372
  BadgeType2["NEWITEM"] = "newItem";
2375
2373
  BadgeType2["TEXT"] = "text";
2376
2374
  BadgeType2["IMAGE"] = "image";
2377
2375
  BadgeType2["CUSTOM_HTML"] = "customHtml";
2376
+ BadgeType2["DISCOUNT"] = "discount";
2378
2377
  return BadgeType2;
2379
2378
  })(BadgeType || {});
2380
2379
  const retrieveHistory = () => {
@@ -3314,11 +3313,11 @@ const useSearchBoxStore = defineStore("searchBox", () => {
3314
3313
  resetHighlightIndex
3315
3314
  };
3316
3315
  });
3317
- const _hoisted_1$1e = { id: "lupa-search-box-input-container" };
3318
- const _hoisted_2$S = { class: "lupa-input-clear" };
3319
- const _hoisted_3$B = { id: "lupa-search-box-input" };
3320
- const _hoisted_4$s = ["value"];
3321
- const _hoisted_5$i = ["aria-label", "placeholder"];
3316
+ const _hoisted_1$1g = { id: "lupa-search-box-input-container" };
3317
+ const _hoisted_2$U = { class: "lupa-input-clear" };
3318
+ const _hoisted_3$D = { id: "lupa-search-box-input" };
3319
+ const _hoisted_4$t = ["value"];
3320
+ const _hoisted_5$j = ["aria-label", "placeholder"];
3322
3321
  const _hoisted_6$9 = /* @__PURE__ */ vue.createElementVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
3323
3322
  const _hoisted_7$7 = [
3324
3323
  _hoisted_6$9
@@ -3327,7 +3326,7 @@ const _hoisted_8$3 = {
3327
3326
  key: 0,
3328
3327
  class: "lupa-close-label"
3329
3328
  };
3330
- const _sfc_main$1p = /* @__PURE__ */ vue.defineComponent({
3329
+ const _sfc_main$1s = /* @__PURE__ */ vue.defineComponent({
3331
3330
  __name: "SearchBoxInput",
3332
3331
  props: {
3333
3332
  options: {},
@@ -3411,20 +3410,20 @@ const _sfc_main$1p = /* @__PURE__ */ vue.defineComponent({
3411
3410
  };
3412
3411
  __expose({ focus });
3413
3412
  return (_ctx, _cache) => {
3414
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1e, [
3415
- vue.createElementVNode("div", _hoisted_2$S, [
3413
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1g, [
3414
+ vue.createElementVNode("div", _hoisted_2$U, [
3416
3415
  vue.createElementVNode("div", {
3417
3416
  class: vue.normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
3418
3417
  onClick: clear
3419
3418
  }, null, 2)
3420
3419
  ]),
3421
- vue.createElementVNode("div", _hoisted_3$B, [
3420
+ vue.createElementVNode("div", _hoisted_3$D, [
3422
3421
  vue.createElementVNode("input", {
3423
3422
  class: "lupa-hint",
3424
3423
  "aria-hidden": "true",
3425
3424
  value: showHint.value ? suggestedValue.value.item.suggestion : "",
3426
3425
  disabled: ""
3427
- }, null, 8, _hoisted_4$s),
3426
+ }, null, 8, _hoisted_4$t),
3428
3427
  vue.withDirectives(vue.createElementVNode("input", vue.mergeProps({
3429
3428
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
3430
3429
  }, inputAttributes.value, {
@@ -3438,7 +3437,7 @@ const _sfc_main$1p = /* @__PURE__ */ vue.defineComponent({
3438
3437
  placeholder: labels.value.placeholder,
3439
3438
  onInput: handleInput,
3440
3439
  onFocus: handleFocus
3441
- }), null, 16, _hoisted_5$i), [
3440
+ }), null, 16, _hoisted_5$j), [
3442
3441
  [vue.vModelText, inputValue.value]
3443
3442
  ]),
3444
3443
  _ctx.options.showSubmitButton ? (vue.openBlock(), vue.createElementBlock("button", {
@@ -3457,7 +3456,7 @@ const _sfc_main$1p = /* @__PURE__ */ vue.defineComponent({
3457
3456
  };
3458
3457
  }
3459
3458
  });
3460
- const _sfc_main$1o = /* @__PURE__ */ vue.defineComponent({
3459
+ const _sfc_main$1r = /* @__PURE__ */ vue.defineComponent({
3461
3460
  __name: "SearchBoxMoreResults",
3462
3461
  props: {
3463
3462
  labels: {},
@@ -3489,9 +3488,9 @@ const _sfc_main$1o = /* @__PURE__ */ vue.defineComponent({
3489
3488
  };
3490
3489
  }
3491
3490
  });
3492
- const _hoisted_1$1d = { class: "lupa-search-box-history-item" };
3493
- const _hoisted_2$R = { class: "lupa-search-box-history-item-content" };
3494
- const _sfc_main$1n = /* @__PURE__ */ vue.defineComponent({
3491
+ const _hoisted_1$1f = { class: "lupa-search-box-history-item" };
3492
+ const _hoisted_2$T = { class: "lupa-search-box-history-item-content" };
3493
+ const _sfc_main$1q = /* @__PURE__ */ vue.defineComponent({
3495
3494
  __name: "SearchBoxHistoryItem",
3496
3495
  props: {
3497
3496
  item: {},
@@ -3507,8 +3506,8 @@ const _sfc_main$1n = /* @__PURE__ */ vue.defineComponent({
3507
3506
  emit("click", { query: props.item });
3508
3507
  };
3509
3508
  return (_ctx, _cache) => {
3510
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1d, [
3511
- vue.createElementVNode("div", _hoisted_2$R, [
3509
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1f, [
3510
+ vue.createElementVNode("div", _hoisted_2$T, [
3512
3511
  vue.createElementVNode("div", {
3513
3512
  class: vue.normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
3514
3513
  onClick: click2
@@ -3522,11 +3521,11 @@ const _sfc_main$1n = /* @__PURE__ */ vue.defineComponent({
3522
3521
  };
3523
3522
  }
3524
3523
  });
3525
- const _hoisted_1$1c = {
3524
+ const _hoisted_1$1e = {
3526
3525
  key: 0,
3527
3526
  class: "lupa-search-box-history-panel"
3528
3527
  };
3529
- const _sfc_main$1m = /* @__PURE__ */ vue.defineComponent({
3528
+ const _sfc_main$1p = /* @__PURE__ */ vue.defineComponent({
3530
3529
  __name: "SearchBoxHistoryPanel",
3531
3530
  props: {
3532
3531
  options: {}
@@ -3567,9 +3566,9 @@ const _sfc_main$1m = /* @__PURE__ */ vue.defineComponent({
3567
3566
  }
3568
3567
  };
3569
3568
  return (_ctx, _cache) => {
3570
- return hasHistory.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1c, [
3569
+ return hasHistory.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1e, [
3571
3570
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(history), (item, index) => {
3572
- return vue.openBlock(), vue.createBlock(_sfc_main$1n, {
3571
+ return vue.openBlock(), vue.createBlock(_sfc_main$1q, {
3573
3572
  key: item,
3574
3573
  item,
3575
3574
  highlighted: index === highlightIndex.value,
@@ -3585,15 +3584,15 @@ const _sfc_main$1m = /* @__PURE__ */ vue.defineComponent({
3585
3584
  };
3586
3585
  }
3587
3586
  });
3588
- const _hoisted_1$1b = { class: "lupa-search-box-no-results" };
3589
- const _sfc_main$1l = /* @__PURE__ */ vue.defineComponent({
3587
+ const _hoisted_1$1d = { class: "lupa-search-box-no-results" };
3588
+ const _sfc_main$1o = /* @__PURE__ */ vue.defineComponent({
3590
3589
  __name: "SearchBoxNoResults",
3591
3590
  props: {
3592
3591
  labels: {}
3593
3592
  },
3594
3593
  setup(__props) {
3595
3594
  return (_ctx, _cache) => {
3596
- return vue.openBlock(), vue.createElementBlock("p", _hoisted_1$1b, vue.toDisplayString(_ctx.labels.noResults), 1);
3595
+ return vue.openBlock(), vue.createElementBlock("p", _hoisted_1$1d, vue.toDisplayString(_ctx.labels.noResults), 1);
3597
3596
  };
3598
3597
  }
3599
3598
  });
@@ -3625,26 +3624,26 @@ const generateGridTemplate = (elements) => {
3625
3624
  }
3626
3625
  return gridTemplate.join(" ");
3627
3626
  };
3628
- const _hoisted_1$1a = ["innerHTML"];
3629
- const _hoisted_2$Q = {
3627
+ const _hoisted_1$1c = ["innerHTML"];
3628
+ const _hoisted_2$S = {
3630
3629
  key: 1,
3631
3630
  "data-cy": "lupa-suggestion-value",
3632
3631
  class: "lupa-suggestion-value"
3633
3632
  };
3634
- const _hoisted_3$A = {
3633
+ const _hoisted_3$C = {
3635
3634
  key: 2,
3636
3635
  class: "lupa-suggestion-facet",
3637
3636
  "data-cy": "lupa-suggestion-facet"
3638
3637
  };
3639
- const _hoisted_4$r = {
3638
+ const _hoisted_4$s = {
3640
3639
  class: "lupa-suggestion-facet-label",
3641
3640
  "data-cy": "lupa-suggestion-facet-label"
3642
3641
  };
3643
- const _hoisted_5$h = {
3642
+ const _hoisted_5$i = {
3644
3643
  class: "lupa-suggestion-facet-value",
3645
3644
  "data-cy": "lupa-suggestion-facet-value"
3646
3645
  };
3647
- const _sfc_main$1k = /* @__PURE__ */ vue.defineComponent({
3646
+ const _sfc_main$1n = /* @__PURE__ */ vue.defineComponent({
3648
3647
  __name: "SearchBoxSuggestion",
3649
3648
  props: {
3650
3649
  suggestion: {},
@@ -3680,20 +3679,20 @@ const _sfc_main$1k = /* @__PURE__ */ vue.defineComponent({
3680
3679
  class: "lupa-suggestion-value",
3681
3680
  "data-cy": "lupa-suggestion-value",
3682
3681
  innerHTML: _ctx.suggestion.displayHighlight
3683
- }, null, 8, _hoisted_1$1a)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$Q, vue.toDisplayString(_ctx.suggestion.display), 1)),
3684
- _ctx.suggestion.facet ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$A, [
3685
- vue.createElementVNode("span", _hoisted_4$r, vue.toDisplayString(facetLabel.value), 1),
3686
- vue.createElementVNode("span", _hoisted_5$h, vue.toDisplayString(_ctx.suggestion.facet.title), 1)
3682
+ }, null, 8, _hoisted_1$1c)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$S, vue.toDisplayString(_ctx.suggestion.display), 1)),
3683
+ _ctx.suggestion.facet ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$C, [
3684
+ vue.createElementVNode("span", _hoisted_4$s, vue.toDisplayString(facetLabel.value), 1),
3685
+ vue.createElementVNode("span", _hoisted_5$i, vue.toDisplayString(_ctx.suggestion.facet.title), 1)
3687
3686
  ])) : vue.createCommentVNode("", true)
3688
3687
  ]);
3689
3688
  };
3690
3689
  }
3691
3690
  });
3692
- const _hoisted_1$19 = {
3691
+ const _hoisted_1$1b = {
3693
3692
  id: "lupa-search-box-suggestions",
3694
3693
  "data-cy": "lupa-search-box-suggestions"
3695
3694
  };
3696
- const _sfc_main$1j = /* @__PURE__ */ vue.defineComponent({
3695
+ const _sfc_main$1m = /* @__PURE__ */ vue.defineComponent({
3697
3696
  __name: "SearchBoxSuggestions",
3698
3697
  props: {
3699
3698
  items: {},
@@ -3753,9 +3752,9 @@ const _sfc_main$1j = /* @__PURE__ */ vue.defineComponent({
3753
3752
  });
3754
3753
  });
3755
3754
  return (_ctx, _cache) => {
3756
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$19, [
3755
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1b, [
3757
3756
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(items.value, (item, index) => {
3758
- return vue.openBlock(), vue.createBlock(_sfc_main$1k, {
3757
+ return vue.openBlock(), vue.createBlock(_sfc_main$1n, {
3759
3758
  key: getSuggestionKey(item),
3760
3759
  class: vue.normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
3761
3760
  suggestion: item,
@@ -3783,7 +3782,7 @@ const debounce$1 = (func, timeout) => {
3783
3782
  }, timeout);
3784
3783
  };
3785
3784
  };
3786
- const _sfc_main$1i = /* @__PURE__ */ vue.defineComponent({
3785
+ const _sfc_main$1l = /* @__PURE__ */ vue.defineComponent({
3787
3786
  __name: "SearchBoxSuggestionsWrapper",
3788
3787
  props: {
3789
3788
  panel: {},
@@ -3825,7 +3824,7 @@ const _sfc_main$1i = /* @__PURE__ */ vue.defineComponent({
3825
3824
  const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
3826
3825
  vue.watch(() => props.panel.limit, getSuggestionsDebounced);
3827
3826
  return (_ctx, _cache) => {
3828
- return vue.openBlock(), vue.createBlock(_sfc_main$1j, {
3827
+ return vue.openBlock(), vue.createBlock(_sfc_main$1m, {
3829
3828
  items: searchResult.value,
3830
3829
  highlight: _ctx.panel.highlight,
3831
3830
  queryKey: _ctx.panel.queryKey,
@@ -12874,9 +12873,13 @@ const renderHtmlTemplate = (template, document2 = {}) => {
12874
12873
  const getFieldValue = (doc, field = "") => {
12875
12874
  var _a;
12876
12875
  if (typeof field === "number") {
12877
- return field;
12876
+ return +field;
12878
12877
  }
12879
- return (_a = field == null ? void 0 : field.split(".")) == null ? void 0 : _a.reduce((obj, key) => obj ? obj[key] : void 0, doc);
12878
+ const value = (_a = field == null ? void 0 : field.split(".")) == null ? void 0 : _a.reduce((obj, key) => obj ? obj[key] : void 0, doc);
12879
+ if (+value) {
12880
+ return +value;
12881
+ }
12882
+ return value;
12880
12883
  };
12881
12884
  const processDisplayCondition = (displayCondition, doc = {}) => {
12882
12885
  const { condition, fields } = displayCondition;
@@ -12949,9 +12952,9 @@ const replaceImageWithPlaceholder = (e2, placeholder) => {
12949
12952
  targetImage.src = placeholder;
12950
12953
  }
12951
12954
  };
12952
- const _hoisted_1$18 = ["src"];
12953
- const _hoisted_2$P = ["src"];
12954
- const _sfc_main$1h = /* @__PURE__ */ vue.defineComponent({
12955
+ const _hoisted_1$1a = ["src"];
12956
+ const _hoisted_2$R = ["src"];
12957
+ const _sfc_main$1k = /* @__PURE__ */ vue.defineComponent({
12955
12958
  __name: "ProductImage",
12956
12959
  props: {
12957
12960
  item: {},
@@ -13093,7 +13096,7 @@ const _sfc_main$1h = /* @__PURE__ */ vue.defineComponent({
13093
13096
  }, { alt: imageAlt.value ? imageAlt.value : void 0 }, {
13094
13097
  onError: replaceWithPlaceholder,
13095
13098
  key: finalUrl.value
13096
- }), null, 16, _hoisted_1$18))
13099
+ }), null, 16, _hoisted_1$1a))
13097
13100
  ]),
13098
13101
  _: 1
13099
13102
  })) : (vue.openBlock(), vue.createElementBlock("img", vue.mergeProps({
@@ -13101,12 +13104,12 @@ const _sfc_main$1h = /* @__PURE__ */ vue.defineComponent({
13101
13104
  class: ["lupa-images-main-image", { [_ctx.imageClass]: true }],
13102
13105
  style: styleOverride.value,
13103
13106
  src: finalMainImageUrl.value
13104
- }, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$P))
13107
+ }, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$R))
13105
13108
  ], 38);
13106
13109
  };
13107
13110
  }
13108
13111
  });
13109
- const _sfc_main$1g = /* @__PURE__ */ vue.defineComponent({
13112
+ const _sfc_main$1j = /* @__PURE__ */ vue.defineComponent({
13110
13113
  __name: "SearchBoxProductImage",
13111
13114
  props: {
13112
13115
  item: {},
@@ -13114,7 +13117,7 @@ const _sfc_main$1g = /* @__PURE__ */ vue.defineComponent({
13114
13117
  },
13115
13118
  setup(__props) {
13116
13119
  return (_ctx, _cache) => {
13117
- return vue.openBlock(), vue.createBlock(_sfc_main$1h, {
13120
+ return vue.openBlock(), vue.createBlock(_sfc_main$1k, {
13118
13121
  item: _ctx.item,
13119
13122
  options: _ctx.options,
13120
13123
  "wrapper-class": "lupa-search-box-image-wrapper",
@@ -13123,12 +13126,12 @@ const _sfc_main$1g = /* @__PURE__ */ vue.defineComponent({
13123
13126
  };
13124
13127
  }
13125
13128
  });
13126
- const _hoisted_1$17 = ["innerHTML"];
13127
- const _hoisted_2$O = {
13129
+ const _hoisted_1$19 = ["innerHTML"];
13130
+ const _hoisted_2$Q = {
13128
13131
  key: 1,
13129
13132
  class: "lupa-search-box-product-title"
13130
13133
  };
13131
- const _sfc_main$1f = /* @__PURE__ */ vue.defineComponent({
13134
+ const _sfc_main$1i = /* @__PURE__ */ vue.defineComponent({
13132
13135
  __name: "SearchBoxProductTitle",
13133
13136
  props: {
13134
13137
  item: {},
@@ -13151,18 +13154,18 @@ const _sfc_main$1f = /* @__PURE__ */ vue.defineComponent({
13151
13154
  key: 0,
13152
13155
  class: "lupa-search-box-product-title",
13153
13156
  innerHTML: sanitizedTitle.value
13154
- }, null, 8, _hoisted_1$17)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$O, [
13157
+ }, null, 8, _hoisted_1$19)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$Q, [
13155
13158
  vue.createElementVNode("strong", null, vue.toDisplayString(title.value), 1)
13156
13159
  ]));
13157
13160
  };
13158
13161
  }
13159
13162
  });
13160
- const _hoisted_1$16 = ["innerHTML"];
13161
- const _hoisted_2$N = {
13163
+ const _hoisted_1$18 = ["innerHTML"];
13164
+ const _hoisted_2$P = {
13162
13165
  key: 1,
13163
13166
  class: "lupa-search-box-product-description"
13164
13167
  };
13165
- const _sfc_main$1e = /* @__PURE__ */ vue.defineComponent({
13168
+ const _sfc_main$1h = /* @__PURE__ */ vue.defineComponent({
13166
13169
  __name: "SearchBoxProductDescription",
13167
13170
  props: {
13168
13171
  item: {},
@@ -13185,12 +13188,12 @@ const _sfc_main$1e = /* @__PURE__ */ vue.defineComponent({
13185
13188
  key: 0,
13186
13189
  class: "lupa-search-box-product-description",
13187
13190
  innerHTML: sanitizedDescription.value
13188
- }, null, 8, _hoisted_1$16)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$N, vue.toDisplayString(description.value), 1));
13191
+ }, null, 8, _hoisted_1$18)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$P, vue.toDisplayString(description.value), 1));
13189
13192
  };
13190
13193
  }
13191
13194
  });
13192
- const _hoisted_1$15 = { class: "lupa-search-box-product-price" };
13193
- const _sfc_main$1d = /* @__PURE__ */ vue.defineComponent({
13195
+ const _hoisted_1$17 = { class: "lupa-search-box-product-price" };
13196
+ const _sfc_main$1g = /* @__PURE__ */ vue.defineComponent({
13194
13197
  __name: "SearchBoxProductPrice",
13195
13198
  props: {
13196
13199
  item: {},
@@ -13208,13 +13211,13 @@ const _sfc_main$1d = /* @__PURE__ */ vue.defineComponent({
13208
13211
  );
13209
13212
  });
13210
13213
  return (_ctx, _cache) => {
13211
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$15, [
13214
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$17, [
13212
13215
  vue.createElementVNode("strong", null, vue.toDisplayString(price.value), 1)
13213
13216
  ]);
13214
13217
  };
13215
13218
  }
13216
13219
  });
13217
- const _sfc_main$1c = /* @__PURE__ */ vue.defineComponent({
13220
+ const _sfc_main$1f = /* @__PURE__ */ vue.defineComponent({
13218
13221
  __name: "SearchBoxProductRegularPrice",
13219
13222
  props: {
13220
13223
  item: {},
@@ -13241,12 +13244,12 @@ const _sfc_main$1c = /* @__PURE__ */ vue.defineComponent({
13241
13244
  };
13242
13245
  }
13243
13246
  });
13244
- const _hoisted_1$14 = ["innerHTML"];
13245
- const _hoisted_2$M = { key: 0 };
13246
- const _hoisted_3$z = { key: 1 };
13247
- const _hoisted_4$q = { class: "lupa-search-box-custom-label" };
13248
- const _hoisted_5$g = { class: "lupa-search-box-custom-text" };
13249
- const _sfc_main$1b = /* @__PURE__ */ vue.defineComponent({
13247
+ const _hoisted_1$16 = ["innerHTML"];
13248
+ const _hoisted_2$O = { key: 0 };
13249
+ const _hoisted_3$B = { key: 1 };
13250
+ const _hoisted_4$r = { class: "lupa-search-box-custom-label" };
13251
+ const _hoisted_5$h = { class: "lupa-search-box-custom-text" };
13252
+ const _sfc_main$1e = /* @__PURE__ */ vue.defineComponent({
13250
13253
  __name: "SearchBoxProductCustom",
13251
13254
  props: {
13252
13255
  item: {},
@@ -13272,20 +13275,20 @@ const _sfc_main$1b = /* @__PURE__ */ vue.defineComponent({
13272
13275
  key: 0,
13273
13276
  class: [className.value, "lupa-search-box-product-custom"],
13274
13277
  innerHTML: text.value
13275
- }, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$14)) : (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
13278
+ }, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$16)) : (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
13276
13279
  key: 1,
13277
13280
  class: [className.value, "lupa-search-box-product-custom"]
13278
13281
  }, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
13279
- !label.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$M, vue.toDisplayString(text.value), 1)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$z, [
13280
- vue.createElementVNode("div", _hoisted_4$q, vue.toDisplayString(label.value), 1),
13281
- vue.createElementVNode("div", _hoisted_5$g, vue.toDisplayString(text.value), 1)
13282
+ !label.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$O, vue.toDisplayString(text.value), 1)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$B, [
13283
+ vue.createElementVNode("div", _hoisted_4$r, vue.toDisplayString(label.value), 1),
13284
+ vue.createElementVNode("div", _hoisted_5$h, vue.toDisplayString(text.value), 1)
13282
13285
  ]))
13283
13286
  ], 16));
13284
13287
  };
13285
13288
  }
13286
13289
  });
13287
- const _hoisted_1$13 = ["innerHTML"];
13288
- const _sfc_main$1a = /* @__PURE__ */ vue.defineComponent({
13290
+ const _hoisted_1$15 = ["innerHTML"];
13291
+ const _sfc_main$1d = /* @__PURE__ */ vue.defineComponent({
13289
13292
  __name: "SearchBoxProductCustomHtml",
13290
13293
  props: {
13291
13294
  item: {},
@@ -13310,7 +13313,7 @@ const _sfc_main$1a = /* @__PURE__ */ vue.defineComponent({
13310
13313
  return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
13311
13314
  class: className.value,
13312
13315
  innerHTML: text.value
13313
- }, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$13);
13316
+ }, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$15);
13314
13317
  };
13315
13318
  }
13316
13319
  });
@@ -13544,10 +13547,10 @@ const useSearchResultStore = defineStore("searchResult", () => {
13544
13547
  setRelatedCategoryChildren
13545
13548
  };
13546
13549
  });
13547
- const _hoisted_1$12 = { class: "lupa-search-box-add-to-cart-wrapper" };
13548
- const _hoisted_2$L = { class: "lupa-search-box-product-addtocart" };
13549
- const _hoisted_3$y = ["onClick", "disabled"];
13550
- const _sfc_main$19 = /* @__PURE__ */ vue.defineComponent({
13550
+ const _hoisted_1$14 = { class: "lupa-search-box-add-to-cart-wrapper" };
13551
+ const _hoisted_2$N = { class: "lupa-search-box-product-addtocart" };
13552
+ const _hoisted_3$A = ["onClick", "disabled"];
13553
+ const _sfc_main$1c = /* @__PURE__ */ vue.defineComponent({
13551
13554
  __name: "SearchBoxProductAddToCart",
13552
13555
  props: {
13553
13556
  item: {},
@@ -13580,37 +13583,37 @@ const _sfc_main$19 = /* @__PURE__ */ vue.defineComponent({
13580
13583
  loading.value = false;
13581
13584
  });
13582
13585
  return (_ctx, _cache) => {
13583
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$12, [
13584
- vue.createElementVNode("div", _hoisted_2$L, [
13586
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$14, [
13587
+ vue.createElementVNode("div", _hoisted_2$N, [
13585
13588
  vue.createElementVNode("button", {
13586
13589
  onClick: vue.withModifiers(handleClick, ["stop", "prevent"]),
13587
13590
  class: vue.normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
13588
13591
  "data-cy": "lupa-add-to-cart",
13589
13592
  type: "button",
13590
13593
  disabled: !inStockValue.value || loading.value
13591
- }, vue.toDisplayString(label.value), 11, _hoisted_3$y)
13594
+ }, vue.toDisplayString(label.value), 11, _hoisted_3$A)
13592
13595
  ])
13593
13596
  ]);
13594
13597
  };
13595
13598
  }
13596
13599
  });
13597
- const _hoisted_1$11 = {
13600
+ const _hoisted_1$13 = {
13598
13601
  key: 1,
13599
13602
  class: "lupa-search-box-element-badge-wrapper"
13600
13603
  };
13601
13604
  const __default__$4 = {
13602
13605
  components: {
13603
- SearchBoxProductImage: _sfc_main$1g,
13604
- SearchBoxProductTitle: _sfc_main$1f,
13605
- SearchBoxProductDescription: _sfc_main$1e,
13606
- SearchBoxProductPrice: _sfc_main$1d,
13607
- SearchBoxProductRegularPrice: _sfc_main$1c,
13608
- SearchBoxProductCustom: _sfc_main$1b,
13609
- SearchBoxProductCustomHtml: _sfc_main$1a,
13610
- SearchBoxProductAddToCart: _sfc_main$19
13606
+ SearchBoxProductImage: _sfc_main$1j,
13607
+ SearchBoxProductTitle: _sfc_main$1i,
13608
+ SearchBoxProductDescription: _sfc_main$1h,
13609
+ SearchBoxProductPrice: _sfc_main$1g,
13610
+ SearchBoxProductRegularPrice: _sfc_main$1f,
13611
+ SearchBoxProductCustom: _sfc_main$1e,
13612
+ SearchBoxProductCustomHtml: _sfc_main$1d,
13613
+ SearchBoxProductAddToCart: _sfc_main$1c
13611
13614
  }
13612
13615
  };
13613
- const _sfc_main$18 = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, __default__$4), {
13616
+ const _sfc_main$1b = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, __default__$4), {
13614
13617
  __name: "SearchBoxProductElement",
13615
13618
  props: {
13616
13619
  item: {},
@@ -13673,7 +13676,7 @@ const _sfc_main$18 = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadV
13673
13676
  class: vue.normalizeClass({ "lupa-loading-dynamic-data": isLoadingDynamicData((_a = _ctx.item) == null ? void 0 : _a.id) }),
13674
13677
  inStock: _ctx.isInStock
13675
13678
  }, null, 8, ["item", "options", "labels", "class", "inStock"])) : vue.createCommentVNode("", true)
13676
- ], 64)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$11, [
13679
+ ], 64)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$13, [
13677
13680
  displayElement.value ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(elementComponent.value), {
13678
13681
  key: 0,
13679
13682
  item: enhancedItem.value,
@@ -13687,14 +13690,14 @@ const _sfc_main$18 = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadV
13687
13690
  };
13688
13691
  }
13689
13692
  }));
13690
- const _hoisted_1$10 = { class: "lupa-badge-title" };
13691
- const _hoisted_2$K = ["src"];
13692
- const _hoisted_3$x = { key: 1 };
13693
- const _hoisted_4$p = {
13693
+ const _hoisted_1$12 = { class: "lupa-badge-title" };
13694
+ const _hoisted_2$M = ["src"];
13695
+ const _hoisted_3$z = { key: 1 };
13696
+ const _hoisted_4$q = {
13694
13697
  key: 0,
13695
13698
  class: "lupa-badge-full-text"
13696
13699
  };
13697
- const _sfc_main$17 = /* @__PURE__ */ vue.defineComponent({
13700
+ const _sfc_main$1a = /* @__PURE__ */ vue.defineComponent({
13698
13701
  __name: "SearchResultGeneratedBadge",
13699
13702
  props: {
13700
13703
  options: {},
@@ -13727,20 +13730,20 @@ const _sfc_main$17 = /* @__PURE__ */ vue.defineComponent({
13727
13730
  class: vue.normalizeClass(["lupa-dynamic-badge", customClassName.value]),
13728
13731
  style: vue.normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
13729
13732
  }, [
13730
- vue.createElementVNode("span", _hoisted_1$10, [
13733
+ vue.createElementVNode("span", _hoisted_1$12, [
13731
13734
  image.value ? (vue.openBlock(), vue.createElementBlock("img", {
13732
13735
  key: 0,
13733
13736
  src: image.value
13734
- }, null, 8, _hoisted_2$K)) : vue.createCommentVNode("", true),
13735
- hasTitleText.value && showTitle.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$x, vue.toDisplayString(_ctx.badge.titleText), 1)) : vue.createCommentVNode("", true)
13737
+ }, null, 8, _hoisted_2$M)) : vue.createCommentVNode("", true),
13738
+ hasTitleText.value && showTitle.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$z, vue.toDisplayString(_ctx.badge.titleText), 1)) : vue.createCommentVNode("", true)
13736
13739
  ]),
13737
- hasAdditionalText.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$p, vue.toDisplayString(_ctx.badge.additionalText), 1)) : vue.createCommentVNode("", true)
13740
+ hasAdditionalText.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$q, vue.toDisplayString(_ctx.badge.additionalText), 1)) : vue.createCommentVNode("", true)
13738
13741
  ], 6);
13739
13742
  };
13740
13743
  }
13741
13744
  });
13742
- const _hoisted_1$$ = { class: "lupa-generated-badges" };
13743
- const _sfc_main$16 = /* @__PURE__ */ vue.defineComponent({
13745
+ const _hoisted_1$11 = { class: "lupa-generated-badges" };
13746
+ const _sfc_main$19 = /* @__PURE__ */ vue.defineComponent({
13744
13747
  __name: "SearchResultGeneratedBadges",
13745
13748
  props: {
13746
13749
  options: {}
@@ -13766,9 +13769,9 @@ const _sfc_main$16 = /* @__PURE__ */ vue.defineComponent({
13766
13769
  })).filter((b) => Boolean(b.id));
13767
13770
  });
13768
13771
  return (_ctx, _cache) => {
13769
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$$, [
13772
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$11, [
13770
13773
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(badges.value, (badge) => {
13771
- return vue.openBlock(), vue.createBlock(_sfc_main$17, {
13774
+ return vue.openBlock(), vue.createBlock(_sfc_main$1a, {
13772
13775
  key: badge.id,
13773
13776
  badge,
13774
13777
  options: _ctx.options
@@ -13778,8 +13781,8 @@ const _sfc_main$16 = /* @__PURE__ */ vue.defineComponent({
13778
13781
  };
13779
13782
  }
13780
13783
  });
13781
- const _hoisted_1$_ = ["innerHTML"];
13782
- const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
13784
+ const _hoisted_1$10 = ["innerHTML"];
13785
+ const _sfc_main$18 = /* @__PURE__ */ vue.defineComponent({
13783
13786
  __name: "CustomBadge",
13784
13787
  props: {
13785
13788
  badge: {}
@@ -13800,12 +13803,12 @@ const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
13800
13803
  return vue.openBlock(), vue.createElementBlock("div", {
13801
13804
  class: vue.normalizeClass(className.value),
13802
13805
  innerHTML: text.value
13803
- }, null, 10, _hoisted_1$_);
13806
+ }, null, 10, _hoisted_1$10);
13804
13807
  };
13805
13808
  }
13806
13809
  });
13807
- const _hoisted_1$Z = { class: "lupa-text-badges" };
13808
- const _sfc_main$14 = /* @__PURE__ */ vue.defineComponent({
13810
+ const _hoisted_1$$ = { class: "lupa-text-badges" };
13811
+ const _sfc_main$17 = /* @__PURE__ */ vue.defineComponent({
13809
13812
  __name: "TextBadge",
13810
13813
  props: {
13811
13814
  badge: {}
@@ -13813,14 +13816,13 @@ const _sfc_main$14 = /* @__PURE__ */ vue.defineComponent({
13813
13816
  setup(__props) {
13814
13817
  const props = __props;
13815
13818
  const badges = vue.computed(() => {
13816
- var _a, _b;
13817
- return (_b = (_a = props.badge) == null ? void 0 : _a.value) != null ? _b : [];
13819
+ return Array.isArray(props.badge.value) ? props.badge.value : [props.badge.value];
13818
13820
  });
13819
13821
  const displayBadges = vue.computed(() => {
13820
13822
  return badges.value.slice(0, props.badge.maxItems);
13821
13823
  });
13822
13824
  return (_ctx, _cache) => {
13823
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$Z, [
13825
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$$, [
13824
13826
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(displayBadges.value, (item) => {
13825
13827
  return vue.openBlock(), vue.createElementBlock("div", {
13826
13828
  class: "lupa-badge lupa-text-badge",
@@ -13831,9 +13833,9 @@ const _sfc_main$14 = /* @__PURE__ */ vue.defineComponent({
13831
13833
  };
13832
13834
  }
13833
13835
  });
13834
- const _hoisted_1$Y = { class: "lupa-image-badges" };
13835
- const _hoisted_2$J = ["src"];
13836
- const _sfc_main$13 = /* @__PURE__ */ vue.defineComponent({
13836
+ const _hoisted_1$_ = { class: "lupa-image-badges" };
13837
+ const _hoisted_2$L = ["src"];
13838
+ const _sfc_main$16 = /* @__PURE__ */ vue.defineComponent({
13837
13839
  __name: "ImageBadge",
13838
13840
  props: {
13839
13841
  badge: {}
@@ -13841,7 +13843,7 @@ const _sfc_main$13 = /* @__PURE__ */ vue.defineComponent({
13841
13843
  setup(__props) {
13842
13844
  const props = __props;
13843
13845
  const badges = vue.computed(() => {
13844
- return props.badge.value;
13846
+ return Array.isArray(props.badge.value) ? props.badge.value : [props.badge.value];
13845
13847
  });
13846
13848
  const displayBadges = vue.computed(() => {
13847
13849
  return badges.value.slice(0, props.badge.maxItems);
@@ -13853,7 +13855,7 @@ const _sfc_main$13 = /* @__PURE__ */ vue.defineComponent({
13853
13855
  return `${props.badge.rootImageUrl}${src}`;
13854
13856
  };
13855
13857
  return (_ctx, _cache) => {
13856
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$Y, [
13858
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$_, [
13857
13859
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(displayBadges.value, (item) => {
13858
13860
  return vue.openBlock(), vue.createElementBlock("div", {
13859
13861
  class: "lupa-badge lupa-image-badge",
@@ -13861,22 +13863,81 @@ const _sfc_main$13 = /* @__PURE__ */ vue.defineComponent({
13861
13863
  }, [
13862
13864
  vue.createElementVNode("img", {
13863
13865
  src: getImageUrl(item)
13864
- }, null, 8, _hoisted_2$J)
13866
+ }, null, 8, _hoisted_2$L)
13865
13867
  ]);
13866
13868
  }), 128))
13867
13869
  ]);
13868
13870
  };
13869
13871
  }
13870
13872
  });
13871
- const _hoisted_1$X = { id: "lupa-search-results-badges" };
13873
+ const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
13874
+ __name: "DiscountBadge",
13875
+ props: {
13876
+ badge: {}
13877
+ },
13878
+ setup(__props) {
13879
+ const props = __props;
13880
+ const optionStore = useOptionsStore();
13881
+ const { searchResultOptions } = storeToRefs(optionStore);
13882
+ const className = vue.computed(() => {
13883
+ var _a;
13884
+ return (_a = props.badge.className) != null ? _a : "";
13885
+ });
13886
+ const discountValue = vue.computed(() => {
13887
+ var _a, _b, _c, _d;
13888
+ if (props.badge.discountKey) {
13889
+ return (_b = (_a = props.badge.product) == null ? void 0 : _a[props.badge.discountKey]) != null ? _b : 0;
13890
+ }
13891
+ if (props.badge.regularPriceKey && props.badge.finalPriceKey) {
13892
+ const regularPrice = +((_c = props.badge.product) == null ? void 0 : _c[props.badge.regularPriceKey]);
13893
+ const finalPrice = +((_d = props.badge.product) == null ? void 0 : _d[props.badge.finalPriceKey]);
13894
+ if (!regularPrice || !finalPrice) {
13895
+ return 0;
13896
+ }
13897
+ if (props.badge.discountType === "percentage") {
13898
+ return (regularPrice - finalPrice) / regularPrice * 100;
13899
+ } else {
13900
+ return regularPrice - finalPrice;
13901
+ }
13902
+ }
13903
+ return 0;
13904
+ });
13905
+ const discountStringValue = vue.computed(() => {
13906
+ var _a, _b, _c, _d;
13907
+ return props.badge.discountType === "percentage" ? discountValue.value.toFixed(0) : formatPrice(
13908
+ discountValue.value,
13909
+ (_b = (_a = searchResultOptions.value) == null ? void 0 : _a.labels) == null ? void 0 : _b.currency,
13910
+ (_d = (_c = searchResultOptions.value) == null ? void 0 : _c.labels) == null ? void 0 : _d.priceSeparator
13911
+ );
13912
+ });
13913
+ const hasDiscount = vue.computed(() => {
13914
+ return Boolean(discountValue.value) && discountValue.value > 0;
13915
+ });
13916
+ const discount = vue.computed(() => {
13917
+ var _a, _b, _c, _d;
13918
+ const defaultPostfix = props.badge.discountType === "percentage" ? " %" : "";
13919
+ const prefix = (_b = (_a = props.badge.labels) == null ? void 0 : _a.prefix) != null ? _b : "- ";
13920
+ const postfix = (_d = (_c = props.badge.labels) == null ? void 0 : _c.postfix) != null ? _d : defaultPostfix;
13921
+ return `${prefix}${discountStringValue.value}${postfix}`;
13922
+ });
13923
+ return (_ctx, _cache) => {
13924
+ return hasDiscount.value ? (vue.openBlock(), vue.createElementBlock("div", {
13925
+ key: 0,
13926
+ class: vue.normalizeClass([className.value, "lupa-discount-badge"])
13927
+ }, vue.toDisplayString(discount.value), 3)) : vue.createCommentVNode("", true);
13928
+ };
13929
+ }
13930
+ });
13931
+ const _hoisted_1$Z = { id: "lupa-search-results-badges" };
13872
13932
  const __default__$3 = {
13873
13933
  components: {
13874
- CustomBadge: _sfc_main$15,
13875
- TextBadge: _sfc_main$14,
13876
- ImageBadge: _sfc_main$13
13934
+ CustomBadge: _sfc_main$18,
13935
+ TextBadge: _sfc_main$17,
13936
+ ImageBadge: _sfc_main$16,
13937
+ DiscountBadge: _sfc_main$15
13877
13938
  }
13878
13939
  };
13879
- const _sfc_main$12 = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, __default__$3), {
13940
+ const _sfc_main$14 = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, __default__$3), {
13880
13941
  __name: "SearchResultsBadgeWrapper",
13881
13942
  props: {
13882
13943
  position: {},
@@ -13932,12 +13993,14 @@ const _sfc_main$12 = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadV
13932
13993
  return "ImageBadge";
13933
13994
  case BadgeType.CUSTOM_HTML:
13934
13995
  return "CustomBadge";
13996
+ case BadgeType.DISCOUNT:
13997
+ return "DiscountBadge";
13935
13998
  default:
13936
13999
  return "CustomBadge";
13937
14000
  }
13938
14001
  };
13939
14002
  return (_ctx, _cache) => {
13940
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$X, [
14003
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$Z, [
13941
14004
  vue.createElementVNode("div", {
13942
14005
  id: "lupa-badges",
13943
14006
  class: vue.normalizeClass(anchorPosition.value)
@@ -13948,7 +14011,7 @@ const _sfc_main$12 = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadV
13948
14011
  badge
13949
14012
  }, null, 8, ["badge"]);
13950
14013
  }), 128)),
13951
- positionValue.value === "card" ? (vue.openBlock(), vue.createBlock(_sfc_main$16, {
14014
+ positionValue.value === "card" ? (vue.openBlock(), vue.createBlock(_sfc_main$19, {
13952
14015
  key: 0,
13953
14016
  options: _ctx.options
13954
14017
  }, null, 8, ["options"])) : vue.createCommentVNode("", true)
@@ -13957,13 +14020,13 @@ const _sfc_main$12 = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadV
13957
14020
  };
13958
14021
  }
13959
14022
  }));
13960
- const _hoisted_1$W = ["href"];
13961
- const _hoisted_2$I = { class: "lupa-search-box-product-details-section" };
13962
- const _hoisted_3$w = {
14023
+ const _hoisted_1$Y = ["href"];
14024
+ const _hoisted_2$K = { class: "lupa-search-box-product-details-section" };
14025
+ const _hoisted_3$y = {
13963
14026
  key: 0,
13964
14027
  class: "lupa-search-box-product-add-to-cart-section"
13965
14028
  };
13966
- const _sfc_main$11 = /* @__PURE__ */ vue.defineComponent({
14029
+ const _sfc_main$13 = /* @__PURE__ */ vue.defineComponent({
13967
14030
  __name: "SearchBoxProduct",
13968
14031
  props: {
13969
14032
  item: {},
@@ -14049,7 +14112,7 @@ const _sfc_main$11 = /* @__PURE__ */ vue.defineComponent({
14049
14112
  style: vue.normalizeStyle(imageStyleOverride.value)
14050
14113
  }, [
14051
14114
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(imageElements.value, (element) => {
14052
- return vue.openBlock(), vue.createBlock(_sfc_main$18, {
14115
+ return vue.openBlock(), vue.createBlock(_sfc_main$1b, {
14053
14116
  class: "lupa-search-box-product-element",
14054
14117
  item: _ctx.item,
14055
14118
  element,
@@ -14059,10 +14122,10 @@ const _sfc_main$11 = /* @__PURE__ */ vue.defineComponent({
14059
14122
  }, null, 8, ["item", "element", "labels", "link"]);
14060
14123
  }), 128))
14061
14124
  ], 4),
14062
- vue.createElementVNode("div", _hoisted_2$I, [
14125
+ vue.createElementVNode("div", _hoisted_2$K, [
14063
14126
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(detailElements.value, (element) => {
14064
14127
  var _a;
14065
- return vue.openBlock(), vue.createBlock(_sfc_main$18, {
14128
+ return vue.openBlock(), vue.createBlock(_sfc_main$1b, {
14066
14129
  key: element.key,
14067
14130
  class: "lupa-search-box-product-element",
14068
14131
  item: _ctx.item,
@@ -14073,7 +14136,7 @@ const _sfc_main$11 = /* @__PURE__ */ vue.defineComponent({
14073
14136
  badgeOptions.value && ((_a = badgeOptions.value) == null ? void 0 : _a.anchorElementKey) === element.key ? {
14074
14137
  name: "badges",
14075
14138
  fn: vue.withCtx(() => [
14076
- vue.createVNode(_sfc_main$12, {
14139
+ vue.createVNode(_sfc_main$14, {
14077
14140
  options: badgeOptions.value,
14078
14141
  position: "card"
14079
14142
  }, null, 8, ["options"])
@@ -14083,8 +14146,8 @@ const _sfc_main$11 = /* @__PURE__ */ vue.defineComponent({
14083
14146
  ]), 1032, ["item", "element", "labels", "link"]);
14084
14147
  }), 128))
14085
14148
  ]),
14086
- addToCartElement.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$w, [
14087
- vue.createVNode(_sfc_main$18, {
14149
+ addToCartElement.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$y, [
14150
+ vue.createVNode(_sfc_main$1b, {
14088
14151
  class: "lupa-search-box-product-element",
14089
14152
  item: _ctx.item,
14090
14153
  element: addToCartElement.value,
@@ -14093,7 +14156,7 @@ const _sfc_main$11 = /* @__PURE__ */ vue.defineComponent({
14093
14156
  isInStock: isInStock.value
14094
14157
  }, null, 8, ["item", "element", "labels", "link", "isInStock"])
14095
14158
  ])) : vue.createCommentVNode("", true)
14096
- ], 16, _hoisted_1$W);
14159
+ ], 16, _hoisted_1$Y);
14097
14160
  };
14098
14161
  }
14099
14162
  });
@@ -14154,8 +14217,8 @@ const useTrackingStore = defineStore("tracking", () => {
14154
14217
  };
14155
14218
  return { trackSearch, trackResults, trackEvent };
14156
14219
  });
14157
- const _hoisted_1$V = { id: "lupa-search-box-products" };
14158
- const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent({
14220
+ const _hoisted_1$X = { id: "lupa-search-box-products" };
14221
+ const _sfc_main$12 = /* @__PURE__ */ vue.defineComponent({
14159
14222
  __name: "SearchBoxProducts",
14160
14223
  props: {
14161
14224
  items: {},
@@ -14216,7 +14279,7 @@ const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent({
14216
14279
  handleRoutingEvent(link, event, boxRoutingBehavior.value === "event");
14217
14280
  };
14218
14281
  return (_ctx, _cache) => {
14219
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$V, [
14282
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$X, [
14220
14283
  _ctx.$slots.productCard ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 0 }, vue.renderList(_ctx.items, (item, index) => {
14221
14284
  return vue.renderSlot(_ctx.$slots, "productCard", {
14222
14285
  key: index,
@@ -14228,7 +14291,7 @@ const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent({
14228
14291
  itemClicked: handleProductClick
14229
14292
  });
14230
14293
  }), 128)) : (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 1 }, vue.renderList(_ctx.items, (item, index) => {
14231
- return vue.openBlock(), vue.createBlock(_sfc_main$11, {
14294
+ return vue.openBlock(), vue.createBlock(_sfc_main$13, {
14232
14295
  key: index,
14233
14296
  item,
14234
14297
  panelOptions: _ctx.panelOptions,
@@ -14243,9 +14306,9 @@ const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent({
14243
14306
  };
14244
14307
  }
14245
14308
  });
14246
- const _hoisted_1$U = { class: "lupa-search-box-documents-go-to-results-wrapper" };
14247
- const _hoisted_2$H = { key: 0 };
14248
- const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
14309
+ const _hoisted_1$W = { class: "lupa-search-box-documents-go-to-results-wrapper" };
14310
+ const _hoisted_2$J = { key: 0 };
14311
+ const _sfc_main$11 = /* @__PURE__ */ vue.defineComponent({
14249
14312
  __name: "SearchBoxProductsGoToResultsButton",
14250
14313
  props: {
14251
14314
  options: {},
@@ -14275,19 +14338,19 @@ const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
14275
14338
  emit("goToResults");
14276
14339
  };
14277
14340
  return (_ctx, _cache) => {
14278
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$U, [
14341
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$W, [
14279
14342
  vue.createElementVNode("button", {
14280
14343
  class: "lupa-search-box-documents-go-to-results-button",
14281
14344
  onClick: goToResults
14282
14345
  }, [
14283
14346
  vue.createTextVNode(vue.toDisplayString(goToResultsLabel.value) + " ", 1),
14284
- totalCount.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$H, " " + vue.toDisplayString(totalCount.value), 1)) : vue.createCommentVNode("", true)
14347
+ totalCount.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$J, " " + vue.toDisplayString(totalCount.value), 1)) : vue.createCommentVNode("", true)
14285
14348
  ])
14286
14349
  ]);
14287
14350
  };
14288
14351
  }
14289
14352
  });
14290
- const _sfc_main$_ = /* @__PURE__ */ vue.defineComponent({
14353
+ const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent({
14291
14354
  __name: "SearchBoxProductsWrapper",
14292
14355
  props: {
14293
14356
  panel: {},
@@ -14344,7 +14407,7 @@ const _sfc_main$_ = /* @__PURE__ */ vue.defineComponent({
14344
14407
  vue.watch(() => props.panel.limit, getItemsDebounced);
14345
14408
  return (_ctx, _cache) => {
14346
14409
  var _a, _b;
14347
- return vue.openBlock(), vue.createBlock(_sfc_main$10, {
14410
+ return vue.openBlock(), vue.createBlock(_sfc_main$12, {
14348
14411
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
14349
14412
  panelOptions: _ctx.panel,
14350
14413
  labels: _ctx.labels,
@@ -14354,7 +14417,7 @@ const _sfc_main$_ = /* @__PURE__ */ vue.defineComponent({
14354
14417
  default: vue.withCtx(() => {
14355
14418
  var _a2;
14356
14419
  return [
14357
- showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (vue.openBlock(), vue.createBlock(_sfc_main$$, {
14420
+ showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (vue.openBlock(), vue.createBlock(_sfc_main$11, {
14358
14421
  key: 0,
14359
14422
  options: _ctx.searchBoxOptions,
14360
14423
  panel: _ctx.panel,
@@ -14375,7 +14438,7 @@ const _sfc_main$_ = /* @__PURE__ */ vue.defineComponent({
14375
14438
  };
14376
14439
  }
14377
14440
  });
14378
- const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
14441
+ const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
14379
14442
  __name: "SearchBoxRelatedSourceWrapper",
14380
14443
  props: {
14381
14444
  panel: {},
@@ -14447,7 +14510,7 @@ const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
14447
14510
  });
14448
14511
  return (_ctx, _cache) => {
14449
14512
  var _a, _b;
14450
- return vue.openBlock(), vue.createBlock(_sfc_main$10, {
14513
+ return vue.openBlock(), vue.createBlock(_sfc_main$12, {
14451
14514
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
14452
14515
  panelOptions: documentPanelOptions.value,
14453
14516
  labels: _ctx.labels,
@@ -14465,31 +14528,31 @@ const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
14465
14528
  };
14466
14529
  }
14467
14530
  });
14468
- const _hoisted_1$T = {
14531
+ const _hoisted_1$V = {
14469
14532
  key: 0,
14470
14533
  id: "lupa-search-box-panel"
14471
14534
  };
14472
- const _hoisted_2$G = ["data-cy"];
14473
- const _hoisted_3$v = {
14535
+ const _hoisted_2$I = ["data-cy"];
14536
+ const _hoisted_3$x = {
14474
14537
  key: 0,
14475
14538
  class: "lupa-panel-title lupa-panel-title-top-results"
14476
14539
  };
14477
- const _hoisted_4$o = {
14540
+ const _hoisted_4$p = {
14478
14541
  key: 1,
14479
14542
  class: "lupa-panel-title"
14480
14543
  };
14481
- const _hoisted_5$f = {
14544
+ const _hoisted_5$g = {
14482
14545
  key: 1,
14483
14546
  id: "lupa-search-box-panel"
14484
14547
  };
14485
14548
  const __default__$2 = {
14486
14549
  components: {
14487
- SearchBoxSuggestionsWrapper: _sfc_main$1i,
14488
- SearchBoxProductsWrapper: _sfc_main$_,
14489
- SearchBoxRelatedSourceWrapper: _sfc_main$Z
14550
+ SearchBoxSuggestionsWrapper: _sfc_main$1l,
14551
+ SearchBoxProductsWrapper: _sfc_main$10,
14552
+ SearchBoxRelatedSourceWrapper: _sfc_main$$
14490
14553
  }
14491
14554
  };
14492
- const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, __default__$2), {
14555
+ const _sfc_main$_ = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, __default__$2), {
14493
14556
  __name: "SearchBoxMainPanel",
14494
14557
  props: {
14495
14558
  options: {},
@@ -14645,7 +14708,7 @@ const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadVa
14645
14708
  ref_key: "panelContainer",
14646
14709
  ref: panelContainer
14647
14710
  }, [
14648
- displayResults.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$T, [
14711
+ displayResults.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$V, [
14649
14712
  labels.value.closePanel ? (vue.openBlock(), vue.createElementBlock("a", {
14650
14713
  key: 0,
14651
14714
  class: "lupa-search-box-close-panel",
@@ -14667,8 +14730,8 @@ const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadVa
14667
14730
  style: vue.normalizeStyle(panel.gridArea ? { gridArea: `${panel.gridArea}${index}` } : {}),
14668
14731
  "data-cy": "lupa-panel-" + panel.type + "-index"
14669
14732
  }, [
14670
- ((_a2 = panel.labels) == null ? void 0 : _a2.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$v, vue.toDisplayString((_b = panel.labels) == null ? void 0 : _b.topResultsTitle), 1)) : vue.createCommentVNode("", true),
14671
- ((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$o, vue.toDisplayString((_d = panel.labels) == null ? void 0 : _d.title), 1)) : vue.createCommentVNode("", true),
14733
+ ((_a2 = panel.labels) == null ? void 0 : _a2.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$x, vue.toDisplayString((_b = panel.labels) == null ? void 0 : _b.topResultsTitle), 1)) : vue.createCommentVNode("", true),
14734
+ ((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$p, vue.toDisplayString((_d = panel.labels) == null ? void 0 : _d.title), 1)) : vue.createCommentVNode("", true),
14672
14735
  panel.queryKey && canShowPanel(panel) ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(getComponent(panel.type)), {
14673
14736
  key: 2,
14674
14737
  panel,
@@ -14690,21 +14753,21 @@ const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadVa
14690
14753
  key: "0"
14691
14754
  } : void 0
14692
14755
  ]), 1064, ["panel", "search-box-options", "options", "debounce", "inputValue", "labels"])) : vue.createCommentVNode("", true)
14693
- ], 14, _hoisted_2$G);
14756
+ ], 14, _hoisted_2$I);
14694
14757
  }), 128))
14695
14758
  ], 4),
14696
- !vue.unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (vue.openBlock(), vue.createBlock(_sfc_main$1l, {
14759
+ !vue.unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (vue.openBlock(), vue.createBlock(_sfc_main$1o, {
14697
14760
  key: 1,
14698
14761
  labels: labels.value
14699
14762
  }, null, 8, ["labels"])) : vue.createCommentVNode("", true),
14700
- vue.unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (vue.openBlock(), vue.createBlock(_sfc_main$1o, {
14763
+ vue.unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (vue.openBlock(), vue.createBlock(_sfc_main$1r, {
14701
14764
  key: 2,
14702
14765
  labels: labels.value,
14703
14766
  showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
14704
14767
  onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
14705
14768
  }, null, 8, ["labels", "showTotalCount"])) : vue.createCommentVNode("", true)
14706
- ])) : displayHistory.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$f, [
14707
- vue.createVNode(_sfc_main$1m, {
14769
+ ])) : displayHistory.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$g, [
14770
+ vue.createVNode(_sfc_main$1p, {
14708
14771
  options: _ctx.options.history,
14709
14772
  history: history.value,
14710
14773
  onGoToResults: handleGoToResults,
@@ -14729,9 +14792,9 @@ const unbindSearchTriggers = (triggers = [], event) => {
14729
14792
  const elements = getElements(triggers);
14730
14793
  elements.forEach((e2) => e2 == null ? void 0 : e2.removeEventListener(BIND_EVENT, event));
14731
14794
  };
14732
- const _hoisted_1$S = { id: "lupa-search-box" };
14733
- const _hoisted_2$F = { class: "lupa-search-box-wrapper" };
14734
- const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
14795
+ const _hoisted_1$U = { id: "lupa-search-box" };
14796
+ const _hoisted_2$H = { class: "lupa-search-box-wrapper" };
14797
+ const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
14735
14798
  __name: "SearchBox",
14736
14799
  props: {
14737
14800
  options: {},
@@ -14991,9 +15054,9 @@ const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
14991
15054
  };
14992
15055
  return (_ctx, _cache) => {
14993
15056
  var _a2;
14994
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$S, [
14995
- vue.createElementVNode("div", _hoisted_2$F, [
14996
- vue.createVNode(_sfc_main$1p, {
15057
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$U, [
15058
+ vue.createElementVNode("div", _hoisted_2$H, [
15059
+ vue.createVNode(_sfc_main$1s, {
14997
15060
  options: inputOptions.value,
14998
15061
  suggestedValue: suggestedValue.value,
14999
15062
  "can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
@@ -15006,7 +15069,7 @@ const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
15006
15069
  onSearch: handleSearch,
15007
15070
  onClose: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("close"))
15008
15071
  }, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
15009
- opened.value || _ctx.isSearchContainer ? (vue.openBlock(), vue.createBlock(_sfc_main$Y, {
15072
+ opened.value || _ctx.isSearchContainer ? (vue.openBlock(), vue.createBlock(_sfc_main$_, {
15010
15073
  key: 0,
15011
15074
  options: panelOptions.value,
15012
15075
  inputValue: inputValue.value,
@@ -15111,20 +15174,20 @@ const getInitialSearchResults = (options, getQueryParamName, defaultData) => __a
15111
15174
  options.options.onError(e2);
15112
15175
  }
15113
15176
  });
15114
- const _hoisted_1$R = {
15177
+ const _hoisted_1$T = {
15115
15178
  key: 0,
15116
15179
  id: "lupa-search-results-did-you-mean"
15117
15180
  };
15118
- const _hoisted_2$E = {
15181
+ const _hoisted_2$G = {
15119
15182
  key: 0,
15120
15183
  "data-cy": "suggested-search-text-label"
15121
15184
  };
15122
- const _hoisted_3$u = {
15185
+ const _hoisted_3$w = {
15123
15186
  key: 1,
15124
15187
  "data-cy": "did-you-mean-label"
15125
15188
  };
15126
- const _hoisted_4$n = { key: 1 };
15127
- const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
15189
+ const _hoisted_4$o = { key: 1 };
15190
+ const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
15128
15191
  __name: "SearchResultsDidYouMean",
15129
15192
  props: {
15130
15193
  labels: {}
@@ -15156,8 +15219,8 @@ const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
15156
15219
  paramStore.goToResults({ searchText, facet });
15157
15220
  };
15158
15221
  return (_ctx, _cache) => {
15159
- return vue.unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$R, [
15160
- vue.unref(searchResult).suggestedSearchText ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$E, [
15222
+ return vue.unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$T, [
15223
+ vue.unref(searchResult).suggestedSearchText ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$G, [
15161
15224
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
15162
15225
  return vue.openBlock(), vue.createElementBlock("span", { key: index }, [
15163
15226
  vue.createElementVNode("span", {
@@ -15166,7 +15229,7 @@ const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
15166
15229
  ]);
15167
15230
  }), 128))
15168
15231
  ])) : vue.createCommentVNode("", true),
15169
- didYouMeanValue.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$u, [
15232
+ didYouMeanValue.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$w, [
15170
15233
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.labels.didYouMean.split(" "), (label, index) => {
15171
15234
  return vue.openBlock(), vue.createElementBlock("span", { key: index }, [
15172
15235
  label.includes("{1}") ? (vue.openBlock(), vue.createElementBlock("span", {
@@ -15174,7 +15237,7 @@ const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
15174
15237
  class: "lupa-did-you-mean lupa-highlighted-search-text",
15175
15238
  "data-cy": "did-you-mean-value",
15176
15239
  onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
15177
- }, vue.toDisplayString(didYouMeanValue.value) + " ", 1)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$n, vue.toDisplayString(label) + " ", 1))
15240
+ }, vue.toDisplayString(didYouMeanValue.value) + " ", 1)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$o, vue.toDisplayString(label) + " ", 1))
15178
15241
  ]);
15179
15242
  }), 128))
15180
15243
  ])) : vue.createCommentVNode("", true)
@@ -15182,12 +15245,12 @@ const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
15182
15245
  };
15183
15246
  }
15184
15247
  });
15185
- const _hoisted_1$Q = {
15248
+ const _hoisted_1$S = {
15186
15249
  key: 0,
15187
15250
  class: "lupa-search-results-summary"
15188
15251
  };
15189
- const _hoisted_2$D = ["innerHTML"];
15190
- const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
15252
+ const _hoisted_2$F = ["innerHTML"];
15253
+ const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
15191
15254
  __name: "SearchResultsSummary",
15192
15255
  props: {
15193
15256
  label: {},
@@ -15202,8 +15265,8 @@ const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
15202
15265
  return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
15203
15266
  });
15204
15267
  return (_ctx, _cache) => {
15205
- return vue.unref(totalItems) > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$Q, [
15206
- vue.createElementVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$D),
15268
+ return vue.unref(totalItems) > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$S, [
15269
+ vue.createElementVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$F),
15207
15270
  _ctx.clearable ? (vue.openBlock(), vue.createElementBlock("span", {
15208
15271
  key: 0,
15209
15272
  class: "lupa-filter-clear",
@@ -15214,19 +15277,19 @@ const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
15214
15277
  };
15215
15278
  }
15216
15279
  });
15217
- const _hoisted_1$P = {
15280
+ const _hoisted_1$R = {
15218
15281
  key: 0,
15219
15282
  class: "lupa-result-page-title",
15220
15283
  "data-cy": "lupa-result-page-title"
15221
15284
  };
15222
- const _hoisted_2$C = { key: 0 };
15223
- const _hoisted_3$t = {
15285
+ const _hoisted_2$E = { key: 0 };
15286
+ const _hoisted_3$v = {
15224
15287
  key: 1,
15225
15288
  class: "lupa-results-total-count"
15226
15289
  };
15227
- const _hoisted_4$m = { class: "lupa-results-total-count-number" };
15228
- const _hoisted_5$e = ["innerHTML"];
15229
- const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
15290
+ const _hoisted_4$n = { class: "lupa-results-total-count-number" };
15291
+ const _hoisted_5$f = ["innerHTML"];
15292
+ const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
15230
15293
  __name: "SearchResultsTitle",
15231
15294
  props: {
15232
15295
  options: {},
@@ -15265,16 +15328,16 @@ const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
15265
15328
  });
15266
15329
  return (_ctx, _cache) => {
15267
15330
  return vue.openBlock(), vue.createElementBlock("div", null, [
15268
- showSearchTitle.value ? (vue.openBlock(), vue.createElementBlock("h1", _hoisted_1$P, [
15331
+ showSearchTitle.value ? (vue.openBlock(), vue.createElementBlock("h1", _hoisted_1$R, [
15269
15332
  vue.createTextVNode(vue.toDisplayString(_ctx.options.labels.searchResults), 1),
15270
- queryText.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$C, "'" + vue.toDisplayString(queryText.value) + "'", 1)) : vue.createCommentVNode("", true),
15271
- showProductCount.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$t, [
15333
+ queryText.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$E, "'" + vue.toDisplayString(queryText.value) + "'", 1)) : vue.createCommentVNode("", true),
15334
+ showProductCount.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$v, [
15272
15335
  vue.createTextVNode("(" + vue.toDisplayString(searchResultsCountLabel.value), 1),
15273
- vue.createElementVNode("span", _hoisted_4$m, vue.toDisplayString(vue.unref(totalItems)), 1),
15336
+ vue.createElementVNode("span", _hoisted_4$n, vue.toDisplayString(vue.unref(totalItems)), 1),
15274
15337
  vue.createTextVNode(")")
15275
15338
  ])) : vue.createCommentVNode("", true)
15276
15339
  ])) : vue.createCommentVNode("", true),
15277
- _ctx.showSummary ? (vue.openBlock(), vue.createBlock(_sfc_main$V, {
15340
+ _ctx.showSummary ? (vue.openBlock(), vue.createBlock(_sfc_main$X, {
15278
15341
  key: 1,
15279
15342
  label: summaryLabel.value
15280
15343
  }, null, 8, ["label"])) : vue.createCommentVNode("", true),
@@ -15282,21 +15345,21 @@ const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
15282
15345
  key: 2,
15283
15346
  class: "lupa-result-page-description-top",
15284
15347
  innerHTML: descriptionTop.value
15285
- }, null, 8, _hoisted_5$e)) : vue.createCommentVNode("", true)
15348
+ }, null, 8, _hoisted_5$f)) : vue.createCommentVNode("", true)
15286
15349
  ]);
15287
15350
  };
15288
15351
  }
15289
15352
  });
15290
- const _hoisted_1$O = { class: "lupa-search-result-filter-value" };
15291
- const _hoisted_2$B = {
15353
+ const _hoisted_1$Q = { class: "lupa-search-result-filter-value" };
15354
+ const _hoisted_2$D = {
15292
15355
  class: "lupa-current-filter-label",
15293
15356
  "data-cy": "lupa-current-filter-label"
15294
15357
  };
15295
- const _hoisted_3$s = {
15358
+ const _hoisted_3$u = {
15296
15359
  class: "lupa-current-filter-value",
15297
15360
  "data-cy": "lupa-current-filter-value"
15298
15361
  };
15299
- const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
15362
+ const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
15300
15363
  __name: "CurrentFilterDisplay",
15301
15364
  props: {
15302
15365
  filter: {}
@@ -15308,28 +15371,28 @@ const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
15308
15371
  emit("remove", { filter: props.filter });
15309
15372
  };
15310
15373
  return (_ctx, _cache) => {
15311
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$O, [
15374
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$Q, [
15312
15375
  vue.createElementVNode("div", {
15313
15376
  class: "lupa-current-filter-action",
15314
15377
  onClick: handleClick
15315
15378
  }, "⨉"),
15316
- vue.createElementVNode("div", _hoisted_2$B, vue.toDisplayString(_ctx.filter.label) + ": ", 1),
15317
- vue.createElementVNode("div", _hoisted_3$s, vue.toDisplayString(_ctx.filter.value), 1)
15379
+ vue.createElementVNode("div", _hoisted_2$D, vue.toDisplayString(_ctx.filter.label) + ": ", 1),
15380
+ vue.createElementVNode("div", _hoisted_3$u, vue.toDisplayString(_ctx.filter.value), 1)
15318
15381
  ]);
15319
15382
  };
15320
15383
  }
15321
15384
  });
15322
- const _hoisted_1$N = { class: "lupa-filter-title-text" };
15323
- const _hoisted_2$A = {
15385
+ const _hoisted_1$P = { class: "lupa-filter-title-text" };
15386
+ const _hoisted_2$C = {
15324
15387
  key: 0,
15325
15388
  class: "lupa-filter-count"
15326
15389
  };
15327
- const _hoisted_3$r = {
15390
+ const _hoisted_3$t = {
15328
15391
  key: 0,
15329
15392
  class: "filter-values"
15330
15393
  };
15331
- const _hoisted_4$l = { class: "lupa-current-filter-list" };
15332
- const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
15394
+ const _hoisted_4$m = { class: "lupa-current-filter-list" };
15395
+ const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
15333
15396
  __name: "CurrentFilters",
15334
15397
  props: {
15335
15398
  options: {},
@@ -15402,19 +15465,19 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
15402
15465
  class: "lupa-current-filter-title",
15403
15466
  onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
15404
15467
  }, [
15405
- vue.createElementVNode("div", _hoisted_1$N, [
15468
+ vue.createElementVNode("div", _hoisted_1$P, [
15406
15469
  vue.createTextVNode(vue.toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
15407
- _ctx.expandable ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$A, " (" + vue.toDisplayString(vue.unref(currentFilterCount)) + ") ", 1)) : vue.createCommentVNode("", true)
15470
+ _ctx.expandable ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$C, " (" + vue.toDisplayString(vue.unref(currentFilterCount)) + ") ", 1)) : vue.createCommentVNode("", true)
15408
15471
  ]),
15409
15472
  _ctx.expandable ? (vue.openBlock(), vue.createElementBlock("div", {
15410
15473
  key: 0,
15411
15474
  class: vue.normalizeClass(["lupa-filter-title-caret", isOpen.value && "open"])
15412
15475
  }, null, 2)) : vue.createCommentVNode("", true)
15413
15476
  ]),
15414
- !_ctx.expandable || isOpen.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$r, [
15415
- vue.createElementVNode("div", _hoisted_4$l, [
15477
+ !_ctx.expandable || isOpen.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$t, [
15478
+ vue.createElementVNode("div", _hoisted_4$m, [
15416
15479
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(currentDisplayFilters.value, (filter2) => {
15417
- return vue.openBlock(), vue.createBlock(_sfc_main$T, {
15480
+ return vue.openBlock(), vue.createBlock(_sfc_main$V, {
15418
15481
  key: filter2.key + "_" + filter2.value,
15419
15482
  filter: filter2,
15420
15483
  onRemove: handleRemove
@@ -15431,8 +15494,8 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
15431
15494
  };
15432
15495
  }
15433
15496
  });
15434
- const _hoisted_1$M = ["href"];
15435
- const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
15497
+ const _hoisted_1$O = ["href"];
15498
+ const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
15436
15499
  __name: "CategoryFilterItem",
15437
15500
  props: {
15438
15501
  options: {},
@@ -15469,20 +15532,20 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
15469
15532
  "data-cy": "lupa-child-category-item",
15470
15533
  href: urlLink.value,
15471
15534
  onClick: handleNavigation
15472
- }, vue.toDisplayString(title.value), 9, _hoisted_1$M)
15535
+ }, vue.toDisplayString(title.value), 9, _hoisted_1$O)
15473
15536
  ], 2);
15474
15537
  };
15475
15538
  }
15476
15539
  });
15477
- const _hoisted_1$L = {
15540
+ const _hoisted_1$N = {
15478
15541
  class: "lupa-category-filter",
15479
15542
  "data-cy": "lupa-category-filter"
15480
15543
  };
15481
- const _hoisted_2$z = { class: "lupa-category-back" };
15482
- const _hoisted_3$q = ["href"];
15483
- const _hoisted_4$k = ["href"];
15484
- const _hoisted_5$d = { class: "lupa-child-category-list" };
15485
- const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
15544
+ const _hoisted_2$B = { class: "lupa-category-back" };
15545
+ const _hoisted_3$s = ["href"];
15546
+ const _hoisted_4$l = ["href"];
15547
+ const _hoisted_5$e = { class: "lupa-child-category-list" };
15548
+ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
15486
15549
  __name: "CategoryFilter",
15487
15550
  props: {
15488
15551
  options: {}
@@ -15570,14 +15633,14 @@ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
15570
15633
  };
15571
15634
  __expose({ fetch: fetch2 });
15572
15635
  return (_ctx, _cache) => {
15573
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$L, [
15574
- vue.createElementVNode("div", _hoisted_2$z, [
15636
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$N, [
15637
+ vue.createElementVNode("div", _hoisted_2$B, [
15575
15638
  hasBackButton.value ? (vue.openBlock(), vue.createElementBlock("a", {
15576
15639
  key: 0,
15577
15640
  "data-cy": "lupa-category-back",
15578
15641
  href: backUrlLink.value,
15579
15642
  onClick: handleNavigationBack
15580
- }, vue.toDisplayString(backTitle.value), 9, _hoisted_3$q)) : vue.createCommentVNode("", true)
15643
+ }, vue.toDisplayString(backTitle.value), 9, _hoisted_3$s)) : vue.createCommentVNode("", true)
15581
15644
  ]),
15582
15645
  vue.createElementVNode("div", {
15583
15646
  class: vue.normalizeClass(["lupa-current-category", { "lupa-current-category-active": isActive }])
@@ -15587,11 +15650,11 @@ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
15587
15650
  href: parentUrlLink.value,
15588
15651
  class: vue.normalizeClass({ "lupa-title-category": !hasBackButton.value }),
15589
15652
  onClick: handleNavigationParent
15590
- }, vue.toDisplayString(parentTitle.value), 11, _hoisted_4$k)
15653
+ }, vue.toDisplayString(parentTitle.value), 11, _hoisted_4$l)
15591
15654
  ], 2),
15592
- vue.createElementVNode("div", _hoisted_5$d, [
15655
+ vue.createElementVNode("div", _hoisted_5$e, [
15593
15656
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(categoryChildren.value, (child) => {
15594
- return vue.openBlock(), vue.createBlock(_sfc_main$R, {
15657
+ return vue.openBlock(), vue.createBlock(_sfc_main$T, {
15595
15658
  key: getCategoryKey(child),
15596
15659
  item: child,
15597
15660
  options: _ctx.options
@@ -15602,14 +15665,14 @@ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
15602
15665
  };
15603
15666
  }
15604
15667
  });
15605
- const _hoisted_1$K = {
15668
+ const _hoisted_1$M = {
15606
15669
  class: "lupa-search-result-facet-term-values",
15607
15670
  "data-cy": "lupa-search-result-facet-term-values"
15608
15671
  };
15609
- const _hoisted_2$y = ["placeholder"];
15610
- const _hoisted_3$p = { class: "lupa-terms-list" };
15611
- const _hoisted_4$j = ["onClick"];
15612
- const _hoisted_5$c = { class: "lupa-term-checkbox-wrapper" };
15672
+ const _hoisted_2$A = ["placeholder"];
15673
+ const _hoisted_3$r = { class: "lupa-terms-list" };
15674
+ const _hoisted_4$k = ["onClick"];
15675
+ const _hoisted_5$d = { class: "lupa-term-checkbox-wrapper" };
15613
15676
  const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
15614
15677
  const _hoisted_7$6 = { class: "lupa-term-label" };
15615
15678
  const _hoisted_8$2 = {
@@ -15618,7 +15681,7 @@ const _hoisted_8$2 = {
15618
15681
  };
15619
15682
  const _hoisted_9$2 = { key: 0 };
15620
15683
  const _hoisted_10$1 = { key: 1 };
15621
- const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
15684
+ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
15622
15685
  __name: "TermFacet",
15623
15686
  props: {
15624
15687
  options: {},
@@ -15689,17 +15752,17 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
15689
15752
  return selectedItems == null ? void 0 : selectedItems.includes((_b = item.title) == null ? void 0 : _b.toString());
15690
15753
  };
15691
15754
  return (_ctx, _cache) => {
15692
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$K, [
15755
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$M, [
15693
15756
  isFilterable.value ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
15694
15757
  key: 0,
15695
15758
  class: "lupa-term-filter",
15696
15759
  "data-cy": "lupa-term-filter",
15697
15760
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
15698
15761
  placeholder: _ctx.options.labels.facetFilter
15699
- }, null, 8, _hoisted_2$y)), [
15762
+ }, null, 8, _hoisted_2$A)), [
15700
15763
  [vue.vModelText, termFilter.value]
15701
15764
  ]) : vue.createCommentVNode("", true),
15702
- vue.createElementVNode("div", _hoisted_3$p, [
15765
+ vue.createElementVNode("div", _hoisted_3$r, [
15703
15766
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(displayValues.value, (item) => {
15704
15767
  return vue.openBlock(), vue.createElementBlock("div", {
15705
15768
  class: vue.normalizeClass(["lupa-facet-term", { checked: isChecked(item) }]),
@@ -15707,7 +15770,7 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
15707
15770
  key: item.title,
15708
15771
  onClick: ($event) => handleFacetClick(item)
15709
15772
  }, [
15710
- vue.createElementVNode("div", _hoisted_5$c, [
15773
+ vue.createElementVNode("div", _hoisted_5$d, [
15711
15774
  vue.createElementVNode("span", {
15712
15775
  class: vue.normalizeClass(["lupa-term-checkbox", { checked: isChecked(item) }])
15713
15776
  }, null, 2)
@@ -15716,7 +15779,7 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
15716
15779
  vue.createElementVNode("span", _hoisted_7$6, vue.toDisplayString(item.title), 1),
15717
15780
  _ctx.options.showDocumentCount ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_8$2, "(" + vue.toDisplayString(item.count) + ")", 1)) : vue.createCommentVNode("", true)
15718
15781
  ])
15719
- ], 10, _hoisted_4$j);
15782
+ ], 10, _hoisted_4$k);
15720
15783
  }), 128))
15721
15784
  ]),
15722
15785
  displayShowMore.value ? (vue.openBlock(), vue.createElementBlock("div", {
@@ -16707,20 +16770,20 @@ var m = { name: "Slider", emits: ["input", "update:modelValue", "start", "slide"
16707
16770
  m.render = function(e2, t, r, i, n, o) {
16708
16771
  return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps(e2.sliderProps, { ref: "slider" }), null, 16);
16709
16772
  }, m.__file = "src/Slider.vue";
16710
- const _hoisted_1$J = { class: "lupa-search-result-facet-stats-values" };
16711
- const _hoisted_2$x = {
16773
+ const _hoisted_1$L = { class: "lupa-search-result-facet-stats-values" };
16774
+ const _hoisted_2$z = {
16712
16775
  key: 0,
16713
16776
  class: "lupa-stats-facet-summary"
16714
16777
  };
16715
- const _hoisted_3$o = {
16778
+ const _hoisted_3$q = {
16716
16779
  key: 1,
16717
16780
  class: "lupa-stats-facet-summary-input"
16718
16781
  };
16719
- const _hoisted_4$i = {
16782
+ const _hoisted_4$j = {
16720
16783
  key: 0,
16721
16784
  class: "lupa-stats-range-label"
16722
16785
  };
16723
- const _hoisted_5$b = { class: "lupa-stats-from" };
16786
+ const _hoisted_5$c = { class: "lupa-stats-from" };
16724
16787
  const _hoisted_6$7 = ["max", "min", "pattern", "aria-label"];
16725
16788
  const _hoisted_7$5 = { key: 0 };
16726
16789
  const _hoisted_8$1 = /* @__PURE__ */ vue.createElementVNode("div", { class: "lupa-stats-separator" }, null, -1);
@@ -16735,7 +16798,7 @@ const _hoisted_13 = {
16735
16798
  key: 2,
16736
16799
  class: "lupa-stats-slider-wrapper"
16737
16800
  };
16738
- const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
16801
+ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
16739
16802
  __name: "StatsFacet",
16740
16803
  props: {
16741
16804
  options: {},
@@ -16908,11 +16971,11 @@ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
16908
16971
  innerSliderRange.value = value;
16909
16972
  };
16910
16973
  return (_ctx, _cache) => {
16911
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$J, [
16912
- !isInputVisible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$x, vue.toDisplayString(statsSummary.value), 1)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$o, [
16974
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$L, [
16975
+ !isInputVisible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$z, vue.toDisplayString(statsSummary.value), 1)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$q, [
16913
16976
  vue.createElementVNode("div", null, [
16914
- rangeLabelFrom.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$i, vue.toDisplayString(rangeLabelFrom.value), 1)) : vue.createCommentVNode("", true),
16915
- vue.createElementVNode("div", _hoisted_5$b, [
16977
+ rangeLabelFrom.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$j, vue.toDisplayString(rangeLabelFrom.value), 1)) : vue.createCommentVNode("", true),
16978
+ vue.createElementVNode("div", _hoisted_5$c, [
16916
16979
  vue.withDirectives(vue.createElementVNode("input", {
16917
16980
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
16918
16981
  type: "text",
@@ -16975,18 +17038,18 @@ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
16975
17038
  };
16976
17039
  }
16977
17040
  });
16978
- const _hoisted_1$I = { class: "lupa-term-checkbox-wrapper" };
16979
- const _hoisted_2$w = { class: "lupa-term-checkbox-label" };
16980
- const _hoisted_3$n = { class: "lupa-term-label" };
16981
- const _hoisted_4$h = {
17041
+ const _hoisted_1$K = { class: "lupa-term-checkbox-wrapper" };
17042
+ const _hoisted_2$y = { class: "lupa-term-checkbox-label" };
17043
+ const _hoisted_3$p = { class: "lupa-term-label" };
17044
+ const _hoisted_4$i = {
16982
17045
  key: 0,
16983
17046
  class: "lupa-term-count"
16984
17047
  };
16985
- const _hoisted_5$a = {
17048
+ const _hoisted_5$b = {
16986
17049
  key: 0,
16987
17050
  class: "lupa-facet-level"
16988
17051
  };
16989
- const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
17052
+ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
16990
17053
  __name: "HierarchyFacetLevel",
16991
17054
  props: {
16992
17055
  options: {},
@@ -17032,17 +17095,17 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
17032
17095
  "data-cy": "lupa-facet-term",
17033
17096
  onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
17034
17097
  }, [
17035
- vue.createElementVNode("div", _hoisted_1$I, [
17098
+ vue.createElementVNode("div", _hoisted_1$K, [
17036
17099
  vue.createElementVNode("span", {
17037
17100
  class: vue.normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
17038
17101
  }, null, 2)
17039
17102
  ]),
17040
- vue.createElementVNode("div", _hoisted_2$w, [
17041
- vue.createElementVNode("span", _hoisted_3$n, vue.toDisplayString(_ctx.item.title) + vue.toDisplayString(" "), 1),
17042
- _ctx.options.showDocumentCount ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$h, "(" + vue.toDisplayString(_ctx.item.count) + ")", 1)) : vue.createCommentVNode("", true)
17103
+ vue.createElementVNode("div", _hoisted_2$y, [
17104
+ vue.createElementVNode("span", _hoisted_3$p, vue.toDisplayString(_ctx.item.title) + vue.toDisplayString(" "), 1),
17105
+ _ctx.options.showDocumentCount ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$i, "(" + vue.toDisplayString(_ctx.item.count) + ")", 1)) : vue.createCommentVNode("", true)
17043
17106
  ])
17044
17107
  ]),
17045
- showChildren.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$a, [
17108
+ showChildren.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$b, [
17046
17109
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(treeItem.value.children, (itemChild) => {
17047
17110
  return vue.openBlock(), vue.createBlock(_component_HierarchyFacetLevel, {
17048
17111
  key: itemChild.title,
@@ -17058,13 +17121,13 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
17058
17121
  };
17059
17122
  }
17060
17123
  });
17061
- const _hoisted_1$H = {
17124
+ const _hoisted_1$J = {
17062
17125
  class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
17063
17126
  "data-cy": "lupa-search-result-facet-term-values"
17064
17127
  };
17065
- const _hoisted_2$v = { key: 0 };
17066
- const _hoisted_3$m = ["placeholder"];
17067
- const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
17128
+ const _hoisted_2$x = { key: 0 };
17129
+ const _hoisted_3$o = ["placeholder"];
17130
+ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
17068
17131
  __name: "HierarchyFacet",
17069
17132
  props: {
17070
17133
  options: {},
@@ -17114,19 +17177,19 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
17114
17177
  showAll.value = true;
17115
17178
  };
17116
17179
  return (_ctx, _cache) => {
17117
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$H, [
17118
- isFilterable.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$v, [
17180
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$J, [
17181
+ isFilterable.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$x, [
17119
17182
  vue.withDirectives(vue.createElementVNode("input", {
17120
17183
  class: "lupa-term-filter",
17121
17184
  "data-cy": "lupa-term-filter",
17122
17185
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
17123
17186
  placeholder: _ctx.options.labels.facetFilter
17124
- }, null, 8, _hoisted_3$m), [
17187
+ }, null, 8, _hoisted_3$o), [
17125
17188
  [vue.vModelText, termFilter.value]
17126
17189
  ])
17127
17190
  ])) : vue.createCommentVNode("", true),
17128
17191
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(displayValues.value, (item) => {
17129
- return vue.openBlock(), vue.createBlock(_sfc_main$N, {
17192
+ return vue.openBlock(), vue.createBlock(_sfc_main$P, {
17130
17193
  key: item.title,
17131
17194
  options: _ctx.options,
17132
17195
  item,
@@ -17146,20 +17209,20 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
17146
17209
  };
17147
17210
  }
17148
17211
  });
17149
- const _hoisted_1$G = { class: "lupa-facet-label-text" };
17150
- const _hoisted_2$u = {
17212
+ const _hoisted_1$I = { class: "lupa-facet-label-text" };
17213
+ const _hoisted_2$w = {
17151
17214
  key: 0,
17152
17215
  class: "lupa-facet-content",
17153
17216
  "data-cy": "lupa-facet-content"
17154
17217
  };
17155
17218
  const __default__$1 = {
17156
17219
  components: {
17157
- TermFacet: _sfc_main$P,
17158
- StatsFacet: _sfc_main$O,
17159
- HierarchyFacet: _sfc_main$M
17220
+ TermFacet: _sfc_main$R,
17221
+ StatsFacet: _sfc_main$Q,
17222
+ HierarchyFacet: _sfc_main$O
17160
17223
  }
17161
17224
  };
17162
- const _sfc_main$L = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, __default__$1), {
17225
+ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, __default__$1), {
17163
17226
  __name: "FacetDisplay",
17164
17227
  props: {
17165
17228
  options: {},
@@ -17271,12 +17334,12 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadVa
17271
17334
  "data-cy": "lupa-search-result-facet-label",
17272
17335
  onClick: toggleFacet
17273
17336
  }, [
17274
- vue.createElementVNode("div", _hoisted_1$G, vue.toDisplayString(facet.value.label), 1),
17337
+ vue.createElementVNode("div", _hoisted_1$I, vue.toDisplayString(facet.value.label), 1),
17275
17338
  vue.createElementVNode("div", {
17276
17339
  class: vue.normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
17277
17340
  }, null, 2)
17278
17341
  ], 2),
17279
- isOpen.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$u, [
17342
+ isOpen.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$w, [
17280
17343
  (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(facetType.value), {
17281
17344
  facet: facet.value,
17282
17345
  currentFilters: currentFilters.value[facet.value.key],
@@ -17294,12 +17357,12 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadVa
17294
17357
  };
17295
17358
  }
17296
17359
  }));
17297
- const _hoisted_1$F = { class: "lupa-search-result-facet-section" };
17298
- const _hoisted_2$t = {
17360
+ const _hoisted_1$H = { class: "lupa-search-result-facet-section" };
17361
+ const _hoisted_2$v = {
17299
17362
  key: 0,
17300
17363
  class: "lupa-facets-title"
17301
17364
  };
17302
- const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
17365
+ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
17303
17366
  __name: "FacetList",
17304
17367
  props: {
17305
17368
  options: {},
@@ -17333,14 +17396,14 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
17333
17396
  };
17334
17397
  return (_ctx, _cache) => {
17335
17398
  var _a;
17336
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$F, [
17337
- _ctx.options.labels.title ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$t, vue.toDisplayString(_ctx.options.labels.title), 1)) : vue.createCommentVNode("", true),
17399
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$H, [
17400
+ _ctx.options.labels.title ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$v, vue.toDisplayString(_ctx.options.labels.title), 1)) : vue.createCommentVNode("", true),
17338
17401
  vue.createElementVNode("div", {
17339
17402
  class: vue.normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
17340
17403
  }, [
17341
17404
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(displayFacets.value, (facet) => {
17342
17405
  var _a2;
17343
- return vue.openBlock(), vue.createBlock(_sfc_main$L, {
17406
+ return vue.openBlock(), vue.createBlock(_sfc_main$N, {
17344
17407
  key: facet.key,
17345
17408
  facet,
17346
17409
  currentFilters: currentFiltersValue.value,
@@ -17355,8 +17418,8 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
17355
17418
  };
17356
17419
  }
17357
17420
  });
17358
- const _hoisted_1$E = ["onClick"];
17359
- const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
17421
+ const _hoisted_1$G = ["onClick"];
17422
+ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
17360
17423
  __name: "FacetsButton",
17361
17424
  props: {
17362
17425
  options: {}
@@ -17376,13 +17439,13 @@ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
17376
17439
  key: 0,
17377
17440
  class: "lupa-facets-button-filter",
17378
17441
  onClick: vue.withModifiers(handleClick, ["stop"])
17379
- }, vue.toDisplayString(label.value), 9, _hoisted_1$E)) : vue.createCommentVNode("", true);
17442
+ }, vue.toDisplayString(label.value), 9, _hoisted_1$G)) : vue.createCommentVNode("", true);
17380
17443
  };
17381
17444
  }
17382
17445
  });
17383
- const _hoisted_1$D = { class: "lupa-search-result-facets" };
17384
- const _hoisted_2$s = { class: "lupa-facets-filter-button-wrapper" };
17385
- const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
17446
+ const _hoisted_1$F = { class: "lupa-search-result-facets" };
17447
+ const _hoisted_2$u = { class: "lupa-facets-filter-button-wrapper" };
17448
+ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
17386
17449
  __name: "Facets",
17387
17450
  props: {
17388
17451
  options: {},
@@ -17465,8 +17528,8 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
17465
17528
  emit("filter");
17466
17529
  };
17467
17530
  return (_ctx, _cache) => {
17468
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$D, [
17469
- regularFacets.value ? (vue.openBlock(), vue.createBlock(_sfc_main$K, {
17531
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$F, [
17532
+ regularFacets.value ? (vue.openBlock(), vue.createBlock(_sfc_main$M, {
17470
17533
  key: 0,
17471
17534
  options: _ctx.options,
17472
17535
  facets: regularFacets.value,
@@ -17476,8 +17539,8 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
17476
17539
  onSelect: handleFacetSelect,
17477
17540
  onClear: clear
17478
17541
  }, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : vue.createCommentVNode("", true),
17479
- vue.createElementVNode("div", _hoisted_2$s, [
17480
- showFilterButton.value ? (vue.openBlock(), vue.createBlock(_sfc_main$J, {
17542
+ vue.createElementVNode("div", _hoisted_2$u, [
17543
+ showFilterButton.value ? (vue.openBlock(), vue.createBlock(_sfc_main$L, {
17481
17544
  key: 0,
17482
17545
  options: _ctx.options,
17483
17546
  onFilter: filter2
@@ -17487,11 +17550,11 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
17487
17550
  };
17488
17551
  }
17489
17552
  });
17490
- const _hoisted_1$C = {
17553
+ const _hoisted_1$E = {
17491
17554
  id: "lupa-search-result-filters",
17492
17555
  class: "lupa-search-result-filters"
17493
17556
  };
17494
- const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
17557
+ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
17495
17558
  __name: "SearchResultsFilters",
17496
17559
  props: {
17497
17560
  options: {},
@@ -17524,19 +17587,19 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
17524
17587
  __expose({ fetch: fetch2 });
17525
17588
  return (_ctx, _cache) => {
17526
17589
  var _a;
17527
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$C, [
17528
- showCurrentFilters.value ? (vue.openBlock(), vue.createBlock(_sfc_main$S, {
17590
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$E, [
17591
+ showCurrentFilters.value ? (vue.openBlock(), vue.createBlock(_sfc_main$U, {
17529
17592
  key: 0,
17530
17593
  options: _ctx.options.currentFilters,
17531
17594
  expandable: (_a = _ctx.expandable) != null ? _a : false
17532
17595
  }, null, 8, ["options", "expandable"])) : vue.createCommentVNode("", true),
17533
- _ctx.options.categories ? (vue.openBlock(), vue.createBlock(_sfc_main$Q, {
17596
+ _ctx.options.categories ? (vue.openBlock(), vue.createBlock(_sfc_main$S, {
17534
17597
  key: 1,
17535
17598
  options: _ctx.options.categories,
17536
17599
  ref_key: "categoryFilters",
17537
17600
  ref: categoryFilters
17538
17601
  }, null, 8, ["options"])) : vue.createCommentVNode("", true),
17539
- _ctx.options.facets ? (vue.openBlock(), vue.createBlock(_sfc_main$I, {
17602
+ _ctx.options.facets ? (vue.openBlock(), vue.createBlock(_sfc_main$K, {
17540
17603
  key: 2,
17541
17604
  options: _ctx.options.facets,
17542
17605
  onFilter: filter2
@@ -17545,20 +17608,20 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
17545
17608
  };
17546
17609
  }
17547
17610
  });
17548
- const _hoisted_1$B = {
17611
+ const _hoisted_1$D = {
17549
17612
  key: 0,
17550
17613
  class: "lupa-mobile-filter-sidebar"
17551
17614
  };
17552
- const _hoisted_2$r = ["onClick"];
17553
- const _hoisted_3$l = { class: "lupa-mobile-sidebar-content" };
17554
- const _hoisted_4$g = { class: "lupa-sidebar-top" };
17555
- const _hoisted_5$9 = { class: "lupa-sidebar-title" };
17615
+ const _hoisted_2$t = ["onClick"];
17616
+ const _hoisted_3$n = { class: "lupa-mobile-sidebar-content" };
17617
+ const _hoisted_4$h = { class: "lupa-sidebar-top" };
17618
+ const _hoisted_5$a = { class: "lupa-sidebar-title" };
17556
17619
  const _hoisted_6$6 = {
17557
17620
  key: 0,
17558
17621
  class: "lupa-sidebar-filter-count"
17559
17622
  };
17560
17623
  const _hoisted_7$4 = { class: "lupa-sidebar-filter-options" };
17561
- const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
17624
+ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
17562
17625
  __name: "MobileFilterSidebar",
17563
17626
  props: {
17564
17627
  options: {}
@@ -17589,14 +17652,14 @@ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
17589
17652
  handleMobileToggle();
17590
17653
  };
17591
17654
  return (_ctx, _cache) => {
17592
- return isMobileSidebarVisible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$B, [
17655
+ return isMobileSidebarVisible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$D, [
17593
17656
  vue.createElementVNode("div", {
17594
17657
  class: "lupa-sidebar-close",
17595
17658
  onClick: vue.withModifiers(handleMobileToggle, ["stop"])
17596
- }, null, 8, _hoisted_2$r),
17597
- vue.createElementVNode("div", _hoisted_3$l, [
17598
- vue.createElementVNode("div", _hoisted_4$g, [
17599
- vue.createElementVNode("div", _hoisted_5$9, [
17659
+ }, null, 8, _hoisted_2$t),
17660
+ vue.createElementVNode("div", _hoisted_3$n, [
17661
+ vue.createElementVNode("div", _hoisted_4$h, [
17662
+ vue.createElementVNode("div", _hoisted_5$a, [
17600
17663
  vue.createTextVNode(vue.toDisplayString(sidebarTitle.value) + " ", 1),
17601
17664
  isFilterCountVisible.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_6$6, vue.toDisplayString(vue.unref(currentFilterCount)), 1)) : vue.createCommentVNode("", true)
17602
17665
  ]),
@@ -17606,7 +17669,7 @@ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
17606
17669
  })
17607
17670
  ]),
17608
17671
  vue.createElementVNode("div", _hoisted_7$4, [
17609
- vue.createVNode(_sfc_main$H, {
17672
+ vue.createVNode(_sfc_main$J, {
17610
17673
  options: _ctx.options,
17611
17674
  expandable: isActiveFiltersExpanded.value,
17612
17675
  onFilter: filter2
@@ -17617,14 +17680,14 @@ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
17617
17680
  };
17618
17681
  }
17619
17682
  });
17620
- const _hoisted_1$A = { id: "lupa-search-results-breadcrumbs" };
17621
- const _hoisted_2$q = ["href", "onClick"];
17622
- const _hoisted_3$k = {
17683
+ const _hoisted_1$C = { id: "lupa-search-results-breadcrumbs" };
17684
+ const _hoisted_2$s = ["href", "onClick"];
17685
+ const _hoisted_3$m = {
17623
17686
  key: 1,
17624
17687
  class: "lupa-search-results-breadcrumb-text"
17625
17688
  };
17626
- const _hoisted_4$f = { key: 2 };
17627
- const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
17689
+ const _hoisted_4$g = { key: 2 };
17690
+ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
17628
17691
  __name: "SearchResultsBreadcrumbs",
17629
17692
  props: {
17630
17693
  breadcrumbs: {}
@@ -17649,7 +17712,7 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
17649
17712
  handleRoutingEvent(link, event, hasEventRouting.value);
17650
17713
  };
17651
17714
  return (_ctx, _cache) => {
17652
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$A, [
17715
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$C, [
17653
17716
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(breadcrumbsValue.value, (breadcrumb, index) => {
17654
17717
  return vue.openBlock(), vue.createElementBlock("span", {
17655
17718
  class: "lupa-search-results-breadcrumb",
@@ -17663,19 +17726,19 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
17663
17726
  var _a;
17664
17727
  return handleNavigation(e2, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
17665
17728
  }
17666
- }, vue.toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$q)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$k, vue.toDisplayString(getLabel(breadcrumb.label)), 1)),
17667
- index < breadcrumbsValue.value.length - 1 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$f, " / ")) : vue.createCommentVNode("", true)
17729
+ }, vue.toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$s)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$m, vue.toDisplayString(getLabel(breadcrumb.label)), 1)),
17730
+ index < breadcrumbsValue.value.length - 1 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$g, " / ")) : vue.createCommentVNode("", true)
17668
17731
  ]);
17669
17732
  }), 128))
17670
17733
  ]);
17671
17734
  };
17672
17735
  }
17673
17736
  });
17674
- const _hoisted_1$z = {
17737
+ const _hoisted_1$B = {
17675
17738
  id: "lupa-search-result-filters",
17676
17739
  class: "lupa-search-result-filters lupa-search-result-top-filters"
17677
17740
  };
17678
- const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
17741
+ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
17679
17742
  __name: "FiltersTopDropdown",
17680
17743
  props: {
17681
17744
  options: {}
@@ -17687,8 +17750,8 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
17687
17750
  };
17688
17751
  return (_ctx, _cache) => {
17689
17752
  var _a;
17690
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$z, [
17691
- _ctx.options.facets ? (vue.openBlock(), vue.createBlock(_sfc_main$I, {
17753
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$B, [
17754
+ _ctx.options.facets ? (vue.openBlock(), vue.createBlock(_sfc_main$K, {
17692
17755
  key: 0,
17693
17756
  options: _ctx.options.facets,
17694
17757
  "facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
@@ -17699,8 +17762,8 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
17699
17762
  };
17700
17763
  }
17701
17764
  });
17702
- const _hoisted_1$y = { id: "lupa-search-results-layout-selection" };
17703
- const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
17765
+ const _hoisted_1$A = { id: "lupa-search-results-layout-selection" };
17766
+ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
17704
17767
  __name: "SearchResultsLayoutSelection",
17705
17768
  setup(__props) {
17706
17769
  const searchResultStore = useSearchResultStore();
@@ -17711,7 +17774,7 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
17711
17774
  searchResultStore.setLayout(layout2);
17712
17775
  };
17713
17776
  return (_ctx, _cache) => {
17714
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$y, [
17777
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$A, [
17715
17778
  vue.createElementVNode("div", {
17716
17779
  class: vue.normalizeClass([
17717
17780
  "lupa-layout-selection-grid",
@@ -17733,11 +17796,11 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
17733
17796
  };
17734
17797
  }
17735
17798
  });
17736
- const _hoisted_1$x = {
17799
+ const _hoisted_1$z = {
17737
17800
  key: 0,
17738
17801
  class: "lupa-mobile-toggle-filter-count"
17739
17802
  };
17740
- const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
17803
+ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
17741
17804
  __name: "SearchResultsMobileToggle",
17742
17805
  props: {
17743
17806
  label: {},
@@ -17755,26 +17818,26 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
17755
17818
  onClick: handleMobileToggle
17756
17819
  }, [
17757
17820
  vue.createTextVNode(vue.toDisplayString(_ctx.label) + " ", 1),
17758
- _ctx.showFilterCount && vue.unref(currentFilterCount) > 0 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$x, vue.toDisplayString(vue.unref(currentFilterCount)), 1)) : vue.createCommentVNode("", true)
17821
+ _ctx.showFilterCount && vue.unref(currentFilterCount) > 0 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$z, vue.toDisplayString(vue.unref(currentFilterCount)), 1)) : vue.createCommentVNode("", true)
17759
17822
  ], 2);
17760
17823
  };
17761
17824
  }
17762
17825
  });
17763
- const _hoisted_1$w = {
17826
+ const _hoisted_1$y = {
17764
17827
  key: 0,
17765
17828
  id: "lupa-search-results-page-select",
17766
17829
  "data-cy": "lupa-search-results-page-select"
17767
17830
  };
17768
- const _hoisted_2$p = {
17831
+ const _hoisted_2$r = {
17769
17832
  key: 0,
17770
17833
  class: "lupa-page-number-separator"
17771
17834
  };
17772
- const _hoisted_3$j = ["onClick"];
17773
- const _hoisted_4$e = {
17835
+ const _hoisted_3$l = ["onClick"];
17836
+ const _hoisted_4$f = {
17774
17837
  key: 0,
17775
17838
  class: "lupa-page-number-separator"
17776
17839
  };
17777
- const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
17840
+ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
17778
17841
  __name: "SearchResultsPageSelect",
17779
17842
  props: {
17780
17843
  lastPageLabel: {},
@@ -17851,7 +17914,7 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
17851
17914
  }
17852
17915
  };
17853
17916
  return (_ctx, _cache) => {
17854
- return showPagination.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$w, [
17917
+ return showPagination.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$y, [
17855
17918
  showBack.value ? (vue.openBlock(), vue.createElementBlock("div", {
17856
17919
  key: 0,
17857
17920
  class: vue.normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
@@ -17862,7 +17925,7 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
17862
17925
  class: "lupa-page-number lupa-page-number-first",
17863
17926
  onClick: _cache[1] || (_cache[1] = () => handlePageChange(1))
17864
17927
  }, " 1 "),
17865
- showFirstPageSeparator.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$p, "...")) : vue.createCommentVNode("", true)
17928
+ showFirstPageSeparator.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$r, "...")) : vue.createCommentVNode("", true)
17866
17929
  ], 64)) : vue.createCommentVNode("", true),
17867
17930
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(pages.value, (page) => {
17868
17931
  return vue.openBlock(), vue.createElementBlock("div", {
@@ -17873,10 +17936,10 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
17873
17936
  page === _ctx.options.selectedPage ? "lupa-page-number-selected" : ""
17874
17937
  ]),
17875
17938
  "data-cy": "lupa-page-number"
17876
- }, vue.toDisplayString(page), 11, _hoisted_3$j);
17939
+ }, vue.toDisplayString(page), 11, _hoisted_3$l);
17877
17940
  }), 128)),
17878
17941
  showLastPage.value ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
17879
- showLastPageSeparator.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$e, "...")) : vue.createCommentVNode("", true),
17942
+ showLastPageSeparator.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$f, "...")) : vue.createCommentVNode("", true),
17880
17943
  vue.createElementVNode("div", {
17881
17944
  class: "lupa-page-number lupa-page-number-last",
17882
17945
  onClick: _cache[2] || (_cache[2] = () => {
@@ -17895,15 +17958,15 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
17895
17958
  };
17896
17959
  }
17897
17960
  });
17898
- const _hoisted_1$v = {
17961
+ const _hoisted_1$x = {
17899
17962
  id: "lupa-search-results-page-size",
17900
17963
  "data-cy": "lupa-search-results-page-size"
17901
17964
  };
17902
- const _hoisted_2$o = { id: "lupa-select" };
17903
- const _hoisted_3$i = { class: "lupa-select-label" };
17904
- const _hoisted_4$d = ["aria-label"];
17905
- const _hoisted_5$8 = ["value"];
17906
- const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
17965
+ const _hoisted_2$q = { id: "lupa-select" };
17966
+ const _hoisted_3$k = { class: "lupa-select-label" };
17967
+ const _hoisted_4$e = ["aria-label"];
17968
+ const _hoisted_5$9 = ["value"];
17969
+ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
17907
17970
  __name: "SearchResultsPageSize",
17908
17971
  props: {
17909
17972
  labels: {},
@@ -17931,9 +17994,9 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
17931
17994
  });
17932
17995
  };
17933
17996
  return (_ctx, _cache) => {
17934
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$v, [
17935
- vue.createElementVNode("div", _hoisted_2$o, [
17936
- vue.createElementVNode("label", _hoisted_3$i, vue.toDisplayString(label.value), 1),
17997
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$x, [
17998
+ vue.createElementVNode("div", _hoisted_2$q, [
17999
+ vue.createElementVNode("label", _hoisted_3$k, vue.toDisplayString(label.value), 1),
17937
18000
  vue.createElementVNode("select", {
17938
18001
  class: "lupa-select-dropdown",
17939
18002
  "aria-label": label.value,
@@ -17946,23 +18009,23 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
17946
18009
  return vue.openBlock(), vue.createElementBlock("option", {
17947
18010
  key: option,
17948
18011
  value: option
17949
- }, vue.toDisplayString(prefixLabel.value) + vue.toDisplayString(option), 9, _hoisted_5$8);
18012
+ }, vue.toDisplayString(prefixLabel.value) + vue.toDisplayString(option), 9, _hoisted_5$9);
17950
18013
  }), 128))
17951
- ], 40, _hoisted_4$d)
18014
+ ], 40, _hoisted_4$e)
17952
18015
  ])
17953
18016
  ]);
17954
18017
  };
17955
18018
  }
17956
18019
  });
17957
- const _hoisted_1$u = {
18020
+ const _hoisted_1$w = {
17958
18021
  id: "lupa-search-results-sort",
17959
18022
  class: "lupa-search-results-sort"
17960
18023
  };
17961
- const _hoisted_2$n = { id: "lupa-select" };
17962
- const _hoisted_3$h = { class: "lupa-select-label" };
17963
- const _hoisted_4$c = ["aria-label"];
17964
- const _hoisted_5$7 = ["value"];
17965
- const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
18024
+ const _hoisted_2$p = { id: "lupa-select" };
18025
+ const _hoisted_3$j = { class: "lupa-select-label" };
18026
+ const _hoisted_4$d = ["aria-label"];
18027
+ const _hoisted_5$8 = ["value"];
18028
+ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
17966
18029
  __name: "SearchResultsSort",
17967
18030
  props: {
17968
18031
  options: {},
@@ -18011,9 +18074,9 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
18011
18074
  previousKey.value = selectedKey.value;
18012
18075
  };
18013
18076
  return (_ctx, _cache) => {
18014
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$u, [
18015
- vue.createElementVNode("div", _hoisted_2$n, [
18016
- vue.createElementVNode("label", _hoisted_3$h, vue.toDisplayString(_ctx.options.label), 1),
18077
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$w, [
18078
+ vue.createElementVNode("div", _hoisted_2$p, [
18079
+ vue.createElementVNode("label", _hoisted_3$j, vue.toDisplayString(_ctx.options.label), 1),
18017
18080
  vue.withDirectives(vue.createElementVNode("select", {
18018
18081
  class: "lupa-select-dropdown",
18019
18082
  "aria-label": _ctx.options.label,
@@ -18026,9 +18089,9 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
18026
18089
  return vue.openBlock(), vue.createElementBlock("option", {
18027
18090
  key: option.key,
18028
18091
  value: option.key
18029
- }, vue.toDisplayString(option.label), 9, _hoisted_5$7);
18092
+ }, vue.toDisplayString(option.label), 9, _hoisted_5$8);
18030
18093
  }), 128))
18031
- ], 40, _hoisted_4$c), [
18094
+ ], 40, _hoisted_4$d), [
18032
18095
  [vue.vModelSelect, selectedKey.value]
18033
18096
  ])
18034
18097
  ])
@@ -18036,14 +18099,14 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
18036
18099
  };
18037
18100
  }
18038
18101
  });
18039
- const _hoisted_1$t = { class: "lupa-toolbar-left" };
18040
- const _hoisted_2$m = {
18102
+ const _hoisted_1$v = { class: "lupa-toolbar-left" };
18103
+ const _hoisted_2$o = {
18041
18104
  key: 0,
18042
18105
  class: "lupa-toolbar-right-title"
18043
18106
  };
18044
- const _hoisted_3$g = { key: 2 };
18045
- const _hoisted_4$b = { key: 4 };
18046
- const _hoisted_5$6 = { key: 6 };
18107
+ const _hoisted_3$i = { key: 2 };
18108
+ const _hoisted_4$c = { key: 4 };
18109
+ const _hoisted_5$7 = { key: 6 };
18047
18110
  const _hoisted_6$5 = { class: "lupa-toolbar-right" };
18048
18111
  const _hoisted_7$3 = {
18049
18112
  key: 0,
@@ -18051,7 +18114,7 @@ const _hoisted_7$3 = {
18051
18114
  };
18052
18115
  const _hoisted_8 = { key: 2 };
18053
18116
  const _hoisted_9 = { key: 4 };
18054
- const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
18117
+ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
18055
18118
  __name: "SearchResultsToolbar",
18056
18119
  props: {
18057
18120
  options: {},
@@ -18158,34 +18221,34 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
18158
18221
  id: "lupa-search-results-toolbar",
18159
18222
  class: vue.normalizeClass({ "lupa-filter-no-results": !hasResults.value })
18160
18223
  }, [
18161
- vue.createElementVNode("div", _hoisted_1$t, [
18162
- toolbarLeftLabel.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$m, vue.toDisplayString(toolbarLeftLabel.value), 1)) : vue.createCommentVNode("", true),
18163
- showLayoutSelection.value ? (vue.openBlock(), vue.createBlock(_sfc_main$D, { key: 1 })) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$g)),
18164
- showItemSummary.value ? (vue.openBlock(), vue.createBlock(_sfc_main$V, {
18224
+ vue.createElementVNode("div", _hoisted_1$v, [
18225
+ toolbarLeftLabel.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$o, vue.toDisplayString(toolbarLeftLabel.value), 1)) : vue.createCommentVNode("", true),
18226
+ showLayoutSelection.value ? (vue.openBlock(), vue.createBlock(_sfc_main$F, { key: 1 })) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$i)),
18227
+ showItemSummary.value ? (vue.openBlock(), vue.createBlock(_sfc_main$X, {
18165
18228
  key: 3,
18166
18229
  label: searchSummaryLabel.value,
18167
18230
  clearable: vue.unref(hasAnyFilter) && showFilterClear.value,
18168
18231
  onClear: handleClearAll
18169
- }, null, 8, ["label", "clearable"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$b)),
18170
- displayPageSelect.value ? (vue.openBlock(), vue.createBlock(_sfc_main$B, {
18232
+ }, null, 8, ["label", "clearable"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$c)),
18233
+ displayPageSelect.value ? (vue.openBlock(), vue.createBlock(_sfc_main$D, {
18171
18234
  key: 5,
18172
18235
  options: paginationOptions.value.pageSelect,
18173
18236
  "last-page-label": paginationOptions.value.labels.showMore,
18174
18237
  "first-page-label": paginationOptions.value.labels.showLess
18175
- }, null, 8, ["options", "last-page-label", "first-page-label"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$6))
18238
+ }, null, 8, ["options", "last-page-label", "first-page-label"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$7))
18176
18239
  ]),
18177
18240
  vue.createElementVNode("div", _hoisted_6$5, [
18178
18241
  toolbarRightLabel.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$3, vue.toDisplayString(toolbarRightLabel.value), 1)) : vue.createCommentVNode("", true),
18179
- vue.createVNode(_sfc_main$C, {
18242
+ vue.createVNode(_sfc_main$E, {
18180
18243
  label: optionsValue.value.labels.mobileFilterButton,
18181
18244
  "show-filter-count": showMobileFilterCount.value
18182
18245
  }, null, 8, ["label", "show-filter-count"]),
18183
- paginationDisplay.value.pageSize ? (vue.openBlock(), vue.createBlock(_sfc_main$A, {
18246
+ paginationDisplay.value.pageSize ? (vue.openBlock(), vue.createBlock(_sfc_main$C, {
18184
18247
  key: 1,
18185
18248
  options: paginationOptions.value.pageSize,
18186
18249
  labels: paginationOptions.value.labels
18187
18250
  }, null, 8, ["options", "labels"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_8)),
18188
- sortOptions.value ? (vue.openBlock(), vue.createBlock(_sfc_main$z, {
18251
+ sortOptions.value ? (vue.openBlock(), vue.createBlock(_sfc_main$B, {
18189
18252
  key: 3,
18190
18253
  options: sortOptions.value,
18191
18254
  callbacks: callbacks.value
@@ -18195,7 +18258,7 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
18195
18258
  };
18196
18259
  }
18197
18260
  });
18198
- const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
18261
+ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
18199
18262
  __name: "SearchResultsProductImage",
18200
18263
  props: {
18201
18264
  item: {},
@@ -18203,7 +18266,7 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
18203
18266
  },
18204
18267
  setup(__props) {
18205
18268
  return (_ctx, _cache) => {
18206
- return vue.openBlock(), vue.createBlock(_sfc_main$1h, {
18269
+ return vue.openBlock(), vue.createBlock(_sfc_main$1k, {
18207
18270
  item: _ctx.item,
18208
18271
  options: _ctx.options,
18209
18272
  "wrapper-class": "lupa-search-results-image-wrapper",
@@ -18212,16 +18275,16 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
18212
18275
  };
18213
18276
  }
18214
18277
  });
18215
- const _hoisted_1$s = ["title", "innerHTML"];
18216
- const _hoisted_2$l = ["title"];
18217
- const _hoisted_3$f = ["href", "innerHTML"];
18218
- const _hoisted_4$a = ["title"];
18219
- const _hoisted_5$5 = {
18278
+ const _hoisted_1$u = ["title", "innerHTML"];
18279
+ const _hoisted_2$n = ["title"];
18280
+ const _hoisted_3$h = ["href", "innerHTML"];
18281
+ const _hoisted_4$b = ["title"];
18282
+ const _hoisted_5$6 = {
18220
18283
  key: 0,
18221
18284
  class: "lupa-search-results-product-title-text"
18222
18285
  };
18223
18286
  const _hoisted_6$4 = ["href"];
18224
- const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
18287
+ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
18225
18288
  __name: "SearchResultsProductTitle",
18226
18289
  props: {
18227
18290
  item: {},
@@ -18258,7 +18321,7 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
18258
18321
  style: vue.normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
18259
18322
  title: sanitizedTitle.value,
18260
18323
  innerHTML: sanitizedTitle.value
18261
- }, null, 12, _hoisted_1$s)) : isHtml.value && _ctx.options.link ? (vue.openBlock(), vue.createElementBlock("div", {
18324
+ }, null, 12, _hoisted_1$u)) : isHtml.value && _ctx.options.link ? (vue.openBlock(), vue.createElementBlock("div", {
18262
18325
  key: 1,
18263
18326
  class: "lupa-search-results-product-title",
18264
18327
  style: vue.normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
@@ -18269,26 +18332,26 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
18269
18332
  class: "lupa-search-results-product-title-text lupa-title-link",
18270
18333
  innerHTML: sanitizedTitle.value,
18271
18334
  onClick: handleNavigation
18272
- }, null, 8, _hoisted_3$f)
18273
- ], 12, _hoisted_2$l)) : (vue.openBlock(), vue.createElementBlock("div", {
18335
+ }, null, 8, _hoisted_3$h)
18336
+ ], 12, _hoisted_2$n)) : (vue.openBlock(), vue.createElementBlock("div", {
18274
18337
  key: 2,
18275
18338
  class: "lupa-search-results-product-title",
18276
18339
  style: vue.normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
18277
18340
  title: title.value
18278
18341
  }, [
18279
- !_ctx.options.link ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_5$5, vue.toDisplayString(title.value), 1)) : vue.createCommentVNode("", true),
18342
+ !_ctx.options.link ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_5$6, vue.toDisplayString(title.value), 1)) : vue.createCommentVNode("", true),
18280
18343
  _ctx.options.link ? (vue.openBlock(), vue.createElementBlock("a", {
18281
18344
  key: 1,
18282
18345
  href: _ctx.link,
18283
18346
  class: "lupa-search-results-product-title-text lupa-title-link",
18284
18347
  onClick: handleNavigation
18285
18348
  }, vue.toDisplayString(title.value), 9, _hoisted_6$4)) : vue.createCommentVNode("", true)
18286
- ], 12, _hoisted_4$a));
18349
+ ], 12, _hoisted_4$b));
18287
18350
  };
18288
18351
  }
18289
18352
  });
18290
- const _hoisted_1$r = ["innerHTML"];
18291
- const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
18353
+ const _hoisted_1$t = ["innerHTML"];
18354
+ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
18292
18355
  __name: "SearchResultsProductDescription",
18293
18356
  props: {
18294
18357
  item: {},
@@ -18315,7 +18378,7 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
18315
18378
  class: "lupa-search-results-product-description",
18316
18379
  style: vue.normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
18317
18380
  innerHTML: sanitizedDescription.value
18318
- }, null, 12, _hoisted_1$r)) : (vue.openBlock(), vue.createElementBlock("div", {
18381
+ }, null, 12, _hoisted_1$t)) : (vue.openBlock(), vue.createElementBlock("div", {
18319
18382
  key: 1,
18320
18383
  class: "lupa-search-results-product-description",
18321
18384
  style: vue.normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
@@ -18323,15 +18386,15 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
18323
18386
  };
18324
18387
  }
18325
18388
  });
18326
- const _hoisted_1$q = { id: "lupa-search-results-rating" };
18327
- const _hoisted_2$k = { class: "lupa-ratings" };
18328
- const _hoisted_3$e = { class: "lupa-ratings-base" };
18329
- const _hoisted_4$9 = ["innerHTML"];
18330
- const _hoisted_5$4 = { class: "lupa-rating-wrapper" };
18389
+ const _hoisted_1$s = { id: "lupa-search-results-rating" };
18390
+ const _hoisted_2$m = { class: "lupa-ratings" };
18391
+ const _hoisted_3$g = { class: "lupa-ratings-base" };
18392
+ const _hoisted_4$a = ["innerHTML"];
18393
+ const _hoisted_5$5 = { class: "lupa-rating-wrapper" };
18331
18394
  const _hoisted_6$3 = ["innerHTML"];
18332
18395
  const _hoisted_7$2 = ["href"];
18333
18396
  const STAR_COUNT = 5;
18334
- const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
18397
+ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
18335
18398
  __name: "SearchResultsProductRating",
18336
18399
  props: {
18337
18400
  item: {},
@@ -18352,7 +18415,13 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
18352
18415
  return new Array(STAR_COUNT).fill(RATING_STAR_HTML);
18353
18416
  });
18354
18417
  const ratingPercentage = vue.computed(() => {
18355
- return props.options.getRatingPercentage ? props.options.getRatingPercentage(props.item) : currentRating.value;
18418
+ if (props.options.getRatingPercentage) {
18419
+ return props.options.getRatingPercentage(props.item);
18420
+ }
18421
+ if (props.options.maxRating) {
18422
+ return currentRating.value / props.options.maxRating * 100;
18423
+ }
18424
+ return currentRating.value;
18356
18425
  });
18357
18426
  const ratingLink = vue.computed(() => {
18358
18427
  var _a;
@@ -18362,18 +18431,18 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
18362
18431
  return generateLink(props.options.links.ratingDetails, props.item);
18363
18432
  });
18364
18433
  return (_ctx, _cache) => {
18365
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$q, [
18366
- vue.createElementVNode("div", _hoisted_2$k, [
18367
- vue.createElementVNode("div", _hoisted_3$e, [
18434
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$s, [
18435
+ vue.createElementVNode("div", _hoisted_2$m, [
18436
+ vue.createElementVNode("div", _hoisted_3$g, [
18368
18437
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(baseStars.value, (star, index) => {
18369
18438
  return vue.openBlock(), vue.createElementBlock("div", {
18370
18439
  key: index,
18371
18440
  innerHTML: star,
18372
18441
  class: "lupa-rating lupa-rating-not-highlighted"
18373
- }, null, 8, _hoisted_4$9);
18442
+ }, null, 8, _hoisted_4$a);
18374
18443
  }), 128))
18375
18444
  ]),
18376
- vue.createElementVNode("div", _hoisted_5$4, [
18445
+ vue.createElementVNode("div", _hoisted_5$5, [
18377
18446
  vue.createElementVNode("div", {
18378
18447
  class: "lupa-ratings-highlighted",
18379
18448
  style: vue.normalizeStyle({ width: ratingPercentage.value + "%" })
@@ -18396,11 +18465,11 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
18396
18465
  };
18397
18466
  }
18398
18467
  });
18399
- const _hoisted_1$p = {
18468
+ const _hoisted_1$r = {
18400
18469
  class: "lupa-search-results-product-regular-price",
18401
18470
  "data-cy": "lupa-search-results-product-regular-price"
18402
18471
  };
18403
- const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
18472
+ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
18404
18473
  __name: "SearchResultsProductRegularPrice",
18405
18474
  props: {
18406
18475
  item: {},
@@ -18418,11 +18487,11 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
18418
18487
  );
18419
18488
  });
18420
18489
  return (_ctx, _cache) => {
18421
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$p, vue.toDisplayString(price.value), 1);
18490
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$r, vue.toDisplayString(price.value), 1);
18422
18491
  };
18423
18492
  }
18424
18493
  });
18425
- const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
18494
+ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
18426
18495
  __name: "SearchResultsProductPrice",
18427
18496
  props: {
18428
18497
  item: {},
@@ -18452,10 +18521,10 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
18452
18521
  };
18453
18522
  }
18454
18523
  });
18455
- const _hoisted_1$o = { class: "lupa-search-results-add-to-cart-wrapper" };
18456
- const _hoisted_2$j = { class: "lupa-search-results-product-addtocart" };
18457
- const _hoisted_3$d = ["onClick", "disabled"];
18458
- const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
18524
+ const _hoisted_1$q = { class: "lupa-search-results-add-to-cart-wrapper" };
18525
+ const _hoisted_2$l = { class: "lupa-search-results-product-addtocart" };
18526
+ const _hoisted_3$f = ["id", "disabled", "onClick"];
18527
+ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
18459
18528
  __name: "SearchResultsProductAddToCart",
18460
18529
  props: {
18461
18530
  item: {},
@@ -18475,11 +18544,16 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
18475
18544
  const label = vue.computed(() => {
18476
18545
  return props.options.labels.addToCart;
18477
18546
  });
18547
+ const id = vue.computed(() => {
18548
+ var _a;
18549
+ const id2 = (_a = props.item.id) != null ? _a : "";
18550
+ return `lupa-add-to-cart-${id2}`;
18551
+ });
18478
18552
  const handleClick = () => __async(this, null, function* () {
18479
18553
  loading.value = true;
18480
18554
  if (props.options.emitEvent) {
18481
18555
  const event = new CustomEvent(props.options.emitEvent, { detail: { item: props.item } });
18482
- window.dispatchEvent(event);
18556
+ document.dispatchEvent(event);
18483
18557
  }
18484
18558
  if (props.options.action) {
18485
18559
  yield props.options.action(props.item, addToCartAmount.value);
@@ -18488,25 +18562,26 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
18488
18562
  loading.value = false;
18489
18563
  });
18490
18564
  return (_ctx, _cache) => {
18491
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$o, [
18492
- vue.createElementVNode("div", _hoisted_2$j, [
18565
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$q, [
18566
+ vue.createElementVNode("div", _hoisted_2$l, [
18493
18567
  vue.createElementVNode("button", {
18494
- onClick: vue.withModifiers(handleClick, ["stop"]),
18568
+ id: id.value,
18495
18569
  class: vue.normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
18496
18570
  "data-cy": "lupa-add-to-cart",
18497
- disabled: !inStockValue.value || loading.value
18498
- }, vue.toDisplayString(label.value), 11, _hoisted_3$d)
18571
+ disabled: !inStockValue.value || loading.value,
18572
+ onClick: vue.withModifiers(handleClick, ["stop"])
18573
+ }, vue.toDisplayString(label.value), 11, _hoisted_3$f)
18499
18574
  ])
18500
18575
  ]);
18501
18576
  };
18502
18577
  }
18503
18578
  });
18504
- const _hoisted_1$n = ["innerHTML"];
18505
- const _hoisted_2$i = { key: 0 };
18506
- const _hoisted_3$c = { key: 1 };
18507
- const _hoisted_4$8 = { class: "lupa-search-box-custom-label" };
18508
- const _hoisted_5$3 = { class: "lupa-search-box-custom-text" };
18509
- const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
18579
+ const _hoisted_1$p = ["innerHTML"];
18580
+ const _hoisted_2$k = { key: 0 };
18581
+ const _hoisted_3$e = { key: 1 };
18582
+ const _hoisted_4$9 = { class: "lupa-search-box-custom-label" };
18583
+ const _hoisted_5$4 = { class: "lupa-search-box-custom-text" };
18584
+ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
18510
18585
  __name: "SearchResultsProductCustom",
18511
18586
  props: {
18512
18587
  item: {},
@@ -18544,20 +18619,20 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
18544
18619
  key: 0,
18545
18620
  class: className.value,
18546
18621
  innerHTML: text.value
18547
- }, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$n)) : (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
18622
+ }, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$p)) : (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
18548
18623
  key: 1,
18549
18624
  class: className.value
18550
18625
  }, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
18551
- !label.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$i, vue.toDisplayString(text.value), 1)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$c, [
18552
- vue.createElementVNode("div", _hoisted_4$8, vue.toDisplayString(label.value), 1),
18553
- vue.createElementVNode("div", _hoisted_5$3, vue.toDisplayString(text.value), 1)
18626
+ !label.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$k, vue.toDisplayString(text.value), 1)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$e, [
18627
+ vue.createElementVNode("div", _hoisted_4$9, vue.toDisplayString(label.value), 1),
18628
+ vue.createElementVNode("div", _hoisted_5$4, vue.toDisplayString(text.value), 1)
18554
18629
  ]))
18555
18630
  ], 16));
18556
18631
  };
18557
18632
  }
18558
18633
  });
18559
- const _hoisted_1$m = ["innerHTML"];
18560
- const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
18634
+ const _hoisted_1$o = ["innerHTML"];
18635
+ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
18561
18636
  __name: "SearchResultsProductCustomHtmlElement",
18562
18637
  props: {
18563
18638
  item: {},
@@ -18588,15 +18663,15 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
18588
18663
  return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
18589
18664
  class: className.value,
18590
18665
  innerHTML: text.value
18591
- }, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$m);
18666
+ }, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$o);
18592
18667
  };
18593
18668
  }
18594
18669
  });
18595
- const _hoisted_1$l = { id: "lupa-search-results-rating" };
18596
- const _hoisted_2$h = ["innerHTML"];
18597
- const _hoisted_3$b = { class: "lupa-ratings" };
18598
- const _hoisted_4$7 = ["href"];
18599
- const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
18670
+ const _hoisted_1$n = { id: "lupa-search-results-rating" };
18671
+ const _hoisted_2$j = ["innerHTML"];
18672
+ const _hoisted_3$d = { class: "lupa-ratings" };
18673
+ const _hoisted_4$8 = ["href"];
18674
+ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
18600
18675
  __name: "SearchResultsProductSingleStarRating",
18601
18676
  props: {
18602
18677
  item: {},
@@ -18624,35 +18699,35 @@ const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
18624
18699
  return RATING_STAR_HTML;
18625
18700
  });
18626
18701
  return (_ctx, _cache) => {
18627
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$l, [
18702
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$n, [
18628
18703
  vue.createElementVNode("div", {
18629
18704
  innerHTML: star.value,
18630
18705
  class: "lupa-rating lupa-rating-highlighted"
18631
- }, null, 8, _hoisted_2$h),
18632
- vue.createElementVNode("div", _hoisted_3$b, vue.toDisplayString(rating.value), 1),
18706
+ }, null, 8, _hoisted_2$j),
18707
+ vue.createElementVNode("div", _hoisted_3$d, vue.toDisplayString(rating.value), 1),
18633
18708
  vue.createElementVNode("a", {
18634
18709
  href: ratingLink.value,
18635
18710
  class: "lupa-total-ratings"
18636
- }, vue.toDisplayString(totalRatings.value), 9, _hoisted_4$7)
18711
+ }, vue.toDisplayString(totalRatings.value), 9, _hoisted_4$8)
18637
18712
  ]);
18638
18713
  };
18639
18714
  }
18640
18715
  });
18641
18716
  const __default__ = {
18642
18717
  components: {
18643
- SearchResultsProductImage: _sfc_main$x,
18644
- SearchResultsProductTitle: _sfc_main$w,
18645
- SearchResultsProductDescription: _sfc_main$v,
18646
- SearchResultsProductRating: _sfc_main$u,
18647
- SearchResultsProductRegularPrice: _sfc_main$t,
18648
- SearchResultsProductPrice: _sfc_main$s,
18649
- SearchResultsProductAddToCart: _sfc_main$r,
18650
- SearchResultsProductCustom: _sfc_main$q,
18651
- SearchResultsProductCustomHtmlElement: _sfc_main$p,
18652
- SearchResultsProductSingleStarRating: _sfc_main$o
18653
- }
18654
- };
18655
- const _sfc_main$n = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, __default__), {
18718
+ SearchResultsProductImage: _sfc_main$z,
18719
+ SearchResultsProductTitle: _sfc_main$y,
18720
+ SearchResultsProductDescription: _sfc_main$x,
18721
+ SearchResultsProductRating: _sfc_main$w,
18722
+ SearchResultsProductRegularPrice: _sfc_main$v,
18723
+ SearchResultsProductPrice: _sfc_main$u,
18724
+ SearchResultsProductAddToCart: _sfc_main$t,
18725
+ SearchResultsProductCustom: _sfc_main$s,
18726
+ SearchResultsProductCustomHtmlElement: _sfc_main$r,
18727
+ SearchResultsProductSingleStarRating: _sfc_main$q
18728
+ }
18729
+ };
18730
+ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, __default__), {
18656
18731
  __name: "SearchResultsProductCardElement",
18657
18732
  props: {
18658
18733
  item: {},
@@ -18728,13 +18803,13 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadVa
18728
18803
  };
18729
18804
  }
18730
18805
  }));
18731
- const _hoisted_1$k = ["href"];
18732
- const _hoisted_2$g = {
18806
+ const _hoisted_1$m = ["href"];
18807
+ const _hoisted_2$i = {
18733
18808
  key: 0,
18734
18809
  class: "lupa-out-of-stock"
18735
18810
  };
18736
- const _hoisted_3$a = { class: "lupa-search-result-product-details-section" };
18737
- const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
18811
+ const _hoisted_3$c = { class: "lupa-search-result-product-details-section" };
18812
+ const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
18738
18813
  __name: "SearchResultsProductCard",
18739
18814
  props: {
18740
18815
  product: {},
@@ -18886,7 +18961,7 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
18886
18961
  "data-cy": "lupa-search-result-product-card",
18887
18962
  class: ["lupa-search-result-product-card", !isInStock.value ? "lupa-out-of-stock" : ""]
18888
18963
  }, customDocumentHtmlAttributes.value, { onClick: handleClick }), [
18889
- vue.createVNode(_sfc_main$12, { options: badgesOptions.value }, null, 8, ["options"]),
18964
+ vue.createVNode(_sfc_main$14, { options: badgesOptions.value }, null, 8, ["options"]),
18890
18965
  vue.createElementVNode("div", {
18891
18966
  class: vue.normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
18892
18967
  }, [
@@ -18896,7 +18971,7 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
18896
18971
  onClick: handleNavigation
18897
18972
  }, [
18898
18973
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(imageElements.value, (element) => {
18899
- return vue.openBlock(), vue.createBlock(_sfc_main$n, {
18974
+ return vue.openBlock(), vue.createBlock(_sfc_main$p, {
18900
18975
  class: "lupa-search-results-product-element",
18901
18976
  item: _ctx.product,
18902
18977
  element,
@@ -18907,16 +18982,16 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
18907
18982
  onProductEvent: handleProductEvent
18908
18983
  }, null, 8, ["item", "element", "labels", "inStock", "link"]);
18909
18984
  }), 128)),
18910
- vue.createVNode(_sfc_main$12, {
18985
+ vue.createVNode(_sfc_main$14, {
18911
18986
  options: badgesOptions.value,
18912
18987
  position: "image",
18913
18988
  class: "lupa-image-badges"
18914
18989
  }, null, 8, ["options"]),
18915
- ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$g, vue.toDisplayString(labels.value.outOfStock), 1)) : vue.createCommentVNode("", true)
18916
- ], 8, _hoisted_1$k),
18917
- vue.createElementVNode("div", _hoisted_3$a, [
18990
+ ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$i, vue.toDisplayString(labels.value.outOfStock), 1)) : vue.createCommentVNode("", true)
18991
+ ], 8, _hoisted_1$m),
18992
+ vue.createElementVNode("div", _hoisted_3$c, [
18918
18993
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(detailElements.value, (element) => {
18919
- return vue.openBlock(), vue.createBlock(_sfc_main$n, {
18994
+ return vue.openBlock(), vue.createBlock(_sfc_main$p, {
18920
18995
  class: "lupa-search-results-product-element",
18921
18996
  item: _ctx.product,
18922
18997
  element,
@@ -18934,7 +19009,7 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
18934
19009
  class: vue.normalizeClass("lupa-element-group-" + group)
18935
19010
  }, [
18936
19011
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(getGroupElements(group), (element) => {
18937
- return vue.openBlock(), vue.createBlock(_sfc_main$n, {
19012
+ return vue.openBlock(), vue.createBlock(_sfc_main$p, {
18938
19013
  class: "lupa-search-results-product-element",
18939
19014
  item: _ctx.product,
18940
19015
  element,
@@ -18952,23 +19027,23 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
18952
19027
  };
18953
19028
  }
18954
19029
  });
18955
- const _hoisted_1$j = {
19030
+ const _hoisted_1$l = {
18956
19031
  id: "lupa-search-results-similar-queries",
18957
19032
  "data-cy": "lupa-search-results-similar-queries"
18958
19033
  };
18959
- const _hoisted_2$f = { class: "lupa-similar-queries-label" };
18960
- const _hoisted_3$9 = {
19034
+ const _hoisted_2$h = { class: "lupa-similar-queries-label" };
19035
+ const _hoisted_3$b = {
18961
19036
  class: "lupa-similar-query-label",
18962
19037
  "data-cy": "lupa-similar-query-label"
18963
19038
  };
18964
- const _hoisted_4$6 = ["onClick"];
18965
- const _hoisted_5$2 = ["innerHTML"];
19039
+ const _hoisted_4$7 = ["onClick"];
19040
+ const _hoisted_5$3 = ["innerHTML"];
18966
19041
  const _hoisted_6$2 = { key: 0 };
18967
19042
  const _hoisted_7$1 = {
18968
19043
  class: "lupa-products",
18969
19044
  "data-cy": "lupa-products"
18970
19045
  };
18971
- const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
19046
+ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
18972
19047
  __name: "SearchResultsSimilarQueries",
18973
19048
  props: {
18974
19049
  labels: {},
@@ -18998,11 +19073,11 @@ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
18998
19073
  paramsStore.goToResults({ searchText, facet });
18999
19074
  };
19000
19075
  return (_ctx, _cache) => {
19001
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$j, [
19002
- vue.createElementVNode("div", _hoisted_2$f, vue.toDisplayString(_ctx.labels.similarQueries), 1),
19076
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$l, [
19077
+ vue.createElementVNode("div", _hoisted_2$h, vue.toDisplayString(_ctx.labels.similarQueries), 1),
19003
19078
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(similarQueries.value, (similarQuery, index) => {
19004
19079
  return vue.openBlock(), vue.createElementBlock("div", { key: index }, [
19005
- vue.createElementVNode("div", _hoisted_3$9, [
19080
+ vue.createElementVNode("div", _hoisted_3$b, [
19006
19081
  vue.createElementVNode("span", null, vue.toDisplayString(similarQueryLabel.value), 1),
19007
19082
  vue.createElementVNode("span", {
19008
19083
  id: "lupa-similar-query-text-component",
@@ -19012,13 +19087,13 @@ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
19012
19087
  }, [
19013
19088
  vue.createElementVNode("span", {
19014
19089
  innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
19015
- }, null, 8, _hoisted_5$2),
19090
+ }, null, 8, _hoisted_5$3),
19016
19091
  similarQuery.count ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_6$2, " (" + vue.toDisplayString(similarQuery.count) + ")", 1)) : vue.createCommentVNode("", true)
19017
- ], 8, _hoisted_4$6)
19092
+ ], 8, _hoisted_4$7)
19018
19093
  ]),
19019
19094
  vue.createElementVNode("div", _hoisted_7$1, [
19020
19095
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(similarQuery.items, (product, index2) => {
19021
- return vue.openBlock(), vue.createBlock(_sfc_main$m, {
19096
+ return vue.openBlock(), vue.createBlock(_sfc_main$o, {
19022
19097
  style: vue.normalizeStyle(_ctx.columnSize),
19023
19098
  key: getDocumentKey(index2, product),
19024
19099
  product,
@@ -19032,15 +19107,15 @@ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
19032
19107
  };
19033
19108
  }
19034
19109
  });
19035
- const _hoisted_1$i = {
19110
+ const _hoisted_1$k = {
19036
19111
  key: 0,
19037
19112
  class: "lupa-results-additional-panel"
19038
19113
  };
19039
- const _hoisted_2$e = {
19114
+ const _hoisted_2$g = {
19040
19115
  class: "lupa-results-additional-panel-items",
19041
19116
  "data-cy": "lupa-results-additional-panel-items"
19042
19117
  };
19043
- const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
19118
+ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
19044
19119
  __name: "AdditionalPanel",
19045
19120
  props: {
19046
19121
  panel: {},
@@ -19112,10 +19187,10 @@ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
19112
19187
  handleQueryChange();
19113
19188
  });
19114
19189
  return (_ctx, _cache) => {
19115
- return hasResults.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$i, [
19116
- vue.createElementVNode("div", _hoisted_2$e, [
19190
+ return hasResults.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$k, [
19191
+ vue.createElementVNode("div", _hoisted_2$g, [
19117
19192
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(visibleItems.value, (item, index) => {
19118
- return vue.openBlock(), vue.createBlock(_sfc_main$m, {
19193
+ return vue.openBlock(), vue.createBlock(_sfc_main$o, {
19119
19194
  key: index,
19120
19195
  product: item,
19121
19196
  options: _ctx.panel,
@@ -19133,11 +19208,11 @@ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
19133
19208
  };
19134
19209
  }
19135
19210
  });
19136
- const _hoisted_1$h = {
19211
+ const _hoisted_1$j = {
19137
19212
  key: 0,
19138
19213
  class: "lupa-results-additional-panels"
19139
19214
  };
19140
- const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
19215
+ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
19141
19216
  __name: "AdditionalPanels",
19142
19217
  props: {
19143
19218
  options: {},
@@ -19154,9 +19229,9 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
19154
19229
  return locationPanels.value.length > 0;
19155
19230
  });
19156
19231
  return (_ctx, _cache) => {
19157
- return isVisible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$h, [
19232
+ return isVisible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$j, [
19158
19233
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(locationPanels.value, (panel) => {
19159
- return vue.openBlock(), vue.createBlock(_sfc_main$k, {
19234
+ return vue.openBlock(), vue.createBlock(_sfc_main$m, {
19160
19235
  key: panel.queryKey,
19161
19236
  panel,
19162
19237
  options: _ctx.sdkOptions
@@ -19173,29 +19248,29 @@ const _export_sfc = (sfc, props) => {
19173
19248
  }
19174
19249
  return target;
19175
19250
  };
19176
- const _sfc_main$i = {};
19177
- const _hoisted_1$g = { class: "lupa-spinner-wrapper" };
19178
- const _hoisted_2$d = { class: "lupa-spinner" };
19251
+ const _sfc_main$k = {};
19252
+ const _hoisted_1$i = { class: "lupa-spinner-wrapper" };
19253
+ const _hoisted_2$f = { class: "lupa-spinner" };
19179
19254
  function _sfc_render(_ctx, _cache) {
19180
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$g, [
19181
- vue.createElementVNode("div", _hoisted_2$d, [
19255
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$i, [
19256
+ vue.createElementVNode("div", _hoisted_2$f, [
19182
19257
  (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, vue.renderList(12, (x2) => {
19183
19258
  return vue.createElementVNode("div", { key: x2 });
19184
19259
  }), 64))
19185
19260
  ])
19186
19261
  ]);
19187
19262
  }
19188
- const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render]]);
19189
- const _hoisted_1$f = {
19263
+ const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render]]);
19264
+ const _hoisted_1$h = {
19190
19265
  id: "lupa-search-results-similar-results",
19191
19266
  "data-cy": "lupa-search-results-similar-results"
19192
19267
  };
19193
- const _hoisted_2$c = { class: "lupa-similar-results-label" };
19194
- const _hoisted_3$8 = {
19268
+ const _hoisted_2$e = { class: "lupa-similar-results-label" };
19269
+ const _hoisted_3$a = {
19195
19270
  class: "lupa-products",
19196
19271
  "data-cy": "lupa-products"
19197
19272
  };
19198
- const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
19273
+ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
19199
19274
  __name: "SearchResultsSimilarResults",
19200
19275
  props: {
19201
19276
  columnSize: {},
@@ -19211,11 +19286,11 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
19211
19286
  return getProductKey(`${index}`, product, props.productCardOptions.idKey);
19212
19287
  };
19213
19288
  return (_ctx, _cache) => {
19214
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$f, [
19215
- vue.createElementVNode("div", _hoisted_2$c, vue.toDisplayString(_ctx.labels.similarResultsLabel), 1),
19216
- vue.createElementVNode("div", _hoisted_3$8, [
19289
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$h, [
19290
+ vue.createElementVNode("div", _hoisted_2$e, vue.toDisplayString(_ctx.labels.similarResultsLabel), 1),
19291
+ vue.createElementVNode("div", _hoisted_3$a, [
19217
19292
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(similarResults.value.items, (product, index) => {
19218
- return vue.openBlock(), vue.createBlock(_sfc_main$m, {
19293
+ return vue.openBlock(), vue.createBlock(_sfc_main$o, {
19219
19294
  style: vue.normalizeStyle(_ctx.columnSize),
19220
19295
  key: getDocumentKey(index, product),
19221
19296
  product,
@@ -19227,6 +19302,179 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
19227
19302
  };
19228
19303
  }
19229
19304
  });
19305
+ var RelatedQuerySourceType = /* @__PURE__ */ ((RelatedQuerySourceType2) => {
19306
+ RelatedQuerySourceType2["FACETS"] = "facets";
19307
+ return RelatedQuerySourceType2;
19308
+ })(RelatedQuerySourceType || {});
19309
+ const extractFacetsRelatedSource = (source, searchResults) => {
19310
+ var _a, _b, _c, _d, _e;
19311
+ const facet = (_a = searchResults.facets) == null ? void 0 : _a.find((facet2) => facet2.key === source.key);
19312
+ if (!facet) {
19313
+ return [];
19314
+ }
19315
+ if (facet.type === "terms") {
19316
+ return (_c = (_b = facet.items) == null ? void 0 : _b.slice(0, source.count)) == null ? void 0 : _c.map((item) => item.title);
19317
+ }
19318
+ if (facet.type === "hierarchy") {
19319
+ return (_e = (_d = facet.items) == null ? void 0 : _d.slice(0, source.count)) == null ? void 0 : _e.map((item) => item.title);
19320
+ }
19321
+ return [];
19322
+ };
19323
+ const extractRelatedSource = (source, searchResults) => {
19324
+ switch (source.type) {
19325
+ case RelatedQuerySourceType.FACETS:
19326
+ return extractFacetsRelatedSource(source, searchResults);
19327
+ }
19328
+ };
19329
+ const _hoisted_1$g = { class: "lupa-related-query-item" };
19330
+ const _hoisted_2$d = { class: "lupa-related-query-image" };
19331
+ const _hoisted_3$9 = { class: "lupa-related-query-label" };
19332
+ const _hoisted_4$6 = { class: "lupa-related-query-title" };
19333
+ const _hoisted_5$2 = {
19334
+ key: 0,
19335
+ class: "lupa-related-query-count"
19336
+ };
19337
+ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
19338
+ __name: "RelatedQueryPanel",
19339
+ props: {
19340
+ query: {},
19341
+ options: {}
19342
+ },
19343
+ setup(__props) {
19344
+ const props = __props;
19345
+ const loading = vue.ref(false);
19346
+ const relatedQueryResult = vue.ref(null);
19347
+ const optionsStore = useOptionsStore();
19348
+ const { searchResultOptions } = storeToRefs(optionsStore);
19349
+ const mainImage = vue.computed(() => {
19350
+ var _a, _b, _c;
19351
+ return (_c = (_b = (_a = searchResultOptions.value) == null ? void 0 : _a.elements) == null ? void 0 : _b.find((e2) => e2.type === DocumentElementType.IMAGE)) != null ? _c : "";
19352
+ });
19353
+ const image = vue.computed(() => {
19354
+ var _a, _b, _c;
19355
+ return (_c = (_b = (_a = props.options) == null ? void 0 : _a.image) != null ? _b : mainImage == null ? void 0 : mainImage.value) != null ? _c : "";
19356
+ });
19357
+ const queryKey = vue.computed(() => {
19358
+ var _a, _b;
19359
+ return (_b = (_a = props.options) == null ? void 0 : _a.queryKey) != null ? _b : searchResultOptions.value.queryKey;
19360
+ });
19361
+ vue.computed(() => {
19362
+ var _a, _b;
19363
+ return ((_b = (_a = relatedQueryResult.value) == null ? void 0 : _a.items) == null ? void 0 : _b.length) > 0;
19364
+ });
19365
+ const firstResultItem = vue.computed(() => {
19366
+ var _a, _b;
19367
+ return (_b = (_a = relatedQueryResult.value) == null ? void 0 : _a.items) == null ? void 0 : _b[0];
19368
+ });
19369
+ const totalItemCount = vue.computed(() => {
19370
+ var _a, _b;
19371
+ return (_b = (_a = relatedQueryResult.value) == null ? void 0 : _a.total) != null ? _b : 0;
19372
+ });
19373
+ const searchForRelatedQuery = () => __async(this, null, function* () {
19374
+ var _a, _b, _c, _d;
19375
+ if (!props.query) {
19376
+ return;
19377
+ }
19378
+ const lupaQuery = { searchText: (_a = props.query) == null ? void 0 : _a.toLowerCase(), limit: 1 };
19379
+ try {
19380
+ loading.value = true;
19381
+ const result2 = yield LupaSearchSdk.query(
19382
+ queryKey.value,
19383
+ lupaQuery,
19384
+ (_b = searchResultOptions.value) == null ? void 0 : _b.options
19385
+ );
19386
+ if (result2.success) {
19387
+ relatedQueryResult.value = result2;
19388
+ }
19389
+ } catch (error) {
19390
+ (_d = (_c = searchResultOptions.value) == null ? void 0 : _c.options) == null ? void 0 : _d.onError(error);
19391
+ } finally {
19392
+ loading.value = false;
19393
+ }
19394
+ });
19395
+ vue.watch(
19396
+ () => props.query,
19397
+ () => {
19398
+ console.log("query changed", props.query);
19399
+ searchForRelatedQuery();
19400
+ }
19401
+ );
19402
+ vue.onMounted(() => {
19403
+ searchForRelatedQuery();
19404
+ });
19405
+ return (_ctx, _cache) => {
19406
+ var _a;
19407
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$g, [
19408
+ vue.createElementVNode("div", _hoisted_2$d, [
19409
+ firstResultItem.value && image.value ? (vue.openBlock(), vue.createBlock(_sfc_main$1k, {
19410
+ key: 0,
19411
+ "wrapper-class": "lupa-related-query-image-wrapper",
19412
+ "image-class": "lupa-related-query-image",
19413
+ item: firstResultItem.value,
19414
+ options: image.value
19415
+ }, null, 8, ["item", "options"])) : vue.createCommentVNode("", true)
19416
+ ]),
19417
+ vue.createElementVNode("div", _hoisted_3$9, [
19418
+ vue.createElementVNode("span", _hoisted_4$6, vue.toDisplayString(_ctx.query), 1),
19419
+ ((_a = _ctx.options) == null ? void 0 : _a.showCount) ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_5$2, "(" + vue.toDisplayString(totalItemCount.value) + ")", 1)) : vue.createCommentVNode("", true)
19420
+ ])
19421
+ ]);
19422
+ };
19423
+ }
19424
+ });
19425
+ const _hoisted_1$f = {
19426
+ key: 0,
19427
+ class: "lupa-related-queries"
19428
+ };
19429
+ const _hoisted_2$c = {
19430
+ key: 0,
19431
+ class: "lupa-related-queries-title"
19432
+ };
19433
+ const _hoisted_3$8 = ["onClick"];
19434
+ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
19435
+ __name: "RelatedQueries",
19436
+ props: {
19437
+ options: {}
19438
+ },
19439
+ setup(__props) {
19440
+ const props = __props;
19441
+ const searchResultStore = useSearchResultStore();
19442
+ const paramsStore = useParamsStore();
19443
+ const { searchResult } = storeToRefs(searchResultStore);
19444
+ const relatedQueries = vue.computed(() => {
19445
+ if (!props.options || !searchResult.value) {
19446
+ return [];
19447
+ }
19448
+ return extractRelatedSource(props.options.source, searchResult.value);
19449
+ });
19450
+ const hasEnoughRelatedQueries = vue.computed(() => {
19451
+ return relatedQueries.value.length > 1;
19452
+ });
19453
+ const goToResults = ({ searchText }) => {
19454
+ paramsStore.goToResults({ searchText });
19455
+ };
19456
+ return (_ctx, _cache) => {
19457
+ var _a, _b, _c, _d;
19458
+ return _ctx.options && hasEnoughRelatedQueries.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$f, [
19459
+ ((_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) ? (vue.openBlock(), vue.createElementBlock("h3", _hoisted_2$c, vue.toDisplayString((_d = (_c = _ctx.options) == null ? void 0 : _c.labels) == null ? void 0 : _d.title), 1)) : vue.createCommentVNode("", true),
19460
+ vue.createElementVNode("ul", null, [
19461
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(relatedQueries.value, (query) => {
19462
+ return vue.openBlock(), vue.createElementBlock("li", { key: query }, [
19463
+ vue.createElementVNode("a", {
19464
+ onClick: ($event) => goToResults({ searchText: query })
19465
+ }, [
19466
+ vue.createVNode(_sfc_main$i, {
19467
+ options: _ctx.options,
19468
+ query
19469
+ }, null, 8, ["options", "query"])
19470
+ ], 8, _hoisted_3$8)
19471
+ ]);
19472
+ }), 128))
19473
+ ])
19474
+ ])) : vue.createCommentVNode("", true);
19475
+ };
19476
+ }
19477
+ });
19230
19478
  const _hoisted_1$e = { id: "lupa-search-results-products" };
19231
19479
  const _hoisted_2$b = {
19232
19480
  class: "lupa-products",
@@ -19356,19 +19604,27 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
19356
19604
  key: 0,
19357
19605
  class: "lupa-loader"
19358
19606
  })) : vue.createCommentVNode("", true),
19607
+ vue.createVNode(_sfc_main$l, {
19608
+ options: _ctx.options,
19609
+ location: "top",
19610
+ sdkOptions: _ctx.options.options
19611
+ }, null, 8, ["options", "sdkOptions"]),
19612
+ vue.createVNode(_sfc_main$h, {
19613
+ options: _ctx.options.relatedQueries
19614
+ }, null, 8, ["options"]),
19359
19615
  vue.unref(hasResults) ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
19360
- showTopFilters.value ? (vue.openBlock(), vue.createBlock(_sfc_main$E, {
19616
+ showTopFilters.value ? (vue.openBlock(), vue.createBlock(_sfc_main$G, {
19361
19617
  key: 0,
19362
19618
  options: (_a = _ctx.options.filters) != null ? _a : {}
19363
19619
  }, null, 8, ["options"])) : vue.createCommentVNode("", true),
19364
- showMobileFilters.value ? (vue.openBlock(), vue.createBlock(_sfc_main$y, {
19620
+ showMobileFilters.value ? (vue.openBlock(), vue.createBlock(_sfc_main$A, {
19365
19621
  key: 1,
19366
19622
  class: "lupa-toolbar-mobile",
19367
19623
  options: _ctx.options,
19368
19624
  "pagination-location": "top",
19369
19625
  onFilter: filter2
19370
19626
  }, null, 8, ["options"])) : vue.createCommentVNode("", true),
19371
- currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (vue.openBlock(), vue.createBlock(_sfc_main$S, {
19627
+ currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (vue.openBlock(), vue.createBlock(_sfc_main$U, {
19372
19628
  key: 2,
19373
19629
  class: vue.normalizeClass(currentFiltersClass.value),
19374
19630
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -19376,18 +19632,13 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
19376
19632
  expandable: !desktopFiltersExpanded.value
19377
19633
  }, null, 8, ["class", "options", "expandable"])) : vue.createCommentVNode("", true)
19378
19634
  ], 64)) : vue.createCommentVNode("", true),
19379
- vue.createVNode(_sfc_main$j, {
19380
- options: _ctx.options,
19381
- location: "top",
19382
- sdkOptions: _ctx.options.options
19383
- }, null, 8, ["options", "sdkOptions"]),
19384
19635
  vue.unref(hasResults) ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
19385
- vue.createVNode(_sfc_main$y, {
19636
+ vue.createVNode(_sfc_main$A, {
19386
19637
  class: "lupa-toolbar-top",
19387
19638
  options: _ctx.options,
19388
19639
  "pagination-location": "top"
19389
19640
  }, null, 8, ["options"]),
19390
- currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (vue.openBlock(), vue.createBlock(_sfc_main$S, {
19641
+ currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (vue.openBlock(), vue.createBlock(_sfc_main$U, {
19391
19642
  key: 0,
19392
19643
  class: vue.normalizeClass(currentFiltersClass.value),
19393
19644
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -19403,7 +19654,7 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
19403
19654
  options: productCardOptions.value
19404
19655
  });
19405
19656
  }), 128)) : (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 1 }, vue.renderList(vue.unref(searchResult).items, (product, index) => {
19406
- return vue.openBlock(), vue.createBlock(_sfc_main$m, {
19657
+ return vue.openBlock(), vue.createBlock(_sfc_main$o, {
19407
19658
  style: vue.normalizeStyle(columnSize.value),
19408
19659
  key: getProductKeyAction(index, product),
19409
19660
  product,
@@ -19419,12 +19670,12 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
19419
19670
  onClick: goToFirstPage
19420
19671
  }, vue.toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : vue.createCommentVNode("", true)
19421
19672
  ])) : vue.createCommentVNode("", true),
19422
- vue.createVNode(_sfc_main$y, {
19673
+ vue.createVNode(_sfc_main$A, {
19423
19674
  class: "lupa-toolbar-bottom",
19424
19675
  options: _ctx.options,
19425
19676
  "pagination-location": "bottom"
19426
19677
  }, null, 8, ["options"]),
19427
- vue.createVNode(_sfc_main$j, {
19678
+ vue.createVNode(_sfc_main$l, {
19428
19679
  options: _ctx.options,
19429
19680
  location: "bottom",
19430
19681
  sdkOptions: _ctx.options.options
@@ -19434,14 +19685,14 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
19434
19685
  vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(currentQueryText)), 1)
19435
19686
  ])) : vue.createCommentVNode("", true),
19436
19687
  hasSimilarQueries.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$1, [
19437
- vue.createVNode(_sfc_main$l, {
19688
+ vue.createVNode(_sfc_main$n, {
19438
19689
  labels: similarQueriesLabels.value,
19439
19690
  columnSize: columnSize.value,
19440
19691
  productCardOptions: productCardOptions.value
19441
19692
  }, null, 8, ["labels", "columnSize", "productCardOptions"])
19442
19693
  ])) : vue.createCommentVNode("", true),
19443
19694
  hasSimilarResults.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$1, [
19444
- vue.createVNode(_sfc_main$h, {
19695
+ vue.createVNode(_sfc_main$j, {
19445
19696
  labels: similarResultsLabels.value,
19446
19697
  columnSize: columnSize.value,
19447
19698
  productCardOptions: productCardOptions.value
@@ -19510,14 +19761,14 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
19510
19761
  ])) : vue.createCommentVNode("", true),
19511
19762
  vue.createElementVNode("div", _hoisted_4$4, [
19512
19763
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(relatedCategoryChildren), (child) => {
19513
- return vue.openBlock(), vue.createBlock(_sfc_main$R, {
19764
+ return vue.openBlock(), vue.createBlock(_sfc_main$T, {
19514
19765
  key: getCategoryKey(child),
19515
19766
  item: child,
19516
19767
  options: categoryOptions.value
19517
19768
  }, null, 8, ["item", "options"]);
19518
19769
  }), 128))
19519
19770
  ]),
19520
- vue.createVNode(_sfc_main$y, {
19771
+ vue.createVNode(_sfc_main$A, {
19521
19772
  class: "lupa-toolbar-mobile",
19522
19773
  "pagination-location": "top",
19523
19774
  options: _ctx.options
@@ -19749,8 +20000,8 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
19749
20000
  class: vue.normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !vue.unref(hasResults) }])
19750
20001
  }, [
19751
20002
  _ctx.isContainer ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$c, [
19752
- vue.createVNode(_sfc_main$W, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
19753
- vue.createVNode(_sfc_main$U, {
20003
+ vue.createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
20004
+ vue.createVNode(_sfc_main$W, {
19754
20005
  "show-summary": true,
19755
20006
  options: _ctx.options,
19756
20007
  "is-product-list": (_a = _ctx.isProductList) != null ? _a : false
@@ -19760,17 +20011,17 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
19760
20011
  key: 1,
19761
20012
  options: _ctx.options
19762
20013
  }, null, 8, ["options"])) : vue.createCommentVNode("", true),
19763
- _ctx.options.filters ? (vue.openBlock(), vue.createBlock(_sfc_main$G, {
20014
+ _ctx.options.filters ? (vue.openBlock(), vue.createBlock(_sfc_main$I, {
19764
20015
  key: 2,
19765
20016
  options: _ctx.options.filters,
19766
20017
  onFilter: handleParamsChange
19767
20018
  }, null, 8, ["options"])) : vue.createCommentVNode("", true),
19768
- vue.unref(currentQueryText) || _ctx.isProductList ? (vue.openBlock(), vue.createBlock(_sfc_main$F, {
20019
+ vue.unref(currentQueryText) || _ctx.isProductList ? (vue.openBlock(), vue.createBlock(_sfc_main$H, {
19769
20020
  key: 3,
19770
20021
  breadcrumbs: _ctx.options.breadcrumbs
19771
20022
  }, null, 8, ["breadcrumbs"])) : vue.createCommentVNode("", true),
19772
20023
  isTitleResultTopPosition.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$9, [
19773
- showFilterSidebar.value ? (vue.openBlock(), vue.createBlock(_sfc_main$H, {
20024
+ showFilterSidebar.value ? (vue.openBlock(), vue.createBlock(_sfc_main$J, {
19774
20025
  key: 0,
19775
20026
  options: (_b = _ctx.options.filters) != null ? _b : {},
19776
20027
  ref_key: "searchResultsFilters",
@@ -19778,8 +20029,8 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
19778
20029
  onFilter: handleParamsChange
19779
20030
  }, null, 8, ["options"])) : vue.createCommentVNode("", true),
19780
20031
  vue.createElementVNode("div", _hoisted_3$5, [
19781
- vue.createVNode(_sfc_main$W, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
19782
- vue.createVNode(_sfc_main$U, {
20032
+ vue.createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
20033
+ vue.createVNode(_sfc_main$W, {
19783
20034
  options: _ctx.options,
19784
20035
  "is-product-list": (_c = _ctx.isProductList) != null ? _c : false
19785
20036
  }, null, 8, ["options", "is-product-list"]),
@@ -19795,13 +20046,13 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
19795
20046
  }, 8, ["options", "ssr"])
19796
20047
  ])
19797
20048
  ])) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 5 }, [
19798
- vue.createVNode(_sfc_main$W, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
19799
- vue.createVNode(_sfc_main$U, {
20049
+ vue.createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
20050
+ vue.createVNode(_sfc_main$W, {
19800
20051
  options: _ctx.options,
19801
20052
  "is-product-list": (_d = _ctx.isProductList) != null ? _d : false
19802
20053
  }, null, 8, ["options", "is-product-list"]),
19803
20054
  vue.createElementVNode("div", _hoisted_4$3, [
19804
- showFilterSidebar.value ? (vue.openBlock(), vue.createBlock(_sfc_main$H, {
20055
+ showFilterSidebar.value ? (vue.openBlock(), vue.createBlock(_sfc_main$J, {
19805
20056
  key: 0,
19806
20057
  options: (_e = _ctx.options.filters) != null ? _e : {},
19807
20058
  ref_key: "searchResultsFilters",
@@ -25491,7 +25742,7 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
25491
25742
  onClick: vue.withModifiers(innerClick, ["stop"])
25492
25743
  }, [
25493
25744
  vue.createElementVNode("div", _hoisted_2$7, [
25494
- vue.createVNode(_sfc_main$X, {
25745
+ vue.createVNode(_sfc_main$Z, {
25495
25746
  options: fullSearchBoxOptions.value,
25496
25747
  "is-search-container": true,
25497
25748
  ref_key: "searchBox",
@@ -26355,7 +26606,7 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
26355
26606
  key: getProductKeyAction(index, product)
26356
26607
  }, {
26357
26608
  default: vue.withCtx(() => [
26358
- vue.createVNode(_sfc_main$m, {
26609
+ vue.createVNode(_sfc_main$o, {
26359
26610
  product,
26360
26611
  options: _ctx.options,
26361
26612
  "click-tracking-settings": clickTrackingSettings.value
@@ -26368,7 +26619,7 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
26368
26619
  _: 1
26369
26620
  }, 16)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$2, [
26370
26621
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(recommendations.value, (product, index) => {
26371
- return vue.openBlock(), vue.createBlock(_sfc_main$m, {
26622
+ return vue.openBlock(), vue.createBlock(_sfc_main$o, {
26372
26623
  style: vue.normalizeStyle(columnSize.value),
26373
26624
  key: getProductKeyAction(index, product),
26374
26625
  product,
@@ -26631,7 +26882,7 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
26631
26882
  vue.createElementVNode("a", {
26632
26883
  href: getLink(product)
26633
26884
  }, [
26634
- vue.createVNode(_sfc_main$x, {
26885
+ vue.createVNode(_sfc_main$z, {
26635
26886
  item: product,
26636
26887
  options: image.value
26637
26888
  }, null, 8, ["item", "options"])
@@ -26795,7 +27046,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
26795
27046
  return (_ctx, _cache) => {
26796
27047
  return vue.openBlock(), vue.createElementBlock("section", _hoisted_1$3, [
26797
27048
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.searchResults, (product, index) => {
26798
- return vue.openBlock(), vue.createBlock(_sfc_main$m, {
27049
+ return vue.openBlock(), vue.createBlock(_sfc_main$o, {
26799
27050
  class: "lupa-chat-product-card",
26800
27051
  key: getProductKeyAction(index, product),
26801
27052
  product,
@@ -27126,7 +27377,7 @@ exports.DocumentElementType = DocumentElementType;
27126
27377
  exports.LupaSearch = LupaSearch;
27127
27378
  exports.ProductList = _sfc_main$c;
27128
27379
  exports.Recommendations = _sfc_main$a;
27129
- exports.SearchBox = _sfc_main$X;
27380
+ exports.SearchBox = _sfc_main$Z;
27130
27381
  exports.SearchBoxPanelType = SearchBoxPanelType;
27131
27382
  exports.SearchContainer = _sfc_main$b;
27132
27383
  exports.SearchResults = _sfc_main$e;