@getlupa/client 1.15.1 → 1.15.6

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.
@@ -8188,7 +8188,11 @@ const useRedirectionStore = defineStore("redirections", () => {
8188
8188
  try {
8189
8189
  localStorage.setItem(
8190
8190
  CACHE_KEY,
8191
- JSON.stringify({ redirections: redirections.value, savedAt: Date.now() })
8191
+ JSON.stringify({
8192
+ redirections: redirections.value,
8193
+ savedAt: Date.now(),
8194
+ queryKey: redirectionOptions.value.queryKey
8195
+ })
8192
8196
  );
8193
8197
  } catch (e2) {
8194
8198
  }
@@ -8199,6 +8203,9 @@ const useRedirectionStore = defineStore("redirections", () => {
8199
8203
  return false;
8200
8204
  try {
8201
8205
  const data = JSON.parse((_a = localStorage.getItem(CACHE_KEY)) != null ? _a : "");
8206
+ if (data.queryKey !== config.queryKey) {
8207
+ return false;
8208
+ }
8202
8209
  if ((data == null ? void 0 : data.redirections) && Date.now() - data.savedAt < 1e3 * config.cacheSeconds) {
8203
8210
  redirections.value = data.redirections;
8204
8211
  return true;
@@ -8223,6 +8230,7 @@ const useRedirectionStore = defineStore("redirections", () => {
8223
8230
  try {
8224
8231
  const result2 = yield LupaSearchSdk.loadRedirectionRules(config.queryKey, options);
8225
8232
  if (!((_d = result2 == null ? void 0 : result2.rules) == null ? void 0 : _d.length)) {
8233
+ redirections.value = { rules: [] };
8226
8234
  return;
8227
8235
  }
8228
8236
  redirections.value = result2;
@@ -8660,9 +8668,9 @@ const useSearchBoxStore = defineStore("searchBox", () => {
8660
8668
  resetHighlightIndex
8661
8669
  };
8662
8670
  });
8663
- const _hoisted_1$1g = { id: "lupa-search-box-input-container" };
8664
- const _hoisted_2$U = { class: "lupa-input-clear" };
8665
- const _hoisted_3$D = { id: "lupa-search-box-input" };
8671
+ const _hoisted_1$1h = { id: "lupa-search-box-input-container" };
8672
+ const _hoisted_2$V = { class: "lupa-input-clear" };
8673
+ const _hoisted_3$E = { id: "lupa-search-box-input" };
8666
8674
  const _hoisted_4$t = ["value"];
8667
8675
  const _hoisted_5$j = ["aria-label", "placeholder"];
8668
8676
  const _hoisted_6$9 = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
@@ -8673,7 +8681,7 @@ const _hoisted_8$3 = {
8673
8681
  key: 0,
8674
8682
  class: "lupa-close-label"
8675
8683
  };
8676
- const _sfc_main$1s = /* @__PURE__ */ defineComponent({
8684
+ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
8677
8685
  __name: "SearchBoxInput",
8678
8686
  props: {
8679
8687
  options: {},
@@ -8757,14 +8765,14 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
8757
8765
  };
8758
8766
  __expose({ focus });
8759
8767
  return (_ctx, _cache) => {
8760
- return openBlock(), createElementBlock("div", _hoisted_1$1g, [
8761
- createBaseVNode("div", _hoisted_2$U, [
8768
+ return openBlock(), createElementBlock("div", _hoisted_1$1h, [
8769
+ createBaseVNode("div", _hoisted_2$V, [
8762
8770
  createBaseVNode("div", {
8763
8771
  class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
8764
8772
  onClick: clear2
8765
8773
  }, null, 2)
8766
8774
  ]),
8767
- createBaseVNode("div", _hoisted_3$D, [
8775
+ createBaseVNode("div", _hoisted_3$E, [
8768
8776
  createBaseVNode("input", {
8769
8777
  class: "lupa-hint",
8770
8778
  "aria-hidden": "true",
@@ -8803,7 +8811,7 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
8803
8811
  };
8804
8812
  }
8805
8813
  });
8806
- const _sfc_main$1r = /* @__PURE__ */ defineComponent({
8814
+ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
8807
8815
  __name: "SearchBoxMoreResults",
8808
8816
  props: {
8809
8817
  labels: {},
@@ -8835,9 +8843,9 @@ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
8835
8843
  };
8836
8844
  }
8837
8845
  });
8838
- const _hoisted_1$1f = { class: "lupa-search-box-history-item" };
8839
- const _hoisted_2$T = { class: "lupa-search-box-history-item-content" };
8840
- const _sfc_main$1q = /* @__PURE__ */ defineComponent({
8846
+ const _hoisted_1$1g = { class: "lupa-search-box-history-item" };
8847
+ const _hoisted_2$U = { class: "lupa-search-box-history-item-content" };
8848
+ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
8841
8849
  __name: "SearchBoxHistoryItem",
8842
8850
  props: {
8843
8851
  item: {},
@@ -8853,8 +8861,8 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
8853
8861
  emit2("click", { query: props.item });
8854
8862
  };
8855
8863
  return (_ctx, _cache) => {
8856
- return openBlock(), createElementBlock("div", _hoisted_1$1f, [
8857
- createBaseVNode("div", _hoisted_2$T, [
8864
+ return openBlock(), createElementBlock("div", _hoisted_1$1g, [
8865
+ createBaseVNode("div", _hoisted_2$U, [
8858
8866
  createBaseVNode("div", {
8859
8867
  class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
8860
8868
  onClick: click2
@@ -8868,11 +8876,11 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
8868
8876
  };
8869
8877
  }
8870
8878
  });
8871
- const _hoisted_1$1e = {
8879
+ const _hoisted_1$1f = {
8872
8880
  key: 0,
8873
8881
  class: "lupa-search-box-history-panel"
8874
8882
  };
8875
- const _sfc_main$1p = /* @__PURE__ */ defineComponent({
8883
+ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
8876
8884
  __name: "SearchBoxHistoryPanel",
8877
8885
  props: {
8878
8886
  options: {}
@@ -8913,9 +8921,9 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
8913
8921
  }
8914
8922
  };
8915
8923
  return (_ctx, _cache) => {
8916
- return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1e, [
8924
+ return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1f, [
8917
8925
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(history), (item, index) => {
8918
- return openBlock(), createBlock(_sfc_main$1q, {
8926
+ return openBlock(), createBlock(_sfc_main$1r, {
8919
8927
  key: item,
8920
8928
  item,
8921
8929
  highlighted: index === highlightIndex.value,
@@ -8931,15 +8939,15 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
8931
8939
  };
8932
8940
  }
8933
8941
  });
8934
- const _hoisted_1$1d = { class: "lupa-search-box-no-results" };
8935
- const _sfc_main$1o = /* @__PURE__ */ defineComponent({
8942
+ const _hoisted_1$1e = { class: "lupa-search-box-no-results" };
8943
+ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
8936
8944
  __name: "SearchBoxNoResults",
8937
8945
  props: {
8938
8946
  labels: {}
8939
8947
  },
8940
8948
  setup(__props) {
8941
8949
  return (_ctx, _cache) => {
8942
- return openBlock(), createElementBlock("p", _hoisted_1$1d, toDisplayString(_ctx.labels.noResults), 1);
8950
+ return openBlock(), createElementBlock("p", _hoisted_1$1e, toDisplayString(_ctx.labels.noResults), 1);
8943
8951
  };
8944
8952
  }
8945
8953
  });
@@ -8971,13 +8979,13 @@ const generateGridTemplate = (elements) => {
8971
8979
  }
8972
8980
  return gridTemplate.join(" ");
8973
8981
  };
8974
- const _hoisted_1$1c = ["innerHTML"];
8975
- const _hoisted_2$S = {
8982
+ const _hoisted_1$1d = ["innerHTML"];
8983
+ const _hoisted_2$T = {
8976
8984
  key: 1,
8977
8985
  "data-cy": "lupa-suggestion-value",
8978
8986
  class: "lupa-suggestion-value"
8979
8987
  };
8980
- const _hoisted_3$C = {
8988
+ const _hoisted_3$D = {
8981
8989
  key: 2,
8982
8990
  class: "lupa-suggestion-facet",
8983
8991
  "data-cy": "lupa-suggestion-facet"
@@ -8990,7 +8998,7 @@ const _hoisted_5$i = {
8990
8998
  class: "lupa-suggestion-facet-value",
8991
8999
  "data-cy": "lupa-suggestion-facet-value"
8992
9000
  };
8993
- const _sfc_main$1n = /* @__PURE__ */ defineComponent({
9001
+ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
8994
9002
  __name: "SearchBoxSuggestion",
8995
9003
  props: {
8996
9004
  suggestion: {},
@@ -9026,8 +9034,8 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
9026
9034
  class: "lupa-suggestion-value",
9027
9035
  "data-cy": "lupa-suggestion-value",
9028
9036
  innerHTML: _ctx.suggestion.displayHighlight
9029
- }, null, 8, _hoisted_1$1c)) : (openBlock(), createElementBlock("div", _hoisted_2$S, toDisplayString(_ctx.suggestion.display), 1)),
9030
- _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$C, [
9037
+ }, null, 8, _hoisted_1$1d)) : (openBlock(), createElementBlock("div", _hoisted_2$T, toDisplayString(_ctx.suggestion.display), 1)),
9038
+ _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$D, [
9031
9039
  createBaseVNode("span", _hoisted_4$s, toDisplayString(facetLabel.value), 1),
9032
9040
  createBaseVNode("span", _hoisted_5$i, toDisplayString(_ctx.suggestion.facet.title), 1)
9033
9041
  ])) : createCommentVNode("", true)
@@ -9035,11 +9043,11 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
9035
9043
  };
9036
9044
  }
9037
9045
  });
9038
- const _hoisted_1$1b = {
9046
+ const _hoisted_1$1c = {
9039
9047
  id: "lupa-search-box-suggestions",
9040
9048
  "data-cy": "lupa-search-box-suggestions"
9041
9049
  };
9042
- const _sfc_main$1m = /* @__PURE__ */ defineComponent({
9050
+ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
9043
9051
  __name: "SearchBoxSuggestions",
9044
9052
  props: {
9045
9053
  items: {},
@@ -9099,9 +9107,9 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
9099
9107
  });
9100
9108
  });
9101
9109
  return (_ctx, _cache) => {
9102
- return openBlock(), createElementBlock("div", _hoisted_1$1b, [
9110
+ return openBlock(), createElementBlock("div", _hoisted_1$1c, [
9103
9111
  (openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
9104
- return openBlock(), createBlock(_sfc_main$1n, {
9112
+ return openBlock(), createBlock(_sfc_main$1o, {
9105
9113
  key: getSuggestionKey(item),
9106
9114
  class: normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
9107
9115
  suggestion: item,
@@ -9129,7 +9137,7 @@ const debounce$1 = (func, timeout) => {
9129
9137
  }, timeout);
9130
9138
  };
9131
9139
  };
9132
- const _sfc_main$1l = /* @__PURE__ */ defineComponent({
9140
+ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
9133
9141
  __name: "SearchBoxSuggestionsWrapper",
9134
9142
  props: {
9135
9143
  panel: {},
@@ -9171,7 +9179,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
9171
9179
  const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
9172
9180
  watch(() => props.panel.limit, getSuggestionsDebounced);
9173
9181
  return (_ctx, _cache) => {
9174
- return openBlock(), createBlock(_sfc_main$1m, {
9182
+ return openBlock(), createBlock(_sfc_main$1n, {
9175
9183
  items: searchResult.value,
9176
9184
  highlight: _ctx.panel.highlight,
9177
9185
  queryKey: _ctx.panel.queryKey,
@@ -18167,6 +18175,17 @@ const renderHtmlTemplate = (template, document2 = {}) => {
18167
18175
  const rendered = mustache.render(template, document2);
18168
18176
  return sanitizeHtml$1(rendered);
18169
18177
  };
18178
+ const getDynamicAttributes = (dynamicAttributes = [], document2 = {}) => {
18179
+ var _a, _b;
18180
+ const parsedAttributes = {};
18181
+ for (const attribute of dynamicAttributes) {
18182
+ if (!((_a = attribute == null ? void 0 : attribute.key) == null ? void 0 : _a.startsWith("data-"))) {
18183
+ continue;
18184
+ }
18185
+ parsedAttributes[attribute == null ? void 0 : attribute.key] = escapeHtml$1(mustache.render((_b = attribute == null ? void 0 : attribute.value) != null ? _b : "", document2));
18186
+ }
18187
+ return parsedAttributes;
18188
+ };
18170
18189
  const getFieldValue = (doc2, field = "") => {
18171
18190
  var _a;
18172
18191
  if (typeof field === "number") {
@@ -18249,9 +18268,9 @@ const replaceImageWithPlaceholder = (e2, placeholder) => {
18249
18268
  targetImage.src = placeholder;
18250
18269
  }
18251
18270
  };
18252
- const _hoisted_1$1a = ["src"];
18253
- const _hoisted_2$R = ["src"];
18254
- const _sfc_main$1k = /* @__PURE__ */ defineComponent({
18271
+ const _hoisted_1$1b = ["src"];
18272
+ const _hoisted_2$S = ["src"];
18273
+ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
18255
18274
  __name: "ProductImage",
18256
18275
  props: {
18257
18276
  item: {},
@@ -18393,7 +18412,7 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
18393
18412
  }, { alt: imageAlt.value ? imageAlt.value : void 0 }, {
18394
18413
  onError: replaceWithPlaceholder,
18395
18414
  key: finalUrl.value
18396
- }), null, 16, _hoisted_1$1a))
18415
+ }), null, 16, _hoisted_1$1b))
18397
18416
  ]),
18398
18417
  _: 1
18399
18418
  })) : (openBlock(), createElementBlock("img", mergeProps({
@@ -18401,12 +18420,12 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
18401
18420
  class: ["lupa-images-main-image", { [_ctx.imageClass]: true }],
18402
18421
  style: styleOverride.value,
18403
18422
  src: finalMainImageUrl.value
18404
- }, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$R))
18423
+ }, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$S))
18405
18424
  ], 38);
18406
18425
  };
18407
18426
  }
18408
18427
  });
18409
- const _sfc_main$1j = /* @__PURE__ */ defineComponent({
18428
+ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
18410
18429
  __name: "SearchBoxProductImage",
18411
18430
  props: {
18412
18431
  item: {},
@@ -18414,7 +18433,7 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
18414
18433
  },
18415
18434
  setup(__props) {
18416
18435
  return (_ctx, _cache) => {
18417
- return openBlock(), createBlock(_sfc_main$1k, {
18436
+ return openBlock(), createBlock(_sfc_main$1l, {
18418
18437
  item: _ctx.item,
18419
18438
  options: _ctx.options,
18420
18439
  "wrapper-class": "lupa-search-box-image-wrapper",
@@ -18423,12 +18442,12 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
18423
18442
  };
18424
18443
  }
18425
18444
  });
18426
- const _hoisted_1$19 = ["innerHTML"];
18427
- const _hoisted_2$Q = {
18445
+ const _hoisted_1$1a = ["innerHTML"];
18446
+ const _hoisted_2$R = {
18428
18447
  key: 1,
18429
18448
  class: "lupa-search-box-product-title"
18430
18449
  };
18431
- const _sfc_main$1i = /* @__PURE__ */ defineComponent({
18450
+ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
18432
18451
  __name: "SearchBoxProductTitle",
18433
18452
  props: {
18434
18453
  item: {},
@@ -18451,18 +18470,18 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
18451
18470
  key: 0,
18452
18471
  class: "lupa-search-box-product-title",
18453
18472
  innerHTML: sanitizedTitle.value
18454
- }, null, 8, _hoisted_1$19)) : (openBlock(), createElementBlock("div", _hoisted_2$Q, [
18473
+ }, null, 8, _hoisted_1$1a)) : (openBlock(), createElementBlock("div", _hoisted_2$R, [
18455
18474
  createBaseVNode("strong", null, toDisplayString(title.value), 1)
18456
18475
  ]));
18457
18476
  };
18458
18477
  }
18459
18478
  });
18460
- const _hoisted_1$18 = ["innerHTML"];
18461
- const _hoisted_2$P = {
18479
+ const _hoisted_1$19 = ["innerHTML"];
18480
+ const _hoisted_2$Q = {
18462
18481
  key: 1,
18463
18482
  class: "lupa-search-box-product-description"
18464
18483
  };
18465
- const _sfc_main$1h = /* @__PURE__ */ defineComponent({
18484
+ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
18466
18485
  __name: "SearchBoxProductDescription",
18467
18486
  props: {
18468
18487
  item: {},
@@ -18485,12 +18504,12 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
18485
18504
  key: 0,
18486
18505
  class: "lupa-search-box-product-description",
18487
18506
  innerHTML: sanitizedDescription.value
18488
- }, null, 8, _hoisted_1$18)) : (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(description.value), 1));
18507
+ }, null, 8, _hoisted_1$19)) : (openBlock(), createElementBlock("div", _hoisted_2$Q, toDisplayString(description.value), 1));
18489
18508
  };
18490
18509
  }
18491
18510
  });
18492
- const _hoisted_1$17 = { class: "lupa-search-box-product-price" };
18493
- const _sfc_main$1g = /* @__PURE__ */ defineComponent({
18511
+ const _hoisted_1$18 = { class: "lupa-search-box-product-price" };
18512
+ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
18494
18513
  __name: "SearchBoxProductPrice",
18495
18514
  props: {
18496
18515
  item: {},
@@ -18508,13 +18527,13 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
18508
18527
  );
18509
18528
  });
18510
18529
  return (_ctx, _cache) => {
18511
- return openBlock(), createElementBlock("div", _hoisted_1$17, [
18530
+ return openBlock(), createElementBlock("div", _hoisted_1$18, [
18512
18531
  createBaseVNode("strong", null, toDisplayString(price.value), 1)
18513
18532
  ]);
18514
18533
  };
18515
18534
  }
18516
18535
  });
18517
- const _sfc_main$1f = /* @__PURE__ */ defineComponent({
18536
+ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
18518
18537
  __name: "SearchBoxProductRegularPrice",
18519
18538
  props: {
18520
18539
  item: {},
@@ -18541,12 +18560,12 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
18541
18560
  };
18542
18561
  }
18543
18562
  });
18544
- const _hoisted_1$16 = ["innerHTML"];
18545
- const _hoisted_2$O = { key: 0 };
18546
- const _hoisted_3$B = { key: 1 };
18563
+ const _hoisted_1$17 = ["innerHTML"];
18564
+ const _hoisted_2$P = { key: 0 };
18565
+ const _hoisted_3$C = { key: 1 };
18547
18566
  const _hoisted_4$r = { class: "lupa-search-box-custom-label" };
18548
18567
  const _hoisted_5$h = { class: "lupa-search-box-custom-text" };
18549
- const _sfc_main$1e = /* @__PURE__ */ defineComponent({
18568
+ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
18550
18569
  __name: "SearchBoxProductCustom",
18551
18570
  props: {
18552
18571
  item: {},
@@ -18572,11 +18591,11 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
18572
18591
  key: 0,
18573
18592
  class: [className.value, "lupa-search-box-product-custom"],
18574
18593
  innerHTML: text.value
18575
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$16)) : (openBlock(), createElementBlock("div", mergeProps({
18594
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$17)) : (openBlock(), createElementBlock("div", mergeProps({
18576
18595
  key: 1,
18577
18596
  class: [className.value, "lupa-search-box-product-custom"]
18578
18597
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
18579
- !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$O, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$B, [
18598
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$C, [
18580
18599
  createBaseVNode("div", _hoisted_4$r, toDisplayString(label.value), 1),
18581
18600
  createBaseVNode("div", _hoisted_5$h, toDisplayString(text.value), 1)
18582
18601
  ]))
@@ -18584,8 +18603,8 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
18584
18603
  };
18585
18604
  }
18586
18605
  });
18587
- const _hoisted_1$15 = ["innerHTML"];
18588
- const _sfc_main$1d = /* @__PURE__ */ defineComponent({
18606
+ const _hoisted_1$16 = ["innerHTML"];
18607
+ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
18589
18608
  __name: "SearchBoxProductCustomHtml",
18590
18609
  props: {
18591
18610
  item: {},
@@ -18610,7 +18629,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
18610
18629
  return openBlock(), createElementBlock("div", mergeProps({
18611
18630
  class: className.value,
18612
18631
  innerHTML: text.value
18613
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$15);
18632
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$16);
18614
18633
  };
18615
18634
  }
18616
18635
  });
@@ -18844,15 +18863,16 @@ const useSearchResultStore = defineStore("searchResult", () => {
18844
18863
  setRelatedCategoryChildren
18845
18864
  };
18846
18865
  });
18847
- const _hoisted_1$14 = { class: "lupa-search-box-add-to-cart-wrapper" };
18848
- const _hoisted_2$N = { class: "lupa-search-box-product-addtocart" };
18849
- const _hoisted_3$A = ["onClick", "disabled"];
18850
- const _sfc_main$1c = /* @__PURE__ */ defineComponent({
18866
+ const _hoisted_1$15 = { class: "lupa-search-box-add-to-cart-wrapper" };
18867
+ const _hoisted_2$O = { class: "lupa-search-box-product-addtocart" };
18868
+ const _hoisted_3$B = ["onClick", "disabled"];
18869
+ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
18851
18870
  __name: "SearchBoxProductAddToCart",
18852
18871
  props: {
18853
18872
  item: {},
18854
18873
  options: {},
18855
- inStock: { type: Boolean }
18874
+ inStock: { type: Boolean },
18875
+ dynamicAttributes: {}
18856
18876
  },
18857
18877
  emits: ["productEvent"],
18858
18878
  setup(__props, { emit: emit2 }) {
@@ -18880,37 +18900,37 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
18880
18900
  loading.value = false;
18881
18901
  });
18882
18902
  return (_ctx, _cache) => {
18883
- return openBlock(), createElementBlock("div", _hoisted_1$14, [
18884
- createBaseVNode("div", _hoisted_2$N, [
18885
- createBaseVNode("button", {
18903
+ return openBlock(), createElementBlock("div", _hoisted_1$15, [
18904
+ createBaseVNode("div", _hoisted_2$O, [
18905
+ createBaseVNode("button", mergeProps({
18886
18906
  onClick: withModifiers(handleClick, ["stop", "prevent"]),
18887
- class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
18907
+ class: loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart",
18888
18908
  "data-cy": "lupa-add-to-cart",
18889
18909
  type: "button",
18890
18910
  disabled: !inStockValue.value || loading.value
18891
- }, toDisplayString(label.value), 11, _hoisted_3$A)
18911
+ }, _ctx.dynamicAttributes), toDisplayString(label.value), 17, _hoisted_3$B)
18892
18912
  ])
18893
18913
  ]);
18894
18914
  };
18895
18915
  }
18896
18916
  });
18897
- const _hoisted_1$13 = {
18917
+ const _hoisted_1$14 = {
18898
18918
  key: 1,
18899
18919
  class: "lupa-search-box-element-badge-wrapper"
18900
18920
  };
18901
18921
  const __default__$4 = {
18902
18922
  components: {
18903
- SearchBoxProductImage: _sfc_main$1j,
18904
- SearchBoxProductTitle: _sfc_main$1i,
18905
- SearchBoxProductDescription: _sfc_main$1h,
18906
- SearchBoxProductPrice: _sfc_main$1g,
18907
- SearchBoxProductRegularPrice: _sfc_main$1f,
18908
- SearchBoxProductCustom: _sfc_main$1e,
18909
- SearchBoxProductCustomHtml: _sfc_main$1d,
18910
- SearchBoxProductAddToCart: _sfc_main$1c
18923
+ SearchBoxProductImage: _sfc_main$1k,
18924
+ SearchBoxProductTitle: _sfc_main$1j,
18925
+ SearchBoxProductDescription: _sfc_main$1i,
18926
+ SearchBoxProductPrice: _sfc_main$1h,
18927
+ SearchBoxProductRegularPrice: _sfc_main$1g,
18928
+ SearchBoxProductCustom: _sfc_main$1f,
18929
+ SearchBoxProductCustomHtml: _sfc_main$1e,
18930
+ SearchBoxProductAddToCart: _sfc_main$1d
18911
18931
  }
18912
18932
  };
18913
- const _sfc_main$1b = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
18933
+ const _sfc_main$1c = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
18914
18934
  __name: "SearchBoxProductElement",
18915
18935
  props: {
18916
18936
  item: {},
@@ -18943,6 +18963,9 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
18943
18963
  }
18944
18964
  return "search-box-product-title";
18945
18965
  });
18966
+ const renderDynamicAttributesOnParentElement = computed(() => {
18967
+ return props.element.type !== DocumentElementType.ADDTOCART;
18968
+ });
18946
18969
  const displayElement = computed(() => {
18947
18970
  const element = props.element;
18948
18971
  const item = props.item;
@@ -18959,21 +18982,25 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
18959
18982
  const enhancementData = (_d = (_c = dynamicDataIdMap.value) == null ? void 0 : _c[(_b = props.item) == null ? void 0 : _b.id]) != null ? _d : {};
18960
18983
  return __spreadValues2(__spreadValues2({}, props.item), enhancementData);
18961
18984
  });
18985
+ const dynamicAttributes = computed(() => {
18986
+ return getDynamicAttributes(props.element.dynamicAttributes, enhancedItem.value);
18987
+ });
18962
18988
  const isLoadingDynamicData = (id) => {
18963
18989
  return Boolean(props.element.dynamic && id && loading.value && (loadingIds == null ? void 0 : loadingIds.value[id]));
18964
18990
  };
18965
18991
  return (_ctx, _cache) => {
18966
18992
  var _a, _b;
18967
18993
  return !_ctx.$slots.badges ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
18968
- displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), {
18994
+ displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), mergeProps({
18969
18995
  key: 0,
18970
18996
  item: enhancedItem.value,
18971
18997
  options: _ctx.element,
18972
18998
  labels: _ctx.labels,
18973
- class: normalizeClass({ "lupa-loading-dynamic-data": isLoadingDynamicData((_a = _ctx.item) == null ? void 0 : _a.id) }),
18974
- inStock: _ctx.isInStock
18975
- }, null, 8, ["item", "options", "labels", "class", "inStock"])) : createCommentVNode("", true)
18976
- ], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$13, [
18999
+ class: { "lupa-loading-dynamic-data": isLoadingDynamicData((_a = _ctx.item) == null ? void 0 : _a.id) },
19000
+ inStock: _ctx.isInStock,
19001
+ "dynamic-attributes": dynamicAttributes.value
19002
+ }, renderDynamicAttributesOnParentElement.value && dynamicAttributes.value), null, 16, ["item", "options", "labels", "class", "inStock", "dynamic-attributes"])) : createCommentVNode("", true)
19003
+ ], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$14, [
18977
19004
  displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), {
18978
19005
  key: 0,
18979
19006
  item: enhancedItem.value,
@@ -18987,14 +19014,14 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
18987
19014
  };
18988
19015
  }
18989
19016
  }));
18990
- const _hoisted_1$12 = { class: "lupa-badge-title" };
18991
- const _hoisted_2$M = ["src"];
18992
- const _hoisted_3$z = { key: 1 };
19017
+ const _hoisted_1$13 = { class: "lupa-badge-title" };
19018
+ const _hoisted_2$N = ["src"];
19019
+ const _hoisted_3$A = { key: 1 };
18993
19020
  const _hoisted_4$q = {
18994
19021
  key: 0,
18995
19022
  class: "lupa-badge-full-text"
18996
19023
  };
18997
- const _sfc_main$1a = /* @__PURE__ */ defineComponent({
19024
+ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
18998
19025
  __name: "SearchResultGeneratedBadge",
18999
19026
  props: {
19000
19027
  options: {},
@@ -19027,20 +19054,20 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
19027
19054
  class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
19028
19055
  style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
19029
19056
  }, [
19030
- createBaseVNode("span", _hoisted_1$12, [
19057
+ createBaseVNode("span", _hoisted_1$13, [
19031
19058
  image.value ? (openBlock(), createElementBlock("img", {
19032
19059
  key: 0,
19033
19060
  src: image.value
19034
- }, null, 8, _hoisted_2$M)) : createCommentVNode("", true),
19035
- hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$z, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
19061
+ }, null, 8, _hoisted_2$N)) : createCommentVNode("", true),
19062
+ hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$A, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
19036
19063
  ]),
19037
19064
  hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$q, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
19038
19065
  ], 6);
19039
19066
  };
19040
19067
  }
19041
19068
  });
19042
- const _hoisted_1$11 = { class: "lupa-generated-badges" };
19043
- const _sfc_main$19 = /* @__PURE__ */ defineComponent({
19069
+ const _hoisted_1$12 = { class: "lupa-generated-badges" };
19070
+ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
19044
19071
  __name: "SearchResultGeneratedBadges",
19045
19072
  props: {
19046
19073
  options: {}
@@ -19066,9 +19093,9 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
19066
19093
  })).filter((b) => Boolean(b.id));
19067
19094
  });
19068
19095
  return (_ctx, _cache) => {
19069
- return openBlock(), createElementBlock("div", _hoisted_1$11, [
19096
+ return openBlock(), createElementBlock("div", _hoisted_1$12, [
19070
19097
  (openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
19071
- return openBlock(), createBlock(_sfc_main$1a, {
19098
+ return openBlock(), createBlock(_sfc_main$1b, {
19072
19099
  key: badge.id,
19073
19100
  badge,
19074
19101
  options: _ctx.options
@@ -19078,8 +19105,8 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
19078
19105
  };
19079
19106
  }
19080
19107
  });
19081
- const _hoisted_1$10 = ["innerHTML"];
19082
- const _sfc_main$18 = /* @__PURE__ */ defineComponent({
19108
+ const _hoisted_1$11 = ["innerHTML"];
19109
+ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
19083
19110
  __name: "CustomBadge",
19084
19111
  props: {
19085
19112
  badge: {}
@@ -19100,12 +19127,12 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
19100
19127
  return openBlock(), createElementBlock("div", {
19101
19128
  class: normalizeClass(className.value),
19102
19129
  innerHTML: text.value
19103
- }, null, 10, _hoisted_1$10);
19130
+ }, null, 10, _hoisted_1$11);
19104
19131
  };
19105
19132
  }
19106
19133
  });
19107
- const _hoisted_1$$ = { class: "lupa-text-badges" };
19108
- const _sfc_main$17 = /* @__PURE__ */ defineComponent({
19134
+ const _hoisted_1$10 = { class: "lupa-text-badges" };
19135
+ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
19109
19136
  __name: "TextBadge",
19110
19137
  props: {
19111
19138
  badge: {}
@@ -19119,7 +19146,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
19119
19146
  return badges.value.slice(0, props.badge.maxItems);
19120
19147
  });
19121
19148
  return (_ctx, _cache) => {
19122
- return openBlock(), createElementBlock("div", _hoisted_1$$, [
19149
+ return openBlock(), createElementBlock("div", _hoisted_1$10, [
19123
19150
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
19124
19151
  return openBlock(), createElementBlock("div", {
19125
19152
  class: "lupa-badge lupa-text-badge",
@@ -19130,9 +19157,9 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
19130
19157
  };
19131
19158
  }
19132
19159
  });
19133
- const _hoisted_1$_ = { class: "lupa-image-badges" };
19134
- const _hoisted_2$L = ["src"];
19135
- const _sfc_main$16 = /* @__PURE__ */ defineComponent({
19160
+ const _hoisted_1$$ = { class: "lupa-image-badges" };
19161
+ const _hoisted_2$M = ["src"];
19162
+ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
19136
19163
  __name: "ImageBadge",
19137
19164
  props: {
19138
19165
  badge: {}
@@ -19152,7 +19179,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
19152
19179
  return `${props.badge.rootImageUrl}${src}`;
19153
19180
  };
19154
19181
  return (_ctx, _cache) => {
19155
- return openBlock(), createElementBlock("div", _hoisted_1$_, [
19182
+ return openBlock(), createElementBlock("div", _hoisted_1$$, [
19156
19183
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
19157
19184
  return openBlock(), createElementBlock("div", {
19158
19185
  class: "lupa-badge lupa-image-badge",
@@ -19160,14 +19187,14 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
19160
19187
  }, [
19161
19188
  createBaseVNode("img", {
19162
19189
  src: getImageUrl(item)
19163
- }, null, 8, _hoisted_2$L)
19190
+ }, null, 8, _hoisted_2$M)
19164
19191
  ]);
19165
19192
  }), 128))
19166
19193
  ]);
19167
19194
  };
19168
19195
  }
19169
19196
  });
19170
- const _sfc_main$15 = /* @__PURE__ */ defineComponent({
19197
+ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
19171
19198
  __name: "DiscountBadge",
19172
19199
  props: {
19173
19200
  badge: {}
@@ -19225,16 +19252,16 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
19225
19252
  };
19226
19253
  }
19227
19254
  });
19228
- const _hoisted_1$Z = { id: "lupa-search-results-badges" };
19255
+ const _hoisted_1$_ = { id: "lupa-search-results-badges" };
19229
19256
  const __default__$3 = {
19230
19257
  components: {
19231
- CustomBadge: _sfc_main$18,
19232
- TextBadge: _sfc_main$17,
19233
- ImageBadge: _sfc_main$16,
19234
- DiscountBadge: _sfc_main$15
19258
+ CustomBadge: _sfc_main$19,
19259
+ TextBadge: _sfc_main$18,
19260
+ ImageBadge: _sfc_main$17,
19261
+ DiscountBadge: _sfc_main$16
19235
19262
  }
19236
19263
  };
19237
- const _sfc_main$14 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
19264
+ const _sfc_main$15 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
19238
19265
  __name: "SearchResultsBadgeWrapper",
19239
19266
  props: {
19240
19267
  position: {},
@@ -19297,7 +19324,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
19297
19324
  }
19298
19325
  };
19299
19326
  return (_ctx, _cache) => {
19300
- return openBlock(), createElementBlock("div", _hoisted_1$Z, [
19327
+ return openBlock(), createElementBlock("div", _hoisted_1$_, [
19301
19328
  createBaseVNode("div", {
19302
19329
  id: "lupa-badges",
19303
19330
  class: normalizeClass(anchorPosition.value)
@@ -19308,7 +19335,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
19308
19335
  badge
19309
19336
  }, null, 8, ["badge"]);
19310
19337
  }), 128)),
19311
- positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$19, {
19338
+ positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$1a, {
19312
19339
  key: 0,
19313
19340
  options: _ctx.options
19314
19341
  }, null, 8, ["options"])) : createCommentVNode("", true)
@@ -19317,13 +19344,13 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
19317
19344
  };
19318
19345
  }
19319
19346
  }));
19320
- const _hoisted_1$Y = ["href"];
19321
- const _hoisted_2$K = { class: "lupa-search-box-product-details-section" };
19322
- const _hoisted_3$y = {
19347
+ const _hoisted_1$Z = ["href"];
19348
+ const _hoisted_2$L = { class: "lupa-search-box-product-details-section" };
19349
+ const _hoisted_3$z = {
19323
19350
  key: 0,
19324
19351
  class: "lupa-search-box-product-add-to-cart-section"
19325
19352
  };
19326
- const _sfc_main$13 = /* @__PURE__ */ defineComponent({
19353
+ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
19327
19354
  __name: "SearchBoxProduct",
19328
19355
  props: {
19329
19356
  item: {},
@@ -19409,7 +19436,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
19409
19436
  style: normalizeStyle(imageStyleOverride.value)
19410
19437
  }, [
19411
19438
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
19412
- return openBlock(), createBlock(_sfc_main$1b, {
19439
+ return openBlock(), createBlock(_sfc_main$1c, {
19413
19440
  class: "lupa-search-box-product-element",
19414
19441
  item: _ctx.item,
19415
19442
  element,
@@ -19419,10 +19446,10 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
19419
19446
  }, null, 8, ["item", "element", "labels", "link"]);
19420
19447
  }), 128))
19421
19448
  ], 4),
19422
- createBaseVNode("div", _hoisted_2$K, [
19449
+ createBaseVNode("div", _hoisted_2$L, [
19423
19450
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
19424
19451
  var _a;
19425
- return openBlock(), createBlock(_sfc_main$1b, {
19452
+ return openBlock(), createBlock(_sfc_main$1c, {
19426
19453
  key: element.key,
19427
19454
  class: "lupa-search-box-product-element",
19428
19455
  item: _ctx.item,
@@ -19433,7 +19460,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
19433
19460
  badgeOptions.value && ((_a = badgeOptions.value) == null ? void 0 : _a.anchorElementKey) === element.key ? {
19434
19461
  name: "badges",
19435
19462
  fn: withCtx(() => [
19436
- createVNode(_sfc_main$14, {
19463
+ createVNode(_sfc_main$15, {
19437
19464
  options: badgeOptions.value,
19438
19465
  position: "card"
19439
19466
  }, null, 8, ["options"])
@@ -19443,8 +19470,8 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
19443
19470
  ]), 1032, ["item", "element", "labels", "link"]);
19444
19471
  }), 128))
19445
19472
  ]),
19446
- addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$y, [
19447
- createVNode(_sfc_main$1b, {
19473
+ addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$z, [
19474
+ createVNode(_sfc_main$1c, {
19448
19475
  class: "lupa-search-box-product-element",
19449
19476
  item: _ctx.item,
19450
19477
  element: addToCartElement.value,
@@ -19453,7 +19480,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
19453
19480
  isInStock: isInStock.value
19454
19481
  }, null, 8, ["item", "element", "labels", "link", "isInStock"])
19455
19482
  ])) : createCommentVNode("", true)
19456
- ], 16, _hoisted_1$Y);
19483
+ ], 16, _hoisted_1$Z);
19457
19484
  };
19458
19485
  }
19459
19486
  });
@@ -19525,8 +19552,8 @@ const useTrackingStore = defineStore("tracking", () => {
19525
19552
  };
19526
19553
  return { trackSearch, trackResults, trackEvent, trackDelayedEvent };
19527
19554
  });
19528
- const _hoisted_1$X = { id: "lupa-search-box-products" };
19529
- const _sfc_main$12 = /* @__PURE__ */ defineComponent({
19555
+ const _hoisted_1$Y = { id: "lupa-search-box-products" };
19556
+ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
19530
19557
  __name: "SearchBoxProducts",
19531
19558
  props: {
19532
19559
  items: {},
@@ -19594,7 +19621,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
19594
19621
  handleRoutingEvent(link, event, boxRoutingBehavior.value === "event");
19595
19622
  };
19596
19623
  return (_ctx, _cache) => {
19597
- return openBlock(), createElementBlock("div", _hoisted_1$X, [
19624
+ return openBlock(), createElementBlock("div", _hoisted_1$Y, [
19598
19625
  _ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
19599
19626
  return renderSlot(_ctx.$slots, "productCard", {
19600
19627
  key: index,
@@ -19606,7 +19633,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
19606
19633
  itemClicked: handleProductClick
19607
19634
  });
19608
19635
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
19609
- return openBlock(), createBlock(_sfc_main$13, {
19636
+ return openBlock(), createBlock(_sfc_main$14, {
19610
19637
  key: index,
19611
19638
  item,
19612
19639
  panelOptions: _ctx.panelOptions,
@@ -19621,9 +19648,9 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
19621
19648
  };
19622
19649
  }
19623
19650
  });
19624
- const _hoisted_1$W = { class: "lupa-search-box-documents-go-to-results-wrapper" };
19625
- const _hoisted_2$J = { key: 0 };
19626
- const _sfc_main$11 = /* @__PURE__ */ defineComponent({
19651
+ const _hoisted_1$X = { class: "lupa-search-box-documents-go-to-results-wrapper" };
19652
+ const _hoisted_2$K = { key: 0 };
19653
+ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
19627
19654
  __name: "SearchBoxProductsGoToResultsButton",
19628
19655
  props: {
19629
19656
  options: {},
@@ -19653,19 +19680,19 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
19653
19680
  emit2("goToResults");
19654
19681
  };
19655
19682
  return (_ctx, _cache) => {
19656
- return openBlock(), createElementBlock("div", _hoisted_1$W, [
19683
+ return openBlock(), createElementBlock("div", _hoisted_1$X, [
19657
19684
  createBaseVNode("button", {
19658
19685
  class: "lupa-search-box-documents-go-to-results-button",
19659
19686
  onClick: goToResults
19660
19687
  }, [
19661
19688
  createTextVNode(toDisplayString(goToResultsLabel.value) + " ", 1),
19662
- totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$J, " " + toDisplayString(totalCount.value), 1)) : createCommentVNode("", true)
19689
+ totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$K, " " + toDisplayString(totalCount.value), 1)) : createCommentVNode("", true)
19663
19690
  ])
19664
19691
  ]);
19665
19692
  };
19666
19693
  }
19667
19694
  });
19668
- const _sfc_main$10 = /* @__PURE__ */ defineComponent({
19695
+ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
19669
19696
  __name: "SearchBoxProductsWrapper",
19670
19697
  props: {
19671
19698
  panel: {},
@@ -19722,7 +19749,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
19722
19749
  watch(() => props.panel.limit, getItemsDebounced);
19723
19750
  return (_ctx, _cache) => {
19724
19751
  var _a, _b;
19725
- return openBlock(), createBlock(_sfc_main$12, {
19752
+ return openBlock(), createBlock(_sfc_main$13, {
19726
19753
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
19727
19754
  panelOptions: _ctx.panel,
19728
19755
  labels: _ctx.labels,
@@ -19732,7 +19759,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
19732
19759
  default: withCtx(() => {
19733
19760
  var _a2;
19734
19761
  return [
19735
- showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main$11, {
19762
+ showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main$12, {
19736
19763
  key: 0,
19737
19764
  options: _ctx.searchBoxOptions,
19738
19765
  panel: _ctx.panel,
@@ -19753,7 +19780,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
19753
19780
  };
19754
19781
  }
19755
19782
  });
19756
- const _sfc_main$$ = /* @__PURE__ */ defineComponent({
19783
+ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
19757
19784
  __name: "SearchBoxRelatedSourceWrapper",
19758
19785
  props: {
19759
19786
  panel: {},
@@ -19825,7 +19852,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
19825
19852
  });
19826
19853
  return (_ctx, _cache) => {
19827
19854
  var _a, _b;
19828
- return openBlock(), createBlock(_sfc_main$12, {
19855
+ return openBlock(), createBlock(_sfc_main$13, {
19829
19856
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
19830
19857
  panelOptions: documentPanelOptions.value,
19831
19858
  labels: _ctx.labels,
@@ -19843,12 +19870,12 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
19843
19870
  };
19844
19871
  }
19845
19872
  });
19846
- const _hoisted_1$V = {
19873
+ const _hoisted_1$W = {
19847
19874
  key: 0,
19848
19875
  id: "lupa-search-box-panel"
19849
19876
  };
19850
- const _hoisted_2$I = ["data-cy"];
19851
- const _hoisted_3$x = {
19877
+ const _hoisted_2$J = ["data-cy"];
19878
+ const _hoisted_3$y = {
19852
19879
  key: 0,
19853
19880
  class: "lupa-panel-title lupa-panel-title-top-results"
19854
19881
  };
@@ -19862,12 +19889,12 @@ const _hoisted_5$g = {
19862
19889
  };
19863
19890
  const __default__$2 = {
19864
19891
  components: {
19865
- SearchBoxSuggestionsWrapper: _sfc_main$1l,
19866
- SearchBoxProductsWrapper: _sfc_main$10,
19867
- SearchBoxRelatedSourceWrapper: _sfc_main$$
19892
+ SearchBoxSuggestionsWrapper: _sfc_main$1m,
19893
+ SearchBoxProductsWrapper: _sfc_main$11,
19894
+ SearchBoxRelatedSourceWrapper: _sfc_main$10
19868
19895
  }
19869
19896
  };
19870
- const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
19897
+ const _sfc_main$$ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
19871
19898
  __name: "SearchBoxMainPanel",
19872
19899
  props: {
19873
19900
  options: {},
@@ -20023,7 +20050,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
20023
20050
  ref_key: "panelContainer",
20024
20051
  ref: panelContainer
20025
20052
  }, [
20026
- displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$V, [
20053
+ displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$W, [
20027
20054
  labels.value.closePanel ? (openBlock(), createElementBlock("a", {
20028
20055
  key: 0,
20029
20056
  class: "lupa-search-box-close-panel",
@@ -20045,7 +20072,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
20045
20072
  style: normalizeStyle(panel.gridArea ? { gridArea: `${panel.gridArea}${index}` } : {}),
20046
20073
  "data-cy": "lupa-panel-" + panel.type + "-index"
20047
20074
  }, [
20048
- ((_a2 = panel.labels) == null ? void 0 : _a2.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$x, toDisplayString((_b = panel.labels) == null ? void 0 : _b.topResultsTitle), 1)) : createCommentVNode("", true),
20075
+ ((_a2 = panel.labels) == null ? void 0 : _a2.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$y, toDisplayString((_b = panel.labels) == null ? void 0 : _b.topResultsTitle), 1)) : createCommentVNode("", true),
20049
20076
  ((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (openBlock(), createElementBlock("div", _hoisted_4$p, toDisplayString((_d = panel.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
20050
20077
  panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
20051
20078
  key: 2,
@@ -20068,21 +20095,21 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
20068
20095
  key: "0"
20069
20096
  } : void 0
20070
20097
  ]), 1064, ["panel", "search-box-options", "options", "debounce", "inputValue", "labels"])) : createCommentVNode("", true)
20071
- ], 14, _hoisted_2$I);
20098
+ ], 14, _hoisted_2$J);
20072
20099
  }), 128))
20073
20100
  ], 4),
20074
- !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1o, {
20101
+ !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1p, {
20075
20102
  key: 1,
20076
20103
  labels: labels.value
20077
20104
  }, null, 8, ["labels"])) : createCommentVNode("", true),
20078
- unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1r, {
20105
+ unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1s, {
20079
20106
  key: 2,
20080
20107
  labels: labels.value,
20081
20108
  showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
20082
20109
  onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
20083
20110
  }, null, 8, ["labels", "showTotalCount"])) : createCommentVNode("", true)
20084
20111
  ])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$g, [
20085
- createVNode(_sfc_main$1p, {
20112
+ createVNode(_sfc_main$1q, {
20086
20113
  options: _ctx.options.history,
20087
20114
  history: history.value,
20088
20115
  onGoToResults: handleGoToResults,
@@ -20107,9 +20134,9 @@ const unbindSearchTriggers = (triggers = [], event) => {
20107
20134
  const elements = getElements(triggers);
20108
20135
  elements.forEach((e2) => e2 == null ? void 0 : e2.removeEventListener(BIND_EVENT, event));
20109
20136
  };
20110
- const _hoisted_1$U = { id: "lupa-search-box" };
20111
- const _hoisted_2$H = { class: "lupa-search-box-wrapper" };
20112
- const _sfc_main$Z = /* @__PURE__ */ defineComponent({
20137
+ const _hoisted_1$V = { id: "lupa-search-box" };
20138
+ const _hoisted_2$I = { class: "lupa-search-box-wrapper" };
20139
+ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
20113
20140
  __name: "SearchBox",
20114
20141
  props: {
20115
20142
  options: {},
@@ -20376,9 +20403,9 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
20376
20403
  };
20377
20404
  return (_ctx, _cache) => {
20378
20405
  var _a2;
20379
- return openBlock(), createElementBlock("div", _hoisted_1$U, [
20380
- createBaseVNode("div", _hoisted_2$H, [
20381
- createVNode(_sfc_main$1s, {
20406
+ return openBlock(), createElementBlock("div", _hoisted_1$V, [
20407
+ createBaseVNode("div", _hoisted_2$I, [
20408
+ createVNode(_sfc_main$1t, {
20382
20409
  options: inputOptions.value,
20383
20410
  suggestedValue: suggestedValue.value,
20384
20411
  "can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
@@ -20391,7 +20418,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
20391
20418
  onSearch: handleSearch,
20392
20419
  onClose: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("close"))
20393
20420
  }, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
20394
- opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$_, {
20421
+ opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$$, {
20395
20422
  key: 0,
20396
20423
  options: panelOptions.value,
20397
20424
  inputValue: inputValue.value,
@@ -20480,20 +20507,20 @@ const getSearchParams = (url, params, baseUrl) => {
20480
20507
  }
20481
20508
  return searchParams;
20482
20509
  };
20483
- const _hoisted_1$T = {
20510
+ const _hoisted_1$U = {
20484
20511
  key: 0,
20485
20512
  id: "lupa-search-results-did-you-mean"
20486
20513
  };
20487
- const _hoisted_2$G = {
20514
+ const _hoisted_2$H = {
20488
20515
  key: 0,
20489
20516
  "data-cy": "suggested-search-text-label"
20490
20517
  };
20491
- const _hoisted_3$w = {
20518
+ const _hoisted_3$x = {
20492
20519
  key: 1,
20493
20520
  "data-cy": "did-you-mean-label"
20494
20521
  };
20495
20522
  const _hoisted_4$o = { key: 1 };
20496
- const _sfc_main$Y = /* @__PURE__ */ defineComponent({
20523
+ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
20497
20524
  __name: "SearchResultsDidYouMean",
20498
20525
  props: {
20499
20526
  labels: {}
@@ -20525,8 +20552,8 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
20525
20552
  paramStore.goToResults({ searchText, facet });
20526
20553
  };
20527
20554
  return (_ctx, _cache) => {
20528
- return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$T, [
20529
- unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$G, [
20555
+ return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$U, [
20556
+ unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$H, [
20530
20557
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
20531
20558
  return openBlock(), createElementBlock("span", { key: index }, [
20532
20559
  createBaseVNode("span", {
@@ -20535,7 +20562,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
20535
20562
  ]);
20536
20563
  }), 128))
20537
20564
  ])) : createCommentVNode("", true),
20538
- didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$w, [
20565
+ didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$x, [
20539
20566
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.didYouMean.split(" "), (label, index) => {
20540
20567
  return openBlock(), createElementBlock("span", { key: index }, [
20541
20568
  label.includes("{1}") ? (openBlock(), createElementBlock("span", {
@@ -20551,12 +20578,12 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
20551
20578
  };
20552
20579
  }
20553
20580
  });
20554
- const _hoisted_1$S = {
20581
+ const _hoisted_1$T = {
20555
20582
  key: 0,
20556
20583
  class: "lupa-search-results-summary"
20557
20584
  };
20558
- const _hoisted_2$F = ["innerHTML"];
20559
- const _sfc_main$X = /* @__PURE__ */ defineComponent({
20585
+ const _hoisted_2$G = ["innerHTML"];
20586
+ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
20560
20587
  __name: "SearchResultsSummary",
20561
20588
  props: {
20562
20589
  label: {},
@@ -20571,8 +20598,8 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
20571
20598
  return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
20572
20599
  });
20573
20600
  return (_ctx, _cache) => {
20574
- return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$S, [
20575
- createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$F),
20601
+ return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$T, [
20602
+ createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$G),
20576
20603
  _ctx.clearable ? (openBlock(), createElementBlock("span", {
20577
20604
  key: 0,
20578
20605
  class: "lupa-filter-clear",
@@ -20583,19 +20610,19 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
20583
20610
  };
20584
20611
  }
20585
20612
  });
20586
- const _hoisted_1$R = {
20613
+ const _hoisted_1$S = {
20587
20614
  key: 0,
20588
20615
  class: "lupa-result-page-title",
20589
20616
  "data-cy": "lupa-result-page-title"
20590
20617
  };
20591
- const _hoisted_2$E = { key: 0 };
20592
- const _hoisted_3$v = {
20618
+ const _hoisted_2$F = { key: 0 };
20619
+ const _hoisted_3$w = {
20593
20620
  key: 1,
20594
20621
  class: "lupa-results-total-count"
20595
20622
  };
20596
20623
  const _hoisted_4$n = { class: "lupa-results-total-count-number" };
20597
20624
  const _hoisted_5$f = ["innerHTML"];
20598
- const _sfc_main$W = /* @__PURE__ */ defineComponent({
20625
+ const _sfc_main$X = /* @__PURE__ */ defineComponent({
20599
20626
  __name: "SearchResultsTitle",
20600
20627
  props: {
20601
20628
  options: {},
@@ -20634,16 +20661,16 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
20634
20661
  });
20635
20662
  return (_ctx, _cache) => {
20636
20663
  return openBlock(), createElementBlock("div", null, [
20637
- showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$R, [
20664
+ showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$S, [
20638
20665
  createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
20639
- queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$E, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
20640
- showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$v, [
20666
+ queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$F, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
20667
+ showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$w, [
20641
20668
  createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
20642
20669
  createBaseVNode("span", _hoisted_4$n, toDisplayString(unref(totalItems)), 1),
20643
20670
  createTextVNode(")")
20644
20671
  ])) : createCommentVNode("", true)
20645
20672
  ])) : createCommentVNode("", true),
20646
- _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$X, {
20673
+ _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$Y, {
20647
20674
  key: 1,
20648
20675
  label: summaryLabel.value
20649
20676
  }, null, 8, ["label"])) : createCommentVNode("", true),
@@ -20656,16 +20683,16 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
20656
20683
  };
20657
20684
  }
20658
20685
  });
20659
- const _hoisted_1$Q = { class: "lupa-search-result-filter-value" };
20660
- const _hoisted_2$D = {
20686
+ const _hoisted_1$R = { class: "lupa-search-result-filter-value" };
20687
+ const _hoisted_2$E = {
20661
20688
  class: "lupa-current-filter-label",
20662
20689
  "data-cy": "lupa-current-filter-label"
20663
20690
  };
20664
- const _hoisted_3$u = {
20691
+ const _hoisted_3$v = {
20665
20692
  class: "lupa-current-filter-value",
20666
20693
  "data-cy": "lupa-current-filter-value"
20667
20694
  };
20668
- const _sfc_main$V = /* @__PURE__ */ defineComponent({
20695
+ const _sfc_main$W = /* @__PURE__ */ defineComponent({
20669
20696
  __name: "CurrentFilterDisplay",
20670
20697
  props: {
20671
20698
  filter: {}
@@ -20677,28 +20704,28 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
20677
20704
  emit2("remove", { filter: props.filter });
20678
20705
  };
20679
20706
  return (_ctx, _cache) => {
20680
- return openBlock(), createElementBlock("div", _hoisted_1$Q, [
20707
+ return openBlock(), createElementBlock("div", _hoisted_1$R, [
20681
20708
  createBaseVNode("div", {
20682
20709
  class: "lupa-current-filter-action",
20683
20710
  onClick: handleClick
20684
20711
  }, "⨉"),
20685
- createBaseVNode("div", _hoisted_2$D, toDisplayString(_ctx.filter.label) + ": ", 1),
20686
- createBaseVNode("div", _hoisted_3$u, toDisplayString(_ctx.filter.value), 1)
20712
+ createBaseVNode("div", _hoisted_2$E, toDisplayString(_ctx.filter.label) + ": ", 1),
20713
+ createBaseVNode("div", _hoisted_3$v, toDisplayString(_ctx.filter.value), 1)
20687
20714
  ]);
20688
20715
  };
20689
20716
  }
20690
20717
  });
20691
- const _hoisted_1$P = { class: "lupa-filter-title-text" };
20692
- const _hoisted_2$C = {
20718
+ const _hoisted_1$Q = { class: "lupa-filter-title-text" };
20719
+ const _hoisted_2$D = {
20693
20720
  key: 0,
20694
20721
  class: "lupa-filter-count"
20695
20722
  };
20696
- const _hoisted_3$t = {
20723
+ const _hoisted_3$u = {
20697
20724
  key: 0,
20698
20725
  class: "filter-values"
20699
20726
  };
20700
20727
  const _hoisted_4$m = { class: "lupa-current-filter-list" };
20701
- const _sfc_main$U = /* @__PURE__ */ defineComponent({
20728
+ const _sfc_main$V = /* @__PURE__ */ defineComponent({
20702
20729
  __name: "CurrentFilters",
20703
20730
  props: {
20704
20731
  options: {},
@@ -20771,19 +20798,19 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
20771
20798
  class: "lupa-current-filter-title",
20772
20799
  onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
20773
20800
  }, [
20774
- createBaseVNode("div", _hoisted_1$P, [
20801
+ createBaseVNode("div", _hoisted_1$Q, [
20775
20802
  createTextVNode(toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
20776
- _ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$C, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
20803
+ _ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$D, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
20777
20804
  ]),
20778
20805
  _ctx.expandable ? (openBlock(), createElementBlock("div", {
20779
20806
  key: 0,
20780
20807
  class: normalizeClass(["lupa-filter-title-caret", isOpen.value && "open"])
20781
20808
  }, null, 2)) : createCommentVNode("", true)
20782
20809
  ]),
20783
- !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$t, [
20810
+ !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$u, [
20784
20811
  createBaseVNode("div", _hoisted_4$m, [
20785
20812
  (openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter2) => {
20786
- return openBlock(), createBlock(_sfc_main$V, {
20813
+ return openBlock(), createBlock(_sfc_main$W, {
20787
20814
  key: filter2.key + "_" + filter2.value,
20788
20815
  filter: filter2,
20789
20816
  onRemove: handleRemove
@@ -20800,8 +20827,8 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
20800
20827
  };
20801
20828
  }
20802
20829
  });
20803
- const _hoisted_1$O = ["href"];
20804
- const _sfc_main$T = /* @__PURE__ */ defineComponent({
20830
+ const _hoisted_1$P = ["href"];
20831
+ const _sfc_main$U = /* @__PURE__ */ defineComponent({
20805
20832
  __name: "CategoryFilterItem",
20806
20833
  props: {
20807
20834
  options: {},
@@ -20838,20 +20865,20 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
20838
20865
  "data-cy": "lupa-child-category-item",
20839
20866
  href: urlLink.value,
20840
20867
  onClick: handleNavigation
20841
- }, toDisplayString(title.value), 9, _hoisted_1$O)
20868
+ }, toDisplayString(title.value), 9, _hoisted_1$P)
20842
20869
  ], 2);
20843
20870
  };
20844
20871
  }
20845
20872
  });
20846
- const _hoisted_1$N = {
20873
+ const _hoisted_1$O = {
20847
20874
  class: "lupa-category-filter",
20848
20875
  "data-cy": "lupa-category-filter"
20849
20876
  };
20850
- const _hoisted_2$B = { class: "lupa-category-back" };
20851
- const _hoisted_3$s = ["href"];
20877
+ const _hoisted_2$C = { class: "lupa-category-back" };
20878
+ const _hoisted_3$t = ["href"];
20852
20879
  const _hoisted_4$l = ["href"];
20853
20880
  const _hoisted_5$e = { class: "lupa-child-category-list" };
20854
- const _sfc_main$S = /* @__PURE__ */ defineComponent({
20881
+ const _sfc_main$T = /* @__PURE__ */ defineComponent({
20855
20882
  __name: "CategoryFilter",
20856
20883
  props: {
20857
20884
  options: {}
@@ -20939,14 +20966,14 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
20939
20966
  };
20940
20967
  __expose({ fetch: fetch2 });
20941
20968
  return (_ctx, _cache) => {
20942
- return openBlock(), createElementBlock("div", _hoisted_1$N, [
20943
- createBaseVNode("div", _hoisted_2$B, [
20969
+ return openBlock(), createElementBlock("div", _hoisted_1$O, [
20970
+ createBaseVNode("div", _hoisted_2$C, [
20944
20971
  hasBackButton.value ? (openBlock(), createElementBlock("a", {
20945
20972
  key: 0,
20946
20973
  "data-cy": "lupa-category-back",
20947
20974
  href: backUrlLink.value,
20948
20975
  onClick: handleNavigationBack
20949
- }, toDisplayString(backTitle.value), 9, _hoisted_3$s)) : createCommentVNode("", true)
20976
+ }, toDisplayString(backTitle.value), 9, _hoisted_3$t)) : createCommentVNode("", true)
20950
20977
  ]),
20951
20978
  createBaseVNode("div", {
20952
20979
  class: normalizeClass(["lupa-current-category", { "lupa-current-category-active": isActive }])
@@ -20960,7 +20987,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
20960
20987
  ], 2),
20961
20988
  createBaseVNode("div", _hoisted_5$e, [
20962
20989
  (openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
20963
- return openBlock(), createBlock(_sfc_main$T, {
20990
+ return openBlock(), createBlock(_sfc_main$U, {
20964
20991
  key: getCategoryKey(child),
20965
20992
  item: child,
20966
20993
  options: _ctx.options
@@ -20971,12 +20998,12 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
20971
20998
  };
20972
20999
  }
20973
21000
  });
20974
- const _hoisted_1$M = {
21001
+ const _hoisted_1$N = {
20975
21002
  class: "lupa-search-result-facet-term-values",
20976
21003
  "data-cy": "lupa-search-result-facet-term-values"
20977
21004
  };
20978
- const _hoisted_2$A = ["placeholder"];
20979
- const _hoisted_3$r = { class: "lupa-terms-list" };
21005
+ const _hoisted_2$B = ["placeholder"];
21006
+ const _hoisted_3$s = { class: "lupa-terms-list" };
20980
21007
  const _hoisted_4$k = ["onClick"];
20981
21008
  const _hoisted_5$d = { class: "lupa-term-checkbox-wrapper" };
20982
21009
  const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
@@ -20987,7 +21014,7 @@ const _hoisted_8$2 = {
20987
21014
  };
20988
21015
  const _hoisted_9$2 = { key: 0 };
20989
21016
  const _hoisted_10$1 = { key: 1 };
20990
- const _sfc_main$R = /* @__PURE__ */ defineComponent({
21017
+ const _sfc_main$S = /* @__PURE__ */ defineComponent({
20991
21018
  __name: "TermFacet",
20992
21019
  props: {
20993
21020
  options: {},
@@ -21058,17 +21085,17 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
21058
21085
  return selectedItems == null ? void 0 : selectedItems.includes((_b = item.title) == null ? void 0 : _b.toString());
21059
21086
  };
21060
21087
  return (_ctx, _cache) => {
21061
- return openBlock(), createElementBlock("div", _hoisted_1$M, [
21088
+ return openBlock(), createElementBlock("div", _hoisted_1$N, [
21062
21089
  isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
21063
21090
  key: 0,
21064
21091
  class: "lupa-term-filter",
21065
21092
  "data-cy": "lupa-term-filter",
21066
21093
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
21067
21094
  placeholder: _ctx.options.labels.facetFilter
21068
- }, null, 8, _hoisted_2$A)), [
21095
+ }, null, 8, _hoisted_2$B)), [
21069
21096
  [vModelText, termFilter.value]
21070
21097
  ]) : createCommentVNode("", true),
21071
- createBaseVNode("div", _hoisted_3$r, [
21098
+ createBaseVNode("div", _hoisted_3$s, [
21072
21099
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
21073
21100
  return openBlock(), createElementBlock("div", {
21074
21101
  class: normalizeClass(["lupa-facet-term", { checked: isChecked(item) }]),
@@ -22076,12 +22103,12 @@ var m = { name: "Slider", emits: ["input", "update:modelValue", "start", "slide"
22076
22103
  m.render = function(e2, t, r, i, n, o) {
22077
22104
  return openBlock(), createElementBlock("div", mergeProps(e2.sliderProps, { ref: "slider" }), null, 16);
22078
22105
  }, m.__file = "src/Slider.vue";
22079
- const _hoisted_1$L = { class: "lupa-search-result-facet-stats-values" };
22080
- const _hoisted_2$z = {
22106
+ const _hoisted_1$M = { class: "lupa-search-result-facet-stats-values" };
22107
+ const _hoisted_2$A = {
22081
22108
  key: 0,
22082
22109
  class: "lupa-stats-facet-summary"
22083
22110
  };
22084
- const _hoisted_3$q = {
22111
+ const _hoisted_3$r = {
22085
22112
  key: 1,
22086
22113
  class: "lupa-stats-facet-summary-input"
22087
22114
  };
@@ -22104,7 +22131,7 @@ const _hoisted_13 = {
22104
22131
  key: 2,
22105
22132
  class: "lupa-stats-slider-wrapper"
22106
22133
  };
22107
- const _sfc_main$Q = /* @__PURE__ */ defineComponent({
22134
+ const _sfc_main$R = /* @__PURE__ */ defineComponent({
22108
22135
  __name: "StatsFacet",
22109
22136
  props: {
22110
22137
  options: {},
@@ -22281,8 +22308,8 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
22281
22308
  innerSliderRange.value = value;
22282
22309
  };
22283
22310
  return (_ctx, _cache) => {
22284
- return openBlock(), createElementBlock("div", _hoisted_1$L, [
22285
- !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$z, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$q, [
22311
+ return openBlock(), createElementBlock("div", _hoisted_1$M, [
22312
+ !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$A, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$r, [
22286
22313
  createBaseVNode("div", null, [
22287
22314
  rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$j, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
22288
22315
  createBaseVNode("div", _hoisted_5$c, [
@@ -22348,9 +22375,9 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
22348
22375
  };
22349
22376
  }
22350
22377
  });
22351
- const _hoisted_1$K = { class: "lupa-term-checkbox-wrapper" };
22352
- const _hoisted_2$y = { class: "lupa-term-checkbox-label" };
22353
- const _hoisted_3$p = { class: "lupa-term-label" };
22378
+ const _hoisted_1$L = { class: "lupa-term-checkbox-wrapper" };
22379
+ const _hoisted_2$z = { class: "lupa-term-checkbox-label" };
22380
+ const _hoisted_3$q = { class: "lupa-term-label" };
22354
22381
  const _hoisted_4$i = {
22355
22382
  key: 0,
22356
22383
  class: "lupa-term-count"
@@ -22359,7 +22386,7 @@ const _hoisted_5$b = {
22359
22386
  key: 0,
22360
22387
  class: "lupa-facet-level"
22361
22388
  };
22362
- const _sfc_main$P = /* @__PURE__ */ defineComponent({
22389
+ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
22363
22390
  __name: "HierarchyFacetLevel",
22364
22391
  props: {
22365
22392
  options: {},
@@ -22405,13 +22432,13 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
22405
22432
  "data-cy": "lupa-facet-term",
22406
22433
  onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
22407
22434
  }, [
22408
- createBaseVNode("div", _hoisted_1$K, [
22435
+ createBaseVNode("div", _hoisted_1$L, [
22409
22436
  createBaseVNode("span", {
22410
22437
  class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
22411
22438
  }, null, 2)
22412
22439
  ]),
22413
- createBaseVNode("div", _hoisted_2$y, [
22414
- createBaseVNode("span", _hoisted_3$p, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
22440
+ createBaseVNode("div", _hoisted_2$z, [
22441
+ createBaseVNode("span", _hoisted_3$q, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
22415
22442
  _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$i, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
22416
22443
  ])
22417
22444
  ]),
@@ -22431,13 +22458,13 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
22431
22458
  };
22432
22459
  }
22433
22460
  });
22434
- const _hoisted_1$J = {
22461
+ const _hoisted_1$K = {
22435
22462
  class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
22436
22463
  "data-cy": "lupa-search-result-facet-term-values"
22437
22464
  };
22438
- const _hoisted_2$x = { key: 0 };
22439
- const _hoisted_3$o = ["placeholder"];
22440
- const _sfc_main$O = /* @__PURE__ */ defineComponent({
22465
+ const _hoisted_2$y = { key: 0 };
22466
+ const _hoisted_3$p = ["placeholder"];
22467
+ const _sfc_main$P = /* @__PURE__ */ defineComponent({
22441
22468
  __name: "HierarchyFacet",
22442
22469
  props: {
22443
22470
  options: {},
@@ -22492,19 +22519,19 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
22492
22519
  showAll.value = false;
22493
22520
  };
22494
22521
  return (_ctx, _cache) => {
22495
- return openBlock(), createElementBlock("div", _hoisted_1$J, [
22496
- isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$x, [
22522
+ return openBlock(), createElementBlock("div", _hoisted_1$K, [
22523
+ isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$y, [
22497
22524
  withDirectives(createBaseVNode("input", {
22498
22525
  class: "lupa-term-filter",
22499
22526
  "data-cy": "lupa-term-filter",
22500
22527
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
22501
22528
  placeholder: _ctx.options.labels.facetFilter
22502
- }, null, 8, _hoisted_3$o), [
22529
+ }, null, 8, _hoisted_3$p), [
22503
22530
  [vModelText, termFilter.value]
22504
22531
  ])
22505
22532
  ])) : createCommentVNode("", true),
22506
22533
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
22507
- return openBlock(), createBlock(_sfc_main$P, {
22534
+ return openBlock(), createBlock(_sfc_main$Q, {
22508
22535
  key: item.title,
22509
22536
  options: _ctx.options,
22510
22537
  item,
@@ -22528,20 +22555,20 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
22528
22555
  };
22529
22556
  }
22530
22557
  });
22531
- const _hoisted_1$I = { class: "lupa-facet-label-text" };
22532
- const _hoisted_2$w = {
22558
+ const _hoisted_1$J = { class: "lupa-facet-label-text" };
22559
+ const _hoisted_2$x = {
22533
22560
  key: 0,
22534
22561
  class: "lupa-facet-content",
22535
22562
  "data-cy": "lupa-facet-content"
22536
22563
  };
22537
22564
  const __default__$1 = {
22538
22565
  components: {
22539
- TermFacet: _sfc_main$R,
22540
- StatsFacet: _sfc_main$Q,
22541
- HierarchyFacet: _sfc_main$O
22566
+ TermFacet: _sfc_main$S,
22567
+ StatsFacet: _sfc_main$R,
22568
+ HierarchyFacet: _sfc_main$P
22542
22569
  }
22543
22570
  };
22544
- const _sfc_main$N = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
22571
+ const _sfc_main$O = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
22545
22572
  __name: "FacetDisplay",
22546
22573
  props: {
22547
22574
  options: {},
@@ -22653,12 +22680,12 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
22653
22680
  "data-cy": "lupa-search-result-facet-label",
22654
22681
  onClick: toggleFacet
22655
22682
  }, [
22656
- createBaseVNode("div", _hoisted_1$I, toDisplayString(facet.value.label), 1),
22683
+ createBaseVNode("div", _hoisted_1$J, toDisplayString(facet.value.label), 1),
22657
22684
  createBaseVNode("div", {
22658
22685
  class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
22659
22686
  }, null, 2)
22660
22687
  ], 2),
22661
- isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$w, [
22688
+ isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$x, [
22662
22689
  (openBlock(), createBlock(resolveDynamicComponent(facetType.value), {
22663
22690
  facet: facet.value,
22664
22691
  currentFilters: currentFilters.value[facet.value.key],
@@ -22676,12 +22703,12 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
22676
22703
  };
22677
22704
  }
22678
22705
  }));
22679
- const _hoisted_1$H = { class: "lupa-search-result-facet-section" };
22680
- const _hoisted_2$v = {
22706
+ const _hoisted_1$I = { class: "lupa-search-result-facet-section" };
22707
+ const _hoisted_2$w = {
22681
22708
  key: 0,
22682
22709
  class: "lupa-facets-title"
22683
22710
  };
22684
- const _sfc_main$M = /* @__PURE__ */ defineComponent({
22711
+ const _sfc_main$N = /* @__PURE__ */ defineComponent({
22685
22712
  __name: "FacetList",
22686
22713
  props: {
22687
22714
  options: {},
@@ -22715,14 +22742,14 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
22715
22742
  };
22716
22743
  return (_ctx, _cache) => {
22717
22744
  var _a;
22718
- return openBlock(), createElementBlock("div", _hoisted_1$H, [
22719
- _ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$v, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
22745
+ return openBlock(), createElementBlock("div", _hoisted_1$I, [
22746
+ _ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$w, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
22720
22747
  createBaseVNode("div", {
22721
22748
  class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
22722
22749
  }, [
22723
22750
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
22724
22751
  var _a2;
22725
- return openBlock(), createBlock(_sfc_main$N, {
22752
+ return openBlock(), createBlock(_sfc_main$O, {
22726
22753
  key: facet.key,
22727
22754
  facet,
22728
22755
  currentFilters: currentFiltersValue.value,
@@ -22737,8 +22764,8 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
22737
22764
  };
22738
22765
  }
22739
22766
  });
22740
- const _hoisted_1$G = ["onClick"];
22741
- const _sfc_main$L = /* @__PURE__ */ defineComponent({
22767
+ const _hoisted_1$H = ["onClick"];
22768
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
22742
22769
  __name: "FacetsButton",
22743
22770
  props: {
22744
22771
  options: {}
@@ -22758,13 +22785,13 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
22758
22785
  key: 0,
22759
22786
  class: "lupa-facets-button-filter",
22760
22787
  onClick: withModifiers(handleClick, ["stop"])
22761
- }, toDisplayString(label.value), 9, _hoisted_1$G)) : createCommentVNode("", true);
22788
+ }, toDisplayString(label.value), 9, _hoisted_1$H)) : createCommentVNode("", true);
22762
22789
  };
22763
22790
  }
22764
22791
  });
22765
- const _hoisted_1$F = { class: "lupa-search-result-facets" };
22766
- const _hoisted_2$u = { class: "lupa-facets-filter-button-wrapper" };
22767
- const _sfc_main$K = /* @__PURE__ */ defineComponent({
22792
+ const _hoisted_1$G = { class: "lupa-search-result-facets" };
22793
+ const _hoisted_2$v = { class: "lupa-facets-filter-button-wrapper" };
22794
+ const _sfc_main$L = /* @__PURE__ */ defineComponent({
22768
22795
  __name: "Facets",
22769
22796
  props: {
22770
22797
  options: {},
@@ -22847,8 +22874,8 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
22847
22874
  emit2("filter");
22848
22875
  };
22849
22876
  return (_ctx, _cache) => {
22850
- return openBlock(), createElementBlock("div", _hoisted_1$F, [
22851
- regularFacets.value ? (openBlock(), createBlock(_sfc_main$M, {
22877
+ return openBlock(), createElementBlock("div", _hoisted_1$G, [
22878
+ regularFacets.value ? (openBlock(), createBlock(_sfc_main$N, {
22852
22879
  key: 0,
22853
22880
  options: _ctx.options,
22854
22881
  facets: regularFacets.value,
@@ -22858,8 +22885,8 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
22858
22885
  onSelect: handleFacetSelect,
22859
22886
  onClear: clear2
22860
22887
  }, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : createCommentVNode("", true),
22861
- createBaseVNode("div", _hoisted_2$u, [
22862
- showFilterButton.value ? (openBlock(), createBlock(_sfc_main$L, {
22888
+ createBaseVNode("div", _hoisted_2$v, [
22889
+ showFilterButton.value ? (openBlock(), createBlock(_sfc_main$M, {
22863
22890
  key: 0,
22864
22891
  options: _ctx.options,
22865
22892
  onFilter: filter2
@@ -22869,11 +22896,11 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
22869
22896
  };
22870
22897
  }
22871
22898
  });
22872
- const _hoisted_1$E = {
22899
+ const _hoisted_1$F = {
22873
22900
  id: "lupa-search-result-filters",
22874
22901
  class: "lupa-search-result-filters"
22875
22902
  };
22876
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
22903
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
22877
22904
  __name: "SearchResultsFilters",
22878
22905
  props: {
22879
22906
  options: {},
@@ -22906,19 +22933,19 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
22906
22933
  __expose({ fetch: fetch2 });
22907
22934
  return (_ctx, _cache) => {
22908
22935
  var _a;
22909
- return openBlock(), createElementBlock("div", _hoisted_1$E, [
22910
- showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$U, {
22936
+ return openBlock(), createElementBlock("div", _hoisted_1$F, [
22937
+ showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$V, {
22911
22938
  key: 0,
22912
22939
  options: _ctx.options.currentFilters,
22913
22940
  expandable: (_a = _ctx.expandable) != null ? _a : false
22914
22941
  }, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
22915
- _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$S, {
22942
+ _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$T, {
22916
22943
  key: 1,
22917
22944
  options: _ctx.options.categories,
22918
22945
  ref_key: "categoryFilters",
22919
22946
  ref: categoryFilters
22920
22947
  }, null, 8, ["options"])) : createCommentVNode("", true),
22921
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$K, {
22948
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$L, {
22922
22949
  key: 2,
22923
22950
  options: _ctx.options.facets,
22924
22951
  onFilter: filter2
@@ -22927,12 +22954,12 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
22927
22954
  };
22928
22955
  }
22929
22956
  });
22930
- const _hoisted_1$D = {
22957
+ const _hoisted_1$E = {
22931
22958
  key: 0,
22932
22959
  class: "lupa-mobile-filter-sidebar"
22933
22960
  };
22934
- const _hoisted_2$t = ["onClick"];
22935
- const _hoisted_3$n = { class: "lupa-mobile-sidebar-content" };
22961
+ const _hoisted_2$u = ["onClick"];
22962
+ const _hoisted_3$o = { class: "lupa-mobile-sidebar-content" };
22936
22963
  const _hoisted_4$h = { class: "lupa-sidebar-top" };
22937
22964
  const _hoisted_5$a = { class: "lupa-sidebar-title" };
22938
22965
  const _hoisted_6$6 = {
@@ -22940,7 +22967,7 @@ const _hoisted_6$6 = {
22940
22967
  class: "lupa-sidebar-filter-count"
22941
22968
  };
22942
22969
  const _hoisted_7$4 = { class: "lupa-sidebar-filter-options" };
22943
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
22970
+ const _sfc_main$J = /* @__PURE__ */ defineComponent({
22944
22971
  __name: "MobileFilterSidebar",
22945
22972
  props: {
22946
22973
  options: {}
@@ -22971,12 +22998,12 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
22971
22998
  handleMobileToggle();
22972
22999
  };
22973
23000
  return (_ctx, _cache) => {
22974
- return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$D, [
23001
+ return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$E, [
22975
23002
  createBaseVNode("div", {
22976
23003
  class: "lupa-sidebar-close",
22977
23004
  onClick: withModifiers(handleMobileToggle, ["stop"])
22978
- }, null, 8, _hoisted_2$t),
22979
- createBaseVNode("div", _hoisted_3$n, [
23005
+ }, null, 8, _hoisted_2$u),
23006
+ createBaseVNode("div", _hoisted_3$o, [
22980
23007
  createBaseVNode("div", _hoisted_4$h, [
22981
23008
  createBaseVNode("div", _hoisted_5$a, [
22982
23009
  createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
@@ -22988,7 +23015,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
22988
23015
  })
22989
23016
  ]),
22990
23017
  createBaseVNode("div", _hoisted_7$4, [
22991
- createVNode(_sfc_main$J, {
23018
+ createVNode(_sfc_main$K, {
22992
23019
  options: _ctx.options,
22993
23020
  expandable: isActiveFiltersExpanded.value,
22994
23021
  onFilter: filter2
@@ -22999,14 +23026,14 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
22999
23026
  };
23000
23027
  }
23001
23028
  });
23002
- const _hoisted_1$C = { id: "lupa-search-results-breadcrumbs" };
23003
- const _hoisted_2$s = ["href", "onClick"];
23004
- const _hoisted_3$m = {
23029
+ const _hoisted_1$D = { id: "lupa-search-results-breadcrumbs" };
23030
+ const _hoisted_2$t = ["href", "onClick"];
23031
+ const _hoisted_3$n = {
23005
23032
  key: 1,
23006
23033
  class: "lupa-search-results-breadcrumb-text"
23007
23034
  };
23008
23035
  const _hoisted_4$g = { key: 2 };
23009
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
23036
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
23010
23037
  __name: "SearchResultsBreadcrumbs",
23011
23038
  props: {
23012
23039
  breadcrumbs: {}
@@ -23031,7 +23058,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
23031
23058
  handleRoutingEvent(link, event, hasEventRouting.value);
23032
23059
  };
23033
23060
  return (_ctx, _cache) => {
23034
- return openBlock(), createElementBlock("div", _hoisted_1$C, [
23061
+ return openBlock(), createElementBlock("div", _hoisted_1$D, [
23035
23062
  (openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
23036
23063
  return openBlock(), createElementBlock("span", {
23037
23064
  class: "lupa-search-results-breadcrumb",
@@ -23045,7 +23072,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
23045
23072
  var _a;
23046
23073
  return handleNavigation(e2, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
23047
23074
  }
23048
- }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$s)) : (openBlock(), createElementBlock("span", _hoisted_3$m, toDisplayString(getLabel(breadcrumb.label)), 1)),
23075
+ }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$t)) : (openBlock(), createElementBlock("span", _hoisted_3$n, toDisplayString(getLabel(breadcrumb.label)), 1)),
23049
23076
  index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$g, " / ")) : createCommentVNode("", true)
23050
23077
  ]);
23051
23078
  }), 128))
@@ -23053,11 +23080,11 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
23053
23080
  };
23054
23081
  }
23055
23082
  });
23056
- const _hoisted_1$B = {
23083
+ const _hoisted_1$C = {
23057
23084
  id: "lupa-search-result-filters",
23058
23085
  class: "lupa-search-result-filters lupa-search-result-top-filters"
23059
23086
  };
23060
- const _sfc_main$G = /* @__PURE__ */ defineComponent({
23087
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
23061
23088
  __name: "FiltersTopDropdown",
23062
23089
  props: {
23063
23090
  options: {}
@@ -23069,8 +23096,8 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
23069
23096
  };
23070
23097
  return (_ctx, _cache) => {
23071
23098
  var _a;
23072
- return openBlock(), createElementBlock("div", _hoisted_1$B, [
23073
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$K, {
23099
+ return openBlock(), createElementBlock("div", _hoisted_1$C, [
23100
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$L, {
23074
23101
  key: 0,
23075
23102
  options: _ctx.options.facets,
23076
23103
  "facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
@@ -23081,8 +23108,8 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
23081
23108
  };
23082
23109
  }
23083
23110
  });
23084
- const _hoisted_1$A = { id: "lupa-search-results-layout-selection" };
23085
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
23111
+ const _hoisted_1$B = { id: "lupa-search-results-layout-selection" };
23112
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
23086
23113
  __name: "SearchResultsLayoutSelection",
23087
23114
  setup(__props) {
23088
23115
  const searchResultStore = useSearchResultStore();
@@ -23093,7 +23120,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
23093
23120
  searchResultStore.setLayout(layout2);
23094
23121
  };
23095
23122
  return (_ctx, _cache) => {
23096
- return openBlock(), createElementBlock("div", _hoisted_1$A, [
23123
+ return openBlock(), createElementBlock("div", _hoisted_1$B, [
23097
23124
  createBaseVNode("div", {
23098
23125
  class: normalizeClass([
23099
23126
  "lupa-layout-selection-grid",
@@ -23115,11 +23142,11 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
23115
23142
  };
23116
23143
  }
23117
23144
  });
23118
- const _hoisted_1$z = {
23145
+ const _hoisted_1$A = {
23119
23146
  key: 0,
23120
23147
  class: "lupa-mobile-toggle-filter-count"
23121
23148
  };
23122
- const _sfc_main$E = /* @__PURE__ */ defineComponent({
23149
+ const _sfc_main$F = /* @__PURE__ */ defineComponent({
23123
23150
  __name: "SearchResultsMobileToggle",
23124
23151
  props: {
23125
23152
  label: {},
@@ -23137,26 +23164,26 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
23137
23164
  onClick: handleMobileToggle
23138
23165
  }, [
23139
23166
  createTextVNode(toDisplayString(_ctx.label) + " ", 1),
23140
- _ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$z, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
23167
+ _ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$A, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
23141
23168
  ], 2);
23142
23169
  };
23143
23170
  }
23144
23171
  });
23145
- const _hoisted_1$y = {
23172
+ const _hoisted_1$z = {
23146
23173
  key: 0,
23147
23174
  id: "lupa-search-results-page-select",
23148
23175
  "data-cy": "lupa-search-results-page-select"
23149
23176
  };
23150
- const _hoisted_2$r = {
23177
+ const _hoisted_2$s = {
23151
23178
  key: 0,
23152
23179
  class: "lupa-page-number-separator"
23153
23180
  };
23154
- const _hoisted_3$l = ["onClick"];
23181
+ const _hoisted_3$m = ["onClick"];
23155
23182
  const _hoisted_4$f = {
23156
23183
  key: 0,
23157
23184
  class: "lupa-page-number-separator"
23158
23185
  };
23159
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
23186
+ const _sfc_main$E = /* @__PURE__ */ defineComponent({
23160
23187
  __name: "SearchResultsPageSelect",
23161
23188
  props: {
23162
23189
  lastPageLabel: {},
@@ -23233,7 +23260,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
23233
23260
  }
23234
23261
  };
23235
23262
  return (_ctx, _cache) => {
23236
- return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$y, [
23263
+ return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$z, [
23237
23264
  showBack.value ? (openBlock(), createElementBlock("div", {
23238
23265
  key: 0,
23239
23266
  class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
@@ -23244,7 +23271,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
23244
23271
  class: "lupa-page-number lupa-page-number-first",
23245
23272
  onClick: _cache[1] || (_cache[1] = () => handlePageChange(1))
23246
23273
  }, " 1 "),
23247
- showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$r, "...")) : createCommentVNode("", true)
23274
+ showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$s, "...")) : createCommentVNode("", true)
23248
23275
  ], 64)) : createCommentVNode("", true),
23249
23276
  (openBlock(true), createElementBlock(Fragment, null, renderList(pages.value, (page) => {
23250
23277
  return openBlock(), createElementBlock("div", {
@@ -23255,7 +23282,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
23255
23282
  page === _ctx.options.selectedPage ? "lupa-page-number-selected" : ""
23256
23283
  ]),
23257
23284
  "data-cy": "lupa-page-number"
23258
- }, toDisplayString(page), 11, _hoisted_3$l);
23285
+ }, toDisplayString(page), 11, _hoisted_3$m);
23259
23286
  }), 128)),
23260
23287
  showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
23261
23288
  showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$f, "...")) : createCommentVNode("", true),
@@ -23277,15 +23304,15 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
23277
23304
  };
23278
23305
  }
23279
23306
  });
23280
- const _hoisted_1$x = {
23307
+ const _hoisted_1$y = {
23281
23308
  id: "lupa-search-results-page-size",
23282
23309
  "data-cy": "lupa-search-results-page-size"
23283
23310
  };
23284
- const _hoisted_2$q = { id: "lupa-select" };
23285
- const _hoisted_3$k = { class: "lupa-select-label" };
23311
+ const _hoisted_2$r = { id: "lupa-select" };
23312
+ const _hoisted_3$l = { class: "lupa-select-label" };
23286
23313
  const _hoisted_4$e = ["aria-label"];
23287
23314
  const _hoisted_5$9 = ["value"];
23288
- const _sfc_main$C = /* @__PURE__ */ defineComponent({
23315
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
23289
23316
  __name: "SearchResultsPageSize",
23290
23317
  props: {
23291
23318
  labels: {},
@@ -23313,9 +23340,9 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
23313
23340
  });
23314
23341
  };
23315
23342
  return (_ctx, _cache) => {
23316
- return openBlock(), createElementBlock("div", _hoisted_1$x, [
23317
- createBaseVNode("div", _hoisted_2$q, [
23318
- createBaseVNode("label", _hoisted_3$k, toDisplayString(label.value), 1),
23343
+ return openBlock(), createElementBlock("div", _hoisted_1$y, [
23344
+ createBaseVNode("div", _hoisted_2$r, [
23345
+ createBaseVNode("label", _hoisted_3$l, toDisplayString(label.value), 1),
23319
23346
  createBaseVNode("select", {
23320
23347
  class: "lupa-select-dropdown",
23321
23348
  "aria-label": label.value,
@@ -23336,15 +23363,15 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
23336
23363
  };
23337
23364
  }
23338
23365
  });
23339
- const _hoisted_1$w = {
23366
+ const _hoisted_1$x = {
23340
23367
  id: "lupa-search-results-sort",
23341
23368
  class: "lupa-search-results-sort"
23342
23369
  };
23343
- const _hoisted_2$p = { id: "lupa-select" };
23344
- const _hoisted_3$j = { class: "lupa-select-label" };
23370
+ const _hoisted_2$q = { id: "lupa-select" };
23371
+ const _hoisted_3$k = { class: "lupa-select-label" };
23345
23372
  const _hoisted_4$d = ["aria-label"];
23346
23373
  const _hoisted_5$8 = ["value"];
23347
- const _sfc_main$B = /* @__PURE__ */ defineComponent({
23374
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
23348
23375
  __name: "SearchResultsSort",
23349
23376
  props: {
23350
23377
  options: {},
@@ -23393,9 +23420,9 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
23393
23420
  previousKey.value = selectedKey.value;
23394
23421
  };
23395
23422
  return (_ctx, _cache) => {
23396
- return openBlock(), createElementBlock("div", _hoisted_1$w, [
23397
- createBaseVNode("div", _hoisted_2$p, [
23398
- createBaseVNode("label", _hoisted_3$j, toDisplayString(_ctx.options.label), 1),
23423
+ return openBlock(), createElementBlock("div", _hoisted_1$x, [
23424
+ createBaseVNode("div", _hoisted_2$q, [
23425
+ createBaseVNode("label", _hoisted_3$k, toDisplayString(_ctx.options.label), 1),
23399
23426
  withDirectives(createBaseVNode("select", {
23400
23427
  class: "lupa-select-dropdown",
23401
23428
  "aria-label": _ctx.options.label,
@@ -23418,12 +23445,12 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
23418
23445
  };
23419
23446
  }
23420
23447
  });
23421
- const _hoisted_1$v = { class: "lupa-toolbar-left" };
23422
- const _hoisted_2$o = {
23448
+ const _hoisted_1$w = { class: "lupa-toolbar-left" };
23449
+ const _hoisted_2$p = {
23423
23450
  key: 0,
23424
23451
  class: "lupa-toolbar-right-title"
23425
23452
  };
23426
- const _hoisted_3$i = { key: 2 };
23453
+ const _hoisted_3$j = { key: 2 };
23427
23454
  const _hoisted_4$c = { key: 4 };
23428
23455
  const _hoisted_5$7 = { key: 6 };
23429
23456
  const _hoisted_6$5 = { class: "lupa-toolbar-right" };
@@ -23433,7 +23460,7 @@ const _hoisted_7$3 = {
23433
23460
  };
23434
23461
  const _hoisted_8 = { key: 2 };
23435
23462
  const _hoisted_9 = { key: 4 };
23436
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
23463
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
23437
23464
  __name: "SearchResultsToolbar",
23438
23465
  props: {
23439
23466
  options: {},
@@ -23540,16 +23567,16 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
23540
23567
  id: "lupa-search-results-toolbar",
23541
23568
  class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
23542
23569
  }, [
23543
- createBaseVNode("div", _hoisted_1$v, [
23544
- toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$o, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
23545
- showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$F, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$i)),
23546
- showItemSummary.value ? (openBlock(), createBlock(_sfc_main$X, {
23570
+ createBaseVNode("div", _hoisted_1$w, [
23571
+ toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$p, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
23572
+ showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$G, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$j)),
23573
+ showItemSummary.value ? (openBlock(), createBlock(_sfc_main$Y, {
23547
23574
  key: 3,
23548
23575
  label: searchSummaryLabel.value,
23549
23576
  clearable: unref(hasAnyFilter) && showFilterClear.value,
23550
23577
  onClear: handleClearAll
23551
23578
  }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$c)),
23552
- displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$D, {
23579
+ displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$E, {
23553
23580
  key: 5,
23554
23581
  options: paginationOptions.value.pageSelect,
23555
23582
  "last-page-label": paginationOptions.value.labels.showMore,
@@ -23558,16 +23585,16 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
23558
23585
  ]),
23559
23586
  createBaseVNode("div", _hoisted_6$5, [
23560
23587
  toolbarRightLabel.value ? (openBlock(), createElementBlock("div", _hoisted_7$3, toDisplayString(toolbarRightLabel.value), 1)) : createCommentVNode("", true),
23561
- createVNode(_sfc_main$E, {
23588
+ createVNode(_sfc_main$F, {
23562
23589
  label: optionsValue.value.labels.mobileFilterButton,
23563
23590
  "show-filter-count": showMobileFilterCount.value
23564
23591
  }, null, 8, ["label", "show-filter-count"]),
23565
- paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$C, {
23592
+ paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$D, {
23566
23593
  key: 1,
23567
23594
  options: paginationOptions.value.pageSize,
23568
23595
  labels: paginationOptions.value.labels
23569
23596
  }, null, 8, ["options", "labels"])) : (openBlock(), createElementBlock("div", _hoisted_8)),
23570
- sortOptions.value ? (openBlock(), createBlock(_sfc_main$B, {
23597
+ sortOptions.value ? (openBlock(), createBlock(_sfc_main$C, {
23571
23598
  key: 3,
23572
23599
  options: sortOptions.value,
23573
23600
  callbacks: callbacks.value
@@ -23577,7 +23604,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
23577
23604
  };
23578
23605
  }
23579
23606
  });
23580
- const _sfc_main$z = /* @__PURE__ */ defineComponent({
23607
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
23581
23608
  __name: "SearchResultsProductImage",
23582
23609
  props: {
23583
23610
  item: {},
@@ -23585,7 +23612,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
23585
23612
  },
23586
23613
  setup(__props) {
23587
23614
  return (_ctx, _cache) => {
23588
- return openBlock(), createBlock(_sfc_main$1k, {
23615
+ return openBlock(), createBlock(_sfc_main$1l, {
23589
23616
  item: _ctx.item,
23590
23617
  options: _ctx.options,
23591
23618
  "wrapper-class": "lupa-search-results-image-wrapper",
@@ -23594,16 +23621,16 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
23594
23621
  };
23595
23622
  }
23596
23623
  });
23597
- const _hoisted_1$u = ["title", "innerHTML"];
23598
- const _hoisted_2$n = ["title"];
23599
- const _hoisted_3$h = ["href", "innerHTML"];
23624
+ const _hoisted_1$v = ["title", "innerHTML"];
23625
+ const _hoisted_2$o = ["title"];
23626
+ const _hoisted_3$i = ["href", "innerHTML"];
23600
23627
  const _hoisted_4$b = ["title"];
23601
23628
  const _hoisted_5$6 = {
23602
23629
  key: 0,
23603
23630
  class: "lupa-search-results-product-title-text"
23604
23631
  };
23605
23632
  const _hoisted_6$4 = ["href"];
23606
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
23633
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
23607
23634
  __name: "SearchResultsProductTitle",
23608
23635
  props: {
23609
23636
  item: {},
@@ -23640,7 +23667,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
23640
23667
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
23641
23668
  title: sanitizedTitle.value,
23642
23669
  innerHTML: sanitizedTitle.value
23643
- }, null, 12, _hoisted_1$u)) : isHtml.value && _ctx.options.link ? (openBlock(), createElementBlock("div", {
23670
+ }, null, 12, _hoisted_1$v)) : isHtml.value && _ctx.options.link ? (openBlock(), createElementBlock("div", {
23644
23671
  key: 1,
23645
23672
  class: "lupa-search-results-product-title",
23646
23673
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
@@ -23651,8 +23678,8 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
23651
23678
  class: "lupa-search-results-product-title-text lupa-title-link",
23652
23679
  innerHTML: sanitizedTitle.value,
23653
23680
  onClick: handleNavigation
23654
- }, null, 8, _hoisted_3$h)
23655
- ], 12, _hoisted_2$n)) : (openBlock(), createElementBlock("div", {
23681
+ }, null, 8, _hoisted_3$i)
23682
+ ], 12, _hoisted_2$o)) : (openBlock(), createElementBlock("div", {
23656
23683
  key: 2,
23657
23684
  class: "lupa-search-results-product-title",
23658
23685
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
@@ -23669,8 +23696,8 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
23669
23696
  };
23670
23697
  }
23671
23698
  });
23672
- const _hoisted_1$t = ["innerHTML"];
23673
- const _sfc_main$x = /* @__PURE__ */ defineComponent({
23699
+ const _hoisted_1$u = ["innerHTML"];
23700
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
23674
23701
  __name: "SearchResultsProductDescription",
23675
23702
  props: {
23676
23703
  item: {},
@@ -23697,7 +23724,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
23697
23724
  class: "lupa-search-results-product-description",
23698
23725
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
23699
23726
  innerHTML: sanitizedDescription.value
23700
- }, null, 12, _hoisted_1$t)) : (openBlock(), createElementBlock("div", {
23727
+ }, null, 12, _hoisted_1$u)) : (openBlock(), createElementBlock("div", {
23701
23728
  key: 1,
23702
23729
  class: "lupa-search-results-product-description",
23703
23730
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
@@ -23705,15 +23732,15 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
23705
23732
  };
23706
23733
  }
23707
23734
  });
23708
- const _hoisted_1$s = { id: "lupa-search-results-rating" };
23709
- const _hoisted_2$m = { class: "lupa-ratings" };
23710
- const _hoisted_3$g = { class: "lupa-ratings-base" };
23735
+ const _hoisted_1$t = { id: "lupa-search-results-rating" };
23736
+ const _hoisted_2$n = { class: "lupa-ratings" };
23737
+ const _hoisted_3$h = { class: "lupa-ratings-base" };
23711
23738
  const _hoisted_4$a = ["innerHTML"];
23712
23739
  const _hoisted_5$5 = { class: "lupa-rating-wrapper" };
23713
23740
  const _hoisted_6$3 = ["innerHTML"];
23714
23741
  const _hoisted_7$2 = ["href"];
23715
23742
  const STAR_COUNT = 5;
23716
- const _sfc_main$w = /* @__PURE__ */ defineComponent({
23743
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
23717
23744
  __name: "SearchResultsProductRating",
23718
23745
  props: {
23719
23746
  item: {},
@@ -23750,9 +23777,9 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
23750
23777
  return generateLink(props.options.links.ratingDetails, props.item);
23751
23778
  });
23752
23779
  return (_ctx, _cache) => {
23753
- return openBlock(), createElementBlock("div", _hoisted_1$s, [
23754
- createBaseVNode("div", _hoisted_2$m, [
23755
- createBaseVNode("div", _hoisted_3$g, [
23780
+ return openBlock(), createElementBlock("div", _hoisted_1$t, [
23781
+ createBaseVNode("div", _hoisted_2$n, [
23782
+ createBaseVNode("div", _hoisted_3$h, [
23756
23783
  (openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
23757
23784
  return openBlock(), createElementBlock("div", {
23758
23785
  key: index,
@@ -23784,11 +23811,11 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
23784
23811
  };
23785
23812
  }
23786
23813
  });
23787
- const _hoisted_1$r = {
23814
+ const _hoisted_1$s = {
23788
23815
  class: "lupa-search-results-product-regular-price",
23789
23816
  "data-cy": "lupa-search-results-product-regular-price"
23790
23817
  };
23791
- const _sfc_main$v = /* @__PURE__ */ defineComponent({
23818
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
23792
23819
  __name: "SearchResultsProductRegularPrice",
23793
23820
  props: {
23794
23821
  item: {},
@@ -23806,11 +23833,11 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
23806
23833
  );
23807
23834
  });
23808
23835
  return (_ctx, _cache) => {
23809
- return openBlock(), createElementBlock("div", _hoisted_1$r, toDisplayString(price.value), 1);
23836
+ return openBlock(), createElementBlock("div", _hoisted_1$s, toDisplayString(price.value), 1);
23810
23837
  };
23811
23838
  }
23812
23839
  });
23813
- const _sfc_main$u = /* @__PURE__ */ defineComponent({
23840
+ const _sfc_main$v = /* @__PURE__ */ defineComponent({
23814
23841
  __name: "SearchResultsProductPrice",
23815
23842
  props: {
23816
23843
  item: {},
@@ -23840,15 +23867,16 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
23840
23867
  };
23841
23868
  }
23842
23869
  });
23843
- const _hoisted_1$q = { class: "lupa-search-results-add-to-cart-wrapper" };
23844
- const _hoisted_2$l = { class: "lupa-search-results-product-addtocart" };
23845
- const _hoisted_3$f = ["id", "disabled", "onClick"];
23846
- const _sfc_main$t = /* @__PURE__ */ defineComponent({
23870
+ const _hoisted_1$r = { class: "lupa-search-results-add-to-cart-wrapper" };
23871
+ const _hoisted_2$m = { class: "lupa-search-results-product-addtocart" };
23872
+ const _hoisted_3$g = ["id", "disabled", "onClick"];
23873
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
23847
23874
  __name: "SearchResultsProductAddToCart",
23848
23875
  props: {
23849
23876
  item: {},
23850
23877
  options: {},
23851
- inStock: { type: Boolean }
23878
+ inStock: { type: Boolean },
23879
+ dynamicAttributes: {}
23852
23880
  },
23853
23881
  emits: ["productEvent"],
23854
23882
  setup(__props, { emit: emit2 }) {
@@ -23881,26 +23909,27 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
23881
23909
  loading.value = false;
23882
23910
  });
23883
23911
  return (_ctx, _cache) => {
23884
- return openBlock(), createElementBlock("div", _hoisted_1$q, [
23885
- createBaseVNode("div", _hoisted_2$l, [
23886
- createBaseVNode("button", {
23912
+ return openBlock(), createElementBlock("div", _hoisted_1$r, [
23913
+ createBaseVNode("div", _hoisted_2$m, [
23914
+ createBaseVNode("button", mergeProps({
23887
23915
  id: id.value,
23888
- class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
23916
+ class: loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart",
23889
23917
  "data-cy": "lupa-add-to-cart",
23890
- disabled: !inStockValue.value || loading.value,
23918
+ disabled: !inStockValue.value || loading.value
23919
+ }, _ctx.dynamicAttributes, {
23891
23920
  onClick: withModifiers(handleClick, ["stop"])
23892
- }, toDisplayString(label.value), 11, _hoisted_3$f)
23921
+ }), toDisplayString(label.value), 17, _hoisted_3$g)
23893
23922
  ])
23894
23923
  ]);
23895
23924
  };
23896
23925
  }
23897
23926
  });
23898
- const _hoisted_1$p = ["innerHTML"];
23899
- const _hoisted_2$k = { key: 0 };
23900
- const _hoisted_3$e = { key: 1 };
23927
+ const _hoisted_1$q = ["innerHTML"];
23928
+ const _hoisted_2$l = { key: 0 };
23929
+ const _hoisted_3$f = { key: 1 };
23901
23930
  const _hoisted_4$9 = { class: "lupa-search-box-custom-label" };
23902
23931
  const _hoisted_5$4 = { class: "lupa-search-box-custom-text" };
23903
- const _sfc_main$s = /* @__PURE__ */ defineComponent({
23932
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
23904
23933
  __name: "SearchResultsProductCustom",
23905
23934
  props: {
23906
23935
  item: {},
@@ -23938,11 +23967,11 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
23938
23967
  key: 0,
23939
23968
  class: className.value,
23940
23969
  innerHTML: text.value
23941
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$p)) : (openBlock(), createElementBlock("div", mergeProps({
23970
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$q)) : (openBlock(), createElementBlock("div", mergeProps({
23942
23971
  key: 1,
23943
23972
  class: className.value
23944
23973
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
23945
- !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$k, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$e, [
23974
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$l, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$f, [
23946
23975
  createBaseVNode("div", _hoisted_4$9, toDisplayString(label.value), 1),
23947
23976
  createBaseVNode("div", _hoisted_5$4, toDisplayString(text.value), 1)
23948
23977
  ]))
@@ -23950,8 +23979,8 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
23950
23979
  };
23951
23980
  }
23952
23981
  });
23953
- const _hoisted_1$o = ["innerHTML"];
23954
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
23982
+ const _hoisted_1$p = ["innerHTML"];
23983
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
23955
23984
  __name: "SearchResultsProductCustomHtmlElement",
23956
23985
  props: {
23957
23986
  item: {},
@@ -23982,15 +24011,15 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
23982
24011
  return openBlock(), createElementBlock("div", mergeProps({
23983
24012
  class: className.value,
23984
24013
  innerHTML: text.value
23985
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$o);
24014
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$p);
23986
24015
  };
23987
24016
  }
23988
24017
  });
23989
- const _hoisted_1$n = { id: "lupa-search-results-rating" };
23990
- const _hoisted_2$j = ["innerHTML"];
23991
- const _hoisted_3$d = { class: "lupa-ratings" };
24018
+ const _hoisted_1$o = { id: "lupa-search-results-rating" };
24019
+ const _hoisted_2$k = ["innerHTML"];
24020
+ const _hoisted_3$e = { class: "lupa-ratings" };
23992
24021
  const _hoisted_4$8 = ["href"];
23993
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
24022
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
23994
24023
  __name: "SearchResultsProductSingleStarRating",
23995
24024
  props: {
23996
24025
  item: {},
@@ -24018,12 +24047,12 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
24018
24047
  return RATING_STAR_HTML;
24019
24048
  });
24020
24049
  return (_ctx, _cache) => {
24021
- return openBlock(), createElementBlock("div", _hoisted_1$n, [
24050
+ return openBlock(), createElementBlock("div", _hoisted_1$o, [
24022
24051
  createBaseVNode("div", {
24023
24052
  innerHTML: star.value,
24024
24053
  class: "lupa-rating lupa-rating-highlighted"
24025
- }, null, 8, _hoisted_2$j),
24026
- createBaseVNode("div", _hoisted_3$d, toDisplayString(rating.value), 1),
24054
+ }, null, 8, _hoisted_2$k),
24055
+ createBaseVNode("div", _hoisted_3$e, toDisplayString(rating.value), 1),
24027
24056
  createBaseVNode("a", {
24028
24057
  href: ratingLink.value,
24029
24058
  class: "lupa-total-ratings"
@@ -24034,19 +24063,19 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
24034
24063
  });
24035
24064
  const __default__ = {
24036
24065
  components: {
24037
- SearchResultsProductImage: _sfc_main$z,
24038
- SearchResultsProductTitle: _sfc_main$y,
24039
- SearchResultsProductDescription: _sfc_main$x,
24040
- SearchResultsProductRating: _sfc_main$w,
24041
- SearchResultsProductRegularPrice: _sfc_main$v,
24042
- SearchResultsProductPrice: _sfc_main$u,
24043
- SearchResultsProductAddToCart: _sfc_main$t,
24044
- SearchResultsProductCustom: _sfc_main$s,
24045
- SearchResultsProductCustomHtmlElement: _sfc_main$r,
24046
- SearchResultsProductSingleStarRating: _sfc_main$q
24047
- }
24048
- };
24049
- const _sfc_main$p = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
24066
+ SearchResultsProductImage: _sfc_main$A,
24067
+ SearchResultsProductTitle: _sfc_main$z,
24068
+ SearchResultsProductDescription: _sfc_main$y,
24069
+ SearchResultsProductRating: _sfc_main$x,
24070
+ SearchResultsProductRegularPrice: _sfc_main$w,
24071
+ SearchResultsProductPrice: _sfc_main$v,
24072
+ SearchResultsProductAddToCart: _sfc_main$u,
24073
+ SearchResultsProductCustom: _sfc_main$t,
24074
+ SearchResultsProductCustomHtmlElement: _sfc_main$s,
24075
+ SearchResultsProductSingleStarRating: _sfc_main$r
24076
+ }
24077
+ };
24078
+ const _sfc_main$q = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
24050
24079
  __name: "SearchResultsProductCardElement",
24051
24080
  props: {
24052
24081
  item: {},
@@ -24085,6 +24114,9 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
24085
24114
  }
24086
24115
  return "searchResultsProductTitle";
24087
24116
  });
24117
+ const renderDynamicAttributesOnParentElement = computed(() => {
24118
+ return props.element.type !== DocumentElementType.ADDTOCART;
24119
+ });
24088
24120
  const enhancedItem = computed(() => {
24089
24121
  var _a, _b, _c, _d;
24090
24122
  if (!((_a = props.item) == null ? void 0 : _a.id)) {
@@ -24101,6 +24133,9 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
24101
24133
  }
24102
24134
  return typeof element.display === "function" ? element.display(item) : processDisplayCondition(element.display, item);
24103
24135
  });
24136
+ const dynamicAttributes = computed(() => {
24137
+ return getDynamicAttributes(props.element.dynamicAttributes, enhancedItem.value);
24138
+ });
24104
24139
  const handleProductEvent = (item) => {
24105
24140
  emit2("productEvent", item);
24106
24141
  };
@@ -24109,27 +24144,27 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
24109
24144
  };
24110
24145
  return (_ctx, _cache) => {
24111
24146
  var _a;
24112
- return displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), {
24147
+ return displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), mergeProps({
24113
24148
  key: 0,
24114
24149
  item: enhancedItem.value,
24115
24150
  options: _ctx.element,
24116
24151
  labels: _ctx.labels,
24117
24152
  inStock: _ctx.inStock,
24118
24153
  link: _ctx.link,
24119
- class: normalizeClass({ "lupa-loading-dynamic-data": isLoadingDynamicData((_a = _ctx.item) == null ? void 0 : _a.id) }),
24120
- onProductEvent: handleProductEvent
24121
- }, null, 40, ["item", "options", "labels", "inStock", "link", "class"])) : createCommentVNode("", true);
24154
+ class: { "lupa-loading-dynamic-data": isLoadingDynamicData((_a = _ctx.item) == null ? void 0 : _a.id) },
24155
+ "dynamic-attributes": dynamicAttributes.value
24156
+ }, renderDynamicAttributesOnParentElement.value && dynamicAttributes.value, { onProductEvent: handleProductEvent }), null, 16, ["item", "options", "labels", "inStock", "link", "class", "dynamic-attributes"])) : createCommentVNode("", true);
24122
24157
  };
24123
24158
  }
24124
24159
  }));
24125
- const _hoisted_1$m = ["onMouseup"];
24126
- const _hoisted_2$i = ["href"];
24127
- const _hoisted_3$c = {
24160
+ const _hoisted_1$n = ["onMouseup"];
24161
+ const _hoisted_2$j = ["href"];
24162
+ const _hoisted_3$d = {
24128
24163
  key: 0,
24129
24164
  class: "lupa-out-of-stock"
24130
24165
  };
24131
24166
  const _hoisted_4$7 = { class: "lupa-search-result-product-details-section" };
24132
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
24167
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
24133
24168
  __name: "SearchResultsProductCard",
24134
24169
  props: {
24135
24170
  product: {},
@@ -24290,7 +24325,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
24290
24325
  onClick: handleClick,
24291
24326
  onMouseup: withModifiers(handleClick, ["middle", "exact"])
24292
24327
  }), [
24293
- createVNode(_sfc_main$14, { options: badgesOptions.value }, null, 8, ["options"]),
24328
+ createVNode(_sfc_main$15, { options: badgesOptions.value }, null, 8, ["options"]),
24294
24329
  createBaseVNode("div", {
24295
24330
  class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
24296
24331
  }, [
@@ -24300,7 +24335,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
24300
24335
  onClick: handleNavigation
24301
24336
  }, [
24302
24337
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
24303
- return openBlock(), createBlock(_sfc_main$p, {
24338
+ return openBlock(), createBlock(_sfc_main$q, {
24304
24339
  class: "lupa-search-results-product-element",
24305
24340
  item: _ctx.product,
24306
24341
  element,
@@ -24311,16 +24346,16 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
24311
24346
  onProductEvent: handleProductEvent
24312
24347
  }, null, 8, ["item", "element", "labels", "inStock", "link"]);
24313
24348
  }), 128)),
24314
- createVNode(_sfc_main$14, {
24349
+ createVNode(_sfc_main$15, {
24315
24350
  options: badgesOptions.value,
24316
24351
  position: "image",
24317
24352
  class: "lupa-image-badges"
24318
24353
  }, null, 8, ["options"]),
24319
- ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_3$c, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
24320
- ], 8, _hoisted_2$i),
24354
+ ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_3$d, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
24355
+ ], 8, _hoisted_2$j),
24321
24356
  createBaseVNode("div", _hoisted_4$7, [
24322
24357
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
24323
- return openBlock(), createBlock(_sfc_main$p, {
24358
+ return openBlock(), createBlock(_sfc_main$q, {
24324
24359
  class: "lupa-search-results-product-element",
24325
24360
  item: _ctx.product,
24326
24361
  element,
@@ -24338,7 +24373,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
24338
24373
  class: normalizeClass("lupa-element-group-" + group)
24339
24374
  }, [
24340
24375
  (openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
24341
- return openBlock(), createBlock(_sfc_main$p, {
24376
+ return openBlock(), createBlock(_sfc_main$q, {
24342
24377
  class: "lupa-search-results-product-element",
24343
24378
  item: _ctx.product,
24344
24379
  element,
@@ -24352,16 +24387,16 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
24352
24387
  ], 2);
24353
24388
  }), 128))
24354
24389
  ], 2)
24355
- ], 16, _hoisted_1$m);
24390
+ ], 16, _hoisted_1$n);
24356
24391
  };
24357
24392
  }
24358
24393
  });
24359
- const _hoisted_1$l = {
24394
+ const _hoisted_1$m = {
24360
24395
  id: "lupa-search-results-similar-queries",
24361
24396
  "data-cy": "lupa-search-results-similar-queries"
24362
24397
  };
24363
- const _hoisted_2$h = { class: "lupa-similar-queries-label" };
24364
- const _hoisted_3$b = {
24398
+ const _hoisted_2$i = { class: "lupa-similar-queries-label" };
24399
+ const _hoisted_3$c = {
24365
24400
  class: "lupa-similar-query-label",
24366
24401
  "data-cy": "lupa-similar-query-label"
24367
24402
  };
@@ -24372,7 +24407,7 @@ const _hoisted_7$1 = {
24372
24407
  class: "lupa-products",
24373
24408
  "data-cy": "lupa-products"
24374
24409
  };
24375
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
24410
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
24376
24411
  __name: "SearchResultsSimilarQueries",
24377
24412
  props: {
24378
24413
  labels: {},
@@ -24402,11 +24437,11 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
24402
24437
  paramsStore.goToResults({ searchText, facet });
24403
24438
  };
24404
24439
  return (_ctx, _cache) => {
24405
- return openBlock(), createElementBlock("div", _hoisted_1$l, [
24406
- createBaseVNode("div", _hoisted_2$h, toDisplayString(_ctx.labels.similarQueries), 1),
24440
+ return openBlock(), createElementBlock("div", _hoisted_1$m, [
24441
+ createBaseVNode("div", _hoisted_2$i, toDisplayString(_ctx.labels.similarQueries), 1),
24407
24442
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
24408
24443
  return openBlock(), createElementBlock("div", { key: index }, [
24409
- createBaseVNode("div", _hoisted_3$b, [
24444
+ createBaseVNode("div", _hoisted_3$c, [
24410
24445
  createBaseVNode("span", null, toDisplayString(similarQueryLabel.value), 1),
24411
24446
  createBaseVNode("span", {
24412
24447
  id: "lupa-similar-query-text-component",
@@ -24422,7 +24457,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
24422
24457
  ]),
24423
24458
  createBaseVNode("div", _hoisted_7$1, [
24424
24459
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
24425
- return openBlock(), createBlock(_sfc_main$o, {
24460
+ return openBlock(), createBlock(_sfc_main$p, {
24426
24461
  style: normalizeStyle(_ctx.columnSize),
24427
24462
  key: getDocumentKey(index2, product),
24428
24463
  product,
@@ -24436,15 +24471,15 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
24436
24471
  };
24437
24472
  }
24438
24473
  });
24439
- const _hoisted_1$k = {
24474
+ const _hoisted_1$l = {
24440
24475
  key: 0,
24441
24476
  class: "lupa-results-additional-panel"
24442
24477
  };
24443
- const _hoisted_2$g = {
24478
+ const _hoisted_2$h = {
24444
24479
  class: "lupa-results-additional-panel-items",
24445
24480
  "data-cy": "lupa-results-additional-panel-items"
24446
24481
  };
24447
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
24482
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
24448
24483
  __name: "AdditionalPanel",
24449
24484
  props: {
24450
24485
  panel: {},
@@ -24517,10 +24552,10 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
24517
24552
  handleQueryChange();
24518
24553
  });
24519
24554
  return (_ctx, _cache) => {
24520
- return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$k, [
24521
- createBaseVNode("div", _hoisted_2$g, [
24555
+ return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$l, [
24556
+ createBaseVNode("div", _hoisted_2$h, [
24522
24557
  (openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
24523
- return openBlock(), createBlock(_sfc_main$o, {
24558
+ return openBlock(), createBlock(_sfc_main$p, {
24524
24559
  key: index,
24525
24560
  product: item,
24526
24561
  options: _ctx.panel,
@@ -24538,11 +24573,11 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
24538
24573
  };
24539
24574
  }
24540
24575
  });
24541
- const _hoisted_1$j = {
24576
+ const _hoisted_1$k = {
24542
24577
  key: 0,
24543
24578
  class: "lupa-results-additional-panels"
24544
24579
  };
24545
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
24580
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
24546
24581
  __name: "AdditionalPanels",
24547
24582
  props: {
24548
24583
  options: {},
@@ -24559,9 +24594,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
24559
24594
  return locationPanels.value.length > 0;
24560
24595
  });
24561
24596
  return (_ctx, _cache) => {
24562
- return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$j, [
24597
+ return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$k, [
24563
24598
  (openBlock(true), createElementBlock(Fragment, null, renderList(locationPanels.value, (panel) => {
24564
- return openBlock(), createBlock(_sfc_main$m, {
24599
+ return openBlock(), createBlock(_sfc_main$n, {
24565
24600
  key: panel.queryKey,
24566
24601
  panel,
24567
24602
  options: _ctx.sdkOptions
@@ -24578,29 +24613,29 @@ const _export_sfc = (sfc, props) => {
24578
24613
  }
24579
24614
  return target;
24580
24615
  };
24581
- const _sfc_main$k = {};
24582
- const _hoisted_1$i = { class: "lupa-spinner-wrapper" };
24583
- const _hoisted_2$f = { class: "lupa-spinner" };
24616
+ const _sfc_main$l = {};
24617
+ const _hoisted_1$j = { class: "lupa-spinner-wrapper" };
24618
+ const _hoisted_2$g = { class: "lupa-spinner" };
24584
24619
  function _sfc_render(_ctx, _cache) {
24585
- return openBlock(), createElementBlock("div", _hoisted_1$i, [
24586
- createBaseVNode("div", _hoisted_2$f, [
24620
+ return openBlock(), createElementBlock("div", _hoisted_1$j, [
24621
+ createBaseVNode("div", _hoisted_2$g, [
24587
24622
  (openBlock(), createElementBlock(Fragment, null, renderList(12, (x2) => {
24588
24623
  return createBaseVNode("div", { key: x2 });
24589
24624
  }), 64))
24590
24625
  ])
24591
24626
  ]);
24592
24627
  }
24593
- const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render]]);
24594
- const _hoisted_1$h = {
24628
+ const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render]]);
24629
+ const _hoisted_1$i = {
24595
24630
  id: "lupa-search-results-similar-results",
24596
24631
  "data-cy": "lupa-search-results-similar-results"
24597
24632
  };
24598
- const _hoisted_2$e = { class: "lupa-similar-results-label" };
24599
- const _hoisted_3$a = {
24633
+ const _hoisted_2$f = { class: "lupa-similar-results-label" };
24634
+ const _hoisted_3$b = {
24600
24635
  class: "lupa-products",
24601
24636
  "data-cy": "lupa-products"
24602
24637
  };
24603
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
24638
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
24604
24639
  __name: "SearchResultsSimilarResults",
24605
24640
  props: {
24606
24641
  columnSize: {},
@@ -24616,11 +24651,11 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
24616
24651
  return getProductKey(`${index}`, product, props.productCardOptions.idKey);
24617
24652
  };
24618
24653
  return (_ctx, _cache) => {
24619
- return openBlock(), createElementBlock("div", _hoisted_1$h, [
24620
- createBaseVNode("div", _hoisted_2$e, toDisplayString(_ctx.labels.similarResultsLabel), 1),
24621
- createBaseVNode("div", _hoisted_3$a, [
24654
+ return openBlock(), createElementBlock("div", _hoisted_1$i, [
24655
+ createBaseVNode("div", _hoisted_2$f, toDisplayString(_ctx.labels.similarResultsLabel), 1),
24656
+ createBaseVNode("div", _hoisted_3$b, [
24622
24657
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarResults.value.items, (product, index) => {
24623
- return openBlock(), createBlock(_sfc_main$o, {
24658
+ return openBlock(), createBlock(_sfc_main$p, {
24624
24659
  style: normalizeStyle(_ctx.columnSize),
24625
24660
  key: getDocumentKey(index, product),
24626
24661
  product,
@@ -24656,15 +24691,15 @@ const extractRelatedSource = (source, searchResults2) => {
24656
24691
  return extractFacetsRelatedSource(source, searchResults2);
24657
24692
  }
24658
24693
  };
24659
- const _hoisted_1$g = { class: "lupa-related-query-item" };
24660
- const _hoisted_2$d = { class: "lupa-related-query-image" };
24661
- const _hoisted_3$9 = { class: "lupa-related-query-label" };
24694
+ const _hoisted_1$h = { class: "lupa-related-query-item" };
24695
+ const _hoisted_2$e = { class: "lupa-related-query-image" };
24696
+ const _hoisted_3$a = { class: "lupa-related-query-label" };
24662
24697
  const _hoisted_4$5 = { class: "lupa-related-query-title" };
24663
24698
  const _hoisted_5$2 = {
24664
24699
  key: 0,
24665
24700
  class: "lupa-related-query-count"
24666
24701
  };
24667
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
24702
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
24668
24703
  __name: "RelatedQueryPanel",
24669
24704
  props: {
24670
24705
  query: {},
@@ -24675,7 +24710,9 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
24675
24710
  const loading = ref(false);
24676
24711
  const relatedQueryResult = ref(null);
24677
24712
  const optionsStore = useOptionsStore();
24713
+ const searchResultStore = useSearchResultStore();
24678
24714
  const { searchResultOptions } = storeToRefs(optionsStore);
24715
+ const { searchResult } = storeToRefs(searchResultStore);
24679
24716
  const mainImage = computed(() => {
24680
24717
  var _a, _b, _c;
24681
24718
  return (_c = (_b = (_a = searchResultOptions.value) == null ? void 0 : _a.elements) == null ? void 0 : _b.find((e2) => e2.type === DocumentElementType.IMAGE)) != null ? _c : "";
@@ -24700,24 +24737,34 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
24700
24737
  var _a, _b;
24701
24738
  return (_b = (_a = relatedQueryResult.value) == null ? void 0 : _a.total) != null ? _b : 0;
24702
24739
  });
24740
+ const searchText = computed(() => {
24741
+ var _a, _b, _c;
24742
+ return ((_a = props.options.source) == null ? void 0 : _a.mode) === "filter" ? (_b = searchResult.value) == null ? void 0 : _b.searchText : (_c = props.query) == null ? void 0 : _c.toLowerCase();
24743
+ });
24744
+ const relatedQueryFilters = computed(() => {
24745
+ var _a, _b, _c;
24746
+ return ((_a = props.options.source) == null ? void 0 : _a.mode) === "filter" ? {
24747
+ [(_c = (_b = props.options) == null ? void 0 : _b.source) == null ? void 0 : _c.key]: [props.query]
24748
+ } : {};
24749
+ });
24703
24750
  const searchForRelatedQuery = () => __async2(this, null, function* () {
24704
- var _a, _b, _c, _d;
24751
+ var _a, _b, _c;
24705
24752
  if (!props.query) {
24706
24753
  return;
24707
24754
  }
24708
- const lupaQuery = { searchText: (_a = props.query) == null ? void 0 : _a.toLowerCase(), limit: 1 };
24755
+ const lupaQuery = { searchText: searchText.value, limit: 1, filters: relatedQueryFilters.value };
24709
24756
  try {
24710
24757
  loading.value = true;
24711
24758
  const result2 = yield LupaSearchSdk.query(
24712
24759
  queryKey.value,
24713
24760
  lupaQuery,
24714
- (_b = searchResultOptions.value) == null ? void 0 : _b.options
24761
+ (_a = searchResultOptions.value) == null ? void 0 : _a.options
24715
24762
  );
24716
24763
  if (result2.success) {
24717
24764
  relatedQueryResult.value = result2;
24718
24765
  }
24719
24766
  } catch (error) {
24720
- (_d = (_c = searchResultOptions.value) == null ? void 0 : _c.options) == null ? void 0 : _d.onError(error);
24767
+ (_c = (_b = searchResultOptions.value) == null ? void 0 : _b.options) == null ? void 0 : _c.onError(error);
24721
24768
  } finally {
24722
24769
  loading.value = false;
24723
24770
  }
@@ -24733,9 +24780,9 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
24733
24780
  });
24734
24781
  return (_ctx, _cache) => {
24735
24782
  var _a;
24736
- return openBlock(), createElementBlock("div", _hoisted_1$g, [
24737
- createBaseVNode("div", _hoisted_2$d, [
24738
- firstResultItem.value && image.value ? (openBlock(), createBlock(_sfc_main$1k, {
24783
+ return openBlock(), createElementBlock("div", _hoisted_1$h, [
24784
+ createBaseVNode("div", _hoisted_2$e, [
24785
+ firstResultItem.value && image.value ? (openBlock(), createBlock(_sfc_main$1l, {
24739
24786
  key: 0,
24740
24787
  "wrapper-class": "lupa-related-query-image-wrapper",
24741
24788
  "image-class": "lupa-related-query-image",
@@ -24743,7 +24790,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
24743
24790
  options: image.value
24744
24791
  }, null, 8, ["item", "options"])) : createCommentVNode("", true)
24745
24792
  ]),
24746
- createBaseVNode("div", _hoisted_3$9, [
24793
+ createBaseVNode("div", _hoisted_3$a, [
24747
24794
  createBaseVNode("span", _hoisted_4$5, toDisplayString(_ctx.query), 1),
24748
24795
  ((_a = _ctx.options) == null ? void 0 : _a.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$2, "(" + toDisplayString(totalItemCount.value) + ")", 1)) : createCommentVNode("", true)
24749
24796
  ])
@@ -24751,16 +24798,16 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
24751
24798
  };
24752
24799
  }
24753
24800
  });
24754
- const _hoisted_1$f = {
24801
+ const _hoisted_1$g = {
24755
24802
  key: 0,
24756
24803
  class: "lupa-related-queries"
24757
24804
  };
24758
- const _hoisted_2$c = {
24805
+ const _hoisted_2$d = {
24759
24806
  key: 0,
24760
24807
  class: "lupa-related-queries-title"
24761
24808
  };
24762
- const _hoisted_3$8 = ["onClick"];
24763
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
24809
+ const _hoisted_3$9 = ["onClick"];
24810
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
24764
24811
  __name: "RelatedQueries",
24765
24812
  props: {
24766
24813
  options: {}
@@ -24769,12 +24816,18 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
24769
24816
  const props = __props;
24770
24817
  const searchResultStore = useSearchResultStore();
24771
24818
  const paramsStore = useParamsStore();
24819
+ const optionsStore = useOptionsStore();
24772
24820
  const { searchResult } = storeToRefs(searchResultStore);
24821
+ const currentSearchText = computed(() => {
24822
+ var _a, _b;
24823
+ return (_b = (_a = searchResult.value) == null ? void 0 : _a.searchText) != null ? _b : "";
24824
+ });
24773
24825
  const relatedQueries = computed(() => {
24774
24826
  if (!props.options || !searchResult.value) {
24775
24827
  return [];
24776
24828
  }
24777
- return extractRelatedSource(props.options.source, searchResult.value);
24829
+ const queries = extractRelatedSource(props.options.source, searchResult.value);
24830
+ return queries;
24778
24831
  });
24779
24832
  const hasEnoughRelatedQueries = computed(() => {
24780
24833
  return relatedQueries.value.length > 1;
@@ -24782,28 +24835,130 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
24782
24835
  const goToResults = ({ searchText }) => {
24783
24836
  paramsStore.goToResults({ searchText });
24784
24837
  };
24838
+ const handleRelatedQueryClick = (query) => {
24839
+ var _a;
24840
+ if (((_a = props.options.source) == null ? void 0 : _a.mode) === "filter") {
24841
+ handleFilter(query);
24842
+ } else {
24843
+ goToResults({ searchText: query });
24844
+ }
24845
+ };
24846
+ const handleFilter = (query) => {
24847
+ var _a, _b;
24848
+ const facet = (_b = (_a = searchResult.value) == null ? void 0 : _a.facets) == null ? void 0 : _b.find(
24849
+ (facet2) => {
24850
+ var _a2, _b2;
24851
+ return facet2.key === ((_b2 = (_a2 = props.options) == null ? void 0 : _a2.source) == null ? void 0 : _b2.key);
24852
+ }
24853
+ );
24854
+ if (!facet || facet.type !== "terms") {
24855
+ return [];
24856
+ }
24857
+ toggleTermFilter(
24858
+ paramsStore.appendParams,
24859
+ { type: "terms", key: facet.key, value: query },
24860
+ optionsStore.getQueryParamName,
24861
+ {}
24862
+ );
24863
+ };
24864
+ const getSelectedFilterClass = (query) => {
24865
+ var _a, _b, _c, _d, _e, _f;
24866
+ if (((_a = props.options.source) == null ? void 0 : _a.mode) !== "filter") {
24867
+ return "";
24868
+ }
24869
+ return Array.isArray((_c = (_b = searchResult.value) == null ? void 0 : _b.filters) == null ? void 0 : _c[props.options.source.key]) && ((_f = (_e = (_d = searchResult.value) == null ? void 0 : _d.filters) == null ? void 0 : _e[props.options.source.key]) == null ? void 0 : _f.includes(
24870
+ query
24871
+ )) ? "lupa-selected-related-query-filter" : "";
24872
+ };
24785
24873
  return (_ctx, _cache) => {
24786
24874
  var _a, _b, _c, _d;
24787
- return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
24788
- ((_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) ? (openBlock(), createElementBlock("h3", _hoisted_2$c, toDisplayString((_d = (_c = _ctx.options) == null ? void 0 : _c.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
24875
+ return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
24876
+ ((_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) ? (openBlock(), createElementBlock("h3", _hoisted_2$d, toDisplayString((_d = (_c = _ctx.options) == null ? void 0 : _c.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
24789
24877
  createBaseVNode("ul", null, [
24790
24878
  (openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries.value, (query) => {
24791
- return openBlock(), createElementBlock("li", { key: query }, [
24879
+ return openBlock(), createElementBlock("li", {
24880
+ key: query + currentSearchText.value,
24881
+ class: normalizeClass(getSelectedFilterClass(query))
24882
+ }, [
24792
24883
  createBaseVNode("a", {
24793
- onClick: ($event) => goToResults({ searchText: query })
24884
+ onClick: ($event) => handleRelatedQueryClick(query)
24794
24885
  }, [
24795
- createVNode(_sfc_main$i, {
24886
+ createVNode(_sfc_main$j, {
24796
24887
  options: _ctx.options,
24797
24888
  query
24798
24889
  }, null, 8, ["options", "query"])
24799
- ], 8, _hoisted_3$8)
24800
- ]);
24890
+ ], 8, _hoisted_3$9)
24891
+ ], 2);
24801
24892
  }), 128))
24802
24893
  ])
24803
24894
  ])) : createCommentVNode("", true);
24804
24895
  };
24805
24896
  }
24806
24897
  });
24898
+ const checkHasMatchCharacters = (option, searchText) => {
24899
+ var _a, _b;
24900
+ return (_b = (_a = option.matchCharacters) == null ? void 0 : _a.split("")) == null ? void 0 : _b.some((char) => searchText.includes(char));
24901
+ };
24902
+ const checkHasMatchWords = (option, searchText) => {
24903
+ var _a;
24904
+ return (_a = searchText.split(" ")) == null ? void 0 : _a.some((word) => {
24905
+ var _a2;
24906
+ return (_a2 = option.matchWords) == null ? void 0 : _a2.includes(word);
24907
+ });
24908
+ };
24909
+ const extractRedirectionSuggestion = (searchText = "", options) => {
24910
+ for (const option of options || []) {
24911
+ const hasMatchCharacters = option.matchCharacters;
24912
+ const hasMatchWords = option.matchWords;
24913
+ if (hasMatchCharacters && !hasMatchWords && checkHasMatchCharacters(option, searchText)) {
24914
+ return option;
24915
+ }
24916
+ if (hasMatchWords && !hasMatchCharacters && checkHasMatchWords(option, searchText)) {
24917
+ return option;
24918
+ }
24919
+ if (hasMatchCharacters && hasMatchWords && checkHasMatchCharacters(option, searchText) && checkHasMatchWords(option, searchText)) {
24920
+ return option;
24921
+ }
24922
+ }
24923
+ return null;
24924
+ };
24925
+ const _hoisted_1$f = {
24926
+ key: 0,
24927
+ class: "lupa-redirection-suggestion"
24928
+ };
24929
+ const _hoisted_2$c = { class: "lupa-redirections-suggestion-label" };
24930
+ const _hoisted_3$8 = ["href"];
24931
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
24932
+ __name: "RedirectionSuggestions",
24933
+ props: {
24934
+ options: {}
24935
+ },
24936
+ setup(__props) {
24937
+ const props = __props;
24938
+ const searchResultStore = useSearchResultStore();
24939
+ const optionsStore = useOptionsStore();
24940
+ const { searchResult } = storeToRefs(searchResultStore);
24941
+ const searchText = computed(() => searchResult.value.searchText);
24942
+ const redirectionSuggestion = computed(() => {
24943
+ return extractRedirectionSuggestion(searchText.value, props.options);
24944
+ });
24945
+ const label = computed(() => addParamsToLabel(redirectionSuggestion.value.label, searchText.value));
24946
+ const link = computed(
24947
+ () => generateResultLink(
24948
+ redirectionSuggestion.value.link,
24949
+ optionsStore.getQueryParamName,
24950
+ searchText.value
24951
+ )
24952
+ );
24953
+ return (_ctx, _cache) => {
24954
+ return redirectionSuggestion.value && label.value && link.value ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
24955
+ createBaseVNode("h4", _hoisted_2$c, [
24956
+ createBaseVNode("a", { href: link.value }, toDisplayString(label.value), 9, _hoisted_3$8)
24957
+ ])
24958
+ ])) : createCommentVNode("", true);
24959
+ };
24960
+ }
24961
+ });
24807
24962
  const _hoisted_1$e = { id: "lupa-search-results-products" };
24808
24963
  const _hoisted_2$b = {
24809
24964
  class: "lupa-products",
@@ -24933,27 +25088,30 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
24933
25088
  key: 0,
24934
25089
  class: "lupa-loader"
24935
25090
  })) : createCommentVNode("", true),
24936
- createVNode(_sfc_main$l, {
25091
+ createVNode(_sfc_main$h, {
25092
+ options: _ctx.options.redirectionSuggestions
25093
+ }, null, 8, ["options"]),
25094
+ createVNode(_sfc_main$m, {
24937
25095
  options: _ctx.options,
24938
25096
  location: "top",
24939
25097
  sdkOptions: _ctx.options.options
24940
25098
  }, null, 8, ["options", "sdkOptions"]),
24941
- createVNode(_sfc_main$h, {
25099
+ createVNode(_sfc_main$i, {
24942
25100
  options: _ctx.options.relatedQueries
24943
25101
  }, null, 8, ["options"]),
24944
25102
  unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
24945
- showTopFilters.value ? (openBlock(), createBlock(_sfc_main$G, {
25103
+ showTopFilters.value ? (openBlock(), createBlock(_sfc_main$H, {
24946
25104
  key: 0,
24947
25105
  options: (_a = _ctx.options.filters) != null ? _a : {}
24948
25106
  }, null, 8, ["options"])) : createCommentVNode("", true),
24949
- showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$A, {
25107
+ showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$B, {
24950
25108
  key: 1,
24951
25109
  class: "lupa-toolbar-mobile",
24952
25110
  options: _ctx.options,
24953
25111
  "pagination-location": "top",
24954
25112
  onFilter: filter2
24955
25113
  }, null, 8, ["options"])) : createCommentVNode("", true),
24956
- currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$U, {
25114
+ currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$V, {
24957
25115
  key: 2,
24958
25116
  class: normalizeClass(currentFiltersClass.value),
24959
25117
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -24962,12 +25120,12 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
24962
25120
  }, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true)
24963
25121
  ], 64)) : createCommentVNode("", true),
24964
25122
  unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
24965
- createVNode(_sfc_main$A, {
25123
+ createVNode(_sfc_main$B, {
24966
25124
  class: "lupa-toolbar-top",
24967
25125
  options: _ctx.options,
24968
25126
  "pagination-location": "top"
24969
25127
  }, null, 8, ["options"]),
24970
- currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$U, {
25128
+ currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$V, {
24971
25129
  key: 0,
24972
25130
  class: normalizeClass(currentFiltersClass.value),
24973
25131
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -24983,7 +25141,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
24983
25141
  options: productCardOptions.value
24984
25142
  });
24985
25143
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
24986
- return openBlock(), createBlock(_sfc_main$o, {
25144
+ return openBlock(), createBlock(_sfc_main$p, {
24987
25145
  style: normalizeStyle(columnSize.value),
24988
25146
  key: getProductKeyAction(index, product),
24989
25147
  product,
@@ -24999,12 +25157,12 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
24999
25157
  onClick: goToFirstPage
25000
25158
  }, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
25001
25159
  ])) : createCommentVNode("", true),
25002
- createVNode(_sfc_main$A, {
25160
+ createVNode(_sfc_main$B, {
25003
25161
  class: "lupa-toolbar-bottom",
25004
25162
  options: _ctx.options,
25005
25163
  "pagination-location": "bottom"
25006
25164
  }, null, 8, ["options"]),
25007
- createVNode(_sfc_main$l, {
25165
+ createVNode(_sfc_main$m, {
25008
25166
  options: _ctx.options,
25009
25167
  location: "bottom",
25010
25168
  sdkOptions: _ctx.options.options
@@ -25014,14 +25172,14 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
25014
25172
  createBaseVNode("span", null, toDisplayString(unref(currentQueryText)), 1)
25015
25173
  ])) : createCommentVNode("", true),
25016
25174
  hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
25017
- createVNode(_sfc_main$n, {
25175
+ createVNode(_sfc_main$o, {
25018
25176
  labels: similarQueriesLabels.value,
25019
25177
  columnSize: columnSize.value,
25020
25178
  productCardOptions: productCardOptions.value
25021
25179
  }, null, 8, ["labels", "columnSize", "productCardOptions"])
25022
25180
  ])) : createCommentVNode("", true),
25023
25181
  hasSimilarResults.value ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
25024
- createVNode(_sfc_main$j, {
25182
+ createVNode(_sfc_main$k, {
25025
25183
  labels: similarResultsLabels.value,
25026
25184
  columnSize: columnSize.value,
25027
25185
  productCardOptions: productCardOptions.value
@@ -25090,14 +25248,14 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
25090
25248
  ])) : createCommentVNode("", true),
25091
25249
  createBaseVNode("div", _hoisted_4$3, [
25092
25250
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
25093
- return openBlock(), createBlock(_sfc_main$T, {
25251
+ return openBlock(), createBlock(_sfc_main$U, {
25094
25252
  key: getCategoryKey(child),
25095
25253
  item: child,
25096
25254
  options: categoryOptions.value
25097
25255
  }, null, 8, ["item", "options"]);
25098
25256
  }), 128))
25099
25257
  ]),
25100
- createVNode(_sfc_main$A, {
25258
+ createVNode(_sfc_main$B, {
25101
25259
  class: "lupa-toolbar-mobile",
25102
25260
  "pagination-location": "top",
25103
25261
  options: _ctx.options
@@ -25329,8 +25487,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
25329
25487
  class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
25330
25488
  }, [
25331
25489
  _ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
25332
- createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
25333
- createVNode(_sfc_main$W, {
25490
+ createVNode(_sfc_main$Z, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
25491
+ createVNode(_sfc_main$X, {
25334
25492
  "show-summary": true,
25335
25493
  options: _ctx.options,
25336
25494
  "is-product-list": (_a = _ctx.isProductList) != null ? _a : false
@@ -25340,17 +25498,17 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
25340
25498
  key: 1,
25341
25499
  options: _ctx.options
25342
25500
  }, null, 8, ["options"])) : createCommentVNode("", true),
25343
- _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$I, {
25501
+ _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$J, {
25344
25502
  key: 2,
25345
25503
  options: _ctx.options.filters,
25346
25504
  onFilter: handleParamsChange
25347
25505
  }, null, 8, ["options"])) : createCommentVNode("", true),
25348
- unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$H, {
25506
+ unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$I, {
25349
25507
  key: 3,
25350
25508
  breadcrumbs: _ctx.options.breadcrumbs
25351
25509
  }, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
25352
25510
  isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
25353
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$J, {
25511
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$K, {
25354
25512
  key: 0,
25355
25513
  options: (_b = _ctx.options.filters) != null ? _b : {},
25356
25514
  ref_key: "searchResultsFilters",
@@ -25358,8 +25516,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
25358
25516
  onFilter: handleParamsChange
25359
25517
  }, null, 8, ["options"])) : createCommentVNode("", true),
25360
25518
  createBaseVNode("div", _hoisted_3$5, [
25361
- createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
25362
- createVNode(_sfc_main$W, {
25519
+ createVNode(_sfc_main$Z, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
25520
+ createVNode(_sfc_main$X, {
25363
25521
  options: _ctx.options,
25364
25522
  "is-product-list": (_c = _ctx.isProductList) != null ? _c : false
25365
25523
  }, null, 8, ["options", "is-product-list"]),
@@ -25375,13 +25533,13 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
25375
25533
  }, 8, ["options", "ssr"])
25376
25534
  ])
25377
25535
  ])) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
25378
- createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
25379
- createVNode(_sfc_main$W, {
25536
+ createVNode(_sfc_main$Z, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
25537
+ createVNode(_sfc_main$X, {
25380
25538
  options: _ctx.options,
25381
25539
  "is-product-list": (_d = _ctx.isProductList) != null ? _d : false
25382
25540
  }, null, 8, ["options", "is-product-list"]),
25383
25541
  createBaseVNode("div", _hoisted_4$2, [
25384
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$J, {
25542
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$K, {
25385
25543
  key: 0,
25386
25544
  options: (_e = _ctx.options.filters) != null ? _e : {},
25387
25545
  ref_key: "searchResultsFilters",
@@ -31071,7 +31229,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
31071
31229
  onClick: withModifiers(innerClick, ["stop"])
31072
31230
  }, [
31073
31231
  createBaseVNode("div", _hoisted_2$7, [
31074
- createVNode(_sfc_main$Z, {
31232
+ createVNode(_sfc_main$_, {
31075
31233
  options: fullSearchBoxOptions.value,
31076
31234
  "is-search-container": true,
31077
31235
  ref_key: "searchBox",
@@ -31961,7 +32119,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
31961
32119
  key: getProductKeyAction(index, product)
31962
32120
  }, {
31963
32121
  default: withCtx(() => [
31964
- createVNode(_sfc_main$o, {
32122
+ createVNode(_sfc_main$p, {
31965
32123
  product,
31966
32124
  options: _ctx.options,
31967
32125
  "click-tracking-settings": clickTrackingSettings.value
@@ -31974,7 +32132,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
31974
32132
  _: 1
31975
32133
  }, 16)) : (openBlock(), createElementBlock("div", _hoisted_3$4, [
31976
32134
  (openBlock(true), createElementBlock(Fragment, null, renderList(recommendations2.value, (product, index) => {
31977
- return openBlock(), createBlock(_sfc_main$o, {
32135
+ return openBlock(), createBlock(_sfc_main$p, {
31978
32136
  style: normalizeStyle(columnSize.value),
31979
32137
  key: getProductKeyAction(index, product),
31980
32138
  product,
@@ -32238,7 +32396,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
32238
32396
  createBaseVNode("a", {
32239
32397
  href: getLink(product)
32240
32398
  }, [
32241
- createVNode(_sfc_main$z, {
32399
+ createVNode(_sfc_main$A, {
32242
32400
  item: product,
32243
32401
  options: image.value
32244
32402
  }, null, 8, ["item", "options"])
@@ -32402,7 +32560,7 @@ const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
32402
32560
  return (_ctx, _cache) => {
32403
32561
  return openBlock(), createElementBlock("section", _hoisted_1$3, [
32404
32562
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
32405
- return openBlock(), createBlock(_sfc_main$o, {
32563
+ return openBlock(), createBlock(_sfc_main$p, {
32406
32564
  class: "lupa-chat-product-card",
32407
32565
  key: getProductKeyAction(index, product),
32408
32566
  product,
@@ -32595,7 +32753,7 @@ const _hoisted_4 = {
32595
32753
  key: 0,
32596
32754
  class: "lupasearch-chat-content"
32597
32755
  };
32598
- const _sfc_main$1t = /* @__PURE__ */ defineComponent({
32756
+ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
32599
32757
  __name: "ChatContainer",
32600
32758
  props: {
32601
32759
  options: {}
@@ -38613,7 +38771,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
38613
38771
  };
38614
38772
  __expose({ fetch: fetch2 });
38615
38773
  return (_ctx, _cache) => {
38616
- return openBlock(), createBlock(unref(_sfc_main$Z), {
38774
+ return openBlock(), createBlock(unref(_sfc_main$_), {
38617
38775
  options: fullSearchBoxOptions.value,
38618
38776
  ref_key: "searchBox",
38619
38777
  ref: searchBox2
@@ -39168,7 +39326,7 @@ const chat = (options, mountOptions) => {
39168
39326
  const instance = createVue(
39169
39327
  options.displayOptions.containerSelector,
39170
39328
  mountOptions == null ? void 0 : mountOptions.mountingBehavior,
39171
- _sfc_main$1t,
39329
+ _sfc_main$1u,
39172
39330
  {
39173
39331
  options
39174
39332
  }