@getlupa/client 1.17.13 → 1.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6955,6 +6955,15 @@ var __async = (__this, __arguments, generator) => {
6955
6955
  const errors = yield res.json();
6956
6956
  return { success: false, errors };
6957
6957
  });
6958
+ const relatedQueries = (queryKey, query, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
6959
+ const res = yield fetch(`${getApiUrl$1(environment, customBaseUrl)}query/${queryKey}/related`, Object.assign(Object.assign({}, defaultConfig), { body: JSON.stringify(query) }));
6960
+ if (res.status < 400) {
6961
+ const data = yield res.json();
6962
+ return Object.assign(Object.assign({}, data), { success: true });
6963
+ }
6964
+ const errors = yield res.json();
6965
+ return { success: false, errors };
6966
+ });
6958
6967
  const queryByIds = (queryKey, ids, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
6959
6968
  const idParam = ids.map((id) => `ids=${id}`).join("&");
6960
6969
  const res = yield fetch(`${getApiUrl$1(environment, customBaseUrl)}query/${queryKey}/ids?${idParam}`, Object.assign(Object.assign({}, defaultConfig), { method: "GET" }));
@@ -7036,6 +7045,9 @@ var __async = (__this, __arguments, generator) => {
7036
7045
  queryRefiners: (queryKey, publicQuery, options = null) => {
7037
7046
  return refiners(queryKey, publicQuery, (options === null || options === void 0 ? void 0 : options.environment) || "production", options === null || options === void 0 ? void 0 : options.customBaseUrl);
7038
7047
  },
7048
+ queryRelated: (queryKey, publicQuery, options = null) => {
7049
+ return relatedQueries(queryKey, publicQuery, (options === null || options === void 0 ? void 0 : options.environment) || "production", options === null || options === void 0 ? void 0 : options.customBaseUrl);
7050
+ },
7039
7051
  suggestions: (queryKey, suggestionQuery, options = null) => {
7040
7052
  if (options === null || options === void 0 ? void 0 : options.customUrl) {
7041
7053
  return suggestCustom(suggestionQuery, options);
@@ -14295,11 +14307,11 @@ var __async = (__this, __arguments, generator) => {
14295
14307
  resetHighlightIndex
14296
14308
  };
14297
14309
  });
14298
- const _hoisted_1$1i = { id: "lupa-search-box-input-container" };
14299
- const _hoisted_2$T = { class: "lupa-input-clear" };
14300
- const _hoisted_3$C = { id: "lupa-search-box-input" };
14301
- const _hoisted_4$u = ["value"];
14302
- const _hoisted_5$k = ["aria-label", "placeholder"];
14310
+ const _hoisted_1$1k = { id: "lupa-search-box-input-container" };
14311
+ const _hoisted_2$V = { class: "lupa-input-clear" };
14312
+ const _hoisted_3$E = { id: "lupa-search-box-input" };
14313
+ const _hoisted_4$v = ["value"];
14314
+ const _hoisted_5$l = ["aria-label", "placeholder"];
14303
14315
  const _hoisted_6$9 = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
14304
14316
  const _hoisted_7$7 = [
14305
14317
  _hoisted_6$9
@@ -14308,7 +14320,7 @@ var __async = (__this, __arguments, generator) => {
14308
14320
  key: 0,
14309
14321
  class: "lupa-close-label"
14310
14322
  };
14311
- const _sfc_main$1v = /* @__PURE__ */ defineComponent({
14323
+ const _sfc_main$1x = /* @__PURE__ */ defineComponent({
14312
14324
  __name: "SearchBoxInput",
14313
14325
  props: {
14314
14326
  options: {},
@@ -14392,20 +14404,20 @@ var __async = (__this, __arguments, generator) => {
14392
14404
  };
14393
14405
  __expose({ focus });
14394
14406
  return (_ctx, _cache) => {
14395
- return openBlock(), createElementBlock("div", _hoisted_1$1i, [
14396
- createBaseVNode("div", _hoisted_2$T, [
14407
+ return openBlock(), createElementBlock("div", _hoisted_1$1k, [
14408
+ createBaseVNode("div", _hoisted_2$V, [
14397
14409
  createBaseVNode("div", {
14398
14410
  class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
14399
14411
  onClick: clear2
14400
14412
  }, null, 2)
14401
14413
  ]),
14402
- createBaseVNode("div", _hoisted_3$C, [
14414
+ createBaseVNode("div", _hoisted_3$E, [
14403
14415
  createBaseVNode("input", {
14404
14416
  class: "lupa-hint",
14405
14417
  "aria-hidden": "true",
14406
14418
  value: showHint.value ? suggestedValue.value.item.suggestion : "",
14407
14419
  disabled: ""
14408
- }, null, 8, _hoisted_4$u),
14420
+ }, null, 8, _hoisted_4$v),
14409
14421
  withDirectives(createBaseVNode("input", mergeProps({
14410
14422
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
14411
14423
  }, inputAttributes.value, {
@@ -14419,7 +14431,7 @@ var __async = (__this, __arguments, generator) => {
14419
14431
  placeholder: labels.value.placeholder,
14420
14432
  onInput: handleInput,
14421
14433
  onFocus: handleFocus
14422
- }), null, 16, _hoisted_5$k), [
14434
+ }), null, 16, _hoisted_5$l), [
14423
14435
  [vModelText, inputValue.value]
14424
14436
  ]),
14425
14437
  _ctx.options.showSubmitButton ? (openBlock(), createElementBlock("button", {
@@ -14438,7 +14450,7 @@ var __async = (__this, __arguments, generator) => {
14438
14450
  };
14439
14451
  }
14440
14452
  });
14441
- const _sfc_main$1u = /* @__PURE__ */ defineComponent({
14453
+ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
14442
14454
  __name: "SearchBoxMoreResults",
14443
14455
  props: {
14444
14456
  labels: {},
@@ -14475,9 +14487,9 @@ var __async = (__this, __arguments, generator) => {
14475
14487
  };
14476
14488
  }
14477
14489
  });
14478
- const _hoisted_1$1h = { class: "lupa-search-box-history-item" };
14479
- const _hoisted_2$S = { class: "lupa-search-box-history-item-content" };
14480
- const _sfc_main$1t = /* @__PURE__ */ defineComponent({
14490
+ const _hoisted_1$1j = { class: "lupa-search-box-history-item" };
14491
+ const _hoisted_2$U = { class: "lupa-search-box-history-item-content" };
14492
+ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
14481
14493
  __name: "SearchBoxHistoryItem",
14482
14494
  props: {
14483
14495
  item: {},
@@ -14493,8 +14505,8 @@ var __async = (__this, __arguments, generator) => {
14493
14505
  emit2("click", { query: props.item });
14494
14506
  };
14495
14507
  return (_ctx, _cache) => {
14496
- return openBlock(), createElementBlock("div", _hoisted_1$1h, [
14497
- createBaseVNode("div", _hoisted_2$S, [
14508
+ return openBlock(), createElementBlock("div", _hoisted_1$1j, [
14509
+ createBaseVNode("div", _hoisted_2$U, [
14498
14510
  createBaseVNode("div", {
14499
14511
  class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
14500
14512
  onClick: click2
@@ -14508,11 +14520,11 @@ var __async = (__this, __arguments, generator) => {
14508
14520
  };
14509
14521
  }
14510
14522
  });
14511
- const _hoisted_1$1g = {
14523
+ const _hoisted_1$1i = {
14512
14524
  key: 0,
14513
14525
  class: "lupa-search-box-history-panel"
14514
14526
  };
14515
- const _sfc_main$1s = /* @__PURE__ */ defineComponent({
14527
+ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
14516
14528
  __name: "SearchBoxHistoryPanel",
14517
14529
  props: {
14518
14530
  options: {}
@@ -14562,9 +14574,9 @@ var __async = (__this, __arguments, generator) => {
14562
14574
  }
14563
14575
  };
14564
14576
  return (_ctx, _cache) => {
14565
- return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1g, [
14577
+ return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1i, [
14566
14578
  (openBlock(true), createElementBlock(Fragment, null, renderList(limitedHistory.value, (item, index) => {
14567
- return openBlock(), createBlock(_sfc_main$1t, {
14579
+ return openBlock(), createBlock(_sfc_main$1v, {
14568
14580
  key: item,
14569
14581
  item,
14570
14582
  highlighted: index === highlightIndex.value,
@@ -14580,15 +14592,15 @@ var __async = (__this, __arguments, generator) => {
14580
14592
  };
14581
14593
  }
14582
14594
  });
14583
- const _hoisted_1$1f = { class: "lupa-search-box-no-results" };
14584
- const _sfc_main$1r = /* @__PURE__ */ defineComponent({
14595
+ const _hoisted_1$1h = { class: "lupa-search-box-no-results" };
14596
+ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
14585
14597
  __name: "SearchBoxNoResults",
14586
14598
  props: {
14587
14599
  labels: {}
14588
14600
  },
14589
14601
  setup(__props) {
14590
14602
  return (_ctx, _cache) => {
14591
- return openBlock(), createElementBlock("p", _hoisted_1$1f, toDisplayString(_ctx.labels.noResults), 1);
14603
+ return openBlock(), createElementBlock("p", _hoisted_1$1h, toDisplayString(_ctx.labels.noResults), 1);
14592
14604
  };
14593
14605
  }
14594
14606
  });
@@ -14620,26 +14632,26 @@ var __async = (__this, __arguments, generator) => {
14620
14632
  }
14621
14633
  return gridTemplate.join(" ");
14622
14634
  };
14623
- const _hoisted_1$1e = ["innerHTML"];
14624
- const _hoisted_2$R = {
14635
+ const _hoisted_1$1g = ["innerHTML"];
14636
+ const _hoisted_2$T = {
14625
14637
  key: 1,
14626
14638
  "data-cy": "lupa-suggestion-value",
14627
14639
  class: "lupa-suggestion-value"
14628
14640
  };
14629
- const _hoisted_3$B = {
14641
+ const _hoisted_3$D = {
14630
14642
  key: 2,
14631
14643
  class: "lupa-suggestion-facet",
14632
14644
  "data-cy": "lupa-suggestion-facet"
14633
14645
  };
14634
- const _hoisted_4$t = {
14646
+ const _hoisted_4$u = {
14635
14647
  class: "lupa-suggestion-facet-label",
14636
14648
  "data-cy": "lupa-suggestion-facet-label"
14637
14649
  };
14638
- const _hoisted_5$j = {
14650
+ const _hoisted_5$k = {
14639
14651
  class: "lupa-suggestion-facet-value",
14640
14652
  "data-cy": "lupa-suggestion-facet-value"
14641
14653
  };
14642
- const _sfc_main$1q = /* @__PURE__ */ defineComponent({
14654
+ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
14643
14655
  __name: "SearchBoxSuggestion",
14644
14656
  props: {
14645
14657
  suggestion: {},
@@ -14675,20 +14687,20 @@ var __async = (__this, __arguments, generator) => {
14675
14687
  class: "lupa-suggestion-value",
14676
14688
  "data-cy": "lupa-suggestion-value",
14677
14689
  innerHTML: _ctx.suggestion.displayHighlight
14678
- }, null, 8, _hoisted_1$1e)) : (openBlock(), createElementBlock("div", _hoisted_2$R, toDisplayString(_ctx.suggestion.display), 1)),
14679
- _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$B, [
14680
- createBaseVNode("span", _hoisted_4$t, toDisplayString(facetLabel.value), 1),
14681
- createBaseVNode("span", _hoisted_5$j, toDisplayString(_ctx.suggestion.facet.title), 1)
14690
+ }, null, 8, _hoisted_1$1g)) : (openBlock(), createElementBlock("div", _hoisted_2$T, toDisplayString(_ctx.suggestion.display), 1)),
14691
+ _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$D, [
14692
+ createBaseVNode("span", _hoisted_4$u, toDisplayString(facetLabel.value), 1),
14693
+ createBaseVNode("span", _hoisted_5$k, toDisplayString(_ctx.suggestion.facet.title), 1)
14682
14694
  ])) : createCommentVNode("", true)
14683
14695
  ]);
14684
14696
  };
14685
14697
  }
14686
14698
  });
14687
- const _hoisted_1$1d = {
14699
+ const _hoisted_1$1f = {
14688
14700
  id: "lupa-search-box-suggestions",
14689
14701
  "data-cy": "lupa-search-box-suggestions"
14690
14702
  };
14691
- const _sfc_main$1p = /* @__PURE__ */ defineComponent({
14703
+ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
14692
14704
  __name: "SearchBoxSuggestions",
14693
14705
  props: {
14694
14706
  items: {},
@@ -14748,9 +14760,9 @@ var __async = (__this, __arguments, generator) => {
14748
14760
  });
14749
14761
  });
14750
14762
  return (_ctx, _cache) => {
14751
- return openBlock(), createElementBlock("div", _hoisted_1$1d, [
14763
+ return openBlock(), createElementBlock("div", _hoisted_1$1f, [
14752
14764
  (openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
14753
- return openBlock(), createBlock(_sfc_main$1q, {
14765
+ return openBlock(), createBlock(_sfc_main$1s, {
14754
14766
  key: getSuggestionKey(item),
14755
14767
  class: normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
14756
14768
  suggestion: item,
@@ -14778,7 +14790,7 @@ var __async = (__this, __arguments, generator) => {
14778
14790
  }, timeout);
14779
14791
  };
14780
14792
  };
14781
- const _sfc_main$1o = /* @__PURE__ */ defineComponent({
14793
+ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
14782
14794
  __name: "SearchBoxSuggestionsWrapper",
14783
14795
  props: {
14784
14796
  panel: {},
@@ -14820,7 +14832,7 @@ var __async = (__this, __arguments, generator) => {
14820
14832
  const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
14821
14833
  watch(() => props.panel.limit, getSuggestionsDebounced);
14822
14834
  return (_ctx, _cache) => {
14823
- return openBlock(), createBlock(_sfc_main$1p, {
14835
+ return openBlock(), createBlock(_sfc_main$1r, {
14824
14836
  items: searchResult.value,
14825
14837
  highlight: _ctx.panel.highlight,
14826
14838
  queryKey: _ctx.panel.queryKey,
@@ -23874,9 +23886,9 @@ and ensure you are accounting for this risk.
23874
23886
  targetImage.src = placeholder;
23875
23887
  }
23876
23888
  };
23877
- const _hoisted_1$1c = ["src"];
23878
- const _hoisted_2$Q = ["src"];
23879
- const _sfc_main$1n = /* @__PURE__ */ defineComponent({
23889
+ const _hoisted_1$1e = ["src"];
23890
+ const _hoisted_2$S = ["src"];
23891
+ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
23880
23892
  __name: "ProductImage",
23881
23893
  props: {
23882
23894
  item: {},
@@ -24018,7 +24030,7 @@ and ensure you are accounting for this risk.
24018
24030
  }, { alt: imageAlt.value ? imageAlt.value : void 0 }, {
24019
24031
  onError: replaceWithPlaceholder,
24020
24032
  key: finalUrl.value
24021
- }), null, 16, _hoisted_1$1c))
24033
+ }), null, 16, _hoisted_1$1e))
24022
24034
  ]),
24023
24035
  _: 1
24024
24036
  })) : (openBlock(), createElementBlock("img", mergeProps({
@@ -24026,12 +24038,12 @@ and ensure you are accounting for this risk.
24026
24038
  class: ["lupa-images-main-image", { [_ctx.imageClass]: true }],
24027
24039
  style: styleOverride.value,
24028
24040
  src: finalMainImageUrl.value
24029
- }, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$Q))
24041
+ }, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$S))
24030
24042
  ], 38);
24031
24043
  };
24032
24044
  }
24033
24045
  });
24034
- const _sfc_main$1m = /* @__PURE__ */ defineComponent({
24046
+ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
24035
24047
  __name: "SearchBoxProductImage",
24036
24048
  props: {
24037
24049
  item: {},
@@ -24039,7 +24051,7 @@ and ensure you are accounting for this risk.
24039
24051
  },
24040
24052
  setup(__props) {
24041
24053
  return (_ctx, _cache) => {
24042
- return openBlock(), createBlock(_sfc_main$1n, {
24054
+ return openBlock(), createBlock(_sfc_main$1p, {
24043
24055
  item: _ctx.item,
24044
24056
  options: _ctx.options,
24045
24057
  "wrapper-class": "lupa-search-box-image-wrapper",
@@ -24048,12 +24060,12 @@ and ensure you are accounting for this risk.
24048
24060
  };
24049
24061
  }
24050
24062
  });
24051
- const _hoisted_1$1b = ["innerHTML"];
24052
- const _hoisted_2$P = {
24063
+ const _hoisted_1$1d = ["innerHTML"];
24064
+ const _hoisted_2$R = {
24053
24065
  key: 1,
24054
24066
  class: "lupa-search-box-product-title"
24055
24067
  };
24056
- const _sfc_main$1l = /* @__PURE__ */ defineComponent({
24068
+ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
24057
24069
  __name: "SearchBoxProductTitle",
24058
24070
  props: {
24059
24071
  item: {},
@@ -24076,18 +24088,18 @@ and ensure you are accounting for this risk.
24076
24088
  key: 0,
24077
24089
  class: "lupa-search-box-product-title",
24078
24090
  innerHTML: sanitizedTitle.value
24079
- }, null, 8, _hoisted_1$1b)) : (openBlock(), createElementBlock("div", _hoisted_2$P, [
24091
+ }, null, 8, _hoisted_1$1d)) : (openBlock(), createElementBlock("div", _hoisted_2$R, [
24080
24092
  createBaseVNode("strong", null, toDisplayString(title.value), 1)
24081
24093
  ]));
24082
24094
  };
24083
24095
  }
24084
24096
  });
24085
- const _hoisted_1$1a = ["innerHTML"];
24086
- const _hoisted_2$O = {
24097
+ const _hoisted_1$1c = ["innerHTML"];
24098
+ const _hoisted_2$Q = {
24087
24099
  key: 1,
24088
24100
  class: "lupa-search-box-product-description"
24089
24101
  };
24090
- const _sfc_main$1k = /* @__PURE__ */ defineComponent({
24102
+ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
24091
24103
  __name: "SearchBoxProductDescription",
24092
24104
  props: {
24093
24105
  item: {},
@@ -24110,12 +24122,12 @@ and ensure you are accounting for this risk.
24110
24122
  key: 0,
24111
24123
  class: "lupa-search-box-product-description",
24112
24124
  innerHTML: sanitizedDescription.value
24113
- }, null, 8, _hoisted_1$1a)) : (openBlock(), createElementBlock("div", _hoisted_2$O, toDisplayString(description.value), 1));
24125
+ }, null, 8, _hoisted_1$1c)) : (openBlock(), createElementBlock("div", _hoisted_2$Q, toDisplayString(description.value), 1));
24114
24126
  };
24115
24127
  }
24116
24128
  });
24117
- const _hoisted_1$19 = { class: "lupa-search-box-product-price" };
24118
- const _sfc_main$1j = /* @__PURE__ */ defineComponent({
24129
+ const _hoisted_1$1b = { class: "lupa-search-box-product-price" };
24130
+ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
24119
24131
  __name: "SearchBoxProductPrice",
24120
24132
  props: {
24121
24133
  item: {},
@@ -24134,13 +24146,13 @@ and ensure you are accounting for this risk.
24134
24146
  );
24135
24147
  });
24136
24148
  return (_ctx, _cache) => {
24137
- return openBlock(), createElementBlock("div", _hoisted_1$19, [
24149
+ return openBlock(), createElementBlock("div", _hoisted_1$1b, [
24138
24150
  createBaseVNode("strong", null, toDisplayString(price.value), 1)
24139
24151
  ]);
24140
24152
  };
24141
24153
  }
24142
24154
  });
24143
- const _sfc_main$1i = /* @__PURE__ */ defineComponent({
24155
+ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
24144
24156
  __name: "SearchBoxProductRegularPrice",
24145
24157
  props: {
24146
24158
  item: {},
@@ -24168,12 +24180,12 @@ and ensure you are accounting for this risk.
24168
24180
  };
24169
24181
  }
24170
24182
  });
24171
- const _hoisted_1$18 = ["innerHTML"];
24172
- const _hoisted_2$N = { key: 0 };
24173
- const _hoisted_3$A = { key: 1 };
24174
- const _hoisted_4$s = { class: "lupa-search-box-custom-label" };
24175
- const _hoisted_5$i = { class: "lupa-search-box-custom-text" };
24176
- const _sfc_main$1h = /* @__PURE__ */ defineComponent({
24183
+ const _hoisted_1$1a = ["innerHTML"];
24184
+ const _hoisted_2$P = { key: 0 };
24185
+ const _hoisted_3$C = { key: 1 };
24186
+ const _hoisted_4$t = { class: "lupa-search-box-custom-label" };
24187
+ const _hoisted_5$j = { class: "lupa-search-box-custom-text" };
24188
+ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
24177
24189
  __name: "SearchBoxProductCustom",
24178
24190
  props: {
24179
24191
  item: {},
@@ -24199,20 +24211,20 @@ and ensure you are accounting for this risk.
24199
24211
  key: 0,
24200
24212
  class: [className.value, "lupa-search-box-product-custom"],
24201
24213
  innerHTML: text.value
24202
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$18)) : (openBlock(), createElementBlock("div", mergeProps({
24214
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$1a)) : (openBlock(), createElementBlock("div", mergeProps({
24203
24215
  key: 1,
24204
24216
  class: [className.value, "lupa-search-box-product-custom"]
24205
24217
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
24206
- !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$N, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$A, [
24207
- createBaseVNode("div", _hoisted_4$s, toDisplayString(label.value), 1),
24208
- createBaseVNode("div", _hoisted_5$i, toDisplayString(text.value), 1)
24218
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$C, [
24219
+ createBaseVNode("div", _hoisted_4$t, toDisplayString(label.value), 1),
24220
+ createBaseVNode("div", _hoisted_5$j, toDisplayString(text.value), 1)
24209
24221
  ]))
24210
24222
  ], 16));
24211
24223
  };
24212
24224
  }
24213
24225
  });
24214
- const _hoisted_1$17 = ["innerHTML"];
24215
- const _sfc_main$1g = /* @__PURE__ */ defineComponent({
24226
+ const _hoisted_1$19 = ["innerHTML"];
24227
+ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
24216
24228
  __name: "SearchBoxProductCustomHtml",
24217
24229
  props: {
24218
24230
  item: {},
@@ -24237,7 +24249,7 @@ and ensure you are accounting for this risk.
24237
24249
  return openBlock(), createElementBlock("div", mergeProps({
24238
24250
  class: className.value,
24239
24251
  innerHTML: text.value
24240
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$17);
24252
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$19);
24241
24253
  };
24242
24254
  }
24243
24255
  });
@@ -24294,10 +24306,13 @@ and ensure you are accounting for this risk.
24294
24306
  const loading = ref(false);
24295
24307
  const loadingFacets = ref(false);
24296
24308
  const loadingRefiners = ref(false);
24309
+ const loadingRelatedQueries = ref(false);
24297
24310
  const isMobileSidebarVisible = ref(false);
24298
24311
  const relatedCategoryChildren = ref([]);
24299
24312
  const lastRequestId = ref("");
24300
24313
  const searchRequestResults = ref({});
24314
+ const relatedQueriesResult = ref({});
24315
+ const relatedQueriesApiEnabled = ref(null);
24301
24316
  const lastResultsSource = ref(void 0);
24302
24317
  const optionsStore = useOptionsStore();
24303
24318
  const paramsStore = useParamsStore();
@@ -24451,6 +24466,9 @@ and ensure you are accounting for this risk.
24451
24466
  const screenWidth = (_a = currentScreenWidth.value) != null ? _a : "xl";
24452
24467
  columnCount.value = grid.columns[screenWidth];
24453
24468
  };
24469
+ const setRelatedQueriesApiEnabled = (enabled) => {
24470
+ relatedQueriesApiEnabled.value = enabled;
24471
+ };
24454
24472
  const setAddToCartAmount = (newAddToCartAmount) => {
24455
24473
  if (!newAddToCartAmount) {
24456
24474
  return;
@@ -24481,6 +24499,27 @@ and ensure you are accounting for this risk.
24481
24499
  const setRelatedCategoryChildren = (children) => {
24482
24500
  relatedCategoryChildren.value = [...children];
24483
24501
  };
24502
+ const queryRelatedQueries = (queryKey, publicQuery, result2, options) => __async2(void 0, null, function* () {
24503
+ var _a, _b;
24504
+ loadingRelatedQueries.value = true;
24505
+ const context = getLupaTrackingContext();
24506
+ const searchText = (_b = (_a = result2.suggestedSearchText) != null ? _a : result2.searchText) != null ? _b : "";
24507
+ const query = __spreadProps2(__spreadValues2(__spreadProps2(__spreadValues2({}, publicQuery), {
24508
+ searchText
24509
+ }), context), {
24510
+ modifiers: { facets: false, refiners: true }
24511
+ });
24512
+ LupaSearchSdk.queryRelated(queryKey, query, options).then((res) => {
24513
+ if (!res.success) {
24514
+ return;
24515
+ }
24516
+ relatedQueriesResult.value = res;
24517
+ }).catch((err) => {
24518
+ console.error(err);
24519
+ }).finally(() => {
24520
+ loadingRelatedQueries.value = false;
24521
+ });
24522
+ });
24484
24523
  return {
24485
24524
  isMobileSidebarVisible,
24486
24525
  searchResult,
@@ -24505,6 +24544,8 @@ and ensure you are accounting for this risk.
24505
24544
  hideFiltersOnExactMatchForKeys,
24506
24545
  relatedCategoryChildren,
24507
24546
  searchRequestResults,
24547
+ relatedQueriesResult,
24548
+ relatedQueriesApiEnabled,
24508
24549
  lastResultsSource,
24509
24550
  setSidebarState,
24510
24551
  queryFacet,
@@ -24517,15 +24558,17 @@ and ensure you are accounting for this risk.
24517
24558
  setLoading,
24518
24559
  clearSearchResult,
24519
24560
  filterVisibleFilterValues,
24520
- setRelatedCategoryChildren
24561
+ setRelatedCategoryChildren,
24562
+ queryRelatedQueries,
24563
+ setRelatedQueriesApiEnabled
24521
24564
  };
24522
24565
  });
24523
- const _hoisted_1$16 = { class: "lupa-search-box-add-to-cart-wrapper" };
24524
- const _hoisted_2$M = { class: "lupa-search-box-product-addtocart" };
24525
- const _hoisted_3$z = ["disabled"];
24526
- const _hoisted_4$r = ["href"];
24527
- const _hoisted_5$h = ["onClick", "disabled"];
24528
- const _sfc_main$1f = /* @__PURE__ */ defineComponent({
24566
+ const _hoisted_1$18 = { class: "lupa-search-box-add-to-cart-wrapper" };
24567
+ const _hoisted_2$O = { class: "lupa-search-box-product-addtocart" };
24568
+ const _hoisted_3$B = ["disabled"];
24569
+ const _hoisted_4$s = ["href"];
24570
+ const _hoisted_5$i = ["onClick", "disabled"];
24571
+ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
24529
24572
  __name: "SearchBoxProductAddToCart",
24530
24573
  props: {
24531
24574
  item: {},
@@ -24563,45 +24606,45 @@ and ensure you are accounting for this risk.
24563
24606
  return Boolean(props.link && props.options.link);
24564
24607
  });
24565
24608
  return (_ctx, _cache) => {
24566
- return openBlock(), createElementBlock("div", _hoisted_1$16, [
24567
- createBaseVNode("div", _hoisted_2$M, [
24609
+ return openBlock(), createElementBlock("div", _hoisted_1$18, [
24610
+ createBaseVNode("div", _hoisted_2$O, [
24568
24611
  hasLink.value ? (openBlock(), createElementBlock("button", mergeProps({
24569
24612
  key: 0,
24570
24613
  class: loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart",
24571
24614
  "data-cy": "lupa-add-to-cart",
24572
24615
  disabled: !inStockValue.value || loading.value
24573
24616
  }, _ctx.dynamicAttributes, { onClick: handleClick }), [
24574
- createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$r)
24575
- ], 16, _hoisted_3$z)) : (openBlock(), createElementBlock("button", mergeProps({
24617
+ createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$s)
24618
+ ], 16, _hoisted_3$B)) : (openBlock(), createElementBlock("button", mergeProps({
24576
24619
  key: 1,
24577
24620
  onClick: withModifiers(handleClick, ["stop", "prevent"]),
24578
24621
  class: loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart",
24579
24622
  "data-cy": "lupa-add-to-cart",
24580
24623
  type: "button",
24581
24624
  disabled: !inStockValue.value || loading.value
24582
- }, _ctx.dynamicAttributes), toDisplayString(label.value), 17, _hoisted_5$h))
24625
+ }, _ctx.dynamicAttributes), toDisplayString(label.value), 17, _hoisted_5$i))
24583
24626
  ])
24584
24627
  ]);
24585
24628
  };
24586
24629
  }
24587
24630
  });
24588
- const _hoisted_1$15 = {
24631
+ const _hoisted_1$17 = {
24589
24632
  key: 1,
24590
24633
  class: "lupa-search-box-element-badge-wrapper"
24591
24634
  };
24592
24635
  const __default__$4 = {
24593
24636
  components: {
24594
- SearchBoxProductImage: _sfc_main$1m,
24595
- SearchBoxProductTitle: _sfc_main$1l,
24596
- SearchBoxProductDescription: _sfc_main$1k,
24597
- SearchBoxProductPrice: _sfc_main$1j,
24598
- SearchBoxProductRegularPrice: _sfc_main$1i,
24599
- SearchBoxProductCustom: _sfc_main$1h,
24600
- SearchBoxProductCustomHtml: _sfc_main$1g,
24601
- SearchBoxProductAddToCart: _sfc_main$1f
24637
+ SearchBoxProductImage: _sfc_main$1o,
24638
+ SearchBoxProductTitle: _sfc_main$1n,
24639
+ SearchBoxProductDescription: _sfc_main$1m,
24640
+ SearchBoxProductPrice: _sfc_main$1l,
24641
+ SearchBoxProductRegularPrice: _sfc_main$1k,
24642
+ SearchBoxProductCustom: _sfc_main$1j,
24643
+ SearchBoxProductCustomHtml: _sfc_main$1i,
24644
+ SearchBoxProductAddToCart: _sfc_main$1h
24602
24645
  }
24603
24646
  };
24604
- const _sfc_main$1e = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
24647
+ const _sfc_main$1g = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
24605
24648
  __name: "SearchBoxProductElement",
24606
24649
  props: {
24607
24650
  item: {},
@@ -24673,7 +24716,7 @@ and ensure you are accounting for this risk.
24673
24716
  "dynamic-attributes": dynamicAttributes.value,
24674
24717
  link: _ctx.link
24675
24718
  }, renderDynamicAttributesOnParentElement.value && dynamicAttributes.value), null, 16, ["item", "options", "labels", "class", "inStock", "dynamic-attributes", "link"])) : createCommentVNode("", true)
24676
- ], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$15, [
24719
+ ], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$17, [
24677
24720
  displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), {
24678
24721
  key: 0,
24679
24722
  item: enhancedItem.value,
@@ -24688,14 +24731,14 @@ and ensure you are accounting for this risk.
24688
24731
  };
24689
24732
  }
24690
24733
  }));
24691
- const _hoisted_1$14 = { class: "lupa-badge-title" };
24692
- const _hoisted_2$L = ["src"];
24693
- const _hoisted_3$y = { key: 1 };
24694
- const _hoisted_4$q = {
24734
+ const _hoisted_1$16 = { class: "lupa-badge-title" };
24735
+ const _hoisted_2$N = ["src"];
24736
+ const _hoisted_3$A = { key: 1 };
24737
+ const _hoisted_4$r = {
24695
24738
  key: 0,
24696
24739
  class: "lupa-badge-full-text"
24697
24740
  };
24698
- const _sfc_main$1d = /* @__PURE__ */ defineComponent({
24741
+ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
24699
24742
  __name: "SearchResultGeneratedBadge",
24700
24743
  props: {
24701
24744
  options: {},
@@ -24728,20 +24771,20 @@ and ensure you are accounting for this risk.
24728
24771
  class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
24729
24772
  style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
24730
24773
  }, [
24731
- createBaseVNode("span", _hoisted_1$14, [
24774
+ createBaseVNode("span", _hoisted_1$16, [
24732
24775
  image.value ? (openBlock(), createElementBlock("img", {
24733
24776
  key: 0,
24734
24777
  src: image.value
24735
- }, null, 8, _hoisted_2$L)) : createCommentVNode("", true),
24736
- hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$y, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
24778
+ }, null, 8, _hoisted_2$N)) : createCommentVNode("", true),
24779
+ hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$A, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
24737
24780
  ]),
24738
- hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$q, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
24781
+ hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$r, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
24739
24782
  ], 6);
24740
24783
  };
24741
24784
  }
24742
24785
  });
24743
- const _hoisted_1$13 = { class: "lupa-generated-badges" };
24744
- const _sfc_main$1c = /* @__PURE__ */ defineComponent({
24786
+ const _hoisted_1$15 = { class: "lupa-generated-badges" };
24787
+ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
24745
24788
  __name: "SearchResultGeneratedBadges",
24746
24789
  props: {
24747
24790
  options: {}
@@ -24767,9 +24810,9 @@ and ensure you are accounting for this risk.
24767
24810
  })).filter((b) => Boolean(b.id));
24768
24811
  });
24769
24812
  return (_ctx, _cache) => {
24770
- return openBlock(), createElementBlock("div", _hoisted_1$13, [
24813
+ return openBlock(), createElementBlock("div", _hoisted_1$15, [
24771
24814
  (openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
24772
- return openBlock(), createBlock(_sfc_main$1d, {
24815
+ return openBlock(), createBlock(_sfc_main$1f, {
24773
24816
  key: badge.id,
24774
24817
  badge,
24775
24818
  options: _ctx.options
@@ -24779,8 +24822,8 @@ and ensure you are accounting for this risk.
24779
24822
  };
24780
24823
  }
24781
24824
  });
24782
- const _hoisted_1$12 = ["innerHTML"];
24783
- const _sfc_main$1b = /* @__PURE__ */ defineComponent({
24825
+ const _hoisted_1$14 = ["innerHTML"];
24826
+ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
24784
24827
  __name: "CustomBadge",
24785
24828
  props: {
24786
24829
  badge: {}
@@ -24801,12 +24844,12 @@ and ensure you are accounting for this risk.
24801
24844
  return openBlock(), createElementBlock("div", {
24802
24845
  class: normalizeClass(className.value),
24803
24846
  innerHTML: text.value
24804
- }, null, 10, _hoisted_1$12);
24847
+ }, null, 10, _hoisted_1$14);
24805
24848
  };
24806
24849
  }
24807
24850
  });
24808
- const _hoisted_1$11 = { class: "lupa-text-badges" };
24809
- const _sfc_main$1a = /* @__PURE__ */ defineComponent({
24851
+ const _hoisted_1$13 = { class: "lupa-text-badges" };
24852
+ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
24810
24853
  __name: "TextBadge",
24811
24854
  props: {
24812
24855
  badge: {}
@@ -24820,7 +24863,7 @@ and ensure you are accounting for this risk.
24820
24863
  return badges.value.slice(0, props.badge.maxItems);
24821
24864
  });
24822
24865
  return (_ctx, _cache) => {
24823
- return openBlock(), createElementBlock("div", _hoisted_1$11, [
24866
+ return openBlock(), createElementBlock("div", _hoisted_1$13, [
24824
24867
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
24825
24868
  return openBlock(), createElementBlock("div", {
24826
24869
  class: "lupa-badge lupa-text-badge",
@@ -24831,9 +24874,9 @@ and ensure you are accounting for this risk.
24831
24874
  };
24832
24875
  }
24833
24876
  });
24834
- const _hoisted_1$10 = { class: "lupa-image-badges" };
24835
- const _hoisted_2$K = ["src"];
24836
- const _sfc_main$19 = /* @__PURE__ */ defineComponent({
24877
+ const _hoisted_1$12 = { class: "lupa-image-badges" };
24878
+ const _hoisted_2$M = ["src"];
24879
+ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
24837
24880
  __name: "ImageBadge",
24838
24881
  props: {
24839
24882
  badge: {}
@@ -24853,7 +24896,7 @@ and ensure you are accounting for this risk.
24853
24896
  return `${props.badge.rootImageUrl}${src}`;
24854
24897
  };
24855
24898
  return (_ctx, _cache) => {
24856
- return openBlock(), createElementBlock("div", _hoisted_1$10, [
24899
+ return openBlock(), createElementBlock("div", _hoisted_1$12, [
24857
24900
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
24858
24901
  return openBlock(), createElementBlock("div", {
24859
24902
  class: "lupa-badge lupa-image-badge",
@@ -24861,14 +24904,14 @@ and ensure you are accounting for this risk.
24861
24904
  }, [
24862
24905
  createBaseVNode("img", {
24863
24906
  src: getImageUrl(item)
24864
- }, null, 8, _hoisted_2$K)
24907
+ }, null, 8, _hoisted_2$M)
24865
24908
  ]);
24866
24909
  }), 128))
24867
24910
  ]);
24868
24911
  };
24869
24912
  }
24870
24913
  });
24871
- const _sfc_main$18 = /* @__PURE__ */ defineComponent({
24914
+ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
24872
24915
  __name: "DiscountBadge",
24873
24916
  props: {
24874
24917
  badge: {}
@@ -24927,16 +24970,16 @@ and ensure you are accounting for this risk.
24927
24970
  };
24928
24971
  }
24929
24972
  });
24930
- const _hoisted_1$$ = { id: "lupa-search-results-badges" };
24973
+ const _hoisted_1$11 = { id: "lupa-search-results-badges" };
24931
24974
  const __default__$3 = {
24932
24975
  components: {
24933
- CustomBadge: _sfc_main$1b,
24934
- TextBadge: _sfc_main$1a,
24935
- ImageBadge: _sfc_main$19,
24936
- DiscountBadge: _sfc_main$18
24976
+ CustomBadge: _sfc_main$1d,
24977
+ TextBadge: _sfc_main$1c,
24978
+ ImageBadge: _sfc_main$1b,
24979
+ DiscountBadge: _sfc_main$1a
24937
24980
  }
24938
24981
  };
24939
- const _sfc_main$17 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
24982
+ const _sfc_main$19 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
24940
24983
  __name: "SearchResultsBadgeWrapper",
24941
24984
  props: {
24942
24985
  position: {},
@@ -24999,7 +25042,7 @@ and ensure you are accounting for this risk.
24999
25042
  }
25000
25043
  };
25001
25044
  return (_ctx, _cache) => {
25002
- return openBlock(), createElementBlock("div", _hoisted_1$$, [
25045
+ return openBlock(), createElementBlock("div", _hoisted_1$11, [
25003
25046
  createBaseVNode("div", {
25004
25047
  id: "lupa-badges",
25005
25048
  class: normalizeClass(anchorPosition.value)
@@ -25010,7 +25053,7 @@ and ensure you are accounting for this risk.
25010
25053
  badge
25011
25054
  }, null, 8, ["badge"]);
25012
25055
  }), 128)),
25013
- positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$1c, {
25056
+ positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$1e, {
25014
25057
  key: 0,
25015
25058
  options: _ctx.options
25016
25059
  }, null, 8, ["options"])) : createCommentVNode("", true)
@@ -25019,13 +25062,13 @@ and ensure you are accounting for this risk.
25019
25062
  };
25020
25063
  }
25021
25064
  }));
25022
- const _hoisted_1$_ = ["href"];
25023
- const _hoisted_2$J = { class: "lupa-search-box-product-details-section" };
25024
- const _hoisted_3$x = {
25065
+ const _hoisted_1$10 = ["href"];
25066
+ const _hoisted_2$L = { class: "lupa-search-box-product-details-section" };
25067
+ const _hoisted_3$z = {
25025
25068
  key: 0,
25026
25069
  class: "lupa-search-box-product-add-to-cart-section"
25027
25070
  };
25028
- const _sfc_main$16 = /* @__PURE__ */ defineComponent({
25071
+ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
25029
25072
  __name: "SearchBoxProduct",
25030
25073
  props: {
25031
25074
  item: {},
@@ -25111,7 +25154,7 @@ and ensure you are accounting for this risk.
25111
25154
  style: normalizeStyle(imageStyleOverride.value)
25112
25155
  }, [
25113
25156
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
25114
- return openBlock(), createBlock(_sfc_main$1e, {
25157
+ return openBlock(), createBlock(_sfc_main$1g, {
25115
25158
  class: "lupa-search-box-product-element",
25116
25159
  item: _ctx.item,
25117
25160
  element,
@@ -25121,10 +25164,10 @@ and ensure you are accounting for this risk.
25121
25164
  }, null, 8, ["item", "element", "labels", "link"]);
25122
25165
  }), 128))
25123
25166
  ], 4),
25124
- createBaseVNode("div", _hoisted_2$J, [
25167
+ createBaseVNode("div", _hoisted_2$L, [
25125
25168
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
25126
25169
  var _a;
25127
- return openBlock(), createBlock(_sfc_main$1e, {
25170
+ return openBlock(), createBlock(_sfc_main$1g, {
25128
25171
  key: element.key,
25129
25172
  class: "lupa-search-box-product-element",
25130
25173
  item: _ctx.item,
@@ -25135,7 +25178,7 @@ and ensure you are accounting for this risk.
25135
25178
  badgeOptions.value && ((_a = badgeOptions.value) == null ? void 0 : _a.anchorElementKey) === element.key ? {
25136
25179
  name: "badges",
25137
25180
  fn: withCtx(() => [
25138
- createVNode(_sfc_main$17, {
25181
+ createVNode(_sfc_main$19, {
25139
25182
  options: badgeOptions.value,
25140
25183
  position: "card"
25141
25184
  }, null, 8, ["options"])
@@ -25145,8 +25188,8 @@ and ensure you are accounting for this risk.
25145
25188
  ]), 1032, ["item", "element", "labels", "link"]);
25146
25189
  }), 128))
25147
25190
  ]),
25148
- addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$x, [
25149
- createVNode(_sfc_main$1e, {
25191
+ addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$z, [
25192
+ createVNode(_sfc_main$1g, {
25150
25193
  class: "lupa-search-box-product-element",
25151
25194
  item: _ctx.item,
25152
25195
  element: addToCartElement.value,
@@ -25155,7 +25198,7 @@ and ensure you are accounting for this risk.
25155
25198
  isInStock: isInStock.value
25156
25199
  }, null, 8, ["item", "element", "labels", "link", "isInStock"])
25157
25200
  ])) : createCommentVNode("", true)
25158
- ], 16, _hoisted_1$_);
25201
+ ], 16, _hoisted_1$10);
25159
25202
  };
25160
25203
  }
25161
25204
  });
@@ -25227,8 +25270,8 @@ and ensure you are accounting for this risk.
25227
25270
  };
25228
25271
  return { trackSearch, trackResults, trackEvent, trackDelayedEvent };
25229
25272
  });
25230
- const _hoisted_1$Z = { id: "lupa-search-box-products" };
25231
- const _sfc_main$15 = /* @__PURE__ */ defineComponent({
25273
+ const _hoisted_1$$ = { id: "lupa-search-box-products" };
25274
+ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
25232
25275
  __name: "SearchBoxProducts",
25233
25276
  props: {
25234
25277
  items: {},
@@ -25299,7 +25342,7 @@ and ensure you are accounting for this risk.
25299
25342
  }
25300
25343
  };
25301
25344
  return (_ctx, _cache) => {
25302
- return openBlock(), createElementBlock("div", _hoisted_1$Z, [
25345
+ return openBlock(), createElementBlock("div", _hoisted_1$$, [
25303
25346
  _ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
25304
25347
  return renderSlot(_ctx.$slots, "productCard", {
25305
25348
  key: index,
@@ -25311,7 +25354,7 @@ and ensure you are accounting for this risk.
25311
25354
  itemClicked: handleProductClick
25312
25355
  });
25313
25356
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
25314
- return openBlock(), createBlock(_sfc_main$16, {
25357
+ return openBlock(), createBlock(_sfc_main$18, {
25315
25358
  key: index,
25316
25359
  item,
25317
25360
  panelOptions: _ctx.panelOptions,
@@ -25326,9 +25369,9 @@ and ensure you are accounting for this risk.
25326
25369
  };
25327
25370
  }
25328
25371
  });
25329
- const _hoisted_1$Y = { class: "lupa-search-box-documents-go-to-results-wrapper" };
25330
- const _hoisted_2$I = { key: 0 };
25331
- const _sfc_main$14 = /* @__PURE__ */ defineComponent({
25372
+ const _hoisted_1$_ = { class: "lupa-search-box-documents-go-to-results-wrapper" };
25373
+ const _hoisted_2$K = { key: 0 };
25374
+ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
25332
25375
  __name: "SearchBoxProductsGoToResultsButton",
25333
25376
  props: {
25334
25377
  options: {},
@@ -25358,13 +25401,13 @@ and ensure you are accounting for this risk.
25358
25401
  emit2("goToResults");
25359
25402
  };
25360
25403
  return (_ctx, _cache) => {
25361
- return openBlock(), createElementBlock("div", _hoisted_1$Y, [
25404
+ return openBlock(), createElementBlock("div", _hoisted_1$_, [
25362
25405
  createBaseVNode("button", {
25363
25406
  class: "lupa-search-box-documents-go-to-results-button",
25364
25407
  onClick: goToResults
25365
25408
  }, [
25366
25409
  createTextVNode(toDisplayString(goToResultsLabel.value) + " ", 1),
25367
- totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$I, " " + toDisplayString(totalCount.value), 1)) : createCommentVNode("", true)
25410
+ totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$K, " " + toDisplayString(totalCount.value), 1)) : createCommentVNode("", true)
25368
25411
  ])
25369
25412
  ]);
25370
25413
  };
@@ -25451,7 +25494,7 @@ and ensure you are accounting for this risk.
25451
25494
  }
25452
25495
  return parsedObject;
25453
25496
  };
25454
- const _sfc_main$13 = /* @__PURE__ */ defineComponent({
25497
+ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
25455
25498
  __name: "SearchBoxProductsWrapper",
25456
25499
  props: {
25457
25500
  panel: {},
@@ -25520,7 +25563,7 @@ and ensure you are accounting for this risk.
25520
25563
  watch(() => props.panel.limit, getItemsDebounced);
25521
25564
  return (_ctx, _cache) => {
25522
25565
  var _a, _b;
25523
- return openBlock(), createBlock(_sfc_main$15, {
25566
+ return openBlock(), createBlock(_sfc_main$17, {
25524
25567
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
25525
25568
  panelOptions: _ctx.panel,
25526
25569
  labels: _ctx.labels,
@@ -25530,7 +25573,7 @@ and ensure you are accounting for this risk.
25530
25573
  default: withCtx(() => {
25531
25574
  var _a2;
25532
25575
  return [
25533
- showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main$14, {
25576
+ showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main$16, {
25534
25577
  key: 0,
25535
25578
  options: _ctx.searchBoxOptions,
25536
25579
  panel: _ctx.panel,
@@ -25551,7 +25594,7 @@ and ensure you are accounting for this risk.
25551
25594
  };
25552
25595
  }
25553
25596
  });
25554
- const _sfc_main$12 = /* @__PURE__ */ defineComponent({
25597
+ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
25555
25598
  __name: "SearchBoxRelatedSourceWrapper",
25556
25599
  props: {
25557
25600
  panel: {},
@@ -25623,7 +25666,7 @@ and ensure you are accounting for this risk.
25623
25666
  });
25624
25667
  return (_ctx, _cache) => {
25625
25668
  var _a, _b;
25626
- return openBlock(), createBlock(_sfc_main$15, {
25669
+ return openBlock(), createBlock(_sfc_main$17, {
25627
25670
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
25628
25671
  panelOptions: documentPanelOptions.value,
25629
25672
  labels: _ctx.labels,
@@ -25641,31 +25684,31 @@ and ensure you are accounting for this risk.
25641
25684
  };
25642
25685
  }
25643
25686
  });
25644
- const _hoisted_1$X = {
25687
+ const _hoisted_1$Z = {
25645
25688
  key: 0,
25646
25689
  id: "lupa-search-box-panel"
25647
25690
  };
25648
- const _hoisted_2$H = ["data-cy"];
25649
- const _hoisted_3$w = {
25691
+ const _hoisted_2$J = ["data-cy"];
25692
+ const _hoisted_3$y = {
25650
25693
  key: 0,
25651
25694
  class: "lupa-panel-title lupa-panel-title-top-results"
25652
25695
  };
25653
- const _hoisted_4$p = {
25696
+ const _hoisted_4$q = {
25654
25697
  key: 1,
25655
25698
  class: "lupa-panel-title"
25656
25699
  };
25657
- const _hoisted_5$g = {
25700
+ const _hoisted_5$h = {
25658
25701
  key: 1,
25659
25702
  id: "lupa-search-box-panel"
25660
25703
  };
25661
25704
  const __default__$2 = {
25662
25705
  components: {
25663
- SearchBoxSuggestionsWrapper: _sfc_main$1o,
25664
- SearchBoxProductsWrapper: _sfc_main$13,
25665
- SearchBoxRelatedSourceWrapper: _sfc_main$12
25706
+ SearchBoxSuggestionsWrapper: _sfc_main$1q,
25707
+ SearchBoxProductsWrapper: _sfc_main$15,
25708
+ SearchBoxRelatedSourceWrapper: _sfc_main$14
25666
25709
  }
25667
25710
  };
25668
- const _sfc_main$11 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
25711
+ const _sfc_main$13 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
25669
25712
  __name: "SearchBoxMainPanel",
25670
25713
  props: {
25671
25714
  options: {},
@@ -25820,7 +25863,7 @@ and ensure you are accounting for this risk.
25820
25863
  ref_key: "panelContainer",
25821
25864
  ref: panelContainer
25822
25865
  }, [
25823
- displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$X, [
25866
+ displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$Z, [
25824
25867
  labels.value.closePanel ? (openBlock(), createElementBlock("a", {
25825
25868
  key: 0,
25826
25869
  class: "lupa-search-box-close-panel",
@@ -25842,8 +25885,8 @@ and ensure you are accounting for this risk.
25842
25885
  style: normalizeStyle(panel.gridArea ? { gridArea: `${panel.gridArea}${index}` } : {}),
25843
25886
  "data-cy": "lupa-panel-" + panel.type + "-index"
25844
25887
  }, [
25845
- ((_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),
25846
- ((_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),
25888
+ ((_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),
25889
+ ((_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),
25847
25890
  panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
25848
25891
  key: 2,
25849
25892
  panel,
@@ -25865,21 +25908,21 @@ and ensure you are accounting for this risk.
25865
25908
  key: "0"
25866
25909
  } : void 0
25867
25910
  ]), 1064, ["panel", "search-box-options", "options", "debounce", "inputValue", "labels"])) : createCommentVNode("", true)
25868
- ], 14, _hoisted_2$H);
25911
+ ], 14, _hoisted_2$J);
25869
25912
  }), 128))
25870
25913
  ], 4),
25871
- !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1r, {
25914
+ !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1t, {
25872
25915
  key: 1,
25873
25916
  labels: labels.value
25874
25917
  }, null, 8, ["labels"])) : createCommentVNode("", true),
25875
- unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1u, {
25918
+ unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1w, {
25876
25919
  key: 2,
25877
25920
  labels: labels.value,
25878
25921
  options: _ctx.options,
25879
25922
  onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
25880
25923
  }, null, 8, ["labels", "options"])) : createCommentVNode("", true)
25881
- ])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$g, [
25882
- createVNode(_sfc_main$1s, {
25924
+ ])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$h, [
25925
+ createVNode(_sfc_main$1u, {
25883
25926
  options: _ctx.options.history,
25884
25927
  history: history.value,
25885
25928
  onGoToResults: handleGoToResults,
@@ -25904,8 +25947,8 @@ and ensure you are accounting for this risk.
25904
25947
  const elements = getElements(triggers);
25905
25948
  elements.forEach((e2) => e2 == null ? void 0 : e2.removeEventListener(BIND_EVENT, event));
25906
25949
  };
25907
- const _hoisted_1$W = { class: "lupa-search-box-wrapper" };
25908
- const _sfc_main$10 = /* @__PURE__ */ defineComponent({
25950
+ const _hoisted_1$Y = { class: "lupa-search-box-wrapper" };
25951
+ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
25909
25952
  __name: "SearchBox",
25910
25953
  props: {
25911
25954
  options: {},
@@ -26226,8 +26269,8 @@ and ensure you are accounting for this risk.
26226
26269
  id: "lupa-search-box",
26227
26270
  class: normalizeClass({ "lupa-search-box-opened": opened.value })
26228
26271
  }, [
26229
- createBaseVNode("div", _hoisted_1$W, [
26230
- createVNode(_sfc_main$1v, {
26272
+ createBaseVNode("div", _hoisted_1$Y, [
26273
+ createVNode(_sfc_main$1x, {
26231
26274
  options: inputOptions.value,
26232
26275
  suggestedValue: suggestedValue.value,
26233
26276
  "can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
@@ -26240,7 +26283,7 @@ and ensure you are accounting for this risk.
26240
26283
  onSearch: handleSearch,
26241
26284
  onClose: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
26242
26285
  }, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
26243
- opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$11, {
26286
+ opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$13, {
26244
26287
  key: 0,
26245
26288
  options: panelOptions.value,
26246
26289
  inputValue: inputValue.value,
@@ -26329,20 +26372,20 @@ and ensure you are accounting for this risk.
26329
26372
  }
26330
26373
  return searchParams;
26331
26374
  };
26332
- const _hoisted_1$V = {
26375
+ const _hoisted_1$X = {
26333
26376
  key: 0,
26334
26377
  id: "lupa-search-results-did-you-mean"
26335
26378
  };
26336
- const _hoisted_2$G = {
26379
+ const _hoisted_2$I = {
26337
26380
  key: 0,
26338
26381
  "data-cy": "suggested-search-text-label"
26339
26382
  };
26340
- const _hoisted_3$v = {
26383
+ const _hoisted_3$x = {
26341
26384
  key: 1,
26342
26385
  "data-cy": "did-you-mean-label"
26343
26386
  };
26344
- const _hoisted_4$o = { key: 1 };
26345
- const _sfc_main$$ = /* @__PURE__ */ defineComponent({
26387
+ const _hoisted_4$p = { key: 1 };
26388
+ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
26346
26389
  __name: "SearchResultsDidYouMean",
26347
26390
  props: {
26348
26391
  labels: {}
@@ -26374,8 +26417,8 @@ and ensure you are accounting for this risk.
26374
26417
  paramStore.goToResults({ searchText, facet });
26375
26418
  };
26376
26419
  return (_ctx, _cache) => {
26377
- return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$V, [
26378
- unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$G, [
26420
+ return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$X, [
26421
+ unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$I, [
26379
26422
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
26380
26423
  return openBlock(), createElementBlock("span", { key: index }, [
26381
26424
  createBaseVNode("span", {
@@ -26384,7 +26427,7 @@ and ensure you are accounting for this risk.
26384
26427
  ]);
26385
26428
  }), 128))
26386
26429
  ])) : createCommentVNode("", true),
26387
- didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$v, [
26430
+ didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$x, [
26388
26431
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.didYouMean.split(" "), (label, index) => {
26389
26432
  return openBlock(), createElementBlock("span", { key: index }, [
26390
26433
  label.includes("{1}") ? (openBlock(), createElementBlock("span", {
@@ -26392,7 +26435,7 @@ and ensure you are accounting for this risk.
26392
26435
  class: "lupa-did-you-mean lupa-highlighted-search-text",
26393
26436
  "data-cy": "did-you-mean-value",
26394
26437
  onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
26395
- }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$o, toDisplayString(label) + " ", 1))
26438
+ }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$p, toDisplayString(label) + " ", 1))
26396
26439
  ]);
26397
26440
  }), 128))
26398
26441
  ])) : createCommentVNode("", true)
@@ -26400,12 +26443,12 @@ and ensure you are accounting for this risk.
26400
26443
  };
26401
26444
  }
26402
26445
  });
26403
- const _hoisted_1$U = {
26446
+ const _hoisted_1$W = {
26404
26447
  key: 0,
26405
26448
  class: "lupa-search-results-summary"
26406
26449
  };
26407
- const _hoisted_2$F = ["innerHTML"];
26408
- const _sfc_main$_ = /* @__PURE__ */ defineComponent({
26450
+ const _hoisted_2$H = ["innerHTML"];
26451
+ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
26409
26452
  __name: "SearchResultsSummary",
26410
26453
  props: {
26411
26454
  label: {},
@@ -26420,8 +26463,8 @@ and ensure you are accounting for this risk.
26420
26463
  return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
26421
26464
  });
26422
26465
  return (_ctx, _cache) => {
26423
- return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$U, [
26424
- createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$F),
26466
+ return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$W, [
26467
+ createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$H),
26425
26468
  _ctx.clearable ? (openBlock(), createElementBlock("span", {
26426
26469
  key: 0,
26427
26470
  class: "lupa-filter-clear",
@@ -26432,19 +26475,19 @@ and ensure you are accounting for this risk.
26432
26475
  };
26433
26476
  }
26434
26477
  });
26435
- const _hoisted_1$T = {
26478
+ const _hoisted_1$V = {
26436
26479
  key: 0,
26437
26480
  class: "lupa-result-page-title",
26438
26481
  "data-cy": "lupa-result-page-title"
26439
26482
  };
26440
- const _hoisted_2$E = { key: 0 };
26441
- const _hoisted_3$u = {
26483
+ const _hoisted_2$G = { key: 0 };
26484
+ const _hoisted_3$w = {
26442
26485
  key: 1,
26443
26486
  class: "lupa-results-total-count"
26444
26487
  };
26445
- const _hoisted_4$n = { class: "lupa-results-total-count-number" };
26446
- const _hoisted_5$f = ["innerHTML"];
26447
- const _sfc_main$Z = /* @__PURE__ */ defineComponent({
26488
+ const _hoisted_4$o = { class: "lupa-results-total-count-number" };
26489
+ const _hoisted_5$g = ["innerHTML"];
26490
+ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
26448
26491
  __name: "SearchResultsTitle",
26449
26492
  props: {
26450
26493
  options: {},
@@ -26487,16 +26530,16 @@ and ensure you are accounting for this risk.
26487
26530
  });
26488
26531
  return (_ctx, _cache) => {
26489
26532
  return openBlock(), createElementBlock("div", null, [
26490
- showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$T, [
26533
+ showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$V, [
26491
26534
  createTextVNode(toDisplayString(searchResultsTitleTemplate.value || _ctx.options.labels.searchResults), 1),
26492
- queryText.value && !searchResultsTitleTemplate.value ? (openBlock(), createElementBlock("span", _hoisted_2$E, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
26493
- showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$u, [
26535
+ queryText.value && !searchResultsTitleTemplate.value ? (openBlock(), createElementBlock("span", _hoisted_2$G, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
26536
+ showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$w, [
26494
26537
  createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
26495
- createBaseVNode("span", _hoisted_4$n, toDisplayString(unref(totalItems)), 1),
26538
+ createBaseVNode("span", _hoisted_4$o, toDisplayString(unref(totalItems)), 1),
26496
26539
  createTextVNode(")")
26497
26540
  ])) : createCommentVNode("", true)
26498
26541
  ])) : createCommentVNode("", true),
26499
- _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$_, {
26542
+ _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$10, {
26500
26543
  key: 1,
26501
26544
  label: summaryLabel.value
26502
26545
  }, null, 8, ["label"])) : createCommentVNode("", true),
@@ -26504,20 +26547,20 @@ and ensure you are accounting for this risk.
26504
26547
  key: 2,
26505
26548
  class: "lupa-result-page-description-top",
26506
26549
  innerHTML: descriptionTop.value
26507
- }, null, 8, _hoisted_5$f)) : createCommentVNode("", true)
26550
+ }, null, 8, _hoisted_5$g)) : createCommentVNode("", true)
26508
26551
  ]);
26509
26552
  };
26510
26553
  }
26511
26554
  });
26512
- const _hoisted_1$S = {
26555
+ const _hoisted_1$U = {
26513
26556
  class: "lupa-current-filter-label",
26514
26557
  "data-cy": "lupa-current-filter-label"
26515
26558
  };
26516
- const _hoisted_2$D = {
26559
+ const _hoisted_2$F = {
26517
26560
  class: "lupa-current-filter-value",
26518
26561
  "data-cy": "lupa-current-filter-value"
26519
26562
  };
26520
- const _sfc_main$Y = /* @__PURE__ */ defineComponent({
26563
+ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
26521
26564
  __name: "CurrentFilterDisplay",
26522
26565
  props: {
26523
26566
  filter: {}
@@ -26539,23 +26582,23 @@ and ensure you are accounting for this risk.
26539
26582
  class: "lupa-current-filter-action",
26540
26583
  onClick: handleClick
26541
26584
  }, "⨉"),
26542
- createBaseVNode("div", _hoisted_1$S, toDisplayString(_ctx.filter.label) + ": ", 1),
26543
- createBaseVNode("div", _hoisted_2$D, toDisplayString(_ctx.filter.value), 1)
26585
+ createBaseVNode("div", _hoisted_1$U, toDisplayString(_ctx.filter.label) + ": ", 1),
26586
+ createBaseVNode("div", _hoisted_2$F, toDisplayString(_ctx.filter.value), 1)
26544
26587
  ], 2);
26545
26588
  };
26546
26589
  }
26547
26590
  });
26548
- const _hoisted_1$R = { class: "lupa-filter-title-text" };
26549
- const _hoisted_2$C = {
26591
+ const _hoisted_1$T = { class: "lupa-filter-title-text" };
26592
+ const _hoisted_2$E = {
26550
26593
  key: 0,
26551
26594
  class: "lupa-filter-count"
26552
26595
  };
26553
- const _hoisted_3$t = {
26596
+ const _hoisted_3$v = {
26554
26597
  key: 0,
26555
26598
  class: "filter-values"
26556
26599
  };
26557
- const _hoisted_4$m = { class: "lupa-current-filter-list" };
26558
- const _sfc_main$X = /* @__PURE__ */ defineComponent({
26600
+ const _hoisted_4$n = { class: "lupa-current-filter-list" };
26601
+ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
26559
26602
  __name: "CurrentFilters",
26560
26603
  props: {
26561
26604
  options: {},
@@ -26628,19 +26671,19 @@ and ensure you are accounting for this risk.
26628
26671
  class: "lupa-current-filter-title",
26629
26672
  onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
26630
26673
  }, [
26631
- createBaseVNode("div", _hoisted_1$R, [
26674
+ createBaseVNode("div", _hoisted_1$T, [
26632
26675
  createTextVNode(toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
26633
- _ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$C, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
26676
+ _ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$E, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
26634
26677
  ]),
26635
26678
  _ctx.expandable ? (openBlock(), createElementBlock("div", {
26636
26679
  key: 0,
26637
26680
  class: normalizeClass(["lupa-filter-title-caret", isOpen.value && "open"])
26638
26681
  }, null, 2)) : createCommentVNode("", true)
26639
26682
  ]),
26640
- !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$t, [
26641
- createBaseVNode("div", _hoisted_4$m, [
26683
+ !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$v, [
26684
+ createBaseVNode("div", _hoisted_4$n, [
26642
26685
  (openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter2) => {
26643
- return openBlock(), createBlock(_sfc_main$Y, {
26686
+ return openBlock(), createBlock(_sfc_main$_, {
26644
26687
  key: filter2.key + "_" + filter2.value,
26645
26688
  filter: filter2,
26646
26689
  onRemove: handleRemove
@@ -26657,8 +26700,8 @@ and ensure you are accounting for this risk.
26657
26700
  };
26658
26701
  }
26659
26702
  });
26660
- const _hoisted_1$Q = ["href"];
26661
- const _sfc_main$W = /* @__PURE__ */ defineComponent({
26703
+ const _hoisted_1$S = ["href"];
26704
+ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
26662
26705
  __name: "CategoryFilterItem",
26663
26706
  props: {
26664
26707
  options: {},
@@ -26695,20 +26738,20 @@ and ensure you are accounting for this risk.
26695
26738
  "data-cy": "lupa-child-category-item",
26696
26739
  href: urlLink.value,
26697
26740
  onClick: handleNavigation
26698
- }, toDisplayString(title.value), 9, _hoisted_1$Q)
26741
+ }, toDisplayString(title.value), 9, _hoisted_1$S)
26699
26742
  ], 2);
26700
26743
  };
26701
26744
  }
26702
26745
  });
26703
- const _hoisted_1$P = {
26746
+ const _hoisted_1$R = {
26704
26747
  class: "lupa-category-filter",
26705
26748
  "data-cy": "lupa-category-filter"
26706
26749
  };
26707
- const _hoisted_2$B = { class: "lupa-category-back" };
26708
- const _hoisted_3$s = ["href"];
26709
- const _hoisted_4$l = ["href"];
26710
- const _hoisted_5$e = { class: "lupa-child-category-list" };
26711
- const _sfc_main$V = /* @__PURE__ */ defineComponent({
26750
+ const _hoisted_2$D = { class: "lupa-category-back" };
26751
+ const _hoisted_3$u = ["href"];
26752
+ const _hoisted_4$m = ["href"];
26753
+ const _hoisted_5$f = { class: "lupa-child-category-list" };
26754
+ const _sfc_main$X = /* @__PURE__ */ defineComponent({
26712
26755
  __name: "CategoryFilter",
26713
26756
  props: {
26714
26757
  options: {}
@@ -26796,14 +26839,14 @@ and ensure you are accounting for this risk.
26796
26839
  };
26797
26840
  __expose({ fetch: fetch2 });
26798
26841
  return (_ctx, _cache) => {
26799
- return openBlock(), createElementBlock("div", _hoisted_1$P, [
26800
- createBaseVNode("div", _hoisted_2$B, [
26842
+ return openBlock(), createElementBlock("div", _hoisted_1$R, [
26843
+ createBaseVNode("div", _hoisted_2$D, [
26801
26844
  hasBackButton.value ? (openBlock(), createElementBlock("a", {
26802
26845
  key: 0,
26803
26846
  "data-cy": "lupa-category-back",
26804
26847
  href: backUrlLink.value,
26805
26848
  onClick: handleNavigationBack
26806
- }, toDisplayString(backTitle.value), 9, _hoisted_3$s)) : createCommentVNode("", true)
26849
+ }, toDisplayString(backTitle.value), 9, _hoisted_3$u)) : createCommentVNode("", true)
26807
26850
  ]),
26808
26851
  createBaseVNode("div", {
26809
26852
  class: normalizeClass(["lupa-current-category", { "lupa-current-category-active": isActive }])
@@ -26813,11 +26856,11 @@ and ensure you are accounting for this risk.
26813
26856
  href: parentUrlLink.value,
26814
26857
  class: normalizeClass({ "lupa-title-category": !hasBackButton.value }),
26815
26858
  onClick: handleNavigationParent
26816
- }, toDisplayString(parentTitle.value), 11, _hoisted_4$l)
26859
+ }, toDisplayString(parentTitle.value), 11, _hoisted_4$m)
26817
26860
  ], 2),
26818
- createBaseVNode("div", _hoisted_5$e, [
26861
+ createBaseVNode("div", _hoisted_5$f, [
26819
26862
  (openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
26820
- return openBlock(), createBlock(_sfc_main$W, {
26863
+ return openBlock(), createBlock(_sfc_main$Y, {
26821
26864
  key: getCategoryKey(child),
26822
26865
  item: child,
26823
26866
  options: _ctx.options
@@ -26828,14 +26871,14 @@ and ensure you are accounting for this risk.
26828
26871
  };
26829
26872
  }
26830
26873
  });
26831
- const _hoisted_1$O = {
26874
+ const _hoisted_1$Q = {
26832
26875
  class: "lupa-search-result-facet-term-values",
26833
26876
  "data-cy": "lupa-search-result-facet-term-values"
26834
26877
  };
26835
- const _hoisted_2$A = ["placeholder"];
26836
- const _hoisted_3$r = { class: "lupa-terms-list" };
26837
- const _hoisted_4$k = ["onClick"];
26838
- const _hoisted_5$d = { class: "lupa-term-checkbox-wrapper" };
26878
+ const _hoisted_2$C = ["placeholder"];
26879
+ const _hoisted_3$t = { class: "lupa-terms-list" };
26880
+ const _hoisted_4$l = ["onClick"];
26881
+ const _hoisted_5$e = { class: "lupa-term-checkbox-wrapper" };
26839
26882
  const _hoisted_6$8 = { class: "lupa-term-label" };
26840
26883
  const _hoisted_7$6 = {
26841
26884
  key: 0,
@@ -26843,7 +26886,7 @@ and ensure you are accounting for this risk.
26843
26886
  };
26844
26887
  const _hoisted_8$2 = { key: 0 };
26845
26888
  const _hoisted_9$2 = { key: 1 };
26846
- const _sfc_main$U = /* @__PURE__ */ defineComponent({
26889
+ const _sfc_main$W = /* @__PURE__ */ defineComponent({
26847
26890
  __name: "TermFacet",
26848
26891
  props: {
26849
26892
  options: {},
@@ -26932,17 +26975,17 @@ and ensure you are accounting for this risk.
26932
26975
  }
26933
26976
  };
26934
26977
  return (_ctx, _cache) => {
26935
- return openBlock(), createElementBlock("div", _hoisted_1$O, [
26978
+ return openBlock(), createElementBlock("div", _hoisted_1$Q, [
26936
26979
  isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
26937
26980
  key: 0,
26938
26981
  class: "lupa-term-filter",
26939
26982
  "data-cy": "lupa-term-filter",
26940
26983
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
26941
26984
  placeholder: _ctx.options.labels.facetFilter
26942
- }, null, 8, _hoisted_2$A)), [
26985
+ }, null, 8, _hoisted_2$C)), [
26943
26986
  [vModelText, termFilter.value]
26944
26987
  ]) : createCommentVNode("", true),
26945
- createBaseVNode("div", _hoisted_3$r, [
26988
+ createBaseVNode("div", _hoisted_3$t, [
26946
26989
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
26947
26990
  return openBlock(), createElementBlock("div", {
26948
26991
  class: normalizeClass(["lupa-facet-term", { checked: isChecked(item) }]),
@@ -26950,7 +26993,7 @@ and ensure you are accounting for this risk.
26950
26993
  key: item.title,
26951
26994
  onClick: ($event) => handleFacetClick(item)
26952
26995
  }, [
26953
- createBaseVNode("div", _hoisted_5$d, [
26996
+ createBaseVNode("div", _hoisted_5$e, [
26954
26997
  createBaseVNode("span", {
26955
26998
  class: normalizeClass(["lupa-term-checkbox", { checked: isChecked(item) }])
26956
26999
  }, null, 2)
@@ -26961,7 +27004,7 @@ and ensure you are accounting for this risk.
26961
27004
  createBaseVNode("span", _hoisted_6$8, toDisplayString(getItemLabel(item)), 1),
26962
27005
  _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_7$6, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
26963
27006
  ], 2)
26964
- ], 10, _hoisted_4$k);
27007
+ ], 10, _hoisted_4$l);
26965
27008
  }), 128))
26966
27009
  ]),
26967
27010
  displayShowMore.value ? (openBlock(), createElementBlock("div", {
@@ -27952,20 +27995,20 @@ and ensure you are accounting for this risk.
27952
27995
  m.render = function(e2, t, r, i, n, o) {
27953
27996
  return openBlock(), createElementBlock("div", mergeProps(e2.sliderProps, { ref: "slider" }), null, 16);
27954
27997
  }, m.__file = "src/Slider.vue";
27955
- const _hoisted_1$N = { class: "lupa-search-result-facet-stats-values" };
27956
- const _hoisted_2$z = {
27998
+ const _hoisted_1$P = { class: "lupa-search-result-facet-stats-values" };
27999
+ const _hoisted_2$B = {
27957
28000
  key: 0,
27958
28001
  class: "lupa-stats-facet-summary"
27959
28002
  };
27960
- const _hoisted_3$q = {
28003
+ const _hoisted_3$s = {
27961
28004
  key: 1,
27962
28005
  class: "lupa-stats-facet-summary-input"
27963
28006
  };
27964
- const _hoisted_4$j = {
28007
+ const _hoisted_4$k = {
27965
28008
  key: 0,
27966
28009
  class: "lupa-stats-range-label"
27967
28010
  };
27968
- const _hoisted_5$c = { class: "lupa-stats-from" };
28011
+ const _hoisted_5$d = { class: "lupa-stats-from" };
27969
28012
  const _hoisted_6$7 = ["max", "min", "pattern", "aria-label"];
27970
28013
  const _hoisted_7$5 = { key: 0 };
27971
28014
  const _hoisted_8$1 = /* @__PURE__ */ createBaseVNode("div", { class: "lupa-stats-separator" }, null, -1);
@@ -27980,7 +28023,7 @@ and ensure you are accounting for this risk.
27980
28023
  key: 2,
27981
28024
  class: "lupa-stats-slider-wrapper"
27982
28025
  };
27983
- const _sfc_main$T = /* @__PURE__ */ defineComponent({
28026
+ const _sfc_main$V = /* @__PURE__ */ defineComponent({
27984
28027
  __name: "StatsFacet",
27985
28028
  props: {
27986
28029
  options: {},
@@ -28161,11 +28204,11 @@ and ensure you are accounting for this risk.
28161
28204
  innerSliderRange.value = value;
28162
28205
  };
28163
28206
  return (_ctx, _cache) => {
28164
- return openBlock(), createElementBlock("div", _hoisted_1$N, [
28165
- !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$z, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$q, [
28207
+ return openBlock(), createElementBlock("div", _hoisted_1$P, [
28208
+ !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$B, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$s, [
28166
28209
  createBaseVNode("div", null, [
28167
- rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$j, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
28168
- createBaseVNode("div", _hoisted_5$c, [
28210
+ rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$k, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
28211
+ createBaseVNode("div", _hoisted_5$d, [
28169
28212
  withDirectives(createBaseVNode("input", {
28170
28213
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
28171
28214
  type: "text",
@@ -28228,17 +28271,17 @@ and ensure you are accounting for this risk.
28228
28271
  };
28229
28272
  }
28230
28273
  });
28231
- const _hoisted_1$M = { class: "lupa-term-checkbox-wrapper" };
28232
- const _hoisted_2$y = { class: "lupa-term-label" };
28233
- const _hoisted_3$p = {
28274
+ const _hoisted_1$O = { class: "lupa-term-checkbox-wrapper" };
28275
+ const _hoisted_2$A = { class: "lupa-term-label" };
28276
+ const _hoisted_3$r = {
28234
28277
  key: 0,
28235
28278
  class: "lupa-term-count"
28236
28279
  };
28237
- const _hoisted_4$i = {
28280
+ const _hoisted_4$j = {
28238
28281
  key: 0,
28239
28282
  class: "lupa-facet-level"
28240
28283
  };
28241
- const _sfc_main$S = /* @__PURE__ */ defineComponent({
28284
+ const _sfc_main$U = /* @__PURE__ */ defineComponent({
28242
28285
  __name: "HierarchyFacetLevel",
28243
28286
  props: {
28244
28287
  options: {},
@@ -28291,7 +28334,7 @@ and ensure you are accounting for this risk.
28291
28334
  "data-cy": "lupa-facet-term",
28292
28335
  onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
28293
28336
  }, [
28294
- createBaseVNode("div", _hoisted_1$M, [
28337
+ createBaseVNode("div", _hoisted_1$O, [
28295
28338
  createBaseVNode("span", {
28296
28339
  class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
28297
28340
  }, null, 2)
@@ -28299,11 +28342,11 @@ and ensure you are accounting for this risk.
28299
28342
  createBaseVNode("div", {
28300
28343
  class: normalizeClass(["lupa-term-checkbox-label", { [getFacetValueClass(_ctx.item)]: true }])
28301
28344
  }, [
28302
- createBaseVNode("span", _hoisted_2$y, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
28303
- _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_3$p, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
28345
+ createBaseVNode("span", _hoisted_2$A, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
28346
+ _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_3$r, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
28304
28347
  ], 2)
28305
28348
  ]),
28306
- showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$i, [
28349
+ showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$j, [
28307
28350
  (openBlock(true), createElementBlock(Fragment, null, renderList(treeItem.value.children, (itemChild) => {
28308
28351
  return openBlock(), createBlock(_component_HierarchyFacetLevel, {
28309
28352
  key: itemChild.title,
@@ -28319,13 +28362,13 @@ and ensure you are accounting for this risk.
28319
28362
  };
28320
28363
  }
28321
28364
  });
28322
- const _hoisted_1$L = {
28365
+ const _hoisted_1$N = {
28323
28366
  class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
28324
28367
  "data-cy": "lupa-search-result-facet-term-values"
28325
28368
  };
28326
- const _hoisted_2$x = { key: 0 };
28327
- const _hoisted_3$o = ["placeholder"];
28328
- const _sfc_main$R = /* @__PURE__ */ defineComponent({
28369
+ const _hoisted_2$z = { key: 0 };
28370
+ const _hoisted_3$q = ["placeholder"];
28371
+ const _sfc_main$T = /* @__PURE__ */ defineComponent({
28329
28372
  __name: "HierarchyFacet",
28330
28373
  props: {
28331
28374
  options: {},
@@ -28380,19 +28423,19 @@ and ensure you are accounting for this risk.
28380
28423
  showAll.value = false;
28381
28424
  };
28382
28425
  return (_ctx, _cache) => {
28383
- return openBlock(), createElementBlock("div", _hoisted_1$L, [
28384
- isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$x, [
28426
+ return openBlock(), createElementBlock("div", _hoisted_1$N, [
28427
+ isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$z, [
28385
28428
  withDirectives(createBaseVNode("input", {
28386
28429
  class: "lupa-term-filter",
28387
28430
  "data-cy": "lupa-term-filter",
28388
28431
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
28389
28432
  placeholder: _ctx.options.labels.facetFilter
28390
- }, null, 8, _hoisted_3$o), [
28433
+ }, null, 8, _hoisted_3$q), [
28391
28434
  [vModelText, termFilter.value]
28392
28435
  ])
28393
28436
  ])) : createCommentVNode("", true),
28394
28437
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
28395
- return openBlock(), createBlock(_sfc_main$S, {
28438
+ return openBlock(), createBlock(_sfc_main$U, {
28396
28439
  key: item.title,
28397
28440
  options: _ctx.options,
28398
28441
  item,
@@ -28416,20 +28459,20 @@ and ensure you are accounting for this risk.
28416
28459
  };
28417
28460
  }
28418
28461
  });
28419
- const _hoisted_1$K = { class: "lupa-facet-label-text" };
28420
- const _hoisted_2$w = {
28462
+ const _hoisted_1$M = { class: "lupa-facet-label-text" };
28463
+ const _hoisted_2$y = {
28421
28464
  key: 0,
28422
28465
  class: "lupa-facet-content",
28423
28466
  "data-cy": "lupa-facet-content"
28424
28467
  };
28425
28468
  const __default__$1 = {
28426
28469
  components: {
28427
- TermFacet: _sfc_main$U,
28428
- StatsFacet: _sfc_main$T,
28429
- HierarchyFacet: _sfc_main$R
28470
+ TermFacet: _sfc_main$W,
28471
+ StatsFacet: _sfc_main$V,
28472
+ HierarchyFacet: _sfc_main$T
28430
28473
  }
28431
28474
  };
28432
- const _sfc_main$Q = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
28475
+ const _sfc_main$S = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
28433
28476
  __name: "FacetDisplay",
28434
28477
  props: {
28435
28478
  options: {},
@@ -28550,12 +28593,12 @@ and ensure you are accounting for this risk.
28550
28593
  "data-cy": "lupa-search-result-facet-label",
28551
28594
  onClick: toggleFacet
28552
28595
  }, [
28553
- createBaseVNode("div", _hoisted_1$K, toDisplayString(facetLabel.value), 1),
28596
+ createBaseVNode("div", _hoisted_1$M, toDisplayString(facetLabel.value), 1),
28554
28597
  createBaseVNode("div", {
28555
28598
  class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
28556
28599
  }, null, 2)
28557
28600
  ], 2),
28558
- isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$w, [
28601
+ isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$y, [
28559
28602
  (openBlock(), createBlock(resolveDynamicComponent(facetType.value), {
28560
28603
  facet: facet.value,
28561
28604
  currentFilters: currentFilters.value[facet.value.key],
@@ -28573,12 +28616,12 @@ and ensure you are accounting for this risk.
28573
28616
  };
28574
28617
  }
28575
28618
  }));
28576
- const _hoisted_1$J = { class: "lupa-search-result-facet-section" };
28577
- const _hoisted_2$v = {
28619
+ const _hoisted_1$L = { class: "lupa-search-result-facet-section" };
28620
+ const _hoisted_2$x = {
28578
28621
  key: 0,
28579
28622
  class: "lupa-facets-title"
28580
28623
  };
28581
- const _sfc_main$P = /* @__PURE__ */ defineComponent({
28624
+ const _sfc_main$R = /* @__PURE__ */ defineComponent({
28582
28625
  __name: "FacetList",
28583
28626
  props: {
28584
28627
  options: {},
@@ -28612,14 +28655,14 @@ and ensure you are accounting for this risk.
28612
28655
  };
28613
28656
  return (_ctx, _cache) => {
28614
28657
  var _a;
28615
- return openBlock(), createElementBlock("div", _hoisted_1$J, [
28616
- _ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$v, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
28658
+ return openBlock(), createElementBlock("div", _hoisted_1$L, [
28659
+ _ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$x, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
28617
28660
  createBaseVNode("div", {
28618
28661
  class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
28619
28662
  }, [
28620
28663
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
28621
28664
  var _a2;
28622
- return openBlock(), createBlock(_sfc_main$Q, {
28665
+ return openBlock(), createBlock(_sfc_main$S, {
28623
28666
  key: facet.key,
28624
28667
  facet,
28625
28668
  currentFilters: currentFiltersValue.value,
@@ -28634,8 +28677,8 @@ and ensure you are accounting for this risk.
28634
28677
  };
28635
28678
  }
28636
28679
  });
28637
- const _hoisted_1$I = ["onClick"];
28638
- const _sfc_main$O = /* @__PURE__ */ defineComponent({
28680
+ const _hoisted_1$K = ["onClick"];
28681
+ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
28639
28682
  __name: "FacetsButton",
28640
28683
  props: {
28641
28684
  options: {}
@@ -28655,12 +28698,12 @@ and ensure you are accounting for this risk.
28655
28698
  key: 0,
28656
28699
  class: "lupa-facets-button-filter",
28657
28700
  onClick: withModifiers(handleClick, ["stop"])
28658
- }, toDisplayString(label.value), 9, _hoisted_1$I)) : createCommentVNode("", true);
28701
+ }, toDisplayString(label.value), 9, _hoisted_1$K)) : createCommentVNode("", true);
28659
28702
  };
28660
28703
  }
28661
28704
  });
28662
- const _hoisted_1$H = { class: "lupa-facets-filter-button-wrapper" };
28663
- const _sfc_main$N = /* @__PURE__ */ defineComponent({
28705
+ const _hoisted_1$J = { class: "lupa-facets-filter-button-wrapper" };
28706
+ const _sfc_main$P = /* @__PURE__ */ defineComponent({
28664
28707
  __name: "Facets",
28665
28708
  props: {
28666
28709
  options: {},
@@ -28746,7 +28789,7 @@ and ensure you are accounting for this risk.
28746
28789
  return openBlock(), createElementBlock("div", {
28747
28790
  class: normalizeClass(["lupa-search-result-facets", { "lupa-search-result-facets-loading": unref(loadingFacets) }])
28748
28791
  }, [
28749
- regularFacets.value ? (openBlock(), createBlock(_sfc_main$P, {
28792
+ regularFacets.value ? (openBlock(), createBlock(_sfc_main$R, {
28750
28793
  key: 0,
28751
28794
  options: _ctx.options,
28752
28795
  facets: regularFacets.value,
@@ -28756,8 +28799,8 @@ and ensure you are accounting for this risk.
28756
28799
  onSelect: handleFacetSelect,
28757
28800
  onClear: clear2
28758
28801
  }, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : createCommentVNode("", true),
28759
- createBaseVNode("div", _hoisted_1$H, [
28760
- showFilterButton.value ? (openBlock(), createBlock(_sfc_main$O, {
28802
+ createBaseVNode("div", _hoisted_1$J, [
28803
+ showFilterButton.value ? (openBlock(), createBlock(_sfc_main$Q, {
28761
28804
  key: 0,
28762
28805
  options: _ctx.options,
28763
28806
  onFilter: filter2
@@ -28767,12 +28810,12 @@ and ensure you are accounting for this risk.
28767
28810
  };
28768
28811
  }
28769
28812
  });
28770
- const _hoisted_1$G = {
28813
+ const _hoisted_1$I = {
28771
28814
  key: 0,
28772
28815
  id: "lupa-search-result-filters",
28773
28816
  class: "lupa-search-result-filters"
28774
28817
  };
28775
- const _sfc_main$M = /* @__PURE__ */ defineComponent({
28818
+ const _sfc_main$O = /* @__PURE__ */ defineComponent({
28776
28819
  __name: "SearchResultsFilters",
28777
28820
  props: {
28778
28821
  options: {},
@@ -28809,19 +28852,19 @@ and ensure you are accounting for this risk.
28809
28852
  __expose({ fetch: fetch2 });
28810
28853
  return (_ctx, _cache) => {
28811
28854
  var _a;
28812
- return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$G, [
28813
- showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$X, {
28855
+ return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$I, [
28856
+ showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$Z, {
28814
28857
  key: 0,
28815
28858
  options: _ctx.options.currentFilters,
28816
28859
  expandable: (_a = _ctx.expandable) != null ? _a : false
28817
28860
  }, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
28818
- _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$V, {
28861
+ _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$X, {
28819
28862
  key: 1,
28820
28863
  options: _ctx.options.categories,
28821
28864
  ref_key: "categoryFilters",
28822
28865
  ref: categoryFilters
28823
28866
  }, null, 8, ["options"])) : createCommentVNode("", true),
28824
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$N, {
28867
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$P, {
28825
28868
  key: 2,
28826
28869
  options: _ctx.options.facets,
28827
28870
  onFilter: filter2
@@ -28830,20 +28873,20 @@ and ensure you are accounting for this risk.
28830
28873
  };
28831
28874
  }
28832
28875
  });
28833
- const _hoisted_1$F = {
28876
+ const _hoisted_1$H = {
28834
28877
  key: 0,
28835
28878
  class: "lupa-mobile-filter-sidebar"
28836
28879
  };
28837
- const _hoisted_2$u = ["onClick"];
28838
- const _hoisted_3$n = { class: "lupa-mobile-sidebar-content" };
28839
- const _hoisted_4$h = { class: "lupa-sidebar-top" };
28840
- const _hoisted_5$b = { class: "lupa-sidebar-title" };
28880
+ const _hoisted_2$w = ["onClick"];
28881
+ const _hoisted_3$p = { class: "lupa-mobile-sidebar-content" };
28882
+ const _hoisted_4$i = { class: "lupa-sidebar-top" };
28883
+ const _hoisted_5$c = { class: "lupa-sidebar-title" };
28841
28884
  const _hoisted_6$6 = {
28842
28885
  key: 0,
28843
28886
  class: "lupa-sidebar-filter-count"
28844
28887
  };
28845
28888
  const _hoisted_7$4 = { class: "lupa-sidebar-filter-options" };
28846
- const _sfc_main$L = /* @__PURE__ */ defineComponent({
28889
+ const _sfc_main$N = /* @__PURE__ */ defineComponent({
28847
28890
  __name: "MobileFilterSidebar",
28848
28891
  props: {
28849
28892
  options: {}
@@ -28874,14 +28917,14 @@ and ensure you are accounting for this risk.
28874
28917
  handleMobileToggle();
28875
28918
  };
28876
28919
  return (_ctx, _cache) => {
28877
- return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$F, [
28920
+ return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$H, [
28878
28921
  createBaseVNode("div", {
28879
28922
  class: "lupa-sidebar-close",
28880
28923
  onClick: withModifiers(handleMobileToggle, ["stop"])
28881
- }, null, 8, _hoisted_2$u),
28882
- createBaseVNode("div", _hoisted_3$n, [
28883
- createBaseVNode("div", _hoisted_4$h, [
28884
- createBaseVNode("div", _hoisted_5$b, [
28924
+ }, null, 8, _hoisted_2$w),
28925
+ createBaseVNode("div", _hoisted_3$p, [
28926
+ createBaseVNode("div", _hoisted_4$i, [
28927
+ createBaseVNode("div", _hoisted_5$c, [
28885
28928
  createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
28886
28929
  isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
28887
28930
  ]),
@@ -28891,7 +28934,7 @@ and ensure you are accounting for this risk.
28891
28934
  })
28892
28935
  ]),
28893
28936
  createBaseVNode("div", _hoisted_7$4, [
28894
- createVNode(_sfc_main$M, {
28937
+ createVNode(_sfc_main$O, {
28895
28938
  options: _ctx.options,
28896
28939
  expandable: isActiveFiltersExpanded.value,
28897
28940
  onFilter: filter2
@@ -28902,14 +28945,14 @@ and ensure you are accounting for this risk.
28902
28945
  };
28903
28946
  }
28904
28947
  });
28905
- const _hoisted_1$E = { id: "lupa-search-results-breadcrumbs" };
28906
- const _hoisted_2$t = ["href", "onClick"];
28907
- const _hoisted_3$m = {
28948
+ const _hoisted_1$G = { id: "lupa-search-results-breadcrumbs" };
28949
+ const _hoisted_2$v = ["href", "onClick"];
28950
+ const _hoisted_3$o = {
28908
28951
  key: 1,
28909
28952
  class: "lupa-search-results-breadcrumb-text"
28910
28953
  };
28911
- const _hoisted_4$g = { key: 2 };
28912
- const _sfc_main$K = /* @__PURE__ */ defineComponent({
28954
+ const _hoisted_4$h = { key: 2 };
28955
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
28913
28956
  __name: "SearchResultsBreadcrumbs",
28914
28957
  props: {
28915
28958
  breadcrumbs: {}
@@ -28934,7 +28977,7 @@ and ensure you are accounting for this risk.
28934
28977
  handleRoutingEvent(link, event, hasEventRouting.value);
28935
28978
  };
28936
28979
  return (_ctx, _cache) => {
28937
- return openBlock(), createElementBlock("div", _hoisted_1$E, [
28980
+ return openBlock(), createElementBlock("div", _hoisted_1$G, [
28938
28981
  (openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
28939
28982
  var _a;
28940
28983
  return openBlock(), createElementBlock("span", {
@@ -28949,20 +28992,20 @@ and ensure you are accounting for this risk.
28949
28992
  var _a2;
28950
28993
  return handleNavigation(e2, (_a2 = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a2 : "");
28951
28994
  }
28952
- }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$t)) : (openBlock(), createElementBlock("span", _hoisted_3$m, toDisplayString(getLabel(breadcrumb.label)), 1)),
28953
- index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$g, toDisplayString((_a = breadcrumb.separator) != null ? _a : "/"), 1)) : createCommentVNode("", true)
28995
+ }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$v)) : (openBlock(), createElementBlock("span", _hoisted_3$o, toDisplayString(getLabel(breadcrumb.label)), 1)),
28996
+ index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$h, toDisplayString((_a = breadcrumb.separator) != null ? _a : "/"), 1)) : createCommentVNode("", true)
28954
28997
  ]);
28955
28998
  }), 128))
28956
28999
  ]);
28957
29000
  };
28958
29001
  }
28959
29002
  });
28960
- const _hoisted_1$D = {
29003
+ const _hoisted_1$F = {
28961
29004
  key: 0,
28962
29005
  id: "lupa-search-result-filters",
28963
29006
  class: "lupa-search-result-filters lupa-search-result-top-filters"
28964
29007
  };
28965
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
29008
+ const _sfc_main$L = /* @__PURE__ */ defineComponent({
28966
29009
  __name: "FiltersTopDropdown",
28967
29010
  props: {
28968
29011
  options: {}
@@ -28979,8 +29022,8 @@ and ensure you are accounting for this risk.
28979
29022
  });
28980
29023
  return (_ctx, _cache) => {
28981
29024
  var _a;
28982
- return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$D, [
28983
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$N, {
29025
+ return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$F, [
29026
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$P, {
28984
29027
  key: 0,
28985
29028
  options: _ctx.options.facets,
28986
29029
  "facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
@@ -28991,8 +29034,8 @@ and ensure you are accounting for this risk.
28991
29034
  };
28992
29035
  }
28993
29036
  });
28994
- const _hoisted_1$C = { id: "lupa-search-results-layout-selection" };
28995
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
29037
+ const _hoisted_1$E = { id: "lupa-search-results-layout-selection" };
29038
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
28996
29039
  __name: "SearchResultsLayoutSelection",
28997
29040
  setup(__props) {
28998
29041
  const searchResultStore = useSearchResultStore();
@@ -29003,7 +29046,7 @@ and ensure you are accounting for this risk.
29003
29046
  searchResultStore.setLayout(layout2);
29004
29047
  };
29005
29048
  return (_ctx, _cache) => {
29006
- return openBlock(), createElementBlock("div", _hoisted_1$C, [
29049
+ return openBlock(), createElementBlock("div", _hoisted_1$E, [
29007
29050
  createBaseVNode("div", {
29008
29051
  class: normalizeClass([
29009
29052
  "lupa-layout-selection-grid",
@@ -29025,11 +29068,11 @@ and ensure you are accounting for this risk.
29025
29068
  };
29026
29069
  }
29027
29070
  });
29028
- const _hoisted_1$B = {
29071
+ const _hoisted_1$D = {
29029
29072
  key: 0,
29030
29073
  class: "lupa-mobile-toggle-filter-count"
29031
29074
  };
29032
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
29075
+ const _sfc_main$J = /* @__PURE__ */ defineComponent({
29033
29076
  __name: "SearchResultsMobileToggle",
29034
29077
  props: {
29035
29078
  labels: {},
@@ -29077,12 +29120,12 @@ and ensure you are accounting for this risk.
29077
29120
  onClick: handleMobileToggle
29078
29121
  }, [
29079
29122
  createTextVNode(toDisplayString(label.value) + " ", 1),
29080
- _ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$B, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
29123
+ _ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$D, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
29081
29124
  ], 2);
29082
29125
  };
29083
29126
  }
29084
29127
  });
29085
- const _sfc_main$G = /* @__PURE__ */ defineComponent({
29128
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
29086
29129
  __name: "SearchResultsMobileFilterClose",
29087
29130
  props: {
29088
29131
  label: {}
@@ -29102,21 +29145,21 @@ and ensure you are accounting for this risk.
29102
29145
  };
29103
29146
  }
29104
29147
  });
29105
- const _hoisted_1$A = {
29148
+ const _hoisted_1$C = {
29106
29149
  key: 0,
29107
29150
  id: "lupa-search-results-page-select",
29108
29151
  "data-cy": "lupa-search-results-page-select"
29109
29152
  };
29110
- const _hoisted_2$s = {
29153
+ const _hoisted_2$u = {
29111
29154
  key: 0,
29112
29155
  class: "lupa-page-number-separator"
29113
29156
  };
29114
- const _hoisted_3$l = ["onClick"];
29115
- const _hoisted_4$f = {
29157
+ const _hoisted_3$n = ["onClick"];
29158
+ const _hoisted_4$g = {
29116
29159
  key: 0,
29117
29160
  class: "lupa-page-number-separator"
29118
29161
  };
29119
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
29162
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
29120
29163
  __name: "SearchResultsPageSelect",
29121
29164
  props: {
29122
29165
  lastPageLabel: {},
@@ -29193,7 +29236,7 @@ and ensure you are accounting for this risk.
29193
29236
  }
29194
29237
  };
29195
29238
  return (_ctx, _cache) => {
29196
- return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$A, [
29239
+ return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$C, [
29197
29240
  showBack.value ? (openBlock(), createElementBlock("div", {
29198
29241
  key: 0,
29199
29242
  class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
@@ -29204,7 +29247,7 @@ and ensure you are accounting for this risk.
29204
29247
  class: "lupa-page-number lupa-page-number-first",
29205
29248
  onClick: _cache[1] || (_cache[1] = () => handlePageChange(1))
29206
29249
  }, " 1 "),
29207
- showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$s, "...")) : createCommentVNode("", true)
29250
+ showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$u, "...")) : createCommentVNode("", true)
29208
29251
  ], 64)) : createCommentVNode("", true),
29209
29252
  (openBlock(true), createElementBlock(Fragment, null, renderList(pages.value, (page) => {
29210
29253
  return openBlock(), createElementBlock("div", {
@@ -29215,10 +29258,10 @@ and ensure you are accounting for this risk.
29215
29258
  page === _ctx.options.selectedPage ? "lupa-page-number-selected" : ""
29216
29259
  ]),
29217
29260
  "data-cy": "lupa-page-number"
29218
- }, toDisplayString(page), 11, _hoisted_3$l);
29261
+ }, toDisplayString(page), 11, _hoisted_3$n);
29219
29262
  }), 128)),
29220
29263
  showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
29221
- showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$f, "...")) : createCommentVNode("", true),
29264
+ showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$g, "...")) : createCommentVNode("", true),
29222
29265
  createBaseVNode("div", {
29223
29266
  class: "lupa-page-number lupa-page-number-last",
29224
29267
  onClick: _cache[2] || (_cache[2] = () => {
@@ -29237,15 +29280,15 @@ and ensure you are accounting for this risk.
29237
29280
  };
29238
29281
  }
29239
29282
  });
29240
- const _hoisted_1$z = {
29283
+ const _hoisted_1$B = {
29241
29284
  id: "lupa-search-results-page-size",
29242
29285
  "data-cy": "lupa-search-results-page-size"
29243
29286
  };
29244
- const _hoisted_2$r = { id: "lupa-select" };
29245
- const _hoisted_3$k = { class: "lupa-select-label" };
29246
- const _hoisted_4$e = ["aria-label"];
29247
- const _hoisted_5$a = ["value"];
29248
- const _sfc_main$E = /* @__PURE__ */ defineComponent({
29287
+ const _hoisted_2$t = { id: "lupa-select" };
29288
+ const _hoisted_3$m = { class: "lupa-select-label" };
29289
+ const _hoisted_4$f = ["aria-label"];
29290
+ const _hoisted_5$b = ["value"];
29291
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
29249
29292
  __name: "SearchResultsPageSize",
29250
29293
  props: {
29251
29294
  labels: {},
@@ -29273,9 +29316,9 @@ and ensure you are accounting for this risk.
29273
29316
  });
29274
29317
  };
29275
29318
  return (_ctx, _cache) => {
29276
- return openBlock(), createElementBlock("div", _hoisted_1$z, [
29277
- createBaseVNode("div", _hoisted_2$r, [
29278
- createBaseVNode("label", _hoisted_3$k, toDisplayString(label.value), 1),
29319
+ return openBlock(), createElementBlock("div", _hoisted_1$B, [
29320
+ createBaseVNode("div", _hoisted_2$t, [
29321
+ createBaseVNode("label", _hoisted_3$m, toDisplayString(label.value), 1),
29279
29322
  createBaseVNode("select", {
29280
29323
  class: "lupa-select-dropdown",
29281
29324
  "aria-label": label.value,
@@ -29288,23 +29331,23 @@ and ensure you are accounting for this risk.
29288
29331
  return openBlock(), createElementBlock("option", {
29289
29332
  key: option,
29290
29333
  value: option
29291
- }, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$a);
29334
+ }, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$b);
29292
29335
  }), 128))
29293
- ], 40, _hoisted_4$e)
29336
+ ], 40, _hoisted_4$f)
29294
29337
  ])
29295
29338
  ]);
29296
29339
  };
29297
29340
  }
29298
29341
  });
29299
- const _hoisted_1$y = {
29342
+ const _hoisted_1$A = {
29300
29343
  id: "lupa-search-results-sort",
29301
29344
  class: "lupa-search-results-sort"
29302
29345
  };
29303
- const _hoisted_2$q = { id: "lupa-select" };
29304
- const _hoisted_3$j = { class: "lupa-select-label" };
29305
- const _hoisted_4$d = ["aria-label"];
29306
- const _hoisted_5$9 = ["value"];
29307
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
29346
+ const _hoisted_2$s = { id: "lupa-select" };
29347
+ const _hoisted_3$l = { class: "lupa-select-label" };
29348
+ const _hoisted_4$e = ["aria-label"];
29349
+ const _hoisted_5$a = ["value"];
29350
+ const _sfc_main$F = /* @__PURE__ */ defineComponent({
29308
29351
  __name: "SearchResultsSort",
29309
29352
  props: {
29310
29353
  options: {},
@@ -29353,9 +29396,9 @@ and ensure you are accounting for this risk.
29353
29396
  previousKey.value = selectedKey.value;
29354
29397
  };
29355
29398
  return (_ctx, _cache) => {
29356
- return openBlock(), createElementBlock("div", _hoisted_1$y, [
29357
- createBaseVNode("div", _hoisted_2$q, [
29358
- createBaseVNode("label", _hoisted_3$j, toDisplayString(_ctx.options.label), 1),
29399
+ return openBlock(), createElementBlock("div", _hoisted_1$A, [
29400
+ createBaseVNode("div", _hoisted_2$s, [
29401
+ createBaseVNode("label", _hoisted_3$l, toDisplayString(_ctx.options.label), 1),
29359
29402
  withDirectives(createBaseVNode("select", {
29360
29403
  class: "lupa-select-dropdown",
29361
29404
  "aria-label": _ctx.options.label,
@@ -29368,9 +29411,9 @@ and ensure you are accounting for this risk.
29368
29411
  return openBlock(), createElementBlock("option", {
29369
29412
  key: option.key,
29370
29413
  value: option.key
29371
- }, toDisplayString(option.label), 9, _hoisted_5$9);
29414
+ }, toDisplayString(option.label), 9, _hoisted_5$a);
29372
29415
  }), 128))
29373
- ], 40, _hoisted_4$d), [
29416
+ ], 40, _hoisted_4$e), [
29374
29417
  [vModelSelect, selectedKey.value]
29375
29418
  ])
29376
29419
  ])
@@ -29378,14 +29421,14 @@ and ensure you are accounting for this risk.
29378
29421
  };
29379
29422
  }
29380
29423
  });
29381
- const _hoisted_1$x = { class: "lupa-toolbar-left" };
29382
- const _hoisted_2$p = {
29424
+ const _hoisted_1$z = { class: "lupa-toolbar-left" };
29425
+ const _hoisted_2$r = {
29383
29426
  key: 0,
29384
29427
  class: "lupa-toolbar-right-title"
29385
29428
  };
29386
- const _hoisted_3$i = { key: 2 };
29387
- const _hoisted_4$c = { key: 4 };
29388
- const _hoisted_5$8 = { key: 6 };
29429
+ const _hoisted_3$k = { key: 2 };
29430
+ const _hoisted_4$d = { key: 4 };
29431
+ const _hoisted_5$9 = { key: 6 };
29389
29432
  const _hoisted_6$5 = { class: "lupa-toolbar-right" };
29390
29433
  const _hoisted_7$3 = {
29391
29434
  key: 0,
@@ -29393,7 +29436,7 @@ and ensure you are accounting for this risk.
29393
29436
  };
29394
29437
  const _hoisted_8 = { key: 2 };
29395
29438
  const _hoisted_9 = { key: 4 };
29396
- const _sfc_main$C = /* @__PURE__ */ defineComponent({
29439
+ const _sfc_main$E = /* @__PURE__ */ defineComponent({
29397
29440
  __name: "SearchResultsToolbar",
29398
29441
  props: {
29399
29442
  options: {},
@@ -29504,39 +29547,39 @@ and ensure you are accounting for this risk.
29504
29547
  id: "lupa-search-results-toolbar",
29505
29548
  class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
29506
29549
  }, [
29507
- createBaseVNode("div", _hoisted_1$x, [
29508
- toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$p, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
29509
- showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$I, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$i)),
29510
- showItemSummary.value ? (openBlock(), createBlock(_sfc_main$_, {
29550
+ createBaseVNode("div", _hoisted_1$z, [
29551
+ toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$r, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
29552
+ showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$K, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$k)),
29553
+ showItemSummary.value ? (openBlock(), createBlock(_sfc_main$10, {
29511
29554
  key: 3,
29512
29555
  label: searchSummaryLabel.value,
29513
29556
  clearable: unref(hasAnyFilter) && showFilterClear.value,
29514
29557
  onClear: handleClearAll
29515
- }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$c)),
29516
- displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$F, {
29558
+ }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$d)),
29559
+ displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$H, {
29517
29560
  key: 5,
29518
29561
  options: paginationOptions.value.pageSelect,
29519
29562
  "last-page-label": paginationOptions.value.labels.showMore,
29520
29563
  "first-page-label": paginationOptions.value.labels.showLess
29521
- }, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_5$8))
29564
+ }, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_5$9))
29522
29565
  ]),
29523
29566
  createBaseVNode("div", _hoisted_6$5, [
29524
29567
  toolbarRightLabel.value ? (openBlock(), createElementBlock("div", _hoisted_7$3, toDisplayString(toolbarRightLabel.value), 1)) : createCommentVNode("", true),
29525
- createVNode(_sfc_main$H, {
29568
+ createVNode(_sfc_main$J, {
29526
29569
  labels: optionsValue.value.labels,
29527
29570
  "show-filter-count": showMobileFilterCount.value
29528
29571
  }, null, 8, ["labels", "show-filter-count"]),
29529
- paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$E, {
29572
+ paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$G, {
29530
29573
  key: 1,
29531
29574
  options: paginationOptions.value.pageSize,
29532
29575
  labels: paginationOptions.value.labels
29533
29576
  }, null, 8, ["options", "labels"])) : (openBlock(), createElementBlock("div", _hoisted_8)),
29534
- sortOptions.value ? (openBlock(), createBlock(_sfc_main$D, {
29577
+ sortOptions.value ? (openBlock(), createBlock(_sfc_main$F, {
29535
29578
  key: 3,
29536
29579
  options: sortOptions.value,
29537
29580
  callbacks: callbacks.value
29538
29581
  }, null, 8, ["options", "callbacks"])) : (openBlock(), createElementBlock("div", _hoisted_9)),
29539
- showFiltersCloseButton.value && unref(isMobileSidebarVisible) ? (openBlock(), createBlock(_sfc_main$G, {
29582
+ showFiltersCloseButton.value && unref(isMobileSidebarVisible) ? (openBlock(), createBlock(_sfc_main$I, {
29540
29583
  key: 5,
29541
29584
  label: optionsValue.value.labels.mobileFilterCloseButton
29542
29585
  }, null, 8, ["label"])) : createCommentVNode("", true)
@@ -29545,7 +29588,7 @@ and ensure you are accounting for this risk.
29545
29588
  };
29546
29589
  }
29547
29590
  });
29548
- const _sfc_main$B = /* @__PURE__ */ defineComponent({
29591
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
29549
29592
  __name: "SearchResultsProductImage",
29550
29593
  props: {
29551
29594
  item: {},
@@ -29553,7 +29596,7 @@ and ensure you are accounting for this risk.
29553
29596
  },
29554
29597
  setup(__props) {
29555
29598
  return (_ctx, _cache) => {
29556
- return openBlock(), createBlock(_sfc_main$1n, {
29599
+ return openBlock(), createBlock(_sfc_main$1p, {
29557
29600
  item: _ctx.item,
29558
29601
  options: _ctx.options,
29559
29602
  "wrapper-class": "lupa-search-results-image-wrapper",
@@ -29562,16 +29605,16 @@ and ensure you are accounting for this risk.
29562
29605
  };
29563
29606
  }
29564
29607
  });
29565
- const _hoisted_1$w = ["title", "innerHTML"];
29566
- const _hoisted_2$o = ["title"];
29567
- const _hoisted_3$h = ["href", "innerHTML"];
29568
- const _hoisted_4$b = ["title"];
29569
- const _hoisted_5$7 = {
29608
+ const _hoisted_1$y = ["title", "innerHTML"];
29609
+ const _hoisted_2$q = ["title"];
29610
+ const _hoisted_3$j = ["href", "innerHTML"];
29611
+ const _hoisted_4$c = ["title"];
29612
+ const _hoisted_5$8 = {
29570
29613
  key: 0,
29571
29614
  class: "lupa-search-results-product-title-text"
29572
29615
  };
29573
29616
  const _hoisted_6$4 = ["href"];
29574
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
29617
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
29575
29618
  __name: "SearchResultsProductTitle",
29576
29619
  props: {
29577
29620
  item: {},
@@ -29608,7 +29651,7 @@ and ensure you are accounting for this risk.
29608
29651
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
29609
29652
  title: sanitizedTitle.value,
29610
29653
  innerHTML: sanitizedTitle.value
29611
- }, null, 12, _hoisted_1$w)) : isHtml.value && _ctx.options.link ? (openBlock(), createElementBlock("div", {
29654
+ }, null, 12, _hoisted_1$y)) : isHtml.value && _ctx.options.link ? (openBlock(), createElementBlock("div", {
29612
29655
  key: 1,
29613
29656
  class: "lupa-search-results-product-title",
29614
29657
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
@@ -29619,26 +29662,26 @@ and ensure you are accounting for this risk.
29619
29662
  class: "lupa-search-results-product-title-text lupa-title-link",
29620
29663
  innerHTML: sanitizedTitle.value,
29621
29664
  onClick: handleNavigation
29622
- }, null, 8, _hoisted_3$h)
29623
- ], 12, _hoisted_2$o)) : (openBlock(), createElementBlock("div", {
29665
+ }, null, 8, _hoisted_3$j)
29666
+ ], 12, _hoisted_2$q)) : (openBlock(), createElementBlock("div", {
29624
29667
  key: 2,
29625
29668
  class: "lupa-search-results-product-title",
29626
29669
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
29627
29670
  title: title.value
29628
29671
  }, [
29629
- !_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_5$7, toDisplayString(title.value), 1)) : createCommentVNode("", true),
29672
+ !_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_5$8, toDisplayString(title.value), 1)) : createCommentVNode("", true),
29630
29673
  _ctx.options.link ? (openBlock(), createElementBlock("a", {
29631
29674
  key: 1,
29632
29675
  href: _ctx.link,
29633
29676
  class: "lupa-search-results-product-title-text lupa-title-link",
29634
29677
  onClick: handleNavigation
29635
29678
  }, toDisplayString(title.value), 9, _hoisted_6$4)) : createCommentVNode("", true)
29636
- ], 12, _hoisted_4$b));
29679
+ ], 12, _hoisted_4$c));
29637
29680
  };
29638
29681
  }
29639
29682
  });
29640
- const _hoisted_1$v = ["innerHTML"];
29641
- const _sfc_main$z = /* @__PURE__ */ defineComponent({
29683
+ const _hoisted_1$x = ["innerHTML"];
29684
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
29642
29685
  __name: "SearchResultsProductDescription",
29643
29686
  props: {
29644
29687
  item: {},
@@ -29665,7 +29708,7 @@ and ensure you are accounting for this risk.
29665
29708
  class: "lupa-search-results-product-description",
29666
29709
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
29667
29710
  innerHTML: sanitizedDescription.value
29668
- }, null, 12, _hoisted_1$v)) : (openBlock(), createElementBlock("div", {
29711
+ }, null, 12, _hoisted_1$x)) : (openBlock(), createElementBlock("div", {
29669
29712
  key: 1,
29670
29713
  class: "lupa-search-results-product-description",
29671
29714
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
@@ -29673,15 +29716,15 @@ and ensure you are accounting for this risk.
29673
29716
  };
29674
29717
  }
29675
29718
  });
29676
- const _hoisted_1$u = { id: "lupa-search-results-rating" };
29677
- const _hoisted_2$n = { class: "lupa-ratings" };
29678
- const _hoisted_3$g = { class: "lupa-ratings-base" };
29679
- const _hoisted_4$a = ["innerHTML"];
29680
- const _hoisted_5$6 = { class: "lupa-rating-wrapper" };
29719
+ const _hoisted_1$w = { id: "lupa-search-results-rating" };
29720
+ const _hoisted_2$p = { class: "lupa-ratings" };
29721
+ const _hoisted_3$i = { class: "lupa-ratings-base" };
29722
+ const _hoisted_4$b = ["innerHTML"];
29723
+ const _hoisted_5$7 = { class: "lupa-rating-wrapper" };
29681
29724
  const _hoisted_6$3 = ["innerHTML"];
29682
29725
  const _hoisted_7$2 = ["href"];
29683
29726
  const STAR_COUNT = 5;
29684
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
29727
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
29685
29728
  __name: "SearchResultsProductRating",
29686
29729
  props: {
29687
29730
  item: {},
@@ -29718,18 +29761,18 @@ and ensure you are accounting for this risk.
29718
29761
  return generateLink(props.options.links.ratingDetails, props.item);
29719
29762
  });
29720
29763
  return (_ctx, _cache) => {
29721
- return openBlock(), createElementBlock("div", _hoisted_1$u, [
29722
- createBaseVNode("div", _hoisted_2$n, [
29723
- createBaseVNode("div", _hoisted_3$g, [
29764
+ return openBlock(), createElementBlock("div", _hoisted_1$w, [
29765
+ createBaseVNode("div", _hoisted_2$p, [
29766
+ createBaseVNode("div", _hoisted_3$i, [
29724
29767
  (openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
29725
29768
  return openBlock(), createElementBlock("div", {
29726
29769
  key: index,
29727
29770
  innerHTML: star,
29728
29771
  class: "lupa-rating lupa-rating-not-highlighted"
29729
- }, null, 8, _hoisted_4$a);
29772
+ }, null, 8, _hoisted_4$b);
29730
29773
  }), 128))
29731
29774
  ]),
29732
- createBaseVNode("div", _hoisted_5$6, [
29775
+ createBaseVNode("div", _hoisted_5$7, [
29733
29776
  createBaseVNode("div", {
29734
29777
  class: "lupa-ratings-highlighted",
29735
29778
  style: normalizeStyle({ width: ratingPercentage.value + "%" })
@@ -29752,11 +29795,11 @@ and ensure you are accounting for this risk.
29752
29795
  };
29753
29796
  }
29754
29797
  });
29755
- const _hoisted_1$t = {
29798
+ const _hoisted_1$v = {
29756
29799
  class: "lupa-search-results-product-regular-price",
29757
29800
  "data-cy": "lupa-search-results-product-regular-price"
29758
29801
  };
29759
- const _sfc_main$x = /* @__PURE__ */ defineComponent({
29802
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
29760
29803
  __name: "SearchResultsProductRegularPrice",
29761
29804
  props: {
29762
29805
  item: {},
@@ -29775,11 +29818,11 @@ and ensure you are accounting for this risk.
29775
29818
  );
29776
29819
  });
29777
29820
  return (_ctx, _cache) => {
29778
- return openBlock(), createElementBlock("div", _hoisted_1$t, toDisplayString(price.value), 1);
29821
+ return openBlock(), createElementBlock("div", _hoisted_1$v, toDisplayString(price.value), 1);
29779
29822
  };
29780
29823
  }
29781
29824
  });
29782
- const _sfc_main$w = /* @__PURE__ */ defineComponent({
29825
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
29783
29826
  __name: "SearchResultsProductPrice",
29784
29827
  props: {
29785
29828
  item: {},
@@ -29810,12 +29853,12 @@ and ensure you are accounting for this risk.
29810
29853
  };
29811
29854
  }
29812
29855
  });
29813
- const _hoisted_1$s = { class: "lupa-search-results-add-to-cart-wrapper" };
29814
- const _hoisted_2$m = { class: "lupa-search-results-product-addtocart" };
29815
- const _hoisted_3$f = ["disabled"];
29816
- const _hoisted_4$9 = ["href"];
29817
- const _hoisted_5$5 = ["id", "disabled", "onClick"];
29818
- const _sfc_main$v = /* @__PURE__ */ defineComponent({
29856
+ const _hoisted_1$u = { class: "lupa-search-results-add-to-cart-wrapper" };
29857
+ const _hoisted_2$o = { class: "lupa-search-results-product-addtocart" };
29858
+ const _hoisted_3$h = ["disabled"];
29859
+ const _hoisted_4$a = ["href"];
29860
+ const _hoisted_5$6 = ["id", "disabled", "onClick"];
29861
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
29819
29862
  __name: "SearchResultsProductAddToCart",
29820
29863
  props: {
29821
29864
  item: {},
@@ -29858,16 +29901,16 @@ and ensure you are accounting for this risk.
29858
29901
  return Boolean(props.link && props.options.link);
29859
29902
  });
29860
29903
  return (_ctx, _cache) => {
29861
- return openBlock(), createElementBlock("div", _hoisted_1$s, [
29862
- createBaseVNode("div", _hoisted_2$m, [
29904
+ return openBlock(), createElementBlock("div", _hoisted_1$u, [
29905
+ createBaseVNode("div", _hoisted_2$o, [
29863
29906
  hasLink.value ? (openBlock(), createElementBlock("button", mergeProps({
29864
29907
  key: 0,
29865
29908
  class: loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart",
29866
29909
  "data-cy": "lupa-add-to-cart",
29867
29910
  disabled: !inStockValue.value || loading.value
29868
29911
  }, _ctx.dynamicAttributes, { onClick: handleClick }), [
29869
- createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$9)
29870
- ], 16, _hoisted_3$f)) : (openBlock(), createElementBlock("button", mergeProps({
29912
+ createBaseVNode("a", { href: _ctx.link }, toDisplayString(label.value), 9, _hoisted_4$a)
29913
+ ], 16, _hoisted_3$h)) : (openBlock(), createElementBlock("button", mergeProps({
29871
29914
  key: 1,
29872
29915
  id: id.value,
29873
29916
  class: loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart",
@@ -29875,18 +29918,18 @@ and ensure you are accounting for this risk.
29875
29918
  disabled: !inStockValue.value || loading.value
29876
29919
  }, _ctx.dynamicAttributes, {
29877
29920
  onClick: withModifiers(handleClick, ["stop"])
29878
- }), toDisplayString(label.value), 17, _hoisted_5$5))
29921
+ }), toDisplayString(label.value), 17, _hoisted_5$6))
29879
29922
  ])
29880
29923
  ]);
29881
29924
  };
29882
29925
  }
29883
29926
  });
29884
- const _hoisted_1$r = ["innerHTML"];
29885
- const _hoisted_2$l = { key: 0 };
29886
- const _hoisted_3$e = { key: 1 };
29887
- const _hoisted_4$8 = { class: "lupa-search-box-custom-label" };
29888
- const _hoisted_5$4 = { class: "lupa-search-box-custom-text" };
29889
- const _sfc_main$u = /* @__PURE__ */ defineComponent({
29927
+ const _hoisted_1$t = ["innerHTML"];
29928
+ const _hoisted_2$n = { key: 0 };
29929
+ const _hoisted_3$g = { key: 1 };
29930
+ const _hoisted_4$9 = { class: "lupa-search-box-custom-label" };
29931
+ const _hoisted_5$5 = { class: "lupa-search-box-custom-text" };
29932
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
29890
29933
  __name: "SearchResultsProductCustom",
29891
29934
  props: {
29892
29935
  item: {},
@@ -29924,20 +29967,20 @@ and ensure you are accounting for this risk.
29924
29967
  key: 0,
29925
29968
  class: className.value,
29926
29969
  innerHTML: text.value
29927
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$r)) : (openBlock(), createElementBlock("div", mergeProps({
29970
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$t)) : (openBlock(), createElementBlock("div", mergeProps({
29928
29971
  key: 1,
29929
29972
  class: className.value
29930
29973
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
29931
- !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$l, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$e, [
29932
- createBaseVNode("div", _hoisted_4$8, toDisplayString(label.value), 1),
29933
- createBaseVNode("div", _hoisted_5$4, toDisplayString(text.value), 1)
29974
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$n, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$g, [
29975
+ createBaseVNode("div", _hoisted_4$9, toDisplayString(label.value), 1),
29976
+ createBaseVNode("div", _hoisted_5$5, toDisplayString(text.value), 1)
29934
29977
  ]))
29935
29978
  ], 16));
29936
29979
  };
29937
29980
  }
29938
29981
  });
29939
- const _hoisted_1$q = ["innerHTML"];
29940
- const _sfc_main$t = /* @__PURE__ */ defineComponent({
29982
+ const _hoisted_1$s = ["innerHTML"];
29983
+ const _sfc_main$v = /* @__PURE__ */ defineComponent({
29941
29984
  __name: "SearchResultsProductCustomHtmlElement",
29942
29985
  props: {
29943
29986
  item: {},
@@ -29968,15 +30011,15 @@ and ensure you are accounting for this risk.
29968
30011
  return openBlock(), createElementBlock("div", mergeProps({
29969
30012
  class: className.value,
29970
30013
  innerHTML: text.value
29971
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$q);
30014
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$s);
29972
30015
  };
29973
30016
  }
29974
30017
  });
29975
- const _hoisted_1$p = { id: "lupa-search-results-rating" };
29976
- const _hoisted_2$k = ["innerHTML"];
29977
- const _hoisted_3$d = { class: "lupa-ratings" };
29978
- const _hoisted_4$7 = ["href"];
29979
- const _sfc_main$s = /* @__PURE__ */ defineComponent({
30018
+ const _hoisted_1$r = { id: "lupa-search-results-rating" };
30019
+ const _hoisted_2$m = ["innerHTML"];
30020
+ const _hoisted_3$f = { class: "lupa-ratings" };
30021
+ const _hoisted_4$8 = ["href"];
30022
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
29980
30023
  __name: "SearchResultsProductSingleStarRating",
29981
30024
  props: {
29982
30025
  item: {},
@@ -30004,35 +30047,35 @@ and ensure you are accounting for this risk.
30004
30047
  return RATING_STAR_HTML;
30005
30048
  });
30006
30049
  return (_ctx, _cache) => {
30007
- return openBlock(), createElementBlock("div", _hoisted_1$p, [
30050
+ return openBlock(), createElementBlock("div", _hoisted_1$r, [
30008
30051
  createBaseVNode("div", {
30009
30052
  innerHTML: star.value,
30010
30053
  class: "lupa-rating lupa-rating-highlighted"
30011
- }, null, 8, _hoisted_2$k),
30012
- createBaseVNode("div", _hoisted_3$d, toDisplayString(rating.value), 1),
30054
+ }, null, 8, _hoisted_2$m),
30055
+ createBaseVNode("div", _hoisted_3$f, toDisplayString(rating.value), 1),
30013
30056
  createBaseVNode("a", {
30014
30057
  href: ratingLink.value,
30015
30058
  class: "lupa-total-ratings"
30016
- }, toDisplayString(totalRatings.value), 9, _hoisted_4$7)
30059
+ }, toDisplayString(totalRatings.value), 9, _hoisted_4$8)
30017
30060
  ]);
30018
30061
  };
30019
30062
  }
30020
30063
  });
30021
30064
  const __default__ = {
30022
30065
  components: {
30023
- SearchResultsProductImage: _sfc_main$B,
30024
- SearchResultsProductTitle: _sfc_main$A,
30025
- SearchResultsProductDescription: _sfc_main$z,
30026
- SearchResultsProductRating: _sfc_main$y,
30027
- SearchResultsProductRegularPrice: _sfc_main$x,
30028
- SearchResultsProductPrice: _sfc_main$w,
30029
- SearchResultsProductAddToCart: _sfc_main$v,
30030
- SearchResultsProductCustom: _sfc_main$u,
30031
- SearchResultsProductCustomHtmlElement: _sfc_main$t,
30032
- SearchResultsProductSingleStarRating: _sfc_main$s
30033
- }
30034
- };
30035
- const _sfc_main$r = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
30066
+ SearchResultsProductImage: _sfc_main$D,
30067
+ SearchResultsProductTitle: _sfc_main$C,
30068
+ SearchResultsProductDescription: _sfc_main$B,
30069
+ SearchResultsProductRating: _sfc_main$A,
30070
+ SearchResultsProductRegularPrice: _sfc_main$z,
30071
+ SearchResultsProductPrice: _sfc_main$y,
30072
+ SearchResultsProductAddToCart: _sfc_main$x,
30073
+ SearchResultsProductCustom: _sfc_main$w,
30074
+ SearchResultsProductCustomHtmlElement: _sfc_main$v,
30075
+ SearchResultsProductSingleStarRating: _sfc_main$u
30076
+ }
30077
+ };
30078
+ const _sfc_main$t = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
30036
30079
  __name: "SearchResultsProductCardElement",
30037
30080
  props: {
30038
30081
  item: {},
@@ -30114,14 +30157,14 @@ and ensure you are accounting for this risk.
30114
30157
  };
30115
30158
  }
30116
30159
  }));
30117
- const _hoisted_1$o = ["onMouseup"];
30118
- const _hoisted_2$j = ["href"];
30119
- const _hoisted_3$c = {
30160
+ const _hoisted_1$q = ["onMouseup"];
30161
+ const _hoisted_2$l = ["href"];
30162
+ const _hoisted_3$e = {
30120
30163
  key: 0,
30121
30164
  class: "lupa-out-of-stock"
30122
30165
  };
30123
- const _hoisted_4$6 = { class: "lupa-search-result-product-details-section" };
30124
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
30166
+ const _hoisted_4$7 = { class: "lupa-search-result-product-details-section" };
30167
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
30125
30168
  __name: "SearchResultsProductCard",
30126
30169
  props: {
30127
30170
  product: {},
@@ -30286,7 +30329,7 @@ and ensure you are accounting for this risk.
30286
30329
  onClick: handleClick,
30287
30330
  onMouseup: withModifiers(handleClick, ["middle", "exact"])
30288
30331
  }), [
30289
- createVNode(_sfc_main$17, { options: badgesOptions.value }, null, 8, ["options"]),
30332
+ createVNode(_sfc_main$19, { options: badgesOptions.value }, null, 8, ["options"]),
30290
30333
  createBaseVNode("div", {
30291
30334
  class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
30292
30335
  }, [
@@ -30296,7 +30339,7 @@ and ensure you are accounting for this risk.
30296
30339
  onClick: handleNavigation
30297
30340
  }, [
30298
30341
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
30299
- return openBlock(), createBlock(_sfc_main$r, {
30342
+ return openBlock(), createBlock(_sfc_main$t, {
30300
30343
  class: "lupa-search-results-product-element",
30301
30344
  item: _ctx.product,
30302
30345
  element,
@@ -30307,16 +30350,16 @@ and ensure you are accounting for this risk.
30307
30350
  onProductEvent: handleProductEvent
30308
30351
  }, null, 8, ["item", "element", "labels", "inStock", "link"]);
30309
30352
  }), 128)),
30310
- createVNode(_sfc_main$17, {
30353
+ createVNode(_sfc_main$19, {
30311
30354
  options: badgesOptions.value,
30312
30355
  position: "image",
30313
30356
  class: "lupa-image-badges"
30314
30357
  }, null, 8, ["options"]),
30315
- ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_3$c, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
30316
- ], 8, _hoisted_2$j),
30317
- createBaseVNode("div", _hoisted_4$6, [
30358
+ ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_3$e, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
30359
+ ], 8, _hoisted_2$l),
30360
+ createBaseVNode("div", _hoisted_4$7, [
30318
30361
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
30319
- return openBlock(), createBlock(_sfc_main$r, {
30362
+ return openBlock(), createBlock(_sfc_main$t, {
30320
30363
  class: "lupa-search-results-product-element",
30321
30364
  item: _ctx.product,
30322
30365
  element,
@@ -30334,7 +30377,7 @@ and ensure you are accounting for this risk.
30334
30377
  class: normalizeClass("lupa-element-group-" + group)
30335
30378
  }, [
30336
30379
  (openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
30337
- return openBlock(), createBlock(_sfc_main$r, {
30380
+ return openBlock(), createBlock(_sfc_main$t, {
30338
30381
  class: "lupa-search-results-product-element",
30339
30382
  item: _ctx.product,
30340
30383
  element,
@@ -30348,27 +30391,27 @@ and ensure you are accounting for this risk.
30348
30391
  ], 2);
30349
30392
  }), 128))
30350
30393
  ], 2)
30351
- ], 16, _hoisted_1$o);
30394
+ ], 16, _hoisted_1$q);
30352
30395
  };
30353
30396
  }
30354
30397
  });
30355
- const _hoisted_1$n = {
30398
+ const _hoisted_1$p = {
30356
30399
  id: "lupa-search-results-similar-queries",
30357
30400
  "data-cy": "lupa-search-results-similar-queries"
30358
30401
  };
30359
- const _hoisted_2$i = { class: "lupa-similar-queries-label" };
30360
- const _hoisted_3$b = {
30402
+ const _hoisted_2$k = { class: "lupa-similar-queries-label" };
30403
+ const _hoisted_3$d = {
30361
30404
  class: "lupa-similar-query-label",
30362
30405
  "data-cy": "lupa-similar-query-label"
30363
30406
  };
30364
- const _hoisted_4$5 = ["onClick"];
30365
- const _hoisted_5$3 = ["innerHTML"];
30407
+ const _hoisted_4$6 = ["onClick"];
30408
+ const _hoisted_5$4 = ["innerHTML"];
30366
30409
  const _hoisted_6$2 = { key: 0 };
30367
30410
  const _hoisted_7$1 = {
30368
30411
  class: "lupa-products",
30369
30412
  "data-cy": "lupa-products"
30370
30413
  };
30371
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
30414
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
30372
30415
  __name: "SearchResultsSimilarQueries",
30373
30416
  props: {
30374
30417
  labels: {},
@@ -30406,11 +30449,11 @@ and ensure you are accounting for this risk.
30406
30449
  };
30407
30450
  };
30408
30451
  return (_ctx, _cache) => {
30409
- return openBlock(), createElementBlock("div", _hoisted_1$n, [
30410
- createBaseVNode("div", _hoisted_2$i, toDisplayString(_ctx.labels.similarQueries), 1),
30452
+ return openBlock(), createElementBlock("div", _hoisted_1$p, [
30453
+ createBaseVNode("div", _hoisted_2$k, toDisplayString(_ctx.labels.similarQueries), 1),
30411
30454
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
30412
30455
  return openBlock(), createElementBlock("div", { key: index }, [
30413
- createBaseVNode("div", _hoisted_3$b, [
30456
+ createBaseVNode("div", _hoisted_3$d, [
30414
30457
  createBaseVNode("span", null, toDisplayString(similarQueryLabel.value), 1),
30415
30458
  createBaseVNode("span", {
30416
30459
  id: "lupa-similar-query-text-component",
@@ -30420,13 +30463,13 @@ and ensure you are accounting for this risk.
30420
30463
  }, [
30421
30464
  createBaseVNode("span", {
30422
30465
  innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
30423
- }, null, 8, _hoisted_5$3),
30466
+ }, null, 8, _hoisted_5$4),
30424
30467
  similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$2, " (" + toDisplayString(similarQuery.count) + ")", 1)) : createCommentVNode("", true)
30425
- ], 8, _hoisted_4$5)
30468
+ ], 8, _hoisted_4$6)
30426
30469
  ]),
30427
30470
  createBaseVNode("div", _hoisted_7$1, [
30428
30471
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
30429
- return openBlock(), createBlock(_sfc_main$q, {
30472
+ return openBlock(), createBlock(_sfc_main$s, {
30430
30473
  style: normalizeStyle(_ctx.columnSize),
30431
30474
  key: getDocumentKey(index2, product),
30432
30475
  product,
@@ -30441,15 +30484,15 @@ and ensure you are accounting for this risk.
30441
30484
  };
30442
30485
  }
30443
30486
  });
30444
- const _hoisted_1$m = {
30487
+ const _hoisted_1$o = {
30445
30488
  key: 0,
30446
30489
  class: "lupa-results-additional-panel"
30447
30490
  };
30448
- const _hoisted_2$h = {
30491
+ const _hoisted_2$j = {
30449
30492
  class: "lupa-results-additional-panel-items",
30450
30493
  "data-cy": "lupa-results-additional-panel-items"
30451
30494
  };
30452
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
30495
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
30453
30496
  __name: "AdditionalPanel",
30454
30497
  props: {
30455
30498
  panel: {},
@@ -30522,10 +30565,10 @@ and ensure you are accounting for this risk.
30522
30565
  handleQueryChange();
30523
30566
  });
30524
30567
  return (_ctx, _cache) => {
30525
- return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$m, [
30526
- createBaseVNode("div", _hoisted_2$h, [
30568
+ return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$o, [
30569
+ createBaseVNode("div", _hoisted_2$j, [
30527
30570
  (openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
30528
- return openBlock(), createBlock(_sfc_main$q, {
30571
+ return openBlock(), createBlock(_sfc_main$s, {
30529
30572
  key: index,
30530
30573
  product: item,
30531
30574
  options: _ctx.panel,
@@ -30543,11 +30586,11 @@ and ensure you are accounting for this risk.
30543
30586
  };
30544
30587
  }
30545
30588
  });
30546
- const _hoisted_1$l = {
30589
+ const _hoisted_1$n = {
30547
30590
  key: 0,
30548
30591
  class: "lupa-results-additional-panels"
30549
30592
  };
30550
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
30593
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
30551
30594
  __name: "AdditionalPanels",
30552
30595
  props: {
30553
30596
  options: {},
@@ -30564,9 +30607,9 @@ and ensure you are accounting for this risk.
30564
30607
  return locationPanels.value.length > 0;
30565
30608
  });
30566
30609
  return (_ctx, _cache) => {
30567
- return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$l, [
30610
+ return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$n, [
30568
30611
  (openBlock(true), createElementBlock(Fragment, null, renderList(locationPanels.value, (panel) => {
30569
- return openBlock(), createBlock(_sfc_main$o, {
30612
+ return openBlock(), createBlock(_sfc_main$q, {
30570
30613
  key: panel.queryKey,
30571
30614
  panel,
30572
30615
  options: _ctx.sdkOptions
@@ -30583,29 +30626,29 @@ and ensure you are accounting for this risk.
30583
30626
  }
30584
30627
  return target;
30585
30628
  };
30586
- const _sfc_main$m = {};
30587
- const _hoisted_1$k = { class: "lupa-spinner-wrapper" };
30588
- const _hoisted_2$g = { class: "lupa-spinner" };
30629
+ const _sfc_main$o = {};
30630
+ const _hoisted_1$m = { class: "lupa-spinner-wrapper" };
30631
+ const _hoisted_2$i = { class: "lupa-spinner" };
30589
30632
  function _sfc_render(_ctx, _cache) {
30590
- return openBlock(), createElementBlock("div", _hoisted_1$k, [
30591
- createBaseVNode("div", _hoisted_2$g, [
30633
+ return openBlock(), createElementBlock("div", _hoisted_1$m, [
30634
+ createBaseVNode("div", _hoisted_2$i, [
30592
30635
  (openBlock(), createElementBlock(Fragment, null, renderList(12, (x2) => {
30593
30636
  return createBaseVNode("div", { key: x2 });
30594
30637
  }), 64))
30595
30638
  ])
30596
30639
  ]);
30597
30640
  }
30598
- const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render]]);
30599
- const _hoisted_1$j = {
30641
+ const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render]]);
30642
+ const _hoisted_1$l = {
30600
30643
  id: "lupa-search-results-similar-results",
30601
30644
  "data-cy": "lupa-search-results-similar-results"
30602
30645
  };
30603
- const _hoisted_2$f = { class: "lupa-similar-results-label" };
30604
- const _hoisted_3$a = {
30646
+ const _hoisted_2$h = { class: "lupa-similar-results-label" };
30647
+ const _hoisted_3$c = {
30605
30648
  class: "lupa-products",
30606
30649
  "data-cy": "lupa-products"
30607
30650
  };
30608
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
30651
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
30609
30652
  __name: "SearchResultsSimilarResults",
30610
30653
  props: {
30611
30654
  columnSize: {},
@@ -30626,11 +30669,11 @@ and ensure you are accounting for this risk.
30626
30669
  };
30627
30670
  });
30628
30671
  return (_ctx, _cache) => {
30629
- return openBlock(), createElementBlock("div", _hoisted_1$j, [
30630
- createBaseVNode("div", _hoisted_2$f, toDisplayString(_ctx.labels.similarResultsLabel), 1),
30631
- createBaseVNode("div", _hoisted_3$a, [
30672
+ return openBlock(), createElementBlock("div", _hoisted_1$l, [
30673
+ createBaseVNode("div", _hoisted_2$h, toDisplayString(_ctx.labels.similarResultsLabel), 1),
30674
+ createBaseVNode("div", _hoisted_3$c, [
30632
30675
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarResults.value.items, (product, index) => {
30633
- return openBlock(), createBlock(_sfc_main$q, {
30676
+ return openBlock(), createBlock(_sfc_main$s, {
30634
30677
  style: normalizeStyle(_ctx.columnSize),
30635
30678
  key: getDocumentKey(index, product),
30636
30679
  product,
@@ -30743,20 +30786,23 @@ and ensure you are accounting for this risk.
30743
30786
  return [];
30744
30787
  });
30745
30788
  const extractRelatedSource = (source, searchResults2, options, activeFilters) => __async2(void 0, null, function* () {
30789
+ if (!source) {
30790
+ return [];
30791
+ }
30746
30792
  switch (source.type) {
30747
30793
  case RelatedQuerySourceType.FACETS:
30748
30794
  return extractFacetsRelatedSource(source, searchResults2, options, activeFilters);
30749
30795
  }
30750
30796
  });
30751
- const _hoisted_1$i = { class: "lupa-related-query-item" };
30752
- const _hoisted_2$e = { class: "lupa-related-query-image" };
30753
- const _hoisted_3$9 = { class: "lupa-related-query-label" };
30754
- const _hoisted_4$4 = { class: "lupa-related-query-title" };
30755
- const _hoisted_5$2 = {
30797
+ const _hoisted_1$k = { class: "lupa-related-query-item" };
30798
+ const _hoisted_2$g = { class: "lupa-related-query-image" };
30799
+ const _hoisted_3$b = { class: "lupa-related-query-label" };
30800
+ const _hoisted_4$5 = { class: "lupa-related-query-title" };
30801
+ const _hoisted_5$3 = {
30756
30802
  key: 0,
30757
30803
  class: "lupa-related-query-count"
30758
30804
  };
30759
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
30805
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
30760
30806
  __name: "RelatedQueryPanel",
30761
30807
  props: {
30762
30808
  query: {},
@@ -30851,9 +30897,9 @@ and ensure you are accounting for this risk.
30851
30897
  });
30852
30898
  return (_ctx, _cache) => {
30853
30899
  var _a;
30854
- return openBlock(), createElementBlock("div", _hoisted_1$i, [
30855
- createBaseVNode("div", _hoisted_2$e, [
30856
- itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1n, {
30900
+ return openBlock(), createElementBlock("div", _hoisted_1$k, [
30901
+ createBaseVNode("div", _hoisted_2$g, [
30902
+ itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1p, {
30857
30903
  key: 0,
30858
30904
  "wrapper-class": "lupa-related-query-image-wrapper",
30859
30905
  "image-class": "lupa-related-query-image",
@@ -30861,24 +30907,24 @@ and ensure you are accounting for this risk.
30861
30907
  options: image.value
30862
30908
  }, null, 8, ["item", "options"])) : createCommentVNode("", true)
30863
30909
  ]),
30864
- createBaseVNode("div", _hoisted_3$9, [
30865
- createBaseVNode("span", _hoisted_4$4, toDisplayString(_ctx.query), 1),
30866
- ((_a = _ctx.options) == null ? void 0 : _a.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$2, "(" + toDisplayString(totalItemCount.value) + ")", 1)) : createCommentVNode("", true)
30910
+ createBaseVNode("div", _hoisted_3$b, [
30911
+ createBaseVNode("span", _hoisted_4$5, toDisplayString(_ctx.query), 1),
30912
+ ((_a = _ctx.options) == null ? void 0 : _a.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$3, "(" + toDisplayString(totalItemCount.value) + ")", 1)) : createCommentVNode("", true)
30867
30913
  ])
30868
30914
  ]);
30869
30915
  };
30870
30916
  }
30871
30917
  });
30872
- const _hoisted_1$h = {
30918
+ const _hoisted_1$j = {
30873
30919
  key: 0,
30874
30920
  class: "lupa-related-queries"
30875
30921
  };
30876
- const _hoisted_2$d = {
30922
+ const _hoisted_2$f = {
30877
30923
  key: 0,
30878
30924
  class: "lupa-related-queries-title"
30879
30925
  };
30880
- const _hoisted_3$8 = ["onClick"];
30881
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
30926
+ const _hoisted_3$a = ["onClick"];
30927
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
30882
30928
  __name: "RelatedQueries",
30883
30929
  props: {
30884
30930
  options: {}
@@ -30890,7 +30936,7 @@ and ensure you are accounting for this risk.
30890
30936
  const optionsStore = useOptionsStore();
30891
30937
  const { searchResult, lastResultsSource } = storeToRefs(searchResultStore);
30892
30938
  const { searchResultOptions } = storeToRefs(optionsStore);
30893
- const relatedQueries = ref([]);
30939
+ const relatedQueries2 = ref([]);
30894
30940
  const allDisplayItems = ref({});
30895
30941
  const querySourceResultMap = ref({});
30896
30942
  const currentSearchText = computed(() => {
@@ -30913,27 +30959,31 @@ and ensure you are accounting for this risk.
30913
30959
  }
30914
30960
  return filters;
30915
30961
  });
30916
- watch(searchResult, () => __async2(this, null, function* () {
30917
- var _a;
30918
- allDisplayItems.value = {};
30919
- querySourceResultMap.value = {};
30920
- if (((_a = searchResult.value) == null ? void 0 : _a.searchText) === void 0 || lastResultsSource.value !== "items") {
30921
- return;
30922
- }
30923
- if (!props.options || !searchResult.value) {
30924
- relatedQueries.value = [];
30925
- }
30926
- const queries = yield extractRelatedSource(
30927
- props.options.source,
30928
- searchResult.value,
30929
- searchResultOptions.value.options,
30930
- currentFiltersWithoutQuerySources.value
30931
- );
30932
- relatedQueries.value = queries;
30933
- }));
30962
+ watch(
30963
+ searchResult,
30964
+ () => __async2(this, null, function* () {
30965
+ var _a;
30966
+ allDisplayItems.value = {};
30967
+ querySourceResultMap.value = {};
30968
+ if (((_a = searchResult.value) == null ? void 0 : _a.searchText) === void 0 || lastResultsSource.value !== "items") {
30969
+ return;
30970
+ }
30971
+ if (!props.options || !searchResult.value) {
30972
+ relatedQueries2.value = [];
30973
+ }
30974
+ const queries = yield extractRelatedSource(
30975
+ props.options.source,
30976
+ searchResult.value,
30977
+ searchResultOptions.value.options,
30978
+ currentFiltersWithoutQuerySources.value
30979
+ );
30980
+ relatedQueries2.value = queries;
30981
+ }),
30982
+ { immediate: true }
30983
+ );
30934
30984
  const hasEnoughRelatedQueries = computed(() => {
30935
30985
  var _a;
30936
- return ((_a = relatedQueries.value) == null ? void 0 : _a.length) > 1;
30986
+ return ((_a = relatedQueries2.value) == null ? void 0 : _a.length) > 1;
30937
30987
  });
30938
30988
  const handleRelatedQueryClick = (query) => {
30939
30989
  var _a;
@@ -30968,10 +31018,10 @@ and ensure you are accounting for this risk.
30968
31018
  };
30969
31019
  return (_ctx, _cache) => {
30970
31020
  var _a, _b, _c, _d;
30971
- return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$h, [
30972
- ((_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),
31021
+ return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$j, [
31022
+ ((_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),
30973
31023
  createBaseVNode("ul", null, [
30974
- (openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries.value, (query) => {
31024
+ (openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries2.value, (query) => {
30975
31025
  return withDirectives((openBlock(), createElementBlock("li", {
30976
31026
  key: query.value + query.key + currentSearchText.value,
30977
31027
  class: normalizeClass(getSelectedFilterClass(query))
@@ -30979,14 +31029,14 @@ and ensure you are accounting for this risk.
30979
31029
  createBaseVNode("a", {
30980
31030
  onClick: ($event) => handleRelatedQueryClick(query)
30981
31031
  }, [
30982
- createVNode(_sfc_main$k, {
31032
+ createVNode(_sfc_main$m, {
30983
31033
  "source-key": query.key,
30984
31034
  options: _ctx.options,
30985
31035
  query: query.value,
30986
31036
  "existing-items-from-other-queries": allDisplayItems.value,
30987
31037
  onLoaded: (item) => processLoadedItem(query, item)
30988
31038
  }, null, 8, ["source-key", "options", "query", "existing-items-from-other-queries", "onLoaded"])
30989
- ], 8, _hoisted_3$8)
31039
+ ], 8, _hoisted_3$a)
30990
31040
  ], 2)), [
30991
31041
  [vShow, querySourceResultMap.value[query.value] !== false]
30992
31042
  ]);
@@ -31023,13 +31073,13 @@ and ensure you are accounting for this risk.
31023
31073
  }
31024
31074
  return null;
31025
31075
  };
31026
- const _hoisted_1$g = {
31076
+ const _hoisted_1$i = {
31027
31077
  key: 0,
31028
31078
  class: "lupa-redirection-suggestion"
31029
31079
  };
31030
- const _hoisted_2$c = { class: "lupa-redirections-suggestion-label" };
31031
- const _hoisted_3$7 = ["href"];
31032
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
31080
+ const _hoisted_2$e = { class: "lupa-redirections-suggestion-label" };
31081
+ const _hoisted_3$9 = ["href"];
31082
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
31033
31083
  __name: "RedirectionSuggestions",
31034
31084
  props: {
31035
31085
  options: {}
@@ -31052,19 +31102,19 @@ and ensure you are accounting for this risk.
31052
31102
  )
31053
31103
  );
31054
31104
  return (_ctx, _cache) => {
31055
- return redirectionSuggestion.value && label.value && link.value ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
31056
- createBaseVNode("h4", _hoisted_2$c, [
31057
- createBaseVNode("a", { href: link.value }, toDisplayString(label.value), 9, _hoisted_3$7)
31105
+ return redirectionSuggestion.value && label.value && link.value ? (openBlock(), createElementBlock("div", _hoisted_1$i, [
31106
+ createBaseVNode("h4", _hoisted_2$e, [
31107
+ createBaseVNode("a", { href: link.value }, toDisplayString(label.value), 9, _hoisted_3$9)
31058
31108
  ])
31059
31109
  ])) : createCommentVNode("", true);
31060
31110
  };
31061
31111
  }
31062
31112
  });
31063
- const _hoisted_1$f = {
31113
+ const _hoisted_1$h = {
31064
31114
  key: 0,
31065
31115
  class: "lupa-refiners-loading-notice"
31066
31116
  };
31067
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
31117
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
31068
31118
  __name: "RefinersLoadingNotice",
31069
31119
  props: {
31070
31120
  labels: {}
@@ -31075,13 +31125,153 @@ and ensure you are accounting for this risk.
31075
31125
  const { loadingRefiners } = storeToRefs(searchResultStore);
31076
31126
  const label = computed(() => props.labels.refinersLoadingNotice);
31077
31127
  return (_ctx, _cache) => {
31078
- return label.value && unref(loadingRefiners) ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
31128
+ return label.value && unref(loadingRefiners) ? (openBlock(), createElementBlock("div", _hoisted_1$h, [
31079
31129
  createBaseVNode("p", null, toDisplayString(label.value), 1),
31080
31130
  createVNode(Spinner)
31081
31131
  ])) : createCommentVNode("", true);
31082
31132
  };
31083
31133
  }
31084
31134
  });
31135
+ const _hoisted_1$g = { class: "lupa-related-query-item" };
31136
+ const _hoisted_2$d = { class: "lupa-related-query-image" };
31137
+ const _hoisted_3$8 = { class: "lupa-related-query-label" };
31138
+ const _hoisted_4$4 = { class: "lupa-related-query-title" };
31139
+ const _hoisted_5$2 = {
31140
+ key: 0,
31141
+ class: "lupa-related-query-count"
31142
+ };
31143
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
31144
+ __name: "RelatedQueryPanelApi",
31145
+ props: {
31146
+ relatedQuery: {},
31147
+ options: {}
31148
+ },
31149
+ setup(__props) {
31150
+ const props = __props;
31151
+ const itemToDisplay = computed(() => {
31152
+ var _a;
31153
+ return (_a = props.relatedQuery.topItems) == null ? void 0 : _a[0];
31154
+ });
31155
+ const optionsStore = useOptionsStore();
31156
+ const { searchResultOptions } = storeToRefs(optionsStore);
31157
+ const mainImage = computed(() => {
31158
+ var _a, _b, _c;
31159
+ return (_c = (_b = (_a = searchResultOptions.value) == null ? void 0 : _a.elements) == null ? void 0 : _b.find((e2) => e2.type === DocumentElementType.IMAGE)) != null ? _c : "";
31160
+ });
31161
+ const image = computed(() => {
31162
+ var _a, _b, _c;
31163
+ return (_c = (_b = (_a = props.options) == null ? void 0 : _a.image) != null ? _b : mainImage == null ? void 0 : mainImage.value) != null ? _c : "";
31164
+ });
31165
+ const query = computed(() => {
31166
+ var _a;
31167
+ return props.relatedQuery.action === "FILTER" ? props.relatedQuery.filterValue : (_a = props.relatedQuery.query) != null ? _a : "";
31168
+ });
31169
+ const totalItemCount = computed(() => {
31170
+ var _a;
31171
+ return (_a = props.relatedQuery.total) != null ? _a : 0;
31172
+ });
31173
+ return (_ctx, _cache) => {
31174
+ var _a;
31175
+ return openBlock(), createElementBlock("div", _hoisted_1$g, [
31176
+ createBaseVNode("div", _hoisted_2$d, [
31177
+ itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1p, {
31178
+ key: 0,
31179
+ "wrapper-class": "lupa-related-query-image-wrapper",
31180
+ "image-class": "lupa-related-query-image",
31181
+ item: itemToDisplay.value,
31182
+ options: image.value
31183
+ }, null, 8, ["item", "options"])) : createCommentVNode("", true)
31184
+ ]),
31185
+ createBaseVNode("div", _hoisted_3$8, [
31186
+ createBaseVNode("span", _hoisted_4$4, toDisplayString(query.value), 1),
31187
+ ((_a = _ctx.options) == null ? void 0 : _a.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$2, "(" + toDisplayString(totalItemCount.value) + ")", 1)) : createCommentVNode("", true)
31188
+ ])
31189
+ ]);
31190
+ };
31191
+ }
31192
+ });
31193
+ const _hoisted_1$f = {
31194
+ key: 0,
31195
+ class: "lupa-related-queries"
31196
+ };
31197
+ const _hoisted_2$c = {
31198
+ key: 0,
31199
+ class: "lupa-related-queries-title"
31200
+ };
31201
+ const _hoisted_3$7 = ["onClick"];
31202
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
31203
+ __name: "RelatedQueriesApi",
31204
+ props: {
31205
+ options: {}
31206
+ },
31207
+ setup(__props) {
31208
+ const searchResultStore = useSearchResultStore();
31209
+ const paramsStore = useParamsStore();
31210
+ const optionsStore = useOptionsStore();
31211
+ const { searchResult, relatedQueriesResult } = storeToRefs(searchResultStore);
31212
+ const relatedQueries2 = computed(() => {
31213
+ var _a, _b;
31214
+ return (_b = (_a = relatedQueriesResult.value) == null ? void 0 : _a.relatedQueries) != null ? _b : [];
31215
+ });
31216
+ const currentSearchText = computed(() => {
31217
+ var _a, _b;
31218
+ return (_b = (_a = searchResult.value) == null ? void 0 : _a.searchText) != null ? _b : "";
31219
+ });
31220
+ const hasEnoughRelatedQueries = computed(() => {
31221
+ var _a;
31222
+ return ((_a = relatedQueries2.value) == null ? void 0 : _a.length) > 1;
31223
+ });
31224
+ const handleRelatedQueryClick = (relatedQuery) => {
31225
+ if (relatedQuery.action === "FILTER") {
31226
+ handleFilter({ key: relatedQuery.facetKey, value: relatedQuery.filterValue });
31227
+ } else {
31228
+ paramsStore.goToResults({ searchText: relatedQuery.query });
31229
+ }
31230
+ };
31231
+ const handleFilter = (query) => {
31232
+ var _a;
31233
+ toggleTermFilter(
31234
+ paramsStore.appendParams,
31235
+ { type: "terms", key: query.key, value: query.value },
31236
+ optionsStore.getQueryParamName,
31237
+ {},
31238
+ (_a = relatedQueries2.value) == null ? void 0 : _a.map((q) => `f.${q.facetKey}`)
31239
+ );
31240
+ };
31241
+ const getSelectedFilterClass = (relatedQuery) => {
31242
+ var _a, _b, _c, _d, _e;
31243
+ if (relatedQuery.action !== "FILTER") {
31244
+ return "";
31245
+ }
31246
+ 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(
31247
+ relatedQuery.filterValue
31248
+ )) ? "lupa-selected-related-query-filter" : "";
31249
+ };
31250
+ return (_ctx, _cache) => {
31251
+ var _a, _b, _c, _d;
31252
+ return hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
31253
+ ((_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),
31254
+ createBaseVNode("ul", null, [
31255
+ (openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries2.value, (query) => {
31256
+ return openBlock(), createElementBlock("li", {
31257
+ key: query.query + query.facetKey + query.filterValue + currentSearchText.value,
31258
+ class: normalizeClass(getSelectedFilterClass(query))
31259
+ }, [
31260
+ createBaseVNode("a", {
31261
+ onClick: ($event) => handleRelatedQueryClick(query)
31262
+ }, [
31263
+ createVNode(_sfc_main$i, {
31264
+ relatedQuery: query,
31265
+ options: _ctx.options
31266
+ }, null, 8, ["relatedQuery", "options"])
31267
+ ], 8, _hoisted_3$7)
31268
+ ], 2);
31269
+ }), 128))
31270
+ ])
31271
+ ])) : createCommentVNode("", true);
31272
+ };
31273
+ }
31274
+ });
31085
31275
  const _hoisted_1$e = { id: "lupa-search-results-products" };
31086
31276
  const _hoisted_2$b = {
31087
31277
  class: "lupa-products",
@@ -31093,12 +31283,12 @@ and ensure you are accounting for this risk.
31093
31283
  "data-cy": "lupa-no-results-in-page"
31094
31284
  };
31095
31285
  const _hoisted_4$3 = {
31096
- key: 4,
31286
+ key: 5,
31097
31287
  class: "lupa-empty-results",
31098
31288
  "data-cy": "lupa-no-results"
31099
31289
  };
31100
- const _hoisted_5$1 = { key: 5 };
31101
- const _hoisted_6$1 = { key: 6 };
31290
+ const _hoisted_5$1 = { key: 6 };
31291
+ const _hoisted_6$1 = { key: 7 };
31102
31292
  const _sfc_main$g = /* @__PURE__ */ defineComponent({
31103
31293
  __name: "SearchResultsProducts",
31104
31294
  props: {
@@ -31119,7 +31309,8 @@ and ensure you are accounting for this risk.
31119
31309
  columnCount,
31120
31310
  searchResult,
31121
31311
  layout,
31122
- loading
31312
+ loading,
31313
+ relatedQueriesApiEnabled
31123
31314
  } = storeToRefs(searchResultStore);
31124
31315
  const productCardOptions = computed(() => {
31125
31316
  return pick(props.options, [
@@ -31200,6 +31391,13 @@ and ensure you are accounting for this risk.
31200
31391
  _lupaUpdatedQuery: searchResult.value.suggestedSearchText
31201
31392
  } : void 0;
31202
31393
  });
31394
+ const showLocalRelatedQueries = computed(() => {
31395
+ var _a;
31396
+ return Boolean(((_a = props.options.relatedQueries) == null ? void 0 : _a.source) && relatedQueriesApiEnabled.value === false);
31397
+ });
31398
+ const showApiRelatedQueries = computed(() => {
31399
+ return Boolean(relatedQueriesApiEnabled.value === true);
31400
+ });
31203
31401
  const getProductKeyAction = (index, product) => {
31204
31402
  return getProductKey(`${index}`, product, props.options.idKey);
31205
31403
  };
@@ -31218,31 +31416,35 @@ and ensure you are accounting for this risk.
31218
31416
  key: 0,
31219
31417
  class: "lupa-loader"
31220
31418
  })) : createCommentVNode("", true),
31221
- createVNode(_sfc_main$i, {
31419
+ createVNode(_sfc_main$k, {
31222
31420
  options: _ctx.options.redirectionSuggestions
31223
31421
  }, null, 8, ["options"]),
31224
- createVNode(_sfc_main$n, {
31422
+ createVNode(_sfc_main$p, {
31225
31423
  options: _ctx.options,
31226
31424
  location: "top",
31227
31425
  sdkOptions: _ctx.options.options
31228
31426
  }, null, 8, ["options", "sdkOptions"]),
31229
- _ctx.options.relatedQueries ? (openBlock(), createBlock(_sfc_main$j, {
31427
+ showLocalRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$l, {
31230
31428
  key: 1,
31231
31429
  options: _ctx.options.relatedQueries
31232
31430
  }, null, 8, ["options"])) : createCommentVNode("", true),
31233
- unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
31234
- showTopFilters.value ? (openBlock(), createBlock(_sfc_main$J, {
31431
+ showApiRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$h, {
31432
+ key: 2,
31433
+ options: _ctx.options.relatedQueries
31434
+ }, null, 8, ["options"])) : createCommentVNode("", true),
31435
+ unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
31436
+ showTopFilters.value ? (openBlock(), createBlock(_sfc_main$L, {
31235
31437
  key: 0,
31236
31438
  options: (_a = _ctx.options.filters) != null ? _a : {}
31237
31439
  }, null, 8, ["options"])) : createCommentVNode("", true),
31238
- showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$C, {
31440
+ showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$E, {
31239
31441
  key: 1,
31240
31442
  class: "lupa-toolbar-mobile",
31241
31443
  options: _ctx.options,
31242
31444
  "pagination-location": "top",
31243
31445
  onFilter: filter2
31244
31446
  }, null, 8, ["options"])) : createCommentVNode("", true),
31245
- currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$X, {
31447
+ currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$Z, {
31246
31448
  key: 2,
31247
31449
  class: normalizeClass(currentFiltersClass.value),
31248
31450
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -31250,13 +31452,13 @@ and ensure you are accounting for this risk.
31250
31452
  expandable: !desktopFiltersExpanded.value
31251
31453
  }, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true)
31252
31454
  ], 64)) : createCommentVNode("", true),
31253
- unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
31254
- createVNode(_sfc_main$C, {
31455
+ unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [
31456
+ createVNode(_sfc_main$E, {
31255
31457
  class: "lupa-toolbar-top",
31256
31458
  options: _ctx.options,
31257
31459
  "pagination-location": "top"
31258
31460
  }, null, 8, ["options"]),
31259
- currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$X, {
31461
+ currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$Z, {
31260
31462
  key: 0,
31261
31463
  class: normalizeClass(currentFiltersClass.value),
31262
31464
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -31272,7 +31474,7 @@ and ensure you are accounting for this risk.
31272
31474
  options: productCardOptions.value
31273
31475
  });
31274
31476
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
31275
- return openBlock(), createBlock(_sfc_main$q, {
31477
+ return openBlock(), createBlock(_sfc_main$s, {
31276
31478
  style: normalizeStyle(columnSize.value),
31277
31479
  key: getProductKeyAction(index, product),
31278
31480
  product,
@@ -31289,12 +31491,12 @@ and ensure you are accounting for this risk.
31289
31491
  onClick: goToFirstPage
31290
31492
  }, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
31291
31493
  ])) : createCommentVNode("", true),
31292
- createVNode(_sfc_main$C, {
31494
+ createVNode(_sfc_main$E, {
31293
31495
  class: "lupa-toolbar-bottom",
31294
31496
  options: _ctx.options,
31295
31497
  "pagination-location": "bottom"
31296
31498
  }, null, 8, ["options"]),
31297
- createVNode(_sfc_main$n, {
31499
+ createVNode(_sfc_main$p, {
31298
31500
  options: _ctx.options,
31299
31501
  location: "bottom",
31300
31502
  sdkOptions: _ctx.options.options
@@ -31303,18 +31505,18 @@ and ensure you are accounting for this risk.
31303
31505
  createTextVNode(toDisplayString(_ctx.options.labels.emptyResults) + " ", 1),
31304
31506
  createBaseVNode("span", null, toDisplayString(unref(currentQueryText)), 1)
31305
31507
  ])) : createCommentVNode("", true),
31306
- createVNode(_sfc_main$h, {
31508
+ createVNode(_sfc_main$j, {
31307
31509
  labels: _ctx.options.labels
31308
31510
  }, null, 8, ["labels"]),
31309
31511
  hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
31310
- createVNode(_sfc_main$p, {
31512
+ createVNode(_sfc_main$r, {
31311
31513
  labels: similarQueriesLabels.value,
31312
31514
  columnSize: columnSize.value,
31313
31515
  productCardOptions: productCardOptions.value
31314
31516
  }, null, 8, ["labels", "columnSize", "productCardOptions"])
31315
31517
  ])) : createCommentVNode("", true),
31316
31518
  hasSimilarResults.value ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
31317
- createVNode(_sfc_main$l, {
31519
+ createVNode(_sfc_main$n, {
31318
31520
  labels: similarResultsLabels.value,
31319
31521
  columnSize: columnSize.value,
31320
31522
  productCardOptions: productCardOptions.value
@@ -31393,14 +31595,14 @@ and ensure you are accounting for this risk.
31393
31595
  ])) : createCommentVNode("", true),
31394
31596
  hasRelatedCategoryChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$2, [
31395
31597
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
31396
- return openBlock(), createBlock(_sfc_main$W, {
31598
+ return openBlock(), createBlock(_sfc_main$Y, {
31397
31599
  key: getCategoryKey(child),
31398
31600
  item: child,
31399
31601
  options: categoryOptions.value
31400
31602
  }, null, 8, ["item", "options"]);
31401
31603
  }), 128))
31402
31604
  ])) : createCommentVNode("", true),
31403
- createVNode(_sfc_main$C, {
31605
+ createVNode(_sfc_main$E, {
31404
31606
  class: "lupa-toolbar-mobile",
31405
31607
  "pagination-location": "top",
31406
31608
  options: _ctx.options
@@ -31520,7 +31722,12 @@ and ensure you are accounting for this risk.
31520
31722
  const hasResults2 = Boolean(
31521
31723
  results.total > 0 || ((_a = results.similarQueries) == null ? void 0 : _a.length) || ((_b = results.didYouMean) == null ? void 0 : _b.options) || ((_d = (_c = results.similarResults) == null ? void 0 : _c.items) == null ? void 0 : _d.length)
31522
31724
  );
31523
- (_f = (_e = props.options.callbacks) == null ? void 0 : _e.onSearchResults) == null ? void 0 : _f.call(_e, { queryKey, hasResults: hasResults2, params: paramStore.params });
31725
+ (_f = (_e = props.options.callbacks) == null ? void 0 : _e.onSearchResults) == null ? void 0 : _f.call(_e, {
31726
+ queryKey,
31727
+ hasResults: hasResults2,
31728
+ params: paramStore.params,
31729
+ results
31730
+ });
31524
31731
  if (!hasResults2) {
31525
31732
  return;
31526
31733
  }
@@ -31548,14 +31755,23 @@ and ensure you are accounting for this risk.
31548
31755
  return;
31549
31756
  }
31550
31757
  LupaSearchSdk.query(props.options.queryKey, query2, props.options.options).then((res) => {
31551
- var _a, _b;
31758
+ var _a, _b, _c;
31552
31759
  if (res.success) {
31553
31760
  handleResults({ queryKey: props.options.queryKey, results: res });
31554
31761
  searchResultStore.add(requestId, __spreadValues2({}, res));
31762
+ searchResultStore.setRelatedQueriesApiEnabled((_a = res.hasRelatedQueries) != null ? _a : false);
31763
+ if (res.hasRelatedQueries) {
31764
+ searchResultStore.queryRelatedQueries(
31765
+ props.options.queryKey,
31766
+ publicQuery,
31767
+ res,
31768
+ props.options.options
31769
+ );
31770
+ }
31555
31771
  if (props.options.splitExpensiveRequests && res.refinementThreshold >= res.total) {
31556
31772
  queryRefiners(requestId, publicQuery);
31557
31773
  }
31558
- } else if ((_b = (_a = props.options) == null ? void 0 : _a.options) == null ? void 0 : _b.onError) {
31774
+ } else if ((_c = (_b = props.options) == null ? void 0 : _b.options) == null ? void 0 : _c.onError) {
31559
31775
  props.options.options.onError(res);
31560
31776
  }
31561
31777
  }).catch((err) => {
@@ -31694,8 +31910,8 @@ and ensure you are accounting for this risk.
31694
31910
  class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
31695
31911
  }, [
31696
31912
  _ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
31697
- createVNode(_sfc_main$$, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
31698
- createVNode(_sfc_main$Z, {
31913
+ createVNode(_sfc_main$11, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
31914
+ createVNode(_sfc_main$$, {
31699
31915
  "show-summary": true,
31700
31916
  options: _ctx.options,
31701
31917
  "is-product-list": (_a = _ctx.isProductList) != null ? _a : false
@@ -31705,12 +31921,12 @@ and ensure you are accounting for this risk.
31705
31921
  key: 1,
31706
31922
  options: _ctx.options
31707
31923
  }, null, 8, ["options"])) : createCommentVNode("", true),
31708
- _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$L, {
31924
+ _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$N, {
31709
31925
  key: 2,
31710
31926
  options: _ctx.options.filters,
31711
31927
  onFilter: handleParamsChange
31712
31928
  }, null, 8, ["options"])) : createCommentVNode("", true),
31713
- unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$K, {
31929
+ unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$M, {
31714
31930
  key: 3,
31715
31931
  breadcrumbs: _ctx.options.breadcrumbs
31716
31932
  }, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
@@ -31719,7 +31935,7 @@ and ensure you are accounting for this risk.
31719
31935
  id: "lupa-search-results",
31720
31936
  class: normalizeClass(["top-layout-wrapper", indicatorClasses.value])
31721
31937
  }, [
31722
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$M, {
31938
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$O, {
31723
31939
  key: 0,
31724
31940
  options: (_b = _ctx.options.filters) != null ? _b : {},
31725
31941
  ref_key: "searchResultsFilters",
@@ -31727,8 +31943,8 @@ and ensure you are accounting for this risk.
31727
31943
  onFilter: handleParamsChange
31728
31944
  }, null, 8, ["options"])) : createCommentVNode("", true),
31729
31945
  createBaseVNode("div", _hoisted_2$9, [
31730
- createVNode(_sfc_main$$, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
31731
- createVNode(_sfc_main$Z, {
31946
+ createVNode(_sfc_main$11, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
31947
+ createVNode(_sfc_main$$, {
31732
31948
  options: _ctx.options,
31733
31949
  "is-product-list": (_c = _ctx.isProductList) != null ? _c : false
31734
31950
  }, null, 8, ["options", "is-product-list"]),
@@ -31744,8 +31960,8 @@ and ensure you are accounting for this risk.
31744
31960
  }, 8, ["options", "ssr"])
31745
31961
  ])
31746
31962
  ], 2)) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
31747
- createVNode(_sfc_main$$, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
31748
- createVNode(_sfc_main$Z, {
31963
+ createVNode(_sfc_main$11, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
31964
+ createVNode(_sfc_main$$, {
31749
31965
  options: _ctx.options,
31750
31966
  "is-product-list": (_d = _ctx.isProductList) != null ? _d : false
31751
31967
  }, null, 8, ["options", "is-product-list"]),
@@ -31753,7 +31969,7 @@ and ensure you are accounting for this risk.
31753
31969
  id: "lupa-search-results",
31754
31970
  class: normalizeClass(indicatorClasses.value)
31755
31971
  }, [
31756
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$M, {
31972
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$O, {
31757
31973
  key: 0,
31758
31974
  options: (_e = _ctx.options.filters) != null ? _e : {},
31759
31975
  ref_key: "searchResultsFilters",
@@ -31905,7 +32121,7 @@ and ensure you are accounting for this risk.
31905
32121
  onClick: withModifiers(innerClick, ["stop"])
31906
32122
  }, [
31907
32123
  createBaseVNode("div", _hoisted_2$7, [
31908
- createVNode(_sfc_main$10, {
32124
+ createVNode(_sfc_main$12, {
31909
32125
  options: fullSearchBoxOptions.value,
31910
32126
  "is-search-container": true,
31911
32127
  ref_key: "searchBox",
@@ -32804,7 +33020,7 @@ and ensure you are accounting for this risk.
32804
33020
  key: getProductKeyAction(index, product)
32805
33021
  }, {
32806
33022
  default: withCtx(() => [
32807
- createVNode(_sfc_main$q, {
33023
+ createVNode(_sfc_main$s, {
32808
33024
  product,
32809
33025
  options: _ctx.options,
32810
33026
  "click-tracking-settings": clickTrackingSettings.value,
@@ -32819,7 +33035,7 @@ and ensure you are accounting for this risk.
32819
33035
  _: 1
32820
33036
  }, 16)) : (openBlock(), createElementBlock("div", _hoisted_3$4, [
32821
33037
  (openBlock(true), createElementBlock(Fragment, null, renderList(recommendations2.value, (product, index) => {
32822
- return openBlock(), createBlock(_sfc_main$q, {
33038
+ return openBlock(), createBlock(_sfc_main$s, {
32823
33039
  style: normalizeStyle(columnSize.value),
32824
33040
  key: getProductKeyAction(index, product),
32825
33041
  product,
@@ -33084,7 +33300,7 @@ and ensure you are accounting for this risk.
33084
33300
  createBaseVNode("a", {
33085
33301
  href: getLink(product)
33086
33302
  }, [
33087
- createVNode(_sfc_main$B, {
33303
+ createVNode(_sfc_main$D, {
33088
33304
  item: product,
33089
33305
  options: image.value
33090
33306
  }, null, 8, ["item", "options"])
@@ -33248,7 +33464,7 @@ and ensure you are accounting for this risk.
33248
33464
  return (_ctx, _cache) => {
33249
33465
  return openBlock(), createElementBlock("section", _hoisted_1$3, [
33250
33466
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
33251
- return openBlock(), createBlock(_sfc_main$q, {
33467
+ return openBlock(), createBlock(_sfc_main$s, {
33252
33468
  class: "lupa-chat-product-card",
33253
33469
  key: getProductKeyAction(index, product),
33254
33470
  product,
@@ -33441,7 +33657,7 @@ and ensure you are accounting for this risk.
33441
33657
  key: 0,
33442
33658
  class: "lupasearch-chat-content"
33443
33659
  };
33444
- const _sfc_main$1w = /* @__PURE__ */ defineComponent({
33660
+ const _sfc_main$1y = /* @__PURE__ */ defineComponent({
33445
33661
  __name: "ChatContainer",
33446
33662
  props: {
33447
33663
  options: {}
@@ -39459,7 +39675,7 @@ and ensure you are accounting for this risk.
39459
39675
  };
39460
39676
  __expose({ fetch: fetch2 });
39461
39677
  return (_ctx, _cache) => {
39462
- return openBlock(), createBlock(unref(_sfc_main$10), {
39678
+ return openBlock(), createBlock(unref(_sfc_main$12), {
39463
39679
  options: fullSearchBoxOptions.value,
39464
39680
  ref_key: "searchBox",
39465
39681
  ref: searchBox2
@@ -40095,7 +40311,7 @@ and ensure you are accounting for this risk.
40095
40311
  const instance = createVue(
40096
40312
  options.displayOptions.containerSelector,
40097
40313
  mountOptions == null ? void 0 : mountOptions.mountingBehavior,
40098
- _sfc_main$1w,
40314
+ _sfc_main$1y,
40099
40315
  {
40100
40316
  options
40101
40317
  }