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