@getlupa/client 1.15.1 → 1.15.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8192,7 +8192,11 @@ var __async = (__this, __arguments, generator) => {
8192
8192
  try {
8193
8193
  localStorage.setItem(
8194
8194
  CACHE_KEY,
8195
- JSON.stringify({ redirections: redirections.value, savedAt: Date.now() })
8195
+ JSON.stringify({
8196
+ redirections: redirections.value,
8197
+ savedAt: Date.now(),
8198
+ queryKey: redirectionOptions.value.queryKey
8199
+ })
8196
8200
  );
8197
8201
  } catch (e2) {
8198
8202
  }
@@ -8203,6 +8207,9 @@ var __async = (__this, __arguments, generator) => {
8203
8207
  return false;
8204
8208
  try {
8205
8209
  const data = JSON.parse((_a = localStorage.getItem(CACHE_KEY)) != null ? _a : "");
8210
+ if (data.queryKey !== config.queryKey) {
8211
+ return false;
8212
+ }
8206
8213
  if ((data == null ? void 0 : data.redirections) && Date.now() - data.savedAt < 1e3 * config.cacheSeconds) {
8207
8214
  redirections.value = data.redirections;
8208
8215
  return true;
@@ -8227,6 +8234,7 @@ var __async = (__this, __arguments, generator) => {
8227
8234
  try {
8228
8235
  const result2 = yield LupaSearchSdk.loadRedirectionRules(config.queryKey, options);
8229
8236
  if (!((_d = result2 == null ? void 0 : result2.rules) == null ? void 0 : _d.length)) {
8237
+ redirections.value = { rules: [] };
8230
8238
  return;
8231
8239
  }
8232
8240
  redirections.value = result2;
@@ -8664,9 +8672,9 @@ var __async = (__this, __arguments, generator) => {
8664
8672
  resetHighlightIndex
8665
8673
  };
8666
8674
  });
8667
- const _hoisted_1$1g = { id: "lupa-search-box-input-container" };
8668
- const _hoisted_2$U = { class: "lupa-input-clear" };
8669
- const _hoisted_3$D = { id: "lupa-search-box-input" };
8675
+ const _hoisted_1$1h = { id: "lupa-search-box-input-container" };
8676
+ const _hoisted_2$V = { class: "lupa-input-clear" };
8677
+ const _hoisted_3$E = { id: "lupa-search-box-input" };
8670
8678
  const _hoisted_4$t = ["value"];
8671
8679
  const _hoisted_5$j = ["aria-label", "placeholder"];
8672
8680
  const _hoisted_6$9 = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
@@ -8677,7 +8685,7 @@ var __async = (__this, __arguments, generator) => {
8677
8685
  key: 0,
8678
8686
  class: "lupa-close-label"
8679
8687
  };
8680
- const _sfc_main$1s = /* @__PURE__ */ defineComponent({
8688
+ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
8681
8689
  __name: "SearchBoxInput",
8682
8690
  props: {
8683
8691
  options: {},
@@ -8761,14 +8769,14 @@ var __async = (__this, __arguments, generator) => {
8761
8769
  };
8762
8770
  __expose({ focus });
8763
8771
  return (_ctx, _cache) => {
8764
- return openBlock(), createElementBlock("div", _hoisted_1$1g, [
8765
- createBaseVNode("div", _hoisted_2$U, [
8772
+ return openBlock(), createElementBlock("div", _hoisted_1$1h, [
8773
+ createBaseVNode("div", _hoisted_2$V, [
8766
8774
  createBaseVNode("div", {
8767
8775
  class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
8768
8776
  onClick: clear2
8769
8777
  }, null, 2)
8770
8778
  ]),
8771
- createBaseVNode("div", _hoisted_3$D, [
8779
+ createBaseVNode("div", _hoisted_3$E, [
8772
8780
  createBaseVNode("input", {
8773
8781
  class: "lupa-hint",
8774
8782
  "aria-hidden": "true",
@@ -8807,7 +8815,7 @@ var __async = (__this, __arguments, generator) => {
8807
8815
  };
8808
8816
  }
8809
8817
  });
8810
- const _sfc_main$1r = /* @__PURE__ */ defineComponent({
8818
+ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
8811
8819
  __name: "SearchBoxMoreResults",
8812
8820
  props: {
8813
8821
  labels: {},
@@ -8839,9 +8847,9 @@ var __async = (__this, __arguments, generator) => {
8839
8847
  };
8840
8848
  }
8841
8849
  });
8842
- const _hoisted_1$1f = { class: "lupa-search-box-history-item" };
8843
- const _hoisted_2$T = { class: "lupa-search-box-history-item-content" };
8844
- const _sfc_main$1q = /* @__PURE__ */ defineComponent({
8850
+ const _hoisted_1$1g = { class: "lupa-search-box-history-item" };
8851
+ const _hoisted_2$U = { class: "lupa-search-box-history-item-content" };
8852
+ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
8845
8853
  __name: "SearchBoxHistoryItem",
8846
8854
  props: {
8847
8855
  item: {},
@@ -8857,8 +8865,8 @@ var __async = (__this, __arguments, generator) => {
8857
8865
  emit2("click", { query: props.item });
8858
8866
  };
8859
8867
  return (_ctx, _cache) => {
8860
- return openBlock(), createElementBlock("div", _hoisted_1$1f, [
8861
- createBaseVNode("div", _hoisted_2$T, [
8868
+ return openBlock(), createElementBlock("div", _hoisted_1$1g, [
8869
+ createBaseVNode("div", _hoisted_2$U, [
8862
8870
  createBaseVNode("div", {
8863
8871
  class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
8864
8872
  onClick: click2
@@ -8872,11 +8880,11 @@ var __async = (__this, __arguments, generator) => {
8872
8880
  };
8873
8881
  }
8874
8882
  });
8875
- const _hoisted_1$1e = {
8883
+ const _hoisted_1$1f = {
8876
8884
  key: 0,
8877
8885
  class: "lupa-search-box-history-panel"
8878
8886
  };
8879
- const _sfc_main$1p = /* @__PURE__ */ defineComponent({
8887
+ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
8880
8888
  __name: "SearchBoxHistoryPanel",
8881
8889
  props: {
8882
8890
  options: {}
@@ -8917,9 +8925,9 @@ var __async = (__this, __arguments, generator) => {
8917
8925
  }
8918
8926
  };
8919
8927
  return (_ctx, _cache) => {
8920
- return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1e, [
8928
+ return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1f, [
8921
8929
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(history), (item, index) => {
8922
- return openBlock(), createBlock(_sfc_main$1q, {
8930
+ return openBlock(), createBlock(_sfc_main$1r, {
8923
8931
  key: item,
8924
8932
  item,
8925
8933
  highlighted: index === highlightIndex.value,
@@ -8935,15 +8943,15 @@ var __async = (__this, __arguments, generator) => {
8935
8943
  };
8936
8944
  }
8937
8945
  });
8938
- const _hoisted_1$1d = { class: "lupa-search-box-no-results" };
8939
- const _sfc_main$1o = /* @__PURE__ */ defineComponent({
8946
+ const _hoisted_1$1e = { class: "lupa-search-box-no-results" };
8947
+ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
8940
8948
  __name: "SearchBoxNoResults",
8941
8949
  props: {
8942
8950
  labels: {}
8943
8951
  },
8944
8952
  setup(__props) {
8945
8953
  return (_ctx, _cache) => {
8946
- return openBlock(), createElementBlock("p", _hoisted_1$1d, toDisplayString(_ctx.labels.noResults), 1);
8954
+ return openBlock(), createElementBlock("p", _hoisted_1$1e, toDisplayString(_ctx.labels.noResults), 1);
8947
8955
  };
8948
8956
  }
8949
8957
  });
@@ -8975,13 +8983,13 @@ var __async = (__this, __arguments, generator) => {
8975
8983
  }
8976
8984
  return gridTemplate.join(" ");
8977
8985
  };
8978
- const _hoisted_1$1c = ["innerHTML"];
8979
- const _hoisted_2$S = {
8986
+ const _hoisted_1$1d = ["innerHTML"];
8987
+ const _hoisted_2$T = {
8980
8988
  key: 1,
8981
8989
  "data-cy": "lupa-suggestion-value",
8982
8990
  class: "lupa-suggestion-value"
8983
8991
  };
8984
- const _hoisted_3$C = {
8992
+ const _hoisted_3$D = {
8985
8993
  key: 2,
8986
8994
  class: "lupa-suggestion-facet",
8987
8995
  "data-cy": "lupa-suggestion-facet"
@@ -8994,7 +9002,7 @@ var __async = (__this, __arguments, generator) => {
8994
9002
  class: "lupa-suggestion-facet-value",
8995
9003
  "data-cy": "lupa-suggestion-facet-value"
8996
9004
  };
8997
- const _sfc_main$1n = /* @__PURE__ */ defineComponent({
9005
+ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
8998
9006
  __name: "SearchBoxSuggestion",
8999
9007
  props: {
9000
9008
  suggestion: {},
@@ -9030,8 +9038,8 @@ var __async = (__this, __arguments, generator) => {
9030
9038
  class: "lupa-suggestion-value",
9031
9039
  "data-cy": "lupa-suggestion-value",
9032
9040
  innerHTML: _ctx.suggestion.displayHighlight
9033
- }, null, 8, _hoisted_1$1c)) : (openBlock(), createElementBlock("div", _hoisted_2$S, toDisplayString(_ctx.suggestion.display), 1)),
9034
- _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$C, [
9041
+ }, null, 8, _hoisted_1$1d)) : (openBlock(), createElementBlock("div", _hoisted_2$T, toDisplayString(_ctx.suggestion.display), 1)),
9042
+ _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$D, [
9035
9043
  createBaseVNode("span", _hoisted_4$s, toDisplayString(facetLabel.value), 1),
9036
9044
  createBaseVNode("span", _hoisted_5$i, toDisplayString(_ctx.suggestion.facet.title), 1)
9037
9045
  ])) : createCommentVNode("", true)
@@ -9039,11 +9047,11 @@ var __async = (__this, __arguments, generator) => {
9039
9047
  };
9040
9048
  }
9041
9049
  });
9042
- const _hoisted_1$1b = {
9050
+ const _hoisted_1$1c = {
9043
9051
  id: "lupa-search-box-suggestions",
9044
9052
  "data-cy": "lupa-search-box-suggestions"
9045
9053
  };
9046
- const _sfc_main$1m = /* @__PURE__ */ defineComponent({
9054
+ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
9047
9055
  __name: "SearchBoxSuggestions",
9048
9056
  props: {
9049
9057
  items: {},
@@ -9103,9 +9111,9 @@ var __async = (__this, __arguments, generator) => {
9103
9111
  });
9104
9112
  });
9105
9113
  return (_ctx, _cache) => {
9106
- return openBlock(), createElementBlock("div", _hoisted_1$1b, [
9114
+ return openBlock(), createElementBlock("div", _hoisted_1$1c, [
9107
9115
  (openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
9108
- return openBlock(), createBlock(_sfc_main$1n, {
9116
+ return openBlock(), createBlock(_sfc_main$1o, {
9109
9117
  key: getSuggestionKey(item),
9110
9118
  class: normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
9111
9119
  suggestion: item,
@@ -9133,7 +9141,7 @@ var __async = (__this, __arguments, generator) => {
9133
9141
  }, timeout);
9134
9142
  };
9135
9143
  };
9136
- const _sfc_main$1l = /* @__PURE__ */ defineComponent({
9144
+ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
9137
9145
  __name: "SearchBoxSuggestionsWrapper",
9138
9146
  props: {
9139
9147
  panel: {},
@@ -9175,7 +9183,7 @@ var __async = (__this, __arguments, generator) => {
9175
9183
  const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
9176
9184
  watch(() => props.panel.limit, getSuggestionsDebounced);
9177
9185
  return (_ctx, _cache) => {
9178
- return openBlock(), createBlock(_sfc_main$1m, {
9186
+ return openBlock(), createBlock(_sfc_main$1n, {
9179
9187
  items: searchResult.value,
9180
9188
  highlight: _ctx.panel.highlight,
9181
9189
  queryKey: _ctx.panel.queryKey,
@@ -18253,9 +18261,9 @@ and ensure you are accounting for this risk.
18253
18261
  targetImage.src = placeholder;
18254
18262
  }
18255
18263
  };
18256
- const _hoisted_1$1a = ["src"];
18257
- const _hoisted_2$R = ["src"];
18258
- const _sfc_main$1k = /* @__PURE__ */ defineComponent({
18264
+ const _hoisted_1$1b = ["src"];
18265
+ const _hoisted_2$S = ["src"];
18266
+ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
18259
18267
  __name: "ProductImage",
18260
18268
  props: {
18261
18269
  item: {},
@@ -18397,7 +18405,7 @@ and ensure you are accounting for this risk.
18397
18405
  }, { alt: imageAlt.value ? imageAlt.value : void 0 }, {
18398
18406
  onError: replaceWithPlaceholder,
18399
18407
  key: finalUrl.value
18400
- }), null, 16, _hoisted_1$1a))
18408
+ }), null, 16, _hoisted_1$1b))
18401
18409
  ]),
18402
18410
  _: 1
18403
18411
  })) : (openBlock(), createElementBlock("img", mergeProps({
@@ -18405,12 +18413,12 @@ and ensure you are accounting for this risk.
18405
18413
  class: ["lupa-images-main-image", { [_ctx.imageClass]: true }],
18406
18414
  style: styleOverride.value,
18407
18415
  src: finalMainImageUrl.value
18408
- }, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$R))
18416
+ }, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$S))
18409
18417
  ], 38);
18410
18418
  };
18411
18419
  }
18412
18420
  });
18413
- const _sfc_main$1j = /* @__PURE__ */ defineComponent({
18421
+ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
18414
18422
  __name: "SearchBoxProductImage",
18415
18423
  props: {
18416
18424
  item: {},
@@ -18418,7 +18426,7 @@ and ensure you are accounting for this risk.
18418
18426
  },
18419
18427
  setup(__props) {
18420
18428
  return (_ctx, _cache) => {
18421
- return openBlock(), createBlock(_sfc_main$1k, {
18429
+ return openBlock(), createBlock(_sfc_main$1l, {
18422
18430
  item: _ctx.item,
18423
18431
  options: _ctx.options,
18424
18432
  "wrapper-class": "lupa-search-box-image-wrapper",
@@ -18427,12 +18435,12 @@ and ensure you are accounting for this risk.
18427
18435
  };
18428
18436
  }
18429
18437
  });
18430
- const _hoisted_1$19 = ["innerHTML"];
18431
- const _hoisted_2$Q = {
18438
+ const _hoisted_1$1a = ["innerHTML"];
18439
+ const _hoisted_2$R = {
18432
18440
  key: 1,
18433
18441
  class: "lupa-search-box-product-title"
18434
18442
  };
18435
- const _sfc_main$1i = /* @__PURE__ */ defineComponent({
18443
+ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
18436
18444
  __name: "SearchBoxProductTitle",
18437
18445
  props: {
18438
18446
  item: {},
@@ -18455,18 +18463,18 @@ and ensure you are accounting for this risk.
18455
18463
  key: 0,
18456
18464
  class: "lupa-search-box-product-title",
18457
18465
  innerHTML: sanitizedTitle.value
18458
- }, null, 8, _hoisted_1$19)) : (openBlock(), createElementBlock("div", _hoisted_2$Q, [
18466
+ }, null, 8, _hoisted_1$1a)) : (openBlock(), createElementBlock("div", _hoisted_2$R, [
18459
18467
  createBaseVNode("strong", null, toDisplayString(title.value), 1)
18460
18468
  ]));
18461
18469
  };
18462
18470
  }
18463
18471
  });
18464
- const _hoisted_1$18 = ["innerHTML"];
18465
- const _hoisted_2$P = {
18472
+ const _hoisted_1$19 = ["innerHTML"];
18473
+ const _hoisted_2$Q = {
18466
18474
  key: 1,
18467
18475
  class: "lupa-search-box-product-description"
18468
18476
  };
18469
- const _sfc_main$1h = /* @__PURE__ */ defineComponent({
18477
+ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
18470
18478
  __name: "SearchBoxProductDescription",
18471
18479
  props: {
18472
18480
  item: {},
@@ -18489,12 +18497,12 @@ and ensure you are accounting for this risk.
18489
18497
  key: 0,
18490
18498
  class: "lupa-search-box-product-description",
18491
18499
  innerHTML: sanitizedDescription.value
18492
- }, null, 8, _hoisted_1$18)) : (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(description.value), 1));
18500
+ }, null, 8, _hoisted_1$19)) : (openBlock(), createElementBlock("div", _hoisted_2$Q, toDisplayString(description.value), 1));
18493
18501
  };
18494
18502
  }
18495
18503
  });
18496
- const _hoisted_1$17 = { class: "lupa-search-box-product-price" };
18497
- const _sfc_main$1g = /* @__PURE__ */ defineComponent({
18504
+ const _hoisted_1$18 = { class: "lupa-search-box-product-price" };
18505
+ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
18498
18506
  __name: "SearchBoxProductPrice",
18499
18507
  props: {
18500
18508
  item: {},
@@ -18512,13 +18520,13 @@ and ensure you are accounting for this risk.
18512
18520
  );
18513
18521
  });
18514
18522
  return (_ctx, _cache) => {
18515
- return openBlock(), createElementBlock("div", _hoisted_1$17, [
18523
+ return openBlock(), createElementBlock("div", _hoisted_1$18, [
18516
18524
  createBaseVNode("strong", null, toDisplayString(price.value), 1)
18517
18525
  ]);
18518
18526
  };
18519
18527
  }
18520
18528
  });
18521
- const _sfc_main$1f = /* @__PURE__ */ defineComponent({
18529
+ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
18522
18530
  __name: "SearchBoxProductRegularPrice",
18523
18531
  props: {
18524
18532
  item: {},
@@ -18545,12 +18553,12 @@ and ensure you are accounting for this risk.
18545
18553
  };
18546
18554
  }
18547
18555
  });
18548
- const _hoisted_1$16 = ["innerHTML"];
18549
- const _hoisted_2$O = { key: 0 };
18550
- const _hoisted_3$B = { key: 1 };
18556
+ const _hoisted_1$17 = ["innerHTML"];
18557
+ const _hoisted_2$P = { key: 0 };
18558
+ const _hoisted_3$C = { key: 1 };
18551
18559
  const _hoisted_4$r = { class: "lupa-search-box-custom-label" };
18552
18560
  const _hoisted_5$h = { class: "lupa-search-box-custom-text" };
18553
- const _sfc_main$1e = /* @__PURE__ */ defineComponent({
18561
+ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
18554
18562
  __name: "SearchBoxProductCustom",
18555
18563
  props: {
18556
18564
  item: {},
@@ -18576,11 +18584,11 @@ and ensure you are accounting for this risk.
18576
18584
  key: 0,
18577
18585
  class: [className.value, "lupa-search-box-product-custom"],
18578
18586
  innerHTML: text.value
18579
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$16)) : (openBlock(), createElementBlock("div", mergeProps({
18587
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$17)) : (openBlock(), createElementBlock("div", mergeProps({
18580
18588
  key: 1,
18581
18589
  class: [className.value, "lupa-search-box-product-custom"]
18582
18590
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
18583
- !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$O, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$B, [
18591
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$C, [
18584
18592
  createBaseVNode("div", _hoisted_4$r, toDisplayString(label.value), 1),
18585
18593
  createBaseVNode("div", _hoisted_5$h, toDisplayString(text.value), 1)
18586
18594
  ]))
@@ -18588,8 +18596,8 @@ and ensure you are accounting for this risk.
18588
18596
  };
18589
18597
  }
18590
18598
  });
18591
- const _hoisted_1$15 = ["innerHTML"];
18592
- const _sfc_main$1d = /* @__PURE__ */ defineComponent({
18599
+ const _hoisted_1$16 = ["innerHTML"];
18600
+ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
18593
18601
  __name: "SearchBoxProductCustomHtml",
18594
18602
  props: {
18595
18603
  item: {},
@@ -18614,7 +18622,7 @@ and ensure you are accounting for this risk.
18614
18622
  return openBlock(), createElementBlock("div", mergeProps({
18615
18623
  class: className.value,
18616
18624
  innerHTML: text.value
18617
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$15);
18625
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$16);
18618
18626
  };
18619
18627
  }
18620
18628
  });
@@ -18848,10 +18856,10 @@ and ensure you are accounting for this risk.
18848
18856
  setRelatedCategoryChildren
18849
18857
  };
18850
18858
  });
18851
- const _hoisted_1$14 = { class: "lupa-search-box-add-to-cart-wrapper" };
18852
- const _hoisted_2$N = { class: "lupa-search-box-product-addtocart" };
18853
- const _hoisted_3$A = ["onClick", "disabled"];
18854
- const _sfc_main$1c = /* @__PURE__ */ defineComponent({
18859
+ const _hoisted_1$15 = { class: "lupa-search-box-add-to-cart-wrapper" };
18860
+ const _hoisted_2$O = { class: "lupa-search-box-product-addtocart" };
18861
+ const _hoisted_3$B = ["onClick", "disabled"];
18862
+ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
18855
18863
  __name: "SearchBoxProductAddToCart",
18856
18864
  props: {
18857
18865
  item: {},
@@ -18884,37 +18892,37 @@ and ensure you are accounting for this risk.
18884
18892
  loading.value = false;
18885
18893
  });
18886
18894
  return (_ctx, _cache) => {
18887
- return openBlock(), createElementBlock("div", _hoisted_1$14, [
18888
- createBaseVNode("div", _hoisted_2$N, [
18895
+ return openBlock(), createElementBlock("div", _hoisted_1$15, [
18896
+ createBaseVNode("div", _hoisted_2$O, [
18889
18897
  createBaseVNode("button", {
18890
18898
  onClick: withModifiers(handleClick, ["stop", "prevent"]),
18891
18899
  class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
18892
18900
  "data-cy": "lupa-add-to-cart",
18893
18901
  type: "button",
18894
18902
  disabled: !inStockValue.value || loading.value
18895
- }, toDisplayString(label.value), 11, _hoisted_3$A)
18903
+ }, toDisplayString(label.value), 11, _hoisted_3$B)
18896
18904
  ])
18897
18905
  ]);
18898
18906
  };
18899
18907
  }
18900
18908
  });
18901
- const _hoisted_1$13 = {
18909
+ const _hoisted_1$14 = {
18902
18910
  key: 1,
18903
18911
  class: "lupa-search-box-element-badge-wrapper"
18904
18912
  };
18905
18913
  const __default__$4 = {
18906
18914
  components: {
18907
- SearchBoxProductImage: _sfc_main$1j,
18908
- SearchBoxProductTitle: _sfc_main$1i,
18909
- SearchBoxProductDescription: _sfc_main$1h,
18910
- SearchBoxProductPrice: _sfc_main$1g,
18911
- SearchBoxProductRegularPrice: _sfc_main$1f,
18912
- SearchBoxProductCustom: _sfc_main$1e,
18913
- SearchBoxProductCustomHtml: _sfc_main$1d,
18914
- SearchBoxProductAddToCart: _sfc_main$1c
18915
+ SearchBoxProductImage: _sfc_main$1k,
18916
+ SearchBoxProductTitle: _sfc_main$1j,
18917
+ SearchBoxProductDescription: _sfc_main$1i,
18918
+ SearchBoxProductPrice: _sfc_main$1h,
18919
+ SearchBoxProductRegularPrice: _sfc_main$1g,
18920
+ SearchBoxProductCustom: _sfc_main$1f,
18921
+ SearchBoxProductCustomHtml: _sfc_main$1e,
18922
+ SearchBoxProductAddToCart: _sfc_main$1d
18915
18923
  }
18916
18924
  };
18917
- const _sfc_main$1b = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
18925
+ const _sfc_main$1c = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
18918
18926
  __name: "SearchBoxProductElement",
18919
18927
  props: {
18920
18928
  item: {},
@@ -18977,7 +18985,7 @@ and ensure you are accounting for this risk.
18977
18985
  class: normalizeClass({ "lupa-loading-dynamic-data": isLoadingDynamicData((_a = _ctx.item) == null ? void 0 : _a.id) }),
18978
18986
  inStock: _ctx.isInStock
18979
18987
  }, null, 8, ["item", "options", "labels", "class", "inStock"])) : createCommentVNode("", true)
18980
- ], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$13, [
18988
+ ], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$14, [
18981
18989
  displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), {
18982
18990
  key: 0,
18983
18991
  item: enhancedItem.value,
@@ -18991,14 +18999,14 @@ and ensure you are accounting for this risk.
18991
18999
  };
18992
19000
  }
18993
19001
  }));
18994
- const _hoisted_1$12 = { class: "lupa-badge-title" };
18995
- const _hoisted_2$M = ["src"];
18996
- const _hoisted_3$z = { key: 1 };
19002
+ const _hoisted_1$13 = { class: "lupa-badge-title" };
19003
+ const _hoisted_2$N = ["src"];
19004
+ const _hoisted_3$A = { key: 1 };
18997
19005
  const _hoisted_4$q = {
18998
19006
  key: 0,
18999
19007
  class: "lupa-badge-full-text"
19000
19008
  };
19001
- const _sfc_main$1a = /* @__PURE__ */ defineComponent({
19009
+ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
19002
19010
  __name: "SearchResultGeneratedBadge",
19003
19011
  props: {
19004
19012
  options: {},
@@ -19031,20 +19039,20 @@ and ensure you are accounting for this risk.
19031
19039
  class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
19032
19040
  style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
19033
19041
  }, [
19034
- createBaseVNode("span", _hoisted_1$12, [
19042
+ createBaseVNode("span", _hoisted_1$13, [
19035
19043
  image.value ? (openBlock(), createElementBlock("img", {
19036
19044
  key: 0,
19037
19045
  src: image.value
19038
- }, null, 8, _hoisted_2$M)) : createCommentVNode("", true),
19039
- hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$z, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
19046
+ }, null, 8, _hoisted_2$N)) : createCommentVNode("", true),
19047
+ hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$A, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
19040
19048
  ]),
19041
19049
  hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$q, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
19042
19050
  ], 6);
19043
19051
  };
19044
19052
  }
19045
19053
  });
19046
- const _hoisted_1$11 = { class: "lupa-generated-badges" };
19047
- const _sfc_main$19 = /* @__PURE__ */ defineComponent({
19054
+ const _hoisted_1$12 = { class: "lupa-generated-badges" };
19055
+ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
19048
19056
  __name: "SearchResultGeneratedBadges",
19049
19057
  props: {
19050
19058
  options: {}
@@ -19070,9 +19078,9 @@ and ensure you are accounting for this risk.
19070
19078
  })).filter((b) => Boolean(b.id));
19071
19079
  });
19072
19080
  return (_ctx, _cache) => {
19073
- return openBlock(), createElementBlock("div", _hoisted_1$11, [
19081
+ return openBlock(), createElementBlock("div", _hoisted_1$12, [
19074
19082
  (openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
19075
- return openBlock(), createBlock(_sfc_main$1a, {
19083
+ return openBlock(), createBlock(_sfc_main$1b, {
19076
19084
  key: badge.id,
19077
19085
  badge,
19078
19086
  options: _ctx.options
@@ -19082,8 +19090,8 @@ and ensure you are accounting for this risk.
19082
19090
  };
19083
19091
  }
19084
19092
  });
19085
- const _hoisted_1$10 = ["innerHTML"];
19086
- const _sfc_main$18 = /* @__PURE__ */ defineComponent({
19093
+ const _hoisted_1$11 = ["innerHTML"];
19094
+ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
19087
19095
  __name: "CustomBadge",
19088
19096
  props: {
19089
19097
  badge: {}
@@ -19104,12 +19112,12 @@ and ensure you are accounting for this risk.
19104
19112
  return openBlock(), createElementBlock("div", {
19105
19113
  class: normalizeClass(className.value),
19106
19114
  innerHTML: text.value
19107
- }, null, 10, _hoisted_1$10);
19115
+ }, null, 10, _hoisted_1$11);
19108
19116
  };
19109
19117
  }
19110
19118
  });
19111
- const _hoisted_1$$ = { class: "lupa-text-badges" };
19112
- const _sfc_main$17 = /* @__PURE__ */ defineComponent({
19119
+ const _hoisted_1$10 = { class: "lupa-text-badges" };
19120
+ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
19113
19121
  __name: "TextBadge",
19114
19122
  props: {
19115
19123
  badge: {}
@@ -19123,7 +19131,7 @@ and ensure you are accounting for this risk.
19123
19131
  return badges.value.slice(0, props.badge.maxItems);
19124
19132
  });
19125
19133
  return (_ctx, _cache) => {
19126
- return openBlock(), createElementBlock("div", _hoisted_1$$, [
19134
+ return openBlock(), createElementBlock("div", _hoisted_1$10, [
19127
19135
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
19128
19136
  return openBlock(), createElementBlock("div", {
19129
19137
  class: "lupa-badge lupa-text-badge",
@@ -19134,9 +19142,9 @@ and ensure you are accounting for this risk.
19134
19142
  };
19135
19143
  }
19136
19144
  });
19137
- const _hoisted_1$_ = { class: "lupa-image-badges" };
19138
- const _hoisted_2$L = ["src"];
19139
- const _sfc_main$16 = /* @__PURE__ */ defineComponent({
19145
+ const _hoisted_1$$ = { class: "lupa-image-badges" };
19146
+ const _hoisted_2$M = ["src"];
19147
+ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
19140
19148
  __name: "ImageBadge",
19141
19149
  props: {
19142
19150
  badge: {}
@@ -19156,7 +19164,7 @@ and ensure you are accounting for this risk.
19156
19164
  return `${props.badge.rootImageUrl}${src}`;
19157
19165
  };
19158
19166
  return (_ctx, _cache) => {
19159
- return openBlock(), createElementBlock("div", _hoisted_1$_, [
19167
+ return openBlock(), createElementBlock("div", _hoisted_1$$, [
19160
19168
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
19161
19169
  return openBlock(), createElementBlock("div", {
19162
19170
  class: "lupa-badge lupa-image-badge",
@@ -19164,14 +19172,14 @@ and ensure you are accounting for this risk.
19164
19172
  }, [
19165
19173
  createBaseVNode("img", {
19166
19174
  src: getImageUrl(item)
19167
- }, null, 8, _hoisted_2$L)
19175
+ }, null, 8, _hoisted_2$M)
19168
19176
  ]);
19169
19177
  }), 128))
19170
19178
  ]);
19171
19179
  };
19172
19180
  }
19173
19181
  });
19174
- const _sfc_main$15 = /* @__PURE__ */ defineComponent({
19182
+ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
19175
19183
  __name: "DiscountBadge",
19176
19184
  props: {
19177
19185
  badge: {}
@@ -19229,16 +19237,16 @@ and ensure you are accounting for this risk.
19229
19237
  };
19230
19238
  }
19231
19239
  });
19232
- const _hoisted_1$Z = { id: "lupa-search-results-badges" };
19240
+ const _hoisted_1$_ = { id: "lupa-search-results-badges" };
19233
19241
  const __default__$3 = {
19234
19242
  components: {
19235
- CustomBadge: _sfc_main$18,
19236
- TextBadge: _sfc_main$17,
19237
- ImageBadge: _sfc_main$16,
19238
- DiscountBadge: _sfc_main$15
19243
+ CustomBadge: _sfc_main$19,
19244
+ TextBadge: _sfc_main$18,
19245
+ ImageBadge: _sfc_main$17,
19246
+ DiscountBadge: _sfc_main$16
19239
19247
  }
19240
19248
  };
19241
- const _sfc_main$14 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
19249
+ const _sfc_main$15 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
19242
19250
  __name: "SearchResultsBadgeWrapper",
19243
19251
  props: {
19244
19252
  position: {},
@@ -19301,7 +19309,7 @@ and ensure you are accounting for this risk.
19301
19309
  }
19302
19310
  };
19303
19311
  return (_ctx, _cache) => {
19304
- return openBlock(), createElementBlock("div", _hoisted_1$Z, [
19312
+ return openBlock(), createElementBlock("div", _hoisted_1$_, [
19305
19313
  createBaseVNode("div", {
19306
19314
  id: "lupa-badges",
19307
19315
  class: normalizeClass(anchorPosition.value)
@@ -19312,7 +19320,7 @@ and ensure you are accounting for this risk.
19312
19320
  badge
19313
19321
  }, null, 8, ["badge"]);
19314
19322
  }), 128)),
19315
- positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$19, {
19323
+ positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$1a, {
19316
19324
  key: 0,
19317
19325
  options: _ctx.options
19318
19326
  }, null, 8, ["options"])) : createCommentVNode("", true)
@@ -19321,13 +19329,13 @@ and ensure you are accounting for this risk.
19321
19329
  };
19322
19330
  }
19323
19331
  }));
19324
- const _hoisted_1$Y = ["href"];
19325
- const _hoisted_2$K = { class: "lupa-search-box-product-details-section" };
19326
- const _hoisted_3$y = {
19332
+ const _hoisted_1$Z = ["href"];
19333
+ const _hoisted_2$L = { class: "lupa-search-box-product-details-section" };
19334
+ const _hoisted_3$z = {
19327
19335
  key: 0,
19328
19336
  class: "lupa-search-box-product-add-to-cart-section"
19329
19337
  };
19330
- const _sfc_main$13 = /* @__PURE__ */ defineComponent({
19338
+ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
19331
19339
  __name: "SearchBoxProduct",
19332
19340
  props: {
19333
19341
  item: {},
@@ -19413,7 +19421,7 @@ and ensure you are accounting for this risk.
19413
19421
  style: normalizeStyle(imageStyleOverride.value)
19414
19422
  }, [
19415
19423
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
19416
- return openBlock(), createBlock(_sfc_main$1b, {
19424
+ return openBlock(), createBlock(_sfc_main$1c, {
19417
19425
  class: "lupa-search-box-product-element",
19418
19426
  item: _ctx.item,
19419
19427
  element,
@@ -19423,10 +19431,10 @@ and ensure you are accounting for this risk.
19423
19431
  }, null, 8, ["item", "element", "labels", "link"]);
19424
19432
  }), 128))
19425
19433
  ], 4),
19426
- createBaseVNode("div", _hoisted_2$K, [
19434
+ createBaseVNode("div", _hoisted_2$L, [
19427
19435
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
19428
19436
  var _a;
19429
- return openBlock(), createBlock(_sfc_main$1b, {
19437
+ return openBlock(), createBlock(_sfc_main$1c, {
19430
19438
  key: element.key,
19431
19439
  class: "lupa-search-box-product-element",
19432
19440
  item: _ctx.item,
@@ -19437,7 +19445,7 @@ and ensure you are accounting for this risk.
19437
19445
  badgeOptions.value && ((_a = badgeOptions.value) == null ? void 0 : _a.anchorElementKey) === element.key ? {
19438
19446
  name: "badges",
19439
19447
  fn: withCtx(() => [
19440
- createVNode(_sfc_main$14, {
19448
+ createVNode(_sfc_main$15, {
19441
19449
  options: badgeOptions.value,
19442
19450
  position: "card"
19443
19451
  }, null, 8, ["options"])
@@ -19447,8 +19455,8 @@ and ensure you are accounting for this risk.
19447
19455
  ]), 1032, ["item", "element", "labels", "link"]);
19448
19456
  }), 128))
19449
19457
  ]),
19450
- addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$y, [
19451
- createVNode(_sfc_main$1b, {
19458
+ addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$z, [
19459
+ createVNode(_sfc_main$1c, {
19452
19460
  class: "lupa-search-box-product-element",
19453
19461
  item: _ctx.item,
19454
19462
  element: addToCartElement.value,
@@ -19457,7 +19465,7 @@ and ensure you are accounting for this risk.
19457
19465
  isInStock: isInStock.value
19458
19466
  }, null, 8, ["item", "element", "labels", "link", "isInStock"])
19459
19467
  ])) : createCommentVNode("", true)
19460
- ], 16, _hoisted_1$Y);
19468
+ ], 16, _hoisted_1$Z);
19461
19469
  };
19462
19470
  }
19463
19471
  });
@@ -19529,8 +19537,8 @@ and ensure you are accounting for this risk.
19529
19537
  };
19530
19538
  return { trackSearch, trackResults, trackEvent, trackDelayedEvent };
19531
19539
  });
19532
- const _hoisted_1$X = { id: "lupa-search-box-products" };
19533
- const _sfc_main$12 = /* @__PURE__ */ defineComponent({
19540
+ const _hoisted_1$Y = { id: "lupa-search-box-products" };
19541
+ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
19534
19542
  __name: "SearchBoxProducts",
19535
19543
  props: {
19536
19544
  items: {},
@@ -19598,7 +19606,7 @@ and ensure you are accounting for this risk.
19598
19606
  handleRoutingEvent(link, event, boxRoutingBehavior.value === "event");
19599
19607
  };
19600
19608
  return (_ctx, _cache) => {
19601
- return openBlock(), createElementBlock("div", _hoisted_1$X, [
19609
+ return openBlock(), createElementBlock("div", _hoisted_1$Y, [
19602
19610
  _ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
19603
19611
  return renderSlot(_ctx.$slots, "productCard", {
19604
19612
  key: index,
@@ -19610,7 +19618,7 @@ and ensure you are accounting for this risk.
19610
19618
  itemClicked: handleProductClick
19611
19619
  });
19612
19620
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
19613
- return openBlock(), createBlock(_sfc_main$13, {
19621
+ return openBlock(), createBlock(_sfc_main$14, {
19614
19622
  key: index,
19615
19623
  item,
19616
19624
  panelOptions: _ctx.panelOptions,
@@ -19625,9 +19633,9 @@ and ensure you are accounting for this risk.
19625
19633
  };
19626
19634
  }
19627
19635
  });
19628
- const _hoisted_1$W = { class: "lupa-search-box-documents-go-to-results-wrapper" };
19629
- const _hoisted_2$J = { key: 0 };
19630
- const _sfc_main$11 = /* @__PURE__ */ defineComponent({
19636
+ const _hoisted_1$X = { class: "lupa-search-box-documents-go-to-results-wrapper" };
19637
+ const _hoisted_2$K = { key: 0 };
19638
+ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
19631
19639
  __name: "SearchBoxProductsGoToResultsButton",
19632
19640
  props: {
19633
19641
  options: {},
@@ -19657,19 +19665,19 @@ and ensure you are accounting for this risk.
19657
19665
  emit2("goToResults");
19658
19666
  };
19659
19667
  return (_ctx, _cache) => {
19660
- return openBlock(), createElementBlock("div", _hoisted_1$W, [
19668
+ return openBlock(), createElementBlock("div", _hoisted_1$X, [
19661
19669
  createBaseVNode("button", {
19662
19670
  class: "lupa-search-box-documents-go-to-results-button",
19663
19671
  onClick: goToResults
19664
19672
  }, [
19665
19673
  createTextVNode(toDisplayString(goToResultsLabel.value) + " ", 1),
19666
- totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$J, " " + toDisplayString(totalCount.value), 1)) : createCommentVNode("", true)
19674
+ totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$K, " " + toDisplayString(totalCount.value), 1)) : createCommentVNode("", true)
19667
19675
  ])
19668
19676
  ]);
19669
19677
  };
19670
19678
  }
19671
19679
  });
19672
- const _sfc_main$10 = /* @__PURE__ */ defineComponent({
19680
+ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
19673
19681
  __name: "SearchBoxProductsWrapper",
19674
19682
  props: {
19675
19683
  panel: {},
@@ -19726,7 +19734,7 @@ and ensure you are accounting for this risk.
19726
19734
  watch(() => props.panel.limit, getItemsDebounced);
19727
19735
  return (_ctx, _cache) => {
19728
19736
  var _a, _b;
19729
- return openBlock(), createBlock(_sfc_main$12, {
19737
+ return openBlock(), createBlock(_sfc_main$13, {
19730
19738
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
19731
19739
  panelOptions: _ctx.panel,
19732
19740
  labels: _ctx.labels,
@@ -19736,7 +19744,7 @@ and ensure you are accounting for this risk.
19736
19744
  default: withCtx(() => {
19737
19745
  var _a2;
19738
19746
  return [
19739
- showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main$11, {
19747
+ showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main$12, {
19740
19748
  key: 0,
19741
19749
  options: _ctx.searchBoxOptions,
19742
19750
  panel: _ctx.panel,
@@ -19757,7 +19765,7 @@ and ensure you are accounting for this risk.
19757
19765
  };
19758
19766
  }
19759
19767
  });
19760
- const _sfc_main$$ = /* @__PURE__ */ defineComponent({
19768
+ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
19761
19769
  __name: "SearchBoxRelatedSourceWrapper",
19762
19770
  props: {
19763
19771
  panel: {},
@@ -19829,7 +19837,7 @@ and ensure you are accounting for this risk.
19829
19837
  });
19830
19838
  return (_ctx, _cache) => {
19831
19839
  var _a, _b;
19832
- return openBlock(), createBlock(_sfc_main$12, {
19840
+ return openBlock(), createBlock(_sfc_main$13, {
19833
19841
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
19834
19842
  panelOptions: documentPanelOptions.value,
19835
19843
  labels: _ctx.labels,
@@ -19847,12 +19855,12 @@ and ensure you are accounting for this risk.
19847
19855
  };
19848
19856
  }
19849
19857
  });
19850
- const _hoisted_1$V = {
19858
+ const _hoisted_1$W = {
19851
19859
  key: 0,
19852
19860
  id: "lupa-search-box-panel"
19853
19861
  };
19854
- const _hoisted_2$I = ["data-cy"];
19855
- const _hoisted_3$x = {
19862
+ const _hoisted_2$J = ["data-cy"];
19863
+ const _hoisted_3$y = {
19856
19864
  key: 0,
19857
19865
  class: "lupa-panel-title lupa-panel-title-top-results"
19858
19866
  };
@@ -19866,12 +19874,12 @@ and ensure you are accounting for this risk.
19866
19874
  };
19867
19875
  const __default__$2 = {
19868
19876
  components: {
19869
- SearchBoxSuggestionsWrapper: _sfc_main$1l,
19870
- SearchBoxProductsWrapper: _sfc_main$10,
19871
- SearchBoxRelatedSourceWrapper: _sfc_main$$
19877
+ SearchBoxSuggestionsWrapper: _sfc_main$1m,
19878
+ SearchBoxProductsWrapper: _sfc_main$11,
19879
+ SearchBoxRelatedSourceWrapper: _sfc_main$10
19872
19880
  }
19873
19881
  };
19874
- const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
19882
+ const _sfc_main$$ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
19875
19883
  __name: "SearchBoxMainPanel",
19876
19884
  props: {
19877
19885
  options: {},
@@ -20027,7 +20035,7 @@ and ensure you are accounting for this risk.
20027
20035
  ref_key: "panelContainer",
20028
20036
  ref: panelContainer
20029
20037
  }, [
20030
- displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$V, [
20038
+ displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$W, [
20031
20039
  labels.value.closePanel ? (openBlock(), createElementBlock("a", {
20032
20040
  key: 0,
20033
20041
  class: "lupa-search-box-close-panel",
@@ -20049,7 +20057,7 @@ and ensure you are accounting for this risk.
20049
20057
  style: normalizeStyle(panel.gridArea ? { gridArea: `${panel.gridArea}${index}` } : {}),
20050
20058
  "data-cy": "lupa-panel-" + panel.type + "-index"
20051
20059
  }, [
20052
- ((_a2 = panel.labels) == null ? void 0 : _a2.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$x, toDisplayString((_b = panel.labels) == null ? void 0 : _b.topResultsTitle), 1)) : createCommentVNode("", true),
20060
+ ((_a2 = panel.labels) == null ? void 0 : _a2.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$y, toDisplayString((_b = panel.labels) == null ? void 0 : _b.topResultsTitle), 1)) : createCommentVNode("", true),
20053
20061
  ((_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),
20054
20062
  panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
20055
20063
  key: 2,
@@ -20072,21 +20080,21 @@ and ensure you are accounting for this risk.
20072
20080
  key: "0"
20073
20081
  } : void 0
20074
20082
  ]), 1064, ["panel", "search-box-options", "options", "debounce", "inputValue", "labels"])) : createCommentVNode("", true)
20075
- ], 14, _hoisted_2$I);
20083
+ ], 14, _hoisted_2$J);
20076
20084
  }), 128))
20077
20085
  ], 4),
20078
- !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1o, {
20086
+ !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1p, {
20079
20087
  key: 1,
20080
20088
  labels: labels.value
20081
20089
  }, null, 8, ["labels"])) : createCommentVNode("", true),
20082
- unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1r, {
20090
+ unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1s, {
20083
20091
  key: 2,
20084
20092
  labels: labels.value,
20085
20093
  showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
20086
20094
  onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
20087
20095
  }, null, 8, ["labels", "showTotalCount"])) : createCommentVNode("", true)
20088
20096
  ])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$g, [
20089
- createVNode(_sfc_main$1p, {
20097
+ createVNode(_sfc_main$1q, {
20090
20098
  options: _ctx.options.history,
20091
20099
  history: history.value,
20092
20100
  onGoToResults: handleGoToResults,
@@ -20111,9 +20119,9 @@ and ensure you are accounting for this risk.
20111
20119
  const elements = getElements(triggers);
20112
20120
  elements.forEach((e2) => e2 == null ? void 0 : e2.removeEventListener(BIND_EVENT, event));
20113
20121
  };
20114
- const _hoisted_1$U = { id: "lupa-search-box" };
20115
- const _hoisted_2$H = { class: "lupa-search-box-wrapper" };
20116
- const _sfc_main$Z = /* @__PURE__ */ defineComponent({
20122
+ const _hoisted_1$V = { id: "lupa-search-box" };
20123
+ const _hoisted_2$I = { class: "lupa-search-box-wrapper" };
20124
+ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
20117
20125
  __name: "SearchBox",
20118
20126
  props: {
20119
20127
  options: {},
@@ -20380,9 +20388,9 @@ and ensure you are accounting for this risk.
20380
20388
  };
20381
20389
  return (_ctx, _cache) => {
20382
20390
  var _a2;
20383
- return openBlock(), createElementBlock("div", _hoisted_1$U, [
20384
- createBaseVNode("div", _hoisted_2$H, [
20385
- createVNode(_sfc_main$1s, {
20391
+ return openBlock(), createElementBlock("div", _hoisted_1$V, [
20392
+ createBaseVNode("div", _hoisted_2$I, [
20393
+ createVNode(_sfc_main$1t, {
20386
20394
  options: inputOptions.value,
20387
20395
  suggestedValue: suggestedValue.value,
20388
20396
  "can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
@@ -20395,7 +20403,7 @@ and ensure you are accounting for this risk.
20395
20403
  onSearch: handleSearch,
20396
20404
  onClose: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("close"))
20397
20405
  }, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
20398
- opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$_, {
20406
+ opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$$, {
20399
20407
  key: 0,
20400
20408
  options: panelOptions.value,
20401
20409
  inputValue: inputValue.value,
@@ -20484,20 +20492,20 @@ and ensure you are accounting for this risk.
20484
20492
  }
20485
20493
  return searchParams;
20486
20494
  };
20487
- const _hoisted_1$T = {
20495
+ const _hoisted_1$U = {
20488
20496
  key: 0,
20489
20497
  id: "lupa-search-results-did-you-mean"
20490
20498
  };
20491
- const _hoisted_2$G = {
20499
+ const _hoisted_2$H = {
20492
20500
  key: 0,
20493
20501
  "data-cy": "suggested-search-text-label"
20494
20502
  };
20495
- const _hoisted_3$w = {
20503
+ const _hoisted_3$x = {
20496
20504
  key: 1,
20497
20505
  "data-cy": "did-you-mean-label"
20498
20506
  };
20499
20507
  const _hoisted_4$o = { key: 1 };
20500
- const _sfc_main$Y = /* @__PURE__ */ defineComponent({
20508
+ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
20501
20509
  __name: "SearchResultsDidYouMean",
20502
20510
  props: {
20503
20511
  labels: {}
@@ -20529,8 +20537,8 @@ and ensure you are accounting for this risk.
20529
20537
  paramStore.goToResults({ searchText, facet });
20530
20538
  };
20531
20539
  return (_ctx, _cache) => {
20532
- return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$T, [
20533
- unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$G, [
20540
+ return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$U, [
20541
+ unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$H, [
20534
20542
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
20535
20543
  return openBlock(), createElementBlock("span", { key: index }, [
20536
20544
  createBaseVNode("span", {
@@ -20539,7 +20547,7 @@ and ensure you are accounting for this risk.
20539
20547
  ]);
20540
20548
  }), 128))
20541
20549
  ])) : createCommentVNode("", true),
20542
- didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$w, [
20550
+ didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$x, [
20543
20551
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.didYouMean.split(" "), (label, index) => {
20544
20552
  return openBlock(), createElementBlock("span", { key: index }, [
20545
20553
  label.includes("{1}") ? (openBlock(), createElementBlock("span", {
@@ -20555,12 +20563,12 @@ and ensure you are accounting for this risk.
20555
20563
  };
20556
20564
  }
20557
20565
  });
20558
- const _hoisted_1$S = {
20566
+ const _hoisted_1$T = {
20559
20567
  key: 0,
20560
20568
  class: "lupa-search-results-summary"
20561
20569
  };
20562
- const _hoisted_2$F = ["innerHTML"];
20563
- const _sfc_main$X = /* @__PURE__ */ defineComponent({
20570
+ const _hoisted_2$G = ["innerHTML"];
20571
+ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
20564
20572
  __name: "SearchResultsSummary",
20565
20573
  props: {
20566
20574
  label: {},
@@ -20575,8 +20583,8 @@ and ensure you are accounting for this risk.
20575
20583
  return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
20576
20584
  });
20577
20585
  return (_ctx, _cache) => {
20578
- return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$S, [
20579
- createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$F),
20586
+ return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$T, [
20587
+ createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$G),
20580
20588
  _ctx.clearable ? (openBlock(), createElementBlock("span", {
20581
20589
  key: 0,
20582
20590
  class: "lupa-filter-clear",
@@ -20587,19 +20595,19 @@ and ensure you are accounting for this risk.
20587
20595
  };
20588
20596
  }
20589
20597
  });
20590
- const _hoisted_1$R = {
20598
+ const _hoisted_1$S = {
20591
20599
  key: 0,
20592
20600
  class: "lupa-result-page-title",
20593
20601
  "data-cy": "lupa-result-page-title"
20594
20602
  };
20595
- const _hoisted_2$E = { key: 0 };
20596
- const _hoisted_3$v = {
20603
+ const _hoisted_2$F = { key: 0 };
20604
+ const _hoisted_3$w = {
20597
20605
  key: 1,
20598
20606
  class: "lupa-results-total-count"
20599
20607
  };
20600
20608
  const _hoisted_4$n = { class: "lupa-results-total-count-number" };
20601
20609
  const _hoisted_5$f = ["innerHTML"];
20602
- const _sfc_main$W = /* @__PURE__ */ defineComponent({
20610
+ const _sfc_main$X = /* @__PURE__ */ defineComponent({
20603
20611
  __name: "SearchResultsTitle",
20604
20612
  props: {
20605
20613
  options: {},
@@ -20638,16 +20646,16 @@ and ensure you are accounting for this risk.
20638
20646
  });
20639
20647
  return (_ctx, _cache) => {
20640
20648
  return openBlock(), createElementBlock("div", null, [
20641
- showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$R, [
20649
+ showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$S, [
20642
20650
  createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
20643
- queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$E, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
20644
- showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$v, [
20651
+ queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$F, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
20652
+ showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$w, [
20645
20653
  createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
20646
20654
  createBaseVNode("span", _hoisted_4$n, toDisplayString(unref(totalItems)), 1),
20647
20655
  createTextVNode(")")
20648
20656
  ])) : createCommentVNode("", true)
20649
20657
  ])) : createCommentVNode("", true),
20650
- _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$X, {
20658
+ _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$Y, {
20651
20659
  key: 1,
20652
20660
  label: summaryLabel.value
20653
20661
  }, null, 8, ["label"])) : createCommentVNode("", true),
@@ -20660,16 +20668,16 @@ and ensure you are accounting for this risk.
20660
20668
  };
20661
20669
  }
20662
20670
  });
20663
- const _hoisted_1$Q = { class: "lupa-search-result-filter-value" };
20664
- const _hoisted_2$D = {
20671
+ const _hoisted_1$R = { class: "lupa-search-result-filter-value" };
20672
+ const _hoisted_2$E = {
20665
20673
  class: "lupa-current-filter-label",
20666
20674
  "data-cy": "lupa-current-filter-label"
20667
20675
  };
20668
- const _hoisted_3$u = {
20676
+ const _hoisted_3$v = {
20669
20677
  class: "lupa-current-filter-value",
20670
20678
  "data-cy": "lupa-current-filter-value"
20671
20679
  };
20672
- const _sfc_main$V = /* @__PURE__ */ defineComponent({
20680
+ const _sfc_main$W = /* @__PURE__ */ defineComponent({
20673
20681
  __name: "CurrentFilterDisplay",
20674
20682
  props: {
20675
20683
  filter: {}
@@ -20681,28 +20689,28 @@ and ensure you are accounting for this risk.
20681
20689
  emit2("remove", { filter: props.filter });
20682
20690
  };
20683
20691
  return (_ctx, _cache) => {
20684
- return openBlock(), createElementBlock("div", _hoisted_1$Q, [
20692
+ return openBlock(), createElementBlock("div", _hoisted_1$R, [
20685
20693
  createBaseVNode("div", {
20686
20694
  class: "lupa-current-filter-action",
20687
20695
  onClick: handleClick
20688
20696
  }, "⨉"),
20689
- createBaseVNode("div", _hoisted_2$D, toDisplayString(_ctx.filter.label) + ": ", 1),
20690
- createBaseVNode("div", _hoisted_3$u, toDisplayString(_ctx.filter.value), 1)
20697
+ createBaseVNode("div", _hoisted_2$E, toDisplayString(_ctx.filter.label) + ": ", 1),
20698
+ createBaseVNode("div", _hoisted_3$v, toDisplayString(_ctx.filter.value), 1)
20691
20699
  ]);
20692
20700
  };
20693
20701
  }
20694
20702
  });
20695
- const _hoisted_1$P = { class: "lupa-filter-title-text" };
20696
- const _hoisted_2$C = {
20703
+ const _hoisted_1$Q = { class: "lupa-filter-title-text" };
20704
+ const _hoisted_2$D = {
20697
20705
  key: 0,
20698
20706
  class: "lupa-filter-count"
20699
20707
  };
20700
- const _hoisted_3$t = {
20708
+ const _hoisted_3$u = {
20701
20709
  key: 0,
20702
20710
  class: "filter-values"
20703
20711
  };
20704
20712
  const _hoisted_4$m = { class: "lupa-current-filter-list" };
20705
- const _sfc_main$U = /* @__PURE__ */ defineComponent({
20713
+ const _sfc_main$V = /* @__PURE__ */ defineComponent({
20706
20714
  __name: "CurrentFilters",
20707
20715
  props: {
20708
20716
  options: {},
@@ -20775,19 +20783,19 @@ and ensure you are accounting for this risk.
20775
20783
  class: "lupa-current-filter-title",
20776
20784
  onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
20777
20785
  }, [
20778
- createBaseVNode("div", _hoisted_1$P, [
20786
+ createBaseVNode("div", _hoisted_1$Q, [
20779
20787
  createTextVNode(toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
20780
- _ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$C, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
20788
+ _ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$D, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
20781
20789
  ]),
20782
20790
  _ctx.expandable ? (openBlock(), createElementBlock("div", {
20783
20791
  key: 0,
20784
20792
  class: normalizeClass(["lupa-filter-title-caret", isOpen.value && "open"])
20785
20793
  }, null, 2)) : createCommentVNode("", true)
20786
20794
  ]),
20787
- !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$t, [
20795
+ !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$u, [
20788
20796
  createBaseVNode("div", _hoisted_4$m, [
20789
20797
  (openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter2) => {
20790
- return openBlock(), createBlock(_sfc_main$V, {
20798
+ return openBlock(), createBlock(_sfc_main$W, {
20791
20799
  key: filter2.key + "_" + filter2.value,
20792
20800
  filter: filter2,
20793
20801
  onRemove: handleRemove
@@ -20804,8 +20812,8 @@ and ensure you are accounting for this risk.
20804
20812
  };
20805
20813
  }
20806
20814
  });
20807
- const _hoisted_1$O = ["href"];
20808
- const _sfc_main$T = /* @__PURE__ */ defineComponent({
20815
+ const _hoisted_1$P = ["href"];
20816
+ const _sfc_main$U = /* @__PURE__ */ defineComponent({
20809
20817
  __name: "CategoryFilterItem",
20810
20818
  props: {
20811
20819
  options: {},
@@ -20842,20 +20850,20 @@ and ensure you are accounting for this risk.
20842
20850
  "data-cy": "lupa-child-category-item",
20843
20851
  href: urlLink.value,
20844
20852
  onClick: handleNavigation
20845
- }, toDisplayString(title.value), 9, _hoisted_1$O)
20853
+ }, toDisplayString(title.value), 9, _hoisted_1$P)
20846
20854
  ], 2);
20847
20855
  };
20848
20856
  }
20849
20857
  });
20850
- const _hoisted_1$N = {
20858
+ const _hoisted_1$O = {
20851
20859
  class: "lupa-category-filter",
20852
20860
  "data-cy": "lupa-category-filter"
20853
20861
  };
20854
- const _hoisted_2$B = { class: "lupa-category-back" };
20855
- const _hoisted_3$s = ["href"];
20862
+ const _hoisted_2$C = { class: "lupa-category-back" };
20863
+ const _hoisted_3$t = ["href"];
20856
20864
  const _hoisted_4$l = ["href"];
20857
20865
  const _hoisted_5$e = { class: "lupa-child-category-list" };
20858
- const _sfc_main$S = /* @__PURE__ */ defineComponent({
20866
+ const _sfc_main$T = /* @__PURE__ */ defineComponent({
20859
20867
  __name: "CategoryFilter",
20860
20868
  props: {
20861
20869
  options: {}
@@ -20943,14 +20951,14 @@ and ensure you are accounting for this risk.
20943
20951
  };
20944
20952
  __expose({ fetch: fetch2 });
20945
20953
  return (_ctx, _cache) => {
20946
- return openBlock(), createElementBlock("div", _hoisted_1$N, [
20947
- createBaseVNode("div", _hoisted_2$B, [
20954
+ return openBlock(), createElementBlock("div", _hoisted_1$O, [
20955
+ createBaseVNode("div", _hoisted_2$C, [
20948
20956
  hasBackButton.value ? (openBlock(), createElementBlock("a", {
20949
20957
  key: 0,
20950
20958
  "data-cy": "lupa-category-back",
20951
20959
  href: backUrlLink.value,
20952
20960
  onClick: handleNavigationBack
20953
- }, toDisplayString(backTitle.value), 9, _hoisted_3$s)) : createCommentVNode("", true)
20961
+ }, toDisplayString(backTitle.value), 9, _hoisted_3$t)) : createCommentVNode("", true)
20954
20962
  ]),
20955
20963
  createBaseVNode("div", {
20956
20964
  class: normalizeClass(["lupa-current-category", { "lupa-current-category-active": isActive }])
@@ -20964,7 +20972,7 @@ and ensure you are accounting for this risk.
20964
20972
  ], 2),
20965
20973
  createBaseVNode("div", _hoisted_5$e, [
20966
20974
  (openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
20967
- return openBlock(), createBlock(_sfc_main$T, {
20975
+ return openBlock(), createBlock(_sfc_main$U, {
20968
20976
  key: getCategoryKey(child),
20969
20977
  item: child,
20970
20978
  options: _ctx.options
@@ -20975,12 +20983,12 @@ and ensure you are accounting for this risk.
20975
20983
  };
20976
20984
  }
20977
20985
  });
20978
- const _hoisted_1$M = {
20986
+ const _hoisted_1$N = {
20979
20987
  class: "lupa-search-result-facet-term-values",
20980
20988
  "data-cy": "lupa-search-result-facet-term-values"
20981
20989
  };
20982
- const _hoisted_2$A = ["placeholder"];
20983
- const _hoisted_3$r = { class: "lupa-terms-list" };
20990
+ const _hoisted_2$B = ["placeholder"];
20991
+ const _hoisted_3$s = { class: "lupa-terms-list" };
20984
20992
  const _hoisted_4$k = ["onClick"];
20985
20993
  const _hoisted_5$d = { class: "lupa-term-checkbox-wrapper" };
20986
20994
  const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
@@ -20991,7 +20999,7 @@ and ensure you are accounting for this risk.
20991
20999
  };
20992
21000
  const _hoisted_9$2 = { key: 0 };
20993
21001
  const _hoisted_10$1 = { key: 1 };
20994
- const _sfc_main$R = /* @__PURE__ */ defineComponent({
21002
+ const _sfc_main$S = /* @__PURE__ */ defineComponent({
20995
21003
  __name: "TermFacet",
20996
21004
  props: {
20997
21005
  options: {},
@@ -21062,17 +21070,17 @@ and ensure you are accounting for this risk.
21062
21070
  return selectedItems == null ? void 0 : selectedItems.includes((_b = item.title) == null ? void 0 : _b.toString());
21063
21071
  };
21064
21072
  return (_ctx, _cache) => {
21065
- return openBlock(), createElementBlock("div", _hoisted_1$M, [
21073
+ return openBlock(), createElementBlock("div", _hoisted_1$N, [
21066
21074
  isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
21067
21075
  key: 0,
21068
21076
  class: "lupa-term-filter",
21069
21077
  "data-cy": "lupa-term-filter",
21070
21078
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
21071
21079
  placeholder: _ctx.options.labels.facetFilter
21072
- }, null, 8, _hoisted_2$A)), [
21080
+ }, null, 8, _hoisted_2$B)), [
21073
21081
  [vModelText, termFilter.value]
21074
21082
  ]) : createCommentVNode("", true),
21075
- createBaseVNode("div", _hoisted_3$r, [
21083
+ createBaseVNode("div", _hoisted_3$s, [
21076
21084
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
21077
21085
  return openBlock(), createElementBlock("div", {
21078
21086
  class: normalizeClass(["lupa-facet-term", { checked: isChecked(item) }]),
@@ -22080,12 +22088,12 @@ and ensure you are accounting for this risk.
22080
22088
  m.render = function(e2, t, r, i, n, o) {
22081
22089
  return openBlock(), createElementBlock("div", mergeProps(e2.sliderProps, { ref: "slider" }), null, 16);
22082
22090
  }, m.__file = "src/Slider.vue";
22083
- const _hoisted_1$L = { class: "lupa-search-result-facet-stats-values" };
22084
- const _hoisted_2$z = {
22091
+ const _hoisted_1$M = { class: "lupa-search-result-facet-stats-values" };
22092
+ const _hoisted_2$A = {
22085
22093
  key: 0,
22086
22094
  class: "lupa-stats-facet-summary"
22087
22095
  };
22088
- const _hoisted_3$q = {
22096
+ const _hoisted_3$r = {
22089
22097
  key: 1,
22090
22098
  class: "lupa-stats-facet-summary-input"
22091
22099
  };
@@ -22108,7 +22116,7 @@ and ensure you are accounting for this risk.
22108
22116
  key: 2,
22109
22117
  class: "lupa-stats-slider-wrapper"
22110
22118
  };
22111
- const _sfc_main$Q = /* @__PURE__ */ defineComponent({
22119
+ const _sfc_main$R = /* @__PURE__ */ defineComponent({
22112
22120
  __name: "StatsFacet",
22113
22121
  props: {
22114
22122
  options: {},
@@ -22285,8 +22293,8 @@ and ensure you are accounting for this risk.
22285
22293
  innerSliderRange.value = value;
22286
22294
  };
22287
22295
  return (_ctx, _cache) => {
22288
- return openBlock(), createElementBlock("div", _hoisted_1$L, [
22289
- !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$z, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$q, [
22296
+ return openBlock(), createElementBlock("div", _hoisted_1$M, [
22297
+ !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$A, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$r, [
22290
22298
  createBaseVNode("div", null, [
22291
22299
  rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$j, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
22292
22300
  createBaseVNode("div", _hoisted_5$c, [
@@ -22352,9 +22360,9 @@ and ensure you are accounting for this risk.
22352
22360
  };
22353
22361
  }
22354
22362
  });
22355
- const _hoisted_1$K = { class: "lupa-term-checkbox-wrapper" };
22356
- const _hoisted_2$y = { class: "lupa-term-checkbox-label" };
22357
- const _hoisted_3$p = { class: "lupa-term-label" };
22363
+ const _hoisted_1$L = { class: "lupa-term-checkbox-wrapper" };
22364
+ const _hoisted_2$z = { class: "lupa-term-checkbox-label" };
22365
+ const _hoisted_3$q = { class: "lupa-term-label" };
22358
22366
  const _hoisted_4$i = {
22359
22367
  key: 0,
22360
22368
  class: "lupa-term-count"
@@ -22363,7 +22371,7 @@ and ensure you are accounting for this risk.
22363
22371
  key: 0,
22364
22372
  class: "lupa-facet-level"
22365
22373
  };
22366
- const _sfc_main$P = /* @__PURE__ */ defineComponent({
22374
+ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
22367
22375
  __name: "HierarchyFacetLevel",
22368
22376
  props: {
22369
22377
  options: {},
@@ -22409,13 +22417,13 @@ and ensure you are accounting for this risk.
22409
22417
  "data-cy": "lupa-facet-term",
22410
22418
  onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
22411
22419
  }, [
22412
- createBaseVNode("div", _hoisted_1$K, [
22420
+ createBaseVNode("div", _hoisted_1$L, [
22413
22421
  createBaseVNode("span", {
22414
22422
  class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
22415
22423
  }, null, 2)
22416
22424
  ]),
22417
- createBaseVNode("div", _hoisted_2$y, [
22418
- createBaseVNode("span", _hoisted_3$p, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
22425
+ createBaseVNode("div", _hoisted_2$z, [
22426
+ createBaseVNode("span", _hoisted_3$q, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
22419
22427
  _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$i, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
22420
22428
  ])
22421
22429
  ]),
@@ -22435,13 +22443,13 @@ and ensure you are accounting for this risk.
22435
22443
  };
22436
22444
  }
22437
22445
  });
22438
- const _hoisted_1$J = {
22446
+ const _hoisted_1$K = {
22439
22447
  class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
22440
22448
  "data-cy": "lupa-search-result-facet-term-values"
22441
22449
  };
22442
- const _hoisted_2$x = { key: 0 };
22443
- const _hoisted_3$o = ["placeholder"];
22444
- const _sfc_main$O = /* @__PURE__ */ defineComponent({
22450
+ const _hoisted_2$y = { key: 0 };
22451
+ const _hoisted_3$p = ["placeholder"];
22452
+ const _sfc_main$P = /* @__PURE__ */ defineComponent({
22445
22453
  __name: "HierarchyFacet",
22446
22454
  props: {
22447
22455
  options: {},
@@ -22496,19 +22504,19 @@ and ensure you are accounting for this risk.
22496
22504
  showAll.value = false;
22497
22505
  };
22498
22506
  return (_ctx, _cache) => {
22499
- return openBlock(), createElementBlock("div", _hoisted_1$J, [
22500
- isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$x, [
22507
+ return openBlock(), createElementBlock("div", _hoisted_1$K, [
22508
+ isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$y, [
22501
22509
  withDirectives(createBaseVNode("input", {
22502
22510
  class: "lupa-term-filter",
22503
22511
  "data-cy": "lupa-term-filter",
22504
22512
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
22505
22513
  placeholder: _ctx.options.labels.facetFilter
22506
- }, null, 8, _hoisted_3$o), [
22514
+ }, null, 8, _hoisted_3$p), [
22507
22515
  [vModelText, termFilter.value]
22508
22516
  ])
22509
22517
  ])) : createCommentVNode("", true),
22510
22518
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
22511
- return openBlock(), createBlock(_sfc_main$P, {
22519
+ return openBlock(), createBlock(_sfc_main$Q, {
22512
22520
  key: item.title,
22513
22521
  options: _ctx.options,
22514
22522
  item,
@@ -22532,20 +22540,20 @@ and ensure you are accounting for this risk.
22532
22540
  };
22533
22541
  }
22534
22542
  });
22535
- const _hoisted_1$I = { class: "lupa-facet-label-text" };
22536
- const _hoisted_2$w = {
22543
+ const _hoisted_1$J = { class: "lupa-facet-label-text" };
22544
+ const _hoisted_2$x = {
22537
22545
  key: 0,
22538
22546
  class: "lupa-facet-content",
22539
22547
  "data-cy": "lupa-facet-content"
22540
22548
  };
22541
22549
  const __default__$1 = {
22542
22550
  components: {
22543
- TermFacet: _sfc_main$R,
22544
- StatsFacet: _sfc_main$Q,
22545
- HierarchyFacet: _sfc_main$O
22551
+ TermFacet: _sfc_main$S,
22552
+ StatsFacet: _sfc_main$R,
22553
+ HierarchyFacet: _sfc_main$P
22546
22554
  }
22547
22555
  };
22548
- const _sfc_main$N = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
22556
+ const _sfc_main$O = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
22549
22557
  __name: "FacetDisplay",
22550
22558
  props: {
22551
22559
  options: {},
@@ -22657,12 +22665,12 @@ and ensure you are accounting for this risk.
22657
22665
  "data-cy": "lupa-search-result-facet-label",
22658
22666
  onClick: toggleFacet
22659
22667
  }, [
22660
- createBaseVNode("div", _hoisted_1$I, toDisplayString(facet.value.label), 1),
22668
+ createBaseVNode("div", _hoisted_1$J, toDisplayString(facet.value.label), 1),
22661
22669
  createBaseVNode("div", {
22662
22670
  class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
22663
22671
  }, null, 2)
22664
22672
  ], 2),
22665
- isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$w, [
22673
+ isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$x, [
22666
22674
  (openBlock(), createBlock(resolveDynamicComponent(facetType.value), {
22667
22675
  facet: facet.value,
22668
22676
  currentFilters: currentFilters.value[facet.value.key],
@@ -22680,12 +22688,12 @@ and ensure you are accounting for this risk.
22680
22688
  };
22681
22689
  }
22682
22690
  }));
22683
- const _hoisted_1$H = { class: "lupa-search-result-facet-section" };
22684
- const _hoisted_2$v = {
22691
+ const _hoisted_1$I = { class: "lupa-search-result-facet-section" };
22692
+ const _hoisted_2$w = {
22685
22693
  key: 0,
22686
22694
  class: "lupa-facets-title"
22687
22695
  };
22688
- const _sfc_main$M = /* @__PURE__ */ defineComponent({
22696
+ const _sfc_main$N = /* @__PURE__ */ defineComponent({
22689
22697
  __name: "FacetList",
22690
22698
  props: {
22691
22699
  options: {},
@@ -22719,14 +22727,14 @@ and ensure you are accounting for this risk.
22719
22727
  };
22720
22728
  return (_ctx, _cache) => {
22721
22729
  var _a;
22722
- return openBlock(), createElementBlock("div", _hoisted_1$H, [
22723
- _ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$v, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
22730
+ return openBlock(), createElementBlock("div", _hoisted_1$I, [
22731
+ _ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$w, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
22724
22732
  createBaseVNode("div", {
22725
22733
  class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
22726
22734
  }, [
22727
22735
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
22728
22736
  var _a2;
22729
- return openBlock(), createBlock(_sfc_main$N, {
22737
+ return openBlock(), createBlock(_sfc_main$O, {
22730
22738
  key: facet.key,
22731
22739
  facet,
22732
22740
  currentFilters: currentFiltersValue.value,
@@ -22741,8 +22749,8 @@ and ensure you are accounting for this risk.
22741
22749
  };
22742
22750
  }
22743
22751
  });
22744
- const _hoisted_1$G = ["onClick"];
22745
- const _sfc_main$L = /* @__PURE__ */ defineComponent({
22752
+ const _hoisted_1$H = ["onClick"];
22753
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
22746
22754
  __name: "FacetsButton",
22747
22755
  props: {
22748
22756
  options: {}
@@ -22762,13 +22770,13 @@ and ensure you are accounting for this risk.
22762
22770
  key: 0,
22763
22771
  class: "lupa-facets-button-filter",
22764
22772
  onClick: withModifiers(handleClick, ["stop"])
22765
- }, toDisplayString(label.value), 9, _hoisted_1$G)) : createCommentVNode("", true);
22773
+ }, toDisplayString(label.value), 9, _hoisted_1$H)) : createCommentVNode("", true);
22766
22774
  };
22767
22775
  }
22768
22776
  });
22769
- const _hoisted_1$F = { class: "lupa-search-result-facets" };
22770
- const _hoisted_2$u = { class: "lupa-facets-filter-button-wrapper" };
22771
- const _sfc_main$K = /* @__PURE__ */ defineComponent({
22777
+ const _hoisted_1$G = { class: "lupa-search-result-facets" };
22778
+ const _hoisted_2$v = { class: "lupa-facets-filter-button-wrapper" };
22779
+ const _sfc_main$L = /* @__PURE__ */ defineComponent({
22772
22780
  __name: "Facets",
22773
22781
  props: {
22774
22782
  options: {},
@@ -22851,8 +22859,8 @@ and ensure you are accounting for this risk.
22851
22859
  emit2("filter");
22852
22860
  };
22853
22861
  return (_ctx, _cache) => {
22854
- return openBlock(), createElementBlock("div", _hoisted_1$F, [
22855
- regularFacets.value ? (openBlock(), createBlock(_sfc_main$M, {
22862
+ return openBlock(), createElementBlock("div", _hoisted_1$G, [
22863
+ regularFacets.value ? (openBlock(), createBlock(_sfc_main$N, {
22856
22864
  key: 0,
22857
22865
  options: _ctx.options,
22858
22866
  facets: regularFacets.value,
@@ -22862,8 +22870,8 @@ and ensure you are accounting for this risk.
22862
22870
  onSelect: handleFacetSelect,
22863
22871
  onClear: clear2
22864
22872
  }, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : createCommentVNode("", true),
22865
- createBaseVNode("div", _hoisted_2$u, [
22866
- showFilterButton.value ? (openBlock(), createBlock(_sfc_main$L, {
22873
+ createBaseVNode("div", _hoisted_2$v, [
22874
+ showFilterButton.value ? (openBlock(), createBlock(_sfc_main$M, {
22867
22875
  key: 0,
22868
22876
  options: _ctx.options,
22869
22877
  onFilter: filter2
@@ -22873,11 +22881,11 @@ and ensure you are accounting for this risk.
22873
22881
  };
22874
22882
  }
22875
22883
  });
22876
- const _hoisted_1$E = {
22884
+ const _hoisted_1$F = {
22877
22885
  id: "lupa-search-result-filters",
22878
22886
  class: "lupa-search-result-filters"
22879
22887
  };
22880
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
22888
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
22881
22889
  __name: "SearchResultsFilters",
22882
22890
  props: {
22883
22891
  options: {},
@@ -22910,19 +22918,19 @@ and ensure you are accounting for this risk.
22910
22918
  __expose({ fetch: fetch2 });
22911
22919
  return (_ctx, _cache) => {
22912
22920
  var _a;
22913
- return openBlock(), createElementBlock("div", _hoisted_1$E, [
22914
- showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$U, {
22921
+ return openBlock(), createElementBlock("div", _hoisted_1$F, [
22922
+ showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$V, {
22915
22923
  key: 0,
22916
22924
  options: _ctx.options.currentFilters,
22917
22925
  expandable: (_a = _ctx.expandable) != null ? _a : false
22918
22926
  }, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
22919
- _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$S, {
22927
+ _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$T, {
22920
22928
  key: 1,
22921
22929
  options: _ctx.options.categories,
22922
22930
  ref_key: "categoryFilters",
22923
22931
  ref: categoryFilters
22924
22932
  }, null, 8, ["options"])) : createCommentVNode("", true),
22925
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$K, {
22933
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$L, {
22926
22934
  key: 2,
22927
22935
  options: _ctx.options.facets,
22928
22936
  onFilter: filter2
@@ -22931,12 +22939,12 @@ and ensure you are accounting for this risk.
22931
22939
  };
22932
22940
  }
22933
22941
  });
22934
- const _hoisted_1$D = {
22942
+ const _hoisted_1$E = {
22935
22943
  key: 0,
22936
22944
  class: "lupa-mobile-filter-sidebar"
22937
22945
  };
22938
- const _hoisted_2$t = ["onClick"];
22939
- const _hoisted_3$n = { class: "lupa-mobile-sidebar-content" };
22946
+ const _hoisted_2$u = ["onClick"];
22947
+ const _hoisted_3$o = { class: "lupa-mobile-sidebar-content" };
22940
22948
  const _hoisted_4$h = { class: "lupa-sidebar-top" };
22941
22949
  const _hoisted_5$a = { class: "lupa-sidebar-title" };
22942
22950
  const _hoisted_6$6 = {
@@ -22944,7 +22952,7 @@ and ensure you are accounting for this risk.
22944
22952
  class: "lupa-sidebar-filter-count"
22945
22953
  };
22946
22954
  const _hoisted_7$4 = { class: "lupa-sidebar-filter-options" };
22947
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
22955
+ const _sfc_main$J = /* @__PURE__ */ defineComponent({
22948
22956
  __name: "MobileFilterSidebar",
22949
22957
  props: {
22950
22958
  options: {}
@@ -22975,12 +22983,12 @@ and ensure you are accounting for this risk.
22975
22983
  handleMobileToggle();
22976
22984
  };
22977
22985
  return (_ctx, _cache) => {
22978
- return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$D, [
22986
+ return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$E, [
22979
22987
  createBaseVNode("div", {
22980
22988
  class: "lupa-sidebar-close",
22981
22989
  onClick: withModifiers(handleMobileToggle, ["stop"])
22982
- }, null, 8, _hoisted_2$t),
22983
- createBaseVNode("div", _hoisted_3$n, [
22990
+ }, null, 8, _hoisted_2$u),
22991
+ createBaseVNode("div", _hoisted_3$o, [
22984
22992
  createBaseVNode("div", _hoisted_4$h, [
22985
22993
  createBaseVNode("div", _hoisted_5$a, [
22986
22994
  createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
@@ -22992,7 +23000,7 @@ and ensure you are accounting for this risk.
22992
23000
  })
22993
23001
  ]),
22994
23002
  createBaseVNode("div", _hoisted_7$4, [
22995
- createVNode(_sfc_main$J, {
23003
+ createVNode(_sfc_main$K, {
22996
23004
  options: _ctx.options,
22997
23005
  expandable: isActiveFiltersExpanded.value,
22998
23006
  onFilter: filter2
@@ -23003,14 +23011,14 @@ and ensure you are accounting for this risk.
23003
23011
  };
23004
23012
  }
23005
23013
  });
23006
- const _hoisted_1$C = { id: "lupa-search-results-breadcrumbs" };
23007
- const _hoisted_2$s = ["href", "onClick"];
23008
- const _hoisted_3$m = {
23014
+ const _hoisted_1$D = { id: "lupa-search-results-breadcrumbs" };
23015
+ const _hoisted_2$t = ["href", "onClick"];
23016
+ const _hoisted_3$n = {
23009
23017
  key: 1,
23010
23018
  class: "lupa-search-results-breadcrumb-text"
23011
23019
  };
23012
23020
  const _hoisted_4$g = { key: 2 };
23013
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
23021
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
23014
23022
  __name: "SearchResultsBreadcrumbs",
23015
23023
  props: {
23016
23024
  breadcrumbs: {}
@@ -23035,7 +23043,7 @@ and ensure you are accounting for this risk.
23035
23043
  handleRoutingEvent(link, event, hasEventRouting.value);
23036
23044
  };
23037
23045
  return (_ctx, _cache) => {
23038
- return openBlock(), createElementBlock("div", _hoisted_1$C, [
23046
+ return openBlock(), createElementBlock("div", _hoisted_1$D, [
23039
23047
  (openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
23040
23048
  return openBlock(), createElementBlock("span", {
23041
23049
  class: "lupa-search-results-breadcrumb",
@@ -23049,7 +23057,7 @@ and ensure you are accounting for this risk.
23049
23057
  var _a;
23050
23058
  return handleNavigation(e2, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
23051
23059
  }
23052
- }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$s)) : (openBlock(), createElementBlock("span", _hoisted_3$m, toDisplayString(getLabel(breadcrumb.label)), 1)),
23060
+ }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$t)) : (openBlock(), createElementBlock("span", _hoisted_3$n, toDisplayString(getLabel(breadcrumb.label)), 1)),
23053
23061
  index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$g, " / ")) : createCommentVNode("", true)
23054
23062
  ]);
23055
23063
  }), 128))
@@ -23057,11 +23065,11 @@ and ensure you are accounting for this risk.
23057
23065
  };
23058
23066
  }
23059
23067
  });
23060
- const _hoisted_1$B = {
23068
+ const _hoisted_1$C = {
23061
23069
  id: "lupa-search-result-filters",
23062
23070
  class: "lupa-search-result-filters lupa-search-result-top-filters"
23063
23071
  };
23064
- const _sfc_main$G = /* @__PURE__ */ defineComponent({
23072
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
23065
23073
  __name: "FiltersTopDropdown",
23066
23074
  props: {
23067
23075
  options: {}
@@ -23073,8 +23081,8 @@ and ensure you are accounting for this risk.
23073
23081
  };
23074
23082
  return (_ctx, _cache) => {
23075
23083
  var _a;
23076
- return openBlock(), createElementBlock("div", _hoisted_1$B, [
23077
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$K, {
23084
+ return openBlock(), createElementBlock("div", _hoisted_1$C, [
23085
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$L, {
23078
23086
  key: 0,
23079
23087
  options: _ctx.options.facets,
23080
23088
  "facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
@@ -23085,8 +23093,8 @@ and ensure you are accounting for this risk.
23085
23093
  };
23086
23094
  }
23087
23095
  });
23088
- const _hoisted_1$A = { id: "lupa-search-results-layout-selection" };
23089
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
23096
+ const _hoisted_1$B = { id: "lupa-search-results-layout-selection" };
23097
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
23090
23098
  __name: "SearchResultsLayoutSelection",
23091
23099
  setup(__props) {
23092
23100
  const searchResultStore = useSearchResultStore();
@@ -23097,7 +23105,7 @@ and ensure you are accounting for this risk.
23097
23105
  searchResultStore.setLayout(layout2);
23098
23106
  };
23099
23107
  return (_ctx, _cache) => {
23100
- return openBlock(), createElementBlock("div", _hoisted_1$A, [
23108
+ return openBlock(), createElementBlock("div", _hoisted_1$B, [
23101
23109
  createBaseVNode("div", {
23102
23110
  class: normalizeClass([
23103
23111
  "lupa-layout-selection-grid",
@@ -23119,11 +23127,11 @@ and ensure you are accounting for this risk.
23119
23127
  };
23120
23128
  }
23121
23129
  });
23122
- const _hoisted_1$z = {
23130
+ const _hoisted_1$A = {
23123
23131
  key: 0,
23124
23132
  class: "lupa-mobile-toggle-filter-count"
23125
23133
  };
23126
- const _sfc_main$E = /* @__PURE__ */ defineComponent({
23134
+ const _sfc_main$F = /* @__PURE__ */ defineComponent({
23127
23135
  __name: "SearchResultsMobileToggle",
23128
23136
  props: {
23129
23137
  label: {},
@@ -23141,26 +23149,26 @@ and ensure you are accounting for this risk.
23141
23149
  onClick: handleMobileToggle
23142
23150
  }, [
23143
23151
  createTextVNode(toDisplayString(_ctx.label) + " ", 1),
23144
- _ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$z, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
23152
+ _ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$A, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
23145
23153
  ], 2);
23146
23154
  };
23147
23155
  }
23148
23156
  });
23149
- const _hoisted_1$y = {
23157
+ const _hoisted_1$z = {
23150
23158
  key: 0,
23151
23159
  id: "lupa-search-results-page-select",
23152
23160
  "data-cy": "lupa-search-results-page-select"
23153
23161
  };
23154
- const _hoisted_2$r = {
23162
+ const _hoisted_2$s = {
23155
23163
  key: 0,
23156
23164
  class: "lupa-page-number-separator"
23157
23165
  };
23158
- const _hoisted_3$l = ["onClick"];
23166
+ const _hoisted_3$m = ["onClick"];
23159
23167
  const _hoisted_4$f = {
23160
23168
  key: 0,
23161
23169
  class: "lupa-page-number-separator"
23162
23170
  };
23163
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
23171
+ const _sfc_main$E = /* @__PURE__ */ defineComponent({
23164
23172
  __name: "SearchResultsPageSelect",
23165
23173
  props: {
23166
23174
  lastPageLabel: {},
@@ -23237,7 +23245,7 @@ and ensure you are accounting for this risk.
23237
23245
  }
23238
23246
  };
23239
23247
  return (_ctx, _cache) => {
23240
- return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$y, [
23248
+ return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$z, [
23241
23249
  showBack.value ? (openBlock(), createElementBlock("div", {
23242
23250
  key: 0,
23243
23251
  class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
@@ -23248,7 +23256,7 @@ and ensure you are accounting for this risk.
23248
23256
  class: "lupa-page-number lupa-page-number-first",
23249
23257
  onClick: _cache[1] || (_cache[1] = () => handlePageChange(1))
23250
23258
  }, " 1 "),
23251
- showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$r, "...")) : createCommentVNode("", true)
23259
+ showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$s, "...")) : createCommentVNode("", true)
23252
23260
  ], 64)) : createCommentVNode("", true),
23253
23261
  (openBlock(true), createElementBlock(Fragment, null, renderList(pages.value, (page) => {
23254
23262
  return openBlock(), createElementBlock("div", {
@@ -23259,7 +23267,7 @@ and ensure you are accounting for this risk.
23259
23267
  page === _ctx.options.selectedPage ? "lupa-page-number-selected" : ""
23260
23268
  ]),
23261
23269
  "data-cy": "lupa-page-number"
23262
- }, toDisplayString(page), 11, _hoisted_3$l);
23270
+ }, toDisplayString(page), 11, _hoisted_3$m);
23263
23271
  }), 128)),
23264
23272
  showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
23265
23273
  showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$f, "...")) : createCommentVNode("", true),
@@ -23281,15 +23289,15 @@ and ensure you are accounting for this risk.
23281
23289
  };
23282
23290
  }
23283
23291
  });
23284
- const _hoisted_1$x = {
23292
+ const _hoisted_1$y = {
23285
23293
  id: "lupa-search-results-page-size",
23286
23294
  "data-cy": "lupa-search-results-page-size"
23287
23295
  };
23288
- const _hoisted_2$q = { id: "lupa-select" };
23289
- const _hoisted_3$k = { class: "lupa-select-label" };
23296
+ const _hoisted_2$r = { id: "lupa-select" };
23297
+ const _hoisted_3$l = { class: "lupa-select-label" };
23290
23298
  const _hoisted_4$e = ["aria-label"];
23291
23299
  const _hoisted_5$9 = ["value"];
23292
- const _sfc_main$C = /* @__PURE__ */ defineComponent({
23300
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
23293
23301
  __name: "SearchResultsPageSize",
23294
23302
  props: {
23295
23303
  labels: {},
@@ -23317,9 +23325,9 @@ and ensure you are accounting for this risk.
23317
23325
  });
23318
23326
  };
23319
23327
  return (_ctx, _cache) => {
23320
- return openBlock(), createElementBlock("div", _hoisted_1$x, [
23321
- createBaseVNode("div", _hoisted_2$q, [
23322
- createBaseVNode("label", _hoisted_3$k, toDisplayString(label.value), 1),
23328
+ return openBlock(), createElementBlock("div", _hoisted_1$y, [
23329
+ createBaseVNode("div", _hoisted_2$r, [
23330
+ createBaseVNode("label", _hoisted_3$l, toDisplayString(label.value), 1),
23323
23331
  createBaseVNode("select", {
23324
23332
  class: "lupa-select-dropdown",
23325
23333
  "aria-label": label.value,
@@ -23340,15 +23348,15 @@ and ensure you are accounting for this risk.
23340
23348
  };
23341
23349
  }
23342
23350
  });
23343
- const _hoisted_1$w = {
23351
+ const _hoisted_1$x = {
23344
23352
  id: "lupa-search-results-sort",
23345
23353
  class: "lupa-search-results-sort"
23346
23354
  };
23347
- const _hoisted_2$p = { id: "lupa-select" };
23348
- const _hoisted_3$j = { class: "lupa-select-label" };
23355
+ const _hoisted_2$q = { id: "lupa-select" };
23356
+ const _hoisted_3$k = { class: "lupa-select-label" };
23349
23357
  const _hoisted_4$d = ["aria-label"];
23350
23358
  const _hoisted_5$8 = ["value"];
23351
- const _sfc_main$B = /* @__PURE__ */ defineComponent({
23359
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
23352
23360
  __name: "SearchResultsSort",
23353
23361
  props: {
23354
23362
  options: {},
@@ -23397,9 +23405,9 @@ and ensure you are accounting for this risk.
23397
23405
  previousKey.value = selectedKey.value;
23398
23406
  };
23399
23407
  return (_ctx, _cache) => {
23400
- return openBlock(), createElementBlock("div", _hoisted_1$w, [
23401
- createBaseVNode("div", _hoisted_2$p, [
23402
- createBaseVNode("label", _hoisted_3$j, toDisplayString(_ctx.options.label), 1),
23408
+ return openBlock(), createElementBlock("div", _hoisted_1$x, [
23409
+ createBaseVNode("div", _hoisted_2$q, [
23410
+ createBaseVNode("label", _hoisted_3$k, toDisplayString(_ctx.options.label), 1),
23403
23411
  withDirectives(createBaseVNode("select", {
23404
23412
  class: "lupa-select-dropdown",
23405
23413
  "aria-label": _ctx.options.label,
@@ -23422,12 +23430,12 @@ and ensure you are accounting for this risk.
23422
23430
  };
23423
23431
  }
23424
23432
  });
23425
- const _hoisted_1$v = { class: "lupa-toolbar-left" };
23426
- const _hoisted_2$o = {
23433
+ const _hoisted_1$w = { class: "lupa-toolbar-left" };
23434
+ const _hoisted_2$p = {
23427
23435
  key: 0,
23428
23436
  class: "lupa-toolbar-right-title"
23429
23437
  };
23430
- const _hoisted_3$i = { key: 2 };
23438
+ const _hoisted_3$j = { key: 2 };
23431
23439
  const _hoisted_4$c = { key: 4 };
23432
23440
  const _hoisted_5$7 = { key: 6 };
23433
23441
  const _hoisted_6$5 = { class: "lupa-toolbar-right" };
@@ -23437,7 +23445,7 @@ and ensure you are accounting for this risk.
23437
23445
  };
23438
23446
  const _hoisted_8 = { key: 2 };
23439
23447
  const _hoisted_9 = { key: 4 };
23440
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
23448
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
23441
23449
  __name: "SearchResultsToolbar",
23442
23450
  props: {
23443
23451
  options: {},
@@ -23544,16 +23552,16 @@ and ensure you are accounting for this risk.
23544
23552
  id: "lupa-search-results-toolbar",
23545
23553
  class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
23546
23554
  }, [
23547
- createBaseVNode("div", _hoisted_1$v, [
23548
- toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$o, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
23549
- showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$F, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$i)),
23550
- showItemSummary.value ? (openBlock(), createBlock(_sfc_main$X, {
23555
+ createBaseVNode("div", _hoisted_1$w, [
23556
+ toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$p, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
23557
+ showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$G, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$j)),
23558
+ showItemSummary.value ? (openBlock(), createBlock(_sfc_main$Y, {
23551
23559
  key: 3,
23552
23560
  label: searchSummaryLabel.value,
23553
23561
  clearable: unref(hasAnyFilter) && showFilterClear.value,
23554
23562
  onClear: handleClearAll
23555
23563
  }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$c)),
23556
- displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$D, {
23564
+ displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$E, {
23557
23565
  key: 5,
23558
23566
  options: paginationOptions.value.pageSelect,
23559
23567
  "last-page-label": paginationOptions.value.labels.showMore,
@@ -23562,16 +23570,16 @@ and ensure you are accounting for this risk.
23562
23570
  ]),
23563
23571
  createBaseVNode("div", _hoisted_6$5, [
23564
23572
  toolbarRightLabel.value ? (openBlock(), createElementBlock("div", _hoisted_7$3, toDisplayString(toolbarRightLabel.value), 1)) : createCommentVNode("", true),
23565
- createVNode(_sfc_main$E, {
23573
+ createVNode(_sfc_main$F, {
23566
23574
  label: optionsValue.value.labels.mobileFilterButton,
23567
23575
  "show-filter-count": showMobileFilterCount.value
23568
23576
  }, null, 8, ["label", "show-filter-count"]),
23569
- paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$C, {
23577
+ paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$D, {
23570
23578
  key: 1,
23571
23579
  options: paginationOptions.value.pageSize,
23572
23580
  labels: paginationOptions.value.labels
23573
23581
  }, null, 8, ["options", "labels"])) : (openBlock(), createElementBlock("div", _hoisted_8)),
23574
- sortOptions.value ? (openBlock(), createBlock(_sfc_main$B, {
23582
+ sortOptions.value ? (openBlock(), createBlock(_sfc_main$C, {
23575
23583
  key: 3,
23576
23584
  options: sortOptions.value,
23577
23585
  callbacks: callbacks.value
@@ -23581,7 +23589,7 @@ and ensure you are accounting for this risk.
23581
23589
  };
23582
23590
  }
23583
23591
  });
23584
- const _sfc_main$z = /* @__PURE__ */ defineComponent({
23592
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
23585
23593
  __name: "SearchResultsProductImage",
23586
23594
  props: {
23587
23595
  item: {},
@@ -23589,7 +23597,7 @@ and ensure you are accounting for this risk.
23589
23597
  },
23590
23598
  setup(__props) {
23591
23599
  return (_ctx, _cache) => {
23592
- return openBlock(), createBlock(_sfc_main$1k, {
23600
+ return openBlock(), createBlock(_sfc_main$1l, {
23593
23601
  item: _ctx.item,
23594
23602
  options: _ctx.options,
23595
23603
  "wrapper-class": "lupa-search-results-image-wrapper",
@@ -23598,16 +23606,16 @@ and ensure you are accounting for this risk.
23598
23606
  };
23599
23607
  }
23600
23608
  });
23601
- const _hoisted_1$u = ["title", "innerHTML"];
23602
- const _hoisted_2$n = ["title"];
23603
- const _hoisted_3$h = ["href", "innerHTML"];
23609
+ const _hoisted_1$v = ["title", "innerHTML"];
23610
+ const _hoisted_2$o = ["title"];
23611
+ const _hoisted_3$i = ["href", "innerHTML"];
23604
23612
  const _hoisted_4$b = ["title"];
23605
23613
  const _hoisted_5$6 = {
23606
23614
  key: 0,
23607
23615
  class: "lupa-search-results-product-title-text"
23608
23616
  };
23609
23617
  const _hoisted_6$4 = ["href"];
23610
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
23618
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
23611
23619
  __name: "SearchResultsProductTitle",
23612
23620
  props: {
23613
23621
  item: {},
@@ -23644,7 +23652,7 @@ and ensure you are accounting for this risk.
23644
23652
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
23645
23653
  title: sanitizedTitle.value,
23646
23654
  innerHTML: sanitizedTitle.value
23647
- }, null, 12, _hoisted_1$u)) : isHtml.value && _ctx.options.link ? (openBlock(), createElementBlock("div", {
23655
+ }, null, 12, _hoisted_1$v)) : isHtml.value && _ctx.options.link ? (openBlock(), createElementBlock("div", {
23648
23656
  key: 1,
23649
23657
  class: "lupa-search-results-product-title",
23650
23658
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
@@ -23655,8 +23663,8 @@ and ensure you are accounting for this risk.
23655
23663
  class: "lupa-search-results-product-title-text lupa-title-link",
23656
23664
  innerHTML: sanitizedTitle.value,
23657
23665
  onClick: handleNavigation
23658
- }, null, 8, _hoisted_3$h)
23659
- ], 12, _hoisted_2$n)) : (openBlock(), createElementBlock("div", {
23666
+ }, null, 8, _hoisted_3$i)
23667
+ ], 12, _hoisted_2$o)) : (openBlock(), createElementBlock("div", {
23660
23668
  key: 2,
23661
23669
  class: "lupa-search-results-product-title",
23662
23670
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
@@ -23673,8 +23681,8 @@ and ensure you are accounting for this risk.
23673
23681
  };
23674
23682
  }
23675
23683
  });
23676
- const _hoisted_1$t = ["innerHTML"];
23677
- const _sfc_main$x = /* @__PURE__ */ defineComponent({
23684
+ const _hoisted_1$u = ["innerHTML"];
23685
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
23678
23686
  __name: "SearchResultsProductDescription",
23679
23687
  props: {
23680
23688
  item: {},
@@ -23701,7 +23709,7 @@ and ensure you are accounting for this risk.
23701
23709
  class: "lupa-search-results-product-description",
23702
23710
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
23703
23711
  innerHTML: sanitizedDescription.value
23704
- }, null, 12, _hoisted_1$t)) : (openBlock(), createElementBlock("div", {
23712
+ }, null, 12, _hoisted_1$u)) : (openBlock(), createElementBlock("div", {
23705
23713
  key: 1,
23706
23714
  class: "lupa-search-results-product-description",
23707
23715
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
@@ -23709,15 +23717,15 @@ and ensure you are accounting for this risk.
23709
23717
  };
23710
23718
  }
23711
23719
  });
23712
- const _hoisted_1$s = { id: "lupa-search-results-rating" };
23713
- const _hoisted_2$m = { class: "lupa-ratings" };
23714
- const _hoisted_3$g = { class: "lupa-ratings-base" };
23720
+ const _hoisted_1$t = { id: "lupa-search-results-rating" };
23721
+ const _hoisted_2$n = { class: "lupa-ratings" };
23722
+ const _hoisted_3$h = { class: "lupa-ratings-base" };
23715
23723
  const _hoisted_4$a = ["innerHTML"];
23716
23724
  const _hoisted_5$5 = { class: "lupa-rating-wrapper" };
23717
23725
  const _hoisted_6$3 = ["innerHTML"];
23718
23726
  const _hoisted_7$2 = ["href"];
23719
23727
  const STAR_COUNT = 5;
23720
- const _sfc_main$w = /* @__PURE__ */ defineComponent({
23728
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
23721
23729
  __name: "SearchResultsProductRating",
23722
23730
  props: {
23723
23731
  item: {},
@@ -23754,9 +23762,9 @@ and ensure you are accounting for this risk.
23754
23762
  return generateLink(props.options.links.ratingDetails, props.item);
23755
23763
  });
23756
23764
  return (_ctx, _cache) => {
23757
- return openBlock(), createElementBlock("div", _hoisted_1$s, [
23758
- createBaseVNode("div", _hoisted_2$m, [
23759
- createBaseVNode("div", _hoisted_3$g, [
23765
+ return openBlock(), createElementBlock("div", _hoisted_1$t, [
23766
+ createBaseVNode("div", _hoisted_2$n, [
23767
+ createBaseVNode("div", _hoisted_3$h, [
23760
23768
  (openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
23761
23769
  return openBlock(), createElementBlock("div", {
23762
23770
  key: index,
@@ -23788,11 +23796,11 @@ and ensure you are accounting for this risk.
23788
23796
  };
23789
23797
  }
23790
23798
  });
23791
- const _hoisted_1$r = {
23799
+ const _hoisted_1$s = {
23792
23800
  class: "lupa-search-results-product-regular-price",
23793
23801
  "data-cy": "lupa-search-results-product-regular-price"
23794
23802
  };
23795
- const _sfc_main$v = /* @__PURE__ */ defineComponent({
23803
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
23796
23804
  __name: "SearchResultsProductRegularPrice",
23797
23805
  props: {
23798
23806
  item: {},
@@ -23810,11 +23818,11 @@ and ensure you are accounting for this risk.
23810
23818
  );
23811
23819
  });
23812
23820
  return (_ctx, _cache) => {
23813
- return openBlock(), createElementBlock("div", _hoisted_1$r, toDisplayString(price.value), 1);
23821
+ return openBlock(), createElementBlock("div", _hoisted_1$s, toDisplayString(price.value), 1);
23814
23822
  };
23815
23823
  }
23816
23824
  });
23817
- const _sfc_main$u = /* @__PURE__ */ defineComponent({
23825
+ const _sfc_main$v = /* @__PURE__ */ defineComponent({
23818
23826
  __name: "SearchResultsProductPrice",
23819
23827
  props: {
23820
23828
  item: {},
@@ -23844,10 +23852,10 @@ and ensure you are accounting for this risk.
23844
23852
  };
23845
23853
  }
23846
23854
  });
23847
- const _hoisted_1$q = { class: "lupa-search-results-add-to-cart-wrapper" };
23848
- const _hoisted_2$l = { class: "lupa-search-results-product-addtocart" };
23849
- const _hoisted_3$f = ["id", "disabled", "onClick"];
23850
- const _sfc_main$t = /* @__PURE__ */ defineComponent({
23855
+ const _hoisted_1$r = { class: "lupa-search-results-add-to-cart-wrapper" };
23856
+ const _hoisted_2$m = { class: "lupa-search-results-product-addtocart" };
23857
+ const _hoisted_3$g = ["id", "disabled", "onClick"];
23858
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
23851
23859
  __name: "SearchResultsProductAddToCart",
23852
23860
  props: {
23853
23861
  item: {},
@@ -23885,26 +23893,26 @@ and ensure you are accounting for this risk.
23885
23893
  loading.value = false;
23886
23894
  });
23887
23895
  return (_ctx, _cache) => {
23888
- return openBlock(), createElementBlock("div", _hoisted_1$q, [
23889
- createBaseVNode("div", _hoisted_2$l, [
23896
+ return openBlock(), createElementBlock("div", _hoisted_1$r, [
23897
+ createBaseVNode("div", _hoisted_2$m, [
23890
23898
  createBaseVNode("button", {
23891
23899
  id: id.value,
23892
23900
  class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
23893
23901
  "data-cy": "lupa-add-to-cart",
23894
23902
  disabled: !inStockValue.value || loading.value,
23895
23903
  onClick: withModifiers(handleClick, ["stop"])
23896
- }, toDisplayString(label.value), 11, _hoisted_3$f)
23904
+ }, toDisplayString(label.value), 11, _hoisted_3$g)
23897
23905
  ])
23898
23906
  ]);
23899
23907
  };
23900
23908
  }
23901
23909
  });
23902
- const _hoisted_1$p = ["innerHTML"];
23903
- const _hoisted_2$k = { key: 0 };
23904
- const _hoisted_3$e = { key: 1 };
23910
+ const _hoisted_1$q = ["innerHTML"];
23911
+ const _hoisted_2$l = { key: 0 };
23912
+ const _hoisted_3$f = { key: 1 };
23905
23913
  const _hoisted_4$9 = { class: "lupa-search-box-custom-label" };
23906
23914
  const _hoisted_5$4 = { class: "lupa-search-box-custom-text" };
23907
- const _sfc_main$s = /* @__PURE__ */ defineComponent({
23915
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
23908
23916
  __name: "SearchResultsProductCustom",
23909
23917
  props: {
23910
23918
  item: {},
@@ -23942,11 +23950,11 @@ and ensure you are accounting for this risk.
23942
23950
  key: 0,
23943
23951
  class: className.value,
23944
23952
  innerHTML: text.value
23945
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$p)) : (openBlock(), createElementBlock("div", mergeProps({
23953
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$q)) : (openBlock(), createElementBlock("div", mergeProps({
23946
23954
  key: 1,
23947
23955
  class: className.value
23948
23956
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
23949
- !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$k, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$e, [
23957
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$l, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$f, [
23950
23958
  createBaseVNode("div", _hoisted_4$9, toDisplayString(label.value), 1),
23951
23959
  createBaseVNode("div", _hoisted_5$4, toDisplayString(text.value), 1)
23952
23960
  ]))
@@ -23954,8 +23962,8 @@ and ensure you are accounting for this risk.
23954
23962
  };
23955
23963
  }
23956
23964
  });
23957
- const _hoisted_1$o = ["innerHTML"];
23958
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
23965
+ const _hoisted_1$p = ["innerHTML"];
23966
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
23959
23967
  __name: "SearchResultsProductCustomHtmlElement",
23960
23968
  props: {
23961
23969
  item: {},
@@ -23986,15 +23994,15 @@ and ensure you are accounting for this risk.
23986
23994
  return openBlock(), createElementBlock("div", mergeProps({
23987
23995
  class: className.value,
23988
23996
  innerHTML: text.value
23989
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$o);
23997
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$p);
23990
23998
  };
23991
23999
  }
23992
24000
  });
23993
- const _hoisted_1$n = { id: "lupa-search-results-rating" };
23994
- const _hoisted_2$j = ["innerHTML"];
23995
- const _hoisted_3$d = { class: "lupa-ratings" };
24001
+ const _hoisted_1$o = { id: "lupa-search-results-rating" };
24002
+ const _hoisted_2$k = ["innerHTML"];
24003
+ const _hoisted_3$e = { class: "lupa-ratings" };
23996
24004
  const _hoisted_4$8 = ["href"];
23997
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
24005
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
23998
24006
  __name: "SearchResultsProductSingleStarRating",
23999
24007
  props: {
24000
24008
  item: {},
@@ -24022,12 +24030,12 @@ and ensure you are accounting for this risk.
24022
24030
  return RATING_STAR_HTML;
24023
24031
  });
24024
24032
  return (_ctx, _cache) => {
24025
- return openBlock(), createElementBlock("div", _hoisted_1$n, [
24033
+ return openBlock(), createElementBlock("div", _hoisted_1$o, [
24026
24034
  createBaseVNode("div", {
24027
24035
  innerHTML: star.value,
24028
24036
  class: "lupa-rating lupa-rating-highlighted"
24029
- }, null, 8, _hoisted_2$j),
24030
- createBaseVNode("div", _hoisted_3$d, toDisplayString(rating.value), 1),
24037
+ }, null, 8, _hoisted_2$k),
24038
+ createBaseVNode("div", _hoisted_3$e, toDisplayString(rating.value), 1),
24031
24039
  createBaseVNode("a", {
24032
24040
  href: ratingLink.value,
24033
24041
  class: "lupa-total-ratings"
@@ -24038,19 +24046,19 @@ and ensure you are accounting for this risk.
24038
24046
  });
24039
24047
  const __default__ = {
24040
24048
  components: {
24041
- SearchResultsProductImage: _sfc_main$z,
24042
- SearchResultsProductTitle: _sfc_main$y,
24043
- SearchResultsProductDescription: _sfc_main$x,
24044
- SearchResultsProductRating: _sfc_main$w,
24045
- SearchResultsProductRegularPrice: _sfc_main$v,
24046
- SearchResultsProductPrice: _sfc_main$u,
24047
- SearchResultsProductAddToCart: _sfc_main$t,
24048
- SearchResultsProductCustom: _sfc_main$s,
24049
- SearchResultsProductCustomHtmlElement: _sfc_main$r,
24050
- SearchResultsProductSingleStarRating: _sfc_main$q
24051
- }
24052
- };
24053
- const _sfc_main$p = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
24049
+ SearchResultsProductImage: _sfc_main$A,
24050
+ SearchResultsProductTitle: _sfc_main$z,
24051
+ SearchResultsProductDescription: _sfc_main$y,
24052
+ SearchResultsProductRating: _sfc_main$x,
24053
+ SearchResultsProductRegularPrice: _sfc_main$w,
24054
+ SearchResultsProductPrice: _sfc_main$v,
24055
+ SearchResultsProductAddToCart: _sfc_main$u,
24056
+ SearchResultsProductCustom: _sfc_main$t,
24057
+ SearchResultsProductCustomHtmlElement: _sfc_main$s,
24058
+ SearchResultsProductSingleStarRating: _sfc_main$r
24059
+ }
24060
+ };
24061
+ const _sfc_main$q = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
24054
24062
  __name: "SearchResultsProductCardElement",
24055
24063
  props: {
24056
24064
  item: {},
@@ -24126,14 +24134,14 @@ and ensure you are accounting for this risk.
24126
24134
  };
24127
24135
  }
24128
24136
  }));
24129
- const _hoisted_1$m = ["onMouseup"];
24130
- const _hoisted_2$i = ["href"];
24131
- const _hoisted_3$c = {
24137
+ const _hoisted_1$n = ["onMouseup"];
24138
+ const _hoisted_2$j = ["href"];
24139
+ const _hoisted_3$d = {
24132
24140
  key: 0,
24133
24141
  class: "lupa-out-of-stock"
24134
24142
  };
24135
24143
  const _hoisted_4$7 = { class: "lupa-search-result-product-details-section" };
24136
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
24144
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
24137
24145
  __name: "SearchResultsProductCard",
24138
24146
  props: {
24139
24147
  product: {},
@@ -24294,7 +24302,7 @@ and ensure you are accounting for this risk.
24294
24302
  onClick: handleClick,
24295
24303
  onMouseup: withModifiers(handleClick, ["middle", "exact"])
24296
24304
  }), [
24297
- createVNode(_sfc_main$14, { options: badgesOptions.value }, null, 8, ["options"]),
24305
+ createVNode(_sfc_main$15, { options: badgesOptions.value }, null, 8, ["options"]),
24298
24306
  createBaseVNode("div", {
24299
24307
  class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
24300
24308
  }, [
@@ -24304,7 +24312,7 @@ and ensure you are accounting for this risk.
24304
24312
  onClick: handleNavigation
24305
24313
  }, [
24306
24314
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
24307
- return openBlock(), createBlock(_sfc_main$p, {
24315
+ return openBlock(), createBlock(_sfc_main$q, {
24308
24316
  class: "lupa-search-results-product-element",
24309
24317
  item: _ctx.product,
24310
24318
  element,
@@ -24315,16 +24323,16 @@ and ensure you are accounting for this risk.
24315
24323
  onProductEvent: handleProductEvent
24316
24324
  }, null, 8, ["item", "element", "labels", "inStock", "link"]);
24317
24325
  }), 128)),
24318
- createVNode(_sfc_main$14, {
24326
+ createVNode(_sfc_main$15, {
24319
24327
  options: badgesOptions.value,
24320
24328
  position: "image",
24321
24329
  class: "lupa-image-badges"
24322
24330
  }, null, 8, ["options"]),
24323
- ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_3$c, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
24324
- ], 8, _hoisted_2$i),
24331
+ ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_3$d, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
24332
+ ], 8, _hoisted_2$j),
24325
24333
  createBaseVNode("div", _hoisted_4$7, [
24326
24334
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
24327
- return openBlock(), createBlock(_sfc_main$p, {
24335
+ return openBlock(), createBlock(_sfc_main$q, {
24328
24336
  class: "lupa-search-results-product-element",
24329
24337
  item: _ctx.product,
24330
24338
  element,
@@ -24342,7 +24350,7 @@ and ensure you are accounting for this risk.
24342
24350
  class: normalizeClass("lupa-element-group-" + group)
24343
24351
  }, [
24344
24352
  (openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
24345
- return openBlock(), createBlock(_sfc_main$p, {
24353
+ return openBlock(), createBlock(_sfc_main$q, {
24346
24354
  class: "lupa-search-results-product-element",
24347
24355
  item: _ctx.product,
24348
24356
  element,
@@ -24356,16 +24364,16 @@ and ensure you are accounting for this risk.
24356
24364
  ], 2);
24357
24365
  }), 128))
24358
24366
  ], 2)
24359
- ], 16, _hoisted_1$m);
24367
+ ], 16, _hoisted_1$n);
24360
24368
  };
24361
24369
  }
24362
24370
  });
24363
- const _hoisted_1$l = {
24371
+ const _hoisted_1$m = {
24364
24372
  id: "lupa-search-results-similar-queries",
24365
24373
  "data-cy": "lupa-search-results-similar-queries"
24366
24374
  };
24367
- const _hoisted_2$h = { class: "lupa-similar-queries-label" };
24368
- const _hoisted_3$b = {
24375
+ const _hoisted_2$i = { class: "lupa-similar-queries-label" };
24376
+ const _hoisted_3$c = {
24369
24377
  class: "lupa-similar-query-label",
24370
24378
  "data-cy": "lupa-similar-query-label"
24371
24379
  };
@@ -24376,7 +24384,7 @@ and ensure you are accounting for this risk.
24376
24384
  class: "lupa-products",
24377
24385
  "data-cy": "lupa-products"
24378
24386
  };
24379
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
24387
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
24380
24388
  __name: "SearchResultsSimilarQueries",
24381
24389
  props: {
24382
24390
  labels: {},
@@ -24406,11 +24414,11 @@ and ensure you are accounting for this risk.
24406
24414
  paramsStore.goToResults({ searchText, facet });
24407
24415
  };
24408
24416
  return (_ctx, _cache) => {
24409
- return openBlock(), createElementBlock("div", _hoisted_1$l, [
24410
- createBaseVNode("div", _hoisted_2$h, toDisplayString(_ctx.labels.similarQueries), 1),
24417
+ return openBlock(), createElementBlock("div", _hoisted_1$m, [
24418
+ createBaseVNode("div", _hoisted_2$i, toDisplayString(_ctx.labels.similarQueries), 1),
24411
24419
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
24412
24420
  return openBlock(), createElementBlock("div", { key: index }, [
24413
- createBaseVNode("div", _hoisted_3$b, [
24421
+ createBaseVNode("div", _hoisted_3$c, [
24414
24422
  createBaseVNode("span", null, toDisplayString(similarQueryLabel.value), 1),
24415
24423
  createBaseVNode("span", {
24416
24424
  id: "lupa-similar-query-text-component",
@@ -24426,7 +24434,7 @@ and ensure you are accounting for this risk.
24426
24434
  ]),
24427
24435
  createBaseVNode("div", _hoisted_7$1, [
24428
24436
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
24429
- return openBlock(), createBlock(_sfc_main$o, {
24437
+ return openBlock(), createBlock(_sfc_main$p, {
24430
24438
  style: normalizeStyle(_ctx.columnSize),
24431
24439
  key: getDocumentKey(index2, product),
24432
24440
  product,
@@ -24440,15 +24448,15 @@ and ensure you are accounting for this risk.
24440
24448
  };
24441
24449
  }
24442
24450
  });
24443
- const _hoisted_1$k = {
24451
+ const _hoisted_1$l = {
24444
24452
  key: 0,
24445
24453
  class: "lupa-results-additional-panel"
24446
24454
  };
24447
- const _hoisted_2$g = {
24455
+ const _hoisted_2$h = {
24448
24456
  class: "lupa-results-additional-panel-items",
24449
24457
  "data-cy": "lupa-results-additional-panel-items"
24450
24458
  };
24451
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
24459
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
24452
24460
  __name: "AdditionalPanel",
24453
24461
  props: {
24454
24462
  panel: {},
@@ -24521,10 +24529,10 @@ and ensure you are accounting for this risk.
24521
24529
  handleQueryChange();
24522
24530
  });
24523
24531
  return (_ctx, _cache) => {
24524
- return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$k, [
24525
- createBaseVNode("div", _hoisted_2$g, [
24532
+ return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$l, [
24533
+ createBaseVNode("div", _hoisted_2$h, [
24526
24534
  (openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
24527
- return openBlock(), createBlock(_sfc_main$o, {
24535
+ return openBlock(), createBlock(_sfc_main$p, {
24528
24536
  key: index,
24529
24537
  product: item,
24530
24538
  options: _ctx.panel,
@@ -24542,11 +24550,11 @@ and ensure you are accounting for this risk.
24542
24550
  };
24543
24551
  }
24544
24552
  });
24545
- const _hoisted_1$j = {
24553
+ const _hoisted_1$k = {
24546
24554
  key: 0,
24547
24555
  class: "lupa-results-additional-panels"
24548
24556
  };
24549
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
24557
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
24550
24558
  __name: "AdditionalPanels",
24551
24559
  props: {
24552
24560
  options: {},
@@ -24563,9 +24571,9 @@ and ensure you are accounting for this risk.
24563
24571
  return locationPanels.value.length > 0;
24564
24572
  });
24565
24573
  return (_ctx, _cache) => {
24566
- return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$j, [
24574
+ return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$k, [
24567
24575
  (openBlock(true), createElementBlock(Fragment, null, renderList(locationPanels.value, (panel) => {
24568
- return openBlock(), createBlock(_sfc_main$m, {
24576
+ return openBlock(), createBlock(_sfc_main$n, {
24569
24577
  key: panel.queryKey,
24570
24578
  panel,
24571
24579
  options: _ctx.sdkOptions
@@ -24582,29 +24590,29 @@ and ensure you are accounting for this risk.
24582
24590
  }
24583
24591
  return target;
24584
24592
  };
24585
- const _sfc_main$k = {};
24586
- const _hoisted_1$i = { class: "lupa-spinner-wrapper" };
24587
- const _hoisted_2$f = { class: "lupa-spinner" };
24593
+ const _sfc_main$l = {};
24594
+ const _hoisted_1$j = { class: "lupa-spinner-wrapper" };
24595
+ const _hoisted_2$g = { class: "lupa-spinner" };
24588
24596
  function _sfc_render(_ctx, _cache) {
24589
- return openBlock(), createElementBlock("div", _hoisted_1$i, [
24590
- createBaseVNode("div", _hoisted_2$f, [
24597
+ return openBlock(), createElementBlock("div", _hoisted_1$j, [
24598
+ createBaseVNode("div", _hoisted_2$g, [
24591
24599
  (openBlock(), createElementBlock(Fragment, null, renderList(12, (x2) => {
24592
24600
  return createBaseVNode("div", { key: x2 });
24593
24601
  }), 64))
24594
24602
  ])
24595
24603
  ]);
24596
24604
  }
24597
- const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render]]);
24598
- const _hoisted_1$h = {
24605
+ const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render]]);
24606
+ const _hoisted_1$i = {
24599
24607
  id: "lupa-search-results-similar-results",
24600
24608
  "data-cy": "lupa-search-results-similar-results"
24601
24609
  };
24602
- const _hoisted_2$e = { class: "lupa-similar-results-label" };
24603
- const _hoisted_3$a = {
24610
+ const _hoisted_2$f = { class: "lupa-similar-results-label" };
24611
+ const _hoisted_3$b = {
24604
24612
  class: "lupa-products",
24605
24613
  "data-cy": "lupa-products"
24606
24614
  };
24607
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
24615
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
24608
24616
  __name: "SearchResultsSimilarResults",
24609
24617
  props: {
24610
24618
  columnSize: {},
@@ -24620,11 +24628,11 @@ and ensure you are accounting for this risk.
24620
24628
  return getProductKey(`${index}`, product, props.productCardOptions.idKey);
24621
24629
  };
24622
24630
  return (_ctx, _cache) => {
24623
- return openBlock(), createElementBlock("div", _hoisted_1$h, [
24624
- createBaseVNode("div", _hoisted_2$e, toDisplayString(_ctx.labels.similarResultsLabel), 1),
24625
- createBaseVNode("div", _hoisted_3$a, [
24631
+ return openBlock(), createElementBlock("div", _hoisted_1$i, [
24632
+ createBaseVNode("div", _hoisted_2$f, toDisplayString(_ctx.labels.similarResultsLabel), 1),
24633
+ createBaseVNode("div", _hoisted_3$b, [
24626
24634
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarResults.value.items, (product, index) => {
24627
- return openBlock(), createBlock(_sfc_main$o, {
24635
+ return openBlock(), createBlock(_sfc_main$p, {
24628
24636
  style: normalizeStyle(_ctx.columnSize),
24629
24637
  key: getDocumentKey(index, product),
24630
24638
  product,
@@ -24660,15 +24668,15 @@ and ensure you are accounting for this risk.
24660
24668
  return extractFacetsRelatedSource(source, searchResults2);
24661
24669
  }
24662
24670
  };
24663
- const _hoisted_1$g = { class: "lupa-related-query-item" };
24664
- const _hoisted_2$d = { class: "lupa-related-query-image" };
24665
- const _hoisted_3$9 = { class: "lupa-related-query-label" };
24671
+ const _hoisted_1$h = { class: "lupa-related-query-item" };
24672
+ const _hoisted_2$e = { class: "lupa-related-query-image" };
24673
+ const _hoisted_3$a = { class: "lupa-related-query-label" };
24666
24674
  const _hoisted_4$5 = { class: "lupa-related-query-title" };
24667
24675
  const _hoisted_5$2 = {
24668
24676
  key: 0,
24669
24677
  class: "lupa-related-query-count"
24670
24678
  };
24671
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
24679
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
24672
24680
  __name: "RelatedQueryPanel",
24673
24681
  props: {
24674
24682
  query: {},
@@ -24679,7 +24687,9 @@ and ensure you are accounting for this risk.
24679
24687
  const loading = ref(false);
24680
24688
  const relatedQueryResult = ref(null);
24681
24689
  const optionsStore = useOptionsStore();
24690
+ const searchResultStore = useSearchResultStore();
24682
24691
  const { searchResultOptions } = storeToRefs(optionsStore);
24692
+ const { searchResult } = storeToRefs(searchResultStore);
24683
24693
  const mainImage = computed(() => {
24684
24694
  var _a, _b, _c;
24685
24695
  return (_c = (_b = (_a = searchResultOptions.value) == null ? void 0 : _a.elements) == null ? void 0 : _b.find((e2) => e2.type === DocumentElementType.IMAGE)) != null ? _c : "";
@@ -24704,24 +24714,34 @@ and ensure you are accounting for this risk.
24704
24714
  var _a, _b;
24705
24715
  return (_b = (_a = relatedQueryResult.value) == null ? void 0 : _a.total) != null ? _b : 0;
24706
24716
  });
24717
+ const searchText = computed(() => {
24718
+ var _a, _b, _c;
24719
+ return ((_a = props.options.source) == null ? void 0 : _a.mode) === "filter" ? (_b = searchResult.value) == null ? void 0 : _b.searchText : (_c = props.query) == null ? void 0 : _c.toLowerCase();
24720
+ });
24721
+ const relatedQueryFilters = computed(() => {
24722
+ var _a, _b, _c;
24723
+ return ((_a = props.options.source) == null ? void 0 : _a.mode) === "filter" ? {
24724
+ [(_c = (_b = props.options) == null ? void 0 : _b.source) == null ? void 0 : _c.key]: [props.query]
24725
+ } : {};
24726
+ });
24707
24727
  const searchForRelatedQuery = () => __async2(this, null, function* () {
24708
- var _a, _b, _c, _d;
24728
+ var _a, _b, _c;
24709
24729
  if (!props.query) {
24710
24730
  return;
24711
24731
  }
24712
- const lupaQuery = { searchText: (_a = props.query) == null ? void 0 : _a.toLowerCase(), limit: 1 };
24732
+ const lupaQuery = { searchText: searchText.value, limit: 1, filters: relatedQueryFilters.value };
24713
24733
  try {
24714
24734
  loading.value = true;
24715
24735
  const result2 = yield LupaSearchSdk.query(
24716
24736
  queryKey.value,
24717
24737
  lupaQuery,
24718
- (_b = searchResultOptions.value) == null ? void 0 : _b.options
24738
+ (_a = searchResultOptions.value) == null ? void 0 : _a.options
24719
24739
  );
24720
24740
  if (result2.success) {
24721
24741
  relatedQueryResult.value = result2;
24722
24742
  }
24723
24743
  } catch (error) {
24724
- (_d = (_c = searchResultOptions.value) == null ? void 0 : _c.options) == null ? void 0 : _d.onError(error);
24744
+ (_c = (_b = searchResultOptions.value) == null ? void 0 : _b.options) == null ? void 0 : _c.onError(error);
24725
24745
  } finally {
24726
24746
  loading.value = false;
24727
24747
  }
@@ -24737,9 +24757,9 @@ and ensure you are accounting for this risk.
24737
24757
  });
24738
24758
  return (_ctx, _cache) => {
24739
24759
  var _a;
24740
- return openBlock(), createElementBlock("div", _hoisted_1$g, [
24741
- createBaseVNode("div", _hoisted_2$d, [
24742
- firstResultItem.value && image.value ? (openBlock(), createBlock(_sfc_main$1k, {
24760
+ return openBlock(), createElementBlock("div", _hoisted_1$h, [
24761
+ createBaseVNode("div", _hoisted_2$e, [
24762
+ firstResultItem.value && image.value ? (openBlock(), createBlock(_sfc_main$1l, {
24743
24763
  key: 0,
24744
24764
  "wrapper-class": "lupa-related-query-image-wrapper",
24745
24765
  "image-class": "lupa-related-query-image",
@@ -24747,7 +24767,7 @@ and ensure you are accounting for this risk.
24747
24767
  options: image.value
24748
24768
  }, null, 8, ["item", "options"])) : createCommentVNode("", true)
24749
24769
  ]),
24750
- createBaseVNode("div", _hoisted_3$9, [
24770
+ createBaseVNode("div", _hoisted_3$a, [
24751
24771
  createBaseVNode("span", _hoisted_4$5, toDisplayString(_ctx.query), 1),
24752
24772
  ((_a = _ctx.options) == null ? void 0 : _a.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$2, "(" + toDisplayString(totalItemCount.value) + ")", 1)) : createCommentVNode("", true)
24753
24773
  ])
@@ -24755,16 +24775,16 @@ and ensure you are accounting for this risk.
24755
24775
  };
24756
24776
  }
24757
24777
  });
24758
- const _hoisted_1$f = {
24778
+ const _hoisted_1$g = {
24759
24779
  key: 0,
24760
24780
  class: "lupa-related-queries"
24761
24781
  };
24762
- const _hoisted_2$c = {
24782
+ const _hoisted_2$d = {
24763
24783
  key: 0,
24764
24784
  class: "lupa-related-queries-title"
24765
24785
  };
24766
- const _hoisted_3$8 = ["onClick"];
24767
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
24786
+ const _hoisted_3$9 = ["onClick"];
24787
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
24768
24788
  __name: "RelatedQueries",
24769
24789
  props: {
24770
24790
  options: {}
@@ -24773,12 +24793,18 @@ and ensure you are accounting for this risk.
24773
24793
  const props = __props;
24774
24794
  const searchResultStore = useSearchResultStore();
24775
24795
  const paramsStore = useParamsStore();
24796
+ const optionsStore = useOptionsStore();
24776
24797
  const { searchResult } = storeToRefs(searchResultStore);
24798
+ const currentSearchText = computed(() => {
24799
+ var _a, _b;
24800
+ return (_b = (_a = searchResult.value) == null ? void 0 : _a.searchText) != null ? _b : "";
24801
+ });
24777
24802
  const relatedQueries = computed(() => {
24778
24803
  if (!props.options || !searchResult.value) {
24779
24804
  return [];
24780
24805
  }
24781
- return extractRelatedSource(props.options.source, searchResult.value);
24806
+ const queries = extractRelatedSource(props.options.source, searchResult.value);
24807
+ return queries;
24782
24808
  });
24783
24809
  const hasEnoughRelatedQueries = computed(() => {
24784
24810
  return relatedQueries.value.length > 1;
@@ -24786,28 +24812,130 @@ and ensure you are accounting for this risk.
24786
24812
  const goToResults = ({ searchText }) => {
24787
24813
  paramsStore.goToResults({ searchText });
24788
24814
  };
24815
+ const handleRelatedQueryClick = (query) => {
24816
+ var _a;
24817
+ if (((_a = props.options.source) == null ? void 0 : _a.mode) === "filter") {
24818
+ handleFilter(query);
24819
+ } else {
24820
+ goToResults({ searchText: query });
24821
+ }
24822
+ };
24823
+ const handleFilter = (query) => {
24824
+ var _a, _b;
24825
+ const facet = (_b = (_a = searchResult.value) == null ? void 0 : _a.facets) == null ? void 0 : _b.find(
24826
+ (facet2) => {
24827
+ var _a2, _b2;
24828
+ return facet2.key === ((_b2 = (_a2 = props.options) == null ? void 0 : _a2.source) == null ? void 0 : _b2.key);
24829
+ }
24830
+ );
24831
+ if (!facet || facet.type !== "terms") {
24832
+ return [];
24833
+ }
24834
+ toggleTermFilter(
24835
+ paramsStore.appendParams,
24836
+ { type: "terms", key: facet.key, value: query },
24837
+ optionsStore.getQueryParamName,
24838
+ {}
24839
+ );
24840
+ };
24841
+ const getSelectedFilterClass = (query) => {
24842
+ var _a, _b, _c, _d, _e, _f;
24843
+ if (((_a = props.options.source) == null ? void 0 : _a.mode) !== "filter") {
24844
+ return "";
24845
+ }
24846
+ return Array.isArray((_c = (_b = searchResult.value) == null ? void 0 : _b.filters) == null ? void 0 : _c[props.options.source.key]) && ((_f = (_e = (_d = searchResult.value) == null ? void 0 : _d.filters) == null ? void 0 : _e[props.options.source.key]) == null ? void 0 : _f.includes(
24847
+ query
24848
+ )) ? "lupa-selected-related-query-filter" : "";
24849
+ };
24789
24850
  return (_ctx, _cache) => {
24790
24851
  var _a, _b, _c, _d;
24791
- return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
24792
- ((_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),
24852
+ return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
24853
+ ((_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),
24793
24854
  createBaseVNode("ul", null, [
24794
24855
  (openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries.value, (query) => {
24795
- return openBlock(), createElementBlock("li", { key: query }, [
24856
+ return openBlock(), createElementBlock("li", {
24857
+ key: query + currentSearchText.value,
24858
+ class: normalizeClass(getSelectedFilterClass(query))
24859
+ }, [
24796
24860
  createBaseVNode("a", {
24797
- onClick: ($event) => goToResults({ searchText: query })
24861
+ onClick: ($event) => handleRelatedQueryClick(query)
24798
24862
  }, [
24799
- createVNode(_sfc_main$i, {
24863
+ createVNode(_sfc_main$j, {
24800
24864
  options: _ctx.options,
24801
24865
  query
24802
24866
  }, null, 8, ["options", "query"])
24803
- ], 8, _hoisted_3$8)
24804
- ]);
24867
+ ], 8, _hoisted_3$9)
24868
+ ], 2);
24805
24869
  }), 128))
24806
24870
  ])
24807
24871
  ])) : createCommentVNode("", true);
24808
24872
  };
24809
24873
  }
24810
24874
  });
24875
+ const checkHasMatchCharacters = (option, searchText) => {
24876
+ var _a, _b;
24877
+ return (_b = (_a = option.matchCharacters) == null ? void 0 : _a.split("")) == null ? void 0 : _b.some((char) => searchText.includes(char));
24878
+ };
24879
+ const checkHasMatchWords = (option, searchText) => {
24880
+ var _a;
24881
+ return (_a = searchText.split(" ")) == null ? void 0 : _a.some((word) => {
24882
+ var _a2;
24883
+ return (_a2 = option.matchWords) == null ? void 0 : _a2.includes(word);
24884
+ });
24885
+ };
24886
+ const extractRedirectionSuggestion = (searchText = "", options) => {
24887
+ for (const option of options || []) {
24888
+ const hasMatchCharacters = option.matchCharacters;
24889
+ const hasMatchWords = option.matchWords;
24890
+ if (hasMatchCharacters && !hasMatchWords && checkHasMatchCharacters(option, searchText)) {
24891
+ return option;
24892
+ }
24893
+ if (hasMatchWords && !hasMatchCharacters && checkHasMatchWords(option, searchText)) {
24894
+ return option;
24895
+ }
24896
+ if (hasMatchCharacters && hasMatchWords && checkHasMatchCharacters(option, searchText) && checkHasMatchWords(option, searchText)) {
24897
+ return option;
24898
+ }
24899
+ }
24900
+ return null;
24901
+ };
24902
+ const _hoisted_1$f = {
24903
+ key: 0,
24904
+ class: "lupa-redirection-suggestion"
24905
+ };
24906
+ const _hoisted_2$c = { class: "lupa-redirections-suggestion-label" };
24907
+ const _hoisted_3$8 = ["href"];
24908
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
24909
+ __name: "RedirectionSuggestions",
24910
+ props: {
24911
+ options: {}
24912
+ },
24913
+ setup(__props) {
24914
+ const props = __props;
24915
+ const searchResultStore = useSearchResultStore();
24916
+ const optionsStore = useOptionsStore();
24917
+ const { searchResult } = storeToRefs(searchResultStore);
24918
+ const searchText = computed(() => searchResult.value.searchText);
24919
+ const redirectionSuggestion = computed(() => {
24920
+ return extractRedirectionSuggestion(searchText.value, props.options);
24921
+ });
24922
+ const label = computed(() => addParamsToLabel(redirectionSuggestion.value.label, searchText.value));
24923
+ const link = computed(
24924
+ () => generateResultLink(
24925
+ redirectionSuggestion.value.link,
24926
+ optionsStore.getQueryParamName,
24927
+ searchText.value
24928
+ )
24929
+ );
24930
+ return (_ctx, _cache) => {
24931
+ return redirectionSuggestion.value && label.value && link.value ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
24932
+ createBaseVNode("h4", _hoisted_2$c, [
24933
+ createBaseVNode("a", { href: link.value }, toDisplayString(label.value), 9, _hoisted_3$8)
24934
+ ])
24935
+ ])) : createCommentVNode("", true);
24936
+ };
24937
+ }
24938
+ });
24811
24939
  const _hoisted_1$e = { id: "lupa-search-results-products" };
24812
24940
  const _hoisted_2$b = {
24813
24941
  class: "lupa-products",
@@ -24937,27 +25065,30 @@ and ensure you are accounting for this risk.
24937
25065
  key: 0,
24938
25066
  class: "lupa-loader"
24939
25067
  })) : createCommentVNode("", true),
24940
- createVNode(_sfc_main$l, {
25068
+ createVNode(_sfc_main$h, {
25069
+ options: _ctx.options.redirectionSuggestions
25070
+ }, null, 8, ["options"]),
25071
+ createVNode(_sfc_main$m, {
24941
25072
  options: _ctx.options,
24942
25073
  location: "top",
24943
25074
  sdkOptions: _ctx.options.options
24944
25075
  }, null, 8, ["options", "sdkOptions"]),
24945
- createVNode(_sfc_main$h, {
25076
+ createVNode(_sfc_main$i, {
24946
25077
  options: _ctx.options.relatedQueries
24947
25078
  }, null, 8, ["options"]),
24948
25079
  unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
24949
- showTopFilters.value ? (openBlock(), createBlock(_sfc_main$G, {
25080
+ showTopFilters.value ? (openBlock(), createBlock(_sfc_main$H, {
24950
25081
  key: 0,
24951
25082
  options: (_a = _ctx.options.filters) != null ? _a : {}
24952
25083
  }, null, 8, ["options"])) : createCommentVNode("", true),
24953
- showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$A, {
25084
+ showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$B, {
24954
25085
  key: 1,
24955
25086
  class: "lupa-toolbar-mobile",
24956
25087
  options: _ctx.options,
24957
25088
  "pagination-location": "top",
24958
25089
  onFilter: filter2
24959
25090
  }, null, 8, ["options"])) : createCommentVNode("", true),
24960
- currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$U, {
25091
+ currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$V, {
24961
25092
  key: 2,
24962
25093
  class: normalizeClass(currentFiltersClass.value),
24963
25094
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -24966,12 +25097,12 @@ and ensure you are accounting for this risk.
24966
25097
  }, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true)
24967
25098
  ], 64)) : createCommentVNode("", true),
24968
25099
  unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
24969
- createVNode(_sfc_main$A, {
25100
+ createVNode(_sfc_main$B, {
24970
25101
  class: "lupa-toolbar-top",
24971
25102
  options: _ctx.options,
24972
25103
  "pagination-location": "top"
24973
25104
  }, null, 8, ["options"]),
24974
- currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$U, {
25105
+ currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$V, {
24975
25106
  key: 0,
24976
25107
  class: normalizeClass(currentFiltersClass.value),
24977
25108
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -24987,7 +25118,7 @@ and ensure you are accounting for this risk.
24987
25118
  options: productCardOptions.value
24988
25119
  });
24989
25120
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
24990
- return openBlock(), createBlock(_sfc_main$o, {
25121
+ return openBlock(), createBlock(_sfc_main$p, {
24991
25122
  style: normalizeStyle(columnSize.value),
24992
25123
  key: getProductKeyAction(index, product),
24993
25124
  product,
@@ -25003,12 +25134,12 @@ and ensure you are accounting for this risk.
25003
25134
  onClick: goToFirstPage
25004
25135
  }, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
25005
25136
  ])) : createCommentVNode("", true),
25006
- createVNode(_sfc_main$A, {
25137
+ createVNode(_sfc_main$B, {
25007
25138
  class: "lupa-toolbar-bottom",
25008
25139
  options: _ctx.options,
25009
25140
  "pagination-location": "bottom"
25010
25141
  }, null, 8, ["options"]),
25011
- createVNode(_sfc_main$l, {
25142
+ createVNode(_sfc_main$m, {
25012
25143
  options: _ctx.options,
25013
25144
  location: "bottom",
25014
25145
  sdkOptions: _ctx.options.options
@@ -25018,14 +25149,14 @@ and ensure you are accounting for this risk.
25018
25149
  createBaseVNode("span", null, toDisplayString(unref(currentQueryText)), 1)
25019
25150
  ])) : createCommentVNode("", true),
25020
25151
  hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
25021
- createVNode(_sfc_main$n, {
25152
+ createVNode(_sfc_main$o, {
25022
25153
  labels: similarQueriesLabels.value,
25023
25154
  columnSize: columnSize.value,
25024
25155
  productCardOptions: productCardOptions.value
25025
25156
  }, null, 8, ["labels", "columnSize", "productCardOptions"])
25026
25157
  ])) : createCommentVNode("", true),
25027
25158
  hasSimilarResults.value ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
25028
- createVNode(_sfc_main$j, {
25159
+ createVNode(_sfc_main$k, {
25029
25160
  labels: similarResultsLabels.value,
25030
25161
  columnSize: columnSize.value,
25031
25162
  productCardOptions: productCardOptions.value
@@ -25094,14 +25225,14 @@ and ensure you are accounting for this risk.
25094
25225
  ])) : createCommentVNode("", true),
25095
25226
  createBaseVNode("div", _hoisted_4$3, [
25096
25227
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
25097
- return openBlock(), createBlock(_sfc_main$T, {
25228
+ return openBlock(), createBlock(_sfc_main$U, {
25098
25229
  key: getCategoryKey(child),
25099
25230
  item: child,
25100
25231
  options: categoryOptions.value
25101
25232
  }, null, 8, ["item", "options"]);
25102
25233
  }), 128))
25103
25234
  ]),
25104
- createVNode(_sfc_main$A, {
25235
+ createVNode(_sfc_main$B, {
25105
25236
  class: "lupa-toolbar-mobile",
25106
25237
  "pagination-location": "top",
25107
25238
  options: _ctx.options
@@ -25333,8 +25464,8 @@ and ensure you are accounting for this risk.
25333
25464
  class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
25334
25465
  }, [
25335
25466
  _ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
25336
- createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
25337
- createVNode(_sfc_main$W, {
25467
+ createVNode(_sfc_main$Z, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
25468
+ createVNode(_sfc_main$X, {
25338
25469
  "show-summary": true,
25339
25470
  options: _ctx.options,
25340
25471
  "is-product-list": (_a = _ctx.isProductList) != null ? _a : false
@@ -25344,17 +25475,17 @@ and ensure you are accounting for this risk.
25344
25475
  key: 1,
25345
25476
  options: _ctx.options
25346
25477
  }, null, 8, ["options"])) : createCommentVNode("", true),
25347
- _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$I, {
25478
+ _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$J, {
25348
25479
  key: 2,
25349
25480
  options: _ctx.options.filters,
25350
25481
  onFilter: handleParamsChange
25351
25482
  }, null, 8, ["options"])) : createCommentVNode("", true),
25352
- unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$H, {
25483
+ unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$I, {
25353
25484
  key: 3,
25354
25485
  breadcrumbs: _ctx.options.breadcrumbs
25355
25486
  }, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
25356
25487
  isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
25357
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$J, {
25488
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$K, {
25358
25489
  key: 0,
25359
25490
  options: (_b = _ctx.options.filters) != null ? _b : {},
25360
25491
  ref_key: "searchResultsFilters",
@@ -25362,8 +25493,8 @@ and ensure you are accounting for this risk.
25362
25493
  onFilter: handleParamsChange
25363
25494
  }, null, 8, ["options"])) : createCommentVNode("", true),
25364
25495
  createBaseVNode("div", _hoisted_3$5, [
25365
- createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
25366
- createVNode(_sfc_main$W, {
25496
+ createVNode(_sfc_main$Z, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
25497
+ createVNode(_sfc_main$X, {
25367
25498
  options: _ctx.options,
25368
25499
  "is-product-list": (_c = _ctx.isProductList) != null ? _c : false
25369
25500
  }, null, 8, ["options", "is-product-list"]),
@@ -25379,13 +25510,13 @@ and ensure you are accounting for this risk.
25379
25510
  }, 8, ["options", "ssr"])
25380
25511
  ])
25381
25512
  ])) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
25382
- createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
25383
- createVNode(_sfc_main$W, {
25513
+ createVNode(_sfc_main$Z, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
25514
+ createVNode(_sfc_main$X, {
25384
25515
  options: _ctx.options,
25385
25516
  "is-product-list": (_d = _ctx.isProductList) != null ? _d : false
25386
25517
  }, null, 8, ["options", "is-product-list"]),
25387
25518
  createBaseVNode("div", _hoisted_4$2, [
25388
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$J, {
25519
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$K, {
25389
25520
  key: 0,
25390
25521
  options: (_e = _ctx.options.filters) != null ? _e : {},
25391
25522
  ref_key: "searchResultsFilters",
@@ -31075,7 +31206,7 @@ and ensure you are accounting for this risk.
31075
31206
  onClick: withModifiers(innerClick, ["stop"])
31076
31207
  }, [
31077
31208
  createBaseVNode("div", _hoisted_2$7, [
31078
- createVNode(_sfc_main$Z, {
31209
+ createVNode(_sfc_main$_, {
31079
31210
  options: fullSearchBoxOptions.value,
31080
31211
  "is-search-container": true,
31081
31212
  ref_key: "searchBox",
@@ -31965,7 +32096,7 @@ and ensure you are accounting for this risk.
31965
32096
  key: getProductKeyAction(index, product)
31966
32097
  }, {
31967
32098
  default: withCtx(() => [
31968
- createVNode(_sfc_main$o, {
32099
+ createVNode(_sfc_main$p, {
31969
32100
  product,
31970
32101
  options: _ctx.options,
31971
32102
  "click-tracking-settings": clickTrackingSettings.value
@@ -31978,7 +32109,7 @@ and ensure you are accounting for this risk.
31978
32109
  _: 1
31979
32110
  }, 16)) : (openBlock(), createElementBlock("div", _hoisted_3$4, [
31980
32111
  (openBlock(true), createElementBlock(Fragment, null, renderList(recommendations2.value, (product, index) => {
31981
- return openBlock(), createBlock(_sfc_main$o, {
32112
+ return openBlock(), createBlock(_sfc_main$p, {
31982
32113
  style: normalizeStyle(columnSize.value),
31983
32114
  key: getProductKeyAction(index, product),
31984
32115
  product,
@@ -32242,7 +32373,7 @@ and ensure you are accounting for this risk.
32242
32373
  createBaseVNode("a", {
32243
32374
  href: getLink(product)
32244
32375
  }, [
32245
- createVNode(_sfc_main$z, {
32376
+ createVNode(_sfc_main$A, {
32246
32377
  item: product,
32247
32378
  options: image.value
32248
32379
  }, null, 8, ["item", "options"])
@@ -32406,7 +32537,7 @@ and ensure you are accounting for this risk.
32406
32537
  return (_ctx, _cache) => {
32407
32538
  return openBlock(), createElementBlock("section", _hoisted_1$3, [
32408
32539
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
32409
- return openBlock(), createBlock(_sfc_main$o, {
32540
+ return openBlock(), createBlock(_sfc_main$p, {
32410
32541
  class: "lupa-chat-product-card",
32411
32542
  key: getProductKeyAction(index, product),
32412
32543
  product,
@@ -32599,7 +32730,7 @@ and ensure you are accounting for this risk.
32599
32730
  key: 0,
32600
32731
  class: "lupasearch-chat-content"
32601
32732
  };
32602
- const _sfc_main$1t = /* @__PURE__ */ defineComponent({
32733
+ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
32603
32734
  __name: "ChatContainer",
32604
32735
  props: {
32605
32736
  options: {}
@@ -38617,7 +38748,7 @@ and ensure you are accounting for this risk.
38617
38748
  };
38618
38749
  __expose({ fetch: fetch2 });
38619
38750
  return (_ctx, _cache) => {
38620
- return openBlock(), createBlock(unref(_sfc_main$Z), {
38751
+ return openBlock(), createBlock(unref(_sfc_main$_), {
38621
38752
  options: fullSearchBoxOptions.value,
38622
38753
  ref_key: "searchBox",
38623
38754
  ref: searchBox2
@@ -39172,7 +39303,7 @@ and ensure you are accounting for this risk.
39172
39303
  const instance = createVue(
39173
39304
  options.displayOptions.containerSelector,
39174
39305
  mountOptions == null ? void 0 : mountOptions.mountingBehavior,
39175
- _sfc_main$1t,
39306
+ _sfc_main$1u,
39176
39307
  {
39177
39308
  options
39178
39309
  }