@getlupa/client 1.3.8 → 1.4.0

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.
@@ -7656,8 +7656,8 @@ const useSearchBoxStore = defineStore("searchBox", () => {
7656
7656
  resetHighlightIndex
7657
7657
  };
7658
7658
  });
7659
- const _hoisted_1$19 = { id: "lupa-search-box-input-container" };
7660
- const _hoisted_2$N = { class: "lupa-input-clear" };
7659
+ const _hoisted_1$1a = { id: "lupa-search-box-input-container" };
7660
+ const _hoisted_2$O = { class: "lupa-input-clear" };
7661
7661
  const _hoisted_3$A = { id: "lupa-search-box-input" };
7662
7662
  const _hoisted_4$r = ["value"];
7663
7663
  const _hoisted_5$f = ["placeholder"];
@@ -7665,7 +7665,7 @@ const _hoisted_6$8 = {
7665
7665
  key: 0,
7666
7666
  class: "lupa-close-label"
7667
7667
  };
7668
- const _sfc_main$1h = /* @__PURE__ */ defineComponent({
7668
+ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
7669
7669
  __name: "SearchBoxInput",
7670
7670
  props: {
7671
7671
  options: {},
@@ -7742,8 +7742,8 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
7742
7742
  };
7743
7743
  __expose({ focus });
7744
7744
  return (_ctx, _cache) => {
7745
- return openBlock(), createElementBlock("div", _hoisted_1$19, [
7746
- createBaseVNode("div", _hoisted_2$N, [
7745
+ return openBlock(), createElementBlock("div", _hoisted_1$1a, [
7746
+ createBaseVNode("div", _hoisted_2$O, [
7747
7747
  createBaseVNode("div", {
7748
7748
  class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
7749
7749
  onClick: clear2
@@ -7782,7 +7782,7 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
7782
7782
  };
7783
7783
  }
7784
7784
  });
7785
- const _sfc_main$1g = /* @__PURE__ */ defineComponent({
7785
+ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
7786
7786
  __name: "SearchBoxMoreResults",
7787
7787
  props: {
7788
7788
  labels: {},
@@ -7814,9 +7814,9 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
7814
7814
  };
7815
7815
  }
7816
7816
  });
7817
- const _hoisted_1$18 = { class: "lupa-search-box-history-item" };
7818
- const _hoisted_2$M = { class: "lupa-search-box-history-item-content" };
7819
- const _sfc_main$1f = /* @__PURE__ */ defineComponent({
7817
+ const _hoisted_1$19 = { class: "lupa-search-box-history-item" };
7818
+ const _hoisted_2$N = { class: "lupa-search-box-history-item-content" };
7819
+ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
7820
7820
  __name: "SearchBoxHistoryItem",
7821
7821
  props: {
7822
7822
  item: {},
@@ -7832,8 +7832,8 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
7832
7832
  emit2("click", { query: props.item });
7833
7833
  };
7834
7834
  return (_ctx, _cache) => {
7835
- return openBlock(), createElementBlock("div", _hoisted_1$18, [
7836
- createBaseVNode("div", _hoisted_2$M, [
7835
+ return openBlock(), createElementBlock("div", _hoisted_1$19, [
7836
+ createBaseVNode("div", _hoisted_2$N, [
7837
7837
  createBaseVNode("div", {
7838
7838
  class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
7839
7839
  onClick: click2
@@ -7847,11 +7847,11 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
7847
7847
  };
7848
7848
  }
7849
7849
  });
7850
- const _hoisted_1$17 = {
7850
+ const _hoisted_1$18 = {
7851
7851
  key: 0,
7852
7852
  class: "lupa-search-box-history-panel"
7853
7853
  };
7854
- const _sfc_main$1e = /* @__PURE__ */ defineComponent({
7854
+ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
7855
7855
  __name: "SearchBoxHistoryPanel",
7856
7856
  props: {
7857
7857
  options: {}
@@ -7892,9 +7892,9 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
7892
7892
  }
7893
7893
  };
7894
7894
  return (_ctx, _cache) => {
7895
- return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$17, [
7895
+ return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$18, [
7896
7896
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(history), (item, index) => {
7897
- return openBlock(), createBlock(_sfc_main$1f, {
7897
+ return openBlock(), createBlock(_sfc_main$1g, {
7898
7898
  key: item,
7899
7899
  item,
7900
7900
  highlighted: index === highlightIndex.value,
@@ -7910,8 +7910,8 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
7910
7910
  };
7911
7911
  }
7912
7912
  });
7913
- const _hoisted_1$16 = ["innerHTML"];
7914
- const _hoisted_2$L = {
7913
+ const _hoisted_1$17 = ["innerHTML"];
7914
+ const _hoisted_2$M = {
7915
7915
  key: 1,
7916
7916
  "data-cy": "lupa-suggestion-value",
7917
7917
  class: "lupa-suggestion-value"
@@ -7929,7 +7929,7 @@ const _hoisted_5$e = {
7929
7929
  class: "lupa-suggestion-facet-value",
7930
7930
  "data-cy": "lupa-suggestion-facet-value"
7931
7931
  };
7932
- const _sfc_main$1d = /* @__PURE__ */ defineComponent({
7932
+ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
7933
7933
  __name: "SearchBoxSuggestion",
7934
7934
  props: {
7935
7935
  suggestion: {},
@@ -7965,7 +7965,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
7965
7965
  class: "lupa-suggestion-value",
7966
7966
  "data-cy": "lupa-suggestion-value",
7967
7967
  innerHTML: _ctx.suggestion.displayHighlight
7968
- }, null, 8, _hoisted_1$16)) : (openBlock(), createElementBlock("div", _hoisted_2$L, toDisplayString(_ctx.suggestion.display), 1)),
7968
+ }, null, 8, _hoisted_1$17)) : (openBlock(), createElementBlock("div", _hoisted_2$M, toDisplayString(_ctx.suggestion.display), 1)),
7969
7969
  _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$z, [
7970
7970
  createBaseVNode("span", _hoisted_4$q, toDisplayString(facetLabel.value), 1),
7971
7971
  createBaseVNode("span", _hoisted_5$e, toDisplayString(_ctx.suggestion.facet.title), 1)
@@ -7974,11 +7974,11 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
7974
7974
  };
7975
7975
  }
7976
7976
  });
7977
- const _hoisted_1$15 = {
7977
+ const _hoisted_1$16 = {
7978
7978
  id: "lupa-search-box-suggestions",
7979
7979
  "data-cy": "lupa-search-box-suggestions"
7980
7980
  };
7981
- const _sfc_main$1c = /* @__PURE__ */ defineComponent({
7981
+ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
7982
7982
  __name: "SearchBoxSuggestions",
7983
7983
  props: {
7984
7984
  items: {},
@@ -8038,9 +8038,9 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
8038
8038
  });
8039
8039
  });
8040
8040
  return (_ctx, _cache) => {
8041
- return openBlock(), createElementBlock("div", _hoisted_1$15, [
8041
+ return openBlock(), createElementBlock("div", _hoisted_1$16, [
8042
8042
  (openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
8043
- return openBlock(), createBlock(_sfc_main$1d, {
8043
+ return openBlock(), createBlock(_sfc_main$1e, {
8044
8044
  key: getSuggestionKey(item),
8045
8045
  class: normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
8046
8046
  suggestion: item,
@@ -8068,7 +8068,7 @@ const debounce$1 = (func, timeout) => {
8068
8068
  }, timeout);
8069
8069
  };
8070
8070
  };
8071
- const _sfc_main$1b = /* @__PURE__ */ defineComponent({
8071
+ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
8072
8072
  __name: "SearchBoxSuggestionsWrapper",
8073
8073
  props: {
8074
8074
  panel: {},
@@ -8109,7 +8109,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
8109
8109
  };
8110
8110
  const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
8111
8111
  return (_ctx, _cache) => {
8112
- return openBlock(), createBlock(_sfc_main$1c, {
8112
+ return openBlock(), createBlock(_sfc_main$1d, {
8113
8113
  items: searchResult.value,
8114
8114
  highlight: _ctx.panel.highlight,
8115
8115
  queryKey: _ctx.panel.queryKey,
@@ -8187,8 +8187,8 @@ const useDynamicDataStore = defineStore("dynamicData", () => {
8187
8187
  });
8188
8188
  return { dynamicDataIdMap, loading, enhanceSearchResultsWithDynamicData };
8189
8189
  });
8190
- const _hoisted_1$14 = ["src"];
8191
- const _sfc_main$1a = /* @__PURE__ */ defineComponent({
8190
+ const _hoisted_1$15 = ["src"];
8191
+ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
8192
8192
  __name: "ProductImage",
8193
8193
  props: {
8194
8194
  item: {},
@@ -8236,12 +8236,12 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
8236
8236
  class: normalizeClass((_b = _ctx.imageClass) != null ? _b : ""),
8237
8237
  src: finalUrl.value,
8238
8238
  onError: replaceWithPlaceholder
8239
- }, null, 42, _hoisted_1$14)
8239
+ }, null, 42, _hoisted_1$15)
8240
8240
  ], 2);
8241
8241
  };
8242
8242
  }
8243
8243
  });
8244
- const _sfc_main$19 = /* @__PURE__ */ defineComponent({
8244
+ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
8245
8245
  __name: "SearchBoxProductImage",
8246
8246
  props: {
8247
8247
  item: {},
@@ -8249,7 +8249,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
8249
8249
  },
8250
8250
  setup(__props) {
8251
8251
  return (_ctx, _cache) => {
8252
- return openBlock(), createBlock(_sfc_main$1a, {
8252
+ return openBlock(), createBlock(_sfc_main$1b, {
8253
8253
  item: _ctx.item,
8254
8254
  options: _ctx.options,
8255
8255
  "wrapper-class": "lupa-search-box-image-wrapper",
@@ -8258,12 +8258,12 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
8258
8258
  };
8259
8259
  }
8260
8260
  });
8261
- const _hoisted_1$13 = ["innerHTML"];
8262
- const _hoisted_2$K = {
8261
+ const _hoisted_1$14 = ["innerHTML"];
8262
+ const _hoisted_2$L = {
8263
8263
  key: 1,
8264
8264
  class: "lupa-search-box-product-title"
8265
8265
  };
8266
- const _sfc_main$18 = /* @__PURE__ */ defineComponent({
8266
+ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
8267
8267
  __name: "SearchBoxProductTitle",
8268
8268
  props: {
8269
8269
  item: {},
@@ -8283,18 +8283,18 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
8283
8283
  key: 0,
8284
8284
  class: "lupa-search-box-product-title",
8285
8285
  innerHTML: title.value
8286
- }, null, 8, _hoisted_1$13)) : (openBlock(), createElementBlock("div", _hoisted_2$K, [
8286
+ }, null, 8, _hoisted_1$14)) : (openBlock(), createElementBlock("div", _hoisted_2$L, [
8287
8287
  createBaseVNode("strong", null, toDisplayString(title.value), 1)
8288
8288
  ]));
8289
8289
  };
8290
8290
  }
8291
8291
  });
8292
- const _hoisted_1$12 = ["innerHTML"];
8293
- const _hoisted_2$J = {
8292
+ const _hoisted_1$13 = ["innerHTML"];
8293
+ const _hoisted_2$K = {
8294
8294
  key: 1,
8295
8295
  class: "lupa-search-box-product-description"
8296
8296
  };
8297
- const _sfc_main$17 = /* @__PURE__ */ defineComponent({
8297
+ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
8298
8298
  __name: "SearchBoxProductDescription",
8299
8299
  props: {
8300
8300
  item: {},
@@ -8314,12 +8314,12 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
8314
8314
  key: 0,
8315
8315
  class: "lupa-search-box-product-description",
8316
8316
  innerHTML: description.value
8317
- }, null, 8, _hoisted_1$12)) : (openBlock(), createElementBlock("div", _hoisted_2$J, toDisplayString(description.value), 1));
8317
+ }, null, 8, _hoisted_1$13)) : (openBlock(), createElementBlock("div", _hoisted_2$K, toDisplayString(description.value), 1));
8318
8318
  };
8319
8319
  }
8320
8320
  });
8321
- const _hoisted_1$11 = { class: "lupa-search-box-product-price" };
8322
- const _sfc_main$16 = /* @__PURE__ */ defineComponent({
8321
+ const _hoisted_1$12 = { class: "lupa-search-box-product-price" };
8322
+ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
8323
8323
  __name: "SearchBoxProductPrice",
8324
8324
  props: {
8325
8325
  item: {},
@@ -8337,14 +8337,14 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
8337
8337
  );
8338
8338
  });
8339
8339
  return (_ctx, _cache) => {
8340
- return openBlock(), createElementBlock("div", _hoisted_1$11, [
8340
+ return openBlock(), createElementBlock("div", _hoisted_1$12, [
8341
8341
  createBaseVNode("strong", null, toDisplayString(price.value), 1)
8342
8342
  ]);
8343
8343
  };
8344
8344
  }
8345
8345
  });
8346
- const _hoisted_1$10 = { class: "lupa-search-box-product-regular-price" };
8347
- const _sfc_main$15 = /* @__PURE__ */ defineComponent({
8346
+ const _hoisted_1$11 = { class: "lupa-search-box-product-regular-price" };
8347
+ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
8348
8348
  __name: "SearchBoxProductRegularPrice",
8349
8349
  props: {
8350
8350
  item: {},
@@ -8362,16 +8362,16 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
8362
8362
  );
8363
8363
  });
8364
8364
  return (_ctx, _cache) => {
8365
- return openBlock(), createElementBlock("div", _hoisted_1$10, toDisplayString(price.value), 1);
8365
+ return openBlock(), createElementBlock("div", _hoisted_1$11, toDisplayString(price.value), 1);
8366
8366
  };
8367
8367
  }
8368
8368
  });
8369
- const _hoisted_1$$ = ["innerHTML"];
8370
- const _hoisted_2$I = { key: 0 };
8369
+ const _hoisted_1$10 = ["innerHTML"];
8370
+ const _hoisted_2$J = { key: 0 };
8371
8371
  const _hoisted_3$y = { key: 1 };
8372
8372
  const _hoisted_4$p = { class: "lupa-search-box-custom-label" };
8373
8373
  const _hoisted_5$d = { class: "lupa-search-box-custom-text" };
8374
- const _sfc_main$14 = /* @__PURE__ */ defineComponent({
8374
+ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
8375
8375
  __name: "SearchBoxProductCustom",
8376
8376
  props: {
8377
8377
  item: {},
@@ -8397,11 +8397,11 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
8397
8397
  key: 0,
8398
8398
  class: [className.value, "lupa-search-box-product-custom"],
8399
8399
  innerHTML: text.value
8400
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$$)) : (openBlock(), createElementBlock("div", mergeProps({
8400
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$10)) : (openBlock(), createElementBlock("div", mergeProps({
8401
8401
  key: 1,
8402
8402
  class: [className.value, "lupa-search-box-product-custom"]
8403
8403
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
8404
- !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$I, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$y, [
8404
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$J, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$y, [
8405
8405
  createBaseVNode("div", _hoisted_4$p, toDisplayString(label.value), 1),
8406
8406
  createBaseVNode("div", _hoisted_5$d, toDisplayString(text.value), 1)
8407
8407
  ]))
@@ -8409,8 +8409,8 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
8409
8409
  };
8410
8410
  }
8411
8411
  });
8412
- const _hoisted_1$_ = ["innerHTML"];
8413
- const _sfc_main$13 = /* @__PURE__ */ defineComponent({
8412
+ const _hoisted_1$$ = ["innerHTML"];
8413
+ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
8414
8414
  __name: "SearchBoxProductCustomHtml",
8415
8415
  props: {
8416
8416
  item: {},
@@ -8430,7 +8430,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
8430
8430
  return openBlock(), createElementBlock("div", mergeProps({
8431
8431
  class: className.value,
8432
8432
  innerHTML: text.value
8433
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$_);
8433
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$$);
8434
8434
  };
8435
8435
  }
8436
8436
  });
@@ -8625,10 +8625,10 @@ const useSearchResultStore = defineStore("searchResult", () => {
8625
8625
  setLoading
8626
8626
  };
8627
8627
  });
8628
- const _hoisted_1$Z = { class: "lupa-search-box-add-to-cart-wrapper" };
8629
- const _hoisted_2$H = { class: "lupa-search-box-product-addtocart" };
8628
+ const _hoisted_1$_ = { class: "lupa-search-box-add-to-cart-wrapper" };
8629
+ const _hoisted_2$I = { class: "lupa-search-box-product-addtocart" };
8630
8630
  const _hoisted_3$x = ["onClick", "disabled"];
8631
- const _sfc_main$12 = /* @__PURE__ */ defineComponent({
8631
+ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
8632
8632
  __name: "SearchBoxProductAddToCart",
8633
8633
  props: {
8634
8634
  item: {},
@@ -8655,8 +8655,8 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
8655
8655
  loading.value = false;
8656
8656
  });
8657
8657
  return (_ctx, _cache) => {
8658
- return openBlock(), createElementBlock("div", _hoisted_1$Z, [
8659
- createBaseVNode("div", _hoisted_2$H, [
8658
+ return openBlock(), createElementBlock("div", _hoisted_1$_, [
8659
+ createBaseVNode("div", _hoisted_2$I, [
8660
8660
  createBaseVNode("button", {
8661
8661
  onClick: withModifiers(handleClick, ["stop", "prevent"]),
8662
8662
  class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
@@ -8671,17 +8671,17 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
8671
8671
  });
8672
8672
  const __default__$4 = {
8673
8673
  components: {
8674
- SearchBoxProductImage: _sfc_main$19,
8675
- SearchBoxProductTitle: _sfc_main$18,
8676
- SearchBoxProductDescription: _sfc_main$17,
8677
- SearchBoxProductPrice: _sfc_main$16,
8678
- SearchBoxProductRegularPrice: _sfc_main$15,
8679
- SearchBoxProductCustom: _sfc_main$14,
8680
- SearchBoxProductCustomHtml: _sfc_main$13,
8681
- SearchBoxProductAddToCart: _sfc_main$12
8674
+ SearchBoxProductImage: _sfc_main$1a,
8675
+ SearchBoxProductTitle: _sfc_main$19,
8676
+ SearchBoxProductDescription: _sfc_main$18,
8677
+ SearchBoxProductPrice: _sfc_main$17,
8678
+ SearchBoxProductRegularPrice: _sfc_main$16,
8679
+ SearchBoxProductCustom: _sfc_main$15,
8680
+ SearchBoxProductCustomHtml: _sfc_main$14,
8681
+ SearchBoxProductAddToCart: _sfc_main$13
8682
8682
  }
8683
8683
  };
8684
- const _sfc_main$11 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
8684
+ const _sfc_main$12 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
8685
8685
  __name: "SearchBoxProductElement",
8686
8686
  props: {
8687
8687
  item: {},
@@ -8795,14 +8795,14 @@ const useTrackingStore = defineStore("tracking", () => {
8795
8795
  };
8796
8796
  return { trackSearch, trackResults, trackEvent };
8797
8797
  });
8798
- const _hoisted_1$Y = ["href"];
8799
- const _hoisted_2$G = { class: "lupa-search-box-product-image-section" };
8798
+ const _hoisted_1$Z = ["href"];
8799
+ const _hoisted_2$H = { class: "lupa-search-box-product-image-section" };
8800
8800
  const _hoisted_3$w = { class: "lupa-search-box-product-details-section" };
8801
8801
  const _hoisted_4$o = {
8802
8802
  key: 0,
8803
8803
  class: "lupa-search-box-product-add-to-cart-section"
8804
8804
  };
8805
- const _sfc_main$10 = /* @__PURE__ */ defineComponent({
8805
+ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
8806
8806
  __name: "SearchBoxProduct",
8807
8807
  props: {
8808
8808
  item: {},
@@ -8895,9 +8895,9 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
8895
8895
  href: link.value,
8896
8896
  onClick: handleClick
8897
8897
  }, [
8898
- createBaseVNode("div", _hoisted_2$G, [
8898
+ createBaseVNode("div", _hoisted_2$H, [
8899
8899
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
8900
- return openBlock(), createBlock(_sfc_main$11, {
8900
+ return openBlock(), createBlock(_sfc_main$12, {
8901
8901
  class: "lupa-search-box-product-element",
8902
8902
  item: _ctx.item,
8903
8903
  element,
@@ -8909,7 +8909,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
8909
8909
  ]),
8910
8910
  createBaseVNode("div", _hoisted_3$w, [
8911
8911
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
8912
- return openBlock(), createBlock(_sfc_main$11, {
8912
+ return openBlock(), createBlock(_sfc_main$12, {
8913
8913
  class: "lupa-search-box-product-element",
8914
8914
  item: _ctx.item,
8915
8915
  element,
@@ -8920,7 +8920,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
8920
8920
  }), 128))
8921
8921
  ]),
8922
8922
  addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$o, [
8923
- createVNode(_sfc_main$11, {
8923
+ createVNode(_sfc_main$12, {
8924
8924
  class: "lupa-search-box-product-element",
8925
8925
  item: _ctx.item,
8926
8926
  element: addToCartElement.value,
@@ -8929,12 +8929,12 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
8929
8929
  isInStock: isInStock.value
8930
8930
  }, null, 8, ["item", "element", "labels", "link", "isInStock"])
8931
8931
  ])) : createCommentVNode("", true)
8932
- ], 10, _hoisted_1$Y);
8932
+ ], 10, _hoisted_1$Z);
8933
8933
  };
8934
8934
  }
8935
8935
  });
8936
- const _hoisted_1$X = { id: "lupa-search-box-products" };
8937
- const _sfc_main$$ = /* @__PURE__ */ defineComponent({
8936
+ const _hoisted_1$Y = { id: "lupa-search-box-products" };
8937
+ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
8938
8938
  __name: "SearchBoxProducts",
8939
8939
  props: {
8940
8940
  items: {},
@@ -8954,7 +8954,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
8954
8954
  return (_c = (_b = highlightedItem.value) == null ? void 0 : _b.index) != null ? _c : -1;
8955
8955
  });
8956
8956
  return (_ctx, _cache) => {
8957
- return openBlock(), createElementBlock("div", _hoisted_1$X, [
8957
+ return openBlock(), createElementBlock("div", _hoisted_1$Y, [
8958
8958
  _ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
8959
8959
  return renderSlot(_ctx.$slots, "productCard", {
8960
8960
  key: index,
@@ -8966,7 +8966,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
8966
8966
  onProductClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("product-click"))
8967
8967
  });
8968
8968
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
8969
- return openBlock(), createBlock(_sfc_main$10, {
8969
+ return openBlock(), createBlock(_sfc_main$11, {
8970
8970
  key: index,
8971
8971
  item,
8972
8972
  panelOptions: _ctx.panelOptions,
@@ -8980,7 +8980,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
8980
8980
  };
8981
8981
  }
8982
8982
  });
8983
- const _sfc_main$_ = /* @__PURE__ */ defineComponent({
8983
+ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
8984
8984
  __name: "SearchBoxProductsWrapper",
8985
8985
  props: {
8986
8986
  panel: {},
@@ -9032,7 +9032,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
9032
9032
  const getItemsDebounced = debounce$1(getItems, props.debounce);
9033
9033
  return (_ctx, _cache) => {
9034
9034
  var _a, _b;
9035
- return openBlock(), createBlock(_sfc_main$$, {
9035
+ return openBlock(), createBlock(_sfc_main$10, {
9036
9036
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
9037
9037
  panelOptions: _ctx.panel,
9038
9038
  labels: _ctx.labels,
@@ -9050,11 +9050,11 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
9050
9050
  };
9051
9051
  }
9052
9052
  });
9053
- const _hoisted_1$W = {
9053
+ const _hoisted_1$X = {
9054
9054
  key: 0,
9055
9055
  id: "lupa-search-box-panel"
9056
9056
  };
9057
- const _hoisted_2$F = {
9057
+ const _hoisted_2$G = {
9058
9058
  class: "lupa-main-panel",
9059
9059
  "data-cy": "lupa-main-panel"
9060
9060
  };
@@ -9065,11 +9065,11 @@ const _hoisted_4$n = {
9065
9065
  };
9066
9066
  const __default__$3 = {
9067
9067
  components: {
9068
- SearchBoxSuggestionsWrapper: _sfc_main$1b,
9069
- SearchBoxProductsWrapper: _sfc_main$_
9068
+ SearchBoxSuggestionsWrapper: _sfc_main$1c,
9069
+ SearchBoxProductsWrapper: _sfc_main$$
9070
9070
  }
9071
9071
  };
9072
- const _sfc_main$Z = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
9072
+ const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
9073
9073
  __name: "SearchBoxMainPanel",
9074
9074
  props: {
9075
9075
  options: {},
@@ -9183,8 +9183,8 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
9183
9183
  ref_key: "panelContainer",
9184
9184
  ref: panelContainer
9185
9185
  }, [
9186
- displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$W, [
9187
- createBaseVNode("div", _hoisted_2$F, [
9186
+ displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$X, [
9187
+ createBaseVNode("div", _hoisted_2$G, [
9188
9188
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayPanels.value, (panel, index) => {
9189
9189
  return openBlock(), createElementBlock("div", {
9190
9190
  key: index,
@@ -9216,13 +9216,13 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
9216
9216
  ], 10, _hoisted_3$v);
9217
9217
  }), 128))
9218
9218
  ]),
9219
- createVNode(_sfc_main$1g, {
9219
+ createVNode(_sfc_main$1h, {
9220
9220
  labels: labels.value,
9221
9221
  showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
9222
9222
  onGoToResults: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("go-to-results"))
9223
9223
  }, null, 8, ["labels", "showTotalCount"])
9224
9224
  ])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_4$n, [
9225
- createVNode(_sfc_main$1e, {
9225
+ createVNode(_sfc_main$1f, {
9226
9226
  options: _ctx.options.history,
9227
9227
  history: history.value,
9228
9228
  onGoToResults: handleGoToResults,
@@ -9247,9 +9247,9 @@ const unbindSearchTriggers = (triggers = [], event) => {
9247
9247
  const elements = getElements(triggers);
9248
9248
  elements.forEach((e) => e == null ? void 0 : e.removeEventListener(BIND_EVENT, event));
9249
9249
  };
9250
- const _hoisted_1$V = { id: "lupa-search-box" };
9251
- const _hoisted_2$E = { class: "lupa-search-box-wrapper" };
9252
- const _sfc_main$Y = /* @__PURE__ */ defineComponent({
9250
+ const _hoisted_1$W = { id: "lupa-search-box" };
9251
+ const _hoisted_2$F = { class: "lupa-search-box-wrapper" };
9252
+ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
9253
9253
  __name: "SearchBox",
9254
9254
  props: {
9255
9255
  options: {},
@@ -9482,9 +9482,9 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
9482
9482
  };
9483
9483
  return (_ctx, _cache) => {
9484
9484
  var _a2;
9485
- return openBlock(), createElementBlock("div", _hoisted_1$V, [
9486
- createBaseVNode("div", _hoisted_2$E, [
9487
- createVNode(_sfc_main$1h, {
9485
+ return openBlock(), createElementBlock("div", _hoisted_1$W, [
9486
+ createBaseVNode("div", _hoisted_2$F, [
9487
+ createVNode(_sfc_main$1i, {
9488
9488
  options: inputOptions.value,
9489
9489
  suggestedValue: suggestedValue.value,
9490
9490
  "can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
@@ -9495,7 +9495,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
9495
9495
  onFocus: _cache[0] || (_cache[0] = ($event) => opened.value = true),
9496
9496
  onClose: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
9497
9497
  }, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
9498
- opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$Z, {
9498
+ opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$_, {
9499
9499
  key: 0,
9500
9500
  options: panelOptions.value,
9501
9501
  inputValue: inputValue.value,
@@ -9582,11 +9582,11 @@ const getSearchParams = (url, params, baseUrl) => {
9582
9582
  }
9583
9583
  return searchParams;
9584
9584
  };
9585
- const _hoisted_1$U = {
9585
+ const _hoisted_1$V = {
9586
9586
  key: 0,
9587
9587
  id: "lupa-search-results-did-you-mean"
9588
9588
  };
9589
- const _hoisted_2$D = {
9589
+ const _hoisted_2$E = {
9590
9590
  key: 0,
9591
9591
  "data-cy": "suggested-search-text-label"
9592
9592
  };
@@ -9595,7 +9595,7 @@ const _hoisted_3$u = {
9595
9595
  "data-cy": "did-you-mean-label"
9596
9596
  };
9597
9597
  const _hoisted_4$m = { key: 1 };
9598
- const _sfc_main$X = /* @__PURE__ */ defineComponent({
9598
+ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
9599
9599
  __name: "SearchResultsDidYouMean",
9600
9600
  props: {
9601
9601
  labels: {}
@@ -9627,8 +9627,8 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
9627
9627
  paramStore.goToResults({ searchText, facet });
9628
9628
  };
9629
9629
  return (_ctx, _cache) => {
9630
- return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$U, [
9631
- unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$D, [
9630
+ return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$V, [
9631
+ unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$E, [
9632
9632
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
9633
9633
  return openBlock(), createElementBlock("span", { key: index }, [
9634
9634
  createBaseVNode("span", {
@@ -9653,12 +9653,12 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
9653
9653
  };
9654
9654
  }
9655
9655
  });
9656
- const _hoisted_1$T = {
9656
+ const _hoisted_1$U = {
9657
9657
  key: 0,
9658
9658
  class: "lupa-search-results-summary"
9659
9659
  };
9660
- const _hoisted_2$C = ["innerHTML"];
9661
- const _sfc_main$W = /* @__PURE__ */ defineComponent({
9660
+ const _hoisted_2$D = ["innerHTML"];
9661
+ const _sfc_main$X = /* @__PURE__ */ defineComponent({
9662
9662
  __name: "SearchResultsSummary",
9663
9663
  props: {
9664
9664
  label: {},
@@ -9673,8 +9673,8 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
9673
9673
  return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
9674
9674
  });
9675
9675
  return (_ctx, _cache) => {
9676
- return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$T, [
9677
- createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$C),
9676
+ return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$U, [
9677
+ createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$D),
9678
9678
  _ctx.clearable ? (openBlock(), createElementBlock("span", {
9679
9679
  key: 0,
9680
9680
  class: "lupa-filter-clear",
@@ -9685,18 +9685,18 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
9685
9685
  };
9686
9686
  }
9687
9687
  });
9688
- const _hoisted_1$S = {
9688
+ const _hoisted_1$T = {
9689
9689
  key: 0,
9690
9690
  class: "lupa-result-page-title",
9691
9691
  "data-cy": "lupa-result-page-title"
9692
9692
  };
9693
- const _hoisted_2$B = { key: 0 };
9693
+ const _hoisted_2$C = { key: 0 };
9694
9694
  const _hoisted_3$t = {
9695
9695
  key: 1,
9696
9696
  class: "lupa-results-total-count"
9697
9697
  };
9698
9698
  const _hoisted_4$l = ["innerHTML"];
9699
- const _sfc_main$V = /* @__PURE__ */ defineComponent({
9699
+ const _sfc_main$W = /* @__PURE__ */ defineComponent({
9700
9700
  __name: "SearchResultsTitle",
9701
9701
  props: {
9702
9702
  options: {},
@@ -9731,12 +9731,12 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
9731
9731
  });
9732
9732
  return (_ctx, _cache) => {
9733
9733
  return openBlock(), createElementBlock("div", null, [
9734
- showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$S, [
9734
+ showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$T, [
9735
9735
  createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
9736
- queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$B, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
9736
+ queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$C, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
9737
9737
  showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$t, "(" + toDisplayString(unref(totalItems)) + ")", 1)) : createCommentVNode("", true)
9738
9738
  ])) : createCommentVNode("", true),
9739
- _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$W, {
9739
+ _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$X, {
9740
9740
  key: 1,
9741
9741
  label: summaryLabel.value
9742
9742
  }, null, 8, ["label"])) : createCommentVNode("", true),
@@ -9749,8 +9749,8 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
9749
9749
  };
9750
9750
  }
9751
9751
  });
9752
- const _hoisted_1$R = { class: "lupa-search-result-filter-value" };
9753
- const _hoisted_2$A = {
9752
+ const _hoisted_1$S = { class: "lupa-search-result-filter-value" };
9753
+ const _hoisted_2$B = {
9754
9754
  class: "lupa-current-filter-label",
9755
9755
  "data-cy": "lupa-current-filter-label"
9756
9756
  };
@@ -9758,7 +9758,7 @@ const _hoisted_3$s = {
9758
9758
  class: "lupa-current-filter-value",
9759
9759
  "data-cy": "lupa-current-filter-value"
9760
9760
  };
9761
- const _sfc_main$U = /* @__PURE__ */ defineComponent({
9761
+ const _sfc_main$V = /* @__PURE__ */ defineComponent({
9762
9762
  __name: "CurrentFilterDisplay",
9763
9763
  props: {
9764
9764
  filter: {}
@@ -9770,19 +9770,19 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
9770
9770
  emit2("remove", { filter: props.filter });
9771
9771
  };
9772
9772
  return (_ctx, _cache) => {
9773
- return openBlock(), createElementBlock("div", _hoisted_1$R, [
9773
+ return openBlock(), createElementBlock("div", _hoisted_1$S, [
9774
9774
  createBaseVNode("div", {
9775
9775
  class: "lupa-current-filter-action",
9776
9776
  onClick: handleClick
9777
9777
  }, "⨉"),
9778
- createBaseVNode("div", _hoisted_2$A, toDisplayString(_ctx.filter.label) + ": ", 1),
9778
+ createBaseVNode("div", _hoisted_2$B, toDisplayString(_ctx.filter.label) + ": ", 1),
9779
9779
  createBaseVNode("div", _hoisted_3$s, toDisplayString(_ctx.filter.value), 1)
9780
9780
  ]);
9781
9781
  };
9782
9782
  }
9783
9783
  });
9784
- const _hoisted_1$Q = { class: "lupa-filter-title-text" };
9785
- const _hoisted_2$z = {
9784
+ const _hoisted_1$R = { class: "lupa-filter-title-text" };
9785
+ const _hoisted_2$A = {
9786
9786
  key: 0,
9787
9787
  class: "lupa-filter-count"
9788
9788
  };
@@ -9791,7 +9791,7 @@ const _hoisted_3$r = {
9791
9791
  class: "filter-values"
9792
9792
  };
9793
9793
  const _hoisted_4$k = { class: "lupa-current-filter-list" };
9794
- const _sfc_main$T = /* @__PURE__ */ defineComponent({
9794
+ const _sfc_main$U = /* @__PURE__ */ defineComponent({
9795
9795
  __name: "CurrentFilters",
9796
9796
  props: {
9797
9797
  options: {},
@@ -9846,9 +9846,9 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
9846
9846
  class: "lupa-current-filter-title",
9847
9847
  onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
9848
9848
  }, [
9849
- createBaseVNode("div", _hoisted_1$Q, [
9849
+ createBaseVNode("div", _hoisted_1$R, [
9850
9850
  createTextVNode(toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
9851
- _ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$z, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
9851
+ _ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$A, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
9852
9852
  ]),
9853
9853
  _ctx.expandable ? (openBlock(), createElementBlock("div", {
9854
9854
  key: 0,
@@ -9858,7 +9858,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
9858
9858
  !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$r, [
9859
9859
  createBaseVNode("div", _hoisted_4$k, [
9860
9860
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(displayFilters), (filter) => {
9861
- return openBlock(), createBlock(_sfc_main$U, {
9861
+ return openBlock(), createBlock(_sfc_main$V, {
9862
9862
  key: filter.key + "_" + filter.value,
9863
9863
  filter,
9864
9864
  onRemove: handleRemove
@@ -9875,8 +9875,8 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
9875
9875
  };
9876
9876
  }
9877
9877
  });
9878
- const _hoisted_1$P = ["href"];
9879
- const _sfc_main$S = /* @__PURE__ */ defineComponent({
9878
+ const _hoisted_1$Q = ["href"];
9879
+ const _sfc_main$T = /* @__PURE__ */ defineComponent({
9880
9880
  __name: "CategoryFilterItem",
9881
9881
  props: {
9882
9882
  options: {},
@@ -9913,20 +9913,20 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
9913
9913
  "data-cy": "lupa-child-category-item",
9914
9914
  href: urlLink.value,
9915
9915
  onClick: handleNavigation
9916
- }, toDisplayString(title.value), 9, _hoisted_1$P)
9916
+ }, toDisplayString(title.value), 9, _hoisted_1$Q)
9917
9917
  ], 2);
9918
9918
  };
9919
9919
  }
9920
9920
  });
9921
- const _hoisted_1$O = {
9921
+ const _hoisted_1$P = {
9922
9922
  class: "lupa-category-filter",
9923
9923
  "data-cy": "lupa-category-filter"
9924
9924
  };
9925
- const _hoisted_2$y = { class: "lupa-category-back" };
9925
+ const _hoisted_2$z = { class: "lupa-category-back" };
9926
9926
  const _hoisted_3$q = ["href"];
9927
9927
  const _hoisted_4$j = ["href"];
9928
9928
  const _hoisted_5$c = { class: "lupa-child-category-list" };
9929
- const _sfc_main$R = /* @__PURE__ */ defineComponent({
9929
+ const _sfc_main$S = /* @__PURE__ */ defineComponent({
9930
9930
  __name: "CategoryFilter",
9931
9931
  props: {
9932
9932
  options: {}
@@ -10012,8 +10012,8 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
10012
10012
  };
10013
10013
  __expose({ fetch: fetch2 });
10014
10014
  return (_ctx, _cache) => {
10015
- return openBlock(), createElementBlock("div", _hoisted_1$O, [
10016
- createBaseVNode("div", _hoisted_2$y, [
10015
+ return openBlock(), createElementBlock("div", _hoisted_1$P, [
10016
+ createBaseVNode("div", _hoisted_2$z, [
10017
10017
  hasBackButton.value ? (openBlock(), createElementBlock("a", {
10018
10018
  key: 0,
10019
10019
  "data-cy": "lupa-category-back",
@@ -10033,7 +10033,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
10033
10033
  ], 2),
10034
10034
  createBaseVNode("div", _hoisted_5$c, [
10035
10035
  (openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
10036
- return openBlock(), createBlock(_sfc_main$S, {
10036
+ return openBlock(), createBlock(_sfc_main$T, {
10037
10037
  key: getCategoryKey(child),
10038
10038
  item: child,
10039
10039
  options: _ctx.options
@@ -10044,11 +10044,11 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
10044
10044
  };
10045
10045
  }
10046
10046
  });
10047
- const _hoisted_1$N = {
10047
+ const _hoisted_1$O = {
10048
10048
  class: "lupa-search-result-facet-term-values",
10049
10049
  "data-cy": "lupa-search-result-facet-term-values"
10050
10050
  };
10051
- const _hoisted_2$x = ["placeholder"];
10051
+ const _hoisted_2$y = ["placeholder"];
10052
10052
  const _hoisted_3$p = { class: "lupa-terms-list" };
10053
10053
  const _hoisted_4$i = ["onClick"];
10054
10054
  const _hoisted_5$b = { class: "lupa-term-checkbox-wrapper" };
@@ -10060,7 +10060,7 @@ const _hoisted_8$1 = {
10060
10060
  };
10061
10061
  const _hoisted_9$1 = { key: 0 };
10062
10062
  const _hoisted_10$1 = { key: 1 };
10063
- const _sfc_main$Q = /* @__PURE__ */ defineComponent({
10063
+ const _sfc_main$R = /* @__PURE__ */ defineComponent({
10064
10064
  __name: "TermFacet",
10065
10065
  props: {
10066
10066
  options: {},
@@ -10129,14 +10129,14 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
10129
10129
  return selectedItems == null ? void 0 : selectedItems.includes((_b = item.title) == null ? void 0 : _b.toString());
10130
10130
  };
10131
10131
  return (_ctx, _cache) => {
10132
- return openBlock(), createElementBlock("div", _hoisted_1$N, [
10132
+ return openBlock(), createElementBlock("div", _hoisted_1$O, [
10133
10133
  isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
10134
10134
  key: 0,
10135
10135
  class: "lupa-term-filter",
10136
10136
  "data-cy": "lupa-term-filter",
10137
10137
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
10138
10138
  placeholder: _ctx.options.labels.facetFilter
10139
- }, null, 8, _hoisted_2$x)), [
10139
+ }, null, 8, _hoisted_2$y)), [
10140
10140
  [vModelText, termFilter.value]
10141
10141
  ]) : createCommentVNode("", true),
10142
10142
  createBaseVNode("div", _hoisted_3$p, [
@@ -11147,8 +11147,8 @@ var m = { name: "Slider", emits: ["input", "update:modelValue", "start", "slide"
11147
11147
  m.render = function(e, t, r, i, n, o) {
11148
11148
  return openBlock(), createElementBlock("div", mergeProps(e.sliderProps, { ref: "slider" }), null, 16);
11149
11149
  }, m.__file = "src/Slider.vue";
11150
- const _hoisted_1$M = { class: "lupa-search-result-facet-stats-values" };
11151
- const _hoisted_2$w = {
11150
+ const _hoisted_1$N = { class: "lupa-search-result-facet-stats-values" };
11151
+ const _hoisted_2$x = {
11152
11152
  key: 0,
11153
11153
  class: "lupa-stats-facet-summary"
11154
11154
  };
@@ -11175,7 +11175,7 @@ const _hoisted_13 = {
11175
11175
  key: 2,
11176
11176
  class: "lupa-stats-slider-wrapper"
11177
11177
  };
11178
- const _sfc_main$P = /* @__PURE__ */ defineComponent({
11178
+ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
11179
11179
  __name: "StatsFacet",
11180
11180
  props: {
11181
11181
  options: {},
@@ -11323,8 +11323,8 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
11323
11323
  innerSliderRange.value = value;
11324
11324
  };
11325
11325
  return (_ctx, _cache) => {
11326
- return openBlock(), createElementBlock("div", _hoisted_1$M, [
11327
- !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$w, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$o, [
11326
+ return openBlock(), createElementBlock("div", _hoisted_1$N, [
11327
+ !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$x, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$o, [
11328
11328
  createBaseVNode("div", null, [
11329
11329
  rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$h, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
11330
11330
  createBaseVNode("div", _hoisted_5$a, [
@@ -11387,8 +11387,8 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
11387
11387
  };
11388
11388
  }
11389
11389
  });
11390
- const _hoisted_1$L = { class: "lupa-term-checkbox-wrapper" };
11391
- const _hoisted_2$v = { class: "lupa-term-checkbox-label" };
11390
+ const _hoisted_1$M = { class: "lupa-term-checkbox-wrapper" };
11391
+ const _hoisted_2$w = { class: "lupa-term-checkbox-label" };
11392
11392
  const _hoisted_3$n = { class: "lupa-term-label" };
11393
11393
  const _hoisted_4$g = {
11394
11394
  key: 0,
@@ -11398,7 +11398,7 @@ const _hoisted_5$9 = {
11398
11398
  key: 0,
11399
11399
  class: "lupa-facet-level"
11400
11400
  };
11401
- const _sfc_main$O = /* @__PURE__ */ defineComponent({
11401
+ const _sfc_main$P = /* @__PURE__ */ defineComponent({
11402
11402
  __name: "HierarchyFacetLevel",
11403
11403
  props: {
11404
11404
  options: {},
@@ -11444,12 +11444,12 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
11444
11444
  "data-cy": "lupa-facet-term",
11445
11445
  onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
11446
11446
  }, [
11447
- createBaseVNode("div", _hoisted_1$L, [
11447
+ createBaseVNode("div", _hoisted_1$M, [
11448
11448
  createBaseVNode("span", {
11449
11449
  class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
11450
11450
  }, null, 2)
11451
11451
  ]),
11452
- createBaseVNode("div", _hoisted_2$v, [
11452
+ createBaseVNode("div", _hoisted_2$w, [
11453
11453
  createBaseVNode("span", _hoisted_3$n, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
11454
11454
  _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$g, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
11455
11455
  ])
@@ -11470,13 +11470,13 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
11470
11470
  };
11471
11471
  }
11472
11472
  });
11473
- const _hoisted_1$K = {
11473
+ const _hoisted_1$L = {
11474
11474
  class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
11475
11475
  "data-cy": "lupa-search-result-facet-term-values"
11476
11476
  };
11477
- const _hoisted_2$u = { key: 0 };
11477
+ const _hoisted_2$v = { key: 0 };
11478
11478
  const _hoisted_3$m = ["placeholder"];
11479
- const _sfc_main$N = /* @__PURE__ */ defineComponent({
11479
+ const _sfc_main$O = /* @__PURE__ */ defineComponent({
11480
11480
  __name: "HierarchyFacet",
11481
11481
  props: {
11482
11482
  options: {},
@@ -11526,8 +11526,8 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
11526
11526
  showAll.value = true;
11527
11527
  };
11528
11528
  return (_ctx, _cache) => {
11529
- return openBlock(), createElementBlock("div", _hoisted_1$K, [
11530
- isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$u, [
11529
+ return openBlock(), createElementBlock("div", _hoisted_1$L, [
11530
+ isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$v, [
11531
11531
  withDirectives(createBaseVNode("input", {
11532
11532
  class: "lupa-term-filter",
11533
11533
  "data-cy": "lupa-term-filter",
@@ -11538,7 +11538,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
11538
11538
  ])
11539
11539
  ])) : createCommentVNode("", true),
11540
11540
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
11541
- return openBlock(), createBlock(_sfc_main$O, {
11541
+ return openBlock(), createBlock(_sfc_main$P, {
11542
11542
  key: item.title,
11543
11543
  options: _ctx.options,
11544
11544
  item,
@@ -11558,20 +11558,20 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
11558
11558
  };
11559
11559
  }
11560
11560
  });
11561
- const _hoisted_1$J = { class: "lupa-facet-label-text" };
11562
- const _hoisted_2$t = {
11561
+ const _hoisted_1$K = { class: "lupa-facet-label-text" };
11562
+ const _hoisted_2$u = {
11563
11563
  key: 0,
11564
11564
  class: "lupa-facet-content",
11565
11565
  "data-cy": "lupa-facet-content"
11566
11566
  };
11567
11567
  const __default__$2 = {
11568
11568
  components: {
11569
- TermFacet: _sfc_main$Q,
11570
- StatsFacet: _sfc_main$P,
11571
- HierarchyFacet: _sfc_main$N
11569
+ TermFacet: _sfc_main$R,
11570
+ StatsFacet: _sfc_main$Q,
11571
+ HierarchyFacet: _sfc_main$O
11572
11572
  }
11573
11573
  };
11574
- const _sfc_main$M = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
11574
+ const _sfc_main$N = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
11575
11575
  __name: "FacetDisplay",
11576
11576
  props: {
11577
11577
  options: {},
@@ -11682,12 +11682,12 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
11682
11682
  "data-cy": "lupa-search-result-facet-label",
11683
11683
  onClick: toggleFacet
11684
11684
  }, [
11685
- createBaseVNode("div", _hoisted_1$J, toDisplayString(facet.value.label), 1),
11685
+ createBaseVNode("div", _hoisted_1$K, toDisplayString(facet.value.label), 1),
11686
11686
  createBaseVNode("div", {
11687
11687
  class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
11688
11688
  }, null, 2)
11689
11689
  ], 2),
11690
- isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$t, [
11690
+ isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$u, [
11691
11691
  (openBlock(), createBlock(resolveDynamicComponent(facetType.value), {
11692
11692
  facet: facet.value,
11693
11693
  currentFilters: currentFilters.value[facet.value.key],
@@ -11705,12 +11705,12 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
11705
11705
  };
11706
11706
  }
11707
11707
  }));
11708
- const _hoisted_1$I = { class: "lupa-search-result-facet-section" };
11709
- const _hoisted_2$s = {
11708
+ const _hoisted_1$J = { class: "lupa-search-result-facet-section" };
11709
+ const _hoisted_2$t = {
11710
11710
  key: 0,
11711
11711
  class: "lupa-facets-title"
11712
11712
  };
11713
- const _sfc_main$L = /* @__PURE__ */ defineComponent({
11713
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
11714
11714
  __name: "FacetList",
11715
11715
  props: {
11716
11716
  options: {},
@@ -11744,14 +11744,14 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
11744
11744
  };
11745
11745
  return (_ctx, _cache) => {
11746
11746
  var _a;
11747
- return openBlock(), createElementBlock("div", _hoisted_1$I, [
11748
- _ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$s, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
11747
+ return openBlock(), createElementBlock("div", _hoisted_1$J, [
11748
+ _ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$t, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
11749
11749
  createBaseVNode("div", {
11750
11750
  class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
11751
11751
  }, [
11752
11752
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
11753
11753
  var _a2;
11754
- return openBlock(), createBlock(_sfc_main$M, {
11754
+ return openBlock(), createBlock(_sfc_main$N, {
11755
11755
  key: facet.key,
11756
11756
  facet,
11757
11757
  currentFilters: currentFiltersValue.value,
@@ -11766,8 +11766,8 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
11766
11766
  };
11767
11767
  }
11768
11768
  });
11769
- const _hoisted_1$H = { class: "lupa-search-result-facets" };
11770
- const _sfc_main$K = /* @__PURE__ */ defineComponent({
11769
+ const _hoisted_1$I = { class: "lupa-search-result-facets" };
11770
+ const _sfc_main$L = /* @__PURE__ */ defineComponent({
11771
11771
  __name: "Facets",
11772
11772
  props: {
11773
11773
  options: {},
@@ -11813,8 +11813,8 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
11813
11813
  paramStore.removeParameters({ paramsToRemove: [param] });
11814
11814
  };
11815
11815
  return (_ctx, _cache) => {
11816
- return openBlock(), createElementBlock("div", _hoisted_1$H, [
11817
- regularFacets.value ? (openBlock(), createBlock(_sfc_main$L, {
11816
+ return openBlock(), createElementBlock("div", _hoisted_1$I, [
11817
+ regularFacets.value ? (openBlock(), createBlock(_sfc_main$M, {
11818
11818
  key: 0,
11819
11819
  options: _ctx.options,
11820
11820
  facets: regularFacets.value,
@@ -11828,11 +11828,11 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
11828
11828
  };
11829
11829
  }
11830
11830
  });
11831
- const _hoisted_1$G = {
11831
+ const _hoisted_1$H = {
11832
11832
  id: "lupa-search-result-filters",
11833
11833
  class: "lupa-search-result-filters"
11834
11834
  };
11835
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
11835
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
11836
11836
  __name: "SearchResultsFilters",
11837
11837
  props: {
11838
11838
  options: {},
@@ -11861,19 +11861,19 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
11861
11861
  __expose({ fetch: fetch2 });
11862
11862
  return (_ctx, _cache) => {
11863
11863
  var _a;
11864
- return openBlock(), createElementBlock("div", _hoisted_1$G, [
11865
- showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$T, {
11864
+ return openBlock(), createElementBlock("div", _hoisted_1$H, [
11865
+ showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$U, {
11866
11866
  key: 0,
11867
11867
  options: _ctx.options.currentFilters,
11868
11868
  expandable: (_a = _ctx.expandable) != null ? _a : false
11869
11869
  }, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
11870
- _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$R, {
11870
+ _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$S, {
11871
11871
  key: 1,
11872
11872
  options: _ctx.options.categories,
11873
11873
  ref_key: "categoryFilters",
11874
11874
  ref: categoryFilters
11875
11875
  }, null, 8, ["options"])) : createCommentVNode("", true),
11876
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$K, {
11876
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$L, {
11877
11877
  key: 2,
11878
11878
  options: _ctx.options.facets
11879
11879
  }, null, 8, ["options"])) : createCommentVNode("", true)
@@ -11881,11 +11881,11 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
11881
11881
  };
11882
11882
  }
11883
11883
  });
11884
- const _hoisted_1$F = {
11884
+ const _hoisted_1$G = {
11885
11885
  key: 0,
11886
11886
  class: "lupa-mobile-filter-sidebar"
11887
11887
  };
11888
- const _hoisted_2$r = ["onClick"];
11888
+ const _hoisted_2$s = ["onClick"];
11889
11889
  const _hoisted_3$l = { class: "lupa-mobile-sidebar-content" };
11890
11890
  const _hoisted_4$f = { class: "lupa-sidebar-top" };
11891
11891
  const _hoisted_5$8 = { class: "lupa-sidebar-title" };
@@ -11894,7 +11894,7 @@ const _hoisted_6$5 = {
11894
11894
  class: "lupa-sidebar-filter-count"
11895
11895
  };
11896
11896
  const _hoisted_7$4 = { class: "lupa-sidebar-filter-options" };
11897
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
11897
+ const _sfc_main$J = /* @__PURE__ */ defineComponent({
11898
11898
  __name: "MobileFilterSidebar",
11899
11899
  props: {
11900
11900
  options: {}
@@ -11920,11 +11920,11 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
11920
11920
  searchResultStore.setSidebarState({ visible: false });
11921
11921
  };
11922
11922
  return (_ctx, _cache) => {
11923
- return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$F, [
11923
+ return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$G, [
11924
11924
  createBaseVNode("div", {
11925
11925
  class: "lupa-sidebar-close",
11926
11926
  onClick: withModifiers(handleMobileToggle, ["stop"])
11927
- }, null, 8, _hoisted_2$r),
11927
+ }, null, 8, _hoisted_2$s),
11928
11928
  createBaseVNode("div", _hoisted_3$l, [
11929
11929
  createBaseVNode("div", _hoisted_4$f, [
11930
11930
  createBaseVNode("div", _hoisted_5$8, [
@@ -11937,7 +11937,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
11937
11937
  })
11938
11938
  ]),
11939
11939
  createBaseVNode("div", _hoisted_7$4, [
11940
- createVNode(_sfc_main$J, {
11940
+ createVNode(_sfc_main$K, {
11941
11941
  options: _ctx.options,
11942
11942
  expandable: isActiveFiltersExpanded.value
11943
11943
  }, null, 8, ["options", "expandable"])
@@ -11947,14 +11947,14 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
11947
11947
  };
11948
11948
  }
11949
11949
  });
11950
- const _hoisted_1$E = { id: "lupa-search-results-breadcrumbs" };
11951
- const _hoisted_2$q = ["href", "onClick"];
11950
+ const _hoisted_1$F = { id: "lupa-search-results-breadcrumbs" };
11951
+ const _hoisted_2$r = ["href", "onClick"];
11952
11952
  const _hoisted_3$k = {
11953
11953
  key: 1,
11954
11954
  class: "lupa-search-results-breadcrumb-text"
11955
11955
  };
11956
11956
  const _hoisted_4$e = { key: 2 };
11957
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
11957
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
11958
11958
  __name: "SearchResultsBreadcrumbs",
11959
11959
  props: {
11960
11960
  breadcrumbs: {}
@@ -11979,7 +11979,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
11979
11979
  handleRoutingEvent(link, event, hasEventRouting.value);
11980
11980
  };
11981
11981
  return (_ctx, _cache) => {
11982
- return openBlock(), createElementBlock("div", _hoisted_1$E, [
11982
+ return openBlock(), createElementBlock("div", _hoisted_1$F, [
11983
11983
  (openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
11984
11984
  return openBlock(), createElementBlock("span", {
11985
11985
  class: "lupa-search-results-breadcrumb",
@@ -11993,7 +11993,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
11993
11993
  var _a;
11994
11994
  return handleNavigation(e, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
11995
11995
  }
11996
- }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$q)) : (openBlock(), createElementBlock("span", _hoisted_3$k, toDisplayString(getLabel(breadcrumb.label)), 1)),
11996
+ }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$r)) : (openBlock(), createElementBlock("span", _hoisted_3$k, toDisplayString(getLabel(breadcrumb.label)), 1)),
11997
11997
  index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$e, " / ")) : createCommentVNode("", true)
11998
11998
  ]);
11999
11999
  }), 128))
@@ -12001,11 +12001,11 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
12001
12001
  };
12002
12002
  }
12003
12003
  });
12004
- const _hoisted_1$D = {
12004
+ const _hoisted_1$E = {
12005
12005
  id: "lupa-search-result-filters",
12006
12006
  class: "lupa-search-result-filters"
12007
12007
  };
12008
- const _sfc_main$G = /* @__PURE__ */ defineComponent({
12008
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
12009
12009
  __name: "FiltersTopDropdown",
12010
12010
  props: {
12011
12011
  options: {}
@@ -12013,8 +12013,8 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
12013
12013
  setup(__props) {
12014
12014
  return (_ctx, _cache) => {
12015
12015
  var _a;
12016
- return openBlock(), createElementBlock("div", _hoisted_1$D, [
12017
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$K, {
12016
+ return openBlock(), createElementBlock("div", _hoisted_1$E, [
12017
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$L, {
12018
12018
  key: 0,
12019
12019
  options: _ctx.options.facets,
12020
12020
  "facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
@@ -12024,8 +12024,8 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
12024
12024
  };
12025
12025
  }
12026
12026
  });
12027
- const _hoisted_1$C = { id: "lupa-search-results-layout-selection" };
12028
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
12027
+ const _hoisted_1$D = { id: "lupa-search-results-layout-selection" };
12028
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
12029
12029
  __name: "SearchResultsLayoutSelection",
12030
12030
  setup(__props) {
12031
12031
  const searchResultStore = useSearchResultStore();
@@ -12036,7 +12036,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
12036
12036
  searchResultStore.setLayout(layout2);
12037
12037
  };
12038
12038
  return (_ctx, _cache) => {
12039
- return openBlock(), createElementBlock("div", _hoisted_1$C, [
12039
+ return openBlock(), createElementBlock("div", _hoisted_1$D, [
12040
12040
  createBaseVNode("div", {
12041
12041
  class: normalizeClass([
12042
12042
  "lupa-layout-selection-grid",
@@ -12058,11 +12058,11 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
12058
12058
  };
12059
12059
  }
12060
12060
  });
12061
- const _hoisted_1$B = {
12061
+ const _hoisted_1$C = {
12062
12062
  key: 0,
12063
12063
  class: "lupa-mobile-toggle-filter-count"
12064
12064
  };
12065
- const _sfc_main$E = /* @__PURE__ */ defineComponent({
12065
+ const _sfc_main$F = /* @__PURE__ */ defineComponent({
12066
12066
  __name: "SearchResultsMobileToggle",
12067
12067
  props: {
12068
12068
  label: {},
@@ -12080,17 +12080,17 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
12080
12080
  onClick: handleMobileToggle
12081
12081
  }, [
12082
12082
  createTextVNode(toDisplayString(_ctx.label) + " ", 1),
12083
- _ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$B, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
12083
+ _ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$C, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
12084
12084
  ], 2);
12085
12085
  };
12086
12086
  }
12087
12087
  });
12088
- const _hoisted_1$A = {
12088
+ const _hoisted_1$B = {
12089
12089
  key: 0,
12090
12090
  id: "lupa-search-results-page-select",
12091
12091
  "data-cy": "lupa-search-results-page-select"
12092
12092
  };
12093
- const _hoisted_2$p = {
12093
+ const _hoisted_2$q = {
12094
12094
  key: 0,
12095
12095
  class: "lupa-page-number-separator"
12096
12096
  };
@@ -12099,7 +12099,7 @@ const _hoisted_4$d = {
12099
12099
  key: 0,
12100
12100
  class: "lupa-page-number-separator"
12101
12101
  };
12102
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
12102
+ const _sfc_main$E = /* @__PURE__ */ defineComponent({
12103
12103
  __name: "SearchResultsPageSelect",
12104
12104
  props: {
12105
12105
  lastPageLabel: {},
@@ -12161,7 +12161,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
12161
12161
  }
12162
12162
  };
12163
12163
  return (_ctx, _cache) => {
12164
- return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$A, [
12164
+ return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$B, [
12165
12165
  showBack.value ? (openBlock(), createElementBlock("div", {
12166
12166
  key: 0,
12167
12167
  class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
@@ -12172,7 +12172,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
12172
12172
  class: "lupa-page-number lupa-page-number-first",
12173
12173
  onClick: _cache[1] || (_cache[1] = () => handlePageChange(1))
12174
12174
  }, " 1 "),
12175
- showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$p, "...")) : createCommentVNode("", true)
12175
+ showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$q, "...")) : createCommentVNode("", true)
12176
12176
  ], 64)) : createCommentVNode("", true),
12177
12177
  (openBlock(true), createElementBlock(Fragment, null, renderList(pages.value, (page) => {
12178
12178
  return openBlock(), createElementBlock("div", {
@@ -12205,13 +12205,13 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
12205
12205
  };
12206
12206
  }
12207
12207
  });
12208
- const _hoisted_1$z = {
12208
+ const _hoisted_1$A = {
12209
12209
  id: "lupa-search-results-page-size",
12210
12210
  "data-cy": "lupa-search-results-page-size"
12211
12211
  };
12212
- const _hoisted_2$o = { id: "lupa-select" };
12212
+ const _hoisted_2$p = { id: "lupa-select" };
12213
12213
  const _hoisted_3$i = { class: "lupa-select-label" };
12214
- const _sfc_main$C = /* @__PURE__ */ defineComponent({
12214
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
12215
12215
  __name: "SearchResultsPageSize",
12216
12216
  props: {
12217
12217
  label: {},
@@ -12228,8 +12228,8 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
12228
12228
  });
12229
12229
  };
12230
12230
  return (_ctx, _cache) => {
12231
- return openBlock(), createElementBlock("div", _hoisted_1$z, [
12232
- createBaseVNode("div", _hoisted_2$o, [
12231
+ return openBlock(), createElementBlock("div", _hoisted_1$A, [
12232
+ createBaseVNode("div", _hoisted_2$p, [
12233
12233
  createBaseVNode("label", _hoisted_3$i, toDisplayString(_ctx.label), 1),
12234
12234
  createBaseVNode("select", {
12235
12235
  class: "lupa-select-dropdown",
@@ -12247,14 +12247,14 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
12247
12247
  };
12248
12248
  }
12249
12249
  });
12250
- const _hoisted_1$y = {
12250
+ const _hoisted_1$z = {
12251
12251
  id: "lupa-search-results-sort",
12252
12252
  class: "lupa-search-results-sort"
12253
12253
  };
12254
- const _hoisted_2$n = { id: "lupa-select" };
12254
+ const _hoisted_2$o = { id: "lupa-select" };
12255
12255
  const _hoisted_3$h = { class: "lupa-select-label" };
12256
12256
  const _hoisted_4$c = ["value"];
12257
- const _sfc_main$B = /* @__PURE__ */ defineComponent({
12257
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
12258
12258
  __name: "SearchResultsSort",
12259
12259
  props: {
12260
12260
  options: {},
@@ -12265,6 +12265,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
12265
12265
  const paramStore = useParamsStore();
12266
12266
  const { sort } = storeToRefs(paramStore);
12267
12267
  const selectedKey = ref("");
12268
+ const previousKey = ref("");
12268
12269
  const sortItems = computed(() => {
12269
12270
  if (props.options.options && props.options.options.length) {
12270
12271
  return props.options.options;
@@ -12280,6 +12281,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
12280
12281
  var _a, _b;
12281
12282
  const optionToSelect = (_a = sortItems.value.find((x) => x.key === sort.value)) == null ? void 0 : _a.key;
12282
12283
  selectedKey.value = optionToSelect != null ? optionToSelect : (_b = defaultSortValue.value) == null ? void 0 : _b.key;
12284
+ previousKey.value = selectedKey.value;
12283
12285
  };
12284
12286
  watch(sort, () => setSortValue());
12285
12287
  onMounted(() => {
@@ -12291,15 +12293,16 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
12291
12293
  if (!value) {
12292
12294
  return;
12293
12295
  }
12294
- (_c = (_b = props.callbacks) == null ? void 0 : _b.onSortChange) == null ? void 0 : _c.call(_b, { selectedSortKey: value });
12296
+ (_c = (_b = props.callbacks) == null ? void 0 : _b.onSortChange) == null ? void 0 : _c.call(_b, { selectedSortKey: value, previousSortKey: previousKey.value });
12295
12297
  paramStore.appendParams({
12296
12298
  params: [{ name: QUERY_PARAMS$1.SORT, value }],
12297
12299
  paramsToRemove: [QUERY_PARAMS$1.PAGE]
12298
12300
  });
12301
+ previousKey.value = selectedKey.value;
12299
12302
  };
12300
12303
  return (_ctx, _cache) => {
12301
- return openBlock(), createElementBlock("div", _hoisted_1$y, [
12302
- createBaseVNode("div", _hoisted_2$n, [
12304
+ return openBlock(), createElementBlock("div", _hoisted_1$z, [
12305
+ createBaseVNode("div", _hoisted_2$o, [
12303
12306
  createBaseVNode("label", _hoisted_3$h, toDisplayString(_ctx.options.label), 1),
12304
12307
  withDirectives(createBaseVNode("select", {
12305
12308
  class: "lupa-select-dropdown",
@@ -12322,14 +12325,14 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
12322
12325
  };
12323
12326
  }
12324
12327
  });
12325
- const _hoisted_1$x = { class: "lupa-toolbar-left" };
12326
- const _hoisted_2$m = { key: 1 };
12328
+ const _hoisted_1$y = { class: "lupa-toolbar-left" };
12329
+ const _hoisted_2$n = { key: 1 };
12327
12330
  const _hoisted_3$g = { key: 3 };
12328
12331
  const _hoisted_4$b = { key: 5 };
12329
12332
  const _hoisted_5$7 = { class: "lupa-toolbar-right" };
12330
12333
  const _hoisted_6$4 = { key: 1 };
12331
12334
  const _hoisted_7$3 = { key: 3 };
12332
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
12335
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
12333
12336
  __name: "SearchResultsToolbar",
12334
12337
  props: {
12335
12338
  options: {},
@@ -12428,15 +12431,15 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
12428
12431
  id: "lupa-search-results-toolbar",
12429
12432
  class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
12430
12433
  }, [
12431
- createBaseVNode("div", _hoisted_1$x, [
12432
- showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$F, { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_2$m)),
12433
- showItemSummary.value ? (openBlock(), createBlock(_sfc_main$W, {
12434
+ createBaseVNode("div", _hoisted_1$y, [
12435
+ showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$G, { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_2$n)),
12436
+ showItemSummary.value ? (openBlock(), createBlock(_sfc_main$X, {
12434
12437
  key: 2,
12435
12438
  label: searchSummaryLabel.value,
12436
12439
  clearable: unref(hasAnyFilter) && showFilterClear.value,
12437
12440
  onClear: handleClearAll
12438
12441
  }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_3$g)),
12439
- displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$D, {
12442
+ displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$E, {
12440
12443
  key: 4,
12441
12444
  options: paginationOptions.value.pageSelect,
12442
12445
  "last-page-label": paginationOptions.value.labels.showMore,
@@ -12444,16 +12447,16 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
12444
12447
  }, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_4$b))
12445
12448
  ]),
12446
12449
  createBaseVNode("div", _hoisted_5$7, [
12447
- createVNode(_sfc_main$E, {
12450
+ createVNode(_sfc_main$F, {
12448
12451
  label: optionsValue.value.labels.mobileFilterButton,
12449
12452
  "show-filter-count": showMobileFilterCount.value
12450
12453
  }, null, 8, ["label", "show-filter-count"]),
12451
- paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$C, {
12454
+ paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$D, {
12452
12455
  key: 0,
12453
12456
  options: paginationOptions.value.pageSize,
12454
12457
  label: paginationOptions.value.labels.pageSize
12455
12458
  }, null, 8, ["options", "label"])) : (openBlock(), createElementBlock("div", _hoisted_6$4)),
12456
- sortOptions.value ? (openBlock(), createBlock(_sfc_main$B, {
12459
+ sortOptions.value ? (openBlock(), createBlock(_sfc_main$C, {
12457
12460
  key: 2,
12458
12461
  options: sortOptions.value,
12459
12462
  callbacks: callbacks.value
@@ -12463,14 +12466,14 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
12463
12466
  };
12464
12467
  }
12465
12468
  });
12466
- const _hoisted_1$w = { class: "lupa-badge-title" };
12467
- const _hoisted_2$l = ["src"];
12469
+ const _hoisted_1$x = { class: "lupa-badge-title" };
12470
+ const _hoisted_2$m = ["src"];
12468
12471
  const _hoisted_3$f = { key: 1 };
12469
12472
  const _hoisted_4$a = {
12470
12473
  key: 0,
12471
12474
  class: "lupa-badge-full-text"
12472
12475
  };
12473
- const _sfc_main$z = /* @__PURE__ */ defineComponent({
12476
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
12474
12477
  __name: "SearchResultGeneratedBadge",
12475
12478
  props: {
12476
12479
  options: {},
@@ -12503,11 +12506,11 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
12503
12506
  class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
12504
12507
  style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
12505
12508
  }, [
12506
- createBaseVNode("span", _hoisted_1$w, [
12509
+ createBaseVNode("span", _hoisted_1$x, [
12507
12510
  image.value ? (openBlock(), createElementBlock("img", {
12508
12511
  key: 0,
12509
12512
  src: image.value
12510
- }, null, 8, _hoisted_2$l)) : createCommentVNode("", true),
12513
+ }, null, 8, _hoisted_2$m)) : createCommentVNode("", true),
12511
12514
  hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$f, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
12512
12515
  ]),
12513
12516
  hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$a, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
@@ -12515,8 +12518,8 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
12515
12518
  };
12516
12519
  }
12517
12520
  });
12518
- const _hoisted_1$v = { class: "lupa-generated-badges" };
12519
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
12521
+ const _hoisted_1$w = { class: "lupa-generated-badges" };
12522
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
12520
12523
  __name: "SearchResultGeneratedBadges",
12521
12524
  props: {
12522
12525
  options: {}
@@ -12542,9 +12545,9 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
12542
12545
  })).filter((b) => Boolean(b.id));
12543
12546
  });
12544
12547
  return (_ctx, _cache) => {
12545
- return openBlock(), createElementBlock("div", _hoisted_1$v, [
12548
+ return openBlock(), createElementBlock("div", _hoisted_1$w, [
12546
12549
  (openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
12547
- return openBlock(), createBlock(_sfc_main$z, {
12550
+ return openBlock(), createBlock(_sfc_main$A, {
12548
12551
  key: badge.id,
12549
12552
  badge,
12550
12553
  options: _ctx.options
@@ -12554,8 +12557,8 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
12554
12557
  };
12555
12558
  }
12556
12559
  });
12557
- const _hoisted_1$u = ["innerHTML"];
12558
- const _sfc_main$x = /* @__PURE__ */ defineComponent({
12560
+ const _hoisted_1$v = ["innerHTML"];
12561
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
12559
12562
  __name: "CustomBadge",
12560
12563
  props: {
12561
12564
  badge: {}
@@ -12574,12 +12577,12 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
12574
12577
  return openBlock(), createElementBlock("div", {
12575
12578
  class: normalizeClass(className.value),
12576
12579
  innerHTML: text.value
12577
- }, null, 10, _hoisted_1$u);
12580
+ }, null, 10, _hoisted_1$v);
12578
12581
  };
12579
12582
  }
12580
12583
  });
12581
- const _hoisted_1$t = { class: "lupa-text-badges" };
12582
- const _sfc_main$w = /* @__PURE__ */ defineComponent({
12584
+ const _hoisted_1$u = { class: "lupa-text-badges" };
12585
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
12583
12586
  __name: "TextBadge",
12584
12587
  props: {
12585
12588
  badge: {}
@@ -12594,7 +12597,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
12594
12597
  return badges.value.slice(0, props.badge.maxItems);
12595
12598
  });
12596
12599
  return (_ctx, _cache) => {
12597
- return openBlock(), createElementBlock("div", _hoisted_1$t, [
12600
+ return openBlock(), createElementBlock("div", _hoisted_1$u, [
12598
12601
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
12599
12602
  return openBlock(), createElementBlock("div", {
12600
12603
  class: "lupa-badge lupa-text-badge",
@@ -12605,9 +12608,9 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
12605
12608
  };
12606
12609
  }
12607
12610
  });
12608
- const _hoisted_1$s = { class: "lupa-image-badges" };
12609
- const _hoisted_2$k = ["src"];
12610
- const _sfc_main$v = /* @__PURE__ */ defineComponent({
12611
+ const _hoisted_1$t = { class: "lupa-image-badges" };
12612
+ const _hoisted_2$l = ["src"];
12613
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
12611
12614
  __name: "ImageBadge",
12612
12615
  props: {
12613
12616
  badge: {}
@@ -12627,7 +12630,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
12627
12630
  return `${props.badge.rootImageUrl}${src}`;
12628
12631
  };
12629
12632
  return (_ctx, _cache) => {
12630
- return openBlock(), createElementBlock("div", _hoisted_1$s, [
12633
+ return openBlock(), createElementBlock("div", _hoisted_1$t, [
12631
12634
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
12632
12635
  return openBlock(), createElementBlock("div", {
12633
12636
  class: "lupa-badge lupa-image-badge",
@@ -12635,22 +12638,22 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
12635
12638
  }, [
12636
12639
  createBaseVNode("img", {
12637
12640
  src: getImageUrl(item)
12638
- }, null, 8, _hoisted_2$k)
12641
+ }, null, 8, _hoisted_2$l)
12639
12642
  ]);
12640
12643
  }), 128))
12641
12644
  ]);
12642
12645
  };
12643
12646
  }
12644
12647
  });
12645
- const _hoisted_1$r = { id: "lupa-search-results-badges" };
12648
+ const _hoisted_1$s = { id: "lupa-search-results-badges" };
12646
12649
  const __default__$1 = {
12647
12650
  components: {
12648
- CustomBadge: _sfc_main$x,
12649
- TextBadge: _sfc_main$w,
12650
- ImageBadge: _sfc_main$v
12651
+ CustomBadge: _sfc_main$y,
12652
+ TextBadge: _sfc_main$x,
12653
+ ImageBadge: _sfc_main$w
12651
12654
  }
12652
12655
  };
12653
- const _sfc_main$u = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
12656
+ const _sfc_main$v = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
12654
12657
  __name: "SearchResultsBadgeWrapper",
12655
12658
  props: {
12656
12659
  position: {},
@@ -12696,7 +12699,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
12696
12699
  }
12697
12700
  };
12698
12701
  return (_ctx, _cache) => {
12699
- return openBlock(), createElementBlock("div", _hoisted_1$r, [
12702
+ return openBlock(), createElementBlock("div", _hoisted_1$s, [
12700
12703
  createBaseVNode("div", {
12701
12704
  id: "lupa-badges",
12702
12705
  class: normalizeClass(anchorPosition.value)
@@ -12707,7 +12710,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
12707
12710
  badge
12708
12711
  }, null, 8, ["badge"]);
12709
12712
  }), 128)),
12710
- positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$y, {
12713
+ positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$z, {
12711
12714
  key: 0,
12712
12715
  options: _ctx.options
12713
12716
  }, null, 8, ["options"])) : createCommentVNode("", true)
@@ -12716,7 +12719,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
12716
12719
  };
12717
12720
  }
12718
12721
  }));
12719
- const _sfc_main$t = /* @__PURE__ */ defineComponent({
12722
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
12720
12723
  __name: "SearchResultsProductImage",
12721
12724
  props: {
12722
12725
  item: {},
@@ -12724,7 +12727,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
12724
12727
  },
12725
12728
  setup(__props) {
12726
12729
  return (_ctx, _cache) => {
12727
- return openBlock(), createBlock(_sfc_main$1a, {
12730
+ return openBlock(), createBlock(_sfc_main$1b, {
12728
12731
  item: _ctx.item,
12729
12732
  options: _ctx.options,
12730
12733
  "wrapper-class": "lupa-search-results-image-wrapper",
@@ -12733,14 +12736,14 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
12733
12736
  };
12734
12737
  }
12735
12738
  });
12736
- const _hoisted_1$q = ["innerHTML"];
12737
- const _hoisted_2$j = ["title"];
12739
+ const _hoisted_1$r = ["innerHTML"];
12740
+ const _hoisted_2$k = ["title"];
12738
12741
  const _hoisted_3$e = {
12739
12742
  key: 0,
12740
12743
  class: "lupa-search-results-product-title-text"
12741
12744
  };
12742
12745
  const _hoisted_4$9 = ["href"];
12743
- const _sfc_main$s = /* @__PURE__ */ defineComponent({
12746
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
12744
12747
  __name: "SearchResultsProductTitle",
12745
12748
  props: {
12746
12749
  item: {},
@@ -12773,7 +12776,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
12773
12776
  class: "lupa-search-results-product-title",
12774
12777
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
12775
12778
  innerHTML: title.value
12776
- }, null, 12, _hoisted_1$q)) : (openBlock(), createElementBlock("div", {
12779
+ }, null, 12, _hoisted_1$r)) : (openBlock(), createElementBlock("div", {
12777
12780
  key: 1,
12778
12781
  class: "lupa-search-results-product-title",
12779
12782
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
@@ -12786,12 +12789,12 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
12786
12789
  class: "lupa-search-results-product-title-text lupa-title-link",
12787
12790
  onClick: handleNavigation
12788
12791
  }, toDisplayString(title.value), 9, _hoisted_4$9)) : createCommentVNode("", true)
12789
- ], 12, _hoisted_2$j));
12792
+ ], 12, _hoisted_2$k));
12790
12793
  };
12791
12794
  }
12792
12795
  });
12793
- const _hoisted_1$p = ["innerHTML"];
12794
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
12796
+ const _hoisted_1$q = ["innerHTML"];
12797
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
12795
12798
  __name: "SearchResultsProductDescription",
12796
12799
  props: {
12797
12800
  item: {},
@@ -12815,7 +12818,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
12815
12818
  class: "lupa-search-results-product-description",
12816
12819
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
12817
12820
  innerHTML: description.value
12818
- }, null, 12, _hoisted_1$p)) : (openBlock(), createElementBlock("div", {
12821
+ }, null, 12, _hoisted_1$q)) : (openBlock(), createElementBlock("div", {
12819
12822
  key: 1,
12820
12823
  class: "lupa-search-results-product-description",
12821
12824
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
@@ -12823,15 +12826,15 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
12823
12826
  };
12824
12827
  }
12825
12828
  });
12826
- const _hoisted_1$o = { id: "lupa-search-results-rating" };
12827
- const _hoisted_2$i = { class: "lupa-ratings" };
12829
+ const _hoisted_1$p = { id: "lupa-search-results-rating" };
12830
+ const _hoisted_2$j = { class: "lupa-ratings" };
12828
12831
  const _hoisted_3$d = { class: "lupa-ratings-base" };
12829
12832
  const _hoisted_4$8 = ["innerHTML"];
12830
12833
  const _hoisted_5$6 = { class: "lupa-rating-wrapper" };
12831
12834
  const _hoisted_6$3 = ["innerHTML"];
12832
12835
  const _hoisted_7$2 = ["href"];
12833
12836
  const STAR_COUNT = 5;
12834
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
12837
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
12835
12838
  __name: "SearchResultsProductRating",
12836
12839
  props: {
12837
12840
  item: {},
@@ -12862,8 +12865,8 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
12862
12865
  return generateLink(props.options.links.ratingDetails, props.item);
12863
12866
  });
12864
12867
  return (_ctx, _cache) => {
12865
- return openBlock(), createElementBlock("div", _hoisted_1$o, [
12866
- createBaseVNode("div", _hoisted_2$i, [
12868
+ return openBlock(), createElementBlock("div", _hoisted_1$p, [
12869
+ createBaseVNode("div", _hoisted_2$j, [
12867
12870
  createBaseVNode("div", _hoisted_3$d, [
12868
12871
  (openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
12869
12872
  return openBlock(), createElementBlock("div", {
@@ -12896,11 +12899,11 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
12896
12899
  };
12897
12900
  }
12898
12901
  });
12899
- const _hoisted_1$n = {
12902
+ const _hoisted_1$o = {
12900
12903
  class: "lupa-search-results-product-regular-price",
12901
12904
  "data-cy": "lupa-search-results-product-regular-price"
12902
12905
  };
12903
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
12906
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
12904
12907
  __name: "SearchResultsProductRegularPrice",
12905
12908
  props: {
12906
12909
  item: {},
@@ -12918,15 +12921,15 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
12918
12921
  );
12919
12922
  });
12920
12923
  return (_ctx, _cache) => {
12921
- return openBlock(), createElementBlock("div", _hoisted_1$n, toDisplayString(price.value), 1);
12924
+ return openBlock(), createElementBlock("div", _hoisted_1$o, toDisplayString(price.value), 1);
12922
12925
  };
12923
12926
  }
12924
12927
  });
12925
- const _hoisted_1$m = {
12928
+ const _hoisted_1$n = {
12926
12929
  class: "lupa-search-results-product-price",
12927
12930
  "data-cy": "lupa-search-results-product-price"
12928
12931
  };
12929
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
12932
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
12930
12933
  __name: "SearchResultsProductPrice",
12931
12934
  props: {
12932
12935
  item: {},
@@ -12944,16 +12947,16 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
12944
12947
  );
12945
12948
  });
12946
12949
  return (_ctx, _cache) => {
12947
- return openBlock(), createElementBlock("div", _hoisted_1$m, [
12950
+ return openBlock(), createElementBlock("div", _hoisted_1$n, [
12948
12951
  createBaseVNode("strong", null, toDisplayString(price.value), 1)
12949
12952
  ]);
12950
12953
  };
12951
12954
  }
12952
12955
  });
12953
- const _hoisted_1$l = { class: "lupa-search-results-add-to-cart-wrapper" };
12954
- const _hoisted_2$h = { class: "lupa-search-results-product-addtocart" };
12956
+ const _hoisted_1$m = { class: "lupa-search-results-add-to-cart-wrapper" };
12957
+ const _hoisted_2$i = { class: "lupa-search-results-product-addtocart" };
12955
12958
  const _hoisted_3$c = ["onClick", "disabled"];
12956
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
12959
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
12957
12960
  __name: "SearchResultsProductAddToCart",
12958
12961
  props: {
12959
12962
  item: {},
@@ -12980,8 +12983,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
12980
12983
  loading.value = false;
12981
12984
  });
12982
12985
  return (_ctx, _cache) => {
12983
- return openBlock(), createElementBlock("div", _hoisted_1$l, [
12984
- createBaseVNode("div", _hoisted_2$h, [
12986
+ return openBlock(), createElementBlock("div", _hoisted_1$m, [
12987
+ createBaseVNode("div", _hoisted_2$i, [
12985
12988
  createBaseVNode("button", {
12986
12989
  onClick: withModifiers(handleClick, ["stop"]),
12987
12990
  class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
@@ -12993,12 +12996,12 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
12993
12996
  };
12994
12997
  }
12995
12998
  });
12996
- const _hoisted_1$k = ["innerHTML"];
12997
- const _hoisted_2$g = { key: 0 };
12999
+ const _hoisted_1$l = ["innerHTML"];
13000
+ const _hoisted_2$h = { key: 0 };
12998
13001
  const _hoisted_3$b = { key: 1 };
12999
13002
  const _hoisted_4$7 = { class: "lupa-search-box-custom-label" };
13000
13003
  const _hoisted_5$5 = { class: "lupa-search-box-custom-text" };
13001
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
13004
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
13002
13005
  __name: "SearchResultsProductCustom",
13003
13006
  props: {
13004
13007
  item: {},
@@ -13036,11 +13039,11 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
13036
13039
  key: 0,
13037
13040
  class: className.value,
13038
13041
  innerHTML: text.value
13039
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$k)) : (openBlock(), createElementBlock("div", mergeProps({
13042
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$l)) : (openBlock(), createElementBlock("div", mergeProps({
13040
13043
  key: 1,
13041
13044
  class: className.value
13042
13045
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
13043
- !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$g, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$b, [
13046
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$h, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$b, [
13044
13047
  createBaseVNode("div", _hoisted_4$7, toDisplayString(label.value), 1),
13045
13048
  createBaseVNode("div", _hoisted_5$5, toDisplayString(text.value), 1)
13046
13049
  ]))
@@ -13048,8 +13051,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
13048
13051
  };
13049
13052
  }
13050
13053
  });
13051
- const _hoisted_1$j = ["innerHTML"];
13052
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
13054
+ const _hoisted_1$k = ["innerHTML"];
13055
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
13053
13056
  __name: "SearchResultsProductCustomHtmlElement",
13054
13057
  props: {
13055
13058
  item: {},
@@ -13073,15 +13076,15 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
13073
13076
  return openBlock(), createElementBlock("div", mergeProps({
13074
13077
  class: className.value,
13075
13078
  innerHTML: text.value
13076
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$j);
13079
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$k);
13077
13080
  };
13078
13081
  }
13079
13082
  });
13080
- const _hoisted_1$i = { id: "lupa-search-results-rating" };
13081
- const _hoisted_2$f = ["innerHTML"];
13083
+ const _hoisted_1$j = { id: "lupa-search-results-rating" };
13084
+ const _hoisted_2$g = ["innerHTML"];
13082
13085
  const _hoisted_3$a = { class: "lupa-ratings" };
13083
13086
  const _hoisted_4$6 = ["href"];
13084
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
13087
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
13085
13088
  __name: "SearchResultsProductSingleStarRating",
13086
13089
  props: {
13087
13090
  item: {},
@@ -13109,11 +13112,11 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
13109
13112
  return RATING_STAR_HTML;
13110
13113
  });
13111
13114
  return (_ctx, _cache) => {
13112
- return openBlock(), createElementBlock("div", _hoisted_1$i, [
13115
+ return openBlock(), createElementBlock("div", _hoisted_1$j, [
13113
13116
  createBaseVNode("div", {
13114
13117
  innerHTML: star.value,
13115
13118
  class: "lupa-rating lupa-rating-highlighted"
13116
- }, null, 8, _hoisted_2$f),
13119
+ }, null, 8, _hoisted_2$g),
13117
13120
  createBaseVNode("div", _hoisted_3$a, toDisplayString(rating.value), 1),
13118
13121
  createBaseVNode("a", {
13119
13122
  href: ratingLink.value,
@@ -13125,19 +13128,19 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
13125
13128
  });
13126
13129
  const __default__ = {
13127
13130
  components: {
13128
- SearchResultsProductImage: _sfc_main$t,
13129
- SearchResultsProductTitle: _sfc_main$s,
13130
- SearchResultsProductDescription: _sfc_main$r,
13131
- SearchResultsProductRating: _sfc_main$q,
13132
- SearchResultsProductRegularPrice: _sfc_main$p,
13133
- SearchResultsProductPrice: _sfc_main$o,
13134
- SearchResultsProductAddToCart: _sfc_main$n,
13135
- SearchResultsProductCustom: _sfc_main$m,
13136
- SearchResultsProductCustomHtmlElement: _sfc_main$l,
13137
- SearchResultsProductSingleStarRating: _sfc_main$k
13138
- }
13139
- };
13140
- const _sfc_main$j = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
13131
+ SearchResultsProductImage: _sfc_main$u,
13132
+ SearchResultsProductTitle: _sfc_main$t,
13133
+ SearchResultsProductDescription: _sfc_main$s,
13134
+ SearchResultsProductRating: _sfc_main$r,
13135
+ SearchResultsProductRegularPrice: _sfc_main$q,
13136
+ SearchResultsProductPrice: _sfc_main$p,
13137
+ SearchResultsProductAddToCart: _sfc_main$o,
13138
+ SearchResultsProductCustom: _sfc_main$n,
13139
+ SearchResultsProductCustomHtmlElement: _sfc_main$m,
13140
+ SearchResultsProductSingleStarRating: _sfc_main$l
13141
+ }
13142
+ };
13143
+ const _sfc_main$k = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
13141
13144
  __name: "SearchResultsProductCardElement",
13142
13145
  props: {
13143
13146
  item: {},
@@ -13207,13 +13210,13 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
13207
13210
  };
13208
13211
  }
13209
13212
  }));
13210
- const _hoisted_1$h = ["href"];
13211
- const _hoisted_2$e = {
13213
+ const _hoisted_1$i = ["href"];
13214
+ const _hoisted_2$f = {
13212
13215
  key: 0,
13213
13216
  class: "lupa-out-of-stock"
13214
13217
  };
13215
13218
  const _hoisted_3$9 = { class: "lupa-search-result-product-details-section" };
13216
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
13219
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
13217
13220
  __name: "SearchResultsProductCard",
13218
13221
  props: {
13219
13222
  product: {},
@@ -13358,7 +13361,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
13358
13361
  class: normalizeClass(["lupa-search-result-product-card", !isInStock.value ? "lupa-out-of-stock" : ""]),
13359
13362
  onClick: handleClick
13360
13363
  }, [
13361
- createVNode(_sfc_main$u, { options: badgesOptions.value }, null, 8, ["options"]),
13364
+ createVNode(_sfc_main$v, { options: badgesOptions.value }, null, 8, ["options"]),
13362
13365
  createBaseVNode("div", {
13363
13366
  class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
13364
13367
  }, [
@@ -13368,7 +13371,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
13368
13371
  onClick: handleNavigation
13369
13372
  }, [
13370
13373
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
13371
- return openBlock(), createBlock(_sfc_main$j, {
13374
+ return openBlock(), createBlock(_sfc_main$k, {
13372
13375
  class: "lupa-search-results-product-element",
13373
13376
  item: _ctx.product,
13374
13377
  element,
@@ -13378,16 +13381,16 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
13378
13381
  link: link.value
13379
13382
  }, null, 8, ["item", "element", "labels", "inStock", "link"]);
13380
13383
  }), 128)),
13381
- createVNode(_sfc_main$u, {
13384
+ createVNode(_sfc_main$v, {
13382
13385
  options: badgesOptions.value,
13383
13386
  position: "image",
13384
13387
  class: "lupa-image-badges"
13385
13388
  }, null, 8, ["options"]),
13386
- ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$e, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
13387
- ], 8, _hoisted_1$h),
13389
+ ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$f, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
13390
+ ], 8, _hoisted_1$i),
13388
13391
  createBaseVNode("div", _hoisted_3$9, [
13389
13392
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
13390
- return openBlock(), createBlock(_sfc_main$j, {
13393
+ return openBlock(), createBlock(_sfc_main$k, {
13391
13394
  class: "lupa-search-results-product-element",
13392
13395
  item: _ctx.product,
13393
13396
  element,
@@ -13405,7 +13408,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
13405
13408
  class: normalizeClass("lupa-element-group-" + group)
13406
13409
  }, [
13407
13410
  (openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
13408
- return openBlock(), createBlock(_sfc_main$j, {
13411
+ return openBlock(), createBlock(_sfc_main$k, {
13409
13412
  class: "lupa-search-results-product-element",
13410
13413
  item: _ctx.product,
13411
13414
  element,
@@ -13423,11 +13426,11 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
13423
13426
  };
13424
13427
  }
13425
13428
  });
13426
- const _hoisted_1$g = {
13429
+ const _hoisted_1$h = {
13427
13430
  id: "lupa-search-results-similar-queries",
13428
13431
  "data-cy": "lupa-search-results-similar-queries"
13429
13432
  };
13430
- const _hoisted_2$d = { class: "lupa-similar-queries-label" };
13433
+ const _hoisted_2$e = { class: "lupa-similar-queries-label" };
13431
13434
  const _hoisted_3$8 = {
13432
13435
  class: "lupa-similar-query-label",
13433
13436
  "data-cy": "lupa-similar-query-label"
@@ -13439,7 +13442,7 @@ const _hoisted_7$1 = {
13439
13442
  class: "lupa-products",
13440
13443
  "data-cy": "lupa-products"
13441
13444
  };
13442
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
13445
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
13443
13446
  __name: "SearchResultsSimilarQueries",
13444
13447
  props: {
13445
13448
  labels: {},
@@ -13469,8 +13472,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
13469
13472
  paramsStore.goToResults({ searchText, facet });
13470
13473
  };
13471
13474
  return (_ctx, _cache) => {
13472
- return openBlock(), createElementBlock("div", _hoisted_1$g, [
13473
- createBaseVNode("div", _hoisted_2$d, toDisplayString(_ctx.labels.similarQueries), 1),
13475
+ return openBlock(), createElementBlock("div", _hoisted_1$h, [
13476
+ createBaseVNode("div", _hoisted_2$e, toDisplayString(_ctx.labels.similarQueries), 1),
13474
13477
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
13475
13478
  return openBlock(), createElementBlock("div", { key: index }, [
13476
13479
  createBaseVNode("div", _hoisted_3$8, [
@@ -13489,7 +13492,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
13489
13492
  ]),
13490
13493
  createBaseVNode("div", _hoisted_7$1, [
13491
13494
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
13492
- return openBlock(), createBlock(_sfc_main$i, {
13495
+ return openBlock(), createBlock(_sfc_main$j, {
13493
13496
  style: normalizeStyle(_ctx.columnSize),
13494
13497
  key: getDocumentKey(index2, product),
13495
13498
  product,
@@ -13503,15 +13506,15 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
13503
13506
  };
13504
13507
  }
13505
13508
  });
13506
- const _hoisted_1$f = {
13509
+ const _hoisted_1$g = {
13507
13510
  key: 0,
13508
13511
  class: "lupa-results-additional-panel"
13509
13512
  };
13510
- const _hoisted_2$c = {
13513
+ const _hoisted_2$d = {
13511
13514
  class: "lupa-results-additional-panel-items",
13512
13515
  "data-cy": "lupa-results-additional-panel-items"
13513
13516
  };
13514
- const _sfc_main$g = /* @__PURE__ */ defineComponent({
13517
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
13515
13518
  __name: "AdditionalPanel",
13516
13519
  props: {
13517
13520
  panel: {},
@@ -13583,10 +13586,10 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
13583
13586
  handleQueryChange();
13584
13587
  });
13585
13588
  return (_ctx, _cache) => {
13586
- return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
13587
- createBaseVNode("div", _hoisted_2$c, [
13589
+ return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
13590
+ createBaseVNode("div", _hoisted_2$d, [
13588
13591
  (openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
13589
- return openBlock(), createBlock(_sfc_main$i, {
13592
+ return openBlock(), createBlock(_sfc_main$j, {
13590
13593
  key: index,
13591
13594
  product: item,
13592
13595
  options: _ctx.panel,
@@ -13604,11 +13607,11 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
13604
13607
  };
13605
13608
  }
13606
13609
  });
13607
- const _hoisted_1$e = {
13610
+ const _hoisted_1$f = {
13608
13611
  key: 0,
13609
13612
  class: "lupa-results-additional-panels"
13610
13613
  };
13611
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
13614
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
13612
13615
  __name: "AdditionalPanels",
13613
13616
  props: {
13614
13617
  options: {},
@@ -13625,9 +13628,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
13625
13628
  return locationPanels.value.length > 0;
13626
13629
  });
13627
13630
  return (_ctx, _cache) => {
13628
- return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$e, [
13631
+ return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
13629
13632
  (openBlock(true), createElementBlock(Fragment, null, renderList(locationPanels.value, (panel) => {
13630
- return openBlock(), createBlock(_sfc_main$g, {
13633
+ return openBlock(), createBlock(_sfc_main$h, {
13631
13634
  key: panel.queryKey,
13632
13635
  panel,
13633
13636
  options: _ctx.sdkOptions
@@ -13644,21 +13647,21 @@ const _export_sfc = (sfc, props) => {
13644
13647
  }
13645
13648
  return target;
13646
13649
  };
13647
- const _sfc_main$e = {};
13648
- const _hoisted_1$d = { class: "lupa-spinner-wrapper" };
13649
- const _hoisted_2$b = { class: "lupa-spinner" };
13650
+ const _sfc_main$f = {};
13651
+ const _hoisted_1$e = { class: "lupa-spinner-wrapper" };
13652
+ const _hoisted_2$c = { class: "lupa-spinner" };
13650
13653
  function _sfc_render(_ctx, _cache) {
13651
- return openBlock(), createElementBlock("div", _hoisted_1$d, [
13652
- createBaseVNode("div", _hoisted_2$b, [
13654
+ return openBlock(), createElementBlock("div", _hoisted_1$e, [
13655
+ createBaseVNode("div", _hoisted_2$c, [
13653
13656
  (openBlock(), createElementBlock(Fragment, null, renderList(12, (x) => {
13654
13657
  return createBaseVNode("div", { key: x });
13655
13658
  }), 64))
13656
13659
  ])
13657
13660
  ]);
13658
13661
  }
13659
- const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render]]);
13660
- const _hoisted_1$c = { id: "lupa-search-results-products" };
13661
- const _hoisted_2$a = {
13662
+ const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render]]);
13663
+ const _hoisted_1$d = { id: "lupa-search-results-products" };
13664
+ const _hoisted_2$b = {
13662
13665
  class: "lupa-products",
13663
13666
  "data-cy": "lupa-products"
13664
13667
  };
@@ -13673,7 +13676,7 @@ const _hoisted_4$4 = {
13673
13676
  "data-cy": "lupa-no-results"
13674
13677
  };
13675
13678
  const _hoisted_5$3 = { key: 4 };
13676
- const _sfc_main$d = /* @__PURE__ */ defineComponent({
13679
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
13677
13680
  __name: "SearchResultsProducts",
13678
13681
  props: {
13679
13682
  options: {},
@@ -13764,23 +13767,23 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
13764
13767
  };
13765
13768
  return (_ctx, _cache) => {
13766
13769
  var _a;
13767
- return openBlock(), createElementBlock("div", _hoisted_1$c, [
13770
+ return openBlock(), createElementBlock("div", _hoisted_1$d, [
13768
13771
  unref(loading) && !unref(isMobileSidebarVisible) ? (openBlock(), createBlock(Spinner, {
13769
13772
  key: 0,
13770
13773
  class: "lupa-loader"
13771
13774
  })) : createCommentVNode("", true),
13772
13775
  unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
13773
- showTopFilters.value ? (openBlock(), createBlock(_sfc_main$G, {
13776
+ showTopFilters.value ? (openBlock(), createBlock(_sfc_main$H, {
13774
13777
  key: 0,
13775
13778
  options: (_a = _ctx.options.filters) != null ? _a : {}
13776
13779
  }, null, 8, ["options"])) : createCommentVNode("", true),
13777
- showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$A, {
13780
+ showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$B, {
13778
13781
  key: 1,
13779
13782
  class: "lupa-toolbar-mobile",
13780
13783
  options: _ctx.options,
13781
13784
  "pagination-location": "top"
13782
13785
  }, null, 8, ["options"])) : createCommentVNode("", true),
13783
- currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$T, {
13786
+ currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$U, {
13784
13787
  key: 2,
13785
13788
  class: normalizeClass(currentFiltersClass.value),
13786
13789
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -13788,18 +13791,18 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
13788
13791
  expandable: !desktopFiltersExpanded.value
13789
13792
  }, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true)
13790
13793
  ], 64)) : createCommentVNode("", true),
13791
- createVNode(_sfc_main$f, {
13794
+ createVNode(_sfc_main$g, {
13792
13795
  options: _ctx.options,
13793
13796
  location: "top",
13794
13797
  sdkOptions: _ctx.options.options
13795
13798
  }, null, 8, ["options", "sdkOptions"]),
13796
13799
  unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
13797
- createVNode(_sfc_main$A, {
13800
+ createVNode(_sfc_main$B, {
13798
13801
  class: "lupa-toolbar-top",
13799
13802
  options: _ctx.options,
13800
13803
  "pagination-location": "top"
13801
13804
  }, null, 8, ["options"]),
13802
- createBaseVNode("div", _hoisted_2$a, [
13805
+ createBaseVNode("div", _hoisted_2$b, [
13803
13806
  _ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(searchResult).items, (product, index) => {
13804
13807
  return renderSlot(_ctx.$slots, "productCard", {
13805
13808
  style: normalizeStyle(columnSize.value),
@@ -13808,7 +13811,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
13808
13811
  options: productCardOptions.value
13809
13812
  });
13810
13813
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
13811
- return openBlock(), createBlock(_sfc_main$i, {
13814
+ return openBlock(), createBlock(_sfc_main$j, {
13812
13815
  style: normalizeStyle(columnSize.value),
13813
13816
  key: getProductKeyAction(index, product),
13814
13817
  product,
@@ -13824,12 +13827,12 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
13824
13827
  onClick: goToFirstPage
13825
13828
  }, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
13826
13829
  ])) : createCommentVNode("", true),
13827
- createVNode(_sfc_main$A, {
13830
+ createVNode(_sfc_main$B, {
13828
13831
  class: "lupa-toolbar-bottom",
13829
13832
  options: _ctx.options,
13830
13833
  "pagination-location": "bottom"
13831
13834
  }, null, 8, ["options"]),
13832
- createVNode(_sfc_main$f, {
13835
+ createVNode(_sfc_main$g, {
13833
13836
  options: _ctx.options,
13834
13837
  location: "bottom",
13835
13838
  sdkOptions: _ctx.options.options
@@ -13839,7 +13842,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
13839
13842
  createBaseVNode("span", null, toDisplayString(unref(currentQueryText)), 1)
13840
13843
  ])) : createCommentVNode("", true),
13841
13844
  hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5$3, [
13842
- createVNode(_sfc_main$h, {
13845
+ createVNode(_sfc_main$i, {
13843
13846
  labels: similarQueriesLabels.value,
13844
13847
  columnSize: columnSize.value,
13845
13848
  productCardOptions: productCardOptions.value
@@ -13850,13 +13853,13 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
13850
13853
  };
13851
13854
  }
13852
13855
  });
13853
- const _hoisted_1$b = { class: "lupa-top-mobile-filter-wrapper" };
13854
- const _hoisted_2$9 = {
13856
+ const _hoisted_1$c = { class: "lupa-top-mobile-filter-wrapper" };
13857
+ const _hoisted_2$a = {
13855
13858
  key: 0,
13856
13859
  class: "lupa-category-back"
13857
13860
  };
13858
13861
  const _hoisted_3$6 = ["href"];
13859
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
13862
+ const _sfc_main$d = /* @__PURE__ */ defineComponent({
13860
13863
  __name: "CategoryTopFilters",
13861
13864
  props: {
13862
13865
  options: {}
@@ -13888,15 +13891,15 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
13888
13891
  return openBlock(), createElementBlock("div", {
13889
13892
  class: normalizeClass(["lupa-category-top-mobile-filters", { "lupa-has-back-button": hasBackButton.value }])
13890
13893
  }, [
13891
- createBaseVNode("div", _hoisted_1$b, [
13892
- hasBackButton.value ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
13894
+ createBaseVNode("div", _hoisted_1$c, [
13895
+ hasBackButton.value ? (openBlock(), createElementBlock("div", _hoisted_2$a, [
13893
13896
  createBaseVNode("a", {
13894
13897
  "data-cy": "lupa-category-back",
13895
13898
  href: backUrlLink.value,
13896
13899
  onClick: handleNavigationBack
13897
13900
  }, toDisplayString(backTitle.value), 9, _hoisted_3$6)
13898
13901
  ])) : createCommentVNode("", true),
13899
- createVNode(_sfc_main$A, {
13902
+ createVNode(_sfc_main$B, {
13900
13903
  class: "lupa-toolbar-mobile",
13901
13904
  "pagination-location": "top",
13902
13905
  options: _ctx.options
@@ -13906,18 +13909,18 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
13906
13909
  };
13907
13910
  }
13908
13911
  });
13909
- const _hoisted_1$a = {
13912
+ const _hoisted_1$b = {
13910
13913
  key: 0,
13911
13914
  class: "lupa-container-title-summary-mobile"
13912
13915
  };
13913
- const _hoisted_2$8 = {
13916
+ const _hoisted_2$9 = {
13914
13917
  key: 4,
13915
13918
  id: "lupa-search-results",
13916
13919
  class: "top-layout-wrapper"
13917
13920
  };
13918
13921
  const _hoisted_3$5 = { class: "search-content" };
13919
13922
  const _hoisted_4$3 = { id: "lupa-search-results" };
13920
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
13923
+ const _sfc_main$c = /* @__PURE__ */ defineComponent({
13921
13924
  __name: "SearchResults",
13922
13925
  props: {
13923
13926
  options: {},
@@ -13990,7 +13993,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
13990
13993
  const hasResults2 = Boolean(
13991
13994
  results.total > 0 || ((_a = results.similarQueries) == null ? void 0 : _a.length) || ((_b = results.didYouMean) == null ? void 0 : _b.options)
13992
13995
  );
13993
- (_d = (_c = props.options.callbacks) == null ? void 0 : _c.onSearchResults) == null ? void 0 : _d.call(_c, { queryKey, hasResults: hasResults2 });
13996
+ (_d = (_c = props.options.callbacks) == null ? void 0 : _c.onSearchResults) == null ? void 0 : _d.call(_c, { queryKey, hasResults: hasResults2, params: paramStore.params });
13994
13997
  if (!hasResults2) {
13995
13998
  return;
13996
13999
  }
@@ -14106,40 +14109,40 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
14106
14109
  return openBlock(), createElementBlock("div", {
14107
14110
  class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
14108
14111
  }, [
14109
- _ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$a, [
14110
- createVNode(_sfc_main$X, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14111
- createVNode(_sfc_main$V, {
14112
+ _ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$b, [
14113
+ createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14114
+ createVNode(_sfc_main$W, {
14112
14115
  "show-summary": true,
14113
14116
  options: _ctx.options,
14114
14117
  "is-product-list": (_a = _ctx.isProductList) != null ? _a : false
14115
14118
  }, null, 8, ["options", "is-product-list"])
14116
14119
  ])) : createCommentVNode("", true),
14117
- isTitleResultTopPosition.value ? (openBlock(), createBlock(_sfc_main$c, {
14120
+ isTitleResultTopPosition.value ? (openBlock(), createBlock(_sfc_main$d, {
14118
14121
  key: 1,
14119
14122
  options: _ctx.options
14120
14123
  }, null, 8, ["options"])) : createCommentVNode("", true),
14121
- _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$I, {
14124
+ _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$J, {
14122
14125
  key: 2,
14123
14126
  options: _ctx.options.filters
14124
14127
  }, null, 8, ["options"])) : createCommentVNode("", true),
14125
- unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$H, {
14128
+ unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$I, {
14126
14129
  key: 3,
14127
14130
  breadcrumbs: _ctx.options.breadcrumbs
14128
14131
  }, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
14129
- isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", _hoisted_2$8, [
14130
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$J, {
14132
+ isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
14133
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$K, {
14131
14134
  key: 0,
14132
14135
  options: (_b = _ctx.options.filters) != null ? _b : {},
14133
14136
  ref_key: "searchResultsFilters",
14134
14137
  ref: searchResultsFilters
14135
14138
  }, null, 8, ["options"])) : createCommentVNode("", true),
14136
14139
  createBaseVNode("div", _hoisted_3$5, [
14137
- createVNode(_sfc_main$X, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14138
- createVNode(_sfc_main$V, {
14140
+ createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14141
+ createVNode(_sfc_main$W, {
14139
14142
  options: _ctx.options,
14140
14143
  "is-product-list": (_c = _ctx.isProductList) != null ? _c : false
14141
14144
  }, null, 8, ["options", "is-product-list"]),
14142
- createVNode(_sfc_main$d, {
14145
+ createVNode(_sfc_main$e, {
14143
14146
  options: _ctx.options,
14144
14147
  ssr: ssrEnabled.value
14145
14148
  }, {
@@ -14150,19 +14153,19 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
14150
14153
  }, 8, ["options", "ssr"])
14151
14154
  ])
14152
14155
  ])) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
14153
- createVNode(_sfc_main$X, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14154
- createVNode(_sfc_main$V, {
14156
+ createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14157
+ createVNode(_sfc_main$W, {
14155
14158
  options: _ctx.options,
14156
14159
  "is-product-list": (_d = _ctx.isProductList) != null ? _d : false
14157
14160
  }, null, 8, ["options", "is-product-list"]),
14158
14161
  createBaseVNode("div", _hoisted_4$3, [
14159
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$J, {
14162
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$K, {
14160
14163
  key: 0,
14161
14164
  options: (_e = _ctx.options.filters) != null ? _e : {},
14162
14165
  ref_key: "searchResultsFilters",
14163
14166
  ref: searchResultsFilters
14164
14167
  }, null, 8, ["options"])) : createCommentVNode("", true),
14165
- createVNode(_sfc_main$d, {
14168
+ createVNode(_sfc_main$e, {
14166
14169
  options: _ctx.options,
14167
14170
  ssr: ssrEnabled.value
14168
14171
  }, createSlots({
@@ -14185,12 +14188,12 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
14185
14188
  };
14186
14189
  }
14187
14190
  });
14188
- const _hoisted_1$9 = {
14191
+ const _hoisted_1$a = {
14189
14192
  key: 0,
14190
14193
  class: "lupa-category-overview"
14191
14194
  };
14192
- const _hoisted_2$7 = ["innerHTML"];
14193
- const _sfc_main$a = /* @__PURE__ */ defineComponent({
14195
+ const _hoisted_2$8 = ["innerHTML"];
14196
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
14194
14197
  __name: "CategoryDescription",
14195
14198
  props: {
14196
14199
  options: {}
@@ -14206,16 +14209,16 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
14206
14209
  return Boolean((_b = (_a = props.options.categories) == null ? void 0 : _a.current) == null ? void 0 : _b.description);
14207
14210
  });
14208
14211
  return (_ctx, _cache) => {
14209
- return overviewVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$9, [
14212
+ return overviewVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$a, [
14210
14213
  createBaseVNode("div", {
14211
14214
  class: "lupa-category-description",
14212
14215
  innerHTML: description.value
14213
- }, null, 8, _hoisted_2$7)
14216
+ }, null, 8, _hoisted_2$8)
14214
14217
  ])) : createCommentVNode("", true);
14215
14218
  };
14216
14219
  }
14217
14220
  });
14218
- const _sfc_main$9 = /* @__PURE__ */ defineComponent({
14221
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
14219
14222
  __name: "ProductList",
14220
14223
  props: {
14221
14224
  options: {}
@@ -14237,7 +14240,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
14237
14240
  __expose({ fetch: fetch2 });
14238
14241
  return (_ctx, _cache) => {
14239
14242
  return openBlock(), createElementBlock("div", null, [
14240
- createVNode(_sfc_main$b, {
14243
+ createVNode(_sfc_main$c, {
14241
14244
  options: componentOptions.value,
14242
14245
  "initial-filters": _ctx.options.initialFilters,
14243
14246
  "is-product-list": true,
@@ -14245,7 +14248,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
14245
14248
  ref: searchResults2
14246
14249
  }, {
14247
14250
  default: withCtx(() => [
14248
- createVNode(_sfc_main$a, { options: _ctx.options }, null, 8, ["options"])
14251
+ createVNode(_sfc_main$b, { options: _ctx.options }, null, 8, ["options"])
14249
14252
  ]),
14250
14253
  _: 1
14251
14254
  }, 8, ["options", "initial-filters"])
@@ -19736,9 +19739,9 @@ lodash$1.exports;
19736
19739
  }).call(commonjsGlobal$1);
19737
19740
  })(lodash$1, lodash$1.exports);
19738
19741
  var lodashExports$1 = lodash$1.exports;
19739
- const _hoisted_1$8 = ["onClick"];
19740
- const _hoisted_2$6 = { class: "lupa-search-box-container" };
19741
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
19742
+ const _hoisted_1$9 = ["onClick"];
19743
+ const _hoisted_2$7 = { class: "lupa-search-box-container" };
19744
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
19742
19745
  __name: "SearchContainer",
19743
19746
  props: {
19744
19747
  options: {}
@@ -19783,8 +19786,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
19783
19786
  class: "lupa-search-container",
19784
19787
  onClick: withModifiers(innerClick, ["stop"])
19785
19788
  }, [
19786
- createBaseVNode("div", _hoisted_2$6, [
19787
- createVNode(_sfc_main$Y, {
19789
+ createBaseVNode("div", _hoisted_2$7, [
19790
+ createVNode(_sfc_main$Z, {
19788
19791
  options: fullSearchBoxOptions.value,
19789
19792
  "is-search-container": true,
19790
19793
  ref_key: "searchBox",
@@ -19792,13 +19795,13 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
19792
19795
  onClose: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
19793
19796
  }, null, 8, ["options"])
19794
19797
  ]),
19795
- createVNode(_sfc_main$b, {
19798
+ createVNode(_sfc_main$c, {
19796
19799
  options: fullSearchResultsOptions.value,
19797
19800
  "is-container": true,
19798
19801
  ref_key: "searchResults",
19799
19802
  ref: searchResults2
19800
19803
  }, null, 8, ["options"])
19801
- ], 8, _hoisted_1$8)
19804
+ ], 8, _hoisted_1$9)
19802
19805
  ]);
19803
19806
  };
19804
19807
  }
@@ -20501,13 +20504,13 @@ var Slide = defineComponent({
20501
20504
  };
20502
20505
  }
20503
20506
  });
20504
- const _hoisted_1$7 = { class: "lupa-search-product-recommendations-wrapper" };
20505
- const _hoisted_2$5 = {
20507
+ const _hoisted_1$8 = { class: "lupa-search-product-recommendations-wrapper" };
20508
+ const _hoisted_2$6 = {
20506
20509
  key: 0,
20507
20510
  class: "lupa-recommended-products",
20508
20511
  "data-cy": "lupa-recommended-products"
20509
20512
  };
20510
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
20513
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
20511
20514
  __name: "Recommendations",
20512
20515
  props: {
20513
20516
  options: {}
@@ -20593,8 +20596,8 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
20593
20596
  });
20594
20597
  __expose({ fetch: fetch2 });
20595
20598
  return (_ctx, _cache) => {
20596
- return openBlock(), createElementBlock("div", _hoisted_1$7, [
20597
- !loading.value ? (openBlock(), createElementBlock("div", _hoisted_2$5, [
20599
+ return openBlock(), createElementBlock("div", _hoisted_1$8, [
20600
+ !loading.value ? (openBlock(), createElementBlock("div", _hoisted_2$6, [
20598
20601
  createVNode(unref(Carousel), mergeProps(carouselOptions.value, { "wrap-around": true }), {
20599
20602
  addons: withCtx(() => [
20600
20603
  createVNode(unref(Navigation))
@@ -20605,7 +20608,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
20605
20608
  key: getProductKeyAction(index, product)
20606
20609
  }, {
20607
20610
  default: withCtx(() => [
20608
- createVNode(_sfc_main$i, {
20611
+ createVNode(_sfc_main$j, {
20609
20612
  product,
20610
20613
  options: _ctx.options,
20611
20614
  "click-tracking-settings": clickTrackingSettings.value
@@ -20622,19 +20625,19 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
20622
20625
  };
20623
20626
  }
20624
20627
  });
20625
- const _hoisted_1$6 = { class: "lupa-chat-spinner" };
20626
- const _hoisted_2$4 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
20628
+ const _hoisted_1$7 = { class: "lupa-chat-spinner" };
20629
+ const _hoisted_2$5 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
20627
20630
  const _hoisted_3$4 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
20628
20631
  const _hoisted_4$2 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
20629
20632
  const _hoisted_5$2 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
20630
20633
  const _hoisted_6$1 = [
20631
- _hoisted_2$4,
20634
+ _hoisted_2$5,
20632
20635
  _hoisted_3$4,
20633
20636
  _hoisted_4$2,
20634
20637
  _hoisted_5$2
20635
20638
  ];
20636
20639
  const _hoisted_7 = { class: "lupa-chat-spinner-message" };
20637
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
20640
+ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
20638
20641
  __name: "ChatSpinner",
20639
20642
  props: {
20640
20643
  small: { type: Boolean },
@@ -20642,7 +20645,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
20642
20645
  },
20643
20646
  setup(__props) {
20644
20647
  return (_ctx, _cache) => {
20645
- return openBlock(), createElementBlock("section", _hoisted_1$6, [
20648
+ return openBlock(), createElementBlock("section", _hoisted_1$7, [
20646
20649
  createBaseVNode("div", {
20647
20650
  class: normalizeClass([{ small: _ctx.small }, "lds-ring"])
20648
20651
  }, _hoisted_6$1, 2),
@@ -20651,13 +20654,13 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
20651
20654
  };
20652
20655
  }
20653
20656
  });
20654
- const _hoisted_1$5 = { class: "lupa-chat-input-container" };
20655
- const _hoisted_2$3 = { id: "lupa-search-box-input" };
20657
+ const _hoisted_1$6 = { class: "lupa-chat-input-container" };
20658
+ const _hoisted_2$4 = { id: "lupa-search-box-input" };
20656
20659
  const _hoisted_3$3 = {
20657
20660
  key: 0,
20658
20661
  class: "lupa-chat-form-submit"
20659
20662
  };
20660
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
20663
+ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
20661
20664
  __name: "ChatInput",
20662
20665
  props: {
20663
20666
  disabled: { type: Boolean }
@@ -20670,13 +20673,13 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
20670
20673
  inputValue.value = "";
20671
20674
  };
20672
20675
  return (_ctx, _cache) => {
20673
- return openBlock(), createElementBlock("div", _hoisted_1$5, [
20676
+ return openBlock(), createElementBlock("div", _hoisted_1$6, [
20674
20677
  createBaseVNode("form", {
20675
20678
  action: "javascript:void(0);",
20676
20679
  class: "chat-input-form",
20677
20680
  onSubmit: submit
20678
20681
  }, [
20679
- createBaseVNode("div", _hoisted_2$3, [
20682
+ createBaseVNode("div", _hoisted_2$4, [
20680
20683
  withDirectives(createBaseVNode("input", {
20681
20684
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
20682
20685
  ref: "mainInput",
@@ -20689,7 +20692,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
20689
20692
  [vModelText, inputValue.value]
20690
20693
  ])
20691
20694
  ]),
20692
- !_ctx.disabled ? (openBlock(), createElementBlock("button", _hoisted_3$3, "Ask LupaChat")) : (openBlock(), createBlock(_sfc_main$6, {
20695
+ !_ctx.disabled ? (openBlock(), createElementBlock("button", _hoisted_3$3, "Ask LupaChat")) : (openBlock(), createBlock(_sfc_main$7, {
20693
20696
  key: 1,
20694
20697
  small: true
20695
20698
  }))
@@ -20818,15 +20821,36 @@ const prepareChatHistory = (chatLog) => {
20818
20821
  }
20819
20822
  return history;
20820
20823
  };
20824
+ const getTextResponseChunkStream = (options, { initialQuery, messageHistory }, onChunkReceived) => {
20825
+ var _a;
20826
+ fetch(`${getApiUrl(options.environment, options.customBaseUrl)}chat/text`, __spreadProps2(__spreadValues2({}, defaultConfig), {
20827
+ body: JSON.stringify({ initialQuery, messageHistory }),
20828
+ headers: __spreadValues2(__spreadValues2({}, headers), (_a = options.customHeaders) != null ? _a : {})
20829
+ })).then((response) => {
20830
+ const reader = response.body.getReader();
20831
+ return reader.read().then(function processStream({ done, value }) {
20832
+ if (done) {
20833
+ return "";
20834
+ }
20835
+ const result = new TextDecoder("utf-8").decode(value);
20836
+ const sanitezedResult = result.replace("\n", '<div class="br"></div>');
20837
+ onChunkReceived(sanitezedResult);
20838
+ return reader.read().then(processStream);
20839
+ });
20840
+ }).catch((error) => {
20841
+ console.error(`Fetch Error: ${error}`);
20842
+ });
20843
+ };
20821
20844
  const ChatService = {
20822
20845
  suggestSearchChatPhrases,
20823
20846
  suggestPhraseAlternatives,
20824
20847
  suggestSimplifiedPhrases,
20825
20848
  suggestBestProductMatches,
20826
- prepareChatHistory
20849
+ prepareChatHistory,
20850
+ getTextResponseChunkStream
20827
20851
  };
20828
- const _hoisted_1$4 = { class: "lupa-chat-results" };
20829
- const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
20852
+ const _hoisted_1$5 = { class: "lupa-chat-results" };
20853
+ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
20830
20854
  __name: "ChatPhraseProductsList",
20831
20855
  props: {
20832
20856
  options: {},
@@ -20838,9 +20862,9 @@ const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
20838
20862
  return getProductKey(`${index}`, product, props.options.idKey);
20839
20863
  };
20840
20864
  return (_ctx, _cache) => {
20841
- return openBlock(), createElementBlock("section", _hoisted_1$4, [
20865
+ return openBlock(), createElementBlock("section", _hoisted_1$5, [
20842
20866
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
20843
- return openBlock(), createBlock(_sfc_main$i, {
20867
+ return openBlock(), createBlock(_sfc_main$j, {
20844
20868
  class: "lupa-chat-product-card",
20845
20869
  key: getProductKeyAction(index, product),
20846
20870
  product,
@@ -20851,8 +20875,8 @@ const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
20851
20875
  };
20852
20876
  }
20853
20877
  });
20854
- const _hoisted_1$3 = { class: "lupa-chat-content-entry-phrase" };
20855
- const _hoisted_2$2 = { class: "lupa-chat-phrase-title" };
20878
+ const _hoisted_1$4 = { class: "lupa-chat-content-entry-phrase" };
20879
+ const _hoisted_2$3 = { class: "lupa-chat-phrase-title" };
20856
20880
  const _hoisted_3$2 = {
20857
20881
  key: 0,
20858
20882
  class: "alert"
@@ -20865,7 +20889,7 @@ const _hoisted_5$1 = /* @__PURE__ */ createBaseVNode("p", null, "We found no mat
20865
20889
  const _hoisted_6 = [
20866
20890
  _hoisted_5$1
20867
20891
  ];
20868
- const _sfc_main$3$1 = /* @__PURE__ */ defineComponent({
20892
+ const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
20869
20893
  __name: "ChatContentEntryPhrase",
20870
20894
  props: {
20871
20895
  options: {},
@@ -20945,20 +20969,20 @@ const _sfc_main$3$1 = /* @__PURE__ */ defineComponent({
20945
20969
  return phrases != null ? phrases : [];
20946
20970
  });
20947
20971
  return (_ctx, _cache) => {
20948
- return openBlock(), createElementBlock("div", _hoisted_1$3, [
20949
- createBaseVNode("div", _hoisted_2$2, [
20972
+ return openBlock(), createElementBlock("div", _hoisted_1$4, [
20973
+ createBaseVNode("div", _hoisted_2$3, [
20950
20974
  createBaseVNode("h3", null, toDisplayString(displayPhrase.value), 1),
20951
20975
  createBaseVNode("sub", null, toDisplayString(usedAlternativePhrases.value.join(", ")), 1),
20952
20976
  usedPartialResults.value ? (openBlock(), createElementBlock("sub", _hoisted_3$2, "Including partial matches - which might not be what you are looking for")) : createCommentVNode("", true)
20953
20977
  ]),
20954
20978
  createBaseVNode("div", null, [
20955
- createVNode(_sfc_main$4$1, {
20979
+ createVNode(_sfc_main$5, {
20956
20980
  "search-results": searchResults2.value,
20957
20981
  options: _ctx.options.displayOptions
20958
20982
  }, null, 8, ["search-results", "options"])
20959
20983
  ]),
20960
20984
  !loading.value && !searchResults2.value.length ? (openBlock(), createElementBlock("div", _hoisted_4$1, _hoisted_6)) : createCommentVNode("", true),
20961
- loading.value ? (openBlock(), createBlock(_sfc_main$6, {
20985
+ loading.value ? (openBlock(), createBlock(_sfc_main$7, {
20962
20986
  key: 1,
20963
20987
  message: currentAction.value
20964
20988
  }, null, 8, ["message"])) : createCommentVNode("", true)
@@ -20966,10 +20990,10 @@ const _sfc_main$3$1 = /* @__PURE__ */ defineComponent({
20966
20990
  };
20967
20991
  }
20968
20992
  });
20969
- const _hoisted_1$2 = { class: "lupa-chat-best-matches lupa-chat-content-entry" };
20970
- const _hoisted_2$1 = /* @__PURE__ */ createBaseVNode("h3", null, "Best matches", -1);
20993
+ const _hoisted_1$3 = { class: "lupa-chat-best-matches lupa-chat-content-entry" };
20994
+ const _hoisted_2$2 = /* @__PURE__ */ createBaseVNode("h3", null, "Best matches", -1);
20971
20995
  const _hoisted_3$1 = { key: 0 };
20972
- const _sfc_main$2$1 = /* @__PURE__ */ defineComponent({
20996
+ const _sfc_main$3$1 = /* @__PURE__ */ defineComponent({
20973
20997
  __name: "ChatContentEntry",
20974
20998
  props: {
20975
20999
  entry: {},
@@ -21034,7 +21058,7 @@ const _sfc_main$2$1 = /* @__PURE__ */ defineComponent({
21034
21058
  key: phrase,
21035
21059
  class: "lupa-chat-content-entry"
21036
21060
  }, [
21037
- phrase ? (openBlock(), createBlock(_sfc_main$3$1, {
21061
+ phrase ? (openBlock(), createBlock(_sfc_main$4$1, {
21038
21062
  key: 0,
21039
21063
  phrase,
21040
21064
  options: _ctx.options,
@@ -21043,14 +21067,14 @@ const _sfc_main$2$1 = /* @__PURE__ */ defineComponent({
21043
21067
  ]);
21044
21068
  }), 128))
21045
21069
  ]),
21046
- createBaseVNode("section", _hoisted_1$2, [
21047
- _hoisted_2$1,
21070
+ createBaseVNode("section", _hoisted_1$3, [
21071
+ _hoisted_2$2,
21048
21072
  explanation.value ? (openBlock(), createElementBlock("p", _hoisted_3$1, toDisplayString(explanation.value), 1)) : createCommentVNode("", true),
21049
- loading.value ? (openBlock(), createBlock(_sfc_main$6, {
21073
+ loading.value ? (openBlock(), createBlock(_sfc_main$7, {
21050
21074
  key: 1,
21051
21075
  message: "Selecting the best matches for you. This might take a few seconds."
21052
21076
  })) : createCommentVNode("", true),
21053
- bestMatches.value.length ? (openBlock(), createBlock(_sfc_main$4$1, {
21077
+ bestMatches.value.length ? (openBlock(), createBlock(_sfc_main$5, {
21054
21078
  key: 2,
21055
21079
  "search-results": bestMatchProducts.value,
21056
21080
  options: _ctx.options.displayOptions
@@ -21060,6 +21084,39 @@ const _sfc_main$2$1 = /* @__PURE__ */ defineComponent({
21060
21084
  };
21061
21085
  }
21062
21086
  });
21087
+ const _hoisted_1$2 = { class: "lupa-chat-text-response" };
21088
+ const _hoisted_2$1 = ["innerHTML"];
21089
+ const _sfc_main$2$1 = /* @__PURE__ */ defineComponent({
21090
+ __name: "ChatTextEntry",
21091
+ props: {
21092
+ content: {},
21093
+ options: {},
21094
+ history: {}
21095
+ },
21096
+ setup(__props) {
21097
+ const props = __props;
21098
+ const content = ref("");
21099
+ const processChunk = (chunk) => {
21100
+ content.value += chunk;
21101
+ };
21102
+ onMounted(() => {
21103
+ var _a;
21104
+ ChatService.getTextResponseChunkStream(
21105
+ props.options.sdkOptions,
21106
+ {
21107
+ initialQuery: props.content,
21108
+ messageHistory: (_a = props.history) != null ? _a : []
21109
+ },
21110
+ processChunk
21111
+ );
21112
+ });
21113
+ return (_ctx, _cache) => {
21114
+ return openBlock(), createElementBlock("div", _hoisted_1$2, [
21115
+ createBaseVNode("p", { innerHTML: content.value }, null, 8, _hoisted_2$1)
21116
+ ]);
21117
+ };
21118
+ }
21119
+ });
21063
21120
  const _hoisted_1$1 = { class: "lupa-chat-section-title" };
21064
21121
  const _sfc_main$1$1 = /* @__PURE__ */ defineComponent({
21065
21122
  __name: "ChatContentList",
@@ -21077,16 +21134,23 @@ const _sfc_main$1$1 = /* @__PURE__ */ defineComponent({
21077
21134
  return openBlock(), createElementBlock("div", null, [
21078
21135
  createBaseVNode("ul", null, [
21079
21136
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.content, (entry) => {
21137
+ var _a;
21080
21138
  return openBlock(), createElementBlock("li", {
21081
21139
  key: entry.key
21082
21140
  }, [
21083
21141
  createBaseVNode("h4", _hoisted_1$1, toDisplayString(entry.userInput), 1),
21084
21142
  createVNode(_sfc_main$2$1, {
21143
+ content: entry.userInput,
21144
+ history: _ctx.history,
21145
+ options: _ctx.options
21146
+ }, null, 8, ["content", "history", "options"]),
21147
+ ((_a = entry.suggestedPhrases) == null ? void 0 : _a.length) ? (openBlock(), createBlock(_sfc_main$3$1, {
21148
+ key: 0,
21085
21149
  entry,
21086
21150
  options: _ctx.options,
21087
21151
  history: _ctx.history,
21088
21152
  onLoaded: (items) => bestItemsLoaded(items, entry.key)
21089
- }, null, 8, ["entry", "options", "history", "onLoaded"])
21153
+ }, null, 8, ["entry", "options", "history", "onLoaded"])) : createCommentVNode("", true)
21090
21154
  ]);
21091
21155
  }), 128))
21092
21156
  ])
@@ -21107,7 +21171,7 @@ const _hoisted_4 = {
21107
21171
  class: "lupa-chat-spinner-main"
21108
21172
  };
21109
21173
  const _hoisted_5 = { class: "lupasearch-chat-input" };
21110
- const _sfc_main$1i = /* @__PURE__ */ defineComponent({
21174
+ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
21111
21175
  __name: "ChatContainer",
21112
21176
  props: {
21113
21177
  options: {}
@@ -21125,6 +21189,14 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
21125
21189
  }
21126
21190
  try {
21127
21191
  loading.value = true;
21192
+ const key = Date.now().toString();
21193
+ let chatLog = {
21194
+ key,
21195
+ userInput: input,
21196
+ allPhrases: [],
21197
+ suggestedPhrases: []
21198
+ };
21199
+ chatContent.value.push(chatLog);
21128
21200
  const request = {
21129
21201
  userPrompt: input,
21130
21202
  messageHistory: (_a = history.value) != null ? _a : [],
@@ -21139,13 +21211,12 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
21139
21211
  return;
21140
21212
  }
21141
21213
  const validPhrases = phrases.filter((p2) => (p2 == null ? void 0 : p2.trim().length) > 0);
21142
- const chatLog = {
21143
- key: Date.now().toString(),
21144
- userInput: input,
21145
- allPhrases: [...validPhrases],
21146
- suggestedPhrases: phrases
21147
- };
21148
- chatContent.value.push(chatLog);
21214
+ chatContent.value = chatContent.value.map(
21215
+ (c2) => c2.key === key ? __spreadProps2(__spreadValues2({}, c2), {
21216
+ allPhrases: [...validPhrases],
21217
+ suggestedPhrases: phrases
21218
+ }) : c2
21219
+ );
21149
21220
  } finally {
21150
21221
  loading.value = false;
21151
21222
  }
@@ -21166,10 +21237,10 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
21166
21237
  }, null, 8, ["content", "options", "history"])
21167
21238
  ])) : createCommentVNode("", true),
21168
21239
  loading.value ? (openBlock(), createElementBlock("section", _hoisted_4, [
21169
- createVNode(_sfc_main$6, { message: "Loading initial recommendations... This might take up to 20s" })
21240
+ createVNode(_sfc_main$7, { message: "Loading initial recommendations... This might take up to 20s" })
21170
21241
  ])) : createCommentVNode("", true),
21171
21242
  createBaseVNode("section", _hoisted_5, [
21172
- createVNode(_sfc_main$5, {
21243
+ createVNode(_sfc_main$6, {
21173
21244
  onSubmit: submitChatInput,
21174
21245
  disabled: loading.value
21175
21246
  }, null, 8, ["disabled"])
@@ -26740,7 +26811,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
26740
26811
  };
26741
26812
  __expose({ fetch: fetch2 });
26742
26813
  return (_ctx, _cache) => {
26743
- return openBlock(), createBlock(unref(_sfc_main$Y), {
26814
+ return openBlock(), createBlock(unref(_sfc_main$Z), {
26744
26815
  options: fullSearchBoxOptions.value,
26745
26816
  ref_key: "searchBox",
26746
26817
  ref: searchBox2
@@ -26867,7 +26938,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
26867
26938
  };
26868
26939
  __expose({ fetch: fetch2 });
26869
26940
  return (_ctx, _cache) => {
26870
- return openBlock(), createBlock(unref(_sfc_main$b), {
26941
+ return openBlock(), createBlock(unref(_sfc_main$c), {
26871
26942
  options: fullSearchResultsOptions.value,
26872
26943
  ref_key: "searchResults",
26873
26944
  ref: searchResults2
@@ -26892,7 +26963,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
26892
26963
  };
26893
26964
  __expose({ fetch: fetch2 });
26894
26965
  return (_ctx, _cache) => {
26895
- return openBlock(), createBlock(unref(_sfc_main$9), {
26966
+ return openBlock(), createBlock(unref(_sfc_main$a), {
26896
26967
  options: fullProductListOptions.value,
26897
26968
  ref_key: "productList",
26898
26969
  ref: productList2
@@ -26972,7 +27043,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26972
27043
  __expose({ fetch: fetch2, reloadOptions });
26973
27044
  return (_ctx, _cache) => {
26974
27045
  return openBlock(), createElementBlock("div", null, [
26975
- containerOptions.value && isOpen.value ? (openBlock(), createBlock(unref(_sfc_main$8), {
27046
+ containerOptions.value && isOpen.value ? (openBlock(), createBlock(unref(_sfc_main$9), {
26976
27047
  key: 0,
26977
27048
  options: containerOptions.value,
26978
27049
  ref_key: "productList",
@@ -26996,7 +27067,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
26996
27067
  };
26997
27068
  __expose({ fetch: fetch2 });
26998
27069
  return (_ctx, _cache) => {
26999
- return openBlock(), createBlock(unref(_sfc_main$7), {
27070
+ return openBlock(), createBlock(unref(_sfc_main$8), {
27000
27071
  options: _ctx.recommendationOptions,
27001
27072
  ref_key: "productRecommendations",
27002
27073
  ref: productRecommendations
@@ -27215,7 +27286,7 @@ const chat = (options, mountOptions) => {
27215
27286
  }
27216
27287
  return;
27217
27288
  }
27218
- const instance = createVue(options.displayOptions.containerSelector, _sfc_main$1i, {
27289
+ const instance = createVue(options.displayOptions.containerSelector, _sfc_main$1j, {
27219
27290
  options
27220
27291
  });
27221
27292
  if (!instance) {