@getlupa/client 1.17.14 → 1.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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);
@@ -13994,9 +14006,16 @@ var __async = (__this, __arguments, generator) => {
13994
14006
  value: Array.isArray(singleFacetParam.value) ? singleFacetParam.value[0] : singleFacetParam.value
13995
14007
  })
13996
14008
  ] : [];
14009
+ const limitParam = params.value[QUERY_PARAMS_PARSED.LIMIT] ? [
14010
+ {
14011
+ name: optionsStore.getQueryParamName(QUERY_PARAMS$1.LIMIT),
14012
+ value: limit.value.toString()
14013
+ }
14014
+ ] : [];
13997
14015
  appendParams({
13998
14016
  params: [
13999
14017
  { name: optionsStore.getQueryParamName(QUERY_PARAMS$1.QUERY), value: searchText },
14018
+ ...limitParam,
14000
14019
  ...facetParam
14001
14020
  ],
14002
14021
  paramsToRemove: "all",
@@ -14297,11 +14316,11 @@ var __async = (__this, __arguments, generator) => {
14297
14316
  resetHighlightIndex
14298
14317
  };
14299
14318
  });
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"];
14319
+ const _hoisted_1$1k = { id: "lupa-search-box-input-container" };
14320
+ const _hoisted_2$V = { class: "lupa-input-clear" };
14321
+ const _hoisted_3$E = { id: "lupa-search-box-input" };
14322
+ const _hoisted_4$v = ["value"];
14323
+ const _hoisted_5$l = ["aria-label", "placeholder"];
14305
14324
  const _hoisted_6$9 = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
14306
14325
  const _hoisted_7$7 = [
14307
14326
  _hoisted_6$9
@@ -14310,7 +14329,7 @@ var __async = (__this, __arguments, generator) => {
14310
14329
  key: 0,
14311
14330
  class: "lupa-close-label"
14312
14331
  };
14313
- const _sfc_main$1v = /* @__PURE__ */ defineComponent({
14332
+ const _sfc_main$1x = /* @__PURE__ */ defineComponent({
14314
14333
  __name: "SearchBoxInput",
14315
14334
  props: {
14316
14335
  options: {},
@@ -14394,20 +14413,20 @@ var __async = (__this, __arguments, generator) => {
14394
14413
  };
14395
14414
  __expose({ focus });
14396
14415
  return (_ctx, _cache) => {
14397
- return openBlock(), createElementBlock("div", _hoisted_1$1i, [
14398
- createBaseVNode("div", _hoisted_2$T, [
14416
+ return openBlock(), createElementBlock("div", _hoisted_1$1k, [
14417
+ createBaseVNode("div", _hoisted_2$V, [
14399
14418
  createBaseVNode("div", {
14400
14419
  class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
14401
14420
  onClick: clear2
14402
14421
  }, null, 2)
14403
14422
  ]),
14404
- createBaseVNode("div", _hoisted_3$C, [
14423
+ createBaseVNode("div", _hoisted_3$E, [
14405
14424
  createBaseVNode("input", {
14406
14425
  class: "lupa-hint",
14407
14426
  "aria-hidden": "true",
14408
14427
  value: showHint.value ? suggestedValue.value.item.suggestion : "",
14409
14428
  disabled: ""
14410
- }, null, 8, _hoisted_4$u),
14429
+ }, null, 8, _hoisted_4$v),
14411
14430
  withDirectives(createBaseVNode("input", mergeProps({
14412
14431
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
14413
14432
  }, inputAttributes.value, {
@@ -14421,7 +14440,7 @@ var __async = (__this, __arguments, generator) => {
14421
14440
  placeholder: labels.value.placeholder,
14422
14441
  onInput: handleInput,
14423
14442
  onFocus: handleFocus
14424
- }), null, 16, _hoisted_5$k), [
14443
+ }), null, 16, _hoisted_5$l), [
14425
14444
  [vModelText, inputValue.value]
14426
14445
  ]),
14427
14446
  _ctx.options.showSubmitButton ? (openBlock(), createElementBlock("button", {
@@ -14440,7 +14459,7 @@ var __async = (__this, __arguments, generator) => {
14440
14459
  };
14441
14460
  }
14442
14461
  });
14443
- const _sfc_main$1u = /* @__PURE__ */ defineComponent({
14462
+ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
14444
14463
  __name: "SearchBoxMoreResults",
14445
14464
  props: {
14446
14465
  labels: {},
@@ -14477,9 +14496,9 @@ var __async = (__this, __arguments, generator) => {
14477
14496
  };
14478
14497
  }
14479
14498
  });
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({
14499
+ const _hoisted_1$1j = { class: "lupa-search-box-history-item" };
14500
+ const _hoisted_2$U = { class: "lupa-search-box-history-item-content" };
14501
+ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
14483
14502
  __name: "SearchBoxHistoryItem",
14484
14503
  props: {
14485
14504
  item: {},
@@ -14495,8 +14514,8 @@ var __async = (__this, __arguments, generator) => {
14495
14514
  emit2("click", { query: props.item });
14496
14515
  };
14497
14516
  return (_ctx, _cache) => {
14498
- return openBlock(), createElementBlock("div", _hoisted_1$1h, [
14499
- createBaseVNode("div", _hoisted_2$S, [
14517
+ return openBlock(), createElementBlock("div", _hoisted_1$1j, [
14518
+ createBaseVNode("div", _hoisted_2$U, [
14500
14519
  createBaseVNode("div", {
14501
14520
  class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
14502
14521
  onClick: click2
@@ -14510,11 +14529,11 @@ var __async = (__this, __arguments, generator) => {
14510
14529
  };
14511
14530
  }
14512
14531
  });
14513
- const _hoisted_1$1g = {
14532
+ const _hoisted_1$1i = {
14514
14533
  key: 0,
14515
14534
  class: "lupa-search-box-history-panel"
14516
14535
  };
14517
- const _sfc_main$1s = /* @__PURE__ */ defineComponent({
14536
+ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
14518
14537
  __name: "SearchBoxHistoryPanel",
14519
14538
  props: {
14520
14539
  options: {}
@@ -14564,9 +14583,9 @@ var __async = (__this, __arguments, generator) => {
14564
14583
  }
14565
14584
  };
14566
14585
  return (_ctx, _cache) => {
14567
- return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1g, [
14586
+ return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1i, [
14568
14587
  (openBlock(true), createElementBlock(Fragment, null, renderList(limitedHistory.value, (item, index) => {
14569
- return openBlock(), createBlock(_sfc_main$1t, {
14588
+ return openBlock(), createBlock(_sfc_main$1v, {
14570
14589
  key: item,
14571
14590
  item,
14572
14591
  highlighted: index === highlightIndex.value,
@@ -14582,15 +14601,15 @@ var __async = (__this, __arguments, generator) => {
14582
14601
  };
14583
14602
  }
14584
14603
  });
14585
- const _hoisted_1$1f = { class: "lupa-search-box-no-results" };
14586
- const _sfc_main$1r = /* @__PURE__ */ defineComponent({
14604
+ const _hoisted_1$1h = { class: "lupa-search-box-no-results" };
14605
+ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
14587
14606
  __name: "SearchBoxNoResults",
14588
14607
  props: {
14589
14608
  labels: {}
14590
14609
  },
14591
14610
  setup(__props) {
14592
14611
  return (_ctx, _cache) => {
14593
- return openBlock(), createElementBlock("p", _hoisted_1$1f, toDisplayString(_ctx.labels.noResults), 1);
14612
+ return openBlock(), createElementBlock("p", _hoisted_1$1h, toDisplayString(_ctx.labels.noResults), 1);
14594
14613
  };
14595
14614
  }
14596
14615
  });
@@ -14622,26 +14641,26 @@ var __async = (__this, __arguments, generator) => {
14622
14641
  }
14623
14642
  return gridTemplate.join(" ");
14624
14643
  };
14625
- const _hoisted_1$1e = ["innerHTML"];
14626
- const _hoisted_2$R = {
14644
+ const _hoisted_1$1g = ["innerHTML"];
14645
+ const _hoisted_2$T = {
14627
14646
  key: 1,
14628
14647
  "data-cy": "lupa-suggestion-value",
14629
14648
  class: "lupa-suggestion-value"
14630
14649
  };
14631
- const _hoisted_3$B = {
14650
+ const _hoisted_3$D = {
14632
14651
  key: 2,
14633
14652
  class: "lupa-suggestion-facet",
14634
14653
  "data-cy": "lupa-suggestion-facet"
14635
14654
  };
14636
- const _hoisted_4$t = {
14655
+ const _hoisted_4$u = {
14637
14656
  class: "lupa-suggestion-facet-label",
14638
14657
  "data-cy": "lupa-suggestion-facet-label"
14639
14658
  };
14640
- const _hoisted_5$j = {
14659
+ const _hoisted_5$k = {
14641
14660
  class: "lupa-suggestion-facet-value",
14642
14661
  "data-cy": "lupa-suggestion-facet-value"
14643
14662
  };
14644
- const _sfc_main$1q = /* @__PURE__ */ defineComponent({
14663
+ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
14645
14664
  __name: "SearchBoxSuggestion",
14646
14665
  props: {
14647
14666
  suggestion: {},
@@ -14677,20 +14696,20 @@ var __async = (__this, __arguments, generator) => {
14677
14696
  class: "lupa-suggestion-value",
14678
14697
  "data-cy": "lupa-suggestion-value",
14679
14698
  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)
14699
+ }, null, 8, _hoisted_1$1g)) : (openBlock(), createElementBlock("div", _hoisted_2$T, toDisplayString(_ctx.suggestion.display), 1)),
14700
+ _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$D, [
14701
+ createBaseVNode("span", _hoisted_4$u, toDisplayString(facetLabel.value), 1),
14702
+ createBaseVNode("span", _hoisted_5$k, toDisplayString(_ctx.suggestion.facet.title), 1)
14684
14703
  ])) : createCommentVNode("", true)
14685
14704
  ]);
14686
14705
  };
14687
14706
  }
14688
14707
  });
14689
- const _hoisted_1$1d = {
14708
+ const _hoisted_1$1f = {
14690
14709
  id: "lupa-search-box-suggestions",
14691
14710
  "data-cy": "lupa-search-box-suggestions"
14692
14711
  };
14693
- const _sfc_main$1p = /* @__PURE__ */ defineComponent({
14712
+ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
14694
14713
  __name: "SearchBoxSuggestions",
14695
14714
  props: {
14696
14715
  items: {},
@@ -14750,9 +14769,9 @@ var __async = (__this, __arguments, generator) => {
14750
14769
  });
14751
14770
  });
14752
14771
  return (_ctx, _cache) => {
14753
- return openBlock(), createElementBlock("div", _hoisted_1$1d, [
14772
+ return openBlock(), createElementBlock("div", _hoisted_1$1f, [
14754
14773
  (openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
14755
- return openBlock(), createBlock(_sfc_main$1q, {
14774
+ return openBlock(), createBlock(_sfc_main$1s, {
14756
14775
  key: getSuggestionKey(item),
14757
14776
  class: normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
14758
14777
  suggestion: item,
@@ -14780,7 +14799,7 @@ var __async = (__this, __arguments, generator) => {
14780
14799
  }, timeout);
14781
14800
  };
14782
14801
  };
14783
- const _sfc_main$1o = /* @__PURE__ */ defineComponent({
14802
+ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
14784
14803
  __name: "SearchBoxSuggestionsWrapper",
14785
14804
  props: {
14786
14805
  panel: {},
@@ -14822,7 +14841,7 @@ var __async = (__this, __arguments, generator) => {
14822
14841
  const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
14823
14842
  watch(() => props.panel.limit, getSuggestionsDebounced);
14824
14843
  return (_ctx, _cache) => {
14825
- return openBlock(), createBlock(_sfc_main$1p, {
14844
+ return openBlock(), createBlock(_sfc_main$1r, {
14826
14845
  items: searchResult.value,
14827
14846
  highlight: _ctx.panel.highlight,
14828
14847
  queryKey: _ctx.panel.queryKey,
@@ -23876,9 +23895,9 @@ and ensure you are accounting for this risk.
23876
23895
  targetImage.src = placeholder;
23877
23896
  }
23878
23897
  };
23879
- const _hoisted_1$1c = ["src"];
23880
- const _hoisted_2$Q = ["src"];
23881
- const _sfc_main$1n = /* @__PURE__ */ defineComponent({
23898
+ const _hoisted_1$1e = ["src"];
23899
+ const _hoisted_2$S = ["src"];
23900
+ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
23882
23901
  __name: "ProductImage",
23883
23902
  props: {
23884
23903
  item: {},
@@ -24020,7 +24039,7 @@ and ensure you are accounting for this risk.
24020
24039
  }, { alt: imageAlt.value ? imageAlt.value : void 0 }, {
24021
24040
  onError: replaceWithPlaceholder,
24022
24041
  key: finalUrl.value
24023
- }), null, 16, _hoisted_1$1c))
24042
+ }), null, 16, _hoisted_1$1e))
24024
24043
  ]),
24025
24044
  _: 1
24026
24045
  })) : (openBlock(), createElementBlock("img", mergeProps({
@@ -24028,12 +24047,12 @@ and ensure you are accounting for this risk.
24028
24047
  class: ["lupa-images-main-image", { [_ctx.imageClass]: true }],
24029
24048
  style: styleOverride.value,
24030
24049
  src: finalMainImageUrl.value
24031
- }, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$Q))
24050
+ }, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$S))
24032
24051
  ], 38);
24033
24052
  };
24034
24053
  }
24035
24054
  });
24036
- const _sfc_main$1m = /* @__PURE__ */ defineComponent({
24055
+ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
24037
24056
  __name: "SearchBoxProductImage",
24038
24057
  props: {
24039
24058
  item: {},
@@ -24041,7 +24060,7 @@ and ensure you are accounting for this risk.
24041
24060
  },
24042
24061
  setup(__props) {
24043
24062
  return (_ctx, _cache) => {
24044
- return openBlock(), createBlock(_sfc_main$1n, {
24063
+ return openBlock(), createBlock(_sfc_main$1p, {
24045
24064
  item: _ctx.item,
24046
24065
  options: _ctx.options,
24047
24066
  "wrapper-class": "lupa-search-box-image-wrapper",
@@ -24050,12 +24069,12 @@ and ensure you are accounting for this risk.
24050
24069
  };
24051
24070
  }
24052
24071
  });
24053
- const _hoisted_1$1b = ["innerHTML"];
24054
- const _hoisted_2$P = {
24072
+ const _hoisted_1$1d = ["innerHTML"];
24073
+ const _hoisted_2$R = {
24055
24074
  key: 1,
24056
24075
  class: "lupa-search-box-product-title"
24057
24076
  };
24058
- const _sfc_main$1l = /* @__PURE__ */ defineComponent({
24077
+ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
24059
24078
  __name: "SearchBoxProductTitle",
24060
24079
  props: {
24061
24080
  item: {},
@@ -24078,18 +24097,18 @@ and ensure you are accounting for this risk.
24078
24097
  key: 0,
24079
24098
  class: "lupa-search-box-product-title",
24080
24099
  innerHTML: sanitizedTitle.value
24081
- }, null, 8, _hoisted_1$1b)) : (openBlock(), createElementBlock("div", _hoisted_2$P, [
24100
+ }, null, 8, _hoisted_1$1d)) : (openBlock(), createElementBlock("div", _hoisted_2$R, [
24082
24101
  createBaseVNode("strong", null, toDisplayString(title.value), 1)
24083
24102
  ]));
24084
24103
  };
24085
24104
  }
24086
24105
  });
24087
- const _hoisted_1$1a = ["innerHTML"];
24088
- const _hoisted_2$O = {
24106
+ const _hoisted_1$1c = ["innerHTML"];
24107
+ const _hoisted_2$Q = {
24089
24108
  key: 1,
24090
24109
  class: "lupa-search-box-product-description"
24091
24110
  };
24092
- const _sfc_main$1k = /* @__PURE__ */ defineComponent({
24111
+ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
24093
24112
  __name: "SearchBoxProductDescription",
24094
24113
  props: {
24095
24114
  item: {},
@@ -24112,12 +24131,12 @@ and ensure you are accounting for this risk.
24112
24131
  key: 0,
24113
24132
  class: "lupa-search-box-product-description",
24114
24133
  innerHTML: sanitizedDescription.value
24115
- }, null, 8, _hoisted_1$1a)) : (openBlock(), createElementBlock("div", _hoisted_2$O, toDisplayString(description.value), 1));
24134
+ }, null, 8, _hoisted_1$1c)) : (openBlock(), createElementBlock("div", _hoisted_2$Q, toDisplayString(description.value), 1));
24116
24135
  };
24117
24136
  }
24118
24137
  });
24119
- const _hoisted_1$19 = { class: "lupa-search-box-product-price" };
24120
- const _sfc_main$1j = /* @__PURE__ */ defineComponent({
24138
+ const _hoisted_1$1b = { class: "lupa-search-box-product-price" };
24139
+ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
24121
24140
  __name: "SearchBoxProductPrice",
24122
24141
  props: {
24123
24142
  item: {},
@@ -24136,13 +24155,13 @@ and ensure you are accounting for this risk.
24136
24155
  );
24137
24156
  });
24138
24157
  return (_ctx, _cache) => {
24139
- return openBlock(), createElementBlock("div", _hoisted_1$19, [
24158
+ return openBlock(), createElementBlock("div", _hoisted_1$1b, [
24140
24159
  createBaseVNode("strong", null, toDisplayString(price.value), 1)
24141
24160
  ]);
24142
24161
  };
24143
24162
  }
24144
24163
  });
24145
- const _sfc_main$1i = /* @__PURE__ */ defineComponent({
24164
+ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
24146
24165
  __name: "SearchBoxProductRegularPrice",
24147
24166
  props: {
24148
24167
  item: {},
@@ -24170,12 +24189,12 @@ and ensure you are accounting for this risk.
24170
24189
  };
24171
24190
  }
24172
24191
  });
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({
24192
+ const _hoisted_1$1a = ["innerHTML"];
24193
+ const _hoisted_2$P = { key: 0 };
24194
+ const _hoisted_3$C = { key: 1 };
24195
+ const _hoisted_4$t = { class: "lupa-search-box-custom-label" };
24196
+ const _hoisted_5$j = { class: "lupa-search-box-custom-text" };
24197
+ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
24179
24198
  __name: "SearchBoxProductCustom",
24180
24199
  props: {
24181
24200
  item: {},
@@ -24201,20 +24220,20 @@ and ensure you are accounting for this risk.
24201
24220
  key: 0,
24202
24221
  class: [className.value, "lupa-search-box-product-custom"],
24203
24222
  innerHTML: text.value
24204
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$18)) : (openBlock(), createElementBlock("div", mergeProps({
24223
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$1a)) : (openBlock(), createElementBlock("div", mergeProps({
24205
24224
  key: 1,
24206
24225
  class: [className.value, "lupa-search-box-product-custom"]
24207
24226
  }, 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)
24227
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$C, [
24228
+ createBaseVNode("div", _hoisted_4$t, toDisplayString(label.value), 1),
24229
+ createBaseVNode("div", _hoisted_5$j, toDisplayString(text.value), 1)
24211
24230
  ]))
24212
24231
  ], 16));
24213
24232
  };
24214
24233
  }
24215
24234
  });
24216
- const _hoisted_1$17 = ["innerHTML"];
24217
- const _sfc_main$1g = /* @__PURE__ */ defineComponent({
24235
+ const _hoisted_1$19 = ["innerHTML"];
24236
+ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
24218
24237
  __name: "SearchBoxProductCustomHtml",
24219
24238
  props: {
24220
24239
  item: {},
@@ -24239,7 +24258,7 @@ and ensure you are accounting for this risk.
24239
24258
  return openBlock(), createElementBlock("div", mergeProps({
24240
24259
  class: className.value,
24241
24260
  innerHTML: text.value
24242
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$17);
24261
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$19);
24243
24262
  };
24244
24263
  }
24245
24264
  });
@@ -24296,10 +24315,13 @@ and ensure you are accounting for this risk.
24296
24315
  const loading = ref(false);
24297
24316
  const loadingFacets = ref(false);
24298
24317
  const loadingRefiners = ref(false);
24318
+ const loadingRelatedQueries = ref(false);
24299
24319
  const isMobileSidebarVisible = ref(false);
24300
24320
  const relatedCategoryChildren = ref([]);
24301
24321
  const lastRequestId = ref("");
24302
24322
  const searchRequestResults = ref({});
24323
+ const relatedQueriesResult = ref({});
24324
+ const relatedQueriesApiEnabled = ref(null);
24303
24325
  const lastResultsSource = ref(void 0);
24304
24326
  const optionsStore = useOptionsStore();
24305
24327
  const paramsStore = useParamsStore();
@@ -24453,6 +24475,9 @@ and ensure you are accounting for this risk.
24453
24475
  const screenWidth = (_a = currentScreenWidth.value) != null ? _a : "xl";
24454
24476
  columnCount.value = grid.columns[screenWidth];
24455
24477
  };
24478
+ const setRelatedQueriesApiEnabled = (enabled) => {
24479
+ relatedQueriesApiEnabled.value = enabled;
24480
+ };
24456
24481
  const setAddToCartAmount = (newAddToCartAmount) => {
24457
24482
  if (!newAddToCartAmount) {
24458
24483
  return;
@@ -24483,6 +24508,27 @@ and ensure you are accounting for this risk.
24483
24508
  const setRelatedCategoryChildren = (children) => {
24484
24509
  relatedCategoryChildren.value = [...children];
24485
24510
  };
24511
+ const queryRelatedQueries = (queryKey, publicQuery, result2, options) => __async2(void 0, null, function* () {
24512
+ var _a, _b;
24513
+ loadingRelatedQueries.value = true;
24514
+ const context = getLupaTrackingContext();
24515
+ const searchText = (_b = (_a = result2.suggestedSearchText) != null ? _a : result2.searchText) != null ? _b : "";
24516
+ const query = __spreadProps2(__spreadValues2(__spreadProps2(__spreadValues2({}, publicQuery), {
24517
+ searchText
24518
+ }), context), {
24519
+ modifiers: { facets: false, refiners: true }
24520
+ });
24521
+ LupaSearchSdk.queryRelated(queryKey, query, options).then((res) => {
24522
+ if (!res.success) {
24523
+ return;
24524
+ }
24525
+ relatedQueriesResult.value = res;
24526
+ }).catch((err) => {
24527
+ console.error(err);
24528
+ }).finally(() => {
24529
+ loadingRelatedQueries.value = false;
24530
+ });
24531
+ });
24486
24532
  return {
24487
24533
  isMobileSidebarVisible,
24488
24534
  searchResult,
@@ -24507,6 +24553,8 @@ and ensure you are accounting for this risk.
24507
24553
  hideFiltersOnExactMatchForKeys,
24508
24554
  relatedCategoryChildren,
24509
24555
  searchRequestResults,
24556
+ relatedQueriesResult,
24557
+ relatedQueriesApiEnabled,
24510
24558
  lastResultsSource,
24511
24559
  setSidebarState,
24512
24560
  queryFacet,
@@ -24519,15 +24567,17 @@ and ensure you are accounting for this risk.
24519
24567
  setLoading,
24520
24568
  clearSearchResult,
24521
24569
  filterVisibleFilterValues,
24522
- setRelatedCategoryChildren
24570
+ setRelatedCategoryChildren,
24571
+ queryRelatedQueries,
24572
+ setRelatedQueriesApiEnabled
24523
24573
  };
24524
24574
  });
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({
24575
+ const _hoisted_1$18 = { class: "lupa-search-box-add-to-cart-wrapper" };
24576
+ const _hoisted_2$O = { class: "lupa-search-box-product-addtocart" };
24577
+ const _hoisted_3$B = ["disabled"];
24578
+ const _hoisted_4$s = ["href"];
24579
+ const _hoisted_5$i = ["onClick", "disabled"];
24580
+ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
24531
24581
  __name: "SearchBoxProductAddToCart",
24532
24582
  props: {
24533
24583
  item: {},
@@ -24565,45 +24615,45 @@ and ensure you are accounting for this risk.
24565
24615
  return Boolean(props.link && props.options.link);
24566
24616
  });
24567
24617
  return (_ctx, _cache) => {
24568
- return openBlock(), createElementBlock("div", _hoisted_1$16, [
24569
- createBaseVNode("div", _hoisted_2$M, [
24618
+ return openBlock(), createElementBlock("div", _hoisted_1$18, [
24619
+ createBaseVNode("div", _hoisted_2$O, [
24570
24620
  hasLink.value ? (openBlock(), createElementBlock("button", mergeProps({
24571
24621
  key: 0,
24572
24622
  class: loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart",
24573
24623
  "data-cy": "lupa-add-to-cart",
24574
24624
  disabled: !inStockValue.value || loading.value
24575
24625
  }, _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({
24626
+ createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$s)
24627
+ ], 16, _hoisted_3$B)) : (openBlock(), createElementBlock("button", mergeProps({
24578
24628
  key: 1,
24579
24629
  onClick: withModifiers(handleClick, ["stop", "prevent"]),
24580
24630
  class: loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart",
24581
24631
  "data-cy": "lupa-add-to-cart",
24582
24632
  type: "button",
24583
24633
  disabled: !inStockValue.value || loading.value
24584
- }, _ctx.dynamicAttributes), toDisplayString(label.value), 17, _hoisted_5$h))
24634
+ }, _ctx.dynamicAttributes), toDisplayString(label.value), 17, _hoisted_5$i))
24585
24635
  ])
24586
24636
  ]);
24587
24637
  };
24588
24638
  }
24589
24639
  });
24590
- const _hoisted_1$15 = {
24640
+ const _hoisted_1$17 = {
24591
24641
  key: 1,
24592
24642
  class: "lupa-search-box-element-badge-wrapper"
24593
24643
  };
24594
24644
  const __default__$4 = {
24595
24645
  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
24646
+ SearchBoxProductImage: _sfc_main$1o,
24647
+ SearchBoxProductTitle: _sfc_main$1n,
24648
+ SearchBoxProductDescription: _sfc_main$1m,
24649
+ SearchBoxProductPrice: _sfc_main$1l,
24650
+ SearchBoxProductRegularPrice: _sfc_main$1k,
24651
+ SearchBoxProductCustom: _sfc_main$1j,
24652
+ SearchBoxProductCustomHtml: _sfc_main$1i,
24653
+ SearchBoxProductAddToCart: _sfc_main$1h
24604
24654
  }
24605
24655
  };
24606
- const _sfc_main$1e = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
24656
+ const _sfc_main$1g = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
24607
24657
  __name: "SearchBoxProductElement",
24608
24658
  props: {
24609
24659
  item: {},
@@ -24675,7 +24725,7 @@ and ensure you are accounting for this risk.
24675
24725
  "dynamic-attributes": dynamicAttributes.value,
24676
24726
  link: _ctx.link
24677
24727
  }, renderDynamicAttributesOnParentElement.value && dynamicAttributes.value), null, 16, ["item", "options", "labels", "class", "inStock", "dynamic-attributes", "link"])) : createCommentVNode("", true)
24678
- ], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$15, [
24728
+ ], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$17, [
24679
24729
  displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), {
24680
24730
  key: 0,
24681
24731
  item: enhancedItem.value,
@@ -24690,14 +24740,14 @@ and ensure you are accounting for this risk.
24690
24740
  };
24691
24741
  }
24692
24742
  }));
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 = {
24743
+ const _hoisted_1$16 = { class: "lupa-badge-title" };
24744
+ const _hoisted_2$N = ["src"];
24745
+ const _hoisted_3$A = { key: 1 };
24746
+ const _hoisted_4$r = {
24697
24747
  key: 0,
24698
24748
  class: "lupa-badge-full-text"
24699
24749
  };
24700
- const _sfc_main$1d = /* @__PURE__ */ defineComponent({
24750
+ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
24701
24751
  __name: "SearchResultGeneratedBadge",
24702
24752
  props: {
24703
24753
  options: {},
@@ -24730,20 +24780,20 @@ and ensure you are accounting for this risk.
24730
24780
  class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
24731
24781
  style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
24732
24782
  }, [
24733
- createBaseVNode("span", _hoisted_1$14, [
24783
+ createBaseVNode("span", _hoisted_1$16, [
24734
24784
  image.value ? (openBlock(), createElementBlock("img", {
24735
24785
  key: 0,
24736
24786
  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)
24787
+ }, null, 8, _hoisted_2$N)) : createCommentVNode("", true),
24788
+ hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$A, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
24739
24789
  ]),
24740
- hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$q, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
24790
+ hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$r, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
24741
24791
  ], 6);
24742
24792
  };
24743
24793
  }
24744
24794
  });
24745
- const _hoisted_1$13 = { class: "lupa-generated-badges" };
24746
- const _sfc_main$1c = /* @__PURE__ */ defineComponent({
24795
+ const _hoisted_1$15 = { class: "lupa-generated-badges" };
24796
+ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
24747
24797
  __name: "SearchResultGeneratedBadges",
24748
24798
  props: {
24749
24799
  options: {}
@@ -24769,9 +24819,9 @@ and ensure you are accounting for this risk.
24769
24819
  })).filter((b) => Boolean(b.id));
24770
24820
  });
24771
24821
  return (_ctx, _cache) => {
24772
- return openBlock(), createElementBlock("div", _hoisted_1$13, [
24822
+ return openBlock(), createElementBlock("div", _hoisted_1$15, [
24773
24823
  (openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
24774
- return openBlock(), createBlock(_sfc_main$1d, {
24824
+ return openBlock(), createBlock(_sfc_main$1f, {
24775
24825
  key: badge.id,
24776
24826
  badge,
24777
24827
  options: _ctx.options
@@ -24781,8 +24831,8 @@ and ensure you are accounting for this risk.
24781
24831
  };
24782
24832
  }
24783
24833
  });
24784
- const _hoisted_1$12 = ["innerHTML"];
24785
- const _sfc_main$1b = /* @__PURE__ */ defineComponent({
24834
+ const _hoisted_1$14 = ["innerHTML"];
24835
+ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
24786
24836
  __name: "CustomBadge",
24787
24837
  props: {
24788
24838
  badge: {}
@@ -24803,12 +24853,12 @@ and ensure you are accounting for this risk.
24803
24853
  return openBlock(), createElementBlock("div", {
24804
24854
  class: normalizeClass(className.value),
24805
24855
  innerHTML: text.value
24806
- }, null, 10, _hoisted_1$12);
24856
+ }, null, 10, _hoisted_1$14);
24807
24857
  };
24808
24858
  }
24809
24859
  });
24810
- const _hoisted_1$11 = { class: "lupa-text-badges" };
24811
- const _sfc_main$1a = /* @__PURE__ */ defineComponent({
24860
+ const _hoisted_1$13 = { class: "lupa-text-badges" };
24861
+ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
24812
24862
  __name: "TextBadge",
24813
24863
  props: {
24814
24864
  badge: {}
@@ -24822,7 +24872,7 @@ and ensure you are accounting for this risk.
24822
24872
  return badges.value.slice(0, props.badge.maxItems);
24823
24873
  });
24824
24874
  return (_ctx, _cache) => {
24825
- return openBlock(), createElementBlock("div", _hoisted_1$11, [
24875
+ return openBlock(), createElementBlock("div", _hoisted_1$13, [
24826
24876
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
24827
24877
  return openBlock(), createElementBlock("div", {
24828
24878
  class: "lupa-badge lupa-text-badge",
@@ -24833,9 +24883,9 @@ and ensure you are accounting for this risk.
24833
24883
  };
24834
24884
  }
24835
24885
  });
24836
- const _hoisted_1$10 = { class: "lupa-image-badges" };
24837
- const _hoisted_2$K = ["src"];
24838
- const _sfc_main$19 = /* @__PURE__ */ defineComponent({
24886
+ const _hoisted_1$12 = { class: "lupa-image-badges" };
24887
+ const _hoisted_2$M = ["src"];
24888
+ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
24839
24889
  __name: "ImageBadge",
24840
24890
  props: {
24841
24891
  badge: {}
@@ -24855,7 +24905,7 @@ and ensure you are accounting for this risk.
24855
24905
  return `${props.badge.rootImageUrl}${src}`;
24856
24906
  };
24857
24907
  return (_ctx, _cache) => {
24858
- return openBlock(), createElementBlock("div", _hoisted_1$10, [
24908
+ return openBlock(), createElementBlock("div", _hoisted_1$12, [
24859
24909
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
24860
24910
  return openBlock(), createElementBlock("div", {
24861
24911
  class: "lupa-badge lupa-image-badge",
@@ -24863,14 +24913,14 @@ and ensure you are accounting for this risk.
24863
24913
  }, [
24864
24914
  createBaseVNode("img", {
24865
24915
  src: getImageUrl(item)
24866
- }, null, 8, _hoisted_2$K)
24916
+ }, null, 8, _hoisted_2$M)
24867
24917
  ]);
24868
24918
  }), 128))
24869
24919
  ]);
24870
24920
  };
24871
24921
  }
24872
24922
  });
24873
- const _sfc_main$18 = /* @__PURE__ */ defineComponent({
24923
+ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
24874
24924
  __name: "DiscountBadge",
24875
24925
  props: {
24876
24926
  badge: {}
@@ -24929,16 +24979,16 @@ and ensure you are accounting for this risk.
24929
24979
  };
24930
24980
  }
24931
24981
  });
24932
- const _hoisted_1$$ = { id: "lupa-search-results-badges" };
24982
+ const _hoisted_1$11 = { id: "lupa-search-results-badges" };
24933
24983
  const __default__$3 = {
24934
24984
  components: {
24935
- CustomBadge: _sfc_main$1b,
24936
- TextBadge: _sfc_main$1a,
24937
- ImageBadge: _sfc_main$19,
24938
- DiscountBadge: _sfc_main$18
24985
+ CustomBadge: _sfc_main$1d,
24986
+ TextBadge: _sfc_main$1c,
24987
+ ImageBadge: _sfc_main$1b,
24988
+ DiscountBadge: _sfc_main$1a
24939
24989
  }
24940
24990
  };
24941
- const _sfc_main$17 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
24991
+ const _sfc_main$19 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
24942
24992
  __name: "SearchResultsBadgeWrapper",
24943
24993
  props: {
24944
24994
  position: {},
@@ -25001,7 +25051,7 @@ and ensure you are accounting for this risk.
25001
25051
  }
25002
25052
  };
25003
25053
  return (_ctx, _cache) => {
25004
- return openBlock(), createElementBlock("div", _hoisted_1$$, [
25054
+ return openBlock(), createElementBlock("div", _hoisted_1$11, [
25005
25055
  createBaseVNode("div", {
25006
25056
  id: "lupa-badges",
25007
25057
  class: normalizeClass(anchorPosition.value)
@@ -25012,7 +25062,7 @@ and ensure you are accounting for this risk.
25012
25062
  badge
25013
25063
  }, null, 8, ["badge"]);
25014
25064
  }), 128)),
25015
- positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$1c, {
25065
+ positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$1e, {
25016
25066
  key: 0,
25017
25067
  options: _ctx.options
25018
25068
  }, null, 8, ["options"])) : createCommentVNode("", true)
@@ -25021,13 +25071,13 @@ and ensure you are accounting for this risk.
25021
25071
  };
25022
25072
  }
25023
25073
  }));
25024
- const _hoisted_1$_ = ["href"];
25025
- const _hoisted_2$J = { class: "lupa-search-box-product-details-section" };
25026
- const _hoisted_3$x = {
25074
+ const _hoisted_1$10 = ["href"];
25075
+ const _hoisted_2$L = { class: "lupa-search-box-product-details-section" };
25076
+ const _hoisted_3$z = {
25027
25077
  key: 0,
25028
25078
  class: "lupa-search-box-product-add-to-cart-section"
25029
25079
  };
25030
- const _sfc_main$16 = /* @__PURE__ */ defineComponent({
25080
+ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
25031
25081
  __name: "SearchBoxProduct",
25032
25082
  props: {
25033
25083
  item: {},
@@ -25113,7 +25163,7 @@ and ensure you are accounting for this risk.
25113
25163
  style: normalizeStyle(imageStyleOverride.value)
25114
25164
  }, [
25115
25165
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
25116
- return openBlock(), createBlock(_sfc_main$1e, {
25166
+ return openBlock(), createBlock(_sfc_main$1g, {
25117
25167
  class: "lupa-search-box-product-element",
25118
25168
  item: _ctx.item,
25119
25169
  element,
@@ -25123,10 +25173,10 @@ and ensure you are accounting for this risk.
25123
25173
  }, null, 8, ["item", "element", "labels", "link"]);
25124
25174
  }), 128))
25125
25175
  ], 4),
25126
- createBaseVNode("div", _hoisted_2$J, [
25176
+ createBaseVNode("div", _hoisted_2$L, [
25127
25177
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
25128
25178
  var _a;
25129
- return openBlock(), createBlock(_sfc_main$1e, {
25179
+ return openBlock(), createBlock(_sfc_main$1g, {
25130
25180
  key: element.key,
25131
25181
  class: "lupa-search-box-product-element",
25132
25182
  item: _ctx.item,
@@ -25137,7 +25187,7 @@ and ensure you are accounting for this risk.
25137
25187
  badgeOptions.value && ((_a = badgeOptions.value) == null ? void 0 : _a.anchorElementKey) === element.key ? {
25138
25188
  name: "badges",
25139
25189
  fn: withCtx(() => [
25140
- createVNode(_sfc_main$17, {
25190
+ createVNode(_sfc_main$19, {
25141
25191
  options: badgeOptions.value,
25142
25192
  position: "card"
25143
25193
  }, null, 8, ["options"])
@@ -25147,8 +25197,8 @@ and ensure you are accounting for this risk.
25147
25197
  ]), 1032, ["item", "element", "labels", "link"]);
25148
25198
  }), 128))
25149
25199
  ]),
25150
- addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$x, [
25151
- createVNode(_sfc_main$1e, {
25200
+ addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$z, [
25201
+ createVNode(_sfc_main$1g, {
25152
25202
  class: "lupa-search-box-product-element",
25153
25203
  item: _ctx.item,
25154
25204
  element: addToCartElement.value,
@@ -25157,7 +25207,7 @@ and ensure you are accounting for this risk.
25157
25207
  isInStock: isInStock.value
25158
25208
  }, null, 8, ["item", "element", "labels", "link", "isInStock"])
25159
25209
  ])) : createCommentVNode("", true)
25160
- ], 16, _hoisted_1$_);
25210
+ ], 16, _hoisted_1$10);
25161
25211
  };
25162
25212
  }
25163
25213
  });
@@ -25229,8 +25279,8 @@ and ensure you are accounting for this risk.
25229
25279
  };
25230
25280
  return { trackSearch, trackResults, trackEvent, trackDelayedEvent };
25231
25281
  });
25232
- const _hoisted_1$Z = { id: "lupa-search-box-products" };
25233
- const _sfc_main$15 = /* @__PURE__ */ defineComponent({
25282
+ const _hoisted_1$$ = { id: "lupa-search-box-products" };
25283
+ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
25234
25284
  __name: "SearchBoxProducts",
25235
25285
  props: {
25236
25286
  items: {},
@@ -25301,7 +25351,7 @@ and ensure you are accounting for this risk.
25301
25351
  }
25302
25352
  };
25303
25353
  return (_ctx, _cache) => {
25304
- return openBlock(), createElementBlock("div", _hoisted_1$Z, [
25354
+ return openBlock(), createElementBlock("div", _hoisted_1$$, [
25305
25355
  _ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
25306
25356
  return renderSlot(_ctx.$slots, "productCard", {
25307
25357
  key: index,
@@ -25313,7 +25363,7 @@ and ensure you are accounting for this risk.
25313
25363
  itemClicked: handleProductClick
25314
25364
  });
25315
25365
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
25316
- return openBlock(), createBlock(_sfc_main$16, {
25366
+ return openBlock(), createBlock(_sfc_main$18, {
25317
25367
  key: index,
25318
25368
  item,
25319
25369
  panelOptions: _ctx.panelOptions,
@@ -25328,9 +25378,9 @@ and ensure you are accounting for this risk.
25328
25378
  };
25329
25379
  }
25330
25380
  });
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({
25381
+ const _hoisted_1$_ = { class: "lupa-search-box-documents-go-to-results-wrapper" };
25382
+ const _hoisted_2$K = { key: 0 };
25383
+ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
25334
25384
  __name: "SearchBoxProductsGoToResultsButton",
25335
25385
  props: {
25336
25386
  options: {},
@@ -25360,13 +25410,13 @@ and ensure you are accounting for this risk.
25360
25410
  emit2("goToResults");
25361
25411
  };
25362
25412
  return (_ctx, _cache) => {
25363
- return openBlock(), createElementBlock("div", _hoisted_1$Y, [
25413
+ return openBlock(), createElementBlock("div", _hoisted_1$_, [
25364
25414
  createBaseVNode("button", {
25365
25415
  class: "lupa-search-box-documents-go-to-results-button",
25366
25416
  onClick: goToResults
25367
25417
  }, [
25368
25418
  createTextVNode(toDisplayString(goToResultsLabel.value) + " ", 1),
25369
- totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$I, " " + toDisplayString(totalCount.value), 1)) : createCommentVNode("", true)
25419
+ totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$K, " " + toDisplayString(totalCount.value), 1)) : createCommentVNode("", true)
25370
25420
  ])
25371
25421
  ]);
25372
25422
  };
@@ -25453,7 +25503,7 @@ and ensure you are accounting for this risk.
25453
25503
  }
25454
25504
  return parsedObject;
25455
25505
  };
25456
- const _sfc_main$13 = /* @__PURE__ */ defineComponent({
25506
+ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
25457
25507
  __name: "SearchBoxProductsWrapper",
25458
25508
  props: {
25459
25509
  panel: {},
@@ -25522,7 +25572,7 @@ and ensure you are accounting for this risk.
25522
25572
  watch(() => props.panel.limit, getItemsDebounced);
25523
25573
  return (_ctx, _cache) => {
25524
25574
  var _a, _b;
25525
- return openBlock(), createBlock(_sfc_main$15, {
25575
+ return openBlock(), createBlock(_sfc_main$17, {
25526
25576
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
25527
25577
  panelOptions: _ctx.panel,
25528
25578
  labels: _ctx.labels,
@@ -25532,7 +25582,7 @@ and ensure you are accounting for this risk.
25532
25582
  default: withCtx(() => {
25533
25583
  var _a2;
25534
25584
  return [
25535
- showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main$14, {
25585
+ showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main$16, {
25536
25586
  key: 0,
25537
25587
  options: _ctx.searchBoxOptions,
25538
25588
  panel: _ctx.panel,
@@ -25553,7 +25603,7 @@ and ensure you are accounting for this risk.
25553
25603
  };
25554
25604
  }
25555
25605
  });
25556
- const _sfc_main$12 = /* @__PURE__ */ defineComponent({
25606
+ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
25557
25607
  __name: "SearchBoxRelatedSourceWrapper",
25558
25608
  props: {
25559
25609
  panel: {},
@@ -25625,7 +25675,7 @@ and ensure you are accounting for this risk.
25625
25675
  });
25626
25676
  return (_ctx, _cache) => {
25627
25677
  var _a, _b;
25628
- return openBlock(), createBlock(_sfc_main$15, {
25678
+ return openBlock(), createBlock(_sfc_main$17, {
25629
25679
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
25630
25680
  panelOptions: documentPanelOptions.value,
25631
25681
  labels: _ctx.labels,
@@ -25643,31 +25693,31 @@ and ensure you are accounting for this risk.
25643
25693
  };
25644
25694
  }
25645
25695
  });
25646
- const _hoisted_1$X = {
25696
+ const _hoisted_1$Z = {
25647
25697
  key: 0,
25648
25698
  id: "lupa-search-box-panel"
25649
25699
  };
25650
- const _hoisted_2$H = ["data-cy"];
25651
- const _hoisted_3$w = {
25700
+ const _hoisted_2$J = ["data-cy"];
25701
+ const _hoisted_3$y = {
25652
25702
  key: 0,
25653
25703
  class: "lupa-panel-title lupa-panel-title-top-results"
25654
25704
  };
25655
- const _hoisted_4$p = {
25705
+ const _hoisted_4$q = {
25656
25706
  key: 1,
25657
25707
  class: "lupa-panel-title"
25658
25708
  };
25659
- const _hoisted_5$g = {
25709
+ const _hoisted_5$h = {
25660
25710
  key: 1,
25661
25711
  id: "lupa-search-box-panel"
25662
25712
  };
25663
25713
  const __default__$2 = {
25664
25714
  components: {
25665
- SearchBoxSuggestionsWrapper: _sfc_main$1o,
25666
- SearchBoxProductsWrapper: _sfc_main$13,
25667
- SearchBoxRelatedSourceWrapper: _sfc_main$12
25715
+ SearchBoxSuggestionsWrapper: _sfc_main$1q,
25716
+ SearchBoxProductsWrapper: _sfc_main$15,
25717
+ SearchBoxRelatedSourceWrapper: _sfc_main$14
25668
25718
  }
25669
25719
  };
25670
- const _sfc_main$11 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
25720
+ const _sfc_main$13 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
25671
25721
  __name: "SearchBoxMainPanel",
25672
25722
  props: {
25673
25723
  options: {},
@@ -25822,7 +25872,7 @@ and ensure you are accounting for this risk.
25822
25872
  ref_key: "panelContainer",
25823
25873
  ref: panelContainer
25824
25874
  }, [
25825
- displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$X, [
25875
+ displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$Z, [
25826
25876
  labels.value.closePanel ? (openBlock(), createElementBlock("a", {
25827
25877
  key: 0,
25828
25878
  class: "lupa-search-box-close-panel",
@@ -25844,8 +25894,8 @@ and ensure you are accounting for this risk.
25844
25894
  style: normalizeStyle(panel.gridArea ? { gridArea: `${panel.gridArea}${index}` } : {}),
25845
25895
  "data-cy": "lupa-panel-" + panel.type + "-index"
25846
25896
  }, [
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),
25897
+ ((_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),
25898
+ ((_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
25899
  panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
25850
25900
  key: 2,
25851
25901
  panel,
@@ -25867,21 +25917,21 @@ and ensure you are accounting for this risk.
25867
25917
  key: "0"
25868
25918
  } : void 0
25869
25919
  ]), 1064, ["panel", "search-box-options", "options", "debounce", "inputValue", "labels"])) : createCommentVNode("", true)
25870
- ], 14, _hoisted_2$H);
25920
+ ], 14, _hoisted_2$J);
25871
25921
  }), 128))
25872
25922
  ], 4),
25873
- !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1r, {
25923
+ !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1t, {
25874
25924
  key: 1,
25875
25925
  labels: labels.value
25876
25926
  }, null, 8, ["labels"])) : createCommentVNode("", true),
25877
- unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1u, {
25927
+ unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1w, {
25878
25928
  key: 2,
25879
25929
  labels: labels.value,
25880
25930
  options: _ctx.options,
25881
25931
  onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
25882
25932
  }, null, 8, ["labels", "options"])) : createCommentVNode("", true)
25883
- ])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$g, [
25884
- createVNode(_sfc_main$1s, {
25933
+ ])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$h, [
25934
+ createVNode(_sfc_main$1u, {
25885
25935
  options: _ctx.options.history,
25886
25936
  history: history.value,
25887
25937
  onGoToResults: handleGoToResults,
@@ -25906,8 +25956,8 @@ and ensure you are accounting for this risk.
25906
25956
  const elements = getElements(triggers);
25907
25957
  elements.forEach((e2) => e2 == null ? void 0 : e2.removeEventListener(BIND_EVENT, event));
25908
25958
  };
25909
- const _hoisted_1$W = { class: "lupa-search-box-wrapper" };
25910
- const _sfc_main$10 = /* @__PURE__ */ defineComponent({
25959
+ const _hoisted_1$Y = { class: "lupa-search-box-wrapper" };
25960
+ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
25911
25961
  __name: "SearchBox",
25912
25962
  props: {
25913
25963
  options: {},
@@ -26228,8 +26278,8 @@ and ensure you are accounting for this risk.
26228
26278
  id: "lupa-search-box",
26229
26279
  class: normalizeClass({ "lupa-search-box-opened": opened.value })
26230
26280
  }, [
26231
- createBaseVNode("div", _hoisted_1$W, [
26232
- createVNode(_sfc_main$1v, {
26281
+ createBaseVNode("div", _hoisted_1$Y, [
26282
+ createVNode(_sfc_main$1x, {
26233
26283
  options: inputOptions.value,
26234
26284
  suggestedValue: suggestedValue.value,
26235
26285
  "can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
@@ -26242,7 +26292,7 @@ and ensure you are accounting for this risk.
26242
26292
  onSearch: handleSearch,
26243
26293
  onClose: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
26244
26294
  }, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
26245
- opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$11, {
26295
+ opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$13, {
26246
26296
  key: 0,
26247
26297
  options: panelOptions.value,
26248
26298
  inputValue: inputValue.value,
@@ -26331,20 +26381,20 @@ and ensure you are accounting for this risk.
26331
26381
  }
26332
26382
  return searchParams;
26333
26383
  };
26334
- const _hoisted_1$V = {
26384
+ const _hoisted_1$X = {
26335
26385
  key: 0,
26336
26386
  id: "lupa-search-results-did-you-mean"
26337
26387
  };
26338
- const _hoisted_2$G = {
26388
+ const _hoisted_2$I = {
26339
26389
  key: 0,
26340
26390
  "data-cy": "suggested-search-text-label"
26341
26391
  };
26342
- const _hoisted_3$v = {
26392
+ const _hoisted_3$x = {
26343
26393
  key: 1,
26344
26394
  "data-cy": "did-you-mean-label"
26345
26395
  };
26346
- const _hoisted_4$o = { key: 1 };
26347
- const _sfc_main$$ = /* @__PURE__ */ defineComponent({
26396
+ const _hoisted_4$p = { key: 1 };
26397
+ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
26348
26398
  __name: "SearchResultsDidYouMean",
26349
26399
  props: {
26350
26400
  labels: {}
@@ -26376,8 +26426,8 @@ and ensure you are accounting for this risk.
26376
26426
  paramStore.goToResults({ searchText, facet });
26377
26427
  };
26378
26428
  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, [
26429
+ return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$X, [
26430
+ unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$I, [
26381
26431
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
26382
26432
  return openBlock(), createElementBlock("span", { key: index }, [
26383
26433
  createBaseVNode("span", {
@@ -26386,7 +26436,7 @@ and ensure you are accounting for this risk.
26386
26436
  ]);
26387
26437
  }), 128))
26388
26438
  ])) : createCommentVNode("", true),
26389
- didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$v, [
26439
+ didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$x, [
26390
26440
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.didYouMean.split(" "), (label, index) => {
26391
26441
  return openBlock(), createElementBlock("span", { key: index }, [
26392
26442
  label.includes("{1}") ? (openBlock(), createElementBlock("span", {
@@ -26394,7 +26444,7 @@ and ensure you are accounting for this risk.
26394
26444
  class: "lupa-did-you-mean lupa-highlighted-search-text",
26395
26445
  "data-cy": "did-you-mean-value",
26396
26446
  onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
26397
- }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$o, toDisplayString(label) + " ", 1))
26447
+ }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$p, toDisplayString(label) + " ", 1))
26398
26448
  ]);
26399
26449
  }), 128))
26400
26450
  ])) : createCommentVNode("", true)
@@ -26402,12 +26452,12 @@ and ensure you are accounting for this risk.
26402
26452
  };
26403
26453
  }
26404
26454
  });
26405
- const _hoisted_1$U = {
26455
+ const _hoisted_1$W = {
26406
26456
  key: 0,
26407
26457
  class: "lupa-search-results-summary"
26408
26458
  };
26409
- const _hoisted_2$F = ["innerHTML"];
26410
- const _sfc_main$_ = /* @__PURE__ */ defineComponent({
26459
+ const _hoisted_2$H = ["innerHTML"];
26460
+ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
26411
26461
  __name: "SearchResultsSummary",
26412
26462
  props: {
26413
26463
  label: {},
@@ -26422,8 +26472,8 @@ and ensure you are accounting for this risk.
26422
26472
  return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
26423
26473
  });
26424
26474
  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),
26475
+ return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$W, [
26476
+ createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$H),
26427
26477
  _ctx.clearable ? (openBlock(), createElementBlock("span", {
26428
26478
  key: 0,
26429
26479
  class: "lupa-filter-clear",
@@ -26434,19 +26484,19 @@ and ensure you are accounting for this risk.
26434
26484
  };
26435
26485
  }
26436
26486
  });
26437
- const _hoisted_1$T = {
26487
+ const _hoisted_1$V = {
26438
26488
  key: 0,
26439
26489
  class: "lupa-result-page-title",
26440
26490
  "data-cy": "lupa-result-page-title"
26441
26491
  };
26442
- const _hoisted_2$E = { key: 0 };
26443
- const _hoisted_3$u = {
26492
+ const _hoisted_2$G = { key: 0 };
26493
+ const _hoisted_3$w = {
26444
26494
  key: 1,
26445
26495
  class: "lupa-results-total-count"
26446
26496
  };
26447
- const _hoisted_4$n = { class: "lupa-results-total-count-number" };
26448
- const _hoisted_5$f = ["innerHTML"];
26449
- const _sfc_main$Z = /* @__PURE__ */ defineComponent({
26497
+ const _hoisted_4$o = { class: "lupa-results-total-count-number" };
26498
+ const _hoisted_5$g = ["innerHTML"];
26499
+ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
26450
26500
  __name: "SearchResultsTitle",
26451
26501
  props: {
26452
26502
  options: {},
@@ -26489,16 +26539,16 @@ and ensure you are accounting for this risk.
26489
26539
  });
26490
26540
  return (_ctx, _cache) => {
26491
26541
  return openBlock(), createElementBlock("div", null, [
26492
- showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$T, [
26542
+ showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$V, [
26493
26543
  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, [
26544
+ queryText.value && !searchResultsTitleTemplate.value ? (openBlock(), createElementBlock("span", _hoisted_2$G, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
26545
+ showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$w, [
26496
26546
  createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
26497
- createBaseVNode("span", _hoisted_4$n, toDisplayString(unref(totalItems)), 1),
26547
+ createBaseVNode("span", _hoisted_4$o, toDisplayString(unref(totalItems)), 1),
26498
26548
  createTextVNode(")")
26499
26549
  ])) : createCommentVNode("", true)
26500
26550
  ])) : createCommentVNode("", true),
26501
- _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$_, {
26551
+ _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$10, {
26502
26552
  key: 1,
26503
26553
  label: summaryLabel.value
26504
26554
  }, null, 8, ["label"])) : createCommentVNode("", true),
@@ -26506,20 +26556,20 @@ and ensure you are accounting for this risk.
26506
26556
  key: 2,
26507
26557
  class: "lupa-result-page-description-top",
26508
26558
  innerHTML: descriptionTop.value
26509
- }, null, 8, _hoisted_5$f)) : createCommentVNode("", true)
26559
+ }, null, 8, _hoisted_5$g)) : createCommentVNode("", true)
26510
26560
  ]);
26511
26561
  };
26512
26562
  }
26513
26563
  });
26514
- const _hoisted_1$S = {
26564
+ const _hoisted_1$U = {
26515
26565
  class: "lupa-current-filter-label",
26516
26566
  "data-cy": "lupa-current-filter-label"
26517
26567
  };
26518
- const _hoisted_2$D = {
26568
+ const _hoisted_2$F = {
26519
26569
  class: "lupa-current-filter-value",
26520
26570
  "data-cy": "lupa-current-filter-value"
26521
26571
  };
26522
- const _sfc_main$Y = /* @__PURE__ */ defineComponent({
26572
+ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
26523
26573
  __name: "CurrentFilterDisplay",
26524
26574
  props: {
26525
26575
  filter: {}
@@ -26541,23 +26591,23 @@ and ensure you are accounting for this risk.
26541
26591
  class: "lupa-current-filter-action",
26542
26592
  onClick: handleClick
26543
26593
  }, "⨉"),
26544
- createBaseVNode("div", _hoisted_1$S, toDisplayString(_ctx.filter.label) + ": ", 1),
26545
- createBaseVNode("div", _hoisted_2$D, toDisplayString(_ctx.filter.value), 1)
26594
+ createBaseVNode("div", _hoisted_1$U, toDisplayString(_ctx.filter.label) + ": ", 1),
26595
+ createBaseVNode("div", _hoisted_2$F, toDisplayString(_ctx.filter.value), 1)
26546
26596
  ], 2);
26547
26597
  };
26548
26598
  }
26549
26599
  });
26550
- const _hoisted_1$R = { class: "lupa-filter-title-text" };
26551
- const _hoisted_2$C = {
26600
+ const _hoisted_1$T = { class: "lupa-filter-title-text" };
26601
+ const _hoisted_2$E = {
26552
26602
  key: 0,
26553
26603
  class: "lupa-filter-count"
26554
26604
  };
26555
- const _hoisted_3$t = {
26605
+ const _hoisted_3$v = {
26556
26606
  key: 0,
26557
26607
  class: "filter-values"
26558
26608
  };
26559
- const _hoisted_4$m = { class: "lupa-current-filter-list" };
26560
- const _sfc_main$X = /* @__PURE__ */ defineComponent({
26609
+ const _hoisted_4$n = { class: "lupa-current-filter-list" };
26610
+ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
26561
26611
  __name: "CurrentFilters",
26562
26612
  props: {
26563
26613
  options: {},
@@ -26630,19 +26680,19 @@ and ensure you are accounting for this risk.
26630
26680
  class: "lupa-current-filter-title",
26631
26681
  onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
26632
26682
  }, [
26633
- createBaseVNode("div", _hoisted_1$R, [
26683
+ createBaseVNode("div", _hoisted_1$T, [
26634
26684
  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)
26685
+ _ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$E, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
26636
26686
  ]),
26637
26687
  _ctx.expandable ? (openBlock(), createElementBlock("div", {
26638
26688
  key: 0,
26639
26689
  class: normalizeClass(["lupa-filter-title-caret", isOpen.value && "open"])
26640
26690
  }, null, 2)) : createCommentVNode("", true)
26641
26691
  ]),
26642
- !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$t, [
26643
- createBaseVNode("div", _hoisted_4$m, [
26692
+ !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$v, [
26693
+ createBaseVNode("div", _hoisted_4$n, [
26644
26694
  (openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter2) => {
26645
- return openBlock(), createBlock(_sfc_main$Y, {
26695
+ return openBlock(), createBlock(_sfc_main$_, {
26646
26696
  key: filter2.key + "_" + filter2.value,
26647
26697
  filter: filter2,
26648
26698
  onRemove: handleRemove
@@ -26659,8 +26709,8 @@ and ensure you are accounting for this risk.
26659
26709
  };
26660
26710
  }
26661
26711
  });
26662
- const _hoisted_1$Q = ["href"];
26663
- const _sfc_main$W = /* @__PURE__ */ defineComponent({
26712
+ const _hoisted_1$S = ["href"];
26713
+ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
26664
26714
  __name: "CategoryFilterItem",
26665
26715
  props: {
26666
26716
  options: {},
@@ -26697,20 +26747,20 @@ and ensure you are accounting for this risk.
26697
26747
  "data-cy": "lupa-child-category-item",
26698
26748
  href: urlLink.value,
26699
26749
  onClick: handleNavigation
26700
- }, toDisplayString(title.value), 9, _hoisted_1$Q)
26750
+ }, toDisplayString(title.value), 9, _hoisted_1$S)
26701
26751
  ], 2);
26702
26752
  };
26703
26753
  }
26704
26754
  });
26705
- const _hoisted_1$P = {
26755
+ const _hoisted_1$R = {
26706
26756
  class: "lupa-category-filter",
26707
26757
  "data-cy": "lupa-category-filter"
26708
26758
  };
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({
26759
+ const _hoisted_2$D = { class: "lupa-category-back" };
26760
+ const _hoisted_3$u = ["href"];
26761
+ const _hoisted_4$m = ["href"];
26762
+ const _hoisted_5$f = { class: "lupa-child-category-list" };
26763
+ const _sfc_main$X = /* @__PURE__ */ defineComponent({
26714
26764
  __name: "CategoryFilter",
26715
26765
  props: {
26716
26766
  options: {}
@@ -26798,14 +26848,14 @@ and ensure you are accounting for this risk.
26798
26848
  };
26799
26849
  __expose({ fetch: fetch2 });
26800
26850
  return (_ctx, _cache) => {
26801
- return openBlock(), createElementBlock("div", _hoisted_1$P, [
26802
- createBaseVNode("div", _hoisted_2$B, [
26851
+ return openBlock(), createElementBlock("div", _hoisted_1$R, [
26852
+ createBaseVNode("div", _hoisted_2$D, [
26803
26853
  hasBackButton.value ? (openBlock(), createElementBlock("a", {
26804
26854
  key: 0,
26805
26855
  "data-cy": "lupa-category-back",
26806
26856
  href: backUrlLink.value,
26807
26857
  onClick: handleNavigationBack
26808
- }, toDisplayString(backTitle.value), 9, _hoisted_3$s)) : createCommentVNode("", true)
26858
+ }, toDisplayString(backTitle.value), 9, _hoisted_3$u)) : createCommentVNode("", true)
26809
26859
  ]),
26810
26860
  createBaseVNode("div", {
26811
26861
  class: normalizeClass(["lupa-current-category", { "lupa-current-category-active": isActive }])
@@ -26815,11 +26865,11 @@ and ensure you are accounting for this risk.
26815
26865
  href: parentUrlLink.value,
26816
26866
  class: normalizeClass({ "lupa-title-category": !hasBackButton.value }),
26817
26867
  onClick: handleNavigationParent
26818
- }, toDisplayString(parentTitle.value), 11, _hoisted_4$l)
26868
+ }, toDisplayString(parentTitle.value), 11, _hoisted_4$m)
26819
26869
  ], 2),
26820
- createBaseVNode("div", _hoisted_5$e, [
26870
+ createBaseVNode("div", _hoisted_5$f, [
26821
26871
  (openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
26822
- return openBlock(), createBlock(_sfc_main$W, {
26872
+ return openBlock(), createBlock(_sfc_main$Y, {
26823
26873
  key: getCategoryKey(child),
26824
26874
  item: child,
26825
26875
  options: _ctx.options
@@ -26830,14 +26880,14 @@ and ensure you are accounting for this risk.
26830
26880
  };
26831
26881
  }
26832
26882
  });
26833
- const _hoisted_1$O = {
26883
+ const _hoisted_1$Q = {
26834
26884
  class: "lupa-search-result-facet-term-values",
26835
26885
  "data-cy": "lupa-search-result-facet-term-values"
26836
26886
  };
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" };
26887
+ const _hoisted_2$C = ["placeholder"];
26888
+ const _hoisted_3$t = { class: "lupa-terms-list" };
26889
+ const _hoisted_4$l = ["onClick"];
26890
+ const _hoisted_5$e = { class: "lupa-term-checkbox-wrapper" };
26841
26891
  const _hoisted_6$8 = { class: "lupa-term-label" };
26842
26892
  const _hoisted_7$6 = {
26843
26893
  key: 0,
@@ -26845,7 +26895,7 @@ and ensure you are accounting for this risk.
26845
26895
  };
26846
26896
  const _hoisted_8$2 = { key: 0 };
26847
26897
  const _hoisted_9$2 = { key: 1 };
26848
- const _sfc_main$U = /* @__PURE__ */ defineComponent({
26898
+ const _sfc_main$W = /* @__PURE__ */ defineComponent({
26849
26899
  __name: "TermFacet",
26850
26900
  props: {
26851
26901
  options: {},
@@ -26934,17 +26984,17 @@ and ensure you are accounting for this risk.
26934
26984
  }
26935
26985
  };
26936
26986
  return (_ctx, _cache) => {
26937
- return openBlock(), createElementBlock("div", _hoisted_1$O, [
26987
+ return openBlock(), createElementBlock("div", _hoisted_1$Q, [
26938
26988
  isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
26939
26989
  key: 0,
26940
26990
  class: "lupa-term-filter",
26941
26991
  "data-cy": "lupa-term-filter",
26942
26992
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
26943
26993
  placeholder: _ctx.options.labels.facetFilter
26944
- }, null, 8, _hoisted_2$A)), [
26994
+ }, null, 8, _hoisted_2$C)), [
26945
26995
  [vModelText, termFilter.value]
26946
26996
  ]) : createCommentVNode("", true),
26947
- createBaseVNode("div", _hoisted_3$r, [
26997
+ createBaseVNode("div", _hoisted_3$t, [
26948
26998
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
26949
26999
  return openBlock(), createElementBlock("div", {
26950
27000
  class: normalizeClass(["lupa-facet-term", { checked: isChecked(item) }]),
@@ -26952,7 +27002,7 @@ and ensure you are accounting for this risk.
26952
27002
  key: item.title,
26953
27003
  onClick: ($event) => handleFacetClick(item)
26954
27004
  }, [
26955
- createBaseVNode("div", _hoisted_5$d, [
27005
+ createBaseVNode("div", _hoisted_5$e, [
26956
27006
  createBaseVNode("span", {
26957
27007
  class: normalizeClass(["lupa-term-checkbox", { checked: isChecked(item) }])
26958
27008
  }, null, 2)
@@ -26963,7 +27013,7 @@ and ensure you are accounting for this risk.
26963
27013
  createBaseVNode("span", _hoisted_6$8, toDisplayString(getItemLabel(item)), 1),
26964
27014
  _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_7$6, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
26965
27015
  ], 2)
26966
- ], 10, _hoisted_4$k);
27016
+ ], 10, _hoisted_4$l);
26967
27017
  }), 128))
26968
27018
  ]),
26969
27019
  displayShowMore.value ? (openBlock(), createElementBlock("div", {
@@ -27954,20 +28004,20 @@ and ensure you are accounting for this risk.
27954
28004
  m.render = function(e2, t, r, i, n, o) {
27955
28005
  return openBlock(), createElementBlock("div", mergeProps(e2.sliderProps, { ref: "slider" }), null, 16);
27956
28006
  }, m.__file = "src/Slider.vue";
27957
- const _hoisted_1$N = { class: "lupa-search-result-facet-stats-values" };
27958
- const _hoisted_2$z = {
28007
+ const _hoisted_1$P = { class: "lupa-search-result-facet-stats-values" };
28008
+ const _hoisted_2$B = {
27959
28009
  key: 0,
27960
28010
  class: "lupa-stats-facet-summary"
27961
28011
  };
27962
- const _hoisted_3$q = {
28012
+ const _hoisted_3$s = {
27963
28013
  key: 1,
27964
28014
  class: "lupa-stats-facet-summary-input"
27965
28015
  };
27966
- const _hoisted_4$j = {
28016
+ const _hoisted_4$k = {
27967
28017
  key: 0,
27968
28018
  class: "lupa-stats-range-label"
27969
28019
  };
27970
- const _hoisted_5$c = { class: "lupa-stats-from" };
28020
+ const _hoisted_5$d = { class: "lupa-stats-from" };
27971
28021
  const _hoisted_6$7 = ["max", "min", "pattern", "aria-label"];
27972
28022
  const _hoisted_7$5 = { key: 0 };
27973
28023
  const _hoisted_8$1 = /* @__PURE__ */ createBaseVNode("div", { class: "lupa-stats-separator" }, null, -1);
@@ -27982,7 +28032,7 @@ and ensure you are accounting for this risk.
27982
28032
  key: 2,
27983
28033
  class: "lupa-stats-slider-wrapper"
27984
28034
  };
27985
- const _sfc_main$T = /* @__PURE__ */ defineComponent({
28035
+ const _sfc_main$V = /* @__PURE__ */ defineComponent({
27986
28036
  __name: "StatsFacet",
27987
28037
  props: {
27988
28038
  options: {},
@@ -28163,11 +28213,11 @@ and ensure you are accounting for this risk.
28163
28213
  innerSliderRange.value = value;
28164
28214
  };
28165
28215
  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, [
28216
+ return openBlock(), createElementBlock("div", _hoisted_1$P, [
28217
+ !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$B, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$s, [
28168
28218
  createBaseVNode("div", null, [
28169
- rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$j, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
28170
- createBaseVNode("div", _hoisted_5$c, [
28219
+ rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$k, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
28220
+ createBaseVNode("div", _hoisted_5$d, [
28171
28221
  withDirectives(createBaseVNode("input", {
28172
28222
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
28173
28223
  type: "text",
@@ -28230,17 +28280,17 @@ and ensure you are accounting for this risk.
28230
28280
  };
28231
28281
  }
28232
28282
  });
28233
- const _hoisted_1$M = { class: "lupa-term-checkbox-wrapper" };
28234
- const _hoisted_2$y = { class: "lupa-term-label" };
28235
- const _hoisted_3$p = {
28283
+ const _hoisted_1$O = { class: "lupa-term-checkbox-wrapper" };
28284
+ const _hoisted_2$A = { class: "lupa-term-label" };
28285
+ const _hoisted_3$r = {
28236
28286
  key: 0,
28237
28287
  class: "lupa-term-count"
28238
28288
  };
28239
- const _hoisted_4$i = {
28289
+ const _hoisted_4$j = {
28240
28290
  key: 0,
28241
28291
  class: "lupa-facet-level"
28242
28292
  };
28243
- const _sfc_main$S = /* @__PURE__ */ defineComponent({
28293
+ const _sfc_main$U = /* @__PURE__ */ defineComponent({
28244
28294
  __name: "HierarchyFacetLevel",
28245
28295
  props: {
28246
28296
  options: {},
@@ -28293,7 +28343,7 @@ and ensure you are accounting for this risk.
28293
28343
  "data-cy": "lupa-facet-term",
28294
28344
  onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
28295
28345
  }, [
28296
- createBaseVNode("div", _hoisted_1$M, [
28346
+ createBaseVNode("div", _hoisted_1$O, [
28297
28347
  createBaseVNode("span", {
28298
28348
  class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
28299
28349
  }, null, 2)
@@ -28301,11 +28351,11 @@ and ensure you are accounting for this risk.
28301
28351
  createBaseVNode("div", {
28302
28352
  class: normalizeClass(["lupa-term-checkbox-label", { [getFacetValueClass(_ctx.item)]: true }])
28303
28353
  }, [
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)
28354
+ createBaseVNode("span", _hoisted_2$A, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
28355
+ _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_3$r, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
28306
28356
  ], 2)
28307
28357
  ]),
28308
- showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$i, [
28358
+ showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$j, [
28309
28359
  (openBlock(true), createElementBlock(Fragment, null, renderList(treeItem.value.children, (itemChild) => {
28310
28360
  return openBlock(), createBlock(_component_HierarchyFacetLevel, {
28311
28361
  key: itemChild.title,
@@ -28321,13 +28371,13 @@ and ensure you are accounting for this risk.
28321
28371
  };
28322
28372
  }
28323
28373
  });
28324
- const _hoisted_1$L = {
28374
+ const _hoisted_1$N = {
28325
28375
  class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
28326
28376
  "data-cy": "lupa-search-result-facet-term-values"
28327
28377
  };
28328
- const _hoisted_2$x = { key: 0 };
28329
- const _hoisted_3$o = ["placeholder"];
28330
- const _sfc_main$R = /* @__PURE__ */ defineComponent({
28378
+ const _hoisted_2$z = { key: 0 };
28379
+ const _hoisted_3$q = ["placeholder"];
28380
+ const _sfc_main$T = /* @__PURE__ */ defineComponent({
28331
28381
  __name: "HierarchyFacet",
28332
28382
  props: {
28333
28383
  options: {},
@@ -28382,19 +28432,19 @@ and ensure you are accounting for this risk.
28382
28432
  showAll.value = false;
28383
28433
  };
28384
28434
  return (_ctx, _cache) => {
28385
- return openBlock(), createElementBlock("div", _hoisted_1$L, [
28386
- isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$x, [
28435
+ return openBlock(), createElementBlock("div", _hoisted_1$N, [
28436
+ isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$z, [
28387
28437
  withDirectives(createBaseVNode("input", {
28388
28438
  class: "lupa-term-filter",
28389
28439
  "data-cy": "lupa-term-filter",
28390
28440
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
28391
28441
  placeholder: _ctx.options.labels.facetFilter
28392
- }, null, 8, _hoisted_3$o), [
28442
+ }, null, 8, _hoisted_3$q), [
28393
28443
  [vModelText, termFilter.value]
28394
28444
  ])
28395
28445
  ])) : createCommentVNode("", true),
28396
28446
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
28397
- return openBlock(), createBlock(_sfc_main$S, {
28447
+ return openBlock(), createBlock(_sfc_main$U, {
28398
28448
  key: item.title,
28399
28449
  options: _ctx.options,
28400
28450
  item,
@@ -28418,20 +28468,20 @@ and ensure you are accounting for this risk.
28418
28468
  };
28419
28469
  }
28420
28470
  });
28421
- const _hoisted_1$K = { class: "lupa-facet-label-text" };
28422
- const _hoisted_2$w = {
28471
+ const _hoisted_1$M = { class: "lupa-facet-label-text" };
28472
+ const _hoisted_2$y = {
28423
28473
  key: 0,
28424
28474
  class: "lupa-facet-content",
28425
28475
  "data-cy": "lupa-facet-content"
28426
28476
  };
28427
28477
  const __default__$1 = {
28428
28478
  components: {
28429
- TermFacet: _sfc_main$U,
28430
- StatsFacet: _sfc_main$T,
28431
- HierarchyFacet: _sfc_main$R
28479
+ TermFacet: _sfc_main$W,
28480
+ StatsFacet: _sfc_main$V,
28481
+ HierarchyFacet: _sfc_main$T
28432
28482
  }
28433
28483
  };
28434
- const _sfc_main$Q = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
28484
+ const _sfc_main$S = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
28435
28485
  __name: "FacetDisplay",
28436
28486
  props: {
28437
28487
  options: {},
@@ -28552,12 +28602,12 @@ and ensure you are accounting for this risk.
28552
28602
  "data-cy": "lupa-search-result-facet-label",
28553
28603
  onClick: toggleFacet
28554
28604
  }, [
28555
- createBaseVNode("div", _hoisted_1$K, toDisplayString(facetLabel.value), 1),
28605
+ createBaseVNode("div", _hoisted_1$M, toDisplayString(facetLabel.value), 1),
28556
28606
  createBaseVNode("div", {
28557
28607
  class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
28558
28608
  }, null, 2)
28559
28609
  ], 2),
28560
- isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$w, [
28610
+ isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$y, [
28561
28611
  (openBlock(), createBlock(resolveDynamicComponent(facetType.value), {
28562
28612
  facet: facet.value,
28563
28613
  currentFilters: currentFilters.value[facet.value.key],
@@ -28575,12 +28625,12 @@ and ensure you are accounting for this risk.
28575
28625
  };
28576
28626
  }
28577
28627
  }));
28578
- const _hoisted_1$J = { class: "lupa-search-result-facet-section" };
28579
- const _hoisted_2$v = {
28628
+ const _hoisted_1$L = { class: "lupa-search-result-facet-section" };
28629
+ const _hoisted_2$x = {
28580
28630
  key: 0,
28581
28631
  class: "lupa-facets-title"
28582
28632
  };
28583
- const _sfc_main$P = /* @__PURE__ */ defineComponent({
28633
+ const _sfc_main$R = /* @__PURE__ */ defineComponent({
28584
28634
  __name: "FacetList",
28585
28635
  props: {
28586
28636
  options: {},
@@ -28614,14 +28664,14 @@ and ensure you are accounting for this risk.
28614
28664
  };
28615
28665
  return (_ctx, _cache) => {
28616
28666
  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),
28667
+ return openBlock(), createElementBlock("div", _hoisted_1$L, [
28668
+ _ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$x, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
28619
28669
  createBaseVNode("div", {
28620
28670
  class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
28621
28671
  }, [
28622
28672
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
28623
28673
  var _a2;
28624
- return openBlock(), createBlock(_sfc_main$Q, {
28674
+ return openBlock(), createBlock(_sfc_main$S, {
28625
28675
  key: facet.key,
28626
28676
  facet,
28627
28677
  currentFilters: currentFiltersValue.value,
@@ -28636,8 +28686,8 @@ and ensure you are accounting for this risk.
28636
28686
  };
28637
28687
  }
28638
28688
  });
28639
- const _hoisted_1$I = ["onClick"];
28640
- const _sfc_main$O = /* @__PURE__ */ defineComponent({
28689
+ const _hoisted_1$K = ["onClick"];
28690
+ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
28641
28691
  __name: "FacetsButton",
28642
28692
  props: {
28643
28693
  options: {}
@@ -28657,12 +28707,12 @@ and ensure you are accounting for this risk.
28657
28707
  key: 0,
28658
28708
  class: "lupa-facets-button-filter",
28659
28709
  onClick: withModifiers(handleClick, ["stop"])
28660
- }, toDisplayString(label.value), 9, _hoisted_1$I)) : createCommentVNode("", true);
28710
+ }, toDisplayString(label.value), 9, _hoisted_1$K)) : createCommentVNode("", true);
28661
28711
  };
28662
28712
  }
28663
28713
  });
28664
- const _hoisted_1$H = { class: "lupa-facets-filter-button-wrapper" };
28665
- const _sfc_main$N = /* @__PURE__ */ defineComponent({
28714
+ const _hoisted_1$J = { class: "lupa-facets-filter-button-wrapper" };
28715
+ const _sfc_main$P = /* @__PURE__ */ defineComponent({
28666
28716
  __name: "Facets",
28667
28717
  props: {
28668
28718
  options: {},
@@ -28748,7 +28798,7 @@ and ensure you are accounting for this risk.
28748
28798
  return openBlock(), createElementBlock("div", {
28749
28799
  class: normalizeClass(["lupa-search-result-facets", { "lupa-search-result-facets-loading": unref(loadingFacets) }])
28750
28800
  }, [
28751
- regularFacets.value ? (openBlock(), createBlock(_sfc_main$P, {
28801
+ regularFacets.value ? (openBlock(), createBlock(_sfc_main$R, {
28752
28802
  key: 0,
28753
28803
  options: _ctx.options,
28754
28804
  facets: regularFacets.value,
@@ -28758,8 +28808,8 @@ and ensure you are accounting for this risk.
28758
28808
  onSelect: handleFacetSelect,
28759
28809
  onClear: clear2
28760
28810
  }, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : createCommentVNode("", true),
28761
- createBaseVNode("div", _hoisted_1$H, [
28762
- showFilterButton.value ? (openBlock(), createBlock(_sfc_main$O, {
28811
+ createBaseVNode("div", _hoisted_1$J, [
28812
+ showFilterButton.value ? (openBlock(), createBlock(_sfc_main$Q, {
28763
28813
  key: 0,
28764
28814
  options: _ctx.options,
28765
28815
  onFilter: filter2
@@ -28769,12 +28819,12 @@ and ensure you are accounting for this risk.
28769
28819
  };
28770
28820
  }
28771
28821
  });
28772
- const _hoisted_1$G = {
28822
+ const _hoisted_1$I = {
28773
28823
  key: 0,
28774
28824
  id: "lupa-search-result-filters",
28775
28825
  class: "lupa-search-result-filters"
28776
28826
  };
28777
- const _sfc_main$M = /* @__PURE__ */ defineComponent({
28827
+ const _sfc_main$O = /* @__PURE__ */ defineComponent({
28778
28828
  __name: "SearchResultsFilters",
28779
28829
  props: {
28780
28830
  options: {},
@@ -28811,19 +28861,19 @@ and ensure you are accounting for this risk.
28811
28861
  __expose({ fetch: fetch2 });
28812
28862
  return (_ctx, _cache) => {
28813
28863
  var _a;
28814
- return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$G, [
28815
- showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$X, {
28864
+ return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$I, [
28865
+ showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$Z, {
28816
28866
  key: 0,
28817
28867
  options: _ctx.options.currentFilters,
28818
28868
  expandable: (_a = _ctx.expandable) != null ? _a : false
28819
28869
  }, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
28820
- _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$V, {
28870
+ _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$X, {
28821
28871
  key: 1,
28822
28872
  options: _ctx.options.categories,
28823
28873
  ref_key: "categoryFilters",
28824
28874
  ref: categoryFilters
28825
28875
  }, null, 8, ["options"])) : createCommentVNode("", true),
28826
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$N, {
28876
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$P, {
28827
28877
  key: 2,
28828
28878
  options: _ctx.options.facets,
28829
28879
  onFilter: filter2
@@ -28832,20 +28882,20 @@ and ensure you are accounting for this risk.
28832
28882
  };
28833
28883
  }
28834
28884
  });
28835
- const _hoisted_1$F = {
28885
+ const _hoisted_1$H = {
28836
28886
  key: 0,
28837
28887
  class: "lupa-mobile-filter-sidebar"
28838
28888
  };
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" };
28889
+ const _hoisted_2$w = ["onClick"];
28890
+ const _hoisted_3$p = { class: "lupa-mobile-sidebar-content" };
28891
+ const _hoisted_4$i = { class: "lupa-sidebar-top" };
28892
+ const _hoisted_5$c = { class: "lupa-sidebar-title" };
28843
28893
  const _hoisted_6$6 = {
28844
28894
  key: 0,
28845
28895
  class: "lupa-sidebar-filter-count"
28846
28896
  };
28847
28897
  const _hoisted_7$4 = { class: "lupa-sidebar-filter-options" };
28848
- const _sfc_main$L = /* @__PURE__ */ defineComponent({
28898
+ const _sfc_main$N = /* @__PURE__ */ defineComponent({
28849
28899
  __name: "MobileFilterSidebar",
28850
28900
  props: {
28851
28901
  options: {}
@@ -28876,14 +28926,14 @@ and ensure you are accounting for this risk.
28876
28926
  handleMobileToggle();
28877
28927
  };
28878
28928
  return (_ctx, _cache) => {
28879
- return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$F, [
28929
+ return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$H, [
28880
28930
  createBaseVNode("div", {
28881
28931
  class: "lupa-sidebar-close",
28882
28932
  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, [
28933
+ }, null, 8, _hoisted_2$w),
28934
+ createBaseVNode("div", _hoisted_3$p, [
28935
+ createBaseVNode("div", _hoisted_4$i, [
28936
+ createBaseVNode("div", _hoisted_5$c, [
28887
28937
  createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
28888
28938
  isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
28889
28939
  ]),
@@ -28893,7 +28943,7 @@ and ensure you are accounting for this risk.
28893
28943
  })
28894
28944
  ]),
28895
28945
  createBaseVNode("div", _hoisted_7$4, [
28896
- createVNode(_sfc_main$M, {
28946
+ createVNode(_sfc_main$O, {
28897
28947
  options: _ctx.options,
28898
28948
  expandable: isActiveFiltersExpanded.value,
28899
28949
  onFilter: filter2
@@ -28904,14 +28954,14 @@ and ensure you are accounting for this risk.
28904
28954
  };
28905
28955
  }
28906
28956
  });
28907
- const _hoisted_1$E = { id: "lupa-search-results-breadcrumbs" };
28908
- const _hoisted_2$t = ["href", "onClick"];
28909
- const _hoisted_3$m = {
28957
+ const _hoisted_1$G = { id: "lupa-search-results-breadcrumbs" };
28958
+ const _hoisted_2$v = ["href", "onClick"];
28959
+ const _hoisted_3$o = {
28910
28960
  key: 1,
28911
28961
  class: "lupa-search-results-breadcrumb-text"
28912
28962
  };
28913
- const _hoisted_4$g = { key: 2 };
28914
- const _sfc_main$K = /* @__PURE__ */ defineComponent({
28963
+ const _hoisted_4$h = { key: 2 };
28964
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
28915
28965
  __name: "SearchResultsBreadcrumbs",
28916
28966
  props: {
28917
28967
  breadcrumbs: {}
@@ -28936,7 +28986,7 @@ and ensure you are accounting for this risk.
28936
28986
  handleRoutingEvent(link, event, hasEventRouting.value);
28937
28987
  };
28938
28988
  return (_ctx, _cache) => {
28939
- return openBlock(), createElementBlock("div", _hoisted_1$E, [
28989
+ return openBlock(), createElementBlock("div", _hoisted_1$G, [
28940
28990
  (openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
28941
28991
  var _a;
28942
28992
  return openBlock(), createElementBlock("span", {
@@ -28951,20 +29001,20 @@ and ensure you are accounting for this risk.
28951
29001
  var _a2;
28952
29002
  return handleNavigation(e2, (_a2 = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a2 : "");
28953
29003
  }
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)
29004
+ }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$v)) : (openBlock(), createElementBlock("span", _hoisted_3$o, toDisplayString(getLabel(breadcrumb.label)), 1)),
29005
+ index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$h, toDisplayString((_a = breadcrumb.separator) != null ? _a : "/"), 1)) : createCommentVNode("", true)
28956
29006
  ]);
28957
29007
  }), 128))
28958
29008
  ]);
28959
29009
  };
28960
29010
  }
28961
29011
  });
28962
- const _hoisted_1$D = {
29012
+ const _hoisted_1$F = {
28963
29013
  key: 0,
28964
29014
  id: "lupa-search-result-filters",
28965
29015
  class: "lupa-search-result-filters lupa-search-result-top-filters"
28966
29016
  };
28967
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
29017
+ const _sfc_main$L = /* @__PURE__ */ defineComponent({
28968
29018
  __name: "FiltersTopDropdown",
28969
29019
  props: {
28970
29020
  options: {}
@@ -28981,8 +29031,8 @@ and ensure you are accounting for this risk.
28981
29031
  });
28982
29032
  return (_ctx, _cache) => {
28983
29033
  var _a;
28984
- return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$D, [
28985
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$N, {
29034
+ return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$F, [
29035
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$P, {
28986
29036
  key: 0,
28987
29037
  options: _ctx.options.facets,
28988
29038
  "facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
@@ -28993,8 +29043,8 @@ and ensure you are accounting for this risk.
28993
29043
  };
28994
29044
  }
28995
29045
  });
28996
- const _hoisted_1$C = { id: "lupa-search-results-layout-selection" };
28997
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
29046
+ const _hoisted_1$E = { id: "lupa-search-results-layout-selection" };
29047
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
28998
29048
  __name: "SearchResultsLayoutSelection",
28999
29049
  setup(__props) {
29000
29050
  const searchResultStore = useSearchResultStore();
@@ -29005,7 +29055,7 @@ and ensure you are accounting for this risk.
29005
29055
  searchResultStore.setLayout(layout2);
29006
29056
  };
29007
29057
  return (_ctx, _cache) => {
29008
- return openBlock(), createElementBlock("div", _hoisted_1$C, [
29058
+ return openBlock(), createElementBlock("div", _hoisted_1$E, [
29009
29059
  createBaseVNode("div", {
29010
29060
  class: normalizeClass([
29011
29061
  "lupa-layout-selection-grid",
@@ -29027,11 +29077,11 @@ and ensure you are accounting for this risk.
29027
29077
  };
29028
29078
  }
29029
29079
  });
29030
- const _hoisted_1$B = {
29080
+ const _hoisted_1$D = {
29031
29081
  key: 0,
29032
29082
  class: "lupa-mobile-toggle-filter-count"
29033
29083
  };
29034
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
29084
+ const _sfc_main$J = /* @__PURE__ */ defineComponent({
29035
29085
  __name: "SearchResultsMobileToggle",
29036
29086
  props: {
29037
29087
  labels: {},
@@ -29079,12 +29129,12 @@ and ensure you are accounting for this risk.
29079
29129
  onClick: handleMobileToggle
29080
29130
  }, [
29081
29131
  createTextVNode(toDisplayString(label.value) + " ", 1),
29082
- _ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$B, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
29132
+ _ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$D, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
29083
29133
  ], 2);
29084
29134
  };
29085
29135
  }
29086
29136
  });
29087
- const _sfc_main$G = /* @__PURE__ */ defineComponent({
29137
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
29088
29138
  __name: "SearchResultsMobileFilterClose",
29089
29139
  props: {
29090
29140
  label: {}
@@ -29104,21 +29154,21 @@ and ensure you are accounting for this risk.
29104
29154
  };
29105
29155
  }
29106
29156
  });
29107
- const _hoisted_1$A = {
29157
+ const _hoisted_1$C = {
29108
29158
  key: 0,
29109
29159
  id: "lupa-search-results-page-select",
29110
29160
  "data-cy": "lupa-search-results-page-select"
29111
29161
  };
29112
- const _hoisted_2$s = {
29162
+ const _hoisted_2$u = {
29113
29163
  key: 0,
29114
29164
  class: "lupa-page-number-separator"
29115
29165
  };
29116
- const _hoisted_3$l = ["onClick"];
29117
- const _hoisted_4$f = {
29166
+ const _hoisted_3$n = ["onClick"];
29167
+ const _hoisted_4$g = {
29118
29168
  key: 0,
29119
29169
  class: "lupa-page-number-separator"
29120
29170
  };
29121
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
29171
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
29122
29172
  __name: "SearchResultsPageSelect",
29123
29173
  props: {
29124
29174
  lastPageLabel: {},
@@ -29195,7 +29245,7 @@ and ensure you are accounting for this risk.
29195
29245
  }
29196
29246
  };
29197
29247
  return (_ctx, _cache) => {
29198
- return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$A, [
29248
+ return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$C, [
29199
29249
  showBack.value ? (openBlock(), createElementBlock("div", {
29200
29250
  key: 0,
29201
29251
  class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
@@ -29206,7 +29256,7 @@ and ensure you are accounting for this risk.
29206
29256
  class: "lupa-page-number lupa-page-number-first",
29207
29257
  onClick: _cache[1] || (_cache[1] = () => handlePageChange(1))
29208
29258
  }, " 1 "),
29209
- showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$s, "...")) : createCommentVNode("", true)
29259
+ showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$u, "...")) : createCommentVNode("", true)
29210
29260
  ], 64)) : createCommentVNode("", true),
29211
29261
  (openBlock(true), createElementBlock(Fragment, null, renderList(pages.value, (page) => {
29212
29262
  return openBlock(), createElementBlock("div", {
@@ -29217,10 +29267,10 @@ and ensure you are accounting for this risk.
29217
29267
  page === _ctx.options.selectedPage ? "lupa-page-number-selected" : ""
29218
29268
  ]),
29219
29269
  "data-cy": "lupa-page-number"
29220
- }, toDisplayString(page), 11, _hoisted_3$l);
29270
+ }, toDisplayString(page), 11, _hoisted_3$n);
29221
29271
  }), 128)),
29222
29272
  showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
29223
- showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$f, "...")) : createCommentVNode("", true),
29273
+ showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$g, "...")) : createCommentVNode("", true),
29224
29274
  createBaseVNode("div", {
29225
29275
  class: "lupa-page-number lupa-page-number-last",
29226
29276
  onClick: _cache[2] || (_cache[2] = () => {
@@ -29239,15 +29289,15 @@ and ensure you are accounting for this risk.
29239
29289
  };
29240
29290
  }
29241
29291
  });
29242
- const _hoisted_1$z = {
29292
+ const _hoisted_1$B = {
29243
29293
  id: "lupa-search-results-page-size",
29244
29294
  "data-cy": "lupa-search-results-page-size"
29245
29295
  };
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({
29296
+ const _hoisted_2$t = { id: "lupa-select" };
29297
+ const _hoisted_3$m = { class: "lupa-select-label" };
29298
+ const _hoisted_4$f = ["aria-label"];
29299
+ const _hoisted_5$b = ["value"];
29300
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
29251
29301
  __name: "SearchResultsPageSize",
29252
29302
  props: {
29253
29303
  labels: {},
@@ -29275,9 +29325,9 @@ and ensure you are accounting for this risk.
29275
29325
  });
29276
29326
  };
29277
29327
  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),
29328
+ return openBlock(), createElementBlock("div", _hoisted_1$B, [
29329
+ createBaseVNode("div", _hoisted_2$t, [
29330
+ createBaseVNode("label", _hoisted_3$m, toDisplayString(label.value), 1),
29281
29331
  createBaseVNode("select", {
29282
29332
  class: "lupa-select-dropdown",
29283
29333
  "aria-label": label.value,
@@ -29290,23 +29340,23 @@ and ensure you are accounting for this risk.
29290
29340
  return openBlock(), createElementBlock("option", {
29291
29341
  key: option,
29292
29342
  value: option
29293
- }, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$a);
29343
+ }, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$b);
29294
29344
  }), 128))
29295
- ], 40, _hoisted_4$e)
29345
+ ], 40, _hoisted_4$f)
29296
29346
  ])
29297
29347
  ]);
29298
29348
  };
29299
29349
  }
29300
29350
  });
29301
- const _hoisted_1$y = {
29351
+ const _hoisted_1$A = {
29302
29352
  id: "lupa-search-results-sort",
29303
29353
  class: "lupa-search-results-sort"
29304
29354
  };
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({
29355
+ const _hoisted_2$s = { id: "lupa-select" };
29356
+ const _hoisted_3$l = { class: "lupa-select-label" };
29357
+ const _hoisted_4$e = ["aria-label"];
29358
+ const _hoisted_5$a = ["value"];
29359
+ const _sfc_main$F = /* @__PURE__ */ defineComponent({
29310
29360
  __name: "SearchResultsSort",
29311
29361
  props: {
29312
29362
  options: {},
@@ -29355,9 +29405,9 @@ and ensure you are accounting for this risk.
29355
29405
  previousKey.value = selectedKey.value;
29356
29406
  };
29357
29407
  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),
29408
+ return openBlock(), createElementBlock("div", _hoisted_1$A, [
29409
+ createBaseVNode("div", _hoisted_2$s, [
29410
+ createBaseVNode("label", _hoisted_3$l, toDisplayString(_ctx.options.label), 1),
29361
29411
  withDirectives(createBaseVNode("select", {
29362
29412
  class: "lupa-select-dropdown",
29363
29413
  "aria-label": _ctx.options.label,
@@ -29370,9 +29420,9 @@ and ensure you are accounting for this risk.
29370
29420
  return openBlock(), createElementBlock("option", {
29371
29421
  key: option.key,
29372
29422
  value: option.key
29373
- }, toDisplayString(option.label), 9, _hoisted_5$9);
29423
+ }, toDisplayString(option.label), 9, _hoisted_5$a);
29374
29424
  }), 128))
29375
- ], 40, _hoisted_4$d), [
29425
+ ], 40, _hoisted_4$e), [
29376
29426
  [vModelSelect, selectedKey.value]
29377
29427
  ])
29378
29428
  ])
@@ -29380,14 +29430,14 @@ and ensure you are accounting for this risk.
29380
29430
  };
29381
29431
  }
29382
29432
  });
29383
- const _hoisted_1$x = { class: "lupa-toolbar-left" };
29384
- const _hoisted_2$p = {
29433
+ const _hoisted_1$z = { class: "lupa-toolbar-left" };
29434
+ const _hoisted_2$r = {
29385
29435
  key: 0,
29386
29436
  class: "lupa-toolbar-right-title"
29387
29437
  };
29388
- const _hoisted_3$i = { key: 2 };
29389
- const _hoisted_4$c = { key: 4 };
29390
- const _hoisted_5$8 = { key: 6 };
29438
+ const _hoisted_3$k = { key: 2 };
29439
+ const _hoisted_4$d = { key: 4 };
29440
+ const _hoisted_5$9 = { key: 6 };
29391
29441
  const _hoisted_6$5 = { class: "lupa-toolbar-right" };
29392
29442
  const _hoisted_7$3 = {
29393
29443
  key: 0,
@@ -29395,7 +29445,7 @@ and ensure you are accounting for this risk.
29395
29445
  };
29396
29446
  const _hoisted_8 = { key: 2 };
29397
29447
  const _hoisted_9 = { key: 4 };
29398
- const _sfc_main$C = /* @__PURE__ */ defineComponent({
29448
+ const _sfc_main$E = /* @__PURE__ */ defineComponent({
29399
29449
  __name: "SearchResultsToolbar",
29400
29450
  props: {
29401
29451
  options: {},
@@ -29506,39 +29556,39 @@ and ensure you are accounting for this risk.
29506
29556
  id: "lupa-search-results-toolbar",
29507
29557
  class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
29508
29558
  }, [
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$_, {
29559
+ createBaseVNode("div", _hoisted_1$z, [
29560
+ toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$r, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
29561
+ showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$K, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$k)),
29562
+ showItemSummary.value ? (openBlock(), createBlock(_sfc_main$10, {
29513
29563
  key: 3,
29514
29564
  label: searchSummaryLabel.value,
29515
29565
  clearable: unref(hasAnyFilter) && showFilterClear.value,
29516
29566
  onClear: handleClearAll
29517
- }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$c)),
29518
- displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$F, {
29567
+ }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$d)),
29568
+ displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$H, {
29519
29569
  key: 5,
29520
29570
  options: paginationOptions.value.pageSelect,
29521
29571
  "last-page-label": paginationOptions.value.labels.showMore,
29522
29572
  "first-page-label": paginationOptions.value.labels.showLess
29523
- }, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_5$8))
29573
+ }, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_5$9))
29524
29574
  ]),
29525
29575
  createBaseVNode("div", _hoisted_6$5, [
29526
29576
  toolbarRightLabel.value ? (openBlock(), createElementBlock("div", _hoisted_7$3, toDisplayString(toolbarRightLabel.value), 1)) : createCommentVNode("", true),
29527
- createVNode(_sfc_main$H, {
29577
+ createVNode(_sfc_main$J, {
29528
29578
  labels: optionsValue.value.labels,
29529
29579
  "show-filter-count": showMobileFilterCount.value
29530
29580
  }, null, 8, ["labels", "show-filter-count"]),
29531
- paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$E, {
29581
+ paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$G, {
29532
29582
  key: 1,
29533
29583
  options: paginationOptions.value.pageSize,
29534
29584
  labels: paginationOptions.value.labels
29535
29585
  }, null, 8, ["options", "labels"])) : (openBlock(), createElementBlock("div", _hoisted_8)),
29536
- sortOptions.value ? (openBlock(), createBlock(_sfc_main$D, {
29586
+ sortOptions.value ? (openBlock(), createBlock(_sfc_main$F, {
29537
29587
  key: 3,
29538
29588
  options: sortOptions.value,
29539
29589
  callbacks: callbacks.value
29540
29590
  }, null, 8, ["options", "callbacks"])) : (openBlock(), createElementBlock("div", _hoisted_9)),
29541
- showFiltersCloseButton.value && unref(isMobileSidebarVisible) ? (openBlock(), createBlock(_sfc_main$G, {
29591
+ showFiltersCloseButton.value && unref(isMobileSidebarVisible) ? (openBlock(), createBlock(_sfc_main$I, {
29542
29592
  key: 5,
29543
29593
  label: optionsValue.value.labels.mobileFilterCloseButton
29544
29594
  }, null, 8, ["label"])) : createCommentVNode("", true)
@@ -29547,7 +29597,7 @@ and ensure you are accounting for this risk.
29547
29597
  };
29548
29598
  }
29549
29599
  });
29550
- const _sfc_main$B = /* @__PURE__ */ defineComponent({
29600
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
29551
29601
  __name: "SearchResultsProductImage",
29552
29602
  props: {
29553
29603
  item: {},
@@ -29555,7 +29605,7 @@ and ensure you are accounting for this risk.
29555
29605
  },
29556
29606
  setup(__props) {
29557
29607
  return (_ctx, _cache) => {
29558
- return openBlock(), createBlock(_sfc_main$1n, {
29608
+ return openBlock(), createBlock(_sfc_main$1p, {
29559
29609
  item: _ctx.item,
29560
29610
  options: _ctx.options,
29561
29611
  "wrapper-class": "lupa-search-results-image-wrapper",
@@ -29564,16 +29614,16 @@ and ensure you are accounting for this risk.
29564
29614
  };
29565
29615
  }
29566
29616
  });
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 = {
29617
+ const _hoisted_1$y = ["title", "innerHTML"];
29618
+ const _hoisted_2$q = ["title"];
29619
+ const _hoisted_3$j = ["href", "innerHTML"];
29620
+ const _hoisted_4$c = ["title"];
29621
+ const _hoisted_5$8 = {
29572
29622
  key: 0,
29573
29623
  class: "lupa-search-results-product-title-text"
29574
29624
  };
29575
29625
  const _hoisted_6$4 = ["href"];
29576
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
29626
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
29577
29627
  __name: "SearchResultsProductTitle",
29578
29628
  props: {
29579
29629
  item: {},
@@ -29610,7 +29660,7 @@ and ensure you are accounting for this risk.
29610
29660
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
29611
29661
  title: sanitizedTitle.value,
29612
29662
  innerHTML: sanitizedTitle.value
29613
- }, null, 12, _hoisted_1$w)) : isHtml.value && _ctx.options.link ? (openBlock(), createElementBlock("div", {
29663
+ }, null, 12, _hoisted_1$y)) : isHtml.value && _ctx.options.link ? (openBlock(), createElementBlock("div", {
29614
29664
  key: 1,
29615
29665
  class: "lupa-search-results-product-title",
29616
29666
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
@@ -29621,26 +29671,26 @@ and ensure you are accounting for this risk.
29621
29671
  class: "lupa-search-results-product-title-text lupa-title-link",
29622
29672
  innerHTML: sanitizedTitle.value,
29623
29673
  onClick: handleNavigation
29624
- }, null, 8, _hoisted_3$h)
29625
- ], 12, _hoisted_2$o)) : (openBlock(), createElementBlock("div", {
29674
+ }, null, 8, _hoisted_3$j)
29675
+ ], 12, _hoisted_2$q)) : (openBlock(), createElementBlock("div", {
29626
29676
  key: 2,
29627
29677
  class: "lupa-search-results-product-title",
29628
29678
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
29629
29679
  title: title.value
29630
29680
  }, [
29631
- !_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_5$7, toDisplayString(title.value), 1)) : createCommentVNode("", true),
29681
+ !_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_5$8, toDisplayString(title.value), 1)) : createCommentVNode("", true),
29632
29682
  _ctx.options.link ? (openBlock(), createElementBlock("a", {
29633
29683
  key: 1,
29634
29684
  href: _ctx.link,
29635
29685
  class: "lupa-search-results-product-title-text lupa-title-link",
29636
29686
  onClick: handleNavigation
29637
29687
  }, toDisplayString(title.value), 9, _hoisted_6$4)) : createCommentVNode("", true)
29638
- ], 12, _hoisted_4$b));
29688
+ ], 12, _hoisted_4$c));
29639
29689
  };
29640
29690
  }
29641
29691
  });
29642
- const _hoisted_1$v = ["innerHTML"];
29643
- const _sfc_main$z = /* @__PURE__ */ defineComponent({
29692
+ const _hoisted_1$x = ["innerHTML"];
29693
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
29644
29694
  __name: "SearchResultsProductDescription",
29645
29695
  props: {
29646
29696
  item: {},
@@ -29667,7 +29717,7 @@ and ensure you are accounting for this risk.
29667
29717
  class: "lupa-search-results-product-description",
29668
29718
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
29669
29719
  innerHTML: sanitizedDescription.value
29670
- }, null, 12, _hoisted_1$v)) : (openBlock(), createElementBlock("div", {
29720
+ }, null, 12, _hoisted_1$x)) : (openBlock(), createElementBlock("div", {
29671
29721
  key: 1,
29672
29722
  class: "lupa-search-results-product-description",
29673
29723
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
@@ -29675,15 +29725,15 @@ and ensure you are accounting for this risk.
29675
29725
  };
29676
29726
  }
29677
29727
  });
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" };
29728
+ const _hoisted_1$w = { id: "lupa-search-results-rating" };
29729
+ const _hoisted_2$p = { class: "lupa-ratings" };
29730
+ const _hoisted_3$i = { class: "lupa-ratings-base" };
29731
+ const _hoisted_4$b = ["innerHTML"];
29732
+ const _hoisted_5$7 = { class: "lupa-rating-wrapper" };
29683
29733
  const _hoisted_6$3 = ["innerHTML"];
29684
29734
  const _hoisted_7$2 = ["href"];
29685
29735
  const STAR_COUNT = 5;
29686
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
29736
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
29687
29737
  __name: "SearchResultsProductRating",
29688
29738
  props: {
29689
29739
  item: {},
@@ -29720,18 +29770,18 @@ and ensure you are accounting for this risk.
29720
29770
  return generateLink(props.options.links.ratingDetails, props.item);
29721
29771
  });
29722
29772
  return (_ctx, _cache) => {
29723
- return openBlock(), createElementBlock("div", _hoisted_1$u, [
29724
- createBaseVNode("div", _hoisted_2$n, [
29725
- createBaseVNode("div", _hoisted_3$g, [
29773
+ return openBlock(), createElementBlock("div", _hoisted_1$w, [
29774
+ createBaseVNode("div", _hoisted_2$p, [
29775
+ createBaseVNode("div", _hoisted_3$i, [
29726
29776
  (openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
29727
29777
  return openBlock(), createElementBlock("div", {
29728
29778
  key: index,
29729
29779
  innerHTML: star,
29730
29780
  class: "lupa-rating lupa-rating-not-highlighted"
29731
- }, null, 8, _hoisted_4$a);
29781
+ }, null, 8, _hoisted_4$b);
29732
29782
  }), 128))
29733
29783
  ]),
29734
- createBaseVNode("div", _hoisted_5$6, [
29784
+ createBaseVNode("div", _hoisted_5$7, [
29735
29785
  createBaseVNode("div", {
29736
29786
  class: "lupa-ratings-highlighted",
29737
29787
  style: normalizeStyle({ width: ratingPercentage.value + "%" })
@@ -29754,11 +29804,11 @@ and ensure you are accounting for this risk.
29754
29804
  };
29755
29805
  }
29756
29806
  });
29757
- const _hoisted_1$t = {
29807
+ const _hoisted_1$v = {
29758
29808
  class: "lupa-search-results-product-regular-price",
29759
29809
  "data-cy": "lupa-search-results-product-regular-price"
29760
29810
  };
29761
- const _sfc_main$x = /* @__PURE__ */ defineComponent({
29811
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
29762
29812
  __name: "SearchResultsProductRegularPrice",
29763
29813
  props: {
29764
29814
  item: {},
@@ -29777,11 +29827,11 @@ and ensure you are accounting for this risk.
29777
29827
  );
29778
29828
  });
29779
29829
  return (_ctx, _cache) => {
29780
- return openBlock(), createElementBlock("div", _hoisted_1$t, toDisplayString(price.value), 1);
29830
+ return openBlock(), createElementBlock("div", _hoisted_1$v, toDisplayString(price.value), 1);
29781
29831
  };
29782
29832
  }
29783
29833
  });
29784
- const _sfc_main$w = /* @__PURE__ */ defineComponent({
29834
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
29785
29835
  __name: "SearchResultsProductPrice",
29786
29836
  props: {
29787
29837
  item: {},
@@ -29812,12 +29862,12 @@ and ensure you are accounting for this risk.
29812
29862
  };
29813
29863
  }
29814
29864
  });
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({
29865
+ const _hoisted_1$u = { class: "lupa-search-results-add-to-cart-wrapper" };
29866
+ const _hoisted_2$o = { class: "lupa-search-results-product-addtocart" };
29867
+ const _hoisted_3$h = ["disabled"];
29868
+ const _hoisted_4$a = ["href"];
29869
+ const _hoisted_5$6 = ["id", "disabled", "onClick"];
29870
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
29821
29871
  __name: "SearchResultsProductAddToCart",
29822
29872
  props: {
29823
29873
  item: {},
@@ -29860,16 +29910,16 @@ and ensure you are accounting for this risk.
29860
29910
  return Boolean(props.link && props.options.link);
29861
29911
  });
29862
29912
  return (_ctx, _cache) => {
29863
- return openBlock(), createElementBlock("div", _hoisted_1$s, [
29864
- createBaseVNode("div", _hoisted_2$m, [
29913
+ return openBlock(), createElementBlock("div", _hoisted_1$u, [
29914
+ createBaseVNode("div", _hoisted_2$o, [
29865
29915
  hasLink.value ? (openBlock(), createElementBlock("button", mergeProps({
29866
29916
  key: 0,
29867
29917
  class: loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart",
29868
29918
  "data-cy": "lupa-add-to-cart",
29869
29919
  disabled: !inStockValue.value || loading.value
29870
29920
  }, _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({
29921
+ createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$a)
29922
+ ], 16, _hoisted_3$h)) : (openBlock(), createElementBlock("button", mergeProps({
29873
29923
  key: 1,
29874
29924
  id: id.value,
29875
29925
  class: loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart",
@@ -29877,18 +29927,18 @@ and ensure you are accounting for this risk.
29877
29927
  disabled: !inStockValue.value || loading.value
29878
29928
  }, _ctx.dynamicAttributes, {
29879
29929
  onClick: withModifiers(handleClick, ["stop"])
29880
- }), toDisplayString(label.value), 17, _hoisted_5$5))
29930
+ }), toDisplayString(label.value), 17, _hoisted_5$6))
29881
29931
  ])
29882
29932
  ]);
29883
29933
  };
29884
29934
  }
29885
29935
  });
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({
29936
+ const _hoisted_1$t = ["innerHTML"];
29937
+ const _hoisted_2$n = { key: 0 };
29938
+ const _hoisted_3$g = { key: 1 };
29939
+ const _hoisted_4$9 = { class: "lupa-search-box-custom-label" };
29940
+ const _hoisted_5$5 = { class: "lupa-search-box-custom-text" };
29941
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
29892
29942
  __name: "SearchResultsProductCustom",
29893
29943
  props: {
29894
29944
  item: {},
@@ -29926,20 +29976,20 @@ and ensure you are accounting for this risk.
29926
29976
  key: 0,
29927
29977
  class: className.value,
29928
29978
  innerHTML: text.value
29929
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$r)) : (openBlock(), createElementBlock("div", mergeProps({
29979
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$t)) : (openBlock(), createElementBlock("div", mergeProps({
29930
29980
  key: 1,
29931
29981
  class: className.value
29932
29982
  }, 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)
29983
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$n, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$g, [
29984
+ createBaseVNode("div", _hoisted_4$9, toDisplayString(label.value), 1),
29985
+ createBaseVNode("div", _hoisted_5$5, toDisplayString(text.value), 1)
29936
29986
  ]))
29937
29987
  ], 16));
29938
29988
  };
29939
29989
  }
29940
29990
  });
29941
- const _hoisted_1$q = ["innerHTML"];
29942
- const _sfc_main$t = /* @__PURE__ */ defineComponent({
29991
+ const _hoisted_1$s = ["innerHTML"];
29992
+ const _sfc_main$v = /* @__PURE__ */ defineComponent({
29943
29993
  __name: "SearchResultsProductCustomHtmlElement",
29944
29994
  props: {
29945
29995
  item: {},
@@ -29970,15 +30020,15 @@ and ensure you are accounting for this risk.
29970
30020
  return openBlock(), createElementBlock("div", mergeProps({
29971
30021
  class: className.value,
29972
30022
  innerHTML: text.value
29973
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$q);
30023
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$s);
29974
30024
  };
29975
30025
  }
29976
30026
  });
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({
30027
+ const _hoisted_1$r = { id: "lupa-search-results-rating" };
30028
+ const _hoisted_2$m = ["innerHTML"];
30029
+ const _hoisted_3$f = { class: "lupa-ratings" };
30030
+ const _hoisted_4$8 = ["href"];
30031
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
29982
30032
  __name: "SearchResultsProductSingleStarRating",
29983
30033
  props: {
29984
30034
  item: {},
@@ -30006,35 +30056,35 @@ and ensure you are accounting for this risk.
30006
30056
  return RATING_STAR_HTML;
30007
30057
  });
30008
30058
  return (_ctx, _cache) => {
30009
- return openBlock(), createElementBlock("div", _hoisted_1$p, [
30059
+ return openBlock(), createElementBlock("div", _hoisted_1$r, [
30010
30060
  createBaseVNode("div", {
30011
30061
  innerHTML: star.value,
30012
30062
  class: "lupa-rating lupa-rating-highlighted"
30013
- }, null, 8, _hoisted_2$k),
30014
- createBaseVNode("div", _hoisted_3$d, toDisplayString(rating.value), 1),
30063
+ }, null, 8, _hoisted_2$m),
30064
+ createBaseVNode("div", _hoisted_3$f, toDisplayString(rating.value), 1),
30015
30065
  createBaseVNode("a", {
30016
30066
  href: ratingLink.value,
30017
30067
  class: "lupa-total-ratings"
30018
- }, toDisplayString(totalRatings.value), 9, _hoisted_4$7)
30068
+ }, toDisplayString(totalRatings.value), 9, _hoisted_4$8)
30019
30069
  ]);
30020
30070
  };
30021
30071
  }
30022
30072
  });
30023
30073
  const __default__ = {
30024
30074
  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__), {
30075
+ SearchResultsProductImage: _sfc_main$D,
30076
+ SearchResultsProductTitle: _sfc_main$C,
30077
+ SearchResultsProductDescription: _sfc_main$B,
30078
+ SearchResultsProductRating: _sfc_main$A,
30079
+ SearchResultsProductRegularPrice: _sfc_main$z,
30080
+ SearchResultsProductPrice: _sfc_main$y,
30081
+ SearchResultsProductAddToCart: _sfc_main$x,
30082
+ SearchResultsProductCustom: _sfc_main$w,
30083
+ SearchResultsProductCustomHtmlElement: _sfc_main$v,
30084
+ SearchResultsProductSingleStarRating: _sfc_main$u
30085
+ }
30086
+ };
30087
+ const _sfc_main$t = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
30038
30088
  __name: "SearchResultsProductCardElement",
30039
30089
  props: {
30040
30090
  item: {},
@@ -30116,14 +30166,14 @@ and ensure you are accounting for this risk.
30116
30166
  };
30117
30167
  }
30118
30168
  }));
30119
- const _hoisted_1$o = ["onMouseup"];
30120
- const _hoisted_2$j = ["href"];
30121
- const _hoisted_3$c = {
30169
+ const _hoisted_1$q = ["onMouseup"];
30170
+ const _hoisted_2$l = ["href"];
30171
+ const _hoisted_3$e = {
30122
30172
  key: 0,
30123
30173
  class: "lupa-out-of-stock"
30124
30174
  };
30125
- const _hoisted_4$6 = { class: "lupa-search-result-product-details-section" };
30126
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
30175
+ const _hoisted_4$7 = { class: "lupa-search-result-product-details-section" };
30176
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
30127
30177
  __name: "SearchResultsProductCard",
30128
30178
  props: {
30129
30179
  product: {},
@@ -30288,7 +30338,7 @@ and ensure you are accounting for this risk.
30288
30338
  onClick: handleClick,
30289
30339
  onMouseup: withModifiers(handleClick, ["middle", "exact"])
30290
30340
  }), [
30291
- createVNode(_sfc_main$17, { options: badgesOptions.value }, null, 8, ["options"]),
30341
+ createVNode(_sfc_main$19, { options: badgesOptions.value }, null, 8, ["options"]),
30292
30342
  createBaseVNode("div", {
30293
30343
  class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
30294
30344
  }, [
@@ -30298,7 +30348,7 @@ and ensure you are accounting for this risk.
30298
30348
  onClick: handleNavigation
30299
30349
  }, [
30300
30350
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
30301
- return openBlock(), createBlock(_sfc_main$r, {
30351
+ return openBlock(), createBlock(_sfc_main$t, {
30302
30352
  class: "lupa-search-results-product-element",
30303
30353
  item: _ctx.product,
30304
30354
  element,
@@ -30309,16 +30359,16 @@ and ensure you are accounting for this risk.
30309
30359
  onProductEvent: handleProductEvent
30310
30360
  }, null, 8, ["item", "element", "labels", "inStock", "link"]);
30311
30361
  }), 128)),
30312
- createVNode(_sfc_main$17, {
30362
+ createVNode(_sfc_main$19, {
30313
30363
  options: badgesOptions.value,
30314
30364
  position: "image",
30315
30365
  class: "lupa-image-badges"
30316
30366
  }, 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, [
30367
+ ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_3$e, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
30368
+ ], 8, _hoisted_2$l),
30369
+ createBaseVNode("div", _hoisted_4$7, [
30320
30370
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
30321
- return openBlock(), createBlock(_sfc_main$r, {
30371
+ return openBlock(), createBlock(_sfc_main$t, {
30322
30372
  class: "lupa-search-results-product-element",
30323
30373
  item: _ctx.product,
30324
30374
  element,
@@ -30336,7 +30386,7 @@ and ensure you are accounting for this risk.
30336
30386
  class: normalizeClass("lupa-element-group-" + group)
30337
30387
  }, [
30338
30388
  (openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
30339
- return openBlock(), createBlock(_sfc_main$r, {
30389
+ return openBlock(), createBlock(_sfc_main$t, {
30340
30390
  class: "lupa-search-results-product-element",
30341
30391
  item: _ctx.product,
30342
30392
  element,
@@ -30350,27 +30400,27 @@ and ensure you are accounting for this risk.
30350
30400
  ], 2);
30351
30401
  }), 128))
30352
30402
  ], 2)
30353
- ], 16, _hoisted_1$o);
30403
+ ], 16, _hoisted_1$q);
30354
30404
  };
30355
30405
  }
30356
30406
  });
30357
- const _hoisted_1$n = {
30407
+ const _hoisted_1$p = {
30358
30408
  id: "lupa-search-results-similar-queries",
30359
30409
  "data-cy": "lupa-search-results-similar-queries"
30360
30410
  };
30361
- const _hoisted_2$i = { class: "lupa-similar-queries-label" };
30362
- const _hoisted_3$b = {
30411
+ const _hoisted_2$k = { class: "lupa-similar-queries-label" };
30412
+ const _hoisted_3$d = {
30363
30413
  class: "lupa-similar-query-label",
30364
30414
  "data-cy": "lupa-similar-query-label"
30365
30415
  };
30366
- const _hoisted_4$5 = ["onClick"];
30367
- const _hoisted_5$3 = ["innerHTML"];
30416
+ const _hoisted_4$6 = ["onClick"];
30417
+ const _hoisted_5$4 = ["innerHTML"];
30368
30418
  const _hoisted_6$2 = { key: 0 };
30369
30419
  const _hoisted_7$1 = {
30370
30420
  class: "lupa-products",
30371
30421
  "data-cy": "lupa-products"
30372
30422
  };
30373
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
30423
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
30374
30424
  __name: "SearchResultsSimilarQueries",
30375
30425
  props: {
30376
30426
  labels: {},
@@ -30408,11 +30458,11 @@ and ensure you are accounting for this risk.
30408
30458
  };
30409
30459
  };
30410
30460
  return (_ctx, _cache) => {
30411
- return openBlock(), createElementBlock("div", _hoisted_1$n, [
30412
- createBaseVNode("div", _hoisted_2$i, toDisplayString(_ctx.labels.similarQueries), 1),
30461
+ return openBlock(), createElementBlock("div", _hoisted_1$p, [
30462
+ createBaseVNode("div", _hoisted_2$k, toDisplayString(_ctx.labels.similarQueries), 1),
30413
30463
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
30414
30464
  return openBlock(), createElementBlock("div", { key: index }, [
30415
- createBaseVNode("div", _hoisted_3$b, [
30465
+ createBaseVNode("div", _hoisted_3$d, [
30416
30466
  createBaseVNode("span", null, toDisplayString(similarQueryLabel.value), 1),
30417
30467
  createBaseVNode("span", {
30418
30468
  id: "lupa-similar-query-text-component",
@@ -30422,13 +30472,13 @@ and ensure you are accounting for this risk.
30422
30472
  }, [
30423
30473
  createBaseVNode("span", {
30424
30474
  innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
30425
- }, null, 8, _hoisted_5$3),
30475
+ }, null, 8, _hoisted_5$4),
30426
30476
  similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$2, " (" + toDisplayString(similarQuery.count) + ")", 1)) : createCommentVNode("", true)
30427
- ], 8, _hoisted_4$5)
30477
+ ], 8, _hoisted_4$6)
30428
30478
  ]),
30429
30479
  createBaseVNode("div", _hoisted_7$1, [
30430
30480
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
30431
- return openBlock(), createBlock(_sfc_main$q, {
30481
+ return openBlock(), createBlock(_sfc_main$s, {
30432
30482
  style: normalizeStyle(_ctx.columnSize),
30433
30483
  key: getDocumentKey(index2, product),
30434
30484
  product,
@@ -30443,15 +30493,15 @@ and ensure you are accounting for this risk.
30443
30493
  };
30444
30494
  }
30445
30495
  });
30446
- const _hoisted_1$m = {
30496
+ const _hoisted_1$o = {
30447
30497
  key: 0,
30448
30498
  class: "lupa-results-additional-panel"
30449
30499
  };
30450
- const _hoisted_2$h = {
30500
+ const _hoisted_2$j = {
30451
30501
  class: "lupa-results-additional-panel-items",
30452
30502
  "data-cy": "lupa-results-additional-panel-items"
30453
30503
  };
30454
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
30504
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
30455
30505
  __name: "AdditionalPanel",
30456
30506
  props: {
30457
30507
  panel: {},
@@ -30524,10 +30574,10 @@ and ensure you are accounting for this risk.
30524
30574
  handleQueryChange();
30525
30575
  });
30526
30576
  return (_ctx, _cache) => {
30527
- return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$m, [
30528
- createBaseVNode("div", _hoisted_2$h, [
30577
+ return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$o, [
30578
+ createBaseVNode("div", _hoisted_2$j, [
30529
30579
  (openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
30530
- return openBlock(), createBlock(_sfc_main$q, {
30580
+ return openBlock(), createBlock(_sfc_main$s, {
30531
30581
  key: index,
30532
30582
  product: item,
30533
30583
  options: _ctx.panel,
@@ -30545,11 +30595,11 @@ and ensure you are accounting for this risk.
30545
30595
  };
30546
30596
  }
30547
30597
  });
30548
- const _hoisted_1$l = {
30598
+ const _hoisted_1$n = {
30549
30599
  key: 0,
30550
30600
  class: "lupa-results-additional-panels"
30551
30601
  };
30552
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
30602
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
30553
30603
  __name: "AdditionalPanels",
30554
30604
  props: {
30555
30605
  options: {},
@@ -30566,9 +30616,9 @@ and ensure you are accounting for this risk.
30566
30616
  return locationPanels.value.length > 0;
30567
30617
  });
30568
30618
  return (_ctx, _cache) => {
30569
- return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$l, [
30619
+ return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$n, [
30570
30620
  (openBlock(true), createElementBlock(Fragment, null, renderList(locationPanels.value, (panel) => {
30571
- return openBlock(), createBlock(_sfc_main$o, {
30621
+ return openBlock(), createBlock(_sfc_main$q, {
30572
30622
  key: panel.queryKey,
30573
30623
  panel,
30574
30624
  options: _ctx.sdkOptions
@@ -30585,29 +30635,29 @@ and ensure you are accounting for this risk.
30585
30635
  }
30586
30636
  return target;
30587
30637
  };
30588
- const _sfc_main$m = {};
30589
- const _hoisted_1$k = { class: "lupa-spinner-wrapper" };
30590
- const _hoisted_2$g = { class: "lupa-spinner" };
30638
+ const _sfc_main$o = {};
30639
+ const _hoisted_1$m = { class: "lupa-spinner-wrapper" };
30640
+ const _hoisted_2$i = { class: "lupa-spinner" };
30591
30641
  function _sfc_render(_ctx, _cache) {
30592
- return openBlock(), createElementBlock("div", _hoisted_1$k, [
30593
- createBaseVNode("div", _hoisted_2$g, [
30642
+ return openBlock(), createElementBlock("div", _hoisted_1$m, [
30643
+ createBaseVNode("div", _hoisted_2$i, [
30594
30644
  (openBlock(), createElementBlock(Fragment, null, renderList(12, (x2) => {
30595
30645
  return createBaseVNode("div", { key: x2 });
30596
30646
  }), 64))
30597
30647
  ])
30598
30648
  ]);
30599
30649
  }
30600
- const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render]]);
30601
- const _hoisted_1$j = {
30650
+ const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render]]);
30651
+ const _hoisted_1$l = {
30602
30652
  id: "lupa-search-results-similar-results",
30603
30653
  "data-cy": "lupa-search-results-similar-results"
30604
30654
  };
30605
- const _hoisted_2$f = { class: "lupa-similar-results-label" };
30606
- const _hoisted_3$a = {
30655
+ const _hoisted_2$h = { class: "lupa-similar-results-label" };
30656
+ const _hoisted_3$c = {
30607
30657
  class: "lupa-products",
30608
30658
  "data-cy": "lupa-products"
30609
30659
  };
30610
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
30660
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
30611
30661
  __name: "SearchResultsSimilarResults",
30612
30662
  props: {
30613
30663
  columnSize: {},
@@ -30628,11 +30678,11 @@ and ensure you are accounting for this risk.
30628
30678
  };
30629
30679
  });
30630
30680
  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, [
30681
+ return openBlock(), createElementBlock("div", _hoisted_1$l, [
30682
+ createBaseVNode("div", _hoisted_2$h, toDisplayString(_ctx.labels.similarResultsLabel), 1),
30683
+ createBaseVNode("div", _hoisted_3$c, [
30634
30684
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarResults.value.items, (product, index) => {
30635
- return openBlock(), createBlock(_sfc_main$q, {
30685
+ return openBlock(), createBlock(_sfc_main$s, {
30636
30686
  style: normalizeStyle(_ctx.columnSize),
30637
30687
  key: getDocumentKey(index, product),
30638
30688
  product,
@@ -30745,20 +30795,23 @@ and ensure you are accounting for this risk.
30745
30795
  return [];
30746
30796
  });
30747
30797
  const extractRelatedSource = (source, searchResults2, options, activeFilters) => __async2(void 0, null, function* () {
30798
+ if (!source) {
30799
+ return [];
30800
+ }
30748
30801
  switch (source.type) {
30749
30802
  case RelatedQuerySourceType.FACETS:
30750
30803
  return extractFacetsRelatedSource(source, searchResults2, options, activeFilters);
30751
30804
  }
30752
30805
  });
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 = {
30806
+ const _hoisted_1$k = { class: "lupa-related-query-item" };
30807
+ const _hoisted_2$g = { class: "lupa-related-query-image" };
30808
+ const _hoisted_3$b = { class: "lupa-related-query-label" };
30809
+ const _hoisted_4$5 = { class: "lupa-related-query-title" };
30810
+ const _hoisted_5$3 = {
30758
30811
  key: 0,
30759
30812
  class: "lupa-related-query-count"
30760
30813
  };
30761
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
30814
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
30762
30815
  __name: "RelatedQueryPanel",
30763
30816
  props: {
30764
30817
  query: {},
@@ -30853,9 +30906,9 @@ and ensure you are accounting for this risk.
30853
30906
  });
30854
30907
  return (_ctx, _cache) => {
30855
30908
  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, {
30909
+ return openBlock(), createElementBlock("div", _hoisted_1$k, [
30910
+ createBaseVNode("div", _hoisted_2$g, [
30911
+ itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1p, {
30859
30912
  key: 0,
30860
30913
  "wrapper-class": "lupa-related-query-image-wrapper",
30861
30914
  "image-class": "lupa-related-query-image",
@@ -30863,24 +30916,24 @@ and ensure you are accounting for this risk.
30863
30916
  options: image.value
30864
30917
  }, null, 8, ["item", "options"])) : createCommentVNode("", true)
30865
30918
  ]),
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)
30919
+ createBaseVNode("div", _hoisted_3$b, [
30920
+ createBaseVNode("span", _hoisted_4$5, toDisplayString(_ctx.query), 1),
30921
+ ((_a = _ctx.options) == null ? void 0 : _a.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$3, "(" + toDisplayString(totalItemCount.value) + ")", 1)) : createCommentVNode("", true)
30869
30922
  ])
30870
30923
  ]);
30871
30924
  };
30872
30925
  }
30873
30926
  });
30874
- const _hoisted_1$h = {
30927
+ const _hoisted_1$j = {
30875
30928
  key: 0,
30876
30929
  class: "lupa-related-queries"
30877
30930
  };
30878
- const _hoisted_2$d = {
30931
+ const _hoisted_2$f = {
30879
30932
  key: 0,
30880
30933
  class: "lupa-related-queries-title"
30881
30934
  };
30882
- const _hoisted_3$8 = ["onClick"];
30883
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
30935
+ const _hoisted_3$a = ["onClick"];
30936
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
30884
30937
  __name: "RelatedQueries",
30885
30938
  props: {
30886
30939
  options: {}
@@ -30892,7 +30945,7 @@ and ensure you are accounting for this risk.
30892
30945
  const optionsStore = useOptionsStore();
30893
30946
  const { searchResult, lastResultsSource } = storeToRefs(searchResultStore);
30894
30947
  const { searchResultOptions } = storeToRefs(optionsStore);
30895
- const relatedQueries = ref([]);
30948
+ const relatedQueries2 = ref([]);
30896
30949
  const allDisplayItems = ref({});
30897
30950
  const querySourceResultMap = ref({});
30898
30951
  const currentSearchText = computed(() => {
@@ -30915,27 +30968,31 @@ and ensure you are accounting for this risk.
30915
30968
  }
30916
30969
  return filters;
30917
30970
  });
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
- }));
30971
+ watch(
30972
+ searchResult,
30973
+ () => __async2(this, null, function* () {
30974
+ var _a;
30975
+ allDisplayItems.value = {};
30976
+ querySourceResultMap.value = {};
30977
+ if (((_a = searchResult.value) == null ? void 0 : _a.searchText) === void 0 || lastResultsSource.value !== "items") {
30978
+ return;
30979
+ }
30980
+ if (!props.options || !searchResult.value) {
30981
+ relatedQueries2.value = [];
30982
+ }
30983
+ const queries = yield extractRelatedSource(
30984
+ props.options.source,
30985
+ searchResult.value,
30986
+ searchResultOptions.value.options,
30987
+ currentFiltersWithoutQuerySources.value
30988
+ );
30989
+ relatedQueries2.value = queries;
30990
+ }),
30991
+ { immediate: true }
30992
+ );
30936
30993
  const hasEnoughRelatedQueries = computed(() => {
30937
30994
  var _a;
30938
- return ((_a = relatedQueries.value) == null ? void 0 : _a.length) > 1;
30995
+ return ((_a = relatedQueries2.value) == null ? void 0 : _a.length) > 1;
30939
30996
  });
30940
30997
  const handleRelatedQueryClick = (query) => {
30941
30998
  var _a;
@@ -30970,10 +31027,10 @@ and ensure you are accounting for this risk.
30970
31027
  };
30971
31028
  return (_ctx, _cache) => {
30972
31029
  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),
31030
+ return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$j, [
31031
+ ((_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
31032
  createBaseVNode("ul", null, [
30976
- (openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries.value, (query) => {
31033
+ (openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries2.value, (query) => {
30977
31034
  return withDirectives((openBlock(), createElementBlock("li", {
30978
31035
  key: query.value + query.key + currentSearchText.value,
30979
31036
  class: normalizeClass(getSelectedFilterClass(query))
@@ -30981,14 +31038,14 @@ and ensure you are accounting for this risk.
30981
31038
  createBaseVNode("a", {
30982
31039
  onClick: ($event) => handleRelatedQueryClick(query)
30983
31040
  }, [
30984
- createVNode(_sfc_main$k, {
31041
+ createVNode(_sfc_main$m, {
30985
31042
  "source-key": query.key,
30986
31043
  options: _ctx.options,
30987
31044
  query: query.value,
30988
31045
  "existing-items-from-other-queries": allDisplayItems.value,
30989
31046
  onLoaded: (item) => processLoadedItem(query, item)
30990
31047
  }, null, 8, ["source-key", "options", "query", "existing-items-from-other-queries", "onLoaded"])
30991
- ], 8, _hoisted_3$8)
31048
+ ], 8, _hoisted_3$a)
30992
31049
  ], 2)), [
30993
31050
  [vShow, querySourceResultMap.value[query.value] !== false]
30994
31051
  ]);
@@ -31025,13 +31082,13 @@ and ensure you are accounting for this risk.
31025
31082
  }
31026
31083
  return null;
31027
31084
  };
31028
- const _hoisted_1$g = {
31085
+ const _hoisted_1$i = {
31029
31086
  key: 0,
31030
31087
  class: "lupa-redirection-suggestion"
31031
31088
  };
31032
- const _hoisted_2$c = { class: "lupa-redirections-suggestion-label" };
31033
- const _hoisted_3$7 = ["href"];
31034
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
31089
+ const _hoisted_2$e = { class: "lupa-redirections-suggestion-label" };
31090
+ const _hoisted_3$9 = ["href"];
31091
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
31035
31092
  __name: "RedirectionSuggestions",
31036
31093
  props: {
31037
31094
  options: {}
@@ -31054,19 +31111,19 @@ and ensure you are accounting for this risk.
31054
31111
  )
31055
31112
  );
31056
31113
  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)
31114
+ return redirectionSuggestion.value && label.value && link.value ? (openBlock(), createElementBlock("div", _hoisted_1$i, [
31115
+ createBaseVNode("h4", _hoisted_2$e, [
31116
+ createBaseVNode("a", { href: link.value }, toDisplayString(label.value), 9, _hoisted_3$9)
31060
31117
  ])
31061
31118
  ])) : createCommentVNode("", true);
31062
31119
  };
31063
31120
  }
31064
31121
  });
31065
- const _hoisted_1$f = {
31122
+ const _hoisted_1$h = {
31066
31123
  key: 0,
31067
31124
  class: "lupa-refiners-loading-notice"
31068
31125
  };
31069
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
31126
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
31070
31127
  __name: "RefinersLoadingNotice",
31071
31128
  props: {
31072
31129
  labels: {}
@@ -31077,13 +31134,155 @@ and ensure you are accounting for this risk.
31077
31134
  const { loadingRefiners } = storeToRefs(searchResultStore);
31078
31135
  const label = computed(() => props.labels.refinersLoadingNotice);
31079
31136
  return (_ctx, _cache) => {
31080
- return label.value && unref(loadingRefiners) ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
31137
+ return label.value && unref(loadingRefiners) ? (openBlock(), createElementBlock("div", _hoisted_1$h, [
31081
31138
  createBaseVNode("p", null, toDisplayString(label.value), 1),
31082
31139
  createVNode(Spinner)
31083
31140
  ])) : createCommentVNode("", true);
31084
31141
  };
31085
31142
  }
31086
31143
  });
31144
+ const _hoisted_1$g = { class: "lupa-related-query-item" };
31145
+ const _hoisted_2$d = { class: "lupa-related-query-image" };
31146
+ const _hoisted_3$8 = { class: "lupa-related-query-label" };
31147
+ const _hoisted_4$4 = { class: "lupa-related-query-title" };
31148
+ const _hoisted_5$2 = {
31149
+ key: 0,
31150
+ class: "lupa-related-query-count"
31151
+ };
31152
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
31153
+ __name: "RelatedQueryPanelApi",
31154
+ props: {
31155
+ relatedQuery: {},
31156
+ options: {}
31157
+ },
31158
+ setup(__props) {
31159
+ const props = __props;
31160
+ const itemToDisplay = computed(() => {
31161
+ var _a;
31162
+ return (_a = props.relatedQuery.topItems) == null ? void 0 : _a[0];
31163
+ });
31164
+ const optionsStore = useOptionsStore();
31165
+ const { searchResultOptions } = storeToRefs(optionsStore);
31166
+ const mainImage = computed(() => {
31167
+ var _a, _b, _c;
31168
+ return (_c = (_b = (_a = searchResultOptions.value) == null ? void 0 : _a.elements) == null ? void 0 : _b.find((e2) => e2.type === DocumentElementType.IMAGE)) != null ? _c : "";
31169
+ });
31170
+ const image = computed(() => {
31171
+ var _a, _b, _c;
31172
+ return (_c = (_b = (_a = props.options) == null ? void 0 : _a.image) != null ? _b : mainImage == null ? void 0 : mainImage.value) != null ? _c : "";
31173
+ });
31174
+ const query = computed(() => {
31175
+ var _a;
31176
+ return props.relatedQuery.action === "FILTER" ? props.relatedQuery.filterValue : (_a = props.relatedQuery.query) != null ? _a : "";
31177
+ });
31178
+ const totalItemCount = computed(() => {
31179
+ var _a;
31180
+ return (_a = props.relatedQuery.total) != null ? _a : 0;
31181
+ });
31182
+ return (_ctx, _cache) => {
31183
+ var _a;
31184
+ return openBlock(), createElementBlock("div", _hoisted_1$g, [
31185
+ createBaseVNode("div", _hoisted_2$d, [
31186
+ itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1p, {
31187
+ key: 0,
31188
+ "wrapper-class": "lupa-related-query-image-wrapper",
31189
+ "image-class": "lupa-related-query-image",
31190
+ item: itemToDisplay.value,
31191
+ options: image.value
31192
+ }, null, 8, ["item", "options"])) : createCommentVNode("", true)
31193
+ ]),
31194
+ createBaseVNode("div", _hoisted_3$8, [
31195
+ createBaseVNode("span", _hoisted_4$4, toDisplayString(query.value), 1),
31196
+ ((_a = _ctx.options) == null ? void 0 : _a.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$2, "(" + toDisplayString(totalItemCount.value) + ")", 1)) : createCommentVNode("", true)
31197
+ ])
31198
+ ]);
31199
+ };
31200
+ }
31201
+ });
31202
+ const _hoisted_1$f = {
31203
+ key: 0,
31204
+ class: "lupa-related-queries"
31205
+ };
31206
+ const _hoisted_2$c = {
31207
+ key: 0,
31208
+ class: "lupa-related-queries-title"
31209
+ };
31210
+ const _hoisted_3$7 = ["onClick"];
31211
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
31212
+ __name: "RelatedQueriesApi",
31213
+ props: {
31214
+ options: {}
31215
+ },
31216
+ setup(__props) {
31217
+ const props = __props;
31218
+ const searchResultStore = useSearchResultStore();
31219
+ const paramsStore = useParamsStore();
31220
+ const optionsStore = useOptionsStore();
31221
+ const { searchResult, relatedQueriesResult } = storeToRefs(searchResultStore);
31222
+ const relatedQueries2 = computed(() => {
31223
+ var _a, _b, _c, _d;
31224
+ const allQueries = (_b = (_a = relatedQueriesResult.value) == null ? void 0 : _a.relatedQueries) != null ? _b : [];
31225
+ return ((_d = (_c = props.options) == null ? void 0 : _c.source) == null ? void 0 : _d.count) ? allQueries.slice(0, props.options.source.count) : allQueries;
31226
+ });
31227
+ const currentSearchText = computed(() => {
31228
+ var _a, _b;
31229
+ return (_b = (_a = searchResult.value) == null ? void 0 : _a.searchText) != null ? _b : "";
31230
+ });
31231
+ const hasEnoughRelatedQueries = computed(() => {
31232
+ var _a;
31233
+ return ((_a = relatedQueries2.value) == null ? void 0 : _a.length) > 1;
31234
+ });
31235
+ const handleRelatedQueryClick = (relatedQuery) => {
31236
+ if (relatedQuery.action === "FILTER") {
31237
+ handleFilter({ key: relatedQuery.facetKey, value: relatedQuery.filterValue });
31238
+ } else {
31239
+ paramsStore.goToResults({ searchText: relatedQuery.query });
31240
+ }
31241
+ };
31242
+ const handleFilter = (query) => {
31243
+ var _a;
31244
+ toggleTermFilter(
31245
+ paramsStore.appendParams,
31246
+ { type: "terms", key: query.key, value: query.value },
31247
+ optionsStore.getQueryParamName,
31248
+ {},
31249
+ (_a = relatedQueries2.value) == null ? void 0 : _a.map((q) => `f.${q.facetKey}`)
31250
+ );
31251
+ };
31252
+ const getSelectedFilterClass = (relatedQuery) => {
31253
+ var _a, _b, _c, _d, _e;
31254
+ if (relatedQuery.action !== "FILTER") {
31255
+ return "";
31256
+ }
31257
+ 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(
31258
+ relatedQuery.filterValue
31259
+ )) ? "lupa-selected-related-query-filter" : "";
31260
+ };
31261
+ return (_ctx, _cache) => {
31262
+ var _a, _b, _c, _d;
31263
+ return hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
31264
+ ((_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),
31265
+ createBaseVNode("ul", null, [
31266
+ (openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries2.value, (query) => {
31267
+ return openBlock(), createElementBlock("li", {
31268
+ key: query.query + query.facetKey + query.filterValue + currentSearchText.value,
31269
+ class: normalizeClass(getSelectedFilterClass(query))
31270
+ }, [
31271
+ createBaseVNode("a", {
31272
+ onClick: ($event) => handleRelatedQueryClick(query)
31273
+ }, [
31274
+ createVNode(_sfc_main$i, {
31275
+ relatedQuery: query,
31276
+ options: _ctx.options
31277
+ }, null, 8, ["relatedQuery", "options"])
31278
+ ], 8, _hoisted_3$7)
31279
+ ], 2);
31280
+ }), 128))
31281
+ ])
31282
+ ])) : createCommentVNode("", true);
31283
+ };
31284
+ }
31285
+ });
31087
31286
  const _hoisted_1$e = { id: "lupa-search-results-products" };
31088
31287
  const _hoisted_2$b = {
31089
31288
  class: "lupa-products",
@@ -31095,12 +31294,12 @@ and ensure you are accounting for this risk.
31095
31294
  "data-cy": "lupa-no-results-in-page"
31096
31295
  };
31097
31296
  const _hoisted_4$3 = {
31098
- key: 4,
31297
+ key: 5,
31099
31298
  class: "lupa-empty-results",
31100
31299
  "data-cy": "lupa-no-results"
31101
31300
  };
31102
- const _hoisted_5$1 = { key: 5 };
31103
- const _hoisted_6$1 = { key: 6 };
31301
+ const _hoisted_5$1 = { key: 6 };
31302
+ const _hoisted_6$1 = { key: 7 };
31104
31303
  const _sfc_main$g = /* @__PURE__ */ defineComponent({
31105
31304
  __name: "SearchResultsProducts",
31106
31305
  props: {
@@ -31121,7 +31320,8 @@ and ensure you are accounting for this risk.
31121
31320
  columnCount,
31122
31321
  searchResult,
31123
31322
  layout,
31124
- loading
31323
+ loading,
31324
+ relatedQueriesApiEnabled
31125
31325
  } = storeToRefs(searchResultStore);
31126
31326
  const productCardOptions = computed(() => {
31127
31327
  return pick(props.options, [
@@ -31202,6 +31402,13 @@ and ensure you are accounting for this risk.
31202
31402
  _lupaUpdatedQuery: searchResult.value.suggestedSearchText
31203
31403
  } : void 0;
31204
31404
  });
31405
+ const showLocalRelatedQueries = computed(() => {
31406
+ var _a;
31407
+ return Boolean(((_a = props.options.relatedQueries) == null ? void 0 : _a.source) && relatedQueriesApiEnabled.value === false);
31408
+ });
31409
+ const showApiRelatedQueries = computed(() => {
31410
+ return Boolean(relatedQueriesApiEnabled.value === true) && Boolean(props.options.relatedQueries);
31411
+ });
31205
31412
  const getProductKeyAction = (index, product) => {
31206
31413
  return getProductKey(`${index}`, product, props.options.idKey);
31207
31414
  };
@@ -31220,31 +31427,35 @@ and ensure you are accounting for this risk.
31220
31427
  key: 0,
31221
31428
  class: "lupa-loader"
31222
31429
  })) : createCommentVNode("", true),
31223
- createVNode(_sfc_main$i, {
31430
+ createVNode(_sfc_main$k, {
31224
31431
  options: _ctx.options.redirectionSuggestions
31225
31432
  }, null, 8, ["options"]),
31226
- createVNode(_sfc_main$n, {
31433
+ createVNode(_sfc_main$p, {
31227
31434
  options: _ctx.options,
31228
31435
  location: "top",
31229
31436
  sdkOptions: _ctx.options.options
31230
31437
  }, null, 8, ["options", "sdkOptions"]),
31231
- _ctx.options.relatedQueries ? (openBlock(), createBlock(_sfc_main$j, {
31438
+ showLocalRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$l, {
31232
31439
  key: 1,
31233
31440
  options: _ctx.options.relatedQueries
31234
31441
  }, null, 8, ["options"])) : createCommentVNode("", true),
31235
- unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
31236
- showTopFilters.value ? (openBlock(), createBlock(_sfc_main$J, {
31442
+ showApiRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$h, {
31443
+ key: 2,
31444
+ options: _ctx.options.relatedQueries
31445
+ }, null, 8, ["options"])) : createCommentVNode("", true),
31446
+ unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
31447
+ showTopFilters.value ? (openBlock(), createBlock(_sfc_main$L, {
31237
31448
  key: 0,
31238
31449
  options: (_a = _ctx.options.filters) != null ? _a : {}
31239
31450
  }, null, 8, ["options"])) : createCommentVNode("", true),
31240
- showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$C, {
31451
+ showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$E, {
31241
31452
  key: 1,
31242
31453
  class: "lupa-toolbar-mobile",
31243
31454
  options: _ctx.options,
31244
31455
  "pagination-location": "top",
31245
31456
  onFilter: filter2
31246
31457
  }, null, 8, ["options"])) : createCommentVNode("", true),
31247
- currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$X, {
31458
+ currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$Z, {
31248
31459
  key: 2,
31249
31460
  class: normalizeClass(currentFiltersClass.value),
31250
31461
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -31252,13 +31463,13 @@ and ensure you are accounting for this risk.
31252
31463
  expandable: !desktopFiltersExpanded.value
31253
31464
  }, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true)
31254
31465
  ], 64)) : createCommentVNode("", true),
31255
- unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
31256
- createVNode(_sfc_main$C, {
31466
+ unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [
31467
+ createVNode(_sfc_main$E, {
31257
31468
  class: "lupa-toolbar-top",
31258
31469
  options: _ctx.options,
31259
31470
  "pagination-location": "top"
31260
31471
  }, null, 8, ["options"]),
31261
- currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$X, {
31472
+ currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$Z, {
31262
31473
  key: 0,
31263
31474
  class: normalizeClass(currentFiltersClass.value),
31264
31475
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -31274,7 +31485,7 @@ and ensure you are accounting for this risk.
31274
31485
  options: productCardOptions.value
31275
31486
  });
31276
31487
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
31277
- return openBlock(), createBlock(_sfc_main$q, {
31488
+ return openBlock(), createBlock(_sfc_main$s, {
31278
31489
  style: normalizeStyle(columnSize.value),
31279
31490
  key: getProductKeyAction(index, product),
31280
31491
  product,
@@ -31291,12 +31502,12 @@ and ensure you are accounting for this risk.
31291
31502
  onClick: goToFirstPage
31292
31503
  }, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
31293
31504
  ])) : createCommentVNode("", true),
31294
- createVNode(_sfc_main$C, {
31505
+ createVNode(_sfc_main$E, {
31295
31506
  class: "lupa-toolbar-bottom",
31296
31507
  options: _ctx.options,
31297
31508
  "pagination-location": "bottom"
31298
31509
  }, null, 8, ["options"]),
31299
- createVNode(_sfc_main$n, {
31510
+ createVNode(_sfc_main$p, {
31300
31511
  options: _ctx.options,
31301
31512
  location: "bottom",
31302
31513
  sdkOptions: _ctx.options.options
@@ -31305,18 +31516,18 @@ and ensure you are accounting for this risk.
31305
31516
  createTextVNode(toDisplayString(_ctx.options.labels.emptyResults) + " ", 1),
31306
31517
  createBaseVNode("span", null, toDisplayString(unref(currentQueryText)), 1)
31307
31518
  ])) : createCommentVNode("", true),
31308
- createVNode(_sfc_main$h, {
31519
+ createVNode(_sfc_main$j, {
31309
31520
  labels: _ctx.options.labels
31310
31521
  }, null, 8, ["labels"]),
31311
31522
  hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
31312
- createVNode(_sfc_main$p, {
31523
+ createVNode(_sfc_main$r, {
31313
31524
  labels: similarQueriesLabels.value,
31314
31525
  columnSize: columnSize.value,
31315
31526
  productCardOptions: productCardOptions.value
31316
31527
  }, null, 8, ["labels", "columnSize", "productCardOptions"])
31317
31528
  ])) : createCommentVNode("", true),
31318
31529
  hasSimilarResults.value ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
31319
- createVNode(_sfc_main$l, {
31530
+ createVNode(_sfc_main$n, {
31320
31531
  labels: similarResultsLabels.value,
31321
31532
  columnSize: columnSize.value,
31322
31533
  productCardOptions: productCardOptions.value
@@ -31395,14 +31606,14 @@ and ensure you are accounting for this risk.
31395
31606
  ])) : createCommentVNode("", true),
31396
31607
  hasRelatedCategoryChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$2, [
31397
31608
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
31398
- return openBlock(), createBlock(_sfc_main$W, {
31609
+ return openBlock(), createBlock(_sfc_main$Y, {
31399
31610
  key: getCategoryKey(child),
31400
31611
  item: child,
31401
31612
  options: categoryOptions.value
31402
31613
  }, null, 8, ["item", "options"]);
31403
31614
  }), 128))
31404
31615
  ])) : createCommentVNode("", true),
31405
- createVNode(_sfc_main$C, {
31616
+ createVNode(_sfc_main$E, {
31406
31617
  class: "lupa-toolbar-mobile",
31407
31618
  "pagination-location": "top",
31408
31619
  options: _ctx.options
@@ -31555,14 +31766,23 @@ and ensure you are accounting for this risk.
31555
31766
  return;
31556
31767
  }
31557
31768
  LupaSearchSdk.query(props.options.queryKey, query2, props.options.options).then((res) => {
31558
- var _a, _b;
31769
+ var _a, _b, _c;
31559
31770
  if (res.success) {
31560
31771
  handleResults({ queryKey: props.options.queryKey, results: res });
31561
31772
  searchResultStore.add(requestId, __spreadValues2({}, res));
31773
+ searchResultStore.setRelatedQueriesApiEnabled((_a = res.hasRelatedQueries) != null ? _a : false);
31774
+ if (res.hasRelatedQueries) {
31775
+ searchResultStore.queryRelatedQueries(
31776
+ props.options.queryKey,
31777
+ publicQuery,
31778
+ res,
31779
+ props.options.options
31780
+ );
31781
+ }
31562
31782
  if (props.options.splitExpensiveRequests && res.refinementThreshold >= res.total) {
31563
31783
  queryRefiners(requestId, publicQuery);
31564
31784
  }
31565
- } else if ((_b = (_a = props.options) == null ? void 0 : _a.options) == null ? void 0 : _b.onError) {
31785
+ } else if ((_c = (_b = props.options) == null ? void 0 : _b.options) == null ? void 0 : _c.onError) {
31566
31786
  props.options.options.onError(res);
31567
31787
  }
31568
31788
  }).catch((err) => {
@@ -31701,8 +31921,8 @@ and ensure you are accounting for this risk.
31701
31921
  class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
31702
31922
  }, [
31703
31923
  _ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
31704
- createVNode(_sfc_main$$, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
31705
- createVNode(_sfc_main$Z, {
31924
+ createVNode(_sfc_main$11, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
31925
+ createVNode(_sfc_main$$, {
31706
31926
  "show-summary": true,
31707
31927
  options: _ctx.options,
31708
31928
  "is-product-list": (_a = _ctx.isProductList) != null ? _a : false
@@ -31712,12 +31932,12 @@ and ensure you are accounting for this risk.
31712
31932
  key: 1,
31713
31933
  options: _ctx.options
31714
31934
  }, null, 8, ["options"])) : createCommentVNode("", true),
31715
- _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$L, {
31935
+ _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$N, {
31716
31936
  key: 2,
31717
31937
  options: _ctx.options.filters,
31718
31938
  onFilter: handleParamsChange
31719
31939
  }, null, 8, ["options"])) : createCommentVNode("", true),
31720
- unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$K, {
31940
+ unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$M, {
31721
31941
  key: 3,
31722
31942
  breadcrumbs: _ctx.options.breadcrumbs
31723
31943
  }, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
@@ -31726,7 +31946,7 @@ and ensure you are accounting for this risk.
31726
31946
  id: "lupa-search-results",
31727
31947
  class: normalizeClass(["top-layout-wrapper", indicatorClasses.value])
31728
31948
  }, [
31729
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$M, {
31949
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$O, {
31730
31950
  key: 0,
31731
31951
  options: (_b = _ctx.options.filters) != null ? _b : {},
31732
31952
  ref_key: "searchResultsFilters",
@@ -31734,8 +31954,8 @@ and ensure you are accounting for this risk.
31734
31954
  onFilter: handleParamsChange
31735
31955
  }, null, 8, ["options"])) : createCommentVNode("", true),
31736
31956
  createBaseVNode("div", _hoisted_2$9, [
31737
- createVNode(_sfc_main$$, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
31738
- createVNode(_sfc_main$Z, {
31957
+ createVNode(_sfc_main$11, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
31958
+ createVNode(_sfc_main$$, {
31739
31959
  options: _ctx.options,
31740
31960
  "is-product-list": (_c = _ctx.isProductList) != null ? _c : false
31741
31961
  }, null, 8, ["options", "is-product-list"]),
@@ -31751,8 +31971,8 @@ and ensure you are accounting for this risk.
31751
31971
  }, 8, ["options", "ssr"])
31752
31972
  ])
31753
31973
  ], 2)) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
31754
- createVNode(_sfc_main$$, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
31755
- createVNode(_sfc_main$Z, {
31974
+ createVNode(_sfc_main$11, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
31975
+ createVNode(_sfc_main$$, {
31756
31976
  options: _ctx.options,
31757
31977
  "is-product-list": (_d = _ctx.isProductList) != null ? _d : false
31758
31978
  }, null, 8, ["options", "is-product-list"]),
@@ -31760,7 +31980,7 @@ and ensure you are accounting for this risk.
31760
31980
  id: "lupa-search-results",
31761
31981
  class: normalizeClass(indicatorClasses.value)
31762
31982
  }, [
31763
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$M, {
31983
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$O, {
31764
31984
  key: 0,
31765
31985
  options: (_e = _ctx.options.filters) != null ? _e : {},
31766
31986
  ref_key: "searchResultsFilters",
@@ -31912,7 +32132,7 @@ and ensure you are accounting for this risk.
31912
32132
  onClick: withModifiers(innerClick, ["stop"])
31913
32133
  }, [
31914
32134
  createBaseVNode("div", _hoisted_2$7, [
31915
- createVNode(_sfc_main$10, {
32135
+ createVNode(_sfc_main$12, {
31916
32136
  options: fullSearchBoxOptions.value,
31917
32137
  "is-search-container": true,
31918
32138
  ref_key: "searchBox",
@@ -32811,7 +33031,7 @@ and ensure you are accounting for this risk.
32811
33031
  key: getProductKeyAction(index, product)
32812
33032
  }, {
32813
33033
  default: withCtx(() => [
32814
- createVNode(_sfc_main$q, {
33034
+ createVNode(_sfc_main$s, {
32815
33035
  product,
32816
33036
  options: _ctx.options,
32817
33037
  "click-tracking-settings": clickTrackingSettings.value,
@@ -32826,7 +33046,7 @@ and ensure you are accounting for this risk.
32826
33046
  _: 1
32827
33047
  }, 16)) : (openBlock(), createElementBlock("div", _hoisted_3$4, [
32828
33048
  (openBlock(true), createElementBlock(Fragment, null, renderList(recommendations2.value, (product, index) => {
32829
- return openBlock(), createBlock(_sfc_main$q, {
33049
+ return openBlock(), createBlock(_sfc_main$s, {
32830
33050
  style: normalizeStyle(columnSize.value),
32831
33051
  key: getProductKeyAction(index, product),
32832
33052
  product,
@@ -33091,7 +33311,7 @@ and ensure you are accounting for this risk.
33091
33311
  createBaseVNode("a", {
33092
33312
  href: getLink(product)
33093
33313
  }, [
33094
- createVNode(_sfc_main$B, {
33314
+ createVNode(_sfc_main$D, {
33095
33315
  item: product,
33096
33316
  options: image.value
33097
33317
  }, null, 8, ["item", "options"])
@@ -33255,7 +33475,7 @@ and ensure you are accounting for this risk.
33255
33475
  return (_ctx, _cache) => {
33256
33476
  return openBlock(), createElementBlock("section", _hoisted_1$3, [
33257
33477
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
33258
- return openBlock(), createBlock(_sfc_main$q, {
33478
+ return openBlock(), createBlock(_sfc_main$s, {
33259
33479
  class: "lupa-chat-product-card",
33260
33480
  key: getProductKeyAction(index, product),
33261
33481
  product,
@@ -33448,7 +33668,7 @@ and ensure you are accounting for this risk.
33448
33668
  key: 0,
33449
33669
  class: "lupasearch-chat-content"
33450
33670
  };
33451
- const _sfc_main$1w = /* @__PURE__ */ defineComponent({
33671
+ const _sfc_main$1y = /* @__PURE__ */ defineComponent({
33452
33672
  __name: "ChatContainer",
33453
33673
  props: {
33454
33674
  options: {}
@@ -39466,7 +39686,7 @@ and ensure you are accounting for this risk.
39466
39686
  };
39467
39687
  __expose({ fetch: fetch2 });
39468
39688
  return (_ctx, _cache) => {
39469
- return openBlock(), createBlock(unref(_sfc_main$10), {
39689
+ return openBlock(), createBlock(unref(_sfc_main$12), {
39470
39690
  options: fullSearchBoxOptions.value,
39471
39691
  ref_key: "searchBox",
39472
39692
  ref: searchBox2
@@ -40102,7 +40322,7 @@ and ensure you are accounting for this risk.
40102
40322
  const instance = createVue(
40103
40323
  options.displayOptions.containerSelector,
40104
40324
  mountOptions == null ? void 0 : mountOptions.mountingBehavior,
40105
- _sfc_main$1w,
40325
+ _sfc_main$1y,
40106
40326
  {
40107
40327
  options
40108
40328
  }