@getlupa/vue 0.17.14 → 0.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1661,6 +1661,15 @@ const refiners = (queryKey, query, environment, customBaseUrl) => __awaiter(void
1661
1661
  const errors = yield res.json();
1662
1662
  return { success: false, errors };
1663
1663
  });
1664
+ const relatedQueries = (queryKey, query, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
1665
+ const res = yield fetch(`${getApiUrl$1(environment, customBaseUrl)}query/${queryKey}/related`, Object.assign(Object.assign({}, defaultConfig), { body: JSON.stringify(query) }));
1666
+ if (res.status < 400) {
1667
+ const data = yield res.json();
1668
+ return Object.assign(Object.assign({}, data), { success: true });
1669
+ }
1670
+ const errors = yield res.json();
1671
+ return { success: false, errors };
1672
+ });
1664
1673
  const queryByIds = (queryKey, ids, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
1665
1674
  const idParam = ids.map((id) => `ids=${id}`).join("&");
1666
1675
  const res = yield fetch(`${getApiUrl$1(environment, customBaseUrl)}query/${queryKey}/ids?${idParam}`, Object.assign(Object.assign({}, defaultConfig), { method: "GET" }));
@@ -1742,6 +1751,9 @@ const LupaSearchSdk = {
1742
1751
  queryRefiners: (queryKey, publicQuery, options = null) => {
1743
1752
  return refiners(queryKey, publicQuery, (options === null || options === void 0 ? void 0 : options.environment) || "production", options === null || options === void 0 ? void 0 : options.customBaseUrl);
1744
1753
  },
1754
+ queryRelated: (queryKey, publicQuery, options = null) => {
1755
+ return relatedQueries(queryKey, publicQuery, (options === null || options === void 0 ? void 0 : options.environment) || "production", options === null || options === void 0 ? void 0 : options.customBaseUrl);
1756
+ },
1745
1757
  suggestions: (queryKey, suggestionQuery, options = null) => {
1746
1758
  if (options === null || options === void 0 ? void 0 : options.customUrl) {
1747
1759
  return suggestCustom(suggestionQuery, options);
@@ -8698,9 +8710,16 @@ const useParamsStore = defineStore("params", () => {
8698
8710
  value: Array.isArray(singleFacetParam.value) ? singleFacetParam.value[0] : singleFacetParam.value
8699
8711
  })
8700
8712
  ] : [];
8713
+ const limitParam = params.value[QUERY_PARAMS_PARSED.LIMIT] ? [
8714
+ {
8715
+ name: optionsStore.getQueryParamName(QUERY_PARAMS.LIMIT),
8716
+ value: limit.value.toString()
8717
+ }
8718
+ ] : [];
8701
8719
  appendParams({
8702
8720
  params: [
8703
8721
  { name: optionsStore.getQueryParamName(QUERY_PARAMS.QUERY), value: searchText },
8722
+ ...limitParam,
8704
8723
  ...facetParam
8705
8724
  ],
8706
8725
  paramsToRemove: "all",
@@ -9001,11 +9020,11 @@ const useSearchBoxStore = defineStore("searchBox", () => {
9001
9020
  resetHighlightIndex
9002
9021
  };
9003
9022
  });
9004
- const _hoisted_1$1i = { id: "lupa-search-box-input-container" };
9005
- const _hoisted_2$T = { class: "lupa-input-clear" };
9006
- const _hoisted_3$C = { id: "lupa-search-box-input" };
9007
- const _hoisted_4$u = ["value"];
9008
- const _hoisted_5$k = ["aria-label", "placeholder"];
9023
+ const _hoisted_1$1k = { id: "lupa-search-box-input-container" };
9024
+ const _hoisted_2$V = { class: "lupa-input-clear" };
9025
+ const _hoisted_3$E = { id: "lupa-search-box-input" };
9026
+ const _hoisted_4$v = ["value"];
9027
+ const _hoisted_5$l = ["aria-label", "placeholder"];
9009
9028
  const _hoisted_6$9 = /* @__PURE__ */ vue.createElementVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
9010
9029
  const _hoisted_7$7 = [
9011
9030
  _hoisted_6$9
@@ -9014,7 +9033,7 @@ const _hoisted_8$3 = {
9014
9033
  key: 0,
9015
9034
  class: "lupa-close-label"
9016
9035
  };
9017
- const _sfc_main$1v = /* @__PURE__ */ vue.defineComponent({
9036
+ const _sfc_main$1x = /* @__PURE__ */ vue.defineComponent({
9018
9037
  __name: "SearchBoxInput",
9019
9038
  props: {
9020
9039
  options: {},
@@ -9098,20 +9117,20 @@ const _sfc_main$1v = /* @__PURE__ */ vue.defineComponent({
9098
9117
  };
9099
9118
  __expose({ focus });
9100
9119
  return (_ctx, _cache) => {
9101
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1i, [
9102
- vue.createElementVNode("div", _hoisted_2$T, [
9120
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1k, [
9121
+ vue.createElementVNode("div", _hoisted_2$V, [
9103
9122
  vue.createElementVNode("div", {
9104
9123
  class: vue.normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
9105
9124
  onClick: clear
9106
9125
  }, null, 2)
9107
9126
  ]),
9108
- vue.createElementVNode("div", _hoisted_3$C, [
9127
+ vue.createElementVNode("div", _hoisted_3$E, [
9109
9128
  vue.createElementVNode("input", {
9110
9129
  class: "lupa-hint",
9111
9130
  "aria-hidden": "true",
9112
9131
  value: showHint.value ? suggestedValue.value.item.suggestion : "",
9113
9132
  disabled: ""
9114
- }, null, 8, _hoisted_4$u),
9133
+ }, null, 8, _hoisted_4$v),
9115
9134
  vue.withDirectives(vue.createElementVNode("input", vue.mergeProps({
9116
9135
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
9117
9136
  }, inputAttributes.value, {
@@ -9125,7 +9144,7 @@ const _sfc_main$1v = /* @__PURE__ */ vue.defineComponent({
9125
9144
  placeholder: labels.value.placeholder,
9126
9145
  onInput: handleInput,
9127
9146
  onFocus: handleFocus
9128
- }), null, 16, _hoisted_5$k), [
9147
+ }), null, 16, _hoisted_5$l), [
9129
9148
  [vue.vModelText, inputValue.value]
9130
9149
  ]),
9131
9150
  _ctx.options.showSubmitButton ? (vue.openBlock(), vue.createElementBlock("button", {
@@ -9144,7 +9163,7 @@ const _sfc_main$1v = /* @__PURE__ */ vue.defineComponent({
9144
9163
  };
9145
9164
  }
9146
9165
  });
9147
- const _sfc_main$1u = /* @__PURE__ */ vue.defineComponent({
9166
+ const _sfc_main$1w = /* @__PURE__ */ vue.defineComponent({
9148
9167
  __name: "SearchBoxMoreResults",
9149
9168
  props: {
9150
9169
  labels: {},
@@ -9181,9 +9200,9 @@ const _sfc_main$1u = /* @__PURE__ */ vue.defineComponent({
9181
9200
  };
9182
9201
  }
9183
9202
  });
9184
- const _hoisted_1$1h = { class: "lupa-search-box-history-item" };
9185
- const _hoisted_2$S = { class: "lupa-search-box-history-item-content" };
9186
- const _sfc_main$1t = /* @__PURE__ */ vue.defineComponent({
9203
+ const _hoisted_1$1j = { class: "lupa-search-box-history-item" };
9204
+ const _hoisted_2$U = { class: "lupa-search-box-history-item-content" };
9205
+ const _sfc_main$1v = /* @__PURE__ */ vue.defineComponent({
9187
9206
  __name: "SearchBoxHistoryItem",
9188
9207
  props: {
9189
9208
  item: {},
@@ -9199,8 +9218,8 @@ const _sfc_main$1t = /* @__PURE__ */ vue.defineComponent({
9199
9218
  emit("click", { query: props.item });
9200
9219
  };
9201
9220
  return (_ctx, _cache) => {
9202
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1h, [
9203
- vue.createElementVNode("div", _hoisted_2$S, [
9221
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1j, [
9222
+ vue.createElementVNode("div", _hoisted_2$U, [
9204
9223
  vue.createElementVNode("div", {
9205
9224
  class: vue.normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
9206
9225
  onClick: click2
@@ -9214,11 +9233,11 @@ const _sfc_main$1t = /* @__PURE__ */ vue.defineComponent({
9214
9233
  };
9215
9234
  }
9216
9235
  });
9217
- const _hoisted_1$1g = {
9236
+ const _hoisted_1$1i = {
9218
9237
  key: 0,
9219
9238
  class: "lupa-search-box-history-panel"
9220
9239
  };
9221
- const _sfc_main$1s = /* @__PURE__ */ vue.defineComponent({
9240
+ const _sfc_main$1u = /* @__PURE__ */ vue.defineComponent({
9222
9241
  __name: "SearchBoxHistoryPanel",
9223
9242
  props: {
9224
9243
  options: {}
@@ -9268,9 +9287,9 @@ const _sfc_main$1s = /* @__PURE__ */ vue.defineComponent({
9268
9287
  }
9269
9288
  };
9270
9289
  return (_ctx, _cache) => {
9271
- return hasHistory.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1g, [
9290
+ return hasHistory.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1i, [
9272
9291
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(limitedHistory.value, (item, index) => {
9273
- return vue.openBlock(), vue.createBlock(_sfc_main$1t, {
9292
+ return vue.openBlock(), vue.createBlock(_sfc_main$1v, {
9274
9293
  key: item,
9275
9294
  item,
9276
9295
  highlighted: index === highlightIndex.value,
@@ -9286,15 +9305,15 @@ const _sfc_main$1s = /* @__PURE__ */ vue.defineComponent({
9286
9305
  };
9287
9306
  }
9288
9307
  });
9289
- const _hoisted_1$1f = { class: "lupa-search-box-no-results" };
9290
- const _sfc_main$1r = /* @__PURE__ */ vue.defineComponent({
9308
+ const _hoisted_1$1h = { class: "lupa-search-box-no-results" };
9309
+ const _sfc_main$1t = /* @__PURE__ */ vue.defineComponent({
9291
9310
  __name: "SearchBoxNoResults",
9292
9311
  props: {
9293
9312
  labels: {}
9294
9313
  },
9295
9314
  setup(__props) {
9296
9315
  return (_ctx, _cache) => {
9297
- return vue.openBlock(), vue.createElementBlock("p", _hoisted_1$1f, vue.toDisplayString(_ctx.labels.noResults), 1);
9316
+ return vue.openBlock(), vue.createElementBlock("p", _hoisted_1$1h, vue.toDisplayString(_ctx.labels.noResults), 1);
9298
9317
  };
9299
9318
  }
9300
9319
  });
@@ -9326,26 +9345,26 @@ const generateGridTemplate = (elements) => {
9326
9345
  }
9327
9346
  return gridTemplate.join(" ");
9328
9347
  };
9329
- const _hoisted_1$1e = ["innerHTML"];
9330
- const _hoisted_2$R = {
9348
+ const _hoisted_1$1g = ["innerHTML"];
9349
+ const _hoisted_2$T = {
9331
9350
  key: 1,
9332
9351
  "data-cy": "lupa-suggestion-value",
9333
9352
  class: "lupa-suggestion-value"
9334
9353
  };
9335
- const _hoisted_3$B = {
9354
+ const _hoisted_3$D = {
9336
9355
  key: 2,
9337
9356
  class: "lupa-suggestion-facet",
9338
9357
  "data-cy": "lupa-suggestion-facet"
9339
9358
  };
9340
- const _hoisted_4$t = {
9359
+ const _hoisted_4$u = {
9341
9360
  class: "lupa-suggestion-facet-label",
9342
9361
  "data-cy": "lupa-suggestion-facet-label"
9343
9362
  };
9344
- const _hoisted_5$j = {
9363
+ const _hoisted_5$k = {
9345
9364
  class: "lupa-suggestion-facet-value",
9346
9365
  "data-cy": "lupa-suggestion-facet-value"
9347
9366
  };
9348
- const _sfc_main$1q = /* @__PURE__ */ vue.defineComponent({
9367
+ const _sfc_main$1s = /* @__PURE__ */ vue.defineComponent({
9349
9368
  __name: "SearchBoxSuggestion",
9350
9369
  props: {
9351
9370
  suggestion: {},
@@ -9381,20 +9400,20 @@ const _sfc_main$1q = /* @__PURE__ */ vue.defineComponent({
9381
9400
  class: "lupa-suggestion-value",
9382
9401
  "data-cy": "lupa-suggestion-value",
9383
9402
  innerHTML: _ctx.suggestion.displayHighlight
9384
- }, null, 8, _hoisted_1$1e)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$R, vue.toDisplayString(_ctx.suggestion.display), 1)),
9385
- _ctx.suggestion.facet ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$B, [
9386
- vue.createElementVNode("span", _hoisted_4$t, vue.toDisplayString(facetLabel.value), 1),
9387
- vue.createElementVNode("span", _hoisted_5$j, vue.toDisplayString(_ctx.suggestion.facet.title), 1)
9403
+ }, null, 8, _hoisted_1$1g)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$T, vue.toDisplayString(_ctx.suggestion.display), 1)),
9404
+ _ctx.suggestion.facet ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$D, [
9405
+ vue.createElementVNode("span", _hoisted_4$u, vue.toDisplayString(facetLabel.value), 1),
9406
+ vue.createElementVNode("span", _hoisted_5$k, vue.toDisplayString(_ctx.suggestion.facet.title), 1)
9388
9407
  ])) : vue.createCommentVNode("", true)
9389
9408
  ]);
9390
9409
  };
9391
9410
  }
9392
9411
  });
9393
- const _hoisted_1$1d = {
9412
+ const _hoisted_1$1f = {
9394
9413
  id: "lupa-search-box-suggestions",
9395
9414
  "data-cy": "lupa-search-box-suggestions"
9396
9415
  };
9397
- const _sfc_main$1p = /* @__PURE__ */ vue.defineComponent({
9416
+ const _sfc_main$1r = /* @__PURE__ */ vue.defineComponent({
9398
9417
  __name: "SearchBoxSuggestions",
9399
9418
  props: {
9400
9419
  items: {},
@@ -9454,9 +9473,9 @@ const _sfc_main$1p = /* @__PURE__ */ vue.defineComponent({
9454
9473
  });
9455
9474
  });
9456
9475
  return (_ctx, _cache) => {
9457
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1d, [
9476
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1f, [
9458
9477
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(items.value, (item, index) => {
9459
- return vue.openBlock(), vue.createBlock(_sfc_main$1q, {
9478
+ return vue.openBlock(), vue.createBlock(_sfc_main$1s, {
9460
9479
  key: getSuggestionKey(item),
9461
9480
  class: vue.normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
9462
9481
  suggestion: item,
@@ -9484,7 +9503,7 @@ const debounce$1 = (func, timeout) => {
9484
9503
  }, timeout);
9485
9504
  };
9486
9505
  };
9487
- const _sfc_main$1o = /* @__PURE__ */ vue.defineComponent({
9506
+ const _sfc_main$1q = /* @__PURE__ */ vue.defineComponent({
9488
9507
  __name: "SearchBoxSuggestionsWrapper",
9489
9508
  props: {
9490
9509
  panel: {},
@@ -9526,7 +9545,7 @@ const _sfc_main$1o = /* @__PURE__ */ vue.defineComponent({
9526
9545
  const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
9527
9546
  vue.watch(() => props.panel.limit, getSuggestionsDebounced);
9528
9547
  return (_ctx, _cache) => {
9529
- return vue.openBlock(), vue.createBlock(_sfc_main$1p, {
9548
+ return vue.openBlock(), vue.createBlock(_sfc_main$1r, {
9530
9549
  items: searchResult.value,
9531
9550
  highlight: _ctx.panel.highlight,
9532
9551
  queryKey: _ctx.panel.queryKey,
@@ -18630,9 +18649,9 @@ const replaceImageWithPlaceholder = (e2, placeholder) => {
18630
18649
  targetImage.src = placeholder;
18631
18650
  }
18632
18651
  };
18633
- const _hoisted_1$1c = ["src"];
18634
- const _hoisted_2$Q = ["src"];
18635
- const _sfc_main$1n = /* @__PURE__ */ vue.defineComponent({
18652
+ const _hoisted_1$1e = ["src"];
18653
+ const _hoisted_2$S = ["src"];
18654
+ const _sfc_main$1p = /* @__PURE__ */ vue.defineComponent({
18636
18655
  __name: "ProductImage",
18637
18656
  props: {
18638
18657
  item: {},
@@ -18774,7 +18793,7 @@ const _sfc_main$1n = /* @__PURE__ */ vue.defineComponent({
18774
18793
  }, { alt: imageAlt.value ? imageAlt.value : void 0 }, {
18775
18794
  onError: replaceWithPlaceholder,
18776
18795
  key: finalUrl.value
18777
- }), null, 16, _hoisted_1$1c))
18796
+ }), null, 16, _hoisted_1$1e))
18778
18797
  ]),
18779
18798
  _: 1
18780
18799
  })) : (vue.openBlock(), vue.createElementBlock("img", vue.mergeProps({
@@ -18782,12 +18801,12 @@ const _sfc_main$1n = /* @__PURE__ */ vue.defineComponent({
18782
18801
  class: ["lupa-images-main-image", { [_ctx.imageClass]: true }],
18783
18802
  style: styleOverride.value,
18784
18803
  src: finalMainImageUrl.value
18785
- }, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$Q))
18804
+ }, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$S))
18786
18805
  ], 38);
18787
18806
  };
18788
18807
  }
18789
18808
  });
18790
- const _sfc_main$1m = /* @__PURE__ */ vue.defineComponent({
18809
+ const _sfc_main$1o = /* @__PURE__ */ vue.defineComponent({
18791
18810
  __name: "SearchBoxProductImage",
18792
18811
  props: {
18793
18812
  item: {},
@@ -18795,7 +18814,7 @@ const _sfc_main$1m = /* @__PURE__ */ vue.defineComponent({
18795
18814
  },
18796
18815
  setup(__props) {
18797
18816
  return (_ctx, _cache) => {
18798
- return vue.openBlock(), vue.createBlock(_sfc_main$1n, {
18817
+ return vue.openBlock(), vue.createBlock(_sfc_main$1p, {
18799
18818
  item: _ctx.item,
18800
18819
  options: _ctx.options,
18801
18820
  "wrapper-class": "lupa-search-box-image-wrapper",
@@ -18804,12 +18823,12 @@ const _sfc_main$1m = /* @__PURE__ */ vue.defineComponent({
18804
18823
  };
18805
18824
  }
18806
18825
  });
18807
- const _hoisted_1$1b = ["innerHTML"];
18808
- const _hoisted_2$P = {
18826
+ const _hoisted_1$1d = ["innerHTML"];
18827
+ const _hoisted_2$R = {
18809
18828
  key: 1,
18810
18829
  class: "lupa-search-box-product-title"
18811
18830
  };
18812
- const _sfc_main$1l = /* @__PURE__ */ vue.defineComponent({
18831
+ const _sfc_main$1n = /* @__PURE__ */ vue.defineComponent({
18813
18832
  __name: "SearchBoxProductTitle",
18814
18833
  props: {
18815
18834
  item: {},
@@ -18832,18 +18851,18 @@ const _sfc_main$1l = /* @__PURE__ */ vue.defineComponent({
18832
18851
  key: 0,
18833
18852
  class: "lupa-search-box-product-title",
18834
18853
  innerHTML: sanitizedTitle.value
18835
- }, null, 8, _hoisted_1$1b)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$P, [
18854
+ }, null, 8, _hoisted_1$1d)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$R, [
18836
18855
  vue.createElementVNode("strong", null, vue.toDisplayString(title.value), 1)
18837
18856
  ]));
18838
18857
  };
18839
18858
  }
18840
18859
  });
18841
- const _hoisted_1$1a = ["innerHTML"];
18842
- const _hoisted_2$O = {
18860
+ const _hoisted_1$1c = ["innerHTML"];
18861
+ const _hoisted_2$Q = {
18843
18862
  key: 1,
18844
18863
  class: "lupa-search-box-product-description"
18845
18864
  };
18846
- const _sfc_main$1k = /* @__PURE__ */ vue.defineComponent({
18865
+ const _sfc_main$1m = /* @__PURE__ */ vue.defineComponent({
18847
18866
  __name: "SearchBoxProductDescription",
18848
18867
  props: {
18849
18868
  item: {},
@@ -18866,12 +18885,12 @@ const _sfc_main$1k = /* @__PURE__ */ vue.defineComponent({
18866
18885
  key: 0,
18867
18886
  class: "lupa-search-box-product-description",
18868
18887
  innerHTML: sanitizedDescription.value
18869
- }, null, 8, _hoisted_1$1a)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$O, vue.toDisplayString(description.value), 1));
18888
+ }, null, 8, _hoisted_1$1c)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$Q, vue.toDisplayString(description.value), 1));
18870
18889
  };
18871
18890
  }
18872
18891
  });
18873
- const _hoisted_1$19 = { class: "lupa-search-box-product-price" };
18874
- const _sfc_main$1j = /* @__PURE__ */ vue.defineComponent({
18892
+ const _hoisted_1$1b = { class: "lupa-search-box-product-price" };
18893
+ const _sfc_main$1l = /* @__PURE__ */ vue.defineComponent({
18875
18894
  __name: "SearchBoxProductPrice",
18876
18895
  props: {
18877
18896
  item: {},
@@ -18890,13 +18909,13 @@ const _sfc_main$1j = /* @__PURE__ */ vue.defineComponent({
18890
18909
  );
18891
18910
  });
18892
18911
  return (_ctx, _cache) => {
18893
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$19, [
18912
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1b, [
18894
18913
  vue.createElementVNode("strong", null, vue.toDisplayString(price.value), 1)
18895
18914
  ]);
18896
18915
  };
18897
18916
  }
18898
18917
  });
18899
- const _sfc_main$1i = /* @__PURE__ */ vue.defineComponent({
18918
+ const _sfc_main$1k = /* @__PURE__ */ vue.defineComponent({
18900
18919
  __name: "SearchBoxProductRegularPrice",
18901
18920
  props: {
18902
18921
  item: {},
@@ -18924,12 +18943,12 @@ const _sfc_main$1i = /* @__PURE__ */ vue.defineComponent({
18924
18943
  };
18925
18944
  }
18926
18945
  });
18927
- const _hoisted_1$18 = ["innerHTML"];
18928
- const _hoisted_2$N = { key: 0 };
18929
- const _hoisted_3$A = { key: 1 };
18930
- const _hoisted_4$s = { class: "lupa-search-box-custom-label" };
18931
- const _hoisted_5$i = { class: "lupa-search-box-custom-text" };
18932
- const _sfc_main$1h = /* @__PURE__ */ vue.defineComponent({
18946
+ const _hoisted_1$1a = ["innerHTML"];
18947
+ const _hoisted_2$P = { key: 0 };
18948
+ const _hoisted_3$C = { key: 1 };
18949
+ const _hoisted_4$t = { class: "lupa-search-box-custom-label" };
18950
+ const _hoisted_5$j = { class: "lupa-search-box-custom-text" };
18951
+ const _sfc_main$1j = /* @__PURE__ */ vue.defineComponent({
18933
18952
  __name: "SearchBoxProductCustom",
18934
18953
  props: {
18935
18954
  item: {},
@@ -18955,20 +18974,20 @@ const _sfc_main$1h = /* @__PURE__ */ vue.defineComponent({
18955
18974
  key: 0,
18956
18975
  class: [className.value, "lupa-search-box-product-custom"],
18957
18976
  innerHTML: text.value
18958
- }, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$18)) : (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
18977
+ }, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$1a)) : (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
18959
18978
  key: 1,
18960
18979
  class: [className.value, "lupa-search-box-product-custom"]
18961
18980
  }, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
18962
- !label.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$N, vue.toDisplayString(text.value), 1)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$A, [
18963
- vue.createElementVNode("div", _hoisted_4$s, vue.toDisplayString(label.value), 1),
18964
- vue.createElementVNode("div", _hoisted_5$i, vue.toDisplayString(text.value), 1)
18981
+ !label.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$P, vue.toDisplayString(text.value), 1)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$C, [
18982
+ vue.createElementVNode("div", _hoisted_4$t, vue.toDisplayString(label.value), 1),
18983
+ vue.createElementVNode("div", _hoisted_5$j, vue.toDisplayString(text.value), 1)
18965
18984
  ]))
18966
18985
  ], 16));
18967
18986
  };
18968
18987
  }
18969
18988
  });
18970
- const _hoisted_1$17 = ["innerHTML"];
18971
- const _sfc_main$1g = /* @__PURE__ */ vue.defineComponent({
18989
+ const _hoisted_1$19 = ["innerHTML"];
18990
+ const _sfc_main$1i = /* @__PURE__ */ vue.defineComponent({
18972
18991
  __name: "SearchBoxProductCustomHtml",
18973
18992
  props: {
18974
18993
  item: {},
@@ -18993,7 +19012,7 @@ const _sfc_main$1g = /* @__PURE__ */ vue.defineComponent({
18993
19012
  return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
18994
19013
  class: className.value,
18995
19014
  innerHTML: text.value
18996
- }, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$17);
19015
+ }, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$19);
18997
19016
  };
18998
19017
  }
18999
19018
  });
@@ -19050,10 +19069,13 @@ const useSearchResultStore = defineStore("searchResult", () => {
19050
19069
  const loading = vue.ref(false);
19051
19070
  const loadingFacets = vue.ref(false);
19052
19071
  const loadingRefiners = vue.ref(false);
19072
+ const loadingRelatedQueries = vue.ref(false);
19053
19073
  const isMobileSidebarVisible = vue.ref(false);
19054
19074
  const relatedCategoryChildren = vue.ref([]);
19055
19075
  const lastRequestId = vue.ref("");
19056
19076
  const searchRequestResults = vue.ref({});
19077
+ const relatedQueriesResult = vue.ref({});
19078
+ const relatedQueriesApiEnabled = vue.ref(null);
19057
19079
  const lastResultsSource = vue.ref(void 0);
19058
19080
  const optionsStore = useOptionsStore();
19059
19081
  const paramsStore = useParamsStore();
@@ -19207,6 +19229,9 @@ const useSearchResultStore = defineStore("searchResult", () => {
19207
19229
  const screenWidth = (_a = currentScreenWidth.value) != null ? _a : "xl";
19208
19230
  columnCount.value = grid.columns[screenWidth];
19209
19231
  };
19232
+ const setRelatedQueriesApiEnabled = (enabled) => {
19233
+ relatedQueriesApiEnabled.value = enabled;
19234
+ };
19210
19235
  const setAddToCartAmount = (newAddToCartAmount) => {
19211
19236
  if (!newAddToCartAmount) {
19212
19237
  return;
@@ -19237,6 +19262,27 @@ const useSearchResultStore = defineStore("searchResult", () => {
19237
19262
  const setRelatedCategoryChildren = (children) => {
19238
19263
  relatedCategoryChildren.value = [...children];
19239
19264
  };
19265
+ const queryRelatedQueries = (queryKey, publicQuery, result2, options) => __async(exports, null, function* () {
19266
+ var _a, _b;
19267
+ loadingRelatedQueries.value = true;
19268
+ const context = getLupaTrackingContext();
19269
+ const searchText = (_b = (_a = result2.suggestedSearchText) != null ? _a : result2.searchText) != null ? _b : "";
19270
+ const query = __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, publicQuery), {
19271
+ searchText
19272
+ }), context), {
19273
+ modifiers: { facets: false, refiners: true }
19274
+ });
19275
+ LupaSearchSdk.queryRelated(queryKey, query, options).then((res) => {
19276
+ if (!res.success) {
19277
+ return;
19278
+ }
19279
+ relatedQueriesResult.value = res;
19280
+ }).catch((err) => {
19281
+ console.error(err);
19282
+ }).finally(() => {
19283
+ loadingRelatedQueries.value = false;
19284
+ });
19285
+ });
19240
19286
  return {
19241
19287
  isMobileSidebarVisible,
19242
19288
  searchResult,
@@ -19261,6 +19307,8 @@ const useSearchResultStore = defineStore("searchResult", () => {
19261
19307
  hideFiltersOnExactMatchForKeys,
19262
19308
  relatedCategoryChildren,
19263
19309
  searchRequestResults,
19310
+ relatedQueriesResult,
19311
+ relatedQueriesApiEnabled,
19264
19312
  lastResultsSource,
19265
19313
  setSidebarState,
19266
19314
  queryFacet,
@@ -19273,15 +19321,17 @@ const useSearchResultStore = defineStore("searchResult", () => {
19273
19321
  setLoading,
19274
19322
  clearSearchResult,
19275
19323
  filterVisibleFilterValues,
19276
- setRelatedCategoryChildren
19324
+ setRelatedCategoryChildren,
19325
+ queryRelatedQueries,
19326
+ setRelatedQueriesApiEnabled
19277
19327
  };
19278
19328
  });
19279
- const _hoisted_1$16 = { class: "lupa-search-box-add-to-cart-wrapper" };
19280
- const _hoisted_2$M = { class: "lupa-search-box-product-addtocart" };
19281
- const _hoisted_3$z = ["disabled"];
19282
- const _hoisted_4$r = ["href"];
19283
- const _hoisted_5$h = ["onClick", "disabled"];
19284
- const _sfc_main$1f = /* @__PURE__ */ vue.defineComponent({
19329
+ const _hoisted_1$18 = { class: "lupa-search-box-add-to-cart-wrapper" };
19330
+ const _hoisted_2$O = { class: "lupa-search-box-product-addtocart" };
19331
+ const _hoisted_3$B = ["disabled"];
19332
+ const _hoisted_4$s = ["href"];
19333
+ const _hoisted_5$i = ["onClick", "disabled"];
19334
+ const _sfc_main$1h = /* @__PURE__ */ vue.defineComponent({
19285
19335
  __name: "SearchBoxProductAddToCart",
19286
19336
  props: {
19287
19337
  item: {},
@@ -19319,45 +19369,45 @@ const _sfc_main$1f = /* @__PURE__ */ vue.defineComponent({
19319
19369
  return Boolean(props.link && props.options.link);
19320
19370
  });
19321
19371
  return (_ctx, _cache) => {
19322
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$16, [
19323
- vue.createElementVNode("div", _hoisted_2$M, [
19372
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$18, [
19373
+ vue.createElementVNode("div", _hoisted_2$O, [
19324
19374
  hasLink.value ? (vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
19325
19375
  key: 0,
19326
19376
  class: loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart",
19327
19377
  "data-cy": "lupa-add-to-cart",
19328
19378
  disabled: !inStockValue.value || loading.value
19329
19379
  }, _ctx.dynamicAttributes, { onClick: handleClick }), [
19330
- vue.createElementVNode("a", { href: _ctx.link }, vue.toDisplayString(label.value), 9, _hoisted_4$r)
19331
- ], 16, _hoisted_3$z)) : (vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
19380
+ vue.createElementVNode("a", { href: _ctx.link }, vue.toDisplayString(label.value), 9, _hoisted_4$s)
19381
+ ], 16, _hoisted_3$B)) : (vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
19332
19382
  key: 1,
19333
19383
  onClick: vue.withModifiers(handleClick, ["stop", "prevent"]),
19334
19384
  class: loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart",
19335
19385
  "data-cy": "lupa-add-to-cart",
19336
19386
  type: "button",
19337
19387
  disabled: !inStockValue.value || loading.value
19338
- }, _ctx.dynamicAttributes), vue.toDisplayString(label.value), 17, _hoisted_5$h))
19388
+ }, _ctx.dynamicAttributes), vue.toDisplayString(label.value), 17, _hoisted_5$i))
19339
19389
  ])
19340
19390
  ]);
19341
19391
  };
19342
19392
  }
19343
19393
  });
19344
- const _hoisted_1$15 = {
19394
+ const _hoisted_1$17 = {
19345
19395
  key: 1,
19346
19396
  class: "lupa-search-box-element-badge-wrapper"
19347
19397
  };
19348
19398
  const __default__$4 = {
19349
19399
  components: {
19350
- SearchBoxProductImage: _sfc_main$1m,
19351
- SearchBoxProductTitle: _sfc_main$1l,
19352
- SearchBoxProductDescription: _sfc_main$1k,
19353
- SearchBoxProductPrice: _sfc_main$1j,
19354
- SearchBoxProductRegularPrice: _sfc_main$1i,
19355
- SearchBoxProductCustom: _sfc_main$1h,
19356
- SearchBoxProductCustomHtml: _sfc_main$1g,
19357
- SearchBoxProductAddToCart: _sfc_main$1f
19400
+ SearchBoxProductImage: _sfc_main$1o,
19401
+ SearchBoxProductTitle: _sfc_main$1n,
19402
+ SearchBoxProductDescription: _sfc_main$1m,
19403
+ SearchBoxProductPrice: _sfc_main$1l,
19404
+ SearchBoxProductRegularPrice: _sfc_main$1k,
19405
+ SearchBoxProductCustom: _sfc_main$1j,
19406
+ SearchBoxProductCustomHtml: _sfc_main$1i,
19407
+ SearchBoxProductAddToCart: _sfc_main$1h
19358
19408
  }
19359
19409
  };
19360
- const _sfc_main$1e = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, __default__$4), {
19410
+ const _sfc_main$1g = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, __default__$4), {
19361
19411
  __name: "SearchBoxProductElement",
19362
19412
  props: {
19363
19413
  item: {},
@@ -19429,7 +19479,7 @@ const _sfc_main$1e = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadV
19429
19479
  "dynamic-attributes": dynamicAttributes.value,
19430
19480
  link: _ctx.link
19431
19481
  }, renderDynamicAttributesOnParentElement.value && dynamicAttributes.value), null, 16, ["item", "options", "labels", "class", "inStock", "dynamic-attributes", "link"])) : vue.createCommentVNode("", true)
19432
- ], 64)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$15, [
19482
+ ], 64)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$17, [
19433
19483
  displayElement.value ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(elementComponent.value), {
19434
19484
  key: 0,
19435
19485
  item: enhancedItem.value,
@@ -19444,14 +19494,14 @@ const _sfc_main$1e = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadV
19444
19494
  };
19445
19495
  }
19446
19496
  }));
19447
- const _hoisted_1$14 = { class: "lupa-badge-title" };
19448
- const _hoisted_2$L = ["src"];
19449
- const _hoisted_3$y = { key: 1 };
19450
- const _hoisted_4$q = {
19497
+ const _hoisted_1$16 = { class: "lupa-badge-title" };
19498
+ const _hoisted_2$N = ["src"];
19499
+ const _hoisted_3$A = { key: 1 };
19500
+ const _hoisted_4$r = {
19451
19501
  key: 0,
19452
19502
  class: "lupa-badge-full-text"
19453
19503
  };
19454
- const _sfc_main$1d = /* @__PURE__ */ vue.defineComponent({
19504
+ const _sfc_main$1f = /* @__PURE__ */ vue.defineComponent({
19455
19505
  __name: "SearchResultGeneratedBadge",
19456
19506
  props: {
19457
19507
  options: {},
@@ -19484,20 +19534,20 @@ const _sfc_main$1d = /* @__PURE__ */ vue.defineComponent({
19484
19534
  class: vue.normalizeClass(["lupa-dynamic-badge", customClassName.value]),
19485
19535
  style: vue.normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
19486
19536
  }, [
19487
- vue.createElementVNode("span", _hoisted_1$14, [
19537
+ vue.createElementVNode("span", _hoisted_1$16, [
19488
19538
  image.value ? (vue.openBlock(), vue.createElementBlock("img", {
19489
19539
  key: 0,
19490
19540
  src: image.value
19491
- }, null, 8, _hoisted_2$L)) : vue.createCommentVNode("", true),
19492
- hasTitleText.value && showTitle.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$y, vue.toDisplayString(_ctx.badge.titleText), 1)) : vue.createCommentVNode("", true)
19541
+ }, null, 8, _hoisted_2$N)) : vue.createCommentVNode("", true),
19542
+ hasTitleText.value && showTitle.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$A, vue.toDisplayString(_ctx.badge.titleText), 1)) : vue.createCommentVNode("", true)
19493
19543
  ]),
19494
- hasAdditionalText.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$q, vue.toDisplayString(_ctx.badge.additionalText), 1)) : vue.createCommentVNode("", true)
19544
+ hasAdditionalText.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$r, vue.toDisplayString(_ctx.badge.additionalText), 1)) : vue.createCommentVNode("", true)
19495
19545
  ], 6);
19496
19546
  };
19497
19547
  }
19498
19548
  });
19499
- const _hoisted_1$13 = { class: "lupa-generated-badges" };
19500
- const _sfc_main$1c = /* @__PURE__ */ vue.defineComponent({
19549
+ const _hoisted_1$15 = { class: "lupa-generated-badges" };
19550
+ const _sfc_main$1e = /* @__PURE__ */ vue.defineComponent({
19501
19551
  __name: "SearchResultGeneratedBadges",
19502
19552
  props: {
19503
19553
  options: {}
@@ -19523,9 +19573,9 @@ const _sfc_main$1c = /* @__PURE__ */ vue.defineComponent({
19523
19573
  })).filter((b) => Boolean(b.id));
19524
19574
  });
19525
19575
  return (_ctx, _cache) => {
19526
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$13, [
19576
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$15, [
19527
19577
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(badges.value, (badge) => {
19528
- return vue.openBlock(), vue.createBlock(_sfc_main$1d, {
19578
+ return vue.openBlock(), vue.createBlock(_sfc_main$1f, {
19529
19579
  key: badge.id,
19530
19580
  badge,
19531
19581
  options: _ctx.options
@@ -19535,8 +19585,8 @@ const _sfc_main$1c = /* @__PURE__ */ vue.defineComponent({
19535
19585
  };
19536
19586
  }
19537
19587
  });
19538
- const _hoisted_1$12 = ["innerHTML"];
19539
- const _sfc_main$1b = /* @__PURE__ */ vue.defineComponent({
19588
+ const _hoisted_1$14 = ["innerHTML"];
19589
+ const _sfc_main$1d = /* @__PURE__ */ vue.defineComponent({
19540
19590
  __name: "CustomBadge",
19541
19591
  props: {
19542
19592
  badge: {}
@@ -19557,12 +19607,12 @@ const _sfc_main$1b = /* @__PURE__ */ vue.defineComponent({
19557
19607
  return vue.openBlock(), vue.createElementBlock("div", {
19558
19608
  class: vue.normalizeClass(className.value),
19559
19609
  innerHTML: text.value
19560
- }, null, 10, _hoisted_1$12);
19610
+ }, null, 10, _hoisted_1$14);
19561
19611
  };
19562
19612
  }
19563
19613
  });
19564
- const _hoisted_1$11 = { class: "lupa-text-badges" };
19565
- const _sfc_main$1a = /* @__PURE__ */ vue.defineComponent({
19614
+ const _hoisted_1$13 = { class: "lupa-text-badges" };
19615
+ const _sfc_main$1c = /* @__PURE__ */ vue.defineComponent({
19566
19616
  __name: "TextBadge",
19567
19617
  props: {
19568
19618
  badge: {}
@@ -19576,7 +19626,7 @@ const _sfc_main$1a = /* @__PURE__ */ vue.defineComponent({
19576
19626
  return badges.value.slice(0, props.badge.maxItems);
19577
19627
  });
19578
19628
  return (_ctx, _cache) => {
19579
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$11, [
19629
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$13, [
19580
19630
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(displayBadges.value, (item) => {
19581
19631
  return vue.openBlock(), vue.createElementBlock("div", {
19582
19632
  class: "lupa-badge lupa-text-badge",
@@ -19587,9 +19637,9 @@ const _sfc_main$1a = /* @__PURE__ */ vue.defineComponent({
19587
19637
  };
19588
19638
  }
19589
19639
  });
19590
- const _hoisted_1$10 = { class: "lupa-image-badges" };
19591
- const _hoisted_2$K = ["src"];
19592
- const _sfc_main$19 = /* @__PURE__ */ vue.defineComponent({
19640
+ const _hoisted_1$12 = { class: "lupa-image-badges" };
19641
+ const _hoisted_2$M = ["src"];
19642
+ const _sfc_main$1b = /* @__PURE__ */ vue.defineComponent({
19593
19643
  __name: "ImageBadge",
19594
19644
  props: {
19595
19645
  badge: {}
@@ -19609,7 +19659,7 @@ const _sfc_main$19 = /* @__PURE__ */ vue.defineComponent({
19609
19659
  return `${props.badge.rootImageUrl}${src}`;
19610
19660
  };
19611
19661
  return (_ctx, _cache) => {
19612
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$10, [
19662
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$12, [
19613
19663
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(displayBadges.value, (item) => {
19614
19664
  return vue.openBlock(), vue.createElementBlock("div", {
19615
19665
  class: "lupa-badge lupa-image-badge",
@@ -19617,14 +19667,14 @@ const _sfc_main$19 = /* @__PURE__ */ vue.defineComponent({
19617
19667
  }, [
19618
19668
  vue.createElementVNode("img", {
19619
19669
  src: getImageUrl(item)
19620
- }, null, 8, _hoisted_2$K)
19670
+ }, null, 8, _hoisted_2$M)
19621
19671
  ]);
19622
19672
  }), 128))
19623
19673
  ]);
19624
19674
  };
19625
19675
  }
19626
19676
  });
19627
- const _sfc_main$18 = /* @__PURE__ */ vue.defineComponent({
19677
+ const _sfc_main$1a = /* @__PURE__ */ vue.defineComponent({
19628
19678
  __name: "DiscountBadge",
19629
19679
  props: {
19630
19680
  badge: {}
@@ -19683,16 +19733,16 @@ const _sfc_main$18 = /* @__PURE__ */ vue.defineComponent({
19683
19733
  };
19684
19734
  }
19685
19735
  });
19686
- const _hoisted_1$$ = { id: "lupa-search-results-badges" };
19736
+ const _hoisted_1$11 = { id: "lupa-search-results-badges" };
19687
19737
  const __default__$3 = {
19688
19738
  components: {
19689
- CustomBadge: _sfc_main$1b,
19690
- TextBadge: _sfc_main$1a,
19691
- ImageBadge: _sfc_main$19,
19692
- DiscountBadge: _sfc_main$18
19739
+ CustomBadge: _sfc_main$1d,
19740
+ TextBadge: _sfc_main$1c,
19741
+ ImageBadge: _sfc_main$1b,
19742
+ DiscountBadge: _sfc_main$1a
19693
19743
  }
19694
19744
  };
19695
- const _sfc_main$17 = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, __default__$3), {
19745
+ const _sfc_main$19 = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, __default__$3), {
19696
19746
  __name: "SearchResultsBadgeWrapper",
19697
19747
  props: {
19698
19748
  position: {},
@@ -19755,7 +19805,7 @@ const _sfc_main$17 = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadV
19755
19805
  }
19756
19806
  };
19757
19807
  return (_ctx, _cache) => {
19758
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$$, [
19808
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$11, [
19759
19809
  vue.createElementVNode("div", {
19760
19810
  id: "lupa-badges",
19761
19811
  class: vue.normalizeClass(anchorPosition.value)
@@ -19766,7 +19816,7 @@ const _sfc_main$17 = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadV
19766
19816
  badge
19767
19817
  }, null, 8, ["badge"]);
19768
19818
  }), 128)),
19769
- positionValue.value === "card" ? (vue.openBlock(), vue.createBlock(_sfc_main$1c, {
19819
+ positionValue.value === "card" ? (vue.openBlock(), vue.createBlock(_sfc_main$1e, {
19770
19820
  key: 0,
19771
19821
  options: _ctx.options
19772
19822
  }, null, 8, ["options"])) : vue.createCommentVNode("", true)
@@ -19775,13 +19825,13 @@ const _sfc_main$17 = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadV
19775
19825
  };
19776
19826
  }
19777
19827
  }));
19778
- const _hoisted_1$_ = ["href"];
19779
- const _hoisted_2$J = { class: "lupa-search-box-product-details-section" };
19780
- const _hoisted_3$x = {
19828
+ const _hoisted_1$10 = ["href"];
19829
+ const _hoisted_2$L = { class: "lupa-search-box-product-details-section" };
19830
+ const _hoisted_3$z = {
19781
19831
  key: 0,
19782
19832
  class: "lupa-search-box-product-add-to-cart-section"
19783
19833
  };
19784
- const _sfc_main$16 = /* @__PURE__ */ vue.defineComponent({
19834
+ const _sfc_main$18 = /* @__PURE__ */ vue.defineComponent({
19785
19835
  __name: "SearchBoxProduct",
19786
19836
  props: {
19787
19837
  item: {},
@@ -19867,7 +19917,7 @@ const _sfc_main$16 = /* @__PURE__ */ vue.defineComponent({
19867
19917
  style: vue.normalizeStyle(imageStyleOverride.value)
19868
19918
  }, [
19869
19919
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(imageElements.value, (element) => {
19870
- return vue.openBlock(), vue.createBlock(_sfc_main$1e, {
19920
+ return vue.openBlock(), vue.createBlock(_sfc_main$1g, {
19871
19921
  class: "lupa-search-box-product-element",
19872
19922
  item: _ctx.item,
19873
19923
  element,
@@ -19877,10 +19927,10 @@ const _sfc_main$16 = /* @__PURE__ */ vue.defineComponent({
19877
19927
  }, null, 8, ["item", "element", "labels", "link"]);
19878
19928
  }), 128))
19879
19929
  ], 4),
19880
- vue.createElementVNode("div", _hoisted_2$J, [
19930
+ vue.createElementVNode("div", _hoisted_2$L, [
19881
19931
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(detailElements.value, (element) => {
19882
19932
  var _a;
19883
- return vue.openBlock(), vue.createBlock(_sfc_main$1e, {
19933
+ return vue.openBlock(), vue.createBlock(_sfc_main$1g, {
19884
19934
  key: element.key,
19885
19935
  class: "lupa-search-box-product-element",
19886
19936
  item: _ctx.item,
@@ -19891,7 +19941,7 @@ const _sfc_main$16 = /* @__PURE__ */ vue.defineComponent({
19891
19941
  badgeOptions.value && ((_a = badgeOptions.value) == null ? void 0 : _a.anchorElementKey) === element.key ? {
19892
19942
  name: "badges",
19893
19943
  fn: vue.withCtx(() => [
19894
- vue.createVNode(_sfc_main$17, {
19944
+ vue.createVNode(_sfc_main$19, {
19895
19945
  options: badgeOptions.value,
19896
19946
  position: "card"
19897
19947
  }, null, 8, ["options"])
@@ -19901,8 +19951,8 @@ const _sfc_main$16 = /* @__PURE__ */ vue.defineComponent({
19901
19951
  ]), 1032, ["item", "element", "labels", "link"]);
19902
19952
  }), 128))
19903
19953
  ]),
19904
- addToCartElement.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$x, [
19905
- vue.createVNode(_sfc_main$1e, {
19954
+ addToCartElement.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$z, [
19955
+ vue.createVNode(_sfc_main$1g, {
19906
19956
  class: "lupa-search-box-product-element",
19907
19957
  item: _ctx.item,
19908
19958
  element: addToCartElement.value,
@@ -19911,7 +19961,7 @@ const _sfc_main$16 = /* @__PURE__ */ vue.defineComponent({
19911
19961
  isInStock: isInStock.value
19912
19962
  }, null, 8, ["item", "element", "labels", "link", "isInStock"])
19913
19963
  ])) : vue.createCommentVNode("", true)
19914
- ], 16, _hoisted_1$_);
19964
+ ], 16, _hoisted_1$10);
19915
19965
  };
19916
19966
  }
19917
19967
  });
@@ -19983,8 +20033,8 @@ const useTrackingStore = defineStore("tracking", () => {
19983
20033
  };
19984
20034
  return { trackSearch, trackResults, trackEvent, trackDelayedEvent };
19985
20035
  });
19986
- const _hoisted_1$Z = { id: "lupa-search-box-products" };
19987
- const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
20036
+ const _hoisted_1$$ = { id: "lupa-search-box-products" };
20037
+ const _sfc_main$17 = /* @__PURE__ */ vue.defineComponent({
19988
20038
  __name: "SearchBoxProducts",
19989
20039
  props: {
19990
20040
  items: {},
@@ -20055,7 +20105,7 @@ const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
20055
20105
  }
20056
20106
  };
20057
20107
  return (_ctx, _cache) => {
20058
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$Z, [
20108
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$$, [
20059
20109
  _ctx.$slots.productCard ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 0 }, vue.renderList(_ctx.items, (item, index) => {
20060
20110
  return vue.renderSlot(_ctx.$slots, "productCard", {
20061
20111
  key: index,
@@ -20067,7 +20117,7 @@ const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
20067
20117
  itemClicked: handleProductClick
20068
20118
  });
20069
20119
  }), 128)) : (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 1 }, vue.renderList(_ctx.items, (item, index) => {
20070
- return vue.openBlock(), vue.createBlock(_sfc_main$16, {
20120
+ return vue.openBlock(), vue.createBlock(_sfc_main$18, {
20071
20121
  key: index,
20072
20122
  item,
20073
20123
  panelOptions: _ctx.panelOptions,
@@ -20082,9 +20132,9 @@ const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
20082
20132
  };
20083
20133
  }
20084
20134
  });
20085
- const _hoisted_1$Y = { class: "lupa-search-box-documents-go-to-results-wrapper" };
20086
- const _hoisted_2$I = { key: 0 };
20087
- const _sfc_main$14 = /* @__PURE__ */ vue.defineComponent({
20135
+ const _hoisted_1$_ = { class: "lupa-search-box-documents-go-to-results-wrapper" };
20136
+ const _hoisted_2$K = { key: 0 };
20137
+ const _sfc_main$16 = /* @__PURE__ */ vue.defineComponent({
20088
20138
  __name: "SearchBoxProductsGoToResultsButton",
20089
20139
  props: {
20090
20140
  options: {},
@@ -20114,13 +20164,13 @@ const _sfc_main$14 = /* @__PURE__ */ vue.defineComponent({
20114
20164
  emit("goToResults");
20115
20165
  };
20116
20166
  return (_ctx, _cache) => {
20117
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$Y, [
20167
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$_, [
20118
20168
  vue.createElementVNode("button", {
20119
20169
  class: "lupa-search-box-documents-go-to-results-button",
20120
20170
  onClick: goToResults
20121
20171
  }, [
20122
20172
  vue.createTextVNode(vue.toDisplayString(goToResultsLabel.value) + " ", 1),
20123
- totalCount.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$I, " " + vue.toDisplayString(totalCount.value), 1)) : vue.createCommentVNode("", true)
20173
+ totalCount.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$K, " " + vue.toDisplayString(totalCount.value), 1)) : vue.createCommentVNode("", true)
20124
20174
  ])
20125
20175
  ]);
20126
20176
  };
@@ -20207,7 +20257,7 @@ const processExtractionObject = (value = {}) => {
20207
20257
  }
20208
20258
  return parsedObject;
20209
20259
  };
20210
- const _sfc_main$13 = /* @__PURE__ */ vue.defineComponent({
20260
+ const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
20211
20261
  __name: "SearchBoxProductsWrapper",
20212
20262
  props: {
20213
20263
  panel: {},
@@ -20276,7 +20326,7 @@ const _sfc_main$13 = /* @__PURE__ */ vue.defineComponent({
20276
20326
  vue.watch(() => props.panel.limit, getItemsDebounced);
20277
20327
  return (_ctx, _cache) => {
20278
20328
  var _a, _b;
20279
- return vue.openBlock(), vue.createBlock(_sfc_main$15, {
20329
+ return vue.openBlock(), vue.createBlock(_sfc_main$17, {
20280
20330
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
20281
20331
  panelOptions: _ctx.panel,
20282
20332
  labels: _ctx.labels,
@@ -20286,7 +20336,7 @@ const _sfc_main$13 = /* @__PURE__ */ vue.defineComponent({
20286
20336
  default: vue.withCtx(() => {
20287
20337
  var _a2;
20288
20338
  return [
20289
- showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (vue.openBlock(), vue.createBlock(_sfc_main$14, {
20339
+ showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (vue.openBlock(), vue.createBlock(_sfc_main$16, {
20290
20340
  key: 0,
20291
20341
  options: _ctx.searchBoxOptions,
20292
20342
  panel: _ctx.panel,
@@ -20307,7 +20357,7 @@ const _sfc_main$13 = /* @__PURE__ */ vue.defineComponent({
20307
20357
  };
20308
20358
  }
20309
20359
  });
20310
- const _sfc_main$12 = /* @__PURE__ */ vue.defineComponent({
20360
+ const _sfc_main$14 = /* @__PURE__ */ vue.defineComponent({
20311
20361
  __name: "SearchBoxRelatedSourceWrapper",
20312
20362
  props: {
20313
20363
  panel: {},
@@ -20379,7 +20429,7 @@ const _sfc_main$12 = /* @__PURE__ */ vue.defineComponent({
20379
20429
  });
20380
20430
  return (_ctx, _cache) => {
20381
20431
  var _a, _b;
20382
- return vue.openBlock(), vue.createBlock(_sfc_main$15, {
20432
+ return vue.openBlock(), vue.createBlock(_sfc_main$17, {
20383
20433
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
20384
20434
  panelOptions: documentPanelOptions.value,
20385
20435
  labels: _ctx.labels,
@@ -20397,31 +20447,31 @@ const _sfc_main$12 = /* @__PURE__ */ vue.defineComponent({
20397
20447
  };
20398
20448
  }
20399
20449
  });
20400
- const _hoisted_1$X = {
20450
+ const _hoisted_1$Z = {
20401
20451
  key: 0,
20402
20452
  id: "lupa-search-box-panel"
20403
20453
  };
20404
- const _hoisted_2$H = ["data-cy"];
20405
- const _hoisted_3$w = {
20454
+ const _hoisted_2$J = ["data-cy"];
20455
+ const _hoisted_3$y = {
20406
20456
  key: 0,
20407
20457
  class: "lupa-panel-title lupa-panel-title-top-results"
20408
20458
  };
20409
- const _hoisted_4$p = {
20459
+ const _hoisted_4$q = {
20410
20460
  key: 1,
20411
20461
  class: "lupa-panel-title"
20412
20462
  };
20413
- const _hoisted_5$g = {
20463
+ const _hoisted_5$h = {
20414
20464
  key: 1,
20415
20465
  id: "lupa-search-box-panel"
20416
20466
  };
20417
20467
  const __default__$2 = {
20418
20468
  components: {
20419
- SearchBoxSuggestionsWrapper: _sfc_main$1o,
20420
- SearchBoxProductsWrapper: _sfc_main$13,
20421
- SearchBoxRelatedSourceWrapper: _sfc_main$12
20469
+ SearchBoxSuggestionsWrapper: _sfc_main$1q,
20470
+ SearchBoxProductsWrapper: _sfc_main$15,
20471
+ SearchBoxRelatedSourceWrapper: _sfc_main$14
20422
20472
  }
20423
20473
  };
20424
- const _sfc_main$11 = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, __default__$2), {
20474
+ const _sfc_main$13 = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, __default__$2), {
20425
20475
  __name: "SearchBoxMainPanel",
20426
20476
  props: {
20427
20477
  options: {},
@@ -20576,7 +20626,7 @@ const _sfc_main$11 = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadV
20576
20626
  ref_key: "panelContainer",
20577
20627
  ref: panelContainer
20578
20628
  }, [
20579
- displayResults.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$X, [
20629
+ displayResults.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$Z, [
20580
20630
  labels.value.closePanel ? (vue.openBlock(), vue.createElementBlock("a", {
20581
20631
  key: 0,
20582
20632
  class: "lupa-search-box-close-panel",
@@ -20598,8 +20648,8 @@ const _sfc_main$11 = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadV
20598
20648
  style: vue.normalizeStyle(panel.gridArea ? { gridArea: `${panel.gridArea}${index}` } : {}),
20599
20649
  "data-cy": "lupa-panel-" + panel.type + "-index"
20600
20650
  }, [
20601
- ((_a = panel.labels) == null ? void 0 : _a.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$w, vue.toDisplayString((_b = panel.labels) == null ? void 0 : _b.topResultsTitle), 1)) : vue.createCommentVNode("", true),
20602
- ((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$p, vue.toDisplayString((_d = panel.labels) == null ? void 0 : _d.title), 1)) : vue.createCommentVNode("", true),
20651
+ ((_a = panel.labels) == null ? void 0 : _a.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$y, vue.toDisplayString((_b = panel.labels) == null ? void 0 : _b.topResultsTitle), 1)) : vue.createCommentVNode("", true),
20652
+ ((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$q, vue.toDisplayString((_d = panel.labels) == null ? void 0 : _d.title), 1)) : vue.createCommentVNode("", true),
20603
20653
  panel.queryKey && canShowPanel(panel) ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(getComponent(panel.type)), {
20604
20654
  key: 2,
20605
20655
  panel,
@@ -20621,21 +20671,21 @@ const _sfc_main$11 = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadV
20621
20671
  key: "0"
20622
20672
  } : void 0
20623
20673
  ]), 1064, ["panel", "search-box-options", "options", "debounce", "inputValue", "labels"])) : vue.createCommentVNode("", true)
20624
- ], 14, _hoisted_2$H);
20674
+ ], 14, _hoisted_2$J);
20625
20675
  }), 128))
20626
20676
  ], 4),
20627
- !vue.unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (vue.openBlock(), vue.createBlock(_sfc_main$1r, {
20677
+ !vue.unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (vue.openBlock(), vue.createBlock(_sfc_main$1t, {
20628
20678
  key: 1,
20629
20679
  labels: labels.value
20630
20680
  }, null, 8, ["labels"])) : vue.createCommentVNode("", true),
20631
- vue.unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (vue.openBlock(), vue.createBlock(_sfc_main$1u, {
20681
+ vue.unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (vue.openBlock(), vue.createBlock(_sfc_main$1w, {
20632
20682
  key: 2,
20633
20683
  labels: labels.value,
20634
20684
  options: _ctx.options,
20635
20685
  onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
20636
20686
  }, null, 8, ["labels", "options"])) : vue.createCommentVNode("", true)
20637
- ])) : displayHistory.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$g, [
20638
- vue.createVNode(_sfc_main$1s, {
20687
+ ])) : displayHistory.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$h, [
20688
+ vue.createVNode(_sfc_main$1u, {
20639
20689
  options: _ctx.options.history,
20640
20690
  history: history.value,
20641
20691
  onGoToResults: handleGoToResults,
@@ -20660,8 +20710,8 @@ const unbindSearchTriggers = (triggers = [], event) => {
20660
20710
  const elements = getElements(triggers);
20661
20711
  elements.forEach((e2) => e2 == null ? void 0 : e2.removeEventListener(BIND_EVENT, event));
20662
20712
  };
20663
- const _hoisted_1$W = { class: "lupa-search-box-wrapper" };
20664
- const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent({
20713
+ const _hoisted_1$Y = { class: "lupa-search-box-wrapper" };
20714
+ const _sfc_main$12 = /* @__PURE__ */ vue.defineComponent({
20665
20715
  __name: "SearchBox",
20666
20716
  props: {
20667
20717
  options: {},
@@ -20982,8 +21032,8 @@ const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent({
20982
21032
  id: "lupa-search-box",
20983
21033
  class: vue.normalizeClass({ "lupa-search-box-opened": opened.value })
20984
21034
  }, [
20985
- vue.createElementVNode("div", _hoisted_1$W, [
20986
- vue.createVNode(_sfc_main$1v, {
21035
+ vue.createElementVNode("div", _hoisted_1$Y, [
21036
+ vue.createVNode(_sfc_main$1x, {
20987
21037
  options: inputOptions.value,
20988
21038
  suggestedValue: suggestedValue.value,
20989
21039
  "can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
@@ -20996,7 +21046,7 @@ const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent({
20996
21046
  onSearch: handleSearch,
20997
21047
  onClose: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
20998
21048
  }, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
20999
- opened.value || _ctx.isSearchContainer ? (vue.openBlock(), vue.createBlock(_sfc_main$11, {
21049
+ opened.value || _ctx.isSearchContainer ? (vue.openBlock(), vue.createBlock(_sfc_main$13, {
21000
21050
  key: 0,
21001
21051
  options: panelOptions.value,
21002
21052
  inputValue: inputValue.value,
@@ -21101,20 +21151,20 @@ const getInitialSearchResults = (options, getQueryParamName, defaultData) => __a
21101
21151
  options.options.onError(e2);
21102
21152
  }
21103
21153
  });
21104
- const _hoisted_1$V = {
21154
+ const _hoisted_1$X = {
21105
21155
  key: 0,
21106
21156
  id: "lupa-search-results-did-you-mean"
21107
21157
  };
21108
- const _hoisted_2$G = {
21158
+ const _hoisted_2$I = {
21109
21159
  key: 0,
21110
21160
  "data-cy": "suggested-search-text-label"
21111
21161
  };
21112
- const _hoisted_3$v = {
21162
+ const _hoisted_3$x = {
21113
21163
  key: 1,
21114
21164
  "data-cy": "did-you-mean-label"
21115
21165
  };
21116
- const _hoisted_4$o = { key: 1 };
21117
- const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
21166
+ const _hoisted_4$p = { key: 1 };
21167
+ const _sfc_main$11 = /* @__PURE__ */ vue.defineComponent({
21118
21168
  __name: "SearchResultsDidYouMean",
21119
21169
  props: {
21120
21170
  labels: {}
@@ -21146,8 +21196,8 @@ const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
21146
21196
  paramStore.goToResults({ searchText, facet });
21147
21197
  };
21148
21198
  return (_ctx, _cache) => {
21149
- return vue.unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$V, [
21150
- vue.unref(searchResult).suggestedSearchText ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$G, [
21199
+ return vue.unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$X, [
21200
+ vue.unref(searchResult).suggestedSearchText ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$I, [
21151
21201
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
21152
21202
  return vue.openBlock(), vue.createElementBlock("span", { key: index }, [
21153
21203
  vue.createElementVNode("span", {
@@ -21156,7 +21206,7 @@ const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
21156
21206
  ]);
21157
21207
  }), 128))
21158
21208
  ])) : vue.createCommentVNode("", true),
21159
- didYouMeanValue.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$v, [
21209
+ didYouMeanValue.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$x, [
21160
21210
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.labels.didYouMean.split(" "), (label, index) => {
21161
21211
  return vue.openBlock(), vue.createElementBlock("span", { key: index }, [
21162
21212
  label.includes("{1}") ? (vue.openBlock(), vue.createElementBlock("span", {
@@ -21164,7 +21214,7 @@ const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
21164
21214
  class: "lupa-did-you-mean lupa-highlighted-search-text",
21165
21215
  "data-cy": "did-you-mean-value",
21166
21216
  onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
21167
- }, vue.toDisplayString(didYouMeanValue.value) + " ", 1)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$o, vue.toDisplayString(label) + " ", 1))
21217
+ }, vue.toDisplayString(didYouMeanValue.value) + " ", 1)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$p, vue.toDisplayString(label) + " ", 1))
21168
21218
  ]);
21169
21219
  }), 128))
21170
21220
  ])) : vue.createCommentVNode("", true)
@@ -21172,12 +21222,12 @@ const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
21172
21222
  };
21173
21223
  }
21174
21224
  });
21175
- const _hoisted_1$U = {
21225
+ const _hoisted_1$W = {
21176
21226
  key: 0,
21177
21227
  class: "lupa-search-results-summary"
21178
21228
  };
21179
- const _hoisted_2$F = ["innerHTML"];
21180
- const _sfc_main$_ = /* @__PURE__ */ vue.defineComponent({
21229
+ const _hoisted_2$H = ["innerHTML"];
21230
+ const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent({
21181
21231
  __name: "SearchResultsSummary",
21182
21232
  props: {
21183
21233
  label: {},
@@ -21192,8 +21242,8 @@ const _sfc_main$_ = /* @__PURE__ */ vue.defineComponent({
21192
21242
  return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
21193
21243
  });
21194
21244
  return (_ctx, _cache) => {
21195
- return vue.unref(totalItems) > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$U, [
21196
- vue.createElementVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$F),
21245
+ return vue.unref(totalItems) > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$W, [
21246
+ vue.createElementVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$H),
21197
21247
  _ctx.clearable ? (vue.openBlock(), vue.createElementBlock("span", {
21198
21248
  key: 0,
21199
21249
  class: "lupa-filter-clear",
@@ -21204,19 +21254,19 @@ const _sfc_main$_ = /* @__PURE__ */ vue.defineComponent({
21204
21254
  };
21205
21255
  }
21206
21256
  });
21207
- const _hoisted_1$T = {
21257
+ const _hoisted_1$V = {
21208
21258
  key: 0,
21209
21259
  class: "lupa-result-page-title",
21210
21260
  "data-cy": "lupa-result-page-title"
21211
21261
  };
21212
- const _hoisted_2$E = { key: 0 };
21213
- const _hoisted_3$u = {
21262
+ const _hoisted_2$G = { key: 0 };
21263
+ const _hoisted_3$w = {
21214
21264
  key: 1,
21215
21265
  class: "lupa-results-total-count"
21216
21266
  };
21217
- const _hoisted_4$n = { class: "lupa-results-total-count-number" };
21218
- const _hoisted_5$f = ["innerHTML"];
21219
- const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
21267
+ const _hoisted_4$o = { class: "lupa-results-total-count-number" };
21268
+ const _hoisted_5$g = ["innerHTML"];
21269
+ const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
21220
21270
  __name: "SearchResultsTitle",
21221
21271
  props: {
21222
21272
  options: {},
@@ -21259,16 +21309,16 @@ const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
21259
21309
  });
21260
21310
  return (_ctx, _cache) => {
21261
21311
  return vue.openBlock(), vue.createElementBlock("div", null, [
21262
- showSearchTitle.value ? (vue.openBlock(), vue.createElementBlock("h1", _hoisted_1$T, [
21312
+ showSearchTitle.value ? (vue.openBlock(), vue.createElementBlock("h1", _hoisted_1$V, [
21263
21313
  vue.createTextVNode(vue.toDisplayString(searchResultsTitleTemplate.value || _ctx.options.labels.searchResults), 1),
21264
- queryText.value && !searchResultsTitleTemplate.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$E, "'" + vue.toDisplayString(queryText.value) + "'", 1)) : vue.createCommentVNode("", true),
21265
- showProductCount.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$u, [
21314
+ queryText.value && !searchResultsTitleTemplate.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$G, "'" + vue.toDisplayString(queryText.value) + "'", 1)) : vue.createCommentVNode("", true),
21315
+ showProductCount.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$w, [
21266
21316
  vue.createTextVNode("(" + vue.toDisplayString(searchResultsCountLabel.value), 1),
21267
- vue.createElementVNode("span", _hoisted_4$n, vue.toDisplayString(vue.unref(totalItems)), 1),
21317
+ vue.createElementVNode("span", _hoisted_4$o, vue.toDisplayString(vue.unref(totalItems)), 1),
21268
21318
  vue.createTextVNode(")")
21269
21319
  ])) : vue.createCommentVNode("", true)
21270
21320
  ])) : vue.createCommentVNode("", true),
21271
- _ctx.showSummary ? (vue.openBlock(), vue.createBlock(_sfc_main$_, {
21321
+ _ctx.showSummary ? (vue.openBlock(), vue.createBlock(_sfc_main$10, {
21272
21322
  key: 1,
21273
21323
  label: summaryLabel.value
21274
21324
  }, null, 8, ["label"])) : vue.createCommentVNode("", true),
@@ -21276,20 +21326,20 @@ const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
21276
21326
  key: 2,
21277
21327
  class: "lupa-result-page-description-top",
21278
21328
  innerHTML: descriptionTop.value
21279
- }, null, 8, _hoisted_5$f)) : vue.createCommentVNode("", true)
21329
+ }, null, 8, _hoisted_5$g)) : vue.createCommentVNode("", true)
21280
21330
  ]);
21281
21331
  };
21282
21332
  }
21283
21333
  });
21284
- const _hoisted_1$S = {
21334
+ const _hoisted_1$U = {
21285
21335
  class: "lupa-current-filter-label",
21286
21336
  "data-cy": "lupa-current-filter-label"
21287
21337
  };
21288
- const _hoisted_2$D = {
21338
+ const _hoisted_2$F = {
21289
21339
  class: "lupa-current-filter-value",
21290
21340
  "data-cy": "lupa-current-filter-value"
21291
21341
  };
21292
- const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
21342
+ const _sfc_main$_ = /* @__PURE__ */ vue.defineComponent({
21293
21343
  __name: "CurrentFilterDisplay",
21294
21344
  props: {
21295
21345
  filter: {}
@@ -21311,23 +21361,23 @@ const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
21311
21361
  class: "lupa-current-filter-action",
21312
21362
  onClick: handleClick
21313
21363
  }, "⨉"),
21314
- vue.createElementVNode("div", _hoisted_1$S, vue.toDisplayString(_ctx.filter.label) + ": ", 1),
21315
- vue.createElementVNode("div", _hoisted_2$D, vue.toDisplayString(_ctx.filter.value), 1)
21364
+ vue.createElementVNode("div", _hoisted_1$U, vue.toDisplayString(_ctx.filter.label) + ": ", 1),
21365
+ vue.createElementVNode("div", _hoisted_2$F, vue.toDisplayString(_ctx.filter.value), 1)
21316
21366
  ], 2);
21317
21367
  };
21318
21368
  }
21319
21369
  });
21320
- const _hoisted_1$R = { class: "lupa-filter-title-text" };
21321
- const _hoisted_2$C = {
21370
+ const _hoisted_1$T = { class: "lupa-filter-title-text" };
21371
+ const _hoisted_2$E = {
21322
21372
  key: 0,
21323
21373
  class: "lupa-filter-count"
21324
21374
  };
21325
- const _hoisted_3$t = {
21375
+ const _hoisted_3$v = {
21326
21376
  key: 0,
21327
21377
  class: "filter-values"
21328
21378
  };
21329
- const _hoisted_4$m = { class: "lupa-current-filter-list" };
21330
- const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
21379
+ const _hoisted_4$n = { class: "lupa-current-filter-list" };
21380
+ const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
21331
21381
  __name: "CurrentFilters",
21332
21382
  props: {
21333
21383
  options: {},
@@ -21400,19 +21450,19 @@ const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
21400
21450
  class: "lupa-current-filter-title",
21401
21451
  onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
21402
21452
  }, [
21403
- vue.createElementVNode("div", _hoisted_1$R, [
21453
+ vue.createElementVNode("div", _hoisted_1$T, [
21404
21454
  vue.createTextVNode(vue.toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
21405
- _ctx.expandable ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$C, " (" + vue.toDisplayString(vue.unref(currentFilterCount)) + ") ", 1)) : vue.createCommentVNode("", true)
21455
+ _ctx.expandable ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$E, " (" + vue.toDisplayString(vue.unref(currentFilterCount)) + ") ", 1)) : vue.createCommentVNode("", true)
21406
21456
  ]),
21407
21457
  _ctx.expandable ? (vue.openBlock(), vue.createElementBlock("div", {
21408
21458
  key: 0,
21409
21459
  class: vue.normalizeClass(["lupa-filter-title-caret", isOpen.value && "open"])
21410
21460
  }, null, 2)) : vue.createCommentVNode("", true)
21411
21461
  ]),
21412
- !_ctx.expandable || isOpen.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$t, [
21413
- vue.createElementVNode("div", _hoisted_4$m, [
21462
+ !_ctx.expandable || isOpen.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$v, [
21463
+ vue.createElementVNode("div", _hoisted_4$n, [
21414
21464
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(currentDisplayFilters.value, (filter2) => {
21415
- return vue.openBlock(), vue.createBlock(_sfc_main$Y, {
21465
+ return vue.openBlock(), vue.createBlock(_sfc_main$_, {
21416
21466
  key: filter2.key + "_" + filter2.value,
21417
21467
  filter: filter2,
21418
21468
  onRemove: handleRemove
@@ -21429,8 +21479,8 @@ const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
21429
21479
  };
21430
21480
  }
21431
21481
  });
21432
- const _hoisted_1$Q = ["href"];
21433
- const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
21482
+ const _hoisted_1$S = ["href"];
21483
+ const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
21434
21484
  __name: "CategoryFilterItem",
21435
21485
  props: {
21436
21486
  options: {},
@@ -21467,20 +21517,20 @@ const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
21467
21517
  "data-cy": "lupa-child-category-item",
21468
21518
  href: urlLink.value,
21469
21519
  onClick: handleNavigation
21470
- }, vue.toDisplayString(title.value), 9, _hoisted_1$Q)
21520
+ }, vue.toDisplayString(title.value), 9, _hoisted_1$S)
21471
21521
  ], 2);
21472
21522
  };
21473
21523
  }
21474
21524
  });
21475
- const _hoisted_1$P = {
21525
+ const _hoisted_1$R = {
21476
21526
  class: "lupa-category-filter",
21477
21527
  "data-cy": "lupa-category-filter"
21478
21528
  };
21479
- const _hoisted_2$B = { class: "lupa-category-back" };
21480
- const _hoisted_3$s = ["href"];
21481
- const _hoisted_4$l = ["href"];
21482
- const _hoisted_5$e = { class: "lupa-child-category-list" };
21483
- const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
21529
+ const _hoisted_2$D = { class: "lupa-category-back" };
21530
+ const _hoisted_3$u = ["href"];
21531
+ const _hoisted_4$m = ["href"];
21532
+ const _hoisted_5$f = { class: "lupa-child-category-list" };
21533
+ const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
21484
21534
  __name: "CategoryFilter",
21485
21535
  props: {
21486
21536
  options: {}
@@ -21568,14 +21618,14 @@ const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
21568
21618
  };
21569
21619
  __expose({ fetch: fetch2 });
21570
21620
  return (_ctx, _cache) => {
21571
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$P, [
21572
- vue.createElementVNode("div", _hoisted_2$B, [
21621
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$R, [
21622
+ vue.createElementVNode("div", _hoisted_2$D, [
21573
21623
  hasBackButton.value ? (vue.openBlock(), vue.createElementBlock("a", {
21574
21624
  key: 0,
21575
21625
  "data-cy": "lupa-category-back",
21576
21626
  href: backUrlLink.value,
21577
21627
  onClick: handleNavigationBack
21578
- }, vue.toDisplayString(backTitle.value), 9, _hoisted_3$s)) : vue.createCommentVNode("", true)
21628
+ }, vue.toDisplayString(backTitle.value), 9, _hoisted_3$u)) : vue.createCommentVNode("", true)
21579
21629
  ]),
21580
21630
  vue.createElementVNode("div", {
21581
21631
  class: vue.normalizeClass(["lupa-current-category", { "lupa-current-category-active": isActive }])
@@ -21585,11 +21635,11 @@ const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
21585
21635
  href: parentUrlLink.value,
21586
21636
  class: vue.normalizeClass({ "lupa-title-category": !hasBackButton.value }),
21587
21637
  onClick: handleNavigationParent
21588
- }, vue.toDisplayString(parentTitle.value), 11, _hoisted_4$l)
21638
+ }, vue.toDisplayString(parentTitle.value), 11, _hoisted_4$m)
21589
21639
  ], 2),
21590
- vue.createElementVNode("div", _hoisted_5$e, [
21640
+ vue.createElementVNode("div", _hoisted_5$f, [
21591
21641
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(categoryChildren.value, (child) => {
21592
- return vue.openBlock(), vue.createBlock(_sfc_main$W, {
21642
+ return vue.openBlock(), vue.createBlock(_sfc_main$Y, {
21593
21643
  key: getCategoryKey(child),
21594
21644
  item: child,
21595
21645
  options: _ctx.options
@@ -21600,14 +21650,14 @@ const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
21600
21650
  };
21601
21651
  }
21602
21652
  });
21603
- const _hoisted_1$O = {
21653
+ const _hoisted_1$Q = {
21604
21654
  class: "lupa-search-result-facet-term-values",
21605
21655
  "data-cy": "lupa-search-result-facet-term-values"
21606
21656
  };
21607
- const _hoisted_2$A = ["placeholder"];
21608
- const _hoisted_3$r = { class: "lupa-terms-list" };
21609
- const _hoisted_4$k = ["onClick"];
21610
- const _hoisted_5$d = { class: "lupa-term-checkbox-wrapper" };
21657
+ const _hoisted_2$C = ["placeholder"];
21658
+ const _hoisted_3$t = { class: "lupa-terms-list" };
21659
+ const _hoisted_4$l = ["onClick"];
21660
+ const _hoisted_5$e = { class: "lupa-term-checkbox-wrapper" };
21611
21661
  const _hoisted_6$8 = { class: "lupa-term-label" };
21612
21662
  const _hoisted_7$6 = {
21613
21663
  key: 0,
@@ -21615,7 +21665,7 @@ const _hoisted_7$6 = {
21615
21665
  };
21616
21666
  const _hoisted_8$2 = { key: 0 };
21617
21667
  const _hoisted_9$2 = { key: 1 };
21618
- const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
21668
+ const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
21619
21669
  __name: "TermFacet",
21620
21670
  props: {
21621
21671
  options: {},
@@ -21704,17 +21754,17 @@ const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
21704
21754
  }
21705
21755
  };
21706
21756
  return (_ctx, _cache) => {
21707
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$O, [
21757
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$Q, [
21708
21758
  isFilterable.value ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
21709
21759
  key: 0,
21710
21760
  class: "lupa-term-filter",
21711
21761
  "data-cy": "lupa-term-filter",
21712
21762
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
21713
21763
  placeholder: _ctx.options.labels.facetFilter
21714
- }, null, 8, _hoisted_2$A)), [
21764
+ }, null, 8, _hoisted_2$C)), [
21715
21765
  [vue.vModelText, termFilter.value]
21716
21766
  ]) : vue.createCommentVNode("", true),
21717
- vue.createElementVNode("div", _hoisted_3$r, [
21767
+ vue.createElementVNode("div", _hoisted_3$t, [
21718
21768
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(displayValues.value, (item) => {
21719
21769
  return vue.openBlock(), vue.createElementBlock("div", {
21720
21770
  class: vue.normalizeClass(["lupa-facet-term", { checked: isChecked(item) }]),
@@ -21722,7 +21772,7 @@ const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
21722
21772
  key: item.title,
21723
21773
  onClick: ($event) => handleFacetClick(item)
21724
21774
  }, [
21725
- vue.createElementVNode("div", _hoisted_5$d, [
21775
+ vue.createElementVNode("div", _hoisted_5$e, [
21726
21776
  vue.createElementVNode("span", {
21727
21777
  class: vue.normalizeClass(["lupa-term-checkbox", { checked: isChecked(item) }])
21728
21778
  }, null, 2)
@@ -21733,7 +21783,7 @@ const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
21733
21783
  vue.createElementVNode("span", _hoisted_6$8, vue.toDisplayString(getItemLabel(item)), 1),
21734
21784
  _ctx.options.showDocumentCount ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_7$6, "(" + vue.toDisplayString(item.count) + ")", 1)) : vue.createCommentVNode("", true)
21735
21785
  ], 2)
21736
- ], 10, _hoisted_4$k);
21786
+ ], 10, _hoisted_4$l);
21737
21787
  }), 128))
21738
21788
  ]),
21739
21789
  displayShowMore.value ? (vue.openBlock(), vue.createElementBlock("div", {
@@ -22724,20 +22774,20 @@ var m = { name: "Slider", emits: ["input", "update:modelValue", "start", "slide"
22724
22774
  m.render = function(e2, t, r, i, n, o) {
22725
22775
  return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps(e2.sliderProps, { ref: "slider" }), null, 16);
22726
22776
  }, m.__file = "src/Slider.vue";
22727
- const _hoisted_1$N = { class: "lupa-search-result-facet-stats-values" };
22728
- const _hoisted_2$z = {
22777
+ const _hoisted_1$P = { class: "lupa-search-result-facet-stats-values" };
22778
+ const _hoisted_2$B = {
22729
22779
  key: 0,
22730
22780
  class: "lupa-stats-facet-summary"
22731
22781
  };
22732
- const _hoisted_3$q = {
22782
+ const _hoisted_3$s = {
22733
22783
  key: 1,
22734
22784
  class: "lupa-stats-facet-summary-input"
22735
22785
  };
22736
- const _hoisted_4$j = {
22786
+ const _hoisted_4$k = {
22737
22787
  key: 0,
22738
22788
  class: "lupa-stats-range-label"
22739
22789
  };
22740
- const _hoisted_5$c = { class: "lupa-stats-from" };
22790
+ const _hoisted_5$d = { class: "lupa-stats-from" };
22741
22791
  const _hoisted_6$7 = ["max", "min", "pattern", "aria-label"];
22742
22792
  const _hoisted_7$5 = { key: 0 };
22743
22793
  const _hoisted_8$1 = /* @__PURE__ */ vue.createElementVNode("div", { class: "lupa-stats-separator" }, null, -1);
@@ -22752,7 +22802,7 @@ const _hoisted_13 = {
22752
22802
  key: 2,
22753
22803
  class: "lupa-stats-slider-wrapper"
22754
22804
  };
22755
- const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
22805
+ const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
22756
22806
  __name: "StatsFacet",
22757
22807
  props: {
22758
22808
  options: {},
@@ -22933,11 +22983,11 @@ const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
22933
22983
  innerSliderRange.value = value;
22934
22984
  };
22935
22985
  return (_ctx, _cache) => {
22936
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$N, [
22937
- !isInputVisible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$z, vue.toDisplayString(statsSummary.value), 1)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$q, [
22986
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$P, [
22987
+ !isInputVisible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$B, vue.toDisplayString(statsSummary.value), 1)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$s, [
22938
22988
  vue.createElementVNode("div", null, [
22939
- rangeLabelFrom.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$j, vue.toDisplayString(rangeLabelFrom.value), 1)) : vue.createCommentVNode("", true),
22940
- vue.createElementVNode("div", _hoisted_5$c, [
22989
+ rangeLabelFrom.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$k, vue.toDisplayString(rangeLabelFrom.value), 1)) : vue.createCommentVNode("", true),
22990
+ vue.createElementVNode("div", _hoisted_5$d, [
22941
22991
  vue.withDirectives(vue.createElementVNode("input", {
22942
22992
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
22943
22993
  type: "text",
@@ -23000,17 +23050,17 @@ const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
23000
23050
  };
23001
23051
  }
23002
23052
  });
23003
- const _hoisted_1$M = { class: "lupa-term-checkbox-wrapper" };
23004
- const _hoisted_2$y = { class: "lupa-term-label" };
23005
- const _hoisted_3$p = {
23053
+ const _hoisted_1$O = { class: "lupa-term-checkbox-wrapper" };
23054
+ const _hoisted_2$A = { class: "lupa-term-label" };
23055
+ const _hoisted_3$r = {
23006
23056
  key: 0,
23007
23057
  class: "lupa-term-count"
23008
23058
  };
23009
- const _hoisted_4$i = {
23059
+ const _hoisted_4$j = {
23010
23060
  key: 0,
23011
23061
  class: "lupa-facet-level"
23012
23062
  };
23013
- const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
23063
+ const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
23014
23064
  __name: "HierarchyFacetLevel",
23015
23065
  props: {
23016
23066
  options: {},
@@ -23063,7 +23113,7 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
23063
23113
  "data-cy": "lupa-facet-term",
23064
23114
  onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
23065
23115
  }, [
23066
- vue.createElementVNode("div", _hoisted_1$M, [
23116
+ vue.createElementVNode("div", _hoisted_1$O, [
23067
23117
  vue.createElementVNode("span", {
23068
23118
  class: vue.normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
23069
23119
  }, null, 2)
@@ -23071,11 +23121,11 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
23071
23121
  vue.createElementVNode("div", {
23072
23122
  class: vue.normalizeClass(["lupa-term-checkbox-label", { [getFacetValueClass(_ctx.item)]: true }])
23073
23123
  }, [
23074
- vue.createElementVNode("span", _hoisted_2$y, vue.toDisplayString(_ctx.item.title) + vue.toDisplayString(" "), 1),
23075
- _ctx.options.showDocumentCount ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$p, "(" + vue.toDisplayString(_ctx.item.count) + ")", 1)) : vue.createCommentVNode("", true)
23124
+ vue.createElementVNode("span", _hoisted_2$A, vue.toDisplayString(_ctx.item.title) + vue.toDisplayString(" "), 1),
23125
+ _ctx.options.showDocumentCount ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$r, "(" + vue.toDisplayString(_ctx.item.count) + ")", 1)) : vue.createCommentVNode("", true)
23076
23126
  ], 2)
23077
23127
  ]),
23078
- showChildren.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$i, [
23128
+ showChildren.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$j, [
23079
23129
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(treeItem.value.children, (itemChild) => {
23080
23130
  return vue.openBlock(), vue.createBlock(_component_HierarchyFacetLevel, {
23081
23131
  key: itemChild.title,
@@ -23091,13 +23141,13 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
23091
23141
  };
23092
23142
  }
23093
23143
  });
23094
- const _hoisted_1$L = {
23144
+ const _hoisted_1$N = {
23095
23145
  class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
23096
23146
  "data-cy": "lupa-search-result-facet-term-values"
23097
23147
  };
23098
- const _hoisted_2$x = { key: 0 };
23099
- const _hoisted_3$o = ["placeholder"];
23100
- const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
23148
+ const _hoisted_2$z = { key: 0 };
23149
+ const _hoisted_3$q = ["placeholder"];
23150
+ const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
23101
23151
  __name: "HierarchyFacet",
23102
23152
  props: {
23103
23153
  options: {},
@@ -23152,19 +23202,19 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
23152
23202
  showAll.value = false;
23153
23203
  };
23154
23204
  return (_ctx, _cache) => {
23155
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$L, [
23156
- isFilterable.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$x, [
23205
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$N, [
23206
+ isFilterable.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$z, [
23157
23207
  vue.withDirectives(vue.createElementVNode("input", {
23158
23208
  class: "lupa-term-filter",
23159
23209
  "data-cy": "lupa-term-filter",
23160
23210
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
23161
23211
  placeholder: _ctx.options.labels.facetFilter
23162
- }, null, 8, _hoisted_3$o), [
23212
+ }, null, 8, _hoisted_3$q), [
23163
23213
  [vue.vModelText, termFilter.value]
23164
23214
  ])
23165
23215
  ])) : vue.createCommentVNode("", true),
23166
23216
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(displayValues.value, (item) => {
23167
- return vue.openBlock(), vue.createBlock(_sfc_main$S, {
23217
+ return vue.openBlock(), vue.createBlock(_sfc_main$U, {
23168
23218
  key: item.title,
23169
23219
  options: _ctx.options,
23170
23220
  item,
@@ -23188,20 +23238,20 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
23188
23238
  };
23189
23239
  }
23190
23240
  });
23191
- const _hoisted_1$K = { class: "lupa-facet-label-text" };
23192
- const _hoisted_2$w = {
23241
+ const _hoisted_1$M = { class: "lupa-facet-label-text" };
23242
+ const _hoisted_2$y = {
23193
23243
  key: 0,
23194
23244
  class: "lupa-facet-content",
23195
23245
  "data-cy": "lupa-facet-content"
23196
23246
  };
23197
23247
  const __default__$1 = {
23198
23248
  components: {
23199
- TermFacet: _sfc_main$U,
23200
- StatsFacet: _sfc_main$T,
23201
- HierarchyFacet: _sfc_main$R
23249
+ TermFacet: _sfc_main$W,
23250
+ StatsFacet: _sfc_main$V,
23251
+ HierarchyFacet: _sfc_main$T
23202
23252
  }
23203
23253
  };
23204
- const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, __default__$1), {
23254
+ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, __default__$1), {
23205
23255
  __name: "FacetDisplay",
23206
23256
  props: {
23207
23257
  options: {},
@@ -23322,12 +23372,12 @@ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadVa
23322
23372
  "data-cy": "lupa-search-result-facet-label",
23323
23373
  onClick: toggleFacet
23324
23374
  }, [
23325
- vue.createElementVNode("div", _hoisted_1$K, vue.toDisplayString(facetLabel.value), 1),
23375
+ vue.createElementVNode("div", _hoisted_1$M, vue.toDisplayString(facetLabel.value), 1),
23326
23376
  vue.createElementVNode("div", {
23327
23377
  class: vue.normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
23328
23378
  }, null, 2)
23329
23379
  ], 2),
23330
- isOpen.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$w, [
23380
+ isOpen.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$y, [
23331
23381
  (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(facetType.value), {
23332
23382
  facet: facet.value,
23333
23383
  currentFilters: currentFilters.value[facet.value.key],
@@ -23345,12 +23395,12 @@ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadVa
23345
23395
  };
23346
23396
  }
23347
23397
  }));
23348
- const _hoisted_1$J = { class: "lupa-search-result-facet-section" };
23349
- const _hoisted_2$v = {
23398
+ const _hoisted_1$L = { class: "lupa-search-result-facet-section" };
23399
+ const _hoisted_2$x = {
23350
23400
  key: 0,
23351
23401
  class: "lupa-facets-title"
23352
23402
  };
23353
- const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
23403
+ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
23354
23404
  __name: "FacetList",
23355
23405
  props: {
23356
23406
  options: {},
@@ -23384,14 +23434,14 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
23384
23434
  };
23385
23435
  return (_ctx, _cache) => {
23386
23436
  var _a;
23387
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$J, [
23388
- _ctx.options.labels.title ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$v, vue.toDisplayString(_ctx.options.labels.title), 1)) : vue.createCommentVNode("", true),
23437
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$L, [
23438
+ _ctx.options.labels.title ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$x, vue.toDisplayString(_ctx.options.labels.title), 1)) : vue.createCommentVNode("", true),
23389
23439
  vue.createElementVNode("div", {
23390
23440
  class: vue.normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
23391
23441
  }, [
23392
23442
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(displayFacets.value, (facet) => {
23393
23443
  var _a2;
23394
- return vue.openBlock(), vue.createBlock(_sfc_main$Q, {
23444
+ return vue.openBlock(), vue.createBlock(_sfc_main$S, {
23395
23445
  key: facet.key,
23396
23446
  facet,
23397
23447
  currentFilters: currentFiltersValue.value,
@@ -23406,8 +23456,8 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
23406
23456
  };
23407
23457
  }
23408
23458
  });
23409
- const _hoisted_1$I = ["onClick"];
23410
- const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
23459
+ const _hoisted_1$K = ["onClick"];
23460
+ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
23411
23461
  __name: "FacetsButton",
23412
23462
  props: {
23413
23463
  options: {}
@@ -23427,12 +23477,12 @@ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
23427
23477
  key: 0,
23428
23478
  class: "lupa-facets-button-filter",
23429
23479
  onClick: vue.withModifiers(handleClick, ["stop"])
23430
- }, vue.toDisplayString(label.value), 9, _hoisted_1$I)) : vue.createCommentVNode("", true);
23480
+ }, vue.toDisplayString(label.value), 9, _hoisted_1$K)) : vue.createCommentVNode("", true);
23431
23481
  };
23432
23482
  }
23433
23483
  });
23434
- const _hoisted_1$H = { class: "lupa-facets-filter-button-wrapper" };
23435
- const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
23484
+ const _hoisted_1$J = { class: "lupa-facets-filter-button-wrapper" };
23485
+ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
23436
23486
  __name: "Facets",
23437
23487
  props: {
23438
23488
  options: {},
@@ -23518,7 +23568,7 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
23518
23568
  return vue.openBlock(), vue.createElementBlock("div", {
23519
23569
  class: vue.normalizeClass(["lupa-search-result-facets", { "lupa-search-result-facets-loading": vue.unref(loadingFacets) }])
23520
23570
  }, [
23521
- regularFacets.value ? (vue.openBlock(), vue.createBlock(_sfc_main$P, {
23571
+ regularFacets.value ? (vue.openBlock(), vue.createBlock(_sfc_main$R, {
23522
23572
  key: 0,
23523
23573
  options: _ctx.options,
23524
23574
  facets: regularFacets.value,
@@ -23528,8 +23578,8 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
23528
23578
  onSelect: handleFacetSelect,
23529
23579
  onClear: clear
23530
23580
  }, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : vue.createCommentVNode("", true),
23531
- vue.createElementVNode("div", _hoisted_1$H, [
23532
- showFilterButton.value ? (vue.openBlock(), vue.createBlock(_sfc_main$O, {
23581
+ vue.createElementVNode("div", _hoisted_1$J, [
23582
+ showFilterButton.value ? (vue.openBlock(), vue.createBlock(_sfc_main$Q, {
23533
23583
  key: 0,
23534
23584
  options: _ctx.options,
23535
23585
  onFilter: filter2
@@ -23539,12 +23589,12 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
23539
23589
  };
23540
23590
  }
23541
23591
  });
23542
- const _hoisted_1$G = {
23592
+ const _hoisted_1$I = {
23543
23593
  key: 0,
23544
23594
  id: "lupa-search-result-filters",
23545
23595
  class: "lupa-search-result-filters"
23546
23596
  };
23547
- const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
23597
+ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
23548
23598
  __name: "SearchResultsFilters",
23549
23599
  props: {
23550
23600
  options: {},
@@ -23581,19 +23631,19 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
23581
23631
  __expose({ fetch: fetch2 });
23582
23632
  return (_ctx, _cache) => {
23583
23633
  var _a;
23584
- return visible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$G, [
23585
- showCurrentFilters.value ? (vue.openBlock(), vue.createBlock(_sfc_main$X, {
23634
+ return visible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$I, [
23635
+ showCurrentFilters.value ? (vue.openBlock(), vue.createBlock(_sfc_main$Z, {
23586
23636
  key: 0,
23587
23637
  options: _ctx.options.currentFilters,
23588
23638
  expandable: (_a = _ctx.expandable) != null ? _a : false
23589
23639
  }, null, 8, ["options", "expandable"])) : vue.createCommentVNode("", true),
23590
- _ctx.options.categories ? (vue.openBlock(), vue.createBlock(_sfc_main$V, {
23640
+ _ctx.options.categories ? (vue.openBlock(), vue.createBlock(_sfc_main$X, {
23591
23641
  key: 1,
23592
23642
  options: _ctx.options.categories,
23593
23643
  ref_key: "categoryFilters",
23594
23644
  ref: categoryFilters
23595
23645
  }, null, 8, ["options"])) : vue.createCommentVNode("", true),
23596
- _ctx.options.facets ? (vue.openBlock(), vue.createBlock(_sfc_main$N, {
23646
+ _ctx.options.facets ? (vue.openBlock(), vue.createBlock(_sfc_main$P, {
23597
23647
  key: 2,
23598
23648
  options: _ctx.options.facets,
23599
23649
  onFilter: filter2
@@ -23602,20 +23652,20 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
23602
23652
  };
23603
23653
  }
23604
23654
  });
23605
- const _hoisted_1$F = {
23655
+ const _hoisted_1$H = {
23606
23656
  key: 0,
23607
23657
  class: "lupa-mobile-filter-sidebar"
23608
23658
  };
23609
- const _hoisted_2$u = ["onClick"];
23610
- const _hoisted_3$n = { class: "lupa-mobile-sidebar-content" };
23611
- const _hoisted_4$h = { class: "lupa-sidebar-top" };
23612
- const _hoisted_5$b = { class: "lupa-sidebar-title" };
23659
+ const _hoisted_2$w = ["onClick"];
23660
+ const _hoisted_3$p = { class: "lupa-mobile-sidebar-content" };
23661
+ const _hoisted_4$i = { class: "lupa-sidebar-top" };
23662
+ const _hoisted_5$c = { class: "lupa-sidebar-title" };
23613
23663
  const _hoisted_6$6 = {
23614
23664
  key: 0,
23615
23665
  class: "lupa-sidebar-filter-count"
23616
23666
  };
23617
23667
  const _hoisted_7$4 = { class: "lupa-sidebar-filter-options" };
23618
- const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
23668
+ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
23619
23669
  __name: "MobileFilterSidebar",
23620
23670
  props: {
23621
23671
  options: {}
@@ -23646,14 +23696,14 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
23646
23696
  handleMobileToggle();
23647
23697
  };
23648
23698
  return (_ctx, _cache) => {
23649
- return isMobileSidebarVisible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$F, [
23699
+ return isMobileSidebarVisible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$H, [
23650
23700
  vue.createElementVNode("div", {
23651
23701
  class: "lupa-sidebar-close",
23652
23702
  onClick: vue.withModifiers(handleMobileToggle, ["stop"])
23653
- }, null, 8, _hoisted_2$u),
23654
- vue.createElementVNode("div", _hoisted_3$n, [
23655
- vue.createElementVNode("div", _hoisted_4$h, [
23656
- vue.createElementVNode("div", _hoisted_5$b, [
23703
+ }, null, 8, _hoisted_2$w),
23704
+ vue.createElementVNode("div", _hoisted_3$p, [
23705
+ vue.createElementVNode("div", _hoisted_4$i, [
23706
+ vue.createElementVNode("div", _hoisted_5$c, [
23657
23707
  vue.createTextVNode(vue.toDisplayString(sidebarTitle.value) + " ", 1),
23658
23708
  isFilterCountVisible.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_6$6, vue.toDisplayString(vue.unref(currentFilterCount)), 1)) : vue.createCommentVNode("", true)
23659
23709
  ]),
@@ -23663,7 +23713,7 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
23663
23713
  })
23664
23714
  ]),
23665
23715
  vue.createElementVNode("div", _hoisted_7$4, [
23666
- vue.createVNode(_sfc_main$M, {
23716
+ vue.createVNode(_sfc_main$O, {
23667
23717
  options: _ctx.options,
23668
23718
  expandable: isActiveFiltersExpanded.value,
23669
23719
  onFilter: filter2
@@ -23674,14 +23724,14 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
23674
23724
  };
23675
23725
  }
23676
23726
  });
23677
- const _hoisted_1$E = { id: "lupa-search-results-breadcrumbs" };
23678
- const _hoisted_2$t = ["href", "onClick"];
23679
- const _hoisted_3$m = {
23727
+ const _hoisted_1$G = { id: "lupa-search-results-breadcrumbs" };
23728
+ const _hoisted_2$v = ["href", "onClick"];
23729
+ const _hoisted_3$o = {
23680
23730
  key: 1,
23681
23731
  class: "lupa-search-results-breadcrumb-text"
23682
23732
  };
23683
- const _hoisted_4$g = { key: 2 };
23684
- const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
23733
+ const _hoisted_4$h = { key: 2 };
23734
+ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
23685
23735
  __name: "SearchResultsBreadcrumbs",
23686
23736
  props: {
23687
23737
  breadcrumbs: {}
@@ -23706,7 +23756,7 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
23706
23756
  handleRoutingEvent(link, event, hasEventRouting.value);
23707
23757
  };
23708
23758
  return (_ctx, _cache) => {
23709
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$E, [
23759
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$G, [
23710
23760
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(breadcrumbsValue.value, (breadcrumb, index) => {
23711
23761
  var _a;
23712
23762
  return vue.openBlock(), vue.createElementBlock("span", {
@@ -23721,20 +23771,20 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
23721
23771
  var _a2;
23722
23772
  return handleNavigation(e2, (_a2 = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a2 : "");
23723
23773
  }
23724
- }, vue.toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$t)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$m, vue.toDisplayString(getLabel(breadcrumb.label)), 1)),
23725
- index < breadcrumbsValue.value.length - 1 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$g, vue.toDisplayString((_a = breadcrumb.separator) != null ? _a : "/"), 1)) : vue.createCommentVNode("", true)
23774
+ }, vue.toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$v)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$o, vue.toDisplayString(getLabel(breadcrumb.label)), 1)),
23775
+ index < breadcrumbsValue.value.length - 1 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$h, vue.toDisplayString((_a = breadcrumb.separator) != null ? _a : "/"), 1)) : vue.createCommentVNode("", true)
23726
23776
  ]);
23727
23777
  }), 128))
23728
23778
  ]);
23729
23779
  };
23730
23780
  }
23731
23781
  });
23732
- const _hoisted_1$D = {
23782
+ const _hoisted_1$F = {
23733
23783
  key: 0,
23734
23784
  id: "lupa-search-result-filters",
23735
23785
  class: "lupa-search-result-filters lupa-search-result-top-filters"
23736
23786
  };
23737
- const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
23787
+ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
23738
23788
  __name: "FiltersTopDropdown",
23739
23789
  props: {
23740
23790
  options: {}
@@ -23751,8 +23801,8 @@ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
23751
23801
  });
23752
23802
  return (_ctx, _cache) => {
23753
23803
  var _a;
23754
- return visible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$D, [
23755
- _ctx.options.facets ? (vue.openBlock(), vue.createBlock(_sfc_main$N, {
23804
+ return visible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$F, [
23805
+ _ctx.options.facets ? (vue.openBlock(), vue.createBlock(_sfc_main$P, {
23756
23806
  key: 0,
23757
23807
  options: _ctx.options.facets,
23758
23808
  "facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
@@ -23763,8 +23813,8 @@ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
23763
23813
  };
23764
23814
  }
23765
23815
  });
23766
- const _hoisted_1$C = { id: "lupa-search-results-layout-selection" };
23767
- const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
23816
+ const _hoisted_1$E = { id: "lupa-search-results-layout-selection" };
23817
+ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
23768
23818
  __name: "SearchResultsLayoutSelection",
23769
23819
  setup(__props) {
23770
23820
  const searchResultStore = useSearchResultStore();
@@ -23775,7 +23825,7 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
23775
23825
  searchResultStore.setLayout(layout2);
23776
23826
  };
23777
23827
  return (_ctx, _cache) => {
23778
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$C, [
23828
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$E, [
23779
23829
  vue.createElementVNode("div", {
23780
23830
  class: vue.normalizeClass([
23781
23831
  "lupa-layout-selection-grid",
@@ -23797,11 +23847,11 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
23797
23847
  };
23798
23848
  }
23799
23849
  });
23800
- const _hoisted_1$B = {
23850
+ const _hoisted_1$D = {
23801
23851
  key: 0,
23802
23852
  class: "lupa-mobile-toggle-filter-count"
23803
23853
  };
23804
- const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
23854
+ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
23805
23855
  __name: "SearchResultsMobileToggle",
23806
23856
  props: {
23807
23857
  labels: {},
@@ -23849,12 +23899,12 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
23849
23899
  onClick: handleMobileToggle
23850
23900
  }, [
23851
23901
  vue.createTextVNode(vue.toDisplayString(label.value) + " ", 1),
23852
- _ctx.showFilterCount && vue.unref(currentFilterCount) > 0 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$B, vue.toDisplayString(vue.unref(currentFilterCount)), 1)) : vue.createCommentVNode("", true)
23902
+ _ctx.showFilterCount && vue.unref(currentFilterCount) > 0 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$D, vue.toDisplayString(vue.unref(currentFilterCount)), 1)) : vue.createCommentVNode("", true)
23853
23903
  ], 2);
23854
23904
  };
23855
23905
  }
23856
23906
  });
23857
- const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
23907
+ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
23858
23908
  __name: "SearchResultsMobileFilterClose",
23859
23909
  props: {
23860
23910
  label: {}
@@ -23874,21 +23924,21 @@ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
23874
23924
  };
23875
23925
  }
23876
23926
  });
23877
- const _hoisted_1$A = {
23927
+ const _hoisted_1$C = {
23878
23928
  key: 0,
23879
23929
  id: "lupa-search-results-page-select",
23880
23930
  "data-cy": "lupa-search-results-page-select"
23881
23931
  };
23882
- const _hoisted_2$s = {
23932
+ const _hoisted_2$u = {
23883
23933
  key: 0,
23884
23934
  class: "lupa-page-number-separator"
23885
23935
  };
23886
- const _hoisted_3$l = ["onClick"];
23887
- const _hoisted_4$f = {
23936
+ const _hoisted_3$n = ["onClick"];
23937
+ const _hoisted_4$g = {
23888
23938
  key: 0,
23889
23939
  class: "lupa-page-number-separator"
23890
23940
  };
23891
- const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
23941
+ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
23892
23942
  __name: "SearchResultsPageSelect",
23893
23943
  props: {
23894
23944
  lastPageLabel: {},
@@ -23965,7 +24015,7 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
23965
24015
  }
23966
24016
  };
23967
24017
  return (_ctx, _cache) => {
23968
- return showPagination.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$A, [
24018
+ return showPagination.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$C, [
23969
24019
  showBack.value ? (vue.openBlock(), vue.createElementBlock("div", {
23970
24020
  key: 0,
23971
24021
  class: vue.normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
@@ -23976,7 +24026,7 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
23976
24026
  class: "lupa-page-number lupa-page-number-first",
23977
24027
  onClick: _cache[1] || (_cache[1] = () => handlePageChange(1))
23978
24028
  }, " 1 "),
23979
- showFirstPageSeparator.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$s, "...")) : vue.createCommentVNode("", true)
24029
+ showFirstPageSeparator.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$u, "...")) : vue.createCommentVNode("", true)
23980
24030
  ], 64)) : vue.createCommentVNode("", true),
23981
24031
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(pages.value, (page) => {
23982
24032
  return vue.openBlock(), vue.createElementBlock("div", {
@@ -23987,10 +24037,10 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
23987
24037
  page === _ctx.options.selectedPage ? "lupa-page-number-selected" : ""
23988
24038
  ]),
23989
24039
  "data-cy": "lupa-page-number"
23990
- }, vue.toDisplayString(page), 11, _hoisted_3$l);
24040
+ }, vue.toDisplayString(page), 11, _hoisted_3$n);
23991
24041
  }), 128)),
23992
24042
  showLastPage.value ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
23993
- showLastPageSeparator.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$f, "...")) : vue.createCommentVNode("", true),
24043
+ showLastPageSeparator.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$g, "...")) : vue.createCommentVNode("", true),
23994
24044
  vue.createElementVNode("div", {
23995
24045
  class: "lupa-page-number lupa-page-number-last",
23996
24046
  onClick: _cache[2] || (_cache[2] = () => {
@@ -24009,15 +24059,15 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
24009
24059
  };
24010
24060
  }
24011
24061
  });
24012
- const _hoisted_1$z = {
24062
+ const _hoisted_1$B = {
24013
24063
  id: "lupa-search-results-page-size",
24014
24064
  "data-cy": "lupa-search-results-page-size"
24015
24065
  };
24016
- const _hoisted_2$r = { id: "lupa-select" };
24017
- const _hoisted_3$k = { class: "lupa-select-label" };
24018
- const _hoisted_4$e = ["aria-label"];
24019
- const _hoisted_5$a = ["value"];
24020
- const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
24066
+ const _hoisted_2$t = { id: "lupa-select" };
24067
+ const _hoisted_3$m = { class: "lupa-select-label" };
24068
+ const _hoisted_4$f = ["aria-label"];
24069
+ const _hoisted_5$b = ["value"];
24070
+ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
24021
24071
  __name: "SearchResultsPageSize",
24022
24072
  props: {
24023
24073
  labels: {},
@@ -24045,9 +24095,9 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
24045
24095
  });
24046
24096
  };
24047
24097
  return (_ctx, _cache) => {
24048
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$z, [
24049
- vue.createElementVNode("div", _hoisted_2$r, [
24050
- vue.createElementVNode("label", _hoisted_3$k, vue.toDisplayString(label.value), 1),
24098
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$B, [
24099
+ vue.createElementVNode("div", _hoisted_2$t, [
24100
+ vue.createElementVNode("label", _hoisted_3$m, vue.toDisplayString(label.value), 1),
24051
24101
  vue.createElementVNode("select", {
24052
24102
  class: "lupa-select-dropdown",
24053
24103
  "aria-label": label.value,
@@ -24060,23 +24110,23 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
24060
24110
  return vue.openBlock(), vue.createElementBlock("option", {
24061
24111
  key: option,
24062
24112
  value: option
24063
- }, vue.toDisplayString(prefixLabel.value) + vue.toDisplayString(option), 9, _hoisted_5$a);
24113
+ }, vue.toDisplayString(prefixLabel.value) + vue.toDisplayString(option), 9, _hoisted_5$b);
24064
24114
  }), 128))
24065
- ], 40, _hoisted_4$e)
24115
+ ], 40, _hoisted_4$f)
24066
24116
  ])
24067
24117
  ]);
24068
24118
  };
24069
24119
  }
24070
24120
  });
24071
- const _hoisted_1$y = {
24121
+ const _hoisted_1$A = {
24072
24122
  id: "lupa-search-results-sort",
24073
24123
  class: "lupa-search-results-sort"
24074
24124
  };
24075
- const _hoisted_2$q = { id: "lupa-select" };
24076
- const _hoisted_3$j = { class: "lupa-select-label" };
24077
- const _hoisted_4$d = ["aria-label"];
24078
- const _hoisted_5$9 = ["value"];
24079
- const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
24125
+ const _hoisted_2$s = { id: "lupa-select" };
24126
+ const _hoisted_3$l = { class: "lupa-select-label" };
24127
+ const _hoisted_4$e = ["aria-label"];
24128
+ const _hoisted_5$a = ["value"];
24129
+ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
24080
24130
  __name: "SearchResultsSort",
24081
24131
  props: {
24082
24132
  options: {},
@@ -24125,9 +24175,9 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
24125
24175
  previousKey.value = selectedKey.value;
24126
24176
  };
24127
24177
  return (_ctx, _cache) => {
24128
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$y, [
24129
- vue.createElementVNode("div", _hoisted_2$q, [
24130
- vue.createElementVNode("label", _hoisted_3$j, vue.toDisplayString(_ctx.options.label), 1),
24178
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$A, [
24179
+ vue.createElementVNode("div", _hoisted_2$s, [
24180
+ vue.createElementVNode("label", _hoisted_3$l, vue.toDisplayString(_ctx.options.label), 1),
24131
24181
  vue.withDirectives(vue.createElementVNode("select", {
24132
24182
  class: "lupa-select-dropdown",
24133
24183
  "aria-label": _ctx.options.label,
@@ -24140,9 +24190,9 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
24140
24190
  return vue.openBlock(), vue.createElementBlock("option", {
24141
24191
  key: option.key,
24142
24192
  value: option.key
24143
- }, vue.toDisplayString(option.label), 9, _hoisted_5$9);
24193
+ }, vue.toDisplayString(option.label), 9, _hoisted_5$a);
24144
24194
  }), 128))
24145
- ], 40, _hoisted_4$d), [
24195
+ ], 40, _hoisted_4$e), [
24146
24196
  [vue.vModelSelect, selectedKey.value]
24147
24197
  ])
24148
24198
  ])
@@ -24150,14 +24200,14 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
24150
24200
  };
24151
24201
  }
24152
24202
  });
24153
- const _hoisted_1$x = { class: "lupa-toolbar-left" };
24154
- const _hoisted_2$p = {
24203
+ const _hoisted_1$z = { class: "lupa-toolbar-left" };
24204
+ const _hoisted_2$r = {
24155
24205
  key: 0,
24156
24206
  class: "lupa-toolbar-right-title"
24157
24207
  };
24158
- const _hoisted_3$i = { key: 2 };
24159
- const _hoisted_4$c = { key: 4 };
24160
- const _hoisted_5$8 = { key: 6 };
24208
+ const _hoisted_3$k = { key: 2 };
24209
+ const _hoisted_4$d = { key: 4 };
24210
+ const _hoisted_5$9 = { key: 6 };
24161
24211
  const _hoisted_6$5 = { class: "lupa-toolbar-right" };
24162
24212
  const _hoisted_7$3 = {
24163
24213
  key: 0,
@@ -24165,7 +24215,7 @@ const _hoisted_7$3 = {
24165
24215
  };
24166
24216
  const _hoisted_8 = { key: 2 };
24167
24217
  const _hoisted_9 = { key: 4 };
24168
- const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
24218
+ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
24169
24219
  __name: "SearchResultsToolbar",
24170
24220
  props: {
24171
24221
  options: {},
@@ -24276,39 +24326,39 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
24276
24326
  id: "lupa-search-results-toolbar",
24277
24327
  class: vue.normalizeClass({ "lupa-filter-no-results": !hasResults.value })
24278
24328
  }, [
24279
- vue.createElementVNode("div", _hoisted_1$x, [
24280
- toolbarLeftLabel.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$p, vue.toDisplayString(toolbarLeftLabel.value), 1)) : vue.createCommentVNode("", true),
24281
- showLayoutSelection.value ? (vue.openBlock(), vue.createBlock(_sfc_main$I, { key: 1 })) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$i)),
24282
- showItemSummary.value ? (vue.openBlock(), vue.createBlock(_sfc_main$_, {
24329
+ vue.createElementVNode("div", _hoisted_1$z, [
24330
+ toolbarLeftLabel.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$r, vue.toDisplayString(toolbarLeftLabel.value), 1)) : vue.createCommentVNode("", true),
24331
+ showLayoutSelection.value ? (vue.openBlock(), vue.createBlock(_sfc_main$K, { key: 1 })) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$k)),
24332
+ showItemSummary.value ? (vue.openBlock(), vue.createBlock(_sfc_main$10, {
24283
24333
  key: 3,
24284
24334
  label: searchSummaryLabel.value,
24285
24335
  clearable: vue.unref(hasAnyFilter) && showFilterClear.value,
24286
24336
  onClear: handleClearAll
24287
- }, null, 8, ["label", "clearable"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$c)),
24288
- displayPageSelect.value ? (vue.openBlock(), vue.createBlock(_sfc_main$F, {
24337
+ }, null, 8, ["label", "clearable"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$d)),
24338
+ displayPageSelect.value ? (vue.openBlock(), vue.createBlock(_sfc_main$H, {
24289
24339
  key: 5,
24290
24340
  options: paginationOptions.value.pageSelect,
24291
24341
  "last-page-label": paginationOptions.value.labels.showMore,
24292
24342
  "first-page-label": paginationOptions.value.labels.showLess
24293
- }, null, 8, ["options", "last-page-label", "first-page-label"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$8))
24343
+ }, null, 8, ["options", "last-page-label", "first-page-label"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$9))
24294
24344
  ]),
24295
24345
  vue.createElementVNode("div", _hoisted_6$5, [
24296
24346
  toolbarRightLabel.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$3, vue.toDisplayString(toolbarRightLabel.value), 1)) : vue.createCommentVNode("", true),
24297
- vue.createVNode(_sfc_main$H, {
24347
+ vue.createVNode(_sfc_main$J, {
24298
24348
  labels: optionsValue.value.labels,
24299
24349
  "show-filter-count": showMobileFilterCount.value
24300
24350
  }, null, 8, ["labels", "show-filter-count"]),
24301
- paginationDisplay.value.pageSize ? (vue.openBlock(), vue.createBlock(_sfc_main$E, {
24351
+ paginationDisplay.value.pageSize ? (vue.openBlock(), vue.createBlock(_sfc_main$G, {
24302
24352
  key: 1,
24303
24353
  options: paginationOptions.value.pageSize,
24304
24354
  labels: paginationOptions.value.labels
24305
24355
  }, null, 8, ["options", "labels"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_8)),
24306
- sortOptions.value ? (vue.openBlock(), vue.createBlock(_sfc_main$D, {
24356
+ sortOptions.value ? (vue.openBlock(), vue.createBlock(_sfc_main$F, {
24307
24357
  key: 3,
24308
24358
  options: sortOptions.value,
24309
24359
  callbacks: callbacks.value
24310
24360
  }, null, 8, ["options", "callbacks"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_9)),
24311
- showFiltersCloseButton.value && vue.unref(isMobileSidebarVisible) ? (vue.openBlock(), vue.createBlock(_sfc_main$G, {
24361
+ showFiltersCloseButton.value && vue.unref(isMobileSidebarVisible) ? (vue.openBlock(), vue.createBlock(_sfc_main$I, {
24312
24362
  key: 5,
24313
24363
  label: optionsValue.value.labels.mobileFilterCloseButton
24314
24364
  }, null, 8, ["label"])) : vue.createCommentVNode("", true)
@@ -24317,7 +24367,7 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
24317
24367
  };
24318
24368
  }
24319
24369
  });
24320
- const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
24370
+ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
24321
24371
  __name: "SearchResultsProductImage",
24322
24372
  props: {
24323
24373
  item: {},
@@ -24325,7 +24375,7 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
24325
24375
  },
24326
24376
  setup(__props) {
24327
24377
  return (_ctx, _cache) => {
24328
- return vue.openBlock(), vue.createBlock(_sfc_main$1n, {
24378
+ return vue.openBlock(), vue.createBlock(_sfc_main$1p, {
24329
24379
  item: _ctx.item,
24330
24380
  options: _ctx.options,
24331
24381
  "wrapper-class": "lupa-search-results-image-wrapper",
@@ -24334,16 +24384,16 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
24334
24384
  };
24335
24385
  }
24336
24386
  });
24337
- const _hoisted_1$w = ["title", "innerHTML"];
24338
- const _hoisted_2$o = ["title"];
24339
- const _hoisted_3$h = ["href", "innerHTML"];
24340
- const _hoisted_4$b = ["title"];
24341
- const _hoisted_5$7 = {
24387
+ const _hoisted_1$y = ["title", "innerHTML"];
24388
+ const _hoisted_2$q = ["title"];
24389
+ const _hoisted_3$j = ["href", "innerHTML"];
24390
+ const _hoisted_4$c = ["title"];
24391
+ const _hoisted_5$8 = {
24342
24392
  key: 0,
24343
24393
  class: "lupa-search-results-product-title-text"
24344
24394
  };
24345
24395
  const _hoisted_6$4 = ["href"];
24346
- const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
24396
+ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
24347
24397
  __name: "SearchResultsProductTitle",
24348
24398
  props: {
24349
24399
  item: {},
@@ -24380,7 +24430,7 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
24380
24430
  style: vue.normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
24381
24431
  title: sanitizedTitle.value,
24382
24432
  innerHTML: sanitizedTitle.value
24383
- }, null, 12, _hoisted_1$w)) : isHtml.value && _ctx.options.link ? (vue.openBlock(), vue.createElementBlock("div", {
24433
+ }, null, 12, _hoisted_1$y)) : isHtml.value && _ctx.options.link ? (vue.openBlock(), vue.createElementBlock("div", {
24384
24434
  key: 1,
24385
24435
  class: "lupa-search-results-product-title",
24386
24436
  style: vue.normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
@@ -24391,26 +24441,26 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
24391
24441
  class: "lupa-search-results-product-title-text lupa-title-link",
24392
24442
  innerHTML: sanitizedTitle.value,
24393
24443
  onClick: handleNavigation
24394
- }, null, 8, _hoisted_3$h)
24395
- ], 12, _hoisted_2$o)) : (vue.openBlock(), vue.createElementBlock("div", {
24444
+ }, null, 8, _hoisted_3$j)
24445
+ ], 12, _hoisted_2$q)) : (vue.openBlock(), vue.createElementBlock("div", {
24396
24446
  key: 2,
24397
24447
  class: "lupa-search-results-product-title",
24398
24448
  style: vue.normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
24399
24449
  title: title.value
24400
24450
  }, [
24401
- !_ctx.options.link ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_5$7, vue.toDisplayString(title.value), 1)) : vue.createCommentVNode("", true),
24451
+ !_ctx.options.link ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_5$8, vue.toDisplayString(title.value), 1)) : vue.createCommentVNode("", true),
24402
24452
  _ctx.options.link ? (vue.openBlock(), vue.createElementBlock("a", {
24403
24453
  key: 1,
24404
24454
  href: _ctx.link,
24405
24455
  class: "lupa-search-results-product-title-text lupa-title-link",
24406
24456
  onClick: handleNavigation
24407
24457
  }, vue.toDisplayString(title.value), 9, _hoisted_6$4)) : vue.createCommentVNode("", true)
24408
- ], 12, _hoisted_4$b));
24458
+ ], 12, _hoisted_4$c));
24409
24459
  };
24410
24460
  }
24411
24461
  });
24412
- const _hoisted_1$v = ["innerHTML"];
24413
- const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
24462
+ const _hoisted_1$x = ["innerHTML"];
24463
+ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
24414
24464
  __name: "SearchResultsProductDescription",
24415
24465
  props: {
24416
24466
  item: {},
@@ -24437,7 +24487,7 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
24437
24487
  class: "lupa-search-results-product-description",
24438
24488
  style: vue.normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
24439
24489
  innerHTML: sanitizedDescription.value
24440
- }, null, 12, _hoisted_1$v)) : (vue.openBlock(), vue.createElementBlock("div", {
24490
+ }, null, 12, _hoisted_1$x)) : (vue.openBlock(), vue.createElementBlock("div", {
24441
24491
  key: 1,
24442
24492
  class: "lupa-search-results-product-description",
24443
24493
  style: vue.normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
@@ -24445,15 +24495,15 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
24445
24495
  };
24446
24496
  }
24447
24497
  });
24448
- const _hoisted_1$u = { id: "lupa-search-results-rating" };
24449
- const _hoisted_2$n = { class: "lupa-ratings" };
24450
- const _hoisted_3$g = { class: "lupa-ratings-base" };
24451
- const _hoisted_4$a = ["innerHTML"];
24452
- const _hoisted_5$6 = { class: "lupa-rating-wrapper" };
24498
+ const _hoisted_1$w = { id: "lupa-search-results-rating" };
24499
+ const _hoisted_2$p = { class: "lupa-ratings" };
24500
+ const _hoisted_3$i = { class: "lupa-ratings-base" };
24501
+ const _hoisted_4$b = ["innerHTML"];
24502
+ const _hoisted_5$7 = { class: "lupa-rating-wrapper" };
24453
24503
  const _hoisted_6$3 = ["innerHTML"];
24454
24504
  const _hoisted_7$2 = ["href"];
24455
24505
  const STAR_COUNT = 5;
24456
- const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
24506
+ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
24457
24507
  __name: "SearchResultsProductRating",
24458
24508
  props: {
24459
24509
  item: {},
@@ -24490,18 +24540,18 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
24490
24540
  return generateLink(props.options.links.ratingDetails, props.item);
24491
24541
  });
24492
24542
  return (_ctx, _cache) => {
24493
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$u, [
24494
- vue.createElementVNode("div", _hoisted_2$n, [
24495
- vue.createElementVNode("div", _hoisted_3$g, [
24543
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$w, [
24544
+ vue.createElementVNode("div", _hoisted_2$p, [
24545
+ vue.createElementVNode("div", _hoisted_3$i, [
24496
24546
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(baseStars.value, (star, index) => {
24497
24547
  return vue.openBlock(), vue.createElementBlock("div", {
24498
24548
  key: index,
24499
24549
  innerHTML: star,
24500
24550
  class: "lupa-rating lupa-rating-not-highlighted"
24501
- }, null, 8, _hoisted_4$a);
24551
+ }, null, 8, _hoisted_4$b);
24502
24552
  }), 128))
24503
24553
  ]),
24504
- vue.createElementVNode("div", _hoisted_5$6, [
24554
+ vue.createElementVNode("div", _hoisted_5$7, [
24505
24555
  vue.createElementVNode("div", {
24506
24556
  class: "lupa-ratings-highlighted",
24507
24557
  style: vue.normalizeStyle({ width: ratingPercentage.value + "%" })
@@ -24524,11 +24574,11 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
24524
24574
  };
24525
24575
  }
24526
24576
  });
24527
- const _hoisted_1$t = {
24577
+ const _hoisted_1$v = {
24528
24578
  class: "lupa-search-results-product-regular-price",
24529
24579
  "data-cy": "lupa-search-results-product-regular-price"
24530
24580
  };
24531
- const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
24581
+ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
24532
24582
  __name: "SearchResultsProductRegularPrice",
24533
24583
  props: {
24534
24584
  item: {},
@@ -24547,11 +24597,11 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
24547
24597
  );
24548
24598
  });
24549
24599
  return (_ctx, _cache) => {
24550
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$t, vue.toDisplayString(price.value), 1);
24600
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$v, vue.toDisplayString(price.value), 1);
24551
24601
  };
24552
24602
  }
24553
24603
  });
24554
- const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
24604
+ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
24555
24605
  __name: "SearchResultsProductPrice",
24556
24606
  props: {
24557
24607
  item: {},
@@ -24582,12 +24632,12 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
24582
24632
  };
24583
24633
  }
24584
24634
  });
24585
- const _hoisted_1$s = { class: "lupa-search-results-add-to-cart-wrapper" };
24586
- const _hoisted_2$m = { class: "lupa-search-results-product-addtocart" };
24587
- const _hoisted_3$f = ["disabled"];
24588
- const _hoisted_4$9 = ["href"];
24589
- const _hoisted_5$5 = ["id", "disabled", "onClick"];
24590
- const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
24635
+ const _hoisted_1$u = { class: "lupa-search-results-add-to-cart-wrapper" };
24636
+ const _hoisted_2$o = { class: "lupa-search-results-product-addtocart" };
24637
+ const _hoisted_3$h = ["disabled"];
24638
+ const _hoisted_4$a = ["href"];
24639
+ const _hoisted_5$6 = ["id", "disabled", "onClick"];
24640
+ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
24591
24641
  __name: "SearchResultsProductAddToCart",
24592
24642
  props: {
24593
24643
  item: {},
@@ -24630,16 +24680,16 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
24630
24680
  return Boolean(props.link && props.options.link);
24631
24681
  });
24632
24682
  return (_ctx, _cache) => {
24633
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$s, [
24634
- vue.createElementVNode("div", _hoisted_2$m, [
24683
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$u, [
24684
+ vue.createElementVNode("div", _hoisted_2$o, [
24635
24685
  hasLink.value ? (vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
24636
24686
  key: 0,
24637
24687
  class: loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart",
24638
24688
  "data-cy": "lupa-add-to-cart",
24639
24689
  disabled: !inStockValue.value || loading.value
24640
24690
  }, _ctx.dynamicAttributes, { onClick: handleClick }), [
24641
- vue.createElementVNode("a", { href: _ctx.link }, vue.toDisplayString(label.value), 9, _hoisted_4$9)
24642
- ], 16, _hoisted_3$f)) : (vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
24691
+ vue.createElementVNode("a", { href: _ctx.link }, vue.toDisplayString(label.value), 9, _hoisted_4$a)
24692
+ ], 16, _hoisted_3$h)) : (vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
24643
24693
  key: 1,
24644
24694
  id: id.value,
24645
24695
  class: loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart",
@@ -24647,18 +24697,18 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
24647
24697
  disabled: !inStockValue.value || loading.value
24648
24698
  }, _ctx.dynamicAttributes, {
24649
24699
  onClick: vue.withModifiers(handleClick, ["stop"])
24650
- }), vue.toDisplayString(label.value), 17, _hoisted_5$5))
24700
+ }), vue.toDisplayString(label.value), 17, _hoisted_5$6))
24651
24701
  ])
24652
24702
  ]);
24653
24703
  };
24654
24704
  }
24655
24705
  });
24656
- const _hoisted_1$r = ["innerHTML"];
24657
- const _hoisted_2$l = { key: 0 };
24658
- const _hoisted_3$e = { key: 1 };
24659
- const _hoisted_4$8 = { class: "lupa-search-box-custom-label" };
24660
- const _hoisted_5$4 = { class: "lupa-search-box-custom-text" };
24661
- const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
24706
+ const _hoisted_1$t = ["innerHTML"];
24707
+ const _hoisted_2$n = { key: 0 };
24708
+ const _hoisted_3$g = { key: 1 };
24709
+ const _hoisted_4$9 = { class: "lupa-search-box-custom-label" };
24710
+ const _hoisted_5$5 = { class: "lupa-search-box-custom-text" };
24711
+ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
24662
24712
  __name: "SearchResultsProductCustom",
24663
24713
  props: {
24664
24714
  item: {},
@@ -24696,20 +24746,20 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
24696
24746
  key: 0,
24697
24747
  class: className.value,
24698
24748
  innerHTML: text.value
24699
- }, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$r)) : (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
24749
+ }, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$t)) : (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
24700
24750
  key: 1,
24701
24751
  class: className.value
24702
24752
  }, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
24703
- !label.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$l, vue.toDisplayString(text.value), 1)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$e, [
24704
- vue.createElementVNode("div", _hoisted_4$8, vue.toDisplayString(label.value), 1),
24705
- vue.createElementVNode("div", _hoisted_5$4, vue.toDisplayString(text.value), 1)
24753
+ !label.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$n, vue.toDisplayString(text.value), 1)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$g, [
24754
+ vue.createElementVNode("div", _hoisted_4$9, vue.toDisplayString(label.value), 1),
24755
+ vue.createElementVNode("div", _hoisted_5$5, vue.toDisplayString(text.value), 1)
24706
24756
  ]))
24707
24757
  ], 16));
24708
24758
  };
24709
24759
  }
24710
24760
  });
24711
- const _hoisted_1$q = ["innerHTML"];
24712
- const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
24761
+ const _hoisted_1$s = ["innerHTML"];
24762
+ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
24713
24763
  __name: "SearchResultsProductCustomHtmlElement",
24714
24764
  props: {
24715
24765
  item: {},
@@ -24740,15 +24790,15 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
24740
24790
  return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
24741
24791
  class: className.value,
24742
24792
  innerHTML: text.value
24743
- }, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$q);
24793
+ }, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$s);
24744
24794
  };
24745
24795
  }
24746
24796
  });
24747
- const _hoisted_1$p = { id: "lupa-search-results-rating" };
24748
- const _hoisted_2$k = ["innerHTML"];
24749
- const _hoisted_3$d = { class: "lupa-ratings" };
24750
- const _hoisted_4$7 = ["href"];
24751
- const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
24797
+ const _hoisted_1$r = { id: "lupa-search-results-rating" };
24798
+ const _hoisted_2$m = ["innerHTML"];
24799
+ const _hoisted_3$f = { class: "lupa-ratings" };
24800
+ const _hoisted_4$8 = ["href"];
24801
+ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
24752
24802
  __name: "SearchResultsProductSingleStarRating",
24753
24803
  props: {
24754
24804
  item: {},
@@ -24776,35 +24826,35 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
24776
24826
  return RATING_STAR_HTML;
24777
24827
  });
24778
24828
  return (_ctx, _cache) => {
24779
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$p, [
24829
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$r, [
24780
24830
  vue.createElementVNode("div", {
24781
24831
  innerHTML: star.value,
24782
24832
  class: "lupa-rating lupa-rating-highlighted"
24783
- }, null, 8, _hoisted_2$k),
24784
- vue.createElementVNode("div", _hoisted_3$d, vue.toDisplayString(rating.value), 1),
24833
+ }, null, 8, _hoisted_2$m),
24834
+ vue.createElementVNode("div", _hoisted_3$f, vue.toDisplayString(rating.value), 1),
24785
24835
  vue.createElementVNode("a", {
24786
24836
  href: ratingLink.value,
24787
24837
  class: "lupa-total-ratings"
24788
- }, vue.toDisplayString(totalRatings.value), 9, _hoisted_4$7)
24838
+ }, vue.toDisplayString(totalRatings.value), 9, _hoisted_4$8)
24789
24839
  ]);
24790
24840
  };
24791
24841
  }
24792
24842
  });
24793
24843
  const __default__ = {
24794
24844
  components: {
24795
- SearchResultsProductImage: _sfc_main$B,
24796
- SearchResultsProductTitle: _sfc_main$A,
24797
- SearchResultsProductDescription: _sfc_main$z,
24798
- SearchResultsProductRating: _sfc_main$y,
24799
- SearchResultsProductRegularPrice: _sfc_main$x,
24800
- SearchResultsProductPrice: _sfc_main$w,
24801
- SearchResultsProductAddToCart: _sfc_main$v,
24802
- SearchResultsProductCustom: _sfc_main$u,
24803
- SearchResultsProductCustomHtmlElement: _sfc_main$t,
24804
- SearchResultsProductSingleStarRating: _sfc_main$s
24805
- }
24806
- };
24807
- const _sfc_main$r = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, __default__), {
24845
+ SearchResultsProductImage: _sfc_main$D,
24846
+ SearchResultsProductTitle: _sfc_main$C,
24847
+ SearchResultsProductDescription: _sfc_main$B,
24848
+ SearchResultsProductRating: _sfc_main$A,
24849
+ SearchResultsProductRegularPrice: _sfc_main$z,
24850
+ SearchResultsProductPrice: _sfc_main$y,
24851
+ SearchResultsProductAddToCart: _sfc_main$x,
24852
+ SearchResultsProductCustom: _sfc_main$w,
24853
+ SearchResultsProductCustomHtmlElement: _sfc_main$v,
24854
+ SearchResultsProductSingleStarRating: _sfc_main$u
24855
+ }
24856
+ };
24857
+ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, __default__), {
24808
24858
  __name: "SearchResultsProductCardElement",
24809
24859
  props: {
24810
24860
  item: {},
@@ -24886,14 +24936,14 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadVa
24886
24936
  };
24887
24937
  }
24888
24938
  }));
24889
- const _hoisted_1$o = ["onMouseup"];
24890
- const _hoisted_2$j = ["href"];
24891
- const _hoisted_3$c = {
24939
+ const _hoisted_1$q = ["onMouseup"];
24940
+ const _hoisted_2$l = ["href"];
24941
+ const _hoisted_3$e = {
24892
24942
  key: 0,
24893
24943
  class: "lupa-out-of-stock"
24894
24944
  };
24895
- const _hoisted_4$6 = { class: "lupa-search-result-product-details-section" };
24896
- const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
24945
+ const _hoisted_4$7 = { class: "lupa-search-result-product-details-section" };
24946
+ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
24897
24947
  __name: "SearchResultsProductCard",
24898
24948
  props: {
24899
24949
  product: {},
@@ -25058,7 +25108,7 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
25058
25108
  onClick: handleClick,
25059
25109
  onMouseup: vue.withModifiers(handleClick, ["middle", "exact"])
25060
25110
  }), [
25061
- vue.createVNode(_sfc_main$17, { options: badgesOptions.value }, null, 8, ["options"]),
25111
+ vue.createVNode(_sfc_main$19, { options: badgesOptions.value }, null, 8, ["options"]),
25062
25112
  vue.createElementVNode("div", {
25063
25113
  class: vue.normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
25064
25114
  }, [
@@ -25068,7 +25118,7 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
25068
25118
  onClick: handleNavigation
25069
25119
  }, [
25070
25120
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(imageElements.value, (element) => {
25071
- return vue.openBlock(), vue.createBlock(_sfc_main$r, {
25121
+ return vue.openBlock(), vue.createBlock(_sfc_main$t, {
25072
25122
  class: "lupa-search-results-product-element",
25073
25123
  item: _ctx.product,
25074
25124
  element,
@@ -25079,16 +25129,16 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
25079
25129
  onProductEvent: handleProductEvent
25080
25130
  }, null, 8, ["item", "element", "labels", "inStock", "link"]);
25081
25131
  }), 128)),
25082
- vue.createVNode(_sfc_main$17, {
25132
+ vue.createVNode(_sfc_main$19, {
25083
25133
  options: badgesOptions.value,
25084
25134
  position: "image",
25085
25135
  class: "lupa-image-badges"
25086
25136
  }, null, 8, ["options"]),
25087
- ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$c, vue.toDisplayString(labels.value.outOfStock), 1)) : vue.createCommentVNode("", true)
25088
- ], 8, _hoisted_2$j),
25089
- vue.createElementVNode("div", _hoisted_4$6, [
25137
+ ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$e, vue.toDisplayString(labels.value.outOfStock), 1)) : vue.createCommentVNode("", true)
25138
+ ], 8, _hoisted_2$l),
25139
+ vue.createElementVNode("div", _hoisted_4$7, [
25090
25140
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(detailElements.value, (element) => {
25091
- return vue.openBlock(), vue.createBlock(_sfc_main$r, {
25141
+ return vue.openBlock(), vue.createBlock(_sfc_main$t, {
25092
25142
  class: "lupa-search-results-product-element",
25093
25143
  item: _ctx.product,
25094
25144
  element,
@@ -25106,7 +25156,7 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
25106
25156
  class: vue.normalizeClass("lupa-element-group-" + group)
25107
25157
  }, [
25108
25158
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(getGroupElements(group), (element) => {
25109
- return vue.openBlock(), vue.createBlock(_sfc_main$r, {
25159
+ return vue.openBlock(), vue.createBlock(_sfc_main$t, {
25110
25160
  class: "lupa-search-results-product-element",
25111
25161
  item: _ctx.product,
25112
25162
  element,
@@ -25120,27 +25170,27 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
25120
25170
  ], 2);
25121
25171
  }), 128))
25122
25172
  ], 2)
25123
- ], 16, _hoisted_1$o);
25173
+ ], 16, _hoisted_1$q);
25124
25174
  };
25125
25175
  }
25126
25176
  });
25127
- const _hoisted_1$n = {
25177
+ const _hoisted_1$p = {
25128
25178
  id: "lupa-search-results-similar-queries",
25129
25179
  "data-cy": "lupa-search-results-similar-queries"
25130
25180
  };
25131
- const _hoisted_2$i = { class: "lupa-similar-queries-label" };
25132
- const _hoisted_3$b = {
25181
+ const _hoisted_2$k = { class: "lupa-similar-queries-label" };
25182
+ const _hoisted_3$d = {
25133
25183
  class: "lupa-similar-query-label",
25134
25184
  "data-cy": "lupa-similar-query-label"
25135
25185
  };
25136
- const _hoisted_4$5 = ["onClick"];
25137
- const _hoisted_5$3 = ["innerHTML"];
25186
+ const _hoisted_4$6 = ["onClick"];
25187
+ const _hoisted_5$4 = ["innerHTML"];
25138
25188
  const _hoisted_6$2 = { key: 0 };
25139
25189
  const _hoisted_7$1 = {
25140
25190
  class: "lupa-products",
25141
25191
  "data-cy": "lupa-products"
25142
25192
  };
25143
- const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
25193
+ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
25144
25194
  __name: "SearchResultsSimilarQueries",
25145
25195
  props: {
25146
25196
  labels: {},
@@ -25178,11 +25228,11 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
25178
25228
  };
25179
25229
  };
25180
25230
  return (_ctx, _cache) => {
25181
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$n, [
25182
- vue.createElementVNode("div", _hoisted_2$i, vue.toDisplayString(_ctx.labels.similarQueries), 1),
25231
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$p, [
25232
+ vue.createElementVNode("div", _hoisted_2$k, vue.toDisplayString(_ctx.labels.similarQueries), 1),
25183
25233
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(similarQueries.value, (similarQuery, index) => {
25184
25234
  return vue.openBlock(), vue.createElementBlock("div", { key: index }, [
25185
- vue.createElementVNode("div", _hoisted_3$b, [
25235
+ vue.createElementVNode("div", _hoisted_3$d, [
25186
25236
  vue.createElementVNode("span", null, vue.toDisplayString(similarQueryLabel.value), 1),
25187
25237
  vue.createElementVNode("span", {
25188
25238
  id: "lupa-similar-query-text-component",
@@ -25192,13 +25242,13 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
25192
25242
  }, [
25193
25243
  vue.createElementVNode("span", {
25194
25244
  innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
25195
- }, null, 8, _hoisted_5$3),
25245
+ }, null, 8, _hoisted_5$4),
25196
25246
  similarQuery.count ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_6$2, " (" + vue.toDisplayString(similarQuery.count) + ")", 1)) : vue.createCommentVNode("", true)
25197
- ], 8, _hoisted_4$5)
25247
+ ], 8, _hoisted_4$6)
25198
25248
  ]),
25199
25249
  vue.createElementVNode("div", _hoisted_7$1, [
25200
25250
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(similarQuery.items, (product, index2) => {
25201
- return vue.openBlock(), vue.createBlock(_sfc_main$q, {
25251
+ return vue.openBlock(), vue.createBlock(_sfc_main$s, {
25202
25252
  style: vue.normalizeStyle(_ctx.columnSize),
25203
25253
  key: getDocumentKey(index2, product),
25204
25254
  product,
@@ -25213,15 +25263,15 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
25213
25263
  };
25214
25264
  }
25215
25265
  });
25216
- const _hoisted_1$m = {
25266
+ const _hoisted_1$o = {
25217
25267
  key: 0,
25218
25268
  class: "lupa-results-additional-panel"
25219
25269
  };
25220
- const _hoisted_2$h = {
25270
+ const _hoisted_2$j = {
25221
25271
  class: "lupa-results-additional-panel-items",
25222
25272
  "data-cy": "lupa-results-additional-panel-items"
25223
25273
  };
25224
- const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
25274
+ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
25225
25275
  __name: "AdditionalPanel",
25226
25276
  props: {
25227
25277
  panel: {},
@@ -25294,10 +25344,10 @@ const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
25294
25344
  handleQueryChange();
25295
25345
  });
25296
25346
  return (_ctx, _cache) => {
25297
- return hasResults.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$m, [
25298
- vue.createElementVNode("div", _hoisted_2$h, [
25347
+ return hasResults.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$o, [
25348
+ vue.createElementVNode("div", _hoisted_2$j, [
25299
25349
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(visibleItems.value, (item, index) => {
25300
- return vue.openBlock(), vue.createBlock(_sfc_main$q, {
25350
+ return vue.openBlock(), vue.createBlock(_sfc_main$s, {
25301
25351
  key: index,
25302
25352
  product: item,
25303
25353
  options: _ctx.panel,
@@ -25315,11 +25365,11 @@ const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
25315
25365
  };
25316
25366
  }
25317
25367
  });
25318
- const _hoisted_1$l = {
25368
+ const _hoisted_1$n = {
25319
25369
  key: 0,
25320
25370
  class: "lupa-results-additional-panels"
25321
25371
  };
25322
- const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
25372
+ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
25323
25373
  __name: "AdditionalPanels",
25324
25374
  props: {
25325
25375
  options: {},
@@ -25336,9 +25386,9 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
25336
25386
  return locationPanels.value.length > 0;
25337
25387
  });
25338
25388
  return (_ctx, _cache) => {
25339
- return isVisible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$l, [
25389
+ return isVisible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$n, [
25340
25390
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(locationPanels.value, (panel) => {
25341
- return vue.openBlock(), vue.createBlock(_sfc_main$o, {
25391
+ return vue.openBlock(), vue.createBlock(_sfc_main$q, {
25342
25392
  key: panel.queryKey,
25343
25393
  panel,
25344
25394
  options: _ctx.sdkOptions
@@ -25355,29 +25405,29 @@ const _export_sfc = (sfc, props) => {
25355
25405
  }
25356
25406
  return target;
25357
25407
  };
25358
- const _sfc_main$m = {};
25359
- const _hoisted_1$k = { class: "lupa-spinner-wrapper" };
25360
- const _hoisted_2$g = { class: "lupa-spinner" };
25408
+ const _sfc_main$o = {};
25409
+ const _hoisted_1$m = { class: "lupa-spinner-wrapper" };
25410
+ const _hoisted_2$i = { class: "lupa-spinner" };
25361
25411
  function _sfc_render(_ctx, _cache) {
25362
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$k, [
25363
- vue.createElementVNode("div", _hoisted_2$g, [
25412
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$m, [
25413
+ vue.createElementVNode("div", _hoisted_2$i, [
25364
25414
  (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, vue.renderList(12, (x2) => {
25365
25415
  return vue.createElementVNode("div", { key: x2 });
25366
25416
  }), 64))
25367
25417
  ])
25368
25418
  ]);
25369
25419
  }
25370
- const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render]]);
25371
- const _hoisted_1$j = {
25420
+ const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render]]);
25421
+ const _hoisted_1$l = {
25372
25422
  id: "lupa-search-results-similar-results",
25373
25423
  "data-cy": "lupa-search-results-similar-results"
25374
25424
  };
25375
- const _hoisted_2$f = { class: "lupa-similar-results-label" };
25376
- const _hoisted_3$a = {
25425
+ const _hoisted_2$h = { class: "lupa-similar-results-label" };
25426
+ const _hoisted_3$c = {
25377
25427
  class: "lupa-products",
25378
25428
  "data-cy": "lupa-products"
25379
25429
  };
25380
- const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
25430
+ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
25381
25431
  __name: "SearchResultsSimilarResults",
25382
25432
  props: {
25383
25433
  columnSize: {},
@@ -25398,11 +25448,11 @@ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
25398
25448
  };
25399
25449
  });
25400
25450
  return (_ctx, _cache) => {
25401
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$j, [
25402
- vue.createElementVNode("div", _hoisted_2$f, vue.toDisplayString(_ctx.labels.similarResultsLabel), 1),
25403
- vue.createElementVNode("div", _hoisted_3$a, [
25451
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$l, [
25452
+ vue.createElementVNode("div", _hoisted_2$h, vue.toDisplayString(_ctx.labels.similarResultsLabel), 1),
25453
+ vue.createElementVNode("div", _hoisted_3$c, [
25404
25454
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(similarResults.value.items, (product, index) => {
25405
- return vue.openBlock(), vue.createBlock(_sfc_main$q, {
25455
+ return vue.openBlock(), vue.createBlock(_sfc_main$s, {
25406
25456
  style: vue.normalizeStyle(_ctx.columnSize),
25407
25457
  key: getDocumentKey(index, product),
25408
25458
  product,
@@ -25515,20 +25565,23 @@ const extractFacetsRelatedSourceFromOriginalQuery = (source, searchResults) => _
25515
25565
  return [];
25516
25566
  });
25517
25567
  const extractRelatedSource = (source, searchResults, options, activeFilters) => __async(exports, null, function* () {
25568
+ if (!source) {
25569
+ return [];
25570
+ }
25518
25571
  switch (source.type) {
25519
25572
  case RelatedQuerySourceType.FACETS:
25520
25573
  return extractFacetsRelatedSource(source, searchResults, options, activeFilters);
25521
25574
  }
25522
25575
  });
25523
- const _hoisted_1$i = { class: "lupa-related-query-item" };
25524
- const _hoisted_2$e = { class: "lupa-related-query-image" };
25525
- const _hoisted_3$9 = { class: "lupa-related-query-label" };
25526
- const _hoisted_4$4 = { class: "lupa-related-query-title" };
25527
- const _hoisted_5$2 = {
25576
+ const _hoisted_1$k = { class: "lupa-related-query-item" };
25577
+ const _hoisted_2$g = { class: "lupa-related-query-image" };
25578
+ const _hoisted_3$b = { class: "lupa-related-query-label" };
25579
+ const _hoisted_4$5 = { class: "lupa-related-query-title" };
25580
+ const _hoisted_5$3 = {
25528
25581
  key: 0,
25529
25582
  class: "lupa-related-query-count"
25530
25583
  };
25531
- const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
25584
+ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
25532
25585
  __name: "RelatedQueryPanel",
25533
25586
  props: {
25534
25587
  query: {},
@@ -25623,9 +25676,9 @@ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
25623
25676
  });
25624
25677
  return (_ctx, _cache) => {
25625
25678
  var _a;
25626
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$i, [
25627
- vue.createElementVNode("div", _hoisted_2$e, [
25628
- itemToDisplay.value && image.value ? (vue.openBlock(), vue.createBlock(_sfc_main$1n, {
25679
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$k, [
25680
+ vue.createElementVNode("div", _hoisted_2$g, [
25681
+ itemToDisplay.value && image.value ? (vue.openBlock(), vue.createBlock(_sfc_main$1p, {
25629
25682
  key: 0,
25630
25683
  "wrapper-class": "lupa-related-query-image-wrapper",
25631
25684
  "image-class": "lupa-related-query-image",
@@ -25633,24 +25686,24 @@ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
25633
25686
  options: image.value
25634
25687
  }, null, 8, ["item", "options"])) : vue.createCommentVNode("", true)
25635
25688
  ]),
25636
- vue.createElementVNode("div", _hoisted_3$9, [
25637
- vue.createElementVNode("span", _hoisted_4$4, vue.toDisplayString(_ctx.query), 1),
25638
- ((_a = _ctx.options) == null ? void 0 : _a.showCount) ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_5$2, "(" + vue.toDisplayString(totalItemCount.value) + ")", 1)) : vue.createCommentVNode("", true)
25689
+ vue.createElementVNode("div", _hoisted_3$b, [
25690
+ vue.createElementVNode("span", _hoisted_4$5, vue.toDisplayString(_ctx.query), 1),
25691
+ ((_a = _ctx.options) == null ? void 0 : _a.showCount) ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_5$3, "(" + vue.toDisplayString(totalItemCount.value) + ")", 1)) : vue.createCommentVNode("", true)
25639
25692
  ])
25640
25693
  ]);
25641
25694
  };
25642
25695
  }
25643
25696
  });
25644
- const _hoisted_1$h = {
25697
+ const _hoisted_1$j = {
25645
25698
  key: 0,
25646
25699
  class: "lupa-related-queries"
25647
25700
  };
25648
- const _hoisted_2$d = {
25701
+ const _hoisted_2$f = {
25649
25702
  key: 0,
25650
25703
  class: "lupa-related-queries-title"
25651
25704
  };
25652
- const _hoisted_3$8 = ["onClick"];
25653
- const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
25705
+ const _hoisted_3$a = ["onClick"];
25706
+ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
25654
25707
  __name: "RelatedQueries",
25655
25708
  props: {
25656
25709
  options: {}
@@ -25662,7 +25715,7 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
25662
25715
  const optionsStore = useOptionsStore();
25663
25716
  const { searchResult, lastResultsSource } = storeToRefs(searchResultStore);
25664
25717
  const { searchResultOptions } = storeToRefs(optionsStore);
25665
- const relatedQueries = vue.ref([]);
25718
+ const relatedQueries2 = vue.ref([]);
25666
25719
  const allDisplayItems = vue.ref({});
25667
25720
  const querySourceResultMap = vue.ref({});
25668
25721
  const currentSearchText = vue.computed(() => {
@@ -25685,27 +25738,31 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
25685
25738
  }
25686
25739
  return filters;
25687
25740
  });
25688
- vue.watch(searchResult, () => __async(this, null, function* () {
25689
- var _a;
25690
- allDisplayItems.value = {};
25691
- querySourceResultMap.value = {};
25692
- if (((_a = searchResult.value) == null ? void 0 : _a.searchText) === void 0 || lastResultsSource.value !== "items") {
25693
- return;
25694
- }
25695
- if (!props.options || !searchResult.value) {
25696
- relatedQueries.value = [];
25697
- }
25698
- const queries = yield extractRelatedSource(
25699
- props.options.source,
25700
- searchResult.value,
25701
- searchResultOptions.value.options,
25702
- currentFiltersWithoutQuerySources.value
25703
- );
25704
- relatedQueries.value = queries;
25705
- }));
25741
+ vue.watch(
25742
+ searchResult,
25743
+ () => __async(this, null, function* () {
25744
+ var _a;
25745
+ allDisplayItems.value = {};
25746
+ querySourceResultMap.value = {};
25747
+ if (((_a = searchResult.value) == null ? void 0 : _a.searchText) === void 0 || lastResultsSource.value !== "items") {
25748
+ return;
25749
+ }
25750
+ if (!props.options || !searchResult.value) {
25751
+ relatedQueries2.value = [];
25752
+ }
25753
+ const queries = yield extractRelatedSource(
25754
+ props.options.source,
25755
+ searchResult.value,
25756
+ searchResultOptions.value.options,
25757
+ currentFiltersWithoutQuerySources.value
25758
+ );
25759
+ relatedQueries2.value = queries;
25760
+ }),
25761
+ { immediate: true }
25762
+ );
25706
25763
  const hasEnoughRelatedQueries = vue.computed(() => {
25707
25764
  var _a;
25708
- return ((_a = relatedQueries.value) == null ? void 0 : _a.length) > 1;
25765
+ return ((_a = relatedQueries2.value) == null ? void 0 : _a.length) > 1;
25709
25766
  });
25710
25767
  const handleRelatedQueryClick = (query) => {
25711
25768
  var _a;
@@ -25740,10 +25797,10 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
25740
25797
  };
25741
25798
  return (_ctx, _cache) => {
25742
25799
  var _a, _b, _c, _d;
25743
- return _ctx.options && hasEnoughRelatedQueries.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$h, [
25744
- ((_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) ? (vue.openBlock(), vue.createElementBlock("h3", _hoisted_2$d, vue.toDisplayString((_d = (_c = _ctx.options) == null ? void 0 : _c.labels) == null ? void 0 : _d.title), 1)) : vue.createCommentVNode("", true),
25800
+ return _ctx.options && hasEnoughRelatedQueries.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$j, [
25801
+ ((_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) ? (vue.openBlock(), vue.createElementBlock("h3", _hoisted_2$f, vue.toDisplayString((_d = (_c = _ctx.options) == null ? void 0 : _c.labels) == null ? void 0 : _d.title), 1)) : vue.createCommentVNode("", true),
25745
25802
  vue.createElementVNode("ul", null, [
25746
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(relatedQueries.value, (query) => {
25803
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(relatedQueries2.value, (query) => {
25747
25804
  return vue.withDirectives((vue.openBlock(), vue.createElementBlock("li", {
25748
25805
  key: query.value + query.key + currentSearchText.value,
25749
25806
  class: vue.normalizeClass(getSelectedFilterClass(query))
@@ -25751,14 +25808,14 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
25751
25808
  vue.createElementVNode("a", {
25752
25809
  onClick: ($event) => handleRelatedQueryClick(query)
25753
25810
  }, [
25754
- vue.createVNode(_sfc_main$k, {
25811
+ vue.createVNode(_sfc_main$m, {
25755
25812
  "source-key": query.key,
25756
25813
  options: _ctx.options,
25757
25814
  query: query.value,
25758
25815
  "existing-items-from-other-queries": allDisplayItems.value,
25759
25816
  onLoaded: (item) => processLoadedItem(query, item)
25760
25817
  }, null, 8, ["source-key", "options", "query", "existing-items-from-other-queries", "onLoaded"])
25761
- ], 8, _hoisted_3$8)
25818
+ ], 8, _hoisted_3$a)
25762
25819
  ], 2)), [
25763
25820
  [vue.vShow, querySourceResultMap.value[query.value] !== false]
25764
25821
  ]);
@@ -25795,13 +25852,13 @@ const extractRedirectionSuggestion = (searchText = "", options) => {
25795
25852
  }
25796
25853
  return null;
25797
25854
  };
25798
- const _hoisted_1$g = {
25855
+ const _hoisted_1$i = {
25799
25856
  key: 0,
25800
25857
  class: "lupa-redirection-suggestion"
25801
25858
  };
25802
- const _hoisted_2$c = { class: "lupa-redirections-suggestion-label" };
25803
- const _hoisted_3$7 = ["href"];
25804
- const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
25859
+ const _hoisted_2$e = { class: "lupa-redirections-suggestion-label" };
25860
+ const _hoisted_3$9 = ["href"];
25861
+ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
25805
25862
  __name: "RedirectionSuggestions",
25806
25863
  props: {
25807
25864
  options: {}
@@ -25824,19 +25881,19 @@ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
25824
25881
  )
25825
25882
  );
25826
25883
  return (_ctx, _cache) => {
25827
- return redirectionSuggestion.value && label.value && link.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$g, [
25828
- vue.createElementVNode("h4", _hoisted_2$c, [
25829
- vue.createElementVNode("a", { href: link.value }, vue.toDisplayString(label.value), 9, _hoisted_3$7)
25884
+ return redirectionSuggestion.value && label.value && link.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$i, [
25885
+ vue.createElementVNode("h4", _hoisted_2$e, [
25886
+ vue.createElementVNode("a", { href: link.value }, vue.toDisplayString(label.value), 9, _hoisted_3$9)
25830
25887
  ])
25831
25888
  ])) : vue.createCommentVNode("", true);
25832
25889
  };
25833
25890
  }
25834
25891
  });
25835
- const _hoisted_1$f = {
25892
+ const _hoisted_1$h = {
25836
25893
  key: 0,
25837
25894
  class: "lupa-refiners-loading-notice"
25838
25895
  };
25839
- const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
25896
+ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
25840
25897
  __name: "RefinersLoadingNotice",
25841
25898
  props: {
25842
25899
  labels: {}
@@ -25847,13 +25904,155 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
25847
25904
  const { loadingRefiners } = storeToRefs(searchResultStore);
25848
25905
  const label = vue.computed(() => props.labels.refinersLoadingNotice);
25849
25906
  return (_ctx, _cache) => {
25850
- return label.value && vue.unref(loadingRefiners) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$f, [
25907
+ return label.value && vue.unref(loadingRefiners) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$h, [
25851
25908
  vue.createElementVNode("p", null, vue.toDisplayString(label.value), 1),
25852
25909
  vue.createVNode(Spinner)
25853
25910
  ])) : vue.createCommentVNode("", true);
25854
25911
  };
25855
25912
  }
25856
25913
  });
25914
+ const _hoisted_1$g = { class: "lupa-related-query-item" };
25915
+ const _hoisted_2$d = { class: "lupa-related-query-image" };
25916
+ const _hoisted_3$8 = { class: "lupa-related-query-label" };
25917
+ const _hoisted_4$4 = { class: "lupa-related-query-title" };
25918
+ const _hoisted_5$2 = {
25919
+ key: 0,
25920
+ class: "lupa-related-query-count"
25921
+ };
25922
+ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
25923
+ __name: "RelatedQueryPanelApi",
25924
+ props: {
25925
+ relatedQuery: {},
25926
+ options: {}
25927
+ },
25928
+ setup(__props) {
25929
+ const props = __props;
25930
+ const itemToDisplay = vue.computed(() => {
25931
+ var _a;
25932
+ return (_a = props.relatedQuery.topItems) == null ? void 0 : _a[0];
25933
+ });
25934
+ const optionsStore = useOptionsStore();
25935
+ const { searchResultOptions } = storeToRefs(optionsStore);
25936
+ const mainImage = vue.computed(() => {
25937
+ var _a, _b, _c;
25938
+ return (_c = (_b = (_a = searchResultOptions.value) == null ? void 0 : _a.elements) == null ? void 0 : _b.find((e2) => e2.type === DocumentElementType.IMAGE)) != null ? _c : "";
25939
+ });
25940
+ const image = vue.computed(() => {
25941
+ var _a, _b, _c;
25942
+ return (_c = (_b = (_a = props.options) == null ? void 0 : _a.image) != null ? _b : mainImage == null ? void 0 : mainImage.value) != null ? _c : "";
25943
+ });
25944
+ const query = vue.computed(() => {
25945
+ var _a;
25946
+ return props.relatedQuery.action === "FILTER" ? props.relatedQuery.filterValue : (_a = props.relatedQuery.query) != null ? _a : "";
25947
+ });
25948
+ const totalItemCount = vue.computed(() => {
25949
+ var _a;
25950
+ return (_a = props.relatedQuery.total) != null ? _a : 0;
25951
+ });
25952
+ return (_ctx, _cache) => {
25953
+ var _a;
25954
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$g, [
25955
+ vue.createElementVNode("div", _hoisted_2$d, [
25956
+ itemToDisplay.value && image.value ? (vue.openBlock(), vue.createBlock(_sfc_main$1p, {
25957
+ key: 0,
25958
+ "wrapper-class": "lupa-related-query-image-wrapper",
25959
+ "image-class": "lupa-related-query-image",
25960
+ item: itemToDisplay.value,
25961
+ options: image.value
25962
+ }, null, 8, ["item", "options"])) : vue.createCommentVNode("", true)
25963
+ ]),
25964
+ vue.createElementVNode("div", _hoisted_3$8, [
25965
+ vue.createElementVNode("span", _hoisted_4$4, vue.toDisplayString(query.value), 1),
25966
+ ((_a = _ctx.options) == null ? void 0 : _a.showCount) ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_5$2, "(" + vue.toDisplayString(totalItemCount.value) + ")", 1)) : vue.createCommentVNode("", true)
25967
+ ])
25968
+ ]);
25969
+ };
25970
+ }
25971
+ });
25972
+ const _hoisted_1$f = {
25973
+ key: 0,
25974
+ class: "lupa-related-queries"
25975
+ };
25976
+ const _hoisted_2$c = {
25977
+ key: 0,
25978
+ class: "lupa-related-queries-title"
25979
+ };
25980
+ const _hoisted_3$7 = ["onClick"];
25981
+ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
25982
+ __name: "RelatedQueriesApi",
25983
+ props: {
25984
+ options: {}
25985
+ },
25986
+ setup(__props) {
25987
+ const props = __props;
25988
+ const searchResultStore = useSearchResultStore();
25989
+ const paramsStore = useParamsStore();
25990
+ const optionsStore = useOptionsStore();
25991
+ const { searchResult, relatedQueriesResult } = storeToRefs(searchResultStore);
25992
+ const relatedQueries2 = vue.computed(() => {
25993
+ var _a, _b, _c, _d;
25994
+ const allQueries = (_b = (_a = relatedQueriesResult.value) == null ? void 0 : _a.relatedQueries) != null ? _b : [];
25995
+ return ((_d = (_c = props.options) == null ? void 0 : _c.source) == null ? void 0 : _d.count) ? allQueries.slice(0, props.options.source.count) : allQueries;
25996
+ });
25997
+ const currentSearchText = vue.computed(() => {
25998
+ var _a, _b;
25999
+ return (_b = (_a = searchResult.value) == null ? void 0 : _a.searchText) != null ? _b : "";
26000
+ });
26001
+ const hasEnoughRelatedQueries = vue.computed(() => {
26002
+ var _a;
26003
+ return ((_a = relatedQueries2.value) == null ? void 0 : _a.length) > 1;
26004
+ });
26005
+ const handleRelatedQueryClick = (relatedQuery) => {
26006
+ if (relatedQuery.action === "FILTER") {
26007
+ handleFilter({ key: relatedQuery.facetKey, value: relatedQuery.filterValue });
26008
+ } else {
26009
+ paramsStore.goToResults({ searchText: relatedQuery.query });
26010
+ }
26011
+ };
26012
+ const handleFilter = (query) => {
26013
+ var _a;
26014
+ toggleTermFilter(
26015
+ paramsStore.appendParams,
26016
+ { type: "terms", key: query.key, value: query.value },
26017
+ optionsStore.getQueryParamName,
26018
+ {},
26019
+ (_a = relatedQueries2.value) == null ? void 0 : _a.map((q) => `f.${q.facetKey}`)
26020
+ );
26021
+ };
26022
+ const getSelectedFilterClass = (relatedQuery) => {
26023
+ var _a, _b, _c, _d, _e;
26024
+ if (relatedQuery.action !== "FILTER") {
26025
+ return "";
26026
+ }
26027
+ return Array.isArray((_b = (_a = searchResult.value) == null ? void 0 : _a.filters) == null ? void 0 : _b[relatedQuery.facetKey]) && ((_e = (_d = (_c = searchResult.value) == null ? void 0 : _c.filters) == null ? void 0 : _d[relatedQuery.facetKey]) == null ? void 0 : _e.includes(
26028
+ relatedQuery.filterValue
26029
+ )) ? "lupa-selected-related-query-filter" : "";
26030
+ };
26031
+ return (_ctx, _cache) => {
26032
+ var _a, _b, _c, _d;
26033
+ return hasEnoughRelatedQueries.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$f, [
26034
+ ((_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) ? (vue.openBlock(), vue.createElementBlock("h3", _hoisted_2$c, vue.toDisplayString((_d = (_c = _ctx.options) == null ? void 0 : _c.labels) == null ? void 0 : _d.title), 1)) : vue.createCommentVNode("", true),
26035
+ vue.createElementVNode("ul", null, [
26036
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(relatedQueries2.value, (query) => {
26037
+ return vue.openBlock(), vue.createElementBlock("li", {
26038
+ key: query.query + query.facetKey + query.filterValue + currentSearchText.value,
26039
+ class: vue.normalizeClass(getSelectedFilterClass(query))
26040
+ }, [
26041
+ vue.createElementVNode("a", {
26042
+ onClick: ($event) => handleRelatedQueryClick(query)
26043
+ }, [
26044
+ vue.createVNode(_sfc_main$i, {
26045
+ relatedQuery: query,
26046
+ options: _ctx.options
26047
+ }, null, 8, ["relatedQuery", "options"])
26048
+ ], 8, _hoisted_3$7)
26049
+ ], 2);
26050
+ }), 128))
26051
+ ])
26052
+ ])) : vue.createCommentVNode("", true);
26053
+ };
26054
+ }
26055
+ });
25857
26056
  const _hoisted_1$e = { id: "lupa-search-results-products" };
25858
26057
  const _hoisted_2$b = {
25859
26058
  class: "lupa-products",
@@ -25865,12 +26064,12 @@ const _hoisted_3$6 = {
25865
26064
  "data-cy": "lupa-no-results-in-page"
25866
26065
  };
25867
26066
  const _hoisted_4$3 = {
25868
- key: 4,
26067
+ key: 5,
25869
26068
  class: "lupa-empty-results",
25870
26069
  "data-cy": "lupa-no-results"
25871
26070
  };
25872
- const _hoisted_5$1 = { key: 5 };
25873
- const _hoisted_6$1 = { key: 6 };
26071
+ const _hoisted_5$1 = { key: 6 };
26072
+ const _hoisted_6$1 = { key: 7 };
25874
26073
  const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
25875
26074
  __name: "SearchResultsProducts",
25876
26075
  props: {
@@ -25891,7 +26090,8 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
25891
26090
  columnCount,
25892
26091
  searchResult,
25893
26092
  layout,
25894
- loading
26093
+ loading,
26094
+ relatedQueriesApiEnabled
25895
26095
  } = storeToRefs(searchResultStore);
25896
26096
  const productCardOptions = vue.computed(() => {
25897
26097
  return pick(props.options, [
@@ -25972,6 +26172,13 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
25972
26172
  _lupaUpdatedQuery: searchResult.value.suggestedSearchText
25973
26173
  } : void 0;
25974
26174
  });
26175
+ const showLocalRelatedQueries = vue.computed(() => {
26176
+ var _a;
26177
+ return Boolean(((_a = props.options.relatedQueries) == null ? void 0 : _a.source) && relatedQueriesApiEnabled.value === false);
26178
+ });
26179
+ const showApiRelatedQueries = vue.computed(() => {
26180
+ return Boolean(relatedQueriesApiEnabled.value === true) && Boolean(props.options.relatedQueries);
26181
+ });
25975
26182
  const getProductKeyAction = (index, product) => {
25976
26183
  return getProductKey(`${index}`, product, props.options.idKey);
25977
26184
  };
@@ -25990,31 +26197,35 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
25990
26197
  key: 0,
25991
26198
  class: "lupa-loader"
25992
26199
  })) : vue.createCommentVNode("", true),
25993
- vue.createVNode(_sfc_main$i, {
26200
+ vue.createVNode(_sfc_main$k, {
25994
26201
  options: _ctx.options.redirectionSuggestions
25995
26202
  }, null, 8, ["options"]),
25996
- vue.createVNode(_sfc_main$n, {
26203
+ vue.createVNode(_sfc_main$p, {
25997
26204
  options: _ctx.options,
25998
26205
  location: "top",
25999
26206
  sdkOptions: _ctx.options.options
26000
26207
  }, null, 8, ["options", "sdkOptions"]),
26001
- _ctx.options.relatedQueries ? (vue.openBlock(), vue.createBlock(_sfc_main$j, {
26208
+ showLocalRelatedQueries.value ? (vue.openBlock(), vue.createBlock(_sfc_main$l, {
26002
26209
  key: 1,
26003
26210
  options: _ctx.options.relatedQueries
26004
26211
  }, null, 8, ["options"])) : vue.createCommentVNode("", true),
26005
- vue.unref(hasResults) ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
26006
- showTopFilters.value ? (vue.openBlock(), vue.createBlock(_sfc_main$J, {
26212
+ showApiRelatedQueries.value ? (vue.openBlock(), vue.createBlock(_sfc_main$h, {
26213
+ key: 2,
26214
+ options: _ctx.options.relatedQueries
26215
+ }, null, 8, ["options"])) : vue.createCommentVNode("", true),
26216
+ vue.unref(hasResults) ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 3 }, [
26217
+ showTopFilters.value ? (vue.openBlock(), vue.createBlock(_sfc_main$L, {
26007
26218
  key: 0,
26008
26219
  options: (_a = _ctx.options.filters) != null ? _a : {}
26009
26220
  }, null, 8, ["options"])) : vue.createCommentVNode("", true),
26010
- showMobileFilters.value ? (vue.openBlock(), vue.createBlock(_sfc_main$C, {
26221
+ showMobileFilters.value ? (vue.openBlock(), vue.createBlock(_sfc_main$E, {
26011
26222
  key: 1,
26012
26223
  class: "lupa-toolbar-mobile",
26013
26224
  options: _ctx.options,
26014
26225
  "pagination-location": "top",
26015
26226
  onFilter: filter2
26016
26227
  }, null, 8, ["options"])) : vue.createCommentVNode("", true),
26017
- currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (vue.openBlock(), vue.createBlock(_sfc_main$X, {
26228
+ currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (vue.openBlock(), vue.createBlock(_sfc_main$Z, {
26018
26229
  key: 2,
26019
26230
  class: vue.normalizeClass(currentFiltersClass.value),
26020
26231
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -26022,13 +26233,13 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
26022
26233
  expandable: !desktopFiltersExpanded.value
26023
26234
  }, null, 8, ["class", "options", "expandable"])) : vue.createCommentVNode("", true)
26024
26235
  ], 64)) : vue.createCommentVNode("", true),
26025
- vue.unref(hasResults) ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 3 }, [
26026
- vue.createVNode(_sfc_main$C, {
26236
+ vue.unref(hasResults) ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 4 }, [
26237
+ vue.createVNode(_sfc_main$E, {
26027
26238
  class: "lupa-toolbar-top",
26028
26239
  options: _ctx.options,
26029
26240
  "pagination-location": "top"
26030
26241
  }, null, 8, ["options"]),
26031
- currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (vue.openBlock(), vue.createBlock(_sfc_main$X, {
26242
+ currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (vue.openBlock(), vue.createBlock(_sfc_main$Z, {
26032
26243
  key: 0,
26033
26244
  class: vue.normalizeClass(currentFiltersClass.value),
26034
26245
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -26044,7 +26255,7 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
26044
26255
  options: productCardOptions.value
26045
26256
  });
26046
26257
  }), 128)) : (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 1 }, vue.renderList(vue.unref(searchResult).items, (product, index) => {
26047
- return vue.openBlock(), vue.createBlock(_sfc_main$q, {
26258
+ return vue.openBlock(), vue.createBlock(_sfc_main$s, {
26048
26259
  style: vue.normalizeStyle(columnSize.value),
26049
26260
  key: getProductKeyAction(index, product),
26050
26261
  product,
@@ -26061,12 +26272,12 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
26061
26272
  onClick: goToFirstPage
26062
26273
  }, vue.toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : vue.createCommentVNode("", true)
26063
26274
  ])) : vue.createCommentVNode("", true),
26064
- vue.createVNode(_sfc_main$C, {
26275
+ vue.createVNode(_sfc_main$E, {
26065
26276
  class: "lupa-toolbar-bottom",
26066
26277
  options: _ctx.options,
26067
26278
  "pagination-location": "bottom"
26068
26279
  }, null, 8, ["options"]),
26069
- vue.createVNode(_sfc_main$n, {
26280
+ vue.createVNode(_sfc_main$p, {
26070
26281
  options: _ctx.options,
26071
26282
  location: "bottom",
26072
26283
  sdkOptions: _ctx.options.options
@@ -26075,18 +26286,18 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
26075
26286
  vue.createTextVNode(vue.toDisplayString(_ctx.options.labels.emptyResults) + " ", 1),
26076
26287
  vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(currentQueryText)), 1)
26077
26288
  ])) : vue.createCommentVNode("", true),
26078
- vue.createVNode(_sfc_main$h, {
26289
+ vue.createVNode(_sfc_main$j, {
26079
26290
  labels: _ctx.options.labels
26080
26291
  }, null, 8, ["labels"]),
26081
26292
  hasSimilarQueries.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$1, [
26082
- vue.createVNode(_sfc_main$p, {
26293
+ vue.createVNode(_sfc_main$r, {
26083
26294
  labels: similarQueriesLabels.value,
26084
26295
  columnSize: columnSize.value,
26085
26296
  productCardOptions: productCardOptions.value
26086
26297
  }, null, 8, ["labels", "columnSize", "productCardOptions"])
26087
26298
  ])) : vue.createCommentVNode("", true),
26088
26299
  hasSimilarResults.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$1, [
26089
- vue.createVNode(_sfc_main$l, {
26300
+ vue.createVNode(_sfc_main$n, {
26090
26301
  labels: similarResultsLabels.value,
26091
26302
  columnSize: columnSize.value,
26092
26303
  productCardOptions: productCardOptions.value
@@ -26165,14 +26376,14 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
26165
26376
  ])) : vue.createCommentVNode("", true),
26166
26377
  hasRelatedCategoryChildren.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$2, [
26167
26378
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(relatedCategoryChildren), (child) => {
26168
- return vue.openBlock(), vue.createBlock(_sfc_main$W, {
26379
+ return vue.openBlock(), vue.createBlock(_sfc_main$Y, {
26169
26380
  key: getCategoryKey(child),
26170
26381
  item: child,
26171
26382
  options: categoryOptions.value
26172
26383
  }, null, 8, ["item", "options"]);
26173
26384
  }), 128))
26174
26385
  ])) : vue.createCommentVNode("", true),
26175
- vue.createVNode(_sfc_main$C, {
26386
+ vue.createVNode(_sfc_main$E, {
26176
26387
  class: "lupa-toolbar-mobile",
26177
26388
  "pagination-location": "top",
26178
26389
  options: _ctx.options
@@ -26325,14 +26536,23 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
26325
26536
  return;
26326
26537
  }
26327
26538
  LupaSearchSdk.query(props.options.queryKey, query2, props.options.options).then((res) => {
26328
- var _a, _b;
26539
+ var _a, _b, _c;
26329
26540
  if (res.success) {
26330
26541
  handleResults({ queryKey: props.options.queryKey, results: res });
26331
26542
  searchResultStore.add(requestId, __spreadValues({}, res));
26543
+ searchResultStore.setRelatedQueriesApiEnabled((_a = res.hasRelatedQueries) != null ? _a : false);
26544
+ if (res.hasRelatedQueries) {
26545
+ searchResultStore.queryRelatedQueries(
26546
+ props.options.queryKey,
26547
+ publicQuery,
26548
+ res,
26549
+ props.options.options
26550
+ );
26551
+ }
26332
26552
  if (props.options.splitExpensiveRequests && res.refinementThreshold >= res.total) {
26333
26553
  queryRefiners(requestId, publicQuery);
26334
26554
  }
26335
- } else if ((_b = (_a = props.options) == null ? void 0 : _a.options) == null ? void 0 : _b.onError) {
26555
+ } else if ((_c = (_b = props.options) == null ? void 0 : _b.options) == null ? void 0 : _c.onError) {
26336
26556
  props.options.options.onError(res);
26337
26557
  }
26338
26558
  }).catch((err) => {
@@ -26471,8 +26691,8 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
26471
26691
  class: vue.normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !vue.unref(hasResults) }])
26472
26692
  }, [
26473
26693
  _ctx.isContainer ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$c, [
26474
- vue.createVNode(_sfc_main$$, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
26475
- vue.createVNode(_sfc_main$Z, {
26694
+ vue.createVNode(_sfc_main$11, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
26695
+ vue.createVNode(_sfc_main$$, {
26476
26696
  "show-summary": true,
26477
26697
  options: _ctx.options,
26478
26698
  "is-product-list": (_a = _ctx.isProductList) != null ? _a : false
@@ -26482,12 +26702,12 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
26482
26702
  key: 1,
26483
26703
  options: _ctx.options
26484
26704
  }, null, 8, ["options"])) : vue.createCommentVNode("", true),
26485
- _ctx.options.filters ? (vue.openBlock(), vue.createBlock(_sfc_main$L, {
26705
+ _ctx.options.filters ? (vue.openBlock(), vue.createBlock(_sfc_main$N, {
26486
26706
  key: 2,
26487
26707
  options: _ctx.options.filters,
26488
26708
  onFilter: handleParamsChange
26489
26709
  }, null, 8, ["options"])) : vue.createCommentVNode("", true),
26490
- vue.unref(currentQueryText) || _ctx.isProductList ? (vue.openBlock(), vue.createBlock(_sfc_main$K, {
26710
+ vue.unref(currentQueryText) || _ctx.isProductList ? (vue.openBlock(), vue.createBlock(_sfc_main$M, {
26491
26711
  key: 3,
26492
26712
  breadcrumbs: _ctx.options.breadcrumbs
26493
26713
  }, null, 8, ["breadcrumbs"])) : vue.createCommentVNode("", true),
@@ -26496,7 +26716,7 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
26496
26716
  id: "lupa-search-results",
26497
26717
  class: vue.normalizeClass(["top-layout-wrapper", indicatorClasses.value])
26498
26718
  }, [
26499
- showFilterSidebar.value ? (vue.openBlock(), vue.createBlock(_sfc_main$M, {
26719
+ showFilterSidebar.value ? (vue.openBlock(), vue.createBlock(_sfc_main$O, {
26500
26720
  key: 0,
26501
26721
  options: (_b = _ctx.options.filters) != null ? _b : {},
26502
26722
  ref_key: "searchResultsFilters",
@@ -26504,8 +26724,8 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
26504
26724
  onFilter: handleParamsChange
26505
26725
  }, null, 8, ["options"])) : vue.createCommentVNode("", true),
26506
26726
  vue.createElementVNode("div", _hoisted_2$9, [
26507
- vue.createVNode(_sfc_main$$, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
26508
- vue.createVNode(_sfc_main$Z, {
26727
+ vue.createVNode(_sfc_main$11, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
26728
+ vue.createVNode(_sfc_main$$, {
26509
26729
  options: _ctx.options,
26510
26730
  "is-product-list": (_c = _ctx.isProductList) != null ? _c : false
26511
26731
  }, null, 8, ["options", "is-product-list"]),
@@ -26521,8 +26741,8 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
26521
26741
  }, 8, ["options", "ssr"])
26522
26742
  ])
26523
26743
  ], 2)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 5 }, [
26524
- vue.createVNode(_sfc_main$$, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
26525
- vue.createVNode(_sfc_main$Z, {
26744
+ vue.createVNode(_sfc_main$11, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
26745
+ vue.createVNode(_sfc_main$$, {
26526
26746
  options: _ctx.options,
26527
26747
  "is-product-list": (_d = _ctx.isProductList) != null ? _d : false
26528
26748
  }, null, 8, ["options", "is-product-list"]),
@@ -26530,7 +26750,7 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
26530
26750
  id: "lupa-search-results",
26531
26751
  class: vue.normalizeClass(indicatorClasses.value)
26532
26752
  }, [
26533
- showFilterSidebar.value ? (vue.openBlock(), vue.createBlock(_sfc_main$M, {
26753
+ showFilterSidebar.value ? (vue.openBlock(), vue.createBlock(_sfc_main$O, {
26534
26754
  key: 0,
26535
26755
  options: (_e = _ctx.options.filters) != null ? _e : {},
26536
26756
  ref_key: "searchResultsFilters",
@@ -26682,7 +26902,7 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
26682
26902
  onClick: vue.withModifiers(innerClick, ["stop"])
26683
26903
  }, [
26684
26904
  vue.createElementVNode("div", _hoisted_2$7, [
26685
- vue.createVNode(_sfc_main$10, {
26905
+ vue.createVNode(_sfc_main$12, {
26686
26906
  options: fullSearchBoxOptions.value,
26687
26907
  "is-search-container": true,
26688
26908
  ref_key: "searchBox",
@@ -27581,7 +27801,7 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
27581
27801
  key: getProductKeyAction(index, product)
27582
27802
  }, {
27583
27803
  default: vue.withCtx(() => [
27584
- vue.createVNode(_sfc_main$q, {
27804
+ vue.createVNode(_sfc_main$s, {
27585
27805
  product,
27586
27806
  options: _ctx.options,
27587
27807
  "click-tracking-settings": clickTrackingSettings.value,
@@ -27596,7 +27816,7 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
27596
27816
  _: 1
27597
27817
  }, 16)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$4, [
27598
27818
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(recommendations.value, (product, index) => {
27599
- return vue.openBlock(), vue.createBlock(_sfc_main$q, {
27819
+ return vue.openBlock(), vue.createBlock(_sfc_main$s, {
27600
27820
  style: vue.normalizeStyle(columnSize.value),
27601
27821
  key: getProductKeyAction(index, product),
27602
27822
  product,
@@ -27861,7 +28081,7 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
27861
28081
  vue.createElementVNode("a", {
27862
28082
  href: getLink(product)
27863
28083
  }, [
27864
- vue.createVNode(_sfc_main$B, {
28084
+ vue.createVNode(_sfc_main$D, {
27865
28085
  item: product,
27866
28086
  options: image.value
27867
28087
  }, null, 8, ["item", "options"])
@@ -28025,7 +28245,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
28025
28245
  return (_ctx, _cache) => {
28026
28246
  return vue.openBlock(), vue.createElementBlock("section", _hoisted_1$3, [
28027
28247
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.searchResults, (product, index) => {
28028
- return vue.openBlock(), vue.createBlock(_sfc_main$q, {
28248
+ return vue.openBlock(), vue.createBlock(_sfc_main$s, {
28029
28249
  class: "lupa-chat-product-card",
28030
28250
  key: getProductKeyAction(index, product),
28031
28251
  product,
@@ -28356,7 +28576,7 @@ exports.DocumentElementType = DocumentElementType;
28356
28576
  exports.LupaSearch = LupaSearch;
28357
28577
  exports.ProductList = _sfc_main$c;
28358
28578
  exports.Recommendations = _sfc_main$a;
28359
- exports.SearchBox = _sfc_main$10;
28579
+ exports.SearchBox = _sfc_main$12;
28360
28580
  exports.SearchBoxPanelType = SearchBoxPanelType;
28361
28581
  exports.SearchContainer = _sfc_main$b;
28362
28582
  exports.SearchResults = _sfc_main$e;