@getlupa/client 1.14.4 → 1.14.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6316,6 +6316,44 @@ var __async = (__this, __arguments, generator) => {
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 @@ var __async = (__this, __arguments, generator) => {
8558
8596
  resetHighlightIndex
8559
8597
  };
8560
8598
  });
8561
- const _hoisted_1$1d = { id: "lupa-search-box-input-container" };
8599
+ const _hoisted_1$1e = { id: "lupa-search-box-input-container" };
8562
8600
  const _hoisted_2$S = { class: "lupa-input-clear" };
8563
8601
  const _hoisted_3$B = { id: "lupa-search-box-input" };
8564
8602
  const _hoisted_4$s = ["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$i = ["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$1p = /* @__PURE__ */ defineComponent({
8575
8613
  __name: "SearchBoxInput",
8576
8614
  props: {
8577
8615
  options: {},
@@ -8655,7 +8693,7 @@ var __async = (__this, __arguments, generator) => {
8655
8693
  };
8656
8694
  __expose({ focus });
8657
8695
  return (_ctx, _cache) => {
8658
- return openBlock(), createElementBlock("div", _hoisted_1$1d, [
8696
+ return openBlock(), createElementBlock("div", _hoisted_1$1e, [
8659
8697
  createBaseVNode("div", _hoisted_2$S, [
8660
8698
  createBaseVNode("div", {
8661
8699
  class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
@@ -8682,7 +8720,7 @@ var __async = (__this, __arguments, generator) => {
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$i), [
8686
8724
  [vModelText, inputValue.value]
8687
8725
  ]),
8688
8726
  _ctx.options.showSubmitButton ? (openBlock(), createElementBlock("button", {
@@ -8701,7 +8739,7 @@ var __async = (__this, __arguments, generator) => {
8701
8739
  };
8702
8740
  }
8703
8741
  });
8704
- const _sfc_main$1m = /* @__PURE__ */ defineComponent({
8742
+ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
8705
8743
  __name: "SearchBoxMoreResults",
8706
8744
  props: {
8707
8745
  labels: {},
@@ -8733,9 +8771,9 @@ var __async = (__this, __arguments, generator) => {
8733
8771
  };
8734
8772
  }
8735
8773
  });
8736
- const _hoisted_1$1c = { class: "lupa-search-box-history-item" };
8774
+ const _hoisted_1$1d = { class: "lupa-search-box-history-item" };
8737
8775
  const _hoisted_2$R = { class: "lupa-search-box-history-item-content" };
8738
- const _sfc_main$1l = /* @__PURE__ */ defineComponent({
8776
+ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
8739
8777
  __name: "SearchBoxHistoryItem",
8740
8778
  props: {
8741
8779
  item: {},
@@ -8751,7 +8789,7 @@ var __async = (__this, __arguments, generator) => {
8751
8789
  emit2("click", { query: props.item });
8752
8790
  };
8753
8791
  return (_ctx, _cache) => {
8754
- return openBlock(), createElementBlock("div", _hoisted_1$1c, [
8792
+ return openBlock(), createElementBlock("div", _hoisted_1$1d, [
8755
8793
  createBaseVNode("div", _hoisted_2$R, [
8756
8794
  createBaseVNode("div", {
8757
8795
  class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
@@ -8766,11 +8804,11 @@ var __async = (__this, __arguments, generator) => {
8766
8804
  };
8767
8805
  }
8768
8806
  });
8769
- const _hoisted_1$1b = {
8807
+ const _hoisted_1$1c = {
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$1m = /* @__PURE__ */ defineComponent({
8774
8812
  __name: "SearchBoxHistoryPanel",
8775
8813
  props: {
8776
8814
  options: {}
@@ -8811,9 +8849,9 @@ var __async = (__this, __arguments, generator) => {
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$1c, [
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$1n, {
8817
8855
  key: item,
8818
8856
  item,
8819
8857
  highlighted: index === highlightIndex.value,
@@ -8829,15 +8867,15 @@ var __async = (__this, __arguments, generator) => {
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$1b = { class: "lupa-search-box-no-results" };
8871
+ const _sfc_main$1l = /* @__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$1b, toDisplayString(_ctx.labels.noResults), 1);
8841
8879
  };
8842
8880
  }
8843
8881
  });
@@ -8869,7 +8907,7 @@ var __async = (__this, __arguments, generator) => {
8869
8907
  }
8870
8908
  return gridTemplate.join(" ");
8871
8909
  };
8872
- const _hoisted_1$19 = ["innerHTML"];
8910
+ const _hoisted_1$1a = ["innerHTML"];
8873
8911
  const _hoisted_2$Q = {
8874
8912
  key: 1,
8875
8913
  "data-cy": "lupa-suggestion-value",
@@ -8884,11 +8922,11 @@ var __async = (__this, __arguments, generator) => {
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$h = {
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$1k = /* @__PURE__ */ defineComponent({
8892
8930
  __name: "SearchBoxSuggestion",
8893
8931
  props: {
8894
8932
  suggestion: {},
@@ -8924,20 +8962,20 @@ var __async = (__this, __arguments, generator) => {
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)),
8965
+ }, null, 8, _hoisted_1$1a)) : (openBlock(), createElementBlock("div", _hoisted_2$Q, toDisplayString(_ctx.suggestion.display), 1)),
8928
8966
  _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$A, [
8929
8967
  createBaseVNode("span", _hoisted_4$r, toDisplayString(facetLabel.value), 1),
8930
- createBaseVNode("span", _hoisted_5$j, toDisplayString(_ctx.suggestion.facet.title), 1)
8968
+ createBaseVNode("span", _hoisted_5$h, 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$19 = {
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$1j = /* @__PURE__ */ defineComponent({
8941
8979
  __name: "SearchBoxSuggestions",
8942
8980
  props: {
8943
8981
  items: {},
@@ -8997,9 +9035,9 @@ var __async = (__this, __arguments, generator) => {
8997
9035
  });
8998
9036
  });
8999
9037
  return (_ctx, _cache) => {
9000
- return openBlock(), createElementBlock("div", _hoisted_1$18, [
9038
+ return openBlock(), createElementBlock("div", _hoisted_1$19, [
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$1k, {
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 @@ var __async = (__this, __arguments, generator) => {
9027
9065
  }, timeout);
9028
9066
  };
9029
9067
  };
9030
- const _sfc_main$1g = /* @__PURE__ */ defineComponent({
9068
+ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
9031
9069
  __name: "SearchBoxSuggestionsWrapper",
9032
9070
  props: {
9033
9071
  panel: {},
@@ -9069,7 +9107,7 @@ var __async = (__this, __arguments, generator) => {
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$1j, {
9073
9111
  items: searchResult.value,
9074
9112
  highlight: _ctx.panel.highlight,
9075
9113
  queryKey: _ctx.panel.queryKey,
@@ -18143,9 +18181,9 @@ and ensure you are accounting for this risk.
18143
18181
  targetImage.src = placeholder;
18144
18182
  }
18145
18183
  };
18146
- const _hoisted_1$17 = ["src"];
18184
+ const _hoisted_1$18 = ["src"];
18147
18185
  const _hoisted_2$P = ["src"];
18148
- const _sfc_main$1f = /* @__PURE__ */ defineComponent({
18186
+ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
18149
18187
  __name: "ProductImage",
18150
18188
  props: {
18151
18189
  item: {},
@@ -18287,7 +18325,7 @@ and ensure you are accounting for this risk.
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$18))
18291
18329
  ]),
18292
18330
  _: 1
18293
18331
  })) : (openBlock(), createElementBlock("img", mergeProps({
@@ -18300,7 +18338,7 @@ and ensure you are accounting for this risk.
18300
18338
  };
18301
18339
  }
18302
18340
  });
18303
- const _sfc_main$1e = /* @__PURE__ */ defineComponent({
18341
+ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
18304
18342
  __name: "SearchBoxProductImage",
18305
18343
  props: {
18306
18344
  item: {},
@@ -18308,7 +18346,7 @@ and ensure you are accounting for this risk.
18308
18346
  },
18309
18347
  setup(__props) {
18310
18348
  return (_ctx, _cache) => {
18311
- return openBlock(), createBlock(_sfc_main$1f, {
18349
+ return openBlock(), createBlock(_sfc_main$1h, {
18312
18350
  item: _ctx.item,
18313
18351
  options: _ctx.options,
18314
18352
  "wrapper-class": "lupa-search-box-image-wrapper",
@@ -18317,12 +18355,12 @@ and ensure you are accounting for this risk.
18317
18355
  };
18318
18356
  }
18319
18357
  });
18320
- const _hoisted_1$16 = ["innerHTML"];
18358
+ const _hoisted_1$17 = ["innerHTML"];
18321
18359
  const _hoisted_2$O = {
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$1f = /* @__PURE__ */ defineComponent({
18326
18364
  __name: "SearchBoxProductTitle",
18327
18365
  props: {
18328
18366
  item: {},
@@ -18345,18 +18383,18 @@ and ensure you are accounting for this risk.
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$17)) : (openBlock(), createElementBlock("div", _hoisted_2$O, [
18349
18387
  createBaseVNode("strong", null, toDisplayString(title.value), 1)
18350
18388
  ]));
18351
18389
  };
18352
18390
  }
18353
18391
  });
18354
- const _hoisted_1$15 = ["innerHTML"];
18392
+ const _hoisted_1$16 = ["innerHTML"];
18355
18393
  const _hoisted_2$N = {
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$1e = /* @__PURE__ */ defineComponent({
18360
18398
  __name: "SearchBoxProductDescription",
18361
18399
  props: {
18362
18400
  item: {},
@@ -18379,12 +18417,12 @@ and ensure you are accounting for this risk.
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$16)) : (openBlock(), createElementBlock("div", _hoisted_2$N, 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$15 = { class: "lupa-search-box-product-price" };
18425
+ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
18388
18426
  __name: "SearchBoxProductPrice",
18389
18427
  props: {
18390
18428
  item: {},
@@ -18402,13 +18440,13 @@ and ensure you are accounting for this risk.
18402
18440
  );
18403
18441
  });
18404
18442
  return (_ctx, _cache) => {
18405
- return openBlock(), createElementBlock("div", _hoisted_1$14, [
18443
+ return openBlock(), createElementBlock("div", _hoisted_1$15, [
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$1c = /* @__PURE__ */ defineComponent({
18412
18450
  __name: "SearchBoxProductRegularPrice",
18413
18451
  props: {
18414
18452
  item: {},
@@ -18435,12 +18473,12 @@ and ensure you are accounting for this risk.
18435
18473
  };
18436
18474
  }
18437
18475
  });
18438
- const _hoisted_1$13 = ["innerHTML"];
18476
+ const _hoisted_1$14 = ["innerHTML"];
18439
18477
  const _hoisted_2$M = { key: 0 };
18440
18478
  const _hoisted_3$z = { key: 1 };
18441
18479
  const _hoisted_4$q = { 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$g = { class: "lupa-search-box-custom-text" };
18481
+ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
18444
18482
  __name: "SearchBoxProductCustom",
18445
18483
  props: {
18446
18484
  item: {},
@@ -18466,20 +18504,20 @@ and ensure you are accounting for this risk.
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$14)) : (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
18511
  !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$M, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$z, [
18474
18512
  createBaseVNode("div", _hoisted_4$q, toDisplayString(label.value), 1),
18475
- createBaseVNode("div", _hoisted_5$i, toDisplayString(text.value), 1)
18513
+ createBaseVNode("div", _hoisted_5$g, 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$13 = ["innerHTML"];
18520
+ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
18483
18521
  __name: "SearchBoxProductCustomHtml",
18484
18522
  props: {
18485
18523
  item: {},
@@ -18504,7 +18542,7 @@ and ensure you are accounting for this risk.
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$13);
18508
18546
  };
18509
18547
  }
18510
18548
  });
@@ -18560,6 +18598,7 @@ and ensure you are accounting for this risk.
18560
18598
  const layout = ref(ResultsLayoutEnum.GRID);
18561
18599
  const loading = ref(false);
18562
18600
  const isMobileSidebarVisible = ref(false);
18601
+ const relatedCategoryChildren = ref([]);
18563
18602
  const optionsStore = useOptionsStore();
18564
18603
  const paramsStore = useParamsStore();
18565
18604
  const screenStore = useScreenStore();
@@ -18701,6 +18740,9 @@ and ensure you are accounting for this risk.
18701
18740
  const hasExactMatch = items.some((item) => getNormalizedString(item.title) === searchInput);
18702
18741
  return hasExactMatch ? items.filter((item) => getNormalizedString(item.title) === searchInput) : items;
18703
18742
  };
18743
+ const setRelatedCategoryChildren = (children) => {
18744
+ relatedCategoryChildren.value = [...children];
18745
+ };
18704
18746
  return {
18705
18747
  isMobileSidebarVisible,
18706
18748
  searchResult,
@@ -18721,6 +18763,7 @@ and ensure you are accounting for this risk.
18721
18763
  itemRange,
18722
18764
  isPageEmpty,
18723
18765
  hideFiltersOnExactMatchForKeys,
18766
+ relatedCategoryChildren,
18724
18767
  setSidebarState,
18725
18768
  queryFacet,
18726
18769
  add: add2,
@@ -18729,13 +18772,14 @@ and ensure you are accounting for this risk.
18729
18772
  setLayout,
18730
18773
  setLoading,
18731
18774
  clearSearchResult,
18732
- filterVisibleFilterValues
18775
+ filterVisibleFilterValues,
18776
+ setRelatedCategoryChildren
18733
18777
  };
18734
18778
  });
18735
- const _hoisted_1$11 = { class: "lupa-search-box-add-to-cart-wrapper" };
18779
+ const _hoisted_1$12 = { class: "lupa-search-box-add-to-cart-wrapper" };
18736
18780
  const _hoisted_2$L = { class: "lupa-search-box-product-addtocart" };
18737
18781
  const _hoisted_3$y = ["onClick", "disabled"];
18738
- const _sfc_main$17 = /* @__PURE__ */ defineComponent({
18782
+ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
18739
18783
  __name: "SearchBoxProductAddToCart",
18740
18784
  props: {
18741
18785
  item: {},
@@ -18768,7 +18812,7 @@ and ensure you are accounting for this risk.
18768
18812
  loading.value = false;
18769
18813
  });
18770
18814
  return (_ctx, _cache) => {
18771
- return openBlock(), createElementBlock("div", _hoisted_1$11, [
18815
+ return openBlock(), createElementBlock("div", _hoisted_1$12, [
18772
18816
  createBaseVNode("div", _hoisted_2$L, [
18773
18817
  createBaseVNode("button", {
18774
18818
  onClick: withModifiers(handleClick, ["stop", "prevent"]),
@@ -18782,23 +18826,23 @@ and ensure you are accounting for this risk.
18782
18826
  };
18783
18827
  }
18784
18828
  });
18785
- const _hoisted_1$10 = {
18829
+ const _hoisted_1$11 = {
18786
18830
  key: 1,
18787
18831
  class: "lupa-search-box-element-badge-wrapper"
18788
18832
  };
18789
18833
  const __default__$4 = {
18790
18834
  components: {
18791
- SearchBoxProductImage: _sfc_main$1e,
18792
- SearchBoxProductTitle: _sfc_main$1d,
18793
- SearchBoxProductDescription: _sfc_main$1c,
18794
- SearchBoxProductPrice: _sfc_main$1b,
18795
- SearchBoxProductRegularPrice: _sfc_main$1a,
18796
- SearchBoxProductCustom: _sfc_main$19,
18797
- SearchBoxProductCustomHtml: _sfc_main$18,
18798
- SearchBoxProductAddToCart: _sfc_main$17
18835
+ SearchBoxProductImage: _sfc_main$1g,
18836
+ SearchBoxProductTitle: _sfc_main$1f,
18837
+ SearchBoxProductDescription: _sfc_main$1e,
18838
+ SearchBoxProductPrice: _sfc_main$1d,
18839
+ SearchBoxProductRegularPrice: _sfc_main$1c,
18840
+ SearchBoxProductCustom: _sfc_main$1b,
18841
+ SearchBoxProductCustomHtml: _sfc_main$1a,
18842
+ SearchBoxProductAddToCart: _sfc_main$19
18799
18843
  }
18800
18844
  };
18801
- const _sfc_main$16 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
18845
+ const _sfc_main$18 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
18802
18846
  __name: "SearchBoxProductElement",
18803
18847
  props: {
18804
18848
  item: {},
@@ -18861,7 +18905,7 @@ and ensure you are accounting for this risk.
18861
18905
  class: normalizeClass({ "lupa-loading-dynamic-data": isLoadingDynamicData((_a = _ctx.item) == null ? void 0 : _a.id) }),
18862
18906
  inStock: _ctx.isInStock
18863
18907
  }, null, 8, ["item", "options", "labels", "class", "inStock"])) : createCommentVNode("", true)
18864
- ], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$10, [
18908
+ ], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$11, [
18865
18909
  displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), {
18866
18910
  key: 0,
18867
18911
  item: enhancedItem.value,
@@ -18875,14 +18919,14 @@ and ensure you are accounting for this risk.
18875
18919
  };
18876
18920
  }
18877
18921
  }));
18878
- const _hoisted_1$$ = { class: "lupa-badge-title" };
18922
+ const _hoisted_1$10 = { class: "lupa-badge-title" };
18879
18923
  const _hoisted_2$K = ["src"];
18880
18924
  const _hoisted_3$x = { key: 1 };
18881
18925
  const _hoisted_4$p = {
18882
18926
  key: 0,
18883
18927
  class: "lupa-badge-full-text"
18884
18928
  };
18885
- const _sfc_main$15 = /* @__PURE__ */ defineComponent({
18929
+ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
18886
18930
  __name: "SearchResultGeneratedBadge",
18887
18931
  props: {
18888
18932
  options: {},
@@ -18915,7 +18959,7 @@ and ensure you are accounting for this risk.
18915
18959
  class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
18916
18960
  style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
18917
18961
  }, [
18918
- createBaseVNode("span", _hoisted_1$$, [
18962
+ createBaseVNode("span", _hoisted_1$10, [
18919
18963
  image.value ? (openBlock(), createElementBlock("img", {
18920
18964
  key: 0,
18921
18965
  src: image.value
@@ -18927,8 +18971,8 @@ and ensure you are accounting for this risk.
18927
18971
  };
18928
18972
  }
18929
18973
  });
18930
- const _hoisted_1$_ = { class: "lupa-generated-badges" };
18931
- const _sfc_main$14 = /* @__PURE__ */ defineComponent({
18974
+ const _hoisted_1$$ = { class: "lupa-generated-badges" };
18975
+ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
18932
18976
  __name: "SearchResultGeneratedBadges",
18933
18977
  props: {
18934
18978
  options: {}
@@ -18954,9 +18998,9 @@ and ensure you are accounting for this risk.
18954
18998
  })).filter((b) => Boolean(b.id));
18955
18999
  });
18956
19000
  return (_ctx, _cache) => {
18957
- return openBlock(), createElementBlock("div", _hoisted_1$_, [
19001
+ return openBlock(), createElementBlock("div", _hoisted_1$$, [
18958
19002
  (openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
18959
- return openBlock(), createBlock(_sfc_main$15, {
19003
+ return openBlock(), createBlock(_sfc_main$17, {
18960
19004
  key: badge.id,
18961
19005
  badge,
18962
19006
  options: _ctx.options
@@ -18966,8 +19010,8 @@ and ensure you are accounting for this risk.
18966
19010
  };
18967
19011
  }
18968
19012
  });
18969
- const _hoisted_1$Z = ["innerHTML"];
18970
- const _sfc_main$13 = /* @__PURE__ */ defineComponent({
19013
+ const _hoisted_1$_ = ["innerHTML"];
19014
+ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
18971
19015
  __name: "CustomBadge",
18972
19016
  props: {
18973
19017
  badge: {}
@@ -18988,12 +19032,12 @@ and ensure you are accounting for this risk.
18988
19032
  return openBlock(), createElementBlock("div", {
18989
19033
  class: normalizeClass(className.value),
18990
19034
  innerHTML: text.value
18991
- }, null, 10, _hoisted_1$Z);
19035
+ }, null, 10, _hoisted_1$_);
18992
19036
  };
18993
19037
  }
18994
19038
  });
18995
- const _hoisted_1$Y = { class: "lupa-text-badges" };
18996
- const _sfc_main$12 = /* @__PURE__ */ defineComponent({
19039
+ const _hoisted_1$Z = { class: "lupa-text-badges" };
19040
+ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
18997
19041
  __name: "TextBadge",
18998
19042
  props: {
18999
19043
  badge: {}
@@ -19008,7 +19052,7 @@ and ensure you are accounting for this risk.
19008
19052
  return badges.value.slice(0, props.badge.maxItems);
19009
19053
  });
19010
19054
  return (_ctx, _cache) => {
19011
- return openBlock(), createElementBlock("div", _hoisted_1$Y, [
19055
+ return openBlock(), createElementBlock("div", _hoisted_1$Z, [
19012
19056
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
19013
19057
  return openBlock(), createElementBlock("div", {
19014
19058
  class: "lupa-badge lupa-text-badge",
@@ -19019,9 +19063,9 @@ and ensure you are accounting for this risk.
19019
19063
  };
19020
19064
  }
19021
19065
  });
19022
- const _hoisted_1$X = { class: "lupa-image-badges" };
19066
+ const _hoisted_1$Y = { class: "lupa-image-badges" };
19023
19067
  const _hoisted_2$J = ["src"];
19024
- const _sfc_main$11 = /* @__PURE__ */ defineComponent({
19068
+ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
19025
19069
  __name: "ImageBadge",
19026
19070
  props: {
19027
19071
  badge: {}
@@ -19041,7 +19085,7 @@ and ensure you are accounting for this risk.
19041
19085
  return `${props.badge.rootImageUrl}${src}`;
19042
19086
  };
19043
19087
  return (_ctx, _cache) => {
19044
- return openBlock(), createElementBlock("div", _hoisted_1$X, [
19088
+ return openBlock(), createElementBlock("div", _hoisted_1$Y, [
19045
19089
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
19046
19090
  return openBlock(), createElementBlock("div", {
19047
19091
  class: "lupa-badge lupa-image-badge",
@@ -19056,15 +19100,15 @@ and ensure you are accounting for this risk.
19056
19100
  };
19057
19101
  }
19058
19102
  });
19059
- const _hoisted_1$W = { id: "lupa-search-results-badges" };
19103
+ const _hoisted_1$X = { id: "lupa-search-results-badges" };
19060
19104
  const __default__$3 = {
19061
19105
  components: {
19062
- CustomBadge: _sfc_main$13,
19063
- TextBadge: _sfc_main$12,
19064
- ImageBadge: _sfc_main$11
19106
+ CustomBadge: _sfc_main$15,
19107
+ TextBadge: _sfc_main$14,
19108
+ ImageBadge: _sfc_main$13
19065
19109
  }
19066
19110
  };
19067
- const _sfc_main$10 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
19111
+ const _sfc_main$12 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
19068
19112
  __name: "SearchResultsBadgeWrapper",
19069
19113
  props: {
19070
19114
  position: {},
@@ -19125,7 +19169,7 @@ and ensure you are accounting for this risk.
19125
19169
  }
19126
19170
  };
19127
19171
  return (_ctx, _cache) => {
19128
- return openBlock(), createElementBlock("div", _hoisted_1$W, [
19172
+ return openBlock(), createElementBlock("div", _hoisted_1$X, [
19129
19173
  createBaseVNode("div", {
19130
19174
  id: "lupa-badges",
19131
19175
  class: normalizeClass(anchorPosition.value)
@@ -19136,7 +19180,7 @@ and ensure you are accounting for this risk.
19136
19180
  badge
19137
19181
  }, null, 8, ["badge"]);
19138
19182
  }), 128)),
19139
- positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$14, {
19183
+ positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$16, {
19140
19184
  key: 0,
19141
19185
  options: _ctx.options
19142
19186
  }, null, 8, ["options"])) : createCommentVNode("", true)
@@ -19145,13 +19189,13 @@ and ensure you are accounting for this risk.
19145
19189
  };
19146
19190
  }
19147
19191
  }));
19148
- const _hoisted_1$V = ["href"];
19192
+ const _hoisted_1$W = ["href"];
19149
19193
  const _hoisted_2$I = { class: "lupa-search-box-product-details-section" };
19150
19194
  const _hoisted_3$w = {
19151
19195
  key: 0,
19152
19196
  class: "lupa-search-box-product-add-to-cart-section"
19153
19197
  };
19154
- const _sfc_main$$ = /* @__PURE__ */ defineComponent({
19198
+ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
19155
19199
  __name: "SearchBoxProduct",
19156
19200
  props: {
19157
19201
  item: {},
@@ -19237,7 +19281,7 @@ and ensure you are accounting for this risk.
19237
19281
  style: normalizeStyle(imageStyleOverride.value)
19238
19282
  }, [
19239
19283
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
19240
- return openBlock(), createBlock(_sfc_main$16, {
19284
+ return openBlock(), createBlock(_sfc_main$18, {
19241
19285
  class: "lupa-search-box-product-element",
19242
19286
  item: _ctx.item,
19243
19287
  element,
@@ -19250,7 +19294,7 @@ and ensure you are accounting for this risk.
19250
19294
  createBaseVNode("div", _hoisted_2$I, [
19251
19295
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
19252
19296
  var _a;
19253
- return openBlock(), createBlock(_sfc_main$16, {
19297
+ return openBlock(), createBlock(_sfc_main$18, {
19254
19298
  key: element.key,
19255
19299
  class: "lupa-search-box-product-element",
19256
19300
  item: _ctx.item,
@@ -19261,7 +19305,7 @@ and ensure you are accounting for this risk.
19261
19305
  badgeOptions.value && ((_a = badgeOptions.value) == null ? void 0 : _a.anchorElementKey) === element.key ? {
19262
19306
  name: "badges",
19263
19307
  fn: withCtx(() => [
19264
- createVNode(_sfc_main$10, {
19308
+ createVNode(_sfc_main$12, {
19265
19309
  options: badgeOptions.value,
19266
19310
  position: "card"
19267
19311
  }, null, 8, ["options"])
@@ -19272,7 +19316,7 @@ and ensure you are accounting for this risk.
19272
19316
  }), 128))
19273
19317
  ]),
19274
19318
  addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$w, [
19275
- createVNode(_sfc_main$16, {
19319
+ createVNode(_sfc_main$18, {
19276
19320
  class: "lupa-search-box-product-element",
19277
19321
  item: _ctx.item,
19278
19322
  element: addToCartElement.value,
@@ -19281,7 +19325,7 @@ and ensure you are accounting for this risk.
19281
19325
  isInStock: isInStock.value
19282
19326
  }, null, 8, ["item", "element", "labels", "link", "isInStock"])
19283
19327
  ])) : createCommentVNode("", true)
19284
- ], 16, _hoisted_1$V);
19328
+ ], 16, _hoisted_1$W);
19285
19329
  };
19286
19330
  }
19287
19331
  });
@@ -19342,8 +19386,8 @@ and ensure you are accounting for this risk.
19342
19386
  };
19343
19387
  return { trackSearch, trackResults, trackEvent };
19344
19388
  });
19345
- const _hoisted_1$U = { id: "lupa-search-box-products" };
19346
- const _sfc_main$_ = /* @__PURE__ */ defineComponent({
19389
+ const _hoisted_1$V = { id: "lupa-search-box-products" };
19390
+ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
19347
19391
  __name: "SearchBoxProducts",
19348
19392
  props: {
19349
19393
  items: {},
@@ -19404,7 +19448,7 @@ and ensure you are accounting for this risk.
19404
19448
  handleRoutingEvent(link, event, boxRoutingBehavior.value === "event");
19405
19449
  };
19406
19450
  return (_ctx, _cache) => {
19407
- return openBlock(), createElementBlock("div", _hoisted_1$U, [
19451
+ return openBlock(), createElementBlock("div", _hoisted_1$V, [
19408
19452
  _ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
19409
19453
  return renderSlot(_ctx.$slots, "productCard", {
19410
19454
  key: index,
@@ -19416,7 +19460,7 @@ and ensure you are accounting for this risk.
19416
19460
  itemClicked: handleProductClick
19417
19461
  });
19418
19462
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
19419
- return openBlock(), createBlock(_sfc_main$$, {
19463
+ return openBlock(), createBlock(_sfc_main$11, {
19420
19464
  key: index,
19421
19465
  item,
19422
19466
  panelOptions: _ctx.panelOptions,
@@ -19431,9 +19475,9 @@ and ensure you are accounting for this risk.
19431
19475
  };
19432
19476
  }
19433
19477
  });
19434
- const _hoisted_1$T = { class: "lupa-search-box-documents-go-to-results-wrapper" };
19478
+ const _hoisted_1$U = { class: "lupa-search-box-documents-go-to-results-wrapper" };
19435
19479
  const _hoisted_2$H = { key: 0 };
19436
- const _sfc_main$Z = /* @__PURE__ */ defineComponent({
19480
+ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
19437
19481
  __name: "SearchBoxProductsGoToResultsButton",
19438
19482
  props: {
19439
19483
  options: {},
@@ -19463,7 +19507,7 @@ and ensure you are accounting for this risk.
19463
19507
  emit2("goToResults");
19464
19508
  };
19465
19509
  return (_ctx, _cache) => {
19466
- return openBlock(), createElementBlock("div", _hoisted_1$T, [
19510
+ return openBlock(), createElementBlock("div", _hoisted_1$U, [
19467
19511
  createBaseVNode("button", {
19468
19512
  class: "lupa-search-box-documents-go-to-results-button",
19469
19513
  onClick: goToResults
@@ -19475,7 +19519,7 @@ and ensure you are accounting for this risk.
19475
19519
  };
19476
19520
  }
19477
19521
  });
19478
- const _sfc_main$Y = /* @__PURE__ */ defineComponent({
19522
+ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
19479
19523
  __name: "SearchBoxProductsWrapper",
19480
19524
  props: {
19481
19525
  panel: {},
@@ -19532,7 +19576,7 @@ and ensure you are accounting for this risk.
19532
19576
  watch(() => props.panel.limit, getItemsDebounced);
19533
19577
  return (_ctx, _cache) => {
19534
19578
  var _a, _b;
19535
- return openBlock(), createBlock(_sfc_main$_, {
19579
+ return openBlock(), createBlock(_sfc_main$10, {
19536
19580
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
19537
19581
  panelOptions: _ctx.panel,
19538
19582
  labels: _ctx.labels,
@@ -19542,7 +19586,7 @@ and ensure you are accounting for this risk.
19542
19586
  default: withCtx(() => {
19543
19587
  var _a2;
19544
19588
  return [
19545
- 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$$, {
19546
19590
  key: 0,
19547
19591
  options: _ctx.searchBoxOptions,
19548
19592
  panel: _ctx.panel,
@@ -19563,7 +19607,7 @@ and ensure you are accounting for this risk.
19563
19607
  };
19564
19608
  }
19565
19609
  });
19566
- const _sfc_main$X = /* @__PURE__ */ defineComponent({
19610
+ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
19567
19611
  __name: "SearchBoxRelatedSourceWrapper",
19568
19612
  props: {
19569
19613
  panel: {},
@@ -19635,7 +19679,7 @@ and ensure you are accounting for this risk.
19635
19679
  });
19636
19680
  return (_ctx, _cache) => {
19637
19681
  var _a, _b;
19638
- return openBlock(), createBlock(_sfc_main$_, {
19682
+ return openBlock(), createBlock(_sfc_main$10, {
19639
19683
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
19640
19684
  panelOptions: documentPanelOptions.value,
19641
19685
  labels: _ctx.labels,
@@ -19653,7 +19697,7 @@ and ensure you are accounting for this risk.
19653
19697
  };
19654
19698
  }
19655
19699
  });
19656
- const _hoisted_1$S = {
19700
+ const _hoisted_1$T = {
19657
19701
  key: 0,
19658
19702
  id: "lupa-search-box-panel"
19659
19703
  };
@@ -19666,18 +19710,18 @@ and ensure you are accounting for this risk.
19666
19710
  key: 1,
19667
19711
  class: "lupa-panel-title"
19668
19712
  };
19669
- const _hoisted_5$h = {
19713
+ const _hoisted_5$f = {
19670
19714
  key: 1,
19671
19715
  id: "lupa-search-box-panel"
19672
19716
  };
19673
19717
  const __default__$2 = {
19674
19718
  components: {
19675
- SearchBoxSuggestionsWrapper: _sfc_main$1g,
19676
- SearchBoxProductsWrapper: _sfc_main$Y,
19677
- SearchBoxRelatedSourceWrapper: _sfc_main$X
19719
+ SearchBoxSuggestionsWrapper: _sfc_main$1i,
19720
+ SearchBoxProductsWrapper: _sfc_main$_,
19721
+ SearchBoxRelatedSourceWrapper: _sfc_main$Z
19678
19722
  }
19679
19723
  };
19680
- const _sfc_main$W = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
19724
+ const _sfc_main$Y = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
19681
19725
  __name: "SearchBoxMainPanel",
19682
19726
  props: {
19683
19727
  options: {},
@@ -19833,7 +19877,7 @@ and ensure you are accounting for this risk.
19833
19877
  ref_key: "panelContainer",
19834
19878
  ref: panelContainer
19835
19879
  }, [
19836
- displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$S, [
19880
+ displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$T, [
19837
19881
  labels.value.closePanel ? (openBlock(), createElementBlock("a", {
19838
19882
  key: 0,
19839
19883
  class: "lupa-search-box-close-panel",
@@ -19881,18 +19925,18 @@ and ensure you are accounting for this risk.
19881
19925
  ], 14, _hoisted_2$G);
19882
19926
  }), 128))
19883
19927
  ], 4),
19884
- !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1j, {
19928
+ !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1l, {
19885
19929
  key: 1,
19886
19930
  labels: labels.value
19887
19931
  }, null, 8, ["labels"])) : createCommentVNode("", true),
19888
- unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1m, {
19932
+ unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1o, {
19889
19933
  key: 2,
19890
19934
  labels: labels.value,
19891
19935
  showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
19892
19936
  onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
19893
19937
  }, null, 8, ["labels", "showTotalCount"])) : createCommentVNode("", true)
19894
- ])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$h, [
19895
- createVNode(_sfc_main$1k, {
19938
+ ])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$f, [
19939
+ createVNode(_sfc_main$1m, {
19896
19940
  options: _ctx.options.history,
19897
19941
  history: history.value,
19898
19942
  onGoToResults: handleGoToResults,
@@ -19917,9 +19961,9 @@ and ensure you are accounting for this risk.
19917
19961
  const elements = getElements(triggers);
19918
19962
  elements.forEach((e2) => e2 == null ? void 0 : e2.removeEventListener(BIND_EVENT, event));
19919
19963
  };
19920
- const _hoisted_1$R = { id: "lupa-search-box" };
19964
+ const _hoisted_1$S = { id: "lupa-search-box" };
19921
19965
  const _hoisted_2$F = { class: "lupa-search-box-wrapper" };
19922
- const _sfc_main$V = /* @__PURE__ */ defineComponent({
19966
+ const _sfc_main$X = /* @__PURE__ */ defineComponent({
19923
19967
  __name: "SearchBox",
19924
19968
  props: {
19925
19969
  options: {},
@@ -20179,9 +20223,9 @@ and ensure you are accounting for this risk.
20179
20223
  };
20180
20224
  return (_ctx, _cache) => {
20181
20225
  var _a2;
20182
- return openBlock(), createElementBlock("div", _hoisted_1$R, [
20226
+ return openBlock(), createElementBlock("div", _hoisted_1$S, [
20183
20227
  createBaseVNode("div", _hoisted_2$F, [
20184
- createVNode(_sfc_main$1n, {
20228
+ createVNode(_sfc_main$1p, {
20185
20229
  options: inputOptions.value,
20186
20230
  suggestedValue: suggestedValue.value,
20187
20231
  "can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
@@ -20194,7 +20238,7 @@ and ensure you are accounting for this risk.
20194
20238
  onSearch: handleSearch,
20195
20239
  onClose: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("close"))
20196
20240
  }, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
20197
- opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$W, {
20241
+ opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$Y, {
20198
20242
  key: 0,
20199
20243
  options: panelOptions.value,
20200
20244
  inputValue: inputValue.value,
@@ -20283,7 +20327,7 @@ and ensure you are accounting for this risk.
20283
20327
  }
20284
20328
  return searchParams;
20285
20329
  };
20286
- const _hoisted_1$Q = {
20330
+ const _hoisted_1$R = {
20287
20331
  key: 0,
20288
20332
  id: "lupa-search-results-did-you-mean"
20289
20333
  };
@@ -20296,7 +20340,7 @@ and ensure you are accounting for this risk.
20296
20340
  "data-cy": "did-you-mean-label"
20297
20341
  };
20298
20342
  const _hoisted_4$n = { key: 1 };
20299
- const _sfc_main$U = /* @__PURE__ */ defineComponent({
20343
+ const _sfc_main$W = /* @__PURE__ */ defineComponent({
20300
20344
  __name: "SearchResultsDidYouMean",
20301
20345
  props: {
20302
20346
  labels: {}
@@ -20328,7 +20372,7 @@ and ensure you are accounting for this risk.
20328
20372
  paramStore.goToResults({ searchText, facet });
20329
20373
  };
20330
20374
  return (_ctx, _cache) => {
20331
- return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$Q, [
20375
+ return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$R, [
20332
20376
  unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$E, [
20333
20377
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
20334
20378
  return openBlock(), createElementBlock("span", { key: index }, [
@@ -20354,12 +20398,12 @@ and ensure you are accounting for this risk.
20354
20398
  };
20355
20399
  }
20356
20400
  });
20357
- const _hoisted_1$P = {
20401
+ const _hoisted_1$Q = {
20358
20402
  key: 0,
20359
20403
  class: "lupa-search-results-summary"
20360
20404
  };
20361
20405
  const _hoisted_2$D = ["innerHTML"];
20362
- const _sfc_main$T = /* @__PURE__ */ defineComponent({
20406
+ const _sfc_main$V = /* @__PURE__ */ defineComponent({
20363
20407
  __name: "SearchResultsSummary",
20364
20408
  props: {
20365
20409
  label: {},
@@ -20374,7 +20418,7 @@ and ensure you are accounting for this risk.
20374
20418
  return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
20375
20419
  });
20376
20420
  return (_ctx, _cache) => {
20377
- return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$P, [
20421
+ return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$Q, [
20378
20422
  createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$D),
20379
20423
  _ctx.clearable ? (openBlock(), createElementBlock("span", {
20380
20424
  key: 0,
@@ -20386,7 +20430,7 @@ and ensure you are accounting for this risk.
20386
20430
  };
20387
20431
  }
20388
20432
  });
20389
- const _hoisted_1$O = {
20433
+ const _hoisted_1$P = {
20390
20434
  key: 0,
20391
20435
  class: "lupa-result-page-title",
20392
20436
  "data-cy": "lupa-result-page-title"
@@ -20397,8 +20441,8 @@ and ensure you are accounting for this risk.
20397
20441
  class: "lupa-results-total-count"
20398
20442
  };
20399
20443
  const _hoisted_4$m = { class: "lupa-results-total-count-number" };
20400
- const _hoisted_5$g = ["innerHTML"];
20401
- const _sfc_main$S = /* @__PURE__ */ defineComponent({
20444
+ const _hoisted_5$e = ["innerHTML"];
20445
+ const _sfc_main$U = /* @__PURE__ */ defineComponent({
20402
20446
  __name: "SearchResultsTitle",
20403
20447
  props: {
20404
20448
  options: {},
@@ -20437,7 +20481,7 @@ and ensure you are accounting for this risk.
20437
20481
  });
20438
20482
  return (_ctx, _cache) => {
20439
20483
  return openBlock(), createElementBlock("div", null, [
20440
- showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$O, [
20484
+ showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$P, [
20441
20485
  createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
20442
20486
  queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$C, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
20443
20487
  showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$t, [
@@ -20446,7 +20490,7 @@ and ensure you are accounting for this risk.
20446
20490
  createTextVNode(")")
20447
20491
  ])) : createCommentVNode("", true)
20448
20492
  ])) : createCommentVNode("", true),
20449
- _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$T, {
20493
+ _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$V, {
20450
20494
  key: 1,
20451
20495
  label: summaryLabel.value
20452
20496
  }, null, 8, ["label"])) : createCommentVNode("", true),
@@ -20454,12 +20498,12 @@ and ensure you are accounting for this risk.
20454
20498
  key: 2,
20455
20499
  class: "lupa-result-page-description-top",
20456
20500
  innerHTML: descriptionTop.value
20457
- }, null, 8, _hoisted_5$g)) : createCommentVNode("", true)
20501
+ }, null, 8, _hoisted_5$e)) : createCommentVNode("", true)
20458
20502
  ]);
20459
20503
  };
20460
20504
  }
20461
20505
  });
20462
- const _hoisted_1$N = { class: "lupa-search-result-filter-value" };
20506
+ const _hoisted_1$O = { class: "lupa-search-result-filter-value" };
20463
20507
  const _hoisted_2$B = {
20464
20508
  class: "lupa-current-filter-label",
20465
20509
  "data-cy": "lupa-current-filter-label"
@@ -20468,7 +20512,7 @@ and ensure you are accounting for this risk.
20468
20512
  class: "lupa-current-filter-value",
20469
20513
  "data-cy": "lupa-current-filter-value"
20470
20514
  };
20471
- const _sfc_main$R = /* @__PURE__ */ defineComponent({
20515
+ const _sfc_main$T = /* @__PURE__ */ defineComponent({
20472
20516
  __name: "CurrentFilterDisplay",
20473
20517
  props: {
20474
20518
  filter: {}
@@ -20480,7 +20524,7 @@ and ensure you are accounting for this risk.
20480
20524
  emit2("remove", { filter: props.filter });
20481
20525
  };
20482
20526
  return (_ctx, _cache) => {
20483
- return openBlock(), createElementBlock("div", _hoisted_1$N, [
20527
+ return openBlock(), createElementBlock("div", _hoisted_1$O, [
20484
20528
  createBaseVNode("div", {
20485
20529
  class: "lupa-current-filter-action",
20486
20530
  onClick: handleClick
@@ -20491,7 +20535,7 @@ and ensure you are accounting for this risk.
20491
20535
  };
20492
20536
  }
20493
20537
  });
20494
- const _hoisted_1$M = { class: "lupa-filter-title-text" };
20538
+ const _hoisted_1$N = { class: "lupa-filter-title-text" };
20495
20539
  const _hoisted_2$A = {
20496
20540
  key: 0,
20497
20541
  class: "lupa-filter-count"
@@ -20501,7 +20545,7 @@ and ensure you are accounting for this risk.
20501
20545
  class: "filter-values"
20502
20546
  };
20503
20547
  const _hoisted_4$l = { class: "lupa-current-filter-list" };
20504
- const _sfc_main$Q = /* @__PURE__ */ defineComponent({
20548
+ const _sfc_main$S = /* @__PURE__ */ defineComponent({
20505
20549
  __name: "CurrentFilters",
20506
20550
  props: {
20507
20551
  options: {},
@@ -20574,7 +20618,7 @@ and ensure you are accounting for this risk.
20574
20618
  class: "lupa-current-filter-title",
20575
20619
  onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
20576
20620
  }, [
20577
- createBaseVNode("div", _hoisted_1$M, [
20621
+ createBaseVNode("div", _hoisted_1$N, [
20578
20622
  createTextVNode(toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
20579
20623
  _ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$A, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
20580
20624
  ]),
@@ -20586,7 +20630,7 @@ and ensure you are accounting for this risk.
20586
20630
  !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$r, [
20587
20631
  createBaseVNode("div", _hoisted_4$l, [
20588
20632
  (openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter2) => {
20589
- return openBlock(), createBlock(_sfc_main$R, {
20633
+ return openBlock(), createBlock(_sfc_main$T, {
20590
20634
  key: filter2.key + "_" + filter2.value,
20591
20635
  filter: filter2,
20592
20636
  onRemove: handleRemove
@@ -20603,8 +20647,8 @@ and ensure you are accounting for this risk.
20603
20647
  };
20604
20648
  }
20605
20649
  });
20606
- const _hoisted_1$L = ["href"];
20607
- const _sfc_main$P = /* @__PURE__ */ defineComponent({
20650
+ const _hoisted_1$M = ["href"];
20651
+ const _sfc_main$R = /* @__PURE__ */ defineComponent({
20608
20652
  __name: "CategoryFilterItem",
20609
20653
  props: {
20610
20654
  options: {},
@@ -20641,20 +20685,20 @@ and ensure you are accounting for this risk.
20641
20685
  "data-cy": "lupa-child-category-item",
20642
20686
  href: urlLink.value,
20643
20687
  onClick: handleNavigation
20644
- }, toDisplayString(title.value), 9, _hoisted_1$L)
20688
+ }, toDisplayString(title.value), 9, _hoisted_1$M)
20645
20689
  ], 2);
20646
20690
  };
20647
20691
  }
20648
20692
  });
20649
- const _hoisted_1$K = {
20693
+ const _hoisted_1$L = {
20650
20694
  class: "lupa-category-filter",
20651
20695
  "data-cy": "lupa-category-filter"
20652
20696
  };
20653
20697
  const _hoisted_2$z = { class: "lupa-category-back" };
20654
20698
  const _hoisted_3$q = ["href"];
20655
20699
  const _hoisted_4$k = ["href"];
20656
- const _hoisted_5$f = { class: "lupa-child-category-list" };
20657
- const _sfc_main$O = /* @__PURE__ */ defineComponent({
20700
+ const _hoisted_5$d = { class: "lupa-child-category-list" };
20701
+ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
20658
20702
  __name: "CategoryFilter",
20659
20703
  props: {
20660
20704
  options: {}
@@ -20663,6 +20707,7 @@ and ensure you are accounting for this risk.
20663
20707
  const props = __props;
20664
20708
  const categoryChildren = ref([]);
20665
20709
  const optionStore = useOptionsStore();
20710
+ const searchResultsStore = useSearchResultStore();
20666
20711
  const { envOptions, searchResultOptions } = storeToRefs(optionStore);
20667
20712
  const hasBackButton = computed(() => {
20668
20713
  var _a;
@@ -20699,6 +20744,7 @@ and ensure you are accounting for this risk.
20699
20744
  return;
20700
20745
  }
20701
20746
  categoryChildren.value = result2.items;
20747
+ searchResultsStore.setRelatedCategoryChildren(categoryChildren.value);
20702
20748
  (_c = (_b = searchResultOptions.value.callbacks) == null ? void 0 : _b.onCategoryFilterResults) == null ? void 0 : _c.call(_b, {
20703
20749
  queryKey: props.options.queryKey,
20704
20750
  hasResults: result2.total > 0
@@ -20740,7 +20786,7 @@ and ensure you are accounting for this risk.
20740
20786
  };
20741
20787
  __expose({ fetch: fetch2 });
20742
20788
  return (_ctx, _cache) => {
20743
- return openBlock(), createElementBlock("div", _hoisted_1$K, [
20789
+ return openBlock(), createElementBlock("div", _hoisted_1$L, [
20744
20790
  createBaseVNode("div", _hoisted_2$z, [
20745
20791
  hasBackButton.value ? (openBlock(), createElementBlock("a", {
20746
20792
  key: 0,
@@ -20759,9 +20805,9 @@ and ensure you are accounting for this risk.
20759
20805
  onClick: handleNavigationParent
20760
20806
  }, toDisplayString(parentTitle.value), 11, _hoisted_4$k)
20761
20807
  ], 2),
20762
- createBaseVNode("div", _hoisted_5$f, [
20808
+ createBaseVNode("div", _hoisted_5$d, [
20763
20809
  (openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
20764
- return openBlock(), createBlock(_sfc_main$P, {
20810
+ return openBlock(), createBlock(_sfc_main$R, {
20765
20811
  key: getCategoryKey(child),
20766
20812
  item: child,
20767
20813
  options: _ctx.options
@@ -20772,15 +20818,15 @@ and ensure you are accounting for this risk.
20772
20818
  };
20773
20819
  }
20774
20820
  });
20775
- const _hoisted_1$J = {
20821
+ const _hoisted_1$K = {
20776
20822
  class: "lupa-search-result-facet-term-values",
20777
20823
  "data-cy": "lupa-search-result-facet-term-values"
20778
20824
  };
20779
20825
  const _hoisted_2$y = ["placeholder"];
20780
20826
  const _hoisted_3$p = { class: "lupa-terms-list" };
20781
20827
  const _hoisted_4$j = ["onClick"];
20782
- const _hoisted_5$e = { class: "lupa-term-checkbox-wrapper" };
20783
- const _hoisted_6$9 = { class: "lupa-term-checkbox-label" };
20828
+ const _hoisted_5$c = { class: "lupa-term-checkbox-wrapper" };
20829
+ const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
20784
20830
  const _hoisted_7$6 = { class: "lupa-term-label" };
20785
20831
  const _hoisted_8$2 = {
20786
20832
  key: 0,
@@ -20788,7 +20834,7 @@ and ensure you are accounting for this risk.
20788
20834
  };
20789
20835
  const _hoisted_9$2 = { key: 0 };
20790
20836
  const _hoisted_10$1 = { key: 1 };
20791
- const _sfc_main$N = /* @__PURE__ */ defineComponent({
20837
+ const _sfc_main$P = /* @__PURE__ */ defineComponent({
20792
20838
  __name: "TermFacet",
20793
20839
  props: {
20794
20840
  options: {},
@@ -20859,7 +20905,7 @@ and ensure you are accounting for this risk.
20859
20905
  return selectedItems == null ? void 0 : selectedItems.includes((_b = item.title) == null ? void 0 : _b.toString());
20860
20906
  };
20861
20907
  return (_ctx, _cache) => {
20862
- return openBlock(), createElementBlock("div", _hoisted_1$J, [
20908
+ return openBlock(), createElementBlock("div", _hoisted_1$K, [
20863
20909
  isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
20864
20910
  key: 0,
20865
20911
  class: "lupa-term-filter",
@@ -20877,12 +20923,12 @@ and ensure you are accounting for this risk.
20877
20923
  key: item.title,
20878
20924
  onClick: ($event) => handleFacetClick(item)
20879
20925
  }, [
20880
- createBaseVNode("div", _hoisted_5$e, [
20926
+ createBaseVNode("div", _hoisted_5$c, [
20881
20927
  createBaseVNode("span", {
20882
20928
  class: normalizeClass(["lupa-term-checkbox", { checked: isChecked(item) }])
20883
20929
  }, null, 2)
20884
20930
  ]),
20885
- createBaseVNode("div", _hoisted_6$9, [
20931
+ createBaseVNode("div", _hoisted_6$8, [
20886
20932
  createBaseVNode("span", _hoisted_7$6, toDisplayString(item.title), 1),
20887
20933
  _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$2, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
20888
20934
  ])
@@ -21877,7 +21923,7 @@ and ensure you are accounting for this risk.
21877
21923
  m.render = function(e2, t, r, i, n, o) {
21878
21924
  return openBlock(), createElementBlock("div", mergeProps(e2.sliderProps, { ref: "slider" }), null, 16);
21879
21925
  }, m.__file = "src/Slider.vue";
21880
- const _hoisted_1$I = { class: "lupa-search-result-facet-stats-values" };
21926
+ const _hoisted_1$J = { class: "lupa-search-result-facet-stats-values" };
21881
21927
  const _hoisted_2$x = {
21882
21928
  key: 0,
21883
21929
  class: "lupa-stats-facet-summary"
@@ -21890,8 +21936,8 @@ and ensure you are accounting for this risk.
21890
21936
  key: 0,
21891
21937
  class: "lupa-stats-range-label"
21892
21938
  };
21893
- const _hoisted_5$d = { class: "lupa-stats-from" };
21894
- const _hoisted_6$8 = ["max", "min", "pattern", "aria-label"];
21939
+ const _hoisted_5$b = { class: "lupa-stats-from" };
21940
+ const _hoisted_6$7 = ["max", "min", "pattern", "aria-label"];
21895
21941
  const _hoisted_7$5 = { key: 0 };
21896
21942
  const _hoisted_8$1 = /* @__PURE__ */ createBaseVNode("div", { class: "lupa-stats-separator" }, null, -1);
21897
21943
  const _hoisted_9$1 = {
@@ -21905,7 +21951,7 @@ and ensure you are accounting for this risk.
21905
21951
  key: 2,
21906
21952
  class: "lupa-stats-slider-wrapper"
21907
21953
  };
21908
- const _sfc_main$M = /* @__PURE__ */ defineComponent({
21954
+ const _sfc_main$O = /* @__PURE__ */ defineComponent({
21909
21955
  __name: "StatsFacet",
21910
21956
  props: {
21911
21957
  options: {},
@@ -22078,11 +22124,11 @@ and ensure you are accounting for this risk.
22078
22124
  innerSliderRange.value = value;
22079
22125
  };
22080
22126
  return (_ctx, _cache) => {
22081
- return openBlock(), createElementBlock("div", _hoisted_1$I, [
22127
+ return openBlock(), createElementBlock("div", _hoisted_1$J, [
22082
22128
  !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$x, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$o, [
22083
22129
  createBaseVNode("div", null, [
22084
22130
  rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$i, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
22085
- createBaseVNode("div", _hoisted_5$d, [
22131
+ createBaseVNode("div", _hoisted_5$b, [
22086
22132
  withDirectives(createBaseVNode("input", {
22087
22133
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
22088
22134
  type: "text",
@@ -22091,7 +22137,7 @@ and ensure you are accounting for this risk.
22091
22137
  min: facetMin.value,
22092
22138
  pattern: sliderInputFormat.value,
22093
22139
  "aria-label": ariaLabelFrom.value
22094
- }, null, 8, _hoisted_6$8), [
22140
+ }, null, 8, _hoisted_6$7), [
22095
22141
  [
22096
22142
  vModelText,
22097
22143
  fromValue.value,
@@ -22145,18 +22191,18 @@ and ensure you are accounting for this risk.
22145
22191
  };
22146
22192
  }
22147
22193
  });
22148
- const _hoisted_1$H = { class: "lupa-term-checkbox-wrapper" };
22194
+ const _hoisted_1$I = { class: "lupa-term-checkbox-wrapper" };
22149
22195
  const _hoisted_2$w = { class: "lupa-term-checkbox-label" };
22150
22196
  const _hoisted_3$n = { class: "lupa-term-label" };
22151
22197
  const _hoisted_4$h = {
22152
22198
  key: 0,
22153
22199
  class: "lupa-term-count"
22154
22200
  };
22155
- const _hoisted_5$c = {
22201
+ const _hoisted_5$a = {
22156
22202
  key: 0,
22157
22203
  class: "lupa-facet-level"
22158
22204
  };
22159
- const _sfc_main$L = /* @__PURE__ */ defineComponent({
22205
+ const _sfc_main$N = /* @__PURE__ */ defineComponent({
22160
22206
  __name: "HierarchyFacetLevel",
22161
22207
  props: {
22162
22208
  options: {},
@@ -22202,7 +22248,7 @@ and ensure you are accounting for this risk.
22202
22248
  "data-cy": "lupa-facet-term",
22203
22249
  onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
22204
22250
  }, [
22205
- createBaseVNode("div", _hoisted_1$H, [
22251
+ createBaseVNode("div", _hoisted_1$I, [
22206
22252
  createBaseVNode("span", {
22207
22253
  class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
22208
22254
  }, null, 2)
@@ -22212,7 +22258,7 @@ and ensure you are accounting for this risk.
22212
22258
  _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$h, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
22213
22259
  ])
22214
22260
  ]),
22215
- showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$c, [
22261
+ showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$a, [
22216
22262
  (openBlock(true), createElementBlock(Fragment, null, renderList(treeItem.value.children, (itemChild) => {
22217
22263
  return openBlock(), createBlock(_component_HierarchyFacetLevel, {
22218
22264
  key: itemChild.title,
@@ -22228,13 +22274,13 @@ and ensure you are accounting for this risk.
22228
22274
  };
22229
22275
  }
22230
22276
  });
22231
- const _hoisted_1$G = {
22277
+ const _hoisted_1$H = {
22232
22278
  class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
22233
22279
  "data-cy": "lupa-search-result-facet-term-values"
22234
22280
  };
22235
22281
  const _hoisted_2$v = { key: 0 };
22236
22282
  const _hoisted_3$m = ["placeholder"];
22237
- const _sfc_main$K = /* @__PURE__ */ defineComponent({
22283
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
22238
22284
  __name: "HierarchyFacet",
22239
22285
  props: {
22240
22286
  options: {},
@@ -22284,7 +22330,7 @@ and ensure you are accounting for this risk.
22284
22330
  showAll.value = true;
22285
22331
  };
22286
22332
  return (_ctx, _cache) => {
22287
- return openBlock(), createElementBlock("div", _hoisted_1$G, [
22333
+ return openBlock(), createElementBlock("div", _hoisted_1$H, [
22288
22334
  isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$v, [
22289
22335
  withDirectives(createBaseVNode("input", {
22290
22336
  class: "lupa-term-filter",
@@ -22296,7 +22342,7 @@ and ensure you are accounting for this risk.
22296
22342
  ])
22297
22343
  ])) : createCommentVNode("", true),
22298
22344
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
22299
- return openBlock(), createBlock(_sfc_main$L, {
22345
+ return openBlock(), createBlock(_sfc_main$N, {
22300
22346
  key: item.title,
22301
22347
  options: _ctx.options,
22302
22348
  item,
@@ -22316,7 +22362,7 @@ and ensure you are accounting for this risk.
22316
22362
  };
22317
22363
  }
22318
22364
  });
22319
- const _hoisted_1$F = { class: "lupa-facet-label-text" };
22365
+ const _hoisted_1$G = { class: "lupa-facet-label-text" };
22320
22366
  const _hoisted_2$u = {
22321
22367
  key: 0,
22322
22368
  class: "lupa-facet-content",
@@ -22324,12 +22370,12 @@ and ensure you are accounting for this risk.
22324
22370
  };
22325
22371
  const __default__$1 = {
22326
22372
  components: {
22327
- TermFacet: _sfc_main$N,
22328
- StatsFacet: _sfc_main$M,
22329
- HierarchyFacet: _sfc_main$K
22373
+ TermFacet: _sfc_main$P,
22374
+ StatsFacet: _sfc_main$O,
22375
+ HierarchyFacet: _sfc_main$M
22330
22376
  }
22331
22377
  };
22332
- const _sfc_main$J = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
22378
+ const _sfc_main$L = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
22333
22379
  __name: "FacetDisplay",
22334
22380
  props: {
22335
22381
  options: {},
@@ -22441,7 +22487,7 @@ and ensure you are accounting for this risk.
22441
22487
  "data-cy": "lupa-search-result-facet-label",
22442
22488
  onClick: toggleFacet
22443
22489
  }, [
22444
- createBaseVNode("div", _hoisted_1$F, toDisplayString(facet.value.label), 1),
22490
+ createBaseVNode("div", _hoisted_1$G, toDisplayString(facet.value.label), 1),
22445
22491
  createBaseVNode("div", {
22446
22492
  class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
22447
22493
  }, null, 2)
@@ -22464,12 +22510,12 @@ and ensure you are accounting for this risk.
22464
22510
  };
22465
22511
  }
22466
22512
  }));
22467
- const _hoisted_1$E = { class: "lupa-search-result-facet-section" };
22513
+ const _hoisted_1$F = { class: "lupa-search-result-facet-section" };
22468
22514
  const _hoisted_2$t = {
22469
22515
  key: 0,
22470
22516
  class: "lupa-facets-title"
22471
22517
  };
22472
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
22518
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
22473
22519
  __name: "FacetList",
22474
22520
  props: {
22475
22521
  options: {},
@@ -22503,14 +22549,14 @@ and ensure you are accounting for this risk.
22503
22549
  };
22504
22550
  return (_ctx, _cache) => {
22505
22551
  var _a;
22506
- return openBlock(), createElementBlock("div", _hoisted_1$E, [
22552
+ return openBlock(), createElementBlock("div", _hoisted_1$F, [
22507
22553
  _ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$t, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
22508
22554
  createBaseVNode("div", {
22509
22555
  class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
22510
22556
  }, [
22511
22557
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
22512
22558
  var _a2;
22513
- return openBlock(), createBlock(_sfc_main$J, {
22559
+ return openBlock(), createBlock(_sfc_main$L, {
22514
22560
  key: facet.key,
22515
22561
  facet,
22516
22562
  currentFilters: currentFiltersValue.value,
@@ -22525,8 +22571,8 @@ and ensure you are accounting for this risk.
22525
22571
  };
22526
22572
  }
22527
22573
  });
22528
- const _hoisted_1$D = ["onClick"];
22529
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
22574
+ const _hoisted_1$E = ["onClick"];
22575
+ const _sfc_main$J = /* @__PURE__ */ defineComponent({
22530
22576
  __name: "FacetsButton",
22531
22577
  props: {
22532
22578
  options: {}
@@ -22546,13 +22592,13 @@ and ensure you are accounting for this risk.
22546
22592
  key: 0,
22547
22593
  class: "lupa-facets-button-filter",
22548
22594
  onClick: withModifiers(handleClick, ["stop"])
22549
- }, toDisplayString(label.value), 9, _hoisted_1$D)) : createCommentVNode("", true);
22595
+ }, toDisplayString(label.value), 9, _hoisted_1$E)) : createCommentVNode("", true);
22550
22596
  };
22551
22597
  }
22552
22598
  });
22553
- const _hoisted_1$C = { class: "lupa-search-result-facets" };
22599
+ const _hoisted_1$D = { class: "lupa-search-result-facets" };
22554
22600
  const _hoisted_2$s = { class: "lupa-facets-filter-button-wrapper" };
22555
- const _sfc_main$G = /* @__PURE__ */ defineComponent({
22601
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
22556
22602
  __name: "Facets",
22557
22603
  props: {
22558
22604
  options: {},
@@ -22635,8 +22681,8 @@ and ensure you are accounting for this risk.
22635
22681
  emit2("filter");
22636
22682
  };
22637
22683
  return (_ctx, _cache) => {
22638
- return openBlock(), createElementBlock("div", _hoisted_1$C, [
22639
- regularFacets.value ? (openBlock(), createBlock(_sfc_main$I, {
22684
+ return openBlock(), createElementBlock("div", _hoisted_1$D, [
22685
+ regularFacets.value ? (openBlock(), createBlock(_sfc_main$K, {
22640
22686
  key: 0,
22641
22687
  options: _ctx.options,
22642
22688
  facets: regularFacets.value,
@@ -22647,7 +22693,7 @@ and ensure you are accounting for this risk.
22647
22693
  onClear: clear2
22648
22694
  }, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : createCommentVNode("", true),
22649
22695
  createBaseVNode("div", _hoisted_2$s, [
22650
- showFilterButton.value ? (openBlock(), createBlock(_sfc_main$H, {
22696
+ showFilterButton.value ? (openBlock(), createBlock(_sfc_main$J, {
22651
22697
  key: 0,
22652
22698
  options: _ctx.options,
22653
22699
  onFilter: filter2
@@ -22657,11 +22703,11 @@ and ensure you are accounting for this risk.
22657
22703
  };
22658
22704
  }
22659
22705
  });
22660
- const _hoisted_1$B = {
22706
+ const _hoisted_1$C = {
22661
22707
  id: "lupa-search-result-filters",
22662
22708
  class: "lupa-search-result-filters"
22663
22709
  };
22664
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
22710
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
22665
22711
  __name: "SearchResultsFilters",
22666
22712
  props: {
22667
22713
  options: {},
@@ -22694,19 +22740,19 @@ and ensure you are accounting for this risk.
22694
22740
  __expose({ fetch: fetch2 });
22695
22741
  return (_ctx, _cache) => {
22696
22742
  var _a;
22697
- return openBlock(), createElementBlock("div", _hoisted_1$B, [
22698
- showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$Q, {
22743
+ return openBlock(), createElementBlock("div", _hoisted_1$C, [
22744
+ showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$S, {
22699
22745
  key: 0,
22700
22746
  options: _ctx.options.currentFilters,
22701
22747
  expandable: (_a = _ctx.expandable) != null ? _a : false
22702
22748
  }, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
22703
- _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$O, {
22749
+ _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$Q, {
22704
22750
  key: 1,
22705
22751
  options: _ctx.options.categories,
22706
22752
  ref_key: "categoryFilters",
22707
22753
  ref: categoryFilters
22708
22754
  }, null, 8, ["options"])) : createCommentVNode("", true),
22709
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$G, {
22755
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$I, {
22710
22756
  key: 2,
22711
22757
  options: _ctx.options.facets,
22712
22758
  onFilter: filter2
@@ -22715,20 +22761,20 @@ and ensure you are accounting for this risk.
22715
22761
  };
22716
22762
  }
22717
22763
  });
22718
- const _hoisted_1$A = {
22764
+ const _hoisted_1$B = {
22719
22765
  key: 0,
22720
22766
  class: "lupa-mobile-filter-sidebar"
22721
22767
  };
22722
22768
  const _hoisted_2$r = ["onClick"];
22723
22769
  const _hoisted_3$l = { class: "lupa-mobile-sidebar-content" };
22724
22770
  const _hoisted_4$g = { class: "lupa-sidebar-top" };
22725
- const _hoisted_5$b = { class: "lupa-sidebar-title" };
22726
- const _hoisted_6$7 = {
22771
+ const _hoisted_5$9 = { class: "lupa-sidebar-title" };
22772
+ const _hoisted_6$6 = {
22727
22773
  key: 0,
22728
22774
  class: "lupa-sidebar-filter-count"
22729
22775
  };
22730
22776
  const _hoisted_7$4 = { class: "lupa-sidebar-filter-options" };
22731
- const _sfc_main$E = /* @__PURE__ */ defineComponent({
22777
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
22732
22778
  __name: "MobileFilterSidebar",
22733
22779
  props: {
22734
22780
  options: {}
@@ -22759,16 +22805,16 @@ and ensure you are accounting for this risk.
22759
22805
  handleMobileToggle();
22760
22806
  };
22761
22807
  return (_ctx, _cache) => {
22762
- return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$A, [
22808
+ return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$B, [
22763
22809
  createBaseVNode("div", {
22764
22810
  class: "lupa-sidebar-close",
22765
22811
  onClick: withModifiers(handleMobileToggle, ["stop"])
22766
22812
  }, null, 8, _hoisted_2$r),
22767
22813
  createBaseVNode("div", _hoisted_3$l, [
22768
22814
  createBaseVNode("div", _hoisted_4$g, [
22769
- createBaseVNode("div", _hoisted_5$b, [
22815
+ createBaseVNode("div", _hoisted_5$9, [
22770
22816
  createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
22771
- 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)
22772
22818
  ]),
22773
22819
  createBaseVNode("div", {
22774
22820
  class: "lupa-filter-toggle-mobile",
@@ -22776,7 +22822,7 @@ and ensure you are accounting for this risk.
22776
22822
  })
22777
22823
  ]),
22778
22824
  createBaseVNode("div", _hoisted_7$4, [
22779
- createVNode(_sfc_main$F, {
22825
+ createVNode(_sfc_main$H, {
22780
22826
  options: _ctx.options,
22781
22827
  expandable: isActiveFiltersExpanded.value,
22782
22828
  onFilter: filter2
@@ -22787,14 +22833,14 @@ and ensure you are accounting for this risk.
22787
22833
  };
22788
22834
  }
22789
22835
  });
22790
- const _hoisted_1$z = { id: "lupa-search-results-breadcrumbs" };
22836
+ const _hoisted_1$A = { id: "lupa-search-results-breadcrumbs" };
22791
22837
  const _hoisted_2$q = ["href", "onClick"];
22792
22838
  const _hoisted_3$k = {
22793
22839
  key: 1,
22794
22840
  class: "lupa-search-results-breadcrumb-text"
22795
22841
  };
22796
22842
  const _hoisted_4$f = { key: 2 };
22797
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
22843
+ const _sfc_main$F = /* @__PURE__ */ defineComponent({
22798
22844
  __name: "SearchResultsBreadcrumbs",
22799
22845
  props: {
22800
22846
  breadcrumbs: {}
@@ -22819,7 +22865,7 @@ and ensure you are accounting for this risk.
22819
22865
  handleRoutingEvent(link, event, hasEventRouting.value);
22820
22866
  };
22821
22867
  return (_ctx, _cache) => {
22822
- return openBlock(), createElementBlock("div", _hoisted_1$z, [
22868
+ return openBlock(), createElementBlock("div", _hoisted_1$A, [
22823
22869
  (openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
22824
22870
  return openBlock(), createElementBlock("span", {
22825
22871
  class: "lupa-search-results-breadcrumb",
@@ -22841,11 +22887,11 @@ and ensure you are accounting for this risk.
22841
22887
  };
22842
22888
  }
22843
22889
  });
22844
- const _hoisted_1$y = {
22890
+ const _hoisted_1$z = {
22845
22891
  id: "lupa-search-result-filters",
22846
22892
  class: "lupa-search-result-filters lupa-search-result-top-filters"
22847
22893
  };
22848
- const _sfc_main$C = /* @__PURE__ */ defineComponent({
22894
+ const _sfc_main$E = /* @__PURE__ */ defineComponent({
22849
22895
  __name: "FiltersTopDropdown",
22850
22896
  props: {
22851
22897
  options: {}
@@ -22857,8 +22903,8 @@ and ensure you are accounting for this risk.
22857
22903
  };
22858
22904
  return (_ctx, _cache) => {
22859
22905
  var _a;
22860
- return openBlock(), createElementBlock("div", _hoisted_1$y, [
22861
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$G, {
22906
+ return openBlock(), createElementBlock("div", _hoisted_1$z, [
22907
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$I, {
22862
22908
  key: 0,
22863
22909
  options: _ctx.options.facets,
22864
22910
  "facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
@@ -22869,8 +22915,8 @@ and ensure you are accounting for this risk.
22869
22915
  };
22870
22916
  }
22871
22917
  });
22872
- const _hoisted_1$x = { id: "lupa-search-results-layout-selection" };
22873
- const _sfc_main$B = /* @__PURE__ */ defineComponent({
22918
+ const _hoisted_1$y = { id: "lupa-search-results-layout-selection" };
22919
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
22874
22920
  __name: "SearchResultsLayoutSelection",
22875
22921
  setup(__props) {
22876
22922
  const searchResultStore = useSearchResultStore();
@@ -22881,7 +22927,7 @@ and ensure you are accounting for this risk.
22881
22927
  searchResultStore.setLayout(layout2);
22882
22928
  };
22883
22929
  return (_ctx, _cache) => {
22884
- return openBlock(), createElementBlock("div", _hoisted_1$x, [
22930
+ return openBlock(), createElementBlock("div", _hoisted_1$y, [
22885
22931
  createBaseVNode("div", {
22886
22932
  class: normalizeClass([
22887
22933
  "lupa-layout-selection-grid",
@@ -22903,11 +22949,11 @@ and ensure you are accounting for this risk.
22903
22949
  };
22904
22950
  }
22905
22951
  });
22906
- const _hoisted_1$w = {
22952
+ const _hoisted_1$x = {
22907
22953
  key: 0,
22908
22954
  class: "lupa-mobile-toggle-filter-count"
22909
22955
  };
22910
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
22956
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
22911
22957
  __name: "SearchResultsMobileToggle",
22912
22958
  props: {
22913
22959
  label: {},
@@ -22925,12 +22971,12 @@ and ensure you are accounting for this risk.
22925
22971
  onClick: handleMobileToggle
22926
22972
  }, [
22927
22973
  createTextVNode(toDisplayString(_ctx.label) + " ", 1),
22928
- _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$x, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
22929
22975
  ], 2);
22930
22976
  };
22931
22977
  }
22932
22978
  });
22933
- const _hoisted_1$v = {
22979
+ const _hoisted_1$w = {
22934
22980
  key: 0,
22935
22981
  id: "lupa-search-results-page-select",
22936
22982
  "data-cy": "lupa-search-results-page-select"
@@ -22944,7 +22990,7 @@ and ensure you are accounting for this risk.
22944
22990
  key: 0,
22945
22991
  class: "lupa-page-number-separator"
22946
22992
  };
22947
- const _sfc_main$z = /* @__PURE__ */ defineComponent({
22993
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
22948
22994
  __name: "SearchResultsPageSelect",
22949
22995
  props: {
22950
22996
  lastPageLabel: {},
@@ -23021,7 +23067,7 @@ and ensure you are accounting for this risk.
23021
23067
  }
23022
23068
  };
23023
23069
  return (_ctx, _cache) => {
23024
- return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$v, [
23070
+ return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$w, [
23025
23071
  showBack.value ? (openBlock(), createElementBlock("div", {
23026
23072
  key: 0,
23027
23073
  class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
@@ -23065,15 +23111,15 @@ and ensure you are accounting for this risk.
23065
23111
  };
23066
23112
  }
23067
23113
  });
23068
- const _hoisted_1$u = {
23114
+ const _hoisted_1$v = {
23069
23115
  id: "lupa-search-results-page-size",
23070
23116
  "data-cy": "lupa-search-results-page-size"
23071
23117
  };
23072
23118
  const _hoisted_2$o = { id: "lupa-select" };
23073
23119
  const _hoisted_3$i = { class: "lupa-select-label" };
23074
23120
  const _hoisted_4$d = ["aria-label"];
23075
- const _hoisted_5$a = ["value"];
23076
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
23121
+ const _hoisted_5$8 = ["value"];
23122
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
23077
23123
  __name: "SearchResultsPageSize",
23078
23124
  props: {
23079
23125
  labels: {},
@@ -23101,7 +23147,7 @@ and ensure you are accounting for this risk.
23101
23147
  });
23102
23148
  };
23103
23149
  return (_ctx, _cache) => {
23104
- return openBlock(), createElementBlock("div", _hoisted_1$u, [
23150
+ return openBlock(), createElementBlock("div", _hoisted_1$v, [
23105
23151
  createBaseVNode("div", _hoisted_2$o, [
23106
23152
  createBaseVNode("label", _hoisted_3$i, toDisplayString(label.value), 1),
23107
23153
  createBaseVNode("select", {
@@ -23116,7 +23162,7 @@ and ensure you are accounting for this risk.
23116
23162
  return openBlock(), createElementBlock("option", {
23117
23163
  key: option,
23118
23164
  value: option
23119
- }, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$a);
23165
+ }, toDisplayString(prefixLabel.value) + toDisplayString(option), 9, _hoisted_5$8);
23120
23166
  }), 128))
23121
23167
  ], 40, _hoisted_4$d)
23122
23168
  ])
@@ -23124,15 +23170,15 @@ and ensure you are accounting for this risk.
23124
23170
  };
23125
23171
  }
23126
23172
  });
23127
- const _hoisted_1$t = {
23173
+ const _hoisted_1$u = {
23128
23174
  id: "lupa-search-results-sort",
23129
23175
  class: "lupa-search-results-sort"
23130
23176
  };
23131
23177
  const _hoisted_2$n = { id: "lupa-select" };
23132
23178
  const _hoisted_3$h = { class: "lupa-select-label" };
23133
23179
  const _hoisted_4$c = ["aria-label"];
23134
- const _hoisted_5$9 = ["value"];
23135
- const _sfc_main$x = /* @__PURE__ */ defineComponent({
23180
+ const _hoisted_5$7 = ["value"];
23181
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
23136
23182
  __name: "SearchResultsSort",
23137
23183
  props: {
23138
23184
  options: {},
@@ -23181,7 +23227,7 @@ and ensure you are accounting for this risk.
23181
23227
  previousKey.value = selectedKey.value;
23182
23228
  };
23183
23229
  return (_ctx, _cache) => {
23184
- return openBlock(), createElementBlock("div", _hoisted_1$t, [
23230
+ return openBlock(), createElementBlock("div", _hoisted_1$u, [
23185
23231
  createBaseVNode("div", _hoisted_2$n, [
23186
23232
  createBaseVNode("label", _hoisted_3$h, toDisplayString(_ctx.options.label), 1),
23187
23233
  withDirectives(createBaseVNode("select", {
@@ -23196,7 +23242,7 @@ and ensure you are accounting for this risk.
23196
23242
  return openBlock(), createElementBlock("option", {
23197
23243
  key: option.key,
23198
23244
  value: option.key
23199
- }, toDisplayString(option.label), 9, _hoisted_5$9);
23245
+ }, toDisplayString(option.label), 9, _hoisted_5$7);
23200
23246
  }), 128))
23201
23247
  ], 40, _hoisted_4$c), [
23202
23248
  [vModelSelect, selectedKey.value]
@@ -23206,22 +23252,22 @@ and ensure you are accounting for this risk.
23206
23252
  };
23207
23253
  }
23208
23254
  });
23209
- const _hoisted_1$s = { class: "lupa-toolbar-left" };
23255
+ const _hoisted_1$t = { class: "lupa-toolbar-left" };
23210
23256
  const _hoisted_2$m = {
23211
23257
  key: 0,
23212
23258
  class: "lupa-toolbar-right-title"
23213
23259
  };
23214
23260
  const _hoisted_3$g = { key: 2 };
23215
23261
  const _hoisted_4$b = { key: 4 };
23216
- const _hoisted_5$8 = { key: 6 };
23217
- const _hoisted_6$6 = { class: "lupa-toolbar-right" };
23262
+ const _hoisted_5$6 = { key: 6 };
23263
+ const _hoisted_6$5 = { class: "lupa-toolbar-right" };
23218
23264
  const _hoisted_7$3 = {
23219
23265
  key: 0,
23220
23266
  class: "lupa-toolbar-right-title"
23221
23267
  };
23222
23268
  const _hoisted_8 = { key: 2 };
23223
23269
  const _hoisted_9 = { key: 4 };
23224
- const _sfc_main$w = /* @__PURE__ */ defineComponent({
23270
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
23225
23271
  __name: "SearchResultsToolbar",
23226
23272
  props: {
23227
23273
  options: {},
@@ -23328,34 +23374,34 @@ and ensure you are accounting for this risk.
23328
23374
  id: "lupa-search-results-toolbar",
23329
23375
  class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
23330
23376
  }, [
23331
- createBaseVNode("div", _hoisted_1$s, [
23377
+ createBaseVNode("div", _hoisted_1$t, [
23332
23378
  toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$m, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
23333
- showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$B, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$g)),
23334
- showItemSummary.value ? (openBlock(), createBlock(_sfc_main$T, {
23379
+ showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$D, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$g)),
23380
+ showItemSummary.value ? (openBlock(), createBlock(_sfc_main$V, {
23335
23381
  key: 3,
23336
23382
  label: searchSummaryLabel.value,
23337
23383
  clearable: unref(hasAnyFilter) && showFilterClear.value,
23338
23384
  onClear: handleClearAll
23339
23385
  }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$b)),
23340
- displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$z, {
23386
+ displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$B, {
23341
23387
  key: 5,
23342
23388
  options: paginationOptions.value.pageSelect,
23343
23389
  "last-page-label": paginationOptions.value.labels.showMore,
23344
23390
  "first-page-label": paginationOptions.value.labels.showLess
23345
- }, 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$6))
23346
23392
  ]),
23347
- createBaseVNode("div", _hoisted_6$6, [
23393
+ createBaseVNode("div", _hoisted_6$5, [
23348
23394
  toolbarRightLabel.value ? (openBlock(), createElementBlock("div", _hoisted_7$3, toDisplayString(toolbarRightLabel.value), 1)) : createCommentVNode("", true),
23349
- createVNode(_sfc_main$A, {
23395
+ createVNode(_sfc_main$C, {
23350
23396
  label: optionsValue.value.labels.mobileFilterButton,
23351
23397
  "show-filter-count": showMobileFilterCount.value
23352
23398
  }, null, 8, ["label", "show-filter-count"]),
23353
- paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$y, {
23399
+ paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$A, {
23354
23400
  key: 1,
23355
23401
  options: paginationOptions.value.pageSize,
23356
23402
  labels: paginationOptions.value.labels
23357
23403
  }, null, 8, ["options", "labels"])) : (openBlock(), createElementBlock("div", _hoisted_8)),
23358
- sortOptions.value ? (openBlock(), createBlock(_sfc_main$x, {
23404
+ sortOptions.value ? (openBlock(), createBlock(_sfc_main$z, {
23359
23405
  key: 3,
23360
23406
  options: sortOptions.value,
23361
23407
  callbacks: callbacks.value
@@ -23365,7 +23411,7 @@ and ensure you are accounting for this risk.
23365
23411
  };
23366
23412
  }
23367
23413
  });
23368
- const _sfc_main$v = /* @__PURE__ */ defineComponent({
23414
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
23369
23415
  __name: "SearchResultsProductImage",
23370
23416
  props: {
23371
23417
  item: {},
@@ -23373,7 +23419,7 @@ and ensure you are accounting for this risk.
23373
23419
  },
23374
23420
  setup(__props) {
23375
23421
  return (_ctx, _cache) => {
23376
- return openBlock(), createBlock(_sfc_main$1f, {
23422
+ return openBlock(), createBlock(_sfc_main$1h, {
23377
23423
  item: _ctx.item,
23378
23424
  options: _ctx.options,
23379
23425
  "wrapper-class": "lupa-search-results-image-wrapper",
@@ -23382,16 +23428,16 @@ and ensure you are accounting for this risk.
23382
23428
  };
23383
23429
  }
23384
23430
  });
23385
- const _hoisted_1$r = ["title", "innerHTML"];
23431
+ const _hoisted_1$s = ["title", "innerHTML"];
23386
23432
  const _hoisted_2$l = ["title"];
23387
23433
  const _hoisted_3$f = ["href", "innerHTML"];
23388
23434
  const _hoisted_4$a = ["title"];
23389
- const _hoisted_5$7 = {
23435
+ const _hoisted_5$5 = {
23390
23436
  key: 0,
23391
23437
  class: "lupa-search-results-product-title-text"
23392
23438
  };
23393
- const _hoisted_6$5 = ["href"];
23394
- const _sfc_main$u = /* @__PURE__ */ defineComponent({
23439
+ const _hoisted_6$4 = ["href"];
23440
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
23395
23441
  __name: "SearchResultsProductTitle",
23396
23442
  props: {
23397
23443
  item: {},
@@ -23428,7 +23474,7 @@ and ensure you are accounting for this risk.
23428
23474
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
23429
23475
  title: sanitizedTitle.value,
23430
23476
  innerHTML: sanitizedTitle.value
23431
- }, null, 12, _hoisted_1$r)) : isHtml.value && _ctx.options.link ? (openBlock(), createElementBlock("div", {
23477
+ }, null, 12, _hoisted_1$s)) : isHtml.value && _ctx.options.link ? (openBlock(), createElementBlock("div", {
23432
23478
  key: 1,
23433
23479
  class: "lupa-search-results-product-title",
23434
23480
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
@@ -23446,19 +23492,19 @@ and ensure you are accounting for this risk.
23446
23492
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
23447
23493
  title: title.value
23448
23494
  }, [
23449
- !_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_5$7, toDisplayString(title.value), 1)) : createCommentVNode("", true),
23495
+ !_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_5$5, toDisplayString(title.value), 1)) : createCommentVNode("", true),
23450
23496
  _ctx.options.link ? (openBlock(), createElementBlock("a", {
23451
23497
  key: 1,
23452
23498
  href: _ctx.link,
23453
23499
  class: "lupa-search-results-product-title-text lupa-title-link",
23454
23500
  onClick: handleNavigation
23455
- }, toDisplayString(title.value), 9, _hoisted_6$5)) : createCommentVNode("", true)
23501
+ }, toDisplayString(title.value), 9, _hoisted_6$4)) : createCommentVNode("", true)
23456
23502
  ], 12, _hoisted_4$a));
23457
23503
  };
23458
23504
  }
23459
23505
  });
23460
- const _hoisted_1$q = ["innerHTML"];
23461
- const _sfc_main$t = /* @__PURE__ */ defineComponent({
23506
+ const _hoisted_1$r = ["innerHTML"];
23507
+ const _sfc_main$v = /* @__PURE__ */ defineComponent({
23462
23508
  __name: "SearchResultsProductDescription",
23463
23509
  props: {
23464
23510
  item: {},
@@ -23485,7 +23531,7 @@ and ensure you are accounting for this risk.
23485
23531
  class: "lupa-search-results-product-description",
23486
23532
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
23487
23533
  innerHTML: sanitizedDescription.value
23488
- }, null, 12, _hoisted_1$q)) : (openBlock(), createElementBlock("div", {
23534
+ }, null, 12, _hoisted_1$r)) : (openBlock(), createElementBlock("div", {
23489
23535
  key: 1,
23490
23536
  class: "lupa-search-results-product-description",
23491
23537
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
@@ -23493,15 +23539,15 @@ and ensure you are accounting for this risk.
23493
23539
  };
23494
23540
  }
23495
23541
  });
23496
- const _hoisted_1$p = { id: "lupa-search-results-rating" };
23542
+ const _hoisted_1$q = { id: "lupa-search-results-rating" };
23497
23543
  const _hoisted_2$k = { class: "lupa-ratings" };
23498
23544
  const _hoisted_3$e = { class: "lupa-ratings-base" };
23499
23545
  const _hoisted_4$9 = ["innerHTML"];
23500
- const _hoisted_5$6 = { class: "lupa-rating-wrapper" };
23501
- const _hoisted_6$4 = ["innerHTML"];
23546
+ const _hoisted_5$4 = { class: "lupa-rating-wrapper" };
23547
+ const _hoisted_6$3 = ["innerHTML"];
23502
23548
  const _hoisted_7$2 = ["href"];
23503
23549
  const STAR_COUNT = 5;
23504
- const _sfc_main$s = /* @__PURE__ */ defineComponent({
23550
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
23505
23551
  __name: "SearchResultsProductRating",
23506
23552
  props: {
23507
23553
  item: {},
@@ -23532,7 +23578,7 @@ and ensure you are accounting for this risk.
23532
23578
  return generateLink(props.options.links.ratingDetails, props.item);
23533
23579
  });
23534
23580
  return (_ctx, _cache) => {
23535
- return openBlock(), createElementBlock("div", _hoisted_1$p, [
23581
+ return openBlock(), createElementBlock("div", _hoisted_1$q, [
23536
23582
  createBaseVNode("div", _hoisted_2$k, [
23537
23583
  createBaseVNode("div", _hoisted_3$e, [
23538
23584
  (openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
@@ -23543,7 +23589,7 @@ and ensure you are accounting for this risk.
23543
23589
  }, null, 8, _hoisted_4$9);
23544
23590
  }), 128))
23545
23591
  ]),
23546
- createBaseVNode("div", _hoisted_5$6, [
23592
+ createBaseVNode("div", _hoisted_5$4, [
23547
23593
  createBaseVNode("div", {
23548
23594
  class: "lupa-ratings-highlighted",
23549
23595
  style: normalizeStyle({ width: ratingPercentage.value + "%" })
@@ -23553,7 +23599,7 @@ and ensure you are accounting for this risk.
23553
23599
  key: index,
23554
23600
  innerHTML: star,
23555
23601
  class: "lupa-rating lupa-rating-highlighted"
23556
- }, null, 8, _hoisted_6$4);
23602
+ }, null, 8, _hoisted_6$3);
23557
23603
  }), 128))
23558
23604
  ], 4)
23559
23605
  ])
@@ -23566,11 +23612,11 @@ and ensure you are accounting for this risk.
23566
23612
  };
23567
23613
  }
23568
23614
  });
23569
- const _hoisted_1$o = {
23615
+ const _hoisted_1$p = {
23570
23616
  class: "lupa-search-results-product-regular-price",
23571
23617
  "data-cy": "lupa-search-results-product-regular-price"
23572
23618
  };
23573
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
23619
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
23574
23620
  __name: "SearchResultsProductRegularPrice",
23575
23621
  props: {
23576
23622
  item: {},
@@ -23588,11 +23634,11 @@ and ensure you are accounting for this risk.
23588
23634
  );
23589
23635
  });
23590
23636
  return (_ctx, _cache) => {
23591
- return openBlock(), createElementBlock("div", _hoisted_1$o, toDisplayString(price.value), 1);
23637
+ return openBlock(), createElementBlock("div", _hoisted_1$p, toDisplayString(price.value), 1);
23592
23638
  };
23593
23639
  }
23594
23640
  });
23595
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
23641
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
23596
23642
  __name: "SearchResultsProductPrice",
23597
23643
  props: {
23598
23644
  item: {},
@@ -23622,10 +23668,10 @@ and ensure you are accounting for this risk.
23622
23668
  };
23623
23669
  }
23624
23670
  });
23625
- const _hoisted_1$n = { class: "lupa-search-results-add-to-cart-wrapper" };
23671
+ const _hoisted_1$o = { class: "lupa-search-results-add-to-cart-wrapper" };
23626
23672
  const _hoisted_2$j = { class: "lupa-search-results-product-addtocart" };
23627
23673
  const _hoisted_3$d = ["onClick", "disabled"];
23628
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
23674
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
23629
23675
  __name: "SearchResultsProductAddToCart",
23630
23676
  props: {
23631
23677
  item: {},
@@ -23658,7 +23704,7 @@ and ensure you are accounting for this risk.
23658
23704
  loading.value = false;
23659
23705
  });
23660
23706
  return (_ctx, _cache) => {
23661
- return openBlock(), createElementBlock("div", _hoisted_1$n, [
23707
+ return openBlock(), createElementBlock("div", _hoisted_1$o, [
23662
23708
  createBaseVNode("div", _hoisted_2$j, [
23663
23709
  createBaseVNode("button", {
23664
23710
  onClick: withModifiers(handleClick, ["stop"]),
@@ -23671,12 +23717,12 @@ and ensure you are accounting for this risk.
23671
23717
  };
23672
23718
  }
23673
23719
  });
23674
- const _hoisted_1$m = ["innerHTML"];
23720
+ const _hoisted_1$n = ["innerHTML"];
23675
23721
  const _hoisted_2$i = { key: 0 };
23676
23722
  const _hoisted_3$c = { key: 1 };
23677
23723
  const _hoisted_4$8 = { class: "lupa-search-box-custom-label" };
23678
- const _hoisted_5$5 = { class: "lupa-search-box-custom-text" };
23679
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
23724
+ const _hoisted_5$3 = { class: "lupa-search-box-custom-text" };
23725
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
23680
23726
  __name: "SearchResultsProductCustom",
23681
23727
  props: {
23682
23728
  item: {},
@@ -23714,20 +23760,20 @@ and ensure you are accounting for this risk.
23714
23760
  key: 0,
23715
23761
  class: className.value,
23716
23762
  innerHTML: text.value
23717
- }, 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$n)) : (openBlock(), createElementBlock("div", mergeProps({
23718
23764
  key: 1,
23719
23765
  class: className.value
23720
23766
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
23721
23767
  !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$i, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$c, [
23722
23768
  createBaseVNode("div", _hoisted_4$8, toDisplayString(label.value), 1),
23723
- createBaseVNode("div", _hoisted_5$5, toDisplayString(text.value), 1)
23769
+ createBaseVNode("div", _hoisted_5$3, toDisplayString(text.value), 1)
23724
23770
  ]))
23725
23771
  ], 16));
23726
23772
  };
23727
23773
  }
23728
23774
  });
23729
- const _hoisted_1$l = ["innerHTML"];
23730
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
23775
+ const _hoisted_1$m = ["innerHTML"];
23776
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
23731
23777
  __name: "SearchResultsProductCustomHtmlElement",
23732
23778
  props: {
23733
23779
  item: {},
@@ -23758,15 +23804,15 @@ and ensure you are accounting for this risk.
23758
23804
  return openBlock(), createElementBlock("div", mergeProps({
23759
23805
  class: className.value,
23760
23806
  innerHTML: text.value
23761
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$l);
23807
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$m);
23762
23808
  };
23763
23809
  }
23764
23810
  });
23765
- const _hoisted_1$k = { id: "lupa-search-results-rating" };
23811
+ const _hoisted_1$l = { id: "lupa-search-results-rating" };
23766
23812
  const _hoisted_2$h = ["innerHTML"];
23767
23813
  const _hoisted_3$b = { class: "lupa-ratings" };
23768
23814
  const _hoisted_4$7 = ["href"];
23769
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
23815
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
23770
23816
  __name: "SearchResultsProductSingleStarRating",
23771
23817
  props: {
23772
23818
  item: {},
@@ -23794,7 +23840,7 @@ and ensure you are accounting for this risk.
23794
23840
  return RATING_STAR_HTML;
23795
23841
  });
23796
23842
  return (_ctx, _cache) => {
23797
- return openBlock(), createElementBlock("div", _hoisted_1$k, [
23843
+ return openBlock(), createElementBlock("div", _hoisted_1$l, [
23798
23844
  createBaseVNode("div", {
23799
23845
  innerHTML: star.value,
23800
23846
  class: "lupa-rating lupa-rating-highlighted"
@@ -23810,19 +23856,19 @@ and ensure you are accounting for this risk.
23810
23856
  });
23811
23857
  const __default__ = {
23812
23858
  components: {
23813
- SearchResultsProductImage: _sfc_main$v,
23814
- SearchResultsProductTitle: _sfc_main$u,
23815
- SearchResultsProductDescription: _sfc_main$t,
23816
- SearchResultsProductRating: _sfc_main$s,
23817
- SearchResultsProductRegularPrice: _sfc_main$r,
23818
- SearchResultsProductPrice: _sfc_main$q,
23819
- SearchResultsProductAddToCart: _sfc_main$p,
23820
- SearchResultsProductCustom: _sfc_main$o,
23821
- SearchResultsProductCustomHtmlElement: _sfc_main$n,
23822
- SearchResultsProductSingleStarRating: _sfc_main$m
23823
- }
23824
- };
23825
- const _sfc_main$l = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
23859
+ SearchResultsProductImage: _sfc_main$x,
23860
+ SearchResultsProductTitle: _sfc_main$w,
23861
+ SearchResultsProductDescription: _sfc_main$v,
23862
+ SearchResultsProductRating: _sfc_main$u,
23863
+ SearchResultsProductRegularPrice: _sfc_main$t,
23864
+ SearchResultsProductPrice: _sfc_main$s,
23865
+ SearchResultsProductAddToCart: _sfc_main$r,
23866
+ SearchResultsProductCustom: _sfc_main$q,
23867
+ SearchResultsProductCustomHtmlElement: _sfc_main$p,
23868
+ SearchResultsProductSingleStarRating: _sfc_main$o
23869
+ }
23870
+ };
23871
+ const _sfc_main$n = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
23826
23872
  __name: "SearchResultsProductCardElement",
23827
23873
  props: {
23828
23874
  item: {},
@@ -23898,13 +23944,13 @@ and ensure you are accounting for this risk.
23898
23944
  };
23899
23945
  }
23900
23946
  }));
23901
- const _hoisted_1$j = ["href"];
23947
+ const _hoisted_1$k = ["href"];
23902
23948
  const _hoisted_2$g = {
23903
23949
  key: 0,
23904
23950
  class: "lupa-out-of-stock"
23905
23951
  };
23906
23952
  const _hoisted_3$a = { class: "lupa-search-result-product-details-section" };
23907
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
23953
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
23908
23954
  __name: "SearchResultsProductCard",
23909
23955
  props: {
23910
23956
  product: {},
@@ -24056,7 +24102,7 @@ and ensure you are accounting for this risk.
24056
24102
  "data-cy": "lupa-search-result-product-card",
24057
24103
  class: ["lupa-search-result-product-card", !isInStock.value ? "lupa-out-of-stock" : ""]
24058
24104
  }, customDocumentHtmlAttributes.value, { onClick: handleClick }), [
24059
- createVNode(_sfc_main$10, { options: badgesOptions.value }, null, 8, ["options"]),
24105
+ createVNode(_sfc_main$12, { options: badgesOptions.value }, null, 8, ["options"]),
24060
24106
  createBaseVNode("div", {
24061
24107
  class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
24062
24108
  }, [
@@ -24066,7 +24112,7 @@ and ensure you are accounting for this risk.
24066
24112
  onClick: handleNavigation
24067
24113
  }, [
24068
24114
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
24069
- return openBlock(), createBlock(_sfc_main$l, {
24115
+ return openBlock(), createBlock(_sfc_main$n, {
24070
24116
  class: "lupa-search-results-product-element",
24071
24117
  item: _ctx.product,
24072
24118
  element,
@@ -24077,16 +24123,16 @@ and ensure you are accounting for this risk.
24077
24123
  onProductEvent: handleProductEvent
24078
24124
  }, null, 8, ["item", "element", "labels", "inStock", "link"]);
24079
24125
  }), 128)),
24080
- createVNode(_sfc_main$10, {
24126
+ createVNode(_sfc_main$12, {
24081
24127
  options: badgesOptions.value,
24082
24128
  position: "image",
24083
24129
  class: "lupa-image-badges"
24084
24130
  }, null, 8, ["options"]),
24085
24131
  ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$g, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
24086
- ], 8, _hoisted_1$j),
24132
+ ], 8, _hoisted_1$k),
24087
24133
  createBaseVNode("div", _hoisted_3$a, [
24088
24134
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
24089
- return openBlock(), createBlock(_sfc_main$l, {
24135
+ return openBlock(), createBlock(_sfc_main$n, {
24090
24136
  class: "lupa-search-results-product-element",
24091
24137
  item: _ctx.product,
24092
24138
  element,
@@ -24104,7 +24150,7 @@ and ensure you are accounting for this risk.
24104
24150
  class: normalizeClass("lupa-element-group-" + group)
24105
24151
  }, [
24106
24152
  (openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
24107
- return openBlock(), createBlock(_sfc_main$l, {
24153
+ return openBlock(), createBlock(_sfc_main$n, {
24108
24154
  class: "lupa-search-results-product-element",
24109
24155
  item: _ctx.product,
24110
24156
  element,
@@ -24122,7 +24168,7 @@ and ensure you are accounting for this risk.
24122
24168
  };
24123
24169
  }
24124
24170
  });
24125
- const _hoisted_1$i = {
24171
+ const _hoisted_1$j = {
24126
24172
  id: "lupa-search-results-similar-queries",
24127
24173
  "data-cy": "lupa-search-results-similar-queries"
24128
24174
  };
@@ -24132,13 +24178,13 @@ and ensure you are accounting for this risk.
24132
24178
  "data-cy": "lupa-similar-query-label"
24133
24179
  };
24134
24180
  const _hoisted_4$6 = ["onClick"];
24135
- const _hoisted_5$4 = ["innerHTML"];
24136
- const _hoisted_6$3 = { key: 0 };
24181
+ const _hoisted_5$2 = ["innerHTML"];
24182
+ const _hoisted_6$2 = { key: 0 };
24137
24183
  const _hoisted_7$1 = {
24138
24184
  class: "lupa-products",
24139
24185
  "data-cy": "lupa-products"
24140
24186
  };
24141
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
24187
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
24142
24188
  __name: "SearchResultsSimilarQueries",
24143
24189
  props: {
24144
24190
  labels: {},
@@ -24168,7 +24214,7 @@ and ensure you are accounting for this risk.
24168
24214
  paramsStore.goToResults({ searchText, facet });
24169
24215
  };
24170
24216
  return (_ctx, _cache) => {
24171
- return openBlock(), createElementBlock("div", _hoisted_1$i, [
24217
+ return openBlock(), createElementBlock("div", _hoisted_1$j, [
24172
24218
  createBaseVNode("div", _hoisted_2$f, toDisplayString(_ctx.labels.similarQueries), 1),
24173
24219
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
24174
24220
  return openBlock(), createElementBlock("div", { key: index }, [
@@ -24182,13 +24228,13 @@ and ensure you are accounting for this risk.
24182
24228
  }, [
24183
24229
  createBaseVNode("span", {
24184
24230
  innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
24185
- }, null, 8, _hoisted_5$4),
24186
- similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$3, " (" + toDisplayString(similarQuery.count) + ")", 1)) : createCommentVNode("", true)
24231
+ }, null, 8, _hoisted_5$2),
24232
+ similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$2, " (" + toDisplayString(similarQuery.count) + ")", 1)) : createCommentVNode("", true)
24187
24233
  ], 8, _hoisted_4$6)
24188
24234
  ]),
24189
24235
  createBaseVNode("div", _hoisted_7$1, [
24190
24236
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
24191
- return openBlock(), createBlock(_sfc_main$k, {
24237
+ return openBlock(), createBlock(_sfc_main$m, {
24192
24238
  style: normalizeStyle(_ctx.columnSize),
24193
24239
  key: getDocumentKey(index2, product),
24194
24240
  product,
@@ -24202,7 +24248,7 @@ and ensure you are accounting for this risk.
24202
24248
  };
24203
24249
  }
24204
24250
  });
24205
- const _hoisted_1$h = {
24251
+ const _hoisted_1$i = {
24206
24252
  key: 0,
24207
24253
  class: "lupa-results-additional-panel"
24208
24254
  };
@@ -24210,7 +24256,7 @@ and ensure you are accounting for this risk.
24210
24256
  class: "lupa-results-additional-panel-items",
24211
24257
  "data-cy": "lupa-results-additional-panel-items"
24212
24258
  };
24213
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
24259
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
24214
24260
  __name: "AdditionalPanel",
24215
24261
  props: {
24216
24262
  panel: {},
@@ -24282,10 +24328,10 @@ and ensure you are accounting for this risk.
24282
24328
  handleQueryChange();
24283
24329
  });
24284
24330
  return (_ctx, _cache) => {
24285
- return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$h, [
24331
+ return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$i, [
24286
24332
  createBaseVNode("div", _hoisted_2$e, [
24287
24333
  (openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
24288
- return openBlock(), createBlock(_sfc_main$k, {
24334
+ return openBlock(), createBlock(_sfc_main$m, {
24289
24335
  key: index,
24290
24336
  product: item,
24291
24337
  options: _ctx.panel,
@@ -24303,11 +24349,11 @@ and ensure you are accounting for this risk.
24303
24349
  };
24304
24350
  }
24305
24351
  });
24306
- const _hoisted_1$g = {
24352
+ const _hoisted_1$h = {
24307
24353
  key: 0,
24308
24354
  class: "lupa-results-additional-panels"
24309
24355
  };
24310
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
24356
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
24311
24357
  __name: "AdditionalPanels",
24312
24358
  props: {
24313
24359
  options: {},
@@ -24324,9 +24370,9 @@ and ensure you are accounting for this risk.
24324
24370
  return locationPanels.value.length > 0;
24325
24371
  });
24326
24372
  return (_ctx, _cache) => {
24327
- return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
24373
+ return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$h, [
24328
24374
  (openBlock(true), createElementBlock(Fragment, null, renderList(locationPanels.value, (panel) => {
24329
- return openBlock(), createBlock(_sfc_main$i, {
24375
+ return openBlock(), createBlock(_sfc_main$k, {
24330
24376
  key: panel.queryKey,
24331
24377
  panel,
24332
24378
  options: _ctx.sdkOptions
@@ -24343,11 +24389,11 @@ and ensure you are accounting for this risk.
24343
24389
  }
24344
24390
  return target;
24345
24391
  };
24346
- const _sfc_main$g = {};
24347
- const _hoisted_1$f = { class: "lupa-spinner-wrapper" };
24392
+ const _sfc_main$i = {};
24393
+ const _hoisted_1$g = { class: "lupa-spinner-wrapper" };
24348
24394
  const _hoisted_2$d = { class: "lupa-spinner" };
24349
24395
  function _sfc_render(_ctx, _cache) {
24350
- return openBlock(), createElementBlock("div", _hoisted_1$f, [
24396
+ return openBlock(), createElementBlock("div", _hoisted_1$g, [
24351
24397
  createBaseVNode("div", _hoisted_2$d, [
24352
24398
  (openBlock(), createElementBlock(Fragment, null, renderList(12, (x2) => {
24353
24399
  return createBaseVNode("div", { key: x2 });
@@ -24355,8 +24401,8 @@ and ensure you are accounting for this risk.
24355
24401
  ])
24356
24402
  ]);
24357
24403
  }
24358
- const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render]]);
24359
- const _hoisted_1$e = {
24404
+ const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render]]);
24405
+ const _hoisted_1$f = {
24360
24406
  id: "lupa-search-results-similar-results",
24361
24407
  "data-cy": "lupa-search-results-similar-results"
24362
24408
  };
@@ -24365,7 +24411,7 @@ and ensure you are accounting for this risk.
24365
24411
  class: "lupa-products",
24366
24412
  "data-cy": "lupa-products"
24367
24413
  };
24368
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
24414
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
24369
24415
  __name: "SearchResultsSimilarResults",
24370
24416
  props: {
24371
24417
  columnSize: {},
@@ -24381,11 +24427,11 @@ and ensure you are accounting for this risk.
24381
24427
  return getProductKey(`${index}`, product, props.productCardOptions.idKey);
24382
24428
  };
24383
24429
  return (_ctx, _cache) => {
24384
- return openBlock(), createElementBlock("div", _hoisted_1$e, [
24430
+ return openBlock(), createElementBlock("div", _hoisted_1$f, [
24385
24431
  createBaseVNode("div", _hoisted_2$c, toDisplayString(_ctx.labels.similarResultsLabel), 1),
24386
24432
  createBaseVNode("div", _hoisted_3$8, [
24387
24433
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarResults.value.items, (product, index) => {
24388
- return openBlock(), createBlock(_sfc_main$k, {
24434
+ return openBlock(), createBlock(_sfc_main$m, {
24389
24435
  style: normalizeStyle(_ctx.columnSize),
24390
24436
  key: getDocumentKey(index, product),
24391
24437
  product,
@@ -24397,7 +24443,7 @@ and ensure you are accounting for this risk.
24397
24443
  };
24398
24444
  }
24399
24445
  });
24400
- const _hoisted_1$d = { id: "lupa-search-results-products" };
24446
+ const _hoisted_1$e = { id: "lupa-search-results-products" };
24401
24447
  const _hoisted_2$b = {
24402
24448
  class: "lupa-products",
24403
24449
  "data-cy": "lupa-products"
@@ -24412,9 +24458,9 @@ and ensure you are accounting for this risk.
24412
24458
  class: "lupa-empty-results",
24413
24459
  "data-cy": "lupa-no-results"
24414
24460
  };
24415
- const _hoisted_5$3 = { key: 4 };
24416
- const _hoisted_6$2 = { key: 5 };
24417
- const _sfc_main$e = /* @__PURE__ */ defineComponent({
24461
+ const _hoisted_5$1 = { key: 4 };
24462
+ const _hoisted_6$1 = { key: 5 };
24463
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
24418
24464
  __name: "SearchResultsProducts",
24419
24465
  props: {
24420
24466
  options: {},
@@ -24521,24 +24567,24 @@ and ensure you are accounting for this risk.
24521
24567
  };
24522
24568
  return (_ctx, _cache) => {
24523
24569
  var _a;
24524
- return openBlock(), createElementBlock("div", _hoisted_1$d, [
24570
+ return openBlock(), createElementBlock("div", _hoisted_1$e, [
24525
24571
  unref(loading) && !unref(isMobileSidebarVisible) ? (openBlock(), createBlock(Spinner, {
24526
24572
  key: 0,
24527
24573
  class: "lupa-loader"
24528
24574
  })) : createCommentVNode("", true),
24529
24575
  unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
24530
- showTopFilters.value ? (openBlock(), createBlock(_sfc_main$C, {
24576
+ showTopFilters.value ? (openBlock(), createBlock(_sfc_main$E, {
24531
24577
  key: 0,
24532
24578
  options: (_a = _ctx.options.filters) != null ? _a : {}
24533
24579
  }, null, 8, ["options"])) : createCommentVNode("", true),
24534
- showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$w, {
24580
+ showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$y, {
24535
24581
  key: 1,
24536
24582
  class: "lupa-toolbar-mobile",
24537
24583
  options: _ctx.options,
24538
24584
  "pagination-location": "top",
24539
24585
  onFilter: filter2
24540
24586
  }, null, 8, ["options"])) : createCommentVNode("", true),
24541
- currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$Q, {
24587
+ currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$S, {
24542
24588
  key: 2,
24543
24589
  class: normalizeClass(currentFiltersClass.value),
24544
24590
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -24546,18 +24592,18 @@ and ensure you are accounting for this risk.
24546
24592
  expandable: !desktopFiltersExpanded.value
24547
24593
  }, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true)
24548
24594
  ], 64)) : createCommentVNode("", true),
24549
- createVNode(_sfc_main$h, {
24595
+ createVNode(_sfc_main$j, {
24550
24596
  options: _ctx.options,
24551
24597
  location: "top",
24552
24598
  sdkOptions: _ctx.options.options
24553
24599
  }, null, 8, ["options", "sdkOptions"]),
24554
24600
  unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
24555
- createVNode(_sfc_main$w, {
24601
+ createVNode(_sfc_main$y, {
24556
24602
  class: "lupa-toolbar-top",
24557
24603
  options: _ctx.options,
24558
24604
  "pagination-location": "top"
24559
24605
  }, null, 8, ["options"]),
24560
- currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$Q, {
24606
+ currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$S, {
24561
24607
  key: 0,
24562
24608
  class: normalizeClass(currentFiltersClass.value),
24563
24609
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -24573,7 +24619,7 @@ and ensure you are accounting for this risk.
24573
24619
  options: productCardOptions.value
24574
24620
  });
24575
24621
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
24576
- return openBlock(), createBlock(_sfc_main$k, {
24622
+ return openBlock(), createBlock(_sfc_main$m, {
24577
24623
  style: normalizeStyle(columnSize.value),
24578
24624
  key: getProductKeyAction(index, product),
24579
24625
  product,
@@ -24589,12 +24635,12 @@ and ensure you are accounting for this risk.
24589
24635
  onClick: goToFirstPage
24590
24636
  }, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
24591
24637
  ])) : createCommentVNode("", true),
24592
- createVNode(_sfc_main$w, {
24638
+ createVNode(_sfc_main$y, {
24593
24639
  class: "lupa-toolbar-bottom",
24594
24640
  options: _ctx.options,
24595
24641
  "pagination-location": "bottom"
24596
24642
  }, null, 8, ["options"]),
24597
- createVNode(_sfc_main$h, {
24643
+ createVNode(_sfc_main$j, {
24598
24644
  options: _ctx.options,
24599
24645
  location: "bottom",
24600
24646
  sdkOptions: _ctx.options.options
@@ -24603,15 +24649,15 @@ and ensure you are accounting for this risk.
24603
24649
  createTextVNode(toDisplayString(_ctx.options.labels.emptyResults) + " ", 1),
24604
24650
  createBaseVNode("span", null, toDisplayString(unref(currentQueryText)), 1)
24605
24651
  ])) : createCommentVNode("", true),
24606
- hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5$3, [
24607
- createVNode(_sfc_main$j, {
24652
+ hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
24653
+ createVNode(_sfc_main$l, {
24608
24654
  labels: similarQueriesLabels.value,
24609
24655
  columnSize: columnSize.value,
24610
24656
  productCardOptions: productCardOptions.value
24611
24657
  }, null, 8, ["labels", "columnSize", "productCardOptions"])
24612
24658
  ])) : createCommentVNode("", true),
24613
- hasSimilarResults.value ? (openBlock(), createElementBlock("div", _hoisted_6$2, [
24614
- createVNode(_sfc_main$f, {
24659
+ hasSimilarResults.value ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
24660
+ createVNode(_sfc_main$h, {
24615
24661
  labels: similarResultsLabels.value,
24616
24662
  columnSize: columnSize.value,
24617
24663
  productCardOptions: productCardOptions.value
@@ -24622,19 +24668,22 @@ and ensure you are accounting for this risk.
24622
24668
  };
24623
24669
  }
24624
24670
  });
24625
- const _hoisted_1$c = { class: "lupa-top-mobile-filter-wrapper" };
24671
+ const _hoisted_1$d = { class: "lupa-top-mobile-filter-wrapper" };
24626
24672
  const _hoisted_2$a = {
24627
24673
  key: 0,
24628
24674
  class: "lupa-category-back"
24629
24675
  };
24630
24676
  const _hoisted_3$6 = ["href"];
24631
- const _sfc_main$d = /* @__PURE__ */ defineComponent({
24677
+ const _hoisted_4$4 = { class: "lupa-child-category-list" };
24678
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
24632
24679
  __name: "CategoryTopFilters",
24633
24680
  props: {
24634
24681
  options: {}
24635
24682
  },
24636
24683
  setup(__props) {
24637
24684
  const props = __props;
24685
+ const searchResultsStore = useSearchResultStore();
24686
+ const { relatedCategoryChildren } = storeToRefs(searchResultsStore);
24638
24687
  const hasBackButton = computed(() => {
24639
24688
  var _a, _b;
24640
24689
  return Boolean((_b = (_a = props.options.categories) == null ? void 0 : _a.back) == null ? void 0 : _b.title);
@@ -24650,17 +24699,24 @@ and ensure you are accounting for this risk.
24650
24699
  const hasEventRouting = computed(() => {
24651
24700
  return props.options.routingBehavior === "event";
24652
24701
  });
24702
+ const categoryOptions = computed(() => {
24703
+ return props.options.categories;
24704
+ });
24653
24705
  const handleNavigationBack = (event) => {
24654
24706
  if (!backUrlLink.value) {
24655
24707
  return;
24656
24708
  }
24657
24709
  handleRoutingEvent(backUrlLink.value, event, hasEventRouting.value);
24658
24710
  };
24711
+ const getCategoryKey = (item) => {
24712
+ var _a, _b, _c, _d, _e, _f;
24713
+ return (item == null ? void 0 : item[(_c = (_b = (_a = categoryOptions.value) == null ? void 0 : _a.keys) == null ? void 0 : _b.titleKey) != null ? _c : ""]) + (item == null ? void 0 : item[(_f = (_e = (_d = categoryOptions.value) == null ? void 0 : _d.keys) == null ? void 0 : _e.urlKey) != null ? _f : ""]);
24714
+ };
24659
24715
  return (_ctx, _cache) => {
24660
24716
  return openBlock(), createElementBlock("div", {
24661
24717
  class: normalizeClass(["lupa-category-top-mobile-filters", { "lupa-has-back-button": hasBackButton.value }])
24662
24718
  }, [
24663
- createBaseVNode("div", _hoisted_1$c, [
24719
+ createBaseVNode("div", _hoisted_1$d, [
24664
24720
  hasBackButton.value ? (openBlock(), createElementBlock("div", _hoisted_2$a, [
24665
24721
  createBaseVNode("a", {
24666
24722
  "data-cy": "lupa-category-back",
@@ -24668,7 +24724,16 @@ and ensure you are accounting for this risk.
24668
24724
  onClick: handleNavigationBack
24669
24725
  }, toDisplayString(backTitle.value), 9, _hoisted_3$6)
24670
24726
  ])) : createCommentVNode("", true),
24671
- createVNode(_sfc_main$w, {
24727
+ createBaseVNode("div", _hoisted_4$4, [
24728
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
24729
+ return openBlock(), createBlock(_sfc_main$R, {
24730
+ key: getCategoryKey(child),
24731
+ item: child,
24732
+ options: categoryOptions.value
24733
+ }, null, 8, ["item", "options"]);
24734
+ }), 128))
24735
+ ]),
24736
+ createVNode(_sfc_main$y, {
24672
24737
  class: "lupa-toolbar-mobile",
24673
24738
  "pagination-location": "top",
24674
24739
  options: _ctx.options
@@ -24678,7 +24743,7 @@ and ensure you are accounting for this risk.
24678
24743
  };
24679
24744
  }
24680
24745
  });
24681
- const _hoisted_1$b = {
24746
+ const _hoisted_1$c = {
24682
24747
  key: 0,
24683
24748
  class: "lupa-container-title-summary-mobile"
24684
24749
  };
@@ -24688,8 +24753,8 @@ and ensure you are accounting for this risk.
24688
24753
  class: "top-layout-wrapper"
24689
24754
  };
24690
24755
  const _hoisted_3$5 = { class: "search-content" };
24691
- const _hoisted_4$4 = { id: "lupa-search-results" };
24692
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
24756
+ const _hoisted_4$3 = { id: "lupa-search-results" };
24757
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
24693
24758
  __name: "SearchResults",
24694
24759
  props: {
24695
24760
  options: {},
@@ -24899,29 +24964,29 @@ and ensure you are accounting for this risk.
24899
24964
  return openBlock(), createElementBlock("div", {
24900
24965
  class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
24901
24966
  }, [
24902
- _ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$b, [
24903
- createVNode(_sfc_main$U, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
24904
- createVNode(_sfc_main$S, {
24967
+ _ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
24968
+ createVNode(_sfc_main$W, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
24969
+ createVNode(_sfc_main$U, {
24905
24970
  "show-summary": true,
24906
24971
  options: _ctx.options,
24907
24972
  "is-product-list": (_a = _ctx.isProductList) != null ? _a : false
24908
24973
  }, null, 8, ["options", "is-product-list"])
24909
24974
  ])) : createCommentVNode("", true),
24910
- isTitleResultTopPosition.value ? (openBlock(), createBlock(_sfc_main$d, {
24975
+ isTitleResultTopPosition.value ? (openBlock(), createBlock(_sfc_main$f, {
24911
24976
  key: 1,
24912
24977
  options: _ctx.options
24913
24978
  }, null, 8, ["options"])) : createCommentVNode("", true),
24914
- _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$E, {
24979
+ _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$G, {
24915
24980
  key: 2,
24916
24981
  options: _ctx.options.filters,
24917
24982
  onFilter: handleParamsChange
24918
24983
  }, null, 8, ["options"])) : createCommentVNode("", true),
24919
- unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$D, {
24984
+ unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$F, {
24920
24985
  key: 3,
24921
24986
  breadcrumbs: _ctx.options.breadcrumbs
24922
24987
  }, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
24923
24988
  isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
24924
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$F, {
24989
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$H, {
24925
24990
  key: 0,
24926
24991
  options: (_b = _ctx.options.filters) != null ? _b : {},
24927
24992
  ref_key: "searchResultsFilters",
@@ -24929,12 +24994,12 @@ and ensure you are accounting for this risk.
24929
24994
  onFilter: handleParamsChange
24930
24995
  }, null, 8, ["options"])) : createCommentVNode("", true),
24931
24996
  createBaseVNode("div", _hoisted_3$5, [
24932
- createVNode(_sfc_main$U, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
24933
- createVNode(_sfc_main$S, {
24997
+ createVNode(_sfc_main$W, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
24998
+ createVNode(_sfc_main$U, {
24934
24999
  options: _ctx.options,
24935
25000
  "is-product-list": (_c = _ctx.isProductList) != null ? _c : false
24936
25001
  }, null, 8, ["options", "is-product-list"]),
24937
- createVNode(_sfc_main$e, {
25002
+ createVNode(_sfc_main$g, {
24938
25003
  options: _ctx.options,
24939
25004
  ssr: ssrEnabled.value,
24940
25005
  onFilter: handleParamsChange
@@ -24946,20 +25011,20 @@ and ensure you are accounting for this risk.
24946
25011
  }, 8, ["options", "ssr"])
24947
25012
  ])
24948
25013
  ])) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
24949
- createVNode(_sfc_main$U, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
24950
- createVNode(_sfc_main$S, {
25014
+ createVNode(_sfc_main$W, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
25015
+ createVNode(_sfc_main$U, {
24951
25016
  options: _ctx.options,
24952
25017
  "is-product-list": (_d = _ctx.isProductList) != null ? _d : false
24953
25018
  }, null, 8, ["options", "is-product-list"]),
24954
- createBaseVNode("div", _hoisted_4$4, [
24955
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$F, {
25019
+ createBaseVNode("div", _hoisted_4$3, [
25020
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$H, {
24956
25021
  key: 0,
24957
25022
  options: (_e = _ctx.options.filters) != null ? _e : {},
24958
25023
  ref_key: "searchResultsFilters",
24959
25024
  ref: searchResultsFilters,
24960
25025
  onFilter: handleParamsChange
24961
25026
  }, null, 8, ["options"])) : createCommentVNode("", true),
24962
- createVNode(_sfc_main$e, {
25027
+ createVNode(_sfc_main$g, {
24963
25028
  options: _ctx.options,
24964
25029
  ssr: ssrEnabled.value,
24965
25030
  onFilter: handleParamsChange
@@ -24983,12 +25048,12 @@ and ensure you are accounting for this risk.
24983
25048
  };
24984
25049
  }
24985
25050
  });
24986
- const _hoisted_1$a = {
25051
+ const _hoisted_1$b = {
24987
25052
  key: 0,
24988
25053
  class: "lupa-category-overview"
24989
25054
  };
24990
25055
  const _hoisted_2$8 = ["innerHTML"];
24991
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
25056
+ const _sfc_main$d = /* @__PURE__ */ defineComponent({
24992
25057
  __name: "CategoryDescription",
24993
25058
  props: {
24994
25059
  options: {}
@@ -25006,7 +25071,7 @@ and ensure you are accounting for this risk.
25006
25071
  return Boolean((_b = (_a = props.options.categories) == null ? void 0 : _a.current) == null ? void 0 : _b.description);
25007
25072
  });
25008
25073
  return (_ctx, _cache) => {
25009
- return overviewVisible.value && unref(hasResults) ? (openBlock(), createElementBlock("div", _hoisted_1$a, [
25074
+ return overviewVisible.value && unref(hasResults) ? (openBlock(), createElementBlock("div", _hoisted_1$b, [
25010
25075
  createBaseVNode("div", {
25011
25076
  class: "lupa-category-description",
25012
25077
  innerHTML: description.value
@@ -25071,7 +25136,7 @@ and ensure you are accounting for this risk.
25071
25136
  }
25072
25137
  return parsedObject;
25073
25138
  };
25074
- const _sfc_main$a = /* @__PURE__ */ defineComponent({
25139
+ const _sfc_main$c = /* @__PURE__ */ defineComponent({
25075
25140
  __name: "ProductList",
25076
25141
  props: {
25077
25142
  options: {}
@@ -25096,7 +25161,7 @@ and ensure you are accounting for this risk.
25096
25161
  __expose({ fetch: fetch2 });
25097
25162
  return (_ctx, _cache) => {
25098
25163
  return openBlock(), createElementBlock("div", null, [
25099
- createVNode(_sfc_main$c, {
25164
+ createVNode(_sfc_main$e, {
25100
25165
  options: componentOptions.value,
25101
25166
  "initial-filters": _ctx.options.initialFilters,
25102
25167
  "is-product-list": true,
@@ -25104,7 +25169,7 @@ and ensure you are accounting for this risk.
25104
25169
  ref: searchResults2
25105
25170
  }, {
25106
25171
  default: withCtx(() => [
25107
- createVNode(_sfc_main$b, { options: _ctx.options }, null, 8, ["options"])
25172
+ createVNode(_sfc_main$d, { options: _ctx.options }, null, 8, ["options"])
25108
25173
  ]),
25109
25174
  _: 1
25110
25175
  }, 8, ["options", "initial-filters"])
@@ -30594,9 +30659,9 @@ and ensure you are accounting for this risk.
30594
30659
  }).call(commonjsGlobal$1);
30595
30660
  })(lodash$1, lodash$1.exports);
30596
30661
  var lodashExports$1 = lodash$1.exports;
30597
- const _hoisted_1$9 = ["onClick"];
30662
+ const _hoisted_1$a = ["onClick"];
30598
30663
  const _hoisted_2$7 = { class: "lupa-search-box-container" };
30599
- const _sfc_main$9 = /* @__PURE__ */ defineComponent({
30664
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
30600
30665
  __name: "SearchContainer",
30601
30666
  props: {
30602
30667
  options: {}
@@ -30642,7 +30707,7 @@ and ensure you are accounting for this risk.
30642
30707
  onClick: withModifiers(innerClick, ["stop"])
30643
30708
  }, [
30644
30709
  createBaseVNode("div", _hoisted_2$7, [
30645
- createVNode(_sfc_main$V, {
30710
+ createVNode(_sfc_main$X, {
30646
30711
  options: fullSearchBoxOptions.value,
30647
30712
  "is-search-container": true,
30648
30713
  ref_key: "searchBox",
@@ -30650,13 +30715,13 @@ and ensure you are accounting for this risk.
30650
30715
  onClose: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
30651
30716
  }, null, 8, ["options"])
30652
30717
  ]),
30653
- createVNode(_sfc_main$c, {
30718
+ createVNode(_sfc_main$e, {
30654
30719
  options: fullSearchResultsOptions.value,
30655
30720
  "is-container": true,
30656
30721
  ref_key: "searchResults",
30657
30722
  ref: searchResults2
30658
30723
  }, null, 8, ["options"])
30659
- ], 8, _hoisted_1$9)
30724
+ ], 8, _hoisted_1$a)
30660
30725
  ]);
30661
30726
  };
30662
30727
  }
@@ -31359,7 +31424,7 @@ and ensure you are accounting for this risk.
31359
31424
  };
31360
31425
  }
31361
31426
  });
31362
- const _hoisted_1$8 = {
31427
+ const _hoisted_1$9 = {
31363
31428
  key: 0,
31364
31429
  class: "lupa-search-product-recommendations-wrapper"
31365
31430
  };
@@ -31372,12 +31437,12 @@ and ensure you are accounting for this risk.
31372
31437
  class: "lupa-recommended-products",
31373
31438
  "data-cy": "lupa-recommended-products"
31374
31439
  };
31375
- const _hoisted_4$3 = {
31440
+ const _hoisted_4$2 = {
31376
31441
  key: 1,
31377
31442
  class: "lupa-products",
31378
31443
  "data-cy": "lupa-products"
31379
31444
  };
31380
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
31445
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
31381
31446
  __name: "Recommendations",
31382
31447
  props: {
31383
31448
  options: {}
@@ -31493,7 +31558,7 @@ and ensure you are accounting for this risk.
31493
31558
  });
31494
31559
  __expose({ fetch: fetch2 });
31495
31560
  return (_ctx, _cache) => {
31496
- return hasRecommendations.value ? (openBlock(), createElementBlock("div", _hoisted_1$8, [
31561
+ return hasRecommendations.value ? (openBlock(), createElementBlock("div", _hoisted_1$9, [
31497
31562
  title.value ? (openBlock(), createElementBlock("h2", _hoisted_2$6, toDisplayString(title.value), 1)) : createCommentVNode("", true),
31498
31563
  !loading.value ? (openBlock(), createElementBlock("div", _hoisted_3$4, [
31499
31564
  layoutType.value === "carousel" ? (openBlock(), createBlock(unref(Carousel), mergeProps({ key: 0 }, carouselOptions.value, { "wrap-around": true }), {
@@ -31506,7 +31571,7 @@ and ensure you are accounting for this risk.
31506
31571
  key: getProductKeyAction(index, product)
31507
31572
  }, {
31508
31573
  default: withCtx(() => [
31509
- createVNode(_sfc_main$k, {
31574
+ createVNode(_sfc_main$m, {
31510
31575
  product,
31511
31576
  options: _ctx.options,
31512
31577
  "click-tracking-settings": clickTrackingSettings.value
@@ -31517,9 +31582,9 @@ and ensure you are accounting for this risk.
31517
31582
  }), 128))
31518
31583
  ]),
31519
31584
  _: 1
31520
- }, 16)) : (openBlock(), createElementBlock("div", _hoisted_4$3, [
31585
+ }, 16)) : (openBlock(), createElementBlock("div", _hoisted_4$2, [
31521
31586
  (openBlock(true), createElementBlock(Fragment, null, renderList(recommendations2.value, (product, index) => {
31522
- return openBlock(), createBlock(_sfc_main$k, {
31587
+ return openBlock(), createBlock(_sfc_main$m, {
31523
31588
  style: normalizeStyle(columnSize.value),
31524
31589
  key: getProductKeyAction(index, product),
31525
31590
  product,
@@ -31533,19 +31598,19 @@ and ensure you are accounting for this risk.
31533
31598
  };
31534
31599
  }
31535
31600
  });
31536
- const _hoisted_1$7 = { class: "lupa-chat-spinner" };
31601
+ const _hoisted_1$8 = { class: "lupa-chat-spinner" };
31537
31602
  const _hoisted_2$5 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
31538
31603
  const _hoisted_3$3 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
31539
- const _hoisted_4$2 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
31540
- const _hoisted_5$2 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
31541
- const _hoisted_6$1 = [
31604
+ const _hoisted_4$1 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
31605
+ const _hoisted_5 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
31606
+ const _hoisted_6 = [
31542
31607
  _hoisted_2$5,
31543
31608
  _hoisted_3$3,
31544
- _hoisted_4$2,
31545
- _hoisted_5$2
31609
+ _hoisted_4$1,
31610
+ _hoisted_5
31546
31611
  ];
31547
31612
  const _hoisted_7 = { class: "lupa-chat-spinner-message" };
31548
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
31613
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
31549
31614
  __name: "ChatSpinner",
31550
31615
  props: {
31551
31616
  small: { type: Boolean },
@@ -31553,27 +31618,25 @@ and ensure you are accounting for this risk.
31553
31618
  },
31554
31619
  setup(__props) {
31555
31620
  return (_ctx, _cache) => {
31556
- return openBlock(), createElementBlock("section", _hoisted_1$7, [
31621
+ return openBlock(), createElementBlock("section", _hoisted_1$8, [
31557
31622
  createBaseVNode("div", {
31558
31623
  class: normalizeClass([{ small: _ctx.small }, "lds-ring"])
31559
- }, _hoisted_6$1, 2),
31624
+ }, _hoisted_6, 2),
31560
31625
  createBaseVNode("div", _hoisted_7, toDisplayString(_ctx.message), 1)
31561
31626
  ]);
31562
31627
  };
31563
31628
  }
31564
31629
  });
31565
- const _hoisted_1$6 = { class: "lupa-chat-input-container" };
31630
+ const _hoisted_1$7 = { class: "lupa-chat-input-container" };
31566
31631
  const _hoisted_2$4 = { id: "lupa-search-box-input" };
31567
- const _hoisted_3$2 = {
31568
- key: 0,
31569
- class: "lupa-chat-form-submit"
31570
- };
31571
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
31632
+ const _hoisted_3$2 = { class: "lupa-chat-form-submit" };
31633
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
31572
31634
  __name: "ChatInput",
31573
31635
  props: {
31574
- disabled: { type: Boolean }
31636
+ disabled: { type: Boolean },
31637
+ options: {}
31575
31638
  },
31576
- emits: ["submit"],
31639
+ emits: ["submit", "focus", "blur", "clear"],
31577
31640
  setup(__props, { emit: emit2 }) {
31578
31641
  const inputValue = ref("");
31579
31642
  const submit = () => {
@@ -31581,7 +31644,8 @@ and ensure you are accounting for this risk.
31581
31644
  inputValue.value = "";
31582
31645
  };
31583
31646
  return (_ctx, _cache) => {
31584
- return openBlock(), createElementBlock("div", _hoisted_1$6, [
31647
+ var _a, _b, _c, _d, _e, _f;
31648
+ return openBlock(), createElementBlock("div", _hoisted_1$7, [
31585
31649
  createBaseVNode("form", {
31586
31650
  action: "javascript:void(0);",
31587
31651
  class: "chat-input-form",
@@ -31595,12 +31659,22 @@ and ensure you are accounting for this risk.
31595
31659
  class: "lupa-search-box-input-field",
31596
31660
  "data-cy": "lupa-search-box-input-field",
31597
31661
  type: "text",
31598
- placeholder: "Type your request here..."
31599
- }, null, 512), [
31662
+ placeholder: "Type your request here...",
31663
+ onFocus: _cache[1] || (_cache[1] = ($event) => emit2("focus")),
31664
+ onBlur: _cache[2] || (_cache[2] = ($event) => emit2("blur"))
31665
+ }, null, 544), [
31600
31666
  [vModelText, inputValue.value]
31601
31667
  ])
31602
31668
  ]),
31603
- !_ctx.disabled ? (openBlock(), createElementBlock("button", _hoisted_3$2, "Ask LupaChat")) : (openBlock(), createBlock(_sfc_main$7, {
31669
+ !_ctx.disabled ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
31670
+ 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),
31671
+ !_ctx.disabled ? (openBlock(), createElementBlock("button", {
31672
+ key: 0,
31673
+ type: "button",
31674
+ class: "lupa-chat-form-clear",
31675
+ onClick: _cache[3] || (_cache[3] = ($event) => emit2("clear"))
31676
+ }, 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)
31677
+ ], 64)) : (openBlock(), createBlock(_sfc_main$9, {
31604
31678
  key: 1,
31605
31679
  small: true
31606
31680
  }))
@@ -31739,8 +31813,9 @@ and ensure you are accounting for this risk.
31739
31813
  prepareChatHistory,
31740
31814
  getTextResponseChunkStream
31741
31815
  };
31742
- const _hoisted_1$5 = { class: "lupa-chat-results" };
31743
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
31816
+ const _hoisted_1$6 = { class: "lupa-chat-results" };
31817
+ const _hoisted_2$3 = ["href"];
31818
+ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
31744
31819
  __name: "ChatPhraseProductsList",
31745
31820
  props: {
31746
31821
  options: {},
@@ -31751,35 +31826,40 @@ and ensure you are accounting for this risk.
31751
31826
  const getProductKeyAction = (index, product) => {
31752
31827
  return getProductKey(`${index}`, product, props.options.idKey);
31753
31828
  };
31829
+ const image = computed(() => {
31830
+ var _a;
31831
+ return (_a = props.options.elements) == null ? void 0 : _a.find((e2) => e2.type === "image");
31832
+ });
31833
+ const getLink = (item) => {
31834
+ var _a, _b, _c;
31835
+ if (!((_a = props.options.links) == null ? void 0 : _a.details)) {
31836
+ return "";
31837
+ }
31838
+ return generateLink((_c = (_b = props.options.links) == null ? void 0 : _b.details) != null ? _c : "", item);
31839
+ };
31754
31840
  return (_ctx, _cache) => {
31755
- return openBlock(), createElementBlock("section", _hoisted_1$5, [
31841
+ return openBlock(), createElementBlock("section", _hoisted_1$6, [
31756
31842
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
31757
- return openBlock(), createBlock(_sfc_main$k, {
31758
- class: "lupa-chat-product-card",
31759
- key: getProductKeyAction(index, product),
31760
- product,
31761
- options: _ctx.options
31762
- }, null, 8, ["product", "options"]);
31843
+ return openBlock(), createElementBlock("div", {
31844
+ class: "lupa-chat-item lupa-chat-product-card-image",
31845
+ key: getProductKeyAction(index, product)
31846
+ }, [
31847
+ createBaseVNode("a", {
31848
+ href: getLink(product)
31849
+ }, [
31850
+ createVNode(_sfc_main$x, {
31851
+ item: product,
31852
+ options: image.value
31853
+ }, null, 8, ["item", "options"])
31854
+ ], 8, _hoisted_2$3)
31855
+ ]);
31763
31856
  }), 128))
31764
31857
  ]);
31765
31858
  };
31766
31859
  }
31767
31860
  });
31768
- const _hoisted_1$4 = { class: "lupa-chat-content-entry-phrase" };
31769
- const _hoisted_2$3 = { class: "lupa-chat-phrase-title" };
31770
- const _hoisted_3$1 = {
31771
- key: 0,
31772
- class: "alert"
31773
- };
31774
- const _hoisted_4$1 = {
31775
- key: 0,
31776
- class: "lupa-chat-no-results"
31777
- };
31778
- const _hoisted_5$1 = /* @__PURE__ */ createBaseVNode("p", null, "We found no matches for this search term", -1);
31779
- const _hoisted_6 = [
31780
- _hoisted_5$1
31781
- ];
31782
- const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
31861
+ const _hoisted_1$5 = { class: "lupa-chat-phrase-title" };
31862
+ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
31783
31863
  __name: "ChatContentEntryPhrase",
31784
31864
  props: {
31785
31865
  options: {},
@@ -31864,29 +31944,87 @@ and ensure you are accounting for this risk.
31864
31944
  return phrases != null ? phrases : [];
31865
31945
  });
31866
31946
  return (_ctx, _cache) => {
31867
- return openBlock(), createElementBlock("div", _hoisted_1$4, [
31868
- createBaseVNode("div", _hoisted_2$3, [
31869
- createBaseVNode("h3", null, toDisplayString(displayPhrase.value), 1),
31870
- createBaseVNode("sub", null, toDisplayString(usedAlternativePhrases.value.join(", ")), 1),
31871
- usedPartialResults.value ? (openBlock(), createElementBlock("sub", _hoisted_3$1, "Including partial matches - which might not be what you are looking for")) : createCommentVNode("", true)
31947
+ return !loading.value && searchResults2.value.length ? (openBlock(), createElementBlock("div", {
31948
+ key: 0,
31949
+ class: normalizeClass(["lupa-chat-content-entry-phrase", { "lupa-chat-incomplete-results": usedPartialResults.value }])
31950
+ }, [
31951
+ createBaseVNode("div", _hoisted_1$5, [
31952
+ createBaseVNode("h3", null, toDisplayString(displayPhrase.value), 1)
31872
31953
  ]),
31873
31954
  createBaseVNode("div", null, [
31874
- createVNode(_sfc_main$5, {
31955
+ createVNode(_sfc_main$7, {
31875
31956
  "search-results": searchResults2.value,
31876
31957
  options: _ctx.options.displayOptions
31877
31958
  }, null, 8, ["search-results", "options"])
31878
- ]),
31879
- !loading.value && !searchResults2.value.length ? (openBlock(), createElementBlock("div", _hoisted_4$1, _hoisted_6)) : createCommentVNode("", true),
31880
- loading.value ? (openBlock(), createBlock(_sfc_main$7, {
31881
- key: 1,
31882
- message: currentAction.value
31883
- }, null, 8, ["message"])) : createCommentVNode("", true)
31959
+ ])
31960
+ ], 2)) : createCommentVNode("", true);
31961
+ };
31962
+ }
31963
+ });
31964
+ const _hoisted_1$4 = { class: "lupa-chat-text-response" };
31965
+ const _hoisted_2$2 = ["innerHTML"];
31966
+ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
31967
+ __name: "ChatTextEntry",
31968
+ props: {
31969
+ content: {},
31970
+ options: {},
31971
+ history: {}
31972
+ },
31973
+ setup(__props) {
31974
+ const props = __props;
31975
+ const content = ref("");
31976
+ const processChunk = (chunk) => {
31977
+ content.value += chunk;
31978
+ };
31979
+ onMounted(() => {
31980
+ var _a;
31981
+ ChatService.getTextResponseChunkStream(
31982
+ props.options.sdkOptions,
31983
+ {
31984
+ initialQuery: props.content,
31985
+ messageHistory: (_a = props.history) != null ? _a : [],
31986
+ queryKey: props.options.displayOptions.queryKey
31987
+ },
31988
+ processChunk,
31989
+ props.options.chatSettings
31990
+ );
31991
+ });
31992
+ return (_ctx, _cache) => {
31993
+ return openBlock(), createElementBlock("div", _hoisted_1$4, [
31994
+ createBaseVNode("p", { innerHTML: content.value }, null, 8, _hoisted_2$2)
31884
31995
  ]);
31885
31996
  };
31886
31997
  }
31887
31998
  });
31888
- const _hoisted_1$3 = { class: "lupa-chat-best-matches lupa-chat-content-entry" };
31889
- const _hoisted_2$2 = /* @__PURE__ */ createBaseVNode("h3", null, "Best matches", -1);
31999
+ const _hoisted_1$3 = { class: "lupa-chat-results" };
32000
+ const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
32001
+ __name: "ChatPhraseProductsCardList",
32002
+ props: {
32003
+ options: {},
32004
+ searchResults: {}
32005
+ },
32006
+ setup(__props) {
32007
+ const props = __props;
32008
+ const getProductKeyAction = (index, product) => {
32009
+ return getProductKey(`${index}`, product, props.options.idKey);
32010
+ };
32011
+ return (_ctx, _cache) => {
32012
+ return openBlock(), createElementBlock("section", _hoisted_1$3, [
32013
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
32014
+ return openBlock(), createBlock(_sfc_main$m, {
32015
+ class: "lupa-chat-product-card",
32016
+ key: getProductKeyAction(index, product),
32017
+ product,
32018
+ options: _ctx.options
32019
+ }, null, 8, ["product", "options"]);
32020
+ }), 128))
32021
+ ]);
32022
+ };
32023
+ }
32024
+ });
32025
+ const _hoisted_1$2 = { class: "lupa-chat-section-content" };
32026
+ const _hoisted_2$1 = { class: "lupa-chat-content-entry-wrapper" };
32027
+ const _hoisted_3$1 = { class: "lupa-chat-best-matches lupa-chat-content-entry" };
31890
32028
  const MAX_SOURCES_FOR_BEST_ITEM_MATCHING = 250;
31891
32029
  const _sfc_main$3$1 = /* @__PURE__ */ defineComponent({
31892
32030
  __name: "ChatContentEntry",
@@ -31945,74 +32083,87 @@ and ensure you are accounting for this risk.
31945
32083
  }).filter(Boolean);
31946
32084
  });
31947
32085
  return (_ctx, _cache) => {
31948
- return openBlock(), createElementBlock("div", null, [
31949
- createBaseVNode("ul", null, [
31950
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.entry.allPhrases, (phrase) => {
31951
- return openBlock(), createElementBlock("li", {
31952
- key: phrase,
31953
- class: "lupa-chat-content-entry"
31954
- }, [
31955
- phrase ? (openBlock(), createBlock(_sfc_main$4$1, {
31956
- key: 0,
31957
- phrase,
31958
- options: _ctx.options,
31959
- onLoaded: loaded
31960
- }, null, 8, ["phrase", "options"])) : createCommentVNode("", true)
31961
- ]);
31962
- }), 128))
32086
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i;
32087
+ return openBlock(), createElementBlock(Fragment, null, [
32088
+ createBaseVNode("section", _hoisted_1$2, [
32089
+ createVNode(_sfc_main$5, {
32090
+ content: _ctx.entry.userInput,
32091
+ history: _ctx.history,
32092
+ options: _ctx.options
32093
+ }, null, 8, ["content", "history", "options"]),
32094
+ createBaseVNode("div", _hoisted_2$1, [
32095
+ createBaseVNode("ul", null, [
32096
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.entry.allPhrases, (phrase) => {
32097
+ return openBlock(), createElementBlock("li", {
32098
+ key: phrase,
32099
+ class: "lupa-chat-content-entry"
32100
+ }, [
32101
+ phrase ? (openBlock(), createBlock(_sfc_main$6, {
32102
+ key: 0,
32103
+ phrase,
32104
+ options: _ctx.options,
32105
+ onLoaded: loaded
32106
+ }, null, 8, ["phrase", "options"])) : createCommentVNode("", true)
32107
+ ]);
32108
+ }), 128))
32109
+ ]),
32110
+ loading.value ? (openBlock(), createBlock(_sfc_main$9, {
32111
+ key: 0,
32112
+ message: (_c = (_b = (_a = _ctx.options.chatSettings) == null ? void 0 : _a.labels) == null ? void 0 : _b.bestMatches) != null ? _c : "Checking for more matches..."
32113
+ }, null, 8, ["message"])) : createCommentVNode("", true)
32114
+ ])
31963
32115
  ]),
31964
- createBaseVNode("section", _hoisted_1$3, [
31965
- _hoisted_2$2,
31966
- loading.value ? (openBlock(), createBlock(_sfc_main$7, {
32116
+ createBaseVNode("section", _hoisted_3$1, [
32117
+ 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),
32118
+ loading.value ? (openBlock(), createBlock(_sfc_main$9, {
31967
32119
  key: 0,
31968
- message: "Selecting the best matches for you. This might take a few seconds."
31969
- })) : createCommentVNode("", true),
31970
- bestMatches.value.length ? (openBlock(), createBlock(_sfc_main$5, {
32120
+ 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."
32121
+ }, null, 8, ["message"])) : createCommentVNode("", true),
32122
+ bestMatches.value.length ? (openBlock(), createBlock(_sfc_main$4$1, {
31971
32123
  key: 1,
31972
32124
  "search-results": bestMatchProducts.value,
31973
- options: _ctx.options.displayOptions
32125
+ options: _ctx.options.displayOptions,
32126
+ full: true
31974
32127
  }, null, 8, ["search-results", "options"])) : createCommentVNode("", true)
31975
32128
  ])
31976
- ]);
32129
+ ], 64);
31977
32130
  };
31978
32131
  }
31979
32132
  });
31980
- const _hoisted_1$2 = { class: "lupa-chat-text-response" };
31981
- const _hoisted_2$1 = ["innerHTML"];
32133
+ const _hoisted_1$1 = { key: 0 };
31982
32134
  const _sfc_main$2$1 = /* @__PURE__ */ defineComponent({
31983
- __name: "ChatTextEntry",
32135
+ __name: "ChatContentListEntry",
31984
32136
  props: {
31985
- content: {},
32137
+ entry: {},
31986
32138
  options: {},
31987
32139
  history: {}
31988
32140
  },
31989
- setup(__props) {
31990
- const props = __props;
31991
- const content = ref("");
31992
- const processChunk = (chunk) => {
31993
- content.value += chunk;
32141
+ emits: ["loaded"],
32142
+ setup(__props, { emit: emit2 }) {
32143
+ const bestItemsLoaded = (items, key) => {
32144
+ emit2("loaded", { items, key });
31994
32145
  };
31995
- onMounted(() => {
31996
- var _a;
31997
- ChatService.getTextResponseChunkStream(
31998
- props.options.sdkOptions,
31999
- {
32000
- initialQuery: props.content,
32001
- messageHistory: (_a = props.history) != null ? _a : [],
32002
- queryKey: props.options.displayOptions.queryKey
32003
- },
32004
- processChunk,
32005
- props.options.chatSettings
32006
- );
32007
- });
32008
32146
  return (_ctx, _cache) => {
32009
- return openBlock(), createElementBlock("div", _hoisted_1$2, [
32010
- createBaseVNode("p", { innerHTML: content.value }, null, 8, _hoisted_2$1)
32147
+ var _a;
32148
+ return openBlock(), createElementBlock("div", null, [
32149
+ createBaseVNode("h4", {
32150
+ class: "lupa-chat-section-title",
32151
+ onClick: _cache[0] || (_cache[0] = ($event) => _ctx.entry.expanded = !_ctx.entry.expanded)
32152
+ }, toDisplayString(_ctx.entry.userInput), 1),
32153
+ ((_a = _ctx.entry.suggestedPhrases) == null ? void 0 : _a.length) ? withDirectives((openBlock(), createElementBlock("div", _hoisted_1$1, [
32154
+ createVNode(_sfc_main$3$1, {
32155
+ entry: _ctx.entry,
32156
+ options: _ctx.options,
32157
+ history: _ctx.history,
32158
+ onLoaded: _cache[1] || (_cache[1] = (items) => bestItemsLoaded(items, _ctx.entry.key))
32159
+ }, null, 8, ["entry", "options", "history"])
32160
+ ], 512)), [
32161
+ [vShow, _ctx.entry.expanded]
32162
+ ]) : createCommentVNode("", true)
32011
32163
  ]);
32012
32164
  };
32013
32165
  }
32014
32166
  });
32015
- const _hoisted_1$1 = { class: "lupa-chat-section-title" };
32016
32167
  const _sfc_main$1$1 = /* @__PURE__ */ defineComponent({
32017
32168
  __name: "ChatContentList",
32018
32169
  props: {
@@ -32029,23 +32180,16 @@ and ensure you are accounting for this risk.
32029
32180
  return openBlock(), createElementBlock("div", null, [
32030
32181
  createBaseVNode("ul", null, [
32031
32182
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.content, (entry) => {
32032
- var _a;
32033
32183
  return openBlock(), createElementBlock("li", {
32034
- key: entry.key
32184
+ key: entry.key,
32185
+ class: "chat-content-list-entry"
32035
32186
  }, [
32036
- createBaseVNode("h4", _hoisted_1$1, toDisplayString(entry.userInput), 1),
32037
32187
  createVNode(_sfc_main$2$1, {
32038
- content: entry.userInput,
32039
- history: _ctx.history,
32040
- options: _ctx.options
32041
- }, null, 8, ["content", "history", "options"]),
32042
- ((_a = entry.suggestedPhrases) == null ? void 0 : _a.length) ? (openBlock(), createBlock(_sfc_main$3$1, {
32043
- key: 0,
32044
32188
  entry,
32045
32189
  options: _ctx.options,
32046
32190
  history: _ctx.history,
32047
32191
  onLoaded: (items) => bestItemsLoaded(items, entry.key)
32048
- }, null, 8, ["entry", "options", "history", "onLoaded"])) : createCommentVNode("", true)
32192
+ }, null, 8, ["entry", "options", "history", "onLoaded"])
32049
32193
  ]);
32050
32194
  }), 128))
32051
32195
  ])
@@ -32054,19 +32198,13 @@ and ensure you are accounting for this risk.
32054
32198
  }
32055
32199
  });
32056
32200
  const _hoisted_1 = { class: "lupasearch-chat" };
32057
- const _hoisted_2 = /* @__PURE__ */ createBaseVNode("section", { class: "lupa-chat-logo" }, [
32058
- /* @__PURE__ */ createBaseVNode("img", { src: "https://www.lupasearch.com/images/partials/header/lupasearch-logo.svg" })
32059
- ], -1);
32060
- const _hoisted_3 = {
32201
+ const _hoisted_2 = { class: "lupasearch-chat-input" };
32202
+ const _hoisted_3 = { class: "lupasearch-chat-content-wrapper" };
32203
+ const _hoisted_4 = {
32061
32204
  key: 0,
32062
32205
  class: "lupasearch-chat-content"
32063
32206
  };
32064
- const _hoisted_4 = {
32065
- key: 1,
32066
- class: "lupa-chat-spinner-main"
32067
- };
32068
- const _hoisted_5 = { class: "lupasearch-chat-input" };
32069
- const _sfc_main$1o = /* @__PURE__ */ defineComponent({
32207
+ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
32070
32208
  __name: "ChatContainer",
32071
32209
  props: {
32072
32210
  options: {}
@@ -32075,6 +32213,7 @@ and ensure you are accounting for this risk.
32075
32213
  const props = __props;
32076
32214
  const loading = ref(false);
32077
32215
  const error = ref("");
32216
+ const focused = ref(false);
32078
32217
  const chatContent = ref([]);
32079
32218
  const history = computed(() => ChatService.prepareChatHistory(chatContent.value));
32080
32219
  const submitChatInput = (input2) => __async2(this, null, function* () {
@@ -32089,8 +32228,10 @@ and ensure you are accounting for this risk.
32089
32228
  key,
32090
32229
  userInput: input2,
32091
32230
  allPhrases: [],
32092
- suggestedPhrases: []
32231
+ suggestedPhrases: [],
32232
+ expanded: true
32093
32233
  };
32234
+ chatContent.value = chatContent.value.map((c2) => __spreadProps2(__spreadValues2({}, c2), { expanded: false }));
32094
32235
  chatContent.value.push(chatLog);
32095
32236
  const request = {
32096
32237
  userPrompt: input2,
@@ -32121,25 +32262,31 @@ and ensure you are accounting for this risk.
32121
32262
  const entry = chatContent.value.find((c2) => c2.key === key);
32122
32263
  entry.bestItems = items;
32123
32264
  };
32265
+ const clearChatContent = () => {
32266
+ chatContent.value = [];
32267
+ };
32124
32268
  return (_ctx, _cache) => {
32125
32269
  return openBlock(), createElementBlock("section", _hoisted_1, [
32126
- _hoisted_2,
32127
- chatContent.value.length ? (openBlock(), createElementBlock("section", _hoisted_3, [
32128
- createVNode(_sfc_main$1$1, {
32129
- content: chatContent.value,
32130
- options: _ctx.options,
32131
- onLoaded: bestItemsLoaded,
32132
- history: history.value
32133
- }, null, 8, ["content", "options", "history"])
32134
- ])) : createCommentVNode("", true),
32135
- loading.value ? (openBlock(), createElementBlock("section", _hoisted_4, [
32136
- createVNode(_sfc_main$7, { message: "Loading initial recommendations... This might take up to 20s" })
32137
- ])) : createCommentVNode("", true),
32138
- createBaseVNode("section", _hoisted_5, [
32139
- createVNode(_sfc_main$6, {
32270
+ createBaseVNode("section", _hoisted_2, [
32271
+ createVNode(_sfc_main$8, {
32140
32272
  onSubmit: submitChatInput,
32141
- disabled: loading.value
32142
- }, null, 8, ["disabled"])
32273
+ disabled: loading.value,
32274
+ options: _ctx.options,
32275
+ onFocus: _cache[0] || (_cache[0] = ($event) => focused.value = true),
32276
+ onClear: clearChatContent
32277
+ }, null, 8, ["disabled", "options"]),
32278
+ createBaseVNode("div", _hoisted_3, [
32279
+ chatContent.value.length ? withDirectives((openBlock(), createElementBlock("section", _hoisted_4, [
32280
+ createVNode(_sfc_main$1$1, {
32281
+ content: chatContent.value,
32282
+ options: _ctx.options,
32283
+ history: history.value,
32284
+ onLoaded: bestItemsLoaded
32285
+ }, null, 8, ["content", "options", "history"])
32286
+ ], 512)), [
32287
+ [vShow, focused.value]
32288
+ ]) : createCommentVNode("", true)
32289
+ ])
32143
32290
  ])
32144
32291
  ]);
32145
32292
  };
@@ -38075,7 +38222,7 @@ and ensure you are accounting for this risk.
38075
38222
  };
38076
38223
  __expose({ fetch: fetch2 });
38077
38224
  return (_ctx, _cache) => {
38078
- return openBlock(), createBlock(unref(_sfc_main$V), {
38225
+ return openBlock(), createBlock(unref(_sfc_main$X), {
38079
38226
  options: fullSearchBoxOptions.value,
38080
38227
  ref_key: "searchBox",
38081
38228
  ref: searchBox2
@@ -38202,7 +38349,7 @@ and ensure you are accounting for this risk.
38202
38349
  };
38203
38350
  __expose({ fetch: fetch2 });
38204
38351
  return (_ctx, _cache) => {
38205
- return openBlock(), createBlock(unref(_sfc_main$c), {
38352
+ return openBlock(), createBlock(unref(_sfc_main$e), {
38206
38353
  options: fullSearchResultsOptions.value,
38207
38354
  ref_key: "searchResults",
38208
38355
  ref: searchResults2
@@ -38227,7 +38374,7 @@ and ensure you are accounting for this risk.
38227
38374
  };
38228
38375
  __expose({ fetch: fetch2 });
38229
38376
  return (_ctx, _cache) => {
38230
- return openBlock(), createBlock(unref(_sfc_main$a), {
38377
+ return openBlock(), createBlock(unref(_sfc_main$c), {
38231
38378
  options: fullProductListOptions.value,
38232
38379
  ref_key: "productList",
38233
38380
  ref: productList2
@@ -38307,7 +38454,7 @@ and ensure you are accounting for this risk.
38307
38454
  __expose({ fetch: fetch2, reloadOptions });
38308
38455
  return (_ctx, _cache) => {
38309
38456
  return openBlock(), createElementBlock("div", null, [
38310
- containerOptions.value && isOpen.value ? (openBlock(), createBlock(unref(_sfc_main$9), {
38457
+ containerOptions.value && isOpen.value ? (openBlock(), createBlock(unref(_sfc_main$b), {
38311
38458
  key: 0,
38312
38459
  options: containerOptions.value,
38313
38460
  ref_key: "productList",
@@ -38331,7 +38478,7 @@ and ensure you are accounting for this risk.
38331
38478
  };
38332
38479
  __expose({ fetch: fetch2 });
38333
38480
  return (_ctx, _cache) => {
38334
- return openBlock(), createBlock(unref(_sfc_main$8), {
38481
+ return openBlock(), createBlock(unref(_sfc_main$a), {
38335
38482
  options: _ctx.recommendationOptions,
38336
38483
  ref_key: "productRecommendations",
38337
38484
  ref: productRecommendations
@@ -38602,7 +38749,7 @@ and ensure you are accounting for this risk.
38602
38749
  const instance = createVue(
38603
38750
  options.displayOptions.containerSelector,
38604
38751
  mountOptions == null ? void 0 : mountOptions.mountingBehavior,
38605
- _sfc_main$1o,
38752
+ _sfc_main$1q,
38606
38753
  {
38607
38754
  options
38608
38755
  }