@getlupa/client 1.4.3 → 1.5.1

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.
@@ -6666,7 +6666,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
6666
6666
  noResultsSuggestion: "No results found for this query: {1}",
6667
6667
  didYouMean: "Did you mean to search: {1}",
6668
6668
  similarQuery: "Search results for phrase {1}",
6669
- similarQueries: "Similar queries:"
6669
+ similarQueries: "Similar queries:",
6670
+ similarResultsLabel: "Related to your query:"
6670
6671
  },
6671
6672
  grid: {
6672
6673
  columns: {
@@ -7348,6 +7349,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7348
7349
  var _a;
7349
7350
  return (_a = params.value.filters) != null ? _a : {};
7350
7351
  });
7352
+ const navigate = (url) => {
7353
+ var _a, _b, _c;
7354
+ window.history.pushState("", "Append params", url.pathname + url.search);
7355
+ const params2 = parseParams(url.searchParams);
7356
+ (_c = (_b = (_a = optionsStore == null ? void 0 : optionsStore.searchBoxOptions) == null ? void 0 : _a.callbacks) == null ? void 0 : _b.onSearchResultsNavigate) == null ? void 0 : _c.call(_b, {
7357
+ params: params2
7358
+ });
7359
+ };
7351
7360
  const add2 = (newParams, ssr) => {
7352
7361
  if (!newParams) {
7353
7362
  return { params: params.value };
@@ -7360,7 +7369,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7360
7369
  const url = getPageUrl();
7361
7370
  const paramsToRemove = Array.from(url.searchParams.keys()).filter(isFacetKey);
7362
7371
  removeParams(url, paramsToRemove);
7363
- window.history.pushState("", "Append params", url.pathname + url.search);
7372
+ navigate(url);
7364
7373
  params.value = parseParams(url.searchParams);
7365
7374
  searchString.value = url.search;
7366
7375
  };
@@ -7371,7 +7380,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7371
7380
  const url = getPageUrl();
7372
7381
  paramsToRemove = getRemovableParams(url, paramsToRemove);
7373
7382
  removeParams(url, paramsToRemove);
7374
- window.history.pushState("", "Append params", url.pathname + url.search);
7383
+ navigate(url);
7375
7384
  if (!save) {
7376
7385
  return;
7377
7386
  }
@@ -7433,7 +7442,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7433
7442
  paramsToRemove = getRemovableParams(url, paramsToRemove);
7434
7443
  removeParams(url, paramsToRemove);
7435
7444
  newParams.forEach((p2) => appendParam(url, p2, encode));
7436
- window.history.pushState("", "Append params", url.pathname + url.search);
7445
+ navigate(url);
7437
7446
  if (!save) {
7438
7447
  return;
7439
7448
  }
@@ -7676,16 +7685,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7676
7685
  resetHighlightIndex
7677
7686
  };
7678
7687
  });
7679
- const _hoisted_1$1b = { id: "lupa-search-box-input-container" };
7680
- const _hoisted_2$O = { class: "lupa-input-clear" };
7681
- const _hoisted_3$A = { id: "lupa-search-box-input" };
7688
+ const _hoisted_1$1c = { id: "lupa-search-box-input-container" };
7689
+ const _hoisted_2$P = { class: "lupa-input-clear" };
7690
+ const _hoisted_3$B = { id: "lupa-search-box-input" };
7682
7691
  const _hoisted_4$q = ["value"];
7683
7692
  const _hoisted_5$f = ["placeholder"];
7684
- const _hoisted_6$8 = {
7693
+ const _hoisted_6$9 = {
7685
7694
  key: 0,
7686
7695
  class: "lupa-close-label"
7687
7696
  };
7688
- const _sfc_main$1j = /* @__PURE__ */ defineComponent({
7697
+ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
7689
7698
  __name: "SearchBoxInput",
7690
7699
  props: {
7691
7700
  options: {},
@@ -7762,14 +7771,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7762
7771
  };
7763
7772
  __expose({ focus });
7764
7773
  return (_ctx, _cache) => {
7765
- return openBlock(), createElementBlock("div", _hoisted_1$1b, [
7766
- createBaseVNode("div", _hoisted_2$O, [
7774
+ return openBlock(), createElementBlock("div", _hoisted_1$1c, [
7775
+ createBaseVNode("div", _hoisted_2$P, [
7767
7776
  createBaseVNode("div", {
7768
7777
  class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
7769
7778
  onClick: clear2
7770
7779
  }, null, 2)
7771
7780
  ]),
7772
- createBaseVNode("div", _hoisted_3$A, [
7781
+ createBaseVNode("div", _hoisted_3$B, [
7773
7782
  createBaseVNode("input", {
7774
7783
  class: "lupa-hint",
7775
7784
  value: showHint.value ? suggestedValue.value.item.suggestion : "",
@@ -7796,13 +7805,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7796
7805
  class: "lupa-close-search-container",
7797
7806
  onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
7798
7807
  }, [
7799
- labels.value.close ? (openBlock(), createElementBlock("span", _hoisted_6$8, toDisplayString(labels.value.close), 1)) : createCommentVNode("", true)
7808
+ labels.value.close ? (openBlock(), createElementBlock("span", _hoisted_6$9, toDisplayString(labels.value.close), 1)) : createCommentVNode("", true)
7800
7809
  ])) : createCommentVNode("", true)
7801
7810
  ]);
7802
7811
  };
7803
7812
  }
7804
7813
  });
7805
- const _sfc_main$1i = /* @__PURE__ */ defineComponent({
7814
+ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
7806
7815
  __name: "SearchBoxMoreResults",
7807
7816
  props: {
7808
7817
  labels: {},
@@ -7834,9 +7843,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7834
7843
  };
7835
7844
  }
7836
7845
  });
7837
- const _hoisted_1$1a = { class: "lupa-search-box-history-item" };
7838
- const _hoisted_2$N = { class: "lupa-search-box-history-item-content" };
7839
- const _sfc_main$1h = /* @__PURE__ */ defineComponent({
7846
+ const _hoisted_1$1b = { class: "lupa-search-box-history-item" };
7847
+ const _hoisted_2$O = { class: "lupa-search-box-history-item-content" };
7848
+ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
7840
7849
  __name: "SearchBoxHistoryItem",
7841
7850
  props: {
7842
7851
  item: {},
@@ -7852,8 +7861,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7852
7861
  emit2("click", { query: props.item });
7853
7862
  };
7854
7863
  return (_ctx, _cache) => {
7855
- return openBlock(), createElementBlock("div", _hoisted_1$1a, [
7856
- createBaseVNode("div", _hoisted_2$N, [
7864
+ return openBlock(), createElementBlock("div", _hoisted_1$1b, [
7865
+ createBaseVNode("div", _hoisted_2$O, [
7857
7866
  createBaseVNode("div", {
7858
7867
  class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
7859
7868
  onClick: click2
@@ -7867,11 +7876,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7867
7876
  };
7868
7877
  }
7869
7878
  });
7870
- const _hoisted_1$19 = {
7879
+ const _hoisted_1$1a = {
7871
7880
  key: 0,
7872
7881
  class: "lupa-search-box-history-panel"
7873
7882
  };
7874
- const _sfc_main$1g = /* @__PURE__ */ defineComponent({
7883
+ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
7875
7884
  __name: "SearchBoxHistoryPanel",
7876
7885
  props: {
7877
7886
  options: {}
@@ -7912,9 +7921,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7912
7921
  }
7913
7922
  };
7914
7923
  return (_ctx, _cache) => {
7915
- return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$19, [
7924
+ return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1a, [
7916
7925
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(history), (item, index) => {
7917
- return openBlock(), createBlock(_sfc_main$1h, {
7926
+ return openBlock(), createBlock(_sfc_main$1i, {
7918
7927
  key: item,
7919
7928
  item,
7920
7929
  highlighted: index === highlightIndex.value,
@@ -7930,25 +7939,25 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7930
7939
  };
7931
7940
  }
7932
7941
  });
7933
- const _hoisted_1$18 = { class: "lupa-search-box-no-results" };
7934
- const _sfc_main$1f = /* @__PURE__ */ defineComponent({
7942
+ const _hoisted_1$19 = { class: "lupa-search-box-no-results" };
7943
+ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
7935
7944
  __name: "SearchBoxNoResults",
7936
7945
  props: {
7937
7946
  labels: {}
7938
7947
  },
7939
7948
  setup(__props) {
7940
7949
  return (_ctx, _cache) => {
7941
- return openBlock(), createElementBlock("p", _hoisted_1$18, toDisplayString(_ctx.labels.noResults), 1);
7950
+ return openBlock(), createElementBlock("p", _hoisted_1$19, toDisplayString(_ctx.labels.noResults), 1);
7942
7951
  };
7943
7952
  }
7944
7953
  });
7945
- const _hoisted_1$17 = ["innerHTML"];
7946
- const _hoisted_2$M = {
7954
+ const _hoisted_1$18 = ["innerHTML"];
7955
+ const _hoisted_2$N = {
7947
7956
  key: 1,
7948
7957
  "data-cy": "lupa-suggestion-value",
7949
7958
  class: "lupa-suggestion-value"
7950
7959
  };
7951
- const _hoisted_3$z = {
7960
+ const _hoisted_3$A = {
7952
7961
  key: 2,
7953
7962
  class: "lupa-suggestion-facet",
7954
7963
  "data-cy": "lupa-suggestion-facet"
@@ -7961,7 +7970,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7961
7970
  class: "lupa-suggestion-facet-value",
7962
7971
  "data-cy": "lupa-suggestion-facet-value"
7963
7972
  };
7964
- const _sfc_main$1e = /* @__PURE__ */ defineComponent({
7973
+ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
7965
7974
  __name: "SearchBoxSuggestion",
7966
7975
  props: {
7967
7976
  suggestion: {},
@@ -7997,8 +8006,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7997
8006
  class: "lupa-suggestion-value",
7998
8007
  "data-cy": "lupa-suggestion-value",
7999
8008
  innerHTML: _ctx.suggestion.displayHighlight
8000
- }, null, 8, _hoisted_1$17)) : (openBlock(), createElementBlock("div", _hoisted_2$M, toDisplayString(_ctx.suggestion.display), 1)),
8001
- _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$z, [
8009
+ }, null, 8, _hoisted_1$18)) : (openBlock(), createElementBlock("div", _hoisted_2$N, toDisplayString(_ctx.suggestion.display), 1)),
8010
+ _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$A, [
8002
8011
  createBaseVNode("span", _hoisted_4$p, toDisplayString(facetLabel.value), 1),
8003
8012
  createBaseVNode("span", _hoisted_5$e, toDisplayString(_ctx.suggestion.facet.title), 1)
8004
8013
  ])) : createCommentVNode("", true)
@@ -8006,11 +8015,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8006
8015
  };
8007
8016
  }
8008
8017
  });
8009
- const _hoisted_1$16 = {
8018
+ const _hoisted_1$17 = {
8010
8019
  id: "lupa-search-box-suggestions",
8011
8020
  "data-cy": "lupa-search-box-suggestions"
8012
8021
  };
8013
- const _sfc_main$1d = /* @__PURE__ */ defineComponent({
8022
+ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
8014
8023
  __name: "SearchBoxSuggestions",
8015
8024
  props: {
8016
8025
  items: {},
@@ -8070,9 +8079,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8070
8079
  });
8071
8080
  });
8072
8081
  return (_ctx, _cache) => {
8073
- return openBlock(), createElementBlock("div", _hoisted_1$16, [
8082
+ return openBlock(), createElementBlock("div", _hoisted_1$17, [
8074
8083
  (openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
8075
- return openBlock(), createBlock(_sfc_main$1e, {
8084
+ return openBlock(), createBlock(_sfc_main$1f, {
8076
8085
  key: getSuggestionKey(item),
8077
8086
  class: normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
8078
8087
  suggestion: item,
@@ -8100,7 +8109,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8100
8109
  }, timeout);
8101
8110
  };
8102
8111
  };
8103
- const _sfc_main$1c = /* @__PURE__ */ defineComponent({
8112
+ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
8104
8113
  __name: "SearchBoxSuggestionsWrapper",
8105
8114
  props: {
8106
8115
  panel: {},
@@ -8141,7 +8150,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8141
8150
  };
8142
8151
  const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
8143
8152
  return (_ctx, _cache) => {
8144
- return openBlock(), createBlock(_sfc_main$1d, {
8153
+ return openBlock(), createBlock(_sfc_main$1e, {
8145
8154
  items: searchResult.value,
8146
8155
  highlight: _ctx.panel.highlight,
8147
8156
  queryKey: _ctx.panel.queryKey,
@@ -8219,8 +8228,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8219
8228
  });
8220
8229
  return { dynamicDataIdMap, loading, enhanceSearchResultsWithDynamicData };
8221
8230
  });
8222
- const _hoisted_1$15 = ["src"];
8223
- const _sfc_main$1b = /* @__PURE__ */ defineComponent({
8231
+ const _hoisted_1$16 = ["src"];
8232
+ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
8224
8233
  __name: "ProductImage",
8225
8234
  props: {
8226
8235
  item: {},
@@ -8268,12 +8277,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8268
8277
  class: normalizeClass((_b = _ctx.imageClass) != null ? _b : ""),
8269
8278
  src: finalUrl.value,
8270
8279
  onError: replaceWithPlaceholder
8271
- }, null, 42, _hoisted_1$15)
8280
+ }, null, 42, _hoisted_1$16)
8272
8281
  ], 2);
8273
8282
  };
8274
8283
  }
8275
8284
  });
8276
- const _sfc_main$1a = /* @__PURE__ */ defineComponent({
8285
+ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
8277
8286
  __name: "SearchBoxProductImage",
8278
8287
  props: {
8279
8288
  item: {},
@@ -8281,7 +8290,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8281
8290
  },
8282
8291
  setup(__props) {
8283
8292
  return (_ctx, _cache) => {
8284
- return openBlock(), createBlock(_sfc_main$1b, {
8293
+ return openBlock(), createBlock(_sfc_main$1c, {
8285
8294
  item: _ctx.item,
8286
8295
  options: _ctx.options,
8287
8296
  "wrapper-class": "lupa-search-box-image-wrapper",
@@ -8290,12 +8299,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8290
8299
  };
8291
8300
  }
8292
8301
  });
8293
- const _hoisted_1$14 = ["innerHTML"];
8294
- const _hoisted_2$L = {
8302
+ const _hoisted_1$15 = ["innerHTML"];
8303
+ const _hoisted_2$M = {
8295
8304
  key: 1,
8296
8305
  class: "lupa-search-box-product-title"
8297
8306
  };
8298
- const _sfc_main$19 = /* @__PURE__ */ defineComponent({
8307
+ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
8299
8308
  __name: "SearchBoxProductTitle",
8300
8309
  props: {
8301
8310
  item: {},
@@ -8315,18 +8324,18 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8315
8324
  key: 0,
8316
8325
  class: "lupa-search-box-product-title",
8317
8326
  innerHTML: title.value
8318
- }, null, 8, _hoisted_1$14)) : (openBlock(), createElementBlock("div", _hoisted_2$L, [
8327
+ }, null, 8, _hoisted_1$15)) : (openBlock(), createElementBlock("div", _hoisted_2$M, [
8319
8328
  createBaseVNode("strong", null, toDisplayString(title.value), 1)
8320
8329
  ]));
8321
8330
  };
8322
8331
  }
8323
8332
  });
8324
- const _hoisted_1$13 = ["innerHTML"];
8325
- const _hoisted_2$K = {
8333
+ const _hoisted_1$14 = ["innerHTML"];
8334
+ const _hoisted_2$L = {
8326
8335
  key: 1,
8327
8336
  class: "lupa-search-box-product-description"
8328
8337
  };
8329
- const _sfc_main$18 = /* @__PURE__ */ defineComponent({
8338
+ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
8330
8339
  __name: "SearchBoxProductDescription",
8331
8340
  props: {
8332
8341
  item: {},
@@ -8346,12 +8355,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8346
8355
  key: 0,
8347
8356
  class: "lupa-search-box-product-description",
8348
8357
  innerHTML: description.value
8349
- }, null, 8, _hoisted_1$13)) : (openBlock(), createElementBlock("div", _hoisted_2$K, toDisplayString(description.value), 1));
8358
+ }, null, 8, _hoisted_1$14)) : (openBlock(), createElementBlock("div", _hoisted_2$L, toDisplayString(description.value), 1));
8350
8359
  };
8351
8360
  }
8352
8361
  });
8353
- const _hoisted_1$12 = { class: "lupa-search-box-product-price" };
8354
- const _sfc_main$17 = /* @__PURE__ */ defineComponent({
8362
+ const _hoisted_1$13 = { class: "lupa-search-box-product-price" };
8363
+ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
8355
8364
  __name: "SearchBoxProductPrice",
8356
8365
  props: {
8357
8366
  item: {},
@@ -8369,14 +8378,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8369
8378
  );
8370
8379
  });
8371
8380
  return (_ctx, _cache) => {
8372
- return openBlock(), createElementBlock("div", _hoisted_1$12, [
8381
+ return openBlock(), createElementBlock("div", _hoisted_1$13, [
8373
8382
  createBaseVNode("strong", null, toDisplayString(price.value), 1)
8374
8383
  ]);
8375
8384
  };
8376
8385
  }
8377
8386
  });
8378
- const _hoisted_1$11 = { class: "lupa-search-box-product-regular-price" };
8379
- const _sfc_main$16 = /* @__PURE__ */ defineComponent({
8387
+ const _hoisted_1$12 = { class: "lupa-search-box-product-regular-price" };
8388
+ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
8380
8389
  __name: "SearchBoxProductRegularPrice",
8381
8390
  props: {
8382
8391
  item: {},
@@ -8394,16 +8403,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8394
8403
  );
8395
8404
  });
8396
8405
  return (_ctx, _cache) => {
8397
- return openBlock(), createElementBlock("div", _hoisted_1$11, toDisplayString(price.value), 1);
8406
+ return openBlock(), createElementBlock("div", _hoisted_1$12, toDisplayString(price.value), 1);
8398
8407
  };
8399
8408
  }
8400
8409
  });
8401
- const _hoisted_1$10 = ["innerHTML"];
8402
- const _hoisted_2$J = { key: 0 };
8403
- const _hoisted_3$y = { key: 1 };
8410
+ const _hoisted_1$11 = ["innerHTML"];
8411
+ const _hoisted_2$K = { key: 0 };
8412
+ const _hoisted_3$z = { key: 1 };
8404
8413
  const _hoisted_4$o = { class: "lupa-search-box-custom-label" };
8405
8414
  const _hoisted_5$d = { class: "lupa-search-box-custom-text" };
8406
- const _sfc_main$15 = /* @__PURE__ */ defineComponent({
8415
+ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
8407
8416
  __name: "SearchBoxProductCustom",
8408
8417
  props: {
8409
8418
  item: {},
@@ -8429,11 +8438,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8429
8438
  key: 0,
8430
8439
  class: [className.value, "lupa-search-box-product-custom"],
8431
8440
  innerHTML: text.value
8432
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$10)) : (openBlock(), createElementBlock("div", mergeProps({
8441
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$11)) : (openBlock(), createElementBlock("div", mergeProps({
8433
8442
  key: 1,
8434
8443
  class: [className.value, "lupa-search-box-product-custom"]
8435
8444
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
8436
- !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$J, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$y, [
8445
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$K, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$z, [
8437
8446
  createBaseVNode("div", _hoisted_4$o, toDisplayString(label.value), 1),
8438
8447
  createBaseVNode("div", _hoisted_5$d, toDisplayString(text.value), 1)
8439
8448
  ]))
@@ -8441,8 +8450,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8441
8450
  };
8442
8451
  }
8443
8452
  });
8444
- const _hoisted_1$$ = ["innerHTML"];
8445
- const _sfc_main$14 = /* @__PURE__ */ defineComponent({
8453
+ const _hoisted_1$10 = ["innerHTML"];
8454
+ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
8446
8455
  __name: "SearchBoxProductCustomHtml",
8447
8456
  props: {
8448
8457
  item: {},
@@ -8462,7 +8471,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8462
8471
  return openBlock(), createElementBlock("div", mergeProps({
8463
8472
  class: className.value,
8464
8473
  innerHTML: text.value
8465
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$$);
8474
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$10);
8466
8475
  };
8467
8476
  }
8468
8477
  });
@@ -8657,10 +8666,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8657
8666
  setLoading
8658
8667
  };
8659
8668
  });
8660
- const _hoisted_1$_ = { class: "lupa-search-box-add-to-cart-wrapper" };
8661
- const _hoisted_2$I = { class: "lupa-search-box-product-addtocart" };
8662
- const _hoisted_3$x = ["onClick", "disabled"];
8663
- const _sfc_main$13 = /* @__PURE__ */ defineComponent({
8669
+ const _hoisted_1$$ = { class: "lupa-search-box-add-to-cart-wrapper" };
8670
+ const _hoisted_2$J = { class: "lupa-search-box-product-addtocart" };
8671
+ const _hoisted_3$y = ["onClick", "disabled"];
8672
+ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
8664
8673
  __name: "SearchBoxProductAddToCart",
8665
8674
  props: {
8666
8675
  item: {},
@@ -8687,15 +8696,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8687
8696
  loading.value = false;
8688
8697
  });
8689
8698
  return (_ctx, _cache) => {
8690
- return openBlock(), createElementBlock("div", _hoisted_1$_, [
8691
- createBaseVNode("div", _hoisted_2$I, [
8699
+ return openBlock(), createElementBlock("div", _hoisted_1$$, [
8700
+ createBaseVNode("div", _hoisted_2$J, [
8692
8701
  createBaseVNode("button", {
8693
8702
  onClick: withModifiers(handleClick, ["stop", "prevent"]),
8694
8703
  class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
8695
8704
  "data-cy": "lupa-add-to-cart",
8696
8705
  type: "button",
8697
8706
  disabled: !inStockValue.value || loading.value
8698
- }, toDisplayString(label.value), 11, _hoisted_3$x)
8707
+ }, toDisplayString(label.value), 11, _hoisted_3$y)
8699
8708
  ])
8700
8709
  ]);
8701
8710
  };
@@ -8703,17 +8712,17 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8703
8712
  });
8704
8713
  const __default__$4 = {
8705
8714
  components: {
8706
- SearchBoxProductImage: _sfc_main$1a,
8707
- SearchBoxProductTitle: _sfc_main$19,
8708
- SearchBoxProductDescription: _sfc_main$18,
8709
- SearchBoxProductPrice: _sfc_main$17,
8710
- SearchBoxProductRegularPrice: _sfc_main$16,
8711
- SearchBoxProductCustom: _sfc_main$15,
8712
- SearchBoxProductCustomHtml: _sfc_main$14,
8713
- SearchBoxProductAddToCart: _sfc_main$13
8715
+ SearchBoxProductImage: _sfc_main$1b,
8716
+ SearchBoxProductTitle: _sfc_main$1a,
8717
+ SearchBoxProductDescription: _sfc_main$19,
8718
+ SearchBoxProductPrice: _sfc_main$18,
8719
+ SearchBoxProductRegularPrice: _sfc_main$17,
8720
+ SearchBoxProductCustom: _sfc_main$16,
8721
+ SearchBoxProductCustomHtml: _sfc_main$15,
8722
+ SearchBoxProductAddToCart: _sfc_main$14
8714
8723
  }
8715
8724
  };
8716
- const _sfc_main$12 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
8725
+ const _sfc_main$13 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
8717
8726
  __name: "SearchBoxProductElement",
8718
8727
  props: {
8719
8728
  item: {},
@@ -8827,14 +8836,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8827
8836
  };
8828
8837
  return { trackSearch, trackResults, trackEvent };
8829
8838
  });
8830
- const _hoisted_1$Z = ["href"];
8831
- const _hoisted_2$H = { class: "lupa-search-box-product-image-section" };
8832
- const _hoisted_3$w = { class: "lupa-search-box-product-details-section" };
8839
+ const _hoisted_1$_ = ["href"];
8840
+ const _hoisted_2$I = { class: "lupa-search-box-product-image-section" };
8841
+ const _hoisted_3$x = { class: "lupa-search-box-product-details-section" };
8833
8842
  const _hoisted_4$n = {
8834
8843
  key: 0,
8835
8844
  class: "lupa-search-box-product-add-to-cart-section"
8836
8845
  };
8837
- const _sfc_main$11 = /* @__PURE__ */ defineComponent({
8846
+ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
8838
8847
  __name: "SearchBoxProduct",
8839
8848
  props: {
8840
8849
  item: {},
@@ -8927,9 +8936,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8927
8936
  href: link.value,
8928
8937
  onClick: handleClick
8929
8938
  }, [
8930
- createBaseVNode("div", _hoisted_2$H, [
8939
+ createBaseVNode("div", _hoisted_2$I, [
8931
8940
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
8932
- return openBlock(), createBlock(_sfc_main$12, {
8941
+ return openBlock(), createBlock(_sfc_main$13, {
8933
8942
  class: "lupa-search-box-product-element",
8934
8943
  item: _ctx.item,
8935
8944
  element,
@@ -8939,9 +8948,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8939
8948
  }, null, 8, ["item", "element", "labels", "link"]);
8940
8949
  }), 128))
8941
8950
  ]),
8942
- createBaseVNode("div", _hoisted_3$w, [
8951
+ createBaseVNode("div", _hoisted_3$x, [
8943
8952
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
8944
- return openBlock(), createBlock(_sfc_main$12, {
8953
+ return openBlock(), createBlock(_sfc_main$13, {
8945
8954
  class: "lupa-search-box-product-element",
8946
8955
  item: _ctx.item,
8947
8956
  element,
@@ -8952,7 +8961,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8952
8961
  }), 128))
8953
8962
  ]),
8954
8963
  addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$n, [
8955
- createVNode(_sfc_main$12, {
8964
+ createVNode(_sfc_main$13, {
8956
8965
  class: "lupa-search-box-product-element",
8957
8966
  item: _ctx.item,
8958
8967
  element: addToCartElement.value,
@@ -8961,12 +8970,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8961
8970
  isInStock: isInStock.value
8962
8971
  }, null, 8, ["item", "element", "labels", "link", "isInStock"])
8963
8972
  ])) : createCommentVNode("", true)
8964
- ], 10, _hoisted_1$Z);
8973
+ ], 10, _hoisted_1$_);
8965
8974
  };
8966
8975
  }
8967
8976
  });
8968
- const _hoisted_1$Y = { id: "lupa-search-box-products" };
8969
- const _sfc_main$10 = /* @__PURE__ */ defineComponent({
8977
+ const _hoisted_1$Z = { id: "lupa-search-box-products" };
8978
+ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
8970
8979
  __name: "SearchBoxProducts",
8971
8980
  props: {
8972
8981
  items: {},
@@ -8986,7 +8995,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8986
8995
  return (_c = (_b = highlightedItem.value) == null ? void 0 : _b.index) != null ? _c : -1;
8987
8996
  });
8988
8997
  return (_ctx, _cache) => {
8989
- return openBlock(), createElementBlock("div", _hoisted_1$Y, [
8998
+ return openBlock(), createElementBlock("div", _hoisted_1$Z, [
8990
8999
  _ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
8991
9000
  return renderSlot(_ctx.$slots, "productCard", {
8992
9001
  key: index,
@@ -8998,7 +9007,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8998
9007
  onProductClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("product-click"))
8999
9008
  });
9000
9009
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
9001
- return openBlock(), createBlock(_sfc_main$11, {
9010
+ return openBlock(), createBlock(_sfc_main$12, {
9002
9011
  key: index,
9003
9012
  item,
9004
9013
  panelOptions: _ctx.panelOptions,
@@ -9012,7 +9021,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9012
9021
  };
9013
9022
  }
9014
9023
  });
9015
- const _sfc_main$$ = /* @__PURE__ */ defineComponent({
9024
+ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
9016
9025
  __name: "SearchBoxProductsWrapper",
9017
9026
  props: {
9018
9027
  panel: {},
@@ -9064,7 +9073,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9064
9073
  const getItemsDebounced = debounce$1(getItems, props.debounce);
9065
9074
  return (_ctx, _cache) => {
9066
9075
  var _a, _b;
9067
- return openBlock(), createBlock(_sfc_main$10, {
9076
+ return openBlock(), createBlock(_sfc_main$11, {
9068
9077
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
9069
9078
  panelOptions: _ctx.panel,
9070
9079
  labels: _ctx.labels,
@@ -9082,22 +9091,22 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9082
9091
  };
9083
9092
  }
9084
9093
  });
9085
- const _hoisted_1$X = {
9094
+ const _hoisted_1$Y = {
9086
9095
  key: 0,
9087
9096
  id: "lupa-search-box-panel"
9088
9097
  };
9089
- const _hoisted_2$G = ["data-cy"];
9090
- const _hoisted_3$v = {
9098
+ const _hoisted_2$H = ["data-cy"];
9099
+ const _hoisted_3$w = {
9091
9100
  key: 1,
9092
9101
  id: "lupa-search-box-panel"
9093
9102
  };
9094
9103
  const __default__$3 = {
9095
9104
  components: {
9096
- SearchBoxSuggestionsWrapper: _sfc_main$1c,
9097
- SearchBoxProductsWrapper: _sfc_main$$
9105
+ SearchBoxSuggestionsWrapper: _sfc_main$1d,
9106
+ SearchBoxProductsWrapper: _sfc_main$10
9098
9107
  }
9099
9108
  };
9100
- const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
9109
+ const _sfc_main$$ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
9101
9110
  __name: "SearchBoxMainPanel",
9102
9111
  props: {
9103
9112
  options: {},
@@ -9217,7 +9226,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9217
9226
  ref_key: "panelContainer",
9218
9227
  ref: panelContainer
9219
9228
  }, [
9220
- displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$X, [
9229
+ displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$Y, [
9221
9230
  createBaseVNode("div", {
9222
9231
  class: "lupa-main-panel",
9223
9232
  style: normalizeStyle(expandOnSinglePanel.value ? { display: "block" } : {}),
@@ -9251,21 +9260,21 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9251
9260
  key: "0"
9252
9261
  } : void 0
9253
9262
  ]), 1064, ["panel", "options", "debounce", "inputValue", "labels"])) : createCommentVNode("", true)
9254
- ], 10, _hoisted_2$G);
9263
+ ], 10, _hoisted_2$H);
9255
9264
  }), 128))
9256
9265
  ], 4),
9257
- !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1f, {
9266
+ !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1g, {
9258
9267
  key: 0,
9259
9268
  labels: labels.value
9260
9269
  }, null, 8, ["labels"])) : createCommentVNode("", true),
9261
- unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1i, {
9270
+ unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1j, {
9262
9271
  key: 1,
9263
9272
  labels: labels.value,
9264
9273
  showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
9265
9274
  onGoToResults: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("go-to-results"))
9266
9275
  }, null, 8, ["labels", "showTotalCount"])) : createCommentVNode("", true)
9267
- ])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_3$v, [
9268
- createVNode(_sfc_main$1g, {
9276
+ ])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_3$w, [
9277
+ createVNode(_sfc_main$1h, {
9269
9278
  options: _ctx.options.history,
9270
9279
  history: history.value,
9271
9280
  onGoToResults: handleGoToResults,
@@ -9290,9 +9299,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9290
9299
  const elements = getElements(triggers);
9291
9300
  elements.forEach((e) => e == null ? void 0 : e.removeEventListener(BIND_EVENT, event));
9292
9301
  };
9293
- const _hoisted_1$W = { id: "lupa-search-box" };
9294
- const _hoisted_2$F = { class: "lupa-search-box-wrapper" };
9295
- const _sfc_main$Z = /* @__PURE__ */ defineComponent({
9302
+ const _hoisted_1$X = { id: "lupa-search-box" };
9303
+ const _hoisted_2$G = { class: "lupa-search-box-wrapper" };
9304
+ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
9296
9305
  __name: "SearchBox",
9297
9306
  props: {
9298
9307
  options: {},
@@ -9528,9 +9537,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9528
9537
  };
9529
9538
  return (_ctx, _cache) => {
9530
9539
  var _a2;
9531
- return openBlock(), createElementBlock("div", _hoisted_1$W, [
9532
- createBaseVNode("div", _hoisted_2$F, [
9533
- createVNode(_sfc_main$1j, {
9540
+ return openBlock(), createElementBlock("div", _hoisted_1$X, [
9541
+ createBaseVNode("div", _hoisted_2$G, [
9542
+ createVNode(_sfc_main$1k, {
9534
9543
  options: inputOptions.value,
9535
9544
  suggestedValue: suggestedValue.value,
9536
9545
  "can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
@@ -9541,7 +9550,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9541
9550
  onFocus: _cache[0] || (_cache[0] = ($event) => opened.value = true),
9542
9551
  onClose: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
9543
9552
  }, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
9544
- opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$_, {
9553
+ opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$$, {
9545
9554
  key: 0,
9546
9555
  options: panelOptions.value,
9547
9556
  inputValue: inputValue.value,
@@ -9628,20 +9637,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9628
9637
  }
9629
9638
  return searchParams;
9630
9639
  };
9631
- const _hoisted_1$V = {
9640
+ const _hoisted_1$W = {
9632
9641
  key: 0,
9633
9642
  id: "lupa-search-results-did-you-mean"
9634
9643
  };
9635
- const _hoisted_2$E = {
9644
+ const _hoisted_2$F = {
9636
9645
  key: 0,
9637
9646
  "data-cy": "suggested-search-text-label"
9638
9647
  };
9639
- const _hoisted_3$u = {
9648
+ const _hoisted_3$v = {
9640
9649
  key: 1,
9641
9650
  "data-cy": "did-you-mean-label"
9642
9651
  };
9643
9652
  const _hoisted_4$m = { key: 1 };
9644
- const _sfc_main$Y = /* @__PURE__ */ defineComponent({
9653
+ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
9645
9654
  __name: "SearchResultsDidYouMean",
9646
9655
  props: {
9647
9656
  labels: {}
@@ -9673,8 +9682,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9673
9682
  paramStore.goToResults({ searchText, facet });
9674
9683
  };
9675
9684
  return (_ctx, _cache) => {
9676
- return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$V, [
9677
- unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$E, [
9685
+ return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$W, [
9686
+ unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$F, [
9678
9687
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
9679
9688
  return openBlock(), createElementBlock("span", { key: index }, [
9680
9689
  createBaseVNode("span", {
@@ -9683,7 +9692,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9683
9692
  ]);
9684
9693
  }), 128))
9685
9694
  ])) : createCommentVNode("", true),
9686
- didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$u, [
9695
+ didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$v, [
9687
9696
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.didYouMean.split(" "), (label, index) => {
9688
9697
  return openBlock(), createElementBlock("span", { key: index }, [
9689
9698
  label.includes("{1}") ? (openBlock(), createElementBlock("span", {
@@ -9699,12 +9708,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9699
9708
  };
9700
9709
  }
9701
9710
  });
9702
- const _hoisted_1$U = {
9711
+ const _hoisted_1$V = {
9703
9712
  key: 0,
9704
9713
  class: "lupa-search-results-summary"
9705
9714
  };
9706
- const _hoisted_2$D = ["innerHTML"];
9707
- const _sfc_main$X = /* @__PURE__ */ defineComponent({
9715
+ const _hoisted_2$E = ["innerHTML"];
9716
+ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
9708
9717
  __name: "SearchResultsSummary",
9709
9718
  props: {
9710
9719
  label: {},
@@ -9719,8 +9728,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9719
9728
  return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
9720
9729
  });
9721
9730
  return (_ctx, _cache) => {
9722
- return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$U, [
9723
- createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$D),
9731
+ return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$V, [
9732
+ createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$E),
9724
9733
  _ctx.clearable ? (openBlock(), createElementBlock("span", {
9725
9734
  key: 0,
9726
9735
  class: "lupa-filter-clear",
@@ -9731,18 +9740,18 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9731
9740
  };
9732
9741
  }
9733
9742
  });
9734
- const _hoisted_1$T = {
9743
+ const _hoisted_1$U = {
9735
9744
  key: 0,
9736
9745
  class: "lupa-result-page-title",
9737
9746
  "data-cy": "lupa-result-page-title"
9738
9747
  };
9739
- const _hoisted_2$C = { key: 0 };
9740
- const _hoisted_3$t = {
9748
+ const _hoisted_2$D = { key: 0 };
9749
+ const _hoisted_3$u = {
9741
9750
  key: 1,
9742
9751
  class: "lupa-results-total-count"
9743
9752
  };
9744
9753
  const _hoisted_4$l = ["innerHTML"];
9745
- const _sfc_main$W = /* @__PURE__ */ defineComponent({
9754
+ const _sfc_main$X = /* @__PURE__ */ defineComponent({
9746
9755
  __name: "SearchResultsTitle",
9747
9756
  props: {
9748
9757
  options: {},
@@ -9777,12 +9786,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9777
9786
  });
9778
9787
  return (_ctx, _cache) => {
9779
9788
  return openBlock(), createElementBlock("div", null, [
9780
- showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$T, [
9789
+ showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$U, [
9781
9790
  createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
9782
- queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$C, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
9783
- showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$t, "(" + toDisplayString(unref(totalItems)) + ")", 1)) : createCommentVNode("", true)
9791
+ queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$D, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
9792
+ showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$u, "(" + toDisplayString(unref(totalItems)) + ")", 1)) : createCommentVNode("", true)
9784
9793
  ])) : createCommentVNode("", true),
9785
- _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$X, {
9794
+ _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$Y, {
9786
9795
  key: 1,
9787
9796
  label: summaryLabel.value
9788
9797
  }, null, 8, ["label"])) : createCommentVNode("", true),
@@ -9795,16 +9804,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9795
9804
  };
9796
9805
  }
9797
9806
  });
9798
- const _hoisted_1$S = { class: "lupa-search-result-filter-value" };
9799
- const _hoisted_2$B = {
9807
+ const _hoisted_1$T = { class: "lupa-search-result-filter-value" };
9808
+ const _hoisted_2$C = {
9800
9809
  class: "lupa-current-filter-label",
9801
9810
  "data-cy": "lupa-current-filter-label"
9802
9811
  };
9803
- const _hoisted_3$s = {
9812
+ const _hoisted_3$t = {
9804
9813
  class: "lupa-current-filter-value",
9805
9814
  "data-cy": "lupa-current-filter-value"
9806
9815
  };
9807
- const _sfc_main$V = /* @__PURE__ */ defineComponent({
9816
+ const _sfc_main$W = /* @__PURE__ */ defineComponent({
9808
9817
  __name: "CurrentFilterDisplay",
9809
9818
  props: {
9810
9819
  filter: {}
@@ -9816,28 +9825,28 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9816
9825
  emit2("remove", { filter: props.filter });
9817
9826
  };
9818
9827
  return (_ctx, _cache) => {
9819
- return openBlock(), createElementBlock("div", _hoisted_1$S, [
9828
+ return openBlock(), createElementBlock("div", _hoisted_1$T, [
9820
9829
  createBaseVNode("div", {
9821
9830
  class: "lupa-current-filter-action",
9822
9831
  onClick: handleClick
9823
9832
  }, "⨉"),
9824
- createBaseVNode("div", _hoisted_2$B, toDisplayString(_ctx.filter.label) + ": ", 1),
9825
- createBaseVNode("div", _hoisted_3$s, toDisplayString(_ctx.filter.value), 1)
9833
+ createBaseVNode("div", _hoisted_2$C, toDisplayString(_ctx.filter.label) + ": ", 1),
9834
+ createBaseVNode("div", _hoisted_3$t, toDisplayString(_ctx.filter.value), 1)
9826
9835
  ]);
9827
9836
  };
9828
9837
  }
9829
9838
  });
9830
- const _hoisted_1$R = { class: "lupa-filter-title-text" };
9831
- const _hoisted_2$A = {
9839
+ const _hoisted_1$S = { class: "lupa-filter-title-text" };
9840
+ const _hoisted_2$B = {
9832
9841
  key: 0,
9833
9842
  class: "lupa-filter-count"
9834
9843
  };
9835
- const _hoisted_3$r = {
9844
+ const _hoisted_3$s = {
9836
9845
  key: 0,
9837
9846
  class: "filter-values"
9838
9847
  };
9839
9848
  const _hoisted_4$k = { class: "lupa-current-filter-list" };
9840
- const _sfc_main$U = /* @__PURE__ */ defineComponent({
9849
+ const _sfc_main$V = /* @__PURE__ */ defineComponent({
9841
9850
  __name: "CurrentFilters",
9842
9851
  props: {
9843
9852
  options: {},
@@ -9892,19 +9901,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9892
9901
  class: "lupa-current-filter-title",
9893
9902
  onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
9894
9903
  }, [
9895
- createBaseVNode("div", _hoisted_1$R, [
9904
+ createBaseVNode("div", _hoisted_1$S, [
9896
9905
  createTextVNode(toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
9897
- _ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$A, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
9906
+ _ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$B, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
9898
9907
  ]),
9899
9908
  _ctx.expandable ? (openBlock(), createElementBlock("div", {
9900
9909
  key: 0,
9901
9910
  class: normalizeClass(["lupa-filter-title-caret", isOpen.value && "open"])
9902
9911
  }, null, 2)) : createCommentVNode("", true)
9903
9912
  ]),
9904
- !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$r, [
9913
+ !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$s, [
9905
9914
  createBaseVNode("div", _hoisted_4$k, [
9906
9915
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(displayFilters), (filter) => {
9907
- return openBlock(), createBlock(_sfc_main$V, {
9916
+ return openBlock(), createBlock(_sfc_main$W, {
9908
9917
  key: filter.key + "_" + filter.value,
9909
9918
  filter,
9910
9919
  onRemove: handleRemove
@@ -9921,8 +9930,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9921
9930
  };
9922
9931
  }
9923
9932
  });
9924
- const _hoisted_1$Q = ["href"];
9925
- const _sfc_main$T = /* @__PURE__ */ defineComponent({
9933
+ const _hoisted_1$R = ["href"];
9934
+ const _sfc_main$U = /* @__PURE__ */ defineComponent({
9926
9935
  __name: "CategoryFilterItem",
9927
9936
  props: {
9928
9937
  options: {},
@@ -9959,20 +9968,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9959
9968
  "data-cy": "lupa-child-category-item",
9960
9969
  href: urlLink.value,
9961
9970
  onClick: handleNavigation
9962
- }, toDisplayString(title.value), 9, _hoisted_1$Q)
9971
+ }, toDisplayString(title.value), 9, _hoisted_1$R)
9963
9972
  ], 2);
9964
9973
  };
9965
9974
  }
9966
9975
  });
9967
- const _hoisted_1$P = {
9976
+ const _hoisted_1$Q = {
9968
9977
  class: "lupa-category-filter",
9969
9978
  "data-cy": "lupa-category-filter"
9970
9979
  };
9971
- const _hoisted_2$z = { class: "lupa-category-back" };
9972
- const _hoisted_3$q = ["href"];
9980
+ const _hoisted_2$A = { class: "lupa-category-back" };
9981
+ const _hoisted_3$r = ["href"];
9973
9982
  const _hoisted_4$j = ["href"];
9974
9983
  const _hoisted_5$c = { class: "lupa-child-category-list" };
9975
- const _sfc_main$S = /* @__PURE__ */ defineComponent({
9984
+ const _sfc_main$T = /* @__PURE__ */ defineComponent({
9976
9985
  __name: "CategoryFilter",
9977
9986
  props: {
9978
9987
  options: {}
@@ -10058,14 +10067,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10058
10067
  };
10059
10068
  __expose({ fetch: fetch2 });
10060
10069
  return (_ctx, _cache) => {
10061
- return openBlock(), createElementBlock("div", _hoisted_1$P, [
10062
- createBaseVNode("div", _hoisted_2$z, [
10070
+ return openBlock(), createElementBlock("div", _hoisted_1$Q, [
10071
+ createBaseVNode("div", _hoisted_2$A, [
10063
10072
  hasBackButton.value ? (openBlock(), createElementBlock("a", {
10064
10073
  key: 0,
10065
10074
  "data-cy": "lupa-category-back",
10066
10075
  href: backUrlLink.value,
10067
10076
  onClick: handleNavigationBack
10068
- }, toDisplayString(backTitle.value), 9, _hoisted_3$q)) : createCommentVNode("", true)
10077
+ }, toDisplayString(backTitle.value), 9, _hoisted_3$r)) : createCommentVNode("", true)
10069
10078
  ]),
10070
10079
  createBaseVNode("div", {
10071
10080
  class: normalizeClass(["lupa-current-category", { "lupa-current-category-active": isActive }])
@@ -10079,7 +10088,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10079
10088
  ], 2),
10080
10089
  createBaseVNode("div", _hoisted_5$c, [
10081
10090
  (openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
10082
- return openBlock(), createBlock(_sfc_main$T, {
10091
+ return openBlock(), createBlock(_sfc_main$U, {
10083
10092
  key: getCategoryKey(child),
10084
10093
  item: child,
10085
10094
  options: _ctx.options
@@ -10090,15 +10099,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10090
10099
  };
10091
10100
  }
10092
10101
  });
10093
- const _hoisted_1$O = {
10102
+ const _hoisted_1$P = {
10094
10103
  class: "lupa-search-result-facet-term-values",
10095
10104
  "data-cy": "lupa-search-result-facet-term-values"
10096
10105
  };
10097
- const _hoisted_2$y = ["placeholder"];
10098
- const _hoisted_3$p = { class: "lupa-terms-list" };
10106
+ const _hoisted_2$z = ["placeholder"];
10107
+ const _hoisted_3$q = { class: "lupa-terms-list" };
10099
10108
  const _hoisted_4$i = ["onClick"];
10100
10109
  const _hoisted_5$b = { class: "lupa-term-checkbox-wrapper" };
10101
- const _hoisted_6$7 = { class: "lupa-term-checkbox-label" };
10110
+ const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
10102
10111
  const _hoisted_7$6 = { class: "lupa-term-label" };
10103
10112
  const _hoisted_8$1 = {
10104
10113
  key: 0,
@@ -10106,7 +10115,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10106
10115
  };
10107
10116
  const _hoisted_9$1 = { key: 0 };
10108
10117
  const _hoisted_10$1 = { key: 1 };
10109
- const _sfc_main$R = /* @__PURE__ */ defineComponent({
10118
+ const _sfc_main$S = /* @__PURE__ */ defineComponent({
10110
10119
  __name: "TermFacet",
10111
10120
  props: {
10112
10121
  options: {},
@@ -10175,17 +10184,17 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10175
10184
  return selectedItems == null ? void 0 : selectedItems.includes((_b = item.title) == null ? void 0 : _b.toString());
10176
10185
  };
10177
10186
  return (_ctx, _cache) => {
10178
- return openBlock(), createElementBlock("div", _hoisted_1$O, [
10187
+ return openBlock(), createElementBlock("div", _hoisted_1$P, [
10179
10188
  isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
10180
10189
  key: 0,
10181
10190
  class: "lupa-term-filter",
10182
10191
  "data-cy": "lupa-term-filter",
10183
10192
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
10184
10193
  placeholder: _ctx.options.labels.facetFilter
10185
- }, null, 8, _hoisted_2$y)), [
10194
+ }, null, 8, _hoisted_2$z)), [
10186
10195
  [vModelText, termFilter.value]
10187
10196
  ]) : createCommentVNode("", true),
10188
- createBaseVNode("div", _hoisted_3$p, [
10197
+ createBaseVNode("div", _hoisted_3$q, [
10189
10198
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
10190
10199
  return openBlock(), createElementBlock("div", {
10191
10200
  class: normalizeClass(["lupa-facet-term", { checked: isChecked(item) }]),
@@ -10198,7 +10207,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10198
10207
  class: normalizeClass(["lupa-term-checkbox", { checked: isChecked(item) }])
10199
10208
  }, null, 2)
10200
10209
  ]),
10201
- createBaseVNode("div", _hoisted_6$7, [
10210
+ createBaseVNode("div", _hoisted_6$8, [
10202
10211
  createBaseVNode("span", _hoisted_7$6, toDisplayString(item.title), 1),
10203
10212
  _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$1, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
10204
10213
  ])
@@ -11193,12 +11202,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11193
11202
  m.render = function(e, t, r, i, n, o) {
11194
11203
  return openBlock(), createElementBlock("div", mergeProps(e.sliderProps, { ref: "slider" }), null, 16);
11195
11204
  }, m.__file = "src/Slider.vue";
11196
- const _hoisted_1$N = { class: "lupa-search-result-facet-stats-values" };
11197
- const _hoisted_2$x = {
11205
+ const _hoisted_1$O = { class: "lupa-search-result-facet-stats-values" };
11206
+ const _hoisted_2$y = {
11198
11207
  key: 0,
11199
11208
  class: "lupa-stats-facet-summary"
11200
11209
  };
11201
- const _hoisted_3$o = {
11210
+ const _hoisted_3$p = {
11202
11211
  key: 1,
11203
11212
  class: "lupa-stats-facet-summary-input"
11204
11213
  };
@@ -11207,7 +11216,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11207
11216
  class: "lupa-stats-range-label"
11208
11217
  };
11209
11218
  const _hoisted_5$a = { class: "lupa-stats-from" };
11210
- const _hoisted_6$6 = ["max", "min", "pattern"];
11219
+ const _hoisted_6$7 = ["max", "min", "pattern"];
11211
11220
  const _hoisted_7$5 = { key: 0 };
11212
11221
  const _hoisted_8 = /* @__PURE__ */ createBaseVNode("div", { class: "lupa-stats-separator" }, null, -1);
11213
11222
  const _hoisted_9 = {
@@ -11221,7 +11230,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11221
11230
  key: 2,
11222
11231
  class: "lupa-stats-slider-wrapper"
11223
11232
  };
11224
- const _sfc_main$Q = /* @__PURE__ */ defineComponent({
11233
+ const _sfc_main$R = /* @__PURE__ */ defineComponent({
11225
11234
  __name: "StatsFacet",
11226
11235
  props: {
11227
11236
  options: {},
@@ -11369,8 +11378,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11369
11378
  innerSliderRange.value = value;
11370
11379
  };
11371
11380
  return (_ctx, _cache) => {
11372
- return openBlock(), createElementBlock("div", _hoisted_1$N, [
11373
- !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$x, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$o, [
11381
+ return openBlock(), createElementBlock("div", _hoisted_1$O, [
11382
+ !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$y, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$p, [
11374
11383
  createBaseVNode("div", null, [
11375
11384
  rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$h, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
11376
11385
  createBaseVNode("div", _hoisted_5$a, [
@@ -11381,7 +11390,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11381
11390
  max: facetMax.value,
11382
11391
  min: facetMin.value,
11383
11392
  pattern: sliderInputFormat.value
11384
- }, null, 8, _hoisted_6$6), [
11393
+ }, null, 8, _hoisted_6$7), [
11385
11394
  [
11386
11395
  vModelText,
11387
11396
  fromValue.value,
@@ -11433,9 +11442,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11433
11442
  };
11434
11443
  }
11435
11444
  });
11436
- const _hoisted_1$M = { class: "lupa-term-checkbox-wrapper" };
11437
- const _hoisted_2$w = { class: "lupa-term-checkbox-label" };
11438
- const _hoisted_3$n = { class: "lupa-term-label" };
11445
+ const _hoisted_1$N = { class: "lupa-term-checkbox-wrapper" };
11446
+ const _hoisted_2$x = { class: "lupa-term-checkbox-label" };
11447
+ const _hoisted_3$o = { class: "lupa-term-label" };
11439
11448
  const _hoisted_4$g = {
11440
11449
  key: 0,
11441
11450
  class: "lupa-term-count"
@@ -11444,7 +11453,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11444
11453
  key: 0,
11445
11454
  class: "lupa-facet-level"
11446
11455
  };
11447
- const _sfc_main$P = /* @__PURE__ */ defineComponent({
11456
+ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
11448
11457
  __name: "HierarchyFacetLevel",
11449
11458
  props: {
11450
11459
  options: {},
@@ -11490,13 +11499,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11490
11499
  "data-cy": "lupa-facet-term",
11491
11500
  onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
11492
11501
  }, [
11493
- createBaseVNode("div", _hoisted_1$M, [
11502
+ createBaseVNode("div", _hoisted_1$N, [
11494
11503
  createBaseVNode("span", {
11495
11504
  class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
11496
11505
  }, null, 2)
11497
11506
  ]),
11498
- createBaseVNode("div", _hoisted_2$w, [
11499
- createBaseVNode("span", _hoisted_3$n, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
11507
+ createBaseVNode("div", _hoisted_2$x, [
11508
+ createBaseVNode("span", _hoisted_3$o, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
11500
11509
  _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$g, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
11501
11510
  ])
11502
11511
  ]),
@@ -11516,13 +11525,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11516
11525
  };
11517
11526
  }
11518
11527
  });
11519
- const _hoisted_1$L = {
11528
+ const _hoisted_1$M = {
11520
11529
  class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
11521
11530
  "data-cy": "lupa-search-result-facet-term-values"
11522
11531
  };
11523
- const _hoisted_2$v = { key: 0 };
11524
- const _hoisted_3$m = ["placeholder"];
11525
- const _sfc_main$O = /* @__PURE__ */ defineComponent({
11532
+ const _hoisted_2$w = { key: 0 };
11533
+ const _hoisted_3$n = ["placeholder"];
11534
+ const _sfc_main$P = /* @__PURE__ */ defineComponent({
11526
11535
  __name: "HierarchyFacet",
11527
11536
  props: {
11528
11537
  options: {},
@@ -11572,19 +11581,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11572
11581
  showAll.value = true;
11573
11582
  };
11574
11583
  return (_ctx, _cache) => {
11575
- return openBlock(), createElementBlock("div", _hoisted_1$L, [
11576
- isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$v, [
11584
+ return openBlock(), createElementBlock("div", _hoisted_1$M, [
11585
+ isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$w, [
11577
11586
  withDirectives(createBaseVNode("input", {
11578
11587
  class: "lupa-term-filter",
11579
11588
  "data-cy": "lupa-term-filter",
11580
11589
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
11581
11590
  placeholder: _ctx.options.labels.facetFilter
11582
- }, null, 8, _hoisted_3$m), [
11591
+ }, null, 8, _hoisted_3$n), [
11583
11592
  [vModelText, termFilter.value]
11584
11593
  ])
11585
11594
  ])) : createCommentVNode("", true),
11586
11595
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
11587
- return openBlock(), createBlock(_sfc_main$P, {
11596
+ return openBlock(), createBlock(_sfc_main$Q, {
11588
11597
  key: item.title,
11589
11598
  options: _ctx.options,
11590
11599
  item,
@@ -11604,20 +11613,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11604
11613
  };
11605
11614
  }
11606
11615
  });
11607
- const _hoisted_1$K = { class: "lupa-facet-label-text" };
11608
- const _hoisted_2$u = {
11616
+ const _hoisted_1$L = { class: "lupa-facet-label-text" };
11617
+ const _hoisted_2$v = {
11609
11618
  key: 0,
11610
11619
  class: "lupa-facet-content",
11611
11620
  "data-cy": "lupa-facet-content"
11612
11621
  };
11613
11622
  const __default__$2 = {
11614
11623
  components: {
11615
- TermFacet: _sfc_main$R,
11616
- StatsFacet: _sfc_main$Q,
11617
- HierarchyFacet: _sfc_main$O
11624
+ TermFacet: _sfc_main$S,
11625
+ StatsFacet: _sfc_main$R,
11626
+ HierarchyFacet: _sfc_main$P
11618
11627
  }
11619
11628
  };
11620
- const _sfc_main$N = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
11629
+ const _sfc_main$O = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
11621
11630
  __name: "FacetDisplay",
11622
11631
  props: {
11623
11632
  options: {},
@@ -11728,12 +11737,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11728
11737
  "data-cy": "lupa-search-result-facet-label",
11729
11738
  onClick: toggleFacet
11730
11739
  }, [
11731
- createBaseVNode("div", _hoisted_1$K, toDisplayString(facet.value.label), 1),
11740
+ createBaseVNode("div", _hoisted_1$L, toDisplayString(facet.value.label), 1),
11732
11741
  createBaseVNode("div", {
11733
11742
  class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
11734
11743
  }, null, 2)
11735
11744
  ], 2),
11736
- isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$u, [
11745
+ isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$v, [
11737
11746
  (openBlock(), createBlock(resolveDynamicComponent(facetType.value), {
11738
11747
  facet: facet.value,
11739
11748
  currentFilters: currentFilters.value[facet.value.key],
@@ -11751,12 +11760,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11751
11760
  };
11752
11761
  }
11753
11762
  }));
11754
- const _hoisted_1$J = { class: "lupa-search-result-facet-section" };
11755
- const _hoisted_2$t = {
11763
+ const _hoisted_1$K = { class: "lupa-search-result-facet-section" };
11764
+ const _hoisted_2$u = {
11756
11765
  key: 0,
11757
11766
  class: "lupa-facets-title"
11758
11767
  };
11759
- const _sfc_main$M = /* @__PURE__ */ defineComponent({
11768
+ const _sfc_main$N = /* @__PURE__ */ defineComponent({
11760
11769
  __name: "FacetList",
11761
11770
  props: {
11762
11771
  options: {},
@@ -11790,14 +11799,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11790
11799
  };
11791
11800
  return (_ctx, _cache) => {
11792
11801
  var _a;
11793
- return openBlock(), createElementBlock("div", _hoisted_1$J, [
11794
- _ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$t, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
11802
+ return openBlock(), createElementBlock("div", _hoisted_1$K, [
11803
+ _ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$u, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
11795
11804
  createBaseVNode("div", {
11796
11805
  class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
11797
11806
  }, [
11798
11807
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
11799
11808
  var _a2;
11800
- return openBlock(), createBlock(_sfc_main$N, {
11809
+ return openBlock(), createBlock(_sfc_main$O, {
11801
11810
  key: facet.key,
11802
11811
  facet,
11803
11812
  currentFilters: currentFiltersValue.value,
@@ -11812,8 +11821,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11812
11821
  };
11813
11822
  }
11814
11823
  });
11815
- const _hoisted_1$I = { class: "lupa-search-result-facets" };
11816
- const _sfc_main$L = /* @__PURE__ */ defineComponent({
11824
+ const _hoisted_1$J = { class: "lupa-search-result-facets" };
11825
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
11817
11826
  __name: "Facets",
11818
11827
  props: {
11819
11828
  options: {},
@@ -11859,8 +11868,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11859
11868
  paramStore.removeParameters({ paramsToRemove: [param] });
11860
11869
  };
11861
11870
  return (_ctx, _cache) => {
11862
- return openBlock(), createElementBlock("div", _hoisted_1$I, [
11863
- regularFacets.value ? (openBlock(), createBlock(_sfc_main$M, {
11871
+ return openBlock(), createElementBlock("div", _hoisted_1$J, [
11872
+ regularFacets.value ? (openBlock(), createBlock(_sfc_main$N, {
11864
11873
  key: 0,
11865
11874
  options: _ctx.options,
11866
11875
  facets: regularFacets.value,
@@ -11874,11 +11883,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11874
11883
  };
11875
11884
  }
11876
11885
  });
11877
- const _hoisted_1$H = {
11886
+ const _hoisted_1$I = {
11878
11887
  id: "lupa-search-result-filters",
11879
11888
  class: "lupa-search-result-filters"
11880
11889
  };
11881
- const _sfc_main$K = /* @__PURE__ */ defineComponent({
11890
+ const _sfc_main$L = /* @__PURE__ */ defineComponent({
11882
11891
  __name: "SearchResultsFilters",
11883
11892
  props: {
11884
11893
  options: {},
@@ -11907,19 +11916,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11907
11916
  __expose({ fetch: fetch2 });
11908
11917
  return (_ctx, _cache) => {
11909
11918
  var _a;
11910
- return openBlock(), createElementBlock("div", _hoisted_1$H, [
11911
- showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$U, {
11919
+ return openBlock(), createElementBlock("div", _hoisted_1$I, [
11920
+ showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$V, {
11912
11921
  key: 0,
11913
11922
  options: _ctx.options.currentFilters,
11914
11923
  expandable: (_a = _ctx.expandable) != null ? _a : false
11915
11924
  }, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
11916
- _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$S, {
11925
+ _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$T, {
11917
11926
  key: 1,
11918
11927
  options: _ctx.options.categories,
11919
11928
  ref_key: "categoryFilters",
11920
11929
  ref: categoryFilters
11921
11930
  }, null, 8, ["options"])) : createCommentVNode("", true),
11922
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$L, {
11931
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$M, {
11923
11932
  key: 2,
11924
11933
  options: _ctx.options.facets
11925
11934
  }, null, 8, ["options"])) : createCommentVNode("", true)
@@ -11927,20 +11936,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11927
11936
  };
11928
11937
  }
11929
11938
  });
11930
- const _hoisted_1$G = {
11939
+ const _hoisted_1$H = {
11931
11940
  key: 0,
11932
11941
  class: "lupa-mobile-filter-sidebar"
11933
11942
  };
11934
- const _hoisted_2$s = ["onClick"];
11935
- const _hoisted_3$l = { class: "lupa-mobile-sidebar-content" };
11943
+ const _hoisted_2$t = ["onClick"];
11944
+ const _hoisted_3$m = { class: "lupa-mobile-sidebar-content" };
11936
11945
  const _hoisted_4$f = { class: "lupa-sidebar-top" };
11937
11946
  const _hoisted_5$8 = { class: "lupa-sidebar-title" };
11938
- const _hoisted_6$5 = {
11947
+ const _hoisted_6$6 = {
11939
11948
  key: 0,
11940
11949
  class: "lupa-sidebar-filter-count"
11941
11950
  };
11942
11951
  const _hoisted_7$4 = { class: "lupa-sidebar-filter-options" };
11943
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
11952
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
11944
11953
  __name: "MobileFilterSidebar",
11945
11954
  props: {
11946
11955
  options: {}
@@ -11966,16 +11975,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11966
11975
  searchResultStore.setSidebarState({ visible: false });
11967
11976
  };
11968
11977
  return (_ctx, _cache) => {
11969
- return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$G, [
11978
+ return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$H, [
11970
11979
  createBaseVNode("div", {
11971
11980
  class: "lupa-sidebar-close",
11972
11981
  onClick: withModifiers(handleMobileToggle, ["stop"])
11973
- }, null, 8, _hoisted_2$s),
11974
- createBaseVNode("div", _hoisted_3$l, [
11982
+ }, null, 8, _hoisted_2$t),
11983
+ createBaseVNode("div", _hoisted_3$m, [
11975
11984
  createBaseVNode("div", _hoisted_4$f, [
11976
11985
  createBaseVNode("div", _hoisted_5$8, [
11977
11986
  createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
11978
- isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$5, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
11987
+ isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
11979
11988
  ]),
11980
11989
  createBaseVNode("div", {
11981
11990
  class: "lupa-filter-toggle-mobile",
@@ -11983,7 +11992,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11983
11992
  })
11984
11993
  ]),
11985
11994
  createBaseVNode("div", _hoisted_7$4, [
11986
- createVNode(_sfc_main$K, {
11995
+ createVNode(_sfc_main$L, {
11987
11996
  options: _ctx.options,
11988
11997
  expandable: isActiveFiltersExpanded.value
11989
11998
  }, null, 8, ["options", "expandable"])
@@ -11993,14 +12002,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11993
12002
  };
11994
12003
  }
11995
12004
  });
11996
- const _hoisted_1$F = { id: "lupa-search-results-breadcrumbs" };
11997
- const _hoisted_2$r = ["href", "onClick"];
11998
- const _hoisted_3$k = {
12005
+ const _hoisted_1$G = { id: "lupa-search-results-breadcrumbs" };
12006
+ const _hoisted_2$s = ["href", "onClick"];
12007
+ const _hoisted_3$l = {
11999
12008
  key: 1,
12000
12009
  class: "lupa-search-results-breadcrumb-text"
12001
12010
  };
12002
12011
  const _hoisted_4$e = { key: 2 };
12003
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
12012
+ const _sfc_main$J = /* @__PURE__ */ defineComponent({
12004
12013
  __name: "SearchResultsBreadcrumbs",
12005
12014
  props: {
12006
12015
  breadcrumbs: {}
@@ -12025,7 +12034,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12025
12034
  handleRoutingEvent(link, event, hasEventRouting.value);
12026
12035
  };
12027
12036
  return (_ctx, _cache) => {
12028
- return openBlock(), createElementBlock("div", _hoisted_1$F, [
12037
+ return openBlock(), createElementBlock("div", _hoisted_1$G, [
12029
12038
  (openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
12030
12039
  return openBlock(), createElementBlock("span", {
12031
12040
  class: "lupa-search-results-breadcrumb",
@@ -12039,7 +12048,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12039
12048
  var _a;
12040
12049
  return handleNavigation(e, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
12041
12050
  }
12042
- }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$r)) : (openBlock(), createElementBlock("span", _hoisted_3$k, toDisplayString(getLabel(breadcrumb.label)), 1)),
12051
+ }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$s)) : (openBlock(), createElementBlock("span", _hoisted_3$l, toDisplayString(getLabel(breadcrumb.label)), 1)),
12043
12052
  index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$e, " / ")) : createCommentVNode("", true)
12044
12053
  ]);
12045
12054
  }), 128))
@@ -12047,11 +12056,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12047
12056
  };
12048
12057
  }
12049
12058
  });
12050
- const _hoisted_1$E = {
12059
+ const _hoisted_1$F = {
12051
12060
  id: "lupa-search-result-filters",
12052
12061
  class: "lupa-search-result-filters"
12053
12062
  };
12054
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
12063
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
12055
12064
  __name: "FiltersTopDropdown",
12056
12065
  props: {
12057
12066
  options: {}
@@ -12059,8 +12068,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12059
12068
  setup(__props) {
12060
12069
  return (_ctx, _cache) => {
12061
12070
  var _a;
12062
- return openBlock(), createElementBlock("div", _hoisted_1$E, [
12063
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$L, {
12071
+ return openBlock(), createElementBlock("div", _hoisted_1$F, [
12072
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$M, {
12064
12073
  key: 0,
12065
12074
  options: _ctx.options.facets,
12066
12075
  "facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
@@ -12070,8 +12079,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12070
12079
  };
12071
12080
  }
12072
12081
  });
12073
- const _hoisted_1$D = { id: "lupa-search-results-layout-selection" };
12074
- const _sfc_main$G = /* @__PURE__ */ defineComponent({
12082
+ const _hoisted_1$E = { id: "lupa-search-results-layout-selection" };
12083
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
12075
12084
  __name: "SearchResultsLayoutSelection",
12076
12085
  setup(__props) {
12077
12086
  const searchResultStore = useSearchResultStore();
@@ -12082,7 +12091,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12082
12091
  searchResultStore.setLayout(layout2);
12083
12092
  };
12084
12093
  return (_ctx, _cache) => {
12085
- return openBlock(), createElementBlock("div", _hoisted_1$D, [
12094
+ return openBlock(), createElementBlock("div", _hoisted_1$E, [
12086
12095
  createBaseVNode("div", {
12087
12096
  class: normalizeClass([
12088
12097
  "lupa-layout-selection-grid",
@@ -12104,11 +12113,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12104
12113
  };
12105
12114
  }
12106
12115
  });
12107
- const _hoisted_1$C = {
12116
+ const _hoisted_1$D = {
12108
12117
  key: 0,
12109
12118
  class: "lupa-mobile-toggle-filter-count"
12110
12119
  };
12111
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
12120
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
12112
12121
  __name: "SearchResultsMobileToggle",
12113
12122
  props: {
12114
12123
  label: {},
@@ -12126,26 +12135,26 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12126
12135
  onClick: handleMobileToggle
12127
12136
  }, [
12128
12137
  createTextVNode(toDisplayString(_ctx.label) + " ", 1),
12129
- _ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$C, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
12138
+ _ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$D, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
12130
12139
  ], 2);
12131
12140
  };
12132
12141
  }
12133
12142
  });
12134
- const _hoisted_1$B = {
12143
+ const _hoisted_1$C = {
12135
12144
  key: 0,
12136
12145
  id: "lupa-search-results-page-select",
12137
12146
  "data-cy": "lupa-search-results-page-select"
12138
12147
  };
12139
- const _hoisted_2$q = {
12148
+ const _hoisted_2$r = {
12140
12149
  key: 0,
12141
12150
  class: "lupa-page-number-separator"
12142
12151
  };
12143
- const _hoisted_3$j = ["onClick"];
12152
+ const _hoisted_3$k = ["onClick"];
12144
12153
  const _hoisted_4$d = {
12145
12154
  key: 0,
12146
12155
  class: "lupa-page-number-separator"
12147
12156
  };
12148
- const _sfc_main$E = /* @__PURE__ */ defineComponent({
12157
+ const _sfc_main$F = /* @__PURE__ */ defineComponent({
12149
12158
  __name: "SearchResultsPageSelect",
12150
12159
  props: {
12151
12160
  lastPageLabel: {},
@@ -12207,7 +12216,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12207
12216
  }
12208
12217
  };
12209
12218
  return (_ctx, _cache) => {
12210
- return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$B, [
12219
+ return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$C, [
12211
12220
  showBack.value ? (openBlock(), createElementBlock("div", {
12212
12221
  key: 0,
12213
12222
  class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
@@ -12218,7 +12227,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12218
12227
  class: "lupa-page-number lupa-page-number-first",
12219
12228
  onClick: _cache[1] || (_cache[1] = () => handlePageChange(1))
12220
12229
  }, " 1 "),
12221
- showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$q, "...")) : createCommentVNode("", true)
12230
+ showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$r, "...")) : createCommentVNode("", true)
12222
12231
  ], 64)) : createCommentVNode("", true),
12223
12232
  (openBlock(true), createElementBlock(Fragment, null, renderList(pages.value, (page) => {
12224
12233
  return openBlock(), createElementBlock("div", {
@@ -12229,7 +12238,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12229
12238
  page === _ctx.options.selectedPage ? "lupa-page-number-selected" : ""
12230
12239
  ]),
12231
12240
  "data-cy": "lupa-page-number"
12232
- }, toDisplayString(page), 11, _hoisted_3$j);
12241
+ }, toDisplayString(page), 11, _hoisted_3$k);
12233
12242
  }), 128)),
12234
12243
  showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
12235
12244
  showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$d, "...")) : createCommentVNode("", true),
@@ -12251,13 +12260,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12251
12260
  };
12252
12261
  }
12253
12262
  });
12254
- const _hoisted_1$A = {
12263
+ const _hoisted_1$B = {
12255
12264
  id: "lupa-search-results-page-size",
12256
12265
  "data-cy": "lupa-search-results-page-size"
12257
12266
  };
12258
- const _hoisted_2$p = { id: "lupa-select" };
12259
- const _hoisted_3$i = { class: "lupa-select-label" };
12260
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
12267
+ const _hoisted_2$q = { id: "lupa-select" };
12268
+ const _hoisted_3$j = { class: "lupa-select-label" };
12269
+ const _sfc_main$E = /* @__PURE__ */ defineComponent({
12261
12270
  __name: "SearchResultsPageSize",
12262
12271
  props: {
12263
12272
  label: {},
@@ -12274,9 +12283,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12274
12283
  });
12275
12284
  };
12276
12285
  return (_ctx, _cache) => {
12277
- return openBlock(), createElementBlock("div", _hoisted_1$A, [
12278
- createBaseVNode("div", _hoisted_2$p, [
12279
- createBaseVNode("label", _hoisted_3$i, toDisplayString(_ctx.label), 1),
12286
+ return openBlock(), createElementBlock("div", _hoisted_1$B, [
12287
+ createBaseVNode("div", _hoisted_2$q, [
12288
+ createBaseVNode("label", _hoisted_3$j, toDisplayString(_ctx.label), 1),
12280
12289
  createBaseVNode("select", {
12281
12290
  class: "lupa-select-dropdown",
12282
12291
  "data-cy": "lupa-page-size-select-dropdown",
@@ -12293,14 +12302,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12293
12302
  };
12294
12303
  }
12295
12304
  });
12296
- const _hoisted_1$z = {
12305
+ const _hoisted_1$A = {
12297
12306
  id: "lupa-search-results-sort",
12298
12307
  class: "lupa-search-results-sort"
12299
12308
  };
12300
- const _hoisted_2$o = { id: "lupa-select" };
12301
- const _hoisted_3$h = { class: "lupa-select-label" };
12309
+ const _hoisted_2$p = { id: "lupa-select" };
12310
+ const _hoisted_3$i = { class: "lupa-select-label" };
12302
12311
  const _hoisted_4$c = ["value"];
12303
- const _sfc_main$C = /* @__PURE__ */ defineComponent({
12312
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
12304
12313
  __name: "SearchResultsSort",
12305
12314
  props: {
12306
12315
  options: {},
@@ -12347,9 +12356,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12347
12356
  previousKey.value = selectedKey.value;
12348
12357
  };
12349
12358
  return (_ctx, _cache) => {
12350
- return openBlock(), createElementBlock("div", _hoisted_1$z, [
12351
- createBaseVNode("div", _hoisted_2$o, [
12352
- createBaseVNode("label", _hoisted_3$h, toDisplayString(_ctx.options.label), 1),
12359
+ return openBlock(), createElementBlock("div", _hoisted_1$A, [
12360
+ createBaseVNode("div", _hoisted_2$p, [
12361
+ createBaseVNode("label", _hoisted_3$i, toDisplayString(_ctx.options.label), 1),
12353
12362
  withDirectives(createBaseVNode("select", {
12354
12363
  class: "lupa-select-dropdown",
12355
12364
  "data-cy": "lupa-sort-select-dropdown",
@@ -12371,14 +12380,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12371
12380
  };
12372
12381
  }
12373
12382
  });
12374
- const _hoisted_1$y = { class: "lupa-toolbar-left" };
12375
- const _hoisted_2$n = { key: 1 };
12376
- const _hoisted_3$g = { key: 3 };
12383
+ const _hoisted_1$z = { class: "lupa-toolbar-left" };
12384
+ const _hoisted_2$o = { key: 1 };
12385
+ const _hoisted_3$h = { key: 3 };
12377
12386
  const _hoisted_4$b = { key: 5 };
12378
12387
  const _hoisted_5$7 = { class: "lupa-toolbar-right" };
12379
- const _hoisted_6$4 = { key: 1 };
12388
+ const _hoisted_6$5 = { key: 1 };
12380
12389
  const _hoisted_7$3 = { key: 3 };
12381
- const _sfc_main$B = /* @__PURE__ */ defineComponent({
12390
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
12382
12391
  __name: "SearchResultsToolbar",
12383
12392
  props: {
12384
12393
  options: {},
@@ -12477,15 +12486,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12477
12486
  id: "lupa-search-results-toolbar",
12478
12487
  class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
12479
12488
  }, [
12480
- createBaseVNode("div", _hoisted_1$y, [
12481
- showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$G, { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_2$n)),
12482
- showItemSummary.value ? (openBlock(), createBlock(_sfc_main$X, {
12489
+ createBaseVNode("div", _hoisted_1$z, [
12490
+ showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$H, { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_2$o)),
12491
+ showItemSummary.value ? (openBlock(), createBlock(_sfc_main$Y, {
12483
12492
  key: 2,
12484
12493
  label: searchSummaryLabel.value,
12485
12494
  clearable: unref(hasAnyFilter) && showFilterClear.value,
12486
12495
  onClear: handleClearAll
12487
- }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_3$g)),
12488
- displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$E, {
12496
+ }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_3$h)),
12497
+ displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$F, {
12489
12498
  key: 4,
12490
12499
  options: paginationOptions.value.pageSelect,
12491
12500
  "last-page-label": paginationOptions.value.labels.showMore,
@@ -12493,16 +12502,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12493
12502
  }, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_4$b))
12494
12503
  ]),
12495
12504
  createBaseVNode("div", _hoisted_5$7, [
12496
- createVNode(_sfc_main$F, {
12505
+ createVNode(_sfc_main$G, {
12497
12506
  label: optionsValue.value.labels.mobileFilterButton,
12498
12507
  "show-filter-count": showMobileFilterCount.value
12499
12508
  }, null, 8, ["label", "show-filter-count"]),
12500
- paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$D, {
12509
+ paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$E, {
12501
12510
  key: 0,
12502
12511
  options: paginationOptions.value.pageSize,
12503
12512
  label: paginationOptions.value.labels.pageSize
12504
- }, null, 8, ["options", "label"])) : (openBlock(), createElementBlock("div", _hoisted_6$4)),
12505
- sortOptions.value ? (openBlock(), createBlock(_sfc_main$C, {
12513
+ }, null, 8, ["options", "label"])) : (openBlock(), createElementBlock("div", _hoisted_6$5)),
12514
+ sortOptions.value ? (openBlock(), createBlock(_sfc_main$D, {
12506
12515
  key: 2,
12507
12516
  options: sortOptions.value,
12508
12517
  callbacks: callbacks.value
@@ -12512,14 +12521,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12512
12521
  };
12513
12522
  }
12514
12523
  });
12515
- const _hoisted_1$x = { class: "lupa-badge-title" };
12516
- const _hoisted_2$m = ["src"];
12517
- const _hoisted_3$f = { key: 1 };
12524
+ const _hoisted_1$y = { class: "lupa-badge-title" };
12525
+ const _hoisted_2$n = ["src"];
12526
+ const _hoisted_3$g = { key: 1 };
12518
12527
  const _hoisted_4$a = {
12519
12528
  key: 0,
12520
12529
  class: "lupa-badge-full-text"
12521
12530
  };
12522
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
12531
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
12523
12532
  __name: "SearchResultGeneratedBadge",
12524
12533
  props: {
12525
12534
  options: {},
@@ -12552,20 +12561,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12552
12561
  class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
12553
12562
  style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
12554
12563
  }, [
12555
- createBaseVNode("span", _hoisted_1$x, [
12564
+ createBaseVNode("span", _hoisted_1$y, [
12556
12565
  image.value ? (openBlock(), createElementBlock("img", {
12557
12566
  key: 0,
12558
12567
  src: image.value
12559
- }, null, 8, _hoisted_2$m)) : createCommentVNode("", true),
12560
- hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$f, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
12568
+ }, null, 8, _hoisted_2$n)) : createCommentVNode("", true),
12569
+ hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$g, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
12561
12570
  ]),
12562
12571
  hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$a, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
12563
12572
  ], 6);
12564
12573
  };
12565
12574
  }
12566
12575
  });
12567
- const _hoisted_1$w = { class: "lupa-generated-badges" };
12568
- const _sfc_main$z = /* @__PURE__ */ defineComponent({
12576
+ const _hoisted_1$x = { class: "lupa-generated-badges" };
12577
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
12569
12578
  __name: "SearchResultGeneratedBadges",
12570
12579
  props: {
12571
12580
  options: {}
@@ -12591,9 +12600,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12591
12600
  })).filter((b) => Boolean(b.id));
12592
12601
  });
12593
12602
  return (_ctx, _cache) => {
12594
- return openBlock(), createElementBlock("div", _hoisted_1$w, [
12603
+ return openBlock(), createElementBlock("div", _hoisted_1$x, [
12595
12604
  (openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
12596
- return openBlock(), createBlock(_sfc_main$A, {
12605
+ return openBlock(), createBlock(_sfc_main$B, {
12597
12606
  key: badge.id,
12598
12607
  badge,
12599
12608
  options: _ctx.options
@@ -12603,8 +12612,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12603
12612
  };
12604
12613
  }
12605
12614
  });
12606
- const _hoisted_1$v = ["innerHTML"];
12607
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
12615
+ const _hoisted_1$w = ["innerHTML"];
12616
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
12608
12617
  __name: "CustomBadge",
12609
12618
  props: {
12610
12619
  badge: {}
@@ -12623,12 +12632,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12623
12632
  return openBlock(), createElementBlock("div", {
12624
12633
  class: normalizeClass(className.value),
12625
12634
  innerHTML: text.value
12626
- }, null, 10, _hoisted_1$v);
12635
+ }, null, 10, _hoisted_1$w);
12627
12636
  };
12628
12637
  }
12629
12638
  });
12630
- const _hoisted_1$u = { class: "lupa-text-badges" };
12631
- const _sfc_main$x = /* @__PURE__ */ defineComponent({
12639
+ const _hoisted_1$v = { class: "lupa-text-badges" };
12640
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
12632
12641
  __name: "TextBadge",
12633
12642
  props: {
12634
12643
  badge: {}
@@ -12643,7 +12652,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12643
12652
  return badges.value.slice(0, props.badge.maxItems);
12644
12653
  });
12645
12654
  return (_ctx, _cache) => {
12646
- return openBlock(), createElementBlock("div", _hoisted_1$u, [
12655
+ return openBlock(), createElementBlock("div", _hoisted_1$v, [
12647
12656
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
12648
12657
  return openBlock(), createElementBlock("div", {
12649
12658
  class: "lupa-badge lupa-text-badge",
@@ -12654,9 +12663,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12654
12663
  };
12655
12664
  }
12656
12665
  });
12657
- const _hoisted_1$t = { class: "lupa-image-badges" };
12658
- const _hoisted_2$l = ["src"];
12659
- const _sfc_main$w = /* @__PURE__ */ defineComponent({
12666
+ const _hoisted_1$u = { class: "lupa-image-badges" };
12667
+ const _hoisted_2$m = ["src"];
12668
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
12660
12669
  __name: "ImageBadge",
12661
12670
  props: {
12662
12671
  badge: {}
@@ -12676,7 +12685,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12676
12685
  return `${props.badge.rootImageUrl}${src}`;
12677
12686
  };
12678
12687
  return (_ctx, _cache) => {
12679
- return openBlock(), createElementBlock("div", _hoisted_1$t, [
12688
+ return openBlock(), createElementBlock("div", _hoisted_1$u, [
12680
12689
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
12681
12690
  return openBlock(), createElementBlock("div", {
12682
12691
  class: "lupa-badge lupa-image-badge",
@@ -12684,22 +12693,22 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12684
12693
  }, [
12685
12694
  createBaseVNode("img", {
12686
12695
  src: getImageUrl(item)
12687
- }, null, 8, _hoisted_2$l)
12696
+ }, null, 8, _hoisted_2$m)
12688
12697
  ]);
12689
12698
  }), 128))
12690
12699
  ]);
12691
12700
  };
12692
12701
  }
12693
12702
  });
12694
- const _hoisted_1$s = { id: "lupa-search-results-badges" };
12703
+ const _hoisted_1$t = { id: "lupa-search-results-badges" };
12695
12704
  const __default__$1 = {
12696
12705
  components: {
12697
- CustomBadge: _sfc_main$y,
12698
- TextBadge: _sfc_main$x,
12699
- ImageBadge: _sfc_main$w
12706
+ CustomBadge: _sfc_main$z,
12707
+ TextBadge: _sfc_main$y,
12708
+ ImageBadge: _sfc_main$x
12700
12709
  }
12701
12710
  };
12702
- const _sfc_main$v = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
12711
+ const _sfc_main$w = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
12703
12712
  __name: "SearchResultsBadgeWrapper",
12704
12713
  props: {
12705
12714
  position: {},
@@ -12745,7 +12754,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12745
12754
  }
12746
12755
  };
12747
12756
  return (_ctx, _cache) => {
12748
- return openBlock(), createElementBlock("div", _hoisted_1$s, [
12757
+ return openBlock(), createElementBlock("div", _hoisted_1$t, [
12749
12758
  createBaseVNode("div", {
12750
12759
  id: "lupa-badges",
12751
12760
  class: normalizeClass(anchorPosition.value)
@@ -12756,7 +12765,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12756
12765
  badge
12757
12766
  }, null, 8, ["badge"]);
12758
12767
  }), 128)),
12759
- positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$z, {
12768
+ positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$A, {
12760
12769
  key: 0,
12761
12770
  options: _ctx.options
12762
12771
  }, null, 8, ["options"])) : createCommentVNode("", true)
@@ -12765,7 +12774,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12765
12774
  };
12766
12775
  }
12767
12776
  }));
12768
- const _sfc_main$u = /* @__PURE__ */ defineComponent({
12777
+ const _sfc_main$v = /* @__PURE__ */ defineComponent({
12769
12778
  __name: "SearchResultsProductImage",
12770
12779
  props: {
12771
12780
  item: {},
@@ -12773,7 +12782,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12773
12782
  },
12774
12783
  setup(__props) {
12775
12784
  return (_ctx, _cache) => {
12776
- return openBlock(), createBlock(_sfc_main$1b, {
12785
+ return openBlock(), createBlock(_sfc_main$1c, {
12777
12786
  item: _ctx.item,
12778
12787
  options: _ctx.options,
12779
12788
  "wrapper-class": "lupa-search-results-image-wrapper",
@@ -12782,14 +12791,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12782
12791
  };
12783
12792
  }
12784
12793
  });
12785
- const _hoisted_1$r = ["innerHTML"];
12786
- const _hoisted_2$k = ["title"];
12787
- const _hoisted_3$e = {
12794
+ const _hoisted_1$s = ["innerHTML"];
12795
+ const _hoisted_2$l = ["title"];
12796
+ const _hoisted_3$f = {
12788
12797
  key: 0,
12789
12798
  class: "lupa-search-results-product-title-text"
12790
12799
  };
12791
12800
  const _hoisted_4$9 = ["href"];
12792
- const _sfc_main$t = /* @__PURE__ */ defineComponent({
12801
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
12793
12802
  __name: "SearchResultsProductTitle",
12794
12803
  props: {
12795
12804
  item: {},
@@ -12822,25 +12831,25 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12822
12831
  class: "lupa-search-results-product-title",
12823
12832
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
12824
12833
  innerHTML: title.value
12825
- }, null, 12, _hoisted_1$r)) : (openBlock(), createElementBlock("div", {
12834
+ }, null, 12, _hoisted_1$s)) : (openBlock(), createElementBlock("div", {
12826
12835
  key: 1,
12827
12836
  class: "lupa-search-results-product-title",
12828
12837
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
12829
12838
  title: title.value
12830
12839
  }, [
12831
- !_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_3$e, toDisplayString(title.value), 1)) : createCommentVNode("", true),
12840
+ !_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_3$f, toDisplayString(title.value), 1)) : createCommentVNode("", true),
12832
12841
  _ctx.options.link ? (openBlock(), createElementBlock("a", {
12833
12842
  key: 1,
12834
12843
  href: _ctx.link,
12835
12844
  class: "lupa-search-results-product-title-text lupa-title-link",
12836
12845
  onClick: handleNavigation
12837
12846
  }, toDisplayString(title.value), 9, _hoisted_4$9)) : createCommentVNode("", true)
12838
- ], 12, _hoisted_2$k));
12847
+ ], 12, _hoisted_2$l));
12839
12848
  };
12840
12849
  }
12841
12850
  });
12842
- const _hoisted_1$q = ["innerHTML"];
12843
- const _sfc_main$s = /* @__PURE__ */ defineComponent({
12851
+ const _hoisted_1$r = ["innerHTML"];
12852
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
12844
12853
  __name: "SearchResultsProductDescription",
12845
12854
  props: {
12846
12855
  item: {},
@@ -12864,7 +12873,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12864
12873
  class: "lupa-search-results-product-description",
12865
12874
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
12866
12875
  innerHTML: description.value
12867
- }, null, 12, _hoisted_1$q)) : (openBlock(), createElementBlock("div", {
12876
+ }, null, 12, _hoisted_1$r)) : (openBlock(), createElementBlock("div", {
12868
12877
  key: 1,
12869
12878
  class: "lupa-search-results-product-description",
12870
12879
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
@@ -12872,15 +12881,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12872
12881
  };
12873
12882
  }
12874
12883
  });
12875
- const _hoisted_1$p = { id: "lupa-search-results-rating" };
12876
- const _hoisted_2$j = { class: "lupa-ratings" };
12877
- const _hoisted_3$d = { class: "lupa-ratings-base" };
12884
+ const _hoisted_1$q = { id: "lupa-search-results-rating" };
12885
+ const _hoisted_2$k = { class: "lupa-ratings" };
12886
+ const _hoisted_3$e = { class: "lupa-ratings-base" };
12878
12887
  const _hoisted_4$8 = ["innerHTML"];
12879
12888
  const _hoisted_5$6 = { class: "lupa-rating-wrapper" };
12880
- const _hoisted_6$3 = ["innerHTML"];
12889
+ const _hoisted_6$4 = ["innerHTML"];
12881
12890
  const _hoisted_7$2 = ["href"];
12882
12891
  const STAR_COUNT = 5;
12883
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
12892
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
12884
12893
  __name: "SearchResultsProductRating",
12885
12894
  props: {
12886
12895
  item: {},
@@ -12911,9 +12920,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12911
12920
  return generateLink(props.options.links.ratingDetails, props.item);
12912
12921
  });
12913
12922
  return (_ctx, _cache) => {
12914
- return openBlock(), createElementBlock("div", _hoisted_1$p, [
12915
- createBaseVNode("div", _hoisted_2$j, [
12916
- createBaseVNode("div", _hoisted_3$d, [
12923
+ return openBlock(), createElementBlock("div", _hoisted_1$q, [
12924
+ createBaseVNode("div", _hoisted_2$k, [
12925
+ createBaseVNode("div", _hoisted_3$e, [
12917
12926
  (openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
12918
12927
  return openBlock(), createElementBlock("div", {
12919
12928
  key: index,
@@ -12932,7 +12941,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12932
12941
  key: index,
12933
12942
  innerHTML: star,
12934
12943
  class: "lupa-rating lupa-rating-highlighted"
12935
- }, null, 8, _hoisted_6$3);
12944
+ }, null, 8, _hoisted_6$4);
12936
12945
  }), 128))
12937
12946
  ], 4)
12938
12947
  ])
@@ -12945,11 +12954,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12945
12954
  };
12946
12955
  }
12947
12956
  });
12948
- const _hoisted_1$o = {
12957
+ const _hoisted_1$p = {
12949
12958
  class: "lupa-search-results-product-regular-price",
12950
12959
  "data-cy": "lupa-search-results-product-regular-price"
12951
12960
  };
12952
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
12961
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
12953
12962
  __name: "SearchResultsProductRegularPrice",
12954
12963
  props: {
12955
12964
  item: {},
@@ -12967,15 +12976,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12967
12976
  );
12968
12977
  });
12969
12978
  return (_ctx, _cache) => {
12970
- return openBlock(), createElementBlock("div", _hoisted_1$o, toDisplayString(price.value), 1);
12979
+ return openBlock(), createElementBlock("div", _hoisted_1$p, toDisplayString(price.value), 1);
12971
12980
  };
12972
12981
  }
12973
12982
  });
12974
- const _hoisted_1$n = {
12983
+ const _hoisted_1$o = {
12975
12984
  class: "lupa-search-results-product-price",
12976
12985
  "data-cy": "lupa-search-results-product-price"
12977
12986
  };
12978
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
12987
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
12979
12988
  __name: "SearchResultsProductPrice",
12980
12989
  props: {
12981
12990
  item: {},
@@ -12993,16 +13002,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12993
13002
  );
12994
13003
  });
12995
13004
  return (_ctx, _cache) => {
12996
- return openBlock(), createElementBlock("div", _hoisted_1$n, [
13005
+ return openBlock(), createElementBlock("div", _hoisted_1$o, [
12997
13006
  createBaseVNode("strong", null, toDisplayString(price.value), 1)
12998
13007
  ]);
12999
13008
  };
13000
13009
  }
13001
13010
  });
13002
- const _hoisted_1$m = { class: "lupa-search-results-add-to-cart-wrapper" };
13003
- const _hoisted_2$i = { class: "lupa-search-results-product-addtocart" };
13004
- const _hoisted_3$c = ["onClick", "disabled"];
13005
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
13011
+ const _hoisted_1$n = { class: "lupa-search-results-add-to-cart-wrapper" };
13012
+ const _hoisted_2$j = { class: "lupa-search-results-product-addtocart" };
13013
+ const _hoisted_3$d = ["onClick", "disabled"];
13014
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
13006
13015
  __name: "SearchResultsProductAddToCart",
13007
13016
  props: {
13008
13017
  item: {},
@@ -13029,25 +13038,25 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13029
13038
  loading.value = false;
13030
13039
  });
13031
13040
  return (_ctx, _cache) => {
13032
- return openBlock(), createElementBlock("div", _hoisted_1$m, [
13033
- createBaseVNode("div", _hoisted_2$i, [
13041
+ return openBlock(), createElementBlock("div", _hoisted_1$n, [
13042
+ createBaseVNode("div", _hoisted_2$j, [
13034
13043
  createBaseVNode("button", {
13035
13044
  onClick: withModifiers(handleClick, ["stop"]),
13036
13045
  class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
13037
13046
  "data-cy": "lupa-add-to-cart",
13038
13047
  disabled: !inStockValue.value || loading.value
13039
- }, toDisplayString(label.value), 11, _hoisted_3$c)
13048
+ }, toDisplayString(label.value), 11, _hoisted_3$d)
13040
13049
  ])
13041
13050
  ]);
13042
13051
  };
13043
13052
  }
13044
13053
  });
13045
- const _hoisted_1$l = ["innerHTML"];
13046
- const _hoisted_2$h = { key: 0 };
13047
- const _hoisted_3$b = { key: 1 };
13054
+ const _hoisted_1$m = ["innerHTML"];
13055
+ const _hoisted_2$i = { key: 0 };
13056
+ const _hoisted_3$c = { key: 1 };
13048
13057
  const _hoisted_4$7 = { class: "lupa-search-box-custom-label" };
13049
13058
  const _hoisted_5$5 = { class: "lupa-search-box-custom-text" };
13050
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
13059
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
13051
13060
  __name: "SearchResultsProductCustom",
13052
13061
  props: {
13053
13062
  item: {},
@@ -13085,11 +13094,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13085
13094
  key: 0,
13086
13095
  class: className.value,
13087
13096
  innerHTML: text.value
13088
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$l)) : (openBlock(), createElementBlock("div", mergeProps({
13097
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$m)) : (openBlock(), createElementBlock("div", mergeProps({
13089
13098
  key: 1,
13090
13099
  class: className.value
13091
13100
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
13092
- !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$h, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$b, [
13101
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$i, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$c, [
13093
13102
  createBaseVNode("div", _hoisted_4$7, toDisplayString(label.value), 1),
13094
13103
  createBaseVNode("div", _hoisted_5$5, toDisplayString(text.value), 1)
13095
13104
  ]))
@@ -13097,8 +13106,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13097
13106
  };
13098
13107
  }
13099
13108
  });
13100
- const _hoisted_1$k = ["innerHTML"];
13101
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
13109
+ const _hoisted_1$l = ["innerHTML"];
13110
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
13102
13111
  __name: "SearchResultsProductCustomHtmlElement",
13103
13112
  props: {
13104
13113
  item: {},
@@ -13122,15 +13131,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13122
13131
  return openBlock(), createElementBlock("div", mergeProps({
13123
13132
  class: className.value,
13124
13133
  innerHTML: text.value
13125
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$k);
13134
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$l);
13126
13135
  };
13127
13136
  }
13128
13137
  });
13129
- const _hoisted_1$j = { id: "lupa-search-results-rating" };
13130
- const _hoisted_2$g = ["innerHTML"];
13131
- const _hoisted_3$a = { class: "lupa-ratings" };
13138
+ const _hoisted_1$k = { id: "lupa-search-results-rating" };
13139
+ const _hoisted_2$h = ["innerHTML"];
13140
+ const _hoisted_3$b = { class: "lupa-ratings" };
13132
13141
  const _hoisted_4$6 = ["href"];
13133
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
13142
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
13134
13143
  __name: "SearchResultsProductSingleStarRating",
13135
13144
  props: {
13136
13145
  item: {},
@@ -13158,12 +13167,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13158
13167
  return RATING_STAR_HTML;
13159
13168
  });
13160
13169
  return (_ctx, _cache) => {
13161
- return openBlock(), createElementBlock("div", _hoisted_1$j, [
13170
+ return openBlock(), createElementBlock("div", _hoisted_1$k, [
13162
13171
  createBaseVNode("div", {
13163
13172
  innerHTML: star.value,
13164
13173
  class: "lupa-rating lupa-rating-highlighted"
13165
- }, null, 8, _hoisted_2$g),
13166
- createBaseVNode("div", _hoisted_3$a, toDisplayString(rating.value), 1),
13174
+ }, null, 8, _hoisted_2$h),
13175
+ createBaseVNode("div", _hoisted_3$b, toDisplayString(rating.value), 1),
13167
13176
  createBaseVNode("a", {
13168
13177
  href: ratingLink.value,
13169
13178
  class: "lupa-total-ratings"
@@ -13174,19 +13183,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13174
13183
  });
13175
13184
  const __default__ = {
13176
13185
  components: {
13177
- SearchResultsProductImage: _sfc_main$u,
13178
- SearchResultsProductTitle: _sfc_main$t,
13179
- SearchResultsProductDescription: _sfc_main$s,
13180
- SearchResultsProductRating: _sfc_main$r,
13181
- SearchResultsProductRegularPrice: _sfc_main$q,
13182
- SearchResultsProductPrice: _sfc_main$p,
13183
- SearchResultsProductAddToCart: _sfc_main$o,
13184
- SearchResultsProductCustom: _sfc_main$n,
13185
- SearchResultsProductCustomHtmlElement: _sfc_main$m,
13186
- SearchResultsProductSingleStarRating: _sfc_main$l
13187
- }
13188
- };
13189
- const _sfc_main$k = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
13186
+ SearchResultsProductImage: _sfc_main$v,
13187
+ SearchResultsProductTitle: _sfc_main$u,
13188
+ SearchResultsProductDescription: _sfc_main$t,
13189
+ SearchResultsProductRating: _sfc_main$s,
13190
+ SearchResultsProductRegularPrice: _sfc_main$r,
13191
+ SearchResultsProductPrice: _sfc_main$q,
13192
+ SearchResultsProductAddToCart: _sfc_main$p,
13193
+ SearchResultsProductCustom: _sfc_main$o,
13194
+ SearchResultsProductCustomHtmlElement: _sfc_main$n,
13195
+ SearchResultsProductSingleStarRating: _sfc_main$m
13196
+ }
13197
+ };
13198
+ const _sfc_main$l = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
13190
13199
  __name: "SearchResultsProductCardElement",
13191
13200
  props: {
13192
13201
  item: {},
@@ -13256,13 +13265,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13256
13265
  };
13257
13266
  }
13258
13267
  }));
13259
- const _hoisted_1$i = ["href"];
13260
- const _hoisted_2$f = {
13268
+ const _hoisted_1$j = ["href"];
13269
+ const _hoisted_2$g = {
13261
13270
  key: 0,
13262
13271
  class: "lupa-out-of-stock"
13263
13272
  };
13264
- const _hoisted_3$9 = { class: "lupa-search-result-product-details-section" };
13265
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
13273
+ const _hoisted_3$a = { class: "lupa-search-result-product-details-section" };
13274
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
13266
13275
  __name: "SearchResultsProductCard",
13267
13276
  props: {
13268
13277
  product: {},
@@ -13407,7 +13416,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13407
13416
  class: normalizeClass(["lupa-search-result-product-card", !isInStock.value ? "lupa-out-of-stock" : ""]),
13408
13417
  onClick: handleClick
13409
13418
  }, [
13410
- createVNode(_sfc_main$v, { options: badgesOptions.value }, null, 8, ["options"]),
13419
+ createVNode(_sfc_main$w, { options: badgesOptions.value }, null, 8, ["options"]),
13411
13420
  createBaseVNode("div", {
13412
13421
  class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
13413
13422
  }, [
@@ -13417,7 +13426,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13417
13426
  onClick: handleNavigation
13418
13427
  }, [
13419
13428
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
13420
- return openBlock(), createBlock(_sfc_main$k, {
13429
+ return openBlock(), createBlock(_sfc_main$l, {
13421
13430
  class: "lupa-search-results-product-element",
13422
13431
  item: _ctx.product,
13423
13432
  element,
@@ -13427,16 +13436,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13427
13436
  link: link.value
13428
13437
  }, null, 8, ["item", "element", "labels", "inStock", "link"]);
13429
13438
  }), 128)),
13430
- createVNode(_sfc_main$v, {
13439
+ createVNode(_sfc_main$w, {
13431
13440
  options: badgesOptions.value,
13432
13441
  position: "image",
13433
13442
  class: "lupa-image-badges"
13434
13443
  }, null, 8, ["options"]),
13435
- ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$f, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
13436
- ], 8, _hoisted_1$i),
13437
- createBaseVNode("div", _hoisted_3$9, [
13444
+ ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$g, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
13445
+ ], 8, _hoisted_1$j),
13446
+ createBaseVNode("div", _hoisted_3$a, [
13438
13447
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
13439
- return openBlock(), createBlock(_sfc_main$k, {
13448
+ return openBlock(), createBlock(_sfc_main$l, {
13440
13449
  class: "lupa-search-results-product-element",
13441
13450
  item: _ctx.product,
13442
13451
  element,
@@ -13454,7 +13463,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13454
13463
  class: normalizeClass("lupa-element-group-" + group)
13455
13464
  }, [
13456
13465
  (openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
13457
- return openBlock(), createBlock(_sfc_main$k, {
13466
+ return openBlock(), createBlock(_sfc_main$l, {
13458
13467
  class: "lupa-search-results-product-element",
13459
13468
  item: _ctx.product,
13460
13469
  element,
@@ -13472,23 +13481,23 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13472
13481
  };
13473
13482
  }
13474
13483
  });
13475
- const _hoisted_1$h = {
13484
+ const _hoisted_1$i = {
13476
13485
  id: "lupa-search-results-similar-queries",
13477
13486
  "data-cy": "lupa-search-results-similar-queries"
13478
13487
  };
13479
- const _hoisted_2$e = { class: "lupa-similar-queries-label" };
13480
- const _hoisted_3$8 = {
13488
+ const _hoisted_2$f = { class: "lupa-similar-queries-label" };
13489
+ const _hoisted_3$9 = {
13481
13490
  class: "lupa-similar-query-label",
13482
13491
  "data-cy": "lupa-similar-query-label"
13483
13492
  };
13484
13493
  const _hoisted_4$5 = ["onClick"];
13485
13494
  const _hoisted_5$4 = ["innerHTML"];
13486
- const _hoisted_6$2 = { key: 0 };
13495
+ const _hoisted_6$3 = { key: 0 };
13487
13496
  const _hoisted_7$1 = {
13488
13497
  class: "lupa-products",
13489
13498
  "data-cy": "lupa-products"
13490
13499
  };
13491
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
13500
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
13492
13501
  __name: "SearchResultsSimilarQueries",
13493
13502
  props: {
13494
13503
  labels: {},
@@ -13518,11 +13527,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13518
13527
  paramsStore.goToResults({ searchText, facet });
13519
13528
  };
13520
13529
  return (_ctx, _cache) => {
13521
- return openBlock(), createElementBlock("div", _hoisted_1$h, [
13522
- createBaseVNode("div", _hoisted_2$e, toDisplayString(_ctx.labels.similarQueries), 1),
13530
+ return openBlock(), createElementBlock("div", _hoisted_1$i, [
13531
+ createBaseVNode("div", _hoisted_2$f, toDisplayString(_ctx.labels.similarQueries), 1),
13523
13532
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
13524
13533
  return openBlock(), createElementBlock("div", { key: index }, [
13525
- createBaseVNode("div", _hoisted_3$8, [
13534
+ createBaseVNode("div", _hoisted_3$9, [
13526
13535
  createBaseVNode("span", null, toDisplayString(similarQueryLabel.value), 1),
13527
13536
  createBaseVNode("span", {
13528
13537
  id: "lupa-similar-query-text-component",
@@ -13533,12 +13542,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13533
13542
  createBaseVNode("span", {
13534
13543
  innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
13535
13544
  }, null, 8, _hoisted_5$4),
13536
- similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$2, " (" + toDisplayString(similarQuery.count) + ")", 1)) : createCommentVNode("", true)
13545
+ similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$3, " (" + toDisplayString(similarQuery.count) + ")", 1)) : createCommentVNode("", true)
13537
13546
  ], 8, _hoisted_4$5)
13538
13547
  ]),
13539
13548
  createBaseVNode("div", _hoisted_7$1, [
13540
13549
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
13541
- return openBlock(), createBlock(_sfc_main$j, {
13550
+ return openBlock(), createBlock(_sfc_main$k, {
13542
13551
  style: normalizeStyle(_ctx.columnSize),
13543
13552
  key: getDocumentKey(index2, product),
13544
13553
  product,
@@ -13552,15 +13561,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13552
13561
  };
13553
13562
  }
13554
13563
  });
13555
- const _hoisted_1$g = {
13564
+ const _hoisted_1$h = {
13556
13565
  key: 0,
13557
13566
  class: "lupa-results-additional-panel"
13558
13567
  };
13559
- const _hoisted_2$d = {
13568
+ const _hoisted_2$e = {
13560
13569
  class: "lupa-results-additional-panel-items",
13561
13570
  "data-cy": "lupa-results-additional-panel-items"
13562
13571
  };
13563
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
13572
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
13564
13573
  __name: "AdditionalPanel",
13565
13574
  props: {
13566
13575
  panel: {},
@@ -13632,10 +13641,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13632
13641
  handleQueryChange();
13633
13642
  });
13634
13643
  return (_ctx, _cache) => {
13635
- return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
13636
- createBaseVNode("div", _hoisted_2$d, [
13644
+ return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$h, [
13645
+ createBaseVNode("div", _hoisted_2$e, [
13637
13646
  (openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
13638
- return openBlock(), createBlock(_sfc_main$j, {
13647
+ return openBlock(), createBlock(_sfc_main$k, {
13639
13648
  key: index,
13640
13649
  product: item,
13641
13650
  options: _ctx.panel,
@@ -13653,11 +13662,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13653
13662
  };
13654
13663
  }
13655
13664
  });
13656
- const _hoisted_1$f = {
13665
+ const _hoisted_1$g = {
13657
13666
  key: 0,
13658
13667
  class: "lupa-results-additional-panels"
13659
13668
  };
13660
- const _sfc_main$g = /* @__PURE__ */ defineComponent({
13669
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
13661
13670
  __name: "AdditionalPanels",
13662
13671
  props: {
13663
13672
  options: {},
@@ -13674,9 +13683,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13674
13683
  return locationPanels.value.length > 0;
13675
13684
  });
13676
13685
  return (_ctx, _cache) => {
13677
- return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
13686
+ return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
13678
13687
  (openBlock(true), createElementBlock(Fragment, null, renderList(locationPanels.value, (panel) => {
13679
- return openBlock(), createBlock(_sfc_main$h, {
13688
+ return openBlock(), createBlock(_sfc_main$i, {
13680
13689
  key: panel.queryKey,
13681
13690
  panel,
13682
13691
  options: _ctx.sdkOptions
@@ -13693,19 +13702,60 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13693
13702
  }
13694
13703
  return target;
13695
13704
  };
13696
- const _sfc_main$f = {};
13697
- const _hoisted_1$e = { class: "lupa-spinner-wrapper" };
13698
- const _hoisted_2$c = { class: "lupa-spinner" };
13705
+ const _sfc_main$g = {};
13706
+ const _hoisted_1$f = { class: "lupa-spinner-wrapper" };
13707
+ const _hoisted_2$d = { class: "lupa-spinner" };
13699
13708
  function _sfc_render(_ctx, _cache) {
13700
- return openBlock(), createElementBlock("div", _hoisted_1$e, [
13701
- createBaseVNode("div", _hoisted_2$c, [
13709
+ return openBlock(), createElementBlock("div", _hoisted_1$f, [
13710
+ createBaseVNode("div", _hoisted_2$d, [
13702
13711
  (openBlock(), createElementBlock(Fragment, null, renderList(12, (x) => {
13703
13712
  return createBaseVNode("div", { key: x });
13704
13713
  }), 64))
13705
13714
  ])
13706
13715
  ]);
13707
13716
  }
13708
- const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render]]);
13717
+ const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render]]);
13718
+ const _hoisted_1$e = {
13719
+ id: "lupa-search-results-similar-results",
13720
+ "data-cy": "lupa-search-results-similar-results"
13721
+ };
13722
+ const _hoisted_2$c = { class: "lupa-similar-results-label" };
13723
+ const _hoisted_3$8 = {
13724
+ class: "lupa-products",
13725
+ "data-cy": "lupa-products"
13726
+ };
13727
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
13728
+ __name: "SearchResultsSimilarResults",
13729
+ props: {
13730
+ columnSize: {},
13731
+ labels: {},
13732
+ productCardOptions: {}
13733
+ },
13734
+ setup(__props) {
13735
+ const props = __props;
13736
+ const searchResultStore = useSearchResultStore();
13737
+ const { searchResult } = storeToRefs(searchResultStore);
13738
+ const similarResults = computed(() => searchResult.value.similarResults);
13739
+ const getDocumentKey = (index, product) => {
13740
+ return getProductKey(`${index}`, product, props.productCardOptions.idKey);
13741
+ };
13742
+ return (_ctx, _cache) => {
13743
+ return openBlock(), createElementBlock("div", _hoisted_1$e, [
13744
+ createBaseVNode("div", _hoisted_2$c, toDisplayString(_ctx.labels.similarResultsLabel), 1),
13745
+ createBaseVNode("div", _hoisted_3$8, [
13746
+ (openBlock(true), createElementBlock(Fragment, null, renderList(similarResults.value.items, (product, index) => {
13747
+ return openBlock(), createBlock(_sfc_main$k, {
13748
+ style: normalizeStyle(_ctx.columnSize),
13749
+ key: getDocumentKey(index, product),
13750
+ product,
13751
+ options: _ctx.productCardOptions
13752
+ }, null, 8, ["style", "product", "options"]);
13753
+ }), 128))
13754
+ ])
13755
+ ]);
13756
+ };
13757
+ }
13758
+ });
13709
13759
  const _hoisted_1$d = { id: "lupa-search-results-products" };
13710
13760
  const _hoisted_2$b = {
13711
13761
  class: "lupa-products",
@@ -13722,6 +13772,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13722
13772
  "data-cy": "lupa-no-results"
13723
13773
  };
13724
13774
  const _hoisted_5$3 = { key: 4 };
13775
+ const _hoisted_6$2 = { key: 5 };
13725
13776
  const _sfc_main$e = /* @__PURE__ */ defineComponent({
13726
13777
  __name: "SearchResultsProducts",
13727
13778
  props: {
@@ -13759,6 +13810,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13759
13810
  const similarQueriesLabels = computed(() => {
13760
13811
  return props.options.labels;
13761
13812
  });
13813
+ const similarResultsLabels = computed(() => {
13814
+ return props.options.labels;
13815
+ });
13762
13816
  const showTopFilters = computed(() => {
13763
13817
  var _a, _b, _c;
13764
13818
  return ((_c = (_b = (_a = props.options.filters) == null ? void 0 : _a.facets) == null ? void 0 : _b.style) == null ? void 0 : _c.type) === "top-dropdown";
@@ -13801,7 +13855,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13801
13855
  });
13802
13856
  const hasSimilarQueries = computed(() => {
13803
13857
  var _a;
13804
- return (_a = searchResult.value.similarQueries) == null ? void 0 : _a.length;
13858
+ return Boolean((_a = searchResult.value.similarQueries) == null ? void 0 : _a.length);
13859
+ });
13860
+ const hasSimilarResults = computed(() => {
13861
+ var _a, _b;
13862
+ return Boolean((_b = (_a = searchResult.value.similarResults) == null ? void 0 : _a.items) == null ? void 0 : _b.length);
13805
13863
  });
13806
13864
  const getProductKeyAction = (index, product) => {
13807
13865
  return getProductKey(`${index}`, product, props.options.idKey);
@@ -13819,17 +13877,17 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13819
13877
  class: "lupa-loader"
13820
13878
  })) : createCommentVNode("", true),
13821
13879
  unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
13822
- showTopFilters.value ? (openBlock(), createBlock(_sfc_main$H, {
13880
+ showTopFilters.value ? (openBlock(), createBlock(_sfc_main$I, {
13823
13881
  key: 0,
13824
13882
  options: (_a = _ctx.options.filters) != null ? _a : {}
13825
13883
  }, null, 8, ["options"])) : createCommentVNode("", true),
13826
- showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$B, {
13884
+ showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$C, {
13827
13885
  key: 1,
13828
13886
  class: "lupa-toolbar-mobile",
13829
13887
  options: _ctx.options,
13830
13888
  "pagination-location": "top"
13831
13889
  }, null, 8, ["options"])) : createCommentVNode("", true),
13832
- currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$U, {
13890
+ currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$V, {
13833
13891
  key: 2,
13834
13892
  class: normalizeClass(currentFiltersClass.value),
13835
13893
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -13837,13 +13895,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13837
13895
  expandable: !desktopFiltersExpanded.value
13838
13896
  }, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true)
13839
13897
  ], 64)) : createCommentVNode("", true),
13840
- createVNode(_sfc_main$g, {
13898
+ createVNode(_sfc_main$h, {
13841
13899
  options: _ctx.options,
13842
13900
  location: "top",
13843
13901
  sdkOptions: _ctx.options.options
13844
13902
  }, null, 8, ["options", "sdkOptions"]),
13845
13903
  unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
13846
- createVNode(_sfc_main$B, {
13904
+ createVNode(_sfc_main$C, {
13847
13905
  class: "lupa-toolbar-top",
13848
13906
  options: _ctx.options,
13849
13907
  "pagination-location": "top"
@@ -13857,7 +13915,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13857
13915
  options: productCardOptions.value
13858
13916
  });
13859
13917
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
13860
- return openBlock(), createBlock(_sfc_main$j, {
13918
+ return openBlock(), createBlock(_sfc_main$k, {
13861
13919
  style: normalizeStyle(columnSize.value),
13862
13920
  key: getProductKeyAction(index, product),
13863
13921
  product,
@@ -13873,12 +13931,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13873
13931
  onClick: goToFirstPage
13874
13932
  }, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
13875
13933
  ])) : createCommentVNode("", true),
13876
- createVNode(_sfc_main$B, {
13934
+ createVNode(_sfc_main$C, {
13877
13935
  class: "lupa-toolbar-bottom",
13878
13936
  options: _ctx.options,
13879
13937
  "pagination-location": "bottom"
13880
13938
  }, null, 8, ["options"]),
13881
- createVNode(_sfc_main$g, {
13939
+ createVNode(_sfc_main$h, {
13882
13940
  options: _ctx.options,
13883
13941
  location: "bottom",
13884
13942
  sdkOptions: _ctx.options.options
@@ -13888,12 +13946,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13888
13946
  createBaseVNode("span", null, toDisplayString(unref(currentQueryText)), 1)
13889
13947
  ])) : createCommentVNode("", true),
13890
13948
  hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5$3, [
13891
- createVNode(_sfc_main$i, {
13949
+ createVNode(_sfc_main$j, {
13892
13950
  labels: similarQueriesLabels.value,
13893
13951
  columnSize: columnSize.value,
13894
13952
  productCardOptions: productCardOptions.value
13895
13953
  }, null, 8, ["labels", "columnSize", "productCardOptions"])
13896
13954
  ])) : createCommentVNode("", true),
13955
+ hasSimilarResults.value ? (openBlock(), createElementBlock("div", _hoisted_6$2, [
13956
+ createVNode(_sfc_main$f, {
13957
+ labels: similarResultsLabels.value,
13958
+ columnSize: columnSize.value,
13959
+ productCardOptions: productCardOptions.value
13960
+ }, null, 8, ["labels", "columnSize", "productCardOptions"])
13961
+ ])) : createCommentVNode("", true),
13897
13962
  renderSlot(_ctx.$slots, "append")
13898
13963
  ]);
13899
13964
  };
@@ -13945,7 +14010,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13945
14010
  onClick: handleNavigationBack
13946
14011
  }, toDisplayString(backTitle.value), 9, _hoisted_3$6)
13947
14012
  ])) : createCommentVNode("", true),
13948
- createVNode(_sfc_main$B, {
14013
+ createVNode(_sfc_main$C, {
13949
14014
  class: "lupa-toolbar-mobile",
13950
14015
  "pagination-location": "top",
13951
14016
  options: _ctx.options
@@ -14163,8 +14228,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14163
14228
  class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
14164
14229
  }, [
14165
14230
  _ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$b, [
14166
- createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14167
- createVNode(_sfc_main$W, {
14231
+ createVNode(_sfc_main$Z, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14232
+ createVNode(_sfc_main$X, {
14168
14233
  "show-summary": true,
14169
14234
  options: _ctx.options,
14170
14235
  "is-product-list": (_a = _ctx.isProductList) != null ? _a : false
@@ -14174,24 +14239,24 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14174
14239
  key: 1,
14175
14240
  options: _ctx.options
14176
14241
  }, null, 8, ["options"])) : createCommentVNode("", true),
14177
- _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$J, {
14242
+ _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$K, {
14178
14243
  key: 2,
14179
14244
  options: _ctx.options.filters
14180
14245
  }, null, 8, ["options"])) : createCommentVNode("", true),
14181
- unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$I, {
14246
+ unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$J, {
14182
14247
  key: 3,
14183
14248
  breadcrumbs: _ctx.options.breadcrumbs
14184
14249
  }, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
14185
14250
  isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
14186
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$K, {
14251
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$L, {
14187
14252
  key: 0,
14188
14253
  options: (_b = _ctx.options.filters) != null ? _b : {},
14189
14254
  ref_key: "searchResultsFilters",
14190
14255
  ref: searchResultsFilters
14191
14256
  }, null, 8, ["options"])) : createCommentVNode("", true),
14192
14257
  createBaseVNode("div", _hoisted_3$5, [
14193
- createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14194
- createVNode(_sfc_main$W, {
14258
+ createVNode(_sfc_main$Z, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14259
+ createVNode(_sfc_main$X, {
14195
14260
  options: _ctx.options,
14196
14261
  "is-product-list": (_c = _ctx.isProductList) != null ? _c : false
14197
14262
  }, null, 8, ["options", "is-product-list"]),
@@ -14206,13 +14271,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14206
14271
  }, 8, ["options", "ssr"])
14207
14272
  ])
14208
14273
  ])) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
14209
- createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14210
- createVNode(_sfc_main$W, {
14274
+ createVNode(_sfc_main$Z, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14275
+ createVNode(_sfc_main$X, {
14211
14276
  options: _ctx.options,
14212
14277
  "is-product-list": (_d = _ctx.isProductList) != null ? _d : false
14213
14278
  }, null, 8, ["options", "is-product-list"]),
14214
14279
  createBaseVNode("div", _hoisted_4$3, [
14215
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$K, {
14280
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$L, {
14216
14281
  key: 0,
14217
14282
  options: (_e = _ctx.options.filters) != null ? _e : {},
14218
14283
  ref_key: "searchResultsFilters",
@@ -19840,7 +19905,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
19840
19905
  onClick: withModifiers(innerClick, ["stop"])
19841
19906
  }, [
19842
19907
  createBaseVNode("div", _hoisted_2$7, [
19843
- createVNode(_sfc_main$Z, {
19908
+ createVNode(_sfc_main$_, {
19844
19909
  options: fullSearchBoxOptions.value,
19845
19910
  "is-search-container": true,
19846
19911
  ref_key: "searchBox",
@@ -20661,7 +20726,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20661
20726
  key: getProductKeyAction(index, product)
20662
20727
  }, {
20663
20728
  default: withCtx(() => [
20664
- createVNode(_sfc_main$j, {
20729
+ createVNode(_sfc_main$k, {
20665
20730
  product,
20666
20731
  options: _ctx.options,
20667
20732
  "click-tracking-settings": clickTrackingSettings.value
@@ -20925,7 +20990,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20925
20990
  return (_ctx, _cache) => {
20926
20991
  return openBlock(), createElementBlock("section", _hoisted_1$5, [
20927
20992
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
20928
- return openBlock(), createBlock(_sfc_main$j, {
20993
+ return openBlock(), createBlock(_sfc_main$k, {
20929
20994
  class: "lupa-chat-product-card",
20930
20995
  key: getProductKeyAction(index, product),
20931
20996
  product,
@@ -21241,7 +21306,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
21241
21306
  class: "lupa-chat-spinner-main"
21242
21307
  };
21243
21308
  const _hoisted_5 = { class: "lupasearch-chat-input" };
21244
- const _sfc_main$1k = /* @__PURE__ */ defineComponent({
21309
+ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
21245
21310
  __name: "ChatContainer",
21246
21311
  props: {
21247
21312
  options: {}
@@ -26882,7 +26947,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
26882
26947
  };
26883
26948
  __expose({ fetch: fetch2 });
26884
26949
  return (_ctx, _cache) => {
26885
- return openBlock(), createBlock(unref(_sfc_main$Z), {
26950
+ return openBlock(), createBlock(unref(_sfc_main$_), {
26886
26951
  options: fullSearchBoxOptions.value,
26887
26952
  ref_key: "searchBox",
26888
26953
  ref: searchBox2
@@ -27357,7 +27422,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
27357
27422
  }
27358
27423
  return;
27359
27424
  }
27360
- const instance = createVue(options.displayOptions.containerSelector, _sfc_main$1k, {
27425
+ const instance = createVue(options.displayOptions.containerSelector, _sfc_main$1l, {
27361
27426
  options
27362
27427
  });
27363
27428
  if (!instance) {