@getlupa/client 1.17.14 → 1.18.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.
@@ -6953,6 +6953,15 @@ const refiners = (queryKey, query, environment, customBaseUrl) => __awaiter(void
6953
6953
  const errors = yield res.json();
6954
6954
  return { success: false, errors };
6955
6955
  });
6956
+ const relatedQueries = (queryKey, query, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
6957
+ const res = yield fetch(`${getApiUrl$1(environment, customBaseUrl)}query/${queryKey}/related`, Object.assign(Object.assign({}, defaultConfig), { body: JSON.stringify(query) }));
6958
+ if (res.status < 400) {
6959
+ const data = yield res.json();
6960
+ return Object.assign(Object.assign({}, data), { success: true });
6961
+ }
6962
+ const errors = yield res.json();
6963
+ return { success: false, errors };
6964
+ });
6956
6965
  const queryByIds = (queryKey, ids, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
6957
6966
  const idParam = ids.map((id) => `ids=${id}`).join("&");
6958
6967
  const res = yield fetch(`${getApiUrl$1(environment, customBaseUrl)}query/${queryKey}/ids?${idParam}`, Object.assign(Object.assign({}, defaultConfig), { method: "GET" }));
@@ -7034,6 +7043,9 @@ const LupaSearchSdk = {
7034
7043
  queryRefiners: (queryKey, publicQuery, options = null) => {
7035
7044
  return refiners(queryKey, publicQuery, (options === null || options === void 0 ? void 0 : options.environment) || "production", options === null || options === void 0 ? void 0 : options.customBaseUrl);
7036
7045
  },
7046
+ queryRelated: (queryKey, publicQuery, options = null) => {
7047
+ return relatedQueries(queryKey, publicQuery, (options === null || options === void 0 ? void 0 : options.environment) || "production", options === null || options === void 0 ? void 0 : options.customBaseUrl);
7048
+ },
7037
7049
  suggestions: (queryKey, suggestionQuery, options = null) => {
7038
7050
  if (options === null || options === void 0 ? void 0 : options.customUrl) {
7039
7051
  return suggestCustom(suggestionQuery, options);
@@ -13990,9 +14002,16 @@ const useParamsStore = defineStore("params", () => {
13990
14002
  value: Array.isArray(singleFacetParam.value) ? singleFacetParam.value[0] : singleFacetParam.value
13991
14003
  })
13992
14004
  ] : [];
14005
+ const limitParam = params.value[QUERY_PARAMS_PARSED.LIMIT] ? [
14006
+ {
14007
+ name: optionsStore.getQueryParamName(QUERY_PARAMS$1.LIMIT),
14008
+ value: limit.value.toString()
14009
+ }
14010
+ ] : [];
13993
14011
  appendParams({
13994
14012
  params: [
13995
14013
  { name: optionsStore.getQueryParamName(QUERY_PARAMS$1.QUERY), value: searchText },
14014
+ ...limitParam,
13996
14015
  ...facetParam
13997
14016
  ],
13998
14017
  paramsToRemove: "all",
@@ -14293,11 +14312,11 @@ const useSearchBoxStore = defineStore("searchBox", () => {
14293
14312
  resetHighlightIndex
14294
14313
  };
14295
14314
  });
14296
- const _hoisted_1$1i = { id: "lupa-search-box-input-container" };
14297
- const _hoisted_2$T = { class: "lupa-input-clear" };
14298
- const _hoisted_3$C = { id: "lupa-search-box-input" };
14299
- const _hoisted_4$u = ["value"];
14300
- const _hoisted_5$k = ["aria-label", "placeholder"];
14315
+ const _hoisted_1$1k = { id: "lupa-search-box-input-container" };
14316
+ const _hoisted_2$V = { class: "lupa-input-clear" };
14317
+ const _hoisted_3$E = { id: "lupa-search-box-input" };
14318
+ const _hoisted_4$v = ["value"];
14319
+ const _hoisted_5$l = ["aria-label", "placeholder"];
14301
14320
  const _hoisted_6$9 = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
14302
14321
  const _hoisted_7$7 = [
14303
14322
  _hoisted_6$9
@@ -14306,7 +14325,7 @@ const _hoisted_8$3 = {
14306
14325
  key: 0,
14307
14326
  class: "lupa-close-label"
14308
14327
  };
14309
- const _sfc_main$1v = /* @__PURE__ */ defineComponent({
14328
+ const _sfc_main$1x = /* @__PURE__ */ defineComponent({
14310
14329
  __name: "SearchBoxInput",
14311
14330
  props: {
14312
14331
  options: {},
@@ -14390,20 +14409,20 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
14390
14409
  };
14391
14410
  __expose({ focus });
14392
14411
  return (_ctx, _cache) => {
14393
- return openBlock(), createElementBlock("div", _hoisted_1$1i, [
14394
- createBaseVNode("div", _hoisted_2$T, [
14412
+ return openBlock(), createElementBlock("div", _hoisted_1$1k, [
14413
+ createBaseVNode("div", _hoisted_2$V, [
14395
14414
  createBaseVNode("div", {
14396
14415
  class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
14397
14416
  onClick: clear2
14398
14417
  }, null, 2)
14399
14418
  ]),
14400
- createBaseVNode("div", _hoisted_3$C, [
14419
+ createBaseVNode("div", _hoisted_3$E, [
14401
14420
  createBaseVNode("input", {
14402
14421
  class: "lupa-hint",
14403
14422
  "aria-hidden": "true",
14404
14423
  value: showHint.value ? suggestedValue.value.item.suggestion : "",
14405
14424
  disabled: ""
14406
- }, null, 8, _hoisted_4$u),
14425
+ }, null, 8, _hoisted_4$v),
14407
14426
  withDirectives(createBaseVNode("input", mergeProps({
14408
14427
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
14409
14428
  }, inputAttributes.value, {
@@ -14417,7 +14436,7 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
14417
14436
  placeholder: labels.value.placeholder,
14418
14437
  onInput: handleInput,
14419
14438
  onFocus: handleFocus
14420
- }), null, 16, _hoisted_5$k), [
14439
+ }), null, 16, _hoisted_5$l), [
14421
14440
  [vModelText, inputValue.value]
14422
14441
  ]),
14423
14442
  _ctx.options.showSubmitButton ? (openBlock(), createElementBlock("button", {
@@ -14436,7 +14455,7 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
14436
14455
  };
14437
14456
  }
14438
14457
  });
14439
- const _sfc_main$1u = /* @__PURE__ */ defineComponent({
14458
+ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
14440
14459
  __name: "SearchBoxMoreResults",
14441
14460
  props: {
14442
14461
  labels: {},
@@ -14473,9 +14492,9 @@ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
14473
14492
  };
14474
14493
  }
14475
14494
  });
14476
- const _hoisted_1$1h = { class: "lupa-search-box-history-item" };
14477
- const _hoisted_2$S = { class: "lupa-search-box-history-item-content" };
14478
- const _sfc_main$1t = /* @__PURE__ */ defineComponent({
14495
+ const _hoisted_1$1j = { class: "lupa-search-box-history-item" };
14496
+ const _hoisted_2$U = { class: "lupa-search-box-history-item-content" };
14497
+ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
14479
14498
  __name: "SearchBoxHistoryItem",
14480
14499
  props: {
14481
14500
  item: {},
@@ -14491,8 +14510,8 @@ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
14491
14510
  emit2("click", { query: props.item });
14492
14511
  };
14493
14512
  return (_ctx, _cache) => {
14494
- return openBlock(), createElementBlock("div", _hoisted_1$1h, [
14495
- createBaseVNode("div", _hoisted_2$S, [
14513
+ return openBlock(), createElementBlock("div", _hoisted_1$1j, [
14514
+ createBaseVNode("div", _hoisted_2$U, [
14496
14515
  createBaseVNode("div", {
14497
14516
  class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
14498
14517
  onClick: click2
@@ -14506,11 +14525,11 @@ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
14506
14525
  };
14507
14526
  }
14508
14527
  });
14509
- const _hoisted_1$1g = {
14528
+ const _hoisted_1$1i = {
14510
14529
  key: 0,
14511
14530
  class: "lupa-search-box-history-panel"
14512
14531
  };
14513
- const _sfc_main$1s = /* @__PURE__ */ defineComponent({
14532
+ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
14514
14533
  __name: "SearchBoxHistoryPanel",
14515
14534
  props: {
14516
14535
  options: {}
@@ -14560,9 +14579,9 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
14560
14579
  }
14561
14580
  };
14562
14581
  return (_ctx, _cache) => {
14563
- return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1g, [
14582
+ return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1i, [
14564
14583
  (openBlock(true), createElementBlock(Fragment, null, renderList(limitedHistory.value, (item, index) => {
14565
- return openBlock(), createBlock(_sfc_main$1t, {
14584
+ return openBlock(), createBlock(_sfc_main$1v, {
14566
14585
  key: item,
14567
14586
  item,
14568
14587
  highlighted: index === highlightIndex.value,
@@ -14578,15 +14597,15 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
14578
14597
  };
14579
14598
  }
14580
14599
  });
14581
- const _hoisted_1$1f = { class: "lupa-search-box-no-results" };
14582
- const _sfc_main$1r = /* @__PURE__ */ defineComponent({
14600
+ const _hoisted_1$1h = { class: "lupa-search-box-no-results" };
14601
+ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
14583
14602
  __name: "SearchBoxNoResults",
14584
14603
  props: {
14585
14604
  labels: {}
14586
14605
  },
14587
14606
  setup(__props) {
14588
14607
  return (_ctx, _cache) => {
14589
- return openBlock(), createElementBlock("p", _hoisted_1$1f, toDisplayString(_ctx.labels.noResults), 1);
14608
+ return openBlock(), createElementBlock("p", _hoisted_1$1h, toDisplayString(_ctx.labels.noResults), 1);
14590
14609
  };
14591
14610
  }
14592
14611
  });
@@ -14618,26 +14637,26 @@ const generateGridTemplate = (elements) => {
14618
14637
  }
14619
14638
  return gridTemplate.join(" ");
14620
14639
  };
14621
- const _hoisted_1$1e = ["innerHTML"];
14622
- const _hoisted_2$R = {
14640
+ const _hoisted_1$1g = ["innerHTML"];
14641
+ const _hoisted_2$T = {
14623
14642
  key: 1,
14624
14643
  "data-cy": "lupa-suggestion-value",
14625
14644
  class: "lupa-suggestion-value"
14626
14645
  };
14627
- const _hoisted_3$B = {
14646
+ const _hoisted_3$D = {
14628
14647
  key: 2,
14629
14648
  class: "lupa-suggestion-facet",
14630
14649
  "data-cy": "lupa-suggestion-facet"
14631
14650
  };
14632
- const _hoisted_4$t = {
14651
+ const _hoisted_4$u = {
14633
14652
  class: "lupa-suggestion-facet-label",
14634
14653
  "data-cy": "lupa-suggestion-facet-label"
14635
14654
  };
14636
- const _hoisted_5$j = {
14655
+ const _hoisted_5$k = {
14637
14656
  class: "lupa-suggestion-facet-value",
14638
14657
  "data-cy": "lupa-suggestion-facet-value"
14639
14658
  };
14640
- const _sfc_main$1q = /* @__PURE__ */ defineComponent({
14659
+ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
14641
14660
  __name: "SearchBoxSuggestion",
14642
14661
  props: {
14643
14662
  suggestion: {},
@@ -14673,20 +14692,20 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
14673
14692
  class: "lupa-suggestion-value",
14674
14693
  "data-cy": "lupa-suggestion-value",
14675
14694
  innerHTML: _ctx.suggestion.displayHighlight
14676
- }, null, 8, _hoisted_1$1e)) : (openBlock(), createElementBlock("div", _hoisted_2$R, toDisplayString(_ctx.suggestion.display), 1)),
14677
- _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$B, [
14678
- createBaseVNode("span", _hoisted_4$t, toDisplayString(facetLabel.value), 1),
14679
- createBaseVNode("span", _hoisted_5$j, toDisplayString(_ctx.suggestion.facet.title), 1)
14695
+ }, null, 8, _hoisted_1$1g)) : (openBlock(), createElementBlock("div", _hoisted_2$T, toDisplayString(_ctx.suggestion.display), 1)),
14696
+ _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$D, [
14697
+ createBaseVNode("span", _hoisted_4$u, toDisplayString(facetLabel.value), 1),
14698
+ createBaseVNode("span", _hoisted_5$k, toDisplayString(_ctx.suggestion.facet.title), 1)
14680
14699
  ])) : createCommentVNode("", true)
14681
14700
  ]);
14682
14701
  };
14683
14702
  }
14684
14703
  });
14685
- const _hoisted_1$1d = {
14704
+ const _hoisted_1$1f = {
14686
14705
  id: "lupa-search-box-suggestions",
14687
14706
  "data-cy": "lupa-search-box-suggestions"
14688
14707
  };
14689
- const _sfc_main$1p = /* @__PURE__ */ defineComponent({
14708
+ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
14690
14709
  __name: "SearchBoxSuggestions",
14691
14710
  props: {
14692
14711
  items: {},
@@ -14746,9 +14765,9 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
14746
14765
  });
14747
14766
  });
14748
14767
  return (_ctx, _cache) => {
14749
- return openBlock(), createElementBlock("div", _hoisted_1$1d, [
14768
+ return openBlock(), createElementBlock("div", _hoisted_1$1f, [
14750
14769
  (openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
14751
- return openBlock(), createBlock(_sfc_main$1q, {
14770
+ return openBlock(), createBlock(_sfc_main$1s, {
14752
14771
  key: getSuggestionKey(item),
14753
14772
  class: normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
14754
14773
  suggestion: item,
@@ -14776,7 +14795,7 @@ const debounce$1 = (func, timeout) => {
14776
14795
  }, timeout);
14777
14796
  };
14778
14797
  };
14779
- const _sfc_main$1o = /* @__PURE__ */ defineComponent({
14798
+ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
14780
14799
  __name: "SearchBoxSuggestionsWrapper",
14781
14800
  props: {
14782
14801
  panel: {},
@@ -14818,7 +14837,7 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
14818
14837
  const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
14819
14838
  watch(() => props.panel.limit, getSuggestionsDebounced);
14820
14839
  return (_ctx, _cache) => {
14821
- return openBlock(), createBlock(_sfc_main$1p, {
14840
+ return openBlock(), createBlock(_sfc_main$1r, {
14822
14841
  items: searchResult.value,
14823
14842
  highlight: _ctx.panel.highlight,
14824
14843
  queryKey: _ctx.panel.queryKey,
@@ -23872,9 +23891,9 @@ const replaceImageWithPlaceholder = (e2, placeholder) => {
23872
23891
  targetImage.src = placeholder;
23873
23892
  }
23874
23893
  };
23875
- const _hoisted_1$1c = ["src"];
23876
- const _hoisted_2$Q = ["src"];
23877
- const _sfc_main$1n = /* @__PURE__ */ defineComponent({
23894
+ const _hoisted_1$1e = ["src"];
23895
+ const _hoisted_2$S = ["src"];
23896
+ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
23878
23897
  __name: "ProductImage",
23879
23898
  props: {
23880
23899
  item: {},
@@ -24016,7 +24035,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
24016
24035
  }, { alt: imageAlt.value ? imageAlt.value : void 0 }, {
24017
24036
  onError: replaceWithPlaceholder,
24018
24037
  key: finalUrl.value
24019
- }), null, 16, _hoisted_1$1c))
24038
+ }), null, 16, _hoisted_1$1e))
24020
24039
  ]),
24021
24040
  _: 1
24022
24041
  })) : (openBlock(), createElementBlock("img", mergeProps({
@@ -24024,12 +24043,12 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
24024
24043
  class: ["lupa-images-main-image", { [_ctx.imageClass]: true }],
24025
24044
  style: styleOverride.value,
24026
24045
  src: finalMainImageUrl.value
24027
- }, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$Q))
24046
+ }, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$S))
24028
24047
  ], 38);
24029
24048
  };
24030
24049
  }
24031
24050
  });
24032
- const _sfc_main$1m = /* @__PURE__ */ defineComponent({
24051
+ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
24033
24052
  __name: "SearchBoxProductImage",
24034
24053
  props: {
24035
24054
  item: {},
@@ -24037,7 +24056,7 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
24037
24056
  },
24038
24057
  setup(__props) {
24039
24058
  return (_ctx, _cache) => {
24040
- return openBlock(), createBlock(_sfc_main$1n, {
24059
+ return openBlock(), createBlock(_sfc_main$1p, {
24041
24060
  item: _ctx.item,
24042
24061
  options: _ctx.options,
24043
24062
  "wrapper-class": "lupa-search-box-image-wrapper",
@@ -24046,12 +24065,12 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
24046
24065
  };
24047
24066
  }
24048
24067
  });
24049
- const _hoisted_1$1b = ["innerHTML"];
24050
- const _hoisted_2$P = {
24068
+ const _hoisted_1$1d = ["innerHTML"];
24069
+ const _hoisted_2$R = {
24051
24070
  key: 1,
24052
24071
  class: "lupa-search-box-product-title"
24053
24072
  };
24054
- const _sfc_main$1l = /* @__PURE__ */ defineComponent({
24073
+ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
24055
24074
  __name: "SearchBoxProductTitle",
24056
24075
  props: {
24057
24076
  item: {},
@@ -24074,18 +24093,18 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
24074
24093
  key: 0,
24075
24094
  class: "lupa-search-box-product-title",
24076
24095
  innerHTML: sanitizedTitle.value
24077
- }, null, 8, _hoisted_1$1b)) : (openBlock(), createElementBlock("div", _hoisted_2$P, [
24096
+ }, null, 8, _hoisted_1$1d)) : (openBlock(), createElementBlock("div", _hoisted_2$R, [
24078
24097
  createBaseVNode("strong", null, toDisplayString(title.value), 1)
24079
24098
  ]));
24080
24099
  };
24081
24100
  }
24082
24101
  });
24083
- const _hoisted_1$1a = ["innerHTML"];
24084
- const _hoisted_2$O = {
24102
+ const _hoisted_1$1c = ["innerHTML"];
24103
+ const _hoisted_2$Q = {
24085
24104
  key: 1,
24086
24105
  class: "lupa-search-box-product-description"
24087
24106
  };
24088
- const _sfc_main$1k = /* @__PURE__ */ defineComponent({
24107
+ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
24089
24108
  __name: "SearchBoxProductDescription",
24090
24109
  props: {
24091
24110
  item: {},
@@ -24108,12 +24127,12 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
24108
24127
  key: 0,
24109
24128
  class: "lupa-search-box-product-description",
24110
24129
  innerHTML: sanitizedDescription.value
24111
- }, null, 8, _hoisted_1$1a)) : (openBlock(), createElementBlock("div", _hoisted_2$O, toDisplayString(description.value), 1));
24130
+ }, null, 8, _hoisted_1$1c)) : (openBlock(), createElementBlock("div", _hoisted_2$Q, toDisplayString(description.value), 1));
24112
24131
  };
24113
24132
  }
24114
24133
  });
24115
- const _hoisted_1$19 = { class: "lupa-search-box-product-price" };
24116
- const _sfc_main$1j = /* @__PURE__ */ defineComponent({
24134
+ const _hoisted_1$1b = { class: "lupa-search-box-product-price" };
24135
+ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
24117
24136
  __name: "SearchBoxProductPrice",
24118
24137
  props: {
24119
24138
  item: {},
@@ -24132,13 +24151,13 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
24132
24151
  );
24133
24152
  });
24134
24153
  return (_ctx, _cache) => {
24135
- return openBlock(), createElementBlock("div", _hoisted_1$19, [
24154
+ return openBlock(), createElementBlock("div", _hoisted_1$1b, [
24136
24155
  createBaseVNode("strong", null, toDisplayString(price.value), 1)
24137
24156
  ]);
24138
24157
  };
24139
24158
  }
24140
24159
  });
24141
- const _sfc_main$1i = /* @__PURE__ */ defineComponent({
24160
+ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
24142
24161
  __name: "SearchBoxProductRegularPrice",
24143
24162
  props: {
24144
24163
  item: {},
@@ -24166,12 +24185,12 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
24166
24185
  };
24167
24186
  }
24168
24187
  });
24169
- const _hoisted_1$18 = ["innerHTML"];
24170
- const _hoisted_2$N = { key: 0 };
24171
- const _hoisted_3$A = { key: 1 };
24172
- const _hoisted_4$s = { class: "lupa-search-box-custom-label" };
24173
- const _hoisted_5$i = { class: "lupa-search-box-custom-text" };
24174
- const _sfc_main$1h = /* @__PURE__ */ defineComponent({
24188
+ const _hoisted_1$1a = ["innerHTML"];
24189
+ const _hoisted_2$P = { key: 0 };
24190
+ const _hoisted_3$C = { key: 1 };
24191
+ const _hoisted_4$t = { class: "lupa-search-box-custom-label" };
24192
+ const _hoisted_5$j = { class: "lupa-search-box-custom-text" };
24193
+ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
24175
24194
  __name: "SearchBoxProductCustom",
24176
24195
  props: {
24177
24196
  item: {},
@@ -24197,20 +24216,20 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
24197
24216
  key: 0,
24198
24217
  class: [className.value, "lupa-search-box-product-custom"],
24199
24218
  innerHTML: text.value
24200
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$18)) : (openBlock(), createElementBlock("div", mergeProps({
24219
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$1a)) : (openBlock(), createElementBlock("div", mergeProps({
24201
24220
  key: 1,
24202
24221
  class: [className.value, "lupa-search-box-product-custom"]
24203
24222
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
24204
- !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$N, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$A, [
24205
- createBaseVNode("div", _hoisted_4$s, toDisplayString(label.value), 1),
24206
- createBaseVNode("div", _hoisted_5$i, toDisplayString(text.value), 1)
24223
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$C, [
24224
+ createBaseVNode("div", _hoisted_4$t, toDisplayString(label.value), 1),
24225
+ createBaseVNode("div", _hoisted_5$j, toDisplayString(text.value), 1)
24207
24226
  ]))
24208
24227
  ], 16));
24209
24228
  };
24210
24229
  }
24211
24230
  });
24212
- const _hoisted_1$17 = ["innerHTML"];
24213
- const _sfc_main$1g = /* @__PURE__ */ defineComponent({
24231
+ const _hoisted_1$19 = ["innerHTML"];
24232
+ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
24214
24233
  __name: "SearchBoxProductCustomHtml",
24215
24234
  props: {
24216
24235
  item: {},
@@ -24235,7 +24254,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
24235
24254
  return openBlock(), createElementBlock("div", mergeProps({
24236
24255
  class: className.value,
24237
24256
  innerHTML: text.value
24238
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$17);
24257
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$19);
24239
24258
  };
24240
24259
  }
24241
24260
  });
@@ -24292,10 +24311,13 @@ const useSearchResultStore = defineStore("searchResult", () => {
24292
24311
  const loading = ref(false);
24293
24312
  const loadingFacets = ref(false);
24294
24313
  const loadingRefiners = ref(false);
24314
+ const loadingRelatedQueries = ref(false);
24295
24315
  const isMobileSidebarVisible = ref(false);
24296
24316
  const relatedCategoryChildren = ref([]);
24297
24317
  const lastRequestId = ref("");
24298
24318
  const searchRequestResults = ref({});
24319
+ const relatedQueriesResult = ref({});
24320
+ const relatedQueriesApiEnabled = ref(null);
24299
24321
  const lastResultsSource = ref(void 0);
24300
24322
  const optionsStore = useOptionsStore();
24301
24323
  const paramsStore = useParamsStore();
@@ -24449,6 +24471,9 @@ const useSearchResultStore = defineStore("searchResult", () => {
24449
24471
  const screenWidth = (_a = currentScreenWidth.value) != null ? _a : "xl";
24450
24472
  columnCount.value = grid.columns[screenWidth];
24451
24473
  };
24474
+ const setRelatedQueriesApiEnabled = (enabled) => {
24475
+ relatedQueriesApiEnabled.value = enabled;
24476
+ };
24452
24477
  const setAddToCartAmount = (newAddToCartAmount) => {
24453
24478
  if (!newAddToCartAmount) {
24454
24479
  return;
@@ -24479,6 +24504,27 @@ const useSearchResultStore = defineStore("searchResult", () => {
24479
24504
  const setRelatedCategoryChildren = (children) => {
24480
24505
  relatedCategoryChildren.value = [...children];
24481
24506
  };
24507
+ const queryRelatedQueries = (queryKey, publicQuery, result2, options) => __async2(void 0, null, function* () {
24508
+ var _a, _b;
24509
+ loadingRelatedQueries.value = true;
24510
+ const context = getLupaTrackingContext();
24511
+ const searchText = (_b = (_a = result2.suggestedSearchText) != null ? _a : result2.searchText) != null ? _b : "";
24512
+ const query = __spreadProps2(__spreadValues2(__spreadProps2(__spreadValues2({}, publicQuery), {
24513
+ searchText
24514
+ }), context), {
24515
+ modifiers: { facets: false, refiners: true }
24516
+ });
24517
+ LupaSearchSdk.queryRelated(queryKey, query, options).then((res) => {
24518
+ if (!res.success) {
24519
+ return;
24520
+ }
24521
+ relatedQueriesResult.value = res;
24522
+ }).catch((err) => {
24523
+ console.error(err);
24524
+ }).finally(() => {
24525
+ loadingRelatedQueries.value = false;
24526
+ });
24527
+ });
24482
24528
  return {
24483
24529
  isMobileSidebarVisible,
24484
24530
  searchResult,
@@ -24503,6 +24549,8 @@ const useSearchResultStore = defineStore("searchResult", () => {
24503
24549
  hideFiltersOnExactMatchForKeys,
24504
24550
  relatedCategoryChildren,
24505
24551
  searchRequestResults,
24552
+ relatedQueriesResult,
24553
+ relatedQueriesApiEnabled,
24506
24554
  lastResultsSource,
24507
24555
  setSidebarState,
24508
24556
  queryFacet,
@@ -24515,15 +24563,17 @@ const useSearchResultStore = defineStore("searchResult", () => {
24515
24563
  setLoading,
24516
24564
  clearSearchResult,
24517
24565
  filterVisibleFilterValues,
24518
- setRelatedCategoryChildren
24566
+ setRelatedCategoryChildren,
24567
+ queryRelatedQueries,
24568
+ setRelatedQueriesApiEnabled
24519
24569
  };
24520
24570
  });
24521
- const _hoisted_1$16 = { class: "lupa-search-box-add-to-cart-wrapper" };
24522
- const _hoisted_2$M = { class: "lupa-search-box-product-addtocart" };
24523
- const _hoisted_3$z = ["disabled"];
24524
- const _hoisted_4$r = ["href"];
24525
- const _hoisted_5$h = ["onClick", "disabled"];
24526
- const _sfc_main$1f = /* @__PURE__ */ defineComponent({
24571
+ const _hoisted_1$18 = { class: "lupa-search-box-add-to-cart-wrapper" };
24572
+ const _hoisted_2$O = { class: "lupa-search-box-product-addtocart" };
24573
+ const _hoisted_3$B = ["disabled"];
24574
+ const _hoisted_4$s = ["href"];
24575
+ const _hoisted_5$i = ["onClick", "disabled"];
24576
+ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
24527
24577
  __name: "SearchBoxProductAddToCart",
24528
24578
  props: {
24529
24579
  item: {},
@@ -24561,45 +24611,45 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
24561
24611
  return Boolean(props.link && props.options.link);
24562
24612
  });
24563
24613
  return (_ctx, _cache) => {
24564
- return openBlock(), createElementBlock("div", _hoisted_1$16, [
24565
- createBaseVNode("div", _hoisted_2$M, [
24614
+ return openBlock(), createElementBlock("div", _hoisted_1$18, [
24615
+ createBaseVNode("div", _hoisted_2$O, [
24566
24616
  hasLink.value ? (openBlock(), createElementBlock("button", mergeProps({
24567
24617
  key: 0,
24568
24618
  class: loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart",
24569
24619
  "data-cy": "lupa-add-to-cart",
24570
24620
  disabled: !inStockValue.value || loading.value
24571
24621
  }, _ctx.dynamicAttributes, { onClick: handleClick }), [
24572
- createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$r)
24573
- ], 16, _hoisted_3$z)) : (openBlock(), createElementBlock("button", mergeProps({
24622
+ createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$s)
24623
+ ], 16, _hoisted_3$B)) : (openBlock(), createElementBlock("button", mergeProps({
24574
24624
  key: 1,
24575
24625
  onClick: withModifiers(handleClick, ["stop", "prevent"]),
24576
24626
  class: loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart",
24577
24627
  "data-cy": "lupa-add-to-cart",
24578
24628
  type: "button",
24579
24629
  disabled: !inStockValue.value || loading.value
24580
- }, _ctx.dynamicAttributes), toDisplayString(label.value), 17, _hoisted_5$h))
24630
+ }, _ctx.dynamicAttributes), toDisplayString(label.value), 17, _hoisted_5$i))
24581
24631
  ])
24582
24632
  ]);
24583
24633
  };
24584
24634
  }
24585
24635
  });
24586
- const _hoisted_1$15 = {
24636
+ const _hoisted_1$17 = {
24587
24637
  key: 1,
24588
24638
  class: "lupa-search-box-element-badge-wrapper"
24589
24639
  };
24590
24640
  const __default__$4 = {
24591
24641
  components: {
24592
- SearchBoxProductImage: _sfc_main$1m,
24593
- SearchBoxProductTitle: _sfc_main$1l,
24594
- SearchBoxProductDescription: _sfc_main$1k,
24595
- SearchBoxProductPrice: _sfc_main$1j,
24596
- SearchBoxProductRegularPrice: _sfc_main$1i,
24597
- SearchBoxProductCustom: _sfc_main$1h,
24598
- SearchBoxProductCustomHtml: _sfc_main$1g,
24599
- SearchBoxProductAddToCart: _sfc_main$1f
24642
+ SearchBoxProductImage: _sfc_main$1o,
24643
+ SearchBoxProductTitle: _sfc_main$1n,
24644
+ SearchBoxProductDescription: _sfc_main$1m,
24645
+ SearchBoxProductPrice: _sfc_main$1l,
24646
+ SearchBoxProductRegularPrice: _sfc_main$1k,
24647
+ SearchBoxProductCustom: _sfc_main$1j,
24648
+ SearchBoxProductCustomHtml: _sfc_main$1i,
24649
+ SearchBoxProductAddToCart: _sfc_main$1h
24600
24650
  }
24601
24651
  };
24602
- const _sfc_main$1e = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
24652
+ const _sfc_main$1g = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
24603
24653
  __name: "SearchBoxProductElement",
24604
24654
  props: {
24605
24655
  item: {},
@@ -24671,7 +24721,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
24671
24721
  "dynamic-attributes": dynamicAttributes.value,
24672
24722
  link: _ctx.link
24673
24723
  }, renderDynamicAttributesOnParentElement.value && dynamicAttributes.value), null, 16, ["item", "options", "labels", "class", "inStock", "dynamic-attributes", "link"])) : createCommentVNode("", true)
24674
- ], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$15, [
24724
+ ], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$17, [
24675
24725
  displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), {
24676
24726
  key: 0,
24677
24727
  item: enhancedItem.value,
@@ -24686,14 +24736,14 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
24686
24736
  };
24687
24737
  }
24688
24738
  }));
24689
- const _hoisted_1$14 = { class: "lupa-badge-title" };
24690
- const _hoisted_2$L = ["src"];
24691
- const _hoisted_3$y = { key: 1 };
24692
- const _hoisted_4$q = {
24739
+ const _hoisted_1$16 = { class: "lupa-badge-title" };
24740
+ const _hoisted_2$N = ["src"];
24741
+ const _hoisted_3$A = { key: 1 };
24742
+ const _hoisted_4$r = {
24693
24743
  key: 0,
24694
24744
  class: "lupa-badge-full-text"
24695
24745
  };
24696
- const _sfc_main$1d = /* @__PURE__ */ defineComponent({
24746
+ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
24697
24747
  __name: "SearchResultGeneratedBadge",
24698
24748
  props: {
24699
24749
  options: {},
@@ -24726,20 +24776,20 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
24726
24776
  class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
24727
24777
  style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
24728
24778
  }, [
24729
- createBaseVNode("span", _hoisted_1$14, [
24779
+ createBaseVNode("span", _hoisted_1$16, [
24730
24780
  image.value ? (openBlock(), createElementBlock("img", {
24731
24781
  key: 0,
24732
24782
  src: image.value
24733
- }, null, 8, _hoisted_2$L)) : createCommentVNode("", true),
24734
- hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$y, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
24783
+ }, null, 8, _hoisted_2$N)) : createCommentVNode("", true),
24784
+ hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$A, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
24735
24785
  ]),
24736
- hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$q, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
24786
+ hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$r, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
24737
24787
  ], 6);
24738
24788
  };
24739
24789
  }
24740
24790
  });
24741
- const _hoisted_1$13 = { class: "lupa-generated-badges" };
24742
- const _sfc_main$1c = /* @__PURE__ */ defineComponent({
24791
+ const _hoisted_1$15 = { class: "lupa-generated-badges" };
24792
+ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
24743
24793
  __name: "SearchResultGeneratedBadges",
24744
24794
  props: {
24745
24795
  options: {}
@@ -24765,9 +24815,9 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
24765
24815
  })).filter((b) => Boolean(b.id));
24766
24816
  });
24767
24817
  return (_ctx, _cache) => {
24768
- return openBlock(), createElementBlock("div", _hoisted_1$13, [
24818
+ return openBlock(), createElementBlock("div", _hoisted_1$15, [
24769
24819
  (openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
24770
- return openBlock(), createBlock(_sfc_main$1d, {
24820
+ return openBlock(), createBlock(_sfc_main$1f, {
24771
24821
  key: badge.id,
24772
24822
  badge,
24773
24823
  options: _ctx.options
@@ -24777,8 +24827,8 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
24777
24827
  };
24778
24828
  }
24779
24829
  });
24780
- const _hoisted_1$12 = ["innerHTML"];
24781
- const _sfc_main$1b = /* @__PURE__ */ defineComponent({
24830
+ const _hoisted_1$14 = ["innerHTML"];
24831
+ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
24782
24832
  __name: "CustomBadge",
24783
24833
  props: {
24784
24834
  badge: {}
@@ -24799,12 +24849,12 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
24799
24849
  return openBlock(), createElementBlock("div", {
24800
24850
  class: normalizeClass(className.value),
24801
24851
  innerHTML: text.value
24802
- }, null, 10, _hoisted_1$12);
24852
+ }, null, 10, _hoisted_1$14);
24803
24853
  };
24804
24854
  }
24805
24855
  });
24806
- const _hoisted_1$11 = { class: "lupa-text-badges" };
24807
- const _sfc_main$1a = /* @__PURE__ */ defineComponent({
24856
+ const _hoisted_1$13 = { class: "lupa-text-badges" };
24857
+ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
24808
24858
  __name: "TextBadge",
24809
24859
  props: {
24810
24860
  badge: {}
@@ -24818,7 +24868,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
24818
24868
  return badges.value.slice(0, props.badge.maxItems);
24819
24869
  });
24820
24870
  return (_ctx, _cache) => {
24821
- return openBlock(), createElementBlock("div", _hoisted_1$11, [
24871
+ return openBlock(), createElementBlock("div", _hoisted_1$13, [
24822
24872
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
24823
24873
  return openBlock(), createElementBlock("div", {
24824
24874
  class: "lupa-badge lupa-text-badge",
@@ -24829,9 +24879,9 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
24829
24879
  };
24830
24880
  }
24831
24881
  });
24832
- const _hoisted_1$10 = { class: "lupa-image-badges" };
24833
- const _hoisted_2$K = ["src"];
24834
- const _sfc_main$19 = /* @__PURE__ */ defineComponent({
24882
+ const _hoisted_1$12 = { class: "lupa-image-badges" };
24883
+ const _hoisted_2$M = ["src"];
24884
+ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
24835
24885
  __name: "ImageBadge",
24836
24886
  props: {
24837
24887
  badge: {}
@@ -24851,7 +24901,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
24851
24901
  return `${props.badge.rootImageUrl}${src}`;
24852
24902
  };
24853
24903
  return (_ctx, _cache) => {
24854
- return openBlock(), createElementBlock("div", _hoisted_1$10, [
24904
+ return openBlock(), createElementBlock("div", _hoisted_1$12, [
24855
24905
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
24856
24906
  return openBlock(), createElementBlock("div", {
24857
24907
  class: "lupa-badge lupa-image-badge",
@@ -24859,14 +24909,14 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
24859
24909
  }, [
24860
24910
  createBaseVNode("img", {
24861
24911
  src: getImageUrl(item)
24862
- }, null, 8, _hoisted_2$K)
24912
+ }, null, 8, _hoisted_2$M)
24863
24913
  ]);
24864
24914
  }), 128))
24865
24915
  ]);
24866
24916
  };
24867
24917
  }
24868
24918
  });
24869
- const _sfc_main$18 = /* @__PURE__ */ defineComponent({
24919
+ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
24870
24920
  __name: "DiscountBadge",
24871
24921
  props: {
24872
24922
  badge: {}
@@ -24925,16 +24975,16 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
24925
24975
  };
24926
24976
  }
24927
24977
  });
24928
- const _hoisted_1$$ = { id: "lupa-search-results-badges" };
24978
+ const _hoisted_1$11 = { id: "lupa-search-results-badges" };
24929
24979
  const __default__$3 = {
24930
24980
  components: {
24931
- CustomBadge: _sfc_main$1b,
24932
- TextBadge: _sfc_main$1a,
24933
- ImageBadge: _sfc_main$19,
24934
- DiscountBadge: _sfc_main$18
24981
+ CustomBadge: _sfc_main$1d,
24982
+ TextBadge: _sfc_main$1c,
24983
+ ImageBadge: _sfc_main$1b,
24984
+ DiscountBadge: _sfc_main$1a
24935
24985
  }
24936
24986
  };
24937
- const _sfc_main$17 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
24987
+ const _sfc_main$19 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
24938
24988
  __name: "SearchResultsBadgeWrapper",
24939
24989
  props: {
24940
24990
  position: {},
@@ -24997,7 +25047,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
24997
25047
  }
24998
25048
  };
24999
25049
  return (_ctx, _cache) => {
25000
- return openBlock(), createElementBlock("div", _hoisted_1$$, [
25050
+ return openBlock(), createElementBlock("div", _hoisted_1$11, [
25001
25051
  createBaseVNode("div", {
25002
25052
  id: "lupa-badges",
25003
25053
  class: normalizeClass(anchorPosition.value)
@@ -25008,7 +25058,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
25008
25058
  badge
25009
25059
  }, null, 8, ["badge"]);
25010
25060
  }), 128)),
25011
- positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$1c, {
25061
+ positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$1e, {
25012
25062
  key: 0,
25013
25063
  options: _ctx.options
25014
25064
  }, null, 8, ["options"])) : createCommentVNode("", true)
@@ -25017,13 +25067,13 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
25017
25067
  };
25018
25068
  }
25019
25069
  }));
25020
- const _hoisted_1$_ = ["href"];
25021
- const _hoisted_2$J = { class: "lupa-search-box-product-details-section" };
25022
- const _hoisted_3$x = {
25070
+ const _hoisted_1$10 = ["href"];
25071
+ const _hoisted_2$L = { class: "lupa-search-box-product-details-section" };
25072
+ const _hoisted_3$z = {
25023
25073
  key: 0,
25024
25074
  class: "lupa-search-box-product-add-to-cart-section"
25025
25075
  };
25026
- const _sfc_main$16 = /* @__PURE__ */ defineComponent({
25076
+ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
25027
25077
  __name: "SearchBoxProduct",
25028
25078
  props: {
25029
25079
  item: {},
@@ -25109,7 +25159,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
25109
25159
  style: normalizeStyle(imageStyleOverride.value)
25110
25160
  }, [
25111
25161
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
25112
- return openBlock(), createBlock(_sfc_main$1e, {
25162
+ return openBlock(), createBlock(_sfc_main$1g, {
25113
25163
  class: "lupa-search-box-product-element",
25114
25164
  item: _ctx.item,
25115
25165
  element,
@@ -25119,10 +25169,10 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
25119
25169
  }, null, 8, ["item", "element", "labels", "link"]);
25120
25170
  }), 128))
25121
25171
  ], 4),
25122
- createBaseVNode("div", _hoisted_2$J, [
25172
+ createBaseVNode("div", _hoisted_2$L, [
25123
25173
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
25124
25174
  var _a;
25125
- return openBlock(), createBlock(_sfc_main$1e, {
25175
+ return openBlock(), createBlock(_sfc_main$1g, {
25126
25176
  key: element.key,
25127
25177
  class: "lupa-search-box-product-element",
25128
25178
  item: _ctx.item,
@@ -25133,7 +25183,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
25133
25183
  badgeOptions.value && ((_a = badgeOptions.value) == null ? void 0 : _a.anchorElementKey) === element.key ? {
25134
25184
  name: "badges",
25135
25185
  fn: withCtx(() => [
25136
- createVNode(_sfc_main$17, {
25186
+ createVNode(_sfc_main$19, {
25137
25187
  options: badgeOptions.value,
25138
25188
  position: "card"
25139
25189
  }, null, 8, ["options"])
@@ -25143,8 +25193,8 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
25143
25193
  ]), 1032, ["item", "element", "labels", "link"]);
25144
25194
  }), 128))
25145
25195
  ]),
25146
- addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$x, [
25147
- createVNode(_sfc_main$1e, {
25196
+ addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$z, [
25197
+ createVNode(_sfc_main$1g, {
25148
25198
  class: "lupa-search-box-product-element",
25149
25199
  item: _ctx.item,
25150
25200
  element: addToCartElement.value,
@@ -25153,7 +25203,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
25153
25203
  isInStock: isInStock.value
25154
25204
  }, null, 8, ["item", "element", "labels", "link", "isInStock"])
25155
25205
  ])) : createCommentVNode("", true)
25156
- ], 16, _hoisted_1$_);
25206
+ ], 16, _hoisted_1$10);
25157
25207
  };
25158
25208
  }
25159
25209
  });
@@ -25225,8 +25275,8 @@ const useTrackingStore = defineStore("tracking", () => {
25225
25275
  };
25226
25276
  return { trackSearch, trackResults, trackEvent, trackDelayedEvent };
25227
25277
  });
25228
- const _hoisted_1$Z = { id: "lupa-search-box-products" };
25229
- const _sfc_main$15 = /* @__PURE__ */ defineComponent({
25278
+ const _hoisted_1$$ = { id: "lupa-search-box-products" };
25279
+ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
25230
25280
  __name: "SearchBoxProducts",
25231
25281
  props: {
25232
25282
  items: {},
@@ -25297,7 +25347,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
25297
25347
  }
25298
25348
  };
25299
25349
  return (_ctx, _cache) => {
25300
- return openBlock(), createElementBlock("div", _hoisted_1$Z, [
25350
+ return openBlock(), createElementBlock("div", _hoisted_1$$, [
25301
25351
  _ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
25302
25352
  return renderSlot(_ctx.$slots, "productCard", {
25303
25353
  key: index,
@@ -25309,7 +25359,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
25309
25359
  itemClicked: handleProductClick
25310
25360
  });
25311
25361
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
25312
- return openBlock(), createBlock(_sfc_main$16, {
25362
+ return openBlock(), createBlock(_sfc_main$18, {
25313
25363
  key: index,
25314
25364
  item,
25315
25365
  panelOptions: _ctx.panelOptions,
@@ -25324,9 +25374,9 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
25324
25374
  };
25325
25375
  }
25326
25376
  });
25327
- const _hoisted_1$Y = { class: "lupa-search-box-documents-go-to-results-wrapper" };
25328
- const _hoisted_2$I = { key: 0 };
25329
- const _sfc_main$14 = /* @__PURE__ */ defineComponent({
25377
+ const _hoisted_1$_ = { class: "lupa-search-box-documents-go-to-results-wrapper" };
25378
+ const _hoisted_2$K = { key: 0 };
25379
+ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
25330
25380
  __name: "SearchBoxProductsGoToResultsButton",
25331
25381
  props: {
25332
25382
  options: {},
@@ -25356,13 +25406,13 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
25356
25406
  emit2("goToResults");
25357
25407
  };
25358
25408
  return (_ctx, _cache) => {
25359
- return openBlock(), createElementBlock("div", _hoisted_1$Y, [
25409
+ return openBlock(), createElementBlock("div", _hoisted_1$_, [
25360
25410
  createBaseVNode("button", {
25361
25411
  class: "lupa-search-box-documents-go-to-results-button",
25362
25412
  onClick: goToResults
25363
25413
  }, [
25364
25414
  createTextVNode(toDisplayString(goToResultsLabel.value) + " ", 1),
25365
- totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$I, " " + toDisplayString(totalCount.value), 1)) : createCommentVNode("", true)
25415
+ totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$K, " " + toDisplayString(totalCount.value), 1)) : createCommentVNode("", true)
25366
25416
  ])
25367
25417
  ]);
25368
25418
  };
@@ -25449,7 +25499,7 @@ const processExtractionObject = (value = {}) => {
25449
25499
  }
25450
25500
  return parsedObject;
25451
25501
  };
25452
- const _sfc_main$13 = /* @__PURE__ */ defineComponent({
25502
+ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
25453
25503
  __name: "SearchBoxProductsWrapper",
25454
25504
  props: {
25455
25505
  panel: {},
@@ -25518,7 +25568,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
25518
25568
  watch(() => props.panel.limit, getItemsDebounced);
25519
25569
  return (_ctx, _cache) => {
25520
25570
  var _a, _b;
25521
- return openBlock(), createBlock(_sfc_main$15, {
25571
+ return openBlock(), createBlock(_sfc_main$17, {
25522
25572
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
25523
25573
  panelOptions: _ctx.panel,
25524
25574
  labels: _ctx.labels,
@@ -25528,7 +25578,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
25528
25578
  default: withCtx(() => {
25529
25579
  var _a2;
25530
25580
  return [
25531
- showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main$14, {
25581
+ showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main$16, {
25532
25582
  key: 0,
25533
25583
  options: _ctx.searchBoxOptions,
25534
25584
  panel: _ctx.panel,
@@ -25549,7 +25599,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
25549
25599
  };
25550
25600
  }
25551
25601
  });
25552
- const _sfc_main$12 = /* @__PURE__ */ defineComponent({
25602
+ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
25553
25603
  __name: "SearchBoxRelatedSourceWrapper",
25554
25604
  props: {
25555
25605
  panel: {},
@@ -25621,7 +25671,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
25621
25671
  });
25622
25672
  return (_ctx, _cache) => {
25623
25673
  var _a, _b;
25624
- return openBlock(), createBlock(_sfc_main$15, {
25674
+ return openBlock(), createBlock(_sfc_main$17, {
25625
25675
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
25626
25676
  panelOptions: documentPanelOptions.value,
25627
25677
  labels: _ctx.labels,
@@ -25639,31 +25689,31 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
25639
25689
  };
25640
25690
  }
25641
25691
  });
25642
- const _hoisted_1$X = {
25692
+ const _hoisted_1$Z = {
25643
25693
  key: 0,
25644
25694
  id: "lupa-search-box-panel"
25645
25695
  };
25646
- const _hoisted_2$H = ["data-cy"];
25647
- const _hoisted_3$w = {
25696
+ const _hoisted_2$J = ["data-cy"];
25697
+ const _hoisted_3$y = {
25648
25698
  key: 0,
25649
25699
  class: "lupa-panel-title lupa-panel-title-top-results"
25650
25700
  };
25651
- const _hoisted_4$p = {
25701
+ const _hoisted_4$q = {
25652
25702
  key: 1,
25653
25703
  class: "lupa-panel-title"
25654
25704
  };
25655
- const _hoisted_5$g = {
25705
+ const _hoisted_5$h = {
25656
25706
  key: 1,
25657
25707
  id: "lupa-search-box-panel"
25658
25708
  };
25659
25709
  const __default__$2 = {
25660
25710
  components: {
25661
- SearchBoxSuggestionsWrapper: _sfc_main$1o,
25662
- SearchBoxProductsWrapper: _sfc_main$13,
25663
- SearchBoxRelatedSourceWrapper: _sfc_main$12
25711
+ SearchBoxSuggestionsWrapper: _sfc_main$1q,
25712
+ SearchBoxProductsWrapper: _sfc_main$15,
25713
+ SearchBoxRelatedSourceWrapper: _sfc_main$14
25664
25714
  }
25665
25715
  };
25666
- const _sfc_main$11 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
25716
+ const _sfc_main$13 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
25667
25717
  __name: "SearchBoxMainPanel",
25668
25718
  props: {
25669
25719
  options: {},
@@ -25818,7 +25868,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
25818
25868
  ref_key: "panelContainer",
25819
25869
  ref: panelContainer
25820
25870
  }, [
25821
- displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$X, [
25871
+ displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$Z, [
25822
25872
  labels.value.closePanel ? (openBlock(), createElementBlock("a", {
25823
25873
  key: 0,
25824
25874
  class: "lupa-search-box-close-panel",
@@ -25840,8 +25890,8 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
25840
25890
  style: normalizeStyle(panel.gridArea ? { gridArea: `${panel.gridArea}${index}` } : {}),
25841
25891
  "data-cy": "lupa-panel-" + panel.type + "-index"
25842
25892
  }, [
25843
- ((_a = panel.labels) == null ? void 0 : _a.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$w, toDisplayString((_b = panel.labels) == null ? void 0 : _b.topResultsTitle), 1)) : createCommentVNode("", true),
25844
- ((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (openBlock(), createElementBlock("div", _hoisted_4$p, toDisplayString((_d = panel.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
25893
+ ((_a = panel.labels) == null ? void 0 : _a.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$y, toDisplayString((_b = panel.labels) == null ? void 0 : _b.topResultsTitle), 1)) : createCommentVNode("", true),
25894
+ ((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (openBlock(), createElementBlock("div", _hoisted_4$q, toDisplayString((_d = panel.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
25845
25895
  panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
25846
25896
  key: 2,
25847
25897
  panel,
@@ -25863,21 +25913,21 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
25863
25913
  key: "0"
25864
25914
  } : void 0
25865
25915
  ]), 1064, ["panel", "search-box-options", "options", "debounce", "inputValue", "labels"])) : createCommentVNode("", true)
25866
- ], 14, _hoisted_2$H);
25916
+ ], 14, _hoisted_2$J);
25867
25917
  }), 128))
25868
25918
  ], 4),
25869
- !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1r, {
25919
+ !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1t, {
25870
25920
  key: 1,
25871
25921
  labels: labels.value
25872
25922
  }, null, 8, ["labels"])) : createCommentVNode("", true),
25873
- unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1u, {
25923
+ unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1w, {
25874
25924
  key: 2,
25875
25925
  labels: labels.value,
25876
25926
  options: _ctx.options,
25877
25927
  onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
25878
25928
  }, null, 8, ["labels", "options"])) : createCommentVNode("", true)
25879
- ])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$g, [
25880
- createVNode(_sfc_main$1s, {
25929
+ ])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$h, [
25930
+ createVNode(_sfc_main$1u, {
25881
25931
  options: _ctx.options.history,
25882
25932
  history: history.value,
25883
25933
  onGoToResults: handleGoToResults,
@@ -25902,8 +25952,8 @@ const unbindSearchTriggers = (triggers = [], event) => {
25902
25952
  const elements = getElements(triggers);
25903
25953
  elements.forEach((e2) => e2 == null ? void 0 : e2.removeEventListener(BIND_EVENT, event));
25904
25954
  };
25905
- const _hoisted_1$W = { class: "lupa-search-box-wrapper" };
25906
- const _sfc_main$10 = /* @__PURE__ */ defineComponent({
25955
+ const _hoisted_1$Y = { class: "lupa-search-box-wrapper" };
25956
+ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
25907
25957
  __name: "SearchBox",
25908
25958
  props: {
25909
25959
  options: {},
@@ -26224,8 +26274,8 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
26224
26274
  id: "lupa-search-box",
26225
26275
  class: normalizeClass({ "lupa-search-box-opened": opened.value })
26226
26276
  }, [
26227
- createBaseVNode("div", _hoisted_1$W, [
26228
- createVNode(_sfc_main$1v, {
26277
+ createBaseVNode("div", _hoisted_1$Y, [
26278
+ createVNode(_sfc_main$1x, {
26229
26279
  options: inputOptions.value,
26230
26280
  suggestedValue: suggestedValue.value,
26231
26281
  "can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
@@ -26238,7 +26288,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
26238
26288
  onSearch: handleSearch,
26239
26289
  onClose: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
26240
26290
  }, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
26241
- opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$11, {
26291
+ opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$13, {
26242
26292
  key: 0,
26243
26293
  options: panelOptions.value,
26244
26294
  inputValue: inputValue.value,
@@ -26327,20 +26377,20 @@ const getSearchParams = (url, params, baseUrl) => {
26327
26377
  }
26328
26378
  return searchParams;
26329
26379
  };
26330
- const _hoisted_1$V = {
26380
+ const _hoisted_1$X = {
26331
26381
  key: 0,
26332
26382
  id: "lupa-search-results-did-you-mean"
26333
26383
  };
26334
- const _hoisted_2$G = {
26384
+ const _hoisted_2$I = {
26335
26385
  key: 0,
26336
26386
  "data-cy": "suggested-search-text-label"
26337
26387
  };
26338
- const _hoisted_3$v = {
26388
+ const _hoisted_3$x = {
26339
26389
  key: 1,
26340
26390
  "data-cy": "did-you-mean-label"
26341
26391
  };
26342
- const _hoisted_4$o = { key: 1 };
26343
- const _sfc_main$$ = /* @__PURE__ */ defineComponent({
26392
+ const _hoisted_4$p = { key: 1 };
26393
+ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
26344
26394
  __name: "SearchResultsDidYouMean",
26345
26395
  props: {
26346
26396
  labels: {}
@@ -26372,8 +26422,8 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
26372
26422
  paramStore.goToResults({ searchText, facet });
26373
26423
  };
26374
26424
  return (_ctx, _cache) => {
26375
- return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$V, [
26376
- unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$G, [
26425
+ return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$X, [
26426
+ unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$I, [
26377
26427
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
26378
26428
  return openBlock(), createElementBlock("span", { key: index }, [
26379
26429
  createBaseVNode("span", {
@@ -26382,7 +26432,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
26382
26432
  ]);
26383
26433
  }), 128))
26384
26434
  ])) : createCommentVNode("", true),
26385
- didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$v, [
26435
+ didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$x, [
26386
26436
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.didYouMean.split(" "), (label, index) => {
26387
26437
  return openBlock(), createElementBlock("span", { key: index }, [
26388
26438
  label.includes("{1}") ? (openBlock(), createElementBlock("span", {
@@ -26390,7 +26440,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
26390
26440
  class: "lupa-did-you-mean lupa-highlighted-search-text",
26391
26441
  "data-cy": "did-you-mean-value",
26392
26442
  onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
26393
- }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$o, toDisplayString(label) + " ", 1))
26443
+ }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$p, toDisplayString(label) + " ", 1))
26394
26444
  ]);
26395
26445
  }), 128))
26396
26446
  ])) : createCommentVNode("", true)
@@ -26398,12 +26448,12 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
26398
26448
  };
26399
26449
  }
26400
26450
  });
26401
- const _hoisted_1$U = {
26451
+ const _hoisted_1$W = {
26402
26452
  key: 0,
26403
26453
  class: "lupa-search-results-summary"
26404
26454
  };
26405
- const _hoisted_2$F = ["innerHTML"];
26406
- const _sfc_main$_ = /* @__PURE__ */ defineComponent({
26455
+ const _hoisted_2$H = ["innerHTML"];
26456
+ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
26407
26457
  __name: "SearchResultsSummary",
26408
26458
  props: {
26409
26459
  label: {},
@@ -26418,8 +26468,8 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
26418
26468
  return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
26419
26469
  });
26420
26470
  return (_ctx, _cache) => {
26421
- return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$U, [
26422
- createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$F),
26471
+ return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$W, [
26472
+ createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$H),
26423
26473
  _ctx.clearable ? (openBlock(), createElementBlock("span", {
26424
26474
  key: 0,
26425
26475
  class: "lupa-filter-clear",
@@ -26430,19 +26480,19 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
26430
26480
  };
26431
26481
  }
26432
26482
  });
26433
- const _hoisted_1$T = {
26483
+ const _hoisted_1$V = {
26434
26484
  key: 0,
26435
26485
  class: "lupa-result-page-title",
26436
26486
  "data-cy": "lupa-result-page-title"
26437
26487
  };
26438
- const _hoisted_2$E = { key: 0 };
26439
- const _hoisted_3$u = {
26488
+ const _hoisted_2$G = { key: 0 };
26489
+ const _hoisted_3$w = {
26440
26490
  key: 1,
26441
26491
  class: "lupa-results-total-count"
26442
26492
  };
26443
- const _hoisted_4$n = { class: "lupa-results-total-count-number" };
26444
- const _hoisted_5$f = ["innerHTML"];
26445
- const _sfc_main$Z = /* @__PURE__ */ defineComponent({
26493
+ const _hoisted_4$o = { class: "lupa-results-total-count-number" };
26494
+ const _hoisted_5$g = ["innerHTML"];
26495
+ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
26446
26496
  __name: "SearchResultsTitle",
26447
26497
  props: {
26448
26498
  options: {},
@@ -26485,16 +26535,16 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
26485
26535
  });
26486
26536
  return (_ctx, _cache) => {
26487
26537
  return openBlock(), createElementBlock("div", null, [
26488
- showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$T, [
26538
+ showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$V, [
26489
26539
  createTextVNode(toDisplayString(searchResultsTitleTemplate.value || _ctx.options.labels.searchResults), 1),
26490
- queryText.value && !searchResultsTitleTemplate.value ? (openBlock(), createElementBlock("span", _hoisted_2$E, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
26491
- showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$u, [
26540
+ queryText.value && !searchResultsTitleTemplate.value ? (openBlock(), createElementBlock("span", _hoisted_2$G, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
26541
+ showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$w, [
26492
26542
  createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
26493
- createBaseVNode("span", _hoisted_4$n, toDisplayString(unref(totalItems)), 1),
26543
+ createBaseVNode("span", _hoisted_4$o, toDisplayString(unref(totalItems)), 1),
26494
26544
  createTextVNode(")")
26495
26545
  ])) : createCommentVNode("", true)
26496
26546
  ])) : createCommentVNode("", true),
26497
- _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$_, {
26547
+ _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$10, {
26498
26548
  key: 1,
26499
26549
  label: summaryLabel.value
26500
26550
  }, null, 8, ["label"])) : createCommentVNode("", true),
@@ -26502,20 +26552,20 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
26502
26552
  key: 2,
26503
26553
  class: "lupa-result-page-description-top",
26504
26554
  innerHTML: descriptionTop.value
26505
- }, null, 8, _hoisted_5$f)) : createCommentVNode("", true)
26555
+ }, null, 8, _hoisted_5$g)) : createCommentVNode("", true)
26506
26556
  ]);
26507
26557
  };
26508
26558
  }
26509
26559
  });
26510
- const _hoisted_1$S = {
26560
+ const _hoisted_1$U = {
26511
26561
  class: "lupa-current-filter-label",
26512
26562
  "data-cy": "lupa-current-filter-label"
26513
26563
  };
26514
- const _hoisted_2$D = {
26564
+ const _hoisted_2$F = {
26515
26565
  class: "lupa-current-filter-value",
26516
26566
  "data-cy": "lupa-current-filter-value"
26517
26567
  };
26518
- const _sfc_main$Y = /* @__PURE__ */ defineComponent({
26568
+ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
26519
26569
  __name: "CurrentFilterDisplay",
26520
26570
  props: {
26521
26571
  filter: {}
@@ -26537,23 +26587,23 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
26537
26587
  class: "lupa-current-filter-action",
26538
26588
  onClick: handleClick
26539
26589
  }, "⨉"),
26540
- createBaseVNode("div", _hoisted_1$S, toDisplayString(_ctx.filter.label) + ": ", 1),
26541
- createBaseVNode("div", _hoisted_2$D, toDisplayString(_ctx.filter.value), 1)
26590
+ createBaseVNode("div", _hoisted_1$U, toDisplayString(_ctx.filter.label) + ": ", 1),
26591
+ createBaseVNode("div", _hoisted_2$F, toDisplayString(_ctx.filter.value), 1)
26542
26592
  ], 2);
26543
26593
  };
26544
26594
  }
26545
26595
  });
26546
- const _hoisted_1$R = { class: "lupa-filter-title-text" };
26547
- const _hoisted_2$C = {
26596
+ const _hoisted_1$T = { class: "lupa-filter-title-text" };
26597
+ const _hoisted_2$E = {
26548
26598
  key: 0,
26549
26599
  class: "lupa-filter-count"
26550
26600
  };
26551
- const _hoisted_3$t = {
26601
+ const _hoisted_3$v = {
26552
26602
  key: 0,
26553
26603
  class: "filter-values"
26554
26604
  };
26555
- const _hoisted_4$m = { class: "lupa-current-filter-list" };
26556
- const _sfc_main$X = /* @__PURE__ */ defineComponent({
26605
+ const _hoisted_4$n = { class: "lupa-current-filter-list" };
26606
+ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
26557
26607
  __name: "CurrentFilters",
26558
26608
  props: {
26559
26609
  options: {},
@@ -26626,19 +26676,19 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
26626
26676
  class: "lupa-current-filter-title",
26627
26677
  onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
26628
26678
  }, [
26629
- createBaseVNode("div", _hoisted_1$R, [
26679
+ createBaseVNode("div", _hoisted_1$T, [
26630
26680
  createTextVNode(toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
26631
- _ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$C, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
26681
+ _ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$E, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
26632
26682
  ]),
26633
26683
  _ctx.expandable ? (openBlock(), createElementBlock("div", {
26634
26684
  key: 0,
26635
26685
  class: normalizeClass(["lupa-filter-title-caret", isOpen.value && "open"])
26636
26686
  }, null, 2)) : createCommentVNode("", true)
26637
26687
  ]),
26638
- !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$t, [
26639
- createBaseVNode("div", _hoisted_4$m, [
26688
+ !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$v, [
26689
+ createBaseVNode("div", _hoisted_4$n, [
26640
26690
  (openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter2) => {
26641
- return openBlock(), createBlock(_sfc_main$Y, {
26691
+ return openBlock(), createBlock(_sfc_main$_, {
26642
26692
  key: filter2.key + "_" + filter2.value,
26643
26693
  filter: filter2,
26644
26694
  onRemove: handleRemove
@@ -26655,8 +26705,8 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
26655
26705
  };
26656
26706
  }
26657
26707
  });
26658
- const _hoisted_1$Q = ["href"];
26659
- const _sfc_main$W = /* @__PURE__ */ defineComponent({
26708
+ const _hoisted_1$S = ["href"];
26709
+ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
26660
26710
  __name: "CategoryFilterItem",
26661
26711
  props: {
26662
26712
  options: {},
@@ -26693,20 +26743,20 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
26693
26743
  "data-cy": "lupa-child-category-item",
26694
26744
  href: urlLink.value,
26695
26745
  onClick: handleNavigation
26696
- }, toDisplayString(title.value), 9, _hoisted_1$Q)
26746
+ }, toDisplayString(title.value), 9, _hoisted_1$S)
26697
26747
  ], 2);
26698
26748
  };
26699
26749
  }
26700
26750
  });
26701
- const _hoisted_1$P = {
26751
+ const _hoisted_1$R = {
26702
26752
  class: "lupa-category-filter",
26703
26753
  "data-cy": "lupa-category-filter"
26704
26754
  };
26705
- const _hoisted_2$B = { class: "lupa-category-back" };
26706
- const _hoisted_3$s = ["href"];
26707
- const _hoisted_4$l = ["href"];
26708
- const _hoisted_5$e = { class: "lupa-child-category-list" };
26709
- const _sfc_main$V = /* @__PURE__ */ defineComponent({
26755
+ const _hoisted_2$D = { class: "lupa-category-back" };
26756
+ const _hoisted_3$u = ["href"];
26757
+ const _hoisted_4$m = ["href"];
26758
+ const _hoisted_5$f = { class: "lupa-child-category-list" };
26759
+ const _sfc_main$X = /* @__PURE__ */ defineComponent({
26710
26760
  __name: "CategoryFilter",
26711
26761
  props: {
26712
26762
  options: {}
@@ -26794,14 +26844,14 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
26794
26844
  };
26795
26845
  __expose({ fetch: fetch2 });
26796
26846
  return (_ctx, _cache) => {
26797
- return openBlock(), createElementBlock("div", _hoisted_1$P, [
26798
- createBaseVNode("div", _hoisted_2$B, [
26847
+ return openBlock(), createElementBlock("div", _hoisted_1$R, [
26848
+ createBaseVNode("div", _hoisted_2$D, [
26799
26849
  hasBackButton.value ? (openBlock(), createElementBlock("a", {
26800
26850
  key: 0,
26801
26851
  "data-cy": "lupa-category-back",
26802
26852
  href: backUrlLink.value,
26803
26853
  onClick: handleNavigationBack
26804
- }, toDisplayString(backTitle.value), 9, _hoisted_3$s)) : createCommentVNode("", true)
26854
+ }, toDisplayString(backTitle.value), 9, _hoisted_3$u)) : createCommentVNode("", true)
26805
26855
  ]),
26806
26856
  createBaseVNode("div", {
26807
26857
  class: normalizeClass(["lupa-current-category", { "lupa-current-category-active": isActive }])
@@ -26811,11 +26861,11 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
26811
26861
  href: parentUrlLink.value,
26812
26862
  class: normalizeClass({ "lupa-title-category": !hasBackButton.value }),
26813
26863
  onClick: handleNavigationParent
26814
- }, toDisplayString(parentTitle.value), 11, _hoisted_4$l)
26864
+ }, toDisplayString(parentTitle.value), 11, _hoisted_4$m)
26815
26865
  ], 2),
26816
- createBaseVNode("div", _hoisted_5$e, [
26866
+ createBaseVNode("div", _hoisted_5$f, [
26817
26867
  (openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
26818
- return openBlock(), createBlock(_sfc_main$W, {
26868
+ return openBlock(), createBlock(_sfc_main$Y, {
26819
26869
  key: getCategoryKey(child),
26820
26870
  item: child,
26821
26871
  options: _ctx.options
@@ -26826,14 +26876,14 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
26826
26876
  };
26827
26877
  }
26828
26878
  });
26829
- const _hoisted_1$O = {
26879
+ const _hoisted_1$Q = {
26830
26880
  class: "lupa-search-result-facet-term-values",
26831
26881
  "data-cy": "lupa-search-result-facet-term-values"
26832
26882
  };
26833
- const _hoisted_2$A = ["placeholder"];
26834
- const _hoisted_3$r = { class: "lupa-terms-list" };
26835
- const _hoisted_4$k = ["onClick"];
26836
- const _hoisted_5$d = { class: "lupa-term-checkbox-wrapper" };
26883
+ const _hoisted_2$C = ["placeholder"];
26884
+ const _hoisted_3$t = { class: "lupa-terms-list" };
26885
+ const _hoisted_4$l = ["onClick"];
26886
+ const _hoisted_5$e = { class: "lupa-term-checkbox-wrapper" };
26837
26887
  const _hoisted_6$8 = { class: "lupa-term-label" };
26838
26888
  const _hoisted_7$6 = {
26839
26889
  key: 0,
@@ -26841,7 +26891,7 @@ const _hoisted_7$6 = {
26841
26891
  };
26842
26892
  const _hoisted_8$2 = { key: 0 };
26843
26893
  const _hoisted_9$2 = { key: 1 };
26844
- const _sfc_main$U = /* @__PURE__ */ defineComponent({
26894
+ const _sfc_main$W = /* @__PURE__ */ defineComponent({
26845
26895
  __name: "TermFacet",
26846
26896
  props: {
26847
26897
  options: {},
@@ -26930,17 +26980,17 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
26930
26980
  }
26931
26981
  };
26932
26982
  return (_ctx, _cache) => {
26933
- return openBlock(), createElementBlock("div", _hoisted_1$O, [
26983
+ return openBlock(), createElementBlock("div", _hoisted_1$Q, [
26934
26984
  isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
26935
26985
  key: 0,
26936
26986
  class: "lupa-term-filter",
26937
26987
  "data-cy": "lupa-term-filter",
26938
26988
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
26939
26989
  placeholder: _ctx.options.labels.facetFilter
26940
- }, null, 8, _hoisted_2$A)), [
26990
+ }, null, 8, _hoisted_2$C)), [
26941
26991
  [vModelText, termFilter.value]
26942
26992
  ]) : createCommentVNode("", true),
26943
- createBaseVNode("div", _hoisted_3$r, [
26993
+ createBaseVNode("div", _hoisted_3$t, [
26944
26994
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
26945
26995
  return openBlock(), createElementBlock("div", {
26946
26996
  class: normalizeClass(["lupa-facet-term", { checked: isChecked(item) }]),
@@ -26948,7 +26998,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
26948
26998
  key: item.title,
26949
26999
  onClick: ($event) => handleFacetClick(item)
26950
27000
  }, [
26951
- createBaseVNode("div", _hoisted_5$d, [
27001
+ createBaseVNode("div", _hoisted_5$e, [
26952
27002
  createBaseVNode("span", {
26953
27003
  class: normalizeClass(["lupa-term-checkbox", { checked: isChecked(item) }])
26954
27004
  }, null, 2)
@@ -26959,7 +27009,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
26959
27009
  createBaseVNode("span", _hoisted_6$8, toDisplayString(getItemLabel(item)), 1),
26960
27010
  _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_7$6, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
26961
27011
  ], 2)
26962
- ], 10, _hoisted_4$k);
27012
+ ], 10, _hoisted_4$l);
26963
27013
  }), 128))
26964
27014
  ]),
26965
27015
  displayShowMore.value ? (openBlock(), createElementBlock("div", {
@@ -27950,20 +28000,20 @@ var m = { name: "Slider", emits: ["input", "update:modelValue", "start", "slide"
27950
28000
  m.render = function(e2, t, r, i, n, o) {
27951
28001
  return openBlock(), createElementBlock("div", mergeProps(e2.sliderProps, { ref: "slider" }), null, 16);
27952
28002
  }, m.__file = "src/Slider.vue";
27953
- const _hoisted_1$N = { class: "lupa-search-result-facet-stats-values" };
27954
- const _hoisted_2$z = {
28003
+ const _hoisted_1$P = { class: "lupa-search-result-facet-stats-values" };
28004
+ const _hoisted_2$B = {
27955
28005
  key: 0,
27956
28006
  class: "lupa-stats-facet-summary"
27957
28007
  };
27958
- const _hoisted_3$q = {
28008
+ const _hoisted_3$s = {
27959
28009
  key: 1,
27960
28010
  class: "lupa-stats-facet-summary-input"
27961
28011
  };
27962
- const _hoisted_4$j = {
28012
+ const _hoisted_4$k = {
27963
28013
  key: 0,
27964
28014
  class: "lupa-stats-range-label"
27965
28015
  };
27966
- const _hoisted_5$c = { class: "lupa-stats-from" };
28016
+ const _hoisted_5$d = { class: "lupa-stats-from" };
27967
28017
  const _hoisted_6$7 = ["max", "min", "pattern", "aria-label"];
27968
28018
  const _hoisted_7$5 = { key: 0 };
27969
28019
  const _hoisted_8$1 = /* @__PURE__ */ createBaseVNode("div", { class: "lupa-stats-separator" }, null, -1);
@@ -27978,7 +28028,7 @@ const _hoisted_13 = {
27978
28028
  key: 2,
27979
28029
  class: "lupa-stats-slider-wrapper"
27980
28030
  };
27981
- const _sfc_main$T = /* @__PURE__ */ defineComponent({
28031
+ const _sfc_main$V = /* @__PURE__ */ defineComponent({
27982
28032
  __name: "StatsFacet",
27983
28033
  props: {
27984
28034
  options: {},
@@ -28159,11 +28209,11 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
28159
28209
  innerSliderRange.value = value;
28160
28210
  };
28161
28211
  return (_ctx, _cache) => {
28162
- return openBlock(), createElementBlock("div", _hoisted_1$N, [
28163
- !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$z, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$q, [
28212
+ return openBlock(), createElementBlock("div", _hoisted_1$P, [
28213
+ !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$B, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$s, [
28164
28214
  createBaseVNode("div", null, [
28165
- rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$j, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
28166
- createBaseVNode("div", _hoisted_5$c, [
28215
+ rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$k, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
28216
+ createBaseVNode("div", _hoisted_5$d, [
28167
28217
  withDirectives(createBaseVNode("input", {
28168
28218
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
28169
28219
  type: "text",
@@ -28226,17 +28276,17 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
28226
28276
  };
28227
28277
  }
28228
28278
  });
28229
- const _hoisted_1$M = { class: "lupa-term-checkbox-wrapper" };
28230
- const _hoisted_2$y = { class: "lupa-term-label" };
28231
- const _hoisted_3$p = {
28279
+ const _hoisted_1$O = { class: "lupa-term-checkbox-wrapper" };
28280
+ const _hoisted_2$A = { class: "lupa-term-label" };
28281
+ const _hoisted_3$r = {
28232
28282
  key: 0,
28233
28283
  class: "lupa-term-count"
28234
28284
  };
28235
- const _hoisted_4$i = {
28285
+ const _hoisted_4$j = {
28236
28286
  key: 0,
28237
28287
  class: "lupa-facet-level"
28238
28288
  };
28239
- const _sfc_main$S = /* @__PURE__ */ defineComponent({
28289
+ const _sfc_main$U = /* @__PURE__ */ defineComponent({
28240
28290
  __name: "HierarchyFacetLevel",
28241
28291
  props: {
28242
28292
  options: {},
@@ -28289,7 +28339,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
28289
28339
  "data-cy": "lupa-facet-term",
28290
28340
  onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
28291
28341
  }, [
28292
- createBaseVNode("div", _hoisted_1$M, [
28342
+ createBaseVNode("div", _hoisted_1$O, [
28293
28343
  createBaseVNode("span", {
28294
28344
  class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
28295
28345
  }, null, 2)
@@ -28297,11 +28347,11 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
28297
28347
  createBaseVNode("div", {
28298
28348
  class: normalizeClass(["lupa-term-checkbox-label", { [getFacetValueClass(_ctx.item)]: true }])
28299
28349
  }, [
28300
- createBaseVNode("span", _hoisted_2$y, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
28301
- _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_3$p, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
28350
+ createBaseVNode("span", _hoisted_2$A, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
28351
+ _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_3$r, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
28302
28352
  ], 2)
28303
28353
  ]),
28304
- showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$i, [
28354
+ showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$j, [
28305
28355
  (openBlock(true), createElementBlock(Fragment, null, renderList(treeItem.value.children, (itemChild) => {
28306
28356
  return openBlock(), createBlock(_component_HierarchyFacetLevel, {
28307
28357
  key: itemChild.title,
@@ -28317,13 +28367,13 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
28317
28367
  };
28318
28368
  }
28319
28369
  });
28320
- const _hoisted_1$L = {
28370
+ const _hoisted_1$N = {
28321
28371
  class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
28322
28372
  "data-cy": "lupa-search-result-facet-term-values"
28323
28373
  };
28324
- const _hoisted_2$x = { key: 0 };
28325
- const _hoisted_3$o = ["placeholder"];
28326
- const _sfc_main$R = /* @__PURE__ */ defineComponent({
28374
+ const _hoisted_2$z = { key: 0 };
28375
+ const _hoisted_3$q = ["placeholder"];
28376
+ const _sfc_main$T = /* @__PURE__ */ defineComponent({
28327
28377
  __name: "HierarchyFacet",
28328
28378
  props: {
28329
28379
  options: {},
@@ -28378,19 +28428,19 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
28378
28428
  showAll.value = false;
28379
28429
  };
28380
28430
  return (_ctx, _cache) => {
28381
- return openBlock(), createElementBlock("div", _hoisted_1$L, [
28382
- isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$x, [
28431
+ return openBlock(), createElementBlock("div", _hoisted_1$N, [
28432
+ isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$z, [
28383
28433
  withDirectives(createBaseVNode("input", {
28384
28434
  class: "lupa-term-filter",
28385
28435
  "data-cy": "lupa-term-filter",
28386
28436
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
28387
28437
  placeholder: _ctx.options.labels.facetFilter
28388
- }, null, 8, _hoisted_3$o), [
28438
+ }, null, 8, _hoisted_3$q), [
28389
28439
  [vModelText, termFilter.value]
28390
28440
  ])
28391
28441
  ])) : createCommentVNode("", true),
28392
28442
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
28393
- return openBlock(), createBlock(_sfc_main$S, {
28443
+ return openBlock(), createBlock(_sfc_main$U, {
28394
28444
  key: item.title,
28395
28445
  options: _ctx.options,
28396
28446
  item,
@@ -28414,20 +28464,20 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
28414
28464
  };
28415
28465
  }
28416
28466
  });
28417
- const _hoisted_1$K = { class: "lupa-facet-label-text" };
28418
- const _hoisted_2$w = {
28467
+ const _hoisted_1$M = { class: "lupa-facet-label-text" };
28468
+ const _hoisted_2$y = {
28419
28469
  key: 0,
28420
28470
  class: "lupa-facet-content",
28421
28471
  "data-cy": "lupa-facet-content"
28422
28472
  };
28423
28473
  const __default__$1 = {
28424
28474
  components: {
28425
- TermFacet: _sfc_main$U,
28426
- StatsFacet: _sfc_main$T,
28427
- HierarchyFacet: _sfc_main$R
28475
+ TermFacet: _sfc_main$W,
28476
+ StatsFacet: _sfc_main$V,
28477
+ HierarchyFacet: _sfc_main$T
28428
28478
  }
28429
28479
  };
28430
- const _sfc_main$Q = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
28480
+ const _sfc_main$S = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
28431
28481
  __name: "FacetDisplay",
28432
28482
  props: {
28433
28483
  options: {},
@@ -28548,12 +28598,12 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
28548
28598
  "data-cy": "lupa-search-result-facet-label",
28549
28599
  onClick: toggleFacet
28550
28600
  }, [
28551
- createBaseVNode("div", _hoisted_1$K, toDisplayString(facetLabel.value), 1),
28601
+ createBaseVNode("div", _hoisted_1$M, toDisplayString(facetLabel.value), 1),
28552
28602
  createBaseVNode("div", {
28553
28603
  class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
28554
28604
  }, null, 2)
28555
28605
  ], 2),
28556
- isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$w, [
28606
+ isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$y, [
28557
28607
  (openBlock(), createBlock(resolveDynamicComponent(facetType.value), {
28558
28608
  facet: facet.value,
28559
28609
  currentFilters: currentFilters.value[facet.value.key],
@@ -28571,12 +28621,12 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
28571
28621
  };
28572
28622
  }
28573
28623
  }));
28574
- const _hoisted_1$J = { class: "lupa-search-result-facet-section" };
28575
- const _hoisted_2$v = {
28624
+ const _hoisted_1$L = { class: "lupa-search-result-facet-section" };
28625
+ const _hoisted_2$x = {
28576
28626
  key: 0,
28577
28627
  class: "lupa-facets-title"
28578
28628
  };
28579
- const _sfc_main$P = /* @__PURE__ */ defineComponent({
28629
+ const _sfc_main$R = /* @__PURE__ */ defineComponent({
28580
28630
  __name: "FacetList",
28581
28631
  props: {
28582
28632
  options: {},
@@ -28610,14 +28660,14 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
28610
28660
  };
28611
28661
  return (_ctx, _cache) => {
28612
28662
  var _a;
28613
- return openBlock(), createElementBlock("div", _hoisted_1$J, [
28614
- _ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$v, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
28663
+ return openBlock(), createElementBlock("div", _hoisted_1$L, [
28664
+ _ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$x, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
28615
28665
  createBaseVNode("div", {
28616
28666
  class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
28617
28667
  }, [
28618
28668
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
28619
28669
  var _a2;
28620
- return openBlock(), createBlock(_sfc_main$Q, {
28670
+ return openBlock(), createBlock(_sfc_main$S, {
28621
28671
  key: facet.key,
28622
28672
  facet,
28623
28673
  currentFilters: currentFiltersValue.value,
@@ -28632,8 +28682,8 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
28632
28682
  };
28633
28683
  }
28634
28684
  });
28635
- const _hoisted_1$I = ["onClick"];
28636
- const _sfc_main$O = /* @__PURE__ */ defineComponent({
28685
+ const _hoisted_1$K = ["onClick"];
28686
+ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
28637
28687
  __name: "FacetsButton",
28638
28688
  props: {
28639
28689
  options: {}
@@ -28653,12 +28703,12 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
28653
28703
  key: 0,
28654
28704
  class: "lupa-facets-button-filter",
28655
28705
  onClick: withModifiers(handleClick, ["stop"])
28656
- }, toDisplayString(label.value), 9, _hoisted_1$I)) : createCommentVNode("", true);
28706
+ }, toDisplayString(label.value), 9, _hoisted_1$K)) : createCommentVNode("", true);
28657
28707
  };
28658
28708
  }
28659
28709
  });
28660
- const _hoisted_1$H = { class: "lupa-facets-filter-button-wrapper" };
28661
- const _sfc_main$N = /* @__PURE__ */ defineComponent({
28710
+ const _hoisted_1$J = { class: "lupa-facets-filter-button-wrapper" };
28711
+ const _sfc_main$P = /* @__PURE__ */ defineComponent({
28662
28712
  __name: "Facets",
28663
28713
  props: {
28664
28714
  options: {},
@@ -28744,7 +28794,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
28744
28794
  return openBlock(), createElementBlock("div", {
28745
28795
  class: normalizeClass(["lupa-search-result-facets", { "lupa-search-result-facets-loading": unref(loadingFacets) }])
28746
28796
  }, [
28747
- regularFacets.value ? (openBlock(), createBlock(_sfc_main$P, {
28797
+ regularFacets.value ? (openBlock(), createBlock(_sfc_main$R, {
28748
28798
  key: 0,
28749
28799
  options: _ctx.options,
28750
28800
  facets: regularFacets.value,
@@ -28754,8 +28804,8 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
28754
28804
  onSelect: handleFacetSelect,
28755
28805
  onClear: clear2
28756
28806
  }, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : createCommentVNode("", true),
28757
- createBaseVNode("div", _hoisted_1$H, [
28758
- showFilterButton.value ? (openBlock(), createBlock(_sfc_main$O, {
28807
+ createBaseVNode("div", _hoisted_1$J, [
28808
+ showFilterButton.value ? (openBlock(), createBlock(_sfc_main$Q, {
28759
28809
  key: 0,
28760
28810
  options: _ctx.options,
28761
28811
  onFilter: filter2
@@ -28765,12 +28815,12 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
28765
28815
  };
28766
28816
  }
28767
28817
  });
28768
- const _hoisted_1$G = {
28818
+ const _hoisted_1$I = {
28769
28819
  key: 0,
28770
28820
  id: "lupa-search-result-filters",
28771
28821
  class: "lupa-search-result-filters"
28772
28822
  };
28773
- const _sfc_main$M = /* @__PURE__ */ defineComponent({
28823
+ const _sfc_main$O = /* @__PURE__ */ defineComponent({
28774
28824
  __name: "SearchResultsFilters",
28775
28825
  props: {
28776
28826
  options: {},
@@ -28807,19 +28857,19 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
28807
28857
  __expose({ fetch: fetch2 });
28808
28858
  return (_ctx, _cache) => {
28809
28859
  var _a;
28810
- return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$G, [
28811
- showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$X, {
28860
+ return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$I, [
28861
+ showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$Z, {
28812
28862
  key: 0,
28813
28863
  options: _ctx.options.currentFilters,
28814
28864
  expandable: (_a = _ctx.expandable) != null ? _a : false
28815
28865
  }, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
28816
- _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$V, {
28866
+ _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$X, {
28817
28867
  key: 1,
28818
28868
  options: _ctx.options.categories,
28819
28869
  ref_key: "categoryFilters",
28820
28870
  ref: categoryFilters
28821
28871
  }, null, 8, ["options"])) : createCommentVNode("", true),
28822
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$N, {
28872
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$P, {
28823
28873
  key: 2,
28824
28874
  options: _ctx.options.facets,
28825
28875
  onFilter: filter2
@@ -28828,20 +28878,20 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
28828
28878
  };
28829
28879
  }
28830
28880
  });
28831
- const _hoisted_1$F = {
28881
+ const _hoisted_1$H = {
28832
28882
  key: 0,
28833
28883
  class: "lupa-mobile-filter-sidebar"
28834
28884
  };
28835
- const _hoisted_2$u = ["onClick"];
28836
- const _hoisted_3$n = { class: "lupa-mobile-sidebar-content" };
28837
- const _hoisted_4$h = { class: "lupa-sidebar-top" };
28838
- const _hoisted_5$b = { class: "lupa-sidebar-title" };
28885
+ const _hoisted_2$w = ["onClick"];
28886
+ const _hoisted_3$p = { class: "lupa-mobile-sidebar-content" };
28887
+ const _hoisted_4$i = { class: "lupa-sidebar-top" };
28888
+ const _hoisted_5$c = { class: "lupa-sidebar-title" };
28839
28889
  const _hoisted_6$6 = {
28840
28890
  key: 0,
28841
28891
  class: "lupa-sidebar-filter-count"
28842
28892
  };
28843
28893
  const _hoisted_7$4 = { class: "lupa-sidebar-filter-options" };
28844
- const _sfc_main$L = /* @__PURE__ */ defineComponent({
28894
+ const _sfc_main$N = /* @__PURE__ */ defineComponent({
28845
28895
  __name: "MobileFilterSidebar",
28846
28896
  props: {
28847
28897
  options: {}
@@ -28872,14 +28922,14 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
28872
28922
  handleMobileToggle();
28873
28923
  };
28874
28924
  return (_ctx, _cache) => {
28875
- return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$F, [
28925
+ return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$H, [
28876
28926
  createBaseVNode("div", {
28877
28927
  class: "lupa-sidebar-close",
28878
28928
  onClick: withModifiers(handleMobileToggle, ["stop"])
28879
- }, null, 8, _hoisted_2$u),
28880
- createBaseVNode("div", _hoisted_3$n, [
28881
- createBaseVNode("div", _hoisted_4$h, [
28882
- createBaseVNode("div", _hoisted_5$b, [
28929
+ }, null, 8, _hoisted_2$w),
28930
+ createBaseVNode("div", _hoisted_3$p, [
28931
+ createBaseVNode("div", _hoisted_4$i, [
28932
+ createBaseVNode("div", _hoisted_5$c, [
28883
28933
  createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
28884
28934
  isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
28885
28935
  ]),
@@ -28889,7 +28939,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
28889
28939
  })
28890
28940
  ]),
28891
28941
  createBaseVNode("div", _hoisted_7$4, [
28892
- createVNode(_sfc_main$M, {
28942
+ createVNode(_sfc_main$O, {
28893
28943
  options: _ctx.options,
28894
28944
  expandable: isActiveFiltersExpanded.value,
28895
28945
  onFilter: filter2
@@ -28900,14 +28950,14 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
28900
28950
  };
28901
28951
  }
28902
28952
  });
28903
- const _hoisted_1$E = { id: "lupa-search-results-breadcrumbs" };
28904
- const _hoisted_2$t = ["href", "onClick"];
28905
- const _hoisted_3$m = {
28953
+ const _hoisted_1$G = { id: "lupa-search-results-breadcrumbs" };
28954
+ const _hoisted_2$v = ["href", "onClick"];
28955
+ const _hoisted_3$o = {
28906
28956
  key: 1,
28907
28957
  class: "lupa-search-results-breadcrumb-text"
28908
28958
  };
28909
- const _hoisted_4$g = { key: 2 };
28910
- const _sfc_main$K = /* @__PURE__ */ defineComponent({
28959
+ const _hoisted_4$h = { key: 2 };
28960
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
28911
28961
  __name: "SearchResultsBreadcrumbs",
28912
28962
  props: {
28913
28963
  breadcrumbs: {}
@@ -28932,7 +28982,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
28932
28982
  handleRoutingEvent(link, event, hasEventRouting.value);
28933
28983
  };
28934
28984
  return (_ctx, _cache) => {
28935
- return openBlock(), createElementBlock("div", _hoisted_1$E, [
28985
+ return openBlock(), createElementBlock("div", _hoisted_1$G, [
28936
28986
  (openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
28937
28987
  var _a;
28938
28988
  return openBlock(), createElementBlock("span", {
@@ -28947,20 +28997,20 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
28947
28997
  var _a2;
28948
28998
  return handleNavigation(e2, (_a2 = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a2 : "");
28949
28999
  }
28950
- }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$t)) : (openBlock(), createElementBlock("span", _hoisted_3$m, toDisplayString(getLabel(breadcrumb.label)), 1)),
28951
- index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$g, toDisplayString((_a = breadcrumb.separator) != null ? _a : "/"), 1)) : createCommentVNode("", true)
29000
+ }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$v)) : (openBlock(), createElementBlock("span", _hoisted_3$o, toDisplayString(getLabel(breadcrumb.label)), 1)),
29001
+ index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$h, toDisplayString((_a = breadcrumb.separator) != null ? _a : "/"), 1)) : createCommentVNode("", true)
28952
29002
  ]);
28953
29003
  }), 128))
28954
29004
  ]);
28955
29005
  };
28956
29006
  }
28957
29007
  });
28958
- const _hoisted_1$D = {
29008
+ const _hoisted_1$F = {
28959
29009
  key: 0,
28960
29010
  id: "lupa-search-result-filters",
28961
29011
  class: "lupa-search-result-filters lupa-search-result-top-filters"
28962
29012
  };
28963
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
29013
+ const _sfc_main$L = /* @__PURE__ */ defineComponent({
28964
29014
  __name: "FiltersTopDropdown",
28965
29015
  props: {
28966
29016
  options: {}
@@ -28977,8 +29027,8 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
28977
29027
  });
28978
29028
  return (_ctx, _cache) => {
28979
29029
  var _a;
28980
- return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$D, [
28981
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$N, {
29030
+ return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$F, [
29031
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$P, {
28982
29032
  key: 0,
28983
29033
  options: _ctx.options.facets,
28984
29034
  "facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
@@ -28989,8 +29039,8 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
28989
29039
  };
28990
29040
  }
28991
29041
  });
28992
- const _hoisted_1$C = { id: "lupa-search-results-layout-selection" };
28993
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
29042
+ const _hoisted_1$E = { id: "lupa-search-results-layout-selection" };
29043
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
28994
29044
  __name: "SearchResultsLayoutSelection",
28995
29045
  setup(__props) {
28996
29046
  const searchResultStore = useSearchResultStore();
@@ -29001,7 +29051,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
29001
29051
  searchResultStore.setLayout(layout2);
29002
29052
  };
29003
29053
  return (_ctx, _cache) => {
29004
- return openBlock(), createElementBlock("div", _hoisted_1$C, [
29054
+ return openBlock(), createElementBlock("div", _hoisted_1$E, [
29005
29055
  createBaseVNode("div", {
29006
29056
  class: normalizeClass([
29007
29057
  "lupa-layout-selection-grid",
@@ -29023,11 +29073,11 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
29023
29073
  };
29024
29074
  }
29025
29075
  });
29026
- const _hoisted_1$B = {
29076
+ const _hoisted_1$D = {
29027
29077
  key: 0,
29028
29078
  class: "lupa-mobile-toggle-filter-count"
29029
29079
  };
29030
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
29080
+ const _sfc_main$J = /* @__PURE__ */ defineComponent({
29031
29081
  __name: "SearchResultsMobileToggle",
29032
29082
  props: {
29033
29083
  labels: {},
@@ -29075,12 +29125,12 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
29075
29125
  onClick: handleMobileToggle
29076
29126
  }, [
29077
29127
  createTextVNode(toDisplayString(label.value) + " ", 1),
29078
- _ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$B, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
29128
+ _ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$D, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
29079
29129
  ], 2);
29080
29130
  };
29081
29131
  }
29082
29132
  });
29083
- const _sfc_main$G = /* @__PURE__ */ defineComponent({
29133
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
29084
29134
  __name: "SearchResultsMobileFilterClose",
29085
29135
  props: {
29086
29136
  label: {}
@@ -29100,21 +29150,21 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
29100
29150
  };
29101
29151
  }
29102
29152
  });
29103
- const _hoisted_1$A = {
29153
+ const _hoisted_1$C = {
29104
29154
  key: 0,
29105
29155
  id: "lupa-search-results-page-select",
29106
29156
  "data-cy": "lupa-search-results-page-select"
29107
29157
  };
29108
- const _hoisted_2$s = {
29158
+ const _hoisted_2$u = {
29109
29159
  key: 0,
29110
29160
  class: "lupa-page-number-separator"
29111
29161
  };
29112
- const _hoisted_3$l = ["onClick"];
29113
- const _hoisted_4$f = {
29162
+ const _hoisted_3$n = ["onClick"];
29163
+ const _hoisted_4$g = {
29114
29164
  key: 0,
29115
29165
  class: "lupa-page-number-separator"
29116
29166
  };
29117
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
29167
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
29118
29168
  __name: "SearchResultsPageSelect",
29119
29169
  props: {
29120
29170
  lastPageLabel: {},
@@ -29191,7 +29241,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
29191
29241
  }
29192
29242
  };
29193
29243
  return (_ctx, _cache) => {
29194
- return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$A, [
29244
+ return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$C, [
29195
29245
  showBack.value ? (openBlock(), createElementBlock("div", {
29196
29246
  key: 0,
29197
29247
  class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
@@ -29202,7 +29252,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
29202
29252
  class: "lupa-page-number lupa-page-number-first",
29203
29253
  onClick: _cache[1] || (_cache[1] = () => handlePageChange(1))
29204
29254
  }, " 1 "),
29205
- showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$s, "...")) : createCommentVNode("", true)
29255
+ showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$u, "...")) : createCommentVNode("", true)
29206
29256
  ], 64)) : createCommentVNode("", true),
29207
29257
  (openBlock(true), createElementBlock(Fragment, null, renderList(pages.value, (page) => {
29208
29258
  return openBlock(), createElementBlock("div", {
@@ -29213,10 +29263,10 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
29213
29263
  page === _ctx.options.selectedPage ? "lupa-page-number-selected" : ""
29214
29264
  ]),
29215
29265
  "data-cy": "lupa-page-number"
29216
- }, toDisplayString(page), 11, _hoisted_3$l);
29266
+ }, toDisplayString(page), 11, _hoisted_3$n);
29217
29267
  }), 128)),
29218
29268
  showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
29219
- showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$f, "...")) : createCommentVNode("", true),
29269
+ showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$g, "...")) : createCommentVNode("", true),
29220
29270
  createBaseVNode("div", {
29221
29271
  class: "lupa-page-number lupa-page-number-last",
29222
29272
  onClick: _cache[2] || (_cache[2] = () => {
@@ -29235,15 +29285,15 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
29235
29285
  };
29236
29286
  }
29237
29287
  });
29238
- const _hoisted_1$z = {
29288
+ const _hoisted_1$B = {
29239
29289
  id: "lupa-search-results-page-size",
29240
29290
  "data-cy": "lupa-search-results-page-size"
29241
29291
  };
29242
- const _hoisted_2$r = { id: "lupa-select" };
29243
- const _hoisted_3$k = { class: "lupa-select-label" };
29244
- const _hoisted_4$e = ["aria-label"];
29245
- const _hoisted_5$a = ["value"];
29246
- const _sfc_main$E = /* @__PURE__ */ defineComponent({
29292
+ const _hoisted_2$t = { id: "lupa-select" };
29293
+ const _hoisted_3$m = { class: "lupa-select-label" };
29294
+ const _hoisted_4$f = ["aria-label"];
29295
+ const _hoisted_5$b = ["value"];
29296
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
29247
29297
  __name: "SearchResultsPageSize",
29248
29298
  props: {
29249
29299
  labels: {},
@@ -29271,9 +29321,9 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
29271
29321
  });
29272
29322
  };
29273
29323
  return (_ctx, _cache) => {
29274
- return openBlock(), createElementBlock("div", _hoisted_1$z, [
29275
- createBaseVNode("div", _hoisted_2$r, [
29276
- createBaseVNode("label", _hoisted_3$k, toDisplayString(label.value), 1),
29324
+ return openBlock(), createElementBlock("div", _hoisted_1$B, [
29325
+ createBaseVNode("div", _hoisted_2$t, [
29326
+ createBaseVNode("label", _hoisted_3$m, toDisplayString(label.value), 1),
29277
29327
  createBaseVNode("select", {
29278
29328
  class: "lupa-select-dropdown",
29279
29329
  "aria-label": label.value,
@@ -29286,23 +29336,23 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
29286
29336
  return openBlock(), createElementBlock("option", {
29287
29337
  key: option,
29288
29338
  value: option
29289
- }, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$a);
29339
+ }, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$b);
29290
29340
  }), 128))
29291
- ], 40, _hoisted_4$e)
29341
+ ], 40, _hoisted_4$f)
29292
29342
  ])
29293
29343
  ]);
29294
29344
  };
29295
29345
  }
29296
29346
  });
29297
- const _hoisted_1$y = {
29347
+ const _hoisted_1$A = {
29298
29348
  id: "lupa-search-results-sort",
29299
29349
  class: "lupa-search-results-sort"
29300
29350
  };
29301
- const _hoisted_2$q = { id: "lupa-select" };
29302
- const _hoisted_3$j = { class: "lupa-select-label" };
29303
- const _hoisted_4$d = ["aria-label"];
29304
- const _hoisted_5$9 = ["value"];
29305
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
29351
+ const _hoisted_2$s = { id: "lupa-select" };
29352
+ const _hoisted_3$l = { class: "lupa-select-label" };
29353
+ const _hoisted_4$e = ["aria-label"];
29354
+ const _hoisted_5$a = ["value"];
29355
+ const _sfc_main$F = /* @__PURE__ */ defineComponent({
29306
29356
  __name: "SearchResultsSort",
29307
29357
  props: {
29308
29358
  options: {},
@@ -29351,9 +29401,9 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
29351
29401
  previousKey.value = selectedKey.value;
29352
29402
  };
29353
29403
  return (_ctx, _cache) => {
29354
- return openBlock(), createElementBlock("div", _hoisted_1$y, [
29355
- createBaseVNode("div", _hoisted_2$q, [
29356
- createBaseVNode("label", _hoisted_3$j, toDisplayString(_ctx.options.label), 1),
29404
+ return openBlock(), createElementBlock("div", _hoisted_1$A, [
29405
+ createBaseVNode("div", _hoisted_2$s, [
29406
+ createBaseVNode("label", _hoisted_3$l, toDisplayString(_ctx.options.label), 1),
29357
29407
  withDirectives(createBaseVNode("select", {
29358
29408
  class: "lupa-select-dropdown",
29359
29409
  "aria-label": _ctx.options.label,
@@ -29366,9 +29416,9 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
29366
29416
  return openBlock(), createElementBlock("option", {
29367
29417
  key: option.key,
29368
29418
  value: option.key
29369
- }, toDisplayString(option.label), 9, _hoisted_5$9);
29419
+ }, toDisplayString(option.label), 9, _hoisted_5$a);
29370
29420
  }), 128))
29371
- ], 40, _hoisted_4$d), [
29421
+ ], 40, _hoisted_4$e), [
29372
29422
  [vModelSelect, selectedKey.value]
29373
29423
  ])
29374
29424
  ])
@@ -29376,14 +29426,14 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
29376
29426
  };
29377
29427
  }
29378
29428
  });
29379
- const _hoisted_1$x = { class: "lupa-toolbar-left" };
29380
- const _hoisted_2$p = {
29429
+ const _hoisted_1$z = { class: "lupa-toolbar-left" };
29430
+ const _hoisted_2$r = {
29381
29431
  key: 0,
29382
29432
  class: "lupa-toolbar-right-title"
29383
29433
  };
29384
- const _hoisted_3$i = { key: 2 };
29385
- const _hoisted_4$c = { key: 4 };
29386
- const _hoisted_5$8 = { key: 6 };
29434
+ const _hoisted_3$k = { key: 2 };
29435
+ const _hoisted_4$d = { key: 4 };
29436
+ const _hoisted_5$9 = { key: 6 };
29387
29437
  const _hoisted_6$5 = { class: "lupa-toolbar-right" };
29388
29438
  const _hoisted_7$3 = {
29389
29439
  key: 0,
@@ -29391,7 +29441,7 @@ const _hoisted_7$3 = {
29391
29441
  };
29392
29442
  const _hoisted_8 = { key: 2 };
29393
29443
  const _hoisted_9 = { key: 4 };
29394
- const _sfc_main$C = /* @__PURE__ */ defineComponent({
29444
+ const _sfc_main$E = /* @__PURE__ */ defineComponent({
29395
29445
  __name: "SearchResultsToolbar",
29396
29446
  props: {
29397
29447
  options: {},
@@ -29502,39 +29552,39 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
29502
29552
  id: "lupa-search-results-toolbar",
29503
29553
  class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
29504
29554
  }, [
29505
- createBaseVNode("div", _hoisted_1$x, [
29506
- toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$p, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
29507
- showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$I, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$i)),
29508
- showItemSummary.value ? (openBlock(), createBlock(_sfc_main$_, {
29555
+ createBaseVNode("div", _hoisted_1$z, [
29556
+ toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$r, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
29557
+ showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$K, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$k)),
29558
+ showItemSummary.value ? (openBlock(), createBlock(_sfc_main$10, {
29509
29559
  key: 3,
29510
29560
  label: searchSummaryLabel.value,
29511
29561
  clearable: unref(hasAnyFilter) && showFilterClear.value,
29512
29562
  onClear: handleClearAll
29513
- }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$c)),
29514
- displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$F, {
29563
+ }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$d)),
29564
+ displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$H, {
29515
29565
  key: 5,
29516
29566
  options: paginationOptions.value.pageSelect,
29517
29567
  "last-page-label": paginationOptions.value.labels.showMore,
29518
29568
  "first-page-label": paginationOptions.value.labels.showLess
29519
- }, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_5$8))
29569
+ }, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_5$9))
29520
29570
  ]),
29521
29571
  createBaseVNode("div", _hoisted_6$5, [
29522
29572
  toolbarRightLabel.value ? (openBlock(), createElementBlock("div", _hoisted_7$3, toDisplayString(toolbarRightLabel.value), 1)) : createCommentVNode("", true),
29523
- createVNode(_sfc_main$H, {
29573
+ createVNode(_sfc_main$J, {
29524
29574
  labels: optionsValue.value.labels,
29525
29575
  "show-filter-count": showMobileFilterCount.value
29526
29576
  }, null, 8, ["labels", "show-filter-count"]),
29527
- paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$E, {
29577
+ paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$G, {
29528
29578
  key: 1,
29529
29579
  options: paginationOptions.value.pageSize,
29530
29580
  labels: paginationOptions.value.labels
29531
29581
  }, null, 8, ["options", "labels"])) : (openBlock(), createElementBlock("div", _hoisted_8)),
29532
- sortOptions.value ? (openBlock(), createBlock(_sfc_main$D, {
29582
+ sortOptions.value ? (openBlock(), createBlock(_sfc_main$F, {
29533
29583
  key: 3,
29534
29584
  options: sortOptions.value,
29535
29585
  callbacks: callbacks.value
29536
29586
  }, null, 8, ["options", "callbacks"])) : (openBlock(), createElementBlock("div", _hoisted_9)),
29537
- showFiltersCloseButton.value && unref(isMobileSidebarVisible) ? (openBlock(), createBlock(_sfc_main$G, {
29587
+ showFiltersCloseButton.value && unref(isMobileSidebarVisible) ? (openBlock(), createBlock(_sfc_main$I, {
29538
29588
  key: 5,
29539
29589
  label: optionsValue.value.labels.mobileFilterCloseButton
29540
29590
  }, null, 8, ["label"])) : createCommentVNode("", true)
@@ -29543,7 +29593,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
29543
29593
  };
29544
29594
  }
29545
29595
  });
29546
- const _sfc_main$B = /* @__PURE__ */ defineComponent({
29596
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
29547
29597
  __name: "SearchResultsProductImage",
29548
29598
  props: {
29549
29599
  item: {},
@@ -29551,7 +29601,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
29551
29601
  },
29552
29602
  setup(__props) {
29553
29603
  return (_ctx, _cache) => {
29554
- return openBlock(), createBlock(_sfc_main$1n, {
29604
+ return openBlock(), createBlock(_sfc_main$1p, {
29555
29605
  item: _ctx.item,
29556
29606
  options: _ctx.options,
29557
29607
  "wrapper-class": "lupa-search-results-image-wrapper",
@@ -29560,16 +29610,16 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
29560
29610
  };
29561
29611
  }
29562
29612
  });
29563
- const _hoisted_1$w = ["title", "innerHTML"];
29564
- const _hoisted_2$o = ["title"];
29565
- const _hoisted_3$h = ["href", "innerHTML"];
29566
- const _hoisted_4$b = ["title"];
29567
- const _hoisted_5$7 = {
29613
+ const _hoisted_1$y = ["title", "innerHTML"];
29614
+ const _hoisted_2$q = ["title"];
29615
+ const _hoisted_3$j = ["href", "innerHTML"];
29616
+ const _hoisted_4$c = ["title"];
29617
+ const _hoisted_5$8 = {
29568
29618
  key: 0,
29569
29619
  class: "lupa-search-results-product-title-text"
29570
29620
  };
29571
29621
  const _hoisted_6$4 = ["href"];
29572
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
29622
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
29573
29623
  __name: "SearchResultsProductTitle",
29574
29624
  props: {
29575
29625
  item: {},
@@ -29606,7 +29656,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
29606
29656
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
29607
29657
  title: sanitizedTitle.value,
29608
29658
  innerHTML: sanitizedTitle.value
29609
- }, null, 12, _hoisted_1$w)) : isHtml.value && _ctx.options.link ? (openBlock(), createElementBlock("div", {
29659
+ }, null, 12, _hoisted_1$y)) : isHtml.value && _ctx.options.link ? (openBlock(), createElementBlock("div", {
29610
29660
  key: 1,
29611
29661
  class: "lupa-search-results-product-title",
29612
29662
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
@@ -29617,26 +29667,26 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
29617
29667
  class: "lupa-search-results-product-title-text lupa-title-link",
29618
29668
  innerHTML: sanitizedTitle.value,
29619
29669
  onClick: handleNavigation
29620
- }, null, 8, _hoisted_3$h)
29621
- ], 12, _hoisted_2$o)) : (openBlock(), createElementBlock("div", {
29670
+ }, null, 8, _hoisted_3$j)
29671
+ ], 12, _hoisted_2$q)) : (openBlock(), createElementBlock("div", {
29622
29672
  key: 2,
29623
29673
  class: "lupa-search-results-product-title",
29624
29674
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
29625
29675
  title: title.value
29626
29676
  }, [
29627
- !_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_5$7, toDisplayString(title.value), 1)) : createCommentVNode("", true),
29677
+ !_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_5$8, toDisplayString(title.value), 1)) : createCommentVNode("", true),
29628
29678
  _ctx.options.link ? (openBlock(), createElementBlock("a", {
29629
29679
  key: 1,
29630
29680
  href: _ctx.link,
29631
29681
  class: "lupa-search-results-product-title-text lupa-title-link",
29632
29682
  onClick: handleNavigation
29633
29683
  }, toDisplayString(title.value), 9, _hoisted_6$4)) : createCommentVNode("", true)
29634
- ], 12, _hoisted_4$b));
29684
+ ], 12, _hoisted_4$c));
29635
29685
  };
29636
29686
  }
29637
29687
  });
29638
- const _hoisted_1$v = ["innerHTML"];
29639
- const _sfc_main$z = /* @__PURE__ */ defineComponent({
29688
+ const _hoisted_1$x = ["innerHTML"];
29689
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
29640
29690
  __name: "SearchResultsProductDescription",
29641
29691
  props: {
29642
29692
  item: {},
@@ -29663,7 +29713,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
29663
29713
  class: "lupa-search-results-product-description",
29664
29714
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
29665
29715
  innerHTML: sanitizedDescription.value
29666
- }, null, 12, _hoisted_1$v)) : (openBlock(), createElementBlock("div", {
29716
+ }, null, 12, _hoisted_1$x)) : (openBlock(), createElementBlock("div", {
29667
29717
  key: 1,
29668
29718
  class: "lupa-search-results-product-description",
29669
29719
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
@@ -29671,15 +29721,15 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
29671
29721
  };
29672
29722
  }
29673
29723
  });
29674
- const _hoisted_1$u = { id: "lupa-search-results-rating" };
29675
- const _hoisted_2$n = { class: "lupa-ratings" };
29676
- const _hoisted_3$g = { class: "lupa-ratings-base" };
29677
- const _hoisted_4$a = ["innerHTML"];
29678
- const _hoisted_5$6 = { class: "lupa-rating-wrapper" };
29724
+ const _hoisted_1$w = { id: "lupa-search-results-rating" };
29725
+ const _hoisted_2$p = { class: "lupa-ratings" };
29726
+ const _hoisted_3$i = { class: "lupa-ratings-base" };
29727
+ const _hoisted_4$b = ["innerHTML"];
29728
+ const _hoisted_5$7 = { class: "lupa-rating-wrapper" };
29679
29729
  const _hoisted_6$3 = ["innerHTML"];
29680
29730
  const _hoisted_7$2 = ["href"];
29681
29731
  const STAR_COUNT = 5;
29682
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
29732
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
29683
29733
  __name: "SearchResultsProductRating",
29684
29734
  props: {
29685
29735
  item: {},
@@ -29716,18 +29766,18 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
29716
29766
  return generateLink(props.options.links.ratingDetails, props.item);
29717
29767
  });
29718
29768
  return (_ctx, _cache) => {
29719
- return openBlock(), createElementBlock("div", _hoisted_1$u, [
29720
- createBaseVNode("div", _hoisted_2$n, [
29721
- createBaseVNode("div", _hoisted_3$g, [
29769
+ return openBlock(), createElementBlock("div", _hoisted_1$w, [
29770
+ createBaseVNode("div", _hoisted_2$p, [
29771
+ createBaseVNode("div", _hoisted_3$i, [
29722
29772
  (openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
29723
29773
  return openBlock(), createElementBlock("div", {
29724
29774
  key: index,
29725
29775
  innerHTML: star,
29726
29776
  class: "lupa-rating lupa-rating-not-highlighted"
29727
- }, null, 8, _hoisted_4$a);
29777
+ }, null, 8, _hoisted_4$b);
29728
29778
  }), 128))
29729
29779
  ]),
29730
- createBaseVNode("div", _hoisted_5$6, [
29780
+ createBaseVNode("div", _hoisted_5$7, [
29731
29781
  createBaseVNode("div", {
29732
29782
  class: "lupa-ratings-highlighted",
29733
29783
  style: normalizeStyle({ width: ratingPercentage.value + "%" })
@@ -29750,11 +29800,11 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
29750
29800
  };
29751
29801
  }
29752
29802
  });
29753
- const _hoisted_1$t = {
29803
+ const _hoisted_1$v = {
29754
29804
  class: "lupa-search-results-product-regular-price",
29755
29805
  "data-cy": "lupa-search-results-product-regular-price"
29756
29806
  };
29757
- const _sfc_main$x = /* @__PURE__ */ defineComponent({
29807
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
29758
29808
  __name: "SearchResultsProductRegularPrice",
29759
29809
  props: {
29760
29810
  item: {},
@@ -29773,11 +29823,11 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
29773
29823
  );
29774
29824
  });
29775
29825
  return (_ctx, _cache) => {
29776
- return openBlock(), createElementBlock("div", _hoisted_1$t, toDisplayString(price.value), 1);
29826
+ return openBlock(), createElementBlock("div", _hoisted_1$v, toDisplayString(price.value), 1);
29777
29827
  };
29778
29828
  }
29779
29829
  });
29780
- const _sfc_main$w = /* @__PURE__ */ defineComponent({
29830
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
29781
29831
  __name: "SearchResultsProductPrice",
29782
29832
  props: {
29783
29833
  item: {},
@@ -29808,12 +29858,12 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
29808
29858
  };
29809
29859
  }
29810
29860
  });
29811
- const _hoisted_1$s = { class: "lupa-search-results-add-to-cart-wrapper" };
29812
- const _hoisted_2$m = { class: "lupa-search-results-product-addtocart" };
29813
- const _hoisted_3$f = ["disabled"];
29814
- const _hoisted_4$9 = ["href"];
29815
- const _hoisted_5$5 = ["id", "disabled", "onClick"];
29816
- const _sfc_main$v = /* @__PURE__ */ defineComponent({
29861
+ const _hoisted_1$u = { class: "lupa-search-results-add-to-cart-wrapper" };
29862
+ const _hoisted_2$o = { class: "lupa-search-results-product-addtocart" };
29863
+ const _hoisted_3$h = ["disabled"];
29864
+ const _hoisted_4$a = ["href"];
29865
+ const _hoisted_5$6 = ["id", "disabled", "onClick"];
29866
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
29817
29867
  __name: "SearchResultsProductAddToCart",
29818
29868
  props: {
29819
29869
  item: {},
@@ -29856,16 +29906,16 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
29856
29906
  return Boolean(props.link && props.options.link);
29857
29907
  });
29858
29908
  return (_ctx, _cache) => {
29859
- return openBlock(), createElementBlock("div", _hoisted_1$s, [
29860
- createBaseVNode("div", _hoisted_2$m, [
29909
+ return openBlock(), createElementBlock("div", _hoisted_1$u, [
29910
+ createBaseVNode("div", _hoisted_2$o, [
29861
29911
  hasLink.value ? (openBlock(), createElementBlock("button", mergeProps({
29862
29912
  key: 0,
29863
29913
  class: loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart",
29864
29914
  "data-cy": "lupa-add-to-cart",
29865
29915
  disabled: !inStockValue.value || loading.value
29866
29916
  }, _ctx.dynamicAttributes, { onClick: handleClick }), [
29867
- createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$9)
29868
- ], 16, _hoisted_3$f)) : (openBlock(), createElementBlock("button", mergeProps({
29917
+ createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$a)
29918
+ ], 16, _hoisted_3$h)) : (openBlock(), createElementBlock("button", mergeProps({
29869
29919
  key: 1,
29870
29920
  id: id.value,
29871
29921
  class: loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart",
@@ -29873,18 +29923,18 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
29873
29923
  disabled: !inStockValue.value || loading.value
29874
29924
  }, _ctx.dynamicAttributes, {
29875
29925
  onClick: withModifiers(handleClick, ["stop"])
29876
- }), toDisplayString(label.value), 17, _hoisted_5$5))
29926
+ }), toDisplayString(label.value), 17, _hoisted_5$6))
29877
29927
  ])
29878
29928
  ]);
29879
29929
  };
29880
29930
  }
29881
29931
  });
29882
- const _hoisted_1$r = ["innerHTML"];
29883
- const _hoisted_2$l = { key: 0 };
29884
- const _hoisted_3$e = { key: 1 };
29885
- const _hoisted_4$8 = { class: "lupa-search-box-custom-label" };
29886
- const _hoisted_5$4 = { class: "lupa-search-box-custom-text" };
29887
- const _sfc_main$u = /* @__PURE__ */ defineComponent({
29932
+ const _hoisted_1$t = ["innerHTML"];
29933
+ const _hoisted_2$n = { key: 0 };
29934
+ const _hoisted_3$g = { key: 1 };
29935
+ const _hoisted_4$9 = { class: "lupa-search-box-custom-label" };
29936
+ const _hoisted_5$5 = { class: "lupa-search-box-custom-text" };
29937
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
29888
29938
  __name: "SearchResultsProductCustom",
29889
29939
  props: {
29890
29940
  item: {},
@@ -29922,20 +29972,20 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
29922
29972
  key: 0,
29923
29973
  class: className.value,
29924
29974
  innerHTML: text.value
29925
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$r)) : (openBlock(), createElementBlock("div", mergeProps({
29975
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$t)) : (openBlock(), createElementBlock("div", mergeProps({
29926
29976
  key: 1,
29927
29977
  class: className.value
29928
29978
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
29929
- !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$l, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$e, [
29930
- createBaseVNode("div", _hoisted_4$8, toDisplayString(label.value), 1),
29931
- createBaseVNode("div", _hoisted_5$4, toDisplayString(text.value), 1)
29979
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$n, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$g, [
29980
+ createBaseVNode("div", _hoisted_4$9, toDisplayString(label.value), 1),
29981
+ createBaseVNode("div", _hoisted_5$5, toDisplayString(text.value), 1)
29932
29982
  ]))
29933
29983
  ], 16));
29934
29984
  };
29935
29985
  }
29936
29986
  });
29937
- const _hoisted_1$q = ["innerHTML"];
29938
- const _sfc_main$t = /* @__PURE__ */ defineComponent({
29987
+ const _hoisted_1$s = ["innerHTML"];
29988
+ const _sfc_main$v = /* @__PURE__ */ defineComponent({
29939
29989
  __name: "SearchResultsProductCustomHtmlElement",
29940
29990
  props: {
29941
29991
  item: {},
@@ -29966,15 +30016,15 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
29966
30016
  return openBlock(), createElementBlock("div", mergeProps({
29967
30017
  class: className.value,
29968
30018
  innerHTML: text.value
29969
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$q);
30019
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$s);
29970
30020
  };
29971
30021
  }
29972
30022
  });
29973
- const _hoisted_1$p = { id: "lupa-search-results-rating" };
29974
- const _hoisted_2$k = ["innerHTML"];
29975
- const _hoisted_3$d = { class: "lupa-ratings" };
29976
- const _hoisted_4$7 = ["href"];
29977
- const _sfc_main$s = /* @__PURE__ */ defineComponent({
30023
+ const _hoisted_1$r = { id: "lupa-search-results-rating" };
30024
+ const _hoisted_2$m = ["innerHTML"];
30025
+ const _hoisted_3$f = { class: "lupa-ratings" };
30026
+ const _hoisted_4$8 = ["href"];
30027
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
29978
30028
  __name: "SearchResultsProductSingleStarRating",
29979
30029
  props: {
29980
30030
  item: {},
@@ -30002,35 +30052,35 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
30002
30052
  return RATING_STAR_HTML;
30003
30053
  });
30004
30054
  return (_ctx, _cache) => {
30005
- return openBlock(), createElementBlock("div", _hoisted_1$p, [
30055
+ return openBlock(), createElementBlock("div", _hoisted_1$r, [
30006
30056
  createBaseVNode("div", {
30007
30057
  innerHTML: star.value,
30008
30058
  class: "lupa-rating lupa-rating-highlighted"
30009
- }, null, 8, _hoisted_2$k),
30010
- createBaseVNode("div", _hoisted_3$d, toDisplayString(rating.value), 1),
30059
+ }, null, 8, _hoisted_2$m),
30060
+ createBaseVNode("div", _hoisted_3$f, toDisplayString(rating.value), 1),
30011
30061
  createBaseVNode("a", {
30012
30062
  href: ratingLink.value,
30013
30063
  class: "lupa-total-ratings"
30014
- }, toDisplayString(totalRatings.value), 9, _hoisted_4$7)
30064
+ }, toDisplayString(totalRatings.value), 9, _hoisted_4$8)
30015
30065
  ]);
30016
30066
  };
30017
30067
  }
30018
30068
  });
30019
30069
  const __default__ = {
30020
30070
  components: {
30021
- SearchResultsProductImage: _sfc_main$B,
30022
- SearchResultsProductTitle: _sfc_main$A,
30023
- SearchResultsProductDescription: _sfc_main$z,
30024
- SearchResultsProductRating: _sfc_main$y,
30025
- SearchResultsProductRegularPrice: _sfc_main$x,
30026
- SearchResultsProductPrice: _sfc_main$w,
30027
- SearchResultsProductAddToCart: _sfc_main$v,
30028
- SearchResultsProductCustom: _sfc_main$u,
30029
- SearchResultsProductCustomHtmlElement: _sfc_main$t,
30030
- SearchResultsProductSingleStarRating: _sfc_main$s
30031
- }
30032
- };
30033
- const _sfc_main$r = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
30071
+ SearchResultsProductImage: _sfc_main$D,
30072
+ SearchResultsProductTitle: _sfc_main$C,
30073
+ SearchResultsProductDescription: _sfc_main$B,
30074
+ SearchResultsProductRating: _sfc_main$A,
30075
+ SearchResultsProductRegularPrice: _sfc_main$z,
30076
+ SearchResultsProductPrice: _sfc_main$y,
30077
+ SearchResultsProductAddToCart: _sfc_main$x,
30078
+ SearchResultsProductCustom: _sfc_main$w,
30079
+ SearchResultsProductCustomHtmlElement: _sfc_main$v,
30080
+ SearchResultsProductSingleStarRating: _sfc_main$u
30081
+ }
30082
+ };
30083
+ const _sfc_main$t = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
30034
30084
  __name: "SearchResultsProductCardElement",
30035
30085
  props: {
30036
30086
  item: {},
@@ -30112,14 +30162,14 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
30112
30162
  };
30113
30163
  }
30114
30164
  }));
30115
- const _hoisted_1$o = ["onMouseup"];
30116
- const _hoisted_2$j = ["href"];
30117
- const _hoisted_3$c = {
30165
+ const _hoisted_1$q = ["onMouseup"];
30166
+ const _hoisted_2$l = ["href"];
30167
+ const _hoisted_3$e = {
30118
30168
  key: 0,
30119
30169
  class: "lupa-out-of-stock"
30120
30170
  };
30121
- const _hoisted_4$6 = { class: "lupa-search-result-product-details-section" };
30122
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
30171
+ const _hoisted_4$7 = { class: "lupa-search-result-product-details-section" };
30172
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
30123
30173
  __name: "SearchResultsProductCard",
30124
30174
  props: {
30125
30175
  product: {},
@@ -30284,7 +30334,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
30284
30334
  onClick: handleClick,
30285
30335
  onMouseup: withModifiers(handleClick, ["middle", "exact"])
30286
30336
  }), [
30287
- createVNode(_sfc_main$17, { options: badgesOptions.value }, null, 8, ["options"]),
30337
+ createVNode(_sfc_main$19, { options: badgesOptions.value }, null, 8, ["options"]),
30288
30338
  createBaseVNode("div", {
30289
30339
  class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
30290
30340
  }, [
@@ -30294,7 +30344,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
30294
30344
  onClick: handleNavigation
30295
30345
  }, [
30296
30346
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
30297
- return openBlock(), createBlock(_sfc_main$r, {
30347
+ return openBlock(), createBlock(_sfc_main$t, {
30298
30348
  class: "lupa-search-results-product-element",
30299
30349
  item: _ctx.product,
30300
30350
  element,
@@ -30305,16 +30355,16 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
30305
30355
  onProductEvent: handleProductEvent
30306
30356
  }, null, 8, ["item", "element", "labels", "inStock", "link"]);
30307
30357
  }), 128)),
30308
- createVNode(_sfc_main$17, {
30358
+ createVNode(_sfc_main$19, {
30309
30359
  options: badgesOptions.value,
30310
30360
  position: "image",
30311
30361
  class: "lupa-image-badges"
30312
30362
  }, null, 8, ["options"]),
30313
- ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_3$c, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
30314
- ], 8, _hoisted_2$j),
30315
- createBaseVNode("div", _hoisted_4$6, [
30363
+ ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_3$e, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
30364
+ ], 8, _hoisted_2$l),
30365
+ createBaseVNode("div", _hoisted_4$7, [
30316
30366
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
30317
- return openBlock(), createBlock(_sfc_main$r, {
30367
+ return openBlock(), createBlock(_sfc_main$t, {
30318
30368
  class: "lupa-search-results-product-element",
30319
30369
  item: _ctx.product,
30320
30370
  element,
@@ -30332,7 +30382,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
30332
30382
  class: normalizeClass("lupa-element-group-" + group)
30333
30383
  }, [
30334
30384
  (openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
30335
- return openBlock(), createBlock(_sfc_main$r, {
30385
+ return openBlock(), createBlock(_sfc_main$t, {
30336
30386
  class: "lupa-search-results-product-element",
30337
30387
  item: _ctx.product,
30338
30388
  element,
@@ -30346,27 +30396,27 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
30346
30396
  ], 2);
30347
30397
  }), 128))
30348
30398
  ], 2)
30349
- ], 16, _hoisted_1$o);
30399
+ ], 16, _hoisted_1$q);
30350
30400
  };
30351
30401
  }
30352
30402
  });
30353
- const _hoisted_1$n = {
30403
+ const _hoisted_1$p = {
30354
30404
  id: "lupa-search-results-similar-queries",
30355
30405
  "data-cy": "lupa-search-results-similar-queries"
30356
30406
  };
30357
- const _hoisted_2$i = { class: "lupa-similar-queries-label" };
30358
- const _hoisted_3$b = {
30407
+ const _hoisted_2$k = { class: "lupa-similar-queries-label" };
30408
+ const _hoisted_3$d = {
30359
30409
  class: "lupa-similar-query-label",
30360
30410
  "data-cy": "lupa-similar-query-label"
30361
30411
  };
30362
- const _hoisted_4$5 = ["onClick"];
30363
- const _hoisted_5$3 = ["innerHTML"];
30412
+ const _hoisted_4$6 = ["onClick"];
30413
+ const _hoisted_5$4 = ["innerHTML"];
30364
30414
  const _hoisted_6$2 = { key: 0 };
30365
30415
  const _hoisted_7$1 = {
30366
30416
  class: "lupa-products",
30367
30417
  "data-cy": "lupa-products"
30368
30418
  };
30369
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
30419
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
30370
30420
  __name: "SearchResultsSimilarQueries",
30371
30421
  props: {
30372
30422
  labels: {},
@@ -30404,11 +30454,11 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
30404
30454
  };
30405
30455
  };
30406
30456
  return (_ctx, _cache) => {
30407
- return openBlock(), createElementBlock("div", _hoisted_1$n, [
30408
- createBaseVNode("div", _hoisted_2$i, toDisplayString(_ctx.labels.similarQueries), 1),
30457
+ return openBlock(), createElementBlock("div", _hoisted_1$p, [
30458
+ createBaseVNode("div", _hoisted_2$k, toDisplayString(_ctx.labels.similarQueries), 1),
30409
30459
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
30410
30460
  return openBlock(), createElementBlock("div", { key: index }, [
30411
- createBaseVNode("div", _hoisted_3$b, [
30461
+ createBaseVNode("div", _hoisted_3$d, [
30412
30462
  createBaseVNode("span", null, toDisplayString(similarQueryLabel.value), 1),
30413
30463
  createBaseVNode("span", {
30414
30464
  id: "lupa-similar-query-text-component",
@@ -30418,13 +30468,13 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
30418
30468
  }, [
30419
30469
  createBaseVNode("span", {
30420
30470
  innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
30421
- }, null, 8, _hoisted_5$3),
30471
+ }, null, 8, _hoisted_5$4),
30422
30472
  similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$2, " (" + toDisplayString(similarQuery.count) + ")", 1)) : createCommentVNode("", true)
30423
- ], 8, _hoisted_4$5)
30473
+ ], 8, _hoisted_4$6)
30424
30474
  ]),
30425
30475
  createBaseVNode("div", _hoisted_7$1, [
30426
30476
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
30427
- return openBlock(), createBlock(_sfc_main$q, {
30477
+ return openBlock(), createBlock(_sfc_main$s, {
30428
30478
  style: normalizeStyle(_ctx.columnSize),
30429
30479
  key: getDocumentKey(index2, product),
30430
30480
  product,
@@ -30439,15 +30489,15 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
30439
30489
  };
30440
30490
  }
30441
30491
  });
30442
- const _hoisted_1$m = {
30492
+ const _hoisted_1$o = {
30443
30493
  key: 0,
30444
30494
  class: "lupa-results-additional-panel"
30445
30495
  };
30446
- const _hoisted_2$h = {
30496
+ const _hoisted_2$j = {
30447
30497
  class: "lupa-results-additional-panel-items",
30448
30498
  "data-cy": "lupa-results-additional-panel-items"
30449
30499
  };
30450
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
30500
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
30451
30501
  __name: "AdditionalPanel",
30452
30502
  props: {
30453
30503
  panel: {},
@@ -30520,10 +30570,10 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
30520
30570
  handleQueryChange();
30521
30571
  });
30522
30572
  return (_ctx, _cache) => {
30523
- return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$m, [
30524
- createBaseVNode("div", _hoisted_2$h, [
30573
+ return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$o, [
30574
+ createBaseVNode("div", _hoisted_2$j, [
30525
30575
  (openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
30526
- return openBlock(), createBlock(_sfc_main$q, {
30576
+ return openBlock(), createBlock(_sfc_main$s, {
30527
30577
  key: index,
30528
30578
  product: item,
30529
30579
  options: _ctx.panel,
@@ -30541,11 +30591,11 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
30541
30591
  };
30542
30592
  }
30543
30593
  });
30544
- const _hoisted_1$l = {
30594
+ const _hoisted_1$n = {
30545
30595
  key: 0,
30546
30596
  class: "lupa-results-additional-panels"
30547
30597
  };
30548
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
30598
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
30549
30599
  __name: "AdditionalPanels",
30550
30600
  props: {
30551
30601
  options: {},
@@ -30562,9 +30612,9 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
30562
30612
  return locationPanels.value.length > 0;
30563
30613
  });
30564
30614
  return (_ctx, _cache) => {
30565
- return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$l, [
30615
+ return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$n, [
30566
30616
  (openBlock(true), createElementBlock(Fragment, null, renderList(locationPanels.value, (panel) => {
30567
- return openBlock(), createBlock(_sfc_main$o, {
30617
+ return openBlock(), createBlock(_sfc_main$q, {
30568
30618
  key: panel.queryKey,
30569
30619
  panel,
30570
30620
  options: _ctx.sdkOptions
@@ -30581,29 +30631,29 @@ const _export_sfc = (sfc, props) => {
30581
30631
  }
30582
30632
  return target;
30583
30633
  };
30584
- const _sfc_main$m = {};
30585
- const _hoisted_1$k = { class: "lupa-spinner-wrapper" };
30586
- const _hoisted_2$g = { class: "lupa-spinner" };
30634
+ const _sfc_main$o = {};
30635
+ const _hoisted_1$m = { class: "lupa-spinner-wrapper" };
30636
+ const _hoisted_2$i = { class: "lupa-spinner" };
30587
30637
  function _sfc_render(_ctx, _cache) {
30588
- return openBlock(), createElementBlock("div", _hoisted_1$k, [
30589
- createBaseVNode("div", _hoisted_2$g, [
30638
+ return openBlock(), createElementBlock("div", _hoisted_1$m, [
30639
+ createBaseVNode("div", _hoisted_2$i, [
30590
30640
  (openBlock(), createElementBlock(Fragment, null, renderList(12, (x2) => {
30591
30641
  return createBaseVNode("div", { key: x2 });
30592
30642
  }), 64))
30593
30643
  ])
30594
30644
  ]);
30595
30645
  }
30596
- const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render]]);
30597
- const _hoisted_1$j = {
30646
+ const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render]]);
30647
+ const _hoisted_1$l = {
30598
30648
  id: "lupa-search-results-similar-results",
30599
30649
  "data-cy": "lupa-search-results-similar-results"
30600
30650
  };
30601
- const _hoisted_2$f = { class: "lupa-similar-results-label" };
30602
- const _hoisted_3$a = {
30651
+ const _hoisted_2$h = { class: "lupa-similar-results-label" };
30652
+ const _hoisted_3$c = {
30603
30653
  class: "lupa-products",
30604
30654
  "data-cy": "lupa-products"
30605
30655
  };
30606
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
30656
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
30607
30657
  __name: "SearchResultsSimilarResults",
30608
30658
  props: {
30609
30659
  columnSize: {},
@@ -30624,11 +30674,11 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
30624
30674
  };
30625
30675
  });
30626
30676
  return (_ctx, _cache) => {
30627
- return openBlock(), createElementBlock("div", _hoisted_1$j, [
30628
- createBaseVNode("div", _hoisted_2$f, toDisplayString(_ctx.labels.similarResultsLabel), 1),
30629
- createBaseVNode("div", _hoisted_3$a, [
30677
+ return openBlock(), createElementBlock("div", _hoisted_1$l, [
30678
+ createBaseVNode("div", _hoisted_2$h, toDisplayString(_ctx.labels.similarResultsLabel), 1),
30679
+ createBaseVNode("div", _hoisted_3$c, [
30630
30680
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarResults.value.items, (product, index) => {
30631
- return openBlock(), createBlock(_sfc_main$q, {
30681
+ return openBlock(), createBlock(_sfc_main$s, {
30632
30682
  style: normalizeStyle(_ctx.columnSize),
30633
30683
  key: getDocumentKey(index, product),
30634
30684
  product,
@@ -30741,20 +30791,23 @@ const extractFacetsRelatedSourceFromOriginalQuery = (source, searchResults2) =>
30741
30791
  return [];
30742
30792
  });
30743
30793
  const extractRelatedSource = (source, searchResults2, options, activeFilters) => __async2(void 0, null, function* () {
30794
+ if (!source) {
30795
+ return [];
30796
+ }
30744
30797
  switch (source.type) {
30745
30798
  case RelatedQuerySourceType.FACETS:
30746
30799
  return extractFacetsRelatedSource(source, searchResults2, options, activeFilters);
30747
30800
  }
30748
30801
  });
30749
- const _hoisted_1$i = { class: "lupa-related-query-item" };
30750
- const _hoisted_2$e = { class: "lupa-related-query-image" };
30751
- const _hoisted_3$9 = { class: "lupa-related-query-label" };
30752
- const _hoisted_4$4 = { class: "lupa-related-query-title" };
30753
- const _hoisted_5$2 = {
30802
+ const _hoisted_1$k = { class: "lupa-related-query-item" };
30803
+ const _hoisted_2$g = { class: "lupa-related-query-image" };
30804
+ const _hoisted_3$b = { class: "lupa-related-query-label" };
30805
+ const _hoisted_4$5 = { class: "lupa-related-query-title" };
30806
+ const _hoisted_5$3 = {
30754
30807
  key: 0,
30755
30808
  class: "lupa-related-query-count"
30756
30809
  };
30757
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
30810
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
30758
30811
  __name: "RelatedQueryPanel",
30759
30812
  props: {
30760
30813
  query: {},
@@ -30849,9 +30902,9 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
30849
30902
  });
30850
30903
  return (_ctx, _cache) => {
30851
30904
  var _a;
30852
- return openBlock(), createElementBlock("div", _hoisted_1$i, [
30853
- createBaseVNode("div", _hoisted_2$e, [
30854
- itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1n, {
30905
+ return openBlock(), createElementBlock("div", _hoisted_1$k, [
30906
+ createBaseVNode("div", _hoisted_2$g, [
30907
+ itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1p, {
30855
30908
  key: 0,
30856
30909
  "wrapper-class": "lupa-related-query-image-wrapper",
30857
30910
  "image-class": "lupa-related-query-image",
@@ -30859,24 +30912,24 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
30859
30912
  options: image.value
30860
30913
  }, null, 8, ["item", "options"])) : createCommentVNode("", true)
30861
30914
  ]),
30862
- createBaseVNode("div", _hoisted_3$9, [
30863
- createBaseVNode("span", _hoisted_4$4, toDisplayString(_ctx.query), 1),
30864
- ((_a = _ctx.options) == null ? void 0 : _a.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$2, "(" + toDisplayString(totalItemCount.value) + ")", 1)) : createCommentVNode("", true)
30915
+ createBaseVNode("div", _hoisted_3$b, [
30916
+ createBaseVNode("span", _hoisted_4$5, toDisplayString(_ctx.query), 1),
30917
+ ((_a = _ctx.options) == null ? void 0 : _a.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$3, "(" + toDisplayString(totalItemCount.value) + ")", 1)) : createCommentVNode("", true)
30865
30918
  ])
30866
30919
  ]);
30867
30920
  };
30868
30921
  }
30869
30922
  });
30870
- const _hoisted_1$h = {
30923
+ const _hoisted_1$j = {
30871
30924
  key: 0,
30872
30925
  class: "lupa-related-queries"
30873
30926
  };
30874
- const _hoisted_2$d = {
30927
+ const _hoisted_2$f = {
30875
30928
  key: 0,
30876
30929
  class: "lupa-related-queries-title"
30877
30930
  };
30878
- const _hoisted_3$8 = ["onClick"];
30879
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
30931
+ const _hoisted_3$a = ["onClick"];
30932
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
30880
30933
  __name: "RelatedQueries",
30881
30934
  props: {
30882
30935
  options: {}
@@ -30888,7 +30941,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
30888
30941
  const optionsStore = useOptionsStore();
30889
30942
  const { searchResult, lastResultsSource } = storeToRefs(searchResultStore);
30890
30943
  const { searchResultOptions } = storeToRefs(optionsStore);
30891
- const relatedQueries = ref([]);
30944
+ const relatedQueries2 = ref([]);
30892
30945
  const allDisplayItems = ref({});
30893
30946
  const querySourceResultMap = ref({});
30894
30947
  const currentSearchText = computed(() => {
@@ -30911,27 +30964,31 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
30911
30964
  }
30912
30965
  return filters;
30913
30966
  });
30914
- watch(searchResult, () => __async2(this, null, function* () {
30915
- var _a;
30916
- allDisplayItems.value = {};
30917
- querySourceResultMap.value = {};
30918
- if (((_a = searchResult.value) == null ? void 0 : _a.searchText) === void 0 || lastResultsSource.value !== "items") {
30919
- return;
30920
- }
30921
- if (!props.options || !searchResult.value) {
30922
- relatedQueries.value = [];
30923
- }
30924
- const queries = yield extractRelatedSource(
30925
- props.options.source,
30926
- searchResult.value,
30927
- searchResultOptions.value.options,
30928
- currentFiltersWithoutQuerySources.value
30929
- );
30930
- relatedQueries.value = queries;
30931
- }));
30967
+ watch(
30968
+ searchResult,
30969
+ () => __async2(this, null, function* () {
30970
+ var _a;
30971
+ allDisplayItems.value = {};
30972
+ querySourceResultMap.value = {};
30973
+ if (((_a = searchResult.value) == null ? void 0 : _a.searchText) === void 0 || lastResultsSource.value !== "items") {
30974
+ return;
30975
+ }
30976
+ if (!props.options || !searchResult.value) {
30977
+ relatedQueries2.value = [];
30978
+ }
30979
+ const queries = yield extractRelatedSource(
30980
+ props.options.source,
30981
+ searchResult.value,
30982
+ searchResultOptions.value.options,
30983
+ currentFiltersWithoutQuerySources.value
30984
+ );
30985
+ relatedQueries2.value = queries;
30986
+ }),
30987
+ { immediate: true }
30988
+ );
30932
30989
  const hasEnoughRelatedQueries = computed(() => {
30933
30990
  var _a;
30934
- return ((_a = relatedQueries.value) == null ? void 0 : _a.length) > 1;
30991
+ return ((_a = relatedQueries2.value) == null ? void 0 : _a.length) > 1;
30935
30992
  });
30936
30993
  const handleRelatedQueryClick = (query) => {
30937
30994
  var _a;
@@ -30966,10 +31023,10 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
30966
31023
  };
30967
31024
  return (_ctx, _cache) => {
30968
31025
  var _a, _b, _c, _d;
30969
- return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$h, [
30970
- ((_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) ? (openBlock(), createElementBlock("h3", _hoisted_2$d, toDisplayString((_d = (_c = _ctx.options) == null ? void 0 : _c.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
31026
+ return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$j, [
31027
+ ((_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) ? (openBlock(), createElementBlock("h3", _hoisted_2$f, toDisplayString((_d = (_c = _ctx.options) == null ? void 0 : _c.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
30971
31028
  createBaseVNode("ul", null, [
30972
- (openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries.value, (query) => {
31029
+ (openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries2.value, (query) => {
30973
31030
  return withDirectives((openBlock(), createElementBlock("li", {
30974
31031
  key: query.value + query.key + currentSearchText.value,
30975
31032
  class: normalizeClass(getSelectedFilterClass(query))
@@ -30977,14 +31034,14 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
30977
31034
  createBaseVNode("a", {
30978
31035
  onClick: ($event) => handleRelatedQueryClick(query)
30979
31036
  }, [
30980
- createVNode(_sfc_main$k, {
31037
+ createVNode(_sfc_main$m, {
30981
31038
  "source-key": query.key,
30982
31039
  options: _ctx.options,
30983
31040
  query: query.value,
30984
31041
  "existing-items-from-other-queries": allDisplayItems.value,
30985
31042
  onLoaded: (item) => processLoadedItem(query, item)
30986
31043
  }, null, 8, ["source-key", "options", "query", "existing-items-from-other-queries", "onLoaded"])
30987
- ], 8, _hoisted_3$8)
31044
+ ], 8, _hoisted_3$a)
30988
31045
  ], 2)), [
30989
31046
  [vShow, querySourceResultMap.value[query.value] !== false]
30990
31047
  ]);
@@ -31021,13 +31078,13 @@ const extractRedirectionSuggestion = (searchText = "", options) => {
31021
31078
  }
31022
31079
  return null;
31023
31080
  };
31024
- const _hoisted_1$g = {
31081
+ const _hoisted_1$i = {
31025
31082
  key: 0,
31026
31083
  class: "lupa-redirection-suggestion"
31027
31084
  };
31028
- const _hoisted_2$c = { class: "lupa-redirections-suggestion-label" };
31029
- const _hoisted_3$7 = ["href"];
31030
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
31085
+ const _hoisted_2$e = { class: "lupa-redirections-suggestion-label" };
31086
+ const _hoisted_3$9 = ["href"];
31087
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
31031
31088
  __name: "RedirectionSuggestions",
31032
31089
  props: {
31033
31090
  options: {}
@@ -31050,19 +31107,19 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
31050
31107
  )
31051
31108
  );
31052
31109
  return (_ctx, _cache) => {
31053
- return redirectionSuggestion.value && label.value && link.value ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
31054
- createBaseVNode("h4", _hoisted_2$c, [
31055
- createBaseVNode("a", { href: link.value }, toDisplayString(label.value), 9, _hoisted_3$7)
31110
+ return redirectionSuggestion.value && label.value && link.value ? (openBlock(), createElementBlock("div", _hoisted_1$i, [
31111
+ createBaseVNode("h4", _hoisted_2$e, [
31112
+ createBaseVNode("a", { href: link.value }, toDisplayString(label.value), 9, _hoisted_3$9)
31056
31113
  ])
31057
31114
  ])) : createCommentVNode("", true);
31058
31115
  };
31059
31116
  }
31060
31117
  });
31061
- const _hoisted_1$f = {
31118
+ const _hoisted_1$h = {
31062
31119
  key: 0,
31063
31120
  class: "lupa-refiners-loading-notice"
31064
31121
  };
31065
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
31122
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
31066
31123
  __name: "RefinersLoadingNotice",
31067
31124
  props: {
31068
31125
  labels: {}
@@ -31073,13 +31130,155 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
31073
31130
  const { loadingRefiners } = storeToRefs(searchResultStore);
31074
31131
  const label = computed(() => props.labels.refinersLoadingNotice);
31075
31132
  return (_ctx, _cache) => {
31076
- return label.value && unref(loadingRefiners) ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
31133
+ return label.value && unref(loadingRefiners) ? (openBlock(), createElementBlock("div", _hoisted_1$h, [
31077
31134
  createBaseVNode("p", null, toDisplayString(label.value), 1),
31078
31135
  createVNode(Spinner)
31079
31136
  ])) : createCommentVNode("", true);
31080
31137
  };
31081
31138
  }
31082
31139
  });
31140
+ const _hoisted_1$g = { class: "lupa-related-query-item" };
31141
+ const _hoisted_2$d = { class: "lupa-related-query-image" };
31142
+ const _hoisted_3$8 = { class: "lupa-related-query-label" };
31143
+ const _hoisted_4$4 = { class: "lupa-related-query-title" };
31144
+ const _hoisted_5$2 = {
31145
+ key: 0,
31146
+ class: "lupa-related-query-count"
31147
+ };
31148
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
31149
+ __name: "RelatedQueryPanelApi",
31150
+ props: {
31151
+ relatedQuery: {},
31152
+ options: {}
31153
+ },
31154
+ setup(__props) {
31155
+ const props = __props;
31156
+ const itemToDisplay = computed(() => {
31157
+ var _a;
31158
+ return (_a = props.relatedQuery.topItems) == null ? void 0 : _a[0];
31159
+ });
31160
+ const optionsStore = useOptionsStore();
31161
+ const { searchResultOptions } = storeToRefs(optionsStore);
31162
+ const mainImage = computed(() => {
31163
+ var _a, _b, _c;
31164
+ return (_c = (_b = (_a = searchResultOptions.value) == null ? void 0 : _a.elements) == null ? void 0 : _b.find((e2) => e2.type === DocumentElementType.IMAGE)) != null ? _c : "";
31165
+ });
31166
+ const image = computed(() => {
31167
+ var _a, _b, _c;
31168
+ return (_c = (_b = (_a = props.options) == null ? void 0 : _a.image) != null ? _b : mainImage == null ? void 0 : mainImage.value) != null ? _c : "";
31169
+ });
31170
+ const query = computed(() => {
31171
+ var _a;
31172
+ return props.relatedQuery.action === "FILTER" ? props.relatedQuery.filterValue : (_a = props.relatedQuery.query) != null ? _a : "";
31173
+ });
31174
+ const totalItemCount = computed(() => {
31175
+ var _a;
31176
+ return (_a = props.relatedQuery.total) != null ? _a : 0;
31177
+ });
31178
+ return (_ctx, _cache) => {
31179
+ var _a;
31180
+ return openBlock(), createElementBlock("div", _hoisted_1$g, [
31181
+ createBaseVNode("div", _hoisted_2$d, [
31182
+ itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1p, {
31183
+ key: 0,
31184
+ "wrapper-class": "lupa-related-query-image-wrapper",
31185
+ "image-class": "lupa-related-query-image",
31186
+ item: itemToDisplay.value,
31187
+ options: image.value
31188
+ }, null, 8, ["item", "options"])) : createCommentVNode("", true)
31189
+ ]),
31190
+ createBaseVNode("div", _hoisted_3$8, [
31191
+ createBaseVNode("span", _hoisted_4$4, toDisplayString(query.value), 1),
31192
+ ((_a = _ctx.options) == null ? void 0 : _a.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$2, "(" + toDisplayString(totalItemCount.value) + ")", 1)) : createCommentVNode("", true)
31193
+ ])
31194
+ ]);
31195
+ };
31196
+ }
31197
+ });
31198
+ const _hoisted_1$f = {
31199
+ key: 0,
31200
+ class: "lupa-related-queries"
31201
+ };
31202
+ const _hoisted_2$c = {
31203
+ key: 0,
31204
+ class: "lupa-related-queries-title"
31205
+ };
31206
+ const _hoisted_3$7 = ["onClick"];
31207
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
31208
+ __name: "RelatedQueriesApi",
31209
+ props: {
31210
+ options: {}
31211
+ },
31212
+ setup(__props) {
31213
+ const props = __props;
31214
+ const searchResultStore = useSearchResultStore();
31215
+ const paramsStore = useParamsStore();
31216
+ const optionsStore = useOptionsStore();
31217
+ const { searchResult, relatedQueriesResult } = storeToRefs(searchResultStore);
31218
+ const relatedQueries2 = computed(() => {
31219
+ var _a, _b, _c, _d;
31220
+ const allQueries = (_b = (_a = relatedQueriesResult.value) == null ? void 0 : _a.relatedQueries) != null ? _b : [];
31221
+ return ((_d = (_c = props.options) == null ? void 0 : _c.source) == null ? void 0 : _d.count) ? allQueries.slice(0, props.options.source.count) : allQueries;
31222
+ });
31223
+ const currentSearchText = computed(() => {
31224
+ var _a, _b;
31225
+ return (_b = (_a = searchResult.value) == null ? void 0 : _a.searchText) != null ? _b : "";
31226
+ });
31227
+ const hasEnoughRelatedQueries = computed(() => {
31228
+ var _a;
31229
+ return ((_a = relatedQueries2.value) == null ? void 0 : _a.length) > 1;
31230
+ });
31231
+ const handleRelatedQueryClick = (relatedQuery) => {
31232
+ if (relatedQuery.action === "FILTER") {
31233
+ handleFilter({ key: relatedQuery.facetKey, value: relatedQuery.filterValue });
31234
+ } else {
31235
+ paramsStore.goToResults({ searchText: relatedQuery.query });
31236
+ }
31237
+ };
31238
+ const handleFilter = (query) => {
31239
+ var _a;
31240
+ toggleTermFilter(
31241
+ paramsStore.appendParams,
31242
+ { type: "terms", key: query.key, value: query.value },
31243
+ optionsStore.getQueryParamName,
31244
+ {},
31245
+ (_a = relatedQueries2.value) == null ? void 0 : _a.map((q) => `f.${q.facetKey}`)
31246
+ );
31247
+ };
31248
+ const getSelectedFilterClass = (relatedQuery) => {
31249
+ var _a, _b, _c, _d, _e;
31250
+ if (relatedQuery.action !== "FILTER") {
31251
+ return "";
31252
+ }
31253
+ return Array.isArray((_b = (_a = searchResult.value) == null ? void 0 : _a.filters) == null ? void 0 : _b[relatedQuery.facetKey]) && ((_e = (_d = (_c = searchResult.value) == null ? void 0 : _c.filters) == null ? void 0 : _d[relatedQuery.facetKey]) == null ? void 0 : _e.includes(
31254
+ relatedQuery.filterValue
31255
+ )) ? "lupa-selected-related-query-filter" : "";
31256
+ };
31257
+ return (_ctx, _cache) => {
31258
+ var _a, _b, _c, _d;
31259
+ return hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
31260
+ ((_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) ? (openBlock(), createElementBlock("h3", _hoisted_2$c, toDisplayString((_d = (_c = _ctx.options) == null ? void 0 : _c.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
31261
+ createBaseVNode("ul", null, [
31262
+ (openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries2.value, (query) => {
31263
+ return openBlock(), createElementBlock("li", {
31264
+ key: query.query + query.facetKey + query.filterValue + currentSearchText.value,
31265
+ class: normalizeClass(getSelectedFilterClass(query))
31266
+ }, [
31267
+ createBaseVNode("a", {
31268
+ onClick: ($event) => handleRelatedQueryClick(query)
31269
+ }, [
31270
+ createVNode(_sfc_main$i, {
31271
+ relatedQuery: query,
31272
+ options: _ctx.options
31273
+ }, null, 8, ["relatedQuery", "options"])
31274
+ ], 8, _hoisted_3$7)
31275
+ ], 2);
31276
+ }), 128))
31277
+ ])
31278
+ ])) : createCommentVNode("", true);
31279
+ };
31280
+ }
31281
+ });
31083
31282
  const _hoisted_1$e = { id: "lupa-search-results-products" };
31084
31283
  const _hoisted_2$b = {
31085
31284
  class: "lupa-products",
@@ -31091,12 +31290,12 @@ const _hoisted_3$6 = {
31091
31290
  "data-cy": "lupa-no-results-in-page"
31092
31291
  };
31093
31292
  const _hoisted_4$3 = {
31094
- key: 4,
31293
+ key: 5,
31095
31294
  class: "lupa-empty-results",
31096
31295
  "data-cy": "lupa-no-results"
31097
31296
  };
31098
- const _hoisted_5$1 = { key: 5 };
31099
- const _hoisted_6$1 = { key: 6 };
31297
+ const _hoisted_5$1 = { key: 6 };
31298
+ const _hoisted_6$1 = { key: 7 };
31100
31299
  const _sfc_main$g = /* @__PURE__ */ defineComponent({
31101
31300
  __name: "SearchResultsProducts",
31102
31301
  props: {
@@ -31117,7 +31316,8 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
31117
31316
  columnCount,
31118
31317
  searchResult,
31119
31318
  layout,
31120
- loading
31319
+ loading,
31320
+ relatedQueriesApiEnabled
31121
31321
  } = storeToRefs(searchResultStore);
31122
31322
  const productCardOptions = computed(() => {
31123
31323
  return pick(props.options, [
@@ -31198,6 +31398,13 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
31198
31398
  _lupaUpdatedQuery: searchResult.value.suggestedSearchText
31199
31399
  } : void 0;
31200
31400
  });
31401
+ const showLocalRelatedQueries = computed(() => {
31402
+ var _a;
31403
+ return Boolean(((_a = props.options.relatedQueries) == null ? void 0 : _a.source) && relatedQueriesApiEnabled.value === false);
31404
+ });
31405
+ const showApiRelatedQueries = computed(() => {
31406
+ return Boolean(relatedQueriesApiEnabled.value === true) && Boolean(props.options.relatedQueries);
31407
+ });
31201
31408
  const getProductKeyAction = (index, product) => {
31202
31409
  return getProductKey(`${index}`, product, props.options.idKey);
31203
31410
  };
@@ -31216,31 +31423,35 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
31216
31423
  key: 0,
31217
31424
  class: "lupa-loader"
31218
31425
  })) : createCommentVNode("", true),
31219
- createVNode(_sfc_main$i, {
31426
+ createVNode(_sfc_main$k, {
31220
31427
  options: _ctx.options.redirectionSuggestions
31221
31428
  }, null, 8, ["options"]),
31222
- createVNode(_sfc_main$n, {
31429
+ createVNode(_sfc_main$p, {
31223
31430
  options: _ctx.options,
31224
31431
  location: "top",
31225
31432
  sdkOptions: _ctx.options.options
31226
31433
  }, null, 8, ["options", "sdkOptions"]),
31227
- _ctx.options.relatedQueries ? (openBlock(), createBlock(_sfc_main$j, {
31434
+ showLocalRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$l, {
31228
31435
  key: 1,
31229
31436
  options: _ctx.options.relatedQueries
31230
31437
  }, null, 8, ["options"])) : createCommentVNode("", true),
31231
- unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
31232
- showTopFilters.value ? (openBlock(), createBlock(_sfc_main$J, {
31438
+ showApiRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$h, {
31439
+ key: 2,
31440
+ options: _ctx.options.relatedQueries
31441
+ }, null, 8, ["options"])) : createCommentVNode("", true),
31442
+ unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
31443
+ showTopFilters.value ? (openBlock(), createBlock(_sfc_main$L, {
31233
31444
  key: 0,
31234
31445
  options: (_a = _ctx.options.filters) != null ? _a : {}
31235
31446
  }, null, 8, ["options"])) : createCommentVNode("", true),
31236
- showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$C, {
31447
+ showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$E, {
31237
31448
  key: 1,
31238
31449
  class: "lupa-toolbar-mobile",
31239
31450
  options: _ctx.options,
31240
31451
  "pagination-location": "top",
31241
31452
  onFilter: filter2
31242
31453
  }, null, 8, ["options"])) : createCommentVNode("", true),
31243
- currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$X, {
31454
+ currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$Z, {
31244
31455
  key: 2,
31245
31456
  class: normalizeClass(currentFiltersClass.value),
31246
31457
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -31248,13 +31459,13 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
31248
31459
  expandable: !desktopFiltersExpanded.value
31249
31460
  }, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true)
31250
31461
  ], 64)) : createCommentVNode("", true),
31251
- unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
31252
- createVNode(_sfc_main$C, {
31462
+ unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [
31463
+ createVNode(_sfc_main$E, {
31253
31464
  class: "lupa-toolbar-top",
31254
31465
  options: _ctx.options,
31255
31466
  "pagination-location": "top"
31256
31467
  }, null, 8, ["options"]),
31257
- currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$X, {
31468
+ currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$Z, {
31258
31469
  key: 0,
31259
31470
  class: normalizeClass(currentFiltersClass.value),
31260
31471
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -31270,7 +31481,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
31270
31481
  options: productCardOptions.value
31271
31482
  });
31272
31483
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
31273
- return openBlock(), createBlock(_sfc_main$q, {
31484
+ return openBlock(), createBlock(_sfc_main$s, {
31274
31485
  style: normalizeStyle(columnSize.value),
31275
31486
  key: getProductKeyAction(index, product),
31276
31487
  product,
@@ -31287,12 +31498,12 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
31287
31498
  onClick: goToFirstPage
31288
31499
  }, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
31289
31500
  ])) : createCommentVNode("", true),
31290
- createVNode(_sfc_main$C, {
31501
+ createVNode(_sfc_main$E, {
31291
31502
  class: "lupa-toolbar-bottom",
31292
31503
  options: _ctx.options,
31293
31504
  "pagination-location": "bottom"
31294
31505
  }, null, 8, ["options"]),
31295
- createVNode(_sfc_main$n, {
31506
+ createVNode(_sfc_main$p, {
31296
31507
  options: _ctx.options,
31297
31508
  location: "bottom",
31298
31509
  sdkOptions: _ctx.options.options
@@ -31301,18 +31512,18 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
31301
31512
  createTextVNode(toDisplayString(_ctx.options.labels.emptyResults) + " ", 1),
31302
31513
  createBaseVNode("span", null, toDisplayString(unref(currentQueryText)), 1)
31303
31514
  ])) : createCommentVNode("", true),
31304
- createVNode(_sfc_main$h, {
31515
+ createVNode(_sfc_main$j, {
31305
31516
  labels: _ctx.options.labels
31306
31517
  }, null, 8, ["labels"]),
31307
31518
  hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
31308
- createVNode(_sfc_main$p, {
31519
+ createVNode(_sfc_main$r, {
31309
31520
  labels: similarQueriesLabels.value,
31310
31521
  columnSize: columnSize.value,
31311
31522
  productCardOptions: productCardOptions.value
31312
31523
  }, null, 8, ["labels", "columnSize", "productCardOptions"])
31313
31524
  ])) : createCommentVNode("", true),
31314
31525
  hasSimilarResults.value ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
31315
- createVNode(_sfc_main$l, {
31526
+ createVNode(_sfc_main$n, {
31316
31527
  labels: similarResultsLabels.value,
31317
31528
  columnSize: columnSize.value,
31318
31529
  productCardOptions: productCardOptions.value
@@ -31391,14 +31602,14 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
31391
31602
  ])) : createCommentVNode("", true),
31392
31603
  hasRelatedCategoryChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$2, [
31393
31604
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
31394
- return openBlock(), createBlock(_sfc_main$W, {
31605
+ return openBlock(), createBlock(_sfc_main$Y, {
31395
31606
  key: getCategoryKey(child),
31396
31607
  item: child,
31397
31608
  options: categoryOptions.value
31398
31609
  }, null, 8, ["item", "options"]);
31399
31610
  }), 128))
31400
31611
  ])) : createCommentVNode("", true),
31401
- createVNode(_sfc_main$C, {
31612
+ createVNode(_sfc_main$E, {
31402
31613
  class: "lupa-toolbar-mobile",
31403
31614
  "pagination-location": "top",
31404
31615
  options: _ctx.options
@@ -31551,14 +31762,23 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
31551
31762
  return;
31552
31763
  }
31553
31764
  LupaSearchSdk.query(props.options.queryKey, query2, props.options.options).then((res) => {
31554
- var _a, _b;
31765
+ var _a, _b, _c;
31555
31766
  if (res.success) {
31556
31767
  handleResults({ queryKey: props.options.queryKey, results: res });
31557
31768
  searchResultStore.add(requestId, __spreadValues2({}, res));
31769
+ searchResultStore.setRelatedQueriesApiEnabled((_a = res.hasRelatedQueries) != null ? _a : false);
31770
+ if (res.hasRelatedQueries) {
31771
+ searchResultStore.queryRelatedQueries(
31772
+ props.options.queryKey,
31773
+ publicQuery,
31774
+ res,
31775
+ props.options.options
31776
+ );
31777
+ }
31558
31778
  if (props.options.splitExpensiveRequests && res.refinementThreshold >= res.total) {
31559
31779
  queryRefiners(requestId, publicQuery);
31560
31780
  }
31561
- } else if ((_b = (_a = props.options) == null ? void 0 : _a.options) == null ? void 0 : _b.onError) {
31781
+ } else if ((_c = (_b = props.options) == null ? void 0 : _b.options) == null ? void 0 : _c.onError) {
31562
31782
  props.options.options.onError(res);
31563
31783
  }
31564
31784
  }).catch((err) => {
@@ -31697,8 +31917,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
31697
31917
  class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
31698
31918
  }, [
31699
31919
  _ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
31700
- createVNode(_sfc_main$$, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
31701
- createVNode(_sfc_main$Z, {
31920
+ createVNode(_sfc_main$11, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
31921
+ createVNode(_sfc_main$$, {
31702
31922
  "show-summary": true,
31703
31923
  options: _ctx.options,
31704
31924
  "is-product-list": (_a = _ctx.isProductList) != null ? _a : false
@@ -31708,12 +31928,12 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
31708
31928
  key: 1,
31709
31929
  options: _ctx.options
31710
31930
  }, null, 8, ["options"])) : createCommentVNode("", true),
31711
- _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$L, {
31931
+ _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$N, {
31712
31932
  key: 2,
31713
31933
  options: _ctx.options.filters,
31714
31934
  onFilter: handleParamsChange
31715
31935
  }, null, 8, ["options"])) : createCommentVNode("", true),
31716
- unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$K, {
31936
+ unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$M, {
31717
31937
  key: 3,
31718
31938
  breadcrumbs: _ctx.options.breadcrumbs
31719
31939
  }, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
@@ -31722,7 +31942,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
31722
31942
  id: "lupa-search-results",
31723
31943
  class: normalizeClass(["top-layout-wrapper", indicatorClasses.value])
31724
31944
  }, [
31725
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$M, {
31945
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$O, {
31726
31946
  key: 0,
31727
31947
  options: (_b = _ctx.options.filters) != null ? _b : {},
31728
31948
  ref_key: "searchResultsFilters",
@@ -31730,8 +31950,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
31730
31950
  onFilter: handleParamsChange
31731
31951
  }, null, 8, ["options"])) : createCommentVNode("", true),
31732
31952
  createBaseVNode("div", _hoisted_2$9, [
31733
- createVNode(_sfc_main$$, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
31734
- createVNode(_sfc_main$Z, {
31953
+ createVNode(_sfc_main$11, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
31954
+ createVNode(_sfc_main$$, {
31735
31955
  options: _ctx.options,
31736
31956
  "is-product-list": (_c = _ctx.isProductList) != null ? _c : false
31737
31957
  }, null, 8, ["options", "is-product-list"]),
@@ -31747,8 +31967,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
31747
31967
  }, 8, ["options", "ssr"])
31748
31968
  ])
31749
31969
  ], 2)) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
31750
- createVNode(_sfc_main$$, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
31751
- createVNode(_sfc_main$Z, {
31970
+ createVNode(_sfc_main$11, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
31971
+ createVNode(_sfc_main$$, {
31752
31972
  options: _ctx.options,
31753
31973
  "is-product-list": (_d = _ctx.isProductList) != null ? _d : false
31754
31974
  }, null, 8, ["options", "is-product-list"]),
@@ -31756,7 +31976,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
31756
31976
  id: "lupa-search-results",
31757
31977
  class: normalizeClass(indicatorClasses.value)
31758
31978
  }, [
31759
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$M, {
31979
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$O, {
31760
31980
  key: 0,
31761
31981
  options: (_e = _ctx.options.filters) != null ? _e : {},
31762
31982
  ref_key: "searchResultsFilters",
@@ -31908,7 +32128,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
31908
32128
  onClick: withModifiers(innerClick, ["stop"])
31909
32129
  }, [
31910
32130
  createBaseVNode("div", _hoisted_2$7, [
31911
- createVNode(_sfc_main$10, {
32131
+ createVNode(_sfc_main$12, {
31912
32132
  options: fullSearchBoxOptions.value,
31913
32133
  "is-search-container": true,
31914
32134
  ref_key: "searchBox",
@@ -32807,7 +33027,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
32807
33027
  key: getProductKeyAction(index, product)
32808
33028
  }, {
32809
33029
  default: withCtx(() => [
32810
- createVNode(_sfc_main$q, {
33030
+ createVNode(_sfc_main$s, {
32811
33031
  product,
32812
33032
  options: _ctx.options,
32813
33033
  "click-tracking-settings": clickTrackingSettings.value,
@@ -32822,7 +33042,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
32822
33042
  _: 1
32823
33043
  }, 16)) : (openBlock(), createElementBlock("div", _hoisted_3$4, [
32824
33044
  (openBlock(true), createElementBlock(Fragment, null, renderList(recommendations2.value, (product, index) => {
32825
- return openBlock(), createBlock(_sfc_main$q, {
33045
+ return openBlock(), createBlock(_sfc_main$s, {
32826
33046
  style: normalizeStyle(columnSize.value),
32827
33047
  key: getProductKeyAction(index, product),
32828
33048
  product,
@@ -33087,7 +33307,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
33087
33307
  createBaseVNode("a", {
33088
33308
  href: getLink(product)
33089
33309
  }, [
33090
- createVNode(_sfc_main$B, {
33310
+ createVNode(_sfc_main$D, {
33091
33311
  item: product,
33092
33312
  options: image.value
33093
33313
  }, null, 8, ["item", "options"])
@@ -33251,7 +33471,7 @@ const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
33251
33471
  return (_ctx, _cache) => {
33252
33472
  return openBlock(), createElementBlock("section", _hoisted_1$3, [
33253
33473
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
33254
- return openBlock(), createBlock(_sfc_main$q, {
33474
+ return openBlock(), createBlock(_sfc_main$s, {
33255
33475
  class: "lupa-chat-product-card",
33256
33476
  key: getProductKeyAction(index, product),
33257
33477
  product,
@@ -33444,7 +33664,7 @@ const _hoisted_4 = {
33444
33664
  key: 0,
33445
33665
  class: "lupasearch-chat-content"
33446
33666
  };
33447
- const _sfc_main$1w = /* @__PURE__ */ defineComponent({
33667
+ const _sfc_main$1y = /* @__PURE__ */ defineComponent({
33448
33668
  __name: "ChatContainer",
33449
33669
  props: {
33450
33670
  options: {}
@@ -39462,7 +39682,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
39462
39682
  };
39463
39683
  __expose({ fetch: fetch2 });
39464
39684
  return (_ctx, _cache) => {
39465
- return openBlock(), createBlock(unref(_sfc_main$10), {
39685
+ return openBlock(), createBlock(unref(_sfc_main$12), {
39466
39686
  options: fullSearchBoxOptions.value,
39467
39687
  ref_key: "searchBox",
39468
39688
  ref: searchBox2
@@ -40098,7 +40318,7 @@ const chat = (options, mountOptions) => {
40098
40318
  const instance = createVue(
40099
40319
  options.displayOptions.containerSelector,
40100
40320
  mountOptions == null ? void 0 : mountOptions.mountingBehavior,
40101
- _sfc_main$1w,
40321
+ _sfc_main$1y,
40102
40322
  {
40103
40323
  options
40104
40324
  }