@getlupa/client 1.17.14 → 1.18.0

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.
@@ -6957,6 +6957,15 @@ var __async = (__this, __arguments, generator) => {
6957
6957
  const errors = yield res.json();
6958
6958
  return { success: false, errors };
6959
6959
  });
6960
+ const relatedQueries = (queryKey, query, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
6961
+ const res = yield fetch(`${getApiUrl$1(environment, customBaseUrl)}query/${queryKey}/related`, Object.assign(Object.assign({}, defaultConfig), { body: JSON.stringify(query) }));
6962
+ if (res.status < 400) {
6963
+ const data = yield res.json();
6964
+ return Object.assign(Object.assign({}, data), { success: true });
6965
+ }
6966
+ const errors = yield res.json();
6967
+ return { success: false, errors };
6968
+ });
6960
6969
  const queryByIds = (queryKey, ids, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
6961
6970
  const idParam = ids.map((id) => `ids=${id}`).join("&");
6962
6971
  const res = yield fetch(`${getApiUrl$1(environment, customBaseUrl)}query/${queryKey}/ids?${idParam}`, Object.assign(Object.assign({}, defaultConfig), { method: "GET" }));
@@ -7038,6 +7047,9 @@ var __async = (__this, __arguments, generator) => {
7038
7047
  queryRefiners: (queryKey, publicQuery, options = null) => {
7039
7048
  return refiners(queryKey, publicQuery, (options === null || options === void 0 ? void 0 : options.environment) || "production", options === null || options === void 0 ? void 0 : options.customBaseUrl);
7040
7049
  },
7050
+ queryRelated: (queryKey, publicQuery, options = null) => {
7051
+ return relatedQueries(queryKey, publicQuery, (options === null || options === void 0 ? void 0 : options.environment) || "production", options === null || options === void 0 ? void 0 : options.customBaseUrl);
7052
+ },
7041
7053
  suggestions: (queryKey, suggestionQuery, options = null) => {
7042
7054
  if (options === null || options === void 0 ? void 0 : options.customUrl) {
7043
7055
  return suggestCustom(suggestionQuery, options);
@@ -14297,11 +14309,11 @@ var __async = (__this, __arguments, generator) => {
14297
14309
  resetHighlightIndex
14298
14310
  };
14299
14311
  });
14300
- const _hoisted_1$1i = { id: "lupa-search-box-input-container" };
14301
- const _hoisted_2$T = { class: "lupa-input-clear" };
14302
- const _hoisted_3$C = { id: "lupa-search-box-input" };
14303
- const _hoisted_4$u = ["value"];
14304
- const _hoisted_5$k = ["aria-label", "placeholder"];
14312
+ const _hoisted_1$1k = { id: "lupa-search-box-input-container" };
14313
+ const _hoisted_2$V = { class: "lupa-input-clear" };
14314
+ const _hoisted_3$E = { id: "lupa-search-box-input" };
14315
+ const _hoisted_4$v = ["value"];
14316
+ const _hoisted_5$l = ["aria-label", "placeholder"];
14305
14317
  const _hoisted_6$9 = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
14306
14318
  const _hoisted_7$7 = [
14307
14319
  _hoisted_6$9
@@ -14310,7 +14322,7 @@ var __async = (__this, __arguments, generator) => {
14310
14322
  key: 0,
14311
14323
  class: "lupa-close-label"
14312
14324
  };
14313
- const _sfc_main$1v = /* @__PURE__ */ defineComponent({
14325
+ const _sfc_main$1x = /* @__PURE__ */ defineComponent({
14314
14326
  __name: "SearchBoxInput",
14315
14327
  props: {
14316
14328
  options: {},
@@ -14394,20 +14406,20 @@ var __async = (__this, __arguments, generator) => {
14394
14406
  };
14395
14407
  __expose({ focus });
14396
14408
  return (_ctx, _cache) => {
14397
- return openBlock(), createElementBlock("div", _hoisted_1$1i, [
14398
- createBaseVNode("div", _hoisted_2$T, [
14409
+ return openBlock(), createElementBlock("div", _hoisted_1$1k, [
14410
+ createBaseVNode("div", _hoisted_2$V, [
14399
14411
  createBaseVNode("div", {
14400
14412
  class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
14401
14413
  onClick: clear2
14402
14414
  }, null, 2)
14403
14415
  ]),
14404
- createBaseVNode("div", _hoisted_3$C, [
14416
+ createBaseVNode("div", _hoisted_3$E, [
14405
14417
  createBaseVNode("input", {
14406
14418
  class: "lupa-hint",
14407
14419
  "aria-hidden": "true",
14408
14420
  value: showHint.value ? suggestedValue.value.item.suggestion : "",
14409
14421
  disabled: ""
14410
- }, null, 8, _hoisted_4$u),
14422
+ }, null, 8, _hoisted_4$v),
14411
14423
  withDirectives(createBaseVNode("input", mergeProps({
14412
14424
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
14413
14425
  }, inputAttributes.value, {
@@ -14421,7 +14433,7 @@ var __async = (__this, __arguments, generator) => {
14421
14433
  placeholder: labels.value.placeholder,
14422
14434
  onInput: handleInput,
14423
14435
  onFocus: handleFocus
14424
- }), null, 16, _hoisted_5$k), [
14436
+ }), null, 16, _hoisted_5$l), [
14425
14437
  [vModelText, inputValue.value]
14426
14438
  ]),
14427
14439
  _ctx.options.showSubmitButton ? (openBlock(), createElementBlock("button", {
@@ -14440,7 +14452,7 @@ var __async = (__this, __arguments, generator) => {
14440
14452
  };
14441
14453
  }
14442
14454
  });
14443
- const _sfc_main$1u = /* @__PURE__ */ defineComponent({
14455
+ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
14444
14456
  __name: "SearchBoxMoreResults",
14445
14457
  props: {
14446
14458
  labels: {},
@@ -14477,9 +14489,9 @@ var __async = (__this, __arguments, generator) => {
14477
14489
  };
14478
14490
  }
14479
14491
  });
14480
- const _hoisted_1$1h = { class: "lupa-search-box-history-item" };
14481
- const _hoisted_2$S = { class: "lupa-search-box-history-item-content" };
14482
- const _sfc_main$1t = /* @__PURE__ */ defineComponent({
14492
+ const _hoisted_1$1j = { class: "lupa-search-box-history-item" };
14493
+ const _hoisted_2$U = { class: "lupa-search-box-history-item-content" };
14494
+ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
14483
14495
  __name: "SearchBoxHistoryItem",
14484
14496
  props: {
14485
14497
  item: {},
@@ -14495,8 +14507,8 @@ var __async = (__this, __arguments, generator) => {
14495
14507
  emit2("click", { query: props.item });
14496
14508
  };
14497
14509
  return (_ctx, _cache) => {
14498
- return openBlock(), createElementBlock("div", _hoisted_1$1h, [
14499
- createBaseVNode("div", _hoisted_2$S, [
14510
+ return openBlock(), createElementBlock("div", _hoisted_1$1j, [
14511
+ createBaseVNode("div", _hoisted_2$U, [
14500
14512
  createBaseVNode("div", {
14501
14513
  class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
14502
14514
  onClick: click2
@@ -14510,11 +14522,11 @@ var __async = (__this, __arguments, generator) => {
14510
14522
  };
14511
14523
  }
14512
14524
  });
14513
- const _hoisted_1$1g = {
14525
+ const _hoisted_1$1i = {
14514
14526
  key: 0,
14515
14527
  class: "lupa-search-box-history-panel"
14516
14528
  };
14517
- const _sfc_main$1s = /* @__PURE__ */ defineComponent({
14529
+ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
14518
14530
  __name: "SearchBoxHistoryPanel",
14519
14531
  props: {
14520
14532
  options: {}
@@ -14564,9 +14576,9 @@ var __async = (__this, __arguments, generator) => {
14564
14576
  }
14565
14577
  };
14566
14578
  return (_ctx, _cache) => {
14567
- return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1g, [
14579
+ return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1i, [
14568
14580
  (openBlock(true), createElementBlock(Fragment, null, renderList(limitedHistory.value, (item, index) => {
14569
- return openBlock(), createBlock(_sfc_main$1t, {
14581
+ return openBlock(), createBlock(_sfc_main$1v, {
14570
14582
  key: item,
14571
14583
  item,
14572
14584
  highlighted: index === highlightIndex.value,
@@ -14582,15 +14594,15 @@ var __async = (__this, __arguments, generator) => {
14582
14594
  };
14583
14595
  }
14584
14596
  });
14585
- const _hoisted_1$1f = { class: "lupa-search-box-no-results" };
14586
- const _sfc_main$1r = /* @__PURE__ */ defineComponent({
14597
+ const _hoisted_1$1h = { class: "lupa-search-box-no-results" };
14598
+ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
14587
14599
  __name: "SearchBoxNoResults",
14588
14600
  props: {
14589
14601
  labels: {}
14590
14602
  },
14591
14603
  setup(__props) {
14592
14604
  return (_ctx, _cache) => {
14593
- return openBlock(), createElementBlock("p", _hoisted_1$1f, toDisplayString(_ctx.labels.noResults), 1);
14605
+ return openBlock(), createElementBlock("p", _hoisted_1$1h, toDisplayString(_ctx.labels.noResults), 1);
14594
14606
  };
14595
14607
  }
14596
14608
  });
@@ -14622,26 +14634,26 @@ var __async = (__this, __arguments, generator) => {
14622
14634
  }
14623
14635
  return gridTemplate.join(" ");
14624
14636
  };
14625
- const _hoisted_1$1e = ["innerHTML"];
14626
- const _hoisted_2$R = {
14637
+ const _hoisted_1$1g = ["innerHTML"];
14638
+ const _hoisted_2$T = {
14627
14639
  key: 1,
14628
14640
  "data-cy": "lupa-suggestion-value",
14629
14641
  class: "lupa-suggestion-value"
14630
14642
  };
14631
- const _hoisted_3$B = {
14643
+ const _hoisted_3$D = {
14632
14644
  key: 2,
14633
14645
  class: "lupa-suggestion-facet",
14634
14646
  "data-cy": "lupa-suggestion-facet"
14635
14647
  };
14636
- const _hoisted_4$t = {
14648
+ const _hoisted_4$u = {
14637
14649
  class: "lupa-suggestion-facet-label",
14638
14650
  "data-cy": "lupa-suggestion-facet-label"
14639
14651
  };
14640
- const _hoisted_5$j = {
14652
+ const _hoisted_5$k = {
14641
14653
  class: "lupa-suggestion-facet-value",
14642
14654
  "data-cy": "lupa-suggestion-facet-value"
14643
14655
  };
14644
- const _sfc_main$1q = /* @__PURE__ */ defineComponent({
14656
+ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
14645
14657
  __name: "SearchBoxSuggestion",
14646
14658
  props: {
14647
14659
  suggestion: {},
@@ -14677,20 +14689,20 @@ var __async = (__this, __arguments, generator) => {
14677
14689
  class: "lupa-suggestion-value",
14678
14690
  "data-cy": "lupa-suggestion-value",
14679
14691
  innerHTML: _ctx.suggestion.displayHighlight
14680
- }, null, 8, _hoisted_1$1e)) : (openBlock(), createElementBlock("div", _hoisted_2$R, toDisplayString(_ctx.suggestion.display), 1)),
14681
- _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$B, [
14682
- createBaseVNode("span", _hoisted_4$t, toDisplayString(facetLabel.value), 1),
14683
- createBaseVNode("span", _hoisted_5$j, toDisplayString(_ctx.suggestion.facet.title), 1)
14692
+ }, null, 8, _hoisted_1$1g)) : (openBlock(), createElementBlock("div", _hoisted_2$T, toDisplayString(_ctx.suggestion.display), 1)),
14693
+ _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$D, [
14694
+ createBaseVNode("span", _hoisted_4$u, toDisplayString(facetLabel.value), 1),
14695
+ createBaseVNode("span", _hoisted_5$k, toDisplayString(_ctx.suggestion.facet.title), 1)
14684
14696
  ])) : createCommentVNode("", true)
14685
14697
  ]);
14686
14698
  };
14687
14699
  }
14688
14700
  });
14689
- const _hoisted_1$1d = {
14701
+ const _hoisted_1$1f = {
14690
14702
  id: "lupa-search-box-suggestions",
14691
14703
  "data-cy": "lupa-search-box-suggestions"
14692
14704
  };
14693
- const _sfc_main$1p = /* @__PURE__ */ defineComponent({
14705
+ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
14694
14706
  __name: "SearchBoxSuggestions",
14695
14707
  props: {
14696
14708
  items: {},
@@ -14750,9 +14762,9 @@ var __async = (__this, __arguments, generator) => {
14750
14762
  });
14751
14763
  });
14752
14764
  return (_ctx, _cache) => {
14753
- return openBlock(), createElementBlock("div", _hoisted_1$1d, [
14765
+ return openBlock(), createElementBlock("div", _hoisted_1$1f, [
14754
14766
  (openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
14755
- return openBlock(), createBlock(_sfc_main$1q, {
14767
+ return openBlock(), createBlock(_sfc_main$1s, {
14756
14768
  key: getSuggestionKey(item),
14757
14769
  class: normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
14758
14770
  suggestion: item,
@@ -14780,7 +14792,7 @@ var __async = (__this, __arguments, generator) => {
14780
14792
  }, timeout);
14781
14793
  };
14782
14794
  };
14783
- const _sfc_main$1o = /* @__PURE__ */ defineComponent({
14795
+ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
14784
14796
  __name: "SearchBoxSuggestionsWrapper",
14785
14797
  props: {
14786
14798
  panel: {},
@@ -14822,7 +14834,7 @@ var __async = (__this, __arguments, generator) => {
14822
14834
  const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
14823
14835
  watch(() => props.panel.limit, getSuggestionsDebounced);
14824
14836
  return (_ctx, _cache) => {
14825
- return openBlock(), createBlock(_sfc_main$1p, {
14837
+ return openBlock(), createBlock(_sfc_main$1r, {
14826
14838
  items: searchResult.value,
14827
14839
  highlight: _ctx.panel.highlight,
14828
14840
  queryKey: _ctx.panel.queryKey,
@@ -23876,9 +23888,9 @@ and ensure you are accounting for this risk.
23876
23888
  targetImage.src = placeholder;
23877
23889
  }
23878
23890
  };
23879
- const _hoisted_1$1c = ["src"];
23880
- const _hoisted_2$Q = ["src"];
23881
- const _sfc_main$1n = /* @__PURE__ */ defineComponent({
23891
+ const _hoisted_1$1e = ["src"];
23892
+ const _hoisted_2$S = ["src"];
23893
+ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
23882
23894
  __name: "ProductImage",
23883
23895
  props: {
23884
23896
  item: {},
@@ -24020,7 +24032,7 @@ and ensure you are accounting for this risk.
24020
24032
  }, { alt: imageAlt.value ? imageAlt.value : void 0 }, {
24021
24033
  onError: replaceWithPlaceholder,
24022
24034
  key: finalUrl.value
24023
- }), null, 16, _hoisted_1$1c))
24035
+ }), null, 16, _hoisted_1$1e))
24024
24036
  ]),
24025
24037
  _: 1
24026
24038
  })) : (openBlock(), createElementBlock("img", mergeProps({
@@ -24028,12 +24040,12 @@ and ensure you are accounting for this risk.
24028
24040
  class: ["lupa-images-main-image", { [_ctx.imageClass]: true }],
24029
24041
  style: styleOverride.value,
24030
24042
  src: finalMainImageUrl.value
24031
- }, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$Q))
24043
+ }, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$S))
24032
24044
  ], 38);
24033
24045
  };
24034
24046
  }
24035
24047
  });
24036
- const _sfc_main$1m = /* @__PURE__ */ defineComponent({
24048
+ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
24037
24049
  __name: "SearchBoxProductImage",
24038
24050
  props: {
24039
24051
  item: {},
@@ -24041,7 +24053,7 @@ and ensure you are accounting for this risk.
24041
24053
  },
24042
24054
  setup(__props) {
24043
24055
  return (_ctx, _cache) => {
24044
- return openBlock(), createBlock(_sfc_main$1n, {
24056
+ return openBlock(), createBlock(_sfc_main$1p, {
24045
24057
  item: _ctx.item,
24046
24058
  options: _ctx.options,
24047
24059
  "wrapper-class": "lupa-search-box-image-wrapper",
@@ -24050,12 +24062,12 @@ and ensure you are accounting for this risk.
24050
24062
  };
24051
24063
  }
24052
24064
  });
24053
- const _hoisted_1$1b = ["innerHTML"];
24054
- const _hoisted_2$P = {
24065
+ const _hoisted_1$1d = ["innerHTML"];
24066
+ const _hoisted_2$R = {
24055
24067
  key: 1,
24056
24068
  class: "lupa-search-box-product-title"
24057
24069
  };
24058
- const _sfc_main$1l = /* @__PURE__ */ defineComponent({
24070
+ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
24059
24071
  __name: "SearchBoxProductTitle",
24060
24072
  props: {
24061
24073
  item: {},
@@ -24078,18 +24090,18 @@ and ensure you are accounting for this risk.
24078
24090
  key: 0,
24079
24091
  class: "lupa-search-box-product-title",
24080
24092
  innerHTML: sanitizedTitle.value
24081
- }, null, 8, _hoisted_1$1b)) : (openBlock(), createElementBlock("div", _hoisted_2$P, [
24093
+ }, null, 8, _hoisted_1$1d)) : (openBlock(), createElementBlock("div", _hoisted_2$R, [
24082
24094
  createBaseVNode("strong", null, toDisplayString(title.value), 1)
24083
24095
  ]));
24084
24096
  };
24085
24097
  }
24086
24098
  });
24087
- const _hoisted_1$1a = ["innerHTML"];
24088
- const _hoisted_2$O = {
24099
+ const _hoisted_1$1c = ["innerHTML"];
24100
+ const _hoisted_2$Q = {
24089
24101
  key: 1,
24090
24102
  class: "lupa-search-box-product-description"
24091
24103
  };
24092
- const _sfc_main$1k = /* @__PURE__ */ defineComponent({
24104
+ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
24093
24105
  __name: "SearchBoxProductDescription",
24094
24106
  props: {
24095
24107
  item: {},
@@ -24112,12 +24124,12 @@ and ensure you are accounting for this risk.
24112
24124
  key: 0,
24113
24125
  class: "lupa-search-box-product-description",
24114
24126
  innerHTML: sanitizedDescription.value
24115
- }, null, 8, _hoisted_1$1a)) : (openBlock(), createElementBlock("div", _hoisted_2$O, toDisplayString(description.value), 1));
24127
+ }, null, 8, _hoisted_1$1c)) : (openBlock(), createElementBlock("div", _hoisted_2$Q, toDisplayString(description.value), 1));
24116
24128
  };
24117
24129
  }
24118
24130
  });
24119
- const _hoisted_1$19 = { class: "lupa-search-box-product-price" };
24120
- const _sfc_main$1j = /* @__PURE__ */ defineComponent({
24131
+ const _hoisted_1$1b = { class: "lupa-search-box-product-price" };
24132
+ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
24121
24133
  __name: "SearchBoxProductPrice",
24122
24134
  props: {
24123
24135
  item: {},
@@ -24136,13 +24148,13 @@ and ensure you are accounting for this risk.
24136
24148
  );
24137
24149
  });
24138
24150
  return (_ctx, _cache) => {
24139
- return openBlock(), createElementBlock("div", _hoisted_1$19, [
24151
+ return openBlock(), createElementBlock("div", _hoisted_1$1b, [
24140
24152
  createBaseVNode("strong", null, toDisplayString(price.value), 1)
24141
24153
  ]);
24142
24154
  };
24143
24155
  }
24144
24156
  });
24145
- const _sfc_main$1i = /* @__PURE__ */ defineComponent({
24157
+ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
24146
24158
  __name: "SearchBoxProductRegularPrice",
24147
24159
  props: {
24148
24160
  item: {},
@@ -24170,12 +24182,12 @@ and ensure you are accounting for this risk.
24170
24182
  };
24171
24183
  }
24172
24184
  });
24173
- const _hoisted_1$18 = ["innerHTML"];
24174
- const _hoisted_2$N = { key: 0 };
24175
- const _hoisted_3$A = { key: 1 };
24176
- const _hoisted_4$s = { class: "lupa-search-box-custom-label" };
24177
- const _hoisted_5$i = { class: "lupa-search-box-custom-text" };
24178
- const _sfc_main$1h = /* @__PURE__ */ defineComponent({
24185
+ const _hoisted_1$1a = ["innerHTML"];
24186
+ const _hoisted_2$P = { key: 0 };
24187
+ const _hoisted_3$C = { key: 1 };
24188
+ const _hoisted_4$t = { class: "lupa-search-box-custom-label" };
24189
+ const _hoisted_5$j = { class: "lupa-search-box-custom-text" };
24190
+ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
24179
24191
  __name: "SearchBoxProductCustom",
24180
24192
  props: {
24181
24193
  item: {},
@@ -24201,20 +24213,20 @@ and ensure you are accounting for this risk.
24201
24213
  key: 0,
24202
24214
  class: [className.value, "lupa-search-box-product-custom"],
24203
24215
  innerHTML: text.value
24204
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$18)) : (openBlock(), createElementBlock("div", mergeProps({
24216
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$1a)) : (openBlock(), createElementBlock("div", mergeProps({
24205
24217
  key: 1,
24206
24218
  class: [className.value, "lupa-search-box-product-custom"]
24207
24219
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
24208
- !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$N, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$A, [
24209
- createBaseVNode("div", _hoisted_4$s, toDisplayString(label.value), 1),
24210
- createBaseVNode("div", _hoisted_5$i, toDisplayString(text.value), 1)
24220
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$C, [
24221
+ createBaseVNode("div", _hoisted_4$t, toDisplayString(label.value), 1),
24222
+ createBaseVNode("div", _hoisted_5$j, toDisplayString(text.value), 1)
24211
24223
  ]))
24212
24224
  ], 16));
24213
24225
  };
24214
24226
  }
24215
24227
  });
24216
- const _hoisted_1$17 = ["innerHTML"];
24217
- const _sfc_main$1g = /* @__PURE__ */ defineComponent({
24228
+ const _hoisted_1$19 = ["innerHTML"];
24229
+ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
24218
24230
  __name: "SearchBoxProductCustomHtml",
24219
24231
  props: {
24220
24232
  item: {},
@@ -24239,7 +24251,7 @@ and ensure you are accounting for this risk.
24239
24251
  return openBlock(), createElementBlock("div", mergeProps({
24240
24252
  class: className.value,
24241
24253
  innerHTML: text.value
24242
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$17);
24254
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$19);
24243
24255
  };
24244
24256
  }
24245
24257
  });
@@ -24296,10 +24308,13 @@ and ensure you are accounting for this risk.
24296
24308
  const loading = ref(false);
24297
24309
  const loadingFacets = ref(false);
24298
24310
  const loadingRefiners = ref(false);
24311
+ const loadingRelatedQueries = ref(false);
24299
24312
  const isMobileSidebarVisible = ref(false);
24300
24313
  const relatedCategoryChildren = ref([]);
24301
24314
  const lastRequestId = ref("");
24302
24315
  const searchRequestResults = ref({});
24316
+ const relatedQueriesResult = ref({});
24317
+ const relatedQueriesApiEnabled = ref(null);
24303
24318
  const lastResultsSource = ref(void 0);
24304
24319
  const optionsStore = useOptionsStore();
24305
24320
  const paramsStore = useParamsStore();
@@ -24453,6 +24468,9 @@ and ensure you are accounting for this risk.
24453
24468
  const screenWidth = (_a = currentScreenWidth.value) != null ? _a : "xl";
24454
24469
  columnCount.value = grid.columns[screenWidth];
24455
24470
  };
24471
+ const setRelatedQueriesApiEnabled = (enabled) => {
24472
+ relatedQueriesApiEnabled.value = enabled;
24473
+ };
24456
24474
  const setAddToCartAmount = (newAddToCartAmount) => {
24457
24475
  if (!newAddToCartAmount) {
24458
24476
  return;
@@ -24483,6 +24501,27 @@ and ensure you are accounting for this risk.
24483
24501
  const setRelatedCategoryChildren = (children) => {
24484
24502
  relatedCategoryChildren.value = [...children];
24485
24503
  };
24504
+ const queryRelatedQueries = (queryKey, publicQuery, result2, options) => __async2(void 0, null, function* () {
24505
+ var _a, _b;
24506
+ loadingRelatedQueries.value = true;
24507
+ const context = getLupaTrackingContext();
24508
+ const searchText = (_b = (_a = result2.suggestedSearchText) != null ? _a : result2.searchText) != null ? _b : "";
24509
+ const query = __spreadProps2(__spreadValues2(__spreadProps2(__spreadValues2({}, publicQuery), {
24510
+ searchText
24511
+ }), context), {
24512
+ modifiers: { facets: false, refiners: true }
24513
+ });
24514
+ LupaSearchSdk.queryRelated(queryKey, query, options).then((res) => {
24515
+ if (!res.success) {
24516
+ return;
24517
+ }
24518
+ relatedQueriesResult.value = res;
24519
+ }).catch((err) => {
24520
+ console.error(err);
24521
+ }).finally(() => {
24522
+ loadingRelatedQueries.value = false;
24523
+ });
24524
+ });
24486
24525
  return {
24487
24526
  isMobileSidebarVisible,
24488
24527
  searchResult,
@@ -24507,6 +24546,8 @@ and ensure you are accounting for this risk.
24507
24546
  hideFiltersOnExactMatchForKeys,
24508
24547
  relatedCategoryChildren,
24509
24548
  searchRequestResults,
24549
+ relatedQueriesResult,
24550
+ relatedQueriesApiEnabled,
24510
24551
  lastResultsSource,
24511
24552
  setSidebarState,
24512
24553
  queryFacet,
@@ -24519,15 +24560,17 @@ and ensure you are accounting for this risk.
24519
24560
  setLoading,
24520
24561
  clearSearchResult,
24521
24562
  filterVisibleFilterValues,
24522
- setRelatedCategoryChildren
24563
+ setRelatedCategoryChildren,
24564
+ queryRelatedQueries,
24565
+ setRelatedQueriesApiEnabled
24523
24566
  };
24524
24567
  });
24525
- const _hoisted_1$16 = { class: "lupa-search-box-add-to-cart-wrapper" };
24526
- const _hoisted_2$M = { class: "lupa-search-box-product-addtocart" };
24527
- const _hoisted_3$z = ["disabled"];
24528
- const _hoisted_4$r = ["href"];
24529
- const _hoisted_5$h = ["onClick", "disabled"];
24530
- const _sfc_main$1f = /* @__PURE__ */ defineComponent({
24568
+ const _hoisted_1$18 = { class: "lupa-search-box-add-to-cart-wrapper" };
24569
+ const _hoisted_2$O = { class: "lupa-search-box-product-addtocart" };
24570
+ const _hoisted_3$B = ["disabled"];
24571
+ const _hoisted_4$s = ["href"];
24572
+ const _hoisted_5$i = ["onClick", "disabled"];
24573
+ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
24531
24574
  __name: "SearchBoxProductAddToCart",
24532
24575
  props: {
24533
24576
  item: {},
@@ -24565,45 +24608,45 @@ and ensure you are accounting for this risk.
24565
24608
  return Boolean(props.link && props.options.link);
24566
24609
  });
24567
24610
  return (_ctx, _cache) => {
24568
- return openBlock(), createElementBlock("div", _hoisted_1$16, [
24569
- createBaseVNode("div", _hoisted_2$M, [
24611
+ return openBlock(), createElementBlock("div", _hoisted_1$18, [
24612
+ createBaseVNode("div", _hoisted_2$O, [
24570
24613
  hasLink.value ? (openBlock(), createElementBlock("button", mergeProps({
24571
24614
  key: 0,
24572
24615
  class: loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart",
24573
24616
  "data-cy": "lupa-add-to-cart",
24574
24617
  disabled: !inStockValue.value || loading.value
24575
24618
  }, _ctx.dynamicAttributes, { onClick: handleClick }), [
24576
- createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$r)
24577
- ], 16, _hoisted_3$z)) : (openBlock(), createElementBlock("button", mergeProps({
24619
+ createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$s)
24620
+ ], 16, _hoisted_3$B)) : (openBlock(), createElementBlock("button", mergeProps({
24578
24621
  key: 1,
24579
24622
  onClick: withModifiers(handleClick, ["stop", "prevent"]),
24580
24623
  class: loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart",
24581
24624
  "data-cy": "lupa-add-to-cart",
24582
24625
  type: "button",
24583
24626
  disabled: !inStockValue.value || loading.value
24584
- }, _ctx.dynamicAttributes), toDisplayString(label.value), 17, _hoisted_5$h))
24627
+ }, _ctx.dynamicAttributes), toDisplayString(label.value), 17, _hoisted_5$i))
24585
24628
  ])
24586
24629
  ]);
24587
24630
  };
24588
24631
  }
24589
24632
  });
24590
- const _hoisted_1$15 = {
24633
+ const _hoisted_1$17 = {
24591
24634
  key: 1,
24592
24635
  class: "lupa-search-box-element-badge-wrapper"
24593
24636
  };
24594
24637
  const __default__$4 = {
24595
24638
  components: {
24596
- SearchBoxProductImage: _sfc_main$1m,
24597
- SearchBoxProductTitle: _sfc_main$1l,
24598
- SearchBoxProductDescription: _sfc_main$1k,
24599
- SearchBoxProductPrice: _sfc_main$1j,
24600
- SearchBoxProductRegularPrice: _sfc_main$1i,
24601
- SearchBoxProductCustom: _sfc_main$1h,
24602
- SearchBoxProductCustomHtml: _sfc_main$1g,
24603
- SearchBoxProductAddToCart: _sfc_main$1f
24639
+ SearchBoxProductImage: _sfc_main$1o,
24640
+ SearchBoxProductTitle: _sfc_main$1n,
24641
+ SearchBoxProductDescription: _sfc_main$1m,
24642
+ SearchBoxProductPrice: _sfc_main$1l,
24643
+ SearchBoxProductRegularPrice: _sfc_main$1k,
24644
+ SearchBoxProductCustom: _sfc_main$1j,
24645
+ SearchBoxProductCustomHtml: _sfc_main$1i,
24646
+ SearchBoxProductAddToCart: _sfc_main$1h
24604
24647
  }
24605
24648
  };
24606
- const _sfc_main$1e = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
24649
+ const _sfc_main$1g = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
24607
24650
  __name: "SearchBoxProductElement",
24608
24651
  props: {
24609
24652
  item: {},
@@ -24675,7 +24718,7 @@ and ensure you are accounting for this risk.
24675
24718
  "dynamic-attributes": dynamicAttributes.value,
24676
24719
  link: _ctx.link
24677
24720
  }, renderDynamicAttributesOnParentElement.value && dynamicAttributes.value), null, 16, ["item", "options", "labels", "class", "inStock", "dynamic-attributes", "link"])) : createCommentVNode("", true)
24678
- ], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$15, [
24721
+ ], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$17, [
24679
24722
  displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), {
24680
24723
  key: 0,
24681
24724
  item: enhancedItem.value,
@@ -24690,14 +24733,14 @@ and ensure you are accounting for this risk.
24690
24733
  };
24691
24734
  }
24692
24735
  }));
24693
- const _hoisted_1$14 = { class: "lupa-badge-title" };
24694
- const _hoisted_2$L = ["src"];
24695
- const _hoisted_3$y = { key: 1 };
24696
- const _hoisted_4$q = {
24736
+ const _hoisted_1$16 = { class: "lupa-badge-title" };
24737
+ const _hoisted_2$N = ["src"];
24738
+ const _hoisted_3$A = { key: 1 };
24739
+ const _hoisted_4$r = {
24697
24740
  key: 0,
24698
24741
  class: "lupa-badge-full-text"
24699
24742
  };
24700
- const _sfc_main$1d = /* @__PURE__ */ defineComponent({
24743
+ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
24701
24744
  __name: "SearchResultGeneratedBadge",
24702
24745
  props: {
24703
24746
  options: {},
@@ -24730,20 +24773,20 @@ and ensure you are accounting for this risk.
24730
24773
  class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
24731
24774
  style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
24732
24775
  }, [
24733
- createBaseVNode("span", _hoisted_1$14, [
24776
+ createBaseVNode("span", _hoisted_1$16, [
24734
24777
  image.value ? (openBlock(), createElementBlock("img", {
24735
24778
  key: 0,
24736
24779
  src: image.value
24737
- }, null, 8, _hoisted_2$L)) : createCommentVNode("", true),
24738
- hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$y, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
24780
+ }, null, 8, _hoisted_2$N)) : createCommentVNode("", true),
24781
+ hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$A, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
24739
24782
  ]),
24740
- hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$q, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
24783
+ hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$r, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
24741
24784
  ], 6);
24742
24785
  };
24743
24786
  }
24744
24787
  });
24745
- const _hoisted_1$13 = { class: "lupa-generated-badges" };
24746
- const _sfc_main$1c = /* @__PURE__ */ defineComponent({
24788
+ const _hoisted_1$15 = { class: "lupa-generated-badges" };
24789
+ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
24747
24790
  __name: "SearchResultGeneratedBadges",
24748
24791
  props: {
24749
24792
  options: {}
@@ -24769,9 +24812,9 @@ and ensure you are accounting for this risk.
24769
24812
  })).filter((b) => Boolean(b.id));
24770
24813
  });
24771
24814
  return (_ctx, _cache) => {
24772
- return openBlock(), createElementBlock("div", _hoisted_1$13, [
24815
+ return openBlock(), createElementBlock("div", _hoisted_1$15, [
24773
24816
  (openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
24774
- return openBlock(), createBlock(_sfc_main$1d, {
24817
+ return openBlock(), createBlock(_sfc_main$1f, {
24775
24818
  key: badge.id,
24776
24819
  badge,
24777
24820
  options: _ctx.options
@@ -24781,8 +24824,8 @@ and ensure you are accounting for this risk.
24781
24824
  };
24782
24825
  }
24783
24826
  });
24784
- const _hoisted_1$12 = ["innerHTML"];
24785
- const _sfc_main$1b = /* @__PURE__ */ defineComponent({
24827
+ const _hoisted_1$14 = ["innerHTML"];
24828
+ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
24786
24829
  __name: "CustomBadge",
24787
24830
  props: {
24788
24831
  badge: {}
@@ -24803,12 +24846,12 @@ and ensure you are accounting for this risk.
24803
24846
  return openBlock(), createElementBlock("div", {
24804
24847
  class: normalizeClass(className.value),
24805
24848
  innerHTML: text.value
24806
- }, null, 10, _hoisted_1$12);
24849
+ }, null, 10, _hoisted_1$14);
24807
24850
  };
24808
24851
  }
24809
24852
  });
24810
- const _hoisted_1$11 = { class: "lupa-text-badges" };
24811
- const _sfc_main$1a = /* @__PURE__ */ defineComponent({
24853
+ const _hoisted_1$13 = { class: "lupa-text-badges" };
24854
+ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
24812
24855
  __name: "TextBadge",
24813
24856
  props: {
24814
24857
  badge: {}
@@ -24822,7 +24865,7 @@ and ensure you are accounting for this risk.
24822
24865
  return badges.value.slice(0, props.badge.maxItems);
24823
24866
  });
24824
24867
  return (_ctx, _cache) => {
24825
- return openBlock(), createElementBlock("div", _hoisted_1$11, [
24868
+ return openBlock(), createElementBlock("div", _hoisted_1$13, [
24826
24869
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
24827
24870
  return openBlock(), createElementBlock("div", {
24828
24871
  class: "lupa-badge lupa-text-badge",
@@ -24833,9 +24876,9 @@ and ensure you are accounting for this risk.
24833
24876
  };
24834
24877
  }
24835
24878
  });
24836
- const _hoisted_1$10 = { class: "lupa-image-badges" };
24837
- const _hoisted_2$K = ["src"];
24838
- const _sfc_main$19 = /* @__PURE__ */ defineComponent({
24879
+ const _hoisted_1$12 = { class: "lupa-image-badges" };
24880
+ const _hoisted_2$M = ["src"];
24881
+ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
24839
24882
  __name: "ImageBadge",
24840
24883
  props: {
24841
24884
  badge: {}
@@ -24855,7 +24898,7 @@ and ensure you are accounting for this risk.
24855
24898
  return `${props.badge.rootImageUrl}${src}`;
24856
24899
  };
24857
24900
  return (_ctx, _cache) => {
24858
- return openBlock(), createElementBlock("div", _hoisted_1$10, [
24901
+ return openBlock(), createElementBlock("div", _hoisted_1$12, [
24859
24902
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
24860
24903
  return openBlock(), createElementBlock("div", {
24861
24904
  class: "lupa-badge lupa-image-badge",
@@ -24863,14 +24906,14 @@ and ensure you are accounting for this risk.
24863
24906
  }, [
24864
24907
  createBaseVNode("img", {
24865
24908
  src: getImageUrl(item)
24866
- }, null, 8, _hoisted_2$K)
24909
+ }, null, 8, _hoisted_2$M)
24867
24910
  ]);
24868
24911
  }), 128))
24869
24912
  ]);
24870
24913
  };
24871
24914
  }
24872
24915
  });
24873
- const _sfc_main$18 = /* @__PURE__ */ defineComponent({
24916
+ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
24874
24917
  __name: "DiscountBadge",
24875
24918
  props: {
24876
24919
  badge: {}
@@ -24929,16 +24972,16 @@ and ensure you are accounting for this risk.
24929
24972
  };
24930
24973
  }
24931
24974
  });
24932
- const _hoisted_1$$ = { id: "lupa-search-results-badges" };
24975
+ const _hoisted_1$11 = { id: "lupa-search-results-badges" };
24933
24976
  const __default__$3 = {
24934
24977
  components: {
24935
- CustomBadge: _sfc_main$1b,
24936
- TextBadge: _sfc_main$1a,
24937
- ImageBadge: _sfc_main$19,
24938
- DiscountBadge: _sfc_main$18
24978
+ CustomBadge: _sfc_main$1d,
24979
+ TextBadge: _sfc_main$1c,
24980
+ ImageBadge: _sfc_main$1b,
24981
+ DiscountBadge: _sfc_main$1a
24939
24982
  }
24940
24983
  };
24941
- const _sfc_main$17 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
24984
+ const _sfc_main$19 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
24942
24985
  __name: "SearchResultsBadgeWrapper",
24943
24986
  props: {
24944
24987
  position: {},
@@ -25001,7 +25044,7 @@ and ensure you are accounting for this risk.
25001
25044
  }
25002
25045
  };
25003
25046
  return (_ctx, _cache) => {
25004
- return openBlock(), createElementBlock("div", _hoisted_1$$, [
25047
+ return openBlock(), createElementBlock("div", _hoisted_1$11, [
25005
25048
  createBaseVNode("div", {
25006
25049
  id: "lupa-badges",
25007
25050
  class: normalizeClass(anchorPosition.value)
@@ -25012,7 +25055,7 @@ and ensure you are accounting for this risk.
25012
25055
  badge
25013
25056
  }, null, 8, ["badge"]);
25014
25057
  }), 128)),
25015
- positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$1c, {
25058
+ positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$1e, {
25016
25059
  key: 0,
25017
25060
  options: _ctx.options
25018
25061
  }, null, 8, ["options"])) : createCommentVNode("", true)
@@ -25021,13 +25064,13 @@ and ensure you are accounting for this risk.
25021
25064
  };
25022
25065
  }
25023
25066
  }));
25024
- const _hoisted_1$_ = ["href"];
25025
- const _hoisted_2$J = { class: "lupa-search-box-product-details-section" };
25026
- const _hoisted_3$x = {
25067
+ const _hoisted_1$10 = ["href"];
25068
+ const _hoisted_2$L = { class: "lupa-search-box-product-details-section" };
25069
+ const _hoisted_3$z = {
25027
25070
  key: 0,
25028
25071
  class: "lupa-search-box-product-add-to-cart-section"
25029
25072
  };
25030
- const _sfc_main$16 = /* @__PURE__ */ defineComponent({
25073
+ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
25031
25074
  __name: "SearchBoxProduct",
25032
25075
  props: {
25033
25076
  item: {},
@@ -25113,7 +25156,7 @@ and ensure you are accounting for this risk.
25113
25156
  style: normalizeStyle(imageStyleOverride.value)
25114
25157
  }, [
25115
25158
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
25116
- return openBlock(), createBlock(_sfc_main$1e, {
25159
+ return openBlock(), createBlock(_sfc_main$1g, {
25117
25160
  class: "lupa-search-box-product-element",
25118
25161
  item: _ctx.item,
25119
25162
  element,
@@ -25123,10 +25166,10 @@ and ensure you are accounting for this risk.
25123
25166
  }, null, 8, ["item", "element", "labels", "link"]);
25124
25167
  }), 128))
25125
25168
  ], 4),
25126
- createBaseVNode("div", _hoisted_2$J, [
25169
+ createBaseVNode("div", _hoisted_2$L, [
25127
25170
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
25128
25171
  var _a;
25129
- return openBlock(), createBlock(_sfc_main$1e, {
25172
+ return openBlock(), createBlock(_sfc_main$1g, {
25130
25173
  key: element.key,
25131
25174
  class: "lupa-search-box-product-element",
25132
25175
  item: _ctx.item,
@@ -25137,7 +25180,7 @@ and ensure you are accounting for this risk.
25137
25180
  badgeOptions.value && ((_a = badgeOptions.value) == null ? void 0 : _a.anchorElementKey) === element.key ? {
25138
25181
  name: "badges",
25139
25182
  fn: withCtx(() => [
25140
- createVNode(_sfc_main$17, {
25183
+ createVNode(_sfc_main$19, {
25141
25184
  options: badgeOptions.value,
25142
25185
  position: "card"
25143
25186
  }, null, 8, ["options"])
@@ -25147,8 +25190,8 @@ and ensure you are accounting for this risk.
25147
25190
  ]), 1032, ["item", "element", "labels", "link"]);
25148
25191
  }), 128))
25149
25192
  ]),
25150
- addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$x, [
25151
- createVNode(_sfc_main$1e, {
25193
+ addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$z, [
25194
+ createVNode(_sfc_main$1g, {
25152
25195
  class: "lupa-search-box-product-element",
25153
25196
  item: _ctx.item,
25154
25197
  element: addToCartElement.value,
@@ -25157,7 +25200,7 @@ and ensure you are accounting for this risk.
25157
25200
  isInStock: isInStock.value
25158
25201
  }, null, 8, ["item", "element", "labels", "link", "isInStock"])
25159
25202
  ])) : createCommentVNode("", true)
25160
- ], 16, _hoisted_1$_);
25203
+ ], 16, _hoisted_1$10);
25161
25204
  };
25162
25205
  }
25163
25206
  });
@@ -25229,8 +25272,8 @@ and ensure you are accounting for this risk.
25229
25272
  };
25230
25273
  return { trackSearch, trackResults, trackEvent, trackDelayedEvent };
25231
25274
  });
25232
- const _hoisted_1$Z = { id: "lupa-search-box-products" };
25233
- const _sfc_main$15 = /* @__PURE__ */ defineComponent({
25275
+ const _hoisted_1$$ = { id: "lupa-search-box-products" };
25276
+ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
25234
25277
  __name: "SearchBoxProducts",
25235
25278
  props: {
25236
25279
  items: {},
@@ -25301,7 +25344,7 @@ and ensure you are accounting for this risk.
25301
25344
  }
25302
25345
  };
25303
25346
  return (_ctx, _cache) => {
25304
- return openBlock(), createElementBlock("div", _hoisted_1$Z, [
25347
+ return openBlock(), createElementBlock("div", _hoisted_1$$, [
25305
25348
  _ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
25306
25349
  return renderSlot(_ctx.$slots, "productCard", {
25307
25350
  key: index,
@@ -25313,7 +25356,7 @@ and ensure you are accounting for this risk.
25313
25356
  itemClicked: handleProductClick
25314
25357
  });
25315
25358
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
25316
- return openBlock(), createBlock(_sfc_main$16, {
25359
+ return openBlock(), createBlock(_sfc_main$18, {
25317
25360
  key: index,
25318
25361
  item,
25319
25362
  panelOptions: _ctx.panelOptions,
@@ -25328,9 +25371,9 @@ and ensure you are accounting for this risk.
25328
25371
  };
25329
25372
  }
25330
25373
  });
25331
- const _hoisted_1$Y = { class: "lupa-search-box-documents-go-to-results-wrapper" };
25332
- const _hoisted_2$I = { key: 0 };
25333
- const _sfc_main$14 = /* @__PURE__ */ defineComponent({
25374
+ const _hoisted_1$_ = { class: "lupa-search-box-documents-go-to-results-wrapper" };
25375
+ const _hoisted_2$K = { key: 0 };
25376
+ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
25334
25377
  __name: "SearchBoxProductsGoToResultsButton",
25335
25378
  props: {
25336
25379
  options: {},
@@ -25360,13 +25403,13 @@ and ensure you are accounting for this risk.
25360
25403
  emit2("goToResults");
25361
25404
  };
25362
25405
  return (_ctx, _cache) => {
25363
- return openBlock(), createElementBlock("div", _hoisted_1$Y, [
25406
+ return openBlock(), createElementBlock("div", _hoisted_1$_, [
25364
25407
  createBaseVNode("button", {
25365
25408
  class: "lupa-search-box-documents-go-to-results-button",
25366
25409
  onClick: goToResults
25367
25410
  }, [
25368
25411
  createTextVNode(toDisplayString(goToResultsLabel.value) + " ", 1),
25369
- totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$I, " " + toDisplayString(totalCount.value), 1)) : createCommentVNode("", true)
25412
+ totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$K, " " + toDisplayString(totalCount.value), 1)) : createCommentVNode("", true)
25370
25413
  ])
25371
25414
  ]);
25372
25415
  };
@@ -25453,7 +25496,7 @@ and ensure you are accounting for this risk.
25453
25496
  }
25454
25497
  return parsedObject;
25455
25498
  };
25456
- const _sfc_main$13 = /* @__PURE__ */ defineComponent({
25499
+ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
25457
25500
  __name: "SearchBoxProductsWrapper",
25458
25501
  props: {
25459
25502
  panel: {},
@@ -25522,7 +25565,7 @@ and ensure you are accounting for this risk.
25522
25565
  watch(() => props.panel.limit, getItemsDebounced);
25523
25566
  return (_ctx, _cache) => {
25524
25567
  var _a, _b;
25525
- return openBlock(), createBlock(_sfc_main$15, {
25568
+ return openBlock(), createBlock(_sfc_main$17, {
25526
25569
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
25527
25570
  panelOptions: _ctx.panel,
25528
25571
  labels: _ctx.labels,
@@ -25532,7 +25575,7 @@ and ensure you are accounting for this risk.
25532
25575
  default: withCtx(() => {
25533
25576
  var _a2;
25534
25577
  return [
25535
- showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main$14, {
25578
+ showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main$16, {
25536
25579
  key: 0,
25537
25580
  options: _ctx.searchBoxOptions,
25538
25581
  panel: _ctx.panel,
@@ -25553,7 +25596,7 @@ and ensure you are accounting for this risk.
25553
25596
  };
25554
25597
  }
25555
25598
  });
25556
- const _sfc_main$12 = /* @__PURE__ */ defineComponent({
25599
+ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
25557
25600
  __name: "SearchBoxRelatedSourceWrapper",
25558
25601
  props: {
25559
25602
  panel: {},
@@ -25625,7 +25668,7 @@ and ensure you are accounting for this risk.
25625
25668
  });
25626
25669
  return (_ctx, _cache) => {
25627
25670
  var _a, _b;
25628
- return openBlock(), createBlock(_sfc_main$15, {
25671
+ return openBlock(), createBlock(_sfc_main$17, {
25629
25672
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
25630
25673
  panelOptions: documentPanelOptions.value,
25631
25674
  labels: _ctx.labels,
@@ -25643,31 +25686,31 @@ and ensure you are accounting for this risk.
25643
25686
  };
25644
25687
  }
25645
25688
  });
25646
- const _hoisted_1$X = {
25689
+ const _hoisted_1$Z = {
25647
25690
  key: 0,
25648
25691
  id: "lupa-search-box-panel"
25649
25692
  };
25650
- const _hoisted_2$H = ["data-cy"];
25651
- const _hoisted_3$w = {
25693
+ const _hoisted_2$J = ["data-cy"];
25694
+ const _hoisted_3$y = {
25652
25695
  key: 0,
25653
25696
  class: "lupa-panel-title lupa-panel-title-top-results"
25654
25697
  };
25655
- const _hoisted_4$p = {
25698
+ const _hoisted_4$q = {
25656
25699
  key: 1,
25657
25700
  class: "lupa-panel-title"
25658
25701
  };
25659
- const _hoisted_5$g = {
25702
+ const _hoisted_5$h = {
25660
25703
  key: 1,
25661
25704
  id: "lupa-search-box-panel"
25662
25705
  };
25663
25706
  const __default__$2 = {
25664
25707
  components: {
25665
- SearchBoxSuggestionsWrapper: _sfc_main$1o,
25666
- SearchBoxProductsWrapper: _sfc_main$13,
25667
- SearchBoxRelatedSourceWrapper: _sfc_main$12
25708
+ SearchBoxSuggestionsWrapper: _sfc_main$1q,
25709
+ SearchBoxProductsWrapper: _sfc_main$15,
25710
+ SearchBoxRelatedSourceWrapper: _sfc_main$14
25668
25711
  }
25669
25712
  };
25670
- const _sfc_main$11 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
25713
+ const _sfc_main$13 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
25671
25714
  __name: "SearchBoxMainPanel",
25672
25715
  props: {
25673
25716
  options: {},
@@ -25822,7 +25865,7 @@ and ensure you are accounting for this risk.
25822
25865
  ref_key: "panelContainer",
25823
25866
  ref: panelContainer
25824
25867
  }, [
25825
- displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$X, [
25868
+ displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$Z, [
25826
25869
  labels.value.closePanel ? (openBlock(), createElementBlock("a", {
25827
25870
  key: 0,
25828
25871
  class: "lupa-search-box-close-panel",
@@ -25844,8 +25887,8 @@ and ensure you are accounting for this risk.
25844
25887
  style: normalizeStyle(panel.gridArea ? { gridArea: `${panel.gridArea}${index}` } : {}),
25845
25888
  "data-cy": "lupa-panel-" + panel.type + "-index"
25846
25889
  }, [
25847
- ((_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),
25848
- ((_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),
25890
+ ((_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),
25891
+ ((_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),
25849
25892
  panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
25850
25893
  key: 2,
25851
25894
  panel,
@@ -25867,21 +25910,21 @@ and ensure you are accounting for this risk.
25867
25910
  key: "0"
25868
25911
  } : void 0
25869
25912
  ]), 1064, ["panel", "search-box-options", "options", "debounce", "inputValue", "labels"])) : createCommentVNode("", true)
25870
- ], 14, _hoisted_2$H);
25913
+ ], 14, _hoisted_2$J);
25871
25914
  }), 128))
25872
25915
  ], 4),
25873
- !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1r, {
25916
+ !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1t, {
25874
25917
  key: 1,
25875
25918
  labels: labels.value
25876
25919
  }, null, 8, ["labels"])) : createCommentVNode("", true),
25877
- unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1u, {
25920
+ unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1w, {
25878
25921
  key: 2,
25879
25922
  labels: labels.value,
25880
25923
  options: _ctx.options,
25881
25924
  onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
25882
25925
  }, null, 8, ["labels", "options"])) : createCommentVNode("", true)
25883
- ])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$g, [
25884
- createVNode(_sfc_main$1s, {
25926
+ ])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$h, [
25927
+ createVNode(_sfc_main$1u, {
25885
25928
  options: _ctx.options.history,
25886
25929
  history: history.value,
25887
25930
  onGoToResults: handleGoToResults,
@@ -25906,8 +25949,8 @@ and ensure you are accounting for this risk.
25906
25949
  const elements = getElements(triggers);
25907
25950
  elements.forEach((e2) => e2 == null ? void 0 : e2.removeEventListener(BIND_EVENT, event));
25908
25951
  };
25909
- const _hoisted_1$W = { class: "lupa-search-box-wrapper" };
25910
- const _sfc_main$10 = /* @__PURE__ */ defineComponent({
25952
+ const _hoisted_1$Y = { class: "lupa-search-box-wrapper" };
25953
+ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
25911
25954
  __name: "SearchBox",
25912
25955
  props: {
25913
25956
  options: {},
@@ -26228,8 +26271,8 @@ and ensure you are accounting for this risk.
26228
26271
  id: "lupa-search-box",
26229
26272
  class: normalizeClass({ "lupa-search-box-opened": opened.value })
26230
26273
  }, [
26231
- createBaseVNode("div", _hoisted_1$W, [
26232
- createVNode(_sfc_main$1v, {
26274
+ createBaseVNode("div", _hoisted_1$Y, [
26275
+ createVNode(_sfc_main$1x, {
26233
26276
  options: inputOptions.value,
26234
26277
  suggestedValue: suggestedValue.value,
26235
26278
  "can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
@@ -26242,7 +26285,7 @@ and ensure you are accounting for this risk.
26242
26285
  onSearch: handleSearch,
26243
26286
  onClose: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
26244
26287
  }, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
26245
- opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$11, {
26288
+ opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$13, {
26246
26289
  key: 0,
26247
26290
  options: panelOptions.value,
26248
26291
  inputValue: inputValue.value,
@@ -26331,20 +26374,20 @@ and ensure you are accounting for this risk.
26331
26374
  }
26332
26375
  return searchParams;
26333
26376
  };
26334
- const _hoisted_1$V = {
26377
+ const _hoisted_1$X = {
26335
26378
  key: 0,
26336
26379
  id: "lupa-search-results-did-you-mean"
26337
26380
  };
26338
- const _hoisted_2$G = {
26381
+ const _hoisted_2$I = {
26339
26382
  key: 0,
26340
26383
  "data-cy": "suggested-search-text-label"
26341
26384
  };
26342
- const _hoisted_3$v = {
26385
+ const _hoisted_3$x = {
26343
26386
  key: 1,
26344
26387
  "data-cy": "did-you-mean-label"
26345
26388
  };
26346
- const _hoisted_4$o = { key: 1 };
26347
- const _sfc_main$$ = /* @__PURE__ */ defineComponent({
26389
+ const _hoisted_4$p = { key: 1 };
26390
+ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
26348
26391
  __name: "SearchResultsDidYouMean",
26349
26392
  props: {
26350
26393
  labels: {}
@@ -26376,8 +26419,8 @@ and ensure you are accounting for this risk.
26376
26419
  paramStore.goToResults({ searchText, facet });
26377
26420
  };
26378
26421
  return (_ctx, _cache) => {
26379
- return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$V, [
26380
- unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$G, [
26422
+ return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$X, [
26423
+ unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$I, [
26381
26424
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
26382
26425
  return openBlock(), createElementBlock("span", { key: index }, [
26383
26426
  createBaseVNode("span", {
@@ -26386,7 +26429,7 @@ and ensure you are accounting for this risk.
26386
26429
  ]);
26387
26430
  }), 128))
26388
26431
  ])) : createCommentVNode("", true),
26389
- didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$v, [
26432
+ didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$x, [
26390
26433
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.didYouMean.split(" "), (label, index) => {
26391
26434
  return openBlock(), createElementBlock("span", { key: index }, [
26392
26435
  label.includes("{1}") ? (openBlock(), createElementBlock("span", {
@@ -26394,7 +26437,7 @@ and ensure you are accounting for this risk.
26394
26437
  class: "lupa-did-you-mean lupa-highlighted-search-text",
26395
26438
  "data-cy": "did-you-mean-value",
26396
26439
  onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
26397
- }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$o, toDisplayString(label) + " ", 1))
26440
+ }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$p, toDisplayString(label) + " ", 1))
26398
26441
  ]);
26399
26442
  }), 128))
26400
26443
  ])) : createCommentVNode("", true)
@@ -26402,12 +26445,12 @@ and ensure you are accounting for this risk.
26402
26445
  };
26403
26446
  }
26404
26447
  });
26405
- const _hoisted_1$U = {
26448
+ const _hoisted_1$W = {
26406
26449
  key: 0,
26407
26450
  class: "lupa-search-results-summary"
26408
26451
  };
26409
- const _hoisted_2$F = ["innerHTML"];
26410
- const _sfc_main$_ = /* @__PURE__ */ defineComponent({
26452
+ const _hoisted_2$H = ["innerHTML"];
26453
+ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
26411
26454
  __name: "SearchResultsSummary",
26412
26455
  props: {
26413
26456
  label: {},
@@ -26422,8 +26465,8 @@ and ensure you are accounting for this risk.
26422
26465
  return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
26423
26466
  });
26424
26467
  return (_ctx, _cache) => {
26425
- return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$U, [
26426
- createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$F),
26468
+ return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$W, [
26469
+ createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$H),
26427
26470
  _ctx.clearable ? (openBlock(), createElementBlock("span", {
26428
26471
  key: 0,
26429
26472
  class: "lupa-filter-clear",
@@ -26434,19 +26477,19 @@ and ensure you are accounting for this risk.
26434
26477
  };
26435
26478
  }
26436
26479
  });
26437
- const _hoisted_1$T = {
26480
+ const _hoisted_1$V = {
26438
26481
  key: 0,
26439
26482
  class: "lupa-result-page-title",
26440
26483
  "data-cy": "lupa-result-page-title"
26441
26484
  };
26442
- const _hoisted_2$E = { key: 0 };
26443
- const _hoisted_3$u = {
26485
+ const _hoisted_2$G = { key: 0 };
26486
+ const _hoisted_3$w = {
26444
26487
  key: 1,
26445
26488
  class: "lupa-results-total-count"
26446
26489
  };
26447
- const _hoisted_4$n = { class: "lupa-results-total-count-number" };
26448
- const _hoisted_5$f = ["innerHTML"];
26449
- const _sfc_main$Z = /* @__PURE__ */ defineComponent({
26490
+ const _hoisted_4$o = { class: "lupa-results-total-count-number" };
26491
+ const _hoisted_5$g = ["innerHTML"];
26492
+ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
26450
26493
  __name: "SearchResultsTitle",
26451
26494
  props: {
26452
26495
  options: {},
@@ -26489,16 +26532,16 @@ and ensure you are accounting for this risk.
26489
26532
  });
26490
26533
  return (_ctx, _cache) => {
26491
26534
  return openBlock(), createElementBlock("div", null, [
26492
- showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$T, [
26535
+ showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$V, [
26493
26536
  createTextVNode(toDisplayString(searchResultsTitleTemplate.value || _ctx.options.labels.searchResults), 1),
26494
- queryText.value && !searchResultsTitleTemplate.value ? (openBlock(), createElementBlock("span", _hoisted_2$E, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
26495
- showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$u, [
26537
+ queryText.value && !searchResultsTitleTemplate.value ? (openBlock(), createElementBlock("span", _hoisted_2$G, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
26538
+ showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$w, [
26496
26539
  createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
26497
- createBaseVNode("span", _hoisted_4$n, toDisplayString(unref(totalItems)), 1),
26540
+ createBaseVNode("span", _hoisted_4$o, toDisplayString(unref(totalItems)), 1),
26498
26541
  createTextVNode(")")
26499
26542
  ])) : createCommentVNode("", true)
26500
26543
  ])) : createCommentVNode("", true),
26501
- _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$_, {
26544
+ _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$10, {
26502
26545
  key: 1,
26503
26546
  label: summaryLabel.value
26504
26547
  }, null, 8, ["label"])) : createCommentVNode("", true),
@@ -26506,20 +26549,20 @@ and ensure you are accounting for this risk.
26506
26549
  key: 2,
26507
26550
  class: "lupa-result-page-description-top",
26508
26551
  innerHTML: descriptionTop.value
26509
- }, null, 8, _hoisted_5$f)) : createCommentVNode("", true)
26552
+ }, null, 8, _hoisted_5$g)) : createCommentVNode("", true)
26510
26553
  ]);
26511
26554
  };
26512
26555
  }
26513
26556
  });
26514
- const _hoisted_1$S = {
26557
+ const _hoisted_1$U = {
26515
26558
  class: "lupa-current-filter-label",
26516
26559
  "data-cy": "lupa-current-filter-label"
26517
26560
  };
26518
- const _hoisted_2$D = {
26561
+ const _hoisted_2$F = {
26519
26562
  class: "lupa-current-filter-value",
26520
26563
  "data-cy": "lupa-current-filter-value"
26521
26564
  };
26522
- const _sfc_main$Y = /* @__PURE__ */ defineComponent({
26565
+ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
26523
26566
  __name: "CurrentFilterDisplay",
26524
26567
  props: {
26525
26568
  filter: {}
@@ -26541,23 +26584,23 @@ and ensure you are accounting for this risk.
26541
26584
  class: "lupa-current-filter-action",
26542
26585
  onClick: handleClick
26543
26586
  }, "⨉"),
26544
- createBaseVNode("div", _hoisted_1$S, toDisplayString(_ctx.filter.label) + ": ", 1),
26545
- createBaseVNode("div", _hoisted_2$D, toDisplayString(_ctx.filter.value), 1)
26587
+ createBaseVNode("div", _hoisted_1$U, toDisplayString(_ctx.filter.label) + ": ", 1),
26588
+ createBaseVNode("div", _hoisted_2$F, toDisplayString(_ctx.filter.value), 1)
26546
26589
  ], 2);
26547
26590
  };
26548
26591
  }
26549
26592
  });
26550
- const _hoisted_1$R = { class: "lupa-filter-title-text" };
26551
- const _hoisted_2$C = {
26593
+ const _hoisted_1$T = { class: "lupa-filter-title-text" };
26594
+ const _hoisted_2$E = {
26552
26595
  key: 0,
26553
26596
  class: "lupa-filter-count"
26554
26597
  };
26555
- const _hoisted_3$t = {
26598
+ const _hoisted_3$v = {
26556
26599
  key: 0,
26557
26600
  class: "filter-values"
26558
26601
  };
26559
- const _hoisted_4$m = { class: "lupa-current-filter-list" };
26560
- const _sfc_main$X = /* @__PURE__ */ defineComponent({
26602
+ const _hoisted_4$n = { class: "lupa-current-filter-list" };
26603
+ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
26561
26604
  __name: "CurrentFilters",
26562
26605
  props: {
26563
26606
  options: {},
@@ -26630,19 +26673,19 @@ and ensure you are accounting for this risk.
26630
26673
  class: "lupa-current-filter-title",
26631
26674
  onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
26632
26675
  }, [
26633
- createBaseVNode("div", _hoisted_1$R, [
26676
+ createBaseVNode("div", _hoisted_1$T, [
26634
26677
  createTextVNode(toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
26635
- _ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$C, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
26678
+ _ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$E, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
26636
26679
  ]),
26637
26680
  _ctx.expandable ? (openBlock(), createElementBlock("div", {
26638
26681
  key: 0,
26639
26682
  class: normalizeClass(["lupa-filter-title-caret", isOpen.value && "open"])
26640
26683
  }, null, 2)) : createCommentVNode("", true)
26641
26684
  ]),
26642
- !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$t, [
26643
- createBaseVNode("div", _hoisted_4$m, [
26685
+ !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$v, [
26686
+ createBaseVNode("div", _hoisted_4$n, [
26644
26687
  (openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter2) => {
26645
- return openBlock(), createBlock(_sfc_main$Y, {
26688
+ return openBlock(), createBlock(_sfc_main$_, {
26646
26689
  key: filter2.key + "_" + filter2.value,
26647
26690
  filter: filter2,
26648
26691
  onRemove: handleRemove
@@ -26659,8 +26702,8 @@ and ensure you are accounting for this risk.
26659
26702
  };
26660
26703
  }
26661
26704
  });
26662
- const _hoisted_1$Q = ["href"];
26663
- const _sfc_main$W = /* @__PURE__ */ defineComponent({
26705
+ const _hoisted_1$S = ["href"];
26706
+ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
26664
26707
  __name: "CategoryFilterItem",
26665
26708
  props: {
26666
26709
  options: {},
@@ -26697,20 +26740,20 @@ and ensure you are accounting for this risk.
26697
26740
  "data-cy": "lupa-child-category-item",
26698
26741
  href: urlLink.value,
26699
26742
  onClick: handleNavigation
26700
- }, toDisplayString(title.value), 9, _hoisted_1$Q)
26743
+ }, toDisplayString(title.value), 9, _hoisted_1$S)
26701
26744
  ], 2);
26702
26745
  };
26703
26746
  }
26704
26747
  });
26705
- const _hoisted_1$P = {
26748
+ const _hoisted_1$R = {
26706
26749
  class: "lupa-category-filter",
26707
26750
  "data-cy": "lupa-category-filter"
26708
26751
  };
26709
- const _hoisted_2$B = { class: "lupa-category-back" };
26710
- const _hoisted_3$s = ["href"];
26711
- const _hoisted_4$l = ["href"];
26712
- const _hoisted_5$e = { class: "lupa-child-category-list" };
26713
- const _sfc_main$V = /* @__PURE__ */ defineComponent({
26752
+ const _hoisted_2$D = { class: "lupa-category-back" };
26753
+ const _hoisted_3$u = ["href"];
26754
+ const _hoisted_4$m = ["href"];
26755
+ const _hoisted_5$f = { class: "lupa-child-category-list" };
26756
+ const _sfc_main$X = /* @__PURE__ */ defineComponent({
26714
26757
  __name: "CategoryFilter",
26715
26758
  props: {
26716
26759
  options: {}
@@ -26798,14 +26841,14 @@ and ensure you are accounting for this risk.
26798
26841
  };
26799
26842
  __expose({ fetch: fetch2 });
26800
26843
  return (_ctx, _cache) => {
26801
- return openBlock(), createElementBlock("div", _hoisted_1$P, [
26802
- createBaseVNode("div", _hoisted_2$B, [
26844
+ return openBlock(), createElementBlock("div", _hoisted_1$R, [
26845
+ createBaseVNode("div", _hoisted_2$D, [
26803
26846
  hasBackButton.value ? (openBlock(), createElementBlock("a", {
26804
26847
  key: 0,
26805
26848
  "data-cy": "lupa-category-back",
26806
26849
  href: backUrlLink.value,
26807
26850
  onClick: handleNavigationBack
26808
- }, toDisplayString(backTitle.value), 9, _hoisted_3$s)) : createCommentVNode("", true)
26851
+ }, toDisplayString(backTitle.value), 9, _hoisted_3$u)) : createCommentVNode("", true)
26809
26852
  ]),
26810
26853
  createBaseVNode("div", {
26811
26854
  class: normalizeClass(["lupa-current-category", { "lupa-current-category-active": isActive }])
@@ -26815,11 +26858,11 @@ and ensure you are accounting for this risk.
26815
26858
  href: parentUrlLink.value,
26816
26859
  class: normalizeClass({ "lupa-title-category": !hasBackButton.value }),
26817
26860
  onClick: handleNavigationParent
26818
- }, toDisplayString(parentTitle.value), 11, _hoisted_4$l)
26861
+ }, toDisplayString(parentTitle.value), 11, _hoisted_4$m)
26819
26862
  ], 2),
26820
- createBaseVNode("div", _hoisted_5$e, [
26863
+ createBaseVNode("div", _hoisted_5$f, [
26821
26864
  (openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
26822
- return openBlock(), createBlock(_sfc_main$W, {
26865
+ return openBlock(), createBlock(_sfc_main$Y, {
26823
26866
  key: getCategoryKey(child),
26824
26867
  item: child,
26825
26868
  options: _ctx.options
@@ -26830,14 +26873,14 @@ and ensure you are accounting for this risk.
26830
26873
  };
26831
26874
  }
26832
26875
  });
26833
- const _hoisted_1$O = {
26876
+ const _hoisted_1$Q = {
26834
26877
  class: "lupa-search-result-facet-term-values",
26835
26878
  "data-cy": "lupa-search-result-facet-term-values"
26836
26879
  };
26837
- const _hoisted_2$A = ["placeholder"];
26838
- const _hoisted_3$r = { class: "lupa-terms-list" };
26839
- const _hoisted_4$k = ["onClick"];
26840
- const _hoisted_5$d = { class: "lupa-term-checkbox-wrapper" };
26880
+ const _hoisted_2$C = ["placeholder"];
26881
+ const _hoisted_3$t = { class: "lupa-terms-list" };
26882
+ const _hoisted_4$l = ["onClick"];
26883
+ const _hoisted_5$e = { class: "lupa-term-checkbox-wrapper" };
26841
26884
  const _hoisted_6$8 = { class: "lupa-term-label" };
26842
26885
  const _hoisted_7$6 = {
26843
26886
  key: 0,
@@ -26845,7 +26888,7 @@ and ensure you are accounting for this risk.
26845
26888
  };
26846
26889
  const _hoisted_8$2 = { key: 0 };
26847
26890
  const _hoisted_9$2 = { key: 1 };
26848
- const _sfc_main$U = /* @__PURE__ */ defineComponent({
26891
+ const _sfc_main$W = /* @__PURE__ */ defineComponent({
26849
26892
  __name: "TermFacet",
26850
26893
  props: {
26851
26894
  options: {},
@@ -26934,17 +26977,17 @@ and ensure you are accounting for this risk.
26934
26977
  }
26935
26978
  };
26936
26979
  return (_ctx, _cache) => {
26937
- return openBlock(), createElementBlock("div", _hoisted_1$O, [
26980
+ return openBlock(), createElementBlock("div", _hoisted_1$Q, [
26938
26981
  isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
26939
26982
  key: 0,
26940
26983
  class: "lupa-term-filter",
26941
26984
  "data-cy": "lupa-term-filter",
26942
26985
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
26943
26986
  placeholder: _ctx.options.labels.facetFilter
26944
- }, null, 8, _hoisted_2$A)), [
26987
+ }, null, 8, _hoisted_2$C)), [
26945
26988
  [vModelText, termFilter.value]
26946
26989
  ]) : createCommentVNode("", true),
26947
- createBaseVNode("div", _hoisted_3$r, [
26990
+ createBaseVNode("div", _hoisted_3$t, [
26948
26991
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
26949
26992
  return openBlock(), createElementBlock("div", {
26950
26993
  class: normalizeClass(["lupa-facet-term", { checked: isChecked(item) }]),
@@ -26952,7 +26995,7 @@ and ensure you are accounting for this risk.
26952
26995
  key: item.title,
26953
26996
  onClick: ($event) => handleFacetClick(item)
26954
26997
  }, [
26955
- createBaseVNode("div", _hoisted_5$d, [
26998
+ createBaseVNode("div", _hoisted_5$e, [
26956
26999
  createBaseVNode("span", {
26957
27000
  class: normalizeClass(["lupa-term-checkbox", { checked: isChecked(item) }])
26958
27001
  }, null, 2)
@@ -26963,7 +27006,7 @@ and ensure you are accounting for this risk.
26963
27006
  createBaseVNode("span", _hoisted_6$8, toDisplayString(getItemLabel(item)), 1),
26964
27007
  _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_7$6, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
26965
27008
  ], 2)
26966
- ], 10, _hoisted_4$k);
27009
+ ], 10, _hoisted_4$l);
26967
27010
  }), 128))
26968
27011
  ]),
26969
27012
  displayShowMore.value ? (openBlock(), createElementBlock("div", {
@@ -27954,20 +27997,20 @@ and ensure you are accounting for this risk.
27954
27997
  m.render = function(e2, t, r, i, n, o) {
27955
27998
  return openBlock(), createElementBlock("div", mergeProps(e2.sliderProps, { ref: "slider" }), null, 16);
27956
27999
  }, m.__file = "src/Slider.vue";
27957
- const _hoisted_1$N = { class: "lupa-search-result-facet-stats-values" };
27958
- const _hoisted_2$z = {
28000
+ const _hoisted_1$P = { class: "lupa-search-result-facet-stats-values" };
28001
+ const _hoisted_2$B = {
27959
28002
  key: 0,
27960
28003
  class: "lupa-stats-facet-summary"
27961
28004
  };
27962
- const _hoisted_3$q = {
28005
+ const _hoisted_3$s = {
27963
28006
  key: 1,
27964
28007
  class: "lupa-stats-facet-summary-input"
27965
28008
  };
27966
- const _hoisted_4$j = {
28009
+ const _hoisted_4$k = {
27967
28010
  key: 0,
27968
28011
  class: "lupa-stats-range-label"
27969
28012
  };
27970
- const _hoisted_5$c = { class: "lupa-stats-from" };
28013
+ const _hoisted_5$d = { class: "lupa-stats-from" };
27971
28014
  const _hoisted_6$7 = ["max", "min", "pattern", "aria-label"];
27972
28015
  const _hoisted_7$5 = { key: 0 };
27973
28016
  const _hoisted_8$1 = /* @__PURE__ */ createBaseVNode("div", { class: "lupa-stats-separator" }, null, -1);
@@ -27982,7 +28025,7 @@ and ensure you are accounting for this risk.
27982
28025
  key: 2,
27983
28026
  class: "lupa-stats-slider-wrapper"
27984
28027
  };
27985
- const _sfc_main$T = /* @__PURE__ */ defineComponent({
28028
+ const _sfc_main$V = /* @__PURE__ */ defineComponent({
27986
28029
  __name: "StatsFacet",
27987
28030
  props: {
27988
28031
  options: {},
@@ -28163,11 +28206,11 @@ and ensure you are accounting for this risk.
28163
28206
  innerSliderRange.value = value;
28164
28207
  };
28165
28208
  return (_ctx, _cache) => {
28166
- return openBlock(), createElementBlock("div", _hoisted_1$N, [
28167
- !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$z, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$q, [
28209
+ return openBlock(), createElementBlock("div", _hoisted_1$P, [
28210
+ !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$B, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$s, [
28168
28211
  createBaseVNode("div", null, [
28169
- rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$j, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
28170
- createBaseVNode("div", _hoisted_5$c, [
28212
+ rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$k, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
28213
+ createBaseVNode("div", _hoisted_5$d, [
28171
28214
  withDirectives(createBaseVNode("input", {
28172
28215
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
28173
28216
  type: "text",
@@ -28230,17 +28273,17 @@ and ensure you are accounting for this risk.
28230
28273
  };
28231
28274
  }
28232
28275
  });
28233
- const _hoisted_1$M = { class: "lupa-term-checkbox-wrapper" };
28234
- const _hoisted_2$y = { class: "lupa-term-label" };
28235
- const _hoisted_3$p = {
28276
+ const _hoisted_1$O = { class: "lupa-term-checkbox-wrapper" };
28277
+ const _hoisted_2$A = { class: "lupa-term-label" };
28278
+ const _hoisted_3$r = {
28236
28279
  key: 0,
28237
28280
  class: "lupa-term-count"
28238
28281
  };
28239
- const _hoisted_4$i = {
28282
+ const _hoisted_4$j = {
28240
28283
  key: 0,
28241
28284
  class: "lupa-facet-level"
28242
28285
  };
28243
- const _sfc_main$S = /* @__PURE__ */ defineComponent({
28286
+ const _sfc_main$U = /* @__PURE__ */ defineComponent({
28244
28287
  __name: "HierarchyFacetLevel",
28245
28288
  props: {
28246
28289
  options: {},
@@ -28293,7 +28336,7 @@ and ensure you are accounting for this risk.
28293
28336
  "data-cy": "lupa-facet-term",
28294
28337
  onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
28295
28338
  }, [
28296
- createBaseVNode("div", _hoisted_1$M, [
28339
+ createBaseVNode("div", _hoisted_1$O, [
28297
28340
  createBaseVNode("span", {
28298
28341
  class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
28299
28342
  }, null, 2)
@@ -28301,11 +28344,11 @@ and ensure you are accounting for this risk.
28301
28344
  createBaseVNode("div", {
28302
28345
  class: normalizeClass(["lupa-term-checkbox-label", { [getFacetValueClass(_ctx.item)]: true }])
28303
28346
  }, [
28304
- createBaseVNode("span", _hoisted_2$y, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
28305
- _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_3$p, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
28347
+ createBaseVNode("span", _hoisted_2$A, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
28348
+ _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_3$r, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
28306
28349
  ], 2)
28307
28350
  ]),
28308
- showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$i, [
28351
+ showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$j, [
28309
28352
  (openBlock(true), createElementBlock(Fragment, null, renderList(treeItem.value.children, (itemChild) => {
28310
28353
  return openBlock(), createBlock(_component_HierarchyFacetLevel, {
28311
28354
  key: itemChild.title,
@@ -28321,13 +28364,13 @@ and ensure you are accounting for this risk.
28321
28364
  };
28322
28365
  }
28323
28366
  });
28324
- const _hoisted_1$L = {
28367
+ const _hoisted_1$N = {
28325
28368
  class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
28326
28369
  "data-cy": "lupa-search-result-facet-term-values"
28327
28370
  };
28328
- const _hoisted_2$x = { key: 0 };
28329
- const _hoisted_3$o = ["placeholder"];
28330
- const _sfc_main$R = /* @__PURE__ */ defineComponent({
28371
+ const _hoisted_2$z = { key: 0 };
28372
+ const _hoisted_3$q = ["placeholder"];
28373
+ const _sfc_main$T = /* @__PURE__ */ defineComponent({
28331
28374
  __name: "HierarchyFacet",
28332
28375
  props: {
28333
28376
  options: {},
@@ -28382,19 +28425,19 @@ and ensure you are accounting for this risk.
28382
28425
  showAll.value = false;
28383
28426
  };
28384
28427
  return (_ctx, _cache) => {
28385
- return openBlock(), createElementBlock("div", _hoisted_1$L, [
28386
- isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$x, [
28428
+ return openBlock(), createElementBlock("div", _hoisted_1$N, [
28429
+ isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$z, [
28387
28430
  withDirectives(createBaseVNode("input", {
28388
28431
  class: "lupa-term-filter",
28389
28432
  "data-cy": "lupa-term-filter",
28390
28433
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
28391
28434
  placeholder: _ctx.options.labels.facetFilter
28392
- }, null, 8, _hoisted_3$o), [
28435
+ }, null, 8, _hoisted_3$q), [
28393
28436
  [vModelText, termFilter.value]
28394
28437
  ])
28395
28438
  ])) : createCommentVNode("", true),
28396
28439
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
28397
- return openBlock(), createBlock(_sfc_main$S, {
28440
+ return openBlock(), createBlock(_sfc_main$U, {
28398
28441
  key: item.title,
28399
28442
  options: _ctx.options,
28400
28443
  item,
@@ -28418,20 +28461,20 @@ and ensure you are accounting for this risk.
28418
28461
  };
28419
28462
  }
28420
28463
  });
28421
- const _hoisted_1$K = { class: "lupa-facet-label-text" };
28422
- const _hoisted_2$w = {
28464
+ const _hoisted_1$M = { class: "lupa-facet-label-text" };
28465
+ const _hoisted_2$y = {
28423
28466
  key: 0,
28424
28467
  class: "lupa-facet-content",
28425
28468
  "data-cy": "lupa-facet-content"
28426
28469
  };
28427
28470
  const __default__$1 = {
28428
28471
  components: {
28429
- TermFacet: _sfc_main$U,
28430
- StatsFacet: _sfc_main$T,
28431
- HierarchyFacet: _sfc_main$R
28472
+ TermFacet: _sfc_main$W,
28473
+ StatsFacet: _sfc_main$V,
28474
+ HierarchyFacet: _sfc_main$T
28432
28475
  }
28433
28476
  };
28434
- const _sfc_main$Q = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
28477
+ const _sfc_main$S = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
28435
28478
  __name: "FacetDisplay",
28436
28479
  props: {
28437
28480
  options: {},
@@ -28552,12 +28595,12 @@ and ensure you are accounting for this risk.
28552
28595
  "data-cy": "lupa-search-result-facet-label",
28553
28596
  onClick: toggleFacet
28554
28597
  }, [
28555
- createBaseVNode("div", _hoisted_1$K, toDisplayString(facetLabel.value), 1),
28598
+ createBaseVNode("div", _hoisted_1$M, toDisplayString(facetLabel.value), 1),
28556
28599
  createBaseVNode("div", {
28557
28600
  class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
28558
28601
  }, null, 2)
28559
28602
  ], 2),
28560
- isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$w, [
28603
+ isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$y, [
28561
28604
  (openBlock(), createBlock(resolveDynamicComponent(facetType.value), {
28562
28605
  facet: facet.value,
28563
28606
  currentFilters: currentFilters.value[facet.value.key],
@@ -28575,12 +28618,12 @@ and ensure you are accounting for this risk.
28575
28618
  };
28576
28619
  }
28577
28620
  }));
28578
- const _hoisted_1$J = { class: "lupa-search-result-facet-section" };
28579
- const _hoisted_2$v = {
28621
+ const _hoisted_1$L = { class: "lupa-search-result-facet-section" };
28622
+ const _hoisted_2$x = {
28580
28623
  key: 0,
28581
28624
  class: "lupa-facets-title"
28582
28625
  };
28583
- const _sfc_main$P = /* @__PURE__ */ defineComponent({
28626
+ const _sfc_main$R = /* @__PURE__ */ defineComponent({
28584
28627
  __name: "FacetList",
28585
28628
  props: {
28586
28629
  options: {},
@@ -28614,14 +28657,14 @@ and ensure you are accounting for this risk.
28614
28657
  };
28615
28658
  return (_ctx, _cache) => {
28616
28659
  var _a;
28617
- return openBlock(), createElementBlock("div", _hoisted_1$J, [
28618
- _ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$v, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
28660
+ return openBlock(), createElementBlock("div", _hoisted_1$L, [
28661
+ _ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$x, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
28619
28662
  createBaseVNode("div", {
28620
28663
  class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
28621
28664
  }, [
28622
28665
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
28623
28666
  var _a2;
28624
- return openBlock(), createBlock(_sfc_main$Q, {
28667
+ return openBlock(), createBlock(_sfc_main$S, {
28625
28668
  key: facet.key,
28626
28669
  facet,
28627
28670
  currentFilters: currentFiltersValue.value,
@@ -28636,8 +28679,8 @@ and ensure you are accounting for this risk.
28636
28679
  };
28637
28680
  }
28638
28681
  });
28639
- const _hoisted_1$I = ["onClick"];
28640
- const _sfc_main$O = /* @__PURE__ */ defineComponent({
28682
+ const _hoisted_1$K = ["onClick"];
28683
+ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
28641
28684
  __name: "FacetsButton",
28642
28685
  props: {
28643
28686
  options: {}
@@ -28657,12 +28700,12 @@ and ensure you are accounting for this risk.
28657
28700
  key: 0,
28658
28701
  class: "lupa-facets-button-filter",
28659
28702
  onClick: withModifiers(handleClick, ["stop"])
28660
- }, toDisplayString(label.value), 9, _hoisted_1$I)) : createCommentVNode("", true);
28703
+ }, toDisplayString(label.value), 9, _hoisted_1$K)) : createCommentVNode("", true);
28661
28704
  };
28662
28705
  }
28663
28706
  });
28664
- const _hoisted_1$H = { class: "lupa-facets-filter-button-wrapper" };
28665
- const _sfc_main$N = /* @__PURE__ */ defineComponent({
28707
+ const _hoisted_1$J = { class: "lupa-facets-filter-button-wrapper" };
28708
+ const _sfc_main$P = /* @__PURE__ */ defineComponent({
28666
28709
  __name: "Facets",
28667
28710
  props: {
28668
28711
  options: {},
@@ -28748,7 +28791,7 @@ and ensure you are accounting for this risk.
28748
28791
  return openBlock(), createElementBlock("div", {
28749
28792
  class: normalizeClass(["lupa-search-result-facets", { "lupa-search-result-facets-loading": unref(loadingFacets) }])
28750
28793
  }, [
28751
- regularFacets.value ? (openBlock(), createBlock(_sfc_main$P, {
28794
+ regularFacets.value ? (openBlock(), createBlock(_sfc_main$R, {
28752
28795
  key: 0,
28753
28796
  options: _ctx.options,
28754
28797
  facets: regularFacets.value,
@@ -28758,8 +28801,8 @@ and ensure you are accounting for this risk.
28758
28801
  onSelect: handleFacetSelect,
28759
28802
  onClear: clear2
28760
28803
  }, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : createCommentVNode("", true),
28761
- createBaseVNode("div", _hoisted_1$H, [
28762
- showFilterButton.value ? (openBlock(), createBlock(_sfc_main$O, {
28804
+ createBaseVNode("div", _hoisted_1$J, [
28805
+ showFilterButton.value ? (openBlock(), createBlock(_sfc_main$Q, {
28763
28806
  key: 0,
28764
28807
  options: _ctx.options,
28765
28808
  onFilter: filter2
@@ -28769,12 +28812,12 @@ and ensure you are accounting for this risk.
28769
28812
  };
28770
28813
  }
28771
28814
  });
28772
- const _hoisted_1$G = {
28815
+ const _hoisted_1$I = {
28773
28816
  key: 0,
28774
28817
  id: "lupa-search-result-filters",
28775
28818
  class: "lupa-search-result-filters"
28776
28819
  };
28777
- const _sfc_main$M = /* @__PURE__ */ defineComponent({
28820
+ const _sfc_main$O = /* @__PURE__ */ defineComponent({
28778
28821
  __name: "SearchResultsFilters",
28779
28822
  props: {
28780
28823
  options: {},
@@ -28811,19 +28854,19 @@ and ensure you are accounting for this risk.
28811
28854
  __expose({ fetch: fetch2 });
28812
28855
  return (_ctx, _cache) => {
28813
28856
  var _a;
28814
- return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$G, [
28815
- showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$X, {
28857
+ return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$I, [
28858
+ showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$Z, {
28816
28859
  key: 0,
28817
28860
  options: _ctx.options.currentFilters,
28818
28861
  expandable: (_a = _ctx.expandable) != null ? _a : false
28819
28862
  }, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
28820
- _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$V, {
28863
+ _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$X, {
28821
28864
  key: 1,
28822
28865
  options: _ctx.options.categories,
28823
28866
  ref_key: "categoryFilters",
28824
28867
  ref: categoryFilters
28825
28868
  }, null, 8, ["options"])) : createCommentVNode("", true),
28826
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$N, {
28869
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$P, {
28827
28870
  key: 2,
28828
28871
  options: _ctx.options.facets,
28829
28872
  onFilter: filter2
@@ -28832,20 +28875,20 @@ and ensure you are accounting for this risk.
28832
28875
  };
28833
28876
  }
28834
28877
  });
28835
- const _hoisted_1$F = {
28878
+ const _hoisted_1$H = {
28836
28879
  key: 0,
28837
28880
  class: "lupa-mobile-filter-sidebar"
28838
28881
  };
28839
- const _hoisted_2$u = ["onClick"];
28840
- const _hoisted_3$n = { class: "lupa-mobile-sidebar-content" };
28841
- const _hoisted_4$h = { class: "lupa-sidebar-top" };
28842
- const _hoisted_5$b = { class: "lupa-sidebar-title" };
28882
+ const _hoisted_2$w = ["onClick"];
28883
+ const _hoisted_3$p = { class: "lupa-mobile-sidebar-content" };
28884
+ const _hoisted_4$i = { class: "lupa-sidebar-top" };
28885
+ const _hoisted_5$c = { class: "lupa-sidebar-title" };
28843
28886
  const _hoisted_6$6 = {
28844
28887
  key: 0,
28845
28888
  class: "lupa-sidebar-filter-count"
28846
28889
  };
28847
28890
  const _hoisted_7$4 = { class: "lupa-sidebar-filter-options" };
28848
- const _sfc_main$L = /* @__PURE__ */ defineComponent({
28891
+ const _sfc_main$N = /* @__PURE__ */ defineComponent({
28849
28892
  __name: "MobileFilterSidebar",
28850
28893
  props: {
28851
28894
  options: {}
@@ -28876,14 +28919,14 @@ and ensure you are accounting for this risk.
28876
28919
  handleMobileToggle();
28877
28920
  };
28878
28921
  return (_ctx, _cache) => {
28879
- return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$F, [
28922
+ return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$H, [
28880
28923
  createBaseVNode("div", {
28881
28924
  class: "lupa-sidebar-close",
28882
28925
  onClick: withModifiers(handleMobileToggle, ["stop"])
28883
- }, null, 8, _hoisted_2$u),
28884
- createBaseVNode("div", _hoisted_3$n, [
28885
- createBaseVNode("div", _hoisted_4$h, [
28886
- createBaseVNode("div", _hoisted_5$b, [
28926
+ }, null, 8, _hoisted_2$w),
28927
+ createBaseVNode("div", _hoisted_3$p, [
28928
+ createBaseVNode("div", _hoisted_4$i, [
28929
+ createBaseVNode("div", _hoisted_5$c, [
28887
28930
  createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
28888
28931
  isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
28889
28932
  ]),
@@ -28893,7 +28936,7 @@ and ensure you are accounting for this risk.
28893
28936
  })
28894
28937
  ]),
28895
28938
  createBaseVNode("div", _hoisted_7$4, [
28896
- createVNode(_sfc_main$M, {
28939
+ createVNode(_sfc_main$O, {
28897
28940
  options: _ctx.options,
28898
28941
  expandable: isActiveFiltersExpanded.value,
28899
28942
  onFilter: filter2
@@ -28904,14 +28947,14 @@ and ensure you are accounting for this risk.
28904
28947
  };
28905
28948
  }
28906
28949
  });
28907
- const _hoisted_1$E = { id: "lupa-search-results-breadcrumbs" };
28908
- const _hoisted_2$t = ["href", "onClick"];
28909
- const _hoisted_3$m = {
28950
+ const _hoisted_1$G = { id: "lupa-search-results-breadcrumbs" };
28951
+ const _hoisted_2$v = ["href", "onClick"];
28952
+ const _hoisted_3$o = {
28910
28953
  key: 1,
28911
28954
  class: "lupa-search-results-breadcrumb-text"
28912
28955
  };
28913
- const _hoisted_4$g = { key: 2 };
28914
- const _sfc_main$K = /* @__PURE__ */ defineComponent({
28956
+ const _hoisted_4$h = { key: 2 };
28957
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
28915
28958
  __name: "SearchResultsBreadcrumbs",
28916
28959
  props: {
28917
28960
  breadcrumbs: {}
@@ -28936,7 +28979,7 @@ and ensure you are accounting for this risk.
28936
28979
  handleRoutingEvent(link, event, hasEventRouting.value);
28937
28980
  };
28938
28981
  return (_ctx, _cache) => {
28939
- return openBlock(), createElementBlock("div", _hoisted_1$E, [
28982
+ return openBlock(), createElementBlock("div", _hoisted_1$G, [
28940
28983
  (openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
28941
28984
  var _a;
28942
28985
  return openBlock(), createElementBlock("span", {
@@ -28951,20 +28994,20 @@ and ensure you are accounting for this risk.
28951
28994
  var _a2;
28952
28995
  return handleNavigation(e2, (_a2 = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a2 : "");
28953
28996
  }
28954
- }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$t)) : (openBlock(), createElementBlock("span", _hoisted_3$m, toDisplayString(getLabel(breadcrumb.label)), 1)),
28955
- index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$g, toDisplayString((_a = breadcrumb.separator) != null ? _a : "/"), 1)) : createCommentVNode("", true)
28997
+ }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$v)) : (openBlock(), createElementBlock("span", _hoisted_3$o, toDisplayString(getLabel(breadcrumb.label)), 1)),
28998
+ index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$h, toDisplayString((_a = breadcrumb.separator) != null ? _a : "/"), 1)) : createCommentVNode("", true)
28956
28999
  ]);
28957
29000
  }), 128))
28958
29001
  ]);
28959
29002
  };
28960
29003
  }
28961
29004
  });
28962
- const _hoisted_1$D = {
29005
+ const _hoisted_1$F = {
28963
29006
  key: 0,
28964
29007
  id: "lupa-search-result-filters",
28965
29008
  class: "lupa-search-result-filters lupa-search-result-top-filters"
28966
29009
  };
28967
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
29010
+ const _sfc_main$L = /* @__PURE__ */ defineComponent({
28968
29011
  __name: "FiltersTopDropdown",
28969
29012
  props: {
28970
29013
  options: {}
@@ -28981,8 +29024,8 @@ and ensure you are accounting for this risk.
28981
29024
  });
28982
29025
  return (_ctx, _cache) => {
28983
29026
  var _a;
28984
- return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$D, [
28985
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$N, {
29027
+ return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$F, [
29028
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$P, {
28986
29029
  key: 0,
28987
29030
  options: _ctx.options.facets,
28988
29031
  "facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
@@ -28993,8 +29036,8 @@ and ensure you are accounting for this risk.
28993
29036
  };
28994
29037
  }
28995
29038
  });
28996
- const _hoisted_1$C = { id: "lupa-search-results-layout-selection" };
28997
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
29039
+ const _hoisted_1$E = { id: "lupa-search-results-layout-selection" };
29040
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
28998
29041
  __name: "SearchResultsLayoutSelection",
28999
29042
  setup(__props) {
29000
29043
  const searchResultStore = useSearchResultStore();
@@ -29005,7 +29048,7 @@ and ensure you are accounting for this risk.
29005
29048
  searchResultStore.setLayout(layout2);
29006
29049
  };
29007
29050
  return (_ctx, _cache) => {
29008
- return openBlock(), createElementBlock("div", _hoisted_1$C, [
29051
+ return openBlock(), createElementBlock("div", _hoisted_1$E, [
29009
29052
  createBaseVNode("div", {
29010
29053
  class: normalizeClass([
29011
29054
  "lupa-layout-selection-grid",
@@ -29027,11 +29070,11 @@ and ensure you are accounting for this risk.
29027
29070
  };
29028
29071
  }
29029
29072
  });
29030
- const _hoisted_1$B = {
29073
+ const _hoisted_1$D = {
29031
29074
  key: 0,
29032
29075
  class: "lupa-mobile-toggle-filter-count"
29033
29076
  };
29034
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
29077
+ const _sfc_main$J = /* @__PURE__ */ defineComponent({
29035
29078
  __name: "SearchResultsMobileToggle",
29036
29079
  props: {
29037
29080
  labels: {},
@@ -29079,12 +29122,12 @@ and ensure you are accounting for this risk.
29079
29122
  onClick: handleMobileToggle
29080
29123
  }, [
29081
29124
  createTextVNode(toDisplayString(label.value) + " ", 1),
29082
- _ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$B, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
29125
+ _ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$D, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
29083
29126
  ], 2);
29084
29127
  };
29085
29128
  }
29086
29129
  });
29087
- const _sfc_main$G = /* @__PURE__ */ defineComponent({
29130
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
29088
29131
  __name: "SearchResultsMobileFilterClose",
29089
29132
  props: {
29090
29133
  label: {}
@@ -29104,21 +29147,21 @@ and ensure you are accounting for this risk.
29104
29147
  };
29105
29148
  }
29106
29149
  });
29107
- const _hoisted_1$A = {
29150
+ const _hoisted_1$C = {
29108
29151
  key: 0,
29109
29152
  id: "lupa-search-results-page-select",
29110
29153
  "data-cy": "lupa-search-results-page-select"
29111
29154
  };
29112
- const _hoisted_2$s = {
29155
+ const _hoisted_2$u = {
29113
29156
  key: 0,
29114
29157
  class: "lupa-page-number-separator"
29115
29158
  };
29116
- const _hoisted_3$l = ["onClick"];
29117
- const _hoisted_4$f = {
29159
+ const _hoisted_3$n = ["onClick"];
29160
+ const _hoisted_4$g = {
29118
29161
  key: 0,
29119
29162
  class: "lupa-page-number-separator"
29120
29163
  };
29121
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
29164
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
29122
29165
  __name: "SearchResultsPageSelect",
29123
29166
  props: {
29124
29167
  lastPageLabel: {},
@@ -29195,7 +29238,7 @@ and ensure you are accounting for this risk.
29195
29238
  }
29196
29239
  };
29197
29240
  return (_ctx, _cache) => {
29198
- return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$A, [
29241
+ return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$C, [
29199
29242
  showBack.value ? (openBlock(), createElementBlock("div", {
29200
29243
  key: 0,
29201
29244
  class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
@@ -29206,7 +29249,7 @@ and ensure you are accounting for this risk.
29206
29249
  class: "lupa-page-number lupa-page-number-first",
29207
29250
  onClick: _cache[1] || (_cache[1] = () => handlePageChange(1))
29208
29251
  }, " 1 "),
29209
- showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$s, "...")) : createCommentVNode("", true)
29252
+ showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$u, "...")) : createCommentVNode("", true)
29210
29253
  ], 64)) : createCommentVNode("", true),
29211
29254
  (openBlock(true), createElementBlock(Fragment, null, renderList(pages.value, (page) => {
29212
29255
  return openBlock(), createElementBlock("div", {
@@ -29217,10 +29260,10 @@ and ensure you are accounting for this risk.
29217
29260
  page === _ctx.options.selectedPage ? "lupa-page-number-selected" : ""
29218
29261
  ]),
29219
29262
  "data-cy": "lupa-page-number"
29220
- }, toDisplayString(page), 11, _hoisted_3$l);
29263
+ }, toDisplayString(page), 11, _hoisted_3$n);
29221
29264
  }), 128)),
29222
29265
  showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
29223
- showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$f, "...")) : createCommentVNode("", true),
29266
+ showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$g, "...")) : createCommentVNode("", true),
29224
29267
  createBaseVNode("div", {
29225
29268
  class: "lupa-page-number lupa-page-number-last",
29226
29269
  onClick: _cache[2] || (_cache[2] = () => {
@@ -29239,15 +29282,15 @@ and ensure you are accounting for this risk.
29239
29282
  };
29240
29283
  }
29241
29284
  });
29242
- const _hoisted_1$z = {
29285
+ const _hoisted_1$B = {
29243
29286
  id: "lupa-search-results-page-size",
29244
29287
  "data-cy": "lupa-search-results-page-size"
29245
29288
  };
29246
- const _hoisted_2$r = { id: "lupa-select" };
29247
- const _hoisted_3$k = { class: "lupa-select-label" };
29248
- const _hoisted_4$e = ["aria-label"];
29249
- const _hoisted_5$a = ["value"];
29250
- const _sfc_main$E = /* @__PURE__ */ defineComponent({
29289
+ const _hoisted_2$t = { id: "lupa-select" };
29290
+ const _hoisted_3$m = { class: "lupa-select-label" };
29291
+ const _hoisted_4$f = ["aria-label"];
29292
+ const _hoisted_5$b = ["value"];
29293
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
29251
29294
  __name: "SearchResultsPageSize",
29252
29295
  props: {
29253
29296
  labels: {},
@@ -29275,9 +29318,9 @@ and ensure you are accounting for this risk.
29275
29318
  });
29276
29319
  };
29277
29320
  return (_ctx, _cache) => {
29278
- return openBlock(), createElementBlock("div", _hoisted_1$z, [
29279
- createBaseVNode("div", _hoisted_2$r, [
29280
- createBaseVNode("label", _hoisted_3$k, toDisplayString(label.value), 1),
29321
+ return openBlock(), createElementBlock("div", _hoisted_1$B, [
29322
+ createBaseVNode("div", _hoisted_2$t, [
29323
+ createBaseVNode("label", _hoisted_3$m, toDisplayString(label.value), 1),
29281
29324
  createBaseVNode("select", {
29282
29325
  class: "lupa-select-dropdown",
29283
29326
  "aria-label": label.value,
@@ -29290,23 +29333,23 @@ and ensure you are accounting for this risk.
29290
29333
  return openBlock(), createElementBlock("option", {
29291
29334
  key: option,
29292
29335
  value: option
29293
- }, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$a);
29336
+ }, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$b);
29294
29337
  }), 128))
29295
- ], 40, _hoisted_4$e)
29338
+ ], 40, _hoisted_4$f)
29296
29339
  ])
29297
29340
  ]);
29298
29341
  };
29299
29342
  }
29300
29343
  });
29301
- const _hoisted_1$y = {
29344
+ const _hoisted_1$A = {
29302
29345
  id: "lupa-search-results-sort",
29303
29346
  class: "lupa-search-results-sort"
29304
29347
  };
29305
- const _hoisted_2$q = { id: "lupa-select" };
29306
- const _hoisted_3$j = { class: "lupa-select-label" };
29307
- const _hoisted_4$d = ["aria-label"];
29308
- const _hoisted_5$9 = ["value"];
29309
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
29348
+ const _hoisted_2$s = { id: "lupa-select" };
29349
+ const _hoisted_3$l = { class: "lupa-select-label" };
29350
+ const _hoisted_4$e = ["aria-label"];
29351
+ const _hoisted_5$a = ["value"];
29352
+ const _sfc_main$F = /* @__PURE__ */ defineComponent({
29310
29353
  __name: "SearchResultsSort",
29311
29354
  props: {
29312
29355
  options: {},
@@ -29355,9 +29398,9 @@ and ensure you are accounting for this risk.
29355
29398
  previousKey.value = selectedKey.value;
29356
29399
  };
29357
29400
  return (_ctx, _cache) => {
29358
- return openBlock(), createElementBlock("div", _hoisted_1$y, [
29359
- createBaseVNode("div", _hoisted_2$q, [
29360
- createBaseVNode("label", _hoisted_3$j, toDisplayString(_ctx.options.label), 1),
29401
+ return openBlock(), createElementBlock("div", _hoisted_1$A, [
29402
+ createBaseVNode("div", _hoisted_2$s, [
29403
+ createBaseVNode("label", _hoisted_3$l, toDisplayString(_ctx.options.label), 1),
29361
29404
  withDirectives(createBaseVNode("select", {
29362
29405
  class: "lupa-select-dropdown",
29363
29406
  "aria-label": _ctx.options.label,
@@ -29370,9 +29413,9 @@ and ensure you are accounting for this risk.
29370
29413
  return openBlock(), createElementBlock("option", {
29371
29414
  key: option.key,
29372
29415
  value: option.key
29373
- }, toDisplayString(option.label), 9, _hoisted_5$9);
29416
+ }, toDisplayString(option.label), 9, _hoisted_5$a);
29374
29417
  }), 128))
29375
- ], 40, _hoisted_4$d), [
29418
+ ], 40, _hoisted_4$e), [
29376
29419
  [vModelSelect, selectedKey.value]
29377
29420
  ])
29378
29421
  ])
@@ -29380,14 +29423,14 @@ and ensure you are accounting for this risk.
29380
29423
  };
29381
29424
  }
29382
29425
  });
29383
- const _hoisted_1$x = { class: "lupa-toolbar-left" };
29384
- const _hoisted_2$p = {
29426
+ const _hoisted_1$z = { class: "lupa-toolbar-left" };
29427
+ const _hoisted_2$r = {
29385
29428
  key: 0,
29386
29429
  class: "lupa-toolbar-right-title"
29387
29430
  };
29388
- const _hoisted_3$i = { key: 2 };
29389
- const _hoisted_4$c = { key: 4 };
29390
- const _hoisted_5$8 = { key: 6 };
29431
+ const _hoisted_3$k = { key: 2 };
29432
+ const _hoisted_4$d = { key: 4 };
29433
+ const _hoisted_5$9 = { key: 6 };
29391
29434
  const _hoisted_6$5 = { class: "lupa-toolbar-right" };
29392
29435
  const _hoisted_7$3 = {
29393
29436
  key: 0,
@@ -29395,7 +29438,7 @@ and ensure you are accounting for this risk.
29395
29438
  };
29396
29439
  const _hoisted_8 = { key: 2 };
29397
29440
  const _hoisted_9 = { key: 4 };
29398
- const _sfc_main$C = /* @__PURE__ */ defineComponent({
29441
+ const _sfc_main$E = /* @__PURE__ */ defineComponent({
29399
29442
  __name: "SearchResultsToolbar",
29400
29443
  props: {
29401
29444
  options: {},
@@ -29506,39 +29549,39 @@ and ensure you are accounting for this risk.
29506
29549
  id: "lupa-search-results-toolbar",
29507
29550
  class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
29508
29551
  }, [
29509
- createBaseVNode("div", _hoisted_1$x, [
29510
- toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$p, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
29511
- showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$I, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$i)),
29512
- showItemSummary.value ? (openBlock(), createBlock(_sfc_main$_, {
29552
+ createBaseVNode("div", _hoisted_1$z, [
29553
+ toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$r, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
29554
+ showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$K, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$k)),
29555
+ showItemSummary.value ? (openBlock(), createBlock(_sfc_main$10, {
29513
29556
  key: 3,
29514
29557
  label: searchSummaryLabel.value,
29515
29558
  clearable: unref(hasAnyFilter) && showFilterClear.value,
29516
29559
  onClear: handleClearAll
29517
- }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$c)),
29518
- displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$F, {
29560
+ }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$d)),
29561
+ displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$H, {
29519
29562
  key: 5,
29520
29563
  options: paginationOptions.value.pageSelect,
29521
29564
  "last-page-label": paginationOptions.value.labels.showMore,
29522
29565
  "first-page-label": paginationOptions.value.labels.showLess
29523
- }, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_5$8))
29566
+ }, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_5$9))
29524
29567
  ]),
29525
29568
  createBaseVNode("div", _hoisted_6$5, [
29526
29569
  toolbarRightLabel.value ? (openBlock(), createElementBlock("div", _hoisted_7$3, toDisplayString(toolbarRightLabel.value), 1)) : createCommentVNode("", true),
29527
- createVNode(_sfc_main$H, {
29570
+ createVNode(_sfc_main$J, {
29528
29571
  labels: optionsValue.value.labels,
29529
29572
  "show-filter-count": showMobileFilterCount.value
29530
29573
  }, null, 8, ["labels", "show-filter-count"]),
29531
- paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$E, {
29574
+ paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$G, {
29532
29575
  key: 1,
29533
29576
  options: paginationOptions.value.pageSize,
29534
29577
  labels: paginationOptions.value.labels
29535
29578
  }, null, 8, ["options", "labels"])) : (openBlock(), createElementBlock("div", _hoisted_8)),
29536
- sortOptions.value ? (openBlock(), createBlock(_sfc_main$D, {
29579
+ sortOptions.value ? (openBlock(), createBlock(_sfc_main$F, {
29537
29580
  key: 3,
29538
29581
  options: sortOptions.value,
29539
29582
  callbacks: callbacks.value
29540
29583
  }, null, 8, ["options", "callbacks"])) : (openBlock(), createElementBlock("div", _hoisted_9)),
29541
- showFiltersCloseButton.value && unref(isMobileSidebarVisible) ? (openBlock(), createBlock(_sfc_main$G, {
29584
+ showFiltersCloseButton.value && unref(isMobileSidebarVisible) ? (openBlock(), createBlock(_sfc_main$I, {
29542
29585
  key: 5,
29543
29586
  label: optionsValue.value.labels.mobileFilterCloseButton
29544
29587
  }, null, 8, ["label"])) : createCommentVNode("", true)
@@ -29547,7 +29590,7 @@ and ensure you are accounting for this risk.
29547
29590
  };
29548
29591
  }
29549
29592
  });
29550
- const _sfc_main$B = /* @__PURE__ */ defineComponent({
29593
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
29551
29594
  __name: "SearchResultsProductImage",
29552
29595
  props: {
29553
29596
  item: {},
@@ -29555,7 +29598,7 @@ and ensure you are accounting for this risk.
29555
29598
  },
29556
29599
  setup(__props) {
29557
29600
  return (_ctx, _cache) => {
29558
- return openBlock(), createBlock(_sfc_main$1n, {
29601
+ return openBlock(), createBlock(_sfc_main$1p, {
29559
29602
  item: _ctx.item,
29560
29603
  options: _ctx.options,
29561
29604
  "wrapper-class": "lupa-search-results-image-wrapper",
@@ -29564,16 +29607,16 @@ and ensure you are accounting for this risk.
29564
29607
  };
29565
29608
  }
29566
29609
  });
29567
- const _hoisted_1$w = ["title", "innerHTML"];
29568
- const _hoisted_2$o = ["title"];
29569
- const _hoisted_3$h = ["href", "innerHTML"];
29570
- const _hoisted_4$b = ["title"];
29571
- const _hoisted_5$7 = {
29610
+ const _hoisted_1$y = ["title", "innerHTML"];
29611
+ const _hoisted_2$q = ["title"];
29612
+ const _hoisted_3$j = ["href", "innerHTML"];
29613
+ const _hoisted_4$c = ["title"];
29614
+ const _hoisted_5$8 = {
29572
29615
  key: 0,
29573
29616
  class: "lupa-search-results-product-title-text"
29574
29617
  };
29575
29618
  const _hoisted_6$4 = ["href"];
29576
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
29619
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
29577
29620
  __name: "SearchResultsProductTitle",
29578
29621
  props: {
29579
29622
  item: {},
@@ -29610,7 +29653,7 @@ and ensure you are accounting for this risk.
29610
29653
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
29611
29654
  title: sanitizedTitle.value,
29612
29655
  innerHTML: sanitizedTitle.value
29613
- }, null, 12, _hoisted_1$w)) : isHtml.value && _ctx.options.link ? (openBlock(), createElementBlock("div", {
29656
+ }, null, 12, _hoisted_1$y)) : isHtml.value && _ctx.options.link ? (openBlock(), createElementBlock("div", {
29614
29657
  key: 1,
29615
29658
  class: "lupa-search-results-product-title",
29616
29659
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
@@ -29621,26 +29664,26 @@ and ensure you are accounting for this risk.
29621
29664
  class: "lupa-search-results-product-title-text lupa-title-link",
29622
29665
  innerHTML: sanitizedTitle.value,
29623
29666
  onClick: handleNavigation
29624
- }, null, 8, _hoisted_3$h)
29625
- ], 12, _hoisted_2$o)) : (openBlock(), createElementBlock("div", {
29667
+ }, null, 8, _hoisted_3$j)
29668
+ ], 12, _hoisted_2$q)) : (openBlock(), createElementBlock("div", {
29626
29669
  key: 2,
29627
29670
  class: "lupa-search-results-product-title",
29628
29671
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
29629
29672
  title: title.value
29630
29673
  }, [
29631
- !_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_5$7, toDisplayString(title.value), 1)) : createCommentVNode("", true),
29674
+ !_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_5$8, toDisplayString(title.value), 1)) : createCommentVNode("", true),
29632
29675
  _ctx.options.link ? (openBlock(), createElementBlock("a", {
29633
29676
  key: 1,
29634
29677
  href: _ctx.link,
29635
29678
  class: "lupa-search-results-product-title-text lupa-title-link",
29636
29679
  onClick: handleNavigation
29637
29680
  }, toDisplayString(title.value), 9, _hoisted_6$4)) : createCommentVNode("", true)
29638
- ], 12, _hoisted_4$b));
29681
+ ], 12, _hoisted_4$c));
29639
29682
  };
29640
29683
  }
29641
29684
  });
29642
- const _hoisted_1$v = ["innerHTML"];
29643
- const _sfc_main$z = /* @__PURE__ */ defineComponent({
29685
+ const _hoisted_1$x = ["innerHTML"];
29686
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
29644
29687
  __name: "SearchResultsProductDescription",
29645
29688
  props: {
29646
29689
  item: {},
@@ -29667,7 +29710,7 @@ and ensure you are accounting for this risk.
29667
29710
  class: "lupa-search-results-product-description",
29668
29711
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
29669
29712
  innerHTML: sanitizedDescription.value
29670
- }, null, 12, _hoisted_1$v)) : (openBlock(), createElementBlock("div", {
29713
+ }, null, 12, _hoisted_1$x)) : (openBlock(), createElementBlock("div", {
29671
29714
  key: 1,
29672
29715
  class: "lupa-search-results-product-description",
29673
29716
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
@@ -29675,15 +29718,15 @@ and ensure you are accounting for this risk.
29675
29718
  };
29676
29719
  }
29677
29720
  });
29678
- const _hoisted_1$u = { id: "lupa-search-results-rating" };
29679
- const _hoisted_2$n = { class: "lupa-ratings" };
29680
- const _hoisted_3$g = { class: "lupa-ratings-base" };
29681
- const _hoisted_4$a = ["innerHTML"];
29682
- const _hoisted_5$6 = { class: "lupa-rating-wrapper" };
29721
+ const _hoisted_1$w = { id: "lupa-search-results-rating" };
29722
+ const _hoisted_2$p = { class: "lupa-ratings" };
29723
+ const _hoisted_3$i = { class: "lupa-ratings-base" };
29724
+ const _hoisted_4$b = ["innerHTML"];
29725
+ const _hoisted_5$7 = { class: "lupa-rating-wrapper" };
29683
29726
  const _hoisted_6$3 = ["innerHTML"];
29684
29727
  const _hoisted_7$2 = ["href"];
29685
29728
  const STAR_COUNT = 5;
29686
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
29729
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
29687
29730
  __name: "SearchResultsProductRating",
29688
29731
  props: {
29689
29732
  item: {},
@@ -29720,18 +29763,18 @@ and ensure you are accounting for this risk.
29720
29763
  return generateLink(props.options.links.ratingDetails, props.item);
29721
29764
  });
29722
29765
  return (_ctx, _cache) => {
29723
- return openBlock(), createElementBlock("div", _hoisted_1$u, [
29724
- createBaseVNode("div", _hoisted_2$n, [
29725
- createBaseVNode("div", _hoisted_3$g, [
29766
+ return openBlock(), createElementBlock("div", _hoisted_1$w, [
29767
+ createBaseVNode("div", _hoisted_2$p, [
29768
+ createBaseVNode("div", _hoisted_3$i, [
29726
29769
  (openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
29727
29770
  return openBlock(), createElementBlock("div", {
29728
29771
  key: index,
29729
29772
  innerHTML: star,
29730
29773
  class: "lupa-rating lupa-rating-not-highlighted"
29731
- }, null, 8, _hoisted_4$a);
29774
+ }, null, 8, _hoisted_4$b);
29732
29775
  }), 128))
29733
29776
  ]),
29734
- createBaseVNode("div", _hoisted_5$6, [
29777
+ createBaseVNode("div", _hoisted_5$7, [
29735
29778
  createBaseVNode("div", {
29736
29779
  class: "lupa-ratings-highlighted",
29737
29780
  style: normalizeStyle({ width: ratingPercentage.value + "%" })
@@ -29754,11 +29797,11 @@ and ensure you are accounting for this risk.
29754
29797
  };
29755
29798
  }
29756
29799
  });
29757
- const _hoisted_1$t = {
29800
+ const _hoisted_1$v = {
29758
29801
  class: "lupa-search-results-product-regular-price",
29759
29802
  "data-cy": "lupa-search-results-product-regular-price"
29760
29803
  };
29761
- const _sfc_main$x = /* @__PURE__ */ defineComponent({
29804
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
29762
29805
  __name: "SearchResultsProductRegularPrice",
29763
29806
  props: {
29764
29807
  item: {},
@@ -29777,11 +29820,11 @@ and ensure you are accounting for this risk.
29777
29820
  );
29778
29821
  });
29779
29822
  return (_ctx, _cache) => {
29780
- return openBlock(), createElementBlock("div", _hoisted_1$t, toDisplayString(price.value), 1);
29823
+ return openBlock(), createElementBlock("div", _hoisted_1$v, toDisplayString(price.value), 1);
29781
29824
  };
29782
29825
  }
29783
29826
  });
29784
- const _sfc_main$w = /* @__PURE__ */ defineComponent({
29827
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
29785
29828
  __name: "SearchResultsProductPrice",
29786
29829
  props: {
29787
29830
  item: {},
@@ -29812,12 +29855,12 @@ and ensure you are accounting for this risk.
29812
29855
  };
29813
29856
  }
29814
29857
  });
29815
- const _hoisted_1$s = { class: "lupa-search-results-add-to-cart-wrapper" };
29816
- const _hoisted_2$m = { class: "lupa-search-results-product-addtocart" };
29817
- const _hoisted_3$f = ["disabled"];
29818
- const _hoisted_4$9 = ["href"];
29819
- const _hoisted_5$5 = ["id", "disabled", "onClick"];
29820
- const _sfc_main$v = /* @__PURE__ */ defineComponent({
29858
+ const _hoisted_1$u = { class: "lupa-search-results-add-to-cart-wrapper" };
29859
+ const _hoisted_2$o = { class: "lupa-search-results-product-addtocart" };
29860
+ const _hoisted_3$h = ["disabled"];
29861
+ const _hoisted_4$a = ["href"];
29862
+ const _hoisted_5$6 = ["id", "disabled", "onClick"];
29863
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
29821
29864
  __name: "SearchResultsProductAddToCart",
29822
29865
  props: {
29823
29866
  item: {},
@@ -29860,16 +29903,16 @@ and ensure you are accounting for this risk.
29860
29903
  return Boolean(props.link && props.options.link);
29861
29904
  });
29862
29905
  return (_ctx, _cache) => {
29863
- return openBlock(), createElementBlock("div", _hoisted_1$s, [
29864
- createBaseVNode("div", _hoisted_2$m, [
29906
+ return openBlock(), createElementBlock("div", _hoisted_1$u, [
29907
+ createBaseVNode("div", _hoisted_2$o, [
29865
29908
  hasLink.value ? (openBlock(), createElementBlock("button", mergeProps({
29866
29909
  key: 0,
29867
29910
  class: loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart",
29868
29911
  "data-cy": "lupa-add-to-cart",
29869
29912
  disabled: !inStockValue.value || loading.value
29870
29913
  }, _ctx.dynamicAttributes, { onClick: handleClick }), [
29871
- createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$9)
29872
- ], 16, _hoisted_3$f)) : (openBlock(), createElementBlock("button", mergeProps({
29914
+ createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$a)
29915
+ ], 16, _hoisted_3$h)) : (openBlock(), createElementBlock("button", mergeProps({
29873
29916
  key: 1,
29874
29917
  id: id.value,
29875
29918
  class: loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart",
@@ -29877,18 +29920,18 @@ and ensure you are accounting for this risk.
29877
29920
  disabled: !inStockValue.value || loading.value
29878
29921
  }, _ctx.dynamicAttributes, {
29879
29922
  onClick: withModifiers(handleClick, ["stop"])
29880
- }), toDisplayString(label.value), 17, _hoisted_5$5))
29923
+ }), toDisplayString(label.value), 17, _hoisted_5$6))
29881
29924
  ])
29882
29925
  ]);
29883
29926
  };
29884
29927
  }
29885
29928
  });
29886
- const _hoisted_1$r = ["innerHTML"];
29887
- const _hoisted_2$l = { key: 0 };
29888
- const _hoisted_3$e = { key: 1 };
29889
- const _hoisted_4$8 = { class: "lupa-search-box-custom-label" };
29890
- const _hoisted_5$4 = { class: "lupa-search-box-custom-text" };
29891
- const _sfc_main$u = /* @__PURE__ */ defineComponent({
29929
+ const _hoisted_1$t = ["innerHTML"];
29930
+ const _hoisted_2$n = { key: 0 };
29931
+ const _hoisted_3$g = { key: 1 };
29932
+ const _hoisted_4$9 = { class: "lupa-search-box-custom-label" };
29933
+ const _hoisted_5$5 = { class: "lupa-search-box-custom-text" };
29934
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
29892
29935
  __name: "SearchResultsProductCustom",
29893
29936
  props: {
29894
29937
  item: {},
@@ -29926,20 +29969,20 @@ and ensure you are accounting for this risk.
29926
29969
  key: 0,
29927
29970
  class: className.value,
29928
29971
  innerHTML: text.value
29929
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$r)) : (openBlock(), createElementBlock("div", mergeProps({
29972
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$t)) : (openBlock(), createElementBlock("div", mergeProps({
29930
29973
  key: 1,
29931
29974
  class: className.value
29932
29975
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
29933
- !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$l, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$e, [
29934
- createBaseVNode("div", _hoisted_4$8, toDisplayString(label.value), 1),
29935
- createBaseVNode("div", _hoisted_5$4, toDisplayString(text.value), 1)
29976
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$n, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$g, [
29977
+ createBaseVNode("div", _hoisted_4$9, toDisplayString(label.value), 1),
29978
+ createBaseVNode("div", _hoisted_5$5, toDisplayString(text.value), 1)
29936
29979
  ]))
29937
29980
  ], 16));
29938
29981
  };
29939
29982
  }
29940
29983
  });
29941
- const _hoisted_1$q = ["innerHTML"];
29942
- const _sfc_main$t = /* @__PURE__ */ defineComponent({
29984
+ const _hoisted_1$s = ["innerHTML"];
29985
+ const _sfc_main$v = /* @__PURE__ */ defineComponent({
29943
29986
  __name: "SearchResultsProductCustomHtmlElement",
29944
29987
  props: {
29945
29988
  item: {},
@@ -29970,15 +30013,15 @@ and ensure you are accounting for this risk.
29970
30013
  return openBlock(), createElementBlock("div", mergeProps({
29971
30014
  class: className.value,
29972
30015
  innerHTML: text.value
29973
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$q);
30016
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$s);
29974
30017
  };
29975
30018
  }
29976
30019
  });
29977
- const _hoisted_1$p = { id: "lupa-search-results-rating" };
29978
- const _hoisted_2$k = ["innerHTML"];
29979
- const _hoisted_3$d = { class: "lupa-ratings" };
29980
- const _hoisted_4$7 = ["href"];
29981
- const _sfc_main$s = /* @__PURE__ */ defineComponent({
30020
+ const _hoisted_1$r = { id: "lupa-search-results-rating" };
30021
+ const _hoisted_2$m = ["innerHTML"];
30022
+ const _hoisted_3$f = { class: "lupa-ratings" };
30023
+ const _hoisted_4$8 = ["href"];
30024
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
29982
30025
  __name: "SearchResultsProductSingleStarRating",
29983
30026
  props: {
29984
30027
  item: {},
@@ -30006,35 +30049,35 @@ and ensure you are accounting for this risk.
30006
30049
  return RATING_STAR_HTML;
30007
30050
  });
30008
30051
  return (_ctx, _cache) => {
30009
- return openBlock(), createElementBlock("div", _hoisted_1$p, [
30052
+ return openBlock(), createElementBlock("div", _hoisted_1$r, [
30010
30053
  createBaseVNode("div", {
30011
30054
  innerHTML: star.value,
30012
30055
  class: "lupa-rating lupa-rating-highlighted"
30013
- }, null, 8, _hoisted_2$k),
30014
- createBaseVNode("div", _hoisted_3$d, toDisplayString(rating.value), 1),
30056
+ }, null, 8, _hoisted_2$m),
30057
+ createBaseVNode("div", _hoisted_3$f, toDisplayString(rating.value), 1),
30015
30058
  createBaseVNode("a", {
30016
30059
  href: ratingLink.value,
30017
30060
  class: "lupa-total-ratings"
30018
- }, toDisplayString(totalRatings.value), 9, _hoisted_4$7)
30061
+ }, toDisplayString(totalRatings.value), 9, _hoisted_4$8)
30019
30062
  ]);
30020
30063
  };
30021
30064
  }
30022
30065
  });
30023
30066
  const __default__ = {
30024
30067
  components: {
30025
- SearchResultsProductImage: _sfc_main$B,
30026
- SearchResultsProductTitle: _sfc_main$A,
30027
- SearchResultsProductDescription: _sfc_main$z,
30028
- SearchResultsProductRating: _sfc_main$y,
30029
- SearchResultsProductRegularPrice: _sfc_main$x,
30030
- SearchResultsProductPrice: _sfc_main$w,
30031
- SearchResultsProductAddToCart: _sfc_main$v,
30032
- SearchResultsProductCustom: _sfc_main$u,
30033
- SearchResultsProductCustomHtmlElement: _sfc_main$t,
30034
- SearchResultsProductSingleStarRating: _sfc_main$s
30035
- }
30036
- };
30037
- const _sfc_main$r = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
30068
+ SearchResultsProductImage: _sfc_main$D,
30069
+ SearchResultsProductTitle: _sfc_main$C,
30070
+ SearchResultsProductDescription: _sfc_main$B,
30071
+ SearchResultsProductRating: _sfc_main$A,
30072
+ SearchResultsProductRegularPrice: _sfc_main$z,
30073
+ SearchResultsProductPrice: _sfc_main$y,
30074
+ SearchResultsProductAddToCart: _sfc_main$x,
30075
+ SearchResultsProductCustom: _sfc_main$w,
30076
+ SearchResultsProductCustomHtmlElement: _sfc_main$v,
30077
+ SearchResultsProductSingleStarRating: _sfc_main$u
30078
+ }
30079
+ };
30080
+ const _sfc_main$t = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
30038
30081
  __name: "SearchResultsProductCardElement",
30039
30082
  props: {
30040
30083
  item: {},
@@ -30116,14 +30159,14 @@ and ensure you are accounting for this risk.
30116
30159
  };
30117
30160
  }
30118
30161
  }));
30119
- const _hoisted_1$o = ["onMouseup"];
30120
- const _hoisted_2$j = ["href"];
30121
- const _hoisted_3$c = {
30162
+ const _hoisted_1$q = ["onMouseup"];
30163
+ const _hoisted_2$l = ["href"];
30164
+ const _hoisted_3$e = {
30122
30165
  key: 0,
30123
30166
  class: "lupa-out-of-stock"
30124
30167
  };
30125
- const _hoisted_4$6 = { class: "lupa-search-result-product-details-section" };
30126
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
30168
+ const _hoisted_4$7 = { class: "lupa-search-result-product-details-section" };
30169
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
30127
30170
  __name: "SearchResultsProductCard",
30128
30171
  props: {
30129
30172
  product: {},
@@ -30288,7 +30331,7 @@ and ensure you are accounting for this risk.
30288
30331
  onClick: handleClick,
30289
30332
  onMouseup: withModifiers(handleClick, ["middle", "exact"])
30290
30333
  }), [
30291
- createVNode(_sfc_main$17, { options: badgesOptions.value }, null, 8, ["options"]),
30334
+ createVNode(_sfc_main$19, { options: badgesOptions.value }, null, 8, ["options"]),
30292
30335
  createBaseVNode("div", {
30293
30336
  class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
30294
30337
  }, [
@@ -30298,7 +30341,7 @@ and ensure you are accounting for this risk.
30298
30341
  onClick: handleNavigation
30299
30342
  }, [
30300
30343
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
30301
- return openBlock(), createBlock(_sfc_main$r, {
30344
+ return openBlock(), createBlock(_sfc_main$t, {
30302
30345
  class: "lupa-search-results-product-element",
30303
30346
  item: _ctx.product,
30304
30347
  element,
@@ -30309,16 +30352,16 @@ and ensure you are accounting for this risk.
30309
30352
  onProductEvent: handleProductEvent
30310
30353
  }, null, 8, ["item", "element", "labels", "inStock", "link"]);
30311
30354
  }), 128)),
30312
- createVNode(_sfc_main$17, {
30355
+ createVNode(_sfc_main$19, {
30313
30356
  options: badgesOptions.value,
30314
30357
  position: "image",
30315
30358
  class: "lupa-image-badges"
30316
30359
  }, null, 8, ["options"]),
30317
- ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_3$c, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
30318
- ], 8, _hoisted_2$j),
30319
- createBaseVNode("div", _hoisted_4$6, [
30360
+ ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_3$e, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
30361
+ ], 8, _hoisted_2$l),
30362
+ createBaseVNode("div", _hoisted_4$7, [
30320
30363
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
30321
- return openBlock(), createBlock(_sfc_main$r, {
30364
+ return openBlock(), createBlock(_sfc_main$t, {
30322
30365
  class: "lupa-search-results-product-element",
30323
30366
  item: _ctx.product,
30324
30367
  element,
@@ -30336,7 +30379,7 @@ and ensure you are accounting for this risk.
30336
30379
  class: normalizeClass("lupa-element-group-" + group)
30337
30380
  }, [
30338
30381
  (openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
30339
- return openBlock(), createBlock(_sfc_main$r, {
30382
+ return openBlock(), createBlock(_sfc_main$t, {
30340
30383
  class: "lupa-search-results-product-element",
30341
30384
  item: _ctx.product,
30342
30385
  element,
@@ -30350,27 +30393,27 @@ and ensure you are accounting for this risk.
30350
30393
  ], 2);
30351
30394
  }), 128))
30352
30395
  ], 2)
30353
- ], 16, _hoisted_1$o);
30396
+ ], 16, _hoisted_1$q);
30354
30397
  };
30355
30398
  }
30356
30399
  });
30357
- const _hoisted_1$n = {
30400
+ const _hoisted_1$p = {
30358
30401
  id: "lupa-search-results-similar-queries",
30359
30402
  "data-cy": "lupa-search-results-similar-queries"
30360
30403
  };
30361
- const _hoisted_2$i = { class: "lupa-similar-queries-label" };
30362
- const _hoisted_3$b = {
30404
+ const _hoisted_2$k = { class: "lupa-similar-queries-label" };
30405
+ const _hoisted_3$d = {
30363
30406
  class: "lupa-similar-query-label",
30364
30407
  "data-cy": "lupa-similar-query-label"
30365
30408
  };
30366
- const _hoisted_4$5 = ["onClick"];
30367
- const _hoisted_5$3 = ["innerHTML"];
30409
+ const _hoisted_4$6 = ["onClick"];
30410
+ const _hoisted_5$4 = ["innerHTML"];
30368
30411
  const _hoisted_6$2 = { key: 0 };
30369
30412
  const _hoisted_7$1 = {
30370
30413
  class: "lupa-products",
30371
30414
  "data-cy": "lupa-products"
30372
30415
  };
30373
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
30416
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
30374
30417
  __name: "SearchResultsSimilarQueries",
30375
30418
  props: {
30376
30419
  labels: {},
@@ -30408,11 +30451,11 @@ and ensure you are accounting for this risk.
30408
30451
  };
30409
30452
  };
30410
30453
  return (_ctx, _cache) => {
30411
- return openBlock(), createElementBlock("div", _hoisted_1$n, [
30412
- createBaseVNode("div", _hoisted_2$i, toDisplayString(_ctx.labels.similarQueries), 1),
30454
+ return openBlock(), createElementBlock("div", _hoisted_1$p, [
30455
+ createBaseVNode("div", _hoisted_2$k, toDisplayString(_ctx.labels.similarQueries), 1),
30413
30456
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
30414
30457
  return openBlock(), createElementBlock("div", { key: index }, [
30415
- createBaseVNode("div", _hoisted_3$b, [
30458
+ createBaseVNode("div", _hoisted_3$d, [
30416
30459
  createBaseVNode("span", null, toDisplayString(similarQueryLabel.value), 1),
30417
30460
  createBaseVNode("span", {
30418
30461
  id: "lupa-similar-query-text-component",
@@ -30422,13 +30465,13 @@ and ensure you are accounting for this risk.
30422
30465
  }, [
30423
30466
  createBaseVNode("span", {
30424
30467
  innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
30425
- }, null, 8, _hoisted_5$3),
30468
+ }, null, 8, _hoisted_5$4),
30426
30469
  similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$2, " (" + toDisplayString(similarQuery.count) + ")", 1)) : createCommentVNode("", true)
30427
- ], 8, _hoisted_4$5)
30470
+ ], 8, _hoisted_4$6)
30428
30471
  ]),
30429
30472
  createBaseVNode("div", _hoisted_7$1, [
30430
30473
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
30431
- return openBlock(), createBlock(_sfc_main$q, {
30474
+ return openBlock(), createBlock(_sfc_main$s, {
30432
30475
  style: normalizeStyle(_ctx.columnSize),
30433
30476
  key: getDocumentKey(index2, product),
30434
30477
  product,
@@ -30443,15 +30486,15 @@ and ensure you are accounting for this risk.
30443
30486
  };
30444
30487
  }
30445
30488
  });
30446
- const _hoisted_1$m = {
30489
+ const _hoisted_1$o = {
30447
30490
  key: 0,
30448
30491
  class: "lupa-results-additional-panel"
30449
30492
  };
30450
- const _hoisted_2$h = {
30493
+ const _hoisted_2$j = {
30451
30494
  class: "lupa-results-additional-panel-items",
30452
30495
  "data-cy": "lupa-results-additional-panel-items"
30453
30496
  };
30454
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
30497
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
30455
30498
  __name: "AdditionalPanel",
30456
30499
  props: {
30457
30500
  panel: {},
@@ -30524,10 +30567,10 @@ and ensure you are accounting for this risk.
30524
30567
  handleQueryChange();
30525
30568
  });
30526
30569
  return (_ctx, _cache) => {
30527
- return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$m, [
30528
- createBaseVNode("div", _hoisted_2$h, [
30570
+ return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$o, [
30571
+ createBaseVNode("div", _hoisted_2$j, [
30529
30572
  (openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
30530
- return openBlock(), createBlock(_sfc_main$q, {
30573
+ return openBlock(), createBlock(_sfc_main$s, {
30531
30574
  key: index,
30532
30575
  product: item,
30533
30576
  options: _ctx.panel,
@@ -30545,11 +30588,11 @@ and ensure you are accounting for this risk.
30545
30588
  };
30546
30589
  }
30547
30590
  });
30548
- const _hoisted_1$l = {
30591
+ const _hoisted_1$n = {
30549
30592
  key: 0,
30550
30593
  class: "lupa-results-additional-panels"
30551
30594
  };
30552
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
30595
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
30553
30596
  __name: "AdditionalPanels",
30554
30597
  props: {
30555
30598
  options: {},
@@ -30566,9 +30609,9 @@ and ensure you are accounting for this risk.
30566
30609
  return locationPanels.value.length > 0;
30567
30610
  });
30568
30611
  return (_ctx, _cache) => {
30569
- return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$l, [
30612
+ return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$n, [
30570
30613
  (openBlock(true), createElementBlock(Fragment, null, renderList(locationPanels.value, (panel) => {
30571
- return openBlock(), createBlock(_sfc_main$o, {
30614
+ return openBlock(), createBlock(_sfc_main$q, {
30572
30615
  key: panel.queryKey,
30573
30616
  panel,
30574
30617
  options: _ctx.sdkOptions
@@ -30585,29 +30628,29 @@ and ensure you are accounting for this risk.
30585
30628
  }
30586
30629
  return target;
30587
30630
  };
30588
- const _sfc_main$m = {};
30589
- const _hoisted_1$k = { class: "lupa-spinner-wrapper" };
30590
- const _hoisted_2$g = { class: "lupa-spinner" };
30631
+ const _sfc_main$o = {};
30632
+ const _hoisted_1$m = { class: "lupa-spinner-wrapper" };
30633
+ const _hoisted_2$i = { class: "lupa-spinner" };
30591
30634
  function _sfc_render(_ctx, _cache) {
30592
- return openBlock(), createElementBlock("div", _hoisted_1$k, [
30593
- createBaseVNode("div", _hoisted_2$g, [
30635
+ return openBlock(), createElementBlock("div", _hoisted_1$m, [
30636
+ createBaseVNode("div", _hoisted_2$i, [
30594
30637
  (openBlock(), createElementBlock(Fragment, null, renderList(12, (x2) => {
30595
30638
  return createBaseVNode("div", { key: x2 });
30596
30639
  }), 64))
30597
30640
  ])
30598
30641
  ]);
30599
30642
  }
30600
- const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render]]);
30601
- const _hoisted_1$j = {
30643
+ const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render]]);
30644
+ const _hoisted_1$l = {
30602
30645
  id: "lupa-search-results-similar-results",
30603
30646
  "data-cy": "lupa-search-results-similar-results"
30604
30647
  };
30605
- const _hoisted_2$f = { class: "lupa-similar-results-label" };
30606
- const _hoisted_3$a = {
30648
+ const _hoisted_2$h = { class: "lupa-similar-results-label" };
30649
+ const _hoisted_3$c = {
30607
30650
  class: "lupa-products",
30608
30651
  "data-cy": "lupa-products"
30609
30652
  };
30610
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
30653
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
30611
30654
  __name: "SearchResultsSimilarResults",
30612
30655
  props: {
30613
30656
  columnSize: {},
@@ -30628,11 +30671,11 @@ and ensure you are accounting for this risk.
30628
30671
  };
30629
30672
  });
30630
30673
  return (_ctx, _cache) => {
30631
- return openBlock(), createElementBlock("div", _hoisted_1$j, [
30632
- createBaseVNode("div", _hoisted_2$f, toDisplayString(_ctx.labels.similarResultsLabel), 1),
30633
- createBaseVNode("div", _hoisted_3$a, [
30674
+ return openBlock(), createElementBlock("div", _hoisted_1$l, [
30675
+ createBaseVNode("div", _hoisted_2$h, toDisplayString(_ctx.labels.similarResultsLabel), 1),
30676
+ createBaseVNode("div", _hoisted_3$c, [
30634
30677
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarResults.value.items, (product, index) => {
30635
- return openBlock(), createBlock(_sfc_main$q, {
30678
+ return openBlock(), createBlock(_sfc_main$s, {
30636
30679
  style: normalizeStyle(_ctx.columnSize),
30637
30680
  key: getDocumentKey(index, product),
30638
30681
  product,
@@ -30745,20 +30788,23 @@ and ensure you are accounting for this risk.
30745
30788
  return [];
30746
30789
  });
30747
30790
  const extractRelatedSource = (source, searchResults2, options, activeFilters) => __async2(void 0, null, function* () {
30791
+ if (!source) {
30792
+ return [];
30793
+ }
30748
30794
  switch (source.type) {
30749
30795
  case RelatedQuerySourceType.FACETS:
30750
30796
  return extractFacetsRelatedSource(source, searchResults2, options, activeFilters);
30751
30797
  }
30752
30798
  });
30753
- const _hoisted_1$i = { class: "lupa-related-query-item" };
30754
- const _hoisted_2$e = { class: "lupa-related-query-image" };
30755
- const _hoisted_3$9 = { class: "lupa-related-query-label" };
30756
- const _hoisted_4$4 = { class: "lupa-related-query-title" };
30757
- const _hoisted_5$2 = {
30799
+ const _hoisted_1$k = { class: "lupa-related-query-item" };
30800
+ const _hoisted_2$g = { class: "lupa-related-query-image" };
30801
+ const _hoisted_3$b = { class: "lupa-related-query-label" };
30802
+ const _hoisted_4$5 = { class: "lupa-related-query-title" };
30803
+ const _hoisted_5$3 = {
30758
30804
  key: 0,
30759
30805
  class: "lupa-related-query-count"
30760
30806
  };
30761
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
30807
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
30762
30808
  __name: "RelatedQueryPanel",
30763
30809
  props: {
30764
30810
  query: {},
@@ -30853,9 +30899,9 @@ and ensure you are accounting for this risk.
30853
30899
  });
30854
30900
  return (_ctx, _cache) => {
30855
30901
  var _a;
30856
- return openBlock(), createElementBlock("div", _hoisted_1$i, [
30857
- createBaseVNode("div", _hoisted_2$e, [
30858
- itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1n, {
30902
+ return openBlock(), createElementBlock("div", _hoisted_1$k, [
30903
+ createBaseVNode("div", _hoisted_2$g, [
30904
+ itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1p, {
30859
30905
  key: 0,
30860
30906
  "wrapper-class": "lupa-related-query-image-wrapper",
30861
30907
  "image-class": "lupa-related-query-image",
@@ -30863,24 +30909,24 @@ and ensure you are accounting for this risk.
30863
30909
  options: image.value
30864
30910
  }, null, 8, ["item", "options"])) : createCommentVNode("", true)
30865
30911
  ]),
30866
- createBaseVNode("div", _hoisted_3$9, [
30867
- createBaseVNode("span", _hoisted_4$4, toDisplayString(_ctx.query), 1),
30868
- ((_a = _ctx.options) == null ? void 0 : _a.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$2, "(" + toDisplayString(totalItemCount.value) + ")", 1)) : createCommentVNode("", true)
30912
+ createBaseVNode("div", _hoisted_3$b, [
30913
+ createBaseVNode("span", _hoisted_4$5, toDisplayString(_ctx.query), 1),
30914
+ ((_a = _ctx.options) == null ? void 0 : _a.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$3, "(" + toDisplayString(totalItemCount.value) + ")", 1)) : createCommentVNode("", true)
30869
30915
  ])
30870
30916
  ]);
30871
30917
  };
30872
30918
  }
30873
30919
  });
30874
- const _hoisted_1$h = {
30920
+ const _hoisted_1$j = {
30875
30921
  key: 0,
30876
30922
  class: "lupa-related-queries"
30877
30923
  };
30878
- const _hoisted_2$d = {
30924
+ const _hoisted_2$f = {
30879
30925
  key: 0,
30880
30926
  class: "lupa-related-queries-title"
30881
30927
  };
30882
- const _hoisted_3$8 = ["onClick"];
30883
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
30928
+ const _hoisted_3$a = ["onClick"];
30929
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
30884
30930
  __name: "RelatedQueries",
30885
30931
  props: {
30886
30932
  options: {}
@@ -30892,7 +30938,7 @@ and ensure you are accounting for this risk.
30892
30938
  const optionsStore = useOptionsStore();
30893
30939
  const { searchResult, lastResultsSource } = storeToRefs(searchResultStore);
30894
30940
  const { searchResultOptions } = storeToRefs(optionsStore);
30895
- const relatedQueries = ref([]);
30941
+ const relatedQueries2 = ref([]);
30896
30942
  const allDisplayItems = ref({});
30897
30943
  const querySourceResultMap = ref({});
30898
30944
  const currentSearchText = computed(() => {
@@ -30915,27 +30961,31 @@ and ensure you are accounting for this risk.
30915
30961
  }
30916
30962
  return filters;
30917
30963
  });
30918
- watch(searchResult, () => __async2(this, null, function* () {
30919
- var _a;
30920
- allDisplayItems.value = {};
30921
- querySourceResultMap.value = {};
30922
- if (((_a = searchResult.value) == null ? void 0 : _a.searchText) === void 0 || lastResultsSource.value !== "items") {
30923
- return;
30924
- }
30925
- if (!props.options || !searchResult.value) {
30926
- relatedQueries.value = [];
30927
- }
30928
- const queries = yield extractRelatedSource(
30929
- props.options.source,
30930
- searchResult.value,
30931
- searchResultOptions.value.options,
30932
- currentFiltersWithoutQuerySources.value
30933
- );
30934
- relatedQueries.value = queries;
30935
- }));
30964
+ watch(
30965
+ searchResult,
30966
+ () => __async2(this, null, function* () {
30967
+ var _a;
30968
+ allDisplayItems.value = {};
30969
+ querySourceResultMap.value = {};
30970
+ if (((_a = searchResult.value) == null ? void 0 : _a.searchText) === void 0 || lastResultsSource.value !== "items") {
30971
+ return;
30972
+ }
30973
+ if (!props.options || !searchResult.value) {
30974
+ relatedQueries2.value = [];
30975
+ }
30976
+ const queries = yield extractRelatedSource(
30977
+ props.options.source,
30978
+ searchResult.value,
30979
+ searchResultOptions.value.options,
30980
+ currentFiltersWithoutQuerySources.value
30981
+ );
30982
+ relatedQueries2.value = queries;
30983
+ }),
30984
+ { immediate: true }
30985
+ );
30936
30986
  const hasEnoughRelatedQueries = computed(() => {
30937
30987
  var _a;
30938
- return ((_a = relatedQueries.value) == null ? void 0 : _a.length) > 1;
30988
+ return ((_a = relatedQueries2.value) == null ? void 0 : _a.length) > 1;
30939
30989
  });
30940
30990
  const handleRelatedQueryClick = (query) => {
30941
30991
  var _a;
@@ -30970,10 +31020,10 @@ and ensure you are accounting for this risk.
30970
31020
  };
30971
31021
  return (_ctx, _cache) => {
30972
31022
  var _a, _b, _c, _d;
30973
- return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$h, [
30974
- ((_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),
31023
+ return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$j, [
31024
+ ((_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),
30975
31025
  createBaseVNode("ul", null, [
30976
- (openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries.value, (query) => {
31026
+ (openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries2.value, (query) => {
30977
31027
  return withDirectives((openBlock(), createElementBlock("li", {
30978
31028
  key: query.value + query.key + currentSearchText.value,
30979
31029
  class: normalizeClass(getSelectedFilterClass(query))
@@ -30981,14 +31031,14 @@ and ensure you are accounting for this risk.
30981
31031
  createBaseVNode("a", {
30982
31032
  onClick: ($event) => handleRelatedQueryClick(query)
30983
31033
  }, [
30984
- createVNode(_sfc_main$k, {
31034
+ createVNode(_sfc_main$m, {
30985
31035
  "source-key": query.key,
30986
31036
  options: _ctx.options,
30987
31037
  query: query.value,
30988
31038
  "existing-items-from-other-queries": allDisplayItems.value,
30989
31039
  onLoaded: (item) => processLoadedItem(query, item)
30990
31040
  }, null, 8, ["source-key", "options", "query", "existing-items-from-other-queries", "onLoaded"])
30991
- ], 8, _hoisted_3$8)
31041
+ ], 8, _hoisted_3$a)
30992
31042
  ], 2)), [
30993
31043
  [vShow, querySourceResultMap.value[query.value] !== false]
30994
31044
  ]);
@@ -31025,13 +31075,13 @@ and ensure you are accounting for this risk.
31025
31075
  }
31026
31076
  return null;
31027
31077
  };
31028
- const _hoisted_1$g = {
31078
+ const _hoisted_1$i = {
31029
31079
  key: 0,
31030
31080
  class: "lupa-redirection-suggestion"
31031
31081
  };
31032
- const _hoisted_2$c = { class: "lupa-redirections-suggestion-label" };
31033
- const _hoisted_3$7 = ["href"];
31034
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
31082
+ const _hoisted_2$e = { class: "lupa-redirections-suggestion-label" };
31083
+ const _hoisted_3$9 = ["href"];
31084
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
31035
31085
  __name: "RedirectionSuggestions",
31036
31086
  props: {
31037
31087
  options: {}
@@ -31054,19 +31104,19 @@ and ensure you are accounting for this risk.
31054
31104
  )
31055
31105
  );
31056
31106
  return (_ctx, _cache) => {
31057
- return redirectionSuggestion.value && label.value && link.value ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
31058
- createBaseVNode("h4", _hoisted_2$c, [
31059
- createBaseVNode("a", { href: link.value }, toDisplayString(label.value), 9, _hoisted_3$7)
31107
+ return redirectionSuggestion.value && label.value && link.value ? (openBlock(), createElementBlock("div", _hoisted_1$i, [
31108
+ createBaseVNode("h4", _hoisted_2$e, [
31109
+ createBaseVNode("a", { href: link.value }, toDisplayString(label.value), 9, _hoisted_3$9)
31060
31110
  ])
31061
31111
  ])) : createCommentVNode("", true);
31062
31112
  };
31063
31113
  }
31064
31114
  });
31065
- const _hoisted_1$f = {
31115
+ const _hoisted_1$h = {
31066
31116
  key: 0,
31067
31117
  class: "lupa-refiners-loading-notice"
31068
31118
  };
31069
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
31119
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
31070
31120
  __name: "RefinersLoadingNotice",
31071
31121
  props: {
31072
31122
  labels: {}
@@ -31077,13 +31127,153 @@ and ensure you are accounting for this risk.
31077
31127
  const { loadingRefiners } = storeToRefs(searchResultStore);
31078
31128
  const label = computed(() => props.labels.refinersLoadingNotice);
31079
31129
  return (_ctx, _cache) => {
31080
- return label.value && unref(loadingRefiners) ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
31130
+ return label.value && unref(loadingRefiners) ? (openBlock(), createElementBlock("div", _hoisted_1$h, [
31081
31131
  createBaseVNode("p", null, toDisplayString(label.value), 1),
31082
31132
  createVNode(Spinner)
31083
31133
  ])) : createCommentVNode("", true);
31084
31134
  };
31085
31135
  }
31086
31136
  });
31137
+ const _hoisted_1$g = { class: "lupa-related-query-item" };
31138
+ const _hoisted_2$d = { class: "lupa-related-query-image" };
31139
+ const _hoisted_3$8 = { class: "lupa-related-query-label" };
31140
+ const _hoisted_4$4 = { class: "lupa-related-query-title" };
31141
+ const _hoisted_5$2 = {
31142
+ key: 0,
31143
+ class: "lupa-related-query-count"
31144
+ };
31145
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
31146
+ __name: "RelatedQueryPanelApi",
31147
+ props: {
31148
+ relatedQuery: {},
31149
+ options: {}
31150
+ },
31151
+ setup(__props) {
31152
+ const props = __props;
31153
+ const itemToDisplay = computed(() => {
31154
+ var _a;
31155
+ return (_a = props.relatedQuery.topItems) == null ? void 0 : _a[0];
31156
+ });
31157
+ const optionsStore = useOptionsStore();
31158
+ const { searchResultOptions } = storeToRefs(optionsStore);
31159
+ const mainImage = computed(() => {
31160
+ var _a, _b, _c;
31161
+ return (_c = (_b = (_a = searchResultOptions.value) == null ? void 0 : _a.elements) == null ? void 0 : _b.find((e2) => e2.type === DocumentElementType.IMAGE)) != null ? _c : "";
31162
+ });
31163
+ const image = computed(() => {
31164
+ var _a, _b, _c;
31165
+ return (_c = (_b = (_a = props.options) == null ? void 0 : _a.image) != null ? _b : mainImage == null ? void 0 : mainImage.value) != null ? _c : "";
31166
+ });
31167
+ const query = computed(() => {
31168
+ var _a;
31169
+ return props.relatedQuery.action === "FILTER" ? props.relatedQuery.filterValue : (_a = props.relatedQuery.query) != null ? _a : "";
31170
+ });
31171
+ const totalItemCount = computed(() => {
31172
+ var _a;
31173
+ return (_a = props.relatedQuery.total) != null ? _a : 0;
31174
+ });
31175
+ return (_ctx, _cache) => {
31176
+ var _a;
31177
+ return openBlock(), createElementBlock("div", _hoisted_1$g, [
31178
+ createBaseVNode("div", _hoisted_2$d, [
31179
+ itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1p, {
31180
+ key: 0,
31181
+ "wrapper-class": "lupa-related-query-image-wrapper",
31182
+ "image-class": "lupa-related-query-image",
31183
+ item: itemToDisplay.value,
31184
+ options: image.value
31185
+ }, null, 8, ["item", "options"])) : createCommentVNode("", true)
31186
+ ]),
31187
+ createBaseVNode("div", _hoisted_3$8, [
31188
+ createBaseVNode("span", _hoisted_4$4, toDisplayString(query.value), 1),
31189
+ ((_a = _ctx.options) == null ? void 0 : _a.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$2, "(" + toDisplayString(totalItemCount.value) + ")", 1)) : createCommentVNode("", true)
31190
+ ])
31191
+ ]);
31192
+ };
31193
+ }
31194
+ });
31195
+ const _hoisted_1$f = {
31196
+ key: 0,
31197
+ class: "lupa-related-queries"
31198
+ };
31199
+ const _hoisted_2$c = {
31200
+ key: 0,
31201
+ class: "lupa-related-queries-title"
31202
+ };
31203
+ const _hoisted_3$7 = ["onClick"];
31204
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
31205
+ __name: "RelatedQueriesApi",
31206
+ props: {
31207
+ options: {}
31208
+ },
31209
+ setup(__props) {
31210
+ const searchResultStore = useSearchResultStore();
31211
+ const paramsStore = useParamsStore();
31212
+ const optionsStore = useOptionsStore();
31213
+ const { searchResult, relatedQueriesResult } = storeToRefs(searchResultStore);
31214
+ const relatedQueries2 = computed(() => {
31215
+ var _a, _b;
31216
+ return (_b = (_a = relatedQueriesResult.value) == null ? void 0 : _a.relatedQueries) != null ? _b : [];
31217
+ });
31218
+ const currentSearchText = computed(() => {
31219
+ var _a, _b;
31220
+ return (_b = (_a = searchResult.value) == null ? void 0 : _a.searchText) != null ? _b : "";
31221
+ });
31222
+ const hasEnoughRelatedQueries = computed(() => {
31223
+ var _a;
31224
+ return ((_a = relatedQueries2.value) == null ? void 0 : _a.length) > 1;
31225
+ });
31226
+ const handleRelatedQueryClick = (relatedQuery) => {
31227
+ if (relatedQuery.action === "FILTER") {
31228
+ handleFilter({ key: relatedQuery.facetKey, value: relatedQuery.filterValue });
31229
+ } else {
31230
+ paramsStore.goToResults({ searchText: relatedQuery.query });
31231
+ }
31232
+ };
31233
+ const handleFilter = (query) => {
31234
+ var _a;
31235
+ toggleTermFilter(
31236
+ paramsStore.appendParams,
31237
+ { type: "terms", key: query.key, value: query.value },
31238
+ optionsStore.getQueryParamName,
31239
+ {},
31240
+ (_a = relatedQueries2.value) == null ? void 0 : _a.map((q) => `f.${q.facetKey}`)
31241
+ );
31242
+ };
31243
+ const getSelectedFilterClass = (relatedQuery) => {
31244
+ var _a, _b, _c, _d, _e;
31245
+ if (relatedQuery.action !== "FILTER") {
31246
+ return "";
31247
+ }
31248
+ 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(
31249
+ relatedQuery.filterValue
31250
+ )) ? "lupa-selected-related-query-filter" : "";
31251
+ };
31252
+ return (_ctx, _cache) => {
31253
+ var _a, _b, _c, _d;
31254
+ return hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
31255
+ ((_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),
31256
+ createBaseVNode("ul", null, [
31257
+ (openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries2.value, (query) => {
31258
+ return openBlock(), createElementBlock("li", {
31259
+ key: query.query + query.facetKey + query.filterValue + currentSearchText.value,
31260
+ class: normalizeClass(getSelectedFilterClass(query))
31261
+ }, [
31262
+ createBaseVNode("a", {
31263
+ onClick: ($event) => handleRelatedQueryClick(query)
31264
+ }, [
31265
+ createVNode(_sfc_main$i, {
31266
+ relatedQuery: query,
31267
+ options: _ctx.options
31268
+ }, null, 8, ["relatedQuery", "options"])
31269
+ ], 8, _hoisted_3$7)
31270
+ ], 2);
31271
+ }), 128))
31272
+ ])
31273
+ ])) : createCommentVNode("", true);
31274
+ };
31275
+ }
31276
+ });
31087
31277
  const _hoisted_1$e = { id: "lupa-search-results-products" };
31088
31278
  const _hoisted_2$b = {
31089
31279
  class: "lupa-products",
@@ -31095,12 +31285,12 @@ and ensure you are accounting for this risk.
31095
31285
  "data-cy": "lupa-no-results-in-page"
31096
31286
  };
31097
31287
  const _hoisted_4$3 = {
31098
- key: 4,
31288
+ key: 5,
31099
31289
  class: "lupa-empty-results",
31100
31290
  "data-cy": "lupa-no-results"
31101
31291
  };
31102
- const _hoisted_5$1 = { key: 5 };
31103
- const _hoisted_6$1 = { key: 6 };
31292
+ const _hoisted_5$1 = { key: 6 };
31293
+ const _hoisted_6$1 = { key: 7 };
31104
31294
  const _sfc_main$g = /* @__PURE__ */ defineComponent({
31105
31295
  __name: "SearchResultsProducts",
31106
31296
  props: {
@@ -31121,7 +31311,8 @@ and ensure you are accounting for this risk.
31121
31311
  columnCount,
31122
31312
  searchResult,
31123
31313
  layout,
31124
- loading
31314
+ loading,
31315
+ relatedQueriesApiEnabled
31125
31316
  } = storeToRefs(searchResultStore);
31126
31317
  const productCardOptions = computed(() => {
31127
31318
  return pick(props.options, [
@@ -31202,6 +31393,13 @@ and ensure you are accounting for this risk.
31202
31393
  _lupaUpdatedQuery: searchResult.value.suggestedSearchText
31203
31394
  } : void 0;
31204
31395
  });
31396
+ const showLocalRelatedQueries = computed(() => {
31397
+ var _a;
31398
+ return Boolean(((_a = props.options.relatedQueries) == null ? void 0 : _a.source) && relatedQueriesApiEnabled.value === false);
31399
+ });
31400
+ const showApiRelatedQueries = computed(() => {
31401
+ return Boolean(relatedQueriesApiEnabled.value === true);
31402
+ });
31205
31403
  const getProductKeyAction = (index, product) => {
31206
31404
  return getProductKey(`${index}`, product, props.options.idKey);
31207
31405
  };
@@ -31220,31 +31418,35 @@ and ensure you are accounting for this risk.
31220
31418
  key: 0,
31221
31419
  class: "lupa-loader"
31222
31420
  })) : createCommentVNode("", true),
31223
- createVNode(_sfc_main$i, {
31421
+ createVNode(_sfc_main$k, {
31224
31422
  options: _ctx.options.redirectionSuggestions
31225
31423
  }, null, 8, ["options"]),
31226
- createVNode(_sfc_main$n, {
31424
+ createVNode(_sfc_main$p, {
31227
31425
  options: _ctx.options,
31228
31426
  location: "top",
31229
31427
  sdkOptions: _ctx.options.options
31230
31428
  }, null, 8, ["options", "sdkOptions"]),
31231
- _ctx.options.relatedQueries ? (openBlock(), createBlock(_sfc_main$j, {
31429
+ showLocalRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$l, {
31232
31430
  key: 1,
31233
31431
  options: _ctx.options.relatedQueries
31234
31432
  }, null, 8, ["options"])) : createCommentVNode("", true),
31235
- unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
31236
- showTopFilters.value ? (openBlock(), createBlock(_sfc_main$J, {
31433
+ showApiRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$h, {
31434
+ key: 2,
31435
+ options: _ctx.options.relatedQueries
31436
+ }, null, 8, ["options"])) : createCommentVNode("", true),
31437
+ unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
31438
+ showTopFilters.value ? (openBlock(), createBlock(_sfc_main$L, {
31237
31439
  key: 0,
31238
31440
  options: (_a = _ctx.options.filters) != null ? _a : {}
31239
31441
  }, null, 8, ["options"])) : createCommentVNode("", true),
31240
- showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$C, {
31442
+ showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$E, {
31241
31443
  key: 1,
31242
31444
  class: "lupa-toolbar-mobile",
31243
31445
  options: _ctx.options,
31244
31446
  "pagination-location": "top",
31245
31447
  onFilter: filter2
31246
31448
  }, null, 8, ["options"])) : createCommentVNode("", true),
31247
- currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$X, {
31449
+ currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$Z, {
31248
31450
  key: 2,
31249
31451
  class: normalizeClass(currentFiltersClass.value),
31250
31452
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -31252,13 +31454,13 @@ and ensure you are accounting for this risk.
31252
31454
  expandable: !desktopFiltersExpanded.value
31253
31455
  }, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true)
31254
31456
  ], 64)) : createCommentVNode("", true),
31255
- unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
31256
- createVNode(_sfc_main$C, {
31457
+ unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [
31458
+ createVNode(_sfc_main$E, {
31257
31459
  class: "lupa-toolbar-top",
31258
31460
  options: _ctx.options,
31259
31461
  "pagination-location": "top"
31260
31462
  }, null, 8, ["options"]),
31261
- currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$X, {
31463
+ currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$Z, {
31262
31464
  key: 0,
31263
31465
  class: normalizeClass(currentFiltersClass.value),
31264
31466
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -31274,7 +31476,7 @@ and ensure you are accounting for this risk.
31274
31476
  options: productCardOptions.value
31275
31477
  });
31276
31478
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
31277
- return openBlock(), createBlock(_sfc_main$q, {
31479
+ return openBlock(), createBlock(_sfc_main$s, {
31278
31480
  style: normalizeStyle(columnSize.value),
31279
31481
  key: getProductKeyAction(index, product),
31280
31482
  product,
@@ -31291,12 +31493,12 @@ and ensure you are accounting for this risk.
31291
31493
  onClick: goToFirstPage
31292
31494
  }, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
31293
31495
  ])) : createCommentVNode("", true),
31294
- createVNode(_sfc_main$C, {
31496
+ createVNode(_sfc_main$E, {
31295
31497
  class: "lupa-toolbar-bottom",
31296
31498
  options: _ctx.options,
31297
31499
  "pagination-location": "bottom"
31298
31500
  }, null, 8, ["options"]),
31299
- createVNode(_sfc_main$n, {
31501
+ createVNode(_sfc_main$p, {
31300
31502
  options: _ctx.options,
31301
31503
  location: "bottom",
31302
31504
  sdkOptions: _ctx.options.options
@@ -31305,18 +31507,18 @@ and ensure you are accounting for this risk.
31305
31507
  createTextVNode(toDisplayString(_ctx.options.labels.emptyResults) + " ", 1),
31306
31508
  createBaseVNode("span", null, toDisplayString(unref(currentQueryText)), 1)
31307
31509
  ])) : createCommentVNode("", true),
31308
- createVNode(_sfc_main$h, {
31510
+ createVNode(_sfc_main$j, {
31309
31511
  labels: _ctx.options.labels
31310
31512
  }, null, 8, ["labels"]),
31311
31513
  hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
31312
- createVNode(_sfc_main$p, {
31514
+ createVNode(_sfc_main$r, {
31313
31515
  labels: similarQueriesLabels.value,
31314
31516
  columnSize: columnSize.value,
31315
31517
  productCardOptions: productCardOptions.value
31316
31518
  }, null, 8, ["labels", "columnSize", "productCardOptions"])
31317
31519
  ])) : createCommentVNode("", true),
31318
31520
  hasSimilarResults.value ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
31319
- createVNode(_sfc_main$l, {
31521
+ createVNode(_sfc_main$n, {
31320
31522
  labels: similarResultsLabels.value,
31321
31523
  columnSize: columnSize.value,
31322
31524
  productCardOptions: productCardOptions.value
@@ -31395,14 +31597,14 @@ and ensure you are accounting for this risk.
31395
31597
  ])) : createCommentVNode("", true),
31396
31598
  hasRelatedCategoryChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$2, [
31397
31599
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
31398
- return openBlock(), createBlock(_sfc_main$W, {
31600
+ return openBlock(), createBlock(_sfc_main$Y, {
31399
31601
  key: getCategoryKey(child),
31400
31602
  item: child,
31401
31603
  options: categoryOptions.value
31402
31604
  }, null, 8, ["item", "options"]);
31403
31605
  }), 128))
31404
31606
  ])) : createCommentVNode("", true),
31405
- createVNode(_sfc_main$C, {
31607
+ createVNode(_sfc_main$E, {
31406
31608
  class: "lupa-toolbar-mobile",
31407
31609
  "pagination-location": "top",
31408
31610
  options: _ctx.options
@@ -31555,14 +31757,23 @@ and ensure you are accounting for this risk.
31555
31757
  return;
31556
31758
  }
31557
31759
  LupaSearchSdk.query(props.options.queryKey, query2, props.options.options).then((res) => {
31558
- var _a, _b;
31760
+ var _a, _b, _c;
31559
31761
  if (res.success) {
31560
31762
  handleResults({ queryKey: props.options.queryKey, results: res });
31561
31763
  searchResultStore.add(requestId, __spreadValues2({}, res));
31764
+ searchResultStore.setRelatedQueriesApiEnabled((_a = res.hasRelatedQueries) != null ? _a : false);
31765
+ if (res.hasRelatedQueries) {
31766
+ searchResultStore.queryRelatedQueries(
31767
+ props.options.queryKey,
31768
+ publicQuery,
31769
+ res,
31770
+ props.options.options
31771
+ );
31772
+ }
31562
31773
  if (props.options.splitExpensiveRequests && res.refinementThreshold >= res.total) {
31563
31774
  queryRefiners(requestId, publicQuery);
31564
31775
  }
31565
- } else if ((_b = (_a = props.options) == null ? void 0 : _a.options) == null ? void 0 : _b.onError) {
31776
+ } else if ((_c = (_b = props.options) == null ? void 0 : _b.options) == null ? void 0 : _c.onError) {
31566
31777
  props.options.options.onError(res);
31567
31778
  }
31568
31779
  }).catch((err) => {
@@ -31701,8 +31912,8 @@ and ensure you are accounting for this risk.
31701
31912
  class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
31702
31913
  }, [
31703
31914
  _ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
31704
- createVNode(_sfc_main$$, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
31705
- createVNode(_sfc_main$Z, {
31915
+ createVNode(_sfc_main$11, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
31916
+ createVNode(_sfc_main$$, {
31706
31917
  "show-summary": true,
31707
31918
  options: _ctx.options,
31708
31919
  "is-product-list": (_a = _ctx.isProductList) != null ? _a : false
@@ -31712,12 +31923,12 @@ and ensure you are accounting for this risk.
31712
31923
  key: 1,
31713
31924
  options: _ctx.options
31714
31925
  }, null, 8, ["options"])) : createCommentVNode("", true),
31715
- _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$L, {
31926
+ _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$N, {
31716
31927
  key: 2,
31717
31928
  options: _ctx.options.filters,
31718
31929
  onFilter: handleParamsChange
31719
31930
  }, null, 8, ["options"])) : createCommentVNode("", true),
31720
- unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$K, {
31931
+ unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$M, {
31721
31932
  key: 3,
31722
31933
  breadcrumbs: _ctx.options.breadcrumbs
31723
31934
  }, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
@@ -31726,7 +31937,7 @@ and ensure you are accounting for this risk.
31726
31937
  id: "lupa-search-results",
31727
31938
  class: normalizeClass(["top-layout-wrapper", indicatorClasses.value])
31728
31939
  }, [
31729
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$M, {
31940
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$O, {
31730
31941
  key: 0,
31731
31942
  options: (_b = _ctx.options.filters) != null ? _b : {},
31732
31943
  ref_key: "searchResultsFilters",
@@ -31734,8 +31945,8 @@ and ensure you are accounting for this risk.
31734
31945
  onFilter: handleParamsChange
31735
31946
  }, null, 8, ["options"])) : createCommentVNode("", true),
31736
31947
  createBaseVNode("div", _hoisted_2$9, [
31737
- createVNode(_sfc_main$$, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
31738
- createVNode(_sfc_main$Z, {
31948
+ createVNode(_sfc_main$11, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
31949
+ createVNode(_sfc_main$$, {
31739
31950
  options: _ctx.options,
31740
31951
  "is-product-list": (_c = _ctx.isProductList) != null ? _c : false
31741
31952
  }, null, 8, ["options", "is-product-list"]),
@@ -31751,8 +31962,8 @@ and ensure you are accounting for this risk.
31751
31962
  }, 8, ["options", "ssr"])
31752
31963
  ])
31753
31964
  ], 2)) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
31754
- createVNode(_sfc_main$$, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
31755
- createVNode(_sfc_main$Z, {
31965
+ createVNode(_sfc_main$11, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
31966
+ createVNode(_sfc_main$$, {
31756
31967
  options: _ctx.options,
31757
31968
  "is-product-list": (_d = _ctx.isProductList) != null ? _d : false
31758
31969
  }, null, 8, ["options", "is-product-list"]),
@@ -31760,7 +31971,7 @@ and ensure you are accounting for this risk.
31760
31971
  id: "lupa-search-results",
31761
31972
  class: normalizeClass(indicatorClasses.value)
31762
31973
  }, [
31763
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$M, {
31974
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$O, {
31764
31975
  key: 0,
31765
31976
  options: (_e = _ctx.options.filters) != null ? _e : {},
31766
31977
  ref_key: "searchResultsFilters",
@@ -31912,7 +32123,7 @@ and ensure you are accounting for this risk.
31912
32123
  onClick: withModifiers(innerClick, ["stop"])
31913
32124
  }, [
31914
32125
  createBaseVNode("div", _hoisted_2$7, [
31915
- createVNode(_sfc_main$10, {
32126
+ createVNode(_sfc_main$12, {
31916
32127
  options: fullSearchBoxOptions.value,
31917
32128
  "is-search-container": true,
31918
32129
  ref_key: "searchBox",
@@ -32811,7 +33022,7 @@ and ensure you are accounting for this risk.
32811
33022
  key: getProductKeyAction(index, product)
32812
33023
  }, {
32813
33024
  default: withCtx(() => [
32814
- createVNode(_sfc_main$q, {
33025
+ createVNode(_sfc_main$s, {
32815
33026
  product,
32816
33027
  options: _ctx.options,
32817
33028
  "click-tracking-settings": clickTrackingSettings.value,
@@ -32826,7 +33037,7 @@ and ensure you are accounting for this risk.
32826
33037
  _: 1
32827
33038
  }, 16)) : (openBlock(), createElementBlock("div", _hoisted_3$4, [
32828
33039
  (openBlock(true), createElementBlock(Fragment, null, renderList(recommendations2.value, (product, index) => {
32829
- return openBlock(), createBlock(_sfc_main$q, {
33040
+ return openBlock(), createBlock(_sfc_main$s, {
32830
33041
  style: normalizeStyle(columnSize.value),
32831
33042
  key: getProductKeyAction(index, product),
32832
33043
  product,
@@ -33091,7 +33302,7 @@ and ensure you are accounting for this risk.
33091
33302
  createBaseVNode("a", {
33092
33303
  href: getLink(product)
33093
33304
  }, [
33094
- createVNode(_sfc_main$B, {
33305
+ createVNode(_sfc_main$D, {
33095
33306
  item: product,
33096
33307
  options: image.value
33097
33308
  }, null, 8, ["item", "options"])
@@ -33255,7 +33466,7 @@ and ensure you are accounting for this risk.
33255
33466
  return (_ctx, _cache) => {
33256
33467
  return openBlock(), createElementBlock("section", _hoisted_1$3, [
33257
33468
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
33258
- return openBlock(), createBlock(_sfc_main$q, {
33469
+ return openBlock(), createBlock(_sfc_main$s, {
33259
33470
  class: "lupa-chat-product-card",
33260
33471
  key: getProductKeyAction(index, product),
33261
33472
  product,
@@ -33448,7 +33659,7 @@ and ensure you are accounting for this risk.
33448
33659
  key: 0,
33449
33660
  class: "lupasearch-chat-content"
33450
33661
  };
33451
- const _sfc_main$1w = /* @__PURE__ */ defineComponent({
33662
+ const _sfc_main$1y = /* @__PURE__ */ defineComponent({
33452
33663
  __name: "ChatContainer",
33453
33664
  props: {
33454
33665
  options: {}
@@ -39466,7 +39677,7 @@ and ensure you are accounting for this risk.
39466
39677
  };
39467
39678
  __expose({ fetch: fetch2 });
39468
39679
  return (_ctx, _cache) => {
39469
- return openBlock(), createBlock(unref(_sfc_main$10), {
39680
+ return openBlock(), createBlock(unref(_sfc_main$12), {
39470
39681
  options: fullSearchBoxOptions.value,
39471
39682
  ref_key: "searchBox",
39472
39683
  ref: searchBox2
@@ -40102,7 +40313,7 @@ and ensure you are accounting for this risk.
40102
40313
  const instance = createVue(
40103
40314
  options.displayOptions.containerSelector,
40104
40315
  mountOptions == null ? void 0 : mountOptions.mountingBehavior,
40105
- _sfc_main$1w,
40316
+ _sfc_main$1y,
40106
40317
  {
40107
40318
  options
40108
40319
  }