@getlupa/client 1.14.5 → 1.14.7

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