@getlupa/client 1.14.6 → 1.14.7

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.
@@ -8594,11 +8594,11 @@ const useSearchBoxStore = defineStore("searchBox", () => {
8594
8594
  resetHighlightIndex
8595
8595
  };
8596
8596
  });
8597
- const _hoisted_1$1e = { id: "lupa-search-box-input-container" };
8598
- const _hoisted_2$S = { class: "lupa-input-clear" };
8599
- const _hoisted_3$B = { id: "lupa-search-box-input" };
8600
- const _hoisted_4$s = ["value"];
8601
- const _hoisted_5$i = ["aria-label", "placeholder"];
8597
+ const _hoisted_1$1g = { id: "lupa-search-box-input-container" };
8598
+ const _hoisted_2$U = { class: "lupa-input-clear" };
8599
+ const _hoisted_3$D = { id: "lupa-search-box-input" };
8600
+ const _hoisted_4$t = ["value"];
8601
+ const _hoisted_5$j = ["aria-label", "placeholder"];
8602
8602
  const _hoisted_6$9 = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
8603
8603
  const _hoisted_7$7 = [
8604
8604
  _hoisted_6$9
@@ -8607,7 +8607,7 @@ const _hoisted_8$3 = {
8607
8607
  key: 0,
8608
8608
  class: "lupa-close-label"
8609
8609
  };
8610
- const _sfc_main$1p = /* @__PURE__ */ defineComponent({
8610
+ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
8611
8611
  __name: "SearchBoxInput",
8612
8612
  props: {
8613
8613
  options: {},
@@ -8691,20 +8691,20 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
8691
8691
  };
8692
8692
  __expose({ focus });
8693
8693
  return (_ctx, _cache) => {
8694
- return openBlock(), createElementBlock("div", _hoisted_1$1e, [
8695
- createBaseVNode("div", _hoisted_2$S, [
8694
+ return openBlock(), createElementBlock("div", _hoisted_1$1g, [
8695
+ createBaseVNode("div", _hoisted_2$U, [
8696
8696
  createBaseVNode("div", {
8697
8697
  class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
8698
8698
  onClick: clear2
8699
8699
  }, null, 2)
8700
8700
  ]),
8701
- createBaseVNode("div", _hoisted_3$B, [
8701
+ createBaseVNode("div", _hoisted_3$D, [
8702
8702
  createBaseVNode("input", {
8703
8703
  class: "lupa-hint",
8704
8704
  "aria-hidden": "true",
8705
8705
  value: showHint.value ? suggestedValue.value.item.suggestion : "",
8706
8706
  disabled: ""
8707
- }, null, 8, _hoisted_4$s),
8707
+ }, null, 8, _hoisted_4$t),
8708
8708
  withDirectives(createBaseVNode("input", mergeProps({
8709
8709
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
8710
8710
  }, inputAttributes.value, {
@@ -8718,7 +8718,7 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
8718
8718
  placeholder: labels.value.placeholder,
8719
8719
  onInput: handleInput,
8720
8720
  onFocus: handleFocus
8721
- }), null, 16, _hoisted_5$i), [
8721
+ }), null, 16, _hoisted_5$j), [
8722
8722
  [vModelText, inputValue.value]
8723
8723
  ]),
8724
8724
  _ctx.options.showSubmitButton ? (openBlock(), createElementBlock("button", {
@@ -8737,7 +8737,7 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
8737
8737
  };
8738
8738
  }
8739
8739
  });
8740
- const _sfc_main$1o = /* @__PURE__ */ defineComponent({
8740
+ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
8741
8741
  __name: "SearchBoxMoreResults",
8742
8742
  props: {
8743
8743
  labels: {},
@@ -8769,9 +8769,9 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
8769
8769
  };
8770
8770
  }
8771
8771
  });
8772
- const _hoisted_1$1d = { class: "lupa-search-box-history-item" };
8773
- const _hoisted_2$R = { class: "lupa-search-box-history-item-content" };
8774
- const _sfc_main$1n = /* @__PURE__ */ defineComponent({
8772
+ const _hoisted_1$1f = { class: "lupa-search-box-history-item" };
8773
+ const _hoisted_2$T = { class: "lupa-search-box-history-item-content" };
8774
+ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
8775
8775
  __name: "SearchBoxHistoryItem",
8776
8776
  props: {
8777
8777
  item: {},
@@ -8787,8 +8787,8 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
8787
8787
  emit2("click", { query: props.item });
8788
8788
  };
8789
8789
  return (_ctx, _cache) => {
8790
- return openBlock(), createElementBlock("div", _hoisted_1$1d, [
8791
- createBaseVNode("div", _hoisted_2$R, [
8790
+ return openBlock(), createElementBlock("div", _hoisted_1$1f, [
8791
+ createBaseVNode("div", _hoisted_2$T, [
8792
8792
  createBaseVNode("div", {
8793
8793
  class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
8794
8794
  onClick: click2
@@ -8802,11 +8802,11 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
8802
8802
  };
8803
8803
  }
8804
8804
  });
8805
- const _hoisted_1$1c = {
8805
+ const _hoisted_1$1e = {
8806
8806
  key: 0,
8807
8807
  class: "lupa-search-box-history-panel"
8808
8808
  };
8809
- const _sfc_main$1m = /* @__PURE__ */ defineComponent({
8809
+ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
8810
8810
  __name: "SearchBoxHistoryPanel",
8811
8811
  props: {
8812
8812
  options: {}
@@ -8847,9 +8847,9 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
8847
8847
  }
8848
8848
  };
8849
8849
  return (_ctx, _cache) => {
8850
- return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1c, [
8850
+ return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1e, [
8851
8851
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(history), (item, index) => {
8852
- return openBlock(), createBlock(_sfc_main$1n, {
8852
+ return openBlock(), createBlock(_sfc_main$1p, {
8853
8853
  key: item,
8854
8854
  item,
8855
8855
  highlighted: index === highlightIndex.value,
@@ -8865,15 +8865,15 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
8865
8865
  };
8866
8866
  }
8867
8867
  });
8868
- const _hoisted_1$1b = { class: "lupa-search-box-no-results" };
8869
- const _sfc_main$1l = /* @__PURE__ */ defineComponent({
8868
+ const _hoisted_1$1d = { class: "lupa-search-box-no-results" };
8869
+ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
8870
8870
  __name: "SearchBoxNoResults",
8871
8871
  props: {
8872
8872
  labels: {}
8873
8873
  },
8874
8874
  setup(__props) {
8875
8875
  return (_ctx, _cache) => {
8876
- return openBlock(), createElementBlock("p", _hoisted_1$1b, toDisplayString(_ctx.labels.noResults), 1);
8876
+ return openBlock(), createElementBlock("p", _hoisted_1$1d, toDisplayString(_ctx.labels.noResults), 1);
8877
8877
  };
8878
8878
  }
8879
8879
  });
@@ -8905,26 +8905,26 @@ const generateGridTemplate = (elements) => {
8905
8905
  }
8906
8906
  return gridTemplate.join(" ");
8907
8907
  };
8908
- const _hoisted_1$1a = ["innerHTML"];
8909
- const _hoisted_2$Q = {
8908
+ const _hoisted_1$1c = ["innerHTML"];
8909
+ const _hoisted_2$S = {
8910
8910
  key: 1,
8911
8911
  "data-cy": "lupa-suggestion-value",
8912
8912
  class: "lupa-suggestion-value"
8913
8913
  };
8914
- const _hoisted_3$A = {
8914
+ const _hoisted_3$C = {
8915
8915
  key: 2,
8916
8916
  class: "lupa-suggestion-facet",
8917
8917
  "data-cy": "lupa-suggestion-facet"
8918
8918
  };
8919
- const _hoisted_4$r = {
8919
+ const _hoisted_4$s = {
8920
8920
  class: "lupa-suggestion-facet-label",
8921
8921
  "data-cy": "lupa-suggestion-facet-label"
8922
8922
  };
8923
- const _hoisted_5$h = {
8923
+ const _hoisted_5$i = {
8924
8924
  class: "lupa-suggestion-facet-value",
8925
8925
  "data-cy": "lupa-suggestion-facet-value"
8926
8926
  };
8927
- const _sfc_main$1k = /* @__PURE__ */ defineComponent({
8927
+ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
8928
8928
  __name: "SearchBoxSuggestion",
8929
8929
  props: {
8930
8930
  suggestion: {},
@@ -8960,20 +8960,20 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
8960
8960
  class: "lupa-suggestion-value",
8961
8961
  "data-cy": "lupa-suggestion-value",
8962
8962
  innerHTML: _ctx.suggestion.displayHighlight
8963
- }, null, 8, _hoisted_1$1a)) : (openBlock(), createElementBlock("div", _hoisted_2$Q, toDisplayString(_ctx.suggestion.display), 1)),
8964
- _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$A, [
8965
- createBaseVNode("span", _hoisted_4$r, toDisplayString(facetLabel.value), 1),
8966
- createBaseVNode("span", _hoisted_5$h, toDisplayString(_ctx.suggestion.facet.title), 1)
8963
+ }, null, 8, _hoisted_1$1c)) : (openBlock(), createElementBlock("div", _hoisted_2$S, toDisplayString(_ctx.suggestion.display), 1)),
8964
+ _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$C, [
8965
+ createBaseVNode("span", _hoisted_4$s, toDisplayString(facetLabel.value), 1),
8966
+ createBaseVNode("span", _hoisted_5$i, toDisplayString(_ctx.suggestion.facet.title), 1)
8967
8967
  ])) : createCommentVNode("", true)
8968
8968
  ]);
8969
8969
  };
8970
8970
  }
8971
8971
  });
8972
- const _hoisted_1$19 = {
8972
+ const _hoisted_1$1b = {
8973
8973
  id: "lupa-search-box-suggestions",
8974
8974
  "data-cy": "lupa-search-box-suggestions"
8975
8975
  };
8976
- const _sfc_main$1j = /* @__PURE__ */ defineComponent({
8976
+ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
8977
8977
  __name: "SearchBoxSuggestions",
8978
8978
  props: {
8979
8979
  items: {},
@@ -9033,9 +9033,9 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
9033
9033
  });
9034
9034
  });
9035
9035
  return (_ctx, _cache) => {
9036
- return openBlock(), createElementBlock("div", _hoisted_1$19, [
9036
+ return openBlock(), createElementBlock("div", _hoisted_1$1b, [
9037
9037
  (openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
9038
- return openBlock(), createBlock(_sfc_main$1k, {
9038
+ return openBlock(), createBlock(_sfc_main$1m, {
9039
9039
  key: getSuggestionKey(item),
9040
9040
  class: normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
9041
9041
  suggestion: item,
@@ -9063,7 +9063,7 @@ const debounce$1 = (func, timeout) => {
9063
9063
  }, timeout);
9064
9064
  };
9065
9065
  };
9066
- const _sfc_main$1i = /* @__PURE__ */ defineComponent({
9066
+ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
9067
9067
  __name: "SearchBoxSuggestionsWrapper",
9068
9068
  props: {
9069
9069
  panel: {},
@@ -9105,7 +9105,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
9105
9105
  const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
9106
9106
  watch(() => props.panel.limit, getSuggestionsDebounced);
9107
9107
  return (_ctx, _cache) => {
9108
- return openBlock(), createBlock(_sfc_main$1j, {
9108
+ return openBlock(), createBlock(_sfc_main$1l, {
9109
9109
  items: searchResult.value,
9110
9110
  highlight: _ctx.panel.highlight,
9111
9111
  queryKey: _ctx.panel.queryKey,
@@ -18179,9 +18179,9 @@ const replaceImageWithPlaceholder = (e2, placeholder) => {
18179
18179
  targetImage.src = placeholder;
18180
18180
  }
18181
18181
  };
18182
- const _hoisted_1$18 = ["src"];
18183
- const _hoisted_2$P = ["src"];
18184
- const _sfc_main$1h = /* @__PURE__ */ defineComponent({
18182
+ const _hoisted_1$1a = ["src"];
18183
+ const _hoisted_2$R = ["src"];
18184
+ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
18185
18185
  __name: "ProductImage",
18186
18186
  props: {
18187
18187
  item: {},
@@ -18323,7 +18323,7 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
18323
18323
  }, { alt: imageAlt.value ? imageAlt.value : void 0 }, {
18324
18324
  onError: replaceWithPlaceholder,
18325
18325
  key: finalUrl.value
18326
- }), null, 16, _hoisted_1$18))
18326
+ }), null, 16, _hoisted_1$1a))
18327
18327
  ]),
18328
18328
  _: 1
18329
18329
  })) : (openBlock(), createElementBlock("img", mergeProps({
@@ -18331,12 +18331,12 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
18331
18331
  class: ["lupa-images-main-image", { [_ctx.imageClass]: true }],
18332
18332
  style: styleOverride.value,
18333
18333
  src: finalMainImageUrl.value
18334
- }, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$P))
18334
+ }, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$R))
18335
18335
  ], 38);
18336
18336
  };
18337
18337
  }
18338
18338
  });
18339
- const _sfc_main$1g = /* @__PURE__ */ defineComponent({
18339
+ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
18340
18340
  __name: "SearchBoxProductImage",
18341
18341
  props: {
18342
18342
  item: {},
@@ -18344,7 +18344,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
18344
18344
  },
18345
18345
  setup(__props) {
18346
18346
  return (_ctx, _cache) => {
18347
- return openBlock(), createBlock(_sfc_main$1h, {
18347
+ return openBlock(), createBlock(_sfc_main$1j, {
18348
18348
  item: _ctx.item,
18349
18349
  options: _ctx.options,
18350
18350
  "wrapper-class": "lupa-search-box-image-wrapper",
@@ -18353,12 +18353,12 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
18353
18353
  };
18354
18354
  }
18355
18355
  });
18356
- const _hoisted_1$17 = ["innerHTML"];
18357
- const _hoisted_2$O = {
18356
+ const _hoisted_1$19 = ["innerHTML"];
18357
+ const _hoisted_2$Q = {
18358
18358
  key: 1,
18359
18359
  class: "lupa-search-box-product-title"
18360
18360
  };
18361
- const _sfc_main$1f = /* @__PURE__ */ defineComponent({
18361
+ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
18362
18362
  __name: "SearchBoxProductTitle",
18363
18363
  props: {
18364
18364
  item: {},
@@ -18381,18 +18381,18 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
18381
18381
  key: 0,
18382
18382
  class: "lupa-search-box-product-title",
18383
18383
  innerHTML: sanitizedTitle.value
18384
- }, null, 8, _hoisted_1$17)) : (openBlock(), createElementBlock("div", _hoisted_2$O, [
18384
+ }, null, 8, _hoisted_1$19)) : (openBlock(), createElementBlock("div", _hoisted_2$Q, [
18385
18385
  createBaseVNode("strong", null, toDisplayString(title.value), 1)
18386
18386
  ]));
18387
18387
  };
18388
18388
  }
18389
18389
  });
18390
- const _hoisted_1$16 = ["innerHTML"];
18391
- const _hoisted_2$N = {
18390
+ const _hoisted_1$18 = ["innerHTML"];
18391
+ const _hoisted_2$P = {
18392
18392
  key: 1,
18393
18393
  class: "lupa-search-box-product-description"
18394
18394
  };
18395
- const _sfc_main$1e = /* @__PURE__ */ defineComponent({
18395
+ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
18396
18396
  __name: "SearchBoxProductDescription",
18397
18397
  props: {
18398
18398
  item: {},
@@ -18415,12 +18415,12 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
18415
18415
  key: 0,
18416
18416
  class: "lupa-search-box-product-description",
18417
18417
  innerHTML: sanitizedDescription.value
18418
- }, null, 8, _hoisted_1$16)) : (openBlock(), createElementBlock("div", _hoisted_2$N, toDisplayString(description.value), 1));
18418
+ }, null, 8, _hoisted_1$18)) : (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(description.value), 1));
18419
18419
  };
18420
18420
  }
18421
18421
  });
18422
- const _hoisted_1$15 = { class: "lupa-search-box-product-price" };
18423
- const _sfc_main$1d = /* @__PURE__ */ defineComponent({
18422
+ const _hoisted_1$17 = { class: "lupa-search-box-product-price" };
18423
+ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
18424
18424
  __name: "SearchBoxProductPrice",
18425
18425
  props: {
18426
18426
  item: {},
@@ -18438,13 +18438,13 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
18438
18438
  );
18439
18439
  });
18440
18440
  return (_ctx, _cache) => {
18441
- return openBlock(), createElementBlock("div", _hoisted_1$15, [
18441
+ return openBlock(), createElementBlock("div", _hoisted_1$17, [
18442
18442
  createBaseVNode("strong", null, toDisplayString(price.value), 1)
18443
18443
  ]);
18444
18444
  };
18445
18445
  }
18446
18446
  });
18447
- const _sfc_main$1c = /* @__PURE__ */ defineComponent({
18447
+ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
18448
18448
  __name: "SearchBoxProductRegularPrice",
18449
18449
  props: {
18450
18450
  item: {},
@@ -18471,12 +18471,12 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
18471
18471
  };
18472
18472
  }
18473
18473
  });
18474
- const _hoisted_1$14 = ["innerHTML"];
18475
- const _hoisted_2$M = { key: 0 };
18476
- const _hoisted_3$z = { key: 1 };
18477
- const _hoisted_4$q = { class: "lupa-search-box-custom-label" };
18478
- const _hoisted_5$g = { class: "lupa-search-box-custom-text" };
18479
- const _sfc_main$1b = /* @__PURE__ */ defineComponent({
18474
+ const _hoisted_1$16 = ["innerHTML"];
18475
+ const _hoisted_2$O = { key: 0 };
18476
+ const _hoisted_3$B = { key: 1 };
18477
+ const _hoisted_4$r = { class: "lupa-search-box-custom-label" };
18478
+ const _hoisted_5$h = { class: "lupa-search-box-custom-text" };
18479
+ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
18480
18480
  __name: "SearchBoxProductCustom",
18481
18481
  props: {
18482
18482
  item: {},
@@ -18502,20 +18502,20 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
18502
18502
  key: 0,
18503
18503
  class: [className.value, "lupa-search-box-product-custom"],
18504
18504
  innerHTML: text.value
18505
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$14)) : (openBlock(), createElementBlock("div", mergeProps({
18505
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$16)) : (openBlock(), createElementBlock("div", mergeProps({
18506
18506
  key: 1,
18507
18507
  class: [className.value, "lupa-search-box-product-custom"]
18508
18508
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
18509
- !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$M, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$z, [
18510
- createBaseVNode("div", _hoisted_4$q, toDisplayString(label.value), 1),
18511
- createBaseVNode("div", _hoisted_5$g, toDisplayString(text.value), 1)
18509
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$O, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$B, [
18510
+ createBaseVNode("div", _hoisted_4$r, toDisplayString(label.value), 1),
18511
+ createBaseVNode("div", _hoisted_5$h, toDisplayString(text.value), 1)
18512
18512
  ]))
18513
18513
  ], 16));
18514
18514
  };
18515
18515
  }
18516
18516
  });
18517
- const _hoisted_1$13 = ["innerHTML"];
18518
- const _sfc_main$1a = /* @__PURE__ */ defineComponent({
18517
+ const _hoisted_1$15 = ["innerHTML"];
18518
+ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
18519
18519
  __name: "SearchBoxProductCustomHtml",
18520
18520
  props: {
18521
18521
  item: {},
@@ -18540,7 +18540,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
18540
18540
  return openBlock(), createElementBlock("div", mergeProps({
18541
18541
  class: className.value,
18542
18542
  innerHTML: text.value
18543
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$13);
18543
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$15);
18544
18544
  };
18545
18545
  }
18546
18546
  });
@@ -18774,10 +18774,10 @@ const useSearchResultStore = defineStore("searchResult", () => {
18774
18774
  setRelatedCategoryChildren
18775
18775
  };
18776
18776
  });
18777
- const _hoisted_1$12 = { class: "lupa-search-box-add-to-cart-wrapper" };
18778
- const _hoisted_2$L = { class: "lupa-search-box-product-addtocart" };
18779
- const _hoisted_3$y = ["onClick", "disabled"];
18780
- const _sfc_main$19 = /* @__PURE__ */ defineComponent({
18777
+ const _hoisted_1$14 = { class: "lupa-search-box-add-to-cart-wrapper" };
18778
+ const _hoisted_2$N = { class: "lupa-search-box-product-addtocart" };
18779
+ const _hoisted_3$A = ["onClick", "disabled"];
18780
+ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
18781
18781
  __name: "SearchBoxProductAddToCart",
18782
18782
  props: {
18783
18783
  item: {},
@@ -18810,37 +18810,37 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
18810
18810
  loading.value = false;
18811
18811
  });
18812
18812
  return (_ctx, _cache) => {
18813
- return openBlock(), createElementBlock("div", _hoisted_1$12, [
18814
- createBaseVNode("div", _hoisted_2$L, [
18813
+ return openBlock(), createElementBlock("div", _hoisted_1$14, [
18814
+ createBaseVNode("div", _hoisted_2$N, [
18815
18815
  createBaseVNode("button", {
18816
18816
  onClick: withModifiers(handleClick, ["stop", "prevent"]),
18817
18817
  class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
18818
18818
  "data-cy": "lupa-add-to-cart",
18819
18819
  type: "button",
18820
18820
  disabled: !inStockValue.value || loading.value
18821
- }, toDisplayString(label.value), 11, _hoisted_3$y)
18821
+ }, toDisplayString(label.value), 11, _hoisted_3$A)
18822
18822
  ])
18823
18823
  ]);
18824
18824
  };
18825
18825
  }
18826
18826
  });
18827
- const _hoisted_1$11 = {
18827
+ const _hoisted_1$13 = {
18828
18828
  key: 1,
18829
18829
  class: "lupa-search-box-element-badge-wrapper"
18830
18830
  };
18831
18831
  const __default__$4 = {
18832
18832
  components: {
18833
- SearchBoxProductImage: _sfc_main$1g,
18834
- SearchBoxProductTitle: _sfc_main$1f,
18835
- SearchBoxProductDescription: _sfc_main$1e,
18836
- SearchBoxProductPrice: _sfc_main$1d,
18837
- SearchBoxProductRegularPrice: _sfc_main$1c,
18838
- SearchBoxProductCustom: _sfc_main$1b,
18839
- SearchBoxProductCustomHtml: _sfc_main$1a,
18840
- SearchBoxProductAddToCart: _sfc_main$19
18833
+ SearchBoxProductImage: _sfc_main$1i,
18834
+ SearchBoxProductTitle: _sfc_main$1h,
18835
+ SearchBoxProductDescription: _sfc_main$1g,
18836
+ SearchBoxProductPrice: _sfc_main$1f,
18837
+ SearchBoxProductRegularPrice: _sfc_main$1e,
18838
+ SearchBoxProductCustom: _sfc_main$1d,
18839
+ SearchBoxProductCustomHtml: _sfc_main$1c,
18840
+ SearchBoxProductAddToCart: _sfc_main$1b
18841
18841
  }
18842
18842
  };
18843
- const _sfc_main$18 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
18843
+ const _sfc_main$1a = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
18844
18844
  __name: "SearchBoxProductElement",
18845
18845
  props: {
18846
18846
  item: {},
@@ -18903,7 +18903,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
18903
18903
  class: normalizeClass({ "lupa-loading-dynamic-data": isLoadingDynamicData((_a = _ctx.item) == null ? void 0 : _a.id) }),
18904
18904
  inStock: _ctx.isInStock
18905
18905
  }, null, 8, ["item", "options", "labels", "class", "inStock"])) : createCommentVNode("", true)
18906
- ], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$11, [
18906
+ ], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$13, [
18907
18907
  displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), {
18908
18908
  key: 0,
18909
18909
  item: enhancedItem.value,
@@ -18917,14 +18917,14 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
18917
18917
  };
18918
18918
  }
18919
18919
  }));
18920
- const _hoisted_1$10 = { class: "lupa-badge-title" };
18921
- const _hoisted_2$K = ["src"];
18922
- const _hoisted_3$x = { key: 1 };
18923
- const _hoisted_4$p = {
18920
+ const _hoisted_1$12 = { class: "lupa-badge-title" };
18921
+ const _hoisted_2$M = ["src"];
18922
+ const _hoisted_3$z = { key: 1 };
18923
+ const _hoisted_4$q = {
18924
18924
  key: 0,
18925
18925
  class: "lupa-badge-full-text"
18926
18926
  };
18927
- const _sfc_main$17 = /* @__PURE__ */ defineComponent({
18927
+ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
18928
18928
  __name: "SearchResultGeneratedBadge",
18929
18929
  props: {
18930
18930
  options: {},
@@ -18957,20 +18957,20 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
18957
18957
  class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
18958
18958
  style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
18959
18959
  }, [
18960
- createBaseVNode("span", _hoisted_1$10, [
18960
+ createBaseVNode("span", _hoisted_1$12, [
18961
18961
  image.value ? (openBlock(), createElementBlock("img", {
18962
18962
  key: 0,
18963
18963
  src: image.value
18964
- }, null, 8, _hoisted_2$K)) : createCommentVNode("", true),
18965
- hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$x, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
18964
+ }, null, 8, _hoisted_2$M)) : createCommentVNode("", true),
18965
+ hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$z, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
18966
18966
  ]),
18967
- hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$p, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
18967
+ hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$q, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
18968
18968
  ], 6);
18969
18969
  };
18970
18970
  }
18971
18971
  });
18972
- const _hoisted_1$$ = { class: "lupa-generated-badges" };
18973
- const _sfc_main$16 = /* @__PURE__ */ defineComponent({
18972
+ const _hoisted_1$11 = { class: "lupa-generated-badges" };
18973
+ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
18974
18974
  __name: "SearchResultGeneratedBadges",
18975
18975
  props: {
18976
18976
  options: {}
@@ -18996,9 +18996,9 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
18996
18996
  })).filter((b) => Boolean(b.id));
18997
18997
  });
18998
18998
  return (_ctx, _cache) => {
18999
- return openBlock(), createElementBlock("div", _hoisted_1$$, [
18999
+ return openBlock(), createElementBlock("div", _hoisted_1$11, [
19000
19000
  (openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
19001
- return openBlock(), createBlock(_sfc_main$17, {
19001
+ return openBlock(), createBlock(_sfc_main$19, {
19002
19002
  key: badge.id,
19003
19003
  badge,
19004
19004
  options: _ctx.options
@@ -19008,8 +19008,8 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
19008
19008
  };
19009
19009
  }
19010
19010
  });
19011
- const _hoisted_1$_ = ["innerHTML"];
19012
- const _sfc_main$15 = /* @__PURE__ */ defineComponent({
19011
+ const _hoisted_1$10 = ["innerHTML"];
19012
+ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
19013
19013
  __name: "CustomBadge",
19014
19014
  props: {
19015
19015
  badge: {}
@@ -19030,12 +19030,12 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
19030
19030
  return openBlock(), createElementBlock("div", {
19031
19031
  class: normalizeClass(className.value),
19032
19032
  innerHTML: text.value
19033
- }, null, 10, _hoisted_1$_);
19033
+ }, null, 10, _hoisted_1$10);
19034
19034
  };
19035
19035
  }
19036
19036
  });
19037
- const _hoisted_1$Z = { class: "lupa-text-badges" };
19038
- const _sfc_main$14 = /* @__PURE__ */ defineComponent({
19037
+ const _hoisted_1$$ = { class: "lupa-text-badges" };
19038
+ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
19039
19039
  __name: "TextBadge",
19040
19040
  props: {
19041
19041
  badge: {}
@@ -19050,7 +19050,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
19050
19050
  return badges.value.slice(0, props.badge.maxItems);
19051
19051
  });
19052
19052
  return (_ctx, _cache) => {
19053
- return openBlock(), createElementBlock("div", _hoisted_1$Z, [
19053
+ return openBlock(), createElementBlock("div", _hoisted_1$$, [
19054
19054
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
19055
19055
  return openBlock(), createElementBlock("div", {
19056
19056
  class: "lupa-badge lupa-text-badge",
@@ -19061,9 +19061,9 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
19061
19061
  };
19062
19062
  }
19063
19063
  });
19064
- const _hoisted_1$Y = { class: "lupa-image-badges" };
19065
- const _hoisted_2$J = ["src"];
19066
- const _sfc_main$13 = /* @__PURE__ */ defineComponent({
19064
+ const _hoisted_1$_ = { class: "lupa-image-badges" };
19065
+ const _hoisted_2$L = ["src"];
19066
+ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
19067
19067
  __name: "ImageBadge",
19068
19068
  props: {
19069
19069
  badge: {}
@@ -19083,7 +19083,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
19083
19083
  return `${props.badge.rootImageUrl}${src}`;
19084
19084
  };
19085
19085
  return (_ctx, _cache) => {
19086
- return openBlock(), createElementBlock("div", _hoisted_1$Y, [
19086
+ return openBlock(), createElementBlock("div", _hoisted_1$_, [
19087
19087
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
19088
19088
  return openBlock(), createElementBlock("div", {
19089
19089
  class: "lupa-badge lupa-image-badge",
@@ -19091,22 +19091,22 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
19091
19091
  }, [
19092
19092
  createBaseVNode("img", {
19093
19093
  src: getImageUrl(item)
19094
- }, null, 8, _hoisted_2$J)
19094
+ }, null, 8, _hoisted_2$L)
19095
19095
  ]);
19096
19096
  }), 128))
19097
19097
  ]);
19098
19098
  };
19099
19099
  }
19100
19100
  });
19101
- const _hoisted_1$X = { id: "lupa-search-results-badges" };
19101
+ const _hoisted_1$Z = { id: "lupa-search-results-badges" };
19102
19102
  const __default__$3 = {
19103
19103
  components: {
19104
- CustomBadge: _sfc_main$15,
19105
- TextBadge: _sfc_main$14,
19106
- ImageBadge: _sfc_main$13
19104
+ CustomBadge: _sfc_main$17,
19105
+ TextBadge: _sfc_main$16,
19106
+ ImageBadge: _sfc_main$15
19107
19107
  }
19108
19108
  };
19109
- const _sfc_main$12 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
19109
+ const _sfc_main$14 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
19110
19110
  __name: "SearchResultsBadgeWrapper",
19111
19111
  props: {
19112
19112
  position: {},
@@ -19167,7 +19167,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
19167
19167
  }
19168
19168
  };
19169
19169
  return (_ctx, _cache) => {
19170
- return openBlock(), createElementBlock("div", _hoisted_1$X, [
19170
+ return openBlock(), createElementBlock("div", _hoisted_1$Z, [
19171
19171
  createBaseVNode("div", {
19172
19172
  id: "lupa-badges",
19173
19173
  class: normalizeClass(anchorPosition.value)
@@ -19178,7 +19178,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
19178
19178
  badge
19179
19179
  }, null, 8, ["badge"]);
19180
19180
  }), 128)),
19181
- positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$16, {
19181
+ positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$18, {
19182
19182
  key: 0,
19183
19183
  options: _ctx.options
19184
19184
  }, null, 8, ["options"])) : createCommentVNode("", true)
@@ -19187,13 +19187,13 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
19187
19187
  };
19188
19188
  }
19189
19189
  }));
19190
- const _hoisted_1$W = ["href"];
19191
- const _hoisted_2$I = { class: "lupa-search-box-product-details-section" };
19192
- const _hoisted_3$w = {
19190
+ const _hoisted_1$Y = ["href"];
19191
+ const _hoisted_2$K = { class: "lupa-search-box-product-details-section" };
19192
+ const _hoisted_3$y = {
19193
19193
  key: 0,
19194
19194
  class: "lupa-search-box-product-add-to-cart-section"
19195
19195
  };
19196
- const _sfc_main$11 = /* @__PURE__ */ defineComponent({
19196
+ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
19197
19197
  __name: "SearchBoxProduct",
19198
19198
  props: {
19199
19199
  item: {},
@@ -19279,7 +19279,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
19279
19279
  style: normalizeStyle(imageStyleOverride.value)
19280
19280
  }, [
19281
19281
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
19282
- return openBlock(), createBlock(_sfc_main$18, {
19282
+ return openBlock(), createBlock(_sfc_main$1a, {
19283
19283
  class: "lupa-search-box-product-element",
19284
19284
  item: _ctx.item,
19285
19285
  element,
@@ -19289,10 +19289,10 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
19289
19289
  }, null, 8, ["item", "element", "labels", "link"]);
19290
19290
  }), 128))
19291
19291
  ], 4),
19292
- createBaseVNode("div", _hoisted_2$I, [
19292
+ createBaseVNode("div", _hoisted_2$K, [
19293
19293
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
19294
19294
  var _a;
19295
- return openBlock(), createBlock(_sfc_main$18, {
19295
+ return openBlock(), createBlock(_sfc_main$1a, {
19296
19296
  key: element.key,
19297
19297
  class: "lupa-search-box-product-element",
19298
19298
  item: _ctx.item,
@@ -19303,7 +19303,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
19303
19303
  badgeOptions.value && ((_a = badgeOptions.value) == null ? void 0 : _a.anchorElementKey) === element.key ? {
19304
19304
  name: "badges",
19305
19305
  fn: withCtx(() => [
19306
- createVNode(_sfc_main$12, {
19306
+ createVNode(_sfc_main$14, {
19307
19307
  options: badgeOptions.value,
19308
19308
  position: "card"
19309
19309
  }, null, 8, ["options"])
@@ -19313,8 +19313,8 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
19313
19313
  ]), 1032, ["item", "element", "labels", "link"]);
19314
19314
  }), 128))
19315
19315
  ]),
19316
- addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$w, [
19317
- createVNode(_sfc_main$18, {
19316
+ addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$y, [
19317
+ createVNode(_sfc_main$1a, {
19318
19318
  class: "lupa-search-box-product-element",
19319
19319
  item: _ctx.item,
19320
19320
  element: addToCartElement.value,
@@ -19323,7 +19323,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
19323
19323
  isInStock: isInStock.value
19324
19324
  }, null, 8, ["item", "element", "labels", "link", "isInStock"])
19325
19325
  ])) : createCommentVNode("", true)
19326
- ], 16, _hoisted_1$W);
19326
+ ], 16, _hoisted_1$Y);
19327
19327
  };
19328
19328
  }
19329
19329
  });
@@ -19384,8 +19384,8 @@ const useTrackingStore = defineStore("tracking", () => {
19384
19384
  };
19385
19385
  return { trackSearch, trackResults, trackEvent };
19386
19386
  });
19387
- const _hoisted_1$V = { id: "lupa-search-box-products" };
19388
- const _sfc_main$10 = /* @__PURE__ */ defineComponent({
19387
+ const _hoisted_1$X = { id: "lupa-search-box-products" };
19388
+ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
19389
19389
  __name: "SearchBoxProducts",
19390
19390
  props: {
19391
19391
  items: {},
@@ -19446,7 +19446,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
19446
19446
  handleRoutingEvent(link, event, boxRoutingBehavior.value === "event");
19447
19447
  };
19448
19448
  return (_ctx, _cache) => {
19449
- return openBlock(), createElementBlock("div", _hoisted_1$V, [
19449
+ return openBlock(), createElementBlock("div", _hoisted_1$X, [
19450
19450
  _ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
19451
19451
  return renderSlot(_ctx.$slots, "productCard", {
19452
19452
  key: index,
@@ -19458,7 +19458,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
19458
19458
  itemClicked: handleProductClick
19459
19459
  });
19460
19460
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
19461
- return openBlock(), createBlock(_sfc_main$11, {
19461
+ return openBlock(), createBlock(_sfc_main$13, {
19462
19462
  key: index,
19463
19463
  item,
19464
19464
  panelOptions: _ctx.panelOptions,
@@ -19473,9 +19473,9 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
19473
19473
  };
19474
19474
  }
19475
19475
  });
19476
- const _hoisted_1$U = { class: "lupa-search-box-documents-go-to-results-wrapper" };
19477
- const _hoisted_2$H = { key: 0 };
19478
- const _sfc_main$$ = /* @__PURE__ */ defineComponent({
19476
+ const _hoisted_1$W = { class: "lupa-search-box-documents-go-to-results-wrapper" };
19477
+ const _hoisted_2$J = { key: 0 };
19478
+ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
19479
19479
  __name: "SearchBoxProductsGoToResultsButton",
19480
19480
  props: {
19481
19481
  options: {},
@@ -19505,19 +19505,19 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
19505
19505
  emit2("goToResults");
19506
19506
  };
19507
19507
  return (_ctx, _cache) => {
19508
- return openBlock(), createElementBlock("div", _hoisted_1$U, [
19508
+ return openBlock(), createElementBlock("div", _hoisted_1$W, [
19509
19509
  createBaseVNode("button", {
19510
19510
  class: "lupa-search-box-documents-go-to-results-button",
19511
19511
  onClick: goToResults
19512
19512
  }, [
19513
19513
  createTextVNode(toDisplayString(goToResultsLabel.value) + " ", 1),
19514
- totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$H, " " + toDisplayString(totalCount.value), 1)) : createCommentVNode("", true)
19514
+ totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$J, " " + toDisplayString(totalCount.value), 1)) : createCommentVNode("", true)
19515
19515
  ])
19516
19516
  ]);
19517
19517
  };
19518
19518
  }
19519
19519
  });
19520
- const _sfc_main$_ = /* @__PURE__ */ defineComponent({
19520
+ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
19521
19521
  __name: "SearchBoxProductsWrapper",
19522
19522
  props: {
19523
19523
  panel: {},
@@ -19574,7 +19574,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
19574
19574
  watch(() => props.panel.limit, getItemsDebounced);
19575
19575
  return (_ctx, _cache) => {
19576
19576
  var _a, _b;
19577
- return openBlock(), createBlock(_sfc_main$10, {
19577
+ return openBlock(), createBlock(_sfc_main$12, {
19578
19578
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
19579
19579
  panelOptions: _ctx.panel,
19580
19580
  labels: _ctx.labels,
@@ -19584,7 +19584,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
19584
19584
  default: withCtx(() => {
19585
19585
  var _a2;
19586
19586
  return [
19587
- showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main$$, {
19587
+ showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main$11, {
19588
19588
  key: 0,
19589
19589
  options: _ctx.searchBoxOptions,
19590
19590
  panel: _ctx.panel,
@@ -19605,7 +19605,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
19605
19605
  };
19606
19606
  }
19607
19607
  });
19608
- const _sfc_main$Z = /* @__PURE__ */ defineComponent({
19608
+ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
19609
19609
  __name: "SearchBoxRelatedSourceWrapper",
19610
19610
  props: {
19611
19611
  panel: {},
@@ -19677,7 +19677,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
19677
19677
  });
19678
19678
  return (_ctx, _cache) => {
19679
19679
  var _a, _b;
19680
- return openBlock(), createBlock(_sfc_main$10, {
19680
+ return openBlock(), createBlock(_sfc_main$12, {
19681
19681
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
19682
19682
  panelOptions: documentPanelOptions.value,
19683
19683
  labels: _ctx.labels,
@@ -19695,31 +19695,31 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
19695
19695
  };
19696
19696
  }
19697
19697
  });
19698
- const _hoisted_1$T = {
19698
+ const _hoisted_1$V = {
19699
19699
  key: 0,
19700
19700
  id: "lupa-search-box-panel"
19701
19701
  };
19702
- const _hoisted_2$G = ["data-cy"];
19703
- const _hoisted_3$v = {
19702
+ const _hoisted_2$I = ["data-cy"];
19703
+ const _hoisted_3$x = {
19704
19704
  key: 0,
19705
19705
  class: "lupa-panel-title lupa-panel-title-top-results"
19706
19706
  };
19707
- const _hoisted_4$o = {
19707
+ const _hoisted_4$p = {
19708
19708
  key: 1,
19709
19709
  class: "lupa-panel-title"
19710
19710
  };
19711
- const _hoisted_5$f = {
19711
+ const _hoisted_5$g = {
19712
19712
  key: 1,
19713
19713
  id: "lupa-search-box-panel"
19714
19714
  };
19715
19715
  const __default__$2 = {
19716
19716
  components: {
19717
- SearchBoxSuggestionsWrapper: _sfc_main$1i,
19718
- SearchBoxProductsWrapper: _sfc_main$_,
19719
- SearchBoxRelatedSourceWrapper: _sfc_main$Z
19717
+ SearchBoxSuggestionsWrapper: _sfc_main$1k,
19718
+ SearchBoxProductsWrapper: _sfc_main$10,
19719
+ SearchBoxRelatedSourceWrapper: _sfc_main$$
19720
19720
  }
19721
19721
  };
19722
- const _sfc_main$Y = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
19722
+ const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
19723
19723
  __name: "SearchBoxMainPanel",
19724
19724
  props: {
19725
19725
  options: {},
@@ -19875,7 +19875,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
19875
19875
  ref_key: "panelContainer",
19876
19876
  ref: panelContainer
19877
19877
  }, [
19878
- displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$T, [
19878
+ displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$V, [
19879
19879
  labels.value.closePanel ? (openBlock(), createElementBlock("a", {
19880
19880
  key: 0,
19881
19881
  class: "lupa-search-box-close-panel",
@@ -19897,8 +19897,8 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
19897
19897
  style: normalizeStyle(panel.gridArea ? { gridArea: `${panel.gridArea}${index}` } : {}),
19898
19898
  "data-cy": "lupa-panel-" + panel.type + "-index"
19899
19899
  }, [
19900
- ((_a2 = panel.labels) == null ? void 0 : _a2.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$v, toDisplayString((_b = panel.labels) == null ? void 0 : _b.topResultsTitle), 1)) : createCommentVNode("", true),
19901
- ((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (openBlock(), createElementBlock("div", _hoisted_4$o, toDisplayString((_d = panel.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
19900
+ ((_a2 = panel.labels) == null ? void 0 : _a2.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$x, toDisplayString((_b = panel.labels) == null ? void 0 : _b.topResultsTitle), 1)) : createCommentVNode("", true),
19901
+ ((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (openBlock(), createElementBlock("div", _hoisted_4$p, toDisplayString((_d = panel.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
19902
19902
  panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
19903
19903
  key: 2,
19904
19904
  panel,
@@ -19920,21 +19920,21 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
19920
19920
  key: "0"
19921
19921
  } : void 0
19922
19922
  ]), 1064, ["panel", "search-box-options", "options", "debounce", "inputValue", "labels"])) : createCommentVNode("", true)
19923
- ], 14, _hoisted_2$G);
19923
+ ], 14, _hoisted_2$I);
19924
19924
  }), 128))
19925
19925
  ], 4),
19926
- !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1l, {
19926
+ !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1n, {
19927
19927
  key: 1,
19928
19928
  labels: labels.value
19929
19929
  }, null, 8, ["labels"])) : createCommentVNode("", true),
19930
- unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1o, {
19930
+ unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1q, {
19931
19931
  key: 2,
19932
19932
  labels: labels.value,
19933
19933
  showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
19934
19934
  onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
19935
19935
  }, null, 8, ["labels", "showTotalCount"])) : createCommentVNode("", true)
19936
- ])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$f, [
19937
- createVNode(_sfc_main$1m, {
19936
+ ])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$g, [
19937
+ createVNode(_sfc_main$1o, {
19938
19938
  options: _ctx.options.history,
19939
19939
  history: history.value,
19940
19940
  onGoToResults: handleGoToResults,
@@ -19959,9 +19959,9 @@ const unbindSearchTriggers = (triggers = [], event) => {
19959
19959
  const elements = getElements(triggers);
19960
19960
  elements.forEach((e2) => e2 == null ? void 0 : e2.removeEventListener(BIND_EVENT, event));
19961
19961
  };
19962
- const _hoisted_1$S = { id: "lupa-search-box" };
19963
- const _hoisted_2$F = { class: "lupa-search-box-wrapper" };
19964
- const _sfc_main$X = /* @__PURE__ */ defineComponent({
19962
+ const _hoisted_1$U = { id: "lupa-search-box" };
19963
+ const _hoisted_2$H = { class: "lupa-search-box-wrapper" };
19964
+ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
19965
19965
  __name: "SearchBox",
19966
19966
  props: {
19967
19967
  options: {},
@@ -20221,9 +20221,9 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
20221
20221
  };
20222
20222
  return (_ctx, _cache) => {
20223
20223
  var _a2;
20224
- return openBlock(), createElementBlock("div", _hoisted_1$S, [
20225
- createBaseVNode("div", _hoisted_2$F, [
20226
- createVNode(_sfc_main$1p, {
20224
+ return openBlock(), createElementBlock("div", _hoisted_1$U, [
20225
+ createBaseVNode("div", _hoisted_2$H, [
20226
+ createVNode(_sfc_main$1r, {
20227
20227
  options: inputOptions.value,
20228
20228
  suggestedValue: suggestedValue.value,
20229
20229
  "can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
@@ -20236,7 +20236,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
20236
20236
  onSearch: handleSearch,
20237
20237
  onClose: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("close"))
20238
20238
  }, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
20239
- opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$Y, {
20239
+ opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$_, {
20240
20240
  key: 0,
20241
20241
  options: panelOptions.value,
20242
20242
  inputValue: inputValue.value,
@@ -20325,20 +20325,20 @@ const getSearchParams = (url, params, baseUrl) => {
20325
20325
  }
20326
20326
  return searchParams;
20327
20327
  };
20328
- const _hoisted_1$R = {
20328
+ const _hoisted_1$T = {
20329
20329
  key: 0,
20330
20330
  id: "lupa-search-results-did-you-mean"
20331
20331
  };
20332
- const _hoisted_2$E = {
20332
+ const _hoisted_2$G = {
20333
20333
  key: 0,
20334
20334
  "data-cy": "suggested-search-text-label"
20335
20335
  };
20336
- const _hoisted_3$u = {
20336
+ const _hoisted_3$w = {
20337
20337
  key: 1,
20338
20338
  "data-cy": "did-you-mean-label"
20339
20339
  };
20340
- const _hoisted_4$n = { key: 1 };
20341
- const _sfc_main$W = /* @__PURE__ */ defineComponent({
20340
+ const _hoisted_4$o = { key: 1 };
20341
+ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
20342
20342
  __name: "SearchResultsDidYouMean",
20343
20343
  props: {
20344
20344
  labels: {}
@@ -20370,8 +20370,8 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
20370
20370
  paramStore.goToResults({ searchText, facet });
20371
20371
  };
20372
20372
  return (_ctx, _cache) => {
20373
- return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$R, [
20374
- unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$E, [
20373
+ return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$T, [
20374
+ unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$G, [
20375
20375
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
20376
20376
  return openBlock(), createElementBlock("span", { key: index }, [
20377
20377
  createBaseVNode("span", {
@@ -20380,7 +20380,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
20380
20380
  ]);
20381
20381
  }), 128))
20382
20382
  ])) : createCommentVNode("", true),
20383
- didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$u, [
20383
+ didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$w, [
20384
20384
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.didYouMean.split(" "), (label, index) => {
20385
20385
  return openBlock(), createElementBlock("span", { key: index }, [
20386
20386
  label.includes("{1}") ? (openBlock(), createElementBlock("span", {
@@ -20388,7 +20388,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
20388
20388
  class: "lupa-did-you-mean lupa-highlighted-search-text",
20389
20389
  "data-cy": "did-you-mean-value",
20390
20390
  onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
20391
- }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$n, toDisplayString(label) + " ", 1))
20391
+ }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$o, toDisplayString(label) + " ", 1))
20392
20392
  ]);
20393
20393
  }), 128))
20394
20394
  ])) : createCommentVNode("", true)
@@ -20396,12 +20396,12 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
20396
20396
  };
20397
20397
  }
20398
20398
  });
20399
- const _hoisted_1$Q = {
20399
+ const _hoisted_1$S = {
20400
20400
  key: 0,
20401
20401
  class: "lupa-search-results-summary"
20402
20402
  };
20403
- const _hoisted_2$D = ["innerHTML"];
20404
- const _sfc_main$V = /* @__PURE__ */ defineComponent({
20403
+ const _hoisted_2$F = ["innerHTML"];
20404
+ const _sfc_main$X = /* @__PURE__ */ defineComponent({
20405
20405
  __name: "SearchResultsSummary",
20406
20406
  props: {
20407
20407
  label: {},
@@ -20416,8 +20416,8 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
20416
20416
  return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
20417
20417
  });
20418
20418
  return (_ctx, _cache) => {
20419
- return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$Q, [
20420
- createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$D),
20419
+ return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$S, [
20420
+ createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$F),
20421
20421
  _ctx.clearable ? (openBlock(), createElementBlock("span", {
20422
20422
  key: 0,
20423
20423
  class: "lupa-filter-clear",
@@ -20428,19 +20428,19 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
20428
20428
  };
20429
20429
  }
20430
20430
  });
20431
- const _hoisted_1$P = {
20431
+ const _hoisted_1$R = {
20432
20432
  key: 0,
20433
20433
  class: "lupa-result-page-title",
20434
20434
  "data-cy": "lupa-result-page-title"
20435
20435
  };
20436
- const _hoisted_2$C = { key: 0 };
20437
- const _hoisted_3$t = {
20436
+ const _hoisted_2$E = { key: 0 };
20437
+ const _hoisted_3$v = {
20438
20438
  key: 1,
20439
20439
  class: "lupa-results-total-count"
20440
20440
  };
20441
- const _hoisted_4$m = { class: "lupa-results-total-count-number" };
20442
- const _hoisted_5$e = ["innerHTML"];
20443
- const _sfc_main$U = /* @__PURE__ */ defineComponent({
20441
+ const _hoisted_4$n = { class: "lupa-results-total-count-number" };
20442
+ const _hoisted_5$f = ["innerHTML"];
20443
+ const _sfc_main$W = /* @__PURE__ */ defineComponent({
20444
20444
  __name: "SearchResultsTitle",
20445
20445
  props: {
20446
20446
  options: {},
@@ -20479,16 +20479,16 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
20479
20479
  });
20480
20480
  return (_ctx, _cache) => {
20481
20481
  return openBlock(), createElementBlock("div", null, [
20482
- showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$P, [
20482
+ showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$R, [
20483
20483
  createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
20484
- queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$C, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
20485
- showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$t, [
20484
+ queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$E, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
20485
+ showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$v, [
20486
20486
  createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
20487
- createBaseVNode("span", _hoisted_4$m, toDisplayString(unref(totalItems)), 1),
20487
+ createBaseVNode("span", _hoisted_4$n, toDisplayString(unref(totalItems)), 1),
20488
20488
  createTextVNode(")")
20489
20489
  ])) : createCommentVNode("", true)
20490
20490
  ])) : createCommentVNode("", true),
20491
- _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$V, {
20491
+ _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$X, {
20492
20492
  key: 1,
20493
20493
  label: summaryLabel.value
20494
20494
  }, null, 8, ["label"])) : createCommentVNode("", true),
@@ -20496,21 +20496,21 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
20496
20496
  key: 2,
20497
20497
  class: "lupa-result-page-description-top",
20498
20498
  innerHTML: descriptionTop.value
20499
- }, null, 8, _hoisted_5$e)) : createCommentVNode("", true)
20499
+ }, null, 8, _hoisted_5$f)) : createCommentVNode("", true)
20500
20500
  ]);
20501
20501
  };
20502
20502
  }
20503
20503
  });
20504
- const _hoisted_1$O = { class: "lupa-search-result-filter-value" };
20505
- const _hoisted_2$B = {
20504
+ const _hoisted_1$Q = { class: "lupa-search-result-filter-value" };
20505
+ const _hoisted_2$D = {
20506
20506
  class: "lupa-current-filter-label",
20507
20507
  "data-cy": "lupa-current-filter-label"
20508
20508
  };
20509
- const _hoisted_3$s = {
20509
+ const _hoisted_3$u = {
20510
20510
  class: "lupa-current-filter-value",
20511
20511
  "data-cy": "lupa-current-filter-value"
20512
20512
  };
20513
- const _sfc_main$T = /* @__PURE__ */ defineComponent({
20513
+ const _sfc_main$V = /* @__PURE__ */ defineComponent({
20514
20514
  __name: "CurrentFilterDisplay",
20515
20515
  props: {
20516
20516
  filter: {}
@@ -20522,28 +20522,28 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
20522
20522
  emit2("remove", { filter: props.filter });
20523
20523
  };
20524
20524
  return (_ctx, _cache) => {
20525
- return openBlock(), createElementBlock("div", _hoisted_1$O, [
20525
+ return openBlock(), createElementBlock("div", _hoisted_1$Q, [
20526
20526
  createBaseVNode("div", {
20527
20527
  class: "lupa-current-filter-action",
20528
20528
  onClick: handleClick
20529
20529
  }, "⨉"),
20530
- createBaseVNode("div", _hoisted_2$B, toDisplayString(_ctx.filter.label) + ": ", 1),
20531
- createBaseVNode("div", _hoisted_3$s, toDisplayString(_ctx.filter.value), 1)
20530
+ createBaseVNode("div", _hoisted_2$D, toDisplayString(_ctx.filter.label) + ": ", 1),
20531
+ createBaseVNode("div", _hoisted_3$u, toDisplayString(_ctx.filter.value), 1)
20532
20532
  ]);
20533
20533
  };
20534
20534
  }
20535
20535
  });
20536
- const _hoisted_1$N = { class: "lupa-filter-title-text" };
20537
- const _hoisted_2$A = {
20536
+ const _hoisted_1$P = { class: "lupa-filter-title-text" };
20537
+ const _hoisted_2$C = {
20538
20538
  key: 0,
20539
20539
  class: "lupa-filter-count"
20540
20540
  };
20541
- const _hoisted_3$r = {
20541
+ const _hoisted_3$t = {
20542
20542
  key: 0,
20543
20543
  class: "filter-values"
20544
20544
  };
20545
- const _hoisted_4$l = { class: "lupa-current-filter-list" };
20546
- const _sfc_main$S = /* @__PURE__ */ defineComponent({
20545
+ const _hoisted_4$m = { class: "lupa-current-filter-list" };
20546
+ const _sfc_main$U = /* @__PURE__ */ defineComponent({
20547
20547
  __name: "CurrentFilters",
20548
20548
  props: {
20549
20549
  options: {},
@@ -20616,19 +20616,19 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
20616
20616
  class: "lupa-current-filter-title",
20617
20617
  onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
20618
20618
  }, [
20619
- createBaseVNode("div", _hoisted_1$N, [
20619
+ createBaseVNode("div", _hoisted_1$P, [
20620
20620
  createTextVNode(toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
20621
- _ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$A, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
20621
+ _ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$C, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
20622
20622
  ]),
20623
20623
  _ctx.expandable ? (openBlock(), createElementBlock("div", {
20624
20624
  key: 0,
20625
20625
  class: normalizeClass(["lupa-filter-title-caret", isOpen.value && "open"])
20626
20626
  }, null, 2)) : createCommentVNode("", true)
20627
20627
  ]),
20628
- !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$r, [
20629
- createBaseVNode("div", _hoisted_4$l, [
20628
+ !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$t, [
20629
+ createBaseVNode("div", _hoisted_4$m, [
20630
20630
  (openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter2) => {
20631
- return openBlock(), createBlock(_sfc_main$T, {
20631
+ return openBlock(), createBlock(_sfc_main$V, {
20632
20632
  key: filter2.key + "_" + filter2.value,
20633
20633
  filter: filter2,
20634
20634
  onRemove: handleRemove
@@ -20645,8 +20645,8 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
20645
20645
  };
20646
20646
  }
20647
20647
  });
20648
- const _hoisted_1$M = ["href"];
20649
- const _sfc_main$R = /* @__PURE__ */ defineComponent({
20648
+ const _hoisted_1$O = ["href"];
20649
+ const _sfc_main$T = /* @__PURE__ */ defineComponent({
20650
20650
  __name: "CategoryFilterItem",
20651
20651
  props: {
20652
20652
  options: {},
@@ -20683,20 +20683,20 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
20683
20683
  "data-cy": "lupa-child-category-item",
20684
20684
  href: urlLink.value,
20685
20685
  onClick: handleNavigation
20686
- }, toDisplayString(title.value), 9, _hoisted_1$M)
20686
+ }, toDisplayString(title.value), 9, _hoisted_1$O)
20687
20687
  ], 2);
20688
20688
  };
20689
20689
  }
20690
20690
  });
20691
- const _hoisted_1$L = {
20691
+ const _hoisted_1$N = {
20692
20692
  class: "lupa-category-filter",
20693
20693
  "data-cy": "lupa-category-filter"
20694
20694
  };
20695
- const _hoisted_2$z = { class: "lupa-category-back" };
20696
- const _hoisted_3$q = ["href"];
20697
- const _hoisted_4$k = ["href"];
20698
- const _hoisted_5$d = { class: "lupa-child-category-list" };
20699
- const _sfc_main$Q = /* @__PURE__ */ defineComponent({
20695
+ const _hoisted_2$B = { class: "lupa-category-back" };
20696
+ const _hoisted_3$s = ["href"];
20697
+ const _hoisted_4$l = ["href"];
20698
+ const _hoisted_5$e = { class: "lupa-child-category-list" };
20699
+ const _sfc_main$S = /* @__PURE__ */ defineComponent({
20700
20700
  __name: "CategoryFilter",
20701
20701
  props: {
20702
20702
  options: {}
@@ -20784,14 +20784,14 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
20784
20784
  };
20785
20785
  __expose({ fetch: fetch2 });
20786
20786
  return (_ctx, _cache) => {
20787
- return openBlock(), createElementBlock("div", _hoisted_1$L, [
20788
- createBaseVNode("div", _hoisted_2$z, [
20787
+ return openBlock(), createElementBlock("div", _hoisted_1$N, [
20788
+ createBaseVNode("div", _hoisted_2$B, [
20789
20789
  hasBackButton.value ? (openBlock(), createElementBlock("a", {
20790
20790
  key: 0,
20791
20791
  "data-cy": "lupa-category-back",
20792
20792
  href: backUrlLink.value,
20793
20793
  onClick: handleNavigationBack
20794
- }, toDisplayString(backTitle.value), 9, _hoisted_3$q)) : createCommentVNode("", true)
20794
+ }, toDisplayString(backTitle.value), 9, _hoisted_3$s)) : createCommentVNode("", true)
20795
20795
  ]),
20796
20796
  createBaseVNode("div", {
20797
20797
  class: normalizeClass(["lupa-current-category", { "lupa-current-category-active": isActive }])
@@ -20801,11 +20801,11 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
20801
20801
  href: parentUrlLink.value,
20802
20802
  class: normalizeClass({ "lupa-title-category": !hasBackButton.value }),
20803
20803
  onClick: handleNavigationParent
20804
- }, toDisplayString(parentTitle.value), 11, _hoisted_4$k)
20804
+ }, toDisplayString(parentTitle.value), 11, _hoisted_4$l)
20805
20805
  ], 2),
20806
- createBaseVNode("div", _hoisted_5$d, [
20806
+ createBaseVNode("div", _hoisted_5$e, [
20807
20807
  (openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
20808
- return openBlock(), createBlock(_sfc_main$R, {
20808
+ return openBlock(), createBlock(_sfc_main$T, {
20809
20809
  key: getCategoryKey(child),
20810
20810
  item: child,
20811
20811
  options: _ctx.options
@@ -20816,14 +20816,14 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
20816
20816
  };
20817
20817
  }
20818
20818
  });
20819
- const _hoisted_1$K = {
20819
+ const _hoisted_1$M = {
20820
20820
  class: "lupa-search-result-facet-term-values",
20821
20821
  "data-cy": "lupa-search-result-facet-term-values"
20822
20822
  };
20823
- const _hoisted_2$y = ["placeholder"];
20824
- const _hoisted_3$p = { class: "lupa-terms-list" };
20825
- const _hoisted_4$j = ["onClick"];
20826
- const _hoisted_5$c = { class: "lupa-term-checkbox-wrapper" };
20823
+ const _hoisted_2$A = ["placeholder"];
20824
+ const _hoisted_3$r = { class: "lupa-terms-list" };
20825
+ const _hoisted_4$k = ["onClick"];
20826
+ const _hoisted_5$d = { class: "lupa-term-checkbox-wrapper" };
20827
20827
  const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
20828
20828
  const _hoisted_7$6 = { class: "lupa-term-label" };
20829
20829
  const _hoisted_8$2 = {
@@ -20832,7 +20832,7 @@ const _hoisted_8$2 = {
20832
20832
  };
20833
20833
  const _hoisted_9$2 = { key: 0 };
20834
20834
  const _hoisted_10$1 = { key: 1 };
20835
- const _sfc_main$P = /* @__PURE__ */ defineComponent({
20835
+ const _sfc_main$R = /* @__PURE__ */ defineComponent({
20836
20836
  __name: "TermFacet",
20837
20837
  props: {
20838
20838
  options: {},
@@ -20903,17 +20903,17 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
20903
20903
  return selectedItems == null ? void 0 : selectedItems.includes((_b = item.title) == null ? void 0 : _b.toString());
20904
20904
  };
20905
20905
  return (_ctx, _cache) => {
20906
- return openBlock(), createElementBlock("div", _hoisted_1$K, [
20906
+ return openBlock(), createElementBlock("div", _hoisted_1$M, [
20907
20907
  isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
20908
20908
  key: 0,
20909
20909
  class: "lupa-term-filter",
20910
20910
  "data-cy": "lupa-term-filter",
20911
20911
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
20912
20912
  placeholder: _ctx.options.labels.facetFilter
20913
- }, null, 8, _hoisted_2$y)), [
20913
+ }, null, 8, _hoisted_2$A)), [
20914
20914
  [vModelText, termFilter.value]
20915
20915
  ]) : createCommentVNode("", true),
20916
- createBaseVNode("div", _hoisted_3$p, [
20916
+ createBaseVNode("div", _hoisted_3$r, [
20917
20917
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
20918
20918
  return openBlock(), createElementBlock("div", {
20919
20919
  class: normalizeClass(["lupa-facet-term", { checked: isChecked(item) }]),
@@ -20921,7 +20921,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
20921
20921
  key: item.title,
20922
20922
  onClick: ($event) => handleFacetClick(item)
20923
20923
  }, [
20924
- createBaseVNode("div", _hoisted_5$c, [
20924
+ createBaseVNode("div", _hoisted_5$d, [
20925
20925
  createBaseVNode("span", {
20926
20926
  class: normalizeClass(["lupa-term-checkbox", { checked: isChecked(item) }])
20927
20927
  }, null, 2)
@@ -20930,7 +20930,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
20930
20930
  createBaseVNode("span", _hoisted_7$6, toDisplayString(item.title), 1),
20931
20931
  _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$2, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
20932
20932
  ])
20933
- ], 10, _hoisted_4$j);
20933
+ ], 10, _hoisted_4$k);
20934
20934
  }), 128))
20935
20935
  ]),
20936
20936
  displayShowMore.value ? (openBlock(), createElementBlock("div", {
@@ -21921,20 +21921,20 @@ var m = { name: "Slider", emits: ["input", "update:modelValue", "start", "slide"
21921
21921
  m.render = function(e2, t, r, i, n, o) {
21922
21922
  return openBlock(), createElementBlock("div", mergeProps(e2.sliderProps, { ref: "slider" }), null, 16);
21923
21923
  }, m.__file = "src/Slider.vue";
21924
- const _hoisted_1$J = { class: "lupa-search-result-facet-stats-values" };
21925
- const _hoisted_2$x = {
21924
+ const _hoisted_1$L = { class: "lupa-search-result-facet-stats-values" };
21925
+ const _hoisted_2$z = {
21926
21926
  key: 0,
21927
21927
  class: "lupa-stats-facet-summary"
21928
21928
  };
21929
- const _hoisted_3$o = {
21929
+ const _hoisted_3$q = {
21930
21930
  key: 1,
21931
21931
  class: "lupa-stats-facet-summary-input"
21932
21932
  };
21933
- const _hoisted_4$i = {
21933
+ const _hoisted_4$j = {
21934
21934
  key: 0,
21935
21935
  class: "lupa-stats-range-label"
21936
21936
  };
21937
- const _hoisted_5$b = { class: "lupa-stats-from" };
21937
+ const _hoisted_5$c = { class: "lupa-stats-from" };
21938
21938
  const _hoisted_6$7 = ["max", "min", "pattern", "aria-label"];
21939
21939
  const _hoisted_7$5 = { key: 0 };
21940
21940
  const _hoisted_8$1 = /* @__PURE__ */ createBaseVNode("div", { class: "lupa-stats-separator" }, null, -1);
@@ -21949,7 +21949,7 @@ const _hoisted_13 = {
21949
21949
  key: 2,
21950
21950
  class: "lupa-stats-slider-wrapper"
21951
21951
  };
21952
- const _sfc_main$O = /* @__PURE__ */ defineComponent({
21952
+ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
21953
21953
  __name: "StatsFacet",
21954
21954
  props: {
21955
21955
  options: {},
@@ -22122,11 +22122,11 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
22122
22122
  innerSliderRange.value = value;
22123
22123
  };
22124
22124
  return (_ctx, _cache) => {
22125
- return openBlock(), createElementBlock("div", _hoisted_1$J, [
22126
- !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$x, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$o, [
22125
+ return openBlock(), createElementBlock("div", _hoisted_1$L, [
22126
+ !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$z, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$q, [
22127
22127
  createBaseVNode("div", null, [
22128
- rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$i, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
22129
- createBaseVNode("div", _hoisted_5$b, [
22128
+ rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$j, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
22129
+ createBaseVNode("div", _hoisted_5$c, [
22130
22130
  withDirectives(createBaseVNode("input", {
22131
22131
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
22132
22132
  type: "text",
@@ -22189,18 +22189,18 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
22189
22189
  };
22190
22190
  }
22191
22191
  });
22192
- const _hoisted_1$I = { class: "lupa-term-checkbox-wrapper" };
22193
- const _hoisted_2$w = { class: "lupa-term-checkbox-label" };
22194
- const _hoisted_3$n = { class: "lupa-term-label" };
22195
- const _hoisted_4$h = {
22192
+ const _hoisted_1$K = { class: "lupa-term-checkbox-wrapper" };
22193
+ const _hoisted_2$y = { class: "lupa-term-checkbox-label" };
22194
+ const _hoisted_3$p = { class: "lupa-term-label" };
22195
+ const _hoisted_4$i = {
22196
22196
  key: 0,
22197
22197
  class: "lupa-term-count"
22198
22198
  };
22199
- const _hoisted_5$a = {
22199
+ const _hoisted_5$b = {
22200
22200
  key: 0,
22201
22201
  class: "lupa-facet-level"
22202
22202
  };
22203
- const _sfc_main$N = /* @__PURE__ */ defineComponent({
22203
+ const _sfc_main$P = /* @__PURE__ */ defineComponent({
22204
22204
  __name: "HierarchyFacetLevel",
22205
22205
  props: {
22206
22206
  options: {},
@@ -22246,17 +22246,17 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
22246
22246
  "data-cy": "lupa-facet-term",
22247
22247
  onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
22248
22248
  }, [
22249
- createBaseVNode("div", _hoisted_1$I, [
22249
+ createBaseVNode("div", _hoisted_1$K, [
22250
22250
  createBaseVNode("span", {
22251
22251
  class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
22252
22252
  }, null, 2)
22253
22253
  ]),
22254
- createBaseVNode("div", _hoisted_2$w, [
22255
- createBaseVNode("span", _hoisted_3$n, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
22256
- _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$h, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
22254
+ createBaseVNode("div", _hoisted_2$y, [
22255
+ createBaseVNode("span", _hoisted_3$p, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
22256
+ _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$i, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
22257
22257
  ])
22258
22258
  ]),
22259
- showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$a, [
22259
+ showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$b, [
22260
22260
  (openBlock(true), createElementBlock(Fragment, null, renderList(treeItem.value.children, (itemChild) => {
22261
22261
  return openBlock(), createBlock(_component_HierarchyFacetLevel, {
22262
22262
  key: itemChild.title,
@@ -22272,13 +22272,13 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
22272
22272
  };
22273
22273
  }
22274
22274
  });
22275
- const _hoisted_1$H = {
22275
+ const _hoisted_1$J = {
22276
22276
  class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
22277
22277
  "data-cy": "lupa-search-result-facet-term-values"
22278
22278
  };
22279
- const _hoisted_2$v = { key: 0 };
22280
- const _hoisted_3$m = ["placeholder"];
22281
- const _sfc_main$M = /* @__PURE__ */ defineComponent({
22279
+ const _hoisted_2$x = { key: 0 };
22280
+ const _hoisted_3$o = ["placeholder"];
22281
+ const _sfc_main$O = /* @__PURE__ */ defineComponent({
22282
22282
  __name: "HierarchyFacet",
22283
22283
  props: {
22284
22284
  options: {},
@@ -22328,19 +22328,19 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
22328
22328
  showAll.value = true;
22329
22329
  };
22330
22330
  return (_ctx, _cache) => {
22331
- return openBlock(), createElementBlock("div", _hoisted_1$H, [
22332
- isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$v, [
22331
+ return openBlock(), createElementBlock("div", _hoisted_1$J, [
22332
+ isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$x, [
22333
22333
  withDirectives(createBaseVNode("input", {
22334
22334
  class: "lupa-term-filter",
22335
22335
  "data-cy": "lupa-term-filter",
22336
22336
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
22337
22337
  placeholder: _ctx.options.labels.facetFilter
22338
- }, null, 8, _hoisted_3$m), [
22338
+ }, null, 8, _hoisted_3$o), [
22339
22339
  [vModelText, termFilter.value]
22340
22340
  ])
22341
22341
  ])) : createCommentVNode("", true),
22342
22342
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
22343
- return openBlock(), createBlock(_sfc_main$N, {
22343
+ return openBlock(), createBlock(_sfc_main$P, {
22344
22344
  key: item.title,
22345
22345
  options: _ctx.options,
22346
22346
  item,
@@ -22360,20 +22360,20 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
22360
22360
  };
22361
22361
  }
22362
22362
  });
22363
- const _hoisted_1$G = { class: "lupa-facet-label-text" };
22364
- const _hoisted_2$u = {
22363
+ const _hoisted_1$I = { class: "lupa-facet-label-text" };
22364
+ const _hoisted_2$w = {
22365
22365
  key: 0,
22366
22366
  class: "lupa-facet-content",
22367
22367
  "data-cy": "lupa-facet-content"
22368
22368
  };
22369
22369
  const __default__$1 = {
22370
22370
  components: {
22371
- TermFacet: _sfc_main$P,
22372
- StatsFacet: _sfc_main$O,
22373
- HierarchyFacet: _sfc_main$M
22371
+ TermFacet: _sfc_main$R,
22372
+ StatsFacet: _sfc_main$Q,
22373
+ HierarchyFacet: _sfc_main$O
22374
22374
  }
22375
22375
  };
22376
- const _sfc_main$L = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
22376
+ const _sfc_main$N = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
22377
22377
  __name: "FacetDisplay",
22378
22378
  props: {
22379
22379
  options: {},
@@ -22485,12 +22485,12 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
22485
22485
  "data-cy": "lupa-search-result-facet-label",
22486
22486
  onClick: toggleFacet
22487
22487
  }, [
22488
- createBaseVNode("div", _hoisted_1$G, toDisplayString(facet.value.label), 1),
22488
+ createBaseVNode("div", _hoisted_1$I, toDisplayString(facet.value.label), 1),
22489
22489
  createBaseVNode("div", {
22490
22490
  class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
22491
22491
  }, null, 2)
22492
22492
  ], 2),
22493
- isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$u, [
22493
+ isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$w, [
22494
22494
  (openBlock(), createBlock(resolveDynamicComponent(facetType.value), {
22495
22495
  facet: facet.value,
22496
22496
  currentFilters: currentFilters.value[facet.value.key],
@@ -22508,12 +22508,12 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
22508
22508
  };
22509
22509
  }
22510
22510
  }));
22511
- const _hoisted_1$F = { class: "lupa-search-result-facet-section" };
22512
- const _hoisted_2$t = {
22511
+ const _hoisted_1$H = { class: "lupa-search-result-facet-section" };
22512
+ const _hoisted_2$v = {
22513
22513
  key: 0,
22514
22514
  class: "lupa-facets-title"
22515
22515
  };
22516
- const _sfc_main$K = /* @__PURE__ */ defineComponent({
22516
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
22517
22517
  __name: "FacetList",
22518
22518
  props: {
22519
22519
  options: {},
@@ -22547,14 +22547,14 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
22547
22547
  };
22548
22548
  return (_ctx, _cache) => {
22549
22549
  var _a;
22550
- return openBlock(), createElementBlock("div", _hoisted_1$F, [
22551
- _ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$t, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
22550
+ return openBlock(), createElementBlock("div", _hoisted_1$H, [
22551
+ _ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$v, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
22552
22552
  createBaseVNode("div", {
22553
22553
  class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
22554
22554
  }, [
22555
22555
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
22556
22556
  var _a2;
22557
- return openBlock(), createBlock(_sfc_main$L, {
22557
+ return openBlock(), createBlock(_sfc_main$N, {
22558
22558
  key: facet.key,
22559
22559
  facet,
22560
22560
  currentFilters: currentFiltersValue.value,
@@ -22569,8 +22569,8 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
22569
22569
  };
22570
22570
  }
22571
22571
  });
22572
- const _hoisted_1$E = ["onClick"];
22573
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
22572
+ const _hoisted_1$G = ["onClick"];
22573
+ const _sfc_main$L = /* @__PURE__ */ defineComponent({
22574
22574
  __name: "FacetsButton",
22575
22575
  props: {
22576
22576
  options: {}
@@ -22590,13 +22590,13 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
22590
22590
  key: 0,
22591
22591
  class: "lupa-facets-button-filter",
22592
22592
  onClick: withModifiers(handleClick, ["stop"])
22593
- }, toDisplayString(label.value), 9, _hoisted_1$E)) : createCommentVNode("", true);
22593
+ }, toDisplayString(label.value), 9, _hoisted_1$G)) : createCommentVNode("", true);
22594
22594
  };
22595
22595
  }
22596
22596
  });
22597
- const _hoisted_1$D = { class: "lupa-search-result-facets" };
22598
- const _hoisted_2$s = { class: "lupa-facets-filter-button-wrapper" };
22599
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
22597
+ const _hoisted_1$F = { class: "lupa-search-result-facets" };
22598
+ const _hoisted_2$u = { class: "lupa-facets-filter-button-wrapper" };
22599
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
22600
22600
  __name: "Facets",
22601
22601
  props: {
22602
22602
  options: {},
@@ -22679,8 +22679,8 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
22679
22679
  emit2("filter");
22680
22680
  };
22681
22681
  return (_ctx, _cache) => {
22682
- return openBlock(), createElementBlock("div", _hoisted_1$D, [
22683
- regularFacets.value ? (openBlock(), createBlock(_sfc_main$K, {
22682
+ return openBlock(), createElementBlock("div", _hoisted_1$F, [
22683
+ regularFacets.value ? (openBlock(), createBlock(_sfc_main$M, {
22684
22684
  key: 0,
22685
22685
  options: _ctx.options,
22686
22686
  facets: regularFacets.value,
@@ -22690,8 +22690,8 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
22690
22690
  onSelect: handleFacetSelect,
22691
22691
  onClear: clear2
22692
22692
  }, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : createCommentVNode("", true),
22693
- createBaseVNode("div", _hoisted_2$s, [
22694
- showFilterButton.value ? (openBlock(), createBlock(_sfc_main$J, {
22693
+ createBaseVNode("div", _hoisted_2$u, [
22694
+ showFilterButton.value ? (openBlock(), createBlock(_sfc_main$L, {
22695
22695
  key: 0,
22696
22696
  options: _ctx.options,
22697
22697
  onFilter: filter2
@@ -22701,11 +22701,11 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
22701
22701
  };
22702
22702
  }
22703
22703
  });
22704
- const _hoisted_1$C = {
22704
+ const _hoisted_1$E = {
22705
22705
  id: "lupa-search-result-filters",
22706
22706
  class: "lupa-search-result-filters"
22707
22707
  };
22708
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
22708
+ const _sfc_main$J = /* @__PURE__ */ defineComponent({
22709
22709
  __name: "SearchResultsFilters",
22710
22710
  props: {
22711
22711
  options: {},
@@ -22738,19 +22738,19 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
22738
22738
  __expose({ fetch: fetch2 });
22739
22739
  return (_ctx, _cache) => {
22740
22740
  var _a;
22741
- return openBlock(), createElementBlock("div", _hoisted_1$C, [
22742
- showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$S, {
22741
+ return openBlock(), createElementBlock("div", _hoisted_1$E, [
22742
+ showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$U, {
22743
22743
  key: 0,
22744
22744
  options: _ctx.options.currentFilters,
22745
22745
  expandable: (_a = _ctx.expandable) != null ? _a : false
22746
22746
  }, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
22747
- _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$Q, {
22747
+ _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$S, {
22748
22748
  key: 1,
22749
22749
  options: _ctx.options.categories,
22750
22750
  ref_key: "categoryFilters",
22751
22751
  ref: categoryFilters
22752
22752
  }, null, 8, ["options"])) : createCommentVNode("", true),
22753
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$I, {
22753
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$K, {
22754
22754
  key: 2,
22755
22755
  options: _ctx.options.facets,
22756
22756
  onFilter: filter2
@@ -22759,20 +22759,20 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
22759
22759
  };
22760
22760
  }
22761
22761
  });
22762
- const _hoisted_1$B = {
22762
+ const _hoisted_1$D = {
22763
22763
  key: 0,
22764
22764
  class: "lupa-mobile-filter-sidebar"
22765
22765
  };
22766
- const _hoisted_2$r = ["onClick"];
22767
- const _hoisted_3$l = { class: "lupa-mobile-sidebar-content" };
22768
- const _hoisted_4$g = { class: "lupa-sidebar-top" };
22769
- const _hoisted_5$9 = { class: "lupa-sidebar-title" };
22766
+ const _hoisted_2$t = ["onClick"];
22767
+ const _hoisted_3$n = { class: "lupa-mobile-sidebar-content" };
22768
+ const _hoisted_4$h = { class: "lupa-sidebar-top" };
22769
+ const _hoisted_5$a = { class: "lupa-sidebar-title" };
22770
22770
  const _hoisted_6$6 = {
22771
22771
  key: 0,
22772
22772
  class: "lupa-sidebar-filter-count"
22773
22773
  };
22774
22774
  const _hoisted_7$4 = { class: "lupa-sidebar-filter-options" };
22775
- const _sfc_main$G = /* @__PURE__ */ defineComponent({
22775
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
22776
22776
  __name: "MobileFilterSidebar",
22777
22777
  props: {
22778
22778
  options: {}
@@ -22803,14 +22803,14 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
22803
22803
  handleMobileToggle();
22804
22804
  };
22805
22805
  return (_ctx, _cache) => {
22806
- return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$B, [
22806
+ return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$D, [
22807
22807
  createBaseVNode("div", {
22808
22808
  class: "lupa-sidebar-close",
22809
22809
  onClick: withModifiers(handleMobileToggle, ["stop"])
22810
- }, null, 8, _hoisted_2$r),
22811
- createBaseVNode("div", _hoisted_3$l, [
22812
- createBaseVNode("div", _hoisted_4$g, [
22813
- createBaseVNode("div", _hoisted_5$9, [
22810
+ }, null, 8, _hoisted_2$t),
22811
+ createBaseVNode("div", _hoisted_3$n, [
22812
+ createBaseVNode("div", _hoisted_4$h, [
22813
+ createBaseVNode("div", _hoisted_5$a, [
22814
22814
  createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
22815
22815
  isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
22816
22816
  ]),
@@ -22820,7 +22820,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
22820
22820
  })
22821
22821
  ]),
22822
22822
  createBaseVNode("div", _hoisted_7$4, [
22823
- createVNode(_sfc_main$H, {
22823
+ createVNode(_sfc_main$J, {
22824
22824
  options: _ctx.options,
22825
22825
  expandable: isActiveFiltersExpanded.value,
22826
22826
  onFilter: filter2
@@ -22831,14 +22831,14 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
22831
22831
  };
22832
22832
  }
22833
22833
  });
22834
- const _hoisted_1$A = { id: "lupa-search-results-breadcrumbs" };
22835
- const _hoisted_2$q = ["href", "onClick"];
22836
- const _hoisted_3$k = {
22834
+ const _hoisted_1$C = { id: "lupa-search-results-breadcrumbs" };
22835
+ const _hoisted_2$s = ["href", "onClick"];
22836
+ const _hoisted_3$m = {
22837
22837
  key: 1,
22838
22838
  class: "lupa-search-results-breadcrumb-text"
22839
22839
  };
22840
- const _hoisted_4$f = { key: 2 };
22841
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
22840
+ const _hoisted_4$g = { key: 2 };
22841
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
22842
22842
  __name: "SearchResultsBreadcrumbs",
22843
22843
  props: {
22844
22844
  breadcrumbs: {}
@@ -22863,7 +22863,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
22863
22863
  handleRoutingEvent(link, event, hasEventRouting.value);
22864
22864
  };
22865
22865
  return (_ctx, _cache) => {
22866
- return openBlock(), createElementBlock("div", _hoisted_1$A, [
22866
+ return openBlock(), createElementBlock("div", _hoisted_1$C, [
22867
22867
  (openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
22868
22868
  return openBlock(), createElementBlock("span", {
22869
22869
  class: "lupa-search-results-breadcrumb",
@@ -22877,19 +22877,19 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
22877
22877
  var _a;
22878
22878
  return handleNavigation(e2, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
22879
22879
  }
22880
- }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$q)) : (openBlock(), createElementBlock("span", _hoisted_3$k, toDisplayString(getLabel(breadcrumb.label)), 1)),
22881
- index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$f, " / ")) : createCommentVNode("", true)
22880
+ }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$s)) : (openBlock(), createElementBlock("span", _hoisted_3$m, toDisplayString(getLabel(breadcrumb.label)), 1)),
22881
+ index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$g, " / ")) : createCommentVNode("", true)
22882
22882
  ]);
22883
22883
  }), 128))
22884
22884
  ]);
22885
22885
  };
22886
22886
  }
22887
22887
  });
22888
- const _hoisted_1$z = {
22888
+ const _hoisted_1$B = {
22889
22889
  id: "lupa-search-result-filters",
22890
22890
  class: "lupa-search-result-filters lupa-search-result-top-filters"
22891
22891
  };
22892
- const _sfc_main$E = /* @__PURE__ */ defineComponent({
22892
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
22893
22893
  __name: "FiltersTopDropdown",
22894
22894
  props: {
22895
22895
  options: {}
@@ -22901,8 +22901,8 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
22901
22901
  };
22902
22902
  return (_ctx, _cache) => {
22903
22903
  var _a;
22904
- return openBlock(), createElementBlock("div", _hoisted_1$z, [
22905
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$I, {
22904
+ return openBlock(), createElementBlock("div", _hoisted_1$B, [
22905
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$K, {
22906
22906
  key: 0,
22907
22907
  options: _ctx.options.facets,
22908
22908
  "facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
@@ -22913,8 +22913,8 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
22913
22913
  };
22914
22914
  }
22915
22915
  });
22916
- const _hoisted_1$y = { id: "lupa-search-results-layout-selection" };
22917
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
22916
+ const _hoisted_1$A = { id: "lupa-search-results-layout-selection" };
22917
+ const _sfc_main$F = /* @__PURE__ */ defineComponent({
22918
22918
  __name: "SearchResultsLayoutSelection",
22919
22919
  setup(__props) {
22920
22920
  const searchResultStore = useSearchResultStore();
@@ -22925,7 +22925,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
22925
22925
  searchResultStore.setLayout(layout2);
22926
22926
  };
22927
22927
  return (_ctx, _cache) => {
22928
- return openBlock(), createElementBlock("div", _hoisted_1$y, [
22928
+ return openBlock(), createElementBlock("div", _hoisted_1$A, [
22929
22929
  createBaseVNode("div", {
22930
22930
  class: normalizeClass([
22931
22931
  "lupa-layout-selection-grid",
@@ -22947,11 +22947,11 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
22947
22947
  };
22948
22948
  }
22949
22949
  });
22950
- const _hoisted_1$x = {
22950
+ const _hoisted_1$z = {
22951
22951
  key: 0,
22952
22952
  class: "lupa-mobile-toggle-filter-count"
22953
22953
  };
22954
- const _sfc_main$C = /* @__PURE__ */ defineComponent({
22954
+ const _sfc_main$E = /* @__PURE__ */ defineComponent({
22955
22955
  __name: "SearchResultsMobileToggle",
22956
22956
  props: {
22957
22957
  label: {},
@@ -22969,26 +22969,26 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
22969
22969
  onClick: handleMobileToggle
22970
22970
  }, [
22971
22971
  createTextVNode(toDisplayString(_ctx.label) + " ", 1),
22972
- _ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$x, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
22972
+ _ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$z, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
22973
22973
  ], 2);
22974
22974
  };
22975
22975
  }
22976
22976
  });
22977
- const _hoisted_1$w = {
22977
+ const _hoisted_1$y = {
22978
22978
  key: 0,
22979
22979
  id: "lupa-search-results-page-select",
22980
22980
  "data-cy": "lupa-search-results-page-select"
22981
22981
  };
22982
- const _hoisted_2$p = {
22982
+ const _hoisted_2$r = {
22983
22983
  key: 0,
22984
22984
  class: "lupa-page-number-separator"
22985
22985
  };
22986
- const _hoisted_3$j = ["onClick"];
22987
- const _hoisted_4$e = {
22986
+ const _hoisted_3$l = ["onClick"];
22987
+ const _hoisted_4$f = {
22988
22988
  key: 0,
22989
22989
  class: "lupa-page-number-separator"
22990
22990
  };
22991
- const _sfc_main$B = /* @__PURE__ */ defineComponent({
22991
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
22992
22992
  __name: "SearchResultsPageSelect",
22993
22993
  props: {
22994
22994
  lastPageLabel: {},
@@ -23065,7 +23065,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
23065
23065
  }
23066
23066
  };
23067
23067
  return (_ctx, _cache) => {
23068
- return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$w, [
23068
+ return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$y, [
23069
23069
  showBack.value ? (openBlock(), createElementBlock("div", {
23070
23070
  key: 0,
23071
23071
  class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
@@ -23076,7 +23076,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
23076
23076
  class: "lupa-page-number lupa-page-number-first",
23077
23077
  onClick: _cache[1] || (_cache[1] = () => handlePageChange(1))
23078
23078
  }, " 1 "),
23079
- showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$p, "...")) : createCommentVNode("", true)
23079
+ showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$r, "...")) : createCommentVNode("", true)
23080
23080
  ], 64)) : createCommentVNode("", true),
23081
23081
  (openBlock(true), createElementBlock(Fragment, null, renderList(pages.value, (page) => {
23082
23082
  return openBlock(), createElementBlock("div", {
@@ -23087,10 +23087,10 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
23087
23087
  page === _ctx.options.selectedPage ? "lupa-page-number-selected" : ""
23088
23088
  ]),
23089
23089
  "data-cy": "lupa-page-number"
23090
- }, toDisplayString(page), 11, _hoisted_3$j);
23090
+ }, toDisplayString(page), 11, _hoisted_3$l);
23091
23091
  }), 128)),
23092
23092
  showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
23093
- showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$e, "...")) : createCommentVNode("", true),
23093
+ showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$f, "...")) : createCommentVNode("", true),
23094
23094
  createBaseVNode("div", {
23095
23095
  class: "lupa-page-number lupa-page-number-last",
23096
23096
  onClick: _cache[2] || (_cache[2] = () => {
@@ -23109,15 +23109,15 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
23109
23109
  };
23110
23110
  }
23111
23111
  });
23112
- const _hoisted_1$v = {
23112
+ const _hoisted_1$x = {
23113
23113
  id: "lupa-search-results-page-size",
23114
23114
  "data-cy": "lupa-search-results-page-size"
23115
23115
  };
23116
- const _hoisted_2$o = { id: "lupa-select" };
23117
- const _hoisted_3$i = { class: "lupa-select-label" };
23118
- const _hoisted_4$d = ["aria-label"];
23119
- const _hoisted_5$8 = ["value"];
23120
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
23116
+ const _hoisted_2$q = { id: "lupa-select" };
23117
+ const _hoisted_3$k = { class: "lupa-select-label" };
23118
+ const _hoisted_4$e = ["aria-label"];
23119
+ const _hoisted_5$9 = ["value"];
23120
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
23121
23121
  __name: "SearchResultsPageSize",
23122
23122
  props: {
23123
23123
  labels: {},
@@ -23145,9 +23145,9 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
23145
23145
  });
23146
23146
  };
23147
23147
  return (_ctx, _cache) => {
23148
- return openBlock(), createElementBlock("div", _hoisted_1$v, [
23149
- createBaseVNode("div", _hoisted_2$o, [
23150
- createBaseVNode("label", _hoisted_3$i, toDisplayString(label.value), 1),
23148
+ return openBlock(), createElementBlock("div", _hoisted_1$x, [
23149
+ createBaseVNode("div", _hoisted_2$q, [
23150
+ createBaseVNode("label", _hoisted_3$k, toDisplayString(label.value), 1),
23151
23151
  createBaseVNode("select", {
23152
23152
  class: "lupa-select-dropdown",
23153
23153
  "aria-label": label.value,
@@ -23160,23 +23160,23 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
23160
23160
  return openBlock(), createElementBlock("option", {
23161
23161
  key: option,
23162
23162
  value: option
23163
- }, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$8);
23163
+ }, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$9);
23164
23164
  }), 128))
23165
- ], 40, _hoisted_4$d)
23165
+ ], 40, _hoisted_4$e)
23166
23166
  ])
23167
23167
  ]);
23168
23168
  };
23169
23169
  }
23170
23170
  });
23171
- const _hoisted_1$u = {
23171
+ const _hoisted_1$w = {
23172
23172
  id: "lupa-search-results-sort",
23173
23173
  class: "lupa-search-results-sort"
23174
23174
  };
23175
- const _hoisted_2$n = { id: "lupa-select" };
23176
- const _hoisted_3$h = { class: "lupa-select-label" };
23177
- const _hoisted_4$c = ["aria-label"];
23178
- const _hoisted_5$7 = ["value"];
23179
- const _sfc_main$z = /* @__PURE__ */ defineComponent({
23175
+ const _hoisted_2$p = { id: "lupa-select" };
23176
+ const _hoisted_3$j = { class: "lupa-select-label" };
23177
+ const _hoisted_4$d = ["aria-label"];
23178
+ const _hoisted_5$8 = ["value"];
23179
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
23180
23180
  __name: "SearchResultsSort",
23181
23181
  props: {
23182
23182
  options: {},
@@ -23225,9 +23225,9 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
23225
23225
  previousKey.value = selectedKey.value;
23226
23226
  };
23227
23227
  return (_ctx, _cache) => {
23228
- return openBlock(), createElementBlock("div", _hoisted_1$u, [
23229
- createBaseVNode("div", _hoisted_2$n, [
23230
- createBaseVNode("label", _hoisted_3$h, toDisplayString(_ctx.options.label), 1),
23228
+ return openBlock(), createElementBlock("div", _hoisted_1$w, [
23229
+ createBaseVNode("div", _hoisted_2$p, [
23230
+ createBaseVNode("label", _hoisted_3$j, toDisplayString(_ctx.options.label), 1),
23231
23231
  withDirectives(createBaseVNode("select", {
23232
23232
  class: "lupa-select-dropdown",
23233
23233
  "aria-label": _ctx.options.label,
@@ -23240,9 +23240,9 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
23240
23240
  return openBlock(), createElementBlock("option", {
23241
23241
  key: option.key,
23242
23242
  value: option.key
23243
- }, toDisplayString(option.label), 9, _hoisted_5$7);
23243
+ }, toDisplayString(option.label), 9, _hoisted_5$8);
23244
23244
  }), 128))
23245
- ], 40, _hoisted_4$c), [
23245
+ ], 40, _hoisted_4$d), [
23246
23246
  [vModelSelect, selectedKey.value]
23247
23247
  ])
23248
23248
  ])
@@ -23250,14 +23250,14 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
23250
23250
  };
23251
23251
  }
23252
23252
  });
23253
- const _hoisted_1$t = { class: "lupa-toolbar-left" };
23254
- const _hoisted_2$m = {
23253
+ const _hoisted_1$v = { class: "lupa-toolbar-left" };
23254
+ const _hoisted_2$o = {
23255
23255
  key: 0,
23256
23256
  class: "lupa-toolbar-right-title"
23257
23257
  };
23258
- const _hoisted_3$g = { key: 2 };
23259
- const _hoisted_4$b = { key: 4 };
23260
- const _hoisted_5$6 = { key: 6 };
23258
+ const _hoisted_3$i = { key: 2 };
23259
+ const _hoisted_4$c = { key: 4 };
23260
+ const _hoisted_5$7 = { key: 6 };
23261
23261
  const _hoisted_6$5 = { class: "lupa-toolbar-right" };
23262
23262
  const _hoisted_7$3 = {
23263
23263
  key: 0,
@@ -23265,7 +23265,7 @@ const _hoisted_7$3 = {
23265
23265
  };
23266
23266
  const _hoisted_8 = { key: 2 };
23267
23267
  const _hoisted_9 = { key: 4 };
23268
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
23268
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
23269
23269
  __name: "SearchResultsToolbar",
23270
23270
  props: {
23271
23271
  options: {},
@@ -23372,34 +23372,34 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
23372
23372
  id: "lupa-search-results-toolbar",
23373
23373
  class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
23374
23374
  }, [
23375
- createBaseVNode("div", _hoisted_1$t, [
23376
- toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$m, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
23377
- showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$D, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$g)),
23378
- showItemSummary.value ? (openBlock(), createBlock(_sfc_main$V, {
23375
+ createBaseVNode("div", _hoisted_1$v, [
23376
+ toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$o, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
23377
+ showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$F, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$i)),
23378
+ showItemSummary.value ? (openBlock(), createBlock(_sfc_main$X, {
23379
23379
  key: 3,
23380
23380
  label: searchSummaryLabel.value,
23381
23381
  clearable: unref(hasAnyFilter) && showFilterClear.value,
23382
23382
  onClear: handleClearAll
23383
- }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$b)),
23384
- displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$B, {
23383
+ }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$c)),
23384
+ displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$D, {
23385
23385
  key: 5,
23386
23386
  options: paginationOptions.value.pageSelect,
23387
23387
  "last-page-label": paginationOptions.value.labels.showMore,
23388
23388
  "first-page-label": paginationOptions.value.labels.showLess
23389
- }, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_5$6))
23389
+ }, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_5$7))
23390
23390
  ]),
23391
23391
  createBaseVNode("div", _hoisted_6$5, [
23392
23392
  toolbarRightLabel.value ? (openBlock(), createElementBlock("div", _hoisted_7$3, toDisplayString(toolbarRightLabel.value), 1)) : createCommentVNode("", true),
23393
- createVNode(_sfc_main$C, {
23393
+ createVNode(_sfc_main$E, {
23394
23394
  label: optionsValue.value.labels.mobileFilterButton,
23395
23395
  "show-filter-count": showMobileFilterCount.value
23396
23396
  }, null, 8, ["label", "show-filter-count"]),
23397
- paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$A, {
23397
+ paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$C, {
23398
23398
  key: 1,
23399
23399
  options: paginationOptions.value.pageSize,
23400
23400
  labels: paginationOptions.value.labels
23401
23401
  }, null, 8, ["options", "labels"])) : (openBlock(), createElementBlock("div", _hoisted_8)),
23402
- sortOptions.value ? (openBlock(), createBlock(_sfc_main$z, {
23402
+ sortOptions.value ? (openBlock(), createBlock(_sfc_main$B, {
23403
23403
  key: 3,
23404
23404
  options: sortOptions.value,
23405
23405
  callbacks: callbacks.value
@@ -23409,7 +23409,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
23409
23409
  };
23410
23410
  }
23411
23411
  });
23412
- const _sfc_main$x = /* @__PURE__ */ defineComponent({
23412
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
23413
23413
  __name: "SearchResultsProductImage",
23414
23414
  props: {
23415
23415
  item: {},
@@ -23417,7 +23417,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
23417
23417
  },
23418
23418
  setup(__props) {
23419
23419
  return (_ctx, _cache) => {
23420
- return openBlock(), createBlock(_sfc_main$1h, {
23420
+ return openBlock(), createBlock(_sfc_main$1j, {
23421
23421
  item: _ctx.item,
23422
23422
  options: _ctx.options,
23423
23423
  "wrapper-class": "lupa-search-results-image-wrapper",
@@ -23426,16 +23426,16 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
23426
23426
  };
23427
23427
  }
23428
23428
  });
23429
- const _hoisted_1$s = ["title", "innerHTML"];
23430
- const _hoisted_2$l = ["title"];
23431
- const _hoisted_3$f = ["href", "innerHTML"];
23432
- const _hoisted_4$a = ["title"];
23433
- const _hoisted_5$5 = {
23429
+ const _hoisted_1$u = ["title", "innerHTML"];
23430
+ const _hoisted_2$n = ["title"];
23431
+ const _hoisted_3$h = ["href", "innerHTML"];
23432
+ const _hoisted_4$b = ["title"];
23433
+ const _hoisted_5$6 = {
23434
23434
  key: 0,
23435
23435
  class: "lupa-search-results-product-title-text"
23436
23436
  };
23437
23437
  const _hoisted_6$4 = ["href"];
23438
- const _sfc_main$w = /* @__PURE__ */ defineComponent({
23438
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
23439
23439
  __name: "SearchResultsProductTitle",
23440
23440
  props: {
23441
23441
  item: {},
@@ -23472,7 +23472,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
23472
23472
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
23473
23473
  title: sanitizedTitle.value,
23474
23474
  innerHTML: sanitizedTitle.value
23475
- }, null, 12, _hoisted_1$s)) : isHtml.value && _ctx.options.link ? (openBlock(), createElementBlock("div", {
23475
+ }, null, 12, _hoisted_1$u)) : isHtml.value && _ctx.options.link ? (openBlock(), createElementBlock("div", {
23476
23476
  key: 1,
23477
23477
  class: "lupa-search-results-product-title",
23478
23478
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
@@ -23483,26 +23483,26 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
23483
23483
  class: "lupa-search-results-product-title-text lupa-title-link",
23484
23484
  innerHTML: sanitizedTitle.value,
23485
23485
  onClick: handleNavigation
23486
- }, null, 8, _hoisted_3$f)
23487
- ], 12, _hoisted_2$l)) : (openBlock(), createElementBlock("div", {
23486
+ }, null, 8, _hoisted_3$h)
23487
+ ], 12, _hoisted_2$n)) : (openBlock(), createElementBlock("div", {
23488
23488
  key: 2,
23489
23489
  class: "lupa-search-results-product-title",
23490
23490
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
23491
23491
  title: title.value
23492
23492
  }, [
23493
- !_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_5$5, toDisplayString(title.value), 1)) : createCommentVNode("", true),
23493
+ !_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_5$6, toDisplayString(title.value), 1)) : createCommentVNode("", true),
23494
23494
  _ctx.options.link ? (openBlock(), createElementBlock("a", {
23495
23495
  key: 1,
23496
23496
  href: _ctx.link,
23497
23497
  class: "lupa-search-results-product-title-text lupa-title-link",
23498
23498
  onClick: handleNavigation
23499
23499
  }, toDisplayString(title.value), 9, _hoisted_6$4)) : createCommentVNode("", true)
23500
- ], 12, _hoisted_4$a));
23500
+ ], 12, _hoisted_4$b));
23501
23501
  };
23502
23502
  }
23503
23503
  });
23504
- const _hoisted_1$r = ["innerHTML"];
23505
- const _sfc_main$v = /* @__PURE__ */ defineComponent({
23504
+ const _hoisted_1$t = ["innerHTML"];
23505
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
23506
23506
  __name: "SearchResultsProductDescription",
23507
23507
  props: {
23508
23508
  item: {},
@@ -23529,7 +23529,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
23529
23529
  class: "lupa-search-results-product-description",
23530
23530
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
23531
23531
  innerHTML: sanitizedDescription.value
23532
- }, null, 12, _hoisted_1$r)) : (openBlock(), createElementBlock("div", {
23532
+ }, null, 12, _hoisted_1$t)) : (openBlock(), createElementBlock("div", {
23533
23533
  key: 1,
23534
23534
  class: "lupa-search-results-product-description",
23535
23535
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
@@ -23537,15 +23537,15 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
23537
23537
  };
23538
23538
  }
23539
23539
  });
23540
- const _hoisted_1$q = { id: "lupa-search-results-rating" };
23541
- const _hoisted_2$k = { class: "lupa-ratings" };
23542
- const _hoisted_3$e = { class: "lupa-ratings-base" };
23543
- const _hoisted_4$9 = ["innerHTML"];
23544
- const _hoisted_5$4 = { class: "lupa-rating-wrapper" };
23540
+ const _hoisted_1$s = { id: "lupa-search-results-rating" };
23541
+ const _hoisted_2$m = { class: "lupa-ratings" };
23542
+ const _hoisted_3$g = { class: "lupa-ratings-base" };
23543
+ const _hoisted_4$a = ["innerHTML"];
23544
+ const _hoisted_5$5 = { class: "lupa-rating-wrapper" };
23545
23545
  const _hoisted_6$3 = ["innerHTML"];
23546
23546
  const _hoisted_7$2 = ["href"];
23547
23547
  const STAR_COUNT = 5;
23548
- const _sfc_main$u = /* @__PURE__ */ defineComponent({
23548
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
23549
23549
  __name: "SearchResultsProductRating",
23550
23550
  props: {
23551
23551
  item: {},
@@ -23576,18 +23576,18 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
23576
23576
  return generateLink(props.options.links.ratingDetails, props.item);
23577
23577
  });
23578
23578
  return (_ctx, _cache) => {
23579
- return openBlock(), createElementBlock("div", _hoisted_1$q, [
23580
- createBaseVNode("div", _hoisted_2$k, [
23581
- createBaseVNode("div", _hoisted_3$e, [
23579
+ return openBlock(), createElementBlock("div", _hoisted_1$s, [
23580
+ createBaseVNode("div", _hoisted_2$m, [
23581
+ createBaseVNode("div", _hoisted_3$g, [
23582
23582
  (openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
23583
23583
  return openBlock(), createElementBlock("div", {
23584
23584
  key: index,
23585
23585
  innerHTML: star,
23586
23586
  class: "lupa-rating lupa-rating-not-highlighted"
23587
- }, null, 8, _hoisted_4$9);
23587
+ }, null, 8, _hoisted_4$a);
23588
23588
  }), 128))
23589
23589
  ]),
23590
- createBaseVNode("div", _hoisted_5$4, [
23590
+ createBaseVNode("div", _hoisted_5$5, [
23591
23591
  createBaseVNode("div", {
23592
23592
  class: "lupa-ratings-highlighted",
23593
23593
  style: normalizeStyle({ width: ratingPercentage.value + "%" })
@@ -23610,11 +23610,11 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
23610
23610
  };
23611
23611
  }
23612
23612
  });
23613
- const _hoisted_1$p = {
23613
+ const _hoisted_1$r = {
23614
23614
  class: "lupa-search-results-product-regular-price",
23615
23615
  "data-cy": "lupa-search-results-product-regular-price"
23616
23616
  };
23617
- const _sfc_main$t = /* @__PURE__ */ defineComponent({
23617
+ const _sfc_main$v = /* @__PURE__ */ defineComponent({
23618
23618
  __name: "SearchResultsProductRegularPrice",
23619
23619
  props: {
23620
23620
  item: {},
@@ -23632,11 +23632,11 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
23632
23632
  );
23633
23633
  });
23634
23634
  return (_ctx, _cache) => {
23635
- return openBlock(), createElementBlock("div", _hoisted_1$p, toDisplayString(price.value), 1);
23635
+ return openBlock(), createElementBlock("div", _hoisted_1$r, toDisplayString(price.value), 1);
23636
23636
  };
23637
23637
  }
23638
23638
  });
23639
- const _sfc_main$s = /* @__PURE__ */ defineComponent({
23639
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
23640
23640
  __name: "SearchResultsProductPrice",
23641
23641
  props: {
23642
23642
  item: {},
@@ -23666,10 +23666,10 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
23666
23666
  };
23667
23667
  }
23668
23668
  });
23669
- const _hoisted_1$o = { class: "lupa-search-results-add-to-cart-wrapper" };
23670
- const _hoisted_2$j = { class: "lupa-search-results-product-addtocart" };
23671
- const _hoisted_3$d = ["onClick", "disabled"];
23672
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
23669
+ const _hoisted_1$q = { class: "lupa-search-results-add-to-cart-wrapper" };
23670
+ const _hoisted_2$l = { class: "lupa-search-results-product-addtocart" };
23671
+ const _hoisted_3$f = ["onClick", "disabled"];
23672
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
23673
23673
  __name: "SearchResultsProductAddToCart",
23674
23674
  props: {
23675
23675
  item: {},
@@ -23702,25 +23702,25 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
23702
23702
  loading.value = false;
23703
23703
  });
23704
23704
  return (_ctx, _cache) => {
23705
- return openBlock(), createElementBlock("div", _hoisted_1$o, [
23706
- createBaseVNode("div", _hoisted_2$j, [
23705
+ return openBlock(), createElementBlock("div", _hoisted_1$q, [
23706
+ createBaseVNode("div", _hoisted_2$l, [
23707
23707
  createBaseVNode("button", {
23708
23708
  onClick: withModifiers(handleClick, ["stop"]),
23709
23709
  class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
23710
23710
  "data-cy": "lupa-add-to-cart",
23711
23711
  disabled: !inStockValue.value || loading.value
23712
- }, toDisplayString(label.value), 11, _hoisted_3$d)
23712
+ }, toDisplayString(label.value), 11, _hoisted_3$f)
23713
23713
  ])
23714
23714
  ]);
23715
23715
  };
23716
23716
  }
23717
23717
  });
23718
- const _hoisted_1$n = ["innerHTML"];
23719
- const _hoisted_2$i = { key: 0 };
23720
- const _hoisted_3$c = { key: 1 };
23721
- const _hoisted_4$8 = { class: "lupa-search-box-custom-label" };
23722
- const _hoisted_5$3 = { class: "lupa-search-box-custom-text" };
23723
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
23718
+ const _hoisted_1$p = ["innerHTML"];
23719
+ const _hoisted_2$k = { key: 0 };
23720
+ const _hoisted_3$e = { key: 1 };
23721
+ const _hoisted_4$9 = { class: "lupa-search-box-custom-label" };
23722
+ const _hoisted_5$4 = { class: "lupa-search-box-custom-text" };
23723
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
23724
23724
  __name: "SearchResultsProductCustom",
23725
23725
  props: {
23726
23726
  item: {},
@@ -23758,20 +23758,20 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
23758
23758
  key: 0,
23759
23759
  class: className.value,
23760
23760
  innerHTML: text.value
23761
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$n)) : (openBlock(), createElementBlock("div", mergeProps({
23761
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$p)) : (openBlock(), createElementBlock("div", mergeProps({
23762
23762
  key: 1,
23763
23763
  class: className.value
23764
23764
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
23765
- !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$i, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$c, [
23766
- createBaseVNode("div", _hoisted_4$8, toDisplayString(label.value), 1),
23767
- createBaseVNode("div", _hoisted_5$3, toDisplayString(text.value), 1)
23765
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$k, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$e, [
23766
+ createBaseVNode("div", _hoisted_4$9, toDisplayString(label.value), 1),
23767
+ createBaseVNode("div", _hoisted_5$4, toDisplayString(text.value), 1)
23768
23768
  ]))
23769
23769
  ], 16));
23770
23770
  };
23771
23771
  }
23772
23772
  });
23773
- const _hoisted_1$m = ["innerHTML"];
23774
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
23773
+ const _hoisted_1$o = ["innerHTML"];
23774
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
23775
23775
  __name: "SearchResultsProductCustomHtmlElement",
23776
23776
  props: {
23777
23777
  item: {},
@@ -23802,15 +23802,15 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
23802
23802
  return openBlock(), createElementBlock("div", mergeProps({
23803
23803
  class: className.value,
23804
23804
  innerHTML: text.value
23805
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$m);
23805
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$o);
23806
23806
  };
23807
23807
  }
23808
23808
  });
23809
- const _hoisted_1$l = { id: "lupa-search-results-rating" };
23810
- const _hoisted_2$h = ["innerHTML"];
23811
- const _hoisted_3$b = { class: "lupa-ratings" };
23812
- const _hoisted_4$7 = ["href"];
23813
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
23809
+ const _hoisted_1$n = { id: "lupa-search-results-rating" };
23810
+ const _hoisted_2$j = ["innerHTML"];
23811
+ const _hoisted_3$d = { class: "lupa-ratings" };
23812
+ const _hoisted_4$8 = ["href"];
23813
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
23814
23814
  __name: "SearchResultsProductSingleStarRating",
23815
23815
  props: {
23816
23816
  item: {},
@@ -23838,35 +23838,35 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
23838
23838
  return RATING_STAR_HTML;
23839
23839
  });
23840
23840
  return (_ctx, _cache) => {
23841
- return openBlock(), createElementBlock("div", _hoisted_1$l, [
23841
+ return openBlock(), createElementBlock("div", _hoisted_1$n, [
23842
23842
  createBaseVNode("div", {
23843
23843
  innerHTML: star.value,
23844
23844
  class: "lupa-rating lupa-rating-highlighted"
23845
- }, null, 8, _hoisted_2$h),
23846
- createBaseVNode("div", _hoisted_3$b, toDisplayString(rating.value), 1),
23845
+ }, null, 8, _hoisted_2$j),
23846
+ createBaseVNode("div", _hoisted_3$d, toDisplayString(rating.value), 1),
23847
23847
  createBaseVNode("a", {
23848
23848
  href: ratingLink.value,
23849
23849
  class: "lupa-total-ratings"
23850
- }, toDisplayString(totalRatings.value), 9, _hoisted_4$7)
23850
+ }, toDisplayString(totalRatings.value), 9, _hoisted_4$8)
23851
23851
  ]);
23852
23852
  };
23853
23853
  }
23854
23854
  });
23855
23855
  const __default__ = {
23856
23856
  components: {
23857
- SearchResultsProductImage: _sfc_main$x,
23858
- SearchResultsProductTitle: _sfc_main$w,
23859
- SearchResultsProductDescription: _sfc_main$v,
23860
- SearchResultsProductRating: _sfc_main$u,
23861
- SearchResultsProductRegularPrice: _sfc_main$t,
23862
- SearchResultsProductPrice: _sfc_main$s,
23863
- SearchResultsProductAddToCart: _sfc_main$r,
23864
- SearchResultsProductCustom: _sfc_main$q,
23865
- SearchResultsProductCustomHtmlElement: _sfc_main$p,
23866
- SearchResultsProductSingleStarRating: _sfc_main$o
23867
- }
23868
- };
23869
- const _sfc_main$n = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
23857
+ SearchResultsProductImage: _sfc_main$z,
23858
+ SearchResultsProductTitle: _sfc_main$y,
23859
+ SearchResultsProductDescription: _sfc_main$x,
23860
+ SearchResultsProductRating: _sfc_main$w,
23861
+ SearchResultsProductRegularPrice: _sfc_main$v,
23862
+ SearchResultsProductPrice: _sfc_main$u,
23863
+ SearchResultsProductAddToCart: _sfc_main$t,
23864
+ SearchResultsProductCustom: _sfc_main$s,
23865
+ SearchResultsProductCustomHtmlElement: _sfc_main$r,
23866
+ SearchResultsProductSingleStarRating: _sfc_main$q
23867
+ }
23868
+ };
23869
+ const _sfc_main$p = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
23870
23870
  __name: "SearchResultsProductCardElement",
23871
23871
  props: {
23872
23872
  item: {},
@@ -23942,13 +23942,13 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
23942
23942
  };
23943
23943
  }
23944
23944
  }));
23945
- const _hoisted_1$k = ["href"];
23946
- const _hoisted_2$g = {
23945
+ const _hoisted_1$m = ["href"];
23946
+ const _hoisted_2$i = {
23947
23947
  key: 0,
23948
23948
  class: "lupa-out-of-stock"
23949
23949
  };
23950
- const _hoisted_3$a = { class: "lupa-search-result-product-details-section" };
23951
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
23950
+ const _hoisted_3$c = { class: "lupa-search-result-product-details-section" };
23951
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
23952
23952
  __name: "SearchResultsProductCard",
23953
23953
  props: {
23954
23954
  product: {},
@@ -24100,7 +24100,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
24100
24100
  "data-cy": "lupa-search-result-product-card",
24101
24101
  class: ["lupa-search-result-product-card", !isInStock.value ? "lupa-out-of-stock" : ""]
24102
24102
  }, customDocumentHtmlAttributes.value, { onClick: handleClick }), [
24103
- createVNode(_sfc_main$12, { options: badgesOptions.value }, null, 8, ["options"]),
24103
+ createVNode(_sfc_main$14, { options: badgesOptions.value }, null, 8, ["options"]),
24104
24104
  createBaseVNode("div", {
24105
24105
  class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
24106
24106
  }, [
@@ -24110,7 +24110,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
24110
24110
  onClick: handleNavigation
24111
24111
  }, [
24112
24112
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
24113
- return openBlock(), createBlock(_sfc_main$n, {
24113
+ return openBlock(), createBlock(_sfc_main$p, {
24114
24114
  class: "lupa-search-results-product-element",
24115
24115
  item: _ctx.product,
24116
24116
  element,
@@ -24121,16 +24121,16 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
24121
24121
  onProductEvent: handleProductEvent
24122
24122
  }, null, 8, ["item", "element", "labels", "inStock", "link"]);
24123
24123
  }), 128)),
24124
- createVNode(_sfc_main$12, {
24124
+ createVNode(_sfc_main$14, {
24125
24125
  options: badgesOptions.value,
24126
24126
  position: "image",
24127
24127
  class: "lupa-image-badges"
24128
24128
  }, null, 8, ["options"]),
24129
- ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$g, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
24130
- ], 8, _hoisted_1$k),
24131
- createBaseVNode("div", _hoisted_3$a, [
24129
+ ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$i, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
24130
+ ], 8, _hoisted_1$m),
24131
+ createBaseVNode("div", _hoisted_3$c, [
24132
24132
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
24133
- return openBlock(), createBlock(_sfc_main$n, {
24133
+ return openBlock(), createBlock(_sfc_main$p, {
24134
24134
  class: "lupa-search-results-product-element",
24135
24135
  item: _ctx.product,
24136
24136
  element,
@@ -24148,7 +24148,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
24148
24148
  class: normalizeClass("lupa-element-group-" + group)
24149
24149
  }, [
24150
24150
  (openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
24151
- return openBlock(), createBlock(_sfc_main$n, {
24151
+ return openBlock(), createBlock(_sfc_main$p, {
24152
24152
  class: "lupa-search-results-product-element",
24153
24153
  item: _ctx.product,
24154
24154
  element,
@@ -24166,23 +24166,23 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
24166
24166
  };
24167
24167
  }
24168
24168
  });
24169
- const _hoisted_1$j = {
24169
+ const _hoisted_1$l = {
24170
24170
  id: "lupa-search-results-similar-queries",
24171
24171
  "data-cy": "lupa-search-results-similar-queries"
24172
24172
  };
24173
- const _hoisted_2$f = { class: "lupa-similar-queries-label" };
24174
- const _hoisted_3$9 = {
24173
+ const _hoisted_2$h = { class: "lupa-similar-queries-label" };
24174
+ const _hoisted_3$b = {
24175
24175
  class: "lupa-similar-query-label",
24176
24176
  "data-cy": "lupa-similar-query-label"
24177
24177
  };
24178
- const _hoisted_4$6 = ["onClick"];
24179
- const _hoisted_5$2 = ["innerHTML"];
24178
+ const _hoisted_4$7 = ["onClick"];
24179
+ const _hoisted_5$3 = ["innerHTML"];
24180
24180
  const _hoisted_6$2 = { key: 0 };
24181
24181
  const _hoisted_7$1 = {
24182
24182
  class: "lupa-products",
24183
24183
  "data-cy": "lupa-products"
24184
24184
  };
24185
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
24185
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
24186
24186
  __name: "SearchResultsSimilarQueries",
24187
24187
  props: {
24188
24188
  labels: {},
@@ -24212,11 +24212,11 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
24212
24212
  paramsStore.goToResults({ searchText, facet });
24213
24213
  };
24214
24214
  return (_ctx, _cache) => {
24215
- return openBlock(), createElementBlock("div", _hoisted_1$j, [
24216
- createBaseVNode("div", _hoisted_2$f, toDisplayString(_ctx.labels.similarQueries), 1),
24215
+ return openBlock(), createElementBlock("div", _hoisted_1$l, [
24216
+ createBaseVNode("div", _hoisted_2$h, toDisplayString(_ctx.labels.similarQueries), 1),
24217
24217
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
24218
24218
  return openBlock(), createElementBlock("div", { key: index }, [
24219
- createBaseVNode("div", _hoisted_3$9, [
24219
+ createBaseVNode("div", _hoisted_3$b, [
24220
24220
  createBaseVNode("span", null, toDisplayString(similarQueryLabel.value), 1),
24221
24221
  createBaseVNode("span", {
24222
24222
  id: "lupa-similar-query-text-component",
@@ -24226,13 +24226,13 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
24226
24226
  }, [
24227
24227
  createBaseVNode("span", {
24228
24228
  innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
24229
- }, null, 8, _hoisted_5$2),
24229
+ }, null, 8, _hoisted_5$3),
24230
24230
  similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$2, " (" + toDisplayString(similarQuery.count) + ")", 1)) : createCommentVNode("", true)
24231
- ], 8, _hoisted_4$6)
24231
+ ], 8, _hoisted_4$7)
24232
24232
  ]),
24233
24233
  createBaseVNode("div", _hoisted_7$1, [
24234
24234
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
24235
- return openBlock(), createBlock(_sfc_main$m, {
24235
+ return openBlock(), createBlock(_sfc_main$o, {
24236
24236
  style: normalizeStyle(_ctx.columnSize),
24237
24237
  key: getDocumentKey(index2, product),
24238
24238
  product,
@@ -24246,15 +24246,15 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
24246
24246
  };
24247
24247
  }
24248
24248
  });
24249
- const _hoisted_1$i = {
24249
+ const _hoisted_1$k = {
24250
24250
  key: 0,
24251
24251
  class: "lupa-results-additional-panel"
24252
24252
  };
24253
- const _hoisted_2$e = {
24253
+ const _hoisted_2$g = {
24254
24254
  class: "lupa-results-additional-panel-items",
24255
24255
  "data-cy": "lupa-results-additional-panel-items"
24256
24256
  };
24257
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
24257
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
24258
24258
  __name: "AdditionalPanel",
24259
24259
  props: {
24260
24260
  panel: {},
@@ -24326,10 +24326,10 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
24326
24326
  handleQueryChange();
24327
24327
  });
24328
24328
  return (_ctx, _cache) => {
24329
- return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$i, [
24330
- createBaseVNode("div", _hoisted_2$e, [
24329
+ return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$k, [
24330
+ createBaseVNode("div", _hoisted_2$g, [
24331
24331
  (openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
24332
- return openBlock(), createBlock(_sfc_main$m, {
24332
+ return openBlock(), createBlock(_sfc_main$o, {
24333
24333
  key: index,
24334
24334
  product: item,
24335
24335
  options: _ctx.panel,
@@ -24347,11 +24347,11 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
24347
24347
  };
24348
24348
  }
24349
24349
  });
24350
- const _hoisted_1$h = {
24350
+ const _hoisted_1$j = {
24351
24351
  key: 0,
24352
24352
  class: "lupa-results-additional-panels"
24353
24353
  };
24354
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
24354
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
24355
24355
  __name: "AdditionalPanels",
24356
24356
  props: {
24357
24357
  options: {},
@@ -24368,9 +24368,9 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
24368
24368
  return locationPanels.value.length > 0;
24369
24369
  });
24370
24370
  return (_ctx, _cache) => {
24371
- return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$h, [
24371
+ return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$j, [
24372
24372
  (openBlock(true), createElementBlock(Fragment, null, renderList(locationPanels.value, (panel) => {
24373
- return openBlock(), createBlock(_sfc_main$k, {
24373
+ return openBlock(), createBlock(_sfc_main$m, {
24374
24374
  key: panel.queryKey,
24375
24375
  panel,
24376
24376
  options: _ctx.sdkOptions
@@ -24387,29 +24387,29 @@ const _export_sfc = (sfc, props) => {
24387
24387
  }
24388
24388
  return target;
24389
24389
  };
24390
- const _sfc_main$i = {};
24391
- const _hoisted_1$g = { class: "lupa-spinner-wrapper" };
24392
- const _hoisted_2$d = { class: "lupa-spinner" };
24390
+ const _sfc_main$k = {};
24391
+ const _hoisted_1$i = { class: "lupa-spinner-wrapper" };
24392
+ const _hoisted_2$f = { class: "lupa-spinner" };
24393
24393
  function _sfc_render(_ctx, _cache) {
24394
- return openBlock(), createElementBlock("div", _hoisted_1$g, [
24395
- createBaseVNode("div", _hoisted_2$d, [
24394
+ return openBlock(), createElementBlock("div", _hoisted_1$i, [
24395
+ createBaseVNode("div", _hoisted_2$f, [
24396
24396
  (openBlock(), createElementBlock(Fragment, null, renderList(12, (x2) => {
24397
24397
  return createBaseVNode("div", { key: x2 });
24398
24398
  }), 64))
24399
24399
  ])
24400
24400
  ]);
24401
24401
  }
24402
- const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render]]);
24403
- const _hoisted_1$f = {
24402
+ const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render]]);
24403
+ const _hoisted_1$h = {
24404
24404
  id: "lupa-search-results-similar-results",
24405
24405
  "data-cy": "lupa-search-results-similar-results"
24406
24406
  };
24407
- const _hoisted_2$c = { class: "lupa-similar-results-label" };
24408
- const _hoisted_3$8 = {
24407
+ const _hoisted_2$e = { class: "lupa-similar-results-label" };
24408
+ const _hoisted_3$a = {
24409
24409
  class: "lupa-products",
24410
24410
  "data-cy": "lupa-products"
24411
24411
  };
24412
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
24412
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
24413
24413
  __name: "SearchResultsSimilarResults",
24414
24414
  props: {
24415
24415
  columnSize: {},
@@ -24425,11 +24425,11 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
24425
24425
  return getProductKey(`${index}`, product, props.productCardOptions.idKey);
24426
24426
  };
24427
24427
  return (_ctx, _cache) => {
24428
- return openBlock(), createElementBlock("div", _hoisted_1$f, [
24429
- createBaseVNode("div", _hoisted_2$c, toDisplayString(_ctx.labels.similarResultsLabel), 1),
24430
- createBaseVNode("div", _hoisted_3$8, [
24428
+ return openBlock(), createElementBlock("div", _hoisted_1$h, [
24429
+ createBaseVNode("div", _hoisted_2$e, toDisplayString(_ctx.labels.similarResultsLabel), 1),
24430
+ createBaseVNode("div", _hoisted_3$a, [
24431
24431
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarResults.value.items, (product, index) => {
24432
- return openBlock(), createBlock(_sfc_main$m, {
24432
+ return openBlock(), createBlock(_sfc_main$o, {
24433
24433
  style: normalizeStyle(_ctx.columnSize),
24434
24434
  key: getDocumentKey(index, product),
24435
24435
  product,
@@ -24441,6 +24441,179 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
24441
24441
  };
24442
24442
  }
24443
24443
  });
24444
+ var RelatedQuerySourceType = /* @__PURE__ */ ((RelatedQuerySourceType2) => {
24445
+ RelatedQuerySourceType2["FACETS"] = "facets";
24446
+ return RelatedQuerySourceType2;
24447
+ })(RelatedQuerySourceType || {});
24448
+ const extractFacetsRelatedSource = (source, searchResults2) => {
24449
+ var _a, _b, _c, _d, _e;
24450
+ const facet = (_a = searchResults2.facets) == null ? void 0 : _a.find((facet2) => facet2.key === source.key);
24451
+ if (!facet) {
24452
+ return [];
24453
+ }
24454
+ if (facet.type === "terms") {
24455
+ return (_c = (_b = facet.items) == null ? void 0 : _b.slice(0, source.count)) == null ? void 0 : _c.map((item) => item.title);
24456
+ }
24457
+ if (facet.type === "hierarchy") {
24458
+ return (_e = (_d = facet.items) == null ? void 0 : _d.slice(0, source.count)) == null ? void 0 : _e.map((item) => item.title);
24459
+ }
24460
+ return [];
24461
+ };
24462
+ const extractRelatedSource = (source, searchResults2) => {
24463
+ switch (source.type) {
24464
+ case RelatedQuerySourceType.FACETS:
24465
+ return extractFacetsRelatedSource(source, searchResults2);
24466
+ }
24467
+ };
24468
+ const _hoisted_1$g = { class: "lupa-related-query-item" };
24469
+ const _hoisted_2$d = { class: "lupa-related-query-image" };
24470
+ const _hoisted_3$9 = { class: "lupa-related-query-label" };
24471
+ const _hoisted_4$6 = { class: "lupa-related-query-title" };
24472
+ const _hoisted_5$2 = {
24473
+ key: 0,
24474
+ class: "lupa-related-query-count"
24475
+ };
24476
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
24477
+ __name: "RelatedQueryPanel",
24478
+ props: {
24479
+ query: {},
24480
+ options: {}
24481
+ },
24482
+ setup(__props) {
24483
+ const props = __props;
24484
+ const loading = ref(false);
24485
+ const relatedQueryResult = ref(null);
24486
+ const optionsStore = useOptionsStore();
24487
+ const { searchResultOptions } = storeToRefs(optionsStore);
24488
+ const mainImage = computed(() => {
24489
+ var _a, _b, _c;
24490
+ return (_c = (_b = (_a = searchResultOptions.value) == null ? void 0 : _a.elements) == null ? void 0 : _b.find((e2) => e2.type === DocumentElementType.IMAGE)) != null ? _c : "";
24491
+ });
24492
+ const image = computed(() => {
24493
+ var _a, _b, _c;
24494
+ return (_c = (_b = (_a = props.options) == null ? void 0 : _a.image) != null ? _b : mainImage == null ? void 0 : mainImage.value) != null ? _c : "";
24495
+ });
24496
+ const queryKey = computed(() => {
24497
+ var _a, _b;
24498
+ return (_b = (_a = props.options) == null ? void 0 : _a.queryKey) != null ? _b : searchResultOptions.value.queryKey;
24499
+ });
24500
+ computed(() => {
24501
+ var _a, _b;
24502
+ return ((_b = (_a = relatedQueryResult.value) == null ? void 0 : _a.items) == null ? void 0 : _b.length) > 0;
24503
+ });
24504
+ const firstResultItem = computed(() => {
24505
+ var _a, _b;
24506
+ return (_b = (_a = relatedQueryResult.value) == null ? void 0 : _a.items) == null ? void 0 : _b[0];
24507
+ });
24508
+ const totalItemCount = computed(() => {
24509
+ var _a, _b;
24510
+ return (_b = (_a = relatedQueryResult.value) == null ? void 0 : _a.total) != null ? _b : 0;
24511
+ });
24512
+ const searchForRelatedQuery = () => __async2(this, null, function* () {
24513
+ var _a, _b, _c, _d;
24514
+ if (!props.query) {
24515
+ return;
24516
+ }
24517
+ const lupaQuery = { searchText: (_a = props.query) == null ? void 0 : _a.toLowerCase(), limit: 1 };
24518
+ try {
24519
+ loading.value = true;
24520
+ const result2 = yield LupaSearchSdk.query(
24521
+ queryKey.value,
24522
+ lupaQuery,
24523
+ (_b = searchResultOptions.value) == null ? void 0 : _b.options
24524
+ );
24525
+ if (result2.success) {
24526
+ relatedQueryResult.value = result2;
24527
+ }
24528
+ } catch (error) {
24529
+ (_d = (_c = searchResultOptions.value) == null ? void 0 : _c.options) == null ? void 0 : _d.onError(error);
24530
+ } finally {
24531
+ loading.value = false;
24532
+ }
24533
+ });
24534
+ watch(
24535
+ () => props.query,
24536
+ () => {
24537
+ console.log("query changed", props.query);
24538
+ searchForRelatedQuery();
24539
+ }
24540
+ );
24541
+ onMounted(() => {
24542
+ searchForRelatedQuery();
24543
+ });
24544
+ return (_ctx, _cache) => {
24545
+ var _a;
24546
+ return openBlock(), createElementBlock("div", _hoisted_1$g, [
24547
+ createBaseVNode("div", _hoisted_2$d, [
24548
+ firstResultItem.value && image.value ? (openBlock(), createBlock(_sfc_main$1j, {
24549
+ key: 0,
24550
+ "wrapper-class": "lupa-related-query-image-wrapper",
24551
+ "image-class": "lupa-related-query-image",
24552
+ item: firstResultItem.value,
24553
+ options: image.value
24554
+ }, null, 8, ["item", "options"])) : createCommentVNode("", true)
24555
+ ]),
24556
+ createBaseVNode("div", _hoisted_3$9, [
24557
+ createBaseVNode("span", _hoisted_4$6, toDisplayString(_ctx.query), 1),
24558
+ ((_a = _ctx.options) == null ? void 0 : _a.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$2, "(" + toDisplayString(totalItemCount.value) + ")", 1)) : createCommentVNode("", true)
24559
+ ])
24560
+ ]);
24561
+ };
24562
+ }
24563
+ });
24564
+ const _hoisted_1$f = {
24565
+ key: 0,
24566
+ class: "lupa-related-queries"
24567
+ };
24568
+ const _hoisted_2$c = {
24569
+ key: 0,
24570
+ class: "lupa-related-queries-title"
24571
+ };
24572
+ const _hoisted_3$8 = ["onClick"];
24573
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
24574
+ __name: "RelatedQueries",
24575
+ props: {
24576
+ options: {}
24577
+ },
24578
+ setup(__props) {
24579
+ const props = __props;
24580
+ const searchResultStore = useSearchResultStore();
24581
+ const paramsStore = useParamsStore();
24582
+ const { searchResult } = storeToRefs(searchResultStore);
24583
+ const relatedQueries = computed(() => {
24584
+ if (!props.options || !searchResult.value) {
24585
+ return [];
24586
+ }
24587
+ return extractRelatedSource(props.options.source, searchResult.value);
24588
+ });
24589
+ const hasEnoughRelatedQueries = computed(() => {
24590
+ return relatedQueries.value.length > 1;
24591
+ });
24592
+ const goToResults = ({ searchText }) => {
24593
+ paramsStore.goToResults({ searchText });
24594
+ };
24595
+ return (_ctx, _cache) => {
24596
+ var _a, _b, _c, _d;
24597
+ return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
24598
+ ((_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) ? (openBlock(), createElementBlock("h3", _hoisted_2$c, toDisplayString((_d = (_c = _ctx.options) == null ? void 0 : _c.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
24599
+ createBaseVNode("ul", null, [
24600
+ (openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries.value, (query) => {
24601
+ return openBlock(), createElementBlock("li", { key: query }, [
24602
+ createBaseVNode("a", {
24603
+ onClick: ($event) => goToResults({ searchText: query })
24604
+ }, [
24605
+ createVNode(_sfc_main$i, {
24606
+ options: _ctx.options,
24607
+ query
24608
+ }, null, 8, ["options", "query"])
24609
+ ], 8, _hoisted_3$8)
24610
+ ]);
24611
+ }), 128))
24612
+ ])
24613
+ ])) : createCommentVNode("", true);
24614
+ };
24615
+ }
24616
+ });
24444
24617
  const _hoisted_1$e = { id: "lupa-search-results-products" };
24445
24618
  const _hoisted_2$b = {
24446
24619
  class: "lupa-products",
@@ -24570,19 +24743,27 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
24570
24743
  key: 0,
24571
24744
  class: "lupa-loader"
24572
24745
  })) : createCommentVNode("", true),
24746
+ createVNode(_sfc_main$l, {
24747
+ options: _ctx.options,
24748
+ location: "top",
24749
+ sdkOptions: _ctx.options.options
24750
+ }, null, 8, ["options", "sdkOptions"]),
24751
+ createVNode(_sfc_main$h, {
24752
+ options: _ctx.options.relatedQueries
24753
+ }, null, 8, ["options"]),
24573
24754
  unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
24574
- showTopFilters.value ? (openBlock(), createBlock(_sfc_main$E, {
24755
+ showTopFilters.value ? (openBlock(), createBlock(_sfc_main$G, {
24575
24756
  key: 0,
24576
24757
  options: (_a = _ctx.options.filters) != null ? _a : {}
24577
24758
  }, null, 8, ["options"])) : createCommentVNode("", true),
24578
- showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$y, {
24759
+ showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$A, {
24579
24760
  key: 1,
24580
24761
  class: "lupa-toolbar-mobile",
24581
24762
  options: _ctx.options,
24582
24763
  "pagination-location": "top",
24583
24764
  onFilter: filter2
24584
24765
  }, null, 8, ["options"])) : createCommentVNode("", true),
24585
- currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$S, {
24766
+ currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$U, {
24586
24767
  key: 2,
24587
24768
  class: normalizeClass(currentFiltersClass.value),
24588
24769
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -24590,18 +24771,13 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
24590
24771
  expandable: !desktopFiltersExpanded.value
24591
24772
  }, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true)
24592
24773
  ], 64)) : createCommentVNode("", true),
24593
- createVNode(_sfc_main$j, {
24594
- options: _ctx.options,
24595
- location: "top",
24596
- sdkOptions: _ctx.options.options
24597
- }, null, 8, ["options", "sdkOptions"]),
24598
24774
  unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
24599
- createVNode(_sfc_main$y, {
24775
+ createVNode(_sfc_main$A, {
24600
24776
  class: "lupa-toolbar-top",
24601
24777
  options: _ctx.options,
24602
24778
  "pagination-location": "top"
24603
24779
  }, null, 8, ["options"]),
24604
- currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$S, {
24780
+ currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$U, {
24605
24781
  key: 0,
24606
24782
  class: normalizeClass(currentFiltersClass.value),
24607
24783
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -24617,7 +24793,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
24617
24793
  options: productCardOptions.value
24618
24794
  });
24619
24795
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
24620
- return openBlock(), createBlock(_sfc_main$m, {
24796
+ return openBlock(), createBlock(_sfc_main$o, {
24621
24797
  style: normalizeStyle(columnSize.value),
24622
24798
  key: getProductKeyAction(index, product),
24623
24799
  product,
@@ -24633,12 +24809,12 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
24633
24809
  onClick: goToFirstPage
24634
24810
  }, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
24635
24811
  ])) : createCommentVNode("", true),
24636
- createVNode(_sfc_main$y, {
24812
+ createVNode(_sfc_main$A, {
24637
24813
  class: "lupa-toolbar-bottom",
24638
24814
  options: _ctx.options,
24639
24815
  "pagination-location": "bottom"
24640
24816
  }, null, 8, ["options"]),
24641
- createVNode(_sfc_main$j, {
24817
+ createVNode(_sfc_main$l, {
24642
24818
  options: _ctx.options,
24643
24819
  location: "bottom",
24644
24820
  sdkOptions: _ctx.options.options
@@ -24648,14 +24824,14 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
24648
24824
  createBaseVNode("span", null, toDisplayString(unref(currentQueryText)), 1)
24649
24825
  ])) : createCommentVNode("", true),
24650
24826
  hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
24651
- createVNode(_sfc_main$l, {
24827
+ createVNode(_sfc_main$n, {
24652
24828
  labels: similarQueriesLabels.value,
24653
24829
  columnSize: columnSize.value,
24654
24830
  productCardOptions: productCardOptions.value
24655
24831
  }, null, 8, ["labels", "columnSize", "productCardOptions"])
24656
24832
  ])) : createCommentVNode("", true),
24657
24833
  hasSimilarResults.value ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
24658
- createVNode(_sfc_main$h, {
24834
+ createVNode(_sfc_main$j, {
24659
24835
  labels: similarResultsLabels.value,
24660
24836
  columnSize: columnSize.value,
24661
24837
  productCardOptions: productCardOptions.value
@@ -24724,14 +24900,14 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
24724
24900
  ])) : createCommentVNode("", true),
24725
24901
  createBaseVNode("div", _hoisted_4$4, [
24726
24902
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
24727
- return openBlock(), createBlock(_sfc_main$R, {
24903
+ return openBlock(), createBlock(_sfc_main$T, {
24728
24904
  key: getCategoryKey(child),
24729
24905
  item: child,
24730
24906
  options: categoryOptions.value
24731
24907
  }, null, 8, ["item", "options"]);
24732
24908
  }), 128))
24733
24909
  ]),
24734
- createVNode(_sfc_main$y, {
24910
+ createVNode(_sfc_main$A, {
24735
24911
  class: "lupa-toolbar-mobile",
24736
24912
  "pagination-location": "top",
24737
24913
  options: _ctx.options
@@ -24963,8 +25139,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
24963
25139
  class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
24964
25140
  }, [
24965
25141
  _ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
24966
- createVNode(_sfc_main$W, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
24967
- createVNode(_sfc_main$U, {
25142
+ createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
25143
+ createVNode(_sfc_main$W, {
24968
25144
  "show-summary": true,
24969
25145
  options: _ctx.options,
24970
25146
  "is-product-list": (_a = _ctx.isProductList) != null ? _a : false
@@ -24974,17 +25150,17 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
24974
25150
  key: 1,
24975
25151
  options: _ctx.options
24976
25152
  }, null, 8, ["options"])) : createCommentVNode("", true),
24977
- _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$G, {
25153
+ _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$I, {
24978
25154
  key: 2,
24979
25155
  options: _ctx.options.filters,
24980
25156
  onFilter: handleParamsChange
24981
25157
  }, null, 8, ["options"])) : createCommentVNode("", true),
24982
- unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$F, {
25158
+ unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$H, {
24983
25159
  key: 3,
24984
25160
  breadcrumbs: _ctx.options.breadcrumbs
24985
25161
  }, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
24986
25162
  isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
24987
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$H, {
25163
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$J, {
24988
25164
  key: 0,
24989
25165
  options: (_b = _ctx.options.filters) != null ? _b : {},
24990
25166
  ref_key: "searchResultsFilters",
@@ -24992,8 +25168,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
24992
25168
  onFilter: handleParamsChange
24993
25169
  }, null, 8, ["options"])) : createCommentVNode("", true),
24994
25170
  createBaseVNode("div", _hoisted_3$5, [
24995
- createVNode(_sfc_main$W, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
24996
- createVNode(_sfc_main$U, {
25171
+ createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
25172
+ createVNode(_sfc_main$W, {
24997
25173
  options: _ctx.options,
24998
25174
  "is-product-list": (_c = _ctx.isProductList) != null ? _c : false
24999
25175
  }, null, 8, ["options", "is-product-list"]),
@@ -25009,13 +25185,13 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
25009
25185
  }, 8, ["options", "ssr"])
25010
25186
  ])
25011
25187
  ])) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
25012
- createVNode(_sfc_main$W, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
25013
- createVNode(_sfc_main$U, {
25188
+ createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
25189
+ createVNode(_sfc_main$W, {
25014
25190
  options: _ctx.options,
25015
25191
  "is-product-list": (_d = _ctx.isProductList) != null ? _d : false
25016
25192
  }, null, 8, ["options", "is-product-list"]),
25017
25193
  createBaseVNode("div", _hoisted_4$3, [
25018
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$H, {
25194
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$J, {
25019
25195
  key: 0,
25020
25196
  options: (_e = _ctx.options.filters) != null ? _e : {},
25021
25197
  ref_key: "searchResultsFilters",
@@ -30705,7 +30881,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
30705
30881
  onClick: withModifiers(innerClick, ["stop"])
30706
30882
  }, [
30707
30883
  createBaseVNode("div", _hoisted_2$7, [
30708
- createVNode(_sfc_main$X, {
30884
+ createVNode(_sfc_main$Z, {
30709
30885
  options: fullSearchBoxOptions.value,
30710
30886
  "is-search-container": true,
30711
30887
  ref_key: "searchBox",
@@ -31569,7 +31745,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
31569
31745
  key: getProductKeyAction(index, product)
31570
31746
  }, {
31571
31747
  default: withCtx(() => [
31572
- createVNode(_sfc_main$m, {
31748
+ createVNode(_sfc_main$o, {
31573
31749
  product,
31574
31750
  options: _ctx.options,
31575
31751
  "click-tracking-settings": clickTrackingSettings.value
@@ -31582,7 +31758,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
31582
31758
  _: 1
31583
31759
  }, 16)) : (openBlock(), createElementBlock("div", _hoisted_4$2, [
31584
31760
  (openBlock(true), createElementBlock(Fragment, null, renderList(recommendations2.value, (product, index) => {
31585
- return openBlock(), createBlock(_sfc_main$m, {
31761
+ return openBlock(), createBlock(_sfc_main$o, {
31586
31762
  style: normalizeStyle(columnSize.value),
31587
31763
  key: getProductKeyAction(index, product),
31588
31764
  product,
@@ -31845,7 +32021,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
31845
32021
  createBaseVNode("a", {
31846
32022
  href: getLink(product)
31847
32023
  }, [
31848
- createVNode(_sfc_main$x, {
32024
+ createVNode(_sfc_main$z, {
31849
32025
  item: product,
31850
32026
  options: image.value
31851
32027
  }, null, 8, ["item", "options"])
@@ -32009,7 +32185,7 @@ const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
32009
32185
  return (_ctx, _cache) => {
32010
32186
  return openBlock(), createElementBlock("section", _hoisted_1$3, [
32011
32187
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
32012
- return openBlock(), createBlock(_sfc_main$m, {
32188
+ return openBlock(), createBlock(_sfc_main$o, {
32013
32189
  class: "lupa-chat-product-card",
32014
32190
  key: getProductKeyAction(index, product),
32015
32191
  product,
@@ -32202,7 +32378,7 @@ const _hoisted_4 = {
32202
32378
  key: 0,
32203
32379
  class: "lupasearch-chat-content"
32204
32380
  };
32205
- const _sfc_main$1q = /* @__PURE__ */ defineComponent({
32381
+ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
32206
32382
  __name: "ChatContainer",
32207
32383
  props: {
32208
32384
  options: {}
@@ -38220,7 +38396,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
38220
38396
  };
38221
38397
  __expose({ fetch: fetch2 });
38222
38398
  return (_ctx, _cache) => {
38223
- return openBlock(), createBlock(unref(_sfc_main$X), {
38399
+ return openBlock(), createBlock(unref(_sfc_main$Z), {
38224
38400
  options: fullSearchBoxOptions.value,
38225
38401
  ref_key: "searchBox",
38226
38402
  ref: searchBox2
@@ -38747,7 +38923,7 @@ const chat = (options, mountOptions) => {
38747
38923
  const instance = createVue(
38748
38924
  options.displayOptions.containerSelector,
38749
38925
  mountOptions == null ? void 0 : mountOptions.mountingBehavior,
38750
- _sfc_main$1q,
38926
+ _sfc_main$1s,
38751
38927
  {
38752
38928
  options
38753
38929
  }