@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.
@@ -8192,7 +8192,11 @@ var __async = (__this, __arguments, generator) => {
8192
8192
  try {
8193
8193
  localStorage.setItem(
8194
8194
  CACHE_KEY,
8195
- JSON.stringify({ redirections: redirections.value, savedAt: Date.now() })
8195
+ JSON.stringify({
8196
+ redirections: redirections.value,
8197
+ savedAt: Date.now(),
8198
+ queryKey: redirectionOptions.value.queryKey
8199
+ })
8196
8200
  );
8197
8201
  } catch (e2) {
8198
8202
  }
@@ -8203,6 +8207,9 @@ var __async = (__this, __arguments, generator) => {
8203
8207
  return false;
8204
8208
  try {
8205
8209
  const data = JSON.parse((_a = localStorage.getItem(CACHE_KEY)) != null ? _a : "");
8210
+ if (data.queryKey !== config.queryKey) {
8211
+ return false;
8212
+ }
8206
8213
  if ((data == null ? void 0 : data.redirections) && Date.now() - data.savedAt < 1e3 * config.cacheSeconds) {
8207
8214
  redirections.value = data.redirections;
8208
8215
  return true;
@@ -8227,6 +8234,7 @@ var __async = (__this, __arguments, generator) => {
8227
8234
  try {
8228
8235
  const result2 = yield LupaSearchSdk.loadRedirectionRules(config.queryKey, options);
8229
8236
  if (!((_d = result2 == null ? void 0 : result2.rules) == null ? void 0 : _d.length)) {
8237
+ redirections.value = { rules: [] };
8230
8238
  return;
8231
8239
  }
8232
8240
  redirections.value = result2;
@@ -8664,9 +8672,9 @@ var __async = (__this, __arguments, generator) => {
8664
8672
  resetHighlightIndex
8665
8673
  };
8666
8674
  });
8667
- const _hoisted_1$1g = { id: "lupa-search-box-input-container" };
8668
- const _hoisted_2$U = { class: "lupa-input-clear" };
8669
- const _hoisted_3$D = { id: "lupa-search-box-input" };
8675
+ const _hoisted_1$1h = { id: "lupa-search-box-input-container" };
8676
+ const _hoisted_2$V = { class: "lupa-input-clear" };
8677
+ const _hoisted_3$E = { id: "lupa-search-box-input" };
8670
8678
  const _hoisted_4$t = ["value"];
8671
8679
  const _hoisted_5$j = ["aria-label", "placeholder"];
8672
8680
  const _hoisted_6$9 = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
@@ -8677,7 +8685,7 @@ var __async = (__this, __arguments, generator) => {
8677
8685
  key: 0,
8678
8686
  class: "lupa-close-label"
8679
8687
  };
8680
- const _sfc_main$1s = /* @__PURE__ */ defineComponent({
8688
+ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
8681
8689
  __name: "SearchBoxInput",
8682
8690
  props: {
8683
8691
  options: {},
@@ -8761,14 +8769,14 @@ var __async = (__this, __arguments, generator) => {
8761
8769
  };
8762
8770
  __expose({ focus });
8763
8771
  return (_ctx, _cache) => {
8764
- return openBlock(), createElementBlock("div", _hoisted_1$1g, [
8765
- createBaseVNode("div", _hoisted_2$U, [
8772
+ return openBlock(), createElementBlock("div", _hoisted_1$1h, [
8773
+ createBaseVNode("div", _hoisted_2$V, [
8766
8774
  createBaseVNode("div", {
8767
8775
  class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
8768
8776
  onClick: clear2
8769
8777
  }, null, 2)
8770
8778
  ]),
8771
- createBaseVNode("div", _hoisted_3$D, [
8779
+ createBaseVNode("div", _hoisted_3$E, [
8772
8780
  createBaseVNode("input", {
8773
8781
  class: "lupa-hint",
8774
8782
  "aria-hidden": "true",
@@ -8807,7 +8815,7 @@ var __async = (__this, __arguments, generator) => {
8807
8815
  };
8808
8816
  }
8809
8817
  });
8810
- const _sfc_main$1r = /* @__PURE__ */ defineComponent({
8818
+ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
8811
8819
  __name: "SearchBoxMoreResults",
8812
8820
  props: {
8813
8821
  labels: {},
@@ -8839,9 +8847,9 @@ var __async = (__this, __arguments, generator) => {
8839
8847
  };
8840
8848
  }
8841
8849
  });
8842
- const _hoisted_1$1f = { class: "lupa-search-box-history-item" };
8843
- const _hoisted_2$T = { class: "lupa-search-box-history-item-content" };
8844
- const _sfc_main$1q = /* @__PURE__ */ defineComponent({
8850
+ const _hoisted_1$1g = { class: "lupa-search-box-history-item" };
8851
+ const _hoisted_2$U = { class: "lupa-search-box-history-item-content" };
8852
+ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
8845
8853
  __name: "SearchBoxHistoryItem",
8846
8854
  props: {
8847
8855
  item: {},
@@ -8857,8 +8865,8 @@ var __async = (__this, __arguments, generator) => {
8857
8865
  emit2("click", { query: props.item });
8858
8866
  };
8859
8867
  return (_ctx, _cache) => {
8860
- return openBlock(), createElementBlock("div", _hoisted_1$1f, [
8861
- createBaseVNode("div", _hoisted_2$T, [
8868
+ return openBlock(), createElementBlock("div", _hoisted_1$1g, [
8869
+ createBaseVNode("div", _hoisted_2$U, [
8862
8870
  createBaseVNode("div", {
8863
8871
  class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
8864
8872
  onClick: click2
@@ -8872,11 +8880,11 @@ var __async = (__this, __arguments, generator) => {
8872
8880
  };
8873
8881
  }
8874
8882
  });
8875
- const _hoisted_1$1e = {
8883
+ const _hoisted_1$1f = {
8876
8884
  key: 0,
8877
8885
  class: "lupa-search-box-history-panel"
8878
8886
  };
8879
- const _sfc_main$1p = /* @__PURE__ */ defineComponent({
8887
+ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
8880
8888
  __name: "SearchBoxHistoryPanel",
8881
8889
  props: {
8882
8890
  options: {}
@@ -8917,9 +8925,9 @@ var __async = (__this, __arguments, generator) => {
8917
8925
  }
8918
8926
  };
8919
8927
  return (_ctx, _cache) => {
8920
- return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1e, [
8928
+ return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1f, [
8921
8929
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(history), (item, index) => {
8922
- return openBlock(), createBlock(_sfc_main$1q, {
8930
+ return openBlock(), createBlock(_sfc_main$1r, {
8923
8931
  key: item,
8924
8932
  item,
8925
8933
  highlighted: index === highlightIndex.value,
@@ -8935,15 +8943,15 @@ var __async = (__this, __arguments, generator) => {
8935
8943
  };
8936
8944
  }
8937
8945
  });
8938
- const _hoisted_1$1d = { class: "lupa-search-box-no-results" };
8939
- const _sfc_main$1o = /* @__PURE__ */ defineComponent({
8946
+ const _hoisted_1$1e = { class: "lupa-search-box-no-results" };
8947
+ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
8940
8948
  __name: "SearchBoxNoResults",
8941
8949
  props: {
8942
8950
  labels: {}
8943
8951
  },
8944
8952
  setup(__props) {
8945
8953
  return (_ctx, _cache) => {
8946
- return openBlock(), createElementBlock("p", _hoisted_1$1d, toDisplayString(_ctx.labels.noResults), 1);
8954
+ return openBlock(), createElementBlock("p", _hoisted_1$1e, toDisplayString(_ctx.labels.noResults), 1);
8947
8955
  };
8948
8956
  }
8949
8957
  });
@@ -8975,13 +8983,13 @@ var __async = (__this, __arguments, generator) => {
8975
8983
  }
8976
8984
  return gridTemplate.join(" ");
8977
8985
  };
8978
- const _hoisted_1$1c = ["innerHTML"];
8979
- const _hoisted_2$S = {
8986
+ const _hoisted_1$1d = ["innerHTML"];
8987
+ const _hoisted_2$T = {
8980
8988
  key: 1,
8981
8989
  "data-cy": "lupa-suggestion-value",
8982
8990
  class: "lupa-suggestion-value"
8983
8991
  };
8984
- const _hoisted_3$C = {
8992
+ const _hoisted_3$D = {
8985
8993
  key: 2,
8986
8994
  class: "lupa-suggestion-facet",
8987
8995
  "data-cy": "lupa-suggestion-facet"
@@ -8994,7 +9002,7 @@ var __async = (__this, __arguments, generator) => {
8994
9002
  class: "lupa-suggestion-facet-value",
8995
9003
  "data-cy": "lupa-suggestion-facet-value"
8996
9004
  };
8997
- const _sfc_main$1n = /* @__PURE__ */ defineComponent({
9005
+ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
8998
9006
  __name: "SearchBoxSuggestion",
8999
9007
  props: {
9000
9008
  suggestion: {},
@@ -9030,8 +9038,8 @@ var __async = (__this, __arguments, generator) => {
9030
9038
  class: "lupa-suggestion-value",
9031
9039
  "data-cy": "lupa-suggestion-value",
9032
9040
  innerHTML: _ctx.suggestion.displayHighlight
9033
- }, null, 8, _hoisted_1$1c)) : (openBlock(), createElementBlock("div", _hoisted_2$S, toDisplayString(_ctx.suggestion.display), 1)),
9034
- _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$C, [
9041
+ }, null, 8, _hoisted_1$1d)) : (openBlock(), createElementBlock("div", _hoisted_2$T, toDisplayString(_ctx.suggestion.display), 1)),
9042
+ _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$D, [
9035
9043
  createBaseVNode("span", _hoisted_4$s, toDisplayString(facetLabel.value), 1),
9036
9044
  createBaseVNode("span", _hoisted_5$i, toDisplayString(_ctx.suggestion.facet.title), 1)
9037
9045
  ])) : createCommentVNode("", true)
@@ -9039,11 +9047,11 @@ var __async = (__this, __arguments, generator) => {
9039
9047
  };
9040
9048
  }
9041
9049
  });
9042
- const _hoisted_1$1b = {
9050
+ const _hoisted_1$1c = {
9043
9051
  id: "lupa-search-box-suggestions",
9044
9052
  "data-cy": "lupa-search-box-suggestions"
9045
9053
  };
9046
- const _sfc_main$1m = /* @__PURE__ */ defineComponent({
9054
+ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
9047
9055
  __name: "SearchBoxSuggestions",
9048
9056
  props: {
9049
9057
  items: {},
@@ -9103,9 +9111,9 @@ var __async = (__this, __arguments, generator) => {
9103
9111
  });
9104
9112
  });
9105
9113
  return (_ctx, _cache) => {
9106
- return openBlock(), createElementBlock("div", _hoisted_1$1b, [
9114
+ return openBlock(), createElementBlock("div", _hoisted_1$1c, [
9107
9115
  (openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
9108
- return openBlock(), createBlock(_sfc_main$1n, {
9116
+ return openBlock(), createBlock(_sfc_main$1o, {
9109
9117
  key: getSuggestionKey(item),
9110
9118
  class: normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
9111
9119
  suggestion: item,
@@ -9133,7 +9141,7 @@ var __async = (__this, __arguments, generator) => {
9133
9141
  }, timeout);
9134
9142
  };
9135
9143
  };
9136
- const _sfc_main$1l = /* @__PURE__ */ defineComponent({
9144
+ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
9137
9145
  __name: "SearchBoxSuggestionsWrapper",
9138
9146
  props: {
9139
9147
  panel: {},
@@ -9175,7 +9183,7 @@ var __async = (__this, __arguments, generator) => {
9175
9183
  const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
9176
9184
  watch(() => props.panel.limit, getSuggestionsDebounced);
9177
9185
  return (_ctx, _cache) => {
9178
- return openBlock(), createBlock(_sfc_main$1m, {
9186
+ return openBlock(), createBlock(_sfc_main$1n, {
9179
9187
  items: searchResult.value,
9180
9188
  highlight: _ctx.panel.highlight,
9181
9189
  queryKey: _ctx.panel.queryKey,
@@ -18171,6 +18179,17 @@ and ensure you are accounting for this risk.
18171
18179
  const rendered = mustache.render(template, document2);
18172
18180
  return sanitizeHtml$1(rendered);
18173
18181
  };
18182
+ const getDynamicAttributes = (dynamicAttributes = [], document2 = {}) => {
18183
+ var _a, _b;
18184
+ const parsedAttributes = {};
18185
+ for (const attribute of dynamicAttributes) {
18186
+ if (!((_a = attribute == null ? void 0 : attribute.key) == null ? void 0 : _a.startsWith("data-"))) {
18187
+ continue;
18188
+ }
18189
+ parsedAttributes[attribute == null ? void 0 : attribute.key] = escapeHtml$1(mustache.render((_b = attribute == null ? void 0 : attribute.value) != null ? _b : "", document2));
18190
+ }
18191
+ return parsedAttributes;
18192
+ };
18174
18193
  const getFieldValue = (doc2, field = "") => {
18175
18194
  var _a;
18176
18195
  if (typeof field === "number") {
@@ -18253,9 +18272,9 @@ and ensure you are accounting for this risk.
18253
18272
  targetImage.src = placeholder;
18254
18273
  }
18255
18274
  };
18256
- const _hoisted_1$1a = ["src"];
18257
- const _hoisted_2$R = ["src"];
18258
- const _sfc_main$1k = /* @__PURE__ */ defineComponent({
18275
+ const _hoisted_1$1b = ["src"];
18276
+ const _hoisted_2$S = ["src"];
18277
+ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
18259
18278
  __name: "ProductImage",
18260
18279
  props: {
18261
18280
  item: {},
@@ -18397,7 +18416,7 @@ and ensure you are accounting for this risk.
18397
18416
  }, { alt: imageAlt.value ? imageAlt.value : void 0 }, {
18398
18417
  onError: replaceWithPlaceholder,
18399
18418
  key: finalUrl.value
18400
- }), null, 16, _hoisted_1$1a))
18419
+ }), null, 16, _hoisted_1$1b))
18401
18420
  ]),
18402
18421
  _: 1
18403
18422
  })) : (openBlock(), createElementBlock("img", mergeProps({
@@ -18405,12 +18424,12 @@ and ensure you are accounting for this risk.
18405
18424
  class: ["lupa-images-main-image", { [_ctx.imageClass]: true }],
18406
18425
  style: styleOverride.value,
18407
18426
  src: finalMainImageUrl.value
18408
- }, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$R))
18427
+ }, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$S))
18409
18428
  ], 38);
18410
18429
  };
18411
18430
  }
18412
18431
  });
18413
- const _sfc_main$1j = /* @__PURE__ */ defineComponent({
18432
+ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
18414
18433
  __name: "SearchBoxProductImage",
18415
18434
  props: {
18416
18435
  item: {},
@@ -18418,7 +18437,7 @@ and ensure you are accounting for this risk.
18418
18437
  },
18419
18438
  setup(__props) {
18420
18439
  return (_ctx, _cache) => {
18421
- return openBlock(), createBlock(_sfc_main$1k, {
18440
+ return openBlock(), createBlock(_sfc_main$1l, {
18422
18441
  item: _ctx.item,
18423
18442
  options: _ctx.options,
18424
18443
  "wrapper-class": "lupa-search-box-image-wrapper",
@@ -18427,12 +18446,12 @@ and ensure you are accounting for this risk.
18427
18446
  };
18428
18447
  }
18429
18448
  });
18430
- const _hoisted_1$19 = ["innerHTML"];
18431
- const _hoisted_2$Q = {
18449
+ const _hoisted_1$1a = ["innerHTML"];
18450
+ const _hoisted_2$R = {
18432
18451
  key: 1,
18433
18452
  class: "lupa-search-box-product-title"
18434
18453
  };
18435
- const _sfc_main$1i = /* @__PURE__ */ defineComponent({
18454
+ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
18436
18455
  __name: "SearchBoxProductTitle",
18437
18456
  props: {
18438
18457
  item: {},
@@ -18455,18 +18474,18 @@ and ensure you are accounting for this risk.
18455
18474
  key: 0,
18456
18475
  class: "lupa-search-box-product-title",
18457
18476
  innerHTML: sanitizedTitle.value
18458
- }, null, 8, _hoisted_1$19)) : (openBlock(), createElementBlock("div", _hoisted_2$Q, [
18477
+ }, null, 8, _hoisted_1$1a)) : (openBlock(), createElementBlock("div", _hoisted_2$R, [
18459
18478
  createBaseVNode("strong", null, toDisplayString(title.value), 1)
18460
18479
  ]));
18461
18480
  };
18462
18481
  }
18463
18482
  });
18464
- const _hoisted_1$18 = ["innerHTML"];
18465
- const _hoisted_2$P = {
18483
+ const _hoisted_1$19 = ["innerHTML"];
18484
+ const _hoisted_2$Q = {
18466
18485
  key: 1,
18467
18486
  class: "lupa-search-box-product-description"
18468
18487
  };
18469
- const _sfc_main$1h = /* @__PURE__ */ defineComponent({
18488
+ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
18470
18489
  __name: "SearchBoxProductDescription",
18471
18490
  props: {
18472
18491
  item: {},
@@ -18489,12 +18508,12 @@ and ensure you are accounting for this risk.
18489
18508
  key: 0,
18490
18509
  class: "lupa-search-box-product-description",
18491
18510
  innerHTML: sanitizedDescription.value
18492
- }, null, 8, _hoisted_1$18)) : (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(description.value), 1));
18511
+ }, null, 8, _hoisted_1$19)) : (openBlock(), createElementBlock("div", _hoisted_2$Q, toDisplayString(description.value), 1));
18493
18512
  };
18494
18513
  }
18495
18514
  });
18496
- const _hoisted_1$17 = { class: "lupa-search-box-product-price" };
18497
- const _sfc_main$1g = /* @__PURE__ */ defineComponent({
18515
+ const _hoisted_1$18 = { class: "lupa-search-box-product-price" };
18516
+ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
18498
18517
  __name: "SearchBoxProductPrice",
18499
18518
  props: {
18500
18519
  item: {},
@@ -18512,13 +18531,13 @@ and ensure you are accounting for this risk.
18512
18531
  );
18513
18532
  });
18514
18533
  return (_ctx, _cache) => {
18515
- return openBlock(), createElementBlock("div", _hoisted_1$17, [
18534
+ return openBlock(), createElementBlock("div", _hoisted_1$18, [
18516
18535
  createBaseVNode("strong", null, toDisplayString(price.value), 1)
18517
18536
  ]);
18518
18537
  };
18519
18538
  }
18520
18539
  });
18521
- const _sfc_main$1f = /* @__PURE__ */ defineComponent({
18540
+ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
18522
18541
  __name: "SearchBoxProductRegularPrice",
18523
18542
  props: {
18524
18543
  item: {},
@@ -18545,12 +18564,12 @@ and ensure you are accounting for this risk.
18545
18564
  };
18546
18565
  }
18547
18566
  });
18548
- const _hoisted_1$16 = ["innerHTML"];
18549
- const _hoisted_2$O = { key: 0 };
18550
- const _hoisted_3$B = { key: 1 };
18567
+ const _hoisted_1$17 = ["innerHTML"];
18568
+ const _hoisted_2$P = { key: 0 };
18569
+ const _hoisted_3$C = { key: 1 };
18551
18570
  const _hoisted_4$r = { class: "lupa-search-box-custom-label" };
18552
18571
  const _hoisted_5$h = { class: "lupa-search-box-custom-text" };
18553
- const _sfc_main$1e = /* @__PURE__ */ defineComponent({
18572
+ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
18554
18573
  __name: "SearchBoxProductCustom",
18555
18574
  props: {
18556
18575
  item: {},
@@ -18576,11 +18595,11 @@ and ensure you are accounting for this risk.
18576
18595
  key: 0,
18577
18596
  class: [className.value, "lupa-search-box-product-custom"],
18578
18597
  innerHTML: text.value
18579
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$16)) : (openBlock(), createElementBlock("div", mergeProps({
18598
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$17)) : (openBlock(), createElementBlock("div", mergeProps({
18580
18599
  key: 1,
18581
18600
  class: [className.value, "lupa-search-box-product-custom"]
18582
18601
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
18583
- !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$O, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$B, [
18602
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$C, [
18584
18603
  createBaseVNode("div", _hoisted_4$r, toDisplayString(label.value), 1),
18585
18604
  createBaseVNode("div", _hoisted_5$h, toDisplayString(text.value), 1)
18586
18605
  ]))
@@ -18588,8 +18607,8 @@ and ensure you are accounting for this risk.
18588
18607
  };
18589
18608
  }
18590
18609
  });
18591
- const _hoisted_1$15 = ["innerHTML"];
18592
- const _sfc_main$1d = /* @__PURE__ */ defineComponent({
18610
+ const _hoisted_1$16 = ["innerHTML"];
18611
+ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
18593
18612
  __name: "SearchBoxProductCustomHtml",
18594
18613
  props: {
18595
18614
  item: {},
@@ -18614,7 +18633,7 @@ and ensure you are accounting for this risk.
18614
18633
  return openBlock(), createElementBlock("div", mergeProps({
18615
18634
  class: className.value,
18616
18635
  innerHTML: text.value
18617
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$15);
18636
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$16);
18618
18637
  };
18619
18638
  }
18620
18639
  });
@@ -18848,15 +18867,16 @@ and ensure you are accounting for this risk.
18848
18867
  setRelatedCategoryChildren
18849
18868
  };
18850
18869
  });
18851
- const _hoisted_1$14 = { class: "lupa-search-box-add-to-cart-wrapper" };
18852
- const _hoisted_2$N = { class: "lupa-search-box-product-addtocart" };
18853
- const _hoisted_3$A = ["onClick", "disabled"];
18854
- const _sfc_main$1c = /* @__PURE__ */ defineComponent({
18870
+ const _hoisted_1$15 = { class: "lupa-search-box-add-to-cart-wrapper" };
18871
+ const _hoisted_2$O = { class: "lupa-search-box-product-addtocart" };
18872
+ const _hoisted_3$B = ["onClick", "disabled"];
18873
+ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
18855
18874
  __name: "SearchBoxProductAddToCart",
18856
18875
  props: {
18857
18876
  item: {},
18858
18877
  options: {},
18859
- inStock: { type: Boolean }
18878
+ inStock: { type: Boolean },
18879
+ dynamicAttributes: {}
18860
18880
  },
18861
18881
  emits: ["productEvent"],
18862
18882
  setup(__props, { emit: emit2 }) {
@@ -18884,37 +18904,37 @@ and ensure you are accounting for this risk.
18884
18904
  loading.value = false;
18885
18905
  });
18886
18906
  return (_ctx, _cache) => {
18887
- return openBlock(), createElementBlock("div", _hoisted_1$14, [
18888
- createBaseVNode("div", _hoisted_2$N, [
18889
- createBaseVNode("button", {
18907
+ return openBlock(), createElementBlock("div", _hoisted_1$15, [
18908
+ createBaseVNode("div", _hoisted_2$O, [
18909
+ createBaseVNode("button", mergeProps({
18890
18910
  onClick: withModifiers(handleClick, ["stop", "prevent"]),
18891
- class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
18911
+ class: loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart",
18892
18912
  "data-cy": "lupa-add-to-cart",
18893
18913
  type: "button",
18894
18914
  disabled: !inStockValue.value || loading.value
18895
- }, toDisplayString(label.value), 11, _hoisted_3$A)
18915
+ }, _ctx.dynamicAttributes), toDisplayString(label.value), 17, _hoisted_3$B)
18896
18916
  ])
18897
18917
  ]);
18898
18918
  };
18899
18919
  }
18900
18920
  });
18901
- const _hoisted_1$13 = {
18921
+ const _hoisted_1$14 = {
18902
18922
  key: 1,
18903
18923
  class: "lupa-search-box-element-badge-wrapper"
18904
18924
  };
18905
18925
  const __default__$4 = {
18906
18926
  components: {
18907
- SearchBoxProductImage: _sfc_main$1j,
18908
- SearchBoxProductTitle: _sfc_main$1i,
18909
- SearchBoxProductDescription: _sfc_main$1h,
18910
- SearchBoxProductPrice: _sfc_main$1g,
18911
- SearchBoxProductRegularPrice: _sfc_main$1f,
18912
- SearchBoxProductCustom: _sfc_main$1e,
18913
- SearchBoxProductCustomHtml: _sfc_main$1d,
18914
- SearchBoxProductAddToCart: _sfc_main$1c
18927
+ SearchBoxProductImage: _sfc_main$1k,
18928
+ SearchBoxProductTitle: _sfc_main$1j,
18929
+ SearchBoxProductDescription: _sfc_main$1i,
18930
+ SearchBoxProductPrice: _sfc_main$1h,
18931
+ SearchBoxProductRegularPrice: _sfc_main$1g,
18932
+ SearchBoxProductCustom: _sfc_main$1f,
18933
+ SearchBoxProductCustomHtml: _sfc_main$1e,
18934
+ SearchBoxProductAddToCart: _sfc_main$1d
18915
18935
  }
18916
18936
  };
18917
- const _sfc_main$1b = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
18937
+ const _sfc_main$1c = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
18918
18938
  __name: "SearchBoxProductElement",
18919
18939
  props: {
18920
18940
  item: {},
@@ -18947,6 +18967,9 @@ and ensure you are accounting for this risk.
18947
18967
  }
18948
18968
  return "search-box-product-title";
18949
18969
  });
18970
+ const renderDynamicAttributesOnParentElement = computed(() => {
18971
+ return props.element.type !== DocumentElementType.ADDTOCART;
18972
+ });
18950
18973
  const displayElement = computed(() => {
18951
18974
  const element = props.element;
18952
18975
  const item = props.item;
@@ -18963,21 +18986,25 @@ and ensure you are accounting for this risk.
18963
18986
  const enhancementData = (_d = (_c = dynamicDataIdMap.value) == null ? void 0 : _c[(_b = props.item) == null ? void 0 : _b.id]) != null ? _d : {};
18964
18987
  return __spreadValues2(__spreadValues2({}, props.item), enhancementData);
18965
18988
  });
18989
+ const dynamicAttributes = computed(() => {
18990
+ return getDynamicAttributes(props.element.dynamicAttributes, enhancedItem.value);
18991
+ });
18966
18992
  const isLoadingDynamicData = (id) => {
18967
18993
  return Boolean(props.element.dynamic && id && loading.value && (loadingIds == null ? void 0 : loadingIds.value[id]));
18968
18994
  };
18969
18995
  return (_ctx, _cache) => {
18970
18996
  var _a, _b;
18971
18997
  return !_ctx.$slots.badges ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
18972
- displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), {
18998
+ displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), mergeProps({
18973
18999
  key: 0,
18974
19000
  item: enhancedItem.value,
18975
19001
  options: _ctx.element,
18976
19002
  labels: _ctx.labels,
18977
- class: normalizeClass({ "lupa-loading-dynamic-data": isLoadingDynamicData((_a = _ctx.item) == null ? void 0 : _a.id) }),
18978
- inStock: _ctx.isInStock
18979
- }, null, 8, ["item", "options", "labels", "class", "inStock"])) : createCommentVNode("", true)
18980
- ], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$13, [
19003
+ class: { "lupa-loading-dynamic-data": isLoadingDynamicData((_a = _ctx.item) == null ? void 0 : _a.id) },
19004
+ inStock: _ctx.isInStock,
19005
+ "dynamic-attributes": dynamicAttributes.value
19006
+ }, renderDynamicAttributesOnParentElement.value && dynamicAttributes.value), null, 16, ["item", "options", "labels", "class", "inStock", "dynamic-attributes"])) : createCommentVNode("", true)
19007
+ ], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$14, [
18981
19008
  displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), {
18982
19009
  key: 0,
18983
19010
  item: enhancedItem.value,
@@ -18991,14 +19018,14 @@ and ensure you are accounting for this risk.
18991
19018
  };
18992
19019
  }
18993
19020
  }));
18994
- const _hoisted_1$12 = { class: "lupa-badge-title" };
18995
- const _hoisted_2$M = ["src"];
18996
- const _hoisted_3$z = { key: 1 };
19021
+ const _hoisted_1$13 = { class: "lupa-badge-title" };
19022
+ const _hoisted_2$N = ["src"];
19023
+ const _hoisted_3$A = { key: 1 };
18997
19024
  const _hoisted_4$q = {
18998
19025
  key: 0,
18999
19026
  class: "lupa-badge-full-text"
19000
19027
  };
19001
- const _sfc_main$1a = /* @__PURE__ */ defineComponent({
19028
+ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
19002
19029
  __name: "SearchResultGeneratedBadge",
19003
19030
  props: {
19004
19031
  options: {},
@@ -19031,20 +19058,20 @@ and ensure you are accounting for this risk.
19031
19058
  class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
19032
19059
  style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
19033
19060
  }, [
19034
- createBaseVNode("span", _hoisted_1$12, [
19061
+ createBaseVNode("span", _hoisted_1$13, [
19035
19062
  image.value ? (openBlock(), createElementBlock("img", {
19036
19063
  key: 0,
19037
19064
  src: image.value
19038
- }, null, 8, _hoisted_2$M)) : createCommentVNode("", true),
19039
- hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$z, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
19065
+ }, null, 8, _hoisted_2$N)) : createCommentVNode("", true),
19066
+ hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$A, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
19040
19067
  ]),
19041
19068
  hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$q, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
19042
19069
  ], 6);
19043
19070
  };
19044
19071
  }
19045
19072
  });
19046
- const _hoisted_1$11 = { class: "lupa-generated-badges" };
19047
- const _sfc_main$19 = /* @__PURE__ */ defineComponent({
19073
+ const _hoisted_1$12 = { class: "lupa-generated-badges" };
19074
+ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
19048
19075
  __name: "SearchResultGeneratedBadges",
19049
19076
  props: {
19050
19077
  options: {}
@@ -19070,9 +19097,9 @@ and ensure you are accounting for this risk.
19070
19097
  })).filter((b) => Boolean(b.id));
19071
19098
  });
19072
19099
  return (_ctx, _cache) => {
19073
- return openBlock(), createElementBlock("div", _hoisted_1$11, [
19100
+ return openBlock(), createElementBlock("div", _hoisted_1$12, [
19074
19101
  (openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
19075
- return openBlock(), createBlock(_sfc_main$1a, {
19102
+ return openBlock(), createBlock(_sfc_main$1b, {
19076
19103
  key: badge.id,
19077
19104
  badge,
19078
19105
  options: _ctx.options
@@ -19082,8 +19109,8 @@ and ensure you are accounting for this risk.
19082
19109
  };
19083
19110
  }
19084
19111
  });
19085
- const _hoisted_1$10 = ["innerHTML"];
19086
- const _sfc_main$18 = /* @__PURE__ */ defineComponent({
19112
+ const _hoisted_1$11 = ["innerHTML"];
19113
+ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
19087
19114
  __name: "CustomBadge",
19088
19115
  props: {
19089
19116
  badge: {}
@@ -19104,12 +19131,12 @@ and ensure you are accounting for this risk.
19104
19131
  return openBlock(), createElementBlock("div", {
19105
19132
  class: normalizeClass(className.value),
19106
19133
  innerHTML: text.value
19107
- }, null, 10, _hoisted_1$10);
19134
+ }, null, 10, _hoisted_1$11);
19108
19135
  };
19109
19136
  }
19110
19137
  });
19111
- const _hoisted_1$$ = { class: "lupa-text-badges" };
19112
- const _sfc_main$17 = /* @__PURE__ */ defineComponent({
19138
+ const _hoisted_1$10 = { class: "lupa-text-badges" };
19139
+ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
19113
19140
  __name: "TextBadge",
19114
19141
  props: {
19115
19142
  badge: {}
@@ -19123,7 +19150,7 @@ and ensure you are accounting for this risk.
19123
19150
  return badges.value.slice(0, props.badge.maxItems);
19124
19151
  });
19125
19152
  return (_ctx, _cache) => {
19126
- return openBlock(), createElementBlock("div", _hoisted_1$$, [
19153
+ return openBlock(), createElementBlock("div", _hoisted_1$10, [
19127
19154
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
19128
19155
  return openBlock(), createElementBlock("div", {
19129
19156
  class: "lupa-badge lupa-text-badge",
@@ -19134,9 +19161,9 @@ and ensure you are accounting for this risk.
19134
19161
  };
19135
19162
  }
19136
19163
  });
19137
- const _hoisted_1$_ = { class: "lupa-image-badges" };
19138
- const _hoisted_2$L = ["src"];
19139
- const _sfc_main$16 = /* @__PURE__ */ defineComponent({
19164
+ const _hoisted_1$$ = { class: "lupa-image-badges" };
19165
+ const _hoisted_2$M = ["src"];
19166
+ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
19140
19167
  __name: "ImageBadge",
19141
19168
  props: {
19142
19169
  badge: {}
@@ -19156,7 +19183,7 @@ and ensure you are accounting for this risk.
19156
19183
  return `${props.badge.rootImageUrl}${src}`;
19157
19184
  };
19158
19185
  return (_ctx, _cache) => {
19159
- return openBlock(), createElementBlock("div", _hoisted_1$_, [
19186
+ return openBlock(), createElementBlock("div", _hoisted_1$$, [
19160
19187
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
19161
19188
  return openBlock(), createElementBlock("div", {
19162
19189
  class: "lupa-badge lupa-image-badge",
@@ -19164,14 +19191,14 @@ and ensure you are accounting for this risk.
19164
19191
  }, [
19165
19192
  createBaseVNode("img", {
19166
19193
  src: getImageUrl(item)
19167
- }, null, 8, _hoisted_2$L)
19194
+ }, null, 8, _hoisted_2$M)
19168
19195
  ]);
19169
19196
  }), 128))
19170
19197
  ]);
19171
19198
  };
19172
19199
  }
19173
19200
  });
19174
- const _sfc_main$15 = /* @__PURE__ */ defineComponent({
19201
+ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
19175
19202
  __name: "DiscountBadge",
19176
19203
  props: {
19177
19204
  badge: {}
@@ -19229,16 +19256,16 @@ and ensure you are accounting for this risk.
19229
19256
  };
19230
19257
  }
19231
19258
  });
19232
- const _hoisted_1$Z = { id: "lupa-search-results-badges" };
19259
+ const _hoisted_1$_ = { id: "lupa-search-results-badges" };
19233
19260
  const __default__$3 = {
19234
19261
  components: {
19235
- CustomBadge: _sfc_main$18,
19236
- TextBadge: _sfc_main$17,
19237
- ImageBadge: _sfc_main$16,
19238
- DiscountBadge: _sfc_main$15
19262
+ CustomBadge: _sfc_main$19,
19263
+ TextBadge: _sfc_main$18,
19264
+ ImageBadge: _sfc_main$17,
19265
+ DiscountBadge: _sfc_main$16
19239
19266
  }
19240
19267
  };
19241
- const _sfc_main$14 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
19268
+ const _sfc_main$15 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
19242
19269
  __name: "SearchResultsBadgeWrapper",
19243
19270
  props: {
19244
19271
  position: {},
@@ -19301,7 +19328,7 @@ and ensure you are accounting for this risk.
19301
19328
  }
19302
19329
  };
19303
19330
  return (_ctx, _cache) => {
19304
- return openBlock(), createElementBlock("div", _hoisted_1$Z, [
19331
+ return openBlock(), createElementBlock("div", _hoisted_1$_, [
19305
19332
  createBaseVNode("div", {
19306
19333
  id: "lupa-badges",
19307
19334
  class: normalizeClass(anchorPosition.value)
@@ -19312,7 +19339,7 @@ and ensure you are accounting for this risk.
19312
19339
  badge
19313
19340
  }, null, 8, ["badge"]);
19314
19341
  }), 128)),
19315
- positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$19, {
19342
+ positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$1a, {
19316
19343
  key: 0,
19317
19344
  options: _ctx.options
19318
19345
  }, null, 8, ["options"])) : createCommentVNode("", true)
@@ -19321,13 +19348,13 @@ and ensure you are accounting for this risk.
19321
19348
  };
19322
19349
  }
19323
19350
  }));
19324
- const _hoisted_1$Y = ["href"];
19325
- const _hoisted_2$K = { class: "lupa-search-box-product-details-section" };
19326
- const _hoisted_3$y = {
19351
+ const _hoisted_1$Z = ["href"];
19352
+ const _hoisted_2$L = { class: "lupa-search-box-product-details-section" };
19353
+ const _hoisted_3$z = {
19327
19354
  key: 0,
19328
19355
  class: "lupa-search-box-product-add-to-cart-section"
19329
19356
  };
19330
- const _sfc_main$13 = /* @__PURE__ */ defineComponent({
19357
+ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
19331
19358
  __name: "SearchBoxProduct",
19332
19359
  props: {
19333
19360
  item: {},
@@ -19413,7 +19440,7 @@ and ensure you are accounting for this risk.
19413
19440
  style: normalizeStyle(imageStyleOverride.value)
19414
19441
  }, [
19415
19442
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
19416
- return openBlock(), createBlock(_sfc_main$1b, {
19443
+ return openBlock(), createBlock(_sfc_main$1c, {
19417
19444
  class: "lupa-search-box-product-element",
19418
19445
  item: _ctx.item,
19419
19446
  element,
@@ -19423,10 +19450,10 @@ and ensure you are accounting for this risk.
19423
19450
  }, null, 8, ["item", "element", "labels", "link"]);
19424
19451
  }), 128))
19425
19452
  ], 4),
19426
- createBaseVNode("div", _hoisted_2$K, [
19453
+ createBaseVNode("div", _hoisted_2$L, [
19427
19454
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
19428
19455
  var _a;
19429
- return openBlock(), createBlock(_sfc_main$1b, {
19456
+ return openBlock(), createBlock(_sfc_main$1c, {
19430
19457
  key: element.key,
19431
19458
  class: "lupa-search-box-product-element",
19432
19459
  item: _ctx.item,
@@ -19437,7 +19464,7 @@ and ensure you are accounting for this risk.
19437
19464
  badgeOptions.value && ((_a = badgeOptions.value) == null ? void 0 : _a.anchorElementKey) === element.key ? {
19438
19465
  name: "badges",
19439
19466
  fn: withCtx(() => [
19440
- createVNode(_sfc_main$14, {
19467
+ createVNode(_sfc_main$15, {
19441
19468
  options: badgeOptions.value,
19442
19469
  position: "card"
19443
19470
  }, null, 8, ["options"])
@@ -19447,8 +19474,8 @@ and ensure you are accounting for this risk.
19447
19474
  ]), 1032, ["item", "element", "labels", "link"]);
19448
19475
  }), 128))
19449
19476
  ]),
19450
- addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$y, [
19451
- createVNode(_sfc_main$1b, {
19477
+ addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$z, [
19478
+ createVNode(_sfc_main$1c, {
19452
19479
  class: "lupa-search-box-product-element",
19453
19480
  item: _ctx.item,
19454
19481
  element: addToCartElement.value,
@@ -19457,7 +19484,7 @@ and ensure you are accounting for this risk.
19457
19484
  isInStock: isInStock.value
19458
19485
  }, null, 8, ["item", "element", "labels", "link", "isInStock"])
19459
19486
  ])) : createCommentVNode("", true)
19460
- ], 16, _hoisted_1$Y);
19487
+ ], 16, _hoisted_1$Z);
19461
19488
  };
19462
19489
  }
19463
19490
  });
@@ -19529,8 +19556,8 @@ and ensure you are accounting for this risk.
19529
19556
  };
19530
19557
  return { trackSearch, trackResults, trackEvent, trackDelayedEvent };
19531
19558
  });
19532
- const _hoisted_1$X = { id: "lupa-search-box-products" };
19533
- const _sfc_main$12 = /* @__PURE__ */ defineComponent({
19559
+ const _hoisted_1$Y = { id: "lupa-search-box-products" };
19560
+ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
19534
19561
  __name: "SearchBoxProducts",
19535
19562
  props: {
19536
19563
  items: {},
@@ -19598,7 +19625,7 @@ and ensure you are accounting for this risk.
19598
19625
  handleRoutingEvent(link, event, boxRoutingBehavior.value === "event");
19599
19626
  };
19600
19627
  return (_ctx, _cache) => {
19601
- return openBlock(), createElementBlock("div", _hoisted_1$X, [
19628
+ return openBlock(), createElementBlock("div", _hoisted_1$Y, [
19602
19629
  _ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
19603
19630
  return renderSlot(_ctx.$slots, "productCard", {
19604
19631
  key: index,
@@ -19610,7 +19637,7 @@ and ensure you are accounting for this risk.
19610
19637
  itemClicked: handleProductClick
19611
19638
  });
19612
19639
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
19613
- return openBlock(), createBlock(_sfc_main$13, {
19640
+ return openBlock(), createBlock(_sfc_main$14, {
19614
19641
  key: index,
19615
19642
  item,
19616
19643
  panelOptions: _ctx.panelOptions,
@@ -19625,9 +19652,9 @@ and ensure you are accounting for this risk.
19625
19652
  };
19626
19653
  }
19627
19654
  });
19628
- const _hoisted_1$W = { class: "lupa-search-box-documents-go-to-results-wrapper" };
19629
- const _hoisted_2$J = { key: 0 };
19630
- const _sfc_main$11 = /* @__PURE__ */ defineComponent({
19655
+ const _hoisted_1$X = { class: "lupa-search-box-documents-go-to-results-wrapper" };
19656
+ const _hoisted_2$K = { key: 0 };
19657
+ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
19631
19658
  __name: "SearchBoxProductsGoToResultsButton",
19632
19659
  props: {
19633
19660
  options: {},
@@ -19657,19 +19684,19 @@ and ensure you are accounting for this risk.
19657
19684
  emit2("goToResults");
19658
19685
  };
19659
19686
  return (_ctx, _cache) => {
19660
- return openBlock(), createElementBlock("div", _hoisted_1$W, [
19687
+ return openBlock(), createElementBlock("div", _hoisted_1$X, [
19661
19688
  createBaseVNode("button", {
19662
19689
  class: "lupa-search-box-documents-go-to-results-button",
19663
19690
  onClick: goToResults
19664
19691
  }, [
19665
19692
  createTextVNode(toDisplayString(goToResultsLabel.value) + " ", 1),
19666
- totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$J, " " + toDisplayString(totalCount.value), 1)) : createCommentVNode("", true)
19693
+ totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$K, " " + toDisplayString(totalCount.value), 1)) : createCommentVNode("", true)
19667
19694
  ])
19668
19695
  ]);
19669
19696
  };
19670
19697
  }
19671
19698
  });
19672
- const _sfc_main$10 = /* @__PURE__ */ defineComponent({
19699
+ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
19673
19700
  __name: "SearchBoxProductsWrapper",
19674
19701
  props: {
19675
19702
  panel: {},
@@ -19726,7 +19753,7 @@ and ensure you are accounting for this risk.
19726
19753
  watch(() => props.panel.limit, getItemsDebounced);
19727
19754
  return (_ctx, _cache) => {
19728
19755
  var _a, _b;
19729
- return openBlock(), createBlock(_sfc_main$12, {
19756
+ return openBlock(), createBlock(_sfc_main$13, {
19730
19757
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
19731
19758
  panelOptions: _ctx.panel,
19732
19759
  labels: _ctx.labels,
@@ -19736,7 +19763,7 @@ and ensure you are accounting for this risk.
19736
19763
  default: withCtx(() => {
19737
19764
  var _a2;
19738
19765
  return [
19739
- showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main$11, {
19766
+ showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main$12, {
19740
19767
  key: 0,
19741
19768
  options: _ctx.searchBoxOptions,
19742
19769
  panel: _ctx.panel,
@@ -19757,7 +19784,7 @@ and ensure you are accounting for this risk.
19757
19784
  };
19758
19785
  }
19759
19786
  });
19760
- const _sfc_main$$ = /* @__PURE__ */ defineComponent({
19787
+ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
19761
19788
  __name: "SearchBoxRelatedSourceWrapper",
19762
19789
  props: {
19763
19790
  panel: {},
@@ -19829,7 +19856,7 @@ and ensure you are accounting for this risk.
19829
19856
  });
19830
19857
  return (_ctx, _cache) => {
19831
19858
  var _a, _b;
19832
- return openBlock(), createBlock(_sfc_main$12, {
19859
+ return openBlock(), createBlock(_sfc_main$13, {
19833
19860
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
19834
19861
  panelOptions: documentPanelOptions.value,
19835
19862
  labels: _ctx.labels,
@@ -19847,12 +19874,12 @@ and ensure you are accounting for this risk.
19847
19874
  };
19848
19875
  }
19849
19876
  });
19850
- const _hoisted_1$V = {
19877
+ const _hoisted_1$W = {
19851
19878
  key: 0,
19852
19879
  id: "lupa-search-box-panel"
19853
19880
  };
19854
- const _hoisted_2$I = ["data-cy"];
19855
- const _hoisted_3$x = {
19881
+ const _hoisted_2$J = ["data-cy"];
19882
+ const _hoisted_3$y = {
19856
19883
  key: 0,
19857
19884
  class: "lupa-panel-title lupa-panel-title-top-results"
19858
19885
  };
@@ -19866,12 +19893,12 @@ and ensure you are accounting for this risk.
19866
19893
  };
19867
19894
  const __default__$2 = {
19868
19895
  components: {
19869
- SearchBoxSuggestionsWrapper: _sfc_main$1l,
19870
- SearchBoxProductsWrapper: _sfc_main$10,
19871
- SearchBoxRelatedSourceWrapper: _sfc_main$$
19896
+ SearchBoxSuggestionsWrapper: _sfc_main$1m,
19897
+ SearchBoxProductsWrapper: _sfc_main$11,
19898
+ SearchBoxRelatedSourceWrapper: _sfc_main$10
19872
19899
  }
19873
19900
  };
19874
- const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
19901
+ const _sfc_main$$ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
19875
19902
  __name: "SearchBoxMainPanel",
19876
19903
  props: {
19877
19904
  options: {},
@@ -20027,7 +20054,7 @@ and ensure you are accounting for this risk.
20027
20054
  ref_key: "panelContainer",
20028
20055
  ref: panelContainer
20029
20056
  }, [
20030
- displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$V, [
20057
+ displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$W, [
20031
20058
  labels.value.closePanel ? (openBlock(), createElementBlock("a", {
20032
20059
  key: 0,
20033
20060
  class: "lupa-search-box-close-panel",
@@ -20049,7 +20076,7 @@ and ensure you are accounting for this risk.
20049
20076
  style: normalizeStyle(panel.gridArea ? { gridArea: `${panel.gridArea}${index}` } : {}),
20050
20077
  "data-cy": "lupa-panel-" + panel.type + "-index"
20051
20078
  }, [
20052
- ((_a2 = panel.labels) == null ? void 0 : _a2.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$x, toDisplayString((_b = panel.labels) == null ? void 0 : _b.topResultsTitle), 1)) : createCommentVNode("", true),
20079
+ ((_a2 = panel.labels) == null ? void 0 : _a2.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$y, toDisplayString((_b = panel.labels) == null ? void 0 : _b.topResultsTitle), 1)) : createCommentVNode("", true),
20053
20080
  ((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (openBlock(), createElementBlock("div", _hoisted_4$p, toDisplayString((_d = panel.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
20054
20081
  panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
20055
20082
  key: 2,
@@ -20072,21 +20099,21 @@ and ensure you are accounting for this risk.
20072
20099
  key: "0"
20073
20100
  } : void 0
20074
20101
  ]), 1064, ["panel", "search-box-options", "options", "debounce", "inputValue", "labels"])) : createCommentVNode("", true)
20075
- ], 14, _hoisted_2$I);
20102
+ ], 14, _hoisted_2$J);
20076
20103
  }), 128))
20077
20104
  ], 4),
20078
- !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1o, {
20105
+ !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1p, {
20079
20106
  key: 1,
20080
20107
  labels: labels.value
20081
20108
  }, null, 8, ["labels"])) : createCommentVNode("", true),
20082
- unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1r, {
20109
+ unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1s, {
20083
20110
  key: 2,
20084
20111
  labels: labels.value,
20085
20112
  showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
20086
20113
  onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
20087
20114
  }, null, 8, ["labels", "showTotalCount"])) : createCommentVNode("", true)
20088
20115
  ])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$g, [
20089
- createVNode(_sfc_main$1p, {
20116
+ createVNode(_sfc_main$1q, {
20090
20117
  options: _ctx.options.history,
20091
20118
  history: history.value,
20092
20119
  onGoToResults: handleGoToResults,
@@ -20111,9 +20138,9 @@ and ensure you are accounting for this risk.
20111
20138
  const elements = getElements(triggers);
20112
20139
  elements.forEach((e2) => e2 == null ? void 0 : e2.removeEventListener(BIND_EVENT, event));
20113
20140
  };
20114
- const _hoisted_1$U = { id: "lupa-search-box" };
20115
- const _hoisted_2$H = { class: "lupa-search-box-wrapper" };
20116
- const _sfc_main$Z = /* @__PURE__ */ defineComponent({
20141
+ const _hoisted_1$V = { id: "lupa-search-box" };
20142
+ const _hoisted_2$I = { class: "lupa-search-box-wrapper" };
20143
+ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
20117
20144
  __name: "SearchBox",
20118
20145
  props: {
20119
20146
  options: {},
@@ -20380,9 +20407,9 @@ and ensure you are accounting for this risk.
20380
20407
  };
20381
20408
  return (_ctx, _cache) => {
20382
20409
  var _a2;
20383
- return openBlock(), createElementBlock("div", _hoisted_1$U, [
20384
- createBaseVNode("div", _hoisted_2$H, [
20385
- createVNode(_sfc_main$1s, {
20410
+ return openBlock(), createElementBlock("div", _hoisted_1$V, [
20411
+ createBaseVNode("div", _hoisted_2$I, [
20412
+ createVNode(_sfc_main$1t, {
20386
20413
  options: inputOptions.value,
20387
20414
  suggestedValue: suggestedValue.value,
20388
20415
  "can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
@@ -20395,7 +20422,7 @@ and ensure you are accounting for this risk.
20395
20422
  onSearch: handleSearch,
20396
20423
  onClose: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("close"))
20397
20424
  }, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
20398
- opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$_, {
20425
+ opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$$, {
20399
20426
  key: 0,
20400
20427
  options: panelOptions.value,
20401
20428
  inputValue: inputValue.value,
@@ -20484,20 +20511,20 @@ and ensure you are accounting for this risk.
20484
20511
  }
20485
20512
  return searchParams;
20486
20513
  };
20487
- const _hoisted_1$T = {
20514
+ const _hoisted_1$U = {
20488
20515
  key: 0,
20489
20516
  id: "lupa-search-results-did-you-mean"
20490
20517
  };
20491
- const _hoisted_2$G = {
20518
+ const _hoisted_2$H = {
20492
20519
  key: 0,
20493
20520
  "data-cy": "suggested-search-text-label"
20494
20521
  };
20495
- const _hoisted_3$w = {
20522
+ const _hoisted_3$x = {
20496
20523
  key: 1,
20497
20524
  "data-cy": "did-you-mean-label"
20498
20525
  };
20499
20526
  const _hoisted_4$o = { key: 1 };
20500
- const _sfc_main$Y = /* @__PURE__ */ defineComponent({
20527
+ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
20501
20528
  __name: "SearchResultsDidYouMean",
20502
20529
  props: {
20503
20530
  labels: {}
@@ -20529,8 +20556,8 @@ and ensure you are accounting for this risk.
20529
20556
  paramStore.goToResults({ searchText, facet });
20530
20557
  };
20531
20558
  return (_ctx, _cache) => {
20532
- return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$T, [
20533
- unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$G, [
20559
+ return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$U, [
20560
+ unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$H, [
20534
20561
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
20535
20562
  return openBlock(), createElementBlock("span", { key: index }, [
20536
20563
  createBaseVNode("span", {
@@ -20539,7 +20566,7 @@ and ensure you are accounting for this risk.
20539
20566
  ]);
20540
20567
  }), 128))
20541
20568
  ])) : createCommentVNode("", true),
20542
- didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$w, [
20569
+ didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$x, [
20543
20570
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.didYouMean.split(" "), (label, index) => {
20544
20571
  return openBlock(), createElementBlock("span", { key: index }, [
20545
20572
  label.includes("{1}") ? (openBlock(), createElementBlock("span", {
@@ -20555,12 +20582,12 @@ and ensure you are accounting for this risk.
20555
20582
  };
20556
20583
  }
20557
20584
  });
20558
- const _hoisted_1$S = {
20585
+ const _hoisted_1$T = {
20559
20586
  key: 0,
20560
20587
  class: "lupa-search-results-summary"
20561
20588
  };
20562
- const _hoisted_2$F = ["innerHTML"];
20563
- const _sfc_main$X = /* @__PURE__ */ defineComponent({
20589
+ const _hoisted_2$G = ["innerHTML"];
20590
+ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
20564
20591
  __name: "SearchResultsSummary",
20565
20592
  props: {
20566
20593
  label: {},
@@ -20575,8 +20602,8 @@ and ensure you are accounting for this risk.
20575
20602
  return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
20576
20603
  });
20577
20604
  return (_ctx, _cache) => {
20578
- return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$S, [
20579
- createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$F),
20605
+ return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$T, [
20606
+ createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$G),
20580
20607
  _ctx.clearable ? (openBlock(), createElementBlock("span", {
20581
20608
  key: 0,
20582
20609
  class: "lupa-filter-clear",
@@ -20587,19 +20614,19 @@ and ensure you are accounting for this risk.
20587
20614
  };
20588
20615
  }
20589
20616
  });
20590
- const _hoisted_1$R = {
20617
+ const _hoisted_1$S = {
20591
20618
  key: 0,
20592
20619
  class: "lupa-result-page-title",
20593
20620
  "data-cy": "lupa-result-page-title"
20594
20621
  };
20595
- const _hoisted_2$E = { key: 0 };
20596
- const _hoisted_3$v = {
20622
+ const _hoisted_2$F = { key: 0 };
20623
+ const _hoisted_3$w = {
20597
20624
  key: 1,
20598
20625
  class: "lupa-results-total-count"
20599
20626
  };
20600
20627
  const _hoisted_4$n = { class: "lupa-results-total-count-number" };
20601
20628
  const _hoisted_5$f = ["innerHTML"];
20602
- const _sfc_main$W = /* @__PURE__ */ defineComponent({
20629
+ const _sfc_main$X = /* @__PURE__ */ defineComponent({
20603
20630
  __name: "SearchResultsTitle",
20604
20631
  props: {
20605
20632
  options: {},
@@ -20638,16 +20665,16 @@ and ensure you are accounting for this risk.
20638
20665
  });
20639
20666
  return (_ctx, _cache) => {
20640
20667
  return openBlock(), createElementBlock("div", null, [
20641
- showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$R, [
20668
+ showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$S, [
20642
20669
  createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
20643
- queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$E, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
20644
- showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$v, [
20670
+ queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$F, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
20671
+ showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$w, [
20645
20672
  createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
20646
20673
  createBaseVNode("span", _hoisted_4$n, toDisplayString(unref(totalItems)), 1),
20647
20674
  createTextVNode(")")
20648
20675
  ])) : createCommentVNode("", true)
20649
20676
  ])) : createCommentVNode("", true),
20650
- _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$X, {
20677
+ _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$Y, {
20651
20678
  key: 1,
20652
20679
  label: summaryLabel.value
20653
20680
  }, null, 8, ["label"])) : createCommentVNode("", true),
@@ -20660,16 +20687,16 @@ and ensure you are accounting for this risk.
20660
20687
  };
20661
20688
  }
20662
20689
  });
20663
- const _hoisted_1$Q = { class: "lupa-search-result-filter-value" };
20664
- const _hoisted_2$D = {
20690
+ const _hoisted_1$R = { class: "lupa-search-result-filter-value" };
20691
+ const _hoisted_2$E = {
20665
20692
  class: "lupa-current-filter-label",
20666
20693
  "data-cy": "lupa-current-filter-label"
20667
20694
  };
20668
- const _hoisted_3$u = {
20695
+ const _hoisted_3$v = {
20669
20696
  class: "lupa-current-filter-value",
20670
20697
  "data-cy": "lupa-current-filter-value"
20671
20698
  };
20672
- const _sfc_main$V = /* @__PURE__ */ defineComponent({
20699
+ const _sfc_main$W = /* @__PURE__ */ defineComponent({
20673
20700
  __name: "CurrentFilterDisplay",
20674
20701
  props: {
20675
20702
  filter: {}
@@ -20681,28 +20708,28 @@ and ensure you are accounting for this risk.
20681
20708
  emit2("remove", { filter: props.filter });
20682
20709
  };
20683
20710
  return (_ctx, _cache) => {
20684
- return openBlock(), createElementBlock("div", _hoisted_1$Q, [
20711
+ return openBlock(), createElementBlock("div", _hoisted_1$R, [
20685
20712
  createBaseVNode("div", {
20686
20713
  class: "lupa-current-filter-action",
20687
20714
  onClick: handleClick
20688
20715
  }, "⨉"),
20689
- createBaseVNode("div", _hoisted_2$D, toDisplayString(_ctx.filter.label) + ": ", 1),
20690
- createBaseVNode("div", _hoisted_3$u, toDisplayString(_ctx.filter.value), 1)
20716
+ createBaseVNode("div", _hoisted_2$E, toDisplayString(_ctx.filter.label) + ": ", 1),
20717
+ createBaseVNode("div", _hoisted_3$v, toDisplayString(_ctx.filter.value), 1)
20691
20718
  ]);
20692
20719
  };
20693
20720
  }
20694
20721
  });
20695
- const _hoisted_1$P = { class: "lupa-filter-title-text" };
20696
- const _hoisted_2$C = {
20722
+ const _hoisted_1$Q = { class: "lupa-filter-title-text" };
20723
+ const _hoisted_2$D = {
20697
20724
  key: 0,
20698
20725
  class: "lupa-filter-count"
20699
20726
  };
20700
- const _hoisted_3$t = {
20727
+ const _hoisted_3$u = {
20701
20728
  key: 0,
20702
20729
  class: "filter-values"
20703
20730
  };
20704
20731
  const _hoisted_4$m = { class: "lupa-current-filter-list" };
20705
- const _sfc_main$U = /* @__PURE__ */ defineComponent({
20732
+ const _sfc_main$V = /* @__PURE__ */ defineComponent({
20706
20733
  __name: "CurrentFilters",
20707
20734
  props: {
20708
20735
  options: {},
@@ -20775,19 +20802,19 @@ and ensure you are accounting for this risk.
20775
20802
  class: "lupa-current-filter-title",
20776
20803
  onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
20777
20804
  }, [
20778
- createBaseVNode("div", _hoisted_1$P, [
20805
+ createBaseVNode("div", _hoisted_1$Q, [
20779
20806
  createTextVNode(toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
20780
- _ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$C, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
20807
+ _ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$D, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
20781
20808
  ]),
20782
20809
  _ctx.expandable ? (openBlock(), createElementBlock("div", {
20783
20810
  key: 0,
20784
20811
  class: normalizeClass(["lupa-filter-title-caret", isOpen.value && "open"])
20785
20812
  }, null, 2)) : createCommentVNode("", true)
20786
20813
  ]),
20787
- !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$t, [
20814
+ !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$u, [
20788
20815
  createBaseVNode("div", _hoisted_4$m, [
20789
20816
  (openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter2) => {
20790
- return openBlock(), createBlock(_sfc_main$V, {
20817
+ return openBlock(), createBlock(_sfc_main$W, {
20791
20818
  key: filter2.key + "_" + filter2.value,
20792
20819
  filter: filter2,
20793
20820
  onRemove: handleRemove
@@ -20804,8 +20831,8 @@ and ensure you are accounting for this risk.
20804
20831
  };
20805
20832
  }
20806
20833
  });
20807
- const _hoisted_1$O = ["href"];
20808
- const _sfc_main$T = /* @__PURE__ */ defineComponent({
20834
+ const _hoisted_1$P = ["href"];
20835
+ const _sfc_main$U = /* @__PURE__ */ defineComponent({
20809
20836
  __name: "CategoryFilterItem",
20810
20837
  props: {
20811
20838
  options: {},
@@ -20842,20 +20869,20 @@ and ensure you are accounting for this risk.
20842
20869
  "data-cy": "lupa-child-category-item",
20843
20870
  href: urlLink.value,
20844
20871
  onClick: handleNavigation
20845
- }, toDisplayString(title.value), 9, _hoisted_1$O)
20872
+ }, toDisplayString(title.value), 9, _hoisted_1$P)
20846
20873
  ], 2);
20847
20874
  };
20848
20875
  }
20849
20876
  });
20850
- const _hoisted_1$N = {
20877
+ const _hoisted_1$O = {
20851
20878
  class: "lupa-category-filter",
20852
20879
  "data-cy": "lupa-category-filter"
20853
20880
  };
20854
- const _hoisted_2$B = { class: "lupa-category-back" };
20855
- const _hoisted_3$s = ["href"];
20881
+ const _hoisted_2$C = { class: "lupa-category-back" };
20882
+ const _hoisted_3$t = ["href"];
20856
20883
  const _hoisted_4$l = ["href"];
20857
20884
  const _hoisted_5$e = { class: "lupa-child-category-list" };
20858
- const _sfc_main$S = /* @__PURE__ */ defineComponent({
20885
+ const _sfc_main$T = /* @__PURE__ */ defineComponent({
20859
20886
  __name: "CategoryFilter",
20860
20887
  props: {
20861
20888
  options: {}
@@ -20943,14 +20970,14 @@ and ensure you are accounting for this risk.
20943
20970
  };
20944
20971
  __expose({ fetch: fetch2 });
20945
20972
  return (_ctx, _cache) => {
20946
- return openBlock(), createElementBlock("div", _hoisted_1$N, [
20947
- createBaseVNode("div", _hoisted_2$B, [
20973
+ return openBlock(), createElementBlock("div", _hoisted_1$O, [
20974
+ createBaseVNode("div", _hoisted_2$C, [
20948
20975
  hasBackButton.value ? (openBlock(), createElementBlock("a", {
20949
20976
  key: 0,
20950
20977
  "data-cy": "lupa-category-back",
20951
20978
  href: backUrlLink.value,
20952
20979
  onClick: handleNavigationBack
20953
- }, toDisplayString(backTitle.value), 9, _hoisted_3$s)) : createCommentVNode("", true)
20980
+ }, toDisplayString(backTitle.value), 9, _hoisted_3$t)) : createCommentVNode("", true)
20954
20981
  ]),
20955
20982
  createBaseVNode("div", {
20956
20983
  class: normalizeClass(["lupa-current-category", { "lupa-current-category-active": isActive }])
@@ -20964,7 +20991,7 @@ and ensure you are accounting for this risk.
20964
20991
  ], 2),
20965
20992
  createBaseVNode("div", _hoisted_5$e, [
20966
20993
  (openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
20967
- return openBlock(), createBlock(_sfc_main$T, {
20994
+ return openBlock(), createBlock(_sfc_main$U, {
20968
20995
  key: getCategoryKey(child),
20969
20996
  item: child,
20970
20997
  options: _ctx.options
@@ -20975,12 +21002,12 @@ and ensure you are accounting for this risk.
20975
21002
  };
20976
21003
  }
20977
21004
  });
20978
- const _hoisted_1$M = {
21005
+ const _hoisted_1$N = {
20979
21006
  class: "lupa-search-result-facet-term-values",
20980
21007
  "data-cy": "lupa-search-result-facet-term-values"
20981
21008
  };
20982
- const _hoisted_2$A = ["placeholder"];
20983
- const _hoisted_3$r = { class: "lupa-terms-list" };
21009
+ const _hoisted_2$B = ["placeholder"];
21010
+ const _hoisted_3$s = { class: "lupa-terms-list" };
20984
21011
  const _hoisted_4$k = ["onClick"];
20985
21012
  const _hoisted_5$d = { class: "lupa-term-checkbox-wrapper" };
20986
21013
  const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
@@ -20991,7 +21018,7 @@ and ensure you are accounting for this risk.
20991
21018
  };
20992
21019
  const _hoisted_9$2 = { key: 0 };
20993
21020
  const _hoisted_10$1 = { key: 1 };
20994
- const _sfc_main$R = /* @__PURE__ */ defineComponent({
21021
+ const _sfc_main$S = /* @__PURE__ */ defineComponent({
20995
21022
  __name: "TermFacet",
20996
21023
  props: {
20997
21024
  options: {},
@@ -21062,17 +21089,17 @@ and ensure you are accounting for this risk.
21062
21089
  return selectedItems == null ? void 0 : selectedItems.includes((_b = item.title) == null ? void 0 : _b.toString());
21063
21090
  };
21064
21091
  return (_ctx, _cache) => {
21065
- return openBlock(), createElementBlock("div", _hoisted_1$M, [
21092
+ return openBlock(), createElementBlock("div", _hoisted_1$N, [
21066
21093
  isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
21067
21094
  key: 0,
21068
21095
  class: "lupa-term-filter",
21069
21096
  "data-cy": "lupa-term-filter",
21070
21097
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
21071
21098
  placeholder: _ctx.options.labels.facetFilter
21072
- }, null, 8, _hoisted_2$A)), [
21099
+ }, null, 8, _hoisted_2$B)), [
21073
21100
  [vModelText, termFilter.value]
21074
21101
  ]) : createCommentVNode("", true),
21075
- createBaseVNode("div", _hoisted_3$r, [
21102
+ createBaseVNode("div", _hoisted_3$s, [
21076
21103
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
21077
21104
  return openBlock(), createElementBlock("div", {
21078
21105
  class: normalizeClass(["lupa-facet-term", { checked: isChecked(item) }]),
@@ -22080,12 +22107,12 @@ and ensure you are accounting for this risk.
22080
22107
  m.render = function(e2, t, r, i, n, o) {
22081
22108
  return openBlock(), createElementBlock("div", mergeProps(e2.sliderProps, { ref: "slider" }), null, 16);
22082
22109
  }, m.__file = "src/Slider.vue";
22083
- const _hoisted_1$L = { class: "lupa-search-result-facet-stats-values" };
22084
- const _hoisted_2$z = {
22110
+ const _hoisted_1$M = { class: "lupa-search-result-facet-stats-values" };
22111
+ const _hoisted_2$A = {
22085
22112
  key: 0,
22086
22113
  class: "lupa-stats-facet-summary"
22087
22114
  };
22088
- const _hoisted_3$q = {
22115
+ const _hoisted_3$r = {
22089
22116
  key: 1,
22090
22117
  class: "lupa-stats-facet-summary-input"
22091
22118
  };
@@ -22108,7 +22135,7 @@ and ensure you are accounting for this risk.
22108
22135
  key: 2,
22109
22136
  class: "lupa-stats-slider-wrapper"
22110
22137
  };
22111
- const _sfc_main$Q = /* @__PURE__ */ defineComponent({
22138
+ const _sfc_main$R = /* @__PURE__ */ defineComponent({
22112
22139
  __name: "StatsFacet",
22113
22140
  props: {
22114
22141
  options: {},
@@ -22285,8 +22312,8 @@ and ensure you are accounting for this risk.
22285
22312
  innerSliderRange.value = value;
22286
22313
  };
22287
22314
  return (_ctx, _cache) => {
22288
- return openBlock(), createElementBlock("div", _hoisted_1$L, [
22289
- !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$z, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$q, [
22315
+ return openBlock(), createElementBlock("div", _hoisted_1$M, [
22316
+ !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$A, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$r, [
22290
22317
  createBaseVNode("div", null, [
22291
22318
  rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$j, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
22292
22319
  createBaseVNode("div", _hoisted_5$c, [
@@ -22352,9 +22379,9 @@ and ensure you are accounting for this risk.
22352
22379
  };
22353
22380
  }
22354
22381
  });
22355
- const _hoisted_1$K = { class: "lupa-term-checkbox-wrapper" };
22356
- const _hoisted_2$y = { class: "lupa-term-checkbox-label" };
22357
- const _hoisted_3$p = { class: "lupa-term-label" };
22382
+ const _hoisted_1$L = { class: "lupa-term-checkbox-wrapper" };
22383
+ const _hoisted_2$z = { class: "lupa-term-checkbox-label" };
22384
+ const _hoisted_3$q = { class: "lupa-term-label" };
22358
22385
  const _hoisted_4$i = {
22359
22386
  key: 0,
22360
22387
  class: "lupa-term-count"
@@ -22363,7 +22390,7 @@ and ensure you are accounting for this risk.
22363
22390
  key: 0,
22364
22391
  class: "lupa-facet-level"
22365
22392
  };
22366
- const _sfc_main$P = /* @__PURE__ */ defineComponent({
22393
+ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
22367
22394
  __name: "HierarchyFacetLevel",
22368
22395
  props: {
22369
22396
  options: {},
@@ -22409,13 +22436,13 @@ and ensure you are accounting for this risk.
22409
22436
  "data-cy": "lupa-facet-term",
22410
22437
  onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
22411
22438
  }, [
22412
- createBaseVNode("div", _hoisted_1$K, [
22439
+ createBaseVNode("div", _hoisted_1$L, [
22413
22440
  createBaseVNode("span", {
22414
22441
  class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
22415
22442
  }, null, 2)
22416
22443
  ]),
22417
- createBaseVNode("div", _hoisted_2$y, [
22418
- createBaseVNode("span", _hoisted_3$p, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
22444
+ createBaseVNode("div", _hoisted_2$z, [
22445
+ createBaseVNode("span", _hoisted_3$q, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
22419
22446
  _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$i, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
22420
22447
  ])
22421
22448
  ]),
@@ -22435,13 +22462,13 @@ and ensure you are accounting for this risk.
22435
22462
  };
22436
22463
  }
22437
22464
  });
22438
- const _hoisted_1$J = {
22465
+ const _hoisted_1$K = {
22439
22466
  class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
22440
22467
  "data-cy": "lupa-search-result-facet-term-values"
22441
22468
  };
22442
- const _hoisted_2$x = { key: 0 };
22443
- const _hoisted_3$o = ["placeholder"];
22444
- const _sfc_main$O = /* @__PURE__ */ defineComponent({
22469
+ const _hoisted_2$y = { key: 0 };
22470
+ const _hoisted_3$p = ["placeholder"];
22471
+ const _sfc_main$P = /* @__PURE__ */ defineComponent({
22445
22472
  __name: "HierarchyFacet",
22446
22473
  props: {
22447
22474
  options: {},
@@ -22496,19 +22523,19 @@ and ensure you are accounting for this risk.
22496
22523
  showAll.value = false;
22497
22524
  };
22498
22525
  return (_ctx, _cache) => {
22499
- return openBlock(), createElementBlock("div", _hoisted_1$J, [
22500
- isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$x, [
22526
+ return openBlock(), createElementBlock("div", _hoisted_1$K, [
22527
+ isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$y, [
22501
22528
  withDirectives(createBaseVNode("input", {
22502
22529
  class: "lupa-term-filter",
22503
22530
  "data-cy": "lupa-term-filter",
22504
22531
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
22505
22532
  placeholder: _ctx.options.labels.facetFilter
22506
- }, null, 8, _hoisted_3$o), [
22533
+ }, null, 8, _hoisted_3$p), [
22507
22534
  [vModelText, termFilter.value]
22508
22535
  ])
22509
22536
  ])) : createCommentVNode("", true),
22510
22537
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
22511
- return openBlock(), createBlock(_sfc_main$P, {
22538
+ return openBlock(), createBlock(_sfc_main$Q, {
22512
22539
  key: item.title,
22513
22540
  options: _ctx.options,
22514
22541
  item,
@@ -22532,20 +22559,20 @@ and ensure you are accounting for this risk.
22532
22559
  };
22533
22560
  }
22534
22561
  });
22535
- const _hoisted_1$I = { class: "lupa-facet-label-text" };
22536
- const _hoisted_2$w = {
22562
+ const _hoisted_1$J = { class: "lupa-facet-label-text" };
22563
+ const _hoisted_2$x = {
22537
22564
  key: 0,
22538
22565
  class: "lupa-facet-content",
22539
22566
  "data-cy": "lupa-facet-content"
22540
22567
  };
22541
22568
  const __default__$1 = {
22542
22569
  components: {
22543
- TermFacet: _sfc_main$R,
22544
- StatsFacet: _sfc_main$Q,
22545
- HierarchyFacet: _sfc_main$O
22570
+ TermFacet: _sfc_main$S,
22571
+ StatsFacet: _sfc_main$R,
22572
+ HierarchyFacet: _sfc_main$P
22546
22573
  }
22547
22574
  };
22548
- const _sfc_main$N = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
22575
+ const _sfc_main$O = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
22549
22576
  __name: "FacetDisplay",
22550
22577
  props: {
22551
22578
  options: {},
@@ -22657,12 +22684,12 @@ and ensure you are accounting for this risk.
22657
22684
  "data-cy": "lupa-search-result-facet-label",
22658
22685
  onClick: toggleFacet
22659
22686
  }, [
22660
- createBaseVNode("div", _hoisted_1$I, toDisplayString(facet.value.label), 1),
22687
+ createBaseVNode("div", _hoisted_1$J, toDisplayString(facet.value.label), 1),
22661
22688
  createBaseVNode("div", {
22662
22689
  class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
22663
22690
  }, null, 2)
22664
22691
  ], 2),
22665
- isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$w, [
22692
+ isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$x, [
22666
22693
  (openBlock(), createBlock(resolveDynamicComponent(facetType.value), {
22667
22694
  facet: facet.value,
22668
22695
  currentFilters: currentFilters.value[facet.value.key],
@@ -22680,12 +22707,12 @@ and ensure you are accounting for this risk.
22680
22707
  };
22681
22708
  }
22682
22709
  }));
22683
- const _hoisted_1$H = { class: "lupa-search-result-facet-section" };
22684
- const _hoisted_2$v = {
22710
+ const _hoisted_1$I = { class: "lupa-search-result-facet-section" };
22711
+ const _hoisted_2$w = {
22685
22712
  key: 0,
22686
22713
  class: "lupa-facets-title"
22687
22714
  };
22688
- const _sfc_main$M = /* @__PURE__ */ defineComponent({
22715
+ const _sfc_main$N = /* @__PURE__ */ defineComponent({
22689
22716
  __name: "FacetList",
22690
22717
  props: {
22691
22718
  options: {},
@@ -22719,14 +22746,14 @@ and ensure you are accounting for this risk.
22719
22746
  };
22720
22747
  return (_ctx, _cache) => {
22721
22748
  var _a;
22722
- return openBlock(), createElementBlock("div", _hoisted_1$H, [
22723
- _ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$v, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
22749
+ return openBlock(), createElementBlock("div", _hoisted_1$I, [
22750
+ _ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$w, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
22724
22751
  createBaseVNode("div", {
22725
22752
  class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
22726
22753
  }, [
22727
22754
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
22728
22755
  var _a2;
22729
- return openBlock(), createBlock(_sfc_main$N, {
22756
+ return openBlock(), createBlock(_sfc_main$O, {
22730
22757
  key: facet.key,
22731
22758
  facet,
22732
22759
  currentFilters: currentFiltersValue.value,
@@ -22741,8 +22768,8 @@ and ensure you are accounting for this risk.
22741
22768
  };
22742
22769
  }
22743
22770
  });
22744
- const _hoisted_1$G = ["onClick"];
22745
- const _sfc_main$L = /* @__PURE__ */ defineComponent({
22771
+ const _hoisted_1$H = ["onClick"];
22772
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
22746
22773
  __name: "FacetsButton",
22747
22774
  props: {
22748
22775
  options: {}
@@ -22762,13 +22789,13 @@ and ensure you are accounting for this risk.
22762
22789
  key: 0,
22763
22790
  class: "lupa-facets-button-filter",
22764
22791
  onClick: withModifiers(handleClick, ["stop"])
22765
- }, toDisplayString(label.value), 9, _hoisted_1$G)) : createCommentVNode("", true);
22792
+ }, toDisplayString(label.value), 9, _hoisted_1$H)) : createCommentVNode("", true);
22766
22793
  };
22767
22794
  }
22768
22795
  });
22769
- const _hoisted_1$F = { class: "lupa-search-result-facets" };
22770
- const _hoisted_2$u = { class: "lupa-facets-filter-button-wrapper" };
22771
- const _sfc_main$K = /* @__PURE__ */ defineComponent({
22796
+ const _hoisted_1$G = { class: "lupa-search-result-facets" };
22797
+ const _hoisted_2$v = { class: "lupa-facets-filter-button-wrapper" };
22798
+ const _sfc_main$L = /* @__PURE__ */ defineComponent({
22772
22799
  __name: "Facets",
22773
22800
  props: {
22774
22801
  options: {},
@@ -22851,8 +22878,8 @@ and ensure you are accounting for this risk.
22851
22878
  emit2("filter");
22852
22879
  };
22853
22880
  return (_ctx, _cache) => {
22854
- return openBlock(), createElementBlock("div", _hoisted_1$F, [
22855
- regularFacets.value ? (openBlock(), createBlock(_sfc_main$M, {
22881
+ return openBlock(), createElementBlock("div", _hoisted_1$G, [
22882
+ regularFacets.value ? (openBlock(), createBlock(_sfc_main$N, {
22856
22883
  key: 0,
22857
22884
  options: _ctx.options,
22858
22885
  facets: regularFacets.value,
@@ -22862,8 +22889,8 @@ and ensure you are accounting for this risk.
22862
22889
  onSelect: handleFacetSelect,
22863
22890
  onClear: clear2
22864
22891
  }, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : createCommentVNode("", true),
22865
- createBaseVNode("div", _hoisted_2$u, [
22866
- showFilterButton.value ? (openBlock(), createBlock(_sfc_main$L, {
22892
+ createBaseVNode("div", _hoisted_2$v, [
22893
+ showFilterButton.value ? (openBlock(), createBlock(_sfc_main$M, {
22867
22894
  key: 0,
22868
22895
  options: _ctx.options,
22869
22896
  onFilter: filter2
@@ -22873,11 +22900,11 @@ and ensure you are accounting for this risk.
22873
22900
  };
22874
22901
  }
22875
22902
  });
22876
- const _hoisted_1$E = {
22903
+ const _hoisted_1$F = {
22877
22904
  id: "lupa-search-result-filters",
22878
22905
  class: "lupa-search-result-filters"
22879
22906
  };
22880
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
22907
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
22881
22908
  __name: "SearchResultsFilters",
22882
22909
  props: {
22883
22910
  options: {},
@@ -22910,19 +22937,19 @@ and ensure you are accounting for this risk.
22910
22937
  __expose({ fetch: fetch2 });
22911
22938
  return (_ctx, _cache) => {
22912
22939
  var _a;
22913
- return openBlock(), createElementBlock("div", _hoisted_1$E, [
22914
- showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$U, {
22940
+ return openBlock(), createElementBlock("div", _hoisted_1$F, [
22941
+ showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$V, {
22915
22942
  key: 0,
22916
22943
  options: _ctx.options.currentFilters,
22917
22944
  expandable: (_a = _ctx.expandable) != null ? _a : false
22918
22945
  }, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
22919
- _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$S, {
22946
+ _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$T, {
22920
22947
  key: 1,
22921
22948
  options: _ctx.options.categories,
22922
22949
  ref_key: "categoryFilters",
22923
22950
  ref: categoryFilters
22924
22951
  }, null, 8, ["options"])) : createCommentVNode("", true),
22925
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$K, {
22952
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$L, {
22926
22953
  key: 2,
22927
22954
  options: _ctx.options.facets,
22928
22955
  onFilter: filter2
@@ -22931,12 +22958,12 @@ and ensure you are accounting for this risk.
22931
22958
  };
22932
22959
  }
22933
22960
  });
22934
- const _hoisted_1$D = {
22961
+ const _hoisted_1$E = {
22935
22962
  key: 0,
22936
22963
  class: "lupa-mobile-filter-sidebar"
22937
22964
  };
22938
- const _hoisted_2$t = ["onClick"];
22939
- const _hoisted_3$n = { class: "lupa-mobile-sidebar-content" };
22965
+ const _hoisted_2$u = ["onClick"];
22966
+ const _hoisted_3$o = { class: "lupa-mobile-sidebar-content" };
22940
22967
  const _hoisted_4$h = { class: "lupa-sidebar-top" };
22941
22968
  const _hoisted_5$a = { class: "lupa-sidebar-title" };
22942
22969
  const _hoisted_6$6 = {
@@ -22944,7 +22971,7 @@ and ensure you are accounting for this risk.
22944
22971
  class: "lupa-sidebar-filter-count"
22945
22972
  };
22946
22973
  const _hoisted_7$4 = { class: "lupa-sidebar-filter-options" };
22947
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
22974
+ const _sfc_main$J = /* @__PURE__ */ defineComponent({
22948
22975
  __name: "MobileFilterSidebar",
22949
22976
  props: {
22950
22977
  options: {}
@@ -22975,12 +23002,12 @@ and ensure you are accounting for this risk.
22975
23002
  handleMobileToggle();
22976
23003
  };
22977
23004
  return (_ctx, _cache) => {
22978
- return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$D, [
23005
+ return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$E, [
22979
23006
  createBaseVNode("div", {
22980
23007
  class: "lupa-sidebar-close",
22981
23008
  onClick: withModifiers(handleMobileToggle, ["stop"])
22982
- }, null, 8, _hoisted_2$t),
22983
- createBaseVNode("div", _hoisted_3$n, [
23009
+ }, null, 8, _hoisted_2$u),
23010
+ createBaseVNode("div", _hoisted_3$o, [
22984
23011
  createBaseVNode("div", _hoisted_4$h, [
22985
23012
  createBaseVNode("div", _hoisted_5$a, [
22986
23013
  createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
@@ -22992,7 +23019,7 @@ and ensure you are accounting for this risk.
22992
23019
  })
22993
23020
  ]),
22994
23021
  createBaseVNode("div", _hoisted_7$4, [
22995
- createVNode(_sfc_main$J, {
23022
+ createVNode(_sfc_main$K, {
22996
23023
  options: _ctx.options,
22997
23024
  expandable: isActiveFiltersExpanded.value,
22998
23025
  onFilter: filter2
@@ -23003,14 +23030,14 @@ and ensure you are accounting for this risk.
23003
23030
  };
23004
23031
  }
23005
23032
  });
23006
- const _hoisted_1$C = { id: "lupa-search-results-breadcrumbs" };
23007
- const _hoisted_2$s = ["href", "onClick"];
23008
- const _hoisted_3$m = {
23033
+ const _hoisted_1$D = { id: "lupa-search-results-breadcrumbs" };
23034
+ const _hoisted_2$t = ["href", "onClick"];
23035
+ const _hoisted_3$n = {
23009
23036
  key: 1,
23010
23037
  class: "lupa-search-results-breadcrumb-text"
23011
23038
  };
23012
23039
  const _hoisted_4$g = { key: 2 };
23013
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
23040
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
23014
23041
  __name: "SearchResultsBreadcrumbs",
23015
23042
  props: {
23016
23043
  breadcrumbs: {}
@@ -23035,7 +23062,7 @@ and ensure you are accounting for this risk.
23035
23062
  handleRoutingEvent(link, event, hasEventRouting.value);
23036
23063
  };
23037
23064
  return (_ctx, _cache) => {
23038
- return openBlock(), createElementBlock("div", _hoisted_1$C, [
23065
+ return openBlock(), createElementBlock("div", _hoisted_1$D, [
23039
23066
  (openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
23040
23067
  return openBlock(), createElementBlock("span", {
23041
23068
  class: "lupa-search-results-breadcrumb",
@@ -23049,7 +23076,7 @@ and ensure you are accounting for this risk.
23049
23076
  var _a;
23050
23077
  return handleNavigation(e2, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
23051
23078
  }
23052
- }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$s)) : (openBlock(), createElementBlock("span", _hoisted_3$m, toDisplayString(getLabel(breadcrumb.label)), 1)),
23079
+ }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$t)) : (openBlock(), createElementBlock("span", _hoisted_3$n, toDisplayString(getLabel(breadcrumb.label)), 1)),
23053
23080
  index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$g, " / ")) : createCommentVNode("", true)
23054
23081
  ]);
23055
23082
  }), 128))
@@ -23057,11 +23084,11 @@ and ensure you are accounting for this risk.
23057
23084
  };
23058
23085
  }
23059
23086
  });
23060
- const _hoisted_1$B = {
23087
+ const _hoisted_1$C = {
23061
23088
  id: "lupa-search-result-filters",
23062
23089
  class: "lupa-search-result-filters lupa-search-result-top-filters"
23063
23090
  };
23064
- const _sfc_main$G = /* @__PURE__ */ defineComponent({
23091
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
23065
23092
  __name: "FiltersTopDropdown",
23066
23093
  props: {
23067
23094
  options: {}
@@ -23073,8 +23100,8 @@ and ensure you are accounting for this risk.
23073
23100
  };
23074
23101
  return (_ctx, _cache) => {
23075
23102
  var _a;
23076
- return openBlock(), createElementBlock("div", _hoisted_1$B, [
23077
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$K, {
23103
+ return openBlock(), createElementBlock("div", _hoisted_1$C, [
23104
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$L, {
23078
23105
  key: 0,
23079
23106
  options: _ctx.options.facets,
23080
23107
  "facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
@@ -23085,8 +23112,8 @@ and ensure you are accounting for this risk.
23085
23112
  };
23086
23113
  }
23087
23114
  });
23088
- const _hoisted_1$A = { id: "lupa-search-results-layout-selection" };
23089
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
23115
+ const _hoisted_1$B = { id: "lupa-search-results-layout-selection" };
23116
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
23090
23117
  __name: "SearchResultsLayoutSelection",
23091
23118
  setup(__props) {
23092
23119
  const searchResultStore = useSearchResultStore();
@@ -23097,7 +23124,7 @@ and ensure you are accounting for this risk.
23097
23124
  searchResultStore.setLayout(layout2);
23098
23125
  };
23099
23126
  return (_ctx, _cache) => {
23100
- return openBlock(), createElementBlock("div", _hoisted_1$A, [
23127
+ return openBlock(), createElementBlock("div", _hoisted_1$B, [
23101
23128
  createBaseVNode("div", {
23102
23129
  class: normalizeClass([
23103
23130
  "lupa-layout-selection-grid",
@@ -23119,11 +23146,11 @@ and ensure you are accounting for this risk.
23119
23146
  };
23120
23147
  }
23121
23148
  });
23122
- const _hoisted_1$z = {
23149
+ const _hoisted_1$A = {
23123
23150
  key: 0,
23124
23151
  class: "lupa-mobile-toggle-filter-count"
23125
23152
  };
23126
- const _sfc_main$E = /* @__PURE__ */ defineComponent({
23153
+ const _sfc_main$F = /* @__PURE__ */ defineComponent({
23127
23154
  __name: "SearchResultsMobileToggle",
23128
23155
  props: {
23129
23156
  label: {},
@@ -23141,26 +23168,26 @@ and ensure you are accounting for this risk.
23141
23168
  onClick: handleMobileToggle
23142
23169
  }, [
23143
23170
  createTextVNode(toDisplayString(_ctx.label) + " ", 1),
23144
- _ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$z, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
23171
+ _ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$A, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
23145
23172
  ], 2);
23146
23173
  };
23147
23174
  }
23148
23175
  });
23149
- const _hoisted_1$y = {
23176
+ const _hoisted_1$z = {
23150
23177
  key: 0,
23151
23178
  id: "lupa-search-results-page-select",
23152
23179
  "data-cy": "lupa-search-results-page-select"
23153
23180
  };
23154
- const _hoisted_2$r = {
23181
+ const _hoisted_2$s = {
23155
23182
  key: 0,
23156
23183
  class: "lupa-page-number-separator"
23157
23184
  };
23158
- const _hoisted_3$l = ["onClick"];
23185
+ const _hoisted_3$m = ["onClick"];
23159
23186
  const _hoisted_4$f = {
23160
23187
  key: 0,
23161
23188
  class: "lupa-page-number-separator"
23162
23189
  };
23163
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
23190
+ const _sfc_main$E = /* @__PURE__ */ defineComponent({
23164
23191
  __name: "SearchResultsPageSelect",
23165
23192
  props: {
23166
23193
  lastPageLabel: {},
@@ -23237,7 +23264,7 @@ and ensure you are accounting for this risk.
23237
23264
  }
23238
23265
  };
23239
23266
  return (_ctx, _cache) => {
23240
- return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$y, [
23267
+ return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$z, [
23241
23268
  showBack.value ? (openBlock(), createElementBlock("div", {
23242
23269
  key: 0,
23243
23270
  class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
@@ -23248,7 +23275,7 @@ and ensure you are accounting for this risk.
23248
23275
  class: "lupa-page-number lupa-page-number-first",
23249
23276
  onClick: _cache[1] || (_cache[1] = () => handlePageChange(1))
23250
23277
  }, " 1 "),
23251
- showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$r, "...")) : createCommentVNode("", true)
23278
+ showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$s, "...")) : createCommentVNode("", true)
23252
23279
  ], 64)) : createCommentVNode("", true),
23253
23280
  (openBlock(true), createElementBlock(Fragment, null, renderList(pages.value, (page) => {
23254
23281
  return openBlock(), createElementBlock("div", {
@@ -23259,7 +23286,7 @@ and ensure you are accounting for this risk.
23259
23286
  page === _ctx.options.selectedPage ? "lupa-page-number-selected" : ""
23260
23287
  ]),
23261
23288
  "data-cy": "lupa-page-number"
23262
- }, toDisplayString(page), 11, _hoisted_3$l);
23289
+ }, toDisplayString(page), 11, _hoisted_3$m);
23263
23290
  }), 128)),
23264
23291
  showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
23265
23292
  showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$f, "...")) : createCommentVNode("", true),
@@ -23281,15 +23308,15 @@ and ensure you are accounting for this risk.
23281
23308
  };
23282
23309
  }
23283
23310
  });
23284
- const _hoisted_1$x = {
23311
+ const _hoisted_1$y = {
23285
23312
  id: "lupa-search-results-page-size",
23286
23313
  "data-cy": "lupa-search-results-page-size"
23287
23314
  };
23288
- const _hoisted_2$q = { id: "lupa-select" };
23289
- const _hoisted_3$k = { class: "lupa-select-label" };
23315
+ const _hoisted_2$r = { id: "lupa-select" };
23316
+ const _hoisted_3$l = { class: "lupa-select-label" };
23290
23317
  const _hoisted_4$e = ["aria-label"];
23291
23318
  const _hoisted_5$9 = ["value"];
23292
- const _sfc_main$C = /* @__PURE__ */ defineComponent({
23319
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
23293
23320
  __name: "SearchResultsPageSize",
23294
23321
  props: {
23295
23322
  labels: {},
@@ -23317,9 +23344,9 @@ and ensure you are accounting for this risk.
23317
23344
  });
23318
23345
  };
23319
23346
  return (_ctx, _cache) => {
23320
- return openBlock(), createElementBlock("div", _hoisted_1$x, [
23321
- createBaseVNode("div", _hoisted_2$q, [
23322
- createBaseVNode("label", _hoisted_3$k, toDisplayString(label.value), 1),
23347
+ return openBlock(), createElementBlock("div", _hoisted_1$y, [
23348
+ createBaseVNode("div", _hoisted_2$r, [
23349
+ createBaseVNode("label", _hoisted_3$l, toDisplayString(label.value), 1),
23323
23350
  createBaseVNode("select", {
23324
23351
  class: "lupa-select-dropdown",
23325
23352
  "aria-label": label.value,
@@ -23340,15 +23367,15 @@ and ensure you are accounting for this risk.
23340
23367
  };
23341
23368
  }
23342
23369
  });
23343
- const _hoisted_1$w = {
23370
+ const _hoisted_1$x = {
23344
23371
  id: "lupa-search-results-sort",
23345
23372
  class: "lupa-search-results-sort"
23346
23373
  };
23347
- const _hoisted_2$p = { id: "lupa-select" };
23348
- const _hoisted_3$j = { class: "lupa-select-label" };
23374
+ const _hoisted_2$q = { id: "lupa-select" };
23375
+ const _hoisted_3$k = { class: "lupa-select-label" };
23349
23376
  const _hoisted_4$d = ["aria-label"];
23350
23377
  const _hoisted_5$8 = ["value"];
23351
- const _sfc_main$B = /* @__PURE__ */ defineComponent({
23378
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
23352
23379
  __name: "SearchResultsSort",
23353
23380
  props: {
23354
23381
  options: {},
@@ -23397,9 +23424,9 @@ and ensure you are accounting for this risk.
23397
23424
  previousKey.value = selectedKey.value;
23398
23425
  };
23399
23426
  return (_ctx, _cache) => {
23400
- return openBlock(), createElementBlock("div", _hoisted_1$w, [
23401
- createBaseVNode("div", _hoisted_2$p, [
23402
- createBaseVNode("label", _hoisted_3$j, toDisplayString(_ctx.options.label), 1),
23427
+ return openBlock(), createElementBlock("div", _hoisted_1$x, [
23428
+ createBaseVNode("div", _hoisted_2$q, [
23429
+ createBaseVNode("label", _hoisted_3$k, toDisplayString(_ctx.options.label), 1),
23403
23430
  withDirectives(createBaseVNode("select", {
23404
23431
  class: "lupa-select-dropdown",
23405
23432
  "aria-label": _ctx.options.label,
@@ -23422,12 +23449,12 @@ and ensure you are accounting for this risk.
23422
23449
  };
23423
23450
  }
23424
23451
  });
23425
- const _hoisted_1$v = { class: "lupa-toolbar-left" };
23426
- const _hoisted_2$o = {
23452
+ const _hoisted_1$w = { class: "lupa-toolbar-left" };
23453
+ const _hoisted_2$p = {
23427
23454
  key: 0,
23428
23455
  class: "lupa-toolbar-right-title"
23429
23456
  };
23430
- const _hoisted_3$i = { key: 2 };
23457
+ const _hoisted_3$j = { key: 2 };
23431
23458
  const _hoisted_4$c = { key: 4 };
23432
23459
  const _hoisted_5$7 = { key: 6 };
23433
23460
  const _hoisted_6$5 = { class: "lupa-toolbar-right" };
@@ -23437,7 +23464,7 @@ and ensure you are accounting for this risk.
23437
23464
  };
23438
23465
  const _hoisted_8 = { key: 2 };
23439
23466
  const _hoisted_9 = { key: 4 };
23440
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
23467
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
23441
23468
  __name: "SearchResultsToolbar",
23442
23469
  props: {
23443
23470
  options: {},
@@ -23544,16 +23571,16 @@ and ensure you are accounting for this risk.
23544
23571
  id: "lupa-search-results-toolbar",
23545
23572
  class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
23546
23573
  }, [
23547
- createBaseVNode("div", _hoisted_1$v, [
23548
- toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$o, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
23549
- showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$F, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$i)),
23550
- showItemSummary.value ? (openBlock(), createBlock(_sfc_main$X, {
23574
+ createBaseVNode("div", _hoisted_1$w, [
23575
+ toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$p, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
23576
+ showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$G, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$j)),
23577
+ showItemSummary.value ? (openBlock(), createBlock(_sfc_main$Y, {
23551
23578
  key: 3,
23552
23579
  label: searchSummaryLabel.value,
23553
23580
  clearable: unref(hasAnyFilter) && showFilterClear.value,
23554
23581
  onClear: handleClearAll
23555
23582
  }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$c)),
23556
- displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$D, {
23583
+ displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$E, {
23557
23584
  key: 5,
23558
23585
  options: paginationOptions.value.pageSelect,
23559
23586
  "last-page-label": paginationOptions.value.labels.showMore,
@@ -23562,16 +23589,16 @@ and ensure you are accounting for this risk.
23562
23589
  ]),
23563
23590
  createBaseVNode("div", _hoisted_6$5, [
23564
23591
  toolbarRightLabel.value ? (openBlock(), createElementBlock("div", _hoisted_7$3, toDisplayString(toolbarRightLabel.value), 1)) : createCommentVNode("", true),
23565
- createVNode(_sfc_main$E, {
23592
+ createVNode(_sfc_main$F, {
23566
23593
  label: optionsValue.value.labels.mobileFilterButton,
23567
23594
  "show-filter-count": showMobileFilterCount.value
23568
23595
  }, null, 8, ["label", "show-filter-count"]),
23569
- paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$C, {
23596
+ paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$D, {
23570
23597
  key: 1,
23571
23598
  options: paginationOptions.value.pageSize,
23572
23599
  labels: paginationOptions.value.labels
23573
23600
  }, null, 8, ["options", "labels"])) : (openBlock(), createElementBlock("div", _hoisted_8)),
23574
- sortOptions.value ? (openBlock(), createBlock(_sfc_main$B, {
23601
+ sortOptions.value ? (openBlock(), createBlock(_sfc_main$C, {
23575
23602
  key: 3,
23576
23603
  options: sortOptions.value,
23577
23604
  callbacks: callbacks.value
@@ -23581,7 +23608,7 @@ and ensure you are accounting for this risk.
23581
23608
  };
23582
23609
  }
23583
23610
  });
23584
- const _sfc_main$z = /* @__PURE__ */ defineComponent({
23611
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
23585
23612
  __name: "SearchResultsProductImage",
23586
23613
  props: {
23587
23614
  item: {},
@@ -23589,7 +23616,7 @@ and ensure you are accounting for this risk.
23589
23616
  },
23590
23617
  setup(__props) {
23591
23618
  return (_ctx, _cache) => {
23592
- return openBlock(), createBlock(_sfc_main$1k, {
23619
+ return openBlock(), createBlock(_sfc_main$1l, {
23593
23620
  item: _ctx.item,
23594
23621
  options: _ctx.options,
23595
23622
  "wrapper-class": "lupa-search-results-image-wrapper",
@@ -23598,16 +23625,16 @@ and ensure you are accounting for this risk.
23598
23625
  };
23599
23626
  }
23600
23627
  });
23601
- const _hoisted_1$u = ["title", "innerHTML"];
23602
- const _hoisted_2$n = ["title"];
23603
- const _hoisted_3$h = ["href", "innerHTML"];
23628
+ const _hoisted_1$v = ["title", "innerHTML"];
23629
+ const _hoisted_2$o = ["title"];
23630
+ const _hoisted_3$i = ["href", "innerHTML"];
23604
23631
  const _hoisted_4$b = ["title"];
23605
23632
  const _hoisted_5$6 = {
23606
23633
  key: 0,
23607
23634
  class: "lupa-search-results-product-title-text"
23608
23635
  };
23609
23636
  const _hoisted_6$4 = ["href"];
23610
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
23637
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
23611
23638
  __name: "SearchResultsProductTitle",
23612
23639
  props: {
23613
23640
  item: {},
@@ -23644,7 +23671,7 @@ and ensure you are accounting for this risk.
23644
23671
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
23645
23672
  title: sanitizedTitle.value,
23646
23673
  innerHTML: sanitizedTitle.value
23647
- }, null, 12, _hoisted_1$u)) : isHtml.value && _ctx.options.link ? (openBlock(), createElementBlock("div", {
23674
+ }, null, 12, _hoisted_1$v)) : isHtml.value && _ctx.options.link ? (openBlock(), createElementBlock("div", {
23648
23675
  key: 1,
23649
23676
  class: "lupa-search-results-product-title",
23650
23677
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
@@ -23655,8 +23682,8 @@ and ensure you are accounting for this risk.
23655
23682
  class: "lupa-search-results-product-title-text lupa-title-link",
23656
23683
  innerHTML: sanitizedTitle.value,
23657
23684
  onClick: handleNavigation
23658
- }, null, 8, _hoisted_3$h)
23659
- ], 12, _hoisted_2$n)) : (openBlock(), createElementBlock("div", {
23685
+ }, null, 8, _hoisted_3$i)
23686
+ ], 12, _hoisted_2$o)) : (openBlock(), createElementBlock("div", {
23660
23687
  key: 2,
23661
23688
  class: "lupa-search-results-product-title",
23662
23689
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
@@ -23673,8 +23700,8 @@ and ensure you are accounting for this risk.
23673
23700
  };
23674
23701
  }
23675
23702
  });
23676
- const _hoisted_1$t = ["innerHTML"];
23677
- const _sfc_main$x = /* @__PURE__ */ defineComponent({
23703
+ const _hoisted_1$u = ["innerHTML"];
23704
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
23678
23705
  __name: "SearchResultsProductDescription",
23679
23706
  props: {
23680
23707
  item: {},
@@ -23701,7 +23728,7 @@ and ensure you are accounting for this risk.
23701
23728
  class: "lupa-search-results-product-description",
23702
23729
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
23703
23730
  innerHTML: sanitizedDescription.value
23704
- }, null, 12, _hoisted_1$t)) : (openBlock(), createElementBlock("div", {
23731
+ }, null, 12, _hoisted_1$u)) : (openBlock(), createElementBlock("div", {
23705
23732
  key: 1,
23706
23733
  class: "lupa-search-results-product-description",
23707
23734
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
@@ -23709,15 +23736,15 @@ and ensure you are accounting for this risk.
23709
23736
  };
23710
23737
  }
23711
23738
  });
23712
- const _hoisted_1$s = { id: "lupa-search-results-rating" };
23713
- const _hoisted_2$m = { class: "lupa-ratings" };
23714
- const _hoisted_3$g = { class: "lupa-ratings-base" };
23739
+ const _hoisted_1$t = { id: "lupa-search-results-rating" };
23740
+ const _hoisted_2$n = { class: "lupa-ratings" };
23741
+ const _hoisted_3$h = { class: "lupa-ratings-base" };
23715
23742
  const _hoisted_4$a = ["innerHTML"];
23716
23743
  const _hoisted_5$5 = { class: "lupa-rating-wrapper" };
23717
23744
  const _hoisted_6$3 = ["innerHTML"];
23718
23745
  const _hoisted_7$2 = ["href"];
23719
23746
  const STAR_COUNT = 5;
23720
- const _sfc_main$w = /* @__PURE__ */ defineComponent({
23747
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
23721
23748
  __name: "SearchResultsProductRating",
23722
23749
  props: {
23723
23750
  item: {},
@@ -23754,9 +23781,9 @@ and ensure you are accounting for this risk.
23754
23781
  return generateLink(props.options.links.ratingDetails, props.item);
23755
23782
  });
23756
23783
  return (_ctx, _cache) => {
23757
- return openBlock(), createElementBlock("div", _hoisted_1$s, [
23758
- createBaseVNode("div", _hoisted_2$m, [
23759
- createBaseVNode("div", _hoisted_3$g, [
23784
+ return openBlock(), createElementBlock("div", _hoisted_1$t, [
23785
+ createBaseVNode("div", _hoisted_2$n, [
23786
+ createBaseVNode("div", _hoisted_3$h, [
23760
23787
  (openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
23761
23788
  return openBlock(), createElementBlock("div", {
23762
23789
  key: index,
@@ -23788,11 +23815,11 @@ and ensure you are accounting for this risk.
23788
23815
  };
23789
23816
  }
23790
23817
  });
23791
- const _hoisted_1$r = {
23818
+ const _hoisted_1$s = {
23792
23819
  class: "lupa-search-results-product-regular-price",
23793
23820
  "data-cy": "lupa-search-results-product-regular-price"
23794
23821
  };
23795
- const _sfc_main$v = /* @__PURE__ */ defineComponent({
23822
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
23796
23823
  __name: "SearchResultsProductRegularPrice",
23797
23824
  props: {
23798
23825
  item: {},
@@ -23810,11 +23837,11 @@ and ensure you are accounting for this risk.
23810
23837
  );
23811
23838
  });
23812
23839
  return (_ctx, _cache) => {
23813
- return openBlock(), createElementBlock("div", _hoisted_1$r, toDisplayString(price.value), 1);
23840
+ return openBlock(), createElementBlock("div", _hoisted_1$s, toDisplayString(price.value), 1);
23814
23841
  };
23815
23842
  }
23816
23843
  });
23817
- const _sfc_main$u = /* @__PURE__ */ defineComponent({
23844
+ const _sfc_main$v = /* @__PURE__ */ defineComponent({
23818
23845
  __name: "SearchResultsProductPrice",
23819
23846
  props: {
23820
23847
  item: {},
@@ -23844,15 +23871,16 @@ and ensure you are accounting for this risk.
23844
23871
  };
23845
23872
  }
23846
23873
  });
23847
- const _hoisted_1$q = { class: "lupa-search-results-add-to-cart-wrapper" };
23848
- const _hoisted_2$l = { class: "lupa-search-results-product-addtocart" };
23849
- const _hoisted_3$f = ["id", "disabled", "onClick"];
23850
- const _sfc_main$t = /* @__PURE__ */ defineComponent({
23874
+ const _hoisted_1$r = { class: "lupa-search-results-add-to-cart-wrapper" };
23875
+ const _hoisted_2$m = { class: "lupa-search-results-product-addtocart" };
23876
+ const _hoisted_3$g = ["id", "disabled", "onClick"];
23877
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
23851
23878
  __name: "SearchResultsProductAddToCart",
23852
23879
  props: {
23853
23880
  item: {},
23854
23881
  options: {},
23855
- inStock: { type: Boolean }
23882
+ inStock: { type: Boolean },
23883
+ dynamicAttributes: {}
23856
23884
  },
23857
23885
  emits: ["productEvent"],
23858
23886
  setup(__props, { emit: emit2 }) {
@@ -23885,26 +23913,27 @@ and ensure you are accounting for this risk.
23885
23913
  loading.value = false;
23886
23914
  });
23887
23915
  return (_ctx, _cache) => {
23888
- return openBlock(), createElementBlock("div", _hoisted_1$q, [
23889
- createBaseVNode("div", _hoisted_2$l, [
23890
- createBaseVNode("button", {
23916
+ return openBlock(), createElementBlock("div", _hoisted_1$r, [
23917
+ createBaseVNode("div", _hoisted_2$m, [
23918
+ createBaseVNode("button", mergeProps({
23891
23919
  id: id.value,
23892
- class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
23920
+ class: loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart",
23893
23921
  "data-cy": "lupa-add-to-cart",
23894
- disabled: !inStockValue.value || loading.value,
23922
+ disabled: !inStockValue.value || loading.value
23923
+ }, _ctx.dynamicAttributes, {
23895
23924
  onClick: withModifiers(handleClick, ["stop"])
23896
- }, toDisplayString(label.value), 11, _hoisted_3$f)
23925
+ }), toDisplayString(label.value), 17, _hoisted_3$g)
23897
23926
  ])
23898
23927
  ]);
23899
23928
  };
23900
23929
  }
23901
23930
  });
23902
- const _hoisted_1$p = ["innerHTML"];
23903
- const _hoisted_2$k = { key: 0 };
23904
- const _hoisted_3$e = { key: 1 };
23931
+ const _hoisted_1$q = ["innerHTML"];
23932
+ const _hoisted_2$l = { key: 0 };
23933
+ const _hoisted_3$f = { key: 1 };
23905
23934
  const _hoisted_4$9 = { class: "lupa-search-box-custom-label" };
23906
23935
  const _hoisted_5$4 = { class: "lupa-search-box-custom-text" };
23907
- const _sfc_main$s = /* @__PURE__ */ defineComponent({
23936
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
23908
23937
  __name: "SearchResultsProductCustom",
23909
23938
  props: {
23910
23939
  item: {},
@@ -23942,11 +23971,11 @@ and ensure you are accounting for this risk.
23942
23971
  key: 0,
23943
23972
  class: className.value,
23944
23973
  innerHTML: text.value
23945
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$p)) : (openBlock(), createElementBlock("div", mergeProps({
23974
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$q)) : (openBlock(), createElementBlock("div", mergeProps({
23946
23975
  key: 1,
23947
23976
  class: className.value
23948
23977
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
23949
- !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$k, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$e, [
23978
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$l, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$f, [
23950
23979
  createBaseVNode("div", _hoisted_4$9, toDisplayString(label.value), 1),
23951
23980
  createBaseVNode("div", _hoisted_5$4, toDisplayString(text.value), 1)
23952
23981
  ]))
@@ -23954,8 +23983,8 @@ and ensure you are accounting for this risk.
23954
23983
  };
23955
23984
  }
23956
23985
  });
23957
- const _hoisted_1$o = ["innerHTML"];
23958
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
23986
+ const _hoisted_1$p = ["innerHTML"];
23987
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
23959
23988
  __name: "SearchResultsProductCustomHtmlElement",
23960
23989
  props: {
23961
23990
  item: {},
@@ -23986,15 +24015,15 @@ and ensure you are accounting for this risk.
23986
24015
  return openBlock(), createElementBlock("div", mergeProps({
23987
24016
  class: className.value,
23988
24017
  innerHTML: text.value
23989
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$o);
24018
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$p);
23990
24019
  };
23991
24020
  }
23992
24021
  });
23993
- const _hoisted_1$n = { id: "lupa-search-results-rating" };
23994
- const _hoisted_2$j = ["innerHTML"];
23995
- const _hoisted_3$d = { class: "lupa-ratings" };
24022
+ const _hoisted_1$o = { id: "lupa-search-results-rating" };
24023
+ const _hoisted_2$k = ["innerHTML"];
24024
+ const _hoisted_3$e = { class: "lupa-ratings" };
23996
24025
  const _hoisted_4$8 = ["href"];
23997
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
24026
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
23998
24027
  __name: "SearchResultsProductSingleStarRating",
23999
24028
  props: {
24000
24029
  item: {},
@@ -24022,12 +24051,12 @@ and ensure you are accounting for this risk.
24022
24051
  return RATING_STAR_HTML;
24023
24052
  });
24024
24053
  return (_ctx, _cache) => {
24025
- return openBlock(), createElementBlock("div", _hoisted_1$n, [
24054
+ return openBlock(), createElementBlock("div", _hoisted_1$o, [
24026
24055
  createBaseVNode("div", {
24027
24056
  innerHTML: star.value,
24028
24057
  class: "lupa-rating lupa-rating-highlighted"
24029
- }, null, 8, _hoisted_2$j),
24030
- createBaseVNode("div", _hoisted_3$d, toDisplayString(rating.value), 1),
24058
+ }, null, 8, _hoisted_2$k),
24059
+ createBaseVNode("div", _hoisted_3$e, toDisplayString(rating.value), 1),
24031
24060
  createBaseVNode("a", {
24032
24061
  href: ratingLink.value,
24033
24062
  class: "lupa-total-ratings"
@@ -24038,19 +24067,19 @@ and ensure you are accounting for this risk.
24038
24067
  });
24039
24068
  const __default__ = {
24040
24069
  components: {
24041
- SearchResultsProductImage: _sfc_main$z,
24042
- SearchResultsProductTitle: _sfc_main$y,
24043
- SearchResultsProductDescription: _sfc_main$x,
24044
- SearchResultsProductRating: _sfc_main$w,
24045
- SearchResultsProductRegularPrice: _sfc_main$v,
24046
- SearchResultsProductPrice: _sfc_main$u,
24047
- SearchResultsProductAddToCart: _sfc_main$t,
24048
- SearchResultsProductCustom: _sfc_main$s,
24049
- SearchResultsProductCustomHtmlElement: _sfc_main$r,
24050
- SearchResultsProductSingleStarRating: _sfc_main$q
24051
- }
24052
- };
24053
- const _sfc_main$p = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
24070
+ SearchResultsProductImage: _sfc_main$A,
24071
+ SearchResultsProductTitle: _sfc_main$z,
24072
+ SearchResultsProductDescription: _sfc_main$y,
24073
+ SearchResultsProductRating: _sfc_main$x,
24074
+ SearchResultsProductRegularPrice: _sfc_main$w,
24075
+ SearchResultsProductPrice: _sfc_main$v,
24076
+ SearchResultsProductAddToCart: _sfc_main$u,
24077
+ SearchResultsProductCustom: _sfc_main$t,
24078
+ SearchResultsProductCustomHtmlElement: _sfc_main$s,
24079
+ SearchResultsProductSingleStarRating: _sfc_main$r
24080
+ }
24081
+ };
24082
+ const _sfc_main$q = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
24054
24083
  __name: "SearchResultsProductCardElement",
24055
24084
  props: {
24056
24085
  item: {},
@@ -24089,6 +24118,9 @@ and ensure you are accounting for this risk.
24089
24118
  }
24090
24119
  return "searchResultsProductTitle";
24091
24120
  });
24121
+ const renderDynamicAttributesOnParentElement = computed(() => {
24122
+ return props.element.type !== DocumentElementType.ADDTOCART;
24123
+ });
24092
24124
  const enhancedItem = computed(() => {
24093
24125
  var _a, _b, _c, _d;
24094
24126
  if (!((_a = props.item) == null ? void 0 : _a.id)) {
@@ -24105,6 +24137,9 @@ and ensure you are accounting for this risk.
24105
24137
  }
24106
24138
  return typeof element.display === "function" ? element.display(item) : processDisplayCondition(element.display, item);
24107
24139
  });
24140
+ const dynamicAttributes = computed(() => {
24141
+ return getDynamicAttributes(props.element.dynamicAttributes, enhancedItem.value);
24142
+ });
24108
24143
  const handleProductEvent = (item) => {
24109
24144
  emit2("productEvent", item);
24110
24145
  };
@@ -24113,27 +24148,27 @@ and ensure you are accounting for this risk.
24113
24148
  };
24114
24149
  return (_ctx, _cache) => {
24115
24150
  var _a;
24116
- return displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), {
24151
+ return displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), mergeProps({
24117
24152
  key: 0,
24118
24153
  item: enhancedItem.value,
24119
24154
  options: _ctx.element,
24120
24155
  labels: _ctx.labels,
24121
24156
  inStock: _ctx.inStock,
24122
24157
  link: _ctx.link,
24123
- class: normalizeClass({ "lupa-loading-dynamic-data": isLoadingDynamicData((_a = _ctx.item) == null ? void 0 : _a.id) }),
24124
- onProductEvent: handleProductEvent
24125
- }, null, 40, ["item", "options", "labels", "inStock", "link", "class"])) : createCommentVNode("", true);
24158
+ class: { "lupa-loading-dynamic-data": isLoadingDynamicData((_a = _ctx.item) == null ? void 0 : _a.id) },
24159
+ "dynamic-attributes": dynamicAttributes.value
24160
+ }, renderDynamicAttributesOnParentElement.value && dynamicAttributes.value, { onProductEvent: handleProductEvent }), null, 16, ["item", "options", "labels", "inStock", "link", "class", "dynamic-attributes"])) : createCommentVNode("", true);
24126
24161
  };
24127
24162
  }
24128
24163
  }));
24129
- const _hoisted_1$m = ["onMouseup"];
24130
- const _hoisted_2$i = ["href"];
24131
- const _hoisted_3$c = {
24164
+ const _hoisted_1$n = ["onMouseup"];
24165
+ const _hoisted_2$j = ["href"];
24166
+ const _hoisted_3$d = {
24132
24167
  key: 0,
24133
24168
  class: "lupa-out-of-stock"
24134
24169
  };
24135
24170
  const _hoisted_4$7 = { class: "lupa-search-result-product-details-section" };
24136
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
24171
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
24137
24172
  __name: "SearchResultsProductCard",
24138
24173
  props: {
24139
24174
  product: {},
@@ -24294,7 +24329,7 @@ and ensure you are accounting for this risk.
24294
24329
  onClick: handleClick,
24295
24330
  onMouseup: withModifiers(handleClick, ["middle", "exact"])
24296
24331
  }), [
24297
- createVNode(_sfc_main$14, { options: badgesOptions.value }, null, 8, ["options"]),
24332
+ createVNode(_sfc_main$15, { options: badgesOptions.value }, null, 8, ["options"]),
24298
24333
  createBaseVNode("div", {
24299
24334
  class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
24300
24335
  }, [
@@ -24304,7 +24339,7 @@ and ensure you are accounting for this risk.
24304
24339
  onClick: handleNavigation
24305
24340
  }, [
24306
24341
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
24307
- return openBlock(), createBlock(_sfc_main$p, {
24342
+ return openBlock(), createBlock(_sfc_main$q, {
24308
24343
  class: "lupa-search-results-product-element",
24309
24344
  item: _ctx.product,
24310
24345
  element,
@@ -24315,16 +24350,16 @@ and ensure you are accounting for this risk.
24315
24350
  onProductEvent: handleProductEvent
24316
24351
  }, null, 8, ["item", "element", "labels", "inStock", "link"]);
24317
24352
  }), 128)),
24318
- createVNode(_sfc_main$14, {
24353
+ createVNode(_sfc_main$15, {
24319
24354
  options: badgesOptions.value,
24320
24355
  position: "image",
24321
24356
  class: "lupa-image-badges"
24322
24357
  }, null, 8, ["options"]),
24323
- ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_3$c, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
24324
- ], 8, _hoisted_2$i),
24358
+ ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_3$d, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
24359
+ ], 8, _hoisted_2$j),
24325
24360
  createBaseVNode("div", _hoisted_4$7, [
24326
24361
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
24327
- return openBlock(), createBlock(_sfc_main$p, {
24362
+ return openBlock(), createBlock(_sfc_main$q, {
24328
24363
  class: "lupa-search-results-product-element",
24329
24364
  item: _ctx.product,
24330
24365
  element,
@@ -24342,7 +24377,7 @@ and ensure you are accounting for this risk.
24342
24377
  class: normalizeClass("lupa-element-group-" + group)
24343
24378
  }, [
24344
24379
  (openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
24345
- return openBlock(), createBlock(_sfc_main$p, {
24380
+ return openBlock(), createBlock(_sfc_main$q, {
24346
24381
  class: "lupa-search-results-product-element",
24347
24382
  item: _ctx.product,
24348
24383
  element,
@@ -24356,16 +24391,16 @@ and ensure you are accounting for this risk.
24356
24391
  ], 2);
24357
24392
  }), 128))
24358
24393
  ], 2)
24359
- ], 16, _hoisted_1$m);
24394
+ ], 16, _hoisted_1$n);
24360
24395
  };
24361
24396
  }
24362
24397
  });
24363
- const _hoisted_1$l = {
24398
+ const _hoisted_1$m = {
24364
24399
  id: "lupa-search-results-similar-queries",
24365
24400
  "data-cy": "lupa-search-results-similar-queries"
24366
24401
  };
24367
- const _hoisted_2$h = { class: "lupa-similar-queries-label" };
24368
- const _hoisted_3$b = {
24402
+ const _hoisted_2$i = { class: "lupa-similar-queries-label" };
24403
+ const _hoisted_3$c = {
24369
24404
  class: "lupa-similar-query-label",
24370
24405
  "data-cy": "lupa-similar-query-label"
24371
24406
  };
@@ -24376,7 +24411,7 @@ and ensure you are accounting for this risk.
24376
24411
  class: "lupa-products",
24377
24412
  "data-cy": "lupa-products"
24378
24413
  };
24379
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
24414
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
24380
24415
  __name: "SearchResultsSimilarQueries",
24381
24416
  props: {
24382
24417
  labels: {},
@@ -24406,11 +24441,11 @@ and ensure you are accounting for this risk.
24406
24441
  paramsStore.goToResults({ searchText, facet });
24407
24442
  };
24408
24443
  return (_ctx, _cache) => {
24409
- return openBlock(), createElementBlock("div", _hoisted_1$l, [
24410
- createBaseVNode("div", _hoisted_2$h, toDisplayString(_ctx.labels.similarQueries), 1),
24444
+ return openBlock(), createElementBlock("div", _hoisted_1$m, [
24445
+ createBaseVNode("div", _hoisted_2$i, toDisplayString(_ctx.labels.similarQueries), 1),
24411
24446
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
24412
24447
  return openBlock(), createElementBlock("div", { key: index }, [
24413
- createBaseVNode("div", _hoisted_3$b, [
24448
+ createBaseVNode("div", _hoisted_3$c, [
24414
24449
  createBaseVNode("span", null, toDisplayString(similarQueryLabel.value), 1),
24415
24450
  createBaseVNode("span", {
24416
24451
  id: "lupa-similar-query-text-component",
@@ -24426,7 +24461,7 @@ and ensure you are accounting for this risk.
24426
24461
  ]),
24427
24462
  createBaseVNode("div", _hoisted_7$1, [
24428
24463
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
24429
- return openBlock(), createBlock(_sfc_main$o, {
24464
+ return openBlock(), createBlock(_sfc_main$p, {
24430
24465
  style: normalizeStyle(_ctx.columnSize),
24431
24466
  key: getDocumentKey(index2, product),
24432
24467
  product,
@@ -24440,15 +24475,15 @@ and ensure you are accounting for this risk.
24440
24475
  };
24441
24476
  }
24442
24477
  });
24443
- const _hoisted_1$k = {
24478
+ const _hoisted_1$l = {
24444
24479
  key: 0,
24445
24480
  class: "lupa-results-additional-panel"
24446
24481
  };
24447
- const _hoisted_2$g = {
24482
+ const _hoisted_2$h = {
24448
24483
  class: "lupa-results-additional-panel-items",
24449
24484
  "data-cy": "lupa-results-additional-panel-items"
24450
24485
  };
24451
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
24486
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
24452
24487
  __name: "AdditionalPanel",
24453
24488
  props: {
24454
24489
  panel: {},
@@ -24521,10 +24556,10 @@ and ensure you are accounting for this risk.
24521
24556
  handleQueryChange();
24522
24557
  });
24523
24558
  return (_ctx, _cache) => {
24524
- return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$k, [
24525
- createBaseVNode("div", _hoisted_2$g, [
24559
+ return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$l, [
24560
+ createBaseVNode("div", _hoisted_2$h, [
24526
24561
  (openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
24527
- return openBlock(), createBlock(_sfc_main$o, {
24562
+ return openBlock(), createBlock(_sfc_main$p, {
24528
24563
  key: index,
24529
24564
  product: item,
24530
24565
  options: _ctx.panel,
@@ -24542,11 +24577,11 @@ and ensure you are accounting for this risk.
24542
24577
  };
24543
24578
  }
24544
24579
  });
24545
- const _hoisted_1$j = {
24580
+ const _hoisted_1$k = {
24546
24581
  key: 0,
24547
24582
  class: "lupa-results-additional-panels"
24548
24583
  };
24549
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
24584
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
24550
24585
  __name: "AdditionalPanels",
24551
24586
  props: {
24552
24587
  options: {},
@@ -24563,9 +24598,9 @@ and ensure you are accounting for this risk.
24563
24598
  return locationPanels.value.length > 0;
24564
24599
  });
24565
24600
  return (_ctx, _cache) => {
24566
- return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$j, [
24601
+ return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$k, [
24567
24602
  (openBlock(true), createElementBlock(Fragment, null, renderList(locationPanels.value, (panel) => {
24568
- return openBlock(), createBlock(_sfc_main$m, {
24603
+ return openBlock(), createBlock(_sfc_main$n, {
24569
24604
  key: panel.queryKey,
24570
24605
  panel,
24571
24606
  options: _ctx.sdkOptions
@@ -24582,29 +24617,29 @@ and ensure you are accounting for this risk.
24582
24617
  }
24583
24618
  return target;
24584
24619
  };
24585
- const _sfc_main$k = {};
24586
- const _hoisted_1$i = { class: "lupa-spinner-wrapper" };
24587
- const _hoisted_2$f = { class: "lupa-spinner" };
24620
+ const _sfc_main$l = {};
24621
+ const _hoisted_1$j = { class: "lupa-spinner-wrapper" };
24622
+ const _hoisted_2$g = { class: "lupa-spinner" };
24588
24623
  function _sfc_render(_ctx, _cache) {
24589
- return openBlock(), createElementBlock("div", _hoisted_1$i, [
24590
- createBaseVNode("div", _hoisted_2$f, [
24624
+ return openBlock(), createElementBlock("div", _hoisted_1$j, [
24625
+ createBaseVNode("div", _hoisted_2$g, [
24591
24626
  (openBlock(), createElementBlock(Fragment, null, renderList(12, (x2) => {
24592
24627
  return createBaseVNode("div", { key: x2 });
24593
24628
  }), 64))
24594
24629
  ])
24595
24630
  ]);
24596
24631
  }
24597
- const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render]]);
24598
- const _hoisted_1$h = {
24632
+ const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render]]);
24633
+ const _hoisted_1$i = {
24599
24634
  id: "lupa-search-results-similar-results",
24600
24635
  "data-cy": "lupa-search-results-similar-results"
24601
24636
  };
24602
- const _hoisted_2$e = { class: "lupa-similar-results-label" };
24603
- const _hoisted_3$a = {
24637
+ const _hoisted_2$f = { class: "lupa-similar-results-label" };
24638
+ const _hoisted_3$b = {
24604
24639
  class: "lupa-products",
24605
24640
  "data-cy": "lupa-products"
24606
24641
  };
24607
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
24642
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
24608
24643
  __name: "SearchResultsSimilarResults",
24609
24644
  props: {
24610
24645
  columnSize: {},
@@ -24620,11 +24655,11 @@ and ensure you are accounting for this risk.
24620
24655
  return getProductKey(`${index}`, product, props.productCardOptions.idKey);
24621
24656
  };
24622
24657
  return (_ctx, _cache) => {
24623
- return openBlock(), createElementBlock("div", _hoisted_1$h, [
24624
- createBaseVNode("div", _hoisted_2$e, toDisplayString(_ctx.labels.similarResultsLabel), 1),
24625
- createBaseVNode("div", _hoisted_3$a, [
24658
+ return openBlock(), createElementBlock("div", _hoisted_1$i, [
24659
+ createBaseVNode("div", _hoisted_2$f, toDisplayString(_ctx.labels.similarResultsLabel), 1),
24660
+ createBaseVNode("div", _hoisted_3$b, [
24626
24661
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarResults.value.items, (product, index) => {
24627
- return openBlock(), createBlock(_sfc_main$o, {
24662
+ return openBlock(), createBlock(_sfc_main$p, {
24628
24663
  style: normalizeStyle(_ctx.columnSize),
24629
24664
  key: getDocumentKey(index, product),
24630
24665
  product,
@@ -24660,15 +24695,15 @@ and ensure you are accounting for this risk.
24660
24695
  return extractFacetsRelatedSource(source, searchResults2);
24661
24696
  }
24662
24697
  };
24663
- const _hoisted_1$g = { class: "lupa-related-query-item" };
24664
- const _hoisted_2$d = { class: "lupa-related-query-image" };
24665
- const _hoisted_3$9 = { class: "lupa-related-query-label" };
24698
+ const _hoisted_1$h = { class: "lupa-related-query-item" };
24699
+ const _hoisted_2$e = { class: "lupa-related-query-image" };
24700
+ const _hoisted_3$a = { class: "lupa-related-query-label" };
24666
24701
  const _hoisted_4$5 = { class: "lupa-related-query-title" };
24667
24702
  const _hoisted_5$2 = {
24668
24703
  key: 0,
24669
24704
  class: "lupa-related-query-count"
24670
24705
  };
24671
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
24706
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
24672
24707
  __name: "RelatedQueryPanel",
24673
24708
  props: {
24674
24709
  query: {},
@@ -24679,7 +24714,9 @@ and ensure you are accounting for this risk.
24679
24714
  const loading = ref(false);
24680
24715
  const relatedQueryResult = ref(null);
24681
24716
  const optionsStore = useOptionsStore();
24717
+ const searchResultStore = useSearchResultStore();
24682
24718
  const { searchResultOptions } = storeToRefs(optionsStore);
24719
+ const { searchResult } = storeToRefs(searchResultStore);
24683
24720
  const mainImage = computed(() => {
24684
24721
  var _a, _b, _c;
24685
24722
  return (_c = (_b = (_a = searchResultOptions.value) == null ? void 0 : _a.elements) == null ? void 0 : _b.find((e2) => e2.type === DocumentElementType.IMAGE)) != null ? _c : "";
@@ -24704,24 +24741,34 @@ and ensure you are accounting for this risk.
24704
24741
  var _a, _b;
24705
24742
  return (_b = (_a = relatedQueryResult.value) == null ? void 0 : _a.total) != null ? _b : 0;
24706
24743
  });
24744
+ const searchText = computed(() => {
24745
+ var _a, _b, _c;
24746
+ 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();
24747
+ });
24748
+ const relatedQueryFilters = computed(() => {
24749
+ var _a, _b, _c;
24750
+ return ((_a = props.options.source) == null ? void 0 : _a.mode) === "filter" ? {
24751
+ [(_c = (_b = props.options) == null ? void 0 : _b.source) == null ? void 0 : _c.key]: [props.query]
24752
+ } : {};
24753
+ });
24707
24754
  const searchForRelatedQuery = () => __async2(this, null, function* () {
24708
- var _a, _b, _c, _d;
24755
+ var _a, _b, _c;
24709
24756
  if (!props.query) {
24710
24757
  return;
24711
24758
  }
24712
- const lupaQuery = { searchText: (_a = props.query) == null ? void 0 : _a.toLowerCase(), limit: 1 };
24759
+ const lupaQuery = { searchText: searchText.value, limit: 1, filters: relatedQueryFilters.value };
24713
24760
  try {
24714
24761
  loading.value = true;
24715
24762
  const result2 = yield LupaSearchSdk.query(
24716
24763
  queryKey.value,
24717
24764
  lupaQuery,
24718
- (_b = searchResultOptions.value) == null ? void 0 : _b.options
24765
+ (_a = searchResultOptions.value) == null ? void 0 : _a.options
24719
24766
  );
24720
24767
  if (result2.success) {
24721
24768
  relatedQueryResult.value = result2;
24722
24769
  }
24723
24770
  } catch (error) {
24724
- (_d = (_c = searchResultOptions.value) == null ? void 0 : _c.options) == null ? void 0 : _d.onError(error);
24771
+ (_c = (_b = searchResultOptions.value) == null ? void 0 : _b.options) == null ? void 0 : _c.onError(error);
24725
24772
  } finally {
24726
24773
  loading.value = false;
24727
24774
  }
@@ -24737,9 +24784,9 @@ and ensure you are accounting for this risk.
24737
24784
  });
24738
24785
  return (_ctx, _cache) => {
24739
24786
  var _a;
24740
- return openBlock(), createElementBlock("div", _hoisted_1$g, [
24741
- createBaseVNode("div", _hoisted_2$d, [
24742
- firstResultItem.value && image.value ? (openBlock(), createBlock(_sfc_main$1k, {
24787
+ return openBlock(), createElementBlock("div", _hoisted_1$h, [
24788
+ createBaseVNode("div", _hoisted_2$e, [
24789
+ firstResultItem.value && image.value ? (openBlock(), createBlock(_sfc_main$1l, {
24743
24790
  key: 0,
24744
24791
  "wrapper-class": "lupa-related-query-image-wrapper",
24745
24792
  "image-class": "lupa-related-query-image",
@@ -24747,7 +24794,7 @@ and ensure you are accounting for this risk.
24747
24794
  options: image.value
24748
24795
  }, null, 8, ["item", "options"])) : createCommentVNode("", true)
24749
24796
  ]),
24750
- createBaseVNode("div", _hoisted_3$9, [
24797
+ createBaseVNode("div", _hoisted_3$a, [
24751
24798
  createBaseVNode("span", _hoisted_4$5, toDisplayString(_ctx.query), 1),
24752
24799
  ((_a = _ctx.options) == null ? void 0 : _a.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$2, "(" + toDisplayString(totalItemCount.value) + ")", 1)) : createCommentVNode("", true)
24753
24800
  ])
@@ -24755,16 +24802,16 @@ and ensure you are accounting for this risk.
24755
24802
  };
24756
24803
  }
24757
24804
  });
24758
- const _hoisted_1$f = {
24805
+ const _hoisted_1$g = {
24759
24806
  key: 0,
24760
24807
  class: "lupa-related-queries"
24761
24808
  };
24762
- const _hoisted_2$c = {
24809
+ const _hoisted_2$d = {
24763
24810
  key: 0,
24764
24811
  class: "lupa-related-queries-title"
24765
24812
  };
24766
- const _hoisted_3$8 = ["onClick"];
24767
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
24813
+ const _hoisted_3$9 = ["onClick"];
24814
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
24768
24815
  __name: "RelatedQueries",
24769
24816
  props: {
24770
24817
  options: {}
@@ -24773,12 +24820,18 @@ and ensure you are accounting for this risk.
24773
24820
  const props = __props;
24774
24821
  const searchResultStore = useSearchResultStore();
24775
24822
  const paramsStore = useParamsStore();
24823
+ const optionsStore = useOptionsStore();
24776
24824
  const { searchResult } = storeToRefs(searchResultStore);
24825
+ const currentSearchText = computed(() => {
24826
+ var _a, _b;
24827
+ return (_b = (_a = searchResult.value) == null ? void 0 : _a.searchText) != null ? _b : "";
24828
+ });
24777
24829
  const relatedQueries = computed(() => {
24778
24830
  if (!props.options || !searchResult.value) {
24779
24831
  return [];
24780
24832
  }
24781
- return extractRelatedSource(props.options.source, searchResult.value);
24833
+ const queries = extractRelatedSource(props.options.source, searchResult.value);
24834
+ return queries;
24782
24835
  });
24783
24836
  const hasEnoughRelatedQueries = computed(() => {
24784
24837
  return relatedQueries.value.length > 1;
@@ -24786,28 +24839,130 @@ and ensure you are accounting for this risk.
24786
24839
  const goToResults = ({ searchText }) => {
24787
24840
  paramsStore.goToResults({ searchText });
24788
24841
  };
24842
+ const handleRelatedQueryClick = (query) => {
24843
+ var _a;
24844
+ if (((_a = props.options.source) == null ? void 0 : _a.mode) === "filter") {
24845
+ handleFilter(query);
24846
+ } else {
24847
+ goToResults({ searchText: query });
24848
+ }
24849
+ };
24850
+ const handleFilter = (query) => {
24851
+ var _a, _b;
24852
+ const facet = (_b = (_a = searchResult.value) == null ? void 0 : _a.facets) == null ? void 0 : _b.find(
24853
+ (facet2) => {
24854
+ var _a2, _b2;
24855
+ return facet2.key === ((_b2 = (_a2 = props.options) == null ? void 0 : _a2.source) == null ? void 0 : _b2.key);
24856
+ }
24857
+ );
24858
+ if (!facet || facet.type !== "terms") {
24859
+ return [];
24860
+ }
24861
+ toggleTermFilter(
24862
+ paramsStore.appendParams,
24863
+ { type: "terms", key: facet.key, value: query },
24864
+ optionsStore.getQueryParamName,
24865
+ {}
24866
+ );
24867
+ };
24868
+ const getSelectedFilterClass = (query) => {
24869
+ var _a, _b, _c, _d, _e, _f;
24870
+ if (((_a = props.options.source) == null ? void 0 : _a.mode) !== "filter") {
24871
+ return "";
24872
+ }
24873
+ 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(
24874
+ query
24875
+ )) ? "lupa-selected-related-query-filter" : "";
24876
+ };
24789
24877
  return (_ctx, _cache) => {
24790
24878
  var _a, _b, _c, _d;
24791
- return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
24792
- ((_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) ? (openBlock(), createElementBlock("h3", _hoisted_2$c, toDisplayString((_d = (_c = _ctx.options) == null ? void 0 : _c.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
24879
+ return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
24880
+ ((_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) ? (openBlock(), createElementBlock("h3", _hoisted_2$d, toDisplayString((_d = (_c = _ctx.options) == null ? void 0 : _c.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
24793
24881
  createBaseVNode("ul", null, [
24794
24882
  (openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries.value, (query) => {
24795
- return openBlock(), createElementBlock("li", { key: query }, [
24883
+ return openBlock(), createElementBlock("li", {
24884
+ key: query + currentSearchText.value,
24885
+ class: normalizeClass(getSelectedFilterClass(query))
24886
+ }, [
24796
24887
  createBaseVNode("a", {
24797
- onClick: ($event) => goToResults({ searchText: query })
24888
+ onClick: ($event) => handleRelatedQueryClick(query)
24798
24889
  }, [
24799
- createVNode(_sfc_main$i, {
24890
+ createVNode(_sfc_main$j, {
24800
24891
  options: _ctx.options,
24801
24892
  query
24802
24893
  }, null, 8, ["options", "query"])
24803
- ], 8, _hoisted_3$8)
24804
- ]);
24894
+ ], 8, _hoisted_3$9)
24895
+ ], 2);
24805
24896
  }), 128))
24806
24897
  ])
24807
24898
  ])) : createCommentVNode("", true);
24808
24899
  };
24809
24900
  }
24810
24901
  });
24902
+ const checkHasMatchCharacters = (option, searchText) => {
24903
+ var _a, _b;
24904
+ return (_b = (_a = option.matchCharacters) == null ? void 0 : _a.split("")) == null ? void 0 : _b.some((char) => searchText.includes(char));
24905
+ };
24906
+ const checkHasMatchWords = (option, searchText) => {
24907
+ var _a;
24908
+ return (_a = searchText.split(" ")) == null ? void 0 : _a.some((word) => {
24909
+ var _a2;
24910
+ return (_a2 = option.matchWords) == null ? void 0 : _a2.includes(word);
24911
+ });
24912
+ };
24913
+ const extractRedirectionSuggestion = (searchText = "", options) => {
24914
+ for (const option of options || []) {
24915
+ const hasMatchCharacters = option.matchCharacters;
24916
+ const hasMatchWords = option.matchWords;
24917
+ if (hasMatchCharacters && !hasMatchWords && checkHasMatchCharacters(option, searchText)) {
24918
+ return option;
24919
+ }
24920
+ if (hasMatchWords && !hasMatchCharacters && checkHasMatchWords(option, searchText)) {
24921
+ return option;
24922
+ }
24923
+ if (hasMatchCharacters && hasMatchWords && checkHasMatchCharacters(option, searchText) && checkHasMatchWords(option, searchText)) {
24924
+ return option;
24925
+ }
24926
+ }
24927
+ return null;
24928
+ };
24929
+ const _hoisted_1$f = {
24930
+ key: 0,
24931
+ class: "lupa-redirection-suggestion"
24932
+ };
24933
+ const _hoisted_2$c = { class: "lupa-redirections-suggestion-label" };
24934
+ const _hoisted_3$8 = ["href"];
24935
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
24936
+ __name: "RedirectionSuggestions",
24937
+ props: {
24938
+ options: {}
24939
+ },
24940
+ setup(__props) {
24941
+ const props = __props;
24942
+ const searchResultStore = useSearchResultStore();
24943
+ const optionsStore = useOptionsStore();
24944
+ const { searchResult } = storeToRefs(searchResultStore);
24945
+ const searchText = computed(() => searchResult.value.searchText);
24946
+ const redirectionSuggestion = computed(() => {
24947
+ return extractRedirectionSuggestion(searchText.value, props.options);
24948
+ });
24949
+ const label = computed(() => addParamsToLabel(redirectionSuggestion.value.label, searchText.value));
24950
+ const link = computed(
24951
+ () => generateResultLink(
24952
+ redirectionSuggestion.value.link,
24953
+ optionsStore.getQueryParamName,
24954
+ searchText.value
24955
+ )
24956
+ );
24957
+ return (_ctx, _cache) => {
24958
+ return redirectionSuggestion.value && label.value && link.value ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
24959
+ createBaseVNode("h4", _hoisted_2$c, [
24960
+ createBaseVNode("a", { href: link.value }, toDisplayString(label.value), 9, _hoisted_3$8)
24961
+ ])
24962
+ ])) : createCommentVNode("", true);
24963
+ };
24964
+ }
24965
+ });
24811
24966
  const _hoisted_1$e = { id: "lupa-search-results-products" };
24812
24967
  const _hoisted_2$b = {
24813
24968
  class: "lupa-products",
@@ -24937,27 +25092,30 @@ and ensure you are accounting for this risk.
24937
25092
  key: 0,
24938
25093
  class: "lupa-loader"
24939
25094
  })) : createCommentVNode("", true),
24940
- createVNode(_sfc_main$l, {
25095
+ createVNode(_sfc_main$h, {
25096
+ options: _ctx.options.redirectionSuggestions
25097
+ }, null, 8, ["options"]),
25098
+ createVNode(_sfc_main$m, {
24941
25099
  options: _ctx.options,
24942
25100
  location: "top",
24943
25101
  sdkOptions: _ctx.options.options
24944
25102
  }, null, 8, ["options", "sdkOptions"]),
24945
- createVNode(_sfc_main$h, {
25103
+ createVNode(_sfc_main$i, {
24946
25104
  options: _ctx.options.relatedQueries
24947
25105
  }, null, 8, ["options"]),
24948
25106
  unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
24949
- showTopFilters.value ? (openBlock(), createBlock(_sfc_main$G, {
25107
+ showTopFilters.value ? (openBlock(), createBlock(_sfc_main$H, {
24950
25108
  key: 0,
24951
25109
  options: (_a = _ctx.options.filters) != null ? _a : {}
24952
25110
  }, null, 8, ["options"])) : createCommentVNode("", true),
24953
- showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$A, {
25111
+ showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$B, {
24954
25112
  key: 1,
24955
25113
  class: "lupa-toolbar-mobile",
24956
25114
  options: _ctx.options,
24957
25115
  "pagination-location": "top",
24958
25116
  onFilter: filter2
24959
25117
  }, null, 8, ["options"])) : createCommentVNode("", true),
24960
- currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$U, {
25118
+ currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$V, {
24961
25119
  key: 2,
24962
25120
  class: normalizeClass(currentFiltersClass.value),
24963
25121
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -24966,12 +25124,12 @@ and ensure you are accounting for this risk.
24966
25124
  }, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true)
24967
25125
  ], 64)) : createCommentVNode("", true),
24968
25126
  unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
24969
- createVNode(_sfc_main$A, {
25127
+ createVNode(_sfc_main$B, {
24970
25128
  class: "lupa-toolbar-top",
24971
25129
  options: _ctx.options,
24972
25130
  "pagination-location": "top"
24973
25131
  }, null, 8, ["options"]),
24974
- currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$U, {
25132
+ currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$V, {
24975
25133
  key: 0,
24976
25134
  class: normalizeClass(currentFiltersClass.value),
24977
25135
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -24987,7 +25145,7 @@ and ensure you are accounting for this risk.
24987
25145
  options: productCardOptions.value
24988
25146
  });
24989
25147
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
24990
- return openBlock(), createBlock(_sfc_main$o, {
25148
+ return openBlock(), createBlock(_sfc_main$p, {
24991
25149
  style: normalizeStyle(columnSize.value),
24992
25150
  key: getProductKeyAction(index, product),
24993
25151
  product,
@@ -25003,12 +25161,12 @@ and ensure you are accounting for this risk.
25003
25161
  onClick: goToFirstPage
25004
25162
  }, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
25005
25163
  ])) : createCommentVNode("", true),
25006
- createVNode(_sfc_main$A, {
25164
+ createVNode(_sfc_main$B, {
25007
25165
  class: "lupa-toolbar-bottom",
25008
25166
  options: _ctx.options,
25009
25167
  "pagination-location": "bottom"
25010
25168
  }, null, 8, ["options"]),
25011
- createVNode(_sfc_main$l, {
25169
+ createVNode(_sfc_main$m, {
25012
25170
  options: _ctx.options,
25013
25171
  location: "bottom",
25014
25172
  sdkOptions: _ctx.options.options
@@ -25018,14 +25176,14 @@ and ensure you are accounting for this risk.
25018
25176
  createBaseVNode("span", null, toDisplayString(unref(currentQueryText)), 1)
25019
25177
  ])) : createCommentVNode("", true),
25020
25178
  hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
25021
- createVNode(_sfc_main$n, {
25179
+ createVNode(_sfc_main$o, {
25022
25180
  labels: similarQueriesLabels.value,
25023
25181
  columnSize: columnSize.value,
25024
25182
  productCardOptions: productCardOptions.value
25025
25183
  }, null, 8, ["labels", "columnSize", "productCardOptions"])
25026
25184
  ])) : createCommentVNode("", true),
25027
25185
  hasSimilarResults.value ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
25028
- createVNode(_sfc_main$j, {
25186
+ createVNode(_sfc_main$k, {
25029
25187
  labels: similarResultsLabels.value,
25030
25188
  columnSize: columnSize.value,
25031
25189
  productCardOptions: productCardOptions.value
@@ -25094,14 +25252,14 @@ and ensure you are accounting for this risk.
25094
25252
  ])) : createCommentVNode("", true),
25095
25253
  createBaseVNode("div", _hoisted_4$3, [
25096
25254
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
25097
- return openBlock(), createBlock(_sfc_main$T, {
25255
+ return openBlock(), createBlock(_sfc_main$U, {
25098
25256
  key: getCategoryKey(child),
25099
25257
  item: child,
25100
25258
  options: categoryOptions.value
25101
25259
  }, null, 8, ["item", "options"]);
25102
25260
  }), 128))
25103
25261
  ]),
25104
- createVNode(_sfc_main$A, {
25262
+ createVNode(_sfc_main$B, {
25105
25263
  class: "lupa-toolbar-mobile",
25106
25264
  "pagination-location": "top",
25107
25265
  options: _ctx.options
@@ -25333,8 +25491,8 @@ and ensure you are accounting for this risk.
25333
25491
  class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
25334
25492
  }, [
25335
25493
  _ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
25336
- createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
25337
- createVNode(_sfc_main$W, {
25494
+ createVNode(_sfc_main$Z, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
25495
+ createVNode(_sfc_main$X, {
25338
25496
  "show-summary": true,
25339
25497
  options: _ctx.options,
25340
25498
  "is-product-list": (_a = _ctx.isProductList) != null ? _a : false
@@ -25344,17 +25502,17 @@ and ensure you are accounting for this risk.
25344
25502
  key: 1,
25345
25503
  options: _ctx.options
25346
25504
  }, null, 8, ["options"])) : createCommentVNode("", true),
25347
- _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$I, {
25505
+ _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$J, {
25348
25506
  key: 2,
25349
25507
  options: _ctx.options.filters,
25350
25508
  onFilter: handleParamsChange
25351
25509
  }, null, 8, ["options"])) : createCommentVNode("", true),
25352
- unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$H, {
25510
+ unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$I, {
25353
25511
  key: 3,
25354
25512
  breadcrumbs: _ctx.options.breadcrumbs
25355
25513
  }, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
25356
25514
  isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
25357
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$J, {
25515
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$K, {
25358
25516
  key: 0,
25359
25517
  options: (_b = _ctx.options.filters) != null ? _b : {},
25360
25518
  ref_key: "searchResultsFilters",
@@ -25362,8 +25520,8 @@ and ensure you are accounting for this risk.
25362
25520
  onFilter: handleParamsChange
25363
25521
  }, null, 8, ["options"])) : createCommentVNode("", true),
25364
25522
  createBaseVNode("div", _hoisted_3$5, [
25365
- createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
25366
- createVNode(_sfc_main$W, {
25523
+ createVNode(_sfc_main$Z, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
25524
+ createVNode(_sfc_main$X, {
25367
25525
  options: _ctx.options,
25368
25526
  "is-product-list": (_c = _ctx.isProductList) != null ? _c : false
25369
25527
  }, null, 8, ["options", "is-product-list"]),
@@ -25379,13 +25537,13 @@ and ensure you are accounting for this risk.
25379
25537
  }, 8, ["options", "ssr"])
25380
25538
  ])
25381
25539
  ])) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
25382
- createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
25383
- createVNode(_sfc_main$W, {
25540
+ createVNode(_sfc_main$Z, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
25541
+ createVNode(_sfc_main$X, {
25384
25542
  options: _ctx.options,
25385
25543
  "is-product-list": (_d = _ctx.isProductList) != null ? _d : false
25386
25544
  }, null, 8, ["options", "is-product-list"]),
25387
25545
  createBaseVNode("div", _hoisted_4$2, [
25388
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$J, {
25546
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$K, {
25389
25547
  key: 0,
25390
25548
  options: (_e = _ctx.options.filters) != null ? _e : {},
25391
25549
  ref_key: "searchResultsFilters",
@@ -31075,7 +31233,7 @@ and ensure you are accounting for this risk.
31075
31233
  onClick: withModifiers(innerClick, ["stop"])
31076
31234
  }, [
31077
31235
  createBaseVNode("div", _hoisted_2$7, [
31078
- createVNode(_sfc_main$Z, {
31236
+ createVNode(_sfc_main$_, {
31079
31237
  options: fullSearchBoxOptions.value,
31080
31238
  "is-search-container": true,
31081
31239
  ref_key: "searchBox",
@@ -31965,7 +32123,7 @@ and ensure you are accounting for this risk.
31965
32123
  key: getProductKeyAction(index, product)
31966
32124
  }, {
31967
32125
  default: withCtx(() => [
31968
- createVNode(_sfc_main$o, {
32126
+ createVNode(_sfc_main$p, {
31969
32127
  product,
31970
32128
  options: _ctx.options,
31971
32129
  "click-tracking-settings": clickTrackingSettings.value
@@ -31978,7 +32136,7 @@ and ensure you are accounting for this risk.
31978
32136
  _: 1
31979
32137
  }, 16)) : (openBlock(), createElementBlock("div", _hoisted_3$4, [
31980
32138
  (openBlock(true), createElementBlock(Fragment, null, renderList(recommendations2.value, (product, index) => {
31981
- return openBlock(), createBlock(_sfc_main$o, {
32139
+ return openBlock(), createBlock(_sfc_main$p, {
31982
32140
  style: normalizeStyle(columnSize.value),
31983
32141
  key: getProductKeyAction(index, product),
31984
32142
  product,
@@ -32242,7 +32400,7 @@ and ensure you are accounting for this risk.
32242
32400
  createBaseVNode("a", {
32243
32401
  href: getLink(product)
32244
32402
  }, [
32245
- createVNode(_sfc_main$z, {
32403
+ createVNode(_sfc_main$A, {
32246
32404
  item: product,
32247
32405
  options: image.value
32248
32406
  }, null, 8, ["item", "options"])
@@ -32406,7 +32564,7 @@ and ensure you are accounting for this risk.
32406
32564
  return (_ctx, _cache) => {
32407
32565
  return openBlock(), createElementBlock("section", _hoisted_1$3, [
32408
32566
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
32409
- return openBlock(), createBlock(_sfc_main$o, {
32567
+ return openBlock(), createBlock(_sfc_main$p, {
32410
32568
  class: "lupa-chat-product-card",
32411
32569
  key: getProductKeyAction(index, product),
32412
32570
  product,
@@ -32599,7 +32757,7 @@ and ensure you are accounting for this risk.
32599
32757
  key: 0,
32600
32758
  class: "lupasearch-chat-content"
32601
32759
  };
32602
- const _sfc_main$1t = /* @__PURE__ */ defineComponent({
32760
+ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
32603
32761
  __name: "ChatContainer",
32604
32762
  props: {
32605
32763
  options: {}
@@ -38617,7 +38775,7 @@ and ensure you are accounting for this risk.
38617
38775
  };
38618
38776
  __expose({ fetch: fetch2 });
38619
38777
  return (_ctx, _cache) => {
38620
- return openBlock(), createBlock(unref(_sfc_main$Z), {
38778
+ return openBlock(), createBlock(unref(_sfc_main$_), {
38621
38779
  options: fullSearchBoxOptions.value,
38622
38780
  ref_key: "searchBox",
38623
38781
  ref: searchBox2
@@ -39172,7 +39330,7 @@ and ensure you are accounting for this risk.
39172
39330
  const instance = createVue(
39173
39331
  options.displayOptions.containerSelector,
39174
39332
  mountOptions == null ? void 0 : mountOptions.mountingBehavior,
39175
- _sfc_main$1t,
39333
+ _sfc_main$1u,
39176
39334
  {
39177
39335
  options
39178
39336
  }