@getlupa/client 1.14.5 → 1.14.7

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.
@@ -6314,6 +6314,44 @@ const withModifiers = (fn, modifiers) => {
6314
6314
  return fn(event, ...args);
6315
6315
  };
6316
6316
  };
6317
+ const vShow = {
6318
+ beforeMount(el, { value }, { transition }) {
6319
+ el._vod = el.style.display === "none" ? "" : el.style.display;
6320
+ if (transition && value) {
6321
+ transition.beforeEnter(el);
6322
+ } else {
6323
+ setDisplay(el, value);
6324
+ }
6325
+ },
6326
+ mounted(el, { value }, { transition }) {
6327
+ if (transition && value) {
6328
+ transition.enter(el);
6329
+ }
6330
+ },
6331
+ updated(el, { value, oldValue }, { transition }) {
6332
+ if (!value === !oldValue)
6333
+ return;
6334
+ if (transition) {
6335
+ if (value) {
6336
+ transition.beforeEnter(el);
6337
+ setDisplay(el, true);
6338
+ transition.enter(el);
6339
+ } else {
6340
+ transition.leave(el, () => {
6341
+ setDisplay(el, false);
6342
+ });
6343
+ }
6344
+ } else {
6345
+ setDisplay(el, value);
6346
+ }
6347
+ },
6348
+ beforeUnmount(el, { value }) {
6349
+ setDisplay(el, value);
6350
+ }
6351
+ };
6352
+ function setDisplay(el, value) {
6353
+ el.style.display = value ? el._vod : "none";
6354
+ }
6317
6355
  const rendererOptions = /* @__PURE__ */ extend({ patchProp }, nodeOps);
6318
6356
  let renderer;
6319
6357
  function ensureRenderer() {
@@ -8556,20 +8594,20 @@ const useSearchBoxStore = defineStore("searchBox", () => {
8556
8594
  resetHighlightIndex
8557
8595
  };
8558
8596
  });
8559
- const _hoisted_1$1d = { id: "lupa-search-box-input-container" };
8560
- const _hoisted_2$S = { class: "lupa-input-clear" };
8561
- const _hoisted_3$B = { id: "lupa-search-box-input" };
8597
+ const _hoisted_1$1g = { id: "lupa-search-box-input-container" };
8598
+ const _hoisted_2$U = { class: "lupa-input-clear" };
8599
+ const _hoisted_3$D = { id: "lupa-search-box-input" };
8562
8600
  const _hoisted_4$t = ["value"];
8563
- const _hoisted_5$k = ["aria-label", "placeholder"];
8564
- const _hoisted_6$a = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
8601
+ const _hoisted_5$j = ["aria-label", "placeholder"];
8602
+ const _hoisted_6$9 = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
8565
8603
  const _hoisted_7$7 = [
8566
- _hoisted_6$a
8604
+ _hoisted_6$9
8567
8605
  ];
8568
8606
  const _hoisted_8$3 = {
8569
8607
  key: 0,
8570
8608
  class: "lupa-close-label"
8571
8609
  };
8572
- const _sfc_main$1n = /* @__PURE__ */ defineComponent({
8610
+ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
8573
8611
  __name: "SearchBoxInput",
8574
8612
  props: {
8575
8613
  options: {},
@@ -8653,14 +8691,14 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
8653
8691
  };
8654
8692
  __expose({ focus });
8655
8693
  return (_ctx, _cache) => {
8656
- return openBlock(), createElementBlock("div", _hoisted_1$1d, [
8657
- createBaseVNode("div", _hoisted_2$S, [
8694
+ return openBlock(), createElementBlock("div", _hoisted_1$1g, [
8695
+ createBaseVNode("div", _hoisted_2$U, [
8658
8696
  createBaseVNode("div", {
8659
8697
  class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
8660
8698
  onClick: clear2
8661
8699
  }, null, 2)
8662
8700
  ]),
8663
- createBaseVNode("div", _hoisted_3$B, [
8701
+ createBaseVNode("div", _hoisted_3$D, [
8664
8702
  createBaseVNode("input", {
8665
8703
  class: "lupa-hint",
8666
8704
  "aria-hidden": "true",
@@ -8680,7 +8718,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
8680
8718
  placeholder: labels.value.placeholder,
8681
8719
  onInput: handleInput,
8682
8720
  onFocus: handleFocus
8683
- }), null, 16, _hoisted_5$k), [
8721
+ }), null, 16, _hoisted_5$j), [
8684
8722
  [vModelText, inputValue.value]
8685
8723
  ]),
8686
8724
  _ctx.options.showSubmitButton ? (openBlock(), createElementBlock("button", {
@@ -8699,7 +8737,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
8699
8737
  };
8700
8738
  }
8701
8739
  });
8702
- const _sfc_main$1m = /* @__PURE__ */ defineComponent({
8740
+ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
8703
8741
  __name: "SearchBoxMoreResults",
8704
8742
  props: {
8705
8743
  labels: {},
@@ -8731,9 +8769,9 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
8731
8769
  };
8732
8770
  }
8733
8771
  });
8734
- const _hoisted_1$1c = { class: "lupa-search-box-history-item" };
8735
- const _hoisted_2$R = { class: "lupa-search-box-history-item-content" };
8736
- const _sfc_main$1l = /* @__PURE__ */ defineComponent({
8772
+ const _hoisted_1$1f = { class: "lupa-search-box-history-item" };
8773
+ const _hoisted_2$T = { class: "lupa-search-box-history-item-content" };
8774
+ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
8737
8775
  __name: "SearchBoxHistoryItem",
8738
8776
  props: {
8739
8777
  item: {},
@@ -8749,8 +8787,8 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
8749
8787
  emit2("click", { query: props.item });
8750
8788
  };
8751
8789
  return (_ctx, _cache) => {
8752
- return openBlock(), createElementBlock("div", _hoisted_1$1c, [
8753
- createBaseVNode("div", _hoisted_2$R, [
8790
+ return openBlock(), createElementBlock("div", _hoisted_1$1f, [
8791
+ createBaseVNode("div", _hoisted_2$T, [
8754
8792
  createBaseVNode("div", {
8755
8793
  class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
8756
8794
  onClick: click2
@@ -8764,11 +8802,11 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
8764
8802
  };
8765
8803
  }
8766
8804
  });
8767
- const _hoisted_1$1b = {
8805
+ const _hoisted_1$1e = {
8768
8806
  key: 0,
8769
8807
  class: "lupa-search-box-history-panel"
8770
8808
  };
8771
- const _sfc_main$1k = /* @__PURE__ */ defineComponent({
8809
+ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
8772
8810
  __name: "SearchBoxHistoryPanel",
8773
8811
  props: {
8774
8812
  options: {}
@@ -8809,9 +8847,9 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
8809
8847
  }
8810
8848
  };
8811
8849
  return (_ctx, _cache) => {
8812
- return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1b, [
8850
+ return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1e, [
8813
8851
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(history), (item, index) => {
8814
- return openBlock(), createBlock(_sfc_main$1l, {
8852
+ return openBlock(), createBlock(_sfc_main$1p, {
8815
8853
  key: item,
8816
8854
  item,
8817
8855
  highlighted: index === highlightIndex.value,
@@ -8827,15 +8865,15 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
8827
8865
  };
8828
8866
  }
8829
8867
  });
8830
- const _hoisted_1$1a = { class: "lupa-search-box-no-results" };
8831
- const _sfc_main$1j = /* @__PURE__ */ defineComponent({
8868
+ const _hoisted_1$1d = { class: "lupa-search-box-no-results" };
8869
+ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
8832
8870
  __name: "SearchBoxNoResults",
8833
8871
  props: {
8834
8872
  labels: {}
8835
8873
  },
8836
8874
  setup(__props) {
8837
8875
  return (_ctx, _cache) => {
8838
- return openBlock(), createElementBlock("p", _hoisted_1$1a, toDisplayString(_ctx.labels.noResults), 1);
8876
+ return openBlock(), createElementBlock("p", _hoisted_1$1d, toDisplayString(_ctx.labels.noResults), 1);
8839
8877
  };
8840
8878
  }
8841
8879
  });
@@ -8867,13 +8905,13 @@ const generateGridTemplate = (elements) => {
8867
8905
  }
8868
8906
  return gridTemplate.join(" ");
8869
8907
  };
8870
- const _hoisted_1$19 = ["innerHTML"];
8871
- const _hoisted_2$Q = {
8908
+ const _hoisted_1$1c = ["innerHTML"];
8909
+ const _hoisted_2$S = {
8872
8910
  key: 1,
8873
8911
  "data-cy": "lupa-suggestion-value",
8874
8912
  class: "lupa-suggestion-value"
8875
8913
  };
8876
- const _hoisted_3$A = {
8914
+ const _hoisted_3$C = {
8877
8915
  key: 2,
8878
8916
  class: "lupa-suggestion-facet",
8879
8917
  "data-cy": "lupa-suggestion-facet"
@@ -8882,11 +8920,11 @@ const _hoisted_4$s = {
8882
8920
  class: "lupa-suggestion-facet-label",
8883
8921
  "data-cy": "lupa-suggestion-facet-label"
8884
8922
  };
8885
- const _hoisted_5$j = {
8923
+ const _hoisted_5$i = {
8886
8924
  class: "lupa-suggestion-facet-value",
8887
8925
  "data-cy": "lupa-suggestion-facet-value"
8888
8926
  };
8889
- const _sfc_main$1i = /* @__PURE__ */ defineComponent({
8927
+ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
8890
8928
  __name: "SearchBoxSuggestion",
8891
8929
  props: {
8892
8930
  suggestion: {},
@@ -8922,20 +8960,20 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
8922
8960
  class: "lupa-suggestion-value",
8923
8961
  "data-cy": "lupa-suggestion-value",
8924
8962
  innerHTML: _ctx.suggestion.displayHighlight
8925
- }, null, 8, _hoisted_1$19)) : (openBlock(), createElementBlock("div", _hoisted_2$Q, toDisplayString(_ctx.suggestion.display), 1)),
8926
- _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$A, [
8963
+ }, null, 8, _hoisted_1$1c)) : (openBlock(), createElementBlock("div", _hoisted_2$S, toDisplayString(_ctx.suggestion.display), 1)),
8964
+ _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$C, [
8927
8965
  createBaseVNode("span", _hoisted_4$s, toDisplayString(facetLabel.value), 1),
8928
- createBaseVNode("span", _hoisted_5$j, toDisplayString(_ctx.suggestion.facet.title), 1)
8966
+ createBaseVNode("span", _hoisted_5$i, toDisplayString(_ctx.suggestion.facet.title), 1)
8929
8967
  ])) : createCommentVNode("", true)
8930
8968
  ]);
8931
8969
  };
8932
8970
  }
8933
8971
  });
8934
- const _hoisted_1$18 = {
8972
+ const _hoisted_1$1b = {
8935
8973
  id: "lupa-search-box-suggestions",
8936
8974
  "data-cy": "lupa-search-box-suggestions"
8937
8975
  };
8938
- const _sfc_main$1h = /* @__PURE__ */ defineComponent({
8976
+ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
8939
8977
  __name: "SearchBoxSuggestions",
8940
8978
  props: {
8941
8979
  items: {},
@@ -8995,9 +9033,9 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
8995
9033
  });
8996
9034
  });
8997
9035
  return (_ctx, _cache) => {
8998
- return openBlock(), createElementBlock("div", _hoisted_1$18, [
9036
+ return openBlock(), createElementBlock("div", _hoisted_1$1b, [
8999
9037
  (openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
9000
- return openBlock(), createBlock(_sfc_main$1i, {
9038
+ return openBlock(), createBlock(_sfc_main$1m, {
9001
9039
  key: getSuggestionKey(item),
9002
9040
  class: normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
9003
9041
  suggestion: item,
@@ -9025,7 +9063,7 @@ const debounce$1 = (func, timeout) => {
9025
9063
  }, timeout);
9026
9064
  };
9027
9065
  };
9028
- const _sfc_main$1g = /* @__PURE__ */ defineComponent({
9066
+ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
9029
9067
  __name: "SearchBoxSuggestionsWrapper",
9030
9068
  props: {
9031
9069
  panel: {},
@@ -9067,7 +9105,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
9067
9105
  const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
9068
9106
  watch(() => props.panel.limit, getSuggestionsDebounced);
9069
9107
  return (_ctx, _cache) => {
9070
- return openBlock(), createBlock(_sfc_main$1h, {
9108
+ return openBlock(), createBlock(_sfc_main$1l, {
9071
9109
  items: searchResult.value,
9072
9110
  highlight: _ctx.panel.highlight,
9073
9111
  queryKey: _ctx.panel.queryKey,
@@ -18141,9 +18179,9 @@ const replaceImageWithPlaceholder = (e2, placeholder) => {
18141
18179
  targetImage.src = placeholder;
18142
18180
  }
18143
18181
  };
18144
- const _hoisted_1$17 = ["src"];
18145
- const _hoisted_2$P = ["src"];
18146
- const _sfc_main$1f = /* @__PURE__ */ defineComponent({
18182
+ const _hoisted_1$1a = ["src"];
18183
+ const _hoisted_2$R = ["src"];
18184
+ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
18147
18185
  __name: "ProductImage",
18148
18186
  props: {
18149
18187
  item: {},
@@ -18285,7 +18323,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
18285
18323
  }, { alt: imageAlt.value ? imageAlt.value : void 0 }, {
18286
18324
  onError: replaceWithPlaceholder,
18287
18325
  key: finalUrl.value
18288
- }), null, 16, _hoisted_1$17))
18326
+ }), null, 16, _hoisted_1$1a))
18289
18327
  ]),
18290
18328
  _: 1
18291
18329
  })) : (openBlock(), createElementBlock("img", mergeProps({
@@ -18293,12 +18331,12 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
18293
18331
  class: ["lupa-images-main-image", { [_ctx.imageClass]: true }],
18294
18332
  style: styleOverride.value,
18295
18333
  src: finalMainImageUrl.value
18296
- }, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$P))
18334
+ }, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$R))
18297
18335
  ], 38);
18298
18336
  };
18299
18337
  }
18300
18338
  });
18301
- const _sfc_main$1e = /* @__PURE__ */ defineComponent({
18339
+ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
18302
18340
  __name: "SearchBoxProductImage",
18303
18341
  props: {
18304
18342
  item: {},
@@ -18306,7 +18344,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
18306
18344
  },
18307
18345
  setup(__props) {
18308
18346
  return (_ctx, _cache) => {
18309
- return openBlock(), createBlock(_sfc_main$1f, {
18347
+ return openBlock(), createBlock(_sfc_main$1j, {
18310
18348
  item: _ctx.item,
18311
18349
  options: _ctx.options,
18312
18350
  "wrapper-class": "lupa-search-box-image-wrapper",
@@ -18315,12 +18353,12 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
18315
18353
  };
18316
18354
  }
18317
18355
  });
18318
- const _hoisted_1$16 = ["innerHTML"];
18319
- const _hoisted_2$O = {
18356
+ const _hoisted_1$19 = ["innerHTML"];
18357
+ const _hoisted_2$Q = {
18320
18358
  key: 1,
18321
18359
  class: "lupa-search-box-product-title"
18322
18360
  };
18323
- const _sfc_main$1d = /* @__PURE__ */ defineComponent({
18361
+ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
18324
18362
  __name: "SearchBoxProductTitle",
18325
18363
  props: {
18326
18364
  item: {},
@@ -18343,18 +18381,18 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
18343
18381
  key: 0,
18344
18382
  class: "lupa-search-box-product-title",
18345
18383
  innerHTML: sanitizedTitle.value
18346
- }, null, 8, _hoisted_1$16)) : (openBlock(), createElementBlock("div", _hoisted_2$O, [
18384
+ }, null, 8, _hoisted_1$19)) : (openBlock(), createElementBlock("div", _hoisted_2$Q, [
18347
18385
  createBaseVNode("strong", null, toDisplayString(title.value), 1)
18348
18386
  ]));
18349
18387
  };
18350
18388
  }
18351
18389
  });
18352
- const _hoisted_1$15 = ["innerHTML"];
18353
- const _hoisted_2$N = {
18390
+ const _hoisted_1$18 = ["innerHTML"];
18391
+ const _hoisted_2$P = {
18354
18392
  key: 1,
18355
18393
  class: "lupa-search-box-product-description"
18356
18394
  };
18357
- const _sfc_main$1c = /* @__PURE__ */ defineComponent({
18395
+ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
18358
18396
  __name: "SearchBoxProductDescription",
18359
18397
  props: {
18360
18398
  item: {},
@@ -18377,12 +18415,12 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
18377
18415
  key: 0,
18378
18416
  class: "lupa-search-box-product-description",
18379
18417
  innerHTML: sanitizedDescription.value
18380
- }, null, 8, _hoisted_1$15)) : (openBlock(), createElementBlock("div", _hoisted_2$N, toDisplayString(description.value), 1));
18418
+ }, null, 8, _hoisted_1$18)) : (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(description.value), 1));
18381
18419
  };
18382
18420
  }
18383
18421
  });
18384
- const _hoisted_1$14 = { class: "lupa-search-box-product-price" };
18385
- const _sfc_main$1b = /* @__PURE__ */ defineComponent({
18422
+ const _hoisted_1$17 = { class: "lupa-search-box-product-price" };
18423
+ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
18386
18424
  __name: "SearchBoxProductPrice",
18387
18425
  props: {
18388
18426
  item: {},
@@ -18400,13 +18438,13 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
18400
18438
  );
18401
18439
  });
18402
18440
  return (_ctx, _cache) => {
18403
- return openBlock(), createElementBlock("div", _hoisted_1$14, [
18441
+ return openBlock(), createElementBlock("div", _hoisted_1$17, [
18404
18442
  createBaseVNode("strong", null, toDisplayString(price.value), 1)
18405
18443
  ]);
18406
18444
  };
18407
18445
  }
18408
18446
  });
18409
- const _sfc_main$1a = /* @__PURE__ */ defineComponent({
18447
+ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
18410
18448
  __name: "SearchBoxProductRegularPrice",
18411
18449
  props: {
18412
18450
  item: {},
@@ -18433,12 +18471,12 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
18433
18471
  };
18434
18472
  }
18435
18473
  });
18436
- const _hoisted_1$13 = ["innerHTML"];
18437
- const _hoisted_2$M = { key: 0 };
18438
- const _hoisted_3$z = { key: 1 };
18474
+ const _hoisted_1$16 = ["innerHTML"];
18475
+ const _hoisted_2$O = { key: 0 };
18476
+ const _hoisted_3$B = { key: 1 };
18439
18477
  const _hoisted_4$r = { class: "lupa-search-box-custom-label" };
18440
- const _hoisted_5$i = { class: "lupa-search-box-custom-text" };
18441
- const _sfc_main$19 = /* @__PURE__ */ defineComponent({
18478
+ const _hoisted_5$h = { class: "lupa-search-box-custom-text" };
18479
+ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
18442
18480
  __name: "SearchBoxProductCustom",
18443
18481
  props: {
18444
18482
  item: {},
@@ -18464,20 +18502,20 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
18464
18502
  key: 0,
18465
18503
  class: [className.value, "lupa-search-box-product-custom"],
18466
18504
  innerHTML: text.value
18467
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$13)) : (openBlock(), createElementBlock("div", mergeProps({
18505
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$16)) : (openBlock(), createElementBlock("div", mergeProps({
18468
18506
  key: 1,
18469
18507
  class: [className.value, "lupa-search-box-product-custom"]
18470
18508
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
18471
- !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$M, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$z, [
18509
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$O, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$B, [
18472
18510
  createBaseVNode("div", _hoisted_4$r, toDisplayString(label.value), 1),
18473
- createBaseVNode("div", _hoisted_5$i, toDisplayString(text.value), 1)
18511
+ createBaseVNode("div", _hoisted_5$h, toDisplayString(text.value), 1)
18474
18512
  ]))
18475
18513
  ], 16));
18476
18514
  };
18477
18515
  }
18478
18516
  });
18479
- const _hoisted_1$12 = ["innerHTML"];
18480
- const _sfc_main$18 = /* @__PURE__ */ defineComponent({
18517
+ const _hoisted_1$15 = ["innerHTML"];
18518
+ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
18481
18519
  __name: "SearchBoxProductCustomHtml",
18482
18520
  props: {
18483
18521
  item: {},
@@ -18502,7 +18540,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
18502
18540
  return openBlock(), createElementBlock("div", mergeProps({
18503
18541
  class: className.value,
18504
18542
  innerHTML: text.value
18505
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$12);
18543
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$15);
18506
18544
  };
18507
18545
  }
18508
18546
  });
@@ -18736,10 +18774,10 @@ const useSearchResultStore = defineStore("searchResult", () => {
18736
18774
  setRelatedCategoryChildren
18737
18775
  };
18738
18776
  });
18739
- const _hoisted_1$11 = { class: "lupa-search-box-add-to-cart-wrapper" };
18740
- const _hoisted_2$L = { class: "lupa-search-box-product-addtocart" };
18741
- const _hoisted_3$y = ["onClick", "disabled"];
18742
- const _sfc_main$17 = /* @__PURE__ */ defineComponent({
18777
+ const _hoisted_1$14 = { class: "lupa-search-box-add-to-cart-wrapper" };
18778
+ const _hoisted_2$N = { class: "lupa-search-box-product-addtocart" };
18779
+ const _hoisted_3$A = ["onClick", "disabled"];
18780
+ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
18743
18781
  __name: "SearchBoxProductAddToCart",
18744
18782
  props: {
18745
18783
  item: {},
@@ -18772,37 +18810,37 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
18772
18810
  loading.value = false;
18773
18811
  });
18774
18812
  return (_ctx, _cache) => {
18775
- return openBlock(), createElementBlock("div", _hoisted_1$11, [
18776
- createBaseVNode("div", _hoisted_2$L, [
18813
+ return openBlock(), createElementBlock("div", _hoisted_1$14, [
18814
+ createBaseVNode("div", _hoisted_2$N, [
18777
18815
  createBaseVNode("button", {
18778
18816
  onClick: withModifiers(handleClick, ["stop", "prevent"]),
18779
18817
  class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
18780
18818
  "data-cy": "lupa-add-to-cart",
18781
18819
  type: "button",
18782
18820
  disabled: !inStockValue.value || loading.value
18783
- }, toDisplayString(label.value), 11, _hoisted_3$y)
18821
+ }, toDisplayString(label.value), 11, _hoisted_3$A)
18784
18822
  ])
18785
18823
  ]);
18786
18824
  };
18787
18825
  }
18788
18826
  });
18789
- const _hoisted_1$10 = {
18827
+ const _hoisted_1$13 = {
18790
18828
  key: 1,
18791
18829
  class: "lupa-search-box-element-badge-wrapper"
18792
18830
  };
18793
18831
  const __default__$4 = {
18794
18832
  components: {
18795
- SearchBoxProductImage: _sfc_main$1e,
18796
- SearchBoxProductTitle: _sfc_main$1d,
18797
- SearchBoxProductDescription: _sfc_main$1c,
18798
- SearchBoxProductPrice: _sfc_main$1b,
18799
- SearchBoxProductRegularPrice: _sfc_main$1a,
18800
- SearchBoxProductCustom: _sfc_main$19,
18801
- SearchBoxProductCustomHtml: _sfc_main$18,
18802
- SearchBoxProductAddToCart: _sfc_main$17
18833
+ SearchBoxProductImage: _sfc_main$1i,
18834
+ SearchBoxProductTitle: _sfc_main$1h,
18835
+ SearchBoxProductDescription: _sfc_main$1g,
18836
+ SearchBoxProductPrice: _sfc_main$1f,
18837
+ SearchBoxProductRegularPrice: _sfc_main$1e,
18838
+ SearchBoxProductCustom: _sfc_main$1d,
18839
+ SearchBoxProductCustomHtml: _sfc_main$1c,
18840
+ SearchBoxProductAddToCart: _sfc_main$1b
18803
18841
  }
18804
18842
  };
18805
- const _sfc_main$16 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
18843
+ const _sfc_main$1a = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
18806
18844
  __name: "SearchBoxProductElement",
18807
18845
  props: {
18808
18846
  item: {},
@@ -18865,7 +18903,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
18865
18903
  class: normalizeClass({ "lupa-loading-dynamic-data": isLoadingDynamicData((_a = _ctx.item) == null ? void 0 : _a.id) }),
18866
18904
  inStock: _ctx.isInStock
18867
18905
  }, null, 8, ["item", "options", "labels", "class", "inStock"])) : createCommentVNode("", true)
18868
- ], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$10, [
18906
+ ], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$13, [
18869
18907
  displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), {
18870
18908
  key: 0,
18871
18909
  item: enhancedItem.value,
@@ -18879,14 +18917,14 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
18879
18917
  };
18880
18918
  }
18881
18919
  }));
18882
- const _hoisted_1$$ = { class: "lupa-badge-title" };
18883
- const _hoisted_2$K = ["src"];
18884
- const _hoisted_3$x = { key: 1 };
18920
+ const _hoisted_1$12 = { class: "lupa-badge-title" };
18921
+ const _hoisted_2$M = ["src"];
18922
+ const _hoisted_3$z = { key: 1 };
18885
18923
  const _hoisted_4$q = {
18886
18924
  key: 0,
18887
18925
  class: "lupa-badge-full-text"
18888
18926
  };
18889
- const _sfc_main$15 = /* @__PURE__ */ defineComponent({
18927
+ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
18890
18928
  __name: "SearchResultGeneratedBadge",
18891
18929
  props: {
18892
18930
  options: {},
@@ -18919,20 +18957,20 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
18919
18957
  class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
18920
18958
  style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
18921
18959
  }, [
18922
- createBaseVNode("span", _hoisted_1$$, [
18960
+ createBaseVNode("span", _hoisted_1$12, [
18923
18961
  image.value ? (openBlock(), createElementBlock("img", {
18924
18962
  key: 0,
18925
18963
  src: image.value
18926
- }, null, 8, _hoisted_2$K)) : createCommentVNode("", true),
18927
- hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$x, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
18964
+ }, null, 8, _hoisted_2$M)) : createCommentVNode("", true),
18965
+ hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$z, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
18928
18966
  ]),
18929
18967
  hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$q, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
18930
18968
  ], 6);
18931
18969
  };
18932
18970
  }
18933
18971
  });
18934
- const _hoisted_1$_ = { class: "lupa-generated-badges" };
18935
- const _sfc_main$14 = /* @__PURE__ */ defineComponent({
18972
+ const _hoisted_1$11 = { class: "lupa-generated-badges" };
18973
+ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
18936
18974
  __name: "SearchResultGeneratedBadges",
18937
18975
  props: {
18938
18976
  options: {}
@@ -18958,9 +18996,9 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
18958
18996
  })).filter((b) => Boolean(b.id));
18959
18997
  });
18960
18998
  return (_ctx, _cache) => {
18961
- return openBlock(), createElementBlock("div", _hoisted_1$_, [
18999
+ return openBlock(), createElementBlock("div", _hoisted_1$11, [
18962
19000
  (openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
18963
- return openBlock(), createBlock(_sfc_main$15, {
19001
+ return openBlock(), createBlock(_sfc_main$19, {
18964
19002
  key: badge.id,
18965
19003
  badge,
18966
19004
  options: _ctx.options
@@ -18970,8 +19008,8 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
18970
19008
  };
18971
19009
  }
18972
19010
  });
18973
- const _hoisted_1$Z = ["innerHTML"];
18974
- const _sfc_main$13 = /* @__PURE__ */ defineComponent({
19011
+ const _hoisted_1$10 = ["innerHTML"];
19012
+ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
18975
19013
  __name: "CustomBadge",
18976
19014
  props: {
18977
19015
  badge: {}
@@ -18992,12 +19030,12 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
18992
19030
  return openBlock(), createElementBlock("div", {
18993
19031
  class: normalizeClass(className.value),
18994
19032
  innerHTML: text.value
18995
- }, null, 10, _hoisted_1$Z);
19033
+ }, null, 10, _hoisted_1$10);
18996
19034
  };
18997
19035
  }
18998
19036
  });
18999
- const _hoisted_1$Y = { class: "lupa-text-badges" };
19000
- const _sfc_main$12 = /* @__PURE__ */ defineComponent({
19037
+ const _hoisted_1$$ = { class: "lupa-text-badges" };
19038
+ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
19001
19039
  __name: "TextBadge",
19002
19040
  props: {
19003
19041
  badge: {}
@@ -19012,7 +19050,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
19012
19050
  return badges.value.slice(0, props.badge.maxItems);
19013
19051
  });
19014
19052
  return (_ctx, _cache) => {
19015
- return openBlock(), createElementBlock("div", _hoisted_1$Y, [
19053
+ return openBlock(), createElementBlock("div", _hoisted_1$$, [
19016
19054
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
19017
19055
  return openBlock(), createElementBlock("div", {
19018
19056
  class: "lupa-badge lupa-text-badge",
@@ -19023,9 +19061,9 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
19023
19061
  };
19024
19062
  }
19025
19063
  });
19026
- const _hoisted_1$X = { class: "lupa-image-badges" };
19027
- const _hoisted_2$J = ["src"];
19028
- const _sfc_main$11 = /* @__PURE__ */ defineComponent({
19064
+ const _hoisted_1$_ = { class: "lupa-image-badges" };
19065
+ const _hoisted_2$L = ["src"];
19066
+ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
19029
19067
  __name: "ImageBadge",
19030
19068
  props: {
19031
19069
  badge: {}
@@ -19045,7 +19083,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
19045
19083
  return `${props.badge.rootImageUrl}${src}`;
19046
19084
  };
19047
19085
  return (_ctx, _cache) => {
19048
- return openBlock(), createElementBlock("div", _hoisted_1$X, [
19086
+ return openBlock(), createElementBlock("div", _hoisted_1$_, [
19049
19087
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
19050
19088
  return openBlock(), createElementBlock("div", {
19051
19089
  class: "lupa-badge lupa-image-badge",
@@ -19053,22 +19091,22 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
19053
19091
  }, [
19054
19092
  createBaseVNode("img", {
19055
19093
  src: getImageUrl(item)
19056
- }, null, 8, _hoisted_2$J)
19094
+ }, null, 8, _hoisted_2$L)
19057
19095
  ]);
19058
19096
  }), 128))
19059
19097
  ]);
19060
19098
  };
19061
19099
  }
19062
19100
  });
19063
- const _hoisted_1$W = { id: "lupa-search-results-badges" };
19101
+ const _hoisted_1$Z = { id: "lupa-search-results-badges" };
19064
19102
  const __default__$3 = {
19065
19103
  components: {
19066
- CustomBadge: _sfc_main$13,
19067
- TextBadge: _sfc_main$12,
19068
- ImageBadge: _sfc_main$11
19104
+ CustomBadge: _sfc_main$17,
19105
+ TextBadge: _sfc_main$16,
19106
+ ImageBadge: _sfc_main$15
19069
19107
  }
19070
19108
  };
19071
- const _sfc_main$10 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
19109
+ const _sfc_main$14 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
19072
19110
  __name: "SearchResultsBadgeWrapper",
19073
19111
  props: {
19074
19112
  position: {},
@@ -19129,7 +19167,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
19129
19167
  }
19130
19168
  };
19131
19169
  return (_ctx, _cache) => {
19132
- return openBlock(), createElementBlock("div", _hoisted_1$W, [
19170
+ return openBlock(), createElementBlock("div", _hoisted_1$Z, [
19133
19171
  createBaseVNode("div", {
19134
19172
  id: "lupa-badges",
19135
19173
  class: normalizeClass(anchorPosition.value)
@@ -19140,7 +19178,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
19140
19178
  badge
19141
19179
  }, null, 8, ["badge"]);
19142
19180
  }), 128)),
19143
- positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$14, {
19181
+ positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$18, {
19144
19182
  key: 0,
19145
19183
  options: _ctx.options
19146
19184
  }, null, 8, ["options"])) : createCommentVNode("", true)
@@ -19149,13 +19187,13 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
19149
19187
  };
19150
19188
  }
19151
19189
  }));
19152
- const _hoisted_1$V = ["href"];
19153
- const _hoisted_2$I = { class: "lupa-search-box-product-details-section" };
19154
- const _hoisted_3$w = {
19190
+ const _hoisted_1$Y = ["href"];
19191
+ const _hoisted_2$K = { class: "lupa-search-box-product-details-section" };
19192
+ const _hoisted_3$y = {
19155
19193
  key: 0,
19156
19194
  class: "lupa-search-box-product-add-to-cart-section"
19157
19195
  };
19158
- const _sfc_main$$ = /* @__PURE__ */ defineComponent({
19196
+ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
19159
19197
  __name: "SearchBoxProduct",
19160
19198
  props: {
19161
19199
  item: {},
@@ -19241,7 +19279,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
19241
19279
  style: normalizeStyle(imageStyleOverride.value)
19242
19280
  }, [
19243
19281
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
19244
- return openBlock(), createBlock(_sfc_main$16, {
19282
+ return openBlock(), createBlock(_sfc_main$1a, {
19245
19283
  class: "lupa-search-box-product-element",
19246
19284
  item: _ctx.item,
19247
19285
  element,
@@ -19251,10 +19289,10 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
19251
19289
  }, null, 8, ["item", "element", "labels", "link"]);
19252
19290
  }), 128))
19253
19291
  ], 4),
19254
- createBaseVNode("div", _hoisted_2$I, [
19292
+ createBaseVNode("div", _hoisted_2$K, [
19255
19293
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
19256
19294
  var _a;
19257
- return openBlock(), createBlock(_sfc_main$16, {
19295
+ return openBlock(), createBlock(_sfc_main$1a, {
19258
19296
  key: element.key,
19259
19297
  class: "lupa-search-box-product-element",
19260
19298
  item: _ctx.item,
@@ -19265,7 +19303,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
19265
19303
  badgeOptions.value && ((_a = badgeOptions.value) == null ? void 0 : _a.anchorElementKey) === element.key ? {
19266
19304
  name: "badges",
19267
19305
  fn: withCtx(() => [
19268
- createVNode(_sfc_main$10, {
19306
+ createVNode(_sfc_main$14, {
19269
19307
  options: badgeOptions.value,
19270
19308
  position: "card"
19271
19309
  }, null, 8, ["options"])
@@ -19275,8 +19313,8 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
19275
19313
  ]), 1032, ["item", "element", "labels", "link"]);
19276
19314
  }), 128))
19277
19315
  ]),
19278
- addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$w, [
19279
- createVNode(_sfc_main$16, {
19316
+ addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$y, [
19317
+ createVNode(_sfc_main$1a, {
19280
19318
  class: "lupa-search-box-product-element",
19281
19319
  item: _ctx.item,
19282
19320
  element: addToCartElement.value,
@@ -19285,7 +19323,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
19285
19323
  isInStock: isInStock.value
19286
19324
  }, null, 8, ["item", "element", "labels", "link", "isInStock"])
19287
19325
  ])) : createCommentVNode("", true)
19288
- ], 16, _hoisted_1$V);
19326
+ ], 16, _hoisted_1$Y);
19289
19327
  };
19290
19328
  }
19291
19329
  });
@@ -19346,8 +19384,8 @@ const useTrackingStore = defineStore("tracking", () => {
19346
19384
  };
19347
19385
  return { trackSearch, trackResults, trackEvent };
19348
19386
  });
19349
- const _hoisted_1$U = { id: "lupa-search-box-products" };
19350
- const _sfc_main$_ = /* @__PURE__ */ defineComponent({
19387
+ const _hoisted_1$X = { id: "lupa-search-box-products" };
19388
+ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
19351
19389
  __name: "SearchBoxProducts",
19352
19390
  props: {
19353
19391
  items: {},
@@ -19408,7 +19446,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
19408
19446
  handleRoutingEvent(link, event, boxRoutingBehavior.value === "event");
19409
19447
  };
19410
19448
  return (_ctx, _cache) => {
19411
- return openBlock(), createElementBlock("div", _hoisted_1$U, [
19449
+ return openBlock(), createElementBlock("div", _hoisted_1$X, [
19412
19450
  _ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
19413
19451
  return renderSlot(_ctx.$slots, "productCard", {
19414
19452
  key: index,
@@ -19420,7 +19458,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
19420
19458
  itemClicked: handleProductClick
19421
19459
  });
19422
19460
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
19423
- return openBlock(), createBlock(_sfc_main$$, {
19461
+ return openBlock(), createBlock(_sfc_main$13, {
19424
19462
  key: index,
19425
19463
  item,
19426
19464
  panelOptions: _ctx.panelOptions,
@@ -19435,9 +19473,9 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
19435
19473
  };
19436
19474
  }
19437
19475
  });
19438
- const _hoisted_1$T = { class: "lupa-search-box-documents-go-to-results-wrapper" };
19439
- const _hoisted_2$H = { key: 0 };
19440
- const _sfc_main$Z = /* @__PURE__ */ defineComponent({
19476
+ const _hoisted_1$W = { class: "lupa-search-box-documents-go-to-results-wrapper" };
19477
+ const _hoisted_2$J = { key: 0 };
19478
+ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
19441
19479
  __name: "SearchBoxProductsGoToResultsButton",
19442
19480
  props: {
19443
19481
  options: {},
@@ -19467,19 +19505,19 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
19467
19505
  emit2("goToResults");
19468
19506
  };
19469
19507
  return (_ctx, _cache) => {
19470
- return openBlock(), createElementBlock("div", _hoisted_1$T, [
19508
+ return openBlock(), createElementBlock("div", _hoisted_1$W, [
19471
19509
  createBaseVNode("button", {
19472
19510
  class: "lupa-search-box-documents-go-to-results-button",
19473
19511
  onClick: goToResults
19474
19512
  }, [
19475
19513
  createTextVNode(toDisplayString(goToResultsLabel.value) + " ", 1),
19476
- totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$H, " " + toDisplayString(totalCount.value), 1)) : createCommentVNode("", true)
19514
+ totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$J, " " + toDisplayString(totalCount.value), 1)) : createCommentVNode("", true)
19477
19515
  ])
19478
19516
  ]);
19479
19517
  };
19480
19518
  }
19481
19519
  });
19482
- const _sfc_main$Y = /* @__PURE__ */ defineComponent({
19520
+ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
19483
19521
  __name: "SearchBoxProductsWrapper",
19484
19522
  props: {
19485
19523
  panel: {},
@@ -19536,7 +19574,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
19536
19574
  watch(() => props.panel.limit, getItemsDebounced);
19537
19575
  return (_ctx, _cache) => {
19538
19576
  var _a, _b;
19539
- return openBlock(), createBlock(_sfc_main$_, {
19577
+ return openBlock(), createBlock(_sfc_main$12, {
19540
19578
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
19541
19579
  panelOptions: _ctx.panel,
19542
19580
  labels: _ctx.labels,
@@ -19546,7 +19584,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
19546
19584
  default: withCtx(() => {
19547
19585
  var _a2;
19548
19586
  return [
19549
- showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main$Z, {
19587
+ showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main$11, {
19550
19588
  key: 0,
19551
19589
  options: _ctx.searchBoxOptions,
19552
19590
  panel: _ctx.panel,
@@ -19567,7 +19605,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
19567
19605
  };
19568
19606
  }
19569
19607
  });
19570
- const _sfc_main$X = /* @__PURE__ */ defineComponent({
19608
+ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
19571
19609
  __name: "SearchBoxRelatedSourceWrapper",
19572
19610
  props: {
19573
19611
  panel: {},
@@ -19639,7 +19677,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
19639
19677
  });
19640
19678
  return (_ctx, _cache) => {
19641
19679
  var _a, _b;
19642
- return openBlock(), createBlock(_sfc_main$_, {
19680
+ return openBlock(), createBlock(_sfc_main$12, {
19643
19681
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
19644
19682
  panelOptions: documentPanelOptions.value,
19645
19683
  labels: _ctx.labels,
@@ -19657,12 +19695,12 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
19657
19695
  };
19658
19696
  }
19659
19697
  });
19660
- const _hoisted_1$S = {
19698
+ const _hoisted_1$V = {
19661
19699
  key: 0,
19662
19700
  id: "lupa-search-box-panel"
19663
19701
  };
19664
- const _hoisted_2$G = ["data-cy"];
19665
- const _hoisted_3$v = {
19702
+ const _hoisted_2$I = ["data-cy"];
19703
+ const _hoisted_3$x = {
19666
19704
  key: 0,
19667
19705
  class: "lupa-panel-title lupa-panel-title-top-results"
19668
19706
  };
@@ -19670,18 +19708,18 @@ const _hoisted_4$p = {
19670
19708
  key: 1,
19671
19709
  class: "lupa-panel-title"
19672
19710
  };
19673
- const _hoisted_5$h = {
19711
+ const _hoisted_5$g = {
19674
19712
  key: 1,
19675
19713
  id: "lupa-search-box-panel"
19676
19714
  };
19677
19715
  const __default__$2 = {
19678
19716
  components: {
19679
- SearchBoxSuggestionsWrapper: _sfc_main$1g,
19680
- SearchBoxProductsWrapper: _sfc_main$Y,
19681
- SearchBoxRelatedSourceWrapper: _sfc_main$X
19717
+ SearchBoxSuggestionsWrapper: _sfc_main$1k,
19718
+ SearchBoxProductsWrapper: _sfc_main$10,
19719
+ SearchBoxRelatedSourceWrapper: _sfc_main$$
19682
19720
  }
19683
19721
  };
19684
- const _sfc_main$W = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
19722
+ const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
19685
19723
  __name: "SearchBoxMainPanel",
19686
19724
  props: {
19687
19725
  options: {},
@@ -19837,7 +19875,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
19837
19875
  ref_key: "panelContainer",
19838
19876
  ref: panelContainer
19839
19877
  }, [
19840
- displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$S, [
19878
+ displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$V, [
19841
19879
  labels.value.closePanel ? (openBlock(), createElementBlock("a", {
19842
19880
  key: 0,
19843
19881
  class: "lupa-search-box-close-panel",
@@ -19859,7 +19897,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
19859
19897
  style: normalizeStyle(panel.gridArea ? { gridArea: `${panel.gridArea}${index}` } : {}),
19860
19898
  "data-cy": "lupa-panel-" + panel.type + "-index"
19861
19899
  }, [
19862
- ((_a2 = panel.labels) == null ? void 0 : _a2.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$v, toDisplayString((_b = panel.labels) == null ? void 0 : _b.topResultsTitle), 1)) : createCommentVNode("", true),
19900
+ ((_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),
19863
19901
  ((_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),
19864
19902
  panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
19865
19903
  key: 2,
@@ -19882,21 +19920,21 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
19882
19920
  key: "0"
19883
19921
  } : void 0
19884
19922
  ]), 1064, ["panel", "search-box-options", "options", "debounce", "inputValue", "labels"])) : createCommentVNode("", true)
19885
- ], 14, _hoisted_2$G);
19923
+ ], 14, _hoisted_2$I);
19886
19924
  }), 128))
19887
19925
  ], 4),
19888
- !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1j, {
19926
+ !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1n, {
19889
19927
  key: 1,
19890
19928
  labels: labels.value
19891
19929
  }, null, 8, ["labels"])) : createCommentVNode("", true),
19892
- unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1m, {
19930
+ unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1q, {
19893
19931
  key: 2,
19894
19932
  labels: labels.value,
19895
19933
  showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
19896
19934
  onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
19897
19935
  }, null, 8, ["labels", "showTotalCount"])) : createCommentVNode("", true)
19898
- ])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$h, [
19899
- createVNode(_sfc_main$1k, {
19936
+ ])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$g, [
19937
+ createVNode(_sfc_main$1o, {
19900
19938
  options: _ctx.options.history,
19901
19939
  history: history.value,
19902
19940
  onGoToResults: handleGoToResults,
@@ -19921,9 +19959,9 @@ const unbindSearchTriggers = (triggers = [], event) => {
19921
19959
  const elements = getElements(triggers);
19922
19960
  elements.forEach((e2) => e2 == null ? void 0 : e2.removeEventListener(BIND_EVENT, event));
19923
19961
  };
19924
- const _hoisted_1$R = { id: "lupa-search-box" };
19925
- const _hoisted_2$F = { class: "lupa-search-box-wrapper" };
19926
- const _sfc_main$V = /* @__PURE__ */ defineComponent({
19962
+ const _hoisted_1$U = { id: "lupa-search-box" };
19963
+ const _hoisted_2$H = { class: "lupa-search-box-wrapper" };
19964
+ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
19927
19965
  __name: "SearchBox",
19928
19966
  props: {
19929
19967
  options: {},
@@ -20183,9 +20221,9 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
20183
20221
  };
20184
20222
  return (_ctx, _cache) => {
20185
20223
  var _a2;
20186
- return openBlock(), createElementBlock("div", _hoisted_1$R, [
20187
- createBaseVNode("div", _hoisted_2$F, [
20188
- createVNode(_sfc_main$1n, {
20224
+ return openBlock(), createElementBlock("div", _hoisted_1$U, [
20225
+ createBaseVNode("div", _hoisted_2$H, [
20226
+ createVNode(_sfc_main$1r, {
20189
20227
  options: inputOptions.value,
20190
20228
  suggestedValue: suggestedValue.value,
20191
20229
  "can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
@@ -20198,7 +20236,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
20198
20236
  onSearch: handleSearch,
20199
20237
  onClose: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("close"))
20200
20238
  }, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
20201
- opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$W, {
20239
+ opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$_, {
20202
20240
  key: 0,
20203
20241
  options: panelOptions.value,
20204
20242
  inputValue: inputValue.value,
@@ -20287,20 +20325,20 @@ const getSearchParams = (url, params, baseUrl) => {
20287
20325
  }
20288
20326
  return searchParams;
20289
20327
  };
20290
- const _hoisted_1$Q = {
20328
+ const _hoisted_1$T = {
20291
20329
  key: 0,
20292
20330
  id: "lupa-search-results-did-you-mean"
20293
20331
  };
20294
- const _hoisted_2$E = {
20332
+ const _hoisted_2$G = {
20295
20333
  key: 0,
20296
20334
  "data-cy": "suggested-search-text-label"
20297
20335
  };
20298
- const _hoisted_3$u = {
20336
+ const _hoisted_3$w = {
20299
20337
  key: 1,
20300
20338
  "data-cy": "did-you-mean-label"
20301
20339
  };
20302
20340
  const _hoisted_4$o = { key: 1 };
20303
- const _sfc_main$U = /* @__PURE__ */ defineComponent({
20341
+ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
20304
20342
  __name: "SearchResultsDidYouMean",
20305
20343
  props: {
20306
20344
  labels: {}
@@ -20332,8 +20370,8 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
20332
20370
  paramStore.goToResults({ searchText, facet });
20333
20371
  };
20334
20372
  return (_ctx, _cache) => {
20335
- return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$Q, [
20336
- unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$E, [
20373
+ return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$T, [
20374
+ unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$G, [
20337
20375
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
20338
20376
  return openBlock(), createElementBlock("span", { key: index }, [
20339
20377
  createBaseVNode("span", {
@@ -20342,7 +20380,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
20342
20380
  ]);
20343
20381
  }), 128))
20344
20382
  ])) : createCommentVNode("", true),
20345
- didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$u, [
20383
+ didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$w, [
20346
20384
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.didYouMean.split(" "), (label, index) => {
20347
20385
  return openBlock(), createElementBlock("span", { key: index }, [
20348
20386
  label.includes("{1}") ? (openBlock(), createElementBlock("span", {
@@ -20358,12 +20396,12 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
20358
20396
  };
20359
20397
  }
20360
20398
  });
20361
- const _hoisted_1$P = {
20399
+ const _hoisted_1$S = {
20362
20400
  key: 0,
20363
20401
  class: "lupa-search-results-summary"
20364
20402
  };
20365
- const _hoisted_2$D = ["innerHTML"];
20366
- const _sfc_main$T = /* @__PURE__ */ defineComponent({
20403
+ const _hoisted_2$F = ["innerHTML"];
20404
+ const _sfc_main$X = /* @__PURE__ */ defineComponent({
20367
20405
  __name: "SearchResultsSummary",
20368
20406
  props: {
20369
20407
  label: {},
@@ -20378,8 +20416,8 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
20378
20416
  return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
20379
20417
  });
20380
20418
  return (_ctx, _cache) => {
20381
- return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$P, [
20382
- createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$D),
20419
+ return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$S, [
20420
+ createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$F),
20383
20421
  _ctx.clearable ? (openBlock(), createElementBlock("span", {
20384
20422
  key: 0,
20385
20423
  class: "lupa-filter-clear",
@@ -20390,19 +20428,19 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
20390
20428
  };
20391
20429
  }
20392
20430
  });
20393
- const _hoisted_1$O = {
20431
+ const _hoisted_1$R = {
20394
20432
  key: 0,
20395
20433
  class: "lupa-result-page-title",
20396
20434
  "data-cy": "lupa-result-page-title"
20397
20435
  };
20398
- const _hoisted_2$C = { key: 0 };
20399
- const _hoisted_3$t = {
20436
+ const _hoisted_2$E = { key: 0 };
20437
+ const _hoisted_3$v = {
20400
20438
  key: 1,
20401
20439
  class: "lupa-results-total-count"
20402
20440
  };
20403
20441
  const _hoisted_4$n = { class: "lupa-results-total-count-number" };
20404
- const _hoisted_5$g = ["innerHTML"];
20405
- const _sfc_main$S = /* @__PURE__ */ defineComponent({
20442
+ const _hoisted_5$f = ["innerHTML"];
20443
+ const _sfc_main$W = /* @__PURE__ */ defineComponent({
20406
20444
  __name: "SearchResultsTitle",
20407
20445
  props: {
20408
20446
  options: {},
@@ -20441,16 +20479,16 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
20441
20479
  });
20442
20480
  return (_ctx, _cache) => {
20443
20481
  return openBlock(), createElementBlock("div", null, [
20444
- showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$O, [
20482
+ showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$R, [
20445
20483
  createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
20446
- queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$C, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
20447
- showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$t, [
20484
+ queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$E, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
20485
+ showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$v, [
20448
20486
  createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
20449
20487
  createBaseVNode("span", _hoisted_4$n, toDisplayString(unref(totalItems)), 1),
20450
20488
  createTextVNode(")")
20451
20489
  ])) : createCommentVNode("", true)
20452
20490
  ])) : createCommentVNode("", true),
20453
- _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$T, {
20491
+ _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$X, {
20454
20492
  key: 1,
20455
20493
  label: summaryLabel.value
20456
20494
  }, null, 8, ["label"])) : createCommentVNode("", true),
@@ -20458,21 +20496,21 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
20458
20496
  key: 2,
20459
20497
  class: "lupa-result-page-description-top",
20460
20498
  innerHTML: descriptionTop.value
20461
- }, null, 8, _hoisted_5$g)) : createCommentVNode("", true)
20499
+ }, null, 8, _hoisted_5$f)) : createCommentVNode("", true)
20462
20500
  ]);
20463
20501
  };
20464
20502
  }
20465
20503
  });
20466
- const _hoisted_1$N = { class: "lupa-search-result-filter-value" };
20467
- const _hoisted_2$B = {
20504
+ const _hoisted_1$Q = { class: "lupa-search-result-filter-value" };
20505
+ const _hoisted_2$D = {
20468
20506
  class: "lupa-current-filter-label",
20469
20507
  "data-cy": "lupa-current-filter-label"
20470
20508
  };
20471
- const _hoisted_3$s = {
20509
+ const _hoisted_3$u = {
20472
20510
  class: "lupa-current-filter-value",
20473
20511
  "data-cy": "lupa-current-filter-value"
20474
20512
  };
20475
- const _sfc_main$R = /* @__PURE__ */ defineComponent({
20513
+ const _sfc_main$V = /* @__PURE__ */ defineComponent({
20476
20514
  __name: "CurrentFilterDisplay",
20477
20515
  props: {
20478
20516
  filter: {}
@@ -20484,28 +20522,28 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
20484
20522
  emit2("remove", { filter: props.filter });
20485
20523
  };
20486
20524
  return (_ctx, _cache) => {
20487
- return openBlock(), createElementBlock("div", _hoisted_1$N, [
20525
+ return openBlock(), createElementBlock("div", _hoisted_1$Q, [
20488
20526
  createBaseVNode("div", {
20489
20527
  class: "lupa-current-filter-action",
20490
20528
  onClick: handleClick
20491
20529
  }, "⨉"),
20492
- createBaseVNode("div", _hoisted_2$B, toDisplayString(_ctx.filter.label) + ": ", 1),
20493
- createBaseVNode("div", _hoisted_3$s, toDisplayString(_ctx.filter.value), 1)
20530
+ createBaseVNode("div", _hoisted_2$D, toDisplayString(_ctx.filter.label) + ": ", 1),
20531
+ createBaseVNode("div", _hoisted_3$u, toDisplayString(_ctx.filter.value), 1)
20494
20532
  ]);
20495
20533
  };
20496
20534
  }
20497
20535
  });
20498
- const _hoisted_1$M = { class: "lupa-filter-title-text" };
20499
- const _hoisted_2$A = {
20536
+ const _hoisted_1$P = { class: "lupa-filter-title-text" };
20537
+ const _hoisted_2$C = {
20500
20538
  key: 0,
20501
20539
  class: "lupa-filter-count"
20502
20540
  };
20503
- const _hoisted_3$r = {
20541
+ const _hoisted_3$t = {
20504
20542
  key: 0,
20505
20543
  class: "filter-values"
20506
20544
  };
20507
20545
  const _hoisted_4$m = { class: "lupa-current-filter-list" };
20508
- const _sfc_main$Q = /* @__PURE__ */ defineComponent({
20546
+ const _sfc_main$U = /* @__PURE__ */ defineComponent({
20509
20547
  __name: "CurrentFilters",
20510
20548
  props: {
20511
20549
  options: {},
@@ -20578,19 +20616,19 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
20578
20616
  class: "lupa-current-filter-title",
20579
20617
  onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
20580
20618
  }, [
20581
- createBaseVNode("div", _hoisted_1$M, [
20619
+ createBaseVNode("div", _hoisted_1$P, [
20582
20620
  createTextVNode(toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
20583
- _ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$A, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
20621
+ _ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$C, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
20584
20622
  ]),
20585
20623
  _ctx.expandable ? (openBlock(), createElementBlock("div", {
20586
20624
  key: 0,
20587
20625
  class: normalizeClass(["lupa-filter-title-caret", isOpen.value && "open"])
20588
20626
  }, null, 2)) : createCommentVNode("", true)
20589
20627
  ]),
20590
- !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$r, [
20628
+ !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$t, [
20591
20629
  createBaseVNode("div", _hoisted_4$m, [
20592
20630
  (openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter2) => {
20593
- return openBlock(), createBlock(_sfc_main$R, {
20631
+ return openBlock(), createBlock(_sfc_main$V, {
20594
20632
  key: filter2.key + "_" + filter2.value,
20595
20633
  filter: filter2,
20596
20634
  onRemove: handleRemove
@@ -20607,8 +20645,8 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
20607
20645
  };
20608
20646
  }
20609
20647
  });
20610
- const _hoisted_1$L = ["href"];
20611
- const _sfc_main$P = /* @__PURE__ */ defineComponent({
20648
+ const _hoisted_1$O = ["href"];
20649
+ const _sfc_main$T = /* @__PURE__ */ defineComponent({
20612
20650
  __name: "CategoryFilterItem",
20613
20651
  props: {
20614
20652
  options: {},
@@ -20645,20 +20683,20 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
20645
20683
  "data-cy": "lupa-child-category-item",
20646
20684
  href: urlLink.value,
20647
20685
  onClick: handleNavigation
20648
- }, toDisplayString(title.value), 9, _hoisted_1$L)
20686
+ }, toDisplayString(title.value), 9, _hoisted_1$O)
20649
20687
  ], 2);
20650
20688
  };
20651
20689
  }
20652
20690
  });
20653
- const _hoisted_1$K = {
20691
+ const _hoisted_1$N = {
20654
20692
  class: "lupa-category-filter",
20655
20693
  "data-cy": "lupa-category-filter"
20656
20694
  };
20657
- const _hoisted_2$z = { class: "lupa-category-back" };
20658
- const _hoisted_3$q = ["href"];
20695
+ const _hoisted_2$B = { class: "lupa-category-back" };
20696
+ const _hoisted_3$s = ["href"];
20659
20697
  const _hoisted_4$l = ["href"];
20660
- const _hoisted_5$f = { class: "lupa-child-category-list" };
20661
- const _sfc_main$O = /* @__PURE__ */ defineComponent({
20698
+ const _hoisted_5$e = { class: "lupa-child-category-list" };
20699
+ const _sfc_main$S = /* @__PURE__ */ defineComponent({
20662
20700
  __name: "CategoryFilter",
20663
20701
  props: {
20664
20702
  options: {}
@@ -20746,14 +20784,14 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
20746
20784
  };
20747
20785
  __expose({ fetch: fetch2 });
20748
20786
  return (_ctx, _cache) => {
20749
- return openBlock(), createElementBlock("div", _hoisted_1$K, [
20750
- createBaseVNode("div", _hoisted_2$z, [
20787
+ return openBlock(), createElementBlock("div", _hoisted_1$N, [
20788
+ createBaseVNode("div", _hoisted_2$B, [
20751
20789
  hasBackButton.value ? (openBlock(), createElementBlock("a", {
20752
20790
  key: 0,
20753
20791
  "data-cy": "lupa-category-back",
20754
20792
  href: backUrlLink.value,
20755
20793
  onClick: handleNavigationBack
20756
- }, toDisplayString(backTitle.value), 9, _hoisted_3$q)) : createCommentVNode("", true)
20794
+ }, toDisplayString(backTitle.value), 9, _hoisted_3$s)) : createCommentVNode("", true)
20757
20795
  ]),
20758
20796
  createBaseVNode("div", {
20759
20797
  class: normalizeClass(["lupa-current-category", { "lupa-current-category-active": isActive }])
@@ -20765,9 +20803,9 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
20765
20803
  onClick: handleNavigationParent
20766
20804
  }, toDisplayString(parentTitle.value), 11, _hoisted_4$l)
20767
20805
  ], 2),
20768
- createBaseVNode("div", _hoisted_5$f, [
20806
+ createBaseVNode("div", _hoisted_5$e, [
20769
20807
  (openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
20770
- return openBlock(), createBlock(_sfc_main$P, {
20808
+ return openBlock(), createBlock(_sfc_main$T, {
20771
20809
  key: getCategoryKey(child),
20772
20810
  item: child,
20773
20811
  options: _ctx.options
@@ -20778,15 +20816,15 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
20778
20816
  };
20779
20817
  }
20780
20818
  });
20781
- const _hoisted_1$J = {
20819
+ const _hoisted_1$M = {
20782
20820
  class: "lupa-search-result-facet-term-values",
20783
20821
  "data-cy": "lupa-search-result-facet-term-values"
20784
20822
  };
20785
- const _hoisted_2$y = ["placeholder"];
20786
- const _hoisted_3$p = { class: "lupa-terms-list" };
20823
+ const _hoisted_2$A = ["placeholder"];
20824
+ const _hoisted_3$r = { class: "lupa-terms-list" };
20787
20825
  const _hoisted_4$k = ["onClick"];
20788
- const _hoisted_5$e = { class: "lupa-term-checkbox-wrapper" };
20789
- const _hoisted_6$9 = { class: "lupa-term-checkbox-label" };
20826
+ const _hoisted_5$d = { class: "lupa-term-checkbox-wrapper" };
20827
+ const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
20790
20828
  const _hoisted_7$6 = { class: "lupa-term-label" };
20791
20829
  const _hoisted_8$2 = {
20792
20830
  key: 0,
@@ -20794,7 +20832,7 @@ const _hoisted_8$2 = {
20794
20832
  };
20795
20833
  const _hoisted_9$2 = { key: 0 };
20796
20834
  const _hoisted_10$1 = { key: 1 };
20797
- const _sfc_main$N = /* @__PURE__ */ defineComponent({
20835
+ const _sfc_main$R = /* @__PURE__ */ defineComponent({
20798
20836
  __name: "TermFacet",
20799
20837
  props: {
20800
20838
  options: {},
@@ -20865,17 +20903,17 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
20865
20903
  return selectedItems == null ? void 0 : selectedItems.includes((_b = item.title) == null ? void 0 : _b.toString());
20866
20904
  };
20867
20905
  return (_ctx, _cache) => {
20868
- return openBlock(), createElementBlock("div", _hoisted_1$J, [
20906
+ return openBlock(), createElementBlock("div", _hoisted_1$M, [
20869
20907
  isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
20870
20908
  key: 0,
20871
20909
  class: "lupa-term-filter",
20872
20910
  "data-cy": "lupa-term-filter",
20873
20911
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
20874
20912
  placeholder: _ctx.options.labels.facetFilter
20875
- }, null, 8, _hoisted_2$y)), [
20913
+ }, null, 8, _hoisted_2$A)), [
20876
20914
  [vModelText, termFilter.value]
20877
20915
  ]) : createCommentVNode("", true),
20878
- createBaseVNode("div", _hoisted_3$p, [
20916
+ createBaseVNode("div", _hoisted_3$r, [
20879
20917
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
20880
20918
  return openBlock(), createElementBlock("div", {
20881
20919
  class: normalizeClass(["lupa-facet-term", { checked: isChecked(item) }]),
@@ -20883,12 +20921,12 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
20883
20921
  key: item.title,
20884
20922
  onClick: ($event) => handleFacetClick(item)
20885
20923
  }, [
20886
- createBaseVNode("div", _hoisted_5$e, [
20924
+ createBaseVNode("div", _hoisted_5$d, [
20887
20925
  createBaseVNode("span", {
20888
20926
  class: normalizeClass(["lupa-term-checkbox", { checked: isChecked(item) }])
20889
20927
  }, null, 2)
20890
20928
  ]),
20891
- createBaseVNode("div", _hoisted_6$9, [
20929
+ createBaseVNode("div", _hoisted_6$8, [
20892
20930
  createBaseVNode("span", _hoisted_7$6, toDisplayString(item.title), 1),
20893
20931
  _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$2, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
20894
20932
  ])
@@ -21883,12 +21921,12 @@ var m = { name: "Slider", emits: ["input", "update:modelValue", "start", "slide"
21883
21921
  m.render = function(e2, t, r, i, n, o) {
21884
21922
  return openBlock(), createElementBlock("div", mergeProps(e2.sliderProps, { ref: "slider" }), null, 16);
21885
21923
  }, m.__file = "src/Slider.vue";
21886
- const _hoisted_1$I = { class: "lupa-search-result-facet-stats-values" };
21887
- const _hoisted_2$x = {
21924
+ const _hoisted_1$L = { class: "lupa-search-result-facet-stats-values" };
21925
+ const _hoisted_2$z = {
21888
21926
  key: 0,
21889
21927
  class: "lupa-stats-facet-summary"
21890
21928
  };
21891
- const _hoisted_3$o = {
21929
+ const _hoisted_3$q = {
21892
21930
  key: 1,
21893
21931
  class: "lupa-stats-facet-summary-input"
21894
21932
  };
@@ -21896,8 +21934,8 @@ const _hoisted_4$j = {
21896
21934
  key: 0,
21897
21935
  class: "lupa-stats-range-label"
21898
21936
  };
21899
- const _hoisted_5$d = { class: "lupa-stats-from" };
21900
- const _hoisted_6$8 = ["max", "min", "pattern", "aria-label"];
21937
+ const _hoisted_5$c = { class: "lupa-stats-from" };
21938
+ const _hoisted_6$7 = ["max", "min", "pattern", "aria-label"];
21901
21939
  const _hoisted_7$5 = { key: 0 };
21902
21940
  const _hoisted_8$1 = /* @__PURE__ */ createBaseVNode("div", { class: "lupa-stats-separator" }, null, -1);
21903
21941
  const _hoisted_9$1 = {
@@ -21911,7 +21949,7 @@ const _hoisted_13 = {
21911
21949
  key: 2,
21912
21950
  class: "lupa-stats-slider-wrapper"
21913
21951
  };
21914
- const _sfc_main$M = /* @__PURE__ */ defineComponent({
21952
+ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
21915
21953
  __name: "StatsFacet",
21916
21954
  props: {
21917
21955
  options: {},
@@ -22084,11 +22122,11 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
22084
22122
  innerSliderRange.value = value;
22085
22123
  };
22086
22124
  return (_ctx, _cache) => {
22087
- return openBlock(), createElementBlock("div", _hoisted_1$I, [
22088
- !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$x, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$o, [
22125
+ return openBlock(), createElementBlock("div", _hoisted_1$L, [
22126
+ !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$z, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$q, [
22089
22127
  createBaseVNode("div", null, [
22090
22128
  rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$j, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
22091
- createBaseVNode("div", _hoisted_5$d, [
22129
+ createBaseVNode("div", _hoisted_5$c, [
22092
22130
  withDirectives(createBaseVNode("input", {
22093
22131
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
22094
22132
  type: "text",
@@ -22097,7 +22135,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
22097
22135
  min: facetMin.value,
22098
22136
  pattern: sliderInputFormat.value,
22099
22137
  "aria-label": ariaLabelFrom.value
22100
- }, null, 8, _hoisted_6$8), [
22138
+ }, null, 8, _hoisted_6$7), [
22101
22139
  [
22102
22140
  vModelText,
22103
22141
  fromValue.value,
@@ -22151,18 +22189,18 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
22151
22189
  };
22152
22190
  }
22153
22191
  });
22154
- const _hoisted_1$H = { class: "lupa-term-checkbox-wrapper" };
22155
- const _hoisted_2$w = { class: "lupa-term-checkbox-label" };
22156
- const _hoisted_3$n = { class: "lupa-term-label" };
22192
+ const _hoisted_1$K = { class: "lupa-term-checkbox-wrapper" };
22193
+ const _hoisted_2$y = { class: "lupa-term-checkbox-label" };
22194
+ const _hoisted_3$p = { class: "lupa-term-label" };
22157
22195
  const _hoisted_4$i = {
22158
22196
  key: 0,
22159
22197
  class: "lupa-term-count"
22160
22198
  };
22161
- const _hoisted_5$c = {
22199
+ const _hoisted_5$b = {
22162
22200
  key: 0,
22163
22201
  class: "lupa-facet-level"
22164
22202
  };
22165
- const _sfc_main$L = /* @__PURE__ */ defineComponent({
22203
+ const _sfc_main$P = /* @__PURE__ */ defineComponent({
22166
22204
  __name: "HierarchyFacetLevel",
22167
22205
  props: {
22168
22206
  options: {},
@@ -22208,17 +22246,17 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
22208
22246
  "data-cy": "lupa-facet-term",
22209
22247
  onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
22210
22248
  }, [
22211
- createBaseVNode("div", _hoisted_1$H, [
22249
+ createBaseVNode("div", _hoisted_1$K, [
22212
22250
  createBaseVNode("span", {
22213
22251
  class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
22214
22252
  }, null, 2)
22215
22253
  ]),
22216
- createBaseVNode("div", _hoisted_2$w, [
22217
- createBaseVNode("span", _hoisted_3$n, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
22254
+ createBaseVNode("div", _hoisted_2$y, [
22255
+ createBaseVNode("span", _hoisted_3$p, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
22218
22256
  _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$i, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
22219
22257
  ])
22220
22258
  ]),
22221
- showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$c, [
22259
+ showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$b, [
22222
22260
  (openBlock(true), createElementBlock(Fragment, null, renderList(treeItem.value.children, (itemChild) => {
22223
22261
  return openBlock(), createBlock(_component_HierarchyFacetLevel, {
22224
22262
  key: itemChild.title,
@@ -22234,13 +22272,13 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
22234
22272
  };
22235
22273
  }
22236
22274
  });
22237
- const _hoisted_1$G = {
22275
+ const _hoisted_1$J = {
22238
22276
  class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
22239
22277
  "data-cy": "lupa-search-result-facet-term-values"
22240
22278
  };
22241
- const _hoisted_2$v = { key: 0 };
22242
- const _hoisted_3$m = ["placeholder"];
22243
- const _sfc_main$K = /* @__PURE__ */ defineComponent({
22279
+ const _hoisted_2$x = { key: 0 };
22280
+ const _hoisted_3$o = ["placeholder"];
22281
+ const _sfc_main$O = /* @__PURE__ */ defineComponent({
22244
22282
  __name: "HierarchyFacet",
22245
22283
  props: {
22246
22284
  options: {},
@@ -22290,19 +22328,19 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
22290
22328
  showAll.value = true;
22291
22329
  };
22292
22330
  return (_ctx, _cache) => {
22293
- return openBlock(), createElementBlock("div", _hoisted_1$G, [
22294
- isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$v, [
22331
+ return openBlock(), createElementBlock("div", _hoisted_1$J, [
22332
+ isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$x, [
22295
22333
  withDirectives(createBaseVNode("input", {
22296
22334
  class: "lupa-term-filter",
22297
22335
  "data-cy": "lupa-term-filter",
22298
22336
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
22299
22337
  placeholder: _ctx.options.labels.facetFilter
22300
- }, null, 8, _hoisted_3$m), [
22338
+ }, null, 8, _hoisted_3$o), [
22301
22339
  [vModelText, termFilter.value]
22302
22340
  ])
22303
22341
  ])) : createCommentVNode("", true),
22304
22342
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
22305
- return openBlock(), createBlock(_sfc_main$L, {
22343
+ return openBlock(), createBlock(_sfc_main$P, {
22306
22344
  key: item.title,
22307
22345
  options: _ctx.options,
22308
22346
  item,
@@ -22322,20 +22360,20 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
22322
22360
  };
22323
22361
  }
22324
22362
  });
22325
- const _hoisted_1$F = { class: "lupa-facet-label-text" };
22326
- const _hoisted_2$u = {
22363
+ const _hoisted_1$I = { class: "lupa-facet-label-text" };
22364
+ const _hoisted_2$w = {
22327
22365
  key: 0,
22328
22366
  class: "lupa-facet-content",
22329
22367
  "data-cy": "lupa-facet-content"
22330
22368
  };
22331
22369
  const __default__$1 = {
22332
22370
  components: {
22333
- TermFacet: _sfc_main$N,
22334
- StatsFacet: _sfc_main$M,
22335
- HierarchyFacet: _sfc_main$K
22371
+ TermFacet: _sfc_main$R,
22372
+ StatsFacet: _sfc_main$Q,
22373
+ HierarchyFacet: _sfc_main$O
22336
22374
  }
22337
22375
  };
22338
- const _sfc_main$J = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
22376
+ const _sfc_main$N = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
22339
22377
  __name: "FacetDisplay",
22340
22378
  props: {
22341
22379
  options: {},
@@ -22447,12 +22485,12 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
22447
22485
  "data-cy": "lupa-search-result-facet-label",
22448
22486
  onClick: toggleFacet
22449
22487
  }, [
22450
- createBaseVNode("div", _hoisted_1$F, toDisplayString(facet.value.label), 1),
22488
+ createBaseVNode("div", _hoisted_1$I, toDisplayString(facet.value.label), 1),
22451
22489
  createBaseVNode("div", {
22452
22490
  class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
22453
22491
  }, null, 2)
22454
22492
  ], 2),
22455
- isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$u, [
22493
+ isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$w, [
22456
22494
  (openBlock(), createBlock(resolveDynamicComponent(facetType.value), {
22457
22495
  facet: facet.value,
22458
22496
  currentFilters: currentFilters.value[facet.value.key],
@@ -22470,12 +22508,12 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
22470
22508
  };
22471
22509
  }
22472
22510
  }));
22473
- const _hoisted_1$E = { class: "lupa-search-result-facet-section" };
22474
- const _hoisted_2$t = {
22511
+ const _hoisted_1$H = { class: "lupa-search-result-facet-section" };
22512
+ const _hoisted_2$v = {
22475
22513
  key: 0,
22476
22514
  class: "lupa-facets-title"
22477
22515
  };
22478
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
22516
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
22479
22517
  __name: "FacetList",
22480
22518
  props: {
22481
22519
  options: {},
@@ -22509,14 +22547,14 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
22509
22547
  };
22510
22548
  return (_ctx, _cache) => {
22511
22549
  var _a;
22512
- return openBlock(), createElementBlock("div", _hoisted_1$E, [
22513
- _ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$t, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
22550
+ return openBlock(), createElementBlock("div", _hoisted_1$H, [
22551
+ _ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$v, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
22514
22552
  createBaseVNode("div", {
22515
22553
  class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
22516
22554
  }, [
22517
22555
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
22518
22556
  var _a2;
22519
- return openBlock(), createBlock(_sfc_main$J, {
22557
+ return openBlock(), createBlock(_sfc_main$N, {
22520
22558
  key: facet.key,
22521
22559
  facet,
22522
22560
  currentFilters: currentFiltersValue.value,
@@ -22531,8 +22569,8 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
22531
22569
  };
22532
22570
  }
22533
22571
  });
22534
- const _hoisted_1$D = ["onClick"];
22535
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
22572
+ const _hoisted_1$G = ["onClick"];
22573
+ const _sfc_main$L = /* @__PURE__ */ defineComponent({
22536
22574
  __name: "FacetsButton",
22537
22575
  props: {
22538
22576
  options: {}
@@ -22552,13 +22590,13 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
22552
22590
  key: 0,
22553
22591
  class: "lupa-facets-button-filter",
22554
22592
  onClick: withModifiers(handleClick, ["stop"])
22555
- }, toDisplayString(label.value), 9, _hoisted_1$D)) : createCommentVNode("", true);
22593
+ }, toDisplayString(label.value), 9, _hoisted_1$G)) : createCommentVNode("", true);
22556
22594
  };
22557
22595
  }
22558
22596
  });
22559
- const _hoisted_1$C = { class: "lupa-search-result-facets" };
22560
- const _hoisted_2$s = { class: "lupa-facets-filter-button-wrapper" };
22561
- const _sfc_main$G = /* @__PURE__ */ defineComponent({
22597
+ const _hoisted_1$F = { class: "lupa-search-result-facets" };
22598
+ const _hoisted_2$u = { class: "lupa-facets-filter-button-wrapper" };
22599
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
22562
22600
  __name: "Facets",
22563
22601
  props: {
22564
22602
  options: {},
@@ -22641,8 +22679,8 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
22641
22679
  emit2("filter");
22642
22680
  };
22643
22681
  return (_ctx, _cache) => {
22644
- return openBlock(), createElementBlock("div", _hoisted_1$C, [
22645
- regularFacets.value ? (openBlock(), createBlock(_sfc_main$I, {
22682
+ return openBlock(), createElementBlock("div", _hoisted_1$F, [
22683
+ regularFacets.value ? (openBlock(), createBlock(_sfc_main$M, {
22646
22684
  key: 0,
22647
22685
  options: _ctx.options,
22648
22686
  facets: regularFacets.value,
@@ -22652,8 +22690,8 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
22652
22690
  onSelect: handleFacetSelect,
22653
22691
  onClear: clear2
22654
22692
  }, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : createCommentVNode("", true),
22655
- createBaseVNode("div", _hoisted_2$s, [
22656
- showFilterButton.value ? (openBlock(), createBlock(_sfc_main$H, {
22693
+ createBaseVNode("div", _hoisted_2$u, [
22694
+ showFilterButton.value ? (openBlock(), createBlock(_sfc_main$L, {
22657
22695
  key: 0,
22658
22696
  options: _ctx.options,
22659
22697
  onFilter: filter2
@@ -22663,11 +22701,11 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
22663
22701
  };
22664
22702
  }
22665
22703
  });
22666
- const _hoisted_1$B = {
22704
+ const _hoisted_1$E = {
22667
22705
  id: "lupa-search-result-filters",
22668
22706
  class: "lupa-search-result-filters"
22669
22707
  };
22670
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
22708
+ const _sfc_main$J = /* @__PURE__ */ defineComponent({
22671
22709
  __name: "SearchResultsFilters",
22672
22710
  props: {
22673
22711
  options: {},
@@ -22700,19 +22738,19 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
22700
22738
  __expose({ fetch: fetch2 });
22701
22739
  return (_ctx, _cache) => {
22702
22740
  var _a;
22703
- return openBlock(), createElementBlock("div", _hoisted_1$B, [
22704
- showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$Q, {
22741
+ return openBlock(), createElementBlock("div", _hoisted_1$E, [
22742
+ showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$U, {
22705
22743
  key: 0,
22706
22744
  options: _ctx.options.currentFilters,
22707
22745
  expandable: (_a = _ctx.expandable) != null ? _a : false
22708
22746
  }, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
22709
- _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$O, {
22747
+ _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$S, {
22710
22748
  key: 1,
22711
22749
  options: _ctx.options.categories,
22712
22750
  ref_key: "categoryFilters",
22713
22751
  ref: categoryFilters
22714
22752
  }, null, 8, ["options"])) : createCommentVNode("", true),
22715
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$G, {
22753
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$K, {
22716
22754
  key: 2,
22717
22755
  options: _ctx.options.facets,
22718
22756
  onFilter: filter2
@@ -22721,20 +22759,20 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
22721
22759
  };
22722
22760
  }
22723
22761
  });
22724
- const _hoisted_1$A = {
22762
+ const _hoisted_1$D = {
22725
22763
  key: 0,
22726
22764
  class: "lupa-mobile-filter-sidebar"
22727
22765
  };
22728
- const _hoisted_2$r = ["onClick"];
22729
- const _hoisted_3$l = { class: "lupa-mobile-sidebar-content" };
22766
+ const _hoisted_2$t = ["onClick"];
22767
+ const _hoisted_3$n = { class: "lupa-mobile-sidebar-content" };
22730
22768
  const _hoisted_4$h = { class: "lupa-sidebar-top" };
22731
- const _hoisted_5$b = { class: "lupa-sidebar-title" };
22732
- const _hoisted_6$7 = {
22769
+ const _hoisted_5$a = { class: "lupa-sidebar-title" };
22770
+ const _hoisted_6$6 = {
22733
22771
  key: 0,
22734
22772
  class: "lupa-sidebar-filter-count"
22735
22773
  };
22736
22774
  const _hoisted_7$4 = { class: "lupa-sidebar-filter-options" };
22737
- const _sfc_main$E = /* @__PURE__ */ defineComponent({
22775
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
22738
22776
  __name: "MobileFilterSidebar",
22739
22777
  props: {
22740
22778
  options: {}
@@ -22765,16 +22803,16 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
22765
22803
  handleMobileToggle();
22766
22804
  };
22767
22805
  return (_ctx, _cache) => {
22768
- return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$A, [
22806
+ return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$D, [
22769
22807
  createBaseVNode("div", {
22770
22808
  class: "lupa-sidebar-close",
22771
22809
  onClick: withModifiers(handleMobileToggle, ["stop"])
22772
- }, null, 8, _hoisted_2$r),
22773
- createBaseVNode("div", _hoisted_3$l, [
22810
+ }, null, 8, _hoisted_2$t),
22811
+ createBaseVNode("div", _hoisted_3$n, [
22774
22812
  createBaseVNode("div", _hoisted_4$h, [
22775
- createBaseVNode("div", _hoisted_5$b, [
22813
+ createBaseVNode("div", _hoisted_5$a, [
22776
22814
  createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
22777
- isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$7, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
22815
+ isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
22778
22816
  ]),
22779
22817
  createBaseVNode("div", {
22780
22818
  class: "lupa-filter-toggle-mobile",
@@ -22782,7 +22820,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
22782
22820
  })
22783
22821
  ]),
22784
22822
  createBaseVNode("div", _hoisted_7$4, [
22785
- createVNode(_sfc_main$F, {
22823
+ createVNode(_sfc_main$J, {
22786
22824
  options: _ctx.options,
22787
22825
  expandable: isActiveFiltersExpanded.value,
22788
22826
  onFilter: filter2
@@ -22793,14 +22831,14 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
22793
22831
  };
22794
22832
  }
22795
22833
  });
22796
- const _hoisted_1$z = { id: "lupa-search-results-breadcrumbs" };
22797
- const _hoisted_2$q = ["href", "onClick"];
22798
- const _hoisted_3$k = {
22834
+ const _hoisted_1$C = { id: "lupa-search-results-breadcrumbs" };
22835
+ const _hoisted_2$s = ["href", "onClick"];
22836
+ const _hoisted_3$m = {
22799
22837
  key: 1,
22800
22838
  class: "lupa-search-results-breadcrumb-text"
22801
22839
  };
22802
22840
  const _hoisted_4$g = { key: 2 };
22803
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
22841
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
22804
22842
  __name: "SearchResultsBreadcrumbs",
22805
22843
  props: {
22806
22844
  breadcrumbs: {}
@@ -22825,7 +22863,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
22825
22863
  handleRoutingEvent(link, event, hasEventRouting.value);
22826
22864
  };
22827
22865
  return (_ctx, _cache) => {
22828
- return openBlock(), createElementBlock("div", _hoisted_1$z, [
22866
+ return openBlock(), createElementBlock("div", _hoisted_1$C, [
22829
22867
  (openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
22830
22868
  return openBlock(), createElementBlock("span", {
22831
22869
  class: "lupa-search-results-breadcrumb",
@@ -22839,7 +22877,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
22839
22877
  var _a;
22840
22878
  return handleNavigation(e2, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
22841
22879
  }
22842
- }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$q)) : (openBlock(), createElementBlock("span", _hoisted_3$k, toDisplayString(getLabel(breadcrumb.label)), 1)),
22880
+ }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$s)) : (openBlock(), createElementBlock("span", _hoisted_3$m, toDisplayString(getLabel(breadcrumb.label)), 1)),
22843
22881
  index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$g, " / ")) : createCommentVNode("", true)
22844
22882
  ]);
22845
22883
  }), 128))
@@ -22847,11 +22885,11 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
22847
22885
  };
22848
22886
  }
22849
22887
  });
22850
- const _hoisted_1$y = {
22888
+ const _hoisted_1$B = {
22851
22889
  id: "lupa-search-result-filters",
22852
22890
  class: "lupa-search-result-filters lupa-search-result-top-filters"
22853
22891
  };
22854
- const _sfc_main$C = /* @__PURE__ */ defineComponent({
22892
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
22855
22893
  __name: "FiltersTopDropdown",
22856
22894
  props: {
22857
22895
  options: {}
@@ -22863,8 +22901,8 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
22863
22901
  };
22864
22902
  return (_ctx, _cache) => {
22865
22903
  var _a;
22866
- return openBlock(), createElementBlock("div", _hoisted_1$y, [
22867
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$G, {
22904
+ return openBlock(), createElementBlock("div", _hoisted_1$B, [
22905
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$K, {
22868
22906
  key: 0,
22869
22907
  options: _ctx.options.facets,
22870
22908
  "facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
@@ -22875,8 +22913,8 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
22875
22913
  };
22876
22914
  }
22877
22915
  });
22878
- const _hoisted_1$x = { id: "lupa-search-results-layout-selection" };
22879
- const _sfc_main$B = /* @__PURE__ */ defineComponent({
22916
+ const _hoisted_1$A = { id: "lupa-search-results-layout-selection" };
22917
+ const _sfc_main$F = /* @__PURE__ */ defineComponent({
22880
22918
  __name: "SearchResultsLayoutSelection",
22881
22919
  setup(__props) {
22882
22920
  const searchResultStore = useSearchResultStore();
@@ -22887,7 +22925,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
22887
22925
  searchResultStore.setLayout(layout2);
22888
22926
  };
22889
22927
  return (_ctx, _cache) => {
22890
- return openBlock(), createElementBlock("div", _hoisted_1$x, [
22928
+ return openBlock(), createElementBlock("div", _hoisted_1$A, [
22891
22929
  createBaseVNode("div", {
22892
22930
  class: normalizeClass([
22893
22931
  "lupa-layout-selection-grid",
@@ -22909,11 +22947,11 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
22909
22947
  };
22910
22948
  }
22911
22949
  });
22912
- const _hoisted_1$w = {
22950
+ const _hoisted_1$z = {
22913
22951
  key: 0,
22914
22952
  class: "lupa-mobile-toggle-filter-count"
22915
22953
  };
22916
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
22954
+ const _sfc_main$E = /* @__PURE__ */ defineComponent({
22917
22955
  __name: "SearchResultsMobileToggle",
22918
22956
  props: {
22919
22957
  label: {},
@@ -22931,26 +22969,26 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
22931
22969
  onClick: handleMobileToggle
22932
22970
  }, [
22933
22971
  createTextVNode(toDisplayString(_ctx.label) + " ", 1),
22934
- _ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$w, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
22972
+ _ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$z, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
22935
22973
  ], 2);
22936
22974
  };
22937
22975
  }
22938
22976
  });
22939
- const _hoisted_1$v = {
22977
+ const _hoisted_1$y = {
22940
22978
  key: 0,
22941
22979
  id: "lupa-search-results-page-select",
22942
22980
  "data-cy": "lupa-search-results-page-select"
22943
22981
  };
22944
- const _hoisted_2$p = {
22982
+ const _hoisted_2$r = {
22945
22983
  key: 0,
22946
22984
  class: "lupa-page-number-separator"
22947
22985
  };
22948
- const _hoisted_3$j = ["onClick"];
22986
+ const _hoisted_3$l = ["onClick"];
22949
22987
  const _hoisted_4$f = {
22950
22988
  key: 0,
22951
22989
  class: "lupa-page-number-separator"
22952
22990
  };
22953
- const _sfc_main$z = /* @__PURE__ */ defineComponent({
22991
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
22954
22992
  __name: "SearchResultsPageSelect",
22955
22993
  props: {
22956
22994
  lastPageLabel: {},
@@ -23027,7 +23065,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
23027
23065
  }
23028
23066
  };
23029
23067
  return (_ctx, _cache) => {
23030
- return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$v, [
23068
+ return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$y, [
23031
23069
  showBack.value ? (openBlock(), createElementBlock("div", {
23032
23070
  key: 0,
23033
23071
  class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
@@ -23038,7 +23076,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
23038
23076
  class: "lupa-page-number lupa-page-number-first",
23039
23077
  onClick: _cache[1] || (_cache[1] = () => handlePageChange(1))
23040
23078
  }, " 1 "),
23041
- showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$p, "...")) : createCommentVNode("", true)
23079
+ showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$r, "...")) : createCommentVNode("", true)
23042
23080
  ], 64)) : createCommentVNode("", true),
23043
23081
  (openBlock(true), createElementBlock(Fragment, null, renderList(pages.value, (page) => {
23044
23082
  return openBlock(), createElementBlock("div", {
@@ -23049,7 +23087,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
23049
23087
  page === _ctx.options.selectedPage ? "lupa-page-number-selected" : ""
23050
23088
  ]),
23051
23089
  "data-cy": "lupa-page-number"
23052
- }, toDisplayString(page), 11, _hoisted_3$j);
23090
+ }, toDisplayString(page), 11, _hoisted_3$l);
23053
23091
  }), 128)),
23054
23092
  showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
23055
23093
  showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$f, "...")) : createCommentVNode("", true),
@@ -23071,15 +23109,15 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
23071
23109
  };
23072
23110
  }
23073
23111
  });
23074
- const _hoisted_1$u = {
23112
+ const _hoisted_1$x = {
23075
23113
  id: "lupa-search-results-page-size",
23076
23114
  "data-cy": "lupa-search-results-page-size"
23077
23115
  };
23078
- const _hoisted_2$o = { id: "lupa-select" };
23079
- const _hoisted_3$i = { class: "lupa-select-label" };
23116
+ const _hoisted_2$q = { id: "lupa-select" };
23117
+ const _hoisted_3$k = { class: "lupa-select-label" };
23080
23118
  const _hoisted_4$e = ["aria-label"];
23081
- const _hoisted_5$a = ["value"];
23082
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
23119
+ const _hoisted_5$9 = ["value"];
23120
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
23083
23121
  __name: "SearchResultsPageSize",
23084
23122
  props: {
23085
23123
  labels: {},
@@ -23107,9 +23145,9 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
23107
23145
  });
23108
23146
  };
23109
23147
  return (_ctx, _cache) => {
23110
- return openBlock(), createElementBlock("div", _hoisted_1$u, [
23111
- createBaseVNode("div", _hoisted_2$o, [
23112
- createBaseVNode("label", _hoisted_3$i, toDisplayString(label.value), 1),
23148
+ return openBlock(), createElementBlock("div", _hoisted_1$x, [
23149
+ createBaseVNode("div", _hoisted_2$q, [
23150
+ createBaseVNode("label", _hoisted_3$k, toDisplayString(label.value), 1),
23113
23151
  createBaseVNode("select", {
23114
23152
  class: "lupa-select-dropdown",
23115
23153
  "aria-label": label.value,
@@ -23122,7 +23160,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
23122
23160
  return openBlock(), createElementBlock("option", {
23123
23161
  key: option,
23124
23162
  value: option
23125
- }, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$a);
23163
+ }, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$9);
23126
23164
  }), 128))
23127
23165
  ], 40, _hoisted_4$e)
23128
23166
  ])
@@ -23130,15 +23168,15 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
23130
23168
  };
23131
23169
  }
23132
23170
  });
23133
- const _hoisted_1$t = {
23171
+ const _hoisted_1$w = {
23134
23172
  id: "lupa-search-results-sort",
23135
23173
  class: "lupa-search-results-sort"
23136
23174
  };
23137
- const _hoisted_2$n = { id: "lupa-select" };
23138
- const _hoisted_3$h = { class: "lupa-select-label" };
23175
+ const _hoisted_2$p = { id: "lupa-select" };
23176
+ const _hoisted_3$j = { class: "lupa-select-label" };
23139
23177
  const _hoisted_4$d = ["aria-label"];
23140
- const _hoisted_5$9 = ["value"];
23141
- const _sfc_main$x = /* @__PURE__ */ defineComponent({
23178
+ const _hoisted_5$8 = ["value"];
23179
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
23142
23180
  __name: "SearchResultsSort",
23143
23181
  props: {
23144
23182
  options: {},
@@ -23187,9 +23225,9 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
23187
23225
  previousKey.value = selectedKey.value;
23188
23226
  };
23189
23227
  return (_ctx, _cache) => {
23190
- return openBlock(), createElementBlock("div", _hoisted_1$t, [
23191
- createBaseVNode("div", _hoisted_2$n, [
23192
- createBaseVNode("label", _hoisted_3$h, toDisplayString(_ctx.options.label), 1),
23228
+ return openBlock(), createElementBlock("div", _hoisted_1$w, [
23229
+ createBaseVNode("div", _hoisted_2$p, [
23230
+ createBaseVNode("label", _hoisted_3$j, toDisplayString(_ctx.options.label), 1),
23193
23231
  withDirectives(createBaseVNode("select", {
23194
23232
  class: "lupa-select-dropdown",
23195
23233
  "aria-label": _ctx.options.label,
@@ -23202,7 +23240,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
23202
23240
  return openBlock(), createElementBlock("option", {
23203
23241
  key: option.key,
23204
23242
  value: option.key
23205
- }, toDisplayString(option.label), 9, _hoisted_5$9);
23243
+ }, toDisplayString(option.label), 9, _hoisted_5$8);
23206
23244
  }), 128))
23207
23245
  ], 40, _hoisted_4$d), [
23208
23246
  [vModelSelect, selectedKey.value]
@@ -23212,22 +23250,22 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
23212
23250
  };
23213
23251
  }
23214
23252
  });
23215
- const _hoisted_1$s = { class: "lupa-toolbar-left" };
23216
- const _hoisted_2$m = {
23253
+ const _hoisted_1$v = { class: "lupa-toolbar-left" };
23254
+ const _hoisted_2$o = {
23217
23255
  key: 0,
23218
23256
  class: "lupa-toolbar-right-title"
23219
23257
  };
23220
- const _hoisted_3$g = { key: 2 };
23258
+ const _hoisted_3$i = { key: 2 };
23221
23259
  const _hoisted_4$c = { key: 4 };
23222
- const _hoisted_5$8 = { key: 6 };
23223
- const _hoisted_6$6 = { class: "lupa-toolbar-right" };
23260
+ const _hoisted_5$7 = { key: 6 };
23261
+ const _hoisted_6$5 = { class: "lupa-toolbar-right" };
23224
23262
  const _hoisted_7$3 = {
23225
23263
  key: 0,
23226
23264
  class: "lupa-toolbar-right-title"
23227
23265
  };
23228
23266
  const _hoisted_8 = { key: 2 };
23229
23267
  const _hoisted_9 = { key: 4 };
23230
- const _sfc_main$w = /* @__PURE__ */ defineComponent({
23268
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
23231
23269
  __name: "SearchResultsToolbar",
23232
23270
  props: {
23233
23271
  options: {},
@@ -23334,34 +23372,34 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
23334
23372
  id: "lupa-search-results-toolbar",
23335
23373
  class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
23336
23374
  }, [
23337
- createBaseVNode("div", _hoisted_1$s, [
23338
- toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$m, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
23339
- showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$B, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$g)),
23340
- showItemSummary.value ? (openBlock(), createBlock(_sfc_main$T, {
23375
+ createBaseVNode("div", _hoisted_1$v, [
23376
+ toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$o, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
23377
+ showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$F, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$i)),
23378
+ showItemSummary.value ? (openBlock(), createBlock(_sfc_main$X, {
23341
23379
  key: 3,
23342
23380
  label: searchSummaryLabel.value,
23343
23381
  clearable: unref(hasAnyFilter) && showFilterClear.value,
23344
23382
  onClear: handleClearAll
23345
23383
  }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$c)),
23346
- displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$z, {
23384
+ displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$D, {
23347
23385
  key: 5,
23348
23386
  options: paginationOptions.value.pageSelect,
23349
23387
  "last-page-label": paginationOptions.value.labels.showMore,
23350
23388
  "first-page-label": paginationOptions.value.labels.showLess
23351
- }, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_5$8))
23389
+ }, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_5$7))
23352
23390
  ]),
23353
- createBaseVNode("div", _hoisted_6$6, [
23391
+ createBaseVNode("div", _hoisted_6$5, [
23354
23392
  toolbarRightLabel.value ? (openBlock(), createElementBlock("div", _hoisted_7$3, toDisplayString(toolbarRightLabel.value), 1)) : createCommentVNode("", true),
23355
- createVNode(_sfc_main$A, {
23393
+ createVNode(_sfc_main$E, {
23356
23394
  label: optionsValue.value.labels.mobileFilterButton,
23357
23395
  "show-filter-count": showMobileFilterCount.value
23358
23396
  }, null, 8, ["label", "show-filter-count"]),
23359
- paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$y, {
23397
+ paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$C, {
23360
23398
  key: 1,
23361
23399
  options: paginationOptions.value.pageSize,
23362
23400
  labels: paginationOptions.value.labels
23363
23401
  }, null, 8, ["options", "labels"])) : (openBlock(), createElementBlock("div", _hoisted_8)),
23364
- sortOptions.value ? (openBlock(), createBlock(_sfc_main$x, {
23402
+ sortOptions.value ? (openBlock(), createBlock(_sfc_main$B, {
23365
23403
  key: 3,
23366
23404
  options: sortOptions.value,
23367
23405
  callbacks: callbacks.value
@@ -23371,7 +23409,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
23371
23409
  };
23372
23410
  }
23373
23411
  });
23374
- const _sfc_main$v = /* @__PURE__ */ defineComponent({
23412
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
23375
23413
  __name: "SearchResultsProductImage",
23376
23414
  props: {
23377
23415
  item: {},
@@ -23379,7 +23417,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
23379
23417
  },
23380
23418
  setup(__props) {
23381
23419
  return (_ctx, _cache) => {
23382
- return openBlock(), createBlock(_sfc_main$1f, {
23420
+ return openBlock(), createBlock(_sfc_main$1j, {
23383
23421
  item: _ctx.item,
23384
23422
  options: _ctx.options,
23385
23423
  "wrapper-class": "lupa-search-results-image-wrapper",
@@ -23388,16 +23426,16 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
23388
23426
  };
23389
23427
  }
23390
23428
  });
23391
- const _hoisted_1$r = ["title", "innerHTML"];
23392
- const _hoisted_2$l = ["title"];
23393
- const _hoisted_3$f = ["href", "innerHTML"];
23429
+ const _hoisted_1$u = ["title", "innerHTML"];
23430
+ const _hoisted_2$n = ["title"];
23431
+ const _hoisted_3$h = ["href", "innerHTML"];
23394
23432
  const _hoisted_4$b = ["title"];
23395
- const _hoisted_5$7 = {
23433
+ const _hoisted_5$6 = {
23396
23434
  key: 0,
23397
23435
  class: "lupa-search-results-product-title-text"
23398
23436
  };
23399
- const _hoisted_6$5 = ["href"];
23400
- const _sfc_main$u = /* @__PURE__ */ defineComponent({
23437
+ const _hoisted_6$4 = ["href"];
23438
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
23401
23439
  __name: "SearchResultsProductTitle",
23402
23440
  props: {
23403
23441
  item: {},
@@ -23434,7 +23472,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
23434
23472
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
23435
23473
  title: sanitizedTitle.value,
23436
23474
  innerHTML: sanitizedTitle.value
23437
- }, null, 12, _hoisted_1$r)) : isHtml.value && _ctx.options.link ? (openBlock(), createElementBlock("div", {
23475
+ }, null, 12, _hoisted_1$u)) : isHtml.value && _ctx.options.link ? (openBlock(), createElementBlock("div", {
23438
23476
  key: 1,
23439
23477
  class: "lupa-search-results-product-title",
23440
23478
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
@@ -23445,26 +23483,26 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
23445
23483
  class: "lupa-search-results-product-title-text lupa-title-link",
23446
23484
  innerHTML: sanitizedTitle.value,
23447
23485
  onClick: handleNavigation
23448
- }, null, 8, _hoisted_3$f)
23449
- ], 12, _hoisted_2$l)) : (openBlock(), createElementBlock("div", {
23486
+ }, null, 8, _hoisted_3$h)
23487
+ ], 12, _hoisted_2$n)) : (openBlock(), createElementBlock("div", {
23450
23488
  key: 2,
23451
23489
  class: "lupa-search-results-product-title",
23452
23490
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
23453
23491
  title: title.value
23454
23492
  }, [
23455
- !_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_5$7, toDisplayString(title.value), 1)) : createCommentVNode("", true),
23493
+ !_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_5$6, toDisplayString(title.value), 1)) : createCommentVNode("", true),
23456
23494
  _ctx.options.link ? (openBlock(), createElementBlock("a", {
23457
23495
  key: 1,
23458
23496
  href: _ctx.link,
23459
23497
  class: "lupa-search-results-product-title-text lupa-title-link",
23460
23498
  onClick: handleNavigation
23461
- }, toDisplayString(title.value), 9, _hoisted_6$5)) : createCommentVNode("", true)
23499
+ }, toDisplayString(title.value), 9, _hoisted_6$4)) : createCommentVNode("", true)
23462
23500
  ], 12, _hoisted_4$b));
23463
23501
  };
23464
23502
  }
23465
23503
  });
23466
- const _hoisted_1$q = ["innerHTML"];
23467
- const _sfc_main$t = /* @__PURE__ */ defineComponent({
23504
+ const _hoisted_1$t = ["innerHTML"];
23505
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
23468
23506
  __name: "SearchResultsProductDescription",
23469
23507
  props: {
23470
23508
  item: {},
@@ -23491,7 +23529,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
23491
23529
  class: "lupa-search-results-product-description",
23492
23530
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
23493
23531
  innerHTML: sanitizedDescription.value
23494
- }, null, 12, _hoisted_1$q)) : (openBlock(), createElementBlock("div", {
23532
+ }, null, 12, _hoisted_1$t)) : (openBlock(), createElementBlock("div", {
23495
23533
  key: 1,
23496
23534
  class: "lupa-search-results-product-description",
23497
23535
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
@@ -23499,15 +23537,15 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
23499
23537
  };
23500
23538
  }
23501
23539
  });
23502
- const _hoisted_1$p = { id: "lupa-search-results-rating" };
23503
- const _hoisted_2$k = { class: "lupa-ratings" };
23504
- const _hoisted_3$e = { class: "lupa-ratings-base" };
23540
+ const _hoisted_1$s = { id: "lupa-search-results-rating" };
23541
+ const _hoisted_2$m = { class: "lupa-ratings" };
23542
+ const _hoisted_3$g = { class: "lupa-ratings-base" };
23505
23543
  const _hoisted_4$a = ["innerHTML"];
23506
- const _hoisted_5$6 = { class: "lupa-rating-wrapper" };
23507
- const _hoisted_6$4 = ["innerHTML"];
23544
+ const _hoisted_5$5 = { class: "lupa-rating-wrapper" };
23545
+ const _hoisted_6$3 = ["innerHTML"];
23508
23546
  const _hoisted_7$2 = ["href"];
23509
23547
  const STAR_COUNT = 5;
23510
- const _sfc_main$s = /* @__PURE__ */ defineComponent({
23548
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
23511
23549
  __name: "SearchResultsProductRating",
23512
23550
  props: {
23513
23551
  item: {},
@@ -23538,9 +23576,9 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
23538
23576
  return generateLink(props.options.links.ratingDetails, props.item);
23539
23577
  });
23540
23578
  return (_ctx, _cache) => {
23541
- return openBlock(), createElementBlock("div", _hoisted_1$p, [
23542
- createBaseVNode("div", _hoisted_2$k, [
23543
- createBaseVNode("div", _hoisted_3$e, [
23579
+ return openBlock(), createElementBlock("div", _hoisted_1$s, [
23580
+ createBaseVNode("div", _hoisted_2$m, [
23581
+ createBaseVNode("div", _hoisted_3$g, [
23544
23582
  (openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
23545
23583
  return openBlock(), createElementBlock("div", {
23546
23584
  key: index,
@@ -23549,7 +23587,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
23549
23587
  }, null, 8, _hoisted_4$a);
23550
23588
  }), 128))
23551
23589
  ]),
23552
- createBaseVNode("div", _hoisted_5$6, [
23590
+ createBaseVNode("div", _hoisted_5$5, [
23553
23591
  createBaseVNode("div", {
23554
23592
  class: "lupa-ratings-highlighted",
23555
23593
  style: normalizeStyle({ width: ratingPercentage.value + "%" })
@@ -23559,7 +23597,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
23559
23597
  key: index,
23560
23598
  innerHTML: star,
23561
23599
  class: "lupa-rating lupa-rating-highlighted"
23562
- }, null, 8, _hoisted_6$4);
23600
+ }, null, 8, _hoisted_6$3);
23563
23601
  }), 128))
23564
23602
  ], 4)
23565
23603
  ])
@@ -23572,11 +23610,11 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
23572
23610
  };
23573
23611
  }
23574
23612
  });
23575
- const _hoisted_1$o = {
23613
+ const _hoisted_1$r = {
23576
23614
  class: "lupa-search-results-product-regular-price",
23577
23615
  "data-cy": "lupa-search-results-product-regular-price"
23578
23616
  };
23579
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
23617
+ const _sfc_main$v = /* @__PURE__ */ defineComponent({
23580
23618
  __name: "SearchResultsProductRegularPrice",
23581
23619
  props: {
23582
23620
  item: {},
@@ -23594,11 +23632,11 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
23594
23632
  );
23595
23633
  });
23596
23634
  return (_ctx, _cache) => {
23597
- return openBlock(), createElementBlock("div", _hoisted_1$o, toDisplayString(price.value), 1);
23635
+ return openBlock(), createElementBlock("div", _hoisted_1$r, toDisplayString(price.value), 1);
23598
23636
  };
23599
23637
  }
23600
23638
  });
23601
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
23639
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
23602
23640
  __name: "SearchResultsProductPrice",
23603
23641
  props: {
23604
23642
  item: {},
@@ -23628,10 +23666,10 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
23628
23666
  };
23629
23667
  }
23630
23668
  });
23631
- const _hoisted_1$n = { class: "lupa-search-results-add-to-cart-wrapper" };
23632
- const _hoisted_2$j = { class: "lupa-search-results-product-addtocart" };
23633
- const _hoisted_3$d = ["onClick", "disabled"];
23634
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
23669
+ const _hoisted_1$q = { class: "lupa-search-results-add-to-cart-wrapper" };
23670
+ const _hoisted_2$l = { class: "lupa-search-results-product-addtocart" };
23671
+ const _hoisted_3$f = ["onClick", "disabled"];
23672
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
23635
23673
  __name: "SearchResultsProductAddToCart",
23636
23674
  props: {
23637
23675
  item: {},
@@ -23664,25 +23702,25 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
23664
23702
  loading.value = false;
23665
23703
  });
23666
23704
  return (_ctx, _cache) => {
23667
- return openBlock(), createElementBlock("div", _hoisted_1$n, [
23668
- createBaseVNode("div", _hoisted_2$j, [
23705
+ return openBlock(), createElementBlock("div", _hoisted_1$q, [
23706
+ createBaseVNode("div", _hoisted_2$l, [
23669
23707
  createBaseVNode("button", {
23670
23708
  onClick: withModifiers(handleClick, ["stop"]),
23671
23709
  class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
23672
23710
  "data-cy": "lupa-add-to-cart",
23673
23711
  disabled: !inStockValue.value || loading.value
23674
- }, toDisplayString(label.value), 11, _hoisted_3$d)
23712
+ }, toDisplayString(label.value), 11, _hoisted_3$f)
23675
23713
  ])
23676
23714
  ]);
23677
23715
  };
23678
23716
  }
23679
23717
  });
23680
- const _hoisted_1$m = ["innerHTML"];
23681
- const _hoisted_2$i = { key: 0 };
23682
- const _hoisted_3$c = { key: 1 };
23718
+ const _hoisted_1$p = ["innerHTML"];
23719
+ const _hoisted_2$k = { key: 0 };
23720
+ const _hoisted_3$e = { key: 1 };
23683
23721
  const _hoisted_4$9 = { class: "lupa-search-box-custom-label" };
23684
- const _hoisted_5$5 = { class: "lupa-search-box-custom-text" };
23685
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
23722
+ const _hoisted_5$4 = { class: "lupa-search-box-custom-text" };
23723
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
23686
23724
  __name: "SearchResultsProductCustom",
23687
23725
  props: {
23688
23726
  item: {},
@@ -23720,20 +23758,20 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
23720
23758
  key: 0,
23721
23759
  class: className.value,
23722
23760
  innerHTML: text.value
23723
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$m)) : (openBlock(), createElementBlock("div", mergeProps({
23761
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$p)) : (openBlock(), createElementBlock("div", mergeProps({
23724
23762
  key: 1,
23725
23763
  class: className.value
23726
23764
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
23727
- !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$i, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$c, [
23765
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$k, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$e, [
23728
23766
  createBaseVNode("div", _hoisted_4$9, toDisplayString(label.value), 1),
23729
- createBaseVNode("div", _hoisted_5$5, toDisplayString(text.value), 1)
23767
+ createBaseVNode("div", _hoisted_5$4, toDisplayString(text.value), 1)
23730
23768
  ]))
23731
23769
  ], 16));
23732
23770
  };
23733
23771
  }
23734
23772
  });
23735
- const _hoisted_1$l = ["innerHTML"];
23736
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
23773
+ const _hoisted_1$o = ["innerHTML"];
23774
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
23737
23775
  __name: "SearchResultsProductCustomHtmlElement",
23738
23776
  props: {
23739
23777
  item: {},
@@ -23764,15 +23802,15 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
23764
23802
  return openBlock(), createElementBlock("div", mergeProps({
23765
23803
  class: className.value,
23766
23804
  innerHTML: text.value
23767
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$l);
23805
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$o);
23768
23806
  };
23769
23807
  }
23770
23808
  });
23771
- const _hoisted_1$k = { id: "lupa-search-results-rating" };
23772
- const _hoisted_2$h = ["innerHTML"];
23773
- const _hoisted_3$b = { class: "lupa-ratings" };
23809
+ const _hoisted_1$n = { id: "lupa-search-results-rating" };
23810
+ const _hoisted_2$j = ["innerHTML"];
23811
+ const _hoisted_3$d = { class: "lupa-ratings" };
23774
23812
  const _hoisted_4$8 = ["href"];
23775
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
23813
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
23776
23814
  __name: "SearchResultsProductSingleStarRating",
23777
23815
  props: {
23778
23816
  item: {},
@@ -23800,12 +23838,12 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
23800
23838
  return RATING_STAR_HTML;
23801
23839
  });
23802
23840
  return (_ctx, _cache) => {
23803
- return openBlock(), createElementBlock("div", _hoisted_1$k, [
23841
+ return openBlock(), createElementBlock("div", _hoisted_1$n, [
23804
23842
  createBaseVNode("div", {
23805
23843
  innerHTML: star.value,
23806
23844
  class: "lupa-rating lupa-rating-highlighted"
23807
- }, null, 8, _hoisted_2$h),
23808
- createBaseVNode("div", _hoisted_3$b, toDisplayString(rating.value), 1),
23845
+ }, null, 8, _hoisted_2$j),
23846
+ createBaseVNode("div", _hoisted_3$d, toDisplayString(rating.value), 1),
23809
23847
  createBaseVNode("a", {
23810
23848
  href: ratingLink.value,
23811
23849
  class: "lupa-total-ratings"
@@ -23816,19 +23854,19 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
23816
23854
  });
23817
23855
  const __default__ = {
23818
23856
  components: {
23819
- SearchResultsProductImage: _sfc_main$v,
23820
- SearchResultsProductTitle: _sfc_main$u,
23821
- SearchResultsProductDescription: _sfc_main$t,
23822
- SearchResultsProductRating: _sfc_main$s,
23823
- SearchResultsProductRegularPrice: _sfc_main$r,
23824
- SearchResultsProductPrice: _sfc_main$q,
23825
- SearchResultsProductAddToCart: _sfc_main$p,
23826
- SearchResultsProductCustom: _sfc_main$o,
23827
- SearchResultsProductCustomHtmlElement: _sfc_main$n,
23828
- SearchResultsProductSingleStarRating: _sfc_main$m
23829
- }
23830
- };
23831
- const _sfc_main$l = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
23857
+ SearchResultsProductImage: _sfc_main$z,
23858
+ SearchResultsProductTitle: _sfc_main$y,
23859
+ SearchResultsProductDescription: _sfc_main$x,
23860
+ SearchResultsProductRating: _sfc_main$w,
23861
+ SearchResultsProductRegularPrice: _sfc_main$v,
23862
+ SearchResultsProductPrice: _sfc_main$u,
23863
+ SearchResultsProductAddToCart: _sfc_main$t,
23864
+ SearchResultsProductCustom: _sfc_main$s,
23865
+ SearchResultsProductCustomHtmlElement: _sfc_main$r,
23866
+ SearchResultsProductSingleStarRating: _sfc_main$q
23867
+ }
23868
+ };
23869
+ const _sfc_main$p = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
23832
23870
  __name: "SearchResultsProductCardElement",
23833
23871
  props: {
23834
23872
  item: {},
@@ -23904,13 +23942,13 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
23904
23942
  };
23905
23943
  }
23906
23944
  }));
23907
- const _hoisted_1$j = ["href"];
23908
- const _hoisted_2$g = {
23945
+ const _hoisted_1$m = ["href"];
23946
+ const _hoisted_2$i = {
23909
23947
  key: 0,
23910
23948
  class: "lupa-out-of-stock"
23911
23949
  };
23912
- const _hoisted_3$a = { class: "lupa-search-result-product-details-section" };
23913
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
23950
+ const _hoisted_3$c = { class: "lupa-search-result-product-details-section" };
23951
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
23914
23952
  __name: "SearchResultsProductCard",
23915
23953
  props: {
23916
23954
  product: {},
@@ -24062,7 +24100,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
24062
24100
  "data-cy": "lupa-search-result-product-card",
24063
24101
  class: ["lupa-search-result-product-card", !isInStock.value ? "lupa-out-of-stock" : ""]
24064
24102
  }, customDocumentHtmlAttributes.value, { onClick: handleClick }), [
24065
- createVNode(_sfc_main$10, { options: badgesOptions.value }, null, 8, ["options"]),
24103
+ createVNode(_sfc_main$14, { options: badgesOptions.value }, null, 8, ["options"]),
24066
24104
  createBaseVNode("div", {
24067
24105
  class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
24068
24106
  }, [
@@ -24072,7 +24110,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
24072
24110
  onClick: handleNavigation
24073
24111
  }, [
24074
24112
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
24075
- return openBlock(), createBlock(_sfc_main$l, {
24113
+ return openBlock(), createBlock(_sfc_main$p, {
24076
24114
  class: "lupa-search-results-product-element",
24077
24115
  item: _ctx.product,
24078
24116
  element,
@@ -24083,16 +24121,16 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
24083
24121
  onProductEvent: handleProductEvent
24084
24122
  }, null, 8, ["item", "element", "labels", "inStock", "link"]);
24085
24123
  }), 128)),
24086
- createVNode(_sfc_main$10, {
24124
+ createVNode(_sfc_main$14, {
24087
24125
  options: badgesOptions.value,
24088
24126
  position: "image",
24089
24127
  class: "lupa-image-badges"
24090
24128
  }, null, 8, ["options"]),
24091
- ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$g, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
24092
- ], 8, _hoisted_1$j),
24093
- createBaseVNode("div", _hoisted_3$a, [
24129
+ ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$i, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
24130
+ ], 8, _hoisted_1$m),
24131
+ createBaseVNode("div", _hoisted_3$c, [
24094
24132
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
24095
- return openBlock(), createBlock(_sfc_main$l, {
24133
+ return openBlock(), createBlock(_sfc_main$p, {
24096
24134
  class: "lupa-search-results-product-element",
24097
24135
  item: _ctx.product,
24098
24136
  element,
@@ -24110,7 +24148,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
24110
24148
  class: normalizeClass("lupa-element-group-" + group)
24111
24149
  }, [
24112
24150
  (openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
24113
- return openBlock(), createBlock(_sfc_main$l, {
24151
+ return openBlock(), createBlock(_sfc_main$p, {
24114
24152
  class: "lupa-search-results-product-element",
24115
24153
  item: _ctx.product,
24116
24154
  element,
@@ -24128,23 +24166,23 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
24128
24166
  };
24129
24167
  }
24130
24168
  });
24131
- const _hoisted_1$i = {
24169
+ const _hoisted_1$l = {
24132
24170
  id: "lupa-search-results-similar-queries",
24133
24171
  "data-cy": "lupa-search-results-similar-queries"
24134
24172
  };
24135
- const _hoisted_2$f = { class: "lupa-similar-queries-label" };
24136
- const _hoisted_3$9 = {
24173
+ const _hoisted_2$h = { class: "lupa-similar-queries-label" };
24174
+ const _hoisted_3$b = {
24137
24175
  class: "lupa-similar-query-label",
24138
24176
  "data-cy": "lupa-similar-query-label"
24139
24177
  };
24140
24178
  const _hoisted_4$7 = ["onClick"];
24141
- const _hoisted_5$4 = ["innerHTML"];
24142
- const _hoisted_6$3 = { key: 0 };
24179
+ const _hoisted_5$3 = ["innerHTML"];
24180
+ const _hoisted_6$2 = { key: 0 };
24143
24181
  const _hoisted_7$1 = {
24144
24182
  class: "lupa-products",
24145
24183
  "data-cy": "lupa-products"
24146
24184
  };
24147
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
24185
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
24148
24186
  __name: "SearchResultsSimilarQueries",
24149
24187
  props: {
24150
24188
  labels: {},
@@ -24174,11 +24212,11 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
24174
24212
  paramsStore.goToResults({ searchText, facet });
24175
24213
  };
24176
24214
  return (_ctx, _cache) => {
24177
- return openBlock(), createElementBlock("div", _hoisted_1$i, [
24178
- createBaseVNode("div", _hoisted_2$f, toDisplayString(_ctx.labels.similarQueries), 1),
24215
+ return openBlock(), createElementBlock("div", _hoisted_1$l, [
24216
+ createBaseVNode("div", _hoisted_2$h, toDisplayString(_ctx.labels.similarQueries), 1),
24179
24217
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
24180
24218
  return openBlock(), createElementBlock("div", { key: index }, [
24181
- createBaseVNode("div", _hoisted_3$9, [
24219
+ createBaseVNode("div", _hoisted_3$b, [
24182
24220
  createBaseVNode("span", null, toDisplayString(similarQueryLabel.value), 1),
24183
24221
  createBaseVNode("span", {
24184
24222
  id: "lupa-similar-query-text-component",
@@ -24188,13 +24226,13 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
24188
24226
  }, [
24189
24227
  createBaseVNode("span", {
24190
24228
  innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
24191
- }, null, 8, _hoisted_5$4),
24192
- similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$3, " (" + toDisplayString(similarQuery.count) + ")", 1)) : createCommentVNode("", true)
24229
+ }, null, 8, _hoisted_5$3),
24230
+ similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$2, " (" + toDisplayString(similarQuery.count) + ")", 1)) : createCommentVNode("", true)
24193
24231
  ], 8, _hoisted_4$7)
24194
24232
  ]),
24195
24233
  createBaseVNode("div", _hoisted_7$1, [
24196
24234
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
24197
- return openBlock(), createBlock(_sfc_main$k, {
24235
+ return openBlock(), createBlock(_sfc_main$o, {
24198
24236
  style: normalizeStyle(_ctx.columnSize),
24199
24237
  key: getDocumentKey(index2, product),
24200
24238
  product,
@@ -24208,15 +24246,15 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
24208
24246
  };
24209
24247
  }
24210
24248
  });
24211
- const _hoisted_1$h = {
24249
+ const _hoisted_1$k = {
24212
24250
  key: 0,
24213
24251
  class: "lupa-results-additional-panel"
24214
24252
  };
24215
- const _hoisted_2$e = {
24253
+ const _hoisted_2$g = {
24216
24254
  class: "lupa-results-additional-panel-items",
24217
24255
  "data-cy": "lupa-results-additional-panel-items"
24218
24256
  };
24219
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
24257
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
24220
24258
  __name: "AdditionalPanel",
24221
24259
  props: {
24222
24260
  panel: {},
@@ -24288,10 +24326,10 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
24288
24326
  handleQueryChange();
24289
24327
  });
24290
24328
  return (_ctx, _cache) => {
24291
- return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$h, [
24292
- createBaseVNode("div", _hoisted_2$e, [
24329
+ return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$k, [
24330
+ createBaseVNode("div", _hoisted_2$g, [
24293
24331
  (openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
24294
- return openBlock(), createBlock(_sfc_main$k, {
24332
+ return openBlock(), createBlock(_sfc_main$o, {
24295
24333
  key: index,
24296
24334
  product: item,
24297
24335
  options: _ctx.panel,
@@ -24309,11 +24347,11 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
24309
24347
  };
24310
24348
  }
24311
24349
  });
24312
- const _hoisted_1$g = {
24350
+ const _hoisted_1$j = {
24313
24351
  key: 0,
24314
24352
  class: "lupa-results-additional-panels"
24315
24353
  };
24316
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
24354
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
24317
24355
  __name: "AdditionalPanels",
24318
24356
  props: {
24319
24357
  options: {},
@@ -24330,9 +24368,9 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
24330
24368
  return locationPanels.value.length > 0;
24331
24369
  });
24332
24370
  return (_ctx, _cache) => {
24333
- return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
24371
+ return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$j, [
24334
24372
  (openBlock(true), createElementBlock(Fragment, null, renderList(locationPanels.value, (panel) => {
24335
- return openBlock(), createBlock(_sfc_main$i, {
24373
+ return openBlock(), createBlock(_sfc_main$m, {
24336
24374
  key: panel.queryKey,
24337
24375
  panel,
24338
24376
  options: _ctx.sdkOptions
@@ -24349,29 +24387,29 @@ const _export_sfc = (sfc, props) => {
24349
24387
  }
24350
24388
  return target;
24351
24389
  };
24352
- const _sfc_main$g = {};
24353
- const _hoisted_1$f = { class: "lupa-spinner-wrapper" };
24354
- const _hoisted_2$d = { class: "lupa-spinner" };
24390
+ const _sfc_main$k = {};
24391
+ const _hoisted_1$i = { class: "lupa-spinner-wrapper" };
24392
+ const _hoisted_2$f = { class: "lupa-spinner" };
24355
24393
  function _sfc_render(_ctx, _cache) {
24356
- return openBlock(), createElementBlock("div", _hoisted_1$f, [
24357
- createBaseVNode("div", _hoisted_2$d, [
24394
+ return openBlock(), createElementBlock("div", _hoisted_1$i, [
24395
+ createBaseVNode("div", _hoisted_2$f, [
24358
24396
  (openBlock(), createElementBlock(Fragment, null, renderList(12, (x2) => {
24359
24397
  return createBaseVNode("div", { key: x2 });
24360
24398
  }), 64))
24361
24399
  ])
24362
24400
  ]);
24363
24401
  }
24364
- const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render]]);
24365
- const _hoisted_1$e = {
24402
+ const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render]]);
24403
+ const _hoisted_1$h = {
24366
24404
  id: "lupa-search-results-similar-results",
24367
24405
  "data-cy": "lupa-search-results-similar-results"
24368
24406
  };
24369
- const _hoisted_2$c = { class: "lupa-similar-results-label" };
24370
- const _hoisted_3$8 = {
24407
+ const _hoisted_2$e = { class: "lupa-similar-results-label" };
24408
+ const _hoisted_3$a = {
24371
24409
  class: "lupa-products",
24372
24410
  "data-cy": "lupa-products"
24373
24411
  };
24374
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
24412
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
24375
24413
  __name: "SearchResultsSimilarResults",
24376
24414
  props: {
24377
24415
  columnSize: {},
@@ -24387,11 +24425,11 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
24387
24425
  return getProductKey(`${index}`, product, props.productCardOptions.idKey);
24388
24426
  };
24389
24427
  return (_ctx, _cache) => {
24390
- return openBlock(), createElementBlock("div", _hoisted_1$e, [
24391
- createBaseVNode("div", _hoisted_2$c, toDisplayString(_ctx.labels.similarResultsLabel), 1),
24392
- createBaseVNode("div", _hoisted_3$8, [
24428
+ return openBlock(), createElementBlock("div", _hoisted_1$h, [
24429
+ createBaseVNode("div", _hoisted_2$e, toDisplayString(_ctx.labels.similarResultsLabel), 1),
24430
+ createBaseVNode("div", _hoisted_3$a, [
24393
24431
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarResults.value.items, (product, index) => {
24394
- return openBlock(), createBlock(_sfc_main$k, {
24432
+ return openBlock(), createBlock(_sfc_main$o, {
24395
24433
  style: normalizeStyle(_ctx.columnSize),
24396
24434
  key: getDocumentKey(index, product),
24397
24435
  product,
@@ -24403,7 +24441,180 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
24403
24441
  };
24404
24442
  }
24405
24443
  });
24406
- const _hoisted_1$d = { id: "lupa-search-results-products" };
24444
+ var RelatedQuerySourceType = /* @__PURE__ */ ((RelatedQuerySourceType2) => {
24445
+ RelatedQuerySourceType2["FACETS"] = "facets";
24446
+ return RelatedQuerySourceType2;
24447
+ })(RelatedQuerySourceType || {});
24448
+ const extractFacetsRelatedSource = (source, searchResults2) => {
24449
+ var _a, _b, _c, _d, _e;
24450
+ const facet = (_a = searchResults2.facets) == null ? void 0 : _a.find((facet2) => facet2.key === source.key);
24451
+ if (!facet) {
24452
+ return [];
24453
+ }
24454
+ if (facet.type === "terms") {
24455
+ return (_c = (_b = facet.items) == null ? void 0 : _b.slice(0, source.count)) == null ? void 0 : _c.map((item) => item.title);
24456
+ }
24457
+ if (facet.type === "hierarchy") {
24458
+ return (_e = (_d = facet.items) == null ? void 0 : _d.slice(0, source.count)) == null ? void 0 : _e.map((item) => item.title);
24459
+ }
24460
+ return [];
24461
+ };
24462
+ const extractRelatedSource = (source, searchResults2) => {
24463
+ switch (source.type) {
24464
+ case RelatedQuerySourceType.FACETS:
24465
+ return extractFacetsRelatedSource(source, searchResults2);
24466
+ }
24467
+ };
24468
+ const _hoisted_1$g = { class: "lupa-related-query-item" };
24469
+ const _hoisted_2$d = { class: "lupa-related-query-image" };
24470
+ const _hoisted_3$9 = { class: "lupa-related-query-label" };
24471
+ const _hoisted_4$6 = { class: "lupa-related-query-title" };
24472
+ const _hoisted_5$2 = {
24473
+ key: 0,
24474
+ class: "lupa-related-query-count"
24475
+ };
24476
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
24477
+ __name: "RelatedQueryPanel",
24478
+ props: {
24479
+ query: {},
24480
+ options: {}
24481
+ },
24482
+ setup(__props) {
24483
+ const props = __props;
24484
+ const loading = ref(false);
24485
+ const relatedQueryResult = ref(null);
24486
+ const optionsStore = useOptionsStore();
24487
+ const { searchResultOptions } = storeToRefs(optionsStore);
24488
+ const mainImage = computed(() => {
24489
+ var _a, _b, _c;
24490
+ return (_c = (_b = (_a = searchResultOptions.value) == null ? void 0 : _a.elements) == null ? void 0 : _b.find((e2) => e2.type === DocumentElementType.IMAGE)) != null ? _c : "";
24491
+ });
24492
+ const image = computed(() => {
24493
+ var _a, _b, _c;
24494
+ return (_c = (_b = (_a = props.options) == null ? void 0 : _a.image) != null ? _b : mainImage == null ? void 0 : mainImage.value) != null ? _c : "";
24495
+ });
24496
+ const queryKey = computed(() => {
24497
+ var _a, _b;
24498
+ return (_b = (_a = props.options) == null ? void 0 : _a.queryKey) != null ? _b : searchResultOptions.value.queryKey;
24499
+ });
24500
+ computed(() => {
24501
+ var _a, _b;
24502
+ return ((_b = (_a = relatedQueryResult.value) == null ? void 0 : _a.items) == null ? void 0 : _b.length) > 0;
24503
+ });
24504
+ const firstResultItem = computed(() => {
24505
+ var _a, _b;
24506
+ return (_b = (_a = relatedQueryResult.value) == null ? void 0 : _a.items) == null ? void 0 : _b[0];
24507
+ });
24508
+ const totalItemCount = computed(() => {
24509
+ var _a, _b;
24510
+ return (_b = (_a = relatedQueryResult.value) == null ? void 0 : _a.total) != null ? _b : 0;
24511
+ });
24512
+ const searchForRelatedQuery = () => __async2(this, null, function* () {
24513
+ var _a, _b, _c, _d;
24514
+ if (!props.query) {
24515
+ return;
24516
+ }
24517
+ const lupaQuery = { searchText: (_a = props.query) == null ? void 0 : _a.toLowerCase(), limit: 1 };
24518
+ try {
24519
+ loading.value = true;
24520
+ const result2 = yield LupaSearchSdk.query(
24521
+ queryKey.value,
24522
+ lupaQuery,
24523
+ (_b = searchResultOptions.value) == null ? void 0 : _b.options
24524
+ );
24525
+ if (result2.success) {
24526
+ relatedQueryResult.value = result2;
24527
+ }
24528
+ } catch (error) {
24529
+ (_d = (_c = searchResultOptions.value) == null ? void 0 : _c.options) == null ? void 0 : _d.onError(error);
24530
+ } finally {
24531
+ loading.value = false;
24532
+ }
24533
+ });
24534
+ watch(
24535
+ () => props.query,
24536
+ () => {
24537
+ console.log("query changed", props.query);
24538
+ searchForRelatedQuery();
24539
+ }
24540
+ );
24541
+ onMounted(() => {
24542
+ searchForRelatedQuery();
24543
+ });
24544
+ return (_ctx, _cache) => {
24545
+ var _a;
24546
+ return openBlock(), createElementBlock("div", _hoisted_1$g, [
24547
+ createBaseVNode("div", _hoisted_2$d, [
24548
+ firstResultItem.value && image.value ? (openBlock(), createBlock(_sfc_main$1j, {
24549
+ key: 0,
24550
+ "wrapper-class": "lupa-related-query-image-wrapper",
24551
+ "image-class": "lupa-related-query-image",
24552
+ item: firstResultItem.value,
24553
+ options: image.value
24554
+ }, null, 8, ["item", "options"])) : createCommentVNode("", true)
24555
+ ]),
24556
+ createBaseVNode("div", _hoisted_3$9, [
24557
+ createBaseVNode("span", _hoisted_4$6, toDisplayString(_ctx.query), 1),
24558
+ ((_a = _ctx.options) == null ? void 0 : _a.showCount) ? (openBlock(), createElementBlock("span", _hoisted_5$2, "(" + toDisplayString(totalItemCount.value) + ")", 1)) : createCommentVNode("", true)
24559
+ ])
24560
+ ]);
24561
+ };
24562
+ }
24563
+ });
24564
+ const _hoisted_1$f = {
24565
+ key: 0,
24566
+ class: "lupa-related-queries"
24567
+ };
24568
+ const _hoisted_2$c = {
24569
+ key: 0,
24570
+ class: "lupa-related-queries-title"
24571
+ };
24572
+ const _hoisted_3$8 = ["onClick"];
24573
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
24574
+ __name: "RelatedQueries",
24575
+ props: {
24576
+ options: {}
24577
+ },
24578
+ setup(__props) {
24579
+ const props = __props;
24580
+ const searchResultStore = useSearchResultStore();
24581
+ const paramsStore = useParamsStore();
24582
+ const { searchResult } = storeToRefs(searchResultStore);
24583
+ const relatedQueries = computed(() => {
24584
+ if (!props.options || !searchResult.value) {
24585
+ return [];
24586
+ }
24587
+ return extractRelatedSource(props.options.source, searchResult.value);
24588
+ });
24589
+ const hasEnoughRelatedQueries = computed(() => {
24590
+ return relatedQueries.value.length > 1;
24591
+ });
24592
+ const goToResults = ({ searchText }) => {
24593
+ paramsStore.goToResults({ searchText });
24594
+ };
24595
+ return (_ctx, _cache) => {
24596
+ var _a, _b, _c, _d;
24597
+ return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
24598
+ ((_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),
24599
+ createBaseVNode("ul", null, [
24600
+ (openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries.value, (query) => {
24601
+ return openBlock(), createElementBlock("li", { key: query }, [
24602
+ createBaseVNode("a", {
24603
+ onClick: ($event) => goToResults({ searchText: query })
24604
+ }, [
24605
+ createVNode(_sfc_main$i, {
24606
+ options: _ctx.options,
24607
+ query
24608
+ }, null, 8, ["options", "query"])
24609
+ ], 8, _hoisted_3$8)
24610
+ ]);
24611
+ }), 128))
24612
+ ])
24613
+ ])) : createCommentVNode("", true);
24614
+ };
24615
+ }
24616
+ });
24617
+ const _hoisted_1$e = { id: "lupa-search-results-products" };
24407
24618
  const _hoisted_2$b = {
24408
24619
  class: "lupa-products",
24409
24620
  "data-cy": "lupa-products"
@@ -24413,14 +24624,14 @@ const _hoisted_3$7 = {
24413
24624
  class: "lupa-empty-results",
24414
24625
  "data-cy": "lupa-no-results-in-page"
24415
24626
  };
24416
- const _hoisted_4$6 = {
24627
+ const _hoisted_4$5 = {
24417
24628
  key: 3,
24418
24629
  class: "lupa-empty-results",
24419
24630
  "data-cy": "lupa-no-results"
24420
24631
  };
24421
- const _hoisted_5$3 = { key: 4 };
24422
- const _hoisted_6$2 = { key: 5 };
24423
- const _sfc_main$e = /* @__PURE__ */ defineComponent({
24632
+ const _hoisted_5$1 = { key: 4 };
24633
+ const _hoisted_6$1 = { key: 5 };
24634
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
24424
24635
  __name: "SearchResultsProducts",
24425
24636
  props: {
24426
24637
  options: {},
@@ -24527,24 +24738,32 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
24527
24738
  };
24528
24739
  return (_ctx, _cache) => {
24529
24740
  var _a;
24530
- return openBlock(), createElementBlock("div", _hoisted_1$d, [
24741
+ return openBlock(), createElementBlock("div", _hoisted_1$e, [
24531
24742
  unref(loading) && !unref(isMobileSidebarVisible) ? (openBlock(), createBlock(Spinner, {
24532
24743
  key: 0,
24533
24744
  class: "lupa-loader"
24534
24745
  })) : createCommentVNode("", true),
24746
+ createVNode(_sfc_main$l, {
24747
+ options: _ctx.options,
24748
+ location: "top",
24749
+ sdkOptions: _ctx.options.options
24750
+ }, null, 8, ["options", "sdkOptions"]),
24751
+ createVNode(_sfc_main$h, {
24752
+ options: _ctx.options.relatedQueries
24753
+ }, null, 8, ["options"]),
24535
24754
  unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
24536
- showTopFilters.value ? (openBlock(), createBlock(_sfc_main$C, {
24755
+ showTopFilters.value ? (openBlock(), createBlock(_sfc_main$G, {
24537
24756
  key: 0,
24538
24757
  options: (_a = _ctx.options.filters) != null ? _a : {}
24539
24758
  }, null, 8, ["options"])) : createCommentVNode("", true),
24540
- showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$w, {
24759
+ showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$A, {
24541
24760
  key: 1,
24542
24761
  class: "lupa-toolbar-mobile",
24543
24762
  options: _ctx.options,
24544
24763
  "pagination-location": "top",
24545
24764
  onFilter: filter2
24546
24765
  }, null, 8, ["options"])) : createCommentVNode("", true),
24547
- currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$Q, {
24766
+ currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$U, {
24548
24767
  key: 2,
24549
24768
  class: normalizeClass(currentFiltersClass.value),
24550
24769
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -24552,18 +24771,13 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
24552
24771
  expandable: !desktopFiltersExpanded.value
24553
24772
  }, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true)
24554
24773
  ], 64)) : createCommentVNode("", true),
24555
- createVNode(_sfc_main$h, {
24556
- options: _ctx.options,
24557
- location: "top",
24558
- sdkOptions: _ctx.options.options
24559
- }, null, 8, ["options", "sdkOptions"]),
24560
24774
  unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
24561
- createVNode(_sfc_main$w, {
24775
+ createVNode(_sfc_main$A, {
24562
24776
  class: "lupa-toolbar-top",
24563
24777
  options: _ctx.options,
24564
24778
  "pagination-location": "top"
24565
24779
  }, null, 8, ["options"]),
24566
- currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$Q, {
24780
+ currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$U, {
24567
24781
  key: 0,
24568
24782
  class: normalizeClass(currentFiltersClass.value),
24569
24783
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -24579,7 +24793,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
24579
24793
  options: productCardOptions.value
24580
24794
  });
24581
24795
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
24582
- return openBlock(), createBlock(_sfc_main$k, {
24796
+ return openBlock(), createBlock(_sfc_main$o, {
24583
24797
  style: normalizeStyle(columnSize.value),
24584
24798
  key: getProductKeyAction(index, product),
24585
24799
  product,
@@ -24595,29 +24809,29 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
24595
24809
  onClick: goToFirstPage
24596
24810
  }, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
24597
24811
  ])) : createCommentVNode("", true),
24598
- createVNode(_sfc_main$w, {
24812
+ createVNode(_sfc_main$A, {
24599
24813
  class: "lupa-toolbar-bottom",
24600
24814
  options: _ctx.options,
24601
24815
  "pagination-location": "bottom"
24602
24816
  }, null, 8, ["options"]),
24603
- createVNode(_sfc_main$h, {
24817
+ createVNode(_sfc_main$l, {
24604
24818
  options: _ctx.options,
24605
24819
  location: "bottom",
24606
24820
  sdkOptions: _ctx.options.options
24607
24821
  }, null, 8, ["options", "sdkOptions"])
24608
- ], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$6, [
24822
+ ], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$5, [
24609
24823
  createTextVNode(toDisplayString(_ctx.options.labels.emptyResults) + " ", 1),
24610
24824
  createBaseVNode("span", null, toDisplayString(unref(currentQueryText)), 1)
24611
24825
  ])) : createCommentVNode("", true),
24612
- hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5$3, [
24613
- createVNode(_sfc_main$j, {
24826
+ hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
24827
+ createVNode(_sfc_main$n, {
24614
24828
  labels: similarQueriesLabels.value,
24615
24829
  columnSize: columnSize.value,
24616
24830
  productCardOptions: productCardOptions.value
24617
24831
  }, null, 8, ["labels", "columnSize", "productCardOptions"])
24618
24832
  ])) : createCommentVNode("", true),
24619
- hasSimilarResults.value ? (openBlock(), createElementBlock("div", _hoisted_6$2, [
24620
- createVNode(_sfc_main$f, {
24833
+ hasSimilarResults.value ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
24834
+ createVNode(_sfc_main$j, {
24621
24835
  labels: similarResultsLabels.value,
24622
24836
  columnSize: columnSize.value,
24623
24837
  productCardOptions: productCardOptions.value
@@ -24628,14 +24842,14 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
24628
24842
  };
24629
24843
  }
24630
24844
  });
24631
- const _hoisted_1$c = { class: "lupa-top-mobile-filter-wrapper" };
24845
+ const _hoisted_1$d = { class: "lupa-top-mobile-filter-wrapper" };
24632
24846
  const _hoisted_2$a = {
24633
24847
  key: 0,
24634
24848
  class: "lupa-category-back"
24635
24849
  };
24636
24850
  const _hoisted_3$6 = ["href"];
24637
- const _hoisted_4$5 = { class: "lupa-child-category-list" };
24638
- const _sfc_main$d = /* @__PURE__ */ defineComponent({
24851
+ const _hoisted_4$4 = { class: "lupa-child-category-list" };
24852
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
24639
24853
  __name: "CategoryTopFilters",
24640
24854
  props: {
24641
24855
  options: {}
@@ -24676,7 +24890,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
24676
24890
  return openBlock(), createElementBlock("div", {
24677
24891
  class: normalizeClass(["lupa-category-top-mobile-filters", { "lupa-has-back-button": hasBackButton.value }])
24678
24892
  }, [
24679
- createBaseVNode("div", _hoisted_1$c, [
24893
+ createBaseVNode("div", _hoisted_1$d, [
24680
24894
  hasBackButton.value ? (openBlock(), createElementBlock("div", _hoisted_2$a, [
24681
24895
  createBaseVNode("a", {
24682
24896
  "data-cy": "lupa-category-back",
@@ -24684,16 +24898,16 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
24684
24898
  onClick: handleNavigationBack
24685
24899
  }, toDisplayString(backTitle.value), 9, _hoisted_3$6)
24686
24900
  ])) : createCommentVNode("", true),
24687
- createBaseVNode("div", _hoisted_4$5, [
24901
+ createBaseVNode("div", _hoisted_4$4, [
24688
24902
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
24689
- return openBlock(), createBlock(_sfc_main$P, {
24903
+ return openBlock(), createBlock(_sfc_main$T, {
24690
24904
  key: getCategoryKey(child),
24691
24905
  item: child,
24692
24906
  options: categoryOptions.value
24693
24907
  }, null, 8, ["item", "options"]);
24694
24908
  }), 128))
24695
24909
  ]),
24696
- createVNode(_sfc_main$w, {
24910
+ createVNode(_sfc_main$A, {
24697
24911
  class: "lupa-toolbar-mobile",
24698
24912
  "pagination-location": "top",
24699
24913
  options: _ctx.options
@@ -24703,7 +24917,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
24703
24917
  };
24704
24918
  }
24705
24919
  });
24706
- const _hoisted_1$b = {
24920
+ const _hoisted_1$c = {
24707
24921
  key: 0,
24708
24922
  class: "lupa-container-title-summary-mobile"
24709
24923
  };
@@ -24713,8 +24927,8 @@ const _hoisted_2$9 = {
24713
24927
  class: "top-layout-wrapper"
24714
24928
  };
24715
24929
  const _hoisted_3$5 = { class: "search-content" };
24716
- const _hoisted_4$4 = { id: "lupa-search-results" };
24717
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
24930
+ const _hoisted_4$3 = { id: "lupa-search-results" };
24931
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
24718
24932
  __name: "SearchResults",
24719
24933
  props: {
24720
24934
  options: {},
@@ -24924,29 +25138,29 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
24924
25138
  return openBlock(), createElementBlock("div", {
24925
25139
  class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
24926
25140
  }, [
24927
- _ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$b, [
24928
- createVNode(_sfc_main$U, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
24929
- createVNode(_sfc_main$S, {
25141
+ _ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
25142
+ createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
25143
+ createVNode(_sfc_main$W, {
24930
25144
  "show-summary": true,
24931
25145
  options: _ctx.options,
24932
25146
  "is-product-list": (_a = _ctx.isProductList) != null ? _a : false
24933
25147
  }, null, 8, ["options", "is-product-list"])
24934
25148
  ])) : createCommentVNode("", true),
24935
- isTitleResultTopPosition.value ? (openBlock(), createBlock(_sfc_main$d, {
25149
+ isTitleResultTopPosition.value ? (openBlock(), createBlock(_sfc_main$f, {
24936
25150
  key: 1,
24937
25151
  options: _ctx.options
24938
25152
  }, null, 8, ["options"])) : createCommentVNode("", true),
24939
- _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$E, {
25153
+ _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$I, {
24940
25154
  key: 2,
24941
25155
  options: _ctx.options.filters,
24942
25156
  onFilter: handleParamsChange
24943
25157
  }, null, 8, ["options"])) : createCommentVNode("", true),
24944
- unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$D, {
25158
+ unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$H, {
24945
25159
  key: 3,
24946
25160
  breadcrumbs: _ctx.options.breadcrumbs
24947
25161
  }, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
24948
25162
  isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
24949
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$F, {
25163
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$J, {
24950
25164
  key: 0,
24951
25165
  options: (_b = _ctx.options.filters) != null ? _b : {},
24952
25166
  ref_key: "searchResultsFilters",
@@ -24954,12 +25168,12 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
24954
25168
  onFilter: handleParamsChange
24955
25169
  }, null, 8, ["options"])) : createCommentVNode("", true),
24956
25170
  createBaseVNode("div", _hoisted_3$5, [
24957
- createVNode(_sfc_main$U, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
24958
- createVNode(_sfc_main$S, {
25171
+ createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
25172
+ createVNode(_sfc_main$W, {
24959
25173
  options: _ctx.options,
24960
25174
  "is-product-list": (_c = _ctx.isProductList) != null ? _c : false
24961
25175
  }, null, 8, ["options", "is-product-list"]),
24962
- createVNode(_sfc_main$e, {
25176
+ createVNode(_sfc_main$g, {
24963
25177
  options: _ctx.options,
24964
25178
  ssr: ssrEnabled.value,
24965
25179
  onFilter: handleParamsChange
@@ -24971,20 +25185,20 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
24971
25185
  }, 8, ["options", "ssr"])
24972
25186
  ])
24973
25187
  ])) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
24974
- createVNode(_sfc_main$U, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
24975
- createVNode(_sfc_main$S, {
25188
+ createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
25189
+ createVNode(_sfc_main$W, {
24976
25190
  options: _ctx.options,
24977
25191
  "is-product-list": (_d = _ctx.isProductList) != null ? _d : false
24978
25192
  }, null, 8, ["options", "is-product-list"]),
24979
- createBaseVNode("div", _hoisted_4$4, [
24980
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$F, {
25193
+ createBaseVNode("div", _hoisted_4$3, [
25194
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$J, {
24981
25195
  key: 0,
24982
25196
  options: (_e = _ctx.options.filters) != null ? _e : {},
24983
25197
  ref_key: "searchResultsFilters",
24984
25198
  ref: searchResultsFilters,
24985
25199
  onFilter: handleParamsChange
24986
25200
  }, null, 8, ["options"])) : createCommentVNode("", true),
24987
- createVNode(_sfc_main$e, {
25201
+ createVNode(_sfc_main$g, {
24988
25202
  options: _ctx.options,
24989
25203
  ssr: ssrEnabled.value,
24990
25204
  onFilter: handleParamsChange
@@ -25008,12 +25222,12 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
25008
25222
  };
25009
25223
  }
25010
25224
  });
25011
- const _hoisted_1$a = {
25225
+ const _hoisted_1$b = {
25012
25226
  key: 0,
25013
25227
  class: "lupa-category-overview"
25014
25228
  };
25015
25229
  const _hoisted_2$8 = ["innerHTML"];
25016
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
25230
+ const _sfc_main$d = /* @__PURE__ */ defineComponent({
25017
25231
  __name: "CategoryDescription",
25018
25232
  props: {
25019
25233
  options: {}
@@ -25031,7 +25245,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
25031
25245
  return Boolean((_b = (_a = props.options.categories) == null ? void 0 : _a.current) == null ? void 0 : _b.description);
25032
25246
  });
25033
25247
  return (_ctx, _cache) => {
25034
- return overviewVisible.value && unref(hasResults) ? (openBlock(), createElementBlock("div", _hoisted_1$a, [
25248
+ return overviewVisible.value && unref(hasResults) ? (openBlock(), createElementBlock("div", _hoisted_1$b, [
25035
25249
  createBaseVNode("div", {
25036
25250
  class: "lupa-category-description",
25037
25251
  innerHTML: description.value
@@ -25096,7 +25310,7 @@ const processExtractionObject = (value = {}) => {
25096
25310
  }
25097
25311
  return parsedObject;
25098
25312
  };
25099
- const _sfc_main$a = /* @__PURE__ */ defineComponent({
25313
+ const _sfc_main$c = /* @__PURE__ */ defineComponent({
25100
25314
  __name: "ProductList",
25101
25315
  props: {
25102
25316
  options: {}
@@ -25121,7 +25335,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
25121
25335
  __expose({ fetch: fetch2 });
25122
25336
  return (_ctx, _cache) => {
25123
25337
  return openBlock(), createElementBlock("div", null, [
25124
- createVNode(_sfc_main$c, {
25338
+ createVNode(_sfc_main$e, {
25125
25339
  options: componentOptions.value,
25126
25340
  "initial-filters": _ctx.options.initialFilters,
25127
25341
  "is-product-list": true,
@@ -25129,7 +25343,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
25129
25343
  ref: searchResults2
25130
25344
  }, {
25131
25345
  default: withCtx(() => [
25132
- createVNode(_sfc_main$b, { options: _ctx.options }, null, 8, ["options"])
25346
+ createVNode(_sfc_main$d, { options: _ctx.options }, null, 8, ["options"])
25133
25347
  ]),
25134
25348
  _: 1
25135
25349
  }, 8, ["options", "initial-filters"])
@@ -30619,9 +30833,9 @@ lodash$1.exports;
30619
30833
  }).call(commonjsGlobal$1);
30620
30834
  })(lodash$1, lodash$1.exports);
30621
30835
  var lodashExports$1 = lodash$1.exports;
30622
- const _hoisted_1$9 = ["onClick"];
30836
+ const _hoisted_1$a = ["onClick"];
30623
30837
  const _hoisted_2$7 = { class: "lupa-search-box-container" };
30624
- const _sfc_main$9 = /* @__PURE__ */ defineComponent({
30838
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
30625
30839
  __name: "SearchContainer",
30626
30840
  props: {
30627
30841
  options: {}
@@ -30667,7 +30881,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
30667
30881
  onClick: withModifiers(innerClick, ["stop"])
30668
30882
  }, [
30669
30883
  createBaseVNode("div", _hoisted_2$7, [
30670
- createVNode(_sfc_main$V, {
30884
+ createVNode(_sfc_main$Z, {
30671
30885
  options: fullSearchBoxOptions.value,
30672
30886
  "is-search-container": true,
30673
30887
  ref_key: "searchBox",
@@ -30675,13 +30889,13 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
30675
30889
  onClose: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
30676
30890
  }, null, 8, ["options"])
30677
30891
  ]),
30678
- createVNode(_sfc_main$c, {
30892
+ createVNode(_sfc_main$e, {
30679
30893
  options: fullSearchResultsOptions.value,
30680
30894
  "is-container": true,
30681
30895
  ref_key: "searchResults",
30682
30896
  ref: searchResults2
30683
30897
  }, null, 8, ["options"])
30684
- ], 8, _hoisted_1$9)
30898
+ ], 8, _hoisted_1$a)
30685
30899
  ]);
30686
30900
  };
30687
30901
  }
@@ -31384,7 +31598,7 @@ var Slide = defineComponent({
31384
31598
  };
31385
31599
  }
31386
31600
  });
31387
- const _hoisted_1$8 = {
31601
+ const _hoisted_1$9 = {
31388
31602
  key: 0,
31389
31603
  class: "lupa-search-product-recommendations-wrapper"
31390
31604
  };
@@ -31397,12 +31611,12 @@ const _hoisted_3$4 = {
31397
31611
  class: "lupa-recommended-products",
31398
31612
  "data-cy": "lupa-recommended-products"
31399
31613
  };
31400
- const _hoisted_4$3 = {
31614
+ const _hoisted_4$2 = {
31401
31615
  key: 1,
31402
31616
  class: "lupa-products",
31403
31617
  "data-cy": "lupa-products"
31404
31618
  };
31405
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
31619
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
31406
31620
  __name: "Recommendations",
31407
31621
  props: {
31408
31622
  options: {}
@@ -31518,7 +31732,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
31518
31732
  });
31519
31733
  __expose({ fetch: fetch2 });
31520
31734
  return (_ctx, _cache) => {
31521
- return hasRecommendations.value ? (openBlock(), createElementBlock("div", _hoisted_1$8, [
31735
+ return hasRecommendations.value ? (openBlock(), createElementBlock("div", _hoisted_1$9, [
31522
31736
  title.value ? (openBlock(), createElementBlock("h2", _hoisted_2$6, toDisplayString(title.value), 1)) : createCommentVNode("", true),
31523
31737
  !loading.value ? (openBlock(), createElementBlock("div", _hoisted_3$4, [
31524
31738
  layoutType.value === "carousel" ? (openBlock(), createBlock(unref(Carousel), mergeProps({ key: 0 }, carouselOptions.value, { "wrap-around": true }), {
@@ -31531,7 +31745,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
31531
31745
  key: getProductKeyAction(index, product)
31532
31746
  }, {
31533
31747
  default: withCtx(() => [
31534
- createVNode(_sfc_main$k, {
31748
+ createVNode(_sfc_main$o, {
31535
31749
  product,
31536
31750
  options: _ctx.options,
31537
31751
  "click-tracking-settings": clickTrackingSettings.value
@@ -31542,9 +31756,9 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
31542
31756
  }), 128))
31543
31757
  ]),
31544
31758
  _: 1
31545
- }, 16)) : (openBlock(), createElementBlock("div", _hoisted_4$3, [
31759
+ }, 16)) : (openBlock(), createElementBlock("div", _hoisted_4$2, [
31546
31760
  (openBlock(true), createElementBlock(Fragment, null, renderList(recommendations2.value, (product, index) => {
31547
- return openBlock(), createBlock(_sfc_main$k, {
31761
+ return openBlock(), createBlock(_sfc_main$o, {
31548
31762
  style: normalizeStyle(columnSize.value),
31549
31763
  key: getProductKeyAction(index, product),
31550
31764
  product,
@@ -31558,19 +31772,19 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
31558
31772
  };
31559
31773
  }
31560
31774
  });
31561
- const _hoisted_1$7 = { class: "lupa-chat-spinner" };
31775
+ const _hoisted_1$8 = { class: "lupa-chat-spinner" };
31562
31776
  const _hoisted_2$5 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
31563
31777
  const _hoisted_3$3 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
31564
- const _hoisted_4$2 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
31565
- const _hoisted_5$2 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
31566
- const _hoisted_6$1 = [
31778
+ const _hoisted_4$1 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
31779
+ const _hoisted_5 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
31780
+ const _hoisted_6 = [
31567
31781
  _hoisted_2$5,
31568
31782
  _hoisted_3$3,
31569
- _hoisted_4$2,
31570
- _hoisted_5$2
31783
+ _hoisted_4$1,
31784
+ _hoisted_5
31571
31785
  ];
31572
31786
  const _hoisted_7 = { class: "lupa-chat-spinner-message" };
31573
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
31787
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
31574
31788
  __name: "ChatSpinner",
31575
31789
  props: {
31576
31790
  small: { type: Boolean },
@@ -31578,27 +31792,25 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
31578
31792
  },
31579
31793
  setup(__props) {
31580
31794
  return (_ctx, _cache) => {
31581
- return openBlock(), createElementBlock("section", _hoisted_1$7, [
31795
+ return openBlock(), createElementBlock("section", _hoisted_1$8, [
31582
31796
  createBaseVNode("div", {
31583
31797
  class: normalizeClass([{ small: _ctx.small }, "lds-ring"])
31584
- }, _hoisted_6$1, 2),
31798
+ }, _hoisted_6, 2),
31585
31799
  createBaseVNode("div", _hoisted_7, toDisplayString(_ctx.message), 1)
31586
31800
  ]);
31587
31801
  };
31588
31802
  }
31589
31803
  });
31590
- const _hoisted_1$6 = { class: "lupa-chat-input-container" };
31804
+ const _hoisted_1$7 = { class: "lupa-chat-input-container" };
31591
31805
  const _hoisted_2$4 = { id: "lupa-search-box-input" };
31592
- const _hoisted_3$2 = {
31593
- key: 0,
31594
- class: "lupa-chat-form-submit"
31595
- };
31596
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
31806
+ const _hoisted_3$2 = { class: "lupa-chat-form-submit" };
31807
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
31597
31808
  __name: "ChatInput",
31598
31809
  props: {
31599
- disabled: { type: Boolean }
31810
+ disabled: { type: Boolean },
31811
+ options: {}
31600
31812
  },
31601
- emits: ["submit"],
31813
+ emits: ["submit", "focus", "blur", "clear"],
31602
31814
  setup(__props, { emit: emit2 }) {
31603
31815
  const inputValue = ref("");
31604
31816
  const submit = () => {
@@ -31606,7 +31818,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
31606
31818
  inputValue.value = "";
31607
31819
  };
31608
31820
  return (_ctx, _cache) => {
31609
- return openBlock(), createElementBlock("div", _hoisted_1$6, [
31821
+ var _a, _b, _c, _d, _e, _f;
31822
+ return openBlock(), createElementBlock("div", _hoisted_1$7, [
31610
31823
  createBaseVNode("form", {
31611
31824
  action: "javascript:void(0);",
31612
31825
  class: "chat-input-form",
@@ -31620,12 +31833,22 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
31620
31833
  class: "lupa-search-box-input-field",
31621
31834
  "data-cy": "lupa-search-box-input-field",
31622
31835
  type: "text",
31623
- placeholder: "Type your request here..."
31624
- }, null, 512), [
31836
+ placeholder: "Type your request here...",
31837
+ onFocus: _cache[1] || (_cache[1] = ($event) => emit2("focus")),
31838
+ onBlur: _cache[2] || (_cache[2] = ($event) => emit2("blur"))
31839
+ }, null, 544), [
31625
31840
  [vModelText, inputValue.value]
31626
31841
  ])
31627
31842
  ]),
31628
- !_ctx.disabled ? (openBlock(), createElementBlock("button", _hoisted_3$2, "Ask LupaChat")) : (openBlock(), createBlock(_sfc_main$7, {
31843
+ !_ctx.disabled ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
31844
+ createBaseVNode("button", _hoisted_3$2, toDisplayString(((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.chatSettings) == null ? void 0 : _b.labels) == null ? void 0 : _c.ask) || "Ask LupaChat"), 1),
31845
+ !_ctx.disabled ? (openBlock(), createElementBlock("button", {
31846
+ key: 0,
31847
+ type: "button",
31848
+ class: "lupa-chat-form-clear",
31849
+ onClick: _cache[3] || (_cache[3] = ($event) => emit2("clear"))
31850
+ }, toDisplayString(((_f = (_e = (_d = _ctx.options) == null ? void 0 : _d.chatSettings) == null ? void 0 : _e.labels) == null ? void 0 : _f.clear) || "Clear Chat"), 1)) : createCommentVNode("", true)
31851
+ ], 64)) : (openBlock(), createBlock(_sfc_main$9, {
31629
31852
  key: 1,
31630
31853
  small: true
31631
31854
  }))
@@ -31764,8 +31987,9 @@ const ChatService = {
31764
31987
  prepareChatHistory,
31765
31988
  getTextResponseChunkStream
31766
31989
  };
31767
- const _hoisted_1$5 = { class: "lupa-chat-results" };
31768
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
31990
+ const _hoisted_1$6 = { class: "lupa-chat-results" };
31991
+ const _hoisted_2$3 = ["href"];
31992
+ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
31769
31993
  __name: "ChatPhraseProductsList",
31770
31994
  props: {
31771
31995
  options: {},
@@ -31776,35 +32000,40 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
31776
32000
  const getProductKeyAction = (index, product) => {
31777
32001
  return getProductKey(`${index}`, product, props.options.idKey);
31778
32002
  };
32003
+ const image = computed(() => {
32004
+ var _a;
32005
+ return (_a = props.options.elements) == null ? void 0 : _a.find((e2) => e2.type === "image");
32006
+ });
32007
+ const getLink = (item) => {
32008
+ var _a, _b, _c;
32009
+ if (!((_a = props.options.links) == null ? void 0 : _a.details)) {
32010
+ return "";
32011
+ }
32012
+ return generateLink((_c = (_b = props.options.links) == null ? void 0 : _b.details) != null ? _c : "", item);
32013
+ };
31779
32014
  return (_ctx, _cache) => {
31780
- return openBlock(), createElementBlock("section", _hoisted_1$5, [
32015
+ return openBlock(), createElementBlock("section", _hoisted_1$6, [
31781
32016
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
31782
- return openBlock(), createBlock(_sfc_main$k, {
31783
- class: "lupa-chat-product-card",
31784
- key: getProductKeyAction(index, product),
31785
- product,
31786
- options: _ctx.options
31787
- }, null, 8, ["product", "options"]);
32017
+ return openBlock(), createElementBlock("div", {
32018
+ class: "lupa-chat-item lupa-chat-product-card-image",
32019
+ key: getProductKeyAction(index, product)
32020
+ }, [
32021
+ createBaseVNode("a", {
32022
+ href: getLink(product)
32023
+ }, [
32024
+ createVNode(_sfc_main$z, {
32025
+ item: product,
32026
+ options: image.value
32027
+ }, null, 8, ["item", "options"])
32028
+ ], 8, _hoisted_2$3)
32029
+ ]);
31788
32030
  }), 128))
31789
32031
  ]);
31790
32032
  };
31791
32033
  }
31792
32034
  });
31793
- const _hoisted_1$4 = { class: "lupa-chat-content-entry-phrase" };
31794
- const _hoisted_2$3 = { class: "lupa-chat-phrase-title" };
31795
- const _hoisted_3$1 = {
31796
- key: 0,
31797
- class: "alert"
31798
- };
31799
- const _hoisted_4$1 = {
31800
- key: 0,
31801
- class: "lupa-chat-no-results"
31802
- };
31803
- const _hoisted_5$1 = /* @__PURE__ */ createBaseVNode("p", null, "We found no matches for this search term", -1);
31804
- const _hoisted_6 = [
31805
- _hoisted_5$1
31806
- ];
31807
- const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
32035
+ const _hoisted_1$5 = { class: "lupa-chat-phrase-title" };
32036
+ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
31808
32037
  __name: "ChatContentEntryPhrase",
31809
32038
  props: {
31810
32039
  options: {},
@@ -31889,29 +32118,87 @@ const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
31889
32118
  return phrases != null ? phrases : [];
31890
32119
  });
31891
32120
  return (_ctx, _cache) => {
31892
- return openBlock(), createElementBlock("div", _hoisted_1$4, [
31893
- createBaseVNode("div", _hoisted_2$3, [
31894
- createBaseVNode("h3", null, toDisplayString(displayPhrase.value), 1),
31895
- createBaseVNode("sub", null, toDisplayString(usedAlternativePhrases.value.join(", ")), 1),
31896
- usedPartialResults.value ? (openBlock(), createElementBlock("sub", _hoisted_3$1, "Including partial matches - which might not be what you are looking for")) : createCommentVNode("", true)
32121
+ return !loading.value && searchResults2.value.length ? (openBlock(), createElementBlock("div", {
32122
+ key: 0,
32123
+ class: normalizeClass(["lupa-chat-content-entry-phrase", { "lupa-chat-incomplete-results": usedPartialResults.value }])
32124
+ }, [
32125
+ createBaseVNode("div", _hoisted_1$5, [
32126
+ createBaseVNode("h3", null, toDisplayString(displayPhrase.value), 1)
31897
32127
  ]),
31898
32128
  createBaseVNode("div", null, [
31899
- createVNode(_sfc_main$5, {
32129
+ createVNode(_sfc_main$7, {
31900
32130
  "search-results": searchResults2.value,
31901
32131
  options: _ctx.options.displayOptions
31902
32132
  }, null, 8, ["search-results", "options"])
31903
- ]),
31904
- !loading.value && !searchResults2.value.length ? (openBlock(), createElementBlock("div", _hoisted_4$1, _hoisted_6)) : createCommentVNode("", true),
31905
- loading.value ? (openBlock(), createBlock(_sfc_main$7, {
31906
- key: 1,
31907
- message: currentAction.value
31908
- }, null, 8, ["message"])) : createCommentVNode("", true)
32133
+ ])
32134
+ ], 2)) : createCommentVNode("", true);
32135
+ };
32136
+ }
32137
+ });
32138
+ const _hoisted_1$4 = { class: "lupa-chat-text-response" };
32139
+ const _hoisted_2$2 = ["innerHTML"];
32140
+ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
32141
+ __name: "ChatTextEntry",
32142
+ props: {
32143
+ content: {},
32144
+ options: {},
32145
+ history: {}
32146
+ },
32147
+ setup(__props) {
32148
+ const props = __props;
32149
+ const content = ref("");
32150
+ const processChunk = (chunk) => {
32151
+ content.value += chunk;
32152
+ };
32153
+ onMounted(() => {
32154
+ var _a;
32155
+ ChatService.getTextResponseChunkStream(
32156
+ props.options.sdkOptions,
32157
+ {
32158
+ initialQuery: props.content,
32159
+ messageHistory: (_a = props.history) != null ? _a : [],
32160
+ queryKey: props.options.displayOptions.queryKey
32161
+ },
32162
+ processChunk,
32163
+ props.options.chatSettings
32164
+ );
32165
+ });
32166
+ return (_ctx, _cache) => {
32167
+ return openBlock(), createElementBlock("div", _hoisted_1$4, [
32168
+ createBaseVNode("p", { innerHTML: content.value }, null, 8, _hoisted_2$2)
32169
+ ]);
32170
+ };
32171
+ }
32172
+ });
32173
+ const _hoisted_1$3 = { class: "lupa-chat-results" };
32174
+ const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
32175
+ __name: "ChatPhraseProductsCardList",
32176
+ props: {
32177
+ options: {},
32178
+ searchResults: {}
32179
+ },
32180
+ setup(__props) {
32181
+ const props = __props;
32182
+ const getProductKeyAction = (index, product) => {
32183
+ return getProductKey(`${index}`, product, props.options.idKey);
32184
+ };
32185
+ return (_ctx, _cache) => {
32186
+ return openBlock(), createElementBlock("section", _hoisted_1$3, [
32187
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
32188
+ return openBlock(), createBlock(_sfc_main$o, {
32189
+ class: "lupa-chat-product-card",
32190
+ key: getProductKeyAction(index, product),
32191
+ product,
32192
+ options: _ctx.options
32193
+ }, null, 8, ["product", "options"]);
32194
+ }), 128))
31909
32195
  ]);
31910
32196
  };
31911
32197
  }
31912
32198
  });
31913
- const _hoisted_1$3 = { class: "lupa-chat-best-matches lupa-chat-content-entry" };
31914
- const _hoisted_2$2 = /* @__PURE__ */ createBaseVNode("h3", null, "Best matches", -1);
32199
+ const _hoisted_1$2 = { class: "lupa-chat-section-content" };
32200
+ const _hoisted_2$1 = { class: "lupa-chat-content-entry-wrapper" };
32201
+ const _hoisted_3$1 = { class: "lupa-chat-best-matches lupa-chat-content-entry" };
31915
32202
  const MAX_SOURCES_FOR_BEST_ITEM_MATCHING = 250;
31916
32203
  const _sfc_main$3$1 = /* @__PURE__ */ defineComponent({
31917
32204
  __name: "ChatContentEntry",
@@ -31970,74 +32257,87 @@ const _sfc_main$3$1 = /* @__PURE__ */ defineComponent({
31970
32257
  }).filter(Boolean);
31971
32258
  });
31972
32259
  return (_ctx, _cache) => {
31973
- return openBlock(), createElementBlock("div", null, [
31974
- createBaseVNode("ul", null, [
31975
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.entry.allPhrases, (phrase) => {
31976
- return openBlock(), createElementBlock("li", {
31977
- key: phrase,
31978
- class: "lupa-chat-content-entry"
31979
- }, [
31980
- phrase ? (openBlock(), createBlock(_sfc_main$4$1, {
31981
- key: 0,
31982
- phrase,
31983
- options: _ctx.options,
31984
- onLoaded: loaded
31985
- }, null, 8, ["phrase", "options"])) : createCommentVNode("", true)
31986
- ]);
31987
- }), 128))
32260
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i;
32261
+ return openBlock(), createElementBlock(Fragment, null, [
32262
+ createBaseVNode("section", _hoisted_1$2, [
32263
+ createVNode(_sfc_main$5, {
32264
+ content: _ctx.entry.userInput,
32265
+ history: _ctx.history,
32266
+ options: _ctx.options
32267
+ }, null, 8, ["content", "history", "options"]),
32268
+ createBaseVNode("div", _hoisted_2$1, [
32269
+ createBaseVNode("ul", null, [
32270
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.entry.allPhrases, (phrase) => {
32271
+ return openBlock(), createElementBlock("li", {
32272
+ key: phrase,
32273
+ class: "lupa-chat-content-entry"
32274
+ }, [
32275
+ phrase ? (openBlock(), createBlock(_sfc_main$6, {
32276
+ key: 0,
32277
+ phrase,
32278
+ options: _ctx.options,
32279
+ onLoaded: loaded
32280
+ }, null, 8, ["phrase", "options"])) : createCommentVNode("", true)
32281
+ ]);
32282
+ }), 128))
32283
+ ]),
32284
+ loading.value ? (openBlock(), createBlock(_sfc_main$9, {
32285
+ key: 0,
32286
+ message: (_c = (_b = (_a = _ctx.options.chatSettings) == null ? void 0 : _a.labels) == null ? void 0 : _b.bestMatches) != null ? _c : "Checking for more matches..."
32287
+ }, null, 8, ["message"])) : createCommentVNode("", true)
32288
+ ])
31988
32289
  ]),
31989
- createBaseVNode("section", _hoisted_1$3, [
31990
- _hoisted_2$2,
31991
- loading.value ? (openBlock(), createBlock(_sfc_main$7, {
32290
+ createBaseVNode("section", _hoisted_3$1, [
32291
+ createBaseVNode("h3", null, toDisplayString((_f = (_e = (_d = _ctx.options.chatSettings) == null ? void 0 : _d.labels) == null ? void 0 : _e.checkingForMorePhraseMatches) != null ? _f : "Best matches"), 1),
32292
+ loading.value ? (openBlock(), createBlock(_sfc_main$9, {
31992
32293
  key: 0,
31993
- message: "Selecting the best matches for you. This might take a few seconds."
31994
- })) : createCommentVNode("", true),
31995
- bestMatches.value.length ? (openBlock(), createBlock(_sfc_main$5, {
32294
+ message: (_i = (_h = (_g = _ctx.options.chatSettings) == null ? void 0 : _g.labels) == null ? void 0 : _h.selectingBestPhrases) != null ? _i : "Selecting the best matches for you. This might take a few seconds."
32295
+ }, null, 8, ["message"])) : createCommentVNode("", true),
32296
+ bestMatches.value.length ? (openBlock(), createBlock(_sfc_main$4$1, {
31996
32297
  key: 1,
31997
32298
  "search-results": bestMatchProducts.value,
31998
- options: _ctx.options.displayOptions
32299
+ options: _ctx.options.displayOptions,
32300
+ full: true
31999
32301
  }, null, 8, ["search-results", "options"])) : createCommentVNode("", true)
32000
32302
  ])
32001
- ]);
32303
+ ], 64);
32002
32304
  };
32003
32305
  }
32004
32306
  });
32005
- const _hoisted_1$2 = { class: "lupa-chat-text-response" };
32006
- const _hoisted_2$1 = ["innerHTML"];
32307
+ const _hoisted_1$1 = { key: 0 };
32007
32308
  const _sfc_main$2$1 = /* @__PURE__ */ defineComponent({
32008
- __name: "ChatTextEntry",
32309
+ __name: "ChatContentListEntry",
32009
32310
  props: {
32010
- content: {},
32311
+ entry: {},
32011
32312
  options: {},
32012
32313
  history: {}
32013
32314
  },
32014
- setup(__props) {
32015
- const props = __props;
32016
- const content = ref("");
32017
- const processChunk = (chunk) => {
32018
- content.value += chunk;
32315
+ emits: ["loaded"],
32316
+ setup(__props, { emit: emit2 }) {
32317
+ const bestItemsLoaded = (items, key) => {
32318
+ emit2("loaded", { items, key });
32019
32319
  };
32020
- onMounted(() => {
32021
- var _a;
32022
- ChatService.getTextResponseChunkStream(
32023
- props.options.sdkOptions,
32024
- {
32025
- initialQuery: props.content,
32026
- messageHistory: (_a = props.history) != null ? _a : [],
32027
- queryKey: props.options.displayOptions.queryKey
32028
- },
32029
- processChunk,
32030
- props.options.chatSettings
32031
- );
32032
- });
32033
32320
  return (_ctx, _cache) => {
32034
- return openBlock(), createElementBlock("div", _hoisted_1$2, [
32035
- createBaseVNode("p", { innerHTML: content.value }, null, 8, _hoisted_2$1)
32321
+ var _a;
32322
+ return openBlock(), createElementBlock("div", null, [
32323
+ createBaseVNode("h4", {
32324
+ class: "lupa-chat-section-title",
32325
+ onClick: _cache[0] || (_cache[0] = ($event) => _ctx.entry.expanded = !_ctx.entry.expanded)
32326
+ }, toDisplayString(_ctx.entry.userInput), 1),
32327
+ ((_a = _ctx.entry.suggestedPhrases) == null ? void 0 : _a.length) ? withDirectives((openBlock(), createElementBlock("div", _hoisted_1$1, [
32328
+ createVNode(_sfc_main$3$1, {
32329
+ entry: _ctx.entry,
32330
+ options: _ctx.options,
32331
+ history: _ctx.history,
32332
+ onLoaded: _cache[1] || (_cache[1] = (items) => bestItemsLoaded(items, _ctx.entry.key))
32333
+ }, null, 8, ["entry", "options", "history"])
32334
+ ], 512)), [
32335
+ [vShow, _ctx.entry.expanded]
32336
+ ]) : createCommentVNode("", true)
32036
32337
  ]);
32037
32338
  };
32038
32339
  }
32039
32340
  });
32040
- const _hoisted_1$1 = { class: "lupa-chat-section-title" };
32041
32341
  const _sfc_main$1$1 = /* @__PURE__ */ defineComponent({
32042
32342
  __name: "ChatContentList",
32043
32343
  props: {
@@ -32054,23 +32354,16 @@ const _sfc_main$1$1 = /* @__PURE__ */ defineComponent({
32054
32354
  return openBlock(), createElementBlock("div", null, [
32055
32355
  createBaseVNode("ul", null, [
32056
32356
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.content, (entry) => {
32057
- var _a;
32058
32357
  return openBlock(), createElementBlock("li", {
32059
- key: entry.key
32358
+ key: entry.key,
32359
+ class: "chat-content-list-entry"
32060
32360
  }, [
32061
- createBaseVNode("h4", _hoisted_1$1, toDisplayString(entry.userInput), 1),
32062
32361
  createVNode(_sfc_main$2$1, {
32063
- content: entry.userInput,
32064
- history: _ctx.history,
32065
- options: _ctx.options
32066
- }, null, 8, ["content", "history", "options"]),
32067
- ((_a = entry.suggestedPhrases) == null ? void 0 : _a.length) ? (openBlock(), createBlock(_sfc_main$3$1, {
32068
- key: 0,
32069
32362
  entry,
32070
32363
  options: _ctx.options,
32071
32364
  history: _ctx.history,
32072
32365
  onLoaded: (items) => bestItemsLoaded(items, entry.key)
32073
- }, null, 8, ["entry", "options", "history", "onLoaded"])) : createCommentVNode("", true)
32366
+ }, null, 8, ["entry", "options", "history", "onLoaded"])
32074
32367
  ]);
32075
32368
  }), 128))
32076
32369
  ])
@@ -32079,19 +32372,13 @@ const _sfc_main$1$1 = /* @__PURE__ */ defineComponent({
32079
32372
  }
32080
32373
  });
32081
32374
  const _hoisted_1 = { class: "lupasearch-chat" };
32082
- const _hoisted_2 = /* @__PURE__ */ createBaseVNode("section", { class: "lupa-chat-logo" }, [
32083
- /* @__PURE__ */ createBaseVNode("img", { src: "https://www.lupasearch.com/images/partials/header/lupasearch-logo.svg" })
32084
- ], -1);
32085
- const _hoisted_3 = {
32375
+ const _hoisted_2 = { class: "lupasearch-chat-input" };
32376
+ const _hoisted_3 = { class: "lupasearch-chat-content-wrapper" };
32377
+ const _hoisted_4 = {
32086
32378
  key: 0,
32087
32379
  class: "lupasearch-chat-content"
32088
32380
  };
32089
- const _hoisted_4 = {
32090
- key: 1,
32091
- class: "lupa-chat-spinner-main"
32092
- };
32093
- const _hoisted_5 = { class: "lupasearch-chat-input" };
32094
- const _sfc_main$1o = /* @__PURE__ */ defineComponent({
32381
+ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
32095
32382
  __name: "ChatContainer",
32096
32383
  props: {
32097
32384
  options: {}
@@ -32100,6 +32387,7 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
32100
32387
  const props = __props;
32101
32388
  const loading = ref(false);
32102
32389
  const error = ref("");
32390
+ const focused = ref(false);
32103
32391
  const chatContent = ref([]);
32104
32392
  const history = computed(() => ChatService.prepareChatHistory(chatContent.value));
32105
32393
  const submitChatInput = (input2) => __async2(this, null, function* () {
@@ -32114,8 +32402,10 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
32114
32402
  key,
32115
32403
  userInput: input2,
32116
32404
  allPhrases: [],
32117
- suggestedPhrases: []
32405
+ suggestedPhrases: [],
32406
+ expanded: true
32118
32407
  };
32408
+ chatContent.value = chatContent.value.map((c2) => __spreadProps2(__spreadValues2({}, c2), { expanded: false }));
32119
32409
  chatContent.value.push(chatLog);
32120
32410
  const request = {
32121
32411
  userPrompt: input2,
@@ -32146,25 +32436,31 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
32146
32436
  const entry = chatContent.value.find((c2) => c2.key === key);
32147
32437
  entry.bestItems = items;
32148
32438
  };
32439
+ const clearChatContent = () => {
32440
+ chatContent.value = [];
32441
+ };
32149
32442
  return (_ctx, _cache) => {
32150
32443
  return openBlock(), createElementBlock("section", _hoisted_1, [
32151
- _hoisted_2,
32152
- chatContent.value.length ? (openBlock(), createElementBlock("section", _hoisted_3, [
32153
- createVNode(_sfc_main$1$1, {
32154
- content: chatContent.value,
32155
- options: _ctx.options,
32156
- onLoaded: bestItemsLoaded,
32157
- history: history.value
32158
- }, null, 8, ["content", "options", "history"])
32159
- ])) : createCommentVNode("", true),
32160
- loading.value ? (openBlock(), createElementBlock("section", _hoisted_4, [
32161
- createVNode(_sfc_main$7, { message: "Loading initial recommendations... This might take up to 20s" })
32162
- ])) : createCommentVNode("", true),
32163
- createBaseVNode("section", _hoisted_5, [
32164
- createVNode(_sfc_main$6, {
32444
+ createBaseVNode("section", _hoisted_2, [
32445
+ createVNode(_sfc_main$8, {
32165
32446
  onSubmit: submitChatInput,
32166
- disabled: loading.value
32167
- }, null, 8, ["disabled"])
32447
+ disabled: loading.value,
32448
+ options: _ctx.options,
32449
+ onFocus: _cache[0] || (_cache[0] = ($event) => focused.value = true),
32450
+ onClear: clearChatContent
32451
+ }, null, 8, ["disabled", "options"]),
32452
+ createBaseVNode("div", _hoisted_3, [
32453
+ chatContent.value.length ? withDirectives((openBlock(), createElementBlock("section", _hoisted_4, [
32454
+ createVNode(_sfc_main$1$1, {
32455
+ content: chatContent.value,
32456
+ options: _ctx.options,
32457
+ history: history.value,
32458
+ onLoaded: bestItemsLoaded
32459
+ }, null, 8, ["content", "options", "history"])
32460
+ ], 512)), [
32461
+ [vShow, focused.value]
32462
+ ]) : createCommentVNode("", true)
32463
+ ])
32168
32464
  ])
32169
32465
  ]);
32170
32466
  };
@@ -38100,7 +38396,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
38100
38396
  };
38101
38397
  __expose({ fetch: fetch2 });
38102
38398
  return (_ctx, _cache) => {
38103
- return openBlock(), createBlock(unref(_sfc_main$V), {
38399
+ return openBlock(), createBlock(unref(_sfc_main$Z), {
38104
38400
  options: fullSearchBoxOptions.value,
38105
38401
  ref_key: "searchBox",
38106
38402
  ref: searchBox2
@@ -38227,7 +38523,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
38227
38523
  };
38228
38524
  __expose({ fetch: fetch2 });
38229
38525
  return (_ctx, _cache) => {
38230
- return openBlock(), createBlock(unref(_sfc_main$c), {
38526
+ return openBlock(), createBlock(unref(_sfc_main$e), {
38231
38527
  options: fullSearchResultsOptions.value,
38232
38528
  ref_key: "searchResults",
38233
38529
  ref: searchResults2
@@ -38252,7 +38548,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
38252
38548
  };
38253
38549
  __expose({ fetch: fetch2 });
38254
38550
  return (_ctx, _cache) => {
38255
- return openBlock(), createBlock(unref(_sfc_main$a), {
38551
+ return openBlock(), createBlock(unref(_sfc_main$c), {
38256
38552
  options: fullProductListOptions.value,
38257
38553
  ref_key: "productList",
38258
38554
  ref: productList2
@@ -38332,7 +38628,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
38332
38628
  __expose({ fetch: fetch2, reloadOptions });
38333
38629
  return (_ctx, _cache) => {
38334
38630
  return openBlock(), createElementBlock("div", null, [
38335
- containerOptions.value && isOpen.value ? (openBlock(), createBlock(unref(_sfc_main$9), {
38631
+ containerOptions.value && isOpen.value ? (openBlock(), createBlock(unref(_sfc_main$b), {
38336
38632
  key: 0,
38337
38633
  options: containerOptions.value,
38338
38634
  ref_key: "productList",
@@ -38356,7 +38652,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
38356
38652
  };
38357
38653
  __expose({ fetch: fetch2 });
38358
38654
  return (_ctx, _cache) => {
38359
- return openBlock(), createBlock(unref(_sfc_main$8), {
38655
+ return openBlock(), createBlock(unref(_sfc_main$a), {
38360
38656
  options: _ctx.recommendationOptions,
38361
38657
  ref_key: "productRecommendations",
38362
38658
  ref: productRecommendations
@@ -38627,7 +38923,7 @@ const chat = (options, mountOptions) => {
38627
38923
  const instance = createVue(
38628
38924
  options.displayOptions.containerSelector,
38629
38925
  mountOptions == null ? void 0 : mountOptions.mountingBehavior,
38630
- _sfc_main$1o,
38926
+ _sfc_main$1s,
38631
38927
  {
38632
38928
  options
38633
38929
  }