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