@getlupa/client 1.11.3 → 1.11.5

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.
@@ -8963,14 +8963,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8963
8963
  result,
8964
8964
  mode
8965
8965
  }) {
8966
- var _a, _b, _c, _d, _e, _f;
8966
+ var _a, _b, _c, _d, _e, _f, _g, _h;
8967
8967
  const enabledForMode = mode === "searchBox" ? isDynamicDataEnabledForSearchBox.value : isDynamicDataEnabledForSearchResults.value;
8968
8968
  if (!result || !enabledForMode) {
8969
8969
  return;
8970
8970
  }
8971
8971
  const resultIds = (_b = (_a = result == null ? void 0 : result.items) == null ? void 0 : _a.map((i) => i.id)) != null ? _b : [];
8972
8972
  const similarQueryResultIds = (_e = (_d = (_c = result.similarQueries) == null ? void 0 : _c.map((q) => q.items.map((i) => i.id))) == null ? void 0 : _d.flat()) != null ? _e : [];
8973
- let requestedIds = [...resultIds, ...similarQueryResultIds];
8973
+ const similarResultIds = (_g = (_f = result.similarResults) == null ? void 0 : _f.items.map((i) => i.id)) != null ? _g : [];
8974
+ let requestedIds = [...resultIds, ...similarQueryResultIds, ...similarResultIds];
8974
8975
  if (isCacheEnabled.value) {
8975
8976
  requestedIds = requestedIds.filter((i) => !dynamicDataIdMap.value[`${i}`]);
8976
8977
  }
@@ -8984,7 +8985,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8984
8985
  if (!(dynamicData == null ? void 0 : dynamicData.handler)) {
8985
8986
  return {};
8986
8987
  }
8987
- const dynamicDataResult = (_f = yield dynamicData == null ? void 0 : dynamicData.handler(requestedIds)) != null ? _f : [];
8988
+ const dynamicDataResult = (_h = yield dynamicData == null ? void 0 : dynamicData.handler(requestedIds)) != null ? _h : [];
8988
8989
  const seed = {};
8989
8990
  const dynamicDataIdMapValue = dynamicDataResult.reduce(
8990
8991
  (a, c2) => __spreadProps2(__spreadValues2({}, a), { [`${c2.id}`]: c2 }),
@@ -11451,11 +11452,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11451
11452
  const _hoisted_5$c = { class: "lupa-term-checkbox-wrapper" };
11452
11453
  const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
11453
11454
  const _hoisted_7$6 = { class: "lupa-term-label" };
11454
- const _hoisted_8$1 = {
11455
+ const _hoisted_8$2 = {
11455
11456
  key: 0,
11456
11457
  class: "lupa-term-count"
11457
11458
  };
11458
- const _hoisted_9$1 = { key: 0 };
11459
+ const _hoisted_9$2 = { key: 0 };
11459
11460
  const _hoisted_10$1 = { key: 1 };
11460
11461
  const _sfc_main$N = /* @__PURE__ */ defineComponent({
11461
11462
  __name: "TermFacet",
@@ -11551,7 +11552,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11551
11552
  ]),
11552
11553
  createBaseVNode("div", _hoisted_6$8, [
11553
11554
  createBaseVNode("span", _hoisted_7$6, toDisplayString(item.title), 1),
11554
- _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$1, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
11555
+ _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$2, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
11555
11556
  ])
11556
11557
  ], 10, _hoisted_4$i);
11557
11558
  }), 128))
@@ -11562,7 +11563,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11562
11563
  "data-cy": "lupa-facet-term",
11563
11564
  onClick: toggleShowAll
11564
11565
  }, [
11565
- showAll.value ? (openBlock(), createElementBlock("span", _hoisted_9$1, toDisplayString(_ctx.options.labels.showLess), 1)) : (openBlock(), createElementBlock("span", _hoisted_10$1, toDisplayString(_ctx.options.labels.showAll), 1))
11566
+ showAll.value ? (openBlock(), createElementBlock("span", _hoisted_9$2, toDisplayString(_ctx.options.labels.showLess), 1)) : (openBlock(), createElementBlock("span", _hoisted_10$1, toDisplayString(_ctx.options.labels.showAll), 1))
11566
11567
  ])) : createCommentVNode("", true)
11567
11568
  ]);
11568
11569
  };
@@ -12560,8 +12561,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12560
12561
  const _hoisted_5$b = { class: "lupa-stats-from" };
12561
12562
  const _hoisted_6$7 = ["max", "min", "pattern", "aria-label"];
12562
12563
  const _hoisted_7$5 = { key: 0 };
12563
- const _hoisted_8 = /* @__PURE__ */ createBaseVNode("div", { class: "lupa-stats-separator" }, null, -1);
12564
- const _hoisted_9 = {
12564
+ const _hoisted_8$1 = /* @__PURE__ */ createBaseVNode("div", { class: "lupa-stats-separator" }, null, -1);
12565
+ const _hoisted_9$1 = {
12565
12566
  key: 0,
12566
12567
  class: "lupa-stats-range-label"
12567
12568
  };
@@ -12769,9 +12770,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12769
12770
  isPrice.value ? (openBlock(), createElementBlock("span", _hoisted_7$5, toDisplayString(currency.value), 1)) : createCommentVNode("", true)
12770
12771
  ])
12771
12772
  ]),
12772
- _hoisted_8,
12773
+ _hoisted_8$1,
12773
12774
  createBaseVNode("div", null, [
12774
- rangeLabelTo.value ? (openBlock(), createElementBlock("div", _hoisted_9, toDisplayString(rangeLabelTo.value), 1)) : createCommentVNode("", true),
12775
+ rangeLabelTo.value ? (openBlock(), createElementBlock("div", _hoisted_9$1, toDisplayString(rangeLabelTo.value), 1)) : createCommentVNode("", true),
12775
12776
  createBaseVNode("div", _hoisted_10, [
12776
12777
  withDirectives(createBaseVNode("input", {
12777
12778
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => toValue.value = $event),
@@ -13860,12 +13861,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13860
13861
  }
13861
13862
  });
13862
13863
  const _hoisted_1$t = { class: "lupa-toolbar-left" };
13863
- const _hoisted_2$m = { key: 1 };
13864
- const _hoisted_3$f = { key: 3 };
13865
- const _hoisted_4$a = { key: 5 };
13866
- const _hoisted_5$7 = { class: "lupa-toolbar-right" };
13867
- const _hoisted_6$5 = { key: 1 };
13868
- const _hoisted_7$3 = { key: 3 };
13864
+ const _hoisted_2$m = {
13865
+ key: 0,
13866
+ class: "lupa-toolbar-right-title"
13867
+ };
13868
+ const _hoisted_3$f = { key: 2 };
13869
+ const _hoisted_4$a = { key: 4 };
13870
+ const _hoisted_5$7 = { key: 6 };
13871
+ const _hoisted_6$5 = { class: "lupa-toolbar-right" };
13872
+ const _hoisted_7$3 = {
13873
+ key: 0,
13874
+ class: "lupa-toolbar-right-title"
13875
+ };
13876
+ const _hoisted_8 = { key: 2 };
13877
+ const _hoisted_9 = { key: 4 };
13869
13878
  const _sfc_main$w = /* @__PURE__ */ defineComponent({
13870
13879
  __name: "SearchResultsToolbar",
13871
13880
  props: {
@@ -13946,6 +13955,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13946
13955
  const defaultLabel = (_c = (_b = (_a = paginationOptions.value) == null ? void 0 : _a.labels) == null ? void 0 : _b.itemCount) != null ? _c : "";
13947
13956
  return !hasAnyFilter.value || !showFilterClear.value ? defaultLabel : (_f = (_e = (_d = paginationOptions.value) == null ? void 0 : _d.labels) == null ? void 0 : _e.filteredItemCount) != null ? _f : defaultLabel;
13948
13957
  });
13958
+ const toolbarLeftLabel = computed(() => {
13959
+ var _a;
13960
+ return (_a = optionsValue.value.labels.toolbarLeftLabel) != null ? _a : "";
13961
+ });
13962
+ const toolbarRightLabel = computed(() => {
13963
+ var _a;
13964
+ return (_a = optionsValue.value.labels.toolbarRightLabel) != null ? _a : "";
13965
+ });
13949
13966
  const showMobileFilterCount = computed(() => {
13950
13967
  var _a, _b, _c;
13951
13968
  return Boolean((_c = (_b = (_a = optionsValue.value.filters) == null ? void 0 : _a.currentFilters) == null ? void 0 : _b.mobileSidebar) == null ? void 0 : _c.showFilterCount);
@@ -13966,35 +13983,37 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13966
13983
  class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
13967
13984
  }, [
13968
13985
  createBaseVNode("div", _hoisted_1$t, [
13969
- showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$B, { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_2$m)),
13986
+ toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$m, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
13987
+ showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$B, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$f)),
13970
13988
  showItemSummary.value ? (openBlock(), createBlock(_sfc_main$T, {
13971
- key: 2,
13989
+ key: 3,
13972
13990
  label: searchSummaryLabel.value,
13973
13991
  clearable: unref(hasAnyFilter) && showFilterClear.value,
13974
13992
  onClear: handleClearAll
13975
- }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_3$f)),
13993
+ }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$a)),
13976
13994
  displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$z, {
13977
- key: 4,
13995
+ key: 5,
13978
13996
  options: paginationOptions.value.pageSelect,
13979
13997
  "last-page-label": paginationOptions.value.labels.showMore,
13980
13998
  "first-page-label": paginationOptions.value.labels.showLess
13981
- }, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_4$a))
13999
+ }, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_5$7))
13982
14000
  ]),
13983
- createBaseVNode("div", _hoisted_5$7, [
14001
+ createBaseVNode("div", _hoisted_6$5, [
14002
+ toolbarRightLabel.value ? (openBlock(), createElementBlock("div", _hoisted_7$3, toDisplayString(toolbarRightLabel.value), 1)) : createCommentVNode("", true),
13984
14003
  createVNode(_sfc_main$A, {
13985
14004
  label: optionsValue.value.labels.mobileFilterButton,
13986
14005
  "show-filter-count": showMobileFilterCount.value
13987
14006
  }, null, 8, ["label", "show-filter-count"]),
13988
14007
  paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$y, {
13989
- key: 0,
14008
+ key: 1,
13990
14009
  options: paginationOptions.value.pageSize,
13991
14010
  label: paginationOptions.value.labels.pageSize
13992
- }, null, 8, ["options", "label"])) : (openBlock(), createElementBlock("div", _hoisted_6$5)),
14011
+ }, null, 8, ["options", "label"])) : (openBlock(), createElementBlock("div", _hoisted_8)),
13993
14012
  sortOptions.value ? (openBlock(), createBlock(_sfc_main$x, {
13994
- key: 2,
14013
+ key: 3,
13995
14014
  options: sortOptions.value,
13996
14015
  callbacks: callbacks.value
13997
- }, null, 8, ["options", "callbacks"])) : (openBlock(), createElementBlock("div", _hoisted_7$3))
14016
+ }, null, 8, ["options", "callbacks"])) : (openBlock(), createElementBlock("div", _hoisted_9))
13998
14017
  ])
13999
14018
  ], 2);
14000
14019
  };
@@ -15365,12 +15384,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
15365
15384
  queryKey,
15366
15385
  results
15367
15386
  }) {
15368
- var _a, _b, _c, _d;
15387
+ var _a, _b, _c, _d, _e, _f;
15369
15388
  trackingStore.trackResults({ queryKey, results });
15370
15389
  const hasResults2 = Boolean(
15371
- results.total > 0 || ((_a = results.similarQueries) == null ? void 0 : _a.length) || ((_b = results.didYouMean) == null ? void 0 : _b.options)
15390
+ results.total > 0 || ((_a = results.similarQueries) == null ? void 0 : _a.length) || ((_b = results.didYouMean) == null ? void 0 : _b.options) || ((_d = (_c = results.similarResults) == null ? void 0 : _c.items) == null ? void 0 : _d.length)
15372
15391
  );
15373
- (_d = (_c = props.options.callbacks) == null ? void 0 : _c.onSearchResults) == null ? void 0 : _d.call(_c, { queryKey, hasResults: hasResults2, params: paramStore.params });
15392
+ (_f = (_e = props.options.callbacks) == null ? void 0 : _e.onSearchResults) == null ? void 0 : _f.call(_e, { queryKey, hasResults: hasResults2, params: paramStore.params });
15374
15393
  if (!hasResults2) {
15375
15394
  return;
15376
15395
  }
@@ -8963,14 +8963,15 @@ const useDynamicDataStore = defineStore("dynamicData", () => {
8963
8963
  result,
8964
8964
  mode
8965
8965
  }) {
8966
- var _a, _b, _c, _d, _e, _f;
8966
+ var _a, _b, _c, _d, _e, _f, _g, _h;
8967
8967
  const enabledForMode = mode === "searchBox" ? isDynamicDataEnabledForSearchBox.value : isDynamicDataEnabledForSearchResults.value;
8968
8968
  if (!result || !enabledForMode) {
8969
8969
  return;
8970
8970
  }
8971
8971
  const resultIds = (_b = (_a = result == null ? void 0 : result.items) == null ? void 0 : _a.map((i) => i.id)) != null ? _b : [];
8972
8972
  const similarQueryResultIds = (_e = (_d = (_c = result.similarQueries) == null ? void 0 : _c.map((q) => q.items.map((i) => i.id))) == null ? void 0 : _d.flat()) != null ? _e : [];
8973
- let requestedIds = [...resultIds, ...similarQueryResultIds];
8973
+ const similarResultIds = (_g = (_f = result.similarResults) == null ? void 0 : _f.items.map((i) => i.id)) != null ? _g : [];
8974
+ let requestedIds = [...resultIds, ...similarQueryResultIds, ...similarResultIds];
8974
8975
  if (isCacheEnabled.value) {
8975
8976
  requestedIds = requestedIds.filter((i) => !dynamicDataIdMap.value[`${i}`]);
8976
8977
  }
@@ -8984,7 +8985,7 @@ const useDynamicDataStore = defineStore("dynamicData", () => {
8984
8985
  if (!(dynamicData == null ? void 0 : dynamicData.handler)) {
8985
8986
  return {};
8986
8987
  }
8987
- const dynamicDataResult = (_f = yield dynamicData == null ? void 0 : dynamicData.handler(requestedIds)) != null ? _f : [];
8988
+ const dynamicDataResult = (_h = yield dynamicData == null ? void 0 : dynamicData.handler(requestedIds)) != null ? _h : [];
8988
8989
  const seed = {};
8989
8990
  const dynamicDataIdMapValue = dynamicDataResult.reduce(
8990
8991
  (a, c2) => __spreadProps2(__spreadValues2({}, a), { [`${c2.id}`]: c2 }),
@@ -11451,11 +11452,11 @@ const _hoisted_4$i = ["onClick"];
11451
11452
  const _hoisted_5$c = { class: "lupa-term-checkbox-wrapper" };
11452
11453
  const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
11453
11454
  const _hoisted_7$6 = { class: "lupa-term-label" };
11454
- const _hoisted_8$1 = {
11455
+ const _hoisted_8$2 = {
11455
11456
  key: 0,
11456
11457
  class: "lupa-term-count"
11457
11458
  };
11458
- const _hoisted_9$1 = { key: 0 };
11459
+ const _hoisted_9$2 = { key: 0 };
11459
11460
  const _hoisted_10$1 = { key: 1 };
11460
11461
  const _sfc_main$N = /* @__PURE__ */ defineComponent({
11461
11462
  __name: "TermFacet",
@@ -11551,7 +11552,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
11551
11552
  ]),
11552
11553
  createBaseVNode("div", _hoisted_6$8, [
11553
11554
  createBaseVNode("span", _hoisted_7$6, toDisplayString(item.title), 1),
11554
- _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$1, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
11555
+ _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$2, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
11555
11556
  ])
11556
11557
  ], 10, _hoisted_4$i);
11557
11558
  }), 128))
@@ -11562,7 +11563,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
11562
11563
  "data-cy": "lupa-facet-term",
11563
11564
  onClick: toggleShowAll
11564
11565
  }, [
11565
- showAll.value ? (openBlock(), createElementBlock("span", _hoisted_9$1, toDisplayString(_ctx.options.labels.showLess), 1)) : (openBlock(), createElementBlock("span", _hoisted_10$1, toDisplayString(_ctx.options.labels.showAll), 1))
11566
+ showAll.value ? (openBlock(), createElementBlock("span", _hoisted_9$2, toDisplayString(_ctx.options.labels.showLess), 1)) : (openBlock(), createElementBlock("span", _hoisted_10$1, toDisplayString(_ctx.options.labels.showAll), 1))
11566
11567
  ])) : createCommentVNode("", true)
11567
11568
  ]);
11568
11569
  };
@@ -12560,8 +12561,8 @@ const _hoisted_4$h = {
12560
12561
  const _hoisted_5$b = { class: "lupa-stats-from" };
12561
12562
  const _hoisted_6$7 = ["max", "min", "pattern", "aria-label"];
12562
12563
  const _hoisted_7$5 = { key: 0 };
12563
- const _hoisted_8 = /* @__PURE__ */ createBaseVNode("div", { class: "lupa-stats-separator" }, null, -1);
12564
- const _hoisted_9 = {
12564
+ const _hoisted_8$1 = /* @__PURE__ */ createBaseVNode("div", { class: "lupa-stats-separator" }, null, -1);
12565
+ const _hoisted_9$1 = {
12565
12566
  key: 0,
12566
12567
  class: "lupa-stats-range-label"
12567
12568
  };
@@ -12769,9 +12770,9 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
12769
12770
  isPrice.value ? (openBlock(), createElementBlock("span", _hoisted_7$5, toDisplayString(currency.value), 1)) : createCommentVNode("", true)
12770
12771
  ])
12771
12772
  ]),
12772
- _hoisted_8,
12773
+ _hoisted_8$1,
12773
12774
  createBaseVNode("div", null, [
12774
- rangeLabelTo.value ? (openBlock(), createElementBlock("div", _hoisted_9, toDisplayString(rangeLabelTo.value), 1)) : createCommentVNode("", true),
12775
+ rangeLabelTo.value ? (openBlock(), createElementBlock("div", _hoisted_9$1, toDisplayString(rangeLabelTo.value), 1)) : createCommentVNode("", true),
12775
12776
  createBaseVNode("div", _hoisted_10, [
12776
12777
  withDirectives(createBaseVNode("input", {
12777
12778
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => toValue.value = $event),
@@ -13860,12 +13861,20 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
13860
13861
  }
13861
13862
  });
13862
13863
  const _hoisted_1$t = { class: "lupa-toolbar-left" };
13863
- const _hoisted_2$m = { key: 1 };
13864
- const _hoisted_3$f = { key: 3 };
13865
- const _hoisted_4$a = { key: 5 };
13866
- const _hoisted_5$7 = { class: "lupa-toolbar-right" };
13867
- const _hoisted_6$5 = { key: 1 };
13868
- const _hoisted_7$3 = { key: 3 };
13864
+ const _hoisted_2$m = {
13865
+ key: 0,
13866
+ class: "lupa-toolbar-right-title"
13867
+ };
13868
+ const _hoisted_3$f = { key: 2 };
13869
+ const _hoisted_4$a = { key: 4 };
13870
+ const _hoisted_5$7 = { key: 6 };
13871
+ const _hoisted_6$5 = { class: "lupa-toolbar-right" };
13872
+ const _hoisted_7$3 = {
13873
+ key: 0,
13874
+ class: "lupa-toolbar-right-title"
13875
+ };
13876
+ const _hoisted_8 = { key: 2 };
13877
+ const _hoisted_9 = { key: 4 };
13869
13878
  const _sfc_main$w = /* @__PURE__ */ defineComponent({
13870
13879
  __name: "SearchResultsToolbar",
13871
13880
  props: {
@@ -13946,6 +13955,14 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
13946
13955
  const defaultLabel = (_c = (_b = (_a = paginationOptions.value) == null ? void 0 : _a.labels) == null ? void 0 : _b.itemCount) != null ? _c : "";
13947
13956
  return !hasAnyFilter.value || !showFilterClear.value ? defaultLabel : (_f = (_e = (_d = paginationOptions.value) == null ? void 0 : _d.labels) == null ? void 0 : _e.filteredItemCount) != null ? _f : defaultLabel;
13948
13957
  });
13958
+ const toolbarLeftLabel = computed(() => {
13959
+ var _a;
13960
+ return (_a = optionsValue.value.labels.toolbarLeftLabel) != null ? _a : "";
13961
+ });
13962
+ const toolbarRightLabel = computed(() => {
13963
+ var _a;
13964
+ return (_a = optionsValue.value.labels.toolbarRightLabel) != null ? _a : "";
13965
+ });
13949
13966
  const showMobileFilterCount = computed(() => {
13950
13967
  var _a, _b, _c;
13951
13968
  return Boolean((_c = (_b = (_a = optionsValue.value.filters) == null ? void 0 : _a.currentFilters) == null ? void 0 : _b.mobileSidebar) == null ? void 0 : _c.showFilterCount);
@@ -13966,35 +13983,37 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
13966
13983
  class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
13967
13984
  }, [
13968
13985
  createBaseVNode("div", _hoisted_1$t, [
13969
- showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$B, { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_2$m)),
13986
+ toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$m, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
13987
+ showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$B, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$f)),
13970
13988
  showItemSummary.value ? (openBlock(), createBlock(_sfc_main$T, {
13971
- key: 2,
13989
+ key: 3,
13972
13990
  label: searchSummaryLabel.value,
13973
13991
  clearable: unref(hasAnyFilter) && showFilterClear.value,
13974
13992
  onClear: handleClearAll
13975
- }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_3$f)),
13993
+ }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$a)),
13976
13994
  displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$z, {
13977
- key: 4,
13995
+ key: 5,
13978
13996
  options: paginationOptions.value.pageSelect,
13979
13997
  "last-page-label": paginationOptions.value.labels.showMore,
13980
13998
  "first-page-label": paginationOptions.value.labels.showLess
13981
- }, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_4$a))
13999
+ }, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_5$7))
13982
14000
  ]),
13983
- createBaseVNode("div", _hoisted_5$7, [
14001
+ createBaseVNode("div", _hoisted_6$5, [
14002
+ toolbarRightLabel.value ? (openBlock(), createElementBlock("div", _hoisted_7$3, toDisplayString(toolbarRightLabel.value), 1)) : createCommentVNode("", true),
13984
14003
  createVNode(_sfc_main$A, {
13985
14004
  label: optionsValue.value.labels.mobileFilterButton,
13986
14005
  "show-filter-count": showMobileFilterCount.value
13987
14006
  }, null, 8, ["label", "show-filter-count"]),
13988
14007
  paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$y, {
13989
- key: 0,
14008
+ key: 1,
13990
14009
  options: paginationOptions.value.pageSize,
13991
14010
  label: paginationOptions.value.labels.pageSize
13992
- }, null, 8, ["options", "label"])) : (openBlock(), createElementBlock("div", _hoisted_6$5)),
14011
+ }, null, 8, ["options", "label"])) : (openBlock(), createElementBlock("div", _hoisted_8)),
13993
14012
  sortOptions.value ? (openBlock(), createBlock(_sfc_main$x, {
13994
- key: 2,
14013
+ key: 3,
13995
14014
  options: sortOptions.value,
13996
14015
  callbacks: callbacks.value
13997
- }, null, 8, ["options", "callbacks"])) : (openBlock(), createElementBlock("div", _hoisted_7$3))
14016
+ }, null, 8, ["options", "callbacks"])) : (openBlock(), createElementBlock("div", _hoisted_9))
13998
14017
  ])
13999
14018
  ], 2);
14000
14019
  };
@@ -15365,12 +15384,12 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
15365
15384
  queryKey,
15366
15385
  results
15367
15386
  }) {
15368
- var _a, _b, _c, _d;
15387
+ var _a, _b, _c, _d, _e, _f;
15369
15388
  trackingStore.trackResults({ queryKey, results });
15370
15389
  const hasResults2 = Boolean(
15371
- results.total > 0 || ((_a = results.similarQueries) == null ? void 0 : _a.length) || ((_b = results.didYouMean) == null ? void 0 : _b.options)
15390
+ results.total > 0 || ((_a = results.similarQueries) == null ? void 0 : _a.length) || ((_b = results.didYouMean) == null ? void 0 : _b.options) || ((_d = (_c = results.similarResults) == null ? void 0 : _c.items) == null ? void 0 : _d.length)
15372
15391
  );
15373
- (_d = (_c = props.options.callbacks) == null ? void 0 : _c.onSearchResults) == null ? void 0 : _d.call(_c, { queryKey, hasResults: hasResults2, params: paramStore.params });
15392
+ (_f = (_e = props.options.callbacks) == null ? void 0 : _e.onSearchResults) == null ? void 0 : _f.call(_e, { queryKey, hasResults: hasResults2, params: paramStore.params });
15374
15393
  if (!hasResults2) {
15375
15394
  return;
15376
15395
  }
@@ -8961,14 +8961,15 @@ const useDynamicDataStore = defineStore("dynamicData", () => {
8961
8961
  result,
8962
8962
  mode
8963
8963
  }) {
8964
- var _a, _b, _c, _d, _e, _f;
8964
+ var _a, _b, _c, _d, _e, _f, _g, _h;
8965
8965
  const enabledForMode = mode === "searchBox" ? isDynamicDataEnabledForSearchBox.value : isDynamicDataEnabledForSearchResults.value;
8966
8966
  if (!result || !enabledForMode) {
8967
8967
  return;
8968
8968
  }
8969
8969
  const resultIds = (_b = (_a = result == null ? void 0 : result.items) == null ? void 0 : _a.map((i) => i.id)) != null ? _b : [];
8970
8970
  const similarQueryResultIds = (_e = (_d = (_c = result.similarQueries) == null ? void 0 : _c.map((q) => q.items.map((i) => i.id))) == null ? void 0 : _d.flat()) != null ? _e : [];
8971
- let requestedIds = [...resultIds, ...similarQueryResultIds];
8971
+ const similarResultIds = (_g = (_f = result.similarResults) == null ? void 0 : _f.items.map((i) => i.id)) != null ? _g : [];
8972
+ let requestedIds = [...resultIds, ...similarQueryResultIds, ...similarResultIds];
8972
8973
  if (isCacheEnabled.value) {
8973
8974
  requestedIds = requestedIds.filter((i) => !dynamicDataIdMap.value[`${i}`]);
8974
8975
  }
@@ -8982,7 +8983,7 @@ const useDynamicDataStore = defineStore("dynamicData", () => {
8982
8983
  if (!(dynamicData == null ? void 0 : dynamicData.handler)) {
8983
8984
  return {};
8984
8985
  }
8985
- const dynamicDataResult = (_f = yield dynamicData == null ? void 0 : dynamicData.handler(requestedIds)) != null ? _f : [];
8986
+ const dynamicDataResult = (_h = yield dynamicData == null ? void 0 : dynamicData.handler(requestedIds)) != null ? _h : [];
8986
8987
  const seed = {};
8987
8988
  const dynamicDataIdMapValue = dynamicDataResult.reduce(
8988
8989
  (a, c2) => __spreadProps2(__spreadValues2({}, a), { [`${c2.id}`]: c2 }),
@@ -11449,11 +11450,11 @@ const _hoisted_4$i = ["onClick"];
11449
11450
  const _hoisted_5$c = { class: "lupa-term-checkbox-wrapper" };
11450
11451
  const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
11451
11452
  const _hoisted_7$6 = { class: "lupa-term-label" };
11452
- const _hoisted_8$1 = {
11453
+ const _hoisted_8$2 = {
11453
11454
  key: 0,
11454
11455
  class: "lupa-term-count"
11455
11456
  };
11456
- const _hoisted_9$1 = { key: 0 };
11457
+ const _hoisted_9$2 = { key: 0 };
11457
11458
  const _hoisted_10$1 = { key: 1 };
11458
11459
  const _sfc_main$N = /* @__PURE__ */ defineComponent({
11459
11460
  __name: "TermFacet",
@@ -11549,7 +11550,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
11549
11550
  ]),
11550
11551
  createBaseVNode("div", _hoisted_6$8, [
11551
11552
  createBaseVNode("span", _hoisted_7$6, toDisplayString(item.title), 1),
11552
- _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$1, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
11553
+ _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$2, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
11553
11554
  ])
11554
11555
  ], 10, _hoisted_4$i);
11555
11556
  }), 128))
@@ -11560,7 +11561,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
11560
11561
  "data-cy": "lupa-facet-term",
11561
11562
  onClick: toggleShowAll
11562
11563
  }, [
11563
- showAll.value ? (openBlock(), createElementBlock("span", _hoisted_9$1, toDisplayString(_ctx.options.labels.showLess), 1)) : (openBlock(), createElementBlock("span", _hoisted_10$1, toDisplayString(_ctx.options.labels.showAll), 1))
11564
+ showAll.value ? (openBlock(), createElementBlock("span", _hoisted_9$2, toDisplayString(_ctx.options.labels.showLess), 1)) : (openBlock(), createElementBlock("span", _hoisted_10$1, toDisplayString(_ctx.options.labels.showAll), 1))
11564
11565
  ])) : createCommentVNode("", true)
11565
11566
  ]);
11566
11567
  };
@@ -12558,8 +12559,8 @@ const _hoisted_4$h = {
12558
12559
  const _hoisted_5$b = { class: "lupa-stats-from" };
12559
12560
  const _hoisted_6$7 = ["max", "min", "pattern", "aria-label"];
12560
12561
  const _hoisted_7$5 = { key: 0 };
12561
- const _hoisted_8 = /* @__PURE__ */ createBaseVNode("div", { class: "lupa-stats-separator" }, null, -1);
12562
- const _hoisted_9 = {
12562
+ const _hoisted_8$1 = /* @__PURE__ */ createBaseVNode("div", { class: "lupa-stats-separator" }, null, -1);
12563
+ const _hoisted_9$1 = {
12563
12564
  key: 0,
12564
12565
  class: "lupa-stats-range-label"
12565
12566
  };
@@ -12767,9 +12768,9 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
12767
12768
  isPrice.value ? (openBlock(), createElementBlock("span", _hoisted_7$5, toDisplayString(currency.value), 1)) : createCommentVNode("", true)
12768
12769
  ])
12769
12770
  ]),
12770
- _hoisted_8,
12771
+ _hoisted_8$1,
12771
12772
  createBaseVNode("div", null, [
12772
- rangeLabelTo.value ? (openBlock(), createElementBlock("div", _hoisted_9, toDisplayString(rangeLabelTo.value), 1)) : createCommentVNode("", true),
12773
+ rangeLabelTo.value ? (openBlock(), createElementBlock("div", _hoisted_9$1, toDisplayString(rangeLabelTo.value), 1)) : createCommentVNode("", true),
12773
12774
  createBaseVNode("div", _hoisted_10, [
12774
12775
  withDirectives(createBaseVNode("input", {
12775
12776
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => toValue.value = $event),
@@ -13858,12 +13859,20 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
13858
13859
  }
13859
13860
  });
13860
13861
  const _hoisted_1$t = { class: "lupa-toolbar-left" };
13861
- const _hoisted_2$m = { key: 1 };
13862
- const _hoisted_3$f = { key: 3 };
13863
- const _hoisted_4$a = { key: 5 };
13864
- const _hoisted_5$7 = { class: "lupa-toolbar-right" };
13865
- const _hoisted_6$5 = { key: 1 };
13866
- const _hoisted_7$3 = { key: 3 };
13862
+ const _hoisted_2$m = {
13863
+ key: 0,
13864
+ class: "lupa-toolbar-right-title"
13865
+ };
13866
+ const _hoisted_3$f = { key: 2 };
13867
+ const _hoisted_4$a = { key: 4 };
13868
+ const _hoisted_5$7 = { key: 6 };
13869
+ const _hoisted_6$5 = { class: "lupa-toolbar-right" };
13870
+ const _hoisted_7$3 = {
13871
+ key: 0,
13872
+ class: "lupa-toolbar-right-title"
13873
+ };
13874
+ const _hoisted_8 = { key: 2 };
13875
+ const _hoisted_9 = { key: 4 };
13867
13876
  const _sfc_main$w = /* @__PURE__ */ defineComponent({
13868
13877
  __name: "SearchResultsToolbar",
13869
13878
  props: {
@@ -13944,6 +13953,14 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
13944
13953
  const defaultLabel = (_c = (_b = (_a = paginationOptions.value) == null ? void 0 : _a.labels) == null ? void 0 : _b.itemCount) != null ? _c : "";
13945
13954
  return !hasAnyFilter.value || !showFilterClear.value ? defaultLabel : (_f = (_e = (_d = paginationOptions.value) == null ? void 0 : _d.labels) == null ? void 0 : _e.filteredItemCount) != null ? _f : defaultLabel;
13946
13955
  });
13956
+ const toolbarLeftLabel = computed(() => {
13957
+ var _a;
13958
+ return (_a = optionsValue.value.labels.toolbarLeftLabel) != null ? _a : "";
13959
+ });
13960
+ const toolbarRightLabel = computed(() => {
13961
+ var _a;
13962
+ return (_a = optionsValue.value.labels.toolbarRightLabel) != null ? _a : "";
13963
+ });
13947
13964
  const showMobileFilterCount = computed(() => {
13948
13965
  var _a, _b, _c;
13949
13966
  return Boolean((_c = (_b = (_a = optionsValue.value.filters) == null ? void 0 : _a.currentFilters) == null ? void 0 : _b.mobileSidebar) == null ? void 0 : _c.showFilterCount);
@@ -13964,35 +13981,37 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
13964
13981
  class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
13965
13982
  }, [
13966
13983
  createBaseVNode("div", _hoisted_1$t, [
13967
- showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$B, { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_2$m)),
13984
+ toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$m, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
13985
+ showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$B, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$f)),
13968
13986
  showItemSummary.value ? (openBlock(), createBlock(_sfc_main$T, {
13969
- key: 2,
13987
+ key: 3,
13970
13988
  label: searchSummaryLabel.value,
13971
13989
  clearable: unref(hasAnyFilter) && showFilterClear.value,
13972
13990
  onClear: handleClearAll
13973
- }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_3$f)),
13991
+ }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$a)),
13974
13992
  displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$z, {
13975
- key: 4,
13993
+ key: 5,
13976
13994
  options: paginationOptions.value.pageSelect,
13977
13995
  "last-page-label": paginationOptions.value.labels.showMore,
13978
13996
  "first-page-label": paginationOptions.value.labels.showLess
13979
- }, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_4$a))
13997
+ }, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_5$7))
13980
13998
  ]),
13981
- createBaseVNode("div", _hoisted_5$7, [
13999
+ createBaseVNode("div", _hoisted_6$5, [
14000
+ toolbarRightLabel.value ? (openBlock(), createElementBlock("div", _hoisted_7$3, toDisplayString(toolbarRightLabel.value), 1)) : createCommentVNode("", true),
13982
14001
  createVNode(_sfc_main$A, {
13983
14002
  label: optionsValue.value.labels.mobileFilterButton,
13984
14003
  "show-filter-count": showMobileFilterCount.value
13985
14004
  }, null, 8, ["label", "show-filter-count"]),
13986
14005
  paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$y, {
13987
- key: 0,
14006
+ key: 1,
13988
14007
  options: paginationOptions.value.pageSize,
13989
14008
  label: paginationOptions.value.labels.pageSize
13990
- }, null, 8, ["options", "label"])) : (openBlock(), createElementBlock("div", _hoisted_6$5)),
14009
+ }, null, 8, ["options", "label"])) : (openBlock(), createElementBlock("div", _hoisted_8)),
13991
14010
  sortOptions.value ? (openBlock(), createBlock(_sfc_main$x, {
13992
- key: 2,
14011
+ key: 3,
13993
14012
  options: sortOptions.value,
13994
14013
  callbacks: callbacks.value
13995
- }, null, 8, ["options", "callbacks"])) : (openBlock(), createElementBlock("div", _hoisted_7$3))
14014
+ }, null, 8, ["options", "callbacks"])) : (openBlock(), createElementBlock("div", _hoisted_9))
13996
14015
  ])
13997
14016
  ], 2);
13998
14017
  };
@@ -15363,12 +15382,12 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
15363
15382
  queryKey,
15364
15383
  results
15365
15384
  }) {
15366
- var _a, _b, _c, _d;
15385
+ var _a, _b, _c, _d, _e, _f;
15367
15386
  trackingStore.trackResults({ queryKey, results });
15368
15387
  const hasResults2 = Boolean(
15369
- results.total > 0 || ((_a = results.similarQueries) == null ? void 0 : _a.length) || ((_b = results.didYouMean) == null ? void 0 : _b.options)
15388
+ results.total > 0 || ((_a = results.similarQueries) == null ? void 0 : _a.length) || ((_b = results.didYouMean) == null ? void 0 : _b.options) || ((_d = (_c = results.similarResults) == null ? void 0 : _c.items) == null ? void 0 : _d.length)
15370
15389
  );
15371
- (_d = (_c = props.options.callbacks) == null ? void 0 : _c.onSearchResults) == null ? void 0 : _d.call(_c, { queryKey, hasResults: hasResults2, params: paramStore.params });
15390
+ (_f = (_e = props.options.callbacks) == null ? void 0 : _e.onSearchResults) == null ? void 0 : _f.call(_e, { queryKey, hasResults: hasResults2, params: paramStore.params });
15372
15391
  if (!hasResults2) {
15373
15392
  return;
15374
15393
  }
@@ -8965,14 +8965,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8965
8965
  result,
8966
8966
  mode
8967
8967
  }) {
8968
- var _a, _b, _c, _d, _e, _f;
8968
+ var _a, _b, _c, _d, _e, _f, _g, _h;
8969
8969
  const enabledForMode = mode === "searchBox" ? isDynamicDataEnabledForSearchBox.value : isDynamicDataEnabledForSearchResults.value;
8970
8970
  if (!result || !enabledForMode) {
8971
8971
  return;
8972
8972
  }
8973
8973
  const resultIds = (_b = (_a = result == null ? void 0 : result.items) == null ? void 0 : _a.map((i) => i.id)) != null ? _b : [];
8974
8974
  const similarQueryResultIds = (_e = (_d = (_c = result.similarQueries) == null ? void 0 : _c.map((q) => q.items.map((i) => i.id))) == null ? void 0 : _d.flat()) != null ? _e : [];
8975
- let requestedIds = [...resultIds, ...similarQueryResultIds];
8975
+ const similarResultIds = (_g = (_f = result.similarResults) == null ? void 0 : _f.items.map((i) => i.id)) != null ? _g : [];
8976
+ let requestedIds = [...resultIds, ...similarQueryResultIds, ...similarResultIds];
8976
8977
  if (isCacheEnabled.value) {
8977
8978
  requestedIds = requestedIds.filter((i) => !dynamicDataIdMap.value[`${i}`]);
8978
8979
  }
@@ -8986,7 +8987,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8986
8987
  if (!(dynamicData == null ? void 0 : dynamicData.handler)) {
8987
8988
  return {};
8988
8989
  }
8989
- const dynamicDataResult = (_f = yield dynamicData == null ? void 0 : dynamicData.handler(requestedIds)) != null ? _f : [];
8990
+ const dynamicDataResult = (_h = yield dynamicData == null ? void 0 : dynamicData.handler(requestedIds)) != null ? _h : [];
8990
8991
  const seed = {};
8991
8992
  const dynamicDataIdMapValue = dynamicDataResult.reduce(
8992
8993
  (a, c2) => __spreadProps2(__spreadValues2({}, a), { [`${c2.id}`]: c2 }),
@@ -11453,11 +11454,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11453
11454
  const _hoisted_5$c = { class: "lupa-term-checkbox-wrapper" };
11454
11455
  const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
11455
11456
  const _hoisted_7$6 = { class: "lupa-term-label" };
11456
- const _hoisted_8$1 = {
11457
+ const _hoisted_8$2 = {
11457
11458
  key: 0,
11458
11459
  class: "lupa-term-count"
11459
11460
  };
11460
- const _hoisted_9$1 = { key: 0 };
11461
+ const _hoisted_9$2 = { key: 0 };
11461
11462
  const _hoisted_10$1 = { key: 1 };
11462
11463
  const _sfc_main$N = /* @__PURE__ */ defineComponent({
11463
11464
  __name: "TermFacet",
@@ -11553,7 +11554,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11553
11554
  ]),
11554
11555
  createBaseVNode("div", _hoisted_6$8, [
11555
11556
  createBaseVNode("span", _hoisted_7$6, toDisplayString(item.title), 1),
11556
- _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$1, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
11557
+ _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$2, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
11557
11558
  ])
11558
11559
  ], 10, _hoisted_4$i);
11559
11560
  }), 128))
@@ -11564,7 +11565,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11564
11565
  "data-cy": "lupa-facet-term",
11565
11566
  onClick: toggleShowAll
11566
11567
  }, [
11567
- showAll.value ? (openBlock(), createElementBlock("span", _hoisted_9$1, toDisplayString(_ctx.options.labels.showLess), 1)) : (openBlock(), createElementBlock("span", _hoisted_10$1, toDisplayString(_ctx.options.labels.showAll), 1))
11568
+ showAll.value ? (openBlock(), createElementBlock("span", _hoisted_9$2, toDisplayString(_ctx.options.labels.showLess), 1)) : (openBlock(), createElementBlock("span", _hoisted_10$1, toDisplayString(_ctx.options.labels.showAll), 1))
11568
11569
  ])) : createCommentVNode("", true)
11569
11570
  ]);
11570
11571
  };
@@ -12562,8 +12563,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12562
12563
  const _hoisted_5$b = { class: "lupa-stats-from" };
12563
12564
  const _hoisted_6$7 = ["max", "min", "pattern", "aria-label"];
12564
12565
  const _hoisted_7$5 = { key: 0 };
12565
- const _hoisted_8 = /* @__PURE__ */ createBaseVNode("div", { class: "lupa-stats-separator" }, null, -1);
12566
- const _hoisted_9 = {
12566
+ const _hoisted_8$1 = /* @__PURE__ */ createBaseVNode("div", { class: "lupa-stats-separator" }, null, -1);
12567
+ const _hoisted_9$1 = {
12567
12568
  key: 0,
12568
12569
  class: "lupa-stats-range-label"
12569
12570
  };
@@ -12771,9 +12772,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12771
12772
  isPrice.value ? (openBlock(), createElementBlock("span", _hoisted_7$5, toDisplayString(currency.value), 1)) : createCommentVNode("", true)
12772
12773
  ])
12773
12774
  ]),
12774
- _hoisted_8,
12775
+ _hoisted_8$1,
12775
12776
  createBaseVNode("div", null, [
12776
- rangeLabelTo.value ? (openBlock(), createElementBlock("div", _hoisted_9, toDisplayString(rangeLabelTo.value), 1)) : createCommentVNode("", true),
12777
+ rangeLabelTo.value ? (openBlock(), createElementBlock("div", _hoisted_9$1, toDisplayString(rangeLabelTo.value), 1)) : createCommentVNode("", true),
12777
12778
  createBaseVNode("div", _hoisted_10, [
12778
12779
  withDirectives(createBaseVNode("input", {
12779
12780
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => toValue.value = $event),
@@ -13862,12 +13863,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13862
13863
  }
13863
13864
  });
13864
13865
  const _hoisted_1$t = { class: "lupa-toolbar-left" };
13865
- const _hoisted_2$m = { key: 1 };
13866
- const _hoisted_3$f = { key: 3 };
13867
- const _hoisted_4$a = { key: 5 };
13868
- const _hoisted_5$7 = { class: "lupa-toolbar-right" };
13869
- const _hoisted_6$5 = { key: 1 };
13870
- const _hoisted_7$3 = { key: 3 };
13866
+ const _hoisted_2$m = {
13867
+ key: 0,
13868
+ class: "lupa-toolbar-right-title"
13869
+ };
13870
+ const _hoisted_3$f = { key: 2 };
13871
+ const _hoisted_4$a = { key: 4 };
13872
+ const _hoisted_5$7 = { key: 6 };
13873
+ const _hoisted_6$5 = { class: "lupa-toolbar-right" };
13874
+ const _hoisted_7$3 = {
13875
+ key: 0,
13876
+ class: "lupa-toolbar-right-title"
13877
+ };
13878
+ const _hoisted_8 = { key: 2 };
13879
+ const _hoisted_9 = { key: 4 };
13871
13880
  const _sfc_main$w = /* @__PURE__ */ defineComponent({
13872
13881
  __name: "SearchResultsToolbar",
13873
13882
  props: {
@@ -13948,6 +13957,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13948
13957
  const defaultLabel = (_c = (_b = (_a = paginationOptions.value) == null ? void 0 : _a.labels) == null ? void 0 : _b.itemCount) != null ? _c : "";
13949
13958
  return !hasAnyFilter.value || !showFilterClear.value ? defaultLabel : (_f = (_e = (_d = paginationOptions.value) == null ? void 0 : _d.labels) == null ? void 0 : _e.filteredItemCount) != null ? _f : defaultLabel;
13950
13959
  });
13960
+ const toolbarLeftLabel = computed(() => {
13961
+ var _a;
13962
+ return (_a = optionsValue.value.labels.toolbarLeftLabel) != null ? _a : "";
13963
+ });
13964
+ const toolbarRightLabel = computed(() => {
13965
+ var _a;
13966
+ return (_a = optionsValue.value.labels.toolbarRightLabel) != null ? _a : "";
13967
+ });
13951
13968
  const showMobileFilterCount = computed(() => {
13952
13969
  var _a, _b, _c;
13953
13970
  return Boolean((_c = (_b = (_a = optionsValue.value.filters) == null ? void 0 : _a.currentFilters) == null ? void 0 : _b.mobileSidebar) == null ? void 0 : _c.showFilterCount);
@@ -13968,35 +13985,37 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13968
13985
  class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
13969
13986
  }, [
13970
13987
  createBaseVNode("div", _hoisted_1$t, [
13971
- showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$B, { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_2$m)),
13988
+ toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$m, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
13989
+ showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$B, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$f)),
13972
13990
  showItemSummary.value ? (openBlock(), createBlock(_sfc_main$T, {
13973
- key: 2,
13991
+ key: 3,
13974
13992
  label: searchSummaryLabel.value,
13975
13993
  clearable: unref(hasAnyFilter) && showFilterClear.value,
13976
13994
  onClear: handleClearAll
13977
- }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_3$f)),
13995
+ }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$a)),
13978
13996
  displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$z, {
13979
- key: 4,
13997
+ key: 5,
13980
13998
  options: paginationOptions.value.pageSelect,
13981
13999
  "last-page-label": paginationOptions.value.labels.showMore,
13982
14000
  "first-page-label": paginationOptions.value.labels.showLess
13983
- }, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_4$a))
14001
+ }, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_5$7))
13984
14002
  ]),
13985
- createBaseVNode("div", _hoisted_5$7, [
14003
+ createBaseVNode("div", _hoisted_6$5, [
14004
+ toolbarRightLabel.value ? (openBlock(), createElementBlock("div", _hoisted_7$3, toDisplayString(toolbarRightLabel.value), 1)) : createCommentVNode("", true),
13986
14005
  createVNode(_sfc_main$A, {
13987
14006
  label: optionsValue.value.labels.mobileFilterButton,
13988
14007
  "show-filter-count": showMobileFilterCount.value
13989
14008
  }, null, 8, ["label", "show-filter-count"]),
13990
14009
  paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$y, {
13991
- key: 0,
14010
+ key: 1,
13992
14011
  options: paginationOptions.value.pageSize,
13993
14012
  label: paginationOptions.value.labels.pageSize
13994
- }, null, 8, ["options", "label"])) : (openBlock(), createElementBlock("div", _hoisted_6$5)),
14013
+ }, null, 8, ["options", "label"])) : (openBlock(), createElementBlock("div", _hoisted_8)),
13995
14014
  sortOptions.value ? (openBlock(), createBlock(_sfc_main$x, {
13996
- key: 2,
14015
+ key: 3,
13997
14016
  options: sortOptions.value,
13998
14017
  callbacks: callbacks.value
13999
- }, null, 8, ["options", "callbacks"])) : (openBlock(), createElementBlock("div", _hoisted_7$3))
14018
+ }, null, 8, ["options", "callbacks"])) : (openBlock(), createElementBlock("div", _hoisted_9))
14000
14019
  ])
14001
14020
  ], 2);
14002
14021
  };
@@ -15367,12 +15386,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
15367
15386
  queryKey,
15368
15387
  results
15369
15388
  }) {
15370
- var _a, _b, _c, _d;
15389
+ var _a, _b, _c, _d, _e, _f;
15371
15390
  trackingStore.trackResults({ queryKey, results });
15372
15391
  const hasResults2 = Boolean(
15373
- results.total > 0 || ((_a = results.similarQueries) == null ? void 0 : _a.length) || ((_b = results.didYouMean) == null ? void 0 : _b.options)
15392
+ results.total > 0 || ((_a = results.similarQueries) == null ? void 0 : _a.length) || ((_b = results.didYouMean) == null ? void 0 : _b.options) || ((_d = (_c = results.similarResults) == null ? void 0 : _c.items) == null ? void 0 : _d.length)
15374
15393
  );
15375
- (_d = (_c = props.options.callbacks) == null ? void 0 : _c.onSearchResults) == null ? void 0 : _d.call(_c, { queryKey, hasResults: hasResults2, params: paramStore.params });
15394
+ (_f = (_e = props.options.callbacks) == null ? void 0 : _e.onSearchResults) == null ? void 0 : _f.call(_e, { queryKey, hasResults: hasResults2, params: paramStore.params });
15376
15395
  if (!hasResults2) {
15377
15396
  return;
15378
15397
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlupa/client",
3
- "version": "1.11.3",
3
+ "version": "1.11.5",
4
4
  "main": "dist/lupaSearch.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/src/index.d.ts",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "devDependencies": {
22
22
  "@getlupa/client-sdk": "^1.3.4",
23
- "@getlupa/vue": "0.11.3",
23
+ "@getlupa/vue": "0.11.5",
24
24
  "@rushstack/eslint-patch": "^1.3.2",
25
25
  "@tsconfig/node18": "^2.0.1",
26
26
  "@types/jsdom": "^21.1.1",